CRMEB/crmeb/public/admin/system_static/js/chunk-229f1bb3.9ff7d731.js
2025-07-24 09:53:10 +08:00

1 line
34 KiB
JavaScript

(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-229f1bb3"],{"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"},"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"},"42e5":function(t,e,i){i("be00")},"468b":function(t,e,i){t.exports=i.p+"system_static/img/no_all.174e30c0.png"},"4c2e":function(t,e,i){i("5de4")},"5de4":function(t,e,i){},"5f70":function(t,e,i){t.exports=i.p+"system_static/img/no_fh.977a0fb8.png"},"6db4":function(t,e,i){function n(t,e,i){document.addEventListener?t.addEventListener(e,i):t.attachEvent("on"+e,i)}function o(t,e,i){document.addEventListener?t.removeEventListener(e,i):t.detachEvent("on"+e,i)}function s(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function r(t,e){return t(e={exports:{}},e.exports),e.exports}function a(){var t={},e=0,i=0,n=0;return{add:function(o,s){s||(s=o,o=0),i<o?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 l(t){return t[x]}function c(t){return Array.isArray(t)||void 0!==t.length}function d(t){var e;return Array.isArray(t)?t:(e=[],L(t,(function(t){e.push(t)})),e)}function u(t){return t&&1===t.nodeType}function h(t,e,i){return t=t[e],null!=t||void 0===i?t:i}function f(t){var e=Date.now();return function(i){if((t||14)<i-e)return e=i,!0}}function p(t,e,i){function n(){var c=(new Date).getTime()-a;c<e&&0<=c?o=setTimeout(n,e-c):(o=null,i||(l=t.apply(r,s),o)||(r=s=null))}var o,s,r,a,l;return function(){r=this,s=arguments,a=(new Date).getTime();var c=i&&!o;return o=o||setTimeout(n,e),c&&(l=t.apply(r,s),r=s=null),l}}function g(t){function e(){for(c=!0;l.size();){var t=l;l=a(),t.process()}c=!1}function i(){r=setTimeout(e,0)}var n=(t=t||{}).reporter,o=_.getOption(t,"async",!0),s=_.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 r,l=a(),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),r&&(clearTimeout(r),r=null),(t?i:e)())}}}function m(t){function e(t){return o(t).object}var i=(t=t||{}).reporter,n=t.batchProcessor,o=t.stateHandler.getState;if(i)return{makeDetectable:function(t,e,s){function r(){function t(){var t;"static"===u.position&&(a.style.position="relative",(t=function(t,e,i,n){i=i[n],"auto"!==i&&"0"!==i.replace(/[^-\d\.]/g,"")&&(t.warn("An element that is positioned static has style."+n+"="+i+" 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)})(i,a,u,"top"),t(i,a,u,"right"),t(i,a,u,"bottom"),t(i,a,u,"left"))}""!==u.position&&(t(),d=!0);var e=document.createElement("object");e.style.cssText=c,e.tabIndex=-1,e.type="text/html",e.onload=function(){d||t(),function t(e,i){e.contentDocument?i(e.contentDocument):setTimeout((function(){t(e,i)}),100)}(this,(function(t){l(a)}))},S.isIE()||(e.data="about:blank"),a.appendChild(e),o(a).object=e,S.isIE()&&(e.data="about:blank")}var a,l,c,d,u;s||(s=e,e=t,t=null),t=t||{},S.isIE(8)?s(e):(a=e,l=s,d=!(c="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;"),u=window.getComputedStyle(a),t=a.offsetWidth,e=a.offsetHeight,o(a).startSize={width:t,height:e},n?n.add(r):r())},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}};throw new Error("Missing required dependency: reporter.")}function v(t){function e(t,e,i){if(t.addEventListener)t.addEventListener(e,i);else{if(!t.attachEvent)return d.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 d.error("[scroll] Don't know how to remove event listeners.");t.detachEvent("on"+e,i)}}function n(t){return h(t).container.childNodes[0].childNodes[0].childNodes[0]}function o(t){return h(t).container.childNodes[0].childNodes[0].childNodes[1]}var s,r,a,l,c,d=(t=t||{}).reporter,u=t.batchProcessor,h=t.stateHandler.getState,f=t.idHandler;if(!u)throw new Error("Missing required dependency: batchProcessor");if(d)return(t=document.createElement("div")).style.cssText="position: absolute; width: 1000px; height: 1000px; visibility: hidden; margin: 0; padding: 0;",(a=document.createElement("div")).style.cssText="position: absolute; width: 500px; height: 500px; overflow: scroll; visibility: none; top: -1500px; left: -1500px; visibility: hidden; margin: 0; padding: 0;",a.appendChild(t),document.body.insertBefore(a,document.body.firstChild),t=500-a.clientWidth,l=500-a.clientHeight,document.body.removeChild(a),s={width:t,height:l},a="erd_scroll_detection_scrollbar_style",t=r="erd_scroll_detection_container",document.getElementById(a)||(t="/* Created by the element-resize-detector library. */\n."+t+" > div::-webkit-scrollbar { display: none; }\n\n."+t+"_animation_active { -webkit-animation-duration: 0.1s; animation-duration: 0.1s; -webkit-animation-name: "+(t+="_animation")+"; animation-name: "+t+"; }\n@-webkit-keyframes "+t+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }\n@keyframes "+t+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }",l=function(t){document.head.appendChild(t)},(c=document.createElement("style")).innerHTML=t,c.id=a,l(c)),{makeDetectable:function(t,i,a){function l(){if(t.debug){var e=Array.prototype.slice.call(arguments);if(e.unshift(f.get(i),"Scroll: "),d.log.apply)d.log.apply(null,e);else for(var n=0;n<e.length;n++)d.log(e[n])}}function c(t){return t=h(t).container.childNodes[0],t=getComputedStyle(t),!t.width||-1===t.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(){var t;l("storeStyle invoked."),h(i)?(t=p(),h(i).style=t):l("Aborting because element has been uninstalled")}function m(t,e,i){h(t).lastWidth=e,h(t).lastHeight=i}function v(){return 2*s.width+1}function b(){return 2*s.height+1}function y(t){return t+10+v()}function w(t){return t+10+b()}function S(t,e,i){var s=n(t),r=(t=o(t),y(e)),a=w(i);e=2*e+v(),i=2*i+b();s.scrollLeft=r,s.scrollTop=a,t.scrollLeft=e,t.scrollTop=i}function _(){var t,n=h(i).container;return n||((n=document.createElement("div")).className=r,n.style.cssText="visibility: hidden; display: inline; width: 0px; height: 0px; z-index: -1; overflow: hidden; margin: 0; padding: 0;",(h(i).container=n).className+=" "+r+"_animation_active",i.appendChild(n),e(n,"animationstart",t=function(){h(i).onRendered&&h(i).onRendered()}),h(i).onAnimationStart=t),n}function x(){function t(){h(i).onExpand&&h(i).onExpand()}function n(){h(i).onShrink&&h(i).onShrink()}var o,a,c,u,f,p,g,m;l("Injecting elements"),h(i)?("static"===(m=h(i).style).position&&(i.style.position="relative",(g=function(t,e,i,n){i=i[n],"auto"!==i&&"0"!==i.replace(/[^-\d\.]/g,"")&&(t.warn("An element that is positioned static has style."+n+"="+i+" 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)})(d,i,m,"top"),g(d,i,m,"right"),g(d,i,m,"bottom"),g(d,i,m,"left")),g=(g=h(i).container)||_(),p="position: absolute; flex: none; overflow: hidden; z-index: -1; visibility: hidden; left: "+((f=-(1+(m=s.width)))?f+"px":"0")+"; top: "+((p=-(1+(f=s.height)))?p+"px":"0")+"; right: "+((p=-m)?p+"px":"0")+"; bottom: "+((m=-f)?m+"px":"0")+";",f=document.createElement("div"),m=document.createElement("div"),o=document.createElement("div"),a=document.createElement("div"),c=document.createElement("div"),u=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=r,m.className=r,m.style.cssText=p,o.style.cssText="position: absolute; flex: none; overflow: scroll; z-index: -1; visibility: hidden; width: 100%; height: 100%;",a.style.cssText="position: absolute; left: 0; top: 0;",c.style.cssText="position: absolute; flex: none; overflow: scroll; z-index: -1; visibility: hidden; width: 100%; height: 100%;",u.style.cssText="position: absolute; width: 200%; height: 200%;",o.appendChild(a),c.appendChild(u),m.appendChild(o),m.appendChild(c),f.appendChild(m),g.appendChild(f),e(o,"scroll",t),e(c,"scroll",n),h(i).onExpandScroll=t,h(i).onShrinkScroll=n):l("Aborting because element has been uninstalled")}function C(){function e(t,e,i){t=n(t).childNodes[0],e=y(e),i=w(i),t.style.width=e+"px",t.style.height=i+"px"}function s(n){var o=i.offsetWidth,s=i.offsetHeight;l("Storing current size",o,s),m(i,o,s),u.add(0,(function(){var n,a;h(i)?r()?(t.debug&&(n=i.offsetWidth,a=i.offsetHeight,n===o&&a===s||d.warn(f.get(i),"Scroll: Size changed before updating detector elements.")),e(i,o,s)):l("Aborting because element container has not been initialized"):l("Aborting because element has been uninstalled")})),u.add(1,(function(){h(i)?r()?S(i,o,s):l("Aborting because element container has not been initialized"):l("Aborting because element has been uninstalled")})),n&&u.add(2,(function(){h(i)?r()?n():l("Aborting because element container has not been initialized"):l("Aborting because element has been uninstalled")}))}function r(){return h(i).container}function a(){l("notifyListenersIfNeeded invoked");var t=h(i);return void 0===h(i).lastNotifiedWidth&&t.lastWidth===t.startSize.width&&t.lastHeight===t.startSize.height?l("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?l("Not notifying: Size already notified"):(l("Current size not notified, notifying..."),t.lastNotifiedWidth=t.lastWidth,t.lastNotifiedHeight=t.lastHeight,void k(h(i).listeners,(function(t){t(i)})))}function p(){var t,e;l("Scroll detected."),c(i)?l("Scroll event fired while unrendered. Ignoring..."):(t=i.offsetWidth,e=i.offsetHeight,t!==i.lastWidth||e!==i.lastHeight?(l("Element size changed."),s(a)):l("Element size has not changed ("+t+"x"+e+")."))}var g;l("registerListenersAndPositionElements invoked."),h(i)?(h(i).onRendered=function(){var t,e;l("startanimation triggered."),c(i)?l("Ignoring since element is still unrendered..."):(l("Element rendered."),t=n(i),e=o(i),0!==t.scrollLeft&&0!==t.scrollTop&&0!==e.scrollLeft&&0!==e.scrollTop||(l("Scrollbars out of sync. Updating detector elements..."),s(a)))},h(i).onExpand=p,h(i).onShrink=p,g=h(i).style,e(i,g.width,g.height)):l("Aborting because element has been uninstalled")}function L(){var t;l("finalizeDomMutation invoked."),h(i)?(t=h(i).style,m(i,t.width,t.height),S(i,t.width,t.height)):l("Aborting because element has been uninstalled")}function z(){a(i)}function E(){var t;l("Installing..."),h(i).listeners=[],t=p(),h(i).startSize={width:t.width,height:t.height},l("Element start size",h(i).startSize),u.add(0,g),u.add(1,x),u.add(2,C),u.add(3,L),u.add(4,z)}var H,O;a||(a=i,i=t,t=null),t=t||{},l("Making detectable..."),(O=H=i)!==O.ownerDocument.body&&!O.ownerDocument.body.contains(O)||null===getComputedStyle(H)?(l("Element is detached"),_(),l("Waiting until element is attached..."),h(i).onRendered=function(){l("Element is now attached"),E()}):E()},addListener:function(t,e){if(!h(t).listeners.push)throw new Error("Cannot add listener to an element that is not detectable.");h(t).listeners.push(e)},uninstall:function(t){var e=h(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)}};throw new Error("Missing required dependency: reporter.")}function b(t){e=(t=t||{}).idHandler?{get:function(e){return t.idHandler.get(e,!0)},set:t.idHandler.set}:(o=1,i=(s={idGenerator:{generate:function(){return o++}},stateHandler:C}).idGenerator,n=s.stateHandler.getState,{get:function(t){return t=n(t),t&&void 0!==t.id?t.id:null},set:function(t){var e;t=n(t);if(t)return e=i.generate(),t.id=e;throw new Error("setId required the element to have a resize detection state.")}});var e,i,n,o,s,r=t.reporter;function a(){}r||(!(l=!(s={log:a,warn:a,error:a})===r)&&window.console&&((l=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])}})(s,"log"),l(s,"warn"),l(s,"error")),r=s);var l=h(t,"batchProcessor",g({reporter:r})),f={};f.callOnAdd=!!h(t,"callOnAdd",!0),f.debug=!!h(t,"debug",!1),y=e,w={};var p,b,y,w,_={get:E,add:function(t,e){t=y.get(t),w[t]||(w[t]=[]),w[t].push(e)},removeListener:function(t,e){for(var i=E(t),n=0,o=i.length;n<o;++n)if(i[n]===e){i.splice(n,1);break}},removeAllListeners:function(t){t=E(t),t&&(t.length=0)}},x=(b={stateHandler:C}.stateHandler.getState,{isDetectable:function(t){return t=b(t),t&&!!t.isDetectable},markAsDetectable:function(t){b(t).isDetectable=!0},isBusy:function(t){return!!b(t).busy},markBusy:function(t,e){b(t).busy=!!e}}),k=h(t,"strategy","object"),z={reporter:r,batchProcessor:l,stateHandler:C,idHandler:e};function E(t){return t=y.get(t),void 0!==t&&w[t]||[]}if("scroll"===k&&(S.isLegacyOpera()?(r.warn("Scroll strategy is not supported on legacy Opera. Changing to object strategy."),k="object"):S.isIE(9)&&(r.warn("Scroll strategy is not supported on IE9. Changing to object strategy."),k="object")),"scroll"===k)p=v(z);else{if("object"!==k)throw new Error("Invalid strategy name: "+k);p=m(z)}var H={};return{listenTo:function(t,i,n){function o(t){var e=_.get(t);L(e,(function(e){e(t)}))}function s(t,e,i){_.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(!c(i))return r.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");i=d(i)}var a=0,l=h(t,"callOnAdd",f.callOnAdd),g=h(t,"onReady",(function(){})),m=h(t,"debug",f.debug);L(i,(function(t){C.getState(t)||(C.initState(t),e.set(t));var c=e.get(t);if(m&&r.log("Attaching listener to element",c,t),!x.isDetectable(t))return m&&r.log(c,"Not detectable."),x.isBusy(t)?(m&&r.log(c,"System busy making it detectable"),s(l,t,n),H[c]=H[c]||[],void H[c].push((function(){++a===i.length&&g()}))):(m&&r.log(c,"Making detectable..."),x.markBusy(t,!0),p.makeDetectable({debug:m},t,(function(t){var e,d;m&&r.log(c,"onElementDetectable"),C.getState(t)?(x.markAsDetectable(t),x.markBusy(t,!1),p.addListener(t,o),s(l,t,n),(e=C.getState(t))&&e.startSize&&(d=t.offsetWidth,e.startSize.width===d&&e.startSize.height===t.offsetHeight||o(t)),H[c]&&L(H[c],(function(t){t()}))):m&&r.log(c,"Element uninstalled before being detectable."),delete H[c],++a===i.length&&g()})));m&&r.log(c,"Already detecable, adding listener."),s(l,t,n),a++})),a===i.length&&g()},removeListener:_.removeListener,removeAllListeners:_.removeAllListeners,uninstall:function(t){if(!t)return r.error("At least one element is required.");if(u(t))t=[t];else{if(!c(t))return r.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");t=d(t)}L(t,(function(t){_.removeAllListeners(t),p.uninstall(t),C.cleanState(t)}))}}}var y,w,S,_,x,C,k,L,z,E;e=e,i=(i=i("a026"))&&i.hasOwnProperty("default")?i.default:i,y={render:function(){var t=this,e=t.$createElement;e=t._self._c||e;return e("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)}}},[e("div",{ref:"strip",staticClass:"happy-scroll-bar",style:[t.translate,s({},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 s({},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=t<0?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],n=(this.length=i*(e/t),this.horizontal?this.minLengthH:this.minLengthV);n<1&&(n*=i),this.length=this.length<n?n:this.length,n=this.maxOffset=i-this.length;this.percentage=n/(t-e)},bindEvents:function(){this.binded||(n(document,"mouseup",this.handlerMouseUp),n(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){var e;this.startMove&&this.moveThrottle(Date.now())&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation(),e=this.$refs.stripContainer.getBoundingClientRect(),e=this.$refs.strip.getBoundingClientRect()[this.config.direction]-e[this.config.direction],e=t[this.config.clientAxis]-this.axis+e,this.axis=t[this.config.clientAxis],this.changeOffset(e))},handlerWheel:function(t){var e=this.$refs.stripContainer.getBoundingClientRect();e=this.$refs.strip.getBoundingClientRect()[this.config.direction]-e[this.config.direction]+t[this.config.wheelDelta];this.changeOffset(e,t)},changeOffset:function(t,e){(t=t<0?0:t)>this.maxOffset&&(t=this.maxOffset),e&&0<t&&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(){o(document,"mouseup",this.handlerClickUp),o(document,"mousemove",this.handlerMove)}},w=r((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}}})),S=r((function(t){t=t.exports={},t.isIE=function(t){return!(-1===(e=navigator.userAgent.toLowerCase()).indexOf("msie")&&-1===e.indexOf("trident")&&-1===e.indexOf(" edge/")||t&&t!==(()=>{for(var t=3,e=document.createElement("div"),i=e.getElementsByTagName("i");e.innerHTML="\x3c!--[if gt IE "+ ++t+"]><i></i><![endif]--\x3e",i[0];);return 4<t?t:void 0})());var e},t.isLegacyOpera=function(){return!!window.opera}})),_=r((function(t){(t.exports={}).getOption=function(t,e,i){return t=t[e],null!=t||void 0===i?t:i}})),x="_erd",C={initState:function(t){return t[x]={},l(t)},getState:l,cleanState:function(t){delete t[x]}},k=w.forEach,L=w.forEach,z=i,"undefined"!=typeof window&&window.Vue&&(z=window.Vue),E={render:function(){var t=this,e=t.$createElement;e=t._self._c||e;return e("div",{ref:"happy-scroll",staticClass:"happy-scroll"},[e("div",{ref:"container",staticClass:"happy-scroll-container",style:[t.initSize],on:{scroll:function(e){return e.stopPropagation(),t.onScroll(e)}}},[e("div",{ref:"content",staticClass:"happy-scroll-content",style:[t.contentBorderStyle]},[t._t("default")],2)]),t.hideVertical?t._e():e("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():e("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:y},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(){var t,e;this.hideHorizontal||(t=this.$refs["happy-scroll"],e=this.$slots.default[0].elm,this.$refs.stripX.computeStrip(e.scrollWidth,t.clientWidth))},computeStripY:function(){var t,e;this.hideVertical||(t=this.$refs["happy-scroll"],e=this.$slots.default[0].elm,this.$refs.stripY.computeStrip(e.scrollHeight,t.clientHeight))},resizeListener:function(){var t,e,i,n,o=this;this.resize&&(t=b({strategy:"scroll",callOnAdd:!1}),e=this.$slots.default[0].elm,i=e.clientHeight,n=e.clientWidth,t.listenTo(e,(function(t){o.computeStripX(),o.computeStripY(),o.initBrowserSize();var e=void 0;t.clientHeight<i&&(e=o.smallerMoveH.toLocaleLowerCase()),"start"===(e=i<t.clientHeight?o.biggerMoveH.toLocaleLowerCase():e)&&(o.moveY=0,o.slideYChange(o.moveY)),"end"===e&&(o.moveY=t.clientHeight,o.slideYChange(o.moveY)),i=t.clientHeight,e="",t.clientWidth<n&&(e=o.smallerMoveV.toLocaleLowerCase()),"start"===(e=n<t.clientWidth?o.biggerMoveV.toLocaleLowerCase():e)&&(o.moveX=0,o.slideXChange(o.moveX)),"end"===e&&(o.moveX=t.clientWidth,o.slideXChange(o.moveX)),n=t.clientWidth})))},setContainerSize:function(){this.initSize={width:this.$refs["happy-scroll"].clientWidth+20+"px",height:this.$refs["happy-scroll"].clientHeight+20+"px"}},checkScrollMode:function(){var t,e;void 0===z._happyJS._isScrollNotUseSpace&&(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?z._happyJS._isScrollNotUseSpace=!1:z._happyJS._isScrollNotUseSpace=!0,this.isScrollNotUseSpace=z._happyJS._isScrollNotUseSpace)}},beforeCreate:function(){var t=z._happyJS=z._happyJS||{};this.isScrollNotUseSpace=t._isScrollNotUseSpace},created:function(){this.updateSyncScroll=p((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",E),e.default={install:function(t){t.component("happy-scroll",E)},version:"2.1.1"},e.HappyScroll=E,e.version="2.1.1",Object.defineProperty(e,"__esModule",{value:!0})},"7a1a":function(t,e,i){i.d(e,"a",(function(){return o}));var n=i("6b6c");function o(){return Object(n.a)({url:"service/info",method:"get",kefu:!0})}},"8b1f":function(t,e,i){i("a9e3");var n={name:"empty",props:{status:{type:String|Number,default:1},msg:{type:String,default:""}}},o=(i("42e5"),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,"06aa3020",null);e.a=o.exports},a9d3:function(t,e,i){i.r(e);var n=i("5530"),o=(i("99af"),i("14d9"),i("a434"),i("e9f5"),i("7d54"),i("b64b"),i("d3b7"),i("3ca3"),i("159b"),i("ddb0"),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:"用户列表"}],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("ca18"),i("4c2e"),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",{directives:[{name:"db-click",rawName:"v-db-click"}],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",{directives:[{name:"db-click",rawName:"v-db-click"}],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",{directives:[{name:"db-click",rawName:"v-db-click"}],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",{directives:[{name:"db-click",rawName:"v-db-click"}],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",{directives:[{name:"db-click",rawName:"v-db-click"}],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:{change: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",{directives:[{name:"db-click",rawName:"v-db-click"}],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,"625ba481",null);e.default=n.exports},be00:function(t,e,i){},c5e2:function(t,e,i){},ca18:function(t,e,i){i("c5e2")},ea87:function(t,e,i){t.exports=i.p+"system_static/img/no_zf.e61fe9b5.png"}}]);