You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
66 KiB
1 lines
66 KiB
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-569a92c6"],{"0404":function(t,e,n){},"0b65":function(t,e,n){"use strict";e.a={shortcuts:[{text:"今天",value:function(){var t=new Date,e=new Date;return e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate())),[e,t]}},{text:"昨天",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-1))),t.setTime(t.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-1))),[e,t]}},{text:"最近7天",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-6))),[e,t]}},{text:"最近30天",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-29))),[e,t]}},{text:"上月",value:function(){var t=new Date,e=new Date,n=new Date(e.getFullYear(),e.getMonth(),0).getDate();return e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth()-1,1))),t.setTime(t.setTime(new Date((new Date).getFullYear(),(new Date).getMonth()-1,n))),[e,t]}},{text:"本月",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),1))),[e,t]}},{text:"本年",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),0,1))),[e,t]}}]}},"0c9f":function(t,e,n){"use strict";n.d(e,"k",(function(){return r})),n.d(e,"p",(function(){return o})),n.d(e,"n",(function(){return a})),n.d(e,"m",(function(){return s})),n.d(e,"q",(function(){return c})),n.d(e,"s",(function(){return l})),n.d(e,"t",(function(){return u})),n.d(e,"w",(function(){return d})),n.d(e,"u",(function(){return h})),n.d(e,"v",(function(){return f})),n.d(e,"r",(function(){return p})),n.d(e,"o",(function(){return m})),n.d(e,"l",(function(){return g})),n.d(e,"g",(function(){return v})),n.d(e,"j",(function(){return y})),n.d(e,"a",(function(){return w})),n.d(e,"b",(function(){return b})),n.d(e,"c",(function(){return x})),n.d(e,"d",(function(){return S})),n.d(e,"e",(function(){return D})),n.d(e,"f",(function(){return L})),n.d(e,"h",(function(){return E})),n.d(e,"i",(function(){return O}));var i=n("b6bd");function r(t){return Object(i.a)({url:"/statistic/product/get_basic",method:"get",params:t})}function o(t){return Object(i.a)({url:"/statistic/product/get_trend",method:"get",params:t})}function a(t){return Object(i.a)({url:"/statistic/product/get_product_ranking",method:"get",params:t})}function s(t){return Object(i.a)({url:"/statistic/product/get_excel",method:"get",params:t})}function c(t){return Object(i.a)({url:"/statistic/user/get_basic",method:"get",params:t})}function l(t){return Object(i.a)({url:"/statistic/user/get_trend",method:"get",params:t})}function u(t){return Object(i.a)({url:"/statistic/user/get_wechat",method:"get",params:t})}function d(t){return Object(i.a)({url:"/statistic/user/get_wechat_trend",method:"get",params:t})}function h(t){return Object(i.a)({url:"/statistic/user/get_region",method:"get",params:t})}function f(t){return Object(i.a)({url:"/statistic/user/get_sex",method:"get",params:t})}function p(t){return Object(i.a)({url:"/statistic/user/get_excel",method:"get",params:t})}function m(t){return Object(i.a)({url:"/statistic/trade/top_trade",method:"get",params:t})}function g(t){return Object(i.a)({url:"/statistic/trade/bottom_trade",method:"get",params:t})}function v(t){return Object(i.a)({url:"finance/flow/get_list",method:"get",params:t})}function y(t,e){return Object(i.a)({url:"finance/flow/set_mark/".concat(t),method:"post",data:e})}function w(t){return Object(i.a)({url:"/statistic/balance/get_basic",method:"get",params:t})}function b(t){return Object(i.a)({url:"/statistic/balance/get_channel",method:"get",params:t})}function x(t){return Object(i.a)({url:"/statistic/balance/get_trend",method:"get",params:t})}function S(t){return Object(i.a)({url:"/statistic/balance/get_type",method:"get",params:t})}function D(t){return Object(i.a)({url:"/statistic/order/get_basic",method:"get",params:t})}function L(t){return Object(i.a)({url:"/statistic/order/get_channel",method:"get",params:t})}function E(t){return Object(i.a)({url:"/statistic/order/get_trend",method:"get",params:t})}function O(t){return Object(i.a)({url:"/statistic/order/get_type",method:"get",params:t})}},"115a":function(t,e,n){},"40cd":function(t,e,n){},"585e":function(t,e,n){"use strict";n.r(e);var i=n("0c9f"),r=n("c71e"),o=n("61f7"),a=n("2e83"),s=n("0b65");function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */l=function(){return e};var t,e={},n=Object.prototype,i=n.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function d(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{d({},"")}catch(t){d=function(t,e,n){return t[e]=n}}function h(t,e,n,i){var o=e&&e.prototype instanceof w?e:w,a=Object.create(o.prototype),s=new M(i||[]);return r(a,"_invoke",{value:C(t,n,s)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var p="suspendedStart",m="suspendedYield",g="executing",v="completed",y={};function w(){}function b(){}function x(){}var S={};d(S,a,(function(){return this}));var D=Object.getPrototypeOf,L=D&&D(D(z([])));L&&L!==n&&i.call(L,a)&&(S=L);var E=x.prototype=w.prototype=Object.create(S);function O(t){["next","throw","return"].forEach((function(e){d(t,e,(function(t){return this._invoke(e,t)}))}))}function T(t,e){function n(r,o,a,s){var l=f(t[r],t,o);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==c(d)&&i.call(d,"__await")?e.resolve(d.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(d).then((function(t){u.value=t,a(u)}),(function(t){return n("throw",t,a,s)}))}s(l.arg)}var o;r(this,"_invoke",{value:function(t,i){function r(){return new e((function(e,r){n(t,i,e,r)}))}return o=o?o.then(r,r):r()}})}function C(e,n,i){var r=p;return function(o,a){if(r===g)throw Error("Generator is already running");if(r===v){if("throw"===o)throw a;return{value:t,done:!0}}for(i.method=o,i.arg=a;;){var s=i.delegate;if(s){var c=_(s,i);if(c){if(c===y)continue;return c}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(r===p)throw r=v,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);r=g;var l=f(e,n,i);if("normal"===l.type){if(r=i.done?v:m,l.arg===y)continue;return{value:l.arg,done:i.done}}"throw"===l.type&&(r=v,i.method="throw",i.arg=l.arg)}}}function _(e,n){var i=n.method,r=e.iterator[i];if(r===t)return n.delegate=null,"throw"===i&&e.iterator.return&&(n.method="return",n.arg=t,_(e,n),"throw"===n.method)||"return"!==i&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+i+"' method")),y;var o=f(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,y;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function j(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function M(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function z(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function n(){for(;++r<e.length;)if(i.call(e,r))return n.value=e[r],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(c(e)+" is not iterable")}return b.prototype=x,r(E,"constructor",{value:x,configurable:!0}),r(x,"constructor",{value:b,configurable:!0}),b.displayName=d(x,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,x):(t.__proto__=x,d(t,u,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},O(T.prototype),d(T.prototype,s,(function(){return this})),e.AsyncIterator=T,e.async=function(t,n,i,r,o){void 0===o&&(o=Promise);var a=new T(h(t,n,i,r),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(E),d(E,u,"Generator"),d(E,a,(function(){return this})),d(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var i in e)n.push(i);return n.reverse(),function t(){for(;n.length;){var i=n.pop();if(i in e)return t.value=i,t.done=!1,t}return t.done=!0,t}},e.values=z,M.prototype={constructor:M,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(k),!e)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(i,r){return s.type="throw",s.arg=e,n.next=i,r&&(n.method="next",n.arg=t),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),l=i.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;k(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(e,n,i){return this.delegate={iterator:z(e),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=t),y}},e}function u(t,e,n,i,r,o,a){try{var s=t[o](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(i,r)}function d(t){return function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function a(t){u(o,i,r,a,s,"next",t)}function s(t){u(o,i,r,a,s,"throw",t)}a(void 0)}))}}var h={name:"productInfo",components:{echartsNew:r.a},data:function(){return{spinShow:!1,grid:{xl:8,lg:8,md:8,sm:24,xs:24},options:s.a,name:"近30天",timeVal:[],dataTime:"",list:[],optionData:{},style:{height:"400px"}}},created:function(){var t=new Date,e=new Date;e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-29))),this.timeVal=[e,t],this.dataTime=Object(o.a)(e,"yyyy/MM/dd")+"-"+Object(o.a)(t,"yyyy/MM/dd")},mounted:function(){this.getStatistics(),this.getTrend()},methods:{exports:function(){var t=d(l().mark((function t(){var e,n,i,r,o,s;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=[],n=[],i=[],r="",o={data:this.dataTime,page:1},t.next=4,this.getExcelData(o);case 4:s=t.sent,r||(r=s.filename),n.length||(n=s.filekey),e.length||(e=s.header),i=i.concat(s.export),Object(a.a)(e,n,r,i);case 10:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}(),getExcelData:function(t){return new Promise((function(e,n){Object(i.m)(t).then((function(t){return e(t.data)}))}))},onSeach:function(){this.getStatistics(),this.getTrend()},onchangeTime:function(t){this.timeVal=t,this.dataTime=this.timeVal[0]?this.timeVal.join("-"):"",this.onSeach()},getStatistics:function(){var t=this;Object(i.k)({data:this.dataTime}).then(function(){var e=d(l().mark((function e(n){var i;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=n.data,t.list=[{name:"商品浏览量",icon:"iconshangpinliulanliang",list:i.browse,txt:"在选定条件下,所有商品详情页被访问的次数,一个人在统计时间内访问多次记为多次"},{name:"商品访客数",icon:"iconshangpinfangkeshu",list:i.user,txt:"在选定条件下,访问任何商品详情页的人数,一个人在统计时间范围内访问多次只记为一个"},{name:"加购件数",icon:"iconjiagoujianshu",list:i.cart,txt:"在选定条件下,添加商品进入购物车的商品件数"},{name:"下单件数",icon:"iconxiadanjianshu",list:i.order,txt:"在选定条件下,成功下单的商品件数之和(拼团商品在成团之后计入,线下支付订单在后台确认支付后计入,不剔除退款订单)"},{name:"支付件数",icon:"iconzhifujianshu",list:i.pay,txt:"在选定条件下,成功付款订单的商品件数之和(拼团商品在成团之后计入,线下支付订单在后台确认支付后计入,不剔除退款订单)"},{name:"支付金额",icon:"iconzhifujine",list:i.payPrice,txt:"在选定条件下,成功付款订单的商品金额之和(拼团商品在成团之后计入,线下支付订单在后台确认支付后计入,不剔除退款订单)"},{name:"成本金额",icon:"iconchengbenjine",list:i.cost,txt:"在选定条件下,成功付款订单的商品成本金额之和"},{name:"退款金额",icon:"icontuikuan",list:i.refundPrice,txt:"在选定条件下,成功退款的商品金额之和"},{name:"退款件数",icon:"icontuikuanjianshu",list:i.refund,txt:"在选定条件下,成功退款的商品件数之和"},{name:"访客-支付转化率",icon:"iconfangke-zhifuzhuanhuashuai",list:i.payPercent,txt:"在选定条件下, 付款人数 / 访客数"}];case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$Message.error(e.msg)}))},getTrend:function(){var t=this;this.spinShow=!0,Object(i.p)({data:this.dataTime}).then(function(){var e=d(l().mark((function e(n){var i,r,a;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=n.data.series.map((function(t){return t.name})),r=n.data.xAxis,a=["#B37FEB","#FFAB2B","#1890FF","#00C050"],n.data.series.map((function(t,e){t.itemStyle={normal:{color:a[e]}}})),t.optionData={tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}}},legend:{x:"center",data:i},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},toolbox:{show:!0,right:"1.5%",feature:{saveAsImage:{name:"商品统计_"+Object(o.a)(new Date(Number((new Date).getTime())),"yyyyMMddhhmmss")}}},xAxis:{type:"category",boundaryGap:!0,axisLabel:{interval:0,rotate:40,textStyle:{color:"#000000"}},data:r},yAxis:[{type:"value",name:"金额",axisLine:{show:!1},axisTick:{show:!1},axisLabel:{textStyle:{color:"#7F8B9C"}},splitLine:{show:!0,lineStyle:{color:"#F5F7F9"}}},{type:"value",name:"数量",axisLine:{show:!1},axisTick:{show:!1},axisLabel:{textStyle:{color:"#7F8B9C"}},splitLine:{show:!0,lineStyle:{color:"#F5F7F9"}}}],series:n.data.series},t.spinShow=!1;case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$Message.error(e.msg),t.spinShow=!1}))}}},f=(n("85fb"),n("2877")),p=Object(f.a)(h,(function(){var t=this,e=t._self._c;return e("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[e("div",{staticClass:"acea-row row-between-wrapper mb20"},[e("div",{staticClass:"header-title"},[t._v("商品概况")]),e("div",{staticClass:"acea-row"},[e("div",{staticClass:"acea-row row-middle"},[e("span",{staticClass:"font-sm"},[t._v("时间筛选:")]),e("DatePicker",{staticClass:"mr15 input-add",attrs:{editable:!1,value:t.timeVal,format:"yyyy/MM/dd",type:"datetimerange",placement:"bottom-start",placeholder:"自定义时间",options:t.options},on:{"on-change":t.onchangeTime}})],1),e("Button",{staticClass:"mr15",attrs:{type:"primary"},on:{click:t.onSeach}},[t._v("查询")]),e("Button",{attrs:{type:"primary"},on:{click:t.exports}},[t._v("导出")])],1)]),e("div",{staticClass:"acea-row mb20"},t._l(t.list,(function(n,i){return e("div",{key:i,staticClass:"infoBox acea-row mb30"},[e("div",{staticClass:"iconCrl mr15",class:{one:i%4==0,two:i%4==1,three:i%4==2,four:i%4==3}},[e("i",{staticClass:"iconfont",class:n.icon})]),e("div",{staticClass:"info"},[e("div",{staticClass:"sp1"},[e("span",{staticClass:"mr5",domProps:{textContent:t._s(n.name)}}),e("Poptip",{attrs:{"word-wrap":"",trigger:"hover",placement:"right-start"}},[e("Icon",{attrs:{type:"ios-information-circle-outline"}}),e("div",{attrs:{slot:"content"},slot:"content"},[t._v(t._s(n.txt))])],1)],1),(t.list.length,e("span",{staticClass:"sp2",domProps:{textContent:t._s(n.list.num)}})),e("span",{staticClass:"content-time spBlock"},[t._v("环比增长:"),e("i",{staticClass:"content-is",class:Number(n.list.percent)>=0?"up":"down"},[t._v(t._s(n.list.percent)+"%")]),e("Icon",{attrs:{color:Number(n.list.percent)>=0?"#F5222D":"#39C15B",type:Number(n.list.percent)>=0?"md-arrow-dropup":"md-arrow-dropdown"}})],1)])])})),0),t.optionData?e("echarts-new",{attrs:{"option-data":t.optionData,styles:t.style,height:"100%",width:"100%"}}):t._e(),t.spinShow?e("Spin",{attrs:{size:"large",fix:""}}):t._e()],1)}),[],!1,null,"547a1e6d",null).exports,m=n("c4c8"),g=n("6db4"),v={name:"goods_detail",props:{goodsId:{type:String|Number,default:""}},components:{HappyScroll:g.HappyScroll},data:function(){return{value2:0,goodsInfo:{productInfo:{slider_image:[]}}}},mounted:function(){this.getInfo()},methods:{getInfo:function(){var t=this;Object(m.R)(this.goodsId).then((function(e){t.goodsInfo=e.data}))}}};function y(t){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function w(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */w=function(){return e};var t,e={},n=Object.prototype,i=n.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function u(t,e,n,i){var o=e&&e.prototype instanceof v?e:v,a=Object.create(o.prototype),s=new M(i||[]);return r(a,"_invoke",{value:C(t,n,s)}),a}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",f="suspendedYield",p="executing",m="completed",g={};function v(){}function b(){}function x(){}var S={};l(S,a,(function(){return this}));var D=Object.getPrototypeOf,L=D&&D(D(z([])));L&&L!==n&&i.call(L,a)&&(S=L);var E=x.prototype=v.prototype=Object.create(S);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function T(t,e){function n(r,o,a,s){var c=d(t[r],t,o);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==y(u)&&i.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var o;r(this,"_invoke",{value:function(t,i){function r(){return new e((function(e,r){n(t,i,e,r)}))}return o=o?o.then(r,r):r()}})}function C(e,n,i){var r=h;return function(o,a){if(r===p)throw Error("Generator is already running");if(r===m){if("throw"===o)throw a;return{value:t,done:!0}}for(i.method=o,i.arg=a;;){var s=i.delegate;if(s){var c=_(s,i);if(c){if(c===g)continue;return c}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(r===h)throw r=m,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);r=p;var l=d(e,n,i);if("normal"===l.type){if(r=i.done?m:f,l.arg===g)continue;return{value:l.arg,done:i.done}}"throw"===l.type&&(r=m,i.method="throw",i.arg=l.arg)}}}function _(e,n){var i=n.method,r=e.iterator[i];if(r===t)return n.delegate=null,"throw"===i&&e.iterator.return&&(n.method="return",n.arg=t,_(e,n),"throw"===n.method)||"return"!==i&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+i+"' method")),g;var o=d(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function j(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function M(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function z(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function n(){for(;++r<e.length;)if(i.call(e,r))return n.value=e[r],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(y(e)+" is not iterable")}return b.prototype=x,r(E,"constructor",{value:x,configurable:!0}),r(x,"constructor",{value:b,configurable:!0}),b.displayName=l(x,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,x):(t.__proto__=x,l(t,c,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},O(T.prototype),l(T.prototype,s,(function(){return this})),e.AsyncIterator=T,e.async=function(t,n,i,r,o){void 0===o&&(o=Promise);var a=new T(u(t,n,i,r),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(E),l(E,c,"Generator"),l(E,a,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var i in e)n.push(i);return n.reverse(),function t(){for(;n.length;){var i=n.pop();if(i in e)return t.value=i,t.done=!1,t}return t.done=!0,t}},e.values=z,M.prototype={constructor:M,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(k),!e)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(i,r){return s.type="throw",s.arg=e,n.next=i,r&&(n.method="next",n.arg=t),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),l=i.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;k(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(e,n,i){return this.delegate={iterator:z(e),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=t),g}},e}function b(t,e,n,i,r,o,a){try{var s=t[o](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(i,r)}n("cfb12");var x={name:"productRanking",components:{goodsDetail:Object(f.a)(v,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"goods_detail"},[e("div",{staticClass:"goods_detail_wrapper",staticStyle:{height:"640px"}},[e("HappyScroll",{attrs:{size:"5",resize:"","hide-horizontal":""}},[e("div",{staticStyle:{width:"375px"}},[e("div",{staticClass:"title-box"},[t._v("商品详情")]),e("div",{staticClass:"swiper-box"},[e("Carousel",{attrs:{autoplay:"",loop:"",arrow:"never"},model:{value:t.value2,callback:function(e){t.value2=e},expression:"value2"}},t._l(t.goodsInfo.productInfo.slider_image,(function(t,n){return e("CarouselItem",{key:n},[e("div",{staticClass:"demo-carousel"},[e("img",{attrs:{src:t,alt:""}})])])})),1)],1),e("div",{staticClass:"goods_info"},[e("div",{staticClass:"number-wrapper"},[e("div",{staticClass:"price"},[e("span",[t._v("¥")]),t._v(t._s(t.goodsInfo.productInfo.price))]),t.goodsInfo.productInfo.vip_price>0?e("div",{staticClass:"old-price"},[t._v("¥"+t._s(t.goodsInfo.productInfo.vip_price))]):t._e(),t.goodsInfo.productInfo.vip_price>0?e("div",[e("img",{attrs:{src:n("a254")}})]):t._e()]),e("div",{staticClass:"name"},[t._v(t._s(t.goodsInfo.productInfo.store_name))]),e("div",{staticClass:"msg"},[e("div",{staticClass:"item"},[t._v("原价:¥"+t._s(t.goodsInfo.productInfo.ot_price))]),e("div",{staticClass:"item"},[t._v("销量:"+t._s(t.goodsInfo.productInfo.sales))]),e("div",{staticClass:"item"},[t._v("库存:"+t._s(t.goodsInfo.productInfo.stock))])])]),e("div",{staticClass:"con-box"},[e("div",{staticClass:"title-box"},[t._v("商品介绍")]),e("div",{staticClass:"content",domProps:{innerHTML:t._s(t.goodsInfo.productInfo.description)}})])])])],1)])}),[],!1,null,"5cd85f3c",null).exports},data:function(){return{validateFun:this.$validateFun,props:{emitPath:!1,multiple:!0,checkStrictly:!0},cateData:[],options:{shortcuts:[{text:"今天",value:function(){var t=new Date,e=new Date;return e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate())),[e,t]}},{text:"昨天",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-1))),t.setTime(t.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-1))),[e,t]}},{text:"最近7天",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-6))),[e,t]}},{text:"最近30天",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-29))),[e,t]}},{text:"上月",value:function(){var t=new Date,e=new Date,n=new Date(e.getFullYear(),e.getMonth(),0).getDate();return e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth()-1,1))),t.setTime(t.setTime(new Date((new Date).getFullYear(),(new Date).getMonth()-1,n))),[e,t]}},{text:"本月",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),1))),[e,t]}},{text:"本年",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),0,1))),[e,t]}}]},name:"近30天",timeVal:[],dataTime:"",formValidate:{limit:10,page:1,sort:"visit",data:"",cate_id:[]},loading:!1,tabList:[],total:0,columns4:[{title:"商品图片",slot:"image",minWidth:80},{title:"商品名称",width:180,key:"store_name"},{title:"浏览量",key:"visit",minWidth:100},{title:"访客数",key:"user",minWidth:100},{title:"加购件数",key:"cart",minWidth:100},{title:"下单件数",key:"orders",minWidth:100},{title:"支付件数",key:"pay",minWidth:100},{title:"支付金额",key:"price",minWidth:100},{title:"毛利率(%)",slot:"profit",minWidth:100},{title:"收藏数",key:"collect",minWidth:100},{title:"访客-支付转化率(%)",slot:"changes",minWidth:120}],goodsId:"",isProductBox:!1,list:[{val:"visit",name:"浏览量"},{val:"user",name:"访客数"},{val:"cart",name:"加购件数"},{val:"orders",name:"下单件数"},{val:"price",name:"支付金额"},{val:"profit",name:"毛利率"},{val:"collect",name:"收藏数"},{val:"changes",name:"访客-支付转化率"}]}},created:function(){var t=new Date,e=new Date;e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-29))),this.timeVal=[e,t],this.formValidate.data=Object(o.a)(e,"yyyy/MM/dd")+"-"+Object(o.a)(t,"yyyy/MM/dd")},mounted:function(){this.getList(),this.goodsCategory()},methods:{goodsCategory:function(){var t=this;Object(m.h)(1).then((function(e){t.cateData=e.data})).catch((function(e){t.$Message.error(e.msg)}))},onchangeTime:function(t){this.timeVal=t,this.formValidate.data=this.timeVal[0]?this.timeVal.join("-"):"",this.name=this.formValidate.data,this.getList()},changeMenu:function(t){this.formValidate.sort=t,this.getList()},getList:function(){var t=this;this.loading=!0,Object(i.n)(this.formValidate).then(function(){var e,n=(e=w().mark((function e(n){var i;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=n.data,t.tabList=i,t.loading=!1;case 3:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(i,r){var o=e.apply(t,n);function a(t){b(o,i,r,a,s,"next",t)}function s(t){b(o,i,r,a,s,"throw",t)}a(void 0)}))});return function(t){return n.apply(this,arguments)}}()).catch((function(e){t.loading=!1,t.$Message.error(e.msg)}))},look:function(t){this.goodsId=t.product_id,this.isProductBox=!0}}},S=(n("e585"),n("d5d4"),{name:"index",components:{productInfo:p,productRanking:Object(f.a)(x,(function(){var t=this,e=t._self._c;return e("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[e("div",{staticClass:"acea-row row-between-wrapper mb20"},[e("div",{staticClass:"header-title"},[t._v("商品排行")]),e("div",{staticClass:"acea-row"},[e("div",{staticClass:"acea-row row-middle"},[e("span",{staticClass:"font-sm"},[t._v("商品分类:")]),e("el-cascader",{staticClass:"mr20 width20",attrs:{placeholder:"请选择商品分类",size:"mini",options:t.cateData,props:t.props,filterable:"",clearable:""},on:{change:t.getList},model:{value:t.formValidate.cate_id,callback:function(e){t.$set(t.formValidate,"cate_id",e)},expression:"formValidate.cate_id"}})],1),e("div",{staticClass:"acea-row row-middle"},[e("span",{staticClass:"font-sm"},[t._v("统计类型:")]),e("Select",{staticClass:"mr20 width20",attrs:{clearable:""},on:{"on-change":t.changeMenu},model:{value:t.formValidate.sort,callback:function(e){t.$set(t.formValidate,"sort",e)},expression:"formValidate.sort"}},t._l(t.list,(function(n){return e("Option",{key:n.val,attrs:{value:n.val}},[t._v(t._s(n.name))])})),1)],1),e("div",{staticClass:"acea-row row-middle"},[e("span",{staticClass:"font-sm"},[t._v("时间筛选:")]),e("DatePicker",{staticClass:"mr20 width20",attrs:{editable:!1,value:t.timeVal,format:"yyyy/MM/dd",type:"datetimerange",placement:"bottom-start",placeholder:"自定义时间",options:t.options},on:{"on-change":t.onchangeTime}})],1),e("div",{staticClass:"acea-row row-middle"},[e("Button",{staticClass:"mr20",attrs:{type:"primary"},on:{click:t.getList}},[t._v("查询")])],1)])]),e("Table",{ref:"selection",attrs:{columns:t.columns4,data:t.tabList,loading:t.loading,"no-data-text":"暂无数据","highlight-row":"","no-filtered-data-text":"暂无筛选结果"},scopedSlots:t._u([{key:"image",fn:function(t){var n=t.row;return[e("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"tabBox_img"},[e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:n.image,expression:"row.image"}],staticClass:"img-add"})])]}},{key:"profit",fn:function(n){var i=n.row;return[e("span",{domProps:{textContent:t._s(t.$tools.accMul(i.profit,100).toFixed(2)+"%")}})]}},{key:"repeats",fn:function(n){var i=n.row;return[e("span",{domProps:{textContent:t._s(t.$tools.accMul(i.repeats,100)+"%")}})]}},{key:"changes",fn:function(n){var i=n.row;return[e("span",[t._v(t._s(t.$tools.accMul(i.changes,100)+"%"))])]}}])}),t.isProductBox?e("div",[e("div",{staticClass:"bg",on:{click:function(e){t.isProductBox=!1}}}),e("goodsDetail",{attrs:{goodsId:t.goodsId}})],1):t._e()],1)}),[],!1,null,"55be7ec7",null).exports}}),D=Object(f.a)(S,(function(){var t=this._self._c;return t("div",[t("product-info"),t("product-ranking")],1)}),[],!1,null,"5b49abef",null);e.default=D.exports},"61f7":function(t,e,n){"use strict";function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){a(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function a(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==i(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function s(t,e){/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length)));var n={"M+":t.getMonth()+1,"d+":t.getDate(),"h+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds()};for(var i in n)if(new RegExp("(".concat(i,")")).test(e)){var r=n[i]+"";e=e.replace(RegExp.$1,1===RegExp.$1.length?r:c(r))}return e}function c(t){return("00"+t).substr(t.length)}n.d(e,"a",(function(){return s})),n.d(e,"c",(function(){return d})),n.d(e,"b",(function(){return h}));var l={min:"%s最小长度为:min",max:"%s最大长度为:max",length:"%s长度必须为:length",range:"%s长度为:range",pattern:"$s格式错误"},u=function(t,e){t.message=function(t){return e.replace("%s",t||"")}};function d(t){return o({required:!0,message:t,type:"string"},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}function h(t){return f.pattern(/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,t)}u(d,"请输入%s"),u(h,"%s格式不正确");var f=Object.keys(l).reduce((function(t,e){return t[e]=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r="range"===e?{min:t[0],max:t[1]}:a({},e,t);return o(o({message:n.replace(":".concat(e),"range"===e?"".concat(t[0],"-").concat(t[1]):t),type:"string"},r),i)},u(t[e],l[e]),t}),{})},"6db4":function(t,e,n){!function(t,e){"use strict";function n(t,e,n){document.addEventListener?t.addEventListener(e,n):t.attachEvent("on"+e,n)}function i(t,e,n){document.addEventListener?t.removeEventListener(e,n):t.detachEvent("on"+e,n)}function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(t,e){return t(e={exports:{}},e.exports),e.exports}function a(){var t={},e=0,n=0,i=0;return{add:function(r,o){o||(o=r,r=0),r>n?n=r:r<i&&(i=r),t[r]||(t[r]=[]),t[r].push(o),e++},process:function(){for(var e=i;e<=n;e++)for(var r=t[e],o=0;o<r.length;o++)(0,r[o])()},size:function(){return e}}}function s(t){return t[y]}function c(t){return Array.isArray(t)||void 0!==t.length}function l(t){if(Array.isArray(t))return t;var e=[];return S(t,(function(t){e.push(t)})),e}function u(t){return t&&1===t.nodeType}function d(t,e,n){var i=t[e];return void 0!==i&&null!==i||void 0===n?i:n}e=e&&e.hasOwnProperty("default")?e.default:e;var h=function(t){var e=Date.now();return function(n){if(n-e>(t||14))return e=n,!0}},f={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("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)}}},[n("div",{ref:"strip",staticClass:"happy-scroll-bar",style:[t.translate,r({},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 r({},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 n=this.horizontal?"horizontal":"vertical";this.$emit(n+"-"+t,e)},computeStrip:function(t,e){var n=this.$refs.stripContainer[this.config.client];this.length=n*(e/t);var i=this.horizontal?this.minLengthH:this.minLengthV;i<1&&(i*=n),this.length=this.length<i?i:this.length;var r=this.maxOffset=n-this.length;this.percentage=r/(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){if(this.startMove&&this.moveThrottle(Date.now())){t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation();var e=this.$refs.stripContainer.getBoundingClientRect(),n=this.$refs.strip.getBoundingClientRect()[this.config.direction]-e[this.config.direction],i=t[this.config.clientAxis]-this.axis+n;this.axis=t[this.config.clientAxis],this.changeOffset(i)}},handlerWheel:function(t){var e=this.$refs.stripContainer.getBoundingClientRect(),n=this.$refs.strip.getBoundingClientRect()[this.config.direction]-e[this.config.direction]+t[this.config.wheelDelta];this.changeOffset(n,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(){i(document,"mouseup",this.handlerClickUp),i(document,"mousemove",this.handlerMove)}},p=o((function(t){(t.exports={}).forEach=function(t,e){for(var n=0;n<t.length;n++){var i=e(t[n]);if(i)return i}}})),m=o((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"),n=e.getElementsByTagName("i");do{e.innerHTML="\x3c!--[if gt IE "+ ++t+"]><i></i><![endif]--\x3e"}while(n[0]);return t>4?t:void 0}())},e.isLegacyOpera=function(){return!!window.opera}})),g=o((function(t){(t.exports={}).getOption=function(t,e,n){var i=t[e];return void 0!==i&&null!==i||void 0===n?i:n}})),v=function(t){function e(){for(l=!0;c.size();){var t=c;c=a(),t.process()}l=!1}function n(){s=function(t){return setTimeout(t,0)}(e)}var i=(t=t||{}).reporter,r=g.getOption(t,"async",!0),o=g.getOption(t,"auto",!0);o&&!r&&(i&&i.warn("Invalid options combination. auto=true and async=false is invalid. Setting async=true."),r=!0);var s,c=a(),l=!1;return{add:function(t,e){!l&&o&&r&&0===c.size()&&n(),c.add(t,e)},force:function(t){l||(void 0===t&&(t=r),s&&(function(t){clearTimeout(t)}(s),s=null),t?n():e())}}},y="_erd",w={initState:function(t){return t[y]={},s(t)},getState:s,cleanState:function(t){delete t[y]}},b=p.forEach,x=function(t){function e(t,e,n){if(t.addEventListener)t.addEventListener(e,n);else{if(!t.attachEvent)return o.error("[scroll] Don't know how to add event listeners.");t.attachEvent("on"+e,n)}}function n(t,e,n){if(t.removeEventListener)t.removeEventListener(e,n);else{if(!t.detachEvent)return o.error("[scroll] Don't know how to remove event listeners.");t.detachEvent("on"+e,n)}}function i(t){return s(t).container.childNodes[0].childNodes[0].childNodes[0]}function r(t){return s(t).container.childNodes[0].childNodes[0].childNodes[1]}var o=(t=t||{}).reporter,a=t.batchProcessor,s=t.stateHandler.getState,c=t.idHandler;if(!a)throw new Error("Missing required dependency: batchProcessor");if(!o)throw new Error("Missing required dependency: reporter.");var l=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 n=500-e.clientWidth,i=500-e.clientHeight;return document.body.removeChild(e),{width:n,height:i}}(),u="erd_scroll_detection_container";return function(t,e){if(!document.getElementById(t)){var n=e+"_animation",i="/* Created by the element-resize-detector library. */\n";i+="."+e+" > div::-webkit-scrollbar { display: none; }\n\n",i+="."+e+"_animation_active { -webkit-animation-duration: 0.1s; animation-duration: 0.1s; -webkit-animation-name: "+n+"; animation-name: "+n+"; }\n",i+="@-webkit-keyframes "+n+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }\n",function(e,n){n=n||function(t){document.head.appendChild(t)};var i=document.createElement("style");i.innerHTML=e,i.id=t,n(i)}(i+="@keyframes "+n+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }")}}("erd_scroll_detection_scrollbar_style",u),{makeDetectable:function(t,n,d){function h(){if(t.debug){var e=Array.prototype.slice.call(arguments);if(e.unshift(c.get(n),"Scroll: "),o.log.apply)o.log.apply(null,e);else for(var i=0;i<e.length;i++)o.log(e[i])}}function f(t){var e=s(t).container.childNodes[0],n=getComputedStyle(e);return!n.width||-1===n.width.indexOf("px")}function p(){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(){if(h("storeStyle invoked."),s(n)){var t=p();s(n).style=t}else h("Aborting because element has been uninstalled")}function g(t,e,n){s(t).lastWidth=e,s(t).lastHeight=n}function v(t){return i(t).childNodes[0]}function y(){return 2*l.width+1}function w(){return 2*l.height+1}function x(t){return t+10+y()}function S(t){return t+10+w()}function D(t,e,n){var o=i(t),a=r(t),s=x(e),c=S(n),l=function(t){return 2*t+y()}(e),u=function(t){return 2*t+w()}(n);o.scrollLeft=s,o.scrollTop=c,a.scrollLeft=l,a.scrollTop=u}function L(){var t=s(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;",s(n).container=t,function(t){t.className+=" "+u+"_animation_active"}(t),n.appendChild(t);var i=function(){s(n).onRendered&&s(n).onRendered()};e(t,"animationstart",i),s(n).onAnimationStart=i}return t}function E(){function t(){s(n).onExpand&&s(n).onExpand()}function i(){s(n).onShrink&&s(n).onShrink()}if(h("Injecting elements"),s(n)){!function(){var t=s(n).style;if("static"===t.position){n.style.position="relative";var e=function(t,e,n,i){var r=n[i];"auto"!==r&&"0"!==function(t){return t.replace(/[^-\d\.]/g,"")}(r)&&(t.warn("An element that is positioned static has style."+i+"="+r+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+i+" will be set to 0. Element: ",e),e.style[i]=0)};e(o,n,t,"top"),e(o,n,t,"right"),e(o,n,t,"bottom"),e(o,n,t,"left")}}();var r=s(n).container;r||(r=L());var a=l.width,c=l.height,d="position: absolute; flex: none; overflow: hidden; z-index: -1; visibility: hidden; "+function(t,e,n,i){return t=t?t+"px":"0",e=e?e+"px":"0",n=n?n+"px":"0","left: "+t+"; top: "+e+"; right: "+(i=i?i+"px":"0")+"; bottom: "+n+";"}(-(1+a),-(1+c),-c,-a),f=document.createElement("div"),p=document.createElement("div"),m=document.createElement("div"),g=document.createElement("div"),v=document.createElement("div"),y=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,m.style.cssText="position: absolute; flex: none; overflow: scroll; z-index: -1; visibility: hidden; width: 100%; height: 100%;",g.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%;",y.style.cssText="position: absolute; width: 200%; height: 200%;",m.appendChild(g),v.appendChild(y),p.appendChild(m),p.appendChild(v),f.appendChild(p),r.appendChild(f),e(m,"scroll",t),e(v,"scroll",i),s(n).onExpandScroll=t,s(n).onShrinkScroll=i}else h("Aborting because element has been uninstalled")}function O(){function e(t,e,n){var i=v(t),r=x(e),o=S(n);i.style.width=r+"px",i.style.height=o+"px"}function l(i){var r=n.offsetWidth,l=n.offsetHeight;h("Storing current size",r,l),g(n,r,l),a.add(0,(function(){if(s(n))if(u()){if(t.debug){var i=n.offsetWidth,a=n.offsetHeight;i===r&&a===l||o.warn(c.get(n),"Scroll: Size changed before updating detector elements.")}e(n,r,l)}else h("Aborting because element container has not been initialized");else h("Aborting because element has been uninstalled")})),a.add(1,(function(){s(n)?u()?D(n,r,l):h("Aborting because element container has not been initialized"):h("Aborting because element has been uninstalled")})),i&&a.add(2,(function(){s(n)?u()?i():h("Aborting because element container has not been initialized"):h("Aborting because element has been uninstalled")}))}function u(){return!!s(n).container}function d(){h("notifyListenersIfNeeded invoked");var t=s(n);return void 0===s(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 b(s(n).listeners,(function(t){t(n)})))}function p(){if(h("Scroll detected."),f(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."),l(d)):h("Element size has not changed ("+t+"x"+e+").")}}if(h("registerListenersAndPositionElements invoked."),s(n)){s(n).onRendered=function(){if(h("startanimation triggered."),f(n))h("Ignoring since element is still unrendered...");else{h("Element rendered.");var t=i(n),e=r(n);0!==t.scrollLeft&&0!==t.scrollTop&&0!==e.scrollLeft&&0!==e.scrollTop||(h("Scrollbars out of sync. Updating detector elements..."),l(d))}},s(n).onExpand=p,s(n).onShrink=p;var m=s(n).style;e(n,m.width,m.height)}else h("Aborting because element has been uninstalled")}function T(){if(h("finalizeDomMutation invoked."),s(n)){var t=s(n).style;g(n,t.width,t.height),D(n,t.width,t.height)}else h("Aborting because element has been uninstalled")}function C(){d(n)}function _(){var t;h("Installing..."),s(n).listeners=[],t=p(),s(n).startSize={width:t.width,height:t.height},h("Element start size",s(n).startSize),a.add(0,m),a.add(1,E),a.add(2,O),a.add(3,T),a.add(4,C)}d||(d=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"),L(),h("Waiting until element is attached..."),s(n).onRendered=function(){h("Element is now attached"),_()}):_()},addListener:function(t,e){if(!s(t).listeners.push)throw new Error("Cannot add listener to an element that is not detectable.");s(t).listeners.push(e)},uninstall:function(t){var e=s(t);e&&(e.onExpandScroll&&n(i(t),"scroll",e.onExpandScroll),e.onShrinkScroll&&n(r(t),"scroll",e.onShrinkScroll),e.onAnimationStart&&n(e.container,"animationstart",e.onAnimationStart),e.container&&t.removeChild(e.container))}}},S=p.forEach,D=function(t){var e;if((t=t||{}).idHandler)e={get:function(e){return t.idHandler.get(e,!0)},set:t.idHandler.set};else{var n=function(){var t=1;return{generate:function(){return t++}}}(),i=function(t){var e=t.idGenerator,n=t.stateHandler.getState;return{get:function(t){var e=n(t);return e&&void 0!==e.id?e.id:null},set:function(t){var i=n(t);if(!i)throw new Error("setId required the element to have a resize detection state.");var r=e.generate();return i.id=r,r}}}({idGenerator:n,stateHandler:w});e=i}var r=t.reporter;r||(r=function(t){function e(){}var n={log:e,warn:e,error:e};if(!t&&window.console){var i=function(t,e){t[e]=function(){var t=console[e];if(t.apply)t.apply(console,arguments);else for(var n=0;n<arguments.length;n++)t(arguments[n])}};i(n,"log"),i(n,"warn"),i(n,"error")}return n}(!1===r));var o=d(t,"batchProcessor",v({reporter:r})),a={};a.callOnAdd=!!d(t,"callOnAdd",!0),a.debug=!!d(t,"debug",!1);var s,h=function(t){function e(e){var i=t.get(e);return void 0===i?[]:n[i]||[]}var n={};return{get:e,add:function(e,i){var r=t.get(e);n[r]||(n[r]=[]),n[r].push(i)},removeListener:function(t,n){for(var i=e(t),r=0,o=i.length;r<o;++r)if(i[r]===n){i.splice(r,1);break}},removeAllListeners:function(t){var n=e(t);n&&(n.length=0)}}}(e),f=function(t){var e=t.stateHandler.getState;return{isDetectable:function(t){var n=e(t);return n&&!!n.isDetectable},markAsDetectable:function(t){e(t).isDetectable=!0},isBusy:function(t){return!!e(t).busy},markBusy:function(t,n){e(t).busy=!!n}}}({stateHandler:w}),p=d(t,"strategy","object"),g={reporter:r,batchProcessor:o,stateHandler:w,idHandler:e};if("scroll"===p&&(m.isLegacyOpera()?(r.warn("Scroll strategy is not supported on legacy Opera. Changing to object strategy."),p="object"):m.isIE(9)&&(r.warn("Scroll strategy is not supported on IE9. Changing to object strategy."),p="object")),"scroll"===p)s=x(g);else{if("object"!==p)throw new Error("Invalid strategy name: "+p);s=function(t){function e(t){return r(t).object}var n=(t=t||{}).reporter,i=t.batchProcessor,r=t.stateHandler.getState;if(!n)throw new Error("Missing required dependency: reporter.");return{makeDetectable:function(t,e,o){o||(o=e,e=t,t=null),t=t||{},m.isIE(8)?o(e):function(t,e){function o(){function i(){if("static"===c.position){t.style.position="relative";var e=function(t,e,n,i){var r=n[i];"auto"!==r&&"0"!==function(t){return t.replace(/[^-\d\.]/g,"")}(r)&&(t.warn("An element that is positioned static has style."+i+"="+r+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+i+" will be set to 0. Element: ",e),e.style[i]=0)};e(n,t,c,"top"),e(n,t,c,"right"),e(n,t,c,"bottom"),e(n,t,c,"left")}}""!==c.position&&(i(),s=!0);var o=document.createElement("object");o.style.cssText=a,o.tabIndex=-1,o.type="text/html",o.onload=function(){s||i(),function t(e,n){e.contentDocument?n(e.contentDocument):setTimeout((function(){t(e,n)}),100)}(this,(function(n){e(t)}))},m.isIE()||(o.data="about:blank"),t.appendChild(o),r(t).object=o,m.isIE()&&(o.data="about:blank")}var a="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;",s=!1,c=window.getComputedStyle(t),l=t.offsetWidth,u=t.offsetHeight;r(t).startSize={width:l,height:u},i?i.add(o):o()}(e,o)},addListener:function(t,n){function i(){n(t)}if(!e(t))throw new Error("Element is not detectable by this strategy.");m.isIE(8)?(r(t).object={proxy:i},t.attachEvent("onresize",i)):e(t).contentDocument.defaultView.addEventListener("resize",i)},uninstall:function(t){m.isIE(8)?t.detachEvent("onresize",r(t).object.proxy):t.removeChild(e(t)),delete r(t).object}}}(g)}var y={};return{listenTo:function(t,n,i){function o(t){var e=h.get(t);S(e,(function(e){e(t)}))}function p(t,e,n){h.add(e,n),t&&n(e)}if(i||(i=n,n=t,t={}),!n)throw new Error("At least one element required.");if(!i)throw new Error("Listener required.");if(u(n))n=[n];else{if(!c(n))return r.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");n=l(n)}var m=0,g=d(t,"callOnAdd",a.callOnAdd),v=d(t,"onReady",(function(){})),b=d(t,"debug",a.debug);S(n,(function(t){w.getState(t)||(w.initState(t),e.set(t));var a=e.get(t);if(b&&r.log("Attaching listener to element",a,t),!f.isDetectable(t))return b&&r.log(a,"Not detectable."),f.isBusy(t)?(b&&r.log(a,"System busy making it detectable"),p(g,t,i),y[a]=y[a]||[],void y[a].push((function(){++m===n.length&&v()}))):(b&&r.log(a,"Making detectable..."),f.markBusy(t,!0),s.makeDetectable({debug:b},t,(function(t){if(b&&r.log(a,"onElementDetectable"),w.getState(t)){f.markAsDetectable(t),f.markBusy(t,!1),s.addListener(t,o),p(g,t,i);var e=w.getState(t);if(e&&e.startSize){var c=t.offsetWidth,l=t.offsetHeight;e.startSize.width===c&&e.startSize.height===l||o(t)}y[a]&&S(y[a],(function(t){t()}))}else b&&r.log(a,"Element uninstalled before being detectable.");delete y[a],++m===n.length&&v()})));b&&r.log(a,"Already detecable, adding listener."),p(g,t,i),m++})),m===n.length&&v()},removeListener:h.removeListener,removeAllListeners:h.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=l(t)}S(t,(function(t){h.removeAllListeners(t),s.uninstall(t),w.cleanState(t)}))}}},L=e;"undefined"!=typeof window&&window.Vue&&(L=window.Vue);var E={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"happy-scroll",staticClass:"happy-scroll"},[n("div",{ref:"container",staticClass:"happy-scroll-container",style:[t.initSize],on:{scroll:function(e){return e.stopPropagation(),t.onScroll(e)}}},[n("div",{ref:"content",staticClass:"happy-scroll-content",style:[t.contentBorderStyle]},[t._t("default")],2)]),t.hideVertical?t._e():n("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():n("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=D({strategy:"scroll",callOnAdd:!1}),n=this.$slots.default[0].elm,i=n.clientHeight,r=n.clientWidth;e.listenTo(n,(function(e){t.computeStripX(),t.computeStripY(),t.initBrowserSize();var n=void 0;e.clientHeight<i&&(n=t.smallerMoveH.toLocaleLowerCase()),e.clientHeight>i&&(n=t.biggerMoveH.toLocaleLowerCase()),"start"===n&&(t.moveY=0,t.slideYChange(t.moveY)),"end"===n&&(t.moveY=e.clientHeight,t.slideYChange(t.moveY)),i=e.clientHeight,n="",e.clientWidth<r&&(n=t.smallerMoveV.toLocaleLowerCase()),e.clientWidth>r&&(n=t.biggerMoveV.toLocaleLowerCase()),"start"===n&&(t.moveX=0,t.slideXChange(t.moveX)),"end"===n&&(t.moveX=e.clientWidth,t.slideXChange(t.moveX)),r=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===L._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?L._happyJS._isScrollNotUseSpace=!1:L._happyJS._isScrollNotUseSpace=!0,this.isScrollNotUseSpace=L._happyJS._isScrollNotUseSpace)}}},beforeCreate:function(){var t=L._happyJS=L._happyJS||{};this.isScrollNotUseSpace=t._isScrollNotUseSpace},created:function(){var t,e,n,i,r,o,a,s,c;this.updateSyncScroll=(t=function(){this.$emit("update:scrollTop",this.moveY),this.$emit("update:scrollLeft",this.moveX)},e=this.throttle,c=function c(){var l=(new Date).getTime()-a;l<e&&l>=0?i=setTimeout(c,e-l):(i=null,n||(s=t.apply(o,r),i||(o=r=null)))},function(){o=this,r=arguments,a=(new Date).getTime();var l=n&&!i;return i||(i=setTimeout(c,e)),l&&(s=t.apply(o,r),o=r=null),s})},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);var O={install:function(t){t.component("happy-scroll",E)},version:"2.1.1"};t.default=O,t.HappyScroll=E,t.version="2.1.1",Object.defineProperty(t,"__esModule",{value:!0})}(e,n("a026"))},"85fb":function(t,e,n){"use strict";n("40cd")},a254:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADYAAAAWCAYAAACL6W/rAAAACXBIWXMAAAsTAAALEwEAmpwYAAAFGmlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNi4wLWMwMDIgNzkuMTY0NDYwLCAyMDIwLzA1LzEyLTE2OjA0OjE3ICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgMjEuMiAoTWFjaW50b3NoKSIgeG1wOkNyZWF0ZURhdGU9IjIwMjAtMTEtMTBUMTU6MzI6MTkrMDg6MDAiIHhtcDpNb2RpZnlEYXRlPSIyMDIwLTExLTEwVDE1OjMyOjUxKzA4OjAwIiB4bXA6TWV0YWRhdGFEYXRlPSIyMDIwLTExLTEwVDE1OjMyOjUxKzA4OjAwIiBkYzpmb3JtYXQ9ImltYWdlL3BuZyIgcGhvdG9zaG9wOkNvbG9yTW9kZT0iMyIgcGhvdG9zaG9wOklDQ1Byb2ZpbGU9InNSR0IgSUVDNjE5NjYtMi4xIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOmZlYzBlOWE3LWE4YTEtNGZmNi05Nzg1LTkwMTViNmJjNzE5OCIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpmZWMwZTlhNy1hOGExLTRmZjYtOTc4NS05MDE1YjZiYzcxOTgiIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDpmZWMwZTlhNy1hOGExLTRmZjYtOTc4NS05MDE1YjZiYzcxOTgiPiA8eG1wTU06SGlzdG9yeT4gPHJkZjpTZXE+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJjcmVhdGVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOmZlYzBlOWE3LWE4YTEtNGZmNi05Nzg1LTkwMTViNmJjNzE5OCIgc3RFdnQ6d2hlbj0iMjAyMC0xMS0xMFQxNTozMjoxOSswODowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIDIxLjIgKE1hY2ludG9zaCkiLz4gPC9yZGY6U2VxPiA8L3htcE1NOkhpc3Rvcnk+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+iB4NtgAABDpJREFUWIXdln1MlVUcxz/neR7QIEYi6VSYqLTSZjgvQi4VtFSwWUSytmaa1h8tw8ra/KuXLVtb/9RmU1ZLcxMr04q8LRlxezFIq2uxgZCvpMQ7oSYvl+c55/THxa53PBCXcGx+/7l7zvmd3/l+f2/nCq016enpu4HHuYFg9P9uAk6MJZHRhgHg9/u7LcsqALrHmM+o4WrGOHbs2Ang6THkMqowrv3w+/17gA/GhsrownJZ2wRkAHOGOhgbA6vvldwxS3FLnKa906DmlMDrM7HtoM3DOZJAn8DrMwb1s3C+Yk6qYvcBiyUZivg4TUmZCcCqpZKpk3SYvSMFzW1QfdKgoUkMX5jf7+/OzMwscBynZrBDqSmKom19aC2oOWnQ3G4w/05J3nLNhjUOG7eOo/0vSJqiKci18f04nu4ed1/Pb7Rp7RC8vx+W3i2ZPi0kbPUyyW0zFKfrQ4GJjwverxR8eMjk7V1RwxMGwX7zeDyDRmPbFpva0ybPvRaFlCFXM5I1xW8FeGWzTeGrUXh9Jo/lOSxbqFyzdvtMzcxkza5PXGkAUFVr8MLr0WFrE+I1G9ZI1j7ocLza5PufBvoevEYGwU3jYdZ0TXmlcY2oIM5dEBz4yiIjTRIbA2f+ENSdFeRmO66+crMlXT3w7VEzIg6dlwTvfWwS6IP0ucrVJmJhPb3Q0i5YvkgSHT1wf2exxfoXx+H0i/b6TBbcpUhMCLcTAlYulpRXmvQGImUBV7oEFy8LYmO0637EwgDe2BnFvNmK/dsDPPmIQ2pKKGo9vVB3RhDoJ3v4OxOlYMXi8PSmz1XcmqDx+iLL1lVkpCkmJ2rOnHeXMHhxD4GKXwwKnhnHA/dJcrIUTz3qcKFJ8HWFyaelJk2toWl18bKg8rjJqmzJvpKQiNxsSWOr4Hj10LGdnAg5WaHARUdpkqdo8lZIGpoNPit1D8yIhAE0tgiKii2KiiElSZGVqbl/qcO6fIdt70RxqDx0oddn8OZWm5QkTX2DIDoali2UfOT97+tnJCkK19n/ftsONLcJDh42KS4x6el1PxexsNgYiI/TNLaEslLfYFDfAHsOmmx5wuHlzTY1pwzOng/aHPnZ5NLfNjlZkqJiiyULFDfHMKwyPPrbwKk4HETcY2mzFV+8GyB5qnvT7thrIqUIm1a2DWUVFrlZwT7LyXKoqhv6gf2/iFhYVa2BVPDQCum6P3ECWKamvTN83eszmTZZsyhdco9HjXhoDBcRl2JXN2zfY/HsBgfDCBJu7RCkTFPMm6PIXyk512Bw9Ndw4tW/C+r/FLxU6KAUlP0wooE8bIxoeOz93MKRsD4/+Ppfhe1A6RGTHXst179QX35jsmmtQ1mFyZWu61eGAEJrjRADL/F4PO5NdO1hAYkJmkkT4fKV4MPd13ddeEaMEY97AK2hrUPQ1jFadEYP17fQxxA3rLB/AInulg8syJa/AAAAAElFTkSuQmCC"},ba66:function(t,e,n){},c71e:function(t,e,n){"use strict";var i=n("313e"),r=n.n(i),o={name:"Index",props:{styles:{type:Object,default:null},optionData:{type:Object,default:null}},data:function(){return{myChart:null}},computed:{echarts:function(){return"echarts"+Math.ceil(100*Math.random())}},watch:{optionData:{handler:function(t,e){this.handleSetVisitChart()},deep:!0}},mounted:function(){var t=this,e=this;e.$nextTick((function(){e.handleSetVisitChart(),window.addEventListener("resize",t.wsFunc)}))},beforeDestroy:function(){window.removeEventListener("resize",this.wsFunc),this.myChart&&(this.myChart.dispose(),this.myChart=null)},methods:{wsFunc:function(){this.myChart.resize()},handleSetVisitChart:function(){var t;this.myChart=r.a.init(document.getElementById(this.echarts)),t=this.optionData,this.myChart.setOption(t,!0)}}},a=n("2877"),s=Object(a.a)(o,(function(){var t=this._self._c;return t("div",[t("div",{style:this.styles,attrs:{id:this.echarts}})])}),[],!1,null,"458f4634",null);e.a=s.exports},cfb12:function(t,e,n){"use strict";n("ba66")},d5d4:function(t,e,n){"use strict";n("0404")},e585:function(t,e,n){"use strict";n("115a")}}]); |