(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{371:function(e,o,t){"use strict";t.r(o),t.d(o,"handleScroll",(function(){return d}));var i=t(41),l=t.n(i),n=t(3),a=t(9),c=t(14),r=t(5),s=t(28);function d(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".reader-wrap",o=Object(r.$)(e).on("scroll",l()((function(){var o,t=Object(r.$)(e),i=Number(t.scrollTop()),l=Number(t.scrollLeft()),a=((null===n.a||void 0===n.a||null===(o=n.a.state)||void 0===o?void 0:o.viewUI)||{}).beforeScroll,c=l-(null==a?void 0:a.left),s=i-(null==a?void 0:a.top),d="";c<0?d="left":c>0?d="right":s<0?d="up":s>0&&(d="down"),n.a.commit("viewUI/setScrollObject",{direction:d,top:i,left:l}),n.a.commit("viewUI/setBeforeScroll",{top:i,left:l})}),60));return o}o.default=function(){var e,o,t,i,l,r,u,v,f,g,p,m,I;0===(null===(e=n.a.state)||void 0===e||null===(o=e.infrastructure)||void 0===o||null===(t=o.resetNewDoc)||void 0===t?void 0:t.count)&&(d(),r=(null===n.a||void 0===n.a?void 0:n.a.state)||{},u=r.vipInfo,v=r.docInfo,f=r.priceInfo,g=f.isPackage,p=f.isDiscountDoc,m=f.isPaied,!(!(I=c.b.parseUrl("qid"))||!g&&!p||m||null!=u&&u.isVip)&&(null==v||null===(i=v.downloader)||void 0===i||null===(l=i.download)||void 0===l||l.call(i,{from:"auto_qid_".concat(I)})),function(){var e,o,t=(null===(e=n.a.state)||void 0===e||null===(o=e.aggregateInfo)||void 0===o?void 0:o.aggDocId)||"",i=n.a.state.userInfo.isLogin,l=n.a.state.userInfo.uid||"",a=[t,"selectedList_".concat(l)].join("_"),c=Object(s.c)(a);if(i){var r=[t,"selectedList_"].join("_"),d=Object(s.c)(r);d?(n.a.commit("aggregateInfo/setSelectDocList",d.split(",")),Object(s.e)(a,d),Object(s.d)(r)):c?n.a.commit("aggregateInfo/setSelectDocList",c.split(",")):n.a.commit("aggregateInfo/setSelectDocList",[])}else c?n.a.commit("aggregateInfo/setSelectDocList",c.split(",")):n.a.commit("aggregateInfo/setSelectDocList",[])}()),function(){var e=((null===n.a||void 0===n.a?void 0:n.a.state)||{}).docInfo;a.wkAxios.get("/ndocview/incrview",{params:{docId:null==e?void 0:e.docId,clientType:1}})}()}}}]);