1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-D8F8nRbJ.js","assets/index-D3vn9Q0K.js","assets/query-vuJkI9Vw.js","assets/router-BbxLWYoF.js","assets/index-T-mKmUGJ.css","assets/deck-size-Bs17Hq7P.js","assets/jszip.min-BBMLzRt1.js","assets/_commonjs-dynamic-modules-TDtrdbi3.js","assets/size-ceilings-HrUrinWm.js"])))=>i.map(i=>d[i]); 2import{A as l,_ as r,e as m,aA as f,aG as y,aH as _,bc as D,bd as w,y as T,$ as u,be as k}from"./index-D3vn9Q0K.js";import{r as d,a as b}from"./query-vuJkI9Vw.js";async function v(n){if(!l)return!1;const{open:t}=await r(async()=>{const{open:e}=await import("./index-D8F8nRbJ.js");return{open:e}},__vite__mapDeps([0,1,2,3,4]));return await t(n),!0}function A(){const{t:n}=m(),t=d.useRef(n);return t.current=n,d.useCallback(async e=>{const{name:c,path:i}=e.info,a=`document-open:${i??e.info.fileId??c}`;try{const o=await f().open(e);await y().open(_(o.source.info)),e.info.format==="pptx"&&E(o)}catch(o){if(o instanceof D){w({kind:"document.refused",format:T(c)??"unknown",verdict:o.verdict.kind});const{title:s,description:p}=I(o.verdict,c,t.current);u({title:s,description:p,deduplicationKey:a,...i?{action:b.jsx(k,{altText:t.current("document.open.openInSystemApp","ç¨ç³»ç»åºç¨æå¼"),onClick:()=>void v(i),children:t.current("document.open.openInSystemApp","ç¨ç³»ç»åºç¨æå¼")})}:{}});return}console.error("[document] Could not open",c,o),u({title:t.current("document.open.failedTitle","è¿ä»½ææ¡£æ²¡è½æå¼"),description:t.current("document.open.failedDescription",{defaultValue:"{{name}} 没æå忥ãç¨ååè¯ï¼æè å ä¸è½½å®ã",name:c}
2),deduplicationKey:a})}},[])}async function E(n){const{deckLooksSlow:t}=await r(async()=>{const{deckLooksSlow:a}=await import("./deck-size-Bs17Hq7P.js");return{deckLooksSlow:a}},__vite__mapDeps([5,6,2,7,8])),{default:e}=await r(async()=>{const{default:a}=await import("./index-D3vn9Q0K.js").then(o=>o.du);return{default:a}},__vite__mapDeps([1,2,3,4])),c=n.openedBytes(),i=n.source;!c||!await t(c.bytes)||u({title:e.t("document.open.largeDeckTitle","è¿ä»½æ¼ç¤ºæç¨¿æ¯è¾å¤§"),description:e.t("document.open.largeDeckDescription",{defaultValue:"{{name}} 页æ°è¾å¤ï¼æå¼éè¦ä¸äºæ¶é´ï¼è¯·ç¨åã",name:i.info.name}),deduplicationKey:`document-large-deck:${i.info.path??i.info.fileId??i.info.name}`})}function I(n,t,e){switch(n.kind){case"legacy-binary":return{title:e("document.open.legacyTitle","è¿æ¯æ§çæ ¼å¼"),description:e("document.open.legacyDescription",{defaultValue:"{{name}} æ¯ Office 97-2003 æ ¼å¼ï¼.doc / .xls / .pptï¼ãç¨ Office å¦åä¸ºæ°æ ¼å¼åå¯ä»¥å¨è¿éç¼è¾ã",name:t})};case"encrypted":return{title:e("document.open.encryptedTitle","è¿ä»½ææ¡£æå¯ç "),description:e("document.open.encryptedDescription",{defaultValue:"{{name}} æ¯å å¯çãå¨ Office é廿å¯ç åå¯ä»¥å¨è¿éç¼è¾ã",name:t})};case"not-a-document":return{title:e("document.open.corruptTitle","è¿ä¸ªæä»¶è¯»ä¸åºæ¥"),description:e("document.open.corruptDescription",{defaultValue:"{{name}} çå
容åå®çæ©å±åä¸ä¸è´ãå¯è½æ²¡ä¸è½½å®ï¼æè
æ¬æ¥æ¯å«çæ ¼å¼ã",name:t})};case"unsupported-name":return{title:e("document.open.unsupportedTitle","è¿ä¸ªæ ¼å¼æä¸æ¯æ"),description:e("document.open.unsupportedDescription",{defaultValue:"Tego ç®åè½ç¼è¾ WordãExcelãPowerPoint å PDFã",name:t})};case"macro-enabled":return{title:e("document.open.macroTitle","è¿ä»½ææ¡£å¸¦å®"),description:e("document.open.macroDescription",{defaultValue:"{{name}} å
å«å®ï¼.docm / .xlsm / .pptmï¼ãTego ä¸ä¼è¿è¡å®ï¼ä¸ºé¿å
丢失å
¶ä¸çèªå¨åï¼è¯·å¨ Office éæå¼ã",name:t})}}}export{A 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.