PageSourceSearch

https://smartguys.ai/_next/static/chunks/3282.3204d54f3b07f295.js

js smartguys.ai collected 2026-10-05 15:07:19 UTC 1,587 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3282],{73282:(e,r,t)=>{t.r(r),t.d(r,{default:()=>i});var a=t(98887),n=t(49711),s=t(51435);let i=e=>{let{url:r,setError:i}=e,[c,l]=(0,n.useState)(!0),[o,d]=(0,n.useState)(!1),u=(0,n.useRef)(null);return(0,n.useEffect)(()=>{(async()=>{let e={className:"docx-preview-container",inWrapper:!0,ignoreWidth:!1,ignoreHeight:!1,ignoreFonts:!1,breakPages:!0,ignoreLastRenderedPageBreak:!0,experimental:!0,trimXmlDeclaration:!0,useBase64URL:!0,renderEndnotes:!0,renderFooters:!0,renderFootnotes:!0,renderHeaders:!0,renderChanges:!1,debug:!1};l(!0),i(null),d(!1);let a=0;for(;!u.current&&a<10;)await new Promise(e=>setTimeout(e,100)),a++;if(!u.current)throw Error("容器元素未准备就绪,无法渲染文档");let n=await fetch(r);if(!n.ok)throw Error("加载失败: ".concat(n.status," ").concat(n.statusText));let c=await n.blob(),o=await c.arrayBuffer(),f=u.current;if(!f)throw Error("容器元素不存在,无法渲染文档");try{await (0,s.m$)(o,f,f,e),l(!1)}catch(r){try{let r=await t.e(8749).then(t.bind(t,8749));await r.renderAsync(o,f,f,e)}catch(e){i((null==e?void 0:e.message)||"无法加载文档"),d(!0)}finally{l(!1)}}})()},[r,i]),(0,a.jsx)("div",{className:"docx-preview-container",children:(0,a.jsxs)("div",{className:"flex flex-col justify-center items-center",children:[o&&(0,a.jsx)("div",{className:"flex items-center justify-center h-full min-h-[400px] text-red-500",children:"文档加载失败"}),(0,a.jsx)("div",{ref:u,className:"docx-preview-wrapper ".concat(c?"loading":o?"error":"")})]})})}}}]);

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.