diff --git a/package.json b/package.json index aa29d60e..0a4cb0dc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "DooTask", - "version": "0.3.36", + "version": "0.3.47", "description": "DooTask is task management system.", "scripts": { "start": "./cmd dev", diff --git a/public/js/app.js b/public/js/app.js index 4bdde30b..3b25844e 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -1,2 +1,2 @@ /*! For license information please see app.js.LICENSE.txt */ -(()=>{var e,t,n,i,r,a={12631:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>C});var i=n(88239),r=n(72444),a=/%[sdj%]/g;function o(){for(var e=arguments.length,t=Array(e),n=0;n=o)return e;switch(e){case"%s":return String(t[i++]);case"%d":return Number(t[i++]);case"%j":try{return JSON.stringify(t[i++])}catch(e){return"[Circular]"}break;default:return e}})),l=t[i];i()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},m={integer:function(e){return m.number(e)&&parseInt(e,10)===e},float:function(e){return m.number(e)&&!m.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(e){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"===(void 0===e?"undefined":(0,r.Z)(e))&&!m.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&!!e.match(p.email)&&e.length<255},url:function(e){return"string"==typeof e&&!!e.match(p.url)},hex:function(e){return"string"==typeof e&&!!e.match(p.hex)}};const v=function(e,t,n,i,a){if(e.required&&void 0===t)h(e,t,n,i,a);else{var s=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(s)>-1?m[s](t)||i.push(o(a.messages.types[s],e.fullField,e.type)):s&&(void 0===t?"undefined":(0,r.Z)(t))!==e.type&&i.push(o(a.messages.types[s],e.fullField,e.type))}};const g={required:h,whitespace:f,type:v,range:function(e,t,n,i,r){var a="number"==typeof e.len,s="number"==typeof e.min,l="number"==typeof e.max,u=t,c=null,d="number"==typeof t,h="string"==typeof t,f=Array.isArray(t);if(d?c="number":h?c="string":f&&(c="array"),!c)return!1;f&&(u=t.length),h&&(u=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),a?u!==e.len&&i.push(o(r.messages[c].len,e.fullField,e.len)):s&&!l&&ue.max?i.push(o(r.messages[c].max,e.fullField,e.max)):s&&l&&(ue.max)&&i.push(o(r.messages[c].range,e.fullField,e.min,e.max))},enum:function(e,t,n,i,r){e.enum=Array.isArray(e.enum)?e.enum:[],-1===e.enum.indexOf(t)&&i.push(o(r.messages.enum,e.fullField,e.enum.join(", ")))},pattern:function(e,t,n,i,r){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||i.push(o(r.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"==typeof e.pattern){new RegExp(e.pattern).test(t)||i.push(o(r.messages.pattern.mismatch,e.fullField,t,e.pattern))}}};const y=function(e,t,n,i,r){var a=e.type,o=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if(s(t,a)&&!e.required)return n();g.required(e,t,i,o,r,a),s(t,a)||g.type(e,t,i,o,r)}n(o)},b={string:function(e,t,n,i,r){var a=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if(s(t,"string")&&!e.required)return n();g.required(e,t,i,a,r,"string"),s(t,"string")||(g.type(e,t,i,a,r),g.range(e,t,i,a,r),g.pattern(e,t,i,a,r),!0===e.whitespace&&g.whitespace(e,t,i,a,r))}n(a)},method:function(e,t,n,i,r){var a=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if(s(t)&&!e.required)return n();g.required(e,t,i,a,r),void 0!==t&&g.type(e,t,i,a,r)}n(a)},number:function(e,t,n,i,r){var a=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if(s(t)&&!e.required)return n();g.required(e,t,i,a,r),void 0!==t&&(g.type(e,t,i,a,r),g.range(e,t,i,a,r))}n(a)},boolean:function(e,t,n,i,r){var a=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if(s(t)&&!e.required)return n();g.required(e,t,i,a,r),void 0!==t&&g.type(e,t,i,a,r)}n(a)},regexp:function(e,t,n,i,r){var a=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if(s(t)&&!e.required)return n();g.required(e,t,i,a,r),s(t)||g.type(e,t,i,a,r)}n(a)},integer:function(e,t,n,i,r){var a=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if(s(t)&&!e.required)return n();g.required(e,t,i,a,r),void 0!==t&&(g.type(e,t,i,a,r),g.range(e,t,i,a,r))}n(a)},float:function(e,t,n,i,r){var a=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if(s(t)&&!e.required)return n();g.required(e,t,i,a,r),void 0!==t&&(g.type(e,t,i,a,r),g.range(e,t,i,a,r))}n(a)},array:function(e,t,n,i,r){var a=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if(s(t,"array")&&!e.required)return n();g.required(e,t,i,a,r,"array"),s(t,"array")||(g.type(e,t,i,a,r),g.range(e,t,i,a,r))}n(a)},object:function(e,t,n,i,r){var a=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if(s(t)&&!e.required)return n();g.required(e,t,i,a,r),void 0!==t&&g.type(e,t,i,a,r)}n(a)},enum:function(e,t,n,i,r){var a=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if(s(t)&&!e.required)return n();g.required(e,t,i,a,r),t&&g.enum(e,t,i,a,r)}n(a)},pattern:function(e,t,n,i,r){var a=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if(s(t,"string")&&!e.required)return n();g.required(e,t,i,a,r),s(t,"string")||g.pattern(e,t,i,a,r)}n(a)},date:function(e,t,n,i,r){var a=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if(s(t)&&!e.required)return n();if(g.required(e,t,i,a,r),!s(t)){var o=void 0;o="number"==typeof t?new Date(t):t,g.type(e,o,i,a,r),o&&g.range(e,o.getTime(),i,a,r)}}n(a)},url:y,hex:y,email:y,required:function(e,t,n,i,a){var o=[],s=Array.isArray(t)?"array":void 0===t?"undefined":(0,r.Z)(t);g.required(e,t,i,o,a,s),n(o)}};function _(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var w=_();function x(e){this.rules=null,this._messages=w,this.define(e)}x.prototype={messages:function(e){return e&&(this._messages=d(_(),e)),this._messages},define:function(e){if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==(void 0===e?"undefined":(0,r.Z)(e))||Array.isArray(e))throw new Error("Rules must be an object");this.rules={};var t=void 0,n=void 0;for(t in e)e.hasOwnProperty(t)&&(n=e[t],this.rules[t]=Array.isArray(n)?n:[n])},validate:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments[2],s=e,l=n,h=a;if("function"==typeof l&&(h=l,l={}),this.rules&&0!==Object.keys(this.rules).length){if(l.messages){var f=this.messages();f===w&&(f=_()),d(f,l.messages),l.messages=f}else l.messages=this.messages();var p=void 0,m=void 0,v={},g=l.keys||Object.keys(this.rules);g.forEach((function(n){p=t.rules[n],m=s[n],p.forEach((function(r){var a=r;"function"==typeof a.transform&&(s===e&&(s=(0,i.Z)({},s)),m=s[n]=a.transform(m)),(a="function"==typeof a?{validator:a}:(0,i.Z)({},a)).validator=t.getValidationMethod(a),a.field=n,a.fullField=a.fullField||n,a.type=t.getType(a),a.validator&&(v[n]=v[n]||[],v[n].push({rule:a,value:m,source:s,field:n}))}))}));var y={};u(v,l,(function(e,t){var n=e.rule,a=!("object"!==n.type&&"array"!==n.type||"object"!==(0,r.Z)(n.fields)&&"object"!==(0,r.Z)(n.defaultField));function s(e,t){return(0,i.Z)({},t,{fullField:n.fullField+"."+e})}function u(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],u=r;if(Array.isArray(u)||(u=[u]),u.length,u.length&&n.message&&(u=[].concat(n.message)),u=u.map(c(n)),l.first&&u.length)return y[n.field]=1,t(u);if(a){if(n.required&&!e.value)return u=n.message?[].concat(n.message).map(c(n)):l.error?[l.error(n,o(l.messages.required,n.field))]:[],t(u);var d={};if(n.defaultField)for(var h in e.value)e.value.hasOwnProperty(h)&&(d[h]=n.defaultField);for(var f in d=(0,i.Z)({},d,e.rule.fields))if(d.hasOwnProperty(f)){var p=Array.isArray(d[f])?d[f]:[d[f]];d[f]=p.map(s.bind(null,f))}var m=new x(d);m.messages(l.messages),e.rule.options&&(e.rule.options.messages=l.messages,e.rule.options.error=l.error),m.validate(e.value,e.rule.options||l,(function(e){t(e&&e.length?u.concat(e):e)}))}else t(u)}a=a&&(n.required||!n.required&&e.value),n.field=e.field;var d=n.validator(n,e.value,u,e.source,l);d&&d.then&&d.then((function(){return u()}),(function(e){return u(e)}))}),(function(e){b(e)}))}else h&&h();function b(e){var t,n=void 0,i=void 0,r=[],a={};for(n=0;n{var t=/^(attrs|props|on|nativeOn|class|style|hook)$/;function n(e,t){return function(){e&&e.apply(this,arguments),t&&t.apply(this,arguments)}}e.exports=function(e){return e.reduce((function(e,i){var r,a,o,s,l;for(o in i)if(r=e[o],a=i[o],r&&t.test(o))if("class"===o&&("string"==typeof r&&(l=r,e[o]=r={},r[l]=!0),"string"==typeof a&&(l=a,i[o]=a={},a[l]=!0)),"on"===o||"nativeOn"===o||"hook"===o)for(s in a)r[s]=n(r[s],a[s]);else if(Array.isArray(r))e[o]=r.concat(a);else if(Array.isArray(a))e[o]=[r].concat(a);else for(s in a)r[s]=a[s];else e[o]=i[o];return e}),{})}},48724:(e,t,n)=>{"use strict";var i=n(70538),r=n(20629);const a={name:"Spinner"};var o=n(51900);const s={components:{Spinner:(0,o.Z)(a,(function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"common-spinner",attrs:{id:"common-spinner"}},[t("Loading",{staticClass:"common-circular"})],1)}),[],!1,null,null,null).exports},data:function(){return{transitionName:null}},mounted:function(){var e=this,t=window.location.hash;0===t.indexOf("#")&&(t=t.substr(1))&&this.$nextTick((function(){t=$A.removeURLParameter(t,"token"),e.goForward({path:t})})),this.sessionStorage("/",1);var n=window.location.pathname;n&&0===this.sessionStorage(n)&&this.sessionStorage(n,this.sessionStorage("::count")+1),setInterval(this.searchEnter,1e3),window.addEventListener("resize",this.windowMax768Listener)},beforeDestroy:function(){window.removeEventListener("resize",this.windowMax768Listener)},watch:{$route:function(e,t){null!==this.transitionName?void 0!==e.name&&void 0!==t.name&&this.slideType(e,t):this.transitionName="app-slide-no"}},methods:{slideType:function(e,t){var n=this.$router.isBack;this.$router.isBack=!1;var i=this.sessionStorage(e.path),r=this.sessionStorage(t.path);i&&i=0&&(t=e.slice(i),e=e.slice(0,i));var r=e.indexOf("?");return r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),{path:e,query:n,hash:t}}(r.path||""),u=t&&t.path||"/",c=l.path?j(l.path,u,n||r.append):u,d=function(e,t,n){void 0===t&&(t={});var i,r=n||w;try{i=r(e||"")}catch(e){i={}}for(var a in t){var o=t[a];i[a]=Array.isArray(o)?o.map(_):_(o)}return i}(l.query,r.query,i&&i.options.parseQuery),h=r.hash||l.hash;return h&&"#"!==h.charAt(0)&&(h="#"+h),{_normalized:!0,path:c,query:d,hash:h}}var te,ne=function(){},ie={name:"RouterLink",props:{to:{type:[String,Object],required:!0},tag:{type:String,default:"a"},custom:Boolean,exact:Boolean,exactPath:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:{type:String,default:"page"},event:{type:[String,Array],default:"click"}},render:function(e){var t=this,n=this.$router,i=this.$route,r=n.resolve(this.to,i,this.append),a=r.location,o=r.route,s=r.href,l={},u=n.options.linkActiveClass,c=n.options.linkExactActiveClass,d=null==u?"router-link-active":u,h=null==c?"router-link-exact-active":c,f=null==this.activeClass?d:this.activeClass,m=null==this.exactActiveClass?h:this.exactActiveClass,v=o.redirectedFrom?k(null,ee(o.redirectedFrom),null,n):o;l[m]=D(i,v,this.exactPath),l[f]=this.exact||this.exactPath?l[m]:function(e,t){return 0===e.path.replace(C,"/").indexOf(t.path.replace(C,"/"))&&(!t.hash||e.hash===t.hash)&&function(e,t){for(var n in t)if(!(n in e))return!1;return!0}(e.query,t.query)}(i,v);var g=l[m]?this.ariaCurrentValue:null,y=function(e){re(e)&&(t.replace?n.replace(a,ne):n.push(a,ne))},b={click:re};Array.isArray(this.event)?this.event.forEach((function(e){b[e]=y})):b[this.event]=y;var _={class:l},w=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:s,route:o,navigate:y,isActive:l[f],isExactActive:l[m]});if(w){if(1===w.length)return w[0];if(w.length>1||!w.length)return 0===w.length?e():e("span",{},w)}if("a"===this.tag)_.on=b,_.attrs={href:s,"aria-current":g};else{var x=ae(this.$slots.default);if(x){x.isStatic=!1;var S=x.data=p({},x.data);for(var O in S.on=S.on||{},S.on){var $=S.on[O];O in b&&(S.on[O]=Array.isArray($)?$:[$])}for(var T in b)T in S.on?S.on[T].push(b[T]):S.on[T]=y;var E=x.data.attrs=p({},x.data.attrs);E.href=s,E["aria-current"]=g}else _.on=b}return e(this.tag,_,this.$slots.default)}};function re(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey||e.defaultPrevented||void 0!==e.button&&0!==e.button)){if(e.currentTarget&&e.currentTarget.getAttribute){var t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function ae(e){if(e)for(var t,n=0;n-1&&(s.params[h]=n.params[h]);return s.path=Q(c.path,s.params),l(c,s,o)}if(s.path){s.params={};for(var f=0;f=e.length?n():e[r]?t(e[r],(function(){i(r+1)})):i(r+1)};i(0)}var Pe={redirected:2,aborted:4,cancelled:8,duplicated:16};function Ie(e,t){return Ae(e,t,Pe.redirected,'Redirected when going from "'+e.fullPath+'" to "'+function(e){if("string"==typeof e)return e;if("path"in e)return e.path;var t={};return Ne.forEach((function(n){n in e&&(t[n]=e[n])})),JSON.stringify(t,null,2)}(t)+'" via a navigation guard.')}function je(e,t){return Ae(e,t,Pe.cancelled,'Navigation cancelled from "'+e.fullPath+'" to "'+t.fullPath+'" with a new navigation.')}function Ae(e,t,n,i){var r=new Error(i);return r._isRouter=!0,r.from=e,r.to=t,r.type=n,r}var Ne=["params","query","hash"];function Fe(e){return Object.prototype.toString.call(e).indexOf("Error")>-1}function Le(e,t){return Fe(e)&&e._isRouter&&(null==t||e.type===t)}function Ve(e){return function(t,n,i){var r=!1,a=0,o=null;Re(e,(function(e,t,n,s){if("function"==typeof e&&void 0===e.cid){r=!0,a++;var l,u=We((function(t){var r;((r=t).__esModule||ze&&"Module"===r[Symbol.toStringTag])&&(t=t.default),e.resolved="function"==typeof t?t:te.extend(t),n.components[s]=t,--a<=0&&i()})),c=We((function(e){var t="Failed to resolve async component "+s+": "+e;o||(o=Fe(e)?e:new Error(t),i(o))}));try{l=e(u,c)}catch(e){c(e)}if(l)if("function"==typeof l.then)l.then(u,c);else{var d=l.component;d&&"function"==typeof d.then&&d.then(u,c)}}})),r||i()}}function Re(e,t){return Be(e.map((function(e){return Object.keys(e.components).map((function(n){return t(e.components[n],e.instances[n],e,n)}))})))}function Be(e){return Array.prototype.concat.apply([],e)}var ze="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function We(e){var t=!1;return function(){for(var n=[],i=arguments.length;i--;)n[i]=arguments[i];if(!t)return t=!0,e.apply(this,n)}}var He=function(e,t){this.router=e,this.base=function(e){if(!e)if(oe){var t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^https?:\/\/[^\/]+/,"")}else e="/";"/"!==e.charAt(0)&&(e="/"+e);return e.replace(/\/$/,"")}(t),this.current=O,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};function qe(e,t,n,i){var r=Re(e,(function(e,i,r,a){var o=function(e,t){"function"!=typeof e&&(e=te.extend(e));return e.options[t]}(e,t);if(o)return Array.isArray(o)?o.map((function(e){return n(e,i,r,a)})):n(o,i,r,a)}));return Be(i?r.reverse():r)}function Ke(e,t){if(t)return function(){return e.apply(t,arguments)}}He.prototype.listen=function(e){this.cb=e},He.prototype.onReady=function(e,t){this.ready?e():(this.readyCbs.push(e),t&&this.readyErrorCbs.push(t))},He.prototype.onError=function(e){this.errorCbs.push(e)},He.prototype.transitionTo=function(e,t,n){var i,r=this;try{i=this.router.match(e,this.current)}catch(e){throw this.errorCbs.forEach((function(t){t(e)})),e}var a=this.current;this.confirmTransition(i,(function(){r.updateRoute(i),t&&t(i),r.ensureURL(),r.router.afterHooks.forEach((function(e){e&&e(i,a)})),r.ready||(r.ready=!0,r.readyCbs.forEach((function(e){e(i)})))}),(function(e){n&&n(e),e&&!r.ready&&(Le(e,Pe.redirected)&&a===O||(r.ready=!0,r.readyErrorCbs.forEach((function(t){t(e)}))))}))},He.prototype.confirmTransition=function(e,t,n){var i=this,r=this.current;this.pending=e;var a,o,s=function(e){!Le(e)&&Fe(e)&&(i.errorCbs.length?i.errorCbs.forEach((function(t){t(e)})):console.error(e)),n&&n(e)},l=e.matched.length-1,u=r.matched.length-1;if(D(e,r)&&l===u&&e.matched[l]===r.matched[u])return this.ensureURL(),s(((o=Ae(a=r,e,Pe.duplicated,'Avoided redundant navigation to current location: "'+a.fullPath+'".')).name="NavigationDuplicated",o));var c=function(e,t){var n,i=Math.max(e.length,t.length);for(n=0;n0)){var t=this.router,n=t.options.scrollBehavior,i=Te&&n;i&&this.listeners.push(ye());var r=function(){var n=e.current,r=Ye(e.base);e.current===O&&r===e._startLocation||e.transitionTo(r,(function(e){i&&be(t,e,n,!0)}))};window.addEventListener("popstate",r),this.listeners.push((function(){window.removeEventListener("popstate",r)}))}},t.prototype.go=function(e){window.history.go(e)},t.prototype.push=function(e,t,n){var i=this,r=this.current;this.transitionTo(e,(function(e){De(A(i.base+e.fullPath)),be(i.router,e,r,!1),t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var i=this,r=this.current;this.transitionTo(e,(function(e){Ee(A(i.base+e.fullPath)),be(i.router,e,r,!1),t&&t(e)}),n)},t.prototype.ensureURL=function(e){if(Ye(this.base)!==this.current.fullPath){var t=A(this.base+this.current.fullPath);e?De(t):Ee(t)}},t.prototype.getCurrentLocation=function(){return Ye(this.base)},t}(He);function Ye(e){var t=window.location.pathname;return e&&0===t.toLowerCase().indexOf(e.toLowerCase())&&(t=t.slice(e.length)),(t||"/")+window.location.search+window.location.hash}var Ge=function(e){function t(t,n,i){e.call(this,t,n),i&&function(e){var t=Ye(e);if(!/^\/#/.test(t))return window.location.replace(A(e+"/#"+t)),!0}(this.base)||Xe()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.setupListeners=function(){var e=this;if(!(this.listeners.length>0)){var t=this.router.options.scrollBehavior,n=Te&&t;n&&this.listeners.push(ye());var i=function(){var t=e.current;Xe()&&e.transitionTo(Je(),(function(i){n&&be(e.router,i,t,!0),Te||et(i.fullPath)}))},r=Te?"popstate":"hashchange";window.addEventListener(r,i),this.listeners.push((function(){window.removeEventListener(r,i)}))}},t.prototype.push=function(e,t,n){var i=this,r=this.current;this.transitionTo(e,(function(e){Qe(e.fullPath),be(i.router,e,r,!1),t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var i=this,r=this.current;this.transitionTo(e,(function(e){et(e.fullPath),be(i.router,e,r,!1),t&&t(e)}),n)},t.prototype.go=function(e){window.history.go(e)},t.prototype.ensureURL=function(e){var t=this.current.fullPath;Je()!==t&&(e?Qe(t):et(t))},t.prototype.getCurrentLocation=function(){return Je()},t}(He);function Xe(){var e=Je();return"/"===e.charAt(0)||(et("/"+e),!1)}function Je(){var e=window.location.href,t=e.indexOf("#");return t<0?"":e=e.slice(t+1)}function Ze(e){var t=window.location.href,n=t.indexOf("#");return(n>=0?t.slice(0,n):t)+"#"+e}function Qe(e){Te?De(Ze(e)):window.location.hash=e}function et(e){Te?Ee(Ze(e)):window.location.replace(Ze(e))}var tt=function(e){function t(t,n){e.call(this,t,n),this.stack=[],this.index=-1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.push=function(e,t,n){var i=this;this.transitionTo(e,(function(e){i.stack=i.stack.slice(0,i.index+1).concat(e),i.index++,t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var i=this;this.transitionTo(e,(function(e){i.stack=i.stack.slice(0,i.index).concat(e),t&&t(e)}),n)},t.prototype.go=function(e){var t=this,n=this.index+e;if(!(n<0||n>=this.stack.length)){var i=this.stack[n];this.confirmTransition(i,(function(){var e=t.current;t.index=n,t.updateRoute(i),t.router.afterHooks.forEach((function(t){t&&t(i,e)}))}),(function(e){Le(e,Pe.duplicated)&&(t.index=n)}))}},t.prototype.getCurrentLocation=function(){var e=this.stack[this.stack.length-1];return e?e.fullPath:"/"},t.prototype.ensureURL=function(){},t}(He),nt=function(e){void 0===e&&(e={}),this.app=null,this.apps=[],this.options=e,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=ce(e.routes||[],this);var t=e.mode||"hash";switch(this.fallback="history"===t&&!Te&&!1!==e.fallback,this.fallback&&(t="hash"),oe||(t="abstract"),this.mode=t,t){case"history":this.history=new Ue(this,e.base);break;case"hash":this.history=new Ge(this,e.base,this.fallback);break;case"abstract":this.history=new tt(this,e.base);break;default:0}},it={currentRoute:{configurable:!0}};function rt(e,t){return e.push(t),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}nt.prototype.match=function(e,t,n){return this.matcher.match(e,t,n)},it.currentRoute.get=function(){return this.history&&this.history.current},nt.prototype.init=function(e){var t=this;if(this.apps.push(e),e.$once("hook:destroyed",(function(){var n=t.apps.indexOf(e);n>-1&&t.apps.splice(n,1),t.app===e&&(t.app=t.apps[0]||null),t.app||t.history.teardown()})),!this.app){this.app=e;var n=this.history;if(n instanceof Ue||n instanceof Ge){var i=function(e){n.setupListeners(),function(e){var i=n.current,r=t.options.scrollBehavior;Te&&r&&"fullPath"in e&&be(t,e,i,!1)}(e)};n.transitionTo(n.getCurrentLocation(),i,i)}n.listen((function(e){t.apps.forEach((function(t){t._route=e}))}))}},nt.prototype.beforeEach=function(e){return rt(this.beforeHooks,e)},nt.prototype.beforeResolve=function(e){return rt(this.resolveHooks,e)},nt.prototype.afterEach=function(e){return rt(this.afterHooks,e)},nt.prototype.onReady=function(e,t){this.history.onReady(e,t)},nt.prototype.onError=function(e){this.history.onError(e)},nt.prototype.push=function(e,t,n){var i=this;if(!t&&!n&&"undefined"!=typeof Promise)return new Promise((function(t,n){i.history.push(e,t,n)}));this.history.push(e,t,n)},nt.prototype.replace=function(e,t,n){var i=this;if(!t&&!n&&"undefined"!=typeof Promise)return new Promise((function(t,n){i.history.replace(e,t,n)}));this.history.replace(e,t,n)},nt.prototype.go=function(e){this.history.go(e)},nt.prototype.back=function(){this.go(-1)},nt.prototype.forward=function(){this.go(1)},nt.prototype.getMatchedComponents=function(e){var t=e?e.matched?e:this.resolve(e).route:this.currentRoute;return t?[].concat.apply([],t.matched.map((function(e){return Object.keys(e.components).map((function(t){return e.components[t]}))}))):[]},nt.prototype.resolve=function(e,t,n){var i=ee(e,t=t||this.history.current,n,this),r=this.match(i,t),a=r.redirectedFrom||r.fullPath;return{location:i,route:r,href:function(e,t,n){var i="hash"===n?"#"+t:t;return e?A(e+"/"+i):i}(this.history.base,a,this.mode),normalizedTo:i,resolved:r}},nt.prototype.getRoutes=function(){return this.matcher.getRoutes()},nt.prototype.addRoute=function(e,t){this.matcher.addRoute(e,t),this.history.current!==O&&this.history.transitionTo(this.history.getCurrentLocation())},nt.prototype.addRoutes=function(e){this.matcher.addRoutes(e),this.history.current!==O&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(nt.prototype,it),nt.install=function e(t){if(!e.installed||te!==t){e.installed=!0,te=t;var n=function(e){return void 0!==e},i=function(e,t){var i=e.$options._parentVnode;n(i)&&n(i=i.data)&&n(i=i.registerRouteInstance)&&i(e,t)};t.mixin({beforeCreate:function(){n(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),t.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,i(this,this)},destroyed:function(){i(this)}}),Object.defineProperty(t.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(t.prototype,"$route",{get:function(){return this._routerRoot._route}}),t.component("RouterView",P),t.component("RouterLink",ie);var r=t.config.optionMergeStrategies;r.beforeRouteEnter=r.beforeRouteLeave=r.beforeRouteUpdate=r.created}},nt.version="3.5.1",nt.isNavigationFailure=Le,nt.NavigationFailureType=Pe,nt.START_LOCATION=O,oe&&window.Vue&&window.Vue.use(nt);const at=nt;var ot=n(40158),st=n.n(ot);function lt(e){return function(e){if(Array.isArray(e))return ut(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return ut(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ut(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ut(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n=t)return e;for(var i="",r=0;r1&&void 0!==arguments[1]?arguments[1]:null,n=this.storage(e);return n||t},getStorageString:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=this.storage(e);return"string"==typeof n||"number"==typeof n?n:t},getStorageInt:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.storage(e);return"number"==typeof n?n:t},getStorageBoolean:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.storage(e);return"boolean"==typeof n?n:t},getStorageArray:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=this.storage(e);return this.isArray(n)?n:t},getStorageJson:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.storage(e);return this.isJson(n)?n:t},isArray:function(e){return"object"==mt(e)&&"[object array]"==Object.prototype.toString.call(e).toLowerCase()&&"number"==typeof e.length},isJson:function(e){return"object"==mt(e)&&"[object object]"==Object.prototype.toString.call(e).toLowerCase()&&void 0===e.length},inArray:function(e,t){return!!this.isArray(t)&&t.includes(e)},storage:function(e,t){if(e){var n="__state__";if("cache"===e.substring(0,5)&&(n="__state:"+e+"__"),void 0===t)return this.loadFromlLocal(e,"",n);this.savaToLocal(e,t,n)}},savaToLocal:function(e,t,n){try{void 0===n&&(n="__seller__");var i=window.localStorage[n];(i=i?JSON.parse(i):{})[e]=t,window.localStorage[n]=JSON.stringify(i)}catch(e){}},loadFromlLocal:function(e,t,n){try{void 0===n&&(n="__seller__");var i=window.localStorage[n];return i&&((i=JSON.parse(i))&&void 0!==i[e])?i[e]:t}catch(e){return t}},clearLocal:function(){try{window.localStorage.clear()}catch(e){}},runNum:function(e,t){var n=Number(e);if((n+""=="NaN"&&(n=0),/^[0-9]*[1-9][0-9]*$/.test(t))&&(n=n.toFixed(t)).indexOf(".")<0){n+=".";for(var i=0;i0){window.__projectId=t;var n=e.method.cloneJSON(e.projects.find((function(e){return e.id==t})));if(n)return n.columns=e.method.cloneJSON(e.columns.filter((function(e){return e.project_id==n.id}))).sort((function(e,t){return e.sort!=t.sort?e.sort-t.sort:e.id-t.id})),n.columns.forEach((function(t){t.tasks=e.method.cloneJSON(e.tasks.filter((function(e){return e.column_id==t.id}))).sort((function(e,t){return e.sort!=t.sort?e.sort-t.sort:e.id-t.id}))})),Object.freeze(n)}return{columns:[],project_user:[]}},taskData:function(e){var t=e.taskId;if(0==t&&(t=e.method.runNum(window.__taskId)),t>0){window.__taskId=t;var n=e.tasks.find((function(e){return e.id==t}));if(n)return n}return{}},tablePanel:function(e){return function(t){if(!e.projectId)return!1;var n=e.cacheTablePanel.find((function(t){return t.project_id==e.projectId}));return n||(n={project_id:e.projectId,card:!0,chat:!1,showMy:!0,showUndone:!0,showCompleted:!1,completedTask:!1},e.cacheTablePanel.push(n)),n&&!!n[t]}}};function bt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const _t={call:function(e,t){var n=e.state,i=e.dispatch;return n.method.isJson(t)||(t={url:t}),n.method.isJson(t.header)||(t.header={}),t.url=n.method.apiUrl(t.url),t.data=n.method.date2string(t.data),t.header["Content-Type"]="application/json",t.header.language=$A.getLanguage(),t.header.token=n.userToken,t.header.fd=n.method.getStorageString("userWsFd"),new Promise((function(e,r){if(!0===t.spinner){var a=document.getElementById("common-spinner");if(a){var o=t.before;t.before=function(){n.ajaxLoadNum++,a.style.display="block","function"==typeof o&&o()};var s=t.complete;t.complete=function(){n.ajaxLoadNum--,n.ajaxLoadNum<=0&&(a.style.display="none"),"function"==typeof s&&s()}}}if(t.success=function(a,o,s){if(!n.method.isJson(a))return console.log(a,o,s),void r({data:{},msg:"Return error"});var l=a.ret,u=a.data,c=a.msg;-1!==l||!1===t.checkRole?1===l?e({data:u,msg:c}):r({data:u,msg:c||"Unknown error"}):$A.modalError({content:c,onOk:function(){i("logout")}})},t.error=function(){r({data:{},msg:"System error"})},!0===t.websocket||!0===t.ws){var l=n.method.randomString(16),u=setTimeout((function(){var e=n.ajaxWsListener.find((function(e){return e.apiWebsocket==l}));e&&(e.complete(),e.error("timeout"),e.after()),n.ajaxWsListener=n.ajaxWsListener.filter((function(e){return e.apiWebsocket!=l}))}),t.timeout||3e4);n.ajaxWsListener.push({apiWebsocket:l,complete:"function"==typeof t.complete?t.complete:function(){},success:"function"==typeof t.success?t.success:function(){},error:"function"==typeof t.error?t.error:function(){},after:"function"==typeof t.after?t.after:function(){}}),t.complete=function(){},t.success=function(){},t.error=function(){},t.after=function(){},t.header["Api-Websocket"]=l,!1===n.ajaxWsReady&&(n.ajaxWsReady=!0,i("websocketMsgListener",{name:"apiWebsocket",callback:function(e){switch(e.type){case"apiWebsocket":clearTimeout(u);var t=e.apiWebsocket,i=e.apiSuccess,r=e.data,a=n.ajaxWsListener.find((function(e){return e.apiWebsocket==t}));a&&(a.complete(),i?a.success(r):a.error(r),a.after()),n.ajaxWsListener=n.ajaxWsListener.filter((function(e){return e.apiWebsocket!=t}))}}}))}$A.ajaxc(t)}))},toggleTablePanel:function(e,t){var n=e.state;if(n.projectId){var i=n.cacheTablePanel.findIndex((function(e){return e.project_id==n.projectId}));-1===i&&(n.cacheTablePanel.push({project_id:n.projectId}),i=n.cacheTablePanel.findIndex((function(e){return e.project_id==n.projectId})));var r=n.cacheTablePanel[i];n.cacheTablePanel.splice(i,1,Object.assign(r,bt({},t,!r[t]))),n.method.setStorage("cacheTablePanel",n.cacheTablePanel)}},getUserInfo:function(e){var t=e.dispatch;return new Promise((function(e,n){t("call",{url:"users/info"}).then((function(n){t("saveUserInfo",n.data),e(n)})).catch((function(e){console.error(e),n(e)}))}))},saveUserInfo:function(e,t){var n=e.state,i=e.dispatch;return new Promise((function(e){var r=n.method.cloneJSON(t);r.userid=n.method.runNum(r.userid),r.token=r.userid>0?r.token||n.userToken:"",n.userInfo=r,n.userId=r.userid,n.userToken=r.token,n.userIsAdmin=n.method.inArray("admin",r.identity),n.method.setStorage("userInfo",n.userInfo),i("getProjects"),i("getDialogs"),i("websocketConnection"),e()}))},saveUserOnlineStatus:function(e,t){var n=e.state,i=t.userid,r=t.online;n.userOnline[i]!==r&&(n.userOnline=Object.assign({},n.userOnline,bt({},i,r)))},getUserBasic:function(e,t){var n=e.state,i=e.dispatch;if(n.method.isJson(t)){var r=t.userid,a=t.success,o=t.complete;if(r!==n.userId){var s=n.method.Time(),l=[];(n.method.isArray(r)?r:[r]).some((function(e){if(n.cacheUserBasic[e]&&("function"==typeof a&&a(n.cacheUserBasic[e].data,!1),s-n.cacheUserBasic[e].time<=30))return!1;l.push(e)})),0!==l.length?!0!==n.cacheUserBasic["::load"]?(n.cacheUserBasic["::load"]=!0,i("call",{url:"users/basic",data:{userid:l}}).then((function(e){n.cacheUserBasic["::load"]=!1,"function"==typeof o&&o(),e.data.forEach((function(e){n.cacheUserBasic[e.userid]={time:s,data:e},n.method.setStorage("cacheUserBasic",n.cacheUserBasic),i("saveUserOnlineStatus",e),"function"==typeof a&&a(e,!0)}))})).catch((function(e){console.error(e),n.cacheUserBasic["::load"]=!1,"function"==typeof o&&o()}))):setTimeout((function(){i("getUserBasic",t)}),20):"function"==typeof o&&o()}else"function"==typeof a&&a(n.userInfo,!0)}},logout:function(e){var t=e.state,n=e.dispatch;t.method.clearLocal(),n("saveUserInfo",{}).then((function(){var e="/"==window.location.pathname?"":encodeURIComponent(window.location.href);$A.goForward({path:"/login",query:e?{from:e}:{}},!0)}))},saveFile:function(e,t){var n=e.state,i=e.dispatch;if(n.method.isArray(t))t.forEach((function(e){i("saveFile",e)}));else if(n.method.isJson(t)){var r=n.files.findIndex((function(e){return e.id==t.id}));r>-1?n.files.splice(r,1,Object.assign(n.files[r],t)):n.files.push(t)}},forgetFile:function(e,t){var n=e.state,i=e.dispatch;n.files=n.files.filter((function(e){return e.id!=t})),n.files.forEach((function(e){e.pid==t&&i("forgetFile",e.id)}))},getFiles:function(e,t){var n=e.state,i=e.dispatch;return new Promise((function(e,r){i("call",{url:"file/lists",data:{pid:t}}).then((function(r){var a=r.data.map((function(e){return e.id}));n.files=n.files.filter((function(e){return e.pid!=t||a.includes(e.id)})),i("saveFile",r.data),e(r)})).catch((function(e){console.error(e),r(e)}))}))},searchFiles:function(e,t){e.state;var n=e.dispatch;return new Promise((function(e,i){n("call",{url:"file/search",data:{key:t}}).then((function(t){n("saveFile",t.data),e(t)})).catch((function(e){console.error(e),i(e)}))}))},saveProject:function(e,t){var n=e.state,i=e.dispatch;if(n.method.isArray(t))t.forEach((function(e){i("saveProject",e)}));else if(n.method.isJson(t)){var r=n.projects.findIndex((function(e){return e.id==t.id}));r>-1?n.projects.splice(r,1,Object.assign(n.projects[r],t)):n.projects.push(t),setTimeout((function(){n.method.setStorage("cacheProjects",n.cacheProjects=n.projects)}))}},forgetProject:function(e,t){var n=e.state,i=n.projects.findIndex((function(e){return e.id==t}));if(i>-1&&n.projects.splice(i,1),n.projectId==t){var r=n.projects.find((function(e){var n=e.id;return n&&n!=t}));r?$A.goForward({path:"/manage/project/"+r.id}):$A.goForward({path:"/manage/dashboard"})}setTimeout((function(){n.method.setStorage("cacheProjects",n.cacheProjects=n.projects)}))},getProjects:function(e){var t=e.state,n=e.dispatch;0!==t.userId?(t.cacheProjects.length>0&&(t.projects=t.cacheProjects),n("call",{url:"project/lists"}).then((function(e){t.projects=[],n("saveProject",e.data.data)})).catch((function(e){console.error(e)}))):t.projects=[]},getProjectOne:function(e,t){var n=e.state,i=e.dispatch;return new Promise((function(e,r){0!==n.method.runNum(t)?(n.projectLoad++,i("call",{url:"project/one",data:{project_id:t}}).then((function(t){n.projectLoad--,i("saveProject",t.data),e(t)})).catch((function(e){console.error(e),n.projectLoad--,r(e)}))):r({msg:"Parameter error"})}))},archivedProject:function(e,t){var n=e.state,i=e.dispatch;return new Promise((function(e,r){0!==n.method.runNum(t)?i("call",{url:"project/archived",data:{project_id:t}}).then((function(n){i("forgetProject",t),e(n)})).catch((function(e){console.error(e),i("getProjectOne",t),r(e)})):r({msg:"Parameter error"})}))},removeProject:function(e,t){var n=e.state,i=e.dispatch;return new Promise((function(e,r){0!==n.method.runNum(t)?i("call",{url:"project/remove",data:{project_id:t}}).then((function(n){i("forgetProject",t),e(n)})).catch((function(e){console.error(e),i("getProjectOne",t),r(e)})):r({msg:"Parameter error"})}))},exitProject:function(e,t){var n=e.state,i=e.dispatch;return new Promise((function(e,r){0!==n.method.runNum(t)?i("call",{url:"project/exit",data:{project_id:t}}).then((function(n){i("forgetProject",t),e(n)})).catch((function(e){console.error(e),i("getProjectOne",t),r(e)})):r({msg:"Parameter error"})}))},getProjectStatistics:function(e){var t=e.state;(0,e.dispatch)("call",{url:"project/statistics"}).then((function(e){var n=e.data;t.projectStatistics=n}))},saveColumn:function(e,t){var n=e.state,i=e.dispatch;if(n.method.isArray(t))t.forEach((function(e){i("saveColumn",e)}));else if(n.method.isJson(t)){var r=n.columns.findIndex((function(e){return e.id==t.id}));r>-1?n.columns.splice(r,1,Object.assign(n.columns[r],t)):n.columns.push(t),setTimeout((function(){n.method.setStorage("cacheColumns",n.cacheColumns=n.columns)}))}},forgetColumn:function(e,t){var n=e.state,i=e.dispatch,r=n.columns.findIndex((function(e){return e.id==t}));r>-1&&(i("getProjectOne",n.columns[r].project_id),n.columns.splice(r,1)),setTimeout((function(){n.method.setStorage("cacheColumns",n.cacheColumns=n.columns)}))},getColumns:function(e,t){var n=e.state,i=e.dispatch;0!==n.userId?(n.cacheColumns.length>0&&(n.columns=n.cacheColumns),n.projectLoad++,i("call",{url:"project/column/lists",data:{project_id:t}}).then((function(e){n.projectLoad--;var r=e.data.data.map((function(e){return e.id}));r.length>0&&(n.columns=n.columns.filter((function(e){return e.project_id!=t||r.includes(e.id)}))),i("saveColumn",e.data.data)})).catch((function(e){console.error(e),n.projectLoad--}))):n.columns=[]},removeColumn:function(e,t){var n=e.state,i=e.dispatch;return new Promise((function(e,r){0!==n.method.runNum(t)?i("call",{url:"project/column/remove",data:{column_id:t}}).then((function(n){i("forgetColumn",t),e(n)})).catch((function(e){console.error(e),r(e)})):r({msg:"Parameter error"})}))},saveTask:function(e,t){var n=e.state,i=e.dispatch;if(n.method.isArray(t))t.forEach((function(e){i("saveTask",e)}));else if(n.method.isJson(t)){var r=t.parent_id>0?"taskSubs":"tasks",a=n[r].findIndex((function(e){return e.id==t.id}));a>-1?n[r].splice(a,1,Object.assign(n[r][a],t)):n[r].push(t),a>-1&&t.parent_id&&i("getTaskOne",t.parent_id),t.is_update_complete&&i("getProjectOne",t.project_id),t.is_update_content&&i("getTaskContent",t.id),setTimeout((function(){"taskSubs"==r?n.method.setStorage("cacheTaskSubs",n.cacheTaskSubs=n[r]):n.method.setStorage("cacheTasks",n.cacheTasks=n[r])}))}},forgetTask:function(e,t){var n=e.state,i=e.dispatch,r=n.tasks.findIndex((function(e){return e.id==t})),a="tasks";-1===r&&(r=n.taskSubs.findIndex((function(e){return e.id==t})),a="taskSubs"),r>-1&&(n[a][r].parent_id&&i("getTaskOne",n[a][r].parent_id),"tasks"==a&&i("getProjectOne",n[a][r].project_id),n[a].splice(r,1)),n.taskId==t&&(n.taskId=0),setTimeout((function(){"taskSubs"==a?n.method.setStorage("cacheTaskSubs",n.cacheTaskSubs=n[a]):n.method.setStorage("cacheTasks",n.cacheTasks=n[a])}))},increaseTaskMsgNum:function(e,t){var n=e.state.tasks.find((function(e){return e.dialog_id===t}));n&&n.msg_num++},getTasks:function(e,t){var n=e.state,i=e.dispatch;0!==n.userId?(n.cacheTasks.length>0&&(n.tasks=n.cacheTasks),t.project_id&&n.projectLoad++,i("call",{url:"project/task/lists",data:t}).then((function(e){t.project_id&&n.projectLoad--;var r=e.data,a=r.data.map((function(e){return e.id}));if(a.length>0&&(t.project_id&&(n.tasks=n.tasks.filter((function(e){return e.project_id!=t.project_id||a.includes(e.id)}))),t.parent_id&&(n.taskSubs=n.taskSubs.filter((function(e){return e.parent_id!=t.parent_id||a.includes(e.id)})))),i("saveTask",r.data),r.next_page_url){var o=Object.assign(t,{page:r.current_page+1});r.current_page%5==0?$A.modalWarning({content:"数据已超过"+r.to+"条,是否继续加载?",onOk:function(){i("getTasks",o)}}):i("getTasks",o)}})).catch((function(e){console.error(e),t.project_id&&n.projectLoad--}))):n.tasks=[]},getTaskOne:function(e,t){var n=e.state,i=e.dispatch;return new Promise((function(e,r){0!==n.method.runNum(t)?i("call",{url:"project/task/one",data:{task_id:t}}).then((function(t){i("saveTask",t.data),e(t)})).catch((function(e){console.error(e),r(e)})):r({msg:"Parameter error"})}))},removeTask:function(e,t){var n=e.state,i=e.dispatch;return new Promise((function(e,r){0!==n.method.runNum(t)?i("call",{url:"project/task/remove",data:{task_id:t}}).then((function(n){i("forgetTask",t),e(n)})).catch((function(e){console.error(e),i("getTaskOne",t),r(e)})):r({msg:"Parameter error"})}))},archivedTask:function(e,t){var n=e.state,i=e.dispatch;return new Promise((function(e,r){0!==n.method.runNum(t)?i("call",{url:"project/task/archived",data:{task_id:t}}).then((function(n){i("forgetTask",t),e(n)})).catch((function(e){console.error(e),i("getTaskOne",t),r(e)})):r({msg:"Parameter error"})}))},getTaskContent:function(e,t){var n=e.state,i=e.dispatch;return new Promise((function(e,r){0!==n.method.runNum(t)?i("call",{url:"project/task/content",data:{task_id:t}}).then((function(t){var i=n.taskContents.findIndex((function(e){return e.id==t.data.id}));i>-1?n.taskContents.splice(i,1,t.data):n.taskContents.push(t.data),e(t)})).catch((function(e){console.error(e),r(e)})):r({msg:"Parameter error"})}))},getTaskFiles:function(e,t){var n=e.state,i=e.dispatch;return new Promise((function(e,r){0!==n.method.runNum(t)?i("call",{url:"project/task/files",data:{task_id:t}}).then((function(r){r.data.forEach((function(e){var t=n.taskFiles.findIndex((function(t){return t.id==e.id}));t>-1?n.taskFiles.splice(t,1,e):n.taskFiles.push(e)})),i("saveTask",{id:t,file_num:r.data.length}),e(r)})).catch((function(e){console.error(e),r(e)})):r({msg:"Parameter error"})}))},forgetTaskFile:function(e,t){var n=e.state,i=(e.dispatch,n.taskFiles.findIndex((function(e){return e.id==t})));i>-1&&n.taskFiles.splice(i,1)},openTask:function(e,t){var n=e.state,i=e.dispatch;n.taskId=t,t>0&&i("getTaskOne",t).then((function(){i("getTaskContent",t),i("getTaskFiles",t),i("getTasks",{parent_id:t})})).catch((function(e){var t=e.msg;$A.modalWarning({content:t,onOk:function(){n.taskId=0}})}))},taskAdd:function(e,t){var n=e.state,i=e.dispatch;return new Promise((function(e,r){var a=n.method.cloneJSON(n.method.date2string(t));n.method.isArray(a.column_id)&&(a.column_id=a.column_id.find((function(e){return e}))),i("call",{url:"project/task/add",data:a,method:"post"}).then((function(t){i("addTaskSuccess",t.data),e(t)})).catch((function(e){console.error(e),r(e)}))}))},taskAddSub:function(e,t){var n=e.dispatch;return new Promise((function(e,i){n("call",{url:"project/task/addsub",data:t}).then((function(t){n("addTaskSuccess",t.data),e(t)})).catch((function(e){console.error(e),i(e)}))}))},addTaskSuccess:function(e,t){var n=e.dispatch,i=t.new_column,r=t.task;i&&n("saveColumn",i),n("saveTask",r),r.parent_id?n("getTaskOne",r.parent_id):n("getProjectOne",r.project_id)},taskUpdate:function(e,t){var n=e.state,i=e.dispatch;return new Promise((function(e,r){var a=n.method.cloneJSON(n.method.date2string(t));i("call",{url:"project/task/update",data:a,method:"post"}).then((function(t){i("saveTask",t.data),e(t)})).catch((function(e){console.error(e),i("getTaskOne",a.task_id),r(e)}))}))},getTaskPriority:function(e){var t=e.state,n=e.dispatch;return new Promise((function(e,i){n("call",{url:"system/priority"}).then((function(n){t.taskPriority=n.data,e(n)})).catch((function(e){console.error(e),i(e)}))}))},saveDialog:function(e,t){var n=e.state,i=e.dispatch;if(n.method.isArray(t))t.forEach((function(e){i("saveDialog",e)}));else if(n.method.isJson(t)){var r=n.dialogs.findIndex((function(e){return e.id==t.id}));r>-1?n.dialogs.splice(r,1,Object.assign(n.dialogs[r],t)):n.dialogs.push(t),setTimeout((function(){n.method.setStorage("cacheDialogs",n.cacheDialogs=n.dialogs)}))}},updateDialogLastMsg:function(e,t){var n=e.state,i=e.dispatch;n.dialogs.find((function(e){return e.id==t.dialog_id}))?i("saveDialog",{id:t.dialog_id,last_msg:t,last_at:n.method.formatDate("Y-m-d H:i:s")}):i("getDialogOne",t.dialog_id)},getDialogs:function(e){var t=e.state,n=e.dispatch;0!==t.userId?n("call",{url:"dialog/lists"}).then((function(e){n("saveDialog",e.data.data.reverse())})).catch((function(e){console.error(e)})):t.dialogs=[]},getDialogOne:function(e,t){var n=e.state,i=e.dispatch;return new Promise((function(e,r){0!==n.method.runNum(t)?i("call",{url:"dialog/one",data:{dialog_id:t}}).then((function(t){i("saveDialog",t.data),e(t)})).catch((function(e){console.error(e),r(e)})):r({msg:"Parameter error"})}))},openDialogUserid:function(e,t){var n=e.state,i=e.dispatch;return new Promise((function(e,r){t!==n.userId?i("call",{url:"dialog/open/user",data:{userid:t}}).then((function(t){i("saveDialog",t.data),n.method.setStorage("messenger::dialogId",t.data.id),n.dialogOpenId=t.data.id,e(t)})).catch((function(e){console.error(e),r(e)})):r({msg:"Parameter error"})}))},moveDialogTop:function(e,t){var n=e.state,i=n.dialogs.findIndex((function(e){return e.id==t}));if(i>-1){var r=n.method.cloneJSON(n.dialogs[i]);n.dialogs.splice(i,1),n.dialogs.unshift(r)}},saveDialogMsg:function(e,t){var n=e.state,i=e.dispatch;if(n.method.isArray(t))t.forEach((function(e){i("saveDialogMsg",e)}));else if(n.method.isJson(t)){var r=n.dialogMsgs.findIndex((function(e){return e.id==t.id}));r>-1?n.dialogMsgs.splice(r,1,Object.assign(n.dialogMsgs[r],t)):n.dialogMsgs.push(t),setTimeout((function(){n.method.setStorage("cacheDialogMsgs",n.cacheDialogMsgs=n.dialogMsgs)}))}},getDialogMsgs:function(e,t){var n=e.state,i=e.dispatch,r=n.dialogs.find((function(e){return e.id==t}));r||(r={id:t},n.dialogs.push(r)),r.loading||(r.loading=!0,r.currentPage=1,r.hasMorePages=!1,i("call",{url:"dialog/msg/lists",data:{dialog_id:t,page:r.currentPage}}).then((function(e){r.loading=!1,r.currentPage=e.data.current_page,r.hasMorePages=!!e.data.next_page_url,i("saveDialog",r);var a=e.data.data.map((function(e){return e.id}));a.length>0&&(n.dialogMsgs=n.dialogMsgs.filter((function(e){return e.dialog_id!=t||a.includes(e.id)}))),i("saveDialog",e.data.dialog),i("saveDialogMsg",e.data.data)})).catch((function(e){console.error(e),r.loading=!1})))},getDialogMsgNextPage:function(e,t){var n=e.state,i=e.dispatch;return new Promise((function(e,r){var a=n.dialogs.find((function(e){return e.id==t}));a?a.hasMorePages?a.loading?r({msg:"Loading"}):(a.loading=!0,a.currentPage++,i("call",{url:"dialog/msg/lists",data:{dialog_id:t,page:a.currentPage}}).then((function(t){a.loading=!1,a.currentPage=t.data.current_page,a.hasMorePages=!!t.data.next_page_url,i("saveDialogMsg",t.data.data),e(t)})).catch((function(e){console.error(e),a.loading=!1,r(e)}))):r({msg:"No more page"}):r({msg:"Parameter error"})}))},dialogMsgRead:function(e,t){var n=e.state,i=e.dispatch;if(t.userid!=n.userId&&!0!==t.is_read){t.is_read=!0;var r=n.dialogs.find((function(e){return e.id==t.dialog_id}));r&&r.unread>0&&r.unread--,n.wsReadWaitList.push(t.id),clearTimeout(n.wsReadTimeout),n.wsReadTimeout=setTimeout((function(){i("websocketSend",{type:"readMsg",data:{id:n.method.cloneJSON(n.wsReadWaitList)}}),n.wsReadWaitList=[]}),20)}},websocketConnection:function(e){var t=e.state,n=e.dispatch;e.commit;if(clearTimeout(t.wsTimeout),0!==t.userId){var i=t.method.apiUrl("../ws");i=(i=i.replace("https://","wss://")).replace("http://","ws://"),i+="?action=web&token="+t.userToken,t.ws=new WebSocket(i),t.ws.onopen=function(e){},t.ws.onclose=function(e){t.ws=null,clearTimeout(t.wsTimeout),t.wsTimeout=setTimeout((function(){n("websocketConnection")}),3e3)},t.ws.onerror=function(e){t.ws=null,clearTimeout(t.wsTimeout),t.wsTimeout=setTimeout((function(){n("websocketConnection")}),3e3)},t.ws.onmessage=function(e){var i=t.method.jsonParse(event.data),r=i.type,a=i.msgId;switch(r){case"open":t.method.setStorage("userWsFd",i.data.fd);break;case"receipt":"function"==typeof t.wsCall[a]&&t.wsCall[a](i.body,!0),delete t.wsCall[a];break;case"line":n("saveUserOnlineStatus",i.data);break;default:switch(a&&n("websocketSend",{type:"receipt",msgId:a}),t.wsMsg=i,Object.values(t.wsListener).forEach((function(e){if("function"==typeof e)try{e(i)}catch(e){}})),r){case"dialog":!function(e){var i=e.mode,r=e.data,a=r.dialog_id;if("add"===i||"chat"===i){if(n("increaseTaskMsgNum",a),"chat"===i)return;var o=t.dialogs.find((function(e){return e.id==r.dialog_id}));o&&(r.userid!==t.userId&&-1===t.dialogMsgs.findIndex((function(e){return e.id==r.id}))&&o.unread++,n("moveDialogTop",a)),t.dialogMsgPush=r}n("saveDialogMsg",r),n("updateDialogLastMsg",r)}(i);break;case"project":!function(e){var t=e.action,i=e.data;switch(t){case"add":case"update":n("saveProject",i);break;case"detail":n("getProjectOne",i.id),n("getTasks",{project_id:i.id});break;case"archived":case"delete":n("forgetProject",i.id);break;case"sort":n("getTasks",{project_id:i.id})}}(i);break;case"projectColumn":!function(e){var t=e.action,i=e.data;switch(t){case"add":case"update":n("saveColumn",i);break;case"delete":n("forgetColumn",i.id)}}(i);break;case"projectTask":!function(e){var t=e.action,i=e.data;switch(t){case"add":n("addTaskSuccess",i);break;case"update":n("saveTask",i);break;case"dialog":n("saveTask",i),n("getDialogOne",i.dialog_id);break;case"upload":n("getTaskFiles",i.task_id);break;case"filedelete":n("forgetTaskFile",i.id);break;case"archived":case"delete":n("forgetTask",i.id)}}(i);break;case"file":!function(e){var t=e.action,i=e.data;switch(t){case"add":case"update":n("saveFile",i);break;case"delete":n("forgetFile",i.id)}}(i)}}}}else t.ws&&(t.ws.close(),t.ws=null)},websocketSend:function(e,t){var n=e.state;if(n.method.isJson(t)){var i=t.type,r=t.data,a=t.callback,o=void 0;if(n.ws){"function"==typeof a&&(o=n.method.randomString(16),n.wsCall[o]=a);try{n.ws.send(JSON.stringify({type:i,msgId:o,data:r}))}catch(e){"function"==typeof a&&a(null,!1)}}else"function"==typeof a&&a(null,!1)}else"function"==typeof a&&a(null,!1)},websocketPath:function(e,t){var n=e.state,i=e.dispatch;clearTimeout(n.wsPathTimeout),n.wsPathValue=t,n.wsPathTimeout=setTimeout((function(){n.wsPathValue==t&&i("websocketSend",{type:"path",data:{path:t}})}),1e3)},websocketMsgListener:function(e,t){var n=e.state,i=t.name,r=t.callback;"function"==typeof r?n.wsListener[i]=r:n.wsListener[i]&&delete n.wsListener[i]},websocketClose:function(e){var t=e.state;t.ws&&t.ws.close()}};i.default.use(r.ZP);const wt=new r.ZP.Store({state:gt,getters:yt,mutations:{},actions:_t});n(90091),n(92693);function xt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Ct(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const kt={name:"PageTitle",props:{title:{type:[String,Number],default:""}},data:function(){return{pagePath:""}},activated:function(){this.updateTitle()},computed:function(e){for(var t=1;tMath.floor(e.offsetWidth),this.showTooltip&&this.existSlot){var i=this.$slots.default.map((function(e){return e.text?e.text:e.elm.innerText?e.elm.innerText:""}));this.tooltipContent=i.join("")}t=null},onClick:function(e){this.$emit("on-click",e)}}};const Dt=(0,o.Z)(Tt,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("ETooltip",{attrs:{content:e.tipText,placement:e.placement,effect:e.tooltipTheme,delay:e.delay,disabled:!e.showTooltip,"max-width":e.tooltipMaxWidth,transfer:""}},[n("span",{ref:"content",staticClass:"common-auto-tip",on:{mouseenter:e.handleTooltipIn,click:e.onClick}},[e.existSlot?[e._t("default")]:[e._v(e._s(e.content))]],2)])}),[],!1,null,null,null).exports;const Et={name:"TagInput",props:{value:{default:""},cut:{default:","},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},placeholder:{default:""},max:{default:0}},data:function(){var e=[];return this.value.split(",").forEach((function(t){t&&e.push(t)})),{minWidth:80,tis:"",tisTimeout:null,showPlaceholder:!0,content:"",disSource:e,isFocus:!1}},mounted:function(){this.wayMinWidth()},watch:{placeholder:function(){this.wayMinWidth()},value:function(e){var t=[];$A.count(e)>0&&e.split(",").forEach((function(e){e&&t.push(e)})),this.disSource=t},disSource:function(e){var t=this,n="";e.forEach((function(e){""!=n&&(n+=t.cut),n+=e})),this.$emit("input",n),this.$emit("on-change")}},computed:{placeholderText:function(){return this.disSource.length>0?"":this.placeholder}},methods:{focus:function(e){var t=this.$refs.myTextarea;t.focus(e);var n=(e||{}).cursor;if(n){var i=t.value.length;switch(n){case"start":t.setSelectionRange(0,0);break;case"end":t.setSelectionRange(i,i);break;default:t.setSelectionRange(0,i)}}},wayMinWidth:function(){var e=this;this.showPlaceholder=!0,this.$nextTick((function(){e.$refs.myPlaceholder&&(e.minWidth=Math.max(e.minWidth,e.$refs.myPlaceholder.offsetWidth)),setTimeout((function(){try{e.minWidth=Math.max(e.minWidth,e.$refs.myPlaceholder.offsetWidth),e.showPlaceholder=!1}catch(e){}$A(e.$refs.myPlaceholder).is(":visible")||e.wayMinWidth()}),500)}))},pasteText:function(e){e.preventDefault();var t=(e.clipboardData||window.clipboardData).getData("text");this.addTag(!1,t)},downEnter:function(e){e.preventDefault()},onFocus:function(){this.isFocus=!0},onBlur:function(){this.isFocus=!1,this.addTag(!1,this.content)},addTag:function(e,t){var n=this;if(!1===e||13===e.keyCode)return""!=t.trim()&&-1===this.disSource.indexOf(t.trim())&&this.disSource.push(t.trim()),this.content="",void(13===e.keyCode&&this.$nextTick((function(){n.$emit("on-enter",e)})));if(this.max>0&&this.disSource.length>=this.max)return this.content="",this.tis="最多只能添加"+this.max+"个",clearInterval(this.tisTimeout),void(this.tisTimeout=setTimeout((function(){n.tis=""}),2e3));var i=t.trim(),r=i.length-this.cut.length;""!=i&&i.substring(r)===this.cut&&(""!=(i=i.substring(0,r)).trim()&&-1===this.disSource.indexOf(i.trim())&&this.disSource.push(i.trim()),this.content="")},delTag:function(e){if(!1===e){if(""!==this.content)return;e=this.disSource.length-1}this.disSource.splice(e,1),this.focus()}}};const Mt=(0,o.Z)(Et,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"common-tag-input",class:{focus:e.isFocus},on:{paste:function(t){return e.pasteText(t)},click:e.focus}},[e._l(e.disSource,(function(t,i){return n("div",{staticClass:"tags-item"},[n("span",{staticClass:"tags-content",on:{click:function(e){e.stopPropagation()}}},[e._v(e._s(t))]),n("span",{staticClass:"tags-del",on:{click:function(t){return t.stopPropagation(),e.delTag(i)}}},[e._v("×")])])})),e._v(" "),n("textarea",{directives:[{name:"model",rawName:"v-model",value:e.content,expression:"content"}],ref:"myTextarea",staticClass:"tags-input",style:{minWidth:e.minWidth+"px"},attrs:{placeholder:e.tis||e.placeholderText,disabled:e.disabled,readonly:e.readonly},domProps:{value:e.content},on:{keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.downEnter(t)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"delete",[8,46],t.key,["Backspace","Delete","Del"])?null:e.delTag(!1)}],keyup:function(t){return e.addTag(t,e.content)},focus:e.onFocus,blur:e.onBlur,input:function(t){t.target.composing||(e.content=t.target.value)}}}),e._v(" "),e.showPlaceholder||""!==e.tis?n("span",{ref:"myPlaceholder",staticClass:"tags-placeholder"},[e._v(e._s(e.tis||e.placeholderText))]):e._e()],2)}),[],!1,null,null,null).exports;var Pt=n(3869),It=n.n(Pt);i.default.use(It());const jt={name:"TableAction",props:{column:{type:Object,default:function(){return{}}},autoWidth:{type:Boolean,default:!0},minWidth:{type:Number,default:80},align:{type:String,default:""},menu:{type:Array,default:function(){return[]}}},data:function(){return{width:0,height:0}},mounted:function(){this.onUpdate()},activated:function(){this.onUpdate()},beforeUpdate:function(){this.onUpdate()},computed:{tdStyle:function(){var e={};switch(this.align.toLowerCase()){case"left":e.justifyContent="flex-start";break;case"center":e.justifyContent="center";break;case"right":e.justifyContent="flex-end"}return e}},methods:{handleIn:function(){this.$refs.action.offsetWidth!=this.width&&this.onUpdate()},onUpdate:function(){this.onResize({width:this.$refs.action.offsetWidth,height:this.$refs.action.offsetHeight})},onResize:function(e){var t=this,n=e.width,i=e.height;if(this.autoWidth){$A(".ivu-table-column-"+this.column.__id).each((function(e,t){var r=$A(t).find(".td-action-container");r.length>0&&(n=Math.max(n,r[0].offsetWidth),i=Math.max(i,r[0].offsetHeight))})),this.width=n,this.height=i;var r=Math.max(this.minWidth,this.width+26);this.column.minWidth&&(r=Math.max(this.column.minWidth,r)),this.column.maxWidth&&(r=Math.min(this.column.maxWidth,r)),r!=this.column.width&&this.$nextTick((function(){t.$set(t.column,"width",r)}))}},onClick:function(e){this.$emit("action",e)}}};const At=(0,o.Z)(jt,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"td-action",style:e.tdStyle,attrs:{"data-width":e.width,"data-height":e.height}},[n("div",{directives:[{name:"resize",rawName:"v-resize",value:e.onResize,expression:"onResize"}],ref:"action",staticClass:"td-action-container",class:{"td-action-menu":e.menu.length>0},on:{mouseenter:e.handleIn}},[e._t("default"),e._v(" "),e._l(e.menu,(function(t,i){return n("ETooltip",{key:i,attrs:{placement:"top",disabled:!t.title,content:t.title,enterable:!1,"open-delay":600}},[t.children&&t.children.length>0?n("EDropdown",{staticClass:"menu-dropdown",attrs:{size:"medium",trigger:"click"},on:{command:e.onClick}},[n("i",{staticClass:"aliicon menu-icon",style:t.style||{},domProps:{innerHTML:e._s(t.icon)}}),e._v(" "),n("EDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},e._l(t.children,(function(t,i){return n("EDropdownItem",{key:i,style:t.style||{},attrs:{command:t.action,divided:!!t.divided}},[n("div",[e._v(e._s(t.title))])])})),1)],1):n("i",{staticClass:"aliicon menu-icon",style:t.style||{},domProps:{innerHTML:e._s(t.icon)},on:{click:function(n){return e.onClick(t.action)}}})],1)}))],2)])}),[],!1,null,null,null).exports;const Nt={name:"QuickEdit",directives:{clickoutside:{bind:function(e,t,n){function i(n){if(e.contains(n.target))return!1;t.expression&&t.value(n)}e.__vueClickOutside__=i,document.addEventListener("click",i)},update:function(){},unbind:function(e,t){document.removeEventListener("click",e.__vueClickOutside__),delete e.__vueClickOutside__}}},props:{value:{},autoEdit:{},isTag:{type:Boolean,default:!1},alwaysIcon:{type:Boolean,default:!1}},data:function(){return{isLoad:!1,isEdit:!1,content:""}},mounted:function(){!0===this.autoEdit&&this.onEdit()},watch:{isEdit:function(e){this.$emit("on-edit-change",e)},autoEdit:function(e){!0===e&&this.onEdit()}},methods:{onEdit:function(){var e=this;this.content=this.value,this.isEdit=!0,this.$nextTick((function(){e.$refs.input.focus({cursor:"all"})}))},onEnter:function(){var e=this;this.content!=this.value?this.isLoad||(this.isLoad=!0,this.$emit("input",this.content),this.$emit("on-update",this.content,(function(){e.isEdit=!1,e.isLoad=!1}))):this.isEdit=!1}}};const Ft=(0,o.Z)(Nt,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"quick-edit",class:[e.alwaysIcon?"quick-always":""]},[e.isEdit?n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.onEnter,expression:"onEnter"}],staticClass:"quick-input"},[e.isTag?n("TagInput",{ref:"input",attrs:{disabled:e.isLoad},on:{"on-enter":e.onEnter},model:{value:e.content,callback:function(t){e.content=t},expression:"content"}}):n("Input",{ref:"input",attrs:{disabled:e.isLoad},on:{"on-enter":e.onEnter},model:{value:e.content,callback:function(t){e.content=t},expression:"content"}}),e._v(" "),e.isLoad?n("div",{staticClass:"quick-loading"},[n("Loading")],1):e._e()],1):[n("div",{staticClass:"quick-text"},[e._t("default")],2),e._v(" "),n("Icon",{staticClass:"quick-icon",attrs:{type:"ios-create-outline"},on:{click:function(t){return t.stopPropagation(),e.onEdit.apply(null,arguments)}}})]],2)}),[],!1,null,null,null).exports;function Lt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Vt(e){for(var t=1;t0&&(e.border=t+"px solid "+(n||"#ffffff")),e},spotStyle:function(){var e=this.borderWitdh,t=this.size;return"default"===t&&(t=32),e>0&&(t-=e),32==t?{}:{transform:"scale("+Math.min(1.25,t/32)+")"}},nameStyle:function(){return this.showIcon?{}:{paddingLeft:0}},avatarSize:function(){var e=this.borderWitdh,t=this.size;return"default"===t&&(t=32),e>0?t-2*e:t},showImg:function(){var e=this.user.userimg;return!!e&&!$A.rightExists(e,"/avatar.png")},isDefault:function(){var e=this.user.userimg;return $A.strExists(e,"/avatar/default_")},nickname:function(){var e=this.user.nickname;if(!e)return"D";var t=e.substring(0,2);return/^[\u4e00-\u9fa5]+$/.test(t)&&(t=t.substring(0,1)),t||"D"}}),watch:{userid:function(){this.getData()},userInfo:function(e){e.userid==this.userid&&(this.user=e)},userOnline:function(e){this.user&&void 0!==e[this.user.userid]&&this.$set(this.user,"online",e[this.user.userid])}},methods:{getData:function(){var e=this;this.userid&&(this.userid!=this.userInfo.userid?this.$store.dispatch("getUserBasic",{userid:this.userid,success:function(t){e.user=t}}):this.user=this.userInfo)},openDialog:function(){this.goForward({path:"/manage/messenger"}),this.$store.dispatch("openDialogUserid",this.userid)}}};const zt=(0,o.Z)(Bt,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.user?n("ETooltip",{staticClass:"common-avatar",attrs:{"open-delay":600,disabled:e.tooltipDisabled,placement:e.tooltipPlacement}},[n("div",{staticClass:"common-avatar-transfer",attrs:{slot:"content"},slot:"content"},[e._t("default"),e._v(" "),n("p",[e._v(e._s(e.$L("昵称"))+": "+e._s(e.user.nickname))]),e._v(" "),n("p",[e._v(e._s(e.$L("职位/职称"))+": "+e._s(e.user.profession||"-"))]),e._v(" "),e.userId!=e.userid&&e.showIconMenu?n("div",{staticClass:"avatar-icons"},[n("Icon",{attrs:{type:"ios-chatbubbles"},on:{click:e.openDialog}})],1):e._e()],2),e._v(" "),n("div",{staticClass:"avatar-wrapper"},[e.showIcon?n("div",{class:["avatar-box",e.userId===e.userid||e.user.online?"online":""],style:e.boxStyle},[n("em",{style:e.spotStyle}),e._v(" "),e.showImg?n("EAvatar",{class:{"avatar-default":e.isDefault},attrs:{src:e.user.userimg,size:e.avatarSize}}):n("EAvatar",{staticClass:"avatar-text",attrs:{size:e.avatarSize}},[n("span",{style:e.spotStyle},[e._v(e._s(e.nickname))])])],1):e._e(),e._v(" "),e.showName?n("div",{staticClass:"avatar-name",style:e.nameStyle},[e._v(e._s(e.user.nickname))]):e._e()])]):e._e()}),[],!1,null,null,null).exports;var Wt=n(64720);function Ht(e){return(Ht="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}i.default.use(r.ZP),i.default.use(st()),i.default.use(at),i.default.use(pt),i.default.component("PageTitle",St),i.default.component("Loading",$t),i.default.component("AutoTip",Dt),i.default.component("TagInput",Mt),i.default.component("TableAction",At),i.default.component("QuickEdit",Ft),i.default.component("UserAvatar",zt),i.default.component("EAvatar",Wt.Avatar),i.default.component("ETooltip",Wt.Tooltip),i.default.component("EPopover",Wt.Popover),i.default.component("EDropdown",Wt.Dropdown),i.default.component("EDropdownMenu",Wt.DropdownMenu),i.default.component("EDropdownItem",Wt.DropdownItem),i.default.prototype.isElectron=!1;var qt=at.prototype.push;at.prototype.push=function(e){return qt.call(this,e).catch((function(e){return e}))};var Kt=new at({mode:"history",routes:f});st().LoadingBar.config({color:"#3fcc25",failedColor:"#ff0000"}),Kt.beforeEach((function(e,t,n){st().LoadingBar.start(),n()})),Kt.afterEach((function(){st().LoadingBar.finish()})),i.default.prototype.goForward=function(e,t){"string"==typeof e&&(e={name:e}),!0===t?Ut.$router.replace(e).then((function(){})):Ut.$router.push(e).then((function(){}))},i.default.prototype.goBack=function(e){var t=$A.jsonParse(window.sessionStorage.__history__||"{}");$A.runNum(t["::count"])>2?Ut.$router.go("number"==typeof e?e:-1):Ut.$router.replace("object"===Ht(e)?e:{path:"/"}).then((function(){}))},i.default.prototype.$A=$A,i.default.config.productionTip=!1;var Ut=new i.default({el:"#app",router:Kt,store:wt,template:"",components:{App:h}});$A.goForward=Ut.goForward,$A.goBack=Ut.goBack,$A.getLanguage=Ut.getLanguage,$A.Message=Ut.$Message,$A.Notice=Ut.$Notice,$A.Modal=Ut.$Modal,$A.store=Ut.$store,$A.L=Ut.$L},90091:(e,t,n)=>{function i(){return(i=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,i=new Array(t);n0&&(t=e[e.length-1]),t},strExists:function(e,t){var i=arguments.length>2&&arguments[2]!==n&&arguments[2];return e+="",t+="",!0!==i&&(e=e.toLowerCase(),t=t.toLowerCase()),-1!==e.indexOf(t)},leftExists:function(e,t){var i=arguments.length>2&&arguments[2]!==n&&arguments[2];return e+="",t+="",!0!==i&&(e=e.toLowerCase(),t=t.toLowerCase()),e.substring(0,t.length)===t},leftDelete:function(e,t){var i=arguments.length>2&&arguments[2]!==n&&arguments[2];return e+="",t+="",this.leftExists(e,t,i)&&(e=e.substring(t.length)),e||""},rightExists:function(e,t){var i=arguments.length>2&&arguments[2]!==n&&arguments[2];return e+="",t+="",!0!==i&&(e=e.toLowerCase(),t=t.toLowerCase()),e.substring(e.length-t.length)===t},getMiddle:function(e,t,n){return e=e.toString(),this.ishave(t)&&this.strExists(e,t)&&(e=e.substring(e.indexOf(t)+t.length)),this.ishave(n)&&this.strExists(e,n)&&(e=e.substring(0,e.indexOf(n))),e},subString:function(e,t,n){return e+="",this.ishave(n)||(n=e.length),e.substring(t,n)},randomString:function(e){e=e||32;for(var t="ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678oOLl9gqVvUuI1",n=t.length,i="",r=0;r=t)return e;for(var i="",r=0;r86400){var i=Math.floor(n/86400),r=Math.ceil((n-86400*i)/3600);return r>0?i+"天"+r+"小时":i+"天"}return n>3600?Math.ceil(n/3600)+"小时":n>60?Math.ceil(n/60)+"分钟":n>10?n+"秒":"刚刚"},isMobile:function(e){return/^1([3456789])\d{9}$/.test(e)},isPhone:function(e){return this.isMobile(e)},getDistance:function(e,t,n,i){var r,a,o,s,l,u=3.14159265359,c=6.28318530712,d=.01745329252,h=6370693.5;return r=t*d,a=i*d,(l=e*d-n*d)>u?l=c-l:l<-u&&(l=c+l),o=h*Math.cos(r)*l,s=h*(r-a),Math.sqrt(o*o+s*s).toFixed(0)},setTile:function(e){document.title=e;var t=navigator.userAgent.toLowerCase();if(/iphone|ipad|ipod/.test(t)){var n=document.createElement("iframe");n.style.display="none",n.setAttribute("src","/favicon.ico");n.addEventListener("load",(function e(){setTimeout((function(){n.removeEventListener("load",e),document.body.removeChild(n)}),0)})),document.body.appendChild(n)}},cloneData:function(e){return"object"!==o(e)||null===e?e:"number"==typeof e.length?r(e).slice(0):i({},e)},cloneJSON:function(e){return"object"!==o(e)||null===e?e:$A.jsonParse($A.jsonStringify(e))},jsonParse:function(e,t){if(null===e)return t||{};if("object"===o(e))return e;try{return JSON.parse(e.replace(/\n/g,"\\n").replace(/\r/g,"\\r"))}catch(e){return t||{}}},jsonStringify:function(e,t){if("object"!==o(e))return e;try{return JSON.stringify(e)}catch(e){return t||""}},resize:function(e,t){var n=$A(e);if(0!==n.length)var i=parseInt(n.outerHeight()),r=parseInt(n.outerWidth()),a=setInterval((function(){0===n.length&&clearInterval(a);var e=parseInt(n.outerHeight()),o=parseInt(n.outerWidth());i===e&&r===o||(i=e,r=o,console.log(r,i),"function"==typeof t&&t())}),250)},isIos:function(){var t=void 0!==e&&e.navigator.userAgent.toLowerCase();return t&&/iphone|ipad|ipod|ios/.test(t)},isAndroid:function(){var t=void 0!==e&&e.navigator.userAgent.toLowerCase();return t&&t.indexOf("android")>0},isWeixin:function(){return(void 0!==e&&e.navigator.userAgent.toLowerCase()).match(/MicroMessenger/i)+""=="micromessenger"},getObject:function(e,t){var n=e;if(0===this.count(e)||0===this.count(t))return"";var i=t.replace(/,/g,"|").replace(/\./g,"|").split("|");return $A.each(i,(function(e,t){n=void 0===n[t]?"":n[t]})),n},count:function(e){try{if(void 0===e)return 0;if("number"==typeof e&&(e+=""),"number"==typeof e.length)return e.length;var t,n=0;for(t in e)n++;return n}catch(e){return 0}},objImplode:function(e){var t=this;if(null===e)return"";var n="";return $A.each(e,(function(e,i){null!==i&&("object"===o(i)&&t.count(i)>0?n+=t.objImplode(i):n+=String(i))})),n.replace(/\s/g,"").replace(/undefined/g,"")},urlParameter:function(e){var t=this.urlParameterAll();return void 0===e?t:t[e]},urlParameterAll:function(){var t=e.location.search||"",n=[];this.strExists(t,"?")&&(n=this.getMiddle(t,"?").split("&"));for(var i={},r=0;r=2){for(var i=encodeURIComponent(t)+"=",r=n[1].split(/[&;]/g),a=r.length;a-- >0;)-1!==r[a].lastIndexOf(i,0)&&r.splice(a,1);return n[0]+(r.length>0?"?"+r.join("&"):"")}return e},urlAddParams:function(e,t){if("object"===o(t)&&null!==t)for(var n in e+="",e+=-1===e.indexOf("?")?"?":"",t)t.hasOwnProperty(n)&&(e+="&"+n+"="+t[n]);return e.replace("?&","?")},stringConnect:function(){for(var e=null,t="",n=arguments.length,i=new Array(n),r=0;r0&&(e=e[0]);var n="object"===o(e.$el)?$A(e.$el):$A(e);if(0!==n.length){var i=n[0];if("INPUT"!=i.tagName&&"TEXTAREA"!=i.tagName&&(n=0===n.find("input").length?n.find("textarea"):n.find("input")),0!==n.length&&("INPUT"==(i=n[0]).tagName||"TEXTAREA"==i.tagName)){var r=n.val(),a=i,s=a.selectionStart,l=a.selectionEnd;n.val("".concat(r.substring(0,s)).concat(t).concat(r.substring(l,r.length))),i.dispatchEvent(new Event("input")),setTimeout((function(){if(i.setSelectionRange){var e=r.substring(0,s).length+t.length;i.focus(),i.setSelectionRange(e,e)}}),10)}}}},iOSKeyboardFixer:function(){this.isIos()&&(document.body.scrollTop=document.body.scrollTop+1,document.body.scrollTop=document.body.scrollTop-1)},autoDevwid:function(t){var n=t||640;new function(){var t=this;t.width=n,t.fontSize=30,t.widthProportion=function(){var e=(document.body&&document.body.clientWidth||document.getElementsByTagName("html")[0].offsetWidth)/t.width;return e>1?1:e<.38?.38:e},t.changePage=function(){document.getElementsByTagName("html")[0].setAttribute("style","font-size:"+t.widthProportion()*t.fontSize+"px !important")},t.changePage(),e.addEventListener("resize",(function(){t.changePage()}),!1)};var i=$A(e).width()/n;return $A(".__auto").each((function(){"1"!==$A(this).attr("data-original")&&($A(this).attr("data-original-top",parseInt($A(this).css("top"))),$A(this).attr("data-original-right",parseInt($A(this).css("right"))),$A(this).attr("data-original-bottom",parseInt($A(this).css("bottom"))),$A(this).attr("data-original-left",parseInt($A(this).css("left"))),$A(this).attr("data-original-width",parseInt($A(this).css("width"))),$A(this).attr("data-original-height",parseInt($A(this).css("height"))),$A(this).attr("data-original-line-height",parseInt($A(this).css("line-height"))),$A(this).attr("data-original","1"));var e=parseInt($A(this).attr("data-original-top")),t=parseInt($A(this).attr("data-original-right")),n=parseInt($A(this).attr("data-original-bottom")),r=parseInt($A(this).attr("data-original-left")),a=parseInt($A(this).attr("data-original-width")),o=parseInt($A(this).attr("data-original-height")),s=parseInt($A(this).attr("data-original-line-height")),l={};e>0&&(l.top=e*i),t>0&&(l.right=t*i),n>0&&(l.bottom=n*i),r>0&&(l.left=r*i),a>0&&(l.width=a*i),o>0&&(l.height=o*i),s>0&&(l["line-height"]=s*i+"px"),$A(this).css(l)})),i},loadScript:function(t,n){var i=this;if(t=$A.originUrl(t),this.rightExists(t,".css"))this.loadCss(t,n);else if(!0!==this.__loadScript[t]){var r=document.createElement("script");r.type="text/javascript",r.readyState?r.onreadystatechange=function(){"loaded"!==r.readyState&&"complete"!==r.readyState||(r.onreadystatechange=null,i.__loadScript[t]=!0,"function"==typeof n&&n())}:r.onload=function(){i.__loadScript[t]=!0,"function"==typeof n&&n()},this.rightExists(t,".js")?r.src=t+"?hash="+e.systemInformation.version:r.src=t,document.body.appendChild(r)}else"function"==typeof n&&n()},loadScriptS:function(e,t){var n=this,i=0;this.loadScript(e[0],(function r(){++i0){for(var t="",i=0;i0&&r.push(u.join("&"))}else null===e[l]?r.push(a(l)+"="):"object"===o(e[l])?((i=n.slice()).push(l),""!==(u=t.serializeObject(e[l],i))&&r.push(u)):void 0!==e[l]&&""!==e[l]?r.push(a(l)+"="+s(e[l])):""===e[l]&&r.push(a(l))}return r.join("&")},globalAjaxOptions:{},ajaxSetup:function(e){e.type&&(e.method=e.type),t.each(e,(function(e,n){t.globalAjaxOptions[e]=n}))},_jsonpRequests:0,ihttp:function(i){var r={method:"GET",data:!1,async:!0,cache:!0,user:"",password:"",headers:{},xhrFields:{},statusCode:{},processData:!0,dataType:"text",contentType:"application/x-www-form-urlencoded",timeout:0},a=["beforeSend","error","complete","success","statusCode"];function o(e,n,r){var a=arguments;e&&t(document).trigger(e,n),r&&(r in t.globalAjaxOptions&&t.globalAjaxOptions[r](a[3],a[4],a[5],a[6]),i[r]&&i[r](a[3],a[4],a[5],a[6]))}i.type&&(i.method=i.type),t.each(t.globalAjaxOptions,(function(e,t){a.indexOf(e)<0&&(r[e]=t)})),t.each(r,(function(e,t){e in i||(i[e]=t)})),i.url||(i.url=e.location.toString());var s,l=i.url.indexOf("?")>=0?"&":"?",u=i.method.toUpperCase();"GET"!==u&&"HEAD"!==u&&"OPTIONS"!==u&&"DELETE"!==u||!i.data||(s="string"==typeof i.data?i.data.indexOf("?")>=0?i.data.split("?")[1]:i.data:t.serializeObject(i.data)).length&&(i.url+=l+s,"?"===l&&(l="&"));if("json"===i.dataType&&i.url.indexOf("callback=")>=0){var c,d="f7jsonp_"+Date.now()+t._jsonpRequests++,h=i.url.split("callback="),f=h[0]+"callback="+d;if(h[1].indexOf("&")>=0){var p=h[1].split("&").filter((function(e){return e.indexOf("=")>0})).join("&");p.length>0&&(f+="&"+p)}var m=document.createElement("script");return m.type="text/javascript",m.onerror=function(){clearTimeout(c),o(n,n,"error",null,"scripterror"),o("ajaxComplete ajax:complete",{scripterror:!0},"complete",null,"scripterror")},m.src=f,e[d]=function(t){clearTimeout(c),o(n,n,"success",t),m.parentNode.removeChild(m),m=null,delete e[d]},document.querySelector("head").appendChild(m),void(i.timeout>0&&(c=setTimeout((function(){m.parentNode.removeChild(m),m=null,o(n,n,"error",null,"timeout")}),i.timeout)))}"GET"!==u&&"HEAD"!==u&&"OPTIONS"!==u&&"DELETE"!==u||!1===i.cache&&(i.url+=l+"_nocache="+Date.now());var v=new XMLHttpRequest;v.requestUrl=i.url,v.requestParameters=i,v.open(u,i.url,i.async,i.user,i.password);var g,y=null;if(("POST"===u||"PUT"===u||"PATCH"===u)&&i.data)if(i.processData)if([ArrayBuffer,Blob,Document,FormData].indexOf(i.data.constructor)>=0)y=i.data;else{var b="---------------------------"+Date.now().toString(16);"multipart/form-data"===i.contentType?v.setRequestHeader("Content-Type","multipart/form-data; boundary="+b):v.setRequestHeader("Content-Type",i.contentType),y="";var _=t.serializeObject(i.data);if("multipart/form-data"===i.contentType){b="---------------------------"+Date.now().toString(16),_=_.split("&");for(var w=[],x=0;x<_.length;x++)w.push('Content-Disposition: form-data; name="'+_[x].split("=")[0]+'"\r\n\r\n'+_[x].split("=")[1]+"\r\n");y="--"+b+"\r\n"+w.join("--"+b+"\r\n")+"--"+b+"--\r\n"}else y=_}else y=i.data;return i.headers&&t.each(i.headers,(function(e,t){v.setRequestHeader(e,t)})),void 0===i.crossDomain&&(i.crossDomain=/^([\w-]+:)?\/\/([^\/]+)/.test(i.url)&&RegExp.$2!==e.location.host),i.crossDomain||v.setRequestHeader("X-Requested-With","XMLHttpRequest"),i.xhrFields&&t.each(i.xhrFields,(function(e,t){v[e]=t})),v.onload=function(e){var n;if(g&&clearTimeout(g),v.status>=200&&v.status<300||0===v.status)if("json"===i.dataType)try{n=JSON.parse(v.responseText),o("ajaxSuccess ajax:success",{xhr:v},"success",n,v.status,v)}catch(e){console.error(e),o("ajaxError ajax:error",{xhr:v,parseerror:!0},"error",v,"parseerror")}else n="text"===v.responseType||""===v.responseType?v.responseText:v.response,o("ajaxSuccess ajax:success",{xhr:v},"success",n,v.status,v);else o("ajaxError ajax:error",{xhr:v},"error",v,v.status);i.statusCode&&(t.globalAjaxOptions.statusCode&&t.globalAjaxOptions.statusCode[v.status]&&t.globalAjaxOptions.statusCode[v.status](v),i.statusCode[v.status]&&i.statusCode[v.status](v)),o("ajaxComplete ajax:complete",{xhr:v},"complete",v,v.status)},v.onerror=function(e){g&&clearTimeout(g),o("ajaxError ajax:error",{xhr:v},"error",v,v.status),o("ajaxComplete ajax:complete",{xhr:v,error:!0},"complete",v,"error")},o("ajaxStart ajax:start",{xhr:v},"start",v),o(n,n,"beforeSend",v),i.timeout>0&&(v.onabort=function(){g&&clearTimeout(g)},g=setTimeout((function(){v.abort(),o("ajaxError ajax:error",{xhr:v,timeout:!0},"error",v,"timeout"),o("ajaxComplete ajax:complete",{xhr:v,timeout:!0},"complete",v,"timeout")}),i.timeout)),v.send(y),v}}),t.extend({ajaxc:function(e){return!!e&&(void 0!==e.url&&(void 0===e.data&&(e.data={}),void 0===e.cache&&(e.cache=!1),void 0===e.method&&(e.method="GET"),void 0===e.timeout&&(e.timeout=3e4),void 0===e.dataType&&(e.dataType="json"),void 0===e.before&&(e.before=function(){}),void 0===e.complete&&(e.complete=function(){}),void 0===e.after&&(e.after=function(){}),void 0===e.success&&(e.success=function(){}),void 0===e.error&&(e.error=function(){}),void 0===e.header&&(e.header={}),e.before(),void $A.ihttp({url:e.url,data:e.data,cache:e.cache,headers:e.header,method:e.method.toUpperCase(),contentType:"OPTIONS",crossDomain:!0,dataType:e.dataType,timeout:e.timeout,success:function(t,n,i){e.complete(),e.success(t,n,i),e.after(!0)},error:function(t,n){e.complete(),e.error(t,n),e.after(!1)}})))}}),t.extend({date2string:function(e,t){if(null===e)return e;if(void 0===t&&(t="Y-m-d H:i:s"),e instanceof Date)e=$A.formatDate(t,e);else if($A.isJson(e))for(var n in e)e.hasOwnProperty(n)&&(e[n]=$A.date2string(e[n],t));else $A.isArray(e)&&e.forEach((function(n,i){e[i]=$A.date2string(n,t)}));return e},getData:function(e){var t=arguments.length>1&&arguments[1]!==n&&arguments[1],i=new Date,r=i.getDay(),a=i.getDate(),o=i.getMonth(),s=i.getYear();s+=s<2e3?1900:0;var l=new Date;l.setDate(1),l.setMonth(l.getMonth()-1);var u=l.getMonth(),c=function(){var e=0;return o<3&&(e=0),28&&(e=9),e},d=function(e){var t=new Date(s,e,1);return(new Date(s,e+1,1)-t)/864e5},h=i.getTime();switch(e){case"今天":h=i;break;case"昨天":h=i-864e5;break;case"前天":h=i-1728e5;break;case"本周":h=new Date(s,o,a-r);break;case"本周结束":h=new Date(s,o,a+(6-r));break;case"上周":h=new Date(s,o,a-r-7);break;case"上周结束":h=new Date(s,o,a-r-1);break;case"本周2":h=new Date(s,o,a-r+1);break;case"本周结束2":h=new Date(s,o,a+(6-r)+1);break;case"上周2":h=new Date(s,o,a-r-7+1);break;case"上周结束2":h=new Date(s,o,a-r-1+1);break;case"本月":h=new Date(s,o,1);break;case"本月结束":h=new Date(s,o,d(o));break;case"上个月":h=new Date(s,u,1);break;case"上个月结束":h=new Date(s,u,d(u));break;case"本季度":h=new Date(s,c(),1);break;case"本季度结束":var f=c()+2;h=new Date(s,f,d(f))}return!0===t?h:$A.formatDate("Y-m-d",parseInt(h/1e3))},bytesToSize:function(e){if(0===e)return"0 B";var t=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],n=Math.floor(Math.log(e)/Math.log(1024));return void 0===t[n]?"0 B":$A.runNum(e/Math.pow(1024,n),2)+" "+t[n]},html2Escape:function(e){return e&&""!=e?e.replace(/[<>&"]/g,(function(e){return{"<":"<",">":">","&":"&",'"':"""}[e]})):""},sreachHighlight:function(e,t){return e&&""!=e?t&&""!=t?e=(e=(e=$A.html2Escape(e.replace(new RegExp(t,"g"),"[highlight]"+t+"[/highlight]"))).replace(/\[highlight\]/g,'')).replace(/\[\/highlight\]/g,""):$A.html2Escape(e):""}}),e.$A=t}(window,window.$=window.jQuery=n(19755))},92693:()=>{!function(e){var t=e.$A;t.extend({modalConfig:function(e){return void 0===e?e={content:"Undefined"}:"string"==typeof e&&(e={content:e}),e.title=$A.L(e.title||(void 0===e.render?"温馨提示":"")),e.content=$A.L(e.content||""),e.okText=$A.L(e.okText||"确定"),e.cancelText=$A.L(e.cancelText||"取消"),e},modalInput:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(t>0)setTimeout((function(){$A.modalInput(e)}),t);else{"string"==typeof e&&(e={title:e});var n="modalInput_"+$A.randomString(6);$A.Modal.confirm({render:function(t){return t("div",[t("div",{style:{fontSize:"16px",fontWeight:"500",marginBottom:"20px"}},$A.L(e.title)),t("Input",{props:{value:e.value,placeholder:$A.L(e.placeholder),elementId:n},on:{input:function(t){e.value=t}}})])},loading:!0,onOk:function(){"function"==typeof e.onOk?!0===e.onOk(e.value,(function(){$A.Modal.remove()}))&&$A.Modal.remove():$A.Modal.remove()}}),setTimeout((function(){document.getElementById(n)&&document.getElementById(n).focus()}))}},modalConfirm:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;t>0?setTimeout((function(){$A.modalConfirm(e)}),t):$A.Modal.confirm($A.modalConfig(e))},modalSuccess:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;t>0?setTimeout((function(){$A.modalSuccess(e)}),t):$A.Modal.success($A.modalConfig(e))},modalInfo:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;t>0?setTimeout((function(){$A.modalInfo(e)}),t):$A.Modal.info($A.modalConfig(e))},modalWarning:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;t>0?setTimeout((function(){$A.modalWarning(e)}),t):$A.Modal.warning($A.modalConfig(e))},modalError:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;t>0?setTimeout((function(){$A.modalError(e)}),t):$A.Modal.error($A.modalConfig(e))},modalAlert:function(e){alert($A.L(e))},messageSuccess:function(e){$A.Message.success($A.L(e))},messageWarning:function(e){$A.Message.warning($A.L(e))},messageError:function(e){$A.Message.error($A.L(e))},noticeConfig:function(e){return void 0===e?e={desc:"Undefined"}:"string"==typeof e&&(e={desc:e}),e.title=$A.L(e.title||(void 0===e.render?"温馨提示":"")),e.desc=$A.L(e.desc||""),e},noticeSuccess:function(e){$A.Notice.success($A.noticeConfig(e))},noticeWarning:function(e){$A.Notice.warning($A.noticeConfig(e))},noticeError:function(e){"string"==typeof e&&(e={desc:e,duration:6}),$A.Notice.error($A.noticeConfig(e))}}),e.$A=t}(window)},31108:(e,t)=>{t.Z=[]},52945:(e,t,n)=>{e.exports={default:n(56981),__esModule:!0}},93516:(e,t,n)=>{e.exports={default:n(80025),__esModule:!0}},64275:(e,t,n)=>{e.exports={default:n(52392),__esModule:!0}},88239:(e,t,n)=>{"use strict";var i,r=n(52945),a=(i=r)&&i.__esModule?i:{default:i};t.Z=a.default||function(e){for(var t=1;t{"use strict";var i=o(n(64275)),r=o(n(93516)),a="function"==typeof r.default&&"symbol"==typeof i.default?function(e){return typeof e}:function(e){return e&&"function"==typeof r.default&&e.constructor===r.default&&e!==r.default.prototype?"symbol":typeof e};function o(e){return e&&e.__esModule?e:{default:e}}t.Z="function"==typeof r.default&&"symbol"===a(i.default)?function(e){return void 0===e?"undefined":a(e)}:function(e){return e&&"function"==typeof r.default&&e.constructor===r.default&&e!==r.default.prototype?"symbol":void 0===e?"undefined":a(e)}},56981:(e,t,n)=>{n(72699),e.exports=n(34579).Object.assign},80025:(e,t,n)=>{n(46840),n(94058),n(8174),n(36461),e.exports=n(34579).Symbol},52392:(e,t,n)=>{n(91867),n(73871),e.exports=n(25103).f("iterator")},85663:e=>{e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},79003:e=>{e.exports=function(){}},12159:(e,t,n)=>{var i=n(36727);e.exports=function(e){if(!i(e))throw TypeError(e+" is not an object!");return e}},57428:(e,t,n)=>{var i=n(7932),r=n(78728),a=n(16531);e.exports=function(e){return function(t,n,o){var s,l=i(t),u=r(l.length),c=a(o,u);if(e&&n!=n){for(;u>c;)if((s=l[c++])!=s)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===n)return e||c||0;return!e&&-1}}},32894:e=>{var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},34579:e=>{var t=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=t)},19216:(e,t,n)=>{var i=n(85663);e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,r){return e.call(t,n,i,r)}}return function(){return e.apply(t,arguments)}}},8333:e=>{e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},89666:(e,t,n)=>{e.exports=!n(7929)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},97467:(e,t,n)=>{var i=n(36727),r=n(33938).document,a=i(r)&&i(r.createElement);e.exports=function(e){return a?r.createElement(e):{}}},73338:e=>{e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},70337:(e,t,n)=>{var i=n(46162),r=n(48195),a=n(86274);e.exports=function(e){var t=i(e),n=r.f;if(n)for(var o,s=n(e),l=a.f,u=0;s.length>u;)l.call(e,o=s[u++])&&t.push(o);return t}},83856:(e,t,n)=>{var i=n(33938),r=n(34579),a=n(19216),o=n(41818),s=n(27069),l=function(e,t,n){var u,c,d,h=e&l.F,f=e&l.G,p=e&l.S,m=e&l.P,v=e&l.B,g=e&l.W,y=f?r:r[t]||(r[t]={}),b=y.prototype,_=f?i:p?i[t]:(i[t]||{}).prototype;for(u in f&&(n=t),n)(c=!h&&_&&void 0!==_[u])&&s(y,u)||(d=c?_[u]:n[u],y[u]=f&&"function"!=typeof _[u]?n[u]:v&&c?a(d,i):g&&_[u]==d?function(e){var t=function(t,n,i){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,i)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(d):m&&"function"==typeof d?a(Function.call,d):d,m&&((y.virtual||(y.virtual={}))[u]=d,e&l.R&&b&&!b[u]&&o(b,u,d)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},7929:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},33938:e=>{var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)},27069:e=>{var t={}.hasOwnProperty;e.exports=function(e,n){return t.call(e,n)}},41818:(e,t,n)=>{var i=n(4743),r=n(83101);e.exports=n(89666)?function(e,t,n){return i.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},54881:(e,t,n)=>{var i=n(33938).document;e.exports=i&&i.documentElement},33758:(e,t,n)=>{e.exports=!n(89666)&&!n(7929)((function(){return 7!=Object.defineProperty(n(97467)("div"),"a",{get:function(){return 7}}).a}))},50799:(e,t,n)=>{var i=n(32894);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==i(e)?e.split(""):Object(e)}},71421:(e,t,n)=>{var i=n(32894);e.exports=Array.isArray||function(e){return"Array"==i(e)}},36727:e=>{e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},33945:(e,t,n)=>{"use strict";var i=n(98989),r=n(83101),a=n(25378),o={};n(41818)(o,n(22939)("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=i(o,{next:r(1,n)}),a(e,t+" Iterator")}},45700:(e,t,n)=>{"use strict";var i=n(16227),r=n(83856),a=n(57470),o=n(41818),s=n(15449),l=n(33945),u=n(25378),c=n(95089),d=n(22939)("iterator"),h=!([].keys&&"next"in[].keys()),f="keys",p="values",m=function(){return this};e.exports=function(e,t,n,v,g,y,b){l(n,t,v);var _,w,x,C=function(e){if(!h&&e in $)return $[e];switch(e){case f:case p:return function(){return new n(this,e)}}return function(){return new n(this,e)}},k=t+" Iterator",S=g==p,O=!1,$=e.prototype,T=$[d]||$["@@iterator"]||g&&$[g],D=T||C(g),E=g?S?C("entries"):D:void 0,M="Array"==t&&$.entries||T;if(M&&(x=c(M.call(new e)))!==Object.prototype&&x.next&&(u(x,k,!0),i||"function"==typeof x[d]||o(x,d,m)),S&&T&&T.name!==p&&(O=!0,D=function(){return T.call(this)}),i&&!b||!h&&!O&&$[d]||o($,d,D),s[t]=D,s[k]=m,g)if(_={values:S?D:C(p),keys:y?D:C(f),entries:E},b)for(w in _)w in $||a($,w,_[w]);else r(r.P+r.F*(h||O),t,_);return _}},85084:e=>{e.exports=function(e,t){return{value:t,done:!!e}}},15449:e=>{e.exports={}},16227:e=>{e.exports=!0},77177:(e,t,n)=>{var i=n(65730)("meta"),r=n(36727),a=n(27069),o=n(4743).f,s=0,l=Object.isExtensible||function(){return!0},u=!n(7929)((function(){return l(Object.preventExtensions({}))})),c=function(e){o(e,i,{value:{i:"O"+ ++s,w:{}}})},d=e.exports={KEY:i,NEED:!1,fastKey:function(e,t){if(!r(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,i)){if(!l(e))return"F";if(!t)return"E";c(e)}return e[i].i},getWeak:function(e,t){if(!a(e,i)){if(!l(e))return!0;if(!t)return!1;c(e)}return e[i].w},onFreeze:function(e){return u&&d.NEED&&l(e)&&!a(e,i)&&c(e),e}}},88082:(e,t,n)=>{"use strict";var i=n(89666),r=n(46162),a=n(48195),o=n(86274),s=n(66530),l=n(50799),u=Object.assign;e.exports=!u||n(7929)((function(){var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach((function(e){t[e]=e})),7!=u({},e)[n]||Object.keys(u({},t)).join("")!=i}))?function(e,t){for(var n=s(e),u=arguments.length,c=1,d=a.f,h=o.f;u>c;)for(var f,p=l(arguments[c++]),m=d?r(p).concat(d(p)):r(p),v=m.length,g=0;v>g;)f=m[g++],i&&!h.call(p,f)||(n[f]=p[f]);return n}:u},98989:(e,t,n)=>{var i=n(12159),r=n(57856),a=n(73338),o=n(58989)("IE_PROTO"),s=function(){},l=function(){var e,t=n(97467)("iframe"),i=a.length;for(t.style.display="none",n(54881).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("