From d0438390cc0310725f6889535c082029e07a7de2 Mon Sep 17 00:00:00 2001 From: "Mr.Huan" Date: Wed, 26 Jan 2022 17:27:42 +0800 Subject: [PATCH] build: d22266a94725640f85bceb9978c13449dfa5c35c --- public/js/build/360.js | 2 +- public/js/build/76.js | 2 +- public/js/build/831.js | 2 +- public/js/build/919.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/public/js/build/360.js b/public/js/build/360.js index f2d25955..2016f5a3 100644 --- a/public/js/build/360.js +++ b/public/js/build/360.js @@ -1 +1 @@ -"use strict";(self.webpackChunkDooTask=self.webpackChunkDooTask||[]).push([[360],{85166:(t,e,a)=>{a.d(e,{Z:()=>s});const i={name:"ScrollerY",props:{static:{type:Boolean,default:!1},autoBottom:{type:Boolean,default:!1},autoRecovery:{type:Boolean,default:!0},autoRecoveryAnimate:{type:Boolean,default:!1}},data:function(){return{scrollY:0,scrollDiff:0,autoInterval:null}},mounted:function(){this.openInterval(),this.$nextTick(this.initScroll)},activated:function(){this.openInterval(),this.recoveryScroll()},destroyed:function(){this.closeInterval()},deactivated:function(){this.closeInterval()},methods:{initScroll:function(){var t=this;this.autoToBottom();var e="function"==typeof this.$listeners["on-scroll"],a=$A(this.$refs.scrollerView);a.scroll((function(){var i=Math.round(a.innerHeight()),s=a.scrollTop(),o=t.$refs.scrollerView.scrollHeight;if(t.scrollY=s,e){var n="static",r="static";t.scrollDiff-s>50?(t.scrollDiff=s,n="down"):t.scrollDiff-s<-100&&(t.scrollDiff=s,n="up"),t.scrollDiff-s>1?(t.scrollDiff=s,r="down"):t.scrollDiff-s<-1&&(t.scrollDiff=s,r="up"),t.$emit("on-scroll",{scale:s/(o-i),scrollY:s,scrollE:o-i-s,direction:n,directionreal:r})}}))},recoveryScroll:function(){var t=this;this.autoRecovery&&(this.scrollY>0||this.autoBottom)&&this.$nextTick((function(){t.autoBottom?t.autoToBottom():t.scrollTo(t.scrollY,t.autoRecoveryAnimate)}))},openInterval:function(){this.autoToBottom(),this.autoInterval&&clearInterval(this.autoInterval),this.autoInterval=setInterval(this.autoToBottom,300)},closeInterval:function(){clearInterval(this.autoInterval),this.autoInterval=null},scrollTo:function(t,e){!1===e?$A(this.$refs.scrollerView).stop().scrollTop(t):$A(this.$refs.scrollerView).stop().animate({scrollTop:t})},autoToBottom:function(){if(this.autoBottom&&this.$refs.bottom)try{this.$refs.bottom.scrollIntoView(!1)}catch(t){scrollIntoView(this.$refs.bottom,{behavior:"instant",inline:"end"})}},scrollInfo:function(){var t=$A(this.$refs.scrollerView),e=Math.round(t.innerHeight()),a=t.scrollTop(),i=this.$refs.scrollerView.scrollHeight;return this.scrollY=a,{scale:a/(i-e),scrollY:a,scrollE:i-e-a}},querySelector:function(t){return this.$refs.scrollerView&&this.$refs.scrollerView.querySelector(t)}}};const s=(0,a(51900).Z)(i,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{ref:"scrollerView",staticClass:"app-scroller-y",class:[t.static?"static":""]},[t._t("default"),t._v(" "),a("div",{ref:"bottom",staticClass:"app-scroller-bottom"})],2)}),[],!1,null,null,null).exports},36283:(t,e,a)=>{a.d(e,{Z:()=>E});const i=a(70538).default.prototype.$isServer;function s(t,e){for(let a=0;a`${t}:${i.getPropertyValue(t)}`)).join(";"),paddingSize:o,borderSize:r,boxSizing:s};return e&&a&&(c[a]=l),l}(t,i);r.setAttribute("style",`${u};\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important\n`),r.value=t.value||t.placeholder||"";let d,p=Number.MIN_SAFE_INTEGER,h=Number.MAX_SAFE_INTEGER,g=r.scrollHeight;if("border-box"===l?g+=o:"content-box"===l&&(g-=s),null!==e||null!==a){r.value=" ";let t=r.scrollHeight-s;null!==e&&(p=t*e,"border-box"===l&&(p=p+s+o),g=Math.max(p,g)),null!==a&&(h=t*a,"border-box"===l&&(h=h+s+o),d=g>h?"":"hidden",g=Math.min(h,g))}return a||(d="hidden"),{height:`${g}px`,minHeight:`${p}px`,maxHeight:`${h}px`,overflowY:d}}function u(t,e,a){this.$children.forEach((i=>{i.$options.name===t?i.$emit.apply(i,[e].concat(a)):u.apply(i,[t,e].concat([a]))}))}function d(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var p="ivu-input";const h={name:"DragInput",mixins:[{methods:{dispatch(t,e,a){let i=this.$parent||this.$root,s=i.$options.name;for(;i&&(!s||s!==t);)i=i.$parent,i&&(s=i.$options.name);i&&i.$emit.apply(i,[e].concat(a))},broadcast(t,e,a){u.call(this,t,e,a)}}},{inject:{FormInstance:{default:""}},computed:{itemDisabled(){let t=this.disabled;return!t&&this.FormInstance&&(t=this.FormInstance.disabled),t}}}],props:{type:{validator:function(t){return s(t,["text","textarea","password","url","email","date","number","tel"])},default:"text"},value:{type:[String,Number],default:""},size:{validator:function(t){return s(t,["small","large","default"])},default:function(){return this.$IVIEW&&""!==this.$IVIEW.size?this.$IVIEW.size:"default"}},placeholder:{type:String,default:""},maxlength:{type:[String,Number]},disabled:{type:Boolean,default:!1},icon:String,autosize:{type:[Boolean,Object],default:!1},rows:{type:Number,default:2},readonly:{type:Boolean,default:!1},name:{type:String},number:{type:Boolean,default:!1},autofocus:{type:Boolean,default:!1},spellcheck:{type:Boolean,default:!1},autocomplete:{type:String,default:"off"},clearable:{type:Boolean,default:!1},elementId:{type:String},wrap:{validator:function(t){return s(t,["hard","soft"])},default:"soft"},prefix:{type:String,default:""},suffix:{type:String,default:""},search:{type:Boolean,default:!1},enterButton:{type:[Boolean,String],default:!1},showWordLimit:{type:Boolean,default:!1},password:{type:Boolean,default:!1}},data:function(){return{currentValue:this.value,prefixCls:p,slotReady:!1,textareaStyles:{},isOnComposition:!1,showPassword:!1}},computed:{currentType:function(){var t=this.type;return"password"===t&&this.password&&this.showPassword&&(t="text"),t},prepend:function(){var t=!1;return"textarea"!==this.type&&(t=void 0!==this.$slots.prepend),t},append:function(){var t=!1;return"textarea"!==this.type&&(t=void 0!==this.$slots.append),t},showPrefix:function(){var t=!1;return"textarea"!==this.type&&(t=""!==this.prefix||void 0!==this.$slots.prefix),t},showSuffix:function(){var t=!1;return"textarea"!==this.type&&(t=""!==this.suffix||void 0!==this.$slots.suffix),t},wrapClasses:function(){var t;return["".concat(p,"-wrapper"),(t={},d(t,"".concat(p,"-wrapper-").concat(this.size),!!this.size),d(t,"".concat(p,"-type-").concat(this.type),this.type),d(t,"".concat(p,"-group"),this.prepend||this.append||this.search&&this.enterButton),d(t,"".concat(p,"-group-").concat(this.size),(this.prepend||this.append||this.search&&this.enterButton)&&!!this.size),d(t,"".concat(p,"-group-with-prepend"),this.prepend),d(t,"".concat(p,"-group-with-append"),this.append||this.search&&this.enterButton),d(t,"".concat(p,"-hide-icon"),this.append),d(t,"".concat(p,"-with-search"),this.search&&this.enterButton),t)]},inputClasses:function(){var t;return["".concat(p),(t={},d(t,"".concat(p,"-").concat(this.size),!!this.size),d(t,"".concat(p,"-disabled"),this.itemDisabled),d(t,"".concat(p,"-with-prefix"),this.showPrefix),d(t,"".concat(p,"-with-suffix"),this.showSuffix||this.search&&!1===this.enterButton),t)]},textareaClasses:function(){return["".concat(p),d({},"".concat(p,"-disabled"),this.itemDisabled)]},upperLimit:function(){return this.maxlength},textLength:function(){return"number"==typeof this.value?String(this.value).length:(this.value||"").length}},methods:{handleEnter:function(t){this.$emit("on-enter",t),this.search&&this.$emit("on-search",this.currentValue)},handleKeydown:function(t){this.$emit("on-keydown",t)},handleKeypress:function(t){this.$emit("on-keypress",t)},handleKeyup:function(t){this.$emit("on-keyup",t)},handleIconClick:function(t){this.$emit("on-click",t)},handleFocus:function(t){this.$emit("on-focus",t)},handleBlur:function(t){this.$emit("on-blur",t),o(this,["DatePicker","TimePicker","Cascader","Search"])||this.dispatch("FormItem","on-form-blur",this.currentValue)},handleComposition:function(t){"compositionstart"===t.type&&(this.isOnComposition=!0),"compositionend"===t.type&&(this.isOnComposition=!1,this.handleInput(t))},handleInput:function(t){if(!this.isOnComposition){var e=t.target.value;this.number&&""!==e&&(e=Number.isNaN(Number(e))?e:Number(e)),this.$emit("input",e),this.setCurrentValue(e),this.$emit("on-change",t)}},handleChange:function(t){this.$emit("on-input-change",t)},handlePaste:function(t){this.$emit("on-input-paste",t)},setCurrentValue:function(t){var e=this;t!==this.currentValue&&(this.$nextTick((function(){e.resizeTextarea()})),this.currentValue=t,o(this,["DatePicker","TimePicker","Cascader","Search"])||this.dispatch("FormItem","on-form-change",t))},resizeTextarea:function(){var t=this.autosize;if(!t||"textarea"!==this.type)return!1;var e=t.minRows,a=t.maxRows;this.textareaStyles=l(this.$refs.textarea,e,a)},focus:function(){"textarea"===this.type?this.$refs.textarea.focus():this.$refs.input.focus()},blur:function(){"textarea"===this.type?this.$refs.textarea.blur():this.$refs.input.blur()},handleClear:function(){this.$emit("input",""),this.setCurrentValue(""),this.$emit("on-change",{target:{value:""}}),this.$emit("on-clear")},handleSearch:function(){if(this.itemDisabled)return!1;this.$refs.input.focus(),this.$emit("on-search",this.currentValue)},handleToggleShowPassword:function(){var t=this;if(this.itemDisabled)return!1;this.showPassword=!this.showPassword,this.focus();var e=this.currentValue.length;setTimeout((function(){t.$refs.input.setSelectionRange(e,e)}),0)}},watch:{value:function(t){this.setCurrentValue(t)}},mounted:function(){this.slotReady=!0,this.resizeTextarea()}};var g=a(51900);const f=(0,g.Z)(h,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{class:t.wrapClasses},["textarea"!==t.type?[t.prepend?a("div",{directives:[{name:"show",rawName:"v-show",value:t.slotReady,expression:"slotReady"}],class:[t.prefixCls+"-group-prepend"]},[t._t("prepend")],2):t._e(),t._v(" "),t.clearable&&t.currentValue&&!t.itemDisabled?a("i",{staticClass:"ivu-icon",class:["ivu-icon-ios-close-circle",t.prefixCls+"-icon",t.prefixCls+"-icon-clear",t.prefixCls+"-icon-normal"],on:{click:t.handleClear}}):t.icon?a("i",{staticClass:"ivu-icon",class:["ivu-icon-"+t.icon,t.prefixCls+"-icon",t.prefixCls+"-icon-normal"],on:{click:t.handleIconClick}}):t.search&&!1===t.enterButton?a("i",{staticClass:"ivu-icon ivu-icon-ios-search",class:[t.prefixCls+"-icon",t.prefixCls+"-icon-normal",t.prefixCls+"-search-icon"],on:{click:t.handleSearch}}):t.showSuffix?a("span",{staticClass:"ivu-input-suffix"},[t._t("suffix",(function(){return[t.suffix?a("i",{staticClass:"ivu-icon",class:["ivu-icon-"+t.suffix]}):t._e()]}))],2):t.showWordLimit?a("span",{staticClass:"ivu-input-word-count"},[t._v(t._s(t.textLength)+"/"+t._s(t.upperLimit))]):t.password?a("span",{staticClass:"ivu-input-suffix",on:{click:t.handleToggleShowPassword}},[t.showPassword?a("i",{staticClass:"ivu-icon ivu-icon-ios-eye-off-outline"}):a("i",{staticClass:"ivu-icon ivu-icon-ios-eye-outline"})]):t._e(),t._v(" "),a("transition",{attrs:{name:"fade"}},[t.icon?t._e():a("i",{staticClass:"ivu-icon ivu-icon-ios-loading ivu-load-loop",class:[t.prefixCls+"-icon",t.prefixCls+"-icon-validate"]})]),t._v(" "),a("input",{ref:"input",class:t.inputClasses,attrs:{id:t.elementId,autocomplete:t.autocomplete,spellcheck:t.spellcheck,type:t.currentType,placeholder:t.placeholder,disabled:t.itemDisabled,maxlength:t.maxlength,readonly:t.readonly,name:t.name,number:t.number,autofocus:t.autofocus},domProps:{value:t.currentValue},on:{keyup:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleEnter.apply(null,arguments)},t.handleKeyup],keypress:t.handleKeypress,keydown:t.handleKeydown,focus:t.handleFocus,blur:t.handleBlur,compositionstart:t.handleComposition,compositionupdate:t.handleComposition,compositionend:t.handleComposition,input:t.handleInput,change:t.handleChange,paste:t.handlePaste}}),t._v(" "),t.append?a("div",{directives:[{name:"show",rawName:"v-show",value:t.slotReady,expression:"slotReady"}],class:[t.prefixCls+"-group-append"]},[t._t("append")],2):t.search&&t.enterButton?a("div",{class:[t.prefixCls+"-group-append",t.prefixCls+"-search"],on:{click:t.handleSearch}},[!0===t.enterButton?a("i",{staticClass:"ivu-icon ivu-icon-ios-search"}):[t._v(t._s(t.enterButton))]],2):t.showPrefix?a("span",{staticClass:"ivu-input-prefix"},[t._t("prefix",(function(){return[t.prefix?a("i",{staticClass:"ivu-icon",class:["ivu-icon-"+t.prefix]}):t._e()]}))],2):t._e()]:[a("textarea",{ref:"textarea",class:t.textareaClasses,style:t.textareaStyles,attrs:{id:t.elementId,wrap:t.wrap,autocomplete:t.autocomplete,spellcheck:t.spellcheck,placeholder:t.placeholder,disabled:t.itemDisabled,rows:t.rows,maxlength:t.maxlength,readonly:t.readonly,name:t.name,autofocus:t.autofocus},domProps:{value:t.currentValue},on:{keyup:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleEnter.apply(null,arguments)},t.handleKeyup],keypress:t.handleKeypress,keydown:t.handleKeydown,focus:t.handleFocus,blur:t.handleBlur,compositionstart:t.handleComposition,compositionupdate:t.handleComposition,compositionend:t.handleComposition,input:t.handleInput,paste:t.handlePaste}}),t._v(" "),t.showWordLimit?a("span",{staticClass:"ivu-input-word-count"},[t._v(t._s(t.textLength)+"/"+t._s(t.upperLimit))]):t._e()]],2)}),[],!1,null,null,null).exports;var m=a(85166),v=a(20629);const y={name:"WCircle",props:{percent:{type:Number,default:0},size:{type:Number,default:120}},computed:{style:function(){var t=this.size;return this.isNumeric(t)&&(t+="px"),{width:t,height:t}},args:function(){var t=this.percent,e=Math.min(360,3.6*t);return 360==e?e=0:0==e&&(e=360),{x:14,y:14,r:14,start:360,end:e}}},methods:{isNumeric:function(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)},point:function(t,e,a,i){return[(t+Math.sin(i)*a).toFixed(2),(e-Math.cos(i)*a).toFixed(2)]},full:function(t,e,a,i){return i<=0?"M ".concat(t-a," ").concat(e," A ").concat(a," ").concat(a," 0 1 1 ").concat(t+a," ").concat(e," A ").concat(a," ").concat(a," 1 1 1 ").concat(t-a," ").concat(e," Z"):"M ".concat(t-a," ").concat(e," A ").concat(a," ").concat(a," 0 1 1 ").concat(t+a," ").concat(e," A ").concat(a," ").concat(a," 1 1 1 ").concat(t-a," ").concat(e," M ").concat(t-i," ").concat(e," A ").concat(i," ").concat(i," 0 1 1 ").concat(t+i," ").concat(e," A ").concat(i," ").concat(i," 1 1 1 ").concat(t-i," ").concat(e," Z")},part:function(t,e,a,i,s,o){var n=s/360*2*Math.PI,r=o/360*2*Math.PI,c=[this.point(t,e,i,n),this.point(t,e,a,n),this.point(t,e,a,r),this.point(t,e,i,r)],l=r-n>Math.PI?"1":"0";return"M ".concat(c[0][0]," ").concat(c[0][1]," L ").concat(c[1][0]," ").concat(c[1][1]," A ").concat(a," ").concat(a," 0 ").concat(l," 1 ").concat(c[2][0]," ").concat(c[2][1]," L ").concat(c[3][0]," ").concat(c[3][1]," A ").concat(i," ").concat(i," 0 ").concat(l," 0 ").concat(c[0][0]," ").concat(c[0][1]," Z")},arc:function(t){var e=t.x,a=void 0===e?0:e,i=t.y,s=void 0===i?0:i,o=t.R,n=void 0===o?0:o,r=t.r,c=void 0===r?0:r,l=t.start,u=t.end,d=[Math.max(n,c),Math.min(n,c)];if(c=d[1],(n=d[0])<=0)return"";if(l!==+l||u!==+u)return this.full(a,s,n,c);if(Math.abs(l-u)<1e-6)return"";if(Math.abs(l-u)%360<1e-6)return this.full(a,s,n,c);var p=[l%360,u%360];return(l=p[0])>(u=p[1])&&(u+=360),this.part(a,s,n,c,l,u)}}};function b(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,i)}return a}function _(t){for(var e=1;e
")).trim().replace(/\n/g,"
"):""},imageStyle:function(t){var e=t.width,a=t.height;if(e&&a){var i=e,s=a;return(e>220||a>220)&&(e>a?(i=220,s=a*(220/e)):(i=e*(220/a),s=220)),{width:i+"px",height:s+"px"}}return{}},downFile:function(){var t=this;$A.modalConfirm({title:"下载文件",content:"".concat(this.msgData.msg.name," (").concat($A.bytesToSize(this.msgData.msg.size),")"),okText:"立即下载",onOk:function(){$A.downFile($A.apiUrl("dialog/msg/download?msg_id=".concat(t.msgData.id,"&token=").concat(t.userToken)))}})}}};const x=(0,g.Z)($,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"dialog-view",attrs:{"data-id":t.msgData.id}},["text"===t.msgData.type?a("div",{staticClass:"dialog-content"},[a("pre",{staticClass:"no-dark-mode",domProps:{innerHTML:t._s(t.textMsg(t.msgData.msg.text))}})]):"loading"===t.msgData.type?a("div",{staticClass:"dialog-content loading"},[a("Loading")],1):"file"===t.msgData.type?a("div",{class:["dialog-content",t.msgData.msg.type]},[a("div",{staticClass:"dialog-file",on:{click:t.downFile}},["img"===t.msgData.msg.type?a("img",{staticClass:"file-img",style:t.imageStyle(t.msgData.msg),attrs:{src:t.msgData.msg.thumb}}):a("div",{staticClass:"file-box"},[a("img",{staticClass:"file-thumb",attrs:{src:t.msgData.msg.thumb}}),t._v(" "),a("div",{staticClass:"file-info"},[a("div",{staticClass:"file-name"},[t._v(t._s(t.msgData.msg.name))]),t._v(" "),a("div",{staticClass:"file-size"},[t._v(t._s(t.$A.bytesToSize(t.msgData.msg.size)))])])])])]):a("div",{staticClass:"dialog-content unknown"},[t._v(t._s(t.$L("未知的消息类型")))]),t._v(" "),t.msgData.created_at?a("div",{staticClass:"dialog-foot"},[a("div",{staticClass:"time"},[t._v(t._s(t.$A.formatTime(t.msgData.created_at)))]),t._v(" "),t.msgData.send>1||"group"==t.dialogType?a("Poptip",{staticClass:"percent",attrs:{placement:"left-end",transfer:"",width:360,offset:8},on:{"on-popper-show":t.popperShow}},[a("div",{staticClass:"dialog-wrapper-read-poptip-content",attrs:{slot:"content"},slot:"content"},[a("ul",{staticClass:"read"},[a("li",{staticClass:"read-title"},[a("em",[t._v(t._s(t.readList.length))]),t._v(t._s(t.$L("已读")))]),t._v(" "),t._l(t.readList,(function(t){return a("li",[a("UserAvatar",{attrs:{userid:t.userid,size:26,showName:""}})],1)}))],2),t._v(" "),a("ul",{staticClass:"unread"},[a("li",{staticClass:"read-title"},[a("em",[t._v(t._s(t.unreadList.length))]),t._v(t._s(t.$L("未读")))]),t._v(" "),t._l(t.unreadList,(function(t){return a("li",[a("UserAvatar",{attrs:{userid:t.userid,size:26,showName:""}})],1)}))],2)]),t._v(" "),a("WCircle",{attrs:{percent:t.msgData.percentage,size:14}})],1):100===t.msgData.percentage?a("Icon",{staticClass:"done",attrs:{type:"md-done-all"}}):a("Icon",{staticClass:"done",attrs:{type:"md-checkmark"}})],1):a("div",{staticClass:"dialog-foot"},[a("Loading")],1)])}),[],!1,null,null,null).exports;function D(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,i)}return a}function C(t){for(var e=1;e0&&(t.preventDefault(),this.pasteFile=[],this.pasteItem=[],s.some((function(t){var e=new FileReader;e.readAsDataURL(t),e.onload=function(e){var i=e.target;a.pasteFile.push(t),a.pasteItem.push({type:$A.getMiddle(t.type,null,"/"),name:t.name,size:t.size,result:i.result}),a.pasteShow=!0}})))},pasteSend:function(){var t=this;this.pasteFile.some((function(e){t.$refs.chatUpload.upload(e)}))},chatDragOver:function(t,e){var a=this,i=this.__dialogDrag=$A.randomString(8);if(t){if("move"===e.dataTransfer.effectAllowed)return;this.dialogDrag=!0}else setTimeout((function(){i===a.__dialogDrag&&(a.dialogDrag=t)}),150)},chatPasteDrag:function(t,e){var a=this;this.dialogDrag=!1;var i="drag"===e?t.dataTransfer.files:t.clipboardData.files,s=Array.prototype.slice.call(i);s.length>0&&(t.preventDefault(),this.pasteFile=[],this.pasteItem=[],s.some((function(t){var e=new FileReader;e.readAsDataURL(t),e.onload=function(e){var i=e.target;a.pasteFile.push(t),a.pasteItem.push({type:$A.getMiddle(t.type,null,"/"),name:t.name,size:t.size,result:i.result}),a.pasteShow=!0}})))},chatFile:function(t,e){switch(t){case"progress":this.tempMsgs.push({id:e.tempId,dialog_id:this.dialogData.id,type:"loading",userid:this.userId,msg:{}}),this.windowMax768&&this.$refs.input.blur(),this.autoToBottom(),this.onActive();break;case"error":this.tempMsgs=this.tempMsgs.filter((function(t){return t.id!=e.tempId}));break;case"success":this.tempMsgs=this.tempMsgs.filter((function(t){return t.id!=e.tempId})),this.sendSuccess(e.data)}},sendSuccess:function(t){this.$store.dispatch("saveDialogMsg",t),this.$store.dispatch("increaseTaskMsgNum",this.dialogId),this.$store.dispatch("updateDialogLastMsg",t),this.onActive()},chatScroll:function(t){switch(t.directionreal){case"up":t.scrollE<10&&(this.msgNew=0,this.autoBottom=!0);break;case"down":this.autoBottom=!1}1===t.scale&&(this.msgNew=0,this.autoBottom=!0)},onEventFocus:function(t){this.inputFocus=!0,this.$emit("on-focus",t)},onEventblur:function(t){this.inputFocus=!1,this.$emit("on-blur",t)},onActive:function(){this.$emit("on-active")},autoToBottom:function(){this.$refs.scroller&&this.$refs.scroller.autoToBottom()},openProject:function(){this.dialogData.group_info&&this.goForward({path:"/manage/project/"+this.dialogData.group_info.id})},openTask:function(){this.dialogData.group_info&&this.$store.dispatch("openTask",this.dialogData.group_info.id)},loadNextPage:function(){var t=this,e=this.dialogMsgList[0].id;this.$store.dispatch("getDialogMoreMsgs",this.dialogId).then((function(){t.$nextTick((function(){t.topId=e;var a=document.getElementById("view_"+e);if(a)try{a.scrollIntoView(!0)}catch(t){scrollIntoView(a,{behavior:"instant",inline:"start"})}}))})).catch((function(){}))},addDialogMsg:function(){var t=this;this.isAutoBottom?this.$nextTick(this.autoToBottom):this.$nextTick((function(){t.$refs.scroller&&t.$refs.scroller.scrollInfo().scrollE>10&&t.msgNew++}))}}};const E=(0,g.Z)(B,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.dialogData&&t.dialogData.id?a("div",{staticClass:"dialog-wrapper",on:{drop:function(e){return e.preventDefault(),t.chatPasteDrag(e,"drag")},dragover:function(e){return e.preventDefault(),t.chatDragOver(!0,e)},dragleave:function(e){return e.preventDefault(),t.chatDragOver(!1,e)}}},[t._t("head",(function(){return[a("div",{staticClass:"dialog-title",class:{completed:t.$A.dialogCompleted(t.dialogData)}},[a("div",{staticClass:"main-title"},[t._l(t.$A.dialogTags(t.dialogData),(function(e){return"success"!=e.color?[a("Tag",{attrs:{color:e.color,fade:!1}},[t._v(t._s(t.$L(e.text)))])]:t._e()})),t._v(" "),a("h2",[t._v(t._s(t.dialogData.name))]),t._v(" "),t.peopleNum>0?a("em",[t._v("("+t._s(t.peopleNum)+")")]):t._e()],2),t._v(" "),"group"===t.dialogData.type?["project"===t.dialogData.group_type?a("div",{staticClass:"sub-title pointer",on:{click:t.openProject}},[t._v("\n "+t._s(t.$L("项目聊天室"))+" "+t._s(t.$L("打开项目管理"))+"\n ")]):"task"===t.dialogData.group_type?a("div",{staticClass:"sub-title pointer",on:{click:t.openTask}},[t._v("\n "+t._s(t.$L("任务聊天室"))+" "+t._s(t.$L("查看任务详情"))+"\n ")]):t._e()]:t._e()],2)]})),t._v(" "),a("ScrollerY",{ref:"scroller",staticClass:"dialog-scroller overlay-y",attrs:{"auto-bottom":t.isAutoBottom,static:""},on:{"on-scroll":t.chatScroll}},[a("div",{ref:"manageList",staticClass:"dialog-list"},[a("ul",[t.dialogData.hasMorePages?a("li",{staticClass:"history",on:{click:t.loadNextPage}},[t._v(t._s(t.$L("加载历史消息")))]):t.dialogData.loading>0&&0===t.dialogMsgList.length?a("li",{staticClass:"loading"},[a("Loading")],1):0===t.dialogMsgList.length?a("li",{staticClass:"nothing"},[t._v(t._s(t.$L("暂无消息")))]):t._e(),t._v(" "),t._l(t.dialogMsgList,(function(e,i){return a("DialogList",{key:e.id,attrs:{dialogMsg:e,topId:t.topId,dialogData:t.dialogData,msgIndex:i}})})),t._v(" "),t._l(t.tempMsgList,(function(e){return a("li",{key:"tmp_"+e.id,class:{self:e.userid==t.userId},attrs:{id:"tmp_"+e.id}},[a("div",{staticClass:"dialog-avatar"},[a("UserAvatar",{attrs:{userid:e.userid,tooltipDisabled:e.userid==t.userId,size:30}})],1),t._v(" "),a("DialogView",{attrs:{"msg-data":e,"dialog-type":t.dialogData.type}})],1)}))],2)])]),t._v(" "),a("div",{class:["dialog-footer",t.msgNew>0&&t.dialogMsgList.length>0?"newmsg":""],on:{click:t.onActive}},[a("div",{staticClass:"dialog-newmsg",on:{click:t.autoToBottom}},[t._v(t._s(t.$L("有"+t.msgNew+"条新消息")))]),t._v(" "),t._t("inputBefore"),t._v(" "),a("DragInput",{ref:"input",staticClass:"dialog-input",attrs:{type:"textarea",rows:1,autosize:{minRows:1,maxRows:3},maxlength:255,placeholder:t.$L("输入消息...")},on:{"on-focus":t.onEventFocus,"on-blur":t.onEventblur,"on-keydown":t.chatKeydown,"on-input-paste":t.pasteDrag},model:{value:t.msgText,callback:function(e){t.msgText=e},expression:"msgText"}}),t._v(" "),""!=t.msgText?a("div",{staticClass:"dialog-send",on:{click:t.sendMsg}},[a("Icon",{attrs:{type:"md-send"}})],1):t._e(),t._v(" "),a("DialogUpload",{ref:"chatUpload",staticClass:"chat-upload",attrs:{"dialog-id":t.dialogId},on:{"on-progress":function(e){return t.chatFile("progress",e)},"on-success":function(e){return t.chatFile("success",e)},"on-error":function(e){return t.chatFile("error",e)}}})],2),t._v(" "),t.dialogDrag?a("div",{staticClass:"drag-over",on:{click:function(e){t.dialogDrag=!1}}},[a("div",{staticClass:"drag-text"},[t._v(t._s(t.$L("拖动到这里发送")))])]):t._e(),t._v(" "),a("Modal",{attrs:{title:t.$L(t.pasteTitle),"cancel-text":t.$L("取消"),"ok-text":t.$L("发送")},on:{"on-ok":t.pasteSend},model:{value:t.pasteShow,callback:function(e){t.pasteShow=e},expression:"pasteShow"}},[a("div",{staticClass:"dialog-wrapper-paste"},[t._l(t.pasteItem,(function(e){return["image"==e.type?a("img",{attrs:{src:e.result}}):a("div",[t._v(t._s(t.$L("文件"))+": "+t._s(e.name)+" ("+t._s(t.$A.bytesToSize(e.size))+")")])]}))],2)])],2):t._e()}),[],!1,null,null,null).exports},66360:(t,e,a)=>{a.r(e),a.d(e,{default:()=>l});var i=a(20629),s=a(36283);function o(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,i)}return a}function n(t){for(var e=1;e0&&(this.dialogId=t)},contactsKey:function(t){var e=this;setTimeout((function(){e.contactsKey==t&&(e.contactsData=null,e.getContactsList(1))}),600)}},methods:{listScroll:function(t){if("up"===t.directionreal)t.scrollE<10&&"contacts"===this.tabActive&&0==this.contactsLoad&&this.contactsHasMorePages&&this.getContactsList(this.contactsCurrentPage+1)},onActive:function(t){if(this.dialogActive==t){var e=this.dialogList.find((function(t){return t.unread>0}));if(e)try{this.$refs["dialog_".concat(e.id)][0].scrollIntoView()}catch(t){scrollIntoView(this.$refs["dialog_".concat(e.id)][0],{behavior:"instant",inline:"end"})}}this.dialogActive=t},closeDialog:function(){this.dialogId=0,$A.setStorage("messenger::dialogId",0)},openDialog:function(t,e){$A.setStorage("messenger::dialogId",t.id),this.dialogId=t.id,this.scrollIntoActive(e)},openDialogStorage:function(){var t=this;if(this.dialogId=$A.getStorageInt("messenger::dialogId"),this.dialogId>0){var e=this.cacheDialogs.find((function(e){return e.id===t.dialogId}));e&&this.openDialog(e,!1)}},openContacts:function(t){var e=this;this.tabActive="dialog",this.$store.dispatch("openDialogUserid",t.userid).then((function(){e.scrollIntoActive()}))},filterDialog:function(t){if(t.unread>0||t.id==this.dialogId)return!0;if(void 0===t.name)return!1;if(!t.last_at)return!1;if("group"==t.type&&["project","task"].includes(t.group_type)&&$A.isJson(t.group_info)){if("task"==t.group_type&&t.group_info.complete_at)if(432e3+Math.max($A.Date(t.last_at,!0),$A.Date(t.group_info.complete_at,!0))<$A.Time())return!1;if(t.group_info.deleted_at)if(172800+Math.max($A.Date(t.last_at,!0),$A.Date(t.group_info.deleted_at,!0))<$A.Time())return!1;if(t.group_info.archived_at)if(259200+Math.max($A.Date(t.last_at,!0),$A.Date(t.group_info.archived_at,!0))<$A.Time())return!1}return!0},getContactsList:function(t){var e=this;null===this.contactsData&&(this.contactsData={}),this.contactsLoad++,this.$store.dispatch("call",{url:"users/search",data:{keys:{key:this.contactsKey},sorts:{az:"asc"},page:t,pagesize:50}}).then((function(t){var a=t.data;e.contactsLoad--,a.data.some((function(t){if(t.userid===e.userId)return!1;var a=t.az?t.az.toUpperCase():"#";void 0===e.contactsData[a]&&(e.contactsData[a]=[]);var i=e.contactsData[a].findIndex((function(e){return e.userid===t.userid}));i>-1?e.contactsData[a].splice(i,1,t):(e.contactsData[a].push(t),e.contactsList.push(t))})),e.contactsCurrentPage=a.current_page,e.contactsHasMorePages=a.current_page0?a("li",{staticClass:"loading"},[a("Loading")],1):t.contactsHasMorePages?t._e():a("li",{staticClass:"loaded"},[t._v(t._s(t.$L("共"+t.contactsList.length+"位联系人")))])],2)]),t._v(" "),a("div",{staticClass:"messenger-menu"},[a("Icon",{class:{active:"dialog"===t.tabActive},attrs:{type:"ios-chatbubbles"},on:{click:function(e){t.tabActive="dialog"}}}),t._v(" "),a("Icon",{class:{active:"contacts"===t.tabActive},attrs:{type:"md-person"},on:{click:function(e){t.tabActive="contacts"}}})],1)],1),t._v(" "),a("div",{staticClass:"messenger-msg"},[a("div",{staticClass:"msg-dialog-bg"},[a("div",{staticClass:"msg-dialog-bg-icon"},[a("Icon",{attrs:{type:"ios-chatbubbles"}})],1),t._v(" "),a("div",{staticClass:"msg-dialog-bg-text"},[t._v(t._s(t.$L("选择一个会话开始聊天")))])]),t._v(" "),t.dialogId>0?a("DialogWrapper",{attrs:{dialogId:t.dialogId},on:{"on-active":t.scrollIntoActive}},[a("div",{staticClass:"dialog-back",attrs:{slot:"inputBefore"},on:{click:t.closeDialog},slot:"inputBefore"},[a("Icon",{attrs:{type:"md-arrow-back"}})],1)]):t._e()],1)])],1)}),[],!1,null,null,null).exports}}]); \ No newline at end of file +"use strict";(self.webpackChunkDooTask=self.webpackChunkDooTask||[]).push([[360],{85166:(t,e,a)=>{a.d(e,{Z:()=>s});const i={name:"ScrollerY",props:{static:{type:Boolean,default:!1},autoBottom:{type:Boolean,default:!1},autoRecovery:{type:Boolean,default:!0},autoRecoveryAnimate:{type:Boolean,default:!1}},data:function(){return{scrollY:0,scrollDiff:0,autoInterval:null}},mounted:function(){this.openInterval(),this.$nextTick(this.initScroll)},activated:function(){this.openInterval(),this.recoveryScroll()},destroyed:function(){this.closeInterval()},deactivated:function(){this.closeInterval()},methods:{initScroll:function(){var t=this;this.autoToBottom();var e="function"==typeof this.$listeners["on-scroll"],a=$A(this.$refs.scrollerView);a.scroll((function(){var i=Math.round(a.innerHeight()),s=a.scrollTop(),o=t.$refs.scrollerView.scrollHeight;if(t.scrollY=s,e){var n="static",r="static";t.scrollDiff-s>50?(t.scrollDiff=s,n="down"):t.scrollDiff-s<-100&&(t.scrollDiff=s,n="up"),t.scrollDiff-s>1?(t.scrollDiff=s,r="down"):t.scrollDiff-s<-1&&(t.scrollDiff=s,r="up"),t.$emit("on-scroll",{scale:s/(o-i),scrollY:s,scrollE:o-i-s,direction:n,directionreal:r})}}))},recoveryScroll:function(){var t=this;this.autoRecovery&&(this.scrollY>0||this.autoBottom)&&this.$nextTick((function(){t.autoBottom?t.autoToBottom():t.scrollTo(t.scrollY,t.autoRecoveryAnimate)}))},openInterval:function(){this.autoToBottom(),this.autoInterval&&clearInterval(this.autoInterval),this.autoInterval=setInterval(this.autoToBottom,300)},closeInterval:function(){clearInterval(this.autoInterval),this.autoInterval=null},scrollTo:function(t,e){!1===e?$A(this.$refs.scrollerView).stop().scrollTop(t):$A(this.$refs.scrollerView).stop().animate({scrollTop:t})},autoToBottom:function(){if(this.autoBottom&&this.$refs.bottom)try{this.$refs.bottom.scrollIntoView(!1)}catch(t){scrollIntoView(this.$refs.bottom,{behavior:"instant",inline:"end"})}},scrollInfo:function(){var t=$A(this.$refs.scrollerView),e=Math.round(t.innerHeight()),a=t.scrollTop(),i=this.$refs.scrollerView.scrollHeight;return this.scrollY=a,{scale:a/(i-e),scrollY:a,scrollE:i-e-a}},querySelector:function(t){return this.$refs.scrollerView&&this.$refs.scrollerView.querySelector(t)}}};const s=(0,a(51900).Z)(i,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{ref:"scrollerView",staticClass:"app-scroller-y",class:[t.static?"static":""]},[t._t("default"),t._v(" "),a("div",{ref:"bottom",staticClass:"app-scroller-bottom"})],2)}),[],!1,null,null,null).exports},16196:(t,e,a)=>{a.d(e,{Z:()=>E});const i=a(70538).default.prototype.$isServer;function s(t,e){for(let a=0;a`${t}:${i.getPropertyValue(t)}`)).join(";"),paddingSize:o,borderSize:r,boxSizing:s};return e&&a&&(c[a]=l),l}(t,i);r.setAttribute("style",`${u};\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important\n`),r.value=t.value||t.placeholder||"";let d,p=Number.MIN_SAFE_INTEGER,h=Number.MAX_SAFE_INTEGER,g=r.scrollHeight;if("border-box"===l?g+=o:"content-box"===l&&(g-=s),null!==e||null!==a){r.value=" ";let t=r.scrollHeight-s;null!==e&&(p=t*e,"border-box"===l&&(p=p+s+o),g=Math.max(p,g)),null!==a&&(h=t*a,"border-box"===l&&(h=h+s+o),d=g>h?"":"hidden",g=Math.min(h,g))}return a||(d="hidden"),{height:`${g}px`,minHeight:`${p}px`,maxHeight:`${h}px`,overflowY:d}}function u(t,e,a){this.$children.forEach((i=>{i.$options.name===t?i.$emit.apply(i,[e].concat(a)):u.apply(i,[t,e].concat([a]))}))}function d(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var p="ivu-input";const h={name:"DragInput",mixins:[{methods:{dispatch(t,e,a){let i=this.$parent||this.$root,s=i.$options.name;for(;i&&(!s||s!==t);)i=i.$parent,i&&(s=i.$options.name);i&&i.$emit.apply(i,[e].concat(a))},broadcast(t,e,a){u.call(this,t,e,a)}}},{inject:{FormInstance:{default:""}},computed:{itemDisabled(){let t=this.disabled;return!t&&this.FormInstance&&(t=this.FormInstance.disabled),t}}}],props:{type:{validator:function(t){return s(t,["text","textarea","password","url","email","date","number","tel"])},default:"text"},value:{type:[String,Number],default:""},size:{validator:function(t){return s(t,["small","large","default"])},default:function(){return this.$IVIEW&&""!==this.$IVIEW.size?this.$IVIEW.size:"default"}},placeholder:{type:String,default:""},maxlength:{type:[String,Number]},disabled:{type:Boolean,default:!1},icon:String,autosize:{type:[Boolean,Object],default:!1},rows:{type:Number,default:2},readonly:{type:Boolean,default:!1},name:{type:String},number:{type:Boolean,default:!1},autofocus:{type:Boolean,default:!1},spellcheck:{type:Boolean,default:!1},autocomplete:{type:String,default:"off"},clearable:{type:Boolean,default:!1},elementId:{type:String},wrap:{validator:function(t){return s(t,["hard","soft"])},default:"soft"},prefix:{type:String,default:""},suffix:{type:String,default:""},search:{type:Boolean,default:!1},enterButton:{type:[Boolean,String],default:!1},showWordLimit:{type:Boolean,default:!1},password:{type:Boolean,default:!1}},data:function(){return{currentValue:this.value,prefixCls:p,slotReady:!1,textareaStyles:{},isOnComposition:!1,showPassword:!1}},computed:{currentType:function(){var t=this.type;return"password"===t&&this.password&&this.showPassword&&(t="text"),t},prepend:function(){var t=!1;return"textarea"!==this.type&&(t=void 0!==this.$slots.prepend),t},append:function(){var t=!1;return"textarea"!==this.type&&(t=void 0!==this.$slots.append),t},showPrefix:function(){var t=!1;return"textarea"!==this.type&&(t=""!==this.prefix||void 0!==this.$slots.prefix),t},showSuffix:function(){var t=!1;return"textarea"!==this.type&&(t=""!==this.suffix||void 0!==this.$slots.suffix),t},wrapClasses:function(){var t;return["".concat(p,"-wrapper"),(t={},d(t,"".concat(p,"-wrapper-").concat(this.size),!!this.size),d(t,"".concat(p,"-type-").concat(this.type),this.type),d(t,"".concat(p,"-group"),this.prepend||this.append||this.search&&this.enterButton),d(t,"".concat(p,"-group-").concat(this.size),(this.prepend||this.append||this.search&&this.enterButton)&&!!this.size),d(t,"".concat(p,"-group-with-prepend"),this.prepend),d(t,"".concat(p,"-group-with-append"),this.append||this.search&&this.enterButton),d(t,"".concat(p,"-hide-icon"),this.append),d(t,"".concat(p,"-with-search"),this.search&&this.enterButton),t)]},inputClasses:function(){var t;return["".concat(p),(t={},d(t,"".concat(p,"-").concat(this.size),!!this.size),d(t,"".concat(p,"-disabled"),this.itemDisabled),d(t,"".concat(p,"-with-prefix"),this.showPrefix),d(t,"".concat(p,"-with-suffix"),this.showSuffix||this.search&&!1===this.enterButton),t)]},textareaClasses:function(){return["".concat(p),d({},"".concat(p,"-disabled"),this.itemDisabled)]},upperLimit:function(){return this.maxlength},textLength:function(){return"number"==typeof this.value?String(this.value).length:(this.value||"").length}},methods:{handleEnter:function(t){this.$emit("on-enter",t),this.search&&this.$emit("on-search",this.currentValue)},handleKeydown:function(t){this.$emit("on-keydown",t)},handleKeypress:function(t){this.$emit("on-keypress",t)},handleKeyup:function(t){this.$emit("on-keyup",t)},handleIconClick:function(t){this.$emit("on-click",t)},handleFocus:function(t){this.$emit("on-focus",t)},handleBlur:function(t){this.$emit("on-blur",t),o(this,["DatePicker","TimePicker","Cascader","Search"])||this.dispatch("FormItem","on-form-blur",this.currentValue)},handleComposition:function(t){"compositionstart"===t.type&&(this.isOnComposition=!0),"compositionend"===t.type&&(this.isOnComposition=!1,this.handleInput(t))},handleInput:function(t){if(!this.isOnComposition){var e=t.target.value;this.number&&""!==e&&(e=Number.isNaN(Number(e))?e:Number(e)),this.$emit("input",e),this.setCurrentValue(e),this.$emit("on-change",t)}},handleChange:function(t){this.$emit("on-input-change",t)},handlePaste:function(t){this.$emit("on-input-paste",t)},setCurrentValue:function(t){var e=this;t!==this.currentValue&&(this.$nextTick((function(){e.resizeTextarea()})),this.currentValue=t,o(this,["DatePicker","TimePicker","Cascader","Search"])||this.dispatch("FormItem","on-form-change",t))},resizeTextarea:function(){var t=this.autosize;if(!t||"textarea"!==this.type)return!1;var e=t.minRows,a=t.maxRows;this.textareaStyles=l(this.$refs.textarea,e,a)},focus:function(){"textarea"===this.type?this.$refs.textarea.focus():this.$refs.input.focus()},blur:function(){"textarea"===this.type?this.$refs.textarea.blur():this.$refs.input.blur()},handleClear:function(){this.$emit("input",""),this.setCurrentValue(""),this.$emit("on-change",{target:{value:""}}),this.$emit("on-clear")},handleSearch:function(){if(this.itemDisabled)return!1;this.$refs.input.focus(),this.$emit("on-search",this.currentValue)},handleToggleShowPassword:function(){var t=this;if(this.itemDisabled)return!1;this.showPassword=!this.showPassword,this.focus();var e=this.currentValue.length;setTimeout((function(){t.$refs.input.setSelectionRange(e,e)}),0)}},watch:{value:function(t){this.setCurrentValue(t)}},mounted:function(){this.slotReady=!0,this.resizeTextarea()}};var g=a(51900);const f=(0,g.Z)(h,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{class:t.wrapClasses},["textarea"!==t.type?[t.prepend?a("div",{directives:[{name:"show",rawName:"v-show",value:t.slotReady,expression:"slotReady"}],class:[t.prefixCls+"-group-prepend"]},[t._t("prepend")],2):t._e(),t._v(" "),t.clearable&&t.currentValue&&!t.itemDisabled?a("i",{staticClass:"ivu-icon",class:["ivu-icon-ios-close-circle",t.prefixCls+"-icon",t.prefixCls+"-icon-clear",t.prefixCls+"-icon-normal"],on:{click:t.handleClear}}):t.icon?a("i",{staticClass:"ivu-icon",class:["ivu-icon-"+t.icon,t.prefixCls+"-icon",t.prefixCls+"-icon-normal"],on:{click:t.handleIconClick}}):t.search&&!1===t.enterButton?a("i",{staticClass:"ivu-icon ivu-icon-ios-search",class:[t.prefixCls+"-icon",t.prefixCls+"-icon-normal",t.prefixCls+"-search-icon"],on:{click:t.handleSearch}}):t.showSuffix?a("span",{staticClass:"ivu-input-suffix"},[t._t("suffix",(function(){return[t.suffix?a("i",{staticClass:"ivu-icon",class:["ivu-icon-"+t.suffix]}):t._e()]}))],2):t.showWordLimit?a("span",{staticClass:"ivu-input-word-count"},[t._v(t._s(t.textLength)+"/"+t._s(t.upperLimit))]):t.password?a("span",{staticClass:"ivu-input-suffix",on:{click:t.handleToggleShowPassword}},[t.showPassword?a("i",{staticClass:"ivu-icon ivu-icon-ios-eye-off-outline"}):a("i",{staticClass:"ivu-icon ivu-icon-ios-eye-outline"})]):t._e(),t._v(" "),a("transition",{attrs:{name:"fade"}},[t.icon?t._e():a("i",{staticClass:"ivu-icon ivu-icon-ios-loading ivu-load-loop",class:[t.prefixCls+"-icon",t.prefixCls+"-icon-validate"]})]),t._v(" "),a("input",{ref:"input",class:t.inputClasses,attrs:{id:t.elementId,autocomplete:t.autocomplete,spellcheck:t.spellcheck,type:t.currentType,placeholder:t.placeholder,disabled:t.itemDisabled,maxlength:t.maxlength,readonly:t.readonly,name:t.name,number:t.number,autofocus:t.autofocus},domProps:{value:t.currentValue},on:{keyup:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleEnter.apply(null,arguments)},t.handleKeyup],keypress:t.handleKeypress,keydown:t.handleKeydown,focus:t.handleFocus,blur:t.handleBlur,compositionstart:t.handleComposition,compositionupdate:t.handleComposition,compositionend:t.handleComposition,input:t.handleInput,change:t.handleChange,paste:t.handlePaste}}),t._v(" "),t.append?a("div",{directives:[{name:"show",rawName:"v-show",value:t.slotReady,expression:"slotReady"}],class:[t.prefixCls+"-group-append"]},[t._t("append")],2):t.search&&t.enterButton?a("div",{class:[t.prefixCls+"-group-append",t.prefixCls+"-search"],on:{click:t.handleSearch}},[!0===t.enterButton?a("i",{staticClass:"ivu-icon ivu-icon-ios-search"}):[t._v(t._s(t.enterButton))]],2):t.showPrefix?a("span",{staticClass:"ivu-input-prefix"},[t._t("prefix",(function(){return[t.prefix?a("i",{staticClass:"ivu-icon",class:["ivu-icon-"+t.prefix]}):t._e()]}))],2):t._e()]:[a("textarea",{ref:"textarea",class:t.textareaClasses,style:t.textareaStyles,attrs:{id:t.elementId,wrap:t.wrap,autocomplete:t.autocomplete,spellcheck:t.spellcheck,placeholder:t.placeholder,disabled:t.itemDisabled,rows:t.rows,maxlength:t.maxlength,readonly:t.readonly,name:t.name,autofocus:t.autofocus},domProps:{value:t.currentValue},on:{keyup:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleEnter.apply(null,arguments)},t.handleKeyup],keypress:t.handleKeypress,keydown:t.handleKeydown,focus:t.handleFocus,blur:t.handleBlur,compositionstart:t.handleComposition,compositionupdate:t.handleComposition,compositionend:t.handleComposition,input:t.handleInput,paste:t.handlePaste}}),t._v(" "),t.showWordLimit?a("span",{staticClass:"ivu-input-word-count"},[t._v(t._s(t.textLength)+"/"+t._s(t.upperLimit))]):t._e()]],2)}),[],!1,null,null,null).exports;var m=a(85166),v=a(20629);const y={name:"WCircle",props:{percent:{type:Number,default:0},size:{type:Number,default:120}},computed:{style:function(){var t=this.size;return this.isNumeric(t)&&(t+="px"),{width:t,height:t}},args:function(){var t=this.percent,e=Math.min(360,3.6*t);return 360==e?e=0:0==e&&(e=360),{x:14,y:14,r:14,start:360,end:e}}},methods:{isNumeric:function(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)},point:function(t,e,a,i){return[(t+Math.sin(i)*a).toFixed(2),(e-Math.cos(i)*a).toFixed(2)]},full:function(t,e,a,i){return i<=0?"M ".concat(t-a," ").concat(e," A ").concat(a," ").concat(a," 0 1 1 ").concat(t+a," ").concat(e," A ").concat(a," ").concat(a," 1 1 1 ").concat(t-a," ").concat(e," Z"):"M ".concat(t-a," ").concat(e," A ").concat(a," ").concat(a," 0 1 1 ").concat(t+a," ").concat(e," A ").concat(a," ").concat(a," 1 1 1 ").concat(t-a," ").concat(e," M ").concat(t-i," ").concat(e," A ").concat(i," ").concat(i," 0 1 1 ").concat(t+i," ").concat(e," A ").concat(i," ").concat(i," 1 1 1 ").concat(t-i," ").concat(e," Z")},part:function(t,e,a,i,s,o){var n=s/360*2*Math.PI,r=o/360*2*Math.PI,c=[this.point(t,e,i,n),this.point(t,e,a,n),this.point(t,e,a,r),this.point(t,e,i,r)],l=r-n>Math.PI?"1":"0";return"M ".concat(c[0][0]," ").concat(c[0][1]," L ").concat(c[1][0]," ").concat(c[1][1]," A ").concat(a," ").concat(a," 0 ").concat(l," 1 ").concat(c[2][0]," ").concat(c[2][1]," L ").concat(c[3][0]," ").concat(c[3][1]," A ").concat(i," ").concat(i," 0 ").concat(l," 0 ").concat(c[0][0]," ").concat(c[0][1]," Z")},arc:function(t){var e=t.x,a=void 0===e?0:e,i=t.y,s=void 0===i?0:i,o=t.R,n=void 0===o?0:o,r=t.r,c=void 0===r?0:r,l=t.start,u=t.end,d=[Math.max(n,c),Math.min(n,c)];if(c=d[1],(n=d[0])<=0)return"";if(l!==+l||u!==+u)return this.full(a,s,n,c);if(Math.abs(l-u)<1e-6)return"";if(Math.abs(l-u)%360<1e-6)return this.full(a,s,n,c);var p=[l%360,u%360];return(l=p[0])>(u=p[1])&&(u+=360),this.part(a,s,n,c,l,u)}}};function b(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,i)}return a}function _(t){for(var e=1;e
")).trim().replace(/\n/g,"
"):""},imageStyle:function(t){var e=t.width,a=t.height;if(e&&a){var i=e,s=a;return(e>180||a>180)&&(e>a?(i=180,s=a*(180/e)):(i=e*(180/a),s=180)),{width:i+"px",height:s+"px"}}return{}},downFile:function(){var t=this;$A.modalConfirm({title:"下载文件",content:"".concat(this.msgData.msg.name," (").concat($A.bytesToSize(this.msgData.msg.size),")"),okText:"立即下载",onOk:function(){$A.downFile($A.apiUrl("dialog/msg/download?msg_id=".concat(t.msgData.id,"&token=").concat(t.userToken)))}})}}};const x=(0,g.Z)($,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"dialog-view",attrs:{"data-id":t.msgData.id}},["text"===t.msgData.type?a("div",{staticClass:"dialog-content"},[a("pre",{staticClass:"no-dark-mode",domProps:{innerHTML:t._s(t.textMsg(t.msgData.msg.text))}})]):"loading"===t.msgData.type?a("div",{staticClass:"dialog-content loading"},[a("Loading")],1):"file"===t.msgData.type?a("div",{class:["dialog-content",t.msgData.msg.type]},[a("div",{staticClass:"dialog-file",on:{click:t.downFile}},["img"===t.msgData.msg.type?a("img",{staticClass:"file-img",style:t.imageStyle(t.msgData.msg),attrs:{src:t.msgData.msg.thumb}}):a("div",{staticClass:"file-box"},[a("img",{staticClass:"file-thumb",attrs:{src:t.msgData.msg.thumb}}),t._v(" "),a("div",{staticClass:"file-info"},[a("div",{staticClass:"file-name"},[t._v(t._s(t.msgData.msg.name))]),t._v(" "),a("div",{staticClass:"file-size"},[t._v(t._s(t.$A.bytesToSize(t.msgData.msg.size)))])])])])]):a("div",{staticClass:"dialog-content unknown"},[t._v(t._s(t.$L("未知的消息类型")))]),t._v(" "),t.msgData.created_at?a("div",{staticClass:"dialog-foot"},[a("div",{staticClass:"time"},[t._v(t._s(t.$A.formatTime(t.msgData.created_at)))]),t._v(" "),t.msgData.send>1||"group"==t.dialogType?a("Poptip",{staticClass:"percent",attrs:{placement:"left-end",transfer:"",width:360,offset:8},on:{"on-popper-show":t.popperShow}},[a("div",{staticClass:"dialog-wrapper-read-poptip-content",attrs:{slot:"content"},slot:"content"},[a("ul",{staticClass:"read"},[a("li",{staticClass:"read-title"},[a("em",[t._v(t._s(t.readList.length))]),t._v(t._s(t.$L("已读")))]),t._v(" "),t._l(t.readList,(function(t){return a("li",[a("UserAvatar",{attrs:{userid:t.userid,size:26,showName:""}})],1)}))],2),t._v(" "),a("ul",{staticClass:"unread"},[a("li",{staticClass:"read-title"},[a("em",[t._v(t._s(t.unreadList.length))]),t._v(t._s(t.$L("未读")))]),t._v(" "),t._l(t.unreadList,(function(t){return a("li",[a("UserAvatar",{attrs:{userid:t.userid,size:26,showName:""}})],1)}))],2)]),t._v(" "),a("WCircle",{attrs:{percent:t.msgData.percentage,size:14}})],1):100===t.msgData.percentage?a("Icon",{staticClass:"done",attrs:{type:"md-done-all"}}):a("Icon",{staticClass:"done",attrs:{type:"md-checkmark"}})],1):a("div",{staticClass:"dialog-foot"},[a("Loading")],1)])}),[],!1,null,null,null).exports;function D(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,i)}return a}function C(t){for(var e=1;e0&&(t.preventDefault(),this.pasteFile=[],this.pasteItem=[],s.some((function(t){var e=new FileReader;e.readAsDataURL(t),e.onload=function(e){var i=e.target;a.pasteFile.push(t),a.pasteItem.push({type:$A.getMiddle(t.type,null,"/"),name:t.name,size:t.size,result:i.result}),a.pasteShow=!0}})))},pasteSend:function(){var t=this;this.pasteFile.some((function(e){t.$refs.chatUpload.upload(e)}))},chatDragOver:function(t,e){var a=this,i=this.__dialogDrag=$A.randomString(8);if(t){if("move"===e.dataTransfer.effectAllowed)return;this.dialogDrag=!0}else setTimeout((function(){i===a.__dialogDrag&&(a.dialogDrag=t)}),150)},chatPasteDrag:function(t,e){var a=this;this.dialogDrag=!1;var i="drag"===e?t.dataTransfer.files:t.clipboardData.files,s=Array.prototype.slice.call(i);s.length>0&&(t.preventDefault(),this.pasteFile=[],this.pasteItem=[],s.some((function(t){var e=new FileReader;e.readAsDataURL(t),e.onload=function(e){var i=e.target;a.pasteFile.push(t),a.pasteItem.push({type:$A.getMiddle(t.type,null,"/"),name:t.name,size:t.size,result:i.result}),a.pasteShow=!0}})))},chatFile:function(t,e){switch(t){case"progress":this.tempMsgs.push({id:e.tempId,dialog_id:this.dialogData.id,type:"loading",userid:this.userId,msg:{}}),this.windowMax768&&this.$refs.input.blur(),this.autoToBottom(),this.onActive();break;case"error":this.tempMsgs=this.tempMsgs.filter((function(t){return t.id!=e.tempId}));break;case"success":this.tempMsgs=this.tempMsgs.filter((function(t){return t.id!=e.tempId})),this.sendSuccess(e.data)}},sendSuccess:function(t){this.$store.dispatch("saveDialogMsg",t),this.$store.dispatch("increaseTaskMsgNum",this.dialogId),this.$store.dispatch("updateDialogLastMsg",t),this.onActive()},chatScroll:function(t){switch(t.directionreal){case"up":t.scrollE<10&&(this.msgNew=0,this.autoBottom=!0);break;case"down":this.autoBottom=!1}1===t.scale&&(this.msgNew=0,this.autoBottom=!0)},onEventFocus:function(t){this.inputFocus=!0,this.$emit("on-focus",t)},onEventblur:function(t){this.inputFocus=!1,this.$emit("on-blur",t)},onActive:function(){this.$emit("on-active")},autoToBottom:function(){this.$refs.scroller&&this.$refs.scroller.autoToBottom()},openProject:function(){this.dialogData.group_info&&this.goForward({path:"/manage/project/"+this.dialogData.group_info.id})},openTask:function(){this.dialogData.group_info&&this.$store.dispatch("openTask",this.dialogData.group_info.id)},loadNextPage:function(){var t=this,e=this.dialogMsgList[0].id;this.$store.dispatch("getDialogMoreMsgs",this.dialogId).then((function(){t.$nextTick((function(){t.topId=e;var a=document.getElementById("view_"+e);if(a)try{a.scrollIntoView(!0)}catch(t){scrollIntoView(a,{behavior:"instant",inline:"start"})}}))})).catch((function(){}))},addDialogMsg:function(){var t=this;this.isAutoBottom?this.$nextTick(this.autoToBottom):this.$nextTick((function(){t.$refs.scroller&&t.$refs.scroller.scrollInfo().scrollE>10&&t.msgNew++}))}}};const E=(0,g.Z)(B,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.dialogData&&t.dialogData.id?a("div",{staticClass:"dialog-wrapper",on:{drop:function(e){return e.preventDefault(),t.chatPasteDrag(e,"drag")},dragover:function(e){return e.preventDefault(),t.chatDragOver(!0,e)},dragleave:function(e){return e.preventDefault(),t.chatDragOver(!1,e)}}},[t._t("head",(function(){return[a("div",{staticClass:"dialog-title",class:{completed:t.$A.dialogCompleted(t.dialogData)}},[a("div",{staticClass:"main-title"},[t._l(t.$A.dialogTags(t.dialogData),(function(e){return"success"!=e.color?[a("Tag",{attrs:{color:e.color,fade:!1}},[t._v(t._s(t.$L(e.text)))])]:t._e()})),t._v(" "),a("h2",[t._v(t._s(t.dialogData.name))]),t._v(" "),t.peopleNum>0?a("em",[t._v("("+t._s(t.peopleNum)+")")]):t._e()],2),t._v(" "),"group"===t.dialogData.type?["project"===t.dialogData.group_type?a("div",{staticClass:"sub-title pointer",on:{click:t.openProject}},[t._v("\n "+t._s(t.$L("项目聊天室"))+" "+t._s(t.$L("打开项目管理"))+"\n ")]):"task"===t.dialogData.group_type?a("div",{staticClass:"sub-title pointer",on:{click:t.openTask}},[t._v("\n "+t._s(t.$L("任务聊天室"))+" "+t._s(t.$L("查看任务详情"))+"\n ")]):t._e()]:t._e()],2)]})),t._v(" "),a("ScrollerY",{ref:"scroller",staticClass:"dialog-scroller overlay-y",attrs:{"auto-bottom":t.isAutoBottom,static:""},on:{"on-scroll":t.chatScroll}},[a("div",{ref:"manageList",staticClass:"dialog-list"},[a("ul",[t.dialogData.hasMorePages?a("li",{staticClass:"history",on:{click:t.loadNextPage}},[t._v(t._s(t.$L("加载历史消息")))]):t.dialogData.loading>0&&0===t.dialogMsgList.length?a("li",{staticClass:"loading"},[a("Loading")],1):0===t.dialogMsgList.length?a("li",{staticClass:"nothing"},[t._v(t._s(t.$L("暂无消息")))]):t._e(),t._v(" "),t._l(t.dialogMsgList,(function(e,i){return a("DialogList",{key:e.id,attrs:{dialogMsg:e,topId:t.topId,dialogData:t.dialogData,msgIndex:i}})})),t._v(" "),t._l(t.tempMsgList,(function(e){return a("li",{key:"tmp_"+e.id,class:{self:e.userid==t.userId},attrs:{id:"tmp_"+e.id}},[a("div",{staticClass:"dialog-avatar"},[a("UserAvatar",{attrs:{userid:e.userid,tooltipDisabled:e.userid==t.userId,size:30}})],1),t._v(" "),a("DialogView",{attrs:{"msg-data":e,"dialog-type":t.dialogData.type}})],1)}))],2)])]),t._v(" "),a("div",{class:["dialog-footer",t.msgNew>0&&t.dialogMsgList.length>0?"newmsg":""],on:{click:t.onActive}},[a("div",{staticClass:"dialog-newmsg",on:{click:t.autoToBottom}},[t._v(t._s(t.$L("有"+t.msgNew+"条新消息")))]),t._v(" "),t._t("inputBefore"),t._v(" "),a("DragInput",{ref:"input",staticClass:"dialog-input",attrs:{type:"textarea",rows:1,autosize:{minRows:1,maxRows:3},maxlength:255,placeholder:t.$L("输入消息...")},on:{"on-focus":t.onEventFocus,"on-blur":t.onEventblur,"on-keydown":t.chatKeydown,"on-input-paste":t.pasteDrag},model:{value:t.msgText,callback:function(e){t.msgText=e},expression:"msgText"}}),t._v(" "),""!=t.msgText?a("div",{staticClass:"dialog-send",on:{click:t.sendMsg}},[a("Icon",{attrs:{type:"md-send"}})],1):t._e(),t._v(" "),a("DialogUpload",{ref:"chatUpload",staticClass:"chat-upload",attrs:{"dialog-id":t.dialogId},on:{"on-progress":function(e){return t.chatFile("progress",e)},"on-success":function(e){return t.chatFile("success",e)},"on-error":function(e){return t.chatFile("error",e)}}})],2),t._v(" "),t.dialogDrag?a("div",{staticClass:"drag-over",on:{click:function(e){t.dialogDrag=!1}}},[a("div",{staticClass:"drag-text"},[t._v(t._s(t.$L("拖动到这里发送")))])]):t._e(),t._v(" "),a("Modal",{attrs:{title:t.$L(t.pasteTitle),"cancel-text":t.$L("取消"),"ok-text":t.$L("发送")},on:{"on-ok":t.pasteSend},model:{value:t.pasteShow,callback:function(e){t.pasteShow=e},expression:"pasteShow"}},[a("div",{staticClass:"dialog-wrapper-paste"},[t._l(t.pasteItem,(function(e){return["image"==e.type?a("img",{attrs:{src:e.result}}):a("div",[t._v(t._s(t.$L("文件"))+": "+t._s(e.name)+" ("+t._s(t.$A.bytesToSize(e.size))+")")])]}))],2)])],2):t._e()}),[],!1,null,null,null).exports},66360:(t,e,a)=>{a.r(e),a.d(e,{default:()=>l});var i=a(20629),s=a(16196);function o(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,i)}return a}function n(t){for(var e=1;e0&&(this.dialogId=t)},contactsKey:function(t){var e=this;setTimeout((function(){e.contactsKey==t&&(e.contactsData=null,e.getContactsList(1))}),600)}},methods:{listScroll:function(t){if("up"===t.directionreal)t.scrollE<10&&"contacts"===this.tabActive&&0==this.contactsLoad&&this.contactsHasMorePages&&this.getContactsList(this.contactsCurrentPage+1)},onActive:function(t){if(this.dialogActive==t){var e=this.dialogList.find((function(t){return t.unread>0}));if(e)try{this.$refs["dialog_".concat(e.id)][0].scrollIntoView()}catch(t){scrollIntoView(this.$refs["dialog_".concat(e.id)][0],{behavior:"instant",inline:"end"})}}this.dialogActive=t},closeDialog:function(){this.dialogId=0,$A.setStorage("messenger::dialogId",0)},openDialog:function(t,e){$A.setStorage("messenger::dialogId",t.id),this.dialogId=t.id,this.scrollIntoActive(e)},openDialogStorage:function(){var t=this;if(this.dialogId=$A.getStorageInt("messenger::dialogId"),this.dialogId>0){var e=this.cacheDialogs.find((function(e){return e.id===t.dialogId}));e&&this.openDialog(e,!1)}},openContacts:function(t){var e=this;this.tabActive="dialog",this.$store.dispatch("openDialogUserid",t.userid).then((function(){e.scrollIntoActive()}))},filterDialog:function(t){if(t.unread>0||t.id==this.dialogId)return!0;if(void 0===t.name)return!1;if(!t.last_at)return!1;if("group"==t.type&&["project","task"].includes(t.group_type)&&$A.isJson(t.group_info)){if("task"==t.group_type&&t.group_info.complete_at)if(432e3+Math.max($A.Date(t.last_at,!0),$A.Date(t.group_info.complete_at,!0))<$A.Time())return!1;if(t.group_info.deleted_at)if(172800+Math.max($A.Date(t.last_at,!0),$A.Date(t.group_info.deleted_at,!0))<$A.Time())return!1;if(t.group_info.archived_at)if(259200+Math.max($A.Date(t.last_at,!0),$A.Date(t.group_info.archived_at,!0))<$A.Time())return!1}return!0},getContactsList:function(t){var e=this;null===this.contactsData&&(this.contactsData={}),this.contactsLoad++,this.$store.dispatch("call",{url:"users/search",data:{keys:{key:this.contactsKey},sorts:{az:"asc"},page:t,pagesize:50}}).then((function(t){var a=t.data;e.contactsLoad--,a.data.some((function(t){if(t.userid===e.userId)return!1;var a=t.az?t.az.toUpperCase():"#";void 0===e.contactsData[a]&&(e.contactsData[a]=[]);var i=e.contactsData[a].findIndex((function(e){return e.userid===t.userid}));i>-1?e.contactsData[a].splice(i,1,t):(e.contactsData[a].push(t),e.contactsList.push(t))})),e.contactsCurrentPage=a.current_page,e.contactsHasMorePages=a.current_page0?a("li",{staticClass:"loading"},[a("Loading")],1):t.contactsHasMorePages?t._e():a("li",{staticClass:"loaded"},[t._v(t._s(t.$L("共"+t.contactsList.length+"位联系人")))])],2)]),t._v(" "),a("div",{staticClass:"messenger-menu"},[a("Icon",{class:{active:"dialog"===t.tabActive},attrs:{type:"ios-chatbubbles"},on:{click:function(e){t.tabActive="dialog"}}}),t._v(" "),a("Icon",{class:{active:"contacts"===t.tabActive},attrs:{type:"md-person"},on:{click:function(e){t.tabActive="contacts"}}})],1)],1),t._v(" "),a("div",{staticClass:"messenger-msg"},[a("div",{staticClass:"msg-dialog-bg"},[a("div",{staticClass:"msg-dialog-bg-icon"},[a("Icon",{attrs:{type:"ios-chatbubbles"}})],1),t._v(" "),a("div",{staticClass:"msg-dialog-bg-text"},[t._v(t._s(t.$L("选择一个会话开始聊天")))])]),t._v(" "),t.dialogId>0?a("DialogWrapper",{attrs:{dialogId:t.dialogId},on:{"on-active":t.scrollIntoActive}},[a("div",{staticClass:"dialog-back",attrs:{slot:"inputBefore"},on:{click:t.closeDialog},slot:"inputBefore"},[a("Icon",{attrs:{type:"md-arrow-back"}})],1)]):t._e()],1)])],1)}),[],!1,null,null,null).exports}}]); \ No newline at end of file diff --git a/public/js/build/76.js b/public/js/build/76.js index be582962..49525e0c 100644 --- a/public/js/build/76.js +++ b/public/js/build/76.js @@ -1 +1 @@ -(self.webpackChunkDooTask=self.webpackChunkDooTask||[]).push([[76,593],{47077:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});var r=n(1519),o=n.n(r)()((function(t){return t[1]}));o.push([t.id,'.component-resize-line[data-v-eaab078e]{cursor:col-resize}@media (max-width:768px){.component-resize-line[data-v-eaab078e]{display:none}}.component-resize-line.resizing[data-v-eaab078e]:after{bottom:0;content:"";cursor:col-resize;left:0;position:fixed;right:0;top:0;z-index:99999}.component-resize-line.bottom[data-v-eaab078e],.component-resize-line.bottom[data-v-eaab078e]:after{cursor:row-resize}',""]);const i=o},47575:(t,e,n)=>{!function(){"use strict";var e=function(t){if(null===t)return"null";if(void 0===t)return"undefined";var e=typeof t;return"object"===e&&(Array.prototype.isPrototypeOf(t)||t.constructor&&"Array"===t.constructor.name)?"array":"object"===e&&(String.prototype.isPrototypeOf(t)||t.constructor&&"String"===t.constructor.name)?"string":e},r=function(t){return{eq:t}},o=r((function(t,e){return t===e})),i=function(t){return r((function(e,n){if(e.length!==n.length)return!1;for(var r=e.length,o=0;o-1},H=function(t,e){for(var n=0,r=t.length;n=0;n--){e(t[n],n)}},K=function(t,e){for(var n=[],r=[],o=0,i=t.length;o=0&&e=e.length&&t.substr(n,n+e.length)===e}(t,e,0)},Mt=function(t){return function(e){return e.replace(t,"")}},zt=Mt(/^\s+|\s+$/g),Ft=Mt(/^\s+/g),Ut=Mt(/\s+$/g),Ht=function(t){return t.length>0},Vt=function(t){return!Ht(t)},Wt=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,qt=function(t){return function(e){return Bt(e,t)}},Kt=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(t){return Bt(t,"edge/")&&Bt(t,"chrome")&&Bt(t,"safari")&&Bt(t,"applewebkit")}},{name:"Chrome",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,Wt],search:function(t){return Bt(t,"chrome")&&!Bt(t,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(t){return Bt(t,"msie")||Bt(t,"trident")}},{name:"Opera",versionRegexes:[Wt,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:qt("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:qt("firefox")},{name:"Safari",versionRegexes:[Wt,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(t){return(Bt(t,"safari")||Bt(t,"mobile/"))&&Bt(t,"applewebkit")}}],Yt=[{name:"Windows",search:qt("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(t){return Bt(t,"iphone")||Bt(t,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:qt("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:qt("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:qt("linux"),versionRegexes:[]},{name:"Solaris",search:qt("sunos"),versionRegexes:[]},{name:"FreeBSD",search:qt("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:qt("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],Xt={browsers:D(Kt),oses:D(Yt)},Zt="Edge",Gt="Chrome",Jt="Opera",Qt="Firefox",te="Safari",ee=function(t){var e=t.current,n=t.version,r=function(t){return function(){return e===t}};return{current:e,version:n,isEdge:r(Zt),isChrome:r(Gt),isIE:r("IE"),isOpera:r(Jt),isFirefox:r(Qt),isSafari:r(te)}},ne={unknown:function(){return ee({current:void 0,version:It.unknown()})},nu:ee,edge:D(Zt),chrome:D(Gt),ie:D("IE"),opera:D(Jt),firefox:D(Qt),safari:D(te)},re="Windows",oe="Android",ie="Linux",ae="Solaris",se="FreeBSD",ue="ChromeOS",ce=function(t){var e=t.current,n=t.version,r=function(t){return function(){return e===t}};return{current:e,version:n,isWindows:r(re),isiOS:r("iOS"),isAndroid:r(oe),isOSX:r("OSX"),isLinux:r(ie),isSolaris:r(ae),isFreeBSD:r(se),isChromeOS:r(ue)}},le={unknown:function(){return ce({current:void 0,version:It.unknown()})},nu:ce,windows:D(re),ios:D("iOS"),android:D(oe),linux:D(ie),osx:D("OSX"),solaris:D(ae),freebsd:D(se),chromeos:D(ue)},de=function(t,e,n){var r=Xt.browsers(),o=Xt.oses(),i=e.bind((function(t){return function(t,e){return ct(e.brands,(function(e){var n=e.brand.toLowerCase();return J(t,(function(t){var e;return n===(null===(e=t.brand)||void 0===e?void 0:e.toLowerCase())})).map((function(t){return{current:t.name,version:It.nu(parseInt(e.version,10),0)}}))}))}(r,t)})).orThunk((function(){return function(t,e){return Rt(t,e).map((function(t){var n=It.detect(t.versionRegexes,e);return{current:t.name,version:n}}))}(r,t)})).fold(ne.unknown,ne.nu),a=function(t,e){return Rt(t,e).map((function(t){var n=It.detect(t.versionRegexes,e);return{current:t.name,version:n}}))}(o,t).fold(le.unknown,le.nu),s=function(t,e,n,r){var o=t.isiOS()&&!0===/ipad/i.test(n),i=t.isiOS()&&!o,a=t.isiOS()||t.isAndroid(),s=a||r("(pointer:coarse)"),u=o||!i&&a&&r("(min-device-width:768px)"),c=i||a&&!u,l=e.isSafari()&&t.isiOS()&&!1===/safari/i.test(n),d=!c&&!u&&!l;return{isiPad:D(o),isiPhone:D(i),isTablet:D(u),isPhone:D(c),isTouch:D(s),isAndroid:t.isAndroid,isiOS:t.isiOS,isWebView:D(l),isDesktop:D(d)}}(a,i,t,n);return{browser:i,os:a,deviceType:s}},fe=function(t){return window.matchMedia(t).matches},me=Nt((function(){return de(navigator.userAgent,B.from(navigator.userAgentData),fe)})),pe=function(){return me()},he=navigator.userAgent,ge=pe(),ve=ge.browser,be=ge.os,ye=ge.deviceType,we=/WebKit/.test(he)&&!ve.isEdge(),Ce="FormData"in window&&"FileReader"in window&&"URL"in window&&!!URL.createObjectURL,_e=-1!==he.indexOf("Windows Phone"),ke={opera:ve.isOpera(),webkit:we,ie:!(!ve.isIE()&&!ve.isEdge())&&ve.version.major,gecko:ve.isFirefox(),mac:be.isOSX()||be.isiOS(),iOS:ye.isiPad()||ye.isiPhone(),android:be.isAndroid(),contentEditable:!0,transparentSrc:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",caretAfter:!0,range:window.getSelection&&"Range"in window,documentMode:ve.isIE()?document.documentMode||7:10,fileApi:Ce,ceFalse:!0,cacheSuffix:null,container:null,experimentalShadowDom:!1,canHaveCSP:!ve.isIE(),desktop:ye.isDesktop(),windowsPhone:_e,browser:{current:ve.current,version:ve.version,isChrome:ve.isChrome,isEdge:ve.isEdge,isFirefox:ve.isFirefox,isIE:ve.isIE,isOpera:ve.isOpera,isSafari:ve.isSafari},os:{current:be.current,version:be.version,isAndroid:be.isAndroid,isChromeOS:be.isChromeOS,isFreeBSD:be.isFreeBSD,isiOS:be.isiOS,isLinux:be.isLinux,isOSX:be.isOSX,isSolaris:be.isSolaris,isWindows:be.isWindows},deviceType:{isDesktop:ye.isDesktop,isiPad:ye.isiPad,isiPhone:ye.isiPhone,isPhone:ye.isPhone,isTablet:ye.isTablet,isTouch:ye.isTouch,isWebView:ye.isWebView}},xe=/^\s*|\s*$/g,De=function(t){return null==t?"":(""+t).replace(xe,"")},Se=function(t,e){return e?!("array"!==e||!_t(t))||typeof t===e:void 0!==t},Te=function(t,e,n,r){r=r||this,t&&(n&&(t=t[n]),kt(t,(function(t,o){if(!1===e.call(r,t,o,n))return!1;Te(t,e,n,r)})))},Ee={trim:De,isArray:_t,is:Se,toArray:function(t){if(_t(t))return t;for(var e=[],n=0,r=t.length;n1)throw console.error("HTML does not have a single root node",t),new Error("HTML must have a single root node");return Oe(n.childNodes[0])},fromTag:function(t,e){var n=(e||document).createElement(t);return Oe(n)},fromText:function(t,e){var n=(e||document).createTextNode(t);return Oe(n)},fromDom:Oe,fromPoint:function(t,e,n){return B.from(t.dom.elementFromPoint(e,n)).map(Oe)}},Le=function(t,e){var n=[],r=function(t){return n.push(t),e(t)},o=e(t);do{o=o.bind(r)}while(o.isSome());return n},Ne=function(t,e){var n=t.dom;if(1!==n.nodeType)return!1;var r=n;if(void 0!==r.matches)return r.matches(e);if(void 0!==r.msMatchesSelector)return r.msMatchesSelector(e);if(void 0!==r.webkitMatchesSelector)return r.webkitMatchesSelector(e);if(void 0!==r.mozMatchesSelector)return r.mozMatchesSelector(e);throw new Error("Browser lacks native selectors")},$e=function(t){return 1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType||0===t.childElementCount},Pe=function(t,e){return t.dom===e.dom},Ie=function(t,e){return n=t.dom,r=e.dom,function(t,e,n){return 0!=(t.compareDocumentPosition(e)&n)}(n,r,Node.DOCUMENT_POSITION_CONTAINED_BY);var n,r},Re=function(t,e){return pe().browser.isIE()?Ie(t,e):function(t,e){var n=t.dom,r=e.dom;return n!==r&&n.contains(r)}(t,e)};"undefined"!=typeof window?window:Function("return this;")();var Be=function(t){return t.dom.nodeName.toLowerCase()},je=function(t){return t.dom.nodeType},Me=function(t){return function(e){return je(e)===t}},ze=Me(1),Fe=Me(3),Ue=Me(9),He=Me(11),Ve=function(t){return Ae.fromDom(t.dom.ownerDocument)},We=function(t){return Ue(t)?t:Ve(t)},qe=function(t){return Ae.fromDom(We(t).dom.defaultView)},Ke=function(t){return B.from(t.dom.parentNode).map(Ae.fromDom)},Ye=function(t){return B.from(t.dom.previousSibling).map(Ae.fromDom)},Xe=function(t){return B.from(t.dom.nextSibling).map(Ae.fromDom)},Ze=function(t){return nt(Le(t,Ye))},Ge=function(t){return Le(t,Xe)},Je=function(t){return V(t.dom.childNodes,Ae.fromDom)},Qe=function(t,e){var n=t.dom.childNodes;return B.from(n[e]).map(Ae.fromDom)},tn=function(t){return Qe(t,0)},en=function(t){return Qe(t,t.dom.childNodes.length-1)},nn=function(t){return t.dom.childNodes.length},rn=function(t){return He(t)&&y(t.dom.host)},on=w(Element.prototype.attachShadow)&&w(Node.prototype.getRootNode),an=D(on),sn=on?function(t){return Ae.fromDom(t.dom.getRootNode())}:We,un=function(t){return rn(t)?t:function(t){var e=t.dom.head;if(null==e)throw new Error("Head is not available yet");return Ae.fromDom(e)}(We(t))},cn=function(t){return Ae.fromDom(t.dom.host)},ln=function(t){return y(t.dom.shadowRoot)},dn=function(t,e){Ke(t).each((function(n){n.dom.insertBefore(e.dom,t.dom)}))},fn=function(t,e){Xe(t).fold((function(){Ke(t).each((function(t){pn(t,e)}))}),(function(t){dn(t,e)}))},mn=function(t,e){tn(t).fold((function(){pn(t,e)}),(function(n){t.dom.insertBefore(e.dom,n.dom)}))},pn=function(t,e){t.dom.appendChild(e.dom)},hn=function(t,e){W(e,(function(e){pn(t,e)}))},gn=function(t){t.dom.textContent="",W(Je(t),(function(t){vn(t)}))},vn=function(t){var e=t.dom;null!==e.parentNode&&e.parentNode.removeChild(e)},bn=function(t){var e,n=Je(t);n.length>0&&(e=t,W(n,(function(t){dn(e,t)}))),vn(t)},yn=function(t){var e=Fe(t)?t.dom.parentNode:t.dom;if(null==e||null===e.ownerDocument)return!1;var n=e.ownerDocument;return function(t){var e=sn(t);return rn(e)?B.some(e):B.none()}(Ae.fromDom(e)).fold((function(){return n.body.contains(e)}),x(yn,cn))},wn=function(t,e){return{left:t,top:e,translate:function(n,r){return wn(t+n,e+r)}}},Cn=wn,_n=function(t,e){return void 0!==t?t:void 0!==e?e:0},kn=function(t){var e=t.dom,n=e.ownerDocument.body;return n===e?Cn(n.offsetLeft,n.offsetTop):yn(t)?function(t){var e=t.getBoundingClientRect();return Cn(e.left,e.top)}(e):Cn(0,0)},xn=function(t){var e=void 0!==t?t.dom:document,n=e.body.scrollLeft||e.documentElement.scrollLeft,r=e.body.scrollTop||e.documentElement.scrollTop;return Cn(n,r)},Dn=function(t,e,n){var r=(void 0!==n?n.dom:document).defaultView;r&&r.scrollTo(t,e)},Sn=function(t,e){pe().browser.isSafari()&&w(t.dom.scrollIntoViewIfNeeded)?t.dom.scrollIntoViewIfNeeded(!1):t.dom.scrollIntoView(e)},Tn=function(t,e,n,r){return{x:t,y:e,width:n,height:r,right:t+n,bottom:e+r}},En=function(t){var e=void 0===t?window:t,n=e.document,r=xn(Ae.fromDom(n));return function(t){var e=void 0===t?window:t;return pe().browser.isFirefox()?B.none():B.from(e.visualViewport)}(e).fold((function(){var t=e.document.documentElement,n=t.clientWidth,o=t.clientHeight;return Tn(r.left,r.top,n,o)}),(function(t){return Tn(Math.max(t.pageLeft,r.left),Math.max(t.pageTop,r.top),t.width,t.height)}))},On=function(t){return function(e){return!!e&&e.nodeType===t}},An=function(t){return!!t&&!Object.getPrototypeOf(t)},Ln=On(1),Nn=function(t){var e=t.map((function(t){return t.toLowerCase()}));return function(t){if(t&&t.nodeName){var n=t.nodeName.toLowerCase();return U(e,n)}return!1}},$n=function(t,e){var n=e.toLowerCase().split(" ");return function(e){if(Ln(e))for(var r=0;r0}))},ur=function(t){var e={},n=t.dom;if(Gn(n))for(var r=0;r=t.length&&e(n)}}(i))}))}))},_r=function(t){return{isValue:$,isError:N,getOr:D(t),getOrThunk:D(t),getOrDie:D(t),or:function(e){return _r(t)},orThunk:function(e){return _r(t)},fold:function(e,n){return n(t)},map:function(e){return _r(e(t))},mapError:function(e){return _r(t)},each:function(e){e(t)},bind:function(e){return e(t)},exists:function(e){return e(t)},forall:function(e){return e(t)},toOptional:function(){return B.some(t)}}},kr=function(t){return{isValue:N,isError:$,getOr:S,getOrThunk:function(t){return t()},getOrDie:function(){return(e=String(t),function(){throw new Error(e)})();var e},or:S,orThunk:function(t){return t()},fold:function(e,n){return e(t)},map:function(e){return kr(t)},mapError:function(e){return kr(e(t))},each:_,bind:function(e){return kr(t)},exists:N,forall:$,toOptional:B.none}},xr={value:_r,error:kr,fromOption:function(t,e){return t.fold((function(){return kr(e)}),_r)}},Dr=function(t){if(!p(t))throw new Error("cases must be an array");if(0===t.length)throw new Error("there must be at least one case");var e=[],n={};return W(t,(function(r,o){var i=lt(r);if(1!==i.length)throw new Error("one and only one name per case");var a=i[0],s=r[a];if(void 0!==n[a])throw new Error("duplicate key detected:"+a);if("cata"===a)throw new Error("cannot have a case named cata (sorry)");if(!p(s))throw new Error("case arguments must be an array");e.push(a),n[a]=function(){for(var n=[],r=0;r0?n(r.fail.map(Sr)):e(r.pass.map(Sr))}))},unload:c,unloadAll:function(t){W(t,(function(t){c(t)}))},_setReferrerPolicy:function(t){e.referrerPolicy=t}}},ao=function(){var t=new WeakMap;return{forElement:function(e,n){var r=sn(e).dom;return B.from(t.get(r)).getOrThunk((function(){var e=io(r,n);return t.set(r,e),e}))}}}(),so=function(){function t(t,e){this.node=t,this.rootNode=e,this.current=this.current.bind(this),this.next=this.next.bind(this),this.prev=this.prev.bind(this),this.prev2=this.prev2.bind(this)}return t.prototype.current=function(){return this.node},t.prototype.next=function(t){return this.node=this.findSibling(this.node,"firstChild","nextSibling",t),this.node},t.prototype.prev=function(t){return this.node=this.findSibling(this.node,"lastChild","previousSibling",t),this.node},t.prototype.prev2=function(t){return this.node=this.findPreviousNode(this.node,"lastChild","previousSibling",t),this.node},t.prototype.findSibling=function(t,e,n,r){var o,i;if(t){if(!r&&t[e])return t[e];if(t!==this.rootNode){if(o=t[n])return o;for(i=t.parentNode;i&&i!==this.rootNode;i=i.parentNode)if(o=i[n])return o}}},t.prototype.findPreviousNode=function(t,e,n,r){var o,i,a;if(t){if(o=t[n],this.rootNode&&o===this.rootNode)return;if(o){if(!r)for(a=o[e];a;a=a[e])if(!a[e])return a;return o}if((i=t.parentNode)&&i!==this.rootNode)return i}},t}(),uo=function(t){var e;return function(n){return e=e||function(t,e){for(var n={},r=0,o=t.length;r0&&function(t,e){var n=new so(t,e).prev(!1),r=new so(t,e).next(!1),o=v(n)||ni(n,e),i=v(r)||ni(r,e);return o&&i}(t,e)},ii=function(t,e,n){var r=n||e;if(Ln(e)&&ri(e))return e;for(var o=e.childNodes,i=o.length-1;i>=0;i--)ii(t,o[i],r);if(Ln(e)){var a=e.childNodes;1===a.length&&ri(a[0])&&e.parentNode.insertBefore(a[0],e)}return function(t){return Un(t)||Fn(t)}(e)||Go(e,r)||function(t){return!!Ln(t)&&t.childNodes.length>0}(e)||oi(e,r)||t.remove(e),e},ai=Ee.makeMap,si=/[&<>\"\u0060\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ui=/[<>&\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ci=/[<>&\"\']/g,li=/&#([a-z0-9]+);?|&([a-z0-9]+);/gi,di={128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"},fi={'"':""","'":"'","<":"<",">":">","&":"&","`":"`"},mi={"<":"<",">":">","&":"&",""":'"',"'":"'"},pi=function(t,e){var n,r,o,i={};if(t){for(t=t.split(","),e=e||10,n=0;n1?"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";":fi[t]||"&#"+t.charCodeAt(0)+";"}))},bi=function(t,e,n){return n=n||hi,t.replace(e?si:ui,(function(t){return fi[t]||n[t]||t}))},yi={encodeRaw:gi,encodeAllRaw:function(t){return(""+t).replace(ci,(function(t){return fi[t]||t}))},encodeNumeric:vi,encodeNamed:bi,getEncodeFunc:function(t,e){var n=pi(e)||hi,r=ai(t.replace(/\+/g,","));return r.named&&r.numeric?function(t,e){return t.replace(e?si:ui,(function(t){return void 0!==fi[t]?fi[t]:void 0!==n[t]?n[t]:t.length>1?"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";":"&#"+t.charCodeAt(0)+";"}))}:r.named?e?function(t,e){return bi(t,e,n)}:bi:r.numeric?vi:gi},decode:function(t){return t.replace(li,(function(t,e){return e?(e="x"===e.charAt(0).toLowerCase()?parseInt(e.substr(1),16):parseInt(e,10))>65535?(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e))):di[e]||String.fromCharCode(e):mi[t]||hi[t]||function(t){var e=Ae.fromTag("div").dom;return e.innerHTML=t,e.textContent||e.innerText||t}(t)}))}},wi={},Ci={},_i=Ee.makeMap,ki=Ee.each,xi=Ee.extend,Di=Ee.explode,Si=Ee.inArray,Ti=function(t,e){return(t=Ee.trim(t))?t.split(e||" "):[]},Ei=function(t,e){var n;return t&&(n={},"string"==typeof t&&(t={"*":t}),ki(t,(function(t,r){n[r]=n[r.toUpperCase()]="map"===e?_i(t,/[, ]/):Di(t,/[, ]/)}))),n},Oi=function(t){var e={},n={},r=[],o={},i={},a=function(e,n,r){var o=t[e];return o?o=_i(o,/[, ]/,_i(o.toUpperCase(),/[, ]/)):(o=wi[e])||(o=_i(n," ",_i(n.toUpperCase()," ")),o=xi(o,r),wi[e]=o),o},s=function(t){var e,n,r,o,i,a,s={},u=function(t,n,r){var o,i,a,u=function(t,e){var n,r,o={};for(n=0,r=t.length;n