streamlit-nightly 1.44.2.dev20250406__py3-none-any.whl → 1.44.2.dev20250407__py3-none-any.whl

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.
Files changed (73) hide show
  1. streamlit/static/index.html +1 -1
  2. streamlit/static/static/js/{FileDownload.esm.BcMiTwVB.js → FileDownload.esm.76_siAan.js} +1 -1
  3. streamlit/static/static/js/{FileHelper.DihUx7xB.js → FileHelper.C-t60d9I.js} +1 -1
  4. streamlit/static/static/js/{FormClearHelper.BCWMbvg-.js → FormClearHelper.BxIPIP5L.js} +1 -1
  5. streamlit/static/static/js/{Hooks.DxswZylT.js → Hooks.CsneG6D-.js} +1 -1
  6. streamlit/static/static/js/{InputInstructions.C3IYQW66.js → InputInstructions.CzJqQPUo.js} +1 -1
  7. streamlit/static/static/js/{ProgressBar.DsZ44eAG.js → ProgressBar.rnqmSFc7.js} +1 -1
  8. streamlit/static/static/js/{RenderInPortalIfExists.CJo1XNP4.js → RenderInPortalIfExists.BT1iglcq.js} +1 -1
  9. streamlit/static/static/js/{Toolbar.zC9RMqvO.js → Toolbar.C-G8EZDL.js} +1 -1
  10. streamlit/static/static/js/{base-input.BYAE3JfB.js → base-input.BE23gnVe.js} +1 -1
  11. streamlit/static/static/js/{checkbox.B4yv-nA3.js → checkbox.5KG91rAf.js} +1 -1
  12. streamlit/static/static/js/{createSuper.BYXiuZs5.js → createSuper.Djpx0JHn.js} +1 -1
  13. streamlit/static/static/js/{data-grid-overlay-editor.BRSP4Q5h.js → data-grid-overlay-editor.D5ZEJ6-g.js} +1 -1
  14. streamlit/static/static/js/{downloader.GnadH9DP.js → downloader.2PLh9ewR.js} +1 -1
  15. streamlit/static/static/js/{es6.D8RYB6b-.js → es6.Co_R4Vrv.js} +2 -2
  16. streamlit/static/static/js/{iframeResizer.contentWindow.CjNDfwt8.js → iframeResizer.contentWindow.xC-s1Xv_.js} +1 -1
  17. streamlit/static/static/js/{index.W1F0OM9G.js → index.3lMrZLLw.js} +1 -1
  18. streamlit/static/static/js/{index.Kzz4gUPJ.js → index.5KFYXBbC.js} +4 -4
  19. streamlit/static/static/js/{index.CPBJk1lp.js → index.7G_phRf1.js} +1 -1
  20. streamlit/static/static/js/{index.CdPagNhq.js → index.7c-G8UGV.js} +1 -1
  21. streamlit/static/static/js/{index.BRhhwv-C.js → index.BDCmLPQN.js} +1 -1
  22. streamlit/static/static/js/{index.CDSPljq3.js → index.BDb06VAk.js} +1 -1
  23. streamlit/static/static/js/{index.BPtOLSNm.js → index.BLuvs8YB.js} +1 -1
  24. streamlit/static/static/js/{index.C_2tXwz4.js → index.BhQfRF6s.js} +1 -1
  25. streamlit/static/static/js/{index.PKWaMjh6.js → index.BhwLaup4.js} +1 -1
  26. streamlit/static/static/js/{index.DuHTqH_9.js → index.C4Lfn2XI.js} +1 -1
  27. streamlit/static/static/js/{index.Cxfze3Mk.js → index.CD3nk9Fu.js} +1 -1
  28. streamlit/static/static/js/index.CHq7UPqh.js +1 -0
  29. streamlit/static/static/js/{index.Dgn3lt9J.js → index.CL9k-WRa.js} +1 -1
  30. streamlit/static/static/js/{index.CbT7y4TK.js → index.CLlijDQ8.js} +1 -1
  31. streamlit/static/static/js/{index.B7qpqtD6.js → index.CMDu4q8N.js} +1 -1
  32. streamlit/static/static/js/{index.CzrE9emY.js → index.CNErThK-.js} +1 -1
  33. streamlit/static/static/js/{index.BbAJYVXj.js → index.CVpc4758.js} +1 -1
  34. streamlit/static/static/js/{index.DOpTXgh3.js → index.CbEMdCQd.js} +1 -1
  35. streamlit/static/static/js/{index.CBxn7sji.js → index.CbPbNHEK.js} +1 -1
  36. streamlit/static/static/js/{index.DKCBo3om.js → index.CdIt7R38.js} +1 -1
  37. streamlit/static/static/js/{index.CRMmBBDq.js → index.Cm77Rq1x.js} +1 -1
  38. streamlit/static/static/js/{index.B3WIarqf.js → index.CwBkmOEf.js} +1 -1
  39. streamlit/static/static/js/{index.BC5wAIFM.js → index.D8OA-3wz.js} +1 -1
  40. streamlit/static/static/js/{index.UKdSrnn_.js → index.DEqbXo0i.js} +1 -1
  41. streamlit/static/static/js/{index.CkZkpK4-.js → index.DIQp9MZY.js} +1 -1
  42. streamlit/static/static/js/{index.DuV4oQbx.js → index.DNsBOU6p.js} +5 -5
  43. streamlit/static/static/js/{index.NmHUotTf.js → index.DSs7V2Hz.js} +1 -1
  44. streamlit/static/static/js/{index.nEP2fCOO.js → index.DUB8mvGX.js} +1 -1
  45. streamlit/static/static/js/{index.BDlCQX5I.js → index.DZ1bfx6i.js} +1 -1
  46. streamlit/static/static/js/{index.CrEVoSTM.js → index.DhlyA8r5.js} +1 -1
  47. streamlit/static/static/js/{index.Dcg-1sHd.js → index.DpkiOR-s.js} +1 -1
  48. streamlit/static/static/js/{index.BqkJyhUo.js → index.DyhGBqck.js} +1 -1
  49. streamlit/static/static/js/{index.DRrj4vJq.js → index.G5BB57Lk.js} +1 -1
  50. streamlit/static/static/js/{index.CzUmKu1R.js → index.KrzfTD2f.js} +1 -1
  51. streamlit/static/static/js/{index.Bxba7-Vj.js → index.LEPdg6O5.js} +1 -1
  52. streamlit/static/static/js/{index.Dv3BUspB.js → index.fNuc0k1L.js} +1 -1
  53. streamlit/static/static/js/{index.Dg7ksnn2.js → index.uyVXCnCm.js} +1 -1
  54. streamlit/static/static/js/{input.B970MGo0.js → input.Dj1y6w2g.js} +1 -1
  55. streamlit/static/static/js/{memory.Bds5EpZ8.js → memory.ClgbFfRV.js} +1 -1
  56. streamlit/static/static/js/{mergeWith.zOP131Mw.js → mergeWith.p3MKF-Jv.js} +1 -1
  57. streamlit/static/static/js/{number-overlay-editor.BxGwsHaY.js → number-overlay-editor.DSy8B0d4.js} +1 -1
  58. streamlit/static/static/js/{possibleConstructorReturn.CngyaSWa.js → possibleConstructorReturn.PqdlS9VN.js} +1 -1
  59. streamlit/static/static/js/{sandbox.COLAm094.js → sandbox.JYNAoHIv.js} +1 -1
  60. streamlit/static/static/js/{textarea.DrttbSkr.js → textarea.BRz2PqBl.js} +1 -1
  61. streamlit/static/static/js/{timepicker.D02-j0jX.js → timepicker.CLWT7Rjp.js} +1 -1
  62. streamlit/static/static/js/{toConsumableArray.EMFv73a7.js → toConsumableArray.BesBwzeG.js} +1 -1
  63. streamlit/static/static/js/{uniqueId.CdAsXj9D.js → uniqueId.HRwxnbrd.js} +1 -1
  64. streamlit/static/static/js/{useBasicWidgetState.BDsVFj3k.js → useBasicWidgetState.QU3v4y2-.js} +1 -1
  65. streamlit/static/static/js/{useOnInputChange.C8C1na1y.js → useOnInputChange.BbhxtdXj.js} +1 -1
  66. streamlit/static/static/js/{withFullScreenWrapper.BBFCh9IR.js → withFullScreenWrapper.BhOSdZrO.js} +1 -1
  67. {streamlit_nightly-1.44.2.dev20250406.dist-info → streamlit_nightly-1.44.2.dev20250407.dist-info}/METADATA +1 -1
  68. {streamlit_nightly-1.44.2.dev20250406.dist-info → streamlit_nightly-1.44.2.dev20250407.dist-info}/RECORD +72 -72
  69. streamlit/static/static/js/index.BD4E56NB.js +0 -1
  70. {streamlit_nightly-1.44.2.dev20250406.data → streamlit_nightly-1.44.2.dev20250407.data}/scripts/streamlit.cmd +0 -0
  71. {streamlit_nightly-1.44.2.dev20250406.dist-info → streamlit_nightly-1.44.2.dev20250407.dist-info}/WHEEL +0 -0
  72. {streamlit_nightly-1.44.2.dev20250406.dist-info → streamlit_nightly-1.44.2.dev20250407.dist-info}/entry_points.txt +0 -0
  73. {streamlit_nightly-1.44.2.dev20250406.dist-info → streamlit_nightly-1.44.2.dev20250407.dist-info}/top_level.txt +0 -0
@@ -1 +0,0 @@
1
- import{r as c,E as C,_ as b,n as d,H as j,C as g,j as a,bo as m,bp as y,b4 as O,b5 as F,cq as _,cr as q,aZ as G,F as K,bE as Y,R as Z,aA as J,bj as Q,M as h,b as f,bl as ee,bk as te,br as ie,bF as se,bs as le,ba as ne,bt as ae}from"./index.Kzz4gUPJ.js";import{a as I}from"./index.t--hEgTQ.js";import{F as oe}from"./FormClearHelper.BCWMbvg-.js";import{g as M,F as S,b as re,D as de,I as ce,C as pe,a as ge,s as ue}from"./FileHelper.DihUx7xB.js";import{S as he,P as me}from"./ProgressBar.DsZ44eAG.js";import{u as fe}from"./Hooks.DxswZylT.js";import{U as x}from"./UploadFileInfo.C-jY39rj.js";var D=c.forwardRef(function(e,s){var t={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return c.createElement(C,b({iconAttrs:t,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:s}),c.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),c.createElement("path",{d:"M19.35 10.04A7.49 7.49 0 0012 4C9.11 4 6.6 5.64 5.35 8.04A5.994 5.994 0 000 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM19 18H6c-2.21 0-4-1.79-4-4 0-2.05 1.53-3.76 3.56-3.97l1.07-.11.5-.95A5.469 5.469 0 0112 6c2.62 0 4.88 1.86 5.39 4.43l.3 1.5 1.53.11A2.98 2.98 0 0122 15c0 1.65-1.35 3-3 3zM8 13h2.55v3h2.9v-3H16l-4-4z"}))});D.displayName="CloudUpload";var B=c.forwardRef(function(e,s){var t={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return c.createElement(C,b({iconAttrs:t,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:s}),c.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"}))});B.displayName="Error";const V=d("section",{target:"e17y52ym0"})(({isDisabled:e,theme:s})=>({display:"flex",alignItems:"center",padding:s.spacing.lg,backgroundColor:s.colors.secondaryBg,borderRadius:s.radii.default,border:s.colors.widgetBorderColor?`${s.sizes.borderWidth} solid ${s.colors.widgetBorderColor}`:void 0,":focus":{outline:"none"},":focus-visible":{boxShadow:`0 0 0 1px ${s.colors.primary}`},color:e?s.colors.gray:s.colors.bodyText})),P=d("div",{target:"e17y52ym1"})({marginRight:"auto",alignItems:"center",display:"flex"}),L=d("span",{target:"e17y52ym2"})(({theme:e})=>({color:e.colors.darkenedBgMix100,marginRight:e.spacing.lg})),ye=d("span",{target:"e17y52ym3"})(({theme:e})=>({marginBottom:e.spacing.twoXS})),Fe=d("div",{target:"e17y52ym4"})({display:"flex",flexDirection:"column"}),E=d("div",{target:"e17y52ym5"})(({theme:e})=>({left:0,right:0,lineHeight:e.lineHeights.tight,paddingTop:e.spacing.md,paddingLeft:e.spacing.lg,paddingRight:e.spacing.lg})),Se=d("ul",{target:"e17y52ym6"})(({theme:e})=>({listStyleType:"none",margin:e.spacing.none,padding:e.spacing.none})),A=d("li",{target:"e17y52ym7"})(({theme:e})=>({margin:e.spacing.none,padding:e.spacing.none})),W=d("div",{target:"e17y52ym8"})(({theme:e})=>({display:"flex",alignItems:"baseline",flex:1,paddingLeft:e.spacing.lg,overflow:"hidden"})),k=d("div",{target:"e17y52ym9"})(({theme:e})=>({marginRight:e.spacing.sm,marginBottom:e.spacing.twoXS,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"})),R=d("div",{target:"e17y52ym10"})(({theme:e})=>({display:"flex",alignItems:"center",marginBottom:e.spacing.twoXS})),Ue=d("span",{target:"e17y52ym11"})(({theme:e})=>({marginRight:e.spacing.twoXS})),xe=d("div",{target:"e17y52ym12"})(({theme:e})=>({display:"flex",padding:e.spacing.twoXS,color:e.colors.darkenedBgMix100})),H=d("small",{target:"e17y52ym13"})(({theme:e})=>({color:e.colors.danger,fontSize:e.fontSizes.sm,height:e.fontSizes.sm,lineHeight:e.fontSizes.sm,display:"flex",alignItems:"center",whiteSpace:"nowrap"})),N=d("span",{target:"e17y52ym14"})({}),we=e=>({[V]:{display:"flex",flexDirection:"column",alignItems:"flex-start"},[P]:{marginBottom:e.spacing.lg},[L]:{display:"none"},[E]:{paddingRight:e.spacing.lg},[R]:{maxWidth:"inherit",flex:1,alignItems:"flex-start",marginBottom:e.spacing.sm},[k]:{width:e.sizes.full},[W]:{flexDirection:"column"},[H]:{height:"auto",whiteSpace:"initial"},[N]:{display:"none"},[A]:{margin:e.spacing.none,padding:e.spacing.none}}),Ie=d("div",{target:"e17y52ym15"})(({theme:e,width:s})=>{if(s<j("23rem"))return we(e)});var v;(function(e){e.DANGER="danger"})(v||(v={}));const w=d("small",{target:"ejh2rmr0"})(({kind:e,theme:s})=>{const{danger:t,fadedText60:i}=s.colors;return{color:e==="danger"?t:i,fontSize:s.fontSizes.sm,lineHeight:s.lineHeights.tight}}),ve=({multiple:e,acceptedExtensions:s,maxSizeBytes:t})=>g(P,{"data-testid":"stFileUploaderDropzoneInstructions",children:[a(L,{children:a(m,{content:D,size:"threeXL"})}),g(Fe,{children:[g(ye,{children:["Drag and drop file",e?"s":""," here"]}),g(w,{children:[`Limit ${M(t,S.Byte,0)} per file`,s.length?` • ${s.map(i=>i.replace(/^\./,"").toUpperCase()).join(", ")}`:null]})]})]}),ze=c.memo(ve),Ce=({onDrop:e,multiple:s,acceptedExtensions:t,maxSizeBytes:i,disabled:l,label:o})=>a(de,{onDrop:e,multiple:s,accept:re(t),maxSize:i,disabled:l,useFsAccessApi:!1,children:({getRootProps:n,getInputProps:r})=>g(V,{...n(),"data-testid":"stFileUploaderDropzone",isDisabled:l,"aria-label":o,children:[a("input",{"data-testid":"stFileUploaderDropzoneInput",...r()}),a(ze,{multiple:s,acceptedExtensions:t,maxSizeBytes:i}),a(y,{kind:F.SECONDARY,disabled:l,size:O.SMALL,children:"Browse files"})]})}),be=c.memo(Ce),Me=d("div",{target:"egc9vxm0"})(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"space-between",paddingBottom:e.spacing.twoXS,marginBottom:e.spacing.twoXS})),De=d("div",{target:"egc9vxm1"})(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"center",color:e.colors.fadedText40})),Be=({currentPage:e,totalPages:s,onNext:t,onPrevious:i})=>g(Me,{"data-testid":"stFileUploaderPagination",children:[a(w,{children:`Showing page ${e} of ${s}`}),g(De,{children:[a(y,{onClick:i,kind:F.MINIMAL,children:a(m,{content:_,size:"xl"})}),a(y,{onClick:t,kind:F.MINIMAL,children:a(m,{content:q,size:"xl"})})]})]}),Ve=c.memo(Be),z=(e,s)=>Math.ceil(e.length/s),Pe=e=>G(({pageSize:t,items:i,resetOnAdd:l,...o})=>{const[n,r]=c.useState(0),[p,U]=c.useState(()=>z(i,t)),u=fe(i);c.useEffect(()=>{u&&u.length!==i.length&&U(z(i,t)),u&&u.length<i.length?l&&r(0):n+1>=p&&r(p-1)},[i,n,t,u,l,p]);const T=()=>{r(Math.min(n+1,p-1))},$=()=>{r(Math.max(0,n-1))},X=i.slice(n*t,n*t+t);return g(K,{children:[a(e,{items:X,...o}),i.length>t?a(Ve,{pageSize:t,totalPages:p,currentPage:n+1,onNext:T,onPrevious:$}):null]})},e),Le=({fileInfo:e})=>e.status.type==="uploading"?a(me,{value:e.status.progress,size:he.SMALL}):e.status.type==="error"?g(H,{children:[a(Ue,{"data-testid":"stFileUploaderFileErrorMessage",children:e.status.errorMessage}),a(N,{children:a(m,{content:B,size:"lg"})})]}):e.status.type==="uploaded"?a(w,{children:M(e.size,S.Byte)}):null,Ee=({fileInfo:e,onDelete:s})=>g(R,{className:"stFileUploaderFile","data-testid":"stFileUploaderFile",children:[a(xe,{children:a(m,{content:ce,size:"twoXL"})}),g(W,{className:"stFileUploaderFileData",children:[a(k,{className:"stFileUploaderFileName","data-testid":"stFileUploaderFileName",title:e.name,children:e.name}),a(Le,{fileInfo:e})]}),a("div",{"data-testid":"stFileUploaderDeleteBtn",children:a(y,{onClick:()=>s(e.id),kind:F.MINIMAL,children:a(m,{content:pe,size:"lg"})})})]}),Ae=c.memo(Ee),We=({items:e,onDelete:s})=>a(Se,{children:e.map(t=>a(A,{children:a(Ae,{fileInfo:t,onDelete:s})},t.id))}),ke=Pe(We),Re=e=>a(E,{children:a(ke,{...e})}),He=c.memo(Re);class Ne extends Z.PureComponent{constructor(s){super(s),this.formClearHelper=new oe,this.localFileIdCounter=1,this.forceUpdatingStatus=!1,this.componentDidUpdate=()=>{if(this.status!=="ready")return;const t=this.createWidgetValue(),{element:i,widgetMgr:l,fragmentId:o}=this.props,n=l.getFileUploaderStateValue(i);J(t,n)||l.setFileUploaderStateValue(i,t,{fromUi:!0},o)},this.dropHandler=(t,i)=>{const{element:l}=this.props,{multipleFiles:o}=l;if(!o&&t.length===0&&i.length>1){const n=i.findIndex(r=>r.errors.length===1&&r.errors[0].code==="too-many-files");n>=0&&(t.push(i[n].file),i.splice(n,1))}if(this.props.uploadClient.fetchFileURLs(t).then(n=>{if(!o&&t.length>0){const r=this.state.files.find(p=>p.status.type!=="error");r&&(this.forceUpdatingStatus=!0,this.deleteFile(r.id),this.forceUpdatingStatus=!1)}Q(n,t).forEach(([r,p])=>{this.uploadFile(r,p)})}).catch(n=>{this.addFiles(t.map(r=>new x(r.name,r.size,this.nextLocalFileId(),{type:"error",errorMessage:n})))}),i.length>0){const n=i.map(r=>ge(r,this.nextLocalFileId(),this.maxUploadSizeInBytes));this.addFiles(n)}},this.uploadFile=(t,i)=>{const l=I.CancelToken.source(),o=new x(i.name,i.size,this.nextLocalFileId(),{type:"uploading",cancelToken:l,progress:1});this.addFile(o),this.props.uploadClient.uploadFile(this.props.element,t.uploadUrl,i,n=>this.onUploadProgress(n,o.id),l.token).then(()=>this.onUploadComplete(o.id,t)).catch(n=>{I.isCancel(n)||this.updateFile(o.id,o.setStatus({type:"error",errorMessage:n?n.toString():"Unknown error"}))})},this.onUploadComplete=(t,i)=>{const l=this.getFile(t);h(l)||l.status.type!=="uploading"||this.updateFile(l.id,l.setStatus({type:"uploaded",fileId:i.fileId,fileUrls:i}))},this.deleteFile=t=>{const i=this.getFile(t);h(i)||(i.status.type==="uploading"&&i.status.cancelToken.cancel(),i.status.type==="uploaded"&&i.status.fileUrls.deleteUrl&&this.props.uploadClient.deleteFile(i.status.fileUrls.deleteUrl),this.removeFile(t))},this.addFile=t=>{f.flushSync(()=>{this.setState(i=>({files:[...i.files,t]}))})},this.addFiles=t=>{f.flushSync(()=>{this.setState(i=>({files:[...i.files,...t]}))})},this.removeFile=t=>{f.flushSync(()=>{this.setState(i=>({files:i.files.filter(l=>l.id!==t)}))})},this.getFile=t=>this.state.files.find(i=>i.id===t),this.updateFile=(t,i)=>{f.flushSync(()=>{this.setState(l=>({files:l.files.map(o=>o.id===t?i:o)}))})},this.onUploadProgress=(t,i)=>{const l=this.getFile(i);if(h(l)||l.status.type!=="uploading")return;const o=Math.round(t.loaded*100/t.total);l.status.progress!==o&&this.updateFile(i,l.setStatus({type:"uploading",cancelToken:l.status.cancelToken,progress:o}))},this.onFormCleared=()=>{f.flushSync(()=>{this.setState({files:[]},()=>{const t=this.createWidgetValue();if(h(t))return;const{widgetMgr:i,element:l,fragmentId:o}=this.props;i.setFileUploaderStateValue(l,t,{fromUi:!0},o)})})},this.state=this.initialValue}get initialValue(){const s={files:[]},{widgetMgr:t,element:i}=this.props,l=t.getFileUploaderStateValue(i);if(h(l))return s;const{uploadedFileInfo:o}=l;return h(o)||o.length===0?s:{files:o.map(n=>{const r=n.name,p=n.size,U=n.fileId,u=n.fileUrls;return new x(r,p,this.nextLocalFileId(),{type:"uploaded",fileId:U,fileUrls:u})})}}componentWillUnmount(){this.formClearHelper.disconnect()}get maxUploadSizeInBytes(){const s=this.props.element.maxUploadSizeMb;return ue(s,S.Megabyte,S.Byte)}get status(){const s=t=>t.status.type==="uploading";return this.state.files.some(s)||this.forceUpdatingStatus?"updating":"ready"}componentDidMount(){const s=this.createWidgetValue(),{element:t,widgetMgr:i,fragmentId:l}=this.props;i.getFileUploaderStateValue(t)===void 0&&i.setFileUploaderStateValue(t,s,{fromUi:!1},l)}createWidgetValue(){const s=this.state.files.filter(t=>t.status.type==="uploaded").map(t=>{const{name:i,size:l,status:o}=t,{fileId:n,fileUrls:r}=o;return new ee({fileId:n,fileUrls:r,name:i,size:l})});return new te({uploadedFileInfo:s})}render(){var p;const{files:s}=this.state,{element:t,disabled:i,widgetMgr:l,width:o}=this.props,n=t.type;this.formClearHelper.manageFormClearListener(l,t.formId,this.onFormCleared);const r=s.slice().reverse();return g(Ie,{className:"stFileUploader","data-testid":"stFileUploader",width:o,children:[a(ae,{label:t.label,disabled:i,labelVisibility:ie((p=t.labelVisibility)==null?void 0:p.value),children:t.help&&a(se,{children:a(le,{content:t.help,placement:ne.TOP_RIGHT})})}),a(be,{onDrop:this.dropHandler,multiple:t.multipleFiles,acceptedExtensions:n,maxSizeBytes:this.maxUploadSizeInBytes,label:t.label,disabled:i}),r.length>0&&a(He,{items:r,pageSize:3,onDelete:this.deleteFile,resetOnAdd:!0})]})}nextLocalFileId(){return this.localFileIdCounter++}}const Ge=Y(c.memo(Ne));export{Ge as default};