1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-19 01:44:13 +00:00
Files
seahub/media/assets/frontend/static/js/viewFileCollaboraOnline.30438ef7.js

1 line
1.4 KiB
JavaScript

"use strict";(self.webpackChunkseahub_frontend=self.webpackChunkseahub_frontend||[]).push([[1602],{62821:function(e,n,t){var o=t(23029),r=t(92901),i=t(39874),c=t(85501),f=t(9950),s=t(17119),a=t(27831),u=t(44513),l=t(44414),m=window.app.pageOptions,d=m.err,p=m.fileName,h=m.actionURL,k=m.accessToken,x=m.accessTokenTtl,A=function(e){function n(){return(0,o.A)(this,n),(0,i.A)(this,n,arguments)}return(0,c.A)(n,e),(0,r.A)(n,[{key:"render",value:function(){return(0,l.jsx)(a.A,{content:(0,l.jsx)(j,{}),isOnlyofficeFile:!0})}}])}(f.Component),j=function(e){function n(){return(0,o.A)(this,n),(0,i.A)(this,n,arguments)}return(0,c.A)(n,e),(0,r.A)(n,[{key:"componentDidMount",value:function(){d||(document.getElementById("office-form").submit(),document.getElementById("office-frame").className="d-block w-100 h-100 border-0")}},{key:"render",value:function(){return d?(0,l.jsx)(u.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}),(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:x,type:"hidden"})]})]})}}])}(f.Component);s.render((0,l.jsx)(A,{}),document.getElementById("wrapper"))}},function(e){e.O(0,[4223],(function(){return n=62821,e(e.s=n);var n}));e.O()}]);