xph-crud 0.3.4 → 0.3.6

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.
@@ -1,4 +1,4 @@
1
- (function(O,p){typeof exports=="object"&&typeof module<"u"?p(exports,require("react"),require("antd"),require("@ant-design/icons"),require("react-dom"),require("dayjs")):typeof define=="function"&&define.amd?define(["exports","react","antd","@ant-design/icons","react-dom","dayjs"],p):(O=typeof globalThis<"u"?globalThis:O||self,p(O["xph-crud"]={},O.React,O.Antd,O.AntDesignIcons,O.ReactDOM,O.Dayjs))})(this,function(O,p,S,ue,vn,Ge){"use strict";const gt=[];for(let e=0;e<=15;e++)gt[e]=e.toString(16);function ht(){let e="";for(let t=1;t<=36;t++)t===9||t===14||t===19||t===24?e+="-":t===15?e+=4:t===20?e+=gt[Math.random()*4|8]:e+=gt[Math.random()*16|0];return e.replace(/-/g,"")}const Gt=(e,t)=>{const r=t.split(".").filter(Boolean);let n=e;for(const o of r)if(n[o]!==void 0)n=n[o];else return;return r.length?n:void 0},mt=(e,t)=>{const r={};for(const[n,o]of Object.entries(e))r[n]=Gt(t,o);return r};var bt={exports:{}},Ie={};/**
1
+ (function(A,p){typeof exports=="object"&&typeof module<"u"?p(exports,require("react"),require("antd"),require("@ant-design/icons"),require("react-dom"),require("dayjs")):typeof define=="function"&&define.amd?define(["exports","react","antd","@ant-design/icons","react-dom","dayjs"],p):(A=typeof globalThis<"u"?globalThis:A||self,p(A["xph-crud"]={},A.React,A.Antd,A.AntDesignIcons,A.ReactDOM,A.Dayjs))})(this,function(A,p,x,fe,vn,Ge){"use strict";const ht=[];for(let e=0;e<=15;e++)ht[e]=e.toString(16);function mt(){let e="";for(let t=1;t<=36;t++)t===9||t===14||t===19||t===24?e+="-":t===15?e+=4:t===20?e+=ht[Math.random()*4|8]:e+=ht[Math.random()*16|0];return e.replace(/-/g,"")}const Xt=(e,t)=>{const r=t.split(".").filter(Boolean);let n=e;for(const o of r)if(n[o]!==void 0)n=n[o];else return;return r.length?n:void 0},bt=(e,t)=>{const r={};for(const[n,o]of Object.entries(e))r[n]=Xt(t,o);return r};var vt={exports:{}},ke={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var Xt;function yn(){if(Xt)return Ie;Xt=1;var e=p,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function a(i,c,u){var d,h={},f=null,v=null;u!==void 0&&(f=""+u),c.key!==void 0&&(f=""+c.key),c.ref!==void 0&&(v=c.ref);for(d in c)n.call(c,d)&&!s.hasOwnProperty(d)&&(h[d]=c[d]);if(i&&i.defaultProps)for(d in c=i.defaultProps,c)h[d]===void 0&&(h[d]=c[d]);return{$$typeof:t,type:i,key:f,ref:v,props:h,_owner:o.current}}return Ie.Fragment=r,Ie.jsx=a,Ie.jsxs=a,Ie}var ke={};/**
9
+ */var Kt;function yn(){if(Kt)return ke;Kt=1;var e=p,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function a(i,c,u){var d,h={},f=null,v=null;u!==void 0&&(f=""+u),c.key!==void 0&&(f=""+c.key),c.ref!==void 0&&(v=c.ref);for(d in c)n.call(c,d)&&!s.hasOwnProperty(d)&&(h[d]=c[d]);if(i&&i.defaultProps)for(d in c=i.defaultProps,c)h[d]===void 0&&(h[d]=c[d]);return{$$typeof:t,type:i,key:f,ref:v,props:h,_owner:o.current}}return ke.Fragment=r,ke.jsx=a,ke.jsxs=a,ke}var Ie={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,17 +14,17 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var Kt;function _n(){return Kt||(Kt=1,process.env.NODE_ENV!=="production"&&function(){var e=p,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),g=Symbol.iterator,y="@@iterator";function w(l){if(l===null||typeof l!="object")return null;var b=g&&l[g]||l[y];return typeof b=="function"?b:null}var j=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function E(l){{for(var b=arguments.length,_=new Array(b>1?b-1:0),F=1;F<b;F++)_[F-1]=arguments[F];A("error",l,_)}}function A(l,b,_){{var F=j.ReactDebugCurrentFrame,L=F.getStackAddendum();L!==""&&(b+="%s",_=_.concat([L]));var V=_.map(function(I){return String(I)});V.unshift("Warning: "+b),Function.prototype.apply.call(console[l],console,V)}}var z=!1,W=!1,q=!1,G=!1,x=!1,T;T=Symbol.for("react.module.reference");function C(l){return!!(typeof l=="string"||typeof l=="function"||l===n||l===s||x||l===o||l===u||l===d||G||l===v||z||W||q||typeof l=="object"&&l!==null&&(l.$$typeof===f||l.$$typeof===h||l.$$typeof===a||l.$$typeof===i||l.$$typeof===c||l.$$typeof===T||l.getModuleId!==void 0))}function P(l,b,_){var F=l.displayName;if(F)return F;var L=b.displayName||b.name||"";return L!==""?_+"("+L+")":_}function D(l){return l.displayName||"Context"}function $(l){if(l==null)return null;if(typeof l.tag=="number"&&E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof l=="function")return l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case n:return"Fragment";case r:return"Portal";case s:return"Profiler";case o:return"StrictMode";case u:return"Suspense";case d:return"SuspenseList"}if(typeof l=="object")switch(l.$$typeof){case i:var b=l;return D(b)+".Consumer";case a:var _=l;return D(_._context)+".Provider";case c:return P(l,l.render,"ForwardRef");case h:var F=l.displayName||null;return F!==null?F:$(l.type)||"Memo";case f:{var L=l,V=L._payload,I=L._init;try{return $(I(V))}catch{return null}}}return null}var R=Object.assign,k=0,Q,ne,ve,pe,ce,B,H;function Y(){}Y.__reactDisabledLog=!0;function X(){{if(k===0){Q=console.log,ne=console.info,ve=console.warn,pe=console.error,ce=console.group,B=console.groupCollapsed,H=console.groupEnd;var l={configurable:!0,enumerable:!0,value:Y,writable:!0};Object.defineProperties(console,{info:l,log:l,warn:l,error:l,group:l,groupCollapsed:l,groupEnd:l})}k++}}function zt(){{if(k--,k===0){var l={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:R({},l,{value:Q}),info:R({},l,{value:ne}),warn:R({},l,{value:ve}),error:R({},l,{value:pe}),group:R({},l,{value:ce}),groupCollapsed:R({},l,{value:B}),groupEnd:R({},l,{value:H})})}k<0&&E("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var He=j.ReactCurrentDispatcher,Ae;function De(l,b,_){{if(Ae===void 0)try{throw Error()}catch(L){var F=L.stack.trim().match(/\n( *(at )?)/);Ae=F&&F[1]||""}return`
18
- `+Ae+l}}var Ve=!1,ye;{var ut=typeof WeakMap=="function"?WeakMap:Map;ye=new ut}function Ue(l,b){if(!l||Ve)return"";{var _=ye.get(l);if(_!==void 0)return _}var F;Ve=!0;var L=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var V;V=He.current,He.current=null,X();try{if(b){var I=function(){throw Error()};if(Object.defineProperty(I.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(I,[])}catch(oe){F=oe}Reflect.construct(l,[],I)}else{try{I.call()}catch(oe){F=oe}l.call(I.prototype)}}else{try{throw Error()}catch(oe){F=oe}l()}}catch(oe){if(oe&&F&&typeof oe.stack=="string"){for(var M=oe.stack.split(`
19
- `),ee=F.stack.split(`
20
- `),K=M.length-1,J=ee.length-1;K>=1&&J>=0&&M[K]!==ee[J];)J--;for(;K>=1&&J>=0;K--,J--)if(M[K]!==ee[J]){if(K!==1||J!==1)do if(K--,J--,J<0||M[K]!==ee[J]){var ie=`
21
- `+M[K].replace(" at new "," at ");return l.displayName&&ie.includes("<anonymous>")&&(ie=ie.replace("<anonymous>",l.displayName)),typeof l=="function"&&ye.set(l,ie),ie}while(K>=1&&J>=0);break}}}finally{Ve=!1,He.current=V,zt(),Error.prepareStackTrace=L}var Me=l?l.displayName||l.name:"",Fe=Me?De(Me):"";return typeof l=="function"&&ye.set(l,Fe),Fe}function Lt(l,b,_){return Ue(l,!1)}function Nt(l){var b=l.prototype;return!!(b&&b.isReactComponent)}function Se(l,b,_){if(l==null)return"";if(typeof l=="function")return Ue(l,Nt(l));if(typeof l=="string")return De(l);switch(l){case u:return De("Suspense");case d:return De("SuspenseList")}if(typeof l=="object")switch(l.$$typeof){case c:return Lt(l.render);case h:return Se(l.type,b,_);case f:{var F=l,L=F._payload,V=F._init;try{return Se(V(L),b,_)}catch{}}}return""}var Pe=Object.prototype.hasOwnProperty,ft={},Oe=j.ReactDebugCurrentFrame;function $e(l){if(l){var b=l._owner,_=Se(l.type,l._source,b?b.type:null);Oe.setExtraStackFrame(_)}else Oe.setExtraStackFrame(null)}function ln(l,b,_,F,L){{var V=Function.call.bind(Pe);for(var I in l)if(V(l,I)){var M=void 0;try{if(typeof l[I]!="function"){var ee=Error((F||"React class")+": "+_+" type `"+I+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof l[I]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ee.name="Invariant Violation",ee}M=l[I](b,I,F,_,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(K){M=K}M&&!(M instanceof Error)&&($e(L),E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",F||"React class",_,I,typeof M),$e(null)),M instanceof Error&&!(M.message in ft)&&(ft[M.message]=!0,$e(L),E("Failed %s type: %s",_,M.message),$e(null))}}}var Ye=Array.isArray;function qe(l){return Ye(l)}function Wt(l){{var b=typeof Symbol=="function"&&Symbol.toStringTag,_=b&&l[Symbol.toStringTag]||l.constructor.name||"Object";return _}}function Bt(l){try{return dt(l),!1}catch{return!0}}function dt(l){return""+l}function pt(l){if(Bt(l))return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Wt(l)),dt(l)}var Ee=j.ReactCurrentOwner,Ul={key:!0,ref:!0,__self:!0,__source:!0},cn,un,Ht;Ht={};function Yl(l){if(Pe.call(l,"ref")){var b=Object.getOwnPropertyDescriptor(l,"ref").get;if(b&&b.isReactWarning)return!1}return l.ref!==void 0}function ql(l){if(Pe.call(l,"key")){var b=Object.getOwnPropertyDescriptor(l,"key").get;if(b&&b.isReactWarning)return!1}return l.key!==void 0}function Gl(l,b){if(typeof l.ref=="string"&&Ee.current&&b&&Ee.current.stateNode!==b){var _=$(Ee.current.type);Ht[_]||(E('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',$(Ee.current.type),l.ref),Ht[_]=!0)}}function Xl(l,b){{var _=function(){cn||(cn=!0,E("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",b))};_.isReactWarning=!0,Object.defineProperty(l,"key",{get:_,configurable:!0})}}function Kl(l,b){{var _=function(){un||(un=!0,E("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",b))};_.isReactWarning=!0,Object.defineProperty(l,"ref",{get:_,configurable:!0})}}var Jl=function(l,b,_,F,L,V,I){var M={$$typeof:t,type:l,key:b,ref:_,props:I,_owner:V};return M._store={},Object.defineProperty(M._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(M,"_self",{configurable:!1,enumerable:!1,writable:!1,value:F}),Object.defineProperty(M,"_source",{configurable:!1,enumerable:!1,writable:!1,value:L}),Object.freeze&&(Object.freeze(M.props),Object.freeze(M)),M};function Zl(l,b,_,F,L){{var V,I={},M=null,ee=null;_!==void 0&&(pt(_),M=""+_),ql(b)&&(pt(b.key),M=""+b.key),Yl(b)&&(ee=b.ref,Gl(b,L));for(V in b)Pe.call(b,V)&&!Ul.hasOwnProperty(V)&&(I[V]=b[V]);if(l&&l.defaultProps){var K=l.defaultProps;for(V in K)I[V]===void 0&&(I[V]=K[V])}if(M||ee){var J=typeof l=="function"?l.displayName||l.name||"Unknown":l;M&&Xl(I,J),ee&&Kl(I,J)}return Jl(l,M,ee,L,F,Ee.current,I)}}var Vt=j.ReactCurrentOwner,fn=j.ReactDebugCurrentFrame;function Re(l){if(l){var b=l._owner,_=Se(l.type,l._source,b?b.type:null);fn.setExtraStackFrame(_)}else fn.setExtraStackFrame(null)}var Ut;Ut=!1;function Yt(l){return typeof l=="object"&&l!==null&&l.$$typeof===t}function dn(){{if(Vt.current){var l=$(Vt.current.type);if(l)return`
17
+ */var Jt;function _n(){return Jt||(Jt=1,process.env.NODE_ENV!=="production"&&function(){var e=p,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),g=Symbol.iterator,y="@@iterator";function w(l){if(l===null||typeof l!="object")return null;var b=g&&l[g]||l[y];return typeof b=="function"?b:null}var j=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function P(l){{for(var b=arguments.length,_=new Array(b>1?b-1:0),F=1;F<b;F++)_[F-1]=arguments[F];D("error",l,_)}}function D(l,b,_){{var F=j.ReactDebugCurrentFrame,L=F.getStackAddendum();L!==""&&(b+="%s",_=_.concat([L]));var V=_.map(function(z){return String(z)});V.unshift("Warning: "+b),Function.prototype.apply.call(console[l],console,V)}}var M=!1,W=!1,q=!1,X=!1,C=!1,I;I=Symbol.for("react.module.reference");function T(l){return!!(typeof l=="string"||typeof l=="function"||l===n||l===s||C||l===o||l===u||l===d||X||l===v||M||W||q||typeof l=="object"&&l!==null&&(l.$$typeof===f||l.$$typeof===h||l.$$typeof===a||l.$$typeof===i||l.$$typeof===c||l.$$typeof===I||l.getModuleId!==void 0))}function S(l,b,_){var F=l.displayName;if(F)return F;var L=b.displayName||b.name||"";return L!==""?_+"("+L+")":_}function E(l){return l.displayName||"Context"}function O(l){if(l==null)return null;if(typeof l.tag=="number"&&P("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof l=="function")return l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case n:return"Fragment";case r:return"Portal";case s:return"Profiler";case o:return"StrictMode";case u:return"Suspense";case d:return"SuspenseList"}if(typeof l=="object")switch(l.$$typeof){case i:var b=l;return E(b)+".Consumer";case a:var _=l;return E(_._context)+".Provider";case c:return S(l,l.render,"ForwardRef");case h:var F=l.displayName||null;return F!==null?F:O(l.type)||"Memo";case f:{var L=l,V=L._payload,z=L._init;try{return O(z(V))}catch{return null}}}return null}var R=Object.assign,$=0,G,ee,se,ge,ue,H,B;function Y(){}Y.__reactDisabledLog=!0;function K(){{if($===0){G=console.log,ee=console.info,se=console.warn,ge=console.error,ue=console.group,H=console.groupCollapsed,B=console.groupEnd;var l={configurable:!0,enumerable:!0,value:Y,writable:!0};Object.defineProperties(console,{info:l,log:l,warn:l,error:l,group:l,groupCollapsed:l,groupEnd:l})}$++}}function Lt(){{if($--,$===0){var l={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:R({},l,{value:G}),info:R({},l,{value:ee}),warn:R({},l,{value:se}),error:R({},l,{value:ge}),group:R({},l,{value:ue}),groupCollapsed:R({},l,{value:H}),groupEnd:R({},l,{value:B})})}$<0&&P("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Be=j.ReactCurrentDispatcher,Ae;function De(l,b,_){{if(Ae===void 0)try{throw Error()}catch(L){var F=L.stack.trim().match(/\n( *(at )?)/);Ae=F&&F[1]||""}return`
18
+ `+Ae+l}}var Ve=!1,ye;{var ft=typeof WeakMap=="function"?WeakMap:Map;ye=new ft}function Ue(l,b){if(!l||Ve)return"";{var _=ye.get(l);if(_!==void 0)return _}var F;Ve=!0;var L=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var V;V=Be.current,Be.current=null,K();try{if(b){var z=function(){throw Error()};if(Object.defineProperty(z.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(z,[])}catch(oe){F=oe}Reflect.construct(l,[],z)}else{try{z.call()}catch(oe){F=oe}l.call(z.prototype)}}else{try{throw Error()}catch(oe){F=oe}l()}}catch(oe){if(oe&&F&&typeof oe.stack=="string"){for(var k=oe.stack.split(`
19
+ `),te=F.stack.split(`
20
+ `),J=k.length-1,Z=te.length-1;J>=1&&Z>=0&&k[J]!==te[Z];)Z--;for(;J>=1&&Z>=0;J--,Z--)if(k[J]!==te[Z]){if(J!==1||Z!==1)do if(J--,Z--,Z<0||k[J]!==te[Z]){var ae=`
21
+ `+k[J].replace(" at new "," at ");return l.displayName&&ae.includes("<anonymous>")&&(ae=ae.replace("<anonymous>",l.displayName)),typeof l=="function"&&ye.set(l,ae),ae}while(J>=1&&Z>=0);break}}}finally{Ve=!1,Be.current=V,Lt(),Error.prepareStackTrace=L}var Me=l?l.displayName||l.name:"",Fe=Me?De(Me):"";return typeof l=="function"&&ye.set(l,Fe),Fe}function Nt(l,b,_){return Ue(l,!1)}function Wt(l){var b=l.prototype;return!!(b&&b.isReactComponent)}function Se(l,b,_){if(l==null)return"";if(typeof l=="function")return Ue(l,Wt(l));if(typeof l=="string")return De(l);switch(l){case u:return De("Suspense");case d:return De("SuspenseList")}if(typeof l=="object")switch(l.$$typeof){case c:return Nt(l.render);case h:return Se(l.type,b,_);case f:{var F=l,L=F._payload,V=F._init;try{return Se(V(L),b,_)}catch{}}}return""}var Pe=Object.prototype.hasOwnProperty,dt={},Oe=j.ReactDebugCurrentFrame;function $e(l){if(l){var b=l._owner,_=Se(l.type,l._source,b?b.type:null);Oe.setExtraStackFrame(_)}else Oe.setExtraStackFrame(null)}function ln(l,b,_,F,L){{var V=Function.call.bind(Pe);for(var z in l)if(V(l,z)){var k=void 0;try{if(typeof l[z]!="function"){var te=Error((F||"React class")+": "+_+" type `"+z+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof l[z]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw te.name="Invariant Violation",te}k=l[z](b,z,F,_,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(J){k=J}k&&!(k instanceof Error)&&($e(L),P("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",F||"React class",_,z,typeof k),$e(null)),k instanceof Error&&!(k.message in dt)&&(dt[k.message]=!0,$e(L),P("Failed %s type: %s",_,k.message),$e(null))}}}var Ye=Array.isArray;function qe(l){return Ye(l)}function Ht(l){{var b=typeof Symbol=="function"&&Symbol.toStringTag,_=b&&l[Symbol.toStringTag]||l.constructor.name||"Object";return _}}function Bt(l){try{return pt(l),!1}catch{return!0}}function pt(l){return""+l}function gt(l){if(Bt(l))return P("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ht(l)),pt(l)}var Ee=j.ReactCurrentOwner,Xl={key:!0,ref:!0,__self:!0,__source:!0},cn,un,Vt;Vt={};function Kl(l){if(Pe.call(l,"ref")){var b=Object.getOwnPropertyDescriptor(l,"ref").get;if(b&&b.isReactWarning)return!1}return l.ref!==void 0}function Jl(l){if(Pe.call(l,"key")){var b=Object.getOwnPropertyDescriptor(l,"key").get;if(b&&b.isReactWarning)return!1}return l.key!==void 0}function Zl(l,b){if(typeof l.ref=="string"&&Ee.current&&b&&Ee.current.stateNode!==b){var _=O(Ee.current.type);Vt[_]||(P('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',O(Ee.current.type),l.ref),Vt[_]=!0)}}function Ql(l,b){{var _=function(){cn||(cn=!0,P("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",b))};_.isReactWarning=!0,Object.defineProperty(l,"key",{get:_,configurable:!0})}}function ec(l,b){{var _=function(){un||(un=!0,P("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",b))};_.isReactWarning=!0,Object.defineProperty(l,"ref",{get:_,configurable:!0})}}var tc=function(l,b,_,F,L,V,z){var k={$$typeof:t,type:l,key:b,ref:_,props:z,_owner:V};return k._store={},Object.defineProperty(k._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(k,"_self",{configurable:!1,enumerable:!1,writable:!1,value:F}),Object.defineProperty(k,"_source",{configurable:!1,enumerable:!1,writable:!1,value:L}),Object.freeze&&(Object.freeze(k.props),Object.freeze(k)),k};function rc(l,b,_,F,L){{var V,z={},k=null,te=null;_!==void 0&&(gt(_),k=""+_),Jl(b)&&(gt(b.key),k=""+b.key),Kl(b)&&(te=b.ref,Zl(b,L));for(V in b)Pe.call(b,V)&&!Xl.hasOwnProperty(V)&&(z[V]=b[V]);if(l&&l.defaultProps){var J=l.defaultProps;for(V in J)z[V]===void 0&&(z[V]=J[V])}if(k||te){var Z=typeof l=="function"?l.displayName||l.name||"Unknown":l;k&&Ql(z,Z),te&&ec(z,Z)}return tc(l,k,te,L,F,Ee.current,z)}}var Ut=j.ReactCurrentOwner,fn=j.ReactDebugCurrentFrame;function Re(l){if(l){var b=l._owner,_=Se(l.type,l._source,b?b.type:null);fn.setExtraStackFrame(_)}else fn.setExtraStackFrame(null)}var Yt;Yt=!1;function qt(l){return typeof l=="object"&&l!==null&&l.$$typeof===t}function dn(){{if(Ut.current){var l=O(Ut.current.type);if(l)return`
22
22
 
23
- Check the render method of \``+l+"`."}return""}}function Ql(l){return""}var pn={};function ec(l){{var b=dn();if(!b){var _=typeof l=="string"?l:l.displayName||l.name;_&&(b=`
23
+ Check the render method of \``+l+"`."}return""}}function nc(l){return""}var pn={};function oc(l){{var b=dn();if(!b){var _=typeof l=="string"?l:l.displayName||l.name;_&&(b=`
24
24
 
25
- Check the top-level render call using <`+_+">.")}return b}}function gn(l,b){{if(!l._store||l._store.validated||l.key!=null)return;l._store.validated=!0;var _=ec(b);if(pn[_])return;pn[_]=!0;var F="";l&&l._owner&&l._owner!==Vt.current&&(F=" It was passed a child from "+$(l._owner.type)+"."),Re(l),E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',_,F),Re(null)}}function hn(l,b){{if(typeof l!="object")return;if(qe(l))for(var _=0;_<l.length;_++){var F=l[_];Yt(F)&&gn(F,b)}else if(Yt(l))l._store&&(l._store.validated=!0);else if(l){var L=w(l);if(typeof L=="function"&&L!==l.entries)for(var V=L.call(l),I;!(I=V.next()).done;)Yt(I.value)&&gn(I.value,b)}}}function tc(l){{var b=l.type;if(b==null||typeof b=="string")return;var _;if(typeof b=="function")_=b.propTypes;else if(typeof b=="object"&&(b.$$typeof===c||b.$$typeof===h))_=b.propTypes;else return;if(_){var F=$(b);ln(_,l.props,"prop",F,l)}else if(b.PropTypes!==void 0&&!Ut){Ut=!0;var L=$(b);E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",L||"Unknown")}typeof b.getDefaultProps=="function"&&!b.getDefaultProps.isReactClassApproved&&E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function rc(l){{for(var b=Object.keys(l.props),_=0;_<b.length;_++){var F=b[_];if(F!=="children"&&F!=="key"){Re(l),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",F),Re(null);break}}l.ref!==null&&(Re(l),E("Invalid attribute `ref` supplied to `React.Fragment`."),Re(null))}}var mn={};function bn(l,b,_,F,L,V){{var I=C(l);if(!I){var M="";(l===void 0||typeof l=="object"&&l!==null&&Object.keys(l).length===0)&&(M+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var ee=Ql();ee?M+=ee:M+=dn();var K;l===null?K="null":qe(l)?K="array":l!==void 0&&l.$$typeof===t?(K="<"+($(l.type)||"Unknown")+" />",M=" Did you accidentally export a JSX literal instead of a component?"):K=typeof l,E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",K,M)}var J=Zl(l,b,_,L,V);if(J==null)return J;if(I){var ie=b.children;if(ie!==void 0)if(F)if(qe(ie)){for(var Me=0;Me<ie.length;Me++)hn(ie[Me],l);Object.freeze&&Object.freeze(ie)}else E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else hn(ie,l)}if(Pe.call(b,"key")){var Fe=$(l),oe=Object.keys(b).filter(function(lc){return lc!=="key"}),qt=oe.length>0?"{key: someKey, "+oe.join(": ..., ")+": ...}":"{key: someKey}";if(!mn[Fe+qt]){var ac=oe.length>0?"{"+oe.join(": ..., ")+": ...}":"{}";E(`A props object containing a "key" prop is being spread into JSX:
25
+ Check the top-level render call using <`+_+">.")}return b}}function gn(l,b){{if(!l._store||l._store.validated||l.key!=null)return;l._store.validated=!0;var _=oc(b);if(pn[_])return;pn[_]=!0;var F="";l&&l._owner&&l._owner!==Ut.current&&(F=" It was passed a child from "+O(l._owner.type)+"."),Re(l),P('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',_,F),Re(null)}}function hn(l,b){{if(typeof l!="object")return;if(qe(l))for(var _=0;_<l.length;_++){var F=l[_];qt(F)&&gn(F,b)}else if(qt(l))l._store&&(l._store.validated=!0);else if(l){var L=w(l);if(typeof L=="function"&&L!==l.entries)for(var V=L.call(l),z;!(z=V.next()).done;)qt(z.value)&&gn(z.value,b)}}}function sc(l){{var b=l.type;if(b==null||typeof b=="string")return;var _;if(typeof b=="function")_=b.propTypes;else if(typeof b=="object"&&(b.$$typeof===c||b.$$typeof===h))_=b.propTypes;else return;if(_){var F=O(b);ln(_,l.props,"prop",F,l)}else if(b.PropTypes!==void 0&&!Yt){Yt=!0;var L=O(b);P("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",L||"Unknown")}typeof b.getDefaultProps=="function"&&!b.getDefaultProps.isReactClassApproved&&P("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ic(l){{for(var b=Object.keys(l.props),_=0;_<b.length;_++){var F=b[_];if(F!=="children"&&F!=="key"){Re(l),P("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",F),Re(null);break}}l.ref!==null&&(Re(l),P("Invalid attribute `ref` supplied to `React.Fragment`."),Re(null))}}var mn={};function bn(l,b,_,F,L,V){{var z=T(l);if(!z){var k="";(l===void 0||typeof l=="object"&&l!==null&&Object.keys(l).length===0)&&(k+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var te=nc();te?k+=te:k+=dn();var J;l===null?J="null":qe(l)?J="array":l!==void 0&&l.$$typeof===t?(J="<"+(O(l.type)||"Unknown")+" />",k=" Did you accidentally export a JSX literal instead of a component?"):J=typeof l,P("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",J,k)}var Z=rc(l,b,_,L,V);if(Z==null)return Z;if(z){var ae=b.children;if(ae!==void 0)if(F)if(qe(ae)){for(var Me=0;Me<ae.length;Me++)hn(ae[Me],l);Object.freeze&&Object.freeze(ae)}else P("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else hn(ae,l)}if(Pe.call(b,"key")){var Fe=O(l),oe=Object.keys(b).filter(function(dc){return dc!=="key"}),Gt=oe.length>0?"{key: someKey, "+oe.join(": ..., ")+": ...}":"{key: someKey}";if(!mn[Fe+Gt]){var fc=oe.length>0?"{"+oe.join(": ..., ")+": ...}":"{}";P(`A props object containing a "key" prop is being spread into JSX:
26
26
  let props = %s;
27
27
  <%s {...props} />
28
28
  React keys must be passed directly to JSX without using spread:
29
29
  let props = %s;
30
- <%s key={someKey} {...props} />`,qt,Fe,ac,Fe),mn[Fe+qt]=!0}}return l===n?rc(J):tc(J),J}}function nc(l,b,_){return bn(l,b,_,!0)}function oc(l,b,_){return bn(l,b,_,!1)}var sc=oc,ic=nc;ke.Fragment=n,ke.jsx=sc,ke.jsxs=ic}()),ke}process.env.NODE_ENV==="production"?bt.exports=yn():bt.exports=_n();var m=bt.exports,Jt=typeof global=="object"&&global&&global.Object===Object&&global,wn=typeof self=="object"&&self&&self.Object===Object&&self,fe=Jt||wn||Function("return this")(),_e=fe.Symbol,Zt=Object.prototype,Cn=Zt.hasOwnProperty,xn=Zt.toString,ze=_e?_e.toStringTag:void 0;function Tn(e){var t=Cn.call(e,ze),r=e[ze];try{e[ze]=void 0;var n=!0}catch{}var o=xn.call(e);return n&&(t?e[ze]=r:delete e[ze]),o}var Sn=Object.prototype,Pn=Sn.toString;function En(e){return Pn.call(e)}var Fn="[object Null]",jn="[object Undefined]",Qt=_e?_e.toStringTag:void 0;function de(e){return e==null?e===void 0?jn:Fn:Qt&&Qt in Object(e)?Tn(e):En(e)}function ae(e){return e!=null&&typeof e=="object"}var An="[object Symbol]";function vt(e){return typeof e=="symbol"||ae(e)&&de(e)==An}function Dn(e,t){for(var r=-1,n=e==null?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}var te=Array.isArray,On=1/0,er=_e?_e.prototype:void 0,tr=er?er.toString:void 0;function rr(e){if(typeof e=="string")return e;if(te(e))return Dn(e,rr)+"";if(vt(e))return tr?tr.call(e):"";var t=e+"";return t=="0"&&1/e==-On?"-0":t}function se(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function nr(e){return e}var $n="[object AsyncFunction]",Rn="[object Function]",Mn="[object GeneratorFunction]",In="[object Proxy]";function Z(e){if(!se(e))return!1;var t=de(e);return t==Rn||t==Mn||t==$n||t==In}var yt=fe["__core-js_shared__"],or=function(){var e=/[^.]+$/.exec(yt&&yt.keys&&yt.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function kn(e){return!!or&&or in e}var zn=Function.prototype,Ln=zn.toString;function Ce(e){if(e!=null){try{return Ln.call(e)}catch{}try{return e+""}catch{}}return""}var Nn=/[\\^$.*+?()[\]{}|]/g,Wn=/^\[object .+?Constructor\]$/,Bn=Function.prototype,Hn=Object.prototype,Vn=Bn.toString,Un=Hn.hasOwnProperty,Yn=RegExp("^"+Vn.call(Un).replace(Nn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function qn(e){if(!se(e)||kn(e))return!1;var t=Z(e)?Yn:Wn;return t.test(Ce(e))}function Gn(e,t){return e==null?void 0:e[t]}function xe(e,t){var r=Gn(e,t);return qn(r)?r:void 0}var _t=xe(fe,"WeakMap"),sr=Object.create,Xn=function(){function e(){}return function(t){if(!se(t))return{};if(sr)return sr(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function Kn(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function Jn(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var Zn=800,Qn=16,eo=Date.now;function to(e){var t=0,r=0;return function(){var n=eo(),o=Qn-(n-r);if(r=n,o>0){if(++t>=Zn)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function ro(e){return function(){return e}}var Xe=function(){try{var e=xe(Object,"defineProperty");return e({},"",{}),e}catch{}}(),no=Xe?function(e,t){return Xe(e,"toString",{configurable:!0,enumerable:!1,value:ro(t),writable:!0})}:nr,oo=to(no),so=9007199254740991,io=/^(?:0|[1-9]\d*)$/;function wt(e,t){var r=typeof e;return t=t??so,!!t&&(r=="number"||r!="symbol"&&io.test(e))&&e>-1&&e%1==0&&e<t}function Ct(e,t,r){t=="__proto__"&&Xe?Xe(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Le(e,t){return e===t||e!==e&&t!==t}var ao=Object.prototype,lo=ao.hasOwnProperty;function ir(e,t,r){var n=e[t];(!(lo.call(e,t)&&Le(n,r))||r===void 0&&!(t in e))&&Ct(e,t,r)}function co(e,t,r,n){var o=!r;r||(r={});for(var s=-1,a=t.length;++s<a;){var i=t[s],c=void 0;c===void 0&&(c=e[i]),o?Ct(r,i,c):ir(r,i,c)}return r}var ar=Math.max;function uo(e,t,r){return t=ar(t===void 0?e.length-1:t,0),function(){for(var n=arguments,o=-1,s=ar(n.length-t,0),a=Array(s);++o<s;)a[o]=n[t+o];o=-1;for(var i=Array(t+1);++o<t;)i[o]=n[o];return i[t]=r(a),Kn(e,this,i)}}function fo(e,t){return oo(uo(e,t,nr),e+"")}var po=9007199254740991;function lr(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=po}function Ke(e){return e!=null&&lr(e.length)&&!Z(e)}function go(e,t,r){if(!se(r))return!1;var n=typeof t;return(n=="number"?Ke(r)&&wt(t,r.length):n=="string"&&t in r)?Le(r[t],e):!1}function ho(e){return fo(function(t,r){var n=-1,o=r.length,s=o>1?r[o-1]:void 0,a=o>2?r[2]:void 0;for(s=e.length>3&&typeof s=="function"?(o--,s):void 0,a&&go(r[0],r[1],a)&&(s=o<3?void 0:s,o=1),t=Object(t);++n<o;){var i=r[n];i&&e(t,i,n,s)}return t})}var mo=Object.prototype;function xt(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||mo;return e===r}function bo(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var vo="[object Arguments]";function cr(e){return ae(e)&&de(e)==vo}var ur=Object.prototype,yo=ur.hasOwnProperty,_o=ur.propertyIsEnumerable,Tt=cr(function(){return arguments}())?cr:function(e){return ae(e)&&yo.call(e,"callee")&&!_o.call(e,"callee")};function wo(){return!1}var fr=typeof O=="object"&&O&&!O.nodeType&&O,dr=fr&&typeof module=="object"&&module&&!module.nodeType&&module,Co=dr&&dr.exports===fr,pr=Co?fe.Buffer:void 0,xo=pr?pr.isBuffer:void 0,Je=xo||wo,To="[object Arguments]",So="[object Array]",Po="[object Boolean]",Eo="[object Date]",Fo="[object Error]",jo="[object Function]",Ao="[object Map]",Do="[object Number]",Oo="[object Object]",$o="[object RegExp]",Ro="[object Set]",Mo="[object String]",Io="[object WeakMap]",ko="[object ArrayBuffer]",zo="[object DataView]",Lo="[object Float32Array]",No="[object Float64Array]",Wo="[object Int8Array]",Bo="[object Int16Array]",Ho="[object Int32Array]",Vo="[object Uint8Array]",Uo="[object Uint8ClampedArray]",Yo="[object Uint16Array]",qo="[object Uint32Array]",U={};U[Lo]=U[No]=U[Wo]=U[Bo]=U[Ho]=U[Vo]=U[Uo]=U[Yo]=U[qo]=!0,U[To]=U[So]=U[ko]=U[Po]=U[zo]=U[Eo]=U[Fo]=U[jo]=U[Ao]=U[Do]=U[Oo]=U[$o]=U[Ro]=U[Mo]=U[Io]=!1;function Go(e){return ae(e)&&lr(e.length)&&!!U[de(e)]}function Xo(e){return function(t){return e(t)}}var gr=typeof O=="object"&&O&&!O.nodeType&&O,Ne=gr&&typeof module=="object"&&module&&!module.nodeType&&module,Ko=Ne&&Ne.exports===gr,St=Ko&&Jt.process,hr=function(){try{var e=Ne&&Ne.require&&Ne.require("util").types;return e||St&&St.binding&&St.binding("util")}catch{}}(),mr=hr&&hr.isTypedArray,Pt=mr?Xo(mr):Go,Jo=Object.prototype,Zo=Jo.hasOwnProperty;function br(e,t){var r=te(e),n=!r&&Tt(e),o=!r&&!n&&Je(e),s=!r&&!n&&!o&&Pt(e),a=r||n||o||s,i=a?bo(e.length,String):[],c=i.length;for(var u in e)(t||Zo.call(e,u))&&!(a&&(u=="length"||o&&(u=="offset"||u=="parent")||s&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||wt(u,c)))&&i.push(u);return i}function vr(e,t){return function(r){return e(t(r))}}var Qo=vr(Object.keys,Object),es=Object.prototype,ts=es.hasOwnProperty;function rs(e){if(!xt(e))return Qo(e);var t=[];for(var r in Object(e))ts.call(e,r)&&r!="constructor"&&t.push(r);return t}function ns(e){return Ke(e)?br(e):rs(e)}function os(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var ss=Object.prototype,is=ss.hasOwnProperty;function as(e){if(!se(e))return os(e);var t=xt(e),r=[];for(var n in e)n=="constructor"&&(t||!is.call(e,n))||r.push(n);return r}function yr(e){return Ke(e)?br(e,!0):as(e)}var ls=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,cs=/^\w*$/;function us(e,t){if(te(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||vt(e)?!0:cs.test(e)||!ls.test(e)||t!=null&&e in Object(t)}var We=xe(Object,"create");function fs(){this.__data__=We?We(null):{},this.size=0}function ds(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var ps="__lodash_hash_undefined__",gs=Object.prototype,hs=gs.hasOwnProperty;function ms(e){var t=this.__data__;if(We){var r=t[e];return r===ps?void 0:r}return hs.call(t,e)?t[e]:void 0}var bs=Object.prototype,vs=bs.hasOwnProperty;function ys(e){var t=this.__data__;return We?t[e]!==void 0:vs.call(t,e)}var _s="__lodash_hash_undefined__";function ws(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=We&&t===void 0?_s:t,this}function Te(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Te.prototype.clear=fs,Te.prototype.delete=ds,Te.prototype.get=ms,Te.prototype.has=ys,Te.prototype.set=ws;function Cs(){this.__data__=[],this.size=0}function Ze(e,t){for(var r=e.length;r--;)if(Le(e[r][0],t))return r;return-1}var xs=Array.prototype,Ts=xs.splice;function Ss(e){var t=this.__data__,r=Ze(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Ts.call(t,r,1),--this.size,!0}function Ps(e){var t=this.__data__,r=Ze(t,e);return r<0?void 0:t[r][1]}function Es(e){return Ze(this.__data__,e)>-1}function Fs(e,t){var r=this.__data__,n=Ze(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function ge(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ge.prototype.clear=Cs,ge.prototype.delete=Ss,ge.prototype.get=Ps,ge.prototype.has=Es,ge.prototype.set=Fs;var Be=xe(fe,"Map");function js(){this.size=0,this.__data__={hash:new Te,map:new(Be||ge),string:new Te}}function As(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Qe(e,t){var r=e.__data__;return As(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Ds(e){var t=Qe(this,e).delete(e);return this.size-=t?1:0,t}function Os(e){return Qe(this,e).get(e)}function $s(e){return Qe(this,e).has(e)}function Rs(e,t){var r=Qe(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function he(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}he.prototype.clear=js,he.prototype.delete=Ds,he.prototype.get=Os,he.prototype.has=$s,he.prototype.set=Rs;var Ms="Expected a function";function Et(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Ms);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],s=r.cache;if(s.has(o))return s.get(o);var a=e.apply(this,n);return r.cache=s.set(o,a)||s,a};return r.cache=new(Et.Cache||he),r}Et.Cache=he;var Is=500;function ks(e){var t=Et(e,function(n){return r.size===Is&&r.clear(),n}),r=t.cache;return t}var zs=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ls=/\\(\\)?/g,Ns=ks(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(zs,function(r,n,o,s){t.push(o?s.replace(Ls,"$1"):n||r)}),t});function Ws(e){return e==null?"":rr(e)}function Bs(e,t){return te(e)?e:us(e,t)?[e]:Ns(Ws(e))}var Hs=1/0;function Vs(e){if(typeof e=="string"||vt(e))return e;var t=e+"";return t=="0"&&1/e==-Hs?"-0":t}function Us(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}var _r=vr(Object.getPrototypeOf,Object),Ys="[object Object]",qs=Function.prototype,Gs=Object.prototype,wr=qs.toString,Xs=Gs.hasOwnProperty,Ks=wr.call(Object);function Js(e){if(!ae(e)||de(e)!=Ys)return!1;var t=_r(e);if(t===null)return!0;var r=Xs.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&wr.call(r)==Ks}function Zs(){this.__data__=new ge,this.size=0}function Qs(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function ei(e){return this.__data__.get(e)}function ti(e){return this.__data__.has(e)}var ri=200;function ni(e,t){var r=this.__data__;if(r instanceof ge){var n=r.__data__;if(!Be||n.length<ri-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new he(n)}return r.set(e,t),this.size=r.size,this}function me(e){var t=this.__data__=new ge(e);this.size=t.size}me.prototype.clear=Zs,me.prototype.delete=Qs,me.prototype.get=ei,me.prototype.has=ti,me.prototype.set=ni;var Cr=typeof O=="object"&&O&&!O.nodeType&&O,xr=Cr&&typeof module=="object"&&module&&!module.nodeType&&module,oi=xr&&xr.exports===Cr,Tr=oi?fe.Buffer:void 0;Tr&&Tr.allocUnsafe;function si(e,t){return e.slice()}function ii(e,t){for(var r=-1,n=e==null?0:e.length,o=0,s=[];++r<n;){var a=e[r];t(a,r,e)&&(s[o++]=a)}return s}function ai(){return[]}var li=Object.prototype,ci=li.propertyIsEnumerable,Sr=Object.getOwnPropertySymbols,ui=Sr?function(e){return e==null?[]:(e=Object(e),ii(Sr(e),function(t){return ci.call(e,t)}))}:ai;function fi(e,t,r){var n=t(e);return te(e)?n:Us(n,r(e))}function Pr(e){return fi(e,ns,ui)}var Ft=xe(fe,"DataView"),jt=xe(fe,"Promise"),At=xe(fe,"Set"),Er="[object Map]",di="[object Object]",Fr="[object Promise]",jr="[object Set]",Ar="[object WeakMap]",Dr="[object DataView]",pi=Ce(Ft),gi=Ce(Be),hi=Ce(jt),mi=Ce(At),bi=Ce(_t),we=de;(Ft&&we(new Ft(new ArrayBuffer(1)))!=Dr||Be&&we(new Be)!=Er||jt&&we(jt.resolve())!=Fr||At&&we(new At)!=jr||_t&&we(new _t)!=Ar)&&(we=function(e){var t=de(e),r=t==di?e.constructor:void 0,n=r?Ce(r):"";if(n)switch(n){case pi:return Dr;case gi:return Er;case hi:return Fr;case mi:return jr;case bi:return Ar}return t});var et=fe.Uint8Array;function vi(e){var t=new e.constructor(e.byteLength);return new et(t).set(new et(e)),t}function yi(e,t){var r=vi(e.buffer);return new e.constructor(r,e.byteOffset,e.length)}function _i(e){return typeof e.constructor=="function"&&!xt(e)?Xn(_r(e)):{}}var wi="__lodash_hash_undefined__";function Ci(e){return this.__data__.set(e,wi),this}function xi(e){return this.__data__.has(e)}function tt(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new he;++t<r;)this.add(e[t])}tt.prototype.add=tt.prototype.push=Ci,tt.prototype.has=xi;function Ti(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function Si(e,t){return e.has(t)}var Pi=1,Ei=2;function Or(e,t,r,n,o,s){var a=r&Pi,i=e.length,c=t.length;if(i!=c&&!(a&&c>i))return!1;var u=s.get(e),d=s.get(t);if(u&&d)return u==t&&d==e;var h=-1,f=!0,v=r&Ei?new tt:void 0;for(s.set(e,t),s.set(t,e);++h<i;){var g=e[h],y=t[h];if(n)var w=a?n(y,g,h,t,e,s):n(g,y,h,e,t,s);if(w!==void 0){if(w)continue;f=!1;break}if(v){if(!Ti(t,function(j,E){if(!Si(v,E)&&(g===j||o(g,j,r,n,s)))return v.push(E)})){f=!1;break}}else if(!(g===y||o(g,y,r,n,s))){f=!1;break}}return s.delete(e),s.delete(t),f}function Fi(e){var t=-1,r=Array(e.size);return e.forEach(function(n,o){r[++t]=[o,n]}),r}function ji(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var Ai=1,Di=2,Oi="[object Boolean]",$i="[object Date]",Ri="[object Error]",Mi="[object Map]",Ii="[object Number]",ki="[object RegExp]",zi="[object Set]",Li="[object String]",Ni="[object Symbol]",Wi="[object ArrayBuffer]",Bi="[object DataView]",$r=_e?_e.prototype:void 0,Dt=$r?$r.valueOf:void 0;function Hi(e,t,r,n,o,s,a){switch(r){case Bi:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Wi:return!(e.byteLength!=t.byteLength||!s(new et(e),new et(t)));case Oi:case $i:case Ii:return Le(+e,+t);case Ri:return e.name==t.name&&e.message==t.message;case ki:case Li:return e==t+"";case Mi:var i=Fi;case zi:var c=n&Ai;if(i||(i=ji),e.size!=t.size&&!c)return!1;var u=a.get(e);if(u)return u==t;n|=Di,a.set(e,t);var d=Or(i(e),i(t),n,o,s,a);return a.delete(e),d;case Ni:if(Dt)return Dt.call(e)==Dt.call(t)}return!1}var Vi=1,Ui=Object.prototype,Yi=Ui.hasOwnProperty;function qi(e,t,r,n,o,s){var a=r&Vi,i=Pr(e),c=i.length,u=Pr(t),d=u.length;if(c!=d&&!a)return!1;for(var h=c;h--;){var f=i[h];if(!(a?f in t:Yi.call(t,f)))return!1}var v=s.get(e),g=s.get(t);if(v&&g)return v==t&&g==e;var y=!0;s.set(e,t),s.set(t,e);for(var w=a;++h<c;){f=i[h];var j=e[f],E=t[f];if(n)var A=a?n(E,j,f,t,e,s):n(j,E,f,e,t,s);if(!(A===void 0?j===E||o(j,E,r,n,s):A)){y=!1;break}w||(w=f=="constructor")}if(y&&!w){var z=e.constructor,W=t.constructor;z!=W&&"constructor"in e&&"constructor"in t&&!(typeof z=="function"&&z instanceof z&&typeof W=="function"&&W instanceof W)&&(y=!1)}return s.delete(e),s.delete(t),y}var Gi=1,Rr="[object Arguments]",Mr="[object Array]",rt="[object Object]",Xi=Object.prototype,Ir=Xi.hasOwnProperty;function Ki(e,t,r,n,o,s){var a=te(e),i=te(t),c=a?Mr:we(e),u=i?Mr:we(t);c=c==Rr?rt:c,u=u==Rr?rt:u;var d=c==rt,h=u==rt,f=c==u;if(f&&Je(e)){if(!Je(t))return!1;a=!0,d=!1}if(f&&!d)return s||(s=new me),a||Pt(e)?Or(e,t,r,n,o,s):Hi(e,t,c,r,n,o,s);if(!(r&Gi)){var v=d&&Ir.call(e,"__wrapped__"),g=h&&Ir.call(t,"__wrapped__");if(v||g){var y=v?e.value():e,w=g?t.value():t;return s||(s=new me),o(y,w,r,n,s)}}return f?(s||(s=new me),qi(e,t,r,n,o,s)):!1}function kr(e,t,r,n,o){return e===t?!0:e==null||t==null||!ae(e)&&!ae(t)?e!==e&&t!==t:Ki(e,t,r,n,kr,o)}function Ji(e){return function(t,r,n){for(var o=-1,s=Object(t),a=n(t),i=a.length;i--;){var c=a[++o];if(r(s[c],c,s)===!1)break}return t}}var Zi=Ji();function Ot(e,t,r){(r!==void 0&&!Le(e[t],r)||r===void 0&&!(t in e))&&Ct(e,t,r)}function Qi(e){return ae(e)&&Ke(e)}function $t(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function ea(e){return co(e,yr(e))}function ta(e,t,r,n,o,s,a){var i=$t(e,r),c=$t(t,r),u=a.get(c);if(u){Ot(e,r,u);return}var d=s?s(i,c,r+"",e,t,a):void 0,h=d===void 0;if(h){var f=te(c),v=!f&&Je(c),g=!f&&!v&&Pt(c);d=c,f||v||g?te(i)?d=i:Qi(i)?d=Jn(i):v?(h=!1,d=si(c)):g?(h=!1,d=yi(c)):d=[]:Js(c)||Tt(c)?(d=i,Tt(i)?d=ea(i):(!se(i)||Z(i))&&(d=_i(c))):h=!1}h&&(a.set(c,d),o(d,c,n,s,a),a.delete(c)),Ot(e,r,d)}function zr(e,t,r,n,o){e!==t&&Zi(t,function(s,a){if(o||(o=new me),se(s))ta(e,t,a,r,zr,n,o);else{var i=n?n($t(e,a),s,a+"",e,t,o):void 0;i===void 0&&(i=s),Ot(e,a,i)}},yr)}var ra="[object String]";function Lr(e){return typeof e=="string"||!te(e)&&ae(e)&&de(e)==ra}var na="[object Boolean]";function Rt(e){return e===!0||e===!1||ae(e)&&de(e)==na}function nt(e,t){return kr(e,t)}var oa="[object Number]";function sa(e){return typeof e=="number"||ae(e)&&de(e)==oa}function Nr(e){return e==null}function ia(e){return e===null}var le=ho(function(e,t,r){zr(e,t,r)});function aa(e,t,r,n){if(!se(e))return e;t=Bs(t,e);for(var o=-1,s=t.length,a=s-1,i=e;i!=null&&++o<s;){var c=Vs(t[o]),u=r;if(c==="__proto__"||c==="constructor"||c==="prototype")return e;if(o!=a){var d=i[c];u=void 0,u===void 0&&(u=se(d)?d:wt(t[o+1])?[]:{})}ir(i,c,u),i=i[c]}return e}function Wr(e,t,r){return e==null?e:aa(e,t,r)}function la(e){const{inherit:t=!0}=e,{extendActionsProps:r,extendAuthProps:n}=Yr(),s={...le(le({items:[],max:10},t?r:{}),e)},a={...le({auth:()=>!0},t?n:{})};return{actionsProps:s,authProps:a}}function Mt(e){return"component"in e}function Br(e){return"render"in e}function ca(e,t){const{type:r,disabled:n,items:o,max:s}=e,a=h=>{const{auth:f}=h;let v=!1;return f?te(f)?v=f.every(g=>t(g)):v=t(f):v=!0,v},i=h=>{let{ifShow:f=!0}=h;return f=f&&Z(f)?f():f,f&&a(h)},c=h=>{const{component:f,render:v,componentProps:g}=h;if(f)switch(f){case"Dropdown":{const{dropDownItems:y}=g;return!!y.length}default:return!0}return!!v},u=o.map(h=>{const f={...h};if(Mt(f)){const v=f.component;switch(f.componentProps={type:r,disabled:n,...f.componentProps},v){case"Dropdown":{f.componentProps.dropDownItems=(f.componentProps.dropDownItems||[]).filter(i);break}}}return f}).filter(i).filter(c),d=sa(s)&&s>=0;return{showActionItems:u.slice(0,d?s:u.length),ellipsisActionItems:u.slice(d?s:u.length)}}const ua=e=>{const{componentProps:t}=e,r=()=>{const{...n}=t;return n};return m.jsx(S.Button,{...r()})},fa=e=>{const{componentProps:t}=e,n=(()=>{const{dropDownItems:o,onClick:s,...a}=t;return a})();return m.jsx(S.Dropdown,{disabled:n.disabled,menu:{items:t==null?void 0:t.dropDownItems,onClick:t==null?void 0:t.onClick},trigger:["click"],children:m.jsx("div",{children:m.jsxs(S.Button,{...n,children:[n.children,m.jsx(ue.CaretDownOutlined,{})]})})})},ot=new Map;ot.set("Button",ua),ot.set("Dropdown",fa);function Hr(){const{setExtendActionsComp:e}=Yr();return e(ot),{renderContent:p.useCallback((r,n)=>{const o=Mt(r),s=Br(r);if(o){const a=ot.get(r.component);return p.createElement(a,{...r,key:n})}return s?m.jsx("div",{children:r.render},n):null},[])}}const Vr=p.createContext({}),da=e=>{const{extendProps:t,extendComp:r}=e.value;return m.jsx(Vr.Provider,{value:{extendProps:t,extendComp:r},children:e.children})},je=()=>p.useContext(Vr),Ur=e=>{const[t,r]=p.useState(e),n=p.useRef(null);return p.useEffect(()=>{n.current&&(n.current(),n.current=null)},[t]),[t,s=>new Promise((a,i)=>{r(c=>{const u=typeof s=="function"?s(c):s;return n.current=a,u})})]},Yr=()=>{const{extendProps:e,extendComp:t}=je(),r=n=>{const o=t==null?void 0:t.actions;o&&Object.keys(o).forEach(s=>{n.set(s,o[s])})};return{extendAuthProps:e==null?void 0:e.auth,extendActionsProps:e==null?void 0:e.actions,setExtendActionsComp:r}},{useToken:pa}=S.theme,ga=({items:e,actionsProps:t})=>{const{type:r,disabled:n}=t,{renderContent:o}=Hr(),{token:s}=pa(),a={backgroundColor:s.colorBgElevated,borderRadius:s.borderRadiusLG,boxShadow:s.boxShadowSecondary},i=()=>m.jsx("div",{style:a,children:m.jsx(S.Space,{style:{padding:8},children:e==null?void 0:e.map((c,u)=>o(c,u))})});return m.jsx(S.Dropdown,{disabled:n,menu:{items:[]},dropdownRender:i,trigger:["click"],children:m.jsxs(S.Button,{type:r,children:["更多",m.jsx(ue.CaretDownOutlined,{})]})})},st=e=>{const{actionsProps:t,authProps:r}=la(e),{auth:n}=r,{showActionItems:o,ellipsisActionItems:s}=ca(t,n),{renderContent:a}=Hr();return t!=null&&t.render?t.render:m.jsxs(p.Fragment,{children:[o==null?void 0:o.map((i,c)=>a(i,c)),s!=null&&s.length?m.jsx(ga,{actionsProps:t,items:s}):null]})};function ha(e,t){const{okText:r,cancelText:n,onCancel:o,onOk:s,okProps:a,cancelProps:i}=e;return{footerActions:{disabled:t,max:2,items:[{component:"Button",componentProps:{...i,children:n,onClick:o}},{component:"Button",componentProps:{type:"primary",loading:t,...a,children:r,onClick:s}}]}}}const ma=e=>{const{extendDialogProps:t}=ba(),r={width:700,okText:"确定",cancelText:"取消",getPopperContainer:()=>document.body},n={...le(le(r,t),e)};return{dialogProps:{...n,getPopperContainer:()=>{const s=n.getPopperContainer();return n.mask?document.body:s}},baseDialogProps:r}},ba=()=>{const{extendProps:e}=je();return{extendDialogProps:e==null?void 0:e.dialog}},va=(e,t,r,n)=>{const{onOpen:o,onClose:s}=t;return{open:async()=>{e||(o&&o(),await r(!0))},close:()=>{r(!1),n(!1),s&&s()}}},ya=({initWidth:e,initHeight:t,setDialogChangeRecord:r})=>{const[n,o]=p.useState(e.current),[s,a]=p.useState(t.current);return{dialogWidth:n,dialogHeight:s,setDialogSize:({width:c,height:u})=>{r({width:n,height:s}),c!==void 0&&o(c),u!==void 0&&a(u)}}},_a=({initLeft:e,initTop:t,setDialogChangeRecord:r})=>{const[n,o]=p.useState(e.current),[s,a]=p.useState(t.current);return{dialogLeft:n,dialogTop:s,setDialogPosition:({left:c,top:u})=>{r({left:n,top:s}),c!==void 0&&o(c),u!==void 0&&a(u)}}},qr=({containerSizeTarget:e,dialogHeaderRef:t,dialogRef:r,setDialogPosition:n})=>{const o=p.useRef(0),s=p.useRef(0),a=d=>{const h=d.getBoundingClientRect(),f=h.width,v=h.height,g=-.5*f,y=-.5*v;return{translateX:g,translateY:y}},i=p.useCallback(d=>{const{offsetLeft:h,offsetTop:f}=r.current;o.current=d.clientX-h,s.current=d.clientY-f,document.addEventListener("mousemove",c),document.addEventListener("mouseup",u)},[]),c=p.useCallback(d=>{const h=r.current,{translateX:f,translateY:v}=a(h);let g=d.clientX-o.current,y=d.clientY-s.current;const w=-f,j=-v,E=e.current.scrollWidth-h.offsetWidth-f,A=e.current.scrollHeight-h.offsetHeight-v;g<w&&(g=w),g>E&&(g=E),y<j&&(y=j),y>A&&(y=A),n({left:g,top:y})},[]),u=p.useCallback(()=>{document.removeEventListener("mousemove",c),document.removeEventListener("mouseup",u)},[]);return p.useEffect(()=>{const d=t.current;return d.addEventListener("mousedown",i),()=>{d.removeEventListener("mousedown",i)}},[]),{}},wa=({containerSizeTarget:e,dialogChangeRecord:t,close:r,setDialogSize:n,setDialogPosition:o})=>{const[s,a]=p.useState(!1),[i,c]=p.useState(!1);return{minimizeVisible:s,maximizeVisible:i,setMinimizeVisible:a,setMaximizeVisible:c,onMinimize:()=>{a(!0)},onMaximize:v=>{if(v==="minimize"&&a(!1),v==="maximize"){const{scrollWidth:g,scrollHeight:y}=e.current,w=Math.floor(g),j=Math.floor(y),E=Math.floor(g/2),A=Math.floor(y/2);n({width:w,height:j}),o({top:A,left:E}),c(!0)}},onRecovery:()=>{const{top:v,left:g,width:y,height:w}=t.current;n({width:y,height:w}),o({top:v,left:g}),c(!1)},onClose:()=>{a(!1),r()}}},Ca=({visible:e,containerSizeTarget:t,dialogHeight:r,dialogRef:n,dialogHeaderRef:o,dialogFooterRef:s})=>{const{clientHeight:a,scrollHeight:i}=t.current,[c,u]=p.useState(0),[d,h]=p.useState("unset"),f=(v,g)=>{var W,q;const j=(W=o.current)==null?void 0:W.offsetHeight,E=(q=s.current)==null?void 0:q.offsetHeight;let A=v-j-E-0;const z=g-j-E-0;return A>z&&(A=z),A};return p.useEffect(()=>{var v;if(c===a){console.log("触发了dialogMaxHeight改变");const g=(v=n.current)==null?void 0:v.getBoundingClientRect().height;h(f(g,a)),u("unset")}},[c]),p.useEffect(()=>{r!=="unset"&&r!==0&&(console.log("触发了重新设置contentMaxHeight",r),h(f(r,r>a?i:a)),u("unset"))},[r]),p.useEffect(()=>{e?u(a):(u(0),h("unset"))},[e]),{dialogMaxHeight:c,contentMaxHeight:d}},xa=()=>{const[e,t]=p.useState(160),[r,n]=p.useState(60),o=p.useRef(null);return{minimizeTop:r,minimizeLeft:e,minimizeRef:o,setMinimizePosition:({left:a,top:i})=>{a!==void 0&&t(a),i!==void 0&&n(i)}}},Ta=({visible:e,dialogRef:t,minimizeRef:r,container:n})=>{const o={xphDialog:"xph--dialog",xphDialogWrapper:"xph--dialog--wrapper",xphMinimizeDialog:"xph--dialog--minimize"},s=(i,c)=>{console.log("触发插入"),i.querySelector(`.${o.xphDialogWrapper}`).style.opacity="unset",i.querySelector(`.${o.xphMinimizeDialog}`).style.opacity="unset",c.querySelector(`.${o.xphDialogWrapper}`).style.opacity=.7,c.querySelector(`.${o.xphMinimizeDialog}`).style.opacity=.7;const u=document.createElement("div");u.style.visibility="hidden",c.parentNode.insertBefore(u,c.nextSibling),c.parentNode.insertBefore(i,u),c.parentNode.removeChild(u)},a=i=>{var d,h;const c=Array.from(n.querySelectorAll(`.${o.xphDialog}`)).filter(f=>(f==null?void 0:f.parentNode)===n),u=c[c.length-1];if(((d=t.current)==null?void 0:d.parentNode)!==u&&(s((h=t.current)==null?void 0:h.parentNode,u),i)){const f=i.target;f.tagName==="INPUT"&&f.focus&&f.focus()}};return p.useEffect(()=>{var i,c;return(i=t.current)==null||i.addEventListener("mousedown",a,!1),(c=r.current)==null||c.addEventListener("mousedown",a,!1),()=>{var u,d;(u=t.current)==null||u.removeEventListener("mousedown",a,!1),(d=r.current)==null||d.removeEventListener("mousedown",a,!1)}},[]),p.useEffect(()=>{if(e)a();else{const i=Array.from(n.querySelectorAll(`.${o.xphDialog}`)).filter(f=>(f==null?void 0:f.parentNode)===n),c=i.map(f=>f.querySelector(`.${o.xphDialogWrapper}`)).filter(f=>f!==null),u=i.map(f=>f.querySelector(`.${o.xphMinimizeDialog}`)).filter(f=>f!==null),d=c.filter(f=>f.style.display==="flex"),h=u.filter(f=>f.style.display==="flex");if(d.length){s(d[d.length-1].parentNode,i[i.length-1]);return}if(h.length){s(h[h.length-1].parentNode,i[i.length-1]);return}}},[e]),{dialogTopShowClassConfig:o}},Sa=({initWidth:e,initHeight:t,curPropsWidth:r,curPropsHeight:n,setParentInitRecord:o})=>{p.useEffect(()=>{if(r!==e.current){console.log("动态设置了宽度"),o(s=>s+1);return}if(n!==t.current){console.log("动态设置了高度"),o(s=>s+1);return}},[r,n])},Pa=()=>{const e=p.useRef({left:0,top:0,width:0,height:0});return{dialogChangeRecord:e,setDialogChangeRecord:({left:r,top:n,width:o,height:s})=>{const{left:a,top:i,width:c,height:u}=e.current;e.current={left:r??a,top:n??i,width:o??c,height:s??u}}}},Ea=({containerSizeTarget:e,dialogRef:t,minResizeRecord:r,setDialogSize:n,setDialogPosition:o,setMinResizeRecord:s})=>{const a=p.useCallback(()=>m.jsx("div",{ref:i,style:{position:"absolute",border:"4px dashed #ccc",display:"none"}}),[]),i=p.useRef(null),c=p.useRef(),u=p.useRef(!1),[d,h]=p.useState(!1),f=p.useRef(0),v=p.useRef(0),g=(x,T)=>{r.current||s({width:t.current.offsetWidth,height:t.current.offsetHeight}),u.current=!0,h(!0),c.current=T;const{clientX:C,clientY:P}=x;f.current=C,v.current=P;const D=parseFloat(t.current.style.left),$=parseFloat(t.current.style.top),R=t.current.offsetWidth,k=t.current.offsetHeight;i.current.style.display="block",i.current.style.left=`${D-.5*R}px`,i.current.style.top=`${$-.5*k}px`,i.current.style.width=`${R}px`,i.current.style.height=`${k}px`},y=x=>{if(u.current){const{clientX:T,clientY:C}=x,P=T-f.current,D=C-v.current,$=parseFloat(i.current.style.left),R=parseFloat(i.current.style.top),k=i.current.offsetWidth,Q=i.current.offsetHeight,ne=r.current.width,ve=r.current.height,pe=e.current.scrollWidth,ce=e.current.scrollHeight;let B=k,H=Q,Y=$,X=R;switch(c.current){case"lt":{B=B-P,H=H-D,X=X+D,Y=Y+P,B<ne&&(B=k,Y=$),H<ve&&(H=Q,X=R),Y<0&&(Y=0,B=k),X<0&&(X=0,H=Q);break}case"rt":{B=B+P,H=H-D,X=X+D,Y=$,B<ne&&(B=k),H<ve&&(H=Q,X=R),B>pe-Y&&(B=pe-Y),X<0&&(X=0,H=Q);break}case"rb":{B=B+P,H=H+D,X=R,Y=$,B<ne&&(B=k),H<ve&&(H=Q),B>pe-Y&&(B=pe-Y),H>ce-X&&(H=ce-X);break}case"lb":{B=B-P,H=H+D,X=R,Y=Y+P,B<ne&&(B=k,Y=$),H<ve&&(H=Q),Y<0&&(Y=0,B=k),H>ce-X&&(H=ce-X);break}}i.current.style.left=`${Y}px`,i.current.style.top=`${X}px`,i.current.style.width=`${B}px`,i.current.style.height=`${H}px`,f.current=T,v.current=C}},w=()=>{if(u.current){u.current=!1,h(!1),i.current.style.display="none";const{left:x,top:T,width:C,height:P}=i.current.style,D=parseFloat(x)+.5*parseFloat(C),$=parseFloat(T)+.5*parseFloat(P),R=parseFloat(C),k=parseFloat(P);o({left:D,top:$}),n({width:R,height:k})}},j=x=>g(x,"lt"),E=x=>g(x,"rt"),A=x=>g(x,"rb"),z=x=>g(x,"lb"),W=p.useCallback(x=>{y(x)},[]),q=p.useCallback(()=>{w()},[]),G=p.useCallback(()=>{w()},[]);return p.useEffect(()=>(document.body.addEventListener("mousemove",W),document.body.addEventListener("mouseup",q),document.body.addEventListener("mouseleave",G),()=>{document.body.removeEventListener("mousemove",W),document.body.removeEventListener("mouseup",q),document.body.removeEventListener("mouseleave",G)}),[]),{resizingState:d,DashedBox:a,onMousedownResizeLt:j,onMousedownResizeRt:E,onMousedownResizeRb:A,onMousedownResizeLb:z}},Fa=({container:e,dialogProps:t,baseDialogProps:r})=>{const[n,o]=p.useState(0),s=()=>{o(x=>x+1)};p.useEffect(()=>(window.addEventListener("resize",s),()=>{window.removeEventListener("resize",s)}),[]);const{containerSizeTarget:a,setContainerSizeTarget:i}=Aa({container:e}),{width:c,height:u}=r,{width:d,height:h}=t,f=d||c,v=h||u,{clientWidth:g,clientHeight:y}=a.current,w=f?f>g?g:f:0,j=v?v>y?y:v:"unset",E=p.useRef(w),A=p.useRef(j),z=x=>{E.current=x.width,A.current=x.height},W=p.useRef(Math.floor(g/2)),q=p.useRef(Math.floor(y/2)),G=x=>{W.current=x.left,q.current=x.top};return p.useEffect(()=>{i(),z({width:w,height:j}),G({left:Math.floor(g/2),top:Math.floor(y/2)})},[n]),{containerSizeTarget:a,parentInitRecord:n,initLeft:W,initTop:q,initWidth:E,initHeight:A,curPropsWidth:w,curPropsHeight:j,setInitPosition:G,setInitSize:z,setParentInitRecord:o}},ja=()=>{const e=p.useRef(null);return{minResizeRecord:e,setMinResizeRecord:r=>{e.current=r}}},Aa=({container:e})=>{const t=e===document.body,r=p.useRef({clientWidth:t?window.innerWidth:e.clientWidth,clientHeight:t?window.innerHeight:e.clientHeight,scrollWidth:t?window.innerWidth:e.scrollWidth,scrollHeight:t?window.innerHeight:e.scrollHeight});return{containerSizeTarget:r,setContainerSizeTarget:()=>{r.current={clientWidth:t?window.innerWidth:e.clientWidth,clientHeight:t?window.innerHeight:e.clientHeight,scrollWidth:t?window.innerWidth:e.scrollWidth,scrollHeight:t?window.innerHeight:e.scrollHeight}}}},It={"minimize-windows":"_minimize-windows_12u3y_1","minimize-windows-title":"_minimize-windows-title_12u3y_43","minimize-windows-operate":"_minimize-windows-operate_12u3y_55"},Da=({onClick:e})=>m.jsx(S.Button,{type:"link",onClick:e,icon:m.jsx(ue.ShrinkOutlined,{style:{fontSize:"22px",cursor:"pointer"}})}),Gr=({onClick:e})=>m.jsx(S.Button,{type:"link",onClick:e,icon:m.jsx(ue.FullscreenOutlined,{style:{fontSize:"22px",cursor:"pointer"}})}),Oa=({onClick:e})=>m.jsx(S.Button,{type:"link",onClick:e,icon:m.jsx(ue.FullscreenExitOutlined,{style:{fontSize:"22px",cursor:"pointer"}})}),Xr=({onClick:e,disabled:t})=>m.jsx(S.Button,{type:"link",onClick:e,disabled:t,icon:m.jsx(ue.CloseOutlined,{style:{fontSize:"22px",cursor:"pointer"}})}),{useToken:$a}=S.theme,Ra=p.forwardRef(({title:e,left:t,top:r,visible:n,loading:o,onMaximize:s,onClosesquare:a,className:i},c)=>{const{token:u}=$a(),d={borderRadius:u.borderRadiusLG};return m.jsxs("div",{style:{display:n?"flex":"none",left:t,top:r,...d},className:`${It["minimize-windows"]} ${i}`,ref:c,children:[m.jsx("div",{className:It["minimize-windows-title"],title:e,children:e}),m.jsxs("div",{className:It["minimize-windows-operate"],children:[m.jsx(Gr,{onClick:s}),m.jsx(Xr,{onClick:a,disabled:o})]})]})}),re={"xph-dialog-mask":"_xph-dialog-mask_o2yvb_1","xph-dialog-wrapper":"_xph-dialog-wrapper_o2yvb_23",dialog__header:"_dialog__header_o2yvb_45","dialog__header-btns":"_dialog__header-btns_o2yvb_63",dialog__main:"_dialog__main_o2yvb_71",dialog__footer:"_dialog__footer_o2yvb_85",dialog__resize:"_dialog__resize_o2yvb_99","dialog__resize-lt":"_dialog__resize-lt_o2yvb_113","dialog__resize-rt":"_dialog__resize-rt_o2yvb_125","dialog__resize-rb":"_dialog__resize-rb_o2yvb_137","dialog__resize-lb":"_dialog__resize-lb_o2yvb_149"},{useToken:Ma}=S.theme,Ia=p.forwardRef((e,t)=>{console.log("render Dialog==============================================");const{token:r}=Ma(),n={borderRadius:r.borderRadiusLG},{children:o,baseDialogProps:s,mask:a,title:i,renderFooter:c,renderTitle:u,getPopperContainer:d}=e,h=d(),[f,v]=Ur(!1),[g,y]=p.useState(!1),{open:w,close:j}=va(f,e,v,y),{footerActions:E}=ha(e,g),A=p.useRef(null),z=p.useRef(null),W=p.useRef(null),q=p.useRef(null),{containerSizeTarget:G,parentInitRecord:x,initLeft:T,initTop:C,initWidth:P,initHeight:D,curPropsWidth:$,curPropsHeight:R,setParentInitRecord:k}=Fa({container:h,dialogProps:e,baseDialogProps:s}),{dialogChangeRecord:Q,setDialogChangeRecord:ne}=Pa(),{dialogWidth:ve,dialogHeight:pe,setDialogSize:ce}=ya({initWidth:P,initHeight:D,setDialogChangeRecord:ne}),{dialogLeft:B,dialogTop:H,setDialogPosition:Y}=_a({initTop:C,initLeft:T,setDialogChangeRecord:ne}),{dialogMaxHeight:X,contentMaxHeight:zt}=Ca({visible:f,containerSizeTarget:G,dialogHeight:pe,dialogRef:A,dialogHeaderRef:z,dialogFooterRef:q}),{minResizeRecord:He,setMinResizeRecord:Ae}=ja(),{minimizeLeft:De,minimizeTop:Ve,minimizeRef:ye,setMinimizePosition:ut}=xa(),{minimizeVisible:Ue,maximizeVisible:Lt,setMaximizeVisible:Nt,onMaximize:Se,onMinimize:Pe,onRecovery:ft,onClose:Oe}=wa({containerSizeTarget:G,dialogChangeRecord:Q,close:j,setDialogSize:ce,setDialogPosition:Y}),$e=()=>{console.log("触发了initDialog"),ce({width:P.current,height:D.current}),Y({left:T.current,top:C.current}),ut({left:160,top:60}),Nt(!1),Ae(null)};p.useEffect(()=>{$e()},[x]),Sa({initWidth:P,initHeight:D,curPropsWidth:$,curPropsHeight:R,setParentInitRecord:k}),qr({containerSizeTarget:G,dialogHeaderRef:z,dialogRef:A,setDialogPosition:Y}),qr({containerSizeTarget:G,dialogHeaderRef:ye,dialogRef:ye,setDialogPosition:ut});const{dialogTopShowClassConfig:Ye}=Ta({visible:f,container:h,dialogRef:A,minimizeRef:ye}),{resizingState:qe,DashedBox:Wt,onMousedownResizeLt:Bt,onMousedownResizeRt:dt,onMousedownResizeRb:pt,onMousedownResizeLb:Ee}=Ea({containerSizeTarget:G,dialogRef:A,minResizeRecord:He,setDialogSize:ce,setDialogPosition:Y,setMinResizeRecord:Ae});return p.useImperativeHandle(t,()=>({open:w,close:Oe,setLoading:y,getVisible:()=>f})),m.jsxs("div",{className:Ye.xphDialog,children:[a&&f?m.jsx("div",{className:re["xph-dialog-mask"]}):null,m.jsx(Ra,{visible:Ue,className:`${Ye.xphMinimizeDialog}`,loading:g,ref:ye,left:De,top:Ve,title:i,onMaximize:()=>Se("minimize"),onClosesquare:Oe}),m.jsxs("div",{ref:A,className:`${re["xph-dialog-wrapper"]} ${Ye.xphDialogWrapper}`,style:{display:f&&!Ue?"flex":"none",left:B,top:H,width:ve,height:pe,maxHeight:X,opacity:qe?.2:"unset",...n},children:[m.jsxs("div",{ref:z,className:re.dialog__header,children:[m.jsx("div",{children:u?u():i}),m.jsxs("div",{className:re["dialog__header-btns"],children:[m.jsx(Da,{onClick:Pe}),Lt?m.jsx(Oa,{onClick:ft}):m.jsx(Gr,{onClick:()=>Se("maximize")}),m.jsx(Xr,{onClick:Oe,disabled:g})]})]}),m.jsx("div",{ref:W,className:re.dialog__main,style:{maxHeight:zt},children:m.jsx(S.Spin,{spinning:g,children:f?o:null})}),c?m.jsx("div",{ref:q,children:c({loading:g})}):m.jsx("div",{ref:q,className:re.dialog__footer,children:m.jsx(st,{...E})}),m.jsx("div",{className:`${re.dialog__resize} ${re["dialog__resize-lt"]}`,onMouseDown:Bt}),m.jsx("div",{className:`${re.dialog__resize} ${re["dialog__resize-rt"]}`,onMouseDown:dt}),m.jsx("div",{className:`${re.dialog__resize} ${re["dialog__resize-rb"]}`,onMouseDown:pt}),m.jsx("div",{className:`${re.dialog__resize} ${re["dialog__resize-lb"]}`,onMouseDown:Ee})]}),m.jsx(Wt,{})]})}),ka=(e,t)=>{const{children:r,...n}=e,{baseDialogProps:o,dialogProps:s}=ma(n),{getPopperContainer:a}=s;return console.log("render XphDialog=============================================="),m.jsx(Jr,{getPopperContainer:a,children:m.jsx(Ia,{...s,baseDialogProps:o,ref:t,children:r})})},Kr=p.forwardRef(ka),Jr=({children:e,getPopperContainer:t})=>{const[r,n]=p.useState(null);return p.useEffect(()=>{const o=t();n(o)},[]),r?vn.createPortal(e,r):null};function za(e){const{extendAuthProps:t}=La();return{authProps:{...le(le({auth:o=>!1},t),e)}}}const La=()=>{const{extendProps:e}=je();return{extendAuthProps:e==null?void 0:e.auth}},Na=e=>{const{children:t,...r}=e,{authProps:n}=za(r),{auth:o,authCode:s}=n;return(()=>{let i=!1;return s&&o&&(te(s)?i=s.every(c=>o(c)):i=o(s)),i})()?t:null};function it(e){return"component"in e}function at(e){return"render"in e}function Wa(e){return e.includes("Input")||e.includes("Complete")?"请输入":e.includes("Picker")||e.includes("Select")||e.includes("Cascader")||e.includes("Checkbox")||e.includes("Radio")||e.includes("Switch")?"请选择":""}function Ba(e,t,r){["DatePicker","MonthPicker","WeekPicker","TimePicker"].includes(t)?e.type=r?"string":"object":["RangePicker","Upload","CheckboxGroup","TimePicker"].includes(t)?e.type="array":["InputNumber"].includes(t)&&(e.type="number")}const Ha=["DatePicker","MonthPicker","RangePicker","WeekPicker","TimePicker"],Va=e=>{const{show:t,ifShow:r,required:n,disabled:o,componentProps:s}=e;return!!(Z(t)||Z(r)||Z(n)||Z(o)||Z(s)||at(e))},Ua=e=>["application/json","application/javascript","text/plain","text/html","text/css"].includes(e)?`${e}; charset=utf-8`:e,Ya=(e,t,r)=>{const n=p.useRef(null),o=p.useRef(null),{handleCollapseChangeFalse:s}=r.current||{},{show:a,ifShow:i}=e;let c=!0,u=!0;if(Rt(a)&&(c=a),Rt(i)&&(u=i),Z(a)){c=a({model:t});const d=Nr(n.current)?c:n.current;p.useEffect(()=>{nt(c,d)||s&&s()},[t])}if(Z(i)){u=i({model:t});const d=Nr(o.current)?u:o.current;p.useEffect(()=>{nt(u,d)||s&&s()},[t])}return n.current=c,o.current=u,{isShow:c,isIfShow:u}},qa=(e,t)=>{const{collapsible:r,collapseNum:n}=e,[o,s]=p.useState(!!(r&&t>=n));return{itemCollapse:o,setItemCollapse:s}},Ga=({item:e,model:t,isShow:r,componentProps:n})=>{const{rules:o=[],label:s,required:a}=e;let i=o;const c=it(e),u=c?Wa(e.component)+s:"";function d(g,y){const w=g.message||u;return y===void 0||ia(y)||Array.isArray(y)&&y.length===0||typeof y=="string"&&y.trim()===""||typeof y=="object"&&Reflect.has(y,"checked")&&Reflect.has(y,"halfChecked")&&Array.isArray(y.checked)&&Array.isArray(y.halfChecked)&&y.checked.length===0&&y.halfChecked.length===0?Promise.reject(w):Promise.resolve()}const h=Z(a)?a({model:t}):a;h&&(!i||i.length===0?i=[{required:h,validator:d}]:i.findIndex(y=>Reflect.has(y,"required"))===-1&&i.push({required:h,validator:d}));const f=i.findIndex(g=>Reflect.has(g,"required")&&!Reflect.has(g,"validator"));if(f!==-1){const g=i[f];if(r||(g.required=!1),c){const{component:y}=e;Reflect.has(g,"type")||(g.type=y==="InputNumber"?"number":"string"),g.message=g.message||u,(y.includes("Input")||y.includes("Textarea"))&&(g.whitespace=!0);const w=n.valueFormat;Ba(g,y,w)}}const v=i.findIndex(g=>g.max);return v!==-1&&!i[v].validator&&(i[v].message=i[v].message||`字符数应小于${i[v].max}位`),{rules:i}},Xa=(e,t,r)=>{const{disabled:n}=e;let o=!1;const{disabled:s}=t;return Z(s)&&(o=s({model:r})),Rt(s)&&(o=s),{disabled:Reflect.has(t,"disabled")?o:n}},Ka=(e,t)=>{const r={},{componentProps:n={}}=e;return Z(n)&&Object.assign(r,n({model:t})),Object.assign(r,n),{componentProps:r}},Ja=(e,t)=>{const{colProps:r={}}=e,{colProps:n={span:24}}=t;return{colProps:{...n,...r}}},Za=({formProps:e})=>{const{items:t}=e;return{formItems:t.map(n=>({...n}))}},Qa=(e,t)=>{const r=i=>(Object.keys(i).forEach(c=>{Object.defineProperty(i,c,{value:i[c],writable:!1,enumerable:!0,configurable:!1})}),i),n={};e.items.forEach(i=>{n[i.name]=i.initialValue});const o=Va(t),s=o?S.Form.useWatch(i=>r(i)):null;return{rewritingModel:p.useMemo(()=>s||r(n),[s]),isusewatch:o}},el=()=>{const e=p.useRef(null);function t(n){e.current=n}const r={getFieldsValue:(...n)=>{if(!e.current)throw new Error("表单还没初始化完成");return e.current.getFieldsValue(...n)},setFieldsValue:(...n)=>{if(!e.current)throw new Error("表单还没初始化完成");return e.current.setFieldsValue(...n)},resetFields:(...n)=>{if(!e.current)throw new Error("表单还没初始化完成");return e.current.resetFields(...n)},validator:(...n)=>{if(!e.current)throw new Error("表单还没初始化完成");return e.current.validator(...n)},scrollToField:(...n)=>{if(!e.current)throw new Error("表单还没初始化完成");return e.current.scrollToField(...n)}};return p.useEffect(()=>(console.log("ParentComponent is mounted====================================="),()=>{console.log("ParentComponent is unmounted===================================="),e.current=null}),[]),[t,r]};function tl(e,t={}){const r=/^\[(.+)\]$/;if(r.test(e)){const n=e.match(r);if(n&&n[1]){const o=n[1].split(",");if(!o.length)return;const s=[];return o.forEach((a,i)=>{Wr(s,i,t[a.trim()])}),s.filter(Boolean).length?s:void 0}}}function rl(e,t={}){const r=/^\{(.+)\}$/;if(r.test(e)){const n=e.match(r);if(n&&n[1]){const o=n[1].split(",");if(!o.length)return;const s={};return o.forEach(a=>{Wr(s,a.trim(),t[a.trim()])}),Object.values(s).filter(Boolean).length?s:void 0}}}function nl(e,t){const r=t.fieldMapToTime;if(!r||!Array.isArray(r))return e;for(const[n,[o,s],a="YYYY-MM-DD"]of r){if(!n||!o||!s)continue;if(!e[n]){Reflect.deleteProperty(e,n);continue}const[i,c]=e[n],[u,d]=Array.isArray(a)?a:[a,a];e[o]=Ge(i).format(u),e[s]=Ge(c).format(d),Reflect.deleteProperty(e,n)}return e}const ol=(e,t,r)=>{const n=e.filter(a=>a.name);return{handleFormatRenderValues:a=>{const i={},c=[];return n.forEach(u=>{const d=Reflect.has(a,u.name),h=tl(u.name,a)||rl(u.name,a);if(d||h){const f=h||a[u.name];if(it(u))if(Ha.includes(u.component)){if(te(f)){const v=[];for(const g of f)v.push(g?Ge(g):null);i[u.name]=v}else i[u.name]=f?Ge(f):null;c.push(u.name)}else i[u.name]=f,c.push(u.name);at(u)&&(i[u.name]=f,c.push(u.name))}}),{renderValues:i,validKeys:c}},handleFormatReturnValues:a=>{var c,u,d,h,f;if(!se(a))return{};const i={};for(const v of Object.entries(a)){let[,g]=v;const[y]=v;if(!y||Z(g))continue;const{transformDateFunc:w}=t,j=(d=(u=(c=r.current)==null?void 0:c.get(y))==null?void 0:u.current)==null?void 0:d.componentProps,E=j==null?void 0:j.valueFormat;if(se(g)){const A=g;A.format&&(g=w==null?void 0:w(A,E))}te(g)&&((h=g[0])!=null&&h.format)&&((f=g[1])!=null&&f.format)&&(g=g.map(A=>w==null?void 0:w(A,E))),Lr(g)&&(g===""?g=void 0:g=g.trim()),i[y]=g}return nl(i,t)}}},sl=(e,t,r)=>({getFieldsValue:(...c)=>r(e.getFieldsValue(...c)),setFieldsValue:c=>{const{renderValues:u,validKeys:d}=t(c);e.setFieldsValue(u),e.validateFields(d)},resetFields:async()=>e.resetFields(),validator:async c=>e.validateFields(c).then(u=>r(u)),scrollToField:async(c,u)=>e.scrollToField(c,u)}),il=e=>{const{extendFormProps:t}=Zr();return{formProps:{...le(le({collapseNum:5,colon:!1,items:[],labelWrap:!0,transformDateFunc:(o,s)=>{var a;return((a=o==null?void 0:o.format)==null?void 0:a.call(o,s||"YYYY-MM-DD HH:mm:ss"))??o},fieldMapToTime:[]},t),e)}}},lt=e=>{const{immediate:t=!0,params:r,api:n,apiCallback:o,isUseWatch:s}=e,a=p.useRef(!0),i=p.useRef(r),c=()=>{n&&Z(n)&&(r?n(r).then(o):n().then(o),i.current=r)};return p.useEffect(()=>{a.current&&(t&&c(),a.current=!1),!a.current&&s&&(nt(r,i.current)||t&&c())},[r]),{getApiData:c}},al=(e,t)=>{const{collapsible:r,collapseNum:n}=e,o=p.useRef();return{collapsible:r,collapseNum:n,collapseRef:o,onClickCollapseToTrue:()=>{var i;(i=t.current)==null||i.forEach(c=>{if(c.current){const{itemIndex:u}=c.current;u>=n&&r&&c.current.setItemCollapse(!0)}})},onClickCollapseToFalse:()=>{var i;(i=t.current)==null||i.forEach(c=>{if(c.current){const{itemCollapse:u}=c.current;u&&c.current.setItemCollapse(!1)}})}}},Zr=()=>{const{extendProps:e,extendComp:t}=je(),r=n=>{const o=t==null?void 0:t.form;o&&Object.keys(o).forEach(s=>{n.set(s,o[s])})};return{extendFormProps:e==null?void 0:e.form,setExtendFormComp:r}},ll=e=>{console.log("render ApiSelect");const{api:t,params:r,immediate:n=!0,isusewatch:o,onDropdownVisibleChange:s}=e,a=o==="true",[i,c]=p.useState([]),{getApiData:u}=lt({api:t,immediate:n,params:r,apiCallback:c,isUseWatch:a}),d=f=>{f&&!n&&u(),s&&s(f)},h=()=>{const{api:f,params:v,immediate:g,isusewatch:y,...w}=e;return w};return m.jsx(S.Select,{...h(),options:i,onDropdownVisibleChange:d})},cl=e=>{console.log("render ApiTreeSelect");const{api:t,params:r,immediate:n=!0,isusewatch:o,onDropdownVisibleChange:s}=e,a=o==="true",[i,c]=p.useState([]),{getApiData:u}=lt({api:t,immediate:n,params:r,apiCallback:c,isUseWatch:a}),d=f=>{f&&!n&&u(),s&&s(f)},h=()=>{const{api:f,params:v,immediate:g,isusewatch:y,...w}=e;return w};return m.jsx(S.TreeSelect,{...h(),treeData:i,onDropdownVisibleChange:d})},ul=e=>{console.log("render ApiTransfer");const{api:t,params:r,isusewatch:n}=e,o=n==="true",[s,a]=p.useState([]);lt({api:t,params:r,apiCallback:a,isUseWatch:o});const i=()=>{const{api:c,params:u,isusewatch:d,...h}=e;return h};return m.jsx(S.Transfer,{...i(),dataSource:s})},fl=e=>{console.log("render ApiAutoComplete");const{api:t,params:r,immediate:n=!0,isusewatch:o,onDropdownVisibleChange:s}=e,a=o==="true",[i,c]=p.useState([]),{getApiData:u}=lt({api:t,immediate:n,params:r,apiCallback:c,isUseWatch:a}),d=f=>{f&&!n&&u(),s&&s(f)},h=()=>{const{api:f,params:v,immediate:g,isusewatch:y,...w}=e;return w};return m.jsx(S.AutoComplete,{...h(),options:i,onDropdownVisibleChange:d})},be={String:"String","String[]":"String[]","File[]":"File[]",FileList:"FileList"},dl=e=>{console.log("render AutoUpload"),console.log(ht());const t="",{api:r,maxCount:n=1,maxSize:o=2,listType:s="picture-card",openCrop:a=!1,data:i,returnType:c=be.String,value:u=t,onChange:d}=e,h=p.useRef(!0),f=p.useRef(0),v=p.useRef([]),[g,y]=p.useState([]),w=x=>{v.current=x,y([...x])},j=()=>{const{api:x,maxCount:T,maxSize:C,openCrop:P,beforeUpload:D,fileList:$,returnType:R,...k}=e;return k},E=x=>{const T=x.size/1024/1024<o;T||S.message.error(`文件大小超过:${o}M, 请重试`);const C=v.current.length+f.current<n;return C||S.message.error(`文件数量不能超过${n}个`),T&&C&&f.current++,T&&C&&A(x),S.Upload.LIST_IGNORE},A=x=>{a?(S.message.error("暂时不支持裁剪功能,后续兼容。。。。"),z({file:x})):z({file:x})},z=x=>{r?r({file:x.file,...i}).then(T=>{w([...v.current,...T])}).finally(()=>{f.current--}):(Object.assign(x.file,{status:"done",url:URL.createObjectURL(new Blob([x.file],{type:Ua(x.file.type)}))}),w([...v.current,x.file]),f.current--)},W=x=>{const{file:T,fileList:C}=x,{status:P}=T;switch(P){case"removed":{w([...C]);break}}},q=x=>{const T=P=>{const D=P.split("/"),$=D[D.length-1],[R]=$.split("?");return R};return{uid:(P=>{const D=v.current.find($=>$.url===P);return D?D.uid:ht()})(x),name:T(x),url:x,status:"done"}},G=()=>{switch(c){case be.String:return g.map(x=>x.url).join(",");case be["String[]"]:return g.map(x=>x.url);case be["File[]"]:return[...g];case be.FileList:return[...g]}};return p.useEffect(()=>{const x=G();if(nt(x,u))return;let T=[];switch(c){case be.String:{T=(u||"").split(",").filter(C=>C).map(C=>q(C));break}case be["String[]"]:{T=(u||[]).map(C=>q(C));break}case be["File[]"]:{T=(u||[]).map(C=>C);break}case be.FileList:{T=(u||[]).map(C=>C);break}}w(T)},[u]),p.useEffect(()=>{if(h.current){h.current=!1;return}const x=G();d==null||d(x)},[g]),m.jsx(S.Upload,{listType:s,...j(),fileList:g,beforeUpload:E,onChange:W,children:"上传"})},N=new Map;N.set("Input",S.Input),N.set("ApiSelect",ll),N.set("Select",S.Select),N.set("InputNumber",S.InputNumber),N.set("ApiTreeSelect",cl),N.set("TreeSelect",S.TreeSelect),N.set("ApiTransfer",ul),N.set("Transfer",S.Transfer),N.set("Switch",S.Switch),N.set("Button",S.Button),N.set("Radio",S.Radio),N.set("RadioGroup",S.Radio.Group),N.set("Checkbox",S.Checkbox),N.set("CheckboxGroup",S.Checkbox.Group),N.set("Cascader",S.Cascader),N.set("TimePicker",S.TimePicker),N.set("DatePicker",S.DatePicker),N.set("MonthPicker",S.DatePicker.MonthPicker),N.set("WeekPicker",S.DatePicker.WeekPicker),N.set("RangePicker",S.DatePicker.RangePicker),N.set("InputPassword",S.Input.Password),N.set("InputTextArea",S.Input.TextArea),N.set("ApiAutoComplete",fl),N.set("AutoComplete",S.AutoComplete),N.set("Upload",S.Upload),N.set("AutoUpload",dl);const Qr={"form-item-force":"_form-item-force_1hsf3_1","form-item-hidden":"_form-item-hidden_1hsf3_9"},pl=p.forwardRef(({itemIndex:e,itemProps:t,methods:r,formProps:n,collapseRef:o},s)=>{console.log("render FormItem",t.name);const{rewritingModel:a,isusewatch:i}=Qa(n,t),{isIfShow:c,isShow:u}=Ya(t,a,o),{colProps:d}=Ja(t,n),{componentProps:h}=Ka(t,a),{rules:f}=Ga({item:t,model:a,isShow:u,componentProps:h}),{disabled:v}=Xa(n,t,a),{itemCollapse:g,setItemCollapse:y}=qa(n,e),{name:w,label:j,wrapperCol:E,labelCol:A,valuePropName:z,initialValue:W,forceRow:q}=t;p.useImperativeHandle(s,()=>({itemIndex:e,componentProps:h,itemCollapse:g,setItemCollapse:y}));const G=()=>({name:w,label:j,rules:f,wrapperCol:E,labelCol:A,valuePropName:z,initialValue:W}),{setExtendFormComp:x}=Zr();x(N);const T=it(t),C=at(t),P=()=>{if(T){const D=N.get(t.component);return m.jsx(D,{...h,disabled:v,isusewatch:i.toString()})}return C?t.render({model:a,name:w,disabled:v,methods:r,componentProps:h}):null};return m.jsxs(p.Fragment,{children:[q?m.jsx("div",{className:Qr["form-item-force"]}):null,c?m.jsx(S.Col,{...d,className:u&&!g?void 0:Qr["form-item-hidden"],children:m.jsx(S.Form.Item,{...G(),children:P()})}):null]})}),gl={"collapse-wrapper":"_collapse-wrapper_ylm01_1"},hl=p.forwardRef(({collapsible:e,onClickExpand:t,onClickFold:r},n)=>{const[o,s]=p.useState(e),a=p.useMemo(()=>o,[o]),i=()=>{r(),s(!0)},c=()=>{t(),s(!1)};return p.useImperativeHandle(n,()=>({handleCollapseChangeFalse:c})),m.jsx("div",{className:gl["collapse-wrapper"],children:a?m.jsx(S.Button,{onClick:c,type:"link",icon:m.jsx(ue.DownOutlined,{}),children:"展开"}):m.jsx(S.Button,{onClick:i,type:"link",icon:m.jsx(ue.UpOutlined,{}),children:"折叠"})})}),ml={"group-wrapper":"_group-wrapper_g8zqi_1"},bl=({formProps:e})=>{const{renderActions:t}=e;return m.jsx("div",{className:ml["group-wrapper"],children:t==null?void 0:t()})},vl={"xph-form-action":"_xph-form-action_8ws73_1"},yl=(e,t)=>{console.log("render Form");const[r]=S.Form.useForm(),{formProps:n}=il(e),{formItems:o}=Za({formProps:n}),s=p.useRef(new Map),{collapsible:a,collapseNum:i,collapseRef:c,onClickCollapseToFalse:u,onClickCollapseToTrue:d}=al(n,s),{handleFormatRenderValues:h,handleFormatReturnValues:f}=ol(o,n,s),{setFieldsValue:v,getFieldsValue:g,resetFields:y,validator:w,scrollToField:j}=sl(r,h,f),E=()=>{const{layout:z,wrapperCol:W,labelCol:q,colon:G,disabled:x,labelWrap:T,labelAlign:C,scrollToFirstError:P,size:D}=n;return{layout:z,wrapperCol:W,labelCol:q,colon:G,disabled:x,labelWrap:T,labelAlign:C,scrollToFirstError:P,size:D}},A={setFieldsValue:v,getFieldsValue:g,resetFields:y,validator:w,scrollToField:j};return p.useImperativeHandle(t,()=>({...A})),p.useEffect(()=>(console.log("Form is mounted======================="),n.register&&n.register(A),()=>{console.log("Form is unmounted========================="),s.current.clear()}),[]),m.jsxs(S.Form,{form:r,...E(),children:[m.jsx(S.Row,{children:o.map((z,W)=>(s.current.has(z.name)||s.current.set(z.name,p.createRef()),m.jsx(pl,{ref:s.current.get(z.name),itemIndex:W,itemProps:z,formProps:n,methods:A,collapseRef:c},W)))}),m.jsxs("div",{className:vl["xph-form-action"],children:[m.jsx(bl,{formProps:n}),a?m.jsx(hl,{ref:c,collapsible:o.length>i,onClickExpand:u,onClickFold:d}):null]})]})},kt=p.forwardRef(yl),_l=p.memo(kt),wl=p.forwardRef((e,t)=>{const{renderActions:r,showSearch:n,tableRef:o}=e,[s,a]=p.useState(!1),i=p.useRef(null),c=()=>{const{reloadData:f}=o.current;f()},u=()=>{const{resetData:f}=o.current;f()},d=p.useCallback(()=>m.jsxs("div",{style:{width:"100%",display:"flex"},children:[m.jsx("div",{style:{flex:1,width:0},children:r==null?void 0:r()}),n&&m.jsxs("div",{style:{display:"flex",gap:"8px"},children:[m.jsx(S.Button,{type:"primary",icon:m.jsx(ue.SearchOutlined,{}),onClick:c,children:"搜索"}),m.jsx(S.Button,{icon:m.jsx(ue.ReloadOutlined,{}),onClick:u,children:"重置"})]})]}),[n,r]),h=()=>{const{renderActions:f,...v}=e;return{...v,renderActions:d}};return p.useImperativeHandle(t,()=>({setFormLoading:a,...i.current})),m.jsx(S.Spin,{spinning:s,children:m.jsx(_l,{ref:i,...h()})})}),Cl=p.memo(kt),xl=(e,t)=>{const r=p.useRef(null),n=p.useRef(null),{formProps:o}=e,a=(()=>{const{formProps:d,...h}=e;return h})(),i=p.useRef(null),c=async()=>{const{onOk:d,renderFooter:h}=a;if(!h){const{ok:f,data:v}=i.current;if(f){n.current.validator().then(async g=>{r.current.setLoading(!0),await f({values:n.current.getFieldsValue()}).then(w=>w).finally(()=>{r.current.setLoading(!1)})!==!1&&(r.current.close(),i.current=null)});return}if(d){n.current.validator().then(async g=>{r.current.setLoading(!0),await d({values:g,data:v}).then(w=>(console.log(w),w)).finally(()=>{r.current.setLoading(!1)})!==!1&&(r.current.close(),i.current=null)});return}r.current.close(),i.current=null}},u=async()=>{const{onCancel:d,renderFooter:h}=a;if(!h){const{cancel:f,data:v}=i.current;if(f){if(await f({values:n.current.getFieldsValue(!0)})===!1)return;r.current.close(),i.current=null;return}if(d){if(await d({values:n.current.getFieldsValue(!0),data:v})===!1)return;r.current.close(),i.current=null;return}r.current.close(),i.current=null}};return p.useImperativeHandle(t,()=>({open:async d=>{if(r.current.getVisible())return;const{renderFooter:f}=a;return!f&&(i.current=d),r.current.open().then(()=>{n.current.setFieldsValue(d.data||{})})},close:(...d)=>r.current.close(...d),setLoading:(...d)=>r.current.setLoading(...d),getVisible:(...d)=>r.current.getVisible(...d),getFieldsValue:(...d)=>n.current.getFieldsValue(...d),setFieldsValue:(...d)=>n.current.setFieldsValue(...d),resetFields:(...d)=>n.current.resetFields(...d),validator:(...d)=>n.current.validator(...d),scrollToField:(...d)=>n.current.scrollToField(...d)})),m.jsx(Kr,{...a,ref:r,onOk:c,onCancel:u,children:m.jsx(Cl,{...o,ref:n})})},en=p.forwardRef(xl);function Tl({searchForm:e}){return{searchFormRef:p.useRef(null),searchFormProps:e}}function tn(e){return"cellFunc"in e}function rn(e){return"children"in e}const{useToken:Sl}=S.theme,Pl=(e,t,r)=>{const{curComponentProps:n,cellFuncProps:o}=t,{url:s,onClick:a}=n,{token:i}=Sl(),c={color:i.colorLink,cursor:"pointer"},u=()=>{if(r.mainClick&&r.mainClick(),a){a();return}if(s){window.open(s,"_blank");return}};return m.jsx(e,{...r,mainClick:u,mainStyle:Object.assign(c,(r==null?void 0:r.mainStyle)||{})})},El={"cellfunc-actions":"_cellfunc-actions_14drt_1"},Fl=(e,t,r)=>{const{curComponentProps:n,cellFuncProps:o}=t;return m.jsx("div",{className:El["cellfunc-actions"],children:m.jsx(st,{...n})})},{useToken:jl}=S.theme,Al={0:{color:"orange",backgroundColor:"unset",border:"1px solid orange"},1:{color:"purple",backgroundColor:"unset",border:"1px solid purple"},2:{color:"blue",backgroundColor:"unset",border:"1px solid blue"},3:{color:"green",backgroundColor:"unset",border:"1px solid green"},4:{color:"red",backgroundColor:"unset",border:"1px solid red"},5:{color:"pink",backgroundColor:"unset",border:"1px solid pink"},6:{color:"cyan",backgroundColor:"unset",border:"1px solid cyan"},7:{color:"magenta",backgroundColor:"unset",border:"1px solid magenta"},8:{color:"yellow",backgroundColor:"unset",border:"1px solid yellow"},9:{color:"teal",backgroundColor:"unset",border:"1px solid teal"},10:{color:"brown",backgroundColor:"unset",border:"1px solid brown"},11:{color:"gray",backgroundColor:"unset",border:"1px solid gray"},12:{color:"olive",backgroundColor:"unset",border:"1px solid olive"},13:{color:"navy",backgroundColor:"unset",border:"1px solid navy"},14:{color:"lime",backgroundColor:"unset",border:"1px solid lime"},15:{color:"maroon",backgroundColor:"unset",border:"1px solid maroon"}},Dl=(e,t,r)=>e.reduce((n,o,s)=>{var u;const a=`${String(t.dataIndex)}${o.value}`,i=(u=o.config)==null?void 0:u.color,c=i?r[i]??{color:i,backgroundColor:"unset",border:`1px solid ${i}`}:Al[s]||{};return n[a]={color:c.color,backgroundColor:c.backgroundColor,border:c.border},n},{}),nn={link:{Comp:Pl},actions:{Comp:Fl},tag:{Comp:(e,t,r)=>{const{curComponentProps:n,cellFuncProps:{renderPrams:{text:o,column:s}}}=t,{token:a}=jl(),{enums:i}=n,c={primary:{color:a.colorPrimary,backgroundColor:a.colorPrimaryBg,border:`1px solid ${a.colorPrimary}`},success:{color:a.colorSuccess,backgroundColor:a.colorSuccessBg,border:`1px solid ${a.colorSuccess}`},warning:{color:a.colorWarning,backgroundColor:a.colorWarningBg,border:`1px solid ${a.colorWarning}`},info:{color:a.colorInfo,backgroundColor:a.colorInfoBg,border:`1px solid ${a.colorInfo}`},error:{color:a.colorError,backgroundColor:a.colorErrorBg,border:`1px solid ${a.colorError}`}},d=Dl(i,s,c)[`${String(s.dataIndex)}${o}`]||{},h={padding:"0 8px",borderRadius:a.borderRadiusLG,fontSize:a.fontSizeSM,...d},f=()=>{var g;return(g=i.find(y=>y.value===o))==null?void 0:g.label};return m.jsx(e,{...r,mainHandleText:f,mainStyle:Object.assign((r==null?void 0:r.mainStyle)||{},h)})}}},Ol=(e,t)=>{var o;const{renderPrams:{text:r}}=e,n=(o=t==null?void 0:t.mainHandleText)==null?void 0:o.call(t);return m.jsx("span",{onClick:t==null?void 0:t.mainClick,style:t==null?void 0:t.mainStyle,children:n??r})},$l=e=>{const{setExtendTableCellComp:t}=sn();t(nn);const{dslConfig:r}=e;let n=Ol.bind(null,e),o=0;for(;o<r.length;){const s=o++,a=nn[r[s].component];a&&(n=a.Comp.bind(null,n,{curComponentProps:r[s].componentProps||{},cellFuncProps:e}))}return m.jsx(n,{})};function on(e){return e.map(t=>{let r={...t};if(tn(r)){const{cellFunc:n,...o}=r;r={...o,render:(...s)=>{const a=Z(n),[i,c,u]=s,d={text:i,record:c,index:u,column:JSON.parse(JSON.stringify(o))},h=a?n(d):n;return m.jsx($l,{dslConfig:h,renderPrams:d})}}}return rn(r)&&r.children&&Array.isArray(r.children)&&(r.children=on(r.children)),r})}function Rl(e){const{columns:t}=e.table;return{columns:on(t)}}const Ml=e=>{const{extendTableProps:t}=sn();return{tableProps:{...le(le({table:{columns:[],fullHeight:!1,autoRequest:!0,pagination:{pageSize:20,total:0,showTotal:o=>`共:${o} 条`,current:1,pageSizeOptions:[10,20,50,100],showSizeChanger:!0,showQuickJumper:!0},requestFields:{pageSize:"pageSize",current:"current"},responseFields:{current:"current",list:"data",total:"total"}},crudFormDialog:void 0,searchForm:{showSearch:!0,items:[]}},t),e)}}};function Il(e){const{pagination:t,autoPagination:r}=e.table,[n,o]=p.useState(t),s=p.useRef(t),a=p.useMemo(()=>n&&(r===!0||r===void 0)||!1,[n]);return{pagination:{model:n,update:c=>{if(!s.current)return;const u={...s.current,...c};o(u),s.current=u},show:a},lastPaginationState:s}}function kl(e,t){const{api:r,formatDataSource:n,autoPagination:o,onChange:s,requestFields:a,responseFields:i}=e.table,c=e.onPaginationChange,{pagination:u,lastPaginationState:d}=Il(e),[h,f]=p.useState({loading:!1,dataSource:[],selection:[],backupsDataSource:[]}),v=p.useRef({loading:!1,dataSource:[],selection:[],backupsDataSource:[]}),g={model:h,update:T=>{var P;const C={...v.current,...T};f(C),v.current=C,(P=t.current)==null||P.setFormLoading(C.loading)}},y=async()=>{p.useEffect(()=>{const{autoRequest:T}=e.table,{validator:C}=t.current;T&&C().then(P=>{A({searchFormParams:P})})},[])},w=async({searchFormParams:T,paginationParams:C})=>{const P={...T,[`${a.current}`]:d.current.current,[`${a.pageSize}`]:d.current.pageSize,...C?{[`${a.current}`]:C.current,[`${a.pageSize}`]:C.pageSize}:{}};return r(P).then(D=>{const{current:$,list:R,total:k}=mt(i,D);g.update({dataSource:n?n(R):R}),u.update({total:k,current:$,pageSize:P[`${a.pageSize}`]})}).finally(()=>{g.update({loading:!1})})},j=async({searchFormParams:T,paginationParams:C})=>{const P={...T};return r(P).then(D=>{const{list:$}=mt(i,D),R=n?n($):$;g.update({selection:[],dataSource:R}),u.update({current:1,total:$.length})}).finally(()=>{g.update({loading:!1})})},E=async({searchFormParams:T,paginationParams:C})=>{var D;const P={...T};if(C){const{current:$,pageSize:R}=C;u.update({current:$,pageSize:R});const k=($-1)*R,Q=k+R,ne=(D=v.current.backupsDataSource)==null?void 0:D.slice(k,Q);return g.update({loading:!1,selection:[],dataSource:ne})}else return r(P).then($=>{let R=n?n($):$;const k=[...R],Q=0,ne=Q+d.current.pageSize;R=R.slice(Q,ne),g.update({selection:[],dataSource:R,backupsDataSource:k}),u.update({current:1,total:$.length})}).finally(()=>{g.update({loading:!1})})},A=async({searchFormParams:T,paginationParams:C})=>{if(g.update({loading:!0,selection:[]}),r)switch(!!d.current){case!0:return o===!0?E({searchFormParams:T,paginationParams:C}):o===!1?j({searchFormParams:T,paginationParams:C}):w({searchFormParams:T,paginationParams:C});case!1:return j({searchFormParams:T,paginationParams:C})}return g.update({loading:!1})};return{table:g,pagination:u,firstGetTableData:y,onPaginationChange:(T,C)=>{const{validator:P}=t.current;P().then(D=>{A({searchFormParams:D,paginationParams:{current:T,pageSize:C}})}),c&&c(T,C)},onAllChange:async(...T)=>{const[C,P,D,$]=T,R=[];for(let k=0;k<R.length&&!R[k]();k++);s&&s(P,D,$)},resetData:async()=>{const{resetFields:T,validator:C}=t.current;return T().then(async()=>{const P=await C();return A({searchFormParams:P})})},resetAllData:async()=>{const{resetFields:T,validator:C}=t.current;return T().then(async()=>{const P={};if(d.current){const{pageSize:D}=d.current;o===void 0&&(P.paginationParams={current:1,pageSize:D})}return P.searchFormParams=await C(),A(P)})},reloadData:async()=>{const{validator:T}=t.current;return T().then(C=>A({searchFormParams:C}))}}}const zl=(e,t)=>{const{onRowSelectionChange:r}=e,{rowSelection:n}=e.table,o=()=>{if(Lr(n))return{type:n,onChange:(s,a,i)=>{t.update({selection:a}),r&&r(s,a)}};if(se(n)){const{onChange:s}=n;return{...n,onChange:(a,i,c)=>{t.update({selection:i}),s&&s(a,i,c),r&&r(a,i)}}}return n};return{rowSelection:o(),getNewRowSelection:o}};function Ll(e,t){const{scroll:r,virtual:n}=e.table,o=p.useRef(null),[s,a]=p.useState(0),[i,c]=p.useState(0),u=()=>{o.current&&(console.log("触发了table的handleResize"),a(o.current.offsetWidth),c(o.current.offsetHeight))};p.useEffect(()=>{const h=new ResizeObserver(u);return o.current&&h.observe(o.current),()=>{h&&o.current&&h.unobserve(o.current)}},[]);const d=p.useMemo(()=>t?n?{x:s,y:i-70,...r}:{y:i-70,...r}:{...r},[i]);return{divRef:o,scroll:d}}function Nl(e,t){const{toolbar:r}=e.table;return{getTopToolbarBindProps:()=>{if(Z(r)){const o=r({loading:t.model.loading,selection:t.model.selection});return{...o,disabled:t.model.loading||o.disabled}}return{...r,disabled:t.model.loading||(r==null?void 0:r.disabled)}}}}const sn=()=>{const{extendProps:e,extendComp:t}=je(),r=n=>{const o=t==null?void 0:t.tableCellFunc;o&&Object.keys(o).forEach(s=>{const a=o[s];n[s]={Comp:a}})};return{extendTableProps:e==null?void 0:e.table,setExtendTableCellComp:r}},Wl=({crudFormDialog:e})=>({crudFormDialogRef:p.useRef(null),crudFormProps:e}),ct={"main-container":"_main-container_1yx5k_1",container__toolbar:"_container__toolbar_1yx5k_13",container__table:"_container__table_1yx5k_27",container__pagination:"_container__pagination_1yx5k_35"},Bl=p.forwardRef(({tableProps:e,searchFormRef:t,fullHeight:r},n)=>{const{columns:o}=Rl(e),s=p.useRef(null),{table:a,pagination:i,firstGetTableData:c,onPaginationChange:u,onAllChange:d,resetData:h,resetAllData:f,reloadData:v}=kl(e,t),{rowSelection:g}=zl(e,a),{divRef:y,scroll:w}=Ll(e,r),{getTopToolbarBindProps:j}=Nl(e,a),E=()=>{const{autoRequest:A,api:z,formatDataSource:W,autoPagination:q,columns:G,scroll:x,pagination:T,rowSelection:C,onChange:P,...D}=e.table;return D};return c(),p.useImperativeHandle(n,()=>({resetData:h,resetAllData:f,reloadData:v,...s.current})),console.log("render Table"),m.jsxs("div",{className:r?ct["main-container"]:void 0,children:[m.jsx("div",{className:ct.container__toolbar,children:m.jsx(st,{...j()})}),m.jsx("div",{ref:y,className:r?ct.container__table:void 0,children:m.jsx(S.Table,{ref:s,...E(),loading:a.model.loading,columns:o,dataSource:a.model.dataSource,pagination:!1,rowSelection:g,scroll:w,onChange:d})}),i.show?m.jsx("div",{className:ct.container__pagination,children:m.jsx(S.Pagination,{disabled:a.model.loading,...i.model,onChange:u})}):null]})}),an={"xph-table-full-wrapper":"_xph-table-full-wrapper_mdv0g_1","full-wrapper__table":"_full-wrapper__table_mdv0g_13"},Hl=(e,t)=>{const{tableProps:r}=Ml(e),n=p.useRef(null),{searchFormRef:o,searchFormProps:s}=Tl(r),{crudFormDialogRef:a,crudFormProps:i}=Wl(r);let{fullHeight:c}=r.table;const{virtual:u}=r.table;return u&&(c=!0),p.useImperativeHandle(t,()=>({...n.current,...a.current})),m.jsxs("div",{className:c?an["xph-table-full-wrapper"]:void 0,children:[m.jsx("div",{children:m.jsx(wl,{ref:o,tableRef:n,...s})}),m.jsx("div",{className:c?an["full-wrapper__table"]:void 0,children:m.jsx(Bl,{ref:n,searchFormRef:o,fullHeight:c,tableProps:r})}),i?m.jsx(en,{ref:a,...i}):null]})},Vl=p.forwardRef(Hl);O.XphActions=st,O.XphAuth=Na,O.XphCrudFormDialog=en,O.XphDialog=Kr,O.XphExtendCompPropsProvider=da,O.XphForm=kt,O.XphPortal=Jr,O.XphTable=Vl,O.buildUUID=ht,O.getValueByPath=Gt,O.getValuesByPathObj=mt,O.isChildrenColumnProps=rn,O.isComponentActionItemProps=Mt,O.isComponentColumnProps=tn,O.isComponentFormItemProps=it,O.isRenderActionItemProps=Br,O.isRenderFormItemProps=at,O.useAsyncState=Ur,O.useXphExtendCompProps=je,O.useXphForm=el,Object.defineProperty(O,Symbol.toStringTag,{value:"Module"})});
30
+ <%s key={someKey} {...props} />`,Gt,Fe,fc,Fe),mn[Fe+Gt]=!0}}return l===n?ic(Z):sc(Z),Z}}function ac(l,b,_){return bn(l,b,_,!0)}function lc(l,b,_){return bn(l,b,_,!1)}var cc=lc,uc=ac;Ie.Fragment=n,Ie.jsx=cc,Ie.jsxs=uc}()),Ie}process.env.NODE_ENV==="production"?vt.exports=yn():vt.exports=_n();var m=vt.exports,Zt=typeof global=="object"&&global&&global.Object===Object&&global,wn=typeof self=="object"&&self&&self.Object===Object&&self,de=Zt||wn||Function("return this")(),_e=de.Symbol,Qt=Object.prototype,Cn=Qt.hasOwnProperty,xn=Qt.toString,ze=_e?_e.toStringTag:void 0;function Tn(e){var t=Cn.call(e,ze),r=e[ze];try{e[ze]=void 0;var n=!0}catch{}var o=xn.call(e);return n&&(t?e[ze]=r:delete e[ze]),o}var Sn=Object.prototype,Pn=Sn.toString;function En(e){return Pn.call(e)}var Fn="[object Null]",jn="[object Undefined]",er=_e?_e.toStringTag:void 0;function pe(e){return e==null?e===void 0?jn:Fn:er&&er in Object(e)?Tn(e):En(e)}function le(e){return e!=null&&typeof e=="object"}var An="[object Symbol]";function yt(e){return typeof e=="symbol"||le(e)&&pe(e)==An}function Dn(e,t){for(var r=-1,n=e==null?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}var re=Array.isArray,On=1/0,tr=_e?_e.prototype:void 0,rr=tr?tr.toString:void 0;function nr(e){if(typeof e=="string")return e;if(re(e))return Dn(e,nr)+"";if(yt(e))return rr?rr.call(e):"";var t=e+"";return t=="0"&&1/e==-On?"-0":t}function ie(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function or(e){return e}var $n="[object AsyncFunction]",Rn="[object Function]",Mn="[object GeneratorFunction]",kn="[object Proxy]";function Q(e){if(!ie(e))return!1;var t=pe(e);return t==Rn||t==Mn||t==$n||t==kn}var _t=de["__core-js_shared__"],sr=function(){var e=/[^.]+$/.exec(_t&&_t.keys&&_t.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function In(e){return!!sr&&sr in e}var zn=Function.prototype,Ln=zn.toString;function Ce(e){if(e!=null){try{return Ln.call(e)}catch{}try{return e+""}catch{}}return""}var Nn=/[\\^$.*+?()[\]{}|]/g,Wn=/^\[object .+?Constructor\]$/,Hn=Function.prototype,Bn=Object.prototype,Vn=Hn.toString,Un=Bn.hasOwnProperty,Yn=RegExp("^"+Vn.call(Un).replace(Nn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function qn(e){if(!ie(e)||In(e))return!1;var t=Q(e)?Yn:Wn;return t.test(Ce(e))}function Gn(e,t){return e==null?void 0:e[t]}function xe(e,t){var r=Gn(e,t);return qn(r)?r:void 0}var wt=xe(de,"WeakMap"),ir=Object.create,Xn=function(){function e(){}return function(t){if(!ie(t))return{};if(ir)return ir(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function Kn(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function Jn(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var Zn=800,Qn=16,eo=Date.now;function to(e){var t=0,r=0;return function(){var n=eo(),o=Qn-(n-r);if(r=n,o>0){if(++t>=Zn)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function ro(e){return function(){return e}}var Xe=function(){try{var e=xe(Object,"defineProperty");return e({},"",{}),e}catch{}}(),no=Xe?function(e,t){return Xe(e,"toString",{configurable:!0,enumerable:!1,value:ro(t),writable:!0})}:or,oo=to(no),so=9007199254740991,io=/^(?:0|[1-9]\d*)$/;function Ct(e,t){var r=typeof e;return t=t??so,!!t&&(r=="number"||r!="symbol"&&io.test(e))&&e>-1&&e%1==0&&e<t}function xt(e,t,r){t=="__proto__"&&Xe?Xe(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Le(e,t){return e===t||e!==e&&t!==t}var ao=Object.prototype,lo=ao.hasOwnProperty;function ar(e,t,r){var n=e[t];(!(lo.call(e,t)&&Le(n,r))||r===void 0&&!(t in e))&&xt(e,t,r)}function co(e,t,r,n){var o=!r;r||(r={});for(var s=-1,a=t.length;++s<a;){var i=t[s],c=void 0;c===void 0&&(c=e[i]),o?xt(r,i,c):ar(r,i,c)}return r}var lr=Math.max;function uo(e,t,r){return t=lr(t===void 0?e.length-1:t,0),function(){for(var n=arguments,o=-1,s=lr(n.length-t,0),a=Array(s);++o<s;)a[o]=n[t+o];o=-1;for(var i=Array(t+1);++o<t;)i[o]=n[o];return i[t]=r(a),Kn(e,this,i)}}function fo(e,t){return oo(uo(e,t,or),e+"")}var po=9007199254740991;function cr(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=po}function Ke(e){return e!=null&&cr(e.length)&&!Q(e)}function go(e,t,r){if(!ie(r))return!1;var n=typeof t;return(n=="number"?Ke(r)&&Ct(t,r.length):n=="string"&&t in r)?Le(r[t],e):!1}function ho(e){return fo(function(t,r){var n=-1,o=r.length,s=o>1?r[o-1]:void 0,a=o>2?r[2]:void 0;for(s=e.length>3&&typeof s=="function"?(o--,s):void 0,a&&go(r[0],r[1],a)&&(s=o<3?void 0:s,o=1),t=Object(t);++n<o;){var i=r[n];i&&e(t,i,n,s)}return t})}var mo=Object.prototype;function Tt(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||mo;return e===r}function bo(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var vo="[object Arguments]";function ur(e){return le(e)&&pe(e)==vo}var fr=Object.prototype,yo=fr.hasOwnProperty,_o=fr.propertyIsEnumerable,St=ur(function(){return arguments}())?ur:function(e){return le(e)&&yo.call(e,"callee")&&!_o.call(e,"callee")};function wo(){return!1}var dr=typeof A=="object"&&A&&!A.nodeType&&A,pr=dr&&typeof module=="object"&&module&&!module.nodeType&&module,Co=pr&&pr.exports===dr,gr=Co?de.Buffer:void 0,xo=gr?gr.isBuffer:void 0,Je=xo||wo,To="[object Arguments]",So="[object Array]",Po="[object Boolean]",Eo="[object Date]",Fo="[object Error]",jo="[object Function]",Ao="[object Map]",Do="[object Number]",Oo="[object Object]",$o="[object RegExp]",Ro="[object Set]",Mo="[object String]",ko="[object WeakMap]",Io="[object ArrayBuffer]",zo="[object DataView]",Lo="[object Float32Array]",No="[object Float64Array]",Wo="[object Int8Array]",Ho="[object Int16Array]",Bo="[object Int32Array]",Vo="[object Uint8Array]",Uo="[object Uint8ClampedArray]",Yo="[object Uint16Array]",qo="[object Uint32Array]",U={};U[Lo]=U[No]=U[Wo]=U[Ho]=U[Bo]=U[Vo]=U[Uo]=U[Yo]=U[qo]=!0,U[To]=U[So]=U[Io]=U[Po]=U[zo]=U[Eo]=U[Fo]=U[jo]=U[Ao]=U[Do]=U[Oo]=U[$o]=U[Ro]=U[Mo]=U[ko]=!1;function Go(e){return le(e)&&cr(e.length)&&!!U[pe(e)]}function Xo(e){return function(t){return e(t)}}var hr=typeof A=="object"&&A&&!A.nodeType&&A,Ne=hr&&typeof module=="object"&&module&&!module.nodeType&&module,Ko=Ne&&Ne.exports===hr,Pt=Ko&&Zt.process,mr=function(){try{var e=Ne&&Ne.require&&Ne.require("util").types;return e||Pt&&Pt.binding&&Pt.binding("util")}catch{}}(),br=mr&&mr.isTypedArray,Et=br?Xo(br):Go,Jo=Object.prototype,Zo=Jo.hasOwnProperty;function vr(e,t){var r=re(e),n=!r&&St(e),o=!r&&!n&&Je(e),s=!r&&!n&&!o&&Et(e),a=r||n||o||s,i=a?bo(e.length,String):[],c=i.length;for(var u in e)(t||Zo.call(e,u))&&!(a&&(u=="length"||o&&(u=="offset"||u=="parent")||s&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Ct(u,c)))&&i.push(u);return i}function yr(e,t){return function(r){return e(t(r))}}var Qo=yr(Object.keys,Object),es=Object.prototype,ts=es.hasOwnProperty;function rs(e){if(!Tt(e))return Qo(e);var t=[];for(var r in Object(e))ts.call(e,r)&&r!="constructor"&&t.push(r);return t}function ns(e){return Ke(e)?vr(e):rs(e)}function os(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var ss=Object.prototype,is=ss.hasOwnProperty;function as(e){if(!ie(e))return os(e);var t=Tt(e),r=[];for(var n in e)n=="constructor"&&(t||!is.call(e,n))||r.push(n);return r}function _r(e){return Ke(e)?vr(e,!0):as(e)}var ls=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,cs=/^\w*$/;function us(e,t){if(re(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||yt(e)?!0:cs.test(e)||!ls.test(e)||t!=null&&e in Object(t)}var We=xe(Object,"create");function fs(){this.__data__=We?We(null):{},this.size=0}function ds(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var ps="__lodash_hash_undefined__",gs=Object.prototype,hs=gs.hasOwnProperty;function ms(e){var t=this.__data__;if(We){var r=t[e];return r===ps?void 0:r}return hs.call(t,e)?t[e]:void 0}var bs=Object.prototype,vs=bs.hasOwnProperty;function ys(e){var t=this.__data__;return We?t[e]!==void 0:vs.call(t,e)}var _s="__lodash_hash_undefined__";function ws(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=We&&t===void 0?_s:t,this}function Te(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Te.prototype.clear=fs,Te.prototype.delete=ds,Te.prototype.get=ms,Te.prototype.has=ys,Te.prototype.set=ws;function Cs(){this.__data__=[],this.size=0}function Ze(e,t){for(var r=e.length;r--;)if(Le(e[r][0],t))return r;return-1}var xs=Array.prototype,Ts=xs.splice;function Ss(e){var t=this.__data__,r=Ze(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Ts.call(t,r,1),--this.size,!0}function Ps(e){var t=this.__data__,r=Ze(t,e);return r<0?void 0:t[r][1]}function Es(e){return Ze(this.__data__,e)>-1}function Fs(e,t){var r=this.__data__,n=Ze(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function he(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}he.prototype.clear=Cs,he.prototype.delete=Ss,he.prototype.get=Ps,he.prototype.has=Es,he.prototype.set=Fs;var He=xe(de,"Map");function js(){this.size=0,this.__data__={hash:new Te,map:new(He||he),string:new Te}}function As(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Qe(e,t){var r=e.__data__;return As(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Ds(e){var t=Qe(this,e).delete(e);return this.size-=t?1:0,t}function Os(e){return Qe(this,e).get(e)}function $s(e){return Qe(this,e).has(e)}function Rs(e,t){var r=Qe(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function me(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}me.prototype.clear=js,me.prototype.delete=Ds,me.prototype.get=Os,me.prototype.has=$s,me.prototype.set=Rs;var Ms="Expected a function";function Ft(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Ms);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],s=r.cache;if(s.has(o))return s.get(o);var a=e.apply(this,n);return r.cache=s.set(o,a)||s,a};return r.cache=new(Ft.Cache||me),r}Ft.Cache=me;var ks=500;function Is(e){var t=Ft(e,function(n){return r.size===ks&&r.clear(),n}),r=t.cache;return t}var zs=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ls=/\\(\\)?/g,Ns=Is(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(zs,function(r,n,o,s){t.push(o?s.replace(Ls,"$1"):n||r)}),t});function Ws(e){return e==null?"":nr(e)}function Hs(e,t){return re(e)?e:us(e,t)?[e]:Ns(Ws(e))}var Bs=1/0;function Vs(e){if(typeof e=="string"||yt(e))return e;var t=e+"";return t=="0"&&1/e==-Bs?"-0":t}function Us(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}var wr=yr(Object.getPrototypeOf,Object),Ys="[object Object]",qs=Function.prototype,Gs=Object.prototype,Cr=qs.toString,Xs=Gs.hasOwnProperty,Ks=Cr.call(Object);function Js(e){if(!le(e)||pe(e)!=Ys)return!1;var t=wr(e);if(t===null)return!0;var r=Xs.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Cr.call(r)==Ks}function Zs(){this.__data__=new he,this.size=0}function Qs(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function ei(e){return this.__data__.get(e)}function ti(e){return this.__data__.has(e)}var ri=200;function ni(e,t){var r=this.__data__;if(r instanceof he){var n=r.__data__;if(!He||n.length<ri-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new me(n)}return r.set(e,t),this.size=r.size,this}function be(e){var t=this.__data__=new he(e);this.size=t.size}be.prototype.clear=Zs,be.prototype.delete=Qs,be.prototype.get=ei,be.prototype.has=ti,be.prototype.set=ni;var xr=typeof A=="object"&&A&&!A.nodeType&&A,Tr=xr&&typeof module=="object"&&module&&!module.nodeType&&module,oi=Tr&&Tr.exports===xr,Sr=oi?de.Buffer:void 0;Sr&&Sr.allocUnsafe;function si(e,t){return e.slice()}function ii(e,t){for(var r=-1,n=e==null?0:e.length,o=0,s=[];++r<n;){var a=e[r];t(a,r,e)&&(s[o++]=a)}return s}function ai(){return[]}var li=Object.prototype,ci=li.propertyIsEnumerable,Pr=Object.getOwnPropertySymbols,ui=Pr?function(e){return e==null?[]:(e=Object(e),ii(Pr(e),function(t){return ci.call(e,t)}))}:ai;function fi(e,t,r){var n=t(e);return re(e)?n:Us(n,r(e))}function Er(e){return fi(e,ns,ui)}var jt=xe(de,"DataView"),At=xe(de,"Promise"),Dt=xe(de,"Set"),Fr="[object Map]",di="[object Object]",jr="[object Promise]",Ar="[object Set]",Dr="[object WeakMap]",Or="[object DataView]",pi=Ce(jt),gi=Ce(He),hi=Ce(At),mi=Ce(Dt),bi=Ce(wt),we=pe;(jt&&we(new jt(new ArrayBuffer(1)))!=Or||He&&we(new He)!=Fr||At&&we(At.resolve())!=jr||Dt&&we(new Dt)!=Ar||wt&&we(new wt)!=Dr)&&(we=function(e){var t=pe(e),r=t==di?e.constructor:void 0,n=r?Ce(r):"";if(n)switch(n){case pi:return Or;case gi:return Fr;case hi:return jr;case mi:return Ar;case bi:return Dr}return t});var et=de.Uint8Array;function vi(e){var t=new e.constructor(e.byteLength);return new et(t).set(new et(e)),t}function yi(e,t){var r=vi(e.buffer);return new e.constructor(r,e.byteOffset,e.length)}function _i(e){return typeof e.constructor=="function"&&!Tt(e)?Xn(wr(e)):{}}var wi="__lodash_hash_undefined__";function Ci(e){return this.__data__.set(e,wi),this}function xi(e){return this.__data__.has(e)}function tt(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new me;++t<r;)this.add(e[t])}tt.prototype.add=tt.prototype.push=Ci,tt.prototype.has=xi;function Ti(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function Si(e,t){return e.has(t)}var Pi=1,Ei=2;function $r(e,t,r,n,o,s){var a=r&Pi,i=e.length,c=t.length;if(i!=c&&!(a&&c>i))return!1;var u=s.get(e),d=s.get(t);if(u&&d)return u==t&&d==e;var h=-1,f=!0,v=r&Ei?new tt:void 0;for(s.set(e,t),s.set(t,e);++h<i;){var g=e[h],y=t[h];if(n)var w=a?n(y,g,h,t,e,s):n(g,y,h,e,t,s);if(w!==void 0){if(w)continue;f=!1;break}if(v){if(!Ti(t,function(j,P){if(!Si(v,P)&&(g===j||o(g,j,r,n,s)))return v.push(P)})){f=!1;break}}else if(!(g===y||o(g,y,r,n,s))){f=!1;break}}return s.delete(e),s.delete(t),f}function Fi(e){var t=-1,r=Array(e.size);return e.forEach(function(n,o){r[++t]=[o,n]}),r}function ji(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var Ai=1,Di=2,Oi="[object Boolean]",$i="[object Date]",Ri="[object Error]",Mi="[object Map]",ki="[object Number]",Ii="[object RegExp]",zi="[object Set]",Li="[object String]",Ni="[object Symbol]",Wi="[object ArrayBuffer]",Hi="[object DataView]",Rr=_e?_e.prototype:void 0,Ot=Rr?Rr.valueOf:void 0;function Bi(e,t,r,n,o,s,a){switch(r){case Hi:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Wi:return!(e.byteLength!=t.byteLength||!s(new et(e),new et(t)));case Oi:case $i:case ki:return Le(+e,+t);case Ri:return e.name==t.name&&e.message==t.message;case Ii:case Li:return e==t+"";case Mi:var i=Fi;case zi:var c=n&Ai;if(i||(i=ji),e.size!=t.size&&!c)return!1;var u=a.get(e);if(u)return u==t;n|=Di,a.set(e,t);var d=$r(i(e),i(t),n,o,s,a);return a.delete(e),d;case Ni:if(Ot)return Ot.call(e)==Ot.call(t)}return!1}var Vi=1,Ui=Object.prototype,Yi=Ui.hasOwnProperty;function qi(e,t,r,n,o,s){var a=r&Vi,i=Er(e),c=i.length,u=Er(t),d=u.length;if(c!=d&&!a)return!1;for(var h=c;h--;){var f=i[h];if(!(a?f in t:Yi.call(t,f)))return!1}var v=s.get(e),g=s.get(t);if(v&&g)return v==t&&g==e;var y=!0;s.set(e,t),s.set(t,e);for(var w=a;++h<c;){f=i[h];var j=e[f],P=t[f];if(n)var D=a?n(P,j,f,t,e,s):n(j,P,f,e,t,s);if(!(D===void 0?j===P||o(j,P,r,n,s):D)){y=!1;break}w||(w=f=="constructor")}if(y&&!w){var M=e.constructor,W=t.constructor;M!=W&&"constructor"in e&&"constructor"in t&&!(typeof M=="function"&&M instanceof M&&typeof W=="function"&&W instanceof W)&&(y=!1)}return s.delete(e),s.delete(t),y}var Gi=1,Mr="[object Arguments]",kr="[object Array]",rt="[object Object]",Xi=Object.prototype,Ir=Xi.hasOwnProperty;function Ki(e,t,r,n,o,s){var a=re(e),i=re(t),c=a?kr:we(e),u=i?kr:we(t);c=c==Mr?rt:c,u=u==Mr?rt:u;var d=c==rt,h=u==rt,f=c==u;if(f&&Je(e)){if(!Je(t))return!1;a=!0,d=!1}if(f&&!d)return s||(s=new be),a||Et(e)?$r(e,t,r,n,o,s):Bi(e,t,c,r,n,o,s);if(!(r&Gi)){var v=d&&Ir.call(e,"__wrapped__"),g=h&&Ir.call(t,"__wrapped__");if(v||g){var y=v?e.value():e,w=g?t.value():t;return s||(s=new be),o(y,w,r,n,s)}}return f?(s||(s=new be),qi(e,t,r,n,o,s)):!1}function zr(e,t,r,n,o){return e===t?!0:e==null||t==null||!le(e)&&!le(t)?e!==e&&t!==t:Ki(e,t,r,n,zr,o)}function Ji(e){return function(t,r,n){for(var o=-1,s=Object(t),a=n(t),i=a.length;i--;){var c=a[++o];if(r(s[c],c,s)===!1)break}return t}}var Zi=Ji();function $t(e,t,r){(r!==void 0&&!Le(e[t],r)||r===void 0&&!(t in e))&&xt(e,t,r)}function Qi(e){return le(e)&&Ke(e)}function Rt(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function ea(e){return co(e,_r(e))}function ta(e,t,r,n,o,s,a){var i=Rt(e,r),c=Rt(t,r),u=a.get(c);if(u){$t(e,r,u);return}var d=s?s(i,c,r+"",e,t,a):void 0,h=d===void 0;if(h){var f=re(c),v=!f&&Je(c),g=!f&&!v&&Et(c);d=c,f||v||g?re(i)?d=i:Qi(i)?d=Jn(i):v?(h=!1,d=si(c)):g?(h=!1,d=yi(c)):d=[]:Js(c)||St(c)?(d=i,St(i)?d=ea(i):(!ie(i)||Q(i))&&(d=_i(c))):h=!1}h&&(a.set(c,d),o(d,c,n,s,a),a.delete(c)),$t(e,r,d)}function Lr(e,t,r,n,o){e!==t&&Zi(t,function(s,a){if(o||(o=new be),ie(s))ta(e,t,a,r,Lr,n,o);else{var i=n?n(Rt(e,a),s,a+"",e,t,o):void 0;i===void 0&&(i=s),$t(e,a,i)}},_r)}var ra="[object String]";function Mt(e){return typeof e=="string"||!re(e)&&le(e)&&pe(e)==ra}var na="[object Boolean]";function nt(e){return e===!0||e===!1||le(e)&&pe(e)==na}function ot(e,t){return zr(e,t)}var oa="[object Number]";function sa(e){return typeof e=="number"||le(e)&&pe(e)==oa}function Nr(e){return e==null}function ia(e){return e===null}var ce=ho(function(e,t,r){Lr(e,t,r)});function aa(e,t,r,n){if(!ie(e))return e;t=Hs(t,e);for(var o=-1,s=t.length,a=s-1,i=e;i!=null&&++o<s;){var c=Vs(t[o]),u=r;if(c==="__proto__"||c==="constructor"||c==="prototype")return e;if(o!=a){var d=i[c];u=void 0,u===void 0&&(u=ie(d)?d:Ct(t[o+1])?[]:{})}ar(i,c,u),i=i[c]}return e}function Wr(e,t,r){return e==null?e:aa(e,t,r)}function la(e){const{inherit:t=!0}=e,{extendActionsProps:r,extendAuthProps:n}=Yr(),s={...ce(ce({items:[],max:10},t?r:{}),e)},a={...ce({auth:()=>!0},t?n:{})};return{actionsProps:s,authProps:a}}function kt(e){return"component"in e}function Hr(e){return"render"in e}function ca(e,t){const{type:r,disabled:n,items:o,max:s}=e,a=h=>{const{auth:f}=h;let v=!1;return f?re(f)?v=f.every(g=>t(g)):v=t(f):v=!0,v},i=h=>{let{ifShow:f=!0}=h;return f=f&&Q(f)?f():f,f&&a(h)},c=h=>{const{component:f,render:v,componentProps:g}=h;if(f)switch(f){case"Dropdown":{const{dropDownItems:y}=g;return!!y.length}default:return!0}return!!v},u=o.map(h=>{const f={...h};if(kt(f)){const v=f.component;switch(f.componentProps={type:r,disabled:n,...f.componentProps},v){case"Dropdown":{f.componentProps.dropDownItems=(f.componentProps.dropDownItems||[]).filter(i);break}}}return f}).filter(i).filter(c),d=sa(s)&&s>=0;return{showActionItems:u.slice(0,d?s:u.length),ellipsisActionItems:u.slice(d?s:u.length)}}const ua=e=>{const{componentProps:t}=e,r=()=>{const{...n}=t;return n};return m.jsx(x.Button,{...r()})},fa=e=>{const{componentProps:t}=e,n=(()=>{const{dropDownItems:o,onClick:s,...a}=t;return a})();return m.jsx(x.Dropdown,{disabled:n.disabled,menu:{items:t==null?void 0:t.dropDownItems,onClick:t==null?void 0:t.onClick},trigger:["click"],children:m.jsx("div",{children:m.jsxs(x.Button,{...n,children:[n.children,m.jsx(fe.CaretDownOutlined,{})]})})})},st=new Map;st.set("Button",ua),st.set("Dropdown",fa);function Br(){const{setExtendActionsComp:e}=Yr();return e(st),{renderContent:p.useCallback((r,n)=>{const o=kt(r),s=Hr(r);if(o){const a=st.get(r.component);return p.createElement(a,{...r,key:n})}return s?m.jsx("div",{children:r.render},n):null},[])}}const Vr=p.createContext({}),da=e=>{const{extendProps:t,extendComp:r}=e.value;return m.jsx(Vr.Provider,{value:{extendProps:t,extendComp:r},children:e.children})},je=()=>p.useContext(Vr),Ur=e=>{const[t,r]=p.useState(e),n=p.useRef(null);return p.useEffect(()=>{n.current&&(n.current(),n.current=null)},[t]),[t,s=>new Promise((a,i)=>{r(c=>{const u=typeof s=="function"?s(c):s;return n.current=a,u})})]},Yr=()=>{const{extendProps:e,extendComp:t}=je(),r=n=>{const o=t==null?void 0:t.actions;o&&Object.keys(o).forEach(s=>{n.set(s,o[s])})};return{extendAuthProps:e==null?void 0:e.auth,extendActionsProps:e==null?void 0:e.actions,setExtendActionsComp:r}},{useToken:pa}=x.theme,ga=({items:e,actionsProps:t})=>{const{type:r,disabled:n}=t,{renderContent:o}=Br(),{token:s}=pa(),a={backgroundColor:s.colorBgElevated,borderRadius:s.borderRadiusLG,boxShadow:s.boxShadowSecondary},i=()=>m.jsx("div",{style:a,children:m.jsx(x.Space,{style:{padding:8},children:e==null?void 0:e.map((c,u)=>o(c,u))})});return m.jsx(x.Dropdown,{disabled:n,menu:{items:[]},dropdownRender:i,trigger:["click"],children:m.jsxs(x.Button,{type:r,children:["更多",m.jsx(fe.CaretDownOutlined,{})]})})},it=e=>{const{actionsProps:t,authProps:r}=la(e),{auth:n}=r,{showActionItems:o,ellipsisActionItems:s}=ca(t,n),{renderContent:a}=Br();return t!=null&&t.render?t.render:m.jsxs(p.Fragment,{children:[o==null?void 0:o.map((i,c)=>a(i,c)),s!=null&&s.length?m.jsx(ga,{actionsProps:t,items:s}):null]})};function ha(e,t){const{okText:r,cancelText:n,onCancel:o,onOk:s,okProps:a,cancelProps:i}=e;return{footerActions:{disabled:t,max:2,items:[{component:"Button",componentProps:{...i,children:n,onClick:o}},{component:"Button",componentProps:{type:"primary",loading:t,...a,children:r,onClick:s}}]}}}const ma=e=>{const{extendDialogProps:t}=ba(),r={width:700,okText:"确定",cancelText:"取消",getPopperContainer:()=>document.body},n={...ce(ce(r,t),e)};return{dialogProps:{...n,getPopperContainer:()=>{const s=n.getPopperContainer();return n.mask?document.body:s}},baseDialogProps:r}},ba=()=>{const{extendProps:e}=je();return{extendDialogProps:e==null?void 0:e.dialog}},va=(e,t,r,n)=>{const{onOpen:o,onClose:s}=t;return{open:async()=>{e||(o&&o(),await r(!0))},close:()=>{r(!1),n(!1),s&&s()}}},ya=({initWidth:e,initHeight:t,setDialogChangeRecord:r})=>{const[n,o]=p.useState(e.current),[s,a]=p.useState(t.current);return{dialogWidth:n,dialogHeight:s,setDialogSize:({width:c,height:u})=>{r({width:n,height:s}),c!==void 0&&o(c),u!==void 0&&a(u)}}},_a=({initLeft:e,initTop:t,setDialogChangeRecord:r})=>{const[n,o]=p.useState(e.current),[s,a]=p.useState(t.current);return{dialogLeft:n,dialogTop:s,setDialogPosition:({left:c,top:u})=>{r({left:n,top:s}),c!==void 0&&o(c),u!==void 0&&a(u)}}},qr=({containerSizeTarget:e,dialogHeaderRef:t,dialogRef:r,setDialogPosition:n})=>{const o=p.useRef(0),s=p.useRef(0),a=d=>{const h=d.getBoundingClientRect(),f=h.width,v=h.height,g=-.5*f,y=-.5*v;return{translateX:g,translateY:y}},i=p.useCallback(d=>{const{offsetLeft:h,offsetTop:f}=r.current;o.current=d.clientX-h,s.current=d.clientY-f,document.addEventListener("mousemove",c),document.addEventListener("mouseup",u)},[]),c=p.useCallback(d=>{const h=r.current,{translateX:f,translateY:v}=a(h);let g=d.clientX-o.current,y=d.clientY-s.current;const w=-f,j=-v,P=e.current.scrollWidth-h.offsetWidth-f,D=e.current.scrollHeight-h.offsetHeight-v;g<w&&(g=w),g>P&&(g=P),y<j&&(y=j),y>D&&(y=D),n({left:g,top:y})},[]),u=p.useCallback(()=>{document.removeEventListener("mousemove",c),document.removeEventListener("mouseup",u)},[]);return p.useEffect(()=>{const d=t.current;return d.addEventListener("mousedown",i),()=>{d.removeEventListener("mousedown",i)}},[]),{}},wa=({containerSizeTarget:e,dialogChangeRecord:t,close:r,setDialogSize:n,setDialogPosition:o})=>{const[s,a]=p.useState(!1),[i,c]=p.useState(!1);return{minimizeVisible:s,maximizeVisible:i,setMinimizeVisible:a,setMaximizeVisible:c,onMinimize:()=>{a(!0)},onMaximize:v=>{if(v==="minimize"&&a(!1),v==="maximize"){const{scrollWidth:g,scrollHeight:y}=e.current,w=Math.floor(g),j=Math.floor(y),P=Math.floor(g/2),D=Math.floor(y/2);n({width:w,height:j}),o({top:D,left:P}),c(!0)}},onRecovery:()=>{const{top:v,left:g,width:y,height:w}=t.current;n({width:y,height:w}),o({top:v,left:g}),c(!1)},onClose:()=>{a(!1),r()}}},Ca=({visible:e,containerSizeTarget:t,dialogHeight:r,dialogRef:n,dialogHeaderRef:o,dialogFooterRef:s})=>{const{clientHeight:a,scrollHeight:i}=t.current,[c,u]=p.useState(0),[d,h]=p.useState("unset"),f=(v,g)=>{var W,q;const j=(W=o.current)==null?void 0:W.offsetHeight,P=(q=s.current)==null?void 0:q.offsetHeight;let D=v-j-P-0;const M=g-j-P-0;return D>M&&(D=M),D};return p.useEffect(()=>{var v;if(c===a){console.log("触发了dialogMaxHeight改变");const g=(v=n.current)==null?void 0:v.getBoundingClientRect().height;h(f(g,a)),u("unset")}},[c]),p.useEffect(()=>{r!=="unset"&&r!==0&&(console.log("触发了重新设置contentMaxHeight",r),h(f(r,r>a?i:a)),u("unset"))},[r]),p.useEffect(()=>{e?u(a):(u(0),h("unset"))},[e]),{dialogMaxHeight:c,contentMaxHeight:d}},xa=()=>{const[e,t]=p.useState(160),[r,n]=p.useState(60),o=p.useRef(null);return{minimizeTop:r,minimizeLeft:e,minimizeRef:o,setMinimizePosition:({left:a,top:i})=>{a!==void 0&&t(a),i!==void 0&&n(i)}}},Ta=({visible:e,dialogRef:t,minimizeRef:r,container:n})=>{const o={xphDialog:"xph--dialog",xphDialogWrapper:"xph--dialog--wrapper",xphMinimizeDialog:"xph--dialog--minimize"},s=(i,c)=>{console.log("触发插入"),i.querySelector(`.${o.xphDialogWrapper}`).style.opacity="unset",i.querySelector(`.${o.xphMinimizeDialog}`).style.opacity="unset",c.querySelector(`.${o.xphDialogWrapper}`).style.opacity=.7,c.querySelector(`.${o.xphMinimizeDialog}`).style.opacity=.7;const u=document.createElement("div");u.style.visibility="hidden",c.parentNode.insertBefore(u,c.nextSibling),c.parentNode.insertBefore(i,u),c.parentNode.removeChild(u)},a=i=>{var d,h;const c=Array.from(n.querySelectorAll(`.${o.xphDialog}`)).filter(f=>(f==null?void 0:f.parentNode)===n),u=c[c.length-1];if(((d=t.current)==null?void 0:d.parentNode)!==u&&(s((h=t.current)==null?void 0:h.parentNode,u),i)){const f=i.target;f.tagName==="INPUT"&&f.focus&&f.focus()}};return p.useEffect(()=>{var i,c;return(i=t.current)==null||i.addEventListener("mousedown",a,!1),(c=r.current)==null||c.addEventListener("mousedown",a,!1),()=>{var u,d;(u=t.current)==null||u.removeEventListener("mousedown",a,!1),(d=r.current)==null||d.removeEventListener("mousedown",a,!1)}},[]),p.useEffect(()=>{if(e)a();else{const i=Array.from(n.querySelectorAll(`.${o.xphDialog}`)).filter(f=>(f==null?void 0:f.parentNode)===n),c=i.map(f=>f.querySelector(`.${o.xphDialogWrapper}`)).filter(f=>f!==null),u=i.map(f=>f.querySelector(`.${o.xphMinimizeDialog}`)).filter(f=>f!==null),d=c.filter(f=>f.style.display==="flex"),h=u.filter(f=>f.style.display==="flex");if(d.length){s(d[d.length-1].parentNode,i[i.length-1]);return}if(h.length){s(h[h.length-1].parentNode,i[i.length-1]);return}}},[e]),{dialogTopShowClassConfig:o}},Sa=({initWidth:e,initHeight:t,curPropsWidth:r,curPropsHeight:n,setParentInitRecord:o})=>{p.useEffect(()=>{if(r!==e.current){console.log("动态设置了宽度"),o(s=>s+1);return}if(n!==t.current){console.log("动态设置了高度"),o(s=>s+1);return}},[r,n])},Pa=()=>{const e=p.useRef({left:0,top:0,width:0,height:0});return{dialogChangeRecord:e,setDialogChangeRecord:({left:r,top:n,width:o,height:s})=>{const{left:a,top:i,width:c,height:u}=e.current;e.current={left:r??a,top:n??i,width:o??c,height:s??u}}}},Ea=({containerSizeTarget:e,dialogRef:t,minResizeRecord:r,setDialogSize:n,setDialogPosition:o,setMinResizeRecord:s})=>{const a=p.useCallback(()=>m.jsx("div",{ref:i,style:{position:"absolute",border:"4px dashed #ccc",display:"none",zIndex:999}}),[]),i=p.useRef(null),c=p.useRef(),u=p.useRef(!1),[d,h]=p.useState(!1),f=p.useRef(0),v=p.useRef(0),g=(C,I)=>{r.current||s({width:t.current.offsetWidth,height:t.current.offsetHeight}),u.current=!0,h(!0),c.current=I;const{clientX:T,clientY:S}=C;f.current=T,v.current=S;const E=parseFloat(t.current.style.left),O=parseFloat(t.current.style.top),R=t.current.offsetWidth,$=t.current.offsetHeight;i.current.style.display="block",i.current.style.left=`${E-.5*R}px`,i.current.style.top=`${O-.5*$}px`,i.current.style.width=`${R}px`,i.current.style.height=`${$}px`},y=C=>{if(u.current){const{clientX:I,clientY:T}=C,S=I-f.current,E=T-v.current,O=parseFloat(i.current.style.left),R=parseFloat(i.current.style.top),$=i.current.offsetWidth,G=i.current.offsetHeight,ee=r.current.width,se=r.current.height,ge=e.current.scrollWidth,ue=e.current.scrollHeight;let H=$,B=G,Y=O,K=R;switch(c.current){case"lt":{H=H-S,B=B-E,K=K+E,Y=Y+S,H<ee&&(H=$,Y=O),B<se&&(B=G,K=R),Y<0&&(Y=0,H=$),K<0&&(K=0,B=G);break}case"rt":{H=H+S,B=B-E,K=K+E,Y=O,H<ee&&(H=$),B<se&&(B=G,K=R),H>ge-Y&&(H=ge-Y),K<0&&(K=0,B=G);break}case"rb":{H=H+S,B=B+E,K=R,Y=O,H<ee&&(H=$),B<se&&(B=G),H>ge-Y&&(H=ge-Y),B>ue-K&&(B=ue-K);break}case"lb":{H=H-S,B=B+E,K=R,Y=Y+S,H<ee&&(H=$,Y=O),B<se&&(B=G),Y<0&&(Y=0,H=$),B>ue-K&&(B=ue-K);break}}i.current.style.left=`${Y}px`,i.current.style.top=`${K}px`,i.current.style.width=`${H}px`,i.current.style.height=`${B}px`,f.current=I,v.current=T}},w=()=>{if(u.current){u.current=!1,h(!1),i.current.style.display="none";const{left:C,top:I,width:T,height:S}=i.current.style,E=parseFloat(C)+.5*parseFloat(T),O=parseFloat(I)+.5*parseFloat(S),R=parseFloat(T),$=parseFloat(S);o({left:E,top:O}),n({width:R,height:$})}},j=C=>g(C,"lt"),P=C=>g(C,"rt"),D=C=>g(C,"rb"),M=C=>g(C,"lb"),W=p.useCallback(C=>{y(C)},[]),q=p.useCallback(()=>{w()},[]),X=p.useCallback(()=>{w()},[]);return p.useEffect(()=>(document.body.addEventListener("mousemove",W),document.body.addEventListener("mouseup",q),document.body.addEventListener("mouseleave",X),()=>{document.body.removeEventListener("mousemove",W),document.body.removeEventListener("mouseup",q),document.body.removeEventListener("mouseleave",X)}),[]),{resizingState:d,DashedBox:a,onMousedownResizeLt:j,onMousedownResizeRt:P,onMousedownResizeRb:D,onMousedownResizeLb:M}},Fa=({container:e,dialogProps:t,baseDialogProps:r})=>{const[n,o]=p.useState(0),s=()=>{o(C=>C+1)};p.useEffect(()=>(window.addEventListener("resize",s),()=>{window.removeEventListener("resize",s)}),[]);const{containerSizeTarget:a,setContainerSizeTarget:i}=Aa({container:e}),{width:c,height:u}=r,{width:d,height:h}=t,f=d||c,v=h||u,{clientWidth:g,clientHeight:y}=a.current,w=f?f>g?g:f:0,j=v?v>y?y:v:"unset",P=p.useRef(w),D=p.useRef(j),M=C=>{P.current=C.width,D.current=C.height},W=p.useRef(Math.floor(g/2)),q=p.useRef(Math.floor(y/2)),X=C=>{W.current=C.left,q.current=C.top};return p.useEffect(()=>{i(),M({width:w,height:j}),X({left:Math.floor(g/2),top:Math.floor(y/2)})},[n]),{containerSizeTarget:a,parentInitRecord:n,initLeft:W,initTop:q,initWidth:P,initHeight:D,curPropsWidth:w,curPropsHeight:j,setInitPosition:X,setInitSize:M,setParentInitRecord:o}},ja=()=>{const e=p.useRef(null);return{minResizeRecord:e,setMinResizeRecord:r=>{e.current=r}}},Aa=({container:e})=>{const t=e===document.body,r=p.useRef({clientWidth:t?window.innerWidth:e.clientWidth,clientHeight:t?window.innerHeight:e.clientHeight,scrollWidth:t?window.innerWidth:e.scrollWidth,scrollHeight:t?window.innerHeight:e.scrollHeight});return{containerSizeTarget:r,setContainerSizeTarget:()=>{r.current={clientWidth:t?window.innerWidth:e.clientWidth,clientHeight:t?window.innerHeight:e.clientHeight,scrollWidth:t?window.innerWidth:e.scrollWidth,scrollHeight:t?window.innerHeight:e.scrollHeight}}}},It={"minimize-windows":"_minimize-windows_12u3y_1","minimize-windows-title":"_minimize-windows-title_12u3y_43","minimize-windows-operate":"_minimize-windows-operate_12u3y_55"},Da=({onClick:e})=>m.jsx(x.Button,{type:"link",onClick:e,icon:m.jsx(fe.ShrinkOutlined,{style:{fontSize:"22px",cursor:"pointer"}})}),Gr=({onClick:e})=>m.jsx(x.Button,{type:"link",onClick:e,icon:m.jsx(fe.FullscreenOutlined,{style:{fontSize:"22px",cursor:"pointer"}})}),Oa=({onClick:e})=>m.jsx(x.Button,{type:"link",onClick:e,icon:m.jsx(fe.FullscreenExitOutlined,{style:{fontSize:"22px",cursor:"pointer"}})}),Xr=({onClick:e,disabled:t})=>m.jsx(x.Button,{type:"link",onClick:e,disabled:t,icon:m.jsx(fe.CloseOutlined,{style:{fontSize:"22px",cursor:"pointer"}})}),{useToken:$a}=x.theme,Ra=p.forwardRef(({title:e,left:t,top:r,visible:n,loading:o,onMaximize:s,onClosesquare:a,className:i},c)=>{const{token:u}=$a(),d={borderRadius:u.borderRadiusLG};return m.jsxs("div",{style:{display:n?"flex":"none",left:t,top:r,...d},className:`${It["minimize-windows"]} ${i}`,ref:c,children:[m.jsx("div",{className:It["minimize-windows-title"],title:e,children:e}),m.jsxs("div",{className:It["minimize-windows-operate"],children:[m.jsx(Gr,{onClick:s}),m.jsx(Xr,{onClick:a,disabled:o})]})]})}),ne={"xph-dialog-mask":"_xph-dialog-mask_o2yvb_1","xph-dialog-wrapper":"_xph-dialog-wrapper_o2yvb_23",dialog__header:"_dialog__header_o2yvb_45","dialog__header-btns":"_dialog__header-btns_o2yvb_63",dialog__main:"_dialog__main_o2yvb_71",dialog__footer:"_dialog__footer_o2yvb_85",dialog__resize:"_dialog__resize_o2yvb_99","dialog__resize-lt":"_dialog__resize-lt_o2yvb_113","dialog__resize-rt":"_dialog__resize-rt_o2yvb_125","dialog__resize-rb":"_dialog__resize-rb_o2yvb_137","dialog__resize-lb":"_dialog__resize-lb_o2yvb_149"},{useToken:Ma}=x.theme,ka=p.forwardRef((e,t)=>{console.log("render Dialog==============================================");const{token:r}=Ma(),n={borderRadius:r.borderRadiusLG},{children:o,baseDialogProps:s,mask:a,title:i,renderFooter:c,renderTitle:u,getPopperContainer:d}=e,h=d(),[f,v]=Ur(!1),[g,y]=p.useState(!1),{open:w,close:j}=va(f,e,v,y),{footerActions:P}=ha(e,g),D=p.useRef(null),M=p.useRef(null),W=p.useRef(null),q=p.useRef(null),{containerSizeTarget:X,parentInitRecord:C,initLeft:I,initTop:T,initWidth:S,initHeight:E,curPropsWidth:O,curPropsHeight:R,setParentInitRecord:$}=Fa({container:h,dialogProps:e,baseDialogProps:s}),{dialogChangeRecord:G,setDialogChangeRecord:ee}=Pa(),{dialogWidth:se,dialogHeight:ge,setDialogSize:ue}=ya({initWidth:S,initHeight:E,setDialogChangeRecord:ee}),{dialogLeft:H,dialogTop:B,setDialogPosition:Y}=_a({initTop:T,initLeft:I,setDialogChangeRecord:ee}),{dialogMaxHeight:K,contentMaxHeight:Lt}=Ca({visible:f,containerSizeTarget:X,dialogHeight:ge,dialogRef:D,dialogHeaderRef:M,dialogFooterRef:q}),{minResizeRecord:Be,setMinResizeRecord:Ae}=ja(),{minimizeLeft:De,minimizeTop:Ve,minimizeRef:ye,setMinimizePosition:ft}=xa(),{minimizeVisible:Ue,maximizeVisible:Nt,setMaximizeVisible:Wt,onMaximize:Se,onMinimize:Pe,onRecovery:dt,onClose:Oe}=wa({containerSizeTarget:X,dialogChangeRecord:G,close:j,setDialogSize:ue,setDialogPosition:Y}),$e=()=>{console.log("触发了initDialog"),ue({width:S.current,height:E.current}),Y({left:I.current,top:T.current}),ft({left:160,top:60}),Wt(!1),Ae(null)};p.useEffect(()=>{$e()},[C]),Sa({initWidth:S,initHeight:E,curPropsWidth:O,curPropsHeight:R,setParentInitRecord:$}),qr({containerSizeTarget:X,dialogHeaderRef:M,dialogRef:D,setDialogPosition:Y}),qr({containerSizeTarget:X,dialogHeaderRef:ye,dialogRef:ye,setDialogPosition:ft});const{dialogTopShowClassConfig:Ye}=Ta({visible:f,container:h,dialogRef:D,minimizeRef:ye}),{resizingState:qe,DashedBox:Ht,onMousedownResizeLt:Bt,onMousedownResizeRt:pt,onMousedownResizeRb:gt,onMousedownResizeLb:Ee}=Ea({containerSizeTarget:X,dialogRef:D,minResizeRecord:Be,setDialogSize:ue,setDialogPosition:Y,setMinResizeRecord:Ae});return p.useImperativeHandle(t,()=>({open:w,close:Oe,setLoading:y,getVisible:()=>f})),m.jsxs("div",{className:Ye.xphDialog,children:[a&&f?m.jsx("div",{className:ne["xph-dialog-mask"]}):null,m.jsx(Ra,{visible:Ue,className:`${Ye.xphMinimizeDialog}`,loading:g,ref:ye,left:De,top:Ve,title:i,onMaximize:()=>Se("minimize"),onClosesquare:Oe}),m.jsxs("div",{ref:D,className:`${ne["xph-dialog-wrapper"]} ${Ye.xphDialogWrapper}`,style:{display:f&&!Ue?"flex":"none",left:H,top:B,width:se,height:ge,maxHeight:K,opacity:qe?.2:"unset",...n},children:[m.jsxs("div",{ref:M,className:ne.dialog__header,children:[m.jsx("div",{children:u?u():i}),m.jsxs("div",{className:ne["dialog__header-btns"],children:[m.jsx(Da,{onClick:Pe}),Nt?m.jsx(Oa,{onClick:dt}):m.jsx(Gr,{onClick:()=>Se("maximize")}),m.jsx(Xr,{onClick:Oe,disabled:g})]})]}),m.jsx("div",{ref:W,className:ne.dialog__main,style:{maxHeight:Lt},children:m.jsx(x.Spin,{spinning:g,children:f?o:null})}),c?m.jsx("div",{ref:q,children:c({loading:g})}):m.jsx("div",{ref:q,className:ne.dialog__footer,children:m.jsx(it,{...P})}),m.jsx("div",{className:`${ne.dialog__resize} ${ne["dialog__resize-lt"]}`,onMouseDown:Bt}),m.jsx("div",{className:`${ne.dialog__resize} ${ne["dialog__resize-rt"]}`,onMouseDown:pt}),m.jsx("div",{className:`${ne.dialog__resize} ${ne["dialog__resize-rb"]}`,onMouseDown:gt}),m.jsx("div",{className:`${ne.dialog__resize} ${ne["dialog__resize-lb"]}`,onMouseDown:Ee})]}),m.jsx(Ht,{})]})}),Ia=(e,t)=>{const{children:r,...n}=e,{baseDialogProps:o,dialogProps:s}=ma(n),{getPopperContainer:a}=s;return console.log("render XphDialog=============================================="),m.jsx(Jr,{getPopperContainer:a,children:m.jsx(ka,{...s,baseDialogProps:o,ref:t,children:r})})},Kr=p.forwardRef(Ia),Jr=({children:e,getPopperContainer:t})=>{const[r,n]=p.useState(null);return p.useEffect(()=>{const o=t();n(o)},[]),r?vn.createPortal(e,r):null};function za(e){const{extendAuthProps:t}=La();return{authProps:{...ce(ce({auth:o=>!1},t),e)}}}const La=()=>{const{extendProps:e}=je();return{extendAuthProps:e==null?void 0:e.auth}},Na=e=>{const{children:t,...r}=e,{authProps:n}=za(r),{auth:o,authCode:s}=n;return(()=>{let i=!1;return s&&o&&(re(s)?i=s.every(c=>o(c)):i=o(s)),i})()?t:null};function at(e){return"component"in e}function lt(e){return"render"in e}function Wa(e){return e.includes("Input")||e.includes("Complete")?"请输入":e.includes("Picker")||e.includes("Select")||e.includes("Cascader")||e.includes("Checkbox")||e.includes("Radio")||e.includes("Switch")?"请选择":""}function Ha(e,t,r){["DatePicker","MonthPicker","WeekPicker","TimePicker"].includes(t)?e.type=r?"string":"object":["RangePicker","Upload","CheckboxGroup","TimePicker"].includes(t)?e.type="array":["InputNumber"].includes(t)&&(e.type="number")}const Ba=["DatePicker","MonthPicker","RangePicker","WeekPicker","TimePicker"],Va=e=>{const{show:t,ifShow:r,required:n,disabled:o,componentProps:s}=e;return!!(Q(t)||Q(r)||Q(n)||Q(o)||Q(s)||lt(e))},Ua=e=>["application/json","application/javascript","text/plain","text/html","text/css"].includes(e)?`${e}; charset=utf-8`:e,Ya=(e,t,r)=>{const n=p.useRef(null),o=p.useRef(null),{handleCollapseChangeFalse:s}=r.current||{},{show:a,ifShow:i}=e;let c=!0,u=!0;if(nt(a)&&(c=a),nt(i)&&(u=i),Q(a)){c=a({model:t});const d=Nr(n.current)?c:n.current;p.useEffect(()=>{ot(c,d)||s&&s()},[t])}if(Q(i)){u=i({model:t});const d=Nr(o.current)?u:o.current;p.useEffect(()=>{ot(u,d)||s&&s()},[t])}return n.current=c,o.current=u,{isShow:c,isIfShow:u}},qa=(e,t)=>{const{collapsible:r,collapseNum:n}=e,[o,s]=p.useState(!!(r&&t>=n));return{itemCollapse:o,setItemCollapse:s}},Ga=({item:e,model:t,isShow:r,componentProps:n})=>{const{rules:o=[],label:s,required:a}=e;let i=o;const c=at(e),u=c?Wa(e.component)+s:"";function d(g,y){const w=g.message||u;return y===void 0||ia(y)||Array.isArray(y)&&y.length===0||typeof y=="string"&&y.trim()===""||typeof y=="object"&&Reflect.has(y,"checked")&&Reflect.has(y,"halfChecked")&&Array.isArray(y.checked)&&Array.isArray(y.halfChecked)&&y.checked.length===0&&y.halfChecked.length===0?Promise.reject(w):Promise.resolve()}const h=Q(a)?a({model:t}):a;h&&(!i||i.length===0?i=[{required:h,validator:d}]:i.findIndex(y=>Reflect.has(y,"required"))===-1&&i.push({required:h,validator:d}));const f=i.findIndex(g=>Reflect.has(g,"required")&&!Reflect.has(g,"validator"));if(f!==-1){const g=i[f];if(r||(g.required=!1),c){const{component:y}=e;Reflect.has(g,"type")||(g.type=y==="InputNumber"?"number":"string"),g.message=g.message||u,(y.includes("Input")||y.includes("Textarea"))&&(g.whitespace=!0);const w=n.valueFormat;Ha(g,y,w)}}const v=i.findIndex(g=>g.max);return v!==-1&&!i[v].validator&&(i[v].message=i[v].message||`字符数应小于${i[v].max}位`),{rules:i}},Xa=(e,t,r)=>{const{disabled:n}=e;let o=!1;const{disabled:s}=t;return Q(s)&&(o=s({model:r})),nt(s)&&(o=s),{disabled:Reflect.has(t,"disabled")?o:n}},Ka=(e,t)=>{const r={},{componentProps:n={}}=e;return Q(n)&&Object.assign(r,n({model:t})),Object.assign(r,n),{componentProps:r}},Ja=(e,t)=>{const{colProps:r={}}=e,{colProps:n={span:24}}=t;return{colProps:{...n,...r}}},Za=({formProps:e})=>{const{items:t}=e;return{formItems:t.map(n=>({...n}))}},Qa=(e,t)=>{const r=i=>(Object.keys(i).forEach(c=>{Object.defineProperty(i,c,{value:i[c],writable:!1,enumerable:!0,configurable:!1})}),i),n={};e.items.forEach(i=>{n[i.name]=i.initialValue});const o=Va(t),s=o?x.Form.useWatch(i=>r(i)):null;return{rewritingModel:p.useMemo(()=>s||r(n),[s]),isusewatch:o}},el=()=>{const e=p.useRef(null);function t(n){e.current=n}const r={getFieldsValue:(...n)=>{if(!e.current)throw new Error("表单还没初始化完成");return e.current.getFieldsValue(...n)},setFieldsValue:(...n)=>{if(!e.current)throw new Error("表单还没初始化完成");return e.current.setFieldsValue(...n)},resetFields:(...n)=>{if(!e.current)throw new Error("表单还没初始化完成");return e.current.resetFields(...n)},validator:(...n)=>{if(!e.current)throw new Error("表单还没初始化完成");return e.current.validator(...n)},scrollToField:(...n)=>{if(!e.current)throw new Error("表单还没初始化完成");return e.current.scrollToField(...n)}};return p.useEffect(()=>(console.log("ParentComponent is mounted====================================="),()=>{console.log("ParentComponent is unmounted===================================="),e.current=null}),[]),[t,r]};function tl(e,t={}){const r=/^\[(.+)\]$/;if(r.test(e)){const n=e.match(r);if(n&&n[1]){const o=n[1].split(",");if(!o.length)return;const s=[];return o.forEach((a,i)=>{Wr(s,i,t[a.trim()])}),s.filter(Boolean).length?s:void 0}}}function rl(e,t={}){const r=/^\{(.+)\}$/;if(r.test(e)){const n=e.match(r);if(n&&n[1]){const o=n[1].split(",");if(!o.length)return;const s={};return o.forEach(a=>{Wr(s,a.trim(),t[a.trim()])}),Object.values(s).filter(Boolean).length?s:void 0}}}function nl(e,t){const r=t.fieldMapToTime;if(!r||!Array.isArray(r))return e;for(const[n,[o,s],a="YYYY-MM-DD"]of r){if(!n||!o||!s)continue;if(!e[n]){Reflect.deleteProperty(e,n);continue}const[i,c]=e[n],[u,d]=Array.isArray(a)?a:[a,a];e[o]=Ge(i).format(u),e[s]=Ge(c).format(d),Reflect.deleteProperty(e,n)}return e}const ol=(e,t,r)=>{const n=e.filter(a=>a.name);return{handleFormatRenderValues:a=>{const i={},c=[];return n.forEach(u=>{const d=Reflect.has(a,u.name),h=tl(u.name,a)||rl(u.name,a);if(d||h){const f=h||a[u.name];if(at(u))if(Ba.includes(u.component)){if(re(f)){const v=[];for(const g of f)v.push(g?Ge(g):null);i[u.name]=v}else i[u.name]=f?Ge(f):null;c.push(u.name)}else i[u.name]=f,c.push(u.name);lt(u)&&(i[u.name]=f,c.push(u.name))}}),{renderValues:i,validKeys:c}},handleFormatReturnValues:a=>{var c,u,d,h,f;if(!ie(a))return{};const i={};for(const v of Object.entries(a)){let[,g]=v;const[y]=v;if(!y||Q(g))continue;const{transformDateFunc:w}=t,j=(d=(u=(c=r.current)==null?void 0:c.get(y))==null?void 0:u.current)==null?void 0:d.componentProps,P=j==null?void 0:j.valueFormat;if(ie(g)){const D=g;D.format&&(g=w==null?void 0:w(D,P))}re(g)&&((h=g[0])!=null&&h.format)&&((f=g[1])!=null&&f.format)&&(g=g.map(D=>w==null?void 0:w(D,P))),Mt(g)&&(g===""?g=void 0:g=g.trim()),i[y]=g}return nl(i,t)}}},sl=(e,t,r)=>({getFieldsValue:(...c)=>r(e.getFieldsValue(...c)),setFieldsValue:c=>{const{renderValues:u,validKeys:d}=t(c);e.setFieldsValue(u),e.validateFields(d)},resetFields:async()=>e.resetFields(),validator:async c=>e.validateFields(c).then(u=>r(u)),scrollToField:async(c,u)=>e.scrollToField(c,u)}),il=e=>{const{extendFormProps:t}=Zr();return{formProps:{...ce(ce({collapseNum:5,colon:!1,items:[],labelWrap:!0,transformDateFunc:(o,s)=>{var a;return((a=o==null?void 0:o.format)==null?void 0:a.call(o,s||"YYYY-MM-DD HH:mm:ss"))??o},fieldMapToTime:[]},t),e)}}},ct=e=>{const{immediate:t=!0,params:r,api:n,apiCallback:o,isUseWatch:s}=e,a=p.useRef(!0),i=p.useRef(r),c=()=>{n&&Q(n)&&(r?n(r).then(o):n().then(o),i.current=r)};return p.useEffect(()=>{a.current&&(t&&c(),a.current=!1),!a.current&&s&&(ot(r,i.current)||t&&c())},[r]),{getApiData:c}},al=(e,t)=>{const{collapsible:r,collapseNum:n}=e,o=p.useRef();return{collapsible:r,collapseNum:n,collapseRef:o,onClickCollapseToTrue:()=>{var i;(i=t.current)==null||i.forEach(c=>{if(c.current){const{itemIndex:u}=c.current;u>=n&&r&&c.current.setItemCollapse(!0)}})},onClickCollapseToFalse:()=>{var i;(i=t.current)==null||i.forEach(c=>{if(c.current){const{itemCollapse:u}=c.current;u&&c.current.setItemCollapse(!1)}})}}},Zr=()=>{const{extendProps:e,extendComp:t}=je(),r=n=>{const o=t==null?void 0:t.form;o&&Object.keys(o).forEach(s=>{n.set(s,o[s])})};return{extendFormProps:e==null?void 0:e.form,setExtendFormComp:r}},ll=e=>{console.log("render ApiSelect");const{api:t,params:r,immediate:n=!0,isusewatch:o,onDropdownVisibleChange:s}=e,a=o==="true",[i,c]=p.useState([]),{getApiData:u}=ct({api:t,immediate:n,params:r,apiCallback:c,isUseWatch:a}),d=f=>{f&&!n&&u(),s&&s(f)},h=()=>{const{api:f,params:v,immediate:g,isusewatch:y,...w}=e;return w};return m.jsx(x.Select,{...h(),options:i,onDropdownVisibleChange:d})},cl=e=>{console.log("render ApiTreeSelect");const{api:t,params:r,immediate:n=!0,isusewatch:o,onDropdownVisibleChange:s}=e,a=o==="true",[i,c]=p.useState([]),{getApiData:u}=ct({api:t,immediate:n,params:r,apiCallback:c,isUseWatch:a}),d=f=>{f&&!n&&u(),s&&s(f)},h=()=>{const{api:f,params:v,immediate:g,isusewatch:y,...w}=e;return w};return m.jsx(x.TreeSelect,{...h(),treeData:i,onDropdownVisibleChange:d})},ul=e=>{console.log("render ApiTransfer");const{api:t,params:r,isusewatch:n}=e,o=n==="true",[s,a]=p.useState([]);ct({api:t,params:r,apiCallback:a,isUseWatch:o});const i=()=>{const{api:c,params:u,isusewatch:d,...h}=e;return h};return m.jsx(x.Transfer,{...i(),dataSource:s})},fl=e=>{console.log("render ApiAutoComplete");const{api:t,params:r,immediate:n=!0,isusewatch:o,onDropdownVisibleChange:s}=e,a=o==="true",[i,c]=p.useState([]),{getApiData:u}=ct({api:t,immediate:n,params:r,apiCallback:c,isUseWatch:a}),d=f=>{f&&!n&&u(),s&&s(f)},h=()=>{const{api:f,params:v,immediate:g,isusewatch:y,...w}=e;return w};return m.jsx(x.AutoComplete,{...h(),options:i,onDropdownVisibleChange:d})},ve={String:"String","String[]":"String[]","File[]":"File[]",FileList:"FileList"},dl=e=>{console.log("render AutoUpload"),console.log(mt());const t="",{api:r,maxCount:n=1,maxSize:o=2,listType:s="picture-card",openCrop:a=!1,data:i,returnType:c=ve.String,value:u=t,onChange:d}=e,h=p.useRef(!0),f=p.useRef(0),v=p.useRef([]),[g,y]=p.useState([]),w=C=>{v.current=C,y([...C])},j=()=>{const{api:C,maxCount:I,maxSize:T,openCrop:S,beforeUpload:E,fileList:O,returnType:R,...$}=e;return $},P=C=>{const I=C.size/1024/1024<o;I||x.message.error(`文件大小超过:${o}M, 请重试`);const T=v.current.length+f.current<n;return T||x.message.error(`文件数量不能超过${n}个`),I&&T&&f.current++,I&&T&&D(C),x.Upload.LIST_IGNORE},D=C=>{a?(x.message.error("暂时不支持裁剪功能,后续兼容。。。。"),M({file:C})):M({file:C})},M=C=>{r?r({file:C.file,...i}).then(I=>{w([...v.current,...I])}).finally(()=>{f.current--}):(Object.assign(C.file,{status:"done",url:URL.createObjectURL(new Blob([C.file],{type:Ua(C.file.type)}))}),w([...v.current,C.file]),f.current--)},W=C=>{const{file:I,fileList:T}=C,{status:S}=I;switch(S){case"removed":{w([...T]);break}}},q=C=>{const I=S=>{const E=S.split("/"),O=E[E.length-1],[R]=O.split("?");return R};return{uid:(S=>{const E=v.current.find(O=>O.url===S);return E?E.uid:mt()})(C),name:I(C),url:C,status:"done"}},X=()=>{switch(c){case ve.String:return g.map(C=>C.url).join(",");case ve["String[]"]:return g.map(C=>C.url);case ve["File[]"]:return[...g];case ve.FileList:return[...g]}};return p.useEffect(()=>{const C=X();if(ot(C,u))return;let I=[];switch(c){case ve.String:{I=(u||"").split(",").filter(T=>T).map(T=>q(T));break}case ve["String[]"]:{I=(u||[]).map(T=>q(T));break}case ve["File[]"]:{I=(u||[]).map(T=>T);break}case ve.FileList:{I=(u||[]).map(T=>T);break}}w(I)},[u]),p.useEffect(()=>{if(h.current){h.current=!1;return}const C=X();d==null||d(C)},[g]),m.jsx(x.Upload,{listType:s,...j(),fileList:g,beforeUpload:P,onChange:W,children:"上传"})},N=new Map;N.set("Input",x.Input),N.set("ApiSelect",ll),N.set("Select",x.Select),N.set("InputNumber",x.InputNumber),N.set("ApiTreeSelect",cl),N.set("TreeSelect",x.TreeSelect),N.set("ApiTransfer",ul),N.set("Transfer",x.Transfer),N.set("Switch",x.Switch),N.set("Button",x.Button),N.set("Radio",x.Radio),N.set("RadioGroup",x.Radio.Group),N.set("Checkbox",x.Checkbox),N.set("CheckboxGroup",x.Checkbox.Group),N.set("Cascader",x.Cascader),N.set("TimePicker",x.TimePicker),N.set("DatePicker",x.DatePicker),N.set("MonthPicker",x.DatePicker.MonthPicker),N.set("WeekPicker",x.DatePicker.WeekPicker),N.set("RangePicker",x.DatePicker.RangePicker),N.set("InputPassword",x.Input.Password),N.set("InputTextArea",x.Input.TextArea),N.set("ApiAutoComplete",fl),N.set("AutoComplete",x.AutoComplete),N.set("Upload",x.Upload),N.set("AutoUpload",dl);const Qr={"form-item-force":"_form-item-force_1hsf3_1","form-item-hidden":"_form-item-hidden_1hsf3_9"},pl=p.forwardRef(({itemIndex:e,itemProps:t,methods:r,formProps:n,collapseRef:o},s)=>{console.log("render FormItem",t.name);const{rewritingModel:a,isusewatch:i}=Qa(n,t),{isIfShow:c,isShow:u}=Ya(t,a,o),{colProps:d}=Ja(t,n),{componentProps:h}=Ka(t,a),{rules:f}=Ga({item:t,model:a,isShow:u,componentProps:h}),{disabled:v}=Xa(n,t,a),{itemCollapse:g,setItemCollapse:y}=qa(n,e),{name:w,label:j,wrapperCol:P,labelCol:D,valuePropName:M,initialValue:W,forceRow:q}=t;p.useImperativeHandle(s,()=>({itemIndex:e,componentProps:h,itemCollapse:g,setItemCollapse:y}));const X=()=>({name:w,label:j,rules:f,wrapperCol:P,labelCol:D,valuePropName:M,initialValue:W}),{setExtendFormComp:C}=Zr();C(N);const I=at(t),T=lt(t),S=()=>{if(I){const E=N.get(t.component);return m.jsx(E,{...h,disabled:v,isusewatch:i.toString()})}return T?t.render({model:a,name:w,disabled:v,methods:r,componentProps:h}):null};return m.jsxs(p.Fragment,{children:[q?m.jsx("div",{className:Qr["form-item-force"]}):null,c?m.jsx(x.Col,{...d,className:u&&!g?void 0:Qr["form-item-hidden"],children:m.jsx(x.Form.Item,{...X(),children:S()})}):null]})}),gl={"collapse-wrapper":"_collapse-wrapper_ylm01_1"},hl=p.forwardRef(({collapsible:e,onClickExpand:t,onClickFold:r},n)=>{const[o,s]=p.useState(e),a=p.useMemo(()=>o,[o]),i=()=>{r(),s(!0)},c=()=>{t(),s(!1)};return p.useImperativeHandle(n,()=>({handleCollapseChangeFalse:c})),m.jsx("div",{className:gl["collapse-wrapper"],children:a?m.jsx(x.Button,{onClick:c,type:"link",icon:m.jsx(fe.DownOutlined,{}),children:"展开"}):m.jsx(x.Button,{onClick:i,type:"link",icon:m.jsx(fe.UpOutlined,{}),children:"折叠"})})}),ml={"group-wrapper":"_group-wrapper_g8zqi_1"},bl=({formProps:e})=>{const{renderActions:t}=e;return m.jsx("div",{className:ml["group-wrapper"],children:t==null?void 0:t()})},vl={"xph-form-action":"_xph-form-action_8ws73_1"},yl=(e,t)=>{console.log("render Form");const[r]=x.Form.useForm(),{formProps:n}=il(e),{formItems:o}=Za({formProps:n}),s=p.useRef(new Map),{collapsible:a,collapseNum:i,collapseRef:c,onClickCollapseToFalse:u,onClickCollapseToTrue:d}=al(n,s),{handleFormatRenderValues:h,handleFormatReturnValues:f}=ol(o,n,s),{setFieldsValue:v,getFieldsValue:g,resetFields:y,validator:w,scrollToField:j}=sl(r,h,f),P=()=>{const{layout:M,wrapperCol:W,labelCol:q,colon:X,disabled:C,labelWrap:I,labelAlign:T,scrollToFirstError:S,size:E}=n;return{layout:M,wrapperCol:W,labelCol:q,colon:X,disabled:C,labelWrap:I,labelAlign:T,scrollToFirstError:S,size:E}},D={setFieldsValue:v,getFieldsValue:g,resetFields:y,validator:w,scrollToField:j};return p.useImperativeHandle(t,()=>({...D})),p.useEffect(()=>(console.log("Form is mounted======================="),n.register&&n.register(D),()=>{console.log("Form is unmounted========================="),s.current.clear()}),[]),m.jsxs(x.Form,{form:r,...P(),children:[m.jsx(x.Row,{children:o.map((M,W)=>(s.current.has(M.name)||s.current.set(M.name,p.createRef()),m.jsx(pl,{ref:s.current.get(M.name),itemIndex:W,itemProps:M,formProps:n,methods:D,collapseRef:c},W)))}),m.jsxs("div",{className:vl["xph-form-action"],children:[m.jsx(bl,{formProps:n}),a?m.jsx(hl,{ref:c,collapsible:o.length>i,onClickExpand:u,onClickFold:d}):null]})]})},zt=p.forwardRef(yl),_l=p.memo(zt),wl=p.forwardRef((e,t)=>{const{renderActions:r,showSearch:n=!0,tableRef:o}=e,[s,a]=p.useState(!1),i=p.useRef(null),c=()=>{const{reloadData:f}=o.current;f()},u=()=>{const{resetData:f}=o.current;f()},d=p.useCallback(()=>m.jsxs("div",{style:{width:"100%",display:"flex"},children:[m.jsx("div",{style:{flex:1,width:0},children:r==null?void 0:r()}),n&&m.jsxs("div",{style:{display:"flex",gap:"8px"},children:[m.jsx(x.Button,{type:"primary",icon:m.jsx(fe.SearchOutlined,{}),onClick:c,children:"搜索"}),m.jsx(x.Button,{icon:m.jsx(fe.ReloadOutlined,{}),onClick:u,children:"重置"})]})]}),[n,r]),h=()=>{const{renderActions:f,...v}=e;return{...v,renderActions:d}};return p.useImperativeHandle(t,()=>({setFormLoading:a,...i.current})),m.jsx(x.Spin,{spinning:s,children:m.jsx(_l,{ref:i,...h()})})}),Cl=p.memo(zt),xl=(e,t)=>{const r=p.useRef(null),n=p.useRef(null),{formProps:o}=e,a=(()=>{const{formProps:d,...h}=e;return h})(),i=p.useRef(null),c=async()=>{const{onOk:d,renderFooter:h}=a;if(!h){const{ok:f,data:v}=i.current;if(f){n.current.validator().then(async g=>{r.current.setLoading(!0),await f({values:n.current.getFieldsValue()}).then(w=>w).finally(()=>{r.current.setLoading(!1)})!==!1&&(r.current.close(),i.current=null)});return}if(d){n.current.validator().then(async g=>{r.current.setLoading(!0),await d({values:g,data:v}).then(w=>(console.log(w),w)).finally(()=>{r.current.setLoading(!1)})!==!1&&(r.current.close(),i.current=null)});return}r.current.close(),i.current=null}},u=async()=>{const{onCancel:d,renderFooter:h}=a;if(!h){const{cancel:f,data:v}=i.current;if(f){if(await f({values:n.current.getFieldsValue(!0)})===!1)return;r.current.close(),i.current=null;return}if(d){if(await d({values:n.current.getFieldsValue(!0),data:v})===!1)return;r.current.close(),i.current=null;return}r.current.close(),i.current=null}};return p.useImperativeHandle(t,()=>({open:async d=>{if(r.current.getVisible())return;const{renderFooter:f}=a;return!f&&(i.current=d),r.current.open().then(()=>{n.current.setFieldsValue(d.data||{})})},close:(...d)=>r.current.close(...d),setLoading:(...d)=>r.current.setLoading(...d),getVisible:(...d)=>r.current.getVisible(...d),getFieldsValue:(...d)=>n.current.getFieldsValue(...d),setFieldsValue:(...d)=>n.current.setFieldsValue(...d),resetFields:(...d)=>n.current.resetFields(...d),validator:(...d)=>n.current.validator(...d),scrollToField:(...d)=>n.current.scrollToField(...d)})),m.jsx(Kr,{...a,ref:r,onOk:c,onCancel:u,children:m.jsx(Cl,{...o,ref:n})})},en=p.forwardRef(xl);function Tl({searchForm:e}){return{searchFormRef:p.useRef(null),searchFormProps:e}}function tn(e){return"cellFunc"in e}function rn(e){return"children"in e}const{useToken:Sl}=x.theme,Pl=(e,t,r)=>{const{curComponentProps:n,cellFuncProps:o}=t,{url:s,onClick:a}=n,{token:i}=Sl(),c={color:i.colorLink,cursor:"pointer"},u=()=>{if(r.mainClick&&r.mainClick(),a){a();return}if(s){window.open(s,"_blank");return}};return m.jsx(e,{...r,mainClick:u,mainStyle:Object.assign(c,(r==null?void 0:r.mainStyle)||{})})},El={"cellfunc-actions":"_cellfunc-actions_14drt_1"},Fl=(e,t,r)=>{const{curComponentProps:n,cellFuncProps:o}=t;return m.jsx("div",{className:El["cellfunc-actions"],children:m.jsx(it,{...n})})},{useToken:jl}=x.theme,Al={0:{color:"orange",backgroundColor:"unset",border:"1px solid orange"},1:{color:"purple",backgroundColor:"unset",border:"1px solid purple"},2:{color:"blue",backgroundColor:"unset",border:"1px solid blue"},3:{color:"green",backgroundColor:"unset",border:"1px solid green"},4:{color:"red",backgroundColor:"unset",border:"1px solid red"},5:{color:"pink",backgroundColor:"unset",border:"1px solid pink"},6:{color:"cyan",backgroundColor:"unset",border:"1px solid cyan"},7:{color:"magenta",backgroundColor:"unset",border:"1px solid magenta"},8:{color:"yellow",backgroundColor:"unset",border:"1px solid yellow"},9:{color:"teal",backgroundColor:"unset",border:"1px solid teal"},10:{color:"brown",backgroundColor:"unset",border:"1px solid brown"},11:{color:"gray",backgroundColor:"unset",border:"1px solid gray"},12:{color:"olive",backgroundColor:"unset",border:"1px solid olive"},13:{color:"navy",backgroundColor:"unset",border:"1px solid navy"},14:{color:"lime",backgroundColor:"unset",border:"1px solid lime"},15:{color:"maroon",backgroundColor:"unset",border:"1px solid maroon"}},Dl=(e,t,r)=>e.reduce((n,o,s)=>{var u;const a=`${String(t.dataIndex)}${o.value}`,i=(u=o.config)==null?void 0:u.color,c=i?r[i]??{color:i,backgroundColor:"unset",border:`1px solid ${i}`}:Al[s]||{};return n[a]={color:c.color,backgroundColor:c.backgroundColor,border:c.border},n},{}),Ol=(e,t,r)=>{const{curComponentProps:n,cellFuncProps:{renderPrams:{text:o,column:s}}}=t,{token:a}=jl(),{enums:i}=n,c={primary:{color:a.colorPrimary,backgroundColor:a.colorPrimaryBg,border:`1px solid ${a.colorPrimary}`},success:{color:a.colorSuccess,backgroundColor:a.colorSuccessBg,border:`1px solid ${a.colorSuccess}`},warning:{color:a.colorWarning,backgroundColor:a.colorWarningBg,border:`1px solid ${a.colorWarning}`},info:{color:a.colorInfo,backgroundColor:a.colorInfoBg,border:`1px solid ${a.colorInfo}`},error:{color:a.colorError,backgroundColor:a.colorErrorBg,border:`1px solid ${a.colorError}`}},d=Dl(i,s,c)[`${String(s.dataIndex)}${o}`]||{},h={padding:"0 8px",borderRadius:a.borderRadiusLG,fontSize:a.fontSizeSM,...d},f=()=>{var g;return(g=i.find(y=>y.value===o))==null?void 0:g.label};return m.jsx(e,{...r,mainHandleText:f,mainStyle:Object.assign((r==null?void 0:r.mainStyle)||{},h)})},{useToken:$l}=x.theme,nn={link:{Comp:Pl},actions:{Comp:Fl},tag:{Comp:Ol},copy:{Comp:(e,t,r)=>{const{curComponentProps:n,cellFuncProps:{renderPrams:o}}=t,{token:s}=$l(),{text:a,onClick:i,size:c="default"}=n,u={small:16,default:18,large:20},{copy:d}=Ul(),h=()=>{let f=o.text;if(a&&(Q(a)&&(f=a(o.record)),Mt(a)&&(f=a)),i)return i(o.record);d(f)&&x.message.success("复制成功")};return m.jsxs(m.Fragment,{children:[m.jsx("span",{onClick:h,children:m.jsx("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4503",width:u[c],height:u[c],style:{cursor:"pointer",verticalAlign:"text-top"},children:m.jsx("path",{d:"M682.666667 42.666667H85.333333v682.666666h85.333334V128h512V42.666667zM256 213.333333l4.522667 768H896V213.333333H256z m554.666667 682.666667H341.333333V298.666667h469.333334v597.333333z",fill:s.colorLink,"p-id":"4504"})})}),m.jsx(e,{...r})]})}}},Rl=(e,t)=>{var a,i;const{renderPrams:{text:r,column:n}}=e,o=(a=t==null?void 0:t.mainHandleText)==null?void 0:a.call(t),s=nt(n==null?void 0:n.ellipsis)?n==null?void 0:n.ellipsis:(i=n==null?void 0:n.ellipsis)==null?void 0:i.showTitle;return m.jsx("span",{onClick:t==null?void 0:t.mainClick,style:t==null?void 0:t.mainStyle,title:s?`${o??r}`:void 0,children:o??r})},Ml=e=>{const{setExtendTableCellComp:t}=sn();t(nn);const{dslConfig:r}=e;let n=Rl.bind(null,e),o=0;for(;o<r.length;){const s=o++,a=nn[r[s].component];a&&(n=a.Comp.bind(null,n,{curComponentProps:r[s].componentProps||{},cellFuncProps:e}))}return m.jsx(n,{})};function on(e){return e.map(t=>{let r={...t};if(tn(r)){const{cellFunc:n,...o}=r;r={...o,render:(...s)=>{const a=Q(n),[i,c,u]=s,d={text:i,record:c,index:u,column:JSON.parse(JSON.stringify(o))},h=a?n(d):n;return m.jsx(Ml,{dslConfig:h,renderPrams:d})}}}return rn(r)&&r.children&&Array.isArray(r.children)&&(r.children=on(r.children)),r})}function kl(e){const{columns:t}=e.table;return{columns:on(t)}}const Il=e=>{const{extendTableProps:t}=sn();return{tableProps:{...ce(ce({table:{columns:[],fullHeight:!1,autoRequest:!0,pagination:{pageSize:20,total:0,showTotal:o=>`共:${o} 条`,current:1,pageSizeOptions:[10,20,50,100],showSizeChanger:!0,showQuickJumper:!0},requestFields:{pageSize:"pageSize",current:"current"},responseFields:{current:"current",list:"data",total:"total"}},crudFormDialog:void 0,searchForm:void 0},t),e)}}};function zl(e){const{pagination:t,autoPagination:r}=e.table,[n,o]=p.useState(t),s=p.useRef(t),a=p.useMemo(()=>n&&(r===!0||r===void 0)||!1,[n]);return{pagination:{model:n,update:c=>{if(!s.current)return;const u={...s.current,...c};o(u),s.current=u},show:a},lastPaginationState:s}}function Ll(e,t){const{api:r,formatDataSource:n,autoPagination:o,onChange:s,requestFields:a,responseFields:i}=e.table,c=e.onPaginationChange,{pagination:u,lastPaginationState:d}=zl(e),[h,f]=p.useState({loading:!1,dataSource:[],selection:[],backupsDataSource:[]}),v=p.useRef({loading:!1,dataSource:[],selection:[],backupsDataSource:[]}),g={model:h,update:T=>{const S={...v.current,...T};f(S),v.current=S,t.current&&t.current.setFormLoading(S.loading)}},y={validator:async()=>({}),resetFields:async()=>{}},w=async()=>{p.useEffect(()=>{const{autoRequest:T}=e.table,{validator:S}=t.current||y;T&&S().then(E=>{M({searchFormParams:E})})},[])},j=async({searchFormParams:T,paginationParams:S})=>{const E={...T,[`${a.current}`]:d.current.current,[`${a.pageSize}`]:d.current.pageSize,...S?{[`${a.current}`]:S.current,[`${a.pageSize}`]:S.pageSize}:{}};return r(E).then(O=>{const{current:R,list:$,total:G}=bt(i,O);g.update({dataSource:n?n($):$}),u.update({total:G,current:R,pageSize:E[`${a.pageSize}`]})}).finally(()=>{g.update({loading:!1})})},P=async({searchFormParams:T,paginationParams:S})=>{const E={...T};return r(E).then(O=>{const{list:R}=bt(i,O),$=n?n(R):R;g.update({selection:[],dataSource:$}),u.update({current:1,total:R.length})}).finally(()=>{g.update({loading:!1})})},D=async({searchFormParams:T,paginationParams:S})=>{var O;const E={...T};if(S){const{current:R,pageSize:$}=S;u.update({current:R,pageSize:$});const G=(R-1)*$,ee=G+$,se=(O=v.current.backupsDataSource)==null?void 0:O.slice(G,ee);return g.update({loading:!1,selection:[],dataSource:se})}else return r(E).then(R=>{let $=n?n(R):R;const G=[...$],ee=0,se=ee+d.current.pageSize;$=$.slice(ee,se),g.update({selection:[],dataSource:$,backupsDataSource:G}),u.update({current:1,total:R.length})}).finally(()=>{g.update({loading:!1})})},M=async({searchFormParams:T,paginationParams:S})=>{if(g.update({loading:!0,selection:[]}),r)switch(!!d.current){case!0:return o===!0?D({searchFormParams:T,paginationParams:S}):o===!1?P({searchFormParams:T,paginationParams:S}):j({searchFormParams:T,paginationParams:S});case!1:return P({searchFormParams:T,paginationParams:S})}return g.update({loading:!1})};return{table:g,pagination:u,firstGetTableData:w,onPaginationChange:(T,S)=>{const{validator:E}=t.current||y;E().then(O=>{M({searchFormParams:O,paginationParams:{current:T,pageSize:S}})}),c&&c(T,S)},onAllChange:async(...T)=>{const[S,E,O,R]=T,$=[];for(let G=0;G<$.length&&!$[G]();G++);s&&s(E,O,R)},resetData:async()=>{const{resetFields:T,validator:S}=t.current||y;return T().then(async()=>{const E=await S();return M({searchFormParams:E})})},resetAllData:async()=>{const{resetFields:T,validator:S}=t.current||y;return T().then(async()=>{const E={};if(d.current){const{pageSize:O}=d.current;o===void 0&&(E.paginationParams={current:1,pageSize:O})}return E.searchFormParams=await S(),M(E)})},reloadData:async()=>{const{validator:T}=t.current||y;return T().then(S=>M({searchFormParams:S}))}}}const Nl=(e,t)=>{const{onRowSelectionChange:r}=e,{rowSelection:n}=e.table,o=()=>{if(Mt(n))return{type:n,onChange:(s,a,i)=>{t.update({selection:a}),r&&r(s,a)}};if(ie(n)){const{onChange:s}=n;return{...n,onChange:(a,i,c)=>{t.update({selection:i}),s&&s(a,i,c),r&&r(a,i)}}}return n};return{rowSelection:o(),getNewRowSelection:o}};function Wl(e,t){const{scroll:r,virtual:n}=e.table,o=p.useRef(null),[s,a]=p.useState(0),[i,c]=p.useState(0),u=()=>{o.current&&(console.log("触发了table的handleResize"),a(o.current.offsetWidth),c(o.current.offsetHeight))};p.useEffect(()=>{const h=new ResizeObserver(u);return o.current&&h.observe(o.current),()=>{h&&o.current&&h.unobserve(o.current)}},[]);const d=p.useMemo(()=>t?n?{x:s,y:i-70,...r}:{y:i-70,...r}:{...r},[i]);return{divRef:o,scroll:d}}function Hl(e,t){const{toolbar:r}=e.table;return{getTopToolbarBindProps:()=>{if(Q(r)){const o=r({loading:t.model.loading,selection:t.model.selection});return{...o,disabled:t.model.loading||o.disabled}}return{...r,disabled:t.model.loading||(r==null?void 0:r.disabled)}}}}const sn=()=>{const{extendProps:e,extendComp:t}=je(),r=n=>{const o=t==null?void 0:t.tableCellFunc;o&&Object.keys(o).forEach(s=>{const a=o[s];n[s]={Comp:a}})};return{extendTableProps:e==null?void 0:e.table,setExtendTableCellComp:r}},Bl=({crudFormDialog:e})=>({crudFormDialogRef:p.useRef(null),crudFormProps:e});function Vl(e,{target:t=document.body}={}){const r=document.createElement("textarea"),n=document.activeElement;r.value=e,r.setAttribute("readonly",""),r.style.contain="strict",r.style.position="absolute",r.style.left="-9999px",r.style.fontSize="12pt";const o=document.getSelection();let s;o&&o.rangeCount>0&&(s=o.getRangeAt(0)),t.append(r),r.select(),r.selectionStart=0,r.selectionEnd=e.length;let a=!1;try{a=document.execCommand("copy")}catch(i){throw new Error(i)}return r.remove(),s&&o&&(o.removeAllRanges(),o.addRange(s)),n&&n.focus(),a}function Ul(){function e(t){try{return Vl(t)}catch{return!1}}return{copy:e}}const ut={"main-container":"_main-container_1yx5k_1",container__toolbar:"_container__toolbar_1yx5k_13",container__table:"_container__table_1yx5k_27",container__pagination:"_container__pagination_1yx5k_35"},Yl=p.forwardRef(({tableProps:e,searchFormRef:t,fullHeight:r},n)=>{const{columns:o}=kl(e),s=p.useRef(null),{table:a,pagination:i,firstGetTableData:c,onPaginationChange:u,onAllChange:d,resetData:h,resetAllData:f,reloadData:v}=Ll(e,t),{rowSelection:g}=Nl(e,a),{divRef:y,scroll:w}=Wl(e,r),{getTopToolbarBindProps:j}=Hl(e,a),P=()=>{const{autoRequest:D,api:M,formatDataSource:W,autoPagination:q,columns:X,scroll:C,pagination:I,rowSelection:T,onChange:S,...E}=e.table;return E};return c(),p.useImperativeHandle(n,()=>({resetData:h,resetAllData:f,reloadData:v,...s.current})),console.log("render Table"),m.jsxs("div",{className:r?ut["main-container"]:void 0,children:[m.jsx("div",{className:ut.container__toolbar,children:m.jsx(it,{...j()})}),m.jsx("div",{ref:y,className:r?ut.container__table:void 0,children:m.jsx(x.Table,{ref:s,...P(),loading:a.model.loading,columns:o,dataSource:a.model.dataSource,pagination:!1,rowSelection:g,scroll:w,onChange:d})}),i.show?m.jsx("div",{className:ut.container__pagination,children:m.jsx(x.Pagination,{disabled:a.model.loading,...i.model,onChange:u})}):null]})}),an={"xph-table-full-wrapper":"_xph-table-full-wrapper_mdv0g_1","full-wrapper__table":"_full-wrapper__table_mdv0g_13"},ql=(e,t)=>{const{tableProps:r}=Il(e),n=p.useRef(null),{searchFormRef:o,searchFormProps:s}=Tl(r),{crudFormDialogRef:a,crudFormProps:i}=Bl(r);let{fullHeight:c}=r.table;const{virtual:u}=r.table;return u&&(c=!0),p.useImperativeHandle(t,()=>({...n.current,...a.current})),m.jsxs("div",{className:c?an["xph-table-full-wrapper"]:void 0,children:[s?m.jsx("div",{children:m.jsx(wl,{ref:o,tableRef:n,...s})}):null,m.jsx("div",{className:c?an["full-wrapper__table"]:void 0,children:m.jsx(Yl,{ref:n,searchFormRef:o,fullHeight:c,tableProps:r})}),i?m.jsx(en,{ref:a,...i}):null]})},Gl=p.forwardRef(ql);A.XphActions=it,A.XphAuth=Na,A.XphCrudFormDialog=en,A.XphDialog=Kr,A.XphExtendCompPropsProvider=da,A.XphForm=zt,A.XphPortal=Jr,A.XphTable=Gl,A.buildUUID=mt,A.getValueByPath=Xt,A.getValuesByPathObj=bt,A.isChildrenColumnProps=rn,A.isComponentActionItemProps=kt,A.isComponentColumnProps=tn,A.isComponentFormItemProps=at,A.isRenderActionItemProps=Hr,A.isRenderFormItemProps=lt,A.useAsyncState=Ur,A.useXphExtendCompProps=je,A.useXphForm=el,Object.defineProperty(A,Symbol.toStringTag,{value:"Module"})});
@@ -15,41 +15,42 @@ export interface IBaseActionProps {
15
15
  */
16
16
  auth?: string | Array<string>;
17
17
  }
18
+ export interface IButtonProps extends ButtonProps {
19
+ }
20
+ export interface IDropDownItemProps {
21
+ /**
22
+ * 唯一标识
23
+ */
24
+ key: string;
25
+ /**
26
+ * 显示文本
27
+ */
28
+ label: string;
29
+ /**
30
+ * 是否禁用,注意:父级如果disabled为true,子级无法展开(所以相当于是变向的父级禁用,子级也禁用了)
31
+ */
32
+ disabled?: boolean;
33
+ /**
34
+ * 图标
35
+ */
36
+ icon?: React.ReactNode;
37
+ /**
38
+ * 是否显示
39
+ */
40
+ ifShow?: boolean | (() => any);
41
+ /**
42
+ * 权限标识
43
+ */
44
+ auth?: string | Array<string>;
45
+ }
46
+ export interface IDropdownProps extends Omit<ButtonProps, "onClick"> {
47
+ dropDownItems: IDropDownItemProps[];
48
+ onClick?: MenuProps["onClick"];
49
+ }
18
50
  export type TComponentType<T extends TXphExtendComponentPropsMap = {}> = {
19
51
  Button: IButtonProps;
20
52
  Dropdown: IDropdownProps;
21
53
  } & T;
22
- interface IButtonProps extends ButtonProps {
23
- }
24
- interface IDropdownProps extends Omit<ButtonProps, "onClick"> {
25
- dropDownItems: {
26
- /**
27
- * 唯一标识
28
- */
29
- key: string;
30
- /**
31
- * 显示文本
32
- */
33
- label: string;
34
- /**
35
- * 是否禁用,注意:父级如果disabled为true,子级无法展开(所以相当于是变向的父级禁用,子级也禁用了)
36
- */
37
- disabled?: boolean;
38
- /**
39
- * 图标
40
- */
41
- icon?: React.ReactNode;
42
- /**
43
- * 是否显示
44
- */
45
- ifShow?: boolean | (() => any);
46
- /**
47
- * 权限标识
48
- */
49
- auth?: string | Array<string>;
50
- }[];
51
- onClick?: MenuProps["onClick"];
52
- }
53
54
  /**
54
55
  * @description 组件类型action
55
56
  */
@@ -8,7 +8,10 @@ export interface IApiAutoCompleteProps extends AutoCompleteProps {
8
8
  params?: any;
9
9
  /** 是否立即触发(默认立即触发,否者展开选项时触发) */
10
10
  immediate?: boolean;
11
- /** 是否启用了Form.useWatch监听('true' | 'false') */
11
+ /**
12
+ * @ignore
13
+ * 是否启用了Form.useWatch监听('true' \| 'false')
14
+ */
12
15
  isusewatch?: string;
13
16
  }
14
17
  declare const ApiAutoComplete: React.FC<IApiAutoCompleteProps>;
@@ -8,7 +8,10 @@ export interface IApiSelectProps extends SelectProps {
8
8
  params?: any;
9
9
  /** 是否立即触发(默认立即触发,否者展开选项时触发) */
10
10
  immediate?: boolean;
11
- /** 是否启用了Form.useWatch监听('true' | 'false') */
11
+ /**
12
+ * @ignore
13
+ * 是否启用了Form.useWatch监听('true' \| 'false')
14
+ */
12
15
  isusewatch?: string;
13
16
  }
14
17
  declare const ApiSelect: React.FC<IApiSelectProps>;
@@ -6,7 +6,10 @@ export interface IApiTransferProps extends TransferProps {
6
6
  api?: (...args: any[]) => Promise<any>;
7
7
  /** 扩展api的参数 */
8
8
  params?: any;
9
- /** 是否启用了Form.useWatch监听('true' | 'false') */
9
+ /**
10
+ * @ignore
11
+ * 是否启用了Form.useWatch监听('true' \| 'false')
12
+ */
10
13
  isusewatch?: string;
11
14
  }
12
15
  declare const ApiTransfer: React.FC<IApiTransferProps>;
@@ -8,7 +8,10 @@ export interface IApiTreeSelectProps extends TreeSelectProps {
8
8
  params?: any;
9
9
  /** 是否立即触发(默认立即触发,否者展开选项时触发) */
10
10
  immediate?: boolean;
11
- /** 是否启用了Form.useWatch监听('true' | 'false') */
11
+ /**
12
+ * @ignore
13
+ * 是否启用了Form.useWatch监听('true' \| 'false')
14
+ */
12
15
  isusewatch?: string;
13
16
  }
14
17
  declare const ApiTreeSelect: React.FC<IApiTreeSelectProps>;
@@ -34,3 +34,5 @@ export type TComponentPropsMap<T extends TXphExtendComponentPropsMap = {}> = {
34
34
  ApiAutoComplete: IApiAutoCompleteProps;
35
35
  AutoUpload: IAutoUploadProps;
36
36
  } & T;
37
+ export type { SelectProps, InputProps, InputNumberProps, TreeSelectProps, TransferProps, SwitchProps, ButtonProps, RadioProps, CheckboxProps, CascaderProps, TimePickerProps, DatePickerProps, AutoCompleteProps, UploadProps, } from 'antd';
38
+ export type { IApiSelectProps, IApiTreeSelectProps, IApiTransferProps, IApiAutoCompleteProps, IAutoUploadProps, };