
管理员
站长
- UID
- 1
- 积分
- 224402
- 余额
- 13 R
- Moe币
- 84883
- 在线时间
- 279 小时
- 注册时间
- 2025-12-28
- 最后登录
- 2026-11-13
|
|
(window.webpackJsonp=window.webpackJsonp||[]).push([["4387"],{"024a":function(e,t,n){e.exports=function(e,t){Promise.resolve().then(n.bind(null,"2c4e")).then((function(t){e&&e(t)})).catch((function(e){/loading.* chunk/i.test(e.message)&&window.badJsFunc(!0,e),console.error(e),t&&t(e)}))}},"04db":function(e,t,n){"use strict";var r,o,i=n("63a3"),s=n("4a1f");!function(e){e.TIMEOUT="timeout",e.STORAGE_FULL="storageFull",e.OTHER_TAB_EDITING="otherTabEditing"}(o||(o={}));var a=((r={})[o.TIMEOUT]=_i18n("", "离线时间过长,请联网后再编辑", "7m3hbl"),r[o.STORAGE_FULL]=_i18n("", "离线编辑内容已达上限,请联网后继续编辑", "2ymias"),r[o.OTHER_TAB_EDITING]=_i18n("", "当前为离线模式,不支持多窗口同时编辑同一文档,请在原窗口继续编辑", "cnc5zv"),r),c=function(){function e(){var e=this;this.isConnected=!0,this.isDocOffline=!1,this.showToastCount=0,this.showForbidEditToast=function(t){var n=a[t];window.Toast.warn(n,null,0),e.showToastCount=1,window.collection("offlineinteraction",{event:"offline_edit_forbid_toast_show",reason:t})},this.showFirstTimeEditToast=function(){var t,n=null===(t=window.RPCClient)||void 0===t?void 0:t.getEnableShortOfflineEdit;n&&n()&&!e.showToastCount&&(s.isMobile?window.Toast.info(_i18n("", "当前处于离线状态,联网后将自动同步编辑内容", "1o683g"),null,0,void 0,{buttonText:_i18n("", "关闭", "1nyt7t"),onButtonClick:window.Toast.close}):window.Toast.info(_i18n("", "当前处于离线状态,联网后将自动同步编辑内容", "1o683g"),null,0),e.showToastCount=1,window.collection("offlineinteraction",{event:"offline_edit_first_time_toast_show"}))},this.showOfflineEditToast=Object(i.a)((function(){var t,n,r,o,i=null===(t=window.RPCClient)||void 0===t?void 0:t.getEnableShortOfflineEdit;if(!i||!i()){if(s.isMobile?!e.isOfflineTipsDisabledV2()&&!e.showToastCount&&!e.isConnected:!e.isOfflineTipsDisabledV2()&&!e.showToastCount&&e.isDocOffline){var a="read"===(null===(o=null===(r=null===(n=window.__WPSENV__)||void 0===n?void 0:n.file_info)||void 0===r?void 0:r.user)||void 0===o?void 0:o.permission)?_i18n("", "无法连接服务器,请检查网络", "7evjwq"):_i18n("", "无法连接服务器,为避免内容丢失,请先检查网络", "f1zdjm");window.Toast.info(a,null,0),e.showToastCount=1}}}),100)}return e.prototype.isOfflineTipsDisabledV2=function(){return window.__CONFIG__.disabledNewOfflineTips[window.officeType]},e.prototype.isOfflineTipsDisabled=function(){return window.__CONFIG__.disabledOfflineTips[window.officeType]},e.prototype.resetState=function(){this.isConnected=!0,this.isDocOffline=!1,this.showToastCount=0},e.prototype.docOffline=function(){this.isDocOffline=!0},e.prototype.networkConnect=function(){this.hideToast(),this.resetState()},e.prototype.networkDisconnect=function(){this.isConnected=!1},e.prototype.hideToast=function(){this.showToastCount>0&&window.Toast.close()},e.prototype.bindTryEditEvent=function(e){var t,n;null===(t=null==e?void 0:e.addEventListener)||void 0===t||t.call(e,"mousedown",this.showOfflineEditToast),null===(n=null==e?void 0:e.addEventListener)||void 0===n||n.call(e,"touchstart",this.showOfflineEditToast)},e.prototype.unbindTryEditEvent=function(e){var t,n;null===(t=null==e?void 0:e.removeEventListener)||void 0===t||t.call(e,"mousedown",this.showOfflineEditToast),null===(n=null==e?void 0:e.removeEventListener)||void 0===n||n.call(e,"touchstart",this.showOfflineEditToast)},e}();t.a=new c},"09ff":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("20d0"),o=n.n(r);function i(e){window.__INJECT__&&window.__INJECT__.isSupportNarbarCombine&&window.__CONFIG__.isEnablePadWpsNavbarCombine?o()((function(t){var n=t.default;n&&(n.showNavBar(!0),e())})):e()}},"0a1a":function(e,t,n){"use strict";n.r(t),n.d(t,"initEnv",(function(){return We})),n.d(t,"initClient",(function(){return Fe})),n.d(t,"getClient",(function(){return Pe})),n.d(t,"events",(function(){return Le})),n.d(t,"waitClientReady",(function(){return je}));var r=n("a07e"),o=n.n(r),i=n("10b1"),s=n.n(i),a=n("7eda"),c=n.n(a),l=n("5689"),u=n.n(l),d=n("6b8d"),f=n.n(d),h=n("6633"),p=n.n(h),_=n("986d"),w=n("5dc3"),g=n("c27d"),v=n("ef61"),b=n.n(v),m=n("d2e5"),y=n.n(m),O=n("20f5"),S=n.n(O),E=n("aeb9"),k=n("85f8"),C=n("ea8c"),N=n("1ace"),I=n("6386"),T=n("c258"),A=n("feb7"),R=n("4a1f"),F=n("024a"),P=n.n(F),j=n("70cb"),M=n("669b"),D=n("86c8"),W=n("cfa0"),L=n.n(W),V=n("154e"),x=new(function(){function e(){this.socket=null,this.collectedSocketEvents=[]}return e.prototype.precreateWebSocket=function(e,t){return this.createNewWebsocket(e,t),this.collectEvent(),this.socket},e.prototype.createWebSocket=function(e,t){var n=this;return this.socket?this.socket.readyState===WebSocket.CLOSING||this.socket.readyState===WebSocket.CLOSED?this.createNewWebsocket(e,t):this.socket.readyState===WebSocket.CONNECTING?this.socket:this.socket.readyState===WebSocket.OPEN?(this.cancelProxyEvents(),setTimeout((function(){n.dispatchCollectedEvent(),n.socket=null})),this.socket):(console.error("[websocketAgent] 创建websocket异常,请检查WebSocketAgent.createWebSocket方法"),this.createNewWebsocket(e,t)):this.createNewWebsocket(e,t)},e.prototype.createNewWebsocket=function(e,t){return this.socket=new WebSocket(e,t),this.collectedSocketEvents=[],this.socket},e.prototype.getScoketEventHandler=function(e){var t=this;return function(n){var r={eventName:e,eventParams:n};t.collectedSocketEvents.push(r)}},e.prototype.collectEvent=function(){this.collectedSocketEvents=[],this.socket.onopen=this.getScoketEventHandler("open"),this.socket.onclose=this.getScoketEventHandler("close"),this.socket.onmessage=this.getScoketEventHandler("message"),this.socket.onerror=this.getScoketEventHandler("error")},e.prototype.cancelProxyEvents=function(){this.socket.onopen=null,this.socket.onclose=null,this.socket.onmessage=null,this.socket.onerror=null},e.prototype.dispatchCollectedEvent=function(){var e=this;this.collectedSocketEvents.forEach((function(t){var n,r,o=t.eventName,i=t.eventParams,s="on".concat(o);null===(r=(n=e.socket)[s])||void 0===r||r.call(n,i)})),this.collectedSocketEvents=[]},e}()),U=n("09ff"),B=n("fbeb"),H=n("9ba9"),G=n("04db"),q=n("3bad"),K=n.n(q),J=n("d9ed"),Y=n.n(J),X=n("5a73"),Q=n.n(X),z=n("0613"),Z=n("5135"),$=n("0ae2"),ee=n("1d4c"),te=n("182d"),ne=n("fa54"),re=n("3bd3"),oe=n("b35e"),ie=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window;return n.addEventListener(e,t,{once:!0})},se=null,ae=null,ce="prefetch_fallback",le=function(e){g.d("POST","/api/v3/office/csrf_token").then((function(t){console.log("csrf token refresh: ",t.body.token),C.c(C.b.CSRF_TOKEN,t.body.token),e&&e()})).catch((function(t){console.log("csrf token refresh failed: ",t),e&&e(t)}))};g.e(g.b,(function(e){var t=e.options;if(Object(w.a)(t.url)){var n=window.location.search,r=C.a(C.b.CHKCODE);if(r&&-1===n.indexOf("chkcode")&&(n+=n?"&":"?",n+="chkcode="+r),Object(I.b)()){var o=window.__WPSENV__.file_info.file,i=void 0;i="_w_pub_creator="+o._w_pub_creator+"&_w_pub_id="+o._w_pub_id+"&_w_pub_origin_id="+o._w_pub_origin_id,n&&(i+="&"+n.substr(1)),t.headers["x-user-query"]=i}else if(n){var s=t.headers&&t.headers["x-user-query"],a=n.slice(1);t.headers["x-user-query"]=s?s+"&"+a:a}var c=window.__WPSENV__.shared_view_info;if(c&&c.link_id){var l=c.link_id,u=c.app_id,d=c.duplicate_suffix,f="share_id="+l;u&&(f+="&app_id="+u),d&&(f+="&duplicate_suffix="+d);var h=t.headers["x-user-query"],p=h?h+"&"+f:f;t.headers["x-user-query"]=p}var _=C.a(C.b.CSRF_TOKEN);_&&(t.headers["x-csrf-rand"]=_);var g=C.a(C.b.USER_TOKEN).token;if(g&&(t.headers["x-user-token"]=g),window.__WPSENV__.app_id&&(t.headers["x-app-id"]=window.__WPSENV__.app_id),window.__WPSENV__.app_signature&&(t.headers["x-app-signature"]=window.__WPSENV__.app_signature),window.__WPSENV__.trace_session_id&&(t.headers["x-session-id"]=window.__WPSENV__.trace_session_id),window.__WPSENV__.request_header_inject&&!window.__CONFIG__.isRewriteXHR)for(var v in window.__WPSENV__.request_header_inject)t.headers[v]=window.__WPSENV__.request_header_inject[v]}})),window.__WPSENV__.csrf_token&&(console.log("csrf token enabled!"),C.c(C.b.CSRF_TOKEN,window.__WPSENV__.csrf_token),setInterval(le,6e5));var ue,de=void 0,fe=(ue={},location.search.substr(1).split("&").forEach((function(e){if(e){var t=e.split("="),n=!0;2===t.length&&("true"===(n=t[1]).toLowerCase()?n=!0:"false"===n.toLowerCase()?n=!1:"0"===n?n=0:"1"===n&&(n=1)),ue[t[0]]=n}})),ue),he=function(){var e=/https?:\/\/[^\/]+\/([^\/\?]*)/.exec(document.referrer);return e?""===e[1]?"index":e[1]:""},pe=function(){var e=fe.f?fe.f:"",t=/^(\d+)/.exec(e);return t?t[1]:""};function _e(e,t){var n="",r="",o="no_show";window.__WPSENV__.file_info&&window.__WPSENV__.file_info.file&&(n=window.__WPSENV__.file_info.file.id,r=window.__WPSENV__.file_info.file.type,window.__WPSENV__.file_info.file.collaboration_switch_status&&(o="close"===window.__WPSENV__.file_info.file.collaboration_switch_status?"off":"on"));var i={success:e,reason:t,cost:N.l()-de,fileid:n,filetype:r,app:Te,busstype:Object(A.getQuery)("busstype")+"",referer:document.referrer,cooperate:o,ext:window.fileInfo&&window.fileInfo.ext||"null"};window.collectionOnce("openfile",i),window.sendOnceToService&&window.sendOnceToService("openfile",i);var s=window.__CONFIG__.needReportSessionError;!e&&window.collectionKmon&&s&&window.collectionKmon({type:"session_error",value:i})}window.__WPSENV__.file_info?window.collectionOnce("pageview",{my_permissions:window.__WPSENV__.file_info.user.permission,file_id:window.__WPSENV__.file_info.file.unique_id,sh |
|