1"use strict";(globalThis.webpackChunkipe_frontend=globalThis.webpackChunkipe_frontend||[]).push([[3052],{95822(e,t,a){a.d(t,{f:()=>o,w:()=>s});var n=a(65043),l=a(55473);function s(){const[e,t]=(0,n.useState)(()=>(0,l.zd)());return(0,n.useEffect)(()=>(0,l.zp)(t),[]),e}function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const a=s(),[l,o]=(0,n.useState)(e);return(0,n.useEffect)(()=>{o(e())},[a,...t]),[l,o]}},63379(e,t,a){a.d(t,{iL:()=>b,Ay:()=>x});var n=a(65043),l=a(5736),s=a(79076),o=a(87669),d=a(41977),i=a(42457),r=(a(27663),a(77497),a(7593),a(70579));const c={fileName:"",status:"",startDate:"",endDate:""},u=[{value:"",label:"\u5168\u90e8\u72b6\u6001"},{value:"downloading",label:"\u6253\u5305\u4e2d"},{value:"completed",label:"\u5df2\u5b8c\u6210"},{value:"partial_succeeded",label:"\u90e8\u5206\u6210\u529f"},{value:"failed",label:"\u5931\u8d25"},{value:"expired",label:"\u5df2\u8fc7\u671f"},{value:"cancelled",label:"\u5df2\u7ec8\u6b62"}];function f(e){if(!e)return"\u2014";try{const t=new Date(e),a=e=>String(e).padStart(2,"0");return`${t.getFullYear()}-${a(t.getMonth()+1)}-${a(t.getDate())} ${a(t.getHours())}:${a(t.getMinutes())}:${a(t.getSeconds())}`}catch{return"\u2014"}}function w(e){const t=Number(e);return!Number.isFinite(t)||t<0?"":t<1024?`${Math.round(t)} B`:t<1048576?`${(t/1024).toFixed(1)} KB`:`${(t/1048576).toFixed(1)} MB`}function m(e,t){if(t)return"\u4fdd\u5b58\u5230\u672c\u5730\u2026";if("failed"===(null===e||void 0===e?void 0:e.status))return"\u91cd\u65b0\u6253\u5305\u4e0b\u8f7d";const a=Array.isArray(null===e||void 0===e?void 0:e.parts)&&e.parts.length>0?"partial_succeeded"===e.status?e.parts.filter(e=>{const t=String((null===e||void 0===e?void 0:e.status)||"").toLowerCase();return!t||"succeeded"===t||"completed"===t}).length:e.parts.length:Number(null===e||void 0===e?void 0:e.volumeCount)>1?Number(e.volumeCount):0;return"partial_succeeded"===(null===e||void 0===e?void 0:e.status)?a>1?null!==e&&void 0!==e&&e.downloadedAt?`\u518d\u6b21\u4fdd\u5b58\u6210\u529f\u5377\uff08${a}\uff09`:`\u4e0b\u8f7d\u6210\u529f\u5377\uff08${a}\uff09`:null!==e&&void 0!==e&&e.downloadedAt?"\u518d\u6b21\u4fdd\u5b58\u6210\u529f\u5377":"\u4e0b\u8f7d\u6210\u529f\u5377":a>1?null!==e&&void 0!==e&&e.downloadedAt?`\u518d\u6b21\u4fdd\u5b58\uff08${a}\u5377\uff09`:`\u4e0b\u8f7d\u5230\u672c\u5730\uff08${a}\u5377\uff09`:null!==e&&void 0!==e&&e.downloadedAt?"\u518d\u6b21\u4fdd\u5b58":"\u4e0b\u8f7d\u5230\u672c\u5730"}function p(e){return"completed"===e?"success":"partial_succeeded"===e?"partial":"failed"===e||"cancelled"===e||"expired"===e?"failed":"processing"}function g(e){const t=String((null===e||void 0===e?void 0:e.fileName)||"").trim(),a=String((null===e||void 0===e?void 0:e.source)||"").trim();return t&&a&&"\u5bfc\u51fa"!==a?`${a} \xb7 ${t}`:t||a||"\u672a\u547d\u540d\u4efb\u52a1"}function v(){return(0,r.jsxs)("colgroup",{children:[(0,r.jsx)("col",{className:"wf-download-center-table__col-task"}),(0,r.jsx)("col",{className:"wf-download-center-table__col-status"}),(0,r.jsx)("col",{className:"wf-download-center-table__col-progress"}),(0,r.jsx)("col",{className:"wf-download-center-table__col-count"}),(0,r.jsx)("col",{className:"wf-download-center-table__col-created"}),(0,r.jsx)("col",{className:"wf-download-center-table__col-downloaded"}),(0,r.jsx)("col",{className:"wf-download-center-table__col-action"})]})}function _(e){let{item:t}=e;const a=function(e){const t=Number(null===e||void 0===e?void 0:e.progress);return Number.isFinite(t)?Math.max(0,Math.min(100,Math.round(t))):"completed"===(null===e||void 0===e?void 0:e.status)||"partial_succeeded"===(null===e||void 0===e?void 0:e.status)||"failed"===(null===e||void 0===e?void 0:e.status)||"cancelled"===(null===e||void 0===e?void 0:e.status)||"expired"===(null===e||void 0===e?void 0:e.status)?100:"downloading"===(null===e||void 0===e?void 0:e.status)?45:0}(t),n=p(t.status);return(0,r.jsxs)("div",{className:"wf-download-center-page__progress",children:[(0,r.jsx)("div",{className:`wf-download-center-page__progress-track wf-download-center-page__progress-track--${n}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":a,"aria-label":`\u8fdb\u5ea6 ${a}%`,children:(0,r.jsx)("span",{className:`wf-download-center-page__progress-bar wf-download-center-page__progress-bar--${n}`,style:{width:`${a}%`}})}),(0,r.jsxs)("span",{className:"wf-download-center-page__progress-text",children:[a,"%"]})]})}function h(e){let{item:t,busyKey:a,onDownloadPart:s,onRetryPart:o}=e;const i=(0,d.qx)(t),c=i.map(e=>`${e.index}:${e.status}
1`).join("|"),[u,f]=(0,n.useState)(null);if((0,n.useEffect)(()=>{i.length?f(e=>{if(null!=e&&i.some(t=>t.index===e))return e;const t=i.find(e=>"failed"===e.status);if(t)return t.index;const a=i.find(e=>"succeeded"===e.status||"completed"===e.status);return a?a.index:i[0].index}):f(null)},[c]),!(0,d.$T)(t)||0===i.length)return null;const m="downloading"===(null===t||void 0===t?void 0:t.status)||"pending"===(null===t||void 0===t?void 0:t.status),p="expired"===(null===t||void 0===t?void 0:t.status),g=i.find(e=>e.index===u)||i[0],v=a===`${t.id}:${g.index}`,_="succeeded"===g.status&&!m&&!p,h="failed"===g.status&&(null===t||void 0===t?void 0:t.serverSide)&&!p&&!m,b=w(g.byteSize),x=[null!=g.itemCount&&Number.isFinite(Number(g.itemCount))?`${Number(g.itemCount)} \u5f20`:null,b||null].filter(Boolean),N=i.filter(e=>"failed"===e.status).length,j=i.filter(e=>"succeeded"===e.status||"completed"===e.status).length,k=i.filter(e=>"pending"===e.status).length,y=[`\u5171 ${i.length} \u5377`,j>0?`${j} \u53ef\u4e0b`:null,N>0?`${N} \u5931\u8d25`:null,k>0?`${k} \u91cd\u8bd5\u4e2d`:null].filter(Boolean),S=i.map(e=>{const t=w(e.byteSize),a=null!=e.itemCount&&Number.isFinite(Number(e.itemCount))?`${Number(e.itemCount)} \u5f20`:"",n=[(0,d.uu)(e.status),a,t].filter(Boolean).join(" \xb7 ");return{value:String(e.index),label:`\u7b2c ${e.index} \u5377 \xb7 ${n}`}});return(0,r.jsx)("div",{className:"wf-download-center-page__volumes","aria-label":"\u5206\u5377\u9009\u62e9",children:(0,r.jsxs)("div",{className:"wf-download-center-page__volume wf-download-center-page__volume--picker",children:[(0,r.jsxs)("div",{className:"wf-download-center-page__volume-main",children:[(0,r.jsx)("span",{className:"wf-download-center-page__volume-summary",title:y.join(" \xb7 "),children:y.join(" \xb7 ")}),(0,r.jsxs)("label",{className:"wf-download-center-page__volume-select-wrap",children:[(0,r.jsx)("span",{className:"wf-download-center-page__volume-select-label",children:"\u9009\u62e9\u5206\u5377"}),(0,r.jsx)(l.A,{className:"wf-download-center-page__volume-select",ariaLabel:"\u9009\u62e9\u5206\u5377",value:String(g.index),clearable:!1,disabled:i.length<=1,options:S,onChange:e=>{const t=Number(e);Number.isFinite(t)&&t>0&&f(t)}})]}),(0,r.jsx)("span",{className:"wf-download-center-page__volume-status wf-download-center-page__volume-status--"+(C=g.status,"succeeded"===C||"completed"===C?"success":"failed"===C?"failed":"processing"),children:(0,d.uu)(g.status)}),x.length>0?(0,r.jsx)("span",{className:"wf-download-center-page__volume-meta",children:x.join(" \xb7 ")}):null,"failed"===g.status&&g.errorMessage?(0,r.jsx)("span",{className:"wf-download-center-page__volume-error",title:g.errorMessage,children:g.errorMessage}):null]}),(0,r.jsxs)("div",{className:"wf-download-center-page__volume-actions",children:[_?(0,r.jsx)("button",{type:"button",className:"wf-download-center-page__volume-btn",disabled:v,onClick:()=>null===s||void 0===s?void 0:s(t,g.index),children:v?"\u4fdd\u5b58\u4e2d\u2026":"\u4e0b\u8f7d\u672c\u5377"}):null,h?(0,r.jsx)("button",{type:"button",className:"wf-download-center-page__volume-btn wf-download-center-page__volume-btn--retry",disabled:v||m,onClick:()=>null===o||void 0===o?void 0:o(t,g.index),children:v?"\u63d0\u4ea4\u4e2d\u2026":"\u91cd\u8bd5\u672c\u5377"}):null,"pending"===g.status?(0,r.jsx)("span",{className:"wf-download-center-page__volume-hint",children:"\u6253\u5305\u4e2d"}):null]})]})});var C}function b(){return null}function x(){const[e,t]=(0,n.useState)(()=>(0,d.Ak)()),[a,w]=(0,n.useState)(c),[b,x]=(0,n.useState)(c),[N,j]=(0,n.useState)(1),[k,y]=(0,n.useState)(20),[S,C]=(0,n.useState)(""),[$,P]=(0,n.useState)(""),A=(0,n.useRef)(null);(0,n.useEffect)(()=>(0,d.W1)(t),[]);const D=(0,n.useMemo)(()=>(e||[]).some(e=>"downloading"===(null===e||void 0===e?void 0:e.status)||"pending"===(null===e||void 0===e?void 0:e.status)),[e]);(0,n.useEffect)(()=>{D&&(0,d.t2)()},[D]),(0,n.useEffect)(()=>{let e=!1;return(async()=>{const a=await(0,d.Sv)();if(e)return;t(a||(0,d.Ak)()),(0,d.t2)();const n=await(0,d.D1)();e||t(n||(0,d.Ak)())})(),()=>{e=!0}},[]);const M=(0,n.useMemo)(()=>function(e,t){const a=String(t.fileName||"").trim().toLowerCase(),n=String(t.status||"").trim(),l=String(t.startDate||"").trim(),s=String(t.endDate||"").trim();return(e||[]).filter(e=>{const t=g(e).toLowerCase(),o=String(e.fileName||"").toLowerCase();if(a&&!o.includes(a)&&!t.includes(a))return!1;if(n&&e.status!==n)return!1;const d=e.createdAt;if((l||s)&&d){const e=String(d).slice(0,10);if(l&&e<l)return!1;if(s&&e>s)return!1}else if((l||s)&&!d)return!1;return!0})}(e,b),[e,b]),E=M.length,L=Math.max(1,Math.ceil(E/k)||1),F=Math.min(N,L),z=(0,n.useMemo)(()=>{const e=(F-1)*k;return M.slice(e,e+k)},[M,F,k]);(0,n.useEffect)(()=>{N>L&&j(L)},[N,L]);const B=(0,n.useCallback)(e=>{A.current&&(A.current.scrollLeft=e)},[]),R=(e,t)=>{w(a=>({...a,[e]:t}))},T=async(e,t)=>{if(null===e||void 0===e||!e.id)return;const a=`${e.id}:${t}`;P(a);try{const a=await(0,d.K6)(e,t);if(null===a||void 0===a||!a.ok)return void(0,i.P)((null===a||void 0===a?void 0:a.message)||"\u672c\u5377\u4fdd\u5b58\u5931\u8d25","error");(0,i.P)(`\u7b2c ${t} \u5377\u5df2\u5f00\u59cb\u4fdd\u5b58\u5230\u672c\u5730`,"success")}catch(n){(0,i.P)(String((null===n||void 0===n?void 0:n.message)||n||"\u672c\u5377\u4fdd\u5b58\u5931\u8d25"),"error")}finally{P("")}},q=async(e,a)=>{if(null===e||void 0===e||!e.id)return;const n=`${e.id}:${a}`;P(n);try{const n=await(0,d.HJ)(e,a);if(null===n||void 0===n||!n.ok)return void(0,i.P)((null===n||void 0===n?void 0:n.message)||"\u5355\u5377\u91cd\u8bd5\u5931\u8d25","error");(0,i.P)(`\u7b2c ${a} \u5377\u5df2\u91cd\u65b0\u52a0\u5165\u6253\u5305\u961f\u5217`,"success"),t((0,d.Ak)())}catch(l){(0,i.P)(String((null===l||void 0===l?void 0:l.message)||l||"\u5355\u5377\u91cd\u8bd5\u5931\u8d25"),"error")}finally{P("")}};return(0,r.jsx)("section",{className:"wf-tasks-page wf-tasks-page--embedded wf-download-center-page funding-download-center-page","data-ipe-control-skin":"soft","aria-label":"\u4e0b\u8f7d\u4e2d\u5fc3",children:(0,r.jsxs)("div",{className:"wf-tasks-page__shell wf-download-center-page__shell",children:[(0,r.jsx)("header",{className:"wf-tasks-toolbar wf-download-center-page__query","aria-label":"\u4e0b\u8f7d\u4e2d\u5fc3\u67e5\u8be2",children:(0,r.jsxs)("div",{className:"wf-tasks-toolbar__filters wf-download-center-page__query-filters",children:[(0,r.jsxs)("div",{className:"wf-tasks-toolbar__field wf-tasks-toolbar__field--clearable",children:[(0,r.jsx)("input",{id:"download-center-file-name",type:"text",className:"wf-tasks-filter wf-tasks-toolbar__control",placeholder:"\u4efb\u52a1",value:a.fileName,onChange:e=>R("fileName",e.target.value)}),""!==String(a.fileName||"").trim()?(0,r.jsx)("button",{type:"button",className:"wf-tasks-toolbar__clear",onClick:()=>R("fileName",""),"aria-label":"\u6e05\u7a7a\u4efb\u52a1",children:"\xd7"}):null]}),(0,r.jsx)("div",{className:"wf-tasks-toolbar__field",children:(0,r.jsx)(l.A,{id:"download-center-status",value:a.status,onChange:e=>
1R("status",e),options:u,ariaLabel:"\u6309\u72b6\u6001\u7b5b\u9009",clearable:!1,width:120})}),(0,r.jsx)("div",{className:"wf-tasks-toolbar__field wf-tasks-toolbar__field--date",children:(0,r.jsx)(s.A,{startDate:a.startDate||"",endDate:a.endDate||"",onChange:(e,t)=>{w(a=>({...a,startDate:e||"",endDate:t||""}))}})}),(0,r.jsx)("button",{type:"button",className:"wf-tasks-btn wf-tasks-btn--query",onClick:()=>{x({...a}),j(1),(0,d.Sv)().then(e=>{t(e||(0,d.Ak)()),(0,d.t2)()})},children:"\u67e5\u8be2"}),(0,r.jsx)("button",{type:"button",className:"wf-tasks-btn wf-tasks-btn--ghost",onClick:()=>{w(c),x(c),j(1),(0,d.Sv)().then(e=>{t(e||(0,d.Ak)()),(0,d.t2)()})},children:"\u91cd\u7f6e"})]})}),(0,r.jsxs)("div",{className:"wf-download-center-page__body",children:[(0,r.jsxs)("div",{className:"wf-tasks-table-panel wf-download-center-page__table-panel",children:[(0,r.jsx)("div",{className:"wf-tasks-table-head wf-download-center-page__table-head",ref:A,children:(0,r.jsxs)("table",{className:"wf-tasks-table wf-download-center-table wf-download-center-table--head",children:[(0,r.jsx)(v,{}),(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{scope:"col",className:"wf-download-center-table__th-task",children:"\u4efb\u52a1"}),(0,r.jsx)("th",{scope:"col",className:"wf-download-center-table__th-status",children:"\u72b6\u6001"}),(0,r.jsx)("th",{scope:"col",className:"wf-download-center-table__th-progress",children:"\u8fdb\u5ea6"}),(0,r.jsx)("th",{scope:"col",className:"wf-download-center-table__th-count",children:"\u6570\u91cf"}),(0,r.jsx)("th",{scope:"col",className:"wf-download-center-table__th-created",children:"\u521b\u5efa\u65f6\u95f4"}),(0,r.jsx)("th",{scope:"col",className:"wf-download-center-table__th-downloaded",children:"\u4fdd\u5b58\u65f6\u95f4"}),(0,r.jsx)("th",{scope:"col",className:"wf-download-center-table__th-action",children:"\u64cd\u4f5c"})]})})]})}),(0,r.jsx)("div",{className:"wf-tasks-table-wrap wf-download-center-page__table-body",role:"region","aria-live":"polite",onScroll:e=>B(e.currentTarget.scrollLeft),children:0===z.length?(0,r.jsx)("div",{className:"wf-download-center-page__empty",children:(0,r.jsx)("div",{className:"funding-empty-state",children:(0,r.jsx)("div",{className:"funding-empty-state__text",children:(0,r.jsx)("p",{className:"funding-empty-state__title",children:0===e.length?"\u6682\u65e0\u4e0b\u8f7d\u8bb0\u5f55":"\u65e0\u5339\u914d\u8bb0\u5f55"})})})}):(0,r.jsxs)("table",{className:"wf-tasks-table wf-download-center-table wf-download-center-table--body",children:[(0,r.jsx)(v,{}),(0,r.jsx)("tbody",{children:z.map(e=>{const a="completed"===e.status||"partial_succeeded"===e.status||"failed"===e.status,n="downloading"===e.status||"pending"===e.status,l=S===String(e.id);return(0,r.jsxs)("tr",{className:`wf-tasks-table__row wf-download-center-page__row wf-download-center-page__row--${e.status||"downloading"}`,children:[(0,r.jsxs)("td",{className:"wf-download-center-page__cell-task",children:[(0,r.jsx)("span",{className:"wf-download-center-page__task",title:g(e),children:g(e)}),e.error?(0,r.jsx)("span",{className:"wf-download-center-page__error",title:e.error,children:e.error}):null,(0,r.jsx)(h,{item:e,busyKey:$,onDownloadPart:T,onRetryPart:q})]}),(0,r.jsx)("td",{className:"wf-download-center-page__cell-status",children:(0,r.jsx)("span",{className:`wf-tasks-status wf-tasks-status--${p(e.status)}`,children:(s=e.status,"completed"===s?"\u5df2\u5b8c\u6210":"partial_succeeded"===s?"\u90e8\u5206\u6210\u529f":"failed"===s?"\u5931\u8d25":"expired"===s?"\u5df2\u8fc7\u671f":"cancelled"===s?"\u5df2\u7ec8\u6b62":"pending"===s?"\u6392\u961f\u4e2d":"\u6253\u5305\u4e2d")})}),(0,r.jsx)("td",{className:"wf-download-center-page__cell-progress",children:(0,r.jsx)(_,{item:e})}),(0,r.jsx)("td",{className:"wf-download-center-page__cell-count",children:null!=e.itemCount&&Number.isFinite(Number(e.itemCount))?Number(e.itemCount):"\u2014"}),(0,r.jsx)("td",{className:"wf-download-center-page__cell-created",children:f(e.createdAt)}),(0,r.jsx)("td",{className:"wf-download-center-page__cell-downloaded",children:f(e.downloadedAt)}),(0,r.jsx)("td",{className:"wf-download-center-page__cell-action",children:(0,r.jsx)("div",{className:"wf-tasks-actions wf-download-center-page__actions",children:n?(0,r.jsx)("button",{type:"button",className:"wf-tasks-actions__link wf-tasks-actions__link--danger",onClick:()=>(e=>{null===e||void 0===e||!e.id||"downloading"!==e.status&&"pending"!==e.status||(0,d.mm)(e.id)})(e),children:"\u7ec8\u6b62\u6253\u5305"}):(0,r.jsx)("button",{type:"button",className:"wf-tasks-actions__link",disabled:!a||l,onClick:()=>(async e=>{if(null!==e&&void 0!==e&&e.id&&"downloading"!==e.status&&"pending"!==e.status){C(String(e.id));try{const a=await(0,d.iD)(e);if(null===a||void 0===a||!a.ok)return void(0,i.P)((null===a||void 0===a?void 0:a.message)||"\u4fdd\u5b58\u5230\u672c\u5730\u5931\u8d25","error");
1if(null!==a&&void 0!==a&&a.retried)return(0,i.P)("\u5df2\u91cd\u65b0\u52a0\u5165\u6253\u5305\u961f\u5217\uff0c\u5b8c\u6210\u540e\u53ef\u4e0b\u8f7d","success"),void t((0,d.Ak)());(0,i.P)((null===a||void 0===a?void 0:a.volumeCount)>1?`\u5df2\u5f00\u59cb\u4fdd\u5b58\u5230\u672c\u5730\uff08${a.volumeCount} \u5377\uff09`:"\u5df2\u5f00\u59cb\u4fdd\u5b58\u5230\u672c\u5730","success")}catch(a){(0,i.P)(String((null===a||void 0===a?void 0:a.message)||a||"\u4fdd\u5b58\u5230\u672c\u5730\u5931\u8d25"),"error")}finally{C("")}}})(e),children:m(e,l)})})})]},e.id);var s})})]})})]}),(0,r.jsx)(o.Ay,{className:"wf-download-center-page__pagination",variant:"element",currentPage:F,totalPages:L,onPageChange:j,totalItems:E,pageSize:k,onPageSizeChange:e=>{y(e),j(1)},showJumpToPage:!0,ariaLabel:"\u4e0b\u8f7d\u4e2d\u5fc3\u5206\u9875"})]})]})})}},42813(e,t,a){a.d(t,{A:()=>d});var n=a(65043),l=a(96637),s=a(97950),o=a(70579);function d(e){let{busy:t=!1,disabled:a=!1,multiple:d=!0,onFiles:i,onPickImageSpace:r}=e;const c=(0,n.useRef)(null),u=(0,n.useRef)(null),f=(0,n.useRef)(null),[w,m]=(0,n.use
1State)(!1),[p,g]=(0,n.useState)({top:0,left:0,width:132}),v=(0,n.useCallback)(()=>{const e=u.current;if(!e)return;const t=e.getBoundingClientRect();g({top:t.bottom+4,left:t.left,width:Math.max(t.width,132)})},[]);(0,n.useEffect)(()=>{if(w)return v(),window.addEventListener("resize",v),window.addEventListener("scroll",v,!0),()=>{window.removeEventListener("resize",v),window.removeEventListener("scroll",v,!0)}},[w,v]),(0,n.useEffect)(()=>{if(!w)return;const e=e=>{var t,a;const n=null===(t=u.current)||void 0===t?void 0:t.contains(e.target),l=null===(a=f.current)||void 0===a?void 0:a.contains(e.target);n||l||m(!1)};return document.addEventListener("pointerdown",e),()=>document.removeEventListener("pointerdown",e)},[w]);const _=()=>m(!1),h=e=>{const t=Array.from(e||[]).filter(Boolean);t.length&&(null===i||void 0===i||i(d?t:t.slice(0,1)))};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:["ipe-receive-image-add",t?"is-busy":"",a?"is-disabled":"",w?"is-menu-open":""].filter(Boolean).join(" "),onDragEnter:e=>{e.preventDefault(),e.stopPropagation()},onDragOver:e=>{e.preventDefault(),e.stopPropagation()},onDrop:e=>{var n;e.preventDefault(),e.stopPropagation(),a||t||(_(),h(null===(n=e.dataTransfer)||void 0===n?void 0:n.files))},children:[(0,o.jsx)("input",{ref:c,type:"file",accept:"image/png,image/jpeg,image/webp,image/gif,image/bmp",multiple:d,hidden:!0,disabled:a||t,onClick:e=>e.stopPropagation(),onChange:e=>{h(e.target.files),e.target.value=""}}),(0,o.jsxs)("button",{ref:u,type:"button",className:"ipe-receive-image-add__btn",disabled:a||t,"aria-expanded":w,"aria-haspopup":"menu",onClick:e=>{e.stopPropagation(),a||t||m(e=>!e)},children:[(0,o.jsx)(l.A,{size:18,strokeWidth:2,"aria-hidden":!0}),(0,o.jsx)("span",{children:t?"\u4e0a\u4f20\u4e2d\u2026":"\u6dfb\u52a0\u56fe\u7247"})]})]}),w&&"function"===typeof r?(0,s.createPortal)((0,o.jsxs)("div",{ref:f,className:"ipe-listing-upload-source-menu",style:{top:p.top,left:p.left,minWidth:p.width},role:"menu",onClick:e=>e.stopPropagation(),children:[(0,o.jsx)("button",{type:"button",role:"menuitem",disabled:a||t,onClick:()=>{var e;_(),null===(e=c.current)||void 0===e||e.click()},children:"\u672c\u5730\u6587\u4ef6"}),(0,o.jsx)("button",{type:"button",role:"menuitem",disabled:a||t,onClick:()=>{_(),null===r||void 0===r||r()},children:"\u56fe\u7247\u7a7a\u95f4"})]}),document.body):null]})}},54545(){},30183(){}}]); 2//# sourceMappingURL=3052.399aec4f.chunk.js.map
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.