1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-3cd68baa"],{"011a":function(t,e,i){t.exports=i.p+"system_static/img/no_chat.b9c3e583.png"},"060a":function(t,e,i){t.exports=i.p+"system_static/img/no_tk.401d40f4.png"},"13c2":function(t,e,i){},"19ce":function(t,e,i){t.exports=i.p+"system_static/media/notice.367f95a9.mp3"},4112:function(t,e,i){t.exports=i.p+"system_static/img/no_user.a09b282b.png"},"468b":function(t,e,i){t.exports=i.p+"system_static/img/no_all.174e30c0.png"},"5f70":function(t,e,i){t.exports=i.p+"system_static/img/no_fh.977a0fb8.png"},"6db4":function(t,e,i){!function(t,e){"use strict";function i(t,e,i){document.addEventListener?t.addEventListener(e,i):t.attachEvent("on"+e,i)}function n(t,e,i){document.addEventListener?t.removeEventListener(e,i):t.detachEvent("on"+e,i)}function o(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function s(t,e){return e={exports:{}},t(e,e.exports),e.exports}function r(){var t={},e=0,i=0,n=0;return{add:function(o,s){s||(s=o,o=0),o>i?i=o:o<n&&(n=o),t[o]||(t[o]=[]),t[o].push(s),e++},process:function(){for(var e=n;e<=i;e++)for(var o=t[e],s=0;s<o.length;s++)(0,o[s])()},size:function(){return e}}}function a(t){return t[C]}function l(t){return Array.isArray(t)||void 0!==t.length}function c(t){if(Array.isArray(t))return t;var e=[];return H(t,(function(t){e.push(t)})),e}function d(t){return t&&1===t.nodeType}function u(t,e,i){var n=t[e];return void 0!==n&&null!==n||void 0===i?n:i}e=e&&e.hasOwnProperty("default")?e.default:e;var f=function(t){var e=Date.now();return function(i){if(i-e>(t||14))return e=i,!0}},h=function(t,e,i){var n,o,s,r,a,l=function l(){var c=(new Date).getTime()-r;c<e&&c>=0?n=setTimeout(l,e-c):(n=null,i||(a=t.apply(s,o),n||(s=o=null)))};return function(){s=this,o=arguments,r=(new Date).getTime();var c=i&&!n;return n||(n=setTimeout(l,e)),c&&(a=t.apply(s,o),s=o=null),a}},p={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{ref:"stripContainer",staticClass:"happy-scroll-strip",class:[t.horizontal?"happy-scroll-strip--horizontal":"happy-scroll-strip--vertical"],style:[t.initLocation],on:{"!wheel":function(e){return e.stopPropagation(),t.handlerWheel(e)}}},[i("div",{ref:"strip",staticClass:"happy-scroll-bar",style:[t.translate,o({},t.config.sizeAttr,t.length+"px"),t.initSize,{background:t.color},{opacity:t.isOpacity}],on:{mousedown:function(e){return e.stopPropagation(),t.handlerMouseDown(e)}}})])},staticRenderFns:[],name:"happy-scroll-strip",props:{horizontal:Boolean,left:Boolean,top:Boolean,move:{type:Number,default:0},size:{type:[Number,String],default:4},minLengthV:{type:Number,default:40},minLengthH:{type:Number,default:40},color:{type:String,default:"rgba(51,51,51,0.2)"},throttle:{type:Number,default:14}},data:function(){return{config:{},startMove:!1,binded:!1,length:0,percentage:0,maxOffset:0,currentOffset:0,moveThrottle:f(this.throttle)}},watch:{currentOffset:function(t){0===t?this.emitLocationEvent("start",0):t===this.maxOffset&&this.emitLocationEvent("end",t/this.percentage)}},computed:{initSize:function(){return o({},this.horizontal?"height":"width",this.size+"px")},isOpacity:function(){return this.percentage<1?1:0},translate:function(){var t=this.move*this.percentage;if(this.$refs.stripContainer)return t<0&&(t=0),t>this.maxOffset&&(t=this.maxOffset),this.currentOffset=t,{transform:this.config.translate+"("+t+"px)"}},initLocation:function(){return this.horizontal?this.top?{top:0,bottom:"auto"}:"":this.left?{left:0,right:"auto"}:""}},methods:{emitLocationEvent:function(t,e){var i=this.horizontal?"horizontal":"vertical";this.$emit(i+"-"+t,e)},computeStrip:function(t,e){var i=this.$refs.stripContainer[this.config.client];this.length=i*(e/t);var n=this.horizontal?this.minLengthH:this.minLengthV;n<1&&(n*=i),this.length=this.length<n?n:this.length;var o=this.maxOffset=i-this.length;this.percentage=o/(t-e)},bindEvents:function(){this.binded||(i(document,"mouseup",this.handlerMouseUp),i(document,"mousemove",this.handlerMove),this.binded=!0)},handlerMouseDown:function(t){if(0===t.button)return t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation(),this.startMove=!0,this.axis=t[this.config.clientAxis],this.bindEvents(),!1},handlerMouseUp:function(){this.startMove=!1},handlerMove:function(t){if(this.startMove&&this.moveThrottle(Date.now())){t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation();var e=this.$refs.stripContainer.getBoundingClientRect(),i=this.$refs.strip.getBoundingClientRect()[this.config.direction]-e[this.config.direction],n=t[this.config.clientAxis]-this.axis+i;this.axis=t[this.config.clientAxis],this.changeOffset(n)}},handlerWheel:function(t){var e=this.$refs.stripContainer.getBoundingClientRect(),i=this.$refs.strip.getBoundingClientRect()[this.config.direction]-e[this.config.direction]+t[this.config.wheelDelta];this.changeOffset(i,t)},changeOffset:function(t,e){t<0&&(t=0),t>this.maxOffset&&(t=this.maxOffset),e&&t>0&&t<this.maxOffset&&(e.preventDefault(),e.stopImmediatePropagation()),this.currentOffset=t,this.$refs.strip.style.transform=this.config.translate+"("+t+"px)",this.$emit("change",t/this.percentage)}},created:function(){var t={h:{sizeAttr:"width",client:"clientWidth",clientAxis:"clientX",translate:"translateX",direction:"left",wheelDelta:"deltaX"},v:{sizeAttr:"height",client:"clientHeight",clientAxis:"clientY",translate:"translateY",direction:"top",wheelDelta:"deltaY"}};this.config=this.horizontal?t.h:t.v},destroyed:function(){n(document,"mouseup",this.handlerClickUp),n(document,"mousemove",this.handlerMove)}},g=s((function(t){(t.exports={}).forEach=function(t,e){for(var i=0;i<t.length;i++){var n=e(t[i]);if(n)return n}}})),m=function(t){var e=t.stateHandler.getState;return{isDetectable:function(t){var i=e(t);return i&&!!i.isDetectable},markAsDetectable:function(t){e(t).isDetectable=!0},isBusy:function(t){return!!e(t).busy},markBusy:function(t,i){e(t).busy=!!i}}},v=function(t){function e(e){var n=t.get(e);return void 0===n?[]:i[n]||[]}var i={};return{get:e,add:function(e,n){var o=t.get(e);i[o]||(i[o]=[]),i[o].push(n)},removeListener:function(t,i){for(var n=e(t),o=0,s=n.length;o<s;++o)if(n[o]===i){n.splice(o,1);break}},removeAllListeners:function(t){var i=e(t);i&&(i.length=0)}}},b=function(){var t=1;return{generate:function(){return t++}}},y=function(t){var e=t.idGenerator,i=t.stateHandler.getState;return{get:function(t){var e=i(t);return e&&void 0!==e.id?e.id:null},set:function(t){var n=i(t);if(!n)throw new Error("setId required the element to have a resize detection state.");var o=e.generate();return n.id=o,o}}},w=function(t){function e(){}var i={log:e,warn:e,error:e};if(!t&&window.console){var n=function(t,e){t[e]=function(){var t=console[e];if(t.apply)t.apply(console,arguments);else for(var i=0;i<arguments.length;i++)t(arguments[i])}};n(i,"log"),n(i,"warn"),n(i,"error")}return i},S=s((function(t){var e=t.exports={};e.isIE=function(t){return!!function(){var t=navigator.userAgent.toLowerCase();return-1!==t.indexOf("msie")||-1!==t.indexOf("trident")||-1!==t.indexOf(" edge/")}()&&(!t||t===function(){var t=3,e=document.createElement("div"),i=e.getElementsByTagName("i");do{e.innerHTML="\x3c!--[if gt IE "+ ++t+"]><i></i><![endif]--\x3e"}while(i[0]);return t>4?t:void 0}())},e.isLegacyOpera=function(){return!!window.opera}})),_=s((function(t){(t.exports={}).getOption=function(t,e,i){var n=t[e];return void 0!==n&&null!==n||void 0===i?n:i}})),x=function(t){function e(){for(u=!0;d.size();){var t=d;d=r(),t.process()}u=!1}function i(){c=o(e)}function n(t){return clearTimeout(t)}function o(t){return function(t){return setTimeout(t,0)}(t)}var s=(t=t||{}).reporter,a=_.getOption(t,"async",!0),l=_.getOption(t,"auto",!0);l&&!a&&(s&&s.warn("Invalid options combination. auto=true and async=false is invalid. Setting async=true."),a=!0);var c,d=r(),u=!1;return{add:function(t,e){!u&&l&&a&&0===d.size()&&i(),d.add(t,e)},force:function(t){u||(void 0===t&&(t=a),c&&(n(c),c=null),t?i():e())}}},C="_erd",L={initState:function(t){return t[C]={},a(t)},getState:a,cleanState:function(t){delete t[C]}},z=function(t){function e(t){return o(t).object}var i=(t=t||{}).reporter,n=t.batchProcessor,o=t.stateHandler.getState;if(!i)throw new Error("Missing required dependency: reporter.");return{makeDetectable:function(t,e,s){s||(s=e,e=t,t=null),t=t||{},S.isIE(8)?s(e):function(t,e){function s(){function n(){if("static"===l.position){t.style.position="relative";var e=function(t,e,i,n){var o=i[n];"auto"!==o&&"0"!==function(t){return t.replace(/[^-\d\.]/g,"")}(o)&&(t.warn("An element that is positioned static has style."+n+"="+o+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+n+" will be set to 0. Element: ",e),e.style[n]=0)};e(i,t,l,"top"),e(i,t,l,"right"),e(i,t,l,"bottom"),e(i,t,l,"left")}}""!==l.position&&(n(l),a=!0);var s=document.createElement("object");s.style.cssText=r,s.tabIndex=-1,s.type="text/html",s.onload=function(){function i(t,e){t.contentDocument?e(t.contentDocument):setTimeout((function(){i(t,e)}),100)}a||n(),i(this,(function(i){e(t)}))},S.isIE()||(s.data="about:blank"),t.appendChild(s),o(t).object=s,S.isIE()&&(s.data="about:blank")}var r="display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; padding: 0; margin: 0; opacity: 0; z-index: -1000; pointer-events: none;",a=!1,l=window.getComputedStyle(t),c=t.offsetWidth,d=t.offsetHeight;o(t).startSize={width:c,height:d},n?n.add(s):s()}(e,s)},addListener:function(t,i){function n(){i(t)}if(!e(t))throw new Error("Element is not detectable by this strategy.");S.isIE(8)?(o(t).object={proxy:n},t.attachEvent("onresize",n)):e(t).contentDocument.defaultView.addEventListener("resize",n)},uninstall:function(t){S.isIE(8)?t.detachEvent("onresize",o(t).object.proxy):t.removeChild(e(t)),delete o(t).object}}},k=g.forEach,E=function(t){function e(t){t.className+=" "+u+"_animation_active"}function i(t,e,i){if(t.addEventListener)t.addEventListener(e,i);else{if(!t.attachEvent)return r.error("[scroll] Don't know how to add event listeners.");t.attachEvent("on"+e,i)}}function n(t,e,i){if(t.removeEventListener)t.removeEventListener(e,i);else{if(!t.detachEvent)return r.error("[scroll] Don't know how to remove event listeners.");t.detachEvent("on"+e,i)}}function o(t){return l(t).container.childNodes[0].childNodes[0].childNodes[0]}function s(t){return l(t).container.childNodes[0].childNodes[0].childNodes[1]}var r=(t=t||{}).reporter,a=t.batchProcessor,l=t.stateHandler.getState,c=t.idHandler;if(!a)throw new Error("Missing required dependency: batchProcessor");if(!r)throw new Error("Missing required dependency: reporter.");var d=function(){var t=document.createElement("div");t.style.cssText="position: absolute; width: 1000px; height: 1000px; visibility: hidden; margin: 0; padding: 0;";var e=document.createElement("div");e.style.cssText="position: absolute; width: 500px; height: 500px; overflow: scroll; visibility: none; top: -1500px; left: -1500px; visibility: hidden; margin: 0; padding: 0;",e.appendChild(t),document.body.insertBefore(e,document.body.firstChild);var i=500-e.clientWidth,n=500-e.clientHeight;return document.body.removeChild(e),{width:i,height:n}}(),u="erd_scroll_detection_container";return function(t,e){if(!document.getElementById(t)){var i=e+"_animation",n="/* Created by the element-resize-detector library. */\n";n+="."+e+" > div::-webkit-scrollbar { display: none; }\n\n",n+="."+e+"_animation_active { -webkit-animation-duration: 0.1s; animation-duration: 0.1s; -webkit-animation-name: "+i+"; animation-name: "+i+"; }\n",n+="@-webkit-keyframes "+i+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }\n",function(e,i){i=i||function(t){document.head.appendChild(t)};var n=document.createElement("style");n.innerHTML=e,n.id=t,i(n)}(n+="@keyframes "+i+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }")}}("erd_scroll_detection_scrollbar_style",u),{makeDetectable:function(t,n,f){function h(){if(t.debug){var e=Array.prototype.slice.call(arguments);if(e.unshift(c.get(n),"Scroll: "),r.log.apply)r.log.apply(null,e);else for(var i=0;i<e.length;i++)r.log(e[i])}}function p(t){var e=l(t).container.childNodes[0],i=getComputedStyle(e);return!i.width||-1===i.width.indexOf("px")}function g(){var t=getComputedStyle(n),e={};return e.position=t.position,e.width=n.offsetWidth,e.height=n.offsetHeight,e.top=t.top,e.right=t.right,e.bottom=t.bottom,e.left=t.left,e.widthCSS=t.width,e.heightCSS=t.height,e}function m(){var t=g();l(n).startSize={width:t.width,height:t.height},h("Element start size",l(n).startSize)}function v(){l(n).listeners=[]}function b(){if(h("storeStyle invoked."),l(n)){var t=g();l(n).style=t}else h("Aborting because element has been uninstalled")}function y(t,e,i){l(t).lastWidth=e,l(t).lastHeight=i}function w(t){return o(t).childNodes[0]}function S(){return 2*d.width+1}function _(){return 2*d.height+1}function x(t){return t+10+S()}function C(t){return t+10+_()}function L(t){return 2*t+S()}function z(t){return 2*t+_()}function E(t,e,i){var n=o(t),r=s(t),a=x(e),l=C(i),c=L(e),d=z(i);n.scrollLeft=a,n.scrollTop=l,r.scrollLeft=c,r.scrollTop=d}function H(){var t=l(n).container;if(!t){(t=document.createElement("div")).className=u,t.style.cssText="visibility: hidden; display: inline; width: 0px; height: 0px; z-index: -1; overflow: hidden; margin: 0; padding: 0;",l(n).container=t,e(t),n.appendChild(t);var o=function(){l(n).onRendered&&l(n).onRendered()};i(t,"animationstart",o),l(n).onAnimationStart=o}return t}function O(){function t(){l(n).onExpand&&l(n).onExpand()}function e(){l(n).onShrink&&l(n).onShrink()}if(h("Injecting elements"),l(n)){!function(){var t=l(n).style;if("static"===t.position){n.style.position="relative";var e=function(t,e,i,n){var o=i[n];"auto"!==o&&"0"!==function(t){return t.replace(/[^-\d\.]/g,"")}(o)&&(t.warn("An element that is positioned static has style."+n+"="+o+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+n+" will be set to 0. Element: ",e),e.style[n]=0)};e(r,n,t,"top"),e(r,n,t,"right"),e(r,n,t,"bottom"),e(r,n,t,"left")}}();var o=l(n).container;o||(o=H());var s=d.width,a=d.height,c="position: absolute; flex: none; overflow: hidden; z-index: -1; visibility: hidden; "+function(t,e,i,n){return t=t?t+"px":"0",e=e?e+"px":"0",i=i?i+"px":"0",n=n?n+"px":"0","left: "+t+"; top: "+e+"; right: "+n+"; bottom: "+i+";"}(-(1+s),-(1+a),-a,-s),f=document.createElement("div"),p=document.createElement("div"),g=document.createElement("div"),m=document.createElement("div"),v=document.createElement("div"),b=document.createElement("div");f.dir="ltr",f.style.cssText="position: absolute; flex: none; overflow: hidden; z-index: -1; visibility: hidden; width: 100%; height: 100%; left: 0px; top: 0px;",f.className=u,p.className=u,p.style.cssText=c,g.style.cssText="position: absolute; flex: none; overflow: scroll; z-index: -1; visibility: hidden; width: 100%; height: 100%;",m.style.cssText="position: absolute; left: 0; top: 0;",v.style.cssText="position: absolute; flex: none; overflow: scroll; z-index: -1; visibility: hidden; width: 100%; height: 100%;",b.style.cssText="position: absolute; width: 200%; height: 200%;",g.appendChild(m),v.appendChild(b),p.appendChild(g),p.appendChild(v),f.appendChild(p),o.appendChild(f),i(g,"scroll",t),i(v,"scroll",e),l(n).onExpandScroll=t,l(n).onShrinkScroll=e}else h("Aborting because element has been uninstalled")}function T(){function e(t,e,i){var n=w(t),o=x(e),s=C(i);n.style.width=o+"px",n.style.height=s+"px"}function i(i){var o=n.offsetWidth,s=n.offsetHeight;h("Storing current size",o,s),y(n,o,s),a.add(0,(function(){if(l(n))if(d()){if(t.debug){var i=n.offsetWidth,a=n.offsetHeight;i===o&&a===s||r.warn(c.get(n),"Scroll: Size changed before updating detector elements.")}e(n,o,s)}else h("Aborting because element container has not been initialized");else h("Aborting because element has been uninstalled")})),a.add(1,(function(){l(n)?d()?E(n,o,s):h("Aborting because element container has not been initialized"):h("Aborting because element has been uninstalled")})),i&&a.add(2,(function(){l(n)?d()?i():h("Aborting because element container has not been initialized"):h("Aborting because element has been uninstalled")}))}function d(){return!!l(n).container}function u(){h("notifyListenersIfNeeded invoked");var t=l(n);return void 0===l(n).lastNotifiedWidth&&t.lastWidth===t.startSize.width&&t.lastHeight===t.startSize.height?h("Not notifying: Size is the same as the start size, and there has been no notification yet."):t.lastWidth===t.lastNotifiedWidth&&t.lastHeight===t.lastNotifiedHeight?h("Not notifying: Size already notified"):(h("Current size not notified, notifying..."),t.lastNotifiedWidth=t.lastWidth,t.lastNotifiedHeight=t.lastHeight,void k(l(n).listeners,(function(t){t(n)})))}function f(){if(h("Scroll detected."),p(n))h("Scroll event fired while unrendered. Ignoring...");else{var t=n.offsetWidth,e=n.offsetHeight;t!==n.lastWidth||e!==n.lastHeight?(h("Element size changed."),i(u)):h("Element size has not changed ("+t+"x"+e+").")}}if(h("registerListenersAndPositionElements invoked."),l(n)){l(n).onRendered=function(){if(h("startanimation triggered."),p(n))h("Ignoring since element is still unrendered...");else{h("Element rendered.");var t=o(n),e=s(n);0!==t.scrollLeft&&0!==t.scrollTop&&0!==e.scrollLeft&&0!==e.scrollTop||(h("Scrollbars out of sync. Updating detector elements..."),i(u))}},l(n).onExpand=f,l(n).onShrink=f;var g=l(n).style;e(n,g.width,g.height)}else h("Aborting because element has been uninstalled")}function $(){if(h("finalizeDomMutation invoked."),l(n)){var t=l(n).style;y(n,t.width,t.height),E(n,t.width,t.height)}else h("Aborting because element has been uninstalled")}function A(){f(n)}function D(){h("Installing..."),v(),m(),a.add(0,b),a.add(1,O),a.add(2,T),a.add(3,$),a.add(4,A)}f||(f=n,n=t,t=null),t=t||{},h("Making detectable..."),function(t){return!function(t){return t===t.ownerDocument.body||t.ownerDocument.body.contains(t)}(t)||null===getComputedStyle(t)}(n)?(h("Element is detached"),H(),h("Waiting until element is attached..."),l(n).onRendered=function(){h("Element is now attached"),D()}):D()},addListener:function(t,e){if(!l(t).listeners.push)throw new Error("Cannot add listener to an element that is not detectable.");l(t).listeners.push(e)},uninstall:function(t){var e=l(t);e&&(e.onExpandScroll&&n(o(t),"scroll",e.onExpandScroll),e.onShrinkScroll&&n(s(t),"scroll",e.onShrinkScroll),e.onAnimationStart&&n(e.container,"animationstart",e.onAnimationStart),e.container&&t.removeChild(e.container))}}},H=g.forEach,O=function(t){var e;if((t=t||{}).idHandler)e={get:function(e){return t.idHandler.get(e,!0)},set:t.idHandler.set};else{var i=b(),n=y({idGenerator:i,stateHandler:L});e=n}var o=t.reporter;o||(o=w(!1===o));var s=u(t,"batchProcessor",x({reporter:o})),r={};r.callOnAdd=!!u(t,"callOnAdd",!0),r.debug=!!u(t,"debug",!1);var a,f=v(e),h=m({stateHandler:L}),p=u(t,"strategy","object"),g={reporter:o,batchProcessor:s,stateHandler:L,idHandler:e};if("scroll"===p&&(S.isLegacyOpera()?(o.warn("Scroll strategy is not supported on legacy Opera. Changing to object strategy."),p="object"):S.isIE(9)&&(o.warn("Scroll strategy is not supported on IE9. Changing to object strategy."),p="object")),"scroll"===p)a=E(g);else{if("object"!==p)throw new Error("Invalid strategy name: "+p);a=z(g)}var _={};return{listenTo:function(t,i,n){function s(t){var e=f.get(t);H(e,(function(e){e(t)}))}function p(t,e,i){f.add(e,i),t&&i(e)}if(n||(n=i,i=t,t={}),!i)throw new Error("At least one element required.");if(!n)throw new Error("Listener required.");if(d(i))i=[i];else{if(!l(i))return o.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");i=c(i)}var g=0,m=u(t,"callOnAdd",r.callOnAdd),v=u(t,"onReady",(function(){})),b=u(t,"debug",r.debug);H(i,(function(t){L.getState(t)||(L.initState(t),e.set(t));var r=e.get(t);if(b&&o.log("Attaching listener to element",r,t),!h.isDetectable(t))return b&&o.log(r,"Not detectable."),h.isBusy(t)?(b&&o.log(r,"System busy making it detectable"),p(m,t,n),_[r]=_[r]||[],void _[r].push((function(){++g===i.length&&v()}))):(b&&o.log(r,"Making detectable..."),h.markBusy(t,!0),a.makeDetectable({debug:b},t,(function(t){if(b&&o.log(r,"onElementDetectable"),L.getState(t)){h.markAsDetectable(t),h.markBusy(t,!1),a.addListener(t,s),p(m,t,n);var e=L.getState(t);if(e&&e.startSize){var l=t.offsetWidth,c=t.offsetHeight;e.startSize.width===l&&e.startSize.height===c||s(t)}_[r]&&H(_[r],(function(t){t()}))}else b&&o.log(r,"Element uninstalled before being detectable.");delete _[r],++g===i.length&&v()})));b&&o.log(r,"Already detecable, adding listener."),p(m,t,n),g++})),g===i.length&&v()},removeListener:f.removeListener,removeAllListeners:f.removeAllListeners,uninstall:function(t){if(!t)return o.error("At least one element is required.");if(d(t))t=[t];else{if(!l(t))return o.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");t=c(t)}H(t,(function(t){f.removeAllListeners(t),a.uninstall(t),L.cleanState(t)}))}}},T=e,$=("undefined"!=typeof window&&window.Vue&&(T=window.Vue),{render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{ref:"happy-scroll",staticClass:"happy-scroll"},[i("div",{ref:"container",staticClass:"happy-scroll-container",style:[t.initSize],on:{scroll:function(e){return e.stopPropagation(),t.onScroll(e)}}},[i("div",{ref:"content",staticClass:"happy-scroll-content",style:[t.contentBorderStyle]},[t._t("default")],2)]),t.hideVertical?t._e():i("happy-scroll-strip",t._g(t._b({ref:"stripY",attrs:{throttle:t.throttle,move:t.moveY},on:{change:t.slideYChange}},"happy-scroll-strip",t.$attrs,!1),t.$listeners)),t.hideHorizontal?t._e():i("happy-scroll-strip",t._g(t._b({ref:"stripX",attrs:{horizontal:"",throttle:t.throttle,move:t.moveX},on:{change:t.slideXChange}},"happy-scroll-strip",t.$attrs,!1),t.$listeners))],1)},staticRenderFns:[],name:"happy-scroll",inheritAttrs:!1,components:{HappyScrollStrip:p},props:{scrollTop:{type:[Number,String],default:0},scrollLeft:{type:[Number,String],default:0},hideVertical:Boolean,hideHorizontal:Boolean,throttle:{type:Number,default:14},resize:Boolean,smallerMoveH:{type:String,default:""},smallerMoveV:{type:String,default:""},biggerMoveH:{type:String,default:""},biggerMoveV:{type:String,default:""}},data:function(){return{initSize:{},moveX:+this.scrollLeft,moveY:+this.scrollTop,scrollThrottle:f(this.throttle),browserHSize:0,browserVSize:0,isScrollNotUseSpace:void 0}},watch:{scrollTop:function(t){this.$refs.container.scrollTop=this.moveY=+t},scrollLeft:function(t){this.$refs.container.scrollLeft=this.moveX=+t},hideVertical:function(t){t||this.$nextTick(this.computeStripY)},hideHorizontal:function(t){t||this.$nextTick(this.computeStripX)}},computed:{contentBorderStyle:function(){return void 0===this.isScrollNotUseSpace?{}:{"border-right":20-this.browserHSize+"px solid transparent","border-bottom":20-this.browserVSize+"px solid transparent"}}},methods:{slideYChange:function(t){this.$refs.container.scrollTop=t,this.$emit("update:scrollTop",this.$refs.container.scrollTop)},slideXChange:function(t){this.$refs.container.scrollLeft=t,this.$emit("update:scrollLeft",this.$refs.container.scrollLeft)},onScroll:function(t){if(!this.scrollThrottle(Date.now()))return!1;this.moveY=t.target.scrollTop,this.moveX=t.target.scrollLeft,this.updateSyncScroll()},initBrowserSize:function(){void 0!==this.isScrollNotUseSpace&&(!0===this.isScrollNotUseSpace?(this.browserHSize=0,this.browserVSize=0):(this.browserHSize=this.$refs.container.offsetWidth-this.$refs.container.clientWidth,this.browserVSize=this.$refs.container.offsetHeight-this.$refs.container.clientHeight))},computeStripX:function(){if(!this.hideHorizontal){var t=this.$refs["happy-scroll"],e=this.$slots.default[0].elm;this.$refs.stripX.computeStrip(e.scrollWidth,t.clientWidth)}},computeStripY:function(){if(!this.hideVertical){var t=this.$refs["happy-scroll"],e=this.$slots.default[0].elm;this.$refs.stripY.computeStrip(e.scrollHeight,t.clientHeight)}},resizeListener:function(){var t=this;if(this.resize){var e=O({strategy:"scroll",callOnAdd:!1}),i=this.$slots.default[0].elm,n=i.clientHeight,o=i.clientWidth;e.listenTo(i,(function(e){t.computeStripX(),t.computeStripY(),t.initBrowserSize();var i=void 0;e.clientHeight<n&&(i=t.smallerMoveH.toLocaleLowerCase()),e.clientHeight>n&&(i=t.biggerMoveH.toLocaleLowerCase()),"start"===i&&(t.moveY=0,t.slideYChange(t.moveY)),"end"===i&&(t.moveY=e.clientHeight,t.slideYChange(t.moveY)),n=e.clientHeight,i="",e.clientWidth<o&&(i=t.smallerMoveV.toLocaleLowerCase()),e.clientWidth>o&&(i=t.biggerMoveV.toLocaleLowerCase()),"start"===i&&(t.moveX=0,t.slideXChange(t.moveX)),"end"===i&&(t.moveX=e.clientWidth,t.slideXChange(t.moveX)),o=e.clientWidth}))}},setContainerSize:function(){this.initSize={width:this.$refs["happy-scroll"].clientWidth+20+"px",height:this.$refs["happy-scroll"].clientHeight+20+"px"}},checkScrollMode:function(){if(void 0===T._happyJS._isScrollNotUseSpace){var t=this.$slots.default[0].elm,e=this.$refs.container;(t.offsetHeight>e.clientHeight||t.offsetWidth>e.clientWidth)&&(e.offsetWidth>e.clientWidth||e.offsetHeight>e.clientHeight?T._happyJS._isScrollNotUseSpace=!1:T._happyJS._isScrollNotUseSpace=!0,this.isScrollNotUseSpace=T._happyJS._isScrollNotUseSpace)}}},beforeCreate:function(){var t=T._happyJS=T._happyJS||{};this.isScrollNotUseSpace=t._isScrollNotUseSpace},created:function(){this.updateSyncScroll=h((function(){this.$emit("update:scrollTop",this.moveY),this.$emit("update:scrollLeft",this.moveX)}),this.throttle)},mounted:function(){var t=this;this.setContainerSize(),this.$nextTick((function(){t.computeStripX(),t.computeStripY(),t.checkScrollMode(),t.initBrowserSize(),t.$nextTick((function(){t.scrollTop&&(t.$refs.container.scrollTop=+t.scrollTop),t.scrollLeft&&(t.$refs.container.scrollLeft=+t.scrollLeft)}))})),this.resizeListener(),this.$watch("browserHSize",this.setContainerSize),this.$watch("browserVSize",this.setContainerSize)}});"undefined"!=typeof window&&window.Vue&&Vue.component("happy-scroll",$),t.default={install:function(t){t.component("happy-scroll",$)},version:"2.1.1"},t.HappyScroll=$,t.version="2.1.1",Object.defineProperty(t,"__esModule",{value:!0})}(e,i("a026"))},"7a1a":function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var n=i("6b6c");function o(){return Object(n.a)({url:"service/info",method:"get",kefu:!0})}},"7a7b":function(t,e,i){"use strict";i("f396")},"7f0b":function(t,e,i){"use strict";i("13c2")},"8b1f":function(t,e,i){"use strict";i("a9e3");var n={name:"empty",props:{status:{type:String|Number,default:1},msg:{type:String,default:""}}},o=(i("7f0b"),i("2877"));o=Object(o.a)(n,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"empty-wrapper"},[1==t.status?[e("img",{attrs:{src:i("011a"),alt:""}})]:t._e(),2==t.status?[e("img",{attrs:{src:i("4112"),alt:""}})]:t._e(),3==t.status?[e("img",{attrs:{src:i("468b"),alt:""}})]:t._e(),4==t.status?[e("img",{attrs:{src:i("ea87"),alt:""}})]:t._e(),5==t.status?[e("img",{attrs:{src:i("5f70"),alt:""}})]:t._e(),6==t.status?[e("img",{attrs:{src:i("060a"),alt:""}})]:t._e(),e("p",[t._v(t._s(t.msg))])],2)}),[],!1,null,"00691601",null);e.a=o.exports},a51b:function(t,e,i){},a9d3:function(t,e,i){"use strict";i.r(e);var n=i("5530"),o=(i("b64b"),i("d3b7"),i("3ca3"),i("ddb0"),i("159b"),i("a434"),i("99af"),i("14d9"),i("c276")),s=i("49ea"),r=i("42e3"),a=i("7a1a"),l=i("6db4"),c=i("2f62"),d=i("8b1f"),u=i("19ce");u=new Audio(u),l={name:"chat_list.vue",components:{HappyScroll:l.HappyScroll,empty:d.a},data:function(){return{ops:{vuescroll:{mode:"slide",enable:!1,tips:{deactive:"Push to Load",active:"Release to Load",start:"Loading...",beforeDeactive:"Load Successfully!"},auto:!1,autoLoadDistance:0,pullRefresh:{enable:!1},pushLoad:{enable:!0,auto:!0,autoLoadDistance:10}},bar:{background:"#393232",opacity:".5",size:"2px"}},list:[],page:1,limit:15,isScroll:!0,searchTxt:"",isOpen:!0,kefuInfo:{},isOnLine:!1,tabCur:0,tabList:[{key:0,title:"用户列表"},{key:1,title:"游客列表"}],wsLogin:JSON.parse(sessionStorage.getItem("wsLogin"))}},filters:{toDay:function(t){var e,i,n,o;return t?((t=new Date).getFullYear(),e=(t.getMonth()+1<10?"0"+(t.getMonth()+1):t.getMonth()+1)+"-",i=(t.getDate()<10?"0"+t.getDate():t.getDate())+" ",n=(t.getHours()<10?"0"+t.getHours():t.getHours())+":",o=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),t.getSeconds(),t.getSeconds(),e+i+n+o):""}},created:function(){Promise.all([this.getKefuInfo(),this.getList()])},mounted:function(){var t=this,e=this,i=(window.addEventListener("beforeunload",(function(t){sessionStorage.setItem("wsLogin",!1)})),this.wsLogin=JSON.parse(sessionStorage.getItem("wsLogin")),Object(o.c)("kefu_token"));s.a.then((function(n){!e.wsLogin&&i&&n.send({type:"kefu_login",data:Object(o.c)("kefu_token")}),n.$on("transfer",(function(e){if(e.recored.id){for(var i=!1,n=0;n<t.list.length;n++)e.recored.id==t.list[n].id&&(i=!0,t.$set(t.list,n,e.recored));i||t.list.unshift(e.recored)}})),n.$on("mssage_num",(function(i){var n;0<i.num&&u.play(),i.recored.id&&(n=!1,e.list.forEach((function(t,o,s){i.recored.id==t.id&&(n=!0,i.recored.is_tourist==e.tabCur)&&(t=i.recored,s.splice(o,1),s.unshift(t))})),n||i.recored.is_tourist==t.tabCur&&t.list.unshift(i.recored),i.recored.is_tourist!=t.tabCur)&&i.recored.id&&t.$notify.info({title:t.tabCur?"用户发来消息啦!":"游客发来消息啦!"})})),n.$on("success",(function(t){sessionStorage.setItem("wsLogin",!0)}))}))},beforeDestroy:function(){},methods:Object(n.a)(Object(n.a)({},Object(c.b)("kefu/",["logout","logoutKefu"])),{},{changeClass:function(t){this.tabCur!=t.key&&(this.tabCur=t.key,this.page=1,this.list=[],this.isScroll=!0,this.getList())},changOnline:function(t){this.kefuInfo.online=t,this.isOnLine=!1,s.a.then((function(e){e.send({type:"online",data:{online:t}})}))},getKefuInfo:function(){var t=this;Object(a.a)().then((function(e){t.kefuInfo=e.data,window.document.title="".concat(e.data.site_name," - 消息列表")}))},getList:function(){var t=this;this.isScroll&&Object(r.G)({nickname:this.searchTxt,page:this.page,limit:this.limit,is_tourist:this.tabCur}).then((function(e){t.isScroll=e.data.length>=t.limit,t.list=t.list.concat(e.data),t.page++,setTimeout((function(){t.$refs.vs.refresh()}),100)}))},outLogin:function(){var t=this;this.$msgbox({title:"退出登录确认",message:"您确定退出登录当前账户吗?打开的标签页和个人设置将会保存。",showCancelButton:!0,cancelButtonText:"取消",confirmButtonText:"确定",iconClass:"el-icon-warning",confirmButtonClass:"btn-custom-cancel"}).then((function(){t.logoutKefu({confirm:!1,vm:t})})).catch((function(){}))},bindSearch:function(t){this.page=1,this.list=[],this.isScroll=!0,this.getList()},goPage:function(t){this.$router.push({path:"mobile_chat",query:{toUid:t.to_uid,nickname:t.nickname,is_tourist:this.tabCur}})},handleBeforeDeactivate:function(t,e,i){this.getList(),i()}})},i("fe2a"),i("7a7b"),d=i("2877"),n=Object(d.a)(l,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"chat-list"},[e("div",{staticClass:"head-box"},[e("div",{staticClass:"hd"},[e("div",{staticClass:"left-wrappers"},[e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.kefuInfo.avatar,expression:"kefuInfo.avatar"}]}),e("div",{staticClass:"info",on:{click:function(e){t.isOnLine=!t.isOnLine}}},[e("div",[t._v(t._s(t.kefuInfo.nickname))]),e("div",{staticClass:"status"},[e("span",{staticClass:"doc",class:{off:!t.kefuInfo.online}}),e("span",[t._v(t._s(t.kefuInfo.online?"在线":"离线"))])])]),e("div",{directives:[{name:"show",rawName:"v-show",value:t.isOnLine,expression:"isOnLine"}],staticClass:"down-wrapper"},[e("div",{staticClass:"item",on:{click:function(e){return t.changOnline(1)}}},[e("span",{staticClass:"dot green"}),t._v("在线\n "),t.kefuInfo.online?e("span",{staticClass:"iconfont iconduihao"}):t._e()]),e("div",{staticClass:"item",on:{click:function(e){return t.changOnline(0)}}},[e("span",{staticClass:"dot"}),t._v("离线\n "),t.kefuInfo.online?t._e():e("span",{staticClass:"iconfont iconduihao"})])])]),e("div",{staticClass:"right-wrapper",on:{click:t.outLogin}},[t._m(0),e("div",{staticStyle:{"margin-left":"5px"}},[t._v("退出登录")])])]),e("div",{staticClass:"tab-box"},t._l(t.tabList,(function(i,n){return e("div",{staticClass:"tab-item",class:{on:t.tabCur==i.key},on:{click:function(e){return t.changeClass(i)}}},[t._v("\n "+t._s(i.title)+"\n ")])})),0),e("div",{staticClass:"search-box"},[e("el-input",{attrs:{placeholder:"搜索用户名称"},on:{"on-enter":t.bindSearch},model:{value:t.searchTxt,callback:function(e){t.searchTxt=e},expression:"searchTxt"}})],1)]),0<t.list.length?e("div",{staticClass:"list-box"},[e("vue-scroll",{ref:"vs",attrs:{ops:t.ops},on:{"load-before-deactivate":t.handleBeforeDeactivate}},[t._l(t.list,(function(i,n){return e("div",{key:n,staticClass:"item",on:{click:function(e){return t.goPage(i)}}},[e("div",{staticClass:"left-wrappers"},[e("div",{staticClass:"img-box"},[e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:i.avatar,expression:"item.avatar"}]}),e("div",{staticClass:"online",class:{on:i.online}})]),e("div",{staticClass:"info"},[e("div",{staticClass:"title"},[e("span",{staticClass:"line1"},[t._v(t._s(i.nickname))]),2==i.type?[e("span",{staticClass:"label"},[t._v("小程序")])]:t._e(),3==i.type?[e("span",{staticClass:"label h5"},[t._v("H5")])]:t._e(),1==i.type?[e("span",{staticClass:"label wx"},[t._v("公众号")])]:t._e(),0==i.type?[e("span",{staticClass:"label pc"},[t._v("PC端")])]:t._e()],2),1==i.message_type?e("div",{staticClass:"msg line1"},[t._v(t._s(i.message))]):t._e(),2==i.message_type?e("div",{staticClass:"msg"},[t._v("[表情]")]):t._e(),3==i.message_type?e("div",{staticClass:"msg"},[t._v("[图片]")]):t._e(),5==i.message_type?e("div",{staticClass:"msg"},[t._v("[商品]")]):t._e(),6==i.message_type?e("div",{staticClass:"msg"},[t._v("[订单]")]):t._e()])]),e("div",{staticClass:"right-wrapper"},[e("div",{staticClass:"time"},[t._v(t._s(t._f("toDay")(i.update_time)))]),0<i.mssage_num?e("span",{staticClass:"num"},[t._v(t._s(i.mssage_num))]):t._e()])])})),e("div",{staticClass:"slot-load",attrs:{slot:"load-deactive"},slot:"load-deactive"}),e("div",{staticClass:"slot-load",attrs:{slot:"load-active"},slot:"load-active"},[t._v("下滑加载更多")])],2)],1):e("empty",{attrs:{status:"3",msg:"暂无用户列表"}})],1)}),[function(){var t=this._self._c;return t("div",{staticClass:"icon-box"},[t("span",{staticClass:"iconfont icontuichu"})])}],!1,null,"211b2f0d",null);e.default=n.exports},ea87:function(t,e,i){t.exports=i.p+"system_static/img/no_zf.e61fe9b5.png"},f396:function(t,e,i){},fe2a:function(t,e,i){"use strict";i("a51b")}}]);
|