"use strict";(self.webpackChunkseahub_frontend=self.webpackChunkseahub_frontend||[]).push([[1602],{62821:function(e,n,t){var o=t(23029),a=t(92901),r=t(39874),f=t(85501),i=t(9950),c=t(1352),u=t(23489),s=t(44513),l=t(44414),d=window.app.pageOptions,m=d.err,p=d.fileName,h=d.actionURL,k=d.accessToken,b=d.accessTokenTtl,w=function(e){function n(){return(0,o.default)(this,n),(0,r.default)(this,n,arguments)}return(0,f.default)(n,e),(0,a.default)(n,[{key:"render",value:function(){return(0,l.jsx)(u.A,{content:(0,l.jsx)(x,{}),isOnlyofficeFile:!0})}}])}(i.Component),x=function(e){function n(){return(0,o.default)(this,n),(0,r.default)(this,n,arguments)}return(0,f.default)(n,e),(0,a.default)(n,[{key:"componentDidMount",value:function(){m||(document.getElementById("office-form").submit(),document.getElementById("office-frame").className="d-block w-100 h-100 border-0")}},{key:"render",value:function(){return m?(0,l.jsx)(s.A,{}):(0,l.jsxs)("div",{className:"file-view-content flex-1 p-0 border-0",children:[(0,l.jsx)("iframe",{title:p,id:"office-frame",name:"office_frame",className:"d-none",allowFullScreen:!0,allow:"clipboard-read *; clipboard-write *"}),(0,l.jsxs)("form",{id:"office-form",name:"office_form",target:"office_frame",action:h,method:"post",children:[(0,l.jsx)("input",{name:"access_token",value:k,type:"hidden"}),(0,l.jsx)("input",{name:"access_token_ttl",value:b,type:"hidden"})]})]})}}])}(i.Component);(0,c.createRoot)(document.getElementById("wrapper")).render((0,l.jsx)(w,{}))}},function(e){e.O(0,[4223],(function(){return n=62821,e(e.s=n);var n}));e.O()}]);