1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-6508ceea"],{"011a":function(t,e,i){t.exports=i.p+"view_admin/img/no_chat.b9c3e583.png"},"060a":function(t,e,i){t.exports=i.p+"view_admin/img/no_tk.401d40f4.png"},"16b0":function(t,e,i){t.exports=i.p+"view_admin/media/notice.51a07ae7.wav"},3537:function(t,e,i){},4112:function(t,e,i){t.exports=i.p+"view_admin/img/no_user.a09b282b.png"},"468b":function(t,e,i){t.exports=i.p+"view_admin/img/no_all.174e30c0.png"},"5f70":function(t,e,i){t.exports=i.p+"view_admin/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 t(e={exports:{}},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[b]}function l(t){return Array.isArray(t)||void 0!==t.length}function c(t){if(Array.isArray(t))return t;var e=[];return _(t,(function(t){e.push(t)})),e}function u(t){return t&&1===t.nodeType}function d(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 h=function(t){var e=Date.now();return function(i){if(i-e>(t||14))return e=i,!0}},f={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:h(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)}},p=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}}})),g=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}})),v=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}})),m=function(t){function e(){for(c=!0;l.size();){var t=l;l=r(),t.process()}c=!1}function i(){a=function(t){return setTimeout(t,0)}(e)}var n=(t=t||{}).reporter,o=v.getOption(t,"async",!0),s=v.getOption(t,"auto",!0);s&&!o&&(n&&n.warn("Invalid options combination. auto=true and async=false is invalid. Setting async=true."),o=!0);var a,l=r(),c=!1;return{add:function(t,e){!c&&s&&o&&0===l.size()&&i(),l.add(t,e)},force:function(t){c||(void 0===t&&(t=o),a&&(function(t){clearTimeout(t)}(a),a=null),t?i():e())}}},b="_erd",y={initState:function(t){return t[b]={},a(t)},getState:a,cleanState:function(t){delete t[b]}},w=p.forEach,S=function(t){function e(t,e,i){if(t.addEventListener)t.addEventListener(e,i);else{if(!t.attachEvent)return s.error("[scroll] Don't know how to add event listeners.");t.attachEvent("on"+e,i)}}function i(t,e,i){if(t.removeEventListener)t.removeEventListener(e,i);else{if(!t.detachEvent)return s.error("[scroll] Don't know how to remove event listeners.");t.detachEvent("on"+e,i)}}function n(t){return a(t).container.childNodes[0].childNodes[0].childNodes[0]}function o(t){return a(t).container.childNodes[0].childNodes[0].childNodes[1]}var s=(t=t||{}).reporter,r=t.batchProcessor,a=t.stateHandler.getState,l=t.idHandler;if(!r)throw new Error("Missing required dependency: batchProcessor");if(!s)throw new Error("Missing required dependency: reporter.");var c=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,i,d){function h(){if(t.debug){var e=Array.prototype.slice.call(arguments);if(e.unshift(l.get(i),"Scroll: "),s.log.apply)s.log.apply(null,e);else for(var n=0;n<e.length;n++)s.log(e[n])}}function f(t){var e=a(t).container.childNodes[0],i=getComputedStyle(e);return!i.width||-1===i.width.indexOf("px")}function p(){var t=getComputedStyle(i),e={};return e.position=t.position,e.width=i.offsetWidth,e.height=i.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 g(){if(h("storeStyle invoked."),a(i)){var t=p();a(i).style=t}else h("Aborting because element has been uninstalled")}function v(t,e,i){a(t).lastWidth=e,a(t).lastHeight=i}function m(t){return n(t).childNodes[0]}function b(){return 2*c.width+1}function y(){return 2*c.height+1}function S(t){return t+10+b()}function _(t){return t+10+y()}function C(t,e,i){var s=n(t),r=o(t),a=S(e),l=_(i),c=function(t){return 2*t+b()}(e),u=function(t){return 2*t+y()}(i);s.scrollLeft=a,s.scrollTop=l,r.scrollLeft=c,r.scrollTop=u}function x(){var t=a(i).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;",a(i).container=t,function(t){t.className+=" "+u+"_animation_active"}(t),i.appendChild(t);var n=function(){a(i).onRendered&&a(i).onRendered()};e(t,"animationstart",n),a(i).onAnimationStart=n}return t}function L(){function t(){a(i).onExpand&&a(i).onExpand()}function n(){a(i).onShrink&&a(i).onShrink()}if(h("Injecting elements"),a(i)){!function(){var t=a(i).style;if("static"===t.position){i.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(s,i,t,"top"),e(s,i,t,"right"),e(s,i,t,"bottom"),e(s,i,t,"left")}}();var o=a(i).container;o||(o=x());var r=c.width,l=c.height,d="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","left: "+t+"; top: "+e+"; right: "+(n=n?n+"px":"0")+"; bottom: "+i+";"}(-(1+r),-(1+l),-l,-r),f=document.createElement("div"),p=document.createElement("div"),g=document.createElement("div"),v=document.createElement("div"),m=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=d,g.style.cssText="position: absolute; flex: none; overflow: scroll; z-index: -1; visibility: hidden; width: 100%; height: 100%;",v.style.cssText="position: absolute; left: 0; top: 0;",m.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(v),m.appendChild(b),p.appendChild(g),p.appendChild(m),f.appendChild(p),o.appendChild(f),e(g,"scroll",t),e(m,"scroll",n),a(i).onExpandScroll=t,a(i).onShrinkScroll=n}else h("Aborting because element has been uninstalled")}function z(){function e(t,e,i){var n=m(t),o=S(e),s=_(i);n.style.width=o+"px",n.style.height=s+"px"}function c(n){var o=i.offsetWidth,c=i.offsetHeight;h("Storing current size",o,c),v(i,o,c),r.add(0,(function(){if(a(i))if(u()){if(t.debug){var n=i.offsetWidth,r=i.offsetHeight;n===o&&r===c||s.warn(l.get(i),"Scroll: Size changed before updating detector elements.")}e(i,o,c)}else h("Aborting because element container has not been initialized");else h("Aborting because element has been uninstalled")})),r.add(1,(function(){a(i)?u()?C(i,o,c):h("Aborting because element container has not been initialized"):h("Aborting because element has been uninstalled")})),n&&r.add(2,(function(){a(i)?u()?n():h("Aborting because element container has not been initialized"):h("Aborting because element has been uninstalled")}))}function u(){return!!a(i).container}function d(){h("notifyListenersIfNeeded invoked");var t=a(i);return void 0===a(i).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 w(a(i).listeners,(function(t){t(i)})))}function p(){if(h("Scroll detected."),f(i))h("Scroll event fired while unrendered. Ignoring...");else{var t=i.offsetWidth,e=i.offsetHeight;t!==i.lastWidth||e!==i.lastHeight?(h("Element size changed."),c(d)):h("Element size has not changed ("+t+"x"+e+").")}}if(h("registerListenersAndPositionElements invoked."),a(i)){a(i).onRendered=function(){if(h("startanimation triggered."),f(i))h("Ignoring since element is still unrendered...");else{h("Element rendered.");var t=n(i),e=o(i);0!==t.scrollLeft&&0!==t.scrollTop&&0!==e.scrollLeft&&0!==e.scrollTop||(h("Scrollbars out of sync. Updating detector elements..."),c(d))}},a(i).onExpand=p,a(i).onShrink=p;var g=a(i).style;e(i,g.width,g.height)}else h("Aborting because element has been uninstalled")}function k(){if(h("finalizeDomMutation invoked."),a(i)){var t=a(i).style;v(i,t.width,t.height),C(i,t.width,t.height)}else h("Aborting because element has been uninstalled")}function E(){d(i)}function O(){var t;h("Installing..."),a(i).listeners=[],t=p(),a(i).startSize={width:t.width,height:t.height},h("Element start size",a(i).startSize),r.add(0,g),r.add(1,L),r.add(2,z),r.add(3,k),r.add(4,E)}d||(d=i,i=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)}(i)?(h("Element is detached"),x(),h("Waiting until element is attached..."),a(i).onRendered=function(){h("Element is now attached"),O()}):O()},addListener:function(t,e){if(!a(t).listeners.push)throw new Error("Cannot add listener to an element that is not detectable.");a(t).listeners.push(e)},uninstall:function(t){var e=a(t);e&&(e.onExpandScroll&&i(n(t),"scroll",e.onExpandScroll),e.onShrinkScroll&&i(o(t),"scroll",e.onShrinkScroll),e.onAnimationStart&&i(e.container,"animationstart",e.onAnimationStart),e.container&&t.removeChild(e.container))}}},_=p.forEach,C=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=function(){var t=1;return{generate:function(){return t++}}}(),n=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}}}({idGenerator:i,stateHandler:y});e=n}var o=t.reporter;o||(o=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}(!1===o));var s=d(t,"batchProcessor",m({reporter:o})),r={};r.callOnAdd=!!d(t,"callOnAdd",!0),r.debug=!!d(t,"debug",!1);var a,h=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)}}}(e),f=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}}}({stateHandler:y}),p=d(t,"strategy","object"),v={reporter:o,batchProcessor:s,stateHandler:y,idHandler:e};if("scroll"===p&&(g.isLegacyOpera()?(o.warn("Scroll strategy is not supported on legacy Opera. Changing to object strategy."),p="object"):g.isIE(9)&&(o.warn("Scroll strategy is not supported on IE9. Changing to object strategy."),p="object")),"scroll"===p)a=S(v);else{if("object"!==p)throw new Error("Invalid strategy name: "+p);a=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||{},g.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(),a=!0);var s=document.createElement("object");s.style.cssText=r,s.tabIndex=-1,s.type="text/html",s.onload=function(){a||n(),function t(e,i){e.contentDocument?i(e.contentDocument):setTimeout((function(){t(e,i)}),100)}(this,(function(i){e(t)}))},g.isIE()||(s.data="about:blank"),t.appendChild(s),o(t).object=s,g.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,u=t.offsetHeight;o(t).startSize={width:c,height:u},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.");g.isIE(8)?(o(t).object={proxy:n},t.attachEvent("onresize",n)):e(t).contentDocument.defaultView.addEventListener("resize",n)},uninstall:function(t){g.isIE(8)?t.detachEvent("onresize",o(t).object.proxy):t.removeChild(e(t)),delete o(t).object}}}(v)}var b={};return{listenTo:function(t,i,n){function s(t){var e=h.get(t);_(e,(function(e){e(t)}))}function p(t,e,i){h.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(u(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,v=d(t,"callOnAdd",r.callOnAdd),m=d(t,"onReady",(function(){})),w=d(t,"debug",r.debug);_(i,(function(t){y.getState(t)||(y.initState(t),e.set(t));var r=e.get(t);if(w&&o.log("Attaching listener to element",r,t),!f.isDetectable(t))return w&&o.log(r,"Not detectable."),f.isBusy(t)?(w&&o.log(r,"System busy making it detectable"),p(v,t,n),b[r]=b[r]||[],void b[r].push((function(){++g===i.length&&m()}))):(w&&o.log(r,"Making detectable..."),f.markBusy(t,!0),a.makeDetectable({debug:w},t,(function(t){if(w&&o.log(r,"onElementDetectable"),y.getState(t)){f.markAsDetectable(t),f.markBusy(t,!1),a.addListener(t,s),p(v,t,n);var e=y.getState(t);if(e&&e.startSize){var l=t.offsetWidth,c=t.offsetHeight;e.startSize.width===l&&e.startSize.height===c||s(t)}b[r]&&_(b[r],(function(t){t()}))}else w&&o.log(r,"Element uninstalled before being detectable.");delete b[r],++g===i.length&&m()})));w&&o.log(r,"Already detecable, adding listener."),p(v,t,n),g++})),g===i.length&&m()},removeListener:h.removeListener,removeAllListeners:h.removeAllListeners,uninstall:function(t){if(!t)return o.error("At least one element is required.");if(u(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)}_(t,(function(t){h.removeAllListeners(t),a.uninstall(t),y.cleanState(t)}))}}},x=e;"undefined"!=typeof window&&window.Vue&&(x=window.Vue);var L={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:f},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:h(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=C({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===x._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?x._happyJS._isScrollNotUseSpace=!1:x._happyJS._isScrollNotUseSpace=!0,this.isScrollNotUseSpace=x._happyJS._isScrollNotUseSpace)}}},beforeCreate:function(){var t=x._happyJS=x._happyJS||{};this.isScrollNotUseSpace=t._isScrollNotUseSpace},created:function(){var t,e,i,n,o,s,r,a,l;this.updateSyncScroll=(t=function(){this.$emit("update:scrollTop",this.moveY),this.$emit("update:scrollLeft",this.moveX)},e=this.throttle,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)))},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})},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",L);var z={install:function(t){t.component("happy-scroll",L)},version:"2.1.1"};t.default=z,t.HappyScroll=L,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("b6bd");function o(){return Object(n.a)({url:"service/info",method:"get",kefu:!0})}},"88fd":function(t,e,i){},"8b1f":function(t,e,i){"use strict";var n={name:"empty",props:{status:{type:String|Number,default:1},msg:{type:String,default:""}}},o=(i("e2fd"),i("2877")),s=Object(o.a)(n,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"empty-wrapper"},[1==t.status?[n("img",{attrs:{src:i("011a"),alt:""}})]:t._e(),2==t.status?[n("img",{attrs:{src:i("4112"),alt:""}})]:t._e(),3==t.status?[n("img",{attrs:{src:i("468b"),alt:""}})]:t._e(),4==t.status?[n("img",{attrs:{src:i("ea87"),alt:""}})]:t._e(),5==t.status?[n("img",{attrs:{src:i("5f70"),alt:""}})]:t._e(),6==t.status?[n("img",{attrs:{src:i("060a"),alt:""}})]:t._e(),n("p",[t._v(t._s(t.msg))])],2)}),[],!1,null,"345b1430",null);e.a=s.exports},"8d75":function(t,e,i){"use strict";var n=i("3537");i.n(n).a},a9d3:function(t,e,i){"use strict";i.r(e);var n=i("c276"),o=i("49ea"),s=i("42e3"),r=i("7a1a"),a=i("6db4"),l=i("2f62"),c=i("8b1f"),u=(i("2d959"),i("d708"));function d(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function h(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var f=i("16b0"),p=(f=new Audio(f),{name:"chat_list.vue",components:{HappyScroll:a.HappyScroll,empty:c.a},data:function(){return{roterPre:u.a.roterPre,ops:{vuescroll:{mode:"native",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:"5px"}},list:[],page:1,limit:10,isScroll:!0,searchTxt:"",isOpen:!0,kefuInfo:{},isOnLine:!1,tabCur:0,tabList:[{key:0,title:"用户列表"},{key:1,title:"游客列表"}],wsLogin:JSON.parse(sessionStorage.getItem("wsLogin")),pageWs:""}},filters:{toDay:function(t){if(!t)return"";var e=new Date,i=(e.getFullYear(),(e.getMonth()+1<10?"0"+(e.getMonth()+1):e.getMonth()+1)+"-"),n=(e.getDate()<10?"0"+e.getDate():e.getDate())+" ",o=(e.getHours()<10?"0"+e.getHours():e.getHours())+":",s=e.getMinutes()<10?"0"+e.getMinutes():e.getMinutes();return e.getSeconds(),e.getSeconds(),i+n+o+s}},created:function(){Promise.all([this.getKefuInfo(),this.getList()]),void 0===this.bus.pageWs?(this.bus.pageWs=Object(o.a)(!0),this.wsKefuLogin()):this.wsStart()},mounted:function(){window.addEventListener("beforeunload",(function(t){sessionStorage.setItem("wsLogin",!1)})),this.wsLogin=JSON.parse(sessionStorage.getItem("wsLogin"))||!1},methods:function(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?d(i,!0).forEach((function(e){h(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):d(i).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}({},Object(l.b)("admin/account",["logout","logoutKefu"]),{wsKefuLogin:function(){var t=this,e=this,i=n.a.cookies.kefuGet("token");this.bus.pageWs.then((function(n){!e.wsLogin&&i&&n.send({type:"kefu_login",data:i}),n.$on("success",(function(e){sessionStorage.setItem("wsLogin",!0),t.wsStart()})),n.$on("timeout",(function(e){setTimeout((function(){t.wsRestart()}),2e3)}))})).catch((function(e){setTimeout((function(){t.wsRestart()}),2e3)}))},wsStart:function(){var t=this,e=this;n.a.cookies.kefuGet("token"),this.bus.pageWs.then((function(i){i.$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)}})),i.$on("mssage_num",(function(i){if(i.num>0&&f.play(),i.recored.id){var n=!1;e.list.forEach((function(t,o,s){if(i.recored.id==t.id&&(n=!0,i.recored.is_tourist==e.tabCur)){var r=i.recored;s.splice(o,1),s.unshift(r)}})),n||i.recored.is_tourist==t.tabCur&&t.userList.unshift(i.recored),i.recored.is_tourist!=t.tabCur&&i.recored.id&&t.$Notice.info({title:t.tabCur?"用户发来消息啦!":"游客发来消息啦!"})}})),i.$on("timeout",(function(e){setTimeout((function(){t.wsRestart()}),2e3)}))})).catch((function(e){setTimeout((function(e){t.wsRestart()}),2e3)}))},wsRestart:function(){this.bus.pageWs=Object(o.a)(!0),this.wsKefuLogin()},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,this.bus.pageWs.then((function(e){e.send({type:"online",data:{online:t}})}))},getKefuInfo:function(){var t=this;Object(r.a)().then((function(e){t.kefuInfo=e.data,window.document.title="".concat(e.data.site_name," - 消息列表")}))},getList:function(){var t=this;this.isScroll&&Object(s.H)({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++,e.data.length&&setTimeout((function(){t.$refs.vs.refresh()}),100)}))},outLogin:function(){var t=this;this.$Modal.confirm({title:"退出登录确认",content:"您确定退出登录当前账户吗?打开的标签页和个人设置将会保存。",onOk:function(){t.logoutKefu({confirm:!1,vm:t})},onCancel:function(){}})},bindSearch:function(t){this.page=1,this.list=[],this.isScroll=!0,this.getList()},goPage:function(t){this.$router.push({path:"".concat(u.a.routePreKF,"/mobile_chat"),query:{toUid:t.to_uid,nickname:t.nickname,is_tourist:this.tabCur}})},handleBeforeDeactivate:function(t,e,i){this.getList(),i()}})}),g=(i("8d75"),i("2877")),v=Object(g.a)(p,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"chat-list"},[i("div",{staticClass:"head-box"},[i("div",{staticClass:"hd"},[i("div",{staticClass:"left-wrapper"},[i("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.kefuInfo.avatar,expression:"kefuInfo.avatar"}]}),i("div",{staticClass:"info",on:{click:function(e){t.isOnLine=!t.isOnLine}}},[i("div",[t._v(t._s(t.kefuInfo.nickname))]),i("div",{staticClass:"status"},[i("span",{staticClass:"doc",class:{off:!t.kefuInfo.online}}),i("span",[t._v(t._s(t.kefuInfo.online?"在线":"离线"))])])]),i("div",{directives:[{name:"show",rawName:"v-show",value:t.isOnLine,expression:"isOnLine"}],staticClass:"down-wrapper"},[i("div",{staticClass:"item",on:{click:function(e){return t.changOnline(1)}}},[i("span",{staticClass:"dot green"}),t._v("在线\n "),t.kefuInfo.online?i("span",{staticClass:"iconfont iconduihao"}):t._e()]),i("div",{staticClass:"item",on:{click:function(e){return t.changOnline(0)}}},[i("span",{staticClass:"dot"}),t._v("离线\n "),t.kefuInfo.online?t._e():i("span",{staticClass:"iconfont iconduihao"})])])]),i("div",{staticClass:"right-wrapper",on:{click:t.outLogin}},[t._m(0),i("div",{staticClass:"ml-add"},[t._v("退出登录")])])]),i("div",{staticClass:"tab-box"},t._l(t.tabList,(function(e,n){return i("div",{staticClass:"tab-item",class:{on:t.tabCur==e.key},on:{click:function(i){return t.changeClass(e)}}},[t._v(t._s(e.title))])})),0),i("div",{staticClass:"search-box"},[i("Input",{attrs:{placeholder:"搜索用户名称"},on:{"on-enter":t.bindSearch},model:{value:t.searchTxt,callback:function(e){t.searchTxt=e},expression:"searchTxt"}})],1)]),t.list.length>0?i("div",{staticClass:"list-box"},[i("vue-scroll",{ref:"vs",attrs:{ops:t.ops},on:{"load-before-deactivate":t.handleBeforeDeactivate}},[t._l(t.list,(function(e,n){return i("div",{key:n,staticClass:"item",on:{click:function(i){return t.goPage(e)}}},[i("div",{staticClass:"left-wrapper"},[i("div",{staticClass:"img-box"},[i("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.avatar,expression:"item.avatar"}]}),i("div",{staticClass:"online",class:{on:e.online}})]),i("div",{staticClass:"info"},[i("div",{staticClass:"title"},[i("span",{staticClass:"line1"},[t._v(t._s(e.nickname))]),2==e.type?[i("span",{staticClass:"label"},[t._v("小程序")])]:t._e(),3==e.type?[i("span",{staticClass:"label h5"},[t._v("H5")])]:t._e(),1==e.type?[i("span",{staticClass:"label wx"},[t._v("公众号")])]:t._e(),0==e.type?[i("span",{staticClass:"label pc"},[t._v("PC端")])]:t._e()],2),1==e.message_type?i("div",{staticClass:"msg line1"},[t._v(t._s(e.message))]):t._e(),2==e.message_type?i("div",{staticClass:"msg"},[t._v("[表情]")]):t._e(),3==e.message_type?i("div",{staticClass:"msg"},[t._v("[图片]")]):t._e(),5==e.message_type?i("div",{staticClass:"msg"},[t._v("[商品]")]):t._e(),6==e.message_type?i("div",{staticClass:"msg"},[t._v("[订单]")]):t._e(),7==e.message_type?i("div",{staticClass:"msg"},[t._v("[退款订单]")]):t._e()])]),i("div",{staticClass:"right-wrapper"},[i("div",{staticClass:"time"},[t._v(t._s(t._f("toDay")(e.update_time)))]),e.mssage_num>0?i("span",{staticClass:"num"},[t._v(t._s(e.mssage_num))]):t._e()])])})),i("div",{staticClass:"slot-load",attrs:{slot:"load-deactive"},slot:"load-deactive"}),i("div",{staticClass:"slot-load",attrs:{slot:"load-active"},slot:"load-active"},[t._v("下滑加载更多")])],2)],1):i("empty",{attrs:{status:"3",msg:"暂无用户列表"}})],1)}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"icon-box"},[e("span",{staticClass:"iconfont icontuichu"})])}],!1,null,"9100baa0",null);e.default=v.exports},e2fd:function(t,e,i){"use strict";var n=i("88fd");i.n(n).a},ea87:function(t,e,i){t.exports=i.p+"view_admin/img/no_zf.e61fe9b5.png"}}]);
|