PageSourceSearch

https://dashboard.velocity.in/assets/index-ChF3mOhA.js

js velocity.in collected 2026-09-24 09:24:31 UTC 8,200 bytes, 1 lines download raw bytes

1import{ci as O,ay as I,j as e,bd as d,ak as L,bW as k,bS as P,eq as R,gw as $,fH as M,a$ as D,T as H,r as E,bw as z,bk as q,ch as G,bM as V,bi as v,aA as Z}from"./index-2CwtICst.js";import{u as A,a as Q}from"./index-CqFI7ts3.js";import{R as U}from"./TagsOutlined-DBhx8-he.js";import{P as Y}from"./progress-BiVrF1Ei.js";import{R as J}from"./MinusCircleOutlined-pGlfcGRc.js";import{R as K}from"./CloseCircleOutlined-DBPHwA5-.js";import{R as X}from"./reload_button-Bs6gVRpE.js";import{D as T}from"./constant-BCdx9S_W.js";import{D as ee}from"./dropdown-1Xi7yUr8.js";import{R as te}from"./CloseCircleFilled-CbIeIgTN.js";import{R as oe}from"./DownOutlined-DqNR-cNR.js";import{T as ne}from"./table_loader-9XCof2ZJ.js";import{d as B}from"./common-CLKbIzzY.js";import{T as se}from"./Table-CwvOdCcz.js";import{R as re}from"./DownloadOutlined-hBiodi2E.js";import"./SyncOutlined-Cxccdn5y.js";import"./Dropdown-CSDSyzzq.js";import"./isNumeric-OYazz19Q.js";import"./duration-DUuELGkf.js";import"./index-BxPsFHPt.js";import"./getScrollBarSize-CHB1zEd-.js";import"./css-CG3sgCP8.js";import"./isEqual-DAIv1GAa.js";import"./DownloadOutlined-DTidZHln.js";const ae="_container_patta_10",ie="_containerWrapper_patta_20",le="_successContainer_patta_23",ce="_failedContainer_patta_27",de="_processingContainer_patta_31",pe="_pendingContainer_patta_35",ue="_partialContainer_patta_39",me="_downloadLabelsButton_patta_43",m={container:ae,containerWrapper:ie,successContainer:le,failedContainer:ce,processingContainer:de,pendingContainer:pe,partialContainer:ue,downloadLabelsButton:me},_e={pending:{icon:e.jsx(M,{}),text:"Pending",styleName:m.pendingContainer},processing:{icon:e.jsx($,{}),text:"Processing...",styleName:m.processingContainer},succeeded:{icon:e.jsx(R,{}),text:"Success",styleName:m.successContainer},failed:{icon:e.jsx(K,{}),text:"Failed",styleName:m.failedContainer},partial:{icon:e.jsx(J,{}),text:"Partially Completed",styleName:m.partialContainer},completed_error:{icon:e.jsx(R,{}),text:"Completed with Errors",styleName:m.partialContainer}},xe=({status:p,progressPercentage:u,outputFileName:S,uploadId:a})=>{const{icon:_,text:l,styleName:y}=_e[p]||{icon:e.jsx(M,{}),text:O(p),styleName:m.pendingContainer},{query:o,appendParams:g}=I(),{isLoading:j}=A(),f=p==="processing",C=!!S;return e.jsxs(d,{vertical:!0,gap:4,className:m.containerWrapper,children:[e.jsxs(d,{align:"center",gap:6,children:[e.jsxs(d,{className:L(m.container,y),gap:6,align:"center",justify:"center",children:[_,e.jsx("p",{children:l}),f&&e.jsxs("p",{children:[u||0,"%"]})]}),C&&e.jsx(k,{title:"Download Labels",color:"#FFFFFF",overlayInnerStyle:{color:"#3D3D6B"},children:e.jsx(P,{size:"small",icon:e.jsx(U,{}),loading:j&&a===o.upload_id,className:m.downloadLabelsButton,onClick:()=>{g({upload_id:a,download_type:"outputFile"})}})})]}),f&&e.jsx(Y,{percent:Number(u||0),showInfo:!1,trailColor:"#DBE4FF",strokeColor:{direction:"to right",from:"#0042EC",to:"#0077F7"},size:"small"})]})},ye="_label_1ej83_10",je="_button_1ej83_15",fe="_dropdownIcon_1ej83_18",ge="_dropdownOverlay_1ej83_22",Ce="_dropdownMenu_1ej83_35",be="_optionContainer_1ej83_42",he="_isOptionSelected_1ej83_51",Ne="_isOptionNotSelected_1ej83_58",Se="_moreButtonText_1ej83_62",we="_moreItemsCount_1ej83_70",c={label:ye,button:je,dropdownIcon:fe,dropdownOverlay:ge,dropdownMenu:Ce,optionContainer:be,isOptionSelected:he,isOptionNotSelected:Ne,moreButtonText:Se,moreItemsCount:we},{Text:Fe}=H,ve=()=>{var w;const{query:p,appendParams:u}=I(),S=((w=p.upload_type)==null?void 0:w.split(","))||[],a=D(S),_=Object.keys(T),l=_==null?void 0:_.map(s=>({label:T[s],value:s,key:s})),y=a.length>0,o=y?T[a[0]]:"",g=y?o:"All";if(!l||(l==null?void 0:l.length)===0)return e.jsx(e.Fragment,{});const f=a.length>1,C=a.length-1;return e.jsxs(d,{className:c.container,align:"center",gap:6,children:[e.jsx("p",{className:c.label,children:"Bulk Action"}),e.jsx(ee,{menu:{items:[{key:"1",label:e.jsx(d,{vertical:!0,gap:2,className:c.dropdownMenu,children:l.map(s=>{const b=a.includes(s.value);return e.jsx(d,{className:L(c.optionContainer,{[c.isOptionSelected]:b,[c.isOptionNotSelected]:!b}),align:"center",onClick:()=>
1{if(b){const i=a.filter(t=>t!==s.value);u({upload_type:i.join(","),pageNumber:[]})}else{const i=[...a,s.value];u({upload_type:i.join(","),pageNumber:[]})}},children:e.jsx("p",{children:s.label})},s.value)})}),onClick:s=>{s==null||s.stopPropagation()}}]},placement:"bottomLeft",overlayClassName:c.dropdownOverlay,children:e.jsx(P,{size:"small",className:c.button,children:e.jsxs(d,{justify:"space-between",gap:6,children:[e.jsx(Fe,{className:L({[c.moreButtonText]:f}),ellipsis:{tooltip:!0},children:g}),f&&e.jsxs("p",{className:c.moreItemsCount,children:["+",C]}),y?e.jsx(te,{onClick:s=>{s.stopPropagation(),u({upload_type:[],pageNumber:[]})},className:c.dropdownIcon}):e.jsx(oe,{className:c.dropdownIcon})]})})})]})},Te="_container_ld0b3_10",Be="_contentContainer_ld0b3_13",Le="_table_ld0b3_16",ke="_fileName_ld0b3_25",Ie="_uploadsCount_ld0b3_29",Pe="_divider_ld0b3_34",N={container:Te,contentContainer:Be,table:Le,fileName:ke,uploadsCount:Ie,divider:Pe};function Re(){var w,s,b;const{query:p,appendParams:u}=I(),{bulkUploadHistory:S,isLoading:a,isValidating:_,meta:l,reloadBulkUploadHistory:y}=Q(),{bulkUploadItemDetails:o,isLoading:g}=A(),j=()=>{u({upload_id:[],download_type:[]})};E.useEffect(()=>{j()},[]),E.useEffect(()=>{var x,h,F;const i=p==null?void 0:p.download_type,t=(x=o==null?void 0:o.attributes)==null?void 0:x.file_url,n=(h=o==null?void 0:o.attributes)==null?void 0:h.error_file_url,r=(F=o==null?void 0:o.attributes)==null?void 0:F.output_file_url;i==="uploadedFile"&&t?(B(t),j()):i==="errorFile"&&n?(B(n),j()):i==="outputFile"&&r&&(B(r),j())},[(w=o==null?void 0:o.attributes)==null?void 0:w.error_file_url,(s=o==null?void 0:o.attributes)==null?void 0:s.output_file_url,(b=o==null?void 0:o.attributes)==null?void 0:b.file_url]);const f=[{title:"Input File",key:"file_name",render:(i,t)=>{const n=t.attributes.file_name;if(!n||n.trim()==="")return e.jsx("span",{style:{color:"#999",fontStyle:"italic"},children:"No preview available for this job"});const r=V(n,32),x=n.length>32;return e.jsx(v,{className:N.fileName,onClick:()=>{u({upload_id:t.id,download_type:"uploadedFile"})},children:e.jsx(k,{title:x?n:void 0,color:"#FFFFFF",overlayInnerStyle:{color:"#3D3D6B"},children:r})})}},{title:"Type",key:"upload_type",render:(i,t)=>{const n=t.attributes.content_type,r=T[n]||O(n);return e.jsx(v,{children:r})}},{title:"Created At",key:"uploaded_on",render:(i,t)=>e.jsx(v,{children:Z(t.attributes.created_at).format("DD MMM YY | hh:mm a")})},{title:"Created By",key:"uploaded_by",render:(i,t)=>{const n=t.attributes.created_by||"",r=n.includes("@velocity.in")?"Velocity Shipping Team":n;return e.jsx(v,{children:r})}},{title:"Status",key:"status",render:(i,t)=>{const n=t.attributes.status,r=t.attributes.error_file_name,x=t.attributes.output_file_name,h=!r,F=t.attributes.progress,W=!!r&&n==="succeeded"?"completed_error":n||(h?"succeeded":"failed");return e.jsx(xe,{status:W,progressPercentage:F,outputFileName:x,uploadId:t.id})}},{title:"Error File",key:"actions",width:100,render:(i,t)=>{const n=t.attributes.status,r=t.attributes.error_file_name,x=!r,h=!!r&&n==="succeeded";return e.jsx(k,{title:h?"This file contains only rows with errors.":"",color:"#FFFFFF",overlayInnerStyle:{color:"#3D3D6B"},children:e.jsx(P,{size:"small",icon:e.jsx(re,{}),loading:g&&t.id===p.upload_id,disabled:g&&t.id===p.upload_id||x,onClick:()=>{u({upload_id:t.id,download_type:"errorFile"})}})})}}],C=(l==null?void 0:l.total)||0;return e.jsxs(d,{className:N.container,vertical:!0,gap:16,children:[e.jsx(z,{className:N.divider}),e.jsxs(d,{className:N.contentContainer,vertical:!0,children:[e.jsxs(d,{justify:"space-between",align:"center",children:[e.jsxs("p",{className:N.uploadsCount,children:[C," ",q("upload",C)]}),e.jsxs(d,{align:"center",gap:10,children:[e.jsx(ve,{}),e.jsx(X,{onClick:y,isLoading:_||a})]})]}),e.jsx(d,{vertical:!0,gap:16,children:a?e.jsx(ne,{columns:5}):e.jsxs(e.Fragment,{children:[e.jsx(se,{loading:_,columns:f,dataSource:S,rowKey:"id",className:N.table,pagination:!1}),e.jsx(G,{meta:l})]})})]})]})}Re.displayName="BulkUploadHistory";export{Re as Component};

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.