filesbox/web/dist/31749.f0bc0abe.async.js
2024-07-26 14:10:54 +08:00

2 lines
16 KiB
JavaScript

(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[31749],{58491:function(Pe,fe,l){"use strict";l.d(fe,{Z:function(){return be}});var O=l(28991),d=l(67294),Q={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},F=Q,Ie=l(27029),de=function(xe,r){return d.createElement(Ie.Z,(0,O.Z)((0,O.Z)({},xe),{},{ref:r,icon:F}))};de.displayName="UpOutlined";var be=d.forwardRef(de)},54638:function(){},85986:function(Pe,fe,l){"use strict";l.d(fe,{Z:function(){return gt}});var O=l(22122),d=l(96156),Q=l(90484),F=l(28481),Ie=l(57254),de=l(58491),be=l(94184),T=l.n(be),xe=l(81253),r=l(67294),ve=l(15105),De=l(8410),Je=l(42550),Ae=l(6610),Fe=l(5991);function Ce(){return typeof BigInt=="function"}function z(e){var n=e.trim(),t=n.startsWith("-");t&&(n=n.slice(1)),n=n.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),n.startsWith(".")&&(n="0".concat(n));var a=n||"0",i=a.split("."),f=i[0]||"0",S=i[1]||"0";f==="0"&&S==="0"&&(t=!1);var m=t?"-":"";return{negative:t,negativeStr:m,trimStr:a,integerStr:f,decimalStr:S,fullStr:"".concat(m).concat(a)}}function Ze(e){var n=String(e);return!Number.isNaN(Number(n))&&n.includes("e")}function te(e){var n=String(e);if(Ze(e)){var t=Number(n.slice(n.indexOf("e-")+2)),a=n.match(/\.(\d+)/);return(a==null?void 0:a[1])&&(t+=a[1].length),t}return n.includes(".")&&Re(n)?n.length-n.indexOf(".")-1:0}function me(e){var n=String(e);if(Ze(e)){if(e>Number.MAX_SAFE_INTEGER)return String(Ce()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(Ce()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);n=e.toFixed(te(n))}return z(n).fullStr}function Re(e){return typeof e=="number"?!Number.isNaN(e):e?/^\s*-?\d+(\.\d+)?\s*$/.test(e)||/^\s*-?\d+\.\s*$/.test(e)||/^\s*-?\.\d+\s*$/.test(e):!1}function Te(e){var n=typeof e=="number"?me(e):z(e).fullStr,t=n.includes(".");return t?z(n.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}var qe=function(){function e(n){if((0,Ae.Z)(this,e),this.origin="",this.number=void 0,this.empty=void 0,!n&&n!==0||!String(n).trim()){this.empty=!0;return}this.origin=String(n),this.number=Number(n)}return(0,Fe.Z)(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var a=Number(t);if(Number.isNaN(a))return this;var i=this.number+a;if(i>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(i<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var f=Math.max(te(this.number),te(a));return new e(i.toFixed(f))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(t){return this.toNumber()===(t==null?void 0:t.toNumber())}},{key:"lessEquals",value:function(t){return this.add(t.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return t?this.isInvalidate()?"":me(this.number):this.origin}}]),e}(),_e=function(){function e(n){if((0,Ae.Z)(this,e),this.origin="",this.negative=void 0,this.integer=void 0,this.decimal=void 0,this.decimalLen=void 0,this.empty=void 0,this.nan=void 0,!n&&n!==0||!String(n).trim()){this.empty=!0;return}if(this.origin=String(n),n==="-"){this.nan=!0;return}var t=n;if(Ze(t)&&(t=Number(t)),t=typeof t=="string"?t:me(t),Re(t)){var a=z(t);this.negative=a.negative;var i=a.trimStr.split(".");this.integer=BigInt(i[0]);var f=i[1]||"0";this.decimal=BigInt(f),this.decimalLen=f.length}else this.nan=!0}return(0,Fe.Z)(e,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(t){var a="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(t,"0"));return BigInt(a)}},{key:"negate",value:function(){var t=new e(this.toString());return t.negative=!t.negative,t}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var a=new e(t);if(a.isInvalidate())return this;var i=Math.max(this.getDecimalStr().length,a.getDecimalStr().length),f=this.alignDecimal(i),S=a.alignDecimal(i),m=(f+S).toString(),N=z(m),E=N.negativeStr,g=N.trimStr,h="".concat(E).concat(g.padStart(i+1,"0"));return new e("".concat(h.slice(0,-i),".").concat(h.slice(-i)))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(t){return this.toString()===(t==null?void 0:t.toString())}},{key:"lessEquals",value:function(t){return this.add(t.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return t?this.isInvalidate()?"":z("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}();function C(e){return Ce()?new _e(e):new qe(e)}function ge(e,n,t){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var i=z(e),f=i.negativeStr,S=i.integerStr,m=i.decimalStr,N="".concat(n).concat(m),E="".concat(f).concat(S);if(t>=0){var g=Number(m[t]);if(g>=5&&!a){var h=C(e).add("".concat(f,"0.").concat("0".repeat(t)).concat(10-g));return ge(h.toString(),n,t,a)}return t===0?E:"".concat(E).concat(n).concat(m.padEnd(t,"0").slice(0,t))}return N===".0"?E:"".concat(E).concat(N)}var et=l(31131),tt=200,nt=600;function rt(e){var n=e.prefixCls,t=e.upNode,a=e.downNode,i=e.upDisabled,f=e.downDisabled,S=e.onStep,m=r.useRef(),N=r.useRef();N.current=S;var E=function(x,U){x.preventDefault(),N.current(U);function B(){N.current(U),m.current=setTimeout(B,tt)}m.current=setTimeout(B,nt)},g=function(){clearTimeout(m.current)};if(r.useEffect(function(){return g},[]),(0,et.Z)())return null;var h="".concat(n,"-handler"),y=T()(h,"".concat(h,"-up"),(0,d.Z)({},"".concat(h,"-up-disabled"),i)),V=T()(h,"".concat(h,"-down"),(0,d.Z)({},"".concat(h,"-down-disabled"),f)),Z={unselectable:"on",role:"button",onMouseUp:g,onMouseLeave:g};return r.createElement("div",{className:"".concat(h,"-wrap")},r.createElement("span",(0,O.Z)({},Z,{onMouseDown:function(x){E(x,!0)},"aria-label":"Increase Value","aria-disabled":i,className:y}),t||r.createElement("span",{unselectable:"on",className:"".concat(n,"-handler-up-inner")})),r.createElement("span",(0,O.Z)({},Z,{onMouseDown:function(x){E(x,!1)},"aria-label":"Decrease Value","aria-disabled":f,className:V}),a||r.createElement("span",{unselectable:"on",className:"".concat(n,"-handler-down-inner")})))}var at=l(80334);function it(e,n){var t=(0,r.useRef)(null);function a(){try{var f=e.selectionStart,S=e.selectionEnd,m=e.value,N=m.substring(0,f),E=m.substring(S);t.current={start:f,end:S,value:m,beforeTxt:N,afterTxt:E}}catch(g){}}function i(){if(e&&t.current&&n)try{var f=e.value,S=t.current,m=S.beforeTxt,N=S.afterTxt,E=S.start,g=f.length;if(f.endsWith(N))g=f.length-t.current.afterTxt.length;else if(f.startsWith(m))g=m.length;else{var h=m[E-1],y=f.indexOf(h,E-1);y!==-1&&(g=y+1)}e.setSelectionRange(g,g)}catch(V){(0,at.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(V.message))}}return[a,i]}var $e=l(75164),ut=function(){var e=(0,r.useRef)(0),n=function(){$e.Z.cancel(e.current)};return(0,r.useEffect)(function(){return n},[]),function(t){n(),e.current=(0,$e.Z)(function(){t()})}},ot=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],ke=function(n,t){return n||t.isEmpty()?t.toString():t.toNumber()},Le=function(n){var t=C(n);return t.isInvalidate()?null:t},Ke=r.forwardRef(function(e,n){var t,a=e.prefixCls,i=a===void 0?"rc-input-number":a,f=e.className,S=e.style,m=e.min,N=e.max,E=e.step,g=E===void 0?1:E,h=e.defaultValue,y=e.value,V=e.disabled,Z=e.readOnly,H=e.upHandler,x=e.downHandler,U=e.keyboard,B=e.controls,Se=B===void 0?!0:B,ne=e.stringMode,W=e.parser,G=e.formatter,I=e.precision,$=e.decimalSeparator,s=e.onChange,Y=e.onInput,re=e.onPressEnter,ae=e.onStep,ie=(0,xe.Z)(e,ot),J="".concat(i,"-input"),q=r.useRef(null),_=r.useState(!1),j=(0,F.Z)(_,2),he=j[0],Ne=j[1],R=r.useRef(!1),P=r.useRef(!1),k=r.useRef(!1),Oe=r.useState(function(){return C(y!=null?y:h)}),ue=(0,F.Z)(Oe,2),p=ue[0],L=ue[1];function D(o){y===void 0&&L(o)}var oe=r.useCallback(function(o,u){if(!u)return I>=0?I:Math.max(te(o),te(g))},[I,g]),A=r.useCallback(function(o){var u=String(o);if(W)return W(u);var v=u;return $&&(v=v.replace($,".")),v.replace(/[^\w.-]+/g,"")},[W,$]),ee=r.useRef(""),le=r.useCallback(function(o,u){if(G)return G(o,{userTyping:u,input:String(ee.current)});var v=typeof o=="number"?me(o):o;if(!u){var c=oe(v,u);if(Re(v)&&($||c>=0)){var M=$||".";v=ge(v,M,c)}}return v},[G,oe,$]),Ee=r.useState(function(){var o=h!=null?h:y;return p.isInvalidate()&&["string","number"].includes((0,Q.Z)(o))?Number.isNaN(o)?"":o:le(p.toString(),!1)}),se=(0,F.Z)(Ee,2),X=se[0],ye=se[1];ee.current=X;function K(o,u){ye(le(o.isInvalidate()?o.toString(!1):o.toString(!u),u))}var w=r.useMemo(function(){return Le(N)},[N,I]),b=r.useMemo(function(){return Le(m)},[m,I]),He=r.useMemo(function(){return!w||!p||p.isInvalidate()?!1:w.lessEquals(p)},[w,p]),We=r.useMemo(function(){return!b||!p||p.isInvalidate()?!1:p.lessEquals(b)},[b,p]),pt=it(q.current,he),Ge=(0,F.Z)(pt,2),St=Ge[0],ht=Ge[1],je=function(u){return w&&!u.lessEquals(w)?w:b&&!b.lessEquals(u)?b:null},Ve=function(u){return!je(u)},Ue=function(u,v){var c=u,M=Ve(c)||c.isEmpty();if(!c.isEmpty()&&!v&&(c=je(c)||c,M=!0),!Z&&!V&&M){var ce=c.toString(),Be=oe(ce,v);return Be>=0&&(c=C(ge(ce,".",Be)),Ve(c)||(c=C(ge(ce,".",Be,!0)))),c.equals(p)||(D(c),s==null||s(c.isEmpty()?null:ke(ne,c)),y===void 0&&K(c,v)),c}return p},Nt=ut(),Xe=function o(u){if(St(),ye(u),!P.current){var v=A(u),c=C(v);c.isNaN()||Ue(c,!0)}Y==null||Y(u),Nt(function(){var M=u;W||(M=u.replace(/。/g,".")),M!==u&&o(M)})},Et=function(){P.current=!0},yt=function(){P.current=!1,Xe(q.current.value)},It=function(u){Xe(u.target.value)},Qe=function(u){var v;if(!(u&&He||!u&&We)){R.current=!1;var c=C(k.current?Te(g):g);u||(c=c.negate());var M=(p||C(0)).add(c.toString()),ce=Ue(M,!1);ae==null||ae(ke(ne,ce),{offset:k.current?Te(g):g,type:u?"up":"down"}),(v=q.current)===null||v===void 0||v.focus()}},Ye=function(u){var v=C(A(X)),c=v;v.isNaN()?c=p:c=Ue(v,u),y!==void 0?K(p,!1):c.isNaN()||K(c,!1)},bt=function(){R.current=!0},xt=function(u){var v=u.which,c=u.shiftKey;R.current=!0,c?k.current=!0:k.current=!1,v===ve.Z.ENTER&&(P.current||(R.current=!1),Ye(!1),re==null||re(u)),U!==!1&&!P.current&&[ve.Z.UP,ve.Z.DOWN].includes(v)&&(Qe(ve.Z.UP===v),u.preventDefault())},Dt=function(){R.current=!1,k.current=!1},Ct=function(){Ye(!1),Ne(!1),R.current=!1};return(0,De.o)(function(){p.isInvalidate()||K(p,!1)},[I]),(0,De.o)(function(){var o=C(y);L(o);var u=C(A(X));(!o.equals(u)||!R.current||G)&&K(o,R.current)},[y]),(0,De.o)(function(){G&&ht()},[X]),r.createElement("div",{className:T()(i,f,(t={},(0,d.Z)(t,"".concat(i,"-focused"),he),(0,d.Z)(t,"".concat(i,"-disabled"),V),(0,d.Z)(t,"".concat(i,"-readonly"),Z),(0,d.Z)(t,"".concat(i,"-not-a-number"),p.isNaN()),(0,d.Z)(t,"".concat(i,"-out-of-range"),!p.isInvalidate()&&!Ve(p)),t)),style:S,onFocus:function(){Ne(!0)},onBlur:Ct,onKeyDown:xt,onKeyUp:Dt,onCompositionStart:Et,onCompositionEnd:yt,onBeforeInput:bt},Se&&r.createElement(rt,{prefixCls:i,upNode:H,downNode:x,upDisabled:He,downDisabled:We,onStep:Qe}),r.createElement("div",{className:"".concat(J,"-wrap")},r.createElement("input",(0,O.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":m,"aria-valuemax":N,"aria-valuenow":p.isInvalidate()?null:p.toString(),step:g},ie,{ref:(0,Je.sQ)(q,n),className:J,value:X,onChange:It,disabled:V,readOnly:Z}))))});Ke.displayName="InputNumber";var lt=Ke,st=lt,ct=l(53124),ft=l(98866),dt=l(97647),we=l(65223),Me=l(4173),ze=l(96159),pe=l(9708),vt=function(e,n){var t={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&n.indexOf(a)<0&&(t[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,a=Object.getOwnPropertySymbols(e);i<a.length;i++)n.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(t[a[i]]=e[a[i]]);return t},mt=r.forwardRef(function(e,n){var t,a=r.useContext(ct.E_),i=a.getPrefixCls,f=a.direction,S=r.useContext(dt.Z),m=r.useState(!1),N=(0,F.Z)(m,2),E=N[0],g=N[1],h=r.useRef(null);r.useImperativeHandle(n,function(){return h.current});var y=e.className,V=e.size,Z=e.disabled,H=e.prefixCls,x=e.addonBefore,U=e.addonAfter,B=e.prefix,Se=e.bordered,ne=Se===void 0?!0:Se,W=e.readOnly,G=e.status,I=e.controls,$=vt(e,["className","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),s=i("input-number",H),Y=(0,Me.ri)(s,f),re=Y.compactSize,ae=Y.compactItemClassnames,ie=r.createElement(de.Z,{className:"".concat(s,"-handler-up-inner")}),J=r.createElement(Ie.Z,{className:"".concat(s,"-handler-down-inner")}),q=typeof I=="boolean"?I:void 0;(0,Q.Z)(I)==="object"&&(ie=typeof I.upIcon=="undefined"?ie:r.createElement("span",{className:"".concat(s,"-handler-up-inner")},I.upIcon),J=typeof I.downIcon=="undefined"?J:r.createElement("span",{className:"".concat(s,"-handler-down-inner")},I.downIcon));var _=(0,r.useContext)(we.aM),j=_.hasFeedback,he=_.status,Ne=_.isFormItemInput,R=_.feedbackIcon,P=(0,pe.F)(he,G),k=re||V||S,Oe=r.useContext(ft.Z),ue=Z!=null?Z:Oe,p=T()((t={},(0,d.Z)(t,"".concat(s,"-lg"),k==="large"),(0,d.Z)(t,"".concat(s,"-sm"),k==="small"),(0,d.Z)(t,"".concat(s,"-rtl"),f==="rtl"),(0,d.Z)(t,"".concat(s,"-borderless"),!ne),(0,d.Z)(t,"".concat(s,"-in-form-item"),Ne),t),(0,pe.Z)(s,P),ae,y),L=r.createElement(st,(0,O.Z)({ref:h,disabled:ue,className:p,upHandler:ie,downHandler:J,prefixCls:s,readOnly:W,controls:q},$));if(B!=null||j){var D,oe=T()("".concat(s,"-affix-wrapper"),(0,pe.Z)("".concat(s,"-affix-wrapper"),P,j),(D={},(0,d.Z)(D,"".concat(s,"-affix-wrapper-focused"),E),(0,d.Z)(D,"".concat(s,"-affix-wrapper-disabled"),e.disabled),(0,d.Z)(D,"".concat(s,"-affix-wrapper-sm"),S==="small"),(0,d.Z)(D,"".concat(s,"-affix-wrapper-lg"),S==="large"),(0,d.Z)(D,"".concat(s,"-affix-wrapper-rtl"),f==="rtl"),(0,d.Z)(D,"".concat(s,"-affix-wrapper-readonly"),W),(0,d.Z)(D,"".concat(s,"-affix-wrapper-borderless"),!ne),(0,d.Z)(D,"".concat(y),!(x||U)&&y),D));L=r.createElement("div",{className:oe,style:e.style,onMouseUp:function(){return h.current.focus()}},B&&r.createElement("span",{className:"".concat(s,"-prefix")},B),(0,ze.Tm)(L,{style:null,value:e.value,onFocus:function(w){var b;g(!0),(b=e.onFocus)===null||b===void 0||b.call(e,w)},onBlur:function(w){var b;g(!1),(b=e.onBlur)===null||b===void 0||b.call(e,w)}}),j&&r.createElement("span",{className:"".concat(s,"-suffix")},R))}if(x!=null||U!=null){var A,ee="".concat(s,"-group"),le="".concat(ee,"-addon"),Ee=x?r.createElement("div",{className:le},x):null,se=U?r.createElement("div",{className:le},U):null,X=T()("".concat(s,"-wrapper"),ee,(0,d.Z)({},"".concat(ee,"-rtl"),f==="rtl")),ye=T()("".concat(s,"-group-wrapper"),(A={},(0,d.Z)(A,"".concat(s,"-group-wrapper-sm"),S==="small"),(0,d.Z)(A,"".concat(s,"-group-wrapper-lg"),S==="large"),(0,d.Z)(A,"".concat(s,"-group-wrapper-rtl"),f==="rtl"),A),(0,pe.Z)("".concat(s,"-group-wrapper"),P,j),y);L=r.createElement("div",{className:ye,style:e.style},r.createElement("div",{className:X},Ee&&r.createElement(Me.BR,null,r.createElement(we.Ux,{status:!0,override:!0},Ee)),(0,ze.Tm)(L,{style:null,disabled:ue}),se&&r.createElement(Me.BR,null,r.createElement(we.Ux,{status:!0,override:!0},se))))}return L}),gt=mt},77883:function(Pe,fe,l){"use strict";var O=l(38663),d=l.n(O),Q=l(54638),F=l.n(Q)}}]);