UNPKG

@xysfe/actui

Version:

A fantastic mobile ui lib implement by Vue

1 lines 46.5 kB
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("@xysfe/actui/es/BScroll/index.js"),require("@xysfe/actui/es/assets/utils/BScroll/constants.js"),require("@xysfe/actui/es/assets/utils/post.js"),require("@xysfe/actui/es/assets/utils/dom.js"),require("@xysfe/actui/es/Pdfjs/index.js")):"function"==typeof define&&define.amd?define(["@xysfe/actui/es/BScroll/index.js","@xysfe/actui/es/assets/utils/BScroll/constants.js","@xysfe/actui/es/assets/utils/post.js","@xysfe/actui/es/assets/utils/dom.js","@xysfe/actui/es/Pdfjs/index.js"],e):"object"==typeof exports?exports["assets/common/scrollZoom/index.js"]=e(require("@xysfe/actui/es/BScroll/index.js"),require("@xysfe/actui/es/assets/utils/BScroll/constants.js"),require("@xysfe/actui/es/assets/utils/post.js"),require("@xysfe/actui/es/assets/utils/dom.js"),require("@xysfe/actui/es/Pdfjs/index.js")):t["assets/common/scrollZoom/index.js"]=e(t["@xysfe/actui/es/BScroll/index.js"],t["@xysfe/actui/es/assets/utils/BScroll/constants.js"],t["@xysfe/actui/es/assets/utils/post.js"],t["@xysfe/actui/es/assets/utils/dom.js"],t["@xysfe/actui/es/Pdfjs/index.js"])}("undefined"!=typeof self?self:this,function(t,e,r,n,i){return function(t){function e(n){if(r[n])return r[n].exports;var i=r[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var r={};return e.m=t,e.c=r,e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="../es",e(e.s=948)}({0:function(t,e){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},1:function(t,e,r){var n=r(28)("wks"),i=r(25),o=r(0).Symbol,s="function"==typeof o;(t.exports=function(t){return n[t]||(n[t]=s&&o[t]||(s?o:i)("Symbol."+t))}).store=n},105:function(t,e,r){var n=r(6),i=r(34),o=r(1)("species");t.exports=function(t,e){var r,s=n(t).constructor;return void 0===s||void 0==(r=n(s)[o])?e:i(r)}},106:function(t,e,r){var n,i,o,s=r(33),c=r(167),l=r(50),a=r(30),u=r(0),f=u.process,h=u.setImmediate,d=u.clearImmediate,p=u.MessageChannel,m=u.Dispatch,v=0,y={},b=function(){var t=+this;if(y.hasOwnProperty(t)){var e=y[t];delete y[t],e()}},g=function(t){b.call(t.data)};h&&d||(h=function(t){for(var e=[],r=1;arguments.length>r;)e.push(arguments[r++]);return y[++v]=function(){c("function"==typeof t?t:Function(t),e)},n(v),v},d=function(t){delete y[t]},"process"==r(24)(f)?n=function(t){f.nextTick(s(b,t,1))}:m&&m.now?n=function(t){m.now(s(b,t,1))}:p?(i=new p,o=i.port2,i.port1.onmessage=g,n=s(o.postMessage,o,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts?(n=function(t){u.postMessage(t+"","*")},u.addEventListener("message",g,!1)):n="onreadystatechange"in a("script")?function(t){l.appendChild(a("script")).onreadystatechange=function(){l.removeChild(this),b.call(t)}}:function(t){setTimeout(s(b,t,1),0)}),t.exports={set:h,clear:d}},107:function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},108:function(t,e,r){var n=r(6),i=r(7),o=r(83);t.exports=function(t,e){if(n(t),i(e)&&e.constructor===t)return e;var r=o.f(t);return(0,r.resolve)(e),r.promise}},11:function(t,e,r){var n=r(45),i=r(19);t.exports=function(t){return n(i(t))}},120:function(t,e,r){"use strict";e.a={props:{y:{type:Number,default:0}},data:function(){return{width:50,height:80}},computed:{distance:function(){return Math.max(0,Math.min(this.y*this.ratio,this.maxDistance))},style:function(){return"width:"+this.width/this.ratio+"px;height:"+this.height/this.ratio+"px"}},created:function(){this.ratio=window.devicePixelRatio,this.width*=this.ratio,this.height*=this.ratio,this.initRadius=18*this.ratio,this.minHeadRadius=12*this.ratio,this.minTailRadius=5*this.ratio,this.initArrowRadius=10*this.ratio,this.minArrowRadius=6*this.ratio,this.arrowWidth=3*this.ratio,this.maxDistance=40*this.ratio,this.initCenterX=25*this.ratio,this.initCenterY=25*this.ratio,this.headCenter={x:this.initCenterX,y:this.initCenterY}},mounted:function(){this._draw()},methods:{_draw:function(){var t=this.$refs.bubble,e=t.getContext("2d");e.clearRect(0,0,t.width,t.height),this._drawBubble(e),this._drawArrow(e)},_drawBubble:function(t){t.save(),t.beginPath();var e=this.distance/this.maxDistance,r=this.initRadius-(this.initRadius-this.minHeadRadius)*e;this.headCenter.y=this.initCenterY-(this.initRadius-this.minHeadRadius)*e,t.arc(this.headCenter.x,this.headCenter.y,r,0,Math.PI,!0);var n=this.initRadius-(this.initRadius-this.minTailRadius)*e,i={x:this.headCenter.x,y:this.headCenter.y+this.distance},o={x:i.x-n,y:i.y},s={x:o.x,y:o.y-this.distance/2};t.quadraticCurveTo(s.x,s.y,o.x,o.y),t.arc(i.x,i.y,n,Math.PI,0,!0);var c={x:this.headCenter.x+r,y:this.headCenter.y},l={x:i.x+n,y:c.y+this.distance/2};t.quadraticCurveTo(l.x,l.y,c.x,c.y),t.fillStyle="rgb(170,170,170)",t.fill(),t.strokeStyle="rgb(153,153,153)",t.stroke(),t.restore()},_drawArrow:function(t){t.save(),t.beginPath();var e=this.distance/this.maxDistance,r=this.initArrowRadius-(this.initArrowRadius-this.minArrowRadius)*e;t.arc(this.headCenter.x,this.headCenter.y,r-(this.arrowWidth-e),-Math.PI/2,0,!0),t.arc(this.headCenter.x,this.headCenter.y,r,0,3*Math.PI/2,!1),t.lineTo(this.headCenter.x,this.headCenter.y-r-this.arrowWidth/2+e),t.lineTo(this.headCenter.x+2*this.arrowWidth-2*e,this.headCenter.y-r+this.arrowWidth/2),t.lineTo(this.headCenter.x,this.headCenter.y-r+3*this.arrowWidth/2-e),t.fillStyle="rgb(255,255,255)",t.fill(),t.strokeStyle="rgb(170,170,170)",t.stroke(),t.restore()}},watch:{y:function(){this._draw()}}}},15:function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},160:function(t,e,r){t.exports={default:r(161),__esModule:!0}},161:function(t,e,r){r(94),r(66),r(70),r(162),r(173),r(174),t.exports=r(2).Promise},162:function(t,e,r){"use strict";var n,i,o,s,c=r(21),l=r(0),a=r(33),u=r(78),f=r(23),h=r(7),d=r(34),p=r(163),m=r(164),v=r(105),y=r(106).set,b=r(168)(),g=r(83),x=r(107),w=r(169),T=r(108),_=l.TypeError,S=l.process,P=S&&S.versions,j=P&&P.v8||"",C=l.Promise,D="process"==u(S),L=function(){},I=i=g.f,R=!!function(){try{var t=C.resolve(1),e=(t.constructor={})[r(1)("species")]=function(t){t(L,L)};return(D||"function"==typeof PromiseRejectionEvent)&&t.then(L)instanceof e&&0!==j.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(t){}}(),O=function(t){var e;return!(!h(t)||"function"!=typeof(e=t.then))&&e},E=function(t,e){if(!t._n){t._n=!0;var r=t._c;b(function(){for(var n=t._v,i=1==t._s,o=0;r.length>o;)!function(e){var r,o,s,c=i?e.ok:e.fail,l=e.resolve,a=e.reject,u=e.domain;try{c?(i||(2==t._h&&U(t),t._h=1),!0===c?r=n:(u&&u.enter(),r=c(n),u&&(u.exit(),s=!0)),r===e.promise?a(_("Promise-chain cycle")):(o=O(r))?o.call(r,l,a):l(r)):a(n)}catch(t){u&&!s&&u.exit(),a(t)}}(r[o++]);t._c=[],t._n=!1,e&&!t._h&&M(t)})}},M=function(t){y.call(l,function(){var e,r,n,i=t._v,o=k(t);if(o&&(e=x(function(){D?S.emit("unhandledRejection",i,t):(r=l.onunhandledrejection)?r({promise:t,reason:i}):(n=l.console)&&n.error&&n.error("Unhandled promise rejection",i)}),t._h=D||k(t)?2:1),t._a=void 0,o&&e.e)throw e.v})},k=function(t){return 1!==t._h&&0===(t._a||t._c).length},U=function(t){y.call(l,function(){var e;D?S.emit("rejectionHandled",t):(e=l.onrejectionhandled)&&e({promise:t,reason:t._v})})},N=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),E(e,!0))},$=function(t){var e,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===t)throw _("Promise can't be resolved itself");(e=O(t))?b(function(){var n={_w:r,_d:!1};try{e.call(t,a($,n,1),a(N,n,1))}catch(t){N.call(n,t)}}):(r._v=t,r._s=1,E(r,!1))}catch(t){N.call({_w:r,_d:!1},t)}}};R||(C=function(t){p(this,C,"Promise","_h"),d(t),n.call(this);try{t(a($,this,1),a(N,this,1))}catch(t){N.call(this,t)}},n=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},n.prototype=r(170)(C.prototype,{then:function(t,e){var r=I(v(this,C));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=D?S.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&E(this,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new n;this.promise=t,this.resolve=a($,t,1),this.reject=a(N,t,1)},g.f=I=function(t){return t===C||t===s?new o(t):i(t)}),f(f.G+f.W+f.F*!R,{Promise:C}),r(32)(C,"Promise"),r(171)("Promise"),s=r(2).Promise,f(f.S+f.F*!R,"Promise",{reject:function(t){var e=I(this);return(0,e.reject)(t),e.promise}}),f(f.S+f.F*(c||!R),"Promise",{resolve:function(t){return T(c&&this===s?C:this,t)}}),f(f.S+f.F*!(R&&r(172)(function(t){C.all(t).catch(L)})),"Promise",{all:function(t){var e=this,r=I(e),n=r.resolve,i=r.reject,o=x(function(){var r=[],o=0,s=1;m(t,!1,function(t){var c=o++,l=!1;r.push(void 0),s++,e.resolve(t).then(function(t){l||(l=!0,r[c]=t,--s||n(r))},i)}),--s||n(r)});return o.e&&i(o.v),r.promise},race:function(t){var e=this,r=I(e),n=r.reject,i=x(function(){m(t,!1,function(t){e.resolve(t).then(r.resolve,n)})});return i.e&&n(i.v),r.promise}})},163:function(t,e){t.exports=function(t,e,r,n){if(!(t instanceof e)||void 0!==n&&n in t)throw TypeError(r+": incorrect invocation!");return t}},164:function(t,e,r){var n=r(33),i=r(165),o=r(166),s=r(6),c=r(46),l=r(95),a={},u={},e=t.exports=function(t,e,r,f,h){var d,p,m,v,y=h?function(){return t}:l(t),b=n(r,f,e?2:1),g=0;if("function"!=typeof y)throw TypeError(t+" is not iterable!");if(o(y)){for(d=c(t.length);d>g;g++)if((v=e?b(s(p=t[g])[0],p[1]):b(t[g]))===a||v===u)return v}else for(m=y.call(t);!(p=m.next()).done;)if((v=i(m,b,p.value,e))===a||v===u)return v};e.BREAK=a,e.RETURN=u},165:function(t,e,r){var n=r(6);t.exports=function(t,e,r,i){try{return i?e(n(r)[0],r[1]):e(r)}catch(e){var o=t.return;throw void 0!==o&&n(o.call(t)),e}}},166:function(t,e,r){var n=r(18),i=r(1)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(n.Array===t||o[i]===t)}},167:function(t,e){t.exports=function(t,e,r){var n=void 0===r;switch(e.length){case 0:return n?t():t.call(r);case 1:return n?t(e[0]):t.call(r,e[0]);case 2:return n?t(e[0],e[1]):t.call(r,e[0],e[1]);case 3:return n?t(e[0],e[1],e[2]):t.call(r,e[0],e[1],e[2]);case 4:return n?t(e[0],e[1],e[2],e[3]):t.call(r,e[0],e[1],e[2],e[3])}return t.apply(r,e)}},168:function(t,e,r){var n=r(0),i=r(106).set,o=n.MutationObserver||n.WebKitMutationObserver,s=n.process,c=n.Promise,l="process"==r(24)(s);t.exports=function(){var t,e,r,a=function(){var n,i;for(l&&(n=s.domain)&&n.exit();t;){i=t.fn,t=t.next;try{i()}catch(n){throw t?r():e=void 0,n}}e=void 0,n&&n.enter()};if(l)r=function(){s.nextTick(a)};else if(!o||n.navigator&&n.navigator.standalone)if(c&&c.resolve){var u=c.resolve(void 0);r=function(){u.then(a)}}else r=function(){i.call(n,a)};else{var f=!0,h=document.createTextNode("");new o(a).observe(h,{characterData:!0}),r=function(){h.data=f=!f}}return function(n){var i={fn:n,next:void 0};e&&(e.next=i),t||(t=i,r()),e=i}}},169:function(t,e,r){var n=r(0),i=n.navigator;t.exports=i&&i.userAgent||""},170:function(t,e,r){var n=r(4);t.exports=function(t,e,r){for(var i in e)r&&t[i]?t[i]=e[i]:n(t,i,e[i]);return t}},171:function(t,e,r){"use strict";var n=r(0),i=r(2),o=r(9),s=r(3),c=r(1)("species");t.exports=function(t){var e="function"==typeof i[t]?i[t]:n[t];s&&e&&!e[c]&&o.f(e,c,{configurable:!0,get:function(){return this}})}},172:function(t,e,r){var n=r(1)("iterator"),i=!1;try{var o=[7][n]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var r=!1;try{var o=[7],s=o[n]();s.next=function(){return{done:r=!0}},o[n]=function(){return s},t(o)}catch(t){}return r}},173:function(t,e,r){"use strict";var n=r(23),i=r(2),o=r(0),s=r(105),c=r(108);n(n.P+n.R,"Promise",{finally:function(t){var e=s(this,i.Promise||o.Promise),r="function"==typeof t;return this.then(r?function(r){return c(e,t()).then(function(){return r})}:t,r?function(r){return c(e,t()).then(function(){throw r})}:t)}})},174:function(t,e,r){"use strict";var n=r(23),i=r(83),o=r(107);n(n.S,"Promise",{try:function(t){var e=i.f(this),r=o(t);return(r.e?e.reject:e.resolve)(r.v),e.promise}})},18:function(t,e){t.exports={}},19:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},191:function(e,r){e.exports=t},192:function(t,r){t.exports=e},193:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(120),i=r(194),o=r(8),s=Object(o.a)(n.a,i.a,i.b,!1,null,null,null);s.options.__file="src\\components\\common\\scrollZoom\\components\\bubble.vue",e.default=s.exports},194:function(t,e,r){"use strict";r.d(e,"a",function(){return n}),r.d(e,"b",function(){return i});var n=function(){var t=this,e=t.$createElement;return(t._self._c||e)("canvas",{ref:"bubble",style:t.style,attrs:{width:t.width,height:t.height}})},i=[];n._withStripped=!0},195:function(t,e,r){"use strict";var n=r(160),i=r.n(n),o=r(191),s=r.n(o),c=r(559),l=(r.n(c),r(193)),a=r(192);r.n(a);e.a={name:"scroll",props:{probeType:{type:Number,default:2},click:{type:Boolean,default:!0},listenScrollInit:{type:Boolean,default:!1},listenScroll:{type:Boolean,default:!1},listenBeforeScroll:{type:Boolean,default:!1},listenScrollEnd:{type:Boolean,default:!1},listenZoomEnd:{type:Boolean,default:!1},observeDOM:{type:Boolean,default:!0},direction:{type:String,default:"vertical"},scrollbar:{type:null,default:!1},pullDownRefresh:{type:null,default:!1},pullUpLoad:{type:null,default:!1},startY:{type:Number,default:0},refreshDelay:{type:Number,default:20},freeScroll:{type:Boolean,default:!1},mouseWheel:{type:Boolean,default:!1},bounce:{type:[Boolean,Object],default:!0},zoom:{type:[Boolean,Object],default:!1}},data:function(){return{beforePullDown:!0,isRebounding:!1,isPullingDown:!1,isPullUpLoad:!1,pullUpDirty:!0,pullDownStyle:"",bubbleY:0,lastTouchStart:null,fingers:0,tapTarget:null,isDouble:!1,startXd:0,startYd:0,endXd:0,endYd:0}},computed:{pullUpTxt:function(){var t=this.pullUpLoad&&this.pullUpLoad.txt&&this.pullUpLoad.txt.more||"加载更多",e=this.pullUpLoad&&this.pullUpLoad.txt&&this.pullUpLoad.txt.noMore||"没有更多数据了";return this.pullUpDirty?t:e},refreshTxt:function(){return this.pullDownRefresh&&this.pullDownRefresh.txt||"刷新成功"}},created:function(){this.pullDownInitTop=-50},mounted:function(){var t=this;setTimeout(function(){t.initScroll()},20)},destroyed:function(){this.$refs.scroll&&this.$refs.scroll.destroy()},methods:{initScroll:function(){var t=this;if(this.$refs.wrapper){this.$refs.listWrapper&&(this.pullDownRefresh||this.pullUpLoad)&&(this.$refs.listWrapper.style.minHeight=Object(c.getRect)(this.$refs.wrapper).height+1+"px");var e={probeType:this.probeType,click:this.click,scrollY:this.freeScroll||"vertical"===this.direction,scrollX:this.freeScroll||"horizontal"===this.direction,scrollbar:this.scrollbar,pullDownRefresh:this.pullDownRefresh,pullUpLoad:this.pullUpLoad,startY:this.startY,freeScroll:this.freeScroll,mouseWheel:this.mouseWheel,bounce:this.bounce,zoom:this.zoom,bounceTime:300,useTransition:a.USE_TRANSITION,observeDOM:this.observeDOM};this.scroll=new s.a(this.$refs.wrapper,e),this.listenScroll&&this.scroll.on("scroll",function(e){t.$emit("scroll",e)}),this.listenScrollEnd&&this.scroll.on("scrollEnd",function(e){t.$emit("scroll-end",e)}),this.listenBeforeScroll&&(this.scroll.on("beforeScrollStart",function(){t.$emit("beforeScrollStart")}),this.scroll.on("scrollStart",function(){t.$emit("scroll-start")})),this.listenZoomEnd&&this.scroll.on("zoomEnd",function(){t.$emit("zoomEnd",t.scroll)}),this.pullDownRefresh&&this._initPullDownRefresh(),this.pullUpLoad&&this._initPullUpLoad(),this.zoom&&(this.isDouble=!0),this.listenScrollInit&&this.$emit("scrollSuc",this.scroll)}},disable:function(){this.scroll&&this.scroll.disable()},enable:function(){this.scroll&&this.scroll.enable()},refresh:function(){this.scroll&&this.scroll.refresh()},scrollTo:function(){this.scroll&&this.scroll.scrollTo.apply(this.scroll,arguments)},scrollToElement:function(){this.scroll&&this.scroll.scrollToElement.apply(this.scroll,arguments)},clickItem:function(t,e){this.$emit("click",e)},destroy:function(){this.scroll.destroy()},forceUpdate:function(t){var e=this;this.pullDownRefresh&&this.isPullingDown?(this.isPullingDown=!1,this._reboundPullDown().then(function(){e._afterPullDown()})):this.pullUpLoad&&this.isPullUpLoad?(this.isPullUpLoad=!1,this.scroll.finishPullUp(),this.pullUpDirty=t,this.refresh()):this.refresh()},handleTouchStart:function(t){this.isDouble&&(this.fingers=t.touches.length,this.tapTarget=this.getTouches(t)[0],this.startXd=this.tapTarget.x,this.startYd=this.tapTarget.y)},handleTouchMove:function(t){this.isDouble&&(this.endXd=this.getTouches(t)[0].x,this.endYd=this.getTouches(t)[0].y)},handleTouchEnd:function(t){if(this.isDouble){this.endXd=0===this.endXd?this.startXd:this.endXd,this.endYd=0===this.endYd?this.startYd:this.endYd;var e=this.endXd-this.startXd,r=this.endYd-this.startYd;Math.abs(e)<10&&Math.abs(r)<10&&this.detectDoubleTap(t),this.startXd=this.startYd=this.endXd=this.endYd=0}},cancelEvent:function(t){t.stopPropagation(),t.preventDefault()},getTouches:function(t){return Array.prototype.slice.call(t.touches).map(function(t){return{x:t.pageX,y:t.pageY}})},detectDoubleTap:function(){var t=(new Date).getTime();if(this.fingers>1&&(this.lastTouchStart=null),t-this.lastTouchStart<300){this.cancelEvent(event);var e=this.scroll.scale>1?1:2;this.scroll.zoomTo(e,this.tapTarget.x,this.tapTarget.y)}1===this.fingers&&(this.lastTouchStart=t)},_initPullDownRefresh:function(){var t=this;this.scroll.on("pullingDown",function(){t.beforePullDown=!1,t.isPullingDown=!0,t.$emit("pullingDown")}),this.scroll.on("scroll",function(e){t.pullDownRefresh&&(t.beforePullDown?(t.bubbleY=Math.max(0,e.y+t.pullDownInitTop),t.pullDownStyle="top:"+Math.min(e.y+t.pullDownInitTop,10)+"px"):t.bubbleY=0,t.isRebounding&&(t.pullDownStyle="top:"+(10-(t.pullDownRefresh.stop-e.y))+"px"))})},_initPullUpLoad:function(){var t=this;this.scroll.on("pullingUp",function(){t.isPullUpLoad=!0,t.$emit("pullingUp")})},_reboundPullDown:function(){var t=this,e=this.pullDownRefresh.stopTime,r=void 0===e?600:e;return new i.a(function(e){setTimeout(function(){t.isRebounding=!0,t.scroll.finishPullDown(),e()},r)})},_afterPullDown:function(){var t=this;setTimeout(function(){t.pullDownStyle="top:"+t.pullDownInitTop+"px",t.beforePullDown=!0,t.isRebounding=!1,t.refresh()},this.scroll.options.bounceTime)}},watch:{data:function(){var t=this;setTimeout(function(){t.forceUpdate(!0)},this.refreshDelay)}},components:{Bubble:l.default}}},2:function(t,e){var r=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=r)},20:function(t,e){var r=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:r)(t)}},21:function(t,e){t.exports=!0},22:function(t,e,r){var n=r(28)("keys"),i=r(25);t.exports=function(t){return n[t]||(n[t]=i(t))}},23:function(t,e,r){var n=r(0),i=r(2),o=r(33),s=r(4),c=r(5),l=function(t,e,r){var a,u,f,h=t&l.F,d=t&l.G,p=t&l.S,m=t&l.P,v=t&l.B,y=t&l.W,b=d?i:i[e]||(i[e]={}),g=b.prototype,x=d?n:p?n[e]:(n[e]||{}).prototype;d&&(r=e);for(a in r)(u=!h&&x&&void 0!==x[a])&&c(b,a)||(f=u?x[a]:r[a],b[a]=d&&"function"!=typeof x[a]?r[a]:v&&u?o(f,n):y&&x[a]==f?function(t){var e=function(e,r,n){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,r)}return new t(e,r,n)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(f):m&&"function"==typeof f?o(Function.call,f):f,m&&((b.virtual||(b.virtual={}))[a]=f,t&l.R&&g&&!g[a]&&s(g,a,f)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,t.exports=l},24:function(t,e){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},25:function(t,e){var r=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++r+n).toString(36))}},26:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},275:function(t,e){t.exports=r},28:function(t,e,r){var n=r(2),i=r(0),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:n.version,mode:r(21)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},29:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},3:function(t,e,r){t.exports=!r(15)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},30:function(t,e,r){var n=r(7),i=r(0).document,o=n(i)&&n(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},31:function(t,e,r){var n=r(44),i=r(29);t.exports=Object.keys||function(t){return n(t,i)}},32:function(t,e,r){var n=r(9).f,i=r(5),o=r(1)("toStringTag");t.exports=function(t,e,r){t&&!i(t=r?t:t.prototype,o)&&n(t,o,{configurable:!0,value:e})}},33:function(t,e,r){var n=r(34);t.exports=function(t,e,r){if(n(t),void 0===e)return t;switch(r){case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,i){return t.call(e,r,n,i)}}return function(){return t.apply(e,arguments)}}},34:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},35:function(t,e){function r(t,e){var r=t[1]||"",i=t[3];if(!i)return r;if(e&&"function"==typeof btoa){var o=n(i);return[r].concat(i.sources.map(function(t){return"/*# sourceURL="+i.sourceRoot+t+" */"})).concat([o]).join("\n")}return[r].join("\n")}function n(t){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+" */"}t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var n=r(e,t);return e[2]?"@media "+e[2]+"{"+n+"}":n}).join("")},e.i=function(t,r){"string"==typeof t&&(t=[[null,t,""]]);for(var n={},i=0;i<this.length;i++){var o=this[i][0];"number"==typeof o&&(n[o]=!0)}for(i=0;i<t.length;i++){var s=t[i];"number"==typeof s[0]&&n[s[0]]||(r&&!s[2]?s[2]=r:r&&(s[2]="("+s[2]+") and ("+r+")"),e.push(s))}},e}},36:function(t,e,r){"use strict";function n(t,e,r,n){m=r,y=n||{};var o=Object(a.a)(t,e);return i(o),function(e){for(var r=[],n=0;n<o.length;n++){var s=o[n],c=f[s.id];c.refs--,r.push(c)}e?(o=Object(a.a)(t,e),i(o)):o=[];for(var n=0;n<r.length;n++){var c=r[n];if(0===c.refs){for(var l=0;l<c.parts.length;l++)c.parts[l]();delete f[c.id]}}}}function i(t){for(var e=0;e<t.length;e++){var r=t[e],n=f[r.id];if(n){n.refs++;for(var i=0;i<n.parts.length;i++)n.parts[i](r.parts[i]);for(;i<r.parts.length;i++)n.parts.push(s(r.parts[i]));n.parts.length>r.parts.length&&(n.parts.length=r.parts.length)}else{for(var o=[],i=0;i<r.parts.length;i++)o.push(s(r.parts[i]));f[r.id]={id:r.id,refs:1,parts:o}}}}function o(){var t=document.createElement("style");return t.type="text/css",h.appendChild(t),t}function s(t){var e,r,n=document.querySelector("style["+b+'~="'+t.id+'"]');if(n){if(m)return v;n.parentNode.removeChild(n)}if(g){var i=p++;n=d||(d=o()),e=c.bind(null,n,i,!1),r=c.bind(null,n,i,!0)}else n=o(),e=l.bind(null,n),r=function(){n.parentNode.removeChild(n)};return e(t),function(n){if(n){if(n.css===t.css&&n.media===t.media&&n.sourceMap===t.sourceMap)return;e(t=n)}else r()}}function c(t,e,r,n){var i=r?"":n.css;if(t.styleSheet)t.styleSheet.cssText=x(e,i);else{var o=document.createTextNode(i),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(o,s[e]):t.appendChild(o)}}function l(t,e){var r=e.css,n=e.media,i=e.sourceMap;if(n&&t.setAttribute("media",n),y.ssrId&&t.setAttribute(b,e.id),i&&(r+="\n/*# sourceURL="+i.sources[0]+" */",r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),t.styleSheet)t.styleSheet.cssText=r;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(r))}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var a=r(40),u="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!u)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var f={},h=u&&(document.head||document.getElementsByTagName("head")[0]),d=null,p=0,m=!1,v=function(){},y=null,b="data-vue-ssr-id",g="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase()),x=function(){var t=[];return function(e,r){return t[e]=r,t.filter(Boolean).join("\n")}}()},37:function(t,e,r){var n=r(19);t.exports=function(t){return Object(n(t))}},38:function(t,e,r){var n=r(7);t.exports=function(t,e){if(!n(t))return t;var r,i;if(e&&"function"==typeof(r=t.toString)&&!n(i=r.call(t)))return i;if("function"==typeof(r=t.valueOf)&&!n(i=r.call(t)))return i;if(!e&&"function"==typeof(r=t.toString)&&!n(i=r.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},4:function(t,e,r){var n=r(9),i=r(26);t.exports=r(3)?function(t,e,r){return n.f(t,e,i(1,r))}:function(t,e,r){return t[e]=r,t}},40:function(t,e,r){"use strict";function n(t,e){for(var r=[],n={},i=0;i<e.length;i++){var o=e[i],s=o[0],c=o[1],l=o[2],a=o[3],u={id:t+":"+i,css:c,media:l,sourceMap:a};n[s]?n[s].parts.push(u):r.push(n[s]={id:s,parts:[u]})}return r}e.a=n},44:function(t,e,r){var n=r(5),i=r(11),o=r(52)(!1),s=r(22)("IE_PROTO");t.exports=function(t,e){var r,c=i(t),l=0,a=[];for(r in c)r!=s&&n(c,r)&&a.push(r);for(;e.length>l;)n(c,r=e[l++])&&(~o(a,r)||a.push(r));return a}},45:function(t,e,r){var n=r(24);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},46:function(t,e,r){var n=r(20),i=Math.min;t.exports=function(t){return t>0?i(n(t),9007199254740991):0}},47:function(t,e,r){t.exports=!r(3)&&!r(15)(function(){return 7!=Object.defineProperty(r(30)("div"),"a",{get:function(){return 7}}).a})},48:function(t,e,r){"use strict";var n=r(21),i=r(23),o=r(54),s=r(4),c=r(18),l=r(68),a=r(32),u=r(69),f=r(1)("iterator"),h=!([].keys&&"next"in[].keys()),d=function(){return this};t.exports=function(t,e,r,p,m,v,y){l(r,e,p);var b,g,x,w=function(t){if(!h&&t in P)return P[t];switch(t){case"keys":case"values":return function(){return new r(this,t)}}return function(){return new r(this,t)}},T=e+" Iterator",_="values"==m,S=!1,P=t.prototype,j=P[f]||P["@@iterator"]||m&&P[m],C=j||w(m),D=m?_?w("entries"):C:void 0,L="Array"==e?P.entries||j:j;if(L&&(x=u(L.call(new t)))!==Object.prototype&&x.next&&(a(x,T,!0),n||"function"==typeof x[f]||s(x,f,d)),_&&j&&"values"!==j.name&&(S=!0,C=function(){return j.call(this)}),n&&!y||!h&&!S&&P[f]||s(P,f,C),c[e]=C,c[T]=d,m)if(b={values:_?C:w("values"),keys:v?C:w("keys"),entries:D},y)for(g in b)g in P||o(P,g,b[g]);else i(i.P+i.F*(h||S),e,b);return b}},5:function(t,e){var r={}.hasOwnProperty;t.exports=function(t,e){return r.call(t,e)}},50:function(t,e,r){var n=r(0).document;t.exports=n&&n.documentElement},52:function(t,e,r){var n=r(11),i=r(46),o=r(53);t.exports=function(t){return function(e,r,s){var c,l=n(e),a=i(l.length),u=o(s,a);if(t&&r!=r){for(;a>u;)if((c=l[u++])!=c)return!0}else for(;a>u;u++)if((t||u in l)&&l[u]===r)return t||u||0;return!t&&-1}}},53:function(t,e,r){var n=r(20),i=Math.max,o=Math.min;t.exports=function(t,e){return t=n(t),t<0?i(t+e,0):o(t,e)}},54:function(t,e,r){t.exports=r(4)},55:function(t,e,r){var n=r(6),i=r(62),o=r(29),s=r(22)("IE_PROTO"),c=function(){},l=function(){var t,e=r(30)("iframe"),n=o.length;for(e.style.display="none",r(50).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),l=t.F;n--;)delete l.prototype[o[n]];return l()};t.exports=Object.create||function(t,e){var r;return null!==t?(c.prototype=n(t),r=new c,c.prototype=null,r[s]=t):r=l(),void 0===e?r:i(r,e)}},556:function(t,e,r){"use strict";function n(t){c||r(557)}Object.defineProperty(e,"__esModule",{value:!0});var i=r(195),o=r(560),s=r(8),c=!1,l=n,a=Object(s.a)(i.a,o.a,o.b,!1,l,"data-v-3d7beb70",null);a.options.__file="src\\components\\common\\scrollZoom\\components\\scroll.vue",e.default=a.exports},557:function(t,e,r){var n=r(558);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=r(36).default;i("45fa5a74",n,!1,{})},558:function(t,e,r){e=t.exports=r(35)(!1),e.push([t.i,"\n.scroll-wrapper[data-v-3d7beb70]{position:relative;height:100%;-webkit-transform:translateZ(0);transform:translateZ(0);overflow:hidden\n}\n.scroll-wrapper[data-v-3d7beb70] .bscroll-vertical-scrollbar{width:5px !important\n}\n.scroll-wrapper[data-v-3d7beb70] .bscroll-indicator{min-height:40px !important;background:rgba(0,0,0,0.2) !important\n}\n.scroll-wrapper .scroll-list[data-v-3d7beb70]{background-color:#525659\n}\n.scroll-wrapper .scroll-list>li[data-v-3d7beb70]{position:relative;background-color:#fff;margin-top:1rem\n}\n.scroll-wrapper .scroll-list>li[data-v-3d7beb70]:first-child{margin-top:0\n}\n.scroll-wrapper .scroll-list>li>img[data-v-3d7beb70]{width:100%\n}\n.scroll-wrapper .scroll-text[data-v-3d7beb70]{padding:0 1.4rem\n}\n.scroll-wrapper .scroll-content[data-v-3d7beb70]{position:relative;z-index:1;display:inline-block;width:100%\n}\n.scroll-wrapper .pulldown-wrapper[data-v-3d7beb70]{position:absolute;width:100%;left:0;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-transition:all;transition:all\n}\n.scroll-wrapper .pulldown-wrapper>.after-trigger[data-v-3d7beb70]{margin-top:10px\n}\n.scroll-wrapper .pullup-wrapper[data-v-3d7beb70]{width:100%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;padding:16px 0\n}\n.scroll-wrapper.scroll-pdf[data-v-3d7beb70]{width:200%;height:200%;-webkit-transform-origin:top left;transform-origin:top left;-webkit-transform:scale(0.5);transform:scale(0.5);padding:0\n}\n.scroll-wrapper.scroll-pdf[data-v-3d7beb70] .bscroll-vertical-scrollbar{width:10px !important\n}\n.scroll-wrapper.scroll-pdf[data-v-3d7beb70] .bscroll-indicator{min-height:80px !important;background:rgba(0,0,0,0.2) !important\n}\n",""])},559:function(t,e){t.exports=n},560:function(t,e,r){"use strict";r.d(e,"a",function(){return n}),r.d(e,"b",function(){return i});var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{ref:"wrapper",staticClass:"scroll-wrapper",on:{touchstart:t.handleTouchStart,touchmove:t.handleTouchMove,touchend:t.handleTouchEnd}},[r("div",{staticClass:"scroll-content"},[r("div",{ref:"listWrapper"},[t._t("default")],2),t._v(" "),t.$scopedSlots.pullup?t._t("pullup",null,{pullUpLoad:t.pullUpLoad,isPullUpLoad:t.isPullUpLoad}):t._e(),t._v(" "),t.pullUpLoad&&!t.$scopedSlots.pullup?r("div",{staticClass:"pullup-wrapper"},[t.isPullUpLoad?r("div",{staticClass:"after-trigger"},[r("act-loading",{directives:[{name:"show",rawName:"v-show",value:!0,expression:"true"}],attrs:{type:"cir4",color:t.brandColor,size:20}})],1):r("div",{staticClass:"before-trigger"},[r("span",[t._v(t._s(t.pullUpTxt))])])]):t._e()],2),t._v(" "),t.$scopedSlots.pulldown?t._t("pulldown",null,{pullDownRefresh:t.pullDownRefresh,pullDownStyle:t.pullDownStyle,beforePullDown:t.beforePullDown,isPullingDown:t.isPullingDown,bubbleY:t.bubbleY}):t._e(),t._v(" "),t.pullDownRefresh&&!t.$scopedSlots.pulldown?r("div",{ref:"pulldown",staticClass:"pulldown-wrapper",style:t.pullDownStyle},[t.beforePullDown?r("div",{staticClass:"before-trigger"},[r("bubble",{attrs:{y:t.bubbleY}})],1):r("div",{staticClass:"after-trigger"},[t.isPullingDown?r("div",{staticClass:"loading"},[r("act-loading",{directives:[{name:"show",rawName:"v-show",value:!0,expression:"true"}],attrs:{type:"cir4",color:t.brandColor,size:20}})],1):r("div",[r("span",[t._v(t._s(t.refreshTxt))])])])]):t._e()],2)},i=[];n._withStripped=!0},6:function(t,e,r){var n=r(7);t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},62:function(t,e,r){var n=r(9),i=r(6),o=r(31);t.exports=r(3)?Object.defineProperties:function(t,e){i(t);for(var r,s=o(e),c=s.length,l=0;c>l;)n.f(t,r=s[l++],e[r]);return t}},66:function(t,e,r){"use strict";var n=r(67)(!0);r(48)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,r=this._i;return r>=e.length?{value:void 0,done:!0}:(t=n(e,r),this._i+=t.length,{value:t,done:!1})})},67:function(t,e,r){var n=r(20),i=r(19);t.exports=function(t){return function(e,r){var o,s,c=String(i(e)),l=n(r),a=c.length;return l<0||l>=a?t?"":void 0:(o=c.charCodeAt(l),o<55296||o>56319||l+1===a||(s=c.charCodeAt(l+1))<56320||s>57343?t?c.charAt(l):o:t?c.slice(l,l+2):s-56320+(o-55296<<10)+65536)}}},68:function(t,e,r){"use strict";var n=r(55),i=r(26),o=r(32),s={};r(4)(s,r(1)("iterator"),function(){return this}),t.exports=function(t,e,r){t.prototype=n(s,{next:i(1,r)}),o(t,e+" Iterator")}},687:function(t,e,r){"use strict";var n=r(556),i=r(275),o=(r.n(i),r(951)),s=r.n(o);e.a={name:"ScrollZoom",data:function(){return{pdf:null}},computed:{currentTerm:function(){return this.termsInfo[this.docIndex]||null},liTagInfo:function(){var t=[];if(this.currentTerm&&this.currentTerm.liTag&&this.currentTerm.myScroll)for(var e=0;e<this.currentTerm.liTag.length;e++){var r=this.currentTerm.liTag[e];t.push({tag:r,top:r.offsetTop*this.currentTerm.currentScale,left:r.offsetLeft*this.currentTerm.currentScale,width:r.offsetWidth*this.currentTerm.currentScale,height:r.offsetHeight*this.currentTerm.currentScale})}return t},isPurePdfType:function(){return 4===this.currentTerm.type},isImageType:function(){return 2===Number(this.currentTerm.type)},isShowLoading:function(){var t=this.currentTerm.myScroll;return!(!this.isPurePdfType||!this.pdf||this.pdf.inited)||!!(this.isImageType&&this.currentTerm.isLoading&&1===this.currentTerm.currentPage||this.isImageType&&this.currentTerm.isLoading&&t&&Math.abs(t.y)+50>=Math.abs(t.maxScrollY))},purePdfLoadingComplated:function(){if(!this.isPurePdfType||!this.pdf)return!1;var t=this.pdf,e=t.numPages,r=t.renderedPages;return e&&r&&e===r.length},imagesInitLoad:function(){return this.isImageType&&this.currentTerm.isLoading&&1===this.currentTerm.currentPage},imagesLoadingComplated:function(){return this.currentTerm.currentPage*this.pageSize>=this.currentTerm.urls.length}},watch:{purePdfLoadingComplated:function(t){if(t&&this.currentTerm.myScroll){var e=this.currentTerm.myScroll.y,r=this.currentTerm.myScroll.maxScrollY,n=e===r;console.log("PDF渲染完成,检查滚动位置:",{currentY:e,maxScrollY:r,scrolledEnd:n}),n&&this.$emit("canINext",!0)}}},methods:{loadNextPage:function(){var t=this.currentTerm;t.currentPage*this.pageSize>=t.urls.length||(t.currentPage++,t.isLoading=!0,this.initImages())},initImages:function(){var t=this,e=this.currentTerm,r=this.$refs["scrollList"+this.docIndex][0],n=(e.currentPage-1)*this.pageSize,i=e.urls.slice(n,n+this.pageSize),o=new Array(i.length).fill(!1),s=[];i.forEach(function(n,i){var c=document.createElement("li"),l=new Image;c.style.height=t.currentTerm.styleImg.height,l.onload=function(){c.appendChild(l),o[i]=!0,o.every(function(t){return t})&&(s.forEach(function(t){return r.appendChild(t)}),e.isLoading=!1,t.currentTerm.myScroll.refresh(),t.currentTerm.currentPage*t.pageSize<t.currentTerm.urls.length&&t.loadNextPage())},l.src=n,l.style.width="100%",c.appendChild(l),s.push(c)})},initWord:function(t){var e=this;t instanceof Array?Object(i.get)(t[0]).then(function(t){t=t.replace(/<span[^>]*?>[\s|&nbsp;]*<\/span>/g,""),t=t.replace(/<span[^>]*?>[\s|&nbsp;]*<em>\s*<\/em>\s*<\/span>/g,""),e.currentTerm.wordHtml=t,e.currentTerm.classObject["scroll-word"]=!0,e.currentTerm.init=!0}).catch(function(t){console.log(t)}):console.log("数据格式错误")},initPDF:function(t){if(t instanceof Array){var e=this,r=new Image;r.src=t[0],r.onload=function(){var t=window.innerWidth/r.width,n=2*(t*r.height).toFixed(2);e.currentTerm.styleImg.height=n+"px",e.currentTerm.classObject["scroll-pdf"]=!0,e.currentTerm.listenScrollEnd=!0,e.currentTerm.listenZoomEnd=!0,e.currentTerm.listenScroll=!0,e.currentTerm.init=!0}}else console.log("数据格式错误")},initHtml:function(t){t=t.replace(/<span[^>]*?>[\s|&nbsp;]*<\/span>/g,""),t=t.replace(/<span[^>]*?>[\s|&nbsp;]*<em>\s*<\/em>\s*<\/span>/g,""),this.currentTerm.wordHtml=t,this.currentTerm.classObject["scroll-word"]=!0,this.currentTerm.init=!0},initPurePDF:function(t){this.currentTerm.probeType=3,this.currentTerm.listenScroll=!0,this.currentTerm.listenZoomEnd=!0,this.currentTerm.listenScrollEnd=!0,this.currentTerm.observeDOM=!1,this.currentTerm.init=!0},scroll:function(t){this.lazyLoad(t),this.isPurePdfType&&this.pdf&&this.pdf.updateVisibleImages&&this.pdf.updateVisibleImages()},scrollEnd:function(t){this.isPurePdfType?(this.currentTerm.curPosition=t,this.pdf&&this.pdf.updateVisibleImages&&this.pdf.updateVisibleImages()):this.lazyLoad(t);var e=t.y===this.currentTerm.myScroll.maxScrollY;![2,4].includes(this.currentTerm.type)&&this.forceRead&&e&&this.$emit("canINext",!0),this.isImageType&&this.forceRead&&this.imagesLoadingComplated&&e&&this.$emit("canINext",!0),this.isPurePdfType&&this.forceRead&&this.purePdfLoadingComplated&&e&&this.$emit("canINext",!0),e&&this.$emit("scrolledEnd",!0)},scrollInit:function(t){var e=this;if(this.currentTerm.myScroll=t,this.forceRead&&this.currentTerm.myScroll&&0==+this.currentTerm.myScroll.maxScrollY&&!this.isPurePdfType&&!this.isImageType&&this.$emit("canINext",!0),1===this.currentTerm.type&&this.$refs["wordHtml"+this.docIndex]&&this.$refs["wordHtml"+this.docIndex][0]){var r=this.$refs["wordHtml"+this.docIndex][0].querySelectorAll("table");this.refreshTable(r);var n=this.$refs["wordHtml"+this.docIndex][0].querySelectorAll("img");this.refreshImg(n)}else this.isImageType&&this.$refs["scrollList"+this.docIndex]&&this.$refs["scrollList"+this.docIndex][0]?(this.currentTerm.cWidth=this.currentTerm.myScroll.wrapperHeight,this.currentTerm.cHeight=this.currentTerm.myScroll.wrapperWidth,this.loadNextPage()):99===this.currentTerm.type?this.currentTerm.myScroll.refresh():4===this.currentTerm.type&&(this.pdf=new s.a,this.pdf.init({url:this.currentTerm.urls[0],container:this.$refs.pdfContainer[0],brandColor:this.brandColor,scollRef:this.currentTerm.myScroll}).then(function(){e.currentTerm.myScroll.refresh(),e.forceRead&&e.currentTerm.myScroll&&0==+e.currentTerm.myScroll.maxScrollY&&e.purePdfLoadingComplated&&e.$emit("canINext",!0)}).catch(function(t){console.log(t)}))},zoomEnd:function(){},lazyLoad:function(t){this.currentTerm.scrollY=Math.abs(t.y)},refreshTable:function(t){if(t.length>0)for(var e=0,r=t.length;e<r;e++)t[e].style.width="100%",t[e].style.marginLeft="0";this.currentTerm.myScroll.refresh()},refreshImg:function(t){var e=this;t&&t.length&&function(){for(var r=void 0,n=0;n<t.length;n++)t[n].onload=function(){r&&window.clearTimeout(r),r=setTimeout(function(){e.currentTerm.myScroll.refresh()},200)}}()},getTermHideState:function(t){return t!==this.docIndex},showDoc:function(t){this.docIndex=t,this.destroyPdf(),this.currentTerm.init?2===Number(this.currentTerm.type)&&(this.currentTerm.currentPage=0,this.loadNextPage()):1===Number(this.currentTerm.type)?this.initWord(this.currentTerm.urls):2===Number(this.currentTerm.type)?this.initPDF(this.currentTerm.urls):3===Number(this.currentTerm.type)?this.initHtml(this.currentTerm.innerHTML):4===Number(this.currentTerm.type)?this.initPurePDF(this.currentTerm.urls):99===Number(this.currentTerm.type)&&(this.currentTerm.init=!0)},destroyPdf:function(){this.pdf&&(this.pdf.destroy(),this.pdf=null)}},beforeDestroy:function(){this.destroyPdf()},components:{scroll:n.default},props:{termsInfo:{type:Array,default:function(){return[]}},brandColor:{type:String,default:"#8c7fee"},docIndex:{type:Number,default:0},forceRead:{type:Boolean,default:!1},pageSize:{type:Number,default:4}}}},69:function(t,e,r){var n=r(5),i=r(37),o=r(22)("IE_PROTO"),s=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),n(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},7:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},70:function(t,e,r){r(71);for(var n=r(0),i=r(4),o=r(18),s=r(1)("toStringTag"),c="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),l=0;l<c.length;l++){var a=c[l],u=n[a],f=u&&u.prototype;f&&!f[s]&&i(f,s,a),o[a]=o.Array}},71:function(t,e,r){"use strict";var n=r(72),i=r(73),o=r(18),s=r(11);t.exports=r(48)(Array,"Array",function(t,e){this._t=s(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,r=this._i++;return!t||r>=t.length?(this._t=void 0,i(1)):"keys"==e?i(0,r):"values"==e?i(0,t[r]):i(0,[r,t[r]])},"values"),o.Arguments=o.Array,n("keys"),n("values"),n("entries")},72:function(t,e){t.exports=function(){}},73:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},78:function(t,e,r){var n=r(24),i=r(1)("toStringTag"),o="Arguments"==n(function(){return arguments}()),s=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,r,c;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=s(e=Object(t),i))?r:o?n(e):"Object"==(c=n(e))&&"function"==typeof e.callee?"Arguments":c}},8:function(t,e,r){"use strict";function n(t,e,r,n,i,o,s,c){t=t||{};var l=typeof t.default;"object"!==l&&"function"!==l||(t=t.default);var a="function"==typeof t?t.options:t;e&&(a.render=e,a.staticRenderFns=r,a._compiled=!0),n&&(a.functional=!0),o&&(a._scopeId=o);var u;if(s?(u=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},a._ssrRegister=u):i&&(u=c?function(){i.call(this,this.$root.$options.shadowRoot)}:i),u)if(a.functional){a._injectStyles=u;var f=a.render;a.render=function(t,e){return u.call(e),f(t,e)}}else{var h=a.beforeCreate;a.beforeCreate=h?[].concat(h,u):[u]}return{exports:t,options:a}}e.a=n},83:function(t,e,r){"use strict";function n(t){var e,r;this.promise=new t(function(t,n){if(void 0!==e||void 0!==r)throw TypeError("Bad Promise constructor");e=t,r=n}),this.resolve=i(e),this.reject=i(r)}var i=r(34);t.exports.f=function(t){return new n(t)}},9:function(t,e,r){var n=r(6),i=r(47),o=r(38),s=Object.defineProperty;e.f=r(3)?Object.defineProperty:function(t,e,r){if(n(t),e=o(e,!0),n(r),i)try{return s(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[e]=r.value),t}},94:function(t,e){},948:function(t,e,r){"use strict";function n(t){c||r(949)}Object.defineProperty(e,"__esModule",{value:!0});var i=r(687),o=r(952),s=r(8),c=!1,l=n,a=Object(s.a)(i.a,o.a,o.b,!1,l,"data-v-388e54c7",null);a.options.__file="src\\components\\common\\scrollZoom\\index.vue",e.default=a.exports},949:function(t,e,r){var n=r(950);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=r(36).default;i("ce97365c",n,!1,{})},95:function(t,e,r){var n=r(78),i=r(1)("iterator"),o=r(18);t.exports=r(2).getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||o[n(t)]}},950:function(t,e,r){e=t.exports=r(35)(!1),e.push([t.i,"\n.act-doc-box[data-v-388e54c7]{height:100%;position:relative\n}\n.act-doc-box .loading[data-v-388e54c7]{position:absolute;z-index:9999;bottom:25px;width:100%\n}\n.act-doc-box .loading.center[data-v-388e54c7]{bottom:50%\n}\n.doc-fixed-header[data-v-388e54c7]{background:#fff;padding:0 1.35rem 0.8rem\n}\n.doc-fixed-header .fixed-tip[data-v-388e54c7]{padding:0.6rem 0.8rem;font-size:1.1rem;line-height:1.5;color:#999;background:#F7F8FC;border-radius:0.8rem 0.8rem 0.8rem 0.8rem\n}\n.act-scroll-text[data-v-388e54c7]{padding:0 14px\n}\n.act-scroll-list li[data-v-388e54c7]{position:relative\n}\n.act-scroll-list li img[data-v-388e54c7]{width:100%\n}\n.loading-indicator[data-v-388e54c7]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;height:80px\n}\n",""])},951:function(t,e){t.exports=i},952:function(t,e,r){"use strict";r.d(e,"a",function(){return n}),r.d(e,"b",function(){return i});var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"act-doc-content"},t._l(t.termsInfo,function(e,n){return r("div",{key:n,staticClass:"act-doc-box",class:{hide:t.getTermHideState(n)}},[t.isShowLoading||!e.init||n!==t.docIndex?r("div",{staticClass:"loading",class:{center:t.isPurePdfType||t.imagesInitLoad||!(e.init&&n===t.docIndex)}},[r("act-loading",{directives:[{name:"show",rawName:"v-show",value:!0,expression:"true"}],attrs:{type:"cir4",color:t.brandColor,size:25}})],1):t._e(),t._v(" "),1!=e.type&&3!=e.type||!e.fixedTipHtml?t._e():r("div",{staticClass:"doc-fixed-header"},[r("p",{staticClass:"fixed-tip",domProps:{innerHTML:t._s(e.fixedTipHtml)}})]),t._v(" "),e.init&&n===t.docIndex?r("scroll",{class:e.classObject,attrs:{freeScroll:e.freeScroll,scrollbar:e.scrollbar,mouseWheel:e.mouseWheel,bounce:e.bounce,zoom:e.zoom,observeDOM:e.observeDOM,probeType:e.probeType||2,listenBeforeScroll:!0,listenScroll:e.listenScroll,listenScrollEnd:e.listenScrollEnd,listenScrollInit:e.listenScrollInit,listenZoomEnd:e.listenZoomEnd},on:{scroll:t.scroll,"scroll-end":t.scrollEnd,scrollSuc:t.scrollInit,zoomEnd:t.zoomEnd}},[99==e.type?t._t("content"):1==e.type||3==e.type?r("div",{ref:"wordHtml"+n,refInFor:!0,staticClass:"act-scroll-text",class:"wordHtml"+n,attrs:{"data-index":n},domProps:{innerHTML:t._s(e.wordHtml)}},[t._v("\n >"+t._s(e.wordHtml)+"\n ")]):4===e.type?r("div",{ref:"pdfContainer",refInFor:!0}):r("ul",{ref:"scrollList"+n,refInFor:!0,staticClass:"act-scroll-list"})],2):t._e()],1)}),0)},i=[];n._withStripped=!0}})});