PageSourceSearch

https://www.easyjetconnect.shop/_next/static/chunks/3136-9733bbc9f18b0c76.js

js easyjetconnect.shop collected 2026-10-02 02:07:46 UTC 20,123 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3136],{32713:(e,t,s)=>{s.d(t,{F:()=>A,L:()=>v});var l=s(95155),a=s(12115),n=s(39578),r=s(48809),o=s(36627),i=s(43561),d=s(785),u=s(19279),c=s(35782),p=s(29016),f=s(4711),g=s(30899),h=s(24200),m=s(62620),y=s(78417),w=s(80169);let x=(0,a.createContext)(null),b=e=>{let t=Number(e||0);if(!Number.isFinite(t)||t<=0)return"0 B";let s=["B","KB","MB","GB","TB"],l=Math.min(Math.floor(Math.log(t)/Math.log(1024)),s.length-1),a=t/1024**l;return"".concat(a.toFixed(a>=10||0===l?0:1)," ").concat(s[l])};function v(e){let{children:t}=e,s=(0,w.c)("dashboard.orders.ordersPdf.downloadQueue"),[v,A]=(0,a.useState)([]),[j,S]=(0,a.useState)(!1),M=(0,a.useRef)(v),z=(0,a.useRef)(new Map),E=(0,a.useRef)(new Map),C=(0,a.useRef)(null);(0,a.useEffect)(()=>{M.current=v},[v]),(0,a.useEffect)(()=>{if(!v.length||!C.current)return void document.documentElement.style.removeProperty("--download-queue-offset");let e=C.current,t=()=>{document.documentElement.style.setProperty("--download-queue-offset","".concat(e.getBoundingClientRect().height+12,"px"))};if(t(),"undefined"==typeof ResizeObserver)return()=>document.documentElement.style.removeProperty("--download-queue-offset");let s=new ResizeObserver(t);return s.observe(e),()=>{s.disconnect(),document.documentElement.style.removeProperty("--download-queue-offset")}},[j,v.length]);let B=(0,a.useCallback)((e,t)=>{A(s=>s.map(s=>s.id===e?{...s,...t}:s))},[]),k=(0,a.useCallback)(async e=>{var t,l,a;let n=M.current.find(t=>t.id===e);if(!n||"queued"!==n.status)return;let r=new AbortController,o=Date.now();z.current.set(e,r),E.current.set(e,null),B(e,{status:"preparing",startedAt:o,finishedAt:null,loadedBytes:0,totalBytes:0,totalIsEstimated:!1,progress:0,speedBytes:0,errorMessage:null});try{let s=await n.request({signal:r.signal,onDownloadProgress:t=>{var s,l,a;let n=Number((null==t?void 0:t.loaded)||0),r=Number((null==t||null==(a=t.event)||null==(l=a.target)||null==(s=l.getResponseHeader)?void 0:s.call(l,"x-download-uncompressed-length"))||0),o=Number((null==t?void 0:t.total)||0),i=o>0?o:r,d=Date.now(),u=E.current.get(e),c=u?(n-u.loaded)*1e3/Math.max(d-u.at,1):0;E.current.set(e,{loaded:n,at:d}),B(e,{status:"downloading",loadedBytes:n,totalBytes:i>0?i:0,totalIsEstimated:o<=0&&r>0,progress:i&&!(i<=0)?Math.round(100*Math.max(0,Math.min(100,n/i*100)))/100:0,speedBytes:Number((null==t?void 0:t.rate)||c||0)})}}),a=Number((null==s||null==(t=s.blob)?void 0:t.size)||0);(0,y.x_)(null==s?void 0:s.blob,(null==s?void 0:s.filename)||n.fallbackFilename),B(e,{status:"success",progress:100,loadedBytes:a,totalBytes:a,totalIsEstimated:!1,speedBytes:0,finishedAt:Date.now(),resolvedFilename:(null==s?void 0:s.filename)||n.fallbackFilename});try{await (null==(l=n.onSuccess)?void 0:l.call(n,s))}catch(e){}}catch(r){let t=(null==r?void 0:r.name)==="CanceledError"||(null==r?void 0:r.name)==="AbortError"||(null==r?void 0:r.code)==="ERR_CANCELED",l=t?null:n.getErrorMessage?await n.getErrorMessage(r):await (0,y.fp)(r,s("messages.downloadFailed"));B(e,{status:t?"canceled":"failed",speedBytes:0,finishedAt:Date.now(),errorMessage:l});try{await (null==(a=n.onError)?void 0:a.call(n,r,l))}catch(e){}}finally{z.current.delete(e),E.current.delete(e)}},[s,B]);(0,a.useEffect)(()=>{let e=v.filter(e=>["preparing","downloading"].includes(e.status)).length;e>=2||v.filter(e=>"queued"===e.status).slice(0,2-e).forEach(e=>void k(e.id))},[k,v]);let q=(0,a.useCallback)(e=>{if("function"!=typeof(null==e?void 0:e.request))return null;let t=M.current.find(t=>e.key&&t.key===e.key&&["queued","preparing","downloading"].includes(t.status));if(t)return t.id;let s={id:"undefined"!=typeof crypto&&crypto.randomUUID?crypto.randomUUID():"".concat(Date.now(),"-").concat(Math.random().toString(16).slice(2)),key:e.key||null,title:e.title||e.fallbackFilename||"download",subtitle:e.subtitle||null,fallbackFilename:e.fallbackFilename||"download",request:e.request,onSuccess:e.onSuccess,onError:e.onError,getErrorMessage:e.getErrorMessage,status:"queued",loadedBytes:0,totalBytes:0,totalIsEstimated:!1,progress:0,speedBytes:0,createdAt:Date.now(),startedAt:null,finishedAt:null,errorMessage:null,resolvedFilename:null};return A(e=>[s,...e]),S(!1),s.id},[]),D=(0,a.useCallback)(e=>{var t;let s=M.current.find(t=>
1t.id===e);if(s){if("queued"===s.status)return void B(e,{status:"canceled",finishedAt:Date.now()});null==(t=z.current.get(e))||t.abort()}},[B]),_=(0,a.useCallback)(e=>{B(e,{status:"queued",loadedBytes:0,totalBytes:0,totalIsEstimated:!1,progress:0,speedBytes:0,startedAt:null,finishedAt:null,errorMessage:null})},[B]),P=(0,a.useCallback)(e=>{var t;null==(t=z.current.get(e))||t.abort(),A(t=>t.filter(t=>t.id!==e))},[]),N=(0,a.useCallback)(()=>{A(e=>e.filter(e=>["queued","preparing","downloading"].includes(e.status)))},[]),F=(0,a.useCallback)(e=>v.some(t=>t.key===e&&["queued","preparing","downloading"].includes(t.status)),[v]),U=(0,a.useMemo)(()=>v.some(e=>["queued","preparing","downloading"].includes(e.status)),[v]);(0,a.useEffect)(()=>{if(!U)return;let e=e=>(e.preventDefault(),e.returnValue=s("messages.beforeUnload"),e.returnValue);return window.addEventListener("beforeunload",e),()=>window.removeEventListener("beforeunload",e)},[U,s]);let I=(0,a.useMemo)(()=>({tasks:v,enqueueDownload:q,cancelDownload:D,retryDownload:_,removeTask:P,clearFinished:N,isDownloading:F,hasOngoingDownloads:U}),[D,N,q,U,F,P,_,v]),T=v.filter(e=>["preparing","downloading"].includes(e.status)).length,R=v.filter(e=>"queued"===e.status).length,L={queued:{label:s("status.queued"),color:"default"},preparing:{label:s("status.preparing"),color:"processing"},downloading:{label:s("status.downloading"),color:"processing"},success:{label:s("status.success"),color:"success"},failed:{label:s("status.failed"),color:"error"},canceled:{label:s("status.canceled"),color:"warning"}};return(0,l.jsxs)(x.Provider,{value:I,children:[t,v.length>0?(0,l.jsx)("div",{ref:C,style:{position:"fixed",left:16,bottom:16,width:400,maxWidth:"calc(100vw - 32px)",zIndex:1850,pointerEvents:"none"},children:(0,l.jsx)(n.A,{size:"small",style:{pointerEvents:"auto",boxShadow:"0 10px 32px rgba(0,0,0,0.18)"},title:(0,l.jsxs)(r.A,{wrap:!0,size:6,children:[(0,l.jsx)(o.A,{status:U?"processing":"default"}),(0,l.jsx)(p.A,{}),(0,l.jsx)("span",{children:s("title")}),(0,l.jsx)(i.A,{children:v.length}),T?(0,l.jsx)(i.A,{color:"processing",children:s("badges.downloading",{count:T})}):null,R?(0,l.jsx)(i.A,{children:s("badges.queued",{count:R})}):null]}),extra:(0,l.jsx)(d.Ay,{size:"small",icon:(0,l.jsx)(f.A,{}),"aria-label":s("actions.collapse"),onClick:()=>S(e=>!e)}),styles:{body:{display:j?"none":"block",maxHeight:420,overflowY:"auto"}},children:(0,l.jsxs)(r.A,{direction:"vertical",size:"small",style:{width:"100%"},children:[(0,l.jsxs)(r.A,{style:{width:"100%",justifyContent:"space-between"},children:[(0,l.jsx)(u.A.Text,{type:"secondary",children:s("subtitle")}),(0,l.jsx)(d.Ay,{size:"small",icon:(0,l.jsx)(g.A,{}),onClick:N,children:s("actions.clearFinished")})]}),v.map(e=>{let t=L[e.status]||L.queued,a=["queued","preparing","downloading"].includes(e.status),o=(e.finishedAt||Date.now())-(e.startedAt||e.createdAt),p=e.totalBytes>0;return(0,l.jsx)(n.A,{size:"small",styles:{body:{padding:10}},children:(0,l.jsxs)(r.A,{direction:"vertical",size:4,style:{width:"100%"},children:[(0,l.jsxs)(r.A,{style:{width:"100%",justifyContent:"space-between"},children:[(0,l.jsx)(u.A.Text,{ellipsis:!0,style:{maxWidth:240},title:e.title,children:e.resolvedFilename||e.title}),(0,l.jsx)(i.A,{color:t.color,children:t.label})]}),e.subtitle?(0,l.jsx)(u.A.Text,{type:"secondary",ellipsis:!0,style:{fontSize:12}
1,children:e.subtitle}):null,"downloading"===e.status&&p?(0,l.jsx)(c.A,{percent:e.progress,size:"small",status:"active",format:e=>"".concat(Number(e||0).toFixed(1),"%")}):["preparing","downloading"].includes(e.status)?(0,l.jsx)(c.A,{percent:100,size:"small",status:"active",showInfo:!1}):(0,l.jsx)(c.A,{percent:"success"===e.status?100:e.progress,size:"small",status:"failed"===e.status?"exception":"success"===e.status?"success":"normal",showInfo:"queued"!==e.status}),(0,l.jsxs)(u.A.Text,{type:"secondary",style:{fontSize:12},children:["preparing"===e.status?s("fields.preparing"):p?s(e.totalIsEstimated?"fields.progressEstimated":"fields.progressKnown",{downloaded:b(e.loadedBytes),total:b(e.totalBytes)}):s("fields.progressUnknown",{downloaded:b(e.loadedBytes)}),"downloading"===e.status&&e.speedBytes>0?" • ".concat(b(e.speedBytes),"/s"):"",e.startedAt?" • ".concat((e=>{let t=Math.max(0,Math.floor(Number(e||0)/1e3));if(t<60)return"".concat(t,"s");let s=Math.floor(t/60);return"".concat(s,"m ").concat(t%60,"s")})(o)):""]}),e.errorMessage?(0,l.jsx)(u.A.Text,{type:"danger",style:{fontSize:12},children:e.errorMessage}):null,(0,l.jsxs)(r.A,{style:{width:"100%",justifyContent:"flex-end"},children:[["failed","canceled"].includes(e.status)?(0,l.jsx)(d.Ay,{size:"small",icon:(0,l.jsx)(h.A,{}),onClick:()=>_(e.id),children:s("actions.retry")}):null,a?(0,l.jsx)(d.Ay,{size:"small",danger:!0,icon:(0,l.jsx)(m.A,{}),onClick:()=>D(e.id),children:s("actions.cancel")}):(0,l.jsx)(d.Ay,{size:"small",icon:(0,l.jsx)(g.A,{}),onClick:()=>P(e.id),children:s("actions.remove")})]})]})},e.id)})]})})}):null]})}let A=()=>{let e=(0,a.useContext)(x);if(!e)throw Error("useDownloadQueue must be used within DownloadQueueProvider");return e}},57006:(e,t,s)=>{s.d(t,{j:()=>n});var l=s(95125);let a=e=>(null==e?void 0:e.data)&&"object"==typeof e.data?e.data:e;async function n(e){let{file:t,initUpload:s,getPartUrls:n,signal:r,onSession:o,onProgress:i}=e,d=a(await s()),u=String((null==d?void 0:d.upload_session_id)||""),c=Number((null==d?void 0:d.part_size)||0),p=Number((null==d?void 0:d.total_parts)||0);if(!u||!c||!p)throw Error("Invalid multipart upload session");null==o||o(u);let f=new Map,g=0,h=Date.now(),m=0,y=()=>{let e=Array.from(f.values()).reduce((e,t)=>e+Number(t||0),0);g=Math.max(g,Math.min(e,t.size));let s=Date.now(),l=Math.max(.001,(s-h)/1e3),a=Math.max(0,g-m);(s-h>=500||g>=t.size)&&(h=s,m=g),null==i||i({loaded:g,total:t.size,bytesPerSecond:a/l})},w=[],x=async(e,s)=>{let a,n=(e-1)*c,o=Math.min(n+c,t.size),i=t.slice(n,o);for(let n=1;n<=3;n+=1)try{var d;f.set(e,0);let a=await l.A.put(s,i,{headers:{"Content-Type":t.type||"application/octet-stream"},signal:r,onUploadProgress:t=>{f.set(e,Number((null==t?void 0:t.loaded)||0)),y()}});return f.set(e,i.size),y(),{part_number:e,etag:String((null==a||null==(d=a.headers)?void 0:d.etag)||"__missing__")}}catch(e){if(a=e,(null==e?void 0:e.name)==="CanceledError"||(null==e?void 0:e.code)==="ERR_CANCELED"||3===n)throw e}throw a};for(let e=1;e<=p;e+=40){let t=Array.from({length:Math.min(40,p-e+1)},(t,s)=>e+s),s=a(await n(u,t)),l=new Map(((null==s?void 0:s.urls)||[]).map(e=>[Number(null==e?void 0:e.part_number),String((null==e?void 0:e.url)||"")]));if(l.size!==t.length)throw Error("Multipart signed URLs are incomplete");let r=[...t],o=Array.from({length:Math.min(4,r.length)},async()=>{for(;r.length;){let e=r.shift();if(!e)return;w.push(await x(e,l.get(e)))}});await Promise.all(o)}return{uploadSessionId:u,parts:w.sort((e,t)=>e.part_number-t.part_number)}}},79816:(e,t,s)=>{s.d(t,{J:()=>M,T:()=>S});var l=s(95155),a=s(12115),n=s(39578),r=s(48809),o=s(36627),i=s(43561),d=s(785),u=s(19279),c=s(35782),p=s(4711),f=s(30899),g=s(24200),h=s(62620),m=s(34648),y=s(80169),w=s(57006);let x=(0,a.createContext)(null),b=()=>"undefined"!=typeof crypto&&crypto.randomUUID?crypto.randomUUID():"".concat(Date.now(),"-").concat(Math.random().toString(16).slice(2)),v=e=>{let t=Number(e||0);if(!Number.isFinite(t)||t<=0)return"0 B";let s=["B","KB","MB","GB","TB"],l=Math.min(Math.floor(Math.log(t)/Math.log(1024)),s.length-1),a=t/1024**l;return"".concat(a.toFixed(a>=10||0===l?0:1)," ").concat(s[l])},A=e=>{let t=Number(e);return Number.isFinite(t)?Math.round(100*Math.max(0,Math.min(100,t)))/100:0},j=e=>{let t=A(e);return t.toFixed(2*!Number.isInteger(t))};function S(e){let{children:t}=e,s=(0,y.c)("dashboard.orders.ordersPdf.uploadQueue"),[S,M]=(0,a.useState)([]),[z,E]=(0,a.useState)(!1),C=(0,a.useRef)(new Map),B=(0,a.useRef)(S);(0,a.useEffect)(()=>{B.current=S},[S]);let k=(0,a.useCallback)((e,t)=>{M(s=>s.map(s=>s.id===e?{...s,...t}:s))},[]),q=(0,a.useCallback)(async e=>{let t=B.current.find(t=>
1t.id===e);if(!t||"queued"!==t.status)return;let l=new AbortController;C.current.set(e,l);let a=null;k(e,{status:"uploading",serverStatus:"preparing",startedAt:Date.now(),progress:0,preparationProgress:0,uploadedBytes:0,uploadTotalBytes:t.fileSize,uploadSpeed:0,errorMessage:null});try{let s="designFlaw"===t.kind?m.D4:m.Uo,{parts:n}=await (0,w.j)({file:t.file,signal:l.signal,initUpload:()=>{var e;return s.initDesignUpload({["designFlaw"===t.kind?"orders_design_flaw_id":"orders_pdf_id"]:t.parentId,file_name:t.fileName,file_size:t.fileSize,content_type:(null==(e=t.file)?void 0:e.type)||"application/octet-stream"})},getPartUrls:(e,t)=>s.designUploadPartUrls({upload_session_id:e,part_numbers:t}),onSession:t=>{a=t,k(e,{uploadSessionId:t,serverStatus:"uploading",preparationProgress:100})},onProgress:t=>{let{loaded:s,total:l,bytesPerSecond:a}=t;return k(e,{serverStatus:"uploading",progress:A(s/l*100),preparationProgress:100,uploadedBytes:s,uploadTotalBytes:l,uploadSpeed:a})}});k(e,{serverStatus:"saving",uploadSpeed:0}),await s.completeDesignUpload({upload_session_id:a,parts:n}),k(e,{status:"success",serverStatus:"completed",progress:100,preparationProgress:100,uploadedBytes:t.fileSize,uploadTotalBytes:t.fileSize,uploadSpeed:0,finishedAt:Date.now(),errorMessage:null})}catch(i){var n,r,o;let l=(null==i?void 0:i.name)==="CanceledError"||(null==i?void 0:i.code)==="ERR_CANCELED";if(a){let s="designFlaw"===t.kind?m.D4:m.Uo;if(!l)try{let l=await s.uploadDesignProgress(a),n=(null==l?void 0:l.data)||l;if((null==n?void 0:n.status)==="completed")return void k(e,{status:"success",serverStatus:"completed",progress:100,preparationProgress:100,uploadedBytes:t.fileSize,uploadTotalBytes:t.fileSize,uploadSpeed:0,finishedAt:Date.now(),errorMessage:null})}catch(e){}await s.abortDesignUpload({upload_session_id:a}).catch(()=>void 0)}k(e,{status:l?"canceled":"failed",finishedAt:Date.now(),errorMessage:l?null:(null==i||null==(o=i.response)||null==(r=o.data)||null==(n=r.error)?void 0:n.message)||(null==i?void 0:i.message)||s("messages.uploadFailed"),uploadSpeed:0})}finally{C.current.delete(e)}},[s,k]);(0,a.useEffect)(()=>{let e=S.filter(e=>"uploading"===e.status).length;e>=3||S.filter(e=>"queued"===e.status).slice(0,3-e).forEach(e=>void q(e.id))},[q,S]);let D=(0,a.useCallback)(e=>{let{ordersPdfId:t,ordersDesignFlawId:s,pdfName:l,batchName:a,files:n}=e,r=Array.from(n||[]).filter(e=>e instanceof File);if(!r.length)return[];let o=Date.now(),i=s?"designFlaw":"ordersPdf",d=s||t;if(!d)return[];let u=r.map(e=>({id:b(),kind:i,parentId:String(d),pdfName:a||l||"-",file:e,fileName:e.name||"untitled",fileSize:e.size||0,status:"queued",progress:0,preparationProgress:0,uploadedBytes:0,uploadTotalBytes:e.size||0,uploadSpeed:0,uploadSessionId:null,createdAt:o,startedAt:null,finishedAt:null,errorMessage:null,serverStatus:null}));return M(e=>[...u,...e]),E(!1),u.map(e=>e.id)},[]),_=(0,a.useCallback)(async e=>{let t=B.current.find(t=>t.id===e);if(t){if("queued"===t.status)return void k(e,{status:"canceled",finishedAt:Date.now()});if("uploading"===t.status){var s;let l="designFlaw"===t.kind?m.D4:m.Uo;t.uploadSessionId&&await l.abortDesignUpload({upload_session_id:t.uploadSessionId}).catch(()=>void 0),null==(s=C.current.get(e))||s.abort()}}},[k]),P=(0,a.useCallback)(e=>{let t=B.current.find(t=>t.id===e);t&&["failed","canceled"].includes(t.status)&&k(e,{id:b(),status:"queued",progress:0,preparationProgress:0,uploadedBytes:0,uploadTotalBytes:t.fileSize,uploadSpeed:0,uploadSessionId:null,
1startedAt:null,finishedAt:null,errorMessage:null,serverStatus:null})},[k]),N=(0,a.useCallback)(e=>{var t;let s=B.current.find(t=>t.id===e);(null==s?void 0:s.status)==="uploading"&&(null==(t=C.current.get(e))||t.abort()),M(t=>t.filter(t=>t.id!==e))},[]),F=(0,a.useCallback)(()=>{M(e=>e.filter(e=>["queued","uploading"].includes(e.status)))},[]),U=(0,a.useMemo)(()=>S.some(e=>["queued","uploading"].includes(e.status)),[S]);(0,a.useEffect)(()=>{if(!U)return;let e=e=>(e.preventDefault(),e.returnValue=s("messages.beforeUnload"),e.returnValue);return window.addEventListener("beforeunload",e),()=>window.removeEventListener("beforeunload",e)},[U,s]);let I=(0,a.useMemo)(()=>({tasks:S,enqueueUploads:D,cancelUpload:_,retryUpload:P,removeTask:N,clearFinished:F,hasOngoingUploads:U}),[_,F,D,U,N,P,S]),T=S.filter(e=>"queued"===e.status).length,R=S.filter(e=>"uploading"===e.status).length,L={queued:{label:s("status.queued"),color:"default"},uploading:{label:s("status.uploading"),color:"processing"},preparing:{label:s("status.preparing"),color:"processing"},saving:{label:s("status.saving"),color:"processing"},success:{label:s("status.success"),color:"success"},failed:{label:s("status.failed"),color:"error"},canceled:{label:s("status.canceled"),color:"warning"}};return(0,l.jsxs)(x.Provider,{value:I,children:[t,S.length>0?(0,l.jsx)("div",{style:{position:"fixed",left:16,bottom:"calc(16px + var(--download-queue-offset, 0px))",width:380,zIndex:1810,pointerEvents:"none"},children:(0,l.jsx)(n.A,{size:"small",style:{pointerEvents:"auto",boxShadow:"0 10px 32px rgba(0,0,0,0.16)"},title:(0,l.jsxs)(r.A,{children:[(0,l.jsx)(o.A,{status:U?"processing":"default"}),(0,l.jsx)("span",{children:s("title")}),(0,l.jsx)(i.A,{children:S.length}),R?(0,l.jsx)(i.A,{color:"processing",children:s("badges.uploading",{count:R})}):null,T?(0,l.jsx)(i.A,{color:"default",children:s("badges.queued",{count:T})}):null]}),extra:(0,l.jsx)(d.Ay,{size:"small",icon:(0,l.jsx)(p.A,{}),onClick:()=>E(e=>!e)}),bodyStyle:{display:z?"none":"block",maxHeight:340,overflowY:"auto"},children:(0,l.jsxs)(r.A,{direction:"vertical",size:"small",style:{width:"100%"},children:[(0,l.jsxs)(r.A,{style:{width:"100%",justifyContent:"space-between"},children:[(0,l.jsx)(u.A.Text,{type:"secondary",children:s("subtitle")}),(0,l.jsx)(d.Ay,{size:"small",icon:(0,l.jsx)(f.A,{}),onClick:F,children:s("actions.clearFinished")})]}),S.map(e=>{let t="uploading"===e.status&&["pending","preparing"].includes(e.serverStatus),a="uploading"===e.status&&"saving"===e.serverStatus,o=t?L.preparing:a?L.saving:L[e.status]||L.queued,p=["queued","uploading"].includes(e.status),m=["failed","canceled"].includes(e.status);return(0,l.jsx)(n.A,{size:"small",styles:{body:{padding:10}},children:(0,l.jsxs)(r.A,{direction:"vertical",size:4,style:{width:"100%"},children:[(0,l.jsxs)(r.A,{style:{width:"100%",justifyContent:"space-between"},children:[(0,l.jsx)(u.A.Text,{ellipsis:!0,style:{maxWidth:210},children:e.fileName}),(0,l.jsx)(i.A,{color:o.color,children:o.label})]}),(0,l.jsxs)(u.A.Text,{type:"secondary",style:{fontSize:12},children:[e.pdfName," • ",v(e.fileSize)]}),(0,l.jsx)(c.A,{percent:"queued"===e.status?0:e.progress,size:"small",status:"failed"===e.status?"exception":"success"===e.status?"success":"active",showInfo:"queued"!==e.status,format:e=>"".concat(j(e),"%")}),"uploading"===e.status?(0,l.jsxs)(u.A.Text,{type:"secondary",style:{fontSize:12},children:[t?s("fields.preparationProgress",{percent:j(e.preparationProgress)}):s("fields.uploadProgress",{uploaded:v(e.uploadedBytes),total:v(e.uploadTotalBytes||e.fileSize)}),!t&&e.uploadSpeed>0?" • ".concat(v(e.uploadSpeed),"/s"):""]}):null,e.errorMessage?(0,l.jsx)(u.A.Text,{type:"danger",style:{fontSize:12},children:e.errorMessage}):null,(0,l.jsxs)(r.A,{style:{width:"100%",justifyContent:"flex-end"},children:[m?(0,l.jsx)(d.Ay,{size:"small",icon:(0,l.jsx)(g.A,{}),onClick:()=>P(e.id),children:s("actions.retry")}):null,p?(0,l.jsx)(d.Ay,{size:"small",danger:!0,icon:(0,l.jsx)(h.A,{}),onClick:()=>_(e.id),children:s("actions.cancel")}):null,p?null:(0,l.jsx)(d.Ay,{size:"small",icon:(0,l.jsx)(f.A,{}),onClick:()=>N(e.id),children:s("actions.remove")})]})]})},e.id)})]})})}):null]})}let M=()=>{let e=(0,a.useContext)(x);if(!e)throw Error("useOrdersPdfDesignUploadQueue must be used within OrdersPdfDesignUploadQueueProvider");return e}}}]);

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.