PageSourceSearch

https://cinesignal.com/assets/UploadProgress-d2yJpiKP.js

js cinesignal.com collected 2026-10-04 07:41:50 UTC 2,249 bytes, 1 lines download raw bytes

1import{j as e}from"./jsx-runtime-CAOzMBF_.js";import{h as n,a as j}from"./index-BQT6WmMD.js";function y(p){const{intent:a,state:s,bytesUploaded:i=0,bytesTotal:N,speedBps:d,etaSeconds:r,error:o,onPause:c,onResume:x,onCancel:m,filename:h}=p,b=(a==null?void 0:a.filename)||h||(a==null?void 0:a.objectKey)||"Upload",t=N??(a==null?void 0:a.expectedSize)??void 0,l=t&&t>0?Math.max(0,Math.min(100,i/t*100)):void 0,g={IDLE:"Idle",PREPARING:"Preparing",STARTING:"Starting",UPLOADING:"Uploading",COMPLETING:"Finishing up",DONE:"Done",FAILED:"Failed",CANCELED:"Canceled"}[s]??s,u=s==="COMPLETING"?"Finishing upload…":s==="UPLOADING"&&l!==void 0?`Uploading (${l.toFixed(0)}%)`:void 0;return e.jsxs("div",{className:"glass-card p-3 flex items-center justify-between gap-3",children:[e.jsxs("div",{className:"min-w-0",children:[e.jsx("div",{className:"font-medium truncate",children:b}),e.jsxs("div",{className:"text-xs text-gray-400",children:[n(i),t!==void 0?e.jsxs(e.Fragment,{children:[" / ",n(t)]}):null,d?` • ${n(d)}/s`:"",r?` • ETA ${j(r)}`:""]}),l!==void 0?e.jsx("div",{className:"mt-2 h-1.5 w-full bg-gray-700/50 rounded overflow-hidden",role:"progressbar","aria-label":"Upload progress","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Number(l.toFixed(0)),children:e.jsx("div",{className:"h-full bg-blue-500 transition-all duration-300",style:{width:`${l.toFixed(2)}%`}})}):null,a?e.jsxs("div",{className:"text-xs text-gray-500 truncate",children:[a.status,` • created ${new Date(a.createdAt).toLocaleString()}`,` • expires ${new Date(a.expiresAt).toLocaleString()}`,a.objectKey?` • ${a.objectKey}`:""]}):null,o?e.jsx("div",{className:"text-xs text-red-300 mt-1",children:o}):null,u?e.jsx("div",{className:"text-xs text-gray-400 mt-1",children:u}):null]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-xs px-2 py-1 rounded bg-gray-700",children:g}),s==="UPLOADING"||s==="STARTING"?e.jsx("button",{className:"btn",onClick:c,disabled:!c,children:"Pause"}):null,s==="IDLE"||s==="FAILED"?e.jsx("button",{className:"btn",onClick:x,disabled:!x,children:"Resume"}):null,s!=="DONE"&&s!=="CANCELED"?e.jsx("button",{className:"btn",onClick:m,disabled:!m,children:"Cancel"}):null]})]})}export{y as U};

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.