Files
open-bi-refactor/455.a8f511b1.async.js
T

22 lines
36 KiB
JavaScript
Raw Normal View History

2025-11-06 14:31:48 +08:00
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[455],{88484:function(_e,De,p){p.d(De,{Z:function(){return Ie}});var l=p(1413),K=p(67294),$e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},Fe=$e,N=p(91146),J=function(Se,Oe){return K.createElement(N.Z,(0,l.Z)((0,l.Z)({},Se),{},{ref:Oe,icon:Fe}))},Ce=K.forwardRef(J),Ie=Ce},72708:function(_e,De,p){p.d(De,{Z:function(){return wr}});var l=p(67294),K=p(74902),$e=p(73935),Fe=p(93967),N=p.n(Fe),J=p(87462),Ce=p(15671),Ie=p(43144),H=p(97326),Se=p(60136),Oe=p(29388),U=p(4942),et=p(1413),tt=p(91),rt=p(71002),V=p(74165),fe=p(15861),nt=p(64217),at=p(80334),Pe=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),a=e.name||"",i=e.type||"",o=i.replace(/\/.*$/,"");return n.some(function(s){var r=s.trim();if(/^\*(\/\*)?$/.test(s))return!0;if(r.charAt(0)==="."){var f=a.toLowerCase(),c=r.toLowerCase(),u=[c];return(c===".jpg"||c===".jpeg")&&(u=[".jpg",".jpeg"]),u.some(function(m){return f.endsWith(m)})}return/\/\*$/.test(r)?o===r.replace(/\/.*$/,""):i===r?!0:/^\w+$/.test(r)?((0,at.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(r,"'.Skip for check.")),!0):!1})}return!0};function it(e,t){var n="cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"),a=new Error(n);return a.status=t.status,a.method=e.method,a.url=e.action,a}function Ae(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(n){return t}}function ot(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(o){o.total>0&&(o.percent=o.loaded/o.total*100),e.onProgress(o)});var n=new FormData;e.data&&Object.keys(e.data).forEach(function(i){var o=e.data[i];if(Array.isArray(o)){o.forEach(function(s){n.append("".concat(i,"[]"),s)});return}n.append(i,o)}),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(o){e.onError(o)},t.onload=function(){return t.status<200||t.status>=300?e.onError(it(e,t),Ae(t)):e.onSuccess(Ae(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var a=e.headers||{};return a["X-Requested-With"]!==null&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(a).forEach(function(i){a[i]!==null&&t.setRequestHeader(i,a[i])}),t.send(n),{abort:function(){t.abort()}}}var st=function(){var e=(0,fe.Z)((0,V.Z)().mark(function t(n,a){var i,o,s,r,f,c,u,m;return(0,V.Z)().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:c=function(){return c=(0,fe.Z)((0,V.Z)().mark(function $(C){return(0,V.Z)().wrap(function(I){for(;;)switch(I.prev=I.next){case 0:return I.abrupt("return",new Promise(function(D){C.file(function(S){a(S)?(C.fullPath&&!S.webkitRelativePath&&(Object.defineProperties(S,{webkitRelativePath:{writable:!0}}),S.webkitRelativePath=C.fullPath.replace(/^\//,""),Object.defineProperties(S,{webkitRelativePath:{writable:!1}})),D(S)):D(null)})}));case 1:case"end":return I.stop()}},$)})),c.apply(this,arguments)},f=function($){return c.apply(this,arguments)},r=function(){return r=(0,fe.Z)((0,V.Z)().mark(function $(C){var Z,I,D,S,d;return(0,V.Z)().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:Z=C.createReader(),I=[];case 2:return O.next=5,new Promise(function(B){Z.readEntries(B,function(){return B([])})});case 5:if(D=O.sent,S=D.length,S){O.next=9;break}return O.abrupt("break",12);case 9:for(d=0;d<S;d++)I.push(D[d]);O.next=2;break;case 12:return O.abrupt("return",I);case 13:case"end":return O.stop()}},$)})),r.apply(this,arguments)},s=function($){return r.apply(this,arguments)},i=[],o=[],n.forEach(function(b){return o.push(b.webkitGetAsEntry())}),u=function(){var b=(0,fe.Z)((0,V.Z)().mark(function $(C,Z){v
&:not(${t}-disabled):hover,
&-hover:not(${t}-disabled)
`]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[n]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${(0,M.bf)(e.marginXXS)}`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{[`p${t}-drag-icon ${n},
p${t}-text,
p${t}-hint
`]:{color:e.colorTextDisabled}}}}}},It=e=>{const{componentCls:t,antCls:n,iconCls:a,fontSize:i,lineHeight:o,calc:s}=e,r=`${t}-list-item`,f=`${r}-actions`,c=`${r}-action`,u=e.fontHeightSM;return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},(0,ve.dF)()),{lineHeight:e.lineHeight,[r]:{position:"relative",height:s(e.lineHeight).mul(i).equal(),marginTop:e.marginXS,fontSize:i,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,"&:hover":{backgroundColor:e.controlItemBgHover},[`${r}-name`]:Object.assign(Object.assign({},ve.vS),{padding:`0 ${(0,M.bf)(e.paddingXS)}`,lineHeight:o,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[f]:{whiteSpace:"nowrap",[c]:{opacity:0},[a]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[`
${c}:focus-visible,
&.picture ${c}
`]:{opacity:1},[`${c}${n}-btn`]:{height:u,border:0,lineHeight:1}},[`${t}-icon ${a}`]:{color:e.colorTextDescription,fontSize:i},[`${r}-progress`]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:s(i).add(e.paddingXS).equal(),fontSize:i,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${r}:hover ${c}`]:{opacity:1},[`${r}-error`]:{color:e.colorError,[`${r}-name, ${t}-icon ${a}`]:{color:e.colorError},[f]:{[`${a}, ${a}:hover`]:{color:e.colorError},[c]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},St=p(16932),Ot=e=>{const{componentCls:t}=e,n=new M.E4("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),a=new M.E4("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),i=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${i}-appear, ${i}-enter, ${i}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${i}-appear, ${i}-enter`]:{animationName:n},[`${i}-leave`]:{animationName:a}}},{[`${t}-wrapper`]:(0,St.J$)(e)},n,a]},Xe=p(65409);const Et=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:a,uploadProgressOffset:i,calc:o}=e,s=`${t}-list`,r=`${s}-item`;return{[`${t}-wrapper`]:{[`
${s}${s}-picture,
${s}${s}-picture-card,
${s}${s}-picture-circle
`]:{[r]:{position:"relative",height:o(a).add(o(e.lineWidth).mul(2)).add(o(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${(0,M.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${r}-thumbnail`]:Object.assign(Object.assign({},ve.vS),{width:a,height:a,lineHeight:(0,M.bf)(o(a).add(e.paddingSM).equal()),textAlign:"center",flex:"none",[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${r}-progress`]:{bottom:i,width:`calc(100% - ${(0,M.bf)(o(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:o(a).add(e.paddingXS).equal()}},[`${r}-error`]:{borderColor:e.colorError,[`${r}-thumbnail ${n}`]:{[`svg path[fill='${Xe.iN[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${Xe.iN.primary}']`]:{fill:e.colorError}}},[`${r}-uploading`]:{borderStyle:"dashed",[`${r}-name`]:{marginBottom:i}}},[`${s}${s}-picture-circle ${r}`]:{[`&, &::before, ${r}-thumbnail`]:{borderRadius:"50%"}}}}},Zt=e=>{const{componentCls:t,iconCls:n,fontSizeLG:a,colorTextLightSolid:i,calc:o}=e,s=`${t}-list`,r=`${s}-item`,f=e.uploadPicCardSize;return{[`
${t}-wrapper${t}-picture-card-wrapper,
${t}-wrapper${t}-picture-circle-wrapper
`]:Object.assign(Object.assign({},(0,ve.dF)()),{display:"block",[`${t}${t}-select`]:{width:f,height:f,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${(0,M.bf)(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${s}${s}-picture-card, ${s}${s}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:e.marginXS,marginInlineEnd:e.marginXS}},"@supports (gap: 1px)":{gap:e.marginXS},[`${s}-item-container`]:{display:"inline-block",width:f,height:f,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[r]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${(0,M.bf)(o(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${(0,M.bf)(o(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${r}:hover`]:{[`&::before, ${r}-actions`]:{opacity:1}},[`${r}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[`
${n}-eye,
${n}-download,
${n}-delete
`]:{zIndex:10,width:a,margin:`0 ${(0,M.bf)(e.marginXXS)}`,fontSize:a,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:i,"&:hover":{color:i},svg:{verticalAlign:"baseline"}}},[`${r}-thumbnail, ${r}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${r}-name`]:{display:"none",textAlign:"center"},[`${r}-file + ${r}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${(0,M.bf)(o(e.paddingXS).mul(2).equal())})`},[`${r}-uploading`]:{[`&${r}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${r}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${(0,M.bf)(o(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}};var Dt=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}};const Ft=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},(0,ve.Wf)(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}},Pt=e=>({actionsColor:e.colorTextDescription});var xt=(0,wt.I$)("Upload",e=>{const{fontSizeHeading3:t,fontHeight:n,lineWidth:a,controlHeightLG:i,calc:o}=e,s=(0,$t.IX)(e,{uploadThumbnailSize:o(t).mul(2).equal(),uploadProgressOffset:o(o(n).div(2)).add(a).equal(),uploadPicCardSize:o(i).mul(2.55).equal()});return[Ft(s),Ct(s),Et(s),Zt(s),It(s),Ot(s),Dt(s),(0,yt.Z)(s)]},Pt),Rt={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:n}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:t}}]}},name:"file",theme:"twotone"},jt=Rt,he=p(93771),Lt=function(t,n){return l.createElement(he.Z,(0,J.Z)({},t,{ref:n,icon:jt}))},Ut=l.forwardRef(Lt),Tt=Ut,Ve=p(19267),Nt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},Mt=Nt,zt=function(t,n){return l.createElement(he.Z,(0,J.Z)({},t,{ref:n,icon:Mt}))},At=l.forwardRef(zt),Ht=At,Bt={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:t}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:n}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:n}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:n}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 00