filesbox/web/dist/42489.e0d1a508.async.js

2 lines
12 KiB
JavaScript
Raw Permalink Normal View History

2024-07-26 06:10:54 +00:00
(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[42489],{42489:function(de,Mr,e){"use strict";e.d(Mr,{I:function(){return ue}});var ve=e(20228),Br=e(11382),tr=e(28481),Pr=e(96156),n=e(28991),X=e(55507),fr=e(92137),me=e(84305),Rr=e(39559),ce=e(9715),dr=e(55843),Cr=e(81253),I=e(85893),Ar=e(78775),a=e(67294),Dr=e(29405),vr=0;function Kr(r){var t=(0,a.useState)(function(){return r.proFieldKey?r.proFieldKey.toString():(vr+=1,vr.toString())}),h=(0,tr.Z)(t,1),u=h[0],$=(0,a.useRef)(u),P=function(){var m=(0,fr.Z)((0,X.Z)().mark(function B(){var o,F;return(0,X.Z)().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,(o=r.request)===null||o===void 0?void 0:o.call(r,r.params,r);case 2:return F=l.sent,l.abrupt("return",F);case 4:case"end":return l.stop()}},B)}));return function(){return m.apply(this,arguments)}}();(0,a.useEffect)(function(){return function(){vr+=1}},[]);var S=(0,Dr.ZP)([$.current,r.params],P,{revalidateOnFocus:!1,shouldRetryOnError:!1,revalidateOnReconnect:!1}),v=S.data,s=S.error;return[v||s]}var Or=Kr,Nr=e(85061),J=e(90484),br=e(88306),Y=e(8880),Tr=e(74763),zr=e(92210);function Lr(r){return(0,J.Z)(r)!=="object"?!1:r===null?!0:!(a.isValidElement(r)||r.constructor===RegExp||r instanceof Map||r instanceof Set||r instanceof HTMLElement||r instanceof Blob||r instanceof File||Array.isArray(r))}var Hr=function(t,h){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,$=Object.keys(h).reduce(function(v,s){var m=h[s];return(0,Tr.Z)(m)||(v[s]=m),v},{});if(Object.keys($).length<1||typeof window=="undefined"||(0,J.Z)(t)!=="object"||(0,Tr.Z)(t)||t instanceof Blob)return t;var P=Array.isArray(t)?[]:{},S=function v(s,m){var B=Array.isArray(s),o=B?[]:{};return s==null||s===void 0?o:(Object.keys(s).forEach(function(F){var x=m?[m,F].flat(1):[F].flat(1),l=s[F],R=(0,br.Z)($,x),D=function i(g){return Array.isArray(g)&&g.forEach(function(Z,C){!Z||(typeof Z=="function"&&(l[C]=Z(l,F,s)),(0,J.Z)(Z)==="object"&&!Array.isArray(Z)&&Object.keys(Z).forEach(function(p){if(typeof Z[p]=="function"){var w=Z[p](s[F][C][p],F,s);l[C][p]=(0,J.Z)(w)==="object"?w[p]:w}}),(0,J.Z)(Z)==="object"&&Array.isArray(Z)&&i(Z))}),F},E=function(){var g=typeof R=="function"?R==null?void 0:R(l,F,s):D(R);if(Array.isArray(g)){o=(0,Y.Z)(o,g,l);return}(0,J.Z)(g)==="object"&&!Array.isArray(P)?P=(0,n.Z)((0,n.Z)({},P),g):(0,J.Z)(g)==="object"&&Array.isArray(P)?o=(0,n.Z)((0,n.Z)({},o),g):g&&(o=(0,Y.Z)(o,[g],l))};if(R&&typeof R=="function"&&E(),typeof window!="undefined"){if(Lr(l)){var U=v(l,x);if(Object.keys(U).length<1)return;o=(0,Y.Z)(o,[F],U);return}E()}}),u?o:s)};return P=Array.isArray(t)&&Array.isArray(P)?(0,Nr.Z)(S(t)):(0,zr.T)({},S(t),P),P},Wr=Hr,Gr=e(22270),Ir=e(48171),Jr=e(26369),Yr=e(60249),Qr=e(41036),Xr=e(56725),wr=e(75661),kr=e(23312),qr=e(45095),mr=e(97435),Vr=e(80334),ye=e(49111),_r=e(19650),ge=e(57663),jr=e(71577),re=function(t){var h=(0,Ar.YB)(),u=dr.Z.useFormInstance();if(t.render===!1)return null;var $=t.onSubmit,P=t.render,S=t.onReset,v=t.searchConfig,s=v===void 0?{}:v,m=t.submitButtonProps,B=t.resetButtonProps,o=B===void 0?{}:B,F=function(){u.submit(),$==null||$()},x=function(){u.resetFields(),S==null||S()},l=s.submitText,R=l===void 0?h.getMessage("tableForm.submit","\u63D0\u4EA4"):l,D=s.resetText,E=D===void 0?h.getMessage("tableForm.reset","\u91CD\u7F6E"):D,U=[];o!==!1&&U.push((0,a.createElement)(jr.Z,(0,n.Z)((0,n.Z)({},(0,mr.Z)(o,["preventDefault"])),{},{key:"rest",onClick:function(Z){var C;(o==null?void 0:o.preventDefault)||x(),o==null||(C=o.onClick)===null||C===void 0||C.call(o,Z)}}),E)),m!==!1&&U.push((0,a.createElement)(jr.Z,(0,n.Z)((0,n.Z)({type:"primary"},(0,mr.Z)(m||{},["preventDefault"])),{},{key:"submit",onClick:function(Z){var C;(m==null?void 0:m.preventDefault)||F(),m==null||(C=m.onClick)===null||C===void 0||C.call(m,Z)}}),R));var i=P?P((0,n.Z)((0,n.Z)({},t),{},{form:u,submit:F,reset:x}),U):U;return i?Array.isArray(i)?(i==null?void 0:i.length)<1?null:(i==null?void 0:i.length)===1?i[0]:(0,I.jsx)(_r.Z,{wrap:!0,children:i}):i:null},ee=re,te=e(66758),Sr=e(2514),ne=e(9105),ae=["children","con