PageSourceSearch

https://bundlescanner.com/_content/DevExpress.Blazor/modules/upload-dd37e39c.js

js bundlescanner.com collected 2026-09-25 22:15:16 UTC 2,784 bytes, 1 lines download raw bytes

1import{i as t,g as e,U as s,F as o,a as i,M as a,C as l,W as r}from"./upload-base-39e2449e.js";import"./tslib.es6-d65164b3.js";import"./dom-4684d8d6.js";import"./_commonjsHelpers-41cdd1e7.js";import"./string-2448bf95.js";import"./browser-3fc721b7.js";import"./custom-events-helper-e7f279d3.js";import"./single-slot-element-base-433be279.js";import"./data-qa-utils-8be7c726.js";import"./const-90026e45.js";import"./dx-ui-element-f563b741.js";import"./lit-element-base-8610706d.js";import"./dx-license-0dc50603.js";import"./lit-element-462e7ad3.js";import"./logicaltreehelper-67db40f1.js";import"./layouthelper-67dd777a.js";import"./point-e4ec110e.js";import"./constants-7c047c0d.js";import"./property-4ec0b52d.js";import"./css-classes-1103f305.js";class d extends s{constructor(){super(),this.uploaders=new Map,this.uploadPromises=new Set,this.pendingFiles=new Array}processUploadedFilesOptionsCore(t){for(const e of t)e.status===o.PendingUpload&&e.uploadStartOptions&&this.onUploadStartCallback(e.uploadStartOptions,e.customFormDataOptions)}onUploadStartCallback(t,e){const{guid:s,requestJSOptions:o}=t,a=this.files.get(s);a&&(this.attachEventsToFileItem(a),o?this.uploadTechnology!==i.Http||o.uploadUrl?this.startUpload(a,o,(null==e?void 0:e.customData)||{}):a.error(new EventTarget):a.abort())}startUpload(t,e,s){t.status=o.PendingUpload,this.scheduleUpload(t,e,s)}handleUploadError(t,e){var s;t&&t.status&&t.statusText&&t.responseText&&(null===(s=e.onError)||void 0===s||s.call(e,t))}scheduleUpload(t,e,s){if(this.uploadPromises.size<a){const o=this.uploadFileCore(t,e,s);this.uploadPromises.add(o),o.catch((e=>this.handleUploadError(e,t))).finally((()=>{this.onAfterUpload(o)}))}else this.pendingFiles.push({file:t,requestOptions:e,customData:s})}onAfterUpload(t){if(this.uploadPromises.delete(t),this.pendingFiles.length>0){const t=this.pendingFiles.shift(),e=t.file,s=this.uploadFileCore(e,t.requestOptions,t.customData);this.uploadPromises.add(s),s.catch((t=>this.handleUploadError(t,e))).finally((()=>{this.onAfterUpload(s)}))}}getUploadStrategy(t){const e=this.chunkSize>0?new l(this):new r(this),s=this.uploaders.get(t.fileInfo.guid);return(s!==e&&t.status!==o.Uploading||!s)&&this.uploaders.set(t.fileInfo.guid,e),this.uploaders.get(t.fileInfo.guid)}uploadFileCore(t,e,s){return this.getUploadStrategy(t).upload(t,e,s,(t=>(t.loadEnd(),t.isUploadComplete()||t.status!==o.Uploading?Promise.resolve():this.uploadFileCore(t,e,null))))}onCustomizeFormDataCallback(t){var e;const s=t.fileGuid;null===(e=this.uploaders.get(s))||void 0===e||e.onCustomizeChunkMetadataResponse(t.customData),this.uploaders.delete(s)}}customElements.define("dxbl-upload",d);const p={loadModule:function(){},initDotNetReference:t,getRecentlyAddedFileInfosStream:e};export{d as DxUpload,p as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.