(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[331],{42457:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/manual",function(){return t(94554)}])},94554:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSG:function(){return p},default:function(){return v}});var a=t(85893),s=t(67363),i=t(1965),c=t.n(i),l=t(88348),o=t.n(l),d=t(99299),r=t(35546),u=t(80184),_=t(67294);t(43159),t(16196);var h=t(25675),f=t.n(h);let w="/WeShop AI商拍 01课-概述.pdf",m=()=>{let[e,n]=(0,_.useState)(0),[s,i]=(0,_.useState)(1),[c,l]=(0,_.useState)({}),[h,m]=(0,_.useState)(!1),[g,p]=(0,_.useState)(608),[v,x]=(0,_.useState)(1080),N=1080/608,j=(0,_.useRef)(),[y,k]=(0,_.useState)(!1);function S(){s>1&&i(s-1)}function b(){s<e&&i(s+1)}return(0,_.useEffect)(()=>{d.GlobalWorkerOptions.workerSrc=new t.U(t(61166)).toString(),l({cMapUrl:"cmaps/",standardFontDataUrl:"standard_fonts/",cMapPacked:!0})},[]),(0,_.useEffect)(()=>{if(!e)return;let n=e=>{37===e.keyCode?S():39===e.keyCode?b():27===e.keyCode&&(m(!1),p(608),x(1080))};return document.addEventListener("keydown",n),()=>{document.removeEventListener("keydown",n)}},[s,e]),(0,a.jsxs)("div",{className:"".concat(o().pdfWrap),children:[(0,a.jsx)("p",{className:"ag36 ".concat(o().title),children:"WeShopAl商拍课程手册"}),(0,a.jsxs)("div",{className:"".concat(o().content," ").concat(h?o().fullscreen:""),children:[(0,a.jsx)("div",{className:o().pdfview,children:(0,a.jsx)("div",{className:"".concat(o().container," ").concat(y?o().baseline:""," "),children:(0,a.jsx)(r.Z,{file:w,onLoadSuccess:function(e){let{numPages:t}=e;n(t)},options:c,loading:"加载中...",children:(0,a.jsx)(u.Z,{width:v,height:g,loading:"",pageNumber:s,canvasRef:j})})})}),e?(0,a.jsxs)("div",{className:"ag16 ".concat(o().tool),children:[(0,a.jsxs)("div",{className:o().pageNum,children:[(0,a.jsx)("div",{className:o().changeTab,onClick:S,children:(0,a.jsx)(f(),{src:"/arrow.svg",alt:"change page",width:24,height:24})}),(0,a.jsx)("div",{className:o().num,children:s}),(0,a.jsx)("div",{className:"".concat(o().changeTab," ").concat(o().right),onClick:b,children:(0,a.jsx)(f(),{src:"/arrow.svg",alt:"change page",width:24,height:24})})]}),h?null:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("a",{className:o().download,href:w,download:!0,children:[(0,a.jsx)(f(),{src:"/pdf-download.svg",alt:"pdf download",width:24,height:24,className:o().icon}),"下载PDF"]}),(0,a.jsxs)("div",{className:o().download,onClick:()=>{!function(){m(!h);let e=window.innerWidth/window.innerHeight;if(e>N){p(window.innerHeight-48);let e=(window.innerHeight-48)*N;x(e),k(!0)}else{x(window.innerWidth);let e=window.innerWidth/N;p(e),k(!1)}}()},children:[(0,a.jsx)(f(),{src:"/maximize.svg",alt:"maximize",width:24,height:24,className:o().icon}),"全屏"]})]})]}):null]})]})},g=()=>(0,a.jsx)(s.Z,{children:(0,a.jsx)("div",{className:c().manual,children:(0,a.jsx)(m,{})})});var p=!0,v=g},88348:function(e){e.exports={pdfWrap:"style_pdfWrap__Sy11_",title:"style_title__MM8Bl",pdfview:"style_pdfview__Qj385",container:"style_container__xvHbZ",baseline:"style_baseline__xvLKo",tool:"style_tool__yWiqi",pageNum:"style_pageNum__RrhYH",num:"style_num__Nddt3",changeTab:"style_changeTab__ycA3b",download:"style_download__2UcJ2",icon:"style_icon__pdYvj",right:"style_right__koq3A",fullscreen:"style_fullscreen__6L9lD"}},1965:function(e){e.exports={manual:"Manual_manual__Xiyme"}},93414:function(){},70172:function(){},2001:function(){},33779:function(){},82258:function(){}},function(e){e.O(0,[577,825,791,363,774,888,179],function(){return e(e.s=42457)}),_N_E=e.O()}]);