diff --git a/CHANGELOG.md b/CHANGELOG.md index 6129b53c6..ff228d5c3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ All notable changes to this project will be documented in this file. -## [0.24.10] +## [0.24.14] ### Bug Fixes @@ -18,6 +18,7 @@ All notable changes to this project will be documented in this file. - 通讯录显示部门负责人 - 点击会话消息头像@ - 优化阅读消息 +- 群组支持修改头像 ## [0.23.94] diff --git a/package.json b/package.json index 9d8eeb72d..716f2be53 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "DooTask", - "version": "0.24.10", + "version": "0.24.14", "description": "DooTask is task management system.", "scripts": { "start": "./cmd dev", diff --git a/public/js/build/404.062a1c9e.js b/public/js/build/404.332392c6.js similarity index 87% rename from public/js/build/404.062a1c9e.js rename to public/js/build/404.332392c6.js index 3ef3754b6..f60b67a8e 100644 --- a/public/js/build/404.062a1c9e.js +++ b/public/js/build/404.332392c6.js @@ -1 +1 @@ -import{n}from"./app.90cb6e79.js";var r=function(){var e=this,t=e.$createElement;return e._self._c,e._m(0)},a=[function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"page-404"},[s("div",{staticClass:"flex-center position-ref full-height"},[s("div",{staticClass:"code"},[e._v("404")]),s("div",{staticClass:"message"},[e._v("Not Found")])])])}];const i={},_={};var o=n(i,r,a,!1,c,"7d7154a8",null,null);function c(e){for(let t in _)this[t]=_[t]}var v=function(){return o.exports}();export{v as default}; +import{n}from"./app.feefc813.js";var r=function(){var e=this,t=e.$createElement;return e._self._c,e._m(0)},a=[function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"page-404"},[s("div",{staticClass:"flex-center position-ref full-height"},[s("div",{staticClass:"code"},[e._v("404")]),s("div",{staticClass:"message"},[e._v("Not Found")])])])}];const i={},_={};var o=n(i,r,a,!1,c,"7d7154a8",null,null);function c(e){for(let t in _)this[t]=_[t]}var v=function(){return o.exports}();export{v as default}; diff --git a/public/js/build/AceEditor.b217f4b4.js b/public/js/build/AceEditor.1e64324c.js similarity index 98% rename from public/js/build/AceEditor.b217f4b4.js rename to public/js/build/AceEditor.1e64324c.js index 84278e7fe..a6a96e81e 100644 --- a/public/js/build/AceEditor.b217f4b4.js +++ b/public/js/build/AceEditor.1e64324c.js @@ -1 +1 @@ -import{m as h,n as l}from"./app.90cb6e79.js";const d={name:"AceEditor",props:{value:{default:""},options:{type:Object,default:()=>({})},theme:{type:String,default:"auto"},ext:{type:String,default:"txt"},height:{type:Number||null,default:null},width:{type:Number||null,default:null},wrap:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1}},render(e){return e("div",{class:"no-dark-content"})},data:()=>({code:"",editor:null,cursorPosition:{row:0,column:0},supportedModes:{Apache_Conf:["^htaccess|^htgroups|^htpasswd|^conf|htaccess|htgroups|htpasswd"],BatchFile:["bat|cmd"],C_Cpp:["cpp|c|cc|cxx|h|hh|hpp|ino"],CSharp:["cs"],CSS:["css"],Dockerfile:["^Dockerfile"],golang:["go|golang"],HTML:["html|htm|xhtml|vue|we|wpy"],Java:["java"],JavaScript:["js|jsm|jsx"],JSON:["json"],JSP:["jsp"],LESS:["less"],Lua:["lua"],Makefile:["^Makefile|^GNUmakefile|^makefile|^OCamlMakefile|make"],Markdown:["md|markdown"],MySQL:["mysql"],Nginx:["nginx|conf"],INI:["ini|conf|cfg|prefs"],ObjectiveC:["m|mm"],Perl:["pl|pm"],Perl6:["p6|pl6|pm6"],pgSQL:["pgsql"],PHP_Laravel_blade:["blade.php"],PHP:["php|inc|phtml|shtml|php3|php4|php5|phps|phpt|aw|ctp|module"],Powershell:["ps1"],Python:["py"],R:["r"],Ruby:["rb|ru|gemspec|rake|^Guardfile|^Rakefile|^Gemfile"],Rust:["rs"],SASS:["sass"],SCSS:["scss"],SH:["sh|bash|^.bashrc"],SQL:["sql"],SQLServer:["sqlserver"],Swift:["swift"],Text:["txt"],Typescript:["ts|typescript|str"],VBScript:["vbs|vb"],Verilog:["v|vh|sv|svh"],XML:["xml|rdf|rss|wsdl|xslt|atom|mathml|mml|xul|xbl|xaml|plist"],YAML:["yaml|yml"],Compress:["tar|zip|7z|rar|gz|arj|z"],images:["icon|jpg|jpeg|png|bmp|gif|tif|emf"]}}),mounted(){$A.loadScriptS(["js/ace/ace.js","js/ace/mode-json.js"],()=>{this.setSize(this.$el,{height:this.height,width:this.width}),this.editor=window.ace.edit(this.$el,{wrap:this.wrap,showPrintMargin:!1,readOnly:this.readOnly,keyboardHandler:"vscode"}),this.editor.session.setMode(`ace/mode/${this.getFileMode()}`),this.$emit("mounted",this.editor),this.editor.session.$worker&&this.editor.session.$worker.addEventListener("annotate",this.workerMessage,!1),this.setValue(this.value),this.editor.setOptions(this.options),this.editTheme&&this.editor.setTheme(`ace/theme/${this.editTheme}`),this.editor.commands.addCommand({name:"\u4FDD\u5B58\u6587\u4EF6",bindKey:{win:"Ctrl-S",mac:"Command-S"},exec:()=>{this.$emit("saveData")},readOnly:!1}),this.editor.getSession().on("change",()=>{this.code=this.editor.getValue(),this.$emit("input",this.code)})})},methods:{workerMessage({data:e}){this.cursorPosition=this.editor.selection.getCursor();const[t]=e;t&&t.type==="error"?this.$emit("validationFailed",t):this.$emit("change",this.editor.getValue())},setSize(e,{width:t=this.width,height:s=this.height}){e.style.width=t&&typeof t=="number"?`${t}px`:"100%",e.style.height=s&&typeof s=="number"?`${s}px`:"100%",this.$nextTick(()=>this.editor&&this.editor.resize())},setValue(e){typeof e=="string"&&this.editor&&(this.editor.setValue(e),this.editor.clearSelection())},getFileMode(){var e=this.ext||"text";for(var t in this.supportedModes)for(var s=this.supportedModes[t],r=s[0].split("|"),a=t.toLowerCase(),i=0;i({})},theme:{type:String,default:"auto"},ext:{type:String,default:"txt"},height:{type:Number||null,default:null},width:{type:Number||null,default:null},wrap:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1}},render(e){return e("div",{class:"no-dark-content"})},data:()=>({code:"",editor:null,cursorPosition:{row:0,column:0},supportedModes:{Apache_Conf:["^htaccess|^htgroups|^htpasswd|^conf|htaccess|htgroups|htpasswd"],BatchFile:["bat|cmd"],C_Cpp:["cpp|c|cc|cxx|h|hh|hpp|ino"],CSharp:["cs"],CSS:["css"],Dockerfile:["^Dockerfile"],golang:["go|golang"],HTML:["html|htm|xhtml|vue|we|wpy"],Java:["java"],JavaScript:["js|jsm|jsx"],JSON:["json"],JSP:["jsp"],LESS:["less"],Lua:["lua"],Makefile:["^Makefile|^GNUmakefile|^makefile|^OCamlMakefile|make"],Markdown:["md|markdown"],MySQL:["mysql"],Nginx:["nginx|conf"],INI:["ini|conf|cfg|prefs"],ObjectiveC:["m|mm"],Perl:["pl|pm"],Perl6:["p6|pl6|pm6"],pgSQL:["pgsql"],PHP_Laravel_blade:["blade.php"],PHP:["php|inc|phtml|shtml|php3|php4|php5|phps|phpt|aw|ctp|module"],Powershell:["ps1"],Python:["py"],R:["r"],Ruby:["rb|ru|gemspec|rake|^Guardfile|^Rakefile|^Gemfile"],Rust:["rs"],SASS:["sass"],SCSS:["scss"],SH:["sh|bash|^.bashrc"],SQL:["sql"],SQLServer:["sqlserver"],Swift:["swift"],Text:["txt"],Typescript:["ts|typescript|str"],VBScript:["vbs|vb"],Verilog:["v|vh|sv|svh"],XML:["xml|rdf|rss|wsdl|xslt|atom|mathml|mml|xul|xbl|xaml|plist"],YAML:["yaml|yml"],Compress:["tar|zip|7z|rar|gz|arj|z"],images:["icon|jpg|jpeg|png|bmp|gif|tif|emf"]}}),mounted(){$A.loadScriptS(["js/ace/ace.js","js/ace/mode-json.js"],()=>{this.setSize(this.$el,{height:this.height,width:this.width}),this.editor=window.ace.edit(this.$el,{wrap:this.wrap,showPrintMargin:!1,readOnly:this.readOnly,keyboardHandler:"vscode"}),this.editor.session.setMode(`ace/mode/${this.getFileMode()}`),this.$emit("mounted",this.editor),this.editor.session.$worker&&this.editor.session.$worker.addEventListener("annotate",this.workerMessage,!1),this.setValue(this.value),this.editor.setOptions(this.options),this.editTheme&&this.editor.setTheme(`ace/theme/${this.editTheme}`),this.editor.commands.addCommand({name:"\u4FDD\u5B58\u6587\u4EF6",bindKey:{win:"Ctrl-S",mac:"Command-S"},exec:()=>{this.$emit("saveData")},readOnly:!1}),this.editor.getSession().on("change",()=>{this.code=this.editor.getValue(),this.$emit("input",this.code)})})},methods:{workerMessage({data:e}){this.cursorPosition=this.editor.selection.getCursor();const[t]=e;t&&t.type==="error"?this.$emit("validationFailed",t):this.$emit("change",this.editor.getValue())},setSize(e,{width:t=this.width,height:s=this.height}){e.style.width=t&&typeof t=="number"?`${t}px`:"100%",e.style.height=s&&typeof s=="number"?`${s}px`:"100%",this.$nextTick(()=>this.editor&&this.editor.resize())},setValue(e){typeof e=="string"&&this.editor&&(this.editor.setValue(e),this.editor.clearSelection())},getFileMode(){var e=this.ext||"text";for(var t in this.supportedModes)for(var s=this.supportedModes[t],r=s[0].split("|"),a=t.toLowerCase(),i=0;i0?e("Loading"):t._e()],1)]),e("div",{staticClass:"management-box"},[e("div",{staticClass:"management-department"},[e("ul",[e("li",{class:["level-1",t.departmentSelect===0?"active":""],on:{click:function(a){return t.onSelectDepartment(0)}}},[e("i",{staticClass:"taskfont department-icon"},[t._v("\uE766")]),e("div",{staticClass:"department-title"},[t._v(t._s(t.$L("\u9ED8\u8BA4\u90E8\u95E8")))]),e("EDropdown",{attrs:{size:"medium",trigger:"click"},on:{command:t.onOpDepartment}},[e("i",{staticClass:"taskfont department-menu",on:{click:function(a){a.stopPropagation()}}},[t._v("\uE6E9")]),e("EDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},[e("EDropdownItem",{attrs:{command:"add_0"}},[e("div",[t._v(t._s(t.$L("\u6DFB\u52A0\u5B50\u90E8\u95E8")))])])],1)],1)],1),t._l(t.departmentList,function(a){return e("li",{key:a.id,class:[`level-${a.level}`,t.departmentSelect===a.id?"active":""],on:{click:function(i){return t.onSelectDepartment(a.id)}}},[e("UserAvatar",{staticClass:"department-icon",attrs:{userid:a.owner_userid,size:20}},[e("p",[e("strong",[t._v(t._s(t.$L("\u90E8\u95E8\u8D1F\u8D23\u4EBA")))])])]),e("div",{staticClass:"department-title"},[t._v(t._s(a.name))]),e("EDropdown",{attrs:{size:"medium",trigger:"click"},on:{command:t.onOpDepartment}},[e("i",{staticClass:"taskfont department-menu",on:{click:function(i){i.stopPropagation()}}},[t._v("\uE6E9")]),e("EDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a.level<=2?e("EDropdownItem",{attrs:{command:`add_${a.id}`}},[e("div",[t._v(t._s(t.$L("\u6DFB\u52A0\u5B50\u90E8\u95E8")))])]):t._e(),e("EDropdownItem",{attrs:{command:`edit_${a.id}`}},[e("div",[t._v(t._s(t.$L("\u7F16\u8F91")))])]),e("EDropdownItem",{attrs:{command:`del_${a.id}`}},[e("div",{staticStyle:{color:"#f00"}},[t._v(t._s(t.$L("\u5220\u9664")))])])],1)],1)],1)})],2),e("div",{staticClass:"department-buttons"},[e("Button",{attrs:{type:"primary",icon:"md-add"},on:{click:function(a){return t.onShowDepartment(null)}}},[t._v(t._s(t.$L("\u65B0\u5EFA\u90E8\u95E8")))])],1)]),e("div",{staticClass:"management-user"},[e("div",{staticClass:"search-container lr"},[e("ul",[e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u5173\u952E\u8BCD"))+" ")]),e("div",{staticClass:"search-content"},[e("Input",{attrs:{placeholder:t.$L("\u90AE\u7BB1\u3001\u6635\u79F0\u3001\u804C\u4F4D"),clearable:""},model:{value:t.keys.key,callback:function(a){t.$set(t.keys,"key",a)},expression:"keys.key"}})],1)]),e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u8EAB\u4EFD"))+" ")]),e("div",{staticClass:"search-content"},[e("Select",{attrs:{placeholder:t.$L("\u5168\u90E8")},model:{value:t.keys.identity,callback:function(a){t.$set(t.keys,"identity",a)},expression:"keys.identity"}},[e("Option",{attrs:{value:""}},[t._v(t._s(t.$L("\u5168\u90E8")))]),e("Option",{attrs:{value:"admin"}},[t._v(t._s(t.$L("\u7BA1\u7406\u5458")))]),e("Option",{attrs:{value:"noadmin"}},[t._v(t._s(t.$L("\u975E\u7BA1\u7406\u5458")))]),e("Option",{attrs:{value:"temp"}},[t._v(t._s(t.$L("\u4E34\u65F6\u5E10\u53F7")))]),e("Option",{attrs:{value:"notemp"}},[t._v(t._s(t.$L("\u975E\u4E34\u65F6\u5E10\u53F7")))])],1)],1)]),e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u5728\u804C\u72B6\u6001"))+" ")]),e("div",{staticClass:"search-content"},[e("Select",{attrs:{placeholder:t.$L("\u5728\u804C")},model:{value:t.keys.disable,callback:function(a){t.$set(t.keys,"disable",a)},expression:"keys.disable"}},[e("Option",{attrs:{value:""}},[t._v(t._s(t.$L("\u5728\u804C")))]),e("Option",{attrs:{value:"yes"}},[t._v(t._s(t.$L("\u79BB\u804C")))]),e("Option",{attrs:{value:"all"}},[t._v(t._s(t.$L("\u5168\u90E8")))])],1)],1)]),t.checkinMac?e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("MAC\u5730\u5740"))+" ")]),e("div",{staticClass:"search-content"},[e("Input",{attrs:{placeholder:t.$L("MAC\u5730\u5740"),clearable:""},model:{value:t.keys.checkin_mac,callback:function(a){t.$set(t.keys,"checkin_mac",a)},expression:"keys.checkin_mac"}})],1)]):e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u90AE\u7BB1\u8BA4\u8BC1"))+" ")]),e("div",{staticClass:"search-content"},[e("Select",{attrs:{placeholder:t.$L("\u5168\u90E8")},model:{value:t.keys.email_verity,callback:function(a){t.$set(t.keys,"email_verity",a)},expression:"keys.email_verity"}},[e("Option",{attrs:{value:""}},[t._v(t._s(t.$L("\u5168\u90E8")))]),e("Option",{attrs:{value:"yes"}},[t._v(t._s(t.$L("\u5DF2\u90AE\u7BB1\u8BA4\u8BC1")))]),e("Option",{attrs:{value:"no"}},[t._v(t._s(t.$L("\u672A\u90AE\u7BB1\u8BA4\u8BC1")))])],1)],1)]),e("li",{staticClass:"search-button"},[e("Tooltip",{attrs:{theme:"light",placement:"bottom","transfer-class-name":"search-button-clear",transfer:""}},[e("Button",{attrs:{loading:t.loadIng>0,type:"primary",icon:"ios-search"},on:{click:t.onSearch}},[t._v(t._s(t.$L("\u641C\u7D22")))]),e("div",{attrs:{slot:"content"},slot:"content"},[t.keyIs?e("Button",{attrs:{type:"text"},on:{click:function(a){t.keyIs=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88\u7B5B\u9009")))]):e("Button",{attrs:{loading:t.loadIng>0,type:"text"},on:{click:t.getLists}},[t._v(t._s(t.$L("\u5237\u65B0")))])],1)],1)],1)])]),e("div",{staticClass:"table-page-box"},[e("Table",{attrs:{columns:t.columns,data:t.list,loading:t.loadIng>0,"no-data-text":t.$L(t.noText),stripe:""}}),e("Page",{attrs:{total:t.total,current:t.page,"page-size":t.pageSize,disabled:t.loadIng>0,simple:t.windowSmall,"page-size-opts":[10,20,30,50,100],"show-elevator":"","show-sizer":"","show-total":""},on:{"on-change":t.setPage,"on-page-size-change":t.setPageSize}})],1)])]),e("Modal",{attrs:{title:t.$L(t.departmentData.id>0?"\u4FEE\u6539\u90E8\u95E8":"\u65B0\u5EFA\u90E8\u95E8"),"mask-closable":!1},model:{value:t.departmentShow,callback:function(a){t.departmentShow=a},expression:"departmentShow"}},[e("Form",{ref:"addProject",attrs:{model:t.departmentData,"label-width":"auto"},nativeOn:{submit:function(a){a.preventDefault()}}},[e("FormItem",{attrs:{prop:"name",label:t.$L("\u90E8\u95E8\u540D\u79F0")}},[e("Input",{attrs:{type:"text",placeholder:t.$L("\u8BF7\u8F93\u5165\u90E8\u95E8\u540D\u79F0")},model:{value:t.departmentData.name,callback:function(a){t.$set(t.departmentData,"name",a)},expression:"departmentData.name"}})],1),e("FormItem",{attrs:{prop:"parent_id",label:t.$L("\u4E0A\u7EA7\u90E8\u95E8")}},[e("Select",{attrs:{disabled:t.departmentParentDisabled,placeholder:t.$L("\u8BF7\u9009\u62E9\u4E0A\u7EA7\u90E8\u95E8")},model:{value:t.departmentData.parent_id,callback:function(a){t.$set(t.departmentData,"parent_id",a)},expression:"departmentData.parent_id"}},[e("Option",{attrs:{value:0}},[t._v(t._s(t.$L("\u9ED8\u8BA4\u90E8\u95E8")))]),t._l(t.departmentList,function(a,i){return a.parent_id==0&&a.id!=t.departmentData.id?e("Option",{key:i,attrs:{value:a.id,label:a.name}},[t._v("\xA0\xA0\xA0\xA0"+t._s(a.name))]):t._e()})],2),t.departmentParentDisabled?e("div",{staticClass:"form-tip",staticStyle:{"margin-bottom":"-16px"}},[t._v(t._s(t.$L("\u542B\u6709\u5B50\u90E8\u95E8\u65E0\u6CD5\u4FEE\u6539\u4E0A\u7EA7\u90E8\u95E8")))]):t._e()],1),e("FormItem",{attrs:{prop:"owner_userid",label:t.$L("\u90E8\u95E8\u8D1F\u8D23\u4EBA")}},[e("UserInput",{attrs:{"multiple-max":1,"max-hidden-select":"",placeholder:t.$L("\u8BF7\u9009\u62E9\u90E8\u95E8\u8D1F\u8D23\u4EBA")},model:{value:t.departmentData.owner_userid,callback:function(a){t.$set(t.departmentData,"owner_userid",a)},expression:"departmentData.owner_userid"}})],1),t.departmentData.id==0?[e("Divider",{attrs:{orientation:"left"}},[t._v(t._s(t.$L("\u7FA4\u7EC4\u8BBE\u7F6E")))]),e("FormItem",{attrs:{prop:"dialog_group",label:t.$L("\u90E8\u95E8\u7FA4\u804A")}},[e("RadioGroup",{model:{value:t.departmentData.dialog_group,callback:function(a){t.$set(t.departmentData,"dialog_group",a)},expression:"departmentData.dialog_group"}},[e("Radio",{attrs:{label:"new"}},[t._v(t._s(t.$L("\u521B\u5EFA\u90E8\u95E8\u7FA4")))]),e("Radio",{attrs:{label:"use"}},[t._v(t._s(t.$L("\u4F7F\u7528\u73B0\u6709\u7FA4")))])],1)],1),t.departmentData.dialog_group==="use"?e("FormItem",{attrs:{prop:"dialog_useid",label:t.$L("\u9009\u62E9\u7FA4\u7EC4")}},[e("Select",{attrs:{filterable:"","remote-method":t.dialogRemote,placeholder:t.$L("\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22\u7FA4"),loading:t.dialogLoad},model:{value:t.departmentData.dialog_useid,callback:function(a){t.$set(t.departmentData,"dialog_useid",a)},expression:"departmentData.dialog_useid"}},t._l(t.dialogList,function(a,i){return e("Option",{key:i,attrs:{value:a.id,label:a.name}},[e("div",{staticClass:"team-department-add-dialog-group"},[e("div",{staticClass:"dialog-name"},[t._v(t._s(a.name))]),e("UserAvatar",{attrs:{userid:a.owner_id,size:20}})],1)])}),1),e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u4EC5\u652F\u6301\u9009\u62E9\u4E2A\u4EBA\u7FA4\u8F6C\u4E3A\u90E8\u95E8\u7FA4")))])],1):t._e()]:t._e()],2),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(a){t.departmentShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.departmentLoading>0},on:{click:t.onSaveDepartment}},[t._v(t._s(t.$L(t.departmentData.id>0?"\u4FDD\u5B58":"\u65B0\u5EFA")))])],1)],1),e("Modal",{attrs:{title:t.$L("\u4FEE\u6539\u7B7E\u5230MAC\u5730\u5740")},model:{value:t.checkinMacEditShow,callback:function(a){t.checkinMacEditShow=a},expression:"checkinMacEditShow"}},[e("Form",{attrs:{model:t.checkinMacEditData,"label-width":"auto"},nativeOn:{submit:function(a){a.preventDefault()}}},[e("Alert",{staticStyle:{"margin-bottom":"18px"},attrs:{type:"error"}},[t._v(t._s(t.$L(`\u6B63\u5728\u8FDB\u884C\u5E10\u53F7\u3010ID:${t.checkinMacEditData.userid}\uFF0C${t.checkinMacEditData.nickname}\u3011MAC\u5730\u5740\u4FEE\u6539\u3002`)))]),e("Row",{staticClass:"team-department-checkin-item"},[e("Col",{attrs:{span:"12"}},[t._v(t._s(t.$L("\u8BBE\u5907MAC\u5730\u5740")))]),e("Col",{attrs:{span:"12"}},[t._v(t._s(t.$L("\u5907\u6CE8")))])],1),t._l(t.checkinMacEditData.checkin_macs,function(a,i){return e("Row",{key:i,staticClass:"team-department-checkin-item"},[e("Col",{attrs:{span:"12"}},[e("Input",{attrs:{maxlength:20,placeholder:t.$L("\u8BF7\u8F93\u5165\u8BBE\u5907MAC\u5730\u5740"),clearable:""},on:{"on-clear":function(n){return t.delCheckinDatum(i)}},model:{value:a.mac,callback:function(n){t.$set(a,"mac",n)},expression:"item.mac"}})],1),e("Col",{attrs:{span:"12"}},[e("Input",{attrs:{maxlength:100,placeholder:t.$L("\u5907\u6CE8")},model:{value:a.remark,callback:function(n){t.$set(a,"remark",n)},expression:"item.remark"}})],1)],1)}),e("Button",{attrs:{type:"default",icon:"md-add"},on:{click:t.addCheckinDatum}},[t._v(t._s(t.$L("\u6DFB\u52A0\u8BBE\u5907")))])],2),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(a){t.checkinMacEditShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.checkinMacEditLoading>0},on:{click:function(a){return t.operationUser(t.checkinMacEditData,!0)}}},[t._v(t._s(t.$L("\u786E\u5B9A\u4FEE\u6539")))])],1)],1),e("Modal",{attrs:{title:t.$L("\u4FEE\u6539\u90E8\u95E8")},model:{value:t.departmentEditShow,callback:function(a){t.departmentEditShow=a},expression:"departmentEditShow"}},[e("Form",{attrs:{model:t.departmentEditData,"label-width":"auto"},nativeOn:{submit:function(a){a.preventDefault()}}},[e("Alert",{staticStyle:{"margin-bottom":"18px"},attrs:{type:"error"}},[t._v(t._s(t.$L(`\u6B63\u5728\u8FDB\u884C\u5E10\u53F7\u3010ID:${t.departmentEditData.userid}\uFF0C${t.departmentEditData.nickname}\u3011\u90E8\u95E8\u4FEE\u6539\u3002`)))]),e("FormItem",{attrs:{label:t.$L("\u4FEE\u6539\u90E8\u95E8")}},[e("Select",{attrs:{multiple:"","multiple-max":10,placeholder:t.$L("\u7559\u7A7A\u4E3A\u9ED8\u8BA4\u90E8\u95E8")},model:{value:t.departmentEditData.department,callback:function(a){t.$set(t.departmentEditData,"department",a)},expression:"departmentEditData.department"}},t._l(t.departmentList,function(a,i){return e("Option",{key:i,attrs:{value:a.id}},[t._v(t._s(a.name))])}),1)],1)],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(a){t.departmentEditShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.departmentEditLoading>0},on:{click:function(a){return t.operationUser(t.departmentEditData,!0)}}},[t._v(t._s(t.$L("\u786E\u5B9A\u4FEE\u6539")))])],1)],1),e("Modal",{attrs:{title:t.$L("\u64CD\u4F5C\u79BB\u804C")},model:{value:t.disableShow,callback:function(a){t.disableShow=a},expression:"disableShow"}},[e("Form",{attrs:{model:t.disableData,"label-width":"auto"},nativeOn:{submit:function(a){a.preventDefault()}}},[e("Alert",{staticStyle:{"margin-bottom":"18px"},attrs:{type:"error"}},[t._v(t._s(t.$L(`\u6B63\u5728\u8FDB\u884C\u5E10\u53F7\u3010ID:${t.disableData.userid}\uFF0C${t.disableData.nickname}\u3011\u79BB\u804C\u64CD\u4F5C\u3002`)))]),e("FormItem",{attrs:{label:t.$L("\u79BB\u804C\u65F6\u95F4")}},[e("DatePicker",{ref:"disableTime",staticStyle:{width:"100%"},attrs:{editable:!1,placeholder:t.$L("\u9009\u62E9\u79BB\u804C\u65F6\u95F4"),options:t.disableOptions,format:"yyyy/MM/dd HH:mm",type:"datetime"},model:{value:t.disableData.disable_time,callback:function(a){t.$set(t.disableData,"disable_time",a)},expression:"disableData.disable_time"}})],1),e("FormItem",{attrs:{label:t.$L("\u4EA4\u63A5\u4EBA")}},[e("UserInput",{attrs:{"disabled-choice":[t.disableData.userid],"multiple-max":1,"max-hidden-select":"",placeholder:t.$L("\u9009\u62E9\u4EA4\u63A5\u4EBA")},model:{value:t.disableData.transfer_userid,callback:function(a){t.$set(t.disableData,"transfer_userid",a)},expression:"disableData.transfer_userid"}}),e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L(`${t.disableData.nickname} \u8D1F\u8D23\u7684\u90E8\u95E8\u3001\u9879\u76EE\u3001\u4EFB\u52A1\u548C\u6587\u4EF6\u5C06\u79FB\u4EA4\u7ED9\u4EA4\u63A5\u4EBA\uFF1B\u540C\u65F6\u9000\u51FA\u6240\u6709\u7FA4\uFF08\u5982\u679C\u662F\u7FA4\u4E3B\u5219\u8F6C\u8BA9\u7ED9\u4EA4\u63A5\u4EBA\uFF09`)))])],1)],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(a){t.disableShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Poptip",{staticStyle:{"margin-left":"8px"},attrs:{confirm:"",placement:"bottom","ok-text":t.$L("\u786E\u5B9A"),"cancel-text":t.$L("\u53D6\u6D88"),transfer:""},on:{"on-ok":function(a){return t.operationUser(t.disableData,!0)}}},[e("div",{attrs:{slot:"title"},slot:"title"},[e("p",[t._v(t._s(t.$L("\u6CE8\u610F\uFF1A\u79BB\u804C\u64CD\u4F5C\u4E0D\u53EF\u9006\uFF01")))])]),e("Button",{attrs:{type:"primary",loading:t.disableLoading>0}},[t._v(t._s(t.$L("\u786E\u5B9A\u79BB\u804C")))])],1)],1)],1)],1)},p=[];const m={name:"TeamManagement",components:{UserInput:l},props:{checkinMac:{type:Boolean,default:!1}},data(){return{loadIng:0,keys:{},keyIs:!1,columns:[{title:"ID",key:"userid",width:80,render:(t,{row:s,column:e})=>t("TableAction",{props:{column:e,align:"left"}},[t("div",s.userid)])},{title:this.$L("\u90AE\u7BB1"),key:"email",minWidth:160,render:(t,{row:s})=>{const e=[t("AutoTip",s.email)],{email_verity:a,identity:i,disable_at:n}=s;return a&&e.push(t("Icon",{props:{type:"md-mail"}})),i.includes("ldap")&&e.push(t("Tag",{props:{color:"orange"}},this.$L("LDAP"))),i.includes("admin")&&e.push(t("Tag",{props:{color:"warning"}},this.$L("\u7BA1\u7406\u5458"))),i.includes("temp")&&e.push(t("Tag",{props:{color:"success"}},this.$L("\u4E34\u65F6"))),i.includes("disable")&&e.push(t("Tooltip",{props:{content:this.$L("\u79BB\u804C\u65F6\u95F4")+": "+n}},[t("Tag",{props:{color:"error"}},this.$L("\u79BB\u804C"))])),t("div",{class:"team-email"},e)}},{title:this.$L("\u7535\u8BDD"),key:"tel",minWidth:80,render:(t,{row:s})=>t("QuickEdit",{props:{value:s.tel},on:{"on-update":(e,a)=>{this.operationUser({userid:s.userid,tel:e},!0).finally(a)}}},[t("AutoTip",s.tel||"-")])},{title:this.$L("\u6635\u79F0"),key:"nickname",minWidth:80,render:(t,{row:s})=>t("QuickEdit",{props:{value:s.nickname_original},on:{"on-update":(e,a)=>{this.operationUser({userid:s.userid,nickname:e},!0).finally(a)}}},[t("AutoTip",s.nickname_original||"-")])},{title:this.$L("\u804C\u4F4D/\u804C\u79F0"),key:"profession",minWidth:80,render:(t,{row:s})=>t("QuickEdit",{props:{value:s.profession},on:{"on-update":(e,a)=>{this.operationUser({userid:s.userid,profession:e},!0).finally(a)}}},[t("AutoTip",s.profession||"-")])},{title:this.$L("\u90E8\u95E8"),key:"department",minWidth:80,render:(t,{row:s})=>{let e=[];if(s.department.some(a=>{const i=this.departmentList.find(n=>n.id==a);i&&e.push(i.name)}),e.length===0)return t("div",this.$L("\u9ED8\u8BA4\u90E8\u95E8"));{const a=[];return a.push(t("span",{domProps:{title:e[0]}},e[0])),e.length>1&&(e=e.splice(1),a.push(t("ETooltip",[t("div",{slot:"content",domProps:{innerHTML:e.join("
")}}),t("div",{class:"department-tag-num"},` +${e.length}`)]))),t("div",{class:"team-table-department-warp"},a)}}},{title:this.$L("\u6700\u540E\u5728\u7EBF"),key:"line_at",width:168},{title:this.$L("\u64CD\u4F5C"),align:"center",width:100,render:(t,s)=>{const e=s.row.identity,a=[];e.includes("admin")?a.push(t("EDropdownItem",{props:{command:"clearadmin"}},[t("div",this.$L("\u53D6\u6D88\u7BA1\u7406\u5458"))])):a.push(t("EDropdownItem",{props:{command:"setadmin"}},[t("div",this.$L("\u8BBE\u4E3A\u7BA1\u7406\u5458"))])),e.includes("temp")?a.push(t("EDropdownItem",{props:{command:"cleartemp"}},[t("div",this.$L("\u53D6\u6D88\u4E34\u65F6\u8EAB\u4EFD"))])):a.push(t("EDropdownItem",{props:{command:"settemp"}},[t("div",this.$L("\u8BBE\u4E3A\u4E34\u65F6\u5E10\u53F7"))])),a.push(t("EDropdownItem",{props:{command:"email"}},[t("div",this.$L("\u4FEE\u6539\u90AE\u7BB1"))])),a.push(t("EDropdownItem",{props:{command:"password"}},[t("div",this.$L("\u4FEE\u6539\u5BC6\u7801"))])),this.checkinMac&&a.push(t("EDropdownItem",{props:{command:"checkin_mac"}},[t("div",this.$L("\u4FEE\u6539MAC"))])),a.push(t("EDropdownItem",{props:{command:"department"}},[t("div",this.$L("\u4FEE\u6539\u90E8\u95E8"))])),e.includes("disable")?a.push(t("EDropdownItem",{props:{command:"cleardisable"},style:{color:"#f90"}},[t("div",this.$L("\u6062\u590D\u5E10\u53F7\uFF08\u5DF2\u79BB\u804C\uFF09"))])):a.push(t("EDropdownItem",{props:{command:"setdisable"},style:{color:"#f90"}},[t("div",this.$L("\u64CD\u4F5C\u79BB\u804C"))])),a.push(t("EDropdownItem",{props:{command:"delete"},style:{color:"red"}},[t("div",this.$L("\u5220\u9664"))]));const i=t("EDropdown",{props:{size:"small",trigger:"click"},on:{command:n=>{this.dropUser(n,s.row)}}},[t("Button",{props:{type:"primary",size:"small"},style:{fontSize:"12px"}},this.$L("\u64CD\u4F5C")),t("EDropdownMenu",{slot:"dropdown"},[a])]);return t("TableAction",{props:{column:s.column}},[i])}}],list:[],page:1,pageSize:20,total:0,noText:"",checkinMacEditShow:!1,checkinMacEditLoading:0,checkinMacEditData:{},departmentEditShow:!1,departmentEditLoading:0,departmentEditData:{},disableShow:!1,disableLoading:0,disableData:{},disableOptions:{shortcuts:[{text:this.$L("12:00"),value(){return $A.Date($A.formatDate("Y-m-d 12:00:00"))},onClick:t=>{t.handlePickSuccess()}},{text:this.$L("17:00"),value(){return $A.Date($A.formatDate("Y-m-d 17:00:00"))},onClick:t=>{t.handlePickSuccess()}},{text:this.$L("18:00"),value(){return $A.Date($A.formatDate("Y-m-d 18:00:00"))},onClick:t=>{t.handlePickSuccess()}},{text:this.$L("19:00"),value(){return $A.Date($A.formatDate("Y-m-d 19:00:00"))},onClick:t=>{t.handlePickSuccess()}},{text:this.$L("\u73B0\u5728"),value(){return new Date},onClick:t=>{t.handlePickSuccess()}}]},departmentShow:!1,departmentLoading:0,departmentSelect:-1,departmentData:{id:0,name:"",parent_id:0,owner_userid:[],dialog_group:"new",dialog_useid:0},departmentList:[],dialogLoad:!1,dialogList:[],nullCheckinDatum:{mac:"",remark:""}}},created(){this.checkinMac&&this.columns.splice(5,0,{title:this.$L("MAC\u5730\u5740"),key:"checkin_mac",minWidth:80,render:(t,{row:s})=>{let e=$A.cloneJSON(s.checkin_macs||[]);if(e.length===0)return t("div","-");{const a=n=>n.remark?`${n.mac} (${n.remark})`:n.mac,i=[];return i.push(t("AutoTip",a(e[0]))),e.length>1&&(e=e.splice(1),i.push(t("ETooltip",[t("div",{slot:"content",domProps:{innerHTML:e.map(n=>a(n)).join("
")}}),t("div",{class:"department-tag-num"},` +${e.length}`)]))),t("div",{class:"team-table-department-warp"},i)}}})},mounted(){this.getLists(),this.getDepartmentLists()},watch:{keyIs(t){t||(this.keys={},this.setPage(1))},departmentSelect(){this.setPage(1)}},computed:{departmentParentDisabled(){return!!(this.departmentData.id>0&&this.departmentList.find(({parent_id:t})=>t==this.departmentData.id))}},methods:{onSearch(){this.page=1,this.getLists()},getLists(){this.loadIng++,this.keyIs=$A.objImplode(this.keys)!="";let t=$A.cloneJSON(this.keys);this.departmentSelect>-1&&(t=Object.assign(t,{department:this.departmentSelect})),this.$store.dispatch("call",{url:"users/lists",data:{keys:t,get_checkin_mac:this.checkinMac?1:0,page:Math.max(this.page,1),pagesize:Math.max($A.runNum(this.pageSize),10)}}).then(({data:s})=>{this.page=s.current_page,this.total=s.total,this.list=s.data,this.noText="\u6CA1\u6709\u76F8\u5173\u7684\u6210\u5458"}).catch(()=>{this.noText="\u6570\u636E\u52A0\u8F7D\u5931\u8D25"}).finally(s=>{this.loadIng--})},setPage(t){this.page=t,this.getLists()},setPageSize(t){this.page=1,this.pageSize=t,this.getLists()},dropUser(t,s){switch(t){case"settemp":$A.modalConfirm({content:`\u4F60\u786E\u5B9A\u5C06\u3010ID:${s.userid}\uFF0C${s.nickname}\u3011\u8BBE\u4E3A\u4E34\u65F6\u5E10\u53F7\u5417\uFF1F\uFF08\u6CE8\uFF1A\u4E34\u65F6\u5E10\u53F7\u9650\u5236\u8BF7\u67E5\u770B\u7CFB\u7EDF\u8BBE\u7F6E\uFF09`,loading:!0,onOk:()=>this.operationUser({userid:s.userid,type:t})});break;case"cleartemp":$A.modalConfirm({content:`\u4F60\u786E\u5B9A\u53D6\u6D88\u3010ID:${s.userid}\uFF0C${s.nickname}\u3011\u4E34\u65F6\u8EAB\u4EFD\u5417\uFF1F`,loading:!0,onOk:()=>this.operationUser({userid:s.userid,type:t})});break;case"email":$A.modalInput({title:"\u4FEE\u6539\u90AE\u7BB1",placeholder:`\u8BF7\u8F93\u5165\u65B0\u7684\u90AE\u7BB1\uFF08${s.email}\uFF09`,onOk:a=>a?this.operationUser({userid:s.userid,email:a}):"\u8BF7\u8F93\u5165\u65B0\u7684\u90AE\u7BB1\u5730\u5740"});break;case"password":$A.modalInput({title:"\u4FEE\u6539\u5BC6\u7801",placeholder:"\u8BF7\u8F93\u5165\u65B0\u7684\u5BC6\u7801",onOk:a=>a?this.operationUser({userid:s.userid,password:a}):"\u8BF7\u8F93\u5165\u65B0\u7684\u5BC6\u7801"});break;case"checkin_mac":this.checkinMacEditData={type:"checkin_macs",userid:s.userid,nickname:s.nickname,checkin_macs:s.checkin_macs},this.checkinMacEditData.checkin_macs.length===0&&this.addCheckinDatum(),this.checkinMacEditShow=!0;break;case"department":let e=[];s.department.some(a=>{const i=this.departmentList.find(n=>n.id==a);i&&e.push(i.owner_userid===s.userid?`${i.name} (${this.$L("\u8D1F\u8D23\u4EBA")})`:i.name)}),this.departmentEditData={type:"department",userid:s.userid,nickname:s.nickname,department:s.department.map(a=>parseInt(a))},this.departmentEditShow=!0;break;case"setdisable":this.disableData={type:"setdisable",userid:s.userid,nickname:s.nickname},this.disableShow=!0;break;case"cleardisable":$A.modalConfirm({content:`\u4F60\u786E\u5B9A\u6062\u590D\u5DF2\u79BB\u804C\u5E10\u53F7\u3010ID:${s.userid}\uFF0C${s.nickname}\u3011\u5417\uFF1F\uFF08\u6CE8\uFF1A\u6B64\u64CD\u4F5C\u4EC5\u6062\u590D\u5E10\u53F7\u72B6\u6001\uFF0C\u65E0\u6CD5\u6062\u590D\u64CD\u4F5C\u79BB\u804C\u65F6\u79FB\u4EA4\u7684\u6570\u636E\uFF09`,loading:!0,onOk:()=>this.operationUser({userid:s.userid,type:t})});break;case"delete":$A.modalInput({title:`\u5220\u9664\u5E10\u53F7\u3010ID:${s.userid}\uFF0C${s.nickname}\u3011`,placeholder:"\u8BF7\u8F93\u5165\u5220\u9664\u539F\u56E0",okText:"\u786E\u5B9A\u5220\u9664",onOk:a=>a?this.operationUser({userid:s.userid,type:t,delete_reason:a}):"\u5220\u9664\u539F\u56E0\u4E0D\u80FD\u4E3A\u7A7A"});break;default:this.operationUser({userid:s.userid,type:t},!0);break}},operationUser(t,s){return new Promise((e,a)=>{t.type=="checkin_macs"?this.checkinMacEditLoading++:t.type=="department"?this.departmentEditLoading++:t.type=="setdisable"?this.disableLoading++:this.loadIng++,this.$store.dispatch("call",{url:"users/operation",data:t}).then(({msg:i})=>{$A.messageSuccess(i),this.getLists(),e(),t.type=="checkin_macs"?this.checkinMacEditShow=!1:t.type=="department"?this.departmentEditShow=!1:t.type=="setdisable"&&(this.disableShow=!1)}).catch(({msg:i})=>{s===!0&&$A.modalError(i),this.getLists(),a(i)}).finally(i=>{t.type=="checkin_macs"?this.checkinMacEditLoading--:t.type=="department"?this.departmentEditLoading--:t.type=="setdisable"?this.disableLoading--:this.loadIng--})})},getDepartmentLists(){this.departmentLoading++,this.$store.dispatch("call",{url:"users/department/list"}).then(({data:t})=>{this.departmentList=[],this.generateDepartmentList(t,0,1)}).finally(t=>{this.departmentLoading--})},generateDepartmentList(t,s,e){t.some(a=>{a.parent_id==s&&(this.departmentList.push(Object.assign(a,{level:e+1})),this.generateDepartmentList(t,a.id,e+1))})},onShowDepartment(t){this.departmentData=Object.assign({id:0,name:"",parent_id:0,owner_userid:[],dialog_group:"new"},t||{}),this.departmentShow=!0},onSaveDepartment(){this.departmentLoading++,this.$store.dispatch("call",{url:"users/department/add",data:Object.assign(this.departmentData,{owner_userid:this.departmentData.owner_userid[0]})}).then(({msg:t})=>{$A.messageSuccess(t),this.getDepartmentLists(),this.getLists(),this.departmentShow=!1}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.departmentLoading--})},onSelectDepartment(t){if(this.departmentSelect===t){this.departmentSelect=-1;return}this.departmentSelect=t},onOpDepartment(t){if($A.leftExists(t,"add_"))this.onShowDepartment({parent_id:parseInt(t.substr(4))});else if($A.leftExists(t,"edit_")){const s=this.departmentList.find(({id:e})=>e===parseInt(t.substr(5)));s&&this.onShowDepartment(s)}else if($A.leftExists(t,"del_")){const s=this.departmentList.find(({id:e})=>e===parseInt(t.substr(4)));s&&$A.modalConfirm({title:this.$L("\u5220\u9664\u90E8\u95E8"),content:`
${this.$L(`\u4F60\u786E\u5B9A\u8981\u5220\u9664\u3010${s.name}\u3011\u90E8\u95E8\u5417\uFF1F`)}
${this.$L("\u6CE8\u610F\uFF1A\u6B64\u64CD\u4F5C\u4E0D\u53EF\u6062\u590D\uFF0C\u90E8\u95E8\u4E0B\u7684\u6210\u5458\u5C06\u79FB\u81F3\u9ED8\u8BA4\u90E8\u95E8\u3002")}
`,language:!1,loading:!0,onOk:()=>new Promise((e,a)=>{this.$store.dispatch("call",{url:"users/department/del",data:{id:s.id}}).then(({msg:i})=>{s.id===this.departmentSelect&&(this.departmentSelect=-1),e(i),this.getDepartmentLists()}).catch(({msg:i})=>{a(i)})})})}},dialogRemote(t){t!==""?(this.dialogLoad=!0,this.$store.dispatch("call",{url:"dialog/group/searchuser",data:{key:t}}).then(({data:s})=>{this.dialogList=s.list}).finally(s=>{this.dialogLoad=!1})):this.dialogList=[]},addCheckinDatum(){this.checkinMacEditData.checkin_macs.push($A.cloneJSON(this.nullCheckinDatum))},delCheckinDatum(t){this.checkinMacEditData.checkin_macs.splice(t,1),this.checkinMacEditData.checkin_macs.length===0&&this.addCheckinDatum()}}},r={};var u=d(m,c,p,!1,h,null,null,null);function h(t){for(let s in r)this[s]=r[s]}var D=function(){return u.exports}(),_=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("Modal",{attrs:{title:t.$L("\u5BFC\u51FA\u7B7E\u5230\u6570\u636E"),"mask-closable":!1},model:{value:t.show,callback:function(a){t.show=a},expression:"show"}},[e("Form",{ref:"export",attrs:{model:t.formData,"label-width":"auto"},nativeOn:{submit:function(a){a.preventDefault()}}},[e("FormItem",{attrs:{label:t.$L("\u5BFC\u51FA\u6210\u5458")}},[e("UserInput",{attrs:{"multiple-max":100,placeholder:t.$L("\u8BF7\u9009\u62E9\u6210\u5458")},model:{value:t.formData.userid,callback:function(a){t.$set(t.formData,"userid",a)},expression:"formData.userid"}}),e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u6BCF\u6B21\u6700\u591A\u9009\u62E9\u5BFC\u51FA100\u4E2A\u6210\u5458")))])],1),e("FormItem",{attrs:{label:t.$L("\u7B7E\u5230\u65E5\u671F")}},[e("DatePicker",{staticStyle:{width:"100%"},attrs:{type:"daterange",format:"yyyy/MM/dd",placeholder:t.$L("\u8BF7\u9009\u62E9\u7B7E\u5230\u65E5\u671F")},model:{value:t.formData.date,callback:function(a){t.$set(t.formData,"date",a)},expression:"formData.date"}}),e("div",{staticClass:"form-tip checkin-export-quick-select"},[e("span",[t._v(t._s(t.$L("\u5FEB\u6377\u9009\u62E9"))+":")]),e("em",{on:{click:function(a){t.formData.date=t.dateShortcuts("prev")}}},[t._v(t._s(t.$L("\u4E0A\u4E2A\u6708")))]),e("em",{on:{click:function(a){t.formData.date=t.dateShortcuts("this")}}},[t._v(t._s(t.$L("\u8FD9\u4E2A\u6708")))])])],1),e("FormItem",{attrs:{label:t.$L("\u73ED\u6B21\u65F6\u95F4")}},[e("TimePicker",{staticStyle:{width:"100%"},attrs:{type:"timerange",format:"HH:mm",placeholder:t.$L("\u8BF7\u9009\u62E9\u73ED\u6B21\u65F6\u95F4")},model:{value:t.formData.time,callback:function(a){t.$set(t.formData,"time",a)},expression:"formData.time"}}),e("div",{staticClass:"form-tip checkin-export-quick-select"},[e("span",[t._v(t._s(t.$L("\u5FEB\u6377\u9009\u62E9"))+":")]),e("em",{on:{click:function(a){t.formData.time=["8:30","18:00"]}}},[t._v("8:30-18:00")]),e("em",{on:{click:function(a){t.formData.time=["9:00","18:00"]}}},[t._v("9:00-18:00")]),e("em",{on:{click:function(a){t.formData.time=["9:30","18:00"]}}},[t._v("9:30-18:30")])])],1)],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(a){t.show=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.loadIng>0},on:{click:t.onExport}},[t._v(t._s(t.$L("\u5BFC\u51FA")))])],1)],1)},f=[];const v={name:"CheckinExport",components:{UserInput:l},props:{value:{type:Boolean,default:!1}},data(){return{show:this.value,loadIng:0,formData:{userid:[],date:[],time:[]}}},watch:{value(t){this.show=t},show(t){this.value!==t&&this.$emit("input",t)}},methods:{dateShortcuts(t){if(t==="prev")return[$A.getSpecifyDate("\u4E0A\u4E2A\u6708"),$A.getSpecifyDate("\u4E0A\u4E2A\u6708\u7ED3\u675F")];if(t==="this")return[$A.getSpecifyDate("\u672C\u6708"),$A.getSpecifyDate("\u672C\u6708\u7ED3\u675F")]},onExport(){this.loadIng>0||(this.loadIng++,this.$store.dispatch("call",{url:"system/checkin/export",data:this.formData}).then(({data:t})=>{this.show=!1,this.$store.dispatch("downUrl",{url:t.url})}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.loadIng--}))}}},o={};var $=d(v,_,f,!1,k,null,null,null);function k(t){for(let s in o)this[s]=o[s]}var b=function(){return $.exports}();export{b as C,D as T}; +import{U as l}from"./UserInput.2bc16b15.js";import{n as d}from"./app.feefc813.js";var c=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"team-management"},[e("div",{staticClass:"management-title"},[t._v(" "+t._s(t.$L("\u56E2\u961F\u7BA1\u7406"))+" "),e("div",{staticClass:"title-icon"},[t.loadIng>0?e("Loading"):t._e()],1)]),e("div",{staticClass:"management-box"},[e("div",{staticClass:"management-department"},[e("ul",[e("li",{class:["level-1",t.departmentSelect===0?"active":""],on:{click:function(a){return t.onSelectDepartment(0)}}},[e("i",{staticClass:"taskfont department-icon"},[t._v("\uE766")]),e("div",{staticClass:"department-title"},[t._v(t._s(t.$L("\u9ED8\u8BA4\u90E8\u95E8")))]),e("EDropdown",{attrs:{size:"medium",trigger:"click"},on:{command:t.onOpDepartment}},[e("i",{staticClass:"taskfont department-menu",on:{click:function(a){a.stopPropagation()}}},[t._v("\uE6E9")]),e("EDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},[e("EDropdownItem",{attrs:{command:"add_0"}},[e("div",[t._v(t._s(t.$L("\u6DFB\u52A0\u5B50\u90E8\u95E8")))])])],1)],1)],1),t._l(t.departmentList,function(a){return e("li",{key:a.id,class:[`level-${a.level}`,t.departmentSelect===a.id?"active":""],on:{click:function(i){return t.onSelectDepartment(a.id)}}},[e("UserAvatar",{staticClass:"department-icon",attrs:{userid:a.owner_userid,size:20}},[e("p",[e("strong",[t._v(t._s(t.$L("\u90E8\u95E8\u8D1F\u8D23\u4EBA")))])])]),e("div",{staticClass:"department-title"},[t._v(t._s(a.name))]),e("EDropdown",{attrs:{size:"medium",trigger:"click"},on:{command:t.onOpDepartment}},[e("i",{staticClass:"taskfont department-menu",on:{click:function(i){i.stopPropagation()}}},[t._v("\uE6E9")]),e("EDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a.level<=2?e("EDropdownItem",{attrs:{command:`add_${a.id}`}},[e("div",[t._v(t._s(t.$L("\u6DFB\u52A0\u5B50\u90E8\u95E8")))])]):t._e(),e("EDropdownItem",{attrs:{command:`edit_${a.id}`}},[e("div",[t._v(t._s(t.$L("\u7F16\u8F91")))])]),e("EDropdownItem",{attrs:{command:`del_${a.id}`}},[e("div",{staticStyle:{color:"#f00"}},[t._v(t._s(t.$L("\u5220\u9664")))])])],1)],1)],1)})],2),e("div",{staticClass:"department-buttons"},[e("Button",{attrs:{type:"primary",icon:"md-add"},on:{click:function(a){return t.onShowDepartment(null)}}},[t._v(t._s(t.$L("\u65B0\u5EFA\u90E8\u95E8")))])],1)]),e("div",{staticClass:"management-user"},[e("div",{staticClass:"search-container lr"},[e("ul",[e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u5173\u952E\u8BCD"))+" ")]),e("div",{staticClass:"search-content"},[e("Input",{attrs:{placeholder:t.$L("\u90AE\u7BB1\u3001\u6635\u79F0\u3001\u804C\u4F4D"),clearable:""},model:{value:t.keys.key,callback:function(a){t.$set(t.keys,"key",a)},expression:"keys.key"}})],1)]),e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u8EAB\u4EFD"))+" ")]),e("div",{staticClass:"search-content"},[e("Select",{attrs:{placeholder:t.$L("\u5168\u90E8")},model:{value:t.keys.identity,callback:function(a){t.$set(t.keys,"identity",a)},expression:"keys.identity"}},[e("Option",{attrs:{value:""}},[t._v(t._s(t.$L("\u5168\u90E8")))]),e("Option",{attrs:{value:"admin"}},[t._v(t._s(t.$L("\u7BA1\u7406\u5458")))]),e("Option",{attrs:{value:"noadmin"}},[t._v(t._s(t.$L("\u975E\u7BA1\u7406\u5458")))]),e("Option",{attrs:{value:"temp"}},[t._v(t._s(t.$L("\u4E34\u65F6\u5E10\u53F7")))]),e("Option",{attrs:{value:"notemp"}},[t._v(t._s(t.$L("\u975E\u4E34\u65F6\u5E10\u53F7")))])],1)],1)]),e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u5728\u804C\u72B6\u6001"))+" ")]),e("div",{staticClass:"search-content"},[e("Select",{attrs:{placeholder:t.$L("\u5728\u804C")},model:{value:t.keys.disable,callback:function(a){t.$set(t.keys,"disable",a)},expression:"keys.disable"}},[e("Option",{attrs:{value:""}},[t._v(t._s(t.$L("\u5728\u804C")))]),e("Option",{attrs:{value:"yes"}},[t._v(t._s(t.$L("\u79BB\u804C")))]),e("Option",{attrs:{value:"all"}},[t._v(t._s(t.$L("\u5168\u90E8")))])],1)],1)]),t.checkinMac?e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("MAC\u5730\u5740"))+" ")]),e("div",{staticClass:"search-content"},[e("Input",{attrs:{placeholder:t.$L("MAC\u5730\u5740"),clearable:""},model:{value:t.keys.checkin_mac,callback:function(a){t.$set(t.keys,"checkin_mac",a)},expression:"keys.checkin_mac"}})],1)]):e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u90AE\u7BB1\u8BA4\u8BC1"))+" ")]),e("div",{staticClass:"search-content"},[e("Select",{attrs:{placeholder:t.$L("\u5168\u90E8")},model:{value:t.keys.email_verity,callback:function(a){t.$set(t.keys,"email_verity",a)},expression:"keys.email_verity"}},[e("Option",{attrs:{value:""}},[t._v(t._s(t.$L("\u5168\u90E8")))]),e("Option",{attrs:{value:"yes"}},[t._v(t._s(t.$L("\u5DF2\u90AE\u7BB1\u8BA4\u8BC1")))]),e("Option",{attrs:{value:"no"}},[t._v(t._s(t.$L("\u672A\u90AE\u7BB1\u8BA4\u8BC1")))])],1)],1)]),e("li",{staticClass:"search-button"},[e("Tooltip",{attrs:{theme:"light",placement:"bottom","transfer-class-name":"search-button-clear",transfer:""}},[e("Button",{attrs:{loading:t.loadIng>0,type:"primary",icon:"ios-search"},on:{click:t.onSearch}},[t._v(t._s(t.$L("\u641C\u7D22")))]),e("div",{attrs:{slot:"content"},slot:"content"},[t.keyIs?e("Button",{attrs:{type:"text"},on:{click:function(a){t.keyIs=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88\u7B5B\u9009")))]):e("Button",{attrs:{loading:t.loadIng>0,type:"text"},on:{click:t.getLists}},[t._v(t._s(t.$L("\u5237\u65B0")))])],1)],1)],1)])]),e("div",{staticClass:"table-page-box"},[e("Table",{attrs:{columns:t.columns,data:t.list,loading:t.loadIng>0,"no-data-text":t.$L(t.noText),stripe:""}}),e("Page",{attrs:{total:t.total,current:t.page,"page-size":t.pageSize,disabled:t.loadIng>0,simple:t.windowSmall,"page-size-opts":[10,20,30,50,100],"show-elevator":"","show-sizer":"","show-total":""},on:{"on-change":t.setPage,"on-page-size-change":t.setPageSize}})],1)])]),e("Modal",{attrs:{title:t.$L(t.departmentData.id>0?"\u4FEE\u6539\u90E8\u95E8":"\u65B0\u5EFA\u90E8\u95E8"),"mask-closable":!1},model:{value:t.departmentShow,callback:function(a){t.departmentShow=a},expression:"departmentShow"}},[e("Form",{ref:"addProject",attrs:{model:t.departmentData,"label-width":"auto"},nativeOn:{submit:function(a){a.preventDefault()}}},[e("FormItem",{attrs:{prop:"name",label:t.$L("\u90E8\u95E8\u540D\u79F0")}},[e("Input",{attrs:{type:"text",placeholder:t.$L("\u8BF7\u8F93\u5165\u90E8\u95E8\u540D\u79F0")},model:{value:t.departmentData.name,callback:function(a){t.$set(t.departmentData,"name",a)},expression:"departmentData.name"}})],1),e("FormItem",{attrs:{prop:"parent_id",label:t.$L("\u4E0A\u7EA7\u90E8\u95E8")}},[e("Select",{attrs:{disabled:t.departmentParentDisabled,placeholder:t.$L("\u8BF7\u9009\u62E9\u4E0A\u7EA7\u90E8\u95E8")},model:{value:t.departmentData.parent_id,callback:function(a){t.$set(t.departmentData,"parent_id",a)},expression:"departmentData.parent_id"}},[e("Option",{attrs:{value:0}},[t._v(t._s(t.$L("\u9ED8\u8BA4\u90E8\u95E8")))]),t._l(t.departmentList,function(a,i){return a.parent_id==0&&a.id!=t.departmentData.id?e("Option",{key:i,attrs:{value:a.id,label:a.name}},[t._v("\xA0\xA0\xA0\xA0"+t._s(a.name))]):t._e()})],2),t.departmentParentDisabled?e("div",{staticClass:"form-tip",staticStyle:{"margin-bottom":"-16px"}},[t._v(t._s(t.$L("\u542B\u6709\u5B50\u90E8\u95E8\u65E0\u6CD5\u4FEE\u6539\u4E0A\u7EA7\u90E8\u95E8")))]):t._e()],1),e("FormItem",{attrs:{prop:"owner_userid",label:t.$L("\u90E8\u95E8\u8D1F\u8D23\u4EBA")}},[e("UserInput",{attrs:{"multiple-max":1,"max-hidden-select":"",placeholder:t.$L("\u8BF7\u9009\u62E9\u90E8\u95E8\u8D1F\u8D23\u4EBA")},model:{value:t.departmentData.owner_userid,callback:function(a){t.$set(t.departmentData,"owner_userid",a)},expression:"departmentData.owner_userid"}})],1),t.departmentData.id==0?[e("Divider",{attrs:{orientation:"left"}},[t._v(t._s(t.$L("\u7FA4\u7EC4\u8BBE\u7F6E")))]),e("FormItem",{attrs:{prop:"dialog_group",label:t.$L("\u90E8\u95E8\u7FA4\u804A")}},[e("RadioGroup",{model:{value:t.departmentData.dialog_group,callback:function(a){t.$set(t.departmentData,"dialog_group",a)},expression:"departmentData.dialog_group"}},[e("Radio",{attrs:{label:"new"}},[t._v(t._s(t.$L("\u521B\u5EFA\u90E8\u95E8\u7FA4")))]),e("Radio",{attrs:{label:"use"}},[t._v(t._s(t.$L("\u4F7F\u7528\u73B0\u6709\u7FA4")))])],1)],1),t.departmentData.dialog_group==="use"?e("FormItem",{attrs:{prop:"dialog_useid",label:t.$L("\u9009\u62E9\u7FA4\u7EC4")}},[e("Select",{attrs:{filterable:"","remote-method":t.dialogRemote,placeholder:t.$L("\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22\u7FA4"),loading:t.dialogLoad},model:{value:t.departmentData.dialog_useid,callback:function(a){t.$set(t.departmentData,"dialog_useid",a)},expression:"departmentData.dialog_useid"}},t._l(t.dialogList,function(a,i){return e("Option",{key:i,attrs:{value:a.id,label:a.name}},[e("div",{staticClass:"team-department-add-dialog-group"},[e("div",{staticClass:"dialog-name"},[t._v(t._s(a.name))]),e("UserAvatar",{attrs:{userid:a.owner_id,size:20}})],1)])}),1),e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u4EC5\u652F\u6301\u9009\u62E9\u4E2A\u4EBA\u7FA4\u8F6C\u4E3A\u90E8\u95E8\u7FA4")))])],1):t._e()]:t._e()],2),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(a){t.departmentShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.departmentLoading>0},on:{click:t.onSaveDepartment}},[t._v(t._s(t.$L(t.departmentData.id>0?"\u4FDD\u5B58":"\u65B0\u5EFA")))])],1)],1),e("Modal",{attrs:{title:t.$L("\u4FEE\u6539\u7B7E\u5230MAC\u5730\u5740")},model:{value:t.checkinMacEditShow,callback:function(a){t.checkinMacEditShow=a},expression:"checkinMacEditShow"}},[e("Form",{attrs:{model:t.checkinMacEditData,"label-width":"auto"},nativeOn:{submit:function(a){a.preventDefault()}}},[e("Alert",{staticStyle:{"margin-bottom":"18px"},attrs:{type:"error"}},[t._v(t._s(t.$L(`\u6B63\u5728\u8FDB\u884C\u5E10\u53F7\u3010ID:${t.checkinMacEditData.userid}\uFF0C${t.checkinMacEditData.nickname}\u3011MAC\u5730\u5740\u4FEE\u6539\u3002`)))]),e("Row",{staticClass:"team-department-checkin-item"},[e("Col",{attrs:{span:"12"}},[t._v(t._s(t.$L("\u8BBE\u5907MAC\u5730\u5740")))]),e("Col",{attrs:{span:"12"}},[t._v(t._s(t.$L("\u5907\u6CE8")))])],1),t._l(t.checkinMacEditData.checkin_macs,function(a,i){return e("Row",{key:i,staticClass:"team-department-checkin-item"},[e("Col",{attrs:{span:"12"}},[e("Input",{attrs:{maxlength:20,placeholder:t.$L("\u8BF7\u8F93\u5165\u8BBE\u5907MAC\u5730\u5740"),clearable:""},on:{"on-clear":function(n){return t.delCheckinDatum(i)}},model:{value:a.mac,callback:function(n){t.$set(a,"mac",n)},expression:"item.mac"}})],1),e("Col",{attrs:{span:"12"}},[e("Input",{attrs:{maxlength:100,placeholder:t.$L("\u5907\u6CE8")},model:{value:a.remark,callback:function(n){t.$set(a,"remark",n)},expression:"item.remark"}})],1)],1)}),e("Button",{attrs:{type:"default",icon:"md-add"},on:{click:t.addCheckinDatum}},[t._v(t._s(t.$L("\u6DFB\u52A0\u8BBE\u5907")))])],2),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(a){t.checkinMacEditShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.checkinMacEditLoading>0},on:{click:function(a){return t.operationUser(t.checkinMacEditData,!0)}}},[t._v(t._s(t.$L("\u786E\u5B9A\u4FEE\u6539")))])],1)],1),e("Modal",{attrs:{title:t.$L("\u4FEE\u6539\u90E8\u95E8")},model:{value:t.departmentEditShow,callback:function(a){t.departmentEditShow=a},expression:"departmentEditShow"}},[e("Form",{attrs:{model:t.departmentEditData,"label-width":"auto"},nativeOn:{submit:function(a){a.preventDefault()}}},[e("Alert",{staticStyle:{"margin-bottom":"18px"},attrs:{type:"error"}},[t._v(t._s(t.$L(`\u6B63\u5728\u8FDB\u884C\u5E10\u53F7\u3010ID:${t.departmentEditData.userid}\uFF0C${t.departmentEditData.nickname}\u3011\u90E8\u95E8\u4FEE\u6539\u3002`)))]),e("FormItem",{attrs:{label:t.$L("\u4FEE\u6539\u90E8\u95E8")}},[e("Select",{attrs:{multiple:"","multiple-max":10,placeholder:t.$L("\u7559\u7A7A\u4E3A\u9ED8\u8BA4\u90E8\u95E8")},model:{value:t.departmentEditData.department,callback:function(a){t.$set(t.departmentEditData,"department",a)},expression:"departmentEditData.department"}},t._l(t.departmentList,function(a,i){return e("Option",{key:i,attrs:{value:a.id}},[t._v(t._s(a.name))])}),1)],1)],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(a){t.departmentEditShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.departmentEditLoading>0},on:{click:function(a){return t.operationUser(t.departmentEditData,!0)}}},[t._v(t._s(t.$L("\u786E\u5B9A\u4FEE\u6539")))])],1)],1),e("Modal",{attrs:{title:t.$L("\u64CD\u4F5C\u79BB\u804C")},model:{value:t.disableShow,callback:function(a){t.disableShow=a},expression:"disableShow"}},[e("Form",{attrs:{model:t.disableData,"label-width":"auto"},nativeOn:{submit:function(a){a.preventDefault()}}},[e("Alert",{staticStyle:{"margin-bottom":"18px"},attrs:{type:"error"}},[t._v(t._s(t.$L(`\u6B63\u5728\u8FDB\u884C\u5E10\u53F7\u3010ID:${t.disableData.userid}\uFF0C${t.disableData.nickname}\u3011\u79BB\u804C\u64CD\u4F5C\u3002`)))]),e("FormItem",{attrs:{label:t.$L("\u79BB\u804C\u65F6\u95F4")}},[e("DatePicker",{ref:"disableTime",staticStyle:{width:"100%"},attrs:{editable:!1,placeholder:t.$L("\u9009\u62E9\u79BB\u804C\u65F6\u95F4"),options:t.disableOptions,format:"yyyy/MM/dd HH:mm",type:"datetime"},model:{value:t.disableData.disable_time,callback:function(a){t.$set(t.disableData,"disable_time",a)},expression:"disableData.disable_time"}})],1),e("FormItem",{attrs:{label:t.$L("\u4EA4\u63A5\u4EBA")}},[e("UserInput",{attrs:{"disabled-choice":[t.disableData.userid],"multiple-max":1,"max-hidden-select":"",placeholder:t.$L("\u9009\u62E9\u4EA4\u63A5\u4EBA")},model:{value:t.disableData.transfer_userid,callback:function(a){t.$set(t.disableData,"transfer_userid",a)},expression:"disableData.transfer_userid"}}),e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L(`${t.disableData.nickname} \u8D1F\u8D23\u7684\u90E8\u95E8\u3001\u9879\u76EE\u3001\u4EFB\u52A1\u548C\u6587\u4EF6\u5C06\u79FB\u4EA4\u7ED9\u4EA4\u63A5\u4EBA\uFF1B\u540C\u65F6\u9000\u51FA\u6240\u6709\u7FA4\uFF08\u5982\u679C\u662F\u7FA4\u4E3B\u5219\u8F6C\u8BA9\u7ED9\u4EA4\u63A5\u4EBA\uFF09`)))])],1)],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(a){t.disableShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Poptip",{staticStyle:{"margin-left":"8px"},attrs:{confirm:"",placement:"bottom","ok-text":t.$L("\u786E\u5B9A"),"cancel-text":t.$L("\u53D6\u6D88"),transfer:""},on:{"on-ok":function(a){return t.operationUser(t.disableData,!0)}}},[e("div",{attrs:{slot:"title"},slot:"title"},[e("p",[t._v(t._s(t.$L("\u6CE8\u610F\uFF1A\u79BB\u804C\u64CD\u4F5C\u4E0D\u53EF\u9006\uFF01")))])]),e("Button",{attrs:{type:"primary",loading:t.disableLoading>0}},[t._v(t._s(t.$L("\u786E\u5B9A\u79BB\u804C")))])],1)],1)],1)],1)},p=[];const m={name:"TeamManagement",components:{UserInput:l},props:{checkinMac:{type:Boolean,default:!1}},data(){return{loadIng:0,keys:{},keyIs:!1,columns:[{title:"ID",key:"userid",width:80,render:(t,{row:s,column:e})=>t("TableAction",{props:{column:e,align:"left"}},[t("div",s.userid)])},{title:this.$L("\u90AE\u7BB1"),key:"email",minWidth:160,render:(t,{row:s})=>{const e=[t("AutoTip",s.email)],{email_verity:a,identity:i,disable_at:n}=s;return a&&e.push(t("Icon",{props:{type:"md-mail"}})),i.includes("ldap")&&e.push(t("Tag",{props:{color:"orange"}},this.$L("LDAP"))),i.includes("admin")&&e.push(t("Tag",{props:{color:"warning"}},this.$L("\u7BA1\u7406\u5458"))),i.includes("temp")&&e.push(t("Tag",{props:{color:"success"}},this.$L("\u4E34\u65F6"))),i.includes("disable")&&e.push(t("Tooltip",{props:{content:this.$L("\u79BB\u804C\u65F6\u95F4")+": "+n}},[t("Tag",{props:{color:"error"}},this.$L("\u79BB\u804C"))])),t("div",{class:"team-email"},e)}},{title:this.$L("\u7535\u8BDD"),key:"tel",minWidth:80,render:(t,{row:s})=>t("QuickEdit",{props:{value:s.tel},on:{"on-update":(e,a)=>{this.operationUser({userid:s.userid,tel:e},!0).finally(a)}}},[t("AutoTip",s.tel||"-")])},{title:this.$L("\u6635\u79F0"),key:"nickname",minWidth:80,render:(t,{row:s})=>t("QuickEdit",{props:{value:s.nickname_original},on:{"on-update":(e,a)=>{this.operationUser({userid:s.userid,nickname:e},!0).finally(a)}}},[t("AutoTip",s.nickname_original||"-")])},{title:this.$L("\u804C\u4F4D/\u804C\u79F0"),key:"profession",minWidth:80,render:(t,{row:s})=>t("QuickEdit",{props:{value:s.profession},on:{"on-update":(e,a)=>{this.operationUser({userid:s.userid,profession:e},!0).finally(a)}}},[t("AutoTip",s.profession||"-")])},{title:this.$L("\u90E8\u95E8"),key:"department",minWidth:80,render:(t,{row:s})=>{let e=[];if(s.department.some(a=>{const i=this.departmentList.find(n=>n.id==a);i&&e.push(i.name)}),e.length===0)return t("div",this.$L("\u9ED8\u8BA4\u90E8\u95E8"));{const a=[];return a.push(t("span",{domProps:{title:e[0]}},e[0])),e.length>1&&(e=e.splice(1),a.push(t("ETooltip",[t("div",{slot:"content",domProps:{innerHTML:e.join("
")}}),t("div",{class:"department-tag-num"},` +${e.length}`)]))),t("div",{class:"team-table-department-warp"},a)}}},{title:this.$L("\u6700\u540E\u5728\u7EBF"),key:"line_at",width:168},{title:this.$L("\u64CD\u4F5C"),align:"center",width:100,render:(t,s)=>{const e=s.row.identity,a=[];e.includes("admin")?a.push(t("EDropdownItem",{props:{command:"clearadmin"}},[t("div",this.$L("\u53D6\u6D88\u7BA1\u7406\u5458"))])):a.push(t("EDropdownItem",{props:{command:"setadmin"}},[t("div",this.$L("\u8BBE\u4E3A\u7BA1\u7406\u5458"))])),e.includes("temp")?a.push(t("EDropdownItem",{props:{command:"cleartemp"}},[t("div",this.$L("\u53D6\u6D88\u4E34\u65F6\u8EAB\u4EFD"))])):a.push(t("EDropdownItem",{props:{command:"settemp"}},[t("div",this.$L("\u8BBE\u4E3A\u4E34\u65F6\u5E10\u53F7"))])),a.push(t("EDropdownItem",{props:{command:"email"}},[t("div",this.$L("\u4FEE\u6539\u90AE\u7BB1"))])),a.push(t("EDropdownItem",{props:{command:"password"}},[t("div",this.$L("\u4FEE\u6539\u5BC6\u7801"))])),this.checkinMac&&a.push(t("EDropdownItem",{props:{command:"checkin_mac"}},[t("div",this.$L("\u4FEE\u6539MAC"))])),a.push(t("EDropdownItem",{props:{command:"department"}},[t("div",this.$L("\u4FEE\u6539\u90E8\u95E8"))])),e.includes("disable")?a.push(t("EDropdownItem",{props:{command:"cleardisable"},style:{color:"#f90"}},[t("div",this.$L("\u6062\u590D\u5E10\u53F7\uFF08\u5DF2\u79BB\u804C\uFF09"))])):a.push(t("EDropdownItem",{props:{command:"setdisable"},style:{color:"#f90"}},[t("div",this.$L("\u64CD\u4F5C\u79BB\u804C"))])),a.push(t("EDropdownItem",{props:{command:"delete"},style:{color:"red"}},[t("div",this.$L("\u5220\u9664"))]));const i=t("EDropdown",{props:{size:"small",trigger:"click"},on:{command:n=>{this.dropUser(n,s.row)}}},[t("Button",{props:{type:"primary",size:"small"},style:{fontSize:"12px"}},this.$L("\u64CD\u4F5C")),t("EDropdownMenu",{slot:"dropdown"},[a])]);return t("TableAction",{props:{column:s.column}},[i])}}],list:[],page:1,pageSize:20,total:0,noText:"",checkinMacEditShow:!1,checkinMacEditLoading:0,checkinMacEditData:{},departmentEditShow:!1,departmentEditLoading:0,departmentEditData:{},disableShow:!1,disableLoading:0,disableData:{},disableOptions:{shortcuts:[{text:this.$L("12:00"),value(){return $A.Date($A.formatDate("Y-m-d 12:00:00"))},onClick:t=>{t.handlePickSuccess()}},{text:this.$L("17:00"),value(){return $A.Date($A.formatDate("Y-m-d 17:00:00"))},onClick:t=>{t.handlePickSuccess()}},{text:this.$L("18:00"),value(){return $A.Date($A.formatDate("Y-m-d 18:00:00"))},onClick:t=>{t.handlePickSuccess()}},{text:this.$L("19:00"),value(){return $A.Date($A.formatDate("Y-m-d 19:00:00"))},onClick:t=>{t.handlePickSuccess()}},{text:this.$L("\u73B0\u5728"),value(){return new Date},onClick:t=>{t.handlePickSuccess()}}]},departmentShow:!1,departmentLoading:0,departmentSelect:-1,departmentData:{id:0,name:"",parent_id:0,owner_userid:[],dialog_group:"new",dialog_useid:0},departmentList:[],dialogLoad:!1,dialogList:[],nullCheckinDatum:{mac:"",remark:""}}},created(){this.checkinMac&&this.columns.splice(5,0,{title:this.$L("MAC\u5730\u5740"),key:"checkin_mac",minWidth:80,render:(t,{row:s})=>{let e=$A.cloneJSON(s.checkin_macs||[]);if(e.length===0)return t("div","-");{const a=n=>n.remark?`${n.mac} (${n.remark})`:n.mac,i=[];return i.push(t("AutoTip",a(e[0]))),e.length>1&&(e=e.splice(1),i.push(t("ETooltip",[t("div",{slot:"content",domProps:{innerHTML:e.map(n=>a(n)).join("
")}}),t("div",{class:"department-tag-num"},` +${e.length}`)]))),t("div",{class:"team-table-department-warp"},i)}}})},mounted(){this.getLists(),this.getDepartmentLists()},watch:{keyIs(t){t||(this.keys={},this.setPage(1))},departmentSelect(){this.setPage(1)}},computed:{departmentParentDisabled(){return!!(this.departmentData.id>0&&this.departmentList.find(({parent_id:t})=>t==this.departmentData.id))}},methods:{onSearch(){this.page=1,this.getLists()},getLists(){this.loadIng++,this.keyIs=$A.objImplode(this.keys)!="";let t=$A.cloneJSON(this.keys);this.departmentSelect>-1&&(t=Object.assign(t,{department:this.departmentSelect})),this.$store.dispatch("call",{url:"users/lists",data:{keys:t,get_checkin_mac:this.checkinMac?1:0,page:Math.max(this.page,1),pagesize:Math.max($A.runNum(this.pageSize),10)}}).then(({data:s})=>{this.page=s.current_page,this.total=s.total,this.list=s.data,this.noText="\u6CA1\u6709\u76F8\u5173\u7684\u6210\u5458"}).catch(()=>{this.noText="\u6570\u636E\u52A0\u8F7D\u5931\u8D25"}).finally(s=>{this.loadIng--})},setPage(t){this.page=t,this.getLists()},setPageSize(t){this.page=1,this.pageSize=t,this.getLists()},dropUser(t,s){switch(t){case"settemp":$A.modalConfirm({content:`\u4F60\u786E\u5B9A\u5C06\u3010ID:${s.userid}\uFF0C${s.nickname}\u3011\u8BBE\u4E3A\u4E34\u65F6\u5E10\u53F7\u5417\uFF1F\uFF08\u6CE8\uFF1A\u4E34\u65F6\u5E10\u53F7\u9650\u5236\u8BF7\u67E5\u770B\u7CFB\u7EDF\u8BBE\u7F6E\uFF09`,loading:!0,onOk:()=>this.operationUser({userid:s.userid,type:t})});break;case"cleartemp":$A.modalConfirm({content:`\u4F60\u786E\u5B9A\u53D6\u6D88\u3010ID:${s.userid}\uFF0C${s.nickname}\u3011\u4E34\u65F6\u8EAB\u4EFD\u5417\uFF1F`,loading:!0,onOk:()=>this.operationUser({userid:s.userid,type:t})});break;case"email":$A.modalInput({title:"\u4FEE\u6539\u90AE\u7BB1",placeholder:`\u8BF7\u8F93\u5165\u65B0\u7684\u90AE\u7BB1\uFF08${s.email}\uFF09`,onOk:a=>a?this.operationUser({userid:s.userid,email:a}):"\u8BF7\u8F93\u5165\u65B0\u7684\u90AE\u7BB1\u5730\u5740"});break;case"password":$A.modalInput({title:"\u4FEE\u6539\u5BC6\u7801",placeholder:"\u8BF7\u8F93\u5165\u65B0\u7684\u5BC6\u7801",onOk:a=>a?this.operationUser({userid:s.userid,password:a}):"\u8BF7\u8F93\u5165\u65B0\u7684\u5BC6\u7801"});break;case"checkin_mac":this.checkinMacEditData={type:"checkin_macs",userid:s.userid,nickname:s.nickname,checkin_macs:s.checkin_macs},this.checkinMacEditData.checkin_macs.length===0&&this.addCheckinDatum(),this.checkinMacEditShow=!0;break;case"department":let e=[];s.department.some(a=>{const i=this.departmentList.find(n=>n.id==a);i&&e.push(i.owner_userid===s.userid?`${i.name} (${this.$L("\u8D1F\u8D23\u4EBA")})`:i.name)}),this.departmentEditData={type:"department",userid:s.userid,nickname:s.nickname,department:s.department.map(a=>parseInt(a))},this.departmentEditShow=!0;break;case"setdisable":this.disableData={type:"setdisable",userid:s.userid,nickname:s.nickname},this.disableShow=!0;break;case"cleardisable":$A.modalConfirm({content:`\u4F60\u786E\u5B9A\u6062\u590D\u5DF2\u79BB\u804C\u5E10\u53F7\u3010ID:${s.userid}\uFF0C${s.nickname}\u3011\u5417\uFF1F\uFF08\u6CE8\uFF1A\u6B64\u64CD\u4F5C\u4EC5\u6062\u590D\u5E10\u53F7\u72B6\u6001\uFF0C\u65E0\u6CD5\u6062\u590D\u64CD\u4F5C\u79BB\u804C\u65F6\u79FB\u4EA4\u7684\u6570\u636E\uFF09`,loading:!0,onOk:()=>this.operationUser({userid:s.userid,type:t})});break;case"delete":$A.modalInput({title:`\u5220\u9664\u5E10\u53F7\u3010ID:${s.userid}\uFF0C${s.nickname}\u3011`,placeholder:"\u8BF7\u8F93\u5165\u5220\u9664\u539F\u56E0",okText:"\u786E\u5B9A\u5220\u9664",onOk:a=>a?this.operationUser({userid:s.userid,type:t,delete_reason:a}):"\u5220\u9664\u539F\u56E0\u4E0D\u80FD\u4E3A\u7A7A"});break;default:this.operationUser({userid:s.userid,type:t},!0);break}},operationUser(t,s){return new Promise((e,a)=>{t.type=="checkin_macs"?this.checkinMacEditLoading++:t.type=="department"?this.departmentEditLoading++:t.type=="setdisable"?this.disableLoading++:this.loadIng++,this.$store.dispatch("call",{url:"users/operation",data:t}).then(({msg:i})=>{$A.messageSuccess(i),this.getLists(),e(),t.type=="checkin_macs"?this.checkinMacEditShow=!1:t.type=="department"?this.departmentEditShow=!1:t.type=="setdisable"&&(this.disableShow=!1)}).catch(({msg:i})=>{s===!0&&$A.modalError(i),this.getLists(),a(i)}).finally(i=>{t.type=="checkin_macs"?this.checkinMacEditLoading--:t.type=="department"?this.departmentEditLoading--:t.type=="setdisable"?this.disableLoading--:this.loadIng--})})},getDepartmentLists(){this.departmentLoading++,this.$store.dispatch("call",{url:"users/department/list"}).then(({data:t})=>{this.departmentList=[],this.generateDepartmentList(t,0,1)}).finally(t=>{this.departmentLoading--})},generateDepartmentList(t,s,e){t.some(a=>{a.parent_id==s&&(this.departmentList.push(Object.assign(a,{level:e+1})),this.generateDepartmentList(t,a.id,e+1))})},onShowDepartment(t){this.departmentData=Object.assign({id:0,name:"",parent_id:0,owner_userid:[],dialog_group:"new"},t||{}),this.departmentShow=!0},onSaveDepartment(){this.departmentLoading++,this.$store.dispatch("call",{url:"users/department/add",data:Object.assign(this.departmentData,{owner_userid:this.departmentData.owner_userid[0]})}).then(({msg:t})=>{$A.messageSuccess(t),this.getDepartmentLists(),this.getLists(),this.departmentShow=!1}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.departmentLoading--})},onSelectDepartment(t){if(this.departmentSelect===t){this.departmentSelect=-1;return}this.departmentSelect=t},onOpDepartment(t){if($A.leftExists(t,"add_"))this.onShowDepartment({parent_id:parseInt(t.substr(4))});else if($A.leftExists(t,"edit_")){const s=this.departmentList.find(({id:e})=>e===parseInt(t.substr(5)));s&&this.onShowDepartment(s)}else if($A.leftExists(t,"del_")){const s=this.departmentList.find(({id:e})=>e===parseInt(t.substr(4)));s&&$A.modalConfirm({title:this.$L("\u5220\u9664\u90E8\u95E8"),content:`
${this.$L(`\u4F60\u786E\u5B9A\u8981\u5220\u9664\u3010${s.name}\u3011\u90E8\u95E8\u5417\uFF1F`)}
${this.$L("\u6CE8\u610F\uFF1A\u6B64\u64CD\u4F5C\u4E0D\u53EF\u6062\u590D\uFF0C\u90E8\u95E8\u4E0B\u7684\u6210\u5458\u5C06\u79FB\u81F3\u9ED8\u8BA4\u90E8\u95E8\u3002")}
`,language:!1,loading:!0,onOk:()=>new Promise((e,a)=>{this.$store.dispatch("call",{url:"users/department/del",data:{id:s.id}}).then(({msg:i})=>{s.id===this.departmentSelect&&(this.departmentSelect=-1),e(i),this.getDepartmentLists()}).catch(({msg:i})=>{a(i)})})})}},dialogRemote(t){t!==""?(this.dialogLoad=!0,this.$store.dispatch("call",{url:"dialog/group/searchuser",data:{key:t}}).then(({data:s})=>{this.dialogList=s.list}).finally(s=>{this.dialogLoad=!1})):this.dialogList=[]},addCheckinDatum(){this.checkinMacEditData.checkin_macs.push($A.cloneJSON(this.nullCheckinDatum))},delCheckinDatum(t){this.checkinMacEditData.checkin_macs.splice(t,1),this.checkinMacEditData.checkin_macs.length===0&&this.addCheckinDatum()}}},r={};var u=d(m,c,p,!1,h,null,null,null);function h(t){for(let s in r)this[s]=r[s]}var D=function(){return u.exports}(),_=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("Modal",{attrs:{title:t.$L("\u5BFC\u51FA\u7B7E\u5230\u6570\u636E"),"mask-closable":!1},model:{value:t.show,callback:function(a){t.show=a},expression:"show"}},[e("Form",{ref:"export",attrs:{model:t.formData,"label-width":"auto"},nativeOn:{submit:function(a){a.preventDefault()}}},[e("FormItem",{attrs:{label:t.$L("\u5BFC\u51FA\u6210\u5458")}},[e("UserInput",{attrs:{"multiple-max":100,placeholder:t.$L("\u8BF7\u9009\u62E9\u6210\u5458")},model:{value:t.formData.userid,callback:function(a){t.$set(t.formData,"userid",a)},expression:"formData.userid"}}),e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u6BCF\u6B21\u6700\u591A\u9009\u62E9\u5BFC\u51FA100\u4E2A\u6210\u5458")))])],1),e("FormItem",{attrs:{label:t.$L("\u7B7E\u5230\u65E5\u671F")}},[e("DatePicker",{staticStyle:{width:"100%"},attrs:{type:"daterange",format:"yyyy/MM/dd",placeholder:t.$L("\u8BF7\u9009\u62E9\u7B7E\u5230\u65E5\u671F")},model:{value:t.formData.date,callback:function(a){t.$set(t.formData,"date",a)},expression:"formData.date"}}),e("div",{staticClass:"form-tip checkin-export-quick-select"},[e("span",[t._v(t._s(t.$L("\u5FEB\u6377\u9009\u62E9"))+":")]),e("em",{on:{click:function(a){t.formData.date=t.dateShortcuts("prev")}}},[t._v(t._s(t.$L("\u4E0A\u4E2A\u6708")))]),e("em",{on:{click:function(a){t.formData.date=t.dateShortcuts("this")}}},[t._v(t._s(t.$L("\u8FD9\u4E2A\u6708")))])])],1),e("FormItem",{attrs:{label:t.$L("\u73ED\u6B21\u65F6\u95F4")}},[e("TimePicker",{staticStyle:{width:"100%"},attrs:{type:"timerange",format:"HH:mm",placeholder:t.$L("\u8BF7\u9009\u62E9\u73ED\u6B21\u65F6\u95F4")},model:{value:t.formData.time,callback:function(a){t.$set(t.formData,"time",a)},expression:"formData.time"}}),e("div",{staticClass:"form-tip checkin-export-quick-select"},[e("span",[t._v(t._s(t.$L("\u5FEB\u6377\u9009\u62E9"))+":")]),e("em",{on:{click:function(a){t.formData.time=["8:30","18:00"]}}},[t._v("8:30-18:00")]),e("em",{on:{click:function(a){t.formData.time=["9:00","18:00"]}}},[t._v("9:00-18:00")]),e("em",{on:{click:function(a){t.formData.time=["9:30","18:00"]}}},[t._v("9:30-18:30")])])],1)],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(a){t.show=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.loadIng>0},on:{click:t.onExport}},[t._v(t._s(t.$L("\u5BFC\u51FA")))])],1)],1)},f=[];const v={name:"CheckinExport",components:{UserInput:l},props:{value:{type:Boolean,default:!1}},data(){return{show:this.value,loadIng:0,formData:{userid:[],date:[],time:[]}}},watch:{value(t){this.show=t},show(t){this.value!==t&&this.$emit("input",t)}},methods:{dateShortcuts(t){if(t==="prev")return[$A.getSpecifyDate("\u4E0A\u4E2A\u6708"),$A.getSpecifyDate("\u4E0A\u4E2A\u6708\u7ED3\u675F")];if(t==="this")return[$A.getSpecifyDate("\u672C\u6708"),$A.getSpecifyDate("\u672C\u6708\u7ED3\u675F")]},onExport(){this.loadIng>0||(this.loadIng++,this.$store.dispatch("call",{url:"system/checkin/export",data:this.formData}).then(({data:t})=>{this.show=!1,this.$store.dispatch("downUrl",{url:t.url})}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.loadIng--}))}}},o={};var $=d(v,_,f,!1,k,null,null,null);function k(t){for(let s in o)this[s]=o[s]}var b=function(){return $.exports}();export{b as C,D as T}; diff --git a/public/js/build/DialogSelect.9924132a.js b/public/js/build/DialogSelect.5d8dded5.js similarity index 96% rename from public/js/build/DialogSelect.9924132a.js rename to public/js/build/DialogSelect.5d8dded5.js index 602248953..3f91b60bd 100644 --- a/public/js/build/DialogSelect.9924132a.js +++ b/public/js/build/DialogSelect.5d8dded5.js @@ -1 +1 @@ -import{U as i}from"./UserInput.1d67c0fc.js";import{m as c,n as u}from"./app.90cb6e79.js";const l="ontouchend"in document,h={bind:function(t,s){let a=500,e=s.value;if($A.isJson(s.value)&&(a=s.value.delay||500,e=s.value.callback),typeof e!="function")throw"callback must be a function";if(!l){t.__longpressContextmenu__=r=>{r.preventDefault(),r.stopPropagation(),e(r,t)},t.addEventListener("contextmenu",t.__longpressContextmenu__);return}let n=null,o=!1;t.__longpressStart__=r=>{r.type==="click"&&r.button!==0||(o=!1,n===null&&(n=setTimeout(()=>{o=!0,e(r.touches[0],t)},a)))},t.__longpressCancel__=r=>{n!==null&&(clearTimeout(n),n=null)},t.__longpressClick__=r=>{o&&(r.preventDefault(),r.stopPropagation()),t.__longpressCancel__(r)},t.addEventListener("touchstart",t.__longpressStart__),t.addEventListener("click",t.__longpressClick__),t.addEventListener("touchmove",t.__longpressCancel__),t.addEventListener("touchend",t.__longpressCancel__),t.addEventListener("touchcancel",t.__longpressCancel__)},unbind(t){if(!l){t.removeEventListener("contextmenu",t.__longpressContextmenu__),delete t.__longpressContextmenu__;return}t.removeEventListener("touchstart",t.__longpressStart__),t.removeEventListener("click",t.__longpressClick__),t.removeEventListener("touchmove",t.__longpressCancel__),t.removeEventListener("touchend",t.__longpressCancel__),t.removeEventListener("touchcancel",t.__longpressCancel__),delete t.__longpressStart__,delete t.__longpressClick__,delete t.__longpressCancel__}};var p=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("Form",{ref:"forwardForm",attrs:{model:t.value,"label-width":"auto"},nativeOn:{submit:function(e){e.preventDefault()}}},[a("FormItem",{attrs:{prop:"dialogids",label:t.$L("\u6700\u8FD1\u804A\u5929")}},[a("Select",{staticClass:"dialog-wrapper-dialogids",attrs:{placeholder:t.$L("\u9009\u62E9\u8F6C\u53D1\u6700\u8FD1\u804A\u5929"),"multiple-max":20,multiple:"",filterable:"","transfer-class-name":"dialog-wrapper-forward"},model:{value:t.value.dialogids,callback:function(e){t.$set(t.value,"dialogids",e)},expression:"value.dialogids"}},[a("div",{staticClass:"forward-drop-prepend",attrs:{slot:"drop-prepend"},slot:"drop-prepend"},[t._v(t._s(t.$L("\u6700\u591A\u53EA\u80FD\u9009\u62E920\u4E2A")))]),t._l(t.dialogList,function(e,n){return a("Option",{key:n,attrs:{value:e.id,"key-value":e.name,label:e.name}},[a("div",{staticClass:"forward-option"},[a("div",{staticClass:"forward-avatar"},[e.type=="group"?[e.group_type=="department"?a("i",{staticClass:"taskfont icon-avatar department"},[t._v("\uE75C")]):e.group_type=="project"?a("i",{staticClass:"taskfont icon-avatar project"},[t._v("\uE6F9")]):e.group_type=="task"?a("i",{staticClass:"taskfont icon-avatar task"},[t._v("\uE6F4")]):a("Icon",{staticClass:"icon-avatar",attrs:{type:"ios-people"}})]:e.dialog_user?a("div",{staticClass:"user-avatar"},[a("UserAvatar",{attrs:{userid:e.dialog_user.userid,size:26}})],1):a("Icon",{staticClass:"icon-avatar",attrs:{type:"md-person"}})],2),a("div",{staticClass:"forward-name"},[t._v(t._s(e.name))])])])})],2)],1),a("FormItem",{attrs:{prop:"userids",label:t.$L("\u6307\u5B9A\u6210\u5458")}},[a("UserInput",{attrs:{"multiple-max":20,placeholder:`(${t.$L("\u6216")}) ${t.$L("\u9009\u62E9\u8F6C\u53D1\u6307\u5B9A\u6210\u5458")}`},model:{value:t.value.userids,callback:function(e){t.$set(t.value,"userids",e)},expression:"value.userids"}})],1)],1)},d=[];const v={name:"DialogSelect",components:{UserInput:i},props:{value:{type:Object,default:()=>({})}},computed:{...c(["cacheDialogs"]),dialogList(){return this.cacheDialogs.filter(t=>!(t.name===void 0||t.dialog_delete===1)).sort((t,s)=>t.top_at||s.top_at?$A.Date(s.top_at)-$A.Date(t.top_at):t.todo_num>0||s.todo_num>0?s.todo_num-t.todo_num:$A.Date(s.last_at)-$A.Date(t.last_at))}}},_={};var m=u(v,p,d,!1,f,null,null,null);function f(t){for(let s in _)this[s]=_[s]}var L=function(){return m.exports}();export{L as D,h as l}; +import{U as i}from"./UserInput.2bc16b15.js";import{m as c,n as u}from"./app.feefc813.js";const l="ontouchend"in document,h={bind:function(t,s){let a=500,e=s.value;if($A.isJson(s.value)&&(a=s.value.delay||500,e=s.value.callback),typeof e!="function")throw"callback must be a function";if(!l){t.__longpressContextmenu__=r=>{r.preventDefault(),r.stopPropagation(),e(r,t)},t.addEventListener("contextmenu",t.__longpressContextmenu__);return}let n=null,o=!1;t.__longpressStart__=r=>{r.type==="click"&&r.button!==0||(o=!1,n===null&&(n=setTimeout(()=>{o=!0,e(r.touches[0],t)},a)))},t.__longpressCancel__=r=>{n!==null&&(clearTimeout(n),n=null)},t.__longpressClick__=r=>{o&&(r.preventDefault(),r.stopPropagation()),t.__longpressCancel__(r)},t.addEventListener("touchstart",t.__longpressStart__),t.addEventListener("click",t.__longpressClick__),t.addEventListener("touchmove",t.__longpressCancel__),t.addEventListener("touchend",t.__longpressCancel__),t.addEventListener("touchcancel",t.__longpressCancel__)},unbind(t){if(!l){t.removeEventListener("contextmenu",t.__longpressContextmenu__),delete t.__longpressContextmenu__;return}t.removeEventListener("touchstart",t.__longpressStart__),t.removeEventListener("click",t.__longpressClick__),t.removeEventListener("touchmove",t.__longpressCancel__),t.removeEventListener("touchend",t.__longpressCancel__),t.removeEventListener("touchcancel",t.__longpressCancel__),delete t.__longpressStart__,delete t.__longpressClick__,delete t.__longpressCancel__}};var p=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("Form",{ref:"forwardForm",attrs:{model:t.value,"label-width":"auto"},nativeOn:{submit:function(e){e.preventDefault()}}},[a("FormItem",{attrs:{prop:"dialogids",label:t.$L("\u6700\u8FD1\u804A\u5929")}},[a("Select",{staticClass:"dialog-wrapper-dialogids",attrs:{placeholder:t.$L("\u9009\u62E9\u8F6C\u53D1\u6700\u8FD1\u804A\u5929"),"multiple-max":20,multiple:"",filterable:"","transfer-class-name":"dialog-wrapper-forward"},model:{value:t.value.dialogids,callback:function(e){t.$set(t.value,"dialogids",e)},expression:"value.dialogids"}},[a("div",{staticClass:"forward-drop-prepend",attrs:{slot:"drop-prepend"},slot:"drop-prepend"},[t._v(t._s(t.$L("\u6700\u591A\u53EA\u80FD\u9009\u62E920\u4E2A")))]),t._l(t.dialogList,function(e,n){return a("Option",{key:n,attrs:{value:e.id,"key-value":e.name,label:e.name}},[a("div",{staticClass:"forward-option"},[a("div",{staticClass:"forward-avatar"},[e.type=="group"?[e.group_type=="department"?a("i",{staticClass:"taskfont icon-avatar department"},[t._v("\uE75C")]):e.group_type=="project"?a("i",{staticClass:"taskfont icon-avatar project"},[t._v("\uE6F9")]):e.group_type=="task"?a("i",{staticClass:"taskfont icon-avatar task"},[t._v("\uE6F4")]):a("Icon",{staticClass:"icon-avatar",attrs:{type:"ios-people"}})]:e.dialog_user?a("div",{staticClass:"user-avatar"},[a("UserAvatar",{attrs:{userid:e.dialog_user.userid,size:26}})],1):a("Icon",{staticClass:"icon-avatar",attrs:{type:"md-person"}})],2),a("div",{staticClass:"forward-name"},[t._v(t._s(e.name))])])])})],2)],1),a("FormItem",{attrs:{prop:"userids",label:t.$L("\u6307\u5B9A\u6210\u5458")}},[a("UserInput",{attrs:{"multiple-max":20,placeholder:`(${t.$L("\u6216")}) ${t.$L("\u9009\u62E9\u8F6C\u53D1\u6307\u5B9A\u6210\u5458")}`},model:{value:t.value.userids,callback:function(e){t.$set(t.value,"userids",e)},expression:"value.userids"}})],1)],1)},d=[];const v={name:"DialogSelect",components:{UserInput:i},props:{value:{type:Object,default:()=>({})}},computed:{...c(["cacheDialogs"]),dialogList(){return this.cacheDialogs.filter(t=>!(t.name===void 0||t.dialog_delete===1)).sort((t,s)=>t.top_at||s.top_at?$A.Date(s.top_at)-$A.Date(t.top_at):t.todo_num>0||s.todo_num>0?s.todo_num-t.todo_num:$A.Date(s.last_at)-$A.Date(t.last_at))}}},_={};var m=u(v,p,d,!1,f,null,null,null);function f(t){for(let s in _)this[s]=_[s]}var L=function(){return m.exports}();export{L as D,h as l}; diff --git a/public/js/build/DialogWrapper.0674ddc3.js b/public/js/build/DialogWrapper.0c8b0be3.js similarity index 79% rename from public/js/build/DialogWrapper.0674ddc3.js rename to public/js/build/DialogWrapper.0c8b0be3.js index a33965e48..32198bf43 100644 --- a/public/js/build/DialogWrapper.0674ddc3.js +++ b/public/js/build/DialogWrapper.0c8b0be3.js @@ -1,4 +1,4 @@ -import{n as pt,d as yt,m as _t,c as Ft,e as Ut,g as Zt,f as Xt,r as Jt}from"./app.90cb6e79.js";import{l as zt,D as te}from"./DialogSelect.9924132a.js";import{U as Ht}from"./UserInput.1d67c0fc.js";import{D as ee}from"./index.b6ff1b3f.js";var ie=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"common-circle",style:t.style,attrs:{"data-id":t.percent}},[e("svg",{attrs:{viewBox:"0 0 28 28"}},[e("g",{attrs:{fill:"none","fill-rule":"evenodd"}},[e("path",{staticClass:"common-circle-path",attrs:{d:"M-500-100h997V48h-997z"}}),e("g",{attrs:{"fill-rule":"nonzero"}},[e("path",{staticClass:"common-circle-g-path-ring",attrs:{"stroke-width":"3",d:"M14 25.5c6.351 0 11.5-5.149 11.5-11.5S20.351 2.5 14 2.5 2.5 7.649 2.5 14 7.649 25.5 14 25.5z"}}),e("path",{staticClass:"common-circle-g-path-core",attrs:{d:t.arc(t.args)}})])])])])},ne=[];const re={name:"WCircle",props:{percent:{type:Number,default:0},size:{type:Number,default:120}},computed:{style(){let{size:t}=this;return this.isNumeric(t)&&(t+="px"),{width:t,height:t}},args(){const{percent:t}=this;let s=Math.min(360,360/100*t);return s==360?s=0:s==0&&(s=360),{x:14,y:14,r:14,start:360,end:s}}},methods:{isNumeric(t){return t!==""&&!isNaN(parseFloat(t))&&isFinite(t)},point(t,s,e,i){return[(t+Math.sin(i)*e).toFixed(2),(s-Math.cos(i)*e).toFixed(2)]},full(t,s,e,i){return i<=0?`M ${t-e} ${s} A ${e} ${e} 0 1 1 ${t+e} ${s} A ${e} ${e} 1 1 1 ${t-e} ${s} Z`:`M ${t-e} ${s} A ${e} ${e} 0 1 1 ${t+e} ${s} A ${e} ${e} 1 1 1 ${t-e} ${s} M ${t-i} ${s} A ${i} ${i} 0 1 1 ${t+i} ${s} A ${i} ${i} 1 1 1 ${t-i} ${s} Z`},part(t,s,e,i,a,O){const[S,w]=[a/360*2*Math.PI,O/360*2*Math.PI],b=[this.point(t,s,i,S),this.point(t,s,e,S),this.point(t,s,e,w),this.point(t,s,i,w)],_=w-S>Math.PI?"1":"0";return`M ${b[0][0]} ${b[0][1]} L ${b[1][0]} ${b[1][1]} A ${e} ${e} 0 ${_} 1 ${b[2][0]} ${b[2][1]} L ${b[3][0]} ${b[3][1]} A ${i} ${i} 0 ${_} 0 ${b[0][0]} ${b[0][1]} Z`},arc(t){const{x:s=0,y:e=0}=t;let{R:i=0,r:a=0,start:O,end:S}=t;return[i,a]=[Math.max(i,a),Math.min(i,a)],i<=0?"":O!==+O||S!==+S?this.full(s,e,i,a):Math.abs(O-S)<1e-6?"":Math.abs(O-S)%360<1e-6?this.full(s,e,i,a):([O,S]=[O%360,S%360],O>S&&(S+=360),this.part(s,e,i,a,O,S))}}},At={};var oe=pt(re,ie,ne,!1,ae,null,null,null);function ae(t){for(let s in At)this[s]=At[s]}var se=function(){return oe.exports}(),le=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"dialog-view",class:t.viewClass,attrs:{"data-id":t.msgData.id}},[t.dialogType==="group"?e("div",{staticClass:"dialog-username"},[e("UserAvatar",{attrs:{userid:t.msgData.userid,"show-icon":!1,"show-name":!0,"click-open-dialog":""}})],1):t._e(),e("div",{directives:[{name:"longpress",rawName:"v-longpress",value:{callback:t.handleLongpress,delay:300},expression:"{callback: handleLongpress, delay: 300}"}],staticClass:"dialog-head",class:t.headClass},[!t.hideReply&&t.msgData.reply_data?e("div",{staticClass:"dialog-reply no-dark-content",on:{click:t.viewReply}},[e("UserAvatar",{attrs:{userid:t.msgData.reply_data.userid,"show-icon":!1,"show-name":!0,"tooltip-disabled":!0}}),e("div",{staticClass:"reply-desc"},[t._v(t._s(t.$A.getMsgSimpleDesc(t.msgData.reply_data)))])],1):t._e(),e("div",{staticClass:"dialog-content",class:t.contentClass},[t.msgData.type==="text"?e("div",{staticClass:"content-text no-dark-content"},[e("pre",{domProps:{innerHTML:t._s(t.$A.formatTextMsg(t.msgData.msg.text,t.userId))},on:{click:t.viewText}})]):t.msgData.type==="file"?e("div",{class:`content-file ${t.msgData.msg.type}`},[e("div",{staticClass:"dialog-file"},[t.msgData.msg.type==="img"?e("img",{staticClass:"file-img",style:t.imageStyle(t.msgData.msg),attrs:{src:t.msgData.msg.thumb},on:{click:t.viewFile}}):e("div",{staticClass:"file-box",on:{click:t.downFile}},[e("img",{staticClass:"file-thumb",attrs:{src:t.msgData.msg.thumb}}),e("div",{staticClass:"file-info"},[e("div",{staticClass:"file-name"},[t._v(t._s(t.msgData.msg.name))]),e("div",{staticClass:"file-size"},[t._v(t._s(t.$A.bytesToSize(t.msgData.msg.size)))])])])])]):t.msgData.type==="record"?e("div",{staticClass:"content-record no-dark-content"},[e("div",{staticClass:"dialog-record",class:{playing:t.audioPlaying===t.msgData.msg.path},style:t.recordStyle(t.msgData.msg),on:{click:t.playRecord}},[e("div",{staticClass:"record-time"},[t._v(t._s(t.recordDuration(t.msgData.msg.duration)))]),e("div",{staticClass:"record-icon taskfont"})])]):t.msgData.type==="meeting"?e("div",{staticClass:"content-meeting no-dark-content"},[e("ul",{staticClass:"dialog-meeting"},[e("li",[e("em",[t._v(t._s(t.$L("\u4F1A\u8BAE\u4E3B\u9898")))]),t._v(" "+t._s(t.msgData.msg.name)+" ")]),e("li",[e("em",[t._v(t._s(t.$L("\u4F1A\u8BAE\u521B\u5EFA\u4EBA")))]),e("UserAvatar",{attrs:{userid:t.msgData.msg.userid,"show-icon":!1,"show-name":!0,"tooltip-disabled":""}})],1),e("li",[e("em",[t._v(t._s(t.$L("\u9891\u9053ID")))]),t._v(" "+t._s(t.msgData.msg.meetingid.replace(/^(.{3})(.{3})(.*)$/,"$1 $2 $3"))+" ")]),e("li",{staticClass:"meeting-operation",on:{click:t.openMeeting}},[t._v(" "+t._s(t.$L("\u70B9\u51FB\u52A0\u5165\u4F1A\u8BAE"))+" "),e("i",{staticClass:"taskfont"},[t._v("\uE68B")])])])]):t.msgData.type==="loading"?e("div",{staticClass:"content-loading"},[t.msgData.error===!0?e("Icon",{attrs:{type:"ios-alert-outline"}}):e("Loading")],1):e("div",{staticClass:"content-unknown"},[t._v(t._s(t.$L("\u672A\u77E5\u7684\u6D88\u606F\u7C7B\u578B")))])]),t.$A.arrayLength(t.msgData.emoji)>0?e("ul",{staticClass:"dialog-emoji"},t._l(t.msgData.emoji,function(i,a){return e("li",{key:a,class:{hasme:i.userids.includes(t.userId)},on:{click:function(O){return t.onEmoji(i.symbol)}}},[e("div",{staticClass:"emoji-symbol no-dark-content"},[t._v(t._s(i.symbol))]),e("div",{staticClass:"emoji-users"},[e("ul",[t._l(i.userids,function(O,S){return[S0?e("div",{staticClass:"reply",on:{click:t.replyList}},[e("i",{staticClass:"taskfont"},[t._v("\uE6EB")]),t._v(" "+t._s(t.msgData.reply_num)+"\u6761\u56DE\u590D ")]):t._e(),t.msgData.tag?e("div",{staticClass:"tag"},[e("i",{staticClass:"taskfont"},[t._v("\uE61E")])]):t._e(),t.msgData.todo?e("div",{staticClass:"todo",on:{click:t.openTodo}},[e("EPopover",{ref:"todo",attrs:{"popper-class":"dialog-wrapper-read-poptip",placement:t.isRightMsg?"bottom-end":"bottom-start"},model:{value:t.todoShow,callback:function(i){t.todoShow=i},expression:"todoShow"}},[e("div",{staticClass:"read-poptip-content"},[e("ul",{staticClass:"read scrollbar-overlay"},[e("li",{staticClass:"read-title"},[e("em",[t._v(t._s(t.todoDoneList.length))]),t._v(t._s(t.$L("\u5B8C\u6210")))]),t._l(t.todoDoneList,function(i){return e("li",[e("UserAvatar",{attrs:{userid:i.userid,size:26,showName:"",tooltipDisabled:""}})],1)})],2),e("ul",{staticClass:"unread scrollbar-overlay"},[e("li",{staticClass:"read-title"},[e("em",[t._v(t._s(t.todoUndoneList.length))]),t._v(t._s(t.$L("\u5F85\u529E")))]),t._l(t.todoUndoneList,function(i){return e("li",[e("UserAvatar",{attrs:{userid:i.userid,size:26,showName:"",tooltipDisabled:""}})],1)})],2)]),e("div",{staticClass:"popover-reference",attrs:{slot:"reference"},slot:"reference"})]),t.todoLoad>0?e("Loading"):e("i",{staticClass:"taskfont"},[t._v("\uE7B7")])],1):t._e(),t.msgData.modify?e("div",{staticClass:"modify"},[e("i",{staticClass:"taskfont"},[t._v("\uE779")])]):t._e(),t.msgData.error===!0?e("div",{staticClass:"error",on:{click:t.onError}},[e("Icon",{attrs:{type:"ios-alert"}})],1):t.isLoading?e("Loading"):[t.timeShow?e("div",{staticClass:"time",on:{click:function(i){t.timeShow=!1}}},[t._v(t._s(t.msgData.created_at))]):e("div",{staticClass:"time",attrs:{title:t.msgData.created_at},on:{click:function(i){t.timeShow=!0}}},[t._v(t._s(t.$A.formatTime(t.msgData.created_at)))]),t.hidePercentage?t._e():[t.msgData.send>1||t.dialogType==="group"?e("div",{staticClass:"percent",on:{click:t.openReadPercentage}},[e("EPopover",{ref:"percent",attrs:{"popper-class":"dialog-wrapper-read-poptip",placement:t.isRightMsg?"bottom-end":"bottom-start"},model:{value:t.percentageShow,callback:function(i){t.percentageShow=i},expression:"percentageShow"}},[e("div",{staticClass:"read-poptip-content"},[e("ul",{staticClass:"read scrollbar-overlay"},[e("li",{staticClass:"read-title"},[e("em",[t._v(t._s(t.readList.length))]),t._v(t._s(t.$L("\u5DF2\u8BFB")))]),t._l(t.readList,function(i){return e("li",[e("UserAvatar",{attrs:{userid:i.userid,size:26,showName:"",tooltipDisabled:""}})],1)})],2),e("ul",{staticClass:"unread scrollbar-overlay"},[e("li",{staticClass:"read-title"},[e("em",[t._v(t._s(t.unreadList.length))]),t._v(t._s(t.$L("\u672A\u8BFB")))]),t._l(t.unreadList,function(i){return e("li",[e("UserAvatar",{attrs:{userid:i.userid,size:26,showName:"",tooltipDisabled:""}})],1)})],2)]),e("div",{staticClass:"popover-reference",attrs:{slot:"reference"},slot:"reference"})]),t.percentageLoad>0?e("Loading"):e("WCircle",{attrs:{percent:t.msgData.percentage,size:14}})],1):t.msgData.percentage===100?e("Icon",{staticClass:"done",attrs:{type:"md-done-all"}}):e("Icon",{staticClass:"done",attrs:{type:"md-checkmark"}})]]],2)])},ue=[];const ce={name:"DialogView",components:{WCircle:se},directives:{longpress:zt},props:{msgData:{type:Object,default:()=>({})},dialogType:{type:String,default:""},hidePercentage:{type:Boolean,default:!1},hideReply:{type:Boolean,default:!1},operateVisible:{type:Boolean,default:!1},operateAction:{type:Boolean,default:!1},isRightMsg:{type:Boolean,default:!1}},data(){return{timeShow:!1,operateEnter:!1,percentageLoad:0,percentageShow:!1,percentageList:[],todoLoad:0,todoShow:!1,todoList:[],emojiUsersNum:5}},mounted(){this.emojiUsersNum=Math.min(6,Math.max(2,Math.floor((this.windowWidth-180)/48)))},beforeDestroy(){yt.Store.set("audioSubscribe",this.msgData.id)},computed:{..._t(["loads","audioPlaying"]),...Ft(["isLoad"]),isLoading(){return this.msgData.created_at?this.isLoad(`msg-${this.msgData.id}`):!0},viewClass(){const{msgData:t,operateAction:s,operateEnter:e}=this,i=[];return t.type&&i.push(t.type),t.reply_data&&i.push("reply-view"),s&&(i.push("operate-action"),e&&i.push("operate-enter")),i},readList(){return this.percentageList.filter(({read_at:t})=>t)},unreadList(){return this.percentageList.filter(({read_at:t})=>!t)},todoDoneList(){return this.todoList.filter(({done_at:t})=>t)},todoUndoneList(){return this.todoList.filter(({done_at:t})=>!t)},headClass(){const{reply_id:t,type:s,msg:e,emoji:i}=this.msgData,a=[];return t===0&&$A.arrayLength(i)===0&&s==="text"&&(/^]*?>$/.test(e.text)||/^\s*

\s*([\uD800-\uDBFF][\uDC00-\uDFFF]){1,3}\s*<\/p>\s*$/.test(e.text))&&a.push("transparent"),a},contentClass(){const{type:t,msg:s}=this.msgData,e=[];return t==="text"&&(/^]*?>$/.test(s.text)?e.push("an-emoticon"):/^\s*

\s*([\uD800-\uDBFF][\uDC00-\uDFFF]){3}\s*<\/p>\s*$/.test(s.text)?e.push("three-emoji"):/^\s*

\s*([\uD800-\uDBFF][\uDC00-\uDFFF]){2}\s*<\/p>\s*$/.test(s.text)?e.push("two-emoji"):/^\s*

\s*[\uD800-\uDBFF][\uDC00-\uDFFF]\s*<\/p>\s*$/.test(s.text)&&e.push("an-emoji")),e}},watch:{operateAction(t){this.operateEnter=!1,t&&setTimeout(s=>this.operateEnter=!0,500)}},methods:{handleLongpress(t,s){this.$emit("on-longpress",{event:t,el:s,msgData:this.msgData})},openTodo(){if(!(this.todoLoad>0)){if(this.todoShow){this.todoShow=!1;return}this.todoLoad++,this.$store.dispatch("call",{url:"dialog/msg/todolist",data:{msg_id:this.msgData.id}}).then(({data:t})=>{this.todoList=t}).catch(()=>{this.todoList=[]}).finally(t=>{setTimeout(()=>{this.todoLoad--,this.todoShow=!0},100)})}},openReadPercentage(){if(!(this.percentageLoad>0)){if(this.percentageShow){this.percentageShow=!1;return}this.percentageLoad++,this.$store.dispatch("call",{url:"dialog/msg/readlist",data:{msg_id:this.msgData.id}}).then(({data:t})=>{this.percentageList=t}).catch(()=>{this.percentageList=[]}).finally(t=>{setTimeout(()=>{this.percentageLoad--,this.percentageShow=!0},100)})}},recordStyle(t){const{duration:s}=t;return{width:50+Math.min(180,Math.floor(s/150))+"px"}},recordDuration(t){const s=Math.floor(t/6e4),e=Math.floor(t/1e3)%60;return s>0?`${s}:${e}\u2033`:`${Math.max(1,e)}\u2033`},imageStyle(t){const{width:s,height:e}=t;if(s&&e){let i=220,a=220,O=s,S=e;return(s>i||e>a)&&(s>e?(O=i,S=e*(i/s)):(O=s*(a/e),S=a)),{width:O+"px",height:S+"px"}}return{}},playRecord(){this.operateVisible||yt.Store.set("audioSubscribe",{id:this.msgData.id,src:this.msgData.msg.path})},openMeeting(){this.operateVisible||yt.Store.set("addMeeting",{type:"join",name:this.msgData.msg.name,meetingid:this.msgData.msg.meetingid,meetingdisabled:!0})},viewReply(){this.$emit("on-view-reply",{msg_id:this.msgData.id,reply_id:this.msgData.reply_id})},viewText(t){this.$emit("on-view-text",t)},viewFile(){this.$emit("on-view-file",this.msgData)},downFile(){this.$emit("on-down-file",this.msgData)},replyList(){this.$emit("on-reply-list",{msg_id:this.msgData.id})},onError(){this.$emit("on-error",this.msgData)},onEmoji(t){this.$emit("on-emoji",{msg_id:this.msgData.id,symbol:t})},onShowEmojiUser(t){this.$emit("on-show-emoji-user",t)}}},xt={};var fe=pt(ce,le,ue,!1,he,null,null,null);function he(t){for(let s in xt)this[s]=xt[s]}var de=function(){return fe.exports}(),pe=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{class:t.classArray},[t.source.type==="tag"?e("div",{staticClass:"dialog-tag",on:{click:t.onViewTag}},[e("div",{staticClass:"tag-user"},[e("UserAvatar",{attrs:{userid:t.source.userid,tooltipDisabled:t.source.userid==t.userId,"show-name":!0,"show-icon":!1}})],1),t._v(" "+t._s(t.$L(t.source.msg.action==="remove"?"\u53D6\u6D88\u6807\u6CE8":"\u6807\u6CE8\u4E86"))+' "'+t._s(t.$A.getMsgSimpleDesc(t.source.msg.data))+'" ')]):t.source.type==="todo"?e("div",{staticClass:"dialog-todo",on:{click:t.onViewTodo}},[e("div",{staticClass:"todo-user"},[e("UserAvatar",{attrs:{userid:t.source.userid,tooltipDisabled:t.source.userid==t.userId,"show-name":!0,"show-icon":!1}})],1),t._v(" "+t._s(t.$L(t.source.msg.action==="remove"?"\u53D6\u6D88\u5F85\u529E":t.source.msg.action==="done"?"\u5B8C\u6210":"\u8BBE\u5F85\u529E"))+' "'+t._s(t.$A.getMsgSimpleDesc(t.source.msg.data))+'" '),t.formatTodoUser(t.source.msg.data).length>0?e("div",{staticClass:"todo-users"},[e("span",[t._v(t._s(t.$L("\u7ED9")))]),t._l(t.formatTodoUser(t.source.msg.data),function(i,a){return[a<3?e("div",{staticClass:"todo-user"},[e("UserAvatar",{attrs:{userid:i,tooltipDisabled:i==t.userId,"show-name":!0,"show-icon":!1}})],1):a==3?e("div",{staticClass:"todo-user"},[t._v("+"+t._s(t.formatTodoUser(t.source.msg.data).length-3))]):t._e()]})],2):t._e()]):t.source.type==="notice"?e("div",{staticClass:"dialog-notice"},[t._v(" "+t._s(t.source.msg.notice)+" ")]):[e("div",{staticClass:"dialog-avatar"},[e("UserAvatar",{directives:[{name:"longpress",rawName:"v-longpress",value:{callback:t.onMention,delay:300},expression:"{callback: onMention, delay: 300}"}],attrs:{userid:t.source.userid,size:30,"tooltip-disabled":""},on:{"open-dialog":t.onOpenDialog}})],1),e("DialogView",{attrs:{"msg-data":t.source,"dialog-type":t.dialogData.type,"hide-percentage":t.hidePercentage,"hide-reply":t.hideReply,"operate-visible":t.operateVisible,"operate-action":t.operateVisible&&t.source.id===t.operateItem.id,"is-right-msg":t.isRightMsg},on:{"on-longpress":t.onLongpress,"on-view-reply":t.onViewReply,"on-view-text":t.onViewText,"on-view-file":t.onViewFile,"on-down-file":t.onDownFile,"on-reply-list":t.onReplyList,"on-error":t.onError,"on-emoji":t.onEmoji,"on-show-emoji-user":t.onShowEmojiUser}})]],2)},me=[];const ve={name:"DialogItem",components:{DialogView:de},directives:{longpress:zt},props:{source:{type:Object,default(){return{}}},dialogData:{type:Object,default(){return{}}},operateVisible:{type:Boolean,default:!1},operateItem:{type:Object,default(){return{}}},simpleView:{type:Boolean,default:!1},isMyDialog:{type:Boolean,default:!1},msgId:{type:Number,default:0}},data(){return{subscribe:null}},computed:{..._t(["userId"]),isRightMsg(){return this.source.userid==this.userId},isReply(){return this.simpleView||this.msgId===this.source.id},hidePercentage(){return this.simpleView||this.isMyDialog||this.isReply},hideReply(){return this.simpleView||this.msgId>0},classArray(){return{"dialog-item":!0,"reply-item":this.isReply,self:this.isRightMsg}}},watch:{source:{handler(){this.msgRead()},immediate:!0},windowActive(t){t&&this.msgRead()}},methods:{msgRead(){!this.windowActive||this.$store.dispatch("dialogMsgRead",this.source)},formatTodoUser(t){if($A.isJson(t)){const{userids:s}=t;if(s)return s.split(",")}return[]},onViewTag(){this.onViewReply({msg_id:this.source.id,reply_id:this.source.msg.data.id})},onViewTodo(){this.onViewReply({msg_id:this.source.id,reply_id:this.source.msg.data.id})},onOpenDialog(t){this.dialogData.type=="group"&&this.$store.dispatch("openDialogUserid",t).then(s=>{this.goForward({name:"manage-messenger"})}).catch(({msg:s})=>{$A.modalError(s)})},onMention(){this.dispatch("on-mention",this.source)},onLongpress(t){this.dispatch("on-longpress",t)},onViewReply(t){this.dispatch("on-view-reply",t)},onViewText(t){this.dispatch("on-view-text",t)},onViewFile(t){this.dispatch("on-view-file",t)},onDownFile(t){this.dispatch("on-down-file",t)},onReplyList(t){this.dispatch("on-reply-list",t)},onError(t){this.dispatch("on-error",t)},onEmoji(t){this.dispatch("on-emoji",t)},onShowEmojiUser(t){this.dispatch("on-show-emoji-user",t)},dispatch(t,s){if(this.isReply){this.$emit(t,s);return}let e=this.$parent,i=e.$options.name;for(;e&&(!i||i!=="virtual-list");)e=e.$parent,e&&(i=e.$options.name);e&&e.$emit(t,s)}}},Lt={};var ge=pt(ve,pe,me,!1,ye,null,null,null);function ye(t){for(let s in Lt)this[s]=Lt[s]}var It=function(){return ge.exports}(),be=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("Upload",{ref:"upload",attrs:{name:"files",action:t.actionUrl,headers:t.headers,data:t.params,multiple:"",format:t.uploadFormat,"show-upload-list":!1,"max-size":t.maxSize,"on-progress":t.handleProgress,"on-success":t.handleSuccess,"on-format-error":t.handleFormatError,"on-exceeded-size":t.handleMaxSize}})},_e=[];const we={name:"DialogUpload",props:{dialogId:{type:Number,default:0},replyId:{type:Number,default:0},maxSize:{type:Number,default:1024e3}},data(){return{uploadFormat:[],actionUrl:$A.apiUrl("dialog/msg/sendfile")}},computed:{headers(){return{fd:$A.getSessionStorageString("userWsFd"),token:this.userToken}},params(){return{dialog_id:this.dialogId,reply_id:this.replyId}}},methods:{handleProgress(t,s){s.tempId===void 0&&(s.tempId=$A.randNum(1e9,9999999999),this.$emit("on-progress",s))},handleSuccess(t,s){t.ret===1?(s.data=t.data,this.$emit("on-success",s),t.data.task_id&&this.$store.dispatch("getTaskFiles",t.data.task_id)):($A.modalWarning({title:"\u53D1\u9001\u5931\u8D25",content:"\u6587\u4EF6 "+s.name+" \u53D1\u9001\u5931\u8D25\uFF0C"+t.msg}),this.$emit("on-error",s),this.$refs.upload.fileList.pop())},handleFormatError(t){$A.modalWarning({title:"\u6587\u4EF6\u683C\u5F0F\u4E0D\u6B63\u786E",content:"\u6587\u4EF6 "+t.name+" \u683C\u5F0F\u4E0D\u6B63\u786E\uFF0C\u4EC5\u652F\u6301\u53D1\u9001\uFF1A"+this.uploadFormat.join(",")})},handleMaxSize(t){$A.modalWarning({title:"\u8D85\u51FA\u6587\u4EF6\u5927\u5C0F\u9650\u5236",content:"\u6587\u4EF6 "+t.name+" \u592A\u5927\uFF0C\u4E0D\u80FD\u53D1\u9001\u8D85\u8FC7"+$A.bytesToSize(this.maxSize*1024)+"\u3002"})},handleClick(){this.$refs.upload.handleClick()},upload(t){this.$refs.upload.upload(t)}}},Dt={};var ke=pt(we,be,_e,!1,Oe,null,null,null);function Oe(t){for(let s in Dt)this[s]=Dt[s]}var Ee=function(){return ke.exports}(),Se=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"dialog-group-info"},[e("div",{staticClass:"group-info-title"},[t._v(t._s(t.$L("\u7FA4\u540D")))]),e("div",{staticClass:"group-info-value"},[e("QuickEdit",{attrs:{value:t.dialogData.name,disabled:t.dialogData.owner_id!=t.userId},on:{"on-update":t.updateName}},[t._v(t._s(t.dialogData.name))])],1),e("div",{staticClass:"group-info-title"},[t._v(t._s(t.$L("\u7FA4\u7C7B\u578B")))]),e("div",{staticClass:"group-info-value"},[t._v(t._s(t.$L(t.groupType)))]),e("div",{staticClass:"group-info-search"},[e("Input",{attrs:{prefix:"ios-search",placeholder:t.$L("\u641C\u7D22\u6210\u5458"),clearable:""},model:{value:t.searchKey,callback:function(i){t.searchKey=i},expression:"searchKey"}})],1),e("div",{staticClass:"group-info-user"},[e("ul",[t._l(t.userList,function(i,a){return e("li",{key:a,on:{click:function(O){return t.openUser(i.userid)}}},[e("UserAvatar",{attrs:{userid:i.userid,size:32,showName:"",tooltipDisabled:""}}),i.userid===t.dialogData.owner_id?e("div",{staticClass:"user-tag"},[t._v(t._s(t.$L("\u7FA4\u4E3B")))]):t.dialogData.owner_id==t.userId||i.inviter==t.userId?e("div",{staticClass:"user-exit",on:{click:function(O){return O.stopPropagation(),t.onExit(i)}}},[e("Icon",{attrs:{type:"md-exit"}})],1):t._e()],1)}),t.userList.length===0?e("li",{staticClass:"no"},[t.loadIng>0?e("Loading"):e("span",[t._v(t._s(t.$L("\u6CA1\u6709\u7B26\u5408\u6761\u4EF6\u7684\u6570\u636E")))])],1):t._e()],2)]),t.dialogData.group_type!=="all"?e("div",{staticClass:"group-info-button"},[t.dialogData.owner_id==t.userId||t.dialogData.owner_id==0?e("Button",{attrs:{type:"primary",icon:"md-add"},on:{click:t.openAdd}},[t._v(t._s(t.$L("\u6DFB\u52A0\u6210\u5458")))]):t._e()],1):t._e(),e("Modal",{attrs:{title:t.$L("\u6DFB\u52A0\u7FA4\u6210\u5458"),"mask-closable":!1},model:{value:t.addShow,callback:function(i){t.addShow=i},expression:"addShow"}},[e("Form",{attrs:{model:t.addData,"label-width":"auto"},nativeOn:{submit:function(i){i.preventDefault()}}},[e("FormItem",{attrs:{prop:"userids",label:t.$L("\u65B0\u589E\u6210\u5458")}},[e("UserInput",{attrs:{disabledChoice:t.addData.disabledChoice,"multiple-max":100,"show-bot":"",placeholder:t.$L("\u9009\u62E9\u6210\u5458")},model:{value:t.addData.userids,callback:function(i){t.$set(t.addData,"userids",i)},expression:"addData.userids"}}),t.dialogData.group_type==="department"?e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u6B64\u64CD\u4F5C\u4EC5\u52A0\u5165\u7FA4\u6210\u5458\u5E76\u4E0D\u4F1A\u52A0\u5165\u90E8\u95E8")))]):t.dialogData.group_type==="project"?e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u6B64\u64CD\u4F5C\u4EC5\u52A0\u5165\u7FA4\u6210\u5458\u5E76\u4E0D\u4F1A\u52A0\u5165\u9879\u76EE")))]):t.dialogData.group_type==="task"?e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u6B64\u64CD\u4F5C\u4EC5\u52A0\u5165\u7FA4\u6210\u5458\u5E76\u4E0D\u4F1A\u52A0\u5165\u4EFB\u52A1\u8D1F\u8D23\u4EBA")))]):t._e()],1)],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(i){t.addShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.addLoad>0},on:{click:t.onAdd}},[t._v(t._s(t.$L("\u786E\u5B9A\u6DFB\u52A0")))])],1)],1)],1)},Te=[];const Ae={name:"DialogGroupInfo",components:{UserInput:Ht},props:{dialogId:{type:Number,default:0}},data(){return{searchKey:"",loadIng:0,dialogUser:[],addShow:!1,addData:{},addLoad:0,openIng:!1}},computed:{..._t(["cacheDialogs","cacheUserBasic"]),dialogData(){return this.cacheDialogs.find(({id:t})=>t==this.dialogId)||{}},groupType(){const{group_type:t}=this.dialogData;return t==="department"?"\u90E8\u95E8\u7FA4\u7EC4":t==="project"?"\u9879\u76EE\u7FA4\u7EC4":t==="task"?"\u4EFB\u52A1\u7FA4\u7EC4":t==="user"?"\u4E2A\u4EBA\u7FA4\u7EC4":t==="all"?"\u5168\u5458\u7FA4\u7EC4":"\u672A\u77E5"},userList(){const{dialogUser:t,searchKey:s,cacheUserBasic:e,dialogData:i}=this;return t.map(O=>{const S=e.find(w=>w.userid==O.userid);return S&&(O.nickname=S.nickname,O.email=S.email),O}).filter(O=>!(s&&O.nickname&&!$A.strExists(O.nickname,s)&&!$A.strExists(O.email,s))).sort((O,S)=>O.userid===i.owner_id||S.userid===i.owner_id?(O.userid===i.owner_id?0:1)-(S.userid===i.owner_id?0:1):$A.Date(O.created_at)-$A.Date(S.created_at))}},watch:{dialogId:{handler(){this.getDialogUser()},immediate:!0}},methods:{updateName(t,s){if(!t){s();return}this.$store.dispatch("call",{url:"dialog/group/edit",data:{dialog_id:this.dialogId,chat_name:t}}).then(({data:e})=>{this.$store.dispatch("saveDialog",e),s()}).catch(({msg:e})=>{$A.modalError(e),s()})},getDialogUser(){this.dialogId<=0||(this.loadIng++,this.$store.dispatch("call",{url:"dialog/user",data:{dialog_id:this.dialogId}}).then(({data:t})=>{this.dialogUser=t,this.$store.dispatch("saveDialog",{id:this.dialogId,people:t.length})}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.loadIng--}))},openAdd(){this.addData={dialog_id:this.dialogId,userids:[],disabledChoice:this.dialogUser.map(t=>t.userid)},this.addShow=!0},onAdd(){this.addLoad++,this.$store.dispatch("call",{url:"dialog/group/adduser",data:this.addData}).then(({msg:t})=>{$A.messageSuccess(t),this.addShow=!1,this.addData={},this.getDialogUser()}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.addLoad--})},onExit(t){let s="\u4F60\u786E\u5B9A\u8981\u9000\u51FA\u7FA4\u7EC4\u5417\uFF1F",e=[];$A.isJson(t)&&(s=`\u4F60\u786E\u5B9A\u8981\u5C06\u3010${t.nickname}\u3011\u79FB\u51FA\u7FA4\u7EC4\u5417\uFF1F`,e=[t.userid]),$A.modalConfirm({content:s,loading:!0,onOk:()=>new Promise((i,a)=>{this.$store.dispatch("call",{url:"dialog/group/deluser",data:{dialog_id:this.dialogId,userids:e}}).then(({msg:O})=>{i(O),e.length>0?this.getDialogUser():(this.$store.dispatch("forgetDialog",this.dialogId),this.goForward({name:"manage-messenger"}))}).catch(({msg:O})=>{a(O)})})})},openUser(t){this.openIng||(this.openIng=!0,this.$store.dispatch("openDialogUserid",t).then(s=>{this.$emit("on-close")}).catch(({msg:s})=>{$A.modalError(s)}).finally(s=>{this.openIng=!1}))}}},$t={};var xe=pt(Ae,Se,Te,!1,Le,null,null,null);function Le(t){for(let s in $t)this[s]=$t[s]}var Ie=function(){return xe.exports}(),De=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"dialog-respond"},[e("div",{staticClass:"respond-title"},[e("em",[t._v(t._s(t.respondData.symbol))]),t._v(t._s(t.$L("\u56DE\u5E94\u8BE6\u60C5"))+" ("+t._s(t.respondData.userids.length)+")")]),e("div",{staticClass:"respond-user"},[e("ul",t._l(t.respondData.userids,function(i,a){return e("li",{key:a,on:{click:function(O){return t.openUser(i)}}},[e("UserAvatar",{attrs:{userid:i,size:32,showName:"",tooltipDisabled:""}})],1)}),0)])])},$e=[];const Ne={name:"DialogRespond",props:{respondData:{type:Object,default:()=>({})}},data(){return{openIng:!1}},methods:{openUser(t){this.openIng||(this.openIng=!0,this.$store.dispatch("openDialogUserid",t).then(s=>{this.$emit("on-close")}).catch(({msg:s})=>{$A.modalError(s)}).finally(s=>{this.openIng=!1}))}}},Nt={};var Ce=pt(Ne,De,$e,!1,Me,null,null,null);function Me(t){for(let s in Nt)this[s]=Nt[s]}var Pe=function(){return Ce.exports}(),Vt={exports:{}};/*! +import{n as pt,d as yt,m as _t,c as Ft,e as Ut,g as Zt,f as Xt,r as Jt}from"./app.feefc813.js";import{l as zt,D as te}from"./DialogSelect.5d8dded5.js";import{U as Ht}from"./UserInput.2bc16b15.js";import{D as ee}from"./index.f3f56c75.js";import{I as ie}from"./ImgUpload.e60c7ecf.js";var ne=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"common-circle",style:t.style,attrs:{"data-id":t.percent}},[e("svg",{attrs:{viewBox:"0 0 28 28"}},[e("g",{attrs:{fill:"none","fill-rule":"evenodd"}},[e("path",{staticClass:"common-circle-path",attrs:{d:"M-500-100h997V48h-997z"}}),e("g",{attrs:{"fill-rule":"nonzero"}},[e("path",{staticClass:"common-circle-g-path-ring",attrs:{"stroke-width":"3",d:"M14 25.5c6.351 0 11.5-5.149 11.5-11.5S20.351 2.5 14 2.5 2.5 7.649 2.5 14 7.649 25.5 14 25.5z"}}),e("path",{staticClass:"common-circle-g-path-core",attrs:{d:t.arc(t.args)}})])])])])},re=[];const oe={name:"WCircle",props:{percent:{type:Number,default:0},size:{type:Number,default:120}},computed:{style(){let{size:t}=this;return this.isNumeric(t)&&(t+="px"),{width:t,height:t}},args(){const{percent:t}=this;let s=Math.min(360,360/100*t);return s==360?s=0:s==0&&(s=360),{x:14,y:14,r:14,start:360,end:s}}},methods:{isNumeric(t){return t!==""&&!isNaN(parseFloat(t))&&isFinite(t)},point(t,s,e,i){return[(t+Math.sin(i)*e).toFixed(2),(s-Math.cos(i)*e).toFixed(2)]},full(t,s,e,i){return i<=0?`M ${t-e} ${s} A ${e} ${e} 0 1 1 ${t+e} ${s} A ${e} ${e} 1 1 1 ${t-e} ${s} Z`:`M ${t-e} ${s} A ${e} ${e} 0 1 1 ${t+e} ${s} A ${e} ${e} 1 1 1 ${t-e} ${s} M ${t-i} ${s} A ${i} ${i} 0 1 1 ${t+i} ${s} A ${i} ${i} 1 1 1 ${t-i} ${s} Z`},part(t,s,e,i,a,O){const[S,w]=[a/360*2*Math.PI,O/360*2*Math.PI],b=[this.point(t,s,i,S),this.point(t,s,e,S),this.point(t,s,e,w),this.point(t,s,i,w)],_=w-S>Math.PI?"1":"0";return`M ${b[0][0]} ${b[0][1]} L ${b[1][0]} ${b[1][1]} A ${e} ${e} 0 ${_} 1 ${b[2][0]} ${b[2][1]} L ${b[3][0]} ${b[3][1]} A ${i} ${i} 0 ${_} 0 ${b[0][0]} ${b[0][1]} Z`},arc(t){const{x:s=0,y:e=0}=t;let{R:i=0,r:a=0,start:O,end:S}=t;return[i,a]=[Math.max(i,a),Math.min(i,a)],i<=0?"":O!==+O||S!==+S?this.full(s,e,i,a):Math.abs(O-S)<1e-6?"":Math.abs(O-S)%360<1e-6?this.full(s,e,i,a):([O,S]=[O%360,S%360],O>S&&(S+=360),this.part(s,e,i,a,O,S))}}},At={};var ae=pt(oe,ne,re,!1,se,null,null,null);function se(t){for(let s in At)this[s]=At[s]}var le=function(){return ae.exports}(),ue=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"dialog-view",class:t.viewClass,attrs:{"data-id":t.msgData.id}},[t.dialogType==="group"?e("div",{staticClass:"dialog-username"},[e("UserAvatar",{attrs:{userid:t.msgData.userid,"show-icon":!1,"show-name":!0,"click-open-dialog":""}})],1):t._e(),e("div",{directives:[{name:"longpress",rawName:"v-longpress",value:{callback:t.handleLongpress,delay:300},expression:"{callback: handleLongpress, delay: 300}"}],staticClass:"dialog-head",class:t.headClass},[!t.hideReply&&t.msgData.reply_data?e("div",{staticClass:"dialog-reply no-dark-content",on:{click:t.viewReply}},[e("UserAvatar",{attrs:{userid:t.msgData.reply_data.userid,"show-icon":!1,"show-name":!0,"tooltip-disabled":!0}}),e("div",{staticClass:"reply-desc"},[t._v(t._s(t.$A.getMsgSimpleDesc(t.msgData.reply_data)))])],1):t._e(),e("div",{staticClass:"dialog-content",class:t.contentClass},[t.msgData.type==="text"?e("div",{staticClass:"content-text no-dark-content"},[e("pre",{domProps:{innerHTML:t._s(t.$A.formatTextMsg(t.msgData.msg.text,t.userId))},on:{click:t.viewText}})]):t.msgData.type==="file"?e("div",{class:`content-file ${t.msgData.msg.type}`},[e("div",{staticClass:"dialog-file"},[t.msgData.msg.type==="img"?e("img",{staticClass:"file-img",style:t.imageStyle(t.msgData.msg),attrs:{src:t.msgData.msg.thumb},on:{click:t.viewFile}}):e("div",{staticClass:"file-box",on:{click:t.downFile}},[e("img",{staticClass:"file-thumb",attrs:{src:t.msgData.msg.thumb}}),e("div",{staticClass:"file-info"},[e("div",{staticClass:"file-name"},[t._v(t._s(t.msgData.msg.name))]),e("div",{staticClass:"file-size"},[t._v(t._s(t.$A.bytesToSize(t.msgData.msg.size)))])])])])]):t.msgData.type==="record"?e("div",{staticClass:"content-record no-dark-content"},[e("div",{staticClass:"dialog-record",class:{playing:t.audioPlaying===t.msgData.msg.path},style:t.recordStyle(t.msgData.msg),on:{click:t.playRecord}},[e("div",{staticClass:"record-time"},[t._v(t._s(t.recordDuration(t.msgData.msg.duration)))]),e("div",{staticClass:"record-icon taskfont"})])]):t.msgData.type==="meeting"?e("div",{staticClass:"content-meeting no-dark-content"},[e("ul",{staticClass:"dialog-meeting"},[e("li",[e("em",[t._v(t._s(t.$L("\u4F1A\u8BAE\u4E3B\u9898")))]),t._v(" "+t._s(t.msgData.msg.name)+" ")]),e("li",[e("em",[t._v(t._s(t.$L("\u4F1A\u8BAE\u521B\u5EFA\u4EBA")))]),e("UserAvatar",{attrs:{userid:t.msgData.msg.userid,"show-icon":!1,"show-name":!0,"tooltip-disabled":""}})],1),e("li",[e("em",[t._v(t._s(t.$L("\u9891\u9053ID")))]),t._v(" "+t._s(t.msgData.msg.meetingid.replace(/^(.{3})(.{3})(.*)$/,"$1 $2 $3"))+" ")]),e("li",{staticClass:"meeting-operation",on:{click:t.openMeeting}},[t._v(" "+t._s(t.$L("\u70B9\u51FB\u52A0\u5165\u4F1A\u8BAE"))+" "),e("i",{staticClass:"taskfont"},[t._v("\uE68B")])])])]):t.msgData.type==="loading"?e("div",{staticClass:"content-loading"},[t.msgData.error===!0?e("Icon",{attrs:{type:"ios-alert-outline"}}):e("Loading")],1):e("div",{staticClass:"content-unknown"},[t._v(t._s(t.$L("\u672A\u77E5\u7684\u6D88\u606F\u7C7B\u578B")))])]),t.$A.arrayLength(t.msgData.emoji)>0?e("ul",{staticClass:"dialog-emoji"},t._l(t.msgData.emoji,function(i,a){return e("li",{key:a,class:{hasme:i.userids.includes(t.userId)},on:{click:function(O){return t.onEmoji(i.symbol)}}},[e("div",{staticClass:"emoji-symbol no-dark-content"},[t._v(t._s(i.symbol))]),e("div",{staticClass:"emoji-users"},[e("ul",[t._l(i.userids,function(O,S){return[S0?e("div",{staticClass:"reply",on:{click:t.replyList}},[e("i",{staticClass:"taskfont"},[t._v("\uE6EB")]),t._v(" "+t._s(t.msgData.reply_num)+"\u6761\u56DE\u590D ")]):t._e(),t.msgData.tag?e("div",{staticClass:"tag"},[e("i",{staticClass:"taskfont"},[t._v("\uE61E")])]):t._e(),t.msgData.todo?e("div",{staticClass:"todo",on:{click:t.openTodo}},[e("EPopover",{ref:"todo",attrs:{"popper-class":"dialog-wrapper-read-poptip",placement:t.isRightMsg?"bottom-end":"bottom-start"},model:{value:t.todoShow,callback:function(i){t.todoShow=i},expression:"todoShow"}},[e("div",{staticClass:"read-poptip-content"},[e("ul",{staticClass:"read scrollbar-overlay"},[e("li",{staticClass:"read-title"},[e("em",[t._v(t._s(t.todoDoneList.length))]),t._v(t._s(t.$L("\u5B8C\u6210")))]),t._l(t.todoDoneList,function(i){return e("li",[e("UserAvatar",{attrs:{userid:i.userid,size:26,showName:"",tooltipDisabled:""}})],1)})],2),e("ul",{staticClass:"unread scrollbar-overlay"},[e("li",{staticClass:"read-title"},[e("em",[t._v(t._s(t.todoUndoneList.length))]),t._v(t._s(t.$L("\u5F85\u529E")))]),t._l(t.todoUndoneList,function(i){return e("li",[e("UserAvatar",{attrs:{userid:i.userid,size:26,showName:"",tooltipDisabled:""}})],1)})],2)]),e("div",{staticClass:"popover-reference",attrs:{slot:"reference"},slot:"reference"})]),t.todoLoad>0?e("Loading"):e("i",{staticClass:"taskfont"},[t._v("\uE7B7")])],1):t._e(),t.msgData.modify?e("div",{staticClass:"modify"},[e("i",{staticClass:"taskfont"},[t._v("\uE779")])]):t._e(),t.msgData.error===!0?e("div",{staticClass:"error",on:{click:t.onError}},[e("Icon",{attrs:{type:"ios-alert"}})],1):t.isLoading?e("Loading"):[t.timeShow?e("div",{staticClass:"time",on:{click:function(i){t.timeShow=!1}}},[t._v(t._s(t.msgData.created_at))]):e("div",{staticClass:"time",attrs:{title:t.msgData.created_at},on:{click:function(i){t.timeShow=!0}}},[t._v(t._s(t.$A.formatTime(t.msgData.created_at)))]),t.hidePercentage?t._e():[t.msgData.send>1||t.dialogType==="group"?e("div",{staticClass:"percent",on:{click:t.openReadPercentage}},[e("EPopover",{ref:"percent",attrs:{"popper-class":"dialog-wrapper-read-poptip",placement:t.isRightMsg?"bottom-end":"bottom-start"},model:{value:t.percentageShow,callback:function(i){t.percentageShow=i},expression:"percentageShow"}},[e("div",{staticClass:"read-poptip-content"},[e("ul",{staticClass:"read scrollbar-overlay"},[e("li",{staticClass:"read-title"},[e("em",[t._v(t._s(t.readList.length))]),t._v(t._s(t.$L("\u5DF2\u8BFB")))]),t._l(t.readList,function(i){return e("li",[e("UserAvatar",{attrs:{userid:i.userid,size:26,showName:"",tooltipDisabled:""}})],1)})],2),e("ul",{staticClass:"unread scrollbar-overlay"},[e("li",{staticClass:"read-title"},[e("em",[t._v(t._s(t.unreadList.length))]),t._v(t._s(t.$L("\u672A\u8BFB")))]),t._l(t.unreadList,function(i){return e("li",[e("UserAvatar",{attrs:{userid:i.userid,size:26,showName:"",tooltipDisabled:""}})],1)})],2)]),e("div",{staticClass:"popover-reference",attrs:{slot:"reference"},slot:"reference"})]),t.percentageLoad>0?e("Loading"):e("WCircle",{attrs:{percent:t.msgData.percentage,size:14}})],1):t.msgData.percentage===100?e("Icon",{staticClass:"done",attrs:{type:"md-done-all"}}):e("Icon",{staticClass:"done",attrs:{type:"md-checkmark"}})]]],2)])},ce=[];const fe={name:"DialogView",components:{WCircle:le},directives:{longpress:zt},props:{msgData:{type:Object,default:()=>({})},dialogType:{type:String,default:""},hidePercentage:{type:Boolean,default:!1},hideReply:{type:Boolean,default:!1},operateVisible:{type:Boolean,default:!1},operateAction:{type:Boolean,default:!1},isRightMsg:{type:Boolean,default:!1}},data(){return{timeShow:!1,operateEnter:!1,percentageLoad:0,percentageShow:!1,percentageList:[],todoLoad:0,todoShow:!1,todoList:[],emojiUsersNum:5}},mounted(){this.emojiUsersNum=Math.min(6,Math.max(2,Math.floor((this.windowWidth-180)/52)))},beforeDestroy(){yt.Store.set("audioSubscribe",this.msgData.id)},computed:{..._t(["loads","audioPlaying"]),...Ft(["isLoad"]),isLoading(){return this.msgData.created_at?this.isLoad(`msg-${this.msgData.id}`):!0},viewClass(){const{msgData:t,operateAction:s,operateEnter:e}=this,i=[];return t.type&&i.push(t.type),t.reply_data&&i.push("reply-view"),s&&(i.push("operate-action"),e&&i.push("operate-enter")),i},readList(){return this.percentageList.filter(({read_at:t})=>t)},unreadList(){return this.percentageList.filter(({read_at:t})=>!t)},todoDoneList(){return this.todoList.filter(({done_at:t})=>t)},todoUndoneList(){return this.todoList.filter(({done_at:t})=>!t)},headClass(){const{reply_id:t,type:s,msg:e,emoji:i}=this.msgData,a=[];return t===0&&$A.arrayLength(i)===0&&s==="text"&&(/^]*?>$/.test(e.text)||/^\s*

\s*([\uD800-\uDBFF][\uDC00-\uDFFF]){1,3}\s*<\/p>\s*$/.test(e.text))&&a.push("transparent"),a},contentClass(){const{type:t,msg:s}=this.msgData,e=[];return t==="text"&&(/^]*?>$/.test(s.text)?e.push("an-emoticon"):/^\s*

\s*([\uD800-\uDBFF][\uDC00-\uDFFF]){3}\s*<\/p>\s*$/.test(s.text)?e.push("three-emoji"):/^\s*

\s*([\uD800-\uDBFF][\uDC00-\uDFFF]){2}\s*<\/p>\s*$/.test(s.text)?e.push("two-emoji"):/^\s*

\s*[\uD800-\uDBFF][\uDC00-\uDFFF]\s*<\/p>\s*$/.test(s.text)&&e.push("an-emoji")),e}},watch:{operateAction(t){this.operateEnter=!1,t&&setTimeout(s=>this.operateEnter=!0,500)}},methods:{handleLongpress(t,s){this.$emit("on-longpress",{event:t,el:s,msgData:this.msgData})},openTodo(){if(!(this.todoLoad>0)){if(this.todoShow){this.todoShow=!1;return}this.todoLoad++,this.$store.dispatch("call",{url:"dialog/msg/todolist",data:{msg_id:this.msgData.id}}).then(({data:t})=>{this.todoList=t}).catch(()=>{this.todoList=[]}).finally(t=>{setTimeout(()=>{this.todoLoad--,this.todoShow=!0},100)})}},openReadPercentage(){if(!(this.percentageLoad>0)){if(this.percentageShow){this.percentageShow=!1;return}this.percentageLoad++,this.$store.dispatch("call",{url:"dialog/msg/readlist",data:{msg_id:this.msgData.id}}).then(({data:t})=>{this.percentageList=t}).catch(()=>{this.percentageList=[]}).finally(t=>{setTimeout(()=>{this.percentageLoad--,this.percentageShow=!0},100)})}},recordStyle(t){const{duration:s}=t;return{width:50+Math.min(180,Math.floor(s/150))+"px"}},recordDuration(t){const s=Math.floor(t/6e4),e=Math.floor(t/1e3)%60;return s>0?`${s}:${e}\u2033`:`${Math.max(1,e)}\u2033`},imageStyle(t){const{width:s,height:e}=t;if(s&&e){let i=220,a=220,O=s,S=e;return(s>i||e>a)&&(s>e?(O=i,S=e*(i/s)):(O=s*(a/e),S=a)),{width:O+"px",height:S+"px"}}return{}},playRecord(){this.operateVisible||yt.Store.set("audioSubscribe",{id:this.msgData.id,src:this.msgData.msg.path})},openMeeting(){this.operateVisible||yt.Store.set("addMeeting",{type:"join",name:this.msgData.msg.name,meetingid:this.msgData.msg.meetingid,meetingdisabled:!0})},viewReply(){this.$emit("on-view-reply",{msg_id:this.msgData.id,reply_id:this.msgData.reply_id})},viewText(t){this.$emit("on-view-text",t)},viewFile(){this.$emit("on-view-file",this.msgData)},downFile(){this.$emit("on-down-file",this.msgData)},replyList(){this.$emit("on-reply-list",{msg_id:this.msgData.id})},onError(){this.$emit("on-error",this.msgData)},onEmoji(t){this.$emit("on-emoji",{msg_id:this.msgData.id,symbol:t})},onShowEmojiUser(t){this.$emit("on-show-emoji-user",t)}}},xt={};var he=pt(fe,ue,ce,!1,de,null,null,null);function de(t){for(let s in xt)this[s]=xt[s]}var pe=function(){return he.exports}(),me=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{class:t.classArray},[t.source.type==="tag"?e("div",{staticClass:"dialog-tag",on:{click:t.onViewTag}},[e("div",{staticClass:"tag-user"},[e("UserAvatar",{attrs:{userid:t.source.userid,tooltipDisabled:t.source.userid==t.userId,"show-name":!0,"show-icon":!1}})],1),t._v(" "+t._s(t.$L(t.source.msg.action==="remove"?"\u53D6\u6D88\u6807\u6CE8":"\u6807\u6CE8\u4E86"))+' "'+t._s(t.$A.getMsgSimpleDesc(t.source.msg.data))+'" ')]):t.source.type==="todo"?e("div",{staticClass:"dialog-todo",on:{click:t.onViewTodo}},[e("div",{staticClass:"todo-user"},[e("UserAvatar",{attrs:{userid:t.source.userid,tooltipDisabled:t.source.userid==t.userId,"show-name":!0,"show-icon":!1}})],1),t._v(" "+t._s(t.$L(t.source.msg.action==="remove"?"\u53D6\u6D88\u5F85\u529E":t.source.msg.action==="done"?"\u5B8C\u6210":"\u8BBE\u5F85\u529E"))+' "'+t._s(t.$A.getMsgSimpleDesc(t.source.msg.data))+'" '),t.formatTodoUser(t.source.msg.data).length>0?e("div",{staticClass:"todo-users"},[e("span",[t._v(t._s(t.$L("\u7ED9")))]),t._l(t.formatTodoUser(t.source.msg.data),function(i,a){return[a<3?e("div",{staticClass:"todo-user"},[e("UserAvatar",{attrs:{userid:i,tooltipDisabled:i==t.userId,"show-name":!0,"show-icon":!1}})],1):a==3?e("div",{staticClass:"todo-user"},[t._v("+"+t._s(t.formatTodoUser(t.source.msg.data).length-3))]):t._e()]})],2):t._e()]):t.source.type==="notice"?e("div",{staticClass:"dialog-notice"},[t._v(" "+t._s(t.source.msg.notice)+" ")]):[e("div",{staticClass:"dialog-avatar"},[e("UserAvatar",{directives:[{name:"longpress",rawName:"v-longpress",value:{callback:t.onMention,delay:300},expression:"{callback: onMention, delay: 300}"}],attrs:{userid:t.source.userid,size:30,"tooltip-disabled":""},on:{"open-dialog":t.onOpenDialog}})],1),e("DialogView",{attrs:{"msg-data":t.source,"dialog-type":t.dialogData.type,"hide-percentage":t.hidePercentage,"hide-reply":t.hideReply,"operate-visible":t.operateVisible,"operate-action":t.operateVisible&&t.source.id===t.operateItem.id,"is-right-msg":t.isRightMsg},on:{"on-longpress":t.onLongpress,"on-view-reply":t.onViewReply,"on-view-text":t.onViewText,"on-view-file":t.onViewFile,"on-down-file":t.onDownFile,"on-reply-list":t.onReplyList,"on-error":t.onError,"on-emoji":t.onEmoji,"on-show-emoji-user":t.onShowEmojiUser}})]],2)},ve=[];const ge={name:"DialogItem",components:{DialogView:pe},directives:{longpress:zt},props:{source:{type:Object,default(){return{}}},dialogData:{type:Object,default(){return{}}},operateVisible:{type:Boolean,default:!1},operateItem:{type:Object,default(){return{}}},simpleView:{type:Boolean,default:!1},isMyDialog:{type:Boolean,default:!1},msgId:{type:Number,default:0}},data(){return{subscribe:null}},computed:{..._t(["userId"]),isRightMsg(){return this.source.userid==this.userId},isReply(){return this.simpleView||this.msgId===this.source.id},hidePercentage(){return this.simpleView||this.isMyDialog||this.isReply},hideReply(){return this.simpleView||this.msgId>0},classArray(){return{"dialog-item":!0,"reply-item":this.isReply,self:this.isRightMsg}}},watch:{source:{handler(){this.msgRead()},immediate:!0},windowActive(t){t&&this.msgRead()}},methods:{msgRead(){!this.windowActive||this.$store.dispatch("dialogMsgRead",this.source)},formatTodoUser(t){if($A.isJson(t)){const{userids:s}=t;if(s)return s.split(",")}return[]},onViewTag(){this.onViewReply({msg_id:this.source.id,reply_id:this.source.msg.data.id})},onViewTodo(){this.onViewReply({msg_id:this.source.id,reply_id:this.source.msg.data.id})},onOpenDialog(t){this.dialogData.type=="group"&&this.$store.dispatch("openDialogUserid",t).then(s=>{this.goForward({name:"manage-messenger"})}).catch(({msg:s})=>{$A.modalError(s)})},onMention(){this.dispatch("on-mention",this.source)},onLongpress(t){this.dispatch("on-longpress",t)},onViewReply(t){this.dispatch("on-view-reply",t)},onViewText(t){this.dispatch("on-view-text",t)},onViewFile(t){this.dispatch("on-view-file",t)},onDownFile(t){this.dispatch("on-down-file",t)},onReplyList(t){this.dispatch("on-reply-list",t)},onError(t){this.dispatch("on-error",t)},onEmoji(t){this.dispatch("on-emoji",t)},onShowEmojiUser(t){this.dispatch("on-show-emoji-user",t)},dispatch(t,s){if(this.isReply){this.$emit(t,s);return}let e=this.$parent,i=e.$options.name;for(;e&&(!i||i!=="virtual-list");)e=e.$parent,e&&(i=e.$options.name);e&&e.$emit(t,s)}}},Lt={};var ye=pt(ge,me,ve,!1,be,null,null,null);function be(t){for(let s in Lt)this[s]=Lt[s]}var It=function(){return ye.exports}(),_e=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("Upload",{ref:"upload",attrs:{name:"files",action:t.actionUrl,headers:t.headers,data:t.params,multiple:"",format:t.uploadFormat,"show-upload-list":!1,"max-size":t.maxSize,"on-progress":t.handleProgress,"on-success":t.handleSuccess,"on-format-error":t.handleFormatError,"on-exceeded-size":t.handleMaxSize}})},we=[];const ke={name:"DialogUpload",props:{dialogId:{type:Number,default:0},replyId:{type:Number,default:0},maxSize:{type:Number,default:1024e3}},data(){return{uploadFormat:[],actionUrl:$A.apiUrl("dialog/msg/sendfile")}},computed:{headers(){return{fd:$A.getSessionStorageString("userWsFd"),token:this.userToken}},params(){return{dialog_id:this.dialogId,reply_id:this.replyId}}},methods:{handleProgress(t,s){s.tempId===void 0&&(s.tempId=$A.randNum(1e9,9999999999),this.$emit("on-progress",s))},handleSuccess(t,s){t.ret===1?(s.data=t.data,this.$emit("on-success",s),t.data.task_id&&this.$store.dispatch("getTaskFiles",t.data.task_id)):($A.modalWarning({title:"\u53D1\u9001\u5931\u8D25",content:"\u6587\u4EF6 "+s.name+" \u53D1\u9001\u5931\u8D25\uFF0C"+t.msg}),this.$emit("on-error",s),this.$refs.upload.fileList.pop())},handleFormatError(t){$A.modalWarning({title:"\u6587\u4EF6\u683C\u5F0F\u4E0D\u6B63\u786E",content:"\u6587\u4EF6 "+t.name+" \u683C\u5F0F\u4E0D\u6B63\u786E\uFF0C\u4EC5\u652F\u6301\u53D1\u9001\uFF1A"+this.uploadFormat.join(",")})},handleMaxSize(t){$A.modalWarning({title:"\u8D85\u51FA\u6587\u4EF6\u5927\u5C0F\u9650\u5236",content:"\u6587\u4EF6 "+t.name+" \u592A\u5927\uFF0C\u4E0D\u80FD\u53D1\u9001\u8D85\u8FC7"+$A.bytesToSize(this.maxSize*1024)+"\u3002"})},handleClick(){this.$refs.upload.handleClick()},upload(t){this.$refs.upload.upload(t)}}},Dt={};var Oe=pt(ke,_e,we,!1,Ee,null,null,null);function Ee(t){for(let s in Dt)this[s]=Dt[s]}var Se=function(){return Oe.exports}(),Te=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"dialog-group-info"},[e("div",{staticClass:"group-info-title"},[t._v(t._s(t.$L("\u7FA4\u540D")))]),e("div",{staticClass:"group-info-value"},[e("QuickEdit",{attrs:{value:t.dialogData.name,disabled:t.dialogData.owner_id!=t.userId},on:{"on-update":t.updateName}},[t._v(t._s(t.dialogData.name))])],1),e("div",{staticClass:"group-info-title"},[t._v(t._s(t.$L("\u7FA4\u7C7B\u578B")))]),e("div",{staticClass:"group-info-value"},[t._v(t._s(t.$L(t.groupType)))]),e("div",{staticClass:"group-info-search"},[e("Input",{attrs:{prefix:"ios-search",placeholder:t.$L("\u641C\u7D22\u6210\u5458"),clearable:""},model:{value:t.searchKey,callback:function(i){t.searchKey=i},expression:"searchKey"}})],1),e("div",{staticClass:"group-info-user"},[e("ul",[t._l(t.userList,function(i,a){return e("li",{key:a,on:{click:function(O){return t.openUser(i.userid)}}},[e("UserAvatar",{attrs:{userid:i.userid,size:32,showName:"",tooltipDisabled:""}}),i.userid===t.dialogData.owner_id?e("div",{staticClass:"user-tag"},[t._v(t._s(t.$L("\u7FA4\u4E3B")))]):t.dialogData.owner_id==t.userId||i.inviter==t.userId?e("div",{staticClass:"user-exit",on:{click:function(O){return O.stopPropagation(),t.onExit(i)}}},[e("Icon",{attrs:{type:"md-exit"}})],1):t._e()],1)}),t.userList.length===0?e("li",{staticClass:"no"},[t.loadIng>0?e("Loading"):e("span",[t._v(t._s(t.$L("\u6CA1\u6709\u7B26\u5408\u6761\u4EF6\u7684\u6570\u636E")))])],1):t._e()],2)]),t.dialogData.group_type!=="all"?e("div",{staticClass:"group-info-button"},[t.dialogData.owner_id==t.userId||t.dialogData.owner_id==0?e("Button",{attrs:{type:"primary",icon:"md-add"},on:{click:t.openAdd}},[t._v(t._s(t.$L("\u6DFB\u52A0\u6210\u5458")))]):t._e()],1):t._e(),e("Modal",{attrs:{title:t.$L("\u6DFB\u52A0\u7FA4\u6210\u5458"),"mask-closable":!1},model:{value:t.addShow,callback:function(i){t.addShow=i},expression:"addShow"}},[e("Form",{attrs:{model:t.addData,"label-width":"auto"},nativeOn:{submit:function(i){i.preventDefault()}}},[e("FormItem",{attrs:{prop:"userids",label:t.$L("\u65B0\u589E\u6210\u5458")}},[e("UserInput",{attrs:{disabledChoice:t.addData.disabledChoice,"multiple-max":100,"show-bot":"",placeholder:t.$L("\u9009\u62E9\u6210\u5458")},model:{value:t.addData.userids,callback:function(i){t.$set(t.addData,"userids",i)},expression:"addData.userids"}}),t.dialogData.group_type==="department"?e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u6B64\u64CD\u4F5C\u4EC5\u52A0\u5165\u7FA4\u6210\u5458\u5E76\u4E0D\u4F1A\u52A0\u5165\u90E8\u95E8")))]):t.dialogData.group_type==="project"?e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u6B64\u64CD\u4F5C\u4EC5\u52A0\u5165\u7FA4\u6210\u5458\u5E76\u4E0D\u4F1A\u52A0\u5165\u9879\u76EE")))]):t.dialogData.group_type==="task"?e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u6B64\u64CD\u4F5C\u4EC5\u52A0\u5165\u7FA4\u6210\u5458\u5E76\u4E0D\u4F1A\u52A0\u5165\u4EFB\u52A1\u8D1F\u8D23\u4EBA")))]):t._e()],1)],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(i){t.addShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.addLoad>0},on:{click:t.onAdd}},[t._v(t._s(t.$L("\u786E\u5B9A\u6DFB\u52A0")))])],1)],1)],1)},Ae=[];const xe={name:"DialogGroupInfo",components:{UserInput:Ht},props:{dialogId:{type:Number,default:0}},data(){return{searchKey:"",loadIng:0,dialogUser:[],addShow:!1,addData:{},addLoad:0,openIng:!1}},computed:{..._t(["cacheDialogs","cacheUserBasic"]),dialogData(){return this.cacheDialogs.find(({id:t})=>t==this.dialogId)||{}},groupType(){const{group_type:t}=this.dialogData;return t==="department"?"\u90E8\u95E8\u7FA4\u7EC4":t==="project"?"\u9879\u76EE\u7FA4\u7EC4":t==="task"?"\u4EFB\u52A1\u7FA4\u7EC4":t==="user"?"\u4E2A\u4EBA\u7FA4\u7EC4":t==="all"?"\u5168\u5458\u7FA4\u7EC4":"\u672A\u77E5"},userList(){const{dialogUser:t,searchKey:s,cacheUserBasic:e,dialogData:i}=this;return t.map(O=>{const S=e.find(w=>w.userid==O.userid);return S&&(O.nickname=S.nickname,O.email=S.email),O}).filter(O=>!(s&&O.nickname&&!$A.strExists(O.nickname,s)&&!$A.strExists(O.email,s))).sort((O,S)=>O.userid===i.owner_id||S.userid===i.owner_id?(O.userid===i.owner_id?0:1)-(S.userid===i.owner_id?0:1):$A.Date(O.created_at)-$A.Date(S.created_at))}},watch:{dialogId:{handler(){this.getDialogUser()},immediate:!0}},methods:{updateName(t,s){if(!t){s();return}this.$store.dispatch("call",{url:"dialog/group/edit",data:{dialog_id:this.dialogId,chat_name:t}}).then(({data:e})=>{this.$store.dispatch("saveDialog",e),s()}).catch(({msg:e})=>{$A.modalError(e),s()})},getDialogUser(){this.dialogId<=0||(this.loadIng++,this.$store.dispatch("call",{url:"dialog/user",data:{dialog_id:this.dialogId}}).then(({data:t})=>{this.dialogUser=t,this.$store.dispatch("saveDialog",{id:this.dialogId,people:t.length})}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.loadIng--}))},openAdd(){this.addData={dialog_id:this.dialogId,userids:[],disabledChoice:this.dialogUser.map(t=>t.userid)},this.addShow=!0},onAdd(){this.addLoad++,this.$store.dispatch("call",{url:"dialog/group/adduser",data:this.addData}).then(({msg:t})=>{$A.messageSuccess(t),this.addShow=!1,this.addData={},this.getDialogUser()}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.addLoad--})},onExit(t){let s="\u4F60\u786E\u5B9A\u8981\u9000\u51FA\u7FA4\u7EC4\u5417\uFF1F",e=[];$A.isJson(t)&&(s=`\u4F60\u786E\u5B9A\u8981\u5C06\u3010${t.nickname}\u3011\u79FB\u51FA\u7FA4\u7EC4\u5417\uFF1F`,e=[t.userid]),$A.modalConfirm({content:s,loading:!0,onOk:()=>new Promise((i,a)=>{this.$store.dispatch("call",{url:"dialog/group/deluser",data:{dialog_id:this.dialogId,userids:e}}).then(({msg:O})=>{i(O),e.length>0?this.getDialogUser():(this.$store.dispatch("forgetDialog",this.dialogId),this.goForward({name:"manage-messenger"}))}).catch(({msg:O})=>{a(O)})})})},openUser(t){this.openIng||(this.openIng=!0,this.$store.dispatch("openDialogUserid",t).then(s=>{this.$emit("on-close")}).catch(({msg:s})=>{$A.modalError(s)}).finally(s=>{this.openIng=!1}))}}},$t={};var Le=pt(xe,Te,Ae,!1,Ie,null,null,null);function Ie(t){for(let s in $t)this[s]=$t[s]}var De=function(){return Le.exports}(),$e=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"dialog-respond"},[e("div",{staticClass:"respond-title"},[e("em",[t._v(t._s(t.respondData.symbol))]),t._v(t._s(t.$L("\u56DE\u5E94\u8BE6\u60C5"))+" ("+t._s(t.respondData.userids.length)+")")]),e("div",{staticClass:"respond-user"},[e("ul",t._l(t.respondData.userids,function(i,a){return e("li",{key:a,on:{click:function(O){return t.openUser(i)}}},[e("UserAvatar",{attrs:{userid:i,size:32,showName:"",tooltipDisabled:""}})],1)}),0)])])},Ne=[];const Ce={name:"DialogRespond",props:{respondData:{type:Object,default:()=>({})}},data(){return{openIng:!1}},methods:{openUser(t){this.openIng||(this.openIng=!0,this.$store.dispatch("openDialogUserid",t).then(s=>{this.$emit("on-close")}).catch(({msg:s})=>{$A.modalError(s)}).finally(s=>{this.openIng=!1}))}}},Nt={};var Me=pt(Ce,$e,Ne,!1,Pe,null,null,null);function Pe(t){for(let s in Nt)this[s]=Nt[s]}var Re=function(){return Me.exports}(),Vt={exports:{}};/*! * Quill Editor v1.3.7 * https://quilljs.com/ * Copyright (c) 2014, Jason Chen @@ -38,11 +38,11 @@ import{n as pt,d as yt,m as _t,c as Ft,e as Ut,g as Zt,f as Xt,r as Jt}from"./ap `),K}function ot(V,K){if(N(V)&&V.nextElementSibling!=null&&!F(K,` `)){var Q=V.offsetHeight+parseFloat(U(V).marginTop)+parseFloat(U(V).marginBottom);V.nextElementSibling.offsetTop>V.offsetTop+Q*1.5&&K.insert(` -`)}return K}function ut(V,K){var Q={},Z=V.style||{};return Z.fontStyle&&U(V).fontStyle==="italic"&&(Q.italic=!0),Z.fontWeight&&(U(V).fontWeight.startsWith("bold")||parseInt(U(V).fontWeight)>=700)&&(Q.bold=!0),Object.keys(Q).length>0&&(K=P(K,Q)),parseFloat(Z.textIndent||0)>0&&(K=new c.default().insert(" ").concat(K)),K}function lt(V,K){var Q=V.data;if(V.parentNode.tagName==="O:P")return K.insert(Q.trim());if(Q.trim().length===0&&V.parentNode.classList.contains("ql-clipboard"))return K;if(!U(V.parentNode).whiteSpace.startsWith("pre")){var Z=function(et,it){return it=it.replace(/[^\u00a0]/g,""),it.length<1&&et?" ":it};Q=Q.replace(/\r\n/g," ").replace(/\n/g," "),Q=Q.replace(/\s\s+/g,Z.bind(Z,!0)),(V.previousSibling==null&&N(V.parentNode)||V.previousSibling!=null&&N(V.previousSibling))&&(Q=Q.replace(/^\s+/,Z.bind(Z,!1))),(V.nextSibling==null&&N(V.parentNode)||V.nextSibling!=null&&N(V.nextSibling))&&(Q=Q.replace(/\s+$/,Z.bind(Z,!1)))}return K.insert(Q)}i.default=C,i.matchAttributor=H,i.matchBlot=G,i.matchNewline=nt,i.matchSpacing=ot,i.matchText=lt},function(e,i,a){Object.defineProperty(i,"__esModule",{value:!0});var O=function(){function d(f,h){for(var l=0;l '},function(e,i,a){Object.defineProperty(i,"__esModule",{value:!0});var O=function(){function d(f,h){for(var l=0;lr.right&&(f=r.right-d.right,this.root.style.left=c+f+"px"),d.leftr.bottom){var h=d.bottom-d.top,l=m.bottom-m.top+h;this.root.style.top=n-l+"px",this.root.classList.add("ql-flip")}return f}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),b}();i.default=w},function(e,i,a){Object.defineProperty(i,"__esModule",{value:!0});var O=function(){function T(E,v){var y=[],k=!0,D=!1,R=void 0;try{for(var B=E[Symbol.iterator](),W;!(k=(W=B.next()).done)&&(y.push(W.value),!(v&&y.length===v));k=!0);}catch(q){D=!0,R=q}finally{try{!k&&B.return&&B.return()}finally{if(D)throw R}}return y}return function(E,v){if(Array.isArray(E))return E;if(Symbol.iterator in Object(E))return T(E,v);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),S=function T(E,v,y){E===null&&(E=Function.prototype);var k=Object.getOwnPropertyDescriptor(E,v);if(k===void 0){var D=Object.getPrototypeOf(E);return D===null?void 0:T(D,v,y)}else{if("value"in k)return k.value;var R=k.get;return R===void 0?void 0:R.call(y)}},w=function(){function T(E,v){for(var y=0;y','','',''].join(""),i.default=x},function(e,i,a){Object.defineProperty(i,"__esModule",{value:!0});var O=a(29),S=Y(O),w=a(36),b=a(38),_=a(64),m=a(65),c=Y(m),n=a(66),r=Y(n),d=a(67),f=Y(d),h=a(37),l=a(26),u=a(39),p=a(40),o=a(56),g=Y(o),I=a(68),A=Y(I),x=a(27),$=Y(x),T=a(69),E=Y(T),v=a(70),y=Y(v),k=a(71),D=Y(k),R=a(72),B=Y(R),W=a(73),q=Y(W),M=a(13),L=Y(M),C=a(74),P=Y(C),U=a(75),F=Y(U),N=a(57),j=Y(N),z=a(41),H=Y(z),G=a(28),X=Y(G),J=a(59),tt=Y(J),nt=a(60),ot=Y(nt),ut=a(61),lt=Y(ut),V=a(108),K=Y(V),Q=a(62),Z=Y(Q);function Y(et){return et&&et.__esModule?et:{default:et}}S.default.register({"attributors/attribute/direction":b.DirectionAttribute,"attributors/class/align":w.AlignClass,"attributors/class/background":h.BackgroundClass,"attributors/class/color":l.ColorClass,"attributors/class/direction":b.DirectionClass,"attributors/class/font":u.FontClass,"attributors/class/size":p.SizeClass,"attributors/style/align":w.AlignStyle,"attributors/style/background":h.BackgroundStyle,"attributors/style/color":l.ColorStyle,"attributors/style/direction":b.DirectionStyle,"attributors/style/font":u.FontStyle,"attributors/style/size":p.SizeStyle},!0),S.default.register({"formats/align":w.AlignClass,"formats/direction":b.DirectionClass,"formats/indent":_.IndentClass,"formats/background":h.BackgroundStyle,"formats/color":l.ColorStyle,"formats/font":u.FontClass,"formats/size":p.SizeClass,"formats/blockquote":c.default,"formats/code-block":L.default,"formats/header":r.default,"formats/list":f.default,"formats/bold":g.default,"formats/code":M.Code,"formats/italic":A.default,"formats/link":$.default,"formats/script":E.default,"formats/strike":y.default,"formats/underline":D.default,"formats/image":B.default,"formats/video":q.default,"formats/list/item":d.ListItem,"modules/formula":P.default,"modules/syntax":F.default,"modules/toolbar":j.default,"themes/bubble":K.default,"themes/snow":Z.default,"ui/icons":H.default,"ui/picker":X.default,"ui/icon-picker":ot.default,"ui/color-picker":tt.default,"ui/tooltip":lt.default},!0),i.default=S.default},function(e,i,a){Object.defineProperty(i,"__esModule",{value:!0}),i.IndentClass=void 0;var O=function(){function f(h,l){for(var u=0;u0&&this.children.tail.format(A,x)}},{key:"formats",value:function(){return d({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(A,x){if(A instanceof u)S(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"insertBefore",this).call(this,A,x);else{var $=x==null?this.length():x.offset(this),T=this.split($);T.parent.insertBefore(A,T)}}},{key:"optimize",value:function(A){S(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"optimize",this).call(this,A);var x=this.next;x!=null&&x.prev===this&&x.statics.blotName===this.statics.blotName&&x.domNode.tagName===this.domNode.tagName&&x.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(x.moveChildren(this),x.remove())}},{key:"replace",value:function(A){if(A.statics.blotName!==this.statics.blotName){var x=b.default.create(this.statics.defaultChild);A.moveChildren(x),this.appendChild(x)}S(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"replace",this).call(this,A)}}]),g}(n.default);p.blotName="list",p.scope=b.default.Scope.BLOCK_BLOT,p.tagName=["OL","UL"],p.defaultChild="list-item",p.allowedChildren=[u],i.ListItem=u,i.default=p},function(e,i,a){Object.defineProperty(i,"__esModule",{value:!0});var O=a(56),S=w(O);function w(n){return n&&n.__esModule?n:{default:n}}function b(n,r){if(!(n instanceof r))throw new TypeError("Cannot call a class as a function")}function _(n,r){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:n}function m(n,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);n.prototype=Object.create(r&&r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(n,r):n.__proto__=r)}var c=function(n){m(r,n);function r(){return b(this,r),_(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return r}(S.default);c.blotName="italic",c.tagName=["EM","I"],i.default=c},function(e,i,a){Object.defineProperty(i,"__esModule",{value:!0});var O=function(){function d(f,h){for(var l=0;l-1?o?this.domNode.setAttribute(p,o):this.domNode.removeAttribute(p):S(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"format",this).call(this,p,o)}}],[{key:"create",value:function(p){var o=S(l.__proto__||Object.getPrototypeOf(l),"create",this).call(this,p);return typeof p=="string"&&o.setAttribute("src",this.sanitize(p)),o}},{key:"formats",value:function(p){return d.reduce(function(o,g){return p.hasAttribute(g)&&(o[g]=p.getAttribute(g)),o},{})}},{key:"match",value:function(p){return/\.(jpe?g|gif|png)$/.test(p)||/^data:image\/.+;base64/.test(p)}},{key:"sanitize",value:function(p){return(0,_.sanitize)(p,["http","https","data"])?p:"//:0"}},{key:"value",value:function(p){return p.getAttribute("src")}}]),l}(b.default.Embed);f.blotName="image",f.tagName="IMG",i.default=f},function(e,i,a){Object.defineProperty(i,"__esModule",{value:!0});var O=function(){function h(l,u){for(var p=0;p-1?o?this.domNode.setAttribute(p,o):this.domNode.removeAttribute(p):S(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"format",this).call(this,p,o)}}],[{key:"create",value:function(p){var o=S(l.__proto__||Object.getPrototypeOf(l),"create",this).call(this,p);return o.setAttribute("frameborder","0"),o.setAttribute("allowfullscreen",!0),o.setAttribute("src",this.sanitize(p)),o}},{key:"formats",value:function(p){return d.reduce(function(o,g){return p.hasAttribute(g)&&(o[g]=p.getAttribute(g)),o},{})}},{key:"sanitize",value:function(p){return _.default.sanitize(p)}},{key:"value",value:function(p){return p.getAttribute("src")}}]),l}(w.BlockEmbed);f.blotName="video",f.className="ql-video",f.tagName="IFRAME",i.default=f},function(e,i,a){Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.FormulaBlot=void 0;var O=function(){function p(o,g){for(var I=0;I0||this.cachedText==null)&&(this.domNode.innerHTML=$(T),this.domNode.normalize(),this.attach()),this.cachedText=T)}}]),A}(d.default);p.className="ql-syntax";var o=new b.default.Attributor.Class("token","hljs",{scope:b.default.Scope.INLINE}),g=function(I){u(A,I),O(A,null,[{key:"register",value:function(){m.default.register(o,!0),m.default.register(p,!0)}}]);function A(x,$){h(this,A);var T=l(this,(A.__proto__||Object.getPrototypeOf(A)).call(this,x,$));if(typeof T.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var E=null;return T.quill.on(m.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(E),E=setTimeout(function(){T.highlight(),E=null},T.options.interval)}),T.highlight(),T}return O(A,[{key:"highlight",value:function(){var $=this;if(!this.quill.selection.composing){this.quill.update(m.default.sources.USER);var T=this.quill.getSelection();this.quill.scroll.descendants(p).forEach(function(E){E.highlight($.options.highlight)}),this.quill.update(m.default.sources.SILENT),T!=null&&this.quill.setSelection(T,m.default.sources.SILENT)}}}]),A}(n.default);g.DEFAULTS={highlight:function(){return window.hljs==null?null:function(I){var A=window.hljs.highlightAuto(I);return A.value}}(),interval:1e3},i.CodeBlock=p,i.CodeToken=o,i.default=g},function(e,i){e.exports=' '},function(e,i){e.exports=' '},function(e,i){e.exports=' '},function(e,i){e.exports=' '},function(e,i){e.exports=' '},function(e,i){e.exports=' '},function(e,i){e.exports=' '},function(e,i){e.exports=' '},function(e,i){e.exports=' '},function(e,i){e.exports=' '},function(e,i){e.exports=' '},function(e,i){e.exports=' '},function(e,i){e.exports=' '},function(e,i){e.exports=' '},function(e,i){e.exports=' '},function(e,i){e.exports=' '},function(e,i){e.exports=' '},function(e,i){e.exports=' '},function(e,i){e.exports=' '},function(e,i){e.exports=' '},function(e,i){e.exports=' '},function(e,i){e.exports=' '},function(e,i){e.exports=' '},function(e,i){e.exports=' '},function(e,i){e.exports=' '},function(e,i){e.exports=' '},function(e,i){e.exports=' '},function(e,i){e.exports=' '},function(e,i){e.exports=' '},function(e,i){e.exports=' '},function(e,i){e.exports=' '},function(e,i){e.exports=' '},function(e,i,a){Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.BubbleTooltip=void 0;var O=function A(x,$,T){x===null&&(x=Function.prototype);var E=Object.getOwnPropertyDescriptor(x,$);if(E===void 0){var v=Object.getPrototypeOf(x);return v===null?void 0:A(v,$,T)}else{if("value"in E)return E.value;var y=E.get;return y===void 0?void 0:y.call(T)}},S=function(){function A(x,$){for(var T=0;T<$.length;T++){var E=$[T];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(x,E.key,E)}}return function(x,$,T){return $&&A(x.prototype,$),T&&A(x,T),x}}(),w=a(3),b=h(w),_=a(8),m=h(_),c=a(43),n=h(c),r=a(15),d=a(41),f=h(d);function h(A){return A&&A.__esModule?A:{default:A}}function l(A,x){if(!(A instanceof x))throw new TypeError("Cannot call a class as a function")}function u(A,x){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:A}function p(A,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);A.prototype=Object.create(x&&x.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(A,x):A.__proto__=x)}var o=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],g=function(A){p(x,A);function x($,T){l(this,x),T.modules.toolbar!=null&&T.modules.toolbar.container==null&&(T.modules.toolbar.container=o);var E=u(this,(x.__proto__||Object.getPrototypeOf(x)).call(this,$,T));return E.quill.container.classList.add("ql-bubble"),E}return S(x,[{key:"extendToolbar",value:function(T){this.tooltip=new I(this.quill,this.options.bounds),this.tooltip.root.appendChild(T.container),this.buildButtons([].slice.call(T.container.querySelectorAll("button")),f.default),this.buildPickers([].slice.call(T.container.querySelectorAll("select")),f.default)}}]),x}(n.default);g.DEFAULTS=(0,b.default)(!0,{},n.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(x){x?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var I=function(A){p(x,A);function x($,T){l(this,x);var E=u(this,(x.__proto__||Object.getPrototypeOf(x)).call(this,$,T));return E.quill.on(m.default.events.EDITOR_CHANGE,function(v,y,k,D){if(v===m.default.events.SELECTION_CHANGE)if(y!=null&&y.length>0&&D===m.default.sources.USER){E.show(),E.root.style.left="0px",E.root.style.width="",E.root.style.width=E.root.offsetWidth+"px";var R=E.quill.getLines(y.index,y.length);if(R.length===1)E.position(E.quill.getBounds(y));else{var B=R[R.length-1],W=E.quill.getIndex(B),q=Math.min(B.length()-1,y.index+y.length-W),M=E.quill.getBounds(new r.Range(W,q));E.position(M)}}else document.activeElement!==E.textbox&&E.quill.hasFocus()&&E.hide()}),E}return S(x,[{key:"listen",value:function(){var T=this;O(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){T.root.classList.remove("ql-editing")}),this.quill.on(m.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!T.root.classList.contains("ql-hidden")){var E=T.quill.getSelection();E!=null&&T.position(T.quill.getBounds(E))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(T){var E=O(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"position",this).call(this,T),v=this.root.querySelector(".ql-tooltip-arrow");if(v.style.marginLeft="",E===0)return E;v.style.marginLeft=-1*E-v.offsetWidth/2+"px"}}]),x}(c.BaseTooltip);I.TEMPLATE=['','

','','',"
"].join(""),i.BubbleTooltip=I,i.default=g},function(e,i,a){e.exports=a(63)}]).default})})(Vt);var dt=Zt(Vt.exports);function wt(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?wt=function(s){return typeof s}:wt=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},wt(t)}function Kt(t,s){if(!(t instanceof s))throw new TypeError("Cannot call a class as a function")}function Ct(t,s){for(var e=0;et.length)&&(s=t.length);for(var e=0,i=new Array(s);e=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(b){throw b},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var O=!0,S=!1,w;return{s:function(){e=e.call(t)},n:function(){var b=e.next();return O=b.done,b},e:function(b){S=!0,w=b},f:function(){try{!O&&e.return!=null&&e.return()}finally{if(S)throw w}}}}var ht={TAB:9,ENTER:13,ESCAPE:27,UP:38,DOWN:40};function He(t,s,e){var i=t;return Object.keys(s).forEach(function(a){e.indexOf(a)>-1?i.dataset[a]=s[a]:delete i.dataset[a]}),i}function Ve(t,s){return s.reduce(function(e,i){var a=t.lastIndexOf(i);return a>e.mentionCharIndex?{mentionChar:i,mentionCharIndex:a}:{mentionChar:e.mentionChar,mentionCharIndex:e.mentionCharIndex}},{mentionChar:null,mentionCharIndex:-1})}function Ke(t,s){return s.test(t)}function We(t,s,e){return t>-1?!(e&&!(t===0||!!s[t-1].match(/\s/g))):!1}function Ge(t){return wt(t)!=="object"||t===null?t:JSON.parse(JSON.stringify(t))}var Ye=dt.import("blots/embed"),Ot=function(t){Re(e,t);var s=Be(e);function e(i,a){var O;return Kt(this,e),O=s.call(this,i,a),Mt(St(O),"hoverHandler",void 0),Mt(St(O),"hoverHandler",void 0),O.clickHandler=null,O.hoverHandler=null,O.mounted=!1,O}return Wt(e,[{key:"attach",value:function(){bt(vt(e.prototype),"attach",this).call(this),this.mounted||(this.mounted=!0,this.clickHandler=this.getClickHandler(),this.hoverHandler=this.getHoverHandler(),this.domNode.addEventListener("click",this.clickHandler,!1),this.domNode.addEventListener("mouseenter",this.hoverHandler,!1))}},{key:"detach",value:function(){bt(vt(e.prototype),"detach",this).call(this),this.mounted=!1,this.clickHandler&&(this.domNode.removeEventListener("click",this.clickHandler),this.clickHandler=null)}},{key:"getClickHandler",value:function(){var a=this;return function(O){var S=a.buildEvent("mention-clicked",O);window.dispatchEvent(S),O.preventDefault()}}},{key:"getHoverHandler",value:function(){var a=this;return function(O){var S=a.buildEvent("mention-hovered",O);window.dispatchEvent(S),O.preventDefault()}}},{key:"buildEvent",value:function(a,O){var S=new Event(a,{bubbles:!0,cancelable:!0});return S.value=kt({},this.domNode.dataset),S.event=O,S}}],[{key:"create",value:function(a){var O=bt(vt(e),"create",this).call(this),S=document.createElement("span");return S.className="ql-mention-denotation-char",S.innerHTML=a.denotationChar,O.appendChild(S),O.innerHTML+=a.value,e.setDataValues(O,a)}},{key:"setDataValues",value:function(a,O){var S=a;return Object.keys(O).forEach(function(w){S.dataset[w]=O[w]}),S}},{key:"value",value:function(a){return a.dataset}}]),e}(Ye);Ot.blotName="mention";Ot.tagName="span";Ot.className="mention";dt.register(Ot);var Qe=function(){function t(s,e){var i=this;Kt(this,t),this.isOpen=!1,this.itemIndex=0,this.mentionCharPos=null,this.cursorPos=null,this.values=[],this.suspendMouseEnter=!1,this.existingSourceExecutionToken=null,this.quill=s,this.options={source:null,renderItem:function(b){return"".concat(b.value)},renderLoading:function(){return null},onSelect:function(b,_){_(b)},mentionDenotationChars:["@"],showDenotationChar:!0,allowedChars:/^[a-zA-Z0-9_]*$/,minChars:0,maxChars:31,offsetTop:2,offsetLeft:0,isolateCharacter:!1,fixMentionsToQuill:!1,positioningStrategy:"normal",defaultMenuOrientation:"bottom",blotName:"mention",dataAttributes:["id","value","denotationChar","link","target","disabled"],linkTarget:"_blank",onOpen:function(){return!0},onBeforeClose:function(){return!0},onClose:function(){return!0},listItemClass:"ql-mention-list-item",mentionContainerClass:"ql-mention-list-container",mentionListClass:"ql-mention-list",spaceAfterInsert:!0,selectKeys:[ht.ENTER]},kt(this.options,e,{dataAttributes:Array.isArray(e.dataAttributes)?this.options.dataAttributes.concat(e.dataAttributes):this.options.dataAttributes}),this.mentionContainer=document.createElement("div"),this.mentionContainer.className=this.options.mentionContainerClass?this.options.mentionContainerClass:"",this.mentionContainer.style.cssText="display: none; position: absolute;",this.mentionContainer.onmousemove=this.onContainerMouseMove.bind(this),this.options.fixMentionsToQuill&&(this.mentionContainer.style.width="auto"),this.mentionList=document.createElement("ul"),this.mentionList.id="quill-mention-list",s.root.setAttribute("aria-owns","quill-mention-list"),this.mentionList.className=this.options.mentionListClass?this.options.mentionListClass:"",this.mentionContainer.appendChild(this.mentionList),s.on("text-change",this.onTextChange.bind(this)),s.on("selection-change",this.onSelectionChange.bind(this)),s.container.addEventListener("paste",function(){setTimeout(function(){var w=s.getSelection();i.onSelectionChange(w)})}),s.keyboard.addBinding({key:ht.TAB},this.selectHandler.bind(this)),s.keyboard.bindings[ht.TAB].unshift(s.keyboard.bindings[ht.TAB].pop());var a=ze(this.options.selectKeys),O;try{for(a.s();!(O=a.n()).done;){var S=O.value;s.keyboard.addBinding({key:S},this.selectHandler.bind(this))}}catch(w){a.e(w)}finally{a.f()}s.keyboard.bindings[ht.ENTER].unshift(s.keyboard.bindings[ht.ENTER].pop()),s.keyboard.addBinding({key:ht.ESCAPE},this.escapeHandler.bind(this)),s.keyboard.addBinding({key:ht.UP},this.upHandler.bind(this)),s.keyboard.addBinding({key:ht.DOWN},this.downHandler.bind(this))}return Wt(t,[{key:"selectHandler",value:function(){return this.isOpen&&!this.existingSourceExecutionToken?(this.selectItem(),!1):!0}},{key:"escapeHandler",value:function(){return this.isOpen?(this.existingSourceExecutionToken&&(this.existingSourceExecutionToken.abandoned=!0),this.hideMentionList(),!1):!0}},{key:"upHandler",value:function(){return this.isOpen&&!this.existingSourceExecutionToken?(this.prevItem(),!1):!0}},{key:"downHandler",value:function(){return this.isOpen&&!this.existingSourceExecutionToken?(this.nextItem(),!1):!0}},{key:"showMentionList",value:function(){this.options.positioningStrategy==="fixed"?document.body.appendChild(this.mentionContainer):this.quill.container.appendChild(this.mentionContainer),this.mentionContainer.style.visibility="hidden",this.mentionContainer.style.display="",this.mentionContainer.scrollTop=0,this.setMentionContainerPosition(),this.setIsOpen(!0)}},{key:"hideMentionList",value:function(){this.options.onBeforeClose(),this.mentionContainer.style.display="none",this.mentionContainer.remove(),this.setIsOpen(!1),this.quill.root.removeAttribute("aria-activedescendant")}},{key:"highlightItem",value:function(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,i=0;iw-a&&(this.mentionContainer.scrollTop+=O-w+a)}}},{key:"getItemData",value:function(){var e=this.mentionList.childNodes[this.itemIndex].dataset.link,i=typeof e!="undefined",a=this.mentionList.childNodes[this.itemIndex].dataset.target;return i&&(this.mentionList.childNodes[this.itemIndex].dataset.value='-1&&(n=setTimeout(function(){m(),c(),a({statusText:"Request Timeout",status:408})},e)),window[S]=function(d){clearTimeout(n),m(),c(),i(d)};var r=document.createElement("script");r.addEventListener("error",_),r.src=t+(/\?/.test(t)?"&":"?")+b,document.body.appendChild(r)})}var Xe=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"chat-emoji-wrapper"},[e("div",{staticClass:"chat-emoji-box"},[t.type==="emosearch"?e("div",{staticClass:"chat-emoji-emosearch"},[e("Input",{attrs:{clearable:"",placeholder:t.$L("\u641C\u7D22\u8868\u60C5")},model:{value:t.emosearchKey,callback:function(i){t.emosearchKey=i},expression:"emosearchKey"}},[e("Icon",{class:{"icon-loading":t.emosearchLoad},attrs:{slot:"prefix",type:t.emosearchLoad?"ios-loading":"ios-search"},slot:"prefix"})],1)],1):t._e(),e("ul",{staticClass:"scrollbar-overlay",class:[t.type,"no-dark-content"]},t._l(t.list,function(i){return e("li",{on:{click:function(a){return t.onSelect(a,i)}}},[i.type==="emoticon"?e("img",{attrs:{src:i.src,title:i.name,alt:i.name}}):e("span",{attrs:{title:i.name},domProps:{innerHTML:t._s(i.html)}})])}),0)]),e("ul",{staticClass:"chat-emoji-menu"},[e("li",{class:{active:t.type==="emosearch"},on:{click:function(i){t.type="emosearch"}}},[e("i",{staticClass:"taskfont"},[t._v("\uE6F8")])]),e("li",{class:{active:t.type==="emoji"},on:{click:function(i){t.type="emoji"}}},[e("span",{staticClass:"no-dark-content"},[t._v("\u{1F600}")])]),t._l(t.emoticonData,function(i){return e("li",{class:{active:t.type==="emoticon"&&t.emoticonPath==i.path},on:{click:function(a){return t.onEmoticon(i.path)}}},[e("img",{attrs:{title:i.name,alt:i.name,src:i.src}})])})],2)])},Je=[];const ti={name:"ChatEmoji",props:{searchKey:{type:String,default:""}},data(){return{type:"emoji",emoticonPath:"",emosearchKey:"",emosearchCache:null,emosearchLoad:!1,emosearchTimer:null,emosearchList:[],emojiData:[],emoticonData:[]}},mounted(){this.initData()},watch:{type(){this.onEmosearch()},emosearchKey(){this.onEmosearch()},searchKey:{handler(t){this.emosearchKey=t},immediate:!0}},computed:{list(){if(this.type==="emoji")return this.emojiData;if(this.type==="emosearch")return this.emosearchList;if(this.type==="emoticon"){const t=this.emoticonData.find(({path:s})=>s===this.emoticonPath);if(t)return t.list}return[]}},methods:{initData(){$A.loadScriptS(["js/emoji.all.js","js/emoticon.all.js"],t=>{const s=$A.apiUrl("../images/emoticon");$A.isArray(window.emojiData)&&(this.emojiData=window.emojiData.sort(function(e,i){return e.emoji_order-i.emoji_order}).map(e=>({type:"emoji",name:e.name,html:e.code_decimal}))),$A.isArray(window.emoticonData)&&(this.emoticonData=window.emoticonData.map(e=>Object.assign(e,{src:`${s}/${e.path}/${e.icon}`,list:e.list.map(i=>Object.assign(i,{type:"emoticon",asset:`images/emoticon/${e.path}/${i.path}`,src:`${s}/${e.path}/${i.path}`}))})))})},onEmosearch(){this.type!=="emosearch"||this.emosearchCache===this.emosearchKey||(this.emosearchCache=this.emosearchKey,this.emosearchLoad=!0,this.emosearchTimer&&clearTimeout(this.emosearchTimer),this.emosearchTimer=setTimeout(t=>{Ze("https://pic.sogou.com/napi/wap/pic",{query:this.emosearchKey+" \u8868\u60C5"}).then(s=>{if(this.emosearchList=[],s.status===0){const e=s.data.items;e.length>0&&(this.emosearchList=e.map(i=>({type:"emoticon",asset:"emosearch",name:i.title,src:i.thumbUrl,height:i.thumbHeight,width:i.thumbWidth})))}this.emosearchList.length===0&&$A.noticeWarning("\u6CA1\u6709\u641C\u7D22\u5230\u4EFB\u4F55\u8868\u60C5")}).catch(s=>{this.emosearchList=[],$A.noticeWarning("\u641C\u7D22\u7ED3\u679C\u4E3A\u7A7A")}).finally(s=>{this.emosearchLoad=!1})},300))},onEmoticon(t){this.type="emoticon",this.emoticonPath=t},onSelect(t,s){s.type==="emoji"?this.$emit("on-select",{type:"emoji",text:t.target.innerText}):this.$emit("on-select",s)}}},Rt={};var ei=pt(ti,Xe,Je,!1,ii,null,null,null);function ii(t){for(let s in Rt)this[s]=Rt[s]}var ni=function(){return ei.exports}();const jt="ontouchend"in document;var ri={bind(t,s){let e=!1;t.__touchMouseDown__=i=>{i.preventDefault(),e=!0,s.value("down",i)},t.__touchMouseMove__=i=>{e&&s.value("move",i)},t.__touchMouseUp__=i=>{e&&(e=!1,s.value("up"))},jt?(t.addEventListener("touchstart",t.__touchMouseDown__),t.addEventListener("touchmove",t.__touchMouseMove__),t.addEventListener("touchend",t.__touchMouseUp__)):(t.addEventListener("mousedown",t.__touchMouseDown__),document.addEventListener("mousemove",t.__touchMouseMove__),document.addEventListener("mouseup",t.__touchMouseUp__))},update(){},unbind(t){jt?(t.removeEventListener("touchstart",t.__touchMouseDown__),t.removeEventListener("touchmove",t.__touchMouseMove__),t.removeEventListener("touchend",t.__touchMouseUp__)):(t.removeEventListener("mousedown",t.__touchMouseDown__),document.removeEventListener("mousemove",t.__touchMouseMove__),document.removeEventListener("mouseup",t.__touchMouseUp__)),delete t.__touchMouseDown__,delete t.__touchMouseMove__,delete t.__touchMouseUp__}};function gt(t){return t===void 0&&(t=document.body),t===!0?document.body:t instanceof window.Node?t:document.querySelector(t)}const oi={inserted(t,{value:s},e){if(t.dataset&&t.dataset.transfer!=="true")return!1;t.className=t.className?t.className+" v-transfer-dom":"v-transfer-dom";const i=t.parentNode;if(!i)return;const a=document.createComment("");let O=!1;s!==!1&&(i.replaceChild(a,t),gt(s).appendChild(t),O=!0),t.__transferDomData||(t.__transferDomData={parentNode:i,home:a,target:gt(s),hasMovedOut:O})},componentUpdated(t,{value:s}){if(t.dataset&&t.dataset.transfer!=="true")return!1;const e=t.__transferDomData;if(!e)return;const i=e.parentNode,a=e.home,O=e.hasMovedOut;!O&&s?(i.replaceChild(a,t),gt(s).appendChild(t),t.__transferDomData=Object.assign({},t.__transferDomData,{hasMovedOut:!0,target:gt(s)})):O&&s===!1?(i.replaceChild(t,a),t.__transferDomData=Object.assign({},t.__transferDomData,{hasMovedOut:!1,target:gt(s)})):s&>(s).appendChild(t)},unbind(t){if(t.dataset&&t.dataset.transfer!=="true")return!1;t.className=t.className.replace("v-transfer-dom",""),t.__transferDomData&&(t.__transferDomData.hasMovedOut===!0&&t.__transferDomData.parentNode&&t.__transferDomData.parentNode.appendChild(t),t.__transferDomData=null)}};var ai=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:t.hidePopover,expression:"hidePopover"}],staticClass:"chat-input-box",class:t.boxClass},[e("div",{staticClass:"chat-input-quick-emoji"},[e("EPopover",{ref:"emojiQuickRef",attrs:{visibleArrow:!1,transition:"",placement:"top-end",popperClass:"chat-quick-emoji-popover"},model:{value:t.emojiQuickShow,callback:function(i){t.emojiQuickShow=i},expression:"emojiQuickShow"}},[e("div",{attrs:{slot:"reference"},slot:"reference"}),e("ul",{staticClass:"chat-quick-emoji-wrapper"},t._l(t.emojiQuickItems,function(i){return e("li",{on:{click:function(a){return t.onEmojiQuick(i)}}},[e("img",{attrs:{title:i.name,alt:i.name,src:i.src}})])}),0)])],1),e("div",{staticClass:"chat-input-wrapper",on:{click:function(i){return i.stopPropagation(),t.focus.apply(null,arguments)}}},[t.replyData?e("div",{staticClass:"chat-reply"},[e("UserAvatar",{attrs:{userid:t.replyData.userid,"show-icon":!1,"show-name":!0,"tooltip-disabled":!0}}),e("div",{staticClass:"reply-desc"},[t._v(t._s(t.$A.getMsgSimpleDesc(t.replyData)))]),e("i",{staticClass:"taskfont",on:{click:function(i){return i.stopPropagation(),t.onCancelReply.apply(null,arguments)}}},[t._v("\uE6E5")])],1):t._e(),e("div",{ref:"editor",staticClass:"no-dark-content",style:t.editorStyle,on:{click:function(i){return i.stopPropagation(),t.onClickEditor.apply(null,arguments)},paste:t.handlePaste}}),e("ul",{staticClass:"chat-toolbar",on:{click:function(i){i.stopPropagation()}}},[e("li",[t.emojiBottom?e("ETooltip",{ref:"emojiTip",attrs:{disabled:t.windowSmall||t.$isEEUiApp||t.showEmoji,placement:"top",content:t.$L("\u8868\u60C5")}},[e("i",{staticClass:"taskfont",on:{click:function(i){t.showEmoji=!t.showEmoji}}},[t._v("\uE7AD")])]):e("EPopover",{attrs:{visibleArrow:!1,placement:"top",popperClass:"chat-input-emoji-popover"},model:{value:t.showEmoji,callback:function(i){t.showEmoji=i},expression:"showEmoji"}},[e("ETooltip",{ref:"emojiTip",attrs:{slot:"reference",disabled:t.windowSmall||t.$isEEUiApp||t.showEmoji,placement:"top",content:t.$L("\u8868\u60C5")},slot:"reference"},[e("i",{staticClass:"taskfont"},[t._v("\uE7AD")])]),t.showEmoji?e("ChatEmoji",{attrs:{searchKey:t.emojiQuickKey},on:{"on-select":t.onSelectEmoji}}):t._e()],1)],1),e("li",[e("ETooltip",{attrs:{placement:"top",disabled:t.windowSmall||t.$isEEUiApp,content:t.$L("\u9009\u62E9\u6210\u5458")}},[e("i",{staticClass:"taskfont",on:{click:function(i){return t.onToolbar("user")}}},[t._v("\uE78F")])])],1),e("li",[e("ETooltip",{attrs:{placement:"top",disabled:t.windowSmall||t.$isEEUiApp,content:t.$L("\u9009\u62E9\u4EFB\u52A1")}},[e("i",{staticClass:"taskfont",on:{click:function(i){return t.onToolbar("task")}}},[t._v("\uE7D6")])])],1),e("li",[e("EPopover",{attrs:{visibleArrow:!1,placement:"top",popperClass:"chat-input-more-popover"},model:{value:t.showMore,callback:function(i){t.showMore=i},expression:"showMore"}},[e("ETooltip",{ref:"moreTip",attrs:{slot:"reference",disabled:t.windowSmall||t.$isEEUiApp||t.showMore,placement:"top",content:t.$L("\u5C55\u5F00")},slot:"reference"},[e("i",{staticClass:"taskfont"},[t._v("\uE790")])]),t.recordReady?e("div",{staticClass:"chat-input-popover-item",on:{click:function(i){return t.onToolbar("meeting")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE7C1")]),t._v(" "+t._s(t.$L("\u65B0\u4F1A\u8BAE"))+" ")]):t._e(),t.dialogData.type==="user"&&t.$isEEUiApp?e("div",{staticClass:"chat-input-popover-item",on:{click:function(i){return t.onToolbar("call")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE7BA")]),t._v(" "+t._s(t.$L("\u62E8\u6253\u7535\u8BDD"))+" ")]):t._e(),e("div",{staticClass:"chat-input-popover-item",on:{click:function(i){return t.onToolbar("image")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE7BC")]),t._v(" "+t._s(t.$L("\u53D1\u9001\u56FE\u7247"))+" ")]),e("div",{staticClass:"chat-input-popover-item",on:{click:function(i){return t.onToolbar("file")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE7C0")]),t._v(" "+t._s(t.$L("\u4E0A\u4F20\u6587\u4EF6"))+" ")])],1)],1),e("li",{directives:[{name:"touchmouse",rawName:"v-touchmouse",value:t.clickSend,expression:"clickSend"}],staticClass:"chat-send",class:t.sendClass},[e("ETooltip",{attrs:{placement:"top",disabled:t.windowSmall||t.$isEEUiApp,content:t.$L(t.sendClass==="recorder"?"\u957F\u6309\u5F55\u97F3":"\u53D1\u9001")}},[t.loading?e("div",[e("div",{staticClass:"chat-load"},[e("Loading")],1)]):e("div",[e("transition",{attrs:{name:"mobile-send"}},[t.sendClass==="recorder"?e("i",{staticClass:"taskfont"},[t._v("\uE609")]):t._e()]),e("transition",{attrs:{name:"mobile-send"}},[t.sendClass!=="recorder"?e("i",{staticClass:"taskfont"},[t._v("\uE606")]):t._e()])],1)])],1),t.recordReady?e("li",{staticClass:"chat-record-recwave"},[e("div",{ref:"recwave"})]):t._e()]),e("div",{staticClass:"chat-cover",on:{click:function(i){return i.stopPropagation(),t.onClickCover.apply(null,arguments)}}})]),t.emojiBottom&&t.showEmoji?e("ChatEmoji",{attrs:{searchKey:t.emojiQuickKey},on:{"on-select":t.onSelectEmoji}}):t._e(),e("transition",{attrs:{name:"fade"}},[["ready","ing"].includes(t.recordState)?e("div",{directives:[{name:"transfer-dom",rawName:"v-transfer-dom"}],staticClass:"chat-input-record-transfer",class:{cancel:t.touchLimitY},style:t.recordTransferStyle,attrs:{"data-transfer":!0},on:{click:t.stopRecord}},[t.recordDuration>0?e("div",{staticClass:"record-duration"},[t._v(t._s(t.recordFormatDuration))]):e("div",{staticClass:"record-loading"},[e("Loading")],1),e("div",{staticClass:"record-cancel",on:{click:function(i){return i.stopPropagation(),t.stopRecord(!0)}}},[t._v(t._s(t.$L(t.touchLimitY?"\u677E\u5F00\u53D6\u6D88":"\u5411\u4E0A\u6ED1\u52A8\u53D6\u6D88")))])]):t._e()])],1)},si=[];const li={name:"ChatInput",components:{ChatEmoji:ni},directives:{touchmouse:ri,TransferDom:oi,clickoutside:Xt},props:{value:{type:[String,Number],default:""},dialogId:{type:Number,default:0},taskId:{type:Number,default:0},placeholder:{type:String,default:""},disabled:{type:Boolean,default:!1},disabledRecord:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},enterSend:{type:[String,Boolean],default:null},emojiBottom:{type:Boolean,default:!1},options:{type:Object,default:()=>({})},maxlength:{type:Number},defaultMenuOrientation:{type:String,default:"top"},replyId:{type:Number,default:0}},data(){return{quill:null,isFocus:!1,rangeIndex:0,_content:"",_options:{},mentionMode:"",userList:null,userCache:null,taskList:null,fileList:{},showMore:!1,showEmoji:!1,emojiQuickTimer:null,emojiQuickShow:!1,emojiQuickKey:"",emojiQuickItems:[],observer:null,wrapperWidth:0,wrapperHeight:0,editorHeight:0,recordReady:!1,recordRec:null,recordBlob:null,recordWave:null,recordInter:null,recordState:"stop",recordDuration:0,touchStart:{},touchLimitX:!1,touchLimitY:!1,pasteClean:!0,isSpecVersion:this.checkIOSVersion()}},mounted(){this.init(),this.observer=new ResizeObserver(t=>{t.some(({target:s,contentRect:e})=>{s===this.$el?(this.wrapperWidth=e.width,this.wrapperHeight=e.height):s===this.$refs.editor&&(this.editorHeight=e.height)})}),this.observer.observe(this.$el),this.observer.observe(this.$refs.editor),this.recordInter=setInterval(t=>{this.recordState==="ing"&&(this.__recordDuration&&this.__recordDuration===this.recordDuration?(this.__recordDuration=null,this.stopRecord(!0),$A.messageWarning("\u5F55\u97F3\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5")):this.__recordDuration=this.recordDuration)},1e3),this.$isEEUiApp&&(window.__onPermissionRequest=(t,s)=>{console.log(t,s),t==="recordAudio"&&s===!1&&this.stopRecord(!0)})},beforeDestroy(){this.quill&&(this.quill=null),this.observer&&(this.observer.disconnect(),this.observer=null),this.recordInter&&clearInterval(this.recordInter)},computed:{..._t(["dialogInputCache","cacheProjects","cacheTasks","cacheUserBasic","dialogMsgs","cacheDialogs"]),isEnterSend(){return typeof this.enterSend=="boolean"?this.enterSend:this.$store.state.windowLarge},editorStyle(){const{wrapperWidth:t,editorHeight:s}=this;return t>0&&s>0&&(t<280||s>40)?{width:"100%"}:{}},recordTransferStyle(){const{windowScrollY:t}=this;return t>0?{marginTop:t/2+"px"}:null},boxClass(){const t=[];return["ready","ing"].includes(this.recordState)&&(this.recordState==="ing"&&this.recordDuration>0?t.push("record-progress"):t.push("record-ready")),this.showMore&&t.push("show-more"),this.showEmoji&&t.push("show-emoji"),this.mentionMode&&t.push(this.mentionMode),t},sendClass(){return this.value?"sender":this.recordReady?"recorder":""},recordFormatDuration(){const{recordDuration:t}=this;let s=Math.floor(t/6e4),e=Math.floor(t/1e3)%60,i=("00"+t%1e3).substr(-2);return s<10&&(s=`0${s}`),e<10&&(e=`0${e}`),`${s}:${e}\u2033${i}`},dialogData(){return this.dialogId>0?this.cacheDialogs.find(({id:t})=>t==this.dialogId)||{}:{}},replyData(){const{replyId:t}=this;return t>0?this.dialogMsgs.find(s=>s.id===t):null},cacheKey(){return this.dialogId||`t_${this.taskId}`}},watch:{value(t){this.quill&&(t&&t!==this._content?(this._content=t,this.setContent(t)):t||this.quill.setText("")),this.$store.dispatch("saveDialogInputCache",{key:this.cacheKey,cache:t})},disabled(t){this.quill&&this.quill.enable(!t)},dialogId(){this.userList=null,this.userCache=null,this.taskList=null,this.fileList={},this.$emit("input",this.getInputCache())},taskId(){this.userList=null,this.userCache=null,this.taskList=null,this.fileList={},this.$emit("input",this.getInputCache())},showEmoji(t){if(t){let s=this.value.replace(/ /g," ");if(s=s.replace(/<[^>]+>/g,""),s&&s.indexOf(" ")===-1&&s.length>=1&&s.length<=4?this.emojiQuickKey=s:this.emojiQuickKey="",this.showMore=!1,this.emojiQuickShow=!1,this.quill){const e=this.quill.selection.savedRange;this.rangeIndex=e?e.index:0}}else this.rangeIndex>0&&this.quill.setSelection(this.rangeIndex);this.$emit("on-emoji-visible-change",t)},showMore(t){t&&(this.showEmoji=!1),this.$emit("on-more-visible-change",t)},isFocus(t){this.timerScroll&&clearInterval(this.timerScroll),t?(this.$emit("on-focus"),this.hidePopover(),this.isSpecVersion||this.windowSmall&&(this.timerScroll=setInterval(()=>{var s;(s=this.quill)!=null&&s.hasFocus()?this.windowScrollY>0&&$A.scrollIntoViewIfNeeded(this.$refs.editor):clearInterval(this.timerScroll)},200))):this.$emit("on-blur")},recordState(t){this.$emit("on-record-state",t)},dialogInputCache(){this.isFocus||this.$emit("input",this.getInputCache())},wrapperHeight(t,s){this.$emit("on-height-change",{newVal:t,oldVal:s})}},methods:{init(){this._options=Object.assign({theme:"bubble",readOnly:!1,placeholder:this.placeholder,modules:{toolbar:[["bold","strike","italic","underline",{list:"ordered"},{list:"bullet"},"blockquote","code-block"]],keyboard:{bindings:{"short enter":{key:13,shortKey:!0,handler:t=>this.isEnterSend?!0:(this.onSend(),!1)},enter:{key:13,shiftKey:!1,handler:t=>this.isEnterSend?(this.onSend(),!1):!0},esc:{key:27,shiftKey:!1,handler:t=>this.emojiQuickShow?(this.emojiQuickShow=!1,!1):!0}}},mention:{allowedChars:/^\S*$/,mentionDenotationChars:["@","#","~"],defaultMenuOrientation:this.defaultMenuOrientation,isolateCharacter:!0,positioningStrategy:"fixed",renderItem:t=>{if(t.disabled===!0)return`
${t.value}
`;if(t.id===0)return`
@
${t.value}
${t.tip}
`;if(t.avatar){const s=t.bot?'
':"";return`
${s}
${t.value}
`}return`
${t.value}
`},renderLoading:()=>"Loading...",source:(t,s,e)=>{const i=e=="@"?"user-mention":e=="#"?"task-mention":"file-mention",a=document.getElementsByClassName("ql-mention-list-container");for(let S=0;S{const w=[];S.some(b=>{let _=b.list;t&&(_=_.filter(({value:m})=>$A.strExists(m,t))),_.length>0&&(b.label&&w.push(...b.label),w.push(..._))}),$A.jsonStringify(w.map(({id:b})=>b))!==O&&(O=$A.jsonStringify(w.map(({id:b})=>b)),s(w,t))})}}}},this.options),this.quill=new dt(this.$refs.editor,this._options),this.quill.enable(!1),this.value?this.setContent(this.value):this.$emit("input",this.getInputCache()),this.disabled||this.quill.enable(!0),this.quill.on("selection-change",t=>{if(!t){if(this.quill.hasFocus()){this.quill.setSelection(0);return}if(document.activeElement&&document.activeElement.className==="ql-clipboard"){this.quill.setSelection(this.quill.getLength());return}}this.isFocus=!!t}),this.quill.on("text-change",t=>{this.maxlength>0&&this.quill.getLength()>this.maxlength&&this.quill.deleteText(this.maxlength,this.quill.getLength());let s=this.$refs.editor.children[0].innerHTML;s=s.replace(/^(

\s*<\/p>)+|(

\s*<\/p>)+$/gi,""),s=s.replace(/^(

<\/p>)+|(

<\/p>)+$/gi,""),this.updateEmojiQuick(s),this._content=s,this.$emit("input",this._content),this.$nextTick(e=>{const i=this.quill.getSelection();if(i){const a=this.quill.getText(i.index);/^\n\n$/.test(a)&&this.quill.deleteText(i.index,1)}})}),this.quill.clipboard.addMatcher(Node.ELEMENT_NODE,(t,s)=>(this.pasteClean&&(s.ops=s.ops.map(e=>{const i={insert:e.insert};try{typeof i.insert.mention=="object"&&t.innerHTML&&(i.insert=t.innerHTML.replace(/<[^>]+>/g,""))}catch{}return e.attributes&&["bold","strike","italic","underline","list","blockquote","link"].some(a=>{e.attributes[a]&&(typeof i.attributes=="undefined"&&(i.attributes={}),i.attributes[a]=e.attributes[a])}),i})),s)),this.$emit("on-ready",this.quill),this.disabledRecord||$A.loadScriptS(["js/recorder/recorder.mp3.min.js","js/recorder/lib.fft.js","js/recorder/frequency.histogram.view.js"],t=>{t!==null||typeof window.Recorder!="function"||(this.recordRec=window.Recorder({type:"mp3",bitRate:32,sampleRate:16e3,onProcess:(s,e,i,a,O,S)=>{this.recordWave.input(s[s.length-1],e,a),this.recordDuration=i,i>=3*60*1e3&&this.stopRecord(!1)}}),window.Recorder.Support()&&(this.recordReady=!0,this.$nextTick(s=>{this.recordWave=window.Recorder.FrequencyHistogramView({elem:this.$refs.recwave,lineCount:90,position:0,minHeight:1,stripeEnable:!1})})))})},updateEmojiQuick(t){if(!this.isFocus||!t){this.emojiQuickShow=!1;return}this.emojiQuickTimer&&clearTimeout(this.emojiQuickTimer),this.emojiQuickTimer=setTimeout(s=>{if(t=t.replace(/ /g," "),t=t.replace(/<[^>]+>/g,""),t&&t.indexOf(" ")===-1&&t.length>=1&&t.length<=4&&$A.isArray(window.emoticonData)){this.emojiQuickItems=[];let e=$A.apiUrl("../images/emoticon");if(window.emoticonData.some(i=>{let a=i.list.find(O=>$A.strExists(O.name+(O.key?` ${O.key}`:""),t));if(a&&(this.emojiQuickItems.push(Object.assign(a,{type:"emoticon",asset:`images/emoticon/${i.path}/${a.path}`,src:`${e}/${i.path}/${a.path}`})),this.emojiQuickItems.length>=3))return!0}),this.emojiQuickItems.length>0){this.$nextTick(i=>{this.emojiQuickShow=!0,this.$refs.emojiQuickRef.updatePopper()});return}}this.emojiQuickShow=!1},100)},setText(t){this.quill&&this.quill.setText(t)},setContent(t){this.quill&&this.quill.setContents(this.quill.clipboard.convert(t))},setPasteMode(t){this.pasteClean=t},getInputCache(){const t=this.dialogInputCache.find(s=>s.key==this.cacheKey);return t?t.cache:""},onClickEditor(){this.updateEmojiQuick(this.value)},focus(){this.$nextTick(()=>{this.quill&&(this.quill.setSelection(this.quill.getLength()),this.quill.focus())})},blur(){this.$nextTick(()=>{this.quill&&this.quill.blur()})},clickSend(t,s){if(!this.loading)switch(t){case"down":if(this.touchLimitX=!1,this.touchLimitY=!1,this.touchStart=s.type==="touchstart"?s.touches[0]:s,this.startRecord())return;break;case"move":const e=s.type==="touchmove"?s.touches[0]:s;this.touchLimitX=(this.touchStart.clientX-e.clientX)/window.innerWidth>.1,this.touchLimitY=(this.touchStart.clientY-e.clientY)/window.innerHeight>.1;break;case"up":if(this.stopRecord(this.touchLimitY)||this.touchLimitY||this.touchLimitX)return;this.onSend();break}},onSend(){this.rangeIndex=0,this.$emit("on-send")},startRecord(){return this.sendClass==="recorder"?(yt.Store.set("audioSubscribe",!0),this.recordDuration=0,this.recordState="ready",this.$nextTick(t=>{this.recordRec.open(s=>{this.recordState==="ready"?(this.recordState="ing",this.recordBlob=null,setTimeout(e=>{this.recordRec.start()},300)):this.recordRec.close()},s=>{this.recordState="stop",$A.messageError(s||"\u6253\u5F00\u5F55\u97F3\u5931\u8D25")})}),!0):!1},stopRecord(t){switch(this.recordState){case"ing":return this.recordState="stop",this.recordRec.stop((s,e)=>{this.recordRec.close(),t!==!0&&(e<600?$A.messageWarning("\u8BF4\u8BDD\u65F6\u95F4\u592A\u77ED"):(this.recordBlob=s,this.uploadRecord(e)))},s=>{this.recordRec.close(),$A.messageError(s||"\u5F55\u97F3\u5931\u8D25")}),!0;case"ready":return this.recordState="stop",!0;default:return this.recordState="stop",!1}},hidePopover(){this.showMore=!1,this.showEmoji=!1,this.emojiQuickShow=!1},onClickCover(){this.hidePopover(),this.$nextTick(t=>{var s;(s=this.quill)==null||s.focus()})},uploadRecord(t){if(this.recordBlob===null)return;const s=new FileReader;s.onloadend=()=>{this.$emit("on-record",{type:this.recordBlob.type,base64:s.result,duration:t})},s.readAsDataURL(this.recordBlob)},onEmojiQuick(t){t.type==="online"?(this.$emit("input",""),this.$emit("on-send",``)):(this.$emit("input",""),this.$emit("on-send",``)),this.emojiQuickShow=!1,this.focus()},onSelectEmoji(t){!this.quill||(t.type==="emoji"?(this.quill.insertText(this.rangeIndex,t.text),this.rangeIndex+=t.text.length,this.windowLarge&&(this.showEmoji=!1)):t.type==="emoticon"&&(this.$emit("on-send",``),t.asset==="emosearch"&&this.$emit("input",""),this.windowLarge&&(this.showEmoji=!1)))},onCancelReply(){this.$emit("on-cancel-reply")},onToolbar(t){switch(this.hidePopover(),t){case"user":this.openMenu("@");break;case"task":this.openMenu("#");break;case"meeting":yt.Store.set("addMeeting",{type:"create",dialog_id:this.dialogId,userids:[this.userId]});break;case"call":case"image":case"file":this.$emit("on-more",t);break}},onMoreVisibleChange(t){this.showMore=t},openMenu(t){if(!!this.quill)if(this.value.length===0||this.value.endsWith("


"))this.quill.getModule("mention").openMenu(t);else{let s=this.value.replace(/<[^>]+>/g,"");s.length===0||s.endsWith(" ")?this.quill.getModule("mention").openMenu(t):this.quill.getModule("mention").openMenu(` ${t}`)}},addMention(t){!this.quill||this.quill.getModule("mention").insertItem(t,!0)},getProjectId(){let t=null;if(this.dialogId>0){if(t=this.cacheProjects.find(({dialog_id:s})=>s==this.dialogId),t)return t.id;if(t=this.cacheTasks.find(({dialog_id:s})=>s==this.dialogId),t)return t.project_id}else if(this.taskId>0&&(t=this.cacheTasks.find(({id:s})=>s==this.taskId),t))return t.project_id;return 0},getMentionSource(t,s,e){switch(t){case"@":this.mentionMode="user-mention";const i=w=>{this.getMoreUser(s,w.map(b=>b.id)).then(b=>{this.userList=w,this.userCache=[],b.length>0?(w.length>2&&this.userCache.push({label:null,list:[{id:0,value:this.$L("\u6240\u6709\u4EBA"),tip:this.$L("\u4EC5\u63D0\u793A\u4F1A\u8BDD\u5185\u6210\u5458")}]}),this.userCache.push({label:[{id:0,value:this.$L("\u4F1A\u8BDD\u5185\u6210\u5458"),disabled:!0}],list:w},{label:[{id:0,value:this.$L("\u4F1A\u8BDD\u4EE5\u5916\u6210\u5458"),disabled:!0}],list:b})):w.length>2?this.userCache.push({label:null,list:[{id:0,value:this.$L("\u6240\u6709\u4EBA"),tip:this.$L("\u63D0\u793A\u6240\u6709\u6210\u5458")}]},{label:[{id:0,value:this.$L("\u4F1A\u8BDD\u5185\u6210\u5458"),disabled:!0}],list:w}):this.userCache.push({label:null,list:w}),e(this.userCache)})};if(this.dialogData.people&&$A.arrayLength(this.userList)!==this.dialogData.people&&(this.userList=null,this.userCache=null),this.userCache!==null&&e(this.userCache),this.userList!==null){i(this.userList);return}const a=[];if(this.dialogId>0)this.$store.dispatch("call",{url:"dialog/user",data:{dialog_id:this.dialogId,getuser:1}}).then(({data:w})=>{this.cacheDialogs.find(({id:b})=>b==this.dialogId)&&this.$store.dispatch("saveDialog",{id:this.dialogId,people:w.length}),w.length>0&&a.push(...w.map(b=>({id:b.userid,value:b.nickname,avatar:b.userimg,online:b.online,bot:b.bot}))),i(a)}).catch(w=>{i(a)});else if(this.taskId>0){const w=this.cacheTasks.find(({id:b})=>b==this.taskId);w&&$A.isArray(w.task_user)&&w.task_user.some(b=>{const _=this.cacheUserBasic.find(({userid:m})=>m==b.userid);_&&a.push({id:_.userid,value:_.nickname,avatar:_.userimg,online:_.online,bot:_.bot})}),i(a)}break;case"#":if(this.mentionMode="task-mention",this.taskList!==null){e(this.taskList);return}const O=w=>{this.taskList=[],w.length>0&&(w=w.map(m=>({id:m.id,value:m.name})),this.taskList.push({label:[{id:0,value:this.$L("\u9879\u76EE\u672A\u5B8C\u6210\u4EFB\u52A1"),disabled:!0}],list:w}));let b=this.$store.getters.transforTasks(this.$store.getters.dashboardTask.all);b.length>0&&(b=b.sort((m,c)=>$A.Date(m.end_at||"2099-12-31 23:59:59")-$A.Date(c.end_at||"2099-12-31 23:59:59")),this.taskList.push({label:[{id:0,value:this.$L("\u6211\u7684\u5F85\u5B8C\u6210\u4EFB\u52A1"),disabled:!0}],list:b.map(m=>({id:m.id,value:m.name}))}));let _=this.$store.getters.assistTask;_.length>0&&(_=_.sort((m,c)=>$A.Date(m.end_at||"2099-12-31 23:59:59")-$A.Date(c.end_at||"2099-12-31 23:59:59")),this.taskList.push({label:[{id:0,value:this.$L("\u6211\u534F\u52A9\u7684\u4EFB\u52A1"),disabled:!0}],list:_.map(m=>({id:m.id,value:m.name}))})),e(this.taskList)},S=this.getProjectId();if(S>0){this.$store.dispatch("getTaskForProject",S).then(w=>{const b=this.cacheTasks.filter(_=>_.archived_at?!1:_.project_id==S&&_.parent_id===0&&!_.archived_at&&!_.complete_at);b.length>0?O(b):O([])}).catch(w=>{O([])});return}O([]);break;case"~":if(this.mentionMode="file-mention",$A.isArray(this.fileList[s])){e(this.fileList[s]);return}this.fileTimer&&clearTimeout(this.fileTimer),this.fileTimer=setTimeout(w=>{this.$store.dispatch("searchFiles",s).then(({data:b})=>{this.fileList[s]=[{label:[{id:0,value:this.$L("\u6587\u4EF6\u5206\u4EAB\u67E5\u770B"),disabled:!0}],list:b.filter(_=>_.type!=="folder").map(_=>({id:_.id,value:_.ext?`${_.name}.${_.ext}`:_.name}))}],e(this.fileList[s])}).catch(()=>{e([])})},300);break;default:e([]);break}},getMoreUser(t,s){return new Promise(e=>{const{owner_id:i,type:a}=this.dialogData,O=a==="group"&&[0,this.userId].includes(i);this.taskId>0||O?(this.__getMoreTimer&&clearTimeout(this.__getMoreTimer),this.__getMoreTimer=setTimeout(S=>{this.$store.dispatch("call",{url:"users/search",data:{keys:{key:t},state:1,take:30}}).then(({data:w})=>{const b=w.filter(_=>!s.includes(_.userid));e(b.map(_=>({id:_.userid,value:_.nickname,avatar:_.userimg,online:!!_.online})))}).catch(w=>{e([])})},this.userCache===null?0:600)):e([])})},checkIOSVersion(){let s=(window&&window.navigator&&window.navigator.userAgent).match(/OS ((\d+_?){2,3})\s/i);const i=(s?s[1].replace(/_/g,"."):"unknown").split(".");return+i[0]==11&&+i[1]>=0&&+i[1]<3},handlePaste(t){const s=Array.prototype.slice.call(t.clipboardData.files);s.filter(i=>!$A.leftExists(i.type,"image/")).length>0?(t.preventDefault(),this.$emit("on-file",s)):this.pasteRtf(t)&&t.preventDefault()},pasteRtf(t){if(t&&t.clipboardData&&t.clipboardData.items&&!new DOMParser().parseFromString(t.clipboardData.getData("text/html")||"","text/html").querySelector("img")){const e=[];let i=null;if(t.clipboardData.types&&[].indexOf.call(t.clipboardData.types,"text/rtf")!=-1||t.clipboardData.getData("text/rtf"))i=t.clipboardData.items[0].getAsFile(),i&&e.push(i);else for(let a=0;a0)return e.forEach(a=>{const O=new FileReader;O.onload=({target:S})=>{const w=this.quill.getSelection(!0).index;this.quill.insertEmbed(w,"image",S.result),this.quill.setSelection(w+1)},O.readAsDataURL(a)}),!0}return!1}}},qt={};var ui=pt(li,ai,si,!1,ci,null,null,null);function ci(t){for(let s in qt)this[s]=qt[s]}var fi=function(){return ui.exports}(),Yt={exports:{}};/*! +`)}return K}function ut(V,K){var Q={},Z=V.style||{};return Z.fontStyle&&U(V).fontStyle==="italic"&&(Q.italic=!0),Z.fontWeight&&(U(V).fontWeight.startsWith("bold")||parseInt(U(V).fontWeight)>=700)&&(Q.bold=!0),Object.keys(Q).length>0&&(K=P(K,Q)),parseFloat(Z.textIndent||0)>0&&(K=new c.default().insert(" ").concat(K)),K}function lt(V,K){var Q=V.data;if(V.parentNode.tagName==="O:P")return K.insert(Q.trim());if(Q.trim().length===0&&V.parentNode.classList.contains("ql-clipboard"))return K;if(!U(V.parentNode).whiteSpace.startsWith("pre")){var Z=function(et,it){return it=it.replace(/[^\u00a0]/g,""),it.length<1&&et?" ":it};Q=Q.replace(/\r\n/g," ").replace(/\n/g," "),Q=Q.replace(/\s\s+/g,Z.bind(Z,!0)),(V.previousSibling==null&&N(V.parentNode)||V.previousSibling!=null&&N(V.previousSibling))&&(Q=Q.replace(/^\s+/,Z.bind(Z,!1))),(V.nextSibling==null&&N(V.parentNode)||V.nextSibling!=null&&N(V.nextSibling))&&(Q=Q.replace(/\s+$/,Z.bind(Z,!1)))}return K.insert(Q)}i.default=C,i.matchAttributor=H,i.matchBlot=G,i.matchNewline=nt,i.matchSpacing=ot,i.matchText=lt},function(e,i,a){Object.defineProperty(i,"__esModule",{value:!0});var O=function(){function d(f,h){for(var l=0;l '},function(e,i,a){Object.defineProperty(i,"__esModule",{value:!0});var O=function(){function d(f,h){for(var l=0;lr.right&&(f=r.right-d.right,this.root.style.left=c+f+"px"),d.leftr.bottom){var h=d.bottom-d.top,l=m.bottom-m.top+h;this.root.style.top=n-l+"px",this.root.classList.add("ql-flip")}return f}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),b}();i.default=w},function(e,i,a){Object.defineProperty(i,"__esModule",{value:!0});var O=function(){function T(E,v){var y=[],k=!0,D=!1,R=void 0;try{for(var B=E[Symbol.iterator](),W;!(k=(W=B.next()).done)&&(y.push(W.value),!(v&&y.length===v));k=!0);}catch(q){D=!0,R=q}finally{try{!k&&B.return&&B.return()}finally{if(D)throw R}}return y}return function(E,v){if(Array.isArray(E))return E;if(Symbol.iterator in Object(E))return T(E,v);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),S=function T(E,v,y){E===null&&(E=Function.prototype);var k=Object.getOwnPropertyDescriptor(E,v);if(k===void 0){var D=Object.getPrototypeOf(E);return D===null?void 0:T(D,v,y)}else{if("value"in k)return k.value;var R=k.get;return R===void 0?void 0:R.call(y)}},w=function(){function T(E,v){for(var y=0;y
','','',''].join(""),i.default=x},function(e,i,a){Object.defineProperty(i,"__esModule",{value:!0});var O=a(29),S=Y(O),w=a(36),b=a(38),_=a(64),m=a(65),c=Y(m),n=a(66),r=Y(n),d=a(67),f=Y(d),h=a(37),l=a(26),u=a(39),p=a(40),o=a(56),g=Y(o),I=a(68),A=Y(I),x=a(27),$=Y(x),T=a(69),E=Y(T),v=a(70),y=Y(v),k=a(71),D=Y(k),R=a(72),B=Y(R),W=a(73),q=Y(W),M=a(13),L=Y(M),C=a(74),P=Y(C),U=a(75),F=Y(U),N=a(57),j=Y(N),z=a(41),H=Y(z),G=a(28),X=Y(G),J=a(59),tt=Y(J),nt=a(60),ot=Y(nt),ut=a(61),lt=Y(ut),V=a(108),K=Y(V),Q=a(62),Z=Y(Q);function Y(et){return et&&et.__esModule?et:{default:et}}S.default.register({"attributors/attribute/direction":b.DirectionAttribute,"attributors/class/align":w.AlignClass,"attributors/class/background":h.BackgroundClass,"attributors/class/color":l.ColorClass,"attributors/class/direction":b.DirectionClass,"attributors/class/font":u.FontClass,"attributors/class/size":p.SizeClass,"attributors/style/align":w.AlignStyle,"attributors/style/background":h.BackgroundStyle,"attributors/style/color":l.ColorStyle,"attributors/style/direction":b.DirectionStyle,"attributors/style/font":u.FontStyle,"attributors/style/size":p.SizeStyle},!0),S.default.register({"formats/align":w.AlignClass,"formats/direction":b.DirectionClass,"formats/indent":_.IndentClass,"formats/background":h.BackgroundStyle,"formats/color":l.ColorStyle,"formats/font":u.FontClass,"formats/size":p.SizeClass,"formats/blockquote":c.default,"formats/code-block":L.default,"formats/header":r.default,"formats/list":f.default,"formats/bold":g.default,"formats/code":M.Code,"formats/italic":A.default,"formats/link":$.default,"formats/script":E.default,"formats/strike":y.default,"formats/underline":D.default,"formats/image":B.default,"formats/video":q.default,"formats/list/item":d.ListItem,"modules/formula":P.default,"modules/syntax":F.default,"modules/toolbar":j.default,"themes/bubble":K.default,"themes/snow":Z.default,"ui/icons":H.default,"ui/picker":X.default,"ui/icon-picker":ot.default,"ui/color-picker":tt.default,"ui/tooltip":lt.default},!0),i.default=S.default},function(e,i,a){Object.defineProperty(i,"__esModule",{value:!0}),i.IndentClass=void 0;var O=function(){function f(h,l){for(var u=0;u0&&this.children.tail.format(A,x)}},{key:"formats",value:function(){return d({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(A,x){if(A instanceof u)S(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"insertBefore",this).call(this,A,x);else{var $=x==null?this.length():x.offset(this),T=this.split($);T.parent.insertBefore(A,T)}}},{key:"optimize",value:function(A){S(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"optimize",this).call(this,A);var x=this.next;x!=null&&x.prev===this&&x.statics.blotName===this.statics.blotName&&x.domNode.tagName===this.domNode.tagName&&x.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(x.moveChildren(this),x.remove())}},{key:"replace",value:function(A){if(A.statics.blotName!==this.statics.blotName){var x=b.default.create(this.statics.defaultChild);A.moveChildren(x),this.appendChild(x)}S(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"replace",this).call(this,A)}}]),g}(n.default);p.blotName="list",p.scope=b.default.Scope.BLOCK_BLOT,p.tagName=["OL","UL"],p.defaultChild="list-item",p.allowedChildren=[u],i.ListItem=u,i.default=p},function(e,i,a){Object.defineProperty(i,"__esModule",{value:!0});var O=a(56),S=w(O);function w(n){return n&&n.__esModule?n:{default:n}}function b(n,r){if(!(n instanceof r))throw new TypeError("Cannot call a class as a function")}function _(n,r){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:n}function m(n,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);n.prototype=Object.create(r&&r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(n,r):n.__proto__=r)}var c=function(n){m(r,n);function r(){return b(this,r),_(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return r}(S.default);c.blotName="italic",c.tagName=["EM","I"],i.default=c},function(e,i,a){Object.defineProperty(i,"__esModule",{value:!0});var O=function(){function d(f,h){for(var l=0;l-1?o?this.domNode.setAttribute(p,o):this.domNode.removeAttribute(p):S(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"format",this).call(this,p,o)}}],[{key:"create",value:function(p){var o=S(l.__proto__||Object.getPrototypeOf(l),"create",this).call(this,p);return typeof p=="string"&&o.setAttribute("src",this.sanitize(p)),o}},{key:"formats",value:function(p){return d.reduce(function(o,g){return p.hasAttribute(g)&&(o[g]=p.getAttribute(g)),o},{})}},{key:"match",value:function(p){return/\.(jpe?g|gif|png)$/.test(p)||/^data:image\/.+;base64/.test(p)}},{key:"sanitize",value:function(p){return(0,_.sanitize)(p,["http","https","data"])?p:"//:0"}},{key:"value",value:function(p){return p.getAttribute("src")}}]),l}(b.default.Embed);f.blotName="image",f.tagName="IMG",i.default=f},function(e,i,a){Object.defineProperty(i,"__esModule",{value:!0});var O=function(){function h(l,u){for(var p=0;p-1?o?this.domNode.setAttribute(p,o):this.domNode.removeAttribute(p):S(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"format",this).call(this,p,o)}}],[{key:"create",value:function(p){var o=S(l.__proto__||Object.getPrototypeOf(l),"create",this).call(this,p);return o.setAttribute("frameborder","0"),o.setAttribute("allowfullscreen",!0),o.setAttribute("src",this.sanitize(p)),o}},{key:"formats",value:function(p){return d.reduce(function(o,g){return p.hasAttribute(g)&&(o[g]=p.getAttribute(g)),o},{})}},{key:"sanitize",value:function(p){return _.default.sanitize(p)}},{key:"value",value:function(p){return p.getAttribute("src")}}]),l}(w.BlockEmbed);f.blotName="video",f.className="ql-video",f.tagName="IFRAME",i.default=f},function(e,i,a){Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.FormulaBlot=void 0;var O=function(){function p(o,g){for(var I=0;I0||this.cachedText==null)&&(this.domNode.innerHTML=$(T),this.domNode.normalize(),this.attach()),this.cachedText=T)}}]),A}(d.default);p.className="ql-syntax";var o=new b.default.Attributor.Class("token","hljs",{scope:b.default.Scope.INLINE}),g=function(I){u(A,I),O(A,null,[{key:"register",value:function(){m.default.register(o,!0),m.default.register(p,!0)}}]);function A(x,$){h(this,A);var T=l(this,(A.__proto__||Object.getPrototypeOf(A)).call(this,x,$));if(typeof T.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var E=null;return T.quill.on(m.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(E),E=setTimeout(function(){T.highlight(),E=null},T.options.interval)}),T.highlight(),T}return O(A,[{key:"highlight",value:function(){var $=this;if(!this.quill.selection.composing){this.quill.update(m.default.sources.USER);var T=this.quill.getSelection();this.quill.scroll.descendants(p).forEach(function(E){E.highlight($.options.highlight)}),this.quill.update(m.default.sources.SILENT),T!=null&&this.quill.setSelection(T,m.default.sources.SILENT)}}}]),A}(n.default);g.DEFAULTS={highlight:function(){return window.hljs==null?null:function(I){var A=window.hljs.highlightAuto(I);return A.value}}(),interval:1e3},i.CodeBlock=p,i.CodeToken=o,i.default=g},function(e,i){e.exports=' '},function(e,i){e.exports=' '},function(e,i){e.exports=' '},function(e,i){e.exports=' '},function(e,i){e.exports=' '},function(e,i){e.exports=' '},function(e,i){e.exports=' '},function(e,i){e.exports=' '},function(e,i){e.exports=' '},function(e,i){e.exports=' '},function(e,i){e.exports=' '},function(e,i){e.exports=' '},function(e,i){e.exports=' '},function(e,i){e.exports=' '},function(e,i){e.exports=' '},function(e,i){e.exports=' '},function(e,i){e.exports=' '},function(e,i){e.exports=' '},function(e,i){e.exports=' '},function(e,i){e.exports=' '},function(e,i){e.exports=' '},function(e,i){e.exports=' '},function(e,i){e.exports=' '},function(e,i){e.exports=' '},function(e,i){e.exports=' '},function(e,i){e.exports=' '},function(e,i){e.exports=' '},function(e,i){e.exports=' '},function(e,i){e.exports=' '},function(e,i){e.exports=' '},function(e,i){e.exports=' '},function(e,i){e.exports=' '},function(e,i,a){Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.BubbleTooltip=void 0;var O=function A(x,$,T){x===null&&(x=Function.prototype);var E=Object.getOwnPropertyDescriptor(x,$);if(E===void 0){var v=Object.getPrototypeOf(x);return v===null?void 0:A(v,$,T)}else{if("value"in E)return E.value;var y=E.get;return y===void 0?void 0:y.call(T)}},S=function(){function A(x,$){for(var T=0;T<$.length;T++){var E=$[T];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(x,E.key,E)}}return function(x,$,T){return $&&A(x.prototype,$),T&&A(x,T),x}}(),w=a(3),b=h(w),_=a(8),m=h(_),c=a(43),n=h(c),r=a(15),d=a(41),f=h(d);function h(A){return A&&A.__esModule?A:{default:A}}function l(A,x){if(!(A instanceof x))throw new TypeError("Cannot call a class as a function")}function u(A,x){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:A}function p(A,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);A.prototype=Object.create(x&&x.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(A,x):A.__proto__=x)}var o=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],g=function(A){p(x,A);function x($,T){l(this,x),T.modules.toolbar!=null&&T.modules.toolbar.container==null&&(T.modules.toolbar.container=o);var E=u(this,(x.__proto__||Object.getPrototypeOf(x)).call(this,$,T));return E.quill.container.classList.add("ql-bubble"),E}return S(x,[{key:"extendToolbar",value:function(T){this.tooltip=new I(this.quill,this.options.bounds),this.tooltip.root.appendChild(T.container),this.buildButtons([].slice.call(T.container.querySelectorAll("button")),f.default),this.buildPickers([].slice.call(T.container.querySelectorAll("select")),f.default)}}]),x}(n.default);g.DEFAULTS=(0,b.default)(!0,{},n.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(x){x?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var I=function(A){p(x,A);function x($,T){l(this,x);var E=u(this,(x.__proto__||Object.getPrototypeOf(x)).call(this,$,T));return E.quill.on(m.default.events.EDITOR_CHANGE,function(v,y,k,D){if(v===m.default.events.SELECTION_CHANGE)if(y!=null&&y.length>0&&D===m.default.sources.USER){E.show(),E.root.style.left="0px",E.root.style.width="",E.root.style.width=E.root.offsetWidth+"px";var R=E.quill.getLines(y.index,y.length);if(R.length===1)E.position(E.quill.getBounds(y));else{var B=R[R.length-1],W=E.quill.getIndex(B),q=Math.min(B.length()-1,y.index+y.length-W),M=E.quill.getBounds(new r.Range(W,q));E.position(M)}}else document.activeElement!==E.textbox&&E.quill.hasFocus()&&E.hide()}),E}return S(x,[{key:"listen",value:function(){var T=this;O(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){T.root.classList.remove("ql-editing")}),this.quill.on(m.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!T.root.classList.contains("ql-hidden")){var E=T.quill.getSelection();E!=null&&T.position(T.quill.getBounds(E))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(T){var E=O(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"position",this).call(this,T),v=this.root.querySelector(".ql-tooltip-arrow");if(v.style.marginLeft="",E===0)return E;v.style.marginLeft=-1*E-v.offsetWidth/2+"px"}}]),x}(c.BaseTooltip);I.TEMPLATE=['','
','','',"
"].join(""),i.BubbleTooltip=I,i.default=g},function(e,i,a){e.exports=a(63)}]).default})})(Vt);var dt=Zt(Vt.exports);function wt(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?wt=function(s){return typeof s}:wt=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},wt(t)}function Kt(t,s){if(!(t instanceof s))throw new TypeError("Cannot call a class as a function")}function Ct(t,s){for(var e=0;et.length)&&(s=t.length);for(var e=0,i=new Array(s);e=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(b){throw b},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var O=!0,S=!1,w;return{s:function(){e=e.call(t)},n:function(){var b=e.next();return O=b.done,b},e:function(b){S=!0,w=b},f:function(){try{!O&&e.return!=null&&e.return()}finally{if(S)throw w}}}}var ht={TAB:9,ENTER:13,ESCAPE:27,UP:38,DOWN:40};function Ve(t,s,e){var i=t;return Object.keys(s).forEach(function(a){e.indexOf(a)>-1?i.dataset[a]=s[a]:delete i.dataset[a]}),i}function Ke(t,s){return s.reduce(function(e,i){var a=t.lastIndexOf(i);return a>e.mentionCharIndex?{mentionChar:i,mentionCharIndex:a}:{mentionChar:e.mentionChar,mentionCharIndex:e.mentionCharIndex}},{mentionChar:null,mentionCharIndex:-1})}function We(t,s){return s.test(t)}function Ge(t,s,e){return t>-1?!(e&&!(t===0||!!s[t-1].match(/\s/g))):!1}function Ye(t){return wt(t)!=="object"||t===null?t:JSON.parse(JSON.stringify(t))}var Qe=dt.import("blots/embed"),Ot=function(t){je(e,t);var s=Fe(e);function e(i,a){var O;return Kt(this,e),O=s.call(this,i,a),Mt(St(O),"hoverHandler",void 0),Mt(St(O),"hoverHandler",void 0),O.clickHandler=null,O.hoverHandler=null,O.mounted=!1,O}return Wt(e,[{key:"attach",value:function(){bt(vt(e.prototype),"attach",this).call(this),this.mounted||(this.mounted=!0,this.clickHandler=this.getClickHandler(),this.hoverHandler=this.getHoverHandler(),this.domNode.addEventListener("click",this.clickHandler,!1),this.domNode.addEventListener("mouseenter",this.hoverHandler,!1))}},{key:"detach",value:function(){bt(vt(e.prototype),"detach",this).call(this),this.mounted=!1,this.clickHandler&&(this.domNode.removeEventListener("click",this.clickHandler),this.clickHandler=null)}},{key:"getClickHandler",value:function(){var a=this;return function(O){var S=a.buildEvent("mention-clicked",O);window.dispatchEvent(S),O.preventDefault()}}},{key:"getHoverHandler",value:function(){var a=this;return function(O){var S=a.buildEvent("mention-hovered",O);window.dispatchEvent(S),O.preventDefault()}}},{key:"buildEvent",value:function(a,O){var S=new Event(a,{bubbles:!0,cancelable:!0});return S.value=kt({},this.domNode.dataset),S.event=O,S}}],[{key:"create",value:function(a){var O=bt(vt(e),"create",this).call(this),S=document.createElement("span");return S.className="ql-mention-denotation-char",S.innerHTML=a.denotationChar,O.appendChild(S),O.innerHTML+=a.value,e.setDataValues(O,a)}},{key:"setDataValues",value:function(a,O){var S=a;return Object.keys(O).forEach(function(w){S.dataset[w]=O[w]}),S}},{key:"value",value:function(a){return a.dataset}}]),e}(Qe);Ot.blotName="mention";Ot.tagName="span";Ot.className="mention";dt.register(Ot);var Ze=function(){function t(s,e){var i=this;Kt(this,t),this.isOpen=!1,this.itemIndex=0,this.mentionCharPos=null,this.cursorPos=null,this.values=[],this.suspendMouseEnter=!1,this.existingSourceExecutionToken=null,this.quill=s,this.options={source:null,renderItem:function(b){return"".concat(b.value)},renderLoading:function(){return null},onSelect:function(b,_){_(b)},mentionDenotationChars:["@"],showDenotationChar:!0,allowedChars:/^[a-zA-Z0-9_]*$/,minChars:0,maxChars:31,offsetTop:2,offsetLeft:0,isolateCharacter:!1,fixMentionsToQuill:!1,positioningStrategy:"normal",defaultMenuOrientation:"bottom",blotName:"mention",dataAttributes:["id","value","denotationChar","link","target","disabled"],linkTarget:"_blank",onOpen:function(){return!0},onBeforeClose:function(){return!0},onClose:function(){return!0},listItemClass:"ql-mention-list-item",mentionContainerClass:"ql-mention-list-container",mentionListClass:"ql-mention-list",spaceAfterInsert:!0,selectKeys:[ht.ENTER]},kt(this.options,e,{dataAttributes:Array.isArray(e.dataAttributes)?this.options.dataAttributes.concat(e.dataAttributes):this.options.dataAttributes}),this.mentionContainer=document.createElement("div"),this.mentionContainer.className=this.options.mentionContainerClass?this.options.mentionContainerClass:"",this.mentionContainer.style.cssText="display: none; position: absolute;",this.mentionContainer.onmousemove=this.onContainerMouseMove.bind(this),this.options.fixMentionsToQuill&&(this.mentionContainer.style.width="auto"),this.mentionList=document.createElement("ul"),this.mentionList.id="quill-mention-list",s.root.setAttribute("aria-owns","quill-mention-list"),this.mentionList.className=this.options.mentionListClass?this.options.mentionListClass:"",this.mentionContainer.appendChild(this.mentionList),s.on("text-change",this.onTextChange.bind(this)),s.on("selection-change",this.onSelectionChange.bind(this)),s.container.addEventListener("paste",function(){setTimeout(function(){var w=s.getSelection();i.onSelectionChange(w)})}),s.keyboard.addBinding({key:ht.TAB},this.selectHandler.bind(this)),s.keyboard.bindings[ht.TAB].unshift(s.keyboard.bindings[ht.TAB].pop());var a=He(this.options.selectKeys),O;try{for(a.s();!(O=a.n()).done;){var S=O.value;s.keyboard.addBinding({key:S},this.selectHandler.bind(this))}}catch(w){a.e(w)}finally{a.f()}s.keyboard.bindings[ht.ENTER].unshift(s.keyboard.bindings[ht.ENTER].pop()),s.keyboard.addBinding({key:ht.ESCAPE},this.escapeHandler.bind(this)),s.keyboard.addBinding({key:ht.UP},this.upHandler.bind(this)),s.keyboard.addBinding({key:ht.DOWN},this.downHandler.bind(this))}return Wt(t,[{key:"selectHandler",value:function(){return this.isOpen&&!this.existingSourceExecutionToken?(this.selectItem(),!1):!0}},{key:"escapeHandler",value:function(){return this.isOpen?(this.existingSourceExecutionToken&&(this.existingSourceExecutionToken.abandoned=!0),this.hideMentionList(),!1):!0}},{key:"upHandler",value:function(){return this.isOpen&&!this.existingSourceExecutionToken?(this.prevItem(),!1):!0}},{key:"downHandler",value:function(){return this.isOpen&&!this.existingSourceExecutionToken?(this.nextItem(),!1):!0}},{key:"showMentionList",value:function(){this.options.positioningStrategy==="fixed"?document.body.appendChild(this.mentionContainer):this.quill.container.appendChild(this.mentionContainer),this.mentionContainer.style.visibility="hidden",this.mentionContainer.style.display="",this.mentionContainer.scrollTop=0,this.setMentionContainerPosition(),this.setIsOpen(!0)}},{key:"hideMentionList",value:function(){this.options.onBeforeClose(),this.mentionContainer.style.display="none",this.mentionContainer.remove(),this.setIsOpen(!1),this.quill.root.removeAttribute("aria-activedescendant")}},{key:"highlightItem",value:function(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,i=0;iw-a&&(this.mentionContainer.scrollTop+=O-w+a)}}},{key:"getItemData",value:function(){var e=this.mentionList.childNodes[this.itemIndex].dataset.link,i=typeof e!="undefined",a=this.mentionList.childNodes[this.itemIndex].dataset.target;return i&&(this.mentionList.childNodes[this.itemIndex].dataset.value='-1&&(n=setTimeout(function(){m(),c(),a({statusText:"Request Timeout",status:408})},e)),window[S]=function(d){clearTimeout(n),m(),c(),i(d)};var r=document.createElement("script");r.addEventListener("error",_),r.src=t+(/\?/.test(t)?"&":"?")+b,document.body.appendChild(r)})}var Je=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"chat-emoji-wrapper"},[e("div",{staticClass:"chat-emoji-box"},[t.type==="emosearch"?e("div",{staticClass:"chat-emoji-emosearch"},[e("Input",{attrs:{clearable:"",placeholder:t.$L("\u641C\u7D22\u8868\u60C5")},model:{value:t.emosearchKey,callback:function(i){t.emosearchKey=i},expression:"emosearchKey"}},[e("Icon",{class:{"icon-loading":t.emosearchLoad},attrs:{slot:"prefix",type:t.emosearchLoad?"ios-loading":"ios-search"},slot:"prefix"})],1)],1):t._e(),e("ul",{staticClass:"scrollbar-overlay",class:[t.type,"no-dark-content"]},t._l(t.list,function(i){return e("li",{on:{click:function(a){return t.onSelect(a,i)}}},[i.type==="emoticon"?e("img",{attrs:{src:i.src,title:i.name,alt:i.name}}):e("span",{attrs:{title:i.name},domProps:{innerHTML:t._s(i.html)}})])}),0)]),e("ul",{staticClass:"chat-emoji-menu"},[e("li",{class:{active:t.type==="emosearch"},on:{click:function(i){t.type="emosearch"}}},[e("i",{staticClass:"taskfont"},[t._v("\uE6F8")])]),e("li",{class:{active:t.type==="emoji"},on:{click:function(i){t.type="emoji"}}},[e("span",{staticClass:"no-dark-content"},[t._v("\u{1F600}")])]),t._l(t.emoticonData,function(i){return e("li",{class:{active:t.type==="emoticon"&&t.emoticonPath==i.path},on:{click:function(a){return t.onEmoticon(i.path)}}},[e("img",{attrs:{title:i.name,alt:i.name,src:i.src}})])})],2)])},ti=[];const ei={name:"ChatEmoji",props:{searchKey:{type:String,default:""}},data(){return{type:"emoji",emoticonPath:"",emosearchKey:"",emosearchCache:null,emosearchLoad:!1,emosearchTimer:null,emosearchList:[],emojiData:[],emoticonData:[]}},mounted(){this.initData()},watch:{type(){this.onEmosearch()},emosearchKey(){this.onEmosearch()},searchKey:{handler(t){this.emosearchKey=t},immediate:!0}},computed:{list(){if(this.type==="emoji")return this.emojiData;if(this.type==="emosearch")return this.emosearchList;if(this.type==="emoticon"){const t=this.emoticonData.find(({path:s})=>s===this.emoticonPath);if(t)return t.list}return[]}},methods:{initData(){$A.loadScriptS(["js/emoji.all.js","js/emoticon.all.js"],t=>{const s=$A.apiUrl("../images/emoticon");$A.isArray(window.emojiData)&&(this.emojiData=window.emojiData.sort(function(e,i){return e.emoji_order-i.emoji_order}).map(e=>({type:"emoji",name:e.name,html:e.code_decimal}))),$A.isArray(window.emoticonData)&&(this.emoticonData=window.emoticonData.map(e=>Object.assign(e,{src:`${s}/${e.path}/${e.icon}`,list:e.list.map(i=>Object.assign(i,{type:"emoticon",asset:`images/emoticon/${e.path}/${i.path}`,src:`${s}/${e.path}/${i.path}`}))})))})},onEmosearch(){this.type!=="emosearch"||this.emosearchCache===this.emosearchKey||(this.emosearchCache=this.emosearchKey,this.emosearchLoad=!0,this.emosearchTimer&&clearTimeout(this.emosearchTimer),this.emosearchTimer=setTimeout(t=>{Xe("https://pic.sogou.com/napi/wap/pic",{query:this.emosearchKey+" \u8868\u60C5"}).then(s=>{if(this.emosearchList=[],s.status===0){const e=s.data.items;e.length>0&&(this.emosearchList=e.map(i=>({type:"emoticon",asset:"emosearch",name:i.title,src:i.thumbUrl,height:i.thumbHeight,width:i.thumbWidth})))}this.emosearchList.length===0&&$A.noticeWarning("\u6CA1\u6709\u641C\u7D22\u5230\u4EFB\u4F55\u8868\u60C5")}).catch(s=>{this.emosearchList=[],$A.noticeWarning("\u641C\u7D22\u7ED3\u679C\u4E3A\u7A7A")}).finally(s=>{this.emosearchLoad=!1})},300))},onEmoticon(t){this.type="emoticon",this.emoticonPath=t},onSelect(t,s){s.type==="emoji"?this.$emit("on-select",{type:"emoji",text:t.target.innerText}):this.$emit("on-select",s)}}},Rt={};var ii=pt(ei,Je,ti,!1,ni,null,null,null);function ni(t){for(let s in Rt)this[s]=Rt[s]}var ri=function(){return ii.exports}();const jt="ontouchend"in document;var oi={bind(t,s){let e=!1;t.__touchMouseDown__=i=>{i.preventDefault(),e=!0,s.value("down",i)},t.__touchMouseMove__=i=>{e&&s.value("move",i)},t.__touchMouseUp__=i=>{e&&(e=!1,s.value("up"))},jt?(t.addEventListener("touchstart",t.__touchMouseDown__),t.addEventListener("touchmove",t.__touchMouseMove__),t.addEventListener("touchend",t.__touchMouseUp__)):(t.addEventListener("mousedown",t.__touchMouseDown__),document.addEventListener("mousemove",t.__touchMouseMove__),document.addEventListener("mouseup",t.__touchMouseUp__))},update(){},unbind(t){jt?(t.removeEventListener("touchstart",t.__touchMouseDown__),t.removeEventListener("touchmove",t.__touchMouseMove__),t.removeEventListener("touchend",t.__touchMouseUp__)):(t.removeEventListener("mousedown",t.__touchMouseDown__),document.removeEventListener("mousemove",t.__touchMouseMove__),document.removeEventListener("mouseup",t.__touchMouseUp__)),delete t.__touchMouseDown__,delete t.__touchMouseMove__,delete t.__touchMouseUp__}};function gt(t){return t===void 0&&(t=document.body),t===!0?document.body:t instanceof window.Node?t:document.querySelector(t)}const ai={inserted(t,{value:s},e){if(t.dataset&&t.dataset.transfer!=="true")return!1;t.className=t.className?t.className+" v-transfer-dom":"v-transfer-dom";const i=t.parentNode;if(!i)return;const a=document.createComment("");let O=!1;s!==!1&&(i.replaceChild(a,t),gt(s).appendChild(t),O=!0),t.__transferDomData||(t.__transferDomData={parentNode:i,home:a,target:gt(s),hasMovedOut:O})},componentUpdated(t,{value:s}){if(t.dataset&&t.dataset.transfer!=="true")return!1;const e=t.__transferDomData;if(!e)return;const i=e.parentNode,a=e.home,O=e.hasMovedOut;!O&&s?(i.replaceChild(a,t),gt(s).appendChild(t),t.__transferDomData=Object.assign({},t.__transferDomData,{hasMovedOut:!0,target:gt(s)})):O&&s===!1?(i.replaceChild(t,a),t.__transferDomData=Object.assign({},t.__transferDomData,{hasMovedOut:!1,target:gt(s)})):s&>(s).appendChild(t)},unbind(t){if(t.dataset&&t.dataset.transfer!=="true")return!1;t.className=t.className.replace("v-transfer-dom",""),t.__transferDomData&&(t.__transferDomData.hasMovedOut===!0&&t.__transferDomData.parentNode&&t.__transferDomData.parentNode.appendChild(t),t.__transferDomData=null)}};var si=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:t.hidePopover,expression:"hidePopover"}],staticClass:"chat-input-box",class:t.boxClass},[e("div",{staticClass:"chat-input-quick-emoji"},[e("EPopover",{ref:"emojiQuickRef",attrs:{visibleArrow:!1,transition:"",placement:"top-end",popperClass:"chat-quick-emoji-popover"},model:{value:t.emojiQuickShow,callback:function(i){t.emojiQuickShow=i},expression:"emojiQuickShow"}},[e("div",{attrs:{slot:"reference"},slot:"reference"}),e("ul",{staticClass:"chat-quick-emoji-wrapper"},t._l(t.emojiQuickItems,function(i){return e("li",{on:{click:function(a){return t.onEmojiQuick(i)}}},[e("img",{attrs:{title:i.name,alt:i.name,src:i.src}})])}),0)])],1),e("div",{staticClass:"chat-input-wrapper",on:{click:function(i){return i.stopPropagation(),t.focus.apply(null,arguments)}}},[t.replyData?e("div",{staticClass:"chat-reply"},[e("UserAvatar",{attrs:{userid:t.replyData.userid,"show-icon":!1,"show-name":!0,"tooltip-disabled":!0}}),e("div",{staticClass:"reply-desc"},[t._v(t._s(t.$A.getMsgSimpleDesc(t.replyData)))]),e("i",{staticClass:"taskfont",on:{click:function(i){return i.stopPropagation(),t.onCancelReply.apply(null,arguments)}}},[t._v("\uE6E5")])],1):t._e(),e("div",{ref:"editor",staticClass:"no-dark-content",style:t.editorStyle,on:{click:function(i){return i.stopPropagation(),t.onClickEditor.apply(null,arguments)},paste:t.handlePaste}}),e("ul",{staticClass:"chat-toolbar",on:{click:function(i){i.stopPropagation()}}},[e("li",[t.emojiBottom?e("ETooltip",{ref:"emojiTip",attrs:{disabled:t.windowSmall||t.$isEEUiApp||t.showEmoji,placement:"top",content:t.$L("\u8868\u60C5")}},[e("i",{staticClass:"taskfont",on:{click:function(i){t.showEmoji=!t.showEmoji}}},[t._v("\uE7AD")])]):e("EPopover",{attrs:{visibleArrow:!1,placement:"top",popperClass:"chat-input-emoji-popover"},model:{value:t.showEmoji,callback:function(i){t.showEmoji=i},expression:"showEmoji"}},[e("ETooltip",{ref:"emojiTip",attrs:{slot:"reference",disabled:t.windowSmall||t.$isEEUiApp||t.showEmoji,placement:"top",content:t.$L("\u8868\u60C5")},slot:"reference"},[e("i",{staticClass:"taskfont"},[t._v("\uE7AD")])]),t.showEmoji?e("ChatEmoji",{attrs:{searchKey:t.emojiQuickKey},on:{"on-select":t.onSelectEmoji}}):t._e()],1)],1),e("li",[e("ETooltip",{attrs:{placement:"top",disabled:t.windowSmall||t.$isEEUiApp,content:t.$L("\u9009\u62E9\u6210\u5458")}},[e("i",{staticClass:"taskfont",on:{click:function(i){return t.onToolbar("user")}}},[t._v("\uE78F")])])],1),e("li",[e("ETooltip",{attrs:{placement:"top",disabled:t.windowSmall||t.$isEEUiApp,content:t.$L("\u9009\u62E9\u4EFB\u52A1")}},[e("i",{staticClass:"taskfont",on:{click:function(i){return t.onToolbar("task")}}},[t._v("\uE7D6")])])],1),e("li",[e("EPopover",{attrs:{visibleArrow:!1,placement:"top",popperClass:"chat-input-more-popover"},model:{value:t.showMore,callback:function(i){t.showMore=i},expression:"showMore"}},[e("ETooltip",{ref:"moreTip",attrs:{slot:"reference",disabled:t.windowSmall||t.$isEEUiApp||t.showMore,placement:"top",content:t.$L("\u5C55\u5F00")},slot:"reference"},[e("i",{staticClass:"taskfont"},[t._v("\uE790")])]),t.recordReady?e("div",{staticClass:"chat-input-popover-item",on:{click:function(i){return t.onToolbar("meeting")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE7C1")]),t._v(" "+t._s(t.$L("\u65B0\u4F1A\u8BAE"))+" ")]):t._e(),t.dialogData.type==="user"&&t.$isEEUiApp?e("div",{staticClass:"chat-input-popover-item",on:{click:function(i){return t.onToolbar("call")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE7BA")]),t._v(" "+t._s(t.$L("\u62E8\u6253\u7535\u8BDD"))+" ")]):t._e(),e("div",{staticClass:"chat-input-popover-item",on:{click:function(i){return t.onToolbar("image")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE7BC")]),t._v(" "+t._s(t.$L("\u53D1\u9001\u56FE\u7247"))+" ")]),e("div",{staticClass:"chat-input-popover-item",on:{click:function(i){return t.onToolbar("file")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE7C0")]),t._v(" "+t._s(t.$L("\u4E0A\u4F20\u6587\u4EF6"))+" ")])],1)],1),e("li",{directives:[{name:"touchmouse",rawName:"v-touchmouse",value:t.clickSend,expression:"clickSend"}],staticClass:"chat-send",class:t.sendClass},[e("ETooltip",{attrs:{placement:"top",disabled:t.windowSmall||t.$isEEUiApp,content:t.$L(t.sendClass==="recorder"?"\u957F\u6309\u5F55\u97F3":"\u53D1\u9001")}},[t.loading?e("div",[e("div",{staticClass:"chat-load"},[e("Loading")],1)]):e("div",[e("transition",{attrs:{name:"mobile-send"}},[t.sendClass==="recorder"?e("i",{staticClass:"taskfont"},[t._v("\uE609")]):t._e()]),e("transition",{attrs:{name:"mobile-send"}},[t.sendClass!=="recorder"?e("i",{staticClass:"taskfont"},[t._v("\uE606")]):t._e()])],1)])],1),t.recordReady?e("li",{staticClass:"chat-record-recwave"},[e("div",{ref:"recwave"})]):t._e()]),e("div",{staticClass:"chat-cover",on:{click:function(i){return i.stopPropagation(),t.onClickCover.apply(null,arguments)}}})]),t.emojiBottom&&t.showEmoji?e("ChatEmoji",{attrs:{searchKey:t.emojiQuickKey},on:{"on-select":t.onSelectEmoji}}):t._e(),e("transition",{attrs:{name:"fade"}},[["ready","ing"].includes(t.recordState)?e("div",{directives:[{name:"transfer-dom",rawName:"v-transfer-dom"}],staticClass:"chat-input-record-transfer",class:{cancel:t.touchLimitY},style:t.recordTransferStyle,attrs:{"data-transfer":!0},on:{click:t.stopRecord}},[t.recordDuration>0?e("div",{staticClass:"record-duration"},[t._v(t._s(t.recordFormatDuration))]):e("div",{staticClass:"record-loading"},[e("Loading")],1),e("div",{staticClass:"record-cancel",on:{click:function(i){return i.stopPropagation(),t.stopRecord(!0)}}},[t._v(t._s(t.$L(t.touchLimitY?"\u677E\u5F00\u53D6\u6D88":"\u5411\u4E0A\u6ED1\u52A8\u53D6\u6D88")))])]):t._e()])],1)},li=[];const ui={name:"ChatInput",components:{ChatEmoji:ri},directives:{touchmouse:oi,TransferDom:ai,clickoutside:Xt},props:{value:{type:[String,Number],default:""},dialogId:{type:Number,default:0},taskId:{type:Number,default:0},placeholder:{type:String,default:""},disabled:{type:Boolean,default:!1},disabledRecord:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},enterSend:{type:[String,Boolean],default:null},emojiBottom:{type:Boolean,default:!1},options:{type:Object,default:()=>({})},maxlength:{type:Number},defaultMenuOrientation:{type:String,default:"top"},replyId:{type:Number,default:0}},data(){return{quill:null,isFocus:!1,rangeIndex:0,_content:"",_options:{},mentionMode:"",userList:null,userCache:null,taskList:null,fileList:{},showMore:!1,showEmoji:!1,emojiQuickTimer:null,emojiQuickShow:!1,emojiQuickKey:"",emojiQuickItems:[],observer:null,wrapperWidth:0,wrapperHeight:0,editorHeight:0,recordReady:!1,recordRec:null,recordBlob:null,recordWave:null,recordInter:null,recordState:"stop",recordDuration:0,touchStart:{},touchLimitX:!1,touchLimitY:!1,pasteClean:!0,isSpecVersion:this.checkIOSVersion()}},mounted(){this.init(),this.observer=new ResizeObserver(t=>{t.some(({target:s,contentRect:e})=>{s===this.$el?(this.wrapperWidth=e.width,this.wrapperHeight=e.height):s===this.$refs.editor&&(this.editorHeight=e.height)})}),this.observer.observe(this.$el),this.observer.observe(this.$refs.editor),this.recordInter=setInterval(t=>{this.recordState==="ing"&&(this.__recordDuration&&this.__recordDuration===this.recordDuration?(this.__recordDuration=null,this.stopRecord(!0),$A.messageWarning("\u5F55\u97F3\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5")):this.__recordDuration=this.recordDuration)},1e3),this.$isEEUiApp&&(window.__onPermissionRequest=(t,s)=>{console.log(t,s),t==="recordAudio"&&s===!1&&this.stopRecord(!0)})},beforeDestroy(){this.quill&&(this.quill=null),this.observer&&(this.observer.disconnect(),this.observer=null),this.recordInter&&clearInterval(this.recordInter)},computed:{..._t(["dialogInputCache","cacheProjects","cacheTasks","cacheUserBasic","dialogMsgs","cacheDialogs"]),isEnterSend(){return typeof this.enterSend=="boolean"?this.enterSend:this.$store.state.windowLarge},editorStyle(){const{wrapperWidth:t,editorHeight:s}=this;return t>0&&s>0&&(t<280||s>40)?{width:"100%"}:{}},recordTransferStyle(){const{windowScrollY:t}=this;return t>0?{marginTop:t/2+"px"}:null},boxClass(){const t=[];return["ready","ing"].includes(this.recordState)&&(this.recordState==="ing"&&this.recordDuration>0?t.push("record-progress"):t.push("record-ready")),this.showMore&&t.push("show-more"),this.showEmoji&&t.push("show-emoji"),this.mentionMode&&t.push(this.mentionMode),t},sendClass(){return this.value?"sender":this.recordReady?"recorder":""},recordFormatDuration(){const{recordDuration:t}=this;let s=Math.floor(t/6e4),e=Math.floor(t/1e3)%60,i=("00"+t%1e3).substr(-2);return s<10&&(s=`0${s}`),e<10&&(e=`0${e}`),`${s}:${e}\u2033${i}`},dialogData(){return this.dialogId>0?this.cacheDialogs.find(({id:t})=>t==this.dialogId)||{}:{}},replyData(){const{replyId:t}=this;return t>0?this.dialogMsgs.find(s=>s.id===t):null},cacheKey(){return this.dialogId||`t_${this.taskId}`}},watch:{value(t){this.quill&&(t&&t!==this._content?(this._content=t,this.setContent(t)):t||this.quill.setText("")),this.$store.dispatch("saveDialogInputCache",{key:this.cacheKey,cache:t})},disabled(t){this.quill&&this.quill.enable(!t)},dialogId(){this.userList=null,this.userCache=null,this.taskList=null,this.fileList={},this.$emit("input",this.getInputCache())},taskId(){this.userList=null,this.userCache=null,this.taskList=null,this.fileList={},this.$emit("input",this.getInputCache())},showEmoji(t){if(t){let s=this.value.replace(/ /g," ");if(s=s.replace(/<[^>]+>/g,""),s&&s.indexOf(" ")===-1&&s.length>=1&&s.length<=4?this.emojiQuickKey=s:this.emojiQuickKey="",this.showMore=!1,this.emojiQuickShow=!1,this.quill){const e=this.quill.selection.savedRange;this.rangeIndex=e?e.index:0}}else this.rangeIndex>0&&this.quill.setSelection(this.rangeIndex);this.$emit("on-emoji-visible-change",t)},showMore(t){t&&(this.showEmoji=!1),this.$emit("on-more-visible-change",t)},isFocus(t){this.timerScroll&&clearInterval(this.timerScroll),t?(this.$emit("on-focus"),this.hidePopover(),this.isSpecVersion||this.windowSmall&&(this.timerScroll=setInterval(()=>{var s;(s=this.quill)!=null&&s.hasFocus()?this.windowScrollY>0&&$A.scrollIntoViewIfNeeded(this.$refs.editor):clearInterval(this.timerScroll)},200))):this.$emit("on-blur")},recordState(t){this.$emit("on-record-state",t)},dialogInputCache(){this.isFocus||this.$emit("input",this.getInputCache())},wrapperHeight(t,s){this.$emit("on-height-change",{newVal:t,oldVal:s})}},methods:{init(){this._options=Object.assign({theme:"bubble",readOnly:!1,placeholder:this.placeholder,modules:{toolbar:[["bold","strike","italic","underline",{list:"ordered"},{list:"bullet"},"blockquote","code-block"]],keyboard:{bindings:{"short enter":{key:13,shortKey:!0,handler:t=>this.isEnterSend?!0:(this.onSend(),!1)},enter:{key:13,shiftKey:!1,handler:t=>this.isEnterSend?(this.onSend(),!1):!0},esc:{key:27,shiftKey:!1,handler:t=>this.emojiQuickShow?(this.emojiQuickShow=!1,!1):!0}}},mention:{allowedChars:/^\S*$/,mentionDenotationChars:["@","#","~"],defaultMenuOrientation:this.defaultMenuOrientation,isolateCharacter:!0,positioningStrategy:"fixed",renderItem:t=>{if(t.disabled===!0)return`
${t.value}
`;if(t.id===0)return`
@
${t.value}
${t.tip}
`;if(t.avatar){const s=t.bot?'
':"";return`
${s}
${t.value}
`}return`
${t.value}
`},renderLoading:()=>"Loading...",source:(t,s,e)=>{const i=e=="@"?"user-mention":e=="#"?"task-mention":"file-mention",a=document.getElementsByClassName("ql-mention-list-container");for(let S=0;S{const w=[];S.some(b=>{let _=b.list;t&&(_=_.filter(({value:m})=>$A.strExists(m,t))),_.length>0&&(b.label&&w.push(...b.label),w.push(..._))}),$A.jsonStringify(w.map(({id:b})=>b))!==O&&(O=$A.jsonStringify(w.map(({id:b})=>b)),s(w,t))})}}}},this.options),this.quill=new dt(this.$refs.editor,this._options),this.quill.enable(!1),this.value?this.setContent(this.value):this.$emit("input",this.getInputCache()),this.disabled||this.quill.enable(!0),this.quill.on("selection-change",t=>{if(!t){if(this.quill.hasFocus()){this.quill.setSelection(0);return}if(document.activeElement&&document.activeElement.className==="ql-clipboard"){this.quill.setSelection(this.quill.getLength());return}}this.isFocus=!!t}),this.quill.on("text-change",t=>{this.maxlength>0&&this.quill.getLength()>this.maxlength&&this.quill.deleteText(this.maxlength,this.quill.getLength());let s=this.$refs.editor.children[0].innerHTML;s=s.replace(/^(

\s*<\/p>)+|(

\s*<\/p>)+$/gi,""),s=s.replace(/^(

<\/p>)+|(

<\/p>)+$/gi,""),this.updateEmojiQuick(s),this._content=s,this.$emit("input",this._content),this.$nextTick(e=>{const i=this.quill.getSelection();if(i){const a=this.quill.getText(i.index);/^\n\n$/.test(a)&&this.quill.deleteText(i.index,1)}})}),this.quill.clipboard.addMatcher(Node.ELEMENT_NODE,(t,s)=>(this.pasteClean&&(s.ops=s.ops.map(e=>{const i={insert:e.insert};try{typeof i.insert.mention=="object"&&t.innerHTML&&(i.insert=t.innerHTML.replace(/<[^>]+>/g,""))}catch{}return e.attributes&&["bold","strike","italic","underline","list","blockquote","link"].some(a=>{e.attributes[a]&&(typeof i.attributes=="undefined"&&(i.attributes={}),i.attributes[a]=e.attributes[a])}),i})),s)),this.$emit("on-ready",this.quill),this.disabledRecord||$A.loadScriptS(["js/recorder/recorder.mp3.min.js","js/recorder/lib.fft.js","js/recorder/frequency.histogram.view.js"],t=>{t!==null||typeof window.Recorder!="function"||(this.recordRec=window.Recorder({type:"mp3",bitRate:32,sampleRate:16e3,onProcess:(s,e,i,a,O,S)=>{this.recordWave.input(s[s.length-1],e,a),this.recordDuration=i,i>=3*60*1e3&&this.stopRecord(!1)}}),window.Recorder.Support()&&(this.recordReady=!0,this.$nextTick(s=>{this.recordWave=window.Recorder.FrequencyHistogramView({elem:this.$refs.recwave,lineCount:90,position:0,minHeight:1,stripeEnable:!1})})))})},updateEmojiQuick(t){if(!this.isFocus||!t){this.emojiQuickShow=!1;return}this.emojiQuickTimer&&clearTimeout(this.emojiQuickTimer),this.emojiQuickTimer=setTimeout(s=>{if(t=t.replace(/ /g," "),t=t.replace(/<[^>]+>/g,""),t&&t.indexOf(" ")===-1&&t.length>=1&&t.length<=4&&$A.isArray(window.emoticonData)){this.emojiQuickItems=[];let e=$A.apiUrl("../images/emoticon");if(window.emoticonData.some(i=>{let a=i.list.find(O=>$A.strExists(O.name+(O.key?` ${O.key}`:""),t));if(a&&(this.emojiQuickItems.push(Object.assign(a,{type:"emoticon",asset:`images/emoticon/${i.path}/${a.path}`,src:`${e}/${i.path}/${a.path}`})),this.emojiQuickItems.length>=3))return!0}),this.emojiQuickItems.length>0){this.$nextTick(i=>{this.emojiQuickShow=!0,this.$refs.emojiQuickRef.updatePopper()});return}}this.emojiQuickShow=!1},100)},setText(t){this.quill&&this.quill.setText(t)},setContent(t){this.quill&&this.quill.setContents(this.quill.clipboard.convert(t))},setPasteMode(t){this.pasteClean=t},getInputCache(){const t=this.dialogInputCache.find(s=>s.key==this.cacheKey);return t?t.cache:""},onClickEditor(){this.updateEmojiQuick(this.value)},focus(){this.$nextTick(()=>{this.quill&&(this.quill.setSelection(this.quill.getLength()),this.quill.focus())})},blur(){this.$nextTick(()=>{this.quill&&this.quill.blur()})},clickSend(t,s){if(!this.loading)switch(t){case"down":if(this.touchLimitX=!1,this.touchLimitY=!1,this.touchStart=s.type==="touchstart"?s.touches[0]:s,this.startRecord())return;break;case"move":const e=s.type==="touchmove"?s.touches[0]:s;this.touchLimitX=(this.touchStart.clientX-e.clientX)/window.innerWidth>.1,this.touchLimitY=(this.touchStart.clientY-e.clientY)/window.innerHeight>.1;break;case"up":if(this.stopRecord(this.touchLimitY)||this.touchLimitY||this.touchLimitX)return;this.onSend();break}},onSend(){this.rangeIndex=0,this.$emit("on-send")},startRecord(){return this.sendClass==="recorder"?(yt.Store.set("audioSubscribe",!0),this.recordDuration=0,this.recordState="ready",this.$nextTick(t=>{this.recordRec.open(s=>{this.recordState==="ready"?(this.recordState="ing",this.recordBlob=null,setTimeout(e=>{this.recordRec.start()},300)):this.recordRec.close()},s=>{this.recordState="stop",$A.messageError(s||"\u6253\u5F00\u5F55\u97F3\u5931\u8D25")})}),!0):!1},stopRecord(t){switch(this.recordState){case"ing":return this.recordState="stop",this.recordRec.stop((s,e)=>{this.recordRec.close(),t!==!0&&(e<600?$A.messageWarning("\u8BF4\u8BDD\u65F6\u95F4\u592A\u77ED"):(this.recordBlob=s,this.uploadRecord(e)))},s=>{this.recordRec.close(),$A.messageError(s||"\u5F55\u97F3\u5931\u8D25")}),!0;case"ready":return this.recordState="stop",!0;default:return this.recordState="stop",!1}},hidePopover(){this.showMore=!1,this.showEmoji=!1,this.emojiQuickShow=!1},onClickCover(){this.hidePopover(),this.$nextTick(t=>{var s;(s=this.quill)==null||s.focus()})},uploadRecord(t){if(this.recordBlob===null)return;const s=new FileReader;s.onloadend=()=>{this.$emit("on-record",{type:this.recordBlob.type,base64:s.result,duration:t})},s.readAsDataURL(this.recordBlob)},onEmojiQuick(t){t.type==="online"?(this.$emit("input",""),this.$emit("on-send",``)):(this.$emit("input",""),this.$emit("on-send",``)),this.emojiQuickShow=!1,this.focus()},onSelectEmoji(t){!this.quill||(t.type==="emoji"?(this.quill.insertText(this.rangeIndex,t.text),this.rangeIndex+=t.text.length,this.windowLarge&&(this.showEmoji=!1)):t.type==="emoticon"&&(this.$emit("on-send",``),t.asset==="emosearch"&&this.$emit("input",""),this.windowLarge&&(this.showEmoji=!1)))},onCancelReply(){this.$emit("on-cancel-reply")},onToolbar(t){switch(this.hidePopover(),t){case"user":this.openMenu("@");break;case"task":this.openMenu("#");break;case"meeting":yt.Store.set("addMeeting",{type:"create",dialog_id:this.dialogId,userids:[this.userId]});break;case"call":case"image":case"file":this.$emit("on-more",t);break}},onMoreVisibleChange(t){this.showMore=t},openMenu(t){if(!!this.quill)if(this.value.length===0||this.value.endsWith("


"))this.quill.getModule("mention").openMenu(t);else{let s=this.value.replace(/<[^>]+>/g,"");s.length===0||s.endsWith(" ")?this.quill.getModule("mention").openMenu(t):this.quill.getModule("mention").openMenu(` ${t}`)}},addMention(t){!this.quill||this.quill.getModule("mention").insertItem(t,!0)},getProjectId(){let t=null;if(this.dialogId>0){if(t=this.cacheProjects.find(({dialog_id:s})=>s==this.dialogId),t)return t.id;if(t=this.cacheTasks.find(({dialog_id:s})=>s==this.dialogId),t)return t.project_id}else if(this.taskId>0&&(t=this.cacheTasks.find(({id:s})=>s==this.taskId),t))return t.project_id;return 0},getMentionSource(t,s,e){switch(t){case"@":this.mentionMode="user-mention";const i=w=>{this.getMoreUser(s,w.map(b=>b.id)).then(b=>{this.userList=w,this.userCache=[],b.length>0?(w.length>2&&this.userCache.push({label:null,list:[{id:0,value:this.$L("\u6240\u6709\u4EBA"),tip:this.$L("\u4EC5\u63D0\u793A\u4F1A\u8BDD\u5185\u6210\u5458")}]}),this.userCache.push({label:[{id:0,value:this.$L("\u4F1A\u8BDD\u5185\u6210\u5458"),disabled:!0}],list:w},{label:[{id:0,value:this.$L("\u4F1A\u8BDD\u4EE5\u5916\u6210\u5458"),disabled:!0}],list:b})):w.length>2?this.userCache.push({label:null,list:[{id:0,value:this.$L("\u6240\u6709\u4EBA"),tip:this.$L("\u63D0\u793A\u6240\u6709\u6210\u5458")}]},{label:[{id:0,value:this.$L("\u4F1A\u8BDD\u5185\u6210\u5458"),disabled:!0}],list:w}):this.userCache.push({label:null,list:w}),e(this.userCache)})};if(this.dialogData.people&&$A.arrayLength(this.userList)!==this.dialogData.people&&(this.userList=null,this.userCache=null),this.userCache!==null&&e(this.userCache),this.userList!==null){i(this.userList);return}const a=[];if(this.dialogId>0)this.$store.dispatch("call",{url:"dialog/user",data:{dialog_id:this.dialogId,getuser:1}}).then(({data:w})=>{this.cacheDialogs.find(({id:b})=>b==this.dialogId)&&this.$store.dispatch("saveDialog",{id:this.dialogId,people:w.length}),w.length>0&&a.push(...w.map(b=>({id:b.userid,value:b.nickname,avatar:b.userimg,online:b.online,bot:b.bot}))),i(a)}).catch(w=>{i(a)});else if(this.taskId>0){const w=this.cacheTasks.find(({id:b})=>b==this.taskId);w&&$A.isArray(w.task_user)&&w.task_user.some(b=>{const _=this.cacheUserBasic.find(({userid:m})=>m==b.userid);_&&a.push({id:_.userid,value:_.nickname,avatar:_.userimg,online:_.online,bot:_.bot})}),i(a)}break;case"#":if(this.mentionMode="task-mention",this.taskList!==null){e(this.taskList);return}const O=w=>{this.taskList=[],w.length>0&&(w=w.map(m=>({id:m.id,value:m.name})),this.taskList.push({label:[{id:0,value:this.$L("\u9879\u76EE\u672A\u5B8C\u6210\u4EFB\u52A1"),disabled:!0}],list:w}));let b=this.$store.getters.transforTasks(this.$store.getters.dashboardTask.all);b.length>0&&(b=b.sort((m,c)=>$A.Date(m.end_at||"2099-12-31 23:59:59")-$A.Date(c.end_at||"2099-12-31 23:59:59")),this.taskList.push({label:[{id:0,value:this.$L("\u6211\u7684\u5F85\u5B8C\u6210\u4EFB\u52A1"),disabled:!0}],list:b.map(m=>({id:m.id,value:m.name}))}));let _=this.$store.getters.assistTask;_.length>0&&(_=_.sort((m,c)=>$A.Date(m.end_at||"2099-12-31 23:59:59")-$A.Date(c.end_at||"2099-12-31 23:59:59")),this.taskList.push({label:[{id:0,value:this.$L("\u6211\u534F\u52A9\u7684\u4EFB\u52A1"),disabled:!0}],list:_.map(m=>({id:m.id,value:m.name}))})),e(this.taskList)},S=this.getProjectId();if(S>0){this.$store.dispatch("getTaskForProject",S).then(w=>{const b=this.cacheTasks.filter(_=>_.archived_at?!1:_.project_id==S&&_.parent_id===0&&!_.archived_at&&!_.complete_at);b.length>0?O(b):O([])}).catch(w=>{O([])});return}O([]);break;case"~":if(this.mentionMode="file-mention",$A.isArray(this.fileList[s])){e(this.fileList[s]);return}this.fileTimer&&clearTimeout(this.fileTimer),this.fileTimer=setTimeout(w=>{this.$store.dispatch("searchFiles",s).then(({data:b})=>{this.fileList[s]=[{label:[{id:0,value:this.$L("\u6587\u4EF6\u5206\u4EAB\u67E5\u770B"),disabled:!0}],list:b.filter(_=>_.type!=="folder").map(_=>({id:_.id,value:_.ext?`${_.name}.${_.ext}`:_.name}))}],e(this.fileList[s])}).catch(()=>{e([])})},300);break;default:e([]);break}},getMoreUser(t,s){return new Promise(e=>{const{owner_id:i,type:a}=this.dialogData,O=a==="group"&&[0,this.userId].includes(i);this.taskId>0||O?(this.__getMoreTimer&&clearTimeout(this.__getMoreTimer),this.__getMoreTimer=setTimeout(S=>{this.$store.dispatch("call",{url:"users/search",data:{keys:{key:t},state:1,take:30}}).then(({data:w})=>{const b=w.filter(_=>!s.includes(_.userid));e(b.map(_=>({id:_.userid,value:_.nickname,avatar:_.userimg,online:!!_.online})))}).catch(w=>{e([])})},this.userCache===null?0:600)):e([])})},checkIOSVersion(){let s=(window&&window.navigator&&window.navigator.userAgent).match(/OS ((\d+_?){2,3})\s/i);const i=(s?s[1].replace(/_/g,"."):"unknown").split(".");return+i[0]==11&&+i[1]>=0&&+i[1]<3},handlePaste(t){const s=Array.prototype.slice.call(t.clipboardData.files);s.filter(i=>!$A.leftExists(i.type,"image/")).length>0?(t.preventDefault(),this.$emit("on-file",s)):this.pasteRtf(t)&&t.preventDefault()},pasteRtf(t){if(t&&t.clipboardData&&t.clipboardData.items&&!new DOMParser().parseFromString(t.clipboardData.getData("text/html")||"","text/html").querySelector("img")){const e=[];let i=null;if(t.clipboardData.types&&[].indexOf.call(t.clipboardData.types,"text/rtf")!=-1||t.clipboardData.getData("text/rtf"))i=t.clipboardData.items[0].getAsFile(),i&&e.push(i);else for(let a=0;a0)return e.forEach(a=>{const O=new FileReader;O.onload=({target:S})=>{const w=this.quill.getSelection(!0).index;this.quill.insertEmbed(w,"image",S.result),this.quill.setSelection(w+1)},O.readAsDataURL(a)}),!0}return!1}}},qt={};var ci=pt(ui,si,li,!1,fi,null,null,null);function fi(t){for(let s in qt)this[s]=qt[s]}var hi=function(){return ci.exports}(),Yt={exports:{}};/*! * vue-virtual-scroll-list v2.3.4-3 * open source under the MIT license * https://github.com/tangbc/vue-virtual-scroll-list#readme */(function(t,s){(function(e,i){t.exports=i(Jt)})(Ut,function(e){e=e&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e;function i(v,y){if(!(v instanceof y))throw new TypeError("Cannot call a class as a function")}function a(v,y){for(var k=0;kv.length)&&(y=v.length);for(var k=0,D=new Array(y);kthis.range.start)){var D=Math.max(k-this.param.buffer,0);this.checkRange(D,this.getEndByStart(D))}}},{key:"handleBehind",value:function(){var k=this.getScrollOvers();kk&&(W=R-1)}return D>0?--D:0}},{key:"getIndexOffset",value:function(k){if(!k)return 0;for(var D=0,R=0,B=0;B1&&arguments[1]!==void 0?arguments[1]:0;if(y>=this.dataSources.length-1)this.scrollToBottom();else{var D=this.virtual.getOffset(y);k!==0&&(D=Math.max(0,D+k)),this.scrollToOffset(D)}},scrollToBottom:function(){var y=this,k=this.$refs.shepherd;if(k){var D=k[this.isHorizontal?"offsetLeft":"offsetTop"];this.scrollToOffset(D),this.toBottomTime&&(clearTimeout(this.toBottomTime),this.toBottomTime=null),this.toBottomTime=setTimeout(function(){y.getOffset()+y.getClientSize()+1R+1||!R||(this.virtual.handleScroll(k),this.emitEvent(k,D,R,y))}},emitEvent:function(y,k,D,R){this.$emit("scroll",R,this.virtual.getRange()),this.virtual.isFront()&&!!this.dataSources.length&&y-this.topThreshold<=0?this.$emit("totop"):this.virtual.isBehind()&&y+k+this.bottomThreshold>=D&&this.$emit("tobottom")},getRenderSlots:function(y){for(var k=[],D=this.range,R=D.start,B=D.end,W=this.dataSources,q=this.dataKey,M=this.itemClass,L=this.itemTag,C=this.itemStyle,P=this.isHorizontal,U=this.extraProps,F=this.dataComponent,N=this.itemScopedSlots,j=this.$scopedSlots&&this.$scopedSlots.item,z=R;z<=B;z++){var H=W[z];if(H){var G=typeof q=="function"?q(H):H[q];typeof G=="string"||typeof G=="number"?k.push(y(A,{props:{index:z,tag:L,event:$.ITEM,horizontal:P,uniqueKey:G,source:H,extraProps:U,component:F,slotComponent:j,scopedSlots:N},style:C,class:"".concat(M).concat(this.itemClassAdd?" "+this.itemClassAdd(z):"")})):console.warn("Cannot get the data-key '".concat(q,"' from data-sources."))}else console.warn("Cannot get the index '".concat(z,"' from data-sources."))}return k}},render:function(y){var k=this.$slots,D=k.header,R=k.footer,B=this.range,W=B.padFront,q=B.padBehind,M=this.isHorizontal,L=this.pageMode,C=this.rootTag,P=this.wrapTag,U=this.wrapClass,F=this.wrapStyle,N=this.headerTag,j=this.headerClass,z=this.headerStyle,H=this.footerTag,G=this.footerClass,X=this.footerStyle,J=this.disabled,tt={padding:M?"0px ".concat(q,"px 0px ").concat(W,"px"):"".concat(W,"px 0px ").concat(q,"px")},nt=F?Object.assign({},F,tt):tt;return y(C,{ref:"root",style:J?{overflow:"hidden"}:null,on:{"&scroll":!L&&this.onScroll}},[D?y(x,{class:j,style:z,props:{tag:N,event:$.SLOT,uniqueKey:T.HEADER}},D):null,y(P,{class:U,attrs:{role:"group"},style:nt},this.getRenderSlots(y)),R?y(x,{class:G,style:X,props:{tag:H,event:$.SLOT,uniqueKey:T.FOOTER}},R):null,y("div",{ref:"shepherd",style:{width:M?"0px":"100%",height:M?"100%":"0px"}})])}});return E})})(Yt);var hi=Yt.exports,di=function(){var t=this,s=t.$createElement,e=t._self._c||s;return t.isReady?e("div",{staticClass:"dialog-wrapper",class:t.wrapperClass,on:{drop:function(i){return i.preventDefault(),t.chatPasteDrag(i,"drag")},dragover:function(i){return i.preventDefault(),t.chatDragOver(!0,i)},dragleave:function(i){return i.preventDefault(),t.chatDragOver(!1,i)},touchstart:t.onTouchStart,touchmove:t.onTouchMove}},[e("div",{staticClass:"dialog-nav",style:t.navStyle},[t._t("head",function(){return[e("div",{staticClass:"nav-wrapper",class:{completed:t.$A.dialogCompleted(t.dialogData)}},[e("div",{staticClass:"dialog-back",on:{click:t.onBack}},[e("i",{staticClass:"taskfont"},[t._v("\uE676")]),t.msgUnreadOnly?e("div",{staticClass:"back-num"},[t._v(t._s(t.msgUnreadOnly))]):t._e()]),e("div",{staticClass:"dialog-block"},[e("div",{staticClass:"dialog-avatar"},[t.dialogData.type=="group"?[t.dialogData.group_type=="department"?e("i",{staticClass:"taskfont icon-avatar department"},[t._v("\uE75C")]):t.dialogData.group_type=="project"?e("i",{staticClass:"taskfont icon-avatar project"},[t._v("\uE6F9")]):t.dialogData.group_type=="task"?e("i",{staticClass:"taskfont icon-avatar task"},[t._v("\uE6F4")]):e("Icon",{staticClass:"icon-avatar",attrs:{type:"ios-people"}})]:t.dialogData.dialog_user?e("div",{staticClass:"user-avatar"},[e("UserAvatar",{attrs:{online:t.dialogData.online_state,userid:t.dialogData.dialog_user.userid,size:42},on:{"update:online":function(i){return t.$set(t.dialogData,"online_state",i)}}},[t.dialogData.type==="user"&&t.dialogData.online_state!==!0?e("p",{attrs:{slot:"end"},slot:"end"},[t._v(" "+t._s(t.$L(t.dialogData.online_state))+" ")]):t._e()])],1):e("Icon",{staticClass:"icon-avatar",attrs:{type:"md-person"}})],2),e("div",{staticClass:"dialog-title"},[e("div",{staticClass:"main-title"},[t._l(t.$A.dialogTags(t.dialogData),function(i){return i.color!="success"?[e("Tag",{attrs:{color:i.color,fade:!1}},[t._v(t._s(t.$L(i.text)))])]:t._e()}),e("h2",[t._v(t._s(t.dialogData.name))]),t.peopleNum>0?e("em",[t._v("("+t._s(t.peopleNum)+")")]):t._e(),t.dialogData.bot?e("Tag",{staticClass:"after",attrs:{fade:!1}},[t._v(t._s(t.$L("\u673A\u5668\u4EBA")))]):t._e(),t.dialogData.group_type=="all"?e("Tag",{staticClass:"after",attrs:{fade:!1}},[t._v(t._s(t.$L("\u5168\u5458")))]):t.dialogData.group_type=="department"?e("Tag",{staticClass:"after",attrs:{fade:!1}},[t._v(t._s(t.$L("\u90E8\u95E8")))]):t._e(),t.msgLoadIng>0?e("div",{staticClass:"load"},[e("Loading")],1):t._e()],2),e("ul",{staticClass:"title-desc"},[t.dialogData.type==="user"?e("li",{class:[t.dialogData.online_state===!0?"online":"offline"]},[t._v(" "+t._s(t.$L(t.dialogData.online_state===!0?"\u5728\u7EBF":t.dialogData.online_state))+" ")]):t._e()]),t.tagShow?e("ul",{staticClass:"title-tags scrollbar-hidden"},t._l(t.msgTags,function(i){var a;return e("li",{key:i.type,class:(a={},a[i.type||"msg"]=!0,a.active=t.msgType===i.type,a),on:{click:function(O){return t.onMsgType(i.type)}}},[e("i",{staticClass:"no-dark-content"}),e("span",[t._v(t._s(t.$L(i.label)))])])}),0):t._e()])]),e("EDropdown",{staticClass:"dialog-menu",attrs:{trigger:"click"},on:{command:t.onDialogMenu}},[e("i",{staticClass:"taskfont dialog-menu-icon"},[t._v("\uE6E9")]),e("EDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},[t.dialogData.type==="user"?e("EDropdownItem",{attrs:{command:"openCreate"}},[e("div",[t._v(t._s(t.$L("\u521B\u5EFA\u7FA4\u7EC4")))])]):[e("EDropdownItem",{attrs:{command:"groupInfo"}},[e("div",[t._v(t._s(t.$L("\u7FA4\u7EC4\u8BBE\u7F6E")))])]),t.dialogData.owner_id!=t.userId?e("EDropdownItem",{attrs:{command:"exit"}},[e("div",{staticStyle:{color:"#f00"}},[t._v(t._s(t.$L("\u9000\u51FA\u7FA4\u7EC4")))])]):t.dialogData.group_type==="user"?[e("EDropdownItem",{attrs:{command:"transfer"}},[e("div",[t._v(t._s(t.$L("\u8F6C\u8BA9\u7FA4\u4E3B")))])]),e("EDropdownItem",{attrs:{command:"disband"}},[e("div",{staticStyle:{color:"#f00"}},[t._v(t._s(t.$L("\u89E3\u6563\u7FA4\u7EC4")))])])]:t._e()]],2)],1)],1)]})],2),t.positionMsg?e("div",{staticClass:"dialog-position",class:{down:t.tagShow}},[e("div",{staticClass:"position-label",on:{click:t.onPositionMark}},[t.positionLoad>0?e("Icon",{staticClass:"icon-loading",attrs:{type:"ios-loading"}}):e("i",{staticClass:"taskfont"},[t._v("\uE624")]),t._v(" "+t._s(t.positionMsg.label)+" ")],1)]):t._e(),e("VirtualList",{ref:"scroller",staticClass:"dialog-scroller scrollbar-overlay",class:t.scrollerClass,attrs:{"data-key":"id","data-sources":t.allMsgs,"data-component":t.msgItem,"item-class-add":t.itemClassAdd,"extra-props":{dialogData:t.dialogData,operateVisible:t.operateVisible,operateItem:t.operateItem,isMyDialog:t.isMyDialog,msgId:t.msgId},"estimate-size":t.dialogData.type=="group"?105:77,keeps:50,disabled:t.scrollDisabled},on:{scroll:t.onScroll,range:t.onRange,totop:t.onPrevPage,"on-mention":t.onMention,"on-longpress":t.onLongpress,"on-view-reply":t.onViewReply,"on-view-text":t.onViewText,"on-view-file":t.onViewFile,"on-down-file":t.onDownFile,"on-reply-list":t.onReplyList,"on-error":t.onError,"on-emoji":t.onEmoji,"on-show-emoji-user":t.onShowEmojiUser},scopedSlots:t._u([{key:"header",fn:function(){return[t.allMsgs.length===0&&t.loadMsg||t.prevId>0?e("div",{staticClass:"dialog-item loading"},[e("div",{staticClass:"dialog-wrapper-loading"})]):t.allMsgs.length===0?e("div",{staticClass:"dialog-item nothing"},[t._v(t._s(t.$L("\u6682\u65E0\u6D88\u606F")))]):t._e()]},proxy:!0}],null,!1,2455296402)}),e("div",{ref:"footer",staticClass:"dialog-footer",class:t.footerClass,on:{click:t.onActive}},[e("div",{staticClass:"dialog-newmsg",on:{click:t.onToBottom}},[t._v(t._s(t.$L(`\u6709${t.msgNew}\u6761\u65B0\u6D88\u606F`)))]),e("div",{staticClass:"dialog-goto",on:{click:t.onToBottom}},[e("i",{staticClass:"taskfont"},[t._v("\uE72B")])]),e("DialogUpload",{ref:"chatUpload",staticClass:"chat-upload",attrs:{"dialog-id":t.dialogId,"reply-id":t.replyId},on:{"on-progress":function(i){return t.chatFile("progress",i)},"on-success":function(i){return t.chatFile("success",i)},"on-error":function(i){return t.chatFile("error",i)}}}),t.todoShow?e("div",{staticClass:"chat-todo"},[e("div",{staticClass:"todo-label"},[t._v(t._s(t.$L("\u5F85\u529E"))+":")]),e("ul",{staticClass:"scrollbar-hidden"},t._l(t.todoList,function(i){return e("li",{on:{click:function(a){return a.stopPropagation(),t.onViewTodo(i)}}},[e("div",{staticClass:"todo-desc no-dark-content"},[t._v(t._s(t.$A.getMsgSimpleDesc(i.msg_data)))])])}),0)]):t._e(),t.isMute?e("div",{staticClass:"chat-mute"},[t._v(" "+t._s(t.$L("\u7981\u8A00\u53D1\u8A00"))+" ")]):e("ChatInput",{ref:"input",attrs:{"dialog-id":t.dialogId,"reply-id":t.replyActiveId,"emoji-bottom":t.windowSmall,maxlength:2e5,placeholder:t.$L("\u8F93\u5165\u6D88\u606F...")},on:{"on-focus":t.onEventFocus,"on-blur":t.onEventBlur,"on-more":t.onEventMore,"on-file":t.sendFileMsg,"on-send":t.sendMsg,"on-record":t.sendRecord,"on-record-state":t.onRecordState,"on-emoji-visible-change":t.onEventEmojiVisibleChange,"on-height-change":t.onHeightChange,"on-cancel-reply":t.onCancelReply},model:{value:t.msgText,callback:function(i){t.msgText=i},expression:"msgText"}})],1),e("div",{staticClass:"operate-position",style:t.operateStyles},[e("Dropdown",{attrs:{trigger:"custom",placement:"top",visible:t.operateVisible,transferClassName:"dialog-wrapper-operate",transfer:""},on:{"on-clickoutside":function(i){t.operateVisible=!1}}},[e("div",{style:{userSelect:t.operateVisible?"none":"auto",height:t.operateStyles.height}}),e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[e("DropdownItem",{attrs:{name:"action"}},[e("ul",{staticClass:"operate-action"},[t.msgId===0?e("li",{on:{click:function(i){return t.onOperate("reply")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE6EB")]),e("span",[t._v(t._s(t.$L("\u56DE\u590D")))])]):t._e(),t.operateItem.userid==t.userId&&t.operateItem.type==="text"?e("li",{on:{click:function(i){return t.onOperate("update")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE779")]),e("span",[t._v(t._s(t.$L("\u7F16\u8F91")))])]):t._e(),t._l(t.operateCopys,function(i){return e("li",{on:{click:function(a){return t.onOperate("copy",i)}}},[e("i",{staticClass:"taskfont",domProps:{innerHTML:t._s(i.icon)}}),e("span",[t._v(t._s(t.$L(i.label)))])])}),e("li",{on:{click:function(i){return t.onOperate("forward")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE638")]),e("span",[t._v(t._s(t.$L("\u8F6C\u53D1")))])]),t.operateItem.userid==t.userId?e("li",{on:{click:function(i){return t.onOperate("withdraw")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE637")]),e("span",[t._v(t._s(t.$L("\u64A4\u56DE")))])]):t._e(),t.operateItem.type==="file"?[e("li",{on:{click:function(i){return t.onOperate("view")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE77B")]),e("span",[t._v(t._s(t.$L("\u67E5\u770B")))])]),e("li",{on:{click:function(i){return t.onOperate("down")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE7A8")]),e("span",[t._v(t._s(t.$L("\u4E0B\u8F7D")))])])]:t._e(),e("li",{on:{click:function(i){return t.onOperate("tag")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE61E")]),e("span",[t._v(t._s(t.$L(t.operateItem.tag?"\u53D6\u6D88\u6807\u6CE8":"\u6807\u6CE8")))])]),t.operateItem.type==="text"?e("li",{on:{click:function(i){return t.onOperate("newTask")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE7B8")]),e("span",[t._v(t._s(t.$L("\u65B0\u4EFB\u52A1")))])]):t._e(),e("li",{on:{click:function(i){return t.onOperate("todo")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE7B7")]),e("span",[t._v(t._s(t.$L(t.operateItem.todo?"\u53D6\u6D88\u5F85\u529E":"\u8BBE\u5F85\u529E")))])]),t.msgType!==""?e("li",{on:{click:function(i){return t.onOperate("pos")}}},[e("i",{staticClass:"taskfont"},[t._v("\uEE15")]),e("span",[t._v(t._s(t.$L("\u5B8C\u6574\u5BF9\u8BDD")))])]):t._e()],2)]),e("DropdownItem",{staticClass:"dropdown-emoji",attrs:{name:"emoji"}},[e("ul",{staticClass:"operate-emoji scrollbar-hidden"},t._l(t.operateEmojis,function(i,a){return e("li",{key:a,staticClass:"no-dark-content",domProps:{innerHTML:t._s(i)},on:{click:function(O){return t.onOperate("emoji",i)}}})}),0)])],1)],1)],1),t.dialogDrag?e("div",{staticClass:"drag-over",on:{click:function(i){t.dialogDrag=!1}}},[e("div",{staticClass:"drag-text"},[t._v(t._s(t.$L("\u62D6\u52A8\u5230\u8FD9\u91CC\u53D1\u9001")))])]):t._e(),e("Modal",{attrs:{title:t.$L(t.pasteTitle),"cancel-text":t.$L("\u53D6\u6D88"),"ok-text":t.$L("\u53D1\u9001"),"enter-ok":!0},on:{"on-ok":t.pasteSend},model:{value:t.pasteShow,callback:function(i){t.pasteShow=i},expression:"pasteShow"}},[e("ul",{staticClass:"dialog-wrapper-paste",class:t.pasteWrapperClass},t._l(t.pasteItem,function(i){return e("li",[i.type=="image"?e("img",{attrs:{src:i.result}}):e("div",[t._v(t._s(t.$L("\u6587\u4EF6"))+": "+t._s(i.name)+" ("+t._s(t.$A.bytesToSize(i.size))+")")])])}),0)]),e("Modal",{attrs:{title:t.$L("\u521B\u5EFA\u7FA4\u7EC4"),"mask-closable":!1},model:{value:t.createGroupShow,callback:function(i){t.createGroupShow=i},expression:"createGroupShow"}},[e("Form",{attrs:{model:t.createGroupData,"label-width":"auto"},nativeOn:{submit:function(i){i.preventDefault()}}},[e("FormItem",{attrs:{prop:"userids",label:t.$L("\u7FA4\u6210\u5458")}},[e("UserInput",{attrs:{uncancelable:t.createGroupData.uncancelable,"multiple-max":100,"show-bot":"",placeholder:t.$L("\u9009\u62E9\u9879\u76EE\u6210\u5458")},model:{value:t.createGroupData.userids,callback:function(i){t.$set(t.createGroupData,"userids",i)},expression:"createGroupData.userids"}})],1),e("FormItem",{attrs:{prop:"chat_name",label:t.$L("\u7FA4\u540D\u79F0")}},[e("Input",{attrs:{placeholder:t.$L("\u8F93\u5165\u7FA4\u540D\u79F0\uFF08\u9009\u586B\uFF09")},model:{value:t.createGroupData.chat_name,callback:function(i){t.$set(t.createGroupData,"chat_name",i)},expression:"createGroupData.chat_name"}})],1)],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(i){t.createGroupShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.createGroupLoad>0},on:{click:t.onCreateGroup}},[t._v(t._s(t.$L("\u521B\u5EFA")))])],1)],1),e("Modal",{attrs:{title:t.$L("\u8F6C\u53D1"),"mask-closable":!1},model:{value:t.forwardShow,callback:function(i){t.forwardShow=i},expression:"forwardShow"}},[e("DialogSelect",{model:{value:t.forwardData,callback:function(i){t.forwardData=i},expression:"forwardData"}}),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(i){t.forwardShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.forwardLoad},on:{click:function(i){return t.onForward("submit")}}},[t._v(t._s(t.$L("\u8F6C\u53D1")))])],1)],1),e("Modal",{attrs:{title:t.$L("\u8BBE\u7F6E\u5F85\u529E"),"mask-closable":!1},model:{value:t.todoSettingShow,callback:function(i){t.todoSettingShow=i},expression:"todoSettingShow"}},[e("Form",{ref:"todoSettingForm",attrs:{model:t.todoSettingData,"label-width":"auto"},nativeOn:{submit:function(i){i.preventDefault()}}},[e("FormItem",{attrs:{prop:"type",label:t.$L("\u5F53\u524D\u4F1A\u8BDD")}},[e("RadioGroup",{model:{value:t.todoSettingData.type,callback:function(i){t.$set(t.todoSettingData,"type",i)},expression:"todoSettingData.type"}},[e("Radio",{attrs:{label:"all"}},[t._v(t._s(t.$L("\u6240\u6709\u6210\u5458")))]),e("Radio",{attrs:{label:"user"}},[t._v(t._s(t.$L("\u6307\u5B9A\u6210\u5458")))]),t.todoSettingData.my_id?e("Radio",{attrs:{label:"my"}},[e("div",{staticClass:"dialog-wrapper-todo"},[e("div",[e("UserAvatar",{attrs:{userid:t.todoSettingData.my_id,"show-icon":!1,"show-name":!0}}),e("Tag",[t._v(t._s(t.$L("\u81EA\u5DF1")))])],1)])]):t._e(),t.todoSettingData.you_id?e("Radio",{attrs:{label:"you"}},[e("div",{staticClass:"dialog-wrapper-todo"},[e("div",[e("UserAvatar",{attrs:{userid:t.todoSettingData.you_id,"show-icon":!1,"show-name":!0}})],1)])]):t._e()],1)],1),t.todoSettingData.type==="user"?e("FormItem",{attrs:{prop:"userids"}},[e("UserInput",{attrs:{"dialog-id":t.dialogId,placeholder:t.$L("\u9009\u62E9\u6307\u5B9A\u6210\u5458")},model:{value:t.todoSettingData.userids,callback:function(i){t.$set(t.todoSettingData,"userids",i)},expression:"todoSettingData.userids"}})],1):t._e()],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(i){t.todoSettingShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.todoSettingLoad>0},on:{click:function(i){return t.onTodo("submit")}}},[t._v(t._s(t.$L("\u786E\u5B9A")))])],1)],1),e("DrawerOverlay",{attrs:{placement:"right",size:400},model:{value:t.groupInfoShow,callback:function(i){t.groupInfoShow=i},expression:"groupInfoShow"}},[t.groupInfoShow?e("DialogGroupInfo",{attrs:{dialogId:t.dialogId},on:{"on-close":function(i){t.groupInfoShow=!1}}}):t._e()],1),e("Modal",{attrs:{title:t.$L("\u8F6C\u8BA9\u7FA4\u4E3B\u8EAB\u4EFD"),"mask-closable":!1},model:{value:t.groupTransferShow,callback:function(i){t.groupTransferShow=i},expression:"groupTransferShow"}},[e("Form",{attrs:{model:t.groupTransferData,"label-width":"auto"},nativeOn:{submit:function(i){i.preventDefault()}}},[e("FormItem",{attrs:{prop:"userid",label:t.$L("\u65B0\u7684\u7FA4\u4E3B")}},[e("UserInput",{attrs:{disabledChoice:t.groupTransferData.disabledChoice,"multiple-max":1,"max-hidden-select":"",placeholder:t.$L("\u9009\u62E9\u65B0\u7684\u7FA4\u4E3B")},model:{value:t.groupTransferData.userid,callback:function(i){t.$set(t.groupTransferData,"userid",i)},expression:"groupTransferData.userid"}})],1)],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(i){t.groupTransferShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.groupTransferLoad>0},on:{click:function(i){return t.onDialogMenu("transferConfirm")}}},[t._v(t._s(t.$L("\u786E\u5B9A\u8F6C\u8BA9")))])],1)],1),e("DrawerOverlay",{attrs:{placement:"right","class-name":"dialog-wrapper-drawer-list",size:500},model:{value:t.replyListShow,callback:function(i){t.replyListShow=i},expression:"replyListShow"}},[t.replyListShow?e("DialogWrapper",{staticClass:"drawer-list",attrs:{dialogId:t.dialogId,msgId:t.replyListId}},[e("div",{staticClass:"drawer-title",attrs:{slot:"head"},slot:"head"},[t._v(t._s(t.$L("\u56DE\u590D\u6D88\u606F")))])]):t._e()],1),e("DrawerOverlay",{attrs:{placement:"right",size:400},model:{value:t.respondShow,callback:function(i){t.respondShow=i},expression:"respondShow"}},[t.respondShow?e("DialogRespond",{attrs:{"respond-data":t.respondData},on:{"on-close":function(i){t.respondShow=!1}}}):t._e()],1),e("DrawerOverlay",{attrs:{placement:"right","class-name":"dialog-wrapper-drawer-list",size:500},model:{value:t.todoViewShow,callback:function(i){t.todoViewShow=i},expression:"todoViewShow"}},[e("div",{staticClass:"dialog-wrapper drawer-list"},[e("div",{staticClass:"dialog-nav"},[e("div",{staticClass:"drawer-title"},[t._v(t._s(t.$L("\u5F85\u529E\u6D88\u606F")))])]),e("div",{staticClass:"dialog-scroller scrollbar-overlay"},[t.todoViewMsg?e("DialogItem",{attrs:{source:t.todoViewMsg,simpleView:""},on:{"on-view-text":t.onViewText,"on-view-file":t.onViewFile,"on-down-file":t.onDownFile,"on-emoji":t.onEmoji}}):t._e(),e("Button",{staticClass:"original-button",attrs:{icon:"md-exit",type:"text",loading:t.todoViewPosLoad},on:{click:t.onPosTodo}},[t._v(t._s(t.$L("\u56DE\u5230\u539F\u6587")))])],1),e("div",{staticClass:"todo-button"},[e("Button",{attrs:{type:"primary",size:"large",icon:"md-checkbox-outline",loading:t.todoViewLoad,long:""},on:{click:t.onDoneTodo}},[t._v(t._s(t.$L("\u5B8C\u6210")))])],1)])])],1):t._e()},pi=[];const mi={name:"DialogWrapper",components:{DialogSelect:te,DialogRespond:Pe,DialogItem:It,VirtualList:hi,ChatInput:fi,DialogGroupInfo:Ie,DrawerOverlay:ee,UserInput:Ht,DialogUpload:Ee},props:{dialogId:{type:Number,default:0},msgId:{type:Number,default:0},autoFocus:{type:Boolean,default:!1},beforeBack:Function},data(){return{msgItem:It,msgText:"",msgNew:0,msgType:"",allMsgs:[],tempMsgs:[],msgLoadIng:0,pasteShow:!1,pasteFile:[],pasteItem:[],createGroupShow:!1,createGroupData:{},createGroupLoad:0,forwardShow:!1,forwardLoad:!1,forwardData:{dialogids:[],userids:[]},openId:0,dialogDrag:!1,groupInfoShow:!1,groupTransferShow:!1,groupTransferLoad:0,groupTransferData:{userid:[],disabledChoice:[]},navStyle:{},operateVisible:!1,operateCopys:[],operateStyles:{},operateItem:{},operateEmojis:["\u{1F44C}","\u{1F91D}","\u{1F389}","\u2764\uFE0F","\u{1F44D}","\u{1F970}","\u{1F973}\uFE0F","\u2705","\u274C","\u2B55\uFE0F","\u2753","\u{1F680}","\u{1F440}"],recordState:"",wrapperStart:{},scrollTail:0,preventMoreLoad:!1,preventToBottom:!1,replyActiveId:0,replyActiveIndex:-1,replyActiveUpdate:!1,replyListShow:!1,replyListId:0,respondShow:!1,respondData:{},todoSettingShow:!1,todoSettingLoad:0,todoSettingData:{type:"all",userids:[]},todoViewLoad:!1,todoViewPosLoad:!1,todoViewShow:!1,todoViewData:{},todoViewMid:0,todoViewId:0,scrollDisabled:!1,scrollDirection:null,scrollAction:0,scrollTmp:0,positionLoad:0}},beforeDestroy(){this.$store.dispatch("forgetInDialog",this._uid),this.$store.dispatch("closeDialog",this.dialogId)},computed:{..._t(["userIsAdmin","taskId","dialogSearchMsgId","dialogMsgs","dialogTodos","dialogMsgTransfer","cacheDialogs","wsOpenNum","touchBackInProgress","dialogIns","cacheUserBasic"]),...Ft(["isLoad"]),isReady(){return this.dialogId>0&&this.dialogData.id>0},dialogData(){return this.cacheDialogs.find(({id:t})=>t==this.dialogId)||{}},dialogList(){return this.cacheDialogs.filter(t=>!(t.name===void 0||t.dialog_delete===1)).sort((t,s)=>t.top_at||s.top_at?$A.Date(s.top_at)-$A.Date(t.top_at):t.todo_num>0||s.todo_num>0?s.todo_num-t.todo_num:$A.Date(s.last_at)-$A.Date(t.last_at))},dialogMsgList(){return this.isReady?this.dialogMsgs.filter(t=>t.dialog_id==this.dialogId):[]},tempMsgList(){return this.isReady?this.tempMsgs.filter(t=>t.dialog_id==this.dialogId):[]},allMsgList(){const t=[];if(t.push(...this.dialogMsgList.filter(s=>this.msgFilter(s))),this.msgId>0){const s=this.dialogMsgs.find(e=>e.id==this.msgId);s&&t.unshift(s)}if(this.tempMsgList.length>0){const s=t.map(({id:i})=>i),e=this.tempMsgList.filter(i=>!s.includes(i.id)&&this.msgFilter(i));e.length>0&&t.push(...e)}return t.sort((s,e)=>s.id-e.id)},loadMsg(){return this.isLoad(`msg::${this.dialogId}-${this.msgId}-${this.msgType}`)},prevId(){return this.allMsgs.length>0?$A.runNum(this.allMsgs[0].prev_id):0},peopleNum(){return this.dialogData.type==="group"?$A.runNum(this.dialogData.people):0},pasteTitle(){const{pasteItem:t}=this;let s=t.find(({type:i})=>i=="image"),e=t.find(({type:i})=>i!="image");return s&&e?"\u53D1\u9001\u6587\u4EF6/\u56FE\u7247":s?"\u53D1\u9001\u56FE\u7247":"\u53D1\u9001\u6587\u4EF6"},msgTags(){const t=[{type:"",label:"\u6D88\u606F"}];return this.dialogData.has_tag&&t.push({type:"tag",label:"\u6807\u6CE8"}),this.dialogData.has_image&&t.push({type:"image",label:"\u56FE\u7247"}),this.dialogData.has_file&&t.push({type:"file",label:"\u6587\u4EF6"}),this.dialogData.has_link&&t.push({type:"link",label:"\u94FE\u63A5"}),this.dialogData.group_type==="project"&&t.push({type:"project",label:"\u6253\u5F00\u9879\u76EE"}),this.dialogData.group_type==="task"&&t.push({type:"task",label:"\u6253\u5F00\u4EFB\u52A1"}),t},todoList(){return this.dialogData.todo_num?this.dialogTodos.filter(t=>!t.done_at&&t.dialog_id==this.dialogId).sort((t,s)=>s.id-t.id):[]},todoShow(){return this.todoList.length>0&&this.windowScrollY===0&&this.replyId===0},wrapperClass(){return["ready","ing"].includes(this.recordState)?["record-ready"]:null},tagShow(){return this.msgTags.length>1&&this.windowScrollY===0},scrollerClass(){return!this.$slots.head&&this.tagShow?"default-header":null},pasteWrapperClass(){return this.pasteItem.find(({type:t})=>t!=="image")?["multiple"]:[]},footerClass(){return this.msgNew>0&&this.allMsgs.length>0?"newmsg":this.scrollTail>500?"goto":null},msgUnreadOnly(){let t=0;return this.cacheDialogs.some(s=>{t+=$A.getDialogNum(s)}),t<=0?"":(t>999&&(t="999+"),String(t))},isMyDialog(){const{dialogData:t,userId:s}=this;return t.dialog_user&&t.dialog_user.userid==s},isMute(){if(this.dialogData.group_type==="all"){if(this.dialogData.all_group_mute==="all")return!0;if(this.dialogData.all_group_mute==="user"&&!this.userIsAdmin)return!0}return!1},replyId(){return parseInt(this.msgId>0?this.msgId:this.replyActiveId)},replyItem(){return this.replyId?this.allMsgs.find(({id:t})=>t===this.replyId):null},todoViewMsg(){if(this.todoViewMid){const t=this.allMsgs.find(s=>s.id==this.todoViewMid);if(t)return t;if(this.todoViewData.id===this.todoViewMid)return this.todoViewData}return null},positionMsg(){const{unread:t,position_msgs:s}=this.dialogData;if(!s||s.length===0||t===0||this.allMsgs.length===0)return null;const e=s.sort((i,a)=>a.msg_id-i.msg_id)[0];return this.allMsgs.findIndex(({id:i})=>i==e.msg_id)===-1?e.label==="{UNREAD}"?Object.assign(e,{label:this.$L(`\u672A\u8BFB\u6D88\u606F${t}\u6761`)}):e:null}},watch:{dialogId:{handler(t,s){t&&(this.msgNew=0,this.msgType="",this.replyActiveId=0,this.allMsgList.length>0&&(this.allMsgs=this.allMsgList,requestAnimationFrame(this.onToBottom)),this.getMsgs({dialog_id:t,msg_id:this.msgId,msg_type:this.msgType}).then(e=>{this.openId=t,setTimeout(this.onSearchMsgId,100)}).catch(e=>{}),this.$store.dispatch("saveInDialog",{uid:this._uid,dialog_id:t}),this.autoFocus&&this.inputFocus()),this.$store.dispatch("closeDialog",s)},immediate:!0},msgType(){this.getMsgs({dialog_id:this.dialogId,msg_id:this.msgId,msg_type:this.msgType,clear_before:!0}).catch(t=>{})},dialogSearchMsgId(){this.onSearchMsgId()},dialogMsgTransfer:{handler({time:t,msgFile:s,msgRecord:e,msgText:i,dialogId:a}){t>$A.Time()&&a==this.dialogId&&(this.$store.state.dialogMsgTransfer.time=0,this.$nextTick(()=>{$A.isArray(s)&&s.length>0?this.sendFileMsg(s):$A.isJson(e)&&e.duration>0?this.sendRecord(e):i&&this.sendMsg(i)}))},immediate:!0},wsOpenNum(t){t<=1||this.getMsgs({dialog_id:this.dialogId,msg_id:this.msgId,msg_type:this.msgType}).catch(s=>{})},allMsgList(t,s){const{tail:e}=this.scrollInfo();if(this.allMsgs=t,!this.windowActive||e>10&&s.length>0){const i=s[s.length-1]?s[s.length-1].id:0,a=t.filter(O=>O.id&&O.id>i);this.msgNew+=a.length}else this.preventToBottom||this.$nextTick(this.onToBottom)},windowScrollY(t){if($A.isIos()){const{tail:s}=this.scrollInfo();this.navStyle={marginTop:t+"px"},s<=10&&requestAnimationFrame(this.onToBottom),this.$refs.input.isFocus&&$A.scrollToView(this.$refs.footer)}},windowActive(t){if(t&&this.autoFocus){const s=$A.last(this.dialogIns);s&&s.uid===this._uid&&this.inputFocus()}},dialogDrag(t){t&&(this.operateVisible=!1)},replyActiveIndex(t){t>-1&&setTimeout(s=>this.replyActiveIndex=-1,800)}},methods:{sendMsg(t){let s,e=!1;if(typeof t=="string"&&t?s=t:(s=this.msgText,e=!0),s==""){this.inputFocus();return}if(s=s.replace(/<\/span> <\/p>$/,"

"),this.replyActiveUpdate){s=s.replace(new RegExp(`src=(["'])${$A.apiUrl("../")}`,"g"),"src=$1{{RemoteURL}}");const i=this.replyId;this.$store.dispatch("setLoad",{key:`msg-${i}`,delay:600}),this.replyActiveId=0,this.onActive(),this.$store.dispatch("call",{url:"dialog/msg/sendtext",data:{dialog_id:this.dialogId,update_id:i,text:s},method:"post",complete:a=>this.$store.dispatch("cancelLoad",`msg-${i}`)}).then(({data:a})=>{this.sendSuccess(a),this.onPositionId(i)}).catch(({msg:a})=>{$A.modalError(a)})}else{const i=$A.randNum(1e9,9999999999),a=$A.stringLength(s.replace(/]*?>/g,""))>5e3,O={id:i,dialog_id:this.dialogData.id,reply_id:this.replyId,reply_data:this.replyItem,type:a?"loading":"text",userid:this.userId,msg:{text:a?"":s}};this.tempMsgs.push(O),this.msgType="",this.replyActiveId=0,this.onActive(),this.$nextTick(this.onToBottom),this.$store.dispatch("call",{url:"dialog/msg/sendtext",data:{dialog_id:O.dialog_id,reply_id:O.reply_id,text:s},method:"post"}).then(({data:S})=>{this.tempMsgs=this.tempMsgs.filter(({id:w})=>w!=i),this.sendSuccess(S)}).catch(S=>{this.$set(O,"error",!0),this.$set(O,"errorData",{type:"text",content:S.msg,msg:s})})}e&&requestAnimationFrame(i=>this.msgText="")},sendRecord(t){const s=$A.randNum(1e9,9999999999),e={id:s,dialog_id:this.dialogData.id,reply_id:this.replyId,reply_data:this.replyItem,type:"loading",userid:this.userId,msg:t};this.tempMsgs.push(e),this.msgType="",this.replyActiveId=0,this.onActive(),this.$nextTick(this.onToBottom),this.$store.dispatch("call",{url:"dialog/msg/sendrecord",data:Object.assign(t,{dialog_id:this.dialogId,reply_id:this.replyId}),method:"post"}).then(({data:i})=>{this.tempMsgs=this.tempMsgs.filter(({id:a})=>a!=s),this.sendSuccess(i)}).catch(i=>{this.$set(e,"error",!0),this.$set(e,"errorData",{type:"record",content:i.msg,msg:t})})},sendFileMsg(t){const s=$A.isArray(t)?t:[t];s.length>0&&(this.pasteFile=[],this.pasteItem=[],s.some(e=>{const i={type:$A.getMiddle(e.type,null,"/"),name:e.name,size:e.size,result:null};if(i.type==="image"){const a=new FileReader;a.readAsDataURL(e),a.onload=({target:O})=>{i.result=O.result,this.pasteFile.push(e),this.pasteItem.push(i),this.pasteShow=!0}}else this.pasteFile.push(e),this.pasteItem.push(i),this.pasteShow=!0}))},getMsgs(t){return new Promise((s,e)=>{setTimeout(i=>this.msgLoadIng++,2e3),this.$store.dispatch("getDialogMsgs",t).then(s).catch(e).finally(i=>{this.msgLoadIng--})})},msgFilter(t){if(this.msgType){if(this.msgType==="tag"){if(!t.tag)return!1}else if(this.msgType==="link"){if(!t.link)return!1}else if(this.msgType!==t.mtype)return!1}return!(this.msgId&&t.reply_id!=this.msgId)},onSearchMsgId(){this.dialogSearchMsgId>0&&this.openId===this.dialogId&&(this.onPositionId(this.dialogSearchMsgId),this.$store.state.dialogSearchMsgId=0)},onPositionId(t,s=0,e=0){return new Promise((i,a)=>{if(t===0){$A.modalError("\u67E5\u770B\u5931\u8D25\uFF1A\u53C2\u6570\u9519\u8BEF"),a();return}if(this.loadMsg||this.msgType!==""){if(this.msgType="",e===0)this.$store.dispatch("showSpinner",600);else if(e>20){this.$store.dispatch("hiddenSpinner"),$A.modalError("\u67E5\u770B\u5931\u8D25\uFF1A\u8BF7\u6C42\u8D85\u65F6"),a();return}e++,setTimeout(w=>{this.onPositionId(t,s,e).then(i).catch(a)},Math.min(800,200*e));return}e>0&&this.$store.dispatch("hiddenSpinner");const O=this.allMsgs.findIndex(w=>w.id===t),S=this.prevId>0?0:-1;O>S?setTimeout(w=>{this.onToIndex(O),i()},200):(s>0&&this.$store.dispatch("setLoad",{key:`msg-${s}`,delay:600}),this.preventToBottom=!0,this.getMsgs({dialog_id:this.dialogId,msg_id:this.msgId,msg_type:this.msgType,position_id:t,spinner:2e3}).finally(w=>{const b=this.allMsgs.findIndex(_=>_.id===t);b>-1&&(this.onToIndex(b),i()),s>0&&this.$store.dispatch("cancelLoad",`msg-${s}`),this.preventToBottom=!1}))})},onViewTodo(t){if(this.operateVisible)return;this.todoViewId=t.id,this.todoViewMid=t.msg_id,this.todoViewShow=!0,this.allMsgs.findIndex(e=>e.id===this.todoViewMid)===-1&&this.$store.dispatch("call",{url:"dialog/msg/one",data:{msg_id:this.todoViewMid}}).then(({data:e})=>{this.todoViewData=e})},onCloseTodo(){this.todoViewLoad=!1,this.todoViewShow=!1,this.todoViewData={},this.todoViewMid=0,this.todoViewId=0},onPosTodo(){!this.todoViewMid||(this.todoViewPosLoad=!0,this.onPositionId(this.todoViewMid).then(this.onCloseTodo).finally(t=>{this.todoViewPosLoad=!1}))},onDoneTodo(){!this.todoViewId||this.todoViewLoad||(this.todoViewLoad=!0,this.$store.dispatch("call",{url:"dialog/msg/done",data:{id:this.todoViewId}}).then(({data:t})=>{this.$store.dispatch("saveDialogTodo",{id:this.todoViewId,done_at:$A.formatDate("Y-m-d H:i:s")}),this.$store.dispatch("saveDialog",{id:this.dialogId,todo_num:this.todoList.length}),t.add&&this.sendSuccess(t.add),this.todoList.length===0&&this.$store.dispatch("getDialogTodo",this.dialogId),this.onCloseTodo()}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.todoViewLoad=!1}))},itemClassAdd(t){return t===this.replyActiveIndex?"common-shake":""},inputFocus(){this.$nextTick(t=>{this.$refs.input&&this.$refs.input.focus()})},onRecordState(t){this.recordState=t},chatPasteDrag(t,s){this.dialogDrag=!1;const e=s==="drag"?t.dataTransfer.files:t.clipboardData.files,i=Array.prototype.slice.call(e);i.length>0&&(t.preventDefault(),this.sendFileMsg(i))},chatDragOver(t,s){let e=this.__dialogDrag=$A.randomString(8);if(!t)setTimeout(()=>{e===this.__dialogDrag&&(this.dialogDrag=t)},150);else{if(s.dataTransfer.effectAllowed==="move")return;this.dialogDrag=!0}},onTouchStart(t){this.wrapperStart=Object.assign(this.scrollInfo(),{clientY:t.touches[0].clientY,exclud:!this.$refs.scroller.$el.contains(t.target)})},onTouchMove(t){if(this.windowSmall&&this.windowScrollY>0){if(this.wrapperStart.exclud){t.preventDefault();return}this.wrapperStart.clientY>t.touches[0].clientY?this.wrapperStart.tail===0&&t.preventDefault():this.wrapperStart.offset===0&&t.preventDefault()}},pasteSend(){this.pasteFile.some(t=>{this.$refs.chatUpload.upload(t)})},chatFile(t,s){switch(t){case"progress":const e={id:s.tempId,dialog_id:this.dialogData.id,reply_id:this.replyId,type:"loading",userid:this.userId,msg:{}};this.tempMsgs.push(e),this.msgType="",this.replyActiveId=0,this.onActive(),this.$nextTick(this.onToBottom);break;case"error":this.tempMsgs=this.tempMsgs.filter(({id:i})=>i!=s.tempId);break;case"success":this.tempMsgs=this.tempMsgs.filter(({id:i})=>i!=s.tempId),this.sendSuccess(s.data);break}},sendSuccess(t){if($A.isArray(t)){t.some(this.sendSuccess);return}this.$store.dispatch("saveDialogMsg",t),this.replyActiveUpdate||(this.$store.dispatch("increaseTaskMsgNum",t),this.$store.dispatch("increaseMsgReplyNum",t),this.$store.dispatch("updateDialogLastMsg",t)),this.onCancelReply(),this.onActive()},onEventFocus(){this.$emit("on-focus")},onEventBlur(){this.$emit("on-blur")},onEventMore(t){switch(t){case"call":this.onCallTel();break;case"image":case"file":this.$refs.chatUpload.handleClick();break}},onCallTel(){this.$store.dispatch("call",{url:"dialog/tel",data:{dialog_id:this.dialogId},spinner:600}).then(({data:t})=>{t.tel&&$A.eeuiAppSendMessage({action:"callTel",tel:t.tel}),t.add&&(this.$store.dispatch("saveDialogMsg",t.add),this.$store.dispatch("updateDialogLastMsg",t.add),this.onActive())}).catch(({msg:t})=>{$A.modalError(t)})},onEventEmojiVisibleChange(t){t&&this.windowSmall&&this.onToBottom()},onHeightChange({newVal:t,oldVal:s}){const e=t-s;if(e!==0){const{offset:i,tail:a}=this.scrollInfo();a>0&&this.onToOffset(i+e)}},onActive(){this.$emit("on-active")},onToBottom(){this.msgNew=0;const t=this.$refs.scroller;t&&(t.scrollToBottom(),requestAnimationFrame(s=>t.scrollToBottom()))},onToIndex(t){const s=this.$refs.scroller;s&&(s.stopToBottom(),s.scrollToIndex(t,-100),requestAnimationFrame(e=>s.scrollToIndex(t,-100))),requestAnimationFrame(e=>this.replyActiveIndex=t)},onToOffset(t){const s=this.$refs.scroller;s&&(s.stopToBottom(),s.scrollToOffset(t),setTimeout(e=>s.scrollToOffset(t),10))},scrollInfo(){const t=this.$refs.scroller;return t?t.scrollInfo():{offset:0,scale:0,tail:0}},openProject(){!this.dialogData.group_info||(this.windowSmall&&this.$store.dispatch("openDialog",0),this.goForward({name:"manage-project",params:{projectId:this.dialogData.group_info.id}}))},openTask(){!this.dialogData.group_info||(this.taskId>0&&this.$store.dispatch("openDialog",0),this.$store.dispatch("openTask",this.dialogData.group_info.id))},onPrevPage(){this.prevId!==0&&this.getMsgs({dialog_id:this.dialogId,msg_id:this.msgId,msg_type:this.msgType,prev_id:this.prevId,save_before:t=>this.scrollDisabled=!0,save_after:t=>this.scrollDisabled=!1}).then(({data:t})=>{const s=t.list.map(e=>e.id);this.$nextTick(()=>{const e=this.$refs.scroller,i=s.reduce((O,S)=>({size:(typeof O=="object"?O.size:e.getSize(O))+e.getSize(S)}));let a=e.getOffset()+i.size;this.prevId===0&&(a-=36),this.onToOffset(a),setTimeout(O=>e.virtual.handleFront(),10)})}).catch(()=>{})},onDialogMenu(t){switch(t){case"openCreate":const s=[this.userId];this.dialogData.dialog_user&&this.userId!=this.dialogData.dialog_user.userid&&s.push(this.dialogData.dialog_user.userid),this.createGroupData={userids:s,uncancelable:[this.userId]},this.createGroupShow=!0;break;case"groupInfo":this.groupInfoShow=!0;break;case"transfer":this.groupTransferData={dialog_id:this.dialogId,userid:[],disabledChoice:[this.userId]},this.groupTransferShow=!0;break;case"transferConfirm":this.onTransferGroup();break;case"disband":this.onDisbandGroup();break;case"exit":this.onExitGroup();break}},onTransferGroup(){if(this.groupTransferData.userid.length===0){$A.messageError("\u8BF7\u9009\u62E9\u65B0\u7684\u7FA4\u4E3B");return}this.groupTransferLoad++,this.$store.dispatch("call",{url:"dialog/group/transfer",data:{dialog_id:this.dialogId,userid:this.groupTransferData.userid[0]}}).then(({data:t,msg:s})=>{$A.messageSuccess(s),this.$store.dispatch("saveDialog",t)}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.groupTransferLoad--,this.groupTransferShow=!1})},onDisbandGroup(){$A.modalConfirm({content:`\u4F60\u786E\u5B9A\u8981\u89E3\u6563\u3010${this.dialogData.name}\u3011\u7FA4\u7EC4\u5417\uFF1F`,loading:!0,okText:"\u89E3\u6563",onOk:()=>new Promise((t,s)=>{this.$store.dispatch("call",{url:"dialog/group/disband",data:{dialog_id:this.dialogId}}).then(({msg:e})=>{t(e),this.$store.dispatch("forgetDialog",this.dialogId),this.goForward({name:"manage-messenger"})}).catch(({msg:e})=>{s(e)})})})},onExitGroup(){$A.modalConfirm({content:"\u4F60\u786E\u5B9A\u8981\u9000\u51FA\u7FA4\u7EC4\u5417\uFF1F",loading:!0,onOk:()=>new Promise((t,s)=>{this.$store.dispatch("call",{url:"dialog/group/deluser",data:{dialog_id:this.dialogId}}).then(({msg:e})=>{t(e),this.$store.dispatch("forgetDialog",this.dialogId),this.goForward({name:"manage-messenger"})}).catch(({msg:e})=>{s(e)})})})},onCreateGroup(){this.createGroupLoad++,this.$store.dispatch("call",{url:"dialog/group/add",data:this.createGroupData}).then(({data:t,msg:s})=>{$A.messageSuccess(s),this.createGroupShow=!1,this.createGroupData={},this.$store.dispatch("saveDialog",t),this.$store.dispatch("openDialog",t.id)}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.createGroupLoad--})},onForward(t){if(t==="open")this.forwardData={dialogids:[],userids:[],msg_id:this.operateItem.id},this.forwardShow=!0;else if(t==="submit"){if($A.arrayLength(this.forwardData.dialogids)===0&&$A.arrayLength(this.forwardData.userids)===0){$A.messageWarning("\u8BF7\u9009\u62E9\u8F6C\u53D1\u5BF9\u8BDD\u6216\u6210\u5458");return}this.forwardLoad=!0,this.$store.dispatch("call",{url:"dialog/msg/forward",data:this.forwardData}).then(({data:s,msg:e})=>{this.forwardShow=!1,this.$store.dispatch("saveDialogMsg",s.msgs),this.$store.dispatch("updateDialogLastMsg",s.msgs),$A.messageSuccess(e)}).catch(({msg:s})=>{$A.modalError(s)}).finally(s=>{this.forwardLoad=!1})}},onScroll(t){this.operateVisible=!1;const{tail:s}=this.scrollInfo();this.scrollTail=s,this.scrollTail<=10&&(this.msgNew=0),this.scrollAction=t.target.scrollTop,this.scrollDirection=this.scrollTmp<=this.scrollAction?"down":"up",setTimeout(e=>this.scrollTmp=this.scrollAction,0)},onRange(t){if(this.preventMoreLoad)return;const s=this.scrollDirection==="down"?"next_id":"prev_id";for(let e=t.start;e<=t.end;e++){const i=this.allMsgs[e][s];if(i){const a=this.allMsgs[e+(s==="next_id"?1:-1)];a&&a.id!=i&&(this.preventMoreLoad=!0,this.getMsgs({dialog_id:this.dialogId,msg_id:this.msgId,msg_type:this.msgType,[s]:i}).finally(O=>{this.preventMoreLoad=!1}))}}},onBack(){if(!this.beforeBack)return this.handleBack();const t=this.beforeBack();t&&t.then?t.then(()=>{this.handleBack()}):this.handleBack()},handleBack(){const{name:t,params:s}=this.$store.state.routeHistoryLast;t===this.$route.name&&/^\d+$/.test(s.dialogId)?this.goForward({name:this.$route.name}):this.goBack()},onMsgType(t){switch(t){case"project":this.openProject();break;case"task":this.openTask();break;default:this.loadMsg?$A.messageWarning("\u6B63\u5728\u52A0\u8F7D\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5..."):this.msgType=t;break}},onMention(t){const s=this.cacheUserBasic.find(({userid:e})=>e==t.userid);s&&this.$refs.input.addMention({denotationChar:"@",id:s.userid,value:s.nickname})},onLongpress({event:t,el:s,msgData:e}){this.operateVisible=this.operateItem.id===e.id,this.operateItem=$A.isJson(e)?e:{},this.operateCopys=[],t.target.nodeName==="IMG"&&this.$Electron?this.operateCopys.push({type:"image",icon:"",label:"\u590D\u5236\u56FE\u7247",value:$A.rightDelete(t.target.currentSrc,"_thumb.jpg")}):t.target.nodeName==="A"&&this.operateCopys.push({type:"link",icon:"",label:"\u590D\u5236\u94FE\u63A5",value:t.target.href}),e.type==="text"&&(t.target.nodeName==="IMG"&&this.operateCopys.push({type:"imagedown",icon:"",label:"\u4E0B\u8F7D\u56FE\u7247",value:$A.rightDelete(t.target.currentSrc,"_thumb.jpg")}),e.msg.text.replace(/<[^>]+>/g,"").length>0&&this.operateCopys.push({type:"text",icon:"",label:this.operateCopys.length>0?"\u590D\u5236\u6587\u672C":"\u590D\u5236",value:""})),this.$nextTick(()=>{const i=s.getBoundingClientRect(),a=this.$el.getBoundingClientRect();this.operateStyles={left:`${t.clientX-a.left}px`,top:`${i.top+this.windowScrollY}px`,height:i.height+"px"},this.operateVisible=!0})},onOperate(t,s=null){this.operateVisible=!1,this.$nextTick(e=>{switch(t){case"reply":this.onReply();break;case"update":this.onUpdate();break;case"copy":this.onCopy(s);break;case"forward":this.onForward("open");break;case"withdraw":this.onWithdraw();break;case"view":this.onViewFile();break;case"down":this.onDownFile();break;case"tag":this.onTag();break;case"newTask":let i=$A.formatMsgBasic(this.operateItem.msg.text);i=i.replace(/]*?src=(["'])(.*?)(_thumb\.jpg)*\1[^>]*?>/g,''),yt.Store.set("addTask",{owner:[this.userId],content:i});break;case"todo":this.onTodo();break;case"pos":this.onPositionId(this.operateItem.id);break;case"emoji":this.onEmoji(s);break}})},onReply(){const{tail:t}=this.scrollInfo();this.replyActiveId=this.operateItem.id,this.replyActiveUpdate=!1,this.inputFocus(),t<=10&&requestAnimationFrame(this.onToBottom)},onUpdate(){if(this.onReply(),this.operateItem.type==="text"){this.replyActiveUpdate=!0;let{text:t}=this.operateItem.msg;t.indexOf("mention")>-1&&(t=t.replace(/
]*)>~([^>]*)<\/a>/g,'~$3'),t=t.replace(/([@#])([^>]*)<\/span>/g,'$3$4')),t=t.replace(/]*>/gi,s=>s.replace(/(width|height)="\d+"\s*/ig,"")),this.$refs.input.setPasteMode(!1),this.msgText=$A.formatMsgBasic(t),this.$nextTick(s=>this.$refs.input.setPasteMode(!0))}},onCopy(t){if(!$A.isJson(t))return;const{type:s,value:e}=t;switch(s){case"image":this.$Electron&&this.getBase64Image(e).then(a=>{this.$Electron.sendMessage("copyBase64Image",{base64:a})});break;case"imagedown":this.$store.dispatch("downUrl",{url:e,token:!1});break;case"link":this.$copyText(e).then(a=>$A.messageSuccess("\u590D\u5236\u6210\u529F")).catch(a=>$A.messageError("\u590D\u5236\u5931\u8D25"));break;case"text":const i=$A(this.$refs.scroller.$el).find(`[data-id="${this.operateItem.id}"]`).find(".dialog-content");if(i.length>0){const a=i[0].innerText.replace(/\n\n/g,` -`).replace(/(^\s*)|(\s*$)/g,"");this.$copyText(a).then(O=>$A.messageSuccess("\u590D\u5236\u6210\u529F")).catch(O=>$A.messageError("\u590D\u5236\u5931\u8D25"))}else $A.messageWarning("\u4E0D\u53EF\u590D\u5236\u7684\u5185\u5BB9");break}},onCancelReply(){this.replyActiveUpdate&&(this.replyActiveUpdate=!1,this.msgText=""),this.replyActiveId=0},onWithdraw(){$A.modalConfirm({content:"\u786E\u5B9A\u64A4\u56DE\u6B64\u4FE1\u606F\u5417\uFF1F",okText:"\u64A4\u56DE",loading:!0,onOk:()=>new Promise((t,s)=>{this.$store.dispatch("call",{url:"dialog/msg/withdraw",data:{msg_id:this.operateItem.id}}).then(()=>{t("\u6D88\u606F\u5DF2\u64A4\u56DE"),this.$store.dispatch("forgetDialogMsg",this.operateItem.id)}).catch(({msg:e})=>{s(e)})})})},onViewReply(t){this.operateVisible||this.onPositionId(t.reply_id,t.msg_id)},onViewText({target:t}){if(!this.operateVisible)switch(t.nodeName){case"IMG":t.classList.contains("browse")?this.onViewPicture(t.currentSrc):(this.$store.state.previewImageIndex=0,this.$store.state.previewImageList=$A.getTextImagesInfo(t.outerHTML));break;case"SPAN":t.classList.contains("mention")&&t.classList.contains("task")&&this.$store.dispatch("openTask",$A.runNum(t.getAttribute("data-id")));break}},onViewFile(t){if(this.operateVisible)return;$A.isJson(t)||(t=this.operateItem);const{msg:s}=t;if(["jpg","jpeg","gif","png"].includes(s.ext)){this.onViewPicture(s.path);return}const e=`/single/file/msg/${t.id}`;this.$Electron?this.$Electron.sendMessage("windowRouter",{name:`file-msg-${t.id}`,path:e,userAgent:"/hideenOfficeTitle/",force:!1,config:{title:`${s.name} (${$A.bytesToSize(s.size)})`,titleFixed:!0,parent:null,width:Math.min(window.screen.availWidth,1440),height:Math.min(window.screen.availHeight,900)},webPreferences:{nodeIntegrationInSubFrames:s.ext==="drawio"}}):this.$isEEUiApp?$A.eeuiAppOpenPage({pageType:"app",pageTitle:`${s.name} (${$A.bytesToSize(s.size)})`,url:"web.js",params:{titleFixed:!0,allowAccess:!0,url:$A.rightDelete(window.location.href,window.location.hash)+`#${e}`}}):window.open($A.apiUrl(`..${e}`))},onViewPicture(t){const s=this.allMsgs.filter(a=>a.type==="file"?["jpg","jpeg","gif","png"].includes(a.msg.ext):a.type==="text"?a.msg.text.match(/]*?>/):!1),e=[];s.some(({type:a,msg:O})=>{a==="file"?e.push({src:O.path,width:O.width,height:O.height}):a==="text"&&e.push(...$A.getTextImagesInfo(O.text))});const i=e.findIndex(({src:a})=>a===t);i>-1?(this.$store.state.previewImageIndex=i,this.$store.state.previewImageList=e):(this.$store.state.previewImageIndex=0,this.$store.state.previewImageList=[t])},onDownFile(t){this.operateVisible||($A.isJson(t)||(t=this.operateItem),$A.modalConfirm({title:"\u4E0B\u8F7D\u6587\u4EF6",content:`${t.msg.name} (${$A.bytesToSize(t.msg.size)})`,okText:"\u7ACB\u5373\u4E0B\u8F7D",onOk:()=>{this.$store.dispatch("downUrl",$A.apiUrl(`dialog/msg/download?msg_id=${t.id}`))}}))},onReplyList(t){this.operateVisible||(this.replyListId=t.msg_id,this.replyListShow=!0)},onError(t){if(t.error!==!0)return;const{type:s,content:e,msg:i}=t.errorData,a={icon:"error",title:"\u53D1\u9001\u5931\u8D25",content:e,cancelText:"\u53D6\u6D88\u53D1\u9001",onCancel:O=>{this.tempMsgs=this.tempMsgs.filter(({id:S})=>S!=t.id)}};if(s==="text")a.okText="\u518D\u6B21\u7F16\u8F91",a.onOk=()=>{this.tempMsgs=this.tempMsgs.filter(({id:O})=>O!=t.id),this.msgText=i,this.inputFocus()};else if(s==="record")a.okText="\u91CD\u65B0\u53D1\u9001",a.onOk=()=>{this.tempMsgs=this.tempMsgs.filter(({id:O})=>O!=t.id),this.sendRecord(i)};else return;$A.modalConfirm(a)},onEmoji(t){$A.isJson(t)||(t={msg_id:this.operateItem.id,symbol:t}),this.$store.dispatch("setLoad",{key:`msg-${t.msg_id}`,delay:600}),this.$store.dispatch("call",{url:"dialog/msg/emoji",data:t}).then(({data:s})=>{this.dialogMsgs.findIndex(i=>i.id==s.id)>-1?this.$store.dispatch("saveDialogMsg",s):this.todoViewData.id===s.id&&(this.todoViewData=Object.assign(this.todoViewData,s))}).catch(({msg:s})=>{$A.messageError(s)}).finally(s=>{this.$store.dispatch("cancelLoad",`msg-${t.msg_id}`)})},onShowEmojiUser(t){this.operateVisible||(this.respondData=t,this.respondShow=!0)},onTag(){if(this.operateVisible)return;const t={msg_id:this.operateItem.id};this.$store.dispatch("setLoad",{key:`msg-${t.msg_id}`,delay:600}),this.$store.dispatch("call",{url:"dialog/msg/tag",data:t}).then(({data:s})=>{this.tagOrTodoSuccess(s)}).catch(({msg:s})=>{$A.messageError(s)}).finally(s=>{this.$store.dispatch("cancelLoad",`msg-${t.msg_id}`)})},onTodo(t){var s;if(!this.operateVisible)if(t==="submit"){const e=$A.cloneJSON(this.todoSettingData);if(e.type==="my")e.type="user",e.userids=[e.my_id];else if(e.type==="you")e.type="user",e.userids=[e.you_id];else if(e.type==="user"&&$A.arrayLength(e.userids)===0){$A.messageWarning("\u9009\u62E9\u6307\u5B9A\u6210\u5458");return}this.todoSettingLoad++,this.onTodoSubmit(e).then(i=>{$A.messageSuccess(i),this.todoSettingShow=!1}).catch($A.messageError).finally(i=>{this.todoSettingLoad--})}else{const e=(s=this.dialogData.dialog_user)==null?void 0:s.userid;this.todoSettingData={type:"all",userids:[],msg_id:this.operateItem.id,my_id:this.userId,you_id:e!=this.userId?e:0},this.operateItem.todo?$A.modalConfirm({content:"\u4F60\u786E\u5B9A\u53D6\u6D88\u5F85\u529E\u5417\uFF1F",cancelText:"\u53D6\u6D88",okText:"\u786E\u5B9A",loading:!0,onOk:()=>this.onTodoSubmit(this.todoSettingData)}):this.todoSettingShow=!0}},onTodoSubmit(t){return new Promise((s,e)=>{this.$store.dispatch("setLoad",{key:`msg-${t.msg_id}`,delay:600}),this.$store.dispatch("call",{url:"dialog/msg/todo",data:t}).then(({data:i,msg:a})=>{s(a),this.tagOrTodoSuccess(i),this.onActive()}).catch(({msg:i})=>{e(i)}).finally(i=>{this.$store.dispatch("cancelLoad",`msg-${t.msg_id}`)})})},tagOrTodoSuccess(t){this.$store.dispatch("saveDialogMsg",t.update),t.add&&(this.$store.dispatch("saveDialogMsg",t.add),this.$store.dispatch("updateDialogLastMsg",t.add))},onPositionMark(){if(this.positionLoad>0)return;this.positionLoad++;const{msg_id:t}=this.positionMsg;this.$store.dispatch("dialogMsgMark",{dialog_id:this.dialogId,type:"read",after_msg_id:t}).then(s=>{this.positionLoad++,this.onPositionId(t).finally(e=>{this.positionLoad--})}).catch(({msg:s})=>{$A.modalError(s)}).finally(s=>{this.positionLoad--})},getBase64Image(t){return new Promise(s=>{let e=document.createElement("CANVAS"),i=e.getContext("2d"),a=new Image;a.crossOrigin="Anonymous",a.onload=()=>{e.height=a.height,e.width=a.width,i.drawImage(a,0,0);let O="png";$A.rightExists(t,"jpg")||$A.rightExists(t,"jpeg")?O="jpeg":$A.rightExists(t,"git")&&(O="git"),s(e.toDataURL(`image/${O}`)),e=null},a.src=t})}}},Bt={};var vi=pt(mi,di,pi,!1,gi,null,null,null);function gi(t){for(let s in Bt)this[s]=Bt[s]}var ki=function(){return vi.exports}();export{fi as C,ki as D}; +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var f={FRONT:"FRONT",BEHIND:"BEHIND"},h={INIT:"INIT",FIXED:"FIXED",DYNAMIC:"DYNAMIC"},l=0,u=function(){function v(y,k){i(this,v),this.init(y,k)}return O(v,[{key:"init",value:function(k,D){this.param=k,this.callUpdate=D,this.sizes=new Map,this.firstRangeTotalSize=0,this.firstRangeAverageSize=0,this.lastCalcIndex=0,this.fixedSizeValue=0,this.calcType=h.INIT,this.offset=0,this.direction="",this.range=Object.create(null),k&&this.checkRange(0,k.keeps-1)}},{key:"destroy",value:function(){this.init(null,null)}},{key:"getRange",value:function(){var k=Object.create(null);return k.start=this.range.start,k.end=this.range.end,k.padFront=this.range.padFront,k.padBehind=this.range.padBehind,k}},{key:"isBehind",value:function(){return this.direction===f.BEHIND}},{key:"isFront",value:function(){return this.direction===f.FRONT}},{key:"getOffset",value:function(k){return(k<1?0:this.getIndexOffset(k))+this.param.slotHeaderSize}},{key:"updateParam",value:function(k,D){var R=this;this.param&&k in this.param&&(k==="uniqueIds"&&this.sizes.forEach(function(B,W){D.includes(W)||R.sizes.delete(W)}),this.param[k]=D)}},{key:"saveSize",value:function(k,D){this.sizes.set(k,D),this.calcType===h.INIT?(this.fixedSizeValue=D,this.calcType=h.FIXED):this.calcType===h.FIXED&&this.fixedSizeValue!==D&&(this.calcType=h.DYNAMIC,delete this.fixedSizeValue),this.calcType!==h.FIXED&&typeof this.firstRangeTotalSize!="undefined"&&(this.sizes.sizethis.range.start)){var D=Math.max(k-this.param.buffer,0);this.checkRange(D,this.getEndByStart(D))}}},{key:"handleBehind",value:function(){var k=this.getScrollOvers();kk&&(W=R-1)}return D>0?--D:0}},{key:"getIndexOffset",value:function(k){if(!k)return 0;for(var D=0,R=0,B=0;B1&&arguments[1]!==void 0?arguments[1]:0;if(y>=this.dataSources.length-1)this.scrollToBottom();else{var D=this.virtual.getOffset(y);k!==0&&(D=Math.max(0,D+k)),this.scrollToOffset(D)}},scrollToBottom:function(){var y=this,k=this.$refs.shepherd;if(k){var D=k[this.isHorizontal?"offsetLeft":"offsetTop"];this.scrollToOffset(D),this.toBottomTime&&(clearTimeout(this.toBottomTime),this.toBottomTime=null),this.toBottomTime=setTimeout(function(){y.getOffset()+y.getClientSize()+1R+1||!R||(this.virtual.handleScroll(k),this.emitEvent(k,D,R,y))}},emitEvent:function(y,k,D,R){this.$emit("scroll",R,this.virtual.getRange()),this.virtual.isFront()&&!!this.dataSources.length&&y-this.topThreshold<=0?this.$emit("totop"):this.virtual.isBehind()&&y+k+this.bottomThreshold>=D&&this.$emit("tobottom")},getRenderSlots:function(y){for(var k=[],D=this.range,R=D.start,B=D.end,W=this.dataSources,q=this.dataKey,M=this.itemClass,L=this.itemTag,C=this.itemStyle,P=this.isHorizontal,U=this.extraProps,F=this.dataComponent,N=this.itemScopedSlots,j=this.$scopedSlots&&this.$scopedSlots.item,z=R;z<=B;z++){var H=W[z];if(H){var G=typeof q=="function"?q(H):H[q];typeof G=="string"||typeof G=="number"?k.push(y(A,{props:{index:z,tag:L,event:$.ITEM,horizontal:P,uniqueKey:G,source:H,extraProps:U,component:F,slotComponent:j,scopedSlots:N},style:C,class:"".concat(M).concat(this.itemClassAdd?" "+this.itemClassAdd(z):"")})):console.warn("Cannot get the data-key '".concat(q,"' from data-sources."))}else console.warn("Cannot get the index '".concat(z,"' from data-sources."))}return k}},render:function(y){var k=this.$slots,D=k.header,R=k.footer,B=this.range,W=B.padFront,q=B.padBehind,M=this.isHorizontal,L=this.pageMode,C=this.rootTag,P=this.wrapTag,U=this.wrapClass,F=this.wrapStyle,N=this.headerTag,j=this.headerClass,z=this.headerStyle,H=this.footerTag,G=this.footerClass,X=this.footerStyle,J=this.disabled,tt={padding:M?"0px ".concat(q,"px 0px ").concat(W,"px"):"".concat(W,"px 0px ").concat(q,"px")},nt=F?Object.assign({},F,tt):tt;return y(C,{ref:"root",style:J?{overflow:"hidden"}:null,on:{"&scroll":!L&&this.onScroll}},[D?y(x,{class:j,style:z,props:{tag:N,event:$.SLOT,uniqueKey:T.HEADER}},D):null,y(P,{class:U,attrs:{role:"group"},style:nt},this.getRenderSlots(y)),R?y(x,{class:G,style:X,props:{tag:H,event:$.SLOT,uniqueKey:T.FOOTER}},R):null,y("div",{ref:"shepherd",style:{width:M?"0px":"100%",height:M?"100%":"0px"}})])}});return E})})(Yt);var di=Yt.exports,pi=function(){var t=this,s=t.$createElement,e=t._self._c||s;return t.isReady?e("div",{staticClass:"dialog-wrapper",class:t.wrapperClass,on:{drop:function(i){return i.preventDefault(),t.chatPasteDrag(i,"drag")},dragover:function(i){return i.preventDefault(),t.chatDragOver(!0,i)},dragleave:function(i){return i.preventDefault(),t.chatDragOver(!1,i)},touchstart:t.onTouchStart,touchmove:t.onTouchMove}},[e("div",{staticClass:"dialog-nav",style:t.navStyle},[t._t("head",function(){return[e("div",{staticClass:"nav-wrapper",class:{completed:t.$A.dialogCompleted(t.dialogData)}},[e("div",{staticClass:"dialog-back",on:{click:t.onBack}},[e("i",{staticClass:"taskfont"},[t._v("\uE676")]),t.msgUnreadOnly?e("div",{staticClass:"back-num"},[t._v(t._s(t.msgUnreadOnly))]):t._e()]),e("div",{staticClass:"dialog-block"},[e("div",{staticClass:"dialog-avatar"},[t.dialogData.type=="group"?[t.dialogData.avatar?e("EAvatar",{staticClass:"img-avatar",attrs:{src:t.dialogData.avatar,size:42}}):t.dialogData.group_type=="department"?e("i",{staticClass:"taskfont icon-avatar department"},[t._v("\uE75C")]):t.dialogData.group_type=="project"?e("i",{staticClass:"taskfont icon-avatar project"},[t._v("\uE6F9")]):t.dialogData.group_type=="task"?e("i",{staticClass:"taskfont icon-avatar task"},[t._v("\uE6F4")]):e("Icon",{staticClass:"icon-avatar",attrs:{type:"ios-people"}})]:t.dialogData.dialog_user?e("div",{staticClass:"user-avatar"},[e("UserAvatar",{attrs:{online:t.dialogData.online_state,userid:t.dialogData.dialog_user.userid,size:42},on:{"update:online":function(i){return t.$set(t.dialogData,"online_state",i)}}},[t.dialogData.type==="user"&&t.dialogData.online_state!==!0?e("p",{attrs:{slot:"end"},slot:"end"},[t._v(" "+t._s(t.$L(t.dialogData.online_state))+" ")]):t._e()])],1):e("Icon",{staticClass:"icon-avatar",attrs:{type:"md-person"}})],2),e("div",{staticClass:"dialog-title"},[e("div",{staticClass:"main-title"},[t._l(t.$A.dialogTags(t.dialogData),function(i){return i.color!="success"?[e("Tag",{attrs:{color:i.color,fade:!1}},[t._v(t._s(t.$L(i.text)))])]:t._e()}),e("h2",[t._v(t._s(t.dialogData.name))]),t.peopleNum>0?e("em",{on:{click:function(i){return t.onDialogMenu("groupInfo")}}},[t._v("("+t._s(t.peopleNum)+")")]):t._e(),t.dialogData.bot?e("Tag",{staticClass:"after",attrs:{fade:!1}},[t._v(t._s(t.$L("\u673A\u5668\u4EBA")))]):t._e(),t.dialogData.group_type=="all"?e("Tag",{staticClass:"after pointer",attrs:{fade:!1},on:{"on-click":function(i){return t.onDialogMenu("groupInfo")}}},[t._v(t._s(t.$L("\u5168\u5458")))]):t.dialogData.group_type=="department"?e("Tag",{staticClass:"after pointer",attrs:{fade:!1},on:{"on-click":function(i){return t.onDialogMenu("groupInfo")}}},[t._v(t._s(t.$L("\u90E8\u95E8")))]):t._e(),t.msgLoadIng>0?e("div",{staticClass:"load"},[e("Loading")],1):t._e()],2),e("ul",{staticClass:"title-desc"},[t.dialogData.type==="user"?e("li",{class:[t.dialogData.online_state===!0?"online":"offline"]},[t._v(" "+t._s(t.$L(t.dialogData.online_state===!0?"\u5728\u7EBF":t.dialogData.online_state))+" ")]):t._e()]),t.tagShow?e("ul",{staticClass:"title-tags scrollbar-hidden"},t._l(t.msgTags,function(i){var a;return e("li",{key:i.type,class:(a={},a[i.type||"msg"]=!0,a.active=t.msgType===i.type,a),on:{click:function(O){return t.onMsgType(i.type)}}},[e("i",{staticClass:"no-dark-content"}),e("span",[t._v(t._s(t.$L(i.label)))])])}),0):t._e()])]),e("EDropdown",{staticClass:"dialog-menu",attrs:{trigger:"click"},on:{command:t.onDialogMenu}},[e("i",{staticClass:"taskfont dialog-menu-icon"},[t._v("\uE6E9")]),e("EDropdownMenu",{scopedSlots:t._u([{key:"default",fn:function(i){return[t.dialogData.type==="user"?e("EDropdownItem",{attrs:{command:"openCreate"}},[e("div",[t._v(t._s(t.$L("\u521B\u5EFA\u7FA4\u7EC4")))])]):[e("EDropdownItem",{attrs:{command:"groupInfo"}},[e("div",[t._v(t._s(t.$L("\u7FA4\u7EC4\u8BBE\u7F6E")))])]),t.dialogData.owner_id!=t.userId?[t.dialogData.group_type==="all"&&t.userIsAdmin?e("EDropdownItem",{attrs:{command:"avatarAdmin"}},[e("div",[t._v(t._s(t.$L("\u4FEE\u6539\u5934\u50CF")))])]):t._e(),e("EDropdownItem",{attrs:{command:"exit"}},[e("div",{staticStyle:{color:"#f00"}},[t._v(t._s(t.$L("\u9000\u51FA\u7FA4\u7EC4")))])])]:t.dialogData.group_type==="user"?[e("EDropdownItem",{attrs:{command:"avatar"}},[e("div",[t._v(t._s(t.$L("\u4FEE\u6539\u5934\u50CF")))])]),e("EDropdownItem",{attrs:{command:"transfer"}},[e("div",[t._v(t._s(t.$L("\u8F6C\u8BA9\u7FA4\u4E3B")))])]),e("EDropdownItem",{attrs:{command:"disband"}},[e("div",{staticStyle:{color:"#f00"}},[t._v(t._s(t.$L("\u89E3\u6563\u7FA4\u7EC4")))])])]:t._e()]]}}],null,!1,924665064)})],1)],1)]})],2),t.positionMsg?e("div",{staticClass:"dialog-position",class:{down:t.tagShow}},[e("div",{staticClass:"position-label",on:{click:t.onPositionMark}},[t.positionLoad>0?e("Icon",{staticClass:"icon-loading",attrs:{type:"ios-loading"}}):e("i",{staticClass:"taskfont"},[t._v("\uE624")]),t._v(" "+t._s(t.positionMsg.label)+" ")],1)]):t._e(),e("VirtualList",{ref:"scroller",staticClass:"dialog-scroller scrollbar-overlay",class:t.scrollerClass,attrs:{"data-key":"id","data-sources":t.allMsgs,"data-component":t.msgItem,"item-class-add":t.itemClassAdd,"extra-props":{dialogData:t.dialogData,operateVisible:t.operateVisible,operateItem:t.operateItem,isMyDialog:t.isMyDialog,msgId:t.msgId},"estimate-size":t.dialogData.type=="group"?105:77,keeps:50,disabled:t.scrollDisabled},on:{scroll:t.onScroll,range:t.onRange,totop:t.onPrevPage,"on-mention":t.onMention,"on-longpress":t.onLongpress,"on-view-reply":t.onViewReply,"on-view-text":t.onViewText,"on-view-file":t.onViewFile,"on-down-file":t.onDownFile,"on-reply-list":t.onReplyList,"on-error":t.onError,"on-emoji":t.onEmoji,"on-show-emoji-user":t.onShowEmojiUser},scopedSlots:t._u([{key:"header",fn:function(){return[t.allMsgs.length===0&&t.loadMsg||t.prevId>0?e("div",{staticClass:"dialog-item loading"},[t.scrollOffset<100?e("div",{staticClass:"dialog-wrapper-loading"}):t._e()]):t.allMsgs.length===0?e("div",{staticClass:"dialog-item nothing"},[t._v(t._s(t.$L("\u6682\u65E0\u6D88\u606F")))]):t._e()]},proxy:!0}],null,!1,2675320288)}),e("div",{ref:"footer",staticClass:"dialog-footer",class:t.footerClass,on:{click:t.onActive}},[e("div",{staticClass:"dialog-newmsg",on:{click:t.onToBottom}},[t._v(t._s(t.$L(`\u6709${t.msgNew}\u6761\u65B0\u6D88\u606F`)))]),e("div",{staticClass:"dialog-goto",on:{click:t.onToBottom}},[e("i",{staticClass:"taskfont"},[t._v("\uE72B")])]),e("DialogUpload",{ref:"chatUpload",staticClass:"chat-upload",attrs:{"dialog-id":t.dialogId,"reply-id":t.replyId},on:{"on-progress":function(i){return t.chatFile("progress",i)},"on-success":function(i){return t.chatFile("success",i)},"on-error":function(i){return t.chatFile("error",i)}}}),t.todoShow?e("div",{staticClass:"chat-todo"},[e("div",{staticClass:"todo-label"},[t._v(t._s(t.$L("\u5F85\u529E"))+":")]),e("ul",{staticClass:"scrollbar-hidden"},t._l(t.todoList,function(i){return e("li",{on:{click:function(a){return a.stopPropagation(),t.onViewTodo(i)}}},[e("div",{staticClass:"todo-desc no-dark-content"},[t._v(t._s(t.$A.getMsgSimpleDesc(i.msg_data)))])])}),0)]):t._e(),t.isMute?e("div",{staticClass:"chat-mute"},[t._v(" "+t._s(t.$L("\u7981\u8A00\u53D1\u8A00"))+" ")]):e("ChatInput",{ref:"input",attrs:{"dialog-id":t.dialogId,"reply-id":t.replyActiveId,"emoji-bottom":t.windowSmall,maxlength:2e5,placeholder:t.$L("\u8F93\u5165\u6D88\u606F...")},on:{"on-focus":t.onEventFocus,"on-blur":t.onEventBlur,"on-more":t.onEventMore,"on-file":t.sendFileMsg,"on-send":t.sendMsg,"on-record":t.sendRecord,"on-record-state":t.onRecordState,"on-emoji-visible-change":t.onEventEmojiVisibleChange,"on-height-change":t.onHeightChange,"on-cancel-reply":t.onCancelReply},model:{value:t.msgText,callback:function(i){t.msgText=i},expression:"msgText"}})],1),e("div",{staticClass:"operate-position",style:t.operateStyles},[e("Dropdown",{attrs:{trigger:"custom",placement:"top",visible:t.operateVisible,transferClassName:"dialog-wrapper-operate",transfer:""},on:{"on-clickoutside":function(i){t.operateVisible=!1}}},[e("div",{style:{userSelect:t.operateVisible?"none":"auto",height:t.operateStyles.height}}),e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[e("DropdownItem",{attrs:{name:"action"}},[e("ul",{staticClass:"operate-action"},[t.msgId===0?e("li",{on:{click:function(i){return t.onOperate("reply")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE6EB")]),e("span",[t._v(t._s(t.$L("\u56DE\u590D")))])]):t._e(),t.operateItem.userid==t.userId&&t.operateItem.type==="text"?e("li",{on:{click:function(i){return t.onOperate("update")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE779")]),e("span",[t._v(t._s(t.$L("\u7F16\u8F91")))])]):t._e(),t._l(t.operateCopys,function(i){return e("li",{on:{click:function(a){return t.onOperate("copy",i)}}},[e("i",{staticClass:"taskfont",domProps:{innerHTML:t._s(i.icon)}}),e("span",[t._v(t._s(t.$L(i.label)))])])}),e("li",{on:{click:function(i){return t.onOperate("forward")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE638")]),e("span",[t._v(t._s(t.$L("\u8F6C\u53D1")))])]),t.operateItem.userid==t.userId?e("li",{on:{click:function(i){return t.onOperate("withdraw")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE637")]),e("span",[t._v(t._s(t.$L("\u64A4\u56DE")))])]):t._e(),t.operateItem.type==="file"?[e("li",{on:{click:function(i){return t.onOperate("view")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE77B")]),e("span",[t._v(t._s(t.$L("\u67E5\u770B")))])]),e("li",{on:{click:function(i){return t.onOperate("down")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE7A8")]),e("span",[t._v(t._s(t.$L("\u4E0B\u8F7D")))])])]:t._e(),e("li",{on:{click:function(i){return t.onOperate("tag")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE61E")]),e("span",[t._v(t._s(t.$L(t.operateItem.tag?"\u53D6\u6D88\u6807\u6CE8":"\u6807\u6CE8")))])]),t.operateItem.type==="text"?e("li",{on:{click:function(i){return t.onOperate("newTask")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE7B8")]),e("span",[t._v(t._s(t.$L("\u65B0\u4EFB\u52A1")))])]):t._e(),e("li",{on:{click:function(i){return t.onOperate("todo")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE7B7")]),e("span",[t._v(t._s(t.$L(t.operateItem.todo?"\u53D6\u6D88\u5F85\u529E":"\u8BBE\u5F85\u529E")))])]),t.msgType!==""?e("li",{on:{click:function(i){return t.onOperate("pos")}}},[e("i",{staticClass:"taskfont"},[t._v("\uEE15")]),e("span",[t._v(t._s(t.$L("\u5B8C\u6574\u5BF9\u8BDD")))])]):t._e()],2)]),e("DropdownItem",{staticClass:"dropdown-emoji",attrs:{name:"emoji"}},[e("ul",{staticClass:"operate-emoji scrollbar-hidden"},t._l(t.operateEmojis,function(i,a){return e("li",{key:a,staticClass:"no-dark-content",domProps:{innerHTML:t._s(i)},on:{click:function(O){return t.onOperate("emoji",i)}}})}),0)])],1)],1)],1),t.dialogDrag?e("div",{staticClass:"drag-over",on:{click:function(i){t.dialogDrag=!1}}},[e("div",{staticClass:"drag-text"},[t._v(t._s(t.$L("\u62D6\u52A8\u5230\u8FD9\u91CC\u53D1\u9001")))])]):t._e(),e("Modal",{attrs:{title:t.$L(t.pasteTitle),"cancel-text":t.$L("\u53D6\u6D88"),"ok-text":t.$L("\u53D1\u9001"),"enter-ok":!0},on:{"on-ok":t.pasteSend},model:{value:t.pasteShow,callback:function(i){t.pasteShow=i},expression:"pasteShow"}},[e("ul",{staticClass:"dialog-wrapper-paste",class:t.pasteWrapperClass},t._l(t.pasteItem,function(i){return e("li",[i.type=="image"?e("img",{attrs:{src:i.result}}):e("div",[t._v(t._s(t.$L("\u6587\u4EF6"))+": "+t._s(i.name)+" ("+t._s(t.$A.bytesToSize(i.size))+")")])])}),0)]),e("Modal",{attrs:{title:t.$L("\u521B\u5EFA\u7FA4\u7EC4"),"mask-closable":!1},model:{value:t.createGroupShow,callback:function(i){t.createGroupShow=i},expression:"createGroupShow"}},[e("Form",{attrs:{model:t.createGroupData,"label-width":"auto"},nativeOn:{submit:function(i){i.preventDefault()}}},[e("FormItem",{attrs:{prop:"avatar",label:t.$L("\u7FA4\u5934\u50CF")}},[e("ImgUpload",{attrs:{num:1,width:512,height:512,whcut:1},model:{value:t.createGroupData.avatar,callback:function(i){t.$set(t.createGroupData,"avatar",i)},expression:"createGroupData.avatar"}})],1),e("FormItem",{attrs:{prop:"chat_name",label:t.$L("\u7FA4\u540D\u79F0")}},[e("Input",{attrs:{placeholder:t.$L("\u8F93\u5165\u7FA4\u540D\u79F0\uFF08\u9009\u586B\uFF09")},model:{value:t.createGroupData.chat_name,callback:function(i){t.$set(t.createGroupData,"chat_name",i)},expression:"createGroupData.chat_name"}})],1),e("FormItem",{attrs:{prop:"userids",label:t.$L("\u7FA4\u6210\u5458")}},[e("UserInput",{attrs:{uncancelable:t.createGroupData.uncancelable,"multiple-max":100,"show-bot":"",placeholder:t.$L("\u9009\u62E9\u9879\u76EE\u6210\u5458")},model:{value:t.createGroupData.userids,callback:function(i){t.$set(t.createGroupData,"userids",i)},expression:"createGroupData.userids"}})],1)],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(i){t.createGroupShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.createGroupLoad>0},on:{click:t.onCreateGroup}},[t._v(t._s(t.$L("\u521B\u5EFA")))])],1)],1),e("Modal",{attrs:{title:t.$L("\u4FEE\u6539\u5934\u50CF"),"mask-closable":!1},model:{value:t.avatarModifyShow,callback:function(i){t.avatarModifyShow=i},expression:"avatarModifyShow"}},[e("Form",{attrs:{model:t.avatarModifyData,"label-width":"auto"},nativeOn:{submit:function(i){i.preventDefault()}}},[e("FormItem",{attrs:{prop:"avatar",label:t.$L("\u7FA4\u5934\u50CF")}},[e("ImgUpload",{attrs:{num:1,width:512,height:512,whcut:1},model:{value:t.avatarModifyData.avatar,callback:function(i){t.$set(t.avatarModifyData,"avatar",i)},expression:"avatarModifyData.avatar"}})],1)],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(i){t.avatarModifyShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.avatarModifyLoad>0},on:{click:t.onAvatarModify}},[t._v(t._s(t.$L("\u4FDD\u5B58")))])],1)],1),e("Modal",{attrs:{title:t.$L("\u8F6C\u53D1"),"mask-closable":!1},model:{value:t.forwardShow,callback:function(i){t.forwardShow=i},expression:"forwardShow"}},[e("DialogSelect",{model:{value:t.forwardData,callback:function(i){t.forwardData=i},expression:"forwardData"}}),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(i){t.forwardShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.forwardLoad},on:{click:function(i){return t.onForward("submit")}}},[t._v(t._s(t.$L("\u8F6C\u53D1")))])],1)],1),e("Modal",{attrs:{title:t.$L("\u8BBE\u7F6E\u5F85\u529E"),"mask-closable":!1},model:{value:t.todoSettingShow,callback:function(i){t.todoSettingShow=i},expression:"todoSettingShow"}},[e("Form",{ref:"todoSettingForm",attrs:{model:t.todoSettingData,"label-width":"auto"},nativeOn:{submit:function(i){i.preventDefault()}}},[e("FormItem",{attrs:{prop:"type",label:t.$L("\u5F53\u524D\u4F1A\u8BDD")}},[e("RadioGroup",{model:{value:t.todoSettingData.type,callback:function(i){t.$set(t.todoSettingData,"type",i)},expression:"todoSettingData.type"}},[e("Radio",{attrs:{label:"all"}},[t._v(t._s(t.$L("\u6240\u6709\u6210\u5458")))]),e("Radio",{attrs:{label:"user"}},[t._v(t._s(t.$L("\u6307\u5B9A\u6210\u5458")))]),t.todoSettingData.my_id?e("Radio",{attrs:{label:"my"}},[e("div",{staticClass:"dialog-wrapper-todo"},[e("div",[e("UserAvatar",{attrs:{userid:t.todoSettingData.my_id,"show-icon":!1,"show-name":!0}}),e("Tag",[t._v(t._s(t.$L("\u81EA\u5DF1")))])],1)])]):t._e(),t.todoSettingData.you_id?e("Radio",{attrs:{label:"you"}},[e("div",{staticClass:"dialog-wrapper-todo"},[e("div",[e("UserAvatar",{attrs:{userid:t.todoSettingData.you_id,"show-icon":!1,"show-name":!0}})],1)])]):t._e()],1)],1),t.todoSettingData.type==="user"?e("FormItem",{attrs:{prop:"userids"}},[e("UserInput",{attrs:{"dialog-id":t.dialogId,placeholder:t.$L("\u9009\u62E9\u6307\u5B9A\u6210\u5458")},model:{value:t.todoSettingData.userids,callback:function(i){t.$set(t.todoSettingData,"userids",i)},expression:"todoSettingData.userids"}})],1):t._e()],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(i){t.todoSettingShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.todoSettingLoad>0},on:{click:function(i){return t.onTodo("submit")}}},[t._v(t._s(t.$L("\u786E\u5B9A")))])],1)],1),e("DrawerOverlay",{attrs:{placement:"right",size:400},model:{value:t.groupInfoShow,callback:function(i){t.groupInfoShow=i},expression:"groupInfoShow"}},[t.groupInfoShow?e("DialogGroupInfo",{attrs:{dialogId:t.dialogId},on:{"on-close":function(i){t.groupInfoShow=!1}}}):t._e()],1),e("Modal",{attrs:{title:t.$L("\u8F6C\u8BA9\u7FA4\u4E3B\u8EAB\u4EFD"),"mask-closable":!1},model:{value:t.groupTransferShow,callback:function(i){t.groupTransferShow=i},expression:"groupTransferShow"}},[e("Form",{attrs:{model:t.groupTransferData,"label-width":"auto"},nativeOn:{submit:function(i){i.preventDefault()}}},[e("FormItem",{attrs:{prop:"userid",label:t.$L("\u65B0\u7684\u7FA4\u4E3B")}},[e("UserInput",{attrs:{disabledChoice:t.groupTransferData.disabledChoice,"multiple-max":1,"max-hidden-select":"",placeholder:t.$L("\u9009\u62E9\u65B0\u7684\u7FA4\u4E3B")},model:{value:t.groupTransferData.userid,callback:function(i){t.$set(t.groupTransferData,"userid",i)},expression:"groupTransferData.userid"}})],1)],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(i){t.groupTransferShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.groupTransferLoad>0},on:{click:function(i){return t.onDialogMenu("transferConfirm")}}},[t._v(t._s(t.$L("\u786E\u5B9A\u8F6C\u8BA9")))])],1)],1),e("DrawerOverlay",{attrs:{placement:"right","class-name":"dialog-wrapper-drawer-list",size:500},model:{value:t.replyListShow,callback:function(i){t.replyListShow=i},expression:"replyListShow"}},[t.replyListShow?e("DialogWrapper",{staticClass:"drawer-list",attrs:{dialogId:t.dialogId,msgId:t.replyListId}},[e("div",{staticClass:"drawer-title",attrs:{slot:"head"},slot:"head"},[t._v(t._s(t.$L("\u56DE\u590D\u6D88\u606F")))])]):t._e()],1),e("DrawerOverlay",{attrs:{placement:"right",size:400},model:{value:t.respondShow,callback:function(i){t.respondShow=i},expression:"respondShow"}},[t.respondShow?e("DialogRespond",{attrs:{"respond-data":t.respondData},on:{"on-close":function(i){t.respondShow=!1}}}):t._e()],1),e("DrawerOverlay",{attrs:{placement:"right","class-name":"dialog-wrapper-drawer-list",size:500},model:{value:t.todoViewShow,callback:function(i){t.todoViewShow=i},expression:"todoViewShow"}},[e("div",{staticClass:"dialog-wrapper drawer-list"},[e("div",{staticClass:"dialog-nav"},[e("div",{staticClass:"drawer-title"},[t._v(t._s(t.$L("\u5F85\u529E\u6D88\u606F")))])]),e("div",{staticClass:"dialog-scroller scrollbar-overlay"},[t.todoViewMsg?e("DialogItem",{attrs:{source:t.todoViewMsg,simpleView:""},on:{"on-view-text":t.onViewText,"on-view-file":t.onViewFile,"on-down-file":t.onDownFile,"on-emoji":t.onEmoji}}):t._e(),e("Button",{staticClass:"original-button",attrs:{icon:"md-exit",type:"text",loading:t.todoViewPosLoad},on:{click:t.onPosTodo}},[t._v(t._s(t.$L("\u56DE\u5230\u539F\u6587")))])],1),e("div",{staticClass:"todo-button"},[e("Button",{attrs:{type:"primary",size:"large",icon:"md-checkbox-outline",loading:t.todoViewLoad,long:""},on:{click:t.onDoneTodo}},[t._v(t._s(t.$L("\u5B8C\u6210")))])],1)])])],1):t._e()},mi=[];const vi={name:"DialogWrapper",components:{ImgUpload:ie,DialogSelect:te,DialogRespond:Re,DialogItem:It,VirtualList:di,ChatInput:hi,DialogGroupInfo:De,DrawerOverlay:ee,UserInput:Ht,DialogUpload:Se},props:{dialogId:{type:Number,default:0},msgId:{type:Number,default:0},autoFocus:{type:Boolean,default:!1},beforeBack:Function},data(){return{msgItem:It,msgText:"",msgNew:0,msgType:"",allMsgs:[],tempMsgs:[],msgLoadIng:0,pasteShow:!1,pasteFile:[],pasteItem:[],createGroupShow:!1,createGroupData:{},createGroupLoad:0,avatarModifyShow:!1,avatarModifyData:{},avatarModifyLoad:0,forwardShow:!1,forwardLoad:!1,forwardData:{dialogids:[],userids:[]},openId:0,dialogDrag:!1,groupInfoShow:!1,groupTransferShow:!1,groupTransferLoad:0,groupTransferData:{userid:[],disabledChoice:[]},navStyle:{},operateVisible:!1,operateCopys:[],operateStyles:{},operateItem:{},operateEmojis:["\u{1F44C}","\u{1F91D}","\u{1F389}","\u2764\uFE0F","\u{1F44D}","\u{1F970}","\u{1F973}\uFE0F","\u2705","\u274C","\u2B55\uFE0F","\u2753","\u{1F680}","\u{1F440}"],recordState:"",wrapperStart:{},scrollOffset:0,scrollTail:0,preventMoreLoad:!1,preventToBottom:!1,replyActiveId:0,replyActiveIndex:-1,replyActiveUpdate:!1,replyListShow:!1,replyListId:0,respondShow:!1,respondData:{},todoSettingShow:!1,todoSettingLoad:0,todoSettingData:{type:"all",userids:[]},todoViewLoad:!1,todoViewPosLoad:!1,todoViewShow:!1,todoViewData:{},todoViewMid:0,todoViewId:0,scrollDisabled:!1,scrollDirection:null,scrollAction:0,scrollTmp:0,positionLoad:0}},beforeDestroy(){this.$store.dispatch("forgetInDialog",this._uid),this.$store.dispatch("closeDialog",this.dialogId)},computed:{..._t(["userIsAdmin","taskId","dialogSearchMsgId","dialogMsgs","dialogTodos","dialogMsgTransfer","cacheDialogs","wsOpenNum","touchBackInProgress","dialogIns","cacheUserBasic"]),...Ft(["isLoad"]),isReady(){return this.dialogId>0&&this.dialogData.id>0},dialogData(){return this.cacheDialogs.find(({id:t})=>t==this.dialogId)||{}},dialogList(){return this.cacheDialogs.filter(t=>!(t.name===void 0||t.dialog_delete===1)).sort((t,s)=>t.top_at||s.top_at?$A.Date(s.top_at)-$A.Date(t.top_at):t.todo_num>0||s.todo_num>0?s.todo_num-t.todo_num:$A.Date(s.last_at)-$A.Date(t.last_at))},dialogMsgList(){return this.isReady?this.dialogMsgs.filter(t=>t.dialog_id==this.dialogId):[]},tempMsgList(){return this.isReady?this.tempMsgs.filter(t=>t.dialog_id==this.dialogId):[]},allMsgList(){const t=[];if(t.push(...this.dialogMsgList.filter(s=>this.msgFilter(s))),this.msgId>0){const s=this.dialogMsgs.find(e=>e.id==this.msgId);s&&t.unshift(s)}if(this.tempMsgList.length>0){const s=t.map(({id:i})=>i),e=this.tempMsgList.filter(i=>!s.includes(i.id)&&this.msgFilter(i));e.length>0&&t.push(...e)}return t.sort((s,e)=>s.id-e.id)},loadMsg(){return this.isLoad(`msg::${this.dialogId}-${this.msgId}-${this.msgType}`)},prevId(){return this.allMsgs.length>0?$A.runNum(this.allMsgs[0].prev_id):0},peopleNum(){return this.dialogData.type==="group"?$A.runNum(this.dialogData.people):0},pasteTitle(){const{pasteItem:t}=this;let s=t.find(({type:i})=>i=="image"),e=t.find(({type:i})=>i!="image");return s&&e?"\u53D1\u9001\u6587\u4EF6/\u56FE\u7247":s?"\u53D1\u9001\u56FE\u7247":"\u53D1\u9001\u6587\u4EF6"},msgTags(){const t=[{type:"",label:"\u6D88\u606F"}];return this.dialogData.has_tag&&t.push({type:"tag",label:"\u6807\u6CE8"}),this.dialogData.has_image&&t.push({type:"image",label:"\u56FE\u7247"}),this.dialogData.has_file&&t.push({type:"file",label:"\u6587\u4EF6"}),this.dialogData.has_link&&t.push({type:"link",label:"\u94FE\u63A5"}),this.dialogData.group_type==="project"&&t.push({type:"project",label:"\u6253\u5F00\u9879\u76EE"}),this.dialogData.group_type==="task"&&t.push({type:"task",label:"\u6253\u5F00\u4EFB\u52A1"}),t},todoList(){return this.dialogData.todo_num?this.dialogTodos.filter(t=>!t.done_at&&t.dialog_id==this.dialogId).sort((t,s)=>s.id-t.id):[]},todoShow(){return this.todoList.length>0&&this.windowScrollY===0&&this.replyId===0},wrapperClass(){return["ready","ing"].includes(this.recordState)?["record-ready"]:null},tagShow(){return this.msgTags.length>1&&this.windowScrollY===0},scrollerClass(){return!this.$slots.head&&this.tagShow?"default-header":null},pasteWrapperClass(){return this.pasteItem.find(({type:t})=>t!=="image")?["multiple"]:[]},footerClass(){return this.msgNew>0&&this.allMsgs.length>0?"newmsg":this.scrollTail>500?"goto":null},msgUnreadOnly(){let t=0;return this.cacheDialogs.some(s=>{t+=$A.getDialogNum(s)}),t<=0?"":(t>999&&(t="999+"),String(t))},isMyDialog(){const{dialogData:t,userId:s}=this;return t.dialog_user&&t.dialog_user.userid==s},isMute(){if(this.dialogData.group_type==="all"){if(this.dialogData.all_group_mute==="all")return!0;if(this.dialogData.all_group_mute==="user"&&!this.userIsAdmin)return!0}return!1},replyId(){return parseInt(this.msgId>0?this.msgId:this.replyActiveId)},replyItem(){return this.replyId?this.allMsgs.find(({id:t})=>t===this.replyId):null},todoViewMsg(){if(this.todoViewMid){const t=this.allMsgs.find(s=>s.id==this.todoViewMid);if(t)return t;if(this.todoViewData.id===this.todoViewMid)return this.todoViewData}return null},positionMsg(){const{unread:t,position_msgs:s}=this.dialogData;if(!s||s.length===0||t===0||this.allMsgs.length===0)return null;const e=s.sort((i,a)=>a.msg_id-i.msg_id)[0];return this.allMsgs.findIndex(({id:i})=>i==e.msg_id)===-1?e.label==="{UNREAD}"?Object.assign(e,{label:this.$L(`\u672A\u8BFB\u6D88\u606F${t}\u6761`)}):e:null}},watch:{dialogId:{handler(t,s){t&&(this.msgNew=0,this.msgType="",this.replyActiveId=0,this.allMsgList.length>0&&(this.allMsgs=this.allMsgList,requestAnimationFrame(this.onToBottom)),this.getMsgs({dialog_id:t,msg_id:this.msgId,msg_type:this.msgType}).then(e=>{this.openId=t,setTimeout(this.onSearchMsgId,100)}).catch(e=>{}),this.$store.dispatch("saveInDialog",{uid:this._uid,dialog_id:t}),this.autoFocus&&this.inputFocus()),this.$store.dispatch("closeDialog",s)},immediate:!0},msgType(){this.getMsgs({dialog_id:this.dialogId,msg_id:this.msgId,msg_type:this.msgType,clear_before:!0}).catch(t=>{})},dialogSearchMsgId(){this.onSearchMsgId()},dialogMsgTransfer:{handler({time:t,msgFile:s,msgRecord:e,msgText:i,dialogId:a}){t>$A.Time()&&a==this.dialogId&&(this.$store.state.dialogMsgTransfer.time=0,this.$nextTick(()=>{$A.isArray(s)&&s.length>0?this.sendFileMsg(s):$A.isJson(e)&&e.duration>0?this.sendRecord(e):i&&this.sendMsg(i)}))},immediate:!0},wsOpenNum(t){t<=1||this.getMsgs({dialog_id:this.dialogId,msg_id:this.msgId,msg_type:this.msgType}).catch(s=>{})},allMsgList(t,s){const{tail:e}=this.scrollInfo();if(this.allMsgs=t,!this.windowActive||e>10&&s.length>0){const i=s[s.length-1]?s[s.length-1].id:0,a=t.filter(O=>O.id&&O.id>i);this.msgNew+=a.length}else this.preventToBottom||this.$nextTick(this.onToBottom)},windowScrollY(t){if($A.isIos()){const{tail:s}=this.scrollInfo();this.navStyle={marginTop:t+"px"},s<=10&&requestAnimationFrame(this.onToBottom),this.$refs.input.isFocus&&$A.scrollToView(this.$refs.footer)}},windowActive(t){if(t&&this.autoFocus){const s=$A.last(this.dialogIns);s&&s.uid===this._uid&&this.inputFocus()}},dialogDrag(t){t&&(this.operateVisible=!1)},replyActiveIndex(t){t>-1&&setTimeout(s=>this.replyActiveIndex=-1,800)}},methods:{sendMsg(t){let s,e=!1;if(typeof t=="string"&&t?s=t:(s=this.msgText,e=!0),s==""){this.inputFocus();return}if(s=s.replace(/<\/span> <\/p>$/,"

"),this.replyActiveUpdate){s=s.replace(new RegExp(`src=(["'])${$A.apiUrl("../")}`,"g"),"src=$1{{RemoteURL}}");const i=this.replyId;this.$store.dispatch("setLoad",{key:`msg-${i}`,delay:600}),this.replyActiveId=0,this.onActive(),this.$store.dispatch("call",{url:"dialog/msg/sendtext",data:{dialog_id:this.dialogId,update_id:i,text:s},method:"post",complete:a=>this.$store.dispatch("cancelLoad",`msg-${i}`)}).then(({data:a})=>{this.sendSuccess(a),this.onPositionId(i)}).catch(({msg:a})=>{$A.modalError(a)})}else{const i=$A.randNum(1e9,9999999999),a=$A.stringLength(s.replace(/]*?>/g,""))>5e3,O={id:i,dialog_id:this.dialogData.id,reply_id:this.replyId,reply_data:this.replyItem,type:a?"loading":"text",userid:this.userId,msg:{text:a?"":s}};this.tempMsgs.push(O),this.msgType="",this.replyActiveId=0,this.onActive(),this.$nextTick(this.onToBottom),this.$store.dispatch("call",{url:"dialog/msg/sendtext",data:{dialog_id:O.dialog_id,reply_id:O.reply_id,text:s},method:"post"}).then(({data:S})=>{this.tempMsgs=this.tempMsgs.filter(({id:w})=>w!=i),this.sendSuccess(S)}).catch(S=>{this.$set(O,"error",!0),this.$set(O,"errorData",{type:"text",content:S.msg,msg:s})})}e&&requestAnimationFrame(i=>this.msgText="")},sendRecord(t){const s=$A.randNum(1e9,9999999999),e={id:s,dialog_id:this.dialogData.id,reply_id:this.replyId,reply_data:this.replyItem,type:"loading",userid:this.userId,msg:t};this.tempMsgs.push(e),this.msgType="",this.replyActiveId=0,this.onActive(),this.$nextTick(this.onToBottom),this.$store.dispatch("call",{url:"dialog/msg/sendrecord",data:Object.assign(t,{dialog_id:this.dialogId,reply_id:this.replyId}),method:"post"}).then(({data:i})=>{this.tempMsgs=this.tempMsgs.filter(({id:a})=>a!=s),this.sendSuccess(i)}).catch(i=>{this.$set(e,"error",!0),this.$set(e,"errorData",{type:"record",content:i.msg,msg:t})})},sendFileMsg(t){const s=$A.isArray(t)?t:[t];s.length>0&&(this.pasteFile=[],this.pasteItem=[],s.some(e=>{const i={type:$A.getMiddle(e.type,null,"/"),name:e.name,size:e.size,result:null};if(i.type==="image"){const a=new FileReader;a.readAsDataURL(e),a.onload=({target:O})=>{i.result=O.result,this.pasteFile.push(e),this.pasteItem.push(i),this.pasteShow=!0}}else this.pasteFile.push(e),this.pasteItem.push(i),this.pasteShow=!0}))},getMsgs(t){return new Promise((s,e)=>{setTimeout(i=>this.msgLoadIng++,2e3),this.$store.dispatch("getDialogMsgs",t).then(s).catch(e).finally(i=>{this.msgLoadIng--})})},msgFilter(t){if(this.msgType){if(this.msgType==="tag"){if(!t.tag)return!1}else if(this.msgType==="link"){if(!t.link)return!1}else if(this.msgType!==t.mtype)return!1}return!(this.msgId&&t.reply_id!=this.msgId)},onSearchMsgId(){this.dialogSearchMsgId>0&&this.openId===this.dialogId&&(this.onPositionId(this.dialogSearchMsgId),this.$store.state.dialogSearchMsgId=0)},onPositionId(t,s=0,e=0){return new Promise((i,a)=>{if(t===0){$A.modalError("\u67E5\u770B\u5931\u8D25\uFF1A\u53C2\u6570\u9519\u8BEF"),a();return}if(this.loadMsg||this.msgType!==""){if(this.msgType="",e===0)this.$store.dispatch("showSpinner",600);else if(e>20){this.$store.dispatch("hiddenSpinner"),$A.modalError("\u67E5\u770B\u5931\u8D25\uFF1A\u8BF7\u6C42\u8D85\u65F6"),a();return}e++,setTimeout(w=>{this.onPositionId(t,s,e).then(i).catch(a)},Math.min(800,200*e));return}e>0&&this.$store.dispatch("hiddenSpinner");const O=this.allMsgs.findIndex(w=>w.id===t),S=this.prevId>0?0:-1;O>S?setTimeout(w=>{this.onToIndex(O),i()},200):(s>0&&this.$store.dispatch("setLoad",{key:`msg-${s}`,delay:600}),this.preventToBottom=!0,this.getMsgs({dialog_id:this.dialogId,msg_id:this.msgId,msg_type:this.msgType,position_id:t,spinner:2e3}).finally(w=>{const b=this.allMsgs.findIndex(_=>_.id===t);b>-1&&(this.onToIndex(b),i()),s>0&&this.$store.dispatch("cancelLoad",`msg-${s}`),this.preventToBottom=!1}))})},onViewTodo(t){if(this.operateVisible)return;this.todoViewId=t.id,this.todoViewMid=t.msg_id,this.todoViewShow=!0,this.allMsgs.findIndex(e=>e.id===this.todoViewMid)===-1&&this.$store.dispatch("call",{url:"dialog/msg/one",data:{msg_id:this.todoViewMid}}).then(({data:e})=>{this.todoViewData=e})},onCloseTodo(){this.todoViewLoad=!1,this.todoViewShow=!1,this.todoViewData={},this.todoViewMid=0,this.todoViewId=0},onPosTodo(){!this.todoViewMid||(this.todoViewPosLoad=!0,this.onPositionId(this.todoViewMid).then(this.onCloseTodo).finally(t=>{this.todoViewPosLoad=!1}))},onDoneTodo(){!this.todoViewId||this.todoViewLoad||(this.todoViewLoad=!0,this.$store.dispatch("call",{url:"dialog/msg/done",data:{id:this.todoViewId}}).then(({data:t})=>{this.$store.dispatch("saveDialogTodo",{id:this.todoViewId,done_at:$A.formatDate("Y-m-d H:i:s")}),this.$store.dispatch("saveDialog",{id:this.dialogId,todo_num:this.todoList.length}),t.add&&this.sendSuccess(t.add),this.todoList.length===0&&this.$store.dispatch("getDialogTodo",this.dialogId),this.onCloseTodo()}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.todoViewLoad=!1}))},itemClassAdd(t){return t===this.replyActiveIndex?"common-shake":""},inputFocus(){this.$nextTick(t=>{this.$refs.input&&this.$refs.input.focus()})},onRecordState(t){this.recordState=t},chatPasteDrag(t,s){this.dialogDrag=!1;const e=s==="drag"?t.dataTransfer.files:t.clipboardData.files,i=Array.prototype.slice.call(e);i.length>0&&(t.preventDefault(),this.sendFileMsg(i))},chatDragOver(t,s){let e=this.__dialogDrag=$A.randomString(8);if(!t)setTimeout(()=>{e===this.__dialogDrag&&(this.dialogDrag=t)},150);else{if(s.dataTransfer.effectAllowed==="move")return;this.dialogDrag=!0}},onTouchStart(t){this.wrapperStart=Object.assign(this.scrollInfo(),{clientY:t.touches[0].clientY,exclud:!this.$refs.scroller.$el.contains(t.target)})},onTouchMove(t){if(this.windowSmall&&this.windowScrollY>0){if(this.wrapperStart.exclud){t.preventDefault();return}this.wrapperStart.clientY>t.touches[0].clientY?this.wrapperStart.tail===0&&t.preventDefault():this.wrapperStart.offset===0&&t.preventDefault()}},pasteSend(){this.pasteFile.some(t=>{this.$refs.chatUpload.upload(t)})},chatFile(t,s){switch(t){case"progress":const e={id:s.tempId,dialog_id:this.dialogData.id,reply_id:this.replyId,type:"loading",userid:this.userId,msg:{}};this.tempMsgs.push(e),this.msgType="",this.replyActiveId=0,this.onActive(),this.$nextTick(this.onToBottom);break;case"error":this.tempMsgs=this.tempMsgs.filter(({id:i})=>i!=s.tempId);break;case"success":this.tempMsgs=this.tempMsgs.filter(({id:i})=>i!=s.tempId),this.sendSuccess(s.data);break}},sendSuccess(t){if($A.isArray(t)){t.some(this.sendSuccess);return}this.$store.dispatch("saveDialogMsg",t),this.replyActiveUpdate||(this.$store.dispatch("increaseTaskMsgNum",t),this.$store.dispatch("increaseMsgReplyNum",t),this.$store.dispatch("updateDialogLastMsg",t)),this.onCancelReply(),this.onActive()},onEventFocus(){this.$emit("on-focus")},onEventBlur(){this.$emit("on-blur")},onEventMore(t){switch(t){case"call":this.onCallTel();break;case"image":case"file":this.$refs.chatUpload.handleClick();break}},onCallTel(){this.$store.dispatch("call",{url:"dialog/tel",data:{dialog_id:this.dialogId},spinner:600}).then(({data:t})=>{t.tel&&$A.eeuiAppSendMessage({action:"callTel",tel:t.tel}),t.add&&(this.$store.dispatch("saveDialogMsg",t.add),this.$store.dispatch("updateDialogLastMsg",t.add),this.onActive())}).catch(({msg:t})=>{$A.modalError(t)})},onEventEmojiVisibleChange(t){t&&this.windowSmall&&this.onToBottom()},onHeightChange({newVal:t,oldVal:s}){const e=t-s;if(e!==0){const{offset:i,tail:a}=this.scrollInfo();a>0&&this.onToOffset(i+e)}},onActive(){this.$emit("on-active")},onToBottom(){this.msgNew=0;const t=this.$refs.scroller;t&&(t.scrollToBottom(),requestAnimationFrame(s=>t.scrollToBottom()))},onToIndex(t){const s=this.$refs.scroller;s&&(s.stopToBottom(),s.scrollToIndex(t,-100),requestAnimationFrame(e=>s.scrollToIndex(t,-100))),requestAnimationFrame(e=>this.replyActiveIndex=t)},onToOffset(t){const s=this.$refs.scroller;s&&(s.stopToBottom(),s.scrollToOffset(t),setTimeout(e=>s.scrollToOffset(t),10))},scrollInfo(){const t=this.$refs.scroller;return t?t.scrollInfo():{offset:0,scale:0,tail:0}},openProject(){!this.dialogData.group_info||(this.windowSmall&&this.$store.dispatch("openDialog",0),this.goForward({name:"manage-project",params:{projectId:this.dialogData.group_info.id}}))},openTask(){!this.dialogData.group_info||(this.taskId>0&&this.$store.dispatch("openDialog",0),this.$store.dispatch("openTask",this.dialogData.group_info.id))},onPrevPage(){this.prevId!==0&&this.getMsgs({dialog_id:this.dialogId,msg_id:this.msgId,msg_type:this.msgType,prev_id:this.prevId,save_before:t=>this.scrollDisabled=!0,save_after:t=>this.scrollDisabled=!1}).then(({data:t})=>{const s=t.list.map(e=>e.id);this.$nextTick(()=>{const e=this.$refs.scroller,i=s.reduce((O,S)=>({size:(typeof O=="object"?O.size:e.getSize(O))+e.getSize(S)}));let a=e.getOffset()+i.size;this.prevId===0&&(a-=36),this.onToOffset(a),setTimeout(O=>e.virtual.handleFront(),10)})}).catch(()=>{})},onDialogMenu(t){switch(t){case"openCreate":const s=[this.userId];this.dialogData.dialog_user&&this.userId!=this.dialogData.dialog_user.userid&&s.push(this.dialogData.dialog_user.userid),this.createGroupData={userids:s,uncancelable:[this.userId]},this.createGroupShow=!0;break;case"avatar":this.avatarModifyData={dialog_id:this.dialogData.id,avatar:this.dialogData.avatar},this.avatarModifyShow=!0;break;case"avatarAdmin":this.avatarModifyData={dialog_id:this.dialogData.id,avatar:this.dialogData.avatar,admin:1},this.avatarModifyShow=!0;break;case"groupInfo":this.groupInfoShow=!0;break;case"transfer":this.groupTransferData={dialog_id:this.dialogId,userid:[],disabledChoice:[this.userId]},this.groupTransferShow=!0;break;case"transferConfirm":this.onTransferGroup();break;case"disband":this.onDisbandGroup();break;case"exit":this.onExitGroup();break}},onTransferGroup(){if(this.groupTransferData.userid.length===0){$A.messageError("\u8BF7\u9009\u62E9\u65B0\u7684\u7FA4\u4E3B");return}this.groupTransferLoad++,this.$store.dispatch("call",{url:"dialog/group/transfer",data:{dialog_id:this.dialogId,userid:this.groupTransferData.userid[0]}}).then(({data:t,msg:s})=>{$A.messageSuccess(s),this.$store.dispatch("saveDialog",t)}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.groupTransferLoad--,this.groupTransferShow=!1})},onDisbandGroup(){$A.modalConfirm({content:`\u4F60\u786E\u5B9A\u8981\u89E3\u6563\u3010${this.dialogData.name}\u3011\u7FA4\u7EC4\u5417\uFF1F`,loading:!0,okText:"\u89E3\u6563",onOk:()=>new Promise((t,s)=>{this.$store.dispatch("call",{url:"dialog/group/disband",data:{dialog_id:this.dialogId}}).then(({msg:e})=>{t(e),this.$store.dispatch("forgetDialog",this.dialogId),this.goForward({name:"manage-messenger"})}).catch(({msg:e})=>{s(e)})})})},onExitGroup(){$A.modalConfirm({content:"\u4F60\u786E\u5B9A\u8981\u9000\u51FA\u7FA4\u7EC4\u5417\uFF1F",loading:!0,onOk:()=>new Promise((t,s)=>{this.$store.dispatch("call",{url:"dialog/group/deluser",data:{dialog_id:this.dialogId}}).then(({msg:e})=>{t(e),this.$store.dispatch("forgetDialog",this.dialogId),this.goForward({name:"manage-messenger"})}).catch(({msg:e})=>{s(e)})})})},onCreateGroup(){this.createGroupLoad++,this.$store.dispatch("call",{url:"dialog/group/add",data:this.createGroupData}).then(({data:t,msg:s})=>{$A.messageSuccess(s),this.createGroupShow=!1,this.createGroupData={},this.$store.dispatch("saveDialog",t),this.$store.dispatch("openDialog",t.id)}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.createGroupLoad--})},onAvatarModify(){this.avatarModifyLoad++,this.$store.dispatch("call",{url:"dialog/group/edit",data:this.avatarModifyData}).then(({data:t,msg:s})=>{$A.messageSuccess(s),this.avatarModifyShow=!1,this.avatarModifyData={},this.$store.dispatch("saveDialog",t)}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.avatarModifyLoad--})},onForward(t){if(t==="open")this.forwardData={dialogids:[],userids:[],msg_id:this.operateItem.id},this.forwardShow=!0;else if(t==="submit"){if($A.arrayLength(this.forwardData.dialogids)===0&&$A.arrayLength(this.forwardData.userids)===0){$A.messageWarning("\u8BF7\u9009\u62E9\u8F6C\u53D1\u5BF9\u8BDD\u6216\u6210\u5458");return}this.forwardLoad=!0,this.$store.dispatch("call",{url:"dialog/msg/forward",data:this.forwardData}).then(({data:s,msg:e})=>{this.forwardShow=!1,this.$store.dispatch("saveDialogMsg",s.msgs),this.$store.dispatch("updateDialogLastMsg",s.msgs),$A.messageSuccess(e)}).catch(({msg:s})=>{$A.modalError(s)}).finally(s=>{this.forwardLoad=!1})}},onScroll(t){this.operateVisible=!1;const{offset:s,tail:e}=this.scrollInfo();this.scrollOffset=s,this.scrollTail=e,this.scrollTail<=10&&(this.msgNew=0),this.scrollAction=t.target.scrollTop,this.scrollDirection=this.scrollTmp<=this.scrollAction?"down":"up",setTimeout(i=>this.scrollTmp=this.scrollAction,0)},onRange(t){if(this.preventMoreLoad)return;const s=this.scrollDirection==="down"?"next_id":"prev_id";for(let e=t.start;e<=t.end;e++){const i=this.allMsgs[e][s];if(i){const a=this.allMsgs[e+(s==="next_id"?1:-1)];a&&a.id!=i&&(this.preventMoreLoad=!0,this.getMsgs({dialog_id:this.dialogId,msg_id:this.msgId,msg_type:this.msgType,[s]:i}).finally(O=>{this.preventMoreLoad=!1}))}}},onBack(){if(!this.beforeBack)return this.handleBack();const t=this.beforeBack();t&&t.then?t.then(()=>{this.handleBack()}):this.handleBack()},handleBack(){const{name:t,params:s}=this.$store.state.routeHistoryLast;t===this.$route.name&&/^\d+$/.test(s.dialogId)?this.goForward({name:this.$route.name}):this.goBack()},onMsgType(t){switch(t){case"project":this.openProject();break;case"task":this.openTask();break;default:this.loadMsg?$A.messageWarning("\u6B63\u5728\u52A0\u8F7D\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5..."):this.msgType=t;break}},onMention(t){const s=this.cacheUserBasic.find(({userid:e})=>e==t.userid);s&&this.$refs.input.addMention({denotationChar:"@",id:s.userid,value:s.nickname})},onLongpress({event:t,el:s,msgData:e}){this.operateVisible=this.operateItem.id===e.id,this.operateItem=$A.isJson(e)?e:{},this.operateCopys=[],t.target.nodeName==="IMG"&&this.$Electron?this.operateCopys.push({type:"image",icon:"",label:"\u590D\u5236\u56FE\u7247",value:$A.rightDelete(t.target.currentSrc,"_thumb.jpg")}):t.target.nodeName==="A"&&this.operateCopys.push({type:"link",icon:"",label:"\u590D\u5236\u94FE\u63A5",value:t.target.href}),e.type==="text"&&(t.target.nodeName==="IMG"&&this.operateCopys.push({type:"imagedown",icon:"",label:"\u4E0B\u8F7D\u56FE\u7247",value:$A.rightDelete(t.target.currentSrc,"_thumb.jpg")}),e.msg.text.replace(/<[^>]+>/g,"").length>0&&this.operateCopys.push({type:"text",icon:"",label:this.operateCopys.length>0?"\u590D\u5236\u6587\u672C":"\u590D\u5236",value:""})),this.$nextTick(()=>{const i=s.getBoundingClientRect(),a=this.$el.getBoundingClientRect();this.operateStyles={left:`${t.clientX-a.left}px`,top:`${i.top+this.windowScrollY}px`,height:i.height+"px"},this.operateVisible=!0})},onOperate(t,s=null){this.operateVisible=!1,this.$nextTick(e=>{switch(t){case"reply":this.onReply();break;case"update":this.onUpdate();break;case"copy":this.onCopy(s);break;case"forward":this.onForward("open");break;case"withdraw":this.onWithdraw();break;case"view":this.onViewFile();break;case"down":this.onDownFile();break;case"tag":this.onTag();break;case"newTask":let i=$A.formatMsgBasic(this.operateItem.msg.text);i=i.replace(/]*?src=(["'])(.*?)(_thumb\.jpg)*\1[^>]*?>/g,''),yt.Store.set("addTask",{owner:[this.userId],content:i});break;case"todo":this.onTodo();break;case"pos":this.onPositionId(this.operateItem.id);break;case"emoji":this.onEmoji(s);break}})},onReply(){const{tail:t}=this.scrollInfo();this.replyActiveId=this.operateItem.id,this.replyActiveUpdate=!1,this.inputFocus(),t<=10&&requestAnimationFrame(this.onToBottom)},onUpdate(){if(this.onReply(),this.operateItem.type==="text"){this.replyActiveUpdate=!0;let{text:t}=this.operateItem.msg;t.indexOf("mention")>-1&&(t=t.replace(/
]*)>~([^>]*)<\/a>/g,'~$3'),t=t.replace(/([@#])([^>]*)<\/span>/g,'$3$4')),t=t.replace(/]*>/gi,s=>s.replace(/(width|height)="\d+"\s*/ig,"")),this.$refs.input.setPasteMode(!1),this.msgText=$A.formatMsgBasic(t),this.$nextTick(s=>this.$refs.input.setPasteMode(!0))}},onCopy(t){if(!$A.isJson(t))return;const{type:s,value:e}=t;switch(s){case"image":this.$Electron&&this.getBase64Image(e).then(a=>{this.$Electron.sendMessage("copyBase64Image",{base64:a})});break;case"imagedown":this.$store.dispatch("downUrl",{url:e,token:!1});break;case"link":this.$copyText(e).then(a=>$A.messageSuccess("\u590D\u5236\u6210\u529F")).catch(a=>$A.messageError("\u590D\u5236\u5931\u8D25"));break;case"text":const i=$A(this.$refs.scroller.$el).find(`[data-id="${this.operateItem.id}"]`).find(".dialog-content");if(i.length>0){const a=i[0].innerText.replace(/\n\n/g,` +`).replace(/(^\s*)|(\s*$)/g,"");this.$copyText(a).then(O=>$A.messageSuccess("\u590D\u5236\u6210\u529F")).catch(O=>$A.messageError("\u590D\u5236\u5931\u8D25"))}else $A.messageWarning("\u4E0D\u53EF\u590D\u5236\u7684\u5185\u5BB9");break}},onCancelReply(){this.replyActiveUpdate&&(this.replyActiveUpdate=!1,this.msgText=""),this.replyActiveId=0},onWithdraw(){$A.modalConfirm({content:"\u786E\u5B9A\u64A4\u56DE\u6B64\u4FE1\u606F\u5417\uFF1F",okText:"\u64A4\u56DE",loading:!0,onOk:()=>new Promise((t,s)=>{this.$store.dispatch("call",{url:"dialog/msg/withdraw",data:{msg_id:this.operateItem.id}}).then(()=>{t("\u6D88\u606F\u5DF2\u64A4\u56DE"),this.$store.dispatch("forgetDialogMsg",this.operateItem.id)}).catch(({msg:e})=>{s(e)})})})},onViewReply(t){this.operateVisible||this.onPositionId(t.reply_id,t.msg_id)},onViewText({target:t}){if(!this.operateVisible)switch(t.nodeName){case"IMG":t.classList.contains("browse")?this.onViewPicture(t.currentSrc):(this.$store.state.previewImageIndex=0,this.$store.state.previewImageList=$A.getTextImagesInfo(t.outerHTML));break;case"SPAN":t.classList.contains("mention")&&t.classList.contains("task")&&this.$store.dispatch("openTask",$A.runNum(t.getAttribute("data-id")));break}},onViewFile(t){if(this.operateVisible)return;$A.isJson(t)||(t=this.operateItem);const{msg:s}=t;if(["jpg","jpeg","gif","png"].includes(s.ext)){this.onViewPicture(s.path);return}const e=`/single/file/msg/${t.id}`;this.$Electron?this.$Electron.sendMessage("windowRouter",{name:`file-msg-${t.id}`,path:e,userAgent:"/hideenOfficeTitle/",force:!1,config:{title:`${s.name} (${$A.bytesToSize(s.size)})`,titleFixed:!0,parent:null,width:Math.min(window.screen.availWidth,1440),height:Math.min(window.screen.availHeight,900)},webPreferences:{nodeIntegrationInSubFrames:s.ext==="drawio"}}):this.$isEEUiApp?$A.eeuiAppOpenPage({pageType:"app",pageTitle:`${s.name} (${$A.bytesToSize(s.size)})`,url:"web.js",params:{titleFixed:!0,allowAccess:!0,url:$A.rightDelete(window.location.href,window.location.hash)+`#${e}`}}):window.open($A.apiUrl(`..${e}`))},onViewPicture(t){const s=this.allMsgs.filter(a=>a.type==="file"?["jpg","jpeg","gif","png"].includes(a.msg.ext):a.type==="text"?a.msg.text.match(/]*?>/):!1),e=[];s.some(({type:a,msg:O})=>{a==="file"?e.push({src:O.path,width:O.width,height:O.height}):a==="text"&&e.push(...$A.getTextImagesInfo(O.text))});const i=e.findIndex(({src:a})=>a===t);i>-1?(this.$store.state.previewImageIndex=i,this.$store.state.previewImageList=e):(this.$store.state.previewImageIndex=0,this.$store.state.previewImageList=[t])},onDownFile(t){this.operateVisible||($A.isJson(t)||(t=this.operateItem),$A.modalConfirm({title:"\u4E0B\u8F7D\u6587\u4EF6",content:`${t.msg.name} (${$A.bytesToSize(t.msg.size)})`,okText:"\u7ACB\u5373\u4E0B\u8F7D",onOk:()=>{this.$store.dispatch("downUrl",$A.apiUrl(`dialog/msg/download?msg_id=${t.id}`))}}))},onReplyList(t){this.operateVisible||(this.replyListId=t.msg_id,this.replyListShow=!0)},onError(t){if(t.error!==!0)return;const{type:s,content:e,msg:i}=t.errorData,a={icon:"error",title:"\u53D1\u9001\u5931\u8D25",content:e,cancelText:"\u53D6\u6D88\u53D1\u9001",onCancel:O=>{this.tempMsgs=this.tempMsgs.filter(({id:S})=>S!=t.id)}};if(s==="text")a.okText="\u518D\u6B21\u7F16\u8F91",a.onOk=()=>{this.tempMsgs=this.tempMsgs.filter(({id:O})=>O!=t.id),this.msgText=i,this.inputFocus()};else if(s==="record")a.okText="\u91CD\u65B0\u53D1\u9001",a.onOk=()=>{this.tempMsgs=this.tempMsgs.filter(({id:O})=>O!=t.id),this.sendRecord(i)};else return;$A.modalConfirm(a)},onEmoji(t){$A.isJson(t)||(t={msg_id:this.operateItem.id,symbol:t}),this.$store.dispatch("setLoad",{key:`msg-${t.msg_id}`,delay:600}),this.$store.dispatch("call",{url:"dialog/msg/emoji",data:t}).then(({data:s})=>{this.dialogMsgs.findIndex(i=>i.id==s.id)>-1?this.$store.dispatch("saveDialogMsg",s):this.todoViewData.id===s.id&&(this.todoViewData=Object.assign(this.todoViewData,s))}).catch(({msg:s})=>{$A.messageError(s)}).finally(s=>{this.$store.dispatch("cancelLoad",`msg-${t.msg_id}`)})},onShowEmojiUser(t){this.operateVisible||(this.respondData=t,this.respondShow=!0)},onTag(){if(this.operateVisible)return;const t={msg_id:this.operateItem.id};this.$store.dispatch("setLoad",{key:`msg-${t.msg_id}`,delay:600}),this.$store.dispatch("call",{url:"dialog/msg/tag",data:t}).then(({data:s})=>{this.tagOrTodoSuccess(s)}).catch(({msg:s})=>{$A.messageError(s)}).finally(s=>{this.$store.dispatch("cancelLoad",`msg-${t.msg_id}`)})},onTodo(t){var s;if(!this.operateVisible)if(t==="submit"){const e=$A.cloneJSON(this.todoSettingData);if(e.type==="my")e.type="user",e.userids=[e.my_id];else if(e.type==="you")e.type="user",e.userids=[e.you_id];else if(e.type==="user"&&$A.arrayLength(e.userids)===0){$A.messageWarning("\u9009\u62E9\u6307\u5B9A\u6210\u5458");return}this.todoSettingLoad++,this.onTodoSubmit(e).then(i=>{$A.messageSuccess(i),this.todoSettingShow=!1}).catch($A.messageError).finally(i=>{this.todoSettingLoad--})}else{const e=(s=this.dialogData.dialog_user)==null?void 0:s.userid;this.todoSettingData={type:"all",userids:[],msg_id:this.operateItem.id,my_id:this.userId,you_id:e!=this.userId?e:0},this.operateItem.todo?$A.modalConfirm({content:"\u4F60\u786E\u5B9A\u53D6\u6D88\u5F85\u529E\u5417\uFF1F",cancelText:"\u53D6\u6D88",okText:"\u786E\u5B9A",loading:!0,onOk:()=>this.onTodoSubmit(this.todoSettingData)}):this.todoSettingShow=!0}},onTodoSubmit(t){return new Promise((s,e)=>{this.$store.dispatch("setLoad",{key:`msg-${t.msg_id}`,delay:600}),this.$store.dispatch("call",{url:"dialog/msg/todo",data:t}).then(({data:i,msg:a})=>{s(a),this.tagOrTodoSuccess(i),this.onActive()}).catch(({msg:i})=>{e(i)}).finally(i=>{this.$store.dispatch("cancelLoad",`msg-${t.msg_id}`)})})},tagOrTodoSuccess(t){this.$store.dispatch("saveDialogMsg",t.update),t.add&&(this.$store.dispatch("saveDialogMsg",t.add),this.$store.dispatch("updateDialogLastMsg",t.add))},onPositionMark(){if(this.positionLoad>0)return;this.positionLoad++;const{msg_id:t}=this.positionMsg;this.$store.dispatch("dialogMsgMark",{dialog_id:this.dialogId,type:"read",after_msg_id:t}).then(s=>{this.positionLoad++,this.onPositionId(t).finally(e=>{this.positionLoad--})}).catch(({msg:s})=>{$A.modalError(s)}).finally(s=>{this.positionLoad--})},getBase64Image(t){return new Promise(s=>{let e=document.createElement("CANVAS"),i=e.getContext("2d"),a=new Image;a.crossOrigin="Anonymous",a.onload=()=>{e.height=a.height,e.width=a.width,i.drawImage(a,0,0);let O="png";$A.rightExists(t,"jpg")||$A.rightExists(t,"jpeg")?O="jpeg":$A.rightExists(t,"git")&&(O="git"),s(e.toDataURL(`image/${O}`)),e=null},a.src=t})}}},Bt={};var gi=pt(vi,pi,mi,!1,yi,null,null,null);function yi(t){for(let s in Bt)this[s]=Bt[s]}var Ei=function(){return gi.exports}();export{hi as C,Ei as D}; diff --git a/public/js/build/Drawio.eaf9e104.js b/public/js/build/Drawio.f86613c4.js similarity index 93% rename from public/js/build/Drawio.eaf9e104.js rename to public/js/build/Drawio.f86613c4.js index ede511e28..8ec9ed0b6 100644 --- a/public/js/build/Drawio.eaf9e104.js +++ b/public/js/build/Drawio.f86613c4.js @@ -1 +1 @@ -import{m as o,n as l,a as s}from"./app.90cb6e79.js";import{I as d}from"./IFrame.a3e09c0b.js";var u=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"drawio-content"},[a("IFrame",{ref:"frame",staticClass:"drawio-iframe",attrs:{src:e.url},on:{"on-message":e.onMessage}}),e.loadIng?a("div",{staticClass:"drawio-loading"},[a("Loading")],1):e._e()],1)},m=[];const c={name:"Drawio",components:{IFrame:d},props:{value:{type:Object,default:function(){return{}}},title:{type:String,default:""},readOnly:{type:Boolean,default:!1}},data(){return{loadIng:!0,url:null,bakData:""}},created(){let e=s;switch(s){case"zh-CHT":e="zh-tw";break}let t=this.readOnly?1:0,a=this.readOnly?0:1,r=this.themeIsDark?"dark":"kennedy",n=`?title=${this.title?encodeURIComponent(this.title):""}&chrome=${a}&lightbox=${t}&ui=${r}&lang=${e}&offline=1&pwa=0&embed=1&noLangIcon=1&noExitBtn=1&noSaveBtn=1&saveAndExit=0&spin=1&proto=json`;this.$Electron?this.url=$A.originUrl(`drawio/webapp/index.html${n}`):this.url=$A.apiUrl(`../drawio/webapp/${n}`)},mounted(){window.addEventListener("message",this.handleMessage)},beforeDestroy(){window.removeEventListener("message",this.handleMessage)},watch:{value:{handler(e){this.bakData!=$A.jsonStringify(e)&&(this.bakData=$A.jsonStringify(e),this.updateContent())},deep:!0}},computed:{...o(["themeIsDark"])},methods:{formatZoom(e){return e+"%"},updateContent(){this.$refs.frame.postMessage(JSON.stringify({action:"load",autosave:1,xml:this.value.xml}))},onMessage(e){switch(e.event){case"init":this.loadIng=!1,this.updateContent();break;case"load":typeof this.value.xml=="undefined"&&this.$refs.frame.postMessage(JSON.stringify({action:"template"}));break;case"autosave":const t={xml:e.xml};this.bakData=$A.jsonStringify(t),this.$emit("input",t);break;case"save":this.$emit("saveData");break}}}},i={};var h=l(c,u,m,!1,f,"6b690a27",null,null);function f(e){for(let t in i)this[t]=i[t]}var _=function(){return h.exports}();export{_ as default}; +import{m as o,n as l,a as s}from"./app.feefc813.js";import{I as d}from"./IFrame.5edcf1c5.js";var u=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"drawio-content"},[a("IFrame",{ref:"frame",staticClass:"drawio-iframe",attrs:{src:e.url},on:{"on-message":e.onMessage}}),e.loadIng?a("div",{staticClass:"drawio-loading"},[a("Loading")],1):e._e()],1)},m=[];const c={name:"Drawio",components:{IFrame:d},props:{value:{type:Object,default:function(){return{}}},title:{type:String,default:""},readOnly:{type:Boolean,default:!1}},data(){return{loadIng:!0,url:null,bakData:""}},created(){let e=s;switch(s){case"zh-CHT":e="zh-tw";break}let t=this.readOnly?1:0,a=this.readOnly?0:1,r=this.themeIsDark?"dark":"kennedy",n=`?title=${this.title?encodeURIComponent(this.title):""}&chrome=${a}&lightbox=${t}&ui=${r}&lang=${e}&offline=1&pwa=0&embed=1&noLangIcon=1&noExitBtn=1&noSaveBtn=1&saveAndExit=0&spin=1&proto=json`;this.$Electron?this.url=$A.originUrl(`drawio/webapp/index.html${n}`):this.url=$A.apiUrl(`../drawio/webapp/${n}`)},mounted(){window.addEventListener("message",this.handleMessage)},beforeDestroy(){window.removeEventListener("message",this.handleMessage)},watch:{value:{handler(e){this.bakData!=$A.jsonStringify(e)&&(this.bakData=$A.jsonStringify(e),this.updateContent())},deep:!0}},computed:{...o(["themeIsDark"])},methods:{formatZoom(e){return e+"%"},updateContent(){this.$refs.frame.postMessage(JSON.stringify({action:"load",autosave:1,xml:this.value.xml}))},onMessage(e){switch(e.event){case"init":this.loadIng=!1,this.updateContent();break;case"load":typeof this.value.xml=="undefined"&&this.$refs.frame.postMessage(JSON.stringify({action:"template"}));break;case"autosave":const t={xml:e.xml};this.bakData=$A.jsonStringify(t),this.$emit("input",t);break;case"save":this.$emit("saveData");break}}}},i={};var h=l(c,u,m,!1,f,"6b690a27",null,null);function f(e){for(let t in i)this[t]=i[t]}var _=function(){return h.exports}();export{_ as default}; diff --git a/public/js/build/FileContent.50f8fd54.js b/public/js/build/FileContent.209e43d5.js similarity index 92% rename from public/js/build/FileContent.50f8fd54.js rename to public/js/build/FileContent.209e43d5.js index 9af57ffe9..843cd5897 100644 --- a/public/js/build/FileContent.50f8fd54.js +++ b/public/js/build/FileContent.209e43d5.js @@ -1 +1 @@ -import{n as r,m as c,_ as n}from"./app.90cb6e79.js";import{I as d}from"./IFrame.a3e09c0b.js";var h=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"file-history"},[t("Table",{attrs:{width:480,"max-height":e.windowHeight-180,columns:e.columns,data:e.list,loading:e.loadIng>0,"no-data-text":e.$L(e.noText),"highlight-row":"",stripe:""}}),e.total>e.pageSize?t("Page",{attrs:{total:e.total,current:e.page,"page-size":e.pageSize,disabled:e.loadIng>0,simple:!0},on:{"on-change":e.setPage,"on-page-size-change":e.setPageSize}}):e._e()],1)},u=[];const f={name:"FileHistory",props:{value:{type:Boolean,default:!1},file:{type:Object,default:()=>({})}},data(){return{loadIng:0,columns:[{title:this.$L("\u65E5\u671F"),key:"created_at",width:168},{title:this.$L("\u521B\u5EFA\u4EBA"),width:120,render:(e,{row:s})=>e("UserAvatar",{props:{showName:!0,size:22,userid:s.userid}})},{title:this.$L("\u5927\u5C0F"),key:"size",width:90,render:(e,{row:s})=>e("AutoTip",$A.bytesToSize(s.size))},{title:this.$L("\u64CD\u4F5C"),align:"center",width:100,render:(e,{index:s,row:t,column:i})=>s===0&&this.page===1?e("div","-"):e("TableAction",{props:{column:i,menu:[{label:this.$L("\u67E5\u770B"),action:"preview"},{label:this.$L("\u8FD8\u539F"),action:"restore"}]},on:{action:a=>{this.onAction(a,t)}}})}],list:[],page:1,pageSize:10,total:0,noText:""}},mounted(){},watch:{value:{handler(e){e&&this.setPage(1)},immediate:!0}},computed:{fileId(){return this.file.id||0}},methods:{getLists(){this.fileId!==0&&(this.loadIng++,this.$store.dispatch("call",{url:"file/content/history",data:{id:this.fileId,page:Math.max(this.page,1),pagesize:Math.max($A.runNum(this.pageSize),10)}}).then(({data:e})=>{this.page=e.current_page,this.total=e.total,this.list=e.data,this.noText="\u6CA1\u6709\u76F8\u5173\u7684\u6570\u636E"}).catch(()=>{this.noText="\u6570\u636E\u52A0\u8F7D\u5931\u8D25"}).finally(e=>{this.loadIng--}))},setPage(e){this.page=e,this.getLists()},setPageSize(e){this.page=1,this.pageSize=e,this.getLists()},onAction(e,s){switch(e){case"restore":this.$emit("on-restore",s);break;case"preview":const t=`/single/file/${this.fileId}?history_id=${s.id}&history_at=${s.created_at}`;this.$Electron?this.$Electron.sendMessage("windowRouter",{name:`file-${this.fileId}-${s.id}`,path:t,userAgent:"/hideenOfficeTitle/",force:!1,config:{title:$A.getFileName(this.file)+` [${s.created_at}]`,titleFixed:!0,parent:null,width:Math.min(window.screen.availWidth,1440),height:Math.min(window.screen.availHeight,900)},webPreferences:{nodeIntegrationInSubFrames:this.file.type==="drawio"}}):this.$isEEUiApp?$A.eeuiAppOpenPage({pageType:"app",pageTitle:$A.getFileName(this.file)+` [${s.created_at}]`,url:"web.js",params:{titleFixed:!0,allowAccess:!0,url:$A.rightDelete(window.location.href,window.location.hash)+`#${t}`}}):window.open($A.apiUrl(`..${t}`));break}}}},o={};var p=r(f,h,u,!1,v,"44e1704c",null,null);function v(e){for(let s in o)this[s]=o[s]}var _=function(){return p.exports}(),m=function(){var e=this,s=e.$createElement,t=e._self._c||s;return e.ready?t("div",{staticClass:"file-content"},[e.isPreview?t("IFrame",{staticClass:"preview-iframe",attrs:{src:e.previewUrl},on:{"on-load":e.onFrameLoad}}):e.contentDetail?[["word","excel","ppt"].includes(e.file.type)?t("EPopover",{attrs:{trigger:"click"},model:{value:e.historyShow,callback:function(i){e.historyShow=i},expression:"historyShow"}},[t("div",{staticClass:"file-content-history"},[t("FileHistory",{attrs:{value:e.historyShow,file:e.file},on:{"on-restore":e.onRestoreHistory}})],1),t("div",{ref:"officeHeader",staticClass:"office-header",attrs:{slot:"reference"},slot:"reference"})]):t("div",{staticClass:"edit-header"},[t("div",{staticClass:"header-title"},[e.equalContent?e._e():t("EPopover",{staticClass:"file-unsave-tip",model:{value:e.unsaveTip,callback:function(i){e.unsaveTip=i},expression:"unsaveTip"}},[t("div",{staticClass:"task-detail-delete-file-popover"},[t("p",[e._v(e._s(e.$L("\u672A\u4FDD\u5B58\u5F53\u524D\u4FEE\u6539\u5185\u5BB9\uFF1F")))]),t("div",{staticClass:"buttons"},[t("Button",{attrs:{size:"small",type:"text"},on:{click:e.unSaveGive}},[e._v(e._s(e.$L("\u653E\u5F03")))]),t("Button",{attrs:{size:"small",type:"primary"},on:{click:e.onSaveSave}},[e._v(e._s(e.$L("\u4FDD\u5B58")))])],1)]),t("span",{attrs:{slot:"reference"},slot:"reference"},[e._v("["+e._s(e.$L("\u672A\u4FDD\u5B58"))+"*]")])]),e._v(" "+e._s(e.fileName)+" ")],1),t("div",{staticClass:"header-user"},[t("ul",[e._l(e.editUser,function(i,a){return a<=10?t("li",{key:a},[t("UserAvatar",{attrs:{userid:i,size:28,"border-witdh":2}})],1):e._e()}),e.editUser.length>10?t("li",{staticClass:"more",attrs:{title:e.editUser.length}},[e._v(e._s(e.editUser.length>999?"...":e.editUser.length))]):e._e()],2)]),e.file.type=="document"&&e.contentDetail?t("div",{staticClass:"header-hint"},[t("ButtonGroup",{attrs:{size:"small",shape:"circle"}},[t("Button",{attrs:{type:`${e.contentDetail.type=="md"?"primary":"default"}`},on:{click:function(i){return e.setTextType("md")}}},[e._v(e._s(e.$L("MD\u7F16\u8F91\u5668")))]),t("Button",{attrs:{type:`${e.contentDetail.type!="md"?"primary":"default"}`},on:{click:function(i){return e.setTextType("text")}}},[e._v(e._s(e.$L("\u6587\u672C\u7F16\u8F91\u5668")))])],1)],1):e._e(),e.file.type=="mind"?t("div",{staticClass:"header-hint"},[e._v(" "+e._s(e.$L("\u9009\u4E2D\u8282\u70B9\uFF0C\u6309enter\u952E\u6DFB\u52A0\u540C\u7EA7\u8282\u70B9\uFF0Ctab\u952E\u6DFB\u52A0\u5B50\u8282\u70B9"))+" ")]):e._e(),e.file.type=="mind"?t("Dropdown",{staticClass:"header-hint",attrs:{trigger:"click",transfer:""},on:{"on-click":e.exportMenu}},[t("a",{attrs:{href:"javascript:void(0)"}},[e._v(e._s(e.$L("\u5BFC\u51FA"))),t("Icon",{attrs:{type:"ios-arrow-down"}})],1),t("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[t("DropdownItem",{attrs:{name:"png"}},[e._v(e._s(e.$L("\u5BFC\u51FAPNG\u56FE\u7247")))]),t("DropdownItem",{attrs:{name:"pdf"}},[e._v(e._s(e.$L("\u5BFC\u51FAPDF\u6587\u4EF6")))])],1)],1):e._e(),e.file.only_view?e._e():[t("div",{staticClass:"header-icons"},[t("ETooltip",{attrs:{disabled:e.windowSmall||e.$isEEUiApp,content:e.$L("\u6587\u4EF6\u94FE\u63A5")}},[t("div",{staticClass:"header-icon",on:{click:function(i){return e.handleClick("link")}}},[t("i",{staticClass:"taskfont"},[e._v("\uE785")])])]),t("EPopover",{attrs:{trigger:"click"},model:{value:e.historyShow,callback:function(i){e.historyShow=i},expression:"historyShow"}},[t("div",{staticClass:"file-content-history"},[t("FileHistory",{attrs:{value:e.historyShow,file:e.file},on:{"on-restore":e.onRestoreHistory}})],1),t("ETooltip",{ref:"historyTip",attrs:{slot:"reference",disabled:e.windowSmall||e.$isEEUiApp||e.historyShow,content:e.$L("\u5386\u53F2\u7248\u672C")},slot:"reference"},[t("div",{staticClass:"header-icon"},[t("i",{staticClass:"taskfont"},[e._v("\uE71D")])])])],1)],1),t("Button",{staticClass:"header-button",attrs:{disabled:e.equalContent,loading:e.loadSave>0,size:"small",type:"primary"},on:{click:function(i){return e.handleClick("save")}}},[e._v(e._s(e.$L("\u4FDD\u5B58")))])]],2),t("div",{staticClass:"content-body"},[e.historyShow?t("div",{staticClass:"content-mask"}):e._e(),e.file.type=="document"?[e.contentDetail.type=="md"?t("MDEditor",{attrs:{height:"100%"},model:{value:e.contentDetail.content,callback:function(i){e.$set(e.contentDetail,"content",i)},expression:"contentDetail.content"}}):t("TEditor",{attrs:{height:"100%"},on:{editorSave:function(i){return e.handleClick("saveBefore")}},model:{value:e.contentDetail.content,callback:function(i){e.$set(e.contentDetail,"content",i)},expression:"contentDetail.content"}})]:e.file.type=="drawio"?t("Drawio",{ref:"myFlow",attrs:{title:e.file.name},on:{saveData:function(i){return e.handleClick("saveBefore")}},model:{value:e.contentDetail,callback:function(i){e.contentDetail=i},expression:"contentDetail"}}):e.file.type=="mind"?t("Minder",{ref:"myMind",on:{saveData:function(i){return e.handleClick("saveBefore")}},model:{value:e.contentDetail,callback:function(i){e.contentDetail=i},expression:"contentDetail"}}):["code","txt"].includes(e.file.type)?t("AceEditor",{attrs:{ext:e.file.ext},on:{saveData:function(i){return e.handleClick("saveBefore")}},model:{value:e.contentDetail.content,callback:function(i){e.$set(e.contentDetail,"content",i)},expression:"contentDetail.content"}}):["word","excel","ppt"].includes(e.file.type)?t("OnlyOffice",{attrs:{documentKey:e.documentKey},on:{"on-document-ready":function(i){return e.handleClick("officeReady")}},model:{value:e.contentDetail,callback:function(i){e.contentDetail=i},expression:"contentDetail"}}):e._e()],2)]:e._e(),e.contentLoad?t("div",{staticClass:"content-load"},[t("Loading")],1):e._e(),t("Modal",{attrs:{title:e.$L("\u6587\u4EF6\u94FE\u63A5"),"mask-closable":!1},model:{value:e.linkShow,callback:function(i){e.linkShow=i},expression:"linkShow"}},[t("div",[t("div",{staticStyle:{margin:"-10px 0 8px"}},[e._v(e._s(e.$L("\u6587\u4EF6\u540D\u79F0"))+": "+e._s(e.linkData.name))]),t("Input",{ref:"linkInput",attrs:{type:"textarea",rows:3,readonly:""},on:{"on-focus":e.linkFocus},model:{value:e.linkData.url,callback:function(i){e.$set(e.linkData,"url",i)},expression:"linkData.url"}}),t("div",{staticClass:"form-tip",staticStyle:{"padding-top":"6px"}},[e._v(e._s(e.$L("\u53EF\u901A\u8FC7\u6B64\u94FE\u63A5\u6D4F\u89C8\u6587\u4EF6\u3002"))),t("a",{attrs:{href:"javascript:void(0)"},on:{click:e.linkCopy}},[e._v(e._s(e.$L("\u70B9\u51FB\u590D\u5236\u94FE\u63A5")))])])],1),t("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[t("Button",{attrs:{type:"default"},on:{click:function(i){e.linkShow=!1}}},[e._v(e._s(e.$L("\u53D6\u6D88")))]),t("Poptip",{staticStyle:{"margin-left":"8px"},attrs:{confirm:"",placement:"bottom","ok-text":e.$L("\u786E\u5B9A"),"cancel-text":e.$L("\u53D6\u6D88"),transfer:""},on:{"on-ok":function(i){return e.linkGet(!0)}}},[t("div",{attrs:{slot:"title"},slot:"title"},[t("p",[t("strong",[e._v(e._s(e.$L("\u6CE8\u610F\uFF1A\u5237\u65B0\u5C06\u5BFC\u81F4\u539F\u6765\u7684\u94FE\u63A5\u5931\u6548\uFF01")))])])]),t("Button",{attrs:{type:"primary",loading:e.linkLoad>0}},[e._v(e._s(e.$L("\u5237\u65B0")))])],1)],1)])],2):e._e()},y=[];const k=()=>n(()=>import("./index.26863913.js"),["js/build/index.26863913.js","js/build/index.a55dd794.css","js/build/app.90cb6e79.js","js/build/app.ce5dd3b0.css","js/build/ImgUpload.466e5bce.js"]),$=()=>n(()=>import("./TEditor.27348ee4.js"),["js/build/TEditor.27348ee4.js","js/build/app.90cb6e79.js","js/build/app.ce5dd3b0.css","js/build/ImgUpload.466e5bce.js"]),w=()=>n(()=>import("./AceEditor.b217f4b4.js"),["js/build/AceEditor.b217f4b4.js","js/build/app.90cb6e79.js","js/build/app.ce5dd3b0.css"]),g=()=>n(()=>import("./OnlyOffice.2eabb102.js"),["js/build/OnlyOffice.2eabb102.js","js/build/OnlyOffice.d36f3069.css","js/build/app.90cb6e79.js","js/build/app.ce5dd3b0.css","js/build/IFrame.a3e09c0b.js"]),D=()=>n(()=>import("./Drawio.eaf9e104.js"),["js/build/Drawio.eaf9e104.js","js/build/Drawio.fc5c6326.css","js/build/app.90cb6e79.js","js/build/app.ce5dd3b0.css","js/build/IFrame.a3e09c0b.js"]),x=()=>n(()=>import("./Minder.f2d75c7c.js"),["js/build/Minder.f2d75c7c.js","js/build/Minder.f2273bdb.css","js/build/IFrame.a3e09c0b.js","js/build/app.90cb6e79.js","js/build/app.ce5dd3b0.css"]),S={name:"FileContent",components:{IFrame:d,FileHistory:_,AceEditor:w,TEditor:$,MDEditor:k,OnlyOffice:g,Drawio:D,Minder:x},props:{value:{type:Boolean,default:!1},file:{type:Object,default:()=>({})}},data(){return{ready:!1,loadSave:0,loadContent:0,unsaveTip:!1,fileExt:null,contentDetail:null,contentBak:{},editUser:[],loadPreview:!0,linkShow:!1,linkData:{},linkLoad:0,historyShow:!1,officeReady:!1}},mounted(){document.addEventListener("keydown",this.keySave),window.addEventListener("message",this.handleOfficeMessage),this.$isSubElectron&&(window.__onBeforeUnload=()=>{if(!this.equalContent)return $A.modalConfirm({content:"\u4FEE\u6539\u7684\u5185\u5BB9\u5C1A\u672A\u4FDD\u5B58\uFF0C\u786E\u5B9A\u8981\u653E\u5F03\u4FEE\u6539\u5417\uFF1F",cancelText:"\u53D6\u6D88",okText:"\u653E\u5F03",onOk:()=>{this.$Electron.sendMessage("windowDestroy")}}),!0})},beforeDestroy(){document.removeEventListener("keydown",this.keySave),window.removeEventListener("message",this.handleOfficeMessage)},watch:{value:{handler(e){e?(this.ready=!0,this.editUser=[this.userId],this.getContent()):(this.linkShow=!1,this.historyShow=!1,this.officeReady=!1,this.fileExt=null)},immediate:!0},historyShow(e){!e&&this.$refs.historyTip&&this.$refs.historyTip.updatePopper()},wsMsg:{handler(e){const{type:s,action:t,data:i}=e;switch(s){case"path":i.path=="/single/file/"+this.fileId&&(this.editUser=i.userids);break;case"file":t=="content"&&this.value&&i.id==this.fileId&&$A.modalConfirm({title:"\u66F4\u65B0\u63D0\u793A",content:"\u56E2\u961F\u6210\u5458\uFF08"+e.nickname+"\uFF09\u66F4\u65B0\u4E86\u5185\u5BB9\uFF0C
\u66F4\u65B0\u65F6\u95F4\uFF1A"+$A.formatDate("Y-m-d H:i:s",e.time)+"\u3002

\u70B9\u51FB\u3010\u786E\u5B9A\u3011\u52A0\u8F7D\u6700\u65B0\u5185\u5BB9\u3002",onOk:()=>{this.getContent()}});break}},deep:!0}},computed:{...c(["wsMsg"]),fileId(){return this.file.id||0},fileName(){return this.fileExt?$A.getFileName(Object.assign(this.file,{ext:this.fileExt})):$A.getFileName(this.file)},equalContent(){return this.contentBak==$A.jsonStringify(this.contentDetail)},contentLoad(){return this.loadContent>0||this.previewLoad},isPreview(){return this.contentDetail&&this.contentDetail.preview===!0},previewLoad(){return this.isPreview&&this.loadPreview===!0},previewUrl(){if(this.isPreview){const{name:e,key:s}=this.contentDetail;return $A.apiUrl(`../online/preview/${e}?key=${s}`)}return""}},methods:{handleOfficeMessage({data:e,source:s}){if(e.source==="onlyoffice")switch(e.action){case"ready":s.postMessage("createMenu","*");break;case"link":this.handleClick("link");break;case"history":const t=this.$refs.officeHeader;t&&(t.style.top=`${e.rect.top}px`,t.style.left=`${e.rect.left}px`,t.style.width=`${e.rect.width}px`,t.style.height=`${e.rect.height}px`,t.click());break}},onFrameLoad(){this.loadPreview=!1},keySave(e){this.value&&e.keyCode===83&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),this.onSaveSave())},getContent(){if(this.fileId===0){this.contentDetail={},this.updateBak();return}if(["word","excel","ppt"].includes(this.file.type)){this.contentDetail=$A.cloneJSON(this.file),this.updateBak();return}this.loadSave++,setTimeout(e=>{this.loadContent++},600),this.$store.dispatch("call",{url:"file/content",data:{id:this.fileId}}).then(({data:e})=>{this.contentDetail=e.content,this.updateBak()}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.loadSave--,this.loadContent--})},updateBak(){this.contentBak=$A.jsonStringify(this.contentDetail)},handleClick(e){switch(e){case"link":this.linkData={id:this.fileId,name:this.file.name},this.linkShow=!0,this.linkGet();break;case"saveBefore":!this.equalContent&&this.loadSave==0?this.handleClick("save"):$A.messageWarning("\u6CA1\u6709\u4EFB\u4F55\u4FEE\u6539\uFF01");break;case"save":if(this.file.only_view)return;this.updateBak(),this.loadSave++,this.$store.dispatch("call",{url:"file/content/save",method:"post",data:{id:this.fileId,content:this.contentBak}}).then(({data:s,msg:t})=>{$A.messageSuccess(t);const i={id:this.fileId,size:s.size};this.fileExt&&(i.ext=this.fileExt,this.fileExt=null),this.$store.dispatch("saveFile",i)}).catch(({msg:s})=>{$A.modalError(s),this.getContent()}).finally(s=>{this.loadSave--});break;case"officeReady":this.officeReady=!0;break}},onRestoreHistory(e){this.historyShow=!1,$A.modalConfirm({content:`\u4F60\u786E\u5B9A\u6587\u4EF6\u8FD8\u539F\u81F3\u3010${e.created_at}\u3011\u5417\uFF1F`,cancelText:"\u53D6\u6D88",okText:"\u786E\u5B9A",loading:!0,onOk:()=>new Promise((s,t)=>{this.$store.dispatch("call",{url:"file/content/restore",data:{id:this.fileId,history_id:e.id}}).then(({msg:i})=>{s(i),this.contentDetail=null,this.getContent()}).catch(({msg:i})=>{t(i)})})})},linkGet(e){this.linkLoad++,this.$store.dispatch("call",{url:"file/link",data:{id:this.linkData.id,refresh:e===!0?"yes":"no"}}).then(({data:s})=>{this.linkData=Object.assign(s,{id:this.linkData.id,name:this.linkData.name}),this.linkFocus()}).catch(({msg:s})=>{this.linkShow=!1,$A.modalError(s)}).finally(s=>{this.linkLoad--})},linkCopy(){!this.linkData.url||(this.linkFocus(),this.$copyText(this.linkData.url).then(e=>{$A.messageSuccess("\u590D\u5236\u6210\u529F")}).catch(e=>{$A.messageError("\u590D\u5236\u5931\u8D25")}))},linkFocus(){this.$nextTick(e=>{this.$refs.linkInput.focus({cursor:"all"})})},exportMenu(e){switch(this.file.type){case"mind":this.$refs.myMind.exportHandle(e,this.file.name);break}},unSaveGive(){this.getContent(),this.unsaveTip=!1},onSaveSave(){this.handleClick("save"),this.unsaveTip=!1},setTextType(e){this.fileExt=e,this.$set(this.contentDetail,"type",e)},documentKey(){return new Promise(e=>{this.$store.dispatch("call",{url:"file/content",data:{id:this.fileId,only_update_at:"yes"}}).then(({data:s})=>{e(`${s.id}-${$A.Time(s.update_at)}`)}).catch(()=>{e(0)})})}}},l={};var C=r(S,m,y,!1,L,null,null,null);function L(e){for(let s in l)this[s]=l[s]}var A=function(){return C.exports}();export{A as default}; +import{n as r,m as c,_ as n}from"./app.feefc813.js";import{I as d}from"./IFrame.5edcf1c5.js";var h=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"file-history"},[t("Table",{attrs:{width:480,"max-height":e.windowHeight-180,columns:e.columns,data:e.list,loading:e.loadIng>0,"no-data-text":e.$L(e.noText),"highlight-row":"",stripe:""}}),e.total>e.pageSize?t("Page",{attrs:{total:e.total,current:e.page,"page-size":e.pageSize,disabled:e.loadIng>0,simple:!0},on:{"on-change":e.setPage,"on-page-size-change":e.setPageSize}}):e._e()],1)},u=[];const f={name:"FileHistory",props:{value:{type:Boolean,default:!1},file:{type:Object,default:()=>({})}},data(){return{loadIng:0,columns:[{title:this.$L("\u65E5\u671F"),key:"created_at",width:168},{title:this.$L("\u521B\u5EFA\u4EBA"),width:120,render:(e,{row:s})=>e("UserAvatar",{props:{showName:!0,size:22,userid:s.userid}})},{title:this.$L("\u5927\u5C0F"),key:"size",width:90,render:(e,{row:s})=>e("AutoTip",$A.bytesToSize(s.size))},{title:this.$L("\u64CD\u4F5C"),align:"center",width:100,render:(e,{index:s,row:t,column:i})=>s===0&&this.page===1?e("div","-"):e("TableAction",{props:{column:i,menu:[{label:this.$L("\u67E5\u770B"),action:"preview"},{label:this.$L("\u8FD8\u539F"),action:"restore"}]},on:{action:a=>{this.onAction(a,t)}}})}],list:[],page:1,pageSize:10,total:0,noText:""}},mounted(){},watch:{value:{handler(e){e&&this.setPage(1)},immediate:!0}},computed:{fileId(){return this.file.id||0}},methods:{getLists(){this.fileId!==0&&(this.loadIng++,this.$store.dispatch("call",{url:"file/content/history",data:{id:this.fileId,page:Math.max(this.page,1),pagesize:Math.max($A.runNum(this.pageSize),10)}}).then(({data:e})=>{this.page=e.current_page,this.total=e.total,this.list=e.data,this.noText="\u6CA1\u6709\u76F8\u5173\u7684\u6570\u636E"}).catch(()=>{this.noText="\u6570\u636E\u52A0\u8F7D\u5931\u8D25"}).finally(e=>{this.loadIng--}))},setPage(e){this.page=e,this.getLists()},setPageSize(e){this.page=1,this.pageSize=e,this.getLists()},onAction(e,s){switch(e){case"restore":this.$emit("on-restore",s);break;case"preview":const t=`/single/file/${this.fileId}?history_id=${s.id}&history_at=${s.created_at}`;this.$Electron?this.$Electron.sendMessage("windowRouter",{name:`file-${this.fileId}-${s.id}`,path:t,userAgent:"/hideenOfficeTitle/",force:!1,config:{title:$A.getFileName(this.file)+` [${s.created_at}]`,titleFixed:!0,parent:null,width:Math.min(window.screen.availWidth,1440),height:Math.min(window.screen.availHeight,900)},webPreferences:{nodeIntegrationInSubFrames:this.file.type==="drawio"}}):this.$isEEUiApp?$A.eeuiAppOpenPage({pageType:"app",pageTitle:$A.getFileName(this.file)+` [${s.created_at}]`,url:"web.js",params:{titleFixed:!0,allowAccess:!0,url:$A.rightDelete(window.location.href,window.location.hash)+`#${t}`}}):window.open($A.apiUrl(`..${t}`));break}}}},o={};var p=r(f,h,u,!1,v,"44e1704c",null,null);function v(e){for(let s in o)this[s]=o[s]}var _=function(){return p.exports}(),m=function(){var e=this,s=e.$createElement,t=e._self._c||s;return e.ready?t("div",{staticClass:"file-content"},[e.isPreview?t("IFrame",{staticClass:"preview-iframe",attrs:{src:e.previewUrl},on:{"on-load":e.onFrameLoad}}):e.contentDetail?[["word","excel","ppt"].includes(e.file.type)?t("EPopover",{attrs:{trigger:"click"},model:{value:e.historyShow,callback:function(i){e.historyShow=i},expression:"historyShow"}},[t("div",{staticClass:"file-content-history"},[t("FileHistory",{attrs:{value:e.historyShow,file:e.file},on:{"on-restore":e.onRestoreHistory}})],1),t("div",{ref:"officeHeader",staticClass:"office-header",attrs:{slot:"reference"},slot:"reference"})]):t("div",{staticClass:"edit-header"},[t("div",{staticClass:"header-title"},[e.equalContent?e._e():t("EPopover",{staticClass:"file-unsave-tip",model:{value:e.unsaveTip,callback:function(i){e.unsaveTip=i},expression:"unsaveTip"}},[t("div",{staticClass:"task-detail-delete-file-popover"},[t("p",[e._v(e._s(e.$L("\u672A\u4FDD\u5B58\u5F53\u524D\u4FEE\u6539\u5185\u5BB9\uFF1F")))]),t("div",{staticClass:"buttons"},[t("Button",{attrs:{size:"small",type:"text"},on:{click:e.unSaveGive}},[e._v(e._s(e.$L("\u653E\u5F03")))]),t("Button",{attrs:{size:"small",type:"primary"},on:{click:e.onSaveSave}},[e._v(e._s(e.$L("\u4FDD\u5B58")))])],1)]),t("span",{attrs:{slot:"reference"},slot:"reference"},[e._v("["+e._s(e.$L("\u672A\u4FDD\u5B58"))+"*]")])]),e._v(" "+e._s(e.fileName)+" ")],1),t("div",{staticClass:"header-user"},[t("ul",[e._l(e.editUser,function(i,a){return a<=10?t("li",{key:a},[t("UserAvatar",{attrs:{userid:i,size:28,"border-witdh":2}})],1):e._e()}),e.editUser.length>10?t("li",{staticClass:"more",attrs:{title:e.editUser.length}},[e._v(e._s(e.editUser.length>999?"...":e.editUser.length))]):e._e()],2)]),e.file.type=="document"&&e.contentDetail?t("div",{staticClass:"header-hint"},[t("ButtonGroup",{attrs:{size:"small",shape:"circle"}},[t("Button",{attrs:{type:`${e.contentDetail.type=="md"?"primary":"default"}`},on:{click:function(i){return e.setTextType("md")}}},[e._v(e._s(e.$L("MD\u7F16\u8F91\u5668")))]),t("Button",{attrs:{type:`${e.contentDetail.type!="md"?"primary":"default"}`},on:{click:function(i){return e.setTextType("text")}}},[e._v(e._s(e.$L("\u6587\u672C\u7F16\u8F91\u5668")))])],1)],1):e._e(),e.file.type=="mind"?t("div",{staticClass:"header-hint"},[e._v(" "+e._s(e.$L("\u9009\u4E2D\u8282\u70B9\uFF0C\u6309enter\u952E\u6DFB\u52A0\u540C\u7EA7\u8282\u70B9\uFF0Ctab\u952E\u6DFB\u52A0\u5B50\u8282\u70B9"))+" ")]):e._e(),e.file.type=="mind"?t("Dropdown",{staticClass:"header-hint",attrs:{trigger:"click",transfer:""},on:{"on-click":e.exportMenu}},[t("a",{attrs:{href:"javascript:void(0)"}},[e._v(e._s(e.$L("\u5BFC\u51FA"))),t("Icon",{attrs:{type:"ios-arrow-down"}})],1),t("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[t("DropdownItem",{attrs:{name:"png"}},[e._v(e._s(e.$L("\u5BFC\u51FAPNG\u56FE\u7247")))]),t("DropdownItem",{attrs:{name:"pdf"}},[e._v(e._s(e.$L("\u5BFC\u51FAPDF\u6587\u4EF6")))])],1)],1):e._e(),e.file.only_view?e._e():[t("div",{staticClass:"header-icons"},[t("ETooltip",{attrs:{disabled:e.windowSmall||e.$isEEUiApp,content:e.$L("\u6587\u4EF6\u94FE\u63A5")}},[t("div",{staticClass:"header-icon",on:{click:function(i){return e.handleClick("link")}}},[t("i",{staticClass:"taskfont"},[e._v("\uE785")])])]),t("EPopover",{attrs:{trigger:"click"},model:{value:e.historyShow,callback:function(i){e.historyShow=i},expression:"historyShow"}},[t("div",{staticClass:"file-content-history"},[t("FileHistory",{attrs:{value:e.historyShow,file:e.file},on:{"on-restore":e.onRestoreHistory}})],1),t("ETooltip",{ref:"historyTip",attrs:{slot:"reference",disabled:e.windowSmall||e.$isEEUiApp||e.historyShow,content:e.$L("\u5386\u53F2\u7248\u672C")},slot:"reference"},[t("div",{staticClass:"header-icon"},[t("i",{staticClass:"taskfont"},[e._v("\uE71D")])])])],1)],1),t("Button",{staticClass:"header-button",attrs:{disabled:e.equalContent,loading:e.loadSave>0,size:"small",type:"primary"},on:{click:function(i){return e.handleClick("save")}}},[e._v(e._s(e.$L("\u4FDD\u5B58")))])]],2),t("div",{staticClass:"content-body"},[e.historyShow?t("div",{staticClass:"content-mask"}):e._e(),e.file.type=="document"?[e.contentDetail.type=="md"?t("MDEditor",{attrs:{height:"100%"},model:{value:e.contentDetail.content,callback:function(i){e.$set(e.contentDetail,"content",i)},expression:"contentDetail.content"}}):t("TEditor",{attrs:{height:"100%"},on:{editorSave:function(i){return e.handleClick("saveBefore")}},model:{value:e.contentDetail.content,callback:function(i){e.$set(e.contentDetail,"content",i)},expression:"contentDetail.content"}})]:e.file.type=="drawio"?t("Drawio",{ref:"myFlow",attrs:{title:e.file.name},on:{saveData:function(i){return e.handleClick("saveBefore")}},model:{value:e.contentDetail,callback:function(i){e.contentDetail=i},expression:"contentDetail"}}):e.file.type=="mind"?t("Minder",{ref:"myMind",on:{saveData:function(i){return e.handleClick("saveBefore")}},model:{value:e.contentDetail,callback:function(i){e.contentDetail=i},expression:"contentDetail"}}):["code","txt"].includes(e.file.type)?t("AceEditor",{attrs:{ext:e.file.ext},on:{saveData:function(i){return e.handleClick("saveBefore")}},model:{value:e.contentDetail.content,callback:function(i){e.$set(e.contentDetail,"content",i)},expression:"contentDetail.content"}}):["word","excel","ppt"].includes(e.file.type)?t("OnlyOffice",{attrs:{documentKey:e.documentKey},on:{"on-document-ready":function(i){return e.handleClick("officeReady")}},model:{value:e.contentDetail,callback:function(i){e.contentDetail=i},expression:"contentDetail"}}):e._e()],2)]:e._e(),e.contentLoad?t("div",{staticClass:"content-load"},[t("Loading")],1):e._e(),t("Modal",{attrs:{title:e.$L("\u6587\u4EF6\u94FE\u63A5"),"mask-closable":!1},model:{value:e.linkShow,callback:function(i){e.linkShow=i},expression:"linkShow"}},[t("div",[t("div",{staticStyle:{margin:"-10px 0 8px"}},[e._v(e._s(e.$L("\u6587\u4EF6\u540D\u79F0"))+": "+e._s(e.linkData.name))]),t("Input",{ref:"linkInput",attrs:{type:"textarea",rows:3,readonly:""},on:{"on-focus":e.linkFocus},model:{value:e.linkData.url,callback:function(i){e.$set(e.linkData,"url",i)},expression:"linkData.url"}}),t("div",{staticClass:"form-tip",staticStyle:{"padding-top":"6px"}},[e._v(e._s(e.$L("\u53EF\u901A\u8FC7\u6B64\u94FE\u63A5\u6D4F\u89C8\u6587\u4EF6\u3002"))),t("a",{attrs:{href:"javascript:void(0)"},on:{click:e.linkCopy}},[e._v(e._s(e.$L("\u70B9\u51FB\u590D\u5236\u94FE\u63A5")))])])],1),t("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[t("Button",{attrs:{type:"default"},on:{click:function(i){e.linkShow=!1}}},[e._v(e._s(e.$L("\u53D6\u6D88")))]),t("Poptip",{staticStyle:{"margin-left":"8px"},attrs:{confirm:"",placement:"bottom","ok-text":e.$L("\u786E\u5B9A"),"cancel-text":e.$L("\u53D6\u6D88"),transfer:""},on:{"on-ok":function(i){return e.linkGet(!0)}}},[t("div",{attrs:{slot:"title"},slot:"title"},[t("p",[t("strong",[e._v(e._s(e.$L("\u6CE8\u610F\uFF1A\u5237\u65B0\u5C06\u5BFC\u81F4\u539F\u6765\u7684\u94FE\u63A5\u5931\u6548\uFF01")))])])]),t("Button",{attrs:{type:"primary",loading:e.linkLoad>0}},[e._v(e._s(e.$L("\u5237\u65B0")))])],1)],1)])],2):e._e()},y=[];const k=()=>n(()=>import("./index.0bf9683e.js"),["js/build/index.0bf9683e.js","js/build/index.a55dd794.css","js/build/app.feefc813.js","js/build/app.961ba03c.css","js/build/ImgUpload.e60c7ecf.js"]),$=()=>n(()=>import("./TEditor.a1d21399.js"),["js/build/TEditor.a1d21399.js","js/build/app.feefc813.js","js/build/app.961ba03c.css","js/build/ImgUpload.e60c7ecf.js"]),w=()=>n(()=>import("./AceEditor.1e64324c.js"),["js/build/AceEditor.1e64324c.js","js/build/app.feefc813.js","js/build/app.961ba03c.css"]),g=()=>n(()=>import("./OnlyOffice.fc35776c.js"),["js/build/OnlyOffice.fc35776c.js","js/build/OnlyOffice.d36f3069.css","js/build/app.feefc813.js","js/build/app.961ba03c.css","js/build/IFrame.5edcf1c5.js"]),D=()=>n(()=>import("./Drawio.f86613c4.js"),["js/build/Drawio.f86613c4.js","js/build/Drawio.fc5c6326.css","js/build/app.feefc813.js","js/build/app.961ba03c.css","js/build/IFrame.5edcf1c5.js"]),x=()=>n(()=>import("./Minder.e582a65a.js"),["js/build/Minder.e582a65a.js","js/build/Minder.f2273bdb.css","js/build/IFrame.5edcf1c5.js","js/build/app.feefc813.js","js/build/app.961ba03c.css"]),S={name:"FileContent",components:{IFrame:d,FileHistory:_,AceEditor:w,TEditor:$,MDEditor:k,OnlyOffice:g,Drawio:D,Minder:x},props:{value:{type:Boolean,default:!1},file:{type:Object,default:()=>({})}},data(){return{ready:!1,loadSave:0,loadContent:0,unsaveTip:!1,fileExt:null,contentDetail:null,contentBak:{},editUser:[],loadPreview:!0,linkShow:!1,linkData:{},linkLoad:0,historyShow:!1,officeReady:!1}},mounted(){document.addEventListener("keydown",this.keySave),window.addEventListener("message",this.handleOfficeMessage),this.$isSubElectron&&(window.__onBeforeUnload=()=>{if(!this.equalContent)return $A.modalConfirm({content:"\u4FEE\u6539\u7684\u5185\u5BB9\u5C1A\u672A\u4FDD\u5B58\uFF0C\u786E\u5B9A\u8981\u653E\u5F03\u4FEE\u6539\u5417\uFF1F",cancelText:"\u53D6\u6D88",okText:"\u653E\u5F03",onOk:()=>{this.$Electron.sendMessage("windowDestroy")}}),!0})},beforeDestroy(){document.removeEventListener("keydown",this.keySave),window.removeEventListener("message",this.handleOfficeMessage)},watch:{value:{handler(e){e?(this.ready=!0,this.editUser=[this.userId],this.getContent()):(this.linkShow=!1,this.historyShow=!1,this.officeReady=!1,this.fileExt=null)},immediate:!0},historyShow(e){!e&&this.$refs.historyTip&&this.$refs.historyTip.updatePopper()},wsMsg:{handler(e){const{type:s,action:t,data:i}=e;switch(s){case"path":i.path=="/single/file/"+this.fileId&&(this.editUser=i.userids);break;case"file":t=="content"&&this.value&&i.id==this.fileId&&$A.modalConfirm({title:"\u66F4\u65B0\u63D0\u793A",content:"\u56E2\u961F\u6210\u5458\uFF08"+e.nickname+"\uFF09\u66F4\u65B0\u4E86\u5185\u5BB9\uFF0C
\u66F4\u65B0\u65F6\u95F4\uFF1A"+$A.formatDate("Y-m-d H:i:s",e.time)+"\u3002

\u70B9\u51FB\u3010\u786E\u5B9A\u3011\u52A0\u8F7D\u6700\u65B0\u5185\u5BB9\u3002",onOk:()=>{this.getContent()}});break}},deep:!0}},computed:{...c(["wsMsg"]),fileId(){return this.file.id||0},fileName(){return this.fileExt?$A.getFileName(Object.assign(this.file,{ext:this.fileExt})):$A.getFileName(this.file)},equalContent(){return this.contentBak==$A.jsonStringify(this.contentDetail)},contentLoad(){return this.loadContent>0||this.previewLoad},isPreview(){return this.contentDetail&&this.contentDetail.preview===!0},previewLoad(){return this.isPreview&&this.loadPreview===!0},previewUrl(){if(this.isPreview){const{name:e,key:s}=this.contentDetail;return $A.apiUrl(`../online/preview/${e}?key=${s}`)}return""}},methods:{handleOfficeMessage({data:e,source:s}){if(e.source==="onlyoffice")switch(e.action){case"ready":s.postMessage("createMenu","*");break;case"link":this.handleClick("link");break;case"history":const t=this.$refs.officeHeader;t&&(t.style.top=`${e.rect.top}px`,t.style.left=`${e.rect.left}px`,t.style.width=`${e.rect.width}px`,t.style.height=`${e.rect.height}px`,t.click());break}},onFrameLoad(){this.loadPreview=!1},keySave(e){this.value&&e.keyCode===83&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),this.onSaveSave())},getContent(){if(this.fileId===0){this.contentDetail={},this.updateBak();return}if(["word","excel","ppt"].includes(this.file.type)){this.contentDetail=$A.cloneJSON(this.file),this.updateBak();return}this.loadSave++,setTimeout(e=>{this.loadContent++},600),this.$store.dispatch("call",{url:"file/content",data:{id:this.fileId}}).then(({data:e})=>{this.contentDetail=e.content,this.updateBak()}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.loadSave--,this.loadContent--})},updateBak(){this.contentBak=$A.jsonStringify(this.contentDetail)},handleClick(e){switch(e){case"link":this.linkData={id:this.fileId,name:this.file.name},this.linkShow=!0,this.linkGet();break;case"saveBefore":!this.equalContent&&this.loadSave==0?this.handleClick("save"):$A.messageWarning("\u6CA1\u6709\u4EFB\u4F55\u4FEE\u6539\uFF01");break;case"save":if(this.file.only_view)return;this.updateBak(),this.loadSave++,this.$store.dispatch("call",{url:"file/content/save",method:"post",data:{id:this.fileId,content:this.contentBak}}).then(({data:s,msg:t})=>{$A.messageSuccess(t);const i={id:this.fileId,size:s.size};this.fileExt&&(i.ext=this.fileExt,this.fileExt=null),this.$store.dispatch("saveFile",i)}).catch(({msg:s})=>{$A.modalError(s),this.getContent()}).finally(s=>{this.loadSave--});break;case"officeReady":this.officeReady=!0;break}},onRestoreHistory(e){this.historyShow=!1,$A.modalConfirm({content:`\u4F60\u786E\u5B9A\u6587\u4EF6\u8FD8\u539F\u81F3\u3010${e.created_at}\u3011\u5417\uFF1F`,cancelText:"\u53D6\u6D88",okText:"\u786E\u5B9A",loading:!0,onOk:()=>new Promise((s,t)=>{this.$store.dispatch("call",{url:"file/content/restore",data:{id:this.fileId,history_id:e.id}}).then(({msg:i})=>{s(i),this.contentDetail=null,this.getContent()}).catch(({msg:i})=>{t(i)})})})},linkGet(e){this.linkLoad++,this.$store.dispatch("call",{url:"file/link",data:{id:this.linkData.id,refresh:e===!0?"yes":"no"}}).then(({data:s})=>{this.linkData=Object.assign(s,{id:this.linkData.id,name:this.linkData.name}),this.linkFocus()}).catch(({msg:s})=>{this.linkShow=!1,$A.modalError(s)}).finally(s=>{this.linkLoad--})},linkCopy(){!this.linkData.url||(this.linkFocus(),this.$copyText(this.linkData.url).then(e=>{$A.messageSuccess("\u590D\u5236\u6210\u529F")}).catch(e=>{$A.messageError("\u590D\u5236\u5931\u8D25")}))},linkFocus(){this.$nextTick(e=>{this.$refs.linkInput.focus({cursor:"all"})})},exportMenu(e){switch(this.file.type){case"mind":this.$refs.myMind.exportHandle(e,this.file.name);break}},unSaveGive(){this.getContent(),this.unsaveTip=!1},onSaveSave(){this.handleClick("save"),this.unsaveTip=!1},setTextType(e){this.fileExt=e,this.$set(this.contentDetail,"type",e)},documentKey(){return new Promise(e=>{this.$store.dispatch("call",{url:"file/content",data:{id:this.fileId,only_update_at:"yes"}}).then(({data:s})=>{e(`${s.id}-${$A.Time(s.update_at)}`)}).catch(()=>{e(0)})})}}},l={};var C=r(S,m,y,!1,L,null,null,null);function L(e){for(let s in l)this[s]=l[s]}var A=function(){return C.exports}();export{A as default}; diff --git a/public/js/build/FilePreview.8438d32b.js b/public/js/build/FilePreview.07a4bed5.js similarity index 76% rename from public/js/build/FilePreview.8438d32b.js rename to public/js/build/FilePreview.07a4bed5.js index aabc663be..dc1f597e5 100644 --- a/public/js/build/FilePreview.8438d32b.js +++ b/public/js/build/FilePreview.07a4bed5.js @@ -1 +1 @@ -import{n as r,_ as n}from"./app.90cb6e79.js";import{I as a}from"./IFrame.a3e09c0b.js";var s=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"file-preview"},[e.isPreview?t("IFrame",{staticClass:"preview-iframe",attrs:{src:e.previewUrl},on:{"on-load":e.onFrameLoad}}):e.contentDetail?[t("div",{directives:[{name:"show",rawName:"v-show",value:e.headerShow&&!["word","excel","ppt"].includes(e.file.type),expression:"headerShow && !['word', 'excel', 'ppt'].includes(file.type)"}],staticClass:"edit-header"},[t("div",{staticClass:"header-title"},[t("div",{staticClass:"title-name"},[e._v(e._s(e.$A.getFileName(e.file)))]),t("Tag",{attrs:{color:"default"}},[e._v(e._s(e.$L("\u53EA\u8BFB")))]),t("div",{staticClass:"refresh"},[e.contentLoad?t("Loading"):t("Icon",{attrs:{type:"ios-refresh"},on:{click:e.getContent}})],1)],1),e.file.type=="mind"?t("Dropdown",{staticClass:"header-hint",attrs:{trigger:"click"},on:{"on-click":e.exportMenu}},[t("a",{attrs:{href:"javascript:void(0)"}},[e._v(e._s(e.$L("\u5BFC\u51FA"))),t("Icon",{attrs:{type:"ios-arrow-down"}})],1),t("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[t("DropdownItem",{attrs:{name:"png"}},[e._v(e._s(e.$L("\u5BFC\u51FAPNG\u56FE\u7247")))]),t("DropdownItem",{attrs:{name:"pdf"}},[e._v(e._s(e.$L("\u5BFC\u51FAPDF\u6587\u4EF6")))])],1)],1):e._e()],1),t("div",{staticClass:"content-body"},[e.file.type=="document"?[e.contentDetail.type=="md"?t("MDPreview",{attrs:{initialValue:e.contentDetail.content}}):t("TEditor",{attrs:{value:e.contentDetail.content,height:"100%",readOnly:""}})]:e.file.type=="drawio"?t("Drawio",{ref:"myFlow",attrs:{value:e.contentDetail,title:e.file.name,readOnly:""}}):e.file.type=="mind"?t("Minder",{ref:"myMind",attrs:{value:e.contentDetail,readOnly:""}}):["code","txt"].includes(e.file.type)?t("AceEditor",{attrs:{value:e.contentDetail.content,ext:e.file.ext,readOnly:""}}):["word","excel","ppt"].includes(e.file.type)?t("OnlyOffice",{attrs:{value:e.contentDetail,code:e.code,historyId:e.historyId,documentKey:e.documentKey,readOnly:""}}):e._e()],2)]:e._e(),e.contentLoad?t("div",{staticClass:"content-load"},[t("Loading")],1):e._e()],2)},l=[];const d=()=>n(()=>import("./preview.a850e707.js"),["js/build/preview.a850e707.js","js/build/app.90cb6e79.js","js/build/app.ce5dd3b0.css"]),c=()=>n(()=>import("./TEditor.27348ee4.js"),["js/build/TEditor.27348ee4.js","js/build/app.90cb6e79.js","js/build/app.ce5dd3b0.css","js/build/ImgUpload.466e5bce.js"]),_=()=>n(()=>import("./AceEditor.b217f4b4.js"),["js/build/AceEditor.b217f4b4.js","js/build/app.90cb6e79.js","js/build/app.ce5dd3b0.css"]),p=()=>n(()=>import("./OnlyOffice.2eabb102.js"),["js/build/OnlyOffice.2eabb102.js","js/build/OnlyOffice.d36f3069.css","js/build/app.90cb6e79.js","js/build/app.ce5dd3b0.css","js/build/IFrame.a3e09c0b.js"]),u=()=>n(()=>import("./Drawio.eaf9e104.js"),["js/build/Drawio.eaf9e104.js","js/build/Drawio.fc5c6326.css","js/build/app.90cb6e79.js","js/build/app.ce5dd3b0.css","js/build/IFrame.a3e09c0b.js"]),h=()=>n(()=>import("./Minder.f2d75c7c.js"),["js/build/Minder.f2d75c7c.js","js/build/Minder.f2273bdb.css","js/build/IFrame.a3e09c0b.js","js/build/app.90cb6e79.js","js/build/app.ce5dd3b0.css"]),v={name:"FilePreview",components:{IFrame:a,AceEditor:_,TEditor:c,MDPreview:d,OnlyOffice:p,Drawio:u,Minder:h},props:{code:{type:String,default:""},historyId:{type:Number,default:0},file:{type:Object,default:()=>({})},headerShow:{type:Boolean,default:!0}},data(){return{loadContent:0,contentDetail:null,loadPreview:!0}},watch:{"file.id":{handler(e){e&&(this.contentDetail=null,this.getContent())},immediate:!0,deep:!0}},computed:{contentLoad(){return this.loadContent>0||this.previewLoad},isPreview(){return this.contentDetail&&this.contentDetail.preview===!0},previewLoad(){return this.isPreview&&this.loadPreview===!0},previewUrl(){if(this.isPreview){const{name:e,key:i}=this.contentDetail;return $A.apiUrl(`../online/preview/${e}?key=${i}`)}return""}},methods:{onFrameLoad(){this.loadPreview=!1},getContent(){if(["word","excel","ppt"].includes(this.file.type)){this.contentDetail=$A.cloneJSON(this.file);return}setTimeout(e=>{this.loadContent++},600),this.$store.dispatch("call",{url:"file/content",data:{id:this.code||this.file.id,history_id:this.historyId}}).then(({data:e})=>{this.contentDetail=e.content}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.loadContent--})},documentKey(){return new Promise(e=>{this.$store.dispatch("call",{url:"file/content",data:{id:this.code||this.file.id,only_update_at:"yes"}}).then(({data:i})=>{e(`${i.id}-${$A.Time(i.update_at)}`)}).catch(()=>{e(0)})})},exportMenu(e){switch(this.file.type){case"mind":this.$refs.myMind.exportHandle(e,this.file.name);break}}}},o={};var f=r(v,s,l,!1,m,null,null,null);function m(e){for(let i in o)this[i]=o[i]}var D=function(){return f.exports}();export{D as default}; +import{n as r,_ as n}from"./app.feefc813.js";import{I as a}from"./IFrame.5edcf1c5.js";var s=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"file-preview"},[e.isPreview?t("IFrame",{staticClass:"preview-iframe",attrs:{src:e.previewUrl},on:{"on-load":e.onFrameLoad}}):e.contentDetail?[t("div",{directives:[{name:"show",rawName:"v-show",value:e.headerShow&&!["word","excel","ppt"].includes(e.file.type),expression:"headerShow && !['word', 'excel', 'ppt'].includes(file.type)"}],staticClass:"edit-header"},[t("div",{staticClass:"header-title"},[t("div",{staticClass:"title-name"},[e._v(e._s(e.$A.getFileName(e.file)))]),t("Tag",{attrs:{color:"default"}},[e._v(e._s(e.$L("\u53EA\u8BFB")))]),t("div",{staticClass:"refresh"},[e.contentLoad?t("Loading"):t("Icon",{attrs:{type:"ios-refresh"},on:{click:e.getContent}})],1)],1),e.file.type=="mind"?t("Dropdown",{staticClass:"header-hint",attrs:{trigger:"click"},on:{"on-click":e.exportMenu}},[t("a",{attrs:{href:"javascript:void(0)"}},[e._v(e._s(e.$L("\u5BFC\u51FA"))),t("Icon",{attrs:{type:"ios-arrow-down"}})],1),t("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[t("DropdownItem",{attrs:{name:"png"}},[e._v(e._s(e.$L("\u5BFC\u51FAPNG\u56FE\u7247")))]),t("DropdownItem",{attrs:{name:"pdf"}},[e._v(e._s(e.$L("\u5BFC\u51FAPDF\u6587\u4EF6")))])],1)],1):e._e()],1),t("div",{staticClass:"content-body"},[e.file.type=="document"?[e.contentDetail.type=="md"?t("MDPreview",{attrs:{initialValue:e.contentDetail.content}}):t("TEditor",{attrs:{value:e.contentDetail.content,height:"100%",readOnly:""}})]:e.file.type=="drawio"?t("Drawio",{ref:"myFlow",attrs:{value:e.contentDetail,title:e.file.name,readOnly:""}}):e.file.type=="mind"?t("Minder",{ref:"myMind",attrs:{value:e.contentDetail,readOnly:""}}):["code","txt"].includes(e.file.type)?t("AceEditor",{attrs:{value:e.contentDetail.content,ext:e.file.ext,readOnly:""}}):["word","excel","ppt"].includes(e.file.type)?t("OnlyOffice",{attrs:{value:e.contentDetail,code:e.code,historyId:e.historyId,documentKey:e.documentKey,readOnly:""}}):e._e()],2)]:e._e(),e.contentLoad?t("div",{staticClass:"content-load"},[t("Loading")],1):e._e()],2)},l=[];const d=()=>n(()=>import("./preview.ae4f93f9.js"),["js/build/preview.ae4f93f9.js","js/build/app.feefc813.js","js/build/app.961ba03c.css"]),c=()=>n(()=>import("./TEditor.a1d21399.js"),["js/build/TEditor.a1d21399.js","js/build/app.feefc813.js","js/build/app.961ba03c.css","js/build/ImgUpload.e60c7ecf.js"]),_=()=>n(()=>import("./AceEditor.1e64324c.js"),["js/build/AceEditor.1e64324c.js","js/build/app.feefc813.js","js/build/app.961ba03c.css"]),p=()=>n(()=>import("./OnlyOffice.fc35776c.js"),["js/build/OnlyOffice.fc35776c.js","js/build/OnlyOffice.d36f3069.css","js/build/app.feefc813.js","js/build/app.961ba03c.css","js/build/IFrame.5edcf1c5.js"]),u=()=>n(()=>import("./Drawio.f86613c4.js"),["js/build/Drawio.f86613c4.js","js/build/Drawio.fc5c6326.css","js/build/app.feefc813.js","js/build/app.961ba03c.css","js/build/IFrame.5edcf1c5.js"]),h=()=>n(()=>import("./Minder.e582a65a.js"),["js/build/Minder.e582a65a.js","js/build/Minder.f2273bdb.css","js/build/IFrame.5edcf1c5.js","js/build/app.feefc813.js","js/build/app.961ba03c.css"]),v={name:"FilePreview",components:{IFrame:a,AceEditor:_,TEditor:c,MDPreview:d,OnlyOffice:p,Drawio:u,Minder:h},props:{code:{type:String,default:""},historyId:{type:Number,default:0},file:{type:Object,default:()=>({})},headerShow:{type:Boolean,default:!0}},data(){return{loadContent:0,contentDetail:null,loadPreview:!0}},watch:{"file.id":{handler(e){e&&(this.contentDetail=null,this.getContent())},immediate:!0,deep:!0}},computed:{contentLoad(){return this.loadContent>0||this.previewLoad},isPreview(){return this.contentDetail&&this.contentDetail.preview===!0},previewLoad(){return this.isPreview&&this.loadPreview===!0},previewUrl(){if(this.isPreview){const{name:e,key:i}=this.contentDetail;return $A.apiUrl(`../online/preview/${e}?key=${i}`)}return""}},methods:{onFrameLoad(){this.loadPreview=!1},getContent(){if(["word","excel","ppt"].includes(this.file.type)){this.contentDetail=$A.cloneJSON(this.file);return}setTimeout(e=>{this.loadContent++},600),this.$store.dispatch("call",{url:"file/content",data:{id:this.code||this.file.id,history_id:this.historyId}}).then(({data:e})=>{this.contentDetail=e.content}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.loadContent--})},documentKey(){return new Promise(e=>{this.$store.dispatch("call",{url:"file/content",data:{id:this.code||this.file.id,only_update_at:"yes"}}).then(({data:i})=>{e(`${i.id}-${$A.Time(i.update_at)}`)}).catch(()=>{e(0)})})},exportMenu(e){switch(this.file.type){case"mind":this.$refs.myMind.exportHandle(e,this.file.name);break}}}},o={};var f=r(v,s,l,!1,m,null,null,null);function m(e){for(let i in o)this[i]=o[i]}var D=function(){return f.exports}();export{D as default}; diff --git a/public/js/build/IFrame.a3e09c0b.js b/public/js/build/IFrame.5edcf1c5.js similarity index 94% rename from public/js/build/IFrame.a3e09c0b.js rename to public/js/build/IFrame.5edcf1c5.js index 6822126bb..0147358aa 100644 --- a/public/js/build/IFrame.a3e09c0b.js +++ b/public/js/build/IFrame.5edcf1c5.js @@ -1 +1 @@ -import{n}from"./app.90cb6e79.js";var i=function(){var e=this,s=e.$createElement,r=e._self._c||s;return r("iframe",{directives:[{name:"show",rawName:"v-show",value:e.src,expression:"src"}],ref:"iframe",attrs:{src:e.src}})},a=[];const o={name:"IFrame",props:{src:{type:String,default:""}},mounted(){this.$refs.iframe.addEventListener("load",this.handleLoad),window.addEventListener("message",this.handleMessage)},beforeDestroy(){this.$refs.iframe.removeEventListener("load",this.handleLoad),window.removeEventListener("message",this.handleMessage)},methods:{handleLoad(){this.$emit("on-load")},handleMessage({data:e,source:s}){var r;s===((r=this.$refs.iframe)==null?void 0:r.contentWindow)&&(e=$A.jsonParse(e),e.source==="fileView"&&e.action==="picture"&&(this.$store.state.previewImageIndex=e.params.index,this.$store.state.previewImageList=e.params.array),this.$emit("on-message",e))},postMessage(e,s="*"){this.$refs.iframe&&this.$refs.iframe.contentWindow.postMessage(e,s)}}},t={};var m=n(o,i,a,!1,f,null,null,null);function f(e){for(let s in t)this[s]=t[s]}var h=function(){return m.exports}();export{h as I}; +import{n}from"./app.feefc813.js";var i=function(){var e=this,s=e.$createElement,r=e._self._c||s;return r("iframe",{directives:[{name:"show",rawName:"v-show",value:e.src,expression:"src"}],ref:"iframe",attrs:{src:e.src}})},a=[];const o={name:"IFrame",props:{src:{type:String,default:""}},mounted(){this.$refs.iframe.addEventListener("load",this.handleLoad),window.addEventListener("message",this.handleMessage)},beforeDestroy(){this.$refs.iframe.removeEventListener("load",this.handleLoad),window.removeEventListener("message",this.handleMessage)},methods:{handleLoad(){this.$emit("on-load")},handleMessage({data:e,source:s}){var r;s===((r=this.$refs.iframe)==null?void 0:r.contentWindow)&&(e=$A.jsonParse(e),e.source==="fileView"&&e.action==="picture"&&(this.$store.state.previewImageIndex=e.params.index,this.$store.state.previewImageList=e.params.array),this.$emit("on-message",e))},postMessage(e,s="*"){this.$refs.iframe&&this.$refs.iframe.contentWindow.postMessage(e,s)}}},t={};var m=n(o,i,a,!1,f,null,null,null);function f(e){for(let s in t)this[s]=t[s]}var h=function(){return m.exports}();export{h as I}; diff --git a/public/js/build/ImgUpload.466e5bce.js b/public/js/build/ImgUpload.e60c7ecf.js similarity index 99% rename from public/js/build/ImgUpload.466e5bce.js rename to public/js/build/ImgUpload.e60c7ecf.js index ea1ed7bae..7bd0ac74f 100644 --- a/public/js/build/ImgUpload.466e5bce.js +++ b/public/js/build/ImgUpload.e60c7ecf.js @@ -1 +1 @@ -import{n as o}from"./app.90cb6e79.js";var r=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"common-img-update"},[t._l(t.uploadList,function(s){return t.type!=="callback"?e("div",{staticClass:"imgcomp-upload-list"},[s.status==="finished"?[e("div",{staticClass:"imgcomp-upload-img",style:{"background-image":"url("+t.__thumb(s.thumb)+")"}}),e("div",{staticClass:"imgcomp-upload-list-cover"},[e("Icon",{attrs:{type:"ios-eye-outline"},nativeOn:{click:function(a){return t.handleView(s)}}}),e("Icon",{attrs:{type:"ios-trash-outline"},nativeOn:{click:function(a){return t.handleRemove(s)}}})],1)]:[s.showProgress?e("Progress",{attrs:{percent:s.percentage,"hide-info":""}}):t._e()]],2):t._e()}),e("div",{staticClass:"add-box",class:{"callback-add-box":t.type==="callback"}},[e("div",{staticClass:"add-box-icon"},[e("Icon",{attrs:{type:"md-add",size:"32"}})],1),e("div",{staticClass:"add-box-upload"},[e("div",{staticClass:"add-box-item",on:{click:t.browsePicture}},[e("span",[t._v(t._s(t.$L("\u6D4F\u89C8"))),t.type==="callback"?e("em",[t._v(t._s(t.$L("\u56FE\u7247")))]):t._e()])]),e("div",{staticClass:"add-box-item"},[e("Upload",{ref:"upload",attrs:{name:"image",accept:"image/*",action:t.actionUrl,headers:t.uploadHeaders,data:t.uploadParams,"show-upload-list":!1,"max-size":t.maxSize,format:["jpg","jpeg","gif","png"],"default-file-list":t.defaultList,"on-progress":t.handleProgress,"on-success":t.handleSuccess,"on-error":t.handleError,"on-format-error":t.handleFormatError,"on-exceeded-size":t.handleMaxSize,"before-upload":t.handleBeforeUpload,multiple:t.multiple}},[e("span",[t._v(t._s(t.$L("\u4E0A\u4F20"))),t.type==="callback"?e("em",[t._v(t._s(t.$L("\u56FE\u7247")))]):t._e()])])],1)])]),e("Modal",{staticClass:"img-upload-modal",attrs:{title:t.$L("\u6D4F\u89C8\u56FE\u7247\u7A7A\u95F4"),width:"710"},model:{value:t.browseVisible,callback:function(s){t.browseVisible=s},expression:"browseVisible"}},[t.isLoading?e("div",{staticClass:"browse-load"},[t._v(t._s(t.$L("\u52A0\u8F7D\u4E2D...")))]):t._e(),e("div",{ref:"browselistbox",staticClass:"browse-list",class:t.httpType==="input"?"browse-list-disabled":""},[t.browseList.length<=0?e("div",[t._v(t._s(t.$L("\u65E0\u5185\u5BB9")))]):t._l(t.browseList,function(s){return e("div",{staticClass:"browse-item",on:{click:function(a){return t.browseItem(s)}}},[s.active?e("Icon",{staticClass:"browse-icon",attrs:{type:"ios-checkmark-circle"}}):t._e(),e("div",{staticClass:"browse-img",style:{"background-image":"url("+s.thumb+")"}}),e("div",{staticClass:"browse-title"},[t._v(t._s(s.title))])],1)})],2),e("div",{staticClass:"img-upload-foot",attrs:{slot:"footer"},slot:"footer"},[t.type!=="callback"&&t.http&&t.httpType===""?e("div",{staticClass:"img-upload-foot-input",on:{click:function(s){t.httpType="input"}}},[e("Icon",{attrs:{type:"ios-image",size:"22"}}),e("div",{staticClass:"img-upload-foot-httptitle"},[t._v(t._s(t.$L("\u81EA\u5B9A\u4E49\u56FE\u7247\u5730\u5740")))])],1):t._e(),t.type!=="callback"&&t.http&&t.httpType==="input"?e("div",{staticClass:"img-upload-foot-input"},[e("Input",{attrs:{placeholder:t.$L("\u4EE5 http:// \u6216 https:// \u5F00\u5934"),search:"","enter-button":t.$L("\u786E\u5B9A")},on:{"on-search":t.httpEnter},model:{value:t.httpValue,callback:function(s){t.httpValue=s},expression:"httpValue"}},[e("span",{staticStyle:{cursor:"pointer"},attrs:{slot:"prepend"},on:{click:function(s){t.httpType=""}},slot:"prepend"},[t._v(t._s(t.$L("\u81EA\u5B9A\u4E49\u5730\u5740"))+": ")])])],1):t._e(),t.httpType===""?e("Button",{on:{click:function(s){t.browseVisible=!1}}},[t._v(t._s(t.$L("\u5173\u95ED")))]):t._e(),t.httpType===""?e("Button",{attrs:{type:"primary"},on:{click:function(s){return t.handleCallback(!0)}}},[t._v(t._s(t.$L("\u5B8C\u6210")))]):t._e()],1)]),e("Modal",{staticClass:"img-upload-modal",attrs:{title:t.$L("\u67E5\u770B\u56FE\u7247"),draggable:""},model:{value:t.visible,callback:function(s){t.visible=s},expression:"visible"}},[e("div",{staticStyle:{"max-height":"480px",overflow:"auto"}},[e("a",{attrs:{href:t.imgVisible,target:"_blank"}},[t.visible?e("img",{staticStyle:{"max-width":"100%","max-height":"900px",display:"block",margin:"0 auto"},attrs:{src:t.imgVisible}}):t._e()])])])],2)},n=[];const h={name:"ImgUpload",props:{value:{},num:{},width:{},height:{},whcut:{},type:{},http:{type:Boolean,default:!1},otherParams:{type:Object,default:()=>({})},uploadIng:{type:Number,default:0}},data(){return{actionUrl:$A.apiUrl("system/imgupload"),multiple:this.num>1,visible:!1,browseVisible:!1,isLoading:!1,browseList:[],browseListNext:[],imgVisible:"",defaultList:this.initItems(this.value),uploadList:[],maxNum:Math.min(Math.max($A.runNum(this.num),1),99),httpValue:"",httpType:"",maxSize:2048}},mounted(){this.uploadList=this.$refs.upload.fileList,this.$emit("input",this.uploadList);let t=$A(this.$refs.browselistbox);t.scroll(()=>{let i=t[0].scrollHeight,e=t[0].scrollTop,s=t.height();if(e+s>=i&&this.browseListNext.length>0){let a=this.browseListNext;this.browseListNext=[],this.browsePictureFor(a)}})},watch:{value(t){if(typeof t=="string"){this.$emit("input",this.initItems(t));return}t!==this.$refs.upload.fileList&&(this.$refs.upload.fileList=this.initItems(t),this.uploadList=this.$refs.upload.fileList)},browseVisible(){this.httpType="",this.httpValue=""}},computed:{uploadHeaders(){return{fd:$A.getSessionStorageString("userWsFd"),token:this.userToken}},uploadParams(){let t={width:this.width,height:this.height,whcut:this.whcut};return Object.keys(this.otherParams).length>0?Object.assign(t,this.otherParams):t}},methods:{handleCallback(t){this.type==="callback"&&(t===!0?(this.$emit("on-callback",this.uploadList),this.$refs.upload.fileList=[],this.uploadList=this.$refs.upload.fileList):typeof t=="object"&&this.$emit("on-callback",[t])),this.browseVisible=!1},initItems(t){typeof t=="string"&&(t=[{url:t}]);let i=[];return $A.each(t,(e,s)=>{typeof s=="string"&&(s={url:s}),s.url&&(s.active=!0,s.status="finished",typeof s.path=="undefined"&&(s.path=s.url),typeof s.thumb=="undefined"&&(s.thumb=s.url),i.push(s))}),i},handleView(t){this.visible=!0,this.imgVisible=t.url},handleRemove(t){let i=this.$refs.upload.fileList;this.$refs.upload.fileList.splice(i.indexOf(t),1),this.$emit("input",this.$refs.upload.fileList)},handleProgress(t,i){i._uploadIng===void 0&&(i._uploadIng=!0,this.$emit("update:uploadIng",this.uploadIng+1))},handleSuccess(t,i){this.$emit("update:uploadIng",this.uploadIng-1),t.ret===1?(i.url=t.data.url,i.path=t.data.path,i.thumb=t.data.thumb,this.handleCallback(i)):($A.noticeWarning({title:this.$L("\u4E0A\u4F20\u5931\u8D25"),desc:this.$L("\u6587\u4EF6 "+i.name+" \u4E0A\u4F20\u5931\u8D25 "+t.msg)}),this.$refs.upload.fileList.pop()),this.$emit("input",this.$refs.upload.fileList)},handleError(){this.$emit("update:uploadIng",this.uploadIng-1)},handleFormatError(t){$A.noticeWarning({title:this.$L("\u6587\u4EF6\u683C\u5F0F\u4E0D\u6B63\u786E"),desc:this.$L("\u6587\u4EF6 "+t.name+" \u683C\u5F0F\u4E0D\u6B63\u786E\uFF0C\u8BF7\u4E0A\u4F20 jpg\u3001jpeg\u3001gif\u3001png \u683C\u5F0F\u7684\u56FE\u7247\u3002")})},handleMaxSize(t){$A.noticeWarning({title:this.$L("\u8D85\u51FA\u6587\u4EF6\u5927\u5C0F\u9650\u5236"),desc:this.$L("\u6587\u4EF6 "+t.name+" \u592A\u5927\uFF0C\u4E0D\u80FD\u8D85\u8FC7\uFF1A"+$A.bytesToSize(this.maxSize*1024))})},handleBeforeUpload(){let t=this.uploadList.length{let e=i.dirs;for(let s=0;s{this.browseVisible=!1,$A.noticeWarning(i)}).finally(i=>{this.isLoading=!1})},browsePictureFor(t){for(let i=0;i({})},uploadIng:{type:Number,default:0}},data(){return{actionUrl:$A.apiUrl("system/imgupload"),multiple:this.num>1,visible:!1,browseVisible:!1,isLoading:!1,browseList:[],browseListNext:[],imgVisible:"",defaultList:this.initItems(this.value),uploadList:[],maxNum:Math.min(Math.max($A.runNum(this.num),1),99),httpValue:"",httpType:"",maxSize:2048}},mounted(){this.uploadList=this.$refs.upload.fileList,this.$emit("input",this.uploadList);let t=$A(this.$refs.browselistbox);t.scroll(()=>{let i=t[0].scrollHeight,e=t[0].scrollTop,s=t.height();if(e+s>=i&&this.browseListNext.length>0){let a=this.browseListNext;this.browseListNext=[],this.browsePictureFor(a)}})},watch:{value(t){if(typeof t=="string"){this.$emit("input",this.initItems(t));return}t!==this.$refs.upload.fileList&&(this.$refs.upload.fileList=this.initItems(t),this.uploadList=this.$refs.upload.fileList)},browseVisible(){this.httpType="",this.httpValue=""}},computed:{uploadHeaders(){return{fd:$A.getSessionStorageString("userWsFd"),token:this.userToken}},uploadParams(){let t={width:this.width,height:this.height,whcut:this.whcut};return Object.keys(this.otherParams).length>0?Object.assign(t,this.otherParams):t}},methods:{handleCallback(t){this.type==="callback"&&(t===!0?(this.$emit("on-callback",this.uploadList),this.$refs.upload.fileList=[],this.uploadList=this.$refs.upload.fileList):typeof t=="object"&&this.$emit("on-callback",[t])),this.browseVisible=!1},initItems(t){typeof t=="string"&&(t=[{url:t}]);let i=[];return $A.each(t,(e,s)=>{typeof s=="string"&&(s={url:s}),s.url&&(s.active=!0,s.status="finished",typeof s.path=="undefined"&&(s.path=s.url),typeof s.thumb=="undefined"&&(s.thumb=s.url),i.push(s))}),i},handleView(t){this.visible=!0,this.imgVisible=t.url},handleRemove(t){let i=this.$refs.upload.fileList;this.$refs.upload.fileList.splice(i.indexOf(t),1),this.$emit("input",this.$refs.upload.fileList)},handleProgress(t,i){i._uploadIng===void 0&&(i._uploadIng=!0,this.$emit("update:uploadIng",this.uploadIng+1))},handleSuccess(t,i){this.$emit("update:uploadIng",this.uploadIng-1),t.ret===1?(i.url=t.data.url,i.path=t.data.path,i.thumb=t.data.thumb,this.handleCallback(i)):($A.noticeWarning({title:this.$L("\u4E0A\u4F20\u5931\u8D25"),desc:this.$L("\u6587\u4EF6 "+i.name+" \u4E0A\u4F20\u5931\u8D25 "+t.msg)}),this.$refs.upload.fileList.pop()),this.$emit("input",this.$refs.upload.fileList)},handleError(){this.$emit("update:uploadIng",this.uploadIng-1)},handleFormatError(t){$A.noticeWarning({title:this.$L("\u6587\u4EF6\u683C\u5F0F\u4E0D\u6B63\u786E"),desc:this.$L("\u6587\u4EF6 "+t.name+" \u683C\u5F0F\u4E0D\u6B63\u786E\uFF0C\u8BF7\u4E0A\u4F20 jpg\u3001jpeg\u3001gif\u3001png \u683C\u5F0F\u7684\u56FE\u7247\u3002")})},handleMaxSize(t){$A.noticeWarning({title:this.$L("\u8D85\u51FA\u6587\u4EF6\u5927\u5C0F\u9650\u5236"),desc:this.$L("\u6587\u4EF6 "+t.name+" \u592A\u5927\uFF0C\u4E0D\u80FD\u8D85\u8FC7\uFF1A"+$A.bytesToSize(this.maxSize*1024))})},handleBeforeUpload(){let t=this.uploadList.length{let e=i.dirs;for(let s=0;s{this.browseVisible=!1,$A.noticeWarning(i)}).finally(i=>{this.isLoading=!1})},browsePictureFor(t){for(let i=0;i"office_"+Math.round(Math.random()*1e4)},code:{type:String,default:""},historyId:{type:Number,default:0},value:{type:[Object,Array],default:function(){return{}}},readOnly:{type:Boolean,default:!1},documentKey:Function},data(){return{loading:!1,loadError:!1,docEditor:null}},beforeDestroy(){this.docEditor!==null&&(this.docEditor.destroyEditor(),this.docEditor=null)},computed:{...d(["userInfo","themeIsDark"]),fileType(){return this.getType(this.value.type)},fileName(){return this.value.name},fileUrl(){let e=this.code||this.value.id,t;return $A.leftExists(e,"msgFile_")?t=`dialog/msg/download/?msg_id=${$A.leftDelete(e,"msgFile_")}&token=${this.userToken}`:$A.leftExists(e,"taskFile_")?t=`project/task/filedown/?file_id=${$A.leftDelete(e,"taskFile_")}&token=${this.userToken}`:(t=`file/content/?id=${e}&token=${this.userToken}`,this.historyId>0&&(t+=`&history_id=${this.historyId}`)),t},previewUrl(){return $A.apiUrl(this.fileUrl)+"&down=preview"}},watch:{"value.id":{handler(e){!e||!$A.isDesktop()||(this.loading=!0,this.loadError=!1,$A.loadScript($A.apiUrl("../office/web-apps/apps/api/documents/api.js"),t=>{if(this.loading=!1,t!==null){this.loadError=!0;return}if(!this.documentKey){this.handleClose();return}const i=this.documentKey();i&&i.then?i.then(this.loadFile):this.loadFile()}))},immediate:!0},previewUrl:{handler(){$A.isDesktop()||(this.loading=!0)},immediate:!0}},methods:{onFrameLoad(){this.loading=!1},getType(e){switch(e){case"word":return"docx";case"excel":return"xlsx";case"ppt":return"pptx"}return e},loadFile(e=""){this.docEditor!==null&&(this.docEditor.destroyEditor(),this.docEditor=null);let t=l;switch(l){case"zh-CHT":t="zh-TW";break}let i=this.code||this.value.id,a=$A.strExists(this.fileName,".")?this.fileName:this.fileName+"."+this.fileType,s=`${this.fileType}-${e||i}`;this.historyId>0&&(s+=`-${this.historyId}`);const r={document:{fileType:this.fileType,title:a,key:s,url:`http://nginx/api/${this.fileUrl}`},editorConfig:{mode:"edit",lang:t,user:{id:String(this.userInfo.userid),name:this.userInfo.nickname},customization:{uiTheme:this.themeIsDark?"theme-dark":"theme-classic-light",forcesave:!0,help:!1},callbackUrl:`http://nginx/api/file/content/office?id=${i}&token=${this.userToken}`},events:{onDocumentReady:this.onDocumentReady}};/\/hideenOfficeTitle\//.test(window.navigator.userAgent)&&(r.document.title=" "),(async _=>{if((this.readOnly||this.historyId>0)&&(r.editorConfig.mode="view",r.editorConfig.callbackUrl=null,!r.editorConfig.user.id)){let o=await $A.IDBInt("officeViewer");o||(o=$A.randNum(1e3,99999),await $A.IDBSet("officeViewer",o)),r.editorConfig.user.id="viewer_"+o,r.editorConfig.user.name="Viewer_"+o}this.$nextTick(()=>{this.docEditor=new DocsAPI.DocEditor(this.id,r)})})()},onDocumentReady(){this.$emit("on-document-ready",this.docEditor)}}},n={};var p=f(m,u,h,!1,y,"42265d2e",null,null);function y(e){for(let t in n)this[t]=n[t]}var $=function(){return p.exports}();export{$ as default}; +import{m as d,n as f,a as l}from"./app.feefc813.js";import{I as c}from"./IFrame.5edcf1c5.js";var u=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"component-only-office"},[e.$A.isDesktop()?[e.loadError?i("Alert",{staticClass:"load-error",attrs:{type:"error","show-icon":""}},[e._v(e._s(e.$L("\u7EC4\u4EF6\u52A0\u8F7D\u5931\u8D25\uFF01")))]):e._e(),i("div",{staticClass:"placeholder",attrs:{id:e.id}})]:i("IFrame",{staticClass:"preview-iframe",attrs:{src:e.previewUrl},on:{"on-load":e.onFrameLoad}}),e.loading?i("div",{staticClass:"office-loading"},[i("Loading")],1):e._e()],2)},h=[];const m={name:"OnlyOffice",components:{IFrame:c},props:{id:{type:String,default:()=>"office_"+Math.round(Math.random()*1e4)},code:{type:String,default:""},historyId:{type:Number,default:0},value:{type:[Object,Array],default:function(){return{}}},readOnly:{type:Boolean,default:!1},documentKey:Function},data(){return{loading:!1,loadError:!1,docEditor:null}},beforeDestroy(){this.docEditor!==null&&(this.docEditor.destroyEditor(),this.docEditor=null)},computed:{...d(["userInfo","themeIsDark"]),fileType(){return this.getType(this.value.type)},fileName(){return this.value.name},fileUrl(){let e=this.code||this.value.id,t;return $A.leftExists(e,"msgFile_")?t=`dialog/msg/download/?msg_id=${$A.leftDelete(e,"msgFile_")}&token=${this.userToken}`:$A.leftExists(e,"taskFile_")?t=`project/task/filedown/?file_id=${$A.leftDelete(e,"taskFile_")}&token=${this.userToken}`:(t=`file/content/?id=${e}&token=${this.userToken}`,this.historyId>0&&(t+=`&history_id=${this.historyId}`)),t},previewUrl(){return $A.apiUrl(this.fileUrl)+"&down=preview"}},watch:{"value.id":{handler(e){!e||!$A.isDesktop()||(this.loading=!0,this.loadError=!1,$A.loadScript($A.apiUrl("../office/web-apps/apps/api/documents/api.js"),t=>{if(this.loading=!1,t!==null){this.loadError=!0;return}if(!this.documentKey){this.handleClose();return}const i=this.documentKey();i&&i.then?i.then(this.loadFile):this.loadFile()}))},immediate:!0},previewUrl:{handler(){$A.isDesktop()||(this.loading=!0)},immediate:!0}},methods:{onFrameLoad(){this.loading=!1},getType(e){switch(e){case"word":return"docx";case"excel":return"xlsx";case"ppt":return"pptx"}return e},loadFile(e=""){this.docEditor!==null&&(this.docEditor.destroyEditor(),this.docEditor=null);let t=l;switch(l){case"zh-CHT":t="zh-TW";break}let i=this.code||this.value.id,a=$A.strExists(this.fileName,".")?this.fileName:this.fileName+"."+this.fileType,s=`${this.fileType}-${e||i}`;this.historyId>0&&(s+=`-${this.historyId}`);const r={document:{fileType:this.fileType,title:a,key:s,url:`http://nginx/api/${this.fileUrl}`},editorConfig:{mode:"edit",lang:t,user:{id:String(this.userInfo.userid),name:this.userInfo.nickname},customization:{uiTheme:this.themeIsDark?"theme-dark":"theme-classic-light",forcesave:!0,help:!1},callbackUrl:`http://nginx/api/file/content/office?id=${i}&token=${this.userToken}`},events:{onDocumentReady:this.onDocumentReady}};/\/hideenOfficeTitle\//.test(window.navigator.userAgent)&&(r.document.title=" "),(async _=>{if((this.readOnly||this.historyId>0)&&(r.editorConfig.mode="view",r.editorConfig.callbackUrl=null,!r.editorConfig.user.id)){let o=await $A.IDBInt("officeViewer");o||(o=$A.randNum(1e3,99999),await $A.IDBSet("officeViewer",o)),r.editorConfig.user.id="viewer_"+o,r.editorConfig.user.name="Viewer_"+o}this.$nextTick(()=>{this.docEditor=new DocsAPI.DocEditor(this.id,r)})})()},onDocumentReady(){this.$emit("on-document-ready",this.docEditor)}}},n={};var p=f(m,u,h,!1,y,"42265d2e",null,null);function y(e){for(let t in n)this[t]=n[t]}var $=function(){return p.exports}();export{$ as default}; diff --git a/public/js/build/ProjectLog.53e7fe6c.js b/public/js/build/ProjectLog.ac7d2c0b.js similarity index 98% rename from public/js/build/ProjectLog.53e7fe6c.js rename to public/js/build/ProjectLog.ac7d2c0b.js index d5362725c..b387283c6 100644 --- a/public/js/build/ProjectLog.53e7fe6c.js +++ b/public/js/build/ProjectLog.ac7d2c0b.js @@ -1 +1 @@ -import{m as p,n as c}from"./app.90cb6e79.js";var h=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"task-priority",style:t.myStyle},[t._t("default")],2)},m=[];const _={name:"TaskPriority",props:{color:{default:"#ffffff"},background:{default:"#7DBEEA"},backgroundColor:{default:"#7DBEEA"}},data(){return{}},computed:{...p(["themeIsDark"]),myStyle(){const{color:t,background:e,backgroundColor:s,themeIsDark:a}=this;return a?{color:s||e,borderColor:s||e,backgroundColor:"transparent"}:{color:t,borderColor:s||e,backgroundColor:s||e}}}},l={};var f=c(_,h,m,!1,g,null,null,null);function g(t){for(let e in l)this[e]=l[e]}var I=function(){return f.exports}(),v={name:"ProjectLogDetail",functional:!0,props:{render:Function,item:Object},render:(t,e)=>e.props.render(t,e.props.item)},$=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{class:["project-log",t.taskId==0?"is-drawer":""]},[s("div",{staticClass:"log-title"},[t._v(t._s(t.$L("\u9879\u76EE\u52A8\u6001")))]),s("ul",{staticClass:"logs-activity"},[t._l(t.lists,function(a){return s("li",[s("div",{staticClass:"logs-date"},[t._v(t._s(t.logDate(a)))]),s("div",{staticClass:"logs-section"},[s("Timeline",t._l(a.lists,function(r,o){return s("TimelineItem",{key:o},[s("div",{staticClass:"logs-dot",attrs:{slot:"dot"},slot:"dot"},[r.userid?s("UserAvatar",{attrs:{userid:r.userid,size:18,showName:""}}):s("div",{staticClass:"avatar-wrapper common-avatar"},[s("EAvatar",{attrs:{size:18}},[t._v("A")]),s("div",{staticClass:"avatar-name auto"},[t._v(t._s(t.$L("\u7CFB\u7EDF")))])],1)],1),t._l(r.lists,function(i){return[s("div",{staticClass:"log-summary"},[s("ProjectLogDetail",{attrs:{render:t.logDetail,item:i}}),t.operationList(i).length>0?s("span",{staticClass:"log-operation"},t._l(t.operationList(i),function(n,d){return s("Button",{key:d,attrs:{size:"small"},on:{click:function(P){return t.onOperation(n)}}},[t._v(t._s(n.button))])}),1):t._e(),s("span",{staticClass:"log-time"},[t._v(t._s(i.time.ymd)+" "+t._s(i.time.segment)+" "+t._s(i.time.hi))])],1),i.project_task?s("div",{staticClass:"log-task"},[s("em",{on:{click:function(n){return t.openTask(i.project_task)}}},[t._v(t._s(t.$L("\u5173\u8054\u4EFB\u52A1"))+": "+t._s(i.project_task.name))])]):t._e()]})],2)}),1)],1)])}),t.loadIng>0&&t.showLoad?s("li",{staticClass:"logs-loading"},[s("Loading")],1):t.hasMorePages?s("li",{staticClass:"logs-more",on:{click:t.getMore}},[t._v(t._s(t.$L("\u52A0\u8F7D\u66F4\u591A")))]):t.totalNum==0?s("li",{staticClass:"logs-none",on:{click:function(a){return t.getLists(!0)}}},[t._v(t._s(t.$L("\u6CA1\u6709\u4EFB\u4F55\u52A8\u6001")))]):t._e()],2)])},k=[];const y={name:"ProjectLog",components:{ProjectLogDetail:v},props:{projectId:{type:Number,default:0},taskId:{type:Number,default:0},showLoad:{type:Boolean,default:!0}},data(){return{loadIng:0,lists:[],listPage:1,listPageSize:20,hasMorePages:!1,totalNum:-1}},mounted(){this.getLists(!0)},computed:{},watch:{projectId(){this.lists=[],this.getLists(!0)},taskId(){this.lists=[],this.getLists(!0)},loadIng(t){this.$emit("on-load-change",t>0)}},methods:{logDate(t){return $A.formatDate("m-d")==t.ymd?t.ymd+" "+this.$L("\u4ECA\u5929"):t.key},getLists(t){t===!0&&(this.listPage=1),this.loadIng++,this.$store.dispatch("call",{url:"project/log/lists",data:{project_id:this.projectId,task_id:this.taskId,page:Math.max(this.listPage,1),pagesize:Math.max($A.runNum(this.listPageSize),10)}}).then(({data:e})=>{t===!0&&(this.lists=[]),e.data.some(s=>{let a=s.time,r=a.ymd+" "+a.week,o=this.lists.find(({key:i})=>i==r);if(o){let i=o.lists.find(({userid:n})=>n==s.userid);i?i.lists.push(s):o.lists.push({userid:s.userid,lists:[s]})}else this.lists.push({key:r,ymd:s.ymd,lists:[{userid:s.userid,lists:[s]}]})}),this.hasMorePages=e.current_page{this.lists=[],this.hasMorePages=!1,this.totalNum=0}).finally(e=>{this.loadIng--})},getMore(){!this.hasMorePages||(this.hasMorePages=!1,this.listPage++,this.getLists())},logDetail(t,{detail:e,record:s}){let a=[t("span",e)];if($A.isJson(s)){if($A.isArray(s.change)){let[r,o]=s.change;a.push(t("span",": ")),r&&r!=o?(a.push(t("span",{class:"change-value"},`${r||"-"}`)),a.push(t("span"," => ")),a.push(t("span",{class:"change-value"},`${o||"-"}`))):a.push(t("span",{class:"change-value"},o||"-"))}if(s.userid){let r=$A.isArray(s.userid)?s.userid:[s.userid],o=[];r.some(i=>{/^\d+$/.test(i)?o.push(t("UserAvatar",{props:{size:18,userid:i}})):o.push(t("span",i))}),o.length>0&&a.push(t("div",{class:"detail-user"},[t("div",{class:"detail-user-wrap"},o)]))}}return t("span",{class:"log-text"},a)},operationList({id:t,record:e}){let s=[];if(!$A.isJson(e))return s;if(this.taskId>0&&$A.isJson(e.flow)){let a=$A.getMiddle(e.flow.flow_item_name,"|");a&&s.push({id:t,button:this.$L("\u91CD\u7F6E"),content:this.$L(`\u786E\u5B9A\u91CD\u7F6E\u4E3A\u3010${a}\u3011\u5417\uFF1F`)})}return s},onOperation(t){$A.modalConfirm({content:t.content,loading:!0,onOk:()=>new Promise((e,s)=>{this.$store.dispatch("call",{url:"project/task/resetfromlog",data:{id:t.id}}).then(({data:a,msg:r})=>{e(r),this.$store.dispatch("saveTask",a),this.getLists(!0)}).catch(({msg:a})=>{s(a)})})})},openTask(t){this.$store.dispatch("openTask",t)}}},u={};var L=c(y,$,k,!1,C,null,null,null);function C(t){for(let e in u)this[e]=u[e]}var A=function(){return L.exports}();export{A as P,I as T}; +import{m as p,n as c}from"./app.feefc813.js";var h=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"task-priority",style:t.myStyle},[t._t("default")],2)},m=[];const _={name:"TaskPriority",props:{color:{default:"#ffffff"},background:{default:"#7DBEEA"},backgroundColor:{default:"#7DBEEA"}},data(){return{}},computed:{...p(["themeIsDark"]),myStyle(){const{color:t,background:e,backgroundColor:s,themeIsDark:a}=this;return a?{color:s||e,borderColor:s||e,backgroundColor:"transparent"}:{color:t,borderColor:s||e,backgroundColor:s||e}}}},l={};var f=c(_,h,m,!1,g,null,null,null);function g(t){for(let e in l)this[e]=l[e]}var I=function(){return f.exports}(),v={name:"ProjectLogDetail",functional:!0,props:{render:Function,item:Object},render:(t,e)=>e.props.render(t,e.props.item)},$=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{class:["project-log",t.taskId==0?"is-drawer":""]},[s("div",{staticClass:"log-title"},[t._v(t._s(t.$L("\u9879\u76EE\u52A8\u6001")))]),s("ul",{staticClass:"logs-activity"},[t._l(t.lists,function(a){return s("li",[s("div",{staticClass:"logs-date"},[t._v(t._s(t.logDate(a)))]),s("div",{staticClass:"logs-section"},[s("Timeline",t._l(a.lists,function(r,o){return s("TimelineItem",{key:o},[s("div",{staticClass:"logs-dot",attrs:{slot:"dot"},slot:"dot"},[r.userid?s("UserAvatar",{attrs:{userid:r.userid,size:18,showName:""}}):s("div",{staticClass:"avatar-wrapper common-avatar"},[s("EAvatar",{attrs:{size:18}},[t._v("A")]),s("div",{staticClass:"avatar-name auto"},[t._v(t._s(t.$L("\u7CFB\u7EDF")))])],1)],1),t._l(r.lists,function(i){return[s("div",{staticClass:"log-summary"},[s("ProjectLogDetail",{attrs:{render:t.logDetail,item:i}}),t.operationList(i).length>0?s("span",{staticClass:"log-operation"},t._l(t.operationList(i),function(n,d){return s("Button",{key:d,attrs:{size:"small"},on:{click:function(P){return t.onOperation(n)}}},[t._v(t._s(n.button))])}),1):t._e(),s("span",{staticClass:"log-time"},[t._v(t._s(i.time.ymd)+" "+t._s(i.time.segment)+" "+t._s(i.time.hi))])],1),i.project_task?s("div",{staticClass:"log-task"},[s("em",{on:{click:function(n){return t.openTask(i.project_task)}}},[t._v(t._s(t.$L("\u5173\u8054\u4EFB\u52A1"))+": "+t._s(i.project_task.name))])]):t._e()]})],2)}),1)],1)])}),t.loadIng>0&&t.showLoad?s("li",{staticClass:"logs-loading"},[s("Loading")],1):t.hasMorePages?s("li",{staticClass:"logs-more",on:{click:t.getMore}},[t._v(t._s(t.$L("\u52A0\u8F7D\u66F4\u591A")))]):t.totalNum==0?s("li",{staticClass:"logs-none",on:{click:function(a){return t.getLists(!0)}}},[t._v(t._s(t.$L("\u6CA1\u6709\u4EFB\u4F55\u52A8\u6001")))]):t._e()],2)])},k=[];const y={name:"ProjectLog",components:{ProjectLogDetail:v},props:{projectId:{type:Number,default:0},taskId:{type:Number,default:0},showLoad:{type:Boolean,default:!0}},data(){return{loadIng:0,lists:[],listPage:1,listPageSize:20,hasMorePages:!1,totalNum:-1}},mounted(){this.getLists(!0)},computed:{},watch:{projectId(){this.lists=[],this.getLists(!0)},taskId(){this.lists=[],this.getLists(!0)},loadIng(t){this.$emit("on-load-change",t>0)}},methods:{logDate(t){return $A.formatDate("m-d")==t.ymd?t.ymd+" "+this.$L("\u4ECA\u5929"):t.key},getLists(t){t===!0&&(this.listPage=1),this.loadIng++,this.$store.dispatch("call",{url:"project/log/lists",data:{project_id:this.projectId,task_id:this.taskId,page:Math.max(this.listPage,1),pagesize:Math.max($A.runNum(this.listPageSize),10)}}).then(({data:e})=>{t===!0&&(this.lists=[]),e.data.some(s=>{let a=s.time,r=a.ymd+" "+a.week,o=this.lists.find(({key:i})=>i==r);if(o){let i=o.lists.find(({userid:n})=>n==s.userid);i?i.lists.push(s):o.lists.push({userid:s.userid,lists:[s]})}else this.lists.push({key:r,ymd:s.ymd,lists:[{userid:s.userid,lists:[s]}]})}),this.hasMorePages=e.current_page{this.lists=[],this.hasMorePages=!1,this.totalNum=0}).finally(e=>{this.loadIng--})},getMore(){!this.hasMorePages||(this.hasMorePages=!1,this.listPage++,this.getLists())},logDetail(t,{detail:e,record:s}){let a=[t("span",e)];if($A.isJson(s)){if($A.isArray(s.change)){let[r,o]=s.change;a.push(t("span",": ")),r&&r!=o?(a.push(t("span",{class:"change-value"},`${r||"-"}`)),a.push(t("span"," => ")),a.push(t("span",{class:"change-value"},`${o||"-"}`))):a.push(t("span",{class:"change-value"},o||"-"))}if(s.userid){let r=$A.isArray(s.userid)?s.userid:[s.userid],o=[];r.some(i=>{/^\d+$/.test(i)?o.push(t("UserAvatar",{props:{size:18,userid:i}})):o.push(t("span",i))}),o.length>0&&a.push(t("div",{class:"detail-user"},[t("div",{class:"detail-user-wrap"},o)]))}}return t("span",{class:"log-text"},a)},operationList({id:t,record:e}){let s=[];if(!$A.isJson(e))return s;if(this.taskId>0&&$A.isJson(e.flow)){let a=$A.getMiddle(e.flow.flow_item_name,"|");a&&s.push({id:t,button:this.$L("\u91CD\u7F6E"),content:this.$L(`\u786E\u5B9A\u91CD\u7F6E\u4E3A\u3010${a}\u3011\u5417\uFF1F`)})}return s},onOperation(t){$A.modalConfirm({content:t.content,loading:!0,onOk:()=>new Promise((e,s)=>{this.$store.dispatch("call",{url:"project/task/resetfromlog",data:{id:t.id}}).then(({data:a,msg:r})=>{e(r),this.$store.dispatch("saveTask",a),this.getLists(!0)}).catch(({msg:a})=>{s(a)})})})},openTask(t){this.$store.dispatch("openTask",t)}}},u={};var L=c(y,$,k,!1,C,null,null,null);function C(t){for(let e in u)this[e]=u[e]}var A=function(){return L.exports}();export{A as P,I as T}; diff --git a/public/js/build/ReportDetail.7265b249.js b/public/js/build/ReportDetail.732d6d88.js similarity index 95% rename from public/js/build/ReportDetail.7265b249.js rename to public/js/build/ReportDetail.732d6d88.js index 4fb8b0e11..f400ad1e5 100644 --- a/public/js/build/ReportDetail.7265b249.js +++ b/public/js/build/ReportDetail.732d6d88.js @@ -1 +1 @@ -import{n as o}from"./app.90cb6e79.js";var l=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"report-detail"},[a("div",{staticClass:"report-title"},[t._v(" "+t._s(t.data.title)+" "),t.loadIng>0?a("Icon",{staticClass:"icon-loading",attrs:{type:"ios-loading"}}):t._e()],1),a("div",{staticClass:"report-detail-context"},[a("Form",{staticClass:"report-form",attrs:{"label-width":"auto",inline:""}},[a("FormItem",{attrs:{label:t.$L("\u6C47\u62A5\u4EBA")}},[a("UserAvatar",{attrs:{userid:t.data.userid,size:28}})],1),a("FormItem",{attrs:{label:t.$L("\u63D0\u4EA4\u65F6\u95F4")}},[t._v(" "+t._s(t.data.created_at)+" ")]),a("FormItem",{attrs:{label:t.$L("\u6C47\u62A5\u5BF9\u8C61")}},[t.data.receives_user.length===0?[t._v("-")]:t._l(t.data.receives_user,function(s,i){return a("UserAvatar",{key:i,attrs:{userid:s.userid,size:28}})})],2)],1),a("Form",{staticClass:"report-form",attrs:{"label-width":"auto"}},[a("FormItem",{attrs:{label:t.$L("\u6C47\u62A5\u5185\u5BB9")}},[a("div",{staticClass:"report-content",domProps:{innerHTML:t._s(t.data.content)}})])],1)],1)])},n=[];const d={name:"ReportDetail",props:{data:{default:{}}},data(){return{loadIng:0}},watch:{"data.id":{handler(t){t>0&&this.sendRead()},immediate:!0}},methods:{sendRead(){this.loadIng++,this.$store.dispatch("call",{url:"report/read",data:{ids:[this.data.id]}}).then(()=>{}).catch(()=>{}).finally(t=>{this.loadIng--})}}},r={};var c=o(d,l,n,!1,_,null,null,null);function _(t){for(let e in r)this[e]=r[e]}var m=function(){return c.exports}();export{m as R}; +import{n as o}from"./app.feefc813.js";var l=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"report-detail"},[a("div",{staticClass:"report-title"},[t._v(" "+t._s(t.data.title)+" "),t.loadIng>0?a("Icon",{staticClass:"icon-loading",attrs:{type:"ios-loading"}}):t._e()],1),a("div",{staticClass:"report-detail-context"},[a("Form",{staticClass:"report-form",attrs:{"label-width":"auto",inline:""}},[a("FormItem",{attrs:{label:t.$L("\u6C47\u62A5\u4EBA")}},[a("UserAvatar",{attrs:{userid:t.data.userid,size:28}})],1),a("FormItem",{attrs:{label:t.$L("\u63D0\u4EA4\u65F6\u95F4")}},[t._v(" "+t._s(t.data.created_at)+" ")]),a("FormItem",{attrs:{label:t.$L("\u6C47\u62A5\u5BF9\u8C61")}},[t.data.receives_user.length===0?[t._v("-")]:t._l(t.data.receives_user,function(s,i){return a("UserAvatar",{key:i,attrs:{userid:s.userid,size:28}})})],2)],1),a("Form",{staticClass:"report-form",attrs:{"label-width":"auto"}},[a("FormItem",{attrs:{label:t.$L("\u6C47\u62A5\u5185\u5BB9")}},[a("div",{staticClass:"report-content",domProps:{innerHTML:t._s(t.data.content)}})])],1)],1)])},n=[];const d={name:"ReportDetail",props:{data:{default:{}}},data(){return{loadIng:0}},watch:{"data.id":{handler(t){t>0&&this.sendRead()},immediate:!0}},methods:{sendRead(){this.loadIng++,this.$store.dispatch("call",{url:"report/read",data:{ids:[this.data.id]}}).then(()=>{}).catch(()=>{}).finally(t=>{this.loadIng--})}}},r={};var c=o(d,l,n,!1,_,null,null,null);function _(t){for(let e in r)this[e]=r[e]}var m=function(){return c.exports}();export{m as R}; diff --git a/public/js/build/ReportEdit.1b195875.js b/public/js/build/ReportEdit.4981db49.js similarity index 94% rename from public/js/build/ReportEdit.1b195875.js rename to public/js/build/ReportEdit.4981db49.js index 024b1098f..a50593ede 100644 --- a/public/js/build/ReportEdit.1b195875.js +++ b/public/js/build/ReportEdit.4981db49.js @@ -1 +1 @@ -import{n as s,_ as o}from"./app.90cb6e79.js";import{U as l}from"./UserInput.1d67c0fc.js";var n=function(){var t=this,r=t.$createElement,e=t._self._c||r;return e("Form",{staticClass:"report-edit",attrs:{"label-width":"auto"},nativeOn:{submit:function(a){a.preventDefault()}}},[e("FormItem",{attrs:{label:t.$L("\u6C47\u62A5\u7C7B\u578B")}},[e("RadioGroup",{staticClass:"report-radiogroup",attrs:{type:"button","button-style":"solid",readonly:t.id>0},on:{"on-change":t.typeChange},model:{value:t.reportData.type,callback:function(a){t.$set(t.reportData,"type",a)},expression:"reportData.type"}},[e("Radio",{attrs:{label:"weekly",disabled:t.id>0&&t.reportData.type=="daily"}},[t._v(t._s(t.$L("\u5468\u62A5")))]),e("Radio",{attrs:{label:"daily",disabled:t.id>0&&t.reportData.type=="weekly"}},[t._v(t._s(t.$L("\u65E5\u62A5")))])],1),t.id===0?e("ButtonGroup",{staticClass:"report-buttongroup"},[e("ETooltip",{attrs:{disabled:t.windowSmall||t.$isEEUiApp,content:t.prevCycleText,placement:"bottom"}},[e("Button",{attrs:{type:"primary"},on:{click:t.prevCycle}},[e("Icon",{attrs:{type:"ios-arrow-back"}})],1)],1),e("div",{staticClass:"report-buttongroup-vertical"}),e("ETooltip",{attrs:{disabled:t.windowSmall||t.$isEEUiApp||t.reportData.offset>=0,content:t.nextCycleText,placement:"bottom"}},[e("Button",{attrs:{type:"primary",disabled:t.reportData.offset>=0},on:{click:t.nextCycle}},[e("Icon",{attrs:{type:"ios-arrow-forward"}})],1)],1)],1):t._e()],1),e("FormItem",{attrs:{label:t.$L("\u6C47\u62A5\u540D\u79F0")}},[e("Input",{attrs:{disabled:""},model:{value:t.reportData.title,callback:function(a){t.$set(t.reportData,"title",a)},expression:"reportData.title"}})],1),e("FormItem",{attrs:{label:t.$L("\u6C47\u62A5\u5BF9\u8C61")}},[e("div",{staticClass:"report-users"},[e("UserInput",{attrs:{disabledChoice:[t.userId],placeholder:t.$L("\u9009\u62E9\u63A5\u6536\u4EBA"),transfer:!1},model:{value:t.reportData.receive,callback:function(a){t.$set(t.reportData,"receive",a)},expression:"reportData.receive"}}),e("a",{staticClass:"report-user-link",attrs:{href:"javascript:void(0);"},on:{click:t.getLastSubmitter}},[t.receiveLoad>0?e("Icon",{staticClass:"icon-loading",attrs:{type:"ios-loading"}}):e("Icon",{attrs:{type:"ios-share-outline"}}),t._v(" "+t._s(t.$L("\u4F7F\u7528\u6211\u4E0A\u6B21\u7684\u6C47\u62A5\u5BF9\u8C61"))+" ")],1)],1)]),e("FormItem",{staticClass:"report-content-editor",attrs:{label:t.$L("\u6C47\u62A5\u5185\u5BB9")}},[e("TEditor",{attrs:{height:"100%"},model:{value:t.reportData.content,callback:function(a){t.$set(t.reportData,"content",a)},expression:"reportData.content"}})],1),e("FormItem",{staticClass:"report-foot"},[e("Button",{staticClass:"report-bottom",attrs:{type:"primary",loading:t.loadIng>0},on:{click:t.handleSubmit}},[t._v(t._s(t.$L(t.id>0?"\u4FEE\u6539":"\u63D0\u4EA4")))])],1)],1)},p=[];const c=()=>o(()=>import("./TEditor.27348ee4.js"),["js/build/TEditor.27348ee4.js","js/build/app.90cb6e79.js","js/build/app.ce5dd3b0.css","js/build/ImgUpload.466e5bce.js"]),h={name:"ReportEdit",components:{TEditor:c,UserInput:l},props:{id:{default:0}},data(){return{loadIng:0,receiveLoad:0,reportData:{sign:"",title:"",content:"",type:"weekly",receive:[],id:0,offset:0},prevCycleText:this.$L("\u4E0A\u4E00\u5468"),nextCycleText:this.$L("\u4E0B\u4E00\u5468")}},watch:{id:{handler(t){t>0?this.getDetail(t):(this.reportData.offset=0,this.reportData.type="weekly",this.reportData.receive=[],this.getTemplate())},immediate:!0}},mounted(){},methods:{handleSubmit(){this.id===0&&this.reportData.id>0?$A.modalConfirm({title:"\u8986\u76D6\u63D0\u4EA4",content:"\u4F60\u5DF2\u63D0\u4EA4\u8FC7\u6B64\u65E5\u671F\u7684\u62A5\u544A\uFF0C\u662F\u5426\u8986\u76D6\u63D0\u4EA4\uFF1F",onOk:()=>{this.doSubmit()}}):this.doSubmit()},doSubmit(){this.loadIng++,this.$store.dispatch("call",{url:"report/store",data:this.reportData,method:"post"}).then(({data:t,msg:r})=>{this.reportData.offset=0,this.reportData.type="weekly",this.reportData.receive=[],this.getTemplate(),!this.$isSubElectron&&$A.messageSuccess(r),this.$emit("saveSuccess",{data:t,msg:r})}).catch(({msg:t})=>{$A.messageError(t)}).finally(t=>{this.loadIng--})},getTemplate(){this.loadIng++,this.$store.dispatch("call",{url:"report/template",data:{type:this.reportData.type,offset:this.reportData.offset,id:this.id}}).then(({data:t})=>{t.id?(this.reportData.id=t.id,this.id>0?this.getDetail(t.id):(this.reportData.sign=t.sign,this.reportData.title=t.title,this.reportData.content=t.content)):(this.reportData.id=0,this.reportData.sign=t.sign,this.reportData.title=t.title,this.reportData.content=t.content)}).catch(({msg:t})=>{$A.messageError(t)}).finally(t=>{this.loadIng--})},typeChange(t){this.reportData.offset=0,t==="weekly"?(this.prevCycleText=this.$L("\u4E0A\u4E00\u5468"),this.nextCycleText=this.$L("\u4E0B\u4E00\u5468")):(this.prevCycleText=this.$L("\u4E0A\u4E00\u5929"),this.nextCycleText=this.$L("\u4E0B\u4E00\u5929")),this.getTemplate()},getDetail(t){this.$store.dispatch("call",{url:"report/detail",data:{id:t}}).then(({data:r})=>{this.reportData.title=r.title,this.reportData.content=r.content,this.reportData.receive=r.receives_user.map(({userid:e})=>e),this.reportData.type=r.type_val,this.reportData.id=t}).catch(({msg:r})=>{$A.messageError(r)})},prevCycle(){this.reportData.offset-=1,this.reReportData(),this.getTemplate()},nextCycle(){this.reportData.offset<0&&(this.reportData.offset+=1),this.reReportData(),this.getTemplate()},getLastSubmitter(){setTimeout(t=>{this.receiveLoad++},300),this.$store.dispatch("call",{url:"report/last_submitter"}).then(({data:t})=>{this.reportData.receive=t}).catch(({msg:t})=>{$A.messageError(t)}).finally(t=>{this.receiveLoad--})},reReportData(){this.reportData.title="",this.reportData.content="",this.reportData.receive=[],this.reportData.id=0}}},i={};var d=s(h,n,p,!1,m,null,null,null);function m(t){for(let r in i)this[r]=i[r]}var f=function(){return d.exports}();export{f as R}; +import{n as s,_ as o}from"./app.feefc813.js";import{U as l}from"./UserInput.2bc16b15.js";var n=function(){var t=this,r=t.$createElement,e=t._self._c||r;return e("Form",{staticClass:"report-edit",attrs:{"label-width":"auto"},nativeOn:{submit:function(a){a.preventDefault()}}},[e("FormItem",{attrs:{label:t.$L("\u6C47\u62A5\u7C7B\u578B")}},[e("RadioGroup",{staticClass:"report-radiogroup",attrs:{type:"button","button-style":"solid",readonly:t.id>0},on:{"on-change":t.typeChange},model:{value:t.reportData.type,callback:function(a){t.$set(t.reportData,"type",a)},expression:"reportData.type"}},[e("Radio",{attrs:{label:"weekly",disabled:t.id>0&&t.reportData.type=="daily"}},[t._v(t._s(t.$L("\u5468\u62A5")))]),e("Radio",{attrs:{label:"daily",disabled:t.id>0&&t.reportData.type=="weekly"}},[t._v(t._s(t.$L("\u65E5\u62A5")))])],1),t.id===0?e("ButtonGroup",{staticClass:"report-buttongroup"},[e("ETooltip",{attrs:{disabled:t.windowSmall||t.$isEEUiApp,content:t.prevCycleText,placement:"bottom"}},[e("Button",{attrs:{type:"primary"},on:{click:t.prevCycle}},[e("Icon",{attrs:{type:"ios-arrow-back"}})],1)],1),e("div",{staticClass:"report-buttongroup-vertical"}),e("ETooltip",{attrs:{disabled:t.windowSmall||t.$isEEUiApp||t.reportData.offset>=0,content:t.nextCycleText,placement:"bottom"}},[e("Button",{attrs:{type:"primary",disabled:t.reportData.offset>=0},on:{click:t.nextCycle}},[e("Icon",{attrs:{type:"ios-arrow-forward"}})],1)],1)],1):t._e()],1),e("FormItem",{attrs:{label:t.$L("\u6C47\u62A5\u540D\u79F0")}},[e("Input",{attrs:{disabled:""},model:{value:t.reportData.title,callback:function(a){t.$set(t.reportData,"title",a)},expression:"reportData.title"}})],1),e("FormItem",{attrs:{label:t.$L("\u6C47\u62A5\u5BF9\u8C61")}},[e("div",{staticClass:"report-users"},[e("UserInput",{attrs:{disabledChoice:[t.userId],placeholder:t.$L("\u9009\u62E9\u63A5\u6536\u4EBA"),transfer:!1},model:{value:t.reportData.receive,callback:function(a){t.$set(t.reportData,"receive",a)},expression:"reportData.receive"}}),e("a",{staticClass:"report-user-link",attrs:{href:"javascript:void(0);"},on:{click:t.getLastSubmitter}},[t.receiveLoad>0?e("Icon",{staticClass:"icon-loading",attrs:{type:"ios-loading"}}):e("Icon",{attrs:{type:"ios-share-outline"}}),t._v(" "+t._s(t.$L("\u4F7F\u7528\u6211\u4E0A\u6B21\u7684\u6C47\u62A5\u5BF9\u8C61"))+" ")],1)],1)]),e("FormItem",{staticClass:"report-content-editor",attrs:{label:t.$L("\u6C47\u62A5\u5185\u5BB9")}},[e("TEditor",{attrs:{height:"100%"},model:{value:t.reportData.content,callback:function(a){t.$set(t.reportData,"content",a)},expression:"reportData.content"}})],1),e("FormItem",{staticClass:"report-foot"},[e("Button",{staticClass:"report-bottom",attrs:{type:"primary",loading:t.loadIng>0},on:{click:t.handleSubmit}},[t._v(t._s(t.$L(t.id>0?"\u4FEE\u6539":"\u63D0\u4EA4")))])],1)],1)},p=[];const c=()=>o(()=>import("./TEditor.a1d21399.js"),["js/build/TEditor.a1d21399.js","js/build/app.feefc813.js","js/build/app.961ba03c.css","js/build/ImgUpload.e60c7ecf.js"]),h={name:"ReportEdit",components:{TEditor:c,UserInput:l},props:{id:{default:0}},data(){return{loadIng:0,receiveLoad:0,reportData:{sign:"",title:"",content:"",type:"weekly",receive:[],id:0,offset:0},prevCycleText:this.$L("\u4E0A\u4E00\u5468"),nextCycleText:this.$L("\u4E0B\u4E00\u5468")}},watch:{id:{handler(t){t>0?this.getDetail(t):(this.reportData.offset=0,this.reportData.type="weekly",this.reportData.receive=[],this.getTemplate())},immediate:!0}},mounted(){},methods:{handleSubmit(){this.id===0&&this.reportData.id>0?$A.modalConfirm({title:"\u8986\u76D6\u63D0\u4EA4",content:"\u4F60\u5DF2\u63D0\u4EA4\u8FC7\u6B64\u65E5\u671F\u7684\u62A5\u544A\uFF0C\u662F\u5426\u8986\u76D6\u63D0\u4EA4\uFF1F",onOk:()=>{this.doSubmit()}}):this.doSubmit()},doSubmit(){this.loadIng++,this.$store.dispatch("call",{url:"report/store",data:this.reportData,method:"post"}).then(({data:t,msg:r})=>{this.reportData.offset=0,this.reportData.type="weekly",this.reportData.receive=[],this.getTemplate(),!this.$isSubElectron&&$A.messageSuccess(r),this.$emit("saveSuccess",{data:t,msg:r})}).catch(({msg:t})=>{$A.messageError(t)}).finally(t=>{this.loadIng--})},getTemplate(){this.loadIng++,this.$store.dispatch("call",{url:"report/template",data:{type:this.reportData.type,offset:this.reportData.offset,id:this.id}}).then(({data:t})=>{t.id?(this.reportData.id=t.id,this.id>0?this.getDetail(t.id):(this.reportData.sign=t.sign,this.reportData.title=t.title,this.reportData.content=t.content)):(this.reportData.id=0,this.reportData.sign=t.sign,this.reportData.title=t.title,this.reportData.content=t.content)}).catch(({msg:t})=>{$A.messageError(t)}).finally(t=>{this.loadIng--})},typeChange(t){this.reportData.offset=0,t==="weekly"?(this.prevCycleText=this.$L("\u4E0A\u4E00\u5468"),this.nextCycleText=this.$L("\u4E0B\u4E00\u5468")):(this.prevCycleText=this.$L("\u4E0A\u4E00\u5929"),this.nextCycleText=this.$L("\u4E0B\u4E00\u5929")),this.getTemplate()},getDetail(t){this.$store.dispatch("call",{url:"report/detail",data:{id:t}}).then(({data:r})=>{this.reportData.title=r.title,this.reportData.content=r.content,this.reportData.receive=r.receives_user.map(({userid:e})=>e),this.reportData.type=r.type_val,this.reportData.id=t}).catch(({msg:r})=>{$A.messageError(r)})},prevCycle(){this.reportData.offset-=1,this.reReportData(),this.getTemplate()},nextCycle(){this.reportData.offset<0&&(this.reportData.offset+=1),this.reReportData(),this.getTemplate()},getLastSubmitter(){setTimeout(t=>{this.receiveLoad++},300),this.$store.dispatch("call",{url:"report/last_submitter"}).then(({data:t})=>{this.reportData.receive=t}).catch(({msg:t})=>{$A.messageError(t)}).finally(t=>{this.receiveLoad--})},reReportData(){this.reportData.title="",this.reportData.content="",this.reportData.receive=[],this.reportData.id=0}}},i={};var d=s(h,n,p,!1,m,null,null,null);function m(t){for(let r in i)this[r]=i[r]}var f=function(){return d.exports}();export{f as R}; diff --git a/public/js/build/TEditor.27348ee4.js b/public/js/build/TEditor.a1d21399.js similarity index 99% rename from public/js/build/TEditor.27348ee4.js rename to public/js/build/TEditor.a1d21399.js index eb4a3f603..f3f3fa456 100644 --- a/public/js/build/TEditor.27348ee4.js +++ b/public/js/build/TEditor.a1d21399.js @@ -1,4 +1,4 @@ -import{e as PC,m as a2,a as IC,n as i2}from"./app.90cb6e79.js";import{I as o2}from"./ImgUpload.466e5bce.js";var FC={exports:{}};(function(V){(function(){var Ee=function(e){if(e===null)return"null";if(e===void 0)return"undefined";var t=typeof e;return t==="object"&&(Array.prototype.isPrototypeOf(e)||e.constructor&&e.constructor.name==="Array")?"array":t==="object"&&(String.prototype.isPrototypeOf(e)||e.constructor&&e.constructor.name==="String")?"string":t},be=function(e){return["undefined","boolean","number","string","function","xml","null"].indexOf(e)!==-1},he=function(e,t){var n=Array.prototype.slice.call(e);return n.sort(t)},Ke=function(e,t){return ht(function(n,r){return e.eq(t(n),t(r))})},ht=function(e){return{eq:e}},Qt=ht(function(e,t){return e===t}),Qr=Qt,Ka=function(e){return ht(function(t,n){if(t.length!==n.length)return!1;for(var r=t.length,a=0;a-1},bt=function(e,t){for(var n=0,r=e.length;n=0;n--){var r=e[n];t(r,n)}},Yc=function(e,t){for(var n=[],r=[],a=0,i=e.length;a=0&&t=t.length&&e.substr(n,n+t.length)===t},d0=function(e,t){return Sr(e,t)?c0(e,t.length):e},yt=function(e,t){return e.indexOf(t)!==-1},Sr=function(e,t){return v0(e,t,0)},cs=function(e){return function(t){return t.replace(e,"")}},vs=cs(/^\s+|\s+$/g),m0=cs(/^\s+/g),uv=cs(/\s+$/g),Gi=function(e){return e.length>0},sv=function(e){return!Gi(e)},ds=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,Pn=function(e){return function(t){return yt(t,e)}},p0=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(e){return yt(e,"edge/")&&yt(e,"chrome")&&yt(e,"safari")&&yt(e,"applewebkit")}},{name:"Chrome",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,ds],search:function(e){return yt(e,"chrome")&&!yt(e,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(e){return yt(e,"msie")||yt(e,"trident")}},{name:"Opera",versionRegexes:[ds,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:Pn("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:Pn("firefox")},{name:"Safari",versionRegexes:[ds,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(e){return(yt(e,"safari")||yt(e,"mobile/"))&&yt(e,"applewebkit")}}],g0=[{name:"Windows",search:Pn("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(e){return yt(e,"iphone")||yt(e,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:Pn("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:Pn("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:Pn("linux"),versionRegexes:[]},{name:"Solaris",search:Pn("sunos"),versionRegexes:[]},{name:"FreeBSD",search:Pn("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:Pn("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],fv={browsers:X(p0),oses:X(g0)},lv="Edge",cv="Chrome",vv="IE",dv="Opera",mv="Firefox",pv="Safari",h0=function(){return gv({current:void 0,version:Za.unknown()})},gv=function(e){var t=e.current,n=e.version,r=function(a){return function(){return t===a}};return{current:t,version:n,isEdge:r(lv),isChrome:r(cv),isIE:r(vv),isOpera:r(dv),isFirefox:r(mv),isSafari:r(pv)}},hv={unknown:h0,nu:gv,edge:X(lv),chrome:X(cv),ie:X(vv),opera:X(dv),firefox:X(mv),safari:X(pv)},bv="Windows",yv="iOS",Cv="Android",wv="Linux",Sv="OSX",Ev="Solaris",kv="FreeBSD",xv="ChromeOS",b0=function(){return Nv({current:void 0,version:Za.unknown()})},Nv=function(e){var t=e.current,n=e.version,r=function(a){return function(){return t===a}};return{current:t,version:n,isWindows:r(bv),isiOS:r(yv),isAndroid:r(Cv),isOSX:r(Sv),isLinux:r(wv),isSolaris:r(Ev),isFreeBSD:r(kv),isChromeOS:r(xv)}},Tv={unknown:b0,nu:Nv,windows:X(bv),ios:X(yv),android:X(Cv),linux:X(wv),osx:X(Sv),solaris:X(Ev),freebsd:X(kv),chromeos:X(xv)},y0=function(e,t,n){var r=fv.browsers(),a=fv.oses(),i=t.bind(function(s){return s0(r,s)}).orThunk(function(){return f0(r,e)}).fold(hv.unknown,hv.nu),o=l0(a,e).fold(Tv.unknown,Tv.nu),u=a0(o,i,e,n);return{browser:i,os:o,deviceType:u}},C0={detect:y0},w0=function(e){return window.matchMedia(e).matches},S0=fs(function(){return C0.detect(navigator.userAgent,b.from(navigator.userAgentData),w0)}),qt=function(){return S0()},Av=navigator.userAgent,ms=qt(),Ct=ms.browser,It=ms.os,pn=ms.deviceType,E0=/WebKit/.test(Av)&&!Ct.isEdge(),k0="FormData"in window&&"FileReader"in window&&"URL"in window&&!!URL.createObjectURL,x0=Av.indexOf("Windows Phone")!==-1,se={opera:Ct.isOpera(),webkit:E0,ie:Ct.isIE()||Ct.isEdge()?Ct.version.major:!1,gecko:Ct.isFirefox(),mac:It.isOSX()||It.isiOS(),iOS:pn.isiPad()||pn.isiPhone(),android:It.isAndroid(),contentEditable:!0,transparentSrc:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",caretAfter:!0,range:window.getSelection&&"Range"in window,documentMode:Ct.isIE()?document.documentMode||7:10,fileApi:k0,ceFalse:!0,cacheSuffix:null,container:null,experimentalShadowDom:!1,canHaveCSP:!Ct.isIE(),desktop:pn.isDesktop(),windowsPhone:x0,browser:{current:Ct.current,version:Ct.version,isChrome:Ct.isChrome,isEdge:Ct.isEdge,isFirefox:Ct.isFirefox,isIE:Ct.isIE,isOpera:Ct.isOpera,isSafari:Ct.isSafari},os:{current:It.current,version:It.version,isAndroid:It.isAndroid,isChromeOS:It.isChromeOS,isFreeBSD:It.isFreeBSD,isiOS:It.isiOS,isLinux:It.isLinux,isOSX:It.isOSX,isSolaris:It.isSolaris,isWindows:It.isWindows},deviceType:{isDesktop:pn.isDesktop,isiPad:pn.isiPad,isiPhone:pn.isiPhone,isPhone:pn.isPhone,isTablet:pn.isTablet,isTouch:pn.isTouch,isWebView:pn.isWebView}},N0=/^\s*|\s*$/g,Rv=function(e){return e==null?"":(""+e).replace(N0,"")},Bv=function(e,t){return t?t==="array"&&us(e)?!0:typeof e===t:e!==void 0},T0=function(e,t,n){var r;for(e=e||[],t=t||",",typeof e=="string"&&(e=e.split(t)),n=n||{},r=e.length;r--;)n[e[r]]={};return n},A0=de,R0=function(e,t,n){var r=this,a,i,o,u=0;e=/^((static) )?([\w.]+)(:([\w.]+))?/.exec(e);var s=e[3].match(/(^|\.)(\w+)$/i)[2],f=r.createNS(e[3].replace(/\.\w+$/,""),n);if(!f[s]){if(e[2]==="static"){f[s]=t,this.onCreate&&this.onCreate(e[2],e[3],f[s]);return}t[s]||(t[s]=function(){},u=1),f[s]=t[s],r.extend(f[s].prototype,t),e[5]&&(a=r.resolve(e[5]).prototype,i=e[5].match(/\.(\w+)$/i)[1],o=f[s],u?f[s]=function(){return a[i].apply(this,arguments)}:f[s]=function(){return this.parent=a[i],o.apply(this,arguments)},f[s].prototype[s]=f[s],r.each(a,function(l,c){f[s].prototype[c]=a[c]}),r.each(t,function(l,c){a[c]?f[s].prototype[c]=function(){return this.parent=a[c],l.apply(this,arguments)}:c!==s&&(f[s].prototype[c]=l)})),r.each(t.static,function(l,c){f[s][c]=l})}},B0=function(e){for(var t=[],n=1;n1)throw console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return Ja(r.childNodes[0])},$0=function(e,t){var n=t||document,r=n.createElement(e);return Ja(r)},L0=function(e,t){var n=t||document,r=n.createTextNode(e);return Ja(r)},Ja=function(e){if(e==null)throw new Error("Node cannot be null or undefined");return{dom:e}},F0=function(e,t,n){return b.from(e.dom.elementFromPoint(t,n)).map(Ja)},k={fromHtml:I0,fromTag:$0,fromText:L0,fromDom:Ja,fromPoint:F0},Dv=function(e,t){var n=[],r=function(i){return n.push(i),t(i)},a=t(e);do a=a.bind(r);while(a.isSome());return n},M0=function(e,t,n){return(e.compareDocumentPosition(t)&n)!==0},U0=function(e,t){return M0(e,t,Node.DOCUMENT_POSITION_CONTAINED_BY)},z0=8,Ov=9,Pv=11,ps=1,H0=3,aa=function(e,t){var n=e.dom;if(n.nodeType!==ps)return!1;var r=n;if(r.matches!==void 0)return r.matches(t);if(r.msMatchesSelector!==void 0)return r.msMatchesSelector(t);if(r.webkitMatchesSelector!==void 0)return r.webkitMatchesSelector(t);if(r.mozMatchesSelector!==void 0)return r.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")},Iv=function(e){return e.nodeType!==ps&&e.nodeType!==Ov&&e.nodeType!==Pv||e.childElementCount===0},V0=function(e,t){var n=t===void 0?document:t.dom;return Iv(n)?[]:De(n.querySelectorAll(e),k.fromDom)},q0=function(e,t){var n=t===void 0?document:t.dom;return Iv(n)?b.none():b.from(n.querySelector(e)).map(k.fromDom)},Te=function(e,t){return e.dom===t.dom},W0=function(e,t){var n=e.dom,r=t.dom;return n===r?!1:n.contains(r)},j0=function(e,t){return U0(e.dom,t.dom)},Wn=function(e,t){return qt().browser.isIE()?j0(e,t):W0(e,t)};typeof window!="undefined"||Function("return this;")();var je=function(e){var t=e.dom.nodeName;return t.toLowerCase()},$v=function(e){return e.dom.nodeType},Xi=function(e){return function(t){return $v(t)===e}},K0=function(e){return $v(e)===z0||je(e)==="#comment"},Jt=Xi(ps),Wt=Xi(H0),G0=Xi(Ov),X0=Xi(Pv),Y0=function(e){return function(t){return Jt(t)&&je(t)===e}},Lv=function(e){return k.fromDom(e.dom.ownerDocument)},ia=function(e){return G0(e)?e:Lv(e)},Q0=function(e){return k.fromDom(ia(e).dom.documentElement)},Fv=function(e){return k.fromDom(ia(e).dom.defaultView)},en=function(e){return b.from(e.dom.parentNode).map(k.fromDom)},Z0=function(e,t){for(var n=Oe(t)?t:Re,r=e.dom,a=[];r.parentNode!==null&&r.parentNode!==void 0;){var i=r.parentNode,o=k.fromDom(i);if(a.push(o),n(o)===!0)break;r=i}return a},J0=function(e){var t=function(n){return ve(n,function(r){return!Te(e,r)})};return en(e).map(jt).map(t).getOr([])},Er=function(e){return b.from(e.dom.previousSibling).map(k.fromDom)},ei=function(e){return b.from(e.dom.nextSibling).map(k.fromDom)},Mv=function(e){return ji(Dv(e,Er))},Uv=function(e){return Dv(e,ei)},jt=function(e){return De(e.dom.childNodes,k.fromDom)},Yi=function(e,t){var n=e.dom.childNodes;return b.from(n[t]).map(k.fromDom)},zv=function(e){return Yi(e,0)},gs=function(e){return Yi(e,e.dom.childNodes.length-1)},Hv=function(e){return e.dom.childNodes.length},ew=function(e){var t=e.dom.head;if(t==null)throw new Error("Head is not available yet");return k.fromDom(t)},Vv=function(e){return X0(e)&&Ne(e.dom.host)},qv=Oe(Element.prototype.attachShadow)&&Oe(Node.prototype.getRootNode),tw=X(qv),kr=qv?function(e){return k.fromDom(e.dom.getRootNode())}:ia,hs=function(e){return Vv(e)?e:ew(ia(e))},nw=function(e){var t=kr(e);return Vv(t)?b.some(t):b.none()},rw=function(e){return k.fromDom(e.dom.host)},aw=function(e){if(tw()&&Ne(e.target)){var t=k.fromDom(e.target);if(Jt(t)&&iw(t)&&e.composed&&e.composedPath){var n=e.composedPath();if(n)return Pt(n)}}return b.from(e.target)},iw=function(e){return Ne(e.dom.shadowRoot)},tn=function(e,t){var n=en(e);n.each(function(r){r.dom.insertBefore(t.dom,e.dom)})},ti=function(e,t){var n=ei(e);n.fold(function(){var r=en(e);r.each(function(a){at(a,t)})},function(r){tn(r,t)})},Wv=function(e,t){var n=zv(e);n.fold(function(){at(e,t)},function(r){e.dom.insertBefore(t.dom,r.dom)})},at=function(e,t){e.dom.appendChild(t.dom)},ow=function(e,t){tn(e,t),at(t,e)},uw=function(e,t){Y(t,function(n){tn(e,n)})},Qi=function(e,t){Y(t,function(n){at(e,n)})},bs=function(e){e.dom.textContent="",Y(jt(e),function(t){tt(t)})},tt=function(e){var t=e.dom;t.parentNode!==null&&t.parentNode.removeChild(t)},jv=function(e){var t=jt(e);t.length>0&&uw(e,t),tt(e)},ni=function(e){var t=Wt(e)?e.dom.parentNode:e.dom;if(t==null||t.ownerDocument===null)return!1;var n=t.ownerDocument;return nw(k.fromDom(t)).fold(function(){return n.body.contains(t)},Kc(ni,rw))},Kv=function(e,t){var n=function(r,a){return Kv(e+r,t+a)};return{left:e,top:t,translate:n}},oa=Kv,sw=function(e){var t=e.getBoundingClientRect();return oa(t.left,t.top)},Zi=function(e,t){return e!==void 0?e:t!==void 0?t:0},fw=function(e){var t=e.dom.ownerDocument,n=t.body,r=t.defaultView,a=t.documentElement;if(n===e.dom)return oa(n.offsetLeft,n.offsetTop);var i=Zi(r==null?void 0:r.pageYOffset,a.scrollTop),o=Zi(r==null?void 0:r.pageXOffset,a.scrollLeft),u=Zi(a.clientTop,n.clientTop),s=Zi(a.clientLeft,n.clientLeft);return ys(e).translate(o-s,i-u)},ys=function(e){var t=e.dom,n=t.ownerDocument,r=n.body;return r===t?oa(r.offsetLeft,r.offsetTop):ni(e)?sw(t):oa(0,0)},Cs=function(e){var t=e!==void 0?e.dom:document,n=t.body.scrollLeft||t.documentElement.scrollLeft,r=t.body.scrollTop||t.documentElement.scrollTop;return oa(n,r)},Gv=function(e,t,n){var r=n!==void 0?n.dom:document,a=r.defaultView;a&&a.scrollTo(e,t)},Xv=function(e,t){var n=qt().browser.isSafari();n&&Oe(e.dom.scrollIntoViewIfNeeded)?e.dom.scrollIntoViewIfNeeded(!1):e.dom.scrollIntoView(t)},lw=function(e){var t=e===void 0?window:e;return qt().browser.isFirefox()?b.none():b.from(t.visualViewport)},Yv=function(e,t,n,r){return{x:e,y:t,width:n,height:r,right:e+n,bottom:t+r}},Qv=function(e){var t=e===void 0?window:e,n=t.document,r=Cs(k.fromDom(n));return lw(t).fold(function(){var a=t.document.documentElement,i=a.clientWidth,o=a.clientHeight;return Yv(r.left,r.top,i,o)},function(a){return Yv(Math.max(a.pageLeft,r.left),Math.max(a.pageTop,r.top),a.width,a.height)})},ri=function(e){return function(t){return!!t&&t.nodeType===e}},Ji=function(e){return!!e&&!Object.getPrototypeOf(e)},ae=ri(1),Kt=function(e){var t=e.map(function(n){return n.toLowerCase()});return function(n){if(n&&n.nodeName){var r=n.nodeName.toLowerCase();return Je(t,r)}return!1}},eo=function(e,t){var n=t.toLowerCase().split(" ");return function(r){if(ae(r))for(var a=0;a0})},rd=function(e){var t={},n=e.dom;if(ro(n))for(var r=0;r=e.length&&n(r)}};e.length===0?n([]):Y(e,function(o,u){o.get(i(u))})})},Dw=function(e){return _w(e,sd.nu)},fa=function(e){var t=function(c){return fa(e)},n=function(c){return fa(e)},r=function(c){return fa(c(e))},a=function(c){return fa(e)},i=function(c){c(e)},o=function(c){return c(e)},u=function(c,v){return v(e)},s=function(c){return c(e)},f=function(c){return c(e)},l=function(){return b.some(e)};return{isValue:qe,isError:Re,getOr:X(e),getOrThunk:X(e),getOrDie:X(e),or:t,orThunk:n,fold:u,map:r,mapError:a,each:i,bind:o,exists:s,forall:f,toOptional:l}},ii=function(e){var t=function(f){return f()},n=function(){return zC(String(e))()},r=Tt,a=function(f){return f()},i=function(f){return ii(e)},o=function(f){return ii(f(e))},u=function(f){return ii(e)},s=function(f,l){return f(e)};return{isValue:Re,isError:qe,getOr:Tt,getOrThunk:t,getOrDie:n,or:r,orThunk:a,fold:s,map:i,mapError:o,each:le,bind:u,exists:Re,forall:qe,toOptional:b.none}},Ow=function(e,t){return e.fold(function(){return ii(t)},fa)},fd={value:fa,error:ii,fromOption:Ow},Pw=function(e){if(!Vt(e))throw new Error("cases must be an array");if(e.length===0)throw new Error("there must be at least one case");var t=[],n={};return Y(e,function(r,a){var i=ta(r);if(i.length!==1)throw new Error("one and only one name per case");var o=i[0],u=r[o];if(n[o]!==void 0)throw new Error("duplicate key detected:"+o);if(o==="cata")throw new Error("cannot have a case named cata (sorry)");if(!Vt(u))throw new Error("case arguments must be an array");t.push(o),n[o]=function(){for(var s=[],f=0;f-1},bt=function(e,t){for(var n=0,r=e.length;n=0;n--){var r=e[n];t(r,n)}},Yc=function(e,t){for(var n=[],r=[],a=0,i=e.length;a=0&&t=t.length&&e.substr(n,n+t.length)===t},d0=function(e,t){return Sr(e,t)?c0(e,t.length):e},yt=function(e,t){return e.indexOf(t)!==-1},Sr=function(e,t){return v0(e,t,0)},cs=function(e){return function(t){return t.replace(e,"")}},vs=cs(/^\s+|\s+$/g),m0=cs(/^\s+/g),uv=cs(/\s+$/g),Gi=function(e){return e.length>0},sv=function(e){return!Gi(e)},ds=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,Pn=function(e){return function(t){return yt(t,e)}},p0=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(e){return yt(e,"edge/")&&yt(e,"chrome")&&yt(e,"safari")&&yt(e,"applewebkit")}},{name:"Chrome",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,ds],search:function(e){return yt(e,"chrome")&&!yt(e,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(e){return yt(e,"msie")||yt(e,"trident")}},{name:"Opera",versionRegexes:[ds,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:Pn("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:Pn("firefox")},{name:"Safari",versionRegexes:[ds,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(e){return(yt(e,"safari")||yt(e,"mobile/"))&&yt(e,"applewebkit")}}],g0=[{name:"Windows",search:Pn("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(e){return yt(e,"iphone")||yt(e,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:Pn("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:Pn("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:Pn("linux"),versionRegexes:[]},{name:"Solaris",search:Pn("sunos"),versionRegexes:[]},{name:"FreeBSD",search:Pn("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:Pn("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],fv={browsers:X(p0),oses:X(g0)},lv="Edge",cv="Chrome",vv="IE",dv="Opera",mv="Firefox",pv="Safari",h0=function(){return gv({current:void 0,version:Za.unknown()})},gv=function(e){var t=e.current,n=e.version,r=function(a){return function(){return t===a}};return{current:t,version:n,isEdge:r(lv),isChrome:r(cv),isIE:r(vv),isOpera:r(dv),isFirefox:r(mv),isSafari:r(pv)}},hv={unknown:h0,nu:gv,edge:X(lv),chrome:X(cv),ie:X(vv),opera:X(dv),firefox:X(mv),safari:X(pv)},bv="Windows",yv="iOS",Cv="Android",wv="Linux",Sv="OSX",Ev="Solaris",kv="FreeBSD",xv="ChromeOS",b0=function(){return Nv({current:void 0,version:Za.unknown()})},Nv=function(e){var t=e.current,n=e.version,r=function(a){return function(){return t===a}};return{current:t,version:n,isWindows:r(bv),isiOS:r(yv),isAndroid:r(Cv),isOSX:r(Sv),isLinux:r(wv),isSolaris:r(Ev),isFreeBSD:r(kv),isChromeOS:r(xv)}},Tv={unknown:b0,nu:Nv,windows:X(bv),ios:X(yv),android:X(Cv),linux:X(wv),osx:X(Sv),solaris:X(Ev),freebsd:X(kv),chromeos:X(xv)},y0=function(e,t,n){var r=fv.browsers(),a=fv.oses(),i=t.bind(function(s){return s0(r,s)}).orThunk(function(){return f0(r,e)}).fold(hv.unknown,hv.nu),o=l0(a,e).fold(Tv.unknown,Tv.nu),u=a0(o,i,e,n);return{browser:i,os:o,deviceType:u}},C0={detect:y0},w0=function(e){return window.matchMedia(e).matches},S0=fs(function(){return C0.detect(navigator.userAgent,b.from(navigator.userAgentData),w0)}),qt=function(){return S0()},Av=navigator.userAgent,ms=qt(),Ct=ms.browser,It=ms.os,pn=ms.deviceType,E0=/WebKit/.test(Av)&&!Ct.isEdge(),k0="FormData"in window&&"FileReader"in window&&"URL"in window&&!!URL.createObjectURL,x0=Av.indexOf("Windows Phone")!==-1,se={opera:Ct.isOpera(),webkit:E0,ie:Ct.isIE()||Ct.isEdge()?Ct.version.major:!1,gecko:Ct.isFirefox(),mac:It.isOSX()||It.isiOS(),iOS:pn.isiPad()||pn.isiPhone(),android:It.isAndroid(),contentEditable:!0,transparentSrc:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",caretAfter:!0,range:window.getSelection&&"Range"in window,documentMode:Ct.isIE()?document.documentMode||7:10,fileApi:k0,ceFalse:!0,cacheSuffix:null,container:null,experimentalShadowDom:!1,canHaveCSP:!Ct.isIE(),desktop:pn.isDesktop(),windowsPhone:x0,browser:{current:Ct.current,version:Ct.version,isChrome:Ct.isChrome,isEdge:Ct.isEdge,isFirefox:Ct.isFirefox,isIE:Ct.isIE,isOpera:Ct.isOpera,isSafari:Ct.isSafari},os:{current:It.current,version:It.version,isAndroid:It.isAndroid,isChromeOS:It.isChromeOS,isFreeBSD:It.isFreeBSD,isiOS:It.isiOS,isLinux:It.isLinux,isOSX:It.isOSX,isSolaris:It.isSolaris,isWindows:It.isWindows},deviceType:{isDesktop:pn.isDesktop,isiPad:pn.isiPad,isiPhone:pn.isiPhone,isPhone:pn.isPhone,isTablet:pn.isTablet,isTouch:pn.isTouch,isWebView:pn.isWebView}},N0=/^\s*|\s*$/g,Rv=function(e){return e==null?"":(""+e).replace(N0,"")},Bv=function(e,t){return t?t==="array"&&us(e)?!0:typeof e===t:e!==void 0},T0=function(e,t,n){var r;for(e=e||[],t=t||",",typeof e=="string"&&(e=e.split(t)),n=n||{},r=e.length;r--;)n[e[r]]={};return n},A0=de,R0=function(e,t,n){var r=this,a,i,o,u=0;e=/^((static) )?([\w.]+)(:([\w.]+))?/.exec(e);var s=e[3].match(/(^|\.)(\w+)$/i)[2],f=r.createNS(e[3].replace(/\.\w+$/,""),n);if(!f[s]){if(e[2]==="static"){f[s]=t,this.onCreate&&this.onCreate(e[2],e[3],f[s]);return}t[s]||(t[s]=function(){},u=1),f[s]=t[s],r.extend(f[s].prototype,t),e[5]&&(a=r.resolve(e[5]).prototype,i=e[5].match(/\.(\w+)$/i)[1],o=f[s],u?f[s]=function(){return a[i].apply(this,arguments)}:f[s]=function(){return this.parent=a[i],o.apply(this,arguments)},f[s].prototype[s]=f[s],r.each(a,function(l,c){f[s].prototype[c]=a[c]}),r.each(t,function(l,c){a[c]?f[s].prototype[c]=function(){return this.parent=a[c],l.apply(this,arguments)}:c!==s&&(f[s].prototype[c]=l)})),r.each(t.static,function(l,c){f[s][c]=l})}},B0=function(e){for(var t=[],n=1;n1)throw console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return Ja(r.childNodes[0])},$0=function(e,t){var n=t||document,r=n.createElement(e);return Ja(r)},L0=function(e,t){var n=t||document,r=n.createTextNode(e);return Ja(r)},Ja=function(e){if(e==null)throw new Error("Node cannot be null or undefined");return{dom:e}},F0=function(e,t,n){return b.from(e.dom.elementFromPoint(t,n)).map(Ja)},k={fromHtml:I0,fromTag:$0,fromText:L0,fromDom:Ja,fromPoint:F0},Dv=function(e,t){var n=[],r=function(i){return n.push(i),t(i)},a=t(e);do a=a.bind(r);while(a.isSome());return n},M0=function(e,t,n){return(e.compareDocumentPosition(t)&n)!==0},U0=function(e,t){return M0(e,t,Node.DOCUMENT_POSITION_CONTAINED_BY)},z0=8,Ov=9,Pv=11,ps=1,H0=3,aa=function(e,t){var n=e.dom;if(n.nodeType!==ps)return!1;var r=n;if(r.matches!==void 0)return r.matches(t);if(r.msMatchesSelector!==void 0)return r.msMatchesSelector(t);if(r.webkitMatchesSelector!==void 0)return r.webkitMatchesSelector(t);if(r.mozMatchesSelector!==void 0)return r.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")},Iv=function(e){return e.nodeType!==ps&&e.nodeType!==Ov&&e.nodeType!==Pv||e.childElementCount===0},V0=function(e,t){var n=t===void 0?document:t.dom;return Iv(n)?[]:De(n.querySelectorAll(e),k.fromDom)},q0=function(e,t){var n=t===void 0?document:t.dom;return Iv(n)?b.none():b.from(n.querySelector(e)).map(k.fromDom)},Te=function(e,t){return e.dom===t.dom},W0=function(e,t){var n=e.dom,r=t.dom;return n===r?!1:n.contains(r)},j0=function(e,t){return U0(e.dom,t.dom)},Wn=function(e,t){return qt().browser.isIE()?j0(e,t):W0(e,t)};typeof window!="undefined"||Function("return this;")();var je=function(e){var t=e.dom.nodeName;return t.toLowerCase()},$v=function(e){return e.dom.nodeType},Xi=function(e){return function(t){return $v(t)===e}},K0=function(e){return $v(e)===z0||je(e)==="#comment"},Jt=Xi(ps),Wt=Xi(H0),G0=Xi(Ov),X0=Xi(Pv),Y0=function(e){return function(t){return Jt(t)&&je(t)===e}},Lv=function(e){return k.fromDom(e.dom.ownerDocument)},ia=function(e){return G0(e)?e:Lv(e)},Q0=function(e){return k.fromDom(ia(e).dom.documentElement)},Fv=function(e){return k.fromDom(ia(e).dom.defaultView)},en=function(e){return b.from(e.dom.parentNode).map(k.fromDom)},Z0=function(e,t){for(var n=Oe(t)?t:Re,r=e.dom,a=[];r.parentNode!==null&&r.parentNode!==void 0;){var i=r.parentNode,o=k.fromDom(i);if(a.push(o),n(o)===!0)break;r=i}return a},J0=function(e){var t=function(n){return ve(n,function(r){return!Te(e,r)})};return en(e).map(jt).map(t).getOr([])},Er=function(e){return b.from(e.dom.previousSibling).map(k.fromDom)},ei=function(e){return b.from(e.dom.nextSibling).map(k.fromDom)},Mv=function(e){return ji(Dv(e,Er))},Uv=function(e){return Dv(e,ei)},jt=function(e){return De(e.dom.childNodes,k.fromDom)},Yi=function(e,t){var n=e.dom.childNodes;return b.from(n[t]).map(k.fromDom)},zv=function(e){return Yi(e,0)},gs=function(e){return Yi(e,e.dom.childNodes.length-1)},Hv=function(e){return e.dom.childNodes.length},ew=function(e){var t=e.dom.head;if(t==null)throw new Error("Head is not available yet");return k.fromDom(t)},Vv=function(e){return X0(e)&&Ne(e.dom.host)},qv=Oe(Element.prototype.attachShadow)&&Oe(Node.prototype.getRootNode),tw=X(qv),kr=qv?function(e){return k.fromDom(e.dom.getRootNode())}:ia,hs=function(e){return Vv(e)?e:ew(ia(e))},nw=function(e){var t=kr(e);return Vv(t)?b.some(t):b.none()},rw=function(e){return k.fromDom(e.dom.host)},aw=function(e){if(tw()&&Ne(e.target)){var t=k.fromDom(e.target);if(Jt(t)&&iw(t)&&e.composed&&e.composedPath){var n=e.composedPath();if(n)return Pt(n)}}return b.from(e.target)},iw=function(e){return Ne(e.dom.shadowRoot)},tn=function(e,t){var n=en(e);n.each(function(r){r.dom.insertBefore(t.dom,e.dom)})},ti=function(e,t){var n=ei(e);n.fold(function(){var r=en(e);r.each(function(a){at(a,t)})},function(r){tn(r,t)})},Wv=function(e,t){var n=zv(e);n.fold(function(){at(e,t)},function(r){e.dom.insertBefore(t.dom,r.dom)})},at=function(e,t){e.dom.appendChild(t.dom)},ow=function(e,t){tn(e,t),at(t,e)},uw=function(e,t){Y(t,function(n){tn(e,n)})},Qi=function(e,t){Y(t,function(n){at(e,n)})},bs=function(e){e.dom.textContent="",Y(jt(e),function(t){tt(t)})},tt=function(e){var t=e.dom;t.parentNode!==null&&t.parentNode.removeChild(t)},jv=function(e){var t=jt(e);t.length>0&&uw(e,t),tt(e)},ni=function(e){var t=Wt(e)?e.dom.parentNode:e.dom;if(t==null||t.ownerDocument===null)return!1;var n=t.ownerDocument;return nw(k.fromDom(t)).fold(function(){return n.body.contains(t)},Kc(ni,rw))},Kv=function(e,t){var n=function(r,a){return Kv(e+r,t+a)};return{left:e,top:t,translate:n}},oa=Kv,sw=function(e){var t=e.getBoundingClientRect();return oa(t.left,t.top)},Zi=function(e,t){return e!==void 0?e:t!==void 0?t:0},fw=function(e){var t=e.dom.ownerDocument,n=t.body,r=t.defaultView,a=t.documentElement;if(n===e.dom)return oa(n.offsetLeft,n.offsetTop);var i=Zi(r==null?void 0:r.pageYOffset,a.scrollTop),o=Zi(r==null?void 0:r.pageXOffset,a.scrollLeft),u=Zi(a.clientTop,n.clientTop),s=Zi(a.clientLeft,n.clientLeft);return ys(e).translate(o-s,i-u)},ys=function(e){var t=e.dom,n=t.ownerDocument,r=n.body;return r===t?oa(r.offsetLeft,r.offsetTop):ni(e)?sw(t):oa(0,0)},Cs=function(e){var t=e!==void 0?e.dom:document,n=t.body.scrollLeft||t.documentElement.scrollLeft,r=t.body.scrollTop||t.documentElement.scrollTop;return oa(n,r)},Gv=function(e,t,n){var r=n!==void 0?n.dom:document,a=r.defaultView;a&&a.scrollTo(e,t)},Xv=function(e,t){var n=qt().browser.isSafari();n&&Oe(e.dom.scrollIntoViewIfNeeded)?e.dom.scrollIntoViewIfNeeded(!1):e.dom.scrollIntoView(t)},lw=function(e){var t=e===void 0?window:e;return qt().browser.isFirefox()?b.none():b.from(t.visualViewport)},Yv=function(e,t,n,r){return{x:e,y:t,width:n,height:r,right:e+n,bottom:t+r}},Qv=function(e){var t=e===void 0?window:e,n=t.document,r=Cs(k.fromDom(n));return lw(t).fold(function(){var a=t.document.documentElement,i=a.clientWidth,o=a.clientHeight;return Yv(r.left,r.top,i,o)},function(a){return Yv(Math.max(a.pageLeft,r.left),Math.max(a.pageTop,r.top),a.width,a.height)})},ri=function(e){return function(t){return!!t&&t.nodeType===e}},Ji=function(e){return!!e&&!Object.getPrototypeOf(e)},ae=ri(1),Kt=function(e){var t=e.map(function(n){return n.toLowerCase()});return function(n){if(n&&n.nodeName){var r=n.nodeName.toLowerCase();return Je(t,r)}return!1}},eo=function(e,t){var n=t.toLowerCase().split(" ");return function(r){if(ae(r))for(var a=0;a0})},rd=function(e){var t={},n=e.dom;if(ro(n))for(var r=0;r=e.length&&n(r)}};e.length===0?n([]):Y(e,function(o,u){o.get(i(u))})})},Dw=function(e){return _w(e,sd.nu)},fa=function(e){var t=function(c){return fa(e)},n=function(c){return fa(e)},r=function(c){return fa(c(e))},a=function(c){return fa(e)},i=function(c){c(e)},o=function(c){return c(e)},u=function(c,v){return v(e)},s=function(c){return c(e)},f=function(c){return c(e)},l=function(){return b.some(e)};return{isValue:qe,isError:Re,getOr:X(e),getOrThunk:X(e),getOrDie:X(e),or:t,orThunk:n,fold:u,map:r,mapError:a,each:i,bind:o,exists:s,forall:f,toOptional:l}},ii=function(e){var t=function(f){return f()},n=function(){return zC(String(e))()},r=Tt,a=function(f){return f()},i=function(f){return ii(e)},o=function(f){return ii(f(e))},u=function(f){return ii(e)},s=function(f,l){return f(e)};return{isValue:Re,isError:qe,getOr:Tt,getOrThunk:t,getOrDie:n,or:r,orThunk:a,fold:s,map:i,mapError:o,each:le,bind:u,exists:Re,forall:qe,toOptional:b.none}},Ow=function(e,t){return e.fold(function(){return ii(t)},fa)},fd={value:fa,error:ii,fromOption:Ow},Pw=function(e){if(!Vt(e))throw new Error("cases must be an array");if(e.length===0)throw new Error("there must be at least one case");var t=[],n={};return Y(e,function(r,a){var i=ta(r);if(i.length!==1)throw new Error("one and only one name per case");var o=i[0],u=r[o];if(n[o]!==void 0)throw new Error("duplicate key detected:"+o);if(o==="cata")throw new Error("cannot have a case named cata (sorry)");if(!Vt(u))throw new Error("case arguments must be an array");t.push(o),n[o]=function(){for(var s=[],f=0;f0?h(S.fail.map(ld)):y(S.pass.map(ld))})},m=function(g){var y=B._addCacheSuffix(g);We(r,y).each(function(h){var E=--h.count;E===0&&(delete r[y],f(h.id))})},p=function(g){Y(g,function(y){m(y)})};return{load:c,loadAll:d,unload:m,unloadAll:p,_setReferrerPolicy:u}},Uw=function(){var e=new WeakMap,t=function(n,r){var a=kr(n),i=a.dom;return b.from(e.get(i)).getOrThunk(function(){var o=md(i,r);return e.set(i,o),o})};return{forElement:t}},pd=Uw(),Ge=function(){function e(t,n){this.node=t,this.rootNode=n,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 e.prototype.current=function(){return this.node},e.prototype.next=function(t){return this.node=this.findSibling(this.node,"firstChild","nextSibling",t),this.node},e.prototype.prev=function(t){return this.node=this.findSibling(this.node,"lastChild","previousSibling",t),this.node},e.prototype.prev2=function(t){return this.node=this.findPreviousNode(this.node,"lastChild","previousSibling",t),this.node},e.prototype.findSibling=function(t,n,r,a){var i,o;if(t){if(!a&&t[n])return t[n];if(t!==this.rootNode){if(i=t[r],i)return i;for(o=t.parentNode;o&&o!==this.rootNode;o=o.parentNode)if(i=o[r],i)return i}}},e.prototype.findPreviousNode=function(t,n,r,a){var i,o,u;if(t){if(i=t[r],this.rootNode&&i===this.rootNode)return;if(i){if(!a){for(u=i[n];u;u=u[n])if(!u[n])return u}return i}if(o=t.parentNode,o&&o!==this.rootNode)return o}},e}(),zw=["article","aside","details","div","dt","figcaption","footer","form","fieldset","header","hgroup","html","main","nav","section","summary","body","p","dl","multicol","dd","figure","address","center","blockquote","h1","h2","h3","h4","h5","h6","listing","xmp","pre","plaintext","menu","dir","ul","ol","li","hr","table","tbody","thead","tfoot","th","tr","td","caption"],Hw=["td","th"],Vw=["thead","tbody","tfoot"],qw=["h1","h2","h3","h4","h5","h6","p","div","address","pre","form","blockquote","center","dir","fieldset","header","footer","article","section","hgroup","aside","nav","figure"],Ww=["h1","h2","h3","h4","h5","h6"],jw=["li","dd","dt"],Kw=["ul","ol","dl"],Gw=["pre","script","textarea","style"],Xn=function(e){var t;return function(n){return t=t||XC(e,qe),de(t,je(n))}},Xw=Xn(Ww),bn=Xn(zw),Yw=function(e){return je(e)==="table"},Bs=function(e){return Jt(e)&&!bn(e)},la=function(e){return Jt(e)&&je(e)==="br"},gd=Xn(qw),_s=Xn(Kw),ui=Xn(jw),Qw=Xn(Vw),uo=Xn(Hw),so=Xn(Gw),Zw=function(e,t,n){return io(e,t,n).isSome()},Ds="\uFEFF",At="\xA0",Jw=function(e){return e===Ds},eS=function(e){return e.replace(/\uFEFF/g,"")},nt=Ds,fo=Jw,Yn=eS,tS=ae,ca=Q,va=function(e){return ca(e)&&(e=e.parentNode),tS(e)&&e.hasAttribute("data-mce-caret")},da=function(e){return ca(e)&&fo(e.data)},$t=function(e){return va(e)||da(e)},hd=function(e){return e.firstChild!==e.lastChild||!Le(e.firstChild)},nS=function(e,t){var n=e.ownerDocument,r=n.createTextNode(nt),a=e.parentNode;if(t){var i=e.previousSibling;if(ca(i)){if($t(i))return i;if(co(i))return i.splitText(i.data.length-1)}a.insertBefore(r,e)}else{var i=e.nextSibling;if(ca(i)){if($t(i))return i;if(lo(i))return i.splitText(1),i}e.nextSibling?a.insertBefore(r,e.nextSibling):a.appendChild(r)}return r},Os=function(e){var t=e.container();return Q(t)?t.data.charAt(e.offset())===nt||e.isAtStart()&&da(t.previousSibling):!1},Ps=function(e){var t=e.container();return Q(t)?t.data.charAt(e.offset()-1)===nt||e.isAtEnd()&&da(t.nextSibling):!1},rS=function(){var e=document.createElement("br");return e.setAttribute("data-mce-bogus","1"),e},aS=function(e,t,n){var r=t.ownerDocument,a=r.createElement(e);a.setAttribute("data-mce-caret",n?"before":"after"),a.setAttribute("data-mce-bogus","all"),a.appendChild(rS());var i=t.parentNode;return n?i.insertBefore(a,t):t.nextSibling?i.insertBefore(a,t.nextSibling):i.appendChild(a),a},lo=function(e){return ca(e)&&e.data[0]===nt},co=function(e){return ca(e)&&e.data[e.data.length-1]===nt},iS=function(e){var t=e.getElementsByTagName("br"),n=t[t.length-1];xr(n)&&n.parentNode.removeChild(n)},Is=function(e){return e&&e.hasAttribute("data-mce-caret")?(iS(e),e.removeAttribute("data-mce-caret"),e.removeAttribute("data-mce-bogus"),e.removeAttribute("style"),e.removeAttribute("_moz_abspos"),e):null},bd=function(e){return va(e.startContainer)},yd=gn,oS=_e,uS=Le,sS=Q,fS=Kt(["script","style","textarea"]),Cd=Kt(["img","input","textarea","hr","iframe","video","audio","object","embed"]),lS=Kt(["table"]),cS=$t,yn=function(e){return cS(e)?!1:sS(e)?!fS(e.parentNode):Cd(e)||uS(e)||lS(e)||$s(e)},vS=function(e){return ae(e)&&e.getAttribute("unselectable")==="true"},$s=function(e){return vS(e)===!1&&oS(e)},dS=function(e,t){for(e=e.parentNode;e&&e!==t;e=e.parentNode){if($s(e))return!1;if(yd(e))return!0}return!0},mS=function(e){return $s(e)?Zt(mn(e.getElementsByTagName("*")),function(t,n){return t||yd(n)},!1)!==!0:!1},pS=function(e){return Cd(e)||mS(e)},vo=function(e,t){return yn(e)&&dS(e,t)},gS=/^[ \t\r\n]*$/,Nr=function(e){return gS.test(e)},hS=function(e,t){var n=k.fromDom(t),r=k.fromDom(e);return Zw(r,"pre,code",G(Te,n))},bS=function(e,t){return Q(e)&&Nr(e.data)&&hS(e,t)===!1},yS=function(e){return ae(e)&&e.nodeName==="A"&&!e.hasAttribute("href")&&(e.hasAttribute("name")||e.hasAttribute("id"))},mo=function(e,t){return yn(e)&&bS(e,t)===!1||yS(e)||CS(e)},CS=Zv("data-mce-bookmark"),wS=Zv("data-mce-bogus"),SS=cw("data-mce-bogus","all"),ES=function(e,t){var n=0;if(mo(e,e))return!1;var r=e.firstChild;if(!r)return!0;var a=new Ge(r,e);do{if(t){if(SS(r)){r=a.next(!0);continue}if(wS(r)){r=a.next();continue}}if(Le(r)){n++,r=a.next();continue}if(mo(r,e))return!1;r=a.next()}while(r);return n<=1},Xe=function(e,t){return t===void 0&&(t=!0),ES(e.dom,t)},kS=function(e){return e.nodeName.toLowerCase()==="span"},wd=function(e,t){return Ne(e)&&(mo(e,t)||Bs(k.fromDom(e)))},xS=function(e,t){var n=new Ge(e,t).prev(!1),r=new Ge(e,t).next(!1),a=Nt(n)||wd(n,t),i=Nt(r)||wd(r,t);return a&&i},Sd=function(e){return kS(e)&&e.getAttribute("data-mce-type")==="bookmark"},NS=function(e,t){return Q(e)&&e.data.length>0&&xS(e,t)},TS=function(e){return ae(e)?e.childNodes.length>0:!1},AS=function(e){return Es(e)||Ss(e)},Ls=function(e,t,n){var r=n||t;if(ae(t)&&Sd(t))return t;for(var a=t.childNodes,i=a.length-1;i>=0;i--)Ls(e,a[i],r);if(ae(t)){var o=t.childNodes;o.length===1&&Sd(o[0])&&t.parentNode.insertBefore(o[0],t)}return!AS(t)&&!mo(t,r)&&!TS(t)&&!NS(t,r)&&e.remove(t),t},RS=B.makeMap,po=/[&<>\"\u0060\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,go=/[<>&\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,BS=/[<>&\"\']/g,_S=/&#([a-z0-9]+);?|&([a-z0-9]+);/gi,DS={128:"\u20AC",130:"\u201A",131:"\u0192",132:"\u201E",133:"\u2026",134:"\u2020",135:"\u2021",136:"\u02C6",137:"\u2030",138:"\u0160",139:"\u2039",140:"\u0152",142:"\u017D",145:"\u2018",146:"\u2019",147:"\u201C",148:"\u201D",149:"\u2022",150:"\u2013",151:"\u2014",152:"\u02DC",153:"\u2122",154:"\u0161",155:"\u203A",156:"\u0153",158:"\u017E",159:"\u0178"},Tr={'"':""","'":"'","<":"<",">":">","&":"&","`":"`"},OS={"<":"<",">":">","&":"&",""":'"',"'":"'"},PS=function(e){var t=k.fromTag("div").dom;return t.innerHTML=e,t.textContent||t.innerText||e},Ed=function(e,t){var n,r,a,i={};if(e){for(e=e.split(","),t=t||10,n=0;n1?"&#"+((n.charCodeAt(0)-55296)*1024+(n.charCodeAt(1)-56320)+65536)+";":Tr[n]||"&#"+n.charCodeAt(0)+";"})},Ms=function(e,t,n){return n=n||Fs,e.replace(t?po:go,function(r){return Tr[r]||n[r]||r})},$S=function(e,t){var n=Ed(t)||Fs,r=function(o,u){return o.replace(u?po:go,function(s){return Tr[s]!==void 0?Tr[s]:n[s]!==void 0?n[s]:s.length>1?"&#"+((s.charCodeAt(0)-55296)*1024+(s.charCodeAt(1)-56320)+65536)+";":"&#"+s.charCodeAt(0)+";"})},a=function(o,u){return Ms(o,u,n)},i=RS(e.replace(/\+/g,","));return i.named&&i.numeric?r:i.named?t?a:Ms:i.numeric?xd:kd},LS=function(e){return e.replace(_S,function(t,n){return n?(n.charAt(0).toLowerCase()==="x"?n=parseInt(n.substr(1),16):n=parseInt(n,10),n>65535?(n-=65536,String.fromCharCode(55296+(n>>10),56320+(n&1023))):DS[n]||String.fromCharCode(n)):OS[t]||Fs[t]||PS(t)})},Qn={encodeRaw:kd,encodeAllRaw:IS,encodeNumeric:xd,encodeNamed:Ms,getEncodeFunc:$S,decode:LS},Zn={},FS={},ma=B.makeMap,ut=B.each,Us=B.extend,Nd=B.explode,MS=B.inArray,rt=function(e,t){return e=B.trim(e),e?e.split(t||" "):[]},Td=function(e,t){var n=ma(e," ",ma(e.toUpperCase()," "));return Us(n,t)},Ad=function(e){return Td("td th li dt dd figcaption caption details summary",e.getTextBlockElements())},US=function(e){var t={},n,r,a,i,o,u,s=function(l,c,v){var d,m,p,g=function(h,E){var S={},C,x;for(C=0,x=h.length;C
");return tn(n.element,r),Up(r,function(){return tt(r)})},pN=function(e){return Up(k.fromDom(e),le)},zp=function(e,t,n,r){hN(e,function(a,i){return gN(e,t,n,r)},n)},Hp=function(e,t,n,r,a){var i={elm:r.element.dom,alignToTop:a};if(!cN(e,i)){var o=Cs(t).top;n(t,o,r,a),vN(e,i)}},gN=function(e,t,n,r){var a=k.fromDom(e.getBody()),i=k.fromDom(e.getDoc());Sw(a);var o=mN(k.fromDom(n.startContainer),n.startOffset);Hp(e,i,t,o,r),o.cleanup()},Vp=function(e,t,n,r){var a=k.fromDom(e.getDoc());Hp(e,a,n,pN(t),r)},hN=function(e,t,n){var r=n.startContainer,a=n.startOffset,i=n.endContainer,o=n.endOffset;t(k.fromDom(r),k.fromDom(i));var u=e.dom.createRng();u.setStart(r,a),u.setEnd(i,o),e.selection.setRng(n)},Qf=function(e,t,n,r){var a=e.pos;if(n)Gv(a.left,a.top,r);else{var i=a.top-t+e.height;Gv(a.left,i,r)}},qp=function(e,t,n,r,a){var i=n+t,o=r.pos.top,u=r.bottom,s=u-o>=n;if(oi){var f=s?a!==!1:a===!0;Qf(r,n,f,e)}else u>i&&!s&&Qf(r,n,a===!0,e)},Wp=function(e,t,n,r){var a=e.dom.defaultView.innerHeight;qp(e,t,a,n,r)},jp=function(e,t,n,r){var a=e.dom.defaultView.innerHeight;qp(e,t,a,n,r);var i=lN(n.element),o=Qv(window);i.topo.bottom&&Xv(n.element,r===!0)},bN=function(e,t,n){return zp(e,Wp,t,n)},yN=function(e,t,n){return Vp(e,t,Wp,n)},CN=function(e,t,n){return zp(e,jp,t,n)},wN=function(e,t,n){return Vp(e,t,jp,n)},SN=function(e,t,n){var r=e.inline?yN:wN;r(e,t,n)},Ri=function(e,t,n){var r=e.inline?bN:CN;r(e,t,n)},EN=function(){return k.fromDom(document)},kN=function(e){return e.dom.focus()},Kp=function(e){var t=kr(e).dom;return e.dom===t.activeElement},Zf=function(e){return e===void 0&&(e=EN()),b.from(e.dom.activeElement).map(k.fromDom)},xN=function(e){return Zf(kr(e)).filter(function(t){return e.dom.contains(t.dom)})},NN=function(e,t,n,r){return{start:e,soffset:t,finish:n,foffset:r}},TN={create:NN},Jf=Gn.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),AN=function(e,t,n,r){return e.fold(t,n,r)},RN=function(e){return e.fold(Tt,Tt,Tt)},BN=Jf.before,_N=Jf.on,DN=Jf.after,ON={before:BN,on:_N,after:DN,cata:AN,getStart:RN},Ko=Gn.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),PN=function(e){return Ko.exact(e.start,e.soffset,e.finish,e.foffset)},IN=function(e){return e.match({domRange:function(t){return k.fromDom(t.startContainer)},relative:function(t,n){return ON.getStart(t)},exact:function(t,n,r,a){return t}})},$N=Ko.domRange,LN=Ko.relative,FN=Ko.exact,MN=function(e){var t=IN(e);return Fv(t)},UN=TN.create,Gp={domRange:$N,relative:LN,exact:FN,exactFromRange:PN,getWin:MN,range:UN},zN=qt().browser,Xp=function(e,t){var n=Wt(t)?Vf(t).length:jt(t).length+1;return e>n?n:e<0?0:e},HN=function(e){return Gp.range(e.start,Xp(e.soffset,e.start),e.finish,Xp(e.foffset,e.finish))},Yp=function(e,t){return!Ji(t.dom)&&(Wn(e,t)||Te(e,t))},el=function(e){return function(t){return Yp(e,t.start)&&Yp(e,t.finish)}},Qp=function(e){return e.inline===!0||zN.isIE()},Zp=function(e){return Gp.range(k.fromDom(e.startContainer),e.startOffset,k.fromDom(e.endContainer),e.endOffset)},VN=function(e){var t=e.getSelection(),n=!t||t.rangeCount===0?b.none():b.from(t.getRangeAt(0));return n.map(Zp)},qN=function(e){var t=Fv(e);return VN(t.dom).filter(el(e))},WN=function(e,t){return b.from(t).filter(el(e)).map(HN)},jN=function(e){var t=document.createRange();try{return t.setStart(e.start.dom,e.soffset),t.setEnd(e.finish.dom,e.foffset),b.some(t)}catch{return b.none()}},Go=function(e){var t=Qp(e)?qN(k.fromDom(e.getBody())):b.none();e.bookmark=t.isSome()?t:e.bookmark},KN=function(e,t){var n=k.fromDom(e.getBody()),r=Qp(e)?b.from(t):b.none(),a=r.map(Zp).filter(el(n));e.bookmark=a.isSome()?a:e.bookmark},tl=function(e){var t=e.bookmark?e.bookmark:b.none();return t.bind(function(n){return WN(k.fromDom(e.getBody()),n)}).bind(jN)},GN=function(e){tl(e).each(function(t){return e.selection.setRng(t)})},XN=function(e){var t=e.className.toString();return t.indexOf("tox-")!==-1||t.indexOf("mce-")!==-1},Jp={isEditorUIElement:XN},YN=function(e){return e.type==="nodechange"&&e.selectionChange},QN=function(e,t){var n=function(){t.throttle()};xe.DOM.bind(document,"mouseup",n),e.on("remove",function(){xe.DOM.unbind(document,"mouseup",n)})},ZN=function(e){e.on("focusout",function(){Go(e)})},JN=function(e,t){e.on("mouseup touchend",function(n){t.throttle()})},eT=function(e,t){var n=qt().browser;n.isIE()?ZN(e):JN(e,t),e.on("keyup NodeChange",function(r){YN(r)||Go(e)})},tT=function(e){var t=cf(function(){Go(e)},0);e.on("init",function(){e.inline&&QN(e,t),eT(e,t)}),e.on("remove",function(){t.cancel()})},Bi,nl=xe.DOM,nT=function(e){return Jp.isEditorUIElement(e)},rT=function(e){var t=e.classList;return t!==void 0?t.contains("tox-edit-area")||t.contains("tox-edit-area__iframe")||t.contains("mce-content-body"):!1},Xo=function(e,t){var n=fx(e),r=nl.getParent(t,function(a){return nT(a)||(n?e.dom.is(a,n):!1)});return r!==null},aT=function(e){try{var t=kr(k.fromDom(e.getElement()));return Zf(t).fold(function(){return document.body},function(n){return n.dom})}catch{return document.body}},iT=function(e,t){var n=t.editor;tT(n),n.on("focusin",function(){var r=e.focusedEditor;r!==n&&(r&&r.fire("blur",{focusedEditor:n}),e.setActive(n),e.focusedEditor=n,n.fire("focus",{blurredEditor:r}),n.focus(!0))}),n.on("focusout",function(){ot.setEditorTimeout(n,function(){var r=e.focusedEditor;!Xo(n,aT(n))&&r===n&&(n.fire("blur",{focusedEditor:null}),e.focusedEditor=null)})}),Bi||(Bi=function(r){var a=e.activeEditor;a&&aw(r).each(function(i){i.ownerDocument===document&&i!==document.body&&!Xo(a,i)&&e.focusedEditor===a&&(a.fire("blur",{focusedEditor:null}),e.focusedEditor=null)})},nl.bind(document,"focusin",Bi))},oT=function(e,t){e.focusedEditor===t.editor&&(e.focusedEditor=null),e.activeEditor||(nl.unbind(document,"focusin",Bi),Bi=null)},uT=function(e){e.on("AddEditor",G(iT,e)),e.on("RemoveEditor",G(oT,e))},sT=function(e,t){return e.dom.getParent(t,function(n){return e.dom.getContentEditable(n)==="true"})},fT=function(e){return e.collapsed?b.from(ur(e.startContainer,e.startOffset)).map(k.fromDom):b.none()},lT=function(e,t){return fT(t).bind(function(n){return Qw(n)?b.some(n):Wn(e,n)===!1?b.some(e):b.none()})},eg=function(e,t){lT(k.fromDom(e.getBody()),t).bind(function(n){return wt(n.dom)}).fold(function(){e.selection.normalize()},function(n){return e.selection.setRng(n.toRange())})},rl=function(e){if(e.setActive)try{e.setActive()}catch{e.focus()}else e.focus()},cT=function(e){return Kp(e)||xN(e).isSome()},vT=function(e){return e.iframeElement&&Kp(k.fromDom(e.iframeElement))},dT=function(e){var t=e.getBody();return t&&cT(k.fromDom(t))},mT=function(e){var t=kr(k.fromDom(e.getElement()));return Zf(t).filter(function(n){return!rT(n.dom)&&Xo(e,n.dom)}).isSome()},Lr=function(e){return e.inline?dT(e):vT(e)},pT=function(e){return Lr(e)||mT(e)},gT=function(e){var t=e.selection,n=e.getBody(),r=t.getRng();e.quirks.refreshContentEditable(),e.bookmark!==void 0&&Lr(e)===!1&&tl(e).each(function(i){e.selection.setRng(i),r=i});var a=sT(e,t.getNode());if(e.$.contains(n,a)){rl(a),eg(e,r),al(e);return}e.inline||(se.opera||rl(n),e.getWin().focus()),(se.gecko||e.inline)&&(rl(n),eg(e,r)),al(e)},al=function(e){return e.editorManager.setActive(e)},hT=function(e,t){e.removed||(t?al(e):gT(e))},tg=function(e,t,n,r,a){var i=n?t.startContainer:t.endContainer,o=n?t.startOffset:t.endOffset;return b.from(i).map(k.fromDom).map(function(u){return!r||!t.collapsed?Yi(u,a(u,o)).getOr(u):u}).bind(function(u){return Jt(u)?b.some(u):en(u).filter(Jt)}).map(function(u){return u.dom}).getOr(e)},ng=function(e,t,n){return tg(e,t,!0,n,function(r,a){return Math.min(Hv(r),a)})},rg=function(e,t,n){return tg(e,t,!1,n,function(r,a){return a>0?a-1:a})},ag=function(e,t){for(var n=e;e&&Q(e)&&e.length===0;)e=t?e.nextSibling:e.previousSibling;return e||n},bT=function(e,t){var n,r,a;if(!t)return e;r=t.startContainer,a=t.endContainer;var i=t.startOffset,o=t.endOffset;return n=t.commonAncestorContainer,!t.collapsed&&(r===a&&o-i<2&&r.hasChildNodes()&&(n=r.childNodes[i]),r.nodeType===3&&a.nodeType===3&&(r.length===i?r=ag(r.nextSibling,!0):r=r.parentNode,o===0?a=ag(a.previousSibling,!1):a=a.parentNode,r&&r===a))?r:n&&n.nodeType===3?n.parentNode:n},yT=function(e,t,n,r){var a,i=[],o=e.getRoot();if(n=e.getParent(n||ng(o,t,t.collapsed),e.isBlock),r=e.getParent(r||rg(o,t,t.collapsed),e.isBlock),n&&n!==o&&i.push(n),n&&r&&n!==r){a=n;for(var u=new Ge(n,o);(a=u.next())&&a!==r;)e.isBlock(a)&&i.push(a)}return r&&n!==r&&r!==o&&i.push(r),i},CT=function(e,t,n){return b.from(t).map(function(r){var a=e.nodeIndex(r),i=e.createRng();return i.setStart(r.parentNode,a),i.setEnd(r.parentNode,a+1),n&&(Uf(e,i,r,!0),Uf(e,i,r,!1)),i})},il=function(e,t){return De(t,function(n){var r=e.fire("GetSelectionRange",{range:n});return r.range!==n?r.range:n})},wT={"#text":3,"#comment":8,"#cdata":4,"#pi":7,"#doctype":10,"#document-fragment":11},Yo=function(e,t,n){var r=n?"lastChild":"firstChild",a=n?"prev":"next";if(e[r])return e[r];if(e!==t){var i=e[a];if(i)return i;for(var o=e.parent;o&&o!==t;o=o.parent)if(i=o[a],i)return i}},ST=function(e){if(!Nr(e.value))return!1;var t=e.parent;return!(t&&(t.name!=="span"||t.attr("style"))&&/^[ ]+$/.test(e.value))},ig=function(e){var t=e.name==="a"&&!e.attr("href")&&e.attr("id");return e.attr("name")||e.attr("id")&&!e.firstChild||e.attr("data-mce-bookmark")||t},Xt=function(){function e(t,n){this.name=t,this.type=n,n===1&&(this.attributes=[],this.attributes.map={})}return e.create=function(t,n){var r=new e(t,wT[t]||1);return n&&Pe(n,function(a,i){r.attr(i,a)}),r},e.prototype.replace=function(t){var n=this;return t.parent&&t.remove(),n.insert(t,n),n.remove(),n},e.prototype.attr=function(t,n){var r=this,a;if(typeof t!="string")return t!=null&&Pe(t,function(o,u){r.attr(u,o)}),r;if(a=r.attributes){if(n!==void 0){if(n===null){if(t in a.map){delete a.map[t];for(var i=a.length;i--;)if(a[i].name===t)return a.splice(i,1),r}return r}if(t in a.map){for(var i=a.length;i--;)if(a[i].name===t){a[i].value=n;break}}else a.push({name:t,value:n});return a.map[t]=n,r}return a.map[t]}},e.prototype.clone=function(){var t=this,n=new e(t.name,t.type),r;if(r=t.attributes){var a=[];a.map={};for(var i=0,o=r.length;i=s.length){for(i=0,o=u.length;i=s.length||u[i]!==s[i]){r=i+1;break}}if(u.length=u.length||u[i]!==s[i]){r=i+1;break}}if(r===1)return n;for(i=0,o=u.length-(r-1);i=0;r--)if(!(f[r].length===0||f[r]===".")){if(f[r]===".."){a++;continue}if(a>0){a--;continue}i.push(f[r])}return r=s.length-a,r<=0?o=ji(i).join("/"):o=s.slice(0,r).join("/")+"/"+ji(i).join("/"),o.indexOf("/")!==0&&(o="/"+o),u&&o.lastIndexOf("/")!==o.length-1&&(o+=u),o},e.prototype.getURI=function(t){t===void 0&&(t=!1);var n;return(!this.source||t)&&(n="",t||(this.protocol?n+=this.protocol+"://":n+="//",this.userInfo&&(n+=this.userInfo+"@"),this.host&&(n+=this.host),this.port&&(n+=":"+this.port)),this.path&&(n+=this.path),this.query&&(n+="?"+this.query),this.anchor&&(n+="#"+this.anchor),this.source=n),this.source},e}(),_T=B.makeMap("button,fieldset,form,iframe,img,image,input,object,output,select,textarea"),DT=function(e){return e.indexOf("data-")===0||e.indexOf("aria-")===0},OT=fs(function(){return document.implementation.createHTMLDocument("parser")}),ul=function(e,t,n){for(var r=/<([!?\/])?([A-Za-z0-9\-_:.]+)/g,a=/(?:\s(?:[^'">]+(?:"[^"]*"|'[^']*'))*[^"'>]*(?:"[^">]*|'[^'>]*)?|\s*|\/)>/g,i=e.getShortEndedElements(),o=1,u=n;o!==0;)for(r.lastIndex=u;;){var s=r.exec(t);if(s===null)return u;if(s[1]==="!"){Sr(s[2],"--")?u=sl(t,!1,s.index+3):u=sl(t,!0,s.index+1);break}else{a.lastIndex=r.lastIndex;var f=a.exec(t);if(Ga(f)||f.index!==r.lastIndex)continue;s[1]==="/"?o-=1:de(i,s[2])||(o+=1),u=r.lastIndex+f[0].length;break}}return u},PT=function(e,t){return/^\s*\[if [\w\W]+\]>.*/.test(e.substr(t))},sl=function(e,t,n){n===void 0&&(n=0);var r=e.toLowerCase();if(r.indexOf("[if ",n)!==-1&&PT(r,n)){var a=r.indexOf("[endif]",n);return r.indexOf(">",a)}else if(t){var i=r.indexOf(">",n);return i!==-1?i:r.length}else{var o=/--!?>/g;o.lastIndex=n;var u=o.exec(e);return u?u.index+u[0].length:r.length}},IT=function(e,t){var n=e.exec(t);if(n){var r=n[1],a=n[2];return typeof r=="string"&&r.toLowerCase()==="data-mce-bogus"?a:null}else return null},Qo=function(e,t){t===void 0&&(t=Jn()),e=e||{};var n=OT(),r=n.createElement("form");e.fix_self_closing!==!1&&(e.fix_self_closing=!0);var a=e.comment?e.comment:le,i=e.cdata?e.cdata:le,o=e.text?e.text:le,u=e.start?e.start:le,s=e.end?e.end:le,f=e.pi?e.pi:le,l=e.doctype?e.doctype:le,c=function(d,m){m===void 0&&(m="html");for(var p=d.html,g,y=0,h,E,S=[],C,x,R,I,ne,W,_,ee,M,q,L,H,K,D,j,fe,pe,me=0,Ve=Qn.decode,Be=B.makeMap("src,href,data,background,action,formaction,poster,xlink:href"),lt=m==="html"?0:1,xt=function(we){var Se,Ue;for(Se=S.length;Se--&&S[Se].name!==we;);if(Se>=0){for(Ue=S.length-1;Ue>=Se;Ue--)we=S[Ue],we.valid&&s(we.name);S.length=Se}},O=function(we,Se){return o(ol(we,d),Se)},U=function(we){we!==""&&(we.charAt(0)===">"&&(we=" "+we),!e.allow_conditional_comments&&we.substr(0,3).toLowerCase()==="[if"&&(we=" "+we),a(ol(we,d)))},Z=function(we){return ol(we,d)},N=function(we,Se){var Ue=we||"",ln=!Sr(Ue,"--"),cn=sl(p,ln,Se);return we=p.substr(Se,cn-Se),U(ln?Ue+we:we),cn+1},$=function(we,Se,Ue,ln,cn){if(Se=Se.toLowerCase(),Ue=Z(Se in Fe?Se:Ve(Ue||ln||cn||"")),$e&&!ne&&DT(Se)===!1){var vn=L[Se];if(!vn&&H){for(var br=H.length;br--&&(vn=H[br],!vn.pattern.test(Se)););br===-1&&(vn=null)}if(!vn||vn.validValues&&!(Ue in vn.validValues))return}var Hc=Se==="name"||Se==="id";Hc&&we in _T&&(Ue in n||Ue in r)||Be[Se]&&!lr.isDomSafe(Ue,we,e)||ne&&(Se in Be||Se.indexOf("on")===0)||(C.map[Se]=Ue,C.push({name:Se,value:Ue}))},P=new RegExp(`<(?:(?:!--([\\w\\W]*?)--!?>)|(?:!\\[CDATA\\[([\\w\\W]*?)\\]\\]>)|(?:![Dd][Oo][Cc][Tt][Yy][Pp][Ee]([\\w\\W]*?)>)|(?:!(--)?)|(?:\\?([^\\s\\/<>]+) ?([\\w\\W]*?)[?/]>)|(?:\\/([A-Za-z][A-Za-z0-9\\-_\\:\\.]*)>)|(?:([A-Za-z][A-Za-z0-9\\-_:.]*)(\\s(?:[^'">]+(?:"[^"]*"|'[^']*'))*[^"'>]*(?:"[^">]*|'[^'>]*)?|\\s*|\\/)>))`,"g"),J=/([\w:\-]+)(?:\s*=\s*(?:(?:\"((?:[^\"])*)\")|(?:\'((?:[^\'])*)\')|([^>\s]+)))?/g,te=t.getShortEndedElements(),ye=e.self_closing_elements||t.getSelfClosingElements(),Fe=t.getBoolAttrs(),$e=e.validate,Vn=e.remove_internals,ct=e.fix_self_closing,pt=t.getSpecialElements(),Me=p+">";g=P.exec(Me);){var Ot=g[0];if(yp.length){O(Ve(p.substr(g.index))),y=g.index+Ot.length;continue}h=h.toLowerCase(),h.charAt(0)===":"&&(h=h.substr(1)),W=h in te,ct&&ye[h]&&S.length>0&&S[S.length-1].name===h&&xt(h);var gt=IT(J,g[9]);if(gt!==null){if(gt==="all"){y=ul(t,p,P.lastIndex),P.lastIndex=y;continue}ee=!1}if(!$e||(_=t.getElementRule(h))){if(ee=!0,$e&&(L=_.attributes,H=_.attributePatterns),(q=g[9])?(ne=q.indexOf("data-mce-type")!==-1,ne&&Vn&&(ee=!1),C=[],C.map={},q.replace(J,function(we,Se,Ue,ln,cn){return $(h,Se,Ue,ln,cn),""})):(C=[],C.map={}),$e&&!ne){if(K=_.attributesRequired,D=_.attributesDefault,j=_.attributesForced,fe=_.removeEmptyAttrs,fe&&!C.length&&(ee=!1),j)for(x=j.length;x--;)M=j[x],I=M.name,pe=M.value,pe==="{$uid}"&&(pe="mce_"+me++),C.map[I]=pe,C.push({name:I,value:pe});if(D)for(x=D.length;x--;)M=D[x],I=M.name,I in C.map||(pe=M.value,pe==="{$uid}"&&(pe="mce_"+me++),C.map[I]=pe,C.push({name:I,value:pe}));if(K){for(x=K.length;x--&&!(K[x]in C.map););x===-1&&(ee=!1)}if(M=C.map["data-mce-bogus"]){if(M==="all"){y=ul(t,p,P.lastIndex),P.lastIndex=y;continue}ee=!1}}ee&&u(h,C,W)}else ee=!1;if(E=pt[h]){E.lastIndex=y=g.index+Ot.length,(g=E.exec(p))?(ee&&(R=p.substr(y,g.index-y)),y=g.index+g[0].length):(R=p.substr(y),y=p.length),ee&&(R.length>0&&O(R,!0),s(h)),P.lastIndex=y;continue}W||(!q||q.indexOf("/")!==q.length-1?S.push({name:h,valid:ee}):ee&&s(h))}else if(h=g[1])U(h);else if(h=g[2]){var Dn=lt===1||e.preserve_cdata||S.length>0&&t.isValidChild(S[S.length-1].name,"#cdata");if(Dn)i(h);else{y=N("",g.index+2),P.lastIndex=y;continue}}else if(h=g[3])l(h);else if((h=g[4])||Ot==="=0;x--)h=S[x],h.valid&&s(h.name)},v=function(d,m){m===void 0&&(m="html"),c(ET(d),m)};return{parse:v}};Qo.findEndTag=ul;var $T=function(e,t){var n=new RegExp(["\\s?("+e.join("|")+')="[^"]+"'].join("|"),"gi");return t.replace(n,"")},ug=function(e,t){for(var n=/<(\w+) [^>]*data-mce-bogus="all"[^>]*>/g,r=e.schema,a=$T(e.getTempAttrs(),t),i=r.getShortEndedElements(),o;o=n.exec(a);){var u=n.lastIndex,s=o[0].length,f=void 0;i[o[1]]?f=u:f=Qo.findEndTag(r,a,u),a=a.substring(0,u-s)+a.substring(f),n.lastIndex=u-s}return Yn(a)},LT=ug,FT=function(e,t){var n=ft(e),r=new RegExp("^(<"+n+"[^>]*>( | |\\s|\xA0|
|)<\\/"+n+`>[\r diff --git a/public/js/build/TaskDetail.0ed8c7bb.js b/public/js/build/TaskDetail.e0049723.js similarity index 99% rename from public/js/build/TaskDetail.0ed8c7bb.js rename to public/js/build/TaskDetail.e0049723.js index 228b0b861..44b55d1f8 100644 --- a/public/js/build/TaskDetail.0ed8c7bb.js +++ b/public/js/build/TaskDetail.e0049723.js @@ -1 +1 @@ -import{n as r,d as c,m as u}from"./app.90cb6e79.js";import h from"./TEditor.27348ee4.js";import{P as m,T as p}from"./ProjectLog.53e7fe6c.js";import{U as f}from"./UserInput.1d67c0fc.js";import{C as k,D as g}from"./DialogWrapper.0674ddc3.js";import{T as _}from"./TaskMenu.8ddcdf6c.js";var v=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("Upload",{ref:"upload",attrs:{name:"files",action:"",multiple:"",format:t.uploadFormat,"show-upload-list":!1,"max-size":t.maxSize,"on-format-error":t.handleFormatError,"on-exceeded-size":t.handleMaxSize,"before-upload":t.handleBeforeUpload}})},w=[];const D={name:"TaskUpload",props:{maxSize:{type:Number,default:1024e3}},data(){return{uploadFormat:["jpg","jpeg","png","gif","doc","docx","xls","xlsx","ppt","pptx","txt","esp","pdf","rar","zip","gz","ai","avi","bmp","cdr","eps","mov","mp3","mp4","pr","psd","svg","tif"]}},methods:{handleFormatError(t){$A.modalWarning({title:"\u6587\u4EF6\u683C\u5F0F\u4E0D\u6B63\u786E",content:"\u6587\u4EF6 "+t.name+" \u683C\u5F0F\u4E0D\u6B63\u786E\uFF0C\u4EC5\u652F\u6301\u53D1\u9001\uFF1A"+this.uploadFormat.join(",")})},handleMaxSize(t){$A.modalWarning({title:"\u8D85\u51FA\u6587\u4EF6\u5927\u5C0F\u9650\u5236",content:"\u6587\u4EF6 "+t.name+" \u592A\u5927\uFF0C\u4E0D\u80FD\u53D1\u9001\u8D85\u8FC7"+$A.bytesToSize(this.maxSize*1024)+"\u3002"})},handleBeforeUpload(t){return this.$emit("on-select-file",t),!1},handleClick(){this.$refs.upload.handleClick()}}},n={};var b=r(D,v,w,!1,C,null,null,null);function C(t){for(let a in n)this[a]=n[a]}var y=function(){return b.exports}(),A=function(){var t=this,a=t.$createElement,e=t._self._c||a;return t.ready&&t.taskDetail.parent_id>0?e("li",[e("div",{staticClass:"subtask-icon"},[e("TaskMenu",{ref:`taskMenu_${t.taskDetail.id}`,attrs:{disabled:t.taskId===0,task:t.taskDetail,"load-status":t.taskDetail.loading===!0},on:{"on-update":t.getLogLists}})],1),t.taskDetail.flow_item_name?e("div",{staticClass:"subtask-flow"},[e("span",{class:t.taskDetail.flow_item_status,on:{click:function(s){return s.stopPropagation(),t.openMenu(s,t.taskDetail)}}},[t._v(t._s(t.taskDetail.flow_item_name))])]):t._e(),e("div",{staticClass:"subtask-name"},[e("Input",{ref:"name",attrs:{type:"textarea",rows:1,autosize:{minRows:1,maxRows:8},maxlength:255,enterkeyhint:"done"},on:{"on-blur":function(s){return t.updateBlur("name")},"on-keydown":t.onNameKeydown},model:{value:t.taskDetail.name,callback:function(s){t.$set(t.taskDetail,"name",s)},expression:"taskDetail.name"}})],1),e("DatePicker",{staticClass:"subtask-time",attrs:{open:t.timeOpen,options:t.timeOptions,format:"yyyy/MM/dd HH:mm",type:"datetimerange",placement:"bottom-end",transfer:""},on:{"on-open-change":t.timeChange,"on-clear":t.timeClear,"on-ok":t.timeOk},model:{value:t.timeValue,callback:function(s){t.timeValue=s},expression:"timeValue"}},[!t.taskDetail.complete_at&&t.taskDetail.end_at&&t.taskDetail.end_at!=t.mainEndAt?e("div",{class:["time",t.taskDetail.today?"today":"",t.taskDetail.overdue?"overdue":""],on:{click:t.openTime}},[t._v(" "+t._s(t.expiresFormat(t.taskDetail.end_at))+" ")]):e("Icon",{staticClass:"clock",attrs:{type:"ios-clock-outline"},on:{click:t.openTime}})],1),e("Poptip",{ref:"owner",staticClass:"subtask-avatar",attrs:{"popper-class":"task-detail-user-popper",title:t.$L("\u4FEE\u6539\u8D1F\u8D23\u4EBA"),width:240,placement:"bottom",transfer:""},on:{"on-popper-show":t.openOwner,"on-ok":t.onOwner}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("UserInput",{attrs:{"multiple-max":1,"project-id":t.taskDetail.project_id,placeholder:t.$L("\u9009\u62E9\u4EFB\u52A1\u8D1F\u8D23\u4EBA"),transfer:!1,"max-hidden-select":""},model:{value:t.ownerData.owner_userid,callback:function(s){t.$set(t.ownerData,"owner_userid",s)},expression:"ownerData.owner_userid"}}),e("div",{staticClass:"task-detail-avatar-buttons"},[e("Button",{attrs:{size:"small",type:"primary"},on:{click:function(s){return t.$refs.owner.ok()}}},[t._v(t._s(t.$L("\u786E\u5B9A")))])],1)],1),t.getOwner.length>0?t._l(t.getOwner,function(s){return e("UserAvatar",{key:s.userid,attrs:{userid:s.userid,size:20,tooltipDisabled:""}})}):e("div",[t._v("--")])],2)],1):t.ready?e("div",{class:{"task-detail":!0,"open-dialog":t.hasOpenDialog,completed:t.taskDetail.complete_at},style:t.taskDetailStyle},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.taskDetail.id>0,expression:"taskDetail.id > 0"}],staticClass:"task-info"},[e("div",{staticClass:"head"},[e("TaskMenu",{ref:`taskMenu_${t.taskDetail.id}`,staticClass:"icon",attrs:{disabled:t.taskId===0,task:t.taskDetail,size:"medium","color-show":!1},on:{"on-update":t.getLogLists}}),t.taskDetail.flow_item_name?e("div",{staticClass:"flow"},[e("span",{class:t.taskDetail.flow_item_status,on:{click:function(s){return s.stopPropagation(),t.openMenu(s,t.taskDetail)}}},[t._v(t._s(t.taskDetail.flow_item_name))])]):t._e(),t.taskDetail.archived_at?e("div",{staticClass:"flow"},[e("span",{staticClass:"archived",on:{click:function(s){return s.stopPropagation(),t.openMenu(s,t.taskDetail)}}},[t._v(t._s(t.$L("\u5DF2\u5F52\u6863")))])]):t._e(),e("div",{staticClass:"nav"},[t.projectName?e("p",[e("span",[t._v(t._s(t.projectName))])]):t._e(),t.columnName?e("p",[e("span",[t._v(t._s(t.columnName))])]):t._e(),t.taskDetail.id?e("p",[e("span",[t._v(t._s(t.taskDetail.id))])]):t._e()]),e("div",{staticClass:"function"},[t.getOwner.length===0?e("EPopover",{attrs:{placement:"bottom"},model:{value:t.receiveShow,callback:function(s){t.receiveShow=s},expression:"receiveShow"}},[e("div",{staticClass:"task-detail-receive"},[e("div",{staticClass:"receive-title"},[e("Icon",{attrs:{type:"ios-help-circle"}}),t._v(" "+t._s(t.$L("\u786E\u8BA4\u8BA1\u5212\u65F6\u95F4\u9886\u53D6\u4EFB\u52A1"))+" ")],1),e("div",{staticClass:"receive-time"},[e("DatePicker",{attrs:{options:t.timeOptions,format:"yyyy/MM/dd HH:mm",type:"datetimerange",placeholder:t.$L("\u8BF7\u8BBE\u7F6E\u8BA1\u5212\u65F6\u95F4"),clearable:!1,editable:!1},model:{value:t.timeValue,callback:function(s){t.timeValue=s},expression:"timeValue"}})],1),e("div",{staticClass:"receive-bottom"},[e("Button",{attrs:{size:"small",type:"text"},on:{click:function(s){t.receiveShow=!1}}},[t._v("\u53D6\u6D88")]),e("Button",{attrs:{loading:t.ownerLoad>0,size:"small",type:"primary"},on:{click:function(s){return t.onOwner(!0)}}},[t._v("\u786E\u5B9A")])],1)]),e("Button",{staticClass:"pick",attrs:{slot:"reference",loading:t.ownerLoad>0,type:"primary"},slot:"reference"},[t._v(t._s(t.$L("\u6211\u8981\u9886\u53D6\u4EFB\u52A1")))])],1):t._e(),t.$Electron?e("ETooltip",{attrs:{disabled:t.windowSmall||t.$isEEUiApp,content:t.$L("\u65B0\u7A97\u53E3\u6253\u5F00")}},[e("i",{staticClass:"taskfont open",on:{click:t.openNewWin}},[t._v("\uE776")])]):t._e(),e("div",{staticClass:"menu"},[e("TaskMenu",{attrs:{disabled:t.taskId===0,task:t.taskDetail,icon:"ios-more","completed-icon":"ios-more",size:"medium","color-show":!1},on:{"on-update":t.getLogLists}})],1)],1)],1),e("div",{staticClass:"scroller scrollbar-overlay"},[e("div",{staticClass:"title"},[e("Input",{ref:"name",attrs:{type:"textarea",rows:1,autosize:{minRows:1,maxRows:8},maxlength:255,enterkeyhint:"done"},on:{"on-blur":function(s){return t.updateBlur("name")},"on-keydown":t.onNameKeydown},model:{value:t.taskDetail.name,callback:function(s){t.$set(t.taskDetail,"name",s)},expression:"taskDetail.name"}})],1),e("div",{staticClass:"desc"},[e("TEditor",{ref:"desc",attrs:{value:t.taskContent,plugins:t.taskPlugins,options:t.taskOptions,"option-full":t.taskOptionFull,placeholder:t.$L("\u8BE6\u7EC6\u63CF\u8FF0..."),inline:""},on:{"on-blur":function(s){return t.updateBlur("content")}}})],1),e("Form",{staticClass:"items",attrs:{"label-position":"left","label-width":"auto"},nativeOn:{submit:function(s){s.preventDefault()}}},[t.taskDetail.p_name?e("FormItem",[e("div",{staticClass:"item-label",attrs:{slot:"label"},slot:"label"},[e("i",{staticClass:"taskfont"},[t._v("\uE6EC")]),t._v(t._s(t.$L("\u4F18\u5148\u7EA7"))+" ")]),e("ul",{staticClass:"item-content"},[e("li",[e("EDropdown",{ref:"priority",attrs:{trigger:"click",placement:"bottom"},on:{command:function(s){return t.updateData("priority",s)}}},[e("TaskPriority",{attrs:{backgroundColor:t.taskDetail.p_color}},[t._v(t._s(t.taskDetail.p_name))]),e("EDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},t._l(t.taskPriority,function(s,i){return e("EDropdownItem",{key:i,attrs:{command:s}},[e("i",{staticClass:"taskfont",style:{color:s.color},domProps:{innerHTML:t._s(t.taskDetail.p_name==s.name?"":"")}}),t._v(" "+t._s(s.name)+" ")])}),1)],1)],1)])]):t._e(),t.getOwner.length>0?e("FormItem",[e("div",{staticClass:"item-label",attrs:{slot:"label"},slot:"label"},[e("i",{staticClass:"taskfont"},[t._v("\uE6E4")]),t._v(t._s(t.$L("\u8D1F\u8D23\u4EBA"))+" ")]),e("Poptip",{ref:"owner",staticClass:"item-content user",attrs:{title:t.$L("\u4FEE\u6539\u8D1F\u8D23\u4EBA"),width:240,"popper-class":"task-detail-user-popper",placement:"bottom",transfer:""},on:{"on-popper-show":t.openOwner,"on-ok":t.onOwner}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("UserInput",{attrs:{"multiple-max":10,"project-id":t.taskDetail.project_id,placeholder:t.$L("\u9009\u62E9\u4EFB\u52A1\u8D1F\u8D23\u4EBA"),transfer:!1},model:{value:t.ownerData.owner_userid,callback:function(s){t.$set(t.ownerData,"owner_userid",s)},expression:"ownerData.owner_userid"}}),e("div",{staticClass:"task-detail-avatar-buttons"},[e("Button",{attrs:{size:"small",type:"primary"},on:{click:function(s){return t.$refs.owner.ok()}}},[t._v(t._s(t.$L("\u786E\u5B9A")))])],1)],1),e("div",{staticClass:"user-list"},t._l(t.getOwner,function(s){return e("UserAvatar",{key:s.userid,attrs:{userid:s.userid,size:28,showName:t.getOwner.length===1,tooltipDisabled:""}})}),1)])],1):t._e(),t.getAssist.length>0||t.assistForce?e("FormItem",[e("div",{staticClass:"item-label",attrs:{slot:"label"},slot:"label"},[e("i",{staticClass:"taskfont"},[t._v("\uE63F")]),t._v(t._s(t.$L("\u534F\u52A9\u4EBA\u5458"))+" ")]),e("Poptip",{ref:"assist",staticClass:"item-content user",attrs:{title:t.$L(t.getAssist.length>0?"\u4FEE\u6539\u534F\u52A9\u4EBA\u5458":"\u6DFB\u52A0\u534F\u52A9\u4EBA\u5458"),width:280,"popper-class":"task-detail-user-popper",placement:"bottom",transfer:""},on:{"on-popper-show":t.openAssist,"on-ok":t.onAssist}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("UserInput",{attrs:{"multiple-max":10,"project-id":t.taskDetail.project_id,"disabled-choice":t.assistData.disabled,placeholder:t.$L("\u9009\u62E9\u4EFB\u52A1\u534F\u52A9\u4EBA\u5458"),transfer:!1},model:{value:t.assistData.assist_userid,callback:function(s){t.$set(t.assistData,"assist_userid",s)},expression:"assistData.assist_userid"}}),e("div",{staticClass:"task-detail-avatar-buttons"},[e("Button",{attrs:{size:"small",type:"primary"},on:{click:function(s){return t.$refs.assist.ok()}}},[t._v(t._s(t.$L("\u786E\u5B9A")))])],1)],1),t.getAssist.length>0?e("div",{staticClass:"user-list"},t._l(t.getAssist,function(s){return e("UserAvatar",{key:s.userid,attrs:{userid:s.userid,size:28,showName:t.getAssist.length===1,tooltipDisabled:""}})}),1):e("div",[t._v("--")])])],1):t._e(),t.taskDetail.end_at||t.timeForce?e("FormItem",[e("div",{staticClass:"item-label",attrs:{slot:"label"},slot:"label"},[e("i",{staticClass:"taskfont"},[t._v("\uE6E8")]),t._v(t._s(t.$L("\u622A\u6B62\u65F6\u95F4"))+" ")]),e("ul",{staticClass:"item-content"},[e("li",[e("DatePicker",{attrs:{open:t.timeOpen,options:t.timeOptions,format:"yyyy/MM/dd HH:mm",type:"datetimerange",transfer:""},on:{"on-open-change":t.timeChange,"on-clear":t.timeClear,"on-ok":t.timeOk},model:{value:t.timeValue,callback:function(s){t.timeValue=s},expression:"timeValue"}},[e("div",{staticClass:"picker-time"},[e("div",{staticClass:"time",on:{click:t.openTime}},[t._v(t._s(t.taskDetail.end_at?t.cutTime:"--"))]),!t.taskDetail.complete_at&&t.taskDetail.end_at?[t.within24Hours(t.taskDetail.end_at)?e("Tag",{attrs:{color:"blue"}},[e("i",{staticClass:"taskfont"},[t._v("\uE71D")]),t._v(t._s(t.expiresFormat(t.taskDetail.end_at)))]):t._e(),t.isOverdue(t.taskDetail)?e("Tag",{attrs:{color:"red"}},[t._v(t._s(t.$L("\u8D85\u671F\u672A\u5B8C\u6210")))]):t._e()]:t._e()],2)])],1)])]):t._e(),t.taskDetail.loop&&t.taskDetail.loop!="never"||t.loopForce?e("FormItem",[e("div",{staticClass:"item-label",attrs:{slot:"label"},slot:"label"},[e("i",{staticClass:"taskfont"},[t._v("\uE93F")]),t._v(t._s(t.$L("\u91CD\u590D\u5468\u671F"))+" ")]),e("ul",{staticClass:"item-content"},[e("li",[e("EDropdown",{ref:"loop",attrs:{trigger:"click",placement:"bottom"},on:{command:function(s){return t.updateData("loop",s)}}},[e("ETooltip",{attrs:{disabled:t.windowSmall||t.$isEEUiApp||!t.taskDetail.loop_at,content:`${t.$L("\u4E0B\u4E2A\u5468\u671F")}: ${t.taskDetail.loop_at}`,placement:"right"}},[e("span",[t._v(t._s(t.$L(t.loopLabel(t.taskDetail.loop))))])]),e("EDropdownMenu",{staticClass:"task-detail-loop",attrs:{slot:"dropdown"},slot:"dropdown"},t._l(t.loops,function(s){return e("EDropdownItem",{key:s.key,attrs:{command:s.key}},[t._v(" "+t._s(t.$L(s.label))+" ")])}),1)],1)],1)])]):t._e(),t.fileList.length>0?e("FormItem",[e("div",{staticClass:"item-label",attrs:{slot:"label"},slot:"label"},[e("i",{staticClass:"taskfont"},[t._v("\uE6E6")]),t._v(t._s(t.$L("\u9644\u4EF6"))+" ")]),e("ul",{staticClass:"item-content file"},[t.taskDetail.file_num>50?e("li",{staticClass:"tip"},[t._v(t._s(t.$L(`\u5171${t.taskDetail.file_num}\u4E2A\u6587\u4EF6\uFF0C\u4EC5\u663E\u793A\u6700\u65B050\u4E2A`)))]):t._e(),t._l(t.fileList,function(s){return e("li",[s.id?e("img",{staticClass:"file-ext",attrs:{src:s.thumb}}):e("Loading",{staticClass:"file-load"}),e("div",{staticClass:"file-name"},[t._v(t._s(s.name))]),e("div",{staticClass:"file-size"},[t._v(t._s(t.$A.bytesToSize(s.size)))]),e("div",{staticClass:"file-menu",class:{show:s._show_menu}},[e("Icon",{attrs:{type:"md-eye"},on:{click:function(i){return t.viewFile(s)}}}),e("Icon",{attrs:{type:"md-arrow-round-down"},on:{click:function(i){return t.downFile(s)}}}),e("EPopover",{staticClass:"file-delete",model:{value:s._show_menu,callback:function(i){t.$set(s,"_show_menu",i)},expression:"file._show_menu"}},[e("div",{staticClass:"task-detail-delete-file-popover"},[e("p",[t._v(t._s(t.$L("\u4F60\u786E\u5B9A\u8981\u5220\u9664\u8FD9\u4E2A\u6587\u4EF6\u5417\uFF1F")))]),e("div",{staticClass:"buttons"},[e("Button",{attrs:{size:"small",type:"text"},on:{click:function(i){s._show_menu=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{size:"small",type:"primary"},on:{click:function(i){return t.deleteFile(s)}}},[t._v(t._s(t.$L("\u786E\u5B9A")))])],1)]),e("i",{staticClass:"taskfont del",attrs:{slot:"reference"},slot:"reference"},[t._v("\uE6EA")])])],1)],1)})],2),e("ul",{staticClass:"item-content"},[e("li",[e("div",{staticClass:"add-button",on:{click:function(s){return t.onUploadClick(!0)}}},[e("i",{staticClass:"taskfont"},[t._v("\uE6F2")]),t._v(t._s(t.$L("\u6DFB\u52A0\u9644\u4EF6"))+" ")])])])]):t._e(),t.subList.length>0||t.addsubForce?e("FormItem",[e("div",{staticClass:"item-label",attrs:{slot:"label"},slot:"label"},[e("i",{staticClass:"taskfont"},[t._v("\uE6F0")]),t._v(t._s(t.$L("\u5B50\u4EFB\u52A1"))+" ")]),e("ul",{staticClass:"item-content subtask"},t._l(t.subList,function(s,i){return e("TaskDetail",{key:i,ref:`subTask_${s.id}`,refInFor:!0,attrs:{"task-id":s.id,"open-task":s,"main-end-at":t.taskDetail.end_at,"can-update-blur":t.canUpdateBlur}})}),1),e("ul",{class:["item-content",t.subList.length===0?"nosub":""]},[e("li",[t.addsubShow?e("Input",{ref:"addsub",staticClass:"add-input",class:{loading:t.addsubLoad>0},attrs:{placeholder:t.$L("+ \u8F93\u5165\u5B50\u4EFB\u52A1\uFF0C\u56DE\u8F66\u6DFB\u52A0\u5B50\u4EFB\u52A1"),icon:t.addsubLoad>0?"ios-loading":"",enterkeyhint:"done"},on:{"on-blur":t.addsubChackClose,"on-keydown":t.addsubKeydown},model:{value:t.addsubName,callback:function(s){t.addsubName=s},expression:"addsubName"}}):e("div",{staticClass:"add-button",on:{click:t.addsubOpen}},[e("i",{staticClass:"taskfont"},[t._v("\uE6F2")]),t._v(t._s(t.$L("\u6DFB\u52A0\u5B50\u4EFB\u52A1"))+" ")])],1)])]):t._e()],1),t.menuList.length>0?e("div",{staticClass:"add"},[e("EDropdown",{attrs:{trigger:"click",placement:"bottom"},on:{command:t.dropAdd}},[e("div",{staticClass:"add-button"},[e("i",{staticClass:"taskfont"},[t._v("\uE6F2")]),t._v(" "+t._s(t.$L("\u6DFB\u52A0"))+" "),e("em",[t._v(t._s(t.menuText))])]),e("EDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},t._l(t.menuList,function(s,i){return e("EDropdownItem",{key:i,attrs:{command:s.command}},[e("div",{staticClass:"item"},[e("i",{staticClass:"taskfont",domProps:{innerHTML:t._s(s.icon)}}),t._v(t._s(t.$L(s.name))+" ")])])}),1)],1)],1):t._e()],1),e("TaskUpload",{ref:"upload",staticClass:"upload",on:{"on-select-file":t.onSelectFile}})],1),e("div",{directives:[{name:"show",rawName:"v-show",value:t.taskDetail.id>0,expression:"taskDetail.id > 0"}],staticClass:"task-dialog",style:t.dialogStyle},[t.hasOpenDialog?[t.taskId>0?e("DialogWrapper",{ref:"dialog",attrs:{"dialog-id":t.taskDetail.dialog_id}},[e("div",{staticClass:"head",attrs:{slot:"head"},slot:"head"},[e("Icon",{staticClass:"icon",attrs:{type:"ios-chatbubbles-outline"}}),e("div",{staticClass:"nav"},[e("p",{class:{active:t.navActive=="dialog"},on:{click:function(s){t.navActive="dialog"}}},[t._v(t._s(t.$L("\u804A\u5929")))]),e("p",{class:{active:t.navActive=="log"},on:{click:function(s){t.navActive="log"}}},[t._v(t._s(t.$L("\u52A8\u6001")))]),t.navActive=="log"?e("div",{staticClass:"refresh"},[t.logLoadIng?e("Loading"):e("Icon",{attrs:{type:"ios-refresh"},on:{click:t.getLogLists}})],1):t._e()])],1)]):t._e(),t.navActive=="log"&&t.taskId>0?e("ProjectLog",{ref:"log",attrs:{"task-id":t.taskDetail.id},on:{"on-load-change":t.logLoadChange}}):t._e()]:e("div",[e("div",{staticClass:"head"},[e("Icon",{staticClass:"icon",attrs:{type:"ios-chatbubbles-outline"}}),e("div",{staticClass:"nav"},[e("p",{class:{active:t.navActive=="dialog"},on:{click:function(s){t.navActive="dialog"}}},[t._v(t._s(t.$L("\u804A\u5929")))]),e("p",{class:{active:t.navActive=="log"},on:{click:function(s){t.navActive="log"}}},[t._v(t._s(t.$L("\u52A8\u6001")))]),t.navActive=="log"?e("div",{staticClass:"refresh"},[t.logLoadIng?e("Loading"):e("Icon",{attrs:{type:"ios-refresh"},on:{click:t.getLogLists}})],1):t._e()]),e("div",{staticClass:"menu"},[t.navActive=="dialog"&&t.taskDetail.msg_num>0?e("div",{staticClass:"menu-item",on:{click:function(s){return s.stopPropagation(),t.onSend("open")}}},[t.openLoad>0?e("div",{staticClass:"menu-load"},[e("Loading")],1):t._e(),t._v(" "+t._s(t.$L("\u4EFB\u52A1\u804A\u5929"))+" "),e("em",[t._v("("+t._s(t.taskDetail.msg_num>999?"999+":t.taskDetail.msg_num)+")")]),e("i",{staticClass:"taskfont"},[t._v("\uE703")])]):t._e()])],1),t.navActive=="log"&&t.taskId>0?e("ProjectLog",{ref:"log",attrs:{"task-id":t.taskDetail.id,"show-load":!1},on:{"on-load-change":t.logLoadChange}}):e("div",{staticClass:"no-dialog",on:{drop:function(s){return s.preventDefault(),t.taskPasteDrag(s,"drag")},dragover:function(s){return s.preventDefault(),t.taskDragOver(!0,s)},dragleave:function(s){return s.preventDefault(),t.taskDragOver(!1,s)}}},[e("div",{staticClass:"no-tip"},[t._v(t._s(t.$L("\u6682\u65E0\u6D88\u606F")))]),e("div",{staticClass:"no-input"},[e("ChatInput",{ref:"chatInput",attrs:{"task-id":t.taskId,loading:t.sendLoad>0,maxlength:2e5,placeholder:t.$L("\u8F93\u5165\u6D88\u606F...")},on:{"on-more":t.onEventMore,"on-file":t.onSelectFile,"on-record":t.onRecord,"on-send":t.onSend},model:{value:t.msgText,callback:function(s){t.msgText=s},expression:"msgText"}})],1),t.dialogDrag?e("div",{staticClass:"drag-over",on:{click:function(s){t.dialogDrag=!1}}},[e("div",{staticClass:"drag-text"},[t._v(t._s(t.$L("\u62D6\u52A8\u5230\u8FD9\u91CC\u53D1\u9001")))])]):t._e()])],1)],2),t.taskDetail.id?t._e():e("div",{staticClass:"task-load"},[e("Loading")],1)]):t._e()},L=[];const x={name:"TaskDetail",components:{ChatInput:k,TaskMenu:_,ProjectLog:m,DialogWrapper:g,TaskUpload:y,UserInput:f,TaskPriority:p,TEditor:h},props:{taskId:{type:Number,default:0},openTask:{type:Object,default:()=>({})},mainEndAt:{default:null},canUpdateBlur:{type:Boolean,default:!0},modalMode:{type:Boolean,default:!1}},data(){return{ready:!1,taskDetail:{},ownerData:{},ownerLoad:0,receiveShow:!1,assistForce:!1,assistData:{},assistLoad:0,addsubForce:!1,addsubShow:!1,addsubName:"",addsubLoad:0,timeForce:!1,timeOpen:!1,timeValue:[],timeOptions:{shortcuts:$A.timeOptionShortcuts()},loopForce:!1,nowTime:$A.Time(),nowInterval:null,msgText:"",msgFile:[],msgRecord:{},navActive:"dialog",logLoadIng:!1,sendLoad:0,openLoad:0,taskPlugins:["advlist autolink lists link image charmap print preview hr anchor pagebreak","searchreplace visualblocks visualchars code","insertdatetime media nonbreaking save table directionality","emoticons paste codesample","autoresize"],taskOptions:{statusbar:!1,menubar:!1,autoresize_bottom_margin:2,min_height:200,max_height:380,contextmenu:"bold italic underline forecolor backcolor | codesample | uploadImages imagePreview | preview screenload",valid_elements:"a[href|target=_blank],em,strong/b,div[align],span[style],a,br,p,img[src|alt|witdh|height],pre[class],code",toolbar:!1},taskOptionFull:{menubar:"file edit view",valid_elements:"a[href|target=_blank],em,strong/b,div[align],span[style],a,br,p,img[src|alt|witdh|height],pre[class],code",toolbar:"uploadImages | bold italic underline forecolor backcolor | codesample | preview screenload"},dialogDrag:!1,imageAttachment:!0,receiveTaskSubscribe:null,loops:[{key:"never",label:"\u4ECE\u4E0D"},{key:"day",label:"\u6BCF\u5929"},{key:"weekdays",label:"\u6BCF\u4E2A\u5DE5\u4F5C\u65E5"},{key:"week",label:"\u6BCF\u5468"},{key:"twoweeks",label:"\u6BCF\u4E24\u5468"},{key:"month",label:"\u6BCF\u6708"},{key:"year",label:"\u6BCF\u5E74"},{key:"custom",label:"\u81EA\u5B9A\u4E49"}]}},created(){const t=$A.getObject(this.$route.query,"navActive");["dialog","log"].includes(t)&&(this.navActive=t)},mounted(){this.nowInterval=setInterval(()=>{this.nowTime=$A.Time()},1e3),this.receiveTaskSubscribe=c.Store.subscribe("receiveTask",()=>{this.receiveShow=!0})},destroyed(){clearInterval(this.nowInterval),this.receiveTaskSubscribe&&(this.receiveTaskSubscribe.unsubscribe(),this.receiveTaskSubscribe=null)},computed:{...u(["cacheProjects","cacheColumns","cacheTasks","taskContents","taskFiles","taskPriority","dialogId"]),projectName(){if(!this.taskDetail.project_id)return"";if(this.taskDetail.project_name)return this.taskDetail.project_name;const t=this.cacheProjects.find(({id:a})=>a==this.taskDetail.project_id);return t?t.name:""},columnName(){if(!this.taskDetail.column_id)return"";if(this.taskDetail.column_name)return this.taskDetail.column_name;const t=this.cacheColumns.find(({id:a})=>a==this.taskDetail.column_id);return t?t.name:""},taskContent(){if(!this.taskId)return"";let t=this.taskContents.find(({task_id:a})=>a==this.taskId);return t?t.content:""},fileList(){return this.taskId?this.taskFiles.filter(({task_id:t})=>t==this.taskId).sort((t,a)=>a.id-t.id):[]},subList(){return this.taskId?this.cacheTasks.filter(t=>t.parent_id==this.taskId).sort((t,a)=>t.id-a.id):[]},hasOpenDialog(){return this.taskDetail.dialog_id>0&&this.windowLarge},dialogStyle(){const{windowHeight:t,hasOpenDialog:a}=this,e=Math.min(1100,t);if(!e)return{};if(!a)return{};const s=e>900?200:70;return{minHeight:e-s-48+"px"}},taskDetailStyle(){const{modalMode:t,windowHeight:a,hasOpenDialog:e}=this,s=Math.min(1100,a);if(t&&e){const i=s>900?200:70;return{maxHeight:s-i-30+"px"}}return{}},cutTime(){const{taskDetail:t}=this;let a=$A.Date(t.start_at,!0),e=$A.Date(t.end_at,!0),s="";return $A.formatDate("Y/m/d",a)==$A.formatDate("Y/m/d",e)?s=$A.formatDate("Y/m/d H:i",a)+" ~ "+$A.formatDate("H:i",e):$A.formatDate("Y",a)==$A.formatDate("Y",e)?(s=$A.formatDate("Y/m/d H:i",a)+" ~ "+$A.formatDate("m/d H:i",e),s=s.replace(/( 00:00| 23:59)/g,"")):(s=$A.formatDate("Y/m/d H:i",a)+" ~ "+$A.formatDate("Y/m/d H:i",e),s=s.replace(/( 00:00| 23:59)/g,"")),s},getOwner(){const{taskDetail:t}=this;return $A.isArray(t.task_user)?t.task_user.filter(({owner:a})=>a===1).sort((a,e)=>a.id-e.id):[]},getAssist(){const{taskDetail:t}=this;return $A.isArray(t.task_user)?t.task_user.filter(({owner:a})=>a!==1).sort((a,e)=>a.id-e.id):[]},menuList(){const{taskDetail:t}=this,a=[];return t.p_name||a.push({command:"priority",icon:"",name:"\u4F18\u5148\u7EA7"}),$A.isArray(t.task_user)&&t.task_user.find(({owner:e})=>e!==1)||a.push({command:"assist",icon:"",name:"\u534F\u52A9\u4EBA\u5458"}),t.end_at||a.push({command:"times",icon:"",name:"\u622A\u6B62\u65F6\u95F4"}),(!t.loop||t.loop=="never")&&a.push({command:"loop",icon:"",name:"\u91CD\u590D\u5468\u671F"}),this.fileList.length==0&&a.push({command:"file",icon:"",name:"\u9644\u4EF6"}),this.subList.length==0&&a.push({command:"subtask",icon:"",name:"\u5B50\u4EFB\u52A1"}),a},menuText(){const{menuList:t}=this;let a="";return t.length>0&&t.forEach((e,s)=>{s>0&&(a+=" / "),a+=this.$L(e.name)}),a}},watch:{openTask:{handler(t){this.taskDetail=$A.cloneJSON(t),this.__openTask&&clearTimeout(this.__openTask),this.__openTask=setTimeout(a=>{var e;return(e=this.$refs.name)==null?void 0:e.resizeTextarea()},100)},immediate:!0,deep:!0},taskId:{handler(t){t>0?this.ready=!0:(this.windowSmall&&$A.onBlur(),this.timeOpen=!1,this.timeForce=!1,this.loopForce=!1,this.assistForce=!1,this.addsubForce=!1,this.receiveShow=!1,this.$refs.owner&&this.$refs.owner.handleClose(),this.$refs.assist&&this.$refs.assist.handleClose(),this.$refs.chatInput&&this.$refs.chatInput.hidePopover())},immediate:!0},receiveShow(t){t&&(this.timeValue=this.taskDetail.end_at?[this.taskDetail.start_at,this.taskDetail.end_at]:[])}},methods:{within24Hours(t){return $A.Date(t,!0)-this.nowTime<86400},expiresFormat(t){return $A.countDownFormat(t,this.nowTime)},isOverdue(t){return t.overdue?!0:$A.Date(t.end_at,!0)e.key===t);return a?a.label:t?`\u6BCF${t}\u5929`:"\u4ECE\u4E0D"},onNameKeydown(t){t.keyCode===13&&(t.shiftKey||(t.preventDefault(),this.updateData("name")))},checkUpdate(t){let a=!1;if(this.openTask.name!=this.taskDetail.name)if(a=!0,t===!0)this.updateData("name");else return t===!1&&this.$refs.name.focus(),!0;if(this.$refs.desc&&this.$refs.desc.getContent()!=this.taskContent)if(a=!0,t===!0)this.updateData("content");else return t===!1&&this.$refs.desc.focus(),!0;if(this.addsubShow&&this.addsubName)if(a=!0,t===!0)this.onAddsub();else return t===!1&&this.$refs.addsub.focus(),!0;return this.subList.some(({id:e})=>{this.$refs[`subTask_${e}`][0].checkUpdate(t)&&(a=!0)}),a},updateBlur(t,a){this.canUpdateBlur&&this.updateData(t,a)},updateData(t,a){let e=null;switch(t){case"priority":this.$set(this.taskDetail,"p_level",a.priority),this.$set(this.taskDetail,"p_name",a.name),this.$set(this.taskDetail,"p_color",a.color),t=["p_level","p_name","p_color"];break;case"times":if(this.taskDetail.start_at&&(Math.abs($A.Time(this.taskDetail.start_at)-$A.Time(a.start_at))>60||Math.abs($A.Time(this.taskDetail.end_at)-$A.Time(a.end_at))>60)&&typeof a.desc=="undefined"){$A.modalInput({title:"\u4FEE\u6539\u4EFB\u52A1\u65F6\u95F4",placeholder:"\u8BF7\u8F93\u5165\u4FEE\u6539\u5907\u6CE8",okText:"\u786E\u5B9A",onOk:o=>o?(this.updateData("times",Object.assign(a,{desc:o})),!1):"\u8BF7\u8F93\u5165\u4FEE\u6539\u5907\u6CE8"});return}this.$set(this.taskDetail,"times",[a.start_at,a.end_at,a.desc]);break;case"loop":if(a==="custom"){this.customLoop();return}this.$set(this.taskDetail,"loop",a);break;case"content":const i=this.$refs.desc.getContent();if(i==this.taskContent)return;this.$set(this.taskDetail,"content",i),e=()=>{this.$store.dispatch("saveTaskContent",{task_id:this.taskId,content:i})};break}let s={task_id:this.taskDetail.id};($A.isArray(t)?t:[t]).forEach(i=>{let o=this.taskDetail[i],d=this.openTask[i];$A.jsonStringify(o)!=$A.jsonStringify(d)&&(s[i]=o)}),!(Object.keys(s).length<=1)&&this.$store.dispatch("taskUpdate",s).then(({msg:i})=>{$A.messageSuccess(i),typeof e=="function"&&e()}).catch(({msg:i})=>{$A.modalError(i)})},customLoop(){let t=this.taskDetail.loop||1;$A.Modal.confirm({render:a=>a("div",[a("div",{style:{fontSize:"16px",fontWeight:"500",marginBottom:"20px"}},this.$L("\u91CD\u590D\u5468\u671F")),a("Input",{style:{width:"160px",margin:"0 auto"},props:{type:"number",value:t,maxlength:3},on:{input:e=>{t=$.runNum(e)}}},[a("span",{slot:"prepend"},this.$L("\u6BCF")),a("span",{slot:"append"},this.$L("\u5929"))])]),onOk:a=>{this.$Modal.remove(),t>0&&this.updateData("loop",t)},loading:!0,okText:this.$L("\u786E\u5B9A"),cancelText:this.$L("\u53D6\u6D88")})},openOwner(){const t=this.getOwner.map(({userid:a})=>a);this.$set(this.taskDetail,"owner_userid",t),this.$set(this.ownerData,"owner_userid",t)},onOwner(t){let a={task_id:this.taskDetail.id,owner:this.ownerData.owner_userid};if(t===!0){if(this.getOwner.length>0){this.receiveShow=!1,$A.messageError("\u4EFB\u52A1\u5DF2\u88AB\u9886\u53D6");return}let e=$A.date2string(this.timeValue,"Y-m-d H:i");if(e[0]&&e[1])$A.rightExists(e[0],"00:00")&&$A.rightExists(e[1],"00:00")&&(e[1]=e[1].replace("00:00","23:59"));else{$A.messageError("\u8BF7\u8BBE\u7F6E\u8BA1\u5212\u65F6\u95F4");return}a.times=e,a.owner=this.ownerData.owner_userid=[this.userId]}$A.jsonStringify(this.taskDetail.owner_userid)!==$A.jsonStringify(this.ownerData.owner_userid)&&($A.count(a.owner)==0&&(a.owner=""),this.ownerLoad++,this.$store.dispatch("taskUpdate",a).then(({msg:e})=>{$A.messageSuccess(e),this.ownerLoad--,this.receiveShow=!1,this.$store.dispatch("getTaskOne",this.taskDetail.id).catch(()=>{})}).catch(({msg:e})=>{$A.modalError(e),this.ownerLoad--,this.receiveShow=!1}))},openAssist(){const t=this.getAssist.map(({userid:a})=>a);this.$set(this.taskDetail,"assist_userid",t),this.$set(this.assistData,"assist_userid",t),this.$set(this.assistData,"disabled",this.getOwner.map(({userid:a})=>a).filter(a=>a!=this.userId))},onAssist(){if($A.jsonStringify(this.taskDetail.assist_userid)!==$A.jsonStringify(this.assistData.assist_userid)){if(this.getOwner.find(({userid:t})=>t===this.userId)&&this.assistData.assist_userid.find(t=>t===this.userId)){$A.modalConfirm({content:"\u4F60\u5F53\u524D\u662F\u8D1F\u8D23\u4EBA\uFF0C\u786E\u5B9A\u8981\u8F6C\u4E3A\u534F\u52A9\u4EBA\u5458\u5417\uFF1F",cancelText:"\u53D6\u6D88",okText:"\u786E\u5B9A",onOk:()=>{this.onAssistConfirm()}});return}this.onAssistConfirm()}},onAssistConfirm(){let t=this.assistData.assist_userid;t.length===0&&(t=!1),this.assistLoad++,this.$store.dispatch("taskUpdate",{task_id:this.taskDetail.id,assist:t}).then(({msg:a})=>{$A.messageSuccess(a),this.assistLoad--,this.$store.dispatch("getTaskOne",this.taskDetail.id).catch(()=>{})}).catch(({msg:a})=>{$A.modalError(a),this.assistLoad--})},openTime(){this.timeOpen=!this.timeOpen,this.timeOpen&&(this.timeValue=this.taskDetail.end_at?[this.taskDetail.start_at,this.taskDetail.end_at]:[])},timeChange(t){t||(this.timeOpen=!1)},timeClear(){this.updateData("times",{start_at:!1,end_at:!1}),this.timeOpen=!1},timeOk(){let t=$A.date2string(this.timeValue,"Y-m-d H:i");t[0]&&t[1]&&$A.rightExists(t[0],"00:00")&&$A.rightExists(t[1],"00:00")&&(t[1]=t[1].replace("00:00","23:59")),this.updateData("times",{start_at:t[0],end_at:t[1]}),this.timeOpen=!1},addsubOpen(){this.addsubShow=!0,this.$nextTick(()=>{this.$refs.addsub.focus()})},addsubChackClose(){this.addsubName==""&&(this.addsubShow=!1)},addsubKeydown(t){if(t.keyCode===13){if(t.shiftKey||this.addsubLoad>0)return;t.preventDefault(),this.onAddsub()}},onAddsub(){if(this.addsubName==""){$A.messageError("\u4EFB\u52A1\u63CF\u8FF0\u4E0D\u80FD\u4E3A\u7A7A");return}this.addsubLoad++,this.$store.dispatch("taskAddSub",{task_id:this.taskDetail.id,name:this.addsubName}).then(({msg:t})=>{$A.messageSuccess(t),this.addsubLoad--,this.addsubName=""}).catch(({msg:t})=>{$A.modalError(t),this.addsubLoad--})},getLogLists(){this.navActive=="log"&&this.$refs.log.getLists(!0)},logLoadChange(t){this.logLoadIng=t},dropAdd(t){switch(t){case"priority":this.$set(this.taskDetail,"p_name",this.$L("\u672A\u8BBE\u7F6E")),this.$nextTick(()=>{this.$refs.priority.show()});break;case"assist":this.assistForce=!0,this.openAssist(),this.$nextTick(()=>{this.$refs.assist.handleClick()});break;case"times":this.timeForce=!0,this.$nextTick(()=>{this.openTime()});break;case"loop":this.loopForce=!0,this.$nextTick(()=>{this.$refs.loop.show()});break;case"file":this.onUploadClick(!0);break;case"subtask":this.addsubForce=!0,this.$nextTick(()=>{this.addsubOpen()});break}},onEventMore(t){["image","file"].includes(t)&&this.onUploadClick(!1)},onUploadClick(t){this.imageAttachment=!!t,this.$refs.upload.handleClick()},msgDialog(t=null,a=!1){this.sendLoad>0||this.openLoad>0||(a===!0?this.openLoad++:this.sendLoad++,this.$store.dispatch("call",{url:"project/task/dialog",data:{task_id:this.taskDetail.id}}).then(({data:e})=>{this.$store.dispatch("saveTask",{id:e.id,dialog_id:e.dialog_id}),this.$store.dispatch("saveDialog",e.dialog_data),$A.isSubElectron?this.resizeDialog().then(()=>{this.sendDialogMsg(t)}):this.$nextTick(()=>{if(this.windowSmall){$A.onBlur();const s={time:$A.Time()+10,msgRecord:this.msgRecord,msgFile:this.msgFile,msgText:typeof t=="string"&&t?t:this.msgText,dialogId:e.dialog_id};this.msgRecord={},this.msgFile=[],this.msgText="",this.$nextTick(i=>{this.dialogId>0&&this.$store.dispatch("openTask",0),this.$store.dispatch("openDialog",e.dialog_id).then(o=>{this.$store.state.dialogMsgTransfer=s})})}else this.sendDialogMsg(t)})}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{a===!0?this.openLoad--:this.sendLoad--}))},sendDialogMsg(t=null){this.msgFile.length>0?this.$refs.dialog.sendFileMsg(this.msgFile.map(a=>Object.assign(a,{ajaxExtraData:{image_attachment:this.imageAttachment?1:0}}))):this.msgText?this.$refs.dialog.sendMsg(this.msgText):typeof t=="string"&&t&&this.$refs.dialog.sendMsg(t),this.msgFile=[],this.msgText=""},taskPasteDrag(t,a){this.dialogDrag=!1;const e=a==="drag"?t.dataTransfer.files:t.clipboardData.files;this.msgFile=Array.prototype.slice.call(e),this.msgFile.length>0&&(t.preventDefault(),this.msgDialog())},taskDragOver(t,a){let e=this.__dialogDrag=$A.randomString(8);if(!t)setTimeout(()=>{e===this.__dialogDrag&&(this.dialogDrag=t)},150);else{if(a.dataTransfer.effectAllowed==="move")return;this.dialogDrag=!0}},onSelectFile(t){this.msgFile=$A.isArray(t)?t:[t],this.msgDialog()},onRecord(t){this.msgRecord=t,this.msgDialog()},onSend(t){this.$refs.chatInput&&this.$refs.chatInput.hidePopover(),t==="open"?this.msgDialog(null,!0):this.msgDialog(t)},deleteFile(t){this.$set(t,"_show_menu",!1),this.$store.dispatch("forgetTaskFile",t.id),this.$store.dispatch("call",{url:"project/task/filedelete",data:{file_id:t.id}}).catch(({msg:a})=>{$A.modalError(a),this.$store.dispatch("getTaskFiles",this.taskDetail.id)})},openMenu(t,a){const e=this.$refs[`taskMenu_${a.id}`];e&&e.handleClick(t)},openNewWin(){let t={title:this.taskDetail.name,titleFixed:!0,parent:null,width:Math.min(window.screen.availWidth,this.$el.clientWidth+72),height:Math.min(window.screen.availHeight,this.$el.clientHeight+72),minWidth:600,minHeight:450};this.hasOpenDialog&&(t.minWidth=800,t.minHeight=600),this.$Electron.sendMessage("windowRouter",{name:`task-${this.taskDetail.id}`,path:`/single/task/${this.taskDetail.id}?navActive=${this.navActive}`,force:!1,config:t}),this.$store.dispatch("openTask",0)},resizeDialog(){return new Promise(t=>{this.$Electron.sendMessage("windowSize",{width:Math.max(1100,this.windowWidth),height:Math.max(720,this.windowHeight),minWidth:800,minHeight:600,autoZoom:!0});let a=0,e=setInterval(()=>{a++,(this.$refs.dialog||a>20)&&(clearInterval(e),this.$refs.dialog&&t())},100)})},viewFile(t){if(["jpg","jpeg","gif","png"].includes(t.ext)){const e=this.fileList.filter(i=>["jpg","jpeg","gif","png"].includes(i.ext)),s=e.findIndex(i=>i.id===t.id);s>-1?(this.$store.state.previewImageIndex=s,this.$store.state.previewImageList=e.map(i=>({src:i.path,width:i.width,height:i.height}))):(this.$store.state.previewImageIndex=0,this.$store.state.previewImageList=[{src:t.path,width:t.width,height:t.height}]);return}const a=`/single/file/task/${t.id}`;this.$Electron?this.$Electron.sendMessage("windowRouter",{name:`file-task-${t.id}`,path:a,userAgent:"/hideenOfficeTitle/",force:!1,config:{title:`${t.name} (${$A.bytesToSize(t.size)})`,titleFixed:!0,parent:null,width:Math.min(window.screen.availWidth,1440),height:Math.min(window.screen.availHeight,900)},webPreferences:{nodeIntegrationInSubFrames:t.ext==="drawio"}}):this.$isEEUiApp?$A.eeuiAppOpenPage({pageType:"app",pageTitle:`${t.name} (${$A.bytesToSize(t.size)})`,url:"web.js",params:{titleFixed:!0,allowAccess:!0,url:$A.rightDelete(window.location.href,window.location.hash)+`#${a}`}}):window.open($A.apiUrl(`..${a}`))},downFile(t){$A.modalConfirm({title:"\u4E0B\u8F7D\u6587\u4EF6",content:`${t.name} (${$A.bytesToSize(t.size)})`,okText:"\u7ACB\u5373\u4E0B\u8F7D",onOk:()=>{this.$store.dispatch("downUrl",$A.apiUrl(`project/task/filedown?file_id=${t.id}`))}})}}},l={};var T=r(x,A,L,!1,I,null,null,null);function I(t){for(let a in l)this[a]=l[a]}var z=function(){return T.exports}();export{z as T}; +import{n as r,d as c,m as u}from"./app.feefc813.js";import h from"./TEditor.a1d21399.js";import{P as m,T as p}from"./ProjectLog.ac7d2c0b.js";import{U as f}from"./UserInput.2bc16b15.js";import{C as k,D as g}from"./DialogWrapper.0c8b0be3.js";import{T as _}from"./TaskMenu.0eaf56d7.js";var v=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("Upload",{ref:"upload",attrs:{name:"files",action:"",multiple:"",format:t.uploadFormat,"show-upload-list":!1,"max-size":t.maxSize,"on-format-error":t.handleFormatError,"on-exceeded-size":t.handleMaxSize,"before-upload":t.handleBeforeUpload}})},w=[];const D={name:"TaskUpload",props:{maxSize:{type:Number,default:1024e3}},data(){return{uploadFormat:["jpg","jpeg","png","gif","doc","docx","xls","xlsx","ppt","pptx","txt","esp","pdf","rar","zip","gz","ai","avi","bmp","cdr","eps","mov","mp3","mp4","pr","psd","svg","tif"]}},methods:{handleFormatError(t){$A.modalWarning({title:"\u6587\u4EF6\u683C\u5F0F\u4E0D\u6B63\u786E",content:"\u6587\u4EF6 "+t.name+" \u683C\u5F0F\u4E0D\u6B63\u786E\uFF0C\u4EC5\u652F\u6301\u53D1\u9001\uFF1A"+this.uploadFormat.join(",")})},handleMaxSize(t){$A.modalWarning({title:"\u8D85\u51FA\u6587\u4EF6\u5927\u5C0F\u9650\u5236",content:"\u6587\u4EF6 "+t.name+" \u592A\u5927\uFF0C\u4E0D\u80FD\u53D1\u9001\u8D85\u8FC7"+$A.bytesToSize(this.maxSize*1024)+"\u3002"})},handleBeforeUpload(t){return this.$emit("on-select-file",t),!1},handleClick(){this.$refs.upload.handleClick()}}},n={};var b=r(D,v,w,!1,C,null,null,null);function C(t){for(let a in n)this[a]=n[a]}var y=function(){return b.exports}(),A=function(){var t=this,a=t.$createElement,e=t._self._c||a;return t.ready&&t.taskDetail.parent_id>0?e("li",[e("div",{staticClass:"subtask-icon"},[e("TaskMenu",{ref:`taskMenu_${t.taskDetail.id}`,attrs:{disabled:t.taskId===0,task:t.taskDetail,"load-status":t.taskDetail.loading===!0},on:{"on-update":t.getLogLists}})],1),t.taskDetail.flow_item_name?e("div",{staticClass:"subtask-flow"},[e("span",{class:t.taskDetail.flow_item_status,on:{click:function(s){return s.stopPropagation(),t.openMenu(s,t.taskDetail)}}},[t._v(t._s(t.taskDetail.flow_item_name))])]):t._e(),e("div",{staticClass:"subtask-name"},[e("Input",{ref:"name",attrs:{type:"textarea",rows:1,autosize:{minRows:1,maxRows:8},maxlength:255,enterkeyhint:"done"},on:{"on-blur":function(s){return t.updateBlur("name")},"on-keydown":t.onNameKeydown},model:{value:t.taskDetail.name,callback:function(s){t.$set(t.taskDetail,"name",s)},expression:"taskDetail.name"}})],1),e("DatePicker",{staticClass:"subtask-time",attrs:{open:t.timeOpen,options:t.timeOptions,format:"yyyy/MM/dd HH:mm",type:"datetimerange",placement:"bottom-end",transfer:""},on:{"on-open-change":t.timeChange,"on-clear":t.timeClear,"on-ok":t.timeOk},model:{value:t.timeValue,callback:function(s){t.timeValue=s},expression:"timeValue"}},[!t.taskDetail.complete_at&&t.taskDetail.end_at&&t.taskDetail.end_at!=t.mainEndAt?e("div",{class:["time",t.taskDetail.today?"today":"",t.taskDetail.overdue?"overdue":""],on:{click:t.openTime}},[t._v(" "+t._s(t.expiresFormat(t.taskDetail.end_at))+" ")]):e("Icon",{staticClass:"clock",attrs:{type:"ios-clock-outline"},on:{click:t.openTime}})],1),e("Poptip",{ref:"owner",staticClass:"subtask-avatar",attrs:{"popper-class":"task-detail-user-popper",title:t.$L("\u4FEE\u6539\u8D1F\u8D23\u4EBA"),width:240,placement:"bottom",transfer:""},on:{"on-popper-show":t.openOwner,"on-ok":t.onOwner}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("UserInput",{attrs:{"multiple-max":1,"project-id":t.taskDetail.project_id,placeholder:t.$L("\u9009\u62E9\u4EFB\u52A1\u8D1F\u8D23\u4EBA"),transfer:!1,"max-hidden-select":""},model:{value:t.ownerData.owner_userid,callback:function(s){t.$set(t.ownerData,"owner_userid",s)},expression:"ownerData.owner_userid"}}),e("div",{staticClass:"task-detail-avatar-buttons"},[e("Button",{attrs:{size:"small",type:"primary"},on:{click:function(s){return t.$refs.owner.ok()}}},[t._v(t._s(t.$L("\u786E\u5B9A")))])],1)],1),t.getOwner.length>0?t._l(t.getOwner,function(s){return e("UserAvatar",{key:s.userid,attrs:{userid:s.userid,size:20,tooltipDisabled:""}})}):e("div",[t._v("--")])],2)],1):t.ready?e("div",{class:{"task-detail":!0,"open-dialog":t.hasOpenDialog,completed:t.taskDetail.complete_at},style:t.taskDetailStyle},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.taskDetail.id>0,expression:"taskDetail.id > 0"}],staticClass:"task-info"},[e("div",{staticClass:"head"},[e("TaskMenu",{ref:`taskMenu_${t.taskDetail.id}`,staticClass:"icon",attrs:{disabled:t.taskId===0,task:t.taskDetail,size:"medium","color-show":!1},on:{"on-update":t.getLogLists}}),t.taskDetail.flow_item_name?e("div",{staticClass:"flow"},[e("span",{class:t.taskDetail.flow_item_status,on:{click:function(s){return s.stopPropagation(),t.openMenu(s,t.taskDetail)}}},[t._v(t._s(t.taskDetail.flow_item_name))])]):t._e(),t.taskDetail.archived_at?e("div",{staticClass:"flow"},[e("span",{staticClass:"archived",on:{click:function(s){return s.stopPropagation(),t.openMenu(s,t.taskDetail)}}},[t._v(t._s(t.$L("\u5DF2\u5F52\u6863")))])]):t._e(),e("div",{staticClass:"nav"},[t.projectName?e("p",[e("span",[t._v(t._s(t.projectName))])]):t._e(),t.columnName?e("p",[e("span",[t._v(t._s(t.columnName))])]):t._e(),t.taskDetail.id?e("p",[e("span",[t._v(t._s(t.taskDetail.id))])]):t._e()]),e("div",{staticClass:"function"},[t.getOwner.length===0?e("EPopover",{attrs:{placement:"bottom"},model:{value:t.receiveShow,callback:function(s){t.receiveShow=s},expression:"receiveShow"}},[e("div",{staticClass:"task-detail-receive"},[e("div",{staticClass:"receive-title"},[e("Icon",{attrs:{type:"ios-help-circle"}}),t._v(" "+t._s(t.$L("\u786E\u8BA4\u8BA1\u5212\u65F6\u95F4\u9886\u53D6\u4EFB\u52A1"))+" ")],1),e("div",{staticClass:"receive-time"},[e("DatePicker",{attrs:{options:t.timeOptions,format:"yyyy/MM/dd HH:mm",type:"datetimerange",placeholder:t.$L("\u8BF7\u8BBE\u7F6E\u8BA1\u5212\u65F6\u95F4"),clearable:!1,editable:!1},model:{value:t.timeValue,callback:function(s){t.timeValue=s},expression:"timeValue"}})],1),e("div",{staticClass:"receive-bottom"},[e("Button",{attrs:{size:"small",type:"text"},on:{click:function(s){t.receiveShow=!1}}},[t._v("\u53D6\u6D88")]),e("Button",{attrs:{loading:t.ownerLoad>0,size:"small",type:"primary"},on:{click:function(s){return t.onOwner(!0)}}},[t._v("\u786E\u5B9A")])],1)]),e("Button",{staticClass:"pick",attrs:{slot:"reference",loading:t.ownerLoad>0,type:"primary"},slot:"reference"},[t._v(t._s(t.$L("\u6211\u8981\u9886\u53D6\u4EFB\u52A1")))])],1):t._e(),t.$Electron?e("ETooltip",{attrs:{disabled:t.windowSmall||t.$isEEUiApp,content:t.$L("\u65B0\u7A97\u53E3\u6253\u5F00")}},[e("i",{staticClass:"taskfont open",on:{click:t.openNewWin}},[t._v("\uE776")])]):t._e(),e("div",{staticClass:"menu"},[e("TaskMenu",{attrs:{disabled:t.taskId===0,task:t.taskDetail,icon:"ios-more","completed-icon":"ios-more",size:"medium","color-show":!1},on:{"on-update":t.getLogLists}})],1)],1)],1),e("div",{staticClass:"scroller scrollbar-overlay"},[e("div",{staticClass:"title"},[e("Input",{ref:"name",attrs:{type:"textarea",rows:1,autosize:{minRows:1,maxRows:8},maxlength:255,enterkeyhint:"done"},on:{"on-blur":function(s){return t.updateBlur("name")},"on-keydown":t.onNameKeydown},model:{value:t.taskDetail.name,callback:function(s){t.$set(t.taskDetail,"name",s)},expression:"taskDetail.name"}})],1),e("div",{staticClass:"desc"},[e("TEditor",{ref:"desc",attrs:{value:t.taskContent,plugins:t.taskPlugins,options:t.taskOptions,"option-full":t.taskOptionFull,placeholder:t.$L("\u8BE6\u7EC6\u63CF\u8FF0..."),inline:""},on:{"on-blur":function(s){return t.updateBlur("content")}}})],1),e("Form",{staticClass:"items",attrs:{"label-position":"left","label-width":"auto"},nativeOn:{submit:function(s){s.preventDefault()}}},[t.taskDetail.p_name?e("FormItem",[e("div",{staticClass:"item-label",attrs:{slot:"label"},slot:"label"},[e("i",{staticClass:"taskfont"},[t._v("\uE6EC")]),t._v(t._s(t.$L("\u4F18\u5148\u7EA7"))+" ")]),e("ul",{staticClass:"item-content"},[e("li",[e("EDropdown",{ref:"priority",attrs:{trigger:"click",placement:"bottom"},on:{command:function(s){return t.updateData("priority",s)}}},[e("TaskPriority",{attrs:{backgroundColor:t.taskDetail.p_color}},[t._v(t._s(t.taskDetail.p_name))]),e("EDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},t._l(t.taskPriority,function(s,i){return e("EDropdownItem",{key:i,attrs:{command:s}},[e("i",{staticClass:"taskfont",style:{color:s.color},domProps:{innerHTML:t._s(t.taskDetail.p_name==s.name?"":"")}}),t._v(" "+t._s(s.name)+" ")])}),1)],1)],1)])]):t._e(),t.getOwner.length>0?e("FormItem",[e("div",{staticClass:"item-label",attrs:{slot:"label"},slot:"label"},[e("i",{staticClass:"taskfont"},[t._v("\uE6E4")]),t._v(t._s(t.$L("\u8D1F\u8D23\u4EBA"))+" ")]),e("Poptip",{ref:"owner",staticClass:"item-content user",attrs:{title:t.$L("\u4FEE\u6539\u8D1F\u8D23\u4EBA"),width:240,"popper-class":"task-detail-user-popper",placement:"bottom",transfer:""},on:{"on-popper-show":t.openOwner,"on-ok":t.onOwner}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("UserInput",{attrs:{"multiple-max":10,"project-id":t.taskDetail.project_id,placeholder:t.$L("\u9009\u62E9\u4EFB\u52A1\u8D1F\u8D23\u4EBA"),transfer:!1},model:{value:t.ownerData.owner_userid,callback:function(s){t.$set(t.ownerData,"owner_userid",s)},expression:"ownerData.owner_userid"}}),e("div",{staticClass:"task-detail-avatar-buttons"},[e("Button",{attrs:{size:"small",type:"primary"},on:{click:function(s){return t.$refs.owner.ok()}}},[t._v(t._s(t.$L("\u786E\u5B9A")))])],1)],1),e("div",{staticClass:"user-list"},t._l(t.getOwner,function(s){return e("UserAvatar",{key:s.userid,attrs:{userid:s.userid,size:28,showName:t.getOwner.length===1,tooltipDisabled:""}})}),1)])],1):t._e(),t.getAssist.length>0||t.assistForce?e("FormItem",[e("div",{staticClass:"item-label",attrs:{slot:"label"},slot:"label"},[e("i",{staticClass:"taskfont"},[t._v("\uE63F")]),t._v(t._s(t.$L("\u534F\u52A9\u4EBA\u5458"))+" ")]),e("Poptip",{ref:"assist",staticClass:"item-content user",attrs:{title:t.$L(t.getAssist.length>0?"\u4FEE\u6539\u534F\u52A9\u4EBA\u5458":"\u6DFB\u52A0\u534F\u52A9\u4EBA\u5458"),width:280,"popper-class":"task-detail-user-popper",placement:"bottom",transfer:""},on:{"on-popper-show":t.openAssist,"on-ok":t.onAssist}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("UserInput",{attrs:{"multiple-max":10,"project-id":t.taskDetail.project_id,"disabled-choice":t.assistData.disabled,placeholder:t.$L("\u9009\u62E9\u4EFB\u52A1\u534F\u52A9\u4EBA\u5458"),transfer:!1},model:{value:t.assistData.assist_userid,callback:function(s){t.$set(t.assistData,"assist_userid",s)},expression:"assistData.assist_userid"}}),e("div",{staticClass:"task-detail-avatar-buttons"},[e("Button",{attrs:{size:"small",type:"primary"},on:{click:function(s){return t.$refs.assist.ok()}}},[t._v(t._s(t.$L("\u786E\u5B9A")))])],1)],1),t.getAssist.length>0?e("div",{staticClass:"user-list"},t._l(t.getAssist,function(s){return e("UserAvatar",{key:s.userid,attrs:{userid:s.userid,size:28,showName:t.getAssist.length===1,tooltipDisabled:""}})}),1):e("div",[t._v("--")])])],1):t._e(),t.taskDetail.end_at||t.timeForce?e("FormItem",[e("div",{staticClass:"item-label",attrs:{slot:"label"},slot:"label"},[e("i",{staticClass:"taskfont"},[t._v("\uE6E8")]),t._v(t._s(t.$L("\u622A\u6B62\u65F6\u95F4"))+" ")]),e("ul",{staticClass:"item-content"},[e("li",[e("DatePicker",{attrs:{open:t.timeOpen,options:t.timeOptions,format:"yyyy/MM/dd HH:mm",type:"datetimerange",transfer:""},on:{"on-open-change":t.timeChange,"on-clear":t.timeClear,"on-ok":t.timeOk},model:{value:t.timeValue,callback:function(s){t.timeValue=s},expression:"timeValue"}},[e("div",{staticClass:"picker-time"},[e("div",{staticClass:"time",on:{click:t.openTime}},[t._v(t._s(t.taskDetail.end_at?t.cutTime:"--"))]),!t.taskDetail.complete_at&&t.taskDetail.end_at?[t.within24Hours(t.taskDetail.end_at)?e("Tag",{attrs:{color:"blue"}},[e("i",{staticClass:"taskfont"},[t._v("\uE71D")]),t._v(t._s(t.expiresFormat(t.taskDetail.end_at)))]):t._e(),t.isOverdue(t.taskDetail)?e("Tag",{attrs:{color:"red"}},[t._v(t._s(t.$L("\u8D85\u671F\u672A\u5B8C\u6210")))]):t._e()]:t._e()],2)])],1)])]):t._e(),t.taskDetail.loop&&t.taskDetail.loop!="never"||t.loopForce?e("FormItem",[e("div",{staticClass:"item-label",attrs:{slot:"label"},slot:"label"},[e("i",{staticClass:"taskfont"},[t._v("\uE93F")]),t._v(t._s(t.$L("\u91CD\u590D\u5468\u671F"))+" ")]),e("ul",{staticClass:"item-content"},[e("li",[e("EDropdown",{ref:"loop",attrs:{trigger:"click",placement:"bottom"},on:{command:function(s){return t.updateData("loop",s)}}},[e("ETooltip",{attrs:{disabled:t.windowSmall||t.$isEEUiApp||!t.taskDetail.loop_at,content:`${t.$L("\u4E0B\u4E2A\u5468\u671F")}: ${t.taskDetail.loop_at}`,placement:"right"}},[e("span",[t._v(t._s(t.$L(t.loopLabel(t.taskDetail.loop))))])]),e("EDropdownMenu",{staticClass:"task-detail-loop",attrs:{slot:"dropdown"},slot:"dropdown"},t._l(t.loops,function(s){return e("EDropdownItem",{key:s.key,attrs:{command:s.key}},[t._v(" "+t._s(t.$L(s.label))+" ")])}),1)],1)],1)])]):t._e(),t.fileList.length>0?e("FormItem",[e("div",{staticClass:"item-label",attrs:{slot:"label"},slot:"label"},[e("i",{staticClass:"taskfont"},[t._v("\uE6E6")]),t._v(t._s(t.$L("\u9644\u4EF6"))+" ")]),e("ul",{staticClass:"item-content file"},[t.taskDetail.file_num>50?e("li",{staticClass:"tip"},[t._v(t._s(t.$L(`\u5171${t.taskDetail.file_num}\u4E2A\u6587\u4EF6\uFF0C\u4EC5\u663E\u793A\u6700\u65B050\u4E2A`)))]):t._e(),t._l(t.fileList,function(s){return e("li",[s.id?e("img",{staticClass:"file-ext",attrs:{src:s.thumb}}):e("Loading",{staticClass:"file-load"}),e("div",{staticClass:"file-name"},[t._v(t._s(s.name))]),e("div",{staticClass:"file-size"},[t._v(t._s(t.$A.bytesToSize(s.size)))]),e("div",{staticClass:"file-menu",class:{show:s._show_menu}},[e("Icon",{attrs:{type:"md-eye"},on:{click:function(i){return t.viewFile(s)}}}),e("Icon",{attrs:{type:"md-arrow-round-down"},on:{click:function(i){return t.downFile(s)}}}),e("EPopover",{staticClass:"file-delete",model:{value:s._show_menu,callback:function(i){t.$set(s,"_show_menu",i)},expression:"file._show_menu"}},[e("div",{staticClass:"task-detail-delete-file-popover"},[e("p",[t._v(t._s(t.$L("\u4F60\u786E\u5B9A\u8981\u5220\u9664\u8FD9\u4E2A\u6587\u4EF6\u5417\uFF1F")))]),e("div",{staticClass:"buttons"},[e("Button",{attrs:{size:"small",type:"text"},on:{click:function(i){s._show_menu=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{size:"small",type:"primary"},on:{click:function(i){return t.deleteFile(s)}}},[t._v(t._s(t.$L("\u786E\u5B9A")))])],1)]),e("i",{staticClass:"taskfont del",attrs:{slot:"reference"},slot:"reference"},[t._v("\uE6EA")])])],1)],1)})],2),e("ul",{staticClass:"item-content"},[e("li",[e("div",{staticClass:"add-button",on:{click:function(s){return t.onUploadClick(!0)}}},[e("i",{staticClass:"taskfont"},[t._v("\uE6F2")]),t._v(t._s(t.$L("\u6DFB\u52A0\u9644\u4EF6"))+" ")])])])]):t._e(),t.subList.length>0||t.addsubForce?e("FormItem",[e("div",{staticClass:"item-label",attrs:{slot:"label"},slot:"label"},[e("i",{staticClass:"taskfont"},[t._v("\uE6F0")]),t._v(t._s(t.$L("\u5B50\u4EFB\u52A1"))+" ")]),e("ul",{staticClass:"item-content subtask"},t._l(t.subList,function(s,i){return e("TaskDetail",{key:i,ref:`subTask_${s.id}`,refInFor:!0,attrs:{"task-id":s.id,"open-task":s,"main-end-at":t.taskDetail.end_at,"can-update-blur":t.canUpdateBlur}})}),1),e("ul",{class:["item-content",t.subList.length===0?"nosub":""]},[e("li",[t.addsubShow?e("Input",{ref:"addsub",staticClass:"add-input",class:{loading:t.addsubLoad>0},attrs:{placeholder:t.$L("+ \u8F93\u5165\u5B50\u4EFB\u52A1\uFF0C\u56DE\u8F66\u6DFB\u52A0\u5B50\u4EFB\u52A1"),icon:t.addsubLoad>0?"ios-loading":"",enterkeyhint:"done"},on:{"on-blur":t.addsubChackClose,"on-keydown":t.addsubKeydown},model:{value:t.addsubName,callback:function(s){t.addsubName=s},expression:"addsubName"}}):e("div",{staticClass:"add-button",on:{click:t.addsubOpen}},[e("i",{staticClass:"taskfont"},[t._v("\uE6F2")]),t._v(t._s(t.$L("\u6DFB\u52A0\u5B50\u4EFB\u52A1"))+" ")])],1)])]):t._e()],1),t.menuList.length>0?e("div",{staticClass:"add"},[e("EDropdown",{attrs:{trigger:"click",placement:"bottom"},on:{command:t.dropAdd}},[e("div",{staticClass:"add-button"},[e("i",{staticClass:"taskfont"},[t._v("\uE6F2")]),t._v(" "+t._s(t.$L("\u6DFB\u52A0"))+" "),e("em",[t._v(t._s(t.menuText))])]),e("EDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},t._l(t.menuList,function(s,i){return e("EDropdownItem",{key:i,attrs:{command:s.command}},[e("div",{staticClass:"item"},[e("i",{staticClass:"taskfont",domProps:{innerHTML:t._s(s.icon)}}),t._v(t._s(t.$L(s.name))+" ")])])}),1)],1)],1):t._e()],1),e("TaskUpload",{ref:"upload",staticClass:"upload",on:{"on-select-file":t.onSelectFile}})],1),e("div",{directives:[{name:"show",rawName:"v-show",value:t.taskDetail.id>0,expression:"taskDetail.id > 0"}],staticClass:"task-dialog",style:t.dialogStyle},[t.hasOpenDialog?[t.taskId>0?e("DialogWrapper",{ref:"dialog",attrs:{"dialog-id":t.taskDetail.dialog_id}},[e("div",{staticClass:"head",attrs:{slot:"head"},slot:"head"},[e("Icon",{staticClass:"icon",attrs:{type:"ios-chatbubbles-outline"}}),e("div",{staticClass:"nav"},[e("p",{class:{active:t.navActive=="dialog"},on:{click:function(s){t.navActive="dialog"}}},[t._v(t._s(t.$L("\u804A\u5929")))]),e("p",{class:{active:t.navActive=="log"},on:{click:function(s){t.navActive="log"}}},[t._v(t._s(t.$L("\u52A8\u6001")))]),t.navActive=="log"?e("div",{staticClass:"refresh"},[t.logLoadIng?e("Loading"):e("Icon",{attrs:{type:"ios-refresh"},on:{click:t.getLogLists}})],1):t._e()])],1)]):t._e(),t.navActive=="log"&&t.taskId>0?e("ProjectLog",{ref:"log",attrs:{"task-id":t.taskDetail.id},on:{"on-load-change":t.logLoadChange}}):t._e()]:e("div",[e("div",{staticClass:"head"},[e("Icon",{staticClass:"icon",attrs:{type:"ios-chatbubbles-outline"}}),e("div",{staticClass:"nav"},[e("p",{class:{active:t.navActive=="dialog"},on:{click:function(s){t.navActive="dialog"}}},[t._v(t._s(t.$L("\u804A\u5929")))]),e("p",{class:{active:t.navActive=="log"},on:{click:function(s){t.navActive="log"}}},[t._v(t._s(t.$L("\u52A8\u6001")))]),t.navActive=="log"?e("div",{staticClass:"refresh"},[t.logLoadIng?e("Loading"):e("Icon",{attrs:{type:"ios-refresh"},on:{click:t.getLogLists}})],1):t._e()]),e("div",{staticClass:"menu"},[t.navActive=="dialog"&&t.taskDetail.msg_num>0?e("div",{staticClass:"menu-item",on:{click:function(s){return s.stopPropagation(),t.onSend("open")}}},[t.openLoad>0?e("div",{staticClass:"menu-load"},[e("Loading")],1):t._e(),t._v(" "+t._s(t.$L("\u4EFB\u52A1\u804A\u5929"))+" "),e("em",[t._v("("+t._s(t.taskDetail.msg_num>999?"999+":t.taskDetail.msg_num)+")")]),e("i",{staticClass:"taskfont"},[t._v("\uE703")])]):t._e()])],1),t.navActive=="log"&&t.taskId>0?e("ProjectLog",{ref:"log",attrs:{"task-id":t.taskDetail.id,"show-load":!1},on:{"on-load-change":t.logLoadChange}}):e("div",{staticClass:"no-dialog",on:{drop:function(s){return s.preventDefault(),t.taskPasteDrag(s,"drag")},dragover:function(s){return s.preventDefault(),t.taskDragOver(!0,s)},dragleave:function(s){return s.preventDefault(),t.taskDragOver(!1,s)}}},[e("div",{staticClass:"no-tip"},[t._v(t._s(t.$L("\u6682\u65E0\u6D88\u606F")))]),e("div",{staticClass:"no-input"},[e("ChatInput",{ref:"chatInput",attrs:{"task-id":t.taskId,loading:t.sendLoad>0,maxlength:2e5,placeholder:t.$L("\u8F93\u5165\u6D88\u606F...")},on:{"on-more":t.onEventMore,"on-file":t.onSelectFile,"on-record":t.onRecord,"on-send":t.onSend},model:{value:t.msgText,callback:function(s){t.msgText=s},expression:"msgText"}})],1),t.dialogDrag?e("div",{staticClass:"drag-over",on:{click:function(s){t.dialogDrag=!1}}},[e("div",{staticClass:"drag-text"},[t._v(t._s(t.$L("\u62D6\u52A8\u5230\u8FD9\u91CC\u53D1\u9001")))])]):t._e()])],1)],2),t.taskDetail.id?t._e():e("div",{staticClass:"task-load"},[e("Loading")],1)]):t._e()},L=[];const x={name:"TaskDetail",components:{ChatInput:k,TaskMenu:_,ProjectLog:m,DialogWrapper:g,TaskUpload:y,UserInput:f,TaskPriority:p,TEditor:h},props:{taskId:{type:Number,default:0},openTask:{type:Object,default:()=>({})},mainEndAt:{default:null},canUpdateBlur:{type:Boolean,default:!0},modalMode:{type:Boolean,default:!1}},data(){return{ready:!1,taskDetail:{},ownerData:{},ownerLoad:0,receiveShow:!1,assistForce:!1,assistData:{},assistLoad:0,addsubForce:!1,addsubShow:!1,addsubName:"",addsubLoad:0,timeForce:!1,timeOpen:!1,timeValue:[],timeOptions:{shortcuts:$A.timeOptionShortcuts()},loopForce:!1,nowTime:$A.Time(),nowInterval:null,msgText:"",msgFile:[],msgRecord:{},navActive:"dialog",logLoadIng:!1,sendLoad:0,openLoad:0,taskPlugins:["advlist autolink lists link image charmap print preview hr anchor pagebreak","searchreplace visualblocks visualchars code","insertdatetime media nonbreaking save table directionality","emoticons paste codesample","autoresize"],taskOptions:{statusbar:!1,menubar:!1,autoresize_bottom_margin:2,min_height:200,max_height:380,contextmenu:"bold italic underline forecolor backcolor | codesample | uploadImages imagePreview | preview screenload",valid_elements:"a[href|target=_blank],em,strong/b,div[align],span[style],a,br,p,img[src|alt|witdh|height],pre[class],code",toolbar:!1},taskOptionFull:{menubar:"file edit view",valid_elements:"a[href|target=_blank],em,strong/b,div[align],span[style],a,br,p,img[src|alt|witdh|height],pre[class],code",toolbar:"uploadImages | bold italic underline forecolor backcolor | codesample | preview screenload"},dialogDrag:!1,imageAttachment:!0,receiveTaskSubscribe:null,loops:[{key:"never",label:"\u4ECE\u4E0D"},{key:"day",label:"\u6BCF\u5929"},{key:"weekdays",label:"\u6BCF\u4E2A\u5DE5\u4F5C\u65E5"},{key:"week",label:"\u6BCF\u5468"},{key:"twoweeks",label:"\u6BCF\u4E24\u5468"},{key:"month",label:"\u6BCF\u6708"},{key:"year",label:"\u6BCF\u5E74"},{key:"custom",label:"\u81EA\u5B9A\u4E49"}]}},created(){const t=$A.getObject(this.$route.query,"navActive");["dialog","log"].includes(t)&&(this.navActive=t)},mounted(){this.nowInterval=setInterval(()=>{this.nowTime=$A.Time()},1e3),this.receiveTaskSubscribe=c.Store.subscribe("receiveTask",()=>{this.receiveShow=!0})},destroyed(){clearInterval(this.nowInterval),this.receiveTaskSubscribe&&(this.receiveTaskSubscribe.unsubscribe(),this.receiveTaskSubscribe=null)},computed:{...u(["cacheProjects","cacheColumns","cacheTasks","taskContents","taskFiles","taskPriority","dialogId"]),projectName(){if(!this.taskDetail.project_id)return"";if(this.taskDetail.project_name)return this.taskDetail.project_name;const t=this.cacheProjects.find(({id:a})=>a==this.taskDetail.project_id);return t?t.name:""},columnName(){if(!this.taskDetail.column_id)return"";if(this.taskDetail.column_name)return this.taskDetail.column_name;const t=this.cacheColumns.find(({id:a})=>a==this.taskDetail.column_id);return t?t.name:""},taskContent(){if(!this.taskId)return"";let t=this.taskContents.find(({task_id:a})=>a==this.taskId);return t?t.content:""},fileList(){return this.taskId?this.taskFiles.filter(({task_id:t})=>t==this.taskId).sort((t,a)=>a.id-t.id):[]},subList(){return this.taskId?this.cacheTasks.filter(t=>t.parent_id==this.taskId).sort((t,a)=>t.id-a.id):[]},hasOpenDialog(){return this.taskDetail.dialog_id>0&&this.windowLarge},dialogStyle(){const{windowHeight:t,hasOpenDialog:a}=this,e=Math.min(1100,t);if(!e)return{};if(!a)return{};const s=e>900?200:70;return{minHeight:e-s-48+"px"}},taskDetailStyle(){const{modalMode:t,windowHeight:a,hasOpenDialog:e}=this,s=Math.min(1100,a);if(t&&e){const i=s>900?200:70;return{maxHeight:s-i-30+"px"}}return{}},cutTime(){const{taskDetail:t}=this;let a=$A.Date(t.start_at,!0),e=$A.Date(t.end_at,!0),s="";return $A.formatDate("Y/m/d",a)==$A.formatDate("Y/m/d",e)?s=$A.formatDate("Y/m/d H:i",a)+" ~ "+$A.formatDate("H:i",e):$A.formatDate("Y",a)==$A.formatDate("Y",e)?(s=$A.formatDate("Y/m/d H:i",a)+" ~ "+$A.formatDate("m/d H:i",e),s=s.replace(/( 00:00| 23:59)/g,"")):(s=$A.formatDate("Y/m/d H:i",a)+" ~ "+$A.formatDate("Y/m/d H:i",e),s=s.replace(/( 00:00| 23:59)/g,"")),s},getOwner(){const{taskDetail:t}=this;return $A.isArray(t.task_user)?t.task_user.filter(({owner:a})=>a===1).sort((a,e)=>a.id-e.id):[]},getAssist(){const{taskDetail:t}=this;return $A.isArray(t.task_user)?t.task_user.filter(({owner:a})=>a!==1).sort((a,e)=>a.id-e.id):[]},menuList(){const{taskDetail:t}=this,a=[];return t.p_name||a.push({command:"priority",icon:"",name:"\u4F18\u5148\u7EA7"}),$A.isArray(t.task_user)&&t.task_user.find(({owner:e})=>e!==1)||a.push({command:"assist",icon:"",name:"\u534F\u52A9\u4EBA\u5458"}),t.end_at||a.push({command:"times",icon:"",name:"\u622A\u6B62\u65F6\u95F4"}),(!t.loop||t.loop=="never")&&a.push({command:"loop",icon:"",name:"\u91CD\u590D\u5468\u671F"}),this.fileList.length==0&&a.push({command:"file",icon:"",name:"\u9644\u4EF6"}),this.subList.length==0&&a.push({command:"subtask",icon:"",name:"\u5B50\u4EFB\u52A1"}),a},menuText(){const{menuList:t}=this;let a="";return t.length>0&&t.forEach((e,s)=>{s>0&&(a+=" / "),a+=this.$L(e.name)}),a}},watch:{openTask:{handler(t){this.taskDetail=$A.cloneJSON(t),this.__openTask&&clearTimeout(this.__openTask),this.__openTask=setTimeout(a=>{var e;return(e=this.$refs.name)==null?void 0:e.resizeTextarea()},100)},immediate:!0,deep:!0},taskId:{handler(t){t>0?this.ready=!0:(this.windowSmall&&$A.onBlur(),this.timeOpen=!1,this.timeForce=!1,this.loopForce=!1,this.assistForce=!1,this.addsubForce=!1,this.receiveShow=!1,this.$refs.owner&&this.$refs.owner.handleClose(),this.$refs.assist&&this.$refs.assist.handleClose(),this.$refs.chatInput&&this.$refs.chatInput.hidePopover())},immediate:!0},receiveShow(t){t&&(this.timeValue=this.taskDetail.end_at?[this.taskDetail.start_at,this.taskDetail.end_at]:[])}},methods:{within24Hours(t){return $A.Date(t,!0)-this.nowTime<86400},expiresFormat(t){return $A.countDownFormat(t,this.nowTime)},isOverdue(t){return t.overdue?!0:$A.Date(t.end_at,!0)e.key===t);return a?a.label:t?`\u6BCF${t}\u5929`:"\u4ECE\u4E0D"},onNameKeydown(t){t.keyCode===13&&(t.shiftKey||(t.preventDefault(),this.updateData("name")))},checkUpdate(t){let a=!1;if(this.openTask.name!=this.taskDetail.name)if(a=!0,t===!0)this.updateData("name");else return t===!1&&this.$refs.name.focus(),!0;if(this.$refs.desc&&this.$refs.desc.getContent()!=this.taskContent)if(a=!0,t===!0)this.updateData("content");else return t===!1&&this.$refs.desc.focus(),!0;if(this.addsubShow&&this.addsubName)if(a=!0,t===!0)this.onAddsub();else return t===!1&&this.$refs.addsub.focus(),!0;return this.subList.some(({id:e})=>{this.$refs[`subTask_${e}`][0].checkUpdate(t)&&(a=!0)}),a},updateBlur(t,a){this.canUpdateBlur&&this.updateData(t,a)},updateData(t,a){let e=null;switch(t){case"priority":this.$set(this.taskDetail,"p_level",a.priority),this.$set(this.taskDetail,"p_name",a.name),this.$set(this.taskDetail,"p_color",a.color),t=["p_level","p_name","p_color"];break;case"times":if(this.taskDetail.start_at&&(Math.abs($A.Time(this.taskDetail.start_at)-$A.Time(a.start_at))>60||Math.abs($A.Time(this.taskDetail.end_at)-$A.Time(a.end_at))>60)&&typeof a.desc=="undefined"){$A.modalInput({title:"\u4FEE\u6539\u4EFB\u52A1\u65F6\u95F4",placeholder:"\u8BF7\u8F93\u5165\u4FEE\u6539\u5907\u6CE8",okText:"\u786E\u5B9A",onOk:o=>o?(this.updateData("times",Object.assign(a,{desc:o})),!1):"\u8BF7\u8F93\u5165\u4FEE\u6539\u5907\u6CE8"});return}this.$set(this.taskDetail,"times",[a.start_at,a.end_at,a.desc]);break;case"loop":if(a==="custom"){this.customLoop();return}this.$set(this.taskDetail,"loop",a);break;case"content":const i=this.$refs.desc.getContent();if(i==this.taskContent)return;this.$set(this.taskDetail,"content",i),e=()=>{this.$store.dispatch("saveTaskContent",{task_id:this.taskId,content:i})};break}let s={task_id:this.taskDetail.id};($A.isArray(t)?t:[t]).forEach(i=>{let o=this.taskDetail[i],d=this.openTask[i];$A.jsonStringify(o)!=$A.jsonStringify(d)&&(s[i]=o)}),!(Object.keys(s).length<=1)&&this.$store.dispatch("taskUpdate",s).then(({msg:i})=>{$A.messageSuccess(i),typeof e=="function"&&e()}).catch(({msg:i})=>{$A.modalError(i)})},customLoop(){let t=this.taskDetail.loop||1;$A.Modal.confirm({render:a=>a("div",[a("div",{style:{fontSize:"16px",fontWeight:"500",marginBottom:"20px"}},this.$L("\u91CD\u590D\u5468\u671F")),a("Input",{style:{width:"160px",margin:"0 auto"},props:{type:"number",value:t,maxlength:3},on:{input:e=>{t=$.runNum(e)}}},[a("span",{slot:"prepend"},this.$L("\u6BCF")),a("span",{slot:"append"},this.$L("\u5929"))])]),onOk:a=>{this.$Modal.remove(),t>0&&this.updateData("loop",t)},loading:!0,okText:this.$L("\u786E\u5B9A"),cancelText:this.$L("\u53D6\u6D88")})},openOwner(){const t=this.getOwner.map(({userid:a})=>a);this.$set(this.taskDetail,"owner_userid",t),this.$set(this.ownerData,"owner_userid",t)},onOwner(t){let a={task_id:this.taskDetail.id,owner:this.ownerData.owner_userid};if(t===!0){if(this.getOwner.length>0){this.receiveShow=!1,$A.messageError("\u4EFB\u52A1\u5DF2\u88AB\u9886\u53D6");return}let e=$A.date2string(this.timeValue,"Y-m-d H:i");if(e[0]&&e[1])$A.rightExists(e[0],"00:00")&&$A.rightExists(e[1],"00:00")&&(e[1]=e[1].replace("00:00","23:59"));else{$A.messageError("\u8BF7\u8BBE\u7F6E\u8BA1\u5212\u65F6\u95F4");return}a.times=e,a.owner=this.ownerData.owner_userid=[this.userId]}$A.jsonStringify(this.taskDetail.owner_userid)!==$A.jsonStringify(this.ownerData.owner_userid)&&($A.count(a.owner)==0&&(a.owner=""),this.ownerLoad++,this.$store.dispatch("taskUpdate",a).then(({msg:e})=>{$A.messageSuccess(e),this.ownerLoad--,this.receiveShow=!1,this.$store.dispatch("getTaskOne",this.taskDetail.id).catch(()=>{})}).catch(({msg:e})=>{$A.modalError(e),this.ownerLoad--,this.receiveShow=!1}))},openAssist(){const t=this.getAssist.map(({userid:a})=>a);this.$set(this.taskDetail,"assist_userid",t),this.$set(this.assistData,"assist_userid",t),this.$set(this.assistData,"disabled",this.getOwner.map(({userid:a})=>a).filter(a=>a!=this.userId))},onAssist(){if($A.jsonStringify(this.taskDetail.assist_userid)!==$A.jsonStringify(this.assistData.assist_userid)){if(this.getOwner.find(({userid:t})=>t===this.userId)&&this.assistData.assist_userid.find(t=>t===this.userId)){$A.modalConfirm({content:"\u4F60\u5F53\u524D\u662F\u8D1F\u8D23\u4EBA\uFF0C\u786E\u5B9A\u8981\u8F6C\u4E3A\u534F\u52A9\u4EBA\u5458\u5417\uFF1F",cancelText:"\u53D6\u6D88",okText:"\u786E\u5B9A",onOk:()=>{this.onAssistConfirm()}});return}this.onAssistConfirm()}},onAssistConfirm(){let t=this.assistData.assist_userid;t.length===0&&(t=!1),this.assistLoad++,this.$store.dispatch("taskUpdate",{task_id:this.taskDetail.id,assist:t}).then(({msg:a})=>{$A.messageSuccess(a),this.assistLoad--,this.$store.dispatch("getTaskOne",this.taskDetail.id).catch(()=>{})}).catch(({msg:a})=>{$A.modalError(a),this.assistLoad--})},openTime(){this.timeOpen=!this.timeOpen,this.timeOpen&&(this.timeValue=this.taskDetail.end_at?[this.taskDetail.start_at,this.taskDetail.end_at]:[])},timeChange(t){t||(this.timeOpen=!1)},timeClear(){this.updateData("times",{start_at:!1,end_at:!1}),this.timeOpen=!1},timeOk(){let t=$A.date2string(this.timeValue,"Y-m-d H:i");t[0]&&t[1]&&$A.rightExists(t[0],"00:00")&&$A.rightExists(t[1],"00:00")&&(t[1]=t[1].replace("00:00","23:59")),this.updateData("times",{start_at:t[0],end_at:t[1]}),this.timeOpen=!1},addsubOpen(){this.addsubShow=!0,this.$nextTick(()=>{this.$refs.addsub.focus()})},addsubChackClose(){this.addsubName==""&&(this.addsubShow=!1)},addsubKeydown(t){if(t.keyCode===13){if(t.shiftKey||this.addsubLoad>0)return;t.preventDefault(),this.onAddsub()}},onAddsub(){if(this.addsubName==""){$A.messageError("\u4EFB\u52A1\u63CF\u8FF0\u4E0D\u80FD\u4E3A\u7A7A");return}this.addsubLoad++,this.$store.dispatch("taskAddSub",{task_id:this.taskDetail.id,name:this.addsubName}).then(({msg:t})=>{$A.messageSuccess(t),this.addsubLoad--,this.addsubName=""}).catch(({msg:t})=>{$A.modalError(t),this.addsubLoad--})},getLogLists(){this.navActive=="log"&&this.$refs.log.getLists(!0)},logLoadChange(t){this.logLoadIng=t},dropAdd(t){switch(t){case"priority":this.$set(this.taskDetail,"p_name",this.$L("\u672A\u8BBE\u7F6E")),this.$nextTick(()=>{this.$refs.priority.show()});break;case"assist":this.assistForce=!0,this.openAssist(),this.$nextTick(()=>{this.$refs.assist.handleClick()});break;case"times":this.timeForce=!0,this.$nextTick(()=>{this.openTime()});break;case"loop":this.loopForce=!0,this.$nextTick(()=>{this.$refs.loop.show()});break;case"file":this.onUploadClick(!0);break;case"subtask":this.addsubForce=!0,this.$nextTick(()=>{this.addsubOpen()});break}},onEventMore(t){["image","file"].includes(t)&&this.onUploadClick(!1)},onUploadClick(t){this.imageAttachment=!!t,this.$refs.upload.handleClick()},msgDialog(t=null,a=!1){this.sendLoad>0||this.openLoad>0||(a===!0?this.openLoad++:this.sendLoad++,this.$store.dispatch("call",{url:"project/task/dialog",data:{task_id:this.taskDetail.id}}).then(({data:e})=>{this.$store.dispatch("saveTask",{id:e.id,dialog_id:e.dialog_id}),this.$store.dispatch("saveDialog",e.dialog_data),$A.isSubElectron?this.resizeDialog().then(()=>{this.sendDialogMsg(t)}):this.$nextTick(()=>{if(this.windowSmall){$A.onBlur();const s={time:$A.Time()+10,msgRecord:this.msgRecord,msgFile:this.msgFile,msgText:typeof t=="string"&&t?t:this.msgText,dialogId:e.dialog_id};this.msgRecord={},this.msgFile=[],this.msgText="",this.$nextTick(i=>{this.dialogId>0&&this.$store.dispatch("openTask",0),this.$store.dispatch("openDialog",e.dialog_id).then(o=>{this.$store.state.dialogMsgTransfer=s})})}else this.sendDialogMsg(t)})}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{a===!0?this.openLoad--:this.sendLoad--}))},sendDialogMsg(t=null){this.msgFile.length>0?this.$refs.dialog.sendFileMsg(this.msgFile.map(a=>Object.assign(a,{ajaxExtraData:{image_attachment:this.imageAttachment?1:0}}))):this.msgText?this.$refs.dialog.sendMsg(this.msgText):typeof t=="string"&&t&&this.$refs.dialog.sendMsg(t),this.msgFile=[],this.msgText=""},taskPasteDrag(t,a){this.dialogDrag=!1;const e=a==="drag"?t.dataTransfer.files:t.clipboardData.files;this.msgFile=Array.prototype.slice.call(e),this.msgFile.length>0&&(t.preventDefault(),this.msgDialog())},taskDragOver(t,a){let e=this.__dialogDrag=$A.randomString(8);if(!t)setTimeout(()=>{e===this.__dialogDrag&&(this.dialogDrag=t)},150);else{if(a.dataTransfer.effectAllowed==="move")return;this.dialogDrag=!0}},onSelectFile(t){this.msgFile=$A.isArray(t)?t:[t],this.msgDialog()},onRecord(t){this.msgRecord=t,this.msgDialog()},onSend(t){this.$refs.chatInput&&this.$refs.chatInput.hidePopover(),t==="open"?this.msgDialog(null,!0):this.msgDialog(t)},deleteFile(t){this.$set(t,"_show_menu",!1),this.$store.dispatch("forgetTaskFile",t.id),this.$store.dispatch("call",{url:"project/task/filedelete",data:{file_id:t.id}}).catch(({msg:a})=>{$A.modalError(a),this.$store.dispatch("getTaskFiles",this.taskDetail.id)})},openMenu(t,a){const e=this.$refs[`taskMenu_${a.id}`];e&&e.handleClick(t)},openNewWin(){let t={title:this.taskDetail.name,titleFixed:!0,parent:null,width:Math.min(window.screen.availWidth,this.$el.clientWidth+72),height:Math.min(window.screen.availHeight,this.$el.clientHeight+72),minWidth:600,minHeight:450};this.hasOpenDialog&&(t.minWidth=800,t.minHeight=600),this.$Electron.sendMessage("windowRouter",{name:`task-${this.taskDetail.id}`,path:`/single/task/${this.taskDetail.id}?navActive=${this.navActive}`,force:!1,config:t}),this.$store.dispatch("openTask",0)},resizeDialog(){return new Promise(t=>{this.$Electron.sendMessage("windowSize",{width:Math.max(1100,this.windowWidth),height:Math.max(720,this.windowHeight),minWidth:800,minHeight:600,autoZoom:!0});let a=0,e=setInterval(()=>{a++,(this.$refs.dialog||a>20)&&(clearInterval(e),this.$refs.dialog&&t())},100)})},viewFile(t){if(["jpg","jpeg","gif","png"].includes(t.ext)){const e=this.fileList.filter(i=>["jpg","jpeg","gif","png"].includes(i.ext)),s=e.findIndex(i=>i.id===t.id);s>-1?(this.$store.state.previewImageIndex=s,this.$store.state.previewImageList=e.map(i=>({src:i.path,width:i.width,height:i.height}))):(this.$store.state.previewImageIndex=0,this.$store.state.previewImageList=[{src:t.path,width:t.width,height:t.height}]);return}const a=`/single/file/task/${t.id}`;this.$Electron?this.$Electron.sendMessage("windowRouter",{name:`file-task-${t.id}`,path:a,userAgent:"/hideenOfficeTitle/",force:!1,config:{title:`${t.name} (${$A.bytesToSize(t.size)})`,titleFixed:!0,parent:null,width:Math.min(window.screen.availWidth,1440),height:Math.min(window.screen.availHeight,900)},webPreferences:{nodeIntegrationInSubFrames:t.ext==="drawio"}}):this.$isEEUiApp?$A.eeuiAppOpenPage({pageType:"app",pageTitle:`${t.name} (${$A.bytesToSize(t.size)})`,url:"web.js",params:{titleFixed:!0,allowAccess:!0,url:$A.rightDelete(window.location.href,window.location.hash)+`#${a}`}}):window.open($A.apiUrl(`..${a}`))},downFile(t){$A.modalConfirm({title:"\u4E0B\u8F7D\u6587\u4EF6",content:`${t.name} (${$A.bytesToSize(t.size)})`,okText:"\u7ACB\u5373\u4E0B\u8F7D",onOk:()=>{this.$store.dispatch("downUrl",$A.apiUrl(`project/task/filedown?file_id=${t.id}`))}})}}},l={};var T=r(x,A,L,!1,I,null,null,null);function I(t){for(let a in l)this[a]=l[a]}var z=function(){return T.exports}();export{z as T}; diff --git a/public/js/build/TaskMenu.8ddcdf6c.js b/public/js/build/TaskMenu.0eaf56d7.js similarity index 96% rename from public/js/build/TaskMenu.8ddcdf6c.js rename to public/js/build/TaskMenu.0eaf56d7.js index 761615af2..be7098c95 100644 --- a/public/js/build/TaskMenu.8ddcdf6c.js +++ b/public/js/build/TaskMenu.0eaf56d7.js @@ -1 +1 @@ -import{m as i,c as n,n as l}from"./app.90cb6e79.js";var r=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"task-menu-icon",on:{click:t.handleClick}},[t.loadIng?e("div",{staticClass:"loading"},[e("Loading")],1):[t.task.complete_at?e("Icon",{staticClass:"completed",attrs:{type:t.completedIcon}}):e("Icon",{staticClass:"uncomplete",attrs:{type:t.icon}})]],2)},c=[];const d={name:"TaskMenu",props:{task:{type:Object,default:()=>({})},loadStatus:{type:Boolean,default:!1},colorShow:{type:Boolean,default:!0},updateBefore:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},size:{type:String,default:"small"},icon:{type:String,default:"md-radio-button-off"},completedIcon:{type:String,default:"md-checkmark-circle"}},computed:{...i(["loads","taskFlows"]),...n(["isLoad"]),loadIng(){return this.loadStatus?!0:this.isLoad(`task-${this.task.id}`)}},methods:{handleClick(t){this.$store.state.taskOperation={event:t,task:this.task,loadStatus:this.loadStatus,colorShow:this.colorShow,updateBefore:this.updateBefore,disabled:this.disabled,size:this.size,onUpdate:s=>{this.$emit("on-update",s)}}},updateTask(t){if(this.loadIng)return;Object.keys(t).forEach(e=>this.$set(this.task,e,t[e]));const s=Object.assign(t,{task_id:this.task.id});this.$store.dispatch("taskUpdate",s).then(({data:e,msg:o})=>{$A.messageSuccess(o),this.$store.dispatch("saveTaskBrowse",s.task_id),this.$emit("on-update",e)}).catch(({msg:e})=>{$A.modalError(e),this.$store.dispatch("getTaskOne",s.task_id).catch(()=>{})})}}},a={};var u=l(d,r,c,!1,p,null,null,null);function p(t){for(let s in a)this[s]=a[s]}var m=function(){return u.exports}();export{m as T}; +import{m as i,c as n,n as l}from"./app.feefc813.js";var r=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"task-menu-icon",on:{click:t.handleClick}},[t.loadIng?e("div",{staticClass:"loading"},[e("Loading")],1):[t.task.complete_at?e("Icon",{staticClass:"completed",attrs:{type:t.completedIcon}}):e("Icon",{staticClass:"uncomplete",attrs:{type:t.icon}})]],2)},c=[];const d={name:"TaskMenu",props:{task:{type:Object,default:()=>({})},loadStatus:{type:Boolean,default:!1},colorShow:{type:Boolean,default:!0},updateBefore:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},size:{type:String,default:"small"},icon:{type:String,default:"md-radio-button-off"},completedIcon:{type:String,default:"md-checkmark-circle"}},computed:{...i(["loads","taskFlows"]),...n(["isLoad"]),loadIng(){return this.loadStatus?!0:this.isLoad(`task-${this.task.id}`)}},methods:{handleClick(t){this.$store.state.taskOperation={event:t,task:this.task,loadStatus:this.loadStatus,colorShow:this.colorShow,updateBefore:this.updateBefore,disabled:this.disabled,size:this.size,onUpdate:s=>{this.$emit("on-update",s)}}},updateTask(t){if(this.loadIng)return;Object.keys(t).forEach(e=>this.$set(this.task,e,t[e]));const s=Object.assign(t,{task_id:this.task.id});this.$store.dispatch("taskUpdate",s).then(({data:e,msg:o})=>{$A.messageSuccess(o),this.$store.dispatch("saveTaskBrowse",s.task_id),this.$emit("on-update",e)}).catch(({msg:e})=>{$A.modalError(e),this.$store.dispatch("getTaskOne",s.task_id).catch(()=>{})})}}},a={};var u=l(d,r,c,!1,p,null,null,null);function p(t){for(let s in a)this[s]=a[s]}var m=function(){return u.exports}();export{m as T}; diff --git a/public/js/build/UpdateLog.8c1c1fb4.js b/public/js/build/UpdateLog.c8b0b98a.js similarity index 94% rename from public/js/build/UpdateLog.8c1c1fb4.js rename to public/js/build/UpdateLog.c8b0b98a.js index f2131cbd0..565a4a0d3 100644 --- a/public/js/build/UpdateLog.8c1c1fb4.js +++ b/public/js/build/UpdateLog.c8b0b98a.js @@ -1 +1 @@ -import{n as s,p as r}from"./app.90cb6e79.js";var u=function(){var t=this,o=t.$createElement,e=t._self._c||o;return e("Modal",{attrs:{fullscreen:t.uplogFull,"class-name":"update-log"},model:{value:t.uplogShow,callback:function(l){t.uplogShow=l},expression:"uplogShow"}},[e("div",{attrs:{slot:"header"},slot:"header"},[e("div",{staticClass:"uplog-head"},[e("div",{staticClass:"uplog-title"},[t._v(t._s(t.$L("\u66F4\u65B0\u65E5\u5FD7")))]),t.updateVer?e("Tag",{attrs:{color:"volcano"}},[t._v(t._s(t.updateVer))]):t._e()],1)]),e("MarkdownPreview",{staticClass:"uplog-body scrollbar-overlay",attrs:{initialValue:t.updateLog}}),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(l){t.uplogFull=!t.uplogFull}}},[t._v(t._s(t.$L(t.uplogFull?"\u7F29\u5C0F\u67E5\u770B":"\u5168\u5C4F\u67E5\u770B")))])],1)],1)},n=[];const p={name:"UpdateLog",components:{MarkdownPreview:r},props:{value:{type:Boolean,default:!1},updateVer:{},updateLog:{}},data(){return{uplogShow:!1,uplogFull:!1}},watch:{value:{handler(t){this.uplogShow=t},immediate:!0},uplogShow(t){this.$emit("input",t)}}},a={};var i=s(p,u,n,!1,c,null,null,null);function c(t){for(let o in a)this[o]=a[o]}var v=function(){return i.exports}();export{v as U}; +import{n as s,p as r}from"./app.feefc813.js";var u=function(){var t=this,o=t.$createElement,e=t._self._c||o;return e("Modal",{attrs:{fullscreen:t.uplogFull,"class-name":"update-log"},model:{value:t.uplogShow,callback:function(l){t.uplogShow=l},expression:"uplogShow"}},[e("div",{attrs:{slot:"header"},slot:"header"},[e("div",{staticClass:"uplog-head"},[e("div",{staticClass:"uplog-title"},[t._v(t._s(t.$L("\u66F4\u65B0\u65E5\u5FD7")))]),t.updateVer?e("Tag",{attrs:{color:"volcano"}},[t._v(t._s(t.updateVer))]):t._e()],1)]),e("MarkdownPreview",{staticClass:"uplog-body scrollbar-overlay",attrs:{initialValue:t.updateLog}}),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(l){t.uplogFull=!t.uplogFull}}},[t._v(t._s(t.$L(t.uplogFull?"\u7F29\u5C0F\u67E5\u770B":"\u5168\u5C4F\u67E5\u770B")))])],1)],1)},n=[];const p={name:"UpdateLog",components:{MarkdownPreview:r},props:{value:{type:Boolean,default:!1},updateVer:{},updateLog:{}},data(){return{uplogShow:!1,uplogFull:!1}},watch:{value:{handler(t){this.uplogShow=t},immediate:!0},uplogShow(t){this.$emit("input",t)}}},a={};var i=s(p,u,n,!1,c,null,null,null);function c(t){for(let o in a)this[o]=a[o]}var v=function(){return i.exports}();export{v as U}; diff --git a/public/js/build/UserInput.1d67c0fc.js b/public/js/build/UserInput.2bc16b15.js similarity index 98% rename from public/js/build/UserInput.1d67c0fc.js rename to public/js/build/UserInput.2bc16b15.js index da6ecdfe1..3575bc2e0 100644 --- a/public/js/build/UserInput.1d67c0fc.js +++ b/public/js/build/UserInput.2bc16b15.js @@ -1 +1 @@ -import{n as r,d as c}from"./app.90cb6e79.js";var u=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{class:["common-user",e.maxHiddenClass]},[t("Select",{ref:"select",attrs:{transfer:e.transfer,placeholder:e.placeholder,size:e.size,loading:e.loadIng>0,"loading-text":e.$L("\u52A0\u8F7D\u4E2D..."),"default-label":e.value,"default-event-object":!0,"multiple-max":e.multipleMax,"multiple-uncancelable":e.uncancelable,"remote-method":e.remoteMethod,multiple:"",filterable:"","transfer-class-name":"common-user-transfer"},on:{"on-query-change":e.searchUser,"on-open-change":e.openChange},model:{value:e.selects,callback:function(i){e.selects=i},expression:"selects"}},[e.multipleMax?t("div",{staticClass:"user-drop-prepend",attrs:{slot:"drop-prepend"},slot:"drop-prepend"},[t("div",{staticClass:"user-drop-text"},[e._v(" "+e._s(e.$L("\u6700\u591A\u53EA\u80FD\u9009\u62E9"+e.multipleMax+"\u4E2A"))+" "),e.selects.length?t("em",[e._v("("+e._s(e.$L(`\u5DF2\u9009${e.selects.length}\u4E2A`))+")")]):e._e()]),t("Checkbox",{staticClass:"user-drop-check",on:{"on-change":e.onMultipleChange},model:{value:e.multipleCheck,callback:function(i){e.multipleCheck=i},expression:"multipleCheck"}})],1):e._e(),e._t("option-prepend"),e._l(e.list,function(i,l){return t("Option",{key:l,attrs:{value:i.userid,"key-value":i.email,label:i.nickname,avatar:i.userimg,disabled:e.isDisabled(i.userid)}},[t("div",{staticClass:"user-input-option"},[t("div",{staticClass:"user-input-avatar"},[t("EAvatar",{staticClass:"avatar",attrs:{src:i.userimg}})],1),i.bot?t("div",{staticClass:"taskfont user-input-bot"},[e._v("\uE68C")]):e._e(),t("div",{staticClass:"user-input-nickname"},[e._v(e._s(i.nickname))]),t("div",{staticClass:"user-input-userid"},[e._v("ID: "+e._s(i.userid))])])])})],2),e.loadIng>0?t("div",{staticClass:"common-user-loading"},[t("Loading")],1):e._e()],1)},h=[];const o={name:"UserInput",props:{value:{type:[String,Number,Array],default:""},uncancelable:{type:Array,default:()=>[]},disabledChoice:{type:Array,default:()=>[]},placeholder:{default:""},size:{default:"default"},transfer:{type:Boolean,default:!0},multipleMax:{type:Number},maxHiddenInput:{type:Boolean,default:!0},maxHiddenSelect:{type:Boolean,default:!1},projectId:{type:Number,default:0},noProjectId:{type:Number,default:0},dialogId:{type:Number,default:0},showBot:{type:Boolean,default:!1}},data(){return{loadIng:0,selects:[],list:[],multipleCheck:!1,searchKey:null,searchHistory:[],subscribe:null}},mounted(){this.subscribe=c.Store.subscribe("cacheUserActive",e=>{let s=this.list.findIndex(({userid:t})=>t==e.userid);s>-1&&(this.$set(this.list,s,Object.assign({},this.list[s],e)),this.handleSelectData())})},beforeDestroy(){this.subscribe&&(this.subscribe.unsubscribe(),this.subscribe=null)},computed:{maxHiddenClass(){const{multipleMax:e,maxHiddenInput:s,selects:t}=this;return e&&s&&t.length>=e?"hidden-input":""}},watch:{value:{handler(){const e=this._tmpId=$A.randomString(6);setTimeout(()=>{e===this._tmpId&&this.valueChange()},10)},immediate:!0},selects(e){this.$emit("input",e),this.maxHiddenSelect&&e.length>=this.maxHiddenSelect&&this.$refs.select&&this.$refs.select.hideMenu(),this.calcMultipleSelect()}},methods:{searchUser(e){typeof e!="string"&&(e=""),this.searchKey=e;const s=this.searchHistory.find(t=>t.key==e);s&&(this.list=s.data,this.calcMultipleSelect()),s||this.loadIng++,setTimeout(()=>{if(this.searchKey!=e){s||this.loadIng--;return}this.$store.dispatch("call",{url:"users/search",data:{keys:{key:e,project_id:this.projectId,no_project_id:this.noProjectId,dialog_id:this.dialogId,bot:this.showBot?2:0},take:50}}).then(({data:t})=>{this.list=t,this.calcMultipleSelect();const i=this.searchHistory.findIndex(n=>n.key==e),l={key:e,data:t,time:$A.Time()};i>-1?this.searchHistory.splice(i,1,l):this.searchHistory.push(l)}).catch(({msg:t})=>{this.list=[],this.calcMultipleSelect(),$A.messageWarning(t)}).finally(t=>{s||this.loadIng--})},this.searchHistory.length>0?300:0)},isDisabled(e){return this.disabledChoice.length===0?!1:this.disabledChoice.includes(e)},openChange(e){e&&this.$nextTick(this.searchUser),this.calcMultipleSelect()},remoteMethod(){},valueChange(){this.selects!=this.value&&($A.isArray(this.value)?this.selects=$A.cloneJSON(this.value):this.value?this.selects=[this.value]:this.selects=[],this.selects.some(e=>{this.list.find(s=>s.userid==e)||(this.list.push({userid:e,nickname:e}),this.calcMultipleSelect(),this.$store.dispatch("getUserBasic",{userid:e}))}))},handleSelectData(){this.__handleSelectTimeout&&clearTimeout(this.__handleSelectTimeout),this.__handleSelectTimeout=setTimeout(()=>{if(!this.$refs.select)return;const e=this.$refs.select.getValue();e&&e.some(s=>{const t=this.list.find(({userid:i})=>i==s.value);t&&(this.$set(s,"label",t.nickname),this.$set(s,"avatar",t.userimg))})},100)},calcMultipleSelect(){this.multipleMax&&this.list.length>0?(this.calcMultipleTime&&clearTimeout(this.calcMultipleTime),this.calcMultipleTime=setTimeout(e=>{let s=!0;this.$refs.select.selectOptions.some(({componentInstance:t})=>{this.selects.includes(t.value)||(s=!1)}),this.multipleCheck=s},10)):this.multipleCheck=!1},onMultipleChange(e){if(e){let s=this.multipleMax-this.selects.length;this.$refs.select.selectOptions.some(({componentInstance:t})=>{if(this.multipleMax&&s<=0)return this.$nextTick(i=>{$A.messageWarning("\u5DF2\u8D85\u8FC7\u6700\u5927\u9009\u62E9\u6570\u91CF"),this.multipleCheck=!1}),!0;this.selects.includes(t.value)||(t.select(),s--)})}else this.selects=[]}}},a={};var d=r(o,u,h,!1,p,null,null,null);function p(e){for(let s in a)this[s]=a[s]}var f=function(){return d.exports}();export{f as U}; +import{n as r,d as c}from"./app.feefc813.js";var u=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{class:["common-user",e.maxHiddenClass]},[t("Select",{ref:"select",attrs:{transfer:e.transfer,placeholder:e.placeholder,size:e.size,loading:e.loadIng>0,"loading-text":e.$L("\u52A0\u8F7D\u4E2D..."),"default-label":e.value,"default-event-object":!0,"multiple-max":e.multipleMax,"multiple-uncancelable":e.uncancelable,"remote-method":e.remoteMethod,multiple:"",filterable:"","transfer-class-name":"common-user-transfer"},on:{"on-query-change":e.searchUser,"on-open-change":e.openChange},model:{value:e.selects,callback:function(i){e.selects=i},expression:"selects"}},[e.multipleMax?t("div",{staticClass:"user-drop-prepend",attrs:{slot:"drop-prepend"},slot:"drop-prepend"},[t("div",{staticClass:"user-drop-text"},[e._v(" "+e._s(e.$L("\u6700\u591A\u53EA\u80FD\u9009\u62E9"+e.multipleMax+"\u4E2A"))+" "),e.selects.length?t("em",[e._v("("+e._s(e.$L(`\u5DF2\u9009${e.selects.length}\u4E2A`))+")")]):e._e()]),t("Checkbox",{staticClass:"user-drop-check",on:{"on-change":e.onMultipleChange},model:{value:e.multipleCheck,callback:function(i){e.multipleCheck=i},expression:"multipleCheck"}})],1):e._e(),e._t("option-prepend"),e._l(e.list,function(i,l){return t("Option",{key:l,attrs:{value:i.userid,"key-value":i.email,label:i.nickname,avatar:i.userimg,disabled:e.isDisabled(i.userid)}},[t("div",{staticClass:"user-input-option"},[t("div",{staticClass:"user-input-avatar"},[t("EAvatar",{staticClass:"avatar",attrs:{src:i.userimg}})],1),i.bot?t("div",{staticClass:"taskfont user-input-bot"},[e._v("\uE68C")]):e._e(),t("div",{staticClass:"user-input-nickname"},[e._v(e._s(i.nickname))]),t("div",{staticClass:"user-input-userid"},[e._v("ID: "+e._s(i.userid))])])])})],2),e.loadIng>0?t("div",{staticClass:"common-user-loading"},[t("Loading")],1):e._e()],1)},h=[];const o={name:"UserInput",props:{value:{type:[String,Number,Array],default:""},uncancelable:{type:Array,default:()=>[]},disabledChoice:{type:Array,default:()=>[]},placeholder:{default:""},size:{default:"default"},transfer:{type:Boolean,default:!0},multipleMax:{type:Number},maxHiddenInput:{type:Boolean,default:!0},maxHiddenSelect:{type:Boolean,default:!1},projectId:{type:Number,default:0},noProjectId:{type:Number,default:0},dialogId:{type:Number,default:0},showBot:{type:Boolean,default:!1}},data(){return{loadIng:0,selects:[],list:[],multipleCheck:!1,searchKey:null,searchHistory:[],subscribe:null}},mounted(){this.subscribe=c.Store.subscribe("cacheUserActive",e=>{let s=this.list.findIndex(({userid:t})=>t==e.userid);s>-1&&(this.$set(this.list,s,Object.assign({},this.list[s],e)),this.handleSelectData())})},beforeDestroy(){this.subscribe&&(this.subscribe.unsubscribe(),this.subscribe=null)},computed:{maxHiddenClass(){const{multipleMax:e,maxHiddenInput:s,selects:t}=this;return e&&s&&t.length>=e?"hidden-input":""}},watch:{value:{handler(){const e=this._tmpId=$A.randomString(6);setTimeout(()=>{e===this._tmpId&&this.valueChange()},10)},immediate:!0},selects(e){this.$emit("input",e),this.maxHiddenSelect&&e.length>=this.maxHiddenSelect&&this.$refs.select&&this.$refs.select.hideMenu(),this.calcMultipleSelect()}},methods:{searchUser(e){typeof e!="string"&&(e=""),this.searchKey=e;const s=this.searchHistory.find(t=>t.key==e);s&&(this.list=s.data,this.calcMultipleSelect()),s||this.loadIng++,setTimeout(()=>{if(this.searchKey!=e){s||this.loadIng--;return}this.$store.dispatch("call",{url:"users/search",data:{keys:{key:e,project_id:this.projectId,no_project_id:this.noProjectId,dialog_id:this.dialogId,bot:this.showBot?2:0},take:50}}).then(({data:t})=>{this.list=t,this.calcMultipleSelect();const i=this.searchHistory.findIndex(n=>n.key==e),l={key:e,data:t,time:$A.Time()};i>-1?this.searchHistory.splice(i,1,l):this.searchHistory.push(l)}).catch(({msg:t})=>{this.list=[],this.calcMultipleSelect(),$A.messageWarning(t)}).finally(t=>{s||this.loadIng--})},this.searchHistory.length>0?300:0)},isDisabled(e){return this.disabledChoice.length===0?!1:this.disabledChoice.includes(e)},openChange(e){e&&this.$nextTick(this.searchUser),this.calcMultipleSelect()},remoteMethod(){},valueChange(){this.selects!=this.value&&($A.isArray(this.value)?this.selects=$A.cloneJSON(this.value):this.value?this.selects=[this.value]:this.selects=[],this.selects.some(e=>{this.list.find(s=>s.userid==e)||(this.list.push({userid:e,nickname:e}),this.calcMultipleSelect(),this.$store.dispatch("getUserBasic",{userid:e}))}))},handleSelectData(){this.__handleSelectTimeout&&clearTimeout(this.__handleSelectTimeout),this.__handleSelectTimeout=setTimeout(()=>{if(!this.$refs.select)return;const e=this.$refs.select.getValue();e&&e.some(s=>{const t=this.list.find(({userid:i})=>i==s.value);t&&(this.$set(s,"label",t.nickname),this.$set(s,"avatar",t.userimg))})},100)},calcMultipleSelect(){this.multipleMax&&this.list.length>0?(this.calcMultipleTime&&clearTimeout(this.calcMultipleTime),this.calcMultipleTime=setTimeout(e=>{let s=!0;this.$refs.select.selectOptions.some(({componentInstance:t})=>{this.selects.includes(t.value)||(s=!1)}),this.multipleCheck=s},10)):this.multipleCheck=!1},onMultipleChange(e){if(e){let s=this.multipleMax-this.selects.length;this.$refs.select.selectOptions.some(({componentInstance:t})=>{if(this.multipleMax&&s<=0)return this.$nextTick(i=>{$A.messageWarning("\u5DF2\u8D85\u8FC7\u6700\u5927\u9009\u62E9\u6570\u91CF"),this.multipleCheck=!1}),!0;this.selects.includes(t.value)||(t.select(),s--)})}else this.selects=[]}}},a={};var d=r(o,u,h,!1,p,null,null,null);function p(e){for(let s in a)this[s]=a[s]}var f=function(){return d.exports}();export{f as U}; diff --git a/public/js/build/app.ce5dd3b0.css b/public/js/build/app.961ba03c.css similarity index 53% rename from public/js/build/app.ce5dd3b0.css rename to public/js/build/app.961ba03c.css index 216786f2e..e61c2e605 100644 --- a/public/js/build/app.ce5dd3b0.css +++ b/public/js/build/app.961ba03c.css @@ -3,4 +3,4 @@ * https://quilljs.com/ * Copyright (c) 2014, Jason Chen * Copyright (c) 2013, salesforce.com - */.ql-container{box-sizing:border-box;font-family:Helvetica,Arial,sans-serif;font-size:13px;height:100%;margin:0;position:relative}.ql-container.ql-disabled .ql-tooltip{visibility:hidden}.ql-container.ql-disabled .ql-editor ul[data-checked]>li:before{pointer-events:none}.ql-clipboard{left:-100000px;height:1px;overflow-y:hidden;position:absolute;top:50%}.ql-clipboard p{margin:0;padding:0}.ql-editor{box-sizing:border-box;line-height:1.42;height:100%;outline:none;overflow-y:auto;padding:12px 15px;-o-tab-size:4;tab-size:4;-moz-tab-size:4;text-align:left;white-space:pre-wrap;word-wrap:break-word}.ql-editor>*{cursor:text}.ql-editor p,.ql-editor ol,.ql-editor ul,.ql-editor pre,.ql-editor blockquote,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{margin:0;padding:0;counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol,.ql-editor ul{padding-left:1.5em}.ql-editor ol>li,.ql-editor ul>li{list-style-type:none}.ql-editor ul>li:before{content:"\2022"}.ql-editor ul[data-checked=true],.ql-editor ul[data-checked=false]{pointer-events:none}.ql-editor ul[data-checked=true]>li *,.ql-editor ul[data-checked=false]>li *{pointer-events:all}.ql-editor ul[data-checked=true]>li:before,.ql-editor ul[data-checked=false]>li:before{color:#777;cursor:pointer;pointer-events:all}.ql-editor ul[data-checked=true]>li:before{content:"\2611"}.ql-editor ul[data-checked=false]>li:before{content:"\2610"}.ql-editor li:before{display:inline-block;white-space:nowrap;width:1.2em}.ql-editor li:not(.ql-direction-rtl):before{margin-left:-1.5em;margin-right:.3em;text-align:right}.ql-editor li.ql-direction-rtl:before{margin-left:.3em;margin-right:-1.5em}.ql-editor ol li:not(.ql-direction-rtl),.ql-editor ul li:not(.ql-direction-rtl){padding-left:1.5em}.ql-editor ol li.ql-direction-rtl,.ql-editor ul li.ql-direction-rtl{padding-right:1.5em}.ql-editor ol li{counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;counter-increment:list-0}.ql-editor ol li:before{content:counter(list-0,decimal) ". "}.ql-editor ol li.ql-indent-1{counter-increment:list-1}.ql-editor ol li.ql-indent-1:before{content:counter(list-1,lower-alpha) ". "}.ql-editor ol li.ql-indent-1{counter-reset:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-2{counter-increment:list-2}.ql-editor ol li.ql-indent-2:before{content:counter(list-2,lower-roman) ". "}.ql-editor ol li.ql-indent-2{counter-reset:list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-3{counter-increment:list-3}.ql-editor ol li.ql-indent-3:before{content:counter(list-3,decimal) ". "}.ql-editor ol li.ql-indent-3{counter-reset:list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-4{counter-increment:list-4}.ql-editor ol li.ql-indent-4:before{content:counter(list-4,lower-alpha) ". "}.ql-editor ol li.ql-indent-4{counter-reset:list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-5{counter-increment:list-5}.ql-editor ol li.ql-indent-5:before{content:counter(list-5,lower-roman) ". "}.ql-editor ol li.ql-indent-5{counter-reset:list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-6{counter-increment:list-6}.ql-editor ol li.ql-indent-6:before{content:counter(list-6,decimal) ". "}.ql-editor ol li.ql-indent-6{counter-reset:list-7 list-8 list-9}.ql-editor ol li.ql-indent-7{counter-increment:list-7}.ql-editor ol li.ql-indent-7:before{content:counter(list-7,lower-alpha) ". "}.ql-editor ol li.ql-indent-7{counter-reset:list-8 list-9}.ql-editor ol li.ql-indent-8{counter-increment:list-8}.ql-editor ol li.ql-indent-8:before{content:counter(list-8,lower-roman) ". "}.ql-editor ol li.ql-indent-8{counter-reset:list-9}.ql-editor ol li.ql-indent-9{counter-increment:list-9}.ql-editor ol li.ql-indent-9:before{content:counter(list-9,decimal) ". "}.ql-editor .ql-indent-1:not(.ql-direction-rtl){padding-left:3em}.ql-editor li.ql-indent-1:not(.ql-direction-rtl){padding-left:4.5em}.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:3em}.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:4.5em}.ql-editor .ql-indent-2:not(.ql-direction-rtl){padding-left:6em}.ql-editor li.ql-indent-2:not(.ql-direction-rtl){padding-left:7.5em}.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:6em}.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:7.5em}.ql-editor .ql-indent-3:not(.ql-direction-rtl){padding-left:9em}.ql-editor li.ql-indent-3:not(.ql-direction-rtl){padding-left:10.5em}.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:9em}.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:10.5em}.ql-editor .ql-indent-4:not(.ql-direction-rtl){padding-left:12em}.ql-editor li.ql-indent-4:not(.ql-direction-rtl){padding-left:13.5em}.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:12em}.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:13.5em}.ql-editor .ql-indent-5:not(.ql-direction-rtl){padding-left:15em}.ql-editor li.ql-indent-5:not(.ql-direction-rtl){padding-left:16.5em}.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:15em}.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:16.5em}.ql-editor .ql-indent-6:not(.ql-direction-rtl){padding-left:18em}.ql-editor li.ql-indent-6:not(.ql-direction-rtl){padding-left:19.5em}.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:18em}.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:19.5em}.ql-editor .ql-indent-7:not(.ql-direction-rtl){padding-left:21em}.ql-editor li.ql-indent-7:not(.ql-direction-rtl){padding-left:22.5em}.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:21em}.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:22.5em}.ql-editor .ql-indent-8:not(.ql-direction-rtl){padding-left:24em}.ql-editor li.ql-indent-8:not(.ql-direction-rtl){padding-left:25.5em}.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:24em}.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:25.5em}.ql-editor .ql-indent-9:not(.ql-direction-rtl){padding-left:27em}.ql-editor li.ql-indent-9:not(.ql-direction-rtl){padding-left:28.5em}.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:27em}.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:28.5em}.ql-editor .ql-video{display:block;max-width:100%}.ql-editor .ql-video.ql-align-center{margin:0 auto}.ql-editor .ql-video.ql-align-right{margin:0 0 0 auto}.ql-editor .ql-bg-black{background-color:#000}.ql-editor .ql-bg-red{background-color:#e60000}.ql-editor .ql-bg-orange{background-color:#f90}.ql-editor .ql-bg-yellow{background-color:#ff0}.ql-editor .ql-bg-green{background-color:#008a00}.ql-editor .ql-bg-blue{background-color:#06c}.ql-editor .ql-bg-purple{background-color:#93f}.ql-editor .ql-color-white{color:#fff}.ql-editor .ql-color-red{color:#e60000}.ql-editor .ql-color-orange{color:#f90}.ql-editor .ql-color-yellow{color:#ff0}.ql-editor .ql-color-green{color:#008a00}.ql-editor .ql-color-blue{color:#06c}.ql-editor .ql-color-purple{color:#93f}.ql-editor .ql-font-serif{font-family:Georgia,Times New Roman,serif}.ql-editor .ql-font-monospace{font-family:Monaco,Courier New,monospace}.ql-editor .ql-size-small{font-size:.75em}.ql-editor .ql-size-large{font-size:1.5em}.ql-editor .ql-size-huge{font-size:2.5em}.ql-editor .ql-direction-rtl{direction:rtl;text-align:inherit}.ql-editor .ql-align-center{text-align:center}.ql-editor .ql-align-justify{text-align:justify}.ql-editor .ql-align-right{text-align:right}.ql-editor.ql-blank:before{color:#0009;content:attr(data-placeholder);font-style:italic;left:15px;pointer-events:none;position:absolute;right:15px}.ql-bubble.ql-toolbar:after,.ql-bubble .ql-toolbar:after{clear:both;content:"";display:table}.ql-bubble.ql-toolbar button,.ql-bubble .ql-toolbar button{background:none;border:none;cursor:pointer;display:inline-block;float:left;height:24px;padding:3px 5px;width:28px}.ql-bubble.ql-toolbar button svg,.ql-bubble .ql-toolbar button svg{float:left;height:100%}.ql-bubble.ql-toolbar button:active:hover,.ql-bubble .ql-toolbar button:active:hover{outline:none}.ql-bubble.ql-toolbar input.ql-image[type=file],.ql-bubble .ql-toolbar input.ql-image[type=file]{display:none}.ql-bubble.ql-toolbar button:hover,.ql-bubble .ql-toolbar button:hover,.ql-bubble.ql-toolbar button:focus,.ql-bubble .ql-toolbar button:focus,.ql-bubble.ql-toolbar button.ql-active,.ql-bubble .ql-toolbar button.ql-active,.ql-bubble.ql-toolbar .ql-picker-label:hover,.ql-bubble .ql-toolbar .ql-picker-label:hover,.ql-bubble.ql-toolbar .ql-picker-label.ql-active,.ql-bubble .ql-toolbar .ql-picker-label.ql-active,.ql-bubble.ql-toolbar .ql-picker-item:hover,.ql-bubble .ql-toolbar .ql-picker-item:hover,.ql-bubble.ql-toolbar .ql-picker-item.ql-selected,.ql-bubble .ql-toolbar .ql-picker-item.ql-selected{color:#fff}.ql-bubble.ql-toolbar button:hover .ql-fill,.ql-bubble .ql-toolbar button:hover .ql-fill,.ql-bubble.ql-toolbar button:focus .ql-fill,.ql-bubble .ql-toolbar button:focus .ql-fill,.ql-bubble.ql-toolbar button.ql-active .ql-fill,.ql-bubble .ql-toolbar button.ql-active .ql-fill,.ql-bubble.ql-toolbar .ql-picker-label:hover .ql-fill,.ql-bubble .ql-toolbar .ql-picker-label:hover .ql-fill,.ql-bubble.ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-bubble .ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-bubble.ql-toolbar .ql-picker-item:hover .ql-fill,.ql-bubble .ql-toolbar .ql-picker-item:hover .ql-fill,.ql-bubble.ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-bubble .ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-bubble.ql-toolbar button:hover .ql-stroke.ql-fill,.ql-bubble .ql-toolbar button:hover .ql-stroke.ql-fill,.ql-bubble.ql-toolbar button:focus .ql-stroke.ql-fill,.ql-bubble .ql-toolbar button:focus .ql-stroke.ql-fill,.ql-bubble.ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-bubble .ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-bubble.ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-bubble .ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-bubble.ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-bubble .ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-bubble.ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-bubble .ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-bubble.ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,.ql-bubble .ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill{fill:#fff}.ql-bubble.ql-toolbar button:hover .ql-stroke,.ql-bubble .ql-toolbar button:hover .ql-stroke,.ql-bubble.ql-toolbar button:focus .ql-stroke,.ql-bubble .ql-toolbar button:focus .ql-stroke,.ql-bubble.ql-toolbar button.ql-active .ql-stroke,.ql-bubble .ql-toolbar button.ql-active .ql-stroke,.ql-bubble.ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-bubble .ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-bubble.ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-bubble .ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-bubble.ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-bubble .ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-bubble.ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-bubble .ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-bubble.ql-toolbar button:hover .ql-stroke-miter,.ql-bubble .ql-toolbar button:hover .ql-stroke-miter,.ql-bubble.ql-toolbar button:focus .ql-stroke-miter,.ql-bubble .ql-toolbar button:focus .ql-stroke-miter,.ql-bubble.ql-toolbar button.ql-active .ql-stroke-miter,.ql-bubble .ql-toolbar button.ql-active .ql-stroke-miter,.ql-bubble.ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-bubble .ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-bubble.ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-bubble .ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-bubble.ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-bubble .ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-bubble.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,.ql-bubble .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter{stroke:#fff}@media (pointer: coarse){.ql-bubble.ql-toolbar button:hover:not(.ql-active),.ql-bubble .ql-toolbar button:hover:not(.ql-active){color:#ccc}.ql-bubble.ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-bubble .ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-bubble.ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill,.ql-bubble .ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill{fill:#ccc}.ql-bubble.ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-bubble .ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-bubble.ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter,.ql-bubble .ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter{stroke:#ccc}}.ql-bubble,.ql-bubble *{box-sizing:border-box}.ql-bubble .ql-hidden{display:none}.ql-bubble .ql-out-bottom,.ql-bubble .ql-out-top{visibility:hidden}.ql-bubble .ql-tooltip{position:absolute;transform:translateY(10px)}.ql-bubble .ql-tooltip a{cursor:pointer;text-decoration:none}.ql-bubble .ql-tooltip.ql-flip{transform:translateY(-10px)}.ql-bubble .ql-formats{display:inline-block;vertical-align:middle}.ql-bubble .ql-formats:after{clear:both;content:"";display:table}.ql-bubble .ql-stroke{fill:none;stroke:#ccc;stroke-linecap:round;stroke-linejoin:round;stroke-width:2}.ql-bubble .ql-stroke-miter{fill:none;stroke:#ccc;stroke-miterlimit:10;stroke-width:2}.ql-bubble .ql-fill,.ql-bubble .ql-stroke.ql-fill{fill:#ccc}.ql-bubble .ql-empty{fill:none}.ql-bubble .ql-even{fill-rule:evenodd}.ql-bubble .ql-thin,.ql-bubble .ql-stroke.ql-thin{stroke-width:1}.ql-bubble .ql-transparent{opacity:.4}.ql-bubble .ql-direction svg:last-child{display:none}.ql-bubble .ql-direction.ql-active svg:last-child{display:inline}.ql-bubble .ql-direction.ql-active svg:first-child{display:none}.ql-bubble .ql-editor h1{font-size:2em}.ql-bubble .ql-editor h2{font-size:1.5em}.ql-bubble .ql-editor h3{font-size:1.17em}.ql-bubble .ql-editor h4{font-size:1em}.ql-bubble .ql-editor h5{font-size:.83em}.ql-bubble .ql-editor h6{font-size:.67em}.ql-bubble .ql-editor a{text-decoration:underline}.ql-bubble .ql-editor blockquote{border-left:4px solid #ccc;margin-bottom:5px;margin-top:5px;padding-left:16px}.ql-bubble .ql-editor code,.ql-bubble .ql-editor pre{background-color:#f0f0f0;border-radius:3px}.ql-bubble .ql-editor pre{white-space:pre-wrap;margin-bottom:5px;margin-top:5px;padding:5px 10px}.ql-bubble .ql-editor code{font-size:85%;padding:2px 4px}.ql-bubble .ql-editor pre.ql-syntax{background-color:#23241f;color:#f8f8f2;overflow:visible}.ql-bubble .ql-editor img{max-width:100%}.ql-bubble .ql-picker{color:#ccc;display:inline-block;float:left;font-size:14px;font-weight:500;height:24px;position:relative;vertical-align:middle}.ql-bubble .ql-picker-label{cursor:pointer;display:inline-block;height:100%;padding-left:8px;padding-right:2px;position:relative;width:100%}.ql-bubble .ql-picker-label:before{display:inline-block;line-height:22px}.ql-bubble .ql-picker-options{background-color:#444;display:none;min-width:100%;padding:4px 8px;position:absolute;white-space:nowrap}.ql-bubble .ql-picker-options .ql-picker-item{cursor:pointer;display:block;padding-bottom:5px;padding-top:5px}.ql-bubble .ql-picker.ql-expanded .ql-picker-label{color:#777;z-index:2}.ql-bubble .ql-picker.ql-expanded .ql-picker-label .ql-fill{fill:#777}.ql-bubble .ql-picker.ql-expanded .ql-picker-label .ql-stroke{stroke:#777}.ql-bubble .ql-picker.ql-expanded .ql-picker-options{display:block;margin-top:-1px;top:100%;z-index:1}.ql-bubble .ql-color-picker,.ql-bubble .ql-icon-picker{width:28px}.ql-bubble .ql-color-picker .ql-picker-label,.ql-bubble .ql-icon-picker .ql-picker-label{padding:2px 4px}.ql-bubble .ql-color-picker .ql-picker-label svg,.ql-bubble .ql-icon-picker .ql-picker-label svg{right:4px}.ql-bubble .ql-icon-picker .ql-picker-options{padding:4px 0}.ql-bubble .ql-icon-picker .ql-picker-item{height:24px;width:24px;padding:2px 4px}.ql-bubble .ql-color-picker .ql-picker-options{padding:3px 5px;width:152px}.ql-bubble .ql-color-picker .ql-picker-item{border:1px solid transparent;float:left;height:16px;margin:2px;padding:0;width:16px}.ql-bubble .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg{position:absolute;margin-top:-9px;right:0;top:50%;width:18px}.ql-bubble .ql-picker.ql-header .ql-picker-label[data-label]:not([data-label=""]):before,.ql-bubble .ql-picker.ql-font .ql-picker-label[data-label]:not([data-label=""]):before,.ql-bubble .ql-picker.ql-size .ql-picker-label[data-label]:not([data-label=""]):before,.ql-bubble .ql-picker.ql-header .ql-picker-item[data-label]:not([data-label=""]):before,.ql-bubble .ql-picker.ql-font .ql-picker-item[data-label]:not([data-label=""]):before,.ql-bubble .ql-picker.ql-size .ql-picker-item[data-label]:not([data-label=""]):before{content:attr(data-label)}.ql-bubble .ql-picker.ql-header{width:98px}.ql-bubble .ql-picker.ql-header .ql-picker-label:before,.ql-bubble .ql-picker.ql-header .ql-picker-item:before{content:"Normal"}.ql-bubble .ql-picker.ql-header .ql-picker-label[data-value="1"]:before,.ql-bubble .ql-picker.ql-header .ql-picker-item[data-value="1"]:before{content:"Heading 1"}.ql-bubble .ql-picker.ql-header .ql-picker-label[data-value="2"]:before,.ql-bubble .ql-picker.ql-header .ql-picker-item[data-value="2"]:before{content:"Heading 2"}.ql-bubble .ql-picker.ql-header .ql-picker-label[data-value="3"]:before,.ql-bubble .ql-picker.ql-header .ql-picker-item[data-value="3"]:before{content:"Heading 3"}.ql-bubble .ql-picker.ql-header .ql-picker-label[data-value="4"]:before,.ql-bubble .ql-picker.ql-header .ql-picker-item[data-value="4"]:before{content:"Heading 4"}.ql-bubble .ql-picker.ql-header .ql-picker-label[data-value="5"]:before,.ql-bubble .ql-picker.ql-header .ql-picker-item[data-value="5"]:before{content:"Heading 5"}.ql-bubble .ql-picker.ql-header .ql-picker-label[data-value="6"]:before,.ql-bubble .ql-picker.ql-header .ql-picker-item[data-value="6"]:before{content:"Heading 6"}.ql-bubble .ql-picker.ql-header .ql-picker-item[data-value="1"]:before{font-size:2em}.ql-bubble .ql-picker.ql-header .ql-picker-item[data-value="2"]:before{font-size:1.5em}.ql-bubble .ql-picker.ql-header .ql-picker-item[data-value="3"]:before{font-size:1.17em}.ql-bubble .ql-picker.ql-header .ql-picker-item[data-value="4"]:before{font-size:1em}.ql-bubble .ql-picker.ql-header .ql-picker-item[data-value="5"]:before{font-size:.83em}.ql-bubble .ql-picker.ql-header .ql-picker-item[data-value="6"]:before{font-size:.67em}.ql-bubble .ql-picker.ql-font{width:108px}.ql-bubble .ql-picker.ql-font .ql-picker-label:before,.ql-bubble .ql-picker.ql-font .ql-picker-item:before{content:"Sans Serif"}.ql-bubble .ql-picker.ql-font .ql-picker-label[data-value=serif]:before,.ql-bubble .ql-picker.ql-font .ql-picker-item[data-value=serif]:before{content:"Serif"}.ql-bubble .ql-picker.ql-font .ql-picker-label[data-value=monospace]:before,.ql-bubble .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before{content:"Monospace"}.ql-bubble .ql-picker.ql-font .ql-picker-item[data-value=serif]:before{font-family:Georgia,Times New Roman,serif}.ql-bubble .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before{font-family:Monaco,Courier New,monospace}.ql-bubble .ql-picker.ql-size{width:98px}.ql-bubble .ql-picker.ql-size .ql-picker-label:before,.ql-bubble .ql-picker.ql-size .ql-picker-item:before{content:"Normal"}.ql-bubble .ql-picker.ql-size .ql-picker-label[data-value=small]:before,.ql-bubble .ql-picker.ql-size .ql-picker-item[data-value=small]:before{content:"Small"}.ql-bubble .ql-picker.ql-size .ql-picker-label[data-value=large]:before,.ql-bubble .ql-picker.ql-size .ql-picker-item[data-value=large]:before{content:"Large"}.ql-bubble .ql-picker.ql-size .ql-picker-label[data-value=huge]:before,.ql-bubble .ql-picker.ql-size .ql-picker-item[data-value=huge]:before{content:"Huge"}.ql-bubble .ql-picker.ql-size .ql-picker-item[data-value=small]:before{font-size:10px}.ql-bubble .ql-picker.ql-size .ql-picker-item[data-value=large]:before{font-size:18px}.ql-bubble .ql-picker.ql-size .ql-picker-item[data-value=huge]:before{font-size:32px}.ql-bubble .ql-color-picker.ql-background .ql-picker-item{background-color:#fff}.ql-bubble .ql-color-picker.ql-color .ql-picker-item{background-color:#000}.ql-bubble .ql-toolbar .ql-formats{margin:8px 12px 8px 0}.ql-bubble .ql-toolbar .ql-formats:first-child{margin-left:12px}.ql-bubble .ql-color-picker svg{margin:1px}.ql-bubble .ql-color-picker .ql-picker-item.ql-selected,.ql-bubble .ql-color-picker .ql-picker-item:hover{border-color:#fff}.ql-bubble .ql-tooltip{background-color:#444;border-radius:25px;color:#fff}.ql-bubble .ql-tooltip-arrow{border-left:6px solid transparent;border-right:6px solid transparent;content:" ";display:block;left:50%;margin-left:-6px;position:absolute}.ql-bubble .ql-tooltip:not(.ql-flip) .ql-tooltip-arrow{border-bottom:6px solid #444;top:-6px}.ql-bubble .ql-tooltip.ql-flip .ql-tooltip-arrow{border-top:6px solid #444;bottom:-6px}.ql-bubble .ql-tooltip.ql-editing .ql-tooltip-editor{display:block}.ql-bubble .ql-tooltip.ql-editing .ql-formats{visibility:hidden}.ql-bubble .ql-tooltip-editor{display:none}.ql-bubble .ql-tooltip-editor input[type=text]{background:transparent;border:none;color:#fff;font-size:13px;height:100%;outline:none;padding:10px 20px;position:absolute;width:100%}.ql-bubble .ql-tooltip-editor a{top:10px;position:absolute;right:20px}.ql-bubble .ql-tooltip-editor a:before{color:#ccc;content:"\d7";font-size:16px;font-weight:700}.ql-container.ql-bubble:not(.ql-disabled) a{position:relative;white-space:nowrap}.ql-container.ql-bubble:not(.ql-disabled) a:before{background-color:#444;border-radius:15px;top:-5px;font-size:12px;color:#fff;content:attr(href);font-weight:400;overflow:hidden;padding:5px 15px;text-decoration:none;z-index:1}.ql-container.ql-bubble:not(.ql-disabled) a:after{border-top:6px solid #444;border-left:6px solid transparent;border-right:6px solid transparent;top:0;content:" ";height:0;width:0}.ql-container.ql-bubble:not(.ql-disabled) a:before,.ql-container.ql-bubble:not(.ql-disabled) a:after{left:0;margin-left:50%;position:absolute;transform:translate(-50%,-100%);transition:visibility 0s ease .2s;visibility:hidden}.ql-container.ql-bubble:not(.ql-disabled) a:hover:before,.ql-container.ql-bubble:not(.ql-disabled) a:hover:after{visibility:visible}.ql-mention-list-container{width:270px;border:1px solid #f0f0f0;border-radius:4px;background-color:#fff;box-shadow:0 2px 12px #1e1e1e14;z-index:9001;overflow:auto}.ql-mention-loading{line-height:44px;padding:0 20px;vertical-align:middle;font-size:16px}.ql-mention-list{list-style:none;margin:0;padding:0;overflow:hidden}.ql-mention-list-item{cursor:pointer;line-height:44px;font-size:16px;padding:0 20px;vertical-align:middle}.ql-mention-list-item.disabled{cursor:auto}.ql-mention-list-item.selected{background-color:#d3e1eb;text-decoration:none}.mention{height:24px;width:65px;border-radius:6px;background-color:#d3e1eb;padding:3px 0;margin-right:2px;-webkit-user-select:all;-moz-user-select:all;user-select:all}.mention>span{margin:0 3px}.file-icon:before{content:"";background-repeat:no-repeat;background-size:contain;background-image:url(/js/build/other.0cd5a04c.svg)}.file-icon.archive:before{background-image:url(/js/build/archive.2927c41b.svg)}.file-icon.cad:before{background-image:url(/js/build/cad.2dfbfe73.svg)}.file-icon.code:before{background-image:url(/js/build/code.1a9a4504.svg)}.file-icon.document:before{background-image:url(/js/build/document.624c4d76.svg)}.file-icon.drawio:before{background-image:url(/js/build/flow.a58ab0df.svg)}.file-icon.excel:before{background-image:url(/js/build/excel.82abb1cd.svg)}.file-icon.flow:before{background-image:url(/js/build/flow.a58ab0df.svg)}.file-icon.folder:before{background-image:url(/js/build/folder.68818161.svg)}.file-icon.folder.share:before{background-image:url(/js/build/folder-share.800b7d36.svg)}.file-icon.media:before{background-image:url(/js/build/media.7488f9a1.svg)}.file-icon.mind:before{background-image:url(/js/build/mind.9f75182d.svg)}.file-icon.ofd:before{background-image:url(/js/build/ofd.f4f94aaa.svg)}.file-icon.pdf:before{background-image:url(/js/build/pdf.74ce4683.svg)}.file-icon.picture:before{background-image:url(/js/build/picture.eff6e480.svg)}.file-icon.ppt:before{background-image:url(/js/build/ppt.03f2290d.svg)}.file-icon.sheet:before{background-image:url(/js/build/sheet.872ae91e.svg)}.file-icon.tif:before{background-image:url(/js/build/tif.7a6494bd.svg)}.file-icon.txt:before{background-image:url(/js/build/txt.acaac5b7.svg)}.file-icon.updir:before{background-image:url(/js/build/updir.354f6e04.svg)}.file-icon.upload:before{background-image:url(/js/build/upload.01661a19.svg)}.file-icon.word:before{background-image:url(/js/build/word.d0364128.svg)}.file-icon.wps:before{background-image:url(/js/build/wps.3cbc3b98.svg)}.fade-in-linear-enter-active,.fade-in-linear-leave-active{transition:opacity .2s linear}.fade-in-linear-enter,.fade-in-linear-leave,.fade-in-linear-leave-active{opacity:0}.el-fade-in-linear-enter-active,.el-fade-in-linear-leave-active{transition:opacity .2s linear}.el-fade-in-linear-enter,.el-fade-in-linear-leave,.el-fade-in-linear-leave-active{opacity:0}.el-fade-in-enter-active,.el-fade-in-leave-active{transition:all .3s cubic-bezier(.55,0,.1,1)}.el-fade-in-enter,.el-fade-in-leave-active{opacity:0}.el-zoom-in-center-enter-active,.el-zoom-in-center-leave-active{transition:all .3s cubic-bezier(.55,0,.1,1)}.el-zoom-in-center-enter,.el-zoom-in-center-leave-active{opacity:0;transform:scaleX(0)}.el-zoom-in-top-enter-active,.el-zoom-in-top-leave-active{opacity:1;transform:scaleY(1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1);transform-origin:center top}.el-zoom-in-top-enter,.el-zoom-in-top-leave-active{opacity:0;transform:scaleY(0)}.el-zoom-in-bottom-enter-active,.el-zoom-in-bottom-leave-active{opacity:1;transform:scaleY(1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1);transform-origin:center bottom}.el-zoom-in-bottom-enter,.el-zoom-in-bottom-leave-active{opacity:0;transform:scaleY(0)}.el-zoom-in-left-enter-active,.el-zoom-in-left-leave-active{opacity:1;transform:scale(1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1);transform-origin:top left}.el-zoom-in-left-enter,.el-zoom-in-left-leave-active{opacity:0;transform:scale(.45)}.collapse-transition{transition:.3s height ease-in-out,.3s padding-top ease-in-out,.3s padding-bottom ease-in-out}.horizontal-collapse-transition{transition:.3s width ease-in-out,.3s padding-left ease-in-out,.3s padding-right ease-in-out}.el-list-enter-active,.el-list-leave-active{transition:all 1s}.el-list-enter,.el-list-leave-active{opacity:0;transform:translateY(-30px)}.el-opacity-transition{transition:opacity .3s cubic-bezier(.55,0,.1,1)}@font-face{font-family:element-icons;src:url(fonts/element-icons.woff) format("woff"),url(fonts/element-icons.ttf) format("truetype");font-weight:400;font-display:"auto";font-style:normal}[class^=el-icon-],[class*=" el-icon-"]{font-family:element-icons!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;vertical-align:baseline;display:inline-block;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.el-icon-ice-cream-round:before{content:"\e6a0"}.el-icon-ice-cream-square:before{content:"\e6a3"}.el-icon-lollipop:before{content:"\e6a4"}.el-icon-potato-strips:before{content:"\e6a5"}.el-icon-milk-tea:before{content:"\e6a6"}.el-icon-ice-drink:before{content:"\e6a7"}.el-icon-ice-tea:before{content:"\e6a9"}.el-icon-coffee:before{content:"\e6aa"}.el-icon-orange:before{content:"\e6ab"}.el-icon-pear:before{content:"\e6ac"}.el-icon-apple:before{content:"\e6ad"}.el-icon-cherry:before{content:"\e6ae"}.el-icon-watermelon:before{content:"\e6af"}.el-icon-grape:before{content:"\e6b0"}.el-icon-refrigerator:before{content:"\e6b1"}.el-icon-goblet-square-full:before{content:"\e6b2"}.el-icon-goblet-square:before{content:"\e6b3"}.el-icon-goblet-full:before{content:"\e6b4"}.el-icon-goblet:before{content:"\e6b5"}.el-icon-cold-drink:before{content:"\e6b6"}.el-icon-coffee-cup:before{content:"\e6b8"}.el-icon-water-cup:before{content:"\e6b9"}.el-icon-hot-water:before{content:"\e6ba"}.el-icon-ice-cream:before{content:"\e6bb"}.el-icon-dessert:before{content:"\e6bc"}.el-icon-sugar:before{content:"\e6bd"}.el-icon-tableware:before{content:"\e6be"}.el-icon-burger:before{content:"\e6bf"}.el-icon-knife-fork:before{content:"\e6c1"}.el-icon-fork-spoon:before{content:"\e6c2"}.el-icon-chicken:before{content:"\e6c3"}.el-icon-food:before{content:"\e6c4"}.el-icon-dish-1:before{content:"\e6c5"}.el-icon-dish:before{content:"\e6c6"}.el-icon-moon-night:before{content:"\e6ee"}.el-icon-moon:before{content:"\e6f0"}.el-icon-cloudy-and-sunny:before{content:"\e6f1"}.el-icon-partly-cloudy:before{content:"\e6f2"}.el-icon-cloudy:before{content:"\e6f3"}.el-icon-sunny:before{content:"\e6f6"}.el-icon-sunset:before{content:"\e6f7"}.el-icon-sunrise-1:before{content:"\e6f8"}.el-icon-sunrise:before{content:"\e6f9"}.el-icon-heavy-rain:before{content:"\e6fa"}.el-icon-lightning:before{content:"\e6fb"}.el-icon-light-rain:before{content:"\e6fc"}.el-icon-wind-power:before{content:"\e6fd"}.el-icon-baseball:before{content:"\e712"}.el-icon-soccer:before{content:"\e713"}.el-icon-football:before{content:"\e715"}.el-icon-basketball:before{content:"\e716"}.el-icon-ship:before{content:"\e73f"}.el-icon-truck:before{content:"\e740"}.el-icon-bicycle:before{content:"\e741"}.el-icon-mobile-phone:before{content:"\e6d3"}.el-icon-service:before{content:"\e6d4"}.el-icon-key:before{content:"\e6e2"}.el-icon-unlock:before{content:"\e6e4"}.el-icon-lock:before{content:"\e6e5"}.el-icon-watch:before{content:"\e6fe"}.el-icon-watch-1:before{content:"\e6ff"}.el-icon-timer:before{content:"\e702"}.el-icon-alarm-clock:before{content:"\e703"}.el-icon-map-location:before{content:"\e704"}.el-icon-delete-location:before{content:"\e705"}.el-icon-add-location:before{content:"\e706"}.el-icon-location-information:before{content:"\e707"}.el-icon-location-outline:before{content:"\e708"}.el-icon-location:before{content:"\e79e"}.el-icon-place:before{content:"\e709"}.el-icon-discover:before{content:"\e70a"}.el-icon-first-aid-kit:before{content:"\e70b"}.el-icon-trophy-1:before{content:"\e70c"}.el-icon-trophy:before{content:"\e70d"}.el-icon-medal:before{content:"\e70e"}.el-icon-medal-1:before{content:"\e70f"}.el-icon-stopwatch:before{content:"\e710"}.el-icon-mic:before{content:"\e711"}.el-icon-copy-document:before{content:"\e718"}.el-icon-full-screen:before{content:"\e719"}.el-icon-switch-button:before{content:"\e71b"}.el-icon-aim:before{content:"\e71c"}.el-icon-crop:before{content:"\e71d"}.el-icon-odometer:before{content:"\e71e"}.el-icon-time:before{content:"\e71f"}.el-icon-bangzhu:before{content:"\e724"}.el-icon-close-notification:before{content:"\e726"}.el-icon-microphone:before{content:"\e727"}.el-icon-turn-off-microphone:before{content:"\e728"}.el-icon-position:before{content:"\e729"}.el-icon-postcard:before{content:"\e72a"}.el-icon-message:before{content:"\e72b"}.el-icon-chat-line-square:before{content:"\e72d"}.el-icon-chat-dot-square:before{content:"\e72e"}.el-icon-chat-dot-round:before{content:"\e72f"}.el-icon-chat-square:before{content:"\e730"}.el-icon-chat-line-round:before{content:"\e731"}.el-icon-chat-round:before{content:"\e732"}.el-icon-set-up:before{content:"\e733"}.el-icon-turn-off:before{content:"\e734"}.el-icon-open:before{content:"\e735"}.el-icon-connection:before{content:"\e736"}.el-icon-link:before{content:"\e737"}.el-icon-cpu:before{content:"\e738"}.el-icon-thumb:before{content:"\e739"}.el-icon-female:before{content:"\e73a"}.el-icon-male:before{content:"\e73b"}.el-icon-guide:before{content:"\e73c"}.el-icon-news:before{content:"\e73e"}.el-icon-price-tag:before{content:"\e744"}.el-icon-discount:before{content:"\e745"}.el-icon-wallet:before{content:"\e747"}.el-icon-coin:before{content:"\e748"}.el-icon-money:before{content:"\e749"}.el-icon-bank-card:before{content:"\e74a"}.el-icon-box:before{content:"\e74b"}.el-icon-present:before{content:"\e74c"}.el-icon-sell:before{content:"\e6d5"}.el-icon-sold-out:before{content:"\e6d6"}.el-icon-shopping-bag-2:before{content:"\e74d"}.el-icon-shopping-bag-1:before{content:"\e74e"}.el-icon-shopping-cart-2:before{content:"\e74f"}.el-icon-shopping-cart-1:before{content:"\e750"}.el-icon-shopping-cart-full:before{content:"\e751"}.el-icon-smoking:before{content:"\e752"}.el-icon-no-smoking:before{content:"\e753"}.el-icon-house:before{content:"\e754"}.el-icon-table-lamp:before{content:"\e755"}.el-icon-school:before{content:"\e756"}.el-icon-office-building:before{content:"\e757"}.el-icon-toilet-paper:before{content:"\e758"}.el-icon-notebook-2:before{content:"\e759"}.el-icon-notebook-1:before{content:"\e75a"}.el-icon-files:before{content:"\e75b"}.el-icon-collection:before{content:"\e75c"}.el-icon-receiving:before{content:"\e75d"}.el-icon-suitcase-1:before{content:"\e760"}.el-icon-suitcase:before{content:"\e761"}.el-icon-film:before{content:"\e763"}.el-icon-collection-tag:before{content:"\e765"}.el-icon-data-analysis:before{content:"\e766"}.el-icon-pie-chart:before{content:"\e767"}.el-icon-data-board:before{content:"\e768"}.el-icon-data-line:before{content:"\e76d"}.el-icon-reading:before{content:"\e769"}.el-icon-magic-stick:before{content:"\e76a"}.el-icon-coordinate:before{content:"\e76b"}.el-icon-mouse:before{content:"\e76c"}.el-icon-brush:before{content:"\e76e"}.el-icon-headset:before{content:"\e76f"}.el-icon-umbrella:before{content:"\e770"}.el-icon-scissors:before{content:"\e771"}.el-icon-mobile:before{content:"\e773"}.el-icon-attract:before{content:"\e774"}.el-icon-monitor:before{content:"\e775"}.el-icon-search:before{content:"\e778"}.el-icon-takeaway-box:before{content:"\e77a"}.el-icon-paperclip:before{content:"\e77d"}.el-icon-printer:before{content:"\e77e"}.el-icon-document-add:before{content:"\e782"}.el-icon-document:before{content:"\e785"}.el-icon-document-checked:before{content:"\e786"}.el-icon-document-copy:before{content:"\e787"}.el-icon-document-delete:before{content:"\e788"}.el-icon-document-remove:before{content:"\e789"}.el-icon-tickets:before{content:"\e78b"}.el-icon-folder-checked:before{content:"\e77f"}.el-icon-folder-delete:before{content:"\e780"}.el-icon-folder-remove:before{content:"\e781"}.el-icon-folder-add:before{content:"\e783"}.el-icon-folder-opened:before{content:"\e784"}.el-icon-folder:before{content:"\e78a"}.el-icon-edit-outline:before{content:"\e764"}.el-icon-edit:before{content:"\e78c"}.el-icon-date:before{content:"\e78e"}.el-icon-c-scale-to-original:before{content:"\e7c6"}.el-icon-view:before{content:"\e6ce"}.el-icon-loading:before{content:"\e6cf"}.el-icon-rank:before{content:"\e6d1"}.el-icon-sort-down:before{content:"\e7c4"}.el-icon-sort-up:before{content:"\e7c5"}.el-icon-sort:before{content:"\e6d2"}.el-icon-finished:before{content:"\e6cd"}.el-icon-refresh-left:before{content:"\e6c7"}.el-icon-refresh-right:before{content:"\e6c8"}.el-icon-refresh:before{content:"\e6d0"}.el-icon-video-play:before{content:"\e7c0"}.el-icon-video-pause:before{content:"\e7c1"}.el-icon-d-arrow-right:before{content:"\e6dc"}.el-icon-d-arrow-left:before{content:"\e6dd"}.el-icon-arrow-up:before{content:"\e6e1"}.el-icon-arrow-down:before{content:"\e6df"}.el-icon-arrow-right:before{content:"\e6e0"}.el-icon-arrow-left:before{content:"\e6de"}.el-icon-top-right:before{content:"\e6e7"}.el-icon-top-left:before{content:"\e6e8"}.el-icon-top:before{content:"\e6e6"}.el-icon-bottom:before{content:"\e6eb"}.el-icon-right:before{content:"\e6e9"}.el-icon-back:before{content:"\e6ea"}.el-icon-bottom-right:before{content:"\e6ec"}.el-icon-bottom-left:before{content:"\e6ed"}.el-icon-caret-top:before{content:"\e78f"}.el-icon-caret-bottom:before{content:"\e790"}.el-icon-caret-right:before{content:"\e791"}.el-icon-caret-left:before{content:"\e792"}.el-icon-d-caret:before{content:"\e79a"}.el-icon-share:before{content:"\e793"}.el-icon-menu:before{content:"\e798"}.el-icon-s-grid:before{content:"\e7a6"}.el-icon-s-check:before{content:"\e7a7"}.el-icon-s-data:before{content:"\e7a8"}.el-icon-s-opportunity:before{content:"\e7aa"}.el-icon-s-custom:before{content:"\e7ab"}.el-icon-s-claim:before{content:"\e7ad"}.el-icon-s-finance:before{content:"\e7ae"}.el-icon-s-comment:before{content:"\e7af"}.el-icon-s-flag:before{content:"\e7b0"}.el-icon-s-marketing:before{content:"\e7b1"}.el-icon-s-shop:before{content:"\e7b4"}.el-icon-s-open:before{content:"\e7b5"}.el-icon-s-management:before{content:"\e7b6"}.el-icon-s-ticket:before{content:"\e7b7"}.el-icon-s-release:before{content:"\e7b8"}.el-icon-s-home:before{content:"\e7b9"}.el-icon-s-promotion:before{content:"\e7ba"}.el-icon-s-operation:before{content:"\e7bb"}.el-icon-s-unfold:before{content:"\e7bc"}.el-icon-s-fold:before{content:"\e7a9"}.el-icon-s-platform:before{content:"\e7bd"}.el-icon-s-order:before{content:"\e7be"}.el-icon-s-cooperation:before{content:"\e7bf"}.el-icon-bell:before{content:"\e725"}.el-icon-message-solid:before{content:"\e799"}.el-icon-video-camera:before{content:"\e772"}.el-icon-video-camera-solid:before{content:"\e796"}.el-icon-camera:before{content:"\e779"}.el-icon-camera-solid:before{content:"\e79b"}.el-icon-download:before{content:"\e77c"}.el-icon-upload2:before{content:"\e77b"}.el-icon-upload:before{content:"\e7c3"}.el-icon-picture-outline-round:before{content:"\e75f"}.el-icon-picture-outline:before{content:"\e75e"}.el-icon-picture:before{content:"\e79f"}.el-icon-close:before{content:"\e6db"}.el-icon-check:before{content:"\e6da"}.el-icon-plus:before{content:"\e6d9"}.el-icon-minus:before{content:"\e6d8"}.el-icon-help:before{content:"\e73d"}.el-icon-s-help:before{content:"\e7b3"}.el-icon-circle-close:before{content:"\e78d"}.el-icon-circle-check:before{content:"\e720"}.el-icon-circle-plus-outline:before{content:"\e723"}.el-icon-remove-outline:before{content:"\e722"}.el-icon-zoom-out:before{content:"\e776"}.el-icon-zoom-in:before{content:"\e777"}.el-icon-error:before{content:"\e79d"}.el-icon-success:before{content:"\e79c"}.el-icon-circle-plus:before{content:"\e7a0"}.el-icon-remove:before{content:"\e7a2"}.el-icon-info:before{content:"\e7a1"}.el-icon-question:before{content:"\e7a4"}.el-icon-warning-outline:before{content:"\e6c9"}.el-icon-warning:before{content:"\e7a3"}.el-icon-goods:before{content:"\e7c2"}.el-icon-s-goods:before{content:"\e7b2"}.el-icon-star-off:before{content:"\e717"}.el-icon-star-on:before{content:"\e797"}.el-icon-more-outline:before{content:"\e6cc"}.el-icon-more:before{content:"\e794"}.el-icon-phone-outline:before{content:"\e6cb"}.el-icon-phone:before{content:"\e795"}.el-icon-user:before{content:"\e6e3"}.el-icon-user-solid:before{content:"\e7a5"}.el-icon-setting:before{content:"\e6ca"}.el-icon-s-tools:before{content:"\e7ac"}.el-icon-delete:before{content:"\e6d7"}.el-icon-delete-solid:before{content:"\e7c9"}.el-icon-eleme:before{content:"\e7c7"}.el-icon-platform-eleme:before{content:"\e7ca"}.el-icon-loading{animation:rotating 2s linear infinite}.el-icon--right{margin-left:5px}.el-icon--left{margin-right:5px}@keyframes rotating{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.el-avatar{display:inline-block;box-sizing:border-box;text-align:center;overflow:hidden;color:#fff;background:#C0C4CC;width:40px;height:40px;line-height:40px;font-size:14px}.el-avatar>img{display:block;height:100%;vertical-align:middle}.el-avatar--circle{border-radius:50%}.el-avatar--square{border-radius:4px}.el-avatar--icon{font-size:18px}.el-avatar--large{width:40px;height:40px;line-height:40px}.el-avatar--medium{width:36px;height:36px;line-height:36px}.el-avatar--small{width:28px;height:28px;line-height:28px}.el-tooltip:focus:not(.focusing),.el-tooltip:focus:hover{outline-width:0}.el-tooltip__popper{position:absolute;border-radius:4px;padding:10px;z-index:2000;font-size:14px;line-height:1.2;min-width:10px;word-wrap:break-word}.el-tooltip__popper .popper__arrow,.el-tooltip__popper .popper__arrow:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}.el-tooltip__popper .popper__arrow{border-width:6px}.el-tooltip__popper .popper__arrow:after{content:" ";border-width:5px}.el-tooltip__popper[x-placement^=top]{margin-bottom:12px}.el-tooltip__popper[x-placement^=top] .popper__arrow{bottom:-6px;border-top-color:#585e6a;border-bottom-width:0}.el-tooltip__popper[x-placement^=top] .popper__arrow:after{bottom:1px;margin-left:-5px;border-top-color:#585e6a;border-bottom-width:0}.el-tooltip__popper[x-placement^=bottom]{margin-top:12px}.el-tooltip__popper[x-placement^=bottom] .popper__arrow{top:-6px;border-top-width:0;border-bottom-color:#585e6a}.el-tooltip__popper[x-placement^=bottom] .popper__arrow:after{top:1px;margin-left:-5px;border-top-width:0;border-bottom-color:#585e6a}.el-tooltip__popper[x-placement^=right]{margin-left:12px}.el-tooltip__popper[x-placement^=right] .popper__arrow{left:-6px;border-right-color:#585e6a;border-left-width:0}.el-tooltip__popper[x-placement^=right] .popper__arrow:after{bottom:-5px;left:1px;border-right-color:#585e6a;border-left-width:0}.el-tooltip__popper[x-placement^=left]{margin-right:12px}.el-tooltip__popper[x-placement^=left] .popper__arrow{right:-6px;border-right-width:0;border-left-color:#585e6a}.el-tooltip__popper[x-placement^=left] .popper__arrow:after{right:1px;bottom:-5px;margin-left:-5px;border-right-width:0;border-left-color:#585e6a}.el-tooltip__popper.is-dark{background:#585E6A;color:#fff}.el-tooltip__popper.is-light{background:#FFFFFF;border:1px solid #585E6A}.el-tooltip__popper.is-light[x-placement^=top] .popper__arrow{border-top-color:#585e6a}.el-tooltip__popper.is-light[x-placement^=top] .popper__arrow:after{border-top-color:#fff}.el-tooltip__popper.is-light[x-placement^=bottom] .popper__arrow{border-bottom-color:#585e6a}.el-tooltip__popper.is-light[x-placement^=bottom] .popper__arrow:after{border-bottom-color:#fff}.el-tooltip__popper.is-light[x-placement^=left] .popper__arrow{border-left-color:#585e6a}.el-tooltip__popper.is-light[x-placement^=left] .popper__arrow:after{border-left-color:#fff}.el-tooltip__popper.is-light[x-placement^=right] .popper__arrow{border-right-color:#585e6a}.el-tooltip__popper.is-light[x-placement^=right] .popper__arrow:after{border-right-color:#fff}.el-popper .popper__arrow,.el-popper .popper__arrow:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}.el-popper .popper__arrow{border-width:6px;filter:drop-shadow(0 2px 12px rgba(0,0,0,.03))}.el-popper .popper__arrow:after{content:" ";border-width:6px}.el-popper[x-placement^=top]{margin-bottom:12px}.el-popper[x-placement^=top] .popper__arrow{bottom:-6px;left:50%;margin-right:3px;border-top-color:#ebeef5;border-bottom-width:0}.el-popper[x-placement^=top] .popper__arrow:after{bottom:1px;margin-left:-6px;border-top-color:#fff;border-bottom-width:0}.el-popper[x-placement^=bottom]{margin-top:12px}.el-popper[x-placement^=bottom] .popper__arrow{top:-6px;left:50%;margin-right:3px;border-top-width:0;border-bottom-color:#ebeef5}.el-popper[x-placement^=bottom] .popper__arrow:after{top:1px;margin-left:-6px;border-top-width:0;border-bottom-color:#fff}.el-popper[x-placement^=right]{margin-left:12px}.el-popper[x-placement^=right] .popper__arrow{top:50%;left:-6px;margin-bottom:3px;border-right-color:#ebeef5;border-left-width:0}.el-popper[x-placement^=right] .popper__arrow:after{bottom:-6px;left:1px;border-right-color:#fff;border-left-width:0}.el-popper[x-placement^=left]{margin-right:12px}.el-popper[x-placement^=left] .popper__arrow{top:50%;right:-6px;margin-bottom:3px;border-right-width:0;border-left-color:#ebeef5}.el-popper[x-placement^=left] .popper__arrow:after{right:1px;bottom:-6px;margin-left:-6px;border-right-width:0;border-left-color:#fff}.el-popover{position:absolute;background:#FFFFFF;min-width:150px;border-radius:4px;border:1px solid #EBEEF5;padding:12px;z-index:2000;color:#606266;line-height:1.4;text-align:justify;font-size:14px;box-shadow:0 2px 12px #0000001a;word-break:break-all}.el-popover--plain{padding:18px 20px}.el-popover__title{color:#303133;font-size:16px;line-height:1;margin-bottom:12px}.el-popover__reference:focus:not(.focusing),.el-popover__reference:focus:hover{outline-width:0}.el-popover:focus:active,.el-popover:focus{outline-width:0}.el-button{display:inline-block;line-height:1;white-space:nowrap;cursor:pointer;background:#FFFFFF;border:1px solid #DCDFE6;border-color:#dcdfe6;color:#606266;-webkit-appearance:none;text-align:center;box-sizing:border-box;outline:none;margin:0;transition:.1s;font-weight:500;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;padding:12px 20px;font-size:14px;border-radius:4px}.el-button+.el-button{margin-left:10px}.el-button.is-round{padding:12px 20px}.el-button:hover,.el-button:focus{color:#409eff;border-color:#c6e2ff;background-color:#ecf5ff}.el-button:active{color:#3a8ee6;border-color:#3a8ee6;outline:none}.el-button::-moz-focus-inner{border:0}.el-button [class*=el-icon-]+span{margin-left:5px}.el-button.is-plain:hover,.el-button.is-plain:focus{background:#FFFFFF;border-color:#409eff;color:#409eff}.el-button.is-plain:active{background:#FFFFFF;border-color:#3a8ee6;color:#3a8ee6;outline:none}.el-button.is-active{color:#3a8ee6;border-color:#3a8ee6}.el-button.is-disabled,.el-button.is-disabled:hover,.el-button.is-disabled:focus{color:#c0c4cc;cursor:not-allowed;background-image:none;background-color:#fff;border-color:#ebeef5}.el-button.is-disabled.el-button--text{background-color:transparent}.el-button.is-disabled.is-plain,.el-button.is-disabled.is-plain:hover,.el-button.is-disabled.is-plain:focus{background-color:#fff;border-color:#ebeef5;color:#c0c4cc}.el-button.is-loading{position:relative;pointer-events:none}.el-button.is-loading:before{pointer-events:none;content:"";position:absolute;left:-1px;top:-1px;right:-1px;bottom:-1px;border-radius:inherit;background-color:#ffffff59}.el-button.is-round{border-radius:20px;padding:12px 23px}.el-button.is-circle{border-radius:50%;padding:12px}.el-button--primary{color:#fff;background-color:#409eff;border-color:#409eff}.el-button--primary:hover,.el-button--primary:focus{background:#66b1ff;border-color:#66b1ff;color:#fff}.el-button--primary:active{background:#3a8ee6;border-color:#3a8ee6;color:#fff;outline:none}.el-button--primary.is-active{background:#3a8ee6;border-color:#3a8ee6;color:#fff}.el-button--primary.is-disabled,.el-button--primary.is-disabled:hover,.el-button--primary.is-disabled:focus,.el-button--primary.is-disabled:active{color:#fff;background-color:#a0cfff;border-color:#a0cfff}.el-button--primary.is-plain{color:#409eff;background:#ecf5ff;border-color:#b3d8ff}.el-button--primary.is-plain:hover,.el-button--primary.is-plain:focus{background:#409EFF;border-color:#409eff;color:#fff}.el-button--primary.is-plain:active{background:#3a8ee6;border-color:#3a8ee6;color:#fff;outline:none}.el-button--primary.is-plain.is-disabled,.el-button--primary.is-plain.is-disabled:hover,.el-button--primary.is-plain.is-disabled:focus,.el-button--primary.is-plain.is-disabled:active{color:#8cc5ff;background-color:#ecf5ff;border-color:#d9ecff}.el-button--success{color:#fff;background-color:#67c23a;border-color:#67c23a}.el-button--success:hover,.el-button--success:focus{background:#85ce61;border-color:#85ce61;color:#fff}.el-button--success:active{background:#5daf34;border-color:#5daf34;color:#fff;outline:none}.el-button--success.is-active{background:#5daf34;border-color:#5daf34;color:#fff}.el-button--success.is-disabled,.el-button--success.is-disabled:hover,.el-button--success.is-disabled:focus,.el-button--success.is-disabled:active{color:#fff;background-color:#b3e19d;border-color:#b3e19d}.el-button--success.is-plain{color:#67c23a;background:#f0f9eb;border-color:#c2e7b0}.el-button--success.is-plain:hover,.el-button--success.is-plain:focus{background:#67C23A;border-color:#67c23a;color:#fff}.el-button--success.is-plain:active{background:#5daf34;border-color:#5daf34;color:#fff;outline:none}.el-button--success.is-plain.is-disabled,.el-button--success.is-plain.is-disabled:hover,.el-button--success.is-plain.is-disabled:focus,.el-button--success.is-plain.is-disabled:active{color:#a4da89;background-color:#f0f9eb;border-color:#e1f3d8}.el-button--warning{color:#fff;background-color:#e6a23c;border-color:#e6a23c}.el-button--warning:hover,.el-button--warning:focus{background:#ebb563;border-color:#ebb563;color:#fff}.el-button--warning:active{background:#cf9236;border-color:#cf9236;color:#fff;outline:none}.el-button--warning.is-active{background:#cf9236;border-color:#cf9236;color:#fff}.el-button--warning.is-disabled,.el-button--warning.is-disabled:hover,.el-button--warning.is-disabled:focus,.el-button--warning.is-disabled:active{color:#fff;background-color:#f3d19e;border-color:#f3d19e}.el-button--warning.is-plain{color:#e6a23c;background:#fdf6ec;border-color:#f5dab1}.el-button--warning.is-plain:hover,.el-button--warning.is-plain:focus{background:#E6A23C;border-color:#e6a23c;color:#fff}.el-button--warning.is-plain:active{background:#cf9236;border-color:#cf9236;color:#fff;outline:none}.el-button--warning.is-plain.is-disabled,.el-button--warning.is-plain.is-disabled:hover,.el-button--warning.is-plain.is-disabled:focus,.el-button--warning.is-plain.is-disabled:active{color:#f0c78a;background-color:#fdf6ec;border-color:#faecd8}.el-button--danger{color:#fff;background-color:#f56c6c;border-color:#f56c6c}.el-button--danger:hover,.el-button--danger:focus{background:#f78989;border-color:#f78989;color:#fff}.el-button--danger:active{background:#dd6161;border-color:#dd6161;color:#fff;outline:none}.el-button--danger.is-active{background:#dd6161;border-color:#dd6161;color:#fff}.el-button--danger.is-disabled,.el-button--danger.is-disabled:hover,.el-button--danger.is-disabled:focus,.el-button--danger.is-disabled:active{color:#fff;background-color:#fab6b6;border-color:#fab6b6}.el-button--danger.is-plain{color:#f56c6c;background:#fef0f0;border-color:#fbc4c4}.el-button--danger.is-plain:hover,.el-button--danger.is-plain:focus{background:#F56C6C;border-color:#f56c6c;color:#fff}.el-button--danger.is-plain:active{background:#dd6161;border-color:#dd6161;color:#fff;outline:none}.el-button--danger.is-plain.is-disabled,.el-button--danger.is-plain.is-disabled:hover,.el-button--danger.is-plain.is-disabled:focus,.el-button--danger.is-plain.is-disabled:active{color:#f9a7a7;background-color:#fef0f0;border-color:#fde2e2}.el-button--info{color:#fff;background-color:#909399;border-color:#909399}.el-button--info:hover,.el-button--info:focus{background:#a6a9ad;border-color:#a6a9ad;color:#fff}.el-button--info:active{background:#82848a;border-color:#82848a;color:#fff;outline:none}.el-button--info.is-active{background:#82848a;border-color:#82848a;color:#fff}.el-button--info.is-disabled,.el-button--info.is-disabled:hover,.el-button--info.is-disabled:focus,.el-button--info.is-disabled:active{color:#fff;background-color:#c8c9cc;border-color:#c8c9cc}.el-button--info.is-plain{color:#909399;background:#f4f4f5;border-color:#d3d4d6}.el-button--info.is-plain:hover,.el-button--info.is-plain:focus{background:#909399;border-color:#909399;color:#fff}.el-button--info.is-plain:active{background:#82848a;border-color:#82848a;color:#fff;outline:none}.el-button--info.is-plain.is-disabled,.el-button--info.is-plain.is-disabled:hover,.el-button--info.is-plain.is-disabled:focus,.el-button--info.is-plain.is-disabled:active{color:#bcbec2;background-color:#f4f4f5;border-color:#e9e9eb}.el-button--medium{padding:10px 20px;font-size:14px;border-radius:4px}.el-button--medium.is-round{padding:10px 20px}.el-button--medium.is-circle{padding:10px}.el-button--small{padding:9px 15px;font-size:12px;border-radius:3px}.el-button--small.is-round{padding:9px 15px}.el-button--small.is-circle{padding:9px}.el-button--mini{padding:7px 15px;font-size:12px;border-radius:3px}.el-button--mini.is-round{padding:7px 15px}.el-button--mini.is-circle{padding:7px}.el-button--text{border-color:transparent;color:#409eff;background:transparent;padding-left:0;padding-right:0}.el-button--text:hover,.el-button--text:focus{color:#66b1ff;border-color:transparent;background-color:transparent}.el-button--text:active{color:#3a8ee6;border-color:transparent;background-color:transparent}.el-button--text.is-disabled,.el-button--text.is-disabled:hover,.el-button--text.is-disabled:focus{border-color:transparent}.el-button-group{display:inline-block;vertical-align:middle}.el-button-group:before,.el-button-group:after{display:table;content:""}.el-button-group:after{clear:both}.el-button-group>.el-button{float:left;position:relative}.el-button-group>.el-button+.el-button{margin-left:0}.el-button-group>.el-button.is-disabled{z-index:1}.el-button-group>.el-button:first-child{border-top-right-radius:0;border-bottom-right-radius:0}.el-button-group>.el-button:last-child{border-top-left-radius:0;border-bottom-left-radius:0}.el-button-group>.el-button:first-child:last-child{border-radius:4px}.el-button-group>.el-button:first-child:last-child.is-round{border-radius:20px}.el-button-group>.el-button:first-child:last-child.is-circle{border-radius:50%}.el-button-group>.el-button:not(:first-child):not(:last-child){border-radius:0}.el-button-group>.el-button:not(:last-child){margin-right:-1px}.el-button-group>.el-button:not(.is-disabled):hover,.el-button-group>.el-button:not(.is-disabled):focus,.el-button-group>.el-button:not(.is-disabled):active{z-index:1}.el-button-group>.el-button.is-active{z-index:1}.el-button-group>.el-dropdown>.el-button{border-top-left-radius:0;border-bottom-left-radius:0;border-left-color:#ffffff80}.el-button-group .el-button--primary:first-child{border-right-color:#ffffff80}.el-button-group .el-button--primary:last-child{border-left-color:#ffffff80}.el-button-group .el-button--primary:not(:first-child):not(:last-child){border-left-color:#ffffff80;border-right-color:#ffffff80}.el-button-group .el-button--success:first-child{border-right-color:#ffffff80}.el-button-group .el-button--success:last-child{border-left-color:#ffffff80}.el-button-group .el-button--success:not(:first-child):not(:last-child){border-left-color:#ffffff80;border-right-color:#ffffff80}.el-button-group .el-button--warning:first-child{border-right-color:#ffffff80}.el-button-group .el-button--warning:last-child{border-left-color:#ffffff80}.el-button-group .el-button--warning:not(:first-child):not(:last-child){border-left-color:#ffffff80;border-right-color:#ffffff80}.el-button-group .el-button--danger:first-child{border-right-color:#ffffff80}.el-button-group .el-button--danger:last-child{border-left-color:#ffffff80}.el-button-group .el-button--danger:not(:first-child):not(:last-child){border-left-color:#ffffff80;border-right-color:#ffffff80}.el-button-group .el-button--info:first-child{border-right-color:#ffffff80}.el-button-group .el-button--info:last-child{border-left-color:#ffffff80}.el-button-group .el-button--info:not(:first-child):not(:last-child){border-left-color:#ffffff80;border-right-color:#ffffff80}.el-popper .popper__arrow,.el-popper .popper__arrow:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}.el-popper .popper__arrow{border-width:6px;filter:drop-shadow(0 2px 12px rgba(0,0,0,.03))}.el-popper .popper__arrow:after{content:" ";border-width:6px}.el-popper[x-placement^=top]{margin-bottom:12px}.el-popper[x-placement^=top] .popper__arrow{bottom:-6px;left:50%;margin-right:3px;border-top-color:#ebeef5;border-bottom-width:0}.el-popper[x-placement^=top] .popper__arrow:after{bottom:1px;margin-left:-6px;border-top-color:#fff;border-bottom-width:0}.el-popper[x-placement^=bottom]{margin-top:12px}.el-popper[x-placement^=bottom] .popper__arrow{top:-6px;left:50%;margin-right:3px;border-top-width:0;border-bottom-color:#ebeef5}.el-popper[x-placement^=bottom] .popper__arrow:after{top:1px;margin-left:-6px;border-top-width:0;border-bottom-color:#fff}.el-popper[x-placement^=right]{margin-left:12px}.el-popper[x-placement^=right] .popper__arrow{top:50%;left:-6px;margin-bottom:3px;border-right-color:#ebeef5;border-left-width:0}.el-popper[x-placement^=right] .popper__arrow:after{bottom:-6px;left:1px;border-right-color:#fff;border-left-width:0}.el-popper[x-placement^=left]{margin-right:12px}.el-popper[x-placement^=left] .popper__arrow{top:50%;right:-6px;margin-bottom:3px;border-right-width:0;border-left-color:#ebeef5}.el-popper[x-placement^=left] .popper__arrow:after{right:1px;bottom:-6px;margin-left:-6px;border-right-width:0;border-left-color:#fff}.el-dropdown{display:inline-block;position:relative;color:#606266;font-size:14px}.el-dropdown .el-button-group{display:block}.el-dropdown .el-button-group .el-button{float:none}.el-dropdown .el-dropdown__caret-button{padding-left:5px;padding-right:5px;position:relative;border-left:none}.el-dropdown .el-dropdown__caret-button:before{content:"";position:absolute;display:block;width:1px;top:5px;bottom:5px;left:0;background:rgba(255,255,255,.5)}.el-dropdown .el-dropdown__caret-button.el-button--default:before{background:rgba(220,223,230,.5)}.el-dropdown .el-dropdown__caret-button:hover:not(.is-disabled):before{top:0;bottom:0}.el-dropdown .el-dropdown__caret-button .el-dropdown__icon{padding-left:0}.el-dropdown__icon{font-size:12px;margin:0 3px}.el-dropdown .el-dropdown-selfdefine:focus:active,.el-dropdown .el-dropdown-selfdefine:focus:not(.focusing){outline-width:0}.el-dropdown [disabled]{cursor:not-allowed;color:#bbb}.el-dropdown-menu{position:absolute;top:0;left:0;z-index:10;padding:10px 0;margin:5px 0;background-color:#fff;border:1px solid #EBEEF5;border-radius:4px;box-shadow:0 2px 12px #0000001a}.el-dropdown-menu__item{list-style:none;line-height:36px;padding:0 20px;margin:0;font-size:14px;color:#606266;cursor:pointer;outline:none}.el-dropdown-menu__item:not(.is-disabled):hover,.el-dropdown-menu__item:focus{background-color:#f4f5f7;color:#606266}.el-dropdown-menu__item i{margin-right:5px}.el-dropdown-menu__item--divided{position:relative;margin-top:6px;border-top:1px solid #EBEEF5}.el-dropdown-menu__item--divided:before{content:"";height:6px;display:block;margin:0 -20px;background-color:#fff}.el-dropdown-menu__item.is-disabled{cursor:default;color:#bbb;pointer-events:none}.el-dropdown-menu--medium{padding:6px 0}.el-dropdown-menu--medium .el-dropdown-menu__item{line-height:30px;padding:0 17px;font-size:14px}.el-dropdown-menu--medium .el-dropdown-menu__item.el-dropdown-menu__item--divided{margin-top:6px}.el-dropdown-menu--medium .el-dropdown-menu__item.el-dropdown-menu__item--divided:before{height:6px;margin:0 -17px}.el-dropdown-menu--small{padding:6px 0}.el-dropdown-menu--small .el-dropdown-menu__item{line-height:27px;padding:0 15px;font-size:13px}.el-dropdown-menu--small .el-dropdown-menu__item.el-dropdown-menu__item--divided{margin-top:4px}.el-dropdown-menu--small .el-dropdown-menu__item.el-dropdown-menu__item--divided:before{height:4px;margin:0 -15px}.el-dropdown-menu--mini{padding:3px 0}.el-dropdown-menu--mini .el-dropdown-menu__item{line-height:24px;padding:0 10px;font-size:12px}.el-dropdown-menu--mini .el-dropdown-menu__item.el-dropdown-menu__item--divided{margin-top:3px}.el-dropdown-menu--mini .el-dropdown-menu__item.el-dropdown-menu__item--divided:before{height:3px;margin:0 -10px}.el-notification{display:flex;width:330px;padding:14px 26px 14px 13px;border-radius:8px;box-sizing:border-box;border:1px solid #EBEEF5;position:fixed;background-color:#fff;box-shadow:0 2px 12px #0000001a;transition:opacity .3s,transform .3s,left .3s,right .3s,top .4s,bottom .3s;overflow:hidden}.el-notification.right{right:16px}.el-notification.left{left:16px}.el-notification__group{margin-left:13px;margin-right:8px}.el-notification__title{font-weight:700;font-size:16px;color:#303133;margin:0}.el-notification__content{font-size:14px;line-height:21px;margin:6px 0 0;color:#606266;text-align:justify}.el-notification__content p{margin:0}.el-notification__icon{height:24px;width:24px;font-size:24px}.el-notification__closeBtn{position:absolute;top:18px;right:15px;cursor:pointer;color:#909399;font-size:16px}.el-notification__closeBtn:hover{color:#606266}.el-notification .el-icon-success{color:#67c23a}.el-notification .el-icon-error{color:#f56c6c}.el-notification .el-icon-info{color:#909399}.el-notification .el-icon-warning{color:#e6a23c}.el-notification-fade-enter.right{right:0;transform:translate(100%)}.el-notification-fade-enter.left{left:0;transform:translate(-100%)}.el-notification-fade-leave-active{opacity:0}.el-dropdown-menu{-webkit-user-select:none;-moz-user-select:none;user-select:none}.el-dropdown-menu__item{min-width:100px}.el-dropdown-menu__item .item.red{color:red!important}.el-dropdown-menu__item .item.red>i{color:red!important}.el-dropdown-menu__item--divided:before{height:5px}.el-tooltip__popper.is-light{border-width:0;box-shadow:0 1px 6px #0003}.el-tooltip__popper.is-light[x-placement^=top] .popper__arrow{border-top-color:#d9d9d980}.el-tooltip__popper.is-light[x-placement^=bottom] .popper__arrow{border-bottom-color:#d9d9d980}.el-tooltip__popper.is-light[x-placement^=left] .popper__arrow{border-left-color:#d9d9d980}.el-tooltip__popper.is-light[x-placement^=right] .popper__arrow{border-right-color:#d9d9d980}.el-popover{border-width:0;box-shadow:0 1px 6px #0003}@font-face{font-family:zenicon;src:url(/js/build/zenicon.4baf444f.woff2) format("woff2")}.ft.icon{font-family:zenicon,serif;line-height:1;letter-spacing:normal;text-transform:none;white-space:nowrap;word-wrap:normal;text-rendering:auto;transform:scale(1.2);transform-origin:50% 0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;speak:none;direction:ltr;-webkit-font-feature-settings:"liga";padding-left:1px}.ft+.el-el-button,.ft+.ft,.ft+.z-confirm,.ft+.z-execute,.ft+.z-link,.ft+a{margin-left:.6rem}.ft.l12{margin-left:12px}.ft.r12{margin-right:12px}.ft.hover{cursor:pointer}.ft.hover:hover{color:#0285d7}.ft.dark{color:#0d0d0d}.ft.gray{color:#666}.ft.yellow{color:#f90}.ft.red{color:#ed3f14}.ft.green{color:#19be6b}.ft.blue{color:#2d8cf0}.ft.center{text-align:center}.ft.right{text-align:right}.ft.bold{font-weight:700}.ft.underline{text-decoration:underline}.ft.through{text-decoration:line-through}.ft.italic{font-style:italic}.ft.cursor{cursor:pointer}.ft.h1{font-size:1.3rem}.ft.h2{font-size:1.2rem}.ft.h3{font-size:1.1rem}.ft.h4{font-size:.9rem}.ft.h5{font-size:.8rem}@font-face{font-family:taskfont;src:url(/js/build/iconfont.e2406b80.woff2) format("woff2"),url(/js/build/iconfont.21585d94.woff) format("woff"),url(/js/build/iconfont.ede1d5b8.ttf) format("truetype")}.taskfont{font-family:taskfont,"serif"!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.scrollbar-overlay{overflow-y:auto;overflow-y:overlay;-webkit-overflow-scrolling:touch}.scrollbar-overlay::-webkit-scrollbar{width:0;height:0}.scrollbar-overlay::-webkit-scrollbar-thumb{border:3px solid transparent;background-color:#0003;background-clip:content-box;border-radius:12px}.scrollbar-overlay::-webkit-scrollbar-thumb:hover{border:2px solid transparent;background-color:#0003}.scrollbar-overlay::-webkit-scrollbar-thumb:active{border:2px solid transparent;background-color:#0006}.scrollbar-overlay::-webkit-scrollbar-track{border-radius:12px;background:rgba(0,0,0,0)}.scrollbar-overlay:hover::-webkit-scrollbar{width:12px;height:12px}.scrollbar-hidden::-webkit-scrollbar{display:none}.common-auto-tip{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.common-circle{border-radius:50%}.common-circle .common-circle-path{fill:transparent}.common-circle .common-circle-g-path-ring{stroke:#84c56a}.common-circle .common-circle-g-path-core{fill:#84c56a;transform:scale(.56);transform-origin:50%}.common-drawer-overlay .ivu-modal{margin:0;padding:0}.common-drawer-overlay .ivu-modal .ivu-modal-content{background:transparent}.common-drawer-overlay .ivu-modal .ivu-modal-content .ivu-modal-close{display:none}.common-drawer-overlay .ivu-modal .ivu-modal-content .ivu-modal-body{padding:0;display:flex;flex-direction:column;justify-content:flex-end;align-content:flex-end}.common-drawer-overlay .overlay-body{display:flex;flex-direction:column;width:100%;height:100%;max-width:100%;max-height:100%;z-index:2}.common-drawer-overlay .overlay-body .overlay-close{flex-shrink:0;display:flex;align-items:flex-end;justify-content:flex-end}.common-drawer-overlay .overlay-body .overlay-close>a{display:flex;align-items:center;justify-content:center;width:40px;height:40px;color:#fff}.common-drawer-overlay .overlay-body .overlay-close>a .icon{width:24px;height:24px}.common-drawer-overlay .overlay-body .overlay-close>a>svg{transition:all .3s}.common-drawer-overlay .overlay-body .overlay-close>a:hover{color:#fff}.common-drawer-overlay .overlay-body .overlay-close>a:hover>svg{transform:rotate(-90deg)}.common-drawer-overlay .overlay-body .overlay-resize{width:100%;height:5px;margin-bottom:-5px;z-index:1}.common-drawer-overlay .overlay-body .overlay-content{flex:1;position:relative;background:#fff;border-radius:18px 18px 0 0;transform:translate(0) scale(1);cursor:default}.common-drawer-overlay.right .ivu-modal .ivu-modal-content .ivu-modal-body,.common-drawer-overlay.right .overlay-body{flex-direction:row}.common-drawer-overlay.right .overlay-body .overlay-close{align-items:flex-start}.common-drawer-overlay.right .overlay-body .overlay-resize{width:5px;height:100%;margin-right:-5px;z-index:1}.common-drawer-overlay.right .overlay-body .overlay-content{border-radius:18px 0 0 18px}.drawer-slide-bottom-enter-active,.drawer-slide-bottom-leave-active{transition:all .2s ease}.drawer-slide-bottom-enter,.drawer-slide-bottom-leave-to{transform:translateY(15%) scale(.98);opacity:0}.drawer-slide-right-enter-active,.drawer-slide-right-leave-active{transition:all .2s ease}.drawer-slide-right-enter,.drawer-slide-right-leave-to{transform:translate(15%) scale(.98);opacity:0}.common-float-spinner{position:fixed;z-index:9999;top:0;left:0;bottom:0;right:0;display:flex;align-items:center;justify-content:center;background-color:#fff9}.common-float-spinner .common-float-circular{width:30px;height:30px}.common-gantt{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;flex-direction:row;align-items:self-start;color:#747a81}.common-gantt *{box-sizing:border-box}.common-gantt .gantt-left{flex-grow:0;flex-shrink:0;height:100%;background-color:#fff;position:relative;display:flex;flex-direction:column}.common-gantt .gantt-left:after{content:"";position:absolute;top:0;right:0;bottom:0;width:1px;background-color:#edf1f2bf}.common-gantt .gantt-left .gantt-title{height:76px;flex-grow:0;flex-shrink:0;background-color:#f9fafb;padding-left:12px;overflow:hidden}.common-gantt .gantt-left .gantt-title .gantt-title-text{line-height:100px;max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}.common-gantt .gantt-left .gantt-item{transform:translateZ(0);max-height:100%;overflow:auto}.common-gantt .gantt-left .gantt-item::-webkit-scrollbar{display:none}.common-gantt .gantt-left .gantt-item>li{height:40px;border-bottom:1px solid rgba(237,241,242,.75);position:relative;display:flex;align-items:center;padding-left:12px}.common-gantt .gantt-left .gantt-item>li:hover .item-icon{display:flex}.common-gantt .gantt-left .gantt-item>li .item-overdue{flex-grow:0;flex-shrink:0;color:#fff;margin-right:4px;background-color:red;padding:1px 3px;border-radius:3px;font-size:12px;line-height:18px}.common-gantt .gantt-left .gantt-item>li .item-title{flex:1;padding-right:12px;cursor:default;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.common-gantt .gantt-left .gantt-item>li .item-title.complete{text-decoration:line-through}.common-gantt .gantt-left .gantt-item>li .item-title.overdue{font-weight:600}.common-gantt .gantt-left .gantt-item>li .item-icon{display:none;align-items:center;justify-content:center;width:32px;margin-right:2px;font-size:16px;color:#888}.common-gantt .gantt-right{flex:1;height:100%;background-color:#fff;position:relative;overflow:hidden}.common-gantt .gantt-right .gantt-chart{position:absolute;top:0;left:0;right:0;bottom:0;transform:translateZ(0)}.common-gantt .gantt-right .gantt-chart .gantt-month{display:flex;align-items:center;position:absolute;top:0;left:0;right:0;z-index:1;height:26px;line-height:20px;font-size:14px;background-color:#f9fafb}.common-gantt .gantt-right .gantt-chart .gantt-month>li{flex-grow:0;flex-shrink:0;height:100%;position:relative;overflow:hidden}.common-gantt .gantt-right .gantt-chart .gantt-month>li:after{content:"";position:absolute;top:0;right:0;width:1px;height:100%;background-color:#edf1f2bf}.common-gantt .gantt-right .gantt-chart .gantt-month>li .month-format{overflow:hidden;white-space:nowrap;padding:6px 6px 0}.common-gantt .gantt-right .gantt-chart .gantt-date{display:flex;align-items:center;position:absolute;top:26px;left:0;right:0;bottom:0;z-index:2;cursor:move}.common-gantt .gantt-right .gantt-chart .gantt-date:before{content:"";position:absolute;top:0;left:0;right:0;height:50px;background-color:#f9fafb}.common-gantt .gantt-right .gantt-chart .gantt-date>li{flex-grow:0;flex-shrink:0;height:100%;position:relative;overflow:hidden}.common-gantt .gantt-right .gantt-chart .gantt-date>li:after{content:"";position:absolute;top:0;right:0;width:1px;height:100%;background-color:#edf1f2bf}.common-gantt .gantt-right .gantt-chart .gantt-date>li .date-format{overflow:hidden;white-space:nowrap;display:flex;flex-direction:column;align-items:center;justify-content:center;height:44px}.common-gantt .gantt-right .gantt-chart .gantt-date>li .date-format .format-day{line-height:28px;font-size:18px}.common-gantt .gantt-right .gantt-chart .gantt-date>li .date-format .format-week{line-height:16px;font-weight:300;font-size:13px}.common-gantt .gantt-right .gantt-chart .gantt-timeline{position:absolute;top:76px;left:0;right:0;bottom:0;z-index:3;overflow-x:hidden;overflow-y:auto}.common-gantt .gantt-right .gantt-chart .gantt-timeline>li{cursor:default;height:40px;border-bottom:1px solid rgba(237,241,242,.75);position:relative}.common-gantt .gantt-right .gantt-chart .gantt-timeline>li .timeline-item{position:absolute;top:0;touch-action:none;pointer-events:auto;padding:4px;margin-top:4px;background:#e74c3c;border-radius:18px;color:#fff;display:flex;align-items:center;will-change:contents;height:32px}.common-gantt .gantt-right .gantt-chart .gantt-timeline>li .timeline-item .timeline-title{touch-action:none;flex-grow:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-left:4px;margin-right:10px}.common-gantt .gantt-right .gantt-chart .gantt-timeline>li .timeline-item .timeline-resizer{height:22px;touch-action:none;width:8px;background:rgba(255,255,255,.1);cursor:ew-resize;flex-shrink:0;will-change:visibility;position:absolute;top:5px;right:5px}.img-upload-modal .ivu-modal-mask{z-index:1001}.img-upload-modal .ivu-modal-no-mask{background-color:#37373733}.img-upload-modal .ivu-modal-wrap{z-index:1001}.imgcomp-upload-list{display:inline-block;width:60px;height:60px;text-align:center;line-height:60px;border:1px solid transparent;border-radius:4px;overflow:hidden;background:#fff;position:relative;box-shadow:0 1px 1px #0003;margin-right:4px;vertical-align:top}.imgcomp-upload-list .imgcomp-upload-img{position:absolute;top:0;left:0;width:100%;height:100%;background-position:center;background-size:cover}.imgcomp-upload-list .imgcomp-upload-list-cover{display:none;position:absolute;top:0;bottom:0;left:0;right:0;background:rgba(0,0,0,.6)}.imgcomp-upload-list .imgcomp-upload-list-cover i{color:#fff;font-size:24px;cursor:pointer;vertical-align:middle;margin:0;transition:all .2s}.imgcomp-upload-list .imgcomp-upload-list-cover i:hover{font-size:28px}.imgcomp-upload-list .ivu-progress{height:100%}.imgcomp-upload-list .ivu-progress .ivu-progress-outer{background-color:#000000ad;height:100%}.imgcomp-upload-list .ivu-progress .ivu-progress-outer .ivu-progress-inner{width:88%;margin:0 auto}.imgcomp-upload-list:hover .imgcomp-upload-list-cover{display:block}.img-upload-foot{display:flex;align-items:center;justify-content:flex-end}.img-upload-foot .img-upload-foot-input{flex:1;text-align:left;display:flex;align-items:center;justify-content:flex-end}.img-upload-foot .img-upload-foot-input .img-upload-foot-httptitle{cursor:pointer;padding-left:3px;margin-right:22px}.add-box{width:60px;height:60px;line-height:60px;display:inline-block;background:#fff;border:1px dashed #dddee1;border-radius:4px;text-align:center;position:relative;overflow:hidden;vertical-align:top}.add-box .add-box-icon i{vertical-align:middle;padding-bottom:2px}.add-box .add-box-upload{display:none;position:absolute;top:0;left:0;height:100%;width:100%;color:#fff;padding-top:9px;background:rgba(0,0,0,.6)}.add-box .add-box-upload .add-box-item{height:22px;line-height:22px;cursor:pointer}.add-box .add-box-upload .add-box-item .ivu-upload-drag,.add-box .add-box-upload .add-box-item .ivu-upload-drag:hover{background:transparent;border:0;border-radius:0}.add-box .add-box-upload .add-box-item span{transition:all .2s;font-size:12px}.add-box .add-box-upload .add-box-item:hover span{font-size:14px}.add-box em{font-style:normal}.add-box:hover{border-color:#0009}.add-box:hover .add-box-upload{display:block}.callback-add-box{display:block;width:auto;height:25px;line-height:25px;border:0;background:transparent}.callback-add-box .add-box-icon{display:none}.callback-add-box .add-box-upload{display:block;width:auto;background:transparent;color:#333;padding:0}.callback-add-box .add-box-upload>div{display:inline-block;padding-right:10px}.browse-load{margin:20px;text-align:center}.browse-list{max-height:540px;overflow:auto}.browse-list .browse-item{margin:10px 15px;display:inline-block;text-align:center;cursor:pointer;position:relative}.browse-list .browse-item .browse-img{width:64px;height:64px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKoAAABxCAAAAABg5GeyAAACW0lEQVR4Ae3XVRLjMBAE0L3/rSwKM3OcSNPyLVYOLvM6UD0Bd03LVe9XH+RlhlRSSSWVVFJJJZVUUkkllVRSSSWVVFJJJZVUUkl9WyqppJJKKqmkkgpURP17xngOAR5NxW5wlJ9MaLQh83F4NHWmd/gZtdVBaOldfDB1bq5UpJFbFOC6LKnYrkRO209PAw+hIuzWB8Ep5es8HvYo4z4tE1X8UeRwlMM2D5Bzkc7kj6Bi3VTKDDwEeUcrMxrUvGDXTnHa6kK69SDN9sgq1clxKSbNHqqnYmdri81Q9QHf1JPt1Frncaib2XbiTKL2GkHaurnY9LOulMV0O7G6Kw+g9sw2ohhm62KezVJaaufjWC1TnOkr1exilJ7Ji0vxCCqO9V4UwV4PYr9+apouhGYLKfnahdpqegjmeoXOpXgANe70pKT6Zhu19qkY2nC0PZS527lQOyInqr8Uvc5jqfUb1X+PGh5IhW90S2quh3FQC2XRcF66TUkTXPcLKm5FtdR9RJq+2hWII7UpFtmsQLEyzsdJtkxxpr6gLotbUSlV9yeT0Trmzk2XPdUThLYarUbWOY9j04xXQ2u+pMZLYSumGmNUH3HbM9qOAwSHodN2Pks25F2j3aI7+IxqNsB+YLWb16ukSjiW4xNB0gMoMfApBS/XZQgi3p9/5RsiKNKZEOwYFVIF5VyTyD19sbyjIJiNJRZxpNbx2S8sGKvGZNHJBniBu9Wy5WxjGuQFqIAcBHiRGyt4ua5gSCWVVFJJJZVUUkkllVRSSSWVVFJJJZVUUkkllVRSSSWVVFI/AgO0SXIVYHeGAAAAAElFTkSuQmCC);background-position:center;background-repeat:no-repeat;background-size:cover}.browse-list .browse-item .browse-title{display:block;width:64px;margin-top:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.browse-list .browse-item .browse-icon{position:absolute;top:0;left:0;width:100%;height:64px;font-size:36px;padding-top:15px;color:#fff;background-color:#00000080}.browse-list-disabled{position:relative}.browse-list-disabled:after{position:absolute;content:"";top:0;left:0;width:100%;height:100%;background-color:#ffffffe6;z-index:1}.common-loading{transform-origin:center center;width:30px;height:30px;max-width:100%;max-height:100%;margin:auto;overflow:hidden;animation:loading-rotate 2s linear infinite}.common-loading .common-path{fill:none;stroke-dasharray:1,200;stroke-dashoffset:0;stroke-linecap:round;animation:path-dash 1.5s ease-in-out infinite,path-color 6s ease-in-out infinite}.common-pureing{width:30px;height:30px;border:3px solid #eeeeee;border-bottom-color:#84c56a;border-radius:50%;display:inline-block;box-sizing:border-box;animation:pureing-rotation .75s linear infinite}@keyframes loading-rotate{to{transform:rotate(1turn)}}@keyframes path-dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35}to{stroke-dasharray:89,200;stroke-dashoffset:-124}}@keyframes path-color{0%,to{stroke:#d62d20}40%{stroke:#0057e7}66%{stroke:#008744}80%,90%{stroke:#ffa700}}@keyframes pureing-rotation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.mobile-tabbar{display:none;flex-direction:column;justify-content:flex-end;position:fixed;left:0;bottom:0;right:0;z-index:99;-webkit-user-select:none;-moz-user-select:none;user-select:none}.mobile-tabbar .common-network-exception{position:fixed;bottom:72px;width:100%}.mobile-tabbar .common-network-exception .ivu-alert{margin:0 12px}.mobile-tabbar .common-network-exception .ivu-alert.ivu-alert-with-icon .ivu-alert-icon{top:50%;transform:translateY(-50%)}.mobile-tabbar .common-network-exception .ivu-alert.ivu-alert-error{background-color:#fff0e7f2}.mobile-tabbar .tabbar-box{position:relative;z-index:3;display:flex;align-items:center;justify-content:center;padding:0;margin:0;height:60px;background-color:#f8f8f8;box-shadow:0 0 1px #1c222b26}.mobile-tabbar .tabbar-box>li{flex:1;width:0;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;list-style:none;padding:0;margin:0;color:#606266;position:relative}.mobile-tabbar .tabbar-box>li .taskfont{font-size:24px;line-height:34px}.mobile-tabbar .tabbar-box>li .tabbar-title{font-size:12px;line-height:18px;max-width:92%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.mobile-tabbar .tabbar-box>li .tabbar-badge{position:absolute;top:0;left:50%;transform:scale(.8)}.mobile-tabbar .tabbar-box>li .tabbar-badge .ivu-badge-count{font-size:14px}.mobile-tabbar .tabbar-box>li.active{color:#84c56a}.mobile-tabbar .more-mask{position:fixed;top:0;left:0;right:0;bottom:0;z-index:1;background-color:#00000026}.mobile-tabbar .more-box{position:relative;z-index:2;display:block;margin-bottom:-2px;border-radius:16px 16px 0 0;padding-bottom:16px;background-color:#fff;border-top:1px solid #f1f1f1}.mobile-tabbar .more-box .tabbar-more-title{font-size:18px;font-weight:500;padding:16px 16px 36px}.mobile-tabbar .more-box>ul{padding:0 12px}.mobile-tabbar .more-box>ul>li{list-style:none;display:inline-block;width:25%;margin-bottom:28px}.mobile-tabbar .more-box>ul>li .more-item{display:flex;flex-direction:column;align-items:center;justify-content:center}.mobile-tabbar .more-box>ul>li .more-item .taskfont{display:flex;align-items:center;justify-content:center;width:56px;height:56px;font-size:25px;color:#84c56a;background-color:#84c56a14;border-radius:12px}.mobile-tabbar .more-box>ul>li .more-item .tabbar-title{padding-top:6px;font-size:13px;max-width:92%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mobile-back{display:none}.mobile-back .back-bar{position:fixed;top:0;left:0;bottom:0;width:20px;z-index:9998}.mobile-back .back-semicircle{position:fixed;top:200px;left:-50px;width:500px;height:500px;background-color:#0000001a;z-index:9999;border-radius:50%;transform:translate(-460px,-50%);transition:left .2s}.mobile-back .back-semicircle.show-back{left:0}.mobile-notification{position:fixed;left:50%;top:20px;z-index:9998;padding:12px;border-radius:8px;border:1px solid #ebeef5;background-color:#fff;box-shadow:0 2px 12px #0000001a;width:90%;max-width:320px;transform:translate(-50%)}.mobile-notification .common-avatar.avatar-wrapper{align-items:flex-start}.mobile-notification .common-avatar.avatar-wrapper .avatar-name{flex:1;width:0;margin-left:12px}.mobile-notification .common-avatar.avatar-wrapper .avatar-name>span{font-weight:700}.mobile-notification .notification-desc{float:left;margin-top:-18px;margin-left:52px;font-size:13px;line-height:18px;word-break:break-all;text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.mobile-scan-login-box{margin:2px 0 12px}.mobile-scan-login-box .mobile-scan-login-title{font-size:20px}.mobile-scan-login-box .mobile-scan-login-subtitle{padding-top:8px}.mobile-fade-enter-active,.mobile-fade-leave-active{transition:all .2s ease}.mobile-fade-enter,.mobile-fade-leave-to{opacity:0}.mobile-slide-enter-active,.mobile-slide-leave-active{transition:all .2s ease}.mobile-slide-enter,.mobile-slide-leave-to{transform:translateY(15%);opacity:0}.mobile-notify-enter-active,.mobile-notify-leave-active{transition:all .3s ease}.mobile-notify-enter,.mobile-notify-leave-to{transform:translate(-50%,-100%);opacity:0}.mobile-dialog-enter-active,.mobile-dialog-leave-active{transition:all .3s ease}.mobile-dialog-enter,.mobile-dialog-leave-to{transform:translate(100%);opacity:0}.mobile-send-enter-active,.mobile-send-leave-active{transition:all .3s ease}.mobile-send-enter,.mobile-send-leave-to{transform:translate(-50%,-50%) scale(0)!important;opacity:0}body.eeui-app .mobile-back{display:block}@media (max-width: 768px){.mobile-tabbar{display:flex}.mobile-back{display:block}.mobile-notification{top:12px;width:94%;max-width:none}}.app-scroller-y{position:absolute;top:0;left:0;right:0;bottom:0;overflow-x:hidden;overflow-y:auto;overflow-y:overlay}.app-scroller-y .app-scroller-bottom{height:0;margin:0;padding:0}.app-scroller-y.static{position:static;flex:1}.teditor-box .tox.tox-silver-sink,.teditor-transfer .tox.tox-silver-sink{z-index:13000}.teditor-box{position:relative;min-height:22px}.teditor-box .icon-inline{color:#bbb;position:absolute;left:0;top:0}.teditor-box textarea{opacity:0}.teditor-box .tox-tinymce{box-shadow:none;box-sizing:border-box;border-color:#dddee1;border-radius:4px;overflow:hidden}.teditor-box .tox-tinymce .tox-statusbar span.tox-statusbar__branding a{display:none}.teditor-box .tox-tinymce .tox-tbtn--bespoke .tox-tbtn__select-label{width:auto}.teditor-transfer{background-color:#fff}.teditor-transfer .tox-toolbar>div:last-child>button:last-child{margin-right:64px}.teditor-transfer .ivu-modal-header{display:none}.teditor-transfer .ivu-modal-close{top:7px;z-index:2}.teditor-transfer .teditor-transfer-body{position:absolute;top:0;left:0;width:100%;height:100%;padding:0;margin:0}.teditor-transfer .teditor-transfer-body textarea{opacity:0}.teditor-transfer .teditor-transfer-body .tox-tinymce{border:0}.teditor-transfer .teditor-transfer-body .tox-tinymce .tox-statusbar span.tox-statusbar__branding a{display:none}.teditor-loadstyle{width:100%;height:180px;overflow:hidden;position:relative}.teditor-loadedstyle{width:100%;max-height:inherit;overflow:inherit;position:relative}.upload-control{display:none;width:0;height:0;overflow:hidden}.tox-tinymce-inline{z-index:100000}.quick-edit{display:flex;align-items:center;max-width:100%}.quick-edit .quick-input{flex:1;max-width:100%;position:relative}.quick-edit .quick-input .quick-loading{position:absolute;top:0;right:8px;bottom:0;display:flex;align-items:center}.quick-edit .quick-input .quick-loading .common-loading{margin:0;width:14px;height:14px}.quick-edit .quick-text{overflow:hidden;text-overflow:ellipsis;align-items:center;white-space:nowrap;height:20px;line-height:20px;margin-right:6px}.quick-edit .quick-icon{display:none;font-size:16px;cursor:pointer}.quick-edit.quick-always .quick-icon{display:inline-block;opacity:.3;transition:opacity .2s}.quick-edit:hover .quick-icon,.ivu-table-row-hover .quick-edit .quick-icon{display:inline-block;opacity:1}.common-tag-input{display:inline-block;width:100%;min-height:32px;padding:2px 7px;border:1px solid #dddee1;border-radius:4px;color:#495060;background:#fff;position:relative;cursor:text;vertical-align:middle;line-height:normal;transition:all .2s}.common-tag-input:hover{border-color:#a2d98d}.common-tag-input.focus{border-color:#a2d98d;box-shadow:0 0 0 2px #8bcf7033}.common-tag-input .tags-item,.common-tag-input .tags-input{position:relative;float:left;color:#495060;background-color:#f1f8ff;border-radius:3px;line-height:22px;margin:2px 6px 2px 0;padding:0 20px 0 6px}.common-tag-input .tags-item .tags-content,.common-tag-input .tags-input .tags-content{line-height:22px}.common-tag-input .tags-item .tags-del,.common-tag-input .tags-input .tags-del{width:20px;height:22px;text-align:center;cursor:pointer;position:absolute;top:-1px;right:0}.common-tag-input .tags-input{max-width:80%;padding:0;background-color:inherit;border:none;color:inherit;height:22px;line-height:22px;-webkit-appearance:none;outline:none;resize:none;overflow:hidden}.common-tag-input .tags-input::-moz-placeholder{color:#bbb}.common-tag-input .tags-input::placeholder{color:#bbb}.common-tag-input .tags-placeholder{position:absolute;left:0;top:0;z-index:-1;color:#fff0}.common-tag-input:after{content:"";display:block;height:0;clear:both}.ivu-form-item-error .common-tag-input,.ivu-form-item-error .common-tag-input:hover{border-color:#ed4014}.ivu-form-item-error .common-tag-input.focus{border-color:#ed4014;box-shadow:0 0 0 2px #ed401433}.common-avatar{position:relative}.common-avatar.avatar-wrapper{display:flex;align-items:center}.common-avatar.avatar-wrapper .avatar-box{position:relative;border-radius:50%;display:flex;align-items:center}.common-avatar.avatar-wrapper .avatar-box .avatar-default{background-color:transparent}.common-avatar.avatar-wrapper .avatar-box .avatar-text{background-color:#84c56a}.common-avatar.avatar-wrapper .avatar-box .avatar-char{display:inline-block;font-size:15px;line-height:inherit}.common-avatar.avatar-wrapper .avatar-box .el-avatar>img{margin:0 auto;pointer-events:none;-webkit-touch-callout:none}.common-avatar.avatar-wrapper .avatar-box>em{position:absolute;right:0;bottom:0;width:8px;height:8px;border-radius:50%;background-color:#f90;border:1px solid #ffffff;transform-origin:right bottom;z-index:1}.common-avatar.avatar-wrapper .avatar-box.online>em{background-color:#84c56a}.common-avatar.avatar-wrapper .avatar-box.disabled:after,.common-avatar.avatar-wrapper .avatar-box.deleted:after{content:"";position:absolute;top:0;left:0;right:0;bottom:0;background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGNsYXNzPSJpb25pY29uIiB2aWV3Qm94PSIwIDAgNTEyIDUxMiI+PHRpdGxlPkJhbjwvdGl0bGU+PGNpcmNsZSBmaWxsPSJub25lIiBzdHJva2U9IiNjY2NjY2MiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgc3Ryb2tlLXdpZHRoPSI0OCIgY3g9IjI1NiIgY3k9IjI1NiIgcj0iMjAwIi8+PHBhdGggc3Ryb2tlPSIjY2NjY2NjIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIHN0cm9rZS13aWR0aD0iNDgiIGQ9Ik0xMTQuNTggMTE0LjU4bDI4Mi44NCAyODIuODQiLz48L3N2Zz4=);background-color:#ffffff80;opacity:.8;border-radius:50%}.common-avatar.avatar-wrapper .avatar-box.disabled>em,.common-avatar.avatar-wrapper .avatar-box.deleted>em{background-color:#ccc}.common-avatar.avatar-wrapper .avatar-box.deleted:after{transform:rotate(-45deg)}.common-avatar.avatar-wrapper .avatar-bot{margin-right:-4px;padding-left:6px;font-size:16px;color:#84c56a}.common-avatar.avatar-wrapper .avatar-name{display:flex;align-items:center;margin-left:6px}.common-avatar.avatar-wrapper .avatar-name .bot{flex-shrink:0;margin-right:3px;font-size:16px;color:#84c56a}.common-avatar.avatar-wrapper .avatar-name>span{flex:1;font-style:normal;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.common-avatar.avatar-pointer{cursor:pointer}.common-avatar-transfer{padding:4px 2px;line-height:1.5}.common-avatar-transfer>p{padding:1px 2px}.common-avatar-transfer>p.department-name{max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.common-avatar-transfer>p>em{font-style:normal}.common-avatar-transfer>p>em.disabled,.common-avatar-transfer>p>em.deleted{display:inline-block;margin-left:2px;white-space:nowrap;font-size:12px;height:20px;line-height:20px;padding:0 6px;border-radius:3px;transform:scale(.9);transform-origin:right center;color:#fff;background-color:#ed4014}.common-avatar-transfer .avatar-icons{margin-top:12px;border-top:1px solid rgba(244,244,245,.5);padding:8px 0 0;display:flex;align-items:center}.common-avatar-transfer .avatar-icons>i{cursor:pointer;font-size:22px;margin-right:12px;color:#f4f4f5}.common-avatar-transfer .avatar-icons>i:last-child{margin-right:0}.common-avatar-transfer .avatar-icons>i:hover{color:#fff}.common-user{position:relative;white-space:normal}.common-user .common-user-loading{position:absolute;top:2px;bottom:0;right:10px;display:flex;align-items:center}.common-user .common-user-loading .common-loading{width:14px;height:14px}.common-user.hidden-input .ivu-select-selection{padding:0 4px}.common-user.hidden-input .ivu-select-selection .ivu-select-input{display:none}.common-user-transfer .user-input-option,.common-user-transfer .user-input-option .user-input-avatar{display:flex;align-items:center}.common-user-transfer .user-input-option .user-input-avatar .avatar{width:26px;height:26px;line-height:26px}.common-user-transfer .user-input-option .user-input-bot{font-size:16px;margin-left:10px;margin-right:-6px;color:#84c56a}.common-user-transfer .user-input-option .user-input-nickname{margin-left:10px;flex:1}.common-user-transfer .user-input-option .user-input-userid{margin-left:10px;font-size:12px;color:#ccc;transition:margin .1s}.common-user-transfer .ivu-select-item.ivu-select-item-selected:after{top:8px}.common-user-transfer .ivu-select-item.ivu-select-item-selected .user-input-option .user-input-userid{margin-right:16px}.common-user-transfer .user-drop-prepend{display:flex;align-items:center;justify-content:center;position:sticky;top:0;left:0;right:0;z-index:1;transform:translateY(-5px);background-color:#fff;padding:5px 15px;border-bottom:1px solid #f1f1f1}.common-user-transfer .user-drop-prepend .user-drop-text{flex:1;color:#c5c8ce;line-height:20px;font-size:12px;display:flex;align-items:center}.common-user-transfer .user-drop-prepend .user-drop-text>em{font-style:normal;padding:0 4px;white-space:nowrap}.common-user-transfer .user-drop-prepend .user-drop-check{margin-right:0;transform:scale(.9);transform-origin:right center}.report{height:100%;padding:20px}.report .report-list-wrap{position:absolute;top:0;width:100%;height:100%;padding-top:53px;display:flex;flex-direction:column}.report .report-list-wrap .table-page-box{flex:1;height:0}.report .manage-box-report{margin-left:4px;transform:scale(.8);vertical-align:top}.report .ivu-tabs{height:100%;position:relative}.report .ivu-tabs .ivu-tabs-bar{position:relative;z-index:2;background:#fff}.report .ivu-tabs .ivu-tabs-content{height:100%;width:100%;margin-top:-53px;padding-top:53px}.report-table-avatar{display:flex;align-items:center;justify-content:center}.report-table-avatar .common-avatar{margin:0 1px}.report-table-avatar .more-avatar{padding-left:3px;font-size:12px}.report-detail{display:flex;flex-direction:column;height:100%}.report-detail .report-title{flex-shrink:0;font-size:16px;font-weight:700;margin-bottom:12px;padding:20px 24px;border-bottom:1px solid #eeeeee}.report-detail .report-detail-context{flex:1;height:0;padding:12px 0 12px 24px;display:flex;flex-direction:column;overflow:auto}.report-detail .report-form{display:flex;margin-bottom:12px}.report-detail .report-form .ivu-form-item{flex:1;flex-shrink:0}.report-detail .report-form .ivu-form-item .ivu-form-item-label{padding-top:8px;opacity:.8}.report-detail .report-form .ivu-form-item .ivu-form-item-content{line-height:30px;display:flex;align-items:center}.report-detail .report-form .ivu-form-item .ivu-form-item-content .common-avatar{margin-right:6px}.report-detail .report-content{width:100%}.report-detail .report-content h2{margin-bottom:10px}.report-detail .report-content ol{margin-bottom:20px;padding-left:18px}.report-detail .report-content ol li{font-size:14px;line-height:24px}.report-detail .report-content img{max-width:100%}.report-edit{display:flex;flex-direction:column;height:100%;padding:24px}.report-edit .ivu-input[disabled]{color:#606266}.report-edit .report-content{flex:1 1 auto;overflow-y:auto}.report-edit .report-content .report-content-editor{height:100%}.report-edit .report-content .report-content-editor .ivu-form-item-content{height:100%;display:flex}.report-edit .report-content .report-content-editor .ivu-form-item-content .teditor-wrapper{flex:1;display:flex}.report-edit .report-users{display:flex;align-items:center}.report-edit .report-users .common-user{flex:1;margin-right:12px}.report-edit .report-users .report-user-link{flex-shrink:0;display:flex;align-items:center}.report-edit .report-users .report-user-link>i{font-size:16px;margin-right:2px;transform:rotate(-90deg)}.report-edit .report-radiogroup{background:#F4F5F7!important;padding:2px!important;border-radius:4px!important}.report-edit .report-radiogroup .ivu-radio-wrapper{padding:0 30px!important;background:#F4F5F7!important;color:#515a6e!important;box-shadow:none!important;border:none!important}.report-edit .report-radiogroup .ivu-radio-wrapper.ivu-radio-wrapper-disabled{color:#c6c6c6!important}.report-edit .report-radiogroup .ivu-radio-wrapper:before{width:0!important}.report-edit .report-radiogroup .ivu-radio-wrapper:after{width:0!important}.report-edit .report-radiogroup .ivu-radio-focus{box-shadow:none!important;border:none!important}.report-edit .report-radiogroup .ivu-radio-focus:after{background:none!important}.report-edit .report-radiogroup .ivu-radio-wrapper-checked:not(.ivu-radio-wrapper-disabled){background:#fff!important;color:#84c56a!important;box-shadow:none!important;border:none!important;border-radius:4px!important}.report-edit .report-buttongroup{margin-left:20px;background:#F4F5F7!important;border-radius:4px}.report-edit .report-buttongroup .report-buttongroup-vertical{position:absolute;left:50%;width:1px;height:15px;background-color:#e9e9e9;top:50%;transform:translate(-50%,-50%);z-index:9}.report-edit .report-buttongroup .ivu-btn-primary{background:#F4F5F7!important;box-shadow:none!important;border:none!important;color:#84c56a!important;height:36px;line-height:34px}.report-edit .report-buttongroup .ivu-btn-primary[disabled]{color:#c6c6c6!important}.report-edit .report-content-editor{flex:1}.report-edit .report-content-editor .ivu-form-item-content{display:flex;height:100%}.report-edit .report-content-editor .ivu-form-item-content .teditor-wrapper{display:flex;flex:1}.report-edit .report-foot{margin-bottom:0}.report-edit .report-foot .report-bottom{height:38px;line-height:36px;min-width:120px}.common-right-bottom{position:absolute;bottom:22px;right:26px;z-index:1;display:flex;flex-direction:column;align-items:flex-end;transition:bottom .3s}.common-right-bottom .common-right-bottom-link{display:inline-block;cursor:pointer;line-height:32px;height:32px;padding:0 15px;margin:4px 0;font-size:14px;border-radius:4px;color:#fff;background-color:#84c56a;border-color:#84c56a}.common-right-bottom .common-right-bottom-link:hover{color:#fff;opacity:.9}.common-right-bottom-notification .ivu-modal-header{padding-bottom:8px!important}.common-right-bottom-notification .notification-head{display:flex;align-items:center}.common-right-bottom-notification .notification-head .notification-title{display:inline-block;vertical-align:middle;font-size:18px;color:#303133;font-weight:500;margin-right:6px}.common-right-bottom-notification .notification-body{max-height:210px;overflow-x:hidden;margin-bottom:16px}.common-right-bottom-notification .notification-body .markdown-preview{margin:-20px -12px}.common-right-bottom-notification .notification-body .markdown-preview h1{font-size:24px;margin-bottom:12px}.common-right-bottom-notification .notification-body .markdown-preview h1:first-child{padding-top:0}.common-right-bottom-notification .notification-body .markdown-preview h2{font-size:18px!important;padding-top:2px!important}.common-right-bottom-notification .notification-body .markdown-preview ul li{padding:2px 0 2px 2px!important}.common-right-bottom-notification .notification-body .markdown-preview ul li:after{top:10px!important;width:6px!important;height:6px!important}.common-right-bottom-notification .notification-tip{display:inline-block;color:#909399;line-height:22px;padding-top:4px;font-size:12px}.common-right-bottom-notification .notification-link{margin-top:20px;text-align:right}.common-right-bottom-notification .notification-link>button+button{margin-left:6px}@media (max-width: 768px){.common-right-bottom{bottom:20px;right:auto;left:50%;transform:translate(-50%);align-items:center}.common-right-bottom .common-right-bottom-link{color:#606266!important;background-color:transparent;border-color:transparent}}@media (max-height: 640px){.common-right-bottom{display:none}}body{overflow:hidden}body.touch-back .dialog-wrapper .vue-recycle-scroller.direction-vertical:not(.page-mode),body.touch-back .common-gantt .gantt-left .gantt-item,body.touch-back .project-panel .project-column,body.touch-back .project-panel .project-table,body.touch-back .scrollbar-overlay,body.touch-back .ivu-modal-wrap{overflow:hidden}body .form-tip{color:#909399;line-height:22px;padding:5px 0}body .form-tip.red{color:#ed4014}body .form-list ol li,body .form-list ul li{list-style-type:none}body .form-list ol li:before,body .form-list ul li:before{display:inline-block;white-space:nowrap;width:1.2em;text-align:left;margin-right:.2em}body .form-list ul li:before{content:"\2022";font-weight:900}body .form-list ol li{counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;counter-increment:list-0}body .form-list ol li:before{width:auto;min-width:1.2em;content:counter(list-0,decimal) ". "}body .ivu-badge-count{font-family:Source Sans Pro,Helvetica Neue,Arial,sans-serif}body .input-number-box{display:flex;align-items:center;border:1px solid #dcdee2;border-radius:4px}body .input-number-box .ivu-input-number{width:72px;margin:0;border:0}body .input-number-box>label{color:#515a6e;text-align:center;background-color:#f8f8f9;padding:0 7px;font-weight:400;white-space:nowrap}body .input-number-box>label:first-child{border-left:1px solid transparent;border-right:1px solid #dcdee2;border-radius:4px 0 0 4px}body .input-number-box>label:last-child{border-left:1px solid #dcdee2;border-right:1px solid transparent;border-radius:0 4px 4px 0}body .ivu-input,body .ivu-select-selection{border-color:#e8e8e8}body .ivu-select-dropdown{-webkit-user-select:none;-moz-user-select:none;user-select:none;max-height:360px}body .ivu-select-dropdown.select-node .ivu-select-item{display:flex;align-items:center;justify-content:space-between}body .ivu-select-dropdown.select-node .ivu-select-item .option-title{flex:1}body .ivu-select-dropdown.select-node .ivu-select-item .ivu-tag{flex-shrink:0;margin-left:18px;margin-right:0;transform:scale(.9);transform-origin:right center}body .ivu-tooltip-popper .ivu-tooltip-inner{white-space:normal}body .ivu-table table{width:100%!important}body .ivu-table table .ivu-table-cell{padding-left:12px;padding-right:12px}body .ivu-table table thead .ivu-table-cell{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}body .ivu-table table tbody .tree-icon-loading .ivu-table-cell{display:flex;align-items:center}body .ivu-table table tbody .tree-icon-loading .ivu-table-cell .ivu-table-cell-tree{margin-right:6px}body .ivu-table .td-ellipsis{display:flex;align-items:center;max-width:100%}body .ivu-table .td-ellipsis .remark-text{overflow:hidden;text-overflow:ellipsis;align-items:center;white-space:nowrap;height:20px;line-height:20px;margin-right:6px}body .ivu-table .td-ellipsis .remark-icon{display:none;font-size:16px;cursor:pointer}body .ivu-table .td-ellipsis .remark-tag{display:inline-block;height:22px;line-height:22px;margin:2px 4px 2px 0;border:1px solid #e8eaec;border-radius:3px;background:#f7f7f7;font-size:12px;vertical-align:middle;opacity:1;color:#606266;padding:0 4px;white-space:nowrap;overflow:visible}body .ivu-table .td-ellipsis .remark-tag.pointer-tag{cursor:pointer;color:#1890ff;background:#e6f7ff;border-color:#91d5ff}body .ivu-table .td-ellipsis .icon-tooltip .ivu-tooltip-rel{display:flex;align-items:center}body .ivu-table .td-action{max-width:100%;display:flex;align-items:center;justify-content:center}body .ivu-table .td-action .td-action-container{flex-shrink:0}body .ivu-table .td-action .td-action-container a{font-size:12px;padding:0 5px}body .ivu-table .td-action .td-action-container.td-action-menu{display:flex;align-items:center}body .ivu-table .td-action .td-action-container.td-action-menu .menu-dropdown{display:flex}body .ivu-table .td-action .td-action-container.td-action-menu .menu-icon{cursor:pointer;font-size:21px;padding:0 6px}body .ivu-table .td-action .td-action-container.td-action-menu .menu-icon.ivu-icon{font-size:16px}body .ivu-table .ivu-table-row-hover:hover .td-ellipsis .remark-icon{display:inline-block}body .ivu-table:before{background-color:#efefef}body .ivu-modal-wrap{overflow:overlay}body .ivu-modal-wrap .ivu-modal{top:100px;padding-bottom:100px}@media (max-height: 900px){body .ivu-modal-wrap .ivu-modal{top:35px;padding-bottom:35px}}body .ivu-modal-wrap .ivu-modal.ivu-modal-fullscreen{top:0}body .ivu-modal-wrap .ivu-modal.ivu-modal-fullscreen .ivu-modal-content{border-radius:0}body .ivu-modal-wrap .ivu-modal .ivu-modal-header,body .ivu-modal-wrap .ivu-modal .ivu-modal-footer{border-color:transparent}body .ivu-modal-wrap .ivu-modal .ivu-modal-header{padding:22px 24px 20px}body .ivu-modal-wrap .ivu-modal .ivu-modal-header .ivu-modal-header-inner{font-size:18px}body .ivu-modal-wrap .ivu-modal .ivu-modal-body{padding:16px 32px 2px}body .ivu-modal-wrap .ivu-modal .ivu-modal-body .ivu-table-body,body .ivu-modal-wrap .ivu-modal .ivu-modal-body .project-log{overscroll-behavior:none}body .ivu-modal-wrap .ivu-modal .ivu-modal-footer{padding:20px 30px 22px}body .ivu-modal-wrap .ivu-modal .ivu-modal-footer .ivu-btn{height:34px;line-height:32px;min-width:94px}@media (max-width: 576px){body .ivu-modal-wrap .ivu-modal .ivu-modal-footer .adaption{display:flex;align-items:center;overflow-x:auto}body .ivu-modal-wrap .ivu-modal .ivu-modal-footer .adaption .ivu-btn{height:38px;line-height:36px;min-width:auto}body .ivu-modal-wrap .ivu-modal .ivu-modal-footer .adaption .ivu-btn,body .ivu-modal-wrap .ivu-modal .ivu-modal-footer .adaption .ivu-btn-group,body .ivu-modal-wrap .ivu-modal .ivu-modal-footer .adaption .ivu-poptip{flex:1}body .ivu-modal-wrap .ivu-modal .ivu-modal-footer .adaption .ivu-btn-group,body .ivu-modal-wrap .ivu-modal .ivu-modal-footer .adaption .ivu-poptip{display:flex;align-items:center}body .ivu-modal-wrap .ivu-modal .ivu-modal-footer .adaption .ivu-poptip .ivu-poptip-rel{flex:1;display:flex;align-items:center}}body .ivu-modal-wrap .ivu-modal .ivu-modal-content{border-radius:18px}body .ivu-modal-wrap .ivu-modal .ivu-modal-content .ivu-modal-close .ivu-icon-ios-close{font-size:38px;top:3px;right:2px;transition:all .2s}body .ivu-modal-wrap .ivu-modal .ivu-modal-content .ivu-modal-close:hover .ivu-icon-ios-close{transform:rotate(-90deg)}body .ivu-modal-wrap .ivu-modal-confirm{padding:6px 0 20px}body .ivu-modal-wrap .ivu-modal-confirm .ivu-modal-confirm-body>div{word-break:break-all}body .ivu-modal-wrap .form-network-add-tabs .ivu-tabs-tabpane{padding:10px 6px 0}body .ivu-modal-wrap .form-network-add-in-out{padding:0 6px}body .ivu-modal-wrap .form-network-add-in-out .select-in-type span.ivu-radio{display:none}body .ivu-modal-wrap .form-network-add-in-out .select-in-type .select-in-type-item-checked{color:#84c56a;border:1px solid #84C56A!important}body .ivu-modal-wrap .form-network-add-in-out .select-in-type .select-in-type-item{display:flex;align-items:center;min-width:90px;border:1px solid #E8EBEE;border-radius:4px;padding:0 12px;margin:0 8px 0 0}body .ivu-modal-wrap .form-network-add-in-out .select-in-type .select-in-type-item>span{flex:1}body .ivu-modal-wrap .form-network-add-in-out .select-in-type .select-in-type-item:hover{cursor:pointer}body .ivu-modal-wrap .form-network-add-in-out .select-in-type .select-in-type-item .select-in-type-icon{margin-left:12px}body .ivu-modal-wrap .form-network-add-in-out .select-in-node{margin-top:18px}body .ivu-progress,body .ivu-progress .ivu-progress-outer{display:flex;align-items:center}body .ivu-progress.ivu-progress-show-info .ivu-progress-outer{margin:0;padding:0}body .ivu-progress.ivu-progress-show-info .ivu-progress-text{flex-shrink:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}body .ivu-drawer-right .ivu-drawer-content{border-radius:18px 0 0 18px}body .ivu-drawer-right .ivu-drawer-content .ivu-drawer-header{padding-top:16px;padding-bottom:6px;border-bottom:1px solid transparent}body .ivu-drawer-right .ivu-drawer-content .ivu-drawer-header .ivu-drawer-header-inner{font-size:18px;padding:0 4px;height:32px;line-height:32px}body .ivu-drawer-right .ivu-drawer-content .ivu-drawer-body{padding:10px 20px}body .ivu-drawer-bottom .ivu-drawer-content{border-radius:18px 18px 0 0}body .ivu-drawer-bottom .ivu-drawer-content .ivu-drawer-close{top:-40px}body .ivu-drawer-bottom .ivu-drawer-content .ivu-drawer-close .ivu-icon{font-size:40px;color:#fff}body .ivu-tabs-nav-next,body .ivu-tabs-nav-prev{padding-top:3px}*[hidden=hidden]{display:none!important}.clearfix{zoom:1}.clearfix:after,.clearfix:before{display:table;content:""}.clearfix:after{clear:both}.table-page-box{display:flex;flex-direction:column}.table-page-box .ivu-table-wrapper{flex:1}.table-page-box .ivu-table-wrapper .ivu-table{display:flex;flex-direction:column}.table-page-box .ivu-table-wrapper .ivu-table .ivu-table-header{flex-shrink:0}.table-page-box .ivu-table-wrapper .ivu-table .ivu-table-body{flex:1;overflow:auto;overflow-y:overlay!important}.table-page-box .ivu-table-wrapper .ivu-table .ivu-table-body::-webkit-scrollbar{width:0;height:0}.table-page-box .ivu-table-wrapper .ivu-table .ivu-table-body::-webkit-scrollbar-thumb{border:3px solid transparent;background-color:#0003;background-clip:content-box;border-radius:12px}.table-page-box .ivu-table-wrapper .ivu-table .ivu-table-body::-webkit-scrollbar-thumb:hover{border:2px solid transparent;background-color:#0003}.table-page-box .ivu-table-wrapper .ivu-table .ivu-table-body::-webkit-scrollbar-thumb:active{border:2px solid transparent;background-color:#0006}.table-page-box .ivu-table-wrapper .ivu-table .ivu-table-body::-webkit-scrollbar-track{border-radius:12px;background:rgba(0,0,0,0)}.table-page-box .ivu-table-wrapper .ivu-table .ivu-table-body:hover::-webkit-scrollbar{width:12px;height:12px}.table-page-box .ivu-page{flex-shrink:0;text-align:center;margin-top:20px}.table-page-box .table-attach{display:flex;flex-direction:row;align-items:center;justify-content:space-between;margin-top:20px}.table-page-box .table-attach .select-box{margin-right:12px}.table-page-box .table-attach .select-box .ivu-select{width:auto;max-width:200px;margin-right:3px}.table-page-box .table-attach .ivu-page{padding:0;margin-top:0;margin-left:12px}.page-container{text-align:center;padding:20px 0}.search-container{margin-bottom:12px}.search-container>ul{display:flex;align-items:flex-end;flex-wrap:wrap}.search-container>ul>li{flex:1;flex-shrink:0;margin-right:12px;margin-bottom:12px;list-style:none;display:flex;flex-direction:column}.search-container>ul>li:last-child{margin-right:0}.search-container>ul>li .search-label{font-weight:600}.search-container>ul>li .search-content{margin-top:6px}.search-container>ul>li.search-button{flex:none;display:flex;align-items:center;flex-direction:row}.search-container>ul>li.search-button>button+button{margin-left:8px}.search-container.lr>ul>li:not(.search-button){flex:none;flex-direction:row;align-items:center;margin-right:18px}.search-container.lr>ul>li:not(.search-button) .search-label{flex-shrink:0}.search-container.lr>ul>li:not(.search-button) .search-content{margin-top:0;margin-left:6px}.search-container.lr>ul>li:not(.search-button) .search-content .ivu-input-wrapper,.search-container.lr>ul>li:not(.search-button) .search-content .ivu-select{width:168px;max-width:100%}.search-container.auto>ul>li:not(.search-button){flex:none}.search-container.auto>ul>li:not(.search-button) .search-content{margin-top:0;margin-left:6px}.search-container.auto>ul>li:not(.search-button) .search-content .ivu-input-wrapper,.search-container.auto>ul>li:not(.search-button) .search-content .ivu-select{width:150px;max-width:100%}.search-expand{display:flex;align-items:flex-end}.search-expand .search-container{flex:1}.search-expand .expand-button-group{flex-shrink:0;margin-left:24px;margin-bottom:24px}.search-button-clear .ivu-tooltip-inner{padding:0;display:flex;align-items:center}.search-button-clear .ivu-tooltip-inner .ivu-btn{min-width:80px;font-size:13px}.icon-loading{animation:animation-icon-loading .6s infinite linear}@keyframes animation-icon-loading{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.common-shake{animation:animation-common-shake .6s ease-in-out;animation-delay:.2s}@keyframes animation-common-shake{10%,90%{transform:translate3d(-1px,0,0)}20%,80%{transform:translate3d(2px,0,0)}30%,70%{transform:translate3d(-4px,0,0)}40%,60%{transform:translate3d(4px,0,0)}50%{transform:translate3d(-4px,0,0)}}.login-mode-enter-active{transition:all .3s ease}.login-mode-leave-active{position:absolute;z-index:-1;display:none}.login-mode-enter,.login-mode-leave-to{transform:translate(100%);opacity:0}.page-calendar{display:flex;flex-direction:column}.page-calendar .calendar-head{flex-shrink:0;display:flex;align-items:flex-start;margin:32px 32px 16px;border-bottom:1px solid #F4F4F5}.page-calendar .calendar-head .calendar-titbox{flex:1;display:flex;align-items:center;margin-bottom:16px}.page-calendar .calendar-head .calendar-titbox .calendar-title{display:flex;align-items:center;margin-right:36px}.page-calendar .calendar-head .calendar-titbox .calendar-title>h1{color:#303133;font-size:28px;font-weight:600}.page-calendar .calendar-head .calendar-titbox .calendar-arrow{margin-right:12px}.page-calendar .calendar-head .calendar-titbox .calendar-arrow>button{color:#888;font-size:12px}.page-calendar .calendar-head .calendar-titbox .calendar-arrow>button:focus{box-shadow:none}.page-calendar .calendar-head .calendar-titbox .calendar-view{flex:1;display:flex;justify-content:flex-end}.page-calendar .calendar-head .calendar-titbox .calendar-view>button:focus{box-shadow:none}.page-calendar .calendar-box{flex:1;display:flex;flex-direction:column;padding:0 48px 6px;overflow:hidden}.page-calendar .calendar-box .calendar-wrapper{flex:1;position:relative}.page-calendar .calendar-box .calendar-wrapper:before{content:"";position:absolute;top:0;left:0;right:0;height:2px;background-color:#fff;z-index:1}.page-calendar .calendar-box .calendar-wrapper .tui-full-calendar-popup{box-shadow:none}.page-calendar .calendar-box .calendar-wrapper .tui-full-calendar-popup .tui-full-calendar-section-header .tui-full-calendar-ic-checkbox-checked{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAMAAAD04JH5AAAAhFBMVEUAAACLz3CLz3CLz3CKzm6Gy2+Lz3CLz3CL0HCLz3CLz3CLz3CLz3CMz3GLz3CKz3CLz3CL0HCJ0G+KznCN0HCL0HCLz3CKz3CLz3CLz3CLz3CMz3CLz3CLz3GL0XCL0HCN0XKLz3CLz3CMz3CLz3CM0HCM0G+FzHCLz3CKz3CMz3CLz3Bod5CFAAAAK3RSTlMA18RAOQ3s8+Pc0rmyq3tpiUwTgBnovyDMjmNSRjUvJQX5yKB0WisKppuUFLaY7gAAAotJREFUeNrtm+FymkAUhc8KqIAgSkyUtkmsmqa97/9+HWeSudpCd8qZ7E0m+73A9/1gxmXx4IK0nbipvDFTN2lT9JDVToLh6gx/sHQSFLfEFZUEp8IFczFgrv5CTChe/TsxYvfy/IkZy7M/c2KGywDUYkgNIBdDciARUxI0YkqDiZgygRNTHKZiyhRiTAyIATEgBsSAGBADYsAnCJgdmtIywKUAOrsA94QzJyKA95/pbALcPV7piADGryzDB+Rnv3IkAhi/UhMBjF9pQwbk3/A3JRXA+7GjAng/DqEC5v3+dMYE8P6nQsIEzFOPnw7g/QpC+R8K4QJ4f5iAzaA/TMAm6fdvZQgY+wW2fn9A0a66Bee/2xLH8kp/Rr1MB/3jAxaP0ALCPzagzPBCM9r/XcYH3K4BLfD4vw75xwdMbqB4CmaD/vEB2ztc0RD+MQHFg+c85fffDPv9AbPUd6Lz+ydCBDyjh1//6WcCGngK1L8a8lMBJTwFfj8XIC16+SnX7Af9bIDUngLSrwFEwaD/VogA5YheDj7/Wv1MgL9g/8XjpwNk+c8Cyq8BYwqePX46QOkGCmi/BowrqFi/Bvg4wYv6y7e4Kz4Rfj5AnzY/WSlcwHAB5+cD9ivKzwfIbEX4qQA99RB+NkDfO4b5sRAigHjzpP0C6u6D9wuo2z/eL+DvXx8Zv4C4gVd/qABxCeFnApQT5+cDpOP8fICcLv2VxbfjlQZUNh+vU/XbBIj6jQLm9wDWlZgFyOaYHJ3Ix/gDQwyIATEgBsSAGODBfuBgPvEwH7m0YkqLVExJYfsQuPcwdjOf+5kPHoFKjKio0e3Hn90WUCyGt7v3Nf0GsjqXYOR1hh6SJsz8v0mg/AZRXmaRKXtJBwAAAABJRU5ErkJggg==)}.page-calendar .calendar-box .calendar-wrapper .tui-full-calendar-popup .tui-full-calendar-popup-container{border:0;box-shadow:0 1px 6px #0003;border-radius:6px}.page-calendar .calendar-box .calendar-wrapper .tui-full-calendar-popup .tui-full-calendar-arrow-top .tui-full-calendar-popup-arrow-border{top:-8px;border-bottom-color:#d9d9d980}.page-calendar .calendar-box .calendar-wrapper .tui-full-calendar-dropdown-menu{border-color:#e8e8e8;width:calc(100% - 14px)}.page-calendar .calendar-box .calendar-wrapper .tui-full-calendar-popup-creation .tui-full-calendar-icon.tui-full-calendar-ic-title,.page-calendar .calendar-box .calendar-wrapper .tui-full-calendar-popup-creation .tui-full-calendar-icon.tui-full-calendar-calendar-dot{display:none}.page-calendar .calendar-box .calendar-wrapper .tui-full-calendar-popup-creation .tui-full-calendar-icon.tui-full-calendar-ic-date{background-image:url(data:image/svg+xml;base64,PHN2ZyB0PSIxNjIzODU5NjcwNjA3IiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjE2Mzg4IiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PHBhdGggZD0iTTk2MCAxMjhIODMzYzAtNTMtNDMtOTYtOTYtOTZoLTE2Yy01MyAwLTk2IDQzLTk2IDk2SDQwMGMwLTI2LjUtMTAuNy01MC41LTI4LjEtNjcuOUMzNTQuNSA0Mi43IDMzMC41IDMyIDMwNCAzMmgtMTZjLTUzIDAtOTYgNDMtOTYgOTZINjRjLTM1LjMgMC02NCAyOC42LTY0IDY0djczNmMwIDM1LjMgMjguNyA2NCA2NCA2NGg4OTZjMzUuMyAwIDY0LTI4LjcgNjQtNjRWMTkyYzAtMzUuNC0yOC43LTY0LTY0LTY0eiBtLTI3MSA4YzAtMjIuMSAxNy45LTQwIDQwLTQwczQwIDE3LjkgNDAgNDB2ODBjMCAyMi4xLTE3LjkgNDAtNDAgNDAtMTEgMC0yMS00LjUtMjguMy0xMS43QzY5My41IDIzNyA2ODkgMjI3IDY4OSAyMTZ2LTgweiBtLTQzMyAwYzAtMjIuMSAxNy45LTQwIDQwLTQwczQwIDE3LjkgNDAgNDB2ODBjMCAyMi4xLTE3LjkgNDAtNDAgNDAtMTEgMC0yMS00LjUtMjguMy0xMS43QzI2MC41IDIzNyAyNTYgMjI3IDI1NiAyMTZ2LTgweiBtNzA0IDc2MGMwIDE3LjctMTQuMyAzMi0zMiAzMkg5NmMtMTcuNyAwLTMyLTE0LjMtMzItMzJWNDQ4aDg5NnY0NDh6IiBwLWlkPSIxNjM4OSIgZmlsbD0iIzUxNTE1MSI+PC9wYXRoPjwvc3ZnPg==);background-size:contain}.page-calendar .calendar-box .calendar-wrapper .tui-full-calendar-popup-creation .tui-full-calendar-content{padding-left:0}.page-calendar .calendar-box .calendar-wrapper .tui-full-calendar-popup-creation .tui-full-calendar-popup-section{display:flex;justify-content:space-between;margin-bottom:10px}.page-calendar .calendar-box .calendar-wrapper .tui-full-calendar-popup-creation .tui-full-calendar-popup-section .tui-full-calendar-popup-section-item{height:36px;line-height:34px;border-color:#e8e8e8;border-radius:4px}.page-calendar .calendar-box .calendar-wrapper .tui-full-calendar-popup-creation .tui-full-calendar-popup-section .tui-full-calendar-popup-section-item input{height:34px}.page-calendar .calendar-box .calendar-wrapper .tui-full-calendar-popup-creation .tui-full-calendar-section-title,.page-calendar .calendar-box .calendar-wrapper .tui-full-calendar-popup-creation .tui-full-calendar-section-title input{width:100%}.page-calendar .calendar-box .calendar-wrapper .tui-full-calendar-popup-creation .tui-full-calendar-section-start-date,.page-calendar .calendar-box .calendar-wrapper .tui-full-calendar-popup-creation .tui-full-calendar-section-end-date{width:210px}.page-calendar .calendar-box .calendar-wrapper .tui-full-calendar-popup-creation .tui-full-calendar-section-start-date .tui-full-calendar-content,.page-calendar .calendar-box .calendar-wrapper .tui-full-calendar-popup-creation .tui-full-calendar-section-end-date .tui-full-calendar-content{padding-left:8px}.page-calendar .calendar-box .calendar-wrapper .tui-full-calendar-popup-creation .tui-full-calendar-popup-location,.page-calendar .calendar-box .calendar-wrapper .tui-full-calendar-popup-creation .tui-full-calendar-section-private,.page-calendar .calendar-box .calendar-wrapper .tui-full-calendar-popup-creation .tui-full-calendar-section-allday,.page-calendar .calendar-box .calendar-wrapper .tui-full-calendar-popup-creation .tui-full-calendar-section-state{display:none}.page-calendar .calendar-box .calendar-wrapper .tui-full-calendar-popup-task .priority{color:#fff;padding:2px 4px;border-radius:4px;margin-right:6px}.page-calendar .calendar-box .calendar-wrapper .tui-full-calendar-popup-task .overdue{color:#f5222d;background:#fff1f0;border:1px solid #ffa39e;padding:1px 3px;border-radius:4px;margin-right:6px}.page-calendar .calendar-box .calendar-wrapper .tui-full-calendar-popup-task .tui-full-calendar-calendar-dot,.page-calendar .calendar-box .calendar-wrapper .tui-full-calendar-popup-task .tui-full-calendar-ic-priority{opacity:0}.page-calendar .calendar-box .calendar-wrapper .tui-full-calendar-popup-task .tui-full-calendar-ic-edit{top:-2px;background-image:url(data:image/svg+xml;base64,PHN2ZyB0PSIxNjIzODU5MzY4MTg5IiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjExMTkiIHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIj48cGF0aCBkPSJNODMzLjQyODU3MTY4IDYySDE5MC41NzE0MjgzMmExMjguNTcxNDI4MzIgMTI4LjU3MTQyODMyIDAgMCAwLTEyOC41NzE0MjgzMiAxMjguNTcxNDI4MzJ2NjQyLjg1NzE0MzM2YTEyOC41NzE0MjgzMiAxMjguNTcxNDI4MzIgMCAwIDAgMTI4LjU3MTQyODMyIDEyOC41NzE0MjgzMmg2NDIuODU3MTQzMzZhMTI4LjU3MTQyODMyIDEyOC41NzE0MjgzMiAwIDAgMCAxMjguNTcxNDI4MzItMTI4LjU3MTQyODMyVjE5MC41NzE0MjgzMmExMjguNTcxNDI4MzIgMTI4LjU3MTQyODMyIDAgMCAwLTEyOC41NzE0MjgzMi0xMjguNTcxNDI4MzJ6IG02NC4yODU3MTQxNiA3NzEuNDI4NTcxNjhhNjQuMjg1NzE0MTYgNjQuMjg1NzE0MTYgMCAwIDEtNjQuMjg1NzE0MTcgNjQuMjg1NzE0MTZIMTkwLjU3MTQyODMyYTY0LjI4NTcxNDE2IDY0LjI4NTcxNDE2IDAgMCAxLTY0LjI4NTcxNDE2LTY0LjI4NTcxNDE2VjE5MC41NzE0MjgzMmE2NC4yODU3MTQxNiA2NC4yODU3MTQxNiAwIDAgMSA2NC4yODU3MTQxNy02NC4yODU3MTQxNmg2NDIuODU3MTQzMzVhNjQuMjg1NzE0MTYgNjQuMjg1NzE0MTYgMCAwIDEgNjQuMjg1NzE0MTYgNjQuMjg1NzE0MTd6IiBwLWlkPSIxMTIwIiBmaWxsPSIjNTE1MTUxIj48L3BhdGg+PHBhdGggZD0iTTE5MC41NzE0MjgzMiAyNTQuODU3MTQyNDhoNjQuMjg1NzE0MTZ2NjQuMjg1NzE1MDRIMTkwLjU3MTQyODMyek0zMTkuMTQyODU3NTIgMjU0Ljg1NzE0MjQ4aDQ1MHY2NC4yODU3MTUwNEgzMTkuMTQyODU3NTJ6TTE5MC41NzE0MjgzMiA0NDcuNzE0Mjg1ODRoNjQuMjg1NzE0MTZ2NjQuMjg1NzE0MTZIMTkwLjU3MTQyODMyek0zMTkuMTQyODU3NTIgNDQ3LjcxNDI4NTg0aDQ1MHY2NC4yODU3MTQxNkgzMTkuMTQyODU3NTJ6TTE5MC41NzE0MjgzMiA2NDAuNTcxNDI4MzJoNjQuMjg1NzE0MTZ2NjQuMjg1NzE0MTZIMTkwLjU3MTQyODMyek0zMTkuMTQyODU3NTIgNjQwLjU3MTQyODMyaDMyMS40Mjg1NzA4djY0LjI4NTcxNDE2SDMxOS4xNDI4NTc1MnoiIHAtaWQ9IjExMjEiIGZpbGw9IiM1MTUxNTEiPjwvcGF0aD48L3N2Zz4=)}.page-calendar .calendar-box .calendar-wrapper .tui-full-calendar-popup-task .tui-full-calendar-ic-delete{top:-2px;background-image:url(data:image/svg+xml;base64,PHN2ZyB0PSIxNjIzODU5MzMwMTc2IiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9Ijc5MiIgd2lkdGg9IjIwMCIgaGVpZ2h0PSIyMDAiPjxwYXRoIGQ9Ik04OTIuMjg4IDI1NmgtMTkxLjE2OEEyMDIuMjQgMjAyLjI0IDAgMCAwIDUwOS42MzIgNjIuMDggMjAxLjIxNiAyMDEuMjE2IDAgMCAwIDMxOC44NDggMjU2SDEyOGMtMTguNjg4IDAtNjYuMDQ4LTQuMjI0LTY2LjA0OCAyNC43NjhDNjEuOTUyIDMyNy43NDQgMTA5LjM3NiAzMjAgMTI4IDMyMGg2NHY1MTJhMTQ2LjQ5NiAxNDYuNDk2IDAgMCAwIDEyNy40MjQgMTI4aDM4Mi4yNzJBMTUwLjAxNiAxNTAuMDE2IDAgMCAwIDgzMiA4MzJsLTMuMzkyLTUxMmg2NGMxOC4zNjggMCA2NS4wMjQgMS40NzIgNjUuMDI0LTM5Ljc0NEE3Mi4zODQgNzIuMzg0IDAgMCAwIDg5Mi4yODggMjU2ek01MDkuNjMyIDEyOC41MTJBMTM4LjE3NiAxMzguMTc2IDAgMCAxIDYzNy40NCAyNTZIMzgyLjU5MmExMzcuOTIgMTM3LjkyIDAgMCAxIDEyNy4wNC0xMjcuNDg4ek03NjggODMyYTk3Ljk4NCA5Ny45ODQgMCAwIDEtNjYuODggNjRIMzE4Ljg0OGE5My41NjggOTMuNTY4IDAgMCAxLTY0LTY0VjMyMEg3Njh2NTEyeiBtLTM4NS40MDgtNjRWNTEyYzAtMTguNDk2IDAuOTYtNjAuOTkyIDM2LjczNi02MC45OTIgMjcuMzI4IDAgMjYuNDk2IDQzLjAwOCAyNi45NDQgNjAuOTkydjI1NmMwIDE4LjQ5Ni02LjQgMjAuMDMyLTI0Ljk2IDIwLjAzMnMtMzguNzItMS41MzYtMzguNzItMjAuMDMyeiBtMTkxLjE2OCAwVjUxMmE2NCA2NCAwIDAgMSAyMy44MDgtNjAuOTkyYzQyLjQzMiAwIDM5LjM2IDQzLjAwOCAzOS44NzIgNjAuOTkydjI1NmMwIDE4LjQ5Ni0xOS41ODQgMjAuMDMyLTM3Ljk1MiAyMC4wMzJzLTI1Ljc5Mi0xLjUzNi0yNS43OTItMjAuMDMyeiIgcC1pZD0iNzkzIiBmaWxsPSIjNTE1MTUxIj48L3BhdGg+PC9zdmc+)}.page-calendar .calendar-box .calendar-wrapper .tui-full-calendar-popup-task .tui-full-calendar-popup-detail-item-separate{padding-left:22px}.page-calendar .calendar-box .calendar-wrapper .tui-datepicker{border-color:#e8e8e8}.page-calendar .calendar-box .calendar-wrapper .tui-datepicker .tui-calendar th,.page-calendar .calendar-box .calendar-wrapper .tui-datepicker .tui-calendar td{height:32px}.page-calendar .calendar-box .calendar-wrapper .tui-datepicker .tui-calendar .tui-calendar-prev-month.tui-calendar-date,.page-calendar .calendar-box .calendar-wrapper .tui-datepicker .tui-calendar .tui-calendar-next-month.tui-calendar-date{visibility:visible}.page-calendar .calendar-box .calendar-wrapper .tui-datepicker .tui-datepicker-body .tui-timepicker,.page-calendar .calendar-box .calendar-wrapper .tui-datepicker .tui-datepicker-footer .tui-timepicker{padding:16px 46px 16px 47px}.page-calendar .calendar-menu{position:absolute;top:2px;right:2px;z-index:-1;opacity:0}@media (max-width: 768px){.page-calendar .calendar-head .calendar-titbox .calendar-title{flex:1}.page-calendar .calendar-head .calendar-titbox .calendar-arrow{margin-left:12px;margin-right:0}.page-calendar .calendar-head .calendar-titbox .calendar-view{display:none}.page-calendar .calendar-box{padding:0 24px 5px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.page-calendar .calendar-box .calendar-wrapper .tui-full-calendar-popup{font-weight:400}.page-calendar .calendar-box .calendar-wrapper .tui-full-calendar-section-button>button .tui-full-calendar-icon{width:14px;height:14px;background-size:14px}.page-calendar .calendar-box .calendar-wrapper .tui-full-calendar-section-button>button .tui-full-calendar-content{font-size:14px}}@media (max-width: 640px){.page-calendar .calendar-box .calendar-wrapper .tui-full-calendar-popup-arrow{display:none}}.page-dashboard{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;background-color:#fff}.page-dashboard .dashboard-wrapper{width:100%;height:auto;max-height:100%;display:flex;flex-direction:column;align-items:center}.page-dashboard .dashboard-wrapper .dashboard-hello,.page-dashboard .dashboard-wrapper .dashboard-desc,.page-dashboard .dashboard-wrapper .dashboard-block,.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-title,.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul{width:660px;max-width:80%;margin:0 auto}.page-dashboard .dashboard-wrapper .dashboard-hello{padding:6% 12px 0;color:#303133;font-size:24px;font-weight:600;word-wrap:break-word}.page-dashboard .dashboard-wrapper .dashboard-desc{display:flex;align-items:center;margin-top:18px;padding:0 12px;color:#888;font-size:13px}.page-dashboard .dashboard-wrapper .dashboard-desc .dashboard-load{display:flex;align-items:center;justify-content:center;width:14px;height:14px;margin:0 0 0 4px}.page-dashboard .dashboard-wrapper .dashboard-block{margin-top:18px;padding:0 12px;display:flex}.page-dashboard .dashboard-wrapper .dashboard-block>li{flex:1;flex-shrink:0;list-style:none;margin-right:24px;border-radius:8px;padding:16px 24px;background-color:#fa8e8c;display:flex;flex-direction:column;justify-content:center;cursor:pointer;transition:transform .3s ease-out 0s,box-shadow .3s ease-out 0s}.page-dashboard .dashboard-wrapper .dashboard-block>li:first-child{background-color:#6f9ef6}.page-dashboard .dashboard-wrapper .dashboard-block>li:last-child{background-color:#98de6e;margin-right:0}.page-dashboard .dashboard-wrapper .dashboard-block>li:hover{transform:translateY(-3px);box-shadow:0 2px 10px #fa8e8c}.page-dashboard .dashboard-wrapper .dashboard-block>li:hover:first-child{box-shadow:0 2px 10px #6f9ef6}.page-dashboard .dashboard-wrapper .dashboard-block>li:hover:last-child{box-shadow:0 2px 10px #98de6e}.page-dashboard .dashboard-wrapper .dashboard-block>li .block-title{color:#fff9;font-size:12px}.page-dashboard .dashboard-wrapper .dashboard-block>li .block-data{display:flex;align-items:center;padding-top:10px;line-height:1}.page-dashboard .dashboard-wrapper .dashboard-block>li .block-data .block-num{flex:1;color:#fff;font-weight:600;font-size:32px}.page-dashboard .dashboard-wrapper .dashboard-block>li .block-data .taskfont{color:#ffffffb3;font-size:20px}.page-dashboard .dashboard-wrapper .dashboard-list{width:100%;margin-top:48px;padding-bottom:6%}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ref{height:0}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-title{position:sticky;top:0;z-index:1;margin:0 auto;padding:0 12px;height:46px;line-height:46px;font-weight:600;font-size:15px;background-color:#fff}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul{margin:0 auto 18px;padding:6px 12px 0;overflow:hidden}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul>li{position:relative;list-style:none;display:flex;background:#F9FAFB;padding:12px;margin-bottom:8px;border-radius:6px;cursor:pointer;transition:box-shadow .3s ease-out 0s}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul>li:hover{box-shadow:0 0 6px #dfdfdf}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul>li.complete .item-title{opacity:.5;text-decoration:line-through}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul>li.complete .item-icon{display:none}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul>li .priority-color{position:absolute;top:50%;transform:translateY(-50%);left:0;height:12px;width:2px}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul>li .item-select{flex-shrink:0;width:22px;height:22px;line-height:22px}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul>li .item-select .taskfont{color:#bbb;font-size:18px}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul>li .item-title{flex:1;padding-left:6px;line-height:22px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul>li .item-title>span{font-size:12px;height:18px;min-width:20px;line-height:16px;padding:0 2px;border-radius:3px;color:#84c56a;border:1px solid #84C56A;display:inline-block;vertical-align:top;margin-top:3px;margin-right:3px;text-align:center}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul>li .item-title>span.start{background-color:#ff70701a;border-color:#ff70701a;color:#ff7070}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul>li .item-title>span.progress{background-color:#fc984b1a;border-color:#fc984b1a;color:#fc984b}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul>li .item-title>span.test{background-color:#2f99ec1a;border-color:#2f99ec1a;color:#2f99ec}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul>li .item-title>span.end{background-color:#0bc0371a;border-color:#0bc0371a;color:#0bc037}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul>li .item-icon{display:flex;align-items:center;font-size:13px;margin-left:16px;height:22px;color:#aaa;cursor:pointer}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul>li .item-icon .taskfont{font-size:13px}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul>li .item-icon>em{font-style:normal;margin-left:4px}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul>li .item-icon.overdue{color:#ed4014}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul>li .item-icon.today{color:#f90}.page-dashboard .nopage{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center}.page-dashboard .nopage .nopage-icon{background-color:#f4f5f7;padding:20px;border-radius:50%}.page-dashboard .nopage .nopage-icon .ivu-icon{color:#d1d8dd;font-size:46px}.page-dashboard .nopage .nopage-text{margin-top:16px;color:#bec6cc;background-color:#f4f5f7;padding:4px 15px;border-radius:14px}.dashboard-load-enter-active{transition:opacity .3s ease;transition-delay:1s}.dashboard-load-leave-active{transition:opacity .2s ease;transition-delay:0s}.dashboard-load-enter,.dashboard-load-leave-to{opacity:0}@media (max-width: 768px){.page-dashboard .dashboard-wrapper{display:block;max-height:96%}.page-dashboard .dashboard-wrapper .dashboard-hello,.page-dashboard .dashboard-wrapper .dashboard-desc,.page-dashboard .dashboard-wrapper .dashboard-block,.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-title,.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul{max-width:96%}.page-dashboard .dashboard-wrapper .dashboard-block{display:block;margin-top:10px}.page-dashboard .dashboard-wrapper .dashboard-block>li{margin:0 0 10px;padding:8px 12px}.page-dashboard .dashboard-wrapper .dashboard-list{padding-bottom:2px;overflow:visible}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul{margin-bottom:36px;-webkit-user-select:none;-moz-user-select:none;user-select:none}}.page-file{width:100%;height:100%;display:flex;flex-direction:column}.page-file .file-wrapper{flex:1;height:0;display:flex;flex-direction:column;position:relative}.page-file .file-wrapper .file-head{display:flex;align-items:center;padding-bottom:16px;margin:32px 32px 16px;border-bottom:1px solid #F4F4F5}.page-file .file-wrapper .file-head .file-nav{flex:1;display:flex;align-items:center}.page-file .file-wrapper .file-head .file-nav>h1{color:#303133;font-size:28px;font-weight:600}.page-file .file-wrapper .file-head .file-nav .file-refresh{display:none;cursor:pointer;margin-left:12px}.page-file .file-wrapper .file-head .file-nav .file-refresh>i{font-size:18px}.page-file .file-wrapper .file-head .file-nav:hover .file-refresh{display:block}.page-file .file-wrapper .file-head .file-status{flex-shrink:0;margin-left:22px;display:flex;align-items:center;cursor:pointer}.page-file .file-wrapper .file-head .file-status>button{color:#fff;background:#84C56A;border-color:#84c56a}.page-file .file-wrapper .file-head .file-search{flex-shrink:0;margin-left:22px;cursor:pointer}.page-file .file-wrapper .file-head .file-search .ivu-input-wrapper{width:auto;transform:translateZ(0)}.page-file .file-wrapper .file-head .file-search .ivu-input-wrapper .ivu-input{border-color:#dcdee2;width:0;padding-left:0;padding-right:30px;border-radius:16px;transition:all .3s}.page-file .file-wrapper .file-head .file-search .ivu-input-wrapper .ivu-input-suffix i{color:#606266}.page-file .file-wrapper .file-head .file-search.has-value .ivu-input-wrapper .ivu-input,.page-file .file-wrapper .file-head .file-search:hover .ivu-input-wrapper .ivu-input{width:160px;padding-left:14px}.page-file .file-wrapper .file-head .file-add{flex-shrink:0;margin-left:18px;cursor:pointer}.page-file .file-wrapper .file-head .file-add .taskfont{font-size:18px}.page-file .file-wrapper .file-navigator{display:flex;align-items:center;height:24px;line-height:24px;margin:0 32px}.page-file .file-wrapper .file-navigator>ul{display:flex;align-items:center;overflow:auto;margin-right:12px}.page-file .file-wrapper .file-navigator>ul>li{display:flex;list-style:none;align-items:center;padding-left:8px;font-size:14px;color:#84c56a;cursor:pointer}.page-file .file-wrapper .file-navigator>ul>li:last-child{color:#606266;cursor:default}.page-file .file-wrapper .file-navigator>ul>li+li:before{content:"\203a";margin-top:-2px;padding-right:8px;color:#606266;line-height:1;font-size:16px;font-weight:500;font-family:system-ui,sans-serif}.page-file .file-wrapper .file-navigator>ul>li .taskfont{padding-right:2px}.page-file .file-wrapper .file-navigator>ul>li>span{display:inline-block;max-width:180px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.page-file .file-wrapper .file-navigator>ul>li>span.readonly{transform:scale(.8);transform-origin:right center;border-radius:2px;line-height:20px;font-size:12px;padding:0 5px;color:#606266;background:#f7f7f7;border:1px solid #e8eaec}.page-file .file-wrapper .file-navigator .nav-load{margin-left:8px;width:24px;height:24px;display:flex;align-items:center;justify-content:center}.page-file .file-wrapper .file-navigator .nav-load .common-loading{width:12px;height:12px}.page-file .file-wrapper .file-navigator .nav-refresh{margin-left:8px}.page-file .file-wrapper .file-navigator .ivu-btn{font-size:12px;margin-left:12px}.page-file .file-wrapper .file-navigator .file-shear{display:flex;align-items:center}.page-file .file-wrapper .file-navigator .file-shear>span{padding-right:3px}.page-file .file-wrapper .file-navigator .file-shear>em{display:inline-block;max-width:120px;font-style:normal;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.page-file .file-wrapper .file-navigator .flex-full{flex:1}.page-file .file-wrapper .file-navigator .switch-button{display:flex;align-items:center;background-color:#fff;border-radius:6px;position:relative;transition:box-shadow .2s}.page-file .file-wrapper .file-navigator .switch-button:hover{box-shadow:0 0 10px #e6ecfa}.page-file .file-wrapper .file-navigator .switch-button:before{content:"";position:absolute;top:0;left:0;width:50%;height:100%;z-index:0;color:#84c56a;border-radius:6px;border:1px solid #84C56A;background-color:#84c56a1a;transition:left .2s}.page-file .file-wrapper .file-navigator .switch-button>div{z-index:1;width:32px;height:30px;display:flex;align-items:center;justify-content:center;border-radius:6px;cursor:pointer;color:#606266}.page-file .file-wrapper .file-navigator .switch-button>div>i{font-size:17px}.page-file .file-wrapper .file-navigator .switch-button>div:first-child{color:#84c56a}.page-file .file-wrapper .file-navigator .switch-button.block:before{left:50%}.page-file .file-wrapper .file-navigator .switch-button.block>div:first-child{color:#606266}.page-file .file-wrapper .file-navigator .switch-button.block>div:last-child{color:#84c56a}.page-file .file-wrapper .file-drag{flex:1;height:0;display:flex;flex-direction:column;position:relative}.page-file .file-wrapper .file-drag .file-no{flex:1;display:flex;align-items:center;justify-content:center;flex-direction:column;margin-bottom:5%;opacity:.8}.page-file .file-wrapper .file-drag .file-no>i{font-size:64px}.page-file .file-wrapper .file-drag .file-no>p{margin-top:18px;font-size:14px;font-weight:500;line-height:1}.page-file .file-wrapper .file-drag .file-table{flex:1;cursor:default;margin:16px 32px 32px}.page-file .file-wrapper .file-drag .file-table .ivu-table:before{display:none}.page-file .file-wrapper .file-drag .file-table .ivu-table .ivu-table-tip{opacity:.8}.page-file .file-wrapper .file-drag .file-table .ivu-table .ivu-table-tip span{font-size:14px;font-weight:500;line-height:1.8}.page-file .file-wrapper .file-drag .file-table .ivu-table .ivu-table-tip span:before{display:block;content:"\e60b";font-family:taskfont,"serif"!important;font-size:64px;font-style:normal;-webkit-font-smoothing:antialiased;-webkit-text-stroke-width:.2px}.page-file .file-wrapper .file-drag .file-table .ivu-table .ivu-table-overflowY,.page-file .file-wrapper .file-drag .file-table .ivu-table .ivu-table-overflowX{-webkit-overflow-scrolling:touch}.page-file .file-wrapper .file-drag .file-table .file-nbox{display:flex;align-items:center;position:relative}.page-file .file-wrapper .file-drag .file-table .file-nbox.shear{opacity:.38}.page-file .file-wrapper .file-drag .file-table .file-nbox .file-name{flex:1;width:0;display:flex;align-items:center;position:relative;margin-right:46px}.page-file .file-wrapper .file-drag .file-table .file-nbox .file-name:before{flex-shrink:0;content:"";width:22px;height:22px;margin-right:8px}.page-file .file-wrapper .file-drag .file-table .file-nbox .file-name .quick-edit{width:98%}.page-file .file-wrapper .file-drag .file-table .file-nbox .avatar-char{font-size:18px}.page-file .file-wrapper .file-drag .file-table .file-nbox .taskfont{color:#aaa;font-size:16px;margin:0 3px}.page-file .file-wrapper .file-drag .file-list{flex:1;padding:0 20px 20px;margin-top:16px;overflow:auto}.page-file .file-wrapper .file-drag .file-list>ul{display:grid;justify-content:space-between;grid-template-columns:repeat(auto-fill,100px);grid-gap:12px}.page-file .file-wrapper .file-drag .file-list>ul>li{list-style:none;width:100px;height:110px;position:relative;border-radius:5px;display:flex;flex-direction:column;align-items:center;justify-content:space-between;cursor:pointer}.page-file .file-wrapper .file-drag .file-list>ul>li .file-input{margin:0 4px 4px;position:relative}.page-file .file-wrapper .file-drag .file-list>ul>li .file-input input{margin:0;padding:1px 5px;font-size:13px}.page-file .file-wrapper .file-drag .file-list>ul>li .file-input .file-load{position:absolute;top:0;right:6px;bottom:0;display:flex}.page-file .file-wrapper .file-drag .file-list>ul>li .file-input .file-load .common-loading{width:10px;height:10px}.page-file .file-wrapper .file-drag .file-list>ul>li .file-name{display:block;width:100%;height:20px;line-height:20px;color:#606266;font-size:12px;text-align:center;margin-bottom:5px;padding:0 6px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.page-file .file-wrapper .file-drag .file-list>ul>li .file-check{opacity:0;position:absolute;top:1px;left:4px;transition:opacity .2s}.page-file .file-wrapper .file-drag .file-list>ul>li .file-check.file-checked{opacity:1}.page-file .file-wrapper .file-drag .file-list>ul>li .file-menu{opacity:0;position:absolute;top:2px;right:2px;transition:opacity .2s;display:flex}.page-file .file-wrapper .file-drag .file-list>ul>li .file-menu .ivu-icon{font-size:16px;color:#aaa;transition:color .2s;padding:2px 5px}.page-file .file-wrapper .file-drag .file-list>ul>li .file-menu .ivu-icon:hover{color:#606266}.page-file .file-wrapper .file-drag .file-list>ul>li .file-icon{display:inline-block;width:64px;height:64px;margin-top:12px;position:relative}.page-file .file-wrapper .file-drag .file-list>ul>li .file-icon:before{position:absolute;top:0;left:0;right:0;bottom:0}.page-file .file-wrapper .file-drag .file-list>ul>li .file-icon .share-icon,.page-file .file-wrapper .file-drag .file-list>ul>li .file-icon .share-avatar{position:absolute;right:0;bottom:0;background-color:#9acd7b;width:20px;height:20px;border-radius:50%;display:flex;align-items:center;justify-content:center;transform:scale(.9)}.page-file .file-wrapper .file-drag .file-list>ul>li .file-icon .share-icon .taskfont,.page-file .file-wrapper .file-drag .file-list>ul>li .file-icon .share-avatar .taskfont{font-size:18px;color:#fff}.page-file .file-wrapper .file-drag .file-list>ul>li .file-icon .avatar-char{font-size:18px}.page-file .file-wrapper .file-drag .file-list>ul>li.shear{opacity:.38}.page-file .file-wrapper .file-drag .file-list>ul>li.highlight{background-color:#f4f5f7}.page-file .file-wrapper .file-drag .file-list>ul>li.operate,.page-file .file-wrapper .file-drag .file-list>ul>li:hover{background-color:#f4f5f7}.page-file .file-wrapper .file-drag .file-list>ul>li.operate .file-menu,.page-file .file-wrapper .file-drag .file-list>ul>li.operate .file-check,.page-file .file-wrapper .file-drag .file-list>ul>li:hover .file-menu,.page-file .file-wrapper .file-drag .file-list>ul>li:hover .file-check{opacity:1}.page-file .file-wrapper .file-drag .drag-over{position:absolute;top:0;left:0;right:0;bottom:0;z-index:3;background-color:#ffffffc7;display:flex;align-items:center;justify-content:center;margin:16px 32px 32px}.page-file .file-wrapper .file-drag .drag-over:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;border:2px dashed #7b7b7b;border-radius:12px}.page-file .file-wrapper .file-drag .drag-over .drag-text{padding:12px;font-size:18px;color:#606266}.page-file .file-wrapper .file-menu{position:absolute}.page-file .file-upload-list{display:flex;width:380px;padding:14px 26px;border-radius:8px;border:1px solid #ebeef5;position:fixed;right:16px;bottom:16px;z-index:1;background-color:#fff;box-shadow:0 2px 12px #0000001a;transition:opacity .3s,transform .3s,left .3s,right .3s,top .4s,bottom .3s;overflow:hidden}.page-file .file-upload-list .upload-wrap{flex:1;width:100%}.page-file .file-upload-list .upload-wrap .title{font-weight:700;font-size:16px;color:#303133;margin:0}.page-file .file-upload-list .upload-wrap .title>em{padding-left:4px;font-style:normal;cursor:pointer;color:#2b85e4;font-size:12px;font-weight:400}.page-file .file-upload-list .upload-wrap .content{font-size:14px;line-height:21px;margin:12px 0 0;color:#606266;max-height:500px;max-width:100%;overflow:auto}.page-file .file-upload-list .upload-wrap .content>li{list-style:none;padding:4px 0;position:relative}.page-file .file-upload-list .upload-wrap .content>li .file-name{line-height:18px;padding-right:16px}.page-file .file-upload-list .upload-wrap .content>li .file-error{font-size:12px;color:red}.page-file .file-upload-list .upload-wrap .content>li .file-close{position:absolute;font-size:14px;top:7px;right:-1px;display:none;cursor:pointer}.page-file .file-upload-list .upload-wrap .content>li:hover .file-close{display:block}.page-file .file-upload-list .upload-wrap .close{position:absolute;top:18px;right:15px;cursor:pointer;color:#909399;font-size:16px}.page-file-dropdown-menu{max-height:none!important}.page-file-dropdown-menu .ivu-dropdown{width:100%}.page-file-dropdown-menu .ivu-dropdown .arrow-forward-item{display:flex;align-items:center;justify-content:space-between;margin-right:-6px;min-width:90px}.page-file-dropdown-menu .ivu-dropdown .arrow-forward-item .ivu-icon{opacity:.7}.page-file-dropdown-menu .file-item{display:flex;align-items:center;position:relative}.page-file-dropdown-menu .file-item:before{flex-shrink:0;content:"";width:20px;height:20px;margin-right:8px}.page-file-dropdown-menu .ivu-dropdown-menu .item-open{display:flex;align-items:center}.page-file-dropdown-menu .ivu-dropdown-menu .item-open .open-name{padding-left:4px;max-width:160px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.page-file-share-form{display:flex;margin-bottom:12px}.page-file-share-form .share-userid{flex:1}.page-file-share-form>div{flex-shrink:0}.page-file-share-form>div:last-child{margin-right:0}.page-file-share-title{margin-top:-8px;margin-bottom:14px;padding:0 2px}.page-file-share-list{max-height:500px;margin-bottom:26px;overflow:auto}.page-file-share-list>li{display:flex;align-items:center;margin-bottom:12px}.page-file-share-list>li .common-avatar{flex:1}.page-file-share-list>li .all-avatar{flex:1;display:flex;align-items:center}.page-file-share-list>li .all-avatar .avatar-text{width:32px;height:32px;line-height:32px}.page-file-share-list>li .all-avatar .avatar-name{margin-left:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.page-file-share-list>li .ivu-select{width:auto;flex-shrink:0}.page-file-share-list>li .delete{color:red}.page-file-drawer .overlay-content{border-radius:20px 20px 0 0!important}@media (max-width: 768px){.page-file .file-wrapper .file-head{margin:24px 24px 16px}.page-file .file-wrapper .file-navigator{margin:0 24px}.page-file .file-wrapper .file-drag .file-list{-webkit-user-select:none;-moz-user-select:none;user-select:none}.page-file .file-wrapper .file-drag .file-list>ul{grid-template-columns:repeat(auto-fill,80px);grid-gap:4px}.page-file .file-wrapper .file-drag .file-list>ul>li{width:80px}.page-file .file-wrapper .file-drag .file-list>ul>li .file-check,.page-file .file-wrapper .file-drag .file-list>ul>li .file-menu{display:none}.page-file .file-wrapper .file-drag .file-list>ul>li:hover{background-color:transparent}.page-file .file-wrapper .file-drag .file-list>ul>li.operate:hover{background-color:#f4f5f7}.page-file .file-wrapper .file-drag .file-table{margin:16px 0 0}.page-file .file-upload-list{bottom:86px}.page-file-dropdown-menu .ivu-dropdown-menu .ivu-dropdown-item:hover{background:transparent}}.page-login{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;background-color:#f8f8f8}.page-login .login-body{display:flex;flex-direction:column;align-items:center;padding:32px 0;width:100%;max-height:100%;overflow:auto}.page-login .login-body .login-logo{flex-shrink:0;width:84px;height:84px;background:url(/js/build/logo.060180f3.svg) no-repeat center center;background-size:contain}.page-login .login-body .login-logo.can-click{cursor:pointer}.page-login .login-body .login-box{flex-shrink:0;position:relative;margin-top:36px;width:400px;max-width:90%;border-radius:12px;background-color:#fff;box-shadow:0 0 10px #e6ecfa;overflow:hidden}.page-login .login-body .login-box .login-mode-switch{position:absolute;top:4px;right:4px;z-index:1;border-radius:8px;overflow:hidden}.page-login .login-body .login-box .login-mode-switch .login-mode-switch-box{width:80px;height:80px;transform:translate(40px,-40px) rotate(45deg);cursor:pointer;background-color:#84c56acc;transition:background-color .3s;overflow:hidden}.page-login .login-body .login-box .login-mode-switch .login-mode-switch-box:hover{background-color:#84c56a}.page-login .login-body .login-box .login-mode-switch .login-mode-switch-box .login-mode-switch-icon{position:absolute;font-size:32px;width:50px;height:50px;color:#fff;bottom:-20px;left:16px;transform:rotate(-45deg);display:flex;align-items:flex-start;justify-content:flex-start}.page-login .login-body .login-box .login-mode-switch .login-mode-switch-box .login-mode-switch-icon>svg{width:32px;height:32px;margin-left:13px;margin-top:3px}.page-login .login-body .login-box .login-title{font-size:24px;font-weight:600;text-align:center;margin-top:46px}.page-login .login-body .login-box .login-subtitle{font-size:14px;text-align:center;margin-top:12px;padding:0 12px;color:#aaa}.page-login .login-body .login-box .login-qrcode{display:flex;align-items:center;justify-content:center;margin:50px auto 51px}.page-login .login-body .login-box .login-access{margin:26px 40px 30px}.page-login .login-body .login-box .login-access>*{margin-top:26px}.page-login .login-body .login-box .login-access .ivu-input{border-color:#f1f1f1}.page-login .login-body .login-box .login-access .ivu-input[readonly=readonly]{background-color:#f5f5f5}.page-login .login-body .login-box .login-access .ivu-input-large{font-size:15px}.page-login .login-body .login-box .login-access .login-code .ivu-input-group-prepend,.page-login .login-body .login-box .login-access .login-code .ivu-input-group-append{font-size:16px;background:transparent;border-color:#f1f1f1}.page-login .login-body .login-box .login-access .login-code .ivu-input-group-prepend>span,.page-login .login-body .login-box .login-access .login-code .ivu-input-group-append>span{font-size:14px}.page-login .login-body .login-box .login-access .login-code .ivu-input-group-prepend{padding-right:0}.page-login .login-body .login-box .login-access .login-code .ivu-input{border-left-color:transparent;box-shadow:none}.page-login .login-body .login-box .login-access .login-code .login-code-end{margin:-6px -7px;height:38px;overflow:hidden;cursor:pointer}.page-login .login-body .login-box .login-access .login-code .login-code-end img{height:100%}.page-login .login-body .login-box .login-access .login-switch{color:#aaa}.page-login .login-body .login-box .login-access>.ivu-poptip{width:100%}.page-login .login-body .login-box .login-access>.ivu-poptip>.ivu-poptip-rel{width:100%}.page-login .login-body .login-bottom{margin-top:18px;display:flex;align-items:center;width:388px;max-width:90%}.page-login .login-body .login-bottom .login-setting{flex-shrink:0;display:flex;align-items:center;cursor:pointer;color:#606266}.page-login .login-body .login-bottom .login-setting .taskfont{margin-top:1px;margin-left:3px;transform:scale(.8);font-size:12px}.page-login .login-body .login-bottom .login-setting-menu{display:flex;flex-direction:column}.page-login .login-body .login-bottom .login-setting-item{display:flex;align-items:center;justify-content:space-between}.page-login .login-body .login-bottom .login-setting-item .ivu-icon{color:#606266;padding-left:6px;margin-right:-6px}.page-login .login-body .login-bottom .login-forgot{flex:1;padding-left:24px;color:#aaa;text-align:right}.privacy-content{margin-bottom:12px;line-height:26px;font-size:16px}.privacy-content>p{text-indent:2rem}@media (max-width: 768px){.page-login .login-body{padding:0 0 110px}.page-login .login-body .login-logo{margin-top:24px;width:76px;height:76px}.page-login .login-body .login-box{margin-top:0;width:100%;max-width:460px;border-radius:12px;background-color:transparent;box-shadow:none}.page-login .login-body .login-box .login-mode-switch{display:none}.page-login .login-body .login-box .login-title{font-size:26px}.page-login .login-body .login-box .login-subtitle{margin-top:4px}.page-login .login-body .login-box .login-access{margin:20px 36px}.page-login .login-body .login-box .login-access .ivu-input-large{height:44px}.page-login .login-body .login-box .login-access .ivu-input-with-prefix{padding-left:40px}.page-login .login-body .login-box .login-access .ivu-input-prefix,.page-login .login-body .login-box .login-access .ivu-input-suffix{width:44px}.page-login .login-body .login-box .login-access .ivu-input-wrapper-large .ivu-input-prefix i,.page-login .login-body .login-box .login-access .ivu-input-wrapper-large .ivu-input-suffix i{font-size:20px;line-height:44px}.page-login .login-body .login-box .login-access .ivu-input-wrapper-large .ivu-input-icon{height:44px;line-height:44px}.page-login .login-body .login-box .login-access .login-code .ivu-input-group-prepend,.page-login .login-body .login-box .login-access .login-code .ivu-input-group-append{font-size:18px;background:#ffffff}.page-login .login-body .login-box .login-access .login-code .ivu-input-group-prepend .login-code-end,.page-login .login-body .login-box .login-access .login-code .ivu-input-group-append .login-code-end{height:42px}.page-login .login-body .login-box .login-access .login-code .ivu-input-group-prepend{padding-left:12px;padding-right:2px}.page-login .login-body .login-bottom{margin-top:8px;width:100%;max-width:460px;padding:0 36px}}.page-manage{position:absolute;top:0;left:0;right:0;bottom:0;display:flex}.page-manage .manage-box-menu{position:relative;flex-grow:0;flex-shrink:0;width:255px;height:100%;background:#F4F5F7;display:flex;flex-direction:column;align-items:center;transition:all .2s}.page-manage .manage-box-menu>ul{flex:1;width:100%;margin-top:16px;display:flex;flex-direction:column;overflow:hidden}.page-manage .manage-box-menu>ul>li{flex-shrink:0;display:flex;align-items:center;height:36px;color:#6b6e72;cursor:pointer;position:relative;width:80%;max-width:100%;margin:5px auto;padding:0 4%;border-radius:4px}.page-manage .manage-box-menu>ul>li>i{opacity:.3;font-size:20px;margin-right:10px}.page-manage .manage-box-menu>ul>li .menu-title{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.page-manage .manage-box-menu>ul>li .menu-badge{margin-left:12px;transform:scale(.9)}.page-manage .manage-box-menu>ul>li:first-child{margin-top:12px}.page-manage .manage-box-menu>ul>li.active{background-color:#fff}.page-manage .manage-box-menu>ul>li.menu-project{flex:1;display:flex;flex-direction:column;align-items:center;padding:12px 0 0;cursor:default;width:100%}.page-manage .manage-box-menu>ul>li.menu-project>ul{width:100%}.page-manage .manage-box-menu>ul>li.menu-project>ul>li{display:flex;flex-direction:column;list-style:none;cursor:pointer;width:80%;margin:2px auto;border:2px solid transparent}.page-manage .manage-box-menu>ul>li.menu-project>ul>li .project-h1{position:relative;display:flex;align-items:center;justify-content:space-between;padding:0 8px 0 28px;border-radius:4px}.page-manage .manage-box-menu>ul>li.menu-project>ul>li .project-h1>em{position:absolute;top:50%;left:2px;width:24px;height:24px;cursor:pointer;transform:translateY(-50%);display:flex;align-items:center;justify-content:center}.page-manage .manage-box-menu>ul>li.menu-project>ul>li .project-h1>em:before{content:"";width:12px;height:12px;background:url(data:image/svg+xml;base64,PHN2ZyB0PSIxNjIyMzkwODExNTQxIiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjI0OTk3IiB3aWR0aD0iNDgiIGhlaWdodD0iNDgiPjxwYXRoIGQ9Ik0zNjYuMTgyNCAxMDguMjM2OEw4MTIuMDMyIDQyOC4wMzJhMTAyLjQgMTAyLjQgMCAwIDEgMCAxNjYuNTAyNEwzNjYuMTgyNCA5MTQuMzI5NmExMDIuNCAxMDIuNCAwIDAgMS0xNjIuMDk5Mi04My4yNTEyVjE5MS40ODhhMTAyLjQgMTAyLjQgMCAwIDEgMTYyLjA5OTItODMuMjUxMnoiIHAtaWQ9IjI0OTk4IiBmaWxsPSIjOTk5OTk5Ij48L3BhdGg+PC9zdmc+) no-repeat center center;background-size:contain;transition:transform .2s}.page-manage .manage-box-menu>ul>li.menu-project>ul>li .project-h1 .title{flex:1;color:#303133;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;height:38px;line-height:38px}.page-manage .manage-box-menu>ul>li.menu-project>ul>li .project-h1 .icon-top{padding-left:8px;width:14px;height:14px;background:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI1LjAuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IuWbvuWxgl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiCiAgICAgeT0iMHB4IgogICAgIHZpZXdCb3g9IjAgMCAyNCAyNCIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMjQgMjQ7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPHN0eWxlIHR5cGU9InRleHQvY3NzIj4KCS5zdDB7ZmlsbDojOEJDRjcwO30KPC9zdHlsZT4wCiAgICA8cGF0aCBjbGFzcz0ic3QwIiBkPSJNMjAuNyw4LjFjLTEuNS0xLjUtNC40LTQuNC00LjQtNC40Yy0xLjItMS4yLTIuNS0xLjQtMy40LTAuN2MtMC41LDAuNC0wLjcsMC45LTAuOCwxLjRjLTAuMSwwLjUtMC40LDEtMC44LDEuMwoJbC0wLjEsMC4xYy0yLDEuNS00LjMsMi44LTYuOCwzLjJDMy45LDkuMiwzLjMsOS41LDMsMTBjLTAuNiwwLjktMC40LDIuMSwwLjMsMi45bDMuNCwzLjRjMCwwLDAsMCwwLDBsLTMuMSwzLjEKCWMtMC4zLDAuMy0wLjMsMC44LDAsMS4xYzAuMSwwLjEsMC4zLDAuMiwwLjUsMC4yYzAuMiwwLDAuNC0wLjEsMC41LTAuMmwzLjEtMy4xYzAsMCwwLDAsMCwwbDIuOSwyLjljMS4zLDEuMywyLjUsMS41LDMuNCwwLjkKCWMwLjQtMC4zLDAuNy0wLjcsMC45LTEuMmMwLjYtMi4zLDEuNC00LjYsMi44LTYuNWwwLjUtMC43YzAuMy0wLjQsMC44LTAuOCwxLjMtMC44YzAuNS0wLjEsMS4xLTAuMywxLjQtMC44CglDMjEuNywxMC4yLDIxLjUsOC45LDIwLjcsOC4xeiIvPgo8L3N2Zz4K) no-repeat center center;background-size:contain}.page-manage .manage-box-menu>ul>li.menu-project>ul>li .project-h1 .num{padding-left:8px;font-size:12px}.page-manage .manage-box-menu>ul>li.menu-project>ul>li .project-h2{display:none;margin:16px 4px;padding:0 8px 0 24px;cursor:default}.page-manage .manage-box-menu>ul>li.menu-project>ul>li .project-h2>p{display:flex;align-items:center;padding:4px 0;height:36px}.page-manage .manage-box-menu>ul>li.menu-project>ul>li .project-h2>p em,.page-manage .manage-box-menu>ul>li.menu-project>ul>li .project-h2>p span{font-style:normal;font-size:12px;flex-shrink:0;padding-right:6px}.page-manage .manage-box-menu>ul>li.menu-project>ul>li .project-h2>p .ivu-progress{margin-right:-18px}.page-manage .manage-box-menu>ul>li.menu-project>ul>li .project-h2>p .ivu-progress .ivu-progress-inner{background-color:#e4e4e4}.page-manage .manage-box-menu>ul>li.menu-project>ul>li.active .project-h1{background-color:#fff}.page-manage .manage-box-menu>ul>li.menu-project>ul>li.open-menu .project-h1>em:before{transform:rotate(90deg)}.page-manage .manage-box-menu>ul>li.menu-project>ul>li.open-menu .project-h2{display:block}.page-manage .manage-box-menu>ul>li.menu-project>ul>li.operate{border-color:#84c56a}.page-manage .manage-box-menu>ul>li.menu-project>ul>li.loading{display:flex;align-items:center;justify-content:center;padding:6px}.page-manage .manage-box-menu>ul>li.menu-project>ul>li.loading .common-loading{margin:6px;width:22px;height:22px}.page-manage .manage-box-menu .operate-position{position:absolute;top:0;left:0;width:1px;opacity:0;visibility:hidden;pointer-events:none}.page-manage .manage-box-menu .manage-project-search{width:80%;padding:0 3px;margin:8px 0 -2px;border-radius:12px;background-color:#fff;overflow:hidden}.page-manage .manage-box-menu .manage-project-search .ivu-input{padding-left:30px;border-color:transparent;background-color:transparent}.page-manage .manage-box-menu .manage-project-search .ivu-input:hover,.page-manage .manage-box-menu .manage-project-search .ivu-input:focus{box-shadow:none}.page-manage .manage-box-menu .manage-project-search .search-pre{width:100%;height:100%;display:flex;align-items:center;justify-content:center}.page-manage .manage-box-menu .manage-project-search .search-pre .common-loading{width:14px;height:14px;margin:0}.page-manage .manage-box-menu .manage-box-new-group{width:80%;margin-top:16px;margin-bottom:20px;display:flex;align-items:center}.page-manage .manage-box-menu .manage-box-new-group .manage-box-new{flex:1}.page-manage .manage-box-menu .manage-box-new-group .ivu-btn{height:38px}.page-manage .manage-box-menu .manage-box-new-group .ivu-dropdown .ivu-btn{min-width:auto!important;padding:0 4px;border-radius:0 4px 4px 0}.page-manage .manage-box-main{flex:1;position:relative}.page-manage .manage-box-main .manage-box-view{position:absolute;top:0;left:0;right:0;bottom:0;overflow:auto}.page-manage-menu-dropdown{flex-shrink:0}.page-manage-menu-dropdown.main-menu{width:86%}.page-manage-menu-dropdown .ivu-select-dropdown{padding:7px 0}.page-manage-menu-dropdown .ivu-select-dropdown .ivu-dropdown-item{padding:9px 16px}.page-manage-menu-dropdown .ivu-select-dropdown .ivu-dropdown-item-divided{margin-top:7px}.page-manage-menu-dropdown .ivu-select-dropdown .ivu-dropdown-item-divided:before{top:-9px}.page-manage-menu-dropdown .manage-box-title{display:flex;align-items:center;flex-shrink:0;padding:6px 10px;margin-top:27px;border-radius:8px;background-color:#fff;cursor:pointer;transition:box-shadow .3s}.page-manage-menu-dropdown .manage-box-title.menu-visible{box-shadow:0 1px 6px #0003}.page-manage-menu-dropdown .manage-box-title .manage-box-avatar{width:36px;height:36px}.page-manage-menu-dropdown .manage-box-title>span{flex:1;padding-left:12px;font-size:16px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.page-manage-menu-dropdown .manage-box-title .manage-box-arrow{display:flex;flex-direction:column;align-items:center;justify-content:center;padding-left:16px;padding-right:2px}.page-manage-menu-dropdown .manage-box-title .manage-box-arrow>i{font-size:12px;margin:-1px}.page-manage-menu-dropdown .manage-box-title .manage-box-top-report{overflow:unset;margin-right:-6px;align-items:center;flex-direction:column;justify-content:center;flex:0 0 auto}.page-manage-menu-dropdown .manage-box-title .manage-box-top-report>i{font-size:12px;margin:-1px}.page-manage-menu-dropdown .manage-box-title .manage-box-top-report .ivu-badge-dot{margin-right:4px}.page-manage-menu-dropdown .manage-menu-report-badge{margin-left:6px;transform:scale(.9);vertical-align:top}.page-manage-menu-dropdown .manage-menu-flex{display:flex;align-items:center;justify-content:space-between}.page-manage-menu-dropdown .manage-menu-flex .ivu-icon{color:#606266}.page-manage-menu-dropdown .task-title{max-width:600px;display:flex;align-items:center}.page-manage-menu-dropdown .task-title>span{flex-shrink:0;font-size:12px;height:18px;min-width:20px;line-height:16px;padding:0 2px;border-radius:3px;color:#84c56a;border:1px solid #84C56A;margin-right:6px}.page-manage-menu-dropdown .task-title>span.start{background-color:#ff70701a;border-color:#ff70701a;color:#ff7070}.page-manage-menu-dropdown .task-title>span.progress{background-color:#fc984b1a;border-color:#fc984b1a;color:#fc984b}.page-manage-menu-dropdown .task-title>span.test{background-color:#2f99ec1a;border-color:#2f99ec1a;color:#2f99ec}.page-manage-menu-dropdown .task-title>span.end{background-color:#0bc0371a;border-color:#0bc0371a;color:#0bc037}.page-manage-menu-dropdown .task-title .task-title-text{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.page-manage-add-task-button-group{margin-left:8px!important}.page-manage-add-task-button-group .ivu-dropdown .ivu-btn{min-width:auto!important;padding:0 4px;border-radius:0 4px 4px 0}@media (max-height: 640px){.page-manage .manage-box-menu>ul{overflow:auto}.page-manage .manage-box-menu>ul.scrollbar-overlay{overflow-y:overlay}.page-manage .manage-box-menu>ul>li.menu-project>ul{overflow:visible}.page-manage .manage-box-menu .manage-project-search{margin-top:12px}}@media (max-width: 768px){.page-manage.show-tabbar .manage-box-main{margin-bottom:60px}.page-manage .manage-box-menu{position:fixed;z-index:49;left:0;top:0;bottom:0;width:100%;transform:translate(-120%)}.page-manage .manage-box-menu.show768-menu{transform:translate(0)}}.page-messenger{display:flex}.page-messenger .messenger-wrapper{flex:1;display:flex;align-items:flex-start;overflow:hidden}.page-messenger .messenger-wrapper .messenger-select{position:relative;height:100%;width:30%;min-width:240px;max-width:320px;flex-shrink:0;display:flex;flex-direction:column}.page-messenger .messenger-wrapper .messenger-select:after{content:"";position:absolute;top:0;right:0;height:100%;width:1px;background-color:#f4f5f5}.page-messenger .messenger-wrapper .messenger-select .messenger-search{display:flex;align-items:center;justify-content:center;height:54px;padding:0 12px;flex-shrink:0}.page-messenger .messenger-wrapper .messenger-select .messenger-search .search-wrapper{flex:1;background-color:#f7f7f7;padding:0 8px;margin:0 4px;border-radius:12px;overflow:hidden}.page-messenger .messenger-wrapper .messenger-select .messenger-search .search-wrapper .search-pre{width:100%;height:100%;display:flex;align-items:center;justify-content:center}.page-messenger .messenger-wrapper .messenger-select .messenger-search .search-wrapper .search-pre .common-loading{width:14px;height:14px;margin:0}.page-messenger .messenger-wrapper .messenger-select .messenger-search .search-wrapper .ivu-input{border-color:transparent;background-color:transparent}.page-messenger .messenger-wrapper .messenger-select .messenger-search .search-wrapper .ivu-input:hover,.page-messenger .messenger-wrapper .messenger-select .messenger-search .search-wrapper .ivu-input:focus{box-shadow:none}.page-messenger .messenger-wrapper .messenger-select .messenger-nav{display:flex;align-items:center;justify-content:space-evenly;padding:2px 0 12px}.page-messenger .messenger-wrapper .messenger-select .messenger-nav>div{max-width:25%;position:relative;line-height:1;padding:0 6px;color:#888;cursor:pointer}.page-messenger .messenger-wrapper .messenger-select .messenger-nav>div .nav-num{position:absolute;top:-12px;right:-8px;transform:scale(.7)}.page-messenger .messenger-wrapper .messenger-select .messenger-nav>div .nav-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.page-messenger .messenger-wrapper .messenger-select .messenger-nav>div.active{color:#555;font-weight:500}.page-messenger .messenger-wrapper .messenger-select .messenger-nav>div:hover{color:#777}.page-messenger .messenger-wrapper .messenger-select .messenger-notify-permission{position:sticky;display:flex;align-items:center;padding:6px 12px;justify-content:space-between;background-color:#fef7ee;border:1px solid #FAE0B5;margin:8px 12px;border-radius:6px}.page-messenger .messenger-wrapper .messenger-select .messenger-list{flex:1;height:0;width:100%;overflow-x:hidden}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li{display:flex;flex-direction:row;align-items:flex-start;padding:16px 12px;position:relative;cursor:pointer;list-style:none}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li .user-avatar,.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li .icon-avatar{width:42px;height:42px;margin:2px;flex-grow:0;flex-shrink:0}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li .icon-avatar{display:flex;align-items:center;justify-content:center;border-radius:50%;font-size:26px;background-color:#61b2f9;color:#fff}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li .icon-avatar.department{background-color:#5bc7b0}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li .icon-avatar.project{background-color:#6e99eb}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li .icon-avatar.task{background-color:#9b96df;font-size:24px}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li .dialog-box{flex:1;width:0;display:flex;flex-direction:column;padding-left:12px}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li .dialog-box .dialog-title{display:flex;flex-direction:row;align-items:center;justify-content:space-between;line-height:24px}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li .dialog-box .dialog-title .todo,.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li .dialog-box .dialog-title .mention,.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li .dialog-box .dialog-title .bot{color:red;background-color:transparent;font-weight:600;flex-shrink:0;margin-right:4px;padding:0;height:auto;width:auto;-webkit-user-select:none;-moz-user-select:none;user-select:none}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li .dialog-box .dialog-title .bot{color:#84c56a;font-size:16px;font-weight:400}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li .dialog-box .dialog-title .ivu-tag{margin:0 4px 0 0;padding:0 5px}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li .dialog-box .dialog-title .ivu-tag.ivu-tag-success{padding:0 6px}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li .dialog-box .dialog-title>span{flex:1;color:#303133;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li .dialog-box .dialog-title>i{flex-shrink:0;margin-left:8px;transform:scale(.9);font-size:12px;color:#84c56a}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li .dialog-box .dialog-title>i.completed{font-size:18px;margin:0 4px 0 0;transform:scale(1)}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li .dialog-box .dialog-title>em{flex-shrink:0;margin-left:8px;font-style:normal;color:#909399;font-size:12px}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li .dialog-box .dialog-text{color:#909399;font-size:12px;min-height:24px;line-height:24px;display:flex;align-items:center;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li .dialog-box .dialog-text .common-avatar,.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li .dialog-box .dialog-text .last-self{flex-shrink:0;padding-right:4px;margin-right:4px;position:relative}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li .dialog-box .dialog-text .common-avatar:after,.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li .dialog-box .dialog-text .last-self:after{content:":";position:absolute;top:50%;transform:translateY(-50%);right:0}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li .dialog-box .dialog-text .last-text{flex:1;display:flex;align-items:center}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li .dialog-box .dialog-text .last-text>em{flex-shrink:0;background-color:#90939940;height:20px;width:26px;line-height:20px;text-align:center;border-radius:10px;font-size:14px;font-style:normal;margin-right:4px}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li .dialog-box .dialog-text .last-text>span{flex:1;width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li .dialog-box .dialog-text .last-silence{font-size:15px;padding-left:4px;color:#90939980}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li .dialog-num{position:absolute;top:10px;left:58px;transform:scale(.8) translate(-100%)}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li .dialog-line{display:none;position:absolute;bottom:0;right:0;left:68px;height:1px;background-color:#f2f2f2;transform:scaleY(.5)}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li:before{display:none;position:absolute;content:"";top:0;left:0;right:0;bottom:0;z-index:1;border:2px solid #84C56A;pointer-events:none}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li.top{background-color:#f4f5f7}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li.active{background-color:#eeeff1}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li.operate:before{display:block}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li.completed:after{content:"\f373";font-family:Ionicons,serif;pointer-events:none;position:absolute;bottom:0;right:12px;font-size:28px;color:#19be6b;opacity:.2;z-index:1}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li.completed .dialog-box .dialog-text{padding-right:36px}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li.nothing,.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li.loading{justify-content:center;padding:24px;margin:0;border:0;line-height:22px;cursor:default;word-break:break-all}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li.loading{display:flex;align-items:flex-start;justify-content:center}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li.loading .common-loading{width:20px;height:20px;margin:1px}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.contacts>li{list-style:none;margin-left:24px;position:relative}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.contacts>li .label{padding-left:4px;margin-top:6px;margin-bottom:6px;height:34px;line-height:34px;position:relative}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.contacts>li .label:after{content:"";position:absolute;bottom:0;right:0;left:0;height:1px;background-color:#f2f2f2;transform:scaleY(.5)}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.contacts>li.nothing,.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.contacts>li.loading{text-align:center;height:100%;margin:0;padding:24px;border-radius:0;line-height:22px}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.contacts>li.loading{display:flex;align-items:flex-start;justify-content:center}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.contacts>li.loading .common-loading{width:20px;height:20px;margin:1px}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.contacts>li.loaded{margin:0;height:52px;display:flex;align-items:center;justify-content:center}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.contacts>li>ul>li{list-style:none;display:flex;flex-direction:row;align-items:center;height:52px;cursor:pointer}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.contacts>li>ul>li .avatar{flex-grow:0;flex-shrink:0;width:30px;height:30px}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.contacts>li>ul>li .nickname{flex:1;width:0;padding-left:12px;font-size:14px;display:flex;align-items:center;justify-content:space-between;flex-flow:row wrap;align-content:flex-start}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.contacts>li>ul>li .nickname>em{padding-right:12px;font-style:normal;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.contacts>li>ul>li .nickname .tags{padding-right:12px;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#909399}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.contacts>li>ul>li .loading{margin-right:12px;width:16px;height:16px;display:flex;align-items:center;justify-content:center}.page-messenger .messenger-wrapper .messenger-select .messenger-list .operate-position{position:absolute;top:0;left:0;width:1px;opacity:0;visibility:hidden;pointer-events:none}.page-messenger .messenger-wrapper .messenger-select .messenger-menu{display:flex;align-items:center;justify-content:center;height:52px;flex-shrink:0;border-top:1px solid #f4f5f5}.page-messenger .messenger-wrapper .messenger-select .messenger-menu .menu-icon{height:100%;display:flex;align-items:center;position:relative}.page-messenger .messenger-wrapper .messenger-select .messenger-menu .menu-icon .menu-num{position:absolute;top:4px;left:50%;margin-left:3px;transform:scale(.8)}.page-messenger .messenger-wrapper .messenger-select .messenger-menu .menu-icon>i{cursor:pointer;font-size:24px;margin:0 24px;color:#aaa;opacity:.9}.page-messenger .messenger-wrapper .messenger-select .messenger-menu .menu-icon>i.active{opacity:1;color:#84c56a}.page-messenger .messenger-wrapper .messenger-select .messenger-menu .menu-icon>i:hover{opacity:1}.page-messenger .messenger-wrapper .messenger-msg{flex:1;width:0;height:100%;display:flex;position:relative}.page-messenger .messenger-wrapper .messenger-msg .msg-dialog-bg{position:absolute;top:0;left:0;right:0;bottom:0;z-index:0;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center}.page-messenger .messenger-wrapper .messenger-msg .msg-dialog-bg .msg-dialog-bg-icon{background-color:#f4f5f7;padding:20px;border-radius:50%}.page-messenger .messenger-wrapper .messenger-msg .msg-dialog-bg .msg-dialog-bg-icon .ivu-icon{color:#d1d8dd;font-size:46px}.page-messenger .messenger-wrapper .messenger-msg .msg-dialog-bg .msg-dialog-bg-text{margin-top:16px;color:#bec6cc;background-color:#f4f5f7;padding:4px 15px;border-radius:14px}@media (max-width: 768px){.page-messenger .messenger-wrapper .messenger-select{position:fixed;top:0;left:0;width:100%;height:100%;max-width:none;background-color:#fff;z-index:48}.page-messenger .messenger-wrapper .messenger-select:after{display:none}.page-messenger .messenger-wrapper .messenger-select .messenger-search{background-color:#f8f8f8}.page-messenger .messenger-wrapper .messenger-select .messenger-search .search-wrapper{background-color:#fff}.page-messenger .messenger-wrapper .messenger-select .messenger-nav{background-color:#f8f8f8}.page-messenger .messenger-wrapper .messenger-select .messenger-menu{border-top:0;height:60px;opacity:0}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul{-webkit-user-select:none;-moz-user-select:none;user-select:none}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li .user-avatar .common-avatar:after{content:"";position:absolute;top:0;left:0;right:0;bottom:0;z-index:1}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li .dialog-line{display:block}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li:last-child .dialog-line{display:none}.page-messenger .messenger-wrapper .messenger-msg{display:none}}.page-project{flex:1;display:flex;align-items:flex-start}.page-project .project-panel{flex:1;width:0;height:100%;background-color:#fafafa}.page-project .project-dialog{position:relative;height:100%;width:35%;min-width:320px;max-width:520px;flex-shrink:0}@media (max-height: 700px){.page-project .project-panel{height:auto;min-height:100%}.page-project .project-panel.gantt{height:100%}}.page-setting{display:flex;flex-direction:column}.page-setting .setting-head{display:flex;align-items:center;margin:32px 32px 16px;border-bottom:1px solid #F4F4F5}.page-setting .setting-head .setting-titbox{flex:1;margin-bottom:16px}.page-setting .setting-head .setting-titbox .setting-title{display:flex;align-items:center}.page-setting .setting-head .setting-titbox .setting-title>h1{flex:1;width:0;color:#303133;font-size:28px;font-weight:600;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.page-setting .setting-head .setting-titbox .setting-title .setting-more{display:none}.page-setting .setting-box{flex:1;height:0;display:flex;padding-bottom:16px}.page-setting .setting-box .setting-menu{width:200px;flex-shrink:0;border-right:1px solid #F4F4F5;overflow:auto}.page-setting .setting-box .setting-menu>ul{padding:12px 0 0 32px}.page-setting .setting-box .setting-menu>ul>li{cursor:pointer;color:#6b6e72;list-style:none;line-height:42px;padding:0 20px;margin:5px 0;position:relative;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.page-setting .setting-box .setting-menu>ul>li.flex{display:flex;align-items:center}.page-setting .setting-box .setting-menu>ul>li .ivu-badge{transform:scale(.8);transform-origin:right center}.page-setting .setting-box .setting-menu>ul>li.active,.page-setting .setting-box .setting-menu>ul>li:hover{background-color:#f4f5f7}.page-setting .setting-box .setting-menu>ul>li.divided{position:relative;margin-top:10px;padding-top:10px}.page-setting .setting-box .setting-menu>ul>li.divided:before{content:"";position:absolute;top:0;left:0;right:0;z-index:1;height:1px;background-color:#f4f4f5}.page-setting .setting-box .setting-menu>ul>li.divided:after{content:"";position:absolute;top:1px;left:0;right:0;z-index:2;height:9px;background-color:#fff}.page-setting .setting-box .setting-content{flex:1;overflow:hidden;position:relative;display:flex;flex-direction:column}.page-setting .setting-box .setting-content .setting-content-title{font-size:20px;font-weight:500;padding:12px 32px}.page-setting .setting-box .setting-content .setting-content-view{flex:1;position:relative}.page-setting .setting-box .setting-content .setting-content-view .setting-router-view{padding:24px 40px}.page-setting .setting-item .ivu-input,.page-setting .setting-item .ivu-select-default{max-width:460px}.page-setting .setting-item .ivu-form{overflow:auto}.page-setting .setting-item .setting-color,.page-setting .setting-item .setting-template{min-width:400px;max-width:600px;margin-bottom:12px}.page-setting .setting-item .setting-color>div,.page-setting .setting-item .setting-template>div{text-align:center;padding-right:12px}.page-setting .setting-item .setting-color>div:first-child,.page-setting .setting-item .setting-template>div:first-child{text-align:left}.page-setting .setting-item .setting-color>div:last-child,.page-setting .setting-item .setting-template>div:last-child{padding-right:0;width:60px;flex:auto;flex-shrink:0}.page-setting .setting-item .setting-color>div .ivu-color-picker,.page-setting .setting-item .setting-template>div .ivu-color-picker{width:100%}.page-setting .setting-item .setting-color .information,.page-setting .setting-item .setting-template .information{color:#909399}.page-setting .setting-item .setting-color.color-label-box .el-tooltip{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.page-setting .setting-item .setting-template>div{flex-shrink:0;text-align:left}.page-setting .setting-item .setting-template>div:last-child{flex:1;width:auto;max-width:none}.page-setting .setting-item .setting-footer>button{height:34px;line-height:32px;min-width:94px}.page-setting .setting-item .setting-footer>button>span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.page-setting .setting-item .setting-auto-day{display:block;width:110px;margin-top:12px;line-height:32px;margin-bottom:-10px}.page-setting .setting-item .setting-checkin-load{margin-bottom:12px}.page-setting .setting-item .setting-checkin-load .common-loading{width:20px;height:20px}.page-setting .setting-item .setting-checkin-lately>li{padding-bottom:8px}.page-setting .setting-item .setting-checkin-lately>li .time{font-weight:700}.page-setting .setting-item .setting-checkin-lately>li .content{font-size:13px;opacity:.7}.page-setting .setting-item .setting-checkin-row{overflow:auto}.page-setting .setting-item .setting-checkin-button{padding-bottom:4px;cursor:pointer;color:#2b85e4}.page-setting .setting-item .setting-checkin-button:hover{text-decoration:underline}.page-setting .setting-item.submit{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;flex-direction:column;padding:0!important}.page-setting .setting-item.submit .ivu-form{flex:1;padding:24px 40px;overflow:auto}.page-setting .setting-item.submit .ivu-tabs{flex:1;padding:16px 32px 0;display:flex;flex-direction:column}.page-setting .setting-item.submit .ivu-tabs .ivu-tabs-content{flex:1;height:0}.page-setting .setting-item.submit .ivu-tabs .ivu-tabs-content .ivu-tabs-tabpane{position:relative}.page-setting .setting-item.submit .ivu-tabs .ivu-tabs-content .ivu-tabs-tabpane .setting-component-item{position:absolute;top:0;left:0;right:0;bottom:0;flex:1;display:flex;flex-direction:column}.page-setting .setting-item.submit .ivu-tabs .ivu-tabs-content .ivu-tabs-tabpane .setting-component-item .ivu-form{padding:8px 12px}.page-setting .setting-item.submit .ivu-tabs .ivu-tabs-content .ivu-tabs-tabpane .setting-component-item .setting-footer{margin:0 -32px}.page-setting .setting-item.submit .ivu-tabs .ivu-tabs-content .ivu-tabs-tabpane .setting-component-item .block-setting-box{position:relative;padding:44px 24px 4px;margin:24px 0 12px;border-radius:8px;border:1px solid #eeeeee;transition:box-shadow .3s}.page-setting .setting-item.submit .ivu-tabs .ivu-tabs-content .ivu-tabs-tabpane .setting-component-item .block-setting-box:hover{box-shadow:0 0 10px #e6ecfa}.page-setting .setting-item.submit .ivu-tabs .ivu-tabs-content .ivu-tabs-tabpane .setting-component-item .block-setting-box h3{position:absolute;top:0;left:24px;padding:4px 10px;border-radius:4px;display:inline-block;background-color:#fff;border:1px solid #eeeeee;font-size:15px;font-weight:500;transform:translateY(-50%)}.page-setting .setting-item.submit .ivu-tabs .ivu-tabs-content .ivu-tabs-tabpane .setting-component-item .block-setting-box .ivu-form-item .ivu-form{padding:12px 0 0}.page-setting .setting-item.submit .ivu-tabs .ivu-tabs-content .ivu-tabs-tabpane .setting-component-item .block-setting-box .ivu-form-item .ivu-form .ivu-form-item{margin-bottom:8px}.page-setting .setting-item.submit .ivu-tabs .ivu-tabs-content .ivu-tabs-tabpane .setting-component-item .block-setting-box .ivu-form-item .ivu-form .ivu-form-item .ivu-form-item-content{display:flex;align-items:center}.page-setting .setting-item.submit .ivu-tabs .ivu-tabs-content .ivu-tabs-tabpane .setting-component-item .block-setting-placeholder{height:8px}.page-setting .setting-item.submit .ivu-tabs .ivu-tabs-content .ivu-tabs-tabpane .setting-component-item .export-data{margin-top:6px}.page-setting .setting-item.submit .ivu-tabs .ivu-tabs-content .ivu-tabs-tabpane .setting-component-item .export-data>p{cursor:pointer;color:#2b85e4}.page-setting .setting-item.submit .ivu-tabs .ivu-tabs-content .ivu-tabs-tabpane .setting-component-item .export-data>p:hover{text-decoration:underline}.page-setting .setting-item.submit .setting-footer{flex-shrink:0;position:static;padding:16px 24px 0;border-top:1px solid #F4F4F5}.page-setting .setting-item.submit .setting-input,.page-setting .setting-item.submit .setting-send-input{max-width:460px}.page-setting .setting-item.submit .setting-send-input .ivu-input-group-append{background-color:#ededed!important;border:1px solid #EDEDED!important;color:#999!important}.page-setting .setting-item.submit .setting-send-input .ivu-input-group-append:before{background:#EDEDED}.page-setting .setting-item.submit .setting-button{margin-left:8px}.page-setting-delete-box .big-text{font-size:16px;font-weight:500;color:red}.page-setting-delete-box .small-text{margin-top:15px}.page-setting-delete-box .small-text>div{margin:10px 0}.page-setting-delete-box .button-box{text-align:center}@media (max-width: 768px){.page-setting .setting-head{margin:32px 32px 0}.page-setting .setting-head .setting-titbox .setting-title .setting-more{display:flex;font-size:24px;width:42px;height:42px;align-items:center;justify-content:center}.page-setting .setting-box{position:relative}.page-setting .setting-box.show768-box .setting-menu{transform:translate(0)}.page-setting .setting-box .setting-menu{position:absolute;top:0;left:0;width:100%;height:100%;z-index:9;background-color:#fff;transform:translate(-120%)}.page-setting .setting-box .setting-menu>ul{padding:12px 32px}.page-setting .setting-box .setting-menu>ul>li{padding:0 8px}.page-setting .setting-box .setting-menu>ul>li:hover{background-color:transparent}.page-setting .setting-box .setting-content .setting-content-title{display:none}.page-setting .setting-item .setting-footer{display:flex;align-items:center;justify-content:center}.page-setting .setting-item .setting-footer>button{flex:1;height:38px;line-height:36px}}.page-index{position:absolute;top:0;left:0;width:100%;height:100%;overflow:auto}.page-index .page-warp{max-width:1920px;margin:0 auto}.page-index .page-warp .page-header{width:100%;background:#84C56A;position:relative;padding-bottom:40px}.page-index .page-warp .page-header .header-nav{max-width:1200px;height:72px;margin:auto;display:flex;justify-content:space-between}.page-index .page-warp .page-header .header-nav .header-nav-box{display:flex;align-items:center;padding-left:20px;color:#fff;font-weight:400;position:relative}.page-index .page-warp .page-header .header-nav .header-nav-box .logo{width:143px;height:36px;background:url(/js/build/logo-index.8ca3b7a6.svg) no-repeat center center;background-size:contain}.page-index .page-warp .page-header .header-nav .header-nav-box .header-right-pro{margin-left:28px;padding:0 10px;font-size:12px;color:#f6ca9d;background:#1d1e23;background:linear-gradient(90deg,#1d1e23,#3f4045);border:0}.page-index .page-warp .page-header .header-nav .header-nav-box .header-right-github{margin-left:28px;font-size:24px;display:flex;align-items:center;cursor:pointer;color:#fff}.page-index .page-warp .page-header .header-nav .header-nav-box .header-right-uplog{margin-left:28px;font-size:16px;cursor:pointer}.page-index .page-warp .page-header .header-nav .header-nav-box .header-right-1{margin-left:28px;display:flex}.page-index .page-warp .page-header .header-nav .header-nav-box .header-right-1 .header-right-1-dropdown{color:#fff;font-size:16px}.page-index .page-warp .page-header .header-nav .header-nav-box .header-right-2{font-size:16px;margin-left:28px;cursor:pointer}.page-index .page-warp .page-header .header-nav .header-nav-box .header-right-2 .header-right-2-dropdown{color:#fff;font-size:16px}.page-index .page-warp .page-header .header-nav .header-nav-box .header-right-3{font-size:16px;margin:0 28px;cursor:pointer}.page-index .page-warp .page-header .header-nav .header-nav-box .header-right-4{font-size:16px;min-width:100px;height:36px;background:#ffa25a;border-radius:4px;text-align:center;line-height:36px;cursor:pointer;padding:0 10px}.page-index .page-warp .page-header .header-nav .header-nav-box .header-right-5{margin-left:28px}.page-index .page-warp .page-header .header-nav .header-nav-boxs{justify-content:flex-end;padding-right:20px}.page-index .page-warp .page-header .header-nav .header-nav-boxs .header-nav-more{color:#fff;font-size:36px}.page-index .page-warp .page-header .header-nav .header-nav-boxs .header-nav-dropdown-item{display:flex;align-items:center;justify-content:space-between}.page-index .page-warp .page-header .header-content{max-width:1200px;margin:0 auto}.page-index .page-warp .page-header .header-content .header-title{font-size:44px;font-weight:500;color:#fff;line-height:67px;text-align:center}.page-index .page-warp .page-header .header-content .header-title-one{font-size:48px;margin-top:40px}.page-index .page-warp .page-header .header-content .header-tips{font-size:22px;font-weight:400;color:#fff;line-height:36px;text-align:center;padding:0 30px;margin:22px auto 0;max-width:88%}.page-index .page-warp .page-header .header-content .login-buttom{width:150px;height:48px;background:#ffa25a;border-radius:8px;font-size:18px;font-weight:500;color:#fff;line-height:48px;text-align:center;margin:34px auto 0;cursor:pointer}.page-index .page-warp .page-header-bottom{position:relative;background:#FFFFFF url(/js/build/bg-bottom.06fd4b4e.svg) no-repeat;background-size:100%;margin-bottom:160px;margin-top:-2px}.page-index .page-warp .page-header-bottom .page-header-bottoms{max-width:1200px;margin:auto;top:0;left:0;right:0}.page-index .page-warp .page-header-bottom .page-header-bottoms img{display:block;margin:auto;width:92%}.page-index .page-warp .page-main{max-width:1200px;margin:auto}.page-index .page-warp .page-main .page-main-row{margin-bottom:150px}.page-index .page-warp .page-main .page-main-rows{margin-bottom:140px}.page-index .page-warp .page-main .page-main-img img{width:100%}.page-index .page-warp .page-main .page-main-imgs img{display:block;width:90%;margin:auto}.page-index .page-warp .page-main .page-main-text{padding-left:60px;padding-top:120px}.page-index .page-warp .page-main .page-main-text h3{font-size:32px;font-weight:500;color:#303133;line-height:45px;margin-bottom:17px}.page-index .page-warp .page-main .page-main-text p{font-size:18px;font-weight:400;color:#828282;line-height:28px;padding-right:70px}.page-index .page-warp .page-main .page-main-texts{padding-top:40px}.page-index .page-warp .page-main .page-main-texts h3{display:flex;align-items:center;font-size:30px}.page-index .page-warp .page-main .page-main-texts h3 img{margin-right:10px}.page-index .page-warp .page-main .page-main-texts p{font-size:16px}.page-index .page-warp .page-footer .footer-service{width:100%;height:188px;background-color:#ffa25a;position:relative}.page-index .page-warp .page-footer .footer-service .footer-bg-box{overflow:hidden;width:100%;height:188px}.page-index .page-warp .page-footer .footer-service .footer-bg-box .box-title{height:45px;font-size:16px;font-weight:500;color:#fff;line-height:45px;text-align:center;margin:33px 0 22px}.page-index .page-warp .page-footer .footer-service .footer-bg-box .buttom-box{display:flex;justify-content:center}.page-index .page-warp .page-footer .footer-service .footer-bg-box .buttom-box .login-btn{width:150px;height:48px;background:#ffffff;border-radius:8px;font-size:14px;font-weight:500;color:#ffa25a;line-height:48px;text-align:center;margin-right:20px;cursor:pointer}.page-index .page-warp .page-footer .footer-service .footer-bg-box .buttom-box .reg-btn{width:150px;height:48px;border-radius:8px;border:1px solid #ffffff;font-size:14px;font-weight:500;color:#fff;line-height:48px;text-align:center;cursor:pointer}.page-index .page-warp .page-footer .footer-copyright{background:#fff;color:#828282;font-size:12px;font-weight:400;padding:20px;line-height:20px;text-align:center;width:100%}@media screen and (max-width: 1440px){.page-index .page-warp .page-header .header-content .header-title{font-size:34px;line-height:60px}.page-index .page-warp .page-header .header-content .header-title-one{font-size:40px}.page-index .page-warp .page-header .header-content .header-tips{font-size:20px;padding:0 20px}.page-index .page-warp .page-header-bottom{margin-bottom:80px}.page-index .page-warp .page-main .page-main-text{padding-left:20px;padding-top:80px}.page-index .page-warp .page-main .page-main-text p{padding-right:20px}.page-index .page-warp .page-main .page-main-texts h3{font-size:24px}.page-index .page-warp .page-main .page-main-texts h3 img{width:24px}.page-index .page-warp .page-main .page-main-texts p{font-size:14px}}@media screen and (max-width: 468px){.page-index .page-warp .page-header .header-content .header-title{font-size:24px;line-height:38px}.page-index .page-warp .page-header .header-content .header-title-one{font-size:28px}.page-index .page-warp .page-header .header-content .header-tips{font-size:16px;line-height:26px}}.chat-input-box{display:inline-block;width:100%}.chat-input-box.record-ready .chat-input-wrapper .chat-toolbar>li.chat-send:before{transition:all .6s ease;transform:translate(-50%,-50%) scale(2)}.chat-input-box.record-progress .chat-input-wrapper .ql-container{opacity:0}.chat-input-box.record-progress .chat-input-wrapper .chat-toolbar>li.chat-send:before{transition:all .3s ease;transform:translate(-50%,-50%) scale(2.5)}.chat-input-box.record-progress .chat-input-wrapper .chat-toolbar>li.chat-record-recwave{visibility:visible;opacity:1}.chat-input-box.show-more .chat-input-wrapper .chat-cover,.chat-input-box.show-emoji .chat-input-wrapper .chat-cover{display:block}.chat-input-box .chat-input-quick-emoji{position:absolute;top:4px;right:24px;width:0;height:0;visibility:hidden;z-index:-1}.chat-input-box .chat-input-wrapper{position:relative;display:inline-block;vertical-align:middle;width:100%}.chat-input-box .chat-input-wrapper .chat-reply{position:relative;padding:0 48px 8px 24px}.chat-input-box .chat-input-wrapper .chat-reply:after{content:"";position:absolute;top:0;left:12px;bottom:8px;width:3px;border-radius:2px;transform:scaleX(.8);transform-origin:left center;background-color:#84c56ab3}.chat-input-box .chat-input-wrapper .chat-reply .common-avatar{font-weight:500;font-size:13px;color:#84c56a}.chat-input-box .chat-input-wrapper .chat-reply .reply-desc{font-size:13px;word-break:break-all;text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.chat-input-box .chat-input-wrapper .chat-reply i.taskfont{position:absolute;right:0;top:0;bottom:8px;z-index:1;font-size:16px;width:48px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:transform .3s ease}.chat-input-box .chat-input-wrapper .chat-reply i.taskfont:hover{transform:rotate(-90deg);color:#303133}.chat-input-box .chat-input-wrapper .ql-container{display:block;float:left;width:auto;max-width:100%;min-width:calc(100% - 170px);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"}.chat-input-box .chat-input-wrapper .ql-container .ql-editor{font-size:14px;max-height:200px;padding:0;margin:4px 7px;line-height:22px}.chat-input-box .chat-input-wrapper .ql-container .ql-editor img{max-width:150px;max-height:150px}.chat-input-box .chat-input-wrapper .ql-container .ql-editor ol,.chat-input-box .chat-input-wrapper .ql-container .ql-editor ul{padding-left:0}.chat-input-box .chat-input-wrapper .ql-container .ql-editor ol li:before,.chat-input-box .chat-input-wrapper .ql-container .ql-editor ul li:before{color:#08f;text-align:left;margin-right:.2em}.chat-input-box .chat-input-wrapper .ql-container .ql-editor ul li:before{font-weight:900}.chat-input-box .chat-input-wrapper .ql-container .ql-editor ol li:before{width:auto;min-width:1.2em}.chat-input-box .chat-input-wrapper .ql-container .ql-editor a:before,.chat-input-box .chat-input-wrapper .ql-container .ql-editor a:after{display:none}.chat-input-box .chat-input-wrapper .ql-container .ql-editor.ql-blank:before{left:7px;right:7px;color:#ccc;font-style:normal;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.chat-input-box .chat-input-wrapper .ql-container .ql-editor .mention{-webkit-user-select:auto}.chat-input-box .chat-input-wrapper .ql-bubble .ql-tooltip{z-index:1}.chat-input-box .chat-input-wrapper .chat-toolbar{float:right;display:flex;align-items:center;justify-content:flex-end;-webkit-user-select:none;-moz-user-select:none;user-select:none}.chat-input-box .chat-input-wrapper .chat-toolbar>li{width:30px;height:30px;display:flex;align-items:center;justify-content:center;cursor:pointer}.chat-input-box .chat-input-wrapper .chat-toolbar>li .taskfont{display:inline-block;font-size:20px;line-height:30px}.chat-input-box .chat-input-wrapper .chat-toolbar>li .taskfont.disabled{opacity:.5}.chat-input-box .chat-input-wrapper .chat-toolbar>li.chat-send{width:48px;position:relative}.chat-input-box .chat-input-wrapper .chat-toolbar>li.chat-send:before{content:"";position:absolute;top:50%;left:50%;z-index:2;transform:translate(-50%,-50%) scale(1);border-radius:50%;background-color:#84c56a;width:36px;height:36px;transition:all .3s ease;opacity:1}.chat-input-box .chat-input-wrapper .chat-toolbar>li.chat-send .el-tooltip{height:30px}.chat-input-box .chat-input-wrapper .chat-toolbar>li.chat-send .taskfont{position:absolute;top:50%;left:50%;z-index:3;transform:translate(-50%,-50%) scale(1);transition:all .3s ease;color:#fff}.chat-input-box .chat-input-wrapper .chat-toolbar>li.chat-send .chat-load{position:absolute;top:50%;left:50%;z-index:3;transform:translate(-50%,-50%) scale(1);display:flex;align-items:center;justify-content:center}.chat-input-box .chat-input-wrapper .chat-toolbar>li.chat-send .chat-load .common-loading{width:20px;height:20px}.chat-input-box .chat-input-wrapper .chat-toolbar>li.chat-record-recwave{position:absolute;top:0;left:0;z-index:1;height:100%;width:100%;background-color:#fff;flex-direction:column;align-items:center;justify-content:center;pointer-events:none;visibility:hidden;opacity:0}.chat-input-box .chat-input-wrapper .chat-toolbar>li.chat-record-recwave>div{flex:1;width:100%;display:flex;flex-direction:column;justify-content:flex-end}.chat-input-box .chat-input-wrapper .chat-cover{display:none;position:absolute;top:0;left:0;right:48px;bottom:0;z-index:4}.chat-input-box .chat-emoji-wrapper .chat-emoji-box>ul{width:auto;padding:8px 2px}.chat-input-box .chat-emoji-wrapper .chat-emoji-box>ul:after{content:"";flex:auto}.chat-input-box .chat-emoji-wrapper .chat-emoji-box>ul>li>img{transition:none}.chat-input-box .chat-emoji-wrapper .chat-emoji-box>ul>li:hover>img{transform:none}.chat-input-box .chat-emoji-wrapper .chat-emoji-menu{width:100%;padding:3px 0;border-radius:8px;box-sizing:content-box}.chat-input-box .chat-emoji-wrapper .chat-emoji-menu>li{position:relative}.chat-input-box .chat-emoji-wrapper .chat-emoji-menu>li:before{display:none;content:"";position:absolute;top:50%;left:50%;width:36px;height:36px;border-radius:8px;transform:translate(-50%,-50%);background-color:#fff;z-index:1}.chat-input-box .chat-emoji-wrapper .chat-emoji-menu>li>span,.chat-input-box .chat-emoji-wrapper .chat-emoji-menu>li>img,.chat-input-box .chat-emoji-wrapper .chat-emoji-menu>li>i{position:static;z-index:2}.chat-input-box .chat-emoji-wrapper .chat-emoji-menu>li.active{background-color:transparent}.chat-input-box .chat-emoji-wrapper .chat-emoji-menu>li.active:before{display:block}.chat-emoji-wrapper{display:flex;flex-direction:column}.chat-emoji-wrapper .chat-emoji-emosearch{flex-shrink:0;padding:8px 8px 0}.chat-emoji-wrapper .chat-emoji-box{display:flex;flex-direction:column;height:280px}.chat-emoji-wrapper .chat-emoji-box>ul{flex:1;width:360px;height:0;display:grid;justify-content:space-between;grid-template-columns:repeat(auto-fill,40px);padding:8px;flex-wrap:wrap;overflow-x:hidden;word-break:break-all;box-sizing:content-box;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"}.chat-emoji-wrapper .chat-emoji-box>ul>li{width:40px;height:40px;line-height:40px;font-size:22px;text-align:center;display:inline-block;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.chat-emoji-wrapper .chat-emoji-box>ul>li>img{max-width:100%;max-height:100%;pointer-events:none;-webkit-touch-callout:none;transition:transform .3s}.chat-emoji-wrapper .chat-emoji-box>ul>li:hover>img{transform:scale(1.4)}.chat-emoji-wrapper .chat-emoji-box>ul.emoji>li:active{background-color:#eee;border-radius:8px}.chat-emoji-wrapper .chat-emoji-box>ul.emosearch,.chat-emoji-wrapper .chat-emoji-box>ul.emoticon{grid-template-columns:repeat(auto-fill,72px)}.chat-emoji-wrapper .chat-emoji-box>ul.emosearch>li,.chat-emoji-wrapper .chat-emoji-box>ul.emoticon>li{width:72px;height:72px;padding:8px}.chat-emoji-wrapper .chat-emoji-menu{width:376px;height:40px;line-height:40px;background-color:#f2f4f7;display:flex;align-items:center;overflow:auto}.chat-emoji-wrapper .chat-emoji-menu::-webkit-scrollbar{display:none}.chat-emoji-wrapper .chat-emoji-menu>li{list-style:none;cursor:pointer;display:flex;align-items:center;height:100%}.chat-emoji-wrapper .chat-emoji-menu>li.active{background-color:#fff}.chat-emoji-wrapper .chat-emoji-menu>li>span{padding:0 13px;font-size:22px}.chat-emoji-wrapper .chat-emoji-menu>li>i{width:48px;font-size:18px;text-align:center}.chat-emoji-wrapper .chat-emoji-menu>li>img{width:24px;height:24px;padding:0 12px;box-sizing:content-box}.chat-input-emoji-popover{padding:0;overflow:hidden}.chat-quick-emoji-popover{padding:0;overflow:hidden;min-width:100px}.chat-quick-emoji-wrapper{display:flex}.chat-quick-emoji-wrapper>li{width:90px;height:90px;display:flex;align-items:center;justify-content:center;cursor:pointer}.chat-quick-emoji-wrapper>li>img{width:72%;height:72%}.chat-input-more-popover{min-width:100px;padding:8px}.chat-input-more-popover .chat-input-popover-item{display:flex;align-items:center;font-size:14px;cursor:pointer;line-height:36px;padding:0 8px;border-radius:4px}.chat-input-more-popover .chat-input-popover-item:hover{background-color:#ecf5ff}.chat-input-more-popover .chat-input-popover-item .taskfont{font-size:20px;margin-right:8px}.chat-input-record-transfer{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);z-index:9999;padding:14px 26px;color:#303133;background-color:#fff;border-radius:8px;box-shadow:0 4px 12px #0003;display:flex;flex-direction:column;align-items:center;justify-content:center;transition:all .3s ease}.chat-input-record-transfer .record-duration{font-size:20px;line-height:30px}.chat-input-record-transfer .record-loading{display:flex;align-items:center;justify-content:center;height:30px}.chat-input-record-transfer .record-loading .common-loading{width:24px;height:24px;margin:0;padding:0}.chat-input-record-transfer .record-cancel{margin-top:6px;opacity:.6}.chat-input-record-transfer.cancel{background-color:#ff6565;color:#fff}.ql-mention-list-container{width:auto;min-width:220px;max-width:280px;max-height:360px;overflow-y:overlay}.ql-mention-list-container.task-mention .ql-mention-list>li:first-child{margin-top:0}.ql-mention-list-container.task-mention .ql-mention-list-item{line-height:36px}.ql-mention-list-container.task-mention .ql-mention-list-item .mention-item-disabled{padding:8px 4px 0}.ql-mention-list-container::-webkit-scrollbar{width:0;height:0}.ql-mention-list-container::-webkit-scrollbar-thumb{border:3px solid transparent;background-color:#0003;background-clip:content-box;border-radius:12px}.ql-mention-list-container::-webkit-scrollbar-thumb:hover{border:2px solid transparent;background-color:#0003}.ql-mention-list-container::-webkit-scrollbar-thumb:active{border:2px solid transparent;background-color:#0006}.ql-mention-list-container::-webkit-scrollbar-track{border-radius:12px;background:rgba(0,0,0,0)}.ql-mention-list-container:hover::-webkit-scrollbar{width:12px;height:12px}.ql-mention-list-container .ql-mention-list>li:first-child{margin-top:8px}.ql-mention-list-container .ql-mention-list>li:last-child{margin-bottom:8px}.ql-mention-list-container .ql-mention-list-item{padding:0 8px;display:flex;align-items:center;margin:0 8px}.ql-mention-list-container .ql-mention-list-item.selected{border-radius:4px}.ql-mention-list-container .ql-mention-list-item .mention-item-at{flex-shrink:0;width:28px;height:28px;line-height:28px;border-radius:50%;text-align:center;color:#fff;background-color:#84c56a;overflow:hidden}.ql-mention-list-container .ql-mention-list-item .mention-item-img{flex-shrink:0;position:relative;display:flex;align-items:center;justify-content:center}.ql-mention-list-container .ql-mention-list-item .mention-item-img>img{width:28px;height:28px;border-radius:50%;overflow:hidden}.ql-mention-list-container .ql-mention-list-item .mention-item-img>em{position:absolute;right:0;bottom:0;width:8px;height:8px;border-radius:50%;background-color:#f90;border:1px solid #ffffff;transform-origin:right bottom;z-index:1}.ql-mention-list-container .ql-mention-list-item .mention-item-img.online>em{background-color:#84c56a}.ql-mention-list-container .ql-mention-list-item .mention-item-bot{font-size:16px;margin-left:8px;margin-right:-5px;color:#84c56a}.ql-mention-list-container .ql-mention-list-item .mention-item-name{padding:0 8px;font-size:14px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ql-mention-list-container .ql-mention-list-item .mention-item-tip{flex:1;text-align:right;color:#8f8f8e;font-size:12px;font-style:normal;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ql-mention-list-container .ql-mention-list-item .mention-item-disabled{flex-shrink:0;color:#aaa;font-size:12px;padding:0 4px;line-height:40px}@media (max-width: 768px){.chat-input-box .chat-input-quick-emoji{right:10px}.chat-input-box .chat-input-wrapper{padding-left:6px;padding-right:6px;background-color:#fff}.chat-input-box .chat-input-wrapper .ql-container .ql-editor{font-size:16px;color:#303133}.chat-input-box .chat-emoji-wrapper{margin-top:8px;background-color:#fff}.chat-input-box .chat-emoji-wrapper .chat-emoji-box{height:246px}.chat-input-box .chat-emoji-wrapper .chat-emoji-box>ul{grid-template-columns:repeat(auto-fill,50px)}.chat-input-box .chat-emoji-wrapper .chat-emoji-box>ul>li{width:50px;height:50px;line-height:50px;font-size:28px}.chat-input-box .chat-emoji-wrapper .chat-emoji-box>ul.emosearch,.chat-input-box .chat-emoji-wrapper .chat-emoji-box>ul.emoticon{grid-template-columns:repeat(auto-fill,80px)}.chat-input-box .chat-emoji-wrapper .chat-emoji-box>ul.emosearch>li,.chat-input-box .chat-emoji-wrapper .chat-emoji-box>ul.emoticon>li{width:80px;height:80px;padding:8px}.chat-input-box .chat-emoji-wrapper .chat-emoji-menu{border-radius:0;background-color:#f8f8f8;padding:4px;width:calc(100% - 8px)}.chat-input-box .chat-emoji-wrapper .chat-emoji-menu>li.active:before{background-color:#e1e1e1}}.dialog-group-info{display:flex;flex-direction:column;position:absolute;top:10px;left:0;right:0;bottom:0}.dialog-group-info .group-info-title{color:#b7b1b1;margin:18px 24px 0}.dialog-group-info .group-info-value{margin:4px 24px 0;line-height:34px}.dialog-group-info .group-info-value .quick-text{padding:6px 0;height:auto;line-height:20px;box-sizing:content-box;overflow:visible;white-space:normal}.dialog-group-info .group-info-value .quick-input{display:flex;flex-direction:column}.dialog-group-info .group-info-search{margin:24px 24px 0}.dialog-group-info .group-info-button{display:flex;align-items:center;justify-content:center;margin:18px 24px;cursor:pointer}.dialog-group-info .group-info-button>button{margin:0 8px}.dialog-group-info .group-info-user{flex:1;overflow:auto;margin-top:12px;padding:0 12px}.dialog-group-info .group-info-user>ul>li{display:flex;align-items:center;list-style:none;padding:12px;height:56px;border-radius:6px}.dialog-group-info .group-info-user>ul>li:hover{background-color:#9093991a}.dialog-group-info .group-info-user>ul>li:hover .user-exit{opacity:1;transform:translate(0)}@media (max-width: 768px){.dialog-group-info .group-info-user>ul>li:hover{background-color:transparent}}.dialog-group-info .group-info-user>ul>li.no{justify-content:center;color:#999}.dialog-group-info .group-info-user>ul>li.no:hover{background-color:transparent}.dialog-group-info .group-info-user>ul>li.no .common-loading{width:16px;height:16px}.dialog-group-info .group-info-user>ul>li .common-avatar{width:0;flex:1}.dialog-group-info .group-info-user>ul>li .common-avatar .avatar-name{margin-left:8px}.dialog-group-info .group-info-user>ul>li .user-tag{margin-left:4px;height:22px;line-height:22px;padding:0 6px;border-radius:3px;transform:scale(.9);transform-origin:right center;color:#fff;background-color:#84c56a}.dialog-group-info .group-info-user>ul>li .user-exit{display:flex;align-items:center;justify-content:flex-end;cursor:pointer;height:100%;width:32px;opacity:0;transform:translate(50%);transition:all .2s}@media (max-width: 768px){.dialog-group-info .group-info-user>ul>li .user-exit{opacity:1;transform:translate(0)}}.dialog-group-info .group-info-user>ul>li .user-exit:hover>i{color:#606266}.dialog-group-info .group-info-user>ul>li .user-exit>i{display:flex;align-items:center;justify-content:center;width:22px;height:22px;font-size:12px;color:#909399;border:1px solid #dddddd;border-radius:50%}.dialog-respond{display:flex;flex-direction:column;position:absolute;top:0;left:0;right:0;bottom:0}.dialog-respond .respond-title{text-align:center;height:56px;line-height:56px;border-bottom:1px solid #eeeeee;font-size:16px;font-weight:500;display:flex;align-items:center;justify-content:center}.dialog-respond .respond-title>em{font-style:normal;font-size:22px;margin-right:8px}.dialog-respond .respond-user{flex:1;overflow:auto;padding:6px}.dialog-respond .respond-user>ul>li{display:flex;align-items:center;list-style:none;padding:12px;border-radius:6px}.dialog-respond .respond-user>ul>li:hover{background-color:#9093991a}@media (max-width: 768px){.dialog-respond .respond-user>ul>li:hover{background-color:transparent}}.dialog-respond .respond-user>ul>li .common-avatar{width:0;flex:1}.dialog-respond .respond-user>ul>li .common-avatar .avatar-name{margin-left:8px}.dialog-wrapper-dialogids .ivu-select-arrow{display:none!important}.dialog-wrapper-forward .forward-option{max-width:100%;display:flex;align-items:center}.dialog-wrapper-forward .forward-option .forward-avatar{display:flex;align-items:center}.dialog-wrapper-forward .forward-option .forward-avatar .icon-avatar{width:26px;height:26px;flex-grow:0;flex-shrink:0;display:flex;align-items:center;justify-content:center;border-radius:50%;font-size:18px;background-color:#61b2f9;color:#fff}.dialog-wrapper-forward .forward-option .forward-avatar .icon-avatar.department{background-color:#5bc7b0}.dialog-wrapper-forward .forward-option .forward-avatar .icon-avatar.project{background-color:#6e99eb}.dialog-wrapper-forward .forward-option .forward-avatar .icon-avatar.task{background-color:#9b96df;font-size:16px}.dialog-wrapper-forward .forward-option .forward-name{margin-left:10px;flex:1;width:0;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.dialog-wrapper-forward .ivu-select-item.ivu-select-item-selected:after{top:8px}.dialog-wrapper-forward .forward-drop-prepend{text-align:center;color:#c5c8ce;line-height:20px;padding-bottom:5px;font-size:12px;border-bottom:1px solid #f1f1f1;margin-bottom:5px}.dialog-wrapper{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;flex-direction:column;background-color:#fff;z-index:1}.dialog-wrapper.record-ready{overflow:hidden}.dialog-wrapper.drawer-list{border-radius:18px 0 0 18px;overflow:hidden}.dialog-wrapper.drawer-list .dialog-nav .drawer-title{text-align:center;height:56px;line-height:56px;border-bottom:1px solid #eeeeee;font-size:16px;font-weight:500}.dialog-wrapper.drawer-list .dialog-scroller{padding:16px 20px 0}.dialog-wrapper.drawer-list .dialog-scroller .reply-item{border-bottom:1px solid #eeeeee;margin-bottom:16px}.dialog-wrapper.drawer-list .dialog-scroller .original-button{display:block;margin:0 auto;box-shadow:none}.dialog-wrapper.drawer-list .todo-button{flex-shrink:0;display:flex;align-items:center;justify-content:center;margin:18px 24px;cursor:pointer}.dialog-wrapper.drawer-list .todo-button>button{margin:0 8px}.dialog-wrapper .vue-recycle-scroller.direction-vertical:not(.page-mode){overflow-y:overlay}.dialog-wrapper .dialog-nav{width:100%}.dialog-wrapper .dialog-nav .nav-wrapper{display:flex;align-items:center;padding:0 22px;height:68px;position:relative}.dialog-wrapper .dialog-nav .nav-wrapper:before{content:"";position:absolute;left:0;bottom:0;width:100%;height:1px;background-color:#f4f5f5}.dialog-wrapper .dialog-nav .nav-wrapper.completed:after{content:"\f373";font-family:Ionicons,serif;pointer-events:none;position:absolute;top:50%;right:52px;transform:translateY(-50%);font-size:40px;color:#19be6b;opacity:.2;z-index:1}.dialog-wrapper .dialog-nav .nav-wrapper.completed .dialog-title{padding-right:52px}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block{flex:1;width:0;display:flex;align-items:center}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-avatar{flex-shrink:0;margin-right:12px}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-avatar .user-avatar,.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-avatar .icon-avatar{width:42px;height:42px;margin-right:2px;flex-grow:0;flex-shrink:0}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-avatar .icon-avatar{display:flex;align-items:center;justify-content:center;border-radius:50%;font-size:26px;background-color:#61b2f9;color:#fff}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-avatar .icon-avatar.department{background-color:#5bc7b0}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-avatar .icon-avatar.project{background-color:#6e99eb}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-avatar .icon-avatar.task{background-color:#9b96df;font-size:24px}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title{flex:1;width:0;display:flex;flex-direction:column;justify-content:center}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .main-title{display:flex;align-items:center;line-height:22px;max-width:100%}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .main-title .ivu-tag{flex-shrink:0;margin:0 6px 0 0;padding:0 5px}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .main-title .ivu-tag.ivu-tag-success{padding:0 6px}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .main-title .ivu-tag.after{margin:0 0 0 6px}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .main-title .ivu-icon{font-size:18px;margin-right:6px}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .main-title .ivu-icon.completed{color:#84c56a}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .main-title>h2{font-size:17px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .main-title>em{flex-shrink:0;font-style:normal;font-size:17px;font-weight:500;padding-left:6px}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .main-title .load{flex-shrink:0;display:flex;align-items:center;justify-content:center;margin-left:6px}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .main-title .load .common-loading{width:16px;height:16px}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .title-desc{display:none;align-items:center}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .title-desc>li{font-size:12px;list-style:none;line-height:16px;padding-top:2px;color:#aaa;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center;transform:scale(.9)}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .title-desc>li.online{color:#84c56a}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .title-tags{display:flex;align-items:center}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .title-tags>li{font-size:12px;list-style:none;line-height:24px;margin-top:4px;margin-right:6px;margin-bottom:-6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;display:flex;align-items:center;padding:0 6px;color:#303133;border-radius:5px}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .title-tags>li>i{flex-shrink:0;width:14px;height:14px;line-height:14px;font-size:14px;margin-right:4px;background-repeat:no-repeat;background-size:contain;background-position:center center}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .title-tags>li>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .title-tags>li.file i{background-image:url(/js/build/file.3e98845a.svg)}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .title-tags>li.image i{background-image:url(/js/build/image.d3eec0cd.svg)}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .title-tags>li.link i{background-image:url(/js/build/link.5b1cd276.svg)}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .title-tags>li.msg i{background-image:url(/js/build/msg.d43597ba.svg)}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .title-tags>li.tag i{background-image:url(/js/build/tag.d5e85a3b.svg)}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .title-tags>li.project i{background-image:url(/js/build/project.91434d04.svg)}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .title-tags>li.task i{background-image:url(/js/build/task.19dff412.svg)}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .title-tags>li.active{font-weight:500;color:#84c56a;background-color:#84c56a2e}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-back,.dialog-wrapper .dialog-nav .nav-wrapper .dialog-menu{font-size:22px;color:#606266}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-menu{margin-right:-22px}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-menu .dialog-menu-icon{cursor:pointer;margin:0 22px;font-size:22px;color:#606266}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-back{display:none;cursor:pointer}.dialog-wrapper .dialog-scroller{flex:1;position:relative;padding:16px 32px 0}.dialog-wrapper .dialog-scroller .dialog-item{display:flex;flex-direction:row;align-items:flex-start;list-style:none;padding-bottom:16px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-tag,.dialog-wrapper .dialog-scroller .dialog-item .dialog-todo,.dialog-wrapper .dialog-scroller .dialog-item .dialog-notice{font-size:12px;max-width:80%;margin:0 auto;padding:4px 8px;border-radius:8px;color:#909399;background-color:#efefef;word-wrap:break-word}.dialog-wrapper .dialog-scroller .dialog-item .dialog-tag{cursor:pointer}.dialog-wrapper .dialog-scroller .dialog-item .dialog-tag .tag-user{display:inline-block}.dialog-wrapper .dialog-scroller .dialog-item .dialog-todo{cursor:pointer}.dialog-wrapper .dialog-scroller .dialog-item .dialog-todo .todo-users{display:inline-block}.dialog-wrapper .dialog-scroller .dialog-item .dialog-todo .todo-users>div+div{padding-left:8px;position:relative}.dialog-wrapper .dialog-scroller .dialog-item .dialog-todo .todo-users>div+div:before{content:"\3001";position:absolute;left:0;bottom:0}.dialog-wrapper .dialog-scroller .dialog-item .dialog-todo .todo-user{display:inline-block}.dialog-wrapper .dialog-scroller .dialog-item .dialog-avatar{position:relative;margin-bottom:20px;flex-shrink:0;width:30px;height:30px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view{display:flex;flex-direction:column;align-items:flex-start;margin:0 0 0 8px;position:relative}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view.text{max-width:70%}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view.operate-action .dialog-head{box-shadow:0 1px 6px #0003}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-username{max-width:100%;height:22px;margin-bottom:6px;opacity:.8}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head{display:flex;flex-direction:column;background-color:#f4f5f7;padding:8px;min-width:32px;border-radius:2px 8px 8px;transition:box-shadow .3s ease}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head.transparent{background-color:transparent!important}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-reply{position:relative;padding-left:9px;margin-bottom:4px;cursor:pointer}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-reply:after{content:"";position:absolute;top:0;left:0;bottom:0;width:3px;border-radius:2px;transform:scaleX(.8);transform-origin:left center;background-color:#84c56ab3}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-reply .common-avatar{font-weight:500;font-size:13px;color:#84c56a}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-reply .reply-desc{font-size:13px;word-break:break-all;text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content{display:flex;align-items:flex-start;position:relative}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content.an-emoji .content-text>pre{font-size:72px;line-height:1}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content.two-emoji .content-text>pre{font-size:52px;line-height:1;letter-spacing:4px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content.three-emoji .content-text>pre{font-size:32px;line-height:1;letter-spacing:4px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text{color:#303133;padding:2px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre{display:block;margin:0;padding:0;line-height:20px;white-space:pre-wrap;word-wrap:break-word;word-break:break-word;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:14px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre a{color:#436ff6}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre ol li,.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre ul li{list-style-type:none}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre ol li:before,.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre ul li:before{display:inline-block;white-space:nowrap;width:1.2em;color:#08f;text-align:left;margin-right:.2em}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre ul li:before{content:"\2022";font-weight:900}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre ol li{counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;counter-increment:list-0}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre ol li:before{width:auto;min-width:1.2em;content:counter(list-0,decimal) ". "}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre blockquote{border-left:4px solid #ccc;margin-bottom:5px;margin-top:5px;padding-left:16px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre pre{white-space:pre-wrap;margin:5px 0;padding:5px 10px;border-radius:3px;background-color:#23241f;color:#f8f8f2;overflow:visible}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre img{cursor:pointer;max-width:220px;max-height:220px;vertical-align:bottom}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre img.emoticon{max-width:150px;max-height:150px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre .mention{color:#0bc037;background-color:transparent;-webkit-user-select:auto;-moz-user-select:auto;user-select:auto;padding:0;margin:0}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre .mention>span{margin:0}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre .mention.task{cursor:pointer}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre .mention.file,.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre .mention[data-denotation-char="~"]{color:#436ff6!important}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre .mention.me{font-size:13px;font-weight:600;padding:3px 4px;color:#fff;background-color:#84c56a}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-file.file{display:inline-block}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-file.file .file-box{background-color:#fff;display:flex;align-items:center;padding:10px 14px;border-radius:3px;width:220px;cursor:pointer}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-file.file .file-box .file-thumb{width:36px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-file.file .file-box .file-info{margin-left:12px;display:flex;flex-direction:column;justify-content:center}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-file.file .file-box .file-info .file-name{color:#303133;font-size:14px;line-height:18px;word-break:break-all;text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-file.file .file-box .file-info .file-size{padding-top:4px;color:#606266;font-size:14px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-file.img{padding:0;display:flex;max-width:220px;max-height:220px;border-radius:6px;overflow:hidden}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-file.img .file-img{display:flex;cursor:pointer}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-record{display:flex;color:#303133}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-record .dialog-record{display:flex;flex-direction:row-reverse;justify-content:flex-end;align-content:center;line-height:24px;cursor:pointer}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-record .dialog-record .record-time{padding:0 0 0 4px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-record .dialog-record .record-icon{transform:rotate(180deg) scale(.9)}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-record .dialog-record .record-icon:before{content:"\e793"}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-record .dialog-record.playing .record-icon:before{animation:record-playing 1s infinite}@keyframes record-playing{0%{content:"\e793"}33%{content:"\e791"}66%{content:"\e792"}to{content:"\e793"}}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-meeting{padding:4px 6px;color:#303133}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-meeting .dialog-meeting{min-width:220px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-meeting .dialog-meeting>li{list-style:none;display:flex;flex-direction:column;align-items:flex-start;margin-bottom:16px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-meeting .dialog-meeting>li.meeting-operation{margin-bottom:0;padding:12px 0 0;display:flex;flex-direction:row;align-items:center;font-size:12px;position:relative;cursor:pointer}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-meeting .dialog-meeting>li.meeting-operation:hover .taskfont{padding-left:4px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-meeting .dialog-meeting>li.meeting-operation:before{content:"";position:absolute;top:0;left:0;right:0;height:1px;background-color:#cccc;transform:scaleY(.5)}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-meeting .dialog-meeting>li.meeting-operation .taskfont{font-size:12px;padding-left:2px;transform:scale(.8);transition:all .2s}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-meeting .dialog-meeting>li>em{font-style:normal;font-weight:700;padding-bottom:2px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-loading{display:flex}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-loading>i{font-size:20px;margin:2px;color:#303133}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-loading .common-loading{width:20px;height:20px;margin:4px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-unknown{text-decoration:underline;color:#303133}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-emoji{display:flex;flex-wrap:wrap;align-items:center}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-emoji>li{list-style:none;display:flex;align-items:center;padding:2px 7px;margin-top:6px;margin-right:8px;border-radius:14px;line-height:22px;cursor:pointer;background-color:#e1e1e180}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-emoji>li.hasme{background-color:#e1e1e1}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-emoji>li .emoji-symbol{font-size:16px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-emoji>li .emoji-users{position:relative;padding-left:14px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-emoji>li .emoji-users:before{position:absolute;content:"";left:7px;top:6px;bottom:6px;width:1px;transform:scaleX(.5);background-color:#81818180}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-emoji>li .emoji-users>ul{display:flex;flex-wrap:wrap;align-items:center}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-emoji>li .emoji-users>ul>li{display:flex;align-items:center;list-style:none;color:#818181;font-size:12px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-emoji>li .emoji-users>ul>li.bold{font-weight:600}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-emoji>li .emoji-users>ul>li:after{content:"\3001"}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-emoji>li .emoji-users>ul>li:last-child:after{display:none}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-foot{display:flex;align-items:center;padding-top:4px;height:21px;line-height:1}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-foot .error{cursor:pointer;color:#ed4014}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-foot .error>i{font-size:14px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-foot .common-loading{margin:0 2px;width:10px;height:10px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-foot .popover-reference{position:absolute;left:65%;bottom:0;width:0;height:100%;pointer-events:none}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-foot .tag,.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-foot .todo,.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-foot .reply,.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-foot .modify{display:flex;align-items:center;margin-right:6px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-foot .tag>i,.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-foot .todo>i,.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-foot .reply>i,.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-foot .modify>i{font-size:13px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-foot .todo{position:relative;cursor:pointer}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-foot .todo .common-loading{margin:0 3px 0 0}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-foot .reply{font-size:12px;color:#84c56a;cursor:pointer}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-foot .reply>i{padding-right:2px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-foot .time{color:#bbb;font-size:12px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-foot .done{display:none;margin-left:4px;transform:scale(.9);font-size:12px;color:#84c56a}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-foot .percent{display:none;margin-left:4px;align-items:center;position:relative;cursor:pointer}.dialog-wrapper .dialog-scroller .dialog-item .dialog-action{align-self:flex-start;display:flex;align-items:flex-start;height:100%}.dialog-wrapper .dialog-scroller .dialog-item .dialog-action>*{margin:0 5px}.dialog-wrapper .dialog-scroller .dialog-item.loading{height:20px;box-sizing:content-box;align-items:center;justify-content:center}.dialog-wrapper .dialog-scroller .dialog-item.nothing{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);color:#909399;padding:0}.dialog-wrapper .dialog-scroller .dialog-item.self{flex-direction:row-reverse}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view{align-items:flex-end;margin:0 8px 0 0}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head{background-color:#84c56a;border-radius:8px 2px 8px 8px}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-reply,.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-reply .common-avatar,.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-reply .bot{color:#fff}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-reply:after{background-color:#fff}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-content .content-text{color:#fff}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-content .content-text>pre .mention{color:#303133}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-content .content-text>pre .mention.me{font-size:inherit;font-weight:inherit;padding:inherit;background-color:inherit}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-content .content-record{color:#fff}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-content .content-record .dialog-record{flex-direction:row}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-content .content-record .dialog-record .record-time{padding:0 4px 0 0}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-content .content-record .dialog-record .record-icon{transform:rotate(0) scale(.9)}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-content .content-meeting{color:#fff}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-content .content-meeting .dialog-meeting>li.meeting-operation:before{background-color:#fffc}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-content .content-loading>i{color:#fff}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-content .content-unknown{color:#fff}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-emoji>li{background-color:#5ba93c80}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-emoji>li.hasme{background-color:#5ba93c}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-emoji>li .emoji-users:before{background-color:#ffffff80}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-emoji>li .emoji-users>ul>li{color:#fff}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-foot .done{display:inline-block}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-foot .percent{display:flex}.dialog-wrapper .dialog-position{position:absolute;top:100px;right:0;z-index:1;display:flex;align-items:center;justify-content:flex-end}.dialog-wrapper .dialog-position .position-label{display:flex;align-items:center;justify-content:center;padding:5px 10px;border-radius:18px 0 0 18px;color:#fff;background-color:#84c56a;cursor:pointer}.dialog-wrapper .dialog-position .position-label>i{margin-right:4px;width:14px;height:14px;font-size:14px;line-height:14px}.dialog-wrapper .dialog-footer{position:relative;padding:0 24px;margin-bottom:16px}.dialog-wrapper .dialog-footer .dialog-newmsg,.dialog-wrapper .dialog-footer .dialog-goto{position:absolute;right:30px;color:#fff;background-color:#555;cursor:pointer;z-index:2;transition:all .2s;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none;opacity:0;transform:scale(0)}.dialog-wrapper .dialog-footer .dialog-newmsg{display:block;top:-44px;height:30px;line-height:30px;font-size:12px;padding:0 12px;border-radius:16px}.dialog-wrapper .dialog-footer .dialog-goto{display:flex;align-content:center;justify-content:center;color:#606266;background-color:#fff;border:1px solid #eeeeee;box-shadow:0 4px 8px #60626633;top:-48px;width:40px;height:40px;line-height:38px;border-radius:50%}.dialog-wrapper .dialog-footer .dialog-goto .taskfont{font-size:24px}.dialog-wrapper .dialog-footer .chat-upload{display:none;width:0;height:0;overflow:hidden}.dialog-wrapper .dialog-footer .chat-todo{display:flex;align-items:center;padding:8px 0}.dialog-wrapper .dialog-footer .chat-todo .todo-label{flex-shrink:0;padding-right:8px}.dialog-wrapper .dialog-footer .chat-todo>ul{flex:1;display:flex;align-items:center;overflow-x:auto}.dialog-wrapper .dialog-footer .chat-todo>ul>li{flex-shrink:0;list-style:none;margin-right:8px;background-color:#f0f1f3;padding:0 12px;border-radius:13px;line-height:26px;font-size:13px;cursor:pointer;display:flex;align-items:center}.dialog-wrapper .dialog-footer .chat-todo>ul>li .todo-desc{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dialog-wrapper .dialog-footer .chat-mute{color:#909399;background-color:#f4f5f7;padding:8px 12px;border-radius:10px;text-align:center}.dialog-wrapper .dialog-footer .chat-input-box .chat-input-wrapper{background-color:#f4f5f7;padding:8px 2px;border-radius:10px}.dialog-wrapper .dialog-footer .chat-input-box .chat-input-wrapper .ql-container .ql-editor{margin:4px 12px}.dialog-wrapper .dialog-footer .chat-input-box .chat-input-wrapper .ql-container .ql-editor.ql-blank:before{left:12px;right:12px}.dialog-wrapper .dialog-footer.newmsg .dialog-newmsg,.dialog-wrapper .dialog-footer.goto .dialog-goto{pointer-events:auto;opacity:1;transform:scale(1)}.dialog-wrapper .drag-over{position:absolute;top:0;left:0;right:0;bottom:0;z-index:3;background-color:#ffffffc7;display:flex;align-items:center;justify-content:center}.dialog-wrapper .drag-over:before{content:"";position:absolute;top:16px;left:16px;right:16px;bottom:16px;border:2px dashed #7b7b7b;border-radius:12px}.dialog-wrapper .drag-over .drag-text{padding:12px;font-size:18px;color:#606266}.dialog-wrapper .operate-position{position:absolute;top:0;left:0;width:1px;opacity:0;visibility:hidden;pointer-events:none}.dialog-wrapper-read-poptip{width:360px;max-width:72%}.dialog-wrapper-read-poptip .read-poptip-content{display:flex;position:relative}.dialog-wrapper-read-poptip .read-poptip-content .read,.dialog-wrapper-read-poptip .read-poptip-content .unread{flex:1;max-height:300px}.dialog-wrapper-read-poptip .read-poptip-content .read>li,.dialog-wrapper-read-poptip .read-poptip-content .unread>li{min-height:26px;list-style:none;margin-bottom:12px}.dialog-wrapper-read-poptip .read-poptip-content .read>li .common-avatar,.dialog-wrapper-read-poptip .read-poptip-content .unread>li .common-avatar{width:100%}.dialog-wrapper-read-poptip .read-poptip-content .read>li .common-avatar .avatar-name,.dialog-wrapper-read-poptip .read-poptip-content .unread>li .common-avatar .avatar-name{margin-left:6px}.dialog-wrapper-read-poptip .read-poptip-content .read>li:last-child,.dialog-wrapper-read-poptip .read-poptip-content .unread>li:last-child{margin-bottom:6px}.dialog-wrapper-read-poptip .read-poptip-content .read>li.read-title,.dialog-wrapper-read-poptip .read-poptip-content .unread>li.read-title{min-height:auto}.dialog-wrapper-read-poptip .read-poptip-content .read>li.read-title>em,.dialog-wrapper-read-poptip .read-poptip-content .unread>li.read-title>em{font-size:18px;font-weight:600;font-style:normal;padding-right:6px}.dialog-wrapper-read-poptip .read-poptip-content .unread>li{padding-left:16px}.dialog-wrapper-read-poptip .read-poptip-content:before{content:"";position:absolute;left:50%;top:0;bottom:0;width:1px;background-color:#f4f4f5}.dialog-wrapper-paste{display:flex;flex-direction:column;align-items:center;justify-content:center}.dialog-wrapper-paste.multiple{display:block}.dialog-wrapper-paste>li{list-style:none}.dialog-wrapper-paste>li img{max-width:100%;max-height:500px}.dialog-wrapper-paste>li>div,.dialog-wrapper-paste>li>img{display:flex;flex-direction:column;padding:0}.dialog-wrapper-paste>li+li{margin-top:20px}.dialog-wrapper-todo{display:inline-block}.dialog-wrapper-todo>div{display:flex;align-items:center}.dialog-wrapper-todo>div .ivu-tag{display:flex;align-items:center;margin-left:4px;height:20px;line-height:20px;padding:0 5px}.dialog-wrapper-operate .ivu-dropdown-item{padding:0}.dialog-wrapper-operate .ivu-dropdown-item:hover{background-color:transparent}.dialog-wrapper-operate .dropdown-emoji{position:relative}.dialog-wrapper-operate .dropdown-emoji:before{content:"";position:absolute;top:0;left:0;right:0;height:1px;background-color:#f4f5f5}.dialog-wrapper-operate .operate-action{width:316px;padding:8px;margin-bottom:-8px;display:grid;justify-content:space-between;grid-template-columns:repeat(auto-fill,60px)}.dialog-wrapper-operate .operate-action>li{list-style:none;width:60px;height:52px;margin-bottom:14px;display:flex;flex-direction:column;align-items:center;justify-content:space-between}.dialog-wrapper-operate .operate-action>li .taskfont{font-size:22px}.dialog-wrapper-operate .operate-action>li>span{padding:0 1px;font-size:12px;max-width:100%;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dialog-wrapper-operate .operate-emoji{width:316px;padding:8px 4px 2px;display:flex;align-items:center;overflow:auto}.dialog-wrapper-operate .operate-emoji>li{list-style:none;width:44px;box-sizing:content-box;display:flex;flex-shrink:0;font-size:22px;justify-content:center;align-items:center}.dialog-wrapper-drawer-list{position:absolute!important;overflow:hidden!important}.dialog-wrapper-loading{width:8px;height:8px;border-radius:50%;display:block;margin:0 auto;position:relative;background:#e3e3e3;box-sizing:border-box;animation:dialog-loading-animation .5s linear infinite alternate}@keyframes dialog-loading-animation{0%{box-shadow:0 0,0 0;color:#e3e3e333}to{box-shadow:-12px 0,12px 0;color:#e3e3e3cc}}body.eeui-app .dialog-wrapper .dialog-scroller{-webkit-user-select:none;-moz-user-select:none;user-select:none}body.eeui-app .dialog-wrapper .dialog-scroller .dialog-item .dialog-view.operate-enter .dialog-head .dialog-content{-webkit-user-select:text;-moz-user-select:text;user-select:text}@media (max-width: 768px){.dialog-wrapper{background-color:#f8f8f8}.dialog-wrapper.drawer-list .dialog-nav .drawer-title{height:52px;line-height:52px;border-bottom:0}.dialog-wrapper .dialog-nav .nav-wrapper{height:52px;padding:0;justify-content:center}.dialog-wrapper .dialog-nav .nav-wrapper:before{display:none}.dialog-wrapper .dialog-nav .nav-wrapper.completed:after{font-size:36px;right:40px}.dialog-wrapper .dialog-nav .nav-wrapper.completed .dialog-title{padding-right:0}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-back,.dialog-wrapper .dialog-nav .nav-wrapper .dialog-menu{position:absolute;top:0;bottom:0;right:0;width:52px;display:flex;align-items:center;justify-content:center}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-menu,.dialog-wrapper .dialog-nav .nav-wrapper .dialog-menu .dialog-menu-icon{margin:0}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-back{padding-right:6px;right:auto;left:0}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-back>i{font-size:26px}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-back .back-num{font-family:Source Sans Pro,Helvetica Neue,Arial,sans-serif;position:absolute;top:50%;left:32px;background:#e6ebf1;color:#303133;transform:translateY(-50%);font-weight:500;font-size:14px;border-radius:12px;min-width:24px;height:24px;line-height:24px;text-align:center;padding:0 6px}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block{margin:0 80px;justify-content:center}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-avatar{display:none}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title{flex:unset;width:unset;overflow:hidden;text-align:center}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .main-title{justify-content:center}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .title-desc{display:flex;justify-content:center}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .title-tags{position:absolute;left:0;right:0;top:48px;z-index:1;padding:0 8px;background-color:#f8f8f8;height:32px;align-items:flex-start;overflow-x:auto}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .title-tags>li{flex-shrink:0;line-height:28px;padding:0 8px;font-size:14px}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .title-tags>li>i{width:16px;height:16px;line-height:16px;font-size:16px;margin-right:3px}.dialog-wrapper .dialog-scroller{padding-right:14px;padding-left:14px;overscroll-behavior:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;background-color:#fff}.dialog-wrapper .dialog-scroller.default-header{margin-top:34px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view.text{max-width:calc(100% - 80px)}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content a,.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content img{-webkit-touch-callout:none}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre{font-size:15px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-emoji>li .emoji-symbol{font-size:14px;margin-right:-1px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view.operate-enter .dialog-head .dialog-content{-webkit-user-select:text;-moz-user-select:text;user-select:text}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view.operate-enter .dialog-head .dialog-content a,.dialog-wrapper .dialog-scroller .dialog-item .dialog-view.operate-enter .dialog-head .dialog-content img{-webkit-touch-callout:default}.dialog-wrapper .dialog-position.down{top:130px}.dialog-wrapper .dialog-footer{background-color:#f8f8f8;padding:8px 10px;margin-bottom:0}.dialog-wrapper .dialog-footer .chat-todo{padding-top:0}.dialog-wrapper .dialog-footer .chat-todo>ul>li{background-color:#fff}.dialog-wrapper .dialog-footer .chat-todo>ul>li .todo-desc{max-width:120px}.dialog-wrapper .dialog-footer .chat-mute,.dialog-wrapper .dialog-footer .chat-input-box .chat-input-wrapper{background-color:#fff}.dialog-wrapper .dialog-footer .chat-input-box .chat-input-wrapper .chat-toolbar>li.chat-record-recwave{margin-left:-10px;width:calc(100% + 20px);background-color:#f8f8f8}.dialog-wrapper .dialog-footer .chat-input-box .chat-emoji-wrapper{margin-left:-10px;margin-bottom:-8px;width:calc(100% + 20px)}.dialog-wrapper .dialog-footer .dialog-newmsg,.dialog-wrapper .dialog-footer .dialog-goto{right:16px}.dialog-wrapper-operate .operate-emoji>li{font-size:24px}}@media (max-width: 768px) and (min-width: 390px){.dialog-wrapper-operate .operate-action,.dialog-wrapper-operate .operate-emoji{width:376px}.dialog-wrapper-operate .operate-emoji>li{width:46px}}.file-content,.file-preview{position:absolute;top:0;left:0;right:0;bottom:0;z-index:1;display:flex;flex-direction:column;border-radius:18px 18px 0 0;overflow:hidden;transform:translateZ(0)}.file-content .preview-iframe,.file-preview .preview-iframe{position:absolute;top:0;left:0;width:100%;height:100%;background:0 0;border:0;float:none;max-width:none;margin:0;padding:0;outline:0}.file-content .office-header,.file-preview .office-header{position:absolute;top:0;left:0;z-index:-1;opacity:0}.file-content .edit-header,.file-preview .edit-header{display:flex;flex-direction:row;align-items:center;width:100%;height:42px;background-color:#fff;box-shadow:0 1px 5px #0000000d;position:relative;z-index:99}.file-content .edit-header .header-title,.file-preview .edit-header .header-title{flex:1;color:#303133;padding-left:24px;padding-right:24px;line-height:24px;font-size:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-content .edit-header .header-title .file-unsave-tip,.file-preview .edit-header .header-title .file-unsave-tip{color:#303133;padding-right:6px;font-weight:500;cursor:pointer;transition:color .3s}.file-content .edit-header .header-title .file-unsave-tip:hover,.file-preview .edit-header .header-title .file-unsave-tip:hover{color:#000}.file-content .edit-header .header-user,.file-preview .edit-header .header-user{margin-right:24px}.file-content .edit-header .header-user>ul,.file-preview .edit-header .header-user>ul{display:flex;align-items:center}.file-content .edit-header .header-user>ul>li,.file-preview .edit-header .header-user>ul>li{list-style:none;margin-right:-4px}.file-content .edit-header .header-user>ul>li.more,.file-preview .edit-header .header-user>ul>li.more{width:28px;height:28px;text-align:center;line-height:24px;font-size:12px;border:2px solid #ffffff;background-color:#84c56a;color:#fff;z-index:1;border-radius:50%}.file-content .edit-header .header-hint,.file-preview .edit-header .header-hint{padding-right:22px;font-size:12px;color:#666;white-space:nowrap}.file-content .edit-header .header-hint .ivu-btn,.file-preview .edit-header .header-hint .ivu-btn{font-size:12px;padding:0 10px}.file-content .edit-header .header-hint .ivu-dropdown-item,.file-preview .edit-header .header-hint .ivu-dropdown-item{font-size:12px!important}.file-content .edit-header .header-icons,.file-preview .edit-header .header-icons{margin-left:-4px;margin-right:16px;display:flex;align-items:center;justify-content:center}.file-content .edit-header .header-icons .header-icon,.file-preview .edit-header .header-icons .header-icon{display:flex;align-items:center;justify-content:center;width:44px;height:100%;color:#777;cursor:pointer}.file-content .edit-header .header-icons .header-icon>i,.file-preview .edit-header .header-icons .header-icon>i{font-size:20px}.file-content .edit-header .header-button,.file-preview .edit-header .header-button{font-size:12px;margin-right:24px}.file-content .content-body,.file-preview .content-body{flex:1;display:flex;position:relative}.file-content .content-body .teditor-wrapper,.file-content .content-body .mdeditor-wrapper,.file-preview .content-body .teditor-wrapper,.file-preview .content-body .mdeditor-wrapper{flex:1;display:flex}.file-content .content-body .teditor-wrapper .tox-editor-header .tox-toolbar--scrolling,.file-preview .content-body .teditor-wrapper .tox-editor-header .tox-toolbar--scrolling{flex-wrap:wrap}.file-content .content-body .mdeditor-box,.file-preview .content-body .mdeditor-box{position:relative;width:100%}.file-content .content-body .mdeditor-box .markdown,.file-preview .content-body .mdeditor-box .markdown{position:absolute;top:0;left:0;bottom:0;right:0;overflow:auto;transform:translateZ(0)}.file-content .content-body .mdeditor-box .markdown .markdown-toolbars,.file-preview .content-body .mdeditor-box .markdown .markdown-toolbars{border-bottom:1px solid #eeeeee}.file-content .content-body .mdeditor-box .markdown.border,.file-preview .content-body .mdeditor-box .markdown.border{border:0!important}.file-content .content-body .teditor-loadedstyle,.file-preview .content-body .teditor-loadedstyle{height:100%}.file-content .content-body .teditor-loadedstyle .tox-tinymce,.file-preview .content-body .teditor-loadedstyle .tox-tinymce{border:0;border-radius:0}.file-content .content-body .teditor-loadedstyle .tox-mbtn,.file-preview .content-body .teditor-loadedstyle .tox-mbtn{height:36px}.file-content .content-body .teditor-loadedstyle .tox-menubar,.file-content .content-body .teditor-loadedstyle .tox-toolbar-overlord,.file-preview .content-body .teditor-loadedstyle .tox-menubar,.file-preview .content-body .teditor-loadedstyle .tox-toolbar-overlord{padding:0 12%;background:#ffffff}.file-content .content-body .teditor-loadedstyle .tox-toolbar__overflow,.file-content .content-body .teditor-loadedstyle .tox-toolbar__primary,.file-preview .content-body .teditor-loadedstyle .tox-toolbar__overflow,.file-preview .content-body .teditor-loadedstyle .tox-toolbar__primary{background:none!important;border-top:1px solid #eaeaea!important}.file-content .content-body .teditor-loadedstyle .tox-toolbar-overlord,.file-preview .content-body .teditor-loadedstyle .tox-toolbar-overlord{border-bottom:1px solid #E9E9E9!important}.file-content .content-body .teditor-loadedstyle .tox-toolbar__group:not(:last-of-type),.file-preview .content-body .teditor-loadedstyle .tox-toolbar__group:not(:last-of-type){border-right:1px solid #eaeaea!important}.file-content .content-body .teditor-loadedstyle .tox-sidebar-wrap,.file-preview .content-body .teditor-loadedstyle .tox-sidebar-wrap{margin:22px 12%;border:1px solid #e8e8e8;border-radius:2px;box-shadow:0 4px 8px #00000014}.file-content .content-body .teditor-loadedstyle .tox-sidebar-wrap .tox-edit-area,.file-preview .content-body .teditor-loadedstyle .tox-sidebar-wrap .tox-edit-area{border-top:0}.file-content .content-body .teditor-loadedstyle .tox-statusbar,.file-preview .content-body .teditor-loadedstyle .tox-statusbar{border-top:1px solid #E9E9E9}.file-content .content-body .teditor-loadedstyle .tox-statusbar .tox-statusbar__resize-handle,.file-preview .content-body .teditor-loadedstyle .tox-statusbar .tox-statusbar__resize-handle{display:none}.file-content .content-body .content-mask,.file-preview .content-body .content-mask{position:absolute;top:0;left:0;right:0;bottom:0;z-index:2}.file-content .content-load,.file-preview .content-load{display:flex;align-items:center;justify-content:center;position:absolute;top:42px;left:0;right:0;bottom:0;z-index:1000}.file-content .content-load .common-loading,.file-preview .content-load .common-loading{margin:0}.file-preview .edit-header .header-title{display:flex;align-items:center}.file-preview .edit-header .header-title .title-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-preview .edit-header .header-title .ivu-tag{flex-shrink:0;margin-left:6px;padding:0 6px;line-height:20px}.file-preview .edit-header .header-title .refresh{display:flex;align-items:center;margin-left:6px}.file-preview .edit-header .header-title .refresh .common-loading{margin:2px;width:16px;height:16px}.file-preview .edit-header .header-title .refresh>i{opacity:.6;font-size:20px;cursor:pointer;transition:all .2s}.file-preview .edit-header .header-title .refresh>i:hover{opacity:1}.file-preview .content-body{overflow:hidden}.file-preview .content-body .teditor-wrapper .tox-editor-header,.file-preview .content-body .teditor-wrapper .tox-statusbar{display:none}.file-preview .content-body .teditor-loadedstyle .tox-menubar,.file-preview .content-body .teditor-loadedstyle .tox-toolbar-overlord{padding:0}.file-preview .content-body .teditor-loadedstyle .tox-sidebar-wrap{margin:0}.file-preview .content-body .markdown-preview-warp{flex:1;overflow:auto}@media (max-width: 768px){.file-preview .edit-header .header-hint{display:none}}@media (max-width: 1200px){.file-content{overflow:auto}.file-content .edit-header,.file-content .content-body{min-width:768px;overflow-x:auto}.file-content .edit-header .teditor-loadedstyle .tox-menubar,.file-content .edit-header .teditor-loadedstyle .tox-toolbar-overlord,.file-content .content-body .teditor-loadedstyle .tox-menubar,.file-content .content-body .teditor-loadedstyle .tox-toolbar-overlord{padding:0}.file-content .edit-header .teditor-loadedstyle .tox-sidebar-wrap,.file-content .content-body .teditor-loadedstyle .tox-sidebar-wrap{margin:0}}body .ivu-modal-wrap.meeting-manager .ivu-modal .ivu-modal-content{border-radius:0}body .ivu-modal-wrap.meeting-manager .ivu-modal .ivu-modal-content .ivu-modal-body{padding:16px 24px 0}body .ivu-modal-wrap.meeting-manager .ivu-modal .ivu-modal-content .ivu-modal-body>ul{display:grid;justify-content:space-between;grid-template-columns:repeat(auto-fill,220px);grid-gap:24px}body .ivu-modal-wrap.meeting-manager .ivu-modal .ivu-modal-content .ivu-modal-body>ul>li{list-style:none;position:relative}body .ivu-modal-wrap.meeting-manager .ivu-modal .ivu-modal-content .ivu-modal-body>ul>li .meeting-player{position:relative}body .ivu-modal-wrap.meeting-manager .ivu-modal .ivu-modal-content .ivu-modal-body>ul>li .meeting-player .player{width:220px;height:220px;border-radius:12px;position:relative;z-index:1;overflow:hidden;background-color:#e1e1e1;background-size:136%;background-position:center;background-repeat:no-repeat}body .ivu-modal-wrap.meeting-manager .ivu-modal .ivu-modal-content .ivu-modal-body>ul>li .meeting-player .player-state{position:absolute;top:4px;right:8px;z-index:2;display:flex;align-items:center}body .ivu-modal-wrap.meeting-manager .ivu-modal .ivu-modal-content .ivu-modal-body>ul>li .meeting-player .player-state .taskfont{color:red;font-size:18px;margin-left:8px}body .ivu-modal-wrap.meeting-manager .ivu-modal .ivu-modal-content .ivu-modal-body>ul>li .meeting-player .common-avatar{position:absolute;bottom:-8px;right:-8px;z-index:2}@media (max-width: 768px){body .ivu-modal-wrap.meeting-manager .ivu-modal .ivu-modal-content .ivu-modal-body>ul{grid-template-columns:none;grid-gap:12px;display:flex;flex-wrap:wrap;justify-content:flex-start}body .ivu-modal-wrap.meeting-manager .ivu-modal .ivu-modal-content .ivu-modal-body>ul>li{width:calc(50% - 6px);max-width:180px}body .ivu-modal-wrap.meeting-manager .ivu-modal .ivu-modal-content .ivu-modal-body>ul>li .meeting-player .player{width:100%;height:176px}}body .ivu-modal-wrap.meeting-hidden{display:none}.meeting-drag-ball{position:relative;background-color:#fff;padding:6px 12px;white-space:nowrap;border-radius:4px;box-shadow:0 0 50px #0000004d;cursor:pointer;display:flex;align-items:center}.meeting-drag-ball>i{font-size:20px;height:24px;line-height:24px;margin-right:5px}.meeting-drag-ball>em{font-style:normal;padding-left:4px}.meeting-button-group{display:flex;justify-content:flex-end}.meeting-button-group .taskfont{font-size:20px}.meeting-button-group .ivu-btn{display:flex;align-items:center;justify-content:center}.meeting-button-group .ivu-btn>span{display:flex;align-items:center;justify-content:center}.project-archived{position:absolute;top:0;left:0;right:0;bottom:0;padding:20px;display:flex;flex-direction:column}.project-archived .archived-title{color:#303133;font-size:20px;font-weight:500;line-height:1;margin-bottom:24px;display:flex;align-items:center}.project-archived .archived-title .title-icon{display:flex;align-items:center;width:14px;height:14px;margin-left:4px;margin-top:2px}.project-archived .archived-title .title-icon>i{cursor:pointer}.project-archived .table-page-box{flex:1;height:0}.project-dialog{display:flex;flex-direction:column;background-color:#fff;border-left:1px solid #f4f5f5;z-index:1;position:relative}.project-dialog .dialog-user{margin-top:26px}.project-dialog .dialog-user .member-head{display:flex;align-items:center;padding:0 22px}.project-dialog .dialog-user .member-head .member-title{flex:1;font-size:18px;font-weight:600}.project-dialog .dialog-user .member-head .member-title>span{padding-left:6px;color:#84c56a;cursor:pointer}.project-dialog .dialog-user .member-head .member-close{cursor:pointer}.project-dialog .dialog-user .member-head .member-close .ivu-icon-ios-close{font-size:38px;top:3px;right:2px;transition:all .2s}.project-dialog .dialog-user .member-head .member-close:hover .ivu-icon-ios-close{transform:rotate(-90deg)}.project-dialog .dialog-user .member-list{display:flex;align-items:center;margin-top:12px;padding:0 22px;overflow:auto}.project-dialog .dialog-user .member-list::-webkit-scrollbar{display:none}.project-dialog .dialog-user .member-list>li{position:relative;list-style:none;margin-right:10px;margin-bottom:8px}.project-dialog .dialog-user .member-list.member-all{display:block}.project-dialog .dialog-user .member-list.member-all>li{display:inline-block;overflow:hidden}.project-dialog .dialog-nav .nav-wrapper{padding:0 20px}.project-gstc-gantt{position:absolute;top:15px;left:15px;right:15px;bottom:15px;z-index:1;transform:translateZ(0);background-color:#fdfdfd;border-radius:3px;overflow:hidden}.project-gstc-gantt .project-gstc-dropdown-filtr{position:absolute;top:38px;left:222px}.project-gstc-gantt .project-gstc-dropdown-filtr .project-gstc-dropdown-icon{cursor:pointer;color:#999;font-size:20px}.project-gstc-gantt .project-gstc-dropdown-filtr .project-gstc-dropdown-icon.filtr{color:#058ce4}.project-gstc-gantt .project-gstc-close{position:absolute;top:8px;left:12px;cursor:pointer}.project-gstc-gantt .project-gstc-close:hover i{transform:scale(1) rotate(45deg)}.project-gstc-gantt .project-gstc-close i{color:#606266;font-size:28px;transform:scale(.92);transition:all .2s}.project-gstc-gantt .project-gstc-edit{position:absolute;bottom:6px;right:6px;background:#ffffff;border-radius:4px;opacity:0;transform:translate(120%);transition:all .2s}.project-gstc-gantt .project-gstc-edit.visible{opacity:1;transform:translate(0)}.project-gstc-gantt .project-gstc-edit.info .project-gstc-edit-info{display:block}.project-gstc-gantt .project-gstc-edit.info .project-gstc-edit-small{display:none}.project-gstc-gantt .project-gstc-edit .project-gstc-edit-info{display:none;border:1px solid #e4e4e4;background:#ffffff;padding:6px;border-radius:4px;width:500px}.project-gstc-gantt .project-gstc-edit .project-gstc-edit-info .project-gstc-edit-btns{margin:12px 6px 4px;display:flex;align-items:center;justify-content:flex-end}.project-gstc-gantt .project-gstc-edit .project-gstc-edit-info .project-gstc-edit-btns .ivu-btn{margin-right:8px;font-size:13px}.project-gstc-gantt .project-gstc-edit .project-gstc-edit-info .project-gstc-edit-btns .zoom{font-size:20px;color:#444;cursor:pointer}.project-gstc-gantt .project-gstc-edit .project-gstc-edit-info .project-gstc-edit-btns .zoom:hover{color:#57a3f3}.project-gstc-gantt .project-gstc-edit .project-gstc-edit-small{border:1px solid #e4e4e4;background:#ffffff;padding:6px 12px;display:flex;align-items:center}.project-gstc-gantt .project-gstc-edit .project-gstc-edit-small .project-gstc-edit-text{cursor:pointer;text-decoration:underline;color:#444;margin-right:8px}.project-gstc-gantt .project-gstc-edit .project-gstc-edit-small .project-gstc-edit-text:hover{color:#57a3f3}.project-gstc-gantt .project-gstc-edit .project-gstc-edit-small .ivu-btn{margin-left:4px;font-size:13px}.project-gstc-gantt .ivu-dropdown-item.dropdown-active{color:#058ce4}.project-list{flex:1;height:100%;display:flex;flex-direction:column;align-items:flex-start}.project-list .list-search{width:100%;flex-shrink:0;display:flex;align-items:center;justify-content:center;height:54px;padding:0 12px;background-color:#f8f8f8}.project-list .list-search .search-wrapper{flex:1;background-color:#fff;padding:0 8px;margin:0 4px;border-radius:12px;overflow:hidden}.project-list .list-search .search-wrapper .search-pre{width:100%;height:100%;display:flex;align-items:center;justify-content:center}.project-list .list-search .search-wrapper .search-pre .common-loading{width:14px;height:14px;margin:0}.project-list .list-search .search-wrapper .ivu-input{border-color:transparent;background-color:transparent}.project-list .list-search .search-wrapper .ivu-input:hover,.project-list .list-search .search-wrapper .ivu-input:focus{box-shadow:none}.project-list>ul{flex:1;height:0;width:100%;overflow:auto;background-color:#f8f8f8;-webkit-user-select:none;-moz-user-select:none;user-select:none}.project-list>ul>li{padding:16px;margin:16px;border-radius:12px;background-color:#fff;list-style:none;position:relative}.project-list>ul>li:before{display:none;position:absolute;content:"";top:0;left:0;right:0;bottom:0;z-index:1;border:2px solid #84C56A;pointer-events:none;border-radius:12px}.project-list>ul>li.nothing,.project-list>ul>li.loading{text-align:center;height:100%;margin:0;padding:24px;border-radius:0;line-height:22px}.project-list>ul>li.loading{display:flex;align-items:flex-start;justify-content:center}.project-list>ul>li.loading .common-loading{width:20px;height:20px;margin:1px}.project-list>ul>li.operate:before{display:block}.project-list>ul>li .project-item{display:flex;align-items:center}.project-list>ul>li .project-item .item-left{flex:1;width:0}.project-list>ul>li .project-item .item-left .project-h1{display:flex;align-items:flex-start}.project-list>ul>li .project-item .item-left .project-h1 .project-name{font-size:14px;line-height:22px;color:#303133;word-break:break-all;text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.project-list>ul>li .project-item .item-left .project-h1 .icon-top{margin-top:4px;margin-left:6px;flex-shrink:0;width:14px;height:14px;background:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI1LjAuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IuWbvuWxgl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiCiAgICAgeT0iMHB4IgogICAgIHZpZXdCb3g9IjAgMCAyNCAyNCIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMjQgMjQ7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPHN0eWxlIHR5cGU9InRleHQvY3NzIj4KCS5zdDB7ZmlsbDojOEJDRjcwO30KPC9zdHlsZT4wCiAgICA8cGF0aCBjbGFzcz0ic3QwIiBkPSJNMjAuNyw4LjFjLTEuNS0xLjUtNC40LTQuNC00LjQtNC40Yy0xLjItMS4yLTIuNS0xLjQtMy40LTAuN2MtMC41LDAuNC0wLjcsMC45LTAuOCwxLjRjLTAuMSwwLjUtMC40LDEtMC44LDEuMwoJbC0wLjEsMC4xYy0yLDEuNS00LjMsMi44LTYuOCwzLjJDMy45LDkuMiwzLjMsOS41LDMsMTBjLTAuNiwwLjktMC40LDIuMSwwLjMsMi45bDMuNCwzLjRjMCwwLDAsMCwwLDBsLTMuMSwzLjEKCWMtMC4zLDAuMy0wLjMsMC44LDAsMS4xYzAuMSwwLjEsMC4zLDAuMiwwLjUsMC4yYzAuMiwwLDAuNC0wLjEsMC41LTAuMmwzLjEtMy4xYzAsMCwwLDAsMCwwbDIuOSwyLjljMS4zLDEuMywyLjUsMS41LDMuNCwwLjkKCWMwLjQtMC4zLDAuNy0wLjcsMC45LTEuMmMwLjYtMi4zLDEuNC00LjYsMi44LTYuNWwwLjUtMC43YzAuMy0wLjQsMC44LTAuOCwxLjMtMC44YzAuNS0wLjEsMS4xLTAuMywxLjQtMC44CglDMjEuNywxMC4yLDIxLjUsOC45LDIwLjcsOC4xeiIvPgo8L3N2Zz4K) no-repeat center center;background-size:contain}.project-list>ul>li .project-item .item-left .project-h1 .num{margin-top:1px;margin-left:6px;flex-shrink:0;font-style:normal;display:inline-block;background-color:#fd9c9b26;color:#ff7559;padding:0 5px;min-width:10px;height:20px;line-height:20px;text-align:center;border-radius:10px;box-sizing:content-box;font-weight:500;font-size:14px;white-space:nowrap}.project-list>ul>li .project-item .item-left .project-h2{margin-top:4px;line-height:20px;font-size:12px;word-break:break-all;text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;color:#909399}.project-list>ul>li .project-item .item-right{flex-shrink:0;display:flex;align-items:center;margin-left:28px}.project-list>ul>li .project-item .item-right .ivu-chart-circle .ivu-icon{font-size:40px;font-weight:900;color:#84c56a33}.project-list>ul>li .project-item .item-right .ivu-chart-circle .percent-text{color:#84c56a;font-weight:500}.project-list .operate-position{position:absolute;top:0;left:0;width:1px;opacity:0;visibility:hidden;pointer-events:none}.project-log .log-title{display:none}.project-log.is-drawer{position:absolute;top:0;left:0;right:0;bottom:0;padding:20px;overflow:auto}.project-log.is-drawer .log-title{color:#303133;font-size:20px;font-weight:500;line-height:1;margin-bottom:24px}.project-log .logs-activity{position:relative;word-break:break-all;padding:12px}.project-log .logs-activity>li{list-style:none;padding-top:0}.project-log .logs-activity>li.logs-loading,.project-log .logs-activity>li.logs-more,.project-log .logs-activity>li.logs-none{height:22px;line-height:22px}.project-log .logs-activity>li.logs-loading{display:flex}.project-log .logs-activity>li.logs-loading .common-loading{margin:0}.project-log .logs-activity>li.logs-more{cursor:pointer}.project-log .logs-activity>li.logs-more:hover{color:#048be0}.project-log .logs-activity>li.logs-none{cursor:pointer;color:#bbb}.project-log .logs-activity>li .logs-date{color:#0000005c;padding-bottom:14px}.project-log .logs-activity>li .logs-section{margin:4px}.project-log .logs-activity>li .logs-section .ivu-timeline>li{padding-bottom:8px}.project-log .logs-activity>li .logs-section .ivu-timeline>li:last-child{padding-bottom:0}.project-log .logs-activity>li .logs-section .ivu-timeline>li .ivu-timeline-item-head-custom{position:static;left:auto;margin-top:8px;margin-left:-13px;margin-right:6px;width:auto;min-width:40px}.project-log .logs-activity>li .logs-section .ivu-timeline>li .ivu-timeline-item-content{padding-left:20px;margin-top:-5px}.project-log .logs-activity>li .logs-dot{width:auto;height:18px;margin-left:10px;display:flex}.project-log .logs-activity>li .logs-dot .avatar-name.auto{color:#9599a1}.project-log .logs-activity>li .log-summary{position:relative;padding:4px 0 4px 12px}.project-log .logs-activity>li .log-summary>span,.project-log .logs-activity>li .log-summary>a{padding-right:6px;word-wrap:break-word;word-break:break-word}.project-log .logs-activity>li .log-summary .log-text{display:inline-block;color:#000000b8}.project-log .logs-activity>li .log-summary .log-text .change-value:hover{border-bottom:1px dotted rgba(0,0,0,.3)}.project-log .logs-activity>li .log-summary .log-text .detail-user{display:inline-block;vertical-align:top}.project-log .logs-activity>li .log-summary .log-text .detail-user .detail-user-wrap{display:flex}.project-log .logs-activity>li .log-summary .log-text .detail-user .detail-user-wrap .common-avatar{margin:0 2px}.project-log .logs-activity>li .log-summary .log-operation>button{font-size:12px}.project-log .logs-activity>li .log-summary .log-operation>button+button{margin-left:4px}.project-log .logs-activity>li .log-summary .log-time{color:#0000004d;font-size:12px}.project-log .logs-activity>li .log-task{margin-left:12px;margin-bottom:6px;opacity:.6;cursor:pointer}.project-log .logs-activity>li .log-task:hover{opacity:1}.project-log .logs-activity>li .log-task:hover>em{color:#84c56a}.project-log .logs-activity>li .log-task>em{display:inline-block;font-style:normal;font-size:12px;line-height:18px;height:18px;max-width:100%;color:#909399;border-radius:5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-management{position:absolute;top:0;left:0;right:0;bottom:0;padding:20px;display:flex;flex-direction:column}.project-management .management-title{color:#303133;font-size:20px;font-weight:500;line-height:1;margin-bottom:24px;display:flex;align-items:center}.project-management .management-title .title-icon{display:flex;align-items:center;width:14px;height:14px;margin-left:4px;margin-top:2px}.project-management .management-title .title-icon>i{cursor:pointer}.project-management .project-name{display:flex;align-items:center}.project-management .project-name .ivu-tag{height:18px;line-height:18px;padding:0 4px;transform:scale(.8);transform-origin:right center;flex-shrink:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-management .project-percent{line-height:1}.project-management .project-percent .ivu-progress{margin-top:2px}.project-management .table-page-box{flex:1;height:0}.project-panel{display:flex;flex-direction:column}.project-panel .project-titbox{width:100%;padding:32px 32px 4px}.project-panel .project-titbox .project-title{float:left;display:flex;align-items:center;margin-bottom:8px}.project-panel .project-titbox .project-title .project-back{display:none}.project-panel .project-titbox .project-title>h1{color:#303133;font-size:28px;font-weight:600}.project-panel .project-titbox .project-title .project-load{display:flex;align-items:center;margin-left:18px}.project-panel .project-titbox .project-title .project-load .common-loading{width:22px;height:22px}.project-panel .project-titbox .project-icons{float:right;display:flex;align-items:center;margin-top:3px;margin-bottom:8px}.project-panel .project-titbox .project-icons>li{list-style:none;display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;position:relative;margin-left:16px;cursor:pointer;transition:box-shadow .3s}.project-panel .project-titbox .project-icons>li:hover{box-shadow:0 0 6px #ccc}.project-panel .project-titbox .project-icons>li.cursor-default{cursor:default}.project-panel .project-titbox .project-icons>li.project-avatar{width:auto;min-width:36px}.project-panel .project-titbox .project-icons>li.project-avatar:hover{box-shadow:none}.project-panel .project-titbox .project-icons>li.project-avatar>ul{display:flex;align-items:center}.project-panel .project-titbox .project-icons>li.project-avatar>ul>li{list-style:none;margin-left:-6px;transition:transform .2s}.project-panel .project-titbox .project-icons>li.project-avatar>ul>li .ivu-badge{position:absolute;top:-5px;left:23px;transform:scale(.8)}.project-panel .project-titbox .project-icons>li.project-avatar>ul>li:hover{transform:scale(1.05)}.project-panel .project-titbox .project-icons>li.project-avatar>ul>li:first-child{margin-left:0}.project-panel .project-titbox .project-icons>li.project-avatar>ul>li.more{display:flex;align-items:center;justify-content:center;font-size:17px;width:30px;height:32px;color:#aaa;background-color:transparent;border-color:transparent;transform:scale(1)!important;z-index:1}.project-panel .project-titbox .project-icons>li.project-icon{border-radius:50%;background-color:#f2f3f5}.project-panel .project-titbox .project-icons>li.project-icon .menu-icon{font-size:20px;width:36px;height:36px;line-height:36px}.project-panel .project-titbox .project-icons>li.project-icon .menu-badge{position:absolute;top:-6px;left:20px;z-index:1;transform:scale(.8)}.project-panel .project-titbox .project-icons>li.project-icon .search-input{margin:2px 0;width:170px}.project-panel .project-titbox .project-icons>li.project-icon.active{color:#fff;background-color:#84c56a}.project-panel .project-subbox{width:100%;padding:0 32px}.project-panel .project-subbox .project-subtitle{float:left;color:#909399;line-height:24px;margin:6px 0}.project-panel .project-subbox .project-switch{float:right;margin:3px 0 3px 32px;display:flex;align-items:flex-end}.project-panel .project-subbox .project-switch .project-checkbox{display:flex;align-items:center;margin-right:14px;opacity:.9;height:30px}.project-panel .project-subbox .project-switch .project-checkbox .ivu-checkbox-focus{box-shadow:none}.project-panel .project-subbox .project-switch .project-select{display:flex;align-items:center;margin-right:14px;opacity:.9;height:30px}.project-panel .project-subbox .project-switch .project-select .project-flow{font-size:13px;height:28px;line-height:26px;padding:0 8px;border-radius:4px;background:#f7f7f7;border:1px solid #e8eaec;display:flex;align-items:center;justify-content:center;cursor:pointer}.project-panel .project-subbox .project-switch .project-select .project-flow.start{background-color:#ff70701a;border-color:#ff70701a;color:#ff7070}.project-panel .project-subbox .project-switch .project-select .project-flow.progress{background-color:#fc984b1a;border-color:#fc984b1a;color:#fc984b}.project-panel .project-subbox .project-switch .project-select .project-flow.test{background-color:#2f99ec1a;border-color:#2f99ec1a;color:#2f99ec}.project-panel .project-subbox .project-switch .project-select .project-flow.end{background-color:#0bc0371a;border-color:#0bc0371a;color:#0bc037}.project-panel .project-subbox .project-switch .project-switch-button{display:flex;align-items:center;background-color:#fff;border-radius:6px;height:30px;position:relative;transition:all .2s}.project-panel .project-subbox .project-switch .project-switch-button .active{color:#84c56a}.project-panel .project-subbox .project-switch .project-switch-button .slider{position:absolute;top:0;left:0;width:33.3%;height:100%;z-index:0;color:#84c56a;border-radius:6px;border:1px solid #84C56A;background-color:#84c56a1a;transition:left .2s}.project-panel .project-subbox .project-switch .project-switch-button:hover{box-shadow:0 0 10px #e6ecfa}.project-panel .project-subbox .project-switch .project-switch-button>div{z-index:1;width:32px;height:30px;display:flex;align-items:center;justify-content:center;border-radius:6px;cursor:pointer;color:#606266}.project-panel .project-subbox .project-switch .project-switch-button>div>i{font-size:17px}.project-panel .project-column{display:flex;height:100%;padding-top:15px;overflow-x:auto;overflow-y:hidden}.project-panel .project-column>ul{display:inline-flex;justify-content:space-between;align-items:flex-start}.project-panel .project-column>ul>li{flex-shrink:0;list-style:none;width:300px;height:100%;display:flex;flex-direction:column}.project-panel .project-column>ul>li:first-child{margin-left:22px}.project-panel .project-column>ul>li:last-child{margin-right:22px}.project-panel .project-column>ul>li.add-column{height:36px;color:#888;cursor:pointer;background-color:#f2f3f5;border-radius:4px}.project-panel .project-column>ul>li.add-column .add-column-text{display:flex;flex-direction:row;align-items:center;line-height:36px;padding:0 12px}.project-panel .project-column>ul>li.add-column .add-column-text>i{font-size:16px;padding-right:8px}.project-panel .project-column>ul>li.add-column .add-column-text:hover{color:#777}.project-panel .project-column>ul>li.add-column .add-column-input{display:none;align-items:center;height:36px}.project-panel .project-column>ul>li.add-column .add-column-input .ivu-input{height:36px;padding:4px 10px}.project-panel .project-column>ul>li.add-column .add-column-input .ivu-input-icon{width:36px;height:36px;line-height:36px}.project-panel .project-column>ul>li.add-column.show-input .add-column-text{display:none}.project-panel .project-column>ul>li.add-column.show-input .add-column-input{display:flex}.project-panel .project-column>ul>li .column-head{display:flex;align-items:center;padding:7px 10px;margin:0 10px;background-color:#f2f3f5;border-radius:4px}.project-panel .project-column>ul>li .column-head .column-head-title{flex:1;width:0;display:flex;align-items:center;font-weight:500}.project-panel .project-column>ul>li .column-head .column-head-title>span{font-size:15px}.project-panel .project-column>ul>li .column-head .column-head-title>em{color:#888;font-style:normal;font-size:14px;padding-left:6px}.project-panel .project-column>ul>li .column-head .column-head-icon{display:flex;align-items:center;margin-left:16px}.project-panel .project-column>ul>li .column-head .column-head-icon .loading,.project-panel .project-column>ul>li .column-head .column-head-icon .ivu-icon{width:24px;height:24px;display:flex;align-items:center;justify-content:center;padding-right:8px}.project-panel .project-column>ul>li .column-head .column-head-icon .loading .common-loading,.project-panel .project-column>ul>li .column-head .column-head-icon .ivu-icon .common-loading{width:16px;height:16px;margin:0}.project-panel .project-column>ul>li .column-head .column-head-icon .ivu-icon{cursor:pointer;font-size:16px;color:#aaa;font-weight:600;transition:color .3s}.project-panel .project-column>ul>li .column-head .column-head-icon .ivu-icon:hover{color:#888}.project-panel .project-column>ul>li .column-head .column-head-icon .last{padding-right:0}.project-panel .project-column>ul>li .column-head.custom-color{color:#fff}.project-panel .project-column>ul>li .column-head.custom-color .column-head-title>em{color:#fff9}.project-panel .project-column>ul>li .column-head.custom-color .ivu-icon{color:#ffffff80}.project-panel .project-column>ul>li .column-head.custom-color .ivu-icon:hover{color:#ffffffe6}.project-panel .project-column>ul>li .column-task{flex:1;display:flex;flex-direction:column;overflow-x:hidden}.project-panel .project-column>ul>li .column-task .task-list>div:last-child{margin-bottom:16px}.project-panel .project-column>ul>li .column-task .task-item{cursor:pointer;margin:16px 10px 0;background-color:#fff;border-radius:12px;padding:12px;transition:box-shadow .3s,opacity .3s;position:relative}.project-panel .project-column>ul>li .column-task .task-item:hover{box-shadow:0 0 10px #e6ecfa}.project-panel .project-column>ul>li .column-task .task-item .task-head{display:flex;align-items:flex-start}.project-panel .project-column>ul>li .column-task .task-item .task-head .task-title{flex:1;padding-top:1px}.project-panel .project-column>ul>li .column-task .task-item .task-head .task-title>span{float:left;font-size:12px;height:20px;line-height:18px;padding:0 3px;border-radius:3px;color:#84c56a;border:1px solid #84C56A;margin-right:4px;text-align:center}.project-panel .project-column>ul>li .column-task .task-item .task-head .task-title>span.start{background-color:#ff70701a;border-color:#ff70701a;color:#ff7070}.project-panel .project-column>ul>li .column-task .task-item .task-head .task-title>span.progress{background-color:#fc984b1a;border-color:#fc984b1a;color:#fc984b}.project-panel .project-column>ul>li .column-task .task-item .task-head .task-title>span.test{background-color:#2f99ec1a;border-color:#2f99ec1a;color:#2f99ec}.project-panel .project-column>ul>li .column-task .task-item .task-head .task-title>span.end{background-color:#0bc0371a;border-color:#0bc0371a;color:#0bc037}.project-panel .project-column>ul>li .column-task .task-item .task-head .task-title>pre{display:block;margin:0;padding:0;line-height:1.5;white-space:pre-wrap;word-wrap:break-word;word-break:break-word}.project-panel .project-column>ul>li .column-task .task-item .task-head .task-menu{margin-left:8px;width:22px;height:22px}.project-panel .project-column>ul>li .column-task .task-item .task-head .task-menu .loading,.project-panel .project-column>ul>li .column-task .task-item .task-head .task-menu .ivu-icon{width:22px;height:22px;display:flex;align-items:center;justify-content:center}.project-panel .project-column>ul>li .column-task .task-item .task-head .task-menu .loading .common-loading,.project-panel .project-column>ul>li .column-task .task-item .task-head .task-menu .ivu-icon .common-loading{width:16px;height:16px;margin:0}.project-panel .project-column>ul>li .column-task .task-item .task-head .task-menu .ivu-icon{font-size:22px}.project-panel .project-column>ul>li .column-task .task-item .task-head .task-menu .ivu-icon.uncomplete{color:#777}.project-panel .project-column>ul>li .column-task .task-item .task-head .task-menu .ivu-icon.uncomplete:hover{color:#555}.project-panel .project-column>ul>li .column-task .task-item .task-head.has-desc .task-title{font-weight:600}.project-panel .project-column>ul>li .column-task .task-item .task-desc>pre{color:#909399;padding:0;margin:10px 0 0;line-height:20px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.project-panel .project-column>ul>li .column-task .task-item .task-tags{margin-top:10px}.project-panel .project-column>ul>li .column-task .task-item .task-users{margin-top:10px;display:flex;align-items:center}.project-panel .project-column>ul>li .column-task .task-item .task-users>ul{flex:1;width:0;display:flex;align-items:center;overflow:auto;margin-right:24px}.project-panel .project-column>ul>li .column-task .task-item .task-users>ul>li{list-style:none;margin-left:-6px;width:32px;height:32px}.project-panel .project-column>ul>li .column-task .task-item .task-users>ul>li:first-child{margin-left:0}.project-panel .project-column>ul>li .column-task .task-item .task-users>ul>li.no-owner{width:auto}.project-panel .project-column>ul>li .column-task .task-item .task-users>ul>li.no-owner .ivu-btn-small{font-size:12px}.project-panel .project-column>ul>li .column-task .task-item .task-users .task-icon{margin-left:6px;font-size:12px}.project-panel .project-column>ul>li .column-task .task-item .task-users .task-icon .ivu-icon{margin-left:1px;font-size:14px}.project-panel .project-column>ul>li .column-task .task-item .task-progress{margin-top:10px;display:flex;align-items:center;justify-content:flex-end}.project-panel .project-column>ul>li .column-task .task-item .task-progress .task-sub-num{font-size:12px;margin-right:8px;color:#777}.project-panel .project-column>ul>li .column-task .task-item .task-progress .task-time{flex-shrink:0;color:#777;background-color:#eaedf2;border:1px solid #EAEDF2;padding:0 3px;margin-left:18px;font-size:12px;border-radius:3px;display:flex;align-items:center}.project-panel .project-column>ul>li .column-task .task-item .task-progress .task-time.overdue,.project-panel .project-column>ul>li .column-task .task-item .task-progress .task-time.today{color:#fff}.project-panel .project-column>ul>li .column-task .task-item .task-progress .task-time.overdue{font-weight:600;background-color:#ed4014;border-color:#ed4014}.project-panel .project-column>ul>li .column-task .task-item .task-progress .task-time.today{font-weight:500;background-color:#f90;border-color:#f90}.project-panel .project-column>ul>li .column-task .task-item .task-progress .task-time .taskfont{margin-right:3px;font-size:12px}.project-panel .project-column>ul>li .column-task .task-item .priority-color{position:absolute;top:12px;left:0;width:3px;height:42px;max-height:50%;border-radius:2px}.project-panel .project-column>ul>li .column-task .task-item.additem{cursor:default;padding:0}.project-panel .project-column>ul>li .column-task .task-item.complete{opacity:.5}.project-panel .project-column>ul>li .column-task .task-item.complete:hover{opacity:.8}.project-panel .project-column>ul>li .column-task .task-item.complete .task-head .task-title{text-decoration:line-through}.project-panel .project-column>ul>li .column-task .task-item.complete .task-desc,.project-panel .project-column>ul>li .column-task .task-item.complete .task-tags,.project-panel .project-column>ul>li .column-task .task-item.complete .task-users,.project-panel .project-column>ul>li .column-task .task-item.complete .task-progress,.project-panel .project-column>ul>li .column-task .task-item.complete .priority-color{display:none}.project-panel .project-column>ul>li .column-task .task-item.hidden{display:none}.project-panel .project-table{height:100%;margin-top:18px;overflow-x:auto}.project-panel .project-table .task-row{background-color:#fff;border-bottom:1px solid #F4F4F5;position:relative}.project-panel .project-table .task-row>div{display:flex;align-items:center;padding:8px 12px;border-right:1px solid #F4F4F5}.project-panel .project-table .task-row>div:first-child{padding-left:32px}.project-panel .project-table .task-row>div:last-child{border-right:0}.project-panel .project-table .task-row>div.complete .item-title{color:#aaa;text-decoration:line-through}.project-panel .project-table .task-row .priority-color{position:absolute;top:0;left:0;bottom:-1px;width:3px}.project-panel .project-table .project-table-head,.project-panel .project-table .project-table-body{min-width:800px;margin:0 32px 12px;border-radius:5px;border:1px solid #F4F4F5;border-bottom:0;overflow:hidden}.project-panel .project-table .project-table-head.project-table-hide .task-rows,.project-panel .project-table .project-table-body.project-table-hide .task-rows{display:none}.project-panel .project-table .project-table-head.project-table-hide .row-title .taskfont,.project-panel .project-table .project-table-body.project-table-hide .row-title .taskfont{transform:rotate(-90deg)}.project-panel .project-table .project-table-head .task-row>div{color:#888;font-size:13px;font-weight:500}.project-panel .project-table .project-table-head .task-row>div .sort{display:flex;align-items:center;cursor:pointer}.project-panel .project-table .project-table-head .task-row>div .task-sort{display:inline-block;width:14px;height:12px;margin-top:-1px;margin-left:1px;vertical-align:middle;overflow:hidden;cursor:pointer;position:relative}.project-panel .project-table .project-table-head .task-row>div .task-sort>i{display:block;height:6px;line-height:6px;overflow:hidden;position:absolute;color:#c5c8ce;transition:color .2s ease-in-out;font-size:16px}.project-panel .project-table .project-table-head .task-row>div .task-sort>i.on{color:#84c56a}.project-panel .project-table .project-table-head .task-row>div .task-sort>i:hover{color:inherit}.project-panel .project-table .project-table-head .task-row>div .task-sort>i:first-child{top:0}.project-panel .project-table .project-table-head .task-row>div .task-sort>i:last-child{bottom:0}.project-panel .project-table .project-table-body{transition:box-shadow .3s}.project-panel .project-table .project-table-body:hover{box-shadow:0 0 10px #e6ecfa}.project-panel .project-table .project-table-body .task-row>div{padding:10px 12px}.project-panel .project-table .project-table-body .task-row>div.row-title{font-size:14px;font-weight:500;color:#303133;padding-left:14px}.project-panel .project-table .project-table-body .task-row>div.row-title .taskfont{cursor:pointer;transition:transform .3s;font-size:12px}.project-panel .project-table .project-table-body .task-row>div.row-title .row-h1{padding-left:18px}.project-panel .project-table .project-table-body .task-row>div.row-title .row-num{color:#909399;padding-left:6px}.project-panel .project-table .project-table-body .task-row>div.row-name{align-items:flex-start;padding:12px 12px 12px 34px;line-height:24px}.project-panel .project-table .project-table-body .task-row>div.row-name .loading{height:24px}.project-panel .project-table .project-table-body .task-row>div.row-name .ivu-icon{cursor:pointer;font-size:16px}.project-panel .project-table .project-table-body .task-row>div.row-name .ivu-icon.sub-icon{font-size:16px;width:16px;height:16px;margin-top:4px;margin-left:-20px;margin-right:4px;color:#cfcfcf;transition:transform .2s}.project-panel .project-table .project-table-body .task-row>div.row-name .ivu-icon.sub-icon.active{transform:rotate(90deg)}.project-panel .project-table .project-table-body .task-row>div.row-name .ivu-icon.uncomplete{color:#ccc}.project-panel .project-table .project-table-body .task-row>div.row-name .item-title{flex:1;padding:0 22px 0 8px;cursor:pointer}.project-panel .project-table .project-table-body .task-row>div.row-name .item-title>span{font-size:12px;height:18px;min-width:20px;line-height:16px;padding:0 2px;border-radius:3px;color:#84c56a;border:1px solid #84C56A;display:inline-block;vertical-align:top;margin-top:3px;margin-right:3px;text-align:center}.project-panel .project-table .project-table-body .task-row>div.row-name .item-title>span.start{background-color:#ff70701a;border-color:#ff70701a;color:#ff7070}.project-panel .project-table .project-table-body .task-row>div.row-name .item-title>span.progress{background-color:#fc984b1a;border-color:#fc984b1a;color:#fc984b}.project-panel .project-table .project-table-body .task-row>div.row-name .item-title>span.test{background-color:#2f99ec1a;border-color:#2f99ec1a;color:#2f99ec}.project-panel .project-table .project-table-body .task-row>div.row-name .item-title>span.end{background-color:#0bc0371a;border-color:#0bc0371a;color:#0bc037}.project-panel .project-table .project-table-body .task-row>div.row-name .item-icons{display:flex;align-items:center;margin-left:4px;flex-shrink:0}.project-panel .project-table .project-table-body .task-row>div.row-name .item-icons .item-icon{display:flex;font-size:12px;margin-left:16px;color:#aaa;cursor:pointer}.project-panel .project-table .project-table-body .task-row>div.row-name .item-icons .item-icon .taskfont{font-size:12px}.project-panel .project-table .project-table-body .task-row>div.row-name .item-icons .item-icon>em{font-style:normal;margin-left:4px}.project-panel .project-table .project-table-body .task-row>div.row-column .el-dropdown,.project-panel .project-table .project-table-body .task-row>div.row-priority .el-dropdown{display:flex;align-items:center;overflow:hidden}.project-panel .project-table .project-table-body .task-row>div.row-column .task-column,.project-panel .project-table .project-table-body .task-row>div.row-column .task-priority,.project-panel .project-table .project-table-body .task-row>div.row-priority .task-column,.project-panel .project-table .project-table-body .task-row>div.row-priority .task-priority{cursor:pointer}.project-panel .project-table .project-table-body .task-row>div.row-column .task-column{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-panel .project-table .project-table-body .task-row>div.row-user{padding:8px}.project-panel .project-table .project-table-body .task-row>div.row-user>ul{height:32px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:flex;align-items:center;cursor:pointer}.project-panel .project-table .project-table-body .task-row>div.row-user>ul>li{max-width:100%;list-style:none;display:inline-block;margin-left:-6px}.project-panel .project-table .project-table-body .task-row>div.row-user>ul>li:first-child{margin-left:0}.project-panel .project-table .project-table-body .task-row>div.row-user>ul>li.no-owner{height:32px;display:flex;align-items:center}.project-panel .project-table .project-table-body .task-row>div.row-time .task-time{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}.project-panel .project-table .project-table-body .task-row>div.row-time .task-time.overdue,.project-panel .project-table .project-table-body .task-row>div.row-time .task-time.today{color:#fff;padding:0 4px;border:1px solid transparent;font-size:13px;border-radius:3px}.project-panel .project-table .project-table-body .task-row>div.row-time .task-time.overdue{font-weight:600;background-color:#ed4014;border-color:#ed4014}.project-panel .project-table .project-table-body .task-row>div.row-time .task-time.today{font-weight:500;background-color:#f90;border-color:#f90}.project-panel .project-table .project-table-body .task-rows .task-rows{position:relative;overflow:hidden}.project-panel .project-table .project-table-body .task-rows .task-rows:before{content:"";position:absolute;top:0;left:0;right:0;box-shadow:#00000014 0 0 8px 1px;z-index:1}.project-panel .project-table .project-table-body .task-rows .task-rows .task-row{background-color:#fcfcfd}.project-panel .project-table .project-table-body .task-rows .task-rows .task-row .priority-color{display:none}.project-panel .project-table .project-table-body .task-rows .task-rows .task-row>div.row-name{padding-left:56px}.project-panel .project-table .project-table-body .task-rows .task-rows .task-row>div.row-name .item-title{color:#6b6e72}.project-panel .project-table .project-table-body .task-rows .task-rows .task-row>div.row-column>div,.project-panel .project-table .project-table-body .task-rows .task-rows .task-row>div.row-priority>div{display:none}.project-panel .project-table .project-table-body .task-rows .task-rows .task-add-row{background-color:#fcfcfd}.project-panel .project-table .project-table-body .task-rows .task-rows .task-add-row>div.row-add{padding-left:56px}.project-panel .project-gantt{height:100%;position:relative}.project-panel-more-dropdown-menu>li .item{display:flex;align-items:center}.project-panel-more-dropdown-menu>li .item>i{width:18px;height:18px;line-height:18px;font-size:18px;margin-right:8px;padding:0;color:#bbb}.project-panel-more-dropdown-menu>li .item>i.ivu-icon{font-size:16px}.project-panel-wait-remove{margin-top:6px}.project-panel-wait-remove>li{display:flex;align-items:center;list-style:none;line-height:26px}.project-panel-wait-remove>li:first-child{font-weight:600}.project-panel-flow-cascader{max-height:none!important}.project-panel-flow-cascader .ivu-cascader-menu{height:auto;max-height:360px;overflow:auto}.project-panel-flow-cascader .ivu-cascader-menu-item{color:#606266!important}.project-panel-flow-cascader .ivu-cascader-menu-item.start{color:#ff7070!important}.project-panel-flow-cascader .ivu-cascader-menu-item.progress{color:#fc984b!important}.project-panel-flow-cascader .ivu-cascader-menu-item.test{color:#2f99ec!important}.project-panel-flow-cascader .ivu-cascader-menu-item.end{color:#0bc037!important}.project-panel-flow-cascader .ivu-cascader-menu-item.user-0{margin-top:12px;position:relative}.project-panel-flow-cascader .ivu-cascader-menu-item.user-0:before{content:"";position:absolute;top:-6px;left:0;right:0;border-top:1px solid #EBEEF5}.project-panel-flow-cascader .ivu-cascader-menu-item:hover.project-panel-flow-cascader-item.start,.project-panel-flow-cascader .ivu-cascader-menu-item.ivu-cascader-menu-item-active.project-panel-flow-cascader-item.start{background-color:#ff70701a}.project-panel-flow-cascader .ivu-cascader-menu-item:hover.project-panel-flow-cascader-item.progress,.project-panel-flow-cascader .ivu-cascader-menu-item.ivu-cascader-menu-item-active.project-panel-flow-cascader-item.progress{background-color:#fc984b1a}.project-panel-flow-cascader .ivu-cascader-menu-item:hover.project-panel-flow-cascader-item.test,.project-panel-flow-cascader .ivu-cascader-menu-item.ivu-cascader-menu-item-active.project-panel-flow-cascader-item.test{background-color:#2f99ec1a}.project-panel-flow-cascader .ivu-cascader-menu-item:hover.project-panel-flow-cascader-item.end,.project-panel-flow-cascader .ivu-cascader-menu-item.ivu-cascader-menu-item-active.project-panel-flow-cascader-item.end{background-color:#0bc0371a}@media (max-width: 768px){.project-panel .project-titbox{position:sticky;top:0;z-index:2;background-color:#fafafa;padding:12px 16px 4px}.project-panel .project-titbox .project-title{float:left;max-width:100%}.project-panel .project-titbox .project-title .project-back{flex-shrink:0;display:flex;align-items:center;justify-content:center;margin-left:-16px;width:52px}.project-panel .project-titbox .project-title .project-back>i{font-size:26px}.project-panel .project-titbox .project-title>h1{font-size:22px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.project-panel .project-titbox .project-icons{float:right;margin-left:24px;margin-top:4px;justify-content:flex-end}.project-panel .project-subbox{padding:0 16px}.project-panel .project-subbox .project-subtitle{word-break:break-all;text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.project-panel .project-subbox .project-switch{margin-left:0;justify-content:flex-end}.project-panel .project-column::-webkit-scrollbar{display:none}.project-panel .project-column>ul>li{width:320px}.project-panel .project-column>ul>li:first-child{margin-left:10px}.project-panel .project-column>ul>li:last-child{margin-right:10px}.project-panel .project-table .project-table-head,.project-panel .project-table .project-table-body{min-width:768px;margin:0 24px 12px}}.project-workflow{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;flex-direction:column}.project-workflow .workflow-title{color:#303133;font-size:20px;font-weight:500;line-height:1;padding:20px 20px 24px;display:flex;align-items:center}.project-workflow .workflow-title .title-icon{display:flex;align-items:center;width:14px;height:14px;margin-left:4px;margin-top:2px}.project-workflow .workflow-title .title-icon>i{cursor:pointer}.project-workflow .workflow-content{flex:1;padding:0 20px;overflow:auto}.project-workflow .workflow-content .ivu-collapse{min-width:700px}.project-workflow .workflow-content .ivu-collapse-header{display:flex;align-items:center}.project-workflow .workflow-content .workflow-item{flex:1;display:flex;align-items:center}.project-workflow .workflow-content .workflow-item .workflow-name{flex-shrink:0;margin-right:24px}.project-workflow .workflow-content .workflow-item .workflow-status{flex:1;display:flex;align-items:center}.project-workflow .workflow-content .workflow-item .workflow-status>div{height:24px;line-height:22px;margin-right:8px;padding:0 8px;border:1px solid #e8eaec;border-radius:3px;background:#f7f7f7;font-size:12px;vertical-align:middle;overflow:hidden}.project-workflow .workflow-content .workflow-item .workflow-status>div.start{background-color:#ff70701a;border-color:#ff70701a;color:#ff7070}.project-workflow .workflow-content .workflow-item .workflow-status>div.progress{background-color:#fc984b1a;border-color:#fc984b1a;color:#fc984b}.project-workflow .workflow-content .workflow-item .workflow-status>div.test{background-color:#2f99ec1a;border-color:#2f99ec1a;color:#2f99ec}.project-workflow .workflow-content .workflow-item .workflow-status>div.end{background-color:#0bc0371a;border-color:#0bc0371a;color:#0bc037}.project-workflow .workflow-content .workflow-item .workflow-save{margin:0 8px;flex-shrink:0}.project-workflow .workflow-content .workflow-item .workflow-save>button{height:26px;line-height:24px;padding:0 13px;font-size:13px;margin-right:4px}.project-workflow .workflow-no{flex:1;padding:0 20px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#999}.project-workflow .workflow-no>button{margin-top:18px}.project-workflow .taskflow-config{display:flex;max-height:800px}.project-workflow .taskflow-config .taskflow-config-table{display:flex;width:100%;border-radius:4px;box-shadow:1px 0 3px #0000001a}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-left-container{position:relative;flex-shrink:0;width:246px;padding-top:16px;padding-bottom:16px;overflow-x:scroll;-ms-overflow-style:none}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-left-container:after{content:"";position:absolute;top:0;right:0;bottom:0;z-index:1;border-right:1px solid #f4f4f5}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-column-header{position:absolute;top:0;left:0;right:0;height:58px;padding:0 20px;font-size:16px;font-weight:700;line-height:58px}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-column-header.left-header{top:16px}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-column-body{margin-top:58px;height:calc(100% - 58px)}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-block{width:100%;padding:12px 0}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-block.hr{position:relative}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-block.hr:after{content:"";position:absolute;top:0;left:0;right:0;z-index:1;border-top:1px solid #f4f4f5}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-block .taskflow-config-table-block-title{padding:0 20px;height:40px;color:#8c8c8c;line-height:40px}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-block .ivu-radio-group{display:block;text-align:center}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-block .ivu-radio-group .ivu-radio-group-item{position:relative;display:flex;flex-direction:column;justify-content:center;width:100%;padding:0 20px;height:58px}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-block .ivu-checkbox-group{display:block;text-align:center}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-block .ivu-checkbox-group .ivu-checkbox-group-item,.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-block .taskflow-config-table-block-item{position:relative;display:flex;flex-direction:column;justify-content:center;width:100%;padding:0 20px;height:58px}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-block .taskflow-config-table-block-item.with-indicator:before{content:"";position:absolute;left:0;top:50%;transform:translateY(-50%);height:20px;width:4px;border-radius:4px}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-block .taskflow-config-table-block-item .title{font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-block .taskflow-config-table-block-item .subtitle{margin-top:2px;font-size:12px;color:#8c8c8c;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-block .taskflow-config-table-block-item.center{align-items:center}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-block .taskflow-config-table-block-item.radio-item>span{display:none}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-block .taskflow-config-table-block-item .transform-status-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-right-container{flex-grow:1;flex-direction:row;padding-top:16px;padding-bottom:16px;overflow-x:auto;overflow-y:hidden}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-list-wrapper,.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-right-container{display:flex}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column{position:relative;flex-shrink:0;width:210px;height:100%;margin-bottom:16px;margin-right:16px;border-radius:4px}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column:first-child{margin-left:20px}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column:hover .status-label-with-menu .more{opacity:1}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.addnew{display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px dashed #d9d9d9;cursor:pointer;color:#8c8c8c}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.addnew:hover{color:#777;border-color:#bfbfbf}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.column-border{border-width:1px;border-style:solid}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.start{border-color:#ff707033}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.start:hover{border-color:#ff7070b3}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.start .ivu-radio-checked .ivu-radio-inner{border-color:#ff7070;box-shadow:none}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.start .ivu-radio-inner:after{background-color:#ff7070}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.start .ivu-checkbox-checked .ivu-checkbox-inner{border-color:#ff7070;background-color:#ff7070}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.progress{border-color:#fc984b33}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.progress:hover{border-color:#fc984bb3}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.progress .ivu-radio-checked .ivu-radio-inner{border-color:#fc984b;box-shadow:none}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.progress .ivu-radio-inner:after{background-color:#fc984b}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.progress .ivu-checkbox-checked .ivu-checkbox-inner{border-color:#fc984b;background-color:#fc984b}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.test{border-color:#2f99ec33}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.test:hover{border-color:#2f99ecb3}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.test .ivu-radio-checked .ivu-radio-inner{border-color:#2f99ec;box-shadow:none}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.test .ivu-radio-inner:after{background-color:#2f99ec}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.test .ivu-checkbox-checked .ivu-checkbox-inner{border-color:#2f99ec;background-color:#2f99ec}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.end{border-color:#0bc03733}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.end:hover{border-color:#0bc037b3}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.end .ivu-radio-checked .ivu-radio-inner{border-color:#0bc037;box-shadow:none}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.end .ivu-radio-inner:after{background-color:#0bc037}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.end .ivu-checkbox-checked .ivu-checkbox-inner{border-color:#0bc037;background-color:#0bc037}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column .ivu-checkbox-disabled.ivu-checkbox-checked .ivu-checkbox-inner{background-color:#f3f3f3!important;border-color:#dcdee2!important}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-item{display:flex;align-items:center;padding:8px;height:58px;line-height:58px;cursor:move}.project-workflow .taskflow-config .taskflow-config-table .status-label-with-menu{max-width:100%;display:inline-flex;align-items:center;border-radius:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;position:relative;padding:0 32px;width:200px;height:36px;line-height:32px;font-size:14px;font-weight:400;justify-content:center}.project-workflow .taskflow-config .taskflow-config-table .status-label-with-menu:hover{font-weight:700}.project-workflow .taskflow-config .taskflow-config-table .status-label-with-menu.start{background-color:#ff70701a;color:#ff7070}.project-workflow .taskflow-config .taskflow-config-table .status-label-with-menu.progress{background-color:#fc984b1a;color:#fc984b}.project-workflow .taskflow-config .taskflow-config-table .status-label-with-menu.test{background-color:#2f99ec1a;color:#2f99ec}.project-workflow .taskflow-config .taskflow-config-table .status-label-with-menu.end{background-color:#0bc0371a;color:#0bc037}.project-workflow .taskflow-config .taskflow-config-table .status-label-with-menu .name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-workflow .taskflow-config .taskflow-config-table .status-label-with-menu .more{cursor:pointer;position:absolute;top:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;width:38px;font-size:18px;font-weight:400!important;opacity:.2;transition:opacity .3s}.project-workflow .taskflow-config .taskflow-config-table .status-label-with-menu .more.opacity{opacity:1}.project-workflow .taskflow-config .taskflow-config-table .status-label-with-menu .more .more-icon{display:flex;align-items:center}.taskflow-config-more-dropdown-menu .users{display:flex;padding:6px 0;margin:0 -8px;overflow:auto}.taskflow-config-more-dropdown-menu .users .common-avatar{max-width:100%;margin-right:-5px}.taskflow-config-more-dropdown-menu .item{display:flex;align-items:center}.taskflow-config-more-dropdown-menu .delete{color:red}.task-add .head{display:flex;align-items:center;padding:8px 0;margin-bottom:20px;position:relative}.task-add .head .ivu-cascader .ivu-cascader-label{width:auto;padding:0;font-size:15px;display:flex;align-items:center}.task-add .head .ivu-cascader .ivu-cascader-label:after{transition:all .2s;padding:6px;font-family:Ionicons,serif;content:"\f116";opacity:1}.task-add .head .ivu-cascader .ivu-cascader-arrow{display:none}.task-add .head .ivu-cascader .ivu-input{padding:4px 0;border:0;box-shadow:none;font-size:15px}.task-add .head .ivu-cascader .ivu-cascader-not-found-tip{padding:6px 12px}.task-add .head.empty .ivu-cascader .ivu-cascader-label:after{opacity:0}.task-add .head.visible .ivu-cascader .ivu-cascader-label:after{transform:rotate(180deg)}.task-add .task-add-form .title .ivu-input,.task-add .task-add-advanced .title .ivu-input{font-weight:500;font-size:24px;padding:4px 0;line-height:1.4;resize:none;border-color:transparent}.task-add .task-add-form .title .ivu-input:focus,.task-add .task-add-advanced .title .ivu-input:focus{box-shadow:none}.task-add .task-add-form .desc,.task-add .task-add-advanced .desc{margin-top:24px;overflow:auto}.task-add .task-add-form .desc div[contenteditable=true],.task-add .task-add-advanced .desc div[contenteditable=true]{outline:none}.task-add .task-add-form .desc .mce-content-body img,.task-add .task-add-advanced .desc .mce-content-body img{max-width:100%}.task-add .task-add-form .desc .mce-content-body pre,.task-add .task-add-advanced .desc .mce-content-body pre{padding:14px;margin:7px 0;overflow:auto;background:#f5f2f0;border-radius:5px}.task-add .task-add-form .desc .mce-content-body[data-mce-placeholder]:not(.mce-visualblocks):before,.task-add .task-add-advanced .desc .mce-content-body[data-mce-placeholder]:not(.mce-visualblocks):before{color:#bbb}.task-add .task-add-form .advanced-option,.task-add .task-add-advanced .advanced-option{padding-top:42px;z-index:1;display:flex;align-items:center}.task-add .task-add-form .advanced-option>button,.task-add .task-add-advanced .advanced-option>button{transition:margin .2s}.task-add .task-add-form .advanced-option>button.advanced,.task-add .task-add-advanced .advanced-option>button.advanced{margin-left:24px}.task-add .task-add-form .advanced-option>button:focus,.task-add .task-add-advanced .advanced-option>button:focus{box-shadow:none}.task-add .task-add-form .advanced-option .advanced-priority,.task-add .task-add-advanced .advanced-option .advanced-priority{display:flex;align-items:center;margin-left:24px;height:34px;overflow-y:hidden;overflow-x:auto}.task-add .task-add-form .advanced-option .advanced-priority::-webkit-scrollbar,.task-add .task-add-advanced .advanced-option .advanced-priority::-webkit-scrollbar{display:none}.task-add .task-add-form .advanced-option .advanced-priority>li,.task-add .task-add-advanced .advanced-option .advanced-priority>li{list-style:none;margin-left:3px}.task-add .task-add-form .advanced-option .advanced-priority>li .taskfont,.task-add .task-add-advanced .advanced-option .advanced-priority>li .taskfont{font-size:34px;cursor:pointer}.task-add .task-add-form .advanced-option .advanced-time,.task-add .task-add-advanced .advanced-option .advanced-time{display:flex;align-items:center;margin-left:20px;position:relative;cursor:pointer}.task-add .task-add-form .advanced-option .advanced-time .ivu-icon,.task-add .task-add-advanced .advanced-option .advanced-time .ivu-icon{font-size:32px}.task-add .task-add-form .advanced-option .advanced-time>em,.task-add .task-add-advanced .advanced-option .advanced-time>em{position:absolute;top:-5px;left:16px;font-family:Monospaced Number,"serif";transform:scale(.8);height:20px;min-width:20px;line-height:20px;border-radius:10px;background:#84C56A;color:#fff;text-align:center;padding:0 6px;font-size:12px;font-style:normal;white-space:nowrap;box-shadow:0 0 0 1px #fff}.task-add .task-add-advanced{margin:-16px 0 0;padding:46px 32px 6px;border-radius:8px;border:1px solid #e8e8e8}.task-add .task-add-advanced .subtasks{margin-bottom:24px;padding:12px 16px;border-radius:6px;background-color:#f8f8f8}.task-add .task-add-advanced .subtasks .enter-input.empty .ivu-input{background:transparent;border-color:transparent}.task-add .task-add-advanced .subtasks .enter-input.empty .ivu-input:hover,.task-add .task-add-advanced .subtasks .enter-input.empty .ivu-input:focus{box-shadow:none}.task-add .task-add-advanced .subtasks .sublist .ivu-row{margin-bottom:12px}.task-add .task-add-advanced .subtasks .sublist .ivu-row>div{padding-right:7px}.task-add .task-add-advanced .subtasks .sublist .ivu-row>div:last-child{padding-right:0}.task-add .task-add-advanced .ivu-date-picker{width:100%}.task-add .task-add-assist{margin-top:6px;display:flex;align-items:center;justify-content:flex-end}.task-add .task-add-assist .ivu-icon{font-size:16px;color:#909399}.task-add .ivu-modal-footer{padding:26px 0 22px!important}@media (max-width: 768px){.task-add .task-add-form .advanced-option,.task-add .task-add-advanced .advanced-option{width:calc(100% + 8px);padding-right:8px;justify-content:space-between}.task-add .task-add-form .advanced-option>button.advanced,.task-add .task-add-advanced .advanced-option>button.advanced{margin-left:0}.task-add .task-add-form .advanced-option .advanced-priority,.task-add .task-add-advanced .advanced-option .advanced-priority{margin-left:8px}.task-add .task-add-form .advanced-option .advanced-time,.task-add .task-add-advanced .advanced-option .advanced-time{margin-left:4px}}.task-add-simple{padding:12px}.task-add-simple .ivu-input-wrapper{display:none}.task-add-simple .add-placeholder{cursor:pointer;color:#888;margin:-12px;padding:12px}.task-add-simple .add-placeholder .ivu-icon{margin-right:4px}.task-add-simple .add-placeholder:hover{color:#606266}.task-add-simple .priority{display:none;align-items:center;min-height:22px;margin-top:10px;margin-bottom:-3px}.task-add-simple .priority>ul{flex:1;display:flex;align-items:center}.task-add-simple .priority>ul>li{list-style:none;margin-right:3px}.task-add-simple .priority>ul>li .taskfont{font-size:22px;cursor:pointer}.task-add-simple .priority .ivu-icon{cursor:pointer;font-size:16px}.task-add-simple.active .ivu-input-wrapper{display:block}.task-add-simple.active .add-placeholder{display:none}.task-add-simple.active .priority{display:flex}.task-add-row{background-color:#fff;border-bottom:1px solid #F4F4F5;position:relative}.task-add-row>div{display:flex;padding:8px 12px;border-right:1px solid #F4F4F5}.task-add-row>div:last-child{border-right:0}.task-add-row>div.row-add{display:flex;flex-direction:column;justify-content:center;min-height:48px;padding-left:34px}.task-add-row>div.row-add .add-btn{display:block;cursor:pointer;opacity:.5;transition:opacity .3s}.task-add-row>div.row-add .add-btn .add-icon{font-size:16px;margin-right:8px}.task-add-row>div.row-add .add-btn:hover{opacity:1}.task-add-row>div.row-add .add-input{display:none;align-items:flex-start;border:1px solid #dcdee2;border-radius:4px;color:#606266;background-color:#fff}.task-add-row>div.row-add .add-input:hover{border-color:#57a3f3}.task-add-row>div.row-add .add-input textarea{border-color:transparent;resize:none}.task-add-row>div.row-add .add-input textarea:focus{box-shadow:none}.task-add-row>div.row-add .add-input .priority{margin:0 4px;display:flex;align-items:center;height:31px}.task-add-row>div.row-add .add-input .priority>ul{flex:1;display:flex;align-items:center}.task-add-row>div.row-add .add-input .priority>ul>li{list-style:none;margin-right:4px}.task-add-row>div.row-add .add-input .priority>ul>li .taskfont{font-size:17px;cursor:pointer}.task-add-row>div.row-add .add-input .priority .ivu-icon{cursor:pointer;font-size:15px;margin:0 5px 0 3px}.task-add-row>div.row-add.active{padding-top:7px;padding-bottom:7px}.task-add-row>div.row-add.active .add-btn{display:none}.task-add-row>div.row-add.active .add-input{display:flex}.task-archived{position:absolute;top:0;left:0;right:0;bottom:0;padding:20px;display:flex;flex-direction:column}.task-archived .archived-title{color:#303133;font-size:20px;font-weight:500;line-height:1;margin-bottom:24px;display:flex;align-items:center}.task-archived .archived-title .title-icon{display:flex;align-items:center;width:14px;height:14px;margin-left:4px;margin-top:2px}.task-archived .archived-title .title-icon>i{cursor:pointer}.task-archived .table-page-box{flex:1;height:0}.task-deleted{position:absolute;top:0;left:0;right:0;bottom:0;padding:20px;display:flex;flex-direction:column}.task-deleted .deleted-title{color:#303133;font-size:20px;font-weight:500;line-height:1;margin-bottom:24px;display:flex;align-items:center}.task-deleted .deleted-title .title-icon{display:flex;align-items:center;width:14px;height:14px;margin-left:4px;margin-top:2px}.task-deleted .deleted-title .title-icon>i{cursor:pointer}.task-deleted .table-page-box{flex:1;height:0}.task-detail{display:flex;flex-direction:column;margin:0 -32px 12px -10px;padding:0 22px 12px 0;min-height:120px}.task-detail .task-info{flex:3;display:flex;flex-direction:column;position:relative}.task-detail .task-info .head{display:flex;align-items:center;height:42px;padding-bottom:10px;color:#888;position:relative}.task-detail .task-info .head:before{content:"";position:absolute;left:36px;right:0;bottom:0;height:1px;background-color:#f4f5f5}.task-detail .task-info .head .task-menu-icon{margin-right:18px;display:flex;align-items:center}.task-detail .task-info .head .task-menu-icon .ivu-icon{font-size:18px}.task-detail .task-info .head .task-menu-icon .loading{width:18px;height:18px}.task-detail .task-info .head .task-menu-icon .loading .common-loading{width:16px;height:16px}.task-detail .task-info .head .task-menu-icon .uncomplete{color:#888}.task-detail .task-info .head .flow{display:flex;align-items:center;margin-right:10px}.task-detail .task-info .head .flow>span{font-size:14px;height:26px;line-height:24px;padding:0 8px;border-radius:4px;color:#84c56a;border:1px solid #84C56A;display:inline-block;text-align:center;cursor:pointer;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.task-detail .task-info .head .flow>span.archived{background-color:#7f7f7f1a;border-color:#7f7f7f1a;color:#7f7f7f}.task-detail .task-info .head .flow>span.start{background-color:#ff70701a;border-color:#ff70701a;color:#ff7070}.task-detail .task-info .head .flow>span.progress{background-color:#fc984b1a;border-color:#fc984b1a;color:#fc984b}.task-detail .task-info .head .flow>span.test{background-color:#2f99ec1a;border-color:#2f99ec1a;color:#2f99ec}.task-detail .task-info .head .flow>span.end{background-color:#0bc0371a;border-color:#0bc0371a;color:#0bc037}.task-detail .task-info .head .nav{flex:1;display:flex;align-items:center;font-size:12px;width:0;height:40px;overflow:auto}.task-detail .task-info .head .nav::-webkit-scrollbar{display:none}.task-detail .task-info .head .nav>p{display:flex;align-items:center;padding-right:5px}.task-detail .task-info .head .nav>p>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.task-detail .task-info .head .nav>p:after{content:"/";padding-left:5px}.task-detail .task-info .head .nav>p:last-child:after{display:none}.task-detail .task-info .head .function{display:flex;align-items:center;margin:0 32px}.task-detail .task-info .head .function .pick{margin-left:12px;margin-right:10px}.task-detail .task-info .head .function .open{margin-top:-2px;margin-left:12px;font-size:22px;cursor:pointer}.task-detail .task-info .head .function .menu{margin-left:12px;display:flex;align-items:center}.task-detail .task-info .head .function .menu .task-menu-icon{margin-right:0}.task-detail .task-info .head .function .menu .ivu-icon{font-size:22px;color:#606266}.task-detail .task-info .scroller{margin-left:28px;padding-left:8px;padding-right:36px;overflow-x:hidden}.task-detail .task-info .scroller .title{margin-top:18px}.task-detail .task-info .scroller .title .ivu-input{font-weight:500;font-size:24px;padding:4px 0;line-height:1.4;resize:none;border-color:transparent}.task-detail .task-info .scroller .title .ivu-input:focus{box-shadow:none}.task-detail .task-info .scroller .desc{margin-top:10px}.task-detail .task-info .scroller .desc div[contenteditable=true]{outline:none}.task-detail .task-info .scroller .desc .mce-content-body img{max-width:100%}.task-detail .task-info .scroller .desc .mce-content-body pre{padding:14px;margin:7px 0;overflow:auto;background:#f5f2f0;border-radius:5px}.task-detail .task-info .scroller .desc .mce-content-body[data-mce-placeholder]:not(.mce-visualblocks):before{color:#bbb}.task-detail .task-info .scroller .items{margin-top:12px}.task-detail .task-info .scroller .items .ivu-form-item{margin-bottom:10px}.task-detail .task-info .scroller .items .item-label{display:flex;align-items:center;color:#bbb}.task-detail .task-info .scroller .items .item-label .taskfont{margin-right:4px}.task-detail .task-info .scroller .items .item-content{margin-top:5px;margin-left:12px}.task-detail .task-info .scroller .items .item-content>li{display:flex;align-items:center;list-style:none;line-height:26px}.task-detail .task-info .scroller .items .item-content>li .el-dropdown{display:flex;cursor:pointer}.task-detail .task-info .scroller .items .item-content>li .task-priority{padding:0 7px}.task-detail .task-info .scroller .items .item-content>li .picker-time{display:flex;align-items:center;flex-wrap:wrap;line-height:26px}.task-detail .task-info .scroller .items .item-content>li .picker-time .time{cursor:pointer;margin-right:10px}.task-detail .task-info .scroller .items .item-content>li .picker-time .ivu-tag{flex-shrink:0;margin-right:10px;padding:0 4px;height:20px;line-height:18px}.task-detail .task-info .scroller .items .item-content>li .picker-time .ivu-tag .ivu-tag-text{display:flex;align-items:center}.task-detail .task-info .scroller .items .item-content>li .picker-time .ivu-tag .ivu-tag-text .taskfont{transform:scale(.9);font-size:14px;padding-right:3px}.task-detail .task-info .scroller .items .item-content.user{margin-top:1px;cursor:pointer}.task-detail .task-info .scroller .items .item-content.user .user-list{display:flex;align-items:center}.task-detail .task-info .scroller .items .item-content.user .user-list>div{margin-right:6px}.task-detail .task-info .scroller .items .item-content.file{margin-bottom:-3px}.task-detail .task-info .scroller .items .item-content.file>li{margin-bottom:2px}.task-detail .task-info .scroller .items .item-content.file>li.tip{color:#999}.task-detail .task-info .scroller .items .item-content.file>li .file-load{margin:0;padding:2px;width:16px;height:16px}.task-detail .task-info .scroller .items .item-content.file>li .file-ext{width:16px}.task-detail .task-info .scroller .items .item-content.file>li .file-name{color:#606266;padding-left:8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.task-detail .task-info .scroller .items .item-content.file>li .file-size{flex-shrink:0;padding-left:10px;height:24px;font-size:12px;color:#bbb}.task-detail .task-info .scroller .items .item-content.file>li .file-menu{display:flex;align-items:center;opacity:0;transition:all .3s;padding-left:12px}.task-detail .task-info .scroller .items .item-content.file>li .file-menu.show{opacity:1}.task-detail .task-info .scroller .items .item-content.file>li .file-menu i{font-size:14px;color:#aaa;transition:color .3s;cursor:pointer;padding:0 4px}.task-detail .task-info .scroller .items .item-content.file>li .file-menu i:hover{color:#777}.task-detail .task-info .scroller .items .item-content.file>li .file-menu i.del{font-size:13px}.task-detail .task-info .scroller .items .item-content.file>li .file-menu i.del:hover{color:red}.task-detail .task-info .scroller .items .item-content.file>li:hover .file-name{color:#303133}.task-detail .task-info .scroller .items .item-content.file>li:hover .file-menu{opacity:1}.task-detail .task-info .scroller .items .item-content.subtask>li{align-items:flex-start;margin-bottom:4px}.task-detail .task-info .scroller .items .item-content.subtask>li:last-child{margin-bottom:-6px}.task-detail .task-info .scroller .items .item-content.subtask>li:hover .subtask-time .clock{transform:translate(0);opacity:.7}.task-detail .task-info .scroller .items .item-content.subtask>li .subtask-icon{padding-top:1px;width:16px;height:26px;line-height:26px;margin-right:6px;display:flex;align-items:center;cursor:pointer}.task-detail .task-info .scroller .items .item-content.subtask>li .subtask-flow>span{font-size:12px;height:18px;min-width:20px;line-height:16px;padding:0 2px;border-radius:3px;color:#84c56a;border:1px solid #84C56A;display:inline-block;margin-right:3px;text-align:center;cursor:pointer}.task-detail .task-info .scroller .items .item-content.subtask>li .subtask-flow>span.start{background-color:#ff70701a;border-color:#ff70701a;color:#ff7070}.task-detail .task-info .scroller .items .item-content.subtask>li .subtask-flow>span.progress{background-color:#fc984b1a;border-color:#fc984b1a;color:#fc984b}.task-detail .task-info .scroller .items .item-content.subtask>li .subtask-flow>span.test{background-color:#2f99ec1a;border-color:#2f99ec1a;color:#2f99ec}.task-detail .task-info .scroller .items .item-content.subtask>li .subtask-flow>span.end{background-color:#0bc0371a;border-color:#0bc0371a;color:#0bc037}.task-detail .task-info .scroller .items .item-content.subtask>li .subtask-name{flex:1;margin-right:8px;display:flex}.task-detail .task-info .scroller .items .item-content.subtask>li .subtask-name .ivu-input{margin:-2px 0;padding:4px 0;resize:none;border-color:transparent;line-height:20px}.task-detail .task-info .scroller .items .item-content.subtask>li .subtask-name .ivu-input:focus{box-shadow:none}.task-detail .task-info .scroller .items .item-content.subtask>li .subtask-time{margin-right:8px}.task-detail .task-info .scroller .items .item-content.subtask>li .subtask-time .time{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;height:26px;line-height:26px;cursor:pointer}.task-detail .task-info .scroller .items .item-content.subtask>li .subtask-time .time.overdue{font-weight:600;color:#ed4014}.task-detail .task-info .scroller .items .item-content.subtask>li .subtask-time .time.today{font-weight:500;color:#f90}.task-detail .task-info .scroller .items .item-content.subtask>li .subtask-time .clock{margin:3px 2px;font-size:20px;transition:all .2s;transform:translate(50%);opacity:0}.task-detail .task-info .scroller .items .item-content.subtask>li .subtask-avatar{cursor:pointer}.task-detail .task-info .scroller .items .item-content.subtask>li .ivu-icon-ios-loading{animation:animation-icon-loading .6s infinite linear}.task-detail .task-info .scroller .items .item-content.nosub{margin-top:0}.task-detail .task-info .scroller .items .item-content.nosub>li .add-input,.task-detail .task-info .scroller .items .item-content.nosub>li .add-button{margin-top:-2px}.task-detail .task-info .scroller .add{margin-top:12px;margin-bottom:10px}.task-detail .task-info .scroller .add .el-dropdown{max-width:100%}.task-detail .task-info .scroller .add .el-dropdown .add-button>em{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.task-detail .task-info .scroller .add-input{margin-top:6px}.task-detail .task-info .scroller .add-input.loading .ivu-icon-ios-loading{animation:animation-icon-loading .6s infinite linear}.task-detail .task-info .scroller .add-button{cursor:pointer;color:#bbb;display:flex;align-items:center;margin-top:6px;height:32px;white-space:nowrap}.task-detail .task-info .scroller .add-button>i{font-size:14px;padding-right:8px}.task-detail .task-info .scroller .add-button>em{font-style:normal;padding-left:4px}.task-detail .task-info .scroller .add-button>em:after{content:"/";padding-left:4px}.task-detail .task-info .scroller .add-button>em:last-child:after{display:none}.task-detail .task-info .scroller .add-button:hover{color:#909399}.task-detail .task-info .upload{display:none}.task-detail .task-dialog{flex:2;flex-shrink:0;display:flex;flex-direction:column;justify-content:flex-end;margin-top:22px;position:relative}.task-detail .task-dialog .head{display:flex;align-items:center;height:42px;padding-bottom:10px;color:#888;position:relative}.task-detail .task-dialog .head:before{content:"";position:absolute;left:36px;right:0;bottom:0;height:1px;background-color:#f4f5f5}.task-detail .task-dialog .head .icon{width:18px;font-size:18px}.task-detail .task-dialog .head .nav{flex:1;display:flex;align-items:center;padding-left:18px;font-weight:500;color:#606266}.task-detail .task-dialog .head .nav>p{display:flex;align-items:center;margin-right:24px;cursor:pointer}.task-detail .task-dialog .head .nav>p.active{margin-top:-2px;font-size:16px;font-weight:600;color:#555;cursor:default}.task-detail .task-dialog .head .nav .refresh{display:flex;align-items:center;margin-left:-18px}.task-detail .task-dialog .head .nav .refresh>i{font-size:18px;cursor:pointer;opacity:.8;transition:opacity .2s}.task-detail .task-dialog .head .nav .refresh>i:hover{opacity:1}.task-detail .task-dialog .head .nav .refresh .common-loading{margin:3px;width:12px;height:12px}.task-detail .task-dialog .head .menu .menu-item{display:flex;align-items:center;line-height:24px}.task-detail .task-dialog .head .menu .menu-item .menu-load{margin-right:8px;width:14px;height:14px;display:flex}.task-detail .task-dialog .head .menu .menu-item>em{font-style:normal;padding-left:1px}.task-detail .task-dialog .head .menu .menu-item>i{margin-left:4px;font-size:14px}.task-detail .task-dialog .no-dialog{flex:1;display:flex;flex-direction:column;position:relative}.task-detail .task-dialog .no-dialog .no-tip{flex:1;display:none;margin-left:36px}.task-detail .task-dialog .no-dialog .no-input{position:relative;margin:22px 0 0 36px;background-color:#f4f5f7;padding:10px 4px 10px 6px;border-radius:10px}.task-detail .task-dialog .no-dialog .no-input .chat-input-box .chat-input-quick-emoji{right:0}.task-detail .task-dialog .no-dialog .no-input .chat-input-box .chat-input-wrapper{padding:0;background-color:#f4f5f7}.task-detail .task-dialog .no-dialog .no-input .chat-input-box .chat-input-wrapper .chat-toolbar>li.chat-record-recwave{background-color:#f4f5f7}.task-detail .task-dialog .no-dialog .drag-over{position:absolute;top:0;left:0;right:0;bottom:0;z-index:3;background-color:#ffffffc7;display:flex;align-items:center;justify-content:center}.task-detail .task-dialog .no-dialog .drag-over:before{content:"";position:absolute;top:0;left:36px;right:0;bottom:0;border:2px dashed #7b7b7b;border-radius:12px}.task-detail .task-dialog .no-dialog .drag-over .drag-text{padding:12px;font-size:18px;color:#606266}.task-detail .task-dialog .project-log{margin-left:36px}.task-detail .task-dialog .project-log .logs-activity{padding:22px 0 0}.task-detail .task-dialog .project-log .logs-activity>li{list-style:none;padding-top:0}.task-detail .task-dialog .project-log .logs-activity>li.logs-loading,.task-detail .task-dialog .project-log .logs-activity>li.logs-more,.task-detail .task-dialog .project-log .logs-activity>li.logs-none{height:59px;line-height:59px}.task-detail .task-dialog .project-log .logs-activity>li.logs-loading{display:flex;align-items:center}.task-detail .task-dialog .project-log .logs-activity>li.logs-loading .common-loading{width:22px;height:22px;margin:0}.task-detail .task-dialog .dialog-wrapper .dialog-scroller{padding-right:16px;padding-left:32px}.task-detail .task-dialog .dialog-wrapper .dialog-footer{padding:0 0 0 24px}.task-detail .task-dialog .dialog-wrapper .dialog-footer .chat-input-box .chat-input-quick-emoji{right:2px}.task-detail .task-load{margin-top:6px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:flex}.task-detail .task-load .common-loading{width:32px;height:32px}.task-detail.open-dialog{flex-direction:row}.task-detail.open-dialog .task-info{overflow:auto}.task-detail.open-dialog .task-info .head .function{margin-right:2px}.task-detail.open-dialog .task-dialog{margin:0 0 0 18px;min-width:320px;max-width:450px;border-left:1px solid #f4f5f5}.task-detail.open-dialog .task-dialog .head:before{left:18px}.task-detail.open-dialog .task-dialog .head .icon:before{display:none}.task-detail.open-dialog .task-dialog .head .nav{padding-left:0}.task-detail.open-dialog .task-dialog .head .nav>p{margin-right:28px}.task-detail.open-dialog .task-dialog .head .nav>p.active{font-size:18px}.task-detail.open-dialog .task-dialog .no-dialog .no-tip{display:flex;align-items:center;justify-content:center;margin-left:18px;color:#909399}.task-detail.open-dialog .task-dialog .no-dialog .no-input{margin:0 0 0 18px}.task-detail.open-dialog .task-dialog .dialog-wrapper{z-index:0}.task-detail.open-dialog .task-dialog .dialog-wrapper .dialog-footer{margin-bottom:0}.task-detail.open-dialog .task-dialog .project-log{position:absolute;top:40px;left:0;right:0;bottom:0;z-index:1;padding:8px;margin-left:8px;background-color:#fff;overflow:auto}.task-detail.open-dialog .task-dialog .project-log .logs-activity{padding:22px 0 0 10px}.task-detail.completed .task-info:before{content:"\f373";font-family:Ionicons,serif;pointer-events:none;position:absolute;top:0;right:13%;font-size:72px;color:#19be6b;opacity:.2;z-index:1}.task-detail-receive{padding:6px 6px 3px}.task-detail-receive .receive-title{font-size:14px}.task-detail-receive .receive-title .ivu-icon{font-size:16px;color:#f90;line-height:18px}.task-detail-receive .receive-time{margin-top:10px}.task-detail-receive .receive-time .ivu-date-picker{width:280px}.task-detail-receive .receive-bottom{text-align:right;margin-top:12px}.task-detail-receive .receive-bottom>button+button{margin-left:4px}.task-detail-delete-file-popover{max-width:200px}.task-detail-delete-file-popover .buttons{text-align:right;margin-top:12px}.task-detail-delete-file-popover .buttons .ivu-btn-small{font-size:12px}.task-detail-user-popper .ivu-poptip-body-content{overflow:visible}.task-detail-avatar-buttons{margin-top:12px;margin-bottom:4px;text-align:right;position:absolute;top:5px;right:14px}.task-detail-avatar-buttons>button{font-size:12px;transform:scale(.9)}.task-detail-loop>li{text-align:center}@media (max-width: 768px){.task-detail .task-info .scroller{overflow-x:auto}}.task-menu-icon{position:relative}.task-menu-icon .loading{width:16px;height:16px;display:flex;align-items:center;justify-content:center}.task-menu-icon .loading .common-loading{margin:0;width:14px;height:14px}.task-menu-icon .ivu-icon{cursor:pointer;font-size:16px;color:#ccc}.task-menu-icon .ivu-icon.completed{color:#84c56a}.task-operation-dropdown{position:absolute;top:0;left:0;width:0;opacity:0;z-index:-1}.task-operation-dropdown .task-operation-icon{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;cursor:pointer}.task-operation-more-dropdown>li.task-operation-more-warp{list-style:none}.task-operation-more-dropdown>li.task-operation-more-warp>ul{max-height:320px;overflow:auto}.task-operation-more-dropdown>li.task-operation-more-warp>ul::-webkit-scrollbar{display:none}.task-operation-more-dropdown>li.task-operation-more-warp>ul>li .item{display:flex;align-items:center}.task-operation-more-dropdown>li.task-operation-more-warp>ul>li .item>i{flex-shrink:0;width:18px;height:18px;line-height:18px;font-size:18px;margin-right:8px;padding:0;color:#bbb}.task-operation-more-dropdown>li.task-operation-more-warp>ul>li .item>i.ivu-icon{font-size:16px}.task-operation-more-dropdown>li.task-operation-more-warp>ul>li .flow{padding:4px 0}.task-operation-more-dropdown>li.task-operation-more-warp>ul>li .flow>i{margin-right:3px}.task-operation-more-dropdown>li.task-operation-more-warp>ul>li .flow>i.check{color:#84c56a}.task-operation-more-dropdown>li.task-operation-more-warp>ul>li .flow .flow-name{border-radius:4px;white-space:nowrap;padding:0 5px;height:20px;line-height:20px;font-size:12px;background:#f4f4f4;color:#595959}.task-operation-more-dropdown>li.task-operation-more-warp>ul>li .flow .flow-name.start{background-color:#ff70701a;border-color:#ff70701a;color:#ff7070}.task-operation-more-dropdown>li.task-operation-more-warp>ul>li .flow .flow-name.progress{background-color:#fc984b1a;border-color:#fc984b1a;color:#fc984b}.task-operation-more-dropdown>li.task-operation-more-warp>ul>li .flow .flow-name.test{background-color:#2f99ec1a;border-color:#2f99ec1a;color:#2f99ec}.task-operation-more-dropdown>li.task-operation-more-warp>ul>li .flow .flow-name.end{background-color:#0bc0371a;border-color:#0bc0371a;color:#0bc037}.task-operation-more-dropdown>li.task-operation-more-warp>ul>li.load-flow{display:flex;align-items:center;justify-content:center;padding:8px}.task-operation-more-dropdown>li.task-operation-more-warp>ul>li.load-flow .load-flow-warp{width:18px;height:18px}.task-operation-more-dropdown>li.task-operation-more-warp.medium>ul>li .flow .flow-name{height:24px;line-height:24px;padding:0 7px}.task-operation-more-dropdown>li.task-operation-more-warp.large>ul>li .flow .flow-name{font-size:13px;height:30px;line-height:30px;padding:0 8px}.task-priority{font-size:13px;display:inline-block;padding:2px 5px;border-radius:3px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:transparent;border:1px solid transparent}.team-management{position:absolute;top:0;left:0;right:0;bottom:0;padding:20px;display:flex;flex-direction:column;overflow:auto}.team-management .management-title{color:#303133;font-size:20px;font-weight:500;line-height:1;margin-bottom:24px;display:flex;align-items:center}.team-management .management-title .title-icon{display:flex;align-items:center;width:14px;height:14px;margin-left:4px;margin-top:2px}.team-management .management-title .title-icon>i{cursor:pointer}.team-management .management-box{flex:1;display:flex;min-width:500px;height:0}.team-management .management-box .management-department{width:239px;border-right:1px solid #efefef;flex-shrink:0;display:flex;flex-direction:column}.team-management .management-box .management-department>ul{flex:1;overflow:auto}.team-management .management-box .management-department>ul>li{list-style:none;padding:0;margin:0;height:40px;display:flex;align-items:center;cursor:pointer;overflow:hidden}.team-management .management-box .management-department>ul>li:hover,.team-management .management-box .management-department>ul>li.active{background-color:#ecf5ff}.team-management .management-box .management-department>ul>li.level-1{font-weight:500}.team-management .management-box .management-department>ul>li.level-2{margin-left:24px}.team-management .management-box .management-department>ul>li.level-3{margin-left:48px}.team-management .management-box .management-department>ul>li.level-4{margin-left:72px}.team-management .management-box .management-department>ul>li .department-icon{padding:8px;font-size:16px}.team-management .management-box .management-department>ul>li .department-title{flex:1;flex-shrink:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.team-management .management-box .management-department>ul>li .department-menu{display:inline-block;padding:12px;font-size:16px;transform:rotate(-90deg)}.team-management .management-box .management-department .department-buttons{margin-top:20px;display:flex;align-items:center;justify-content:center}.team-management .management-box .management-user{flex:1;width:0;display:flex;flex-direction:column;padding-left:20px}.team-management .team-email{display:flex;align-items:center}.team-management .team-email .ivu-icon{color:#84c56a;margin-left:6px;font-size:16px}.team-management .team-email .ivu-tag{height:18px;line-height:18px;padding:0 4px;margin-left:4px;zoom:.8;flex-shrink:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.team-management .table-page-box{flex:1;height:0}.team-department-add-dialog-group{display:flex;align-items:center}.team-department-add-dialog-group .dialog-name{flex:1;width:0;padding-right:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.team-department-checkin-item{margin-bottom:12px}.team-department-checkin-item>div{padding-right:12px}.team-department-checkin-item>div:last-child{padding-right:0}.team-table-department-warp{display:flex;align-items:center}.team-table-department-warp>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.team-table-department-warp .department-tag-num{background-color:#515a6e;border-radius:9px;color:#fff;cursor:pointer;flex-shrink:0;font-size:12px;height:18px;line-height:18px;margin-left:4px;min-width:18px;padding:0 5px;text-align:center;transform:scale(.9);transform-origin:right center}.update-log .uplog-head{display:flex;align-items:center}.update-log .uplog-head .uplog-title{display:inline-block;vertical-align:middle;font-size:18px;color:#303133;font-weight:500;margin-right:6px}.update-log .ivu-modal-body{padding:0 32px!important}.update-log .ivu-modal-body .uplog-body{max-height:240px;overflow-x:hidden}.update-log .ivu-modal-body .uplog-body .markdown-preview{margin:-20px -12px}.update-log .ivu-modal-body .uplog-body .markdown-preview h1{font-size:24px;margin-bottom:12px}.update-log .ivu-modal-body .uplog-body .markdown-preview h1:first-child{padding-top:0}.update-log .ivu-modal-body .uplog-body .markdown-preview h2{font-size:18px!important;padding-top:2px!important}.update-log .ivu-modal-body .uplog-body .markdown-preview ul li{padding:2px 0 2px 2px!important}.update-log .ivu-modal-body .uplog-body .markdown-preview ul li:after{top:10px!important;width:6px!important;height:6px!important}.update-log .ivu-modal-fullscreen .ivu-modal-body{padding:0 16px!important;margin:16px 0!important}.update-log .ivu-modal-fullscreen .ivu-modal-body .uplog-body{max-height:none;overflow-x:auto}.update-log .ivu-modal-fullscreen .ivu-modal-body .uplog-body .markdown-preview{margin:0}body.dark-mode-reverse .ivu-btn-primary,body.dark-mode-reverse .ivu-badge-count,body.dark-mode-reverse .common-right-bottom .common-right-bottom-link{color:#000}body.dark-mode-reverse .ivu-modal-mask{background-color:#e6e6e699}body.dark-mode-reverse .ivu-modal-content{box-shadow:0 4px 12px #ffffff26}body.dark-mode-reverse .ivu-message-notice-content{box-shadow:0 1px 6px #fff3;border:1px solid #e3e8ed}body.dark-mode-reverse .ivu-select-dropdown,body.dark-mode-reverse .ivu-notice-notice,body.dark-mode-reverse .ivu-tooltip-inner,body.dark-mode-reverse .ivu-poptip-inner{border:1px solid #e3e8ed;box-shadow:none}body.dark-mode-reverse .el-dropdown-menu{border-color:#e3e8ed;box-shadow:0 2px 12px #ffffff1a}body.dark-mode-reverse .el-tooltip__popper.is-light{border:1px solid #e3e8ed;box-shadow:0 1px 6px #fff3}body.dark-mode-reverse .common-avatar.avatar-wrapper .avatar-box .avatar-char{color:#000}body.dark-mode-reverse .common-drawer-overlay .overlay-body .overlay-close>a{color:#323232}body.dark-mode-reverse .common-drawer-overlay .overlay-body .overlay-close>a:hover{color:#000}body.dark-mode-reverse .file-content .content-body .tox .tox-edit-area__iframe,body.dark-mode-reverse .file-preview .content-body .tox .tox-edit-area__iframe{background-color:#000}body.dark-mode-reverse .file-content .content-body .teditor-loadedstyle .tox-sidebar-wrap,body.dark-mode-reverse .file-preview .content-body .teditor-loadedstyle .tox-sidebar-wrap{box-shadow:none}body.dark-mode-reverse .minder-editor-container .quickbar{border:1px solid #e3e8ed!important;box-shadow:3px 3px 10px #fff3!important}body.dark-mode-reverse .project-panel .project-titbox .project-icons>li.project-icon.active{color:#000}body.dark-mode-reverse .project-panel .project-column>ul>li .column-task .task-item .task-progress .task-time.overdue{color:#ed4014;background-color:transparent}body.dark-mode-reverse .project-panel .project-column>ul>li .column-task .task-item .task-progress .task-time.today{color:#f90;background-color:transparent}body.dark-mode-reverse .project-panel .project-table .project-table-body .task-row>div.row-time .task-time.overdue{color:#ed4014;background-color:transparent}body.dark-mode-reverse .project-panel .project-table .project-table-body .task-row>div.row-time .task-time.today{color:#f90;background-color:transparent}body.dark-mode-reverse .dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-avatar .icon-avatar{color:#1c1917}body.dark-mode-reverse .dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .main-title>h2{color:#555}body.dark-mode-reverse .dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head{background-color:#e1e1e1}body.dark-mode-reverse .dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-reply .reply-desc,body.dark-mode-reverse .dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text,body.dark-mode-reverse .dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-record,body.dark-mode-reverse .dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-meeting{color:#fff}body.dark-mode-reverse .dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-emoji>li{background-color:#f3f3f380}body.dark-mode-reverse .dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-emoji>li.hasme{background-color:#f3f3f3}body.dark-mode-reverse .dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head{background-color:#84c56a}body.dark-mode-reverse .dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-content .content-text>pre a{color:#0027a1}body.dark-mode-reverse .dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-content .content-text>pre .mention{color:#000}body.dark-mode-reverse .dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-content .content-text>pre .mention.file,body.dark-mode-reverse .dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-content .content-text>pre .mention[data-denotation-char="~"]{color:#0027a1!important}body.dark-mode-reverse .dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-emoji>li{background-color:#b2ff9380}body.dark-mode-reverse .dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-emoji>li.hasme{background-color:#b2ff93}body.dark-mode-reverse .dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-emoji>li .emoji-users:before{background-color:#000000b3}body.dark-mode-reverse .dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-emoji>li .emoji-users>ul>li{color:#000}body.dark-mode-reverse .dialog-group-info .group-info-user>ul>li .user-tag{color:#1c1917}body.dark-mode-reverse .file-icon:before{background-image:url(/js/build/other.0cd5a04c.svg)}body.dark-mode-reverse .file-icon.archive:before{background-image:url(/js/build/archive.12fcb5b5.svg)}body.dark-mode-reverse .file-icon.cad:before{background-image:url(/js/build/cad.868e2ca7.svg)}body.dark-mode-reverse .file-icon.code:before{background-image:url(/js/build/code.1f28156e.svg)}body.dark-mode-reverse .file-icon.document:before{background-image:url(/js/build/document.7a75f110.svg)}body.dark-mode-reverse .file-icon.drawio:before{background-image:url(/js/build/flow.0122e3f0.svg)}body.dark-mode-reverse .file-icon.excel:before{background-image:url(/js/build/excel.03422f0b.svg)}body.dark-mode-reverse .file-icon.flow:before{background-image:url(/js/build/flow.0122e3f0.svg)}body.dark-mode-reverse .file-icon.folder:before{background-image:url(/js/build/folder.f3036060.svg)}body.dark-mode-reverse .file-icon.folder.share:before{background-image:url(/js/build/folder-share.08f619a2.svg)}body.dark-mode-reverse .file-icon.media:before{background-image:url(/js/build/media.59a8ab73.svg)}body.dark-mode-reverse .file-icon.mind:before{background-image:url(/js/build/mind.8663d6b3.svg)}body.dark-mode-reverse .file-icon.ofd:before{background-image:url(/js/build/ofd.50e43c45.svg)}body.dark-mode-reverse .file-icon.pdf:before{background-image:url(/js/build/pdf.13216727.svg)}body.dark-mode-reverse .file-icon.picture:before{background-image:url(/js/build/picture.7c0acca9.svg)}body.dark-mode-reverse .file-icon.ppt:before{background-image:url(/js/build/ppt.0788eae8.svg)}body.dark-mode-reverse .file-icon.sheet:before{background-image:url(/js/build/sheet.74a69469.svg)}body.dark-mode-reverse .file-icon.tif:before{background-image:url(/js/build/tif.37ae91f2.svg)}body.dark-mode-reverse .file-icon.txt:before{background-image:url(/js/build/txt.13b9241a.svg)}body.dark-mode-reverse .file-icon.updir:before{background-image:url(/js/build/updir.39b387be.svg)}body.dark-mode-reverse .file-icon.upload:before{background-image:url(/js/build/upload.c7a709a7.svg)}body.dark-mode-reverse .file-icon.word:before{background-image:url(/js/build/word.41e80094.svg)}body.dark-mode-reverse .file-icon.wps:before{background-image:url(/js/build/wps.045449a7.svg)}body.dark-mode-reverse .page-login .login-body .login-box{box-shadow:none}body.dark-mode-reverse .page-manage .manage-box-menu .manage-box-dropdown .manage-box-title.menu-visible{box-shadow:0 1px 6px #fff3}body.dark-mode-reverse .page-dashboard .dashboard-wrapper .dashboard-block>li .block-title{color:#0009;font-size:12px}body.dark-mode-reverse .page-dashboard .dashboard-wrapper .dashboard-block>li .block-data .block-num{color:#000}body.dark-mode-reverse .page-dashboard .dashboard-wrapper .dashboard-block>li .block-data .taskfont{color:#000000b3}body.dark-mode-reverse .page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li .icon-avatar{color:#1c1917}body.dark-mode-reverse .page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li .dialog-box .dialog-text{color:#555}body.dark-mode-reverse .page-file .file-wrapper .file-navigator .ivu-btn{color:#000}body.dark-mode-reverse .page-index .page-warp{background-color:#efefef}body.dark-mode-reverse .page-index .page-warp .page-header .header-nav .header-nav-box .header-right-github,body.dark-mode-reverse .page-index .page-warp .page-header .header-nav .header-nav-box .header-right-uplog,body.dark-mode-reverse .page-index .page-warp .page-header .header-nav .header-nav-box .header-right-1 .header-right-1-dropdown,body.dark-mode-reverse .page-index .page-warp .page-header .header-nav .header-nav-box .header-right-2 .header-right-2-dropdown,body.dark-mode-reverse .page-index .page-warp .page-header .header-nav .header-nav-box .header-right-3,body.dark-mode-reverse .page-index .page-warp .page-header .header-content .header-title,body.dark-mode-reverse .page-index .page-warp .page-header .header-content .header-tips{color:#000}body.dark-mode-reverse .page-index .page-warp .page-header-bottom{background-color:#efefef}body.dark-mode-reverse .chat-input-box .chat-input-wrapper .ql-container .ql-editor{color:#ccc}body.dark-mode-reverse .chat-input-box .chat-input-wrapper .ql-container .ql-editor.ql-blank:before{color:#333}body.dark-mode-reverse .chat-input-box .chat-input-wrapper .ql-container .ql-editor .mention{color:#333}body.dark-mode-reverse .chat-input-box .chat-input-wrapper .chat-toolbar>li.chat-send .taskfont{color:#000} + */.ql-container{box-sizing:border-box;font-family:Helvetica,Arial,sans-serif;font-size:13px;height:100%;margin:0;position:relative}.ql-container.ql-disabled .ql-tooltip{visibility:hidden}.ql-container.ql-disabled .ql-editor ul[data-checked]>li:before{pointer-events:none}.ql-clipboard{left:-100000px;height:1px;overflow-y:hidden;position:absolute;top:50%}.ql-clipboard p{margin:0;padding:0}.ql-editor{box-sizing:border-box;line-height:1.42;height:100%;outline:none;overflow-y:auto;padding:12px 15px;-o-tab-size:4;tab-size:4;-moz-tab-size:4;text-align:left;white-space:pre-wrap;word-wrap:break-word}.ql-editor>*{cursor:text}.ql-editor p,.ql-editor ol,.ql-editor ul,.ql-editor pre,.ql-editor blockquote,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{margin:0;padding:0;counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol,.ql-editor ul{padding-left:1.5em}.ql-editor ol>li,.ql-editor ul>li{list-style-type:none}.ql-editor ul>li:before{content:"\2022"}.ql-editor ul[data-checked=true],.ql-editor ul[data-checked=false]{pointer-events:none}.ql-editor ul[data-checked=true]>li *,.ql-editor ul[data-checked=false]>li *{pointer-events:all}.ql-editor ul[data-checked=true]>li:before,.ql-editor ul[data-checked=false]>li:before{color:#777;cursor:pointer;pointer-events:all}.ql-editor ul[data-checked=true]>li:before{content:"\2611"}.ql-editor ul[data-checked=false]>li:before{content:"\2610"}.ql-editor li:before{display:inline-block;white-space:nowrap;width:1.2em}.ql-editor li:not(.ql-direction-rtl):before{margin-left:-1.5em;margin-right:.3em;text-align:right}.ql-editor li.ql-direction-rtl:before{margin-left:.3em;margin-right:-1.5em}.ql-editor ol li:not(.ql-direction-rtl),.ql-editor ul li:not(.ql-direction-rtl){padding-left:1.5em}.ql-editor ol li.ql-direction-rtl,.ql-editor ul li.ql-direction-rtl{padding-right:1.5em}.ql-editor ol li{counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;counter-increment:list-0}.ql-editor ol li:before{content:counter(list-0,decimal) ". "}.ql-editor ol li.ql-indent-1{counter-increment:list-1}.ql-editor ol li.ql-indent-1:before{content:counter(list-1,lower-alpha) ". "}.ql-editor ol li.ql-indent-1{counter-reset:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-2{counter-increment:list-2}.ql-editor ol li.ql-indent-2:before{content:counter(list-2,lower-roman) ". "}.ql-editor ol li.ql-indent-2{counter-reset:list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-3{counter-increment:list-3}.ql-editor ol li.ql-indent-3:before{content:counter(list-3,decimal) ". "}.ql-editor ol li.ql-indent-3{counter-reset:list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-4{counter-increment:list-4}.ql-editor ol li.ql-indent-4:before{content:counter(list-4,lower-alpha) ". "}.ql-editor ol li.ql-indent-4{counter-reset:list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-5{counter-increment:list-5}.ql-editor ol li.ql-indent-5:before{content:counter(list-5,lower-roman) ". "}.ql-editor ol li.ql-indent-5{counter-reset:list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-6{counter-increment:list-6}.ql-editor ol li.ql-indent-6:before{content:counter(list-6,decimal) ". "}.ql-editor ol li.ql-indent-6{counter-reset:list-7 list-8 list-9}.ql-editor ol li.ql-indent-7{counter-increment:list-7}.ql-editor ol li.ql-indent-7:before{content:counter(list-7,lower-alpha) ". "}.ql-editor ol li.ql-indent-7{counter-reset:list-8 list-9}.ql-editor ol li.ql-indent-8{counter-increment:list-8}.ql-editor ol li.ql-indent-8:before{content:counter(list-8,lower-roman) ". "}.ql-editor ol li.ql-indent-8{counter-reset:list-9}.ql-editor ol li.ql-indent-9{counter-increment:list-9}.ql-editor ol li.ql-indent-9:before{content:counter(list-9,decimal) ". "}.ql-editor .ql-indent-1:not(.ql-direction-rtl){padding-left:3em}.ql-editor li.ql-indent-1:not(.ql-direction-rtl){padding-left:4.5em}.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:3em}.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:4.5em}.ql-editor .ql-indent-2:not(.ql-direction-rtl){padding-left:6em}.ql-editor li.ql-indent-2:not(.ql-direction-rtl){padding-left:7.5em}.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:6em}.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:7.5em}.ql-editor .ql-indent-3:not(.ql-direction-rtl){padding-left:9em}.ql-editor li.ql-indent-3:not(.ql-direction-rtl){padding-left:10.5em}.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:9em}.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:10.5em}.ql-editor .ql-indent-4:not(.ql-direction-rtl){padding-left:12em}.ql-editor li.ql-indent-4:not(.ql-direction-rtl){padding-left:13.5em}.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:12em}.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:13.5em}.ql-editor .ql-indent-5:not(.ql-direction-rtl){padding-left:15em}.ql-editor li.ql-indent-5:not(.ql-direction-rtl){padding-left:16.5em}.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:15em}.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:16.5em}.ql-editor .ql-indent-6:not(.ql-direction-rtl){padding-left:18em}.ql-editor li.ql-indent-6:not(.ql-direction-rtl){padding-left:19.5em}.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:18em}.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:19.5em}.ql-editor .ql-indent-7:not(.ql-direction-rtl){padding-left:21em}.ql-editor li.ql-indent-7:not(.ql-direction-rtl){padding-left:22.5em}.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:21em}.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:22.5em}.ql-editor .ql-indent-8:not(.ql-direction-rtl){padding-left:24em}.ql-editor li.ql-indent-8:not(.ql-direction-rtl){padding-left:25.5em}.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:24em}.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:25.5em}.ql-editor .ql-indent-9:not(.ql-direction-rtl){padding-left:27em}.ql-editor li.ql-indent-9:not(.ql-direction-rtl){padding-left:28.5em}.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:27em}.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:28.5em}.ql-editor .ql-video{display:block;max-width:100%}.ql-editor .ql-video.ql-align-center{margin:0 auto}.ql-editor .ql-video.ql-align-right{margin:0 0 0 auto}.ql-editor .ql-bg-black{background-color:#000}.ql-editor .ql-bg-red{background-color:#e60000}.ql-editor .ql-bg-orange{background-color:#f90}.ql-editor .ql-bg-yellow{background-color:#ff0}.ql-editor .ql-bg-green{background-color:#008a00}.ql-editor .ql-bg-blue{background-color:#06c}.ql-editor .ql-bg-purple{background-color:#93f}.ql-editor .ql-color-white{color:#fff}.ql-editor .ql-color-red{color:#e60000}.ql-editor .ql-color-orange{color:#f90}.ql-editor .ql-color-yellow{color:#ff0}.ql-editor .ql-color-green{color:#008a00}.ql-editor .ql-color-blue{color:#06c}.ql-editor .ql-color-purple{color:#93f}.ql-editor .ql-font-serif{font-family:Georgia,Times New Roman,serif}.ql-editor .ql-font-monospace{font-family:Monaco,Courier New,monospace}.ql-editor .ql-size-small{font-size:.75em}.ql-editor .ql-size-large{font-size:1.5em}.ql-editor .ql-size-huge{font-size:2.5em}.ql-editor .ql-direction-rtl{direction:rtl;text-align:inherit}.ql-editor .ql-align-center{text-align:center}.ql-editor .ql-align-justify{text-align:justify}.ql-editor .ql-align-right{text-align:right}.ql-editor.ql-blank:before{color:#0009;content:attr(data-placeholder);font-style:italic;left:15px;pointer-events:none;position:absolute;right:15px}.ql-bubble.ql-toolbar:after,.ql-bubble .ql-toolbar:after{clear:both;content:"";display:table}.ql-bubble.ql-toolbar button,.ql-bubble .ql-toolbar button{background:none;border:none;cursor:pointer;display:inline-block;float:left;height:24px;padding:3px 5px;width:28px}.ql-bubble.ql-toolbar button svg,.ql-bubble .ql-toolbar button svg{float:left;height:100%}.ql-bubble.ql-toolbar button:active:hover,.ql-bubble .ql-toolbar button:active:hover{outline:none}.ql-bubble.ql-toolbar input.ql-image[type=file],.ql-bubble .ql-toolbar input.ql-image[type=file]{display:none}.ql-bubble.ql-toolbar button:hover,.ql-bubble .ql-toolbar button:hover,.ql-bubble.ql-toolbar button:focus,.ql-bubble .ql-toolbar button:focus,.ql-bubble.ql-toolbar button.ql-active,.ql-bubble .ql-toolbar button.ql-active,.ql-bubble.ql-toolbar .ql-picker-label:hover,.ql-bubble .ql-toolbar .ql-picker-label:hover,.ql-bubble.ql-toolbar .ql-picker-label.ql-active,.ql-bubble .ql-toolbar .ql-picker-label.ql-active,.ql-bubble.ql-toolbar .ql-picker-item:hover,.ql-bubble .ql-toolbar .ql-picker-item:hover,.ql-bubble.ql-toolbar .ql-picker-item.ql-selected,.ql-bubble .ql-toolbar .ql-picker-item.ql-selected{color:#fff}.ql-bubble.ql-toolbar button:hover .ql-fill,.ql-bubble .ql-toolbar button:hover .ql-fill,.ql-bubble.ql-toolbar button:focus .ql-fill,.ql-bubble .ql-toolbar button:focus .ql-fill,.ql-bubble.ql-toolbar button.ql-active .ql-fill,.ql-bubble .ql-toolbar button.ql-active .ql-fill,.ql-bubble.ql-toolbar .ql-picker-label:hover .ql-fill,.ql-bubble .ql-toolbar .ql-picker-label:hover .ql-fill,.ql-bubble.ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-bubble .ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-bubble.ql-toolbar .ql-picker-item:hover .ql-fill,.ql-bubble .ql-toolbar .ql-picker-item:hover .ql-fill,.ql-bubble.ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-bubble .ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-bubble.ql-toolbar button:hover .ql-stroke.ql-fill,.ql-bubble .ql-toolbar button:hover .ql-stroke.ql-fill,.ql-bubble.ql-toolbar button:focus .ql-stroke.ql-fill,.ql-bubble .ql-toolbar button:focus .ql-stroke.ql-fill,.ql-bubble.ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-bubble .ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-bubble.ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-bubble .ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-bubble.ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-bubble .ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-bubble.ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-bubble .ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-bubble.ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,.ql-bubble .ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill{fill:#fff}.ql-bubble.ql-toolbar button:hover .ql-stroke,.ql-bubble .ql-toolbar button:hover .ql-stroke,.ql-bubble.ql-toolbar button:focus .ql-stroke,.ql-bubble .ql-toolbar button:focus .ql-stroke,.ql-bubble.ql-toolbar button.ql-active .ql-stroke,.ql-bubble .ql-toolbar button.ql-active .ql-stroke,.ql-bubble.ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-bubble .ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-bubble.ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-bubble .ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-bubble.ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-bubble .ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-bubble.ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-bubble .ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-bubble.ql-toolbar button:hover .ql-stroke-miter,.ql-bubble .ql-toolbar button:hover .ql-stroke-miter,.ql-bubble.ql-toolbar button:focus .ql-stroke-miter,.ql-bubble .ql-toolbar button:focus .ql-stroke-miter,.ql-bubble.ql-toolbar button.ql-active .ql-stroke-miter,.ql-bubble .ql-toolbar button.ql-active .ql-stroke-miter,.ql-bubble.ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-bubble .ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-bubble.ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-bubble .ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-bubble.ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-bubble .ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-bubble.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,.ql-bubble .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter{stroke:#fff}@media (pointer: coarse){.ql-bubble.ql-toolbar button:hover:not(.ql-active),.ql-bubble .ql-toolbar button:hover:not(.ql-active){color:#ccc}.ql-bubble.ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-bubble .ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-bubble.ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill,.ql-bubble .ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill{fill:#ccc}.ql-bubble.ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-bubble .ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-bubble.ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter,.ql-bubble .ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter{stroke:#ccc}}.ql-bubble,.ql-bubble *{box-sizing:border-box}.ql-bubble .ql-hidden{display:none}.ql-bubble .ql-out-bottom,.ql-bubble .ql-out-top{visibility:hidden}.ql-bubble .ql-tooltip{position:absolute;transform:translateY(10px)}.ql-bubble .ql-tooltip a{cursor:pointer;text-decoration:none}.ql-bubble .ql-tooltip.ql-flip{transform:translateY(-10px)}.ql-bubble .ql-formats{display:inline-block;vertical-align:middle}.ql-bubble .ql-formats:after{clear:both;content:"";display:table}.ql-bubble .ql-stroke{fill:none;stroke:#ccc;stroke-linecap:round;stroke-linejoin:round;stroke-width:2}.ql-bubble .ql-stroke-miter{fill:none;stroke:#ccc;stroke-miterlimit:10;stroke-width:2}.ql-bubble .ql-fill,.ql-bubble .ql-stroke.ql-fill{fill:#ccc}.ql-bubble .ql-empty{fill:none}.ql-bubble .ql-even{fill-rule:evenodd}.ql-bubble .ql-thin,.ql-bubble .ql-stroke.ql-thin{stroke-width:1}.ql-bubble .ql-transparent{opacity:.4}.ql-bubble .ql-direction svg:last-child{display:none}.ql-bubble .ql-direction.ql-active svg:last-child{display:inline}.ql-bubble .ql-direction.ql-active svg:first-child{display:none}.ql-bubble .ql-editor h1{font-size:2em}.ql-bubble .ql-editor h2{font-size:1.5em}.ql-bubble .ql-editor h3{font-size:1.17em}.ql-bubble .ql-editor h4{font-size:1em}.ql-bubble .ql-editor h5{font-size:.83em}.ql-bubble .ql-editor h6{font-size:.67em}.ql-bubble .ql-editor a{text-decoration:underline}.ql-bubble .ql-editor blockquote{border-left:4px solid #ccc;margin-bottom:5px;margin-top:5px;padding-left:16px}.ql-bubble .ql-editor code,.ql-bubble .ql-editor pre{background-color:#f0f0f0;border-radius:3px}.ql-bubble .ql-editor pre{white-space:pre-wrap;margin-bottom:5px;margin-top:5px;padding:5px 10px}.ql-bubble .ql-editor code{font-size:85%;padding:2px 4px}.ql-bubble .ql-editor pre.ql-syntax{background-color:#23241f;color:#f8f8f2;overflow:visible}.ql-bubble .ql-editor img{max-width:100%}.ql-bubble .ql-picker{color:#ccc;display:inline-block;float:left;font-size:14px;font-weight:500;height:24px;position:relative;vertical-align:middle}.ql-bubble .ql-picker-label{cursor:pointer;display:inline-block;height:100%;padding-left:8px;padding-right:2px;position:relative;width:100%}.ql-bubble .ql-picker-label:before{display:inline-block;line-height:22px}.ql-bubble .ql-picker-options{background-color:#444;display:none;min-width:100%;padding:4px 8px;position:absolute;white-space:nowrap}.ql-bubble .ql-picker-options .ql-picker-item{cursor:pointer;display:block;padding-bottom:5px;padding-top:5px}.ql-bubble .ql-picker.ql-expanded .ql-picker-label{color:#777;z-index:2}.ql-bubble .ql-picker.ql-expanded .ql-picker-label .ql-fill{fill:#777}.ql-bubble .ql-picker.ql-expanded .ql-picker-label .ql-stroke{stroke:#777}.ql-bubble .ql-picker.ql-expanded .ql-picker-options{display:block;margin-top:-1px;top:100%;z-index:1}.ql-bubble .ql-color-picker,.ql-bubble .ql-icon-picker{width:28px}.ql-bubble .ql-color-picker .ql-picker-label,.ql-bubble .ql-icon-picker .ql-picker-label{padding:2px 4px}.ql-bubble .ql-color-picker .ql-picker-label svg,.ql-bubble .ql-icon-picker .ql-picker-label svg{right:4px}.ql-bubble .ql-icon-picker .ql-picker-options{padding:4px 0}.ql-bubble .ql-icon-picker .ql-picker-item{height:24px;width:24px;padding:2px 4px}.ql-bubble .ql-color-picker .ql-picker-options{padding:3px 5px;width:152px}.ql-bubble .ql-color-picker .ql-picker-item{border:1px solid transparent;float:left;height:16px;margin:2px;padding:0;width:16px}.ql-bubble .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg{position:absolute;margin-top:-9px;right:0;top:50%;width:18px}.ql-bubble .ql-picker.ql-header .ql-picker-label[data-label]:not([data-label=""]):before,.ql-bubble .ql-picker.ql-font .ql-picker-label[data-label]:not([data-label=""]):before,.ql-bubble .ql-picker.ql-size .ql-picker-label[data-label]:not([data-label=""]):before,.ql-bubble .ql-picker.ql-header .ql-picker-item[data-label]:not([data-label=""]):before,.ql-bubble .ql-picker.ql-font .ql-picker-item[data-label]:not([data-label=""]):before,.ql-bubble .ql-picker.ql-size .ql-picker-item[data-label]:not([data-label=""]):before{content:attr(data-label)}.ql-bubble .ql-picker.ql-header{width:98px}.ql-bubble .ql-picker.ql-header .ql-picker-label:before,.ql-bubble .ql-picker.ql-header .ql-picker-item:before{content:"Normal"}.ql-bubble .ql-picker.ql-header .ql-picker-label[data-value="1"]:before,.ql-bubble .ql-picker.ql-header .ql-picker-item[data-value="1"]:before{content:"Heading 1"}.ql-bubble .ql-picker.ql-header .ql-picker-label[data-value="2"]:before,.ql-bubble .ql-picker.ql-header .ql-picker-item[data-value="2"]:before{content:"Heading 2"}.ql-bubble .ql-picker.ql-header .ql-picker-label[data-value="3"]:before,.ql-bubble .ql-picker.ql-header .ql-picker-item[data-value="3"]:before{content:"Heading 3"}.ql-bubble .ql-picker.ql-header .ql-picker-label[data-value="4"]:before,.ql-bubble .ql-picker.ql-header .ql-picker-item[data-value="4"]:before{content:"Heading 4"}.ql-bubble .ql-picker.ql-header .ql-picker-label[data-value="5"]:before,.ql-bubble .ql-picker.ql-header .ql-picker-item[data-value="5"]:before{content:"Heading 5"}.ql-bubble .ql-picker.ql-header .ql-picker-label[data-value="6"]:before,.ql-bubble .ql-picker.ql-header .ql-picker-item[data-value="6"]:before{content:"Heading 6"}.ql-bubble .ql-picker.ql-header .ql-picker-item[data-value="1"]:before{font-size:2em}.ql-bubble .ql-picker.ql-header .ql-picker-item[data-value="2"]:before{font-size:1.5em}.ql-bubble .ql-picker.ql-header .ql-picker-item[data-value="3"]:before{font-size:1.17em}.ql-bubble .ql-picker.ql-header .ql-picker-item[data-value="4"]:before{font-size:1em}.ql-bubble .ql-picker.ql-header .ql-picker-item[data-value="5"]:before{font-size:.83em}.ql-bubble .ql-picker.ql-header .ql-picker-item[data-value="6"]:before{font-size:.67em}.ql-bubble .ql-picker.ql-font{width:108px}.ql-bubble .ql-picker.ql-font .ql-picker-label:before,.ql-bubble .ql-picker.ql-font .ql-picker-item:before{content:"Sans Serif"}.ql-bubble .ql-picker.ql-font .ql-picker-label[data-value=serif]:before,.ql-bubble .ql-picker.ql-font .ql-picker-item[data-value=serif]:before{content:"Serif"}.ql-bubble .ql-picker.ql-font .ql-picker-label[data-value=monospace]:before,.ql-bubble .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before{content:"Monospace"}.ql-bubble .ql-picker.ql-font .ql-picker-item[data-value=serif]:before{font-family:Georgia,Times New Roman,serif}.ql-bubble .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before{font-family:Monaco,Courier New,monospace}.ql-bubble .ql-picker.ql-size{width:98px}.ql-bubble .ql-picker.ql-size .ql-picker-label:before,.ql-bubble .ql-picker.ql-size .ql-picker-item:before{content:"Normal"}.ql-bubble .ql-picker.ql-size .ql-picker-label[data-value=small]:before,.ql-bubble .ql-picker.ql-size .ql-picker-item[data-value=small]:before{content:"Small"}.ql-bubble .ql-picker.ql-size .ql-picker-label[data-value=large]:before,.ql-bubble .ql-picker.ql-size .ql-picker-item[data-value=large]:before{content:"Large"}.ql-bubble .ql-picker.ql-size .ql-picker-label[data-value=huge]:before,.ql-bubble .ql-picker.ql-size .ql-picker-item[data-value=huge]:before{content:"Huge"}.ql-bubble .ql-picker.ql-size .ql-picker-item[data-value=small]:before{font-size:10px}.ql-bubble .ql-picker.ql-size .ql-picker-item[data-value=large]:before{font-size:18px}.ql-bubble .ql-picker.ql-size .ql-picker-item[data-value=huge]:before{font-size:32px}.ql-bubble .ql-color-picker.ql-background .ql-picker-item{background-color:#fff}.ql-bubble .ql-color-picker.ql-color .ql-picker-item{background-color:#000}.ql-bubble .ql-toolbar .ql-formats{margin:8px 12px 8px 0}.ql-bubble .ql-toolbar .ql-formats:first-child{margin-left:12px}.ql-bubble .ql-color-picker svg{margin:1px}.ql-bubble .ql-color-picker .ql-picker-item.ql-selected,.ql-bubble .ql-color-picker .ql-picker-item:hover{border-color:#fff}.ql-bubble .ql-tooltip{background-color:#444;border-radius:25px;color:#fff}.ql-bubble .ql-tooltip-arrow{border-left:6px solid transparent;border-right:6px solid transparent;content:" ";display:block;left:50%;margin-left:-6px;position:absolute}.ql-bubble .ql-tooltip:not(.ql-flip) .ql-tooltip-arrow{border-bottom:6px solid #444;top:-6px}.ql-bubble .ql-tooltip.ql-flip .ql-tooltip-arrow{border-top:6px solid #444;bottom:-6px}.ql-bubble .ql-tooltip.ql-editing .ql-tooltip-editor{display:block}.ql-bubble .ql-tooltip.ql-editing .ql-formats{visibility:hidden}.ql-bubble .ql-tooltip-editor{display:none}.ql-bubble .ql-tooltip-editor input[type=text]{background:transparent;border:none;color:#fff;font-size:13px;height:100%;outline:none;padding:10px 20px;position:absolute;width:100%}.ql-bubble .ql-tooltip-editor a{top:10px;position:absolute;right:20px}.ql-bubble .ql-tooltip-editor a:before{color:#ccc;content:"\d7";font-size:16px;font-weight:700}.ql-container.ql-bubble:not(.ql-disabled) a{position:relative;white-space:nowrap}.ql-container.ql-bubble:not(.ql-disabled) a:before{background-color:#444;border-radius:15px;top:-5px;font-size:12px;color:#fff;content:attr(href);font-weight:400;overflow:hidden;padding:5px 15px;text-decoration:none;z-index:1}.ql-container.ql-bubble:not(.ql-disabled) a:after{border-top:6px solid #444;border-left:6px solid transparent;border-right:6px solid transparent;top:0;content:" ";height:0;width:0}.ql-container.ql-bubble:not(.ql-disabled) a:before,.ql-container.ql-bubble:not(.ql-disabled) a:after{left:0;margin-left:50%;position:absolute;transform:translate(-50%,-100%);transition:visibility 0s ease .2s;visibility:hidden}.ql-container.ql-bubble:not(.ql-disabled) a:hover:before,.ql-container.ql-bubble:not(.ql-disabled) a:hover:after{visibility:visible}.ql-mention-list-container{width:270px;border:1px solid #f0f0f0;border-radius:4px;background-color:#fff;box-shadow:0 2px 12px #1e1e1e14;z-index:9001;overflow:auto}.ql-mention-loading{line-height:44px;padding:0 20px;vertical-align:middle;font-size:16px}.ql-mention-list{list-style:none;margin:0;padding:0;overflow:hidden}.ql-mention-list-item{cursor:pointer;line-height:44px;font-size:16px;padding:0 20px;vertical-align:middle}.ql-mention-list-item.disabled{cursor:auto}.ql-mention-list-item.selected{background-color:#d3e1eb;text-decoration:none}.mention{height:24px;width:65px;border-radius:6px;background-color:#d3e1eb;padding:3px 0;margin-right:2px;-webkit-user-select:all;-moz-user-select:all;user-select:all}.mention>span{margin:0 3px}.file-icon:before{content:"";background-repeat:no-repeat;background-size:contain;background-image:url(/js/build/other.0cd5a04c.svg)}.file-icon.archive:before{background-image:url(/js/build/archive.2927c41b.svg)}.file-icon.cad:before{background-image:url(/js/build/cad.2dfbfe73.svg)}.file-icon.code:before{background-image:url(/js/build/code.1a9a4504.svg)}.file-icon.document:before{background-image:url(/js/build/document.624c4d76.svg)}.file-icon.drawio:before{background-image:url(/js/build/flow.a58ab0df.svg)}.file-icon.excel:before{background-image:url(/js/build/excel.82abb1cd.svg)}.file-icon.flow:before{background-image:url(/js/build/flow.a58ab0df.svg)}.file-icon.folder:before{background-image:url(/js/build/folder.68818161.svg)}.file-icon.folder.share:before{background-image:url(/js/build/folder-share.800b7d36.svg)}.file-icon.media:before{background-image:url(/js/build/media.7488f9a1.svg)}.file-icon.mind:before{background-image:url(/js/build/mind.9f75182d.svg)}.file-icon.ofd:before{background-image:url(/js/build/ofd.f4f94aaa.svg)}.file-icon.pdf:before{background-image:url(/js/build/pdf.74ce4683.svg)}.file-icon.picture:before{background-image:url(/js/build/picture.eff6e480.svg)}.file-icon.ppt:before{background-image:url(/js/build/ppt.03f2290d.svg)}.file-icon.sheet:before{background-image:url(/js/build/sheet.872ae91e.svg)}.file-icon.tif:before{background-image:url(/js/build/tif.7a6494bd.svg)}.file-icon.txt:before{background-image:url(/js/build/txt.acaac5b7.svg)}.file-icon.updir:before{background-image:url(/js/build/updir.354f6e04.svg)}.file-icon.upload:before{background-image:url(/js/build/upload.01661a19.svg)}.file-icon.word:before{background-image:url(/js/build/word.d0364128.svg)}.file-icon.wps:before{background-image:url(/js/build/wps.3cbc3b98.svg)}.fade-in-linear-enter-active,.fade-in-linear-leave-active{transition:opacity .2s linear}.fade-in-linear-enter,.fade-in-linear-leave,.fade-in-linear-leave-active{opacity:0}.el-fade-in-linear-enter-active,.el-fade-in-linear-leave-active{transition:opacity .2s linear}.el-fade-in-linear-enter,.el-fade-in-linear-leave,.el-fade-in-linear-leave-active{opacity:0}.el-fade-in-enter-active,.el-fade-in-leave-active{transition:all .3s cubic-bezier(.55,0,.1,1)}.el-fade-in-enter,.el-fade-in-leave-active{opacity:0}.el-zoom-in-center-enter-active,.el-zoom-in-center-leave-active{transition:all .3s cubic-bezier(.55,0,.1,1)}.el-zoom-in-center-enter,.el-zoom-in-center-leave-active{opacity:0;transform:scaleX(0)}.el-zoom-in-top-enter-active,.el-zoom-in-top-leave-active{opacity:1;transform:scaleY(1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1);transform-origin:center top}.el-zoom-in-top-enter,.el-zoom-in-top-leave-active{opacity:0;transform:scaleY(0)}.el-zoom-in-bottom-enter-active,.el-zoom-in-bottom-leave-active{opacity:1;transform:scaleY(1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1);transform-origin:center bottom}.el-zoom-in-bottom-enter,.el-zoom-in-bottom-leave-active{opacity:0;transform:scaleY(0)}.el-zoom-in-left-enter-active,.el-zoom-in-left-leave-active{opacity:1;transform:scale(1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1);transform-origin:top left}.el-zoom-in-left-enter,.el-zoom-in-left-leave-active{opacity:0;transform:scale(.45)}.collapse-transition{transition:.3s height ease-in-out,.3s padding-top ease-in-out,.3s padding-bottom ease-in-out}.horizontal-collapse-transition{transition:.3s width ease-in-out,.3s padding-left ease-in-out,.3s padding-right ease-in-out}.el-list-enter-active,.el-list-leave-active{transition:all 1s}.el-list-enter,.el-list-leave-active{opacity:0;transform:translateY(-30px)}.el-opacity-transition{transition:opacity .3s cubic-bezier(.55,0,.1,1)}@font-face{font-family:element-icons;src:url(fonts/element-icons.woff) format("woff"),url(fonts/element-icons.ttf) format("truetype");font-weight:400;font-display:"auto";font-style:normal}[class^=el-icon-],[class*=" el-icon-"]{font-family:element-icons!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;vertical-align:baseline;display:inline-block;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.el-icon-ice-cream-round:before{content:"\e6a0"}.el-icon-ice-cream-square:before{content:"\e6a3"}.el-icon-lollipop:before{content:"\e6a4"}.el-icon-potato-strips:before{content:"\e6a5"}.el-icon-milk-tea:before{content:"\e6a6"}.el-icon-ice-drink:before{content:"\e6a7"}.el-icon-ice-tea:before{content:"\e6a9"}.el-icon-coffee:before{content:"\e6aa"}.el-icon-orange:before{content:"\e6ab"}.el-icon-pear:before{content:"\e6ac"}.el-icon-apple:before{content:"\e6ad"}.el-icon-cherry:before{content:"\e6ae"}.el-icon-watermelon:before{content:"\e6af"}.el-icon-grape:before{content:"\e6b0"}.el-icon-refrigerator:before{content:"\e6b1"}.el-icon-goblet-square-full:before{content:"\e6b2"}.el-icon-goblet-square:before{content:"\e6b3"}.el-icon-goblet-full:before{content:"\e6b4"}.el-icon-goblet:before{content:"\e6b5"}.el-icon-cold-drink:before{content:"\e6b6"}.el-icon-coffee-cup:before{content:"\e6b8"}.el-icon-water-cup:before{content:"\e6b9"}.el-icon-hot-water:before{content:"\e6ba"}.el-icon-ice-cream:before{content:"\e6bb"}.el-icon-dessert:before{content:"\e6bc"}.el-icon-sugar:before{content:"\e6bd"}.el-icon-tableware:before{content:"\e6be"}.el-icon-burger:before{content:"\e6bf"}.el-icon-knife-fork:before{content:"\e6c1"}.el-icon-fork-spoon:before{content:"\e6c2"}.el-icon-chicken:before{content:"\e6c3"}.el-icon-food:before{content:"\e6c4"}.el-icon-dish-1:before{content:"\e6c5"}.el-icon-dish:before{content:"\e6c6"}.el-icon-moon-night:before{content:"\e6ee"}.el-icon-moon:before{content:"\e6f0"}.el-icon-cloudy-and-sunny:before{content:"\e6f1"}.el-icon-partly-cloudy:before{content:"\e6f2"}.el-icon-cloudy:before{content:"\e6f3"}.el-icon-sunny:before{content:"\e6f6"}.el-icon-sunset:before{content:"\e6f7"}.el-icon-sunrise-1:before{content:"\e6f8"}.el-icon-sunrise:before{content:"\e6f9"}.el-icon-heavy-rain:before{content:"\e6fa"}.el-icon-lightning:before{content:"\e6fb"}.el-icon-light-rain:before{content:"\e6fc"}.el-icon-wind-power:before{content:"\e6fd"}.el-icon-baseball:before{content:"\e712"}.el-icon-soccer:before{content:"\e713"}.el-icon-football:before{content:"\e715"}.el-icon-basketball:before{content:"\e716"}.el-icon-ship:before{content:"\e73f"}.el-icon-truck:before{content:"\e740"}.el-icon-bicycle:before{content:"\e741"}.el-icon-mobile-phone:before{content:"\e6d3"}.el-icon-service:before{content:"\e6d4"}.el-icon-key:before{content:"\e6e2"}.el-icon-unlock:before{content:"\e6e4"}.el-icon-lock:before{content:"\e6e5"}.el-icon-watch:before{content:"\e6fe"}.el-icon-watch-1:before{content:"\e6ff"}.el-icon-timer:before{content:"\e702"}.el-icon-alarm-clock:before{content:"\e703"}.el-icon-map-location:before{content:"\e704"}.el-icon-delete-location:before{content:"\e705"}.el-icon-add-location:before{content:"\e706"}.el-icon-location-information:before{content:"\e707"}.el-icon-location-outline:before{content:"\e708"}.el-icon-location:before{content:"\e79e"}.el-icon-place:before{content:"\e709"}.el-icon-discover:before{content:"\e70a"}.el-icon-first-aid-kit:before{content:"\e70b"}.el-icon-trophy-1:before{content:"\e70c"}.el-icon-trophy:before{content:"\e70d"}.el-icon-medal:before{content:"\e70e"}.el-icon-medal-1:before{content:"\e70f"}.el-icon-stopwatch:before{content:"\e710"}.el-icon-mic:before{content:"\e711"}.el-icon-copy-document:before{content:"\e718"}.el-icon-full-screen:before{content:"\e719"}.el-icon-switch-button:before{content:"\e71b"}.el-icon-aim:before{content:"\e71c"}.el-icon-crop:before{content:"\e71d"}.el-icon-odometer:before{content:"\e71e"}.el-icon-time:before{content:"\e71f"}.el-icon-bangzhu:before{content:"\e724"}.el-icon-close-notification:before{content:"\e726"}.el-icon-microphone:before{content:"\e727"}.el-icon-turn-off-microphone:before{content:"\e728"}.el-icon-position:before{content:"\e729"}.el-icon-postcard:before{content:"\e72a"}.el-icon-message:before{content:"\e72b"}.el-icon-chat-line-square:before{content:"\e72d"}.el-icon-chat-dot-square:before{content:"\e72e"}.el-icon-chat-dot-round:before{content:"\e72f"}.el-icon-chat-square:before{content:"\e730"}.el-icon-chat-line-round:before{content:"\e731"}.el-icon-chat-round:before{content:"\e732"}.el-icon-set-up:before{content:"\e733"}.el-icon-turn-off:before{content:"\e734"}.el-icon-open:before{content:"\e735"}.el-icon-connection:before{content:"\e736"}.el-icon-link:before{content:"\e737"}.el-icon-cpu:before{content:"\e738"}.el-icon-thumb:before{content:"\e739"}.el-icon-female:before{content:"\e73a"}.el-icon-male:before{content:"\e73b"}.el-icon-guide:before{content:"\e73c"}.el-icon-news:before{content:"\e73e"}.el-icon-price-tag:before{content:"\e744"}.el-icon-discount:before{content:"\e745"}.el-icon-wallet:before{content:"\e747"}.el-icon-coin:before{content:"\e748"}.el-icon-money:before{content:"\e749"}.el-icon-bank-card:before{content:"\e74a"}.el-icon-box:before{content:"\e74b"}.el-icon-present:before{content:"\e74c"}.el-icon-sell:before{content:"\e6d5"}.el-icon-sold-out:before{content:"\e6d6"}.el-icon-shopping-bag-2:before{content:"\e74d"}.el-icon-shopping-bag-1:before{content:"\e74e"}.el-icon-shopping-cart-2:before{content:"\e74f"}.el-icon-shopping-cart-1:before{content:"\e750"}.el-icon-shopping-cart-full:before{content:"\e751"}.el-icon-smoking:before{content:"\e752"}.el-icon-no-smoking:before{content:"\e753"}.el-icon-house:before{content:"\e754"}.el-icon-table-lamp:before{content:"\e755"}.el-icon-school:before{content:"\e756"}.el-icon-office-building:before{content:"\e757"}.el-icon-toilet-paper:before{content:"\e758"}.el-icon-notebook-2:before{content:"\e759"}.el-icon-notebook-1:before{content:"\e75a"}.el-icon-files:before{content:"\e75b"}.el-icon-collection:before{content:"\e75c"}.el-icon-receiving:before{content:"\e75d"}.el-icon-suitcase-1:before{content:"\e760"}.el-icon-suitcase:before{content:"\e761"}.el-icon-film:before{content:"\e763"}.el-icon-collection-tag:before{content:"\e765"}.el-icon-data-analysis:before{content:"\e766"}.el-icon-pie-chart:before{content:"\e767"}.el-icon-data-board:before{content:"\e768"}.el-icon-data-line:before{content:"\e76d"}.el-icon-reading:before{content:"\e769"}.el-icon-magic-stick:before{content:"\e76a"}.el-icon-coordinate:before{content:"\e76b"}.el-icon-mouse:before{content:"\e76c"}.el-icon-brush:before{content:"\e76e"}.el-icon-headset:before{content:"\e76f"}.el-icon-umbrella:before{content:"\e770"}.el-icon-scissors:before{content:"\e771"}.el-icon-mobile:before{content:"\e773"}.el-icon-attract:before{content:"\e774"}.el-icon-monitor:before{content:"\e775"}.el-icon-search:before{content:"\e778"}.el-icon-takeaway-box:before{content:"\e77a"}.el-icon-paperclip:before{content:"\e77d"}.el-icon-printer:before{content:"\e77e"}.el-icon-document-add:before{content:"\e782"}.el-icon-document:before{content:"\e785"}.el-icon-document-checked:before{content:"\e786"}.el-icon-document-copy:before{content:"\e787"}.el-icon-document-delete:before{content:"\e788"}.el-icon-document-remove:before{content:"\e789"}.el-icon-tickets:before{content:"\e78b"}.el-icon-folder-checked:before{content:"\e77f"}.el-icon-folder-delete:before{content:"\e780"}.el-icon-folder-remove:before{content:"\e781"}.el-icon-folder-add:before{content:"\e783"}.el-icon-folder-opened:before{content:"\e784"}.el-icon-folder:before{content:"\e78a"}.el-icon-edit-outline:before{content:"\e764"}.el-icon-edit:before{content:"\e78c"}.el-icon-date:before{content:"\e78e"}.el-icon-c-scale-to-original:before{content:"\e7c6"}.el-icon-view:before{content:"\e6ce"}.el-icon-loading:before{content:"\e6cf"}.el-icon-rank:before{content:"\e6d1"}.el-icon-sort-down:before{content:"\e7c4"}.el-icon-sort-up:before{content:"\e7c5"}.el-icon-sort:before{content:"\e6d2"}.el-icon-finished:before{content:"\e6cd"}.el-icon-refresh-left:before{content:"\e6c7"}.el-icon-refresh-right:before{content:"\e6c8"}.el-icon-refresh:before{content:"\e6d0"}.el-icon-video-play:before{content:"\e7c0"}.el-icon-video-pause:before{content:"\e7c1"}.el-icon-d-arrow-right:before{content:"\e6dc"}.el-icon-d-arrow-left:before{content:"\e6dd"}.el-icon-arrow-up:before{content:"\e6e1"}.el-icon-arrow-down:before{content:"\e6df"}.el-icon-arrow-right:before{content:"\e6e0"}.el-icon-arrow-left:before{content:"\e6de"}.el-icon-top-right:before{content:"\e6e7"}.el-icon-top-left:before{content:"\e6e8"}.el-icon-top:before{content:"\e6e6"}.el-icon-bottom:before{content:"\e6eb"}.el-icon-right:before{content:"\e6e9"}.el-icon-back:before{content:"\e6ea"}.el-icon-bottom-right:before{content:"\e6ec"}.el-icon-bottom-left:before{content:"\e6ed"}.el-icon-caret-top:before{content:"\e78f"}.el-icon-caret-bottom:before{content:"\e790"}.el-icon-caret-right:before{content:"\e791"}.el-icon-caret-left:before{content:"\e792"}.el-icon-d-caret:before{content:"\e79a"}.el-icon-share:before{content:"\e793"}.el-icon-menu:before{content:"\e798"}.el-icon-s-grid:before{content:"\e7a6"}.el-icon-s-check:before{content:"\e7a7"}.el-icon-s-data:before{content:"\e7a8"}.el-icon-s-opportunity:before{content:"\e7aa"}.el-icon-s-custom:before{content:"\e7ab"}.el-icon-s-claim:before{content:"\e7ad"}.el-icon-s-finance:before{content:"\e7ae"}.el-icon-s-comment:before{content:"\e7af"}.el-icon-s-flag:before{content:"\e7b0"}.el-icon-s-marketing:before{content:"\e7b1"}.el-icon-s-shop:before{content:"\e7b4"}.el-icon-s-open:before{content:"\e7b5"}.el-icon-s-management:before{content:"\e7b6"}.el-icon-s-ticket:before{content:"\e7b7"}.el-icon-s-release:before{content:"\e7b8"}.el-icon-s-home:before{content:"\e7b9"}.el-icon-s-promotion:before{content:"\e7ba"}.el-icon-s-operation:before{content:"\e7bb"}.el-icon-s-unfold:before{content:"\e7bc"}.el-icon-s-fold:before{content:"\e7a9"}.el-icon-s-platform:before{content:"\e7bd"}.el-icon-s-order:before{content:"\e7be"}.el-icon-s-cooperation:before{content:"\e7bf"}.el-icon-bell:before{content:"\e725"}.el-icon-message-solid:before{content:"\e799"}.el-icon-video-camera:before{content:"\e772"}.el-icon-video-camera-solid:before{content:"\e796"}.el-icon-camera:before{content:"\e779"}.el-icon-camera-solid:before{content:"\e79b"}.el-icon-download:before{content:"\e77c"}.el-icon-upload2:before{content:"\e77b"}.el-icon-upload:before{content:"\e7c3"}.el-icon-picture-outline-round:before{content:"\e75f"}.el-icon-picture-outline:before{content:"\e75e"}.el-icon-picture:before{content:"\e79f"}.el-icon-close:before{content:"\e6db"}.el-icon-check:before{content:"\e6da"}.el-icon-plus:before{content:"\e6d9"}.el-icon-minus:before{content:"\e6d8"}.el-icon-help:before{content:"\e73d"}.el-icon-s-help:before{content:"\e7b3"}.el-icon-circle-close:before{content:"\e78d"}.el-icon-circle-check:before{content:"\e720"}.el-icon-circle-plus-outline:before{content:"\e723"}.el-icon-remove-outline:before{content:"\e722"}.el-icon-zoom-out:before{content:"\e776"}.el-icon-zoom-in:before{content:"\e777"}.el-icon-error:before{content:"\e79d"}.el-icon-success:before{content:"\e79c"}.el-icon-circle-plus:before{content:"\e7a0"}.el-icon-remove:before{content:"\e7a2"}.el-icon-info:before{content:"\e7a1"}.el-icon-question:before{content:"\e7a4"}.el-icon-warning-outline:before{content:"\e6c9"}.el-icon-warning:before{content:"\e7a3"}.el-icon-goods:before{content:"\e7c2"}.el-icon-s-goods:before{content:"\e7b2"}.el-icon-star-off:before{content:"\e717"}.el-icon-star-on:before{content:"\e797"}.el-icon-more-outline:before{content:"\e6cc"}.el-icon-more:before{content:"\e794"}.el-icon-phone-outline:before{content:"\e6cb"}.el-icon-phone:before{content:"\e795"}.el-icon-user:before{content:"\e6e3"}.el-icon-user-solid:before{content:"\e7a5"}.el-icon-setting:before{content:"\e6ca"}.el-icon-s-tools:before{content:"\e7ac"}.el-icon-delete:before{content:"\e6d7"}.el-icon-delete-solid:before{content:"\e7c9"}.el-icon-eleme:before{content:"\e7c7"}.el-icon-platform-eleme:before{content:"\e7ca"}.el-icon-loading{animation:rotating 2s linear infinite}.el-icon--right{margin-left:5px}.el-icon--left{margin-right:5px}@keyframes rotating{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.el-avatar{display:inline-block;box-sizing:border-box;text-align:center;overflow:hidden;color:#fff;background:#C0C4CC;width:40px;height:40px;line-height:40px;font-size:14px}.el-avatar>img{display:block;height:100%;vertical-align:middle}.el-avatar--circle{border-radius:50%}.el-avatar--square{border-radius:4px}.el-avatar--icon{font-size:18px}.el-avatar--large{width:40px;height:40px;line-height:40px}.el-avatar--medium{width:36px;height:36px;line-height:36px}.el-avatar--small{width:28px;height:28px;line-height:28px}.el-tooltip:focus:not(.focusing),.el-tooltip:focus:hover{outline-width:0}.el-tooltip__popper{position:absolute;border-radius:4px;padding:10px;z-index:2000;font-size:14px;line-height:1.2;min-width:10px;word-wrap:break-word}.el-tooltip__popper .popper__arrow,.el-tooltip__popper .popper__arrow:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}.el-tooltip__popper .popper__arrow{border-width:6px}.el-tooltip__popper .popper__arrow:after{content:" ";border-width:5px}.el-tooltip__popper[x-placement^=top]{margin-bottom:12px}.el-tooltip__popper[x-placement^=top] .popper__arrow{bottom:-6px;border-top-color:#585e6a;border-bottom-width:0}.el-tooltip__popper[x-placement^=top] .popper__arrow:after{bottom:1px;margin-left:-5px;border-top-color:#585e6a;border-bottom-width:0}.el-tooltip__popper[x-placement^=bottom]{margin-top:12px}.el-tooltip__popper[x-placement^=bottom] .popper__arrow{top:-6px;border-top-width:0;border-bottom-color:#585e6a}.el-tooltip__popper[x-placement^=bottom] .popper__arrow:after{top:1px;margin-left:-5px;border-top-width:0;border-bottom-color:#585e6a}.el-tooltip__popper[x-placement^=right]{margin-left:12px}.el-tooltip__popper[x-placement^=right] .popper__arrow{left:-6px;border-right-color:#585e6a;border-left-width:0}.el-tooltip__popper[x-placement^=right] .popper__arrow:after{bottom:-5px;left:1px;border-right-color:#585e6a;border-left-width:0}.el-tooltip__popper[x-placement^=left]{margin-right:12px}.el-tooltip__popper[x-placement^=left] .popper__arrow{right:-6px;border-right-width:0;border-left-color:#585e6a}.el-tooltip__popper[x-placement^=left] .popper__arrow:after{right:1px;bottom:-5px;margin-left:-5px;border-right-width:0;border-left-color:#585e6a}.el-tooltip__popper.is-dark{background:#585E6A;color:#fff}.el-tooltip__popper.is-light{background:#FFFFFF;border:1px solid #585E6A}.el-tooltip__popper.is-light[x-placement^=top] .popper__arrow{border-top-color:#585e6a}.el-tooltip__popper.is-light[x-placement^=top] .popper__arrow:after{border-top-color:#fff}.el-tooltip__popper.is-light[x-placement^=bottom] .popper__arrow{border-bottom-color:#585e6a}.el-tooltip__popper.is-light[x-placement^=bottom] .popper__arrow:after{border-bottom-color:#fff}.el-tooltip__popper.is-light[x-placement^=left] .popper__arrow{border-left-color:#585e6a}.el-tooltip__popper.is-light[x-placement^=left] .popper__arrow:after{border-left-color:#fff}.el-tooltip__popper.is-light[x-placement^=right] .popper__arrow{border-right-color:#585e6a}.el-tooltip__popper.is-light[x-placement^=right] .popper__arrow:after{border-right-color:#fff}.el-popper .popper__arrow,.el-popper .popper__arrow:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}.el-popper .popper__arrow{border-width:6px;filter:drop-shadow(0 2px 12px rgba(0,0,0,.03))}.el-popper .popper__arrow:after{content:" ";border-width:6px}.el-popper[x-placement^=top]{margin-bottom:12px}.el-popper[x-placement^=top] .popper__arrow{bottom:-6px;left:50%;margin-right:3px;border-top-color:#ebeef5;border-bottom-width:0}.el-popper[x-placement^=top] .popper__arrow:after{bottom:1px;margin-left:-6px;border-top-color:#fff;border-bottom-width:0}.el-popper[x-placement^=bottom]{margin-top:12px}.el-popper[x-placement^=bottom] .popper__arrow{top:-6px;left:50%;margin-right:3px;border-top-width:0;border-bottom-color:#ebeef5}.el-popper[x-placement^=bottom] .popper__arrow:after{top:1px;margin-left:-6px;border-top-width:0;border-bottom-color:#fff}.el-popper[x-placement^=right]{margin-left:12px}.el-popper[x-placement^=right] .popper__arrow{top:50%;left:-6px;margin-bottom:3px;border-right-color:#ebeef5;border-left-width:0}.el-popper[x-placement^=right] .popper__arrow:after{bottom:-6px;left:1px;border-right-color:#fff;border-left-width:0}.el-popper[x-placement^=left]{margin-right:12px}.el-popper[x-placement^=left] .popper__arrow{top:50%;right:-6px;margin-bottom:3px;border-right-width:0;border-left-color:#ebeef5}.el-popper[x-placement^=left] .popper__arrow:after{right:1px;bottom:-6px;margin-left:-6px;border-right-width:0;border-left-color:#fff}.el-popover{position:absolute;background:#FFFFFF;min-width:150px;border-radius:4px;border:1px solid #EBEEF5;padding:12px;z-index:2000;color:#606266;line-height:1.4;text-align:justify;font-size:14px;box-shadow:0 2px 12px #0000001a;word-break:break-all}.el-popover--plain{padding:18px 20px}.el-popover__title{color:#303133;font-size:16px;line-height:1;margin-bottom:12px}.el-popover__reference:focus:not(.focusing),.el-popover__reference:focus:hover{outline-width:0}.el-popover:focus:active,.el-popover:focus{outline-width:0}.el-button{display:inline-block;line-height:1;white-space:nowrap;cursor:pointer;background:#FFFFFF;border:1px solid #DCDFE6;border-color:#dcdfe6;color:#606266;-webkit-appearance:none;text-align:center;box-sizing:border-box;outline:none;margin:0;transition:.1s;font-weight:500;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;padding:12px 20px;font-size:14px;border-radius:4px}.el-button+.el-button{margin-left:10px}.el-button.is-round{padding:12px 20px}.el-button:hover,.el-button:focus{color:#409eff;border-color:#c6e2ff;background-color:#ecf5ff}.el-button:active{color:#3a8ee6;border-color:#3a8ee6;outline:none}.el-button::-moz-focus-inner{border:0}.el-button [class*=el-icon-]+span{margin-left:5px}.el-button.is-plain:hover,.el-button.is-plain:focus{background:#FFFFFF;border-color:#409eff;color:#409eff}.el-button.is-plain:active{background:#FFFFFF;border-color:#3a8ee6;color:#3a8ee6;outline:none}.el-button.is-active{color:#3a8ee6;border-color:#3a8ee6}.el-button.is-disabled,.el-button.is-disabled:hover,.el-button.is-disabled:focus{color:#c0c4cc;cursor:not-allowed;background-image:none;background-color:#fff;border-color:#ebeef5}.el-button.is-disabled.el-button--text{background-color:transparent}.el-button.is-disabled.is-plain,.el-button.is-disabled.is-plain:hover,.el-button.is-disabled.is-plain:focus{background-color:#fff;border-color:#ebeef5;color:#c0c4cc}.el-button.is-loading{position:relative;pointer-events:none}.el-button.is-loading:before{pointer-events:none;content:"";position:absolute;left:-1px;top:-1px;right:-1px;bottom:-1px;border-radius:inherit;background-color:#ffffff59}.el-button.is-round{border-radius:20px;padding:12px 23px}.el-button.is-circle{border-radius:50%;padding:12px}.el-button--primary{color:#fff;background-color:#409eff;border-color:#409eff}.el-button--primary:hover,.el-button--primary:focus{background:#66b1ff;border-color:#66b1ff;color:#fff}.el-button--primary:active{background:#3a8ee6;border-color:#3a8ee6;color:#fff;outline:none}.el-button--primary.is-active{background:#3a8ee6;border-color:#3a8ee6;color:#fff}.el-button--primary.is-disabled,.el-button--primary.is-disabled:hover,.el-button--primary.is-disabled:focus,.el-button--primary.is-disabled:active{color:#fff;background-color:#a0cfff;border-color:#a0cfff}.el-button--primary.is-plain{color:#409eff;background:#ecf5ff;border-color:#b3d8ff}.el-button--primary.is-plain:hover,.el-button--primary.is-plain:focus{background:#409EFF;border-color:#409eff;color:#fff}.el-button--primary.is-plain:active{background:#3a8ee6;border-color:#3a8ee6;color:#fff;outline:none}.el-button--primary.is-plain.is-disabled,.el-button--primary.is-plain.is-disabled:hover,.el-button--primary.is-plain.is-disabled:focus,.el-button--primary.is-plain.is-disabled:active{color:#8cc5ff;background-color:#ecf5ff;border-color:#d9ecff}.el-button--success{color:#fff;background-color:#67c23a;border-color:#67c23a}.el-button--success:hover,.el-button--success:focus{background:#85ce61;border-color:#85ce61;color:#fff}.el-button--success:active{background:#5daf34;border-color:#5daf34;color:#fff;outline:none}.el-button--success.is-active{background:#5daf34;border-color:#5daf34;color:#fff}.el-button--success.is-disabled,.el-button--success.is-disabled:hover,.el-button--success.is-disabled:focus,.el-button--success.is-disabled:active{color:#fff;background-color:#b3e19d;border-color:#b3e19d}.el-button--success.is-plain{color:#67c23a;background:#f0f9eb;border-color:#c2e7b0}.el-button--success.is-plain:hover,.el-button--success.is-plain:focus{background:#67C23A;border-color:#67c23a;color:#fff}.el-button--success.is-plain:active{background:#5daf34;border-color:#5daf34;color:#fff;outline:none}.el-button--success.is-plain.is-disabled,.el-button--success.is-plain.is-disabled:hover,.el-button--success.is-plain.is-disabled:focus,.el-button--success.is-plain.is-disabled:active{color:#a4da89;background-color:#f0f9eb;border-color:#e1f3d8}.el-button--warning{color:#fff;background-color:#e6a23c;border-color:#e6a23c}.el-button--warning:hover,.el-button--warning:focus{background:#ebb563;border-color:#ebb563;color:#fff}.el-button--warning:active{background:#cf9236;border-color:#cf9236;color:#fff;outline:none}.el-button--warning.is-active{background:#cf9236;border-color:#cf9236;color:#fff}.el-button--warning.is-disabled,.el-button--warning.is-disabled:hover,.el-button--warning.is-disabled:focus,.el-button--warning.is-disabled:active{color:#fff;background-color:#f3d19e;border-color:#f3d19e}.el-button--warning.is-plain{color:#e6a23c;background:#fdf6ec;border-color:#f5dab1}.el-button--warning.is-plain:hover,.el-button--warning.is-plain:focus{background:#E6A23C;border-color:#e6a23c;color:#fff}.el-button--warning.is-plain:active{background:#cf9236;border-color:#cf9236;color:#fff;outline:none}.el-button--warning.is-plain.is-disabled,.el-button--warning.is-plain.is-disabled:hover,.el-button--warning.is-plain.is-disabled:focus,.el-button--warning.is-plain.is-disabled:active{color:#f0c78a;background-color:#fdf6ec;border-color:#faecd8}.el-button--danger{color:#fff;background-color:#f56c6c;border-color:#f56c6c}.el-button--danger:hover,.el-button--danger:focus{background:#f78989;border-color:#f78989;color:#fff}.el-button--danger:active{background:#dd6161;border-color:#dd6161;color:#fff;outline:none}.el-button--danger.is-active{background:#dd6161;border-color:#dd6161;color:#fff}.el-button--danger.is-disabled,.el-button--danger.is-disabled:hover,.el-button--danger.is-disabled:focus,.el-button--danger.is-disabled:active{color:#fff;background-color:#fab6b6;border-color:#fab6b6}.el-button--danger.is-plain{color:#f56c6c;background:#fef0f0;border-color:#fbc4c4}.el-button--danger.is-plain:hover,.el-button--danger.is-plain:focus{background:#F56C6C;border-color:#f56c6c;color:#fff}.el-button--danger.is-plain:active{background:#dd6161;border-color:#dd6161;color:#fff;outline:none}.el-button--danger.is-plain.is-disabled,.el-button--danger.is-plain.is-disabled:hover,.el-button--danger.is-plain.is-disabled:focus,.el-button--danger.is-plain.is-disabled:active{color:#f9a7a7;background-color:#fef0f0;border-color:#fde2e2}.el-button--info{color:#fff;background-color:#909399;border-color:#909399}.el-button--info:hover,.el-button--info:focus{background:#a6a9ad;border-color:#a6a9ad;color:#fff}.el-button--info:active{background:#82848a;border-color:#82848a;color:#fff;outline:none}.el-button--info.is-active{background:#82848a;border-color:#82848a;color:#fff}.el-button--info.is-disabled,.el-button--info.is-disabled:hover,.el-button--info.is-disabled:focus,.el-button--info.is-disabled:active{color:#fff;background-color:#c8c9cc;border-color:#c8c9cc}.el-button--info.is-plain{color:#909399;background:#f4f4f5;border-color:#d3d4d6}.el-button--info.is-plain:hover,.el-button--info.is-plain:focus{background:#909399;border-color:#909399;color:#fff}.el-button--info.is-plain:active{background:#82848a;border-color:#82848a;color:#fff;outline:none}.el-button--info.is-plain.is-disabled,.el-button--info.is-plain.is-disabled:hover,.el-button--info.is-plain.is-disabled:focus,.el-button--info.is-plain.is-disabled:active{color:#bcbec2;background-color:#f4f4f5;border-color:#e9e9eb}.el-button--medium{padding:10px 20px;font-size:14px;border-radius:4px}.el-button--medium.is-round{padding:10px 20px}.el-button--medium.is-circle{padding:10px}.el-button--small{padding:9px 15px;font-size:12px;border-radius:3px}.el-button--small.is-round{padding:9px 15px}.el-button--small.is-circle{padding:9px}.el-button--mini{padding:7px 15px;font-size:12px;border-radius:3px}.el-button--mini.is-round{padding:7px 15px}.el-button--mini.is-circle{padding:7px}.el-button--text{border-color:transparent;color:#409eff;background:transparent;padding-left:0;padding-right:0}.el-button--text:hover,.el-button--text:focus{color:#66b1ff;border-color:transparent;background-color:transparent}.el-button--text:active{color:#3a8ee6;border-color:transparent;background-color:transparent}.el-button--text.is-disabled,.el-button--text.is-disabled:hover,.el-button--text.is-disabled:focus{border-color:transparent}.el-button-group{display:inline-block;vertical-align:middle}.el-button-group:before,.el-button-group:after{display:table;content:""}.el-button-group:after{clear:both}.el-button-group>.el-button{float:left;position:relative}.el-button-group>.el-button+.el-button{margin-left:0}.el-button-group>.el-button.is-disabled{z-index:1}.el-button-group>.el-button:first-child{border-top-right-radius:0;border-bottom-right-radius:0}.el-button-group>.el-button:last-child{border-top-left-radius:0;border-bottom-left-radius:0}.el-button-group>.el-button:first-child:last-child{border-radius:4px}.el-button-group>.el-button:first-child:last-child.is-round{border-radius:20px}.el-button-group>.el-button:first-child:last-child.is-circle{border-radius:50%}.el-button-group>.el-button:not(:first-child):not(:last-child){border-radius:0}.el-button-group>.el-button:not(:last-child){margin-right:-1px}.el-button-group>.el-button:not(.is-disabled):hover,.el-button-group>.el-button:not(.is-disabled):focus,.el-button-group>.el-button:not(.is-disabled):active{z-index:1}.el-button-group>.el-button.is-active{z-index:1}.el-button-group>.el-dropdown>.el-button{border-top-left-radius:0;border-bottom-left-radius:0;border-left-color:#ffffff80}.el-button-group .el-button--primary:first-child{border-right-color:#ffffff80}.el-button-group .el-button--primary:last-child{border-left-color:#ffffff80}.el-button-group .el-button--primary:not(:first-child):not(:last-child){border-left-color:#ffffff80;border-right-color:#ffffff80}.el-button-group .el-button--success:first-child{border-right-color:#ffffff80}.el-button-group .el-button--success:last-child{border-left-color:#ffffff80}.el-button-group .el-button--success:not(:first-child):not(:last-child){border-left-color:#ffffff80;border-right-color:#ffffff80}.el-button-group .el-button--warning:first-child{border-right-color:#ffffff80}.el-button-group .el-button--warning:last-child{border-left-color:#ffffff80}.el-button-group .el-button--warning:not(:first-child):not(:last-child){border-left-color:#ffffff80;border-right-color:#ffffff80}.el-button-group .el-button--danger:first-child{border-right-color:#ffffff80}.el-button-group .el-button--danger:last-child{border-left-color:#ffffff80}.el-button-group .el-button--danger:not(:first-child):not(:last-child){border-left-color:#ffffff80;border-right-color:#ffffff80}.el-button-group .el-button--info:first-child{border-right-color:#ffffff80}.el-button-group .el-button--info:last-child{border-left-color:#ffffff80}.el-button-group .el-button--info:not(:first-child):not(:last-child){border-left-color:#ffffff80;border-right-color:#ffffff80}.el-popper .popper__arrow,.el-popper .popper__arrow:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}.el-popper .popper__arrow{border-width:6px;filter:drop-shadow(0 2px 12px rgba(0,0,0,.03))}.el-popper .popper__arrow:after{content:" ";border-width:6px}.el-popper[x-placement^=top]{margin-bottom:12px}.el-popper[x-placement^=top] .popper__arrow{bottom:-6px;left:50%;margin-right:3px;border-top-color:#ebeef5;border-bottom-width:0}.el-popper[x-placement^=top] .popper__arrow:after{bottom:1px;margin-left:-6px;border-top-color:#fff;border-bottom-width:0}.el-popper[x-placement^=bottom]{margin-top:12px}.el-popper[x-placement^=bottom] .popper__arrow{top:-6px;left:50%;margin-right:3px;border-top-width:0;border-bottom-color:#ebeef5}.el-popper[x-placement^=bottom] .popper__arrow:after{top:1px;margin-left:-6px;border-top-width:0;border-bottom-color:#fff}.el-popper[x-placement^=right]{margin-left:12px}.el-popper[x-placement^=right] .popper__arrow{top:50%;left:-6px;margin-bottom:3px;border-right-color:#ebeef5;border-left-width:0}.el-popper[x-placement^=right] .popper__arrow:after{bottom:-6px;left:1px;border-right-color:#fff;border-left-width:0}.el-popper[x-placement^=left]{margin-right:12px}.el-popper[x-placement^=left] .popper__arrow{top:50%;right:-6px;margin-bottom:3px;border-right-width:0;border-left-color:#ebeef5}.el-popper[x-placement^=left] .popper__arrow:after{right:1px;bottom:-6px;margin-left:-6px;border-right-width:0;border-left-color:#fff}.el-dropdown{display:inline-block;position:relative;color:#606266;font-size:14px}.el-dropdown .el-button-group{display:block}.el-dropdown .el-button-group .el-button{float:none}.el-dropdown .el-dropdown__caret-button{padding-left:5px;padding-right:5px;position:relative;border-left:none}.el-dropdown .el-dropdown__caret-button:before{content:"";position:absolute;display:block;width:1px;top:5px;bottom:5px;left:0;background:rgba(255,255,255,.5)}.el-dropdown .el-dropdown__caret-button.el-button--default:before{background:rgba(220,223,230,.5)}.el-dropdown .el-dropdown__caret-button:hover:not(.is-disabled):before{top:0;bottom:0}.el-dropdown .el-dropdown__caret-button .el-dropdown__icon{padding-left:0}.el-dropdown__icon{font-size:12px;margin:0 3px}.el-dropdown .el-dropdown-selfdefine:focus:active,.el-dropdown .el-dropdown-selfdefine:focus:not(.focusing){outline-width:0}.el-dropdown [disabled]{cursor:not-allowed;color:#bbb}.el-dropdown-menu{position:absolute;top:0;left:0;z-index:10;padding:10px 0;margin:5px 0;background-color:#fff;border:1px solid #EBEEF5;border-radius:4px;box-shadow:0 2px 12px #0000001a}.el-dropdown-menu__item{list-style:none;line-height:36px;padding:0 20px;margin:0;font-size:14px;color:#606266;cursor:pointer;outline:none}.el-dropdown-menu__item:not(.is-disabled):hover,.el-dropdown-menu__item:focus{background-color:#f4f5f7;color:#606266}.el-dropdown-menu__item i{margin-right:5px}.el-dropdown-menu__item--divided{position:relative;margin-top:6px;border-top:1px solid #EBEEF5}.el-dropdown-menu__item--divided:before{content:"";height:6px;display:block;margin:0 -20px;background-color:#fff}.el-dropdown-menu__item.is-disabled{cursor:default;color:#bbb;pointer-events:none}.el-dropdown-menu--medium{padding:6px 0}.el-dropdown-menu--medium .el-dropdown-menu__item{line-height:30px;padding:0 17px;font-size:14px}.el-dropdown-menu--medium .el-dropdown-menu__item.el-dropdown-menu__item--divided{margin-top:6px}.el-dropdown-menu--medium .el-dropdown-menu__item.el-dropdown-menu__item--divided:before{height:6px;margin:0 -17px}.el-dropdown-menu--small{padding:6px 0}.el-dropdown-menu--small .el-dropdown-menu__item{line-height:27px;padding:0 15px;font-size:13px}.el-dropdown-menu--small .el-dropdown-menu__item.el-dropdown-menu__item--divided{margin-top:4px}.el-dropdown-menu--small .el-dropdown-menu__item.el-dropdown-menu__item--divided:before{height:4px;margin:0 -15px}.el-dropdown-menu--mini{padding:3px 0}.el-dropdown-menu--mini .el-dropdown-menu__item{line-height:24px;padding:0 10px;font-size:12px}.el-dropdown-menu--mini .el-dropdown-menu__item.el-dropdown-menu__item--divided{margin-top:3px}.el-dropdown-menu--mini .el-dropdown-menu__item.el-dropdown-menu__item--divided:before{height:3px;margin:0 -10px}.el-notification{display:flex;width:330px;padding:14px 26px 14px 13px;border-radius:8px;box-sizing:border-box;border:1px solid #EBEEF5;position:fixed;background-color:#fff;box-shadow:0 2px 12px #0000001a;transition:opacity .3s,transform .3s,left .3s,right .3s,top .4s,bottom .3s;overflow:hidden}.el-notification.right{right:16px}.el-notification.left{left:16px}.el-notification__group{margin-left:13px;margin-right:8px}.el-notification__title{font-weight:700;font-size:16px;color:#303133;margin:0}.el-notification__content{font-size:14px;line-height:21px;margin:6px 0 0;color:#606266;text-align:justify}.el-notification__content p{margin:0}.el-notification__icon{height:24px;width:24px;font-size:24px}.el-notification__closeBtn{position:absolute;top:18px;right:15px;cursor:pointer;color:#909399;font-size:16px}.el-notification__closeBtn:hover{color:#606266}.el-notification .el-icon-success{color:#67c23a}.el-notification .el-icon-error{color:#f56c6c}.el-notification .el-icon-info{color:#909399}.el-notification .el-icon-warning{color:#e6a23c}.el-notification-fade-enter.right{right:0;transform:translate(100%)}.el-notification-fade-enter.left{left:0;transform:translate(-100%)}.el-notification-fade-leave-active{opacity:0}.el-dropdown-menu{-webkit-user-select:none;-moz-user-select:none;user-select:none}.el-dropdown-menu__item{min-width:100px}.el-dropdown-menu__item .item.red{color:red!important}.el-dropdown-menu__item .item.red>i{color:red!important}.el-dropdown-menu__item--divided:before{height:5px}.el-tooltip__popper.is-light{border-width:0;box-shadow:0 1px 6px #0003}.el-tooltip__popper.is-light[x-placement^=top] .popper__arrow{border-top-color:#d9d9d980}.el-tooltip__popper.is-light[x-placement^=bottom] .popper__arrow{border-bottom-color:#d9d9d980}.el-tooltip__popper.is-light[x-placement^=left] .popper__arrow{border-left-color:#d9d9d980}.el-tooltip__popper.is-light[x-placement^=right] .popper__arrow{border-right-color:#d9d9d980}.el-popover{border-width:0;box-shadow:0 1px 6px #0003}@font-face{font-family:zenicon;src:url(/js/build/zenicon.4baf444f.woff2) format("woff2")}.ft.icon{font-family:zenicon,serif;line-height:1;letter-spacing:normal;text-transform:none;white-space:nowrap;word-wrap:normal;text-rendering:auto;transform:scale(1.2);transform-origin:50% 0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;speak:none;direction:ltr;-webkit-font-feature-settings:"liga";padding-left:1px}.ft+.el-el-button,.ft+.ft,.ft+.z-confirm,.ft+.z-execute,.ft+.z-link,.ft+a{margin-left:.6rem}.ft.l12{margin-left:12px}.ft.r12{margin-right:12px}.ft.hover{cursor:pointer}.ft.hover:hover{color:#0285d7}.ft.dark{color:#0d0d0d}.ft.gray{color:#666}.ft.yellow{color:#f90}.ft.red{color:#ed3f14}.ft.green{color:#19be6b}.ft.blue{color:#2d8cf0}.ft.center{text-align:center}.ft.right{text-align:right}.ft.bold{font-weight:700}.ft.underline{text-decoration:underline}.ft.through{text-decoration:line-through}.ft.italic{font-style:italic}.ft.cursor{cursor:pointer}.ft.h1{font-size:1.3rem}.ft.h2{font-size:1.2rem}.ft.h3{font-size:1.1rem}.ft.h4{font-size:.9rem}.ft.h5{font-size:.8rem}@font-face{font-family:taskfont;src:url(/js/build/iconfont.e2406b80.woff2) format("woff2"),url(/js/build/iconfont.21585d94.woff) format("woff"),url(/js/build/iconfont.ede1d5b8.ttf) format("truetype")}.taskfont{font-family:taskfont,"serif"!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.scrollbar-overlay{overflow-y:auto;overflow-y:overlay;-webkit-overflow-scrolling:touch}.scrollbar-overlay::-webkit-scrollbar{width:0;height:0}.scrollbar-overlay::-webkit-scrollbar-thumb{border:3px solid transparent;background-color:#0003;background-clip:content-box;border-radius:12px}.scrollbar-overlay::-webkit-scrollbar-thumb:hover{border:2px solid transparent;background-color:#0003}.scrollbar-overlay::-webkit-scrollbar-thumb:active{border:2px solid transparent;background-color:#0006}.scrollbar-overlay::-webkit-scrollbar-track{border-radius:12px;background:rgba(0,0,0,0)}.scrollbar-overlay:hover::-webkit-scrollbar{width:12px;height:12px}.scrollbar-hidden::-webkit-scrollbar{display:none}.common-auto-tip{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.common-circle{border-radius:50%}.common-circle .common-circle-path{fill:transparent}.common-circle .common-circle-g-path-ring{stroke:#84c56a}.common-circle .common-circle-g-path-core{fill:#84c56a;transform:scale(.56);transform-origin:50%}.common-drawer-overlay .ivu-modal{margin:0;padding:0}.common-drawer-overlay .ivu-modal .ivu-modal-content{background:transparent}.common-drawer-overlay .ivu-modal .ivu-modal-content .ivu-modal-close{display:none}.common-drawer-overlay .ivu-modal .ivu-modal-content .ivu-modal-body{padding:0;display:flex;flex-direction:column;justify-content:flex-end;align-content:flex-end}.common-drawer-overlay .overlay-body{display:flex;flex-direction:column;width:100%;height:100%;max-width:100%;max-height:100%;z-index:2}.common-drawer-overlay .overlay-body .overlay-close{flex-shrink:0;display:flex;align-items:flex-end;justify-content:flex-end}.common-drawer-overlay .overlay-body .overlay-close>a{display:flex;align-items:center;justify-content:center;width:40px;height:40px;color:#fff}.common-drawer-overlay .overlay-body .overlay-close>a .icon{width:24px;height:24px}.common-drawer-overlay .overlay-body .overlay-close>a>svg{transition:all .3s}.common-drawer-overlay .overlay-body .overlay-close>a:hover{color:#fff}.common-drawer-overlay .overlay-body .overlay-close>a:hover>svg{transform:rotate(-90deg)}.common-drawer-overlay .overlay-body .overlay-resize{width:100%;height:5px;margin-bottom:-5px;z-index:1}.common-drawer-overlay .overlay-body .overlay-content{flex:1;position:relative;background:#fff;border-radius:18px 18px 0 0;transform:translate(0) scale(1);cursor:default}.common-drawer-overlay.right .ivu-modal .ivu-modal-content .ivu-modal-body,.common-drawer-overlay.right .overlay-body{flex-direction:row}.common-drawer-overlay.right .overlay-body .overlay-close{align-items:flex-start}.common-drawer-overlay.right .overlay-body .overlay-resize{width:5px;height:100%;margin-right:-5px;z-index:1}.common-drawer-overlay.right .overlay-body .overlay-content{border-radius:18px 0 0 18px}.drawer-slide-bottom-enter-active,.drawer-slide-bottom-leave-active{transition:all .2s ease}.drawer-slide-bottom-enter,.drawer-slide-bottom-leave-to{transform:translateY(15%) scale(.98);opacity:0}.drawer-slide-right-enter-active,.drawer-slide-right-leave-active{transition:all .2s ease}.drawer-slide-right-enter,.drawer-slide-right-leave-to{transform:translate(15%) scale(.98);opacity:0}.common-float-spinner{position:fixed;z-index:9999;top:0;left:0;bottom:0;right:0;display:flex;align-items:center;justify-content:center;background-color:#fff9}.common-float-spinner .common-float-circular{width:30px;height:30px}.common-gantt{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;flex-direction:row;align-items:self-start;color:#747a81}.common-gantt *{box-sizing:border-box}.common-gantt .gantt-left{flex-grow:0;flex-shrink:0;height:100%;background-color:#fff;position:relative;display:flex;flex-direction:column}.common-gantt .gantt-left:after{content:"";position:absolute;top:0;right:0;bottom:0;width:1px;background-color:#edf1f2bf}.common-gantt .gantt-left .gantt-title{height:76px;flex-grow:0;flex-shrink:0;background-color:#f9fafb;padding-left:12px;overflow:hidden}.common-gantt .gantt-left .gantt-title .gantt-title-text{line-height:100px;max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}.common-gantt .gantt-left .gantt-item{transform:translateZ(0);max-height:100%;overflow:auto}.common-gantt .gantt-left .gantt-item::-webkit-scrollbar{display:none}.common-gantt .gantt-left .gantt-item>li{height:40px;border-bottom:1px solid rgba(237,241,242,.75);position:relative;display:flex;align-items:center;padding-left:12px}.common-gantt .gantt-left .gantt-item>li:hover .item-icon{display:flex}.common-gantt .gantt-left .gantt-item>li .item-overdue{flex-grow:0;flex-shrink:0;color:#fff;margin-right:4px;background-color:red;padding:1px 3px;border-radius:3px;font-size:12px;line-height:18px}.common-gantt .gantt-left .gantt-item>li .item-title{flex:1;padding-right:12px;cursor:default;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.common-gantt .gantt-left .gantt-item>li .item-title.complete{text-decoration:line-through}.common-gantt .gantt-left .gantt-item>li .item-title.overdue{font-weight:600}.common-gantt .gantt-left .gantt-item>li .item-icon{display:none;align-items:center;justify-content:center;width:32px;margin-right:2px;font-size:16px;color:#888}.common-gantt .gantt-right{flex:1;height:100%;background-color:#fff;position:relative;overflow:hidden}.common-gantt .gantt-right .gantt-chart{position:absolute;top:0;left:0;right:0;bottom:0;transform:translateZ(0)}.common-gantt .gantt-right .gantt-chart .gantt-month{display:flex;align-items:center;position:absolute;top:0;left:0;right:0;z-index:1;height:26px;line-height:20px;font-size:14px;background-color:#f9fafb}.common-gantt .gantt-right .gantt-chart .gantt-month>li{flex-grow:0;flex-shrink:0;height:100%;position:relative;overflow:hidden}.common-gantt .gantt-right .gantt-chart .gantt-month>li:after{content:"";position:absolute;top:0;right:0;width:1px;height:100%;background-color:#edf1f2bf}.common-gantt .gantt-right .gantt-chart .gantt-month>li .month-format{overflow:hidden;white-space:nowrap;padding:6px 6px 0}.common-gantt .gantt-right .gantt-chart .gantt-date{display:flex;align-items:center;position:absolute;top:26px;left:0;right:0;bottom:0;z-index:2;cursor:move}.common-gantt .gantt-right .gantt-chart .gantt-date:before{content:"";position:absolute;top:0;left:0;right:0;height:50px;background-color:#f9fafb}.common-gantt .gantt-right .gantt-chart .gantt-date>li{flex-grow:0;flex-shrink:0;height:100%;position:relative;overflow:hidden}.common-gantt .gantt-right .gantt-chart .gantt-date>li:after{content:"";position:absolute;top:0;right:0;width:1px;height:100%;background-color:#edf1f2bf}.common-gantt .gantt-right .gantt-chart .gantt-date>li .date-format{overflow:hidden;white-space:nowrap;display:flex;flex-direction:column;align-items:center;justify-content:center;height:44px}.common-gantt .gantt-right .gantt-chart .gantt-date>li .date-format .format-day{line-height:28px;font-size:18px}.common-gantt .gantt-right .gantt-chart .gantt-date>li .date-format .format-week{line-height:16px;font-weight:300;font-size:13px}.common-gantt .gantt-right .gantt-chart .gantt-timeline{position:absolute;top:76px;left:0;right:0;bottom:0;z-index:3;overflow-x:hidden;overflow-y:auto}.common-gantt .gantt-right .gantt-chart .gantt-timeline>li{cursor:default;height:40px;border-bottom:1px solid rgba(237,241,242,.75);position:relative}.common-gantt .gantt-right .gantt-chart .gantt-timeline>li .timeline-item{position:absolute;top:0;touch-action:none;pointer-events:auto;padding:4px;margin-top:4px;background:#e74c3c;border-radius:18px;color:#fff;display:flex;align-items:center;will-change:contents;height:32px}.common-gantt .gantt-right .gantt-chart .gantt-timeline>li .timeline-item .timeline-title{touch-action:none;flex-grow:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-left:4px;margin-right:10px}.common-gantt .gantt-right .gantt-chart .gantt-timeline>li .timeline-item .timeline-resizer{height:22px;touch-action:none;width:8px;background:rgba(255,255,255,.1);cursor:ew-resize;flex-shrink:0;will-change:visibility;position:absolute;top:5px;right:5px}.img-upload-modal .ivu-modal-mask{z-index:1001}.img-upload-modal .ivu-modal-no-mask{background-color:#37373733}.img-upload-modal .ivu-modal-wrap{z-index:1001}.imgcomp-upload-list{display:inline-block;width:60px;height:60px;text-align:center;line-height:60px;border:1px solid transparent;border-radius:4px;overflow:hidden;background:#fff;position:relative;box-shadow:0 1px 1px #0003;margin-right:4px;vertical-align:top}.imgcomp-upload-list .imgcomp-upload-img{position:absolute;top:0;left:0;width:100%;height:100%;background-position:center;background-size:cover}.imgcomp-upload-list .imgcomp-upload-list-cover{display:none;position:absolute;top:0;bottom:0;left:0;right:0;background:rgba(0,0,0,.6)}.imgcomp-upload-list .imgcomp-upload-list-cover i{color:#fff;font-size:24px;cursor:pointer;vertical-align:middle;margin:0;transition:all .2s}.imgcomp-upload-list .imgcomp-upload-list-cover i:hover{font-size:28px}.imgcomp-upload-list .ivu-progress{height:100%}.imgcomp-upload-list .ivu-progress .ivu-progress-outer{background-color:#000000ad;height:100%}.imgcomp-upload-list .ivu-progress .ivu-progress-outer .ivu-progress-inner{width:88%;margin:0 auto}.imgcomp-upload-list:hover .imgcomp-upload-list-cover{display:block}.img-upload-foot{display:flex;align-items:center;justify-content:flex-end}.img-upload-foot .img-upload-foot-input{flex:1;text-align:left;display:flex;align-items:center;justify-content:flex-end}.img-upload-foot .img-upload-foot-input .img-upload-foot-httptitle{cursor:pointer;padding-left:3px;margin-right:22px}.add-box{width:60px;height:60px;line-height:60px;display:inline-block;background:#fff;border:1px dashed #dddee1;border-radius:4px;text-align:center;position:relative;overflow:hidden;vertical-align:top}.add-box .add-box-icon i{vertical-align:middle;padding-bottom:2px}.add-box .add-box-upload{display:none;position:absolute;top:0;left:0;height:100%;width:100%;color:#fff;padding-top:9px;background:rgba(0,0,0,.6)}.add-box .add-box-upload .add-box-item{height:22px;line-height:22px;cursor:pointer}.add-box .add-box-upload .add-box-item .ivu-upload-drag,.add-box .add-box-upload .add-box-item .ivu-upload-drag:hover{background:transparent;border:0;border-radius:0}.add-box .add-box-upload .add-box-item span{transition:all .2s;font-size:12px}.add-box .add-box-upload .add-box-item:hover span{font-size:14px}.add-box em{font-style:normal}.add-box:hover{border-color:#0009}.add-box:hover .add-box-upload{display:block}.callback-add-box{display:block;width:auto;height:25px;line-height:25px;border:0;background:transparent}.callback-add-box .add-box-icon{display:none}.callback-add-box .add-box-upload{display:block;width:auto;background:transparent;color:#333;padding:0}.callback-add-box .add-box-upload>div{display:inline-block;padding-right:10px}.browse-load{margin:20px;text-align:center}.browse-list{max-height:540px;overflow:auto}.browse-list .browse-item{margin:10px 15px;display:inline-block;text-align:center;cursor:pointer;position:relative}.browse-list .browse-item .browse-img{width:64px;height:64px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKoAAABxCAAAAABg5GeyAAACW0lEQVR4Ae3XVRLjMBAE0L3/rSwKM3OcSNPyLVYOLvM6UD0Bd03LVe9XH+RlhlRSSSWVVFJJJZVUUkkllVRSSSWVVFJJJZVUUkl9WyqppJJKKqmkkgpURP17xngOAR5NxW5wlJ9MaLQh83F4NHWmd/gZtdVBaOldfDB1bq5UpJFbFOC6LKnYrkRO209PAw+hIuzWB8Ep5es8HvYo4z4tE1X8UeRwlMM2D5Bzkc7kj6Bi3VTKDDwEeUcrMxrUvGDXTnHa6kK69SDN9sgq1clxKSbNHqqnYmdri81Q9QHf1JPt1Frncaib2XbiTKL2GkHaurnY9LOulMV0O7G6Kw+g9sw2ohhm62KezVJaaufjWC1TnOkr1exilJ7Ji0vxCCqO9V4UwV4PYr9+apouhGYLKfnahdpqegjmeoXOpXgANe70pKT6Zhu19qkY2nC0PZS527lQOyInqr8Uvc5jqfUb1X+PGh5IhW90S2quh3FQC2XRcF66TUkTXPcLKm5FtdR9RJq+2hWII7UpFtmsQLEyzsdJtkxxpr6gLotbUSlV9yeT0Trmzk2XPdUThLYarUbWOY9j04xXQ2u+pMZLYSumGmNUH3HbM9qOAwSHodN2Pks25F2j3aI7+IxqNsB+YLWb16ukSjiW4xNB0gMoMfApBS/XZQgi3p9/5RsiKNKZEOwYFVIF5VyTyD19sbyjIJiNJRZxpNbx2S8sGKvGZNHJBniBu9Wy5WxjGuQFqIAcBHiRGyt4ua5gSCWVVFJJJZVUUkkllVRSSSWVVFJJJZVUUkkllVRSSSWVVFI/AgO0SXIVYHeGAAAAAElFTkSuQmCC);background-position:center;background-repeat:no-repeat;background-size:cover}.browse-list .browse-item .browse-title{display:block;width:64px;margin-top:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.browse-list .browse-item .browse-icon{position:absolute;top:0;left:0;width:100%;height:64px;font-size:36px;padding-top:15px;color:#fff;background-color:#00000080}.browse-list-disabled{position:relative}.browse-list-disabled:after{position:absolute;content:"";top:0;left:0;width:100%;height:100%;background-color:#ffffffe6;z-index:1}.common-loading{transform-origin:center center;width:30px;height:30px;max-width:100%;max-height:100%;margin:auto;overflow:hidden;animation:loading-rotate 2s linear infinite}.common-loading .common-path{fill:none;stroke-dasharray:1,200;stroke-dashoffset:0;stroke-linecap:round;animation:path-dash 1.5s ease-in-out infinite,path-color 6s ease-in-out infinite}.common-pureing{width:30px;height:30px;border:3px solid #eeeeee;border-bottom-color:#84c56a;border-radius:50%;display:inline-block;box-sizing:border-box;animation:pureing-rotation .75s linear infinite}@keyframes loading-rotate{to{transform:rotate(1turn)}}@keyframes path-dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35}to{stroke-dasharray:89,200;stroke-dashoffset:-124}}@keyframes path-color{0%,to{stroke:#d62d20}40%{stroke:#0057e7}66%{stroke:#008744}80%,90%{stroke:#ffa700}}@keyframes pureing-rotation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.mobile-tabbar{display:none;flex-direction:column;justify-content:flex-end;position:fixed;left:0;bottom:0;right:0;z-index:99;-webkit-user-select:none;-moz-user-select:none;user-select:none}.mobile-tabbar .common-network-exception{position:fixed;bottom:72px;width:100%}.mobile-tabbar .common-network-exception .ivu-alert{margin:0 12px}.mobile-tabbar .common-network-exception .ivu-alert.ivu-alert-with-icon .ivu-alert-icon{top:50%;transform:translateY(-50%)}.mobile-tabbar .common-network-exception .ivu-alert.ivu-alert-error{background-color:#fff0e7f2}.mobile-tabbar .tabbar-box{position:relative;z-index:3;display:flex;align-items:center;justify-content:center;padding:0;margin:0;height:60px;background-color:#f8f8f8;box-shadow:0 0 1px #1c222b26}.mobile-tabbar .tabbar-box>li{flex:1;width:0;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;list-style:none;padding:0;margin:0;color:#606266;position:relative}.mobile-tabbar .tabbar-box>li .taskfont{font-size:24px;line-height:34px}.mobile-tabbar .tabbar-box>li .tabbar-title{font-size:12px;line-height:18px;max-width:92%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.mobile-tabbar .tabbar-box>li .tabbar-badge{position:absolute;top:0;left:50%;transform:scale(.8)}.mobile-tabbar .tabbar-box>li .tabbar-badge .ivu-badge-count{font-size:14px}.mobile-tabbar .tabbar-box>li.active{color:#84c56a}.mobile-tabbar .more-mask{position:fixed;top:0;left:0;right:0;bottom:0;z-index:1;background-color:#00000026}.mobile-tabbar .more-box{position:relative;z-index:2;display:block;margin-bottom:-2px;border-radius:16px 16px 0 0;padding-bottom:16px;background-color:#fff;border-top:1px solid #f1f1f1}.mobile-tabbar .more-box .tabbar-more-title{font-size:18px;font-weight:500;padding:16px 16px 36px}.mobile-tabbar .more-box>ul{padding:0 12px}.mobile-tabbar .more-box>ul>li{list-style:none;display:inline-block;width:25%;margin-bottom:28px}.mobile-tabbar .more-box>ul>li .more-item{display:flex;flex-direction:column;align-items:center;justify-content:center}.mobile-tabbar .more-box>ul>li .more-item .taskfont{display:flex;align-items:center;justify-content:center;width:56px;height:56px;font-size:25px;color:#84c56a;background-color:#84c56a14;border-radius:12px}.mobile-tabbar .more-box>ul>li .more-item .tabbar-title{padding-top:6px;font-size:13px;max-width:92%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mobile-back{display:none}.mobile-back .back-bar{position:fixed;top:0;left:0;bottom:0;width:20px;z-index:9998}.mobile-back .back-semicircle{position:fixed;top:200px;left:-50px;width:500px;height:500px;background-color:#0000001a;z-index:9999;border-radius:50%;transform:translate(-460px,-50%);transition:left .2s}.mobile-back .back-semicircle.show-back{left:0}.mobile-notification{position:fixed;left:50%;top:20px;z-index:9998;padding:12px;border-radius:8px;border:1px solid #ebeef5;background-color:#fff;box-shadow:0 2px 12px #0000001a;width:90%;max-width:320px;transform:translate(-50%)}.mobile-notification .common-avatar.avatar-wrapper{align-items:flex-start}.mobile-notification .common-avatar.avatar-wrapper .avatar-name{flex:1;width:0;margin-left:12px}.mobile-notification .common-avatar.avatar-wrapper .avatar-name>span{font-weight:700}.mobile-notification .notification-desc{float:left;margin-top:-18px;margin-left:52px;font-size:13px;line-height:18px;word-break:break-all;text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.mobile-scan-login-box{margin:2px 0 12px}.mobile-scan-login-box .mobile-scan-login-title{font-size:20px}.mobile-scan-login-box .mobile-scan-login-subtitle{padding-top:8px}.mobile-fade-enter-active,.mobile-fade-leave-active{transition:all .2s ease}.mobile-fade-enter,.mobile-fade-leave-to{opacity:0}.mobile-slide-enter-active,.mobile-slide-leave-active{transition:all .2s ease}.mobile-slide-enter,.mobile-slide-leave-to{transform:translateY(15%);opacity:0}.mobile-notify-enter-active,.mobile-notify-leave-active{transition:all .3s ease}.mobile-notify-enter,.mobile-notify-leave-to{transform:translate(-50%,-100%);opacity:0}.mobile-dialog-enter-active,.mobile-dialog-leave-active{transition:all .3s ease}.mobile-dialog-enter,.mobile-dialog-leave-to{transform:translate(100%);opacity:0}.mobile-send-enter-active,.mobile-send-leave-active{transition:all .3s ease}.mobile-send-enter,.mobile-send-leave-to{transform:translate(-50%,-50%) scale(0)!important;opacity:0}body.eeui-app .mobile-back{display:block}@media (max-width: 768px){.mobile-tabbar{display:flex}.mobile-back{display:block}.mobile-notification{top:12px;width:94%;max-width:none}}.app-scroller-y{position:absolute;top:0;left:0;right:0;bottom:0;overflow-x:hidden;overflow-y:auto;overflow-y:overlay}.app-scroller-y .app-scroller-bottom{height:0;margin:0;padding:0}.app-scroller-y.static{position:static;flex:1}.teditor-box .tox.tox-silver-sink,.teditor-transfer .tox.tox-silver-sink{z-index:13000}.teditor-box{position:relative;min-height:22px}.teditor-box .icon-inline{color:#bbb;position:absolute;left:0;top:0}.teditor-box textarea{opacity:0}.teditor-box .tox-tinymce{box-shadow:none;box-sizing:border-box;border-color:#dddee1;border-radius:4px;overflow:hidden}.teditor-box .tox-tinymce .tox-statusbar span.tox-statusbar__branding a{display:none}.teditor-box .tox-tinymce .tox-tbtn--bespoke .tox-tbtn__select-label{width:auto}.teditor-transfer{background-color:#fff}.teditor-transfer .tox-toolbar>div:last-child>button:last-child{margin-right:64px}.teditor-transfer .ivu-modal-header{display:none}.teditor-transfer .ivu-modal-close{top:7px;z-index:2}.teditor-transfer .teditor-transfer-body{position:absolute;top:0;left:0;width:100%;height:100%;padding:0;margin:0}.teditor-transfer .teditor-transfer-body textarea{opacity:0}.teditor-transfer .teditor-transfer-body .tox-tinymce{border:0}.teditor-transfer .teditor-transfer-body .tox-tinymce .tox-statusbar span.tox-statusbar__branding a{display:none}.teditor-loadstyle{width:100%;height:180px;overflow:hidden;position:relative}.teditor-loadedstyle{width:100%;max-height:inherit;overflow:inherit;position:relative}.upload-control{display:none;width:0;height:0;overflow:hidden}.tox-tinymce-inline{z-index:100000}.quick-edit{display:flex;align-items:center;max-width:100%}.quick-edit .quick-input{flex:1;max-width:100%;position:relative}.quick-edit .quick-input .quick-loading{position:absolute;top:0;right:8px;bottom:0;display:flex;align-items:center}.quick-edit .quick-input .quick-loading .common-loading{margin:0;width:14px;height:14px}.quick-edit .quick-text{overflow:hidden;text-overflow:ellipsis;align-items:center;white-space:nowrap;height:20px;line-height:20px;margin-right:6px}.quick-edit .quick-icon{display:none;font-size:16px;cursor:pointer}.quick-edit.quick-always .quick-icon{display:inline-block;opacity:.3;transition:opacity .2s}.quick-edit:hover .quick-icon,.ivu-table-row-hover .quick-edit .quick-icon{display:inline-block;opacity:1}.common-tag-input{display:inline-block;width:100%;min-height:32px;padding:2px 7px;border:1px solid #dddee1;border-radius:4px;color:#495060;background:#fff;position:relative;cursor:text;vertical-align:middle;line-height:normal;transition:all .2s}.common-tag-input:hover{border-color:#a2d98d}.common-tag-input.focus{border-color:#a2d98d;box-shadow:0 0 0 2px #8bcf7033}.common-tag-input .tags-item,.common-tag-input .tags-input{position:relative;float:left;color:#495060;background-color:#f1f8ff;border-radius:3px;line-height:22px;margin:2px 6px 2px 0;padding:0 20px 0 6px}.common-tag-input .tags-item .tags-content,.common-tag-input .tags-input .tags-content{line-height:22px}.common-tag-input .tags-item .tags-del,.common-tag-input .tags-input .tags-del{width:20px;height:22px;text-align:center;cursor:pointer;position:absolute;top:-1px;right:0}.common-tag-input .tags-input{max-width:80%;padding:0;background-color:inherit;border:none;color:inherit;height:22px;line-height:22px;-webkit-appearance:none;outline:none;resize:none;overflow:hidden}.common-tag-input .tags-input::-moz-placeholder{color:#bbb}.common-tag-input .tags-input::placeholder{color:#bbb}.common-tag-input .tags-placeholder{position:absolute;left:0;top:0;z-index:-1;color:#fff0}.common-tag-input:after{content:"";display:block;height:0;clear:both}.ivu-form-item-error .common-tag-input,.ivu-form-item-error .common-tag-input:hover{border-color:#ed4014}.ivu-form-item-error .common-tag-input.focus{border-color:#ed4014;box-shadow:0 0 0 2px #ed401433}.common-avatar{position:relative}.common-avatar.avatar-wrapper{display:flex;align-items:center}.common-avatar.avatar-wrapper .avatar-box{position:relative;border-radius:50%;display:flex;align-items:center}.common-avatar.avatar-wrapper .avatar-box .avatar-default{background-color:transparent}.common-avatar.avatar-wrapper .avatar-box .avatar-text{background-color:#84c56a}.common-avatar.avatar-wrapper .avatar-box .avatar-char{display:inline-block;font-size:15px;line-height:inherit}.common-avatar.avatar-wrapper .avatar-box .el-avatar>img{margin:0 auto;pointer-events:none;-webkit-touch-callout:none}.common-avatar.avatar-wrapper .avatar-box>em{position:absolute;right:0;bottom:0;width:8px;height:8px;border-radius:50%;background-color:#f90;border:1px solid #ffffff;transform-origin:right bottom;z-index:1}.common-avatar.avatar-wrapper .avatar-box.online>em{background-color:#84c56a}.common-avatar.avatar-wrapper .avatar-box.disabled:after,.common-avatar.avatar-wrapper .avatar-box.deleted:after{content:"";position:absolute;top:0;left:0;right:0;bottom:0;background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGNsYXNzPSJpb25pY29uIiB2aWV3Qm94PSIwIDAgNTEyIDUxMiI+PHRpdGxlPkJhbjwvdGl0bGU+PGNpcmNsZSBmaWxsPSJub25lIiBzdHJva2U9IiNjY2NjY2MiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgc3Ryb2tlLXdpZHRoPSI0OCIgY3g9IjI1NiIgY3k9IjI1NiIgcj0iMjAwIi8+PHBhdGggc3Ryb2tlPSIjY2NjY2NjIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIHN0cm9rZS13aWR0aD0iNDgiIGQ9Ik0xMTQuNTggMTE0LjU4bDI4Mi44NCAyODIuODQiLz48L3N2Zz4=);background-color:#ffffff80;opacity:.8;border-radius:50%}.common-avatar.avatar-wrapper .avatar-box.disabled>em,.common-avatar.avatar-wrapper .avatar-box.deleted>em{background-color:#ccc}.common-avatar.avatar-wrapper .avatar-box.deleted:after{transform:rotate(-45deg)}.common-avatar.avatar-wrapper .avatar-bot{margin-right:-4px;padding-left:6px;font-size:16px;color:#84c56a}.common-avatar.avatar-wrapper .avatar-name{display:flex;align-items:center;margin-left:6px}.common-avatar.avatar-wrapper .avatar-name .bot{flex-shrink:0;margin-right:3px;font-size:16px;color:#84c56a}.common-avatar.avatar-wrapper .avatar-name>span{flex:1;font-style:normal;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.common-avatar.avatar-pointer{cursor:pointer}.common-avatar-transfer{padding:4px 2px;line-height:1.5}.common-avatar-transfer>p{padding:1px 2px}.common-avatar-transfer>p.department-name{max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.common-avatar-transfer>p>em{font-style:normal}.common-avatar-transfer>p>em.disabled,.common-avatar-transfer>p>em.deleted{display:inline-block;margin-left:2px;white-space:nowrap;font-size:12px;height:20px;line-height:20px;padding:0 6px;border-radius:3px;transform:scale(.9);transform-origin:right center;color:#fff;background-color:#ed4014}.common-avatar-transfer .avatar-icons{margin-top:12px;border-top:1px solid rgba(244,244,245,.5);padding:8px 0 0;display:flex;align-items:center}.common-avatar-transfer .avatar-icons>i{cursor:pointer;font-size:22px;margin-right:12px;color:#f4f4f5}.common-avatar-transfer .avatar-icons>i:last-child{margin-right:0}.common-avatar-transfer .avatar-icons>i:hover{color:#fff}.common-user{position:relative;white-space:normal}.common-user .common-user-loading{position:absolute;top:2px;bottom:0;right:10px;display:flex;align-items:center}.common-user .common-user-loading .common-loading{width:14px;height:14px}.common-user.hidden-input .ivu-select-selection{padding:0 4px}.common-user.hidden-input .ivu-select-selection .ivu-select-input{display:none}.common-user-transfer .user-input-option,.common-user-transfer .user-input-option .user-input-avatar{display:flex;align-items:center}.common-user-transfer .user-input-option .user-input-avatar .avatar{width:26px;height:26px;line-height:26px}.common-user-transfer .user-input-option .user-input-bot{font-size:16px;margin-left:10px;margin-right:-6px;color:#84c56a}.common-user-transfer .user-input-option .user-input-nickname{margin-left:10px;flex:1}.common-user-transfer .user-input-option .user-input-userid{margin-left:10px;font-size:12px;color:#ccc;transition:margin .1s}.common-user-transfer .ivu-select-item.ivu-select-item-selected:after{top:8px}.common-user-transfer .ivu-select-item.ivu-select-item-selected .user-input-option .user-input-userid{margin-right:16px}.common-user-transfer .user-drop-prepend{display:flex;align-items:center;justify-content:center;position:sticky;top:0;left:0;right:0;z-index:1;transform:translateY(-5px);background-color:#fff;padding:5px 15px;border-bottom:1px solid #f1f1f1}.common-user-transfer .user-drop-prepend .user-drop-text{flex:1;color:#c5c8ce;line-height:20px;font-size:12px;display:flex;align-items:center}.common-user-transfer .user-drop-prepend .user-drop-text>em{font-style:normal;padding:0 4px;white-space:nowrap}.common-user-transfer .user-drop-prepend .user-drop-check{margin-right:0;transform:scale(.9);transform-origin:right center}.report{height:100%;padding:20px}.report .report-list-wrap{position:absolute;top:0;width:100%;height:100%;padding-top:53px;display:flex;flex-direction:column}.report .report-list-wrap .table-page-box{flex:1;height:0}.report .manage-box-report{margin-left:4px;transform:scale(.8);vertical-align:top}.report .ivu-tabs{height:100%;position:relative}.report .ivu-tabs .ivu-tabs-bar{position:relative;z-index:2;background:#fff}.report .ivu-tabs .ivu-tabs-content{height:100%;width:100%;margin-top:-53px;padding-top:53px}.report-table-avatar{display:flex;align-items:center;justify-content:center}.report-table-avatar .common-avatar{margin:0 1px}.report-table-avatar .more-avatar{padding-left:3px;font-size:12px}.report-detail{display:flex;flex-direction:column;height:100%}.report-detail .report-title{flex-shrink:0;font-size:16px;font-weight:700;margin-bottom:12px;padding:20px 24px;border-bottom:1px solid #eeeeee}.report-detail .report-detail-context{flex:1;height:0;padding:12px 0 12px 24px;display:flex;flex-direction:column;overflow:auto}.report-detail .report-form{display:flex;margin-bottom:12px}.report-detail .report-form .ivu-form-item{flex:1;flex-shrink:0}.report-detail .report-form .ivu-form-item .ivu-form-item-label{padding-top:8px;opacity:.8}.report-detail .report-form .ivu-form-item .ivu-form-item-content{line-height:30px;display:flex;align-items:center}.report-detail .report-form .ivu-form-item .ivu-form-item-content .common-avatar{margin-right:6px}.report-detail .report-content{width:100%}.report-detail .report-content h2{margin-bottom:10px}.report-detail .report-content ol{margin-bottom:20px;padding-left:18px}.report-detail .report-content ol li{font-size:14px;line-height:24px}.report-detail .report-content img{max-width:100%}.report-edit{display:flex;flex-direction:column;height:100%;padding:24px}.report-edit .ivu-input[disabled]{color:#606266}.report-edit .report-content{flex:1 1 auto;overflow-y:auto}.report-edit .report-content .report-content-editor{height:100%}.report-edit .report-content .report-content-editor .ivu-form-item-content{height:100%;display:flex}.report-edit .report-content .report-content-editor .ivu-form-item-content .teditor-wrapper{flex:1;display:flex}.report-edit .report-users{display:flex;align-items:center}.report-edit .report-users .common-user{flex:1;margin-right:12px}.report-edit .report-users .report-user-link{flex-shrink:0;display:flex;align-items:center}.report-edit .report-users .report-user-link>i{font-size:16px;margin-right:2px;transform:rotate(-90deg)}.report-edit .report-radiogroup{background:#F4F5F7!important;padding:2px!important;border-radius:4px!important}.report-edit .report-radiogroup .ivu-radio-wrapper{padding:0 30px!important;background:#F4F5F7!important;color:#515a6e!important;box-shadow:none!important;border:none!important}.report-edit .report-radiogroup .ivu-radio-wrapper.ivu-radio-wrapper-disabled{color:#c6c6c6!important}.report-edit .report-radiogroup .ivu-radio-wrapper:before{width:0!important}.report-edit .report-radiogroup .ivu-radio-wrapper:after{width:0!important}.report-edit .report-radiogroup .ivu-radio-focus{box-shadow:none!important;border:none!important}.report-edit .report-radiogroup .ivu-radio-focus:after{background:none!important}.report-edit .report-radiogroup .ivu-radio-wrapper-checked:not(.ivu-radio-wrapper-disabled){background:#fff!important;color:#84c56a!important;box-shadow:none!important;border:none!important;border-radius:4px!important}.report-edit .report-buttongroup{margin-left:20px;background:#F4F5F7!important;border-radius:4px}.report-edit .report-buttongroup .report-buttongroup-vertical{position:absolute;left:50%;width:1px;height:15px;background-color:#e9e9e9;top:50%;transform:translate(-50%,-50%);z-index:9}.report-edit .report-buttongroup .ivu-btn-primary{background:#F4F5F7!important;box-shadow:none!important;border:none!important;color:#84c56a!important;height:36px;line-height:34px}.report-edit .report-buttongroup .ivu-btn-primary[disabled]{color:#c6c6c6!important}.report-edit .report-content-editor{flex:1}.report-edit .report-content-editor .ivu-form-item-content{display:flex;height:100%}.report-edit .report-content-editor .ivu-form-item-content .teditor-wrapper{display:flex;flex:1}.report-edit .report-foot{margin-bottom:0}.report-edit .report-foot .report-bottom{height:38px;line-height:36px;min-width:120px}.common-right-bottom{position:absolute;bottom:22px;right:26px;z-index:1;display:flex;flex-direction:column;align-items:flex-end;transition:bottom .3s}.common-right-bottom .common-right-bottom-link{display:inline-block;cursor:pointer;line-height:32px;height:32px;padding:0 15px;margin:4px 0;font-size:14px;border-radius:4px;color:#fff;background-color:#84c56a;border-color:#84c56a}.common-right-bottom .common-right-bottom-link:hover{color:#fff;opacity:.9}.common-right-bottom-notification .ivu-modal-header{padding-bottom:8px!important}.common-right-bottom-notification .notification-head{display:flex;align-items:center}.common-right-bottom-notification .notification-head .notification-title{display:inline-block;vertical-align:middle;font-size:18px;color:#303133;font-weight:500;margin-right:6px}.common-right-bottom-notification .notification-body{max-height:210px;overflow-x:hidden;margin-bottom:16px}.common-right-bottom-notification .notification-body .markdown-preview{margin:-20px -12px}.common-right-bottom-notification .notification-body .markdown-preview h1{font-size:24px;margin-bottom:12px}.common-right-bottom-notification .notification-body .markdown-preview h1:first-child{padding-top:0}.common-right-bottom-notification .notification-body .markdown-preview h2{font-size:18px!important;padding-top:2px!important}.common-right-bottom-notification .notification-body .markdown-preview ul li{padding:2px 0 2px 2px!important}.common-right-bottom-notification .notification-body .markdown-preview ul li:after{top:10px!important;width:6px!important;height:6px!important}.common-right-bottom-notification .notification-tip{display:inline-block;color:#909399;line-height:22px;padding-top:4px;font-size:12px}.common-right-bottom-notification .notification-link{margin-top:20px;text-align:right}.common-right-bottom-notification .notification-link>button+button{margin-left:6px}@media (max-width: 768px){.common-right-bottom{bottom:20px;right:auto;left:50%;transform:translate(-50%);align-items:center}.common-right-bottom .common-right-bottom-link{color:#606266!important;background-color:transparent;border-color:transparent}}@media (max-height: 640px){.common-right-bottom{display:none}}body{overflow:hidden}body.touch-back .dialog-wrapper .vue-recycle-scroller.direction-vertical:not(.page-mode),body.touch-back .common-gantt .gantt-left .gantt-item,body.touch-back .project-panel .project-column,body.touch-back .project-panel .project-table,body.touch-back .scrollbar-overlay,body.touch-back .ivu-modal-wrap{overflow:hidden}body .form-tip{color:#909399;line-height:22px;padding:5px 0}body .form-tip.red{color:#ed4014}body .form-list ol li,body .form-list ul li{list-style-type:none}body .form-list ol li:before,body .form-list ul li:before{display:inline-block;white-space:nowrap;width:1.2em;text-align:left;margin-right:.2em}body .form-list ul li:before{content:"\2022";font-weight:900}body .form-list ol li{counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;counter-increment:list-0}body .form-list ol li:before{width:auto;min-width:1.2em;content:counter(list-0,decimal) ". "}body .ivu-badge-count{font-family:Source Sans Pro,Helvetica Neue,Arial,sans-serif}body .input-number-box{display:flex;align-items:center;border:1px solid #dcdee2;border-radius:4px}body .input-number-box .ivu-input-number{width:72px;margin:0;border:0}body .input-number-box>label{color:#515a6e;text-align:center;background-color:#f8f8f9;padding:0 7px;font-weight:400;white-space:nowrap}body .input-number-box>label:first-child{border-left:1px solid transparent;border-right:1px solid #dcdee2;border-radius:4px 0 0 4px}body .input-number-box>label:last-child{border-left:1px solid #dcdee2;border-right:1px solid transparent;border-radius:0 4px 4px 0}body .ivu-input,body .ivu-select-selection{border-color:#e8e8e8}body .ivu-select-dropdown{-webkit-user-select:none;-moz-user-select:none;user-select:none;max-height:360px}body .ivu-select-dropdown.select-node .ivu-select-item{display:flex;align-items:center;justify-content:space-between}body .ivu-select-dropdown.select-node .ivu-select-item .option-title{flex:1}body .ivu-select-dropdown.select-node .ivu-select-item .ivu-tag{flex-shrink:0;margin-left:18px;margin-right:0;transform:scale(.9);transform-origin:right center}body .ivu-tooltip-popper .ivu-tooltip-inner{white-space:normal}body .ivu-table table{width:100%!important}body .ivu-table table .ivu-table-cell{padding-left:12px;padding-right:12px}body .ivu-table table thead .ivu-table-cell{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}body .ivu-table table tbody .tree-icon-loading .ivu-table-cell{display:flex;align-items:center}body .ivu-table table tbody .tree-icon-loading .ivu-table-cell .ivu-table-cell-tree{margin-right:6px}body .ivu-table .td-ellipsis{display:flex;align-items:center;max-width:100%}body .ivu-table .td-ellipsis .remark-text{overflow:hidden;text-overflow:ellipsis;align-items:center;white-space:nowrap;height:20px;line-height:20px;margin-right:6px}body .ivu-table .td-ellipsis .remark-icon{display:none;font-size:16px;cursor:pointer}body .ivu-table .td-ellipsis .remark-tag{display:inline-block;height:22px;line-height:22px;margin:2px 4px 2px 0;border:1px solid #e8eaec;border-radius:3px;background:#f7f7f7;font-size:12px;vertical-align:middle;opacity:1;color:#606266;padding:0 4px;white-space:nowrap;overflow:visible}body .ivu-table .td-ellipsis .remark-tag.pointer-tag{cursor:pointer;color:#1890ff;background:#e6f7ff;border-color:#91d5ff}body .ivu-table .td-ellipsis .icon-tooltip .ivu-tooltip-rel{display:flex;align-items:center}body .ivu-table .td-action{max-width:100%;display:flex;align-items:center;justify-content:center}body .ivu-table .td-action .td-action-container{flex-shrink:0}body .ivu-table .td-action .td-action-container a{font-size:12px;padding:0 5px}body .ivu-table .td-action .td-action-container.td-action-menu{display:flex;align-items:center}body .ivu-table .td-action .td-action-container.td-action-menu .menu-dropdown{display:flex}body .ivu-table .td-action .td-action-container.td-action-menu .menu-icon{cursor:pointer;font-size:21px;padding:0 6px}body .ivu-table .td-action .td-action-container.td-action-menu .menu-icon.ivu-icon{font-size:16px}body .ivu-table .ivu-table-row-hover:hover .td-ellipsis .remark-icon{display:inline-block}body .ivu-table:before{background-color:#efefef}body .ivu-modal-wrap{overflow:overlay}body .ivu-modal-wrap .ivu-modal{top:100px;padding-bottom:100px}@media (max-height: 900px){body .ivu-modal-wrap .ivu-modal{top:35px;padding-bottom:35px}}body .ivu-modal-wrap .ivu-modal.ivu-modal-fullscreen{top:0}body .ivu-modal-wrap .ivu-modal.ivu-modal-fullscreen .ivu-modal-content{border-radius:0}body .ivu-modal-wrap .ivu-modal .ivu-modal-header,body .ivu-modal-wrap .ivu-modal .ivu-modal-footer{border-color:transparent}body .ivu-modal-wrap .ivu-modal .ivu-modal-header{padding:22px 24px 20px}body .ivu-modal-wrap .ivu-modal .ivu-modal-header .ivu-modal-header-inner{font-size:18px}body .ivu-modal-wrap .ivu-modal .ivu-modal-body{padding:16px 32px 2px}body .ivu-modal-wrap .ivu-modal .ivu-modal-body .ivu-table-body,body .ivu-modal-wrap .ivu-modal .ivu-modal-body .project-log{overscroll-behavior:none}body .ivu-modal-wrap .ivu-modal .ivu-modal-footer{padding:20px 30px 22px}body .ivu-modal-wrap .ivu-modal .ivu-modal-footer .ivu-btn{height:34px;line-height:32px;min-width:94px}@media (max-width: 576px){body .ivu-modal-wrap .ivu-modal .ivu-modal-footer .adaption{display:flex;align-items:center;overflow-x:auto}body .ivu-modal-wrap .ivu-modal .ivu-modal-footer .adaption .ivu-btn{height:38px;line-height:36px;min-width:auto}body .ivu-modal-wrap .ivu-modal .ivu-modal-footer .adaption .ivu-btn,body .ivu-modal-wrap .ivu-modal .ivu-modal-footer .adaption .ivu-btn-group,body .ivu-modal-wrap .ivu-modal .ivu-modal-footer .adaption .ivu-poptip{flex:1}body .ivu-modal-wrap .ivu-modal .ivu-modal-footer .adaption .ivu-btn-group,body .ivu-modal-wrap .ivu-modal .ivu-modal-footer .adaption .ivu-poptip{display:flex;align-items:center}body .ivu-modal-wrap .ivu-modal .ivu-modal-footer .adaption .ivu-poptip .ivu-poptip-rel{flex:1;display:flex;align-items:center}}body .ivu-modal-wrap .ivu-modal .ivu-modal-content{border-radius:18px}body .ivu-modal-wrap .ivu-modal .ivu-modal-content .ivu-modal-close .ivu-icon-ios-close{font-size:38px;top:3px;right:2px;transition:all .2s}body .ivu-modal-wrap .ivu-modal .ivu-modal-content .ivu-modal-close:hover .ivu-icon-ios-close{transform:rotate(-90deg)}body .ivu-modal-wrap .ivu-modal-confirm{padding:6px 0 20px}body .ivu-modal-wrap .ivu-modal-confirm .ivu-modal-confirm-body>div{word-break:break-all}body .ivu-modal-wrap .form-network-add-tabs .ivu-tabs-tabpane{padding:10px 6px 0}body .ivu-modal-wrap .form-network-add-in-out{padding:0 6px}body .ivu-modal-wrap .form-network-add-in-out .select-in-type span.ivu-radio{display:none}body .ivu-modal-wrap .form-network-add-in-out .select-in-type .select-in-type-item-checked{color:#84c56a;border:1px solid #84C56A!important}body .ivu-modal-wrap .form-network-add-in-out .select-in-type .select-in-type-item{display:flex;align-items:center;min-width:90px;border:1px solid #E8EBEE;border-radius:4px;padding:0 12px;margin:0 8px 0 0}body .ivu-modal-wrap .form-network-add-in-out .select-in-type .select-in-type-item>span{flex:1}body .ivu-modal-wrap .form-network-add-in-out .select-in-type .select-in-type-item:hover{cursor:pointer}body .ivu-modal-wrap .form-network-add-in-out .select-in-type .select-in-type-item .select-in-type-icon{margin-left:12px}body .ivu-modal-wrap .form-network-add-in-out .select-in-node{margin-top:18px}body .ivu-progress,body .ivu-progress .ivu-progress-outer{display:flex;align-items:center}body .ivu-progress.ivu-progress-show-info .ivu-progress-outer{margin:0;padding:0}body .ivu-progress.ivu-progress-show-info .ivu-progress-text{flex-shrink:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}body .ivu-drawer-right .ivu-drawer-content{border-radius:18px 0 0 18px}body .ivu-drawer-right .ivu-drawer-content .ivu-drawer-header{padding-top:16px;padding-bottom:6px;border-bottom:1px solid transparent}body .ivu-drawer-right .ivu-drawer-content .ivu-drawer-header .ivu-drawer-header-inner{font-size:18px;padding:0 4px;height:32px;line-height:32px}body .ivu-drawer-right .ivu-drawer-content .ivu-drawer-body{padding:10px 20px}body .ivu-drawer-bottom .ivu-drawer-content{border-radius:18px 18px 0 0}body .ivu-drawer-bottom .ivu-drawer-content .ivu-drawer-close{top:-40px}body .ivu-drawer-bottom .ivu-drawer-content .ivu-drawer-close .ivu-icon{font-size:40px;color:#fff}body .ivu-tabs-nav-next,body .ivu-tabs-nav-prev{padding-top:3px}*[hidden=hidden]{display:none!important}.clearfix{zoom:1}.clearfix:after,.clearfix:before{display:table;content:""}.clearfix:after{clear:both}.table-page-box{display:flex;flex-direction:column}.table-page-box .ivu-table-wrapper{flex:1}.table-page-box .ivu-table-wrapper .ivu-table{display:flex;flex-direction:column}.table-page-box .ivu-table-wrapper .ivu-table .ivu-table-header{flex-shrink:0}.table-page-box .ivu-table-wrapper .ivu-table .ivu-table-body{flex:1;overflow:auto;overflow-y:overlay!important}.table-page-box .ivu-table-wrapper .ivu-table .ivu-table-body::-webkit-scrollbar{width:0;height:0}.table-page-box .ivu-table-wrapper .ivu-table .ivu-table-body::-webkit-scrollbar-thumb{border:3px solid transparent;background-color:#0003;background-clip:content-box;border-radius:12px}.table-page-box .ivu-table-wrapper .ivu-table .ivu-table-body::-webkit-scrollbar-thumb:hover{border:2px solid transparent;background-color:#0003}.table-page-box .ivu-table-wrapper .ivu-table .ivu-table-body::-webkit-scrollbar-thumb:active{border:2px solid transparent;background-color:#0006}.table-page-box .ivu-table-wrapper .ivu-table .ivu-table-body::-webkit-scrollbar-track{border-radius:12px;background:rgba(0,0,0,0)}.table-page-box .ivu-table-wrapper .ivu-table .ivu-table-body:hover::-webkit-scrollbar{width:12px;height:12px}.table-page-box .ivu-page{flex-shrink:0;text-align:center;margin-top:20px}.table-page-box .table-attach{display:flex;flex-direction:row;align-items:center;justify-content:space-between;margin-top:20px}.table-page-box .table-attach .select-box{margin-right:12px}.table-page-box .table-attach .select-box .ivu-select{width:auto;max-width:200px;margin-right:3px}.table-page-box .table-attach .ivu-page{padding:0;margin-top:0;margin-left:12px}.page-container{text-align:center;padding:20px 0}.search-container{margin-bottom:12px}.search-container>ul{display:flex;align-items:flex-end;flex-wrap:wrap}.search-container>ul>li{flex:1;flex-shrink:0;margin-right:12px;margin-bottom:12px;list-style:none;display:flex;flex-direction:column}.search-container>ul>li:last-child{margin-right:0}.search-container>ul>li .search-label{font-weight:600}.search-container>ul>li .search-content{margin-top:6px}.search-container>ul>li.search-button{flex:none;display:flex;align-items:center;flex-direction:row}.search-container>ul>li.search-button>button+button{margin-left:8px}.search-container.lr>ul>li:not(.search-button){flex:none;flex-direction:row;align-items:center;margin-right:18px}.search-container.lr>ul>li:not(.search-button) .search-label{flex-shrink:0}.search-container.lr>ul>li:not(.search-button) .search-content{margin-top:0;margin-left:6px}.search-container.lr>ul>li:not(.search-button) .search-content .ivu-input-wrapper,.search-container.lr>ul>li:not(.search-button) .search-content .ivu-select{width:168px;max-width:100%}.search-container.auto>ul>li:not(.search-button){flex:none}.search-container.auto>ul>li:not(.search-button) .search-content{margin-top:0;margin-left:6px}.search-container.auto>ul>li:not(.search-button) .search-content .ivu-input-wrapper,.search-container.auto>ul>li:not(.search-button) .search-content .ivu-select{width:150px;max-width:100%}.search-expand{display:flex;align-items:flex-end}.search-expand .search-container{flex:1}.search-expand .expand-button-group{flex-shrink:0;margin-left:24px;margin-bottom:24px}.search-button-clear .ivu-tooltip-inner{padding:0;display:flex;align-items:center}.search-button-clear .ivu-tooltip-inner .ivu-btn{min-width:80px;font-size:13px}.icon-loading{animation:animation-icon-loading .6s infinite linear}@keyframes animation-icon-loading{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.common-shake{animation:animation-common-shake .6s ease-in-out;animation-delay:.2s}@keyframes animation-common-shake{10%,90%{transform:translate3d(-1px,0,0)}20%,80%{transform:translate3d(2px,0,0)}30%,70%{transform:translate3d(-4px,0,0)}40%,60%{transform:translate3d(4px,0,0)}50%{transform:translate3d(-4px,0,0)}}.login-mode-enter-active{transition:all .3s ease}.login-mode-leave-active{position:absolute;z-index:-1;display:none}.login-mode-enter,.login-mode-leave-to{transform:translate(100%);opacity:0}.page-calendar{display:flex;flex-direction:column}.page-calendar .calendar-head{flex-shrink:0;display:flex;align-items:flex-start;margin:32px 32px 16px;border-bottom:1px solid #F4F4F5}.page-calendar .calendar-head .calendar-titbox{flex:1;display:flex;align-items:center;margin-bottom:16px}.page-calendar .calendar-head .calendar-titbox .calendar-title{display:flex;align-items:center;margin-right:36px}.page-calendar .calendar-head .calendar-titbox .calendar-title>h1{color:#303133;font-size:28px;font-weight:600}.page-calendar .calendar-head .calendar-titbox .calendar-arrow{margin-right:12px}.page-calendar .calendar-head .calendar-titbox .calendar-arrow>button{color:#888;font-size:12px}.page-calendar .calendar-head .calendar-titbox .calendar-arrow>button:focus{box-shadow:none}.page-calendar .calendar-head .calendar-titbox .calendar-view{flex:1;display:flex;justify-content:flex-end}.page-calendar .calendar-head .calendar-titbox .calendar-view>button:focus{box-shadow:none}.page-calendar .calendar-box{flex:1;display:flex;flex-direction:column;padding:0 48px 6px;overflow:hidden}.page-calendar .calendar-box .calendar-wrapper{flex:1;position:relative}.page-calendar .calendar-box .calendar-wrapper:before{content:"";position:absolute;top:0;left:0;right:0;height:2px;background-color:#fff;z-index:1}.page-calendar .calendar-box .calendar-wrapper .tui-full-calendar-popup{box-shadow:none}.page-calendar .calendar-box .calendar-wrapper .tui-full-calendar-popup .tui-full-calendar-section-header .tui-full-calendar-ic-checkbox-checked{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAMAAAD04JH5AAAAhFBMVEUAAACLz3CLz3CLz3CKzm6Gy2+Lz3CLz3CL0HCLz3CLz3CLz3CLz3CMz3GLz3CKz3CLz3CL0HCJ0G+KznCN0HCL0HCLz3CKz3CLz3CLz3CLz3CMz3CLz3CLz3GL0XCL0HCN0XKLz3CLz3CMz3CLz3CM0HCM0G+FzHCLz3CKz3CMz3CLz3Bod5CFAAAAK3RSTlMA18RAOQ3s8+Pc0rmyq3tpiUwTgBnovyDMjmNSRjUvJQX5yKB0WisKppuUFLaY7gAAAotJREFUeNrtm+FymkAUhc8KqIAgSkyUtkmsmqa97/9+HWeSudpCd8qZ7E0m+73A9/1gxmXx4IK0nbipvDFTN2lT9JDVToLh6gx/sHQSFLfEFZUEp8IFczFgrv5CTChe/TsxYvfy/IkZy7M/c2KGywDUYkgNIBdDciARUxI0YkqDiZgygRNTHKZiyhRiTAyIATEgBsSAGBADYsAnCJgdmtIywKUAOrsA94QzJyKA95/pbALcPV7piADGryzDB+Rnv3IkAhi/UhMBjF9pQwbk3/A3JRXA+7GjAng/DqEC5v3+dMYE8P6nQsIEzFOPnw7g/QpC+R8K4QJ4f5iAzaA/TMAm6fdvZQgY+wW2fn9A0a66Bee/2xLH8kp/Rr1MB/3jAxaP0ALCPzagzPBCM9r/XcYH3K4BLfD4vw75xwdMbqB4CmaD/vEB2ztc0RD+MQHFg+c85fffDPv9AbPUd6Lz+ydCBDyjh1//6WcCGngK1L8a8lMBJTwFfj8XIC16+SnX7Af9bIDUngLSrwFEwaD/VogA5YheDj7/Wv1MgL9g/8XjpwNk+c8Cyq8BYwqePX46QOkGCmi/BowrqFi/Bvg4wYv6y7e4Kz4Rfj5AnzY/WSlcwHAB5+cD9ivKzwfIbEX4qQA99RB+NkDfO4b5sRAigHjzpP0C6u6D9wuo2z/eL+DvXx8Zv4C4gVd/qABxCeFnApQT5+cDpOP8fICcLv2VxbfjlQZUNh+vU/XbBIj6jQLm9wDWlZgFyOaYHJ3Ix/gDQwyIATEgBsSAGODBfuBgPvEwH7m0YkqLVExJYfsQuPcwdjOf+5kPHoFKjKio0e3Hn90WUCyGt7v3Nf0GsjqXYOR1hh6SJsz8v0mg/AZRXmaRKXtJBwAAAABJRU5ErkJggg==)}.page-calendar .calendar-box .calendar-wrapper .tui-full-calendar-popup .tui-full-calendar-popup-container{border:0;box-shadow:0 1px 6px #0003;border-radius:6px}.page-calendar .calendar-box .calendar-wrapper .tui-full-calendar-popup .tui-full-calendar-arrow-top .tui-full-calendar-popup-arrow-border{top:-8px;border-bottom-color:#d9d9d980}.page-calendar .calendar-box .calendar-wrapper .tui-full-calendar-dropdown-menu{border-color:#e8e8e8;width:calc(100% - 14px)}.page-calendar .calendar-box .calendar-wrapper .tui-full-calendar-popup-creation .tui-full-calendar-icon.tui-full-calendar-ic-title,.page-calendar .calendar-box .calendar-wrapper .tui-full-calendar-popup-creation .tui-full-calendar-icon.tui-full-calendar-calendar-dot{display:none}.page-calendar .calendar-box .calendar-wrapper .tui-full-calendar-popup-creation .tui-full-calendar-icon.tui-full-calendar-ic-date{background-image:url(data:image/svg+xml;base64,PHN2ZyB0PSIxNjIzODU5NjcwNjA3IiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjE2Mzg4IiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PHBhdGggZD0iTTk2MCAxMjhIODMzYzAtNTMtNDMtOTYtOTYtOTZoLTE2Yy01MyAwLTk2IDQzLTk2IDk2SDQwMGMwLTI2LjUtMTAuNy01MC41LTI4LjEtNjcuOUMzNTQuNSA0Mi43IDMzMC41IDMyIDMwNCAzMmgtMTZjLTUzIDAtOTYgNDMtOTYgOTZINjRjLTM1LjMgMC02NCAyOC42LTY0IDY0djczNmMwIDM1LjMgMjguNyA2NCA2NCA2NGg4OTZjMzUuMyAwIDY0LTI4LjcgNjQtNjRWMTkyYzAtMzUuNC0yOC43LTY0LTY0LTY0eiBtLTI3MSA4YzAtMjIuMSAxNy45LTQwIDQwLTQwczQwIDE3LjkgNDAgNDB2ODBjMCAyMi4xLTE3LjkgNDAtNDAgNDAtMTEgMC0yMS00LjUtMjguMy0xMS43QzY5My41IDIzNyA2ODkgMjI3IDY4OSAyMTZ2LTgweiBtLTQzMyAwYzAtMjIuMSAxNy45LTQwIDQwLTQwczQwIDE3LjkgNDAgNDB2ODBjMCAyMi4xLTE3LjkgNDAtNDAgNDAtMTEgMC0yMS00LjUtMjguMy0xMS43QzI2MC41IDIzNyAyNTYgMjI3IDI1NiAyMTZ2LTgweiBtNzA0IDc2MGMwIDE3LjctMTQuMyAzMi0zMiAzMkg5NmMtMTcuNyAwLTMyLTE0LjMtMzItMzJWNDQ4aDg5NnY0NDh6IiBwLWlkPSIxNjM4OSIgZmlsbD0iIzUxNTE1MSI+PC9wYXRoPjwvc3ZnPg==);background-size:contain}.page-calendar .calendar-box .calendar-wrapper .tui-full-calendar-popup-creation .tui-full-calendar-content{padding-left:0}.page-calendar .calendar-box .calendar-wrapper .tui-full-calendar-popup-creation .tui-full-calendar-popup-section{display:flex;justify-content:space-between;margin-bottom:10px}.page-calendar .calendar-box .calendar-wrapper .tui-full-calendar-popup-creation .tui-full-calendar-popup-section .tui-full-calendar-popup-section-item{height:36px;line-height:34px;border-color:#e8e8e8;border-radius:4px}.page-calendar .calendar-box .calendar-wrapper .tui-full-calendar-popup-creation .tui-full-calendar-popup-section .tui-full-calendar-popup-section-item input{height:34px}.page-calendar .calendar-box .calendar-wrapper .tui-full-calendar-popup-creation .tui-full-calendar-section-title,.page-calendar .calendar-box .calendar-wrapper .tui-full-calendar-popup-creation .tui-full-calendar-section-title input{width:100%}.page-calendar .calendar-box .calendar-wrapper .tui-full-calendar-popup-creation .tui-full-calendar-section-start-date,.page-calendar .calendar-box .calendar-wrapper .tui-full-calendar-popup-creation .tui-full-calendar-section-end-date{width:210px}.page-calendar .calendar-box .calendar-wrapper .tui-full-calendar-popup-creation .tui-full-calendar-section-start-date .tui-full-calendar-content,.page-calendar .calendar-box .calendar-wrapper .tui-full-calendar-popup-creation .tui-full-calendar-section-end-date .tui-full-calendar-content{padding-left:8px}.page-calendar .calendar-box .calendar-wrapper .tui-full-calendar-popup-creation .tui-full-calendar-popup-location,.page-calendar .calendar-box .calendar-wrapper .tui-full-calendar-popup-creation .tui-full-calendar-section-private,.page-calendar .calendar-box .calendar-wrapper .tui-full-calendar-popup-creation .tui-full-calendar-section-allday,.page-calendar .calendar-box .calendar-wrapper .tui-full-calendar-popup-creation .tui-full-calendar-section-state{display:none}.page-calendar .calendar-box .calendar-wrapper .tui-full-calendar-popup-task .priority{color:#fff;padding:2px 4px;border-radius:4px;margin-right:6px}.page-calendar .calendar-box .calendar-wrapper .tui-full-calendar-popup-task .overdue{color:#f5222d;background:#fff1f0;border:1px solid #ffa39e;padding:1px 3px;border-radius:4px;margin-right:6px}.page-calendar .calendar-box .calendar-wrapper .tui-full-calendar-popup-task .tui-full-calendar-calendar-dot,.page-calendar .calendar-box .calendar-wrapper .tui-full-calendar-popup-task .tui-full-calendar-ic-priority{opacity:0}.page-calendar .calendar-box .calendar-wrapper .tui-full-calendar-popup-task .tui-full-calendar-ic-edit{top:-2px;background-image:url(data:image/svg+xml;base64,PHN2ZyB0PSIxNjIzODU5MzY4MTg5IiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjExMTkiIHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIj48cGF0aCBkPSJNODMzLjQyODU3MTY4IDYySDE5MC41NzE0MjgzMmExMjguNTcxNDI4MzIgMTI4LjU3MTQyODMyIDAgMCAwLTEyOC41NzE0MjgzMiAxMjguNTcxNDI4MzJ2NjQyLjg1NzE0MzM2YTEyOC41NzE0MjgzMiAxMjguNTcxNDI4MzIgMCAwIDAgMTI4LjU3MTQyODMyIDEyOC41NzE0MjgzMmg2NDIuODU3MTQzMzZhMTI4LjU3MTQyODMyIDEyOC41NzE0MjgzMiAwIDAgMCAxMjguNTcxNDI4MzItMTI4LjU3MTQyODMyVjE5MC41NzE0MjgzMmExMjguNTcxNDI4MzIgMTI4LjU3MTQyODMyIDAgMCAwLTEyOC41NzE0MjgzMi0xMjguNTcxNDI4MzJ6IG02NC4yODU3MTQxNiA3NzEuNDI4NTcxNjhhNjQuMjg1NzE0MTYgNjQuMjg1NzE0MTYgMCAwIDEtNjQuMjg1NzE0MTcgNjQuMjg1NzE0MTZIMTkwLjU3MTQyODMyYTY0LjI4NTcxNDE2IDY0LjI4NTcxNDE2IDAgMCAxLTY0LjI4NTcxNDE2LTY0LjI4NTcxNDE2VjE5MC41NzE0MjgzMmE2NC4yODU3MTQxNiA2NC4yODU3MTQxNiAwIDAgMSA2NC4yODU3MTQxNy02NC4yODU3MTQxNmg2NDIuODU3MTQzMzVhNjQuMjg1NzE0MTYgNjQuMjg1NzE0MTYgMCAwIDEgNjQuMjg1NzE0MTYgNjQuMjg1NzE0MTd6IiBwLWlkPSIxMTIwIiBmaWxsPSIjNTE1MTUxIj48L3BhdGg+PHBhdGggZD0iTTE5MC41NzE0MjgzMiAyNTQuODU3MTQyNDhoNjQuMjg1NzE0MTZ2NjQuMjg1NzE1MDRIMTkwLjU3MTQyODMyek0zMTkuMTQyODU3NTIgMjU0Ljg1NzE0MjQ4aDQ1MHY2NC4yODU3MTUwNEgzMTkuMTQyODU3NTJ6TTE5MC41NzE0MjgzMiA0NDcuNzE0Mjg1ODRoNjQuMjg1NzE0MTZ2NjQuMjg1NzE0MTZIMTkwLjU3MTQyODMyek0zMTkuMTQyODU3NTIgNDQ3LjcxNDI4NTg0aDQ1MHY2NC4yODU3MTQxNkgzMTkuMTQyODU3NTJ6TTE5MC41NzE0MjgzMiA2NDAuNTcxNDI4MzJoNjQuMjg1NzE0MTZ2NjQuMjg1NzE0MTZIMTkwLjU3MTQyODMyek0zMTkuMTQyODU3NTIgNjQwLjU3MTQyODMyaDMyMS40Mjg1NzA4djY0LjI4NTcxNDE2SDMxOS4xNDI4NTc1MnoiIHAtaWQ9IjExMjEiIGZpbGw9IiM1MTUxNTEiPjwvcGF0aD48L3N2Zz4=)}.page-calendar .calendar-box .calendar-wrapper .tui-full-calendar-popup-task .tui-full-calendar-ic-delete{top:-2px;background-image:url(data:image/svg+xml;base64,PHN2ZyB0PSIxNjIzODU5MzMwMTc2IiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9Ijc5MiIgd2lkdGg9IjIwMCIgaGVpZ2h0PSIyMDAiPjxwYXRoIGQ9Ik04OTIuMjg4IDI1NmgtMTkxLjE2OEEyMDIuMjQgMjAyLjI0IDAgMCAwIDUwOS42MzIgNjIuMDggMjAxLjIxNiAyMDEuMjE2IDAgMCAwIDMxOC44NDggMjU2SDEyOGMtMTguNjg4IDAtNjYuMDQ4LTQuMjI0LTY2LjA0OCAyNC43NjhDNjEuOTUyIDMyNy43NDQgMTA5LjM3NiAzMjAgMTI4IDMyMGg2NHY1MTJhMTQ2LjQ5NiAxNDYuNDk2IDAgMCAwIDEyNy40MjQgMTI4aDM4Mi4yNzJBMTUwLjAxNiAxNTAuMDE2IDAgMCAwIDgzMiA4MzJsLTMuMzkyLTUxMmg2NGMxOC4zNjggMCA2NS4wMjQgMS40NzIgNjUuMDI0LTM5Ljc0NEE3Mi4zODQgNzIuMzg0IDAgMCAwIDg5Mi4yODggMjU2ek01MDkuNjMyIDEyOC41MTJBMTM4LjE3NiAxMzguMTc2IDAgMCAxIDYzNy40NCAyNTZIMzgyLjU5MmExMzcuOTIgMTM3LjkyIDAgMCAxIDEyNy4wNC0xMjcuNDg4ek03NjggODMyYTk3Ljk4NCA5Ny45ODQgMCAwIDEtNjYuODggNjRIMzE4Ljg0OGE5My41NjggOTMuNTY4IDAgMCAxLTY0LTY0VjMyMEg3Njh2NTEyeiBtLTM4NS40MDgtNjRWNTEyYzAtMTguNDk2IDAuOTYtNjAuOTkyIDM2LjczNi02MC45OTIgMjcuMzI4IDAgMjYuNDk2IDQzLjAwOCAyNi45NDQgNjAuOTkydjI1NmMwIDE4LjQ5Ni02LjQgMjAuMDMyLTI0Ljk2IDIwLjAzMnMtMzguNzItMS41MzYtMzguNzItMjAuMDMyeiBtMTkxLjE2OCAwVjUxMmE2NCA2NCAwIDAgMSAyMy44MDgtNjAuOTkyYzQyLjQzMiAwIDM5LjM2IDQzLjAwOCAzOS44NzIgNjAuOTkydjI1NmMwIDE4LjQ5Ni0xOS41ODQgMjAuMDMyLTM3Ljk1MiAyMC4wMzJzLTI1Ljc5Mi0xLjUzNi0yNS43OTItMjAuMDMyeiIgcC1pZD0iNzkzIiBmaWxsPSIjNTE1MTUxIj48L3BhdGg+PC9zdmc+)}.page-calendar .calendar-box .calendar-wrapper .tui-full-calendar-popup-task .tui-full-calendar-popup-detail-item-separate{padding-left:22px}.page-calendar .calendar-box .calendar-wrapper .tui-datepicker{border-color:#e8e8e8}.page-calendar .calendar-box .calendar-wrapper .tui-datepicker .tui-calendar th,.page-calendar .calendar-box .calendar-wrapper .tui-datepicker .tui-calendar td{height:32px}.page-calendar .calendar-box .calendar-wrapper .tui-datepicker .tui-calendar .tui-calendar-prev-month.tui-calendar-date,.page-calendar .calendar-box .calendar-wrapper .tui-datepicker .tui-calendar .tui-calendar-next-month.tui-calendar-date{visibility:visible}.page-calendar .calendar-box .calendar-wrapper .tui-datepicker .tui-datepicker-body .tui-timepicker,.page-calendar .calendar-box .calendar-wrapper .tui-datepicker .tui-datepicker-footer .tui-timepicker{padding:16px 46px 16px 47px}.page-calendar .calendar-menu{position:absolute;top:2px;right:2px;z-index:-1;opacity:0}@media (max-width: 768px){.page-calendar .calendar-head .calendar-titbox .calendar-title{flex:1}.page-calendar .calendar-head .calendar-titbox .calendar-arrow{margin-left:12px;margin-right:0}.page-calendar .calendar-head .calendar-titbox .calendar-view{display:none}.page-calendar .calendar-box{padding:0 24px 5px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.page-calendar .calendar-box .calendar-wrapper .tui-full-calendar-popup{font-weight:400}.page-calendar .calendar-box .calendar-wrapper .tui-full-calendar-section-button>button .tui-full-calendar-icon{width:14px;height:14px;background-size:14px}.page-calendar .calendar-box .calendar-wrapper .tui-full-calendar-section-button>button .tui-full-calendar-content{font-size:14px}}@media (max-width: 640px){.page-calendar .calendar-box .calendar-wrapper .tui-full-calendar-popup-arrow{display:none}}.page-dashboard{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;background-color:#fff}.page-dashboard .dashboard-wrapper{width:100%;height:auto;max-height:100%;display:flex;flex-direction:column;align-items:center}.page-dashboard .dashboard-wrapper .dashboard-hello,.page-dashboard .dashboard-wrapper .dashboard-desc,.page-dashboard .dashboard-wrapper .dashboard-block,.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-title,.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul{width:660px;max-width:80%;margin:0 auto}.page-dashboard .dashboard-wrapper .dashboard-hello{padding:6% 12px 0;color:#303133;font-size:24px;font-weight:600;word-wrap:break-word}.page-dashboard .dashboard-wrapper .dashboard-desc{display:flex;align-items:center;margin-top:18px;padding:0 12px;color:#888;font-size:13px}.page-dashboard .dashboard-wrapper .dashboard-desc .dashboard-load{display:flex;align-items:center;justify-content:center;width:14px;height:14px;margin:0 0 0 4px}.page-dashboard .dashboard-wrapper .dashboard-block{margin-top:18px;padding:0 12px;display:flex}.page-dashboard .dashboard-wrapper .dashboard-block>li{flex:1;flex-shrink:0;list-style:none;margin-right:24px;border-radius:8px;padding:16px 24px;background-color:#fa8e8c;display:flex;flex-direction:column;justify-content:center;cursor:pointer;transition:transform .3s ease-out 0s,box-shadow .3s ease-out 0s}.page-dashboard .dashboard-wrapper .dashboard-block>li:first-child{background-color:#6f9ef6}.page-dashboard .dashboard-wrapper .dashboard-block>li:last-child{background-color:#98de6e;margin-right:0}.page-dashboard .dashboard-wrapper .dashboard-block>li:hover{transform:translateY(-3px);box-shadow:0 2px 10px #fa8e8c}.page-dashboard .dashboard-wrapper .dashboard-block>li:hover:first-child{box-shadow:0 2px 10px #6f9ef6}.page-dashboard .dashboard-wrapper .dashboard-block>li:hover:last-child{box-shadow:0 2px 10px #98de6e}.page-dashboard .dashboard-wrapper .dashboard-block>li .block-title{color:#fff9;font-size:12px}.page-dashboard .dashboard-wrapper .dashboard-block>li .block-data{display:flex;align-items:center;padding-top:10px;line-height:1}.page-dashboard .dashboard-wrapper .dashboard-block>li .block-data .block-num{flex:1;color:#fff;font-weight:600;font-size:32px}.page-dashboard .dashboard-wrapper .dashboard-block>li .block-data .taskfont{color:#ffffffb3;font-size:20px}.page-dashboard .dashboard-wrapper .dashboard-list{width:100%;margin-top:48px;padding-bottom:6%}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ref{height:0}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-title{position:sticky;top:0;z-index:1;margin:0 auto;padding:0 12px;height:46px;line-height:46px;font-weight:600;font-size:15px;background-color:#fff}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul{margin:0 auto 18px;padding:6px 12px 0;overflow:hidden}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul>li{position:relative;list-style:none;display:flex;background:#F9FAFB;padding:12px;margin-bottom:8px;border-radius:6px;cursor:pointer;transition:box-shadow .3s ease-out 0s}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul>li:hover{box-shadow:0 0 6px #dfdfdf}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul>li.complete .item-title{opacity:.5;text-decoration:line-through}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul>li.complete .item-icon{display:none}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul>li .priority-color{position:absolute;top:50%;transform:translateY(-50%);left:0;height:12px;width:2px}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul>li .item-select{flex-shrink:0;width:22px;height:22px;line-height:22px}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul>li .item-select .taskfont{color:#bbb;font-size:18px}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul>li .item-title{flex:1;padding-left:6px;line-height:22px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul>li .item-title>span{font-size:12px;height:18px;min-width:20px;line-height:16px;padding:0 2px;border-radius:3px;color:#84c56a;border:1px solid #84C56A;display:inline-block;vertical-align:top;margin-top:3px;margin-right:3px;text-align:center}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul>li .item-title>span.start{background-color:#ff70701a;border-color:#ff70701a;color:#ff7070}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul>li .item-title>span.progress{background-color:#fc984b1a;border-color:#fc984b1a;color:#fc984b}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul>li .item-title>span.test{background-color:#2f99ec1a;border-color:#2f99ec1a;color:#2f99ec}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul>li .item-title>span.end{background-color:#0bc0371a;border-color:#0bc0371a;color:#0bc037}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul>li .item-icon{display:flex;align-items:center;font-size:13px;margin-left:16px;height:22px;color:#aaa;cursor:pointer}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul>li .item-icon .taskfont{font-size:13px}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul>li .item-icon>em{font-style:normal;margin-left:4px}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul>li .item-icon.overdue{color:#ed4014}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul>li .item-icon.today{color:#f90}.page-dashboard .nopage{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center}.page-dashboard .nopage .nopage-icon{background-color:#f4f5f7;padding:20px;border-radius:50%}.page-dashboard .nopage .nopage-icon .ivu-icon{color:#d1d8dd;font-size:46px}.page-dashboard .nopage .nopage-text{margin-top:16px;color:#bec6cc;background-color:#f4f5f7;padding:4px 15px;border-radius:14px}.dashboard-load-enter-active{transition:opacity .3s ease;transition-delay:1s}.dashboard-load-leave-active{transition:opacity .2s ease;transition-delay:0s}.dashboard-load-enter,.dashboard-load-leave-to{opacity:0}@media (max-width: 768px){.page-dashboard .dashboard-wrapper{display:block;max-height:96%}.page-dashboard .dashboard-wrapper .dashboard-hello,.page-dashboard .dashboard-wrapper .dashboard-desc,.page-dashboard .dashboard-wrapper .dashboard-block,.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-title,.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul{max-width:96%}.page-dashboard .dashboard-wrapper .dashboard-block{display:block;margin-top:10px}.page-dashboard .dashboard-wrapper .dashboard-block>li{margin:0 0 10px;padding:8px 12px}.page-dashboard .dashboard-wrapper .dashboard-list{padding-bottom:2px;overflow:visible}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul{margin-bottom:36px;-webkit-user-select:none;-moz-user-select:none;user-select:none}}.page-file{width:100%;height:100%;display:flex;flex-direction:column}.page-file .file-wrapper{flex:1;height:0;display:flex;flex-direction:column;position:relative}.page-file .file-wrapper .file-head{display:flex;align-items:center;padding-bottom:16px;margin:32px 32px 16px;border-bottom:1px solid #F4F4F5}.page-file .file-wrapper .file-head .file-nav{flex:1;display:flex;align-items:center}.page-file .file-wrapper .file-head .file-nav>h1{color:#303133;font-size:28px;font-weight:600}.page-file .file-wrapper .file-head .file-nav .file-refresh{display:none;cursor:pointer;margin-left:12px}.page-file .file-wrapper .file-head .file-nav .file-refresh>i{font-size:18px}.page-file .file-wrapper .file-head .file-nav:hover .file-refresh{display:block}.page-file .file-wrapper .file-head .file-status{flex-shrink:0;margin-left:22px;display:flex;align-items:center;cursor:pointer}.page-file .file-wrapper .file-head .file-status>button{color:#fff;background:#84C56A;border-color:#84c56a}.page-file .file-wrapper .file-head .file-search{flex-shrink:0;margin-left:22px;cursor:pointer}.page-file .file-wrapper .file-head .file-search .ivu-input-wrapper{width:auto;transform:translateZ(0)}.page-file .file-wrapper .file-head .file-search .ivu-input-wrapper .ivu-input{border-color:#dcdee2;width:0;padding-left:0;padding-right:30px;border-radius:16px;transition:all .3s}.page-file .file-wrapper .file-head .file-search .ivu-input-wrapper .ivu-input-suffix i{color:#606266}.page-file .file-wrapper .file-head .file-search.has-value .ivu-input-wrapper .ivu-input,.page-file .file-wrapper .file-head .file-search:hover .ivu-input-wrapper .ivu-input{width:160px;padding-left:14px}.page-file .file-wrapper .file-head .file-add{flex-shrink:0;margin-left:18px;cursor:pointer}.page-file .file-wrapper .file-head .file-add .taskfont{font-size:18px}.page-file .file-wrapper .file-navigator{display:flex;align-items:center;height:24px;line-height:24px;margin:0 32px}.page-file .file-wrapper .file-navigator>ul{display:flex;align-items:center;overflow:auto;margin-right:12px}.page-file .file-wrapper .file-navigator>ul>li{display:flex;list-style:none;align-items:center;padding-left:8px;font-size:14px;color:#84c56a;cursor:pointer}.page-file .file-wrapper .file-navigator>ul>li:last-child{color:#606266;cursor:default}.page-file .file-wrapper .file-navigator>ul>li+li:before{content:"\203a";margin-top:-2px;padding-right:8px;color:#606266;line-height:1;font-size:16px;font-weight:500;font-family:system-ui,sans-serif}.page-file .file-wrapper .file-navigator>ul>li .taskfont{padding-right:2px}.page-file .file-wrapper .file-navigator>ul>li>span{display:inline-block;max-width:180px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.page-file .file-wrapper .file-navigator>ul>li>span.readonly{transform:scale(.8);transform-origin:right center;border-radius:2px;line-height:20px;font-size:12px;padding:0 5px;color:#606266;background:#f7f7f7;border:1px solid #e8eaec}.page-file .file-wrapper .file-navigator .nav-load{margin-left:8px;width:24px;height:24px;display:flex;align-items:center;justify-content:center}.page-file .file-wrapper .file-navigator .nav-load .common-loading{width:12px;height:12px}.page-file .file-wrapper .file-navigator .nav-refresh{margin-left:8px}.page-file .file-wrapper .file-navigator .ivu-btn{font-size:12px;margin-left:12px}.page-file .file-wrapper .file-navigator .file-shear{display:flex;align-items:center}.page-file .file-wrapper .file-navigator .file-shear>span{padding-right:3px}.page-file .file-wrapper .file-navigator .file-shear>em{display:inline-block;max-width:120px;font-style:normal;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.page-file .file-wrapper .file-navigator .flex-full{flex:1}.page-file .file-wrapper .file-navigator .switch-button{display:flex;align-items:center;background-color:#fff;border-radius:6px;position:relative;transition:box-shadow .2s}.page-file .file-wrapper .file-navigator .switch-button:hover{box-shadow:0 0 10px #e6ecfa}.page-file .file-wrapper .file-navigator .switch-button:before{content:"";position:absolute;top:0;left:0;width:50%;height:100%;z-index:0;color:#84c56a;border-radius:6px;border:1px solid #84C56A;background-color:#84c56a1a;transition:left .2s}.page-file .file-wrapper .file-navigator .switch-button>div{z-index:1;width:32px;height:30px;display:flex;align-items:center;justify-content:center;border-radius:6px;cursor:pointer;color:#606266}.page-file .file-wrapper .file-navigator .switch-button>div>i{font-size:17px}.page-file .file-wrapper .file-navigator .switch-button>div:first-child{color:#84c56a}.page-file .file-wrapper .file-navigator .switch-button.block:before{left:50%}.page-file .file-wrapper .file-navigator .switch-button.block>div:first-child{color:#606266}.page-file .file-wrapper .file-navigator .switch-button.block>div:last-child{color:#84c56a}.page-file .file-wrapper .file-drag{flex:1;height:0;display:flex;flex-direction:column;position:relative}.page-file .file-wrapper .file-drag .file-no{flex:1;display:flex;align-items:center;justify-content:center;flex-direction:column;margin-bottom:5%;opacity:.8}.page-file .file-wrapper .file-drag .file-no>i{font-size:64px}.page-file .file-wrapper .file-drag .file-no>p{margin-top:18px;font-size:14px;font-weight:500;line-height:1}.page-file .file-wrapper .file-drag .file-table{flex:1;cursor:default;margin:16px 32px 32px}.page-file .file-wrapper .file-drag .file-table .ivu-table:before{display:none}.page-file .file-wrapper .file-drag .file-table .ivu-table .ivu-table-tip{opacity:.8}.page-file .file-wrapper .file-drag .file-table .ivu-table .ivu-table-tip span{font-size:14px;font-weight:500;line-height:1.8}.page-file .file-wrapper .file-drag .file-table .ivu-table .ivu-table-tip span:before{display:block;content:"\e60b";font-family:taskfont,"serif"!important;font-size:64px;font-style:normal;-webkit-font-smoothing:antialiased;-webkit-text-stroke-width:.2px}.page-file .file-wrapper .file-drag .file-table .ivu-table .ivu-table-overflowY,.page-file .file-wrapper .file-drag .file-table .ivu-table .ivu-table-overflowX{-webkit-overflow-scrolling:touch}.page-file .file-wrapper .file-drag .file-table .file-nbox{display:flex;align-items:center;position:relative}.page-file .file-wrapper .file-drag .file-table .file-nbox.shear{opacity:.38}.page-file .file-wrapper .file-drag .file-table .file-nbox .file-name{flex:1;width:0;display:flex;align-items:center;position:relative;margin-right:46px}.page-file .file-wrapper .file-drag .file-table .file-nbox .file-name:before{flex-shrink:0;content:"";width:22px;height:22px;margin-right:8px}.page-file .file-wrapper .file-drag .file-table .file-nbox .file-name .quick-edit{width:98%}.page-file .file-wrapper .file-drag .file-table .file-nbox .avatar-char{font-size:18px}.page-file .file-wrapper .file-drag .file-table .file-nbox .taskfont{color:#aaa;font-size:16px;margin:0 3px}.page-file .file-wrapper .file-drag .file-list{flex:1;padding:0 20px 20px;margin-top:16px;overflow:auto}.page-file .file-wrapper .file-drag .file-list>ul{display:grid;justify-content:space-between;grid-template-columns:repeat(auto-fill,100px);grid-gap:12px}.page-file .file-wrapper .file-drag .file-list>ul>li{list-style:none;width:100px;height:110px;position:relative;border-radius:5px;display:flex;flex-direction:column;align-items:center;justify-content:space-between;cursor:pointer}.page-file .file-wrapper .file-drag .file-list>ul>li .file-input{margin:0 4px 4px;position:relative}.page-file .file-wrapper .file-drag .file-list>ul>li .file-input input{margin:0;padding:1px 5px;font-size:13px}.page-file .file-wrapper .file-drag .file-list>ul>li .file-input .file-load{position:absolute;top:0;right:6px;bottom:0;display:flex}.page-file .file-wrapper .file-drag .file-list>ul>li .file-input .file-load .common-loading{width:10px;height:10px}.page-file .file-wrapper .file-drag .file-list>ul>li .file-name{display:block;width:100%;height:20px;line-height:20px;color:#606266;font-size:12px;text-align:center;margin-bottom:5px;padding:0 6px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.page-file .file-wrapper .file-drag .file-list>ul>li .file-check{opacity:0;position:absolute;top:1px;left:4px;transition:opacity .2s}.page-file .file-wrapper .file-drag .file-list>ul>li .file-check.file-checked{opacity:1}.page-file .file-wrapper .file-drag .file-list>ul>li .file-menu{opacity:0;position:absolute;top:2px;right:2px;transition:opacity .2s;display:flex}.page-file .file-wrapper .file-drag .file-list>ul>li .file-menu .ivu-icon{font-size:16px;color:#aaa;transition:color .2s;padding:2px 5px}.page-file .file-wrapper .file-drag .file-list>ul>li .file-menu .ivu-icon:hover{color:#606266}.page-file .file-wrapper .file-drag .file-list>ul>li .file-icon{display:inline-block;width:64px;height:64px;margin-top:12px;position:relative}.page-file .file-wrapper .file-drag .file-list>ul>li .file-icon:before{position:absolute;top:0;left:0;right:0;bottom:0}.page-file .file-wrapper .file-drag .file-list>ul>li .file-icon .share-icon,.page-file .file-wrapper .file-drag .file-list>ul>li .file-icon .share-avatar{position:absolute;right:0;bottom:0;background-color:#9acd7b;width:20px;height:20px;border-radius:50%;display:flex;align-items:center;justify-content:center;transform:scale(.9)}.page-file .file-wrapper .file-drag .file-list>ul>li .file-icon .share-icon .taskfont,.page-file .file-wrapper .file-drag .file-list>ul>li .file-icon .share-avatar .taskfont{font-size:18px;color:#fff}.page-file .file-wrapper .file-drag .file-list>ul>li .file-icon .avatar-char{font-size:18px}.page-file .file-wrapper .file-drag .file-list>ul>li.shear{opacity:.38}.page-file .file-wrapper .file-drag .file-list>ul>li.highlight{background-color:#f4f5f7}.page-file .file-wrapper .file-drag .file-list>ul>li.operate,.page-file .file-wrapper .file-drag .file-list>ul>li:hover{background-color:#f4f5f7}.page-file .file-wrapper .file-drag .file-list>ul>li.operate .file-menu,.page-file .file-wrapper .file-drag .file-list>ul>li.operate .file-check,.page-file .file-wrapper .file-drag .file-list>ul>li:hover .file-menu,.page-file .file-wrapper .file-drag .file-list>ul>li:hover .file-check{opacity:1}.page-file .file-wrapper .file-drag .drag-over{position:absolute;top:0;left:0;right:0;bottom:0;z-index:3;background-color:#ffffffc7;display:flex;align-items:center;justify-content:center;margin:16px 32px 32px}.page-file .file-wrapper .file-drag .drag-over:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;border:2px dashed #7b7b7b;border-radius:12px}.page-file .file-wrapper .file-drag .drag-over .drag-text{padding:12px;font-size:18px;color:#606266}.page-file .file-wrapper .file-menu{position:absolute}.page-file .file-upload-list{display:flex;width:380px;padding:14px 26px;border-radius:8px;border:1px solid #ebeef5;position:fixed;right:16px;bottom:16px;z-index:1;background-color:#fff;box-shadow:0 2px 12px #0000001a;transition:opacity .3s,transform .3s,left .3s,right .3s,top .4s,bottom .3s;overflow:hidden}.page-file .file-upload-list .upload-wrap{flex:1;width:100%}.page-file .file-upload-list .upload-wrap .title{font-weight:700;font-size:16px;color:#303133;margin:0}.page-file .file-upload-list .upload-wrap .title>em{padding-left:4px;font-style:normal;cursor:pointer;color:#2b85e4;font-size:12px;font-weight:400}.page-file .file-upload-list .upload-wrap .content{font-size:14px;line-height:21px;margin:12px 0 0;color:#606266;max-height:500px;max-width:100%;overflow:auto}.page-file .file-upload-list .upload-wrap .content>li{list-style:none;padding:4px 0;position:relative}.page-file .file-upload-list .upload-wrap .content>li .file-name{line-height:18px;padding-right:16px}.page-file .file-upload-list .upload-wrap .content>li .file-error{font-size:12px;color:red}.page-file .file-upload-list .upload-wrap .content>li .file-close{position:absolute;font-size:14px;top:7px;right:-1px;display:none;cursor:pointer}.page-file .file-upload-list .upload-wrap .content>li:hover .file-close{display:block}.page-file .file-upload-list .upload-wrap .close{position:absolute;top:18px;right:15px;cursor:pointer;color:#909399;font-size:16px}.page-file-dropdown-menu{max-height:none!important}.page-file-dropdown-menu .ivu-dropdown{width:100%}.page-file-dropdown-menu .ivu-dropdown .arrow-forward-item{display:flex;align-items:center;justify-content:space-between;margin-right:-6px;min-width:90px}.page-file-dropdown-menu .ivu-dropdown .arrow-forward-item .ivu-icon{opacity:.7}.page-file-dropdown-menu .file-item{display:flex;align-items:center;position:relative}.page-file-dropdown-menu .file-item:before{flex-shrink:0;content:"";width:20px;height:20px;margin-right:8px}.page-file-dropdown-menu .ivu-dropdown-menu .item-open{display:flex;align-items:center}.page-file-dropdown-menu .ivu-dropdown-menu .item-open .open-name{padding-left:4px;max-width:160px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.page-file-share-form{display:flex;margin-bottom:12px}.page-file-share-form .share-userid{flex:1}.page-file-share-form>div{flex-shrink:0}.page-file-share-form>div:last-child{margin-right:0}.page-file-share-title{margin-top:-8px;margin-bottom:14px;padding:0 2px}.page-file-share-list{max-height:500px;margin-bottom:26px;overflow:auto}.page-file-share-list>li{display:flex;align-items:center;margin-bottom:12px}.page-file-share-list>li .common-avatar{flex:1}.page-file-share-list>li .all-avatar{flex:1;display:flex;align-items:center}.page-file-share-list>li .all-avatar .avatar-text{width:32px;height:32px;line-height:32px}.page-file-share-list>li .all-avatar .avatar-name{margin-left:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.page-file-share-list>li .ivu-select{width:auto;flex-shrink:0}.page-file-share-list>li .delete{color:red}.page-file-drawer .overlay-content{border-radius:20px 20px 0 0!important}@media (max-width: 768px){.page-file .file-wrapper .file-head{margin:24px 24px 16px}.page-file .file-wrapper .file-navigator{margin:0 24px}.page-file .file-wrapper .file-drag .file-list{-webkit-user-select:none;-moz-user-select:none;user-select:none}.page-file .file-wrapper .file-drag .file-list>ul{grid-template-columns:repeat(auto-fill,80px);grid-gap:4px}.page-file .file-wrapper .file-drag .file-list>ul>li{width:80px}.page-file .file-wrapper .file-drag .file-list>ul>li .file-check,.page-file .file-wrapper .file-drag .file-list>ul>li .file-menu{display:none}.page-file .file-wrapper .file-drag .file-list>ul>li:hover{background-color:transparent}.page-file .file-wrapper .file-drag .file-list>ul>li.operate:hover{background-color:#f4f5f7}.page-file .file-wrapper .file-drag .file-table{margin:16px 0 0}.page-file .file-upload-list{bottom:86px}.page-file-dropdown-menu .ivu-dropdown-menu .ivu-dropdown-item:hover{background:transparent}}.page-login{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;background-color:#f8f8f8}.page-login .login-body{display:flex;flex-direction:column;align-items:center;padding:32px 0;width:100%;max-height:100%;overflow:auto}.page-login .login-body .login-logo{flex-shrink:0;width:84px;height:84px;background:url(/js/build/logo.060180f3.svg) no-repeat center center;background-size:contain}.page-login .login-body .login-logo.can-click{cursor:pointer}.page-login .login-body .login-box{flex-shrink:0;position:relative;margin-top:36px;width:400px;max-width:90%;border-radius:12px;background-color:#fff;box-shadow:0 0 10px #e6ecfa;overflow:hidden}.page-login .login-body .login-box .login-mode-switch{position:absolute;top:4px;right:4px;z-index:1;border-radius:8px;overflow:hidden}.page-login .login-body .login-box .login-mode-switch .login-mode-switch-box{width:80px;height:80px;transform:translate(40px,-40px) rotate(45deg);cursor:pointer;background-color:#84c56acc;transition:background-color .3s;overflow:hidden}.page-login .login-body .login-box .login-mode-switch .login-mode-switch-box:hover{background-color:#84c56a}.page-login .login-body .login-box .login-mode-switch .login-mode-switch-box .login-mode-switch-icon{position:absolute;font-size:32px;width:50px;height:50px;color:#fff;bottom:-20px;left:16px;transform:rotate(-45deg);display:flex;align-items:flex-start;justify-content:flex-start}.page-login .login-body .login-box .login-mode-switch .login-mode-switch-box .login-mode-switch-icon>svg{width:32px;height:32px;margin-left:13px;margin-top:3px}.page-login .login-body .login-box .login-title{font-size:24px;font-weight:600;text-align:center;margin-top:46px}.page-login .login-body .login-box .login-subtitle{font-size:14px;text-align:center;margin-top:12px;padding:0 12px;color:#aaa}.page-login .login-body .login-box .login-qrcode{display:flex;align-items:center;justify-content:center;margin:50px auto 51px}.page-login .login-body .login-box .login-access{margin:26px 40px 30px}.page-login .login-body .login-box .login-access>*{margin-top:26px}.page-login .login-body .login-box .login-access .ivu-input{border-color:#f1f1f1}.page-login .login-body .login-box .login-access .ivu-input[readonly=readonly]{background-color:#f5f5f5}.page-login .login-body .login-box .login-access .ivu-input-large{font-size:15px}.page-login .login-body .login-box .login-access .login-code .ivu-input-group-prepend,.page-login .login-body .login-box .login-access .login-code .ivu-input-group-append{font-size:16px;background:transparent;border-color:#f1f1f1}.page-login .login-body .login-box .login-access .login-code .ivu-input-group-prepend>span,.page-login .login-body .login-box .login-access .login-code .ivu-input-group-append>span{font-size:14px}.page-login .login-body .login-box .login-access .login-code .ivu-input-group-prepend{padding-right:0}.page-login .login-body .login-box .login-access .login-code .ivu-input{border-left-color:transparent;box-shadow:none}.page-login .login-body .login-box .login-access .login-code .login-code-end{margin:-6px -7px;height:38px;overflow:hidden;cursor:pointer}.page-login .login-body .login-box .login-access .login-code .login-code-end img{height:100%}.page-login .login-body .login-box .login-access .login-switch{color:#aaa}.page-login .login-body .login-box .login-access>.ivu-poptip{width:100%}.page-login .login-body .login-box .login-access>.ivu-poptip>.ivu-poptip-rel{width:100%}.page-login .login-body .login-bottom{margin-top:18px;display:flex;align-items:center;width:388px;max-width:90%}.page-login .login-body .login-bottom .login-setting{flex-shrink:0;display:flex;align-items:center;cursor:pointer;color:#606266}.page-login .login-body .login-bottom .login-setting .taskfont{margin-top:1px;margin-left:3px;transform:scale(.8);font-size:12px}.page-login .login-body .login-bottom .login-setting-menu{display:flex;flex-direction:column}.page-login .login-body .login-bottom .login-setting-item{display:flex;align-items:center;justify-content:space-between}.page-login .login-body .login-bottom .login-setting-item .ivu-icon{color:#606266;padding-left:6px;margin-right:-6px}.page-login .login-body .login-bottom .login-forgot{flex:1;padding-left:24px;color:#aaa;text-align:right}.privacy-content{margin-bottom:12px;line-height:26px;font-size:16px}.privacy-content>p{text-indent:2rem}@media (max-width: 768px){.page-login .login-body{padding:0 0 110px}.page-login .login-body .login-logo{margin-top:24px;width:76px;height:76px}.page-login .login-body .login-box{margin-top:0;width:100%;max-width:460px;border-radius:12px;background-color:transparent;box-shadow:none}.page-login .login-body .login-box .login-mode-switch{display:none}.page-login .login-body .login-box .login-title{font-size:26px}.page-login .login-body .login-box .login-subtitle{margin-top:4px}.page-login .login-body .login-box .login-access{margin:20px 36px}.page-login .login-body .login-box .login-access .ivu-input-large{height:44px}.page-login .login-body .login-box .login-access .ivu-input-with-prefix{padding-left:40px}.page-login .login-body .login-box .login-access .ivu-input-prefix,.page-login .login-body .login-box .login-access .ivu-input-suffix{width:44px}.page-login .login-body .login-box .login-access .ivu-input-wrapper-large .ivu-input-prefix i,.page-login .login-body .login-box .login-access .ivu-input-wrapper-large .ivu-input-suffix i{font-size:20px;line-height:44px}.page-login .login-body .login-box .login-access .ivu-input-wrapper-large .ivu-input-icon{height:44px;line-height:44px}.page-login .login-body .login-box .login-access .login-code .ivu-input-group-prepend,.page-login .login-body .login-box .login-access .login-code .ivu-input-group-append{font-size:18px;background:#ffffff}.page-login .login-body .login-box .login-access .login-code .ivu-input-group-prepend .login-code-end,.page-login .login-body .login-box .login-access .login-code .ivu-input-group-append .login-code-end{height:42px}.page-login .login-body .login-box .login-access .login-code .ivu-input-group-prepend{padding-left:12px;padding-right:2px}.page-login .login-body .login-bottom{margin-top:8px;width:100%;max-width:460px;padding:0 36px}}.page-manage{position:absolute;top:0;left:0;right:0;bottom:0;display:flex}.page-manage .manage-box-menu{position:relative;flex-grow:0;flex-shrink:0;width:255px;height:100%;background:#F4F5F7;display:flex;flex-direction:column;align-items:center;transition:all .2s}.page-manage .manage-box-menu>ul{flex:1;width:100%;margin-top:16px;display:flex;flex-direction:column;overflow:hidden}.page-manage .manage-box-menu>ul>li{flex-shrink:0;display:flex;align-items:center;height:36px;color:#6b6e72;cursor:pointer;position:relative;width:80%;max-width:100%;margin:5px auto;padding:0 4%;border-radius:4px}.page-manage .manage-box-menu>ul>li>i{opacity:.3;font-size:20px;margin-right:10px}.page-manage .manage-box-menu>ul>li .menu-title{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.page-manage .manage-box-menu>ul>li .menu-badge{margin-left:12px;transform:scale(.9)}.page-manage .manage-box-menu>ul>li:first-child{margin-top:12px}.page-manage .manage-box-menu>ul>li.active{background-color:#fff}.page-manage .manage-box-menu>ul>li.menu-project{flex:1;display:flex;flex-direction:column;align-items:center;padding:12px 0 0;cursor:default;width:100%}.page-manage .manage-box-menu>ul>li.menu-project>ul{width:100%}.page-manage .manage-box-menu>ul>li.menu-project>ul>li{display:flex;flex-direction:column;list-style:none;cursor:pointer;width:80%;margin:2px auto;border:2px solid transparent}.page-manage .manage-box-menu>ul>li.menu-project>ul>li .project-h1{position:relative;display:flex;align-items:center;justify-content:space-between;padding:0 8px 0 28px;border-radius:4px}.page-manage .manage-box-menu>ul>li.menu-project>ul>li .project-h1>em{position:absolute;top:50%;left:2px;width:24px;height:24px;cursor:pointer;transform:translateY(-50%);display:flex;align-items:center;justify-content:center}.page-manage .manage-box-menu>ul>li.menu-project>ul>li .project-h1>em:before{content:"";width:12px;height:12px;background:url(data:image/svg+xml;base64,PHN2ZyB0PSIxNjIyMzkwODExNTQxIiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjI0OTk3IiB3aWR0aD0iNDgiIGhlaWdodD0iNDgiPjxwYXRoIGQ9Ik0zNjYuMTgyNCAxMDguMjM2OEw4MTIuMDMyIDQyOC4wMzJhMTAyLjQgMTAyLjQgMCAwIDEgMCAxNjYuNTAyNEwzNjYuMTgyNCA5MTQuMzI5NmExMDIuNCAxMDIuNCAwIDAgMS0xNjIuMDk5Mi04My4yNTEyVjE5MS40ODhhMTAyLjQgMTAyLjQgMCAwIDEgMTYyLjA5OTItODMuMjUxMnoiIHAtaWQ9IjI0OTk4IiBmaWxsPSIjOTk5OTk5Ij48L3BhdGg+PC9zdmc+) no-repeat center center;background-size:contain;transition:transform .2s}.page-manage .manage-box-menu>ul>li.menu-project>ul>li .project-h1 .title{flex:1;color:#303133;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;height:38px;line-height:38px}.page-manage .manage-box-menu>ul>li.menu-project>ul>li .project-h1 .icon-top{padding-left:8px;width:14px;height:14px;background:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI1LjAuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IuWbvuWxgl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiCiAgICAgeT0iMHB4IgogICAgIHZpZXdCb3g9IjAgMCAyNCAyNCIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMjQgMjQ7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPHN0eWxlIHR5cGU9InRleHQvY3NzIj4KCS5zdDB7ZmlsbDojOEJDRjcwO30KPC9zdHlsZT4wCiAgICA8cGF0aCBjbGFzcz0ic3QwIiBkPSJNMjAuNyw4LjFjLTEuNS0xLjUtNC40LTQuNC00LjQtNC40Yy0xLjItMS4yLTIuNS0xLjQtMy40LTAuN2MtMC41LDAuNC0wLjcsMC45LTAuOCwxLjRjLTAuMSwwLjUtMC40LDEtMC44LDEuMwoJbC0wLjEsMC4xYy0yLDEuNS00LjMsMi44LTYuOCwzLjJDMy45LDkuMiwzLjMsOS41LDMsMTBjLTAuNiwwLjktMC40LDIuMSwwLjMsMi45bDMuNCwzLjRjMCwwLDAsMCwwLDBsLTMuMSwzLjEKCWMtMC4zLDAuMy0wLjMsMC44LDAsMS4xYzAuMSwwLjEsMC4zLDAuMiwwLjUsMC4yYzAuMiwwLDAuNC0wLjEsMC41LTAuMmwzLjEtMy4xYzAsMCwwLDAsMCwwbDIuOSwyLjljMS4zLDEuMywyLjUsMS41LDMuNCwwLjkKCWMwLjQtMC4zLDAuNy0wLjcsMC45LTEuMmMwLjYtMi4zLDEuNC00LjYsMi44LTYuNWwwLjUtMC43YzAuMy0wLjQsMC44LTAuOCwxLjMtMC44YzAuNS0wLjEsMS4xLTAuMywxLjQtMC44CglDMjEuNywxMC4yLDIxLjUsOC45LDIwLjcsOC4xeiIvPgo8L3N2Zz4K) no-repeat center center;background-size:contain}.page-manage .manage-box-menu>ul>li.menu-project>ul>li .project-h1 .num{padding-left:8px;font-size:12px}.page-manage .manage-box-menu>ul>li.menu-project>ul>li .project-h2{display:none;margin:16px 4px;padding:0 8px 0 24px;cursor:default}.page-manage .manage-box-menu>ul>li.menu-project>ul>li .project-h2>p{display:flex;align-items:center;padding:4px 0;height:36px}.page-manage .manage-box-menu>ul>li.menu-project>ul>li .project-h2>p em,.page-manage .manage-box-menu>ul>li.menu-project>ul>li .project-h2>p span{font-style:normal;font-size:12px;flex-shrink:0;padding-right:6px}.page-manage .manage-box-menu>ul>li.menu-project>ul>li .project-h2>p .ivu-progress{margin-right:-18px}.page-manage .manage-box-menu>ul>li.menu-project>ul>li .project-h2>p .ivu-progress .ivu-progress-inner{background-color:#e4e4e4}.page-manage .manage-box-menu>ul>li.menu-project>ul>li.active .project-h1{background-color:#fff}.page-manage .manage-box-menu>ul>li.menu-project>ul>li.open-menu .project-h1>em:before{transform:rotate(90deg)}.page-manage .manage-box-menu>ul>li.menu-project>ul>li.open-menu .project-h2{display:block}.page-manage .manage-box-menu>ul>li.menu-project>ul>li.operate{border-color:#84c56a}.page-manage .manage-box-menu>ul>li.menu-project>ul>li.loading{display:flex;align-items:center;justify-content:center;padding:6px}.page-manage .manage-box-menu>ul>li.menu-project>ul>li.loading .common-loading{margin:6px;width:22px;height:22px}.page-manage .manage-box-menu .operate-position{position:absolute;top:0;left:0;width:1px;opacity:0;visibility:hidden;pointer-events:none}.page-manage .manage-box-menu .manage-project-search{width:80%;padding:0 3px;margin:8px 0 -2px;border-radius:12px;background-color:#fff;overflow:hidden}.page-manage .manage-box-menu .manage-project-search .ivu-input{padding-left:30px;border-color:transparent;background-color:transparent}.page-manage .manage-box-menu .manage-project-search .ivu-input:hover,.page-manage .manage-box-menu .manage-project-search .ivu-input:focus{box-shadow:none}.page-manage .manage-box-menu .manage-project-search .search-pre{width:100%;height:100%;display:flex;align-items:center;justify-content:center}.page-manage .manage-box-menu .manage-project-search .search-pre .common-loading{width:14px;height:14px;margin:0}.page-manage .manage-box-menu .manage-box-new-group{width:80%;margin-top:16px;margin-bottom:20px;display:flex;align-items:center}.page-manage .manage-box-menu .manage-box-new-group .manage-box-new{flex:1}.page-manage .manage-box-menu .manage-box-new-group .ivu-btn{height:38px}.page-manage .manage-box-menu .manage-box-new-group .ivu-dropdown .ivu-btn{min-width:auto!important;padding:0 4px;border-radius:0 4px 4px 0}.page-manage .manage-box-main{flex:1;position:relative}.page-manage .manage-box-main .manage-box-view{position:absolute;top:0;left:0;right:0;bottom:0;overflow:auto}.page-manage-menu-dropdown{flex-shrink:0}.page-manage-menu-dropdown.main-menu{width:86%}.page-manage-menu-dropdown .ivu-select-dropdown{padding:7px 0}.page-manage-menu-dropdown .ivu-select-dropdown .ivu-dropdown-item{padding:9px 16px}.page-manage-menu-dropdown .ivu-select-dropdown .ivu-dropdown-item-divided{margin-top:7px}.page-manage-menu-dropdown .ivu-select-dropdown .ivu-dropdown-item-divided:before{top:-9px}.page-manage-menu-dropdown .manage-box-title{display:flex;align-items:center;flex-shrink:0;padding:6px 10px;margin-top:27px;border-radius:8px;background-color:#fff;cursor:pointer;transition:box-shadow .3s}.page-manage-menu-dropdown .manage-box-title.menu-visible{box-shadow:0 1px 6px #0003}.page-manage-menu-dropdown .manage-box-title .manage-box-avatar{width:36px;height:36px}.page-manage-menu-dropdown .manage-box-title>span{flex:1;padding-left:12px;font-size:16px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.page-manage-menu-dropdown .manage-box-title .manage-box-arrow{display:flex;flex-direction:column;align-items:center;justify-content:center;padding-left:16px;padding-right:2px}.page-manage-menu-dropdown .manage-box-title .manage-box-arrow>i{font-size:12px;margin:-1px}.page-manage-menu-dropdown .manage-box-title .manage-box-top-report{overflow:unset;margin-right:-6px;align-items:center;flex-direction:column;justify-content:center;flex:0 0 auto}.page-manage-menu-dropdown .manage-box-title .manage-box-top-report>i{font-size:12px;margin:-1px}.page-manage-menu-dropdown .manage-box-title .manage-box-top-report .ivu-badge-dot{margin-right:4px}.page-manage-menu-dropdown .manage-menu-report-badge{margin-left:6px;transform:scale(.9);vertical-align:top}.page-manage-menu-dropdown .manage-menu-flex{display:flex;align-items:center;justify-content:space-between}.page-manage-menu-dropdown .manage-menu-flex .ivu-icon{color:#606266}.page-manage-menu-dropdown .task-title{max-width:600px;display:flex;align-items:center}.page-manage-menu-dropdown .task-title>span{flex-shrink:0;font-size:12px;height:18px;min-width:20px;line-height:16px;padding:0 2px;border-radius:3px;color:#84c56a;border:1px solid #84C56A;margin-right:6px}.page-manage-menu-dropdown .task-title>span.start{background-color:#ff70701a;border-color:#ff70701a;color:#ff7070}.page-manage-menu-dropdown .task-title>span.progress{background-color:#fc984b1a;border-color:#fc984b1a;color:#fc984b}.page-manage-menu-dropdown .task-title>span.test{background-color:#2f99ec1a;border-color:#2f99ec1a;color:#2f99ec}.page-manage-menu-dropdown .task-title>span.end{background-color:#0bc0371a;border-color:#0bc0371a;color:#0bc037}.page-manage-menu-dropdown .task-title .task-title-text{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.page-manage-add-task-button-group{margin-left:8px!important}.page-manage-add-task-button-group .ivu-dropdown .ivu-btn{min-width:auto!important;padding:0 4px;border-radius:0 4px 4px 0}@media (max-height: 640px){.page-manage .manage-box-menu>ul{overflow:auto}.page-manage .manage-box-menu>ul.scrollbar-overlay{overflow-y:overlay}.page-manage .manage-box-menu>ul>li.menu-project>ul{overflow:visible}.page-manage .manage-box-menu .manage-project-search{margin-top:12px}}@media (max-width: 768px){.page-manage.show-tabbar .manage-box-main{margin-bottom:60px}.page-manage .manage-box-menu{position:fixed;z-index:49;left:0;top:0;bottom:0;width:100%;transform:translate(-120%)}.page-manage .manage-box-menu.show768-menu{transform:translate(0)}}.page-messenger{display:flex}.page-messenger .messenger-wrapper{flex:1;display:flex;align-items:flex-start;overflow:hidden}.page-messenger .messenger-wrapper .messenger-select{position:relative;height:100%;width:30%;min-width:240px;max-width:320px;flex-shrink:0;display:flex;flex-direction:column}.page-messenger .messenger-wrapper .messenger-select:after{content:"";position:absolute;top:0;right:0;height:100%;width:1px;background-color:#f4f5f5}.page-messenger .messenger-wrapper .messenger-select .messenger-search{display:flex;align-items:center;justify-content:center;height:54px;padding:0 12px;flex-shrink:0}.page-messenger .messenger-wrapper .messenger-select .messenger-search .search-wrapper{flex:1;background-color:#f7f7f7;padding:0 8px;margin:0 4px;border-radius:12px;overflow:hidden}.page-messenger .messenger-wrapper .messenger-select .messenger-search .search-wrapper .search-pre{width:100%;height:100%;display:flex;align-items:center;justify-content:center}.page-messenger .messenger-wrapper .messenger-select .messenger-search .search-wrapper .search-pre .common-loading{width:14px;height:14px;margin:0}.page-messenger .messenger-wrapper .messenger-select .messenger-search .search-wrapper .ivu-input{border-color:transparent;background-color:transparent}.page-messenger .messenger-wrapper .messenger-select .messenger-search .search-wrapper .ivu-input:hover,.page-messenger .messenger-wrapper .messenger-select .messenger-search .search-wrapper .ivu-input:focus{box-shadow:none}.page-messenger .messenger-wrapper .messenger-select .messenger-nav{display:flex;align-items:center;justify-content:space-evenly;padding:2px 0 12px}.page-messenger .messenger-wrapper .messenger-select .messenger-nav>div{max-width:25%;position:relative;line-height:1;padding:0 6px;color:#888;cursor:pointer}.page-messenger .messenger-wrapper .messenger-select .messenger-nav>div .nav-num{position:absolute;top:-12px;right:-8px;transform:scale(.7)}.page-messenger .messenger-wrapper .messenger-select .messenger-nav>div .nav-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.page-messenger .messenger-wrapper .messenger-select .messenger-nav>div.active{color:#555;font-weight:500}.page-messenger .messenger-wrapper .messenger-select .messenger-nav>div:hover{color:#777}.page-messenger .messenger-wrapper .messenger-select .messenger-notify-permission{position:sticky;display:flex;align-items:center;padding:6px 12px;justify-content:space-between;background-color:#fef7ee;border:1px solid #FAE0B5;margin:8px 12px;border-radius:6px}.page-messenger .messenger-wrapper .messenger-select .messenger-list{flex:1;height:0;width:100%;overflow-x:hidden}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li{display:flex;flex-direction:row;align-items:flex-start;padding:16px 12px;position:relative;cursor:pointer;list-style:none}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li .img-avatar,.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li .user-avatar,.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li .icon-avatar{width:42px;height:42px;margin:2px;flex-grow:0;flex-shrink:0}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li .img-avatar{display:flex;align-items:center;justify-content:center}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li .img-avatar>img{width:100%;height:100%}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li .icon-avatar{display:flex;align-items:center;justify-content:center;border-radius:50%;font-size:26px;background-color:#61b2f9;color:#fff}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li .icon-avatar.department{background-color:#5bc7b0}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li .icon-avatar.project{background-color:#6e99eb}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li .icon-avatar.task{background-color:#9b96df;font-size:24px}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li .dialog-box{flex:1;width:0;display:flex;flex-direction:column;padding-left:12px}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li .dialog-box .dialog-title{display:flex;flex-direction:row;align-items:center;justify-content:space-between;line-height:24px}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li .dialog-box .dialog-title .todo,.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li .dialog-box .dialog-title .mention,.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li .dialog-box .dialog-title .bot{color:red;background-color:transparent;font-weight:600;flex-shrink:0;margin-right:4px;padding:0;height:auto;width:auto;-webkit-user-select:none;-moz-user-select:none;user-select:none}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li .dialog-box .dialog-title .bot{color:#84c56a;font-size:16px;font-weight:400}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li .dialog-box .dialog-title .ivu-tag{margin:0 4px 0 0;padding:0 5px}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li .dialog-box .dialog-title .ivu-tag.ivu-tag-success{padding:0 6px}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li .dialog-box .dialog-title>span{flex:1;color:#303133;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li .dialog-box .dialog-title>i{flex-shrink:0;margin-left:8px;transform:scale(.9);font-size:12px;color:#84c56a}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li .dialog-box .dialog-title>i.completed{font-size:18px;margin:0 4px 0 0;transform:scale(1)}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li .dialog-box .dialog-title>em{flex-shrink:0;margin-left:8px;font-style:normal;color:#909399;font-size:12px}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li .dialog-box .dialog-text{color:#909399;font-size:12px;min-height:24px;line-height:24px;display:flex;align-items:center;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li .dialog-box .dialog-text .common-avatar,.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li .dialog-box .dialog-text .last-self{flex-shrink:0;padding-right:4px;margin-right:4px;position:relative}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li .dialog-box .dialog-text .common-avatar:after,.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li .dialog-box .dialog-text .last-self:after{content:":";position:absolute;top:50%;transform:translateY(-50%);right:0}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li .dialog-box .dialog-text .last-text{flex:1;display:flex;align-items:center}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li .dialog-box .dialog-text .last-text>em{flex-shrink:0;background-color:#90939940;height:20px;width:26px;line-height:20px;text-align:center;border-radius:10px;font-size:14px;font-style:normal;margin-right:4px}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li .dialog-box .dialog-text .last-text>span{flex:1;width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li .dialog-box .dialog-text .last-silence{font-size:15px;padding-left:4px;color:#90939980}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li .dialog-num{position:absolute;top:10px;left:58px;transform:scale(.8) translate(-100%)}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li .dialog-line{display:none;position:absolute;bottom:0;right:0;left:68px;height:1px;background-color:#f2f2f2;transform:scaleY(.5)}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li:before{display:none;position:absolute;content:"";top:0;left:0;right:0;bottom:0;z-index:1;border:2px solid #84C56A;pointer-events:none}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li.top{background-color:#f4f5f7}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li.active{background-color:#eeeff1}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li.operate:before{display:block}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li.completed:after{content:"\f373";font-family:Ionicons,serif;pointer-events:none;position:absolute;bottom:0;right:12px;font-size:28px;color:#19be6b;opacity:.2;z-index:1}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li.completed .dialog-box .dialog-text{padding-right:36px}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li.nothing,.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li.loading{justify-content:center;padding:24px;margin:0;border:0;line-height:22px;cursor:default;word-break:break-all}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li.loading{display:flex;align-items:flex-start;justify-content:center}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li.loading .common-loading{width:20px;height:20px;margin:1px}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.contacts>li{list-style:none;margin-left:24px;position:relative}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.contacts>li .label{padding-left:4px;margin-top:6px;margin-bottom:6px;height:34px;line-height:34px;position:relative}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.contacts>li .label:after{content:"";position:absolute;bottom:0;right:0;left:0;height:1px;background-color:#f2f2f2;transform:scaleY(.5)}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.contacts>li.nothing,.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.contacts>li.loading{text-align:center;height:100%;margin:0;padding:24px;border-radius:0;line-height:22px}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.contacts>li.loading{display:flex;align-items:flex-start;justify-content:center}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.contacts>li.loading .common-loading{width:20px;height:20px;margin:1px}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.contacts>li.loaded{margin:0;height:52px;display:flex;align-items:center;justify-content:center}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.contacts>li>ul>li{list-style:none;display:flex;flex-direction:row;align-items:center;height:52px;cursor:pointer}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.contacts>li>ul>li .avatar{flex-grow:0;flex-shrink:0;width:30px;height:30px}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.contacts>li>ul>li .nickname{flex:1;width:0;padding-left:12px;font-size:14px;display:flex;align-items:center;justify-content:space-between;flex-flow:row wrap;align-content:flex-start}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.contacts>li>ul>li .nickname>em{padding-right:12px;font-style:normal;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.contacts>li>ul>li .nickname .tags{padding-right:12px;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#909399}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.contacts>li>ul>li .loading{margin-right:12px;width:16px;height:16px;display:flex;align-items:center;justify-content:center}.page-messenger .messenger-wrapper .messenger-select .messenger-list .operate-position{position:absolute;top:0;left:0;width:1px;opacity:0;visibility:hidden;pointer-events:none}.page-messenger .messenger-wrapper .messenger-select .messenger-menu{display:flex;align-items:center;justify-content:center;height:52px;flex-shrink:0;border-top:1px solid #f4f5f5}.page-messenger .messenger-wrapper .messenger-select .messenger-menu .menu-icon{height:100%;display:flex;align-items:center;position:relative}.page-messenger .messenger-wrapper .messenger-select .messenger-menu .menu-icon .menu-num{position:absolute;top:4px;left:50%;margin-left:3px;transform:scale(.8)}.page-messenger .messenger-wrapper .messenger-select .messenger-menu .menu-icon>i{cursor:pointer;font-size:24px;margin:0 24px;color:#aaa;opacity:.9}.page-messenger .messenger-wrapper .messenger-select .messenger-menu .menu-icon>i.active{opacity:1;color:#84c56a}.page-messenger .messenger-wrapper .messenger-select .messenger-menu .menu-icon>i:hover{opacity:1}.page-messenger .messenger-wrapper .messenger-msg{flex:1;width:0;height:100%;display:flex;position:relative}.page-messenger .messenger-wrapper .messenger-msg .msg-dialog-bg{position:absolute;top:0;left:0;right:0;bottom:0;z-index:0;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center}.page-messenger .messenger-wrapper .messenger-msg .msg-dialog-bg .msg-dialog-bg-icon{background-color:#f4f5f7;padding:20px;border-radius:50%}.page-messenger .messenger-wrapper .messenger-msg .msg-dialog-bg .msg-dialog-bg-icon .ivu-icon{color:#d1d8dd;font-size:46px}.page-messenger .messenger-wrapper .messenger-msg .msg-dialog-bg .msg-dialog-bg-text{margin-top:16px;color:#bec6cc;background-color:#f4f5f7;padding:4px 15px;border-radius:14px}@media (max-width: 768px){.page-messenger .messenger-wrapper .messenger-select{position:fixed;top:0;left:0;width:100%;height:100%;max-width:none;background-color:#fff;z-index:48}.page-messenger .messenger-wrapper .messenger-select:after{display:none}.page-messenger .messenger-wrapper .messenger-select .messenger-search{background-color:#f8f8f8}.page-messenger .messenger-wrapper .messenger-select .messenger-search .search-wrapper{background-color:#fff}.page-messenger .messenger-wrapper .messenger-select .messenger-nav{background-color:#f8f8f8}.page-messenger .messenger-wrapper .messenger-select .messenger-menu{border-top:0;height:60px;opacity:0}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul{-webkit-user-select:none;-moz-user-select:none;user-select:none}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li .user-avatar .common-avatar:after{content:"";position:absolute;top:0;left:0;right:0;bottom:0;z-index:1}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li .dialog-line{display:block}.page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li:last-child .dialog-line{display:none}.page-messenger .messenger-wrapper .messenger-msg{display:none}}.page-project{flex:1;display:flex;align-items:flex-start}.page-project .project-panel{flex:1;width:0;height:100%;background-color:#fafafa}.page-project .project-dialog{position:relative;height:100%;width:35%;min-width:320px;max-width:520px;flex-shrink:0}@media (max-height: 700px){.page-project .project-panel{height:auto;min-height:100%}.page-project .project-panel.gantt{height:100%}}.page-setting{display:flex;flex-direction:column}.page-setting .setting-head{display:flex;align-items:center;margin:32px 32px 16px;border-bottom:1px solid #F4F4F5}.page-setting .setting-head .setting-titbox{flex:1;margin-bottom:16px}.page-setting .setting-head .setting-titbox .setting-title{display:flex;align-items:center}.page-setting .setting-head .setting-titbox .setting-title>h1{flex:1;width:0;color:#303133;font-size:28px;font-weight:600;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.page-setting .setting-head .setting-titbox .setting-title .setting-more{display:none}.page-setting .setting-box{flex:1;height:0;display:flex;padding-bottom:16px}.page-setting .setting-box .setting-menu{width:200px;flex-shrink:0;border-right:1px solid #F4F4F5;overflow:auto}.page-setting .setting-box .setting-menu>ul{padding:12px 0 0 32px}.page-setting .setting-box .setting-menu>ul>li{cursor:pointer;color:#6b6e72;list-style:none;line-height:42px;padding:0 20px;margin:5px 0;position:relative;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.page-setting .setting-box .setting-menu>ul>li.flex{display:flex;align-items:center}.page-setting .setting-box .setting-menu>ul>li .ivu-badge{transform:scale(.8);transform-origin:right center}.page-setting .setting-box .setting-menu>ul>li.active,.page-setting .setting-box .setting-menu>ul>li:hover{background-color:#f4f5f7}.page-setting .setting-box .setting-menu>ul>li.divided{position:relative;margin-top:10px;padding-top:10px}.page-setting .setting-box .setting-menu>ul>li.divided:before{content:"";position:absolute;top:0;left:0;right:0;z-index:1;height:1px;background-color:#f4f4f5}.page-setting .setting-box .setting-menu>ul>li.divided:after{content:"";position:absolute;top:1px;left:0;right:0;z-index:2;height:9px;background-color:#fff}.page-setting .setting-box .setting-content{flex:1;overflow:hidden;position:relative;display:flex;flex-direction:column}.page-setting .setting-box .setting-content .setting-content-title{font-size:20px;font-weight:500;padding:12px 32px}.page-setting .setting-box .setting-content .setting-content-view{flex:1;position:relative}.page-setting .setting-box .setting-content .setting-content-view .setting-router-view{padding:24px 40px}.page-setting .setting-item .ivu-input,.page-setting .setting-item .ivu-select-default{max-width:460px}.page-setting .setting-item .ivu-form{overflow:auto}.page-setting .setting-item .setting-color,.page-setting .setting-item .setting-template{min-width:400px;max-width:600px;margin-bottom:12px}.page-setting .setting-item .setting-color>div,.page-setting .setting-item .setting-template>div{text-align:center;padding-right:12px}.page-setting .setting-item .setting-color>div:first-child,.page-setting .setting-item .setting-template>div:first-child{text-align:left}.page-setting .setting-item .setting-color>div:last-child,.page-setting .setting-item .setting-template>div:last-child{padding-right:0;width:60px;flex:auto;flex-shrink:0}.page-setting .setting-item .setting-color>div .ivu-color-picker,.page-setting .setting-item .setting-template>div .ivu-color-picker{width:100%}.page-setting .setting-item .setting-color .information,.page-setting .setting-item .setting-template .information{color:#909399}.page-setting .setting-item .setting-color.color-label-box .el-tooltip{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.page-setting .setting-item .setting-template>div{flex-shrink:0;text-align:left}.page-setting .setting-item .setting-template>div:last-child{flex:1;width:auto;max-width:none}.page-setting .setting-item .setting-footer>button{height:34px;line-height:32px;min-width:94px}.page-setting .setting-item .setting-footer>button>span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.page-setting .setting-item .setting-auto-day{display:block;width:110px;margin-top:12px;line-height:32px;margin-bottom:-10px}.page-setting .setting-item .setting-checkin-load{margin-bottom:12px}.page-setting .setting-item .setting-checkin-load .common-loading{width:20px;height:20px}.page-setting .setting-item .setting-checkin-lately>li{padding-bottom:8px}.page-setting .setting-item .setting-checkin-lately>li .time{font-weight:700}.page-setting .setting-item .setting-checkin-lately>li .content{font-size:13px;opacity:.7}.page-setting .setting-item .setting-checkin-row{overflow:auto}.page-setting .setting-item .setting-checkin-button{padding-bottom:4px;cursor:pointer;color:#2b85e4}.page-setting .setting-item .setting-checkin-button:hover{text-decoration:underline}.page-setting .setting-item.submit{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;flex-direction:column;padding:0!important}.page-setting .setting-item.submit .ivu-form{flex:1;padding:24px 40px;overflow:auto}.page-setting .setting-item.submit .ivu-tabs{flex:1;padding:16px 32px 0;display:flex;flex-direction:column}.page-setting .setting-item.submit .ivu-tabs .ivu-tabs-content{flex:1;height:0}.page-setting .setting-item.submit .ivu-tabs .ivu-tabs-content .ivu-tabs-tabpane{position:relative}.page-setting .setting-item.submit .ivu-tabs .ivu-tabs-content .ivu-tabs-tabpane .setting-component-item{position:absolute;top:0;left:0;right:0;bottom:0;flex:1;display:flex;flex-direction:column}.page-setting .setting-item.submit .ivu-tabs .ivu-tabs-content .ivu-tabs-tabpane .setting-component-item .ivu-form{padding:8px 12px}.page-setting .setting-item.submit .ivu-tabs .ivu-tabs-content .ivu-tabs-tabpane .setting-component-item .setting-footer{margin:0 -32px}.page-setting .setting-item.submit .ivu-tabs .ivu-tabs-content .ivu-tabs-tabpane .setting-component-item .block-setting-box{position:relative;padding:44px 24px 4px;margin:24px 0 12px;border-radius:8px;border:1px solid #eeeeee;transition:box-shadow .3s}.page-setting .setting-item.submit .ivu-tabs .ivu-tabs-content .ivu-tabs-tabpane .setting-component-item .block-setting-box:hover{box-shadow:0 0 10px #e6ecfa}.page-setting .setting-item.submit .ivu-tabs .ivu-tabs-content .ivu-tabs-tabpane .setting-component-item .block-setting-box h3{position:absolute;top:0;left:24px;padding:4px 10px;border-radius:4px;display:inline-block;background-color:#fff;border:1px solid #eeeeee;font-size:15px;font-weight:500;transform:translateY(-50%)}.page-setting .setting-item.submit .ivu-tabs .ivu-tabs-content .ivu-tabs-tabpane .setting-component-item .block-setting-box .ivu-form-item .ivu-form{padding:12px 0 0}.page-setting .setting-item.submit .ivu-tabs .ivu-tabs-content .ivu-tabs-tabpane .setting-component-item .block-setting-box .ivu-form-item .ivu-form .ivu-form-item{margin-bottom:8px}.page-setting .setting-item.submit .ivu-tabs .ivu-tabs-content .ivu-tabs-tabpane .setting-component-item .block-setting-box .ivu-form-item .ivu-form .ivu-form-item .ivu-form-item-content{display:flex;align-items:center}.page-setting .setting-item.submit .ivu-tabs .ivu-tabs-content .ivu-tabs-tabpane .setting-component-item .block-setting-placeholder{height:8px}.page-setting .setting-item.submit .ivu-tabs .ivu-tabs-content .ivu-tabs-tabpane .setting-component-item .export-data{margin-top:6px}.page-setting .setting-item.submit .ivu-tabs .ivu-tabs-content .ivu-tabs-tabpane .setting-component-item .export-data>p{cursor:pointer;color:#2b85e4}.page-setting .setting-item.submit .ivu-tabs .ivu-tabs-content .ivu-tabs-tabpane .setting-component-item .export-data>p:hover{text-decoration:underline}.page-setting .setting-item.submit .setting-footer{flex-shrink:0;position:static;padding:16px 24px 0;border-top:1px solid #F4F4F5}.page-setting .setting-item.submit .setting-input,.page-setting .setting-item.submit .setting-send-input{max-width:460px}.page-setting .setting-item.submit .setting-send-input .ivu-input-group-append{background-color:#ededed!important;border:1px solid #EDEDED!important;color:#999!important}.page-setting .setting-item.submit .setting-send-input .ivu-input-group-append:before{background:#EDEDED}.page-setting .setting-item.submit .setting-button{margin-left:8px}.page-setting-delete-box .big-text{font-size:16px;font-weight:500;color:red}.page-setting-delete-box .small-text{margin-top:15px}.page-setting-delete-box .small-text>div{margin:10px 0}.page-setting-delete-box .button-box{text-align:center}@media (max-width: 768px){.page-setting .setting-head{margin:32px 32px 0}.page-setting .setting-head .setting-titbox .setting-title .setting-more{display:flex;font-size:24px;width:42px;height:42px;align-items:center;justify-content:center}.page-setting .setting-box{position:relative}.page-setting .setting-box.show768-box .setting-menu{transform:translate(0)}.page-setting .setting-box .setting-menu{position:absolute;top:0;left:0;width:100%;height:100%;z-index:9;background-color:#fff;transform:translate(-120%)}.page-setting .setting-box .setting-menu>ul{padding:12px 32px}.page-setting .setting-box .setting-menu>ul>li{padding:0 8px}.page-setting .setting-box .setting-menu>ul>li:hover{background-color:transparent}.page-setting .setting-box .setting-content .setting-content-title{display:none}.page-setting .setting-item .setting-footer{display:flex;align-items:center;justify-content:center}.page-setting .setting-item .setting-footer>button{flex:1;height:38px;line-height:36px}}.page-index{position:absolute;top:0;left:0;width:100%;height:100%;overflow:auto}.page-index .page-warp{max-width:1920px;margin:0 auto}.page-index .page-warp .page-header{width:100%;background:#84C56A;position:relative;padding-bottom:40px}.page-index .page-warp .page-header .header-nav{max-width:1200px;height:72px;margin:auto;display:flex;justify-content:space-between}.page-index .page-warp .page-header .header-nav .header-nav-box{display:flex;align-items:center;padding-left:20px;color:#fff;font-weight:400;position:relative}.page-index .page-warp .page-header .header-nav .header-nav-box .logo{width:143px;height:36px;background:url(/js/build/logo-index.8ca3b7a6.svg) no-repeat center center;background-size:contain}.page-index .page-warp .page-header .header-nav .header-nav-box .header-right-pro{margin-left:28px;padding:0 10px;font-size:12px;color:#f6ca9d;background:#1d1e23;background:linear-gradient(90deg,#1d1e23,#3f4045);border:0}.page-index .page-warp .page-header .header-nav .header-nav-box .header-right-github{margin-left:28px;font-size:24px;display:flex;align-items:center;cursor:pointer;color:#fff}.page-index .page-warp .page-header .header-nav .header-nav-box .header-right-uplog{margin-left:28px;font-size:16px;cursor:pointer}.page-index .page-warp .page-header .header-nav .header-nav-box .header-right-1{margin-left:28px;display:flex}.page-index .page-warp .page-header .header-nav .header-nav-box .header-right-1 .header-right-1-dropdown{color:#fff;font-size:16px}.page-index .page-warp .page-header .header-nav .header-nav-box .header-right-2{font-size:16px;margin-left:28px;cursor:pointer}.page-index .page-warp .page-header .header-nav .header-nav-box .header-right-2 .header-right-2-dropdown{color:#fff;font-size:16px}.page-index .page-warp .page-header .header-nav .header-nav-box .header-right-3{font-size:16px;margin:0 28px;cursor:pointer}.page-index .page-warp .page-header .header-nav .header-nav-box .header-right-4{font-size:16px;min-width:100px;height:36px;background:#ffa25a;border-radius:4px;text-align:center;line-height:36px;cursor:pointer;padding:0 10px}.page-index .page-warp .page-header .header-nav .header-nav-box .header-right-5{margin-left:28px}.page-index .page-warp .page-header .header-nav .header-nav-boxs{justify-content:flex-end;padding-right:20px}.page-index .page-warp .page-header .header-nav .header-nav-boxs .header-nav-more{color:#fff;font-size:36px}.page-index .page-warp .page-header .header-nav .header-nav-boxs .header-nav-dropdown-item{display:flex;align-items:center;justify-content:space-between}.page-index .page-warp .page-header .header-content{max-width:1200px;margin:0 auto}.page-index .page-warp .page-header .header-content .header-title{font-size:44px;font-weight:500;color:#fff;line-height:67px;text-align:center}.page-index .page-warp .page-header .header-content .header-title-one{font-size:48px;margin-top:40px}.page-index .page-warp .page-header .header-content .header-tips{font-size:22px;font-weight:400;color:#fff;line-height:36px;text-align:center;padding:0 30px;margin:22px auto 0;max-width:88%}.page-index .page-warp .page-header .header-content .login-buttom{width:150px;height:48px;background:#ffa25a;border-radius:8px;font-size:18px;font-weight:500;color:#fff;line-height:48px;text-align:center;margin:34px auto 0;cursor:pointer}.page-index .page-warp .page-header-bottom{position:relative;background:#FFFFFF url(/js/build/bg-bottom.06fd4b4e.svg) no-repeat;background-size:100%;margin-bottom:160px;margin-top:-2px}.page-index .page-warp .page-header-bottom .page-header-bottoms{max-width:1200px;margin:auto;top:0;left:0;right:0}.page-index .page-warp .page-header-bottom .page-header-bottoms img{display:block;margin:auto;width:92%}.page-index .page-warp .page-main{max-width:1200px;margin:auto}.page-index .page-warp .page-main .page-main-row{margin-bottom:150px}.page-index .page-warp .page-main .page-main-rows{margin-bottom:140px}.page-index .page-warp .page-main .page-main-img img{width:100%}.page-index .page-warp .page-main .page-main-imgs img{display:block;width:90%;margin:auto}.page-index .page-warp .page-main .page-main-text{padding-left:60px;padding-top:120px}.page-index .page-warp .page-main .page-main-text h3{font-size:32px;font-weight:500;color:#303133;line-height:45px;margin-bottom:17px}.page-index .page-warp .page-main .page-main-text p{font-size:18px;font-weight:400;color:#828282;line-height:28px;padding-right:70px}.page-index .page-warp .page-main .page-main-texts{padding-top:40px}.page-index .page-warp .page-main .page-main-texts h3{display:flex;align-items:center;font-size:30px}.page-index .page-warp .page-main .page-main-texts h3 img{margin-right:10px}.page-index .page-warp .page-main .page-main-texts p{font-size:16px}.page-index .page-warp .page-footer .footer-service{width:100%;height:188px;background-color:#ffa25a;position:relative}.page-index .page-warp .page-footer .footer-service .footer-bg-box{overflow:hidden;width:100%;height:188px}.page-index .page-warp .page-footer .footer-service .footer-bg-box .box-title{height:45px;font-size:16px;font-weight:500;color:#fff;line-height:45px;text-align:center;margin:33px 0 22px}.page-index .page-warp .page-footer .footer-service .footer-bg-box .buttom-box{display:flex;justify-content:center}.page-index .page-warp .page-footer .footer-service .footer-bg-box .buttom-box .login-btn{width:150px;height:48px;background:#ffffff;border-radius:8px;font-size:14px;font-weight:500;color:#ffa25a;line-height:48px;text-align:center;margin-right:20px;cursor:pointer}.page-index .page-warp .page-footer .footer-service .footer-bg-box .buttom-box .reg-btn{width:150px;height:48px;border-radius:8px;border:1px solid #ffffff;font-size:14px;font-weight:500;color:#fff;line-height:48px;text-align:center;cursor:pointer}.page-index .page-warp .page-footer .footer-copyright{background:#fff;color:#828282;font-size:12px;font-weight:400;padding:20px;line-height:20px;text-align:center;width:100%}@media screen and (max-width: 1440px){.page-index .page-warp .page-header .header-content .header-title{font-size:34px;line-height:60px}.page-index .page-warp .page-header .header-content .header-title-one{font-size:40px}.page-index .page-warp .page-header .header-content .header-tips{font-size:20px;padding:0 20px}.page-index .page-warp .page-header-bottom{margin-bottom:80px}.page-index .page-warp .page-main .page-main-text{padding-left:20px;padding-top:80px}.page-index .page-warp .page-main .page-main-text p{padding-right:20px}.page-index .page-warp .page-main .page-main-texts h3{font-size:24px}.page-index .page-warp .page-main .page-main-texts h3 img{width:24px}.page-index .page-warp .page-main .page-main-texts p{font-size:14px}}@media screen and (max-width: 468px){.page-index .page-warp .page-header .header-content .header-title{font-size:24px;line-height:38px}.page-index .page-warp .page-header .header-content .header-title-one{font-size:28px}.page-index .page-warp .page-header .header-content .header-tips{font-size:16px;line-height:26px}}.chat-input-box{display:inline-block;width:100%}.chat-input-box.record-ready .chat-input-wrapper .chat-toolbar>li.chat-send:before{transition:all .6s ease;transform:translate(-50%,-50%) scale(2)}.chat-input-box.record-progress .chat-input-wrapper .ql-container{opacity:0}.chat-input-box.record-progress .chat-input-wrapper .chat-toolbar>li.chat-send:before{transition:all .3s ease;transform:translate(-50%,-50%) scale(2.5)}.chat-input-box.record-progress .chat-input-wrapper .chat-toolbar>li.chat-record-recwave{visibility:visible;opacity:1}.chat-input-box.show-more .chat-input-wrapper .chat-cover,.chat-input-box.show-emoji .chat-input-wrapper .chat-cover{display:block}.chat-input-box .chat-input-quick-emoji{position:absolute;top:4px;right:24px;width:0;height:0;visibility:hidden;z-index:-1}.chat-input-box .chat-input-wrapper{position:relative;display:inline-block;vertical-align:middle;width:100%}.chat-input-box .chat-input-wrapper .chat-reply{position:relative;padding:0 48px 8px 24px}.chat-input-box .chat-input-wrapper .chat-reply:after{content:"";position:absolute;top:0;left:12px;bottom:8px;width:3px;border-radius:2px;transform:scaleX(.8);transform-origin:left center;background-color:#84c56ab3}.chat-input-box .chat-input-wrapper .chat-reply .common-avatar{font-weight:500;font-size:13px;color:#84c56a}.chat-input-box .chat-input-wrapper .chat-reply .reply-desc{font-size:13px;word-break:break-all;text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.chat-input-box .chat-input-wrapper .chat-reply i.taskfont{position:absolute;right:0;top:0;bottom:8px;z-index:1;font-size:16px;width:48px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:transform .3s ease}.chat-input-box .chat-input-wrapper .chat-reply i.taskfont:hover{transform:rotate(-90deg);color:#303133}.chat-input-box .chat-input-wrapper .ql-container{display:block;float:left;width:auto;max-width:100%;min-width:calc(100% - 170px);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"}.chat-input-box .chat-input-wrapper .ql-container .ql-editor{font-size:14px;max-height:200px;padding:0;margin:4px 7px;line-height:22px}.chat-input-box .chat-input-wrapper .ql-container .ql-editor img{max-width:150px;max-height:150px}.chat-input-box .chat-input-wrapper .ql-container .ql-editor ol,.chat-input-box .chat-input-wrapper .ql-container .ql-editor ul{padding-left:0}.chat-input-box .chat-input-wrapper .ql-container .ql-editor ol li:before,.chat-input-box .chat-input-wrapper .ql-container .ql-editor ul li:before{color:#08f;text-align:left;margin-right:.2em}.chat-input-box .chat-input-wrapper .ql-container .ql-editor ul li:before{font-weight:900}.chat-input-box .chat-input-wrapper .ql-container .ql-editor ol li:before{width:auto;min-width:1.2em}.chat-input-box .chat-input-wrapper .ql-container .ql-editor a:before,.chat-input-box .chat-input-wrapper .ql-container .ql-editor a:after{display:none}.chat-input-box .chat-input-wrapper .ql-container .ql-editor.ql-blank:before{left:7px;right:7px;color:#ccc;font-style:normal;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.chat-input-box .chat-input-wrapper .ql-container .ql-editor .mention{-webkit-user-select:auto}.chat-input-box .chat-input-wrapper .ql-bubble .ql-tooltip{z-index:1}.chat-input-box .chat-input-wrapper .chat-toolbar{float:right;display:flex;align-items:center;justify-content:flex-end;-webkit-user-select:none;-moz-user-select:none;user-select:none}.chat-input-box .chat-input-wrapper .chat-toolbar>li{width:30px;height:30px;display:flex;align-items:center;justify-content:center;cursor:pointer}.chat-input-box .chat-input-wrapper .chat-toolbar>li .taskfont{display:inline-block;font-size:20px;line-height:30px}.chat-input-box .chat-input-wrapper .chat-toolbar>li .taskfont.disabled{opacity:.5}.chat-input-box .chat-input-wrapper .chat-toolbar>li.chat-send{width:48px;position:relative}.chat-input-box .chat-input-wrapper .chat-toolbar>li.chat-send:before{content:"";position:absolute;top:50%;left:50%;z-index:2;transform:translate(-50%,-50%) scale(1);border-radius:50%;background-color:#84c56a;width:36px;height:36px;transition:all .3s ease;opacity:1}.chat-input-box .chat-input-wrapper .chat-toolbar>li.chat-send .el-tooltip{height:30px}.chat-input-box .chat-input-wrapper .chat-toolbar>li.chat-send .taskfont{position:absolute;top:50%;left:50%;z-index:3;transform:translate(-50%,-50%) scale(1);transition:all .3s ease;color:#fff}.chat-input-box .chat-input-wrapper .chat-toolbar>li.chat-send .chat-load{position:absolute;top:50%;left:50%;z-index:3;transform:translate(-50%,-50%) scale(1);display:flex;align-items:center;justify-content:center}.chat-input-box .chat-input-wrapper .chat-toolbar>li.chat-send .chat-load .common-loading{width:20px;height:20px}.chat-input-box .chat-input-wrapper .chat-toolbar>li.chat-record-recwave{position:absolute;top:0;left:0;z-index:1;height:100%;width:100%;background-color:#fff;flex-direction:column;align-items:center;justify-content:center;pointer-events:none;visibility:hidden;opacity:0}.chat-input-box .chat-input-wrapper .chat-toolbar>li.chat-record-recwave>div{flex:1;width:100%;display:flex;flex-direction:column;justify-content:flex-end}.chat-input-box .chat-input-wrapper .chat-cover{display:none;position:absolute;top:0;left:0;right:48px;bottom:0;z-index:4}.chat-input-box .chat-emoji-wrapper .chat-emoji-box>ul{width:auto;padding:8px 2px}.chat-input-box .chat-emoji-wrapper .chat-emoji-box>ul:after{content:"";flex:auto}.chat-input-box .chat-emoji-wrapper .chat-emoji-box>ul>li>img{transition:none}.chat-input-box .chat-emoji-wrapper .chat-emoji-box>ul>li:hover>img{transform:none}.chat-input-box .chat-emoji-wrapper .chat-emoji-menu{width:100%;padding:3px 0;border-radius:8px;box-sizing:content-box}.chat-input-box .chat-emoji-wrapper .chat-emoji-menu>li{position:relative}.chat-input-box .chat-emoji-wrapper .chat-emoji-menu>li:before{display:none;content:"";position:absolute;top:50%;left:50%;width:36px;height:36px;border-radius:8px;transform:translate(-50%,-50%);background-color:#fff;z-index:1}.chat-input-box .chat-emoji-wrapper .chat-emoji-menu>li>span,.chat-input-box .chat-emoji-wrapper .chat-emoji-menu>li>img,.chat-input-box .chat-emoji-wrapper .chat-emoji-menu>li>i{position:static;z-index:2}.chat-input-box .chat-emoji-wrapper .chat-emoji-menu>li.active{background-color:transparent}.chat-input-box .chat-emoji-wrapper .chat-emoji-menu>li.active:before{display:block}.chat-emoji-wrapper{display:flex;flex-direction:column}.chat-emoji-wrapper .chat-emoji-emosearch{flex-shrink:0;padding:8px 8px 0}.chat-emoji-wrapper .chat-emoji-box{display:flex;flex-direction:column;height:280px}.chat-emoji-wrapper .chat-emoji-box>ul{flex:1;width:360px;height:0;display:grid;justify-content:space-between;grid-template-columns:repeat(auto-fill,40px);padding:8px;flex-wrap:wrap;overflow-x:hidden;word-break:break-all;box-sizing:content-box;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"}.chat-emoji-wrapper .chat-emoji-box>ul>li{width:40px;height:40px;line-height:40px;font-size:22px;text-align:center;display:inline-block;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.chat-emoji-wrapper .chat-emoji-box>ul>li>img{max-width:100%;max-height:100%;pointer-events:none;-webkit-touch-callout:none;transition:transform .3s}.chat-emoji-wrapper .chat-emoji-box>ul>li:hover>img{transform:scale(1.4)}.chat-emoji-wrapper .chat-emoji-box>ul.emoji>li:active{background-color:#eee;border-radius:8px}.chat-emoji-wrapper .chat-emoji-box>ul.emosearch,.chat-emoji-wrapper .chat-emoji-box>ul.emoticon{grid-template-columns:repeat(auto-fill,72px)}.chat-emoji-wrapper .chat-emoji-box>ul.emosearch>li,.chat-emoji-wrapper .chat-emoji-box>ul.emoticon>li{width:72px;height:72px;padding:8px}.chat-emoji-wrapper .chat-emoji-menu{width:376px;height:40px;line-height:40px;background-color:#f2f4f7;display:flex;align-items:center;overflow:auto}.chat-emoji-wrapper .chat-emoji-menu::-webkit-scrollbar{display:none}.chat-emoji-wrapper .chat-emoji-menu>li{list-style:none;cursor:pointer;display:flex;align-items:center;height:100%}.chat-emoji-wrapper .chat-emoji-menu>li.active{background-color:#fff}.chat-emoji-wrapper .chat-emoji-menu>li>span{padding:0 13px;font-size:22px}.chat-emoji-wrapper .chat-emoji-menu>li>i{width:48px;font-size:18px;text-align:center}.chat-emoji-wrapper .chat-emoji-menu>li>img{width:24px;height:24px;padding:0 12px;box-sizing:content-box}.chat-input-emoji-popover{padding:0;overflow:hidden}.chat-quick-emoji-popover{padding:0;overflow:hidden;min-width:100px}.chat-quick-emoji-wrapper{display:flex}.chat-quick-emoji-wrapper>li{width:90px;height:90px;display:flex;align-items:center;justify-content:center;cursor:pointer}.chat-quick-emoji-wrapper>li>img{width:72%;height:72%}.chat-input-more-popover{min-width:100px;padding:8px}.chat-input-more-popover .chat-input-popover-item{display:flex;align-items:center;font-size:14px;cursor:pointer;line-height:36px;padding:0 8px;border-radius:4px}.chat-input-more-popover .chat-input-popover-item:hover{background-color:#ecf5ff}.chat-input-more-popover .chat-input-popover-item .taskfont{font-size:20px;margin-right:8px}.chat-input-record-transfer{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);z-index:9999;padding:14px 26px;color:#303133;background-color:#fff;border-radius:8px;box-shadow:0 4px 12px #0003;display:flex;flex-direction:column;align-items:center;justify-content:center;transition:all .3s ease}.chat-input-record-transfer .record-duration{font-size:20px;line-height:30px}.chat-input-record-transfer .record-loading{display:flex;align-items:center;justify-content:center;height:30px}.chat-input-record-transfer .record-loading .common-loading{width:24px;height:24px;margin:0;padding:0}.chat-input-record-transfer .record-cancel{margin-top:6px;opacity:.6}.chat-input-record-transfer.cancel{background-color:#ff6565;color:#fff}.ql-mention-list-container{width:auto;min-width:220px;max-width:280px;max-height:360px;overflow-y:overlay}.ql-mention-list-container.task-mention .ql-mention-list>li:first-child{margin-top:0}.ql-mention-list-container.task-mention .ql-mention-list-item{line-height:36px}.ql-mention-list-container.task-mention .ql-mention-list-item .mention-item-disabled{padding:8px 4px 0}.ql-mention-list-container::-webkit-scrollbar{width:0;height:0}.ql-mention-list-container::-webkit-scrollbar-thumb{border:3px solid transparent;background-color:#0003;background-clip:content-box;border-radius:12px}.ql-mention-list-container::-webkit-scrollbar-thumb:hover{border:2px solid transparent;background-color:#0003}.ql-mention-list-container::-webkit-scrollbar-thumb:active{border:2px solid transparent;background-color:#0006}.ql-mention-list-container::-webkit-scrollbar-track{border-radius:12px;background:rgba(0,0,0,0)}.ql-mention-list-container:hover::-webkit-scrollbar{width:12px;height:12px}.ql-mention-list-container .ql-mention-list>li:first-child{margin-top:8px}.ql-mention-list-container .ql-mention-list>li:last-child{margin-bottom:8px}.ql-mention-list-container .ql-mention-list-item{padding:0 8px;display:flex;align-items:center;margin:0 8px}.ql-mention-list-container .ql-mention-list-item.selected{border-radius:4px}.ql-mention-list-container .ql-mention-list-item .mention-item-at{flex-shrink:0;width:28px;height:28px;line-height:28px;border-radius:50%;text-align:center;color:#fff;background-color:#84c56a;overflow:hidden}.ql-mention-list-container .ql-mention-list-item .mention-item-img{flex-shrink:0;position:relative;display:flex;align-items:center;justify-content:center}.ql-mention-list-container .ql-mention-list-item .mention-item-img>img{width:28px;height:28px;border-radius:50%;overflow:hidden}.ql-mention-list-container .ql-mention-list-item .mention-item-img>em{position:absolute;right:0;bottom:0;width:8px;height:8px;border-radius:50%;background-color:#f90;border:1px solid #ffffff;transform-origin:right bottom;z-index:1}.ql-mention-list-container .ql-mention-list-item .mention-item-img.online>em{background-color:#84c56a}.ql-mention-list-container .ql-mention-list-item .mention-item-bot{font-size:16px;margin-left:8px;margin-right:-5px;color:#84c56a}.ql-mention-list-container .ql-mention-list-item .mention-item-name{padding:0 8px;font-size:14px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ql-mention-list-container .ql-mention-list-item .mention-item-tip{flex:1;text-align:right;color:#8f8f8e;font-size:12px;font-style:normal;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ql-mention-list-container .ql-mention-list-item .mention-item-disabled{flex-shrink:0;color:#aaa;font-size:12px;padding:0 4px;line-height:40px}@media (max-width: 768px){.chat-input-box .chat-input-quick-emoji{right:10px}.chat-input-box .chat-input-wrapper{padding-left:6px;padding-right:6px;background-color:#fff}.chat-input-box .chat-input-wrapper .ql-container .ql-editor{font-size:16px;color:#303133}.chat-input-box .chat-emoji-wrapper{margin-top:8px;background-color:#fff}.chat-input-box .chat-emoji-wrapper .chat-emoji-box{height:246px}.chat-input-box .chat-emoji-wrapper .chat-emoji-box>ul{grid-template-columns:repeat(auto-fill,50px)}.chat-input-box .chat-emoji-wrapper .chat-emoji-box>ul>li{width:50px;height:50px;line-height:50px;font-size:28px}.chat-input-box .chat-emoji-wrapper .chat-emoji-box>ul.emosearch,.chat-input-box .chat-emoji-wrapper .chat-emoji-box>ul.emoticon{grid-template-columns:repeat(auto-fill,80px)}.chat-input-box .chat-emoji-wrapper .chat-emoji-box>ul.emosearch>li,.chat-input-box .chat-emoji-wrapper .chat-emoji-box>ul.emoticon>li{width:80px;height:80px;padding:8px}.chat-input-box .chat-emoji-wrapper .chat-emoji-menu{border-radius:0;background-color:#f8f8f8;padding:4px;width:calc(100% - 8px)}.chat-input-box .chat-emoji-wrapper .chat-emoji-menu>li.active:before{background-color:#e1e1e1}}.dialog-group-info{display:flex;flex-direction:column;position:absolute;top:10px;left:0;right:0;bottom:0}.dialog-group-info .group-info-title{color:#b7b1b1;margin:18px 24px 0}.dialog-group-info .group-info-value{margin:4px 24px 0;line-height:34px}.dialog-group-info .group-info-value .quick-text{padding:6px 0;height:auto;line-height:20px;box-sizing:content-box;overflow:visible;white-space:normal}.dialog-group-info .group-info-value .quick-input{display:flex;flex-direction:column}.dialog-group-info .group-info-search{margin:24px 24px 0}.dialog-group-info .group-info-button{display:flex;align-items:center;justify-content:center;margin:18px 24px;cursor:pointer}.dialog-group-info .group-info-button>button{margin:0 8px}.dialog-group-info .group-info-user{flex:1;overflow:auto;margin-top:12px;padding:0 12px}.dialog-group-info .group-info-user>ul>li{display:flex;align-items:center;list-style:none;padding:12px;height:56px;border-radius:6px}.dialog-group-info .group-info-user>ul>li:hover{background-color:#9093991a}.dialog-group-info .group-info-user>ul>li:hover .user-exit{opacity:1;transform:translate(0)}@media (max-width: 768px){.dialog-group-info .group-info-user>ul>li:hover{background-color:transparent}}.dialog-group-info .group-info-user>ul>li.no{justify-content:center;color:#999}.dialog-group-info .group-info-user>ul>li.no:hover{background-color:transparent}.dialog-group-info .group-info-user>ul>li.no .common-loading{width:16px;height:16px}.dialog-group-info .group-info-user>ul>li .common-avatar{width:0;flex:1}.dialog-group-info .group-info-user>ul>li .common-avatar .avatar-name{margin-left:8px}.dialog-group-info .group-info-user>ul>li .user-tag{margin-left:4px;height:22px;line-height:22px;padding:0 6px;border-radius:3px;transform:scale(.9);transform-origin:right center;color:#fff;background-color:#84c56a}.dialog-group-info .group-info-user>ul>li .user-exit{display:flex;align-items:center;justify-content:flex-end;cursor:pointer;height:100%;width:32px;opacity:0;transform:translate(50%);transition:all .2s}@media (max-width: 768px){.dialog-group-info .group-info-user>ul>li .user-exit{opacity:1;transform:translate(0)}}.dialog-group-info .group-info-user>ul>li .user-exit:hover>i{color:#606266}.dialog-group-info .group-info-user>ul>li .user-exit>i{display:flex;align-items:center;justify-content:center;width:22px;height:22px;font-size:12px;color:#909399;border:1px solid #dddddd;border-radius:50%}.dialog-respond{display:flex;flex-direction:column;position:absolute;top:0;left:0;right:0;bottom:0}.dialog-respond .respond-title{text-align:center;height:56px;line-height:56px;border-bottom:1px solid #eeeeee;font-size:16px;font-weight:500;display:flex;align-items:center;justify-content:center}.dialog-respond .respond-title>em{font-style:normal;font-size:22px;margin-right:8px}.dialog-respond .respond-user{flex:1;overflow:auto;padding:6px}.dialog-respond .respond-user>ul>li{display:flex;align-items:center;list-style:none;padding:12px;border-radius:6px}.dialog-respond .respond-user>ul>li:hover{background-color:#9093991a}@media (max-width: 768px){.dialog-respond .respond-user>ul>li:hover{background-color:transparent}}.dialog-respond .respond-user>ul>li .common-avatar{width:0;flex:1}.dialog-respond .respond-user>ul>li .common-avatar .avatar-name{margin-left:8px}.dialog-wrapper-dialogids .ivu-select-arrow{display:none!important}.dialog-wrapper-forward .forward-option{max-width:100%;display:flex;align-items:center}.dialog-wrapper-forward .forward-option .forward-avatar{display:flex;align-items:center}.dialog-wrapper-forward .forward-option .forward-avatar .icon-avatar{width:26px;height:26px;flex-grow:0;flex-shrink:0;display:flex;align-items:center;justify-content:center;border-radius:50%;font-size:18px;background-color:#61b2f9;color:#fff}.dialog-wrapper-forward .forward-option .forward-avatar .icon-avatar.department{background-color:#5bc7b0}.dialog-wrapper-forward .forward-option .forward-avatar .icon-avatar.project{background-color:#6e99eb}.dialog-wrapper-forward .forward-option .forward-avatar .icon-avatar.task{background-color:#9b96df;font-size:16px}.dialog-wrapper-forward .forward-option .forward-name{margin-left:10px;flex:1;width:0;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.dialog-wrapper-forward .ivu-select-item.ivu-select-item-selected:after{top:8px}.dialog-wrapper-forward .forward-drop-prepend{text-align:center;color:#c5c8ce;line-height:20px;padding-bottom:5px;font-size:12px;border-bottom:1px solid #f1f1f1;margin-bottom:5px}.dialog-wrapper{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;flex-direction:column;background-color:#fff;z-index:1}.dialog-wrapper.record-ready{overflow:hidden}.dialog-wrapper.drawer-list{border-radius:18px 0 0 18px;overflow:hidden}.dialog-wrapper.drawer-list .dialog-nav .drawer-title{text-align:center;height:56px;line-height:56px;border-bottom:1px solid #eeeeee;font-size:16px;font-weight:500}.dialog-wrapper.drawer-list .dialog-scroller{padding:16px 20px 0}.dialog-wrapper.drawer-list .dialog-scroller .reply-item{border-bottom:1px solid #eeeeee;margin-bottom:16px}.dialog-wrapper.drawer-list .dialog-scroller .original-button{display:block;margin:0 auto;box-shadow:none}.dialog-wrapper.drawer-list .todo-button{flex-shrink:0;display:flex;align-items:center;justify-content:center;margin:18px 24px;cursor:pointer}.dialog-wrapper.drawer-list .todo-button>button{margin:0 8px}.dialog-wrapper .vue-recycle-scroller.direction-vertical:not(.page-mode){overflow-y:overlay}.dialog-wrapper .dialog-nav{width:100%}.dialog-wrapper .dialog-nav .nav-wrapper{display:flex;align-items:center;padding:0 22px;height:68px;position:relative}.dialog-wrapper .dialog-nav .nav-wrapper:before{content:"";position:absolute;left:0;bottom:0;width:100%;height:1px;background-color:#f4f5f5}.dialog-wrapper .dialog-nav .nav-wrapper.completed:after{content:"\f373";font-family:Ionicons,serif;pointer-events:none;position:absolute;top:50%;right:52px;transform:translateY(-50%);font-size:40px;color:#19be6b;opacity:.2;z-index:1}.dialog-wrapper .dialog-nav .nav-wrapper.completed .dialog-title{padding-right:52px}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block{flex:1;width:0;display:flex;align-items:center}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-avatar{flex-shrink:0;margin-right:12px}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-avatar .img-avatar,.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-avatar .user-avatar,.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-avatar .icon-avatar{width:42px;height:42px;margin-right:2px;flex-grow:0;flex-shrink:0}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-avatar .img-avatar{display:flex;align-items:center;justify-content:center}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-avatar .img-avatar>img{width:100%;height:100%}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-avatar .icon-avatar{display:flex;align-items:center;justify-content:center;border-radius:50%;font-size:26px;background-color:#61b2f9;color:#fff}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-avatar .icon-avatar.department{background-color:#5bc7b0}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-avatar .icon-avatar.project{background-color:#6e99eb}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-avatar .icon-avatar.task{background-color:#9b96df;font-size:24px}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title{flex:1;width:0;display:flex;flex-direction:column;justify-content:center}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .main-title{display:flex;align-items:center;line-height:22px;max-width:100%}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .main-title .ivu-tag{flex-shrink:0;margin:0 6px 0 0;padding:0 5px;display:flex;align-items:center}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .main-title .ivu-tag.ivu-tag-success{padding:0 6px}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .main-title .ivu-tag.after{margin:0 0 0 6px}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .main-title .ivu-tag.pointer{cursor:pointer}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .main-title .ivu-icon{font-size:18px;margin-right:6px}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .main-title .ivu-icon.completed{color:#84c56a}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .main-title>h2{font-size:17px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .main-title>em{display:inline-block;flex-shrink:0;font-style:normal;font-size:17px;font-weight:500;margin-left:6px;cursor:pointer}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .main-title .load{flex-shrink:0;display:flex;align-items:center;justify-content:center;margin-left:6px}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .main-title .load .common-loading{width:16px;height:16px}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .title-desc{display:none;align-items:center}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .title-desc>li{font-size:12px;list-style:none;line-height:16px;padding-top:2px;color:#aaa;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center;transform:scale(.9)}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .title-desc>li.online{color:#84c56a}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .title-tags{display:flex;align-items:center}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .title-tags>li{font-size:12px;list-style:none;line-height:24px;margin-top:4px;margin-right:6px;margin-bottom:-6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;display:flex;align-items:center;padding:0 6px;color:#303133;border-radius:5px}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .title-tags>li>i{flex-shrink:0;width:14px;height:14px;line-height:14px;font-size:14px;margin-right:4px;background-repeat:no-repeat;background-size:contain;background-position:center center}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .title-tags>li>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .title-tags>li.file i{background-image:url(/js/build/file.3e98845a.svg)}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .title-tags>li.image i{background-image:url(/js/build/image.d3eec0cd.svg)}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .title-tags>li.link i{background-image:url(/js/build/link.5b1cd276.svg)}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .title-tags>li.msg i{background-image:url(/js/build/msg.d43597ba.svg)}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .title-tags>li.tag i{background-image:url(/js/build/tag.d5e85a3b.svg)}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .title-tags>li.project i{background-image:url(/js/build/project.91434d04.svg)}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .title-tags>li.task i{background-image:url(/js/build/task.19dff412.svg)}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .title-tags>li.active{font-weight:500;color:#84c56a;background-color:#84c56a2e}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-back,.dialog-wrapper .dialog-nav .nav-wrapper .dialog-menu{font-size:22px;color:#606266}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-menu{margin-right:-22px}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-menu .dialog-menu-icon{cursor:pointer;margin:0 22px;font-size:22px;color:#606266}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-back{display:none;cursor:pointer}.dialog-wrapper .dialog-scroller{flex:1;position:relative;padding:16px 32px 0}.dialog-wrapper .dialog-scroller .dialog-item{display:flex;flex-direction:row;align-items:flex-start;list-style:none;padding-bottom:16px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-tag,.dialog-wrapper .dialog-scroller .dialog-item .dialog-todo,.dialog-wrapper .dialog-scroller .dialog-item .dialog-notice{font-size:12px;max-width:80%;margin:0 auto;padding:4px 8px;border-radius:8px;color:#909399;background-color:#efefef;word-wrap:break-word}.dialog-wrapper .dialog-scroller .dialog-item .dialog-tag{cursor:pointer}.dialog-wrapper .dialog-scroller .dialog-item .dialog-tag .tag-user{display:inline-block}.dialog-wrapper .dialog-scroller .dialog-item .dialog-todo{cursor:pointer}.dialog-wrapper .dialog-scroller .dialog-item .dialog-todo .todo-users{display:inline-block}.dialog-wrapper .dialog-scroller .dialog-item .dialog-todo .todo-users>div+div{padding-left:8px;position:relative}.dialog-wrapper .dialog-scroller .dialog-item .dialog-todo .todo-users>div+div:before{content:"\3001";position:absolute;left:0;bottom:0}.dialog-wrapper .dialog-scroller .dialog-item .dialog-todo .todo-user{display:inline-block}.dialog-wrapper .dialog-scroller .dialog-item .dialog-avatar{position:relative;margin-bottom:20px;flex-shrink:0;width:30px;height:30px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view{display:flex;flex-direction:column;align-items:flex-start;margin:0 0 0 8px;position:relative}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view.text{max-width:70%}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view.operate-action .dialog-head{box-shadow:0 1px 6px #0003}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-username{max-width:100%;height:22px;margin-bottom:6px;opacity:.8}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head{display:flex;flex-direction:column;background-color:#f4f5f7;padding:8px;min-width:32px;border-radius:2px 8px 8px;transition:box-shadow .3s ease}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head.transparent{background-color:transparent!important}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-reply{position:relative;padding-left:9px;margin-bottom:4px;cursor:pointer}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-reply:after{content:"";position:absolute;top:0;left:0;bottom:0;width:3px;border-radius:2px;transform:scaleX(.8);transform-origin:left center;background-color:#84c56ab3}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-reply .common-avatar{font-weight:500;font-size:13px;color:#84c56a}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-reply .reply-desc{font-size:13px;word-break:break-all;text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content{display:flex;align-items:flex-start;position:relative}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content.an-emoji .content-text>pre{font-size:72px;line-height:1}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content.two-emoji .content-text>pre{font-size:52px;line-height:1;letter-spacing:4px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content.three-emoji .content-text>pre{font-size:32px;line-height:1;letter-spacing:4px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text{color:#303133;padding:2px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre{display:block;margin:0;padding:0;line-height:20px;white-space:pre-wrap;word-wrap:break-word;word-break:break-word;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:14px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre a{color:#436ff6}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre ol li,.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre ul li{list-style-type:none}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre ol li:before,.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre ul li:before{display:inline-block;white-space:nowrap;width:1.2em;color:#08f;text-align:left;margin-right:.2em}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre ul li:before{content:"\2022";font-weight:900}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre ol li{counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;counter-increment:list-0}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre ol li:before{width:auto;min-width:1.2em;content:counter(list-0,decimal) ". "}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre blockquote{border-left:4px solid #ccc;margin-bottom:5px;margin-top:5px;padding-left:16px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre pre{white-space:pre-wrap;margin:5px 0;padding:5px 10px;border-radius:3px;background-color:#23241f;color:#f8f8f2;overflow:visible}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre img{cursor:pointer;max-width:220px;max-height:220px;vertical-align:bottom}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre img.emoticon{max-width:150px;max-height:150px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre .mention{color:#0bc037;background-color:transparent;-webkit-user-select:auto;-moz-user-select:auto;user-select:auto;padding:0;margin:0}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre .mention>span{margin:0}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre .mention.task{cursor:pointer}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre .mention.file,.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre .mention[data-denotation-char="~"]{color:#436ff6!important}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre .mention.me{font-size:13px;font-weight:600;padding:3px 4px;color:#fff;background-color:#84c56a}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-file.file{display:inline-block}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-file.file .file-box{background-color:#fff;display:flex;align-items:center;padding:10px 14px;border-radius:3px;width:220px;cursor:pointer}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-file.file .file-box .file-thumb{width:36px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-file.file .file-box .file-info{margin-left:12px;display:flex;flex-direction:column;justify-content:center}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-file.file .file-box .file-info .file-name{color:#303133;font-size:14px;line-height:18px;word-break:break-all;text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-file.file .file-box .file-info .file-size{padding-top:4px;color:#606266;font-size:14px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-file.img{padding:0;display:flex;max-width:220px;max-height:220px;border-radius:6px;overflow:hidden}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-file.img .file-img{display:flex;cursor:pointer}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-record{display:flex;color:#303133}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-record .dialog-record{display:flex;flex-direction:row-reverse;justify-content:flex-end;align-content:center;line-height:24px;cursor:pointer}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-record .dialog-record .record-time{padding:0 0 0 4px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-record .dialog-record .record-icon{transform:rotate(180deg) scale(.9)}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-record .dialog-record .record-icon:before{content:"\e793"}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-record .dialog-record.playing .record-icon:before{animation:record-playing 1s infinite}@keyframes record-playing{0%{content:"\e793"}33%{content:"\e791"}66%{content:"\e792"}to{content:"\e793"}}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-meeting{padding:4px 6px;color:#303133}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-meeting .dialog-meeting{min-width:220px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-meeting .dialog-meeting>li{list-style:none;display:flex;flex-direction:column;align-items:flex-start;margin-bottom:16px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-meeting .dialog-meeting>li.meeting-operation{margin-bottom:0;padding:12px 0 0;display:flex;flex-direction:row;align-items:center;font-size:12px;position:relative;cursor:pointer}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-meeting .dialog-meeting>li.meeting-operation:hover .taskfont{padding-left:4px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-meeting .dialog-meeting>li.meeting-operation:before{content:"";position:absolute;top:0;left:0;right:0;height:1px;background-color:#cccc;transform:scaleY(.5)}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-meeting .dialog-meeting>li.meeting-operation .taskfont{font-size:12px;padding-left:2px;transform:scale(.8);transition:all .2s}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-meeting .dialog-meeting>li>em{font-style:normal;font-weight:700;padding-bottom:2px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-loading{display:flex}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-loading>i{font-size:20px;margin:2px;color:#303133}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-loading .common-loading{width:20px;height:20px;margin:4px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-unknown{text-decoration:underline;color:#303133}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-emoji{display:flex;flex-wrap:wrap;align-items:center}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-emoji>li{list-style:none;display:flex;align-items:center;padding:2px 7px;margin-top:6px;margin-right:8px;border-radius:14px;line-height:22px;cursor:pointer;background-color:#e1e1e180}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-emoji>li.hasme{background-color:#e1e1e1}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-emoji>li .emoji-symbol{font-size:16px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-emoji>li .emoji-users{position:relative;padding-left:14px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-emoji>li .emoji-users:before{position:absolute;content:"";left:7px;top:6px;bottom:6px;width:1px;transform:scaleX(.5);background-color:#81818180}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-emoji>li .emoji-users>ul{display:flex;flex-wrap:wrap;align-items:center}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-emoji>li .emoji-users>ul>li{display:flex;align-items:center;list-style:none;color:#818181;font-size:12px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-emoji>li .emoji-users>ul>li.bold{font-weight:600}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-emoji>li .emoji-users>ul>li:after{content:"\3001"}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-emoji>li .emoji-users>ul>li:last-child:after{display:none}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-foot{display:flex;align-items:center;padding-top:4px;height:21px;line-height:1}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-foot .error{cursor:pointer;color:#ed4014}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-foot .error>i{font-size:14px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-foot .common-loading{margin:0 2px;width:10px;height:10px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-foot .popover-reference{position:absolute;left:65%;bottom:0;width:0;height:100%;pointer-events:none}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-foot .tag,.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-foot .todo,.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-foot .reply,.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-foot .modify{display:flex;align-items:center;margin-right:6px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-foot .tag>i,.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-foot .todo>i,.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-foot .reply>i,.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-foot .modify>i{font-size:13px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-foot .todo{position:relative;cursor:pointer}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-foot .todo .common-loading{margin:0 3px 0 0}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-foot .reply{font-size:12px;color:#84c56a;cursor:pointer}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-foot .reply>i{padding-right:2px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-foot .time{color:#bbb;font-size:12px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-foot .done{display:none;margin-left:4px;transform:scale(.9);font-size:12px;color:#84c56a}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-foot .percent{display:none;margin-left:4px;align-items:center;position:relative;cursor:pointer}.dialog-wrapper .dialog-scroller .dialog-item .dialog-action{align-self:flex-start;display:flex;align-items:flex-start;height:100%}.dialog-wrapper .dialog-scroller .dialog-item .dialog-action>*{margin:0 5px}.dialog-wrapper .dialog-scroller .dialog-item.loading{height:20px;box-sizing:content-box;align-items:center;justify-content:center}.dialog-wrapper .dialog-scroller .dialog-item.nothing{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);color:#909399;padding:0}.dialog-wrapper .dialog-scroller .dialog-item.self{flex-direction:row-reverse}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view{align-items:flex-end;margin:0 8px 0 0}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head{background-color:#84c56a;border-radius:8px 2px 8px 8px}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-reply,.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-reply .common-avatar,.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-reply .bot{color:#fff}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-reply:after{background-color:#fff}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-content .content-text{color:#fff}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-content .content-text>pre .mention{color:#303133}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-content .content-text>pre .mention.me{font-size:inherit;font-weight:inherit;padding:inherit;background-color:inherit}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-content .content-record{color:#fff}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-content .content-record .dialog-record{flex-direction:row}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-content .content-record .dialog-record .record-time{padding:0 4px 0 0}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-content .content-record .dialog-record .record-icon{transform:rotate(0) scale(.9)}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-content .content-meeting{color:#fff}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-content .content-meeting .dialog-meeting>li.meeting-operation:before{background-color:#fffc}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-content .content-loading>i{color:#fff}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-content .content-unknown{color:#fff}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-emoji>li{background-color:#5ba93c80}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-emoji>li.hasme{background-color:#5ba93c}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-emoji>li .emoji-users:before{background-color:#ffffff80}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-emoji>li .emoji-users>ul>li{color:#fff}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-foot .done{display:inline-block}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-foot .percent{display:flex}.dialog-wrapper .dialog-position{position:absolute;top:100px;right:0;z-index:1;display:flex;align-items:center;justify-content:flex-end}.dialog-wrapper .dialog-position .position-label{display:flex;align-items:center;justify-content:center;padding:5px 10px;border-radius:18px 0 0 18px;color:#fff;background-color:#84c56a;cursor:pointer}.dialog-wrapper .dialog-position .position-label>i{margin-right:4px;width:14px;height:14px;font-size:14px;line-height:14px}.dialog-wrapper .dialog-footer{position:relative;padding:0 24px;margin-bottom:16px}.dialog-wrapper .dialog-footer .dialog-newmsg,.dialog-wrapper .dialog-footer .dialog-goto{position:absolute;right:30px;color:#fff;background-color:#555;cursor:pointer;z-index:2;transition:all .2s;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none;opacity:0;transform:scale(0)}.dialog-wrapper .dialog-footer .dialog-newmsg{display:block;top:-44px;height:30px;line-height:30px;font-size:12px;padding:0 12px;border-radius:16px}.dialog-wrapper .dialog-footer .dialog-goto{display:flex;align-content:center;justify-content:center;color:#606266;background-color:#fff;border:1px solid #eeeeee;box-shadow:0 4px 8px #60626633;top:-48px;width:40px;height:40px;line-height:38px;border-radius:50%}.dialog-wrapper .dialog-footer .dialog-goto .taskfont{font-size:24px}.dialog-wrapper .dialog-footer .chat-upload{display:none;width:0;height:0;overflow:hidden}.dialog-wrapper .dialog-footer .chat-todo{display:flex;align-items:center;padding:8px 0}.dialog-wrapper .dialog-footer .chat-todo .todo-label{flex-shrink:0;padding-right:8px}.dialog-wrapper .dialog-footer .chat-todo>ul{flex:1;display:flex;align-items:center;overflow-x:auto}.dialog-wrapper .dialog-footer .chat-todo>ul>li{flex-shrink:0;list-style:none;margin-right:8px;background-color:#f0f1f3;padding:0 12px;border-radius:13px;line-height:26px;font-size:13px;cursor:pointer;display:flex;align-items:center}.dialog-wrapper .dialog-footer .chat-todo>ul>li .todo-desc{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dialog-wrapper .dialog-footer .chat-mute{color:#909399;background-color:#f4f5f7;padding:8px 12px;border-radius:10px;text-align:center}.dialog-wrapper .dialog-footer .chat-input-box .chat-input-wrapper{background-color:#f4f5f7;padding:8px 2px;border-radius:10px}.dialog-wrapper .dialog-footer .chat-input-box .chat-input-wrapper .ql-container .ql-editor{margin:4px 12px}.dialog-wrapper .dialog-footer .chat-input-box .chat-input-wrapper .ql-container .ql-editor.ql-blank:before{left:12px;right:12px}.dialog-wrapper .dialog-footer.newmsg .dialog-newmsg,.dialog-wrapper .dialog-footer.goto .dialog-goto{pointer-events:auto;opacity:1;transform:scale(1)}.dialog-wrapper .drag-over{position:absolute;top:0;left:0;right:0;bottom:0;z-index:3;background-color:#ffffffc7;display:flex;align-items:center;justify-content:center}.dialog-wrapper .drag-over:before{content:"";position:absolute;top:16px;left:16px;right:16px;bottom:16px;border:2px dashed #7b7b7b;border-radius:12px}.dialog-wrapper .drag-over .drag-text{padding:12px;font-size:18px;color:#606266}.dialog-wrapper .operate-position{position:absolute;top:0;left:0;width:1px;opacity:0;visibility:hidden;pointer-events:none}.dialog-wrapper-read-poptip{width:360px;max-width:72%}.dialog-wrapper-read-poptip .read-poptip-content{display:flex;position:relative}.dialog-wrapper-read-poptip .read-poptip-content .read,.dialog-wrapper-read-poptip .read-poptip-content .unread{flex:1;max-height:300px}.dialog-wrapper-read-poptip .read-poptip-content .read>li,.dialog-wrapper-read-poptip .read-poptip-content .unread>li{min-height:26px;list-style:none;margin-bottom:12px}.dialog-wrapper-read-poptip .read-poptip-content .read>li .common-avatar,.dialog-wrapper-read-poptip .read-poptip-content .unread>li .common-avatar{width:100%}.dialog-wrapper-read-poptip .read-poptip-content .read>li .common-avatar .avatar-name,.dialog-wrapper-read-poptip .read-poptip-content .unread>li .common-avatar .avatar-name{margin-left:6px}.dialog-wrapper-read-poptip .read-poptip-content .read>li:last-child,.dialog-wrapper-read-poptip .read-poptip-content .unread>li:last-child{margin-bottom:6px}.dialog-wrapper-read-poptip .read-poptip-content .read>li.read-title,.dialog-wrapper-read-poptip .read-poptip-content .unread>li.read-title{min-height:auto}.dialog-wrapper-read-poptip .read-poptip-content .read>li.read-title>em,.dialog-wrapper-read-poptip .read-poptip-content .unread>li.read-title>em{font-size:18px;font-weight:600;font-style:normal;padding-right:6px}.dialog-wrapper-read-poptip .read-poptip-content .unread>li{padding-left:16px}.dialog-wrapper-read-poptip .read-poptip-content:before{content:"";position:absolute;left:50%;top:0;bottom:0;width:1px;background-color:#f4f4f5}.dialog-wrapper-paste{display:flex;flex-direction:column;align-items:center;justify-content:center}.dialog-wrapper-paste.multiple{display:block}.dialog-wrapper-paste>li{list-style:none}.dialog-wrapper-paste>li img{max-width:100%;max-height:500px}.dialog-wrapper-paste>li>div,.dialog-wrapper-paste>li>img{display:flex;flex-direction:column;padding:0}.dialog-wrapper-paste>li+li{margin-top:20px}.dialog-wrapper-todo{display:inline-block}.dialog-wrapper-todo>div{display:flex;align-items:center}.dialog-wrapper-todo>div .ivu-tag{display:flex;align-items:center;margin-left:4px;height:20px;line-height:20px;padding:0 5px}.dialog-wrapper-operate .ivu-dropdown-item{padding:0}.dialog-wrapper-operate .ivu-dropdown-item:hover{background-color:transparent}.dialog-wrapper-operate .dropdown-emoji{position:relative}.dialog-wrapper-operate .dropdown-emoji:before{content:"";position:absolute;top:0;left:0;right:0;height:1px;background-color:#f4f5f5}.dialog-wrapper-operate .operate-action{width:316px;padding:8px;margin-bottom:-8px;display:grid;justify-content:space-between;grid-template-columns:repeat(auto-fill,60px)}.dialog-wrapper-operate .operate-action>li{list-style:none;width:60px;height:52px;margin-bottom:14px;display:flex;flex-direction:column;align-items:center;justify-content:space-between}.dialog-wrapper-operate .operate-action>li .taskfont{font-size:22px}.dialog-wrapper-operate .operate-action>li>span{padding:0 1px;font-size:12px;max-width:100%;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dialog-wrapper-operate .operate-emoji{width:316px;padding:8px 4px 2px;display:flex;align-items:center;overflow:auto}.dialog-wrapper-operate .operate-emoji>li{list-style:none;width:44px;box-sizing:content-box;display:flex;flex-shrink:0;font-size:22px;justify-content:center;align-items:center}.dialog-wrapper-drawer-list{position:absolute!important;overflow:hidden!important}.dialog-wrapper-loading{width:8px;height:8px;border-radius:50%;display:block;margin:0 auto;position:relative;background:#e3e3e3;box-sizing:border-box;animation:dialog-loading-animation .5s linear infinite alternate}@keyframes dialog-loading-animation{0%{box-shadow:0 0,0 0;color:#e3e3e333}to{box-shadow:-12px 0,12px 0;color:#e3e3e3cc}}body.eeui-app .dialog-wrapper .dialog-scroller{-webkit-user-select:none;-moz-user-select:none;user-select:none}body.eeui-app .dialog-wrapper .dialog-scroller .dialog-item .dialog-view.operate-enter .dialog-head .dialog-content{-webkit-user-select:text;-moz-user-select:text;user-select:text}@media (max-width: 768px){.dialog-wrapper{background-color:#f8f8f8}.dialog-wrapper.drawer-list .dialog-nav .drawer-title{height:52px;line-height:52px;border-bottom:0}.dialog-wrapper .dialog-nav .nav-wrapper{height:52px;padding:0;justify-content:center}.dialog-wrapper .dialog-nav .nav-wrapper:before{display:none}.dialog-wrapper .dialog-nav .nav-wrapper.completed:after{font-size:36px;right:40px}.dialog-wrapper .dialog-nav .nav-wrapper.completed .dialog-title{padding-right:0}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-back,.dialog-wrapper .dialog-nav .nav-wrapper .dialog-menu{position:absolute;top:0;bottom:0;right:0;width:52px;display:flex;align-items:center;justify-content:center}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-menu,.dialog-wrapper .dialog-nav .nav-wrapper .dialog-menu .dialog-menu-icon{margin:0}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-back{padding-right:6px;right:auto;left:0}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-back>i{font-size:26px}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-back .back-num{font-family:Source Sans Pro,Helvetica Neue,Arial,sans-serif;position:absolute;top:50%;left:32px;background:#e6ebf1;color:#303133;transform:translateY(-50%);font-weight:500;font-size:14px;border-radius:12px;min-width:24px;height:24px;line-height:24px;text-align:center;padding:0 6px}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block{margin:0 80px;justify-content:center}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-avatar{display:none}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title{flex:unset;width:unset;overflow:hidden;text-align:center}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .main-title{justify-content:center}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .title-desc{display:flex;justify-content:center}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .title-tags{position:absolute;left:0;right:0;top:48px;z-index:1;padding:0 8px;background-color:#f8f8f8;height:32px;align-items:flex-start;overflow-x:auto}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .title-tags>li{flex-shrink:0;line-height:28px;padding:0 8px;font-size:14px}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .title-tags>li>i{width:16px;height:16px;line-height:16px;font-size:16px;margin-right:3px}.dialog-wrapper .dialog-scroller{padding-right:14px;padding-left:14px;overscroll-behavior:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;background-color:#fff}.dialog-wrapper .dialog-scroller.default-header{margin-top:34px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view.text{max-width:calc(100% - 80px)}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content a,.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content img{-webkit-touch-callout:none}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre{font-size:15px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-emoji>li .emoji-symbol{font-size:14px;margin-right:-1px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view.operate-enter .dialog-head .dialog-content{-webkit-user-select:text;-moz-user-select:text;user-select:text}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view.operate-enter .dialog-head .dialog-content a,.dialog-wrapper .dialog-scroller .dialog-item .dialog-view.operate-enter .dialog-head .dialog-content img{-webkit-touch-callout:default}.dialog-wrapper .dialog-position.down{top:130px}.dialog-wrapper .dialog-footer{background-color:#f8f8f8;padding:8px 10px;margin-bottom:0}.dialog-wrapper .dialog-footer .chat-todo{padding-top:0}.dialog-wrapper .dialog-footer .chat-todo>ul>li{background-color:#fff}.dialog-wrapper .dialog-footer .chat-todo>ul>li .todo-desc{max-width:120px}.dialog-wrapper .dialog-footer .chat-mute,.dialog-wrapper .dialog-footer .chat-input-box .chat-input-wrapper{background-color:#fff}.dialog-wrapper .dialog-footer .chat-input-box .chat-input-wrapper .chat-toolbar>li.chat-record-recwave{margin-left:-10px;width:calc(100% + 20px);background-color:#f8f8f8}.dialog-wrapper .dialog-footer .chat-input-box .chat-emoji-wrapper{margin-left:-10px;margin-bottom:-8px;width:calc(100% + 20px)}.dialog-wrapper .dialog-footer .dialog-newmsg,.dialog-wrapper .dialog-footer .dialog-goto{right:16px}.dialog-wrapper-operate .operate-emoji>li{font-size:24px}}@media (max-width: 768px) and (min-width: 390px){.dialog-wrapper-operate .operate-action,.dialog-wrapper-operate .operate-emoji{width:376px}.dialog-wrapper-operate .operate-emoji>li{width:46px}}.file-content,.file-preview{position:absolute;top:0;left:0;right:0;bottom:0;z-index:1;display:flex;flex-direction:column;border-radius:18px 18px 0 0;overflow:hidden;transform:translateZ(0)}.file-content .preview-iframe,.file-preview .preview-iframe{position:absolute;top:0;left:0;width:100%;height:100%;background:0 0;border:0;float:none;max-width:none;margin:0;padding:0;outline:0}.file-content .office-header,.file-preview .office-header{position:absolute;top:0;left:0;z-index:-1;opacity:0}.file-content .edit-header,.file-preview .edit-header{display:flex;flex-direction:row;align-items:center;width:100%;height:42px;background-color:#fff;box-shadow:0 1px 5px #0000000d;position:relative;z-index:99}.file-content .edit-header .header-title,.file-preview .edit-header .header-title{flex:1;color:#303133;padding-left:24px;padding-right:24px;line-height:24px;font-size:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-content .edit-header .header-title .file-unsave-tip,.file-preview .edit-header .header-title .file-unsave-tip{color:#303133;padding-right:6px;font-weight:500;cursor:pointer;transition:color .3s}.file-content .edit-header .header-title .file-unsave-tip:hover,.file-preview .edit-header .header-title .file-unsave-tip:hover{color:#000}.file-content .edit-header .header-user,.file-preview .edit-header .header-user{margin-right:24px}.file-content .edit-header .header-user>ul,.file-preview .edit-header .header-user>ul{display:flex;align-items:center}.file-content .edit-header .header-user>ul>li,.file-preview .edit-header .header-user>ul>li{list-style:none;margin-right:-4px}.file-content .edit-header .header-user>ul>li.more,.file-preview .edit-header .header-user>ul>li.more{width:28px;height:28px;text-align:center;line-height:24px;font-size:12px;border:2px solid #ffffff;background-color:#84c56a;color:#fff;z-index:1;border-radius:50%}.file-content .edit-header .header-hint,.file-preview .edit-header .header-hint{padding-right:22px;font-size:12px;color:#666;white-space:nowrap}.file-content .edit-header .header-hint .ivu-btn,.file-preview .edit-header .header-hint .ivu-btn{font-size:12px;padding:0 10px}.file-content .edit-header .header-hint .ivu-dropdown-item,.file-preview .edit-header .header-hint .ivu-dropdown-item{font-size:12px!important}.file-content .edit-header .header-icons,.file-preview .edit-header .header-icons{margin-left:-4px;margin-right:16px;display:flex;align-items:center;justify-content:center}.file-content .edit-header .header-icons .header-icon,.file-preview .edit-header .header-icons .header-icon{display:flex;align-items:center;justify-content:center;width:44px;height:100%;color:#777;cursor:pointer}.file-content .edit-header .header-icons .header-icon>i,.file-preview .edit-header .header-icons .header-icon>i{font-size:20px}.file-content .edit-header .header-button,.file-preview .edit-header .header-button{font-size:12px;margin-right:24px}.file-content .content-body,.file-preview .content-body{flex:1;display:flex;position:relative}.file-content .content-body .teditor-wrapper,.file-content .content-body .mdeditor-wrapper,.file-preview .content-body .teditor-wrapper,.file-preview .content-body .mdeditor-wrapper{flex:1;display:flex}.file-content .content-body .teditor-wrapper .tox-editor-header .tox-toolbar--scrolling,.file-preview .content-body .teditor-wrapper .tox-editor-header .tox-toolbar--scrolling{flex-wrap:wrap}.file-content .content-body .mdeditor-box,.file-preview .content-body .mdeditor-box{position:relative;width:100%}.file-content .content-body .mdeditor-box .markdown,.file-preview .content-body .mdeditor-box .markdown{position:absolute;top:0;left:0;bottom:0;right:0;overflow:auto;transform:translateZ(0)}.file-content .content-body .mdeditor-box .markdown .markdown-toolbars,.file-preview .content-body .mdeditor-box .markdown .markdown-toolbars{border-bottom:1px solid #eeeeee}.file-content .content-body .mdeditor-box .markdown.border,.file-preview .content-body .mdeditor-box .markdown.border{border:0!important}.file-content .content-body .teditor-loadedstyle,.file-preview .content-body .teditor-loadedstyle{height:100%}.file-content .content-body .teditor-loadedstyle .tox-tinymce,.file-preview .content-body .teditor-loadedstyle .tox-tinymce{border:0;border-radius:0}.file-content .content-body .teditor-loadedstyle .tox-mbtn,.file-preview .content-body .teditor-loadedstyle .tox-mbtn{height:36px}.file-content .content-body .teditor-loadedstyle .tox-menubar,.file-content .content-body .teditor-loadedstyle .tox-toolbar-overlord,.file-preview .content-body .teditor-loadedstyle .tox-menubar,.file-preview .content-body .teditor-loadedstyle .tox-toolbar-overlord{padding:0 12%;background:#ffffff}.file-content .content-body .teditor-loadedstyle .tox-toolbar__overflow,.file-content .content-body .teditor-loadedstyle .tox-toolbar__primary,.file-preview .content-body .teditor-loadedstyle .tox-toolbar__overflow,.file-preview .content-body .teditor-loadedstyle .tox-toolbar__primary{background:none!important;border-top:1px solid #eaeaea!important}.file-content .content-body .teditor-loadedstyle .tox-toolbar-overlord,.file-preview .content-body .teditor-loadedstyle .tox-toolbar-overlord{border-bottom:1px solid #E9E9E9!important}.file-content .content-body .teditor-loadedstyle .tox-toolbar__group:not(:last-of-type),.file-preview .content-body .teditor-loadedstyle .tox-toolbar__group:not(:last-of-type){border-right:1px solid #eaeaea!important}.file-content .content-body .teditor-loadedstyle .tox-sidebar-wrap,.file-preview .content-body .teditor-loadedstyle .tox-sidebar-wrap{margin:22px 12%;border:1px solid #e8e8e8;border-radius:2px;box-shadow:0 4px 8px #00000014}.file-content .content-body .teditor-loadedstyle .tox-sidebar-wrap .tox-edit-area,.file-preview .content-body .teditor-loadedstyle .tox-sidebar-wrap .tox-edit-area{border-top:0}.file-content .content-body .teditor-loadedstyle .tox-statusbar,.file-preview .content-body .teditor-loadedstyle .tox-statusbar{border-top:1px solid #E9E9E9}.file-content .content-body .teditor-loadedstyle .tox-statusbar .tox-statusbar__resize-handle,.file-preview .content-body .teditor-loadedstyle .tox-statusbar .tox-statusbar__resize-handle{display:none}.file-content .content-body .content-mask,.file-preview .content-body .content-mask{position:absolute;top:0;left:0;right:0;bottom:0;z-index:2}.file-content .content-load,.file-preview .content-load{display:flex;align-items:center;justify-content:center;position:absolute;top:42px;left:0;right:0;bottom:0;z-index:1000}.file-content .content-load .common-loading,.file-preview .content-load .common-loading{margin:0}.file-preview .edit-header .header-title{display:flex;align-items:center}.file-preview .edit-header .header-title .title-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-preview .edit-header .header-title .ivu-tag{flex-shrink:0;margin-left:6px;padding:0 6px;line-height:20px}.file-preview .edit-header .header-title .refresh{display:flex;align-items:center;margin-left:6px}.file-preview .edit-header .header-title .refresh .common-loading{margin:2px;width:16px;height:16px}.file-preview .edit-header .header-title .refresh>i{opacity:.6;font-size:20px;cursor:pointer;transition:all .2s}.file-preview .edit-header .header-title .refresh>i:hover{opacity:1}.file-preview .content-body{overflow:hidden}.file-preview .content-body .teditor-wrapper .tox-editor-header,.file-preview .content-body .teditor-wrapper .tox-statusbar{display:none}.file-preview .content-body .teditor-loadedstyle .tox-menubar,.file-preview .content-body .teditor-loadedstyle .tox-toolbar-overlord{padding:0}.file-preview .content-body .teditor-loadedstyle .tox-sidebar-wrap{margin:0}.file-preview .content-body .markdown-preview-warp{flex:1;overflow:auto}@media (max-width: 768px){.file-preview .edit-header .header-hint{display:none}}@media (max-width: 1200px){.file-content{overflow:auto}.file-content .edit-header,.file-content .content-body{min-width:768px;overflow-x:auto}.file-content .edit-header .teditor-loadedstyle .tox-menubar,.file-content .edit-header .teditor-loadedstyle .tox-toolbar-overlord,.file-content .content-body .teditor-loadedstyle .tox-menubar,.file-content .content-body .teditor-loadedstyle .tox-toolbar-overlord{padding:0}.file-content .edit-header .teditor-loadedstyle .tox-sidebar-wrap,.file-content .content-body .teditor-loadedstyle .tox-sidebar-wrap{margin:0}}body .ivu-modal-wrap.meeting-manager .ivu-modal .ivu-modal-content{border-radius:0}body .ivu-modal-wrap.meeting-manager .ivu-modal .ivu-modal-content .ivu-modal-body{padding:16px 24px 0}body .ivu-modal-wrap.meeting-manager .ivu-modal .ivu-modal-content .ivu-modal-body>ul{display:grid;justify-content:space-between;grid-template-columns:repeat(auto-fill,220px);grid-gap:24px}body .ivu-modal-wrap.meeting-manager .ivu-modal .ivu-modal-content .ivu-modal-body>ul>li{list-style:none;position:relative}body .ivu-modal-wrap.meeting-manager .ivu-modal .ivu-modal-content .ivu-modal-body>ul>li .meeting-player{position:relative}body .ivu-modal-wrap.meeting-manager .ivu-modal .ivu-modal-content .ivu-modal-body>ul>li .meeting-player .player{width:220px;height:220px;border-radius:12px;position:relative;z-index:1;overflow:hidden;background-color:#e1e1e1;background-size:136%;background-position:center;background-repeat:no-repeat}body .ivu-modal-wrap.meeting-manager .ivu-modal .ivu-modal-content .ivu-modal-body>ul>li .meeting-player .player-state{position:absolute;top:4px;right:8px;z-index:2;display:flex;align-items:center}body .ivu-modal-wrap.meeting-manager .ivu-modal .ivu-modal-content .ivu-modal-body>ul>li .meeting-player .player-state .taskfont{color:red;font-size:18px;margin-left:8px}body .ivu-modal-wrap.meeting-manager .ivu-modal .ivu-modal-content .ivu-modal-body>ul>li .meeting-player .common-avatar{position:absolute;bottom:-8px;right:-8px;z-index:2}@media (max-width: 768px){body .ivu-modal-wrap.meeting-manager .ivu-modal .ivu-modal-content .ivu-modal-body>ul{grid-template-columns:none;grid-gap:12px;display:flex;flex-wrap:wrap;justify-content:flex-start}body .ivu-modal-wrap.meeting-manager .ivu-modal .ivu-modal-content .ivu-modal-body>ul>li{width:calc(50% - 6px);max-width:180px}body .ivu-modal-wrap.meeting-manager .ivu-modal .ivu-modal-content .ivu-modal-body>ul>li .meeting-player .player{width:100%;height:176px}}body .ivu-modal-wrap.meeting-hidden{display:none}.meeting-drag-ball{position:relative;background-color:#fff;padding:6px 12px;white-space:nowrap;border-radius:4px;box-shadow:0 0 50px #0000004d;cursor:pointer;display:flex;align-items:center}.meeting-drag-ball>i{font-size:20px;height:24px;line-height:24px;margin-right:5px}.meeting-drag-ball>em{font-style:normal;padding-left:4px}.meeting-button-group{display:flex;justify-content:flex-end}.meeting-button-group .taskfont{font-size:20px}.meeting-button-group .ivu-btn{display:flex;align-items:center;justify-content:center}.meeting-button-group .ivu-btn>span{display:flex;align-items:center;justify-content:center}.project-archived{position:absolute;top:0;left:0;right:0;bottom:0;padding:20px;display:flex;flex-direction:column}.project-archived .archived-title{color:#303133;font-size:20px;font-weight:500;line-height:1;margin-bottom:24px;display:flex;align-items:center}.project-archived .archived-title .title-icon{display:flex;align-items:center;width:14px;height:14px;margin-left:4px;margin-top:2px}.project-archived .archived-title .title-icon>i{cursor:pointer}.project-archived .table-page-box{flex:1;height:0}.project-dialog{display:flex;flex-direction:column;background-color:#fff;border-left:1px solid #f4f5f5;z-index:1;position:relative}.project-dialog .dialog-user{margin-top:26px}.project-dialog .dialog-user .member-head{display:flex;align-items:center;padding:0 22px}.project-dialog .dialog-user .member-head .member-title{flex:1;font-size:18px;font-weight:600}.project-dialog .dialog-user .member-head .member-title>span{padding-left:6px;color:#84c56a;cursor:pointer}.project-dialog .dialog-user .member-head .member-close{cursor:pointer}.project-dialog .dialog-user .member-head .member-close .ivu-icon-ios-close{font-size:38px;top:3px;right:2px;transition:all .2s}.project-dialog .dialog-user .member-head .member-close:hover .ivu-icon-ios-close{transform:rotate(-90deg)}.project-dialog .dialog-user .member-list{display:flex;align-items:center;margin-top:12px;padding:0 22px;overflow:auto}.project-dialog .dialog-user .member-list::-webkit-scrollbar{display:none}.project-dialog .dialog-user .member-list>li{position:relative;list-style:none;margin-right:10px;margin-bottom:8px}.project-dialog .dialog-user .member-list.member-all{display:block}.project-dialog .dialog-user .member-list.member-all>li{display:inline-block;overflow:hidden}.project-dialog .dialog-nav .nav-wrapper{padding:0 20px}.project-gstc-gantt{position:absolute;top:15px;left:15px;right:15px;bottom:15px;z-index:1;transform:translateZ(0);background-color:#fdfdfd;border-radius:3px;overflow:hidden}.project-gstc-gantt .project-gstc-dropdown-filtr{position:absolute;top:38px;left:222px}.project-gstc-gantt .project-gstc-dropdown-filtr .project-gstc-dropdown-icon{cursor:pointer;color:#999;font-size:20px}.project-gstc-gantt .project-gstc-dropdown-filtr .project-gstc-dropdown-icon.filtr{color:#058ce4}.project-gstc-gantt .project-gstc-close{position:absolute;top:8px;left:12px;cursor:pointer}.project-gstc-gantt .project-gstc-close:hover i{transform:scale(1) rotate(45deg)}.project-gstc-gantt .project-gstc-close i{color:#606266;font-size:28px;transform:scale(.92);transition:all .2s}.project-gstc-gantt .project-gstc-edit{position:absolute;bottom:6px;right:6px;background:#ffffff;border-radius:4px;opacity:0;transform:translate(120%);transition:all .2s}.project-gstc-gantt .project-gstc-edit.visible{opacity:1;transform:translate(0)}.project-gstc-gantt .project-gstc-edit.info .project-gstc-edit-info{display:block}.project-gstc-gantt .project-gstc-edit.info .project-gstc-edit-small{display:none}.project-gstc-gantt .project-gstc-edit .project-gstc-edit-info{display:none;border:1px solid #e4e4e4;background:#ffffff;padding:6px;border-radius:4px;width:500px}.project-gstc-gantt .project-gstc-edit .project-gstc-edit-info .project-gstc-edit-btns{margin:12px 6px 4px;display:flex;align-items:center;justify-content:flex-end}.project-gstc-gantt .project-gstc-edit .project-gstc-edit-info .project-gstc-edit-btns .ivu-btn{margin-right:8px;font-size:13px}.project-gstc-gantt .project-gstc-edit .project-gstc-edit-info .project-gstc-edit-btns .zoom{font-size:20px;color:#444;cursor:pointer}.project-gstc-gantt .project-gstc-edit .project-gstc-edit-info .project-gstc-edit-btns .zoom:hover{color:#57a3f3}.project-gstc-gantt .project-gstc-edit .project-gstc-edit-small{border:1px solid #e4e4e4;background:#ffffff;padding:6px 12px;display:flex;align-items:center}.project-gstc-gantt .project-gstc-edit .project-gstc-edit-small .project-gstc-edit-text{cursor:pointer;text-decoration:underline;color:#444;margin-right:8px}.project-gstc-gantt .project-gstc-edit .project-gstc-edit-small .project-gstc-edit-text:hover{color:#57a3f3}.project-gstc-gantt .project-gstc-edit .project-gstc-edit-small .ivu-btn{margin-left:4px;font-size:13px}.project-gstc-gantt .ivu-dropdown-item.dropdown-active{color:#058ce4}.project-list{flex:1;height:100%;display:flex;flex-direction:column;align-items:flex-start}.project-list .list-search{width:100%;flex-shrink:0;display:flex;align-items:center;justify-content:center;height:54px;padding:0 12px;background-color:#f8f8f8}.project-list .list-search .search-wrapper{flex:1;background-color:#fff;padding:0 8px;margin:0 4px;border-radius:12px;overflow:hidden}.project-list .list-search .search-wrapper .search-pre{width:100%;height:100%;display:flex;align-items:center;justify-content:center}.project-list .list-search .search-wrapper .search-pre .common-loading{width:14px;height:14px;margin:0}.project-list .list-search .search-wrapper .ivu-input{border-color:transparent;background-color:transparent}.project-list .list-search .search-wrapper .ivu-input:hover,.project-list .list-search .search-wrapper .ivu-input:focus{box-shadow:none}.project-list>ul{flex:1;height:0;width:100%;overflow:auto;background-color:#f8f8f8;-webkit-user-select:none;-moz-user-select:none;user-select:none}.project-list>ul>li{padding:16px;margin:16px;border-radius:12px;background-color:#fff;list-style:none;position:relative}.project-list>ul>li:before{display:none;position:absolute;content:"";top:0;left:0;right:0;bottom:0;z-index:1;border:2px solid #84C56A;pointer-events:none;border-radius:12px}.project-list>ul>li.nothing,.project-list>ul>li.loading{text-align:center;height:100%;margin:0;padding:24px;border-radius:0;line-height:22px}.project-list>ul>li.loading{display:flex;align-items:flex-start;justify-content:center}.project-list>ul>li.loading .common-loading{width:20px;height:20px;margin:1px}.project-list>ul>li.operate:before{display:block}.project-list>ul>li .project-item{display:flex;align-items:center}.project-list>ul>li .project-item .item-left{flex:1;width:0}.project-list>ul>li .project-item .item-left .project-h1{display:flex;align-items:flex-start}.project-list>ul>li .project-item .item-left .project-h1 .project-name{font-size:14px;line-height:22px;color:#303133;word-break:break-all;text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.project-list>ul>li .project-item .item-left .project-h1 .icon-top{margin-top:4px;margin-left:6px;flex-shrink:0;width:14px;height:14px;background:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI1LjAuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IuWbvuWxgl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiCiAgICAgeT0iMHB4IgogICAgIHZpZXdCb3g9IjAgMCAyNCAyNCIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMjQgMjQ7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPHN0eWxlIHR5cGU9InRleHQvY3NzIj4KCS5zdDB7ZmlsbDojOEJDRjcwO30KPC9zdHlsZT4wCiAgICA8cGF0aCBjbGFzcz0ic3QwIiBkPSJNMjAuNyw4LjFjLTEuNS0xLjUtNC40LTQuNC00LjQtNC40Yy0xLjItMS4yLTIuNS0xLjQtMy40LTAuN2MtMC41LDAuNC0wLjcsMC45LTAuOCwxLjRjLTAuMSwwLjUtMC40LDEtMC44LDEuMwoJbC0wLjEsMC4xYy0yLDEuNS00LjMsMi44LTYuOCwzLjJDMy45LDkuMiwzLjMsOS41LDMsMTBjLTAuNiwwLjktMC40LDIuMSwwLjMsMi45bDMuNCwzLjRjMCwwLDAsMCwwLDBsLTMuMSwzLjEKCWMtMC4zLDAuMy0wLjMsMC44LDAsMS4xYzAuMSwwLjEsMC4zLDAuMiwwLjUsMC4yYzAuMiwwLDAuNC0wLjEsMC41LTAuMmwzLjEtMy4xYzAsMCwwLDAsMCwwbDIuOSwyLjljMS4zLDEuMywyLjUsMS41LDMuNCwwLjkKCWMwLjQtMC4zLDAuNy0wLjcsMC45LTEuMmMwLjYtMi4zLDEuNC00LjYsMi44LTYuNWwwLjUtMC43YzAuMy0wLjQsMC44LTAuOCwxLjMtMC44YzAuNS0wLjEsMS4xLTAuMywxLjQtMC44CglDMjEuNywxMC4yLDIxLjUsOC45LDIwLjcsOC4xeiIvPgo8L3N2Zz4K) no-repeat center center;background-size:contain}.project-list>ul>li .project-item .item-left .project-h1 .num{margin-top:1px;margin-left:6px;flex-shrink:0;font-style:normal;display:inline-block;background-color:#fd9c9b26;color:#ff7559;padding:0 5px;min-width:10px;height:20px;line-height:20px;text-align:center;border-radius:10px;box-sizing:content-box;font-weight:500;font-size:14px;white-space:nowrap}.project-list>ul>li .project-item .item-left .project-h2{margin-top:4px;line-height:20px;font-size:12px;word-break:break-all;text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;color:#909399}.project-list>ul>li .project-item .item-right{flex-shrink:0;display:flex;align-items:center;margin-left:28px}.project-list>ul>li .project-item .item-right .ivu-chart-circle .ivu-icon{font-size:40px;font-weight:900;color:#84c56a33}.project-list>ul>li .project-item .item-right .ivu-chart-circle .percent-text{color:#84c56a;font-weight:500}.project-list .operate-position{position:absolute;top:0;left:0;width:1px;opacity:0;visibility:hidden;pointer-events:none}.project-log .log-title{display:none}.project-log.is-drawer{position:absolute;top:0;left:0;right:0;bottom:0;padding:20px;overflow:auto}.project-log.is-drawer .log-title{color:#303133;font-size:20px;font-weight:500;line-height:1;margin-bottom:24px}.project-log .logs-activity{position:relative;word-break:break-all;padding:12px}.project-log .logs-activity>li{list-style:none;padding-top:0}.project-log .logs-activity>li.logs-loading,.project-log .logs-activity>li.logs-more,.project-log .logs-activity>li.logs-none{height:22px;line-height:22px}.project-log .logs-activity>li.logs-loading{display:flex}.project-log .logs-activity>li.logs-loading .common-loading{margin:0}.project-log .logs-activity>li.logs-more{cursor:pointer}.project-log .logs-activity>li.logs-more:hover{color:#048be0}.project-log .logs-activity>li.logs-none{cursor:pointer;color:#bbb}.project-log .logs-activity>li .logs-date{color:#0000005c;padding-bottom:14px}.project-log .logs-activity>li .logs-section{margin:4px}.project-log .logs-activity>li .logs-section .ivu-timeline>li{padding-bottom:8px}.project-log .logs-activity>li .logs-section .ivu-timeline>li:last-child{padding-bottom:0}.project-log .logs-activity>li .logs-section .ivu-timeline>li .ivu-timeline-item-head-custom{position:static;left:auto;margin-top:8px;margin-left:-13px;margin-right:6px;width:auto;min-width:40px}.project-log .logs-activity>li .logs-section .ivu-timeline>li .ivu-timeline-item-content{padding-left:20px;margin-top:-5px}.project-log .logs-activity>li .logs-dot{width:auto;height:18px;margin-left:10px;display:flex}.project-log .logs-activity>li .logs-dot .avatar-name.auto{color:#9599a1}.project-log .logs-activity>li .log-summary{position:relative;padding:4px 0 4px 12px}.project-log .logs-activity>li .log-summary>span,.project-log .logs-activity>li .log-summary>a{padding-right:6px;word-wrap:break-word;word-break:break-word}.project-log .logs-activity>li .log-summary .log-text{display:inline-block;color:#000000b8}.project-log .logs-activity>li .log-summary .log-text .change-value:hover{border-bottom:1px dotted rgba(0,0,0,.3)}.project-log .logs-activity>li .log-summary .log-text .detail-user{display:inline-block;vertical-align:top}.project-log .logs-activity>li .log-summary .log-text .detail-user .detail-user-wrap{display:flex}.project-log .logs-activity>li .log-summary .log-text .detail-user .detail-user-wrap .common-avatar{margin:0 2px}.project-log .logs-activity>li .log-summary .log-operation>button{font-size:12px}.project-log .logs-activity>li .log-summary .log-operation>button+button{margin-left:4px}.project-log .logs-activity>li .log-summary .log-time{color:#0000004d;font-size:12px}.project-log .logs-activity>li .log-task{margin-left:12px;margin-bottom:6px;opacity:.6;cursor:pointer}.project-log .logs-activity>li .log-task:hover{opacity:1}.project-log .logs-activity>li .log-task:hover>em{color:#84c56a}.project-log .logs-activity>li .log-task>em{display:inline-block;font-style:normal;font-size:12px;line-height:18px;height:18px;max-width:100%;color:#909399;border-radius:5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-management{position:absolute;top:0;left:0;right:0;bottom:0;padding:20px;display:flex;flex-direction:column}.project-management .management-title{color:#303133;font-size:20px;font-weight:500;line-height:1;margin-bottom:24px;display:flex;align-items:center}.project-management .management-title .title-icon{display:flex;align-items:center;width:14px;height:14px;margin-left:4px;margin-top:2px}.project-management .management-title .title-icon>i{cursor:pointer}.project-management .project-name{display:flex;align-items:center}.project-management .project-name .ivu-tag{height:18px;line-height:18px;padding:0 4px;transform:scale(.8);transform-origin:right center;flex-shrink:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-management .project-percent{line-height:1}.project-management .project-percent .ivu-progress{margin-top:2px}.project-management .table-page-box{flex:1;height:0}.project-panel{display:flex;flex-direction:column}.project-panel .project-titbox{width:100%;padding:32px 32px 4px}.project-panel .project-titbox .project-title{float:left;display:flex;align-items:center;margin-bottom:8px}.project-panel .project-titbox .project-title .project-back{display:none}.project-panel .project-titbox .project-title>h1{color:#303133;font-size:28px;font-weight:600}.project-panel .project-titbox .project-title .project-load{display:flex;align-items:center;margin-left:18px}.project-panel .project-titbox .project-title .project-load .common-loading{width:22px;height:22px}.project-panel .project-titbox .project-icons{float:right;display:flex;align-items:center;margin-top:3px;margin-bottom:8px}.project-panel .project-titbox .project-icons>li{list-style:none;display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;position:relative;margin-left:16px;cursor:pointer;transition:box-shadow .3s}.project-panel .project-titbox .project-icons>li:hover{box-shadow:0 0 6px #ccc}.project-panel .project-titbox .project-icons>li.cursor-default{cursor:default}.project-panel .project-titbox .project-icons>li.project-avatar{width:auto;min-width:36px}.project-panel .project-titbox .project-icons>li.project-avatar:hover{box-shadow:none}.project-panel .project-titbox .project-icons>li.project-avatar>ul{display:flex;align-items:center}.project-panel .project-titbox .project-icons>li.project-avatar>ul>li{list-style:none;margin-left:-6px;transition:transform .2s}.project-panel .project-titbox .project-icons>li.project-avatar>ul>li .ivu-badge{position:absolute;top:-5px;left:23px;transform:scale(.8)}.project-panel .project-titbox .project-icons>li.project-avatar>ul>li:hover{transform:scale(1.05)}.project-panel .project-titbox .project-icons>li.project-avatar>ul>li:first-child{margin-left:0}.project-panel .project-titbox .project-icons>li.project-avatar>ul>li.more{display:flex;align-items:center;justify-content:center;font-size:17px;width:30px;height:32px;color:#aaa;background-color:transparent;border-color:transparent;transform:scale(1)!important;z-index:1}.project-panel .project-titbox .project-icons>li.project-icon{border-radius:50%;background-color:#f2f3f5}.project-panel .project-titbox .project-icons>li.project-icon .menu-icon{font-size:20px;width:36px;height:36px;line-height:36px}.project-panel .project-titbox .project-icons>li.project-icon .menu-badge{position:absolute;top:-6px;left:20px;z-index:1;transform:scale(.8)}.project-panel .project-titbox .project-icons>li.project-icon .search-input{margin:2px 0;width:170px}.project-panel .project-titbox .project-icons>li.project-icon.active{color:#fff;background-color:#84c56a}.project-panel .project-subbox{width:100%;padding:0 32px}.project-panel .project-subbox .project-subtitle{float:left;color:#909399;line-height:24px;margin:6px 0}.project-panel .project-subbox .project-switch{float:right;margin:3px 0 3px 32px;display:flex;align-items:flex-end}.project-panel .project-subbox .project-switch .project-checkbox{display:flex;align-items:center;margin-right:14px;opacity:.9;height:30px}.project-panel .project-subbox .project-switch .project-checkbox .ivu-checkbox-focus{box-shadow:none}.project-panel .project-subbox .project-switch .project-select{display:flex;align-items:center;margin-right:14px;opacity:.9;height:30px}.project-panel .project-subbox .project-switch .project-select .project-flow{font-size:13px;height:28px;line-height:26px;padding:0 8px;border-radius:4px;background:#f7f7f7;border:1px solid #e8eaec;display:flex;align-items:center;justify-content:center;cursor:pointer}.project-panel .project-subbox .project-switch .project-select .project-flow.start{background-color:#ff70701a;border-color:#ff70701a;color:#ff7070}.project-panel .project-subbox .project-switch .project-select .project-flow.progress{background-color:#fc984b1a;border-color:#fc984b1a;color:#fc984b}.project-panel .project-subbox .project-switch .project-select .project-flow.test{background-color:#2f99ec1a;border-color:#2f99ec1a;color:#2f99ec}.project-panel .project-subbox .project-switch .project-select .project-flow.end{background-color:#0bc0371a;border-color:#0bc0371a;color:#0bc037}.project-panel .project-subbox .project-switch .project-switch-button{display:flex;align-items:center;background-color:#fff;border-radius:6px;height:30px;position:relative;transition:all .2s}.project-panel .project-subbox .project-switch .project-switch-button .active{color:#84c56a}.project-panel .project-subbox .project-switch .project-switch-button .slider{position:absolute;top:0;left:0;width:33.3%;height:100%;z-index:0;color:#84c56a;border-radius:6px;border:1px solid #84C56A;background-color:#84c56a1a;transition:left .2s}.project-panel .project-subbox .project-switch .project-switch-button:hover{box-shadow:0 0 10px #e6ecfa}.project-panel .project-subbox .project-switch .project-switch-button>div{z-index:1;width:32px;height:30px;display:flex;align-items:center;justify-content:center;border-radius:6px;cursor:pointer;color:#606266}.project-panel .project-subbox .project-switch .project-switch-button>div>i{font-size:17px}.project-panel .project-column{display:flex;height:100%;padding-top:15px;overflow-x:auto;overflow-y:hidden}.project-panel .project-column>ul{display:inline-flex;justify-content:space-between;align-items:flex-start}.project-panel .project-column>ul>li{flex-shrink:0;list-style:none;width:300px;height:100%;display:flex;flex-direction:column}.project-panel .project-column>ul>li:first-child{margin-left:22px}.project-panel .project-column>ul>li:last-child{margin-right:22px}.project-panel .project-column>ul>li.add-column{height:36px;color:#888;cursor:pointer;background-color:#f2f3f5;border-radius:4px}.project-panel .project-column>ul>li.add-column .add-column-text{display:flex;flex-direction:row;align-items:center;line-height:36px;padding:0 12px}.project-panel .project-column>ul>li.add-column .add-column-text>i{font-size:16px;padding-right:8px}.project-panel .project-column>ul>li.add-column .add-column-text:hover{color:#777}.project-panel .project-column>ul>li.add-column .add-column-input{display:none;align-items:center;height:36px}.project-panel .project-column>ul>li.add-column .add-column-input .ivu-input{height:36px;padding:4px 10px}.project-panel .project-column>ul>li.add-column .add-column-input .ivu-input-icon{width:36px;height:36px;line-height:36px}.project-panel .project-column>ul>li.add-column.show-input .add-column-text{display:none}.project-panel .project-column>ul>li.add-column.show-input .add-column-input{display:flex}.project-panel .project-column>ul>li .column-head{display:flex;align-items:center;padding:7px 10px;margin:0 10px;background-color:#f2f3f5;border-radius:4px}.project-panel .project-column>ul>li .column-head .column-head-title{flex:1;width:0;display:flex;align-items:center;font-weight:500}.project-panel .project-column>ul>li .column-head .column-head-title>span{font-size:15px}.project-panel .project-column>ul>li .column-head .column-head-title>em{color:#888;font-style:normal;font-size:14px;padding-left:6px}.project-panel .project-column>ul>li .column-head .column-head-icon{display:flex;align-items:center;margin-left:16px}.project-panel .project-column>ul>li .column-head .column-head-icon .loading,.project-panel .project-column>ul>li .column-head .column-head-icon .ivu-icon{width:24px;height:24px;display:flex;align-items:center;justify-content:center;padding-right:8px}.project-panel .project-column>ul>li .column-head .column-head-icon .loading .common-loading,.project-panel .project-column>ul>li .column-head .column-head-icon .ivu-icon .common-loading{width:16px;height:16px;margin:0}.project-panel .project-column>ul>li .column-head .column-head-icon .ivu-icon{cursor:pointer;font-size:16px;color:#aaa;font-weight:600;transition:color .3s}.project-panel .project-column>ul>li .column-head .column-head-icon .ivu-icon:hover{color:#888}.project-panel .project-column>ul>li .column-head .column-head-icon .last{padding-right:0}.project-panel .project-column>ul>li .column-head.custom-color{color:#fff}.project-panel .project-column>ul>li .column-head.custom-color .column-head-title>em{color:#fff9}.project-panel .project-column>ul>li .column-head.custom-color .ivu-icon{color:#ffffff80}.project-panel .project-column>ul>li .column-head.custom-color .ivu-icon:hover{color:#ffffffe6}.project-panel .project-column>ul>li .column-task{flex:1;display:flex;flex-direction:column;overflow-x:hidden}.project-panel .project-column>ul>li .column-task .task-list>div:last-child{margin-bottom:16px}.project-panel .project-column>ul>li .column-task .task-item{cursor:pointer;margin:16px 10px 0;background-color:#fff;border-radius:12px;padding:12px;transition:box-shadow .3s,opacity .3s;position:relative}.project-panel .project-column>ul>li .column-task .task-item:hover{box-shadow:0 0 10px #e6ecfa}.project-panel .project-column>ul>li .column-task .task-item .task-head{display:flex;align-items:flex-start}.project-panel .project-column>ul>li .column-task .task-item .task-head .task-title{flex:1;padding-top:1px}.project-panel .project-column>ul>li .column-task .task-item .task-head .task-title>span{float:left;font-size:12px;height:20px;line-height:18px;padding:0 3px;border-radius:3px;color:#84c56a;border:1px solid #84C56A;margin-right:4px;text-align:center}.project-panel .project-column>ul>li .column-task .task-item .task-head .task-title>span.start{background-color:#ff70701a;border-color:#ff70701a;color:#ff7070}.project-panel .project-column>ul>li .column-task .task-item .task-head .task-title>span.progress{background-color:#fc984b1a;border-color:#fc984b1a;color:#fc984b}.project-panel .project-column>ul>li .column-task .task-item .task-head .task-title>span.test{background-color:#2f99ec1a;border-color:#2f99ec1a;color:#2f99ec}.project-panel .project-column>ul>li .column-task .task-item .task-head .task-title>span.end{background-color:#0bc0371a;border-color:#0bc0371a;color:#0bc037}.project-panel .project-column>ul>li .column-task .task-item .task-head .task-title>pre{display:block;margin:0;padding:0;line-height:1.5;white-space:pre-wrap;word-wrap:break-word;word-break:break-word}.project-panel .project-column>ul>li .column-task .task-item .task-head .task-menu{margin-left:8px;width:22px;height:22px}.project-panel .project-column>ul>li .column-task .task-item .task-head .task-menu .loading,.project-panel .project-column>ul>li .column-task .task-item .task-head .task-menu .ivu-icon{width:22px;height:22px;display:flex;align-items:center;justify-content:center}.project-panel .project-column>ul>li .column-task .task-item .task-head .task-menu .loading .common-loading,.project-panel .project-column>ul>li .column-task .task-item .task-head .task-menu .ivu-icon .common-loading{width:16px;height:16px;margin:0}.project-panel .project-column>ul>li .column-task .task-item .task-head .task-menu .ivu-icon{font-size:22px}.project-panel .project-column>ul>li .column-task .task-item .task-head .task-menu .ivu-icon.uncomplete{color:#777}.project-panel .project-column>ul>li .column-task .task-item .task-head .task-menu .ivu-icon.uncomplete:hover{color:#555}.project-panel .project-column>ul>li .column-task .task-item .task-head.has-desc .task-title{font-weight:600}.project-panel .project-column>ul>li .column-task .task-item .task-desc>pre{color:#909399;padding:0;margin:10px 0 0;line-height:20px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.project-panel .project-column>ul>li .column-task .task-item .task-tags{margin-top:10px}.project-panel .project-column>ul>li .column-task .task-item .task-users{margin-top:10px;display:flex;align-items:center}.project-panel .project-column>ul>li .column-task .task-item .task-users>ul{flex:1;width:0;display:flex;align-items:center;overflow:auto;margin-right:24px}.project-panel .project-column>ul>li .column-task .task-item .task-users>ul>li{list-style:none;margin-left:-6px;width:32px;height:32px}.project-panel .project-column>ul>li .column-task .task-item .task-users>ul>li:first-child{margin-left:0}.project-panel .project-column>ul>li .column-task .task-item .task-users>ul>li.no-owner{width:auto}.project-panel .project-column>ul>li .column-task .task-item .task-users>ul>li.no-owner .ivu-btn-small{font-size:12px}.project-panel .project-column>ul>li .column-task .task-item .task-users .task-icon{margin-left:6px;font-size:12px}.project-panel .project-column>ul>li .column-task .task-item .task-users .task-icon .ivu-icon{margin-left:1px;font-size:14px}.project-panel .project-column>ul>li .column-task .task-item .task-progress{margin-top:10px;display:flex;align-items:center;justify-content:flex-end}.project-panel .project-column>ul>li .column-task .task-item .task-progress .task-sub-num{font-size:12px;margin-right:8px;color:#777}.project-panel .project-column>ul>li .column-task .task-item .task-progress .task-time{flex-shrink:0;color:#777;background-color:#eaedf2;border:1px solid #EAEDF2;padding:0 3px;margin-left:18px;font-size:12px;border-radius:3px;display:flex;align-items:center}.project-panel .project-column>ul>li .column-task .task-item .task-progress .task-time.overdue,.project-panel .project-column>ul>li .column-task .task-item .task-progress .task-time.today{color:#fff}.project-panel .project-column>ul>li .column-task .task-item .task-progress .task-time.overdue{font-weight:600;background-color:#ed4014;border-color:#ed4014}.project-panel .project-column>ul>li .column-task .task-item .task-progress .task-time.today{font-weight:500;background-color:#f90;border-color:#f90}.project-panel .project-column>ul>li .column-task .task-item .task-progress .task-time .taskfont{margin-right:3px;font-size:12px}.project-panel .project-column>ul>li .column-task .task-item .priority-color{position:absolute;top:12px;left:0;width:3px;height:42px;max-height:50%;border-radius:2px}.project-panel .project-column>ul>li .column-task .task-item.additem{cursor:default;padding:0}.project-panel .project-column>ul>li .column-task .task-item.complete{opacity:.5}.project-panel .project-column>ul>li .column-task .task-item.complete:hover{opacity:.8}.project-panel .project-column>ul>li .column-task .task-item.complete .task-head .task-title{text-decoration:line-through}.project-panel .project-column>ul>li .column-task .task-item.complete .task-desc,.project-panel .project-column>ul>li .column-task .task-item.complete .task-tags,.project-panel .project-column>ul>li .column-task .task-item.complete .task-users,.project-panel .project-column>ul>li .column-task .task-item.complete .task-progress,.project-panel .project-column>ul>li .column-task .task-item.complete .priority-color{display:none}.project-panel .project-column>ul>li .column-task .task-item.hidden{display:none}.project-panel .project-table{height:100%;margin-top:18px;overflow-x:auto}.project-panel .project-table .task-row{background-color:#fff;border-bottom:1px solid #F4F4F5;position:relative}.project-panel .project-table .task-row>div{display:flex;align-items:center;padding:8px 12px;border-right:1px solid #F4F4F5}.project-panel .project-table .task-row>div:first-child{padding-left:32px}.project-panel .project-table .task-row>div:last-child{border-right:0}.project-panel .project-table .task-row>div.complete .item-title{color:#aaa;text-decoration:line-through}.project-panel .project-table .task-row .priority-color{position:absolute;top:0;left:0;bottom:-1px;width:3px}.project-panel .project-table .project-table-head,.project-panel .project-table .project-table-body{min-width:800px;margin:0 32px 12px;border-radius:5px;border:1px solid #F4F4F5;border-bottom:0;overflow:hidden}.project-panel .project-table .project-table-head.project-table-hide .task-rows,.project-panel .project-table .project-table-body.project-table-hide .task-rows{display:none}.project-panel .project-table .project-table-head.project-table-hide .row-title .taskfont,.project-panel .project-table .project-table-body.project-table-hide .row-title .taskfont{transform:rotate(-90deg)}.project-panel .project-table .project-table-head .task-row>div{color:#888;font-size:13px;font-weight:500}.project-panel .project-table .project-table-head .task-row>div .sort{display:flex;align-items:center;cursor:pointer}.project-panel .project-table .project-table-head .task-row>div .task-sort{display:inline-block;width:14px;height:12px;margin-top:-1px;margin-left:1px;vertical-align:middle;overflow:hidden;cursor:pointer;position:relative}.project-panel .project-table .project-table-head .task-row>div .task-sort>i{display:block;height:6px;line-height:6px;overflow:hidden;position:absolute;color:#c5c8ce;transition:color .2s ease-in-out;font-size:16px}.project-panel .project-table .project-table-head .task-row>div .task-sort>i.on{color:#84c56a}.project-panel .project-table .project-table-head .task-row>div .task-sort>i:hover{color:inherit}.project-panel .project-table .project-table-head .task-row>div .task-sort>i:first-child{top:0}.project-panel .project-table .project-table-head .task-row>div .task-sort>i:last-child{bottom:0}.project-panel .project-table .project-table-body{transition:box-shadow .3s}.project-panel .project-table .project-table-body:hover{box-shadow:0 0 10px #e6ecfa}.project-panel .project-table .project-table-body .task-row>div{padding:10px 12px}.project-panel .project-table .project-table-body .task-row>div.row-title{font-size:14px;font-weight:500;color:#303133;padding-left:14px}.project-panel .project-table .project-table-body .task-row>div.row-title .taskfont{cursor:pointer;transition:transform .3s;font-size:12px}.project-panel .project-table .project-table-body .task-row>div.row-title .row-h1{padding-left:18px}.project-panel .project-table .project-table-body .task-row>div.row-title .row-num{color:#909399;padding-left:6px}.project-panel .project-table .project-table-body .task-row>div.row-name{align-items:flex-start;padding:12px 12px 12px 34px;line-height:24px}.project-panel .project-table .project-table-body .task-row>div.row-name .loading{height:24px}.project-panel .project-table .project-table-body .task-row>div.row-name .ivu-icon{cursor:pointer;font-size:16px}.project-panel .project-table .project-table-body .task-row>div.row-name .ivu-icon.sub-icon{font-size:16px;width:16px;height:16px;margin-top:4px;margin-left:-20px;margin-right:4px;color:#cfcfcf;transition:transform .2s}.project-panel .project-table .project-table-body .task-row>div.row-name .ivu-icon.sub-icon.active{transform:rotate(90deg)}.project-panel .project-table .project-table-body .task-row>div.row-name .ivu-icon.uncomplete{color:#ccc}.project-panel .project-table .project-table-body .task-row>div.row-name .item-title{flex:1;padding:0 22px 0 8px;cursor:pointer}.project-panel .project-table .project-table-body .task-row>div.row-name .item-title>span{font-size:12px;height:18px;min-width:20px;line-height:16px;padding:0 2px;border-radius:3px;color:#84c56a;border:1px solid #84C56A;display:inline-block;vertical-align:top;margin-top:3px;margin-right:3px;text-align:center}.project-panel .project-table .project-table-body .task-row>div.row-name .item-title>span.start{background-color:#ff70701a;border-color:#ff70701a;color:#ff7070}.project-panel .project-table .project-table-body .task-row>div.row-name .item-title>span.progress{background-color:#fc984b1a;border-color:#fc984b1a;color:#fc984b}.project-panel .project-table .project-table-body .task-row>div.row-name .item-title>span.test{background-color:#2f99ec1a;border-color:#2f99ec1a;color:#2f99ec}.project-panel .project-table .project-table-body .task-row>div.row-name .item-title>span.end{background-color:#0bc0371a;border-color:#0bc0371a;color:#0bc037}.project-panel .project-table .project-table-body .task-row>div.row-name .item-icons{display:flex;align-items:center;margin-left:4px;flex-shrink:0}.project-panel .project-table .project-table-body .task-row>div.row-name .item-icons .item-icon{display:flex;font-size:12px;margin-left:16px;color:#aaa;cursor:pointer}.project-panel .project-table .project-table-body .task-row>div.row-name .item-icons .item-icon .taskfont{font-size:12px}.project-panel .project-table .project-table-body .task-row>div.row-name .item-icons .item-icon>em{font-style:normal;margin-left:4px}.project-panel .project-table .project-table-body .task-row>div.row-column .el-dropdown,.project-panel .project-table .project-table-body .task-row>div.row-priority .el-dropdown{display:flex;align-items:center;overflow:hidden}.project-panel .project-table .project-table-body .task-row>div.row-column .task-column,.project-panel .project-table .project-table-body .task-row>div.row-column .task-priority,.project-panel .project-table .project-table-body .task-row>div.row-priority .task-column,.project-panel .project-table .project-table-body .task-row>div.row-priority .task-priority{cursor:pointer}.project-panel .project-table .project-table-body .task-row>div.row-column .task-column{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-panel .project-table .project-table-body .task-row>div.row-user{padding:8px}.project-panel .project-table .project-table-body .task-row>div.row-user>ul{height:32px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:flex;align-items:center;cursor:pointer}.project-panel .project-table .project-table-body .task-row>div.row-user>ul>li{max-width:100%;list-style:none;display:inline-block;margin-left:-6px}.project-panel .project-table .project-table-body .task-row>div.row-user>ul>li:first-child{margin-left:0}.project-panel .project-table .project-table-body .task-row>div.row-user>ul>li.no-owner{height:32px;display:flex;align-items:center}.project-panel .project-table .project-table-body .task-row>div.row-time .task-time{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}.project-panel .project-table .project-table-body .task-row>div.row-time .task-time.overdue,.project-panel .project-table .project-table-body .task-row>div.row-time .task-time.today{color:#fff;padding:0 4px;border:1px solid transparent;font-size:13px;border-radius:3px}.project-panel .project-table .project-table-body .task-row>div.row-time .task-time.overdue{font-weight:600;background-color:#ed4014;border-color:#ed4014}.project-panel .project-table .project-table-body .task-row>div.row-time .task-time.today{font-weight:500;background-color:#f90;border-color:#f90}.project-panel .project-table .project-table-body .task-rows .task-rows{position:relative;overflow:hidden}.project-panel .project-table .project-table-body .task-rows .task-rows:before{content:"";position:absolute;top:0;left:0;right:0;box-shadow:#00000014 0 0 8px 1px;z-index:1}.project-panel .project-table .project-table-body .task-rows .task-rows .task-row{background-color:#fcfcfd}.project-panel .project-table .project-table-body .task-rows .task-rows .task-row .priority-color{display:none}.project-panel .project-table .project-table-body .task-rows .task-rows .task-row>div.row-name{padding-left:56px}.project-panel .project-table .project-table-body .task-rows .task-rows .task-row>div.row-name .item-title{color:#6b6e72}.project-panel .project-table .project-table-body .task-rows .task-rows .task-row>div.row-column>div,.project-panel .project-table .project-table-body .task-rows .task-rows .task-row>div.row-priority>div{display:none}.project-panel .project-table .project-table-body .task-rows .task-rows .task-add-row{background-color:#fcfcfd}.project-panel .project-table .project-table-body .task-rows .task-rows .task-add-row>div.row-add{padding-left:56px}.project-panel .project-gantt{height:100%;position:relative}.project-panel-more-dropdown-menu>li .item{display:flex;align-items:center}.project-panel-more-dropdown-menu>li .item>i{width:18px;height:18px;line-height:18px;font-size:18px;margin-right:8px;padding:0;color:#bbb}.project-panel-more-dropdown-menu>li .item>i.ivu-icon{font-size:16px}.project-panel-wait-remove{margin-top:6px}.project-panel-wait-remove>li{display:flex;align-items:center;list-style:none;line-height:26px}.project-panel-wait-remove>li:first-child{font-weight:600}.project-panel-flow-cascader{max-height:none!important}.project-panel-flow-cascader .ivu-cascader-menu{height:auto;max-height:360px;overflow:auto}.project-panel-flow-cascader .ivu-cascader-menu-item{color:#606266!important}.project-panel-flow-cascader .ivu-cascader-menu-item.start{color:#ff7070!important}.project-panel-flow-cascader .ivu-cascader-menu-item.progress{color:#fc984b!important}.project-panel-flow-cascader .ivu-cascader-menu-item.test{color:#2f99ec!important}.project-panel-flow-cascader .ivu-cascader-menu-item.end{color:#0bc037!important}.project-panel-flow-cascader .ivu-cascader-menu-item.user-0{margin-top:12px;position:relative}.project-panel-flow-cascader .ivu-cascader-menu-item.user-0:before{content:"";position:absolute;top:-6px;left:0;right:0;border-top:1px solid #EBEEF5}.project-panel-flow-cascader .ivu-cascader-menu-item:hover.project-panel-flow-cascader-item.start,.project-panel-flow-cascader .ivu-cascader-menu-item.ivu-cascader-menu-item-active.project-panel-flow-cascader-item.start{background-color:#ff70701a}.project-panel-flow-cascader .ivu-cascader-menu-item:hover.project-panel-flow-cascader-item.progress,.project-panel-flow-cascader .ivu-cascader-menu-item.ivu-cascader-menu-item-active.project-panel-flow-cascader-item.progress{background-color:#fc984b1a}.project-panel-flow-cascader .ivu-cascader-menu-item:hover.project-panel-flow-cascader-item.test,.project-panel-flow-cascader .ivu-cascader-menu-item.ivu-cascader-menu-item-active.project-panel-flow-cascader-item.test{background-color:#2f99ec1a}.project-panel-flow-cascader .ivu-cascader-menu-item:hover.project-panel-flow-cascader-item.end,.project-panel-flow-cascader .ivu-cascader-menu-item.ivu-cascader-menu-item-active.project-panel-flow-cascader-item.end{background-color:#0bc0371a}@media (max-width: 768px){.project-panel .project-titbox{position:sticky;top:0;z-index:2;background-color:#fafafa;padding:12px 16px 4px}.project-panel .project-titbox .project-title{float:left;max-width:100%}.project-panel .project-titbox .project-title .project-back{flex-shrink:0;display:flex;align-items:center;justify-content:center;margin-left:-16px;width:52px}.project-panel .project-titbox .project-title .project-back>i{font-size:26px}.project-panel .project-titbox .project-title>h1{font-size:22px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.project-panel .project-titbox .project-icons{float:right;margin-left:24px;margin-top:4px;justify-content:flex-end}.project-panel .project-subbox{padding:0 16px}.project-panel .project-subbox .project-subtitle{word-break:break-all;text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.project-panel .project-subbox .project-switch{margin-left:0;justify-content:flex-end}.project-panel .project-column::-webkit-scrollbar{display:none}.project-panel .project-column>ul>li{width:320px}.project-panel .project-column>ul>li:first-child{margin-left:10px}.project-panel .project-column>ul>li:last-child{margin-right:10px}.project-panel .project-table .project-table-head,.project-panel .project-table .project-table-body{min-width:768px;margin:0 24px 12px}}.project-workflow{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;flex-direction:column}.project-workflow .workflow-title{color:#303133;font-size:20px;font-weight:500;line-height:1;padding:20px 20px 24px;display:flex;align-items:center}.project-workflow .workflow-title .title-icon{display:flex;align-items:center;width:14px;height:14px;margin-left:4px;margin-top:2px}.project-workflow .workflow-title .title-icon>i{cursor:pointer}.project-workflow .workflow-content{flex:1;padding:0 20px;overflow:auto}.project-workflow .workflow-content .ivu-collapse{min-width:700px}.project-workflow .workflow-content .ivu-collapse-header{display:flex;align-items:center}.project-workflow .workflow-content .workflow-item{flex:1;display:flex;align-items:center}.project-workflow .workflow-content .workflow-item .workflow-name{flex-shrink:0;margin-right:24px}.project-workflow .workflow-content .workflow-item .workflow-status{flex:1;display:flex;align-items:center}.project-workflow .workflow-content .workflow-item .workflow-status>div{height:24px;line-height:22px;margin-right:8px;padding:0 8px;border:1px solid #e8eaec;border-radius:3px;background:#f7f7f7;font-size:12px;vertical-align:middle;overflow:hidden}.project-workflow .workflow-content .workflow-item .workflow-status>div.start{background-color:#ff70701a;border-color:#ff70701a;color:#ff7070}.project-workflow .workflow-content .workflow-item .workflow-status>div.progress{background-color:#fc984b1a;border-color:#fc984b1a;color:#fc984b}.project-workflow .workflow-content .workflow-item .workflow-status>div.test{background-color:#2f99ec1a;border-color:#2f99ec1a;color:#2f99ec}.project-workflow .workflow-content .workflow-item .workflow-status>div.end{background-color:#0bc0371a;border-color:#0bc0371a;color:#0bc037}.project-workflow .workflow-content .workflow-item .workflow-save{margin:0 8px;flex-shrink:0}.project-workflow .workflow-content .workflow-item .workflow-save>button{height:26px;line-height:24px;padding:0 13px;font-size:13px;margin-right:4px}.project-workflow .workflow-no{flex:1;padding:0 20px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#999}.project-workflow .workflow-no>button{margin-top:18px}.project-workflow .taskflow-config{display:flex;max-height:800px}.project-workflow .taskflow-config .taskflow-config-table{display:flex;width:100%;border-radius:4px;box-shadow:1px 0 3px #0000001a}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-left-container{position:relative;flex-shrink:0;width:246px;padding-top:16px;padding-bottom:16px;overflow-x:scroll;-ms-overflow-style:none}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-left-container:after{content:"";position:absolute;top:0;right:0;bottom:0;z-index:1;border-right:1px solid #f4f4f5}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-column-header{position:absolute;top:0;left:0;right:0;height:58px;padding:0 20px;font-size:16px;font-weight:700;line-height:58px}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-column-header.left-header{top:16px}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-column-body{margin-top:58px;height:calc(100% - 58px)}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-block{width:100%;padding:12px 0}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-block.hr{position:relative}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-block.hr:after{content:"";position:absolute;top:0;left:0;right:0;z-index:1;border-top:1px solid #f4f4f5}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-block .taskflow-config-table-block-title{padding:0 20px;height:40px;color:#8c8c8c;line-height:40px}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-block .ivu-radio-group{display:block;text-align:center}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-block .ivu-radio-group .ivu-radio-group-item{position:relative;display:flex;flex-direction:column;justify-content:center;width:100%;padding:0 20px;height:58px}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-block .ivu-checkbox-group{display:block;text-align:center}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-block .ivu-checkbox-group .ivu-checkbox-group-item,.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-block .taskflow-config-table-block-item{position:relative;display:flex;flex-direction:column;justify-content:center;width:100%;padding:0 20px;height:58px}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-block .taskflow-config-table-block-item.with-indicator:before{content:"";position:absolute;left:0;top:50%;transform:translateY(-50%);height:20px;width:4px;border-radius:4px}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-block .taskflow-config-table-block-item .title{font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-block .taskflow-config-table-block-item .subtitle{margin-top:2px;font-size:12px;color:#8c8c8c;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-block .taskflow-config-table-block-item.center{align-items:center}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-block .taskflow-config-table-block-item.radio-item>span{display:none}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-block .taskflow-config-table-block-item .transform-status-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-right-container{flex-grow:1;flex-direction:row;padding-top:16px;padding-bottom:16px;overflow-x:auto;overflow-y:hidden}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-list-wrapper,.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-right-container{display:flex}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column{position:relative;flex-shrink:0;width:210px;height:100%;margin-bottom:16px;margin-right:16px;border-radius:4px}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column:first-child{margin-left:20px}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column:hover .status-label-with-menu .more{opacity:1}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.addnew{display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px dashed #d9d9d9;cursor:pointer;color:#8c8c8c}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.addnew:hover{color:#777;border-color:#bfbfbf}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.column-border{border-width:1px;border-style:solid}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.start{border-color:#ff707033}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.start:hover{border-color:#ff7070b3}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.start .ivu-radio-checked .ivu-radio-inner{border-color:#ff7070;box-shadow:none}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.start .ivu-radio-inner:after{background-color:#ff7070}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.start .ivu-checkbox-checked .ivu-checkbox-inner{border-color:#ff7070;background-color:#ff7070}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.progress{border-color:#fc984b33}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.progress:hover{border-color:#fc984bb3}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.progress .ivu-radio-checked .ivu-radio-inner{border-color:#fc984b;box-shadow:none}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.progress .ivu-radio-inner:after{background-color:#fc984b}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.progress .ivu-checkbox-checked .ivu-checkbox-inner{border-color:#fc984b;background-color:#fc984b}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.test{border-color:#2f99ec33}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.test:hover{border-color:#2f99ecb3}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.test .ivu-radio-checked .ivu-radio-inner{border-color:#2f99ec;box-shadow:none}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.test .ivu-radio-inner:after{background-color:#2f99ec}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.test .ivu-checkbox-checked .ivu-checkbox-inner{border-color:#2f99ec;background-color:#2f99ec}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.end{border-color:#0bc03733}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.end:hover{border-color:#0bc037b3}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.end .ivu-radio-checked .ivu-radio-inner{border-color:#0bc037;box-shadow:none}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.end .ivu-radio-inner:after{background-color:#0bc037}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.end .ivu-checkbox-checked .ivu-checkbox-inner{border-color:#0bc037;background-color:#0bc037}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column .ivu-checkbox-disabled.ivu-checkbox-checked .ivu-checkbox-inner{background-color:#f3f3f3!important;border-color:#dcdee2!important}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-item{display:flex;align-items:center;padding:8px;height:58px;line-height:58px;cursor:move}.project-workflow .taskflow-config .taskflow-config-table .status-label-with-menu{max-width:100%;display:inline-flex;align-items:center;border-radius:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;position:relative;padding:0 32px;width:200px;height:36px;line-height:32px;font-size:14px;font-weight:400;justify-content:center}.project-workflow .taskflow-config .taskflow-config-table .status-label-with-menu:hover{font-weight:700}.project-workflow .taskflow-config .taskflow-config-table .status-label-with-menu.start{background-color:#ff70701a;color:#ff7070}.project-workflow .taskflow-config .taskflow-config-table .status-label-with-menu.progress{background-color:#fc984b1a;color:#fc984b}.project-workflow .taskflow-config .taskflow-config-table .status-label-with-menu.test{background-color:#2f99ec1a;color:#2f99ec}.project-workflow .taskflow-config .taskflow-config-table .status-label-with-menu.end{background-color:#0bc0371a;color:#0bc037}.project-workflow .taskflow-config .taskflow-config-table .status-label-with-menu .name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-workflow .taskflow-config .taskflow-config-table .status-label-with-menu .more{cursor:pointer;position:absolute;top:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;width:38px;font-size:18px;font-weight:400!important;opacity:.2;transition:opacity .3s}.project-workflow .taskflow-config .taskflow-config-table .status-label-with-menu .more.opacity{opacity:1}.project-workflow .taskflow-config .taskflow-config-table .status-label-with-menu .more .more-icon{display:flex;align-items:center}.taskflow-config-more-dropdown-menu .users{display:flex;padding:6px 0;margin:0 -8px;overflow:auto}.taskflow-config-more-dropdown-menu .users .common-avatar{max-width:100%;margin-right:-5px}.taskflow-config-more-dropdown-menu .item{display:flex;align-items:center}.taskflow-config-more-dropdown-menu .delete{color:red}.task-add .head{display:flex;align-items:center;padding:8px 0;margin-bottom:20px;position:relative}.task-add .head .ivu-cascader .ivu-cascader-label{width:auto;padding:0;font-size:15px;display:flex;align-items:center}.task-add .head .ivu-cascader .ivu-cascader-label:after{transition:all .2s;padding:6px;font-family:Ionicons,serif;content:"\f116";opacity:1}.task-add .head .ivu-cascader .ivu-cascader-arrow{display:none}.task-add .head .ivu-cascader .ivu-input{padding:4px 0;border:0;box-shadow:none;font-size:15px}.task-add .head .ivu-cascader .ivu-cascader-not-found-tip{padding:6px 12px}.task-add .head.empty .ivu-cascader .ivu-cascader-label:after{opacity:0}.task-add .head.visible .ivu-cascader .ivu-cascader-label:after{transform:rotate(180deg)}.task-add .task-add-form .title .ivu-input,.task-add .task-add-advanced .title .ivu-input{font-weight:500;font-size:24px;padding:4px 0;line-height:1.4;resize:none;border-color:transparent}.task-add .task-add-form .title .ivu-input:focus,.task-add .task-add-advanced .title .ivu-input:focus{box-shadow:none}.task-add .task-add-form .desc,.task-add .task-add-advanced .desc{margin-top:24px;overflow:auto}.task-add .task-add-form .desc div[contenteditable=true],.task-add .task-add-advanced .desc div[contenteditable=true]{outline:none}.task-add .task-add-form .desc .mce-content-body img,.task-add .task-add-advanced .desc .mce-content-body img{max-width:100%}.task-add .task-add-form .desc .mce-content-body pre,.task-add .task-add-advanced .desc .mce-content-body pre{padding:14px;margin:7px 0;overflow:auto;background:#f5f2f0;border-radius:5px}.task-add .task-add-form .desc .mce-content-body[data-mce-placeholder]:not(.mce-visualblocks):before,.task-add .task-add-advanced .desc .mce-content-body[data-mce-placeholder]:not(.mce-visualblocks):before{color:#bbb}.task-add .task-add-form .advanced-option,.task-add .task-add-advanced .advanced-option{padding-top:42px;z-index:1;display:flex;align-items:center}.task-add .task-add-form .advanced-option>button,.task-add .task-add-advanced .advanced-option>button{transition:margin .2s}.task-add .task-add-form .advanced-option>button.advanced,.task-add .task-add-advanced .advanced-option>button.advanced{margin-left:24px}.task-add .task-add-form .advanced-option>button:focus,.task-add .task-add-advanced .advanced-option>button:focus{box-shadow:none}.task-add .task-add-form .advanced-option .advanced-priority,.task-add .task-add-advanced .advanced-option .advanced-priority{display:flex;align-items:center;margin-left:24px;height:34px;overflow-y:hidden;overflow-x:auto}.task-add .task-add-form .advanced-option .advanced-priority::-webkit-scrollbar,.task-add .task-add-advanced .advanced-option .advanced-priority::-webkit-scrollbar{display:none}.task-add .task-add-form .advanced-option .advanced-priority>li,.task-add .task-add-advanced .advanced-option .advanced-priority>li{list-style:none;margin-left:3px}.task-add .task-add-form .advanced-option .advanced-priority>li .taskfont,.task-add .task-add-advanced .advanced-option .advanced-priority>li .taskfont{font-size:34px;cursor:pointer}.task-add .task-add-form .advanced-option .advanced-time,.task-add .task-add-advanced .advanced-option .advanced-time{display:flex;align-items:center;margin-left:20px;position:relative;cursor:pointer}.task-add .task-add-form .advanced-option .advanced-time .ivu-icon,.task-add .task-add-advanced .advanced-option .advanced-time .ivu-icon{font-size:32px}.task-add .task-add-form .advanced-option .advanced-time>em,.task-add .task-add-advanced .advanced-option .advanced-time>em{position:absolute;top:-5px;left:16px;font-family:Monospaced Number,"serif";transform:scale(.8);height:20px;min-width:20px;line-height:20px;border-radius:10px;background:#84C56A;color:#fff;text-align:center;padding:0 6px;font-size:12px;font-style:normal;white-space:nowrap;box-shadow:0 0 0 1px #fff}.task-add .task-add-advanced{margin:-16px 0 0;padding:46px 32px 6px;border-radius:8px;border:1px solid #e8e8e8}.task-add .task-add-advanced .subtasks{margin-bottom:24px;padding:12px 16px;border-radius:6px;background-color:#f8f8f8}.task-add .task-add-advanced .subtasks .enter-input.empty .ivu-input{background:transparent;border-color:transparent}.task-add .task-add-advanced .subtasks .enter-input.empty .ivu-input:hover,.task-add .task-add-advanced .subtasks .enter-input.empty .ivu-input:focus{box-shadow:none}.task-add .task-add-advanced .subtasks .sublist .ivu-row{margin-bottom:12px}.task-add .task-add-advanced .subtasks .sublist .ivu-row>div{padding-right:7px}.task-add .task-add-advanced .subtasks .sublist .ivu-row>div:last-child{padding-right:0}.task-add .task-add-advanced .ivu-date-picker{width:100%}.task-add .task-add-assist{margin-top:6px;display:flex;align-items:center;justify-content:flex-end}.task-add .task-add-assist .ivu-icon{font-size:16px;color:#909399}.task-add .ivu-modal-footer{padding:26px 0 22px!important}@media (max-width: 768px){.task-add .task-add-form .advanced-option,.task-add .task-add-advanced .advanced-option{width:calc(100% + 8px);padding-right:8px;justify-content:space-between}.task-add .task-add-form .advanced-option>button.advanced,.task-add .task-add-advanced .advanced-option>button.advanced{margin-left:0}.task-add .task-add-form .advanced-option .advanced-priority,.task-add .task-add-advanced .advanced-option .advanced-priority{margin-left:8px}.task-add .task-add-form .advanced-option .advanced-time,.task-add .task-add-advanced .advanced-option .advanced-time{margin-left:4px}}.task-add-simple{padding:12px}.task-add-simple .ivu-input-wrapper{display:none}.task-add-simple .add-placeholder{cursor:pointer;color:#888;margin:-12px;padding:12px}.task-add-simple .add-placeholder .ivu-icon{margin-right:4px}.task-add-simple .add-placeholder:hover{color:#606266}.task-add-simple .priority{display:none;align-items:center;min-height:22px;margin-top:10px;margin-bottom:-3px}.task-add-simple .priority>ul{flex:1;display:flex;align-items:center}.task-add-simple .priority>ul>li{list-style:none;margin-right:3px}.task-add-simple .priority>ul>li .taskfont{font-size:22px;cursor:pointer}.task-add-simple .priority .ivu-icon{cursor:pointer;font-size:16px}.task-add-simple.active .ivu-input-wrapper{display:block}.task-add-simple.active .add-placeholder{display:none}.task-add-simple.active .priority{display:flex}.task-add-row{background-color:#fff;border-bottom:1px solid #F4F4F5;position:relative}.task-add-row>div{display:flex;padding:8px 12px;border-right:1px solid #F4F4F5}.task-add-row>div:last-child{border-right:0}.task-add-row>div.row-add{display:flex;flex-direction:column;justify-content:center;min-height:48px;padding-left:34px}.task-add-row>div.row-add .add-btn{display:block;cursor:pointer;opacity:.5;transition:opacity .3s}.task-add-row>div.row-add .add-btn .add-icon{font-size:16px;margin-right:8px}.task-add-row>div.row-add .add-btn:hover{opacity:1}.task-add-row>div.row-add .add-input{display:none;align-items:flex-start;border:1px solid #dcdee2;border-radius:4px;color:#606266;background-color:#fff}.task-add-row>div.row-add .add-input:hover{border-color:#57a3f3}.task-add-row>div.row-add .add-input textarea{border-color:transparent;resize:none}.task-add-row>div.row-add .add-input textarea:focus{box-shadow:none}.task-add-row>div.row-add .add-input .priority{margin:0 4px;display:flex;align-items:center;height:31px}.task-add-row>div.row-add .add-input .priority>ul{flex:1;display:flex;align-items:center}.task-add-row>div.row-add .add-input .priority>ul>li{list-style:none;margin-right:4px}.task-add-row>div.row-add .add-input .priority>ul>li .taskfont{font-size:17px;cursor:pointer}.task-add-row>div.row-add .add-input .priority .ivu-icon{cursor:pointer;font-size:15px;margin:0 5px 0 3px}.task-add-row>div.row-add.active{padding-top:7px;padding-bottom:7px}.task-add-row>div.row-add.active .add-btn{display:none}.task-add-row>div.row-add.active .add-input{display:flex}.task-archived{position:absolute;top:0;left:0;right:0;bottom:0;padding:20px;display:flex;flex-direction:column}.task-archived .archived-title{color:#303133;font-size:20px;font-weight:500;line-height:1;margin-bottom:24px;display:flex;align-items:center}.task-archived .archived-title .title-icon{display:flex;align-items:center;width:14px;height:14px;margin-left:4px;margin-top:2px}.task-archived .archived-title .title-icon>i{cursor:pointer}.task-archived .table-page-box{flex:1;height:0}.task-deleted{position:absolute;top:0;left:0;right:0;bottom:0;padding:20px;display:flex;flex-direction:column}.task-deleted .deleted-title{color:#303133;font-size:20px;font-weight:500;line-height:1;margin-bottom:24px;display:flex;align-items:center}.task-deleted .deleted-title .title-icon{display:flex;align-items:center;width:14px;height:14px;margin-left:4px;margin-top:2px}.task-deleted .deleted-title .title-icon>i{cursor:pointer}.task-deleted .table-page-box{flex:1;height:0}.task-detail{display:flex;flex-direction:column;margin:0 -32px 12px -10px;padding:0 22px 12px 0;min-height:120px}.task-detail .task-info{flex:3;display:flex;flex-direction:column;position:relative}.task-detail .task-info .head{display:flex;align-items:center;height:42px;padding-bottom:10px;color:#888;position:relative}.task-detail .task-info .head:before{content:"";position:absolute;left:36px;right:0;bottom:0;height:1px;background-color:#f4f5f5}.task-detail .task-info .head .task-menu-icon{margin-right:18px;display:flex;align-items:center}.task-detail .task-info .head .task-menu-icon .ivu-icon{font-size:18px}.task-detail .task-info .head .task-menu-icon .loading{width:18px;height:18px}.task-detail .task-info .head .task-menu-icon .loading .common-loading{width:16px;height:16px}.task-detail .task-info .head .task-menu-icon .uncomplete{color:#888}.task-detail .task-info .head .flow{display:flex;align-items:center;margin-right:10px}.task-detail .task-info .head .flow>span{font-size:14px;height:26px;line-height:24px;padding:0 8px;border-radius:4px;color:#84c56a;border:1px solid #84C56A;display:inline-block;text-align:center;cursor:pointer;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.task-detail .task-info .head .flow>span.archived{background-color:#7f7f7f1a;border-color:#7f7f7f1a;color:#7f7f7f}.task-detail .task-info .head .flow>span.start{background-color:#ff70701a;border-color:#ff70701a;color:#ff7070}.task-detail .task-info .head .flow>span.progress{background-color:#fc984b1a;border-color:#fc984b1a;color:#fc984b}.task-detail .task-info .head .flow>span.test{background-color:#2f99ec1a;border-color:#2f99ec1a;color:#2f99ec}.task-detail .task-info .head .flow>span.end{background-color:#0bc0371a;border-color:#0bc0371a;color:#0bc037}.task-detail .task-info .head .nav{flex:1;display:flex;align-items:center;font-size:12px;width:0;height:40px;overflow:auto}.task-detail .task-info .head .nav::-webkit-scrollbar{display:none}.task-detail .task-info .head .nav>p{display:flex;align-items:center;padding-right:5px}.task-detail .task-info .head .nav>p>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.task-detail .task-info .head .nav>p:after{content:"/";padding-left:5px}.task-detail .task-info .head .nav>p:last-child:after{display:none}.task-detail .task-info .head .function{display:flex;align-items:center;margin:0 32px}.task-detail .task-info .head .function .pick{margin-left:12px;margin-right:10px}.task-detail .task-info .head .function .open{margin-top:-2px;margin-left:12px;font-size:22px;cursor:pointer}.task-detail .task-info .head .function .menu{margin-left:12px;display:flex;align-items:center}.task-detail .task-info .head .function .menu .task-menu-icon{margin-right:0}.task-detail .task-info .head .function .menu .ivu-icon{font-size:22px;color:#606266}.task-detail .task-info .scroller{margin-left:28px;padding-left:8px;padding-right:36px;overflow-x:hidden}.task-detail .task-info .scroller .title{margin-top:18px}.task-detail .task-info .scroller .title .ivu-input{font-weight:500;font-size:24px;padding:4px 0;line-height:1.4;resize:none;border-color:transparent}.task-detail .task-info .scroller .title .ivu-input:focus{box-shadow:none}.task-detail .task-info .scroller .desc{margin-top:10px}.task-detail .task-info .scroller .desc div[contenteditable=true]{outline:none}.task-detail .task-info .scroller .desc .mce-content-body img{max-width:100%}.task-detail .task-info .scroller .desc .mce-content-body pre{padding:14px;margin:7px 0;overflow:auto;background:#f5f2f0;border-radius:5px}.task-detail .task-info .scroller .desc .mce-content-body[data-mce-placeholder]:not(.mce-visualblocks):before{color:#bbb}.task-detail .task-info .scroller .items{margin-top:12px}.task-detail .task-info .scroller .items .ivu-form-item{margin-bottom:10px}.task-detail .task-info .scroller .items .item-label{display:flex;align-items:center;color:#bbb}.task-detail .task-info .scroller .items .item-label .taskfont{margin-right:4px}.task-detail .task-info .scroller .items .item-content{margin-top:5px;margin-left:12px}.task-detail .task-info .scroller .items .item-content>li{display:flex;align-items:center;list-style:none;line-height:26px}.task-detail .task-info .scroller .items .item-content>li .el-dropdown{display:flex;cursor:pointer}.task-detail .task-info .scroller .items .item-content>li .task-priority{padding:0 7px}.task-detail .task-info .scroller .items .item-content>li .picker-time{display:flex;align-items:center;flex-wrap:wrap;line-height:26px}.task-detail .task-info .scroller .items .item-content>li .picker-time .time{cursor:pointer;margin-right:10px}.task-detail .task-info .scroller .items .item-content>li .picker-time .ivu-tag{flex-shrink:0;margin-right:10px;padding:0 4px;height:20px;line-height:18px}.task-detail .task-info .scroller .items .item-content>li .picker-time .ivu-tag .ivu-tag-text{display:flex;align-items:center}.task-detail .task-info .scroller .items .item-content>li .picker-time .ivu-tag .ivu-tag-text .taskfont{transform:scale(.9);font-size:14px;padding-right:3px}.task-detail .task-info .scroller .items .item-content.user{margin-top:1px;cursor:pointer}.task-detail .task-info .scroller .items .item-content.user .user-list{display:flex;align-items:center}.task-detail .task-info .scroller .items .item-content.user .user-list>div{margin-right:6px}.task-detail .task-info .scroller .items .item-content.file{margin-bottom:-3px}.task-detail .task-info .scroller .items .item-content.file>li{margin-bottom:2px}.task-detail .task-info .scroller .items .item-content.file>li.tip{color:#999}.task-detail .task-info .scroller .items .item-content.file>li .file-load{margin:0;padding:2px;width:16px;height:16px}.task-detail .task-info .scroller .items .item-content.file>li .file-ext{width:16px}.task-detail .task-info .scroller .items .item-content.file>li .file-name{color:#606266;padding-left:8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.task-detail .task-info .scroller .items .item-content.file>li .file-size{flex-shrink:0;padding-left:10px;height:24px;font-size:12px;color:#bbb}.task-detail .task-info .scroller .items .item-content.file>li .file-menu{display:flex;align-items:center;opacity:0;transition:all .3s;padding-left:12px}.task-detail .task-info .scroller .items .item-content.file>li .file-menu.show{opacity:1}.task-detail .task-info .scroller .items .item-content.file>li .file-menu i{font-size:14px;color:#aaa;transition:color .3s;cursor:pointer;padding:0 4px}.task-detail .task-info .scroller .items .item-content.file>li .file-menu i:hover{color:#777}.task-detail .task-info .scroller .items .item-content.file>li .file-menu i.del{font-size:13px}.task-detail .task-info .scroller .items .item-content.file>li .file-menu i.del:hover{color:red}.task-detail .task-info .scroller .items .item-content.file>li:hover .file-name{color:#303133}.task-detail .task-info .scroller .items .item-content.file>li:hover .file-menu{opacity:1}.task-detail .task-info .scroller .items .item-content.subtask>li{align-items:flex-start;margin-bottom:4px}.task-detail .task-info .scroller .items .item-content.subtask>li:last-child{margin-bottom:-6px}.task-detail .task-info .scroller .items .item-content.subtask>li:hover .subtask-time .clock{transform:translate(0);opacity:.7}.task-detail .task-info .scroller .items .item-content.subtask>li .subtask-icon{padding-top:1px;width:16px;height:26px;line-height:26px;margin-right:6px;display:flex;align-items:center;cursor:pointer}.task-detail .task-info .scroller .items .item-content.subtask>li .subtask-flow>span{font-size:12px;height:18px;min-width:20px;line-height:16px;padding:0 2px;border-radius:3px;color:#84c56a;border:1px solid #84C56A;display:inline-block;margin-right:3px;text-align:center;cursor:pointer}.task-detail .task-info .scroller .items .item-content.subtask>li .subtask-flow>span.start{background-color:#ff70701a;border-color:#ff70701a;color:#ff7070}.task-detail .task-info .scroller .items .item-content.subtask>li .subtask-flow>span.progress{background-color:#fc984b1a;border-color:#fc984b1a;color:#fc984b}.task-detail .task-info .scroller .items .item-content.subtask>li .subtask-flow>span.test{background-color:#2f99ec1a;border-color:#2f99ec1a;color:#2f99ec}.task-detail .task-info .scroller .items .item-content.subtask>li .subtask-flow>span.end{background-color:#0bc0371a;border-color:#0bc0371a;color:#0bc037}.task-detail .task-info .scroller .items .item-content.subtask>li .subtask-name{flex:1;margin-right:8px;display:flex}.task-detail .task-info .scroller .items .item-content.subtask>li .subtask-name .ivu-input{margin:-2px 0;padding:4px 0;resize:none;border-color:transparent;line-height:20px}.task-detail .task-info .scroller .items .item-content.subtask>li .subtask-name .ivu-input:focus{box-shadow:none}.task-detail .task-info .scroller .items .item-content.subtask>li .subtask-time{margin-right:8px}.task-detail .task-info .scroller .items .item-content.subtask>li .subtask-time .time{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;height:26px;line-height:26px;cursor:pointer}.task-detail .task-info .scroller .items .item-content.subtask>li .subtask-time .time.overdue{font-weight:600;color:#ed4014}.task-detail .task-info .scroller .items .item-content.subtask>li .subtask-time .time.today{font-weight:500;color:#f90}.task-detail .task-info .scroller .items .item-content.subtask>li .subtask-time .clock{margin:3px 2px;font-size:20px;transition:all .2s;transform:translate(50%);opacity:0}.task-detail .task-info .scroller .items .item-content.subtask>li .subtask-avatar{cursor:pointer}.task-detail .task-info .scroller .items .item-content.subtask>li .ivu-icon-ios-loading{animation:animation-icon-loading .6s infinite linear}.task-detail .task-info .scroller .items .item-content.nosub{margin-top:0}.task-detail .task-info .scroller .items .item-content.nosub>li .add-input,.task-detail .task-info .scroller .items .item-content.nosub>li .add-button{margin-top:-2px}.task-detail .task-info .scroller .add{margin-top:12px;margin-bottom:10px}.task-detail .task-info .scroller .add .el-dropdown{max-width:100%}.task-detail .task-info .scroller .add .el-dropdown .add-button>em{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.task-detail .task-info .scroller .add-input{margin-top:6px}.task-detail .task-info .scroller .add-input.loading .ivu-icon-ios-loading{animation:animation-icon-loading .6s infinite linear}.task-detail .task-info .scroller .add-button{cursor:pointer;color:#bbb;display:flex;align-items:center;margin-top:6px;height:32px;white-space:nowrap}.task-detail .task-info .scroller .add-button>i{font-size:14px;padding-right:8px}.task-detail .task-info .scroller .add-button>em{font-style:normal;padding-left:4px}.task-detail .task-info .scroller .add-button>em:after{content:"/";padding-left:4px}.task-detail .task-info .scroller .add-button>em:last-child:after{display:none}.task-detail .task-info .scroller .add-button:hover{color:#909399}.task-detail .task-info .upload{display:none}.task-detail .task-dialog{flex:2;flex-shrink:0;display:flex;flex-direction:column;justify-content:flex-end;margin-top:22px;position:relative}.task-detail .task-dialog .head{display:flex;align-items:center;height:42px;padding-bottom:10px;color:#888;position:relative}.task-detail .task-dialog .head:before{content:"";position:absolute;left:36px;right:0;bottom:0;height:1px;background-color:#f4f5f5}.task-detail .task-dialog .head .icon{width:18px;font-size:18px}.task-detail .task-dialog .head .nav{flex:1;display:flex;align-items:center;padding-left:18px;font-weight:500;color:#606266}.task-detail .task-dialog .head .nav>p{display:flex;align-items:center;margin-right:24px;cursor:pointer}.task-detail .task-dialog .head .nav>p.active{margin-top:-2px;font-size:16px;font-weight:600;color:#555;cursor:default}.task-detail .task-dialog .head .nav .refresh{display:flex;align-items:center;margin-left:-18px}.task-detail .task-dialog .head .nav .refresh>i{font-size:18px;cursor:pointer;opacity:.8;transition:opacity .2s}.task-detail .task-dialog .head .nav .refresh>i:hover{opacity:1}.task-detail .task-dialog .head .nav .refresh .common-loading{margin:3px;width:12px;height:12px}.task-detail .task-dialog .head .menu .menu-item{display:flex;align-items:center;line-height:24px}.task-detail .task-dialog .head .menu .menu-item .menu-load{margin-right:8px;width:14px;height:14px;display:flex}.task-detail .task-dialog .head .menu .menu-item>em{font-style:normal;padding-left:1px}.task-detail .task-dialog .head .menu .menu-item>i{margin-left:4px;font-size:14px}.task-detail .task-dialog .no-dialog{flex:1;display:flex;flex-direction:column;position:relative}.task-detail .task-dialog .no-dialog .no-tip{flex:1;display:none;margin-left:36px}.task-detail .task-dialog .no-dialog .no-input{position:relative;margin:22px 0 0 36px;background-color:#f4f5f7;padding:10px 4px 10px 6px;border-radius:10px}.task-detail .task-dialog .no-dialog .no-input .chat-input-box .chat-input-quick-emoji{right:0}.task-detail .task-dialog .no-dialog .no-input .chat-input-box .chat-input-wrapper{padding:0;background-color:#f4f5f7}.task-detail .task-dialog .no-dialog .no-input .chat-input-box .chat-input-wrapper .chat-toolbar>li.chat-record-recwave{background-color:#f4f5f7}.task-detail .task-dialog .no-dialog .drag-over{position:absolute;top:0;left:0;right:0;bottom:0;z-index:3;background-color:#ffffffc7;display:flex;align-items:center;justify-content:center}.task-detail .task-dialog .no-dialog .drag-over:before{content:"";position:absolute;top:0;left:36px;right:0;bottom:0;border:2px dashed #7b7b7b;border-radius:12px}.task-detail .task-dialog .no-dialog .drag-over .drag-text{padding:12px;font-size:18px;color:#606266}.task-detail .task-dialog .project-log{margin-left:36px}.task-detail .task-dialog .project-log .logs-activity{padding:22px 0 0}.task-detail .task-dialog .project-log .logs-activity>li{list-style:none;padding-top:0}.task-detail .task-dialog .project-log .logs-activity>li.logs-loading,.task-detail .task-dialog .project-log .logs-activity>li.logs-more,.task-detail .task-dialog .project-log .logs-activity>li.logs-none{height:59px;line-height:59px}.task-detail .task-dialog .project-log .logs-activity>li.logs-loading{display:flex;align-items:center}.task-detail .task-dialog .project-log .logs-activity>li.logs-loading .common-loading{width:22px;height:22px;margin:0}.task-detail .task-dialog .dialog-wrapper .dialog-scroller{padding-right:16px;padding-left:32px}.task-detail .task-dialog .dialog-wrapper .dialog-footer{padding:0 0 0 24px}.task-detail .task-dialog .dialog-wrapper .dialog-footer .chat-input-box .chat-input-quick-emoji{right:2px}.task-detail .task-load{margin-top:6px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:flex}.task-detail .task-load .common-loading{width:32px;height:32px}.task-detail.open-dialog{flex-direction:row}.task-detail.open-dialog .task-info{overflow:auto}.task-detail.open-dialog .task-info .head .function{margin-right:2px}.task-detail.open-dialog .task-dialog{margin:0 0 0 18px;min-width:320px;max-width:450px;border-left:1px solid #f4f5f5}.task-detail.open-dialog .task-dialog .head:before{left:18px}.task-detail.open-dialog .task-dialog .head .icon:before{display:none}.task-detail.open-dialog .task-dialog .head .nav{padding-left:0}.task-detail.open-dialog .task-dialog .head .nav>p{margin-right:28px}.task-detail.open-dialog .task-dialog .head .nav>p.active{font-size:18px}.task-detail.open-dialog .task-dialog .no-dialog .no-tip{display:flex;align-items:center;justify-content:center;margin-left:18px;color:#909399}.task-detail.open-dialog .task-dialog .no-dialog .no-input{margin:0 0 0 18px}.task-detail.open-dialog .task-dialog .dialog-wrapper{z-index:0}.task-detail.open-dialog .task-dialog .dialog-wrapper .dialog-footer{margin-bottom:0}.task-detail.open-dialog .task-dialog .project-log{position:absolute;top:40px;left:0;right:0;bottom:0;z-index:1;padding:8px;margin-left:8px;background-color:#fff;overflow:auto}.task-detail.open-dialog .task-dialog .project-log .logs-activity{padding:22px 0 0 10px}.task-detail.completed .task-info:before{content:"\f373";font-family:Ionicons,serif;pointer-events:none;position:absolute;top:0;right:13%;font-size:72px;color:#19be6b;opacity:.2;z-index:1}.task-detail-receive{padding:6px 6px 3px}.task-detail-receive .receive-title{font-size:14px}.task-detail-receive .receive-title .ivu-icon{font-size:16px;color:#f90;line-height:18px}.task-detail-receive .receive-time{margin-top:10px}.task-detail-receive .receive-time .ivu-date-picker{width:280px}.task-detail-receive .receive-bottom{text-align:right;margin-top:12px}.task-detail-receive .receive-bottom>button+button{margin-left:4px}.task-detail-delete-file-popover{max-width:200px}.task-detail-delete-file-popover .buttons{text-align:right;margin-top:12px}.task-detail-delete-file-popover .buttons .ivu-btn-small{font-size:12px}.task-detail-user-popper .ivu-poptip-body-content{overflow:visible}.task-detail-avatar-buttons{margin-top:12px;margin-bottom:4px;text-align:right;position:absolute;top:5px;right:14px}.task-detail-avatar-buttons>button{font-size:12px;transform:scale(.9)}.task-detail-loop>li{text-align:center}@media (max-width: 768px){.task-detail .task-info .scroller{overflow-x:auto}}.task-menu-icon{position:relative}.task-menu-icon .loading{width:16px;height:16px;display:flex;align-items:center;justify-content:center}.task-menu-icon .loading .common-loading{margin:0;width:14px;height:14px}.task-menu-icon .ivu-icon{cursor:pointer;font-size:16px;color:#ccc}.task-menu-icon .ivu-icon.completed{color:#84c56a}.task-operation-dropdown{position:absolute;top:0;left:0;width:0;opacity:0;z-index:-1}.task-operation-dropdown .task-operation-icon{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;cursor:pointer}.task-operation-more-dropdown>li.task-operation-more-warp{list-style:none}.task-operation-more-dropdown>li.task-operation-more-warp>ul{max-height:320px;overflow:auto}.task-operation-more-dropdown>li.task-operation-more-warp>ul::-webkit-scrollbar{display:none}.task-operation-more-dropdown>li.task-operation-more-warp>ul>li .item{display:flex;align-items:center}.task-operation-more-dropdown>li.task-operation-more-warp>ul>li .item>i{flex-shrink:0;width:18px;height:18px;line-height:18px;font-size:18px;margin-right:8px;padding:0;color:#bbb}.task-operation-more-dropdown>li.task-operation-more-warp>ul>li .item>i.ivu-icon{font-size:16px}.task-operation-more-dropdown>li.task-operation-more-warp>ul>li .flow{padding:4px 0}.task-operation-more-dropdown>li.task-operation-more-warp>ul>li .flow>i{margin-right:3px}.task-operation-more-dropdown>li.task-operation-more-warp>ul>li .flow>i.check{color:#84c56a}.task-operation-more-dropdown>li.task-operation-more-warp>ul>li .flow .flow-name{border-radius:4px;white-space:nowrap;padding:0 5px;height:20px;line-height:20px;font-size:12px;background:#f4f4f4;color:#595959}.task-operation-more-dropdown>li.task-operation-more-warp>ul>li .flow .flow-name.start{background-color:#ff70701a;border-color:#ff70701a;color:#ff7070}.task-operation-more-dropdown>li.task-operation-more-warp>ul>li .flow .flow-name.progress{background-color:#fc984b1a;border-color:#fc984b1a;color:#fc984b}.task-operation-more-dropdown>li.task-operation-more-warp>ul>li .flow .flow-name.test{background-color:#2f99ec1a;border-color:#2f99ec1a;color:#2f99ec}.task-operation-more-dropdown>li.task-operation-more-warp>ul>li .flow .flow-name.end{background-color:#0bc0371a;border-color:#0bc0371a;color:#0bc037}.task-operation-more-dropdown>li.task-operation-more-warp>ul>li.load-flow{display:flex;align-items:center;justify-content:center;padding:8px}.task-operation-more-dropdown>li.task-operation-more-warp>ul>li.load-flow .load-flow-warp{width:18px;height:18px}.task-operation-more-dropdown>li.task-operation-more-warp.medium>ul>li .flow .flow-name{height:24px;line-height:24px;padding:0 7px}.task-operation-more-dropdown>li.task-operation-more-warp.large>ul>li .flow .flow-name{font-size:13px;height:30px;line-height:30px;padding:0 8px}.task-priority{font-size:13px;display:inline-block;padding:2px 5px;border-radius:3px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:transparent;border:1px solid transparent}.team-management{position:absolute;top:0;left:0;right:0;bottom:0;padding:20px;display:flex;flex-direction:column;overflow:auto}.team-management .management-title{color:#303133;font-size:20px;font-weight:500;line-height:1;margin-bottom:24px;display:flex;align-items:center}.team-management .management-title .title-icon{display:flex;align-items:center;width:14px;height:14px;margin-left:4px;margin-top:2px}.team-management .management-title .title-icon>i{cursor:pointer}.team-management .management-box{flex:1;display:flex;min-width:500px;height:0}.team-management .management-box .management-department{width:239px;border-right:1px solid #efefef;flex-shrink:0;display:flex;flex-direction:column}.team-management .management-box .management-department>ul{flex:1;overflow:auto}.team-management .management-box .management-department>ul>li{list-style:none;padding:0;margin:0;height:40px;display:flex;align-items:center;cursor:pointer;overflow:hidden}.team-management .management-box .management-department>ul>li:hover,.team-management .management-box .management-department>ul>li.active{background-color:#ecf5ff}.team-management .management-box .management-department>ul>li.level-1{font-weight:500}.team-management .management-box .management-department>ul>li.level-2{margin-left:24px}.team-management .management-box .management-department>ul>li.level-3{margin-left:48px}.team-management .management-box .management-department>ul>li.level-4{margin-left:72px}.team-management .management-box .management-department>ul>li .department-icon{padding:8px;font-size:16px}.team-management .management-box .management-department>ul>li .department-title{flex:1;flex-shrink:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.team-management .management-box .management-department>ul>li .department-menu{display:inline-block;padding:12px;font-size:16px;transform:rotate(-90deg)}.team-management .management-box .management-department .department-buttons{margin-top:20px;display:flex;align-items:center;justify-content:center}.team-management .management-box .management-user{flex:1;width:0;display:flex;flex-direction:column;padding-left:20px}.team-management .team-email{display:flex;align-items:center}.team-management .team-email .ivu-icon{color:#84c56a;margin-left:6px;font-size:16px}.team-management .team-email .ivu-tag{height:18px;line-height:18px;padding:0 4px;margin-left:4px;zoom:.8;flex-shrink:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.team-management .table-page-box{flex:1;height:0}.team-department-add-dialog-group{display:flex;align-items:center}.team-department-add-dialog-group .dialog-name{flex:1;width:0;padding-right:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.team-department-checkin-item{margin-bottom:12px}.team-department-checkin-item>div{padding-right:12px}.team-department-checkin-item>div:last-child{padding-right:0}.team-table-department-warp{display:flex;align-items:center}.team-table-department-warp>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.team-table-department-warp .department-tag-num{background-color:#515a6e;border-radius:9px;color:#fff;cursor:pointer;flex-shrink:0;font-size:12px;height:18px;line-height:18px;margin-left:4px;min-width:18px;padding:0 5px;text-align:center;transform:scale(.9);transform-origin:right center}.update-log .uplog-head{display:flex;align-items:center}.update-log .uplog-head .uplog-title{display:inline-block;vertical-align:middle;font-size:18px;color:#303133;font-weight:500;margin-right:6px}.update-log .ivu-modal-body{padding:0 32px!important}.update-log .ivu-modal-body .uplog-body{max-height:240px;overflow-x:hidden}.update-log .ivu-modal-body .uplog-body .markdown-preview{margin:-20px -12px}.update-log .ivu-modal-body .uplog-body .markdown-preview h1{font-size:24px;margin-bottom:12px}.update-log .ivu-modal-body .uplog-body .markdown-preview h1:first-child{padding-top:0}.update-log .ivu-modal-body .uplog-body .markdown-preview h2{font-size:18px!important;padding-top:2px!important}.update-log .ivu-modal-body .uplog-body .markdown-preview ul li{padding:2px 0 2px 2px!important}.update-log .ivu-modal-body .uplog-body .markdown-preview ul li:after{top:10px!important;width:6px!important;height:6px!important}.update-log .ivu-modal-fullscreen .ivu-modal-body{padding:0 16px!important;margin:16px 0!important}.update-log .ivu-modal-fullscreen .ivu-modal-body .uplog-body{max-height:none;overflow-x:auto}.update-log .ivu-modal-fullscreen .ivu-modal-body .uplog-body .markdown-preview{margin:0}body.dark-mode-reverse .ivu-btn-primary,body.dark-mode-reverse .ivu-badge-count,body.dark-mode-reverse .common-right-bottom .common-right-bottom-link{color:#000}body.dark-mode-reverse .ivu-modal-mask{background-color:#e6e6e699}body.dark-mode-reverse .ivu-modal-content{box-shadow:0 4px 12px #ffffff26}body.dark-mode-reverse .ivu-message-notice-content{box-shadow:0 1px 6px #fff3;border:1px solid #e3e8ed}body.dark-mode-reverse .ivu-select-dropdown,body.dark-mode-reverse .ivu-notice-notice,body.dark-mode-reverse .ivu-tooltip-inner,body.dark-mode-reverse .ivu-poptip-inner{border:1px solid #e3e8ed;box-shadow:none}body.dark-mode-reverse .el-dropdown-menu{border-color:#e3e8ed;box-shadow:0 2px 12px #ffffff1a}body.dark-mode-reverse .el-tooltip__popper.is-light{border:1px solid #e3e8ed;box-shadow:0 1px 6px #fff3}body.dark-mode-reverse .common-avatar.avatar-wrapper .avatar-box .avatar-char{color:#000}body.dark-mode-reverse .common-drawer-overlay .overlay-body .overlay-close>a{color:#323232}body.dark-mode-reverse .common-drawer-overlay .overlay-body .overlay-close>a:hover{color:#000}body.dark-mode-reverse .file-content .content-body .tox .tox-edit-area__iframe,body.dark-mode-reverse .file-preview .content-body .tox .tox-edit-area__iframe{background-color:#000}body.dark-mode-reverse .file-content .content-body .teditor-loadedstyle .tox-sidebar-wrap,body.dark-mode-reverse .file-preview .content-body .teditor-loadedstyle .tox-sidebar-wrap{box-shadow:none}body.dark-mode-reverse .minder-editor-container .quickbar{border:1px solid #e3e8ed!important;box-shadow:3px 3px 10px #fff3!important}body.dark-mode-reverse .project-panel .project-titbox .project-icons>li.project-icon.active{color:#000}body.dark-mode-reverse .project-panel .project-column>ul>li .column-task .task-item .task-progress .task-time.overdue{color:#ed4014;background-color:transparent}body.dark-mode-reverse .project-panel .project-column>ul>li .column-task .task-item .task-progress .task-time.today{color:#f90;background-color:transparent}body.dark-mode-reverse .project-panel .project-table .project-table-body .task-row>div.row-time .task-time.overdue{color:#ed4014;background-color:transparent}body.dark-mode-reverse .project-panel .project-table .project-table-body .task-row>div.row-time .task-time.today{color:#f90;background-color:transparent}body.dark-mode-reverse .dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-avatar .icon-avatar{color:#1c1917}body.dark-mode-reverse .dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .main-title>h2{color:#555}body.dark-mode-reverse .dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head{background-color:#e1e1e1}body.dark-mode-reverse .dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-reply .reply-desc,body.dark-mode-reverse .dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text,body.dark-mode-reverse .dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-record,body.dark-mode-reverse .dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-meeting{color:#fff}body.dark-mode-reverse .dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-emoji>li{background-color:#f3f3f380}body.dark-mode-reverse .dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-emoji>li.hasme{background-color:#f3f3f3}body.dark-mode-reverse .dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head{background-color:#84c56a}body.dark-mode-reverse .dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-content .content-text>pre a{color:#0027a1}body.dark-mode-reverse .dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-content .content-text>pre .mention{color:#000}body.dark-mode-reverse .dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-content .content-text>pre .mention.file,body.dark-mode-reverse .dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-content .content-text>pre .mention[data-denotation-char="~"]{color:#0027a1!important}body.dark-mode-reverse .dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-emoji>li{background-color:#b2ff9380}body.dark-mode-reverse .dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-emoji>li.hasme{background-color:#b2ff93}body.dark-mode-reverse .dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-emoji>li .emoji-users:before{background-color:#000000b3}body.dark-mode-reverse .dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-emoji>li .emoji-users>ul>li{color:#000}body.dark-mode-reverse .dialog-group-info .group-info-user>ul>li .user-tag{color:#1c1917}body.dark-mode-reverse .file-icon:before{background-image:url(/js/build/other.0cd5a04c.svg)}body.dark-mode-reverse .file-icon.archive:before{background-image:url(/js/build/archive.12fcb5b5.svg)}body.dark-mode-reverse .file-icon.cad:before{background-image:url(/js/build/cad.868e2ca7.svg)}body.dark-mode-reverse .file-icon.code:before{background-image:url(/js/build/code.1f28156e.svg)}body.dark-mode-reverse .file-icon.document:before{background-image:url(/js/build/document.7a75f110.svg)}body.dark-mode-reverse .file-icon.drawio:before{background-image:url(/js/build/flow.0122e3f0.svg)}body.dark-mode-reverse .file-icon.excel:before{background-image:url(/js/build/excel.03422f0b.svg)}body.dark-mode-reverse .file-icon.flow:before{background-image:url(/js/build/flow.0122e3f0.svg)}body.dark-mode-reverse .file-icon.folder:before{background-image:url(/js/build/folder.f3036060.svg)}body.dark-mode-reverse .file-icon.folder.share:before{background-image:url(/js/build/folder-share.08f619a2.svg)}body.dark-mode-reverse .file-icon.media:before{background-image:url(/js/build/media.59a8ab73.svg)}body.dark-mode-reverse .file-icon.mind:before{background-image:url(/js/build/mind.8663d6b3.svg)}body.dark-mode-reverse .file-icon.ofd:before{background-image:url(/js/build/ofd.50e43c45.svg)}body.dark-mode-reverse .file-icon.pdf:before{background-image:url(/js/build/pdf.13216727.svg)}body.dark-mode-reverse .file-icon.picture:before{background-image:url(/js/build/picture.7c0acca9.svg)}body.dark-mode-reverse .file-icon.ppt:before{background-image:url(/js/build/ppt.0788eae8.svg)}body.dark-mode-reverse .file-icon.sheet:before{background-image:url(/js/build/sheet.74a69469.svg)}body.dark-mode-reverse .file-icon.tif:before{background-image:url(/js/build/tif.37ae91f2.svg)}body.dark-mode-reverse .file-icon.txt:before{background-image:url(/js/build/txt.13b9241a.svg)}body.dark-mode-reverse .file-icon.updir:before{background-image:url(/js/build/updir.39b387be.svg)}body.dark-mode-reverse .file-icon.upload:before{background-image:url(/js/build/upload.c7a709a7.svg)}body.dark-mode-reverse .file-icon.word:before{background-image:url(/js/build/word.41e80094.svg)}body.dark-mode-reverse .file-icon.wps:before{background-image:url(/js/build/wps.045449a7.svg)}body.dark-mode-reverse .page-login .login-body .login-box{box-shadow:none}body.dark-mode-reverse .page-manage .manage-box-menu .manage-box-dropdown .manage-box-title.menu-visible{box-shadow:0 1px 6px #fff3}body.dark-mode-reverse .page-dashboard .dashboard-wrapper .dashboard-block>li .block-title{color:#0009;font-size:12px}body.dark-mode-reverse .page-dashboard .dashboard-wrapper .dashboard-block>li .block-data .block-num{color:#000}body.dark-mode-reverse .page-dashboard .dashboard-wrapper .dashboard-block>li .block-data .taskfont{color:#000000b3}body.dark-mode-reverse .page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li .icon-avatar{color:#1c1917}body.dark-mode-reverse .page-messenger .messenger-wrapper .messenger-select .messenger-list>ul.dialog>li .dialog-box .dialog-text{color:#555}body.dark-mode-reverse .page-file .file-wrapper .file-navigator .ivu-btn{color:#000}body.dark-mode-reverse .page-index .page-warp{background-color:#efefef}body.dark-mode-reverse .page-index .page-warp .page-header .header-nav .header-nav-box .header-right-github,body.dark-mode-reverse .page-index .page-warp .page-header .header-nav .header-nav-box .header-right-uplog,body.dark-mode-reverse .page-index .page-warp .page-header .header-nav .header-nav-box .header-right-1 .header-right-1-dropdown,body.dark-mode-reverse .page-index .page-warp .page-header .header-nav .header-nav-box .header-right-2 .header-right-2-dropdown,body.dark-mode-reverse .page-index .page-warp .page-header .header-nav .header-nav-box .header-right-3,body.dark-mode-reverse .page-index .page-warp .page-header .header-content .header-title,body.dark-mode-reverse .page-index .page-warp .page-header .header-content .header-tips{color:#000}body.dark-mode-reverse .page-index .page-warp .page-header-bottom{background-color:#efefef}body.dark-mode-reverse .chat-input-box .chat-input-wrapper .ql-container .ql-editor{color:#ccc}body.dark-mode-reverse .chat-input-box .chat-input-wrapper .ql-container .ql-editor.ql-blank:before{color:#333}body.dark-mode-reverse .chat-input-box .chat-input-wrapper .ql-container .ql-editor .mention{color:#333}body.dark-mode-reverse .chat-input-box .chat-input-wrapper .chat-toolbar>li.chat-send .taskfont{color:#000} diff --git a/public/js/build/app.90cb6e79.js b/public/js/build/app.feefc813.js similarity index 99% rename from public/js/build/app.90cb6e79.js rename to public/js/build/app.feefc813.js index f3fda95b7..525adb16d 100644 --- a/public/js/build/app.90cb6e79.js +++ b/public/js/build/app.feefc813.js @@ -132,7 +132,7 @@ var HI={languageTypes:{zh:"\u7B80\u4F53\u4E2D\u6587","zh-CHT":"\u7E41\u9AD4\u4E2 `};Rn.prototype.strong=function(n){return""+n+""};Rn.prototype.em=function(n){return""+n+""};Rn.prototype.codespan=function(n){return""+n+""};Rn.prototype.br=function(){return this.options.xhtml?"
":"
"};Rn.prototype.del=function(n){return""+n+""};Rn.prototype.link=function(n,o,l){if(n=eS(this.options.sanitize,this.options.baseUrl,n),n===null)return l;var a='
",a};Rn.prototype.image=function(n,o,l){if(n=eS(this.options.sanitize,this.options.baseUrl,n),n===null)return l;var a=''+l+'":">",a};Rn.prototype.text=function(n){return n};function Ri(){}Ri.prototype.strong=Ri.prototype.em=Ri.prototype.codespan=Ri.prototype.del=Ri.prototype.text=function(n){return n};Ri.prototype.link=Ri.prototype.image=function(n,o,l){return""+l};Ri.prototype.br=function(){return""};function _i(n){this.tokens=[],this.token=null,this.options=n||kn.defaults,this.options.renderer=this.options.renderer||new Rn,this.renderer=this.options.renderer,this.renderer.options=this.options,this.slugger=new Yp}_i.parse=function(n,o){var l=new _i(o);return l.parse(n)};_i.prototype.parse=function(n){this.inline=new Or(n.links,this.options),this.inlineText=new Or(n.links,gi({},this.options,{renderer:new Ri})),this.tokens=n.reverse();for(var o="";this.next();)o+=this.tok();return o};_i.prototype.next=function(){return this.token=this.tokens.pop(),this.token};_i.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0};_i.prototype.parseText=function(){for(var n=this.token.text;this.peek().type==="text";)n+=` `+this.next().text;return this.inline.output(n)};_i.prototype.tok=function(){switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,qw(this.inlineText.output(this.token.text)),this.slugger);case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":{var n="",o="",l,a,i,r;for(i="",l=0;l?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(o)){var l=o;do this.seen[l]++,o=l+"-"+this.seen[l];while(this.seen.hasOwnProperty(o))}return this.seen[o]=0,o};function wn(n,o){if(o){if(wn.escapeTest.test(n))return n.replace(wn.escapeReplace,function(l){return wn.replacements[l]})}else if(wn.escapeTestNoEncode.test(n))return n.replace(wn.escapeReplaceNoEncode,function(l){return wn.replacements[l]});return n}wn.escapeTest=/[&<>"']/;wn.escapeReplace=/[&<>"']/g;wn.replacements={"&":"&","<":"<",">":">",'"':""","'":"'"};wn.escapeTestNoEncode=/[<>"']|&(?!#?\w+;)/;wn.escapeReplaceNoEncode=/[<>"']|&(?!#?\w+;)/g;function qw(n){return n.replace(/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,function(o,l){return l=l.toLowerCase(),l==="colon"?":":l.charAt(0)==="#"?l.charAt(1)==="x"?String.fromCharCode(parseInt(l.substring(2),16)):String.fromCharCode(+l.substring(1)):""})}function Xn(n,o){return n=n.source||n,o=o||"",{replace:function(l,a){return a=a.source||a,a=a.replace(/(^|[^\[])\^/g,"$1"),n=n.replace(l,a),this},getRegex:function(){return new RegExp(n,o)}}}function eS(n,o,l){if(n){try{var a=decodeURIComponent(qw(l)).replace(/[^\w:]/g,"").toLowerCase()}catch{return null}if(a.indexOf("javascript:")===0||a.indexOf("vbscript:")===0||a.indexOf("data:")===0)return null}o&&!tL.test(l)&&(l=eL(o,l));try{l=encodeURI(l).replace(/%25/g,"%")}catch{return null}return l}function eL(n,o){return td[" "+n]||(/^[^:]+:\/*[^/]*$/.test(n)?td[" "+n]=n+"/":td[" "+n]=tS(n,"/",!0)),n=td[" "+n],o.slice(0,2)==="//"?n.replace(/:[\s\S]*/,":")+o:o.charAt(0)==="/"?n.replace(/(:\/*[^/]*)[\s\S]*/,"$1")+o:n+o}var td={},tL=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function Ya(){}Ya.exec=Ya;function gi(n){for(var o=1,l,a;o=0&&f[e]==="\\";)v=!v;return v?"|":" |"}),a=l.split(/ \|/),i=0;if(a.length>o)a.splice(o);else for(;a.lengthAn error occurred:

"+wn(v.message+"",!0)+"
";throw v}}kn.options=kn.setOptions=function(n){return gi(kn.defaults,n),kn};kn.getDefaults=function(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:new Rn,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,xhtml:!1}};kn.defaults=kn.getDefaults();kn.Parser=_i;kn.parser=_i.parse;kn.Renderer=Rn;kn.TextRenderer=Ri;kn.Lexer=Ji;kn.lexer=Ji.lex;kn.InlineLexer=Or;kn.inlineLexer=Or.output;kn.Slugger=Yp;kn.parse=kn;jt.initHighlightingOnLoad();const rL=new kn.Renderer;var iL=kn.setOptions({renderer:rL,gfm:!0,tables:!0,breaks:!1,pedantic:!1,sanitize:!1,smartLists:!0,highlight:function(n){return jt.highlightAuto(n).value}}),aL=function(){var n=this,o=n.$createElement,l=n._self._c||o;return l("div",{ref:"preview",staticClass:"markdown-preview-warp"},[l("div",{class:`markdown-preview ${"markdown-theme-"+n.theme}`,domProps:{innerHTML:n._s(n.html)}}),l("div",{class:["preview-img",n.previewImgModal?"active":""]},[l("span",{staticClass:"close icon-close iconfont",on:{click:function(a){n.previewImgModal=!1}}}),l("img",{class:[n.previewImgMode],attrs:{src:n.previewImgSrc,alt:""}})])])},sL=[];const oL={name:"markdown-preview",props:{initialValue:{type:String,default:""},markedOptions:{type:Object,default:()=>({})},theme:{type:String,default:"light"},copyCode:{type:Boolean,default:!0},copyBtnText:{type:String,default:"\u590D\u5236\u4EE3\u7801"}},data(){return{html:"",previewImgModal:!1,previewImgSrc:"",previewImgMode:""}},mounted(){this.translateMarkdown()},methods:{tocLevel(n,o){let l=9999;return o.forEach(({level:a})=>{l=Math.min(l,a)}),l===9999?n:n-(l-1)},translateMarkdown(){let n=iL(this.initialValue,{sanitize:!1,...this.markedOptions}).replace(/href="/gi,'target="_blank" href="');if(this.copyCode&&(n=n.replace(/
/g,'
'+this.copyBtnText+"
").replace(/<\/pre>/g,"
")),/\[\[TOC\]\]/.test(n)){let o="";Ah.tocItems.forEach(l=>{o+=`
  • ${l.text}
  • `}),n=n.replace(/\[\[TOC\]\]/g,`
      ${o}
    `)}this.html=n,this.addCopyListener(),this.addImageClickListener()},addCopyListener(){setTimeout(()=>{const n=document.querySelectorAll(".code-block .copy-code");this.btns=n;for(let o=0,l=n.length;o{const a=n[o].parentNode.querySelectorAll("pre")[0].innerText,i=document.createElement("input");i.setAttribute("value",a),document.body.appendChild(i),i.select(),document.execCommand("copy"),document.body.removeChild(i),this.$emit("on-copy",a)}},600)},addImageClickListener(){const{imgs:n=[]}=this;if(n.length>0)for(let o=0,l=n.length;o{if(!!this.$refs.preview){this.imgs=this.$refs.preview.querySelectorAll("img");for(let o=0,l=this.imgs.length;o{const a=this.imgs[o].getAttribute("src");this.previewImage(a)}}},600)},previewImage(n){const o=new Image;o.src=n,o.onload=()=>{const l=o.naturalWidth;o.naturalHeight/l>1.4?this.previewImgMode="horizontal":this.previewImgMode="vertical",this.previewImgSrc=n,this.previewImgModal=!0}}},watch:{initialValue(){this.translateMarkdown()}}},a0={};var lL=lr(oL,aL,sL,!1,uL,"7c98e74e",null,null);function uL(n){for(let o in a0)this[o]=a0[o]}var dL=function(){return lL.exports}(),Xp={exports:{}},nS=function(o,l){return function(){for(var i=new Array(arguments.length),r=0;r=0)return;a==="set-cookie"?l[a]=(l[a]?l[a]:[]).concat([i]):l[a]=l[a]?l[a]+", "+i:i}}),l},o0=Zr,zL=o0.isStandardBrowserEnv()?function(){var o=/(msie|trident)/i.test(navigator.userAgent),l=document.createElement("a"),a;function i(r){var d=r;return o&&(l.setAttribute("href",d),d=l.href),l.setAttribute("href",d),{href:l.href,protocol:l.protocol?l.protocol.replace(/:$/,""):"",host:l.host,search:l.search?l.search.replace(/^\?/,""):"",hash:l.hash?l.hash.replace(/^#/,""):"",hostname:l.hostname,port:l.port,pathname:l.pathname.charAt(0)==="/"?l.pathname:"/"+l.pathname}}return a=i(window.location.href),function(d){var f=o0.isString(d)?i(d):d;return f.protocol===a.protocol&&f.host===a.host}}():function(){return function(){return!0}}();function Qp(n){this.message=n}Qp.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")};Qp.prototype.__CANCEL__=!0;var vc=Qp,id=Zr,WL=$L,HL=AL,UL=aS,KL=BL,GL=VL,YL=zL,Uf=oS,XL=_c,JL=vc,l0=function(o){return new Promise(function(a,i){var r=o.data,d=o.headers,f=o.responseType,v;function e(){o.cancelToken&&o.cancelToken.unsubscribe(v),o.signal&&o.signal.removeEventListener("abort",v)}id.isFormData(r)&&delete d["Content-Type"];var m=new XMLHttpRequest;if(o.auth){var c=o.auth.username||"",p=o.auth.password?unescape(encodeURIComponent(o.auth.password)):"";d.Authorization="Basic "+btoa(c+":"+p)}var _=KL(o.baseURL,o.url);m.open(o.method.toUpperCase(),UL(_,o.params,o.paramsSerializer),!0),m.timeout=o.timeout;function g(){if(!!m){var b="getAllResponseHeaders"in m?GL(m.getAllResponseHeaders()):null,E=!f||f==="text"||f==="json"?m.responseText:m.response,T={data:E,status:m.status,statusText:m.statusText,headers:b,config:o,request:m};WL(function(D){a(D),e()},function(D){i(D),e()},T),m=null}}if("onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(g)},m.onabort=function(){!m||(i(Uf("Request aborted",o,"ECONNABORTED",m)),m=null)},m.onerror=function(){i(Uf("Network Error",o,null,m)),m=null},m.ontimeout=function(){var E=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded",T=o.transitional||XL.transitional;o.timeoutErrorMessage&&(E=o.timeoutErrorMessage),i(Uf(E,o,T.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",m)),m=null},id.isStandardBrowserEnv()){var y=(o.withCredentials||YL(_))&&o.xsrfCookieName?HL.read(o.xsrfCookieName):void 0;y&&(d[o.xsrfHeaderName]=y)}"setRequestHeader"in m&&id.forEach(d,function(E,T){typeof r=="undefined"&&T.toLowerCase()==="content-type"?delete d[T]:m.setRequestHeader(T,E)}),id.isUndefined(o.withCredentials)||(m.withCredentials=!!o.withCredentials),f&&f!=="json"&&(m.responseType=o.responseType),typeof o.onDownloadProgress=="function"&&m.addEventListener("progress",o.onDownloadProgress),typeof o.onUploadProgress=="function"&&m.upload&&m.upload.addEventListener("progress",o.onUploadProgress),(o.cancelToken||o.signal)&&(v=function(b){!m||(i(!b||b&&b.type?new JL("canceled"):b),m.abort(),m=null)},o.cancelToken&&o.cancelToken.subscribe(v),o.signal&&(o.signal.aborted?v():o.signal.addEventListener("abort",v))),r||(r=null),m.send(r)})},sr=Zr,u0=ML,ZL=sS,QL={"Content-Type":"application/x-www-form-urlencoded"};function d0(n,o){!sr.isUndefined(n)&&sr.isUndefined(n["Content-Type"])&&(n["Content-Type"]=o)}function qL(){var n;return(typeof XMLHttpRequest!="undefined"||typeof process!="undefined"&&Object.prototype.toString.call(process)==="[object process]")&&(n=l0),n}function eN(n,o,l){if(sr.isString(n))try{return(o||JSON.parse)(n),sr.trim(n)}catch(a){if(a.name!=="SyntaxError")throw a}return(l||JSON.stringify)(n)}var mc={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:qL(),transformRequest:[function(o,l){return u0(l,"Accept"),u0(l,"Content-Type"),sr.isFormData(o)||sr.isArrayBuffer(o)||sr.isBuffer(o)||sr.isStream(o)||sr.isFile(o)||sr.isBlob(o)?o:sr.isArrayBufferView(o)?o.buffer:sr.isURLSearchParams(o)?(d0(l,"application/x-www-form-urlencoded;charset=utf-8"),o.toString()):sr.isObject(o)||l&&l["Content-Type"]==="application/json"?(d0(l,"application/json"),eN(o)):o}],transformResponse:[function(o){var l=this.transitional||mc.transitional,a=l&&l.silentJSONParsing,i=l&&l.forcedJSONParsing,r=!a&&this.responseType==="json";if(r||i&&sr.isString(o)&&o.length)try{return JSON.parse(o)}catch(d){if(r)throw d.name==="SyntaxError"?ZL(d,this,"E_JSON_PARSE"):d}return o}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(o){return o>=200&&o<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};sr.forEach(["delete","get","head"],function(o){mc.headers[o]={}});sr.forEach(["post","put","patch"],function(o){mc.headers[o]=sr.merge(QL)});var _c=mc,tN=Zr,nN=_c,rN=function(o,l,a){var i=this||nN;return tN.forEach(a,function(d){o=d.call(i,o,l)}),o},lS=function(o){return!!(o&&o.__CANCEL__)},c0=Zr,Kf=rN,iN=lS,aN=_c,sN=vc;function Gf(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new sN("canceled")}var oN=function(o){Gf(o),o.headers=o.headers||{},o.data=Kf.call(o,o.data,o.headers,o.transformRequest),o.headers=c0.merge(o.headers.common||{},o.headers[o.method]||{},o.headers),c0.forEach(["delete","get","head","post","put","patch","common"],function(i){delete o.headers[i]});var l=o.adapter||aN.adapter;return l(o).then(function(i){return Gf(o),i.data=Kf.call(o,i.data,i.headers,o.transformResponse),i},function(i){return iN(i)||(Gf(o),i&&i.response&&(i.response.data=Kf.call(o,i.response.data,i.response.headers,o.transformResponse))),Promise.reject(i)})},Wr=Zr,uS=function(o,l){l=l||{};var a={};function i(m,c){return Wr.isPlainObject(m)&&Wr.isPlainObject(c)?Wr.merge(m,c):Wr.isPlainObject(c)?Wr.merge({},c):Wr.isArray(c)?c.slice():c}function r(m){if(Wr.isUndefined(l[m])){if(!Wr.isUndefined(o[m]))return i(void 0,o[m])}else return i(o[m],l[m])}function d(m){if(!Wr.isUndefined(l[m]))return i(void 0,l[m])}function f(m){if(Wr.isUndefined(l[m])){if(!Wr.isUndefined(o[m]))return i(void 0,o[m])}else return i(void 0,l[m])}function v(m){if(m in l)return i(o[m],l[m]);if(m in o)return i(void 0,o[m])}var e={url:d,method:d,data:d,baseURL:f,transformRequest:f,transformResponse:f,paramsSerializer:f,timeout:f,timeoutMessage:f,withCredentials:f,adapter:f,responseType:f,xsrfCookieName:f,xsrfHeaderName:f,onUploadProgress:f,onDownloadProgress:f,decompress:f,maxContentLength:f,maxBodyLength:f,transport:f,httpAgent:f,httpsAgent:f,cancelToken:f,socketPath:f,responseEncoding:f,validateStatus:v};return Wr.forEach(Object.keys(o).concat(Object.keys(l)),function(c){var p=e[c]||r,_=p(c);Wr.isUndefined(_)&&p!==v||(a[c]=_)}),a},dS={version:"0.24.0"},lN=dS.version,qp={};["object","boolean","number","function","string","symbol"].forEach(function(n,o){qp[n]=function(a){return typeof a===n||"a"+(o<1?"n ":" ")+n}});var f0={};qp.transitional=function(o,l,a){function i(r,d){return"[Axios v"+lN+"] Transitional option '"+r+"'"+d+(a?". "+a:"")}return function(r,d,f){if(o===!1)throw new Error(i(d," has been removed"+(l?" in "+l:"")));return l&&!f0[d]&&(f0[d]=!0,console.warn(i(d," has been deprecated since v"+l+" and will be removed in the near future"))),o?o(r,d,f):!0}};function uN(n,o,l){if(typeof n!="object")throw new TypeError("options must be an object");for(var a=Object.keys(n),i=a.length;i-- >0;){var r=a[i],d=o[r];if(d){var f=n[r],v=f===void 0||d(f,r,n);if(v!==!0)throw new TypeError("option "+r+" must be "+v);continue}if(l!==!0)throw Error("Unknown option "+r)}}var dN={assertOptions:uN,validators:qp},cS=Zr,cN=aS,h0=kL,p0=oN,gc=uS,fS=dN,Es=fS.validators;function el(n){this.defaults=n,this.interceptors={request:new h0,response:new h0}}el.prototype.request=function(o){typeof o=="string"?(o=arguments[1]||{},o.url=arguments[0]):o=o||{},o=gc(this.defaults,o),o.method?o.method=o.method.toLowerCase():this.defaults.method?o.method=this.defaults.method.toLowerCase():o.method="get";var l=o.transitional;l!==void 0&&fS.assertOptions(l,{silentJSONParsing:Es.transitional(Es.boolean),forcedJSONParsing:Es.transitional(Es.boolean),clarifyTimeoutError:Es.transitional(Es.boolean)},!1);var a=[],i=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(o)===!1||(i=i&&p.synchronous,a.unshift(p.fulfilled,p.rejected))});var r=[];this.interceptors.response.forEach(function(p){r.push(p.fulfilled,p.rejected)});var d;if(!i){var f=[p0,void 0];for(Array.prototype.unshift.apply(f,a),f=f.concat(r),d=Promise.resolve(o);f.length;)d=d.then(f.shift(),f.shift());return d}for(var v=o;a.length;){var e=a.shift(),m=a.shift();try{v=e(v)}catch(c){m(c);break}}try{d=p0(v)}catch(c){return Promise.reject(c)}for(;r.length;)d=d.then(r.shift(),r.shift());return d};el.prototype.getUri=function(o){return o=gc(this.defaults,o),cN(o.url,o.params,o.paramsSerializer).replace(/^\?/,"")};cS.forEach(["delete","get","head","options"],function(o){el.prototype[o]=function(l,a){return this.request(gc(a||{},{method:o,url:l,data:(a||{}).data}))}});cS.forEach(["post","put","patch"],function(o){el.prototype[o]=function(l,a,i){return this.request(gc(i||{},{method:o,url:l,data:a}))}});var fN=el,hN=vc;function Fs(n){if(typeof n!="function")throw new TypeError("executor must be a function.");var o;this.promise=new Promise(function(i){o=i});var l=this;this.promise.then(function(a){if(!!l._listeners){var i,r=l._listeners.length;for(i=0;i v"+n._s(n.updateVersion))])],1),n.$Platform==="mac"?l("div",{staticClass:"notification-tip"},[n._v(n._s(n.$L("\u79BB\u6700\u65B0\u7248\u672C\u53EA\u6709\u4E00\u6B65\u4E4B\u9065\u4E86\uFF01\u91CD\u65B0\u542F\u52A8\u5E94\u7528\u5373\u53EF\u5B8C\u6210\u66F4\u65B0\u3002")))]):n._e()]),l("MarkdownPreview",{staticClass:"notification-body scrollbar-overlay",attrs:{initialValue:n.updateNote}}),l("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[l("Button",{attrs:{type:"default"},on:{click:function(a){n.updateShow=!1}}},[n._v(n._s(n.$L("\u7A0D\u540E")))]),l("Button",{attrs:{type:"primary",loading:n.updateIng},on:{click:n.updateQuitAndInstall}},[n._v(n._s(n.$L(n.$Platform==="mac"?"\u91CD\u65B0\u542F\u52A8":"\u7ACB\u5373\u5347\u7EA7")))])],1)],1)],2)},kN=[];const TN={name:"RightBottom",components:{MarkdownPreview:dL},data(){return{loadIng:0,subscribe:null,apiVersion:"",systemVersion:window.systemInfo.version,updateVersion:"",updateNote:"",updateShow:!1,updateBottomShow:!1,updateIng:!1,downloadUrl:""}},mounted(){this.checkVersion(),this.$Electron&&(this.subscribe=Xi.Store.subscribe("updateNotification",n=>{this.updateShow=!0}),this.$Electron.registerMsgListener("updateDownloaded",n=>{this.$store.state.clientNewVersion=n.version,this.updateVersion=n.version,this.updateNote=n.releaseNotes||this.$L("\u6CA1\u6709\u66F4\u65B0\u63CF\u8FF0\u3002"),this.updateShow=$A.strExists(this.updateNote,`[${this.updateVersion}-Release]`)}))},beforeDestroy(){this.subscribe&&(this.subscribe.unsubscribe(),this.subscribe=null)},watch:{updateShow(n){n&&(this.updateBottomShow=!0)}},computed:{isSoftware(){return this.$Electron||this.$isEEUiApp},showSSO(){return this.isSoftware&&["login"].includes(this.$route.name)},showDown(){return!this.$isEEUiApp&&this.windowLarge&&["login","index","manage-dashboard"].includes(this.$route.name)},showPrivacy(){return["127.0.0.1:2222","192.168.100.88:2222","dootask.com","www.dootask.com","t.hitosea.com"].includes($A.getDomain($A.apiUrl("../")))&&this.$isEEUiApp&&["login"].includes(this.$route.name)}},methods:{isNotServer(){let n=$A.getDomain(window.systemInfo.apiUrl);return this.isSoftware&&(n==""||n=="public")},checkVersion(){this.isNotServer()||(m0.get($A.apiUrl("system/version")).then(({status:n,data:o})=>{n===200&&(this.apiVersion=o.version||"",this.compareVersion(this.apiVersion,"0.19.0")===-1&&$A.modalWarning({title:"\u6E29\u99A8\u63D0\u793A",message:"\u670D\u52A1\u5668\u63A5\u53E3\u7248\u672C\u8FC7\u4F4E\uFF0C\u90E8\u5206\u529F\u80FD\u53EF\u80FD\u65E0\u6CD5\u6B63\u5E38\u4F7F\u7528\u3002"}),this.$Electron?this.$Electron.sendMessage("updateCheckAndDownload",{apiVersion:this.apiVersion}):this.getDownloadUrl(o.publish))}).catch(n=>{}),this.__checkVersion&&clearTimeout(this.__checkVersion),this.__checkVersion=setTimeout(this.checkVersion,600*1e3))},getDownloadUrl(n){if(!!$A.isJson(n))switch(n.provider){case"generic":this.downloadUrl=`${n.url}/latest`;break;case"github":(async o=>{let l="cacheAppdown::"+this.apiVersion,a=await $A.IDBJson(l),i=600;if(a.time&&a.time+i>Math.round(new Date().getTime()/1e3)){this.downloadUrl=a.data.html_url;return}this.loadIng>0||(this.loadIng++,m0.get(`https://api.github.com/repos/${n.owner}/${n.repo}/releases`).then(({status:r,data:d})=>{this.loadIng--,r===200&&$A.isArray(d)&&(a.time=Math.round(new Date().getTime()/1e3),a.data=d.find(({tag_name:f})=>this.compareVersion(this.tagVersion(f),this.apiVersion)===0)||{},$A.IDBSave(l,a),this.downloadUrl=a.data.html_url)}).catch(()=>{this.loadIng--}))})();break}},updateQuitAndInstall(){this.updateIng=!0,setTimeout(()=>{this.$Electron.sendMessage("updateQuitAndInstall")},301)},useSSOLogin(){Xi.Store.set("useSSOLogin",!0)},tagVersion(n){return n?$A.leftDelete(n.toLowerCase(),"v"):""},compareVersion(n,o){let l=0,a=0;if(n===o)return 0;const i=(r,d)=>{let f=d;for(;r[f]!=="."&&fv?1:-1;l=r+1,a=d+1}for(;l0)return 1;l=r+1}for(;a0)return-1;a=r+1}return 0}}},_0={};var MN=lr(TN,ON,kN,!1,PN,null,null,null);function PN(n){for(let o in _0)this[o]=_0[o]}var IN=function(){return MN.exports}();const $N="modulepreload",g0={},AN="/",yn=function(o,l){return!l||l.length===0?o():Promise.all(l.map(a=>{if(a=`${AN}${a}`,a in g0)return;g0[a]=!0;const i=a.endsWith(".css"),r=i?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${a}"]${r}`))return;const d=document.createElement("link");if(d.rel=i?"stylesheet":$N,i||(d.as="script",d.crossOrigin=""),d.href=a,document.head.appendChild(d),i)return new Promise((f,v)=>{d.addEventListener("load",f),d.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${a}`)))})})).then(()=>o())};var RN=function(){var n=this,o=n.$createElement,l=n._self._c||o;return l("Modal",{attrs:{mask:!1,"mask-closable":!1,"footer-hide":!0,"transition-names":["",""],"class-name":n.viewMode==="desktop"?"common-preview-image-view":"common-preview-image-swipe",fullscreen:""},model:{value:n.show,callback:function(a){n.show=a},expression:"show"}},[n.list.length>0?[n.viewMode==="desktop"?l("PreviewImageView",{attrs:{"initial-index":n.index,"url-list":n.list,infinite:""}}):n._e(),n.viewMode==="mobile"?l("PreviewImageSwipe",{attrs:{"initial-index":n.index,"url-list":n.list},on:{"on-destroy":function(a){n.show=!1}}}):n._e()]:n._e()],2)},LN=[];const NN=()=>yn(()=>import("./view.e8df30fb.js"),["js/build/view.e8df30fb.js","js/build/view.0cad54ff.css"]),FN=()=>yn(()=>import("./swipe.95eaa6f0.js"),["js/build/swipe.95eaa6f0.js","js/build/swipe.1e4c531a.css"]),BN={name:"PreviewImage",components:{PreviewImageSwipe:FN,PreviewImageView:NN},props:{value:{type:Boolean,default:!1},index:{type:Number,default:0},list:{type:Array,default:()=>[]},mode:{type:String,default:null}},data(){return{show:this.value}},watch:{value(n){this.show=n},show(n){this.value!==n&&this.$emit("input",n)}},computed:{viewMode(){return this.mode?this.mode:this.$store.state.windowLarge?"desktop":"mobile"}}},y0={};var jN=lr(BN,RN,LN,!1,VN,null,null,null);function VN(n){for(let o in y0)this[o]=y0[o]}var zN=function(){return jN.exports}(),WN=function(){var n=this,o=n.$createElement,l=n._self._c||o;return l("PreviewImage",{attrs:{index:n.previewImageIndex,list:n.previewImageList},model:{value:n.show,callback:function(a){n.show=a},expression:"show"}})},HN=[];const UN={name:"PreviewImageState",components:{PreviewImage:zN},computed:{...qi(["previewImageIndex","previewImageList"])},data(){return{show:!1}},watch:{show(n){n?(this.$store.state.previewImageIndex=Math.max(this.$store.state.previewImageIndex,0),this.$store.state.previewImageIndex=Math.min(this.$store.state.previewImageIndex,this.$store.state.previewImageList.length-1)):(this.$store.state.previewImageIndex=0,this.$store.state.previewImageList=[])},previewImageList(n){if(n.length>0)if($A.isEEUiApp){let o=Math.max(this.$store.state.previewImageIndex,0);o=Math.min(o,this.$store.state.previewImageList.length-1);let l=n.map(a=>$A.isJson(a)?$A.rightDelete(a.src,"_thumb.jpg"):$A.rightDelete(a,"_thumb.jpg"));$A.eeuiAppSendMessage({action:"picturePreview",position:o,paths:l})}else this.show=!0}}},b0={};var KN=lr(UN,WN,HN,!1,GN,null,null,null);function GN(n){for(let o in b0)this[o]=b0[o]}var YN=function(){return KN.exports}(),XN=function(){var n=this,o=n.$createElement,l=n._self._c||o;return l("div",{staticClass:"common-network-exception"},[n.type==="alert"?[n.show?l("Alert",{attrs:{type:"error","show-icon":"",closable:""}},[n._v(n._s(n.$L("\u7F51\u7EDC\u8FDE\u63A5\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u8BBE\u7F6E\u3002")))]):n._e()]:n.type==="modal"?[l("Modal",{attrs:{width:416,closable:!1,"footer-hide":!0,"class-name":"common-network-exception-modal"},model:{value:n.show,callback:function(a){n.show=a},expression:"show"}},[l("div",{staticClass:"ivu-modal-confirm"},[l("div",{staticClass:"ivu-modal-confirm-head"},[l("div",{staticClass:"ivu-modal-confirm-head-icon ivu-modal-confirm-head-icon-error"},[l("Icon",{attrs:{type:"ios-close-circle"}})],1),l("div",{staticClass:"ivu-modal-confirm-head-title"},[n._v(n._s(n.$L("\u6E29\u99A8\u63D0\u793A")))])]),l("div",{staticClass:"ivu-modal-confirm-body"},[l("div",[n._v(n._s(n.$L("\u7F51\u7EDC\u8FDE\u63A5\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u8BBE\u7F6E\u3002")))])]),l("div",{staticClass:"ivu-modal-confirm-footer"},[l("Button",{attrs:{type:"primary"},on:{click:function(a){n.show=!1}}},[n._v(n._s(n.$L("\u786E\u5B9A")))])],1)])])]:n._e()],2)},JN=[];const ZN={name:"NetworkException",props:{type:{type:String,default:"modal"}},data(){return{show:!1}},beforeDestroy(){this.show=!1},computed:{...qi(["ajaxNetworkException"])},watch:{ajaxNetworkException:{handler(n){this.show=n},immediate:!0}}},C0={};var QN=lr(ZN,XN,JN,!1,qN,null,null,null);function qN(n){for(let o in C0)this[o]=C0[o]}var eF=function(){return QN.exports}(),tF=function(){var n=this,o=n.$createElement,l=n._self._c||o;return l("audio",{ref:"audio",staticClass:"common-audio",on:{ended:n.overAudio,pause:n.onPause,play:n.onPlay}})},nF=[];const rF={name:"AudioManager",data(){return{audioSubscribe:null,audioPlay:!1,audioTimer:null,audioId:0,audioSrc:null}},mounted(){this.audioSubscribe=Xi.Store.subscribe("audioSubscribe",this.setAudioPlay)},beforeDestroy(){this.audioSubscribe&&(this.audioSubscribe.unsubscribe(),this.audioSubscribe=null)},watch:{audioPlay(n){this.updateState(),this.audioTimer&&clearTimeout(this.audioTimer),n||(this.audioTimer=setTimeout(o=>{n||(this.$refs.audio.src=null,this.audioSrc=null)},3e3))},audioSrc(){this.updateState()}},methods:{setAudioPlay(n){const o=this.$refs.audio,l=o.ended||o.paused;if(o.controls=!1,o.loop=!1,o.volume=1,/^\d+$/.test(n)&&(n=n==this.audioId),typeof n=="boolean"){n&&!l&&o.pause();return}const{id:a,src:i}=n;i===this.audioSrc?l?o.play():o.pause():(this.audioId=a,this.audioSrc=i,l||o.pause(),o.src=i,o.play())},updateState(){this.$store.state.audioPlaying=this.audioPlay&&this.audioSrc?this.audioSrc:null},overAudio(){this.audioPlay=!1},onPause(){this.audioPlay=!1},onPlay(){this.audioPlay=!0}}},x0={};var iF=lr(rF,tF,nF,!1,aF,"353d8608",null,null);function aF(n){for(let o in x0)this[o]=x0[o]}var sF=function(){return iF.exports}(),oF=function(){var n=this,o=n.$createElement,l=n._self._c||o;return l("EDropdown",{ref:"dropdown",staticClass:"task-operation-dropdown",style:n.styles,attrs:{trigger:"click",disabled:n.disabled,size:n.size,placement:"bottom"},on:{command:n.dropTask,"visible-change":n.visibleChange}},[l("div",{ref:"icon",staticClass:"task-operation-icon"}),l("EDropdownMenu",{ref:"dropdownMenu",staticClass:"task-operation-more-dropdown",attrs:{slot:"dropdown"},slot:"dropdown"},[l("li",{staticClass:"task-operation-more-warp",class:n.size},[l("ul",[n.flow?n.turns.length>0?n._l(n.turns,function(a){return l("EDropdownItem",{key:a.id,attrs:{command:`turn::${a.id}`}},[l("div",{staticClass:"item flow"},[a.id==n.task.flow_item_id&&n.flow.auto_assign!==!0?l("Icon",{staticClass:"check",attrs:{type:"md-checkmark-circle-outline"}}):l("Icon",{attrs:{type:"md-radio-button-off"}}),l("div",{staticClass:"flow-name",class:a.status},[n._v(n._s(a.name))])],1)])}):[n.task.complete_at?l("EDropdownItem",{attrs:{command:"uncomplete"}},[l("div",{staticClass:"item red"},[l("Icon",{attrs:{type:"md-checkmark-circle-outline"}}),n._v(n._s(n.$L("\u6807\u8BB0\u672A\u5B8C\u6210"))+" ")],1)]):l("EDropdownItem",{attrs:{command:"complete"}},[l("div",{staticClass:"item"},[l("Icon",{attrs:{type:"md-radio-button-off"}}),n._v(n._s(n.$L("\u5B8C\u6210"))+" ")],1)])]:l("EDropdownItem",{staticClass:"load-flow",attrs:{disabled:""}},[l("div",{staticClass:"load-flow-warp"},[l("Loading")],1)]),n.task.parent_id===0?[l("EDropdownItem",{attrs:{divided:n.turns.length>0,command:"archived"}},[l("div",{staticClass:"item"},[l("Icon",{attrs:{type:"ios-filing"}}),n._v(n._s(n.$L(n.task.archived_at?"\u8FD8\u539F\u5F52\u6863":"\u5F52\u6863"))+" ")],1)]),l("EDropdownItem",{attrs:{command:"remove"}},[l("div",{staticClass:"item hover-del"},[l("Icon",{attrs:{type:"md-trash"}}),n._v(n._s(n.$L("\u5220\u9664"))+" ")],1)]),n.colorShow?n._l(n.taskColorList,function(a,i){return l("EDropdownItem",{key:"c_"+i,attrs:{divided:i==0,command:a}},[l("div",{staticClass:"item"},[l("i",{staticClass:"taskfont",style:{color:a.color||"#f9f9f9"},domProps:{innerHTML:n._s(a.color==n.task.color?"":"")}}),n._v(n._s(n.$L(a.name))+" ")])])}):n._e()]:l("EDropdownItem",{attrs:{command:"remove",divided:n.turns.length>0}},[l("div",{staticClass:"item"},[l("Icon",{attrs:{type:"md-trash"}}),n._v(n._s(n.$L("\u5220\u9664"))+" ")],1)])],2)])])],1)},lF=[];const uF={name:"TaskOperation",data(){return{task:{},loadStatus:!1,colorShow:!0,updateBefore:!1,disabled:!1,size:"small",onUpdate:null,element:null,target:null,styles:{}}},beforeDestroy(){this.target&&this.target.removeEventListener("scroll",this.handlerEventListeners)},computed:{...qi(["loads","taskOperation","taskColorList","taskFlows","taskFlowItems"]),...Wp(["isLoad"]),loadIng(){return this.loadStatus?!0:this.isLoad(`task-${this.task.id}`)},flow(){return this.taskFlows.find(({task_id:n})=>n==this.task.id)},turns(){if(!this.flow)return[];let n=this.taskFlowItems.find(({id:o})=>o==this.flow.flow_item_id);return n?this.taskFlowItems.filter(({id:o})=>n.turns.includes(o)):[]}},watch:{taskOperation(n){if(n.event&&n.task){if(this.$refs.dropdown.visible&&this.element===n.event.target){this.hide();return}const o=n.event.target.getBoundingClientRect();this.styles={left:`${o.left}px`,top:`${o.top}px`,width:`${o.width}px`,height:`${o.height}px`},this.task=n.task,this.loadStatus=typeof n.loadStatus=="undefined"?!1:n.loadStatus,this.colorShow=typeof n.colorShow=="undefined"?!0:n.colorShow,this.updateBefore=typeof n.updateBefore=="undefined"?!1:n.updateBefore,this.disabled=typeof n.disabled=="undefined"?!1:n.disabled,this.size=typeof n.size=="undefined"?"small":n.size,this.onUpdate=typeof n.onUpdate=="function"?n.onUpdate:null,this.$refs.icon.focus(),this.updatePopper(),this.show(),this.$store.dispatch("getTaskFlow",this.task.id).finally(this.updatePopper),this.setupEventListeners(n.event)}else this.hide()}},methods:{show(){this.$refs.dropdown.show()},hide(){this.$refs.dropdown.hide()},dropTask(n){const o=this.task,l=a=>{a?this.$store.dispatch("saveTaskCompleteTemp",o.id):this.$store.dispatch("forgetTaskCompleteTemp",o.id)};if($A.isJson(n)){n.name&&this.updateTask({color:n.color}).catch(()=>{});return}if($A.leftExists(n,"turn::")){let a=$A.leftDelete(n,"turn::");if(a==this.task.flow_item_id)return;let i=this.taskFlowItems.find(({id:v})=>v==this.flow.flow_item_id)||{},r=this.taskFlowItems.find(({id:v})=>v==a)||{},d=i.status!=="end"&&r.status==="end",f=i.status==="end"&&r.status!=="end";this.updateBefore&&(d?l(!0):f&&l(!1)),this.updateTask({flow_item_id:a}).then(()=>{d?l(!0):f&&l(!1)}).catch(()=>{d?l(!1):f&&l(!0)});return}switch(n){case"complete":if(this.task.complete_at)return;this.updateBefore&&l(!0),this.updateTask({complete_at:$A.formatDate("Y-m-d H:i:s")}).then(()=>{l(!0)}).catch(()=>{l(!1)});break;case"uncomplete":if(!this.task.complete_at)return;this.updateBefore&&l(!1),this.updateTask({complete_at:!1}).then(()=>{l(!1)}).catch(()=>{l(!0)});break;case"archived":case"remove":this.archivedOrRemoveTask(n);break}},updateTask(n){return new Promise((o,l)=>{if(this.loadIng){l();return}Object.keys(n).forEach(i=>this.$set(this.task,i,n[i]));const a=Object.assign(n,{task_id:this.task.id});this.$store.dispatch("taskUpdate",a).then(({data:i,msg:r})=>{$A.messageSuccess(r),o(),this.$store.dispatch("saveTaskBrowse",a.task_id),typeof this.onUpdate=="function"&&this.onUpdate(i)}).catch(({msg:i})=>{$A.modalError(i),this.$store.dispatch("getTaskOne",a.task_id).catch(()=>{}),l()})})},archivedOrRemoveTask(n){let o="removeTask",l="\u5220\u9664",a={task_id:this.task.id},i=this.task.parent_id>0?"\u5B50\u4EFB\u52A1":"\u4EFB\u52A1";n=="archived"&&(o="archivedTask",l="\u5F52\u6863",this.task.archived_at&&(l="\u8FD8\u539F\u5F52\u6863",a={task_id:this.task.id,type:"recovery"})),$A.modalConfirm({title:l+i,content:"\u4F60\u786E\u5B9A\u8981"+l+i+"\u3010"+this.task.name+"\u3011\u5417\uFF1F",loading:!0,onOk:()=>{if(!this.loadIng)return new Promise((r,d)=>{this.$store.dispatch(o,a).then(({msg:f})=>{r(f),this.$store.dispatch("saveTaskBrowse",a.task_id)}).catch(({msg:f})=>{d(f)})})}})},visibleChange(n){this.visible=n},updatePopper(){this.$nextTick(this.$refs.dropdownMenu.updatePopper)},setupEventListeners(n){this.element=n.target;let o=this.getScrollParent(this.element);if((o===window.document.body||o===window.document.documentElement)&&(o=window),this.target){if(this.target===o)return;this.target.removeEventListener("scroll",this.handlerEventListeners)}this.target=o,this.target.addEventListener("scroll",this.handlerEventListeners)},handlerEventListeners(n){if(!this.visible||!this.element)return;const o=n.target.getBoundingClientRect(),l=this.element.getBoundingClientRect();if(l.topo.top+o.height){this.hide();return}this.styles={left:`${l.left}px`,top:`${l.top}px`,width:`${l.width}px`,height:`${l.height}px`},this.updatePopper()},getScrollParent(n){const o=n.parentNode;return o?o===window.document?window.document.body.scrollTop||window.document.body.scrollLeft?window.document.body:window.document.documentElement:["scroll","auto"].indexOf(this.getStyleComputedProperty(o,"overflow"))!==-1||["scroll","auto"].indexOf(this.getStyleComputedProperty(o,"overflow-x"))!==-1||["scroll","auto"].indexOf(this.getStyleComputedProperty(o,"overflow-y"))!==-1?o:this.getScrollParent(n.parentNode):n},getStyleComputedProperty(n,o){return window.getComputedStyle(n,null)[o]}}},w0={};var dF=lr(uF,oF,lF,!1,cF,null,null,null);function cF(n){for(let o in w0)this[o]=w0[o]}var fF=function(){return dF.exports}(),hF=function(){var n=this,o=n.$createElement,l=n._self._c||o;return l("div",{attrs:{id:"app"}},[l("keep-alive",[l("router-view",{staticClass:"child-view"})],1),l("TaskOperation"),l("FloatSpinner"),l("RightBottom"),n.windowLarge?l("NetworkException"):n._e(),l("PreviewImageState"),l("AudioManager"),n._l(n.iframes,function(a){return a.url?l("iframe",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],key:a.key,attrs:{src:a.url}}):n._e()})],2)},pF=[];const vF={components:{TaskOperation:fF,AudioManager:sF,NetworkException:eF,PreviewImageState:YN,RightBottom:IN,FloatSpinner:T2},data(){return{routePath:null,searchInter:null,iframes:[]}},created(){this.electronEvents(),this.eeuiEvents(),this.otherEvents(),this.synchThemeLanguage()},mounted(){window.addEventListener("resize",this.windowSizeListener),window.addEventListener("scroll",this.windowScrollListener),this.searchInter=setInterval(this.searchEnter,1e3)},beforeDestroy(){window.removeEventListener("resize",this.windowSizeListener),window.removeEventListener("scroll",this.windowScrollListener),this.searchInter&&clearInterval(this.searchInter)},computed:{...qi(["ws","themeMode"]),isSoftware(){return this.$Electron||this.$isEEUiApp}},watch:{$route:{handler(n){this.routePath=n.path},immediate:!0},routePath:{handler(n){n&&this.userId>0&&(n=n.replace(/^\/manage\/file\/\d+\/(\d+)$/,"/single/file/$1"),this.$store.dispatch("websocketPath",n))},immediate:!0},userId:{handler(){this.$store.dispatch("websocketConnection"),this.userId>0&&(this.$isEEUiApp&&($A.eeuiAppSendMessage({action:"intiUmeng"}),setTimeout(n=>{$A.eeuiAppSendMessage({action:"setUmengAlias",userid:this.userId,token:this.userToken,url:$A.apiUrl("users/umeng/alias")})},6e3)),$A.IDBString("logOpen").then(n=>{$A.openLog=n==="open",$A.openLog&&$A.loadScript("js/vconsole.min.js",o=>{if(o!==null||typeof window.VConsole!="function"){$A.modalError("vConsole \u7EC4\u4EF6\u52A0\u8F7D\u5931\u8D25\uFF01");return}window.vConsole=new window.VConsole({onReady:()=>{console.log("vConsole: onReady")},onClearLog:()=>{console.log("vConsole: onClearLog")}})})}))},immediate:!0},windowActive(n){n&&(this.__windowTimer&&clearTimeout(this.__windowTimer),this.__windowTimer=setTimeout(o=>{this.$store.dispatch("call",{url:"users/socket/status"}).then(l=>{this.$store.dispatch("websocketSend",{type:"handshake"}).catch(a=>{this.$store.dispatch("websocketConnection")})}).catch(l=>{this.$store.dispatch("websocketConnection")}),this.themeMode==="auto"&&$A.dark.autoDarkMode()},600))},themeMode(){this.synchThemeLanguage()}},methods:{searchEnter(){let n=$A(".sreachBox");if(n.length===0||n.attr("data-enter-init")==="init")return;n.attr("data-enter-init","init");let o=n.find("button[type='button']"),l=null;o.length!==0&&(o.each((a,i)=>{$A(i).text().indexOf("\u641C\u7D22")&&(l=$A(i))}),l!==null&&n.find("input.ivu-input").keydown(function(a){a.keyCode==13&&(l.hasClass("ivu-btn-loading")||l.click())}))},synchThemeLanguage(){this.isSoftware&&(this.iframes=this.iframes.filter(({key:n})=>n!="synchThemeLanguage"),this.iframes.push({key:"synchThemeLanguage",url:$A.apiUrl(`../setting/theme_language?theme=${this.themeMode}&language=${Is}`)}))},windowSizeListener(){this.$store.state.windowWidth=$A(window).width(),this.$store.state.windowHeight=$A(window).height(),this.$store.state.windowLarge=this.$store.state.windowWidth>768,this.$store.state.windowSmall=this.$store.state.windowWidth<=768},windowScrollListener(){this.$store.state.windowScrollY=window.scrollY},electronEvents(){!this.$Electron||(window.__onBeforeUnload=()=>{if(this.$Modal.removeLast())return!0},this.$Electron.registerMsgListener("dispatch",n=>{if(!$A.isJson(n))return;let{action:o,data:l}=n;this.$store.dispatch(o,l)}),this.$Electron.registerMsgListener("browserWindowBlur",n=>{this.$store.state.windowActive=!1}),this.$Electron.registerMsgListener("browserWindowFocus",n=>{this.$store.state.windowActive=!0}),this.iframes.push({key:"manifest",url:$A.apiUrl("../manifest")}),$A.bindScreenshotKey($A.jsonParse(window.localStorage.getItem("__keyboard:data__"))||{}))},eeuiEvents(){!this.$isEEUiApp||($A("body").addClass("eeui-app"),window.__onPagePause=()=>{this.$store.state.windowActive=!1,this.$store.dispatch("getBasicData",-1)},window.__onPageResume=n=>{this.$store.state.windowActive=!0,n>0&&this.$store.dispatch("getBasicData",600)},window.__onNotificationPermissionStatus=n=>{this.$store.state.appNotificationPermission=$A.runNum(n)==1})},otherEvents(){if(!this.isSoftware){const n="hidden"in document?"hidden":"webkitHidden"in document?"webkitHidden":"mozHidden"in document?"mozHidden":null,o=n.replace(/hidden/i,"visibilitychange");document.addEventListener(o,()=>{this.$store.state.windowActive=!document[n]})}}}},S0={};var mF=lr(vF,hF,pF,!1,_F,"b568124a",null,null);function _F(n){for(let o in S0)this[o]=S0[o]}var gF=function(){return mF.exports}(),yF=[{name:"index",path:"/",component:()=>yn(()=>import("./index.5d080e35.js"),["js/build/index.5d080e35.js","js/build/UpdateLog.8c1c1fb4.js"])},{name:"pro",path:"/pro",component:()=>yn(()=>import("./pro.38bd30b6.js"),["js/build/pro.38bd30b6.js","js/build/pro.039043a1.css","js/build/UpdateLog.8c1c1fb4.js"])},{name:"manage",path:"/manage",component:()=>yn(()=>import("./manage.9cd00782.js"),["js/build/manage.9cd00782.js","js/build/manage.a77f99dc.css","js/build/CheckinExport.893ae33d.js","js/build/CheckinExport.68b4950e.css","js/build/UserInput.1d67c0fc.js","js/build/index.b6ff1b3f.js","js/build/index.51410170.css","js/build/TEditor.27348ee4.js","js/build/ImgUpload.466e5bce.js","js/build/ReportEdit.1b195875.js","js/build/ReportDetail.7265b249.js","js/build/DialogSelect.9924132a.js","js/build/DialogWrapper.0674ddc3.js","js/build/TaskDetail.0ed8c7bb.js","js/build/ProjectLog.53e7fe6c.js","js/build/TaskMenu.8ddcdf6c.js"]),children:[{name:"manage-dashboard",path:"dashboard",component:()=>yn(()=>import("./dashboard.0fe751dc.js"),["js/build/dashboard.0fe751dc.js","js/build/TaskMenu.8ddcdf6c.js"])},{name:"manage-calendar",path:"calendar",component:()=>yn(()=>import("./calendar.3dec34b5.js"),["js/build/calendar.3dec34b5.js","js/build/calendar.323d515a.css","js/build/TaskMenu.8ddcdf6c.js"])},{name:"manage-messenger",path:"messenger/:dialogAction?",component:()=>yn(()=>import("./messenger.16a771fa.js"),["js/build/messenger.16a771fa.js","js/build/DialogWrapper.0674ddc3.js","js/build/DialogSelect.9924132a.js","js/build/UserInput.1d67c0fc.js","js/build/index.b6ff1b3f.js","js/build/index.51410170.css"])},{name:"manage-setting",path:"setting",component:()=>yn(()=>import("./index.a60d7544.js"),[]),children:[{name:"manage-setting-personal",path:"personal",component:()=>yn(()=>import("./personal.d8be3746.js"),["js/build/personal.d8be3746.js","js/build/ImgUpload.466e5bce.js"])},{name:"manage-setting-checkin",path:"checkin",component:()=>yn(()=>import("./checkin.53f513f9.js"),["js/build/checkin.53f513f9.js","js/build/checkin.2f8cf0b5.css"])},{name:"manage-setting-language",path:"language",component:()=>yn(()=>import("./language.af8cf380.js"),[])},{name:"manage-setting-theme",path:"theme",component:()=>yn(()=>import("./theme.d2fcebc3.js"),[])},{name:"manage-setting-keyboard",path:"keyboard",component:()=>yn(()=>import("./keyboard.ea30cc70.js"),["js/build/keyboard.ea30cc70.js","js/build/keyboard.83204363.css"])},{name:"manage-setting-password",path:"password",component:()=>yn(()=>import("./password.d71ad0a5.js"),[])},{name:"manage-setting-email",path:"email",component:()=>yn(()=>import("./email.8395af92.js"),[])},{name:"manage-setting-system",path:"system",component:()=>yn(()=>import("./system.8bd8c3e1.js"),["js/build/system.8bd8c3e1.js","js/build/index.b6ff1b3f.js","js/build/index.51410170.css","js/build/CheckinExport.893ae33d.js","js/build/CheckinExport.68b4950e.css","js/build/UserInput.1d67c0fc.js"])},{name:"manage-setting-delete",path:"delete",component:()=>yn(()=>import("./delete.2a213a29.js"),[])}]},{name:"manage-project-invite",path:"project/invite",component:()=>yn(()=>import("./projectInvite.b379c531.js"),["js/build/projectInvite.b379c531.js","js/build/projectInvite.c62994fb.css"])},{name:"manage-project",path:"project/:projectId",component:()=>yn(()=>import("./project.e97940be.js"),["js/build/project.e97940be.js","js/build/ProjectLog.53e7fe6c.js","js/build/UserInput.1d67c0fc.js","js/build/TaskMenu.8ddcdf6c.js","js/build/index.b6ff1b3f.js","js/build/index.51410170.css","js/build/DialogWrapper.0674ddc3.js","js/build/DialogSelect.9924132a.js"])},{name:"manage-file",path:"file/:folderId?/:fileId?",component:()=>yn(()=>import("./file.8172d75e.js"),["js/build/file.8172d75e.js","js/build/UserInput.1d67c0fc.js","js/build/index.b6ff1b3f.js","js/build/index.51410170.css","js/build/DialogSelect.9924132a.js"])}]},{name:"single-file-msg",path:"/single/file/msg/:msgId",component:()=>yn(()=>import("./fileMsg.b74dc083.js"),["js/build/fileMsg.b74dc083.js","js/build/fileMsg.1a0b76dd.css","js/build/IFrame.a3e09c0b.js"])},{name:"single-file-task",path:"/single/file/task/:fileId",component:()=>yn(()=>import("./fileTask.abf72a70.js"),["js/build/fileTask.abf72a70.js","js/build/fileTask.93338ba0.css","js/build/IFrame.a3e09c0b.js"])},{name:"single-file",path:"/single/file/:codeOrFileId",component:()=>yn(()=>import("./file.2fac1b66.js"),["js/build/file.2fac1b66.js","js/build/file.560ab02c.css","js/build/FileContent.50f8fd54.js","js/build/FileContent.5c6a1e1c.css","js/build/IFrame.a3e09c0b.js","js/build/FilePreview.8438d32b.js"])},{name:"single-task",path:"/single/task/:taskId",component:()=>yn(()=>import("./task.2524631c.js"),["js/build/task.2524631c.js","js/build/task.0d7ca2d3.css","js/build/TaskDetail.0ed8c7bb.js","js/build/TEditor.27348ee4.js","js/build/ImgUpload.466e5bce.js","js/build/ProjectLog.53e7fe6c.js","js/build/UserInput.1d67c0fc.js","js/build/DialogWrapper.0674ddc3.js","js/build/DialogSelect.9924132a.js","js/build/index.b6ff1b3f.js","js/build/index.51410170.css","js/build/TaskMenu.8ddcdf6c.js"])},{name:"valid-email",path:"/single/valid/email",component:()=>yn(()=>import("./validEmail.fb7e7cb9.js"),["js/build/validEmail.fb7e7cb9.js","js/build/validEmail.6e361ca9.css"])},{name:"report-edit",path:"/single/report/edit/:reportEditId",component:()=>yn(()=>import("./reportEdit.723b9ca6.js"),["js/build/reportEdit.723b9ca6.js","js/build/reportEdit.5c397123.css","js/build/ReportEdit.1b195875.js","js/build/UserInput.1d67c0fc.js"])},{name:"report-detail",path:"/single/report/detail/:reportDetailId",component:()=>yn(()=>import("./reportDetail.88da4fa9.js"),["js/build/reportDetail.88da4fa9.js","js/build/reportDetail.c12bef4b.css","js/build/ReportDetail.7265b249.js"])},{name:"token",path:"/token",component:()=>yn(()=>import("./token.098421cd.js"),["js/build/token.098421cd.js","js/build/token.7afc4e00.css"])},{name:"login",path:"/login",component:()=>yn(()=>import("./login.f89f580b.js"),[])},{name:"404",path:"*",component:()=>yn(()=>import("./404.062a1c9e.js"),["js/build/404.062a1c9e.js","js/build/404.d686a01f.css"])}];/*! +`),function(f){if(r=f.indexOf(":"),a=Hf.trim(f.substr(0,r)).toLowerCase(),i=Hf.trim(f.substr(r+1)),a){if(l[a]&&jL.indexOf(a)>=0)return;a==="set-cookie"?l[a]=(l[a]?l[a]:[]).concat([i]):l[a]=l[a]?l[a]+", "+i:i}}),l},o0=Zr,zL=o0.isStandardBrowserEnv()?function(){var o=/(msie|trident)/i.test(navigator.userAgent),l=document.createElement("a"),a;function i(r){var d=r;return o&&(l.setAttribute("href",d),d=l.href),l.setAttribute("href",d),{href:l.href,protocol:l.protocol?l.protocol.replace(/:$/,""):"",host:l.host,search:l.search?l.search.replace(/^\?/,""):"",hash:l.hash?l.hash.replace(/^#/,""):"",hostname:l.hostname,port:l.port,pathname:l.pathname.charAt(0)==="/"?l.pathname:"/"+l.pathname}}return a=i(window.location.href),function(d){var f=o0.isString(d)?i(d):d;return f.protocol===a.protocol&&f.host===a.host}}():function(){return function(){return!0}}();function Qp(n){this.message=n}Qp.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")};Qp.prototype.__CANCEL__=!0;var vc=Qp,id=Zr,WL=$L,HL=AL,UL=aS,KL=BL,GL=VL,YL=zL,Uf=oS,XL=_c,JL=vc,l0=function(o){return new Promise(function(a,i){var r=o.data,d=o.headers,f=o.responseType,v;function e(){o.cancelToken&&o.cancelToken.unsubscribe(v),o.signal&&o.signal.removeEventListener("abort",v)}id.isFormData(r)&&delete d["Content-Type"];var m=new XMLHttpRequest;if(o.auth){var c=o.auth.username||"",p=o.auth.password?unescape(encodeURIComponent(o.auth.password)):"";d.Authorization="Basic "+btoa(c+":"+p)}var _=KL(o.baseURL,o.url);m.open(o.method.toUpperCase(),UL(_,o.params,o.paramsSerializer),!0),m.timeout=o.timeout;function g(){if(!!m){var b="getAllResponseHeaders"in m?GL(m.getAllResponseHeaders()):null,E=!f||f==="text"||f==="json"?m.responseText:m.response,T={data:E,status:m.status,statusText:m.statusText,headers:b,config:o,request:m};WL(function(D){a(D),e()},function(D){i(D),e()},T),m=null}}if("onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(g)},m.onabort=function(){!m||(i(Uf("Request aborted",o,"ECONNABORTED",m)),m=null)},m.onerror=function(){i(Uf("Network Error",o,null,m)),m=null},m.ontimeout=function(){var E=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded",T=o.transitional||XL.transitional;o.timeoutErrorMessage&&(E=o.timeoutErrorMessage),i(Uf(E,o,T.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",m)),m=null},id.isStandardBrowserEnv()){var y=(o.withCredentials||YL(_))&&o.xsrfCookieName?HL.read(o.xsrfCookieName):void 0;y&&(d[o.xsrfHeaderName]=y)}"setRequestHeader"in m&&id.forEach(d,function(E,T){typeof r=="undefined"&&T.toLowerCase()==="content-type"?delete d[T]:m.setRequestHeader(T,E)}),id.isUndefined(o.withCredentials)||(m.withCredentials=!!o.withCredentials),f&&f!=="json"&&(m.responseType=o.responseType),typeof o.onDownloadProgress=="function"&&m.addEventListener("progress",o.onDownloadProgress),typeof o.onUploadProgress=="function"&&m.upload&&m.upload.addEventListener("progress",o.onUploadProgress),(o.cancelToken||o.signal)&&(v=function(b){!m||(i(!b||b&&b.type?new JL("canceled"):b),m.abort(),m=null)},o.cancelToken&&o.cancelToken.subscribe(v),o.signal&&(o.signal.aborted?v():o.signal.addEventListener("abort",v))),r||(r=null),m.send(r)})},sr=Zr,u0=ML,ZL=sS,QL={"Content-Type":"application/x-www-form-urlencoded"};function d0(n,o){!sr.isUndefined(n)&&sr.isUndefined(n["Content-Type"])&&(n["Content-Type"]=o)}function qL(){var n;return(typeof XMLHttpRequest!="undefined"||typeof process!="undefined"&&Object.prototype.toString.call(process)==="[object process]")&&(n=l0),n}function eN(n,o,l){if(sr.isString(n))try{return(o||JSON.parse)(n),sr.trim(n)}catch(a){if(a.name!=="SyntaxError")throw a}return(l||JSON.stringify)(n)}var mc={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:qL(),transformRequest:[function(o,l){return u0(l,"Accept"),u0(l,"Content-Type"),sr.isFormData(o)||sr.isArrayBuffer(o)||sr.isBuffer(o)||sr.isStream(o)||sr.isFile(o)||sr.isBlob(o)?o:sr.isArrayBufferView(o)?o.buffer:sr.isURLSearchParams(o)?(d0(l,"application/x-www-form-urlencoded;charset=utf-8"),o.toString()):sr.isObject(o)||l&&l["Content-Type"]==="application/json"?(d0(l,"application/json"),eN(o)):o}],transformResponse:[function(o){var l=this.transitional||mc.transitional,a=l&&l.silentJSONParsing,i=l&&l.forcedJSONParsing,r=!a&&this.responseType==="json";if(r||i&&sr.isString(o)&&o.length)try{return JSON.parse(o)}catch(d){if(r)throw d.name==="SyntaxError"?ZL(d,this,"E_JSON_PARSE"):d}return o}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(o){return o>=200&&o<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};sr.forEach(["delete","get","head"],function(o){mc.headers[o]={}});sr.forEach(["post","put","patch"],function(o){mc.headers[o]=sr.merge(QL)});var _c=mc,tN=Zr,nN=_c,rN=function(o,l,a){var i=this||nN;return tN.forEach(a,function(d){o=d.call(i,o,l)}),o},lS=function(o){return!!(o&&o.__CANCEL__)},c0=Zr,Kf=rN,iN=lS,aN=_c,sN=vc;function Gf(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new sN("canceled")}var oN=function(o){Gf(o),o.headers=o.headers||{},o.data=Kf.call(o,o.data,o.headers,o.transformRequest),o.headers=c0.merge(o.headers.common||{},o.headers[o.method]||{},o.headers),c0.forEach(["delete","get","head","post","put","patch","common"],function(i){delete o.headers[i]});var l=o.adapter||aN.adapter;return l(o).then(function(i){return Gf(o),i.data=Kf.call(o,i.data,i.headers,o.transformResponse),i},function(i){return iN(i)||(Gf(o),i&&i.response&&(i.response.data=Kf.call(o,i.response.data,i.response.headers,o.transformResponse))),Promise.reject(i)})},Wr=Zr,uS=function(o,l){l=l||{};var a={};function i(m,c){return Wr.isPlainObject(m)&&Wr.isPlainObject(c)?Wr.merge(m,c):Wr.isPlainObject(c)?Wr.merge({},c):Wr.isArray(c)?c.slice():c}function r(m){if(Wr.isUndefined(l[m])){if(!Wr.isUndefined(o[m]))return i(void 0,o[m])}else return i(o[m],l[m])}function d(m){if(!Wr.isUndefined(l[m]))return i(void 0,l[m])}function f(m){if(Wr.isUndefined(l[m])){if(!Wr.isUndefined(o[m]))return i(void 0,o[m])}else return i(void 0,l[m])}function v(m){if(m in l)return i(o[m],l[m]);if(m in o)return i(void 0,o[m])}var e={url:d,method:d,data:d,baseURL:f,transformRequest:f,transformResponse:f,paramsSerializer:f,timeout:f,timeoutMessage:f,withCredentials:f,adapter:f,responseType:f,xsrfCookieName:f,xsrfHeaderName:f,onUploadProgress:f,onDownloadProgress:f,decompress:f,maxContentLength:f,maxBodyLength:f,transport:f,httpAgent:f,httpsAgent:f,cancelToken:f,socketPath:f,responseEncoding:f,validateStatus:v};return Wr.forEach(Object.keys(o).concat(Object.keys(l)),function(c){var p=e[c]||r,_=p(c);Wr.isUndefined(_)&&p!==v||(a[c]=_)}),a},dS={version:"0.24.0"},lN=dS.version,qp={};["object","boolean","number","function","string","symbol"].forEach(function(n,o){qp[n]=function(a){return typeof a===n||"a"+(o<1?"n ":" ")+n}});var f0={};qp.transitional=function(o,l,a){function i(r,d){return"[Axios v"+lN+"] Transitional option '"+r+"'"+d+(a?". "+a:"")}return function(r,d,f){if(o===!1)throw new Error(i(d," has been removed"+(l?" in "+l:"")));return l&&!f0[d]&&(f0[d]=!0,console.warn(i(d," has been deprecated since v"+l+" and will be removed in the near future"))),o?o(r,d,f):!0}};function uN(n,o,l){if(typeof n!="object")throw new TypeError("options must be an object");for(var a=Object.keys(n),i=a.length;i-- >0;){var r=a[i],d=o[r];if(d){var f=n[r],v=f===void 0||d(f,r,n);if(v!==!0)throw new TypeError("option "+r+" must be "+v);continue}if(l!==!0)throw Error("Unknown option "+r)}}var dN={assertOptions:uN,validators:qp},cS=Zr,cN=aS,h0=kL,p0=oN,gc=uS,fS=dN,Es=fS.validators;function el(n){this.defaults=n,this.interceptors={request:new h0,response:new h0}}el.prototype.request=function(o){typeof o=="string"?(o=arguments[1]||{},o.url=arguments[0]):o=o||{},o=gc(this.defaults,o),o.method?o.method=o.method.toLowerCase():this.defaults.method?o.method=this.defaults.method.toLowerCase():o.method="get";var l=o.transitional;l!==void 0&&fS.assertOptions(l,{silentJSONParsing:Es.transitional(Es.boolean),forcedJSONParsing:Es.transitional(Es.boolean),clarifyTimeoutError:Es.transitional(Es.boolean)},!1);var a=[],i=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(o)===!1||(i=i&&p.synchronous,a.unshift(p.fulfilled,p.rejected))});var r=[];this.interceptors.response.forEach(function(p){r.push(p.fulfilled,p.rejected)});var d;if(!i){var f=[p0,void 0];for(Array.prototype.unshift.apply(f,a),f=f.concat(r),d=Promise.resolve(o);f.length;)d=d.then(f.shift(),f.shift());return d}for(var v=o;a.length;){var e=a.shift(),m=a.shift();try{v=e(v)}catch(c){m(c);break}}try{d=p0(v)}catch(c){return Promise.reject(c)}for(;r.length;)d=d.then(r.shift(),r.shift());return d};el.prototype.getUri=function(o){return o=gc(this.defaults,o),cN(o.url,o.params,o.paramsSerializer).replace(/^\?/,"")};cS.forEach(["delete","get","head","options"],function(o){el.prototype[o]=function(l,a){return this.request(gc(a||{},{method:o,url:l,data:(a||{}).data}))}});cS.forEach(["post","put","patch"],function(o){el.prototype[o]=function(l,a,i){return this.request(gc(i||{},{method:o,url:l,data:a}))}});var fN=el,hN=vc;function Fs(n){if(typeof n!="function")throw new TypeError("executor must be a function.");var o;this.promise=new Promise(function(i){o=i});var l=this;this.promise.then(function(a){if(!!l._listeners){var i,r=l._listeners.length;for(i=0;i v"+n._s(n.updateVersion))])],1),n.$Platform==="mac"?l("div",{staticClass:"notification-tip"},[n._v(n._s(n.$L("\u79BB\u6700\u65B0\u7248\u672C\u53EA\u6709\u4E00\u6B65\u4E4B\u9065\u4E86\uFF01\u91CD\u65B0\u542F\u52A8\u5E94\u7528\u5373\u53EF\u5B8C\u6210\u66F4\u65B0\u3002")))]):n._e()]),l("MarkdownPreview",{staticClass:"notification-body scrollbar-overlay",attrs:{initialValue:n.updateNote}}),l("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[l("Button",{attrs:{type:"default"},on:{click:function(a){n.updateShow=!1}}},[n._v(n._s(n.$L("\u7A0D\u540E")))]),l("Button",{attrs:{type:"primary",loading:n.updateIng},on:{click:n.updateQuitAndInstall}},[n._v(n._s(n.$L(n.$Platform==="mac"?"\u91CD\u65B0\u542F\u52A8":"\u7ACB\u5373\u5347\u7EA7")))])],1)],1)],2)},kN=[];const TN={name:"RightBottom",components:{MarkdownPreview:dL},data(){return{loadIng:0,subscribe:null,apiVersion:"",systemVersion:window.systemInfo.version,updateVersion:"",updateNote:"",updateShow:!1,updateBottomShow:!1,updateIng:!1,downloadUrl:""}},mounted(){this.checkVersion(),this.$Electron&&(this.subscribe=Xi.Store.subscribe("updateNotification",n=>{this.updateShow=!0}),this.$Electron.registerMsgListener("updateDownloaded",n=>{this.$store.state.clientNewVersion=n.version,this.updateVersion=n.version,this.updateNote=n.releaseNotes||this.$L("\u6CA1\u6709\u66F4\u65B0\u63CF\u8FF0\u3002"),this.updateShow=$A.strExists(this.updateNote,`[${this.updateVersion}-Release]`)}))},beforeDestroy(){this.subscribe&&(this.subscribe.unsubscribe(),this.subscribe=null)},watch:{updateShow(n){n&&(this.updateBottomShow=!0)}},computed:{isSoftware(){return this.$Electron||this.$isEEUiApp},showSSO(){return this.isSoftware&&["login"].includes(this.$route.name)},showDown(){return!this.$isEEUiApp&&this.windowLarge&&["login","index","manage-dashboard"].includes(this.$route.name)},showPrivacy(){return["127.0.0.1:2222","192.168.100.88:2222","dootask.com","www.dootask.com","t.hitosea.com"].includes($A.getDomain($A.apiUrl("../")))&&this.$isEEUiApp&&["login"].includes(this.$route.name)}},methods:{isNotServer(){let n=$A.getDomain(window.systemInfo.apiUrl);return this.isSoftware&&(n==""||n=="public")},checkVersion(){this.isNotServer()||(m0.get($A.apiUrl("system/version")).then(({status:n,data:o})=>{n===200&&(this.apiVersion=o.version||"",this.compareVersion(this.apiVersion,"0.19.0")===-1&&$A.modalWarning({title:"\u6E29\u99A8\u63D0\u793A",message:"\u670D\u52A1\u5668\u63A5\u53E3\u7248\u672C\u8FC7\u4F4E\uFF0C\u90E8\u5206\u529F\u80FD\u53EF\u80FD\u65E0\u6CD5\u6B63\u5E38\u4F7F\u7528\u3002"}),this.$Electron?this.$Electron.sendMessage("updateCheckAndDownload",{apiVersion:this.apiVersion}):this.getDownloadUrl(o.publish))}).catch(n=>{}),this.__checkVersion&&clearTimeout(this.__checkVersion),this.__checkVersion=setTimeout(this.checkVersion,600*1e3))},getDownloadUrl(n){if(!!$A.isJson(n))switch(n.provider){case"generic":this.downloadUrl=`${n.url}/latest`;break;case"github":(async o=>{let l="cacheAppdown::"+this.apiVersion,a=await $A.IDBJson(l),i=600;if(a.time&&a.time+i>Math.round(new Date().getTime()/1e3)){this.downloadUrl=a.data.html_url;return}this.loadIng>0||(this.loadIng++,m0.get(`https://api.github.com/repos/${n.owner}/${n.repo}/releases`).then(({status:r,data:d})=>{this.loadIng--,r===200&&$A.isArray(d)&&(a.time=Math.round(new Date().getTime()/1e3),a.data=d.find(({tag_name:f})=>this.compareVersion(this.tagVersion(f),this.apiVersion)===0)||{},$A.IDBSave(l,a),this.downloadUrl=a.data.html_url)}).catch(()=>{this.loadIng--}))})();break}},updateQuitAndInstall(){this.updateIng=!0,setTimeout(()=>{this.$Electron.sendMessage("updateQuitAndInstall")},301)},useSSOLogin(){Xi.Store.set("useSSOLogin",!0)},tagVersion(n){return n?$A.leftDelete(n.toLowerCase(),"v"):""},compareVersion(n,o){let l=0,a=0;if(n===o)return 0;const i=(r,d)=>{let f=d;for(;r[f]!=="."&&fv?1:-1;l=r+1,a=d+1}for(;l0)return 1;l=r+1}for(;a0)return-1;a=r+1}return 0}}},_0={};var MN=lr(TN,ON,kN,!1,PN,null,null,null);function PN(n){for(let o in _0)this[o]=_0[o]}var IN=function(){return MN.exports}();const $N="modulepreload",g0={},AN="/",yn=function(o,l){return!l||l.length===0?o():Promise.all(l.map(a=>{if(a=`${AN}${a}`,a in g0)return;g0[a]=!0;const i=a.endsWith(".css"),r=i?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${a}"]${r}`))return;const d=document.createElement("link");if(d.rel=i?"stylesheet":$N,i||(d.as="script",d.crossOrigin=""),d.href=a,document.head.appendChild(d),i)return new Promise((f,v)=>{d.addEventListener("load",f),d.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${a}`)))})})).then(()=>o())};var RN=function(){var n=this,o=n.$createElement,l=n._self._c||o;return l("Modal",{attrs:{mask:!1,"mask-closable":!1,"footer-hide":!0,"transition-names":["",""],"class-name":n.viewMode==="desktop"?"common-preview-image-view":"common-preview-image-swipe",fullscreen:""},model:{value:n.show,callback:function(a){n.show=a},expression:"show"}},[n.list.length>0?[n.viewMode==="desktop"?l("PreviewImageView",{attrs:{"initial-index":n.index,"url-list":n.list,infinite:""}}):n._e(),n.viewMode==="mobile"?l("PreviewImageSwipe",{attrs:{"initial-index":n.index,"url-list":n.list},on:{"on-destroy":function(a){n.show=!1}}}):n._e()]:n._e()],2)},LN=[];const NN=()=>yn(()=>import("./view.e87ac5ac.js"),["js/build/view.e87ac5ac.js","js/build/view.0cad54ff.css"]),FN=()=>yn(()=>import("./swipe.3ea9c9af.js"),["js/build/swipe.3ea9c9af.js","js/build/swipe.1e4c531a.css"]),BN={name:"PreviewImage",components:{PreviewImageSwipe:FN,PreviewImageView:NN},props:{value:{type:Boolean,default:!1},index:{type:Number,default:0},list:{type:Array,default:()=>[]},mode:{type:String,default:null}},data(){return{show:this.value}},watch:{value(n){this.show=n},show(n){this.value!==n&&this.$emit("input",n)}},computed:{viewMode(){return this.mode?this.mode:this.$store.state.windowLarge?"desktop":"mobile"}}},y0={};var jN=lr(BN,RN,LN,!1,VN,null,null,null);function VN(n){for(let o in y0)this[o]=y0[o]}var zN=function(){return jN.exports}(),WN=function(){var n=this,o=n.$createElement,l=n._self._c||o;return l("PreviewImage",{attrs:{index:n.previewImageIndex,list:n.previewImageList},model:{value:n.show,callback:function(a){n.show=a},expression:"show"}})},HN=[];const UN={name:"PreviewImageState",components:{PreviewImage:zN},computed:{...qi(["previewImageIndex","previewImageList"])},data(){return{show:!1}},watch:{show(n){n?(this.$store.state.previewImageIndex=Math.max(this.$store.state.previewImageIndex,0),this.$store.state.previewImageIndex=Math.min(this.$store.state.previewImageIndex,this.$store.state.previewImageList.length-1)):(this.$store.state.previewImageIndex=0,this.$store.state.previewImageList=[])},previewImageList(n){if(n.length>0)if($A.isEEUiApp){let o=Math.max(this.$store.state.previewImageIndex,0);o=Math.min(o,this.$store.state.previewImageList.length-1);let l=n.map(a=>$A.isJson(a)?$A.rightDelete(a.src,"_thumb.jpg"):$A.rightDelete(a,"_thumb.jpg"));$A.eeuiAppSendMessage({action:"picturePreview",position:o,paths:l})}else this.show=!0}}},b0={};var KN=lr(UN,WN,HN,!1,GN,null,null,null);function GN(n){for(let o in b0)this[o]=b0[o]}var YN=function(){return KN.exports}(),XN=function(){var n=this,o=n.$createElement,l=n._self._c||o;return l("div",{staticClass:"common-network-exception"},[n.type==="alert"?[n.show?l("Alert",{attrs:{type:"error","show-icon":"",closable:""}},[n._v(n._s(n.$L("\u7F51\u7EDC\u8FDE\u63A5\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u8BBE\u7F6E\u3002")))]):n._e()]:n.type==="modal"?[l("Modal",{attrs:{width:416,closable:!1,"footer-hide":!0,"class-name":"common-network-exception-modal"},model:{value:n.show,callback:function(a){n.show=a},expression:"show"}},[l("div",{staticClass:"ivu-modal-confirm"},[l("div",{staticClass:"ivu-modal-confirm-head"},[l("div",{staticClass:"ivu-modal-confirm-head-icon ivu-modal-confirm-head-icon-error"},[l("Icon",{attrs:{type:"ios-close-circle"}})],1),l("div",{staticClass:"ivu-modal-confirm-head-title"},[n._v(n._s(n.$L("\u6E29\u99A8\u63D0\u793A")))])]),l("div",{staticClass:"ivu-modal-confirm-body"},[l("div",[n._v(n._s(n.$L("\u7F51\u7EDC\u8FDE\u63A5\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u8BBE\u7F6E\u3002")))])]),l("div",{staticClass:"ivu-modal-confirm-footer"},[l("Button",{attrs:{type:"primary"},on:{click:function(a){n.show=!1}}},[n._v(n._s(n.$L("\u786E\u5B9A")))])],1)])])]:n._e()],2)},JN=[];const ZN={name:"NetworkException",props:{type:{type:String,default:"modal"}},data(){return{show:!1}},beforeDestroy(){this.show=!1},computed:{...qi(["ajaxNetworkException"])},watch:{ajaxNetworkException:{handler(n){this.show=n},immediate:!0}}},C0={};var QN=lr(ZN,XN,JN,!1,qN,null,null,null);function qN(n){for(let o in C0)this[o]=C0[o]}var eF=function(){return QN.exports}(),tF=function(){var n=this,o=n.$createElement,l=n._self._c||o;return l("audio",{ref:"audio",staticClass:"common-audio",on:{ended:n.overAudio,pause:n.onPause,play:n.onPlay}})},nF=[];const rF={name:"AudioManager",data(){return{audioSubscribe:null,audioPlay:!1,audioTimer:null,audioId:0,audioSrc:null}},mounted(){this.audioSubscribe=Xi.Store.subscribe("audioSubscribe",this.setAudioPlay)},beforeDestroy(){this.audioSubscribe&&(this.audioSubscribe.unsubscribe(),this.audioSubscribe=null)},watch:{audioPlay(n){this.updateState(),this.audioTimer&&clearTimeout(this.audioTimer),n||(this.audioTimer=setTimeout(o=>{n||(this.$refs.audio.src=null,this.audioSrc=null)},3e3))},audioSrc(){this.updateState()}},methods:{setAudioPlay(n){const o=this.$refs.audio,l=o.ended||o.paused;if(o.controls=!1,o.loop=!1,o.volume=1,/^\d+$/.test(n)&&(n=n==this.audioId),typeof n=="boolean"){n&&!l&&o.pause();return}const{id:a,src:i}=n;i===this.audioSrc?l?o.play():o.pause():(this.audioId=a,this.audioSrc=i,l||o.pause(),o.src=i,o.play())},updateState(){this.$store.state.audioPlaying=this.audioPlay&&this.audioSrc?this.audioSrc:null},overAudio(){this.audioPlay=!1},onPause(){this.audioPlay=!1},onPlay(){this.audioPlay=!0}}},x0={};var iF=lr(rF,tF,nF,!1,aF,"353d8608",null,null);function aF(n){for(let o in x0)this[o]=x0[o]}var sF=function(){return iF.exports}(),oF=function(){var n=this,o=n.$createElement,l=n._self._c||o;return l("EDropdown",{ref:"dropdown",staticClass:"task-operation-dropdown",style:n.styles,attrs:{trigger:"click",disabled:n.disabled,size:n.size,placement:"bottom"},on:{command:n.dropTask,"visible-change":n.visibleChange}},[l("div",{ref:"icon",staticClass:"task-operation-icon"}),l("EDropdownMenu",{ref:"dropdownMenu",staticClass:"task-operation-more-dropdown",attrs:{slot:"dropdown"},slot:"dropdown"},[l("li",{staticClass:"task-operation-more-warp",class:n.size},[l("ul",[n.flow?n.turns.length>0?n._l(n.turns,function(a){return l("EDropdownItem",{key:a.id,attrs:{command:`turn::${a.id}`}},[l("div",{staticClass:"item flow"},[a.id==n.task.flow_item_id&&n.flow.auto_assign!==!0?l("Icon",{staticClass:"check",attrs:{type:"md-checkmark-circle-outline"}}):l("Icon",{attrs:{type:"md-radio-button-off"}}),l("div",{staticClass:"flow-name",class:a.status},[n._v(n._s(a.name))])],1)])}):[n.task.complete_at?l("EDropdownItem",{attrs:{command:"uncomplete"}},[l("div",{staticClass:"item red"},[l("Icon",{attrs:{type:"md-checkmark-circle-outline"}}),n._v(n._s(n.$L("\u6807\u8BB0\u672A\u5B8C\u6210"))+" ")],1)]):l("EDropdownItem",{attrs:{command:"complete"}},[l("div",{staticClass:"item"},[l("Icon",{attrs:{type:"md-radio-button-off"}}),n._v(n._s(n.$L("\u5B8C\u6210"))+" ")],1)])]:l("EDropdownItem",{staticClass:"load-flow",attrs:{disabled:""}},[l("div",{staticClass:"load-flow-warp"},[l("Loading")],1)]),n.task.parent_id===0?[l("EDropdownItem",{attrs:{divided:n.turns.length>0,command:"archived"}},[l("div",{staticClass:"item"},[l("Icon",{attrs:{type:"ios-filing"}}),n._v(n._s(n.$L(n.task.archived_at?"\u8FD8\u539F\u5F52\u6863":"\u5F52\u6863"))+" ")],1)]),l("EDropdownItem",{attrs:{command:"remove"}},[l("div",{staticClass:"item hover-del"},[l("Icon",{attrs:{type:"md-trash"}}),n._v(n._s(n.$L("\u5220\u9664"))+" ")],1)]),n.colorShow?n._l(n.taskColorList,function(a,i){return l("EDropdownItem",{key:"c_"+i,attrs:{divided:i==0,command:a}},[l("div",{staticClass:"item"},[l("i",{staticClass:"taskfont",style:{color:a.color||"#f9f9f9"},domProps:{innerHTML:n._s(a.color==n.task.color?"":"")}}),n._v(n._s(n.$L(a.name))+" ")])])}):n._e()]:l("EDropdownItem",{attrs:{command:"remove",divided:n.turns.length>0}},[l("div",{staticClass:"item"},[l("Icon",{attrs:{type:"md-trash"}}),n._v(n._s(n.$L("\u5220\u9664"))+" ")],1)])],2)])])],1)},lF=[];const uF={name:"TaskOperation",data(){return{task:{},loadStatus:!1,colorShow:!0,updateBefore:!1,disabled:!1,size:"small",onUpdate:null,element:null,target:null,styles:{}}},beforeDestroy(){this.target&&this.target.removeEventListener("scroll",this.handlerEventListeners)},computed:{...qi(["loads","taskOperation","taskColorList","taskFlows","taskFlowItems"]),...Wp(["isLoad"]),loadIng(){return this.loadStatus?!0:this.isLoad(`task-${this.task.id}`)},flow(){return this.taskFlows.find(({task_id:n})=>n==this.task.id)},turns(){if(!this.flow)return[];let n=this.taskFlowItems.find(({id:o})=>o==this.flow.flow_item_id);return n?this.taskFlowItems.filter(({id:o})=>n.turns.includes(o)):[]}},watch:{taskOperation(n){if(n.event&&n.task){if(this.$refs.dropdown.visible&&this.element===n.event.target){this.hide();return}const o=n.event.target.getBoundingClientRect();this.styles={left:`${o.left}px`,top:`${o.top}px`,width:`${o.width}px`,height:`${o.height}px`},this.task=n.task,this.loadStatus=typeof n.loadStatus=="undefined"?!1:n.loadStatus,this.colorShow=typeof n.colorShow=="undefined"?!0:n.colorShow,this.updateBefore=typeof n.updateBefore=="undefined"?!1:n.updateBefore,this.disabled=typeof n.disabled=="undefined"?!1:n.disabled,this.size=typeof n.size=="undefined"?"small":n.size,this.onUpdate=typeof n.onUpdate=="function"?n.onUpdate:null,this.$refs.icon.focus(),this.updatePopper(),this.show(),this.$store.dispatch("getTaskFlow",this.task.id).finally(this.updatePopper),this.setupEventListeners(n.event)}else this.hide()}},methods:{show(){this.$refs.dropdown.show()},hide(){this.$refs.dropdown.hide()},dropTask(n){const o=this.task,l=a=>{a?this.$store.dispatch("saveTaskCompleteTemp",o.id):this.$store.dispatch("forgetTaskCompleteTemp",o.id)};if($A.isJson(n)){n.name&&this.updateTask({color:n.color}).catch(()=>{});return}if($A.leftExists(n,"turn::")){let a=$A.leftDelete(n,"turn::");if(a==this.task.flow_item_id)return;let i=this.taskFlowItems.find(({id:v})=>v==this.flow.flow_item_id)||{},r=this.taskFlowItems.find(({id:v})=>v==a)||{},d=i.status!=="end"&&r.status==="end",f=i.status==="end"&&r.status!=="end";this.updateBefore&&(d?l(!0):f&&l(!1)),this.updateTask({flow_item_id:a}).then(()=>{d?l(!0):f&&l(!1)}).catch(()=>{d?l(!1):f&&l(!0)});return}switch(n){case"complete":if(this.task.complete_at)return;this.updateBefore&&l(!0),this.updateTask({complete_at:$A.formatDate("Y-m-d H:i:s")}).then(()=>{l(!0)}).catch(()=>{l(!1)});break;case"uncomplete":if(!this.task.complete_at)return;this.updateBefore&&l(!1),this.updateTask({complete_at:!1}).then(()=>{l(!1)}).catch(()=>{l(!0)});break;case"archived":case"remove":this.archivedOrRemoveTask(n);break}},updateTask(n){return new Promise((o,l)=>{if(this.loadIng){l();return}Object.keys(n).forEach(i=>this.$set(this.task,i,n[i]));const a=Object.assign(n,{task_id:this.task.id});this.$store.dispatch("taskUpdate",a).then(({data:i,msg:r})=>{$A.messageSuccess(r),o(),this.$store.dispatch("saveTaskBrowse",a.task_id),typeof this.onUpdate=="function"&&this.onUpdate(i)}).catch(({msg:i})=>{$A.modalError(i),this.$store.dispatch("getTaskOne",a.task_id).catch(()=>{}),l()})})},archivedOrRemoveTask(n){let o="removeTask",l="\u5220\u9664",a={task_id:this.task.id},i=this.task.parent_id>0?"\u5B50\u4EFB\u52A1":"\u4EFB\u52A1";n=="archived"&&(o="archivedTask",l="\u5F52\u6863",this.task.archived_at&&(l="\u8FD8\u539F\u5F52\u6863",a={task_id:this.task.id,type:"recovery"})),$A.modalConfirm({title:l+i,content:"\u4F60\u786E\u5B9A\u8981"+l+i+"\u3010"+this.task.name+"\u3011\u5417\uFF1F",loading:!0,onOk:()=>{if(!this.loadIng)return new Promise((r,d)=>{this.$store.dispatch(o,a).then(({msg:f})=>{r(f),this.$store.dispatch("saveTaskBrowse",a.task_id)}).catch(({msg:f})=>{d(f)})})}})},visibleChange(n){this.visible=n},updatePopper(){this.$nextTick(this.$refs.dropdownMenu.updatePopper)},setupEventListeners(n){this.element=n.target;let o=this.getScrollParent(this.element);if((o===window.document.body||o===window.document.documentElement)&&(o=window),this.target){if(this.target===o)return;this.target.removeEventListener("scroll",this.handlerEventListeners)}this.target=o,this.target.addEventListener("scroll",this.handlerEventListeners)},handlerEventListeners(n){if(!this.visible||!this.element)return;const o=n.target.getBoundingClientRect(),l=this.element.getBoundingClientRect();if(l.topo.top+o.height){this.hide();return}this.styles={left:`${l.left}px`,top:`${l.top}px`,width:`${l.width}px`,height:`${l.height}px`},this.updatePopper()},getScrollParent(n){const o=n.parentNode;return o?o===window.document?window.document.body.scrollTop||window.document.body.scrollLeft?window.document.body:window.document.documentElement:["scroll","auto"].indexOf(this.getStyleComputedProperty(o,"overflow"))!==-1||["scroll","auto"].indexOf(this.getStyleComputedProperty(o,"overflow-x"))!==-1||["scroll","auto"].indexOf(this.getStyleComputedProperty(o,"overflow-y"))!==-1?o:this.getScrollParent(n.parentNode):n},getStyleComputedProperty(n,o){return window.getComputedStyle(n,null)[o]}}},w0={};var dF=lr(uF,oF,lF,!1,cF,null,null,null);function cF(n){for(let o in w0)this[o]=w0[o]}var fF=function(){return dF.exports}(),hF=function(){var n=this,o=n.$createElement,l=n._self._c||o;return l("div",{attrs:{id:"app"}},[l("keep-alive",[l("router-view",{staticClass:"child-view"})],1),l("TaskOperation"),l("FloatSpinner"),l("RightBottom"),n.windowLarge?l("NetworkException"):n._e(),l("PreviewImageState"),l("AudioManager"),n._l(n.iframes,function(a){return a.url?l("iframe",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],key:a.key,attrs:{src:a.url}}):n._e()})],2)},pF=[];const vF={components:{TaskOperation:fF,AudioManager:sF,NetworkException:eF,PreviewImageState:YN,RightBottom:IN,FloatSpinner:T2},data(){return{routePath:null,searchInter:null,iframes:[]}},created(){this.electronEvents(),this.eeuiEvents(),this.otherEvents(),this.synchThemeLanguage()},mounted(){window.addEventListener("resize",this.windowSizeListener),window.addEventListener("scroll",this.windowScrollListener),this.searchInter=setInterval(this.searchEnter,1e3)},beforeDestroy(){window.removeEventListener("resize",this.windowSizeListener),window.removeEventListener("scroll",this.windowScrollListener),this.searchInter&&clearInterval(this.searchInter)},computed:{...qi(["ws","themeMode"]),isSoftware(){return this.$Electron||this.$isEEUiApp}},watch:{$route:{handler(n){this.routePath=n.path},immediate:!0},routePath:{handler(n){n&&this.userId>0&&(n=n.replace(/^\/manage\/file\/\d+\/(\d+)$/,"/single/file/$1"),this.$store.dispatch("websocketPath",n))},immediate:!0},userId:{handler(){this.$store.dispatch("websocketConnection"),this.userId>0&&(this.$isEEUiApp&&($A.eeuiAppSendMessage({action:"intiUmeng"}),setTimeout(n=>{$A.eeuiAppSendMessage({action:"setUmengAlias",userid:this.userId,token:this.userToken,url:$A.apiUrl("users/umeng/alias")})},6e3)),$A.IDBString("logOpen").then(n=>{$A.openLog=n==="open",$A.openLog&&$A.loadScript("js/vconsole.min.js",o=>{if(o!==null||typeof window.VConsole!="function"){$A.modalError("vConsole \u7EC4\u4EF6\u52A0\u8F7D\u5931\u8D25\uFF01");return}window.vConsole=new window.VConsole({onReady:()=>{console.log("vConsole: onReady")},onClearLog:()=>{console.log("vConsole: onClearLog")}})})}))},immediate:!0},windowActive(n){n&&(this.__windowTimer&&clearTimeout(this.__windowTimer),this.__windowTimer=setTimeout(o=>{this.$store.dispatch("call",{url:"users/socket/status"}).then(l=>{this.$store.dispatch("websocketSend",{type:"handshake"}).catch(a=>{this.$store.dispatch("websocketConnection")})}).catch(l=>{this.$store.dispatch("websocketConnection")}),this.themeMode==="auto"&&$A.dark.autoDarkMode()},600))},themeMode(){this.synchThemeLanguage()}},methods:{searchEnter(){let n=$A(".sreachBox");if(n.length===0||n.attr("data-enter-init")==="init")return;n.attr("data-enter-init","init");let o=n.find("button[type='button']"),l=null;o.length!==0&&(o.each((a,i)=>{$A(i).text().indexOf("\u641C\u7D22")&&(l=$A(i))}),l!==null&&n.find("input.ivu-input").keydown(function(a){a.keyCode==13&&(l.hasClass("ivu-btn-loading")||l.click())}))},synchThemeLanguage(){this.isSoftware&&(this.iframes=this.iframes.filter(({key:n})=>n!="synchThemeLanguage"),this.iframes.push({key:"synchThemeLanguage",url:$A.apiUrl(`../setting/theme_language?theme=${this.themeMode}&language=${Is}`)}))},windowSizeListener(){this.$store.state.windowWidth=$A(window).width(),this.$store.state.windowHeight=$A(window).height(),this.$store.state.windowLarge=this.$store.state.windowWidth>768,this.$store.state.windowSmall=this.$store.state.windowWidth<=768},windowScrollListener(){this.$store.state.windowScrollY=window.scrollY},electronEvents(){!this.$Electron||(window.__onBeforeUnload=()=>{if(this.$Modal.removeLast())return!0},this.$Electron.registerMsgListener("dispatch",n=>{if(!$A.isJson(n))return;let{action:o,data:l}=n;this.$store.dispatch(o,l)}),this.$Electron.registerMsgListener("browserWindowBlur",n=>{this.$store.state.windowActive=!1}),this.$Electron.registerMsgListener("browserWindowFocus",n=>{this.$store.state.windowActive=!0}),this.iframes.push({key:"manifest",url:$A.apiUrl("../manifest")}),$A.bindScreenshotKey($A.jsonParse(window.localStorage.getItem("__keyboard:data__"))||{}))},eeuiEvents(){!this.$isEEUiApp||($A("body").addClass("eeui-app"),window.__onPagePause=()=>{this.$store.state.windowActive=!1,this.$store.dispatch("getBasicData",-1)},window.__onPageResume=n=>{this.$store.state.windowActive=!0,n>0&&this.$store.dispatch("getBasicData",600)},window.__onNotificationPermissionStatus=n=>{this.$store.state.appNotificationPermission=$A.runNum(n)==1})},otherEvents(){if(!this.isSoftware){const n="hidden"in document?"hidden":"webkitHidden"in document?"webkitHidden":"mozHidden"in document?"mozHidden":null,o=n.replace(/hidden/i,"visibilitychange");document.addEventListener(o,()=>{this.$store.state.windowActive=!document[n]})}}}},S0={};var mF=lr(vF,hF,pF,!1,_F,"b568124a",null,null);function _F(n){for(let o in S0)this[o]=S0[o]}var gF=function(){return mF.exports}(),yF=[{name:"index",path:"/",component:()=>yn(()=>import("./index.c87e6256.js"),["js/build/index.c87e6256.js","js/build/UpdateLog.c8b0b98a.js"])},{name:"pro",path:"/pro",component:()=>yn(()=>import("./pro.1c8d65b0.js"),["js/build/pro.1c8d65b0.js","js/build/pro.039043a1.css","js/build/UpdateLog.c8b0b98a.js"])},{name:"manage",path:"/manage",component:()=>yn(()=>import("./manage.dcb52a78.js"),["js/build/manage.dcb52a78.js","js/build/manage.a77f99dc.css","js/build/CheckinExport.8a7d62a4.js","js/build/CheckinExport.68b4950e.css","js/build/UserInput.2bc16b15.js","js/build/index.f3f56c75.js","js/build/index.51410170.css","js/build/TEditor.a1d21399.js","js/build/ImgUpload.e60c7ecf.js","js/build/ReportEdit.4981db49.js","js/build/ReportDetail.732d6d88.js","js/build/DialogSelect.5d8dded5.js","js/build/DialogWrapper.0c8b0be3.js","js/build/TaskDetail.e0049723.js","js/build/ProjectLog.ac7d2c0b.js","js/build/TaskMenu.0eaf56d7.js"]),children:[{name:"manage-dashboard",path:"dashboard",component:()=>yn(()=>import("./dashboard.4a838ed2.js"),["js/build/dashboard.4a838ed2.js","js/build/TaskMenu.0eaf56d7.js"])},{name:"manage-calendar",path:"calendar",component:()=>yn(()=>import("./calendar.8bdd845c.js"),["js/build/calendar.8bdd845c.js","js/build/calendar.323d515a.css","js/build/TaskMenu.0eaf56d7.js"])},{name:"manage-messenger",path:"messenger/:dialogAction?",component:()=>yn(()=>import("./messenger.778c884d.js"),["js/build/messenger.778c884d.js","js/build/DialogWrapper.0c8b0be3.js","js/build/DialogSelect.5d8dded5.js","js/build/UserInput.2bc16b15.js","js/build/index.f3f56c75.js","js/build/index.51410170.css","js/build/ImgUpload.e60c7ecf.js"])},{name:"manage-setting",path:"setting",component:()=>yn(()=>import("./index.86e79d3b.js"),[]),children:[{name:"manage-setting-personal",path:"personal",component:()=>yn(()=>import("./personal.59098901.js"),["js/build/personal.59098901.js","js/build/ImgUpload.e60c7ecf.js"])},{name:"manage-setting-checkin",path:"checkin",component:()=>yn(()=>import("./checkin.0d786328.js"),["js/build/checkin.0d786328.js","js/build/checkin.2f8cf0b5.css"])},{name:"manage-setting-language",path:"language",component:()=>yn(()=>import("./language.34c761e5.js"),[])},{name:"manage-setting-theme",path:"theme",component:()=>yn(()=>import("./theme.b257d9ca.js"),[])},{name:"manage-setting-keyboard",path:"keyboard",component:()=>yn(()=>import("./keyboard.73faa1b4.js"),["js/build/keyboard.73faa1b4.js","js/build/keyboard.83204363.css"])},{name:"manage-setting-password",path:"password",component:()=>yn(()=>import("./password.2a18a0cb.js"),[])},{name:"manage-setting-email",path:"email",component:()=>yn(()=>import("./email.af678eb7.js"),[])},{name:"manage-setting-system",path:"system",component:()=>yn(()=>import("./system.dc8f36e7.js"),["js/build/system.dc8f36e7.js","js/build/index.f3f56c75.js","js/build/index.51410170.css","js/build/CheckinExport.8a7d62a4.js","js/build/CheckinExport.68b4950e.css","js/build/UserInput.2bc16b15.js"])},{name:"manage-setting-delete",path:"delete",component:()=>yn(()=>import("./delete.89a7cb0f.js"),[])}]},{name:"manage-project-invite",path:"project/invite",component:()=>yn(()=>import("./projectInvite.ef2b6575.js"),["js/build/projectInvite.ef2b6575.js","js/build/projectInvite.c62994fb.css"])},{name:"manage-project",path:"project/:projectId",component:()=>yn(()=>import("./project.1ededf9a.js"),["js/build/project.1ededf9a.js","js/build/ProjectLog.ac7d2c0b.js","js/build/UserInput.2bc16b15.js","js/build/TaskMenu.0eaf56d7.js","js/build/index.f3f56c75.js","js/build/index.51410170.css","js/build/DialogWrapper.0c8b0be3.js","js/build/DialogSelect.5d8dded5.js","js/build/ImgUpload.e60c7ecf.js"])},{name:"manage-file",path:"file/:folderId?/:fileId?",component:()=>yn(()=>import("./file.181f336a.js"),["js/build/file.181f336a.js","js/build/UserInput.2bc16b15.js","js/build/index.f3f56c75.js","js/build/index.51410170.css","js/build/DialogSelect.5d8dded5.js"])}]},{name:"single-file-msg",path:"/single/file/msg/:msgId",component:()=>yn(()=>import("./fileMsg.1ae48885.js"),["js/build/fileMsg.1ae48885.js","js/build/fileMsg.1a0b76dd.css","js/build/IFrame.5edcf1c5.js"])},{name:"single-file-task",path:"/single/file/task/:fileId",component:()=>yn(()=>import("./fileTask.14c3cf6b.js"),["js/build/fileTask.14c3cf6b.js","js/build/fileTask.93338ba0.css","js/build/IFrame.5edcf1c5.js"])},{name:"single-file",path:"/single/file/:codeOrFileId",component:()=>yn(()=>import("./file.880d0f68.js"),["js/build/file.880d0f68.js","js/build/file.560ab02c.css","js/build/FileContent.209e43d5.js","js/build/FileContent.5c6a1e1c.css","js/build/IFrame.5edcf1c5.js","js/build/FilePreview.07a4bed5.js"])},{name:"single-task",path:"/single/task/:taskId",component:()=>yn(()=>import("./task.796f0242.js"),["js/build/task.796f0242.js","js/build/task.0d7ca2d3.css","js/build/TaskDetail.e0049723.js","js/build/TEditor.a1d21399.js","js/build/ImgUpload.e60c7ecf.js","js/build/ProjectLog.ac7d2c0b.js","js/build/UserInput.2bc16b15.js","js/build/DialogWrapper.0c8b0be3.js","js/build/DialogSelect.5d8dded5.js","js/build/index.f3f56c75.js","js/build/index.51410170.css","js/build/TaskMenu.0eaf56d7.js"])},{name:"valid-email",path:"/single/valid/email",component:()=>yn(()=>import("./validEmail.dfd455f4.js"),["js/build/validEmail.dfd455f4.js","js/build/validEmail.6e361ca9.css"])},{name:"report-edit",path:"/single/report/edit/:reportEditId",component:()=>yn(()=>import("./reportEdit.f02ae320.js"),["js/build/reportEdit.f02ae320.js","js/build/reportEdit.5c397123.css","js/build/ReportEdit.4981db49.js","js/build/UserInput.2bc16b15.js"])},{name:"report-detail",path:"/single/report/detail/:reportDetailId",component:()=>yn(()=>import("./reportDetail.50768d0f.js"),["js/build/reportDetail.50768d0f.js","js/build/reportDetail.c12bef4b.css","js/build/ReportDetail.732d6d88.js"])},{name:"token",path:"/token",component:()=>yn(()=>import("./token.29a88a8a.js"),["js/build/token.29a88a8a.js","js/build/token.7afc4e00.css"])},{name:"login",path:"/login",component:()=>yn(()=>import("./login.03c32b80.js"),[])},{name:"404",path:"*",component:()=>yn(()=>import("./404.332392c6.js"),["js/build/404.332392c6.js","js/build/404.d686a01f.css"])}];/*! * vue-router v3.6.5 * (c) 2022 Evan You * @license MIT @@ -225,7 +225,7 @@ Please report this to https://github.com/markedjs/marked.`,(o||kn.defaults).sile `,ye+="@-webkit-keyframes "+K+` { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } } `,ye+="@keyframes "+K+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }",z(ye)}}function w(j){j.className+=" "+g+"_animation_active"}function D(j,A,F){if(j.addEventListener)j.addEventListener(A,F);else if(j.attachEvent)j.attachEvent("on"+A,F);else return v.error("[scroll] Don't know how to add event listeners.")}function k(j,A,F){if(j.removeEventListener)j.removeEventListener(A,F);else if(j.detachEvent)j.detachEvent("on"+A,F);else return v.error("[scroll] Don't know how to remove event listeners.")}function x(j){return m(j).container.childNodes[0].childNodes[0].childNodes[0]}function P(j){return m(j).container.childNodes[0].childNodes[0].childNodes[1]}function I(j,A){var F=m(j).listeners;if(!F.push)throw new Error("Cannot add listener to an element that is not detectable.");m(j).listeners.push(A)}function M(j,A,F){F||(F=A,A=j,j=null),j=j||{};function z(){if(j.debug){var Se=Array.prototype.slice.call(arguments);if(Se.unshift(c.get(A),"Scroll: "),v.log.apply)v.log.apply(null,Se);else for(var qe=0;qe0?[e._l(e.markList,function(p,_){return c("div",{key:_,class:[e.prefixCls+"-stop"],style:{left:p.position+"%"},on:{click:function(y){return y.target!==y.currentTarget?null:e.sliderClick.apply(null,arguments)}}})}),e._v(" "),c("div",{staticClass:"ivu-slider-marks"},e._l(e.markList,function(p,_){return c("SliderMarker",{key:_,style:{left:p.position+"%"},attrs:{mark:p.mark},nativeOn:{click:function(y){return e.sliderClick.apply(null,arguments)}}})}),1)]:e._e(),e._v(" "),c("div",{class:[e.prefixCls+"-button-wrap"],style:{left:e.minPosition+"%"},on:{touchstart:function(_){return e.onPointerDown(_,"min")},mousedown:function(_){return e.onPointerDown(_,"min")}}},[c("Tooltip",{ref:"minTooltip",attrs:{controlled:e.pointerDown==="min",placement:"top",content:e.tipFormat(e.exportValue[0]),disabled:e.tipDisabled,always:e.showTip==="always"}},[c("div",{class:e.minButtonClasses,attrs:{tabindex:"0"},on:{focus:function(_){return e.handleFocus("min")},blur:function(_){return e.handleBlur("min")},keydown:[function(p){return!p.type.indexOf("key")&&e._k(p.keyCode,"left",37,p.key,["Left","ArrowLeft"])||"button"in p&&p.button!==0?null:e.onKeyLeft(p,"min")},function(p){return!p.type.indexOf("key")&&e._k(p.keyCode,"down",40,p.key,["Down","ArrowDown"])?null:e.onKeyLeft(p,"min")},function(p){return!p.type.indexOf("key")&&e._k(p.keyCode,"right",39,p.key,["Right","ArrowRight"])||"button"in p&&p.button!==2?null:e.onKeyRight(p,"min")},function(p){return!p.type.indexOf("key")&&e._k(p.keyCode,"up",38,p.key,["Up","ArrowUp"])?null:e.onKeyRight(p,"min")}]}})])],1),e._v(" "),e.range?c("div",{class:[e.prefixCls+"-button-wrap"],style:{left:e.maxPosition+"%"},on:{touchstart:function(_){return e.onPointerDown(_,"max")},mousedown:function(_){return e.onPointerDown(_,"max")}}},[c("Tooltip",{ref:"maxTooltip",attrs:{controlled:e.pointerDown==="max",placement:"top",content:e.tipFormat(e.exportValue[1]),disabled:e.tipDisabled,always:e.showTip==="always"}},[c("div",{class:e.maxButtonClasses,attrs:{tabindex:"0"},on:{focus:function(_){return e.handleFocus("max")},blur:function(_){return e.handleBlur("max")},keydown:[function(p){return!p.type.indexOf("key")&&e._k(p.keyCode,"left",37,p.key,["Left","ArrowLeft"])||"button"in p&&p.button!==0?null:e.onKeyLeft(p,"max")},function(p){return!p.type.indexOf("key")&&e._k(p.keyCode,"down",40,p.key,["Down","ArrowDown"])?null:e.onKeyLeft(p,"max")},function(p){return!p.type.indexOf("key")&&e._k(p.keyCode,"right",39,p.key,["Right","ArrowRight"])||"button"in p&&p.button!==2?null:e.onKeyRight(p,"max")},function(p){return!p.type.indexOf("key")&&e._k(p.keyCode,"up",38,p.key,["Up","ArrowUp"])?null:e.onKeyRight(p,"max")}]}})])],1):e._e()],2)],1)},f=[];i.render=d,i.staticRenderFns=f},function(a,i,r){Object.defineProperty(i,"__esModule",{value:!0});var d=r(1),f=m(d),v=r(543),e=m(v);function m(g){return g&&g.__esModule?g:{default:g}}var c=void 0;function p(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:void 0;return c=c||e.default.newInstance({render:g}),c}function _(g){var y="render"in g?g.render:void 0,b=p(y);b.show(g)}e.default.show=function(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return _(g)},e.default.hide=function(){var g=this;if(!c)return!1;var y=p();y.remove(function(){(0,f.default)(this,g),c=null}.bind(this))},i.default=e.default},function(a,i,r){Object.defineProperty(i,"__esModule",{value:!0});var d=r(14),f=y(d),v=r(1),e=y(v),m=r(17),c=y(m),p=r(91),_=y(p),g=r(33);function y(T){return T&&T.__esModule?T:{default:T}}function b(){return(0,g.transferIncrease)(),(0,g.getTransferIndex)()}var E=b();_.default.newInstance=function(T){(0,e.default)(void 0,void 0);var w=T||{},D=new c.default({data:(0,f.default)({},w,{}),render:function(I){var M="";return this.render?M=I(_.default,{props:{fix:!0,fullscreen:!0}},[this.render(I)]):M=I(_.default,{props:{size:"large",fix:!0,fullscreen:!0}}),I("div",{class:"ivu-spin-fullscreen ivu-spin-fullscreen-wrapper",style:{"z-index":(0,g.hasTransferIndex)(E,2010+E)}},[M])}}),k=D.$mount();document.body.appendChild(k.$el);var x=D.$children[0];return{show:function(){x.visible=!0,E=b()},remove:function(I){x.visible=!1,setTimeout(function(){x.$parent.$destroy(),document.getElementsByClassName("ivu-spin-fullscreen")[0]!==void 0&&document.body.removeChild(document.getElementsByClassName("ivu-spin-fullscreen")[0]),I()},500)},component:x}}.bind(void 0),i.default=_.default},function(a,i,r){Object.defineProperty(i,"__esModule",{value:!0});var d=r(545),f=m(d),v=r(547),e=m(v);function m(c){return c&&c.__esModule?c:{default:c}}f.default.Step=e.default,i.default=f.default},function(a,i,r){Object.defineProperty(i,"__esModule",{value:!0});var d=r(232),f=r.n(d);for(var v in d)v!=="default"&&function(b){r.d(i,b,function(){return d[b]})}(v);var e=r(546);r.n(e);var m=r(0),c=!1,p=null,_=null,g=null,y=Object(m.a)(f.a,e.render,e.staticRenderFns,c,p,_,g);i.default=y.exports},function(a,i,r){Object.defineProperty(i,"__esModule",{value:!0});var d=function(){var e=this,m=e.$createElement,c=e._self._c||m;return c("div",{class:e.classes},[e._t("default")],2)},f=[];i.render=d,i.staticRenderFns=f},function(a,i,r){Object.defineProperty(i,"__esModule",{value:!0});var d=r(233),f=r.n(d);for(var v in d)v!=="default"&&function(b){r.d(i,b,function(){return d[b]})}(v);var e=r(548);r.n(e);var m=r(0),c=!1,p=null,_=null,g=null,y=Object(m.a)(f.a,e.render,e.staticRenderFns,c,p,_,g);i.default=y.exports},function(a,i,r){Object.defineProperty(i,"__esModule",{value:!0});var d=function(){var e=this,m=e.$createElement,c=e._self._c||m;return c("div",{class:e.wrapClasses},[c("div",{class:[e.prefixCls+"-tail"]},[c("i")]),e._v(" "),c("div",{class:[e.prefixCls+"-head"]},[c("div",{class:[e.prefixCls+"-head-inner"]},[!e.icon&&!e.$slots.icon&&e.currentStatus!=="finish"&&e.currentStatus!=="error"?c("span",[e._v(e._s(e.stepNumber))]):e.$slots.icon?c("span",{staticClass:"ivu-steps-icon"},[e._t("icon")],2):c("span",{class:e.iconClasses})])]),e._v(" "),c("div",{class:[e.prefixCls+"-main"]},[c("div",{class:[e.prefixCls+"-title"]},[e._t("title",function(){return[e._v(e._s(e.title))]})],2),e._v(" "),e.content||e.$slots.content?c("div",{class:[e.prefixCls+"-content"]},[e._t("content",function(){return[e._v(e._s(e.content))]})],2):e._e()])])},f=[];i.render=d,i.staticRenderFns=f},function(a,i,r){Object.defineProperty(i,"__esModule",{value:!0});var d=r(550),f=v(d);function v(e){return e&&e.__esModule?e:{default:e}}i.default=f.default},function(a,i,r){Object.defineProperty(i,"__esModule",{value:!0});var d=r(234),f=r.n(d);for(var v in d)v!=="default"&&function(b){r.d(i,b,function(){return d[b]})}(v);var e=r(551);r.n(e);var m=r(0),c=!1,p=null,_=null,g=null,y=Object(m.a)(f.a,e.render,e.staticRenderFns,c,p,_,g);i.default=y.exports},function(a,i,r){Object.defineProperty(i,"__esModule",{value:!0});var d=function(){var e=this,m=e.$createElement,c=e._self._c||m;return c("span",{class:e.wrapClasses,style:e.wrapStyles,attrs:{tabindex:"0"},on:{click:e.toggle,keydown:function(_){return!_.type.indexOf("key")&&e._k(_.keyCode,"space",32,_.key,[" ","Spacebar"])?null:e.toggle.apply(null,arguments)}}},[c("input",{attrs:{type:"hidden",name:e.name},domProps:{value:e.currentValue}}),e._v(" "),c("span",{class:e.innerClasses},[e.currentValue===e.trueValue?e._t("open"):e._e(),e._v(" "),e.currentValue===e.falseValue?e._t("close"):e._e()],2)])},f=[];i.render=d,i.staticRenderFns=f},function(a,i,r){Object.defineProperty(i,"__esModule",{value:!0});var d=r(553),f=v(d);function v(e){return e&&e.__esModule?e:{default:e}}i.default=f.default},function(a,i,r){Object.defineProperty(i,"__esModule",{value:!0});var d=r(235),f=r.n(d);for(var v in d)v!=="default"&&function(b){r.d(i,b,function(){return d[b]})}(v);var e=r(583);r.n(e);var m=r(0),c=!1,p=null,_=null,g=null,y=Object(m.a)(f.a,e.render,e.staticRenderFns,c,p,_,g);i.default=y.exports},function(a,i,r){a.exports={default:r(555),__esModule:!0}},function(a,i,r){r(79),r(36),r(46),r(556),r(562),r(565),r(567),a.exports=r(5).Set},function(a,i,r){var d=r(557),f=r(236),v="Set";a.exports=r(558)(v,function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(m){return d.def(f(this,v),m=m===0?0:m,m)}},d)},function(a,i,r){var d=r(16).f,f=r(55),v=r(90),e=r(25),m=r(88),c=r(51),p=r(72),_=r(102),g=r(190),y=r(13),b=r(77).fastKey,E=r(236),T=y?"_s":"size",w=function(D,k){var x=b(k),P;if(x!=="F")return D._i[x];for(P=D._f;P;P=P.n)if(P.k==k)return P};a.exports={getConstructor:function(D,k,x,P){var I=D(function(M,R){m(M,I,k,"_i"),M._t=k,M._i=f(null),M._f=void 0,M._l=void 0,M[T]=0,R!=null&&c(R,x,M[P],M)});return v(I.prototype,{clear:function(){for(var R=E(this,k),j=R._i,A=R._f;A;A=A.n)A.r=!0,A.p&&(A.p=A.p.n=void 0),delete j[A.i];R._f=R._l=void 0,R[T]=0},delete:function(M){var R=E(this,k),j=w(R,M);if(j){var A=j.n,F=j.p;delete R._i[j.i],j.r=!0,F&&(F.n=A),A&&(A.p=F),R._f==j&&(R._f=A),R._l==j&&(R._l=F),R[T]--}return!!j},forEach:function(R){E(this,k);for(var j=e(R,arguments.length>1?arguments[1]:void 0,3),A;A=A?A.n:this._f;)for(j(A.v,A.k,this);A&&A.r;)A=A.p},has:function(R){return!!w(E(this,k),R)}}),y&&d(I.prototype,"size",{get:function(){return E(this,k)[T]}}),I},def:function(D,k,x){var P=w(D,k),I,M;return P?P.v=x:(D._l=P={i:M=b(k,!0),k,v:x,p:I=D._l,n:void 0,r:!1},D._f||(D._f=P),I&&(I.n=P),D[T]++,M!=="F"&&(D._i[M]=P)),D},getEntry:w,setStrong:function(D,k,x){p(D,k,function(P,I){this._t=E(P,k),this._k=I,this._l=void 0},function(){for(var P=this,I=P._k,M=P._l;M&&M.r;)M=M.p;return!P._t||!(P._l=M=M?M.n:P._t._f)?(P._t=void 0,_(1)):I=="keys"?_(0,M.k):I=="values"?_(0,M.v):_(0,[M.k,M.v])},x?"entries":"values",!x,!0),g(k)}}},function(a,i,r){var d=r(9),f=r(7),v=r(77),e=r(31),m=r(26),c=r(90),p=r(51),_=r(88),g=r(19),y=r(47),b=r(16).f,E=r(559)(0),T=r(13);a.exports=function(w,D,k,x,P,I){var M=d[w],R=M,j=P?"set":"add",A=R&&R.prototype,F={};return!T||typeof R!="function"||!(I||A.forEach&&!e(function(){new R().entries().next()}))?(R=x.getConstructor(D,w,P,j),c(R.prototype,k),v.NEED=!0):(R=D(function(z,K){_(z,R,w,"_c"),z._c=new M,K!=null&&p(K,P,z[j],z)}),E("add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON".split(","),function(z){var K=z=="add"||z=="set";z in A&&!(I&&z=="clear")&&m(R.prototype,z,function(he,ye){if(_(this,R,z),!K&&I&&!g(he))return z=="get"?void 0:!1;var fe=this._c[z](he===0?0:he,ye);return K?this:fe})}),I||b(R.prototype,"size",{get:function(){return this._c.size}})),y(R,w),F[w]=R,f(f.G+f.W+f.F,F),I||x.setStrong(R,w,P),R}},function(a,i,r){var d=r(25),f=r(64),v=r(29),e=r(52),m=r(560);a.exports=function(c,p){var _=c==1,g=c==2,y=c==3,b=c==4,E=c==6,T=c==5||E,w=p||m;return function(D,k,x){for(var P=v(D),I=f(P),M=d(k,x,3),R=e(I.length),j=0,A=_?w(D,R):g?w(D,0):void 0,F,z;R>j;j++)if((T||j in I)&&(F=I[j],z=M(F,j,P),c)){if(_)A[j]=z;else if(z)switch(c){case 3:return!0;case 5:return F;case 6:return j;case 2:A.push(F)}else if(b)return!1}return E?-1:y||b?b:A}}},function(a,i,r){var d=r(561);a.exports=function(f,v){return new(d(f))(v)}},function(a,i,r){var d=r(19),f=r(111),v=r(10)("species");a.exports=function(e){var m;return f(e)&&(m=e.constructor,typeof m=="function"&&(m===Array||f(m.prototype))&&(m=void 0),d(m)&&(m=m[v],m===null&&(m=void 0))),m===void 0?Array:m}},function(a,i,r){var d=r(7);d(d.P+d.R,"Set",{toJSON:r(563)("Set")})},function(a,i,r){var d=r(56),f=r(564);a.exports=function(v){return function(){if(d(this)!=v)throw TypeError(v+"#toJSON isn't generic");return f(this)}}},function(a,i,r){var d=r(51);a.exports=function(f,v){var e=[];return d(f,!1,e.push,e,v),e}},function(a,i,r){r(566)("Set")},function(a,i,r){var d=r(7);a.exports=function(f){d(d.S,f,{of:function(){for(var e=arguments.length,m=new Array(e);e--;)m[e]=arguments[e];return new this(m)}})}},function(a,i,r){r(568)("Set")},function(a,i,r){var d=r(7),f=r(43),v=r(25),e=r(51);a.exports=function(m){d(d.S,m,{from:function(p){var _=arguments[1],g,y,b,E;return f(this),g=_!==void 0,g&&f(_),p==null?new this:(y=[],g?(b=0,E=v(_,arguments[2],2),e(p,!1,function(T){y.push(E(T,b++))})):e(p,!1,y.push,y),new this(y))}})}},function(a,i,r){Object.defineProperty(i,"__esModule",{value:!0});var d=r(237),f=r.n(d);for(var v in d)v!=="default"&&function(b){r.d(i,b,function(){return d[b]})}(v);var e=r(571);r.n(e);var m=r(0),c=!1,p=null,_=null,g=null,y=Object(m.a)(f.a,e.render,e.staticRenderFns,c,p,_,g);i.default=y.exports},function(a,i,r){Object.defineProperty(i,"__esModule",{value:!0});var d=r(1),f=v(d);function v(e){return e&&e.__esModule?e:{default:e}}i.default={name:"TableRenderHeader",functional:!0,props:{render:Function,column:Object,index:Number},render:function(m,c){(0,f.default)(void 0,void 0);var p={column:c.props.column,index:c.props.index};return c.props.render(m,p)}.bind(void 0)}},function(a,i,r){Object.defineProperty(i,"__esModule",{value:!0});var d=function(){var e=this,m=e.$createElement,c=e._self._c||m;return c("table",{style:e.styles,attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[c("colgroup",[e._l(e.columns,function(p,_){return c("col",{attrs:{width:e.setCellWidth(p)}})}),e._v(" "),e.$parent.showVerticalScrollBar?c("col",{attrs:{width:e.$parent.scrollBarWidth}}):e._e()],2),e._v(" "),c("thead",e._l(e.headRows,function(p,_){return c("tr",[e._l(p,function(g,y){var b;return c("th",{class:e.alignCls(g),attrs:{colspan:g.colSpan,rowspan:g.rowSpan}},[c("div",{class:e.cellClasses(g)},[g.type==="expand"?[g.renderHeader?c("render-header",{attrs:{render:g.renderHeader,column:g,index:y}}):c("span",[e._v(e._s(g.title||""))])]:g.type==="selection"?[g.hideSelectAll?e._e():c("Checkbox",{attrs:{value:e.isSelectAll,disabled:e.isSelectDisabled},on:{"on-change":e.selectAll}})]:[g.renderHeader?c("render-header",{attrs:{render:g.renderHeader,column:g,index:y}}):c("span",{class:(b={},b[e.prefixCls+"-cell-sort"]=g.sortable,b),on:{click:function(T){g.sortable&&e.handleSortByHead(e.getColumn(_,y)._index)}}},[e._v(e._s(g.title||"#"))]),e._v(" "),g.sortable?c("span",{class:[e.prefixCls+"-sort"]},[c("i",{staticClass:"ivu-icon ivu-icon-md-arrow-dropup",class:{on:e.getColumn(_,y)._sortType==="asc"},on:{click:function(T){e.handleSort(e.getColumn(_,y)._index,"asc")}}}),e._v(" "),c("i",{staticClass:"ivu-icon ivu-icon-md-arrow-dropdown",class:{on:e.getColumn(_,y)._sortType==="desc"},on:{click:function(T){e.handleSort(e.getColumn(_,y)._index,"desc")}}})]):e._e(),e._v(" "),e.isPopperShow(g)?c("Poptip",{attrs:{placement:"bottom","popper-class":"ivu-table-popper",transfer:"",capture:!1},on:{"on-popper-hide":function(T){e.handleFilterHide(e.getColumn(_,y)._index)}},model:{value:e.getColumn(_,y)._filterVisible,callback:function(T){e.$set(e.getColumn(_,y),"_filterVisible",T)},expression:"getColumn(rowIndex, index)._filterVisible"}},[c("span",{class:[e.prefixCls+"-filter"]},[c("i",{staticClass:"ivu-icon ivu-icon-ios-funnel",class:{on:e.getColumn(_,y)._isFiltered}})]),e._v(" "),e.getColumn(_,y)._filterMultiple?c("div",{class:[e.prefixCls+"-filter-list"],attrs:{slot:"content"},slot:"content"},[c("div",{class:[e.prefixCls+"-filter-list-item"]},[c("checkbox-group",{model:{value:e.getColumn(_,y)._filterChecked,callback:function(T){e.$set(e.getColumn(_,y),"_filterChecked",T)},expression:"getColumn(rowIndex, index)._filterChecked"}},e._l(g.filters,function(E,T){return c("checkbox",{key:T,attrs:{label:E.value}},[e._v(e._s(E.label))])}),1)],1),e._v(" "),c("div",{class:[e.prefixCls+"-filter-footer"]},[c("i-button",{attrs:{type:"text",size:"small",disabled:!e.getColumn(_,y)._filterChecked.length},nativeOn:{click:function(T){e.handleFilter(e.getColumn(_,y)._index)}}},[e._v(e._s(e.t("i.table.confirmFilter")))]),e._v(" "),c("i-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(T){e.handleReset(e.getColumn(_,y)._index)}}},[e._v(e._s(e.t("i.table.resetFilter")))])],1)]):c("div",{class:[e.prefixCls+"-filter-list"],attrs:{slot:"content"},slot:"content"},[c("ul",{class:[e.prefixCls+"-filter-list-single"]},[c("li",{class:e.itemAllClasses(e.getColumn(_,y)),on:{click:function(T){e.handleReset(e.getColumn(_,y)._index)}}},[e._v(e._s(e.t("i.table.clearFilter")))]),e._v(" "),e._l(g.filters,function(E){return c("li",{class:e.itemClasses(e.getColumn(_,y),E),on:{click:function(w){e.handleSelect(e.getColumn(_,y)._index,E.value)}}},[e._v(e._s(E.label))])})],2)])]):e._e()]],2),e._v(" "),g.resizable?c("div",{staticClass:"ivu-table-header-resizable",on:{mousedown:function(T){return e.handleMouseDown(g,T)},mousemove:function(T){return e.handleMouseMove(g,T)},mouseout:e.handleMouseOut}}):e._e()])}),e._v(" "),e.$parent.showVerticalScrollBar&&_===0?c("th",{class:e.scrollBarCellClass(),attrs:{rowspan:e.headRows.length}}):e._e()],2)}),0)])},f=[];i.render=d,i.staticRenderFns=f},function(a,i,r){Object.defineProperty(i,"__esModule",{value:!0});var d=r(238),f=r.n(d);for(var v in d)v!=="default"&&function(E){r.d(i,E,function(){return d[E]})}(v);var e=r(0),m,c,p=!1,_=null,g=null,y=null,b=Object(e.a)(f.a,m,c,p,_,g,y);i.default=b.exports},function(a,i,r){Object.defineProperty(i,"__esModule",{value:!0});var d=r(239),f=r.n(d);for(var v in d)v!=="default"&&function(b){r.d(i,b,function(){return d[b]})}(v);var e=r(574);r.n(e);var m=r(0),c=!1,p=null,_=null,g=null,y=Object(m.a)(f.a,e.render,e.staticRenderFns,c,p,_,g);i.default=y.exports},function(a,i,r){Object.defineProperty(i,"__esModule",{value:!0});var d=function(){var e=this,m=e.$createElement,c=e._self._c||m;return e.draggable?c("tr",{class:e.rowClasses(e.row._index),attrs:{draggable:e.draggable},on:{dragstart:function(_){return e.onDrag(_,e.row._index)},drop:function(_){return e.onDrop(_,e.row._index)},dragover:function(_){return e.allowDrop(_)}}},[e._t("default")],2):c("tr",{class:e.rowClasses(e.row._index),attrs:{draggable:!1}},[e._t("default")],2)},f=[];i.render=d,i.staticRenderFns=f},function(a,i,r){Object.defineProperty(i,"__esModule",{value:!0});var d=r(240),f=r.n(d);for(var v in d)v!=="default"&&function(b){r.d(i,b,function(){return d[b]})}(v);var e=r(577);r.n(e);var m=r(0),c=!1,p=null,_=null,g=null,y=Object(m.a)(f.a,e.render,e.staticRenderFns,c,p,_,g);i.default=y.exports},function(a,i,r){Object.defineProperty(i,"__esModule",{value:!0});var d=r(1),f=v(d);function v(e){return e&&e.__esModule?e:{default:e}}i.default={name:"TableSlot",functional:!0,inject:["tableRoot"],props:{row:Object,index:Number,column:{type:Object,default:null},display:{type:String,default:"block"}},render:function(m,c){return(0,f.default)(void 0,void 0),m("div",{class:{"ivu-table-cell-slot":!0,"ivu-table-cell-slot-inline":c.props.display==="inline","ivu-table-cell-slot-inline-block":c.props.display==="inline-block"}},c.injections.tableRoot.$scopedSlots[c.props.column.slot]({row:c.props.row,column:c.props.column,index:c.props.index}))}.bind(void 0)}},function(a,i,r){Object.defineProperty(i,"__esModule",{value:!0});var d=function(){var e=this,m=e.$createElement,c=e._self._c||m;return c("div",{ref:"cell",class:e.classes},[e.renderType==="index"?[c("span",[e._v(e._s(e.column.indexMethod?e.column.indexMethod(e.row,e.naturalIndex):e.naturalIndex+1))])]:e._e(),e._v(" "),e.renderType==="selection"?[c("Checkbox",{attrs:{value:e.checked,disabled:e.disabled},on:{"on-change":e.toggleSelect},nativeOn:{click:function(_){return _.stopPropagation(),e.handleClick.apply(null,arguments)}}})]:e._e(),e._v(" "),e.showLevel?c("div",{staticClass:"ivu-table-cell-tree-level",style:e.treeLevelStyle}):e._e(),e._v(" "),e.showChildren?c("div",{staticClass:"ivu-table-cell-tree",class:{"ivu-table-cell-tree-loading":e.childrenLoading},on:{click:function(_){return _.preventDefault(),_.stopPropagation(),e.handleToggleTree.apply(null,arguments)}}},[e.childrenLoading?c("Icon",{staticClass:"ivu-load-loop",attrs:{type:"ios-loading"}}):e.childrenExpand?c("Icon",{attrs:{type:"ios-remove"}}):c("Icon",{attrs:{type:"ios-add"}})],1):e.showTreeNode?c("div",{staticClass:"ivu-table-cell-tree ivu-table-cell-tree-empty"}):e._e(),e._v(" "),e.renderType==="html"?[c("span",{domProps:{innerHTML:e._s(e.row[e.column.key])}})]:e._e(),e._v(" "),e.renderType==="normal"?[e.column.tooltip?[c("Tooltip",{staticClass:"ivu-table-cell-tooltip",attrs:{transfer:"",content:e.row[e.column.key],theme:e.column.tooltipTheme?e.column.tooltipTheme:e.tableRoot.tooltipTheme,disabled:!e.showTooltip,"max-width":e.column.tooltipMaxWidth?e.column.tooltipMaxWidth:e.tableRoot.tooltipMaxWidth}},[c("span",{ref:"content",staticClass:"ivu-table-cell-tooltip-content",on:{mouseenter:e.handleTooltipIn}},[e._v(e._s(e.row[e.column.key]))])])]:c("span",[e._v(e._s(e.row[e.column.key]))])]:e._e(),e._v(" "),e.renderType==="expand"&&!e.row._disableExpand?[c("div",{class:e.expandCls,on:{click:e.toggleExpand}},[c("Icon",{attrs:{type:"ios-arrow-forward"}})],1)]:e._e(),e._v(" "),e.renderType==="render"?c("table-expand",{attrs:{row:e.row,column:e.column,index:e.index,render:e.column.render}}):e._e(),e._v(" "),e.renderType==="slot"?c("table-slot",{attrs:{row:e.row,column:e.column,display:e.column.display||"block",index:e.index}}):e._e()],2)},f=[];i.render=d,i.staticRenderFns=f},function(a,i,r){Object.defineProperty(i,"__esModule",{value:!0});var d=r(242),f=r.n(d);for(var v in d)v!=="default"&&function(b){r.d(i,b,function(){return d[b]})}(v);var e=r(579);r.n(e);var m=r(0),c=!1,p=null,_=null,g=null,y=Object(m.a)(f.a,e.render,e.staticRenderFns,c,p,_,g);i.default=y.exports},function(a,i,r){Object.defineProperty(i,"__esModule",{value:!0});var d=function(){var e=this,m=e.$createElement,c=e._self._c||m;return c("div",{staticStyle:{overflow:"hidden"}},[c("table",{staticClass:"ivu-table-summary",style:e.styleObject,attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[c("colgroup",e._l(e.columns,function(p,_){return c("col",{attrs:{width:e.setCellWidth(p)}})}),0),e._v(" "),c("tbody",{class:[e.prefixCls+"-tbody"]},[c("tr",{staticClass:"ivu-table-row"},e._l(e.columns,function(p,_){return c("td",{class:e.alignCls(p)},[c("div",{staticClass:"ivu-table-cell",class:e.cellCls(p)},[c("span",[e._v(e._s(e.data[p.key].value))])])])}),0)])])])},f=[];i.render=d,i.staticRenderFns=f},function(a,i,r){Object.defineProperty(i,"__esModule",{value:!0});var d=r(22),f=p(d),v=r(14),e=p(v),m=r(1),c=p(m);i.default=b;function p(E){return E&&E.__esModule?E:{default:E}}var _=`\r `,g=function(E,T,w){var D=w.separator,k=w.quoted;(0,c.default)(void 0,void 0);var x=T.map(function(P){return(0,c.default)(void 0,void 0),k?(P=typeof P=="string"?P.replace(/"/g,'"'):P,'"'+String(P)+'"'):P}.bind(void 0));E.push(x.join(D))}.bind(void 0),y={separator:",",quoted:!1};function b(E,T,w){var D=this,k=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;w=(0,e.default)({},y,w);var x=void 0,P=[],I=[];return E?(x=E.map(function(M){return(0,c.default)(this,D),typeof M=="string"?M:(k||I.push(typeof M.title!="undefined"?M.title:M.key),M.key)}.bind(this)),I.length>0&&g(P,I,w)):(x=[],T.forEach(function(M){(0,c.default)(this,D),Array.isArray(M)||(x=x.concat((0,f.default)(M)))}.bind(this)),x.length>0&&(x=x.filter(function(M,R,j){return(0,c.default)(this,D),j.indexOf(M)===R}.bind(this)),k||g(P,x,w))),Array.isArray(T)&&T.forEach(function(M){(0,c.default)(this,D),Array.isArray(M)||(M=x.map(function(R){return(0,c.default)(this,D),typeof M[R]!="undefined"?M[R]:""}.bind(this))),g(P,M,w)}.bind(this)),P.join(_)}},function(a,i,r){Object.defineProperty(i,"__esModule",{value:!0});function d(v){var e=navigator.userAgent;if(v==="ie"){var m=e.indexOf("compatible")>-1&&e.indexOf("MSIE")>-1;if(m){var c=new RegExp("MSIE (\\d+\\.\\d+);");return c.test(e),parseFloat(RegExp.$1)}else return!1}else return e.indexOf(v)>-1}var f={_isIE11:function(){var e=0,m=/MSIE (\d+\.\d+);/.test(navigator.userAgent),c=!!navigator.userAgent.match(/Trident\/7.0/),p=navigator.userAgent.indexOf("rv:11.0");return m&&(e=Number(RegExp.$1)),navigator.appVersion.indexOf("MSIE 10")!==-1&&(e=10),c&&p!==-1&&(e=11),e===11},_isEdge:function(){return/Edge/.test(navigator.userAgent)},_getDownloadUrl:function(e){var m="\uFEFF";if(window.Blob&&window.URL&&window.URL.createObjectURL){var c=new Blob([m+e],{type:"text/csv"});return URL.createObjectURL(c)}else return"data:attachment/csv;charset=utf-8,"+m+encodeURIComponent(e)},download:function(e,m){if(d("ie")&&d("ie")<10){var c=window.top.open("about:blank","_blank");c.document.charset="utf-8",c.document.write(m),c.document.close(),c.document.execCommand("SaveAs",e),c.close()}else if(d("ie")===10||this._isIE11()||this._isEdge()){var p="\uFEFF",_=new Blob([p+m],{type:"text/csv"});navigator.msSaveBlob(_,e)}else{var g=document.createElement("a");g.download=e,g.href=this._getDownloadUrl(m),document.body.appendChild(g),g.click(),document.body.removeChild(g)}}};i.default=f},function(a,i,r){Object.defineProperty(i,"__esModule",{value:!0}),i.getRandomStr=i.convertToRows=i.getAllColumns=i.convertColumnOrder=void 0;var d=r(1),f=e(d),v=r(3);function e(g){return g&&g.__esModule?g:{default:g}}var m=function(g,y){(0,f.default)(void 0,void 0);var b=[],E=[];return g.forEach(function(T){(0,f.default)(void 0,void 0),T.fixed&&T.fixed===y?b.push(T):E.push(T)}.bind(void 0)),b.concat(E)}.bind(void 0);i.convertColumnOrder=m;var c=function(g){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;(0,f.default)(void 0,void 0);var b=(0,v.deepCopy)(g),E=[];return b.forEach(function(T){(0,f.default)(void 0,void 0),T.children?(y&&E.push(T),E.push.apply(E,c(T.children,y))):E.push(T)}.bind(void 0)),E}.bind(void 0);i.getAllColumns=c;var p=function(g){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;(0,f.default)(void 0,void 0);var b=y?y==="left"?(0,v.deepCopy)(m(g,"left")):(0,v.deepCopy)(m(g,"right")):(0,v.deepCopy)(g),E=1,T=function(x,P){if((0,f.default)(void 0,void 0),P&&(x.level=P.level+1,E0&&arguments[0]!==void 0?arguments[0]:32,b="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890",E=b.length,T="",w=0;w=6e4&&E<36e5?T=Math.floor(E/6e4)+(g("i.time.minutes")||"\u5206\u949F")+w:E>=36e5&&E<864e5?T=Math.floor(E/36e5)+(g("i.time.hours")||"\u5C0F\u65F6")+w:E>=864e5&&E<262386e4?T=Math.floor(E/864e5)+(g("i.time.days")||"\u5929")+w:E>=262386e4&&E<=3156786e4&&b?T=c(_):T=c(_,"year"),T}.bind(void 0)},function(a,i,r){Object.defineProperty(i,"__esModule",{value:!0});var d=function(){var e=this,m=e.$createElement,c=e._self._c||m;return c("span",{class:e.classes,on:{click:e.handleClick}},[e._v(e._s(e.date))])},f=[];i.render=d,i.staticRenderFns=f},function(a,i,r){Object.defineProperty(i,"__esModule",{value:!0});var d=r(597),f=m(d),v=r(599),e=m(v);function m(c){return c&&c.__esModule?c:{default:c}}f.default.Item=e.default,i.default=f.default},function(a,i,r){Object.defineProperty(i,"__esModule",{value:!0});var d=r(247),f=r.n(d);for(var v in d)v!=="default"&&function(b){r.d(i,b,function(){return d[b]})}(v);var e=r(598);r.n(e);var m=r(0),c=!1,p=null,_=null,g=null,y=Object(m.a)(f.a,e.render,e.staticRenderFns,c,p,_,g);i.default=y.exports},function(a,i,r){Object.defineProperty(i,"__esModule",{value:!0});var d=function(){var e=this,m=e.$createElement,c=e._self._c||m;return c("ul",{class:e.classes},[e._t("default")],2)},f=[];i.render=d,i.staticRenderFns=f},function(a,i,r){Object.defineProperty(i,"__esModule",{value:!0});var d=r(248),f=r.n(d);for(var v in d)v!=="default"&&function(b){r.d(i,b,function(){return d[b]})}(v);var e=r(600);r.n(e);var m=r(0),c=!1,p=null,_=null,g=null,y=Object(m.a)(f.a,e.render,e.staticRenderFns,c,p,_,g);i.default=y.exports},function(a,i,r){Object.defineProperty(i,"__esModule",{value:!0});var d=function(){var e=this,m=e.$createElement,c=e._self._c||m;return c("li",{class:e.itemClasses},[c("div",{class:e.tailClasses}),e._v(" "),c("div",{ref:"dot",class:e.headClasses,style:e.customColor},[e._t("dot")],2),e._v(" "),c("div",{class:e.contentClasses},[e._t("default")],2)])},f=[];i.render=d,i.staticRenderFns=f},function(a,i,r){Object.defineProperty(i,"__esModule",{value:!0});var d=r(602),f=v(d);function v(e){return e&&e.__esModule?e:{default:e}}i.default=f.default},function(a,i,r){Object.defineProperty(i,"__esModule",{value:!0});var d=r(1),f=E(d),v=r(157),e=E(v),m=r(166),c=E(m),p=r(175),_=E(p),g=r(58),y=E(g),b=r(3);function E(T){return T&&T.__esModule?T:{default:T}}i.default={mixins:[e.default,y.default],components:{TimePickerPanel:c.default,RangeTimePickerPanel:_.default},props:{type:{validator:function(w){return(0,b.oneOf)(w,["time","timerange"])},default:"time"}},computed:{panel:function(){var w=this.type==="timerange";return w?"RangeTimePickerPanel":"TimePickerPanel"},ownPickerProps:function(){return{disabledHours:this.disabledHours,disabledMinutes:this.disabledMinutes,disabledSeconds:this.disabledSeconds,hideDisabledOptions:this.hideDisabledOptions}}},watch:{visible:function(w){var D=this;w&&this.$nextTick(function(){(0,f.default)(this,D);var k=(0,b.findComponentsDownward)(this,"TimeSpinner");k.forEach(function(x){return(0,f.default)(this,D),x.updateScroll()}.bind(this))}.bind(this))}}}},function(a,i,r){Object.defineProperty(i,"__esModule",{value:!0});var d=r(93),f=v(d);function v(e){return e&&e.__esModule?e:{default:e}}i.default=f.default},function(a,i,r){Object.defineProperty(i,"__esModule",{value:!0});var d=r(605),f=v(d);function v(e){return e&&e.__esModule?e:{default:e}}i.default=f.default},function(a,i,r){Object.defineProperty(i,"__esModule",{value:!0});var d=r(249),f=r.n(d);for(var v in d)v!=="default"&&function(E){r.d(i,E,function(){return d[E]})}(v);var e=r(0),m,c,p=!1,_=null,g=null,y=null,b=Object(e.a)(f.a,m,c,p,_,g,y);i.default=b.exports},function(a,i,r){Object.defineProperty(i,"__esModule",{value:!0});var d=r(250),f=r.n(d);for(var v in d)v!=="default"&&function(b){r.d(i,b,function(){return d[b]})}(v);var e=r(609);r.n(e);var m=r(0),c=!1,p=null,_=null,g=null,y=Object(m.a)(f.a,e.render,e.staticRenderFns,c,p,_,g);i.default=y.exports},function(a,i,r){Object.defineProperty(i,"__esModule",{value:!0});var d=r(251),f=r.n(d);for(var v in d)v!=="default"&&function(b){r.d(i,b,function(){return d[b]})}(v);var e=r(608);r.n(e);var m=r(0),c=!1,p=null,_=null,g=null,y=Object(m.a)(f.a,e.render,e.staticRenderFns,c,p,_,g);i.default=y.exports},function(a,i,r){Object.defineProperty(i,"__esModule",{value:!0});var d=function(){var e=this,m=e.$createElement,c=e._self._c||m;return c("div",{class:e.prefixCls},[c("i-input",{attrs:{size:"small",icon:e.icon,placeholder:e.placeholder},on:{"on-click":e.handleClick},model:{value:e.currentQuery,callback:function(_){e.currentQuery=_},expression:"currentQuery"}})],1)},f=[];i.render=d,i.staticRenderFns=f},function(a,i,r){Object.defineProperty(i,"__esModule",{value:!0});var d=function(){var e=this,m=e.$createElement,c=e._self._c||m;return c("div",{class:e.classes,style:e.listStyle},[c("div",{class:e.prefixCls+"-header"},[c("Checkbox",{attrs:{value:e.checkedAll,disabled:e.checkedAllDisabled},on:{"on-change":e.toggleSelectAll}}),e._v(" "),c("span",{class:e.prefixCls+"-header-title",on:{click:function(_){return e.toggleSelectAll(!e.checkedAll)}}},[e._v(e._s(e.title))]),e._v(" "),c("span",{class:e.prefixCls+"-header-count"},[e._v(e._s(e.count))])],1),e._v(" "),c("div",{class:e.bodyClasses},[e.filterable?c("div",{class:e.prefixCls+"-body-search-wrapper"},[c("Search",{attrs:{"prefix-cls":e.prefixCls+"-search",query:e.query,placeholder:e.filterPlaceholder},on:{"on-query-clear":e.handleQueryClear,"on-query-change":e.handleQueryChange}})],1):e._e(),e._v(" "),c("ul",{class:e.prefixCls+"-content"},[e._l(e.filterData,function(p){return c("li",{class:e.itemClasses(p),on:{click:function(g){return g.preventDefault(),e.select(p)}}},[c("Checkbox",{attrs:{value:e.isCheck(p),disabled:p.disabled}}),e._v(" "),c("span",{domProps:{innerHTML:e._s(e.showLabel(p))}})],1)}),e._v(" "),c("li",{class:e.prefixCls+"-content-not-found"},[e._v(e._s(e.notFoundText))])],2)]),e._v(" "),e.showFooter?c("div",{class:e.prefixCls+"-footer"},[e._t("default")],2):e._e()])},f=[];i.render=d,i.staticRenderFns=f},function(a,i,r){Object.defineProperty(i,"__esModule",{value:!0});var d=r(252),f=r.n(d);for(var v in d)v!=="default"&&function(b){r.d(i,b,function(){return d[b]})}(v);var e=r(611);r.n(e);var m=r(0),c=!1,p=null,_=null,g=null,y=Object(m.a)(f.a,e.render,e.staticRenderFns,c,p,_,g);i.default=y.exports},function(a,i,r){Object.defineProperty(i,"__esModule",{value:!0});var d=function(){var e=this,m=e.$createElement,c=e._self._c||m;return c("div",{class:e.prefixCls+"-operation"},[e.reverseOperation?[c("i-button",{attrs:{type:"primary",size:"small",disabled:!e.leftActive},nativeOn:{click:function(_){return e.moveToRight.apply(null,arguments)}}},[c("span",[e._v(e._s(e.operations[1]))]),e._v(" "),c("Icon",{attrs:{type:"ios-arrow-forward"}})],1),e._v(" "),c("i-button",{attrs:{type:"primary",size:"small",disabled:!e.rightActive},nativeOn:{click:function(_){return e.moveToLeft.apply(null,arguments)}}},[c("Icon",{attrs:{type:"ios-arrow-back"}}),e._v(" "),c("span",[e._v(e._s(e.operations[0]))])],1)]:[c("i-button",{attrs:{type:"primary",size:"small",disabled:!e.rightActive},nativeOn:{click:function(_){return e.moveToLeft.apply(null,arguments)}}},[c("Icon",{attrs:{type:"ios-arrow-back"}}),e._v(" "),c("span",[e._v(e._s(e.operations[0]))])],1),e._v(" "),c("i-button",{attrs:{type:"primary",size:"small",disabled:!e.leftActive},nativeOn:{click:function(_){return e.moveToRight.apply(null,arguments)}}},[c("span",[e._v(e._s(e.operations[1]))]),e._v(" "),c("Icon",{attrs:{type:"ios-arrow-forward"}})],1)]],2)},f=[];i.render=d,i.staticRenderFns=f},function(a,i,r){Object.defineProperty(i,"__esModule",{value:!0});var d=r(613),f=v(d);function v(e){return e&&e.__esModule?e:{default:e}}i.default=f.default},function(a,i,r){Object.defineProperty(i,"__esModule",{value:!0});var d=r(253),f=r.n(d);for(var v in d)v!=="default"&&function(b){r.d(i,b,function(){return d[b]})}(v);var e=r(617);r.n(e);var m=r(0),c=!1,p=null,_=null,g=null,y=Object(m.a)(f.a,e.render,e.staticRenderFns,c,p,_,g);i.default=y.exports},function(a,i,r){Object.defineProperty(i,"__esModule",{value:!0});var d=r(254),f=r.n(d);for(var v in d)v!=="default"&&function(b){r.d(i,b,function(){return d[b]})}(v);var e=r(616);r.n(e);var m=r(0),c=!1,p=null,_=null,g=null,y=Object(m.a)(f.a,e.render,e.staticRenderFns,c,p,_,g);i.default=y.exports},function(a,i,r){Object.defineProperty(i,"__esModule",{value:!0});var d=r(1),f=v(d);function v(e){return e&&e.__esModule?e:{default:e}}i.default={name:"RenderCell",functional:!0,props:{render:Function,data:Object,node:Array},render:function(m,c){(0,f.default)(void 0,void 0);var p={root:c.props.node[0],node:c.props.node[1],data:c.props.data};return c.props.render(m,p)}.bind(void 0)}},function(a,i,r){Object.defineProperty(i,"__esModule",{value:!0});var d=function(){var e=this,m=e.$createElement,c=e._self._c||m;return c("collapse-transition",{attrs:{appear:e.appear}},[c("ul",{class:e.classes},[c("li",{on:{contextmenu:function(_){return _.stopPropagation(),e.handleContextmenu(e.data,_)},selectstart:function(_){return _.stopPropagation(),e.handlePreventSelect(e.data,_)}}},[c("span",{class:e.arrowClasses,on:{click:e.handleExpand}},[e.showArrow?c("Icon",{attrs:{type:e.arrowType,custom:e.customArrowType,size:e.arrowSize}}):e._e(),e._v(" "),e.showLoading?c("Icon",{staticClass:"ivu-load-loop",attrs:{type:"ios-loading"}}):e._e()],1),e._v(" "),e.showCheckbox?c("Checkbox",{attrs:{value:e.data.checked,indeterminate:e.data.indeterminate,disabled:e.data.disabled||e.data.disableCheckbox},nativeOn:{click:function(_){return _.preventDefault(),e.handleCheck.apply(null,arguments)}}}):e._e(),e._v(" "),c("span",{class:e.titleClasses,on:{click:e.handleClickNode}},[e.data.render?c("Render",{attrs:{render:e.data.render,data:e.data,node:e.node}}):e.isParentRender?c("Render",{attrs:{render:e.parentRender,data:e.data,node:e.node}}):[e._v(e._s(e.data.title))]],2),e._v(" "),e._l(e.children,function(p,_){return e.data.expand?c("Tree-node",{key:_,attrs:{appear:e.appearByClickArrow,data:p,multiple:e.multiple,"show-checkbox":e.showCheckbox,"children-key":e.childrenKey}}):e._e()})],2)])])},f=[];i.render=d,i.staticRenderFns=f},function(a,i,r){Object.defineProperty(i,"__esModule",{value:!0});var d=function(){var e=this,m=e.$createElement,c=e._self._c||m;return c("div",{ref:"treeWrap",class:e.prefixCls},[e._l(e.stateTree,function(p,_){return c("Tree-node",{key:_,attrs:{data:p,visible:"",multiple:e.multiple,"show-checkbox":e.showCheckbox,"children-key":e.childrenKey}})}),e._v(" "),e.stateTree.length?e._e():c("div",{class:[e.prefixCls+"-empty"]},[e._v(e._s(e.localeEmptyText))]),e._v(" "),c("div",{staticClass:"ivu-tree-context-menu",style:e.contextMenuStyles},[c("Dropdown",{attrs:{trigger:"custom",visible:e.contextMenuVisible,transfer:""},on:{"on-clickoutside":e.handleClickContextMenuOutside}},[c("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[e._t("contextMenu")],2)],1)],1)],2)},f=[];i.render=d,i.staticRenderFns=f},function(a,i,r){Object.defineProperty(i,"__esModule",{value:!0});var d=r(619),f=v(d);function v(e){return e&&e.__esModule?e:{default:e}}i.default=f.default},function(a,i,r){Object.defineProperty(i,"__esModule",{value:!0});var d=r(255),f=r.n(d);for(var v in d)v!=="default"&&function(b){r.d(i,b,function(){return d[b]})}(v);var e=r(623);r.n(e);var m=r(0),c=!1,p=null,_=null,g=null,y=Object(m.a)(f.a,e.render,e.staticRenderFns,c,p,_,g);i.default=y.exports},function(a,i,r){Object.defineProperty(i,"__esModule",{value:!0});var d=r(256),f=r.n(d);for(var v in d)v!=="default"&&function(b){r.d(i,b,function(){return d[b]})}(v);var e=r(621);r.n(e);var m=r(0),c=!1,p=null,_=null,g=null,y=Object(m.a)(f.a,e.render,e.staticRenderFns,c,p,_,g);i.default=y.exports},function(a,i,r){Object.defineProperty(i,"__esModule",{value:!0});var d=function(){var e=this,m=e.$createElement,c=e._self._c||m;return c("ul",{class:[e.prefixCls+"-list"]},e._l(e.files,function(p){return c("li",{class:e.fileCls(p),on:{click:function(g){return e.handleClick(p)}}},[c("span",{on:{click:function(g){return e.handlePreview(p)}}},[c("Icon",{attrs:{type:e.format(p)}}),e._v(" "+e._s(p.name)+` - `)],1),e._v(" "),c("Icon",{directives:[{name:"show",rawName:"v-show",value:p.status==="finished",expression:"file.status === 'finished'"}],class:[e.prefixCls+"-list-remove"],attrs:{type:"ios-close"},nativeOn:{click:function(g){return e.handleRemove(p)}}}),e._v(" "),c("transition",{attrs:{name:"fade"}},[p.showProgress?c("i-progress",{attrs:{"stroke-width":2,percent:e.parsePercentage(p.percentage),status:p.status==="finished"&&p.showProgress?"success":"normal"}}):e._e()],1)],1)}),0)},f=[];i.render=d,i.staticRenderFns=f},function(a,i,r){Object.defineProperty(i,"__esModule",{value:!0});var d=r(1),f=m(d),v=r(22),e=m(v);i.default=_;function m(g){return g&&g.__esModule?g:{default:g}}function c(g,y,b){var E="fail to post "+String(g)+" "+String(b.status)+"'",T=new Error(E);return T.status=b.status,T.method="post",T.url=g,T}function p(g){var y=g.responseText||g.response;if(!y)return y;try{return JSON.parse(y)}catch{return y}}function _(g){var y=this;if(typeof XMLHttpRequest!="undefined"){var b=new XMLHttpRequest,E=g.action;b.upload&&(b.upload.onprogress=function(x){x.total>0&&(x.percent=x.loaded/x.total*100),g.onProgress(x)});var T=new FormData;g.data&&(0,e.default)(g.data).map(function(k){(0,f.default)(this,y),T.append(k,g.data[k])}.bind(this)),T.append(g.filename,g.file),b.onerror=function(x){g.onError(x)},b.onload=function(){if(b.status<200||b.status>=300)return g.onError(c(E,g,b),p(b));g.onSuccess(p(b))},b.open("post",E,!0),g.withCredentials&&"withCredentials"in b&&(b.withCredentials=!0);var w=g.headers||{};for(var D in w)w.hasOwnProperty(D)&&w[D]!==null&&b.setRequestHeader(D,w[D]);b.send(T)}}},function(a,i,r){Object.defineProperty(i,"__esModule",{value:!0});var d=function(){var e=this,m=e.$createElement,c=e._self._c||m;return c("div",{class:[e.prefixCls]},[c("div",{class:e.classes,on:{click:e.handleClick,drop:function(_){return _.preventDefault(),e.onDrop.apply(null,arguments)},paste:e.handlePaste,dragover:function(_){_.preventDefault(),e.dragOver=!0},dragleave:function(_){_.preventDefault(),e.dragOver=!1}}},[c("input",{ref:"input",class:[e.prefixCls+"-input"],attrs:{type:"file",multiple:e.multiple,webkitdirectory:e.webkitdirectory,accept:e.accept},on:{change:e.handleChange}}),e._v(" "),e._t("default")],2),e._v(" "),e._t("tip"),e._v(" "),e.showUploadList?c("upload-list",{attrs:{files:e.fileList},on:{"on-file-remove":e.handleRemove,"on-file-preview":e.handlePreview}}):e._e()],2)},f=[];i.render=d,i.staticRenderFns=f},function(a,i,r){Object.defineProperty(i,"__esModule",{value:!0}),i.Col=i.Row=void 0;var d=r(625),f=m(d),v=r(627),e=m(v);function m(c){return c&&c.__esModule?c:{default:c}}i.Row=f.default,i.Col=e.default},function(a,i,r){Object.defineProperty(i,"__esModule",{value:!0});var d=r(257),f=r.n(d);for(var v in d)v!=="default"&&function(b){r.d(i,b,function(){return d[b]})}(v);var e=r(626);r.n(e);var m=r(0),c=!1,p=null,_=null,g=null,y=Object(m.a)(f.a,e.render,e.staticRenderFns,c,p,_,g);i.default=y.exports},function(a,i,r){Object.defineProperty(i,"__esModule",{value:!0});var d=function(){var e=this,m=e.$createElement,c=e._self._c||m;return c("div",{class:e.classes,style:e.styles},[e._t("default")],2)},f=[];i.render=d,i.staticRenderFns=f},function(a,i,r){Object.defineProperty(i,"__esModule",{value:!0});var d=r(258),f=r.n(d);for(var v in d)v!=="default"&&function(b){r.d(i,b,function(){return d[b]})}(v);var e=r(628);r.n(e);var m=r(0),c=!1,p=null,_=null,g=null,y=Object(m.a)(f.a,e.render,e.staticRenderFns,c,p,_,g);i.default=y.exports},function(a,i,r){Object.defineProperty(i,"__esModule",{value:!0});var d=function(){var e=this,m=e.$createElement,c=e._self._c||m;return c("div",{class:e.classes,style:e.styles},[e._t("default")],2)},f=[];i.render=d,i.staticRenderFns=f},function(a,i,r){Object.defineProperty(i,"__esModule",{value:!0}),i.OptionGroup=i.Option=i.Select=void 0;var d=r(74),f=p(d),v=r(81),e=p(v),m=r(630),c=p(m);function p(_){return _&&_.__esModule?_:{default:_}}i.Select=f.default,i.Option=e.default,i.OptionGroup=c.default,i.default=f.default},function(a,i,r){Object.defineProperty(i,"__esModule",{value:!0});var d=r(259),f=r.n(d);for(var v in d)v!=="default"&&function(b){r.d(i,b,function(){return d[b]})}(v);var e=r(631);r.n(e);var m=r(0),c=!1,p=null,_=null,g=null,y=Object(m.a)(f.a,e.render,e.staticRenderFns,c,p,_,g);i.default=y.exports},function(a,i,r){Object.defineProperty(i,"__esModule",{value:!0});var d=function(){var e=this,m=e.$createElement,c=e._self._c||m;return c("li",{directives:[{name:"show",rawName:"v-show",value:!e.hidden,expression:"!hidden"}],class:[e.prefixCls+"-wrap"]},[c("div",{class:[e.prefixCls+"-title"]},[e._v(e._s(e.label))]),e._v(" "),c("ul",[c("li",{ref:"options",class:[e.prefixCls]},[e._t("default")],2)])])},f=[];i.render=d,i.staticRenderFns=f}])})})(RS);var ri=KI(RS.exports),xB={windowWidth:$A(window).width(),windowHeight:$A(window).height(),windowScrollY:0,windowLarge:$A(window).width()>768,windowSmall:$A(window).width()<=768,windowActive:!0,appNotificationPermission:!0,audioPlaying:null,routeHistorys:[],routeHistoryLast:{},loads:[],loadDashboardTasks:!1,loadUserBasic:!1,loadProjects:0,loadDialogs:0,floatSpinnerTimer:[],floatSpinnerLoad:0,touchBackInProgress:!1,cacheUserActive:{},cacheUserWait:[],cacheUserBasic:[],cacheDialogs:[],cacheProjects:[],cacheColumns:[],cacheTasks:[],cacheProjectParameter:[],cacheTaskBrowse:[],cacheServerUrl:"",ajaxWsReady:!1,ajaxWsListener:[],ajaxNetworkException:!1,ws:null,wsMsg:{},wsCall:{},wsTimeout:null,wsRandom:0,wsOpenNum:0,wsListener:{},wsReadTimeout:null,wsReadWaitData:{},userInfo:{},userId:0,userToken:"",userIsAdmin:!1,userOnline:{},userAvatar:{},dialogId:0,dialogSearchMsgId:0,dialogIns:[],dialogMsgs:[],dialogTodos:[],dialogHistory:[],dialogInputCache:[],dialogMsgTransfer:{time:0},dialogUpdatedAt:null,dialogDeletedAt:null,fileLists:[],projectId:0,projectTotal:0,projectLoad:0,projectDeletedAt:null,taskId:0,taskCompleteTemps:[],taskContents:[],taskFiles:[],taskLogs:[],taskOperation:{},taskOneLoad:{},taskFlows:[],taskFlowItems:[],taskPriority:[],columnTemplate:[],columnColorList:[{name:"\u9ED8\u8BA4",color:""},{name:"\u7070\u8272",color:"#444444"},{name:"\u68D5\u8272",color:"#947364"},{name:"\u6A58\u8272",color:"#faaa6c"},{name:"\u9EC4\u8272",color:"#f2d86d"},{name:"\u7EFF\u8272",color:"#73b45c"},{name:"\u84DD\u8272",color:"#51abea"},{name:"\u7D2B\u8272",color:"#b583e3"},{name:"\u7C89\u8272",color:"#ff819c"},{name:"\u7EA2\u8272",color:"#ff7070"}],taskColorList:[{name:"\u9ED8\u8BA4",color:""},{name:"\u9EC4\u8272",color:"#fffae6"},{name:"\u84DD\u8272",color:"#e5f5ff"},{name:"\u7EFF\u8272",color:"#ecffe5"},{name:"\u7C89\u8272",color:"#ffeaee"},{name:"\u7D2B\u8272",color:"#f6ecff"},{name:"\u7070\u8272",color:"#f3f3f3"}],themeMode:window.localStorage.getItem("__theme:mode__"),themeList:[{name:"\u8DDF\u968F\u7CFB\u7EDF",value:"auto"},{name:"\u660E\u4EAE",value:"light"},{name:"\u6697\u9ED1",value:"dark"}],themeIsDark:!1,clientNewVersion:null,previewImageIndex:0,previewImageList:[],reportUnreadNumber:0,formLabelPosition:$A(window).width()>576?"right":"top",formLabelWidth:$A(window).width()>576?"auto":""},wB={isLoad(n){return function(o){const l=n.loads.find(a=>a.key===o);return l&&l.num>0}},projectData(n){if(n.projectId>0){let o=n.cacheProjects.find(({id:l})=>l==n.projectId);if(o){let l=n.cacheProjectParameter.find(({project_id:a})=>a==n.projectId);return l||(l=$A.projectParameterTemplate(n.projectId),n.cacheProjectParameter.push(l)),l.menuType===void 0&&(l.menuType="column"),o.cacheParameter=l,o}}return{cacheParameter:{}}},taskData(n){let o=n.taskId;if(o==0&&(o=$A.runNum(window.__taskId)),o>0){window.__taskId=o;const l=n.cacheTasks.find(({id:a})=>a==o);if(l)return l}return{}},transforTasks(n){return function(o){return o.filter(({parent_id:l})=>!(l>0&&o.find(({id:a})=>a==l))).map(l=>{if(l.parent_id>0){const a=n.cacheTasks.find(({id:i})=>i==l.parent_id);return a?Object.assign({},a,{id:l.id,parent_id:l.parent_id,name:l.name,start_at:l.start_at,end_at:l.end_at,complete_at:l.complete_at,_time:l._time,flow_item_id:l.flow_item_id,flow_item_name:l.flow_item_name,flow_item_status:l.flow_item_status,sub_top:!0,sub_my:[]}):Object.assign({},l,{sub_top:!0,sub_my:[]})}else return Object.assign({},l,{sub_top:!1,sub_my:o.filter(({parent_id:a})=>a==l.id)})})}},dashboardTask(n){const o=$A.Date($A.formatDate("Y-m-d 00:00:00")),l=$A.Date($A.formatDate("Y-m-d 23:59:59")),a=$A.Date($A.formatDate("Y-m-d H:i:s")),i=(m,c=!0)=>m.archived_at||m.complete_at&&c===!0?!1:m.owner;let r=n.cacheTasks.filter(m=>i(m)),d=0;if(n.taskCompleteTemps.length>0){let m=n.cacheTasks.filter(c=>n.taskCompleteTemps.includes(c.id)&&i(c,!1));m.length>0&&(d=m.length,r=$A.cloneJSON(r),r.push(...m))}const f=r.filter(m=>{const c=$A.Date(m.end_at);return o<=c&&c<=l}),v=r.filter(m=>m.end_at&&$A.Date(m.end_at)<=a),e={today:f,today_count:f.length,overdue:v,overdue_count:v.length,all:r,all_count:r.length};return d>0&&(e.today_count-=f.filter(m=>n.taskCompleteTemps.includes(m.id)).length,e.overdue_count-=v.filter(m=>n.taskCompleteTemps.includes(m.id)).length,e.all_count-=d),e},assistTask(n){const o=(a,i=!0)=>a.archived_at||a.complete_at&&i===!0?!1:a.assist&&!a.owner;let l=n.cacheTasks.filter(a=>o(a));if(n.taskCompleteTemps.length>0){let a=n.cacheTasks.filter(i=>n.taskCompleteTemps.includes(i.id)&&o(i,!1));a.length>0&&(l=$A.cloneJSON(l),l.push(...a))}return l},getProjectLastAt(n){return n.cacheProjects.length>0?n.cacheProjects.sort((l,a)=>$A.Date(a.updated_at)-$A.Date(l.updated_at))[0].updated_at:$A.formatDate("Y-m-d H:i:s",$A.Time()-86400*30)},getDialogLastAt(n){return n.cacheDialogs.length>0?n.cacheDialogs.sort((l,a)=>$A.Date(a.last_at)-$A.Date(l.last_at))[0].last_at:$A.formatDate("Y-m-d H:i:s",$A.Time()-86400*30)}},SB={init({state:n,dispatch:o}){return new Promise(async l=>{if(!await $A.IDBBoolean("initTag")){await $A.IDBSet("initTag",!0);const i=$A.getStorageJson("userInfo");i.userid>0&&(await $A.IDBSet("userInfo",i),await $A.IDBSet("cacheServerUrl",$A.getStorageString("cacheServerUrl")),window.localStorage.clear())}switch(n.cacheServerUrl=await $A.IDBString("cacheServerUrl"),n.cacheUserBasic=await $A.IDBArray("cacheUserBasic"),n.cacheDialogs=(await $A.IDBArray("cacheDialogs")).map(i=>Object.assign(i,{loading:!1})),n.cacheProjects=await $A.IDBArray("cacheProjects"),n.cacheColumns=await $A.IDBArray("cacheColumns"),n.cacheTasks=await $A.IDBArray("cacheTasks"),n.cacheProjectParameter=await $A.IDBArray("cacheProjectParameter"),n.cacheTaskBrowse=await $A.IDBArray("cacheTaskBrowse"),n.dialogMsgs=await $A.IDBArray("dialogMsgs"),n.dialogInputCache=await $A.IDBArray("dialogInputCache"),n.fileLists=await $A.IDBArray("fileLists"),n.userInfo=await $A.IDBJson("userInfo"),n.dialogUpdatedAt=await $A.IDBString("dialogUpdatedAt"),n.dialogDeletedAt=await $A.IDBString("dialogDeletedAt"),n.projectDeletedAt=await $A.IDBString("projectDeletedAt"),n.userInfo.userid&&(n.userId=n.userInfo.userid=$A.runNum(n.userInfo.userid),n.userToken=n.userInfo.token,n.userIsAdmin=$A.inArray("admin",n.userInfo.identity)),n.cacheServerUrl&&(window.systemInfo.apiUrl=n.cacheServerUrl),n.themeMode){case"dark":$A.dark.enableDarkMode();break;case"light":$A.dark.disableDarkMode();break;default:n.themeMode="auto",$A.dark.autoDarkMode();break}n.themeIsDark=$A.dark.isDarkEnabled(),$A.loadScriptS(["js/language/key.js",`js/language/${Is}.js`],l)})},call({state:n,dispatch:o},l){$A.isJson(l)||(l={url:l});const a={"Content-Type":"application/json",language:Is,token:n.userToken,fd:$A.getSessionStorageString("userWsFd"),version:window.systemInfo.version||"0.0.1",platform:$A.Platform};$A.isJson(l.header)?l.header=Object.assign(a,l.header):l.header=a,l.url=$A.apiUrl(l.url),l.data=$A.date2string(l.data);const i=$A.cloneJSON(l);return new Promise(function(r,d){if(l.spinner===!0||typeof l.spinner=="number"&&l.spinner>0){const{before:f,complete:v}=l;l.before=()=>{o("showSpinner",typeof l.spinner=="number"?l.spinner:0),typeof f=="function"&&f()},l.complete=()=>{o("hiddenSpinner"),typeof v=="function"&&v()}}if(l.success=(f,v,e)=>{if(n.ajaxNetworkException=!1,!$A.isJson(f)){console.log(f,v,e),d({ret:-1,data:{},msg:"Return error"});return}const{ret:m,data:c,msg:p}=f;if(m===-1&&l.checkRole!==!1){$A.modalError({content:p,onOk:()=>{o("logout")}}),d(f);return}if(m===-2&&l.checkNick!==!1){o("userEditInput","nickname").then(()=>{o("call",i).then(r).catch(d)}).catch(_=>{d({ret:-1,data:c,msg:_||$A.L("\u8BF7\u8BBE\u7F6E\u6635\u79F0\uFF01")})});return}if(m===-3&&l.checkTel!==!1){o("userEditInput","tel").then(()=>{o("call",i).then(r).catch(d)}).catch(_=>{d({ret:-1,data:c,msg:_||$A.L("\u8BF7\u8BBE\u7F6E\u8054\u7CFB\u7535\u8BDD\uFF01")})});return}m===1?r({data:c,msg:p}):(d({ret:m,data:c,msg:p||"Unknown error"}),m===-4001?o("forgetProject",c.project_id):m===-4002?o("forgetTask",c.task_id):m===-4003&&o("forgetDialog",c.dialog_id))},l.error=(f,v)=>{const e=window.navigator.onLine===!1||v===0&&f.readyState===4;l.checkNetwork!==!1&&(n.ajaxNetworkException=e),d(e?{ret:-1001,data:{},msg:"Network exception"}:{ret:-1,data:{},msg:"System error"})},l.websocket===!0||l.ws===!0){const f=$A.randomString(16),v=setTimeout(()=>{const e=n.ajaxWsListener.find(m=>m.apiWebsocket==f);e&&(e.complete(),e.error("timeout"),e.after()),n.ajaxWsListener=n.ajaxWsListener.filter(m=>m.apiWebsocket!=f)},l.timeout||3e4);n.ajaxWsListener.push({apiWebsocket:f,complete:typeof l.complete=="function"?l.complete:()=>{},success:typeof l.success=="function"?l.success:()=>{},error:typeof l.error=="function"?l.error:()=>{},after:typeof l.after=="function"?l.after:()=>{}}),l.complete=()=>{},l.success=()=>{},l.error=()=>{},l.after=()=>{},l.header["Api-Websocket"]=f,n.ajaxWsReady===!1&&(n.ajaxWsReady=!0,o("websocketMsgListener",{name:"apiWebsocket",callback:e=>{switch(e.type){case"apiWebsocket":clearTimeout(v);const m=e.apiWebsocket,c=e.apiSuccess,p=e.data,_=n.ajaxWsListener.find(g=>g.apiWebsocket==m);_&&(_.complete(),c?_.success(p):_.error(p),_.after()),n.ajaxWsListener=n.ajaxWsListener.filter(g=>g.apiWebsocket!=m);break}}}))}$A.ajaxc(l)})},needHome({dispatch:n,state:o}){return new Promise((l,a)=>{n("call",{url:"system/get/starthome"}).then(({data:i})=>{i.need_start?l(i):a()}).catch(a)})},downUrl({state:n},o){if(!o)return;let l=o,a=!0;if($A.isJson(o)&&(l=o.url,a=!!o.token),a){let i={token:n.userToken};$A.isJson(o)&&(l=o.url,i=o.params||{}),l=$A.urlAddParams(l,i)}$A.Electron?$A.Electron.request({action:"openExternal",url:l},()=>{},()=>{}):$A.isEEUiApp?$A.eeuiAppOpenWeb(l):window.open(l)},toggleProjectParameter({state:n},o){$A.execMainDispatch("toggleProjectParameter",o);let l=o,a=null,i=n.projectId;if($A.isJson(o)&&(l=o.key,a=o.value,i=o.project_id),i){let r=n.cacheProjectParameter.findIndex(f=>f.project_id==i);r===-1&&(n.cacheProjectParameter.push($A.projectParameterTemplate(i)),r=n.cacheProjectParameter.findIndex(f=>f.project_id==i));const d=n.cacheProjectParameter[r];$A.isJson(l)||(l={[l]:a||!d[l]}),n.cacheProjectParameter.splice(r,1,Object.assign(d,l)),$A.IDBSave("cacheProjectParameter",n.cacheProjectParameter)}},setTheme({state:n},o){return new Promise(function(l){if(o===void 0){l(!1);return}if(!$A.isChrome()){$A.isEEUiApp?$A.modalWarning("\u4EC5Android\u8BBE\u7F6E\u652F\u6301\u4E3B\u9898\u529F\u80FD"):$A.modalWarning("\u4EC5\u5BA2\u6237\u7AEF\u6216Chrome\u6D4F\u89C8\u5668\u652F\u6301\u4E3B\u9898\u529F\u80FD"),l(!1);return}switch(o){case"dark":$A.dark.enableDarkMode();break;case"light":$A.dark.disableDarkMode();break;default:$A.dark.autoDarkMode();break}n.themeMode=o,n.themeIsDark=$A.dark.isDarkEnabled(),window.localStorage.setItem("__theme:mode__",o),l(!0)})},getBasicData({state:n,dispatch:o},l){if(typeof l=="number"){window.__getBasicDataTimer&&clearTimeout(window.__getBasicDataTimer),l>-1&&(window.__getBasicDataTimer=setTimeout(r=>o("getBasicData",null),l));return}const a=n.userId+$A.Time();if(window.__getBasicDataKey===a)return;window.__getBasicDataKey=a,o("getProjects").catch(()=>{}),o("getDialogs").catch(()=>{}),o("getReportUnread",1e3),o("getTaskForDashboard"),o("dialogMsgRead");const i=Object.values(n.userAvatar).map(({userid:r})=>r);[...new Set(i)].some(r=>o("getUserBasic",{userid:r}))},getReportUnread({state:n,dispatch:o},l){window.__getReportUnread&&clearTimeout(window.__getReportUnread),window.__getReportUnread=setTimeout(()=>{n.userId===0?n.reportUnreadNumber=0:o("call",{url:"report/unread"}).then(({data:a})=>{n.reportUnreadNumber=a.total||0}).catch(a=>{})},typeof l=="number"?l:1e3)},getUserInfo({dispatch:n}){return new Promise(function(o,l){n("call",{url:"users/info"}).then(a=>{n("saveUserInfo",a.data),o(a)}).catch(a=>{console.warn(a),l(a)})})},saveUserInfo({state:n,dispatch:o},l){return new Promise(async a=>{const i=$A.cloneJSON(l);i.userid=$A.runNum(i.userid),i.token=i.userid>0?i.token||n.userToken:"",n.userInfo=i,n.userId=i.userid,n.userToken=i.token,n.userIsAdmin=$A.inArray("admin",i.identity),await $A.IDBSet("userInfo",n.userInfo),o("getBasicData",null),n.userId>0&&o("saveUserBasic",n.userInfo),a()})},saveUserOnlineStatus({state:n},o){const{userid:l,online:a}=o;n.userOnline[l]!==a&&(n.userOnline=Object.assign({},n.userOnline,{[l]:a}))},getUserBasic({state:n,dispatch:o},l){if(n.loadUserBasic===!0){l&&n.cacheUserWait.push(l);return}let a=$A.Time(),i=$A.cloneJSON(n.cacheUserWait);l&&l.userid&&i.push(l),n.cacheUserWait=[];let r=[],d=0;i.some(f=>{let v=n.cacheUserBasic.find(({userid:e})=>e==f.userid);if(v&&a-v._time<=30)return setTimeout(()=>{n.cacheUserActive=Object.assign(v,{__:Math.random()}),Xi.Store.set("cacheUserActive",v)},d+=5),!1;r.push(f)}),r.length!==0&&(r.length>30&&(n.cacheUserWait=r.slice(30),r=r.slice(0,30)),n.loadUserBasic=!0,o("call",{url:"users/basic",data:{userid:[...new Set(r.map(({userid:f})=>f))]},checkRole:!1}).then(f=>{a=$A.Time(),r.forEach(v=>{let e=f.data.find(({userid:m})=>m==v.userid)||Object.assign(v,{email:""});e._time=a,o("saveUserBasic",e)}),n.loadUserBasic=!1,o("getUserBasic")}).catch(f=>{console.warn(f),n.loadUserBasic=!1,o("getUserBasic")}))},saveUserBasic({state:n},o){$A.execMainDispatch("saveUserBasic",o);const l=n.cacheUserBasic.findIndex(({userid:a})=>a==o.userid);l>-1?(o=Object.assign({},n.cacheUserBasic[l],o),n.cacheUserBasic.splice(l,1,o)):n.cacheUserBasic.push(o),n.cacheUserActive=Object.assign(o,{__:Math.random()}),Xi.Store.set("cacheUserActive",o),$A.IDBSave("cacheUserBasic",n.cacheUserBasic)},userEditInput({dispatch:n},o){return new Promise(function(l,a){let i="";if(o==="nickname")i="\u6635\u79F0";else if(o==="tel")i="\u8054\u7CFB\u7535\u8BDD";else{a("\u53C2\u6570\u9519\u8BEF");return}setTimeout(r=>{$A.modalInput({title:`\u8BBE\u7F6E${i}`,placeholder:`\u8BF7\u8F93\u5165\u60A8\u7684${i}`,okText:"\u4FDD\u5B58",onOk:d=>d?new Promise((f,v)=>{n("call",{url:"users/editdata",data:{[o]:d},checkNick:!1,checkTel:!1}).then(()=>{n("getUserInfo").finally(e=>{f(),l()})}).catch(({msg:e})=>{v(e)})}):`\u8BF7\u8F93\u5165${i}`,onCancel:d=>a})},100)})},logout({state:n,dispatch:o},l=!0){o("handleClearCache",{}).then(()=>{let a=["/","/login"].includes(window.location.pathname)?"":encodeURIComponent(window.location.href);l===!1&&(a=null),$A.goForward({name:"login",query:a?{from:a}:{}},!0)})},handleClearCache({state:n,dispatch:o},l){return new Promise(async a=>{try{n.cacheUserBasic=[],n.cacheDialogs=[],n.cacheProjects=[],n.cacheColumns=[],n.cacheTasks=[],n.dialogUpdatedAt=null,n.dialogDeletedAt=null,n.projectDeletedAt=null;const i=window.localStorage.getItem("__language:type__"),r=window.localStorage.getItem("__keyboard:data__"),d=window.localStorage.getItem("__theme:mode__");window.localStorage.clear(),window.localStorage.setItem("__language:type__",i),window.localStorage.setItem("__keyboard:data__",r),window.localStorage.setItem("__theme:mode__",d);const f=await $A.IDBString("cacheLoginEmail"),v=await $A.IDBJson("cacheFileSort");await $A.IDBClear(),await $A.IDBSet("cacheServerUrl",n.cacheServerUrl),await $A.IDBSet("cacheProjectParameter",n.cacheProjectParameter),await $A.IDBSet("cacheLoginEmail",f),await $A.IDBSet("cacheFileSort",v),await $A.IDBSet("cacheTaskBrowse",n.cacheTaskBrowse),o("saveUserInfo",$A.isJson(l)?l:n.userInfo).then(a)}catch{a()}})},saveFile({state:n,dispatch:o},l){if($A.execMainDispatch("saveFile",l),$A.isArray(l))l.forEach(a=>{o("saveFile",a)});else if($A.isJson(l)){let a={_load:!1,_edit:!1};const i=n.fileLists.findIndex(({id:r})=>r==l.id);i>-1?n.fileLists.splice(i,1,Object.assign(a,n.fileLists[i],l)):n.fileLists.push(Object.assign(a,l)),$A.IDBSave("fileLists",n.fileLists,600)}},forgetFile({state:n,dispatch:o},l){$A.execMainDispatch("forgetFile",l),($A.isArray(l)?l:[l]).some(i=>{n.fileLists=n.fileLists.filter(r=>r.id!=i),n.fileLists.some(r=>{r.pid==i&&o("forgetFile",r.id)}),$A.IDBSave("fileLists",n.fileLists,600)})},getFiles({state:n,dispatch:o},l){return new Promise(function(a,i){o("call",{url:"file/lists",data:{pid:l}}).then(r=>{const d=r.data.map(({id:f})=>f);n.fileLists=n.fileLists.filter(f=>f.pid!=l||d.includes(f.id)),$A.IDBSave("fileLists",n.fileLists,600),o("saveFile",r.data),a(r)}).catch(r=>{console.warn(r),i(r)})})},searchFiles({state:n,dispatch:o},l){return new Promise(function(a,i){o("call",{url:"file/search",data:{key:l}}).then(r=>{o("saveFile",r.data),a(r)}).catch(r=>{console.warn(r),i(r)})})},saveProject({state:n,dispatch:o},l){if($A.execMainDispatch("saveProject",l),$A.isArray(l))l.forEach(a=>{o("saveProject",a)});else if($A.isJson(l)){typeof l.project_column!="undefined"&&(o("saveColumn",l.project_column),delete l.project_column);const a=n.cacheProjects.findIndex(({id:i})=>i==l.id);a>-1?n.cacheProjects.splice(a,1,Object.assign({},n.cacheProjects[a],l)):(typeof l.project_user=="undefined"&&(l.project_user=[]),n.cacheProjects.push(l),n.projectTotal++),n.cacheDialogs.some(i=>{if(i.type=="group"&&i.group_type=="project"&&i.group_info.id==l.id){l.name!==void 0&&(i.name=l.name);for(let r in i.group_info)!i.group_info.hasOwnProperty(r)||l[r]===void 0||(i.group_info[r]=l[r])}}),$A.IDBSave("cacheProjects",n.cacheProjects)}},forgetProject({state:n},o){$A.execMainDispatch("forgetProject",o);let l=$A.isArray(o)?o:[o];if(l.some(a=>{const i=n.cacheProjects.findIndex(r=>r.id==a);i>-1&&(n.cacheProjects.splice(i,1),n.projectTotal=Math.max(0,n.projectTotal-1))}),l.includes(n.projectId)){const a=$A.cloneJSON(n.cacheProjects).sort((i,r)=>i.top_at||r.top_at?$A.Date(r.top_at)-$A.Date(i.top_at):r.id-i.id).find(({id:i})=>i&&i!=o);a?$A.goForward({name:"manage-project",params:{projectId:a.id}}):$A.goForward({name:"manage-dashboard"})}$A.IDBSave("cacheProjects",n.cacheProjects)},getProjects({state:n,dispatch:o,getters:l},a){return new Promise(function(i,r){if(n.userId===0){n.cacheProjects=[],r({msg:"Parameter error"});return}$A.isJson(a)||(a={}),typeof a.deleted_at=="undefined"&&(a.deleted_at=n.projectDeletedAt||l.getProjectLastAt),!a.hideLoad&&n.loadProjects++,o("call",{url:"project/lists",data:a}).then(({data:d})=>{n.projectTotal=d.total_all,o("saveProject",d.data),d.current_page===1&&d.deleted_at&&$A.IDBSet("projectDeletedAt",d.deleted_at).then(f=>{n.projectDeletedAt=d.deleted_at,d.deleted_data.some(v=>o("forgetProject",v))}),i(d)}).catch(d=>{console.warn(d),r(d)}).finally(d=>{!a.hideLoad&&n.loadProjects--})})},getProjectOne({state:n,dispatch:o},l){return new Promise(function(a,i){if($A.runNum(l)===0){i({msg:"Parameter error"});return}n.projectLoad++,o("call",{url:"project/one",data:{project_id:l}}).then(r=>{setTimeout(()=>{n.projectLoad--},10),o("saveProject",r.data),a(r)}).catch(r=>{console.warn(r),n.projectLoad--,i(r)})})},archivedProject({state:n,dispatch:o},l){return new Promise(function(a,i){if($A.runNum(l)===0){i({msg:"Parameter error"});return}o("call",{url:"project/archived",data:{project_id:l}}).then(r=>{o("forgetProject",l),a(r)}).catch(r=>{console.warn(r),o("getProjectOne",l).catch(()=>{}),i(r)})})},removeProject({state:n,dispatch:o},l){return new Promise(function(a,i){if($A.runNum(l)===0){i({msg:"Parameter error"});return}o("call",{url:"project/remove",data:{project_id:l}}).then(r=>{o("forgetProject",l),a(r)}).catch(r=>{console.warn(r),o("getProjectOne",l).catch(()=>{}),i(r)})})},exitProject({state:n,dispatch:o},l){return new Promise(function(a,i){if($A.runNum(l)===0){i({msg:"Parameter error"});return}o("call",{url:"project/exit",data:{project_id:l}}).then(r=>{o("forgetProject",l),a(r)}).catch(r=>{console.warn(r),o("getProjectOne",l).catch(()=>{}),i(r)})})},saveColumn({state:n,dispatch:o},l){if($A.execMainDispatch("saveColumn",l),$A.isArray(l))l.forEach(a=>{o("saveColumn",a)});else if($A.isJson(l)){const a=n.cacheColumns.findIndex(({id:i})=>i==l.id);a>-1?n.cacheColumns.splice(a,1,Object.assign({},n.cacheColumns[a],l)):n.cacheColumns.push(l),$A.IDBSave("cacheColumns",n.cacheColumns)}},forgetColumn({state:n,dispatch:o},l){$A.execMainDispatch("forgetColumn",l);let a=$A.isArray(l)?l:[l],i=[];a.some(r=>{const d=n.cacheColumns.findIndex(f=>f.id==r);d>-1&&(i.push(n.cacheColumns[d].project_id),o("getProjectOne",n.cacheColumns[d].project_id).catch(()=>{}),n.cacheColumns.splice(d,1))}),Array.from(new Set(i)).some(r=>o("getProjectOne",r).catch(()=>{})),$A.IDBSave("cacheColumns",n.cacheColumns)},getColumns({state:n,dispatch:o},l){return new Promise(function(a,i){if(n.userId===0){n.cacheColumns=[],i({msg:"Parameter error"});return}n.projectLoad++,o("call",{url:"project/column/lists",data:{project_id:l}}).then(({data:r})=>{n.projectLoad--;const d=r.data.map(({id:f})=>f);if(n.cacheColumns=n.cacheColumns.filter(f=>f.project_id!=l||d.includes(f.id)),o("saveColumn",r.data),a(r.data),n.cacheColumns.filter(f=>f.project_id==l).length===1){const f=n.cacheProjectParameter.find(v=>v.project_id==l)||{};(typeof f.menuInit=="undefined"||f.menuInit===!1)&&o("toggleProjectParameter",{project_id:l,key:{menuInit:!0,menuType:"table"}})}}).catch(r=>{console.warn(r),n.projectLoad--,i(r)})})},removeColumn({state:n,dispatch:o},l){return new Promise(function(a,i){if($A.runNum(l)===0){i({msg:"Parameter error"});return}o("call",{url:"project/column/remove",data:{column_id:l}}).then(r=>{o("forgetColumn",l),a(r)}).catch(r=>{console.warn(r),i(r)})})},saveTask({state:n,dispatch:o},l){if($A.execMainDispatch("saveTask",l),$A.isArray(l))l.forEach(a=>{o("saveTask",a)});else if($A.isJson(l)){l._time=$A.Time(),l.flow_item_name&&l.flow_item_name.indexOf("|")!==-1&&([l.flow_item_status,l.flow_item_name]=l.flow_item_name.split("|")),typeof l.archived_at!="undefined"&&n.cacheTasks.filter(r=>r.parent_id==l.id).some(r=>{o("saveTask",Object.assign(r,{archived_at:l.archived_at,archived_userid:l.archived_userid}))});let a={};typeof l.update_marking!="undefined"&&(a=$A.isJson(l.update_marking)?l.update_marking:{},delete l.update_marking);const i=n.cacheTasks.findIndex(({id:r})=>r==l.id);i>-1?n.cacheTasks.splice(i,1,Object.assign({},n.cacheTasks[i],l)):n.cacheTasks.push(l),(a.is_update_maintask===!0||l.parent_id>0&&n.cacheTasks.findIndex(({id:r})=>r==l.parent_id)===-1)&&o("getTaskOne",l.parent_id).catch(()=>{}),a.is_update_project===!0&&o("getProjectOne",l.project_id).catch(()=>{}),a.is_update_content===!0&&o("getTaskContent",l.id),a.is_update_subtask===!0&&o("getTaskForParent",l.id).catch(()=>{}),n.cacheDialogs.some(r=>{if(r.type=="group"&&r.group_type=="task"&&r.group_info.id==l.id){l.name!==void 0&&(r.name=l.name);for(let d in r.group_info)!r.group_info.hasOwnProperty(d)||l[d]===void 0||(r.group_info[d]=l[d])}}),$A.IDBSave("cacheTasks",n.cacheTasks)}},forgetTask({state:n,dispatch:o},l){$A.execMainDispatch("forgetTask",l);let a=$A.isArray(l)?l:[l],i=[],r=[];a.some(d=>{const f=n.cacheTasks.findIndex(v=>v.id==d);f>-1&&(n.cacheTasks[f].parent_id&&i.push(n.cacheTasks[f].parent_id),r.push(n.cacheTasks[f].project_id),n.cacheTasks.splice(f,1)),n.cacheTasks.filter(v=>v.parent_id==d).some(v=>{let e=n.cacheTasks.findIndex(m=>m.id==v.id);e>-1&&(r.push(v.project_id),n.cacheTasks.splice(e,1))})}),Array.from(new Set(i)).some(d=>o("getTaskOne",d).catch(()=>{})),Array.from(new Set(r)).some(d=>o("getProjectOne",d).catch(()=>{})),a.includes(n.taskId)&&(n.taskId=0),$A.IDBSave("cacheTasks",n.cacheTasks)},increaseTaskMsgNum({state:n},o){if($A.execMainDispatch("increaseTaskMsgNum",o),!$A.execMainCacheJudge(`increaseTaskMsgNum:${o.id}`)&&o.dialog_id){const l=n.cacheTasks.find(({dialog_id:a})=>a===o.dialog_id);l&&l.msg_num++}},increaseMsgReplyNum({state:n,dispatch:o},l){if($A.execMainDispatch("increaseMsgReplyNum",l),!$A.execMainCacheJudge(`increaseMsgReplyNum:${l.id}`)&&l.reply_id>0){const a=n.dialogMsgs.find(({id:i})=>i==l.reply_id);a&&a.reply_num++}},decrementMsgReplyNum({state:n,dispatch:o},l){if($A.execMainDispatch("decrementMsgReplyNum",l),!$A.execMainCacheJudge(`decrementMsgReplyNum:${l.id}`)&&l.reply_id>0){const a=n.dialogMsgs.find(({id:i})=>i==l.reply_id);a&&a.reply_num--}},getTasks({state:n,dispatch:o},l){let a=[];return $A.isArray(l.taskData)&&(a=l.taskData,delete l.taskData),new Promise(function(i,r){if(n.userId===0){n.cacheTasks=[],r({msg:"Parameter error"});return}l.project_id&&n.projectLoad++,o("call",{url:"project/task/lists",data:l}).then(d=>{l.project_id&&n.projectLoad--;const f=d.data;if(a.push(...f.data),f.next_page_url){const v=Object.assign(l,{page:f.current_page+1,taskData:a});f.current_page%5===0?$A.modalWarning({content:"\u6570\u636E\u5DF2\u8D85\u8FC7"+f.to+"\u6761\uFF0C\u662F\u5426\u7EE7\u7EED\u52A0\u8F7D\uFF1F",onOk:()=>{o("getTasks",v).then(i).catch(r)},onCancel:()=>{o("saveTask",a),i()}}):o("getTasks",v).then(i).catch(r)}else o("saveTask",a),i()}).catch(d=>{console.warn(d),r(d),l.project_id&&n.projectLoad--})})},getTaskOne({state:n,dispatch:o},l){return new Promise(function(a,i){if(/^\d+$/.test(l)&&(l={task_id:l}),$A.runNum(l.task_id)===0){i({msg:"Parameter error"});return}if($A.isArray(n.taskOneLoad[l.task_id])){n.taskOneLoad[l.task_id].push({resolve:a,reject:i});return}n.taskOneLoad[l.task_id]=[],o("call",{url:"project/task/one",data:l}).then(r=>{o("saveTask",r.data),a(r),n.taskOneLoad[l.task_id].some(d=>{d.resolve(r)})}).catch(r=>{console.warn(r),i(r),n.taskOneLoad[l.task_id].some(d=>{d.reject(r)})}).finally(r=>{delete n.taskOneLoad[l.task_id]})})},getTaskForDashboard({state:n,dispatch:o,getters:l},a){if(window.__getTaskForDashboard&&clearTimeout(window.__getTaskForDashboard),typeof a=="number"){a>-1&&(window.__getTaskForDashboard=setTimeout(e=>o("getTaskForDashboard",null),a));return}if(n.loadDashboardTasks===!0)return;n.loadDashboardTasks=!0;const i=$A.Time(),{today:r,overdue:d,all:f}=l.dashboardTask,v=r.map(({id:e})=>e);v.push(...d.map(({id:e})=>e)),v.push(...f.map(({id:e})=>e)),v.push(...l.assistTask.map(({id:e})=>e)),o("getTasks",{complete:"no"}).then(e=>{const{today:m,overdue:c,all:p}=l.dashboardTask,_=m.filter(g=>g._time>=i).map(({id:g})=>g);_.push(...c.filter(g=>g._time>=i).map(({id:g})=>g)),_.push(...p.filter(g=>g._time>=i).map(({id:g})=>g)),_.push(...l.assistTask.filter(g=>g._time>=i).map(({id:g})=>g)),o("forgetTask",v.filter(g=>_.indexOf(g)==-1))}).finally(e=>{n.loadDashboardTasks=!1})},getTaskForProject({state:n,dispatch:o},l){return new Promise(function(a,i){const r=$A.Time(),d=n.cacheTasks.filter(v=>v.project_id==l).map(({id:v})=>v),f=()=>{const v=n.cacheTasks.filter(e=>e.project_id==l&&e._time>=r).map(({id:e})=>e);o("forgetTask",d.filter(e=>v.indexOf(e)==-1))};o("getTasks",{project_id:l}).then(()=>{f(),a()}).catch(()=>{f(),i()})})},getTaskForParent({state:n,dispatch:o},l){return new Promise(function(a,i){const r=$A.Time(),d=n.cacheTasks.filter(v=>v.parent_id==l).map(({id:v})=>v);let f=()=>{const v=n.cacheTasks.filter(e=>e.parent_id==l&&e._time>=r).map(({id:e})=>e);o("forgetTask",d.filter(e=>v.indexOf(e)==-1))};o("getTasks",{parent_id:l,archived:"all"}).then(()=>{f(),a()}).catch(()=>{f(),i()})})},removeTask({state:n,dispatch:o},l){return new Promise(function(a,i){if($A.runNum(l.task_id)===0){i({msg:"Parameter error"});return}o("setLoad",{key:`task-${l.task_id}`,delay:300}),o("call",{url:"project/task/remove",data:l}).then(r=>{o("forgetTask",l.task_id),a(r)}).catch(r=>{console.warn(r),o("getTaskOne",l.task_id).catch(()=>{}),i(r)}).finally(r=>{o("cancelLoad",`task-${l.task_id}`)})})},archivedTask({state:n,dispatch:o},l){return new Promise(function(a,i){if(/^\d+$/.test(l)&&(l={task_id:l}),$A.runNum(l.task_id)===0){i({msg:"Parameter error"});return}o("setLoad",{key:`task-${l.task_id}`,delay:300}),o("call",{url:"project/task/archived",data:l}).then(r=>{o("saveTask",r.data),a(r)}).catch(r=>{console.warn(r),o("getTaskOne",l.task_id).catch(()=>{}),i(r)}).finally(r=>{o("cancelLoad",`task-${l.task_id}`)})})},getTaskContent({state:n,dispatch:o},l){$A.runNum(l)!==0&&o("call",{url:"project/task/content",data:{task_id:l}}).then(a=>{o("saveTaskContent",a.data)}).catch(a=>{console.warn(a)})},saveTaskContent({state:n,dispatch:o},l){if($A.execMainDispatch("saveTaskContent",l),$A.isArray(l))l.forEach(a=>{o("saveTaskContent",a)});else if($A.isJson(l)){const a=n.taskContents.findIndex(({task_id:i})=>i==l.task_id);a>-1?n.taskContents.splice(a,1,Object.assign({},n.taskContents[a],l)):n.taskContents.push(l)}},getTaskFiles({state:n,dispatch:o},l){$A.runNum(l)!==0&&o("call",{url:"project/task/files",data:{task_id:l}}).then(a=>{a.data.forEach(i=>{const r=n.taskFiles.findIndex(({id:d})=>d==i.id);r>-1?n.taskFiles.splice(r,1,i):n.taskFiles.push(i)}),o("saveTask",{id:l,file_num:a.data.length})}).catch(a=>{console.warn(a)})},forgetTaskFile({state:n,dispatch:o},l){($A.isArray(l)?l:[l]).some(i=>{const r=n.taskFiles.findIndex(d=>d.id==i);r>-1&&n.taskFiles.splice(r,1)})},openTask({state:n,dispatch:o},l){let a=l;$A.isJson(l)&&(l.parent_id>0?a=l.parent_id:a=l.id),n.taskId=a,a>0&&o("getTaskOne",{task_id:a,archived:"all"}).then(()=>{o("getTaskContent",a),o("getTaskFiles",a),o("getTaskForParent",a).catch(()=>{}),o("saveTaskBrowse",a)}).catch(({msg:i})=>{$A.modalWarning({content:i,onOk:()=>{n.taskId=0}})})},taskAdd({state:n,dispatch:o},l){return new Promise(function(a,i){const r=$A.cloneJSON($A.date2string(l));$A.isArray(r.column_id)&&(r.column_id=r.column_id.find(d=>d)),o("call",{url:"project/task/add",data:r,method:"post"}).then(d=>{o("addTaskSuccess",d.data),a(d)}).catch(d=>{console.warn(d),i(d)})})},taskAddSub({dispatch:n},o){return new Promise(function(l,a){n("call",{url:"project/task/addsub",data:o}).then(i=>{n("addTaskSuccess",i.data),l(i)}).catch(i=>{console.warn(i),a(i)})})},addTaskSuccess({dispatch:n},o){typeof o.new_column!="undefined"&&(n("saveColumn",o.new_column),delete o.new_column),n("saveTask",o),n("getProjectOne",o.project_id).catch(()=>{})},taskUpdate({state:n,dispatch:o},l){return new Promise(function(a,i){o("taskBeforeUpdate",l).then(({post:r})=>{o("setLoad",{key:`task-${r.task_id}`,delay:300}),o("call",{url:"project/task/update",data:r,method:"post"}).then(d=>{o("saveTask",d.data),a(d)}).catch(d=>{console.warn(d),o("getTaskOne",r.task_id).catch(()=>{}),i(d)}).finally(d=>{o("cancelLoad",`task-${r.task_id}`)})}).catch(i)})},taskBeforeUpdate({state:n,dispatch:o},l){return new Promise(function(a,i){let r=$A.cloneJSON($A.date2string(l)),d="\u6E29\u99A8\u63D0\u793A",f=null;if(typeof r.times!="undefined"){l.times[0]===!1&&(f="\u4F60\u786E\u5B9A\u8981\u53D6\u6D88\u4EFB\u52A1\u65F6\u95F4\u5417\uFF1F");const v=n.cacheTasks.find(({id:e})=>e==r.task_id);d=v.parent_id>0?"\u66F4\u65B0\u5B50\u4EFB\u52A1":"\u66F4\u65B0\u4E3B\u4EFB\u52A1",v&&(v.parent_id>0?r.times[0]&&n.cacheTasks.some(e=>{if(e.id!=v.parent_id)return!1;if(!e.end_at)return f="\u4E3B\u4EFB\u52A1\u6CA1\u6709\u8BBE\u7F6E\u65F6\u95F4\uFF0C\u8BBE\u7F6E\u5B50\u4EFB\u52A1\u5C06\u540C\u6B65\u8BBE\u7F6E\u4E3B\u4EFB\u52A1",!0;let m=$A.Date(r.times[0],!0),c=$A.Date(r.times[1],!0),p=$A.Date(e.start_at,!0),_=$A.Date(e.end_at,!0);if(m_)return f="\u65B0\u8BBE\u7F6E\u7684\u5B50\u4EFB\u52A1\u7ED3\u675F\u65F6\u95F4\u5728\u4E3B\u4EFB\u52A1\u65F6\u95F4\u4E4B\u5916\uFF0C\u4FEE\u6539\u540E\u5C06\u540C\u6B65\u4FEE\u6539\u4E3B\u4EFB\u52A1",!0}):n.cacheTasks.some(e=>{if(e.parent_id!=v.id||!e.end_at)return!1;let m=$A.Date(r.times[0],!0),c=$A.Date(r.times[1],!0),p=$A.Date(v.start_at,!0),_=$A.Date(v.end_at,!0),g=$A.Date(e.start_at,!0),y=$A.Date(e.end_at,!0);if(p==g&&_==y)return!1;if(!r.times[0])return f=`\u5B50\u4EFB\u52A1\uFF08${e.name}\uFF09\u5DF2\u8BBE\u7F6E\u65F6\u95F4\uFF0C\u6E05\u9664\u4E3B\u4EFB\u52A1\u65F6\u95F4\u540E\u5C06\u540C\u6B65\u6E05\u9664\u5B50\u4EFB\u52A1\u7684\u65F6\u95F4`,!0;if(m>g)return f=`\u65B0\u8BBE\u7F6E\u7684\u5F00\u59CB\u65F6\u95F4\u5728\u5B50\u4EFB\u52A1\uFF08${e.name}\uFF09\u65F6\u95F4\u4E4B\u5185\uFF0C\u4FEE\u6539\u540E\u5C06\u540C\u6B65\u4FEE\u6539\u5B50\u4EFB\u52A1`,!0;if(c{a({confirm:!0,post:r})},onCancel:()=>{i({msg:!1})}})})},getTaskFlow({state:n,dispatch:o},l){return new Promise(function(a,i){o("call",{url:"project/task/flow",data:{task_id:l}}).then(r=>{let d=n.cacheTasks.find(({id:e})=>e==l),{data:f}=r;f.turns.some(e=>{const m=n.taskFlowItems.findIndex(({id:c})=>c==e.id);m>-1?n.taskFlowItems.splice(m,1,e):n.taskFlowItems.push(e),d&&d.flow_item_id==e.id&&d.flow_item_name!=e.name&&n.cacheTasks.filter(({flow_item_id:c})=>c==e.id).some(c=>{o("saveTask",{id:c.id,flow_item_name:`${e.status}|${e.name}`})})}),delete f.turns;const v=n.taskFlows.findIndex(({task_id:e})=>e==f.task_id);v>-1?n.taskFlows.splice(v,1,f):n.taskFlows.push(f),a(r)}).catch(r=>{console.warn(r),i(r)})})},getTaskPriority({state:n,dispatch:o}){return new Promise(function(l,a){o("call",{url:"system/priority"}).then(i=>{n.taskPriority=i.data,l(i)}).catch(i=>{console.warn(i),a(i)})})},getColumnTemplate({state:n,dispatch:o}){return new Promise(function(l,a){o("call",{url:"system/column/template"}).then(i=>{n.columnTemplate=i.data,l(i)}).catch(i=>{console.warn(i),a(i)})})},saveTaskCompleteTemp({state:n},o){/^\d+$/.test(o)&&!n.taskCompleteTemps.includes(o)&&n.taskCompleteTemps.push(o)},forgetTaskCompleteTemp({state:n},o){o===!0?n.taskCompleteTemps=[]:/^\d+$/.test(o)&&(n.taskCompleteTemps=n.taskCompleteTemps.filter(l=>l!=o))},saveTaskBrowse({state:n},o){const l=n.cacheTaskBrowse.findIndex(({id:a})=>a==o);l>-1&&n.cacheTaskBrowse.splice(l,1),n.cacheTaskBrowse.unshift({id:o,userid:n.userId}),n.cacheTaskBrowse.length>200&&n.cacheTaskBrowse.splice(200),$A.IDBSave("cacheTaskBrowse",n.cacheTaskBrowse)},saveDialog({state:n,dispatch:o},l){if($A.execMainDispatch("saveDialog",l),$A.isArray(l))l.forEach(a=>{o("saveDialog",a)});else if($A.isJson(l)){const a=n.cacheDialogs.findIndex(({id:i})=>i==l.id);if(a>-1){const i=n.cacheDialogs[a],r=l.user_ms,d=i.user_ms||0;r{o("updateDialogLastMsg",a)});else if($A.isJson(l))if(n.cacheDialogs.findIndex(({id:i})=>i==l.dialog_id)>-1){const i={id:l.dialog_id,last_msg:l,last_at:$A.formatDate("Y-m-d H:i:s")};l.mtype=="tag"&&(i.has_tag=!0),l.mtype=="image"&&(i.has_image=!0),l.mtype=="file"&&(i.has_file=!0),l.link&&(i.has_link=!0),o("saveDialog",i)}else o("getDialogOne",l.dialog_id).catch(()=>{})},getDialogs({state:n,dispatch:o,getters:l},a){return new Promise(function(i,r){if(n.userId===0){n.cacheDialogs=[],r({msg:"Parameter error"});return}$A.isJson(a)||(a={}),typeof a.page=="undefined"&&(a.page=1),typeof a.pagesize=="undefined"&&(a.pagesize=20),typeof a.updated_at=="undefined"&&(a.updated_at=n.dialogUpdatedAt),typeof a.deleted_at=="undefined"&&(a.deleted_at=n.dialogDeletedAt||l.getDialogLastAt),!a.hideLoad&&n.loadDialogs++,o("call",{url:"dialog/lists",data:a}).then(({data:d})=>{o("saveDialog",d.data),d.current_page===1&&(d.deleted_at&&$A.IDBSet("dialogDeletedAt",d.deleted_at).then(f=>{n.dialogDeletedAt=d.deleted_at,d.deleted_data.some(v=>o("forgetDialog",v))}),$A.IDBSet("dialogUpdatedAt",n.dialogUpdatedAt=$A.formatDate()).then(f=>{})),d.next_page_url&&d.current_page<5?(a.page++,o("getDialogs",a).then(i).catch(r)):i()}).catch(d=>{console.warn(d),r(d)}).finally(d=>{!a.hideLoad&&n.loadDialogs--})})},getDialogOne({state:n,dispatch:o},l){return new Promise(function(a,i){if($A.runNum(l)===0){i({msg:"Parameter error"});return}o("call",{url:"dialog/one",data:{dialog_id:l}}).then(r=>{o("saveDialog",r.data),a(r)}).catch(r=>{console.warn(r),i(r)})})},getDialogTodo({state:n,dispatch:o},l){o("call",{url:"dialog/todo",data:{dialog_id:l}}).then(({data:a})=>{$A.arrayLength(a)>0?(o("saveDialog",{id:l,todo_num:$A.arrayLength(a)}),n.dialogTodos=n.dialogTodos.filter(i=>i.dialog_id!=l),o("saveDialogTodo",a)):o("saveDialog",{id:l,todo_num:0})}).catch(console.warn)},openDialog({state:n,dispatch:o},l){return new Promise(a=>{let i;$A.isJson(l)&&(i=l.search_msg_id,l=l.dialog_id),requestAnimationFrame(r=>{n.dialogSearchMsgId=/^\d+$/.test(i)?i:0,n.dialogId=/^\d+$/.test(l)?l:0,a()})})},openDialogUserid({state:n,dispatch:o},l){return new Promise(function(a,i){const r=n.cacheDialogs.find(d=>d.type!=="user"||!d.dialog_user?!1:d.dialog_user.userid===l);if(r){o("openDialog",r.id),a(r);return}o("showSpinner",600),o("call",{url:"dialog/open/user",data:{userid:l}}).then(({data:d})=>{o("saveDialog",d),o("openDialog",d.id),a(d)}).catch(d=>{console.warn(d),i(d)}).finally(d=>{o("hiddenSpinner")})})},forgetDialog({state:n},o){$A.execMainDispatch("forgetDialog",o);let l=$A.isArray(o)?o:[o];l.some(a=>{const i=n.cacheDialogs.findIndex(r=>r.id==a);i>-1&&n.cacheDialogs.splice(i,1)}),l.includes(n.dialogId)&&(n.dialogId=0),$A.IDBSave("cacheDialogs",n.cacheDialogs)},saveInDialog({state:n,dispatch:o},l){$A.execMainDispatch("saveInDialog",l);const a=n.dialogIns.findIndex(d=>d.uid==l.uid);a>-1?n.dialogIns.splice(a,1,Object.assign({},n.dialogIns[a],l)):n.dialogIns.push(l);const i=1500,r=30;if(n.dialogHistory=n.dialogHistory.filter(d=>d!=l.dialog_id),n.dialogHistory.push(l.dialog_id),n.dialogMsgs.length>i&&n.dialogHistory.length>r){const d=n.dialogHistory.slice().reverse(),f=[],v=[];d.forEach(e=>{f.lengthm.dialog_id==e)>-1?f.push(e):v.push(e)}),v.length>0&&(n.dialogMsgs=n.dialogMsgs.filter(e=>!v.includes(e.dialog_id)),$A.IDBSave("dialogMsgs",n.dialogMsgs,600)),n.dialogHistory=f}},forgetInDialog({state:n,dispatch:o},l){$A.execMainDispatch("forgetInDialog",l);const a=n.dialogIns.findIndex(i=>i.uid==l);a>-1&&n.dialogIns.splice(a,1)},closeDialog({state:n,dispatch:o},l){if($A.execMainDispatch("closeDialog",l),!/^\d+$/.test(l))return;const a=50,i=n.dialogMsgs.filter(r=>r.dialog_id==l);if(i.length>a){const r=i.sort((d,f)=>f.id-d.id).splice(a).map(d=>d.id);n.dialogMsgs=n.dialogMsgs.filter(d=>!r.includes(d.id)),$A.IDBSave("dialogMsgs",n.dialogMsgs,600)}},saveDialogTodo({state:n,dispatch:o},l){if($A.execMainDispatch("saveDialogTodo",l),$A.isArray(l))l.forEach(a=>{o("saveDialogTodo",a)});else if($A.isJson(l)){const a=n.dialogTodos.findIndex(i=>i.id==l.id);a>-1?n.dialogTodos.splice(a,1,Object.assign({},n.dialogTodos[a],l)):n.dialogTodos.push(l)}},forgetDialogTodoForMsgId({state:n,dispatch:o},l){$A.execMainDispatch("forgetDialogTodoForMsgId",l);const a=n.dialogTodos.findIndex(i=>i.msg_id==l);a>-1&&n.dialogTodos.splice(a,1)},saveDialogInputCache({state:n},o){const l=n.dialogInputCache.findIndex(a=>a.key==o.key);l>-1?n.dialogInputCache.splice(l,1,o):n.dialogInputCache.push(o),$A.IDBSave("dialogInputCache",n.dialogInputCache,600)},saveDialogMsg({state:n,dispatch:o},l){if($A.execMainDispatch("saveDialogMsg",l),$A.isArray(l))l.forEach(a=>{o("saveDialogMsg",a)});else if($A.isJson(l)){const a=n.dialogMsgs.findIndex(({id:r})=>r==l.id);l=Object.assign({},n.dialogMsgs[a],l),a>-1?n.dialogMsgs.splice(a,1,l):n.dialogMsgs.push(l),$A.IDBSave("dialogMsgs",n.dialogMsgs,600);const i=n.cacheDialogs.find(({id:r,last_msg:d})=>r==l.dialog_id&&d&&d.id===l.id);i&&o("saveDialog",{id:l.dialog_id,last_msg:Object.assign({},i.last_msg,l)})}},forgetDialogMsg({state:n,dispatch:o},l){$A.execMainDispatch("forgetDialogMsg",l),($A.isArray(l)?l:[l]).some(i=>{const r=n.dialogMsgs.findIndex(d=>d.id==i);r>-1&&(o("decrementMsgReplyNum",n.dialogMsgs[r]),Xi.Store.set("audioSubscribe",i),n.dialogMsgs.splice(r,1),$A.IDBSave("dialogMsgs",n.dialogMsgs,600))}),o("forgetDialogTodoForMsgId",l)},getDialogMsgs({state:n,dispatch:o,getters:l},a){return new Promise((i,r)=>{let d=c=>{},f=c=>{},v=!1,e=!1;typeof a.save_before!="undefined"&&(d=typeof a.save_before=="function"?a.save_before:c=>{},delete a.save_before),typeof a.save_after!="undefined"&&(f=typeof a.save_after=="function"?a.save_after:c=>{},delete a.save_after),typeof a.clear_before!="undefined"&&(v=typeof a.clear_before=="boolean"?a.clear_before:!1,delete a.clear_before),typeof a.spinner!="undefined"&&(e=a.spinner,delete a.spinner);const m=`msg::${a.dialog_id}-${a.msg_id}-${a.msg_type||""}`;if(l.isLoad(m)){r({msg:"Loading"});return}o("setLoad",m),v&&(n.dialogMsgs=n.dialogMsgs.filter(({dialog_id:c})=>c!==a.dialog_id),$A.IDBSave("dialogMsgs",n.dialogMsgs,600)),o("call",{url:"dialog/msg/list",data:a,spinner:e,complete:c=>o("cancelLoad",m)}).then(c=>{d();const p=c.data;if($A.isJson(p.dialog)){setTimeout(g=>o("saveDialog",p.dialog),300);const _=p.list.map(({id:g})=>g);n.dialogMsgs=n.dialogMsgs.filter(g=>g.dialog_id!=a.dialog_id||_.includes(g.id)||$A.Time(g.created_at)>=p.time),$A.IDBSave("dialogMsgs",n.dialogMsgs,600)}$A.isArray(p.todo)&&(n.dialogTodos=n.dialogTodos.filter(_=>_.dialog_id!=a.dialog_id),o("saveDialogTodo",p.todo)),o("saveDialogMsg",p.list),i(c),f()}).catch(c=>{console.warn(c),r(c)}).finally(c=>{if(a.prev_id){const p=n.dialogMsgs.find(({prev_id:_})=>_==a.prev_id);p&&(p.prev_id=0)}if(a.next_id){const p=n.dialogMsgs.find(({next_id:_})=>_==a.next_id);p&&(p.next_id=0)}})})},dialogMsgRead({state:n,dispatch:o},l){if($A.isJson(l)){if(l.userid==n.userId||l.read_at)return;l.read_at=$A.formatDate(),n.wsReadWaitData[l.id]=l.id}clearTimeout(n.wsReadTimeout),n.wsReadTimeout=setTimeout(a=>{const i=Object.values(n.wsReadWaitData);n.wsReadWaitData={},i.length!==0&&o("call",{url:"dialog/msg/read",data:{id:i.join(",")}}).then(({data:r})=>{o("saveDialog",r)}).catch(r=>{i.some(d=>{n.wsReadWaitData[d]=d})})},50)},dialogMsgMark({state:n,dispatch:o},l){return new Promise((a,i)=>{o("call",{url:"dialog/msg/mark",data:l}).then(r=>{o("saveDialog",r.data),a(r)}).catch(r=>{i(r)})})},setLoad({state:n,dispatch:o},l){if($A.isJson(l)){setTimeout(i=>{o("setLoad",l.key)},l.delay||0);return}const a=n.loads.find(i=>i.key==l);a?a.num++:n.loads.push({key:l,num:1})},cancelLoad({state:n},o){const l=n.loads.find(a=>a.key==o);l?l.num--:n.loads.push({key:o,num:-1})},showSpinner({state:n},o){const l=$A.randomString(6);n.floatSpinnerTimer.push({id:l,timer:setTimeout(a=>{n.floatSpinnerTimer=n.floatSpinnerTimer.filter(i=>i.id!==l),n.floatSpinnerLoad++},typeof o=="number"?o:0)})},hiddenSpinner({state:n}){const o=n.floatSpinnerTimer.shift();o?clearTimeout(o.timer):n.floatSpinnerLoad--},websocketConnection({state:n,dispatch:o,commit:l}){if(clearTimeout(n.wsTimeout),n.ws&&(n.ws.close(),n.ws=null),n.userId===0)return;let a=$A.apiUrl("../ws");a=a.replace("https://","wss://"),a=a.replace("http://","ws://"),a+="?action=web&token="+n.userToken;const i=$A.openLog,r=$A.randomString(16);n.wsRandom=r,n.ws=new WebSocket(a),n.ws.onopen=d=>{i&&console.log("[WS] Open",d,$A.formatDate()),n.wsOpenNum++},n.ws.onclose=d=>{i&&console.log("[WS] Close",d,$A.formatDate()),n.ws=null,clearTimeout(n.wsTimeout),n.wsTimeout=setTimeout(()=>{r===n.wsRandom&&o("websocketConnection")},3e3)},n.ws.onerror=d=>{i&&console.log("[WS] Error",d,$A.formatDate()),n.ws=null,clearTimeout(n.wsTimeout),n.wsTimeout=setTimeout(()=>{r===n.wsRandom&&o("websocketConnection")},3e3)},n.ws.onmessage=d=>{i&&console.log("[WS] Message",d);const f=$A.formatMsgBasic($A.jsonParse(d.data)),{type:v,msgId:e}=f;switch(v){case"open":$A.setSessionStorage("userWsFd",f.data.fd);break;case"receipt":typeof n.wsCall[e]=="function"&&n.wsCall[e](f.body,!0),delete n.wsCall[e];break;case"line":o("saveUserOnlineStatus",f.data);break;default:switch(e&&o("websocketSend",{type:"receipt",msgId:e}).catch(m=>{}),n.wsMsg=f,Object.values(n.wsListener).forEach(m=>{if(typeof m=="function")try{m(f)}catch(c){i&&console.log("[WS] Callerr",c)}}),v){case"dialog":(function(m){const{mode:c,silence:p,data:_}=m,{dialog_id:g}=_;switch(c){case"delete":if(o("forgetDialogMsg",_.id),n.cacheDialogs.find(({id:b})=>b==g)){const b={id:g,last_at:_.last_msg&&_.last_msg.created_at,last_msg:_.last_msg};_.update_read?o("call",{url:"dialog/msg/unread",data:{dialog_id:g}}).then(({data:E})=>{o("saveDialog",Object.assign(b,E))}).catch(()=>{}):o("saveDialog",b)}break;case"add":case"chat":if(!n.dialogMsgs.find(({id:b})=>b==_.id)){if(o("increaseTaskMsgNum",_),o("increaseMsgReplyNum",_),c==="chat")return;if(_.userid!==n.userId){const b=n.cacheDialogs.find(({id:E})=>E==g);if(b){const E={id:g,unread:b.unread+1,mention:b.mention,user_at:_.user_at,user_ms:_.user_ms};_.mention&&E.mention++;const T=n.dialogIns.findIndex(w=>w.dialog_id===g)>-1?3e3:300;setTimeout(w=>o("saveDialog",E),T)}}p||Xi.Store.set("dialogMsgPush",_)}o("saveDialogMsg",_),o("updateDialogLastMsg",_);break;case"update":case"readed":if(n.dialogMsgs.find(({id:b})=>b==_.id))o("saveDialogMsg",_),typeof _.todo!="undefined"&&o("getDialogTodo",g);else if(c==="readed"){let b=0;const E=setInterval(T=>{b>6&&clearInterval(E),n.dialogMsgs.find(({id:w})=>w==_.id)&&(clearInterval(E),o("saveDialogMsg",_)),b++},500)}break;case"groupAdd":case"groupJoin":o("getDialogOne",_.id).catch(()=>{});break;case"groupUpdate":n.cacheDialogs.find(({id:b})=>b==_.id)&&o("saveDialog",_);break;case"groupExit":case"groupDelete":o("forgetDialog",_.id);break}})(f);break;case"project":(function(m){const{action:c,data:p}=m;switch(c){case"add":case"update":o("saveProject",p);break;case"detail":o("getProjectOne",p.id).catch(()=>{}),o("getTaskForProject",p.id).catch(()=>{});break;case"archived":case"delete":o("forgetProject",p.id);break;case"sort":o("getTaskForProject",p.id).catch(()=>{});break}})(f);break;case"projectColumn":(function(m){const{action:c,data:p}=m;switch(c){case"add":case"update":o("saveColumn",p);break;case"delete":o("forgetColumn",p.id);break}})(f);break;case"projectTask":(function(m){const{action:c,data:p}=m;switch(c){case"add":case"restore":o("addTaskSuccess",p);break;case"update":o("saveTask",p);break;case"dialog":o("saveTask",p),o("getDialogOne",p.dialog_id).catch(()=>{});break;case"upload":o("getTaskFiles",p.task_id);break;case"filedelete":o("forgetTaskFile",p.id);break;case"delete":o("forgetTask",p.id);break}})(f);break;case"file":(function(m){const{action:c,data:p}=m;switch(c){case"add":case"update":o("saveFile",p);break;case"delete":o("forgetFile",p.id);break}})(f);break}break}}},websocketSend({state:n},o){return new Promise((l,a)=>{var v;if(!$A.isJson(o)){a();return}const{type:i,data:r,callback:d}=o;let f;if(!n.ws){typeof d=="function"&&d(null,!1),a();return}typeof d=="function"&&(f=$A.randomString(16),n.wsCall[f]=d);try{(v=n.ws)==null||v.send(JSON.stringify({type:i,msgId:f,data:r})),l()}catch(e){typeof d=="function"&&d(null,!1),a(e)}})},websocketPath({state:n,dispatch:o},l){clearTimeout(n.wsPathTimeout),n.wsPathValue=l,n.wsPathTimeout=setTimeout(()=>{n.wsPathValue==l&&o("websocketSend",{type:"path",data:{path:l}}).catch(a=>{})},1e3)},websocketMsgListener({state:n},o){const{name:l,callback:a}=o;typeof a=="function"?n.wsListener[l]=a:n.wsListener[l]&&delete n.wsListener[l]},websocketClose({state:n}){n.ws&&(n.ws.close(),n.ws=null)}},EB={};Ht.use(Hp);var j0=new Hp.Store({state:xB,getters:wB,mutations:EB,actions:SB}),DB={computed:{...qi(["windowWidth","windowHeight","windowActive","windowScrollY","windowLarge","windowSmall","userId","userToken"])}};var OB=function(){var n=this,o=n.$createElement;return n._self._c,n._e()},kB=[];const TB={name:"PageTitle",props:{title:{type:[String,Number],default:""}},data(){return{pagePath:""}},activated(){this.updateTitle()},watch:{title:{handler(){this.initTitle()},immediate:!0}},methods:{initTitle(){this.pagePath=this.$route.path,this.updateTitle()},updateTitle(){if(this.pagePath=="")return;let n=this.title,{title:o}=document;n!==o&&this.pagePath===this.$route.path&&this.setPageTile(n)},setPageTile(n){document.title=n}}},V0={};var MB=lr(TB,OB,kB,!1,PB,null,null,null);function PB(n){for(let o in V0)this[o]=V0[o]}var IB=function(){return MB.exports}(),$B=function(){var n=this,o=n.$createElement,l=n._self._c||o;return l("ETooltip",{attrs:{disabled:n.windowSmall||n.$isEEUiApp||n.content=="",content:n.content}},[n.type==="svg"?l("svg",{staticClass:"common-loading",attrs:{viewBox:"25 25 50 50"}},[l("circle",{staticClass:"common-path",attrs:{cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"5","stroke-miterlimit":"10"}})]):l("div",{staticClass:"common-pureing"})])},AB=[];const RB={name:"Loading",props:{type:{type:String,default:"svg"},content:{type:[String,Number],default:""}}},z0={};var LB=lr(RB,$B,AB,!1,NB,null,null,null);function NB(n){for(let o in z0)this[o]=z0[o]}var FB=function(){return LB.exports}(),BB=function(){var n=this,o=n.$createElement,l=n._self._c||o;return l("ETooltip",{attrs:{content:n.tipText,placement:n.placement,effect:n.tooltipTheme,delay:n.delay,disabled:n.windowSmall||n.$isEEUiApp||!n.showTooltip||n.disabled,"max-width":n.tooltipMaxWidth,transfer:""}},[l("span",{ref:"content",staticClass:"common-auto-tip",on:{mouseenter:n.handleTooltipIn,click:n.onClick}},[n.existSlot?[n._t("default")]:[n._v(n._s(n.content))]],2)])},jB=[];const VB={name:"AutoTip",props:{content:{type:[String,Number],default:""},placement:{default:"bottom"},tooltipTheme:{default:"dark"},tooltipMaxWidth:{type:[String,Number],default:300},delay:{type:Number,default:100},disabled:{type:Boolean,default:!1}},data(){return{showTooltip:!1,tooltipContent:""}},computed:{tipText(){const{content:n,tooltipContent:o}=this;return n||o||""},existSlot(){return!(typeof this.$slots.default=="undefined"||this.$slots.default.length<1)}},methods:{handleTooltipIn(){const n=this.$refs.content;let o=document.createRange();o.setStart(n,0),o.setEnd(n,n.childNodes.length);const l=o.getBoundingClientRect().width;if(this.showTooltip=Math.floor(l)>Math.floor(n.offsetWidth),this.showTooltip&&this.existSlot){const a=this.$slots.default.map(i=>i.text?i.text:i.elm.innerText?i.elm.innerText:"");this.tooltipContent=a.join("")}o=null},onClick(n){this.$emit("on-click",n)}}},W0={};var zB=lr(VB,BB,jB,!1,WB,null,null,null);function WB(n){for(let o in W0)this[o]=W0[o]}var HB=function(){return zB.exports}(),UB=function(){var n=this,o=n.$createElement,l=n._self._c||o;return l("div",{staticClass:"common-tag-input",class:{focus:n.isFocus},on:{paste:function(a){return n.pasteText(a)},click:n.focus}},[n._l(n.disSource,function(a,i){return l("div",{staticClass:"tags-item"},[l("span",{staticClass:"tags-content",on:{click:function(r){r.stopPropagation()}}},[n._v(n._s(a))]),l("span",{staticClass:"tags-del",on:{click:function(r){return r.stopPropagation(),n.delTag(i)}}},[n._v("\xD7")])])}),l("textarea",{directives:[{name:"model",rawName:"v-model",value:n.content,expression:"content"}],ref:"myTextarea",staticClass:"tags-input",style:{minWidth:n.minWidth+"px"},attrs:{placeholder:n.tis||n.placeholderText,enterkeyhint:n.enterkeyhint,disabled:n.disabled,readonly:n.readonly},domProps:{value:n.content},on:{keydown:[function(a){return!a.type.indexOf("key")&&n._k(a.keyCode,"enter",13,a.key,"Enter")?null:n.downEnter(a)},function(a){return!a.type.indexOf("key")&&n._k(a.keyCode,"delete",[8,46],a.key,["Backspace","Delete","Del"])?null:n.delTag(!1)}],keyup:n.onKeyup,focus:n.onFocus,blur:n.onBlur,input:function(a){a.target.composing||(n.content=a.target.value)}}}),n._v(" "),n.showPlaceholder||n.tis!==""?l("span",{ref:"myPlaceholder",staticClass:"tags-placeholder"},[n._v(n._s(n.tis||n.placeholderText))]):n._e()],2)},KB=[];const GB={name:"TagInput",props:{value:{default:""},cut:{default:","},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},placeholder:{default:""},max:{default:0},enterkeyhint:{type:String,default:""}},data(){var o;const n=[];return(o=this.value)==null||o.split(",").forEach(l=>{l&&n.push(l)}),{minWidth:80,tis:"",tisTimeout:null,showPlaceholder:!0,content:"",disSource:n,isFocus:!1}},mounted(){this.wayMinWidth()},watch:{placeholder(){this.wayMinWidth()},value(n){let o=[];n==null||n.split(",").forEach(l=>{l&&o.push(l)}),this.disSource=o},disSource(n){let o="";n.forEach(l=>{o!=""&&(o+=this.cut),o+=l}),this.$emit("input",o),this.$emit("on-change")}},computed:{placeholderText(){return this.disSource.length>0?"":this.placeholder}},methods:{focus(n){const o=this.$refs.myTextarea;o.focus(n);const{cursor:l}=n||{};if(l){const a=o.value.length;switch(l){case"start":o.setSelectionRange(0,0);break;case"end":o.setSelectionRange(a,a);break;default:o.setSelectionRange(0,a)}}},wayMinWidth(){this.showPlaceholder=!0,this.$nextTick(()=>{this.$refs.myPlaceholder&&(this.minWidth=Math.max(this.minWidth,this.$refs.myPlaceholder.offsetWidth)),setTimeout(()=>{try{this.minWidth=Math.max(this.minWidth,this.$refs.myPlaceholder.offsetWidth),this.showPlaceholder=!1}catch{}$A(this.$refs.myPlaceholder).is(":visible")||this.wayMinWidth()},500)})},pasteText(n){n.preventDefault();let o=(n.clipboardData||window.clipboardData).getData("text");this.addTag(!1,o)},downEnter(n){n.preventDefault()},onFocus(n){this.isFocus=!0,this.$emit("on-focus",n)},onBlur(n){this.isFocus=!1,this.addTag(!1,this.content),this.$emit("on-blur",n)},onKeyup(n){this.addTag(n,this.content),this.$emit("on-keyup",n),n.keyCode===13&&this.$nextTick(()=>{this.$emit("on-enter",n)})},addTag(n,o){if(n===!1||n.keyCode===13){o.trim()!=""&&this.disSource.indexOf(o.trim())===-1&&this.disSource.push(o.trim()),this.content="";return}if(this.max>0&&this.disSource.length>=this.max){this.content="",this.tis="\u6700\u591A\u53EA\u80FD\u6DFB\u52A0"+this.max+"\u4E2A",clearInterval(this.tisTimeout),this.tisTimeout=setTimeout(()=>{this.tis=""},2e3);return}let l=o.trim(),a=l.length-this.cut.length;l!=""&&l.substring(a)===this.cut&&(l=l.substring(0,a),l.trim()!=""&&this.disSource.indexOf(l.trim())===-1&&this.disSource.push(l.trim()),this.content="")},delTag(n){if(n===!1){if(this.content!=="")return;n=this.disSource.length-1}this.disSource.splice(n,1),this.focus()}}},H0={};var YB=lr(GB,UB,KB,!1,XB,null,null,null);function XB(n){for(let o in H0)this[o]=H0[o]}var JB=function(){return YB.exports}(),LS={exports:{}};(function(n,o){(function(l,a){n.exports=a()})(Ki,function(){function l(){var g=!1;return typeof navigator!="undefined"&&(g=navigator.userAgent.match(/Trident/)||navigator.userAgent.match(/Edge/)),g}var a=0,i=["ms","moz","webkit","o"];typeof window=="undefined"&&(Ki.window={});for(var r=0;r0&&(x.percent=x.loaded/x.total*100),g.onProgress(x)});var T=new FormData;g.data&&(0,e.default)(g.data).map(function(k){(0,f.default)(this,y),T.append(k,g.data[k])}.bind(this)),T.append(g.filename,g.file),b.onerror=function(x){g.onError(x)},b.onload=function(){if(b.status<200||b.status>=300)return g.onError(c(E,g,b),p(b));g.onSuccess(p(b))},b.open("post",E,!0),g.withCredentials&&"withCredentials"in b&&(b.withCredentials=!0);var w=g.headers||{};for(var D in w)w.hasOwnProperty(D)&&w[D]!==null&&b.setRequestHeader(D,w[D]);b.send(T)}}},function(a,i,r){Object.defineProperty(i,"__esModule",{value:!0});var d=function(){var e=this,m=e.$createElement,c=e._self._c||m;return c("div",{class:[e.prefixCls]},[c("div",{class:e.classes,on:{click:e.handleClick,drop:function(_){return _.preventDefault(),e.onDrop.apply(null,arguments)},paste:e.handlePaste,dragover:function(_){_.preventDefault(),e.dragOver=!0},dragleave:function(_){_.preventDefault(),e.dragOver=!1}}},[c("input",{ref:"input",class:[e.prefixCls+"-input"],attrs:{type:"file",multiple:e.multiple,webkitdirectory:e.webkitdirectory,accept:e.accept},on:{change:e.handleChange}}),e._v(" "),e._t("default")],2),e._v(" "),e._t("tip"),e._v(" "),e.showUploadList?c("upload-list",{attrs:{files:e.fileList},on:{"on-file-remove":e.handleRemove,"on-file-preview":e.handlePreview}}):e._e()],2)},f=[];i.render=d,i.staticRenderFns=f},function(a,i,r){Object.defineProperty(i,"__esModule",{value:!0}),i.Col=i.Row=void 0;var d=r(625),f=m(d),v=r(627),e=m(v);function m(c){return c&&c.__esModule?c:{default:c}}i.Row=f.default,i.Col=e.default},function(a,i,r){Object.defineProperty(i,"__esModule",{value:!0});var d=r(257),f=r.n(d);for(var v in d)v!=="default"&&function(b){r.d(i,b,function(){return d[b]})}(v);var e=r(626);r.n(e);var m=r(0),c=!1,p=null,_=null,g=null,y=Object(m.a)(f.a,e.render,e.staticRenderFns,c,p,_,g);i.default=y.exports},function(a,i,r){Object.defineProperty(i,"__esModule",{value:!0});var d=function(){var e=this,m=e.$createElement,c=e._self._c||m;return c("div",{class:e.classes,style:e.styles},[e._t("default")],2)},f=[];i.render=d,i.staticRenderFns=f},function(a,i,r){Object.defineProperty(i,"__esModule",{value:!0});var d=r(258),f=r.n(d);for(var v in d)v!=="default"&&function(b){r.d(i,b,function(){return d[b]})}(v);var e=r(628);r.n(e);var m=r(0),c=!1,p=null,_=null,g=null,y=Object(m.a)(f.a,e.render,e.staticRenderFns,c,p,_,g);i.default=y.exports},function(a,i,r){Object.defineProperty(i,"__esModule",{value:!0});var d=function(){var e=this,m=e.$createElement,c=e._self._c||m;return c("div",{class:e.classes,style:e.styles},[e._t("default")],2)},f=[];i.render=d,i.staticRenderFns=f},function(a,i,r){Object.defineProperty(i,"__esModule",{value:!0}),i.OptionGroup=i.Option=i.Select=void 0;var d=r(74),f=p(d),v=r(81),e=p(v),m=r(630),c=p(m);function p(_){return _&&_.__esModule?_:{default:_}}i.Select=f.default,i.Option=e.default,i.OptionGroup=c.default,i.default=f.default},function(a,i,r){Object.defineProperty(i,"__esModule",{value:!0});var d=r(259),f=r.n(d);for(var v in d)v!=="default"&&function(b){r.d(i,b,function(){return d[b]})}(v);var e=r(631);r.n(e);var m=r(0),c=!1,p=null,_=null,g=null,y=Object(m.a)(f.a,e.render,e.staticRenderFns,c,p,_,g);i.default=y.exports},function(a,i,r){Object.defineProperty(i,"__esModule",{value:!0});var d=function(){var e=this,m=e.$createElement,c=e._self._c||m;return c("li",{directives:[{name:"show",rawName:"v-show",value:!e.hidden,expression:"!hidden"}],class:[e.prefixCls+"-wrap"]},[c("div",{class:[e.prefixCls+"-title"]},[e._v(e._s(e.label))]),e._v(" "),c("ul",[c("li",{ref:"options",class:[e.prefixCls]},[e._t("default")],2)])])},f=[];i.render=d,i.staticRenderFns=f}])})})(RS);var ri=KI(RS.exports),xB={windowWidth:$A(window).width(),windowHeight:$A(window).height(),windowScrollY:0,windowLarge:$A(window).width()>768,windowSmall:$A(window).width()<=768,windowActive:!0,appNotificationPermission:!0,audioPlaying:null,routeHistorys:[],routeHistoryLast:{},loads:[],loadDashboardTasks:!1,loadUserBasic:!1,loadProjects:0,loadDialogs:0,floatSpinnerTimer:[],floatSpinnerLoad:0,touchBackInProgress:!1,cacheUserActive:{},cacheUserWait:[],cacheUserBasic:[],cacheDialogs:[],cacheProjects:[],cacheColumns:[],cacheTasks:[],cacheProjectParameter:[],cacheTaskBrowse:[],cacheServerUrl:"",ajaxWsReady:!1,ajaxWsListener:[],ajaxNetworkException:!1,ws:null,wsMsg:{},wsCall:{},wsTimeout:null,wsRandom:0,wsOpenNum:0,wsListener:{},wsReadTimeout:null,wsReadWaitData:{},userInfo:{},userId:0,userToken:"",userIsAdmin:!1,userOnline:{},userAvatar:{},dialogId:0,dialogSearchMsgId:0,dialogIns:[],dialogMsgs:[],dialogTodos:[],dialogHistory:[],dialogInputCache:[],dialogMsgTransfer:{time:0},dialogUpdatedAt:null,dialogDeletedAt:null,fileLists:[],projectId:0,projectTotal:0,projectLoad:0,projectDeletedAt:null,taskId:0,taskCompleteTemps:[],taskContents:[],taskFiles:[],taskLogs:[],taskOperation:{},taskOneLoad:{},taskFlows:[],taskFlowItems:[],taskPriority:[],columnTemplate:[],columnColorList:[{name:"\u9ED8\u8BA4",color:""},{name:"\u7070\u8272",color:"#444444"},{name:"\u68D5\u8272",color:"#947364"},{name:"\u6A58\u8272",color:"#faaa6c"},{name:"\u9EC4\u8272",color:"#f2d86d"},{name:"\u7EFF\u8272",color:"#73b45c"},{name:"\u84DD\u8272",color:"#51abea"},{name:"\u7D2B\u8272",color:"#b583e3"},{name:"\u7C89\u8272",color:"#ff819c"},{name:"\u7EA2\u8272",color:"#ff7070"}],taskColorList:[{name:"\u9ED8\u8BA4",color:""},{name:"\u9EC4\u8272",color:"#fffae6"},{name:"\u84DD\u8272",color:"#e5f5ff"},{name:"\u7EFF\u8272",color:"#ecffe5"},{name:"\u7C89\u8272",color:"#ffeaee"},{name:"\u7D2B\u8272",color:"#f6ecff"},{name:"\u7070\u8272",color:"#f3f3f3"}],themeMode:window.localStorage.getItem("__theme:mode__"),themeList:[{name:"\u8DDF\u968F\u7CFB\u7EDF",value:"auto"},{name:"\u660E\u4EAE",value:"light"},{name:"\u6697\u9ED1",value:"dark"}],themeIsDark:!1,clientNewVersion:null,previewImageIndex:0,previewImageList:[],reportUnreadNumber:0,formLabelPosition:$A(window).width()>576?"right":"top",formLabelWidth:$A(window).width()>576?"auto":""},wB={isLoad(n){return function(o){const l=n.loads.find(a=>a.key===o);return l&&l.num>0}},projectData(n){if(n.projectId>0){let o=n.cacheProjects.find(({id:l})=>l==n.projectId);if(o){let l=n.cacheProjectParameter.find(({project_id:a})=>a==n.projectId);return l||(l=$A.projectParameterTemplate(n.projectId),n.cacheProjectParameter.push(l)),l.menuType===void 0&&(l.menuType="column"),o.cacheParameter=l,o}}return{cacheParameter:{}}},taskData(n){let o=n.taskId;if(o==0&&(o=$A.runNum(window.__taskId)),o>0){window.__taskId=o;const l=n.cacheTasks.find(({id:a})=>a==o);if(l)return l}return{}},transforTasks(n){return function(o){return o.filter(({parent_id:l})=>!(l>0&&o.find(({id:a})=>a==l))).map(l=>{if(l.parent_id>0){const a=n.cacheTasks.find(({id:i})=>i==l.parent_id);return a?Object.assign({},a,{id:l.id,parent_id:l.parent_id,name:l.name,start_at:l.start_at,end_at:l.end_at,complete_at:l.complete_at,_time:l._time,flow_item_id:l.flow_item_id,flow_item_name:l.flow_item_name,flow_item_status:l.flow_item_status,sub_top:!0,sub_my:[]}):Object.assign({},l,{sub_top:!0,sub_my:[]})}else return Object.assign({},l,{sub_top:!1,sub_my:o.filter(({parent_id:a})=>a==l.id)})})}},dashboardTask(n){const o=$A.Date($A.formatDate("Y-m-d 00:00:00")),l=$A.Date($A.formatDate("Y-m-d 23:59:59")),a=$A.Date($A.formatDate("Y-m-d H:i:s")),i=(m,c=!0)=>m.archived_at||m.complete_at&&c===!0?!1:m.owner;let r=n.cacheTasks.filter(m=>i(m)),d=0;if(n.taskCompleteTemps.length>0){let m=n.cacheTasks.filter(c=>n.taskCompleteTemps.includes(c.id)&&i(c,!1));m.length>0&&(d=m.length,r=$A.cloneJSON(r),r.push(...m))}const f=r.filter(m=>{const c=$A.Date(m.end_at);return o<=c&&c<=l}),v=r.filter(m=>m.end_at&&$A.Date(m.end_at)<=a),e={today:f,today_count:f.length,overdue:v,overdue_count:v.length,all:r,all_count:r.length};return d>0&&(e.today_count-=f.filter(m=>n.taskCompleteTemps.includes(m.id)).length,e.overdue_count-=v.filter(m=>n.taskCompleteTemps.includes(m.id)).length,e.all_count-=d),e},assistTask(n){const o=(a,i=!0)=>a.archived_at||a.complete_at&&i===!0?!1:a.assist&&!a.owner;let l=n.cacheTasks.filter(a=>o(a));if(n.taskCompleteTemps.length>0){let a=n.cacheTasks.filter(i=>n.taskCompleteTemps.includes(i.id)&&o(i,!1));a.length>0&&(l=$A.cloneJSON(l),l.push(...a))}return l},getProjectLastAt(n){return n.cacheProjects.length>0?n.cacheProjects.sort((l,a)=>$A.Date(a.updated_at)-$A.Date(l.updated_at))[0].updated_at:$A.formatDate("Y-m-d H:i:s",$A.Time()-86400*30)},getDialogLastAt(n){return n.cacheDialogs.length>0?n.cacheDialogs.sort((l,a)=>$A.Date(a.last_at)-$A.Date(l.last_at))[0].last_at:$A.formatDate("Y-m-d H:i:s",$A.Time()-86400*30)}},SB={init({state:n,dispatch:o}){return new Promise(async l=>{if(!await $A.IDBBoolean("initTag")){await $A.IDBSet("initTag",!0);const i=$A.getStorageJson("userInfo");i.userid>0&&(await $A.IDBSet("userInfo",i),await $A.IDBSet("cacheServerUrl",$A.getStorageString("cacheServerUrl")),window.localStorage.clear())}switch(n.cacheServerUrl=await $A.IDBString("cacheServerUrl"),n.cacheUserBasic=await $A.IDBArray("cacheUserBasic"),n.cacheDialogs=(await $A.IDBArray("cacheDialogs")).map(i=>Object.assign(i,{loading:!1})),n.cacheProjects=await $A.IDBArray("cacheProjects"),n.cacheColumns=await $A.IDBArray("cacheColumns"),n.cacheTasks=await $A.IDBArray("cacheTasks"),n.cacheProjectParameter=await $A.IDBArray("cacheProjectParameter"),n.cacheTaskBrowse=await $A.IDBArray("cacheTaskBrowse"),n.dialogMsgs=await $A.IDBArray("dialogMsgs"),n.dialogInputCache=await $A.IDBArray("dialogInputCache"),n.fileLists=await $A.IDBArray("fileLists"),n.userInfo=await $A.IDBJson("userInfo"),n.dialogUpdatedAt=await $A.IDBString("dialogUpdatedAt"),n.dialogDeletedAt=await $A.IDBString("dialogDeletedAt"),n.projectDeletedAt=await $A.IDBString("projectDeletedAt"),n.userInfo.userid&&(n.userId=n.userInfo.userid=$A.runNum(n.userInfo.userid),n.userToken=n.userInfo.token,n.userIsAdmin=$A.inArray("admin",n.userInfo.identity)),n.cacheServerUrl&&(window.systemInfo.apiUrl=n.cacheServerUrl),n.themeMode){case"dark":$A.dark.enableDarkMode();break;case"light":$A.dark.disableDarkMode();break;default:n.themeMode="auto",$A.dark.autoDarkMode();break}n.themeIsDark=$A.dark.isDarkEnabled(),$A.loadScriptS(["js/language/key.js",`js/language/${Is}.js`],l)})},call({state:n,dispatch:o},l){$A.isJson(l)||(l={url:l});const a={"Content-Type":"application/json",language:Is,token:n.userToken,fd:$A.getSessionStorageString("userWsFd"),version:window.systemInfo.version||"0.0.1",platform:$A.Platform};$A.isJson(l.header)?l.header=Object.assign(a,l.header):l.header=a,l.url=$A.apiUrl(l.url),l.data=$A.date2string(l.data);const i=$A.cloneJSON(l);return new Promise(function(r,d){if(l.spinner===!0||typeof l.spinner=="number"&&l.spinner>0){const{before:f,complete:v}=l;l.before=()=>{o("showSpinner",typeof l.spinner=="number"?l.spinner:0),typeof f=="function"&&f()},l.complete=()=>{o("hiddenSpinner"),typeof v=="function"&&v()}}if(l.success=(f,v,e)=>{if(n.ajaxNetworkException=!1,!$A.isJson(f)){console.log(f,v,e),d({ret:-1,data:{},msg:"Return error"});return}const{ret:m,data:c,msg:p}=f;if(m===-1&&l.checkRole!==!1){$A.modalError({content:p,onOk:()=>{o("logout")}}),d(f);return}if(m===-2&&l.checkNick!==!1){o("userEditInput","nickname").then(()=>{o("call",i).then(r).catch(d)}).catch(_=>{d({ret:-1,data:c,msg:_||$A.L("\u8BF7\u8BBE\u7F6E\u6635\u79F0\uFF01")})});return}if(m===-3&&l.checkTel!==!1){o("userEditInput","tel").then(()=>{o("call",i).then(r).catch(d)}).catch(_=>{d({ret:-1,data:c,msg:_||$A.L("\u8BF7\u8BBE\u7F6E\u8054\u7CFB\u7535\u8BDD\uFF01")})});return}m===1?r({data:c,msg:p}):(d({ret:m,data:c,msg:p||"Unknown error"}),m===-4001?o("forgetProject",c.project_id):m===-4002?o("forgetTask",c.task_id):m===-4003&&o("forgetDialog",c.dialog_id))},l.error=(f,v)=>{const e=window.navigator.onLine===!1||v===0&&f.readyState===4;l.checkNetwork!==!1&&(n.ajaxNetworkException=e),d(e?{ret:-1001,data:{},msg:"Network exception"}:{ret:-1,data:{},msg:"System error"})},l.websocket===!0||l.ws===!0){const f=$A.randomString(16),v=setTimeout(()=>{const e=n.ajaxWsListener.find(m=>m.apiWebsocket==f);e&&(e.complete(),e.error("timeout"),e.after()),n.ajaxWsListener=n.ajaxWsListener.filter(m=>m.apiWebsocket!=f)},l.timeout||3e4);n.ajaxWsListener.push({apiWebsocket:f,complete:typeof l.complete=="function"?l.complete:()=>{},success:typeof l.success=="function"?l.success:()=>{},error:typeof l.error=="function"?l.error:()=>{},after:typeof l.after=="function"?l.after:()=>{}}),l.complete=()=>{},l.success=()=>{},l.error=()=>{},l.after=()=>{},l.header["Api-Websocket"]=f,n.ajaxWsReady===!1&&(n.ajaxWsReady=!0,o("websocketMsgListener",{name:"apiWebsocket",callback:e=>{switch(e.type){case"apiWebsocket":clearTimeout(v);const m=e.apiWebsocket,c=e.apiSuccess,p=e.data,_=n.ajaxWsListener.find(g=>g.apiWebsocket==m);_&&(_.complete(),c?_.success(p):_.error(p),_.after()),n.ajaxWsListener=n.ajaxWsListener.filter(g=>g.apiWebsocket!=m);break}}}))}$A.ajaxc(l)})},needHome({dispatch:n,state:o}){return new Promise((l,a)=>{n("call",{url:"system/get/starthome"}).then(({data:i})=>{i.need_start?l(i):a()}).catch(a)})},downUrl({state:n},o){if(!o)return;let l=o,a=!0;if($A.isJson(o)&&(l=o.url,a=!!o.token),a){let i={token:n.userToken};$A.isJson(o)&&(l=o.url,i=o.params||{}),l=$A.urlAddParams(l,i)}$A.Electron?$A.Electron.request({action:"openExternal",url:l},()=>{},()=>{}):$A.isEEUiApp?$A.eeuiAppOpenWeb(l):window.open(l)},toggleProjectParameter({state:n},o){$A.execMainDispatch("toggleProjectParameter",o);let l=o,a=null,i=n.projectId;if($A.isJson(o)&&(l=o.key,a=o.value,i=o.project_id),i){let r=n.cacheProjectParameter.findIndex(f=>f.project_id==i);r===-1&&(n.cacheProjectParameter.push($A.projectParameterTemplate(i)),r=n.cacheProjectParameter.findIndex(f=>f.project_id==i));const d=n.cacheProjectParameter[r];$A.isJson(l)||(l={[l]:a||!d[l]}),n.cacheProjectParameter.splice(r,1,Object.assign(d,l)),$A.IDBSave("cacheProjectParameter",n.cacheProjectParameter)}},setTheme({state:n},o){return new Promise(function(l){if(o===void 0){l(!1);return}if(!$A.isChrome()){$A.isEEUiApp?$A.modalWarning("\u4EC5Android\u8BBE\u7F6E\u652F\u6301\u4E3B\u9898\u529F\u80FD"):$A.modalWarning("\u4EC5\u5BA2\u6237\u7AEF\u6216Chrome\u6D4F\u89C8\u5668\u652F\u6301\u4E3B\u9898\u529F\u80FD"),l(!1);return}switch(o){case"dark":$A.dark.enableDarkMode();break;case"light":$A.dark.disableDarkMode();break;default:$A.dark.autoDarkMode();break}n.themeMode=o,n.themeIsDark=$A.dark.isDarkEnabled(),window.localStorage.setItem("__theme:mode__",o),l(!0)})},getBasicData({state:n,dispatch:o},l){if(typeof l=="number"){window.__getBasicDataTimer&&clearTimeout(window.__getBasicDataTimer),l>-1&&(window.__getBasicDataTimer=setTimeout(r=>o("getBasicData",null),l));return}const a=n.userId+$A.Time();if(window.__getBasicDataKey===a)return;window.__getBasicDataKey=a,o("getProjects").catch(()=>{}),o("getDialogs").catch(()=>{}),o("getReportUnread",1e3),o("getTaskForDashboard"),o("dialogMsgRead");const i=Object.values(n.userAvatar).map(({userid:r})=>r);[...new Set(i)].some(r=>o("getUserBasic",{userid:r}))},getReportUnread({state:n,dispatch:o},l){window.__getReportUnread&&clearTimeout(window.__getReportUnread),window.__getReportUnread=setTimeout(()=>{n.userId===0?n.reportUnreadNumber=0:o("call",{url:"report/unread"}).then(({data:a})=>{n.reportUnreadNumber=a.total||0}).catch(a=>{})},typeof l=="number"?l:1e3)},getUserInfo({dispatch:n}){return new Promise(function(o,l){n("call",{url:"users/info"}).then(a=>{n("saveUserInfo",a.data),o(a)}).catch(a=>{console.warn(a),l(a)})})},saveUserInfo({state:n,dispatch:o},l){return new Promise(async a=>{const i=$A.cloneJSON(l);i.userid=$A.runNum(i.userid),i.token=i.userid>0?i.token||n.userToken:"",n.userInfo=i,n.userId=i.userid,n.userToken=i.token,n.userIsAdmin=$A.inArray("admin",i.identity),await $A.IDBSet("userInfo",n.userInfo),o("getBasicData",null),n.userId>0&&o("saveUserBasic",n.userInfo),a()})},saveUserOnlineStatus({state:n},o){const{userid:l,online:a}=o;n.userOnline[l]!==a&&(n.userOnline=Object.assign({},n.userOnline,{[l]:a}))},getUserBasic({state:n,dispatch:o},l){if(n.loadUserBasic===!0){l&&n.cacheUserWait.push(l);return}let a=$A.Time(),i=$A.cloneJSON(n.cacheUserWait);l&&l.userid&&i.push(l),n.cacheUserWait=[];let r=[],d=0;i.some(f=>{let v=n.cacheUserBasic.find(({userid:e})=>e==f.userid);if(v&&a-v._time<=30)return setTimeout(()=>{n.cacheUserActive=Object.assign(v,{__:Math.random()}),Xi.Store.set("cacheUserActive",v)},d+=5),!1;r.push(f)}),r.length!==0&&(r.length>30&&(n.cacheUserWait=r.slice(30),r=r.slice(0,30)),n.loadUserBasic=!0,o("call",{url:"users/basic",data:{userid:[...new Set(r.map(({userid:f})=>f))]},checkRole:!1}).then(f=>{a=$A.Time(),r.forEach(v=>{let e=f.data.find(({userid:m})=>m==v.userid)||Object.assign(v,{email:""});e._time=a,o("saveUserBasic",e)}),n.loadUserBasic=!1,o("getUserBasic")}).catch(f=>{console.warn(f),n.loadUserBasic=!1,o("getUserBasic")}))},saveUserBasic({state:n},o){$A.execMainDispatch("saveUserBasic",o);const l=n.cacheUserBasic.findIndex(({userid:a})=>a==o.userid);l>-1?(o=Object.assign({},n.cacheUserBasic[l],o),n.cacheUserBasic.splice(l,1,o)):n.cacheUserBasic.push(o),n.cacheUserActive=Object.assign(o,{__:Math.random()}),Xi.Store.set("cacheUserActive",o),$A.IDBSave("cacheUserBasic",n.cacheUserBasic)},userEditInput({dispatch:n},o){return new Promise(function(l,a){let i="";if(o==="nickname")i="\u6635\u79F0";else if(o==="tel")i="\u8054\u7CFB\u7535\u8BDD";else{a("\u53C2\u6570\u9519\u8BEF");return}setTimeout(r=>{$A.modalInput({title:`\u8BBE\u7F6E${i}`,placeholder:`\u8BF7\u8F93\u5165\u60A8\u7684${i}`,okText:"\u4FDD\u5B58",onOk:d=>d?new Promise((f,v)=>{n("call",{url:"users/editdata",data:{[o]:d},checkNick:!1,checkTel:!1}).then(()=>{n("getUserInfo").finally(e=>{f(),l()})}).catch(({msg:e})=>{v(e)})}):`\u8BF7\u8F93\u5165${i}`,onCancel:d=>a})},100)})},logout({state:n,dispatch:o},l=!0){o("handleClearCache",{}).then(()=>{let a=["/","/login"].includes(window.location.pathname)?"":encodeURIComponent(window.location.href);l===!1&&(a=null),$A.goForward({name:"login",query:a?{from:a}:{}},!0)})},handleClearCache({state:n,dispatch:o},l){return new Promise(async a=>{try{n.cacheUserBasic=[],n.cacheDialogs=[],n.cacheProjects=[],n.cacheColumns=[],n.cacheTasks=[],n.dialogUpdatedAt=null,n.dialogDeletedAt=null,n.projectDeletedAt=null;const i=window.localStorage.getItem("__language:type__"),r=window.localStorage.getItem("__keyboard:data__"),d=window.localStorage.getItem("__theme:mode__");window.localStorage.clear(),window.localStorage.setItem("__language:type__",i),window.localStorage.setItem("__keyboard:data__",r),window.localStorage.setItem("__theme:mode__",d);const f=await $A.IDBString("cacheLoginEmail"),v=await $A.IDBJson("cacheFileSort");await $A.IDBClear(),await $A.IDBSet("cacheServerUrl",n.cacheServerUrl),await $A.IDBSet("cacheProjectParameter",n.cacheProjectParameter),await $A.IDBSet("cacheLoginEmail",f),await $A.IDBSet("cacheFileSort",v),await $A.IDBSet("cacheTaskBrowse",n.cacheTaskBrowse),o("saveUserInfo",$A.isJson(l)?l:n.userInfo).then(a)}catch{a()}})},saveFile({state:n,dispatch:o},l){if($A.execMainDispatch("saveFile",l),$A.isArray(l))l.forEach(a=>{o("saveFile",a)});else if($A.isJson(l)){let a={_load:!1,_edit:!1};const i=n.fileLists.findIndex(({id:r})=>r==l.id);i>-1?n.fileLists.splice(i,1,Object.assign(a,n.fileLists[i],l)):n.fileLists.push(Object.assign(a,l)),$A.IDBSave("fileLists",n.fileLists,600)}},forgetFile({state:n,dispatch:o},l){$A.execMainDispatch("forgetFile",l),($A.isArray(l)?l:[l]).some(i=>{n.fileLists=n.fileLists.filter(r=>r.id!=i),n.fileLists.some(r=>{r.pid==i&&o("forgetFile",r.id)}),$A.IDBSave("fileLists",n.fileLists,600)})},getFiles({state:n,dispatch:o},l){return new Promise(function(a,i){o("call",{url:"file/lists",data:{pid:l}}).then(r=>{const d=r.data.map(({id:f})=>f);n.fileLists=n.fileLists.filter(f=>f.pid!=l||d.includes(f.id)),$A.IDBSave("fileLists",n.fileLists,600),o("saveFile",r.data),a(r)}).catch(r=>{console.warn(r),i(r)})})},searchFiles({state:n,dispatch:o},l){return new Promise(function(a,i){o("call",{url:"file/search",data:{key:l}}).then(r=>{o("saveFile",r.data),a(r)}).catch(r=>{console.warn(r),i(r)})})},saveProject({state:n,dispatch:o},l){if($A.execMainDispatch("saveProject",l),$A.isArray(l))l.forEach(a=>{o("saveProject",a)});else if($A.isJson(l)){typeof l.project_column!="undefined"&&(o("saveColumn",l.project_column),delete l.project_column);const a=n.cacheProjects.findIndex(({id:i})=>i==l.id);a>-1?n.cacheProjects.splice(a,1,Object.assign({},n.cacheProjects[a],l)):(typeof l.project_user=="undefined"&&(l.project_user=[]),n.cacheProjects.push(l),n.projectTotal++),n.cacheDialogs.some(i=>{if(i.type=="group"&&i.group_type=="project"&&i.group_info.id==l.id){l.name!==void 0&&(i.name=l.name);for(let r in i.group_info)!i.group_info.hasOwnProperty(r)||l[r]===void 0||(i.group_info[r]=l[r])}}),$A.IDBSave("cacheProjects",n.cacheProjects)}},forgetProject({state:n},o){$A.execMainDispatch("forgetProject",o);let l=$A.isArray(o)?o:[o];if(l.some(a=>{const i=n.cacheProjects.findIndex(r=>r.id==a);i>-1&&(n.cacheProjects.splice(i,1),n.projectTotal=Math.max(0,n.projectTotal-1))}),l.includes(n.projectId)){const a=$A.cloneJSON(n.cacheProjects).sort((i,r)=>i.top_at||r.top_at?$A.Date(r.top_at)-$A.Date(i.top_at):r.id-i.id).find(({id:i})=>i&&i!=o);a?$A.goForward({name:"manage-project",params:{projectId:a.id}}):$A.goForward({name:"manage-dashboard"})}$A.IDBSave("cacheProjects",n.cacheProjects)},getProjects({state:n,dispatch:o,getters:l},a){return new Promise(function(i,r){if(n.userId===0){n.cacheProjects=[],r({msg:"Parameter error"});return}$A.isJson(a)||(a={}),typeof a.deleted_at=="undefined"&&(a.deleted_at=n.projectDeletedAt||l.getProjectLastAt),!a.hideLoad&&n.loadProjects++,o("call",{url:"project/lists",data:a}).then(({data:d})=>{n.projectTotal=d.total_all,o("saveProject",d.data),d.current_page===1&&d.deleted_at&&$A.IDBSet("projectDeletedAt",d.deleted_at).then(f=>{n.projectDeletedAt=d.deleted_at,d.deleted_data.some(v=>o("forgetProject",v))}),i(d)}).catch(d=>{console.warn(d),r(d)}).finally(d=>{!a.hideLoad&&n.loadProjects--})})},getProjectOne({state:n,dispatch:o},l){return new Promise(function(a,i){if($A.runNum(l)===0){i({msg:"Parameter error"});return}n.projectLoad++,o("call",{url:"project/one",data:{project_id:l}}).then(r=>{setTimeout(()=>{n.projectLoad--},10),o("saveProject",r.data),a(r)}).catch(r=>{console.warn(r),n.projectLoad--,i(r)})})},archivedProject({state:n,dispatch:o},l){return new Promise(function(a,i){if($A.runNum(l)===0){i({msg:"Parameter error"});return}o("call",{url:"project/archived",data:{project_id:l}}).then(r=>{o("forgetProject",l),a(r)}).catch(r=>{console.warn(r),o("getProjectOne",l).catch(()=>{}),i(r)})})},removeProject({state:n,dispatch:o},l){return new Promise(function(a,i){if($A.runNum(l)===0){i({msg:"Parameter error"});return}o("call",{url:"project/remove",data:{project_id:l}}).then(r=>{o("forgetProject",l),a(r)}).catch(r=>{console.warn(r),o("getProjectOne",l).catch(()=>{}),i(r)})})},exitProject({state:n,dispatch:o},l){return new Promise(function(a,i){if($A.runNum(l)===0){i({msg:"Parameter error"});return}o("call",{url:"project/exit",data:{project_id:l}}).then(r=>{o("forgetProject",l),a(r)}).catch(r=>{console.warn(r),o("getProjectOne",l).catch(()=>{}),i(r)})})},saveColumn({state:n,dispatch:o},l){if($A.execMainDispatch("saveColumn",l),$A.isArray(l))l.forEach(a=>{o("saveColumn",a)});else if($A.isJson(l)){const a=n.cacheColumns.findIndex(({id:i})=>i==l.id);a>-1?n.cacheColumns.splice(a,1,Object.assign({},n.cacheColumns[a],l)):n.cacheColumns.push(l),$A.IDBSave("cacheColumns",n.cacheColumns)}},forgetColumn({state:n,dispatch:o},l){$A.execMainDispatch("forgetColumn",l);let a=$A.isArray(l)?l:[l],i=[];a.some(r=>{const d=n.cacheColumns.findIndex(f=>f.id==r);d>-1&&(i.push(n.cacheColumns[d].project_id),o("getProjectOne",n.cacheColumns[d].project_id).catch(()=>{}),n.cacheColumns.splice(d,1))}),Array.from(new Set(i)).some(r=>o("getProjectOne",r).catch(()=>{})),$A.IDBSave("cacheColumns",n.cacheColumns)},getColumns({state:n,dispatch:o},l){return new Promise(function(a,i){if(n.userId===0){n.cacheColumns=[],i({msg:"Parameter error"});return}n.projectLoad++,o("call",{url:"project/column/lists",data:{project_id:l}}).then(({data:r})=>{n.projectLoad--;const d=r.data.map(({id:f})=>f);if(n.cacheColumns=n.cacheColumns.filter(f=>f.project_id!=l||d.includes(f.id)),o("saveColumn",r.data),a(r.data),n.cacheColumns.filter(f=>f.project_id==l).length===1){const f=n.cacheProjectParameter.find(v=>v.project_id==l)||{};(typeof f.menuInit=="undefined"||f.menuInit===!1)&&o("toggleProjectParameter",{project_id:l,key:{menuInit:!0,menuType:"table"}})}}).catch(r=>{console.warn(r),n.projectLoad--,i(r)})})},removeColumn({state:n,dispatch:o},l){return new Promise(function(a,i){if($A.runNum(l)===0){i({msg:"Parameter error"});return}o("call",{url:"project/column/remove",data:{column_id:l}}).then(r=>{o("forgetColumn",l),a(r)}).catch(r=>{console.warn(r),i(r)})})},saveTask({state:n,dispatch:o},l){if($A.execMainDispatch("saveTask",l),$A.isArray(l))l.forEach(a=>{o("saveTask",a)});else if($A.isJson(l)){l._time=$A.Time(),l.flow_item_name&&l.flow_item_name.indexOf("|")!==-1&&([l.flow_item_status,l.flow_item_name]=l.flow_item_name.split("|")),typeof l.archived_at!="undefined"&&n.cacheTasks.filter(r=>r.parent_id==l.id).some(r=>{o("saveTask",Object.assign(r,{archived_at:l.archived_at,archived_userid:l.archived_userid}))});let a={};typeof l.update_marking!="undefined"&&(a=$A.isJson(l.update_marking)?l.update_marking:{},delete l.update_marking);const i=n.cacheTasks.findIndex(({id:r})=>r==l.id);i>-1?n.cacheTasks.splice(i,1,Object.assign({},n.cacheTasks[i],l)):n.cacheTasks.push(l),(a.is_update_maintask===!0||l.parent_id>0&&n.cacheTasks.findIndex(({id:r})=>r==l.parent_id)===-1)&&o("getTaskOne",l.parent_id).catch(()=>{}),a.is_update_project===!0&&o("getProjectOne",l.project_id).catch(()=>{}),a.is_update_content===!0&&o("getTaskContent",l.id),a.is_update_subtask===!0&&o("getTaskForParent",l.id).catch(()=>{}),n.cacheDialogs.some(r=>{if(r.type=="group"&&r.group_type=="task"&&r.group_info.id==l.id){l.name!==void 0&&(r.name=l.name);for(let d in r.group_info)!r.group_info.hasOwnProperty(d)||l[d]===void 0||(r.group_info[d]=l[d])}}),$A.IDBSave("cacheTasks",n.cacheTasks)}},forgetTask({state:n,dispatch:o},l){$A.execMainDispatch("forgetTask",l);let a=$A.isArray(l)?l:[l],i=[],r=[];a.some(d=>{const f=n.cacheTasks.findIndex(v=>v.id==d);f>-1&&(n.cacheTasks[f].parent_id&&i.push(n.cacheTasks[f].parent_id),r.push(n.cacheTasks[f].project_id),n.cacheTasks.splice(f,1)),n.cacheTasks.filter(v=>v.parent_id==d).some(v=>{let e=n.cacheTasks.findIndex(m=>m.id==v.id);e>-1&&(r.push(v.project_id),n.cacheTasks.splice(e,1))})}),Array.from(new Set(i)).some(d=>o("getTaskOne",d).catch(()=>{})),Array.from(new Set(r)).some(d=>o("getProjectOne",d).catch(()=>{})),a.includes(n.taskId)&&(n.taskId=0),$A.IDBSave("cacheTasks",n.cacheTasks)},increaseTaskMsgNum({state:n},o){if($A.execMainDispatch("increaseTaskMsgNum",o),!$A.execMainCacheJudge(`increaseTaskMsgNum:${o.id}`)&&o.dialog_id){const l=n.cacheTasks.find(({dialog_id:a})=>a===o.dialog_id);l&&l.msg_num++}},increaseMsgReplyNum({state:n,dispatch:o},l){if($A.execMainDispatch("increaseMsgReplyNum",l),!$A.execMainCacheJudge(`increaseMsgReplyNum:${l.id}`)&&l.reply_id>0){const a=n.dialogMsgs.find(({id:i})=>i==l.reply_id);a&&a.reply_num++}},decrementMsgReplyNum({state:n,dispatch:o},l){if($A.execMainDispatch("decrementMsgReplyNum",l),!$A.execMainCacheJudge(`decrementMsgReplyNum:${l.id}`)&&l.reply_id>0){const a=n.dialogMsgs.find(({id:i})=>i==l.reply_id);a&&a.reply_num--}},getTasks({state:n,dispatch:o},l){let a=[];return $A.isArray(l.taskData)&&(a=l.taskData,delete l.taskData),new Promise(function(i,r){if(n.userId===0){n.cacheTasks=[],r({msg:"Parameter error"});return}l.project_id&&n.projectLoad++,o("call",{url:"project/task/lists",data:l}).then(d=>{l.project_id&&n.projectLoad--;const f=d.data;if(a.push(...f.data),f.next_page_url){const v=Object.assign(l,{page:f.current_page+1,taskData:a});f.current_page%5===0?$A.modalWarning({content:"\u6570\u636E\u5DF2\u8D85\u8FC7"+f.to+"\u6761\uFF0C\u662F\u5426\u7EE7\u7EED\u52A0\u8F7D\uFF1F",onOk:()=>{o("getTasks",v).then(i).catch(r)},onCancel:()=>{o("saveTask",a),i()}}):o("getTasks",v).then(i).catch(r)}else o("saveTask",a),i()}).catch(d=>{console.warn(d),r(d),l.project_id&&n.projectLoad--})})},getTaskOne({state:n,dispatch:o},l){return new Promise(function(a,i){if(/^\d+$/.test(l)&&(l={task_id:l}),$A.runNum(l.task_id)===0){i({msg:"Parameter error"});return}if($A.isArray(n.taskOneLoad[l.task_id])){n.taskOneLoad[l.task_id].push({resolve:a,reject:i});return}n.taskOneLoad[l.task_id]=[],o("call",{url:"project/task/one",data:l}).then(r=>{o("saveTask",r.data),a(r),n.taskOneLoad[l.task_id].some(d=>{d.resolve(r)})}).catch(r=>{console.warn(r),i(r),n.taskOneLoad[l.task_id].some(d=>{d.reject(r)})}).finally(r=>{delete n.taskOneLoad[l.task_id]})})},getTaskForDashboard({state:n,dispatch:o,getters:l},a){if(window.__getTaskForDashboard&&clearTimeout(window.__getTaskForDashboard),typeof a=="number"){a>-1&&(window.__getTaskForDashboard=setTimeout(e=>o("getTaskForDashboard",null),a));return}if(n.loadDashboardTasks===!0)return;n.loadDashboardTasks=!0;const i=$A.Time(),{today:r,overdue:d,all:f}=l.dashboardTask,v=r.map(({id:e})=>e);v.push(...d.map(({id:e})=>e)),v.push(...f.map(({id:e})=>e)),v.push(...l.assistTask.map(({id:e})=>e)),o("getTasks",{complete:"no"}).then(e=>{const{today:m,overdue:c,all:p}=l.dashboardTask,_=m.filter(g=>g._time>=i).map(({id:g})=>g);_.push(...c.filter(g=>g._time>=i).map(({id:g})=>g)),_.push(...p.filter(g=>g._time>=i).map(({id:g})=>g)),_.push(...l.assistTask.filter(g=>g._time>=i).map(({id:g})=>g)),o("forgetTask",v.filter(g=>_.indexOf(g)==-1))}).finally(e=>{n.loadDashboardTasks=!1})},getTaskForProject({state:n,dispatch:o},l){return new Promise(function(a,i){const r=$A.Time(),d=n.cacheTasks.filter(v=>v.project_id==l).map(({id:v})=>v),f=()=>{const v=n.cacheTasks.filter(e=>e.project_id==l&&e._time>=r).map(({id:e})=>e);o("forgetTask",d.filter(e=>v.indexOf(e)==-1))};o("getTasks",{project_id:l}).then(()=>{f(),a()}).catch(()=>{f(),i()})})},getTaskForParent({state:n,dispatch:o},l){return new Promise(function(a,i){const r=$A.Time(),d=n.cacheTasks.filter(v=>v.parent_id==l).map(({id:v})=>v);let f=()=>{const v=n.cacheTasks.filter(e=>e.parent_id==l&&e._time>=r).map(({id:e})=>e);o("forgetTask",d.filter(e=>v.indexOf(e)==-1))};o("getTasks",{parent_id:l,archived:"all"}).then(()=>{f(),a()}).catch(()=>{f(),i()})})},removeTask({state:n,dispatch:o},l){return new Promise(function(a,i){if($A.runNum(l.task_id)===0){i({msg:"Parameter error"});return}o("setLoad",{key:`task-${l.task_id}`,delay:300}),o("call",{url:"project/task/remove",data:l}).then(r=>{o("forgetTask",l.task_id),a(r)}).catch(r=>{console.warn(r),o("getTaskOne",l.task_id).catch(()=>{}),i(r)}).finally(r=>{o("cancelLoad",`task-${l.task_id}`)})})},archivedTask({state:n,dispatch:o},l){return new Promise(function(a,i){if(/^\d+$/.test(l)&&(l={task_id:l}),$A.runNum(l.task_id)===0){i({msg:"Parameter error"});return}o("setLoad",{key:`task-${l.task_id}`,delay:300}),o("call",{url:"project/task/archived",data:l}).then(r=>{o("saveTask",r.data),a(r)}).catch(r=>{console.warn(r),o("getTaskOne",l.task_id).catch(()=>{}),i(r)}).finally(r=>{o("cancelLoad",`task-${l.task_id}`)})})},getTaskContent({state:n,dispatch:o},l){$A.runNum(l)!==0&&o("call",{url:"project/task/content",data:{task_id:l}}).then(a=>{o("saveTaskContent",a.data)}).catch(a=>{console.warn(a)})},saveTaskContent({state:n,dispatch:o},l){if($A.execMainDispatch("saveTaskContent",l),$A.isArray(l))l.forEach(a=>{o("saveTaskContent",a)});else if($A.isJson(l)){const a=n.taskContents.findIndex(({task_id:i})=>i==l.task_id);a>-1?n.taskContents.splice(a,1,Object.assign({},n.taskContents[a],l)):n.taskContents.push(l)}},getTaskFiles({state:n,dispatch:o},l){$A.runNum(l)!==0&&o("call",{url:"project/task/files",data:{task_id:l}}).then(a=>{a.data.forEach(i=>{const r=n.taskFiles.findIndex(({id:d})=>d==i.id);r>-1?n.taskFiles.splice(r,1,i):n.taskFiles.push(i)}),o("saveTask",{id:l,file_num:a.data.length})}).catch(a=>{console.warn(a)})},forgetTaskFile({state:n,dispatch:o},l){($A.isArray(l)?l:[l]).some(i=>{const r=n.taskFiles.findIndex(d=>d.id==i);r>-1&&n.taskFiles.splice(r,1)})},openTask({state:n,dispatch:o},l){let a=l;$A.isJson(l)&&(l.parent_id>0?a=l.parent_id:a=l.id),n.taskId=a,a>0&&o("getTaskOne",{task_id:a,archived:"all"}).then(()=>{o("getTaskContent",a),o("getTaskFiles",a),o("getTaskForParent",a).catch(()=>{}),o("saveTaskBrowse",a)}).catch(({msg:i})=>{$A.modalWarning({content:i,onOk:()=>{n.taskId=0}})})},taskAdd({state:n,dispatch:o},l){return new Promise(function(a,i){const r=$A.cloneJSON($A.date2string(l));$A.isArray(r.column_id)&&(r.column_id=r.column_id.find(d=>d)),o("call",{url:"project/task/add",data:r,method:"post"}).then(d=>{o("addTaskSuccess",d.data),a(d)}).catch(d=>{console.warn(d),i(d)})})},taskAddSub({dispatch:n},o){return new Promise(function(l,a){n("call",{url:"project/task/addsub",data:o}).then(i=>{n("addTaskSuccess",i.data),l(i)}).catch(i=>{console.warn(i),a(i)})})},addTaskSuccess({dispatch:n},o){typeof o.new_column!="undefined"&&(n("saveColumn",o.new_column),delete o.new_column),n("saveTask",o),n("getProjectOne",o.project_id).catch(()=>{})},taskUpdate({state:n,dispatch:o},l){return new Promise(function(a,i){o("taskBeforeUpdate",l).then(({post:r})=>{o("setLoad",{key:`task-${r.task_id}`,delay:300}),o("call",{url:"project/task/update",data:r,method:"post"}).then(d=>{o("saveTask",d.data),a(d)}).catch(d=>{console.warn(d),o("getTaskOne",r.task_id).catch(()=>{}),i(d)}).finally(d=>{o("cancelLoad",`task-${r.task_id}`)})}).catch(i)})},taskBeforeUpdate({state:n,dispatch:o},l){return new Promise(function(a,i){let r=$A.cloneJSON($A.date2string(l)),d="\u6E29\u99A8\u63D0\u793A",f=null;if(typeof r.times!="undefined"){l.times[0]===!1&&(f="\u4F60\u786E\u5B9A\u8981\u53D6\u6D88\u4EFB\u52A1\u65F6\u95F4\u5417\uFF1F");const v=n.cacheTasks.find(({id:e})=>e==r.task_id);d=v.parent_id>0?"\u66F4\u65B0\u5B50\u4EFB\u52A1":"\u66F4\u65B0\u4E3B\u4EFB\u52A1",v&&(v.parent_id>0?r.times[0]&&n.cacheTasks.some(e=>{if(e.id!=v.parent_id)return!1;if(!e.end_at)return f="\u4E3B\u4EFB\u52A1\u6CA1\u6709\u8BBE\u7F6E\u65F6\u95F4\uFF0C\u8BBE\u7F6E\u5B50\u4EFB\u52A1\u5C06\u540C\u6B65\u8BBE\u7F6E\u4E3B\u4EFB\u52A1",!0;let m=$A.Date(r.times[0],!0),c=$A.Date(r.times[1],!0),p=$A.Date(e.start_at,!0),_=$A.Date(e.end_at,!0);if(m_)return f="\u65B0\u8BBE\u7F6E\u7684\u5B50\u4EFB\u52A1\u7ED3\u675F\u65F6\u95F4\u5728\u4E3B\u4EFB\u52A1\u65F6\u95F4\u4E4B\u5916\uFF0C\u4FEE\u6539\u540E\u5C06\u540C\u6B65\u4FEE\u6539\u4E3B\u4EFB\u52A1",!0}):n.cacheTasks.some(e=>{if(e.parent_id!=v.id||!e.end_at)return!1;let m=$A.Date(r.times[0],!0),c=$A.Date(r.times[1],!0),p=$A.Date(v.start_at,!0),_=$A.Date(v.end_at,!0),g=$A.Date(e.start_at,!0),y=$A.Date(e.end_at,!0);if(p==g&&_==y)return!1;if(!r.times[0])return f=`\u5B50\u4EFB\u52A1\uFF08${e.name}\uFF09\u5DF2\u8BBE\u7F6E\u65F6\u95F4\uFF0C\u6E05\u9664\u4E3B\u4EFB\u52A1\u65F6\u95F4\u540E\u5C06\u540C\u6B65\u6E05\u9664\u5B50\u4EFB\u52A1\u7684\u65F6\u95F4`,!0;if(m>g)return f=`\u65B0\u8BBE\u7F6E\u7684\u5F00\u59CB\u65F6\u95F4\u5728\u5B50\u4EFB\u52A1\uFF08${e.name}\uFF09\u65F6\u95F4\u4E4B\u5185\uFF0C\u4FEE\u6539\u540E\u5C06\u540C\u6B65\u4FEE\u6539\u5B50\u4EFB\u52A1`,!0;if(c{a({confirm:!0,post:r})},onCancel:()=>{i({msg:!1})}})})},getTaskFlow({state:n,dispatch:o},l){return new Promise(function(a,i){o("call",{url:"project/task/flow",data:{task_id:l}}).then(r=>{let d=n.cacheTasks.find(({id:e})=>e==l),{data:f}=r;f.turns.some(e=>{const m=n.taskFlowItems.findIndex(({id:c})=>c==e.id);m>-1?n.taskFlowItems.splice(m,1,e):n.taskFlowItems.push(e),d&&d.flow_item_id==e.id&&d.flow_item_name!=e.name&&n.cacheTasks.filter(({flow_item_id:c})=>c==e.id).some(c=>{o("saveTask",{id:c.id,flow_item_name:`${e.status}|${e.name}`})})}),delete f.turns;const v=n.taskFlows.findIndex(({task_id:e})=>e==f.task_id);v>-1?n.taskFlows.splice(v,1,f):n.taskFlows.push(f),a(r)}).catch(r=>{console.warn(r),i(r)})})},getTaskPriority({state:n,dispatch:o}){return new Promise(function(l,a){o("call",{url:"system/priority"}).then(i=>{n.taskPriority=i.data,l(i)}).catch(i=>{console.warn(i),a(i)})})},getColumnTemplate({state:n,dispatch:o}){return new Promise(function(l,a){o("call",{url:"system/column/template"}).then(i=>{n.columnTemplate=i.data,l(i)}).catch(i=>{console.warn(i),a(i)})})},saveTaskCompleteTemp({state:n},o){/^\d+$/.test(o)&&!n.taskCompleteTemps.includes(o)&&n.taskCompleteTemps.push(o)},forgetTaskCompleteTemp({state:n},o){o===!0?n.taskCompleteTemps=[]:/^\d+$/.test(o)&&(n.taskCompleteTemps=n.taskCompleteTemps.filter(l=>l!=o))},saveTaskBrowse({state:n},o){const l=n.cacheTaskBrowse.findIndex(({id:a})=>a==o);l>-1&&n.cacheTaskBrowse.splice(l,1),n.cacheTaskBrowse.unshift({id:o,userid:n.userId}),n.cacheTaskBrowse.length>200&&n.cacheTaskBrowse.splice(200),$A.IDBSave("cacheTaskBrowse",n.cacheTaskBrowse)},saveDialog({state:n,dispatch:o},l){if($A.execMainDispatch("saveDialog",l),$A.isArray(l))l.forEach(a=>{o("saveDialog",a)});else if($A.isJson(l)){const a=n.cacheDialogs.findIndex(({id:i})=>i==l.id);if(a>-1){const i=n.cacheDialogs[a],r=l.user_ms,d=i.user_ms||0;r{o("updateDialogLastMsg",a)});else if($A.isJson(l))if(n.cacheDialogs.findIndex(({id:i})=>i==l.dialog_id)>-1){const i={id:l.dialog_id,last_msg:l,last_at:$A.formatDate("Y-m-d H:i:s")};l.mtype=="tag"&&(i.has_tag=!0),l.mtype=="image"&&(i.has_image=!0),l.mtype=="file"&&(i.has_file=!0),l.link&&(i.has_link=!0),o("saveDialog",i)}else o("getDialogOne",l.dialog_id).catch(()=>{})},getDialogs({state:n,dispatch:o,getters:l},a){return new Promise(function(i,r){if(n.userId===0){n.cacheDialogs=[],r({msg:"Parameter error"});return}$A.isJson(a)||(a={}),typeof a.page=="undefined"&&(a.page=1),typeof a.pagesize=="undefined"&&(a.pagesize=20),typeof a.updated_at=="undefined"&&(a.updated_at=n.dialogUpdatedAt),typeof a.deleted_at=="undefined"&&(a.deleted_at=n.dialogDeletedAt||l.getDialogLastAt),!a.hideLoad&&n.loadDialogs++,o("call",{url:"dialog/lists",data:a}).then(({data:d})=>{o("saveDialog",d.data),d.current_page===1&&(d.deleted_at&&$A.IDBSet("dialogDeletedAt",d.deleted_at).then(f=>{n.dialogDeletedAt=d.deleted_at,d.deleted_data.some(v=>o("forgetDialog",v))}),$A.IDBSet("dialogUpdatedAt",n.dialogUpdatedAt=$A.formatDate()).then(f=>{})),d.next_page_url&&d.current_page<5?(a.page++,o("getDialogs",a).then(i).catch(r)):i()}).catch(d=>{console.warn(d),r(d)}).finally(d=>{!a.hideLoad&&n.loadDialogs--})})},getDialogOne({state:n,dispatch:o},l){return new Promise(function(a,i){if($A.runNum(l)===0){i({msg:"Parameter error"});return}o("call",{url:"dialog/one",data:{dialog_id:l}}).then(r=>{o("saveDialog",r.data),a(r)}).catch(r=>{console.warn(r),i(r)})})},getDialogTodo({state:n,dispatch:o},l){o("call",{url:"dialog/todo",data:{dialog_id:l}}).then(({data:a})=>{$A.arrayLength(a)>0?(o("saveDialog",{id:l,todo_num:$A.arrayLength(a)}),n.dialogTodos=n.dialogTodos.filter(i=>i.dialog_id!=l),o("saveDialogTodo",a)):o("saveDialog",{id:l,todo_num:0})}).catch(console.warn)},openDialog({state:n,dispatch:o},l){return new Promise(a=>{let i;$A.isJson(l)&&(i=l.search_msg_id,l=l.dialog_id),requestAnimationFrame(r=>{n.dialogSearchMsgId=/^\d+$/.test(i)?i:0,n.dialogId=/^\d+$/.test(l)?l:0,a()})})},openDialogUserid({state:n,dispatch:o},l){return new Promise(function(a,i){const r=n.cacheDialogs.find(d=>d.type!=="user"||!d.dialog_user?!1:d.dialog_user.userid===l);if(r){o("openDialog",r.id),a(r);return}o("showSpinner",600),o("call",{url:"dialog/open/user",data:{userid:l}}).then(({data:d})=>{o("saveDialog",d),o("openDialog",d.id),a(d)}).catch(d=>{console.warn(d),i(d)}).finally(d=>{o("hiddenSpinner")})})},forgetDialog({state:n},o){$A.execMainDispatch("forgetDialog",o);let l=$A.isArray(o)?o:[o];l.some(a=>{const i=n.cacheDialogs.findIndex(r=>r.id==a);i>-1&&n.cacheDialogs.splice(i,1)}),l.includes(n.dialogId)&&(n.dialogId=0),$A.IDBSave("cacheDialogs",n.cacheDialogs)},saveInDialog({state:n,dispatch:o},l){$A.execMainDispatch("saveInDialog",l);const a=n.dialogIns.findIndex(d=>d.uid==l.uid);a>-1?n.dialogIns.splice(a,1,Object.assign({},n.dialogIns[a],l)):n.dialogIns.push(l);const i=1500,r=30;if(n.dialogHistory=n.dialogHistory.filter(d=>d!=l.dialog_id),n.dialogHistory.push(l.dialog_id),n.dialogMsgs.length>i&&n.dialogHistory.length>r){const d=n.dialogHistory.slice().reverse(),f=[],v=[];d.forEach(e=>{f.lengthm.dialog_id==e)>-1?f.push(e):v.push(e)}),v.length>0&&(n.dialogMsgs=n.dialogMsgs.filter(e=>!v.includes(e.dialog_id)),$A.IDBSave("dialogMsgs",n.dialogMsgs,600)),n.dialogHistory=f}},forgetInDialog({state:n,dispatch:o},l){$A.execMainDispatch("forgetInDialog",l);const a=n.dialogIns.findIndex(i=>i.uid==l);a>-1&&n.dialogIns.splice(a,1)},closeDialog({state:n,dispatch:o},l){if($A.execMainDispatch("closeDialog",l),!/^\d+$/.test(l))return;const a=50,i=n.dialogMsgs.filter(r=>r.dialog_id==l);if(i.length>a){const r=i.sort((d,f)=>f.id-d.id).splice(a).map(d=>d.id);n.dialogMsgs=n.dialogMsgs.filter(d=>!r.includes(d.id)),$A.IDBSave("dialogMsgs",n.dialogMsgs,600)}},saveDialogTodo({state:n,dispatch:o},l){if($A.execMainDispatch("saveDialogTodo",l),$A.isArray(l))l.forEach(a=>{o("saveDialogTodo",a)});else if($A.isJson(l)){const a=n.dialogTodos.findIndex(i=>i.id==l.id);a>-1?n.dialogTodos.splice(a,1,Object.assign({},n.dialogTodos[a],l)):n.dialogTodos.push(l)}},forgetDialogTodoForMsgId({state:n,dispatch:o},l){$A.execMainDispatch("forgetDialogTodoForMsgId",l);const a=n.dialogTodos.findIndex(i=>i.msg_id==l);a>-1&&n.dialogTodos.splice(a,1)},saveDialogInputCache({state:n},o){const l=n.dialogInputCache.findIndex(a=>a.key==o.key);l>-1?n.dialogInputCache.splice(l,1,o):n.dialogInputCache.push(o),$A.IDBSave("dialogInputCache",n.dialogInputCache,600)},saveDialogMsg({state:n,dispatch:o},l){if($A.execMainDispatch("saveDialogMsg",l),$A.isArray(l))l.forEach(a=>{o("saveDialogMsg",a)});else if($A.isJson(l)){const a=n.dialogMsgs.findIndex(({id:r})=>r==l.id);l=Object.assign({},n.dialogMsgs[a],l),a>-1?n.dialogMsgs.splice(a,1,l):n.dialogMsgs.push(l),$A.IDBSave("dialogMsgs",n.dialogMsgs,600);const i=n.cacheDialogs.find(({id:r,last_msg:d})=>r==l.dialog_id&&d&&d.id===l.id);i&&o("saveDialog",{id:l.dialog_id,last_msg:Object.assign({},i.last_msg,l)})}},forgetDialogMsg({state:n,dispatch:o},l){$A.execMainDispatch("forgetDialogMsg",l),($A.isArray(l)?l:[l]).some(i=>{const r=n.dialogMsgs.findIndex(d=>d.id==i);r>-1&&(o("decrementMsgReplyNum",n.dialogMsgs[r]),Xi.Store.set("audioSubscribe",i),n.dialogMsgs.splice(r,1),$A.IDBSave("dialogMsgs",n.dialogMsgs,600))}),o("forgetDialogTodoForMsgId",l)},getDialogMsgs({state:n,dispatch:o,getters:l},a){return new Promise((i,r)=>{let d=c=>{},f=c=>{},v=!1,e=!1;typeof a.save_before!="undefined"&&(d=typeof a.save_before=="function"?a.save_before:c=>{},delete a.save_before),typeof a.save_after!="undefined"&&(f=typeof a.save_after=="function"?a.save_after:c=>{},delete a.save_after),typeof a.clear_before!="undefined"&&(v=typeof a.clear_before=="boolean"?a.clear_before:!1,delete a.clear_before),typeof a.spinner!="undefined"&&(e=a.spinner,delete a.spinner);const m=`msg::${a.dialog_id}-${a.msg_id}-${a.msg_type||""}`;if(l.isLoad(m)){r({msg:"Loading"});return}o("setLoad",m),v&&(n.dialogMsgs=n.dialogMsgs.filter(({dialog_id:c})=>c!==a.dialog_id),$A.IDBSave("dialogMsgs",n.dialogMsgs,600)),o("call",{url:"dialog/msg/list",data:a,spinner:e,complete:c=>o("cancelLoad",m)}).then(c=>{d();const p=c.data;if($A.isJson(p.dialog)){setTimeout(g=>o("saveDialog",p.dialog),300);const _=p.list.map(({id:g})=>g);n.dialogMsgs=n.dialogMsgs.filter(g=>g.dialog_id!=a.dialog_id||_.includes(g.id)||$A.Time(g.created_at)>=p.time),$A.IDBSave("dialogMsgs",n.dialogMsgs,600)}$A.isArray(p.todo)&&(n.dialogTodos=n.dialogTodos.filter(_=>_.dialog_id!=a.dialog_id),o("saveDialogTodo",p.todo)),o("saveDialogMsg",p.list),i(c),f()}).catch(c=>{console.warn(c),r(c)}).finally(c=>{if(a.prev_id){const p=n.dialogMsgs.find(({prev_id:_})=>_==a.prev_id);p&&(p.prev_id=0)}if(a.next_id){const p=n.dialogMsgs.find(({next_id:_})=>_==a.next_id);p&&(p.next_id=0)}})})},dialogMsgRead({state:n,dispatch:o},l){if($A.isJson(l)){if(l.userid==n.userId||l.read_at)return;l.read_at=$A.formatDate(),n.wsReadWaitData[l.id]=l.id}clearTimeout(n.wsReadTimeout),n.wsReadTimeout=setTimeout(a=>{const i=Object.values(n.wsReadWaitData);n.wsReadWaitData={},i.length!==0&&o("call",{url:"dialog/msg/read",data:{id:i.join(",")}}).then(({data:r})=>{o("saveDialog",r)}).catch(r=>{i.some(d=>{n.wsReadWaitData[d]=d})})},50)},dialogMsgMark({state:n,dispatch:o},l){return new Promise((a,i)=>{o("call",{url:"dialog/msg/mark",data:l}).then(r=>{o("saveDialog",r.data),a(r)}).catch(r=>{i(r)})})},setLoad({state:n,dispatch:o},l){if($A.isJson(l)){setTimeout(i=>{o("setLoad",l.key)},l.delay||0);return}const a=n.loads.find(i=>i.key==l);a?a.num++:n.loads.push({key:l,num:1})},cancelLoad({state:n},o){const l=n.loads.find(a=>a.key==o);l?l.num--:n.loads.push({key:o,num:-1})},showSpinner({state:n},o){const l=$A.randomString(6);n.floatSpinnerTimer.push({id:l,timer:setTimeout(a=>{n.floatSpinnerTimer=n.floatSpinnerTimer.filter(i=>i.id!==l),n.floatSpinnerLoad++},typeof o=="number"?o:0)})},hiddenSpinner({state:n}){const o=n.floatSpinnerTimer.shift();o?clearTimeout(o.timer):n.floatSpinnerLoad--},websocketConnection({state:n,dispatch:o,commit:l}){if(clearTimeout(n.wsTimeout),n.ws&&(n.ws.close(),n.ws=null),n.userId===0)return;let a=$A.apiUrl("../ws");a=a.replace("https://","wss://"),a=a.replace("http://","ws://"),a+="?action=web&token="+n.userToken;const i=$A.openLog,r=$A.randomString(16);n.wsRandom=r,n.ws=new WebSocket(a),n.ws.onopen=d=>{i&&console.log("[WS] Open",d,$A.formatDate()),n.wsOpenNum++},n.ws.onclose=d=>{i&&console.log("[WS] Close",d,$A.formatDate()),n.ws=null,clearTimeout(n.wsTimeout),n.wsTimeout=setTimeout(()=>{r===n.wsRandom&&o("websocketConnection")},3e3)},n.ws.onerror=d=>{i&&console.log("[WS] Error",d,$A.formatDate()),n.ws=null,clearTimeout(n.wsTimeout),n.wsTimeout=setTimeout(()=>{r===n.wsRandom&&o("websocketConnection")},3e3)},n.ws.onmessage=d=>{i&&console.log("[WS] Message",d);const f=$A.formatMsgBasic($A.jsonParse(d.data)),{type:v,msgId:e}=f;switch(v){case"open":$A.setSessionStorage("userWsFd",f.data.fd);break;case"receipt":typeof n.wsCall[e]=="function"&&n.wsCall[e](f.body,!0),delete n.wsCall[e];break;case"line":o("saveUserOnlineStatus",f.data);break;default:switch(e&&o("websocketSend",{type:"receipt",msgId:e}).catch(m=>{}),n.wsMsg=f,Object.values(n.wsListener).forEach(m=>{if(typeof m=="function")try{m(f)}catch(c){i&&console.log("[WS] Callerr",c)}}),v){case"dialog":(function(m){const{mode:c,silence:p,data:_}=m,{dialog_id:g}=_;switch(c){case"delete":if(o("forgetDialogMsg",_.id),n.cacheDialogs.find(({id:b})=>b==g)){const b={id:g,last_at:_.last_msg&&_.last_msg.created_at,last_msg:_.last_msg};_.update_read?o("call",{url:"dialog/msg/unread",data:{dialog_id:g}}).then(({data:E})=>{o("saveDialog",Object.assign(b,E))}).catch(()=>{}):o("saveDialog",b)}break;case"add":case"chat":if(!n.dialogMsgs.find(({id:b})=>b==_.id)){if(o("increaseTaskMsgNum",_),o("increaseMsgReplyNum",_),c==="chat")return;if(_.userid!==n.userId){const b=n.cacheDialogs.find(({id:E})=>E==g);if(b){const E={id:g,unread:b.unread+1,mention:b.mention,user_at:_.user_at,user_ms:_.user_ms};_.mention&&E.mention++,o("saveDialog",E)}}p||Xi.Store.set("dialogMsgPush",_)}o("saveDialogMsg",_),o("updateDialogLastMsg",_);break;case"update":case"readed":if(n.dialogMsgs.find(({id:b})=>b==_.id))o("saveDialogMsg",_),typeof _.todo!="undefined"&&o("getDialogTodo",g);else if(c==="readed"){let b=0;const E=setInterval(T=>{b>6&&clearInterval(E),n.dialogMsgs.find(({id:w})=>w==_.id)&&(clearInterval(E),o("saveDialogMsg",_)),b++},500)}break;case"groupAdd":case"groupJoin":o("getDialogOne",_.id).catch(()=>{});break;case"groupUpdate":n.cacheDialogs.find(({id:b})=>b==_.id)&&o("saveDialog",_);break;case"groupExit":case"groupDelete":o("forgetDialog",_.id);break}})(f);break;case"project":(function(m){const{action:c,data:p}=m;switch(c){case"add":case"update":o("saveProject",p);break;case"detail":o("getProjectOne",p.id).catch(()=>{}),o("getTaskForProject",p.id).catch(()=>{});break;case"archived":case"delete":o("forgetProject",p.id);break;case"sort":o("getTaskForProject",p.id).catch(()=>{});break}})(f);break;case"projectColumn":(function(m){const{action:c,data:p}=m;switch(c){case"add":case"update":o("saveColumn",p);break;case"delete":o("forgetColumn",p.id);break}})(f);break;case"projectTask":(function(m){const{action:c,data:p}=m;switch(c){case"add":case"restore":o("addTaskSuccess",p);break;case"update":o("saveTask",p);break;case"dialog":o("saveTask",p),o("getDialogOne",p.dialog_id).catch(()=>{});break;case"upload":o("getTaskFiles",p.task_id);break;case"filedelete":o("forgetTaskFile",p.id);break;case"delete":o("forgetTask",p.id);break}})(f);break;case"file":(function(m){const{action:c,data:p}=m;switch(c){case"add":case"update":o("saveFile",p);break;case"delete":o("forgetFile",p.id);break}})(f);break}break}}},websocketSend({state:n},o){return new Promise((l,a)=>{var v;if(!$A.isJson(o)){a();return}const{type:i,data:r,callback:d}=o;let f;if(!n.ws){typeof d=="function"&&d(null,!1),a();return}typeof d=="function"&&(f=$A.randomString(16),n.wsCall[f]=d);try{(v=n.ws)==null||v.send(JSON.stringify({type:i,msgId:f,data:r})),l()}catch(e){typeof d=="function"&&d(null,!1),a(e)}})},websocketPath({state:n,dispatch:o},l){clearTimeout(n.wsPathTimeout),n.wsPathValue=l,n.wsPathTimeout=setTimeout(()=>{n.wsPathValue==l&&o("websocketSend",{type:"path",data:{path:l}}).catch(a=>{})},1e3)},websocketMsgListener({state:n},o){const{name:l,callback:a}=o;typeof a=="function"?n.wsListener[l]=a:n.wsListener[l]&&delete n.wsListener[l]},websocketClose({state:n}){n.ws&&(n.ws.close(),n.ws=null)}},EB={};Ht.use(Hp);var j0=new Hp.Store({state:xB,getters:wB,mutations:EB,actions:SB}),DB={computed:{...qi(["windowWidth","windowHeight","windowActive","windowScrollY","windowLarge","windowSmall","userId","userToken"])}};var OB=function(){var n=this,o=n.$createElement;return n._self._c,n._e()},kB=[];const TB={name:"PageTitle",props:{title:{type:[String,Number],default:""}},data(){return{pagePath:""}},activated(){this.updateTitle()},watch:{title:{handler(){this.initTitle()},immediate:!0}},methods:{initTitle(){this.pagePath=this.$route.path,this.updateTitle()},updateTitle(){if(this.pagePath=="")return;let n=this.title,{title:o}=document;n!==o&&this.pagePath===this.$route.path&&this.setPageTile(n)},setPageTile(n){document.title=n}}},V0={};var MB=lr(TB,OB,kB,!1,PB,null,null,null);function PB(n){for(let o in V0)this[o]=V0[o]}var IB=function(){return MB.exports}(),$B=function(){var n=this,o=n.$createElement,l=n._self._c||o;return l("ETooltip",{attrs:{disabled:n.windowSmall||n.$isEEUiApp||n.content=="",content:n.content}},[n.type==="svg"?l("svg",{staticClass:"common-loading",attrs:{viewBox:"25 25 50 50"}},[l("circle",{staticClass:"common-path",attrs:{cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"5","stroke-miterlimit":"10"}})]):l("div",{staticClass:"common-pureing"})])},AB=[];const RB={name:"Loading",props:{type:{type:String,default:"svg"},content:{type:[String,Number],default:""}}},z0={};var LB=lr(RB,$B,AB,!1,NB,null,null,null);function NB(n){for(let o in z0)this[o]=z0[o]}var FB=function(){return LB.exports}(),BB=function(){var n=this,o=n.$createElement,l=n._self._c||o;return l("ETooltip",{attrs:{content:n.tipText,placement:n.placement,effect:n.tooltipTheme,delay:n.delay,disabled:n.windowSmall||n.$isEEUiApp||!n.showTooltip||n.disabled,"max-width":n.tooltipMaxWidth,transfer:""}},[l("span",{ref:"content",staticClass:"common-auto-tip",on:{mouseenter:n.handleTooltipIn,click:n.onClick}},[n.existSlot?[n._t("default")]:[n._v(n._s(n.content))]],2)])},jB=[];const VB={name:"AutoTip",props:{content:{type:[String,Number],default:""},placement:{default:"bottom"},tooltipTheme:{default:"dark"},tooltipMaxWidth:{type:[String,Number],default:300},delay:{type:Number,default:100},disabled:{type:Boolean,default:!1}},data(){return{showTooltip:!1,tooltipContent:""}},computed:{tipText(){const{content:n,tooltipContent:o}=this;return n||o||""},existSlot(){return!(typeof this.$slots.default=="undefined"||this.$slots.default.length<1)}},methods:{handleTooltipIn(){const n=this.$refs.content;let o=document.createRange();o.setStart(n,0),o.setEnd(n,n.childNodes.length);const l=o.getBoundingClientRect().width;if(this.showTooltip=Math.floor(l)>Math.floor(n.offsetWidth),this.showTooltip&&this.existSlot){const a=this.$slots.default.map(i=>i.text?i.text:i.elm.innerText?i.elm.innerText:"");this.tooltipContent=a.join("")}o=null},onClick(n){this.$emit("on-click",n)}}},W0={};var zB=lr(VB,BB,jB,!1,WB,null,null,null);function WB(n){for(let o in W0)this[o]=W0[o]}var HB=function(){return zB.exports}(),UB=function(){var n=this,o=n.$createElement,l=n._self._c||o;return l("div",{staticClass:"common-tag-input",class:{focus:n.isFocus},on:{paste:function(a){return n.pasteText(a)},click:n.focus}},[n._l(n.disSource,function(a,i){return l("div",{staticClass:"tags-item"},[l("span",{staticClass:"tags-content",on:{click:function(r){r.stopPropagation()}}},[n._v(n._s(a))]),l("span",{staticClass:"tags-del",on:{click:function(r){return r.stopPropagation(),n.delTag(i)}}},[n._v("\xD7")])])}),l("textarea",{directives:[{name:"model",rawName:"v-model",value:n.content,expression:"content"}],ref:"myTextarea",staticClass:"tags-input",style:{minWidth:n.minWidth+"px"},attrs:{placeholder:n.tis||n.placeholderText,enterkeyhint:n.enterkeyhint,disabled:n.disabled,readonly:n.readonly},domProps:{value:n.content},on:{keydown:[function(a){return!a.type.indexOf("key")&&n._k(a.keyCode,"enter",13,a.key,"Enter")?null:n.downEnter(a)},function(a){return!a.type.indexOf("key")&&n._k(a.keyCode,"delete",[8,46],a.key,["Backspace","Delete","Del"])?null:n.delTag(!1)}],keyup:n.onKeyup,focus:n.onFocus,blur:n.onBlur,input:function(a){a.target.composing||(n.content=a.target.value)}}}),n._v(" "),n.showPlaceholder||n.tis!==""?l("span",{ref:"myPlaceholder",staticClass:"tags-placeholder"},[n._v(n._s(n.tis||n.placeholderText))]):n._e()],2)},KB=[];const GB={name:"TagInput",props:{value:{default:""},cut:{default:","},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},placeholder:{default:""},max:{default:0},enterkeyhint:{type:String,default:""}},data(){var o;const n=[];return(o=this.value)==null||o.split(",").forEach(l=>{l&&n.push(l)}),{minWidth:80,tis:"",tisTimeout:null,showPlaceholder:!0,content:"",disSource:n,isFocus:!1}},mounted(){this.wayMinWidth()},watch:{placeholder(){this.wayMinWidth()},value(n){let o=[];n==null||n.split(",").forEach(l=>{l&&o.push(l)}),this.disSource=o},disSource(n){let o="";n.forEach(l=>{o!=""&&(o+=this.cut),o+=l}),this.$emit("input",o),this.$emit("on-change")}},computed:{placeholderText(){return this.disSource.length>0?"":this.placeholder}},methods:{focus(n){const o=this.$refs.myTextarea;o.focus(n);const{cursor:l}=n||{};if(l){const a=o.value.length;switch(l){case"start":o.setSelectionRange(0,0);break;case"end":o.setSelectionRange(a,a);break;default:o.setSelectionRange(0,a)}}},wayMinWidth(){this.showPlaceholder=!0,this.$nextTick(()=>{this.$refs.myPlaceholder&&(this.minWidth=Math.max(this.minWidth,this.$refs.myPlaceholder.offsetWidth)),setTimeout(()=>{try{this.minWidth=Math.max(this.minWidth,this.$refs.myPlaceholder.offsetWidth),this.showPlaceholder=!1}catch{}$A(this.$refs.myPlaceholder).is(":visible")||this.wayMinWidth()},500)})},pasteText(n){n.preventDefault();let o=(n.clipboardData||window.clipboardData).getData("text");this.addTag(!1,o)},downEnter(n){n.preventDefault()},onFocus(n){this.isFocus=!0,this.$emit("on-focus",n)},onBlur(n){this.isFocus=!1,this.addTag(!1,this.content),this.$emit("on-blur",n)},onKeyup(n){this.addTag(n,this.content),this.$emit("on-keyup",n),n.keyCode===13&&this.$nextTick(()=>{this.$emit("on-enter",n)})},addTag(n,o){if(n===!1||n.keyCode===13){o.trim()!=""&&this.disSource.indexOf(o.trim())===-1&&this.disSource.push(o.trim()),this.content="";return}if(this.max>0&&this.disSource.length>=this.max){this.content="",this.tis="\u6700\u591A\u53EA\u80FD\u6DFB\u52A0"+this.max+"\u4E2A",clearInterval(this.tisTimeout),this.tisTimeout=setTimeout(()=>{this.tis=""},2e3);return}let l=o.trim(),a=l.length-this.cut.length;l!=""&&l.substring(a)===this.cut&&(l=l.substring(0,a),l.trim()!=""&&this.disSource.indexOf(l.trim())===-1&&this.disSource.push(l.trim()),this.content="")},delTag(n){if(n===!1){if(this.content!=="")return;n=this.disSource.length-1}this.disSource.splice(n,1),this.focus()}}},H0={};var YB=lr(GB,UB,KB,!1,XB,null,null,null);function XB(n){for(let o in H0)this[o]=H0[o]}var JB=function(){return YB.exports}(),LS={exports:{}};(function(n,o){(function(l,a){n.exports=a()})(Ki,function(){function l(){var g=!1;return typeof navigator!="undefined"&&(g=navigator.userAgent.match(/Trident/)||navigator.userAgent.match(/Edge/)),g}var a=0,i=["ms","moz","webkit","o"];typeof window=="undefined"&&(Ki.window={});for(var r=0;r diff --git a/public/js/build/checkin.53f513f9.js b/public/js/build/checkin.0d786328.js similarity index 99% rename from public/js/build/checkin.53f513f9.js rename to public/js/build/checkin.0d786328.js index 5896e058b..37d02bb9b 100644 --- a/public/js/build/checkin.53f513f9.js +++ b/public/js/build/checkin.0d786328.js @@ -1 +1 @@ -import{n as h}from"./app.90cb6e79.js";var d=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"checkin-calendar"},[e("div",{staticClass:"calendar-header"},[e("div",{staticClass:"calendar-header-menu"},[e("Icon",{staticClass:"month-less",attrs:{type:"ios-arrow-back"},on:{click:t.prevMonth}}),e("h4",[t._v(t._s(t.$L("(*)\u5E74(*)\u6708",t.year,t.month)))]),t.hasNextMonth?e("Icon",{staticClass:"month-add",attrs:{type:"ios-arrow-forward"},on:{click:t.nextMonth}}):t._e()],1),t.hasNextMonth?e("Button",{staticClass:"calendar-header-back",attrs:{size:"small"},on:{click:t.nowMonth}},[t._v(t._s(t.$L("\u8FD4\u56DE\u672C\u6708")))]):t._e()],1),e("table",{staticClass:"check-table"},[e("thead",[e("tr",[e("th",[t._v(t._s(t.$L("\u65E5")))]),e("th",[t._v(t._s(t.$L("\u4E00")))]),e("th",[t._v(t._s(t.$L("\u4E8C")))]),e("th",[t._v(t._s(t.$L("\u4E09")))]),e("th",[t._v(t._s(t.$L("\u56DB")))]),e("th",[t._v(t._s(t.$L("\u4E94")))]),e("th",[t._v(t._s(t.$L("\u516D")))])])]),e("tbody",t._l(t.dateArray,function(s){return e("tr",[t._l(s,function(n){return[n.month?e("td",{class:{today:n.today,checkin:t.isCheck(n.date)}},[e("ETooltip",{attrs:{"max-width":"auto",disabled:!t.isCheck(n.date)}},[e("div",{attrs:{slot:"content"},domProps:{innerHTML:t._s(t.getTimes(n.date))},slot:"content"}),e("div",{staticClass:"item-day"},[n.today?e("div",[t._v(t._s(t.$L("\u4ECA\u5929")))]):e("div",[t._v(t._s(n.day))]),t.isCheck(n.date)?e("div",{staticClass:"ui-state-down"},[t._v(t._s(t.$L("\u5DF2\u7B7E\u5230")))]):n.today?e("span",{staticClass:"ui-state-default"},[t._v(t._s(t.$L("\u5C1A\u672A\u7B7E\u5230")))]):t._e()])])],1):e("td",{staticClass:"disabled"},[e("div",{staticClass:"item-day"},[e("div",[t._v(t._s(n.day))]),t.isCheck(n.date)?e("div",{staticClass:"ui-state-down"},[t._v(t._s(t.$L("\u5DF2\u7B7E\u5230")))]):t._e()])])]})],2)}),0)]),t.loadIng?e("div",{staticClass:"calendar-loading"},[e("Loading")],1):t._e()])},m=[];const _={name:"CheckinCalendar",props:{checkin:{type:Array},loadIng:{type:Boolean,default:!1}},data(){return{year:"",month:"",startTime:"",endTime:"",dateArray:[],historys:[]}},created(){const t=new Date;this.year=t.getFullYear(),this.month=t.getMonth()+1,this.generateCalendar()},watch:{checkin:{handler(t){t.some(({date:a,section:e})=>{a=a.replace(/-0?/g,"/");let s=this.historys.findIndex(n=>n.date==a);s>-1?this.historys.splice(s,1,{date:a,section:e}):this.historys.push({date:a,section:e})})},immediate:!0}},computed:{hasNextMonth(){const{year:t,month:a}=this;return parseInt(t)!=$A.formatDate("Y")||parseInt(a)<$A.formatDate("m")}},methods:{ym(){return this.year+"-"+(this.month<10?"0"+this.month:this.month)},isCheck(t){return!!this.historys.find(a=>a.date==t)},setMonth(t){this.$emit("setMonth",t,[this.startTime,this.endTime])},getTimes(t){const a=this.historys.find(e=>e.date==t);return a==null?void 0:a.section.map(e=>`${e[0]} - ${e[1]||"None"}`).join("
    ")},generateCalendar(){let t=new Date($A.formatDate("Y/m/d")),a=new Date(this.year,this.month-1,1),e=a.getTime()-a.getDay()*86400*1e3,s=[];for(let n=0;n<6;n++){s[n]=[];for(let i=0;i<7;i++){let r=new Date(e),o=r.getMonth()+1;s[n][i]={day:r.getDate(),date:`${r.getFullYear()}/${o}/${r.getDate()}`,today:t.getTime()==r.getTime(),future:t.getTime()0?e("div",{staticClass:"setting-checkin-load"},[e("Loading")],1):e("Timeline",{staticClass:"setting-checkin-lately"},t._l(t.latelyData,function(s,n){return e("TimelineItem",{key:n,attrs:{color:s.section.length>0?"blue":"#F29D38"}},[e("Icon",{attrs:{slot:"dot",type:s.section.length>0?"md-checkmark-circle":"md-close-circle"},slot:"dot"}),e("p",{staticClass:"time"},[t._v(t._s(s.date))]),e("p",{staticClass:"content",domProps:{innerHTML:t._s(s.section.length>0?t.latelySection(s.section):t.$L("\u672A\u7B7E\u5230"))}})],1)}),1),e("div",{staticClass:"setting-checkin-button",on:{click:function(s){t.calendarShow=!0}}},[t._v(t._s(t.$L("\u67E5\u770B\u66F4\u591A\u7B7E\u5230\u6570\u636E")))]),e("Divider",{attrs:{orientation:"left"}},[t._v(t._s(t.$L("\u7B7E\u5230\u8BBE\u7F6E")))]),e("Alert",[t._v(" "+t._s(t.$L("\u8BBE\u5907\u8FDE\u63A5\u4E0A\u6307\u5B9A\u8DEF\u7531\u5668\uFF08WiFi\uFF09\u540E\u81EA\u52A8\u7B7E\u5230\u3002"))+" ")]),e("div",{staticClass:"setting-checkin-row"},[e("Row",{staticClass:"setting-template"},[e("Col",{attrs:{span:"12"}},[t._v(t._s(t.$L("\u8BBE\u5907MAC\u5730\u5740")))]),e("Col",{attrs:{span:"12"}},[t._v(t._s(t.$L("\u5907\u6CE8")))])],1),t._l(t.formData,function(s,n){return e("Row",{key:n,staticClass:"setting-template"},[e("Col",{attrs:{span:"12"}},[e("Input",{attrs:{maxlength:20,placeholder:t.$L("\u8BF7\u8F93\u5165\u8BBE\u5907MAC\u5730\u5740"),clearable:""},on:{"on-clear":function(i){return t.delDatum(n)}},model:{value:s.mac,callback:function(i){t.$set(s,"mac",i)},expression:"item.mac"}})],1),e("Col",{attrs:{span:"12"}},[e("Input",{attrs:{maxlength:100,placeholder:t.$L("\u5907\u6CE8")},model:{value:s.remark,callback:function(i){t.$set(s,"remark",i)},expression:"item.remark"}})],1)],1)})],2),e("Button",{attrs:{type:"default",icon:"md-add"},on:{click:t.addDatum}},[t._v(t._s(t.$L("\u6DFB\u52A0\u8BBE\u5907")))])],1),e("div",{staticClass:"setting-footer"},[e("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),e("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1),e("Modal",{attrs:{title:t.$L("\u7B7E\u5230\u6570\u636E"),"footer-hide":"","mask-closable":!1},model:{value:t.calendarShow,callback:function(s){t.calendarShow=s},expression:"calendarShow"}},[e("CheckinCalendar",{ref:"calendar",attrs:{loadIng:t.calendarLoading>0,checkin:t.calendarData},on:{changeMonth:t.changeMonth}})],1)],1)},$=[];const g={components:{CheckinCalendar:v},data(){return{loadIng:0,formData:[],nullDatum:{mac:"",remark:""},latelyLoad:0,latelyData:[],calendarShow:!1,calendarLoading:0,calendarData:[]}},mounted(){this.initData(),this.getLately()},watch:{calendarShow(t){t&&this.$nextTick(a=>{this.changeMonth(this.$refs.calendar.ym())})}},methods:{initData(){this.loadIng++,this.$store.dispatch("call",{url:"users/checkin/get"}).then(({data:t})=>{this.formData=t.length>0?t:[$A.cloneJSON(this.nullDatum)],this.formData_bak=$A.cloneJSON(this.formData)}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.loadIng--})},submitForm(){this.$refs.formData.validate(t=>{if(t){const a=this.formData.filter(e=>/^[A-Fa-f\d]{2}:[A-Fa-f\d]{2}:[A-Fa-f\d]{2}:[A-Fa-f\d]{2}:[A-Fa-f\d]{2}:[A-Fa-f\d]{2}$/.test(e.mac.trim())).map(e=>({mac:e.mac.trim(),remark:e.remark.trim()}));this.loadIng++,this.$store.dispatch("call",{url:"users/checkin/save",data:{list:a},method:"post"}).then(({data:e})=>{this.formData=e,this.formData_bak=$A.cloneJSON(this.formData),$A.messageSuccess("\u4FEE\u6539\u6210\u529F")}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.loadIng--})}})},resetForm(){this.formData=$A.cloneJSON(this.formData_bak)},addDatum(){this.formData.push($A.cloneJSON(this.nullDatum))},delDatum(t){this.formData.splice(t,1),this.formData.length===0&&this.addDatum()},getLately(){this.latelyLoad++,this.$store.dispatch("call",{url:"users/checkin/list",data:{ym:$A.formatDate("Y-m"),before:1}}).then(({data:t})=>{this.latelyFormat(t)}).finally(t=>{this.latelyLoad--})},latelyFormat(t){const a=$A.Time();this.latelyData=[];for(let e=0;e<5;e++){const s=$A.formatDate("Y-m-d",a-e*86400),n=t.find(({date:i})=>i==s)||{date:s,section:[]};this.latelyData.push(n)}},latelySection(t){return t.map(a=>`${a[0]} - ${a[1]||"None"}`).join("
    ")},changeMonth(t){setTimeout(a=>{this.calendarLoading++},600),this.$store.dispatch("call",{url:"users/checkin/list",data:{ym:t,before:1}}).then(({data:a})=>{this.$refs.calendar.ym()==t&&(this.calendarData=a,t==$A.formatDate("Y-m")&&this.latelyFormat(a))}).catch(({msg:a})=>{this.calendarData=[],$A.modalError(a)}).finally(a=>{this.calendarLoading--})}}},c={};var p=h(g,y,$,!1,D,null,null,null);function D(t){for(let a in c)this[a]=c[a]}var C=function(){return p.exports}();export{C as default}; +import{n as h}from"./app.feefc813.js";var d=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"checkin-calendar"},[e("div",{staticClass:"calendar-header"},[e("div",{staticClass:"calendar-header-menu"},[e("Icon",{staticClass:"month-less",attrs:{type:"ios-arrow-back"},on:{click:t.prevMonth}}),e("h4",[t._v(t._s(t.$L("(*)\u5E74(*)\u6708",t.year,t.month)))]),t.hasNextMonth?e("Icon",{staticClass:"month-add",attrs:{type:"ios-arrow-forward"},on:{click:t.nextMonth}}):t._e()],1),t.hasNextMonth?e("Button",{staticClass:"calendar-header-back",attrs:{size:"small"},on:{click:t.nowMonth}},[t._v(t._s(t.$L("\u8FD4\u56DE\u672C\u6708")))]):t._e()],1),e("table",{staticClass:"check-table"},[e("thead",[e("tr",[e("th",[t._v(t._s(t.$L("\u65E5")))]),e("th",[t._v(t._s(t.$L("\u4E00")))]),e("th",[t._v(t._s(t.$L("\u4E8C")))]),e("th",[t._v(t._s(t.$L("\u4E09")))]),e("th",[t._v(t._s(t.$L("\u56DB")))]),e("th",[t._v(t._s(t.$L("\u4E94")))]),e("th",[t._v(t._s(t.$L("\u516D")))])])]),e("tbody",t._l(t.dateArray,function(s){return e("tr",[t._l(s,function(n){return[n.month?e("td",{class:{today:n.today,checkin:t.isCheck(n.date)}},[e("ETooltip",{attrs:{"max-width":"auto",disabled:!t.isCheck(n.date)}},[e("div",{attrs:{slot:"content"},domProps:{innerHTML:t._s(t.getTimes(n.date))},slot:"content"}),e("div",{staticClass:"item-day"},[n.today?e("div",[t._v(t._s(t.$L("\u4ECA\u5929")))]):e("div",[t._v(t._s(n.day))]),t.isCheck(n.date)?e("div",{staticClass:"ui-state-down"},[t._v(t._s(t.$L("\u5DF2\u7B7E\u5230")))]):n.today?e("span",{staticClass:"ui-state-default"},[t._v(t._s(t.$L("\u5C1A\u672A\u7B7E\u5230")))]):t._e()])])],1):e("td",{staticClass:"disabled"},[e("div",{staticClass:"item-day"},[e("div",[t._v(t._s(n.day))]),t.isCheck(n.date)?e("div",{staticClass:"ui-state-down"},[t._v(t._s(t.$L("\u5DF2\u7B7E\u5230")))]):t._e()])])]})],2)}),0)]),t.loadIng?e("div",{staticClass:"calendar-loading"},[e("Loading")],1):t._e()])},m=[];const _={name:"CheckinCalendar",props:{checkin:{type:Array},loadIng:{type:Boolean,default:!1}},data(){return{year:"",month:"",startTime:"",endTime:"",dateArray:[],historys:[]}},created(){const t=new Date;this.year=t.getFullYear(),this.month=t.getMonth()+1,this.generateCalendar()},watch:{checkin:{handler(t){t.some(({date:a,section:e})=>{a=a.replace(/-0?/g,"/");let s=this.historys.findIndex(n=>n.date==a);s>-1?this.historys.splice(s,1,{date:a,section:e}):this.historys.push({date:a,section:e})})},immediate:!0}},computed:{hasNextMonth(){const{year:t,month:a}=this;return parseInt(t)!=$A.formatDate("Y")||parseInt(a)<$A.formatDate("m")}},methods:{ym(){return this.year+"-"+(this.month<10?"0"+this.month:this.month)},isCheck(t){return!!this.historys.find(a=>a.date==t)},setMonth(t){this.$emit("setMonth",t,[this.startTime,this.endTime])},getTimes(t){const a=this.historys.find(e=>e.date==t);return a==null?void 0:a.section.map(e=>`${e[0]} - ${e[1]||"None"}`).join("
    ")},generateCalendar(){let t=new Date($A.formatDate("Y/m/d")),a=new Date(this.year,this.month-1,1),e=a.getTime()-a.getDay()*86400*1e3,s=[];for(let n=0;n<6;n++){s[n]=[];for(let i=0;i<7;i++){let r=new Date(e),o=r.getMonth()+1;s[n][i]={day:r.getDate(),date:`${r.getFullYear()}/${o}/${r.getDate()}`,today:t.getTime()==r.getTime(),future:t.getTime()0?e("div",{staticClass:"setting-checkin-load"},[e("Loading")],1):e("Timeline",{staticClass:"setting-checkin-lately"},t._l(t.latelyData,function(s,n){return e("TimelineItem",{key:n,attrs:{color:s.section.length>0?"blue":"#F29D38"}},[e("Icon",{attrs:{slot:"dot",type:s.section.length>0?"md-checkmark-circle":"md-close-circle"},slot:"dot"}),e("p",{staticClass:"time"},[t._v(t._s(s.date))]),e("p",{staticClass:"content",domProps:{innerHTML:t._s(s.section.length>0?t.latelySection(s.section):t.$L("\u672A\u7B7E\u5230"))}})],1)}),1),e("div",{staticClass:"setting-checkin-button",on:{click:function(s){t.calendarShow=!0}}},[t._v(t._s(t.$L("\u67E5\u770B\u66F4\u591A\u7B7E\u5230\u6570\u636E")))]),e("Divider",{attrs:{orientation:"left"}},[t._v(t._s(t.$L("\u7B7E\u5230\u8BBE\u7F6E")))]),e("Alert",[t._v(" "+t._s(t.$L("\u8BBE\u5907\u8FDE\u63A5\u4E0A\u6307\u5B9A\u8DEF\u7531\u5668\uFF08WiFi\uFF09\u540E\u81EA\u52A8\u7B7E\u5230\u3002"))+" ")]),e("div",{staticClass:"setting-checkin-row"},[e("Row",{staticClass:"setting-template"},[e("Col",{attrs:{span:"12"}},[t._v(t._s(t.$L("\u8BBE\u5907MAC\u5730\u5740")))]),e("Col",{attrs:{span:"12"}},[t._v(t._s(t.$L("\u5907\u6CE8")))])],1),t._l(t.formData,function(s,n){return e("Row",{key:n,staticClass:"setting-template"},[e("Col",{attrs:{span:"12"}},[e("Input",{attrs:{maxlength:20,placeholder:t.$L("\u8BF7\u8F93\u5165\u8BBE\u5907MAC\u5730\u5740"),clearable:""},on:{"on-clear":function(i){return t.delDatum(n)}},model:{value:s.mac,callback:function(i){t.$set(s,"mac",i)},expression:"item.mac"}})],1),e("Col",{attrs:{span:"12"}},[e("Input",{attrs:{maxlength:100,placeholder:t.$L("\u5907\u6CE8")},model:{value:s.remark,callback:function(i){t.$set(s,"remark",i)},expression:"item.remark"}})],1)],1)})],2),e("Button",{attrs:{type:"default",icon:"md-add"},on:{click:t.addDatum}},[t._v(t._s(t.$L("\u6DFB\u52A0\u8BBE\u5907")))])],1),e("div",{staticClass:"setting-footer"},[e("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),e("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1),e("Modal",{attrs:{title:t.$L("\u7B7E\u5230\u6570\u636E"),"footer-hide":"","mask-closable":!1},model:{value:t.calendarShow,callback:function(s){t.calendarShow=s},expression:"calendarShow"}},[e("CheckinCalendar",{ref:"calendar",attrs:{loadIng:t.calendarLoading>0,checkin:t.calendarData},on:{changeMonth:t.changeMonth}})],1)],1)},$=[];const g={components:{CheckinCalendar:v},data(){return{loadIng:0,formData:[],nullDatum:{mac:"",remark:""},latelyLoad:0,latelyData:[],calendarShow:!1,calendarLoading:0,calendarData:[]}},mounted(){this.initData(),this.getLately()},watch:{calendarShow(t){t&&this.$nextTick(a=>{this.changeMonth(this.$refs.calendar.ym())})}},methods:{initData(){this.loadIng++,this.$store.dispatch("call",{url:"users/checkin/get"}).then(({data:t})=>{this.formData=t.length>0?t:[$A.cloneJSON(this.nullDatum)],this.formData_bak=$A.cloneJSON(this.formData)}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.loadIng--})},submitForm(){this.$refs.formData.validate(t=>{if(t){const a=this.formData.filter(e=>/^[A-Fa-f\d]{2}:[A-Fa-f\d]{2}:[A-Fa-f\d]{2}:[A-Fa-f\d]{2}:[A-Fa-f\d]{2}:[A-Fa-f\d]{2}$/.test(e.mac.trim())).map(e=>({mac:e.mac.trim(),remark:e.remark.trim()}));this.loadIng++,this.$store.dispatch("call",{url:"users/checkin/save",data:{list:a},method:"post"}).then(({data:e})=>{this.formData=e,this.formData_bak=$A.cloneJSON(this.formData),$A.messageSuccess("\u4FEE\u6539\u6210\u529F")}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.loadIng--})}})},resetForm(){this.formData=$A.cloneJSON(this.formData_bak)},addDatum(){this.formData.push($A.cloneJSON(this.nullDatum))},delDatum(t){this.formData.splice(t,1),this.formData.length===0&&this.addDatum()},getLately(){this.latelyLoad++,this.$store.dispatch("call",{url:"users/checkin/list",data:{ym:$A.formatDate("Y-m"),before:1}}).then(({data:t})=>{this.latelyFormat(t)}).finally(t=>{this.latelyLoad--})},latelyFormat(t){const a=$A.Time();this.latelyData=[];for(let e=0;e<5;e++){const s=$A.formatDate("Y-m-d",a-e*86400),n=t.find(({date:i})=>i==s)||{date:s,section:[]};this.latelyData.push(n)}},latelySection(t){return t.map(a=>`${a[0]} - ${a[1]||"None"}`).join("
    ")},changeMonth(t){setTimeout(a=>{this.calendarLoading++},600),this.$store.dispatch("call",{url:"users/checkin/list",data:{ym:t,before:1}}).then(({data:a})=>{this.$refs.calendar.ym()==t&&(this.calendarData=a,t==$A.formatDate("Y-m")&&this.latelyFormat(a))}).catch(({msg:a})=>{this.calendarData=[],$A.modalError(a)}).finally(a=>{this.calendarLoading--})}}},c={};var p=h(g,y,$,!1,D,null,null,null);function D(t){for(let a in c)this[a]=c[a]}var C=function(){return p.exports}();export{C as default}; diff --git a/public/js/build/dashboard.0fe751dc.js b/public/js/build/dashboard.4a838ed2.js similarity index 97% rename from public/js/build/dashboard.0fe751dc.js rename to public/js/build/dashboard.4a838ed2.js index 358259c5b..e30c89ef3 100644 --- a/public/js/build/dashboard.0fe751dc.js +++ b/public/js/build/dashboard.4a838ed2.js @@ -1 +1 @@ -import{m as i,c,n as d}from"./app.90cb6e79.js";import{T as _}from"./TaskMenu.8ddcdf6c.js";var u=function(){var s=this,e=s.$createElement,t=s._self._c||e;return t("div",{staticClass:"page-dashboard"},[t("PageTitle",{attrs:{title:s.$L("\u4EEA\u8868\u76D8")}}),t("div",{staticClass:"dashboard-wrapper"},[t("div",{staticClass:"dashboard-hello"},[s._v(s._s(s.$L("\u6B22\u8FCE\u60A8\uFF0C"+s.userInfo.nickname)))]),t("div",{staticClass:"dashboard-desc"},[s._v(" "+s._s(s.$L("\u4EE5\u4E0B\u662F\u4F60\u5F53\u524D\u7684\u4EFB\u52A1\u7EDF\u8BA1\u6570\u636E"))+" "),t("transition",{attrs:{name:"dashboard-load"}},[s.loadDashboardTasks?t("div",{staticClass:"dashboard-load"},[t("Loading")],1):s._e()])],1),t("ul",{staticClass:"dashboard-block"},[t("li",{on:{click:function(o){return s.scrollTo("today")}}},[t("div",{staticClass:"block-title"},[s._v(s._s(s.getTitle("today")))]),t("div",{staticClass:"block-data"},[t("div",{staticClass:"block-num"},[s._v(s._s(s.dashboardTask.today_count))]),t("i",{staticClass:"taskfont"},[s._v("\uE6F4")])])]),t("li",{on:{click:function(o){return s.scrollTo("overdue")}}},[t("div",{staticClass:"block-title"},[s._v(s._s(s.getTitle("overdue")))]),t("div",{staticClass:"block-data"},[t("div",{staticClass:"block-num"},[s._v(s._s(s.dashboardTask.overdue_count))]),t("i",{staticClass:"taskfont"},[s._v("\uE603")])])]),t("li",{on:{click:function(o){return s.scrollTo("all")}}},[t("div",{staticClass:"block-title"},[s._v(s._s(s.getTitle("all")))]),t("div",{staticClass:"block-data"},[t("div",{staticClass:"block-num"},[s._v(s._s(s.dashboardTask.all_count))]),t("i",{staticClass:"taskfont"},[s._v("\uE6F9")])])])]),t("div",{staticClass:"dashboard-list scrollbar-overlay"},[s._l(s.columns,function(o){return o.list.length>0?[t("div",{ref:`type_${o.type}`,refInFor:!0,staticClass:"dashboard-ref"}),t("div",{staticClass:"dashboard-title"},[s._v(s._s(o.title))]),t("ul",{staticClass:"dashboard-ul"},s._l(o.list,function(a,r){return t("li",{key:r,class:{complete:a.complete_at},style:a.color?{backgroundColor:a.color}:{},on:{click:function(l){return s.openTask(a)}}},[a.p_name?t("em",{staticClass:"priority-color",style:{backgroundColor:a.p_color}}):s._e(),t("div",{staticClass:"item-select",on:{click:function(l){return l.stopPropagation(),s.openMenu(l,a)}}},[t("i",{staticClass:"taskfont",domProps:{innerHTML:s._s(a.complete_at?"":"")}})]),t("div",{staticClass:"item-title"},[a.flow_item_name?t("span",{class:a.flow_item_status,on:{click:function(l){return l.stopPropagation(),s.openMenu(l,a)}}},[s._v(s._s(a.flow_item_name))]):s._e(),a.sub_top===!0?t("span",[s._v(s._s(s.$L("\u5B50\u4EFB\u52A1")))]):s._e(),a.sub_my&&a.sub_my.length>0?t("span",[s._v("+"+s._s(a.sub_my.length))]):s._e(),s._v(" "+s._s(a.name)+" ")]),a.desc?t("div",{staticClass:"item-icon"},[t("i",{staticClass:"taskfont"},[s._v("\uE71A")])]):s._e(),a.sub_num>0?t("div",{staticClass:"item-icon"},[t("i",{staticClass:"taskfont"},[s._v("\uE71F")]),t("em",[s._v(s._s(a.sub_complete)+"/"+s._s(a.sub_num))])]):s._e(),a.end_at?t("ETooltip",{attrs:{disabled:s.windowSmall||s.$isEEUiApp,content:a.end_at,placement:"right"}},[t("div",{class:["item-icon",a.today?"today":"",a.overdue?"overdue":""]},[t("i",{staticClass:"taskfont"},[s._v("\uE71D")]),t("em",[s._v(s._s(s.expiresFormat(a.end_at)))])])]):s._e()],1)}),0)]:s._e()})],2)])],1)},v=[];const h={components:{TaskMenu:_},data(){return{nowTime:$A.Time(),nowInterval:null,loadIng:0,dashboard:"today"}},mounted(){this.nowInterval=setInterval(()=>{this.nowTime=$A.Time()},1e3)},destroyed(){clearInterval(this.nowInterval)},activated(){this.$store.dispatch("getTaskForDashboard",600)},deactivated(){this.$store.dispatch("forgetTaskCompleteTemp",!0)},computed:{...i(["userInfo","cacheTasks","taskCompleteTemps","loadDashboardTasks"]),...c(["dashboardTask","assistTask","transforTasks"]),columns(){const s=[];return["today","overdue","all"].some(e=>{let t=this.transforTasks(this.dashboardTask[e]);s.push({type:e,title:this.getTitle(e),list:t.sort((o,a)=>$A.Date(o.end_at||"2099-12-31 23:59:59")-$A.Date(a.end_at||"2099-12-31 23:59:59"))})}),s.push({type:"assist",title:this.getTitle("assist"),list:this.assistTask.sort((e,t)=>$A.Date(e.end_at||"2099-12-31 23:59:59")-$A.Date(t.end_at||"2099-12-31 23:59:59"))}),s},total(){const{dashboardTask:s}=this;return s.today_count+s.overdue_count+s.all_count}},methods:{getTitle(s){switch(s){case"today":return this.$L("\u4ECA\u65E5\u5230\u671F");case"overdue":return this.$L("\u8D85\u671F\u4EFB\u52A1");case"all":return this.$L("\u5F85\u5B8C\u6210\u4EFB\u52A1");case"assist":return this.$L("\u534F\u52A9\u7684\u4EFB\u52A1");default:return""}},scrollTo(s){$A.scrollToView(this.$refs[`type_${s}`][0],{behavior:"smooth",inline:"end"})},openTask(s){this.$store.dispatch("openTask",s)},openMenu(s,e){this.$store.state.taskOperation={event:s,task:e}},expiresFormat(s){return $A.countDownFormat(s,this.nowTime)}}},n={};var p=d(h,u,v,!1,k,null,null,null);function k(s){for(let e in n)this[e]=n[e]}var f=function(){return p.exports}();export{f as default}; +import{m as i,c,n as d}from"./app.feefc813.js";import{T as _}from"./TaskMenu.0eaf56d7.js";var u=function(){var s=this,e=s.$createElement,t=s._self._c||e;return t("div",{staticClass:"page-dashboard"},[t("PageTitle",{attrs:{title:s.$L("\u4EEA\u8868\u76D8")}}),t("div",{staticClass:"dashboard-wrapper"},[t("div",{staticClass:"dashboard-hello"},[s._v(s._s(s.$L("\u6B22\u8FCE\u60A8\uFF0C"+s.userInfo.nickname)))]),t("div",{staticClass:"dashboard-desc"},[s._v(" "+s._s(s.$L("\u4EE5\u4E0B\u662F\u4F60\u5F53\u524D\u7684\u4EFB\u52A1\u7EDF\u8BA1\u6570\u636E"))+" "),t("transition",{attrs:{name:"dashboard-load"}},[s.loadDashboardTasks?t("div",{staticClass:"dashboard-load"},[t("Loading")],1):s._e()])],1),t("ul",{staticClass:"dashboard-block"},[t("li",{on:{click:function(o){return s.scrollTo("today")}}},[t("div",{staticClass:"block-title"},[s._v(s._s(s.getTitle("today")))]),t("div",{staticClass:"block-data"},[t("div",{staticClass:"block-num"},[s._v(s._s(s.dashboardTask.today_count))]),t("i",{staticClass:"taskfont"},[s._v("\uE6F4")])])]),t("li",{on:{click:function(o){return s.scrollTo("overdue")}}},[t("div",{staticClass:"block-title"},[s._v(s._s(s.getTitle("overdue")))]),t("div",{staticClass:"block-data"},[t("div",{staticClass:"block-num"},[s._v(s._s(s.dashboardTask.overdue_count))]),t("i",{staticClass:"taskfont"},[s._v("\uE603")])])]),t("li",{on:{click:function(o){return s.scrollTo("all")}}},[t("div",{staticClass:"block-title"},[s._v(s._s(s.getTitle("all")))]),t("div",{staticClass:"block-data"},[t("div",{staticClass:"block-num"},[s._v(s._s(s.dashboardTask.all_count))]),t("i",{staticClass:"taskfont"},[s._v("\uE6F9")])])])]),t("div",{staticClass:"dashboard-list scrollbar-overlay"},[s._l(s.columns,function(o){return o.list.length>0?[t("div",{ref:`type_${o.type}`,refInFor:!0,staticClass:"dashboard-ref"}),t("div",{staticClass:"dashboard-title"},[s._v(s._s(o.title))]),t("ul",{staticClass:"dashboard-ul"},s._l(o.list,function(a,r){return t("li",{key:r,class:{complete:a.complete_at},style:a.color?{backgroundColor:a.color}:{},on:{click:function(l){return s.openTask(a)}}},[a.p_name?t("em",{staticClass:"priority-color",style:{backgroundColor:a.p_color}}):s._e(),t("div",{staticClass:"item-select",on:{click:function(l){return l.stopPropagation(),s.openMenu(l,a)}}},[t("i",{staticClass:"taskfont",domProps:{innerHTML:s._s(a.complete_at?"":"")}})]),t("div",{staticClass:"item-title"},[a.flow_item_name?t("span",{class:a.flow_item_status,on:{click:function(l){return l.stopPropagation(),s.openMenu(l,a)}}},[s._v(s._s(a.flow_item_name))]):s._e(),a.sub_top===!0?t("span",[s._v(s._s(s.$L("\u5B50\u4EFB\u52A1")))]):s._e(),a.sub_my&&a.sub_my.length>0?t("span",[s._v("+"+s._s(a.sub_my.length))]):s._e(),s._v(" "+s._s(a.name)+" ")]),a.desc?t("div",{staticClass:"item-icon"},[t("i",{staticClass:"taskfont"},[s._v("\uE71A")])]):s._e(),a.sub_num>0?t("div",{staticClass:"item-icon"},[t("i",{staticClass:"taskfont"},[s._v("\uE71F")]),t("em",[s._v(s._s(a.sub_complete)+"/"+s._s(a.sub_num))])]):s._e(),a.end_at?t("ETooltip",{attrs:{disabled:s.windowSmall||s.$isEEUiApp,content:a.end_at,placement:"right"}},[t("div",{class:["item-icon",a.today?"today":"",a.overdue?"overdue":""]},[t("i",{staticClass:"taskfont"},[s._v("\uE71D")]),t("em",[s._v(s._s(s.expiresFormat(a.end_at)))])])]):s._e()],1)}),0)]:s._e()})],2)])],1)},v=[];const h={components:{TaskMenu:_},data(){return{nowTime:$A.Time(),nowInterval:null,loadIng:0,dashboard:"today"}},mounted(){this.nowInterval=setInterval(()=>{this.nowTime=$A.Time()},1e3)},destroyed(){clearInterval(this.nowInterval)},activated(){this.$store.dispatch("getTaskForDashboard",600)},deactivated(){this.$store.dispatch("forgetTaskCompleteTemp",!0)},computed:{...i(["userInfo","cacheTasks","taskCompleteTemps","loadDashboardTasks"]),...c(["dashboardTask","assistTask","transforTasks"]),columns(){const s=[];return["today","overdue","all"].some(e=>{let t=this.transforTasks(this.dashboardTask[e]);s.push({type:e,title:this.getTitle(e),list:t.sort((o,a)=>$A.Date(o.end_at||"2099-12-31 23:59:59")-$A.Date(a.end_at||"2099-12-31 23:59:59"))})}),s.push({type:"assist",title:this.getTitle("assist"),list:this.assistTask.sort((e,t)=>$A.Date(e.end_at||"2099-12-31 23:59:59")-$A.Date(t.end_at||"2099-12-31 23:59:59"))}),s},total(){const{dashboardTask:s}=this;return s.today_count+s.overdue_count+s.all_count}},methods:{getTitle(s){switch(s){case"today":return this.$L("\u4ECA\u65E5\u5230\u671F");case"overdue":return this.$L("\u8D85\u671F\u4EFB\u52A1");case"all":return this.$L("\u5F85\u5B8C\u6210\u4EFB\u52A1");case"assist":return this.$L("\u534F\u52A9\u7684\u4EFB\u52A1");default:return""}},scrollTo(s){$A.scrollToView(this.$refs[`type_${s}`][0],{behavior:"smooth",inline:"end"})},openTask(s){this.$store.dispatch("openTask",s)},openMenu(s,e){this.$store.state.taskOperation={event:s,task:e}},expiresFormat(s){return $A.countDownFormat(s,this.nowTime)}}},n={};var p=d(h,u,v,!1,k,null,null,null);function k(s){for(let e in n)this[e]=n[e]}var f=function(){return p.exports}();export{f as default}; diff --git a/public/js/build/delete.2a213a29.js b/public/js/build/delete.89a7cb0f.js similarity index 99% rename from public/js/build/delete.2a213a29.js rename to public/js/build/delete.89a7cb0f.js index a6e6f37a1..09cfd0cd3 100644 --- a/public/js/build/delete.2a213a29.js +++ b/public/js/build/delete.89a7cb0f.js @@ -1 +1 @@ -import{m as a,n as o}from"./app.90cb6e79.js";var n=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"setting-item submit"},[t.configLoad>0?e("Loading"):e("Form",{ref:"formDatum",attrs:{model:t.formDatum,rules:t.ruleDatum,labelPosition:t.formLabelPosition,labelWidth:t.formLabelWidth},nativeOn:{submit:function(r){r.preventDefault()}}},[e("FormItem",{attrs:{label:t.$L("\u5E10\u53F7"),prop:"email"}},[t.isRegVerify==1?e("Input",{class:t.count>0?"setting-send-input":"setting-input",attrs:{search:"","enter-button":t.$L(t.sendBtnText),placeholder:t.$L("\u8BF7\u8F93\u5165\u90AE\u7BB1")},on:{"on-search":t.sendEmailCode},model:{value:t.formDatum.email,callback:function(r){t.$set(t.formDatum,"email",r)},expression:"formDatum.email"}}):e("Input",{staticClass:"setting-input",attrs:{placeholder:t.$L("\u8BF7\u8F93\u5165\u90AE\u7BB1\u5E10\u53F7")},model:{value:t.formDatum.email,callback:function(r){t.$set(t.formDatum,"email",r)},expression:"formDatum.email"}})],1),t.isRegVerify==1?e("FormItem",{attrs:{label:t.$L("\u90AE\u7BB1\u9A8C\u8BC1\u7801"),prop:"code"}},[e("Input",{attrs:{placeholder:t.$L("\u8BF7\u8F93\u5165\u90AE\u7BB1\u9A8C\u8BC1\u7801")},model:{value:t.formDatum.code,callback:function(r){t.$set(t.formDatum,"code",r)},expression:"formDatum.code"}})],1):e("FormItem",{attrs:{label:t.$L("\u767B\u5F55\u5BC6\u7801"),prop:"code"}},[e("Input",{attrs:{type:"password",placeholder:t.$L("\u8BF7\u8F93\u5165\u767B\u5F55\u5BC6\u7801")},model:{value:t.formDatum.password,callback:function(r){t.$set(t.formDatum,"password",r)},expression:"formDatum.password"}})],1),e("FormItem",{attrs:{label:t.$L("\u5220\u9664\u539F\u56E0")}},[e("Input",{attrs:{type:"textarea",autosize:{minRows:4,maxRows:8},placeholder:t.$L("\u8BF7\u8F93\u5165\u5220\u9664\u539F\u56E0")},model:{value:t.formDatum.reason,callback:function(r){t.$set(t.formDatum,"reason",r)},expression:"formDatum.reason"}})],1)],1),e("div",{staticClass:"setting-footer"},[e("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:function(r){return t.submitForm("warning")}}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),e("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1),e("Modal",{staticClass:"page-setting-delete-box",attrs:{title:t.$L(`\u5220\u9664${t.appTitle}\u5E10\u53F7`)},model:{value:t.warningShow,callback:function(r){t.warningShow=r},expression:"warningShow"}},[e("div",{staticClass:"big-text"},[t._v(t._s(t.$L("\u5E10\u53F7\u5220\u9664\u540E\uFF0C\u8BE5\u5E10\u53F7\u5C06\u65E0\u6CD5\u6B63\u5E38\u767B\u5F55\u4E14\u65E0\u6CD5\u6062\u590D\uFF0C\u5E10\u53F7\u4E0B\u7684\u6240\u6709\u6570\u636E\u4E5F\u5C06\u88AB\u5220\u9664\u3002")))]),e("div",{staticClass:"small-text"},[e("div",[t._v(t._s(t.$L("\u5220\u9664\u524D\uFF0C\u8BF7\u786E\u8BA4\u4EE5\u4E0B\u4E8B\u9879\uFF1A")))]),e("div",[t._v(t._s(t.$L("1\u3001\u60A8\u5C06\u65E0\u6CD5\u67E5\u770B\u8BE5\u5E10\u53F7\u5185\u7684\u4EFB\u4F55\u4FE1\u606F\uFF0C\u5305\u62EC\u5E10\u53F7\u4FE1\u606F\u3001\u6587\u4EF6\u8BB0\u5F55\u3001\u804A\u5929\u8BB0\u5F55\u3001\u9879\u76EE\u4FE1\u606F\u3001\u56E2\u961F\u6210\u5458\u4FE1\u606F\u7B49\u3002")))]),e("div",[t._v(t._s(t.$L("2\u3001\u82E5\u4F60\u662F\u56E2\u961F\u7684\u6240\u6709\u8005\uFF0C\u8BF7\u5728\u5220\u9664\u60A8\u7684\u5E10\u53F7\u524D\u8F6C\u79FB\u6240\u6709\u6743\u3002\u4F8B\u5982\u8BE5\u5E10\u53F7\u6240\u521B\u5EFA\u7684\u9879\u76EE\uFF08\u53EF\u5C06\u9879\u76EE\u79FB\u4EA4\u4ED6\u4EBA\u6216\u5220\u9664\u9879\u76EE\uFF09\u4EE5\u53CA\u6587\u4EF6\u5939\u3002")))]),e("div",[t._v(t._s(t.$L("3\u3001\u60A8\u5C06\u9000\u51FA\u6240\u6709\u7FA4\u804A\uFF0C\u65E0\u6CD5\u67E5\u5230\u8FC7\u5F80\u6D88\u606F\u548C\u4EBA\u5458\u3002")))]),e("div",[t._v(t._s(t.$L("4\u3001\u8BF7\u4FDD\u8BC1\u5E10\u53F7\u672A\u88AB\u6682\u505C\u4F7F\u7528\u3002")))])]),e("div",{staticClass:"button-box",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"primary",loading:t.loadIng>0},on:{click:function(r){return t.submitForm("confirm")}}},[t._v(t._s(t.$L("\u5DF2\u6E05\u695A\u98CE\u9669\uFF0C\u786E\u5B9A\u5220\u9664"))+" ")])],1)])],1)},l=[];const m={data(){return{loadIng:0,configLoad:0,formDatum:{email:"",code:"",reason:"",password:""},ruleDatum:{email:[{validator:(t,s,e)=>{s.trim()===""?e(new Error(this.$L("\u8BF7\u8F93\u5165\u90AE\u7BB1\u5E10\u53F7\uFF01"))):$A.isEmail(s.trim())?e():e(new Error(this.$L("\u8BF7\u8F93\u5165\u6B63\u786E\u90AE\u7BB1\u5E10\u53F7\uFF01")))},required:!0,trigger:"change"}],code:[{validator:(t,s,e)=>{s.trim()===""&&this.isRegVerify==1?e(new Error(this.$L("\u8BF7\u8F93\u5165\u90AE\u7BB1\u9A8C\u8BC1\u7801"))):e()},required:!0,trigger:"change"}],password:[{validator:(t,s,e)=>{s.trim()===""&&this.isRegVerify!=1?e(new Error(this.$L("\u8BF7\u8F93\u5165\u767B\u5F55\u5BC6\u7801"))):e()},required:!0,trigger:"change"}]},count:0,isSendButtonShow:!0,codeShow:!1,isRegVerify:0,warningShow:!1,sendBtnText:this.$L("\u53D1\u9001\u9A8C\u8BC1\u7801")}},mounted(){this.formDatum.email=this.userInfo.email,this.getRegVerify()},computed:{...a(["userInfo","formLabelPosition","formLabelWidth"]),appTitle(){return window.systemInfo.title||"DooTask"}},methods:{sendEmailCode(){this.count>0||this.$store.dispatch("call",{url:"users/email/send",data:{type:3,email:this.formDatum.email},spinner:!0}).then(t=>{this.isSendButtonShow=!1,this.count=120,this.sendBtnText=this.count+" \u79D2";let s=setInterval(()=>{this.count--,this.sendBtnText=this.count+" \u79D2",this.count<=0&&(this.sendBtnText=this.$L("\u53D1\u9001\u9A8C\u8BC1\u7801"),clearInterval(s))},1e3)}).catch(({msg:t})=>{$A.messageError(t)})},submitForm(t){this.$refs.formDatum.validate(s=>{s&&(this.loadIng++,this.formDatum.type=t,this.$store.dispatch("call",{url:"users/delete/account",data:this.formDatum}).then(({data:e})=>{t==="warning"?this.warningShow=!0:($A.messageSuccess("\u5220\u9664\u6210\u529F"),this.warningShow=!1,this.$store.dispatch("saveUserInfo",e),this.isSendButtonShow=!0,this.$refs.formDatum.resetFields())}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.loadIng--}))})},resetForm(){this.$refs.formDatum.resetFields()},getRegVerify(){this.configLoad++,this.$store.dispatch("call",{url:"system/setting/email"}).then(({data:t})=>{this.isRegVerify=t.reg_verify==="open"}).finally(t=>{this.configLoad--})}}},i={};var u=o(m,n,l,!1,d,null,null,null);function d(t){for(let s in i)this[s]=i[s]}var f=function(){return u.exports}();export{f as default}; +import{m as a,n as o}from"./app.feefc813.js";var n=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"setting-item submit"},[t.configLoad>0?e("Loading"):e("Form",{ref:"formDatum",attrs:{model:t.formDatum,rules:t.ruleDatum,labelPosition:t.formLabelPosition,labelWidth:t.formLabelWidth},nativeOn:{submit:function(r){r.preventDefault()}}},[e("FormItem",{attrs:{label:t.$L("\u5E10\u53F7"),prop:"email"}},[t.isRegVerify==1?e("Input",{class:t.count>0?"setting-send-input":"setting-input",attrs:{search:"","enter-button":t.$L(t.sendBtnText),placeholder:t.$L("\u8BF7\u8F93\u5165\u90AE\u7BB1")},on:{"on-search":t.sendEmailCode},model:{value:t.formDatum.email,callback:function(r){t.$set(t.formDatum,"email",r)},expression:"formDatum.email"}}):e("Input",{staticClass:"setting-input",attrs:{placeholder:t.$L("\u8BF7\u8F93\u5165\u90AE\u7BB1\u5E10\u53F7")},model:{value:t.formDatum.email,callback:function(r){t.$set(t.formDatum,"email",r)},expression:"formDatum.email"}})],1),t.isRegVerify==1?e("FormItem",{attrs:{label:t.$L("\u90AE\u7BB1\u9A8C\u8BC1\u7801"),prop:"code"}},[e("Input",{attrs:{placeholder:t.$L("\u8BF7\u8F93\u5165\u90AE\u7BB1\u9A8C\u8BC1\u7801")},model:{value:t.formDatum.code,callback:function(r){t.$set(t.formDatum,"code",r)},expression:"formDatum.code"}})],1):e("FormItem",{attrs:{label:t.$L("\u767B\u5F55\u5BC6\u7801"),prop:"code"}},[e("Input",{attrs:{type:"password",placeholder:t.$L("\u8BF7\u8F93\u5165\u767B\u5F55\u5BC6\u7801")},model:{value:t.formDatum.password,callback:function(r){t.$set(t.formDatum,"password",r)},expression:"formDatum.password"}})],1),e("FormItem",{attrs:{label:t.$L("\u5220\u9664\u539F\u56E0")}},[e("Input",{attrs:{type:"textarea",autosize:{minRows:4,maxRows:8},placeholder:t.$L("\u8BF7\u8F93\u5165\u5220\u9664\u539F\u56E0")},model:{value:t.formDatum.reason,callback:function(r){t.$set(t.formDatum,"reason",r)},expression:"formDatum.reason"}})],1)],1),e("div",{staticClass:"setting-footer"},[e("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:function(r){return t.submitForm("warning")}}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),e("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1),e("Modal",{staticClass:"page-setting-delete-box",attrs:{title:t.$L(`\u5220\u9664${t.appTitle}\u5E10\u53F7`)},model:{value:t.warningShow,callback:function(r){t.warningShow=r},expression:"warningShow"}},[e("div",{staticClass:"big-text"},[t._v(t._s(t.$L("\u5E10\u53F7\u5220\u9664\u540E\uFF0C\u8BE5\u5E10\u53F7\u5C06\u65E0\u6CD5\u6B63\u5E38\u767B\u5F55\u4E14\u65E0\u6CD5\u6062\u590D\uFF0C\u5E10\u53F7\u4E0B\u7684\u6240\u6709\u6570\u636E\u4E5F\u5C06\u88AB\u5220\u9664\u3002")))]),e("div",{staticClass:"small-text"},[e("div",[t._v(t._s(t.$L("\u5220\u9664\u524D\uFF0C\u8BF7\u786E\u8BA4\u4EE5\u4E0B\u4E8B\u9879\uFF1A")))]),e("div",[t._v(t._s(t.$L("1\u3001\u60A8\u5C06\u65E0\u6CD5\u67E5\u770B\u8BE5\u5E10\u53F7\u5185\u7684\u4EFB\u4F55\u4FE1\u606F\uFF0C\u5305\u62EC\u5E10\u53F7\u4FE1\u606F\u3001\u6587\u4EF6\u8BB0\u5F55\u3001\u804A\u5929\u8BB0\u5F55\u3001\u9879\u76EE\u4FE1\u606F\u3001\u56E2\u961F\u6210\u5458\u4FE1\u606F\u7B49\u3002")))]),e("div",[t._v(t._s(t.$L("2\u3001\u82E5\u4F60\u662F\u56E2\u961F\u7684\u6240\u6709\u8005\uFF0C\u8BF7\u5728\u5220\u9664\u60A8\u7684\u5E10\u53F7\u524D\u8F6C\u79FB\u6240\u6709\u6743\u3002\u4F8B\u5982\u8BE5\u5E10\u53F7\u6240\u521B\u5EFA\u7684\u9879\u76EE\uFF08\u53EF\u5C06\u9879\u76EE\u79FB\u4EA4\u4ED6\u4EBA\u6216\u5220\u9664\u9879\u76EE\uFF09\u4EE5\u53CA\u6587\u4EF6\u5939\u3002")))]),e("div",[t._v(t._s(t.$L("3\u3001\u60A8\u5C06\u9000\u51FA\u6240\u6709\u7FA4\u804A\uFF0C\u65E0\u6CD5\u67E5\u5230\u8FC7\u5F80\u6D88\u606F\u548C\u4EBA\u5458\u3002")))]),e("div",[t._v(t._s(t.$L("4\u3001\u8BF7\u4FDD\u8BC1\u5E10\u53F7\u672A\u88AB\u6682\u505C\u4F7F\u7528\u3002")))])]),e("div",{staticClass:"button-box",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"primary",loading:t.loadIng>0},on:{click:function(r){return t.submitForm("confirm")}}},[t._v(t._s(t.$L("\u5DF2\u6E05\u695A\u98CE\u9669\uFF0C\u786E\u5B9A\u5220\u9664"))+" ")])],1)])],1)},l=[];const m={data(){return{loadIng:0,configLoad:0,formDatum:{email:"",code:"",reason:"",password:""},ruleDatum:{email:[{validator:(t,s,e)=>{s.trim()===""?e(new Error(this.$L("\u8BF7\u8F93\u5165\u90AE\u7BB1\u5E10\u53F7\uFF01"))):$A.isEmail(s.trim())?e():e(new Error(this.$L("\u8BF7\u8F93\u5165\u6B63\u786E\u90AE\u7BB1\u5E10\u53F7\uFF01")))},required:!0,trigger:"change"}],code:[{validator:(t,s,e)=>{s.trim()===""&&this.isRegVerify==1?e(new Error(this.$L("\u8BF7\u8F93\u5165\u90AE\u7BB1\u9A8C\u8BC1\u7801"))):e()},required:!0,trigger:"change"}],password:[{validator:(t,s,e)=>{s.trim()===""&&this.isRegVerify!=1?e(new Error(this.$L("\u8BF7\u8F93\u5165\u767B\u5F55\u5BC6\u7801"))):e()},required:!0,trigger:"change"}]},count:0,isSendButtonShow:!0,codeShow:!1,isRegVerify:0,warningShow:!1,sendBtnText:this.$L("\u53D1\u9001\u9A8C\u8BC1\u7801")}},mounted(){this.formDatum.email=this.userInfo.email,this.getRegVerify()},computed:{...a(["userInfo","formLabelPosition","formLabelWidth"]),appTitle(){return window.systemInfo.title||"DooTask"}},methods:{sendEmailCode(){this.count>0||this.$store.dispatch("call",{url:"users/email/send",data:{type:3,email:this.formDatum.email},spinner:!0}).then(t=>{this.isSendButtonShow=!1,this.count=120,this.sendBtnText=this.count+" \u79D2";let s=setInterval(()=>{this.count--,this.sendBtnText=this.count+" \u79D2",this.count<=0&&(this.sendBtnText=this.$L("\u53D1\u9001\u9A8C\u8BC1\u7801"),clearInterval(s))},1e3)}).catch(({msg:t})=>{$A.messageError(t)})},submitForm(t){this.$refs.formDatum.validate(s=>{s&&(this.loadIng++,this.formDatum.type=t,this.$store.dispatch("call",{url:"users/delete/account",data:this.formDatum}).then(({data:e})=>{t==="warning"?this.warningShow=!0:($A.messageSuccess("\u5220\u9664\u6210\u529F"),this.warningShow=!1,this.$store.dispatch("saveUserInfo",e),this.isSendButtonShow=!0,this.$refs.formDatum.resetFields())}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.loadIng--}))})},resetForm(){this.$refs.formDatum.resetFields()},getRegVerify(){this.configLoad++,this.$store.dispatch("call",{url:"system/setting/email"}).then(({data:t})=>{this.isRegVerify=t.reg_verify==="open"}).finally(t=>{this.configLoad--})}}},i={};var u=o(m,n,l,!1,d,null,null,null);function d(t){for(let s in i)this[s]=i[s]}var f=function(){return u.exports}();export{f as default}; diff --git a/public/js/build/email.8395af92.js b/public/js/build/email.af678eb7.js similarity index 98% rename from public/js/build/email.8395af92.js rename to public/js/build/email.af678eb7.js index 48cddbfb2..98870c4bf 100644 --- a/public/js/build/email.8395af92.js +++ b/public/js/build/email.af678eb7.js @@ -1 +1 @@ -import{m as r,n}from"./app.90cb6e79.js";var o=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"setting-item submit"},[t.configLoad>0?e("Loading"):e("Form",{ref:"formDatum",attrs:{model:t.formDatum,rules:t.ruleDatum,labelPosition:t.formLabelPosition,labelWidth:t.formLabelWidth},nativeOn:{submit:function(i){i.preventDefault()}}},[t.isLdap?e("Alert",{attrs:{type:"warning"}},[t._v(t._s(t.$L("LDAP \u7528\u6237\u7981\u6B62\u4FEE\u6539\u90AE\u7BB1\u5730\u5740")))]):t._e(),e("FormItem",{attrs:{label:t.$L("\u65B0\u90AE\u7BB1\u5730\u5740"),prop:"newEmail"}},[t.isRegVerify==1?e("Input",{class:t.count>0?"setting-send-input":"setting-input",attrs:{search:"","enter-button":t.$L(t.sendBtnText),disabled:t.isLdap,placeholder:t.$L("\u8F93\u5165\u65B0\u90AE\u7BB1\u5730\u5740")},on:{"on-search":t.sendEmailCode},model:{value:t.formDatum.newEmail,callback:function(i){t.$set(t.formDatum,"newEmail",i)},expression:"formDatum.newEmail"}}):e("Input",{staticClass:"setting-input",attrs:{disabled:t.isLdap,placeholder:t.$L("\u8F93\u5165\u65B0\u90AE\u7BB1\u5730\u5740")},model:{value:t.formDatum.newEmail,callback:function(i){t.$set(t.formDatum,"newEmail",i)},expression:"formDatum.newEmail"}})],1),t.isRegVerify==1?e("FormItem",{attrs:{label:t.$L("\u9A8C\u8BC1\u7801"),prop:"code"}},[e("Input",{attrs:{placeholder:t.$L("\u8F93\u5165\u90AE\u7BB1\u9A8C\u8BC1\u7801")},model:{value:t.formDatum.code,callback:function(i){t.$set(t.formDatum,"code",i)},expression:"formDatum.code"}})],1):t._e()],1),e("div",{staticClass:"setting-footer"},[e("Button",{attrs:{loading:t.loadIng>0,type:"primary",disabled:t.isLdap},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),e("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},l=[];const m={data(){return{loadIng:0,configLoad:0,formDatum:{newEmail:"",code:""},ruleDatum:{newEmail:[{validator:(t,s,e)=>{s.trim()===""?e(new Error(this.$L("\u8BF7\u8F93\u5165\u65B0\u90AE\u7BB1\u5730\u5740\uFF01"))):$A.isEmail(s.trim())?e():e(new Error(this.$L("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u90AE\u7BB1\u5730\u5740\uFF01")))},required:!0,trigger:"change"}]},count:0,isSendButtonShow:!0,isRegVerify:0,sendBtnText:this.$L("\u53D1\u9001\u9A8C\u8BC1\u7801")}},mounted(){this.getRegVerify()},computed:{...r(["formLabelPosition","formLabelWidth"]),isLdap(){return this.$store.state.userInfo.identity.includes("ldap")}},methods:{sendEmailCode(){this.$store.dispatch("call",{url:"users/email/send",data:{type:2,email:this.formDatum.newEmail},spinner:!0}).then(t=>{this.isSendButtonShow=!1,this.count=120,this.sendBtnText=this.count+" \u79D2";let s=setInterval(()=>{this.count--,this.sendBtnText=this.count+" \u79D2",this.count<=0&&(this.sendBtnText=this.$L("\u53D1\u9001\u9A8C\u8BC1\u7801"),clearInterval(s))},1e3)}).catch(({msg:t})=>{$A.messageError(t)})},submitForm(){this.$refs.formDatum.validate(t=>{t&&(this.loadIng++,this.$store.dispatch("call",{url:"users/email/edit",data:this.formDatum}).then(({data:s})=>{this.count=0,this.sendBtnText=this.$L("\u53D1\u9001\u9A8C\u8BC1\u7801"),$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.$store.dispatch("saveUserInfo",s),this.$refs.formDatum.resetFields(),this.isSendButtonShow=!0}).catch(({msg:s})=>{$A.modalError(s)}).finally(s=>{this.loadIng--}))})},resetForm(){this.$refs.formDatum.resetFields()},getRegVerify(){this.configLoad++,this.$store.dispatch("call",{url:"system/setting/email"}).then(({data:t})=>{this.isRegVerify=t.reg_verify==="open"}).finally(t=>{this.configLoad--})}}},a={};var u=n(m,o,l,!1,d,null,null,null);function d(t){for(let s in a)this[s]=a[s]}var f=function(){return u.exports}();export{f as default}; +import{m as r,n}from"./app.feefc813.js";var o=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"setting-item submit"},[t.configLoad>0?e("Loading"):e("Form",{ref:"formDatum",attrs:{model:t.formDatum,rules:t.ruleDatum,labelPosition:t.formLabelPosition,labelWidth:t.formLabelWidth},nativeOn:{submit:function(i){i.preventDefault()}}},[t.isLdap?e("Alert",{attrs:{type:"warning"}},[t._v(t._s(t.$L("LDAP \u7528\u6237\u7981\u6B62\u4FEE\u6539\u90AE\u7BB1\u5730\u5740")))]):t._e(),e("FormItem",{attrs:{label:t.$L("\u65B0\u90AE\u7BB1\u5730\u5740"),prop:"newEmail"}},[t.isRegVerify==1?e("Input",{class:t.count>0?"setting-send-input":"setting-input",attrs:{search:"","enter-button":t.$L(t.sendBtnText),disabled:t.isLdap,placeholder:t.$L("\u8F93\u5165\u65B0\u90AE\u7BB1\u5730\u5740")},on:{"on-search":t.sendEmailCode},model:{value:t.formDatum.newEmail,callback:function(i){t.$set(t.formDatum,"newEmail",i)},expression:"formDatum.newEmail"}}):e("Input",{staticClass:"setting-input",attrs:{disabled:t.isLdap,placeholder:t.$L("\u8F93\u5165\u65B0\u90AE\u7BB1\u5730\u5740")},model:{value:t.formDatum.newEmail,callback:function(i){t.$set(t.formDatum,"newEmail",i)},expression:"formDatum.newEmail"}})],1),t.isRegVerify==1?e("FormItem",{attrs:{label:t.$L("\u9A8C\u8BC1\u7801"),prop:"code"}},[e("Input",{attrs:{placeholder:t.$L("\u8F93\u5165\u90AE\u7BB1\u9A8C\u8BC1\u7801")},model:{value:t.formDatum.code,callback:function(i){t.$set(t.formDatum,"code",i)},expression:"formDatum.code"}})],1):t._e()],1),e("div",{staticClass:"setting-footer"},[e("Button",{attrs:{loading:t.loadIng>0,type:"primary",disabled:t.isLdap},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),e("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},l=[];const m={data(){return{loadIng:0,configLoad:0,formDatum:{newEmail:"",code:""},ruleDatum:{newEmail:[{validator:(t,s,e)=>{s.trim()===""?e(new Error(this.$L("\u8BF7\u8F93\u5165\u65B0\u90AE\u7BB1\u5730\u5740\uFF01"))):$A.isEmail(s.trim())?e():e(new Error(this.$L("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u90AE\u7BB1\u5730\u5740\uFF01")))},required:!0,trigger:"change"}]},count:0,isSendButtonShow:!0,isRegVerify:0,sendBtnText:this.$L("\u53D1\u9001\u9A8C\u8BC1\u7801")}},mounted(){this.getRegVerify()},computed:{...r(["formLabelPosition","formLabelWidth"]),isLdap(){return this.$store.state.userInfo.identity.includes("ldap")}},methods:{sendEmailCode(){this.$store.dispatch("call",{url:"users/email/send",data:{type:2,email:this.formDatum.newEmail},spinner:!0}).then(t=>{this.isSendButtonShow=!1,this.count=120,this.sendBtnText=this.count+" \u79D2";let s=setInterval(()=>{this.count--,this.sendBtnText=this.count+" \u79D2",this.count<=0&&(this.sendBtnText=this.$L("\u53D1\u9001\u9A8C\u8BC1\u7801"),clearInterval(s))},1e3)}).catch(({msg:t})=>{$A.messageError(t)})},submitForm(){this.$refs.formDatum.validate(t=>{t&&(this.loadIng++,this.$store.dispatch("call",{url:"users/email/edit",data:this.formDatum}).then(({data:s})=>{this.count=0,this.sendBtnText=this.$L("\u53D1\u9001\u9A8C\u8BC1\u7801"),$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.$store.dispatch("saveUserInfo",s),this.$refs.formDatum.resetFields(),this.isSendButtonShow=!0}).catch(({msg:s})=>{$A.modalError(s)}).finally(s=>{this.loadIng--}))})},resetForm(){this.$refs.formDatum.resetFields()},getRegVerify(){this.configLoad++,this.$store.dispatch("call",{url:"system/setting/email"}).then(({data:t})=>{this.isRegVerify=t.reg_verify==="open"}).finally(t=>{this.configLoad--})}}},a={};var u=n(m,o,l,!1,d,null,null,null);function d(t){for(let s in a)this[s]=a[s]}var f=function(){return u.exports}();export{f as default}; diff --git a/public/js/build/file.8172d75e.js b/public/js/build/file.181f336a.js similarity index 99% rename from public/js/build/file.8172d75e.js rename to public/js/build/file.181f336a.js index 771388120..2c63f40a9 100644 --- a/public/js/build/file.8172d75e.js +++ b/public/js/build/file.181f336a.js @@ -1,4 +1,4 @@ -import{e as lt,P as ag,m as ug,n as lg,_ as lu}from"./app.90cb6e79.js";import{U as og}from"./UserInput.1d67c0fc.js";import{D as fg}from"./index.b6ff1b3f.js";import{D as cg,l as hg}from"./DialogSelect.9924132a.js";var Ci={exports:{}};/** +import{e as lt,P as ag,m as ug,n as lg,_ as lu}from"./app.feefc813.js";import{U as og}from"./UserInput.2bc16b15.js";import{D as fg}from"./index.f3f56c75.js";import{D as cg,l as hg}from"./DialogSelect.5d8dded5.js";var Ci={exports:{}};/** * @license * Lodash * Copyright OpenJS Foundation and other contributors @@ -24,4 +24,4 @@ __p += '`),M&&(w+=`' + function print() { __p += __j.call(arguments, '') } `:`; `)+w+`return __p -}`;var E=iu(function(){return k(l,L+"return "+w).apply(s,o)});if(E.source=w,gi(E))throw E;return E}function dp(e){return P(e).toLowerCase()}function pp(e){return P(e).toUpperCase()}function gp(e,n,t){if(e=P(e),e&&(t||n===s))return ds(e);if(!e||!(n=fe(n)))return e;var i=$e(e),a=$e(n),l=ps(i,a),o=gs(i,a)+1;return rn(i,l,o).join("")}function _p(e,n,t){if(e=P(e),e&&(t||n===s))return e.slice(0,vs(e)+1);if(!e||!(n=fe(n)))return e;var i=$e(e),a=gs(i,$e(n))+1;return rn(i,0,a).join("")}function vp(e,n,t){if(e=P(e),e&&(t||n===s))return e.replace(gr,"");if(!e||!(n=fe(n)))return e;var i=$e(e),a=ps(i,$e(n));return rn(i,a).join("")}function mp(e,n){var t=ou,i=fu;if(G(n)){var a="separator"in n?n.separator:a;t="length"in n?T(n.length):t,i="omission"in n?fe(n.omission):i}e=P(e);var l=e.length;if(yn(e)){var o=$e(e);l=o.length}if(t>=l)return e;var f=t-bn(i);if(f<1)return i;var d=o?rn(o,0,f).join(""):e.slice(0,f);if(a===s)return d+i;if(o&&(f+=d.length-f),_i(a)){if(e.slice(f).search(a)){var v,m=d;for(a.global||(a=Rr(a.source,P(Mi.exec(a))+"g")),a.lastIndex=0;v=a.exec(m);)var w=v.index;d=d.slice(0,w===s?f:w)}}else if(e.indexOf(fe(a),f)!=f){var x=d.lastIndexOf(a);x>-1&&(d=d.slice(0,x))}return d+i}function wp(e){return e=P(e),e&&bu.test(e)?e.replace(Ri,ql):e}var xp=Mn(function(e,n,t){return e+(t?" ":"")+n.toUpperCase()}),wi=sa("toUpperCase");function ru(e,n,t){return e=P(e),n=t?s:n,n===s?Nl(e)?Jl(e):Rl(e):e.match(n)||[]}var iu=F(function(e,n){try{return le(e,s,n)}catch(t){return gi(t)?t:new y(t)}}),Ip=Ge(function(e,n){return _e(n,function(t){t=Me(t),Ne(e,t,di(e[t],e))}),e});function Ap(e){var n=e==null?0:e.length,t=S();return e=n?z(e,function(i){if(typeof i[1]!="function")throw new ve(K);return[t(i[0]),i[1]]}):[],F(function(i){for(var a=-1;++aJe)return[];var t=Re,i=j(e,Re);n=S(n),e-=Re;for(var a=Tr(i,n);++t0||n<0)?new O(t):(e<0?t=t.takeRight(-e):e&&(t=t.drop(e)),n!==s&&(n=T(n),t=n<0?t.dropRight(-n):t.take(n-e)),t)},O.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},O.prototype.toArray=function(){return this.take(Re)},Oe(O.prototype,function(e,n){var t=/^(?:filter|find|map|reject)|While$/.test(n),i=/^(?:head|last)$/.test(n),a=u[i?"take"+(n=="last"?"Right":""):n],l=i||/^find/.test(n);!a||(u.prototype[n]=function(){var o=this.__wrapped__,f=i?[1]:arguments,d=o instanceof O,v=f[0],m=d||b(o),w=function(R){var M=a.apply(u,Qe([R],f));return i&&x?M[0]:M};m&&t&&typeof v=="function"&&v.length!=1&&(d=m=!1);var x=this.__chain__,L=!!this.__actions__.length,$=l&&!x,E=d&&!L;if(!l&&m){o=E?o:new O(this);var C=e.apply(o,f);return C.__actions__.push({func:Xt,args:[w],thisArg:s}),new me(C,x)}return $&&E?e.apply(this,f):(C=this.thru(w),$?i?C.value()[0]:C.value():C)})}),_e(["pop","push","shift","sort","splice","unshift"],function(e){var n=At[e],t=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);u.prototype[e]=function(){var a=arguments;if(i&&!this.__chain__){var l=this.value();return n.apply(b(l)?l:[],a)}return this[t](function(o){return n.apply(b(o)?o:[],a)})}}),Oe(O.prototype,function(e,n){var t=u[n];if(t){var i=t.name+"";B.call(Rn,i)||(Rn[i]=[]),Rn[i].push({name:n,func:t})}}),Rn[Gt(s,un).name]=[{name:"wrapper",func:s}],O.prototype.clone=mo,O.prototype.reverse=wo,O.prototype.value=xo,u.prototype.at=Xc,u.prototype.chain=Qc,u.prototype.commit=Vc,u.prototype.next=jc,u.prototype.plant=nh,u.prototype.reverse=th,u.prototype.toJSON=u.prototype.valueOf=u.prototype.value=rh,u.prototype.first=u.prototype.head,Zn&&(u.prototype[Zn]=eh),u},Tn=Xl();on?((on.exports=Tn)._=Tn,Ir._=Tn):Q._=Tn}).call(lt)})(Ci,Ci.exports);var dg=function(){var r=this,p=r.$createElement,s=r._self._c||p;return s("div",{staticClass:"page-file"},[s("PageTitle",{attrs:{title:r.$L("\u6587\u4EF6")}}),s("div",{ref:"fileWrapper",staticClass:"file-wrapper"},[s("div",{staticClass:"file-head"},[s("div",{staticClass:"file-nav"},[s("h1",[r._v(r._s(r.$L("\u6587\u4EF6")))]),r.loadIng==0?s("div",{staticClass:"file-refresh",on:{click:r.getFileList}},[s("i",{staticClass:"taskfont"},[r._v("\uE6AE")])]):r._e()]),r.uploadList.length>0?s("div",{staticClass:"file-status",on:{click:function(h){r.uploadShow=!0}}},[r.uploadList.find(function(h){var I=h.status;return I!=="finished"})?s("Loading"):s("Button",{attrs:{shape:"circle",icon:"md-checkmark"}})],1):r._e(),s("div",{class:["file-search",r.searchKey?"has-value":""],on:{click:r.onSearchFocus,mouseenter:r.onSearchFocus}},[s("Input",{ref:"searchInput",attrs:{suffix:"ios-search",placeholder:r.$L("\u641C\u7D22\u540D\u79F0")},on:{"on-change":r.onSearchChange},model:{value:r.searchKey,callback:function(h){r.searchKey=h},expression:"searchKey"}})],1),s("div",{staticClass:"file-add"},[s("Button",{attrs:{shape:"circle",icon:"md-add"},on:{click:function(h){return h.stopPropagation(),r.handleRightClick(h,null,!0)}}})],1)]),s("div",{staticClass:"file-navigator"},[s("ul",{staticClass:"scrollbar-hidden"},[s("li",{on:{click:function(h){return r.browseFolder(0)}}},[s("span",[r._v(r._s(r.$L("\u5168\u90E8\u6587\u4EF6")))])]),r.searchKey?s("li",[r._v(r._s(r.$L("\u641C\u7D22"))+' "'+r._s(r.searchKey)+'"')]):r._l(r.navigator,function(h){return s("li",{ref:`nav_${h.id}`,refInFor:!0,on:{click:function(I){return r.browseFolder(h.id)}}},[h.share?s("i",{staticClass:"taskfont"},[r._v("\uE63F")]):r._e(),s("span",{attrs:{title:h.name}},[r._v(r._s(h.name))]),h.share&&h.permission==0?s("span",{staticClass:"readonly"},[r._v(r._s(r.$L("\u53EA\u8BFB")))]):r._e()])})],2),r.shearFirst?[s("Button",{attrs:{disabled:r.shearFirst.pid==r.pid,size:"small",type:"primary"},on:{click:r.shearTo}},[s("div",{staticClass:"file-shear"},[s("span",[r._v(r._s(r.$L("\u7C98\u8D34")))]),r._v(' "'),s("em",[r._v(r._s(r.shearFirst.name))]),r._v('" '),r.shearIds.length>1?s("span",[r._v(r._s(r.$L("\u7B49"))+r._s(r.shearIds.length)+r._s(r.$L("\u4E2A\u6587\u4EF6")))]):r._e()])]),s("Button",{attrs:{type:"primary",size:"small"},on:{click:r.clearShear}},[r._v(r._s(r.$L("\u53D6\u6D88\u526A\u5207")))])]:r.selectIds.length>0?[s("Button",{attrs:{size:"small",type:"info"},on:{click:function(h){return r.handleContextClick("shearSelect")}}},[s("Icon",{attrs:{type:"ios-cut"}}),r._v(" "+r._s(r.$L("\u526A\u5207"))+" ")],1),s("Button",{attrs:{size:"small",type:"error"},on:{click:function(h){return r.deleteFile(r.selectIds)}}},[s("Icon",{attrs:{type:"ios-trash"}}),r._v(" "+r._s(r.$L("\u5220\u9664"))+" ")],1),s("Button",{attrs:{type:"primary",size:"small"},on:{click:r.clearSelect}},[r._v(r._s(r.$L("\u53D6\u6D88\u9009\u62E9")))])]:r._e(),r.loadIng>0?s("div",{staticClass:"nav-load"},[s("Loading")],1):r._e(),s("div",{staticClass:"flex-full"}),s("div",{class:["switch-button",r.tableMode]},[s("div",{on:{click:function(h){r.tableMode="table"}}},[s("i",{staticClass:"taskfont"},[r._v("\uE66A")])]),s("div",{on:{click:function(h){r.tableMode="block"}}},[s("i",{staticClass:"taskfont"},[r._v("\uE60C")])])])],2),s("div",{staticClass:"file-drag",on:{drop:function(h){return h.preventDefault(),r.filePasteDrag(h,"drag")},dragover:function(h){return h.preventDefault(),r.fileDragOver(!0,h)},dragleave:function(h){return h.preventDefault(),r.fileDragOver(!1,h)}}},[r.tableMode==="block"?[r.fileList.length==0&&r.loadIng==0?s("div",{staticClass:"file-no",on:{contextmenu:function(h){return h.preventDefault(),r.handleContextmenu.apply(null,arguments)}}},[s("i",{staticClass:"taskfont"},[r._v("\uE60B")]),s("p",[r._v(r._s(r.$L("\u6CA1\u6709\u4EFB\u4F55\u6587\u4EF6")))])]):s("div",{staticClass:"file-list",on:{contextmenu:function(h){return h.preventDefault(),r.handleContextmenu.apply(null,arguments)}}},[s("ul",r._l(r.fileList,function(h){return s("li",{directives:[{name:"longpress",rawName:"v-longpress",value:r.handleLongpress,expression:"handleLongpress"}],class:{shear:r.shearIds.includes(h.id),highlight:r.selectIds.includes(h.id),operate:r.contextMenuVisible&&h.id===r.contextMenuItem.id},attrs:{"data-id":h.id},on:{click:function(I){return r.dropFile(h,"openCheckMenu")}}},[s("div",{staticClass:"file-check",class:{"file-checked":r.selectIds.includes(h.id)},on:{click:function(I){return I.stopPropagation(),r.dropFile(h,"select")}}},[s("Checkbox",{attrs:{value:r.selectIds.includes(h.id)}})],1),s("div",{staticClass:"file-menu",on:{click:function(I){return I.stopPropagation(),r.handleRightClick(I,h)}}},[s("Icon",{attrs:{type:"ios-more"}})],1),s("div",{class:`no-dark-before file-icon ${h.type}${h.share?" share":""}`},[h.share?[h.userid!=r.userId?s("UserAvatar",{staticClass:"share-avatar",attrs:{userid:h.userid,size:20}},[s("p",[r._v(r._s(r.$L("\u5171\u4EAB\u6743\u9650"))+": "+r._s(r.$L(h.permission==1?"\u8BFB/\u5199":"\u53EA\u8BFB")))])]):s("div",{staticClass:"share-icon no-dark-content"},[s("i",{staticClass:"taskfont"},[r._v("\uE757")])])]:r.isParentShare?[s("UserAvatar",{staticClass:"share-avatar",attrs:{userid:h.created_id,size:20}},[h.created_id!=h.userid?s("p",[s("strong",[r._v(r._s(r.$L("\u6210\u5458\u521B\u5EFA\u4E8E"))+": "+r._s(h.created_at))])]):s("p",[r._v(r._s(r.$L("\u6240\u6709\u8005\u521B\u5EFA\u4E8E"))+": "+r._s(h.created_at))])])]:r._e()],2),h._edit?s("div",{staticClass:"file-input"},[s("Input",{ref:"input_"+h.id,refInFor:!0,attrs:{size:"small",disabled:!!h._load},on:{"on-blur":function(I){return r.onBlur(h)},"on-keyup":function(I){return r.onKeyup(I,h)}},model:{value:h.newname,callback:function(I){r.$set(h,"newname",I)},expression:"item.newname"}}),h._load?s("div",{staticClass:"file-load"},[s("Loading")],1):r._e()],1):s("div",{staticClass:"file-name",attrs:{title:h.name}},[r._v(r._s(r.$A.getFileName(h)))])])}),0)])]:s("div",{staticClass:"file-table",on:{contextmenu:function(h){return h.preventDefault(),r.handleContextmenu.apply(null,arguments)}}},[s("Table",{attrs:{columns:r.columns,data:r.fileList,height:r.tableHeight,"no-data-text":r.$L("\u6CA1\u6709\u4EFB\u4F55\u6587\u4EF6"),"context-menu":"",stripe:""},on:{"on-cell-click":r.clickRow,"on-contextmenu":r.handleContextMenu,"on-select":r.handleTableSelect,"on-select-cancel":r.handleTableSelect,"on-select-all-cancel":r.handleTableSelect,"on-select-all":r.handleTableSelect,"on-sort-change":r.handleTableSort}})],1),r.dialogDrag?s("div",{staticClass:"drag-over",on:{click:function(h){r.dialogDrag=!1}}},[s("div",{staticClass:"drag-text"},[r._v(r._s(r.$L("\u62D6\u52A8\u5230\u8FD9\u91CC\u53D1\u9001")))])]):r._e()],2),s("div",{staticClass:"file-menu",style:r.contextMenuStyles},[s("Dropdown",{attrs:{trigger:"custom",visible:r.contextMenuVisible,"transfer-class-name":"page-file-dropdown-menu",transfer:""},on:{"on-click":r.handleContextClick,"on-clickoutside":r.handleClickContextMenuOutside,"on-visible-change":r.handleVisibleChangeMenu}},[s("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[r.contextMenuItem.id?[s("DropdownItem",{staticClass:"item-open",attrs:{name:"open"}},[r._v(" "+r._s(r.$L("\u6253\u5F00"))+" "),s("div",{staticClass:"open-name"},[r._v("\u201C"+r._s(r.contextMenuItem.name)+"\u201D")])]),r.searchKey?s("DropdownItem",{staticClass:"item-open",attrs:{name:"upperFolder"}},[r._v(" "+r._s(r.$L("\u5728\u4E0A\u5C42\u6587\u4EF6\u5939\u4E2D\u663E\u793A"))+" ")]):r._e(),s("DropdownItem",{attrs:{name:"select"}},[r._v(r._s(r.$L(r.selectIds.includes(r.contextMenuItem.id)?"\u53D6\u6D88\u9009\u62E9":"\u9009\u62E9")))]),s("Dropdown",{attrs:{placement:"right-start",transfer:""}},[s("DropdownItem",{attrs:{divided:"",name:"new:"},nativeOn:{click:function(h){h.stopPropagation()}}},[s("div",{staticClass:"arrow-forward-item"},[r._v(r._s(r.$L("\u65B0\u5EFA"))),s("Icon",{attrs:{type:"ios-arrow-forward"}})],1)]),s("DropdownMenu",{staticClass:"page-file-dropdown-menu",attrs:{slot:"list"},slot:"list"},r._l(r.types,function(h,I){return h.label?s("DropdownItem",{key:I,attrs:{divided:!!h.divided,name:`new:${h.value}`}},[s("div",{class:`no-dark-before file-item file-icon ${h.value}`},[r._v(r._s(r.$L(h.label)))])]):r._e()}),1)],1),s("DropdownItem",{attrs:{name:"rename",divided:""}},[r._v(r._s(r.$L("\u91CD\u547D\u540D")))]),s("DropdownItem",{attrs:{name:"copy",disabled:r.contextMenuItem.type=="folder"}},[r._v(r._s(r.$L("\u590D\u5236")))]),s("DropdownItem",{attrs:{name:"shear",disabled:r.contextMenuItem.userid!=r.userId}},[r._v(r._s(r.$L("\u526A\u5207")))]),r.contextMenuItem.userid==r.userId?s("DropdownItem",{attrs:{name:"share",divided:""}},[r._v(r._s(r.$L("\u5171\u4EAB")))]):r.contextMenuItem.share?s("DropdownItem",{attrs:{name:"outshare",divided:""}},[r._v(r._s(r.$L("\u9000\u51FA\u5171\u4EAB")))]):r._e(),s("DropdownItem",{attrs:{name:"send",disabled:r.contextMenuItem.type=="folder"}},[r._v(r._s(r.$L("\u53D1\u9001")))]),s("DropdownItem",{attrs:{name:"link",divided:r.contextMenuItem.userid!=r.userId&&!r.contextMenuItem.share,disabled:r.contextMenuItem.type=="folder"}},[r._v(r._s(r.$L("\u94FE\u63A5")))]),s("DropdownItem",{attrs:{name:"download",disabled:r.contextMenuItem.ext==""}},[r._v(r._s(r.$L("\u4E0B\u8F7D")))]),s("DropdownItem",{staticStyle:{color:"red"},attrs:{name:"delete",divided:""}},[r._v(r._s(r.$L("\u5220\u9664")))])]:r._l(r.types,function(h,I){return h.label?s("DropdownItem",{key:I,attrs:{divided:!!h.divided,name:`new:${h.value}`}},[s("div",{class:`no-dark-before file-item file-icon ${h.value}`},[r._v(r._s(r.$L(h.label)))])]):r._e()})],2)],1)],1)]),r.uploadShow&&r.uploadList.length>0?s("div",{staticClass:"file-upload-list"},[s("div",{staticClass:"upload-wrap"},[s("div",{staticClass:"title"},[r._v(" "+r._s(r.$L("\u4E0A\u4F20\u5217\u8868"))+" ("+r._s(r.uploadList.length)+") "),r.uploadList.find(function(h){var I=h.status;return I==="finished"})?s("em",{on:{click:r.uploadClear}},[r._v(r._s(r.$L("\u6E05\u7A7A\u5DF2\u5B8C\u6210")))]):r._e()]),s("ul",{staticClass:"content"},r._l(r.uploadList,function(h,I){return I<100?s("li",{key:I},[s("AutoTip",{staticClass:"file-name"},[r._v(r._s(r.uploadName(h)))]),h.status==="finished"&&h.response&&h.response.ret!==1?s("AutoTip",{staticClass:"file-error"},[r._v(r._s(h.response.msg))]):s("Progress",{attrs:{percent:r.uploadPercentageParse(h.percentage),"stroke-width":5}}),s("Icon",{staticClass:"file-close",attrs:{type:"ios-close-circle-outline"},on:{click:function(D){return r.uploadList.splice(I,1)}}})],1):r._e()}),0),s("Icon",{staticClass:"close",attrs:{type:"md-close"},on:{click:function(h){r.uploadShow=!1}}})],1)]):r._e(),s("Upload",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],ref:"fileUpload",attrs:{name:"files",action:r.actionUrl,headers:r.headers,multiple:!0,webkitdirectory:!1,format:r.uploadFormat,accept:r.uploadAccept,"show-upload-list":!1,"max-size":r.maxSize,"on-progress":r.handleProgress,"on-success":r.handleSuccess,"on-error":r.handleError,"on-format-error":r.handleFormatError,"on-exceeded-size":r.handleMaxSize,"before-upload":r.handleBeforeUpload}}),s("Upload",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],ref:"dirUpload",attrs:{name:"files",action:r.actionUrl,headers:r.headers,multiple:!0,webkitdirectory:!0,format:r.uploadFormat,accept:r.uploadAccept,"show-upload-list":!1,"max-size":r.maxSize,"on-progress":r.handleProgress,"on-success":r.handleSuccess,"on-error":r.handleError,"on-format-error":r.handleFormatError,"on-exceeded-size":r.handleMaxSize,"before-upload":r.handleBeforeUpload}}),s("Modal",{attrs:{title:r.$L("\u5171\u4EAB\u8BBE\u7F6E"),"mask-closable":!1,"footer-hide":""},model:{value:r.shareShow,callback:function(h){r.shareShow=h},expression:"shareShow"}},[s("Form",{staticClass:"page-file-share-form",attrs:{model:r.shareInfo,inline:""},nativeOn:{submit:function(h){h.preventDefault()}}},[s("FormItem",{staticClass:"share-userid",attrs:{prop:"userids"}},[s("UserInput",{attrs:{disabledChoice:r.shareAlready,"multiple-max":100,placeholder:r.$L("\u9009\u62E9\u5171\u4EAB\u6210\u5458")},model:{value:r.shareInfo.userids,callback:function(h){r.$set(r.shareInfo,"userids",h)},expression:"shareInfo.userids"}},[s("Option",{attrs:{slot:"option-prepend",value:0,label:r.$L("\u6240\u6709\u4EBA"),disabled:r.shareAlready.includes(0)},slot:"option-prepend"},[s("div",{staticClass:"user-input-option"},[s("div",{staticClass:"user-input-avatar"},[s("EAvatar",{staticClass:"avatar",attrs:{icon:"el-icon-s-custom"}})],1),s("div",{staticClass:"user-input-nickname"},[r._v(r._s(r.$L("\u6240\u6709\u4EBA")))]),s("div",{staticClass:"user-input-userid"},[r._v("All")])])])],1)],1),s("FormItem",[s("Select",{attrs:{placeholder:r.$L("\u6743\u9650")},model:{value:r.shareInfo.permission,callback:function(h){r.$set(r.shareInfo,"permission",h)},expression:"shareInfo.permission"}},[s("Option",{attrs:{value:1}},[r._v(r._s(r.$L("\u8BFB/\u5199")))]),s("Option",{attrs:{value:0}},[r._v(r._s(r.$L("\u53EA\u8BFB")))])],1)],1),s("FormItem",[s("Button",{attrs:{type:"primary",loading:r.shareLoad>0},on:{click:r.onShare}},[r._v(r._s(r.$L("\u5171\u4EAB")))])],1)],1),r.shareList.length>0?s("div",[s("div",{staticClass:"page-file-share-title"},[r._v(r._s(r.$L("\u5DF2\u5171\u4EAB\u6210\u5458"))+":")]),s("ul",{staticClass:"page-file-share-list"},r._l(r.shareList,function(h){return s("li",[h.userid==0?s("div",{staticClass:"all-avatar"},[s("EAvatar",{staticClass:"avatar-text",attrs:{icon:"el-icon-s-custom"}}),s("span",{staticClass:"avatar-name"},[r._v(r._s(r.$L("\u6240\u6709\u4EBA")))])],1):s("UserAvatar",{attrs:{size:32,userid:h.userid,showName:"",tooltipDisabled:""}}),s("Select",{attrs:{placeholder:r.$L("\u6743\u9650")},on:{"on-change":function(I){return r.upShare(h)}},model:{value:h.permission,callback:function(I){r.$set(h,"permission",I)},expression:"item.permission"}},[s("Option",{attrs:{value:1}},[r._v(r._s(r.$L("\u8BFB/\u5199")))]),s("Option",{attrs:{value:0}},[r._v(r._s(r.$L("\u53EA\u8BFB")))]),s("Option",{staticClass:"delete",attrs:{value:-1}},[r._v(r._s(r.$L("\u5220\u9664")))])],1)],1)}),0)]):r._e()],1),s("Modal",{attrs:{title:r.$L("\u53D1\u9001\u6587\u4EF6"),"mask-closable":!1},model:{value:r.sendShow,callback:function(h){r.sendShow=h},expression:"sendShow"}},[s("DialogSelect",{model:{value:r.sendData,callback:function(h){r.sendData=h},expression:"sendData"}}),s("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[s("Button",{attrs:{type:"default"},on:{click:function(h){r.sendShow=!1}}},[r._v(r._s(r.$L("\u53D6\u6D88")))]),s("Button",{attrs:{type:"primary",loading:r.sendLoad},on:{click:r.onSendFile}},[r._v(r._s(r.$L("\u53D1\u9001\u6587\u4EF6")))])],1)],1),s("Modal",{attrs:{title:r.$L("\u6587\u4EF6\u94FE\u63A5"),"mask-closable":!1},model:{value:r.linkShow,callback:function(h){r.linkShow=h},expression:"linkShow"}},[s("div",[s("div",{staticStyle:{margin:"-10px 0 8px"}},[r._v(r._s(r.$L("\u6587\u4EF6\u540D\u79F0"))+": "+r._s(r.linkData.name))]),s("Input",{ref:"linkInput",attrs:{type:"textarea",rows:3,readonly:""},on:{"on-focus":r.linkFocus},model:{value:r.linkData.url,callback:function(h){r.$set(r.linkData,"url",h)},expression:"linkData.url"}}),s("div",{staticClass:"form-tip",staticStyle:{"padding-top":"6px"}},[r._v(r._s(r.$L("\u53EF\u901A\u8FC7\u6B64\u94FE\u63A5\u6D4F\u89C8\u6587\u4EF6\u3002"))),s("a",{attrs:{href:"javascript:void(0)"},on:{click:r.linkCopy}},[r._v(r._s(r.$L("\u70B9\u51FB\u590D\u5236\u94FE\u63A5")))])])],1),s("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[s("Button",{attrs:{type:"default"},on:{click:function(h){r.linkShow=!1}}},[r._v(r._s(r.$L("\u53D6\u6D88")))]),s("Poptip",{staticStyle:{"margin-left":"8px"},attrs:{confirm:"",placement:"bottom","ok-text":r.$L("\u786E\u5B9A"),"cancel-text":r.$L("\u53D6\u6D88"),transfer:""},on:{"on-ok":function(h){return r.linkGet(!0)}}},[s("div",{attrs:{slot:"title"},slot:"title"},[s("p",[s("strong",[r._v(r._s(r.$L("\u6CE8\u610F\uFF1A\u5237\u65B0\u5C06\u5BFC\u81F4\u539F\u6765\u7684\u94FE\u63A5\u5931\u6548\uFF01")))])])]),s("Button",{attrs:{type:"primary",loading:r.linkLoad>0}},[r._v(r._s(r.$L("\u5237\u65B0")))])],1)],1)]),s("DrawerOverlay",{staticClass:"page-file-drawer",attrs:{beforeClose:r.fileBeforeClose,"mask-closable":!1},model:{value:r.fileShow,callback:function(h){r.fileShow=h},expression:"fileShow"}},[r.isPreview?s("FilePreview",{attrs:{file:r.fileInfo}}):s("FileContent",{ref:"fileContent",attrs:{file:r.fileInfo},model:{value:r.fileShow,callback:function(h){r.fileShow=h},expression:"fileShow"}})],1),s("PreviewImage",{attrs:{index:r.imageIndex,list:r.imageList},model:{value:r.imageShow,callback:function(h){r.imageShow=h},expression:"imageShow"}}),s("Modal",{attrs:{title:r.$L(r.pasteTitle),"cancel-text":r.$L("\u53D6\u6D88"),"ok-text":r.$L("\u7ACB\u5373\u4E0A\u4F20"),"enter-ok":!0},on:{"on-ok":r.pasteSend},model:{value:r.pasteShow,callback:function(h){r.pasteShow=h},expression:"pasteShow"}},[s("ul",{staticClass:"dialog-wrapper-paste",class:r.pasteWrapperClass},r._l(r.pasteItem,function(h){return s("li",[h.type=="image"?s("img",{attrs:{src:h.result}}):s("div",[r._v(r._s(r.$L("\u6587\u4EF6"))+": "+r._s(h.name)+" ("+r._s(r.$A.bytesToSize(h.size))+")")])])}),0)])],1)},pg=[];const gg=()=>lu(()=>import("./FilePreview.8438d32b.js"),["js/build/FilePreview.8438d32b.js","js/build/app.90cb6e79.js","js/build/app.ce5dd3b0.css","js/build/IFrame.a3e09c0b.js"]),_g=()=>lu(()=>import("./FileContent.50f8fd54.js"),["js/build/FileContent.50f8fd54.js","js/build/FileContent.5c6a1e1c.css","js/build/app.90cb6e79.js","js/build/app.ce5dd3b0.css","js/build/IFrame.a3e09c0b.js"]),ot={sort:null,mode:null},vg={components:{DialogSelect:cg,PreviewImage:ag,FilePreview:gg,DrawerOverlay:fg,UserInput:og,FileContent:_g},directives:{longpress:hg},data(){return{loadIng:0,searchKey:"",searchTimeout:null,types:[{value:"folder",label:"\u65B0\u5EFA\u6587\u4EF6\u5939",name:"\u6587\u4EF6\u5939"},{value:"upload",label:"\u4E0A\u4F20\u6587\u4EF6",name:null,divided:!0},{value:"updir",label:"\u4E0A\u4F20\u6587\u4EF6\u5939",name:null},{value:"document",label:"\u6587\u672C",name:"\u6587\u672C",divided:!0},{value:"drawio",label:"\u56FE\u8868",name:"\u56FE\u8868"},{value:"mind",label:"\u601D\u7EF4\u5BFC\u56FE",name:"\u5BFC\u56FE"},{value:"word",label:"Word \u6587\u6863",name:"Word",divided:!0},{value:"excel",label:"Excel \u5DE5\u4F5C\u8868",name:"Excel"},{value:"ppt",label:"PPT \u6F14\u793A\u6587\u7A3F",name:"PPT"}],tableMode:"",columns:[],shareShow:!1,shareInfo:{id:0,userid:0,permission:1},shareList:[],shareLoad:0,sendShow:!1,sendLoad:!1,sendData:{dialogids:[],userids:[]},linkShow:!1,linkData:{},linkLoad:0,fileShow:!1,fileInfo:{permission:-1},imageShow:!1,imageIndex:0,imageList:[],uploadDir:!1,uploadIng:0,uploadShow:!1,uploadList:[],uploadFormat:[],uploadAccept:"",maxSize:1024e3,contextMenuItem:{},contextMenuVisible:!1,contextMenuStyles:{top:0,left:0},shearIds:[],selectIds:[],dialogDrag:!1,pasteShow:!1,pasteFile:[],pasteItem:[]}},async beforeRouteEnter(r,p,s){ot.sort=await $A.IDBJson("cacheFileSort"),ot.mode=await $A.IDBString("fileTableMode"),s()},created(){this.tableMode=ot.mode,this.columns=[{type:"selection",width:50,align:"right"},{title:this.$L("\u6587\u4EF6\u540D"),key:"name",minWidth:300,sortable:!0,render:(r,{row:p})=>{let s=[];if(!/^\d+$/.test(p.id))return s.push(r("Input",{props:{elementId:"input_"+p.id,value:p.newname,autofocus:!0,disabled:!!p._load},style:{width:"auto"},on:{"on-change":I=>{p.newname=I.target.value},"on-blur":()=>{const I=this.fileLists.find(({id:D})=>D==p.id);I&&(I.newname=p.newname,this.onBlur(I))},"on-enter":()=>{const I=this.fileLists.find(({id:D})=>D==p.id);I&&(I.newname=p.newname,this.onEnter(I))}}})),r("div",{class:"file-nbox"},[r("div",{class:`no-dark-before file-name file-icon ${p.type}`},s)]);{s.push(r("QuickEdit",{props:{value:p.name,autoEdit:!!p._edit,clickOutSide:!1},on:{"on-edit-change":ke=>{const Te=this.fileLists.find(({id:an})=>an==p.id);Te&&setTimeout(()=>{this.setEdit(Te.id,ke)},100)},"on-update":(ke,Te)=>{const an=this.fileLists.find(({id:mn})=>mn==p.id);an&&(an.newname=ke,this.onEnter(an)),Te()}}},[r("AutoTip",{props:{placement:"right"}},$A.getFileName(p))]));const I=[];p.share?p.userid!=this.userId?I.push(r("UserAvatar",{props:{userid:p.userid,size:20}})):I.push(r("i",{class:"taskfont",domProps:{innerHTML:""}})):this.isParentShare&&I.push(r("UserAvatar",{props:{userid:p.created_id,size:20}},[p.created_id!=p.userid?r("p",[r("strong",this.$L("\u6210\u5458\u521B\u5EFA\u4E8E")+": "+p.created_at)]):r("p",this.$L("\u6240\u6709\u8005\u521B\u5EFA\u4E8E")+": "+p.created_at)]));const D=this.shearIds.includes(p.id)?" shear":"",K=p.share?" share":"";return r("div",{class:`file-nbox${D}`,attrs:{"data-id":p.id}},[r("div",{class:`no-dark-before file-name file-icon ${p.type}${K}`},s),I])}}},{title:this.$L("\u5927\u5C0F"),key:"size",width:110,resizable:!0,sortable:!0,render:(r,{row:p})=>p.type=="folder"?r("div","-"):r("AutoTip",$A.bytesToSize(p.size))},{title:this.$L("\u7C7B\u578B"),key:"type",width:110,resizable:!0,sortable:!0,render:(r,{row:p})=>{let s=this.types.find(({value:h,name:I})=>h==p.type&&I);return s?r("AutoTip",this.$L(s.name)):r("div",(p.ext||p.type).toUpperCase())}},{title:this.$L("\u6240\u6709\u8005"),key:"userid",width:130,resizable:!0,sortable:!0,render:(r,{row:p})=>r("UserAvatar",{props:{size:18,userid:p.userid,showIcon:!1,showName:!0}})},{title:this.$L("\u6700\u540E\u4FEE\u6539"),key:"updated_at",width:168,resizable:!0,sortable:!0}].map(r=>(r.key===ot.sort.key&&(r.sortType=ot.sort.order),r))},mounted(){!this.tableMode&&this.$isEEUiApp&&(this.tableMode="block"),this.uploadAccept=this.uploadFormat.map(r=>"."+r).join(",")},activated(){this.getFileList()},computed:{...ug(["userIsAdmin","userInfo","fileLists","wsOpenNum"]),pid(){const{folderId:r}=this.$route.params;return parseInt(/^\d+$/.test(r)?r:0)},fid(){const{fileId:r}=this.$route.params;return parseInt(/^\d+$/.test(r)?r:0)},actionUrl(){return $A.apiUrl("file/content/upload?pid="+this.pid)},headers(){return{fd:$A.getSessionStorageString("userWsFd"),token:this.userToken}},shareAlready(){let r=this.shareList?this.shareList.map(({userid:p})=>p):[];return this.shareInfo.userid&&r.push(this.shareInfo.userid),r},fileList(){const{fileLists:r,searchKey:p,pid:s,selectIds:h}=this;return $A.cloneJSON(Ci.exports.sortBy(r.filter(D=>p?D.name.indexOf(p)!==-1:D.pid==s),D=>(D.type=="folder"?"a":"b")+D.name)).map(D=>(D._checked=h.includes(D.id),D))},shearFirst(){const{fileLists:r,shearIds:p}=this;return p.length===0?null:r.find(s=>s.id==p[0])},navigator(){let{pid:r,fileLists:p}=this,s=[];for(;r>0;){let h=p.find(({id:I,permission:D})=>I==r&&D>-1);h?(s.unshift(h),r=h.pid):r=0}return s},isPreview(){return this.windowSmall||this.fileInfo.permission===0},isParentShare(){const{navigator:r}=this;return!!r.find(({share:p})=>p)},pasteTitle(){const{pasteItem:r}=this;let p=r.find(({type:h})=>h=="image"),s=r.find(({type:h})=>h!="image");return p&&s?"\u4E0A\u4F20\u6587\u4EF6/\u56FE\u7247":p?"\u4E0A\u4F20\u56FE\u7247":"\u4E0A\u4F20\u6587\u4EF6"},pasteWrapperClass(){return this.pasteItem.find(({type:r})=>r!=="image")?["multiple"]:[]},tableHeight(){return this.windowLarge?Math.max(300,this.windowHeight-160):Math.max(300,this.windowHeight-200)}},watch:{pid(){this.searchKey="",this.selectIds=[],this.getFileList()},fid(){this.openFileJudge()},tableMode(r){$A.IDBSave("fileTableMode",r)},fileShow(r){r||(this.browseFile(0),this.windowSmall&&$A.onBlur(!0))},imageShow(r){r||this.browseFile(0)},navigator:{handler(){this.$nextTick(r=>{this.$refs[`nav_${this.pid}`]&&$A.scrollToView(this.$refs[`nav_${this.pid}`][0],!1)})},immediate:!0},selectIds:{handler(r){r.length>0&&(this.shearIds=[])},deep:!0},shearIds:{handler(r){r.length>0&&(this.selectIds=[])},deep:!0},wsOpenNum(r){r<=1||(this.wsOpenTimeout&&clearTimeout(this.wsOpenTimeout),this.wsOpenTimeout=setTimeout(()=>{this.$route.name=="manage-file"&&this.getFileList()},5e3))}},methods:{getFileList(){this.$route.name==="manage-file"&&(this.loadIng++,this.$store.dispatch("getFiles",this.pid).then(async()=>{this.loadIng--,this.openFileJudge(),await $A.IDBSet("fileFolderId",this.pid)}).catch(({msg:r})=>{this.loadIng--,$A.modalError({content:r,onOk:()=>{this.browseFolder(0)}})}))},addFile(r){if(r){if(r=="upload"){this.uploadDir=!1,this.$refs.fileUpload.handleClick();return}else if(r=="updir"){this.uploadDir=!0,this.$refs.dirUpload.handleClick();return}}else return;let p=$A.randomString(8);this.fileLists.push({_edit:!0,pid:this.pid,id:p,type:r,name:"",newname:this.$L("\u672A\u547D\u540D")}),this.autoBlur(p)},handleLongpress(r,p){const s=$A.getAttr(p,"data-id"),h=this.fileList.find(I=>I.id==s);!h||this.handleRightClick(r,h)},handleContextmenu(r){this.windowLarge&&this.handleRightClick(r)},handleRightClick(r,p,s){this.contextMenuItem=$A.isJson(p)?p:{},this.contextMenuVisible&&this.handleClickContextMenuOutside(),this.$nextTick(()=>{const I=this.$refs.fileWrapper.getBoundingClientRect();this.contextMenuStyles={left:`${r.clientX-I.left}px`,top:`${r.clientY-I.top}px`},s===!0&&(this.contextMenuStyles.top=`${r.target.clientHeight+r.target.offsetTop-5}px`),this.contextMenuVisible=!0})},browseFolder(r){r>0?this.goForward({name:"manage-file",params:{folderId:r,fileId:null}}):(this.searchKey="",this.goForward({name:"manage-file"}))},browseFile(r){r>0?this.goForward({name:"manage-file",params:{folderId:this.pid,fileId:r}}):this.browseFolder(this.pid)},openFileJudge(){if(this.$route.name!=="manage-file"){this.fileShow=!1,this.imageShow=!1;return}if(this.fid<=0){this.fileShow=!1,this.imageShow=!1;return}const r=this.fileList.find(({id:p})=>p===this.fid);if(!r){this.fileShow=!1,this.imageShow=!1;return}if(r.image_url){const p=this.fileList.filter(({image_url:s})=>!!s);if(p.length>0){this.imageIndex=p.findIndex(({id:s})=>r.id===s),this.imageList=p.map(s=>s.image_width?{src:s.image_url,width:s.image_width,height:s.image_height}:s.image_url),this.imageShow=!0;return}}if(this.$Electron||this.$isEEUiApp){this.openFileSingle(r);return}this.fileInfo=r,this.fileShow=!0},openFileSingle(r){const p=`/single/file/${r.id}`;this.$Electron?this.$Electron.sendMessage("windowRouter",{name:`file-${r.id}`,path:p,userAgent:"/hideenOfficeTitle/",force:!1,config:{title:$A.getFileName(r),titleFixed:!0,parent:null,width:Math.min(window.screen.availWidth,1440),height:Math.min(window.screen.availHeight,900)},webPreferences:{nodeIntegrationInSubFrames:r.type==="drawio"}}):this.$isEEUiApp?$A.eeuiAppOpenPage({pageType:"app",pageTitle:$A.getFileName(r),url:"web.js",params:{titleFixed:!0,allowAccess:!0,url:$A.rightDelete(window.location.href,window.location.hash)+`#${p}`}}):window.open($A.apiUrl(`..${p}`)),this.browseFile(0)},clickRow(r,p){p.type=="selection"?this.dropFile(r,"select"):this.dropFile(r,"open")},handleContextMenu(r,p){this.handleRightClick(p,this.fileLists.find(({id:s})=>s===r.id)||{})},handleContextClick(r){$A.leftExists(r,"new:")?this.addFile($A.leftDelete(r,"new:")):this.dropFile(this.contextMenuItem,r)},handleClickContextMenuOutside(){this.contextMenuVisible=!1},handleVisibleChangeMenu(r){let p=this.fileLists.find(({_highlight:s})=>!!s);p&&this.$set(p,"_highlight",!1),r&&this.contextMenuItem.id&&this.$set(this.contextMenuItem,"_highlight",!0)},dropFile(r,p){switch(p){case"open":case"openCheckMenu":if(p==="openCheckMenu"&&this.contextMenuVisible||this.fileList.findIndex(h=>h._edit===!0)>-1||r._load)return;r.type=="folder"?this.browseFolder(r.id):this.browseFile(r.id);break;case"upperFolder":this.searchKey="",this.browseFolder(r.pid);break;case"select":let s=this.selectIds.findIndex(h=>h==r.id);s>-1?this.selectIds.splice(s,1):this.selectIds.push(r.id);break;case"rename":this.setEdit(r.id,!0),this.autoBlur(r.id);break;case"copy":this.$store.dispatch("call",{url:"file/copy",data:{id:r.id}}).then(({data:h,msg:I})=>{$A.messageSuccess(I),this.$store.dispatch("saveFile",h)}).catch(({msg:h})=>{$A.modalError(h)});break;case"shear":this.shearIds=[r.id];break;case"shearSelect":this.shearIds=$A.cloneJSON(this.selectIds);break;case"send":this.sendData={dialogids:[],userids:[],file_id:r.id},this.sendShow=!0;break;case"share":this.shareInfo={id:r.id,userid:r.userid,permission:1},this.shareList=[],this.shareShow=!0,this.getShare();break;case"outshare":$A.modalConfirm({content:"\u4F60\u786E\u5B9A\u8981\u9000\u51FA\u3010"+r.name+"\u3011\u5171\u4EAB\u6210\u5458\u5417\uFF1F",loading:!0,onOk:()=>new Promise((h,I)=>{this.$store.dispatch("call",{url:"file/share/out",data:{id:r.id}}).then(({msg:D})=>{h(D),this.$store.dispatch("forgetFile",r.id)}).catch(({msg:D})=>{I(D)})})});break;case"link":this.linkData={id:r.id,name:r.name},this.linkShow=!0,this.linkGet();break;case"download":if(!r.ext)return;$A.modalConfirm({title:"\u4E0B\u8F7D\u6587\u4EF6",content:`${r.name}.${r.ext} (${$A.bytesToSize(r.size)})`,okText:"\u7ACB\u5373\u4E0B\u8F7D",onOk:()=>{this.$store.dispatch("downUrl",$A.apiUrl(`file/content?id=${r.id}&down=yes`))}});break;case"delete":this.deleteFile([r.id]);break}},onSendFile(){if($A.arrayLength(this.sendData.dialogids)===0&&$A.arrayLength(this.sendData.userids)===0){$A.messageWarning("\u8BF7\u9009\u62E9\u8F6C\u53D1\u5BF9\u8BDD\u6216\u6210\u5458");return}this.sendLoad=!0,this.$store.dispatch("call",{url:"dialog/msg/sendfileid",data:this.sendData}).then(({data:r,msg:p})=>{this.sendShow=!1,this.$store.dispatch("saveDialogMsg",r.msgs),this.$store.dispatch("updateDialogLastMsg",r.msgs),$A.messageSuccess(p)}).catch(({msg:r})=>{$A.modalError(r)}).finally(r=>{this.sendLoad=!1})},linkGet(r){this.linkLoad++,this.$store.dispatch("call",{url:"file/link",data:{id:this.linkData.id,refresh:r===!0?"yes":"no"}}).then(({data:p})=>{this.linkData=Object.assign(p,{id:this.linkData.id,name:this.linkData.name}),this.linkFocus()}).catch(({msg:p})=>{this.linkShow=!1,$A.modalError(p)}).finally(p=>{this.linkLoad--})},linkCopy(){!this.linkData.url||(this.linkFocus(),this.$copyText(this.linkData.url).then(r=>{$A.messageSuccess("\u590D\u5236\u6210\u529F")}).catch(r=>{$A.messageError("\u590D\u5236\u5931\u8D25")}))},linkFocus(){this.$nextTick(r=>{this.$refs.linkInput.focus({cursor:"all"})})},shearTo(){if(this.shearIds.length!=0){if(this.isParentShare){const r=this.fileLists.find(({id:p,share:s})=>s&&this.shearIds.includes(p));if(r){$A.modalError(`${r.name} \u5F53\u524D\u6B63\u5728\u5171\u4EAB\uFF0C\u65E0\u6CD5\u79FB\u52A8\u5230\u53E6\u4E00\u4E2A\u5171\u4EAB\u6587\u4EF6\u5939\u5185`);return}}this.$store.dispatch("call",{url:"file/move",data:{ids:this.shearIds,pid:this.pid}}).then(({data:r,msg:p})=>{$A.messageSuccess(p),this.shearIds=[],this.$store.dispatch("saveFile",r)}).catch(({msg:r})=>{$A.modalError(r)})}},deleteFile(r){if(r.length===0)return;const p=this.fileLists.find(D=>D.id==r[0])||{};let h=!r.find(D=>this.fileLists.find(K=>K.type!="folder"&&K.id==D))?"\u6587\u4EF6\u5939":"\u6587\u4EF6",I=`\u3010${p.name}\u3011\u7B49${r.length}\u4E2A${h}`;r.length===1&&(I=`\u3010${p.name}\u3011${h}`),$A.modalConfirm({title:"\u5220\u9664"+h,content:"\u4F60\u786E\u5B9A\u8981\u5220\u9664"+I+"\u5417\uFF1F",loading:!0,onOk:()=>new Promise((D,K)=>{this.$store.dispatch("call",{url:"file/remove",data:{ids:r}}).then(({msg:ke})=>{D(ke),this.$store.dispatch("forgetFile",r),this.selectIds=this.selectIds.filter(Te=>!r.includes(Te))}).catch(({msg:ke})=>{K(ke)})})})},autoBlur(r){this.$nextTick(()=>{if(this.$refs["input_"+r])this.$refs["input_"+r][0].focus({cursor:"all"});else if(document.getElementById("input_"+r)){const p=document.getElementById("input_"+r),s=p.value.length;p.focus(),p.setSelectionRange(0,s)}})},onBlur(r){this.fileLists.find(({id:p,_edit:s})=>p==r.id&&!s)||this.onEnter(r)},onKeyup(r,p){r.keyCode===13?this.onEnter(p):r.keyCode===27&&(!/^\d+$/.test(p.id)?(p.newname="",this.$store.dispatch("forgetFile",p.id)):(this.setLoad(p.id,!1),this.setEdit(p.id,!1)))},onEnter(r){const p=!/^\d+$/.test(r.id);if(!r.newname){p?this.$store.dispatch("forgetFile",r.id):this.setEdit(r.id,!1);return}if(r.newname==r.name){this.setEdit(r.id,!1);return}r._load||(this.setLoad(r.id,!0),this.$store.dispatch("call",{url:"file/add",data:{id:p?0:r.id,pid:r.pid,name:r.newname,type:r.type}}).then(({data:s,msg:h})=>{$A.messageSuccess(h),this.setLoad(r.id,!1),this.setEdit(r.id,!1),this.$store.dispatch("saveFile",s),p&&(this.$store.dispatch("forgetFile",r.id),this.shakeFile(s.id))}).catch(({msg:s})=>{$A.modalError(s),this.setLoad(r.id,!1),p&&this.$store.dispatch("forgetFile",r.id)}))},setEdit(r,p){const s=this.$store.state.fileLists.find(({id:h})=>h==r);s&&(this.$set(s,"_edit",p),p&&this.$set(s,"newname",s.name))},setLoad(r,p){const s=this.$store.state.fileLists.find(({id:h})=>h==r);s&&this.$set(s,"_load",p)},onSearchFocus(){this.$nextTick(()=>{this.$refs.searchInput.focus({cursor:"end"})})},onSearchChange(){this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchKey.trim()!=""&&(this.searchTimeout=setTimeout(()=>{this.loadIng++,this.$store.dispatch("searchFiles",this.searchKey.trim()).then(()=>{this.loadIng--}).catch(()=>{this.loadIng--})},600))},getShare(){this.shareLoad++,this.$store.dispatch("call",{url:"file/share",data:{id:this.shareInfo.id}}).then(({data:r})=>{r.id==this.shareInfo.id&&(this.shareList=r.list.map(p=>(p._permission=p.permission,p)))}).catch(({msg:r})=>{this.shareShow=!1,$A.modalError(r)}).finally(r=>{this.shareLoad--})},onShare(r=!1){if(this.shareInfo.userids.length==0){$A.messageWarning("\u8BF7\u9009\u62E9\u5171\u4EAB\u6210\u5458");return}this.shareLoad++,this.$store.dispatch("call",{url:"file/share/update",data:Object.assign(this.shareInfo,{force:r===!0?1:0})}).then(({data:p,msg:s})=>{$A.messageSuccess(s),this.$store.dispatch("saveFile",p),this.$set(this.shareInfo,"userids",[]),this.getShare()}).catch(({ret:p,msg:s})=>{p===-3001?$A.modalConfirm({content:"\u6B64\u6587\u4EF6\u5939\u5185\u5DF2\u6709\u5171\u4EAB\u6587\u4EF6\u5939\uFF0C\u5B50\u6587\u4EF6\u7684\u5171\u4EAB\u72B6\u6001\u5C06\u88AB\u53D6\u6D88\uFF0C\u662F\u5426\u7EE7\u7EED\uFF1F",onOk:()=>{this.onShare(!0)}}):$A.modalError(s)}).finally(p=>{this.shareLoad--})},upShare(r,p=!1){r.loading!==!0&&(r.loading=!0,this.$store.dispatch("call",{url:"file/share/update",data:{id:this.shareInfo.id,userids:[r.userid],permission:r.permission,force:p===!0?1:0}}).then(({data:s,msg:h})=>{if(r.loading=!1,r._permission=r.permission,$A.messageSuccess(h),this.$store.dispatch("saveFile",s),r.permission===-1){let I=this.shareList.findIndex(({userid:D})=>D==r.userid);I>-1&&this.shareList.splice(I,1)}}).catch(({ret:s,msg:h})=>{r.loading=!1,s===-3001?$A.modalConfirm({content:"\u6B64\u6587\u4EF6\u5939\u5185\u5DF2\u6709\u5171\u4EAB\u6587\u4EF6\u5939\uFF0C\u5B50\u6587\u4EF6\u7684\u5171\u4EAB\u72B6\u6001\u5C06\u88AB\u53D6\u6D88\uFF0C\u662F\u5426\u7EE7\u7EED\uFF1F",onOk:()=>{this.upShare(r,!0)},onCancel:()=>{r.permission=r._permission}}):(r.permission=r._permission,$A.modalError(h))}))},uploadName(r){return $A.getObject(r,"response.data.full_name")||r.name},handleTableSort({key:r,order:p}){$A.IDBSave("cacheFileSort",["asc","desc"].includes(p)?{key:r,order:p}:{})},handleTableSelect(r){this.selectIds=r.map(p=>p.id)},clearSelect(){this.selectIds=[]},clearShear(){this.shearIds=[]},shakeFile(r){this.$nextTick(p=>{const s=$A(this.$el).find(`[data-id="${r}"]`);s.length>0&&($A.scrollIntoViewIfNeeded(s[0]),$A(s[0]).addClass("common-shake"),setTimeout(h=>$A(s[0]).removeClass("common-shake"),800))})},pasteDragNext(r,p){let s=p==="drag"?r.dataTransfer.files:r.clipboardData.files;s=Array.prototype.slice.call(s),s.length>0&&(r.preventDefault(),this.pasteFile=[],this.pasteItem=[],s.some(h=>{const I={type:$A.getMiddle(h.type,null,"/"),name:h.name,size:h.size,result:null};if(I.type==="image"){const D=new FileReader;D.readAsDataURL(h),D.onload=({target:K})=>{I.result=K.result,this.pasteFile.push(h),this.pasteItem.push(I),this.pasteShow=!0}}else this.pasteFile.push(h),this.pasteItem.push(I),this.pasteShow=!0}))},filePasteDrag(r,p){this.dialogDrag=!1,this.pasteDragNext(r,p)},fileDragOver(r,p){let s=this.__dialogDrag=$A.randomString(8);if(!r)setTimeout(()=>{s===this.__dialogDrag&&(this.dialogDrag=r)},150);else{if(p.dataTransfer.effectAllowed==="move")return;this.dialogDrag=!0}},pasteSend(){const r=[];this.pasteFile.some(p=>{r.find(s=>s===p.name)||(r.push(p.name),this.$refs.fileUpload.upload(p))})},fileBeforeClose(){return new Promise(r=>{if(!this.$refs.fileContent){r();return}if(this.$refs.fileContent.equalContent){r();return}$A.modalConfirm({content:"\u4FEE\u6539\u7684\u5185\u5BB9\u5C1A\u672A\u4FDD\u5B58\uFF0C\u786E\u5B9A\u8981\u653E\u5F03\u4FEE\u6539\u5417\uFF1F",cancelText:"\u53D6\u6D88",okText:"\u653E\u5F03",onOk:()=>{r()}})})},uploadUpdate(r){r.forEach(p=>{let s=this.uploadList.findIndex(({uid:h})=>h==p.uid);s>-1?this.uploadList.splice(s,1,p):this.uploadList.unshift(p)})},uploadClear(){this.uploadList=this.uploadList.filter(({status:r})=>r!=="finished"),this.$refs.fileUpload.clearFiles(),this.$refs.dirUpload.clearFiles()},uploadPercentageParse(r){return parseInt(r,10)},handleProgress(r,p,s){p._uploadIng===void 0&&(p._uploadIng=!0,this.uploadIng++),this.uploadUpdate(s)},handleSuccess(r,p,s){this.uploadIng--,this.uploadUpdate(s),r.ret===1?this.$store.dispatch("saveFile",r.data):$A.modalWarning({title:"\u4E0A\u4F20\u5931\u8D25",content:"\u6587\u4EF6 "+p.name+" \u4E0A\u4F20\u5931\u8D25\uFF0C"+r.msg})},handleError(r,p,s){this.uploadIng--,this.uploadUpdate(s)},handleFormatError(r){this.uploadDir||$A.modalWarning({title:"\u6587\u4EF6\u683C\u5F0F\u4E0D\u6B63\u786E",content:"\u6587\u4EF6 "+r.name+" \u683C\u5F0F\u4E0D\u6B63\u786E\uFF0C\u4EC5\u652F\u6301\u4E0A\u4F20\uFF1A"+this.uploadFormat.join(",")})},handleMaxSize(r){$A.modalWarning({title:"\u8D85\u51FA\u6587\u4EF6\u5927\u5C0F\u9650\u5236",content:"\u6587\u4EF6 "+r.name+" \u592A\u5927\uFF0C\u4E0D\u80FD\u8D85\u8FC7\uFF1A"+$A.bytesToSize(this.maxSize*1024)+"\u3002"})},handleBeforeUpload(){return this.uploadShow=!0,!0}}},uu={};var mg=lg(vg,dg,pg,!1,wg,null,null,null);function wg(r){for(let p in uu)this[p]=uu[p]}var Sg=function(){return mg.exports}();export{Sg as default}; +}`;var E=iu(function(){return k(l,L+"return "+w).apply(s,o)});if(E.source=w,gi(E))throw E;return E}function dp(e){return P(e).toLowerCase()}function pp(e){return P(e).toUpperCase()}function gp(e,n,t){if(e=P(e),e&&(t||n===s))return ds(e);if(!e||!(n=fe(n)))return e;var i=$e(e),a=$e(n),l=ps(i,a),o=gs(i,a)+1;return rn(i,l,o).join("")}function _p(e,n,t){if(e=P(e),e&&(t||n===s))return e.slice(0,vs(e)+1);if(!e||!(n=fe(n)))return e;var i=$e(e),a=gs(i,$e(n))+1;return rn(i,0,a).join("")}function vp(e,n,t){if(e=P(e),e&&(t||n===s))return e.replace(gr,"");if(!e||!(n=fe(n)))return e;var i=$e(e),a=ps(i,$e(n));return rn(i,a).join("")}function mp(e,n){var t=ou,i=fu;if(G(n)){var a="separator"in n?n.separator:a;t="length"in n?T(n.length):t,i="omission"in n?fe(n.omission):i}e=P(e);var l=e.length;if(yn(e)){var o=$e(e);l=o.length}if(t>=l)return e;var f=t-bn(i);if(f<1)return i;var d=o?rn(o,0,f).join(""):e.slice(0,f);if(a===s)return d+i;if(o&&(f+=d.length-f),_i(a)){if(e.slice(f).search(a)){var v,m=d;for(a.global||(a=Rr(a.source,P(Mi.exec(a))+"g")),a.lastIndex=0;v=a.exec(m);)var w=v.index;d=d.slice(0,w===s?f:w)}}else if(e.indexOf(fe(a),f)!=f){var x=d.lastIndexOf(a);x>-1&&(d=d.slice(0,x))}return d+i}function wp(e){return e=P(e),e&&bu.test(e)?e.replace(Ri,ql):e}var xp=Mn(function(e,n,t){return e+(t?" ":"")+n.toUpperCase()}),wi=sa("toUpperCase");function ru(e,n,t){return e=P(e),n=t?s:n,n===s?Nl(e)?Jl(e):Rl(e):e.match(n)||[]}var iu=F(function(e,n){try{return le(e,s,n)}catch(t){return gi(t)?t:new y(t)}}),Ip=Ge(function(e,n){return _e(n,function(t){t=Me(t),Ne(e,t,di(e[t],e))}),e});function Ap(e){var n=e==null?0:e.length,t=S();return e=n?z(e,function(i){if(typeof i[1]!="function")throw new ve(K);return[t(i[0]),i[1]]}):[],F(function(i){for(var a=-1;++aJe)return[];var t=Re,i=j(e,Re);n=S(n),e-=Re;for(var a=Tr(i,n);++t0||n<0)?new O(t):(e<0?t=t.takeRight(-e):e&&(t=t.drop(e)),n!==s&&(n=T(n),t=n<0?t.dropRight(-n):t.take(n-e)),t)},O.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},O.prototype.toArray=function(){return this.take(Re)},Oe(O.prototype,function(e,n){var t=/^(?:filter|find|map|reject)|While$/.test(n),i=/^(?:head|last)$/.test(n),a=u[i?"take"+(n=="last"?"Right":""):n],l=i||/^find/.test(n);!a||(u.prototype[n]=function(){var o=this.__wrapped__,f=i?[1]:arguments,d=o instanceof O,v=f[0],m=d||b(o),w=function(R){var M=a.apply(u,Qe([R],f));return i&&x?M[0]:M};m&&t&&typeof v=="function"&&v.length!=1&&(d=m=!1);var x=this.__chain__,L=!!this.__actions__.length,$=l&&!x,E=d&&!L;if(!l&&m){o=E?o:new O(this);var C=e.apply(o,f);return C.__actions__.push({func:Xt,args:[w],thisArg:s}),new me(C,x)}return $&&E?e.apply(this,f):(C=this.thru(w),$?i?C.value()[0]:C.value():C)})}),_e(["pop","push","shift","sort","splice","unshift"],function(e){var n=At[e],t=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);u.prototype[e]=function(){var a=arguments;if(i&&!this.__chain__){var l=this.value();return n.apply(b(l)?l:[],a)}return this[t](function(o){return n.apply(b(o)?o:[],a)})}}),Oe(O.prototype,function(e,n){var t=u[n];if(t){var i=t.name+"";B.call(Rn,i)||(Rn[i]=[]),Rn[i].push({name:n,func:t})}}),Rn[Gt(s,un).name]=[{name:"wrapper",func:s}],O.prototype.clone=mo,O.prototype.reverse=wo,O.prototype.value=xo,u.prototype.at=Xc,u.prototype.chain=Qc,u.prototype.commit=Vc,u.prototype.next=jc,u.prototype.plant=nh,u.prototype.reverse=th,u.prototype.toJSON=u.prototype.valueOf=u.prototype.value=rh,u.prototype.first=u.prototype.head,Zn&&(u.prototype[Zn]=eh),u},Tn=Xl();on?((on.exports=Tn)._=Tn,Ir._=Tn):Q._=Tn}).call(lt)})(Ci,Ci.exports);var dg=function(){var r=this,p=r.$createElement,s=r._self._c||p;return s("div",{staticClass:"page-file"},[s("PageTitle",{attrs:{title:r.$L("\u6587\u4EF6")}}),s("div",{ref:"fileWrapper",staticClass:"file-wrapper"},[s("div",{staticClass:"file-head"},[s("div",{staticClass:"file-nav"},[s("h1",[r._v(r._s(r.$L("\u6587\u4EF6")))]),r.loadIng==0?s("div",{staticClass:"file-refresh",on:{click:r.getFileList}},[s("i",{staticClass:"taskfont"},[r._v("\uE6AE")])]):r._e()]),r.uploadList.length>0?s("div",{staticClass:"file-status",on:{click:function(h){r.uploadShow=!0}}},[r.uploadList.find(function(h){var I=h.status;return I!=="finished"})?s("Loading"):s("Button",{attrs:{shape:"circle",icon:"md-checkmark"}})],1):r._e(),s("div",{class:["file-search",r.searchKey?"has-value":""],on:{click:r.onSearchFocus,mouseenter:r.onSearchFocus}},[s("Input",{ref:"searchInput",attrs:{suffix:"ios-search",placeholder:r.$L("\u641C\u7D22\u540D\u79F0")},on:{"on-change":r.onSearchChange},model:{value:r.searchKey,callback:function(h){r.searchKey=h},expression:"searchKey"}})],1),s("div",{staticClass:"file-add"},[s("Button",{attrs:{shape:"circle",icon:"md-add"},on:{click:function(h){return h.stopPropagation(),r.handleRightClick(h,null,!0)}}})],1)]),s("div",{staticClass:"file-navigator"},[s("ul",{staticClass:"scrollbar-hidden"},[s("li",{on:{click:function(h){return r.browseFolder(0)}}},[s("span",[r._v(r._s(r.$L("\u5168\u90E8\u6587\u4EF6")))])]),r.searchKey?s("li",[r._v(r._s(r.$L("\u641C\u7D22"))+' "'+r._s(r.searchKey)+'"')]):r._l(r.navigator,function(h){return s("li",{ref:`nav_${h.id}`,refInFor:!0,on:{click:function(I){return r.browseFolder(h.id)}}},[h.share?s("i",{staticClass:"taskfont"},[r._v("\uE63F")]):r._e(),s("span",{attrs:{title:h.name}},[r._v(r._s(h.name))]),h.share&&h.permission==0?s("span",{staticClass:"readonly"},[r._v(r._s(r.$L("\u53EA\u8BFB")))]):r._e()])})],2),r.shearFirst?[s("Button",{attrs:{disabled:r.shearFirst.pid==r.pid,size:"small",type:"primary"},on:{click:r.shearTo}},[s("div",{staticClass:"file-shear"},[s("span",[r._v(r._s(r.$L("\u7C98\u8D34")))]),r._v(' "'),s("em",[r._v(r._s(r.shearFirst.name))]),r._v('" '),r.shearIds.length>1?s("span",[r._v(r._s(r.$L("\u7B49"))+r._s(r.shearIds.length)+r._s(r.$L("\u4E2A\u6587\u4EF6")))]):r._e()])]),s("Button",{attrs:{type:"primary",size:"small"},on:{click:r.clearShear}},[r._v(r._s(r.$L("\u53D6\u6D88\u526A\u5207")))])]:r.selectIds.length>0?[s("Button",{attrs:{size:"small",type:"info"},on:{click:function(h){return r.handleContextClick("shearSelect")}}},[s("Icon",{attrs:{type:"ios-cut"}}),r._v(" "+r._s(r.$L("\u526A\u5207"))+" ")],1),s("Button",{attrs:{size:"small",type:"error"},on:{click:function(h){return r.deleteFile(r.selectIds)}}},[s("Icon",{attrs:{type:"ios-trash"}}),r._v(" "+r._s(r.$L("\u5220\u9664"))+" ")],1),s("Button",{attrs:{type:"primary",size:"small"},on:{click:r.clearSelect}},[r._v(r._s(r.$L("\u53D6\u6D88\u9009\u62E9")))])]:r._e(),r.loadIng>0?s("div",{staticClass:"nav-load"},[s("Loading")],1):r._e(),s("div",{staticClass:"flex-full"}),s("div",{class:["switch-button",r.tableMode]},[s("div",{on:{click:function(h){r.tableMode="table"}}},[s("i",{staticClass:"taskfont"},[r._v("\uE66A")])]),s("div",{on:{click:function(h){r.tableMode="block"}}},[s("i",{staticClass:"taskfont"},[r._v("\uE60C")])])])],2),s("div",{staticClass:"file-drag",on:{drop:function(h){return h.preventDefault(),r.filePasteDrag(h,"drag")},dragover:function(h){return h.preventDefault(),r.fileDragOver(!0,h)},dragleave:function(h){return h.preventDefault(),r.fileDragOver(!1,h)}}},[r.tableMode==="block"?[r.fileList.length==0&&r.loadIng==0?s("div",{staticClass:"file-no",on:{contextmenu:function(h){return h.preventDefault(),r.handleContextmenu.apply(null,arguments)}}},[s("i",{staticClass:"taskfont"},[r._v("\uE60B")]),s("p",[r._v(r._s(r.$L("\u6CA1\u6709\u4EFB\u4F55\u6587\u4EF6")))])]):s("div",{staticClass:"file-list",on:{contextmenu:function(h){return h.preventDefault(),r.handleContextmenu.apply(null,arguments)}}},[s("ul",r._l(r.fileList,function(h){return s("li",{directives:[{name:"longpress",rawName:"v-longpress",value:r.handleLongpress,expression:"handleLongpress"}],class:{shear:r.shearIds.includes(h.id),highlight:r.selectIds.includes(h.id),operate:r.contextMenuVisible&&h.id===r.contextMenuItem.id},attrs:{"data-id":h.id},on:{click:function(I){return r.dropFile(h,"openCheckMenu")}}},[s("div",{staticClass:"file-check",class:{"file-checked":r.selectIds.includes(h.id)},on:{click:function(I){return I.stopPropagation(),r.dropFile(h,"select")}}},[s("Checkbox",{attrs:{value:r.selectIds.includes(h.id)}})],1),s("div",{staticClass:"file-menu",on:{click:function(I){return I.stopPropagation(),r.handleRightClick(I,h)}}},[s("Icon",{attrs:{type:"ios-more"}})],1),s("div",{class:`no-dark-before file-icon ${h.type}${h.share?" share":""}`},[h.share?[h.userid!=r.userId?s("UserAvatar",{staticClass:"share-avatar",attrs:{userid:h.userid,size:20}},[s("p",[r._v(r._s(r.$L("\u5171\u4EAB\u6743\u9650"))+": "+r._s(r.$L(h.permission==1?"\u8BFB/\u5199":"\u53EA\u8BFB")))])]):s("div",{staticClass:"share-icon no-dark-content"},[s("i",{staticClass:"taskfont"},[r._v("\uE757")])])]:r.isParentShare?[s("UserAvatar",{staticClass:"share-avatar",attrs:{userid:h.created_id,size:20}},[h.created_id!=h.userid?s("p",[s("strong",[r._v(r._s(r.$L("\u6210\u5458\u521B\u5EFA\u4E8E"))+": "+r._s(h.created_at))])]):s("p",[r._v(r._s(r.$L("\u6240\u6709\u8005\u521B\u5EFA\u4E8E"))+": "+r._s(h.created_at))])])]:r._e()],2),h._edit?s("div",{staticClass:"file-input"},[s("Input",{ref:"input_"+h.id,refInFor:!0,attrs:{size:"small",disabled:!!h._load},on:{"on-blur":function(I){return r.onBlur(h)},"on-keyup":function(I){return r.onKeyup(I,h)}},model:{value:h.newname,callback:function(I){r.$set(h,"newname",I)},expression:"item.newname"}}),h._load?s("div",{staticClass:"file-load"},[s("Loading")],1):r._e()],1):s("div",{staticClass:"file-name",attrs:{title:h.name}},[r._v(r._s(r.$A.getFileName(h)))])])}),0)])]:s("div",{staticClass:"file-table",on:{contextmenu:function(h){return h.preventDefault(),r.handleContextmenu.apply(null,arguments)}}},[s("Table",{attrs:{columns:r.columns,data:r.fileList,height:r.tableHeight,"no-data-text":r.$L("\u6CA1\u6709\u4EFB\u4F55\u6587\u4EF6"),"context-menu":"",stripe:""},on:{"on-cell-click":r.clickRow,"on-contextmenu":r.handleContextMenu,"on-select":r.handleTableSelect,"on-select-cancel":r.handleTableSelect,"on-select-all-cancel":r.handleTableSelect,"on-select-all":r.handleTableSelect,"on-sort-change":r.handleTableSort}})],1),r.dialogDrag?s("div",{staticClass:"drag-over",on:{click:function(h){r.dialogDrag=!1}}},[s("div",{staticClass:"drag-text"},[r._v(r._s(r.$L("\u62D6\u52A8\u5230\u8FD9\u91CC\u53D1\u9001")))])]):r._e()],2),s("div",{staticClass:"file-menu",style:r.contextMenuStyles},[s("Dropdown",{attrs:{trigger:"custom",visible:r.contextMenuVisible,"transfer-class-name":"page-file-dropdown-menu",transfer:""},on:{"on-click":r.handleContextClick,"on-clickoutside":r.handleClickContextMenuOutside,"on-visible-change":r.handleVisibleChangeMenu}},[s("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[r.contextMenuItem.id?[s("DropdownItem",{staticClass:"item-open",attrs:{name:"open"}},[r._v(" "+r._s(r.$L("\u6253\u5F00"))+" "),s("div",{staticClass:"open-name"},[r._v("\u201C"+r._s(r.contextMenuItem.name)+"\u201D")])]),r.searchKey?s("DropdownItem",{staticClass:"item-open",attrs:{name:"upperFolder"}},[r._v(" "+r._s(r.$L("\u5728\u4E0A\u5C42\u6587\u4EF6\u5939\u4E2D\u663E\u793A"))+" ")]):r._e(),s("DropdownItem",{attrs:{name:"select"}},[r._v(r._s(r.$L(r.selectIds.includes(r.contextMenuItem.id)?"\u53D6\u6D88\u9009\u62E9":"\u9009\u62E9")))]),s("Dropdown",{attrs:{placement:"right-start",transfer:""}},[s("DropdownItem",{attrs:{divided:"",name:"new:"},nativeOn:{click:function(h){h.stopPropagation()}}},[s("div",{staticClass:"arrow-forward-item"},[r._v(r._s(r.$L("\u65B0\u5EFA"))),s("Icon",{attrs:{type:"ios-arrow-forward"}})],1)]),s("DropdownMenu",{staticClass:"page-file-dropdown-menu",attrs:{slot:"list"},slot:"list"},r._l(r.types,function(h,I){return h.label?s("DropdownItem",{key:I,attrs:{divided:!!h.divided,name:`new:${h.value}`}},[s("div",{class:`no-dark-before file-item file-icon ${h.value}`},[r._v(r._s(r.$L(h.label)))])]):r._e()}),1)],1),s("DropdownItem",{attrs:{name:"rename",divided:""}},[r._v(r._s(r.$L("\u91CD\u547D\u540D")))]),s("DropdownItem",{attrs:{name:"copy",disabled:r.contextMenuItem.type=="folder"}},[r._v(r._s(r.$L("\u590D\u5236")))]),s("DropdownItem",{attrs:{name:"shear",disabled:r.contextMenuItem.userid!=r.userId}},[r._v(r._s(r.$L("\u526A\u5207")))]),r.contextMenuItem.userid==r.userId?s("DropdownItem",{attrs:{name:"share",divided:""}},[r._v(r._s(r.$L("\u5171\u4EAB")))]):r.contextMenuItem.share?s("DropdownItem",{attrs:{name:"outshare",divided:""}},[r._v(r._s(r.$L("\u9000\u51FA\u5171\u4EAB")))]):r._e(),s("DropdownItem",{attrs:{name:"send",disabled:r.contextMenuItem.type=="folder"}},[r._v(r._s(r.$L("\u53D1\u9001")))]),s("DropdownItem",{attrs:{name:"link",divided:r.contextMenuItem.userid!=r.userId&&!r.contextMenuItem.share,disabled:r.contextMenuItem.type=="folder"}},[r._v(r._s(r.$L("\u94FE\u63A5")))]),s("DropdownItem",{attrs:{name:"download",disabled:r.contextMenuItem.ext==""}},[r._v(r._s(r.$L("\u4E0B\u8F7D")))]),s("DropdownItem",{staticStyle:{color:"red"},attrs:{name:"delete",divided:""}},[r._v(r._s(r.$L("\u5220\u9664")))])]:r._l(r.types,function(h,I){return h.label?s("DropdownItem",{key:I,attrs:{divided:!!h.divided,name:`new:${h.value}`}},[s("div",{class:`no-dark-before file-item file-icon ${h.value}`},[r._v(r._s(r.$L(h.label)))])]):r._e()})],2)],1)],1)]),r.uploadShow&&r.uploadList.length>0?s("div",{staticClass:"file-upload-list"},[s("div",{staticClass:"upload-wrap"},[s("div",{staticClass:"title"},[r._v(" "+r._s(r.$L("\u4E0A\u4F20\u5217\u8868"))+" ("+r._s(r.uploadList.length)+") "),r.uploadList.find(function(h){var I=h.status;return I==="finished"})?s("em",{on:{click:r.uploadClear}},[r._v(r._s(r.$L("\u6E05\u7A7A\u5DF2\u5B8C\u6210")))]):r._e()]),s("ul",{staticClass:"content"},r._l(r.uploadList,function(h,I){return I<100?s("li",{key:I},[s("AutoTip",{staticClass:"file-name"},[r._v(r._s(r.uploadName(h)))]),h.status==="finished"&&h.response&&h.response.ret!==1?s("AutoTip",{staticClass:"file-error"},[r._v(r._s(h.response.msg))]):s("Progress",{attrs:{percent:r.uploadPercentageParse(h.percentage),"stroke-width":5}}),s("Icon",{staticClass:"file-close",attrs:{type:"ios-close-circle-outline"},on:{click:function(D){return r.uploadList.splice(I,1)}}})],1):r._e()}),0),s("Icon",{staticClass:"close",attrs:{type:"md-close"},on:{click:function(h){r.uploadShow=!1}}})],1)]):r._e(),s("Upload",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],ref:"fileUpload",attrs:{name:"files",action:r.actionUrl,headers:r.headers,multiple:!0,webkitdirectory:!1,format:r.uploadFormat,accept:r.uploadAccept,"show-upload-list":!1,"max-size":r.maxSize,"on-progress":r.handleProgress,"on-success":r.handleSuccess,"on-error":r.handleError,"on-format-error":r.handleFormatError,"on-exceeded-size":r.handleMaxSize,"before-upload":r.handleBeforeUpload}}),s("Upload",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],ref:"dirUpload",attrs:{name:"files",action:r.actionUrl,headers:r.headers,multiple:!0,webkitdirectory:!0,format:r.uploadFormat,accept:r.uploadAccept,"show-upload-list":!1,"max-size":r.maxSize,"on-progress":r.handleProgress,"on-success":r.handleSuccess,"on-error":r.handleError,"on-format-error":r.handleFormatError,"on-exceeded-size":r.handleMaxSize,"before-upload":r.handleBeforeUpload}}),s("Modal",{attrs:{title:r.$L("\u5171\u4EAB\u8BBE\u7F6E"),"mask-closable":!1,"footer-hide":""},model:{value:r.shareShow,callback:function(h){r.shareShow=h},expression:"shareShow"}},[s("Form",{staticClass:"page-file-share-form",attrs:{model:r.shareInfo,inline:""},nativeOn:{submit:function(h){h.preventDefault()}}},[s("FormItem",{staticClass:"share-userid",attrs:{prop:"userids"}},[s("UserInput",{attrs:{disabledChoice:r.shareAlready,"multiple-max":100,placeholder:r.$L("\u9009\u62E9\u5171\u4EAB\u6210\u5458")},model:{value:r.shareInfo.userids,callback:function(h){r.$set(r.shareInfo,"userids",h)},expression:"shareInfo.userids"}},[s("Option",{attrs:{slot:"option-prepend",value:0,label:r.$L("\u6240\u6709\u4EBA"),disabled:r.shareAlready.includes(0)},slot:"option-prepend"},[s("div",{staticClass:"user-input-option"},[s("div",{staticClass:"user-input-avatar"},[s("EAvatar",{staticClass:"avatar",attrs:{icon:"el-icon-s-custom"}})],1),s("div",{staticClass:"user-input-nickname"},[r._v(r._s(r.$L("\u6240\u6709\u4EBA")))]),s("div",{staticClass:"user-input-userid"},[r._v("All")])])])],1)],1),s("FormItem",[s("Select",{attrs:{placeholder:r.$L("\u6743\u9650")},model:{value:r.shareInfo.permission,callback:function(h){r.$set(r.shareInfo,"permission",h)},expression:"shareInfo.permission"}},[s("Option",{attrs:{value:1}},[r._v(r._s(r.$L("\u8BFB/\u5199")))]),s("Option",{attrs:{value:0}},[r._v(r._s(r.$L("\u53EA\u8BFB")))])],1)],1),s("FormItem",[s("Button",{attrs:{type:"primary",loading:r.shareLoad>0},on:{click:r.onShare}},[r._v(r._s(r.$L("\u5171\u4EAB")))])],1)],1),r.shareList.length>0?s("div",[s("div",{staticClass:"page-file-share-title"},[r._v(r._s(r.$L("\u5DF2\u5171\u4EAB\u6210\u5458"))+":")]),s("ul",{staticClass:"page-file-share-list"},r._l(r.shareList,function(h){return s("li",[h.userid==0?s("div",{staticClass:"all-avatar"},[s("EAvatar",{staticClass:"avatar-text",attrs:{icon:"el-icon-s-custom"}}),s("span",{staticClass:"avatar-name"},[r._v(r._s(r.$L("\u6240\u6709\u4EBA")))])],1):s("UserAvatar",{attrs:{size:32,userid:h.userid,showName:"",tooltipDisabled:""}}),s("Select",{attrs:{placeholder:r.$L("\u6743\u9650")},on:{"on-change":function(I){return r.upShare(h)}},model:{value:h.permission,callback:function(I){r.$set(h,"permission",I)},expression:"item.permission"}},[s("Option",{attrs:{value:1}},[r._v(r._s(r.$L("\u8BFB/\u5199")))]),s("Option",{attrs:{value:0}},[r._v(r._s(r.$L("\u53EA\u8BFB")))]),s("Option",{staticClass:"delete",attrs:{value:-1}},[r._v(r._s(r.$L("\u5220\u9664")))])],1)],1)}),0)]):r._e()],1),s("Modal",{attrs:{title:r.$L("\u53D1\u9001\u6587\u4EF6"),"mask-closable":!1},model:{value:r.sendShow,callback:function(h){r.sendShow=h},expression:"sendShow"}},[s("DialogSelect",{model:{value:r.sendData,callback:function(h){r.sendData=h},expression:"sendData"}}),s("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[s("Button",{attrs:{type:"default"},on:{click:function(h){r.sendShow=!1}}},[r._v(r._s(r.$L("\u53D6\u6D88")))]),s("Button",{attrs:{type:"primary",loading:r.sendLoad},on:{click:r.onSendFile}},[r._v(r._s(r.$L("\u53D1\u9001\u6587\u4EF6")))])],1)],1),s("Modal",{attrs:{title:r.$L("\u6587\u4EF6\u94FE\u63A5"),"mask-closable":!1},model:{value:r.linkShow,callback:function(h){r.linkShow=h},expression:"linkShow"}},[s("div",[s("div",{staticStyle:{margin:"-10px 0 8px"}},[r._v(r._s(r.$L("\u6587\u4EF6\u540D\u79F0"))+": "+r._s(r.linkData.name))]),s("Input",{ref:"linkInput",attrs:{type:"textarea",rows:3,readonly:""},on:{"on-focus":r.linkFocus},model:{value:r.linkData.url,callback:function(h){r.$set(r.linkData,"url",h)},expression:"linkData.url"}}),s("div",{staticClass:"form-tip",staticStyle:{"padding-top":"6px"}},[r._v(r._s(r.$L("\u53EF\u901A\u8FC7\u6B64\u94FE\u63A5\u6D4F\u89C8\u6587\u4EF6\u3002"))),s("a",{attrs:{href:"javascript:void(0)"},on:{click:r.linkCopy}},[r._v(r._s(r.$L("\u70B9\u51FB\u590D\u5236\u94FE\u63A5")))])])],1),s("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[s("Button",{attrs:{type:"default"},on:{click:function(h){r.linkShow=!1}}},[r._v(r._s(r.$L("\u53D6\u6D88")))]),s("Poptip",{staticStyle:{"margin-left":"8px"},attrs:{confirm:"",placement:"bottom","ok-text":r.$L("\u786E\u5B9A"),"cancel-text":r.$L("\u53D6\u6D88"),transfer:""},on:{"on-ok":function(h){return r.linkGet(!0)}}},[s("div",{attrs:{slot:"title"},slot:"title"},[s("p",[s("strong",[r._v(r._s(r.$L("\u6CE8\u610F\uFF1A\u5237\u65B0\u5C06\u5BFC\u81F4\u539F\u6765\u7684\u94FE\u63A5\u5931\u6548\uFF01")))])])]),s("Button",{attrs:{type:"primary",loading:r.linkLoad>0}},[r._v(r._s(r.$L("\u5237\u65B0")))])],1)],1)]),s("DrawerOverlay",{staticClass:"page-file-drawer",attrs:{beforeClose:r.fileBeforeClose,"mask-closable":!1},model:{value:r.fileShow,callback:function(h){r.fileShow=h},expression:"fileShow"}},[r.isPreview?s("FilePreview",{attrs:{file:r.fileInfo}}):s("FileContent",{ref:"fileContent",attrs:{file:r.fileInfo},model:{value:r.fileShow,callback:function(h){r.fileShow=h},expression:"fileShow"}})],1),s("PreviewImage",{attrs:{index:r.imageIndex,list:r.imageList},model:{value:r.imageShow,callback:function(h){r.imageShow=h},expression:"imageShow"}}),s("Modal",{attrs:{title:r.$L(r.pasteTitle),"cancel-text":r.$L("\u53D6\u6D88"),"ok-text":r.$L("\u7ACB\u5373\u4E0A\u4F20"),"enter-ok":!0},on:{"on-ok":r.pasteSend},model:{value:r.pasteShow,callback:function(h){r.pasteShow=h},expression:"pasteShow"}},[s("ul",{staticClass:"dialog-wrapper-paste",class:r.pasteWrapperClass},r._l(r.pasteItem,function(h){return s("li",[h.type=="image"?s("img",{attrs:{src:h.result}}):s("div",[r._v(r._s(r.$L("\u6587\u4EF6"))+": "+r._s(h.name)+" ("+r._s(r.$A.bytesToSize(h.size))+")")])])}),0)])],1)},pg=[];const gg=()=>lu(()=>import("./FilePreview.07a4bed5.js"),["js/build/FilePreview.07a4bed5.js","js/build/app.feefc813.js","js/build/app.961ba03c.css","js/build/IFrame.5edcf1c5.js"]),_g=()=>lu(()=>import("./FileContent.209e43d5.js"),["js/build/FileContent.209e43d5.js","js/build/FileContent.5c6a1e1c.css","js/build/app.feefc813.js","js/build/app.961ba03c.css","js/build/IFrame.5edcf1c5.js"]),ot={sort:null,mode:null},vg={components:{DialogSelect:cg,PreviewImage:ag,FilePreview:gg,DrawerOverlay:fg,UserInput:og,FileContent:_g},directives:{longpress:hg},data(){return{loadIng:0,searchKey:"",searchTimeout:null,types:[{value:"folder",label:"\u65B0\u5EFA\u6587\u4EF6\u5939",name:"\u6587\u4EF6\u5939"},{value:"upload",label:"\u4E0A\u4F20\u6587\u4EF6",name:null,divided:!0},{value:"updir",label:"\u4E0A\u4F20\u6587\u4EF6\u5939",name:null},{value:"document",label:"\u6587\u672C",name:"\u6587\u672C",divided:!0},{value:"drawio",label:"\u56FE\u8868",name:"\u56FE\u8868"},{value:"mind",label:"\u601D\u7EF4\u5BFC\u56FE",name:"\u5BFC\u56FE"},{value:"word",label:"Word \u6587\u6863",name:"Word",divided:!0},{value:"excel",label:"Excel \u5DE5\u4F5C\u8868",name:"Excel"},{value:"ppt",label:"PPT \u6F14\u793A\u6587\u7A3F",name:"PPT"}],tableMode:"",columns:[],shareShow:!1,shareInfo:{id:0,userid:0,permission:1},shareList:[],shareLoad:0,sendShow:!1,sendLoad:!1,sendData:{dialogids:[],userids:[]},linkShow:!1,linkData:{},linkLoad:0,fileShow:!1,fileInfo:{permission:-1},imageShow:!1,imageIndex:0,imageList:[],uploadDir:!1,uploadIng:0,uploadShow:!1,uploadList:[],uploadFormat:[],uploadAccept:"",maxSize:1024e3,contextMenuItem:{},contextMenuVisible:!1,contextMenuStyles:{top:0,left:0},shearIds:[],selectIds:[],dialogDrag:!1,pasteShow:!1,pasteFile:[],pasteItem:[]}},async beforeRouteEnter(r,p,s){ot.sort=await $A.IDBJson("cacheFileSort"),ot.mode=await $A.IDBString("fileTableMode"),s()},created(){this.tableMode=ot.mode,this.columns=[{type:"selection",width:50,align:"right"},{title:this.$L("\u6587\u4EF6\u540D"),key:"name",minWidth:300,sortable:!0,render:(r,{row:p})=>{let s=[];if(!/^\d+$/.test(p.id))return s.push(r("Input",{props:{elementId:"input_"+p.id,value:p.newname,autofocus:!0,disabled:!!p._load},style:{width:"auto"},on:{"on-change":I=>{p.newname=I.target.value},"on-blur":()=>{const I=this.fileLists.find(({id:D})=>D==p.id);I&&(I.newname=p.newname,this.onBlur(I))},"on-enter":()=>{const I=this.fileLists.find(({id:D})=>D==p.id);I&&(I.newname=p.newname,this.onEnter(I))}}})),r("div",{class:"file-nbox"},[r("div",{class:`no-dark-before file-name file-icon ${p.type}`},s)]);{s.push(r("QuickEdit",{props:{value:p.name,autoEdit:!!p._edit,clickOutSide:!1},on:{"on-edit-change":ke=>{const Te=this.fileLists.find(({id:an})=>an==p.id);Te&&setTimeout(()=>{this.setEdit(Te.id,ke)},100)},"on-update":(ke,Te)=>{const an=this.fileLists.find(({id:mn})=>mn==p.id);an&&(an.newname=ke,this.onEnter(an)),Te()}}},[r("AutoTip",{props:{placement:"right"}},$A.getFileName(p))]));const I=[];p.share?p.userid!=this.userId?I.push(r("UserAvatar",{props:{userid:p.userid,size:20}})):I.push(r("i",{class:"taskfont",domProps:{innerHTML:""}})):this.isParentShare&&I.push(r("UserAvatar",{props:{userid:p.created_id,size:20}},[p.created_id!=p.userid?r("p",[r("strong",this.$L("\u6210\u5458\u521B\u5EFA\u4E8E")+": "+p.created_at)]):r("p",this.$L("\u6240\u6709\u8005\u521B\u5EFA\u4E8E")+": "+p.created_at)]));const D=this.shearIds.includes(p.id)?" shear":"",K=p.share?" share":"";return r("div",{class:`file-nbox${D}`,attrs:{"data-id":p.id}},[r("div",{class:`no-dark-before file-name file-icon ${p.type}${K}`},s),I])}}},{title:this.$L("\u5927\u5C0F"),key:"size",width:110,resizable:!0,sortable:!0,render:(r,{row:p})=>p.type=="folder"?r("div","-"):r("AutoTip",$A.bytesToSize(p.size))},{title:this.$L("\u7C7B\u578B"),key:"type",width:110,resizable:!0,sortable:!0,render:(r,{row:p})=>{let s=this.types.find(({value:h,name:I})=>h==p.type&&I);return s?r("AutoTip",this.$L(s.name)):r("div",(p.ext||p.type).toUpperCase())}},{title:this.$L("\u6240\u6709\u8005"),key:"userid",width:130,resizable:!0,sortable:!0,render:(r,{row:p})=>r("UserAvatar",{props:{size:18,userid:p.userid,showIcon:!1,showName:!0}})},{title:this.$L("\u6700\u540E\u4FEE\u6539"),key:"updated_at",width:168,resizable:!0,sortable:!0}].map(r=>(r.key===ot.sort.key&&(r.sortType=ot.sort.order),r))},mounted(){!this.tableMode&&this.$isEEUiApp&&(this.tableMode="block"),this.uploadAccept=this.uploadFormat.map(r=>"."+r).join(",")},activated(){this.getFileList()},computed:{...ug(["userIsAdmin","userInfo","fileLists","wsOpenNum"]),pid(){const{folderId:r}=this.$route.params;return parseInt(/^\d+$/.test(r)?r:0)},fid(){const{fileId:r}=this.$route.params;return parseInt(/^\d+$/.test(r)?r:0)},actionUrl(){return $A.apiUrl("file/content/upload?pid="+this.pid)},headers(){return{fd:$A.getSessionStorageString("userWsFd"),token:this.userToken}},shareAlready(){let r=this.shareList?this.shareList.map(({userid:p})=>p):[];return this.shareInfo.userid&&r.push(this.shareInfo.userid),r},fileList(){const{fileLists:r,searchKey:p,pid:s,selectIds:h}=this;return $A.cloneJSON(Ci.exports.sortBy(r.filter(D=>p?D.name.indexOf(p)!==-1:D.pid==s),D=>(D.type=="folder"?"a":"b")+D.name)).map(D=>(D._checked=h.includes(D.id),D))},shearFirst(){const{fileLists:r,shearIds:p}=this;return p.length===0?null:r.find(s=>s.id==p[0])},navigator(){let{pid:r,fileLists:p}=this,s=[];for(;r>0;){let h=p.find(({id:I,permission:D})=>I==r&&D>-1);h?(s.unshift(h),r=h.pid):r=0}return s},isPreview(){return this.windowSmall||this.fileInfo.permission===0},isParentShare(){const{navigator:r}=this;return!!r.find(({share:p})=>p)},pasteTitle(){const{pasteItem:r}=this;let p=r.find(({type:h})=>h=="image"),s=r.find(({type:h})=>h!="image");return p&&s?"\u4E0A\u4F20\u6587\u4EF6/\u56FE\u7247":p?"\u4E0A\u4F20\u56FE\u7247":"\u4E0A\u4F20\u6587\u4EF6"},pasteWrapperClass(){return this.pasteItem.find(({type:r})=>r!=="image")?["multiple"]:[]},tableHeight(){return this.windowLarge?Math.max(300,this.windowHeight-160):Math.max(300,this.windowHeight-200)}},watch:{pid(){this.searchKey="",this.selectIds=[],this.getFileList()},fid(){this.openFileJudge()},tableMode(r){$A.IDBSave("fileTableMode",r)},fileShow(r){r||(this.browseFile(0),this.windowSmall&&$A.onBlur(!0))},imageShow(r){r||this.browseFile(0)},navigator:{handler(){this.$nextTick(r=>{this.$refs[`nav_${this.pid}`]&&$A.scrollToView(this.$refs[`nav_${this.pid}`][0],!1)})},immediate:!0},selectIds:{handler(r){r.length>0&&(this.shearIds=[])},deep:!0},shearIds:{handler(r){r.length>0&&(this.selectIds=[])},deep:!0},wsOpenNum(r){r<=1||(this.wsOpenTimeout&&clearTimeout(this.wsOpenTimeout),this.wsOpenTimeout=setTimeout(()=>{this.$route.name=="manage-file"&&this.getFileList()},5e3))}},methods:{getFileList(){this.$route.name==="manage-file"&&(this.loadIng++,this.$store.dispatch("getFiles",this.pid).then(async()=>{this.loadIng--,this.openFileJudge(),await $A.IDBSet("fileFolderId",this.pid)}).catch(({msg:r})=>{this.loadIng--,$A.modalError({content:r,onOk:()=>{this.browseFolder(0)}})}))},addFile(r){if(r){if(r=="upload"){this.uploadDir=!1,this.$refs.fileUpload.handleClick();return}else if(r=="updir"){this.uploadDir=!0,this.$refs.dirUpload.handleClick();return}}else return;let p=$A.randomString(8);this.fileLists.push({_edit:!0,pid:this.pid,id:p,type:r,name:"",newname:this.$L("\u672A\u547D\u540D")}),this.autoBlur(p)},handleLongpress(r,p){const s=$A.getAttr(p,"data-id"),h=this.fileList.find(I=>I.id==s);!h||this.handleRightClick(r,h)},handleContextmenu(r){this.windowLarge&&this.handleRightClick(r)},handleRightClick(r,p,s){this.contextMenuItem=$A.isJson(p)?p:{},this.contextMenuVisible&&this.handleClickContextMenuOutside(),this.$nextTick(()=>{const I=this.$refs.fileWrapper.getBoundingClientRect();this.contextMenuStyles={left:`${r.clientX-I.left}px`,top:`${r.clientY-I.top}px`},s===!0&&(this.contextMenuStyles.top=`${r.target.clientHeight+r.target.offsetTop-5}px`),this.contextMenuVisible=!0})},browseFolder(r){r>0?this.goForward({name:"manage-file",params:{folderId:r,fileId:null}}):(this.searchKey="",this.goForward({name:"manage-file"}))},browseFile(r){r>0?this.goForward({name:"manage-file",params:{folderId:this.pid,fileId:r}}):this.browseFolder(this.pid)},openFileJudge(){if(this.$route.name!=="manage-file"){this.fileShow=!1,this.imageShow=!1;return}if(this.fid<=0){this.fileShow=!1,this.imageShow=!1;return}const r=this.fileList.find(({id:p})=>p===this.fid);if(!r){this.fileShow=!1,this.imageShow=!1;return}if(r.image_url){const p=this.fileList.filter(({image_url:s})=>!!s);if(p.length>0){this.imageIndex=p.findIndex(({id:s})=>r.id===s),this.imageList=p.map(s=>s.image_width?{src:s.image_url,width:s.image_width,height:s.image_height}:s.image_url),this.imageShow=!0;return}}if(this.$Electron||this.$isEEUiApp){this.openFileSingle(r);return}this.fileInfo=r,this.fileShow=!0},openFileSingle(r){const p=`/single/file/${r.id}`;this.$Electron?this.$Electron.sendMessage("windowRouter",{name:`file-${r.id}`,path:p,userAgent:"/hideenOfficeTitle/",force:!1,config:{title:$A.getFileName(r),titleFixed:!0,parent:null,width:Math.min(window.screen.availWidth,1440),height:Math.min(window.screen.availHeight,900)},webPreferences:{nodeIntegrationInSubFrames:r.type==="drawio"}}):this.$isEEUiApp?$A.eeuiAppOpenPage({pageType:"app",pageTitle:$A.getFileName(r),url:"web.js",params:{titleFixed:!0,allowAccess:!0,url:$A.rightDelete(window.location.href,window.location.hash)+`#${p}`}}):window.open($A.apiUrl(`..${p}`)),this.browseFile(0)},clickRow(r,p){p.type=="selection"?this.dropFile(r,"select"):this.dropFile(r,"open")},handleContextMenu(r,p){this.handleRightClick(p,this.fileLists.find(({id:s})=>s===r.id)||{})},handleContextClick(r){$A.leftExists(r,"new:")?this.addFile($A.leftDelete(r,"new:")):this.dropFile(this.contextMenuItem,r)},handleClickContextMenuOutside(){this.contextMenuVisible=!1},handleVisibleChangeMenu(r){let p=this.fileLists.find(({_highlight:s})=>!!s);p&&this.$set(p,"_highlight",!1),r&&this.contextMenuItem.id&&this.$set(this.contextMenuItem,"_highlight",!0)},dropFile(r,p){switch(p){case"open":case"openCheckMenu":if(p==="openCheckMenu"&&this.contextMenuVisible||this.fileList.findIndex(h=>h._edit===!0)>-1||r._load)return;r.type=="folder"?this.browseFolder(r.id):this.browseFile(r.id);break;case"upperFolder":this.searchKey="",this.browseFolder(r.pid);break;case"select":let s=this.selectIds.findIndex(h=>h==r.id);s>-1?this.selectIds.splice(s,1):this.selectIds.push(r.id);break;case"rename":this.setEdit(r.id,!0),this.autoBlur(r.id);break;case"copy":this.$store.dispatch("call",{url:"file/copy",data:{id:r.id}}).then(({data:h,msg:I})=>{$A.messageSuccess(I),this.$store.dispatch("saveFile",h)}).catch(({msg:h})=>{$A.modalError(h)});break;case"shear":this.shearIds=[r.id];break;case"shearSelect":this.shearIds=$A.cloneJSON(this.selectIds);break;case"send":this.sendData={dialogids:[],userids:[],file_id:r.id},this.sendShow=!0;break;case"share":this.shareInfo={id:r.id,userid:r.userid,permission:1},this.shareList=[],this.shareShow=!0,this.getShare();break;case"outshare":$A.modalConfirm({content:"\u4F60\u786E\u5B9A\u8981\u9000\u51FA\u3010"+r.name+"\u3011\u5171\u4EAB\u6210\u5458\u5417\uFF1F",loading:!0,onOk:()=>new Promise((h,I)=>{this.$store.dispatch("call",{url:"file/share/out",data:{id:r.id}}).then(({msg:D})=>{h(D),this.$store.dispatch("forgetFile",r.id)}).catch(({msg:D})=>{I(D)})})});break;case"link":this.linkData={id:r.id,name:r.name},this.linkShow=!0,this.linkGet();break;case"download":if(!r.ext)return;$A.modalConfirm({title:"\u4E0B\u8F7D\u6587\u4EF6",content:`${r.name}.${r.ext} (${$A.bytesToSize(r.size)})`,okText:"\u7ACB\u5373\u4E0B\u8F7D",onOk:()=>{this.$store.dispatch("downUrl",$A.apiUrl(`file/content?id=${r.id}&down=yes`))}});break;case"delete":this.deleteFile([r.id]);break}},onSendFile(){if($A.arrayLength(this.sendData.dialogids)===0&&$A.arrayLength(this.sendData.userids)===0){$A.messageWarning("\u8BF7\u9009\u62E9\u8F6C\u53D1\u5BF9\u8BDD\u6216\u6210\u5458");return}this.sendLoad=!0,this.$store.dispatch("call",{url:"dialog/msg/sendfileid",data:this.sendData}).then(({data:r,msg:p})=>{this.sendShow=!1,this.$store.dispatch("saveDialogMsg",r.msgs),this.$store.dispatch("updateDialogLastMsg",r.msgs),$A.messageSuccess(p)}).catch(({msg:r})=>{$A.modalError(r)}).finally(r=>{this.sendLoad=!1})},linkGet(r){this.linkLoad++,this.$store.dispatch("call",{url:"file/link",data:{id:this.linkData.id,refresh:r===!0?"yes":"no"}}).then(({data:p})=>{this.linkData=Object.assign(p,{id:this.linkData.id,name:this.linkData.name}),this.linkFocus()}).catch(({msg:p})=>{this.linkShow=!1,$A.modalError(p)}).finally(p=>{this.linkLoad--})},linkCopy(){!this.linkData.url||(this.linkFocus(),this.$copyText(this.linkData.url).then(r=>{$A.messageSuccess("\u590D\u5236\u6210\u529F")}).catch(r=>{$A.messageError("\u590D\u5236\u5931\u8D25")}))},linkFocus(){this.$nextTick(r=>{this.$refs.linkInput.focus({cursor:"all"})})},shearTo(){if(this.shearIds.length!=0){if(this.isParentShare){const r=this.fileLists.find(({id:p,share:s})=>s&&this.shearIds.includes(p));if(r){$A.modalError(`${r.name} \u5F53\u524D\u6B63\u5728\u5171\u4EAB\uFF0C\u65E0\u6CD5\u79FB\u52A8\u5230\u53E6\u4E00\u4E2A\u5171\u4EAB\u6587\u4EF6\u5939\u5185`);return}}this.$store.dispatch("call",{url:"file/move",data:{ids:this.shearIds,pid:this.pid}}).then(({data:r,msg:p})=>{$A.messageSuccess(p),this.shearIds=[],this.$store.dispatch("saveFile",r)}).catch(({msg:r})=>{$A.modalError(r)})}},deleteFile(r){if(r.length===0)return;const p=this.fileLists.find(D=>D.id==r[0])||{};let h=!r.find(D=>this.fileLists.find(K=>K.type!="folder"&&K.id==D))?"\u6587\u4EF6\u5939":"\u6587\u4EF6",I=`\u3010${p.name}\u3011\u7B49${r.length}\u4E2A${h}`;r.length===1&&(I=`\u3010${p.name}\u3011${h}`),$A.modalConfirm({title:"\u5220\u9664"+h,content:"\u4F60\u786E\u5B9A\u8981\u5220\u9664"+I+"\u5417\uFF1F",loading:!0,onOk:()=>new Promise((D,K)=>{this.$store.dispatch("call",{url:"file/remove",data:{ids:r}}).then(({msg:ke})=>{D(ke),this.$store.dispatch("forgetFile",r),this.selectIds=this.selectIds.filter(Te=>!r.includes(Te))}).catch(({msg:ke})=>{K(ke)})})})},autoBlur(r){this.$nextTick(()=>{if(this.$refs["input_"+r])this.$refs["input_"+r][0].focus({cursor:"all"});else if(document.getElementById("input_"+r)){const p=document.getElementById("input_"+r),s=p.value.length;p.focus(),p.setSelectionRange(0,s)}})},onBlur(r){this.fileLists.find(({id:p,_edit:s})=>p==r.id&&!s)||this.onEnter(r)},onKeyup(r,p){r.keyCode===13?this.onEnter(p):r.keyCode===27&&(!/^\d+$/.test(p.id)?(p.newname="",this.$store.dispatch("forgetFile",p.id)):(this.setLoad(p.id,!1),this.setEdit(p.id,!1)))},onEnter(r){const p=!/^\d+$/.test(r.id);if(!r.newname){p?this.$store.dispatch("forgetFile",r.id):this.setEdit(r.id,!1);return}if(r.newname==r.name){this.setEdit(r.id,!1);return}r._load||(this.setLoad(r.id,!0),this.$store.dispatch("call",{url:"file/add",data:{id:p?0:r.id,pid:r.pid,name:r.newname,type:r.type}}).then(({data:s,msg:h})=>{$A.messageSuccess(h),this.setLoad(r.id,!1),this.setEdit(r.id,!1),this.$store.dispatch("saveFile",s),p&&(this.$store.dispatch("forgetFile",r.id),this.shakeFile(s.id))}).catch(({msg:s})=>{$A.modalError(s),this.setLoad(r.id,!1),p&&this.$store.dispatch("forgetFile",r.id)}))},setEdit(r,p){const s=this.$store.state.fileLists.find(({id:h})=>h==r);s&&(this.$set(s,"_edit",p),p&&this.$set(s,"newname",s.name))},setLoad(r,p){const s=this.$store.state.fileLists.find(({id:h})=>h==r);s&&this.$set(s,"_load",p)},onSearchFocus(){this.$nextTick(()=>{this.$refs.searchInput.focus({cursor:"end"})})},onSearchChange(){this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchKey.trim()!=""&&(this.searchTimeout=setTimeout(()=>{this.loadIng++,this.$store.dispatch("searchFiles",this.searchKey.trim()).then(()=>{this.loadIng--}).catch(()=>{this.loadIng--})},600))},getShare(){this.shareLoad++,this.$store.dispatch("call",{url:"file/share",data:{id:this.shareInfo.id}}).then(({data:r})=>{r.id==this.shareInfo.id&&(this.shareList=r.list.map(p=>(p._permission=p.permission,p)))}).catch(({msg:r})=>{this.shareShow=!1,$A.modalError(r)}).finally(r=>{this.shareLoad--})},onShare(r=!1){if(this.shareInfo.userids.length==0){$A.messageWarning("\u8BF7\u9009\u62E9\u5171\u4EAB\u6210\u5458");return}this.shareLoad++,this.$store.dispatch("call",{url:"file/share/update",data:Object.assign(this.shareInfo,{force:r===!0?1:0})}).then(({data:p,msg:s})=>{$A.messageSuccess(s),this.$store.dispatch("saveFile",p),this.$set(this.shareInfo,"userids",[]),this.getShare()}).catch(({ret:p,msg:s})=>{p===-3001?$A.modalConfirm({content:"\u6B64\u6587\u4EF6\u5939\u5185\u5DF2\u6709\u5171\u4EAB\u6587\u4EF6\u5939\uFF0C\u5B50\u6587\u4EF6\u7684\u5171\u4EAB\u72B6\u6001\u5C06\u88AB\u53D6\u6D88\uFF0C\u662F\u5426\u7EE7\u7EED\uFF1F",onOk:()=>{this.onShare(!0)}}):$A.modalError(s)}).finally(p=>{this.shareLoad--})},upShare(r,p=!1){r.loading!==!0&&(r.loading=!0,this.$store.dispatch("call",{url:"file/share/update",data:{id:this.shareInfo.id,userids:[r.userid],permission:r.permission,force:p===!0?1:0}}).then(({data:s,msg:h})=>{if(r.loading=!1,r._permission=r.permission,$A.messageSuccess(h),this.$store.dispatch("saveFile",s),r.permission===-1){let I=this.shareList.findIndex(({userid:D})=>D==r.userid);I>-1&&this.shareList.splice(I,1)}}).catch(({ret:s,msg:h})=>{r.loading=!1,s===-3001?$A.modalConfirm({content:"\u6B64\u6587\u4EF6\u5939\u5185\u5DF2\u6709\u5171\u4EAB\u6587\u4EF6\u5939\uFF0C\u5B50\u6587\u4EF6\u7684\u5171\u4EAB\u72B6\u6001\u5C06\u88AB\u53D6\u6D88\uFF0C\u662F\u5426\u7EE7\u7EED\uFF1F",onOk:()=>{this.upShare(r,!0)},onCancel:()=>{r.permission=r._permission}}):(r.permission=r._permission,$A.modalError(h))}))},uploadName(r){return $A.getObject(r,"response.data.full_name")||r.name},handleTableSort({key:r,order:p}){$A.IDBSave("cacheFileSort",["asc","desc"].includes(p)?{key:r,order:p}:{})},handleTableSelect(r){this.selectIds=r.map(p=>p.id)},clearSelect(){this.selectIds=[]},clearShear(){this.shearIds=[]},shakeFile(r){this.$nextTick(p=>{const s=$A(this.$el).find(`[data-id="${r}"]`);s.length>0&&($A.scrollIntoViewIfNeeded(s[0]),$A(s[0]).addClass("common-shake"),setTimeout(h=>$A(s[0]).removeClass("common-shake"),800))})},pasteDragNext(r,p){let s=p==="drag"?r.dataTransfer.files:r.clipboardData.files;s=Array.prototype.slice.call(s),s.length>0&&(r.preventDefault(),this.pasteFile=[],this.pasteItem=[],s.some(h=>{const I={type:$A.getMiddle(h.type,null,"/"),name:h.name,size:h.size,result:null};if(I.type==="image"){const D=new FileReader;D.readAsDataURL(h),D.onload=({target:K})=>{I.result=K.result,this.pasteFile.push(h),this.pasteItem.push(I),this.pasteShow=!0}}else this.pasteFile.push(h),this.pasteItem.push(I),this.pasteShow=!0}))},filePasteDrag(r,p){this.dialogDrag=!1,this.pasteDragNext(r,p)},fileDragOver(r,p){let s=this.__dialogDrag=$A.randomString(8);if(!r)setTimeout(()=>{s===this.__dialogDrag&&(this.dialogDrag=r)},150);else{if(p.dataTransfer.effectAllowed==="move")return;this.dialogDrag=!0}},pasteSend(){const r=[];this.pasteFile.some(p=>{r.find(s=>s===p.name)||(r.push(p.name),this.$refs.fileUpload.upload(p))})},fileBeforeClose(){return new Promise(r=>{if(!this.$refs.fileContent){r();return}if(this.$refs.fileContent.equalContent){r();return}$A.modalConfirm({content:"\u4FEE\u6539\u7684\u5185\u5BB9\u5C1A\u672A\u4FDD\u5B58\uFF0C\u786E\u5B9A\u8981\u653E\u5F03\u4FEE\u6539\u5417\uFF1F",cancelText:"\u53D6\u6D88",okText:"\u653E\u5F03",onOk:()=>{r()}})})},uploadUpdate(r){r.forEach(p=>{let s=this.uploadList.findIndex(({uid:h})=>h==p.uid);s>-1?this.uploadList.splice(s,1,p):this.uploadList.unshift(p)})},uploadClear(){this.uploadList=this.uploadList.filter(({status:r})=>r!=="finished"),this.$refs.fileUpload.clearFiles(),this.$refs.dirUpload.clearFiles()},uploadPercentageParse(r){return parseInt(r,10)},handleProgress(r,p,s){p._uploadIng===void 0&&(p._uploadIng=!0,this.uploadIng++),this.uploadUpdate(s)},handleSuccess(r,p,s){this.uploadIng--,this.uploadUpdate(s),r.ret===1?this.$store.dispatch("saveFile",r.data):$A.modalWarning({title:"\u4E0A\u4F20\u5931\u8D25",content:"\u6587\u4EF6 "+p.name+" \u4E0A\u4F20\u5931\u8D25\uFF0C"+r.msg})},handleError(r,p,s){this.uploadIng--,this.uploadUpdate(s)},handleFormatError(r){this.uploadDir||$A.modalWarning({title:"\u6587\u4EF6\u683C\u5F0F\u4E0D\u6B63\u786E",content:"\u6587\u4EF6 "+r.name+" \u683C\u5F0F\u4E0D\u6B63\u786E\uFF0C\u4EC5\u652F\u6301\u4E0A\u4F20\uFF1A"+this.uploadFormat.join(",")})},handleMaxSize(r){$A.modalWarning({title:"\u8D85\u51FA\u6587\u4EF6\u5927\u5C0F\u9650\u5236",content:"\u6587\u4EF6 "+r.name+" \u592A\u5927\uFF0C\u4E0D\u80FD\u8D85\u8FC7\uFF1A"+$A.bytesToSize(this.maxSize*1024)+"\u3002"})},handleBeforeUpload(){return this.uploadShow=!0,!0}}},uu={};var mg=lg(vg,dg,pg,!1,wg,null,null,null);function wg(r){for(let p in uu)this[p]=uu[p]}var Sg=function(){return mg.exports}();export{Sg as default}; diff --git a/public/js/build/file.2fac1b66.js b/public/js/build/file.880d0f68.js similarity index 88% rename from public/js/build/file.2fac1b66.js rename to public/js/build/file.880d0f68.js index a4ec89d38..3547f7595 100644 --- a/public/js/build/file.2fac1b66.js +++ b/public/js/build/file.880d0f68.js @@ -1 +1 @@ -import n from"./FileContent.50f8fd54.js";import l from"./FilePreview.8438d32b.js";import{n as s}from"./app.90cb6e79.js";import"./IFrame.a3e09c0b.js";var a=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"single-file"},[t("PageTitle",{attrs:{title:e.pageName}}),e.loadIng>0?t("Loading"):e.fileInfo?[e.isPreview?t("FilePreview",{attrs:{code:e.code,file:e.fileInfo,historyId:e.historyId,headerShow:!e.$isEEUiApp}}):t("FileContent",{attrs:{file:e.fileInfo},model:{value:e.fileShow,callback:function(r){e.fileShow=r},expression:"fileShow"}})]:e._e()],2)},f=[];const u={components:{FilePreview:l,FileContent:n},data(){return{loadIng:0,code:null,fileShow:!0,fileInfo:null}},mounted(){},computed:{historyId(){return this.$route.query?$A.runNum(this.$route.query.history_id):0},isPreview(){return this.windowSmall||this.code||this.historyId>0||this.fileInfo&&this.fileInfo.permission===0},pageName(){let e=this.fileInfo?this.fileInfo.name:"";return this.$route.query&&this.$route.query.history_at&&(e+=` [${this.$route.query.history_at}]`),e}},watch:{$route:{handler(){this.getInfo()},immediate:!0}},methods:{getInfo(){let{codeOrFileId:e}=this.$route.params,i={id:e};if(/^\d+$/.test(e))this.code=null;else if(e)this.code=e;else return;setTimeout(t=>{this.loadIng++},600),this.$store.dispatch("call",{url:"file/one",data:i}).then(({data:t})=>{this.fileInfo=t}).catch(({msg:t})=>{$A.modalError({content:t,onOk:()=>{window.close()}})}).finally(t=>{this.loadIng--})}}},o={};var h=s(u,a,f,!1,d,"fab0e29c",null,null);function d(e){for(let i in o)this[i]=o[i]}var I=function(){return h.exports}();export{I as default}; +import n from"./FileContent.209e43d5.js";import l from"./FilePreview.07a4bed5.js";import{n as s}from"./app.feefc813.js";import"./IFrame.5edcf1c5.js";var a=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"single-file"},[t("PageTitle",{attrs:{title:e.pageName}}),e.loadIng>0?t("Loading"):e.fileInfo?[e.isPreview?t("FilePreview",{attrs:{code:e.code,file:e.fileInfo,historyId:e.historyId,headerShow:!e.$isEEUiApp}}):t("FileContent",{attrs:{file:e.fileInfo},model:{value:e.fileShow,callback:function(r){e.fileShow=r},expression:"fileShow"}})]:e._e()],2)},f=[];const u={components:{FilePreview:l,FileContent:n},data(){return{loadIng:0,code:null,fileShow:!0,fileInfo:null}},mounted(){},computed:{historyId(){return this.$route.query?$A.runNum(this.$route.query.history_id):0},isPreview(){return this.windowSmall||this.code||this.historyId>0||this.fileInfo&&this.fileInfo.permission===0},pageName(){let e=this.fileInfo?this.fileInfo.name:"";return this.$route.query&&this.$route.query.history_at&&(e+=` [${this.$route.query.history_at}]`),e}},watch:{$route:{handler(){this.getInfo()},immediate:!0}},methods:{getInfo(){let{codeOrFileId:e}=this.$route.params,i={id:e};if(/^\d+$/.test(e))this.code=null;else if(e)this.code=e;else return;setTimeout(t=>{this.loadIng++},600),this.$store.dispatch("call",{url:"file/one",data:i}).then(({data:t})=>{this.fileInfo=t}).catch(({msg:t})=>{$A.modalError({content:t,onOk:()=>{window.close()}})}).finally(t=>{this.loadIng--})}}},o={};var h=s(u,a,f,!1,d,"fab0e29c",null,null);function d(e){for(let i in o)this[i]=o[i]}var I=function(){return h.exports}();export{I as default}; diff --git a/public/js/build/fileMsg.b74dc083.js b/public/js/build/fileMsg.1ae48885.js similarity index 70% rename from public/js/build/fileMsg.b74dc083.js rename to public/js/build/fileMsg.1ae48885.js index c8d82ce30..d6a4146aa 100644 --- a/public/js/build/fileMsg.b74dc083.js +++ b/public/js/build/fileMsg.1ae48885.js @@ -1 +1 @@ -import{m as a,n as r,_ as s}from"./app.90cb6e79.js";import{I as l}from"./IFrame.a3e09c0b.js";var c=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"single-file-msg"},[e("PageTitle",{attrs:{title:t.title}}),t.loadIng>0?e("Loading"):t.isWait?t._e():[t.isType("md")?e("MDPreview",{attrs:{initialValue:t.msgDetail.content.content}}):t.isType("text")?e("TEditor",{attrs:{value:t.msgDetail.content.content,height:"100%",readOnly:""}}):t.isType("drawio")?e("Drawio",{attrs:{title:t.msgDetail.msg.name,readOnly:""},model:{value:t.msgDetail.content,callback:function(n){t.$set(t.msgDetail,"content",n)},expression:"msgDetail.content"}}):t.isType("mind")?e("Minder",{attrs:{value:t.msgDetail.content,readOnly:""}}):t.isType("code")?[t.isLongText(t.msgDetail.msg.name)?e("div",{staticClass:"view-code",domProps:{innerHTML:t._s(t.$A.formatTextMsg(t.msgDetail.content.content,t.userId))}}):e("AceEditor",{staticClass:"view-editor",attrs:{ext:t.msgDetail.msg.ext,readOnly:""},model:{value:t.msgDetail.content.content,callback:function(n){t.$set(t.msgDetail.content,"content",n)},expression:"msgDetail.content.content"}})]:t.isType("office")?e("OnlyOffice",{attrs:{code:t.officeCode,documentKey:t.documentKey,readOnly:""},model:{value:t.officeContent,callback:function(n){t.officeContent=n},expression:"officeContent"}}):t.isType("preview")?e("IFrame",{staticClass:"preview-iframe",attrs:{src:t.previewUrl}}):e("div",{staticClass:"no-support"},[t._v(t._s(t.$L("\u4E0D\u652F\u6301\u5355\u72EC\u67E5\u770B\u6B64\u6D88\u606F")))])]],2)},m=[];const d=()=>s(()=>import("./preview.a850e707.js"),["js/build/preview.a850e707.js","js/build/app.90cb6e79.js","js/build/app.ce5dd3b0.css"]),_=()=>s(()=>import("./TEditor.27348ee4.js"),["js/build/TEditor.27348ee4.js","js/build/app.90cb6e79.js","js/build/app.ce5dd3b0.css","js/build/ImgUpload.466e5bce.js"]),u=()=>s(()=>import("./AceEditor.b217f4b4.js"),["js/build/AceEditor.b217f4b4.js","js/build/app.90cb6e79.js","js/build/app.ce5dd3b0.css"]),g=()=>s(()=>import("./OnlyOffice.2eabb102.js"),["js/build/OnlyOffice.2eabb102.js","js/build/OnlyOffice.d36f3069.css","js/build/app.90cb6e79.js","js/build/app.ce5dd3b0.css","js/build/IFrame.a3e09c0b.js"]),f=()=>s(()=>import("./Drawio.eaf9e104.js"),["js/build/Drawio.eaf9e104.js","js/build/Drawio.fc5c6326.css","js/build/app.90cb6e79.js","js/build/app.ce5dd3b0.css","js/build/IFrame.a3e09c0b.js"]),p=()=>s(()=>import("./Minder.f2d75c7c.js"),["js/build/Minder.f2d75c7c.js","js/build/Minder.f2273bdb.css","js/build/IFrame.a3e09c0b.js","js/build/app.90cb6e79.js","js/build/app.ce5dd3b0.css"]),v={components:{IFrame:l,AceEditor:u,TEditor:_,MDPreview:d,OnlyOffice:g,Drawio:f,Minder:p},data(){return{loadIng:0,isWait:!1,msgDetail:{}}},mounted(){},watch:{$route:{handler(){this.getInfo()},immediate:!0}},computed:{...a(["userId"]),msgId(){const{msgId:t}=this.$route.params;return parseInt(/^\d+$/.test(t)?t:0)},title(){const{msg:t}=this.msgDetail;return t&&t.name?t.name:"Loading..."},isType(){const{msgDetail:t}=this;return function(i){return t.type=="file"&&t.file_mode==i}},officeContent(){return{id:this.msgDetail.id||0,type:this.msgDetail.msg.ext,name:this.title}},officeCode(){return"msgFile_"+this.msgDetail.id},previewUrl(){const{name:t,key:i}=this.msgDetail.content;return $A.apiUrl(`../online/preview/${t}?key=${i}`)}},methods:{getInfo(){this.msgId<=0||(setTimeout(t=>{this.loadIng++},600),this.isWait=!0,this.$store.dispatch("call",{url:"dialog/msg/detail",data:{msg_id:this.msgId}}).then(({data:t})=>{this.msgDetail=t}).catch(({msg:t})=>{$A.modalError({content:t,onOk:()=>{this.$Electron&&window.close()}})}).finally(t=>{this.loadIng--,this.isWait=!1}))},documentKey(){return new Promise(t=>{this.$store.dispatch("call",{url:"dialog/msg/detail",data:{msg_id:this.msgId,only_update_at:"yes"}}).then(({data:i})=>{t(`${i.id}-${$A.Time(i.update_at)}`)}).catch(()=>{t(0)})})},isLongText(t){return/^LongText-/.test(t)}}},o={};var h=r(v,c,m,!1,D,null,null,null);function D(t){for(let i in o)this[i]=o[i]}var I=function(){return h.exports}();export{I as default}; +import{m as a,n as r,_ as s}from"./app.feefc813.js";import{I as l}from"./IFrame.5edcf1c5.js";var c=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"single-file-msg"},[e("PageTitle",{attrs:{title:t.title}}),t.loadIng>0?e("Loading"):t.isWait?t._e():[t.isType("md")?e("MDPreview",{attrs:{initialValue:t.msgDetail.content.content}}):t.isType("text")?e("TEditor",{attrs:{value:t.msgDetail.content.content,height:"100%",readOnly:""}}):t.isType("drawio")?e("Drawio",{attrs:{title:t.msgDetail.msg.name,readOnly:""},model:{value:t.msgDetail.content,callback:function(n){t.$set(t.msgDetail,"content",n)},expression:"msgDetail.content"}}):t.isType("mind")?e("Minder",{attrs:{value:t.msgDetail.content,readOnly:""}}):t.isType("code")?[t.isLongText(t.msgDetail.msg.name)?e("div",{staticClass:"view-code",domProps:{innerHTML:t._s(t.$A.formatTextMsg(t.msgDetail.content.content,t.userId))}}):e("AceEditor",{staticClass:"view-editor",attrs:{ext:t.msgDetail.msg.ext,readOnly:""},model:{value:t.msgDetail.content.content,callback:function(n){t.$set(t.msgDetail.content,"content",n)},expression:"msgDetail.content.content"}})]:t.isType("office")?e("OnlyOffice",{attrs:{code:t.officeCode,documentKey:t.documentKey,readOnly:""},model:{value:t.officeContent,callback:function(n){t.officeContent=n},expression:"officeContent"}}):t.isType("preview")?e("IFrame",{staticClass:"preview-iframe",attrs:{src:t.previewUrl}}):e("div",{staticClass:"no-support"},[t._v(t._s(t.$L("\u4E0D\u652F\u6301\u5355\u72EC\u67E5\u770B\u6B64\u6D88\u606F")))])]],2)},m=[];const d=()=>s(()=>import("./preview.ae4f93f9.js"),["js/build/preview.ae4f93f9.js","js/build/app.feefc813.js","js/build/app.961ba03c.css"]),_=()=>s(()=>import("./TEditor.a1d21399.js"),["js/build/TEditor.a1d21399.js","js/build/app.feefc813.js","js/build/app.961ba03c.css","js/build/ImgUpload.e60c7ecf.js"]),u=()=>s(()=>import("./AceEditor.1e64324c.js"),["js/build/AceEditor.1e64324c.js","js/build/app.feefc813.js","js/build/app.961ba03c.css"]),g=()=>s(()=>import("./OnlyOffice.fc35776c.js"),["js/build/OnlyOffice.fc35776c.js","js/build/OnlyOffice.d36f3069.css","js/build/app.feefc813.js","js/build/app.961ba03c.css","js/build/IFrame.5edcf1c5.js"]),f=()=>s(()=>import("./Drawio.f86613c4.js"),["js/build/Drawio.f86613c4.js","js/build/Drawio.fc5c6326.css","js/build/app.feefc813.js","js/build/app.961ba03c.css","js/build/IFrame.5edcf1c5.js"]),p=()=>s(()=>import("./Minder.e582a65a.js"),["js/build/Minder.e582a65a.js","js/build/Minder.f2273bdb.css","js/build/IFrame.5edcf1c5.js","js/build/app.feefc813.js","js/build/app.961ba03c.css"]),v={components:{IFrame:l,AceEditor:u,TEditor:_,MDPreview:d,OnlyOffice:g,Drawio:f,Minder:p},data(){return{loadIng:0,isWait:!1,msgDetail:{}}},mounted(){},watch:{$route:{handler(){this.getInfo()},immediate:!0}},computed:{...a(["userId"]),msgId(){const{msgId:t}=this.$route.params;return parseInt(/^\d+$/.test(t)?t:0)},title(){const{msg:t}=this.msgDetail;return t&&t.name?t.name:"Loading..."},isType(){const{msgDetail:t}=this;return function(i){return t.type=="file"&&t.file_mode==i}},officeContent(){return{id:this.msgDetail.id||0,type:this.msgDetail.msg.ext,name:this.title}},officeCode(){return"msgFile_"+this.msgDetail.id},previewUrl(){const{name:t,key:i}=this.msgDetail.content;return $A.apiUrl(`../online/preview/${t}?key=${i}`)}},methods:{getInfo(){this.msgId<=0||(setTimeout(t=>{this.loadIng++},600),this.isWait=!0,this.$store.dispatch("call",{url:"dialog/msg/detail",data:{msg_id:this.msgId}}).then(({data:t})=>{this.msgDetail=t}).catch(({msg:t})=>{$A.modalError({content:t,onOk:()=>{this.$Electron&&window.close()}})}).finally(t=>{this.loadIng--,this.isWait=!1}))},documentKey(){return new Promise(t=>{this.$store.dispatch("call",{url:"dialog/msg/detail",data:{msg_id:this.msgId,only_update_at:"yes"}}).then(({data:i})=>{t(`${i.id}-${$A.Time(i.update_at)}`)}).catch(()=>{t(0)})})},isLongText(t){return/^LongText-/.test(t)}}},o={};var h=r(v,c,m,!1,D,null,null,null);function D(t){for(let i in o)this[i]=o[i]}var I=function(){return h.exports}();export{I as default}; diff --git a/public/js/build/fileTask.abf72a70.js b/public/js/build/fileTask.14c3cf6b.js similarity index 69% rename from public/js/build/fileTask.abf72a70.js rename to public/js/build/fileTask.14c3cf6b.js index c05c675ed..ad4ca685f 100644 --- a/public/js/build/fileTask.abf72a70.js +++ b/public/js/build/fileTask.14c3cf6b.js @@ -1 +1 @@ -import{n as o,_ as n}from"./app.90cb6e79.js";import{I as r}from"./IFrame.a3e09c0b.js";var s=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"single-file-task"},[i("PageTitle",{attrs:{title:e.title}}),e.loadIng>0?i("Loading"):e.isWait?e._e():[e.isType("md")?i("MDPreview",{attrs:{initialValue:e.fileDetail.content.content}}):e.isType("text")?i("TEditor",{attrs:{value:e.fileDetail.content.content,height:"100%",readOnly:""}}):e.isType("drawio")?i("Drawio",{attrs:{title:e.fileDetail.name,readOnly:""},model:{value:e.fileDetail.content,callback:function(l){e.$set(e.fileDetail,"content",l)},expression:"fileDetail.content"}}):e.isType("mind")?i("Minder",{attrs:{value:e.fileDetail.content,readOnly:""}}):e.isType("code")?i("AceEditor",{staticClass:"view-editor",attrs:{ext:e.fileDetail.ext,readOnly:""},model:{value:e.fileDetail.content.content,callback:function(l){e.$set(e.fileDetail.content,"content",l)},expression:"fileDetail.content.content"}}):e.isType("office")?i("OnlyOffice",{attrs:{code:e.officeCode,documentKey:e.documentKey,readOnly:""},model:{value:e.officeContent,callback:function(l){e.officeContent=l},expression:"officeContent"}}):e.isType("preview")?i("IFrame",{staticClass:"preview-iframe",attrs:{src:e.previewUrl}}):i("div",{staticClass:"no-support"},[e._v(e._s(e.$L("\u4E0D\u652F\u6301\u5355\u72EC\u67E5\u770B\u6B64\u6D88\u606F")))])]],2)},c=[];const d=()=>n(()=>import("./preview.a850e707.js"),["js/build/preview.a850e707.js","js/build/app.90cb6e79.js","js/build/app.ce5dd3b0.css"]),f=()=>n(()=>import("./TEditor.27348ee4.js"),["js/build/TEditor.27348ee4.js","js/build/app.90cb6e79.js","js/build/app.ce5dd3b0.css","js/build/ImgUpload.466e5bce.js"]),_=()=>n(()=>import("./AceEditor.b217f4b4.js"),["js/build/AceEditor.b217f4b4.js","js/build/app.90cb6e79.js","js/build/app.ce5dd3b0.css"]),u=()=>n(()=>import("./OnlyOffice.2eabb102.js"),["js/build/OnlyOffice.2eabb102.js","js/build/OnlyOffice.d36f3069.css","js/build/app.90cb6e79.js","js/build/app.ce5dd3b0.css","js/build/IFrame.a3e09c0b.js"]),p=()=>n(()=>import("./Drawio.eaf9e104.js"),["js/build/Drawio.eaf9e104.js","js/build/Drawio.fc5c6326.css","js/build/app.90cb6e79.js","js/build/app.ce5dd3b0.css","js/build/IFrame.a3e09c0b.js"]),m=()=>n(()=>import("./Minder.f2d75c7c.js"),["js/build/Minder.f2d75c7c.js","js/build/Minder.f2273bdb.css","js/build/IFrame.a3e09c0b.js","js/build/app.90cb6e79.js","js/build/app.ce5dd3b0.css"]),v={components:{IFrame:r,AceEditor:_,TEditor:f,MDPreview:d,OnlyOffice:u,Drawio:p,Minder:m},data(){return{loadIng:0,isWait:!1,fileDetail:{}}},mounted(){},watch:{$route:{handler(){this.getInfo()},immediate:!0}},computed:{fileId(){const{fileId:e}=this.$route.params;return parseInt(/^\d+$/.test(e)?e:0)},title(){const{name:e}=this.fileDetail;return e||"Loading..."},isType(){const{fileDetail:e}=this;return function(t){return e.file_mode==t}},officeContent(){return{id:this.fileDetail.id||0,type:this.fileDetail.ext,name:this.title}},officeCode(){return"taskFile_"+this.fileDetail.id},previewUrl(){const{name:e,key:t}=this.fileDetail.content;return $A.apiUrl(`../online/preview/${e}?key=${t}`)}},methods:{getInfo(){this.fileId<=0||(setTimeout(e=>{this.loadIng++},600),this.isWait=!0,this.$store.dispatch("call",{url:"project/task/filedetail",data:{file_id:this.fileId}}).then(({data:e})=>{this.fileDetail=e}).catch(({msg:e})=>{$A.modalError({content:e,onOk:()=>{this.$Electron&&window.close()}})}).finally(e=>{this.loadIng--,this.isWait=!1}))},documentKey(){return new Promise(e=>{this.$store.dispatch("call",{url:"project/task/filedetail",data:{file_id:this.fileId,only_update_at:"yes"}}).then(({data:t})=>{e(`${t.id}-${$A.Time(t.update_at)}`)}).catch(()=>{e(0)})})}}},a={};var h=o(v,s,c,!1,D,null,null,null);function D(e){for(let t in a)this[t]=a[t]}var T=function(){return h.exports}();export{T as default}; +import{n as o,_ as n}from"./app.feefc813.js";import{I as r}from"./IFrame.5edcf1c5.js";var s=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"single-file-task"},[i("PageTitle",{attrs:{title:e.title}}),e.loadIng>0?i("Loading"):e.isWait?e._e():[e.isType("md")?i("MDPreview",{attrs:{initialValue:e.fileDetail.content.content}}):e.isType("text")?i("TEditor",{attrs:{value:e.fileDetail.content.content,height:"100%",readOnly:""}}):e.isType("drawio")?i("Drawio",{attrs:{title:e.fileDetail.name,readOnly:""},model:{value:e.fileDetail.content,callback:function(l){e.$set(e.fileDetail,"content",l)},expression:"fileDetail.content"}}):e.isType("mind")?i("Minder",{attrs:{value:e.fileDetail.content,readOnly:""}}):e.isType("code")?i("AceEditor",{staticClass:"view-editor",attrs:{ext:e.fileDetail.ext,readOnly:""},model:{value:e.fileDetail.content.content,callback:function(l){e.$set(e.fileDetail.content,"content",l)},expression:"fileDetail.content.content"}}):e.isType("office")?i("OnlyOffice",{attrs:{code:e.officeCode,documentKey:e.documentKey,readOnly:""},model:{value:e.officeContent,callback:function(l){e.officeContent=l},expression:"officeContent"}}):e.isType("preview")?i("IFrame",{staticClass:"preview-iframe",attrs:{src:e.previewUrl}}):i("div",{staticClass:"no-support"},[e._v(e._s(e.$L("\u4E0D\u652F\u6301\u5355\u72EC\u67E5\u770B\u6B64\u6D88\u606F")))])]],2)},c=[];const d=()=>n(()=>import("./preview.ae4f93f9.js"),["js/build/preview.ae4f93f9.js","js/build/app.feefc813.js","js/build/app.961ba03c.css"]),f=()=>n(()=>import("./TEditor.a1d21399.js"),["js/build/TEditor.a1d21399.js","js/build/app.feefc813.js","js/build/app.961ba03c.css","js/build/ImgUpload.e60c7ecf.js"]),_=()=>n(()=>import("./AceEditor.1e64324c.js"),["js/build/AceEditor.1e64324c.js","js/build/app.feefc813.js","js/build/app.961ba03c.css"]),u=()=>n(()=>import("./OnlyOffice.fc35776c.js"),["js/build/OnlyOffice.fc35776c.js","js/build/OnlyOffice.d36f3069.css","js/build/app.feefc813.js","js/build/app.961ba03c.css","js/build/IFrame.5edcf1c5.js"]),p=()=>n(()=>import("./Drawio.f86613c4.js"),["js/build/Drawio.f86613c4.js","js/build/Drawio.fc5c6326.css","js/build/app.feefc813.js","js/build/app.961ba03c.css","js/build/IFrame.5edcf1c5.js"]),m=()=>n(()=>import("./Minder.e582a65a.js"),["js/build/Minder.e582a65a.js","js/build/Minder.f2273bdb.css","js/build/IFrame.5edcf1c5.js","js/build/app.feefc813.js","js/build/app.961ba03c.css"]),v={components:{IFrame:r,AceEditor:_,TEditor:f,MDPreview:d,OnlyOffice:u,Drawio:p,Minder:m},data(){return{loadIng:0,isWait:!1,fileDetail:{}}},mounted(){},watch:{$route:{handler(){this.getInfo()},immediate:!0}},computed:{fileId(){const{fileId:e}=this.$route.params;return parseInt(/^\d+$/.test(e)?e:0)},title(){const{name:e}=this.fileDetail;return e||"Loading..."},isType(){const{fileDetail:e}=this;return function(t){return e.file_mode==t}},officeContent(){return{id:this.fileDetail.id||0,type:this.fileDetail.ext,name:this.title}},officeCode(){return"taskFile_"+this.fileDetail.id},previewUrl(){const{name:e,key:t}=this.fileDetail.content;return $A.apiUrl(`../online/preview/${e}?key=${t}`)}},methods:{getInfo(){this.fileId<=0||(setTimeout(e=>{this.loadIng++},600),this.isWait=!0,this.$store.dispatch("call",{url:"project/task/filedetail",data:{file_id:this.fileId}}).then(({data:e})=>{this.fileDetail=e}).catch(({msg:e})=>{$A.modalError({content:e,onOk:()=>{this.$Electron&&window.close()}})}).finally(e=>{this.loadIng--,this.isWait=!1}))},documentKey(){return new Promise(e=>{this.$store.dispatch("call",{url:"project/task/filedetail",data:{file_id:this.fileId,only_update_at:"yes"}}).then(({data:t})=>{e(`${t.id}-${$A.Time(t.update_at)}`)}).catch(()=>{e(0)})})}}},a={};var h=o(v,s,c,!1,D,null,null,null);function D(e){for(let t in a)this[t]=a[t]}var T=function(){return h.exports}();export{T as default}; diff --git a/public/js/build/index.26863913.js b/public/js/build/index.0bf9683e.js similarity index 99% rename from public/js/build/index.26863913.js rename to public/js/build/index.0bf9683e.js index f9b49eff6..3709dfef9 100644 --- a/public/js/build/index.26863913.js +++ b/public/js/build/index.0bf9683e.js @@ -1,4 +1,4 @@ -import{t as br,j as Ls,n as gl}from"./app.90cb6e79.js";import{I as Ts}from"./ImgUpload.466e5bce.js";var Te=navigator.userAgent,ml=navigator.platform,gt=/gecko\/\d/i.test(Te),yl=/MSIE \d/.test(Te),bl=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Te),Zr=/Edge\/(\d+)/.exec(Te),re=yl||bl||Zr,ce=re&&(yl?document.documentMode||6:+(Zr||bl)[1]),Le=!Zr&&/WebKit\//.test(Te),Ms=Le&&/Qt\/\d+\.\d+/.test(Te),On=!Zr&&/Chrome\//.test(Te),Xe=/Opera\//.test(Te),wl=/Apple Computer/.test(navigator.vendor),Ds=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Te),As=/PhantomJS/.test(Te),Qr=!Zr&&/AppleWebKit/.test(Te)&&/Mobile\/\w+/.test(Te),In=/Android/.test(Te),zr=Qr||In||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Te),Ye=Qr||/Mac/.test(ml),Fs=/\bCrOS\b/.test(Te),Es=/win/i.test(ml),Nt=Xe&&Te.match(/Version\/(\d*\.\d*)/);Nt&&(Nt=Number(Nt[1]));Nt&&Nt>=15&&(Xe=!1,Le=!0);var Fo=Ye&&(Ms||Xe&&(Nt==null||Nt<12.11)),Ii=gt||re&&ce>=9;function Pr(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var Rt=function(e,t){var r=e.className,n=Pr(t).exec(r);if(n){var i=r.slice(n.index+n[0].length);e.className=r.slice(0,n.index)+(i?n[1]+i:"")}};function mt(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function Ie(e,t){return mt(e).appendChild(t)}function G(e,t,r,n){var i=document.createElement(e);if(r&&(i.className=r),n&&(i.style.cssText=n),typeof t=="string")i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o=t)return l+(t-o);l+=a-o,l+=r-l%r,o=a+1}}var bt=function(){this.id=null,this.f=null,this.time=0,this.handler=Hn(this.onTimeout,this)};bt.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)};bt.prototype.set=function(e,t){this.f=t;var r=+new Date+e;(!this.id||r=t)return n+Math.min(l,t-i);if(i+=o-n,i+=r-i%r,n=o+1,i>=t)return n}}var hn=[""];function Hi(e){for(;hn.length<=e;)hn.push(ie(hn)+" ");return hn[e]}function ie(e){return e[e.length-1]}function Pn(e,t){for(var r=[],n=0;n"\x80"&&(e.toUpperCase()!=e.toLowerCase()||Os.test(e))}function bn(e,t){return t?t.source.indexOf("\\w")>-1&&vi(e)?!0:t.test(e):vi(e)}function No(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var Is=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function gi(e){return e.charCodeAt(0)>=768&&Is.test(e)}function Cl(e,t,r){for(;(r<0?t>0:tr?-1:1;;){if(t==r)return t;var i=(t+r)/2,o=n<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:r;e(o)?r=o:t=o+n}}function Hs(e,t,r,n){if(!e)return n(t,r,"ltr",0);for(var i=!1,o=0;ot||t==r&&l.to==t)&&(n(Math.max(l.from,t),Math.min(l.to,r),l.level==1?"rtl":"ltr",o),i=!0)}i||n(t,r,"ltr")}var Lr=null;function Br(e,t,r){var n;Lr=null;for(var i=0;it)return i;o.to==t&&(o.from!=o.to&&r=="before"?n=i:Lr=i),o.from==t&&(o.from!=o.to&&r!="before"?n=i:Lr=i)}return n!=null?n:Lr}var zs=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function r(u){return u<=247?e.charAt(u):1424<=u&&u<=1524?"R":1536<=u&&u<=1785?t.charAt(u-1536):1774<=u&&u<=2220?"r":8192<=u&&u<=8203?"w":u==8204?"b":"L"}var n=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,o=/[LRr]/,l=/[Lb1n]/,a=/[1n]/;function s(u,h,p){this.level=u,this.from=h,this.to=p}return function(u,h){var p=h=="ltr"?"L":"R";if(u.length==0||h=="ltr"&&!n.test(u))return!1;for(var b=u.length,y=[],k=0;k-1&&(n[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function de(e,t){var r=zi(e,t);if(!!r.length)for(var n=Array.prototype.slice.call(arguments,2),i=0;i0}function hr(e){e.prototype.on=function(t,r){X(this,t,r)},e.prototype.off=function(t,r){Oe(this,t,r)}}function Ae(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Tl(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function mi(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function Rr(e){Ae(e),Tl(e)}function Pi(e){return e.target||e.srcElement}function Ml(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),Ye&&e.ctrlKey&&t==1&&(t=3),t}var Ps=function(){if(re&&ce<9)return!1;var e=G("div");return"draggable"in e||"dragDrop"in e}(),ui;function Ws(e){if(ui==null){var t=G("span","\u200B");Ie(e,G("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(ui=t.offsetWidth<=1&&t.offsetHeight>2&&!(re&&ce<8))}var r=ui?G("span","\u200B"):G("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return r.setAttribute("cm-text",""),r}var fi;function _s(e){if(fi!=null)return fi;var t=Ie(e,document.createTextNode("A\u062EA")),r=It(t,0,1).getBoundingClientRect(),n=It(t,1,2).getBoundingClientRect();return mt(e),!r||r.left==r.right?!1:fi=n.right-r.right<3}var Wi=` +import{t as br,j as Ls,n as gl}from"./app.feefc813.js";import{I as Ts}from"./ImgUpload.e60c7ecf.js";var Te=navigator.userAgent,ml=navigator.platform,gt=/gecko\/\d/i.test(Te),yl=/MSIE \d/.test(Te),bl=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Te),Zr=/Edge\/(\d+)/.exec(Te),re=yl||bl||Zr,ce=re&&(yl?document.documentMode||6:+(Zr||bl)[1]),Le=!Zr&&/WebKit\//.test(Te),Ms=Le&&/Qt\/\d+\.\d+/.test(Te),On=!Zr&&/Chrome\//.test(Te),Xe=/Opera\//.test(Te),wl=/Apple Computer/.test(navigator.vendor),Ds=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Te),As=/PhantomJS/.test(Te),Qr=!Zr&&/AppleWebKit/.test(Te)&&/Mobile\/\w+/.test(Te),In=/Android/.test(Te),zr=Qr||In||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Te),Ye=Qr||/Mac/.test(ml),Fs=/\bCrOS\b/.test(Te),Es=/win/i.test(ml),Nt=Xe&&Te.match(/Version\/(\d*\.\d*)/);Nt&&(Nt=Number(Nt[1]));Nt&&Nt>=15&&(Xe=!1,Le=!0);var Fo=Ye&&(Ms||Xe&&(Nt==null||Nt<12.11)),Ii=gt||re&&ce>=9;function Pr(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var Rt=function(e,t){var r=e.className,n=Pr(t).exec(r);if(n){var i=r.slice(n.index+n[0].length);e.className=r.slice(0,n.index)+(i?n[1]+i:"")}};function mt(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function Ie(e,t){return mt(e).appendChild(t)}function G(e,t,r,n){var i=document.createElement(e);if(r&&(i.className=r),n&&(i.style.cssText=n),typeof t=="string")i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o=t)return l+(t-o);l+=a-o,l+=r-l%r,o=a+1}}var bt=function(){this.id=null,this.f=null,this.time=0,this.handler=Hn(this.onTimeout,this)};bt.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)};bt.prototype.set=function(e,t){this.f=t;var r=+new Date+e;(!this.id||r=t)return n+Math.min(l,t-i);if(i+=o-n,i+=r-i%r,n=o+1,i>=t)return n}}var hn=[""];function Hi(e){for(;hn.length<=e;)hn.push(ie(hn)+" ");return hn[e]}function ie(e){return e[e.length-1]}function Pn(e,t){for(var r=[],n=0;n"\x80"&&(e.toUpperCase()!=e.toLowerCase()||Os.test(e))}function bn(e,t){return t?t.source.indexOf("\\w")>-1&&vi(e)?!0:t.test(e):vi(e)}function No(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var Is=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function gi(e){return e.charCodeAt(0)>=768&&Is.test(e)}function Cl(e,t,r){for(;(r<0?t>0:tr?-1:1;;){if(t==r)return t;var i=(t+r)/2,o=n<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:r;e(o)?r=o:t=o+n}}function Hs(e,t,r,n){if(!e)return n(t,r,"ltr",0);for(var i=!1,o=0;ot||t==r&&l.to==t)&&(n(Math.max(l.from,t),Math.min(l.to,r),l.level==1?"rtl":"ltr",o),i=!0)}i||n(t,r,"ltr")}var Lr=null;function Br(e,t,r){var n;Lr=null;for(var i=0;it)return i;o.to==t&&(o.from!=o.to&&r=="before"?n=i:Lr=i),o.from==t&&(o.from!=o.to&&r!="before"?n=i:Lr=i)}return n!=null?n:Lr}var zs=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function r(u){return u<=247?e.charAt(u):1424<=u&&u<=1524?"R":1536<=u&&u<=1785?t.charAt(u-1536):1774<=u&&u<=2220?"r":8192<=u&&u<=8203?"w":u==8204?"b":"L"}var n=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,o=/[LRr]/,l=/[Lb1n]/,a=/[1n]/;function s(u,h,p){this.level=u,this.from=h,this.to=p}return function(u,h){var p=h=="ltr"?"L":"R";if(u.length==0||h=="ltr"&&!n.test(u))return!1;for(var b=u.length,y=[],k=0;k-1&&(n[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function de(e,t){var r=zi(e,t);if(!!r.length)for(var n=Array.prototype.slice.call(arguments,2),i=0;i0}function hr(e){e.prototype.on=function(t,r){X(this,t,r)},e.prototype.off=function(t,r){Oe(this,t,r)}}function Ae(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Tl(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function mi(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function Rr(e){Ae(e),Tl(e)}function Pi(e){return e.target||e.srcElement}function Ml(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),Ye&&e.ctrlKey&&t==1&&(t=3),t}var Ps=function(){if(re&&ce<9)return!1;var e=G("div");return"draggable"in e||"dragDrop"in e}(),ui;function Ws(e){if(ui==null){var t=G("span","\u200B");Ie(e,G("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(ui=t.offsetWidth<=1&&t.offsetHeight>2&&!(re&&ce<8))}var r=ui?G("span","\u200B"):G("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return r.setAttribute("cm-text",""),r}var fi;function _s(e){if(fi!=null)return fi;var t=Ie(e,document.createTextNode("A\u062EA")),r=It(t,0,1).getBoundingClientRect(),n=It(t,1,2).getBoundingClientRect();return mt(e),!r||r.left==r.right?!1:fi=n.right-r.right<3}var Wi=` b`.split(/\n/).length!=3?function(e){for(var t=0,r=[],n=e.length;t<=n;){var i=e.indexOf(` `,t);i==-1&&(i=e.length);var o=e.slice(t,e.charAt(i-1)=="\r"?i-1:i),l=o.indexOf("\r");l!=-1?(r.push(o.slice(0,l)),t+=l+1):(r.push(o),t=i+1)}return r}:function(e){return e.split(/\r\n?|\n/)},Bs=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch{return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch{}return!t||t.parentElement()!=e?!1:t.compareEndPoints("StartToEnd",t)!=0},Rs=function(){var e=G("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),ci=null;function Us(e){if(ci!=null)return ci;var t=Ie(e,G("span","x")),r=t.getBoundingClientRect(),n=It(t,0,1).getBoundingClientRect();return ci=Math.abs(r.left-n.left)>1}var _i={},er={};function Ks(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),_i[e]=t}function qs(e,t){er[e]=t}function Sn(e){if(typeof e=="string"&&er.hasOwnProperty(e))e=er[e];else if(e&&typeof e.name=="string"&&er.hasOwnProperty(e.name)){var t=er[e.name];typeof t=="string"&&(t={name:t}),e=xl(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Sn("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Sn("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function Bi(e,t){t=Sn(t);var r=_i[t.name];if(!r)return Bi(e,"text/plain");var n=r(e,t);if(ir.hasOwnProperty(t.name)){var i=ir[t.name];for(var o in i)!i.hasOwnProperty(o)||(n.hasOwnProperty(o)&&(n["_"+o]=n[o]),n[o]=i[o])}if(n.name=t.name,t.helperType&&(n.helperType=t.helperType),t.modeProps)for(var l in t.modeProps)n[l]=t.modeProps[l];return n}var ir={};function Gs(e,t){var r=ir.hasOwnProperty(e)?ir[e]:ir[e]={};Ht(t,r)}function zt(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var r={};for(var n in t){var i=t[n];i instanceof Array&&(i=i.concat([])),r[n]=i}return r}function Ri(e,t){for(var r;e.innerMode&&(r=e.innerMode(t),!(!r||r.mode==e));)t=r.state,e=r.mode;return r||{mode:e,state:t}}function Dl(e,t,r){return e.startState?e.startState(t,r):!0}var pe=function(e,t,r){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=r};pe.prototype.eol=function(){return this.pos>=this.string.length};pe.prototype.sol=function(){return this.pos==this.lineStart};pe.prototype.peek=function(){return this.string.charAt(this.pos)||void 0};pe.prototype.next=function(){if(this.post};pe.prototype.eatSpace=function(){for(var e=this,t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++e.pos;return this.pos>t};pe.prototype.skipToEnd=function(){this.pos=this.string.length};pe.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0};pe.prototype.backUp=function(e){this.pos-=e};pe.prototype.column=function(){return this.lastColumnPos0?null:(o&&t!==!1&&(this.pos+=o[0].length),o)}};pe.prototype.current=function(){return this.string.slice(this.start,this.pos)};pe.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}};pe.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)};pe.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function q(e,t){if(t-=e.first,t<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var r=e;!r.lines;)for(var n=0;;++n){var i=r.children[n],o=i.chunkSize();if(t=e.first&&tr?F(r,q(e,r).text.length):Xs(t,q(e,t.line).text.length)}function Xs(e,t){var r=e.ch;return r==null||r>t?F(e.line,t):r<0?F(e.line,0):e}function Oo(e,t){for(var r=[],n=0;nthis.maxLookAhead&&(this.maxLookAhead=e),t};Ze.prototype.baseToken=function(e){var t=this;if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)t.baseTokenPos+=2;var r=this.baseTokens[this.baseTokenPos+1];return{type:r&&r.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}};Ze.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--};Ze.fromSaved=function(e,t,r){return t instanceof Bn?new Ze(e,zt(e.mode,t.state),r,t.lookAhead):new Ze(e,zt(e.mode,t),r)};Ze.prototype.save=function(e){var t=e!==!1?zt(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Bn(t,this.maxLookAhead):t};function Fl(e,t,r,n){var i=[e.state.modeGen],o={};Po(e,t.text,e.doc.mode,r,function(u,h){return i.push(u,h)},o,n);for(var l=r.state,a=function(u){r.baseTokens=i;var h=e.state.overlays[u],p=1,b=0;r.state=!0,Po(e,t.text,h.mode,r,function(y,k){for(var S=p;by&&i.splice(p,1,y,i[p+1],D),p+=2,b=Math.min(y,D)}if(!!k)if(h.opaque)i.splice(S,p-S,y,"overlay "+k),p=S+2;else for(;Se.options.maxHighlightLength&&zt(e.doc.mode,n.state),o=Fl(e,t,n);i&&(n.state=i),t.stateAfter=n.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),r===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function Jr(e,t,r){var n=e.doc,i=e.display;if(!n.mode.startState)return new Ze(n,!0,t);var o=Ys(e,t,r),l=o>n.first&&q(n,o-1).stateAfter,a=l?Ze.fromSaved(n,l,o):new Ze(n,Dl(n.mode),o);return n.iter(o,t,function(s){Ki(e,s.text,a);var u=a.line;s.stateAfter=u==t-1||u%5==0||u>=i.viewFrom&&ut.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}var Io=function(e,t,r){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=r};function Ho(e,t,r,n){var i=e.doc,o=i.mode,l;t=V(i,t);var a=q(i,t.line),s=Jr(e,t.line,r),u=new pe(a.text,e.options.tabSize,s),h;for(n&&(h=[]);(n||u.pose.options.maxHighlightLength?(a=!1,l&&Ki(e,t,n,h.pos),h.pos=t.length,p=null):p=zo(qi(r,h,n.state,b),o),b){var y=b[0].name;y&&(p="m-"+(p?y+" "+p:y))}if(!a||u!=p){for(;sl;--a){if(a<=o.first)return o.first;var s=q(o,a-1),u=s.stateAfter;if(u&&(!r||a+(u instanceof Bn?u.lookAhead:0)<=o.modeFrontier))return a;var h=Pe(s.text,null,e.options.tabSize);(i==null||n>h)&&(i=a-1,n=h)}return i}function js(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontierr;n--){var i=q(e,n).stateAfter;if(i&&(!(i instanceof Bn)||n+i.lookAhead=t:o.to>t);(n||(n=[])).push(new Rn(l,o.from,s?null:o.to))}}return n}function eu(e,t,r){var n;if(e)for(var i=0;i=t:o.to>t);if(a||o.from==t&&l.type=="bookmark"&&(!r||o.marker.insertLeft)){var s=o.from==null||(l.inclusiveLeft?o.from<=t:o.from0&&a)for(var E=0;E0)){var h=[s,1],p=Z(u.from,a.from),b=Z(u.to,a.to);(p<0||!l.inclusiveLeft&&!p)&&h.push({from:u.from,to:a.from}),(b>0||!l.inclusiveRight&&!b)&&h.push({from:a.to,to:u.to}),i.splice.apply(i,h),s+=h.length-3}}return i}function Il(e){var t=e.markedSpans;if(!!t){for(var r=0;rt)&&(!n||Gi(n,o.marker)<0)&&(n=o.marker)}return n}function _o(e,t,r,n,i){var o=q(e,t),l=it&&o.markedSpans;if(l)for(var a=0;a=0&&p<=0||h<=0&&p>=0)&&(h<=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?Z(u.to,r)>=0:Z(u.to,r)>0)||h>=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?Z(u.from,n)<=0:Z(u.from,n)<0)))return!0}}}function Je(e){for(var t;t=Pl(e);)e=t.find(-1,!0).line;return e}function nu(e){for(var t;t=Un(e);)e=t.find(1,!0).line;return e}function iu(e){for(var t,r;t=Un(e);)e=t.find(1,!0).line,(r||(r=[])).push(e);return r}function Xi(e,t){var r=q(e,t),n=Je(r);return r==n?t:le(n)}function Wl(e,t){if(t>e.lastLine())return t;var r=q(e,t),n;if(!Ct(e,r))return t;for(;n=Un(r);)r=n.find(1,!0).line;return le(r)+1}function Ct(e,t){var r=it&&t.markedSpans;if(r){for(var n=void 0,i=0;it.maxLineLength&&(t.maxLineLength=i,t.maxLine=n)})}var ar=function(e,t,r){this.text=e,Hl(this,t),this.height=r?r(this):1};ar.prototype.lineNo=function(){return le(this)};hr(ar);function ou(e,t,r,n){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),Il(e),Hl(e,r);var i=n?n(e):1;i!=e.height&&Qe(e,i)}function lu(e){e.parent=null,Il(e)}var au={},su={};function Bo(e,t){if(!e||/^\s*$/.test(e))return null;var r=t.addModeClass?su:au;return r[e]||(r[e]=e.replace(/\S+/g,"cm-$&"))}function _l(e,t){var r=nr("span",null,null,Le?"padding-right: .1px":null),n={pre:nr("pre",[r],"CodeMirror-line"),content:r,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var o=i?t.rest[i-1]:t.line,l=void 0;n.pos=0,n.addToken=fu,_s(e.display.measure)&&(l=st(o,e.doc.direction))&&(n.addToken=hu(n.addToken,l)),n.map=[];var a=t!=e.display.externalMeasured&&le(o);du(o,n,El(e,o,a)),o.styleClasses&&(o.styleClasses.bgClass&&(n.bgClass=ai(o.styleClasses.bgClass,n.bgClass||"")),o.styleClasses.textClass&&(n.textClass=ai(o.styleClasses.textClass,n.textClass||""))),n.map.length==0&&n.map.push(0,0,n.content.appendChild(Ws(e.display.measure))),i==0?(t.measure.map=n.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(n.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(Le){var s=n.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(n.content.className="cm-tab-wrap-hack")}return de(e,"renderLine",e,t.line,n.pre),n.pre.className&&(n.textClass=ai(n.pre.className,n.textClass||"")),n}function uu(e){var t=G("span","\u2022","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function fu(e,t,r,n,i,o,l){if(!!t){var a=e.splitSpaces?cu(t,e.trailingSpace):t,s=e.cm.state.specialChars,u=!1,h;if(!s.test(t))e.col+=t.length,h=document.createTextNode(a),e.map.push(e.pos,e.pos+t.length,h),re&&ce<9&&(u=!0),e.pos+=t.length;else{h=document.createDocumentFragment();for(var p=0;;){s.lastIndex=p;var b=s.exec(t),y=b?b.index-p:t.length-p;if(y){var k=document.createTextNode(a.slice(p,p+y));re&&ce<9?h.appendChild(G("span",[k])):h.appendChild(k),e.map.push(e.pos,e.pos+y,k),e.col+=y,e.pos+=y}if(!b)break;p+=y+1;var S=void 0;if(b[0]==" "){var D=e.cm.options.tabSize,A=D-e.col%D;S=h.appendChild(G("span",Hi(A),"cm-tab")),S.setAttribute("role","presentation"),S.setAttribute("cm-text"," "),e.col+=A}else b[0]=="\r"||b[0]==` diff --git a/public/js/build/index.a60d7544.js b/public/js/build/index.86e79d3b.js similarity index 98% rename from public/js/build/index.a60d7544.js rename to public/js/build/index.86e79d3b.js index c69b31c86..524414ce0 100644 --- a/public/js/build/index.a60d7544.js +++ b/public/js/build/index.86e79d3b.js @@ -1 +1 @@ -import{m as o,d as r,h as l,n as c}from"./app.90cb6e79.js";var u=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"page-setting"},[t("PageTitle",{attrs:{title:e.$L(e.titleNameRoute)}}),t("div",{staticClass:"setting-head"},[t("div",{staticClass:"setting-titbox"},[t("div",{staticClass:"setting-title"},[t("h1",[e._v(e._s(e.$L(e.settingTitleName)))]),e.show768Box?e._e():t("div",{staticClass:"setting-more",on:{click:function(s){return e.toggleRoute("index")}}},[t("Icon",{attrs:{type:"md-close"}})],1)])])]),t("div",{staticClass:"setting-box",class:{"show768-box":e.show768Box}},[t("div",{staticClass:"setting-menu"},[t("ul",[e._l(e.menu,function(s,n){return t("li",{key:n,class:e.classNameRoute(s.path,s.divided),on:{click:function(g){return e.toggleRoute(s.path)}}},[e._v(e._s(e.$L(s.name)))])}),e.clientNewVersion?t("li",{staticClass:"flex",class:e.classNameRoute("version",!0),on:{click:function(s){return e.toggleRoute("version")}}},[t("AutoTip",{attrs:{disabled:""}},[e._v(e._s(e.$L("\u7248\u672C"))+": "+e._s(e.version))]),t("Badge",{attrs:{text:e.clientNewVersion}})],1):t("li",{staticClass:"version divided",on:{click:e.onVersion}},[t("AutoTip",[e._v(e._s(e.$L("\u7248\u672C"))+": "+e._s(e.version))])],1)],2)]),t("div",{staticClass:"setting-content"},[t("div",{staticClass:"setting-content-title"},[e._v(e._s(e.$L(e.titleNameRoute)))]),t("div",{staticClass:"setting-content-view"},[t("router-view",{staticClass:"setting-router-view"})],1)])])],1)},m=[];const d={data(){return{version:window.systemInfo.version}},mounted(){},computed:{...o(["userInfo","userIsAdmin","clientNewVersion"]),routeName(){return this.$route.name},show768Box(){return this.routeName==="manage-setting"},menu(){const e=[{path:"personal",name:"\u4E2A\u4EBA\u8BBE\u7F6E"},{path:"checkin",name:"\u7B7E\u5230\u8BBE\u7F6E",desc:" (Beta)"},{path:"language",name:"\u8BED\u8A00\u8BBE\u7F6E"},{path:"theme",name:"\u4E3B\u9898\u8BBE\u7F6E"},{path:"password",name:"\u5BC6\u7801\u8BBE\u7F6E"},{path:"email",name:"\u4FEE\u6539\u90AE\u7BB1"}];return this.$Electron&&e.splice(2,0,{path:"keyboard",name:"\u5FEB\u6377\u952E",desc:" (Beta)"}),["127.0.0.1:2222","192.168.100.88:2222","dootask.com","www.dootask.com","t.hitosea.com"].includes($A.getDomain($A.apiUrl("../")))&&this.$isEEUiApp&&e.push({path:"privacy",name:"\u9690\u79C1\u653F\u7B56",divided:!0},{path:"delete",name:"\u5220\u9664\u5E10\u53F7"}),this.userIsAdmin?e.push({path:"system",name:"\u7CFB\u7EDF\u8BBE\u7F6E",divided:!0},{path:"clearCache",name:"\u6E05\u9664\u7F13\u5B58"},{path:"logout",name:"\u9000\u51FA\u767B\u5F55"}):e.push({path:"clearCache",name:"\u6E05\u9664\u7F13\u5B58",divided:!0},{path:"logout",name:"\u9000\u51FA\u767B\u5F55"}),e},titleNameRoute(){const{routeName:e,menu:a}=this;let t="";return a.some(s=>{if(e===`manage-setting-${s.path}`)return t=`${s.name}${s.desc||""}`,!0}),t||"\u8BBE\u7F6E"},settingTitleName(){return this.windowSmall?this.titleNameRoute:"\u8BBE\u7F6E"}},watch:{routeName:{handler(e){e==="manage-setting"&&this.windowLarge&&this.goForward({name:"manage-setting-personal"},!0)},immediate:!0}},methods:{toggleRoute(e){switch(e){case"clearCache":this.$store.dispatch("handleClearCache",null).then(async()=>{await $A.IDBSet("clearCache",$A.randomString(6)),$A.reloadUrl()});break;case"logout":$A.modalConfirm({title:"\u9000\u51FA\u767B\u5F55",content:"\u4F60\u786E\u5B9A\u8981\u767B\u51FA\u7CFB\u7EDF\uFF1F",onOk:()=>{this.$store.dispatch("logout",!1)}});break;case"version":r.Store.set("updateNotification",null);break;case"privacy":this.openPrivacy();break;case"index":this.goForward({name:"manage-setting"});break;default:this.goForward({name:"manage-setting-"+e});break}},openPrivacy(){const e=$A.apiUrl("privacy");this.$isEEUiApp?$A.eeuiAppOpenPage({pageType:"app",pageTitle:" ",url:"web.js",params:{url:e,browser:!0,showProgress:!0}}):window.open(e)},classNameRoute(e,a){return{active:this.windowLarge&&this.routeName===`manage-setting-${e}`,divided:!!a}},onVersion(){l.get($A.apiUrl("system/version")).then(({status:e,data:a})=>{if(e===200){let t=`${this.$L("\u670D\u52A1\u5668")}: ${$A.getDomain($A.apiUrl("../"))}`;t+=`
    ${this.$L("\u670D\u52A1\u5668\u7248\u672C")}: v${a.version}`,t+=`
    ${this.$L("\u5BA2\u6237\u7AEF\u7248\u672C")}: v${this.version}`,$A.modalInfo({language:!1,title:"\u7248\u672C\u4FE1\u606F",content:t})}}).catch(e=>{})}}},i={};var h=c(d,u,m,!1,p,null,null,null);function p(e){for(let a in i)this[a]=i[a]}var $=function(){return h.exports}();export{$ as default}; +import{m as o,d as r,h as l,n as c}from"./app.feefc813.js";var u=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"page-setting"},[t("PageTitle",{attrs:{title:e.$L(e.titleNameRoute)}}),t("div",{staticClass:"setting-head"},[t("div",{staticClass:"setting-titbox"},[t("div",{staticClass:"setting-title"},[t("h1",[e._v(e._s(e.$L(e.settingTitleName)))]),e.show768Box?e._e():t("div",{staticClass:"setting-more",on:{click:function(s){return e.toggleRoute("index")}}},[t("Icon",{attrs:{type:"md-close"}})],1)])])]),t("div",{staticClass:"setting-box",class:{"show768-box":e.show768Box}},[t("div",{staticClass:"setting-menu"},[t("ul",[e._l(e.menu,function(s,n){return t("li",{key:n,class:e.classNameRoute(s.path,s.divided),on:{click:function(g){return e.toggleRoute(s.path)}}},[e._v(e._s(e.$L(s.name)))])}),e.clientNewVersion?t("li",{staticClass:"flex",class:e.classNameRoute("version",!0),on:{click:function(s){return e.toggleRoute("version")}}},[t("AutoTip",{attrs:{disabled:""}},[e._v(e._s(e.$L("\u7248\u672C"))+": "+e._s(e.version))]),t("Badge",{attrs:{text:e.clientNewVersion}})],1):t("li",{staticClass:"version divided",on:{click:e.onVersion}},[t("AutoTip",[e._v(e._s(e.$L("\u7248\u672C"))+": "+e._s(e.version))])],1)],2)]),t("div",{staticClass:"setting-content"},[t("div",{staticClass:"setting-content-title"},[e._v(e._s(e.$L(e.titleNameRoute)))]),t("div",{staticClass:"setting-content-view"},[t("router-view",{staticClass:"setting-router-view"})],1)])])],1)},m=[];const d={data(){return{version:window.systemInfo.version}},mounted(){},computed:{...o(["userInfo","userIsAdmin","clientNewVersion"]),routeName(){return this.$route.name},show768Box(){return this.routeName==="manage-setting"},menu(){const e=[{path:"personal",name:"\u4E2A\u4EBA\u8BBE\u7F6E"},{path:"checkin",name:"\u7B7E\u5230\u8BBE\u7F6E",desc:" (Beta)"},{path:"language",name:"\u8BED\u8A00\u8BBE\u7F6E"},{path:"theme",name:"\u4E3B\u9898\u8BBE\u7F6E"},{path:"password",name:"\u5BC6\u7801\u8BBE\u7F6E"},{path:"email",name:"\u4FEE\u6539\u90AE\u7BB1"}];return this.$Electron&&e.splice(2,0,{path:"keyboard",name:"\u5FEB\u6377\u952E",desc:" (Beta)"}),["127.0.0.1:2222","192.168.100.88:2222","dootask.com","www.dootask.com","t.hitosea.com"].includes($A.getDomain($A.apiUrl("../")))&&this.$isEEUiApp&&e.push({path:"privacy",name:"\u9690\u79C1\u653F\u7B56",divided:!0},{path:"delete",name:"\u5220\u9664\u5E10\u53F7"}),this.userIsAdmin?e.push({path:"system",name:"\u7CFB\u7EDF\u8BBE\u7F6E",divided:!0},{path:"clearCache",name:"\u6E05\u9664\u7F13\u5B58"},{path:"logout",name:"\u9000\u51FA\u767B\u5F55"}):e.push({path:"clearCache",name:"\u6E05\u9664\u7F13\u5B58",divided:!0},{path:"logout",name:"\u9000\u51FA\u767B\u5F55"}),e},titleNameRoute(){const{routeName:e,menu:a}=this;let t="";return a.some(s=>{if(e===`manage-setting-${s.path}`)return t=`${s.name}${s.desc||""}`,!0}),t||"\u8BBE\u7F6E"},settingTitleName(){return this.windowSmall?this.titleNameRoute:"\u8BBE\u7F6E"}},watch:{routeName:{handler(e){e==="manage-setting"&&this.windowLarge&&this.goForward({name:"manage-setting-personal"},!0)},immediate:!0}},methods:{toggleRoute(e){switch(e){case"clearCache":this.$store.dispatch("handleClearCache",null).then(async()=>{await $A.IDBSet("clearCache",$A.randomString(6)),$A.reloadUrl()});break;case"logout":$A.modalConfirm({title:"\u9000\u51FA\u767B\u5F55",content:"\u4F60\u786E\u5B9A\u8981\u767B\u51FA\u7CFB\u7EDF\uFF1F",onOk:()=>{this.$store.dispatch("logout",!1)}});break;case"version":r.Store.set("updateNotification",null);break;case"privacy":this.openPrivacy();break;case"index":this.goForward({name:"manage-setting"});break;default:this.goForward({name:"manage-setting-"+e});break}},openPrivacy(){const e=$A.apiUrl("privacy");this.$isEEUiApp?$A.eeuiAppOpenPage({pageType:"app",pageTitle:" ",url:"web.js",params:{url:e,browser:!0,showProgress:!0}}):window.open(e)},classNameRoute(e,a){return{active:this.windowLarge&&this.routeName===`manage-setting-${e}`,divided:!!a}},onVersion(){l.get($A.apiUrl("system/version")).then(({status:e,data:a})=>{if(e===200){let t=`${this.$L("\u670D\u52A1\u5668")}: ${$A.getDomain($A.apiUrl("../"))}`;t+=`
    ${this.$L("\u670D\u52A1\u5668\u7248\u672C")}: v${a.version}`,t+=`
    ${this.$L("\u5BA2\u6237\u7AEF\u7248\u672C")}: v${this.version}`,$A.modalInfo({language:!1,title:"\u7248\u672C\u4FE1\u606F",content:t})}}).catch(e=>{})}}},i={};var h=c(d,u,m,!1,p,null,null,null);function p(e){for(let a in i)this[a]=i[a]}var $=function(){return h.exports}();export{$ as default}; diff --git a/public/js/build/index.5d080e35.js b/public/js/build/index.c87e6256.js similarity index 99% rename from public/js/build/index.5d080e35.js rename to public/js/build/index.c87e6256.js index 89eeeb02e..f085bb8dc 100644 --- a/public/js/build/index.5d080e35.js +++ b/public/js/build/index.c87e6256.js @@ -1 +1 @@ -import{l as o,a as n,m as d,s as l,n as g}from"./app.90cb6e79.js";import{U as m}from"./UpdateLog.8c1c1fb4.js";var c=function(){var t=this,i=t.$createElement,e=t._self._c||i;return t.needStartHome?e("div",{staticClass:"page-index"},[e("PageTitle",{attrs:{title:t.appTitle}}),e("div",{staticClass:"page-warp"},[e("div",{staticClass:"page-header"},[e("div",{staticClass:"header-nav"},[t._m(0),t.windowWidth>780?e("div",{staticClass:"header-nav-box header-nav-boxs"},[t.showItem.pro?e("Button",{staticClass:"header-right-pro no-dark-content",attrs:{size:"small"},on:{click:t.onPro}},[t._v(t._s(t.$L("Pro\u7248")))]):t._e(),t.windowWidth>=820?[t.showItem.github?e("a",{staticClass:"header-right-github",attrs:{href:t.showItem.github,target:"_blank"}},[e("Icon",{attrs:{type:"logo-github"}})],1):t._e(),t.showItem.updateLog?e("div",{staticClass:"header-right-uplog",on:{click:function(s){t.uplogShow=!0}}},[t._v(t._s(t.$L("\u66F4\u65B0\u65E5\u5FD7")))]):t._e()]:t._e(),e("div",{staticClass:"header-right-1"},[e("Dropdown",{attrs:{trigger:"click"},on:{"on-click":t.onLanguage}},[e("a",{staticClass:"header-right-1-dropdown",attrs:{href:"javascript:void(0)"}},[t._v(" "+t._s(t.currentLanguage)+" "),e("Icon",{attrs:{type:"ios-arrow-down"}})],1),e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},t._l(t.languageList,function(s,a){return e("DropdownItem",{key:a,attrs:{name:a,selected:t.languageType===a}},[t._v(t._s(s))])}),1)],1)],1),t.windowWidth>=980?e("div",{staticClass:"header-right-2"},[e("Dropdown",{attrs:{trigger:"click"},on:{"on-click":t.setTheme}},[e("a",{staticClass:"header-right-2-dropdown",attrs:{href:"javascript:void(0)"}},[t._v(" "+t._s(t.$L("\u4E3B\u9898\u76AE\u80A4"))+" "),e("Icon",{attrs:{type:"ios-arrow-down"}})],1),e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},t._l(t.themeList,function(s,a){return e("DropdownItem",{key:a,attrs:{name:s.value,selected:t.themeMode===s.value}},[t._v(t._s(t.$L(s.name)))])}),1)],1)],1):t._e(),t.userId>0?e("div",{staticClass:"header-right-5 no-dark-content",on:{click:t.login}},[e("UserAvatar",{attrs:{userid:t.userId,size:38}})],1):[e("div",{staticClass:"header-right-3",on:{click:t.register}},[t._v(t._s(t.$L("\u6CE8\u518C\u5E10\u53F7")))]),e("div",{staticClass:"header-right-4 no-dark-content",on:{click:t.login}},[t._v(t._s(t.$L("\u767B\u5F55")))])]],2):e("div",{staticClass:"header-nav-box header-nav-boxs"},[e("Dropdown",{attrs:{trigger:"click"}},[e("a",{attrs:{href:"javascript:void(0)"}},[e("Icon",{staticClass:"header-nav-more no-dark-content",attrs:{type:"md-menu"}})],1),e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[t.userId>0?e("DropdownItem",{nativeOn:{click:function(s){return t.login.apply(null,arguments)}}},[e("UserAvatar",{attrs:{userid:t.userId,"show-name":"","show-icon":!1}})],1):[e("DropdownItem",{nativeOn:{click:function(s){return t.login.apply(null,arguments)}}},[t._v(t._s(t.$L("\u767B\u5F55")))]),e("DropdownItem",{nativeOn:{click:function(s){return t.register.apply(null,arguments)}}},[t._v(t._s(t.$L("\u6CE8\u518C\u5E10\u53F7")))])],t.showItem.github?e("DropdownItem",{nativeOn:{click:function(s){return t.windowOpen(t.showItem.github)}}},[t._v("Github")]):t._e(),t.showItem.updateLog?e("DropdownItem",{nativeOn:{click:function(s){t.uplogShow=!0}}},[t._v(t._s(t.$L("\u66F4\u65B0\u65E5\u5FD7")))]):t._e(),e("Dropdown",{attrs:{placement:"right-start",transfer:""},on:{"on-click":t.onLanguage}},[e("DropdownItem",[e("div",{staticClass:"header-nav-dropdown-item"},[t._v(" "+t._s(t.currentLanguage)+" "),e("Icon",{attrs:{type:"ios-arrow-forward"}})],1)]),e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},t._l(t.languageList,function(s,a){return e("DropdownItem",{key:a,attrs:{name:a,selected:t.languageType===a}},[t._v(t._s(s))])}),1)],1),e("Dropdown",{attrs:{trigger:"click",placement:"right-end",transfer:""},on:{"on-click":t.setTheme}},[e("DropdownItem",[e("div",{staticClass:"header-nav-dropdown-item"},[t._v(" "+t._s(t.$L("\u4E3B\u9898\u76AE\u80A4"))+" "),e("Icon",{attrs:{type:"ios-arrow-forward"}})],1)]),e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},t._l(t.themeList,function(s,a){return e("DropdownItem",{key:a,attrs:{name:s.value,selected:t.themeMode===s.value}},[t._v(t._s(t.$L(s.name)))])}),1)],1)],2)],1)],1)]),e("div",{staticClass:"header-content"},[e("div",{staticClass:"header-title header-title-one"},[t._v(t._s(t.appTitle))]),e("div",{staticClass:"header-title"},[t._v(" "+t._s(t.$L("\u8F7B\u91CF\u7EA7\u4EFB\u52A1\u7BA1\u7406\u5DE5\u5177"))+" ")]),e("div",{staticClass:"header-tips"},[t._v(" "+t._s(t.$L(`${t.appTitle}\u662F\u4E00\u6B3E\u8F7B\u91CF\u7EA7\u7684\u5F00\u6E90\u5728\u7EBF\u9879\u76EE\u4EFB\u52A1\u7BA1\u7406\u5DE5\u5177\uFF0C\u63D0\u4F9B\u5404\u7C7B\u6587\u6863\u534F\u4F5C\u5DE5\u5177\u3001\u5728\u7EBF\u601D\u7EF4\u5BFC\u56FE\u3001\u5728\u7EBF\u6D41\u7A0B\u56FE\u3001\u9879\u76EE\u7BA1\u7406\u3001\u4EFB\u52A1\u5206\u53D1\u3001\u5373\u65F6IM\uFF0C\u6587\u4EF6\u7BA1\u7406\u7B49\u5DE5\u5177\u3002`))+" ")]),e("div",{staticClass:"login-buttom no-dark-content",on:{click:t.login}},[t._v(" "+t._s(t.$L("\u767B\u5F55"))+" ")])])]),e("div",{staticClass:"page-header-bottom"},[e("div",{staticClass:"page-header-bottoms"},[e("ImgView",{attrs:{src:t.themeIsDark?"images/index/dark/1.png":"images/index/light/1.png"}})],1)]),e("div",{staticClass:"page-main"},[e("Row",{class:t.windowWidth>1200?"page-main-row":"page-main-rows"},[e("Col",{class:t.windowWidth>1200?"page-main-img":"page-main-imgs",attrs:{xs:24,sm:24,xl:12}},[e("ImgView",{attrs:{src:t.themeIsDark?"images/index/dark/2.png":"images/index/light/2.png"}})],1),t.windowWidth>1200?e("Col",{staticClass:"page-main-text",attrs:{xs:24,sm:24,xl:12}},[e("ImgView",{attrs:{src:"images/index/square.png"}}),e("h3",[t._v(t._s(t.$L("\u9AD8\u6548\u4FBF\u6377\u7684\u56E2\u961F\u6C9F\u901A\u5DE5\u5177")))]),e("p",[t._v(t._s(t.$L("\u9488\u5BF9\u9879\u76EE\u548C\u4EFB\u52A1\u5EFA\u7ACB\u7FA4\u7EC4\uFF0C\u5DE5\u4F5C\u95EE\u9898\u53EF\u53CA\u65F6\u6C9F\u901A\uFF0C\u4FC3\u8FDB\u56E2\u961F\u5FEB\u901F\u534F\u4F5C\uFF0C\u63D0\u9AD8\u56E2\u961F\u5DE5\u4F5C\u6548\u7387\u3002")))])],1):e("Col",{staticClass:"page-main-text page-main-texts",attrs:{xs:24,sm:24,xl:12}},[e("h3",[e("ImgView",{attrs:{src:"images/index/square.png"}}),t._v(t._s(t.$L("\u9AD8\u6548\u4FBF\u6377\u7684\u56E2\u961F\u6C9F\u901A\u5DE5\u5177")))],1),e("p",[t._v(t._s(t.$L("\u9488\u5BF9\u9879\u76EE\u548C\u4EFB\u52A1\u5EFA\u7ACB\u7FA4\u7EC4\uFF0C\u5DE5\u4F5C\u95EE\u9898\u53EF\u53CA\u65F6\u6C9F\u901A\uFF0C\u4FC3\u8FDB\u56E2\u961F\u5FEB\u901F\u534F\u4F5C\uFF0C\u63D0\u9AD8\u56E2\u961F\u5DE5\u4F5C\u6548\u7387\u3002")))])])],1),e("Row",{class:t.windowWidth>1200?"page-main-row":"page-main-rows"},[t.windowWidth>1200?e("Col",{staticClass:"page-main-text",attrs:{xs:24,sm:24,xl:12}},[e("ImgView",{attrs:{src:"images/index/square.png"}}),e("h3",[t._v(t._s(t.$L("\u5F3A\u5927\u6613\u7528\u7684\u534F\u540C\u521B\u4F5C\u4E91\u6587\u6863")))]),e("p",[t._v(t._s(t.$L("\u6C47\u96C6\u6587\u6863\u3001\u7535\u5B50\u8868\u683C\u3001\u601D\u7EF4\u7B14\u8BB0\u7B49\u591A\u79CD\u5728\u7EBF\u5DE5\u5177\uFF0C\u6C47\u805A\u4F01\u4E1A\u77E5\u8BC6\u8D44\u6E90\u4E8E\u4E00\u5904\uFF0C\u652F\u6301\u591A\u4EBA\u5B9E\u65F6\u534F\u540C\u7F16\u8F91\uFF0C\u8BA9\u56E2\u961F\u534F\u4F5C\u66F4\u4FBF\u6377\u3002")))])],1):t._e(),e("Col",{class:t.windowWidth>1200?"page-main-img":"page-main-imgs",attrs:{xs:24,sm:24,xl:12}},[e("ImgView",{attrs:{src:t.themeIsDark?"images/index/dark/3.png":"images/index/light/3.png"}})],1),t.windowWidth<=1200?e("Col",{staticClass:"page-main-text page-main-texts",attrs:{xs:24,sm:24,xl:12}},[e("h3",[e("ImgView",{attrs:{src:"images/index/square.png"}}),t._v(t._s(t.$L("\u5F3A\u5927\u6613\u7528\u7684\u534F\u540C\u521B\u4F5C\u4E91\u6587\u6863")))],1),e("p",[t._v(t._s(t.$L("\u6C47\u96C6\u6587\u6863\u3001\u7535\u5B50\u8868\u683C\u3001\u601D\u7EF4\u7B14\u8BB0\u7B49\u591A\u79CD\u5728\u7EBF\u5DE5\u5177\uFF0C\u6C47\u805A\u4F01\u4E1A\u77E5\u8BC6\u8D44\u6E90\u4E8E\u4E00\u5904\uFF0C\u652F\u6301\u591A\u4EBA\u5B9E\u65F6\u534F\u540C\u7F16\u8F91\uFF0C\u8BA9\u56E2\u961F\u534F\u4F5C\u66F4\u4FBF\u6377\u3002")))])]):t._e()],1),e("Row",{class:t.windowWidth>1200?"page-main-row":"page-main-rows"},[e("Col",{class:t.windowWidth>1200?"page-main-img":"page-main-imgs",attrs:{xs:24,sm:24,xl:12}},[e("ImgView",{attrs:{src:t.themeIsDark?"images/index/dark/4.png":"images/index/light/4.png"}})],1),t.windowWidth>1200?e("Col",{staticClass:"page-main-text",attrs:{xs:24,sm:24,xl:12}},[e("ImgView",{attrs:{src:"images/index/square.png"}}),e("h3",[t._v(t._s(t.$L("\u4FBF\u6377\u6613\u7528\u7684\u9879\u76EE\u7BA1\u7406\u6A21\u677F")))]),e("p",[t._v(t._s(t.$L("\u6A21\u7248\u6EE1\u8DB3\u591A\u79CD\u56E2\u961F\u534F\u4F5C\u573A\u666F\uFF0C\u540C\u65F6\u652F\u6301\u81EA\u5B9A\u4E49\u6A21\u7248\uFF0C\u6EE1\u8DB3\u56E2\u961F\u4E2A\u6027\u5316\u573A\u666F\u7BA1\u7406\u9700\u6C42\uFF0C\u53EF\u76F4\u89C2\u7684\u67E5\u770B\u9879\u76EE\u7684\u8FDB\u5C55\u60C5\u51B5\uFF0C\u56E2\u961F\u534F\u4F5C\u66F4\u65B9\u4FBF\u3002")))])],1):e("Col",{staticClass:"page-main-text page-main-texts",attrs:{xs:24,sm:24,xl:12}},[e("h3",[e("ImgView",{attrs:{src:"images/index/square.png"}}),t._v(t._s(t.$L("\u4FBF\u6377\u6613\u7528\u7684\u9879\u76EE\u7BA1\u7406\u6A21\u677F")))],1),e("p",[t._v(t._s(t.$L("\u6A21\u7248\u6EE1\u8DB3\u591A\u79CD\u56E2\u961F\u534F\u4F5C\u573A\u666F\uFF0C\u540C\u65F6\u652F\u6301\u81EA\u5B9A\u4E49\u6A21\u7248\uFF0C\u6EE1\u8DB3\u56E2\u961F\u4E2A\u6027\u5316\u573A\u666F\u7BA1\u7406\u9700\u6C42\uFF0C\u53EF\u76F4\u89C2\u7684\u67E5\u770B\u9879\u76EE\u7684\u8FDB\u5C55\u60C5\u51B5\uFF0C\u56E2\u961F\u534F\u4F5C\u66F4\u65B9\u4FBF\u3002")))])])],1),e("Row",{class:t.windowWidth>1200?"page-main-row":"page-main-rows"},[t.windowWidth>1200?e("Col",{staticClass:"page-main-text",attrs:{xs:24,sm:24,xl:12}},[e("ImgView",{attrs:{src:"images/index/square.png"}}),e("h3",[t._v(t._s(t.$L("\u6E05\u6670\u76F4\u89C2\u7684\u4EFB\u52A1\u65E5\u5386")))]),e("p",[t._v(t._s(t.$L("\u901A\u8FC7\u7075\u6D3B\u7684\u4EFB\u52A1\u65E5\u5386\uFF0C\u8F7B\u677E\u5B89\u6392\u6BCF\u4E00\u5929\u7684\u65E5\u7A0B\uFF0C\u628A\u4EFB\u52A1\u62C6\u89E3\u5230\u6BCF\u5929\uFF0C\u8BA9\u5DE5\u4F5C\u76EE\u6807\u66F4\u6E05\u6670\uFF0C\u65F6\u95F4\u5206\u914D\u66F4\u5408\u7406\u3002")))])],1):t._e(),e("Col",{class:t.windowWidth>1200?"page-main-img":"page-main-imgs",attrs:{xs:24,sm:24,xl:12}},[e("ImgView",{attrs:{src:t.themeIsDark?"images/index/dark/5.png":"images/index/light/5.png"}})],1),t.windowWidth<=1200?e("Col",{staticClass:"page-main-text page-main-texts",attrs:{xs:24,sm:24,xl:12}},[e("h3",[e("ImgView",{attrs:{src:"images/index/square.png"}}),t._v(t._s(t.$L("\u6E05\u6670\u76F4\u89C2\u7684\u4EFB\u52A1\u65E5\u5386")))],1),e("p",[t._v(t._s(t.$L("\u901A\u8FC7\u7075\u6D3B\u7684\u4EFB\u52A1\u65E5\u5386\uFF0C\u8F7B\u677E\u5B89\u6392\u6BCF\u4E00\u5929\u7684\u65E5\u7A0B\uFF0C\u628A\u4EFB\u52A1\u62C6\u89E3\u5230\u6BCF\u5929\uFF0C\u8BA9\u5DE5\u4F5C\u76EE\u6807\u66F4\u6E05\u6670\uFF0C\u65F6\u95F4\u5206\u914D\u66F4\u5408\u7406\u3002")))])]):t._e()],1),e("Row",{class:t.windowWidth>1200?"page-main-row":"page-main-rows"},[e("Col",{class:t.windowWidth>1200?"page-main-img":"page-main-imgs",attrs:{xs:24,sm:24,xl:12}},[e("ImgView",{attrs:{src:t.themeIsDark?"images/index/dark/6.png":"images/index/light/6.png"}})],1),t.windowWidth>1200?e("Col",{staticClass:"page-main-text",attrs:{xs:24,sm:24,xl:12}},[e("ImgView",{attrs:{src:"images/index/square.png"}}),e("h3",[t._v(t._s(t.$L("\u652F\u6301\u591A\u5E73\u53F0\u5E94\u7528")))]),e("p",[t._v(t._s(t.$L("\u591A\u5E73\u53F0\u5E94\u7528\u652F\u6301\uFF0C\u6253\u5F00\u5BA2\u6237\u7AEF\u5373\u53EF\u8DDF\u8FDB\u9879\u76EE\u4EFB\u52A1\u8FDB\u5EA6\uFF0C \u540C\u65F6\u8BA9\u4F60\u5728\u5DE5\u4F5C\u4E2D\u6BCF\u4E00\u4E2A\u6B65\u9AA4\u90FD\u80FD\u62E5\u6709\u66F4\u9AD8\u6548\u6109\u60A6\u7684\u4F53\u9A8C\u3002")))])],1):e("Col",{staticClass:"page-main-text page-main-texts",attrs:{xs:24,sm:24,xl:12}},[e("h3",[e("ImgView",{attrs:{src:"images/index/square.png"}}),t._v(t._s(t.$L("\u652F\u6301\u591A\u5E73\u53F0\u5E94\u7528")))],1),e("p",[t._v(t._s(t.$L("\u591A\u5E73\u53F0\u5E94\u7528\u652F\u6301\uFF0C\u6253\u5F00\u5BA2\u6237\u7AEF\u5373\u53EF\u8DDF\u8FDB\u9879\u76EE\u4EFB\u52A1\u8FDB\u5EA6\uFF0C \u540C\u65F6\u8BA9\u4F60\u5728\u5DE5\u4F5C\u4E2D\u6BCF\u4E00\u4E2A\u6B65\u9AA4\u90FD\u80FD\u62E5\u6709\u66F4\u9AD8\u6548\u6109\u60A6\u7684\u4F53\u9A8C\u3002")))])])],1)],1),e("div",{staticClass:"page-footer"},[e("div",{staticClass:"footer-service no-dark-content"},[e("div",{staticClass:"footer-bg-box"},[e("div",{staticClass:"box-title"},[t._v(t._s(t.$L(`\u5F00\u542F\u60A8\u7684 ${t.appTitle} \u56E2\u961F\u534F\u4F5C`)))]),e("div",{staticClass:"buttom-box"},[e("div",{staticClass:"login-btn",on:{click:t.login}},[t._v(t._s(t.$L("\u7ACB\u5373\u767B\u5F55")))]),e("div",{staticClass:"reg-btn",on:{click:t.register}},[t._v(t._s(t.$L("\u6CE8\u518C")))])])])]),t.homeFooter?e("div",{staticClass:"footer-copyright",domProps:{innerHTML:t._s(t.homeFooter)}}):t._e()])]),e("UpdateLog",{attrs:{"update-log":t.showItem.updateLog,"update-ver":t.showItem.updateVer},model:{value:t.uplogShow,callback:function(s){t.uplogShow=s},expression:"uplogShow"}})],1):t._e()},h=[function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"header-nav-box"},[e("div",{staticClass:"logo no-dark-content"})])}];const p={components:{UpdateLog:m},data(){return{languageList:o,languageType:n,showItem:{pro:!1,github:"",updateLog:"",updateVer:""},needStartHome:!1,homeFooter:"",uplogShow:!1}},computed:{...d(["themeMode","themeIsDark","themeList"]),isSoftware(){return this.$Electron||this.$isEEUiApp},currentLanguage(){return o[n]||"Language"},appTitle(){return window.systemInfo.title||"DooTask"}},mounted(){/^https*:/i.test(window.location.protocol)&&(this.$router.mode==="hash"?$A.stringLength(window.location.pathname)>2&&(window.location.href=`${window.location.origin}/#${window.location.pathname}${window.location.search}`):this.$router.mode==="history"&&$A.strExists(window.location.href,"/#/")&&(window.location.href=window.location.href.replace("/#/","/")))},activated(){this.getShowItem(),this.getNeedStartHome()},methods:{onPro(){this.goForward({name:"pro"})},setTheme(t){this.$store.dispatch("setTheme",t)},login(){this.userId>0?this.goForward({name:"manage-dashboard"},!0):this.goForward({name:"login"},!0)},register(){this.goForward({name:"login",query:{type:"reg"}})},windowOpen(t){window.open(t)},getShowItem(){this.$store.dispatch("call",{url:"system/get/showitem",spinner:1e3}).then(({data:t})=>{this.showItem=t}).catch(t=>{this.showItem={}})},getNeedStartHome(){if(this.isSoftware){this.needStartHome=!1,this.userId>0?this.goForward({name:"manage-dashboard"},!0):this.goForward({name:"login"},!0);return}this.$store.dispatch("showSpinner",1e3),this.$store.dispatch("needHome").then(t=>{this.userId===0||this.$route.query.action==="index"?(this.needStartHome=!0,this.homeFooter=t.home_footer):this.goNext()}).catch(t=>{this.needStartHome=!1,this.goNext()}).finally(t=>{this.$store.dispatch("hiddenSpinner")})},goNext(){this.userId>0?this.goForward({name:"manage-dashboard"},!0):this.goForward({name:"login"},!0)},onLanguage(t){l(t)}}},r={};var w=g(p,c,h,!1,u,null,null,null);function u(t){for(let i in r)this[i]=r[i]}var x=function(){return w.exports}();export{x as default}; +import{l as o,a as n,m as d,s as l,n as g}from"./app.feefc813.js";import{U as m}from"./UpdateLog.c8b0b98a.js";var c=function(){var t=this,i=t.$createElement,e=t._self._c||i;return t.needStartHome?e("div",{staticClass:"page-index"},[e("PageTitle",{attrs:{title:t.appTitle}}),e("div",{staticClass:"page-warp"},[e("div",{staticClass:"page-header"},[e("div",{staticClass:"header-nav"},[t._m(0),t.windowWidth>780?e("div",{staticClass:"header-nav-box header-nav-boxs"},[t.showItem.pro?e("Button",{staticClass:"header-right-pro no-dark-content",attrs:{size:"small"},on:{click:t.onPro}},[t._v(t._s(t.$L("Pro\u7248")))]):t._e(),t.windowWidth>=820?[t.showItem.github?e("a",{staticClass:"header-right-github",attrs:{href:t.showItem.github,target:"_blank"}},[e("Icon",{attrs:{type:"logo-github"}})],1):t._e(),t.showItem.updateLog?e("div",{staticClass:"header-right-uplog",on:{click:function(s){t.uplogShow=!0}}},[t._v(t._s(t.$L("\u66F4\u65B0\u65E5\u5FD7")))]):t._e()]:t._e(),e("div",{staticClass:"header-right-1"},[e("Dropdown",{attrs:{trigger:"click"},on:{"on-click":t.onLanguage}},[e("a",{staticClass:"header-right-1-dropdown",attrs:{href:"javascript:void(0)"}},[t._v(" "+t._s(t.currentLanguage)+" "),e("Icon",{attrs:{type:"ios-arrow-down"}})],1),e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},t._l(t.languageList,function(s,a){return e("DropdownItem",{key:a,attrs:{name:a,selected:t.languageType===a}},[t._v(t._s(s))])}),1)],1)],1),t.windowWidth>=980?e("div",{staticClass:"header-right-2"},[e("Dropdown",{attrs:{trigger:"click"},on:{"on-click":t.setTheme}},[e("a",{staticClass:"header-right-2-dropdown",attrs:{href:"javascript:void(0)"}},[t._v(" "+t._s(t.$L("\u4E3B\u9898\u76AE\u80A4"))+" "),e("Icon",{attrs:{type:"ios-arrow-down"}})],1),e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},t._l(t.themeList,function(s,a){return e("DropdownItem",{key:a,attrs:{name:s.value,selected:t.themeMode===s.value}},[t._v(t._s(t.$L(s.name)))])}),1)],1)],1):t._e(),t.userId>0?e("div",{staticClass:"header-right-5 no-dark-content",on:{click:t.login}},[e("UserAvatar",{attrs:{userid:t.userId,size:38}})],1):[e("div",{staticClass:"header-right-3",on:{click:t.register}},[t._v(t._s(t.$L("\u6CE8\u518C\u5E10\u53F7")))]),e("div",{staticClass:"header-right-4 no-dark-content",on:{click:t.login}},[t._v(t._s(t.$L("\u767B\u5F55")))])]],2):e("div",{staticClass:"header-nav-box header-nav-boxs"},[e("Dropdown",{attrs:{trigger:"click"}},[e("a",{attrs:{href:"javascript:void(0)"}},[e("Icon",{staticClass:"header-nav-more no-dark-content",attrs:{type:"md-menu"}})],1),e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[t.userId>0?e("DropdownItem",{nativeOn:{click:function(s){return t.login.apply(null,arguments)}}},[e("UserAvatar",{attrs:{userid:t.userId,"show-name":"","show-icon":!1}})],1):[e("DropdownItem",{nativeOn:{click:function(s){return t.login.apply(null,arguments)}}},[t._v(t._s(t.$L("\u767B\u5F55")))]),e("DropdownItem",{nativeOn:{click:function(s){return t.register.apply(null,arguments)}}},[t._v(t._s(t.$L("\u6CE8\u518C\u5E10\u53F7")))])],t.showItem.github?e("DropdownItem",{nativeOn:{click:function(s){return t.windowOpen(t.showItem.github)}}},[t._v("Github")]):t._e(),t.showItem.updateLog?e("DropdownItem",{nativeOn:{click:function(s){t.uplogShow=!0}}},[t._v(t._s(t.$L("\u66F4\u65B0\u65E5\u5FD7")))]):t._e(),e("Dropdown",{attrs:{placement:"right-start",transfer:""},on:{"on-click":t.onLanguage}},[e("DropdownItem",[e("div",{staticClass:"header-nav-dropdown-item"},[t._v(" "+t._s(t.currentLanguage)+" "),e("Icon",{attrs:{type:"ios-arrow-forward"}})],1)]),e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},t._l(t.languageList,function(s,a){return e("DropdownItem",{key:a,attrs:{name:a,selected:t.languageType===a}},[t._v(t._s(s))])}),1)],1),e("Dropdown",{attrs:{trigger:"click",placement:"right-end",transfer:""},on:{"on-click":t.setTheme}},[e("DropdownItem",[e("div",{staticClass:"header-nav-dropdown-item"},[t._v(" "+t._s(t.$L("\u4E3B\u9898\u76AE\u80A4"))+" "),e("Icon",{attrs:{type:"ios-arrow-forward"}})],1)]),e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},t._l(t.themeList,function(s,a){return e("DropdownItem",{key:a,attrs:{name:s.value,selected:t.themeMode===s.value}},[t._v(t._s(t.$L(s.name)))])}),1)],1)],2)],1)],1)]),e("div",{staticClass:"header-content"},[e("div",{staticClass:"header-title header-title-one"},[t._v(t._s(t.appTitle))]),e("div",{staticClass:"header-title"},[t._v(" "+t._s(t.$L("\u8F7B\u91CF\u7EA7\u4EFB\u52A1\u7BA1\u7406\u5DE5\u5177"))+" ")]),e("div",{staticClass:"header-tips"},[t._v(" "+t._s(t.$L(`${t.appTitle}\u662F\u4E00\u6B3E\u8F7B\u91CF\u7EA7\u7684\u5F00\u6E90\u5728\u7EBF\u9879\u76EE\u4EFB\u52A1\u7BA1\u7406\u5DE5\u5177\uFF0C\u63D0\u4F9B\u5404\u7C7B\u6587\u6863\u534F\u4F5C\u5DE5\u5177\u3001\u5728\u7EBF\u601D\u7EF4\u5BFC\u56FE\u3001\u5728\u7EBF\u6D41\u7A0B\u56FE\u3001\u9879\u76EE\u7BA1\u7406\u3001\u4EFB\u52A1\u5206\u53D1\u3001\u5373\u65F6IM\uFF0C\u6587\u4EF6\u7BA1\u7406\u7B49\u5DE5\u5177\u3002`))+" ")]),e("div",{staticClass:"login-buttom no-dark-content",on:{click:t.login}},[t._v(" "+t._s(t.$L("\u767B\u5F55"))+" ")])])]),e("div",{staticClass:"page-header-bottom"},[e("div",{staticClass:"page-header-bottoms"},[e("ImgView",{attrs:{src:t.themeIsDark?"images/index/dark/1.png":"images/index/light/1.png"}})],1)]),e("div",{staticClass:"page-main"},[e("Row",{class:t.windowWidth>1200?"page-main-row":"page-main-rows"},[e("Col",{class:t.windowWidth>1200?"page-main-img":"page-main-imgs",attrs:{xs:24,sm:24,xl:12}},[e("ImgView",{attrs:{src:t.themeIsDark?"images/index/dark/2.png":"images/index/light/2.png"}})],1),t.windowWidth>1200?e("Col",{staticClass:"page-main-text",attrs:{xs:24,sm:24,xl:12}},[e("ImgView",{attrs:{src:"images/index/square.png"}}),e("h3",[t._v(t._s(t.$L("\u9AD8\u6548\u4FBF\u6377\u7684\u56E2\u961F\u6C9F\u901A\u5DE5\u5177")))]),e("p",[t._v(t._s(t.$L("\u9488\u5BF9\u9879\u76EE\u548C\u4EFB\u52A1\u5EFA\u7ACB\u7FA4\u7EC4\uFF0C\u5DE5\u4F5C\u95EE\u9898\u53EF\u53CA\u65F6\u6C9F\u901A\uFF0C\u4FC3\u8FDB\u56E2\u961F\u5FEB\u901F\u534F\u4F5C\uFF0C\u63D0\u9AD8\u56E2\u961F\u5DE5\u4F5C\u6548\u7387\u3002")))])],1):e("Col",{staticClass:"page-main-text page-main-texts",attrs:{xs:24,sm:24,xl:12}},[e("h3",[e("ImgView",{attrs:{src:"images/index/square.png"}}),t._v(t._s(t.$L("\u9AD8\u6548\u4FBF\u6377\u7684\u56E2\u961F\u6C9F\u901A\u5DE5\u5177")))],1),e("p",[t._v(t._s(t.$L("\u9488\u5BF9\u9879\u76EE\u548C\u4EFB\u52A1\u5EFA\u7ACB\u7FA4\u7EC4\uFF0C\u5DE5\u4F5C\u95EE\u9898\u53EF\u53CA\u65F6\u6C9F\u901A\uFF0C\u4FC3\u8FDB\u56E2\u961F\u5FEB\u901F\u534F\u4F5C\uFF0C\u63D0\u9AD8\u56E2\u961F\u5DE5\u4F5C\u6548\u7387\u3002")))])])],1),e("Row",{class:t.windowWidth>1200?"page-main-row":"page-main-rows"},[t.windowWidth>1200?e("Col",{staticClass:"page-main-text",attrs:{xs:24,sm:24,xl:12}},[e("ImgView",{attrs:{src:"images/index/square.png"}}),e("h3",[t._v(t._s(t.$L("\u5F3A\u5927\u6613\u7528\u7684\u534F\u540C\u521B\u4F5C\u4E91\u6587\u6863")))]),e("p",[t._v(t._s(t.$L("\u6C47\u96C6\u6587\u6863\u3001\u7535\u5B50\u8868\u683C\u3001\u601D\u7EF4\u7B14\u8BB0\u7B49\u591A\u79CD\u5728\u7EBF\u5DE5\u5177\uFF0C\u6C47\u805A\u4F01\u4E1A\u77E5\u8BC6\u8D44\u6E90\u4E8E\u4E00\u5904\uFF0C\u652F\u6301\u591A\u4EBA\u5B9E\u65F6\u534F\u540C\u7F16\u8F91\uFF0C\u8BA9\u56E2\u961F\u534F\u4F5C\u66F4\u4FBF\u6377\u3002")))])],1):t._e(),e("Col",{class:t.windowWidth>1200?"page-main-img":"page-main-imgs",attrs:{xs:24,sm:24,xl:12}},[e("ImgView",{attrs:{src:t.themeIsDark?"images/index/dark/3.png":"images/index/light/3.png"}})],1),t.windowWidth<=1200?e("Col",{staticClass:"page-main-text page-main-texts",attrs:{xs:24,sm:24,xl:12}},[e("h3",[e("ImgView",{attrs:{src:"images/index/square.png"}}),t._v(t._s(t.$L("\u5F3A\u5927\u6613\u7528\u7684\u534F\u540C\u521B\u4F5C\u4E91\u6587\u6863")))],1),e("p",[t._v(t._s(t.$L("\u6C47\u96C6\u6587\u6863\u3001\u7535\u5B50\u8868\u683C\u3001\u601D\u7EF4\u7B14\u8BB0\u7B49\u591A\u79CD\u5728\u7EBF\u5DE5\u5177\uFF0C\u6C47\u805A\u4F01\u4E1A\u77E5\u8BC6\u8D44\u6E90\u4E8E\u4E00\u5904\uFF0C\u652F\u6301\u591A\u4EBA\u5B9E\u65F6\u534F\u540C\u7F16\u8F91\uFF0C\u8BA9\u56E2\u961F\u534F\u4F5C\u66F4\u4FBF\u6377\u3002")))])]):t._e()],1),e("Row",{class:t.windowWidth>1200?"page-main-row":"page-main-rows"},[e("Col",{class:t.windowWidth>1200?"page-main-img":"page-main-imgs",attrs:{xs:24,sm:24,xl:12}},[e("ImgView",{attrs:{src:t.themeIsDark?"images/index/dark/4.png":"images/index/light/4.png"}})],1),t.windowWidth>1200?e("Col",{staticClass:"page-main-text",attrs:{xs:24,sm:24,xl:12}},[e("ImgView",{attrs:{src:"images/index/square.png"}}),e("h3",[t._v(t._s(t.$L("\u4FBF\u6377\u6613\u7528\u7684\u9879\u76EE\u7BA1\u7406\u6A21\u677F")))]),e("p",[t._v(t._s(t.$L("\u6A21\u7248\u6EE1\u8DB3\u591A\u79CD\u56E2\u961F\u534F\u4F5C\u573A\u666F\uFF0C\u540C\u65F6\u652F\u6301\u81EA\u5B9A\u4E49\u6A21\u7248\uFF0C\u6EE1\u8DB3\u56E2\u961F\u4E2A\u6027\u5316\u573A\u666F\u7BA1\u7406\u9700\u6C42\uFF0C\u53EF\u76F4\u89C2\u7684\u67E5\u770B\u9879\u76EE\u7684\u8FDB\u5C55\u60C5\u51B5\uFF0C\u56E2\u961F\u534F\u4F5C\u66F4\u65B9\u4FBF\u3002")))])],1):e("Col",{staticClass:"page-main-text page-main-texts",attrs:{xs:24,sm:24,xl:12}},[e("h3",[e("ImgView",{attrs:{src:"images/index/square.png"}}),t._v(t._s(t.$L("\u4FBF\u6377\u6613\u7528\u7684\u9879\u76EE\u7BA1\u7406\u6A21\u677F")))],1),e("p",[t._v(t._s(t.$L("\u6A21\u7248\u6EE1\u8DB3\u591A\u79CD\u56E2\u961F\u534F\u4F5C\u573A\u666F\uFF0C\u540C\u65F6\u652F\u6301\u81EA\u5B9A\u4E49\u6A21\u7248\uFF0C\u6EE1\u8DB3\u56E2\u961F\u4E2A\u6027\u5316\u573A\u666F\u7BA1\u7406\u9700\u6C42\uFF0C\u53EF\u76F4\u89C2\u7684\u67E5\u770B\u9879\u76EE\u7684\u8FDB\u5C55\u60C5\u51B5\uFF0C\u56E2\u961F\u534F\u4F5C\u66F4\u65B9\u4FBF\u3002")))])])],1),e("Row",{class:t.windowWidth>1200?"page-main-row":"page-main-rows"},[t.windowWidth>1200?e("Col",{staticClass:"page-main-text",attrs:{xs:24,sm:24,xl:12}},[e("ImgView",{attrs:{src:"images/index/square.png"}}),e("h3",[t._v(t._s(t.$L("\u6E05\u6670\u76F4\u89C2\u7684\u4EFB\u52A1\u65E5\u5386")))]),e("p",[t._v(t._s(t.$L("\u901A\u8FC7\u7075\u6D3B\u7684\u4EFB\u52A1\u65E5\u5386\uFF0C\u8F7B\u677E\u5B89\u6392\u6BCF\u4E00\u5929\u7684\u65E5\u7A0B\uFF0C\u628A\u4EFB\u52A1\u62C6\u89E3\u5230\u6BCF\u5929\uFF0C\u8BA9\u5DE5\u4F5C\u76EE\u6807\u66F4\u6E05\u6670\uFF0C\u65F6\u95F4\u5206\u914D\u66F4\u5408\u7406\u3002")))])],1):t._e(),e("Col",{class:t.windowWidth>1200?"page-main-img":"page-main-imgs",attrs:{xs:24,sm:24,xl:12}},[e("ImgView",{attrs:{src:t.themeIsDark?"images/index/dark/5.png":"images/index/light/5.png"}})],1),t.windowWidth<=1200?e("Col",{staticClass:"page-main-text page-main-texts",attrs:{xs:24,sm:24,xl:12}},[e("h3",[e("ImgView",{attrs:{src:"images/index/square.png"}}),t._v(t._s(t.$L("\u6E05\u6670\u76F4\u89C2\u7684\u4EFB\u52A1\u65E5\u5386")))],1),e("p",[t._v(t._s(t.$L("\u901A\u8FC7\u7075\u6D3B\u7684\u4EFB\u52A1\u65E5\u5386\uFF0C\u8F7B\u677E\u5B89\u6392\u6BCF\u4E00\u5929\u7684\u65E5\u7A0B\uFF0C\u628A\u4EFB\u52A1\u62C6\u89E3\u5230\u6BCF\u5929\uFF0C\u8BA9\u5DE5\u4F5C\u76EE\u6807\u66F4\u6E05\u6670\uFF0C\u65F6\u95F4\u5206\u914D\u66F4\u5408\u7406\u3002")))])]):t._e()],1),e("Row",{class:t.windowWidth>1200?"page-main-row":"page-main-rows"},[e("Col",{class:t.windowWidth>1200?"page-main-img":"page-main-imgs",attrs:{xs:24,sm:24,xl:12}},[e("ImgView",{attrs:{src:t.themeIsDark?"images/index/dark/6.png":"images/index/light/6.png"}})],1),t.windowWidth>1200?e("Col",{staticClass:"page-main-text",attrs:{xs:24,sm:24,xl:12}},[e("ImgView",{attrs:{src:"images/index/square.png"}}),e("h3",[t._v(t._s(t.$L("\u652F\u6301\u591A\u5E73\u53F0\u5E94\u7528")))]),e("p",[t._v(t._s(t.$L("\u591A\u5E73\u53F0\u5E94\u7528\u652F\u6301\uFF0C\u6253\u5F00\u5BA2\u6237\u7AEF\u5373\u53EF\u8DDF\u8FDB\u9879\u76EE\u4EFB\u52A1\u8FDB\u5EA6\uFF0C \u540C\u65F6\u8BA9\u4F60\u5728\u5DE5\u4F5C\u4E2D\u6BCF\u4E00\u4E2A\u6B65\u9AA4\u90FD\u80FD\u62E5\u6709\u66F4\u9AD8\u6548\u6109\u60A6\u7684\u4F53\u9A8C\u3002")))])],1):e("Col",{staticClass:"page-main-text page-main-texts",attrs:{xs:24,sm:24,xl:12}},[e("h3",[e("ImgView",{attrs:{src:"images/index/square.png"}}),t._v(t._s(t.$L("\u652F\u6301\u591A\u5E73\u53F0\u5E94\u7528")))],1),e("p",[t._v(t._s(t.$L("\u591A\u5E73\u53F0\u5E94\u7528\u652F\u6301\uFF0C\u6253\u5F00\u5BA2\u6237\u7AEF\u5373\u53EF\u8DDF\u8FDB\u9879\u76EE\u4EFB\u52A1\u8FDB\u5EA6\uFF0C \u540C\u65F6\u8BA9\u4F60\u5728\u5DE5\u4F5C\u4E2D\u6BCF\u4E00\u4E2A\u6B65\u9AA4\u90FD\u80FD\u62E5\u6709\u66F4\u9AD8\u6548\u6109\u60A6\u7684\u4F53\u9A8C\u3002")))])])],1)],1),e("div",{staticClass:"page-footer"},[e("div",{staticClass:"footer-service no-dark-content"},[e("div",{staticClass:"footer-bg-box"},[e("div",{staticClass:"box-title"},[t._v(t._s(t.$L(`\u5F00\u542F\u60A8\u7684 ${t.appTitle} \u56E2\u961F\u534F\u4F5C`)))]),e("div",{staticClass:"buttom-box"},[e("div",{staticClass:"login-btn",on:{click:t.login}},[t._v(t._s(t.$L("\u7ACB\u5373\u767B\u5F55")))]),e("div",{staticClass:"reg-btn",on:{click:t.register}},[t._v(t._s(t.$L("\u6CE8\u518C")))])])])]),t.homeFooter?e("div",{staticClass:"footer-copyright",domProps:{innerHTML:t._s(t.homeFooter)}}):t._e()])]),e("UpdateLog",{attrs:{"update-log":t.showItem.updateLog,"update-ver":t.showItem.updateVer},model:{value:t.uplogShow,callback:function(s){t.uplogShow=s},expression:"uplogShow"}})],1):t._e()},h=[function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"header-nav-box"},[e("div",{staticClass:"logo no-dark-content"})])}];const p={components:{UpdateLog:m},data(){return{languageList:o,languageType:n,showItem:{pro:!1,github:"",updateLog:"",updateVer:""},needStartHome:!1,homeFooter:"",uplogShow:!1}},computed:{...d(["themeMode","themeIsDark","themeList"]),isSoftware(){return this.$Electron||this.$isEEUiApp},currentLanguage(){return o[n]||"Language"},appTitle(){return window.systemInfo.title||"DooTask"}},mounted(){/^https*:/i.test(window.location.protocol)&&(this.$router.mode==="hash"?$A.stringLength(window.location.pathname)>2&&(window.location.href=`${window.location.origin}/#${window.location.pathname}${window.location.search}`):this.$router.mode==="history"&&$A.strExists(window.location.href,"/#/")&&(window.location.href=window.location.href.replace("/#/","/")))},activated(){this.getShowItem(),this.getNeedStartHome()},methods:{onPro(){this.goForward({name:"pro"})},setTheme(t){this.$store.dispatch("setTheme",t)},login(){this.userId>0?this.goForward({name:"manage-dashboard"},!0):this.goForward({name:"login"},!0)},register(){this.goForward({name:"login",query:{type:"reg"}})},windowOpen(t){window.open(t)},getShowItem(){this.$store.dispatch("call",{url:"system/get/showitem",spinner:1e3}).then(({data:t})=>{this.showItem=t}).catch(t=>{this.showItem={}})},getNeedStartHome(){if(this.isSoftware){this.needStartHome=!1,this.userId>0?this.goForward({name:"manage-dashboard"},!0):this.goForward({name:"login"},!0);return}this.$store.dispatch("showSpinner",1e3),this.$store.dispatch("needHome").then(t=>{this.userId===0||this.$route.query.action==="index"?(this.needStartHome=!0,this.homeFooter=t.home_footer):this.goNext()}).catch(t=>{this.needStartHome=!1,this.goNext()}).finally(t=>{this.$store.dispatch("hiddenSpinner")})},goNext(){this.userId>0?this.goForward({name:"manage-dashboard"},!0):this.goForward({name:"login"},!0)},onLanguage(t){l(t)}}},r={};var w=g(p,c,h,!1,u,null,null,null);function u(t){for(let i in r)this[i]=r[i]}var x=function(){return w.exports}();export{x as default}; diff --git a/public/js/build/index.b6ff1b3f.js b/public/js/build/index.f3f56c75.js similarity index 98% rename from public/js/build/index.b6ff1b3f.js rename to public/js/build/index.f3f56c75.js index 29c72c6b9..2077e7030 100644 --- a/public/js/build/index.b6ff1b3f.js +++ b/public/js/build/index.f3f56c75.js @@ -1 +1 @@ -import{n as s}from"./app.90cb6e79.js";var l=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"component-resize-line",class:[e.resizing?"resizing":"",e.placement],on:{mousedown:function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"left",37,i.key,["Left","ArrowLeft"])||"button"in i&&i.button!==0?null:(i.stopPropagation(),i.preventDefault(),e.resizeDown.apply(null,arguments))}}})},u=[];const m={name:"ResizeLine",props:{value:{},min:{type:Number,default:100},max:{type:Number,default:600},placement:{validator(e){return["right","bottom"].includes(e)},default:"bottom"},reverse:{type:Boolean,default:!1},beforeResize:Function},data(){return{resizing:!1,mouseX:0,mouseY:0,offset:{},tmpSize:void 0}},mounted(){document.documentElement.addEventListener("mousemove",this.handleMove,!0),document.documentElement.addEventListener("mouseup",this.handleUp,!0)},methods:{resizeDown(e){if(!this.beforeResize){this.handleDown(e);return}const t=this.beforeResize();t&&t.then?t.then(n=>{this.handleDown(e)}):this.handleDown(e)},handleDown(e){this.mouseX=e.pageX||e.clientX+document.documentElement.scrollLeft,this.mouseY=e.pageY||e.clientY+document.documentElement.scrollTop,this.offset={left:e.target.offsetLeft,top:e.target.offsetTop},this.resizing=!0,typeof this.value=="number"&&(this.tmpSize=this.value),this.$emit("on-change",{event:"down"})},handleMove(e){if(!this.resizing)return;let t=(e.pageX||e.clientX+document.documentElement.scrollLeft)-this.mouseX,n=(e.pageY||e.clientY+document.documentElement.scrollTop)-this.mouseY;if(typeof this.tmpSize=="number"){let i;this.placement=="bottom"?i=this.reverse?this.tmpSize-n:this.tmpSize+n:i=this.reverse?this.tmpSize-t:this.tmpSize+t,this.min>0&&(i=Math.max(this.min,i)),this.max>0&&(i=Math.min(this.max,i)),this.$emit("input",i)}this.$emit("on-change",{event:"move",diff:{x:t,y:n},offset:this.offset})},handleUp(){!this.resizing||(this.resizing=!1,this.tmpSize=void 0,this.$emit("on-change",{event:"up"}))}}},o={};var c=s(m,l,u,!1,d,"3f2fedd4",null,null);function d(e){for(let t in o)this[t]=o[t]}var f=function(){return c.exports}(),h=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"body",staticClass:"overlay-body",style:e.bodyStyle},[n("div",{staticClass:"overlay-close"},[n("a",{attrs:{href:"javascript:void(0)"},on:{click:function(i){return i.stopPropagation(),e.onClose.apply(null,arguments)}}},[n("svg",{staticClass:"icon fill-current",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 26 26",fill:"none",role:"img"}},[n("path",{attrs:{d:"M8.28596 6.51819C7.7978 6.03003 7.00634 6.03003 6.51819 6.51819C6.03003 7.00634 6.03003 7.7978 6.51819 8.28596L11.2322 13L6.51819 17.714C6.03003 18.2022 6.03003 18.9937 6.51819 19.4818C7.00634 19.97 7.7978 19.97 8.28596 19.4818L13 14.7678L17.714 19.4818C18.2022 19.97 18.9937 19.97 19.4818 19.4818C19.97 18.9937 19.97 18.2022 19.4818 17.714L14.7678 13L19.4818 8.28596C19.97 7.7978 19.97 7.00634 19.4818 6.51819C18.9937 6.03003 18.2022 6.03003 17.714 6.51819L13 11.2322L8.28596 6.51819Z",fill:"currentColor"}})])])]),e.resize?n("ResizeLine",{staticClass:"overlay-resize",attrs:{placement:e.placement,min:e.minSize,max:0,reverse:!0,beforeResize:e.beforeResize},on:{"on-change":e.onChangeResize},model:{value:e.dynamicSize,callback:function(i){e.dynamicSize=i},expression:"dynamicSize"}}):e._e(),n("div",{staticClass:"overlay-content"},[e._t("default")],2)],1)},p=[];const v={name:"DrawerOverlayView",components:{ResizeLine:f},props:{placement:{validator(e){return["right","bottom"].includes(e)},default:"bottom"},size:{type:[Number,String],default:"100%"},minSize:{type:Number,default:300},resize:{type:Boolean,default:!0}},data(){return{dynamicSize:0}},computed:{bodyStyle(){let e=this.dynamicSize;return e=e<=100?`${e}%`:`${e}px`,this.placement=="right"?{width:e,height:"100%"}:{width:"100%",height:e}}},watch:{size:{handler(e){this.dynamicSize=parseInt(e)},immediate:!0}},methods:{onClose(){this.$emit("on-close")},beforeResize(){return new Promise(e=>{this.dynamicSize<=100&&this.updateSize(),e()})},onChangeResize({event:e}){e==="up"&&this.updateSize()},updateSize(){this.placement==="bottom"?this.dynamicSize=this.$refs.body.clientHeight:this.dynamicSize=this.$refs.body.clientWidth}}},r={};var _=s(v,h,p,!1,z,null,null,null);function z(e){for(let t in r)this[t]=r[t]}var y=function(){return _.exports}(),b=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("Modal",{ref:"modal",attrs:{closable:e.escClosable,"mask-closable":e.maskClosable,"footer-hide":!0,"transition-names":[e.$A.isAndroid()?"":`drawer-slide-${e.placement}`,""],beforeClose:e.beforeClose,fullscreen:"","class-name":e.modalClass},model:{value:e.show,callback:function(i){e.show=i},expression:"show"}},[n("DrawerOverlayView",{attrs:{placement:e.placement,size:e.size,minSize:e.minSize,resize:e.resize},on:{"on-close":e.onClose}},[e._t("default")],2)],1)},g=[];const w={name:"DrawerOverlay",components:{DrawerOverlayView:y},props:{value:{type:Boolean,default:!1},maskClosable:{type:Boolean,default:!0},escClosable:{type:Boolean,default:!0},placement:{validator(e){return["right","bottom"].includes(e)},default:"bottom"},size:{type:[Number,String],default:"100%"},minSize:{type:Number,default:300},resize:{type:Boolean,default:!0},className:{type:String},beforeClose:Function},data(){return{show:this.value}},watch:{value(e){this.show=e},show(e){this.value!==e&&this.$emit("input",e)}},computed:{modalClass(){return this.className?`common-drawer-overlay ${this.className} ${this.placement}`:`common-drawer-overlay ${this.placement}`}},methods:{onClose(){this.$refs.modal.close()}}},a={};var S=s(w,b,g,!1,C,null,null,null);function C(e){for(let t in a)this[t]=a[t]}var x=function(){return S.exports}();export{x as D}; +import{n as s}from"./app.feefc813.js";var l=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"component-resize-line",class:[e.resizing?"resizing":"",e.placement],on:{mousedown:function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"left",37,i.key,["Left","ArrowLeft"])||"button"in i&&i.button!==0?null:(i.stopPropagation(),i.preventDefault(),e.resizeDown.apply(null,arguments))}}})},u=[];const m={name:"ResizeLine",props:{value:{},min:{type:Number,default:100},max:{type:Number,default:600},placement:{validator(e){return["right","bottom"].includes(e)},default:"bottom"},reverse:{type:Boolean,default:!1},beforeResize:Function},data(){return{resizing:!1,mouseX:0,mouseY:0,offset:{},tmpSize:void 0}},mounted(){document.documentElement.addEventListener("mousemove",this.handleMove,!0),document.documentElement.addEventListener("mouseup",this.handleUp,!0)},methods:{resizeDown(e){if(!this.beforeResize){this.handleDown(e);return}const t=this.beforeResize();t&&t.then?t.then(n=>{this.handleDown(e)}):this.handleDown(e)},handleDown(e){this.mouseX=e.pageX||e.clientX+document.documentElement.scrollLeft,this.mouseY=e.pageY||e.clientY+document.documentElement.scrollTop,this.offset={left:e.target.offsetLeft,top:e.target.offsetTop},this.resizing=!0,typeof this.value=="number"&&(this.tmpSize=this.value),this.$emit("on-change",{event:"down"})},handleMove(e){if(!this.resizing)return;let t=(e.pageX||e.clientX+document.documentElement.scrollLeft)-this.mouseX,n=(e.pageY||e.clientY+document.documentElement.scrollTop)-this.mouseY;if(typeof this.tmpSize=="number"){let i;this.placement=="bottom"?i=this.reverse?this.tmpSize-n:this.tmpSize+n:i=this.reverse?this.tmpSize-t:this.tmpSize+t,this.min>0&&(i=Math.max(this.min,i)),this.max>0&&(i=Math.min(this.max,i)),this.$emit("input",i)}this.$emit("on-change",{event:"move",diff:{x:t,y:n},offset:this.offset})},handleUp(){!this.resizing||(this.resizing=!1,this.tmpSize=void 0,this.$emit("on-change",{event:"up"}))}}},o={};var c=s(m,l,u,!1,d,"3f2fedd4",null,null);function d(e){for(let t in o)this[t]=o[t]}var f=function(){return c.exports}(),h=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"body",staticClass:"overlay-body",style:e.bodyStyle},[n("div",{staticClass:"overlay-close"},[n("a",{attrs:{href:"javascript:void(0)"},on:{click:function(i){return i.stopPropagation(),e.onClose.apply(null,arguments)}}},[n("svg",{staticClass:"icon fill-current",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 26 26",fill:"none",role:"img"}},[n("path",{attrs:{d:"M8.28596 6.51819C7.7978 6.03003 7.00634 6.03003 6.51819 6.51819C6.03003 7.00634 6.03003 7.7978 6.51819 8.28596L11.2322 13L6.51819 17.714C6.03003 18.2022 6.03003 18.9937 6.51819 19.4818C7.00634 19.97 7.7978 19.97 8.28596 19.4818L13 14.7678L17.714 19.4818C18.2022 19.97 18.9937 19.97 19.4818 19.4818C19.97 18.9937 19.97 18.2022 19.4818 17.714L14.7678 13L19.4818 8.28596C19.97 7.7978 19.97 7.00634 19.4818 6.51819C18.9937 6.03003 18.2022 6.03003 17.714 6.51819L13 11.2322L8.28596 6.51819Z",fill:"currentColor"}})])])]),e.resize?n("ResizeLine",{staticClass:"overlay-resize",attrs:{placement:e.placement,min:e.minSize,max:0,reverse:!0,beforeResize:e.beforeResize},on:{"on-change":e.onChangeResize},model:{value:e.dynamicSize,callback:function(i){e.dynamicSize=i},expression:"dynamicSize"}}):e._e(),n("div",{staticClass:"overlay-content"},[e._t("default")],2)],1)},p=[];const v={name:"DrawerOverlayView",components:{ResizeLine:f},props:{placement:{validator(e){return["right","bottom"].includes(e)},default:"bottom"},size:{type:[Number,String],default:"100%"},minSize:{type:Number,default:300},resize:{type:Boolean,default:!0}},data(){return{dynamicSize:0}},computed:{bodyStyle(){let e=this.dynamicSize;return e=e<=100?`${e}%`:`${e}px`,this.placement=="right"?{width:e,height:"100%"}:{width:"100%",height:e}}},watch:{size:{handler(e){this.dynamicSize=parseInt(e)},immediate:!0}},methods:{onClose(){this.$emit("on-close")},beforeResize(){return new Promise(e=>{this.dynamicSize<=100&&this.updateSize(),e()})},onChangeResize({event:e}){e==="up"&&this.updateSize()},updateSize(){this.placement==="bottom"?this.dynamicSize=this.$refs.body.clientHeight:this.dynamicSize=this.$refs.body.clientWidth}}},r={};var _=s(v,h,p,!1,z,null,null,null);function z(e){for(let t in r)this[t]=r[t]}var y=function(){return _.exports}(),b=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("Modal",{ref:"modal",attrs:{closable:e.escClosable,"mask-closable":e.maskClosable,"footer-hide":!0,"transition-names":[e.$A.isAndroid()?"":`drawer-slide-${e.placement}`,""],beforeClose:e.beforeClose,fullscreen:"","class-name":e.modalClass},model:{value:e.show,callback:function(i){e.show=i},expression:"show"}},[n("DrawerOverlayView",{attrs:{placement:e.placement,size:e.size,minSize:e.minSize,resize:e.resize},on:{"on-close":e.onClose}},[e._t("default")],2)],1)},g=[];const w={name:"DrawerOverlay",components:{DrawerOverlayView:y},props:{value:{type:Boolean,default:!1},maskClosable:{type:Boolean,default:!0},escClosable:{type:Boolean,default:!0},placement:{validator(e){return["right","bottom"].includes(e)},default:"bottom"},size:{type:[Number,String],default:"100%"},minSize:{type:Number,default:300},resize:{type:Boolean,default:!0},className:{type:String},beforeClose:Function},data(){return{show:this.value}},watch:{value(e){this.show=e},show(e){this.value!==e&&this.$emit("input",e)}},computed:{modalClass(){return this.className?`common-drawer-overlay ${this.className} ${this.placement}`:`common-drawer-overlay ${this.placement}`}},methods:{onClose(){this.$refs.modal.close()}}},a={};var S=s(w,b,g,!1,C,null,null,null);function C(e){for(let t in a)this[t]=a[t]}var x=function(){return S.exports}();export{x as D}; diff --git a/public/js/build/keyboard.ea30cc70.js b/public/js/build/keyboard.73faa1b4.js similarity index 97% rename from public/js/build/keyboard.ea30cc70.js rename to public/js/build/keyboard.73faa1b4.js index 064168d2e..048e93047 100644 --- a/public/js/build/keyboard.ea30cc70.js +++ b/public/js/build/keyboard.73faa1b4.js @@ -1 +1 @@ -import{n as r}from"./app.90cb6e79.js";var n=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"setting-item submit"},[e("Form",{ref:"formData",attrs:{model:t.formData,rules:t.ruleData,"label-width":"auto"},nativeOn:{submit:function(a){a.preventDefault()}}},[e("FormItem",{attrs:{label:t.$L("\u622A\u56FE\u5FEB\u6377\u952E"),prop:"screenshot"}},[e("div",{staticClass:"input-box"},[e("Checkbox",{model:{value:t.formData.screenshot_mate,callback:function(a){t.$set(t.formData,"screenshot_mate",a)},expression:"formData.screenshot_mate"}},[t._v(t._s(t.mateName))]),e("div",{staticClass:"input-box-push"},[t._v("+")]),e("Checkbox",{model:{value:t.formData.screenshot_shift,callback:function(a){t.$set(t.formData,"screenshot_shift",a)},expression:"formData.screenshot_shift"}},[t._v("Shift")]),e("div",{staticClass:"input-box-push"},[t._v("+")]),e("Input",{staticClass:"input-box-key",attrs:{disabled:t.screenshotDisabled,value:t.formData.screenshot_key,maxlength:1},on:{"on-keydown":t.onKeydown}})],1),t.screenshotDisabled?e("div",{staticClass:"form-tip red"},[t._v(t._s(t.$L("\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u529F\u80FD\u952E\uFF01")))]):t._e()])],1),e("div",{staticClass:"setting-footer"},[e("Button",{attrs:{loading:t.loadIng>0,disabled:t.screenshotDisabled,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u4FDD\u5B58")))]),e("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},i=[];const c={data(){return{loadIng:0,mateName:/macintosh|mac os x/i.test(navigator.userAgent)?"Command":"Ctrl",formData:{screenshot_mate:!0,screenshot_shift:!0,screenshot_key:""},ruleData:{}}},mounted(){this.initData()},computed:{screenshotDisabled(){return!this.formData.screenshot_mate&&!this.formData.screenshot_shift}},methods:{initData(){this.formData=Object.assign({screenshot_mate:!0,screenshot_shift:!0,screenshot_key:""},$A.jsonParse(window.localStorage.getItem("__keyboard:data__"))||{}),this.formData_bak=$A.cloneJSON(this.formData)},onKeydown({key:t,keyCode:s}){s!==8&&(t=/^[A-Za-z0-9]?$/.test(t)?t.toUpperCase():"",t&&(this.formData.screenshot_key=t))},submitForm(){this.$refs.formData.validate(t=>{t&&(window.localStorage.setItem("__keyboard:data__",$A.jsonStringify(this.formData)),$A.bindScreenshotKey(this.formData),$A.messageSuccess("\u4FDD\u5B58\u6210\u529F"))})},resetForm(){this.formData=$A.cloneJSON(this.formData_bak)}}},o={};var m=r(c,n,i,!1,_,"2cfe89b0",null,null);function _(t){for(let s in o)this[s]=o[s]}var h=function(){return m.exports}();export{h as default}; +import{n as r}from"./app.feefc813.js";var n=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"setting-item submit"},[e("Form",{ref:"formData",attrs:{model:t.formData,rules:t.ruleData,"label-width":"auto"},nativeOn:{submit:function(a){a.preventDefault()}}},[e("FormItem",{attrs:{label:t.$L("\u622A\u56FE\u5FEB\u6377\u952E"),prop:"screenshot"}},[e("div",{staticClass:"input-box"},[e("Checkbox",{model:{value:t.formData.screenshot_mate,callback:function(a){t.$set(t.formData,"screenshot_mate",a)},expression:"formData.screenshot_mate"}},[t._v(t._s(t.mateName))]),e("div",{staticClass:"input-box-push"},[t._v("+")]),e("Checkbox",{model:{value:t.formData.screenshot_shift,callback:function(a){t.$set(t.formData,"screenshot_shift",a)},expression:"formData.screenshot_shift"}},[t._v("Shift")]),e("div",{staticClass:"input-box-push"},[t._v("+")]),e("Input",{staticClass:"input-box-key",attrs:{disabled:t.screenshotDisabled,value:t.formData.screenshot_key,maxlength:1},on:{"on-keydown":t.onKeydown}})],1),t.screenshotDisabled?e("div",{staticClass:"form-tip red"},[t._v(t._s(t.$L("\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u529F\u80FD\u952E\uFF01")))]):t._e()])],1),e("div",{staticClass:"setting-footer"},[e("Button",{attrs:{loading:t.loadIng>0,disabled:t.screenshotDisabled,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u4FDD\u5B58")))]),e("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},i=[];const c={data(){return{loadIng:0,mateName:/macintosh|mac os x/i.test(navigator.userAgent)?"Command":"Ctrl",formData:{screenshot_mate:!0,screenshot_shift:!0,screenshot_key:""},ruleData:{}}},mounted(){this.initData()},computed:{screenshotDisabled(){return!this.formData.screenshot_mate&&!this.formData.screenshot_shift}},methods:{initData(){this.formData=Object.assign({screenshot_mate:!0,screenshot_shift:!0,screenshot_key:""},$A.jsonParse(window.localStorage.getItem("__keyboard:data__"))||{}),this.formData_bak=$A.cloneJSON(this.formData)},onKeydown({key:t,keyCode:s}){s!==8&&(t=/^[A-Za-z0-9]?$/.test(t)?t.toUpperCase():"",t&&(this.formData.screenshot_key=t))},submitForm(){this.$refs.formData.validate(t=>{t&&(window.localStorage.setItem("__keyboard:data__",$A.jsonStringify(this.formData)),$A.bindScreenshotKey(this.formData),$A.messageSuccess("\u4FDD\u5B58\u6210\u529F"))})},resetForm(){this.formData=$A.cloneJSON(this.formData_bak)}}},o={};var m=r(c,n,i,!1,_,"2cfe89b0",null,null);function _(t){for(let s in o)this[s]=o[s]}var h=function(){return m.exports}();export{h as default}; diff --git a/public/js/build/language.af8cf380.js b/public/js/build/language.34c761e5.js similarity index 95% rename from public/js/build/language.af8cf380.js rename to public/js/build/language.34c761e5.js index 5aa02ba69..fc1b0fe69 100644 --- a/public/js/build/language.af8cf380.js +++ b/public/js/build/language.34c761e5.js @@ -1 +1 @@ -import{l as s,m as l,a as i,s as m,n as u}from"./app.90cb6e79.js";var f=function(){var t=this,o=t.$createElement,a=t._self._c||o;return a("div",{staticClass:"setting-item submit"},[a("Form",{ref:"formData",attrs:{model:t.formData,rules:t.ruleData,labelPosition:t.formLabelPosition,labelWidth:t.formLabelWidth},nativeOn:{submit:function(e){e.preventDefault()}}},[a("FormItem",{attrs:{label:t.$L("\u9009\u62E9\u8BED\u8A00"),prop:"language"}},[a("Select",{attrs:{placeholder:t.$L("\u9009\u9879\u8BED\u8A00")},model:{value:t.formData.language,callback:function(e){t.$set(t.formData,"language",e)},expression:"formData.language"}},t._l(t.languageList,function(e,n){return a("Option",{key:n,attrs:{value:n}},[t._v(t._s(e))])}),1)],1)],1),a("div",{staticClass:"setting-footer"},[a("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),a("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},g=[];const c={data(){return{loadIng:0,languageList:s,formData:{language:""},ruleData:{}}},mounted(){this.initData()},computed:{...l(["formLabelPosition","formLabelWidth"])},methods:{initData(){this.$set(this.formData,"language",i),this.formData_bak=$A.cloneJSON(this.formData)},submitForm(){this.$refs.formData.validate(t=>{t&&m(this.formData.language)})},resetForm(){this.formData=$A.cloneJSON(this.formData_bak)}}},r={};var _=u(c,f,g,!1,d,null,null,null);function d(t){for(let o in r)this[o]=r[o]}var p=function(){return _.exports}();export{p as default}; +import{l as s,m as l,a as i,s as m,n as u}from"./app.feefc813.js";var f=function(){var t=this,o=t.$createElement,a=t._self._c||o;return a("div",{staticClass:"setting-item submit"},[a("Form",{ref:"formData",attrs:{model:t.formData,rules:t.ruleData,labelPosition:t.formLabelPosition,labelWidth:t.formLabelWidth},nativeOn:{submit:function(e){e.preventDefault()}}},[a("FormItem",{attrs:{label:t.$L("\u9009\u62E9\u8BED\u8A00"),prop:"language"}},[a("Select",{attrs:{placeholder:t.$L("\u9009\u9879\u8BED\u8A00")},model:{value:t.formData.language,callback:function(e){t.$set(t.formData,"language",e)},expression:"formData.language"}},t._l(t.languageList,function(e,n){return a("Option",{key:n,attrs:{value:n}},[t._v(t._s(e))])}),1)],1)],1),a("div",{staticClass:"setting-footer"},[a("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),a("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},g=[];const c={data(){return{loadIng:0,languageList:s,formData:{language:""},ruleData:{}}},mounted(){this.initData()},computed:{...l(["formLabelPosition","formLabelWidth"])},methods:{initData(){this.$set(this.formData,"language",i),this.formData_bak=$A.cloneJSON(this.formData)},submitForm(){this.$refs.formData.validate(t=>{t&&m(this.formData.language)})},resetForm(){this.formData=$A.cloneJSON(this.formData_bak)}}},r={};var _=u(c,f,g,!1,d,null,null,null);function d(t){for(let o in r)this[o]=r[o]}var p=function(){return _.exports}();export{p as default}; diff --git a/public/js/build/login.f89f580b.js b/public/js/build/login.03c32b80.js similarity index 99% rename from public/js/build/login.f89f580b.js rename to public/js/build/login.03c32b80.js index 32acdd3aa..2cc5e6406 100644 --- a/public/js/build/login.f89f580b.js +++ b/public/js/build/login.03c32b80.js @@ -1,4 +1,4 @@ -import{l as wr,a as yr,d as Br,m as xr,s as Cr,n as Tr}from"./app.90cb6e79.js";/*! +import{l as wr,a as yr,d as Br,m as xr,s as Cr,n as Tr}from"./app.feefc813.js";/*! * vue-qrcode v1.0.2 * https://fengyuanchen.github.io/vue-qrcode * diff --git a/public/js/build/manage.9cd00782.js b/public/js/build/manage.dcb52a78.js similarity index 99% rename from public/js/build/manage.9cd00782.js rename to public/js/build/manage.dcb52a78.js index fbae004ac..6dba14a4d 100644 --- a/public/js/build/manage.9cd00782.js +++ b/public/js/build/manage.dcb52a78.js @@ -1 +1 @@ -import{n,N,m as d,c as g,d as c}from"./app.90cb6e79.js";import{C as O,T as z}from"./CheckinExport.893ae33d.js";import{D as B}from"./index.b6ff1b3f.js";import F from"./TEditor.27348ee4.js";import{U as v}from"./UserInput.1d67c0fc.js";import{R as W}from"./ReportEdit.1b195875.js";import{R as H}from"./ReportDetail.7265b249.js";import{l as V}from"./DialogSelect.9924132a.js";import{D as K}from"./DialogWrapper.0674ddc3.js";import{T as Y}from"./TaskDetail.0ed8c7bb.js";import"./ImgUpload.466e5bce.js";import"./ProjectLog.53e7fe6c.js";import"./TaskMenu.8ddcdf6c.js";var J=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"project-archived"},[e("div",{staticClass:"archived-title"},[t._v(" "+t._s(t.$L("\u5F52\u6863\u7684\u9879\u76EE"))+" "),e("div",{staticClass:"title-icon"},[t.loadIng>0?e("Loading"):t._e()],1)]),e("div",{staticClass:"search-container lr"},[e("ul",[e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u9879\u76EE\u540D"))+" ")]),e("div",{staticClass:"search-content"},[e("Input",{attrs:{clearable:""},model:{value:t.keys.name,callback:function(s){t.$set(t.keys,"name",s)},expression:"keys.name"}})],1)]),e("li",{staticClass:"search-button"},[e("Tooltip",{attrs:{theme:"light",placement:"right","transfer-class-name":"search-button-clear",transfer:""}},[e("Button",{attrs:{loading:t.loadIng>0,type:"primary",icon:"ios-search"},on:{click:t.onSearch}},[t._v(t._s(t.$L("\u641C\u7D22")))]),e("div",{attrs:{slot:"content"},slot:"content"},[t.keyIs?e("Button",{attrs:{type:"text"},on:{click:function(s){t.keyIs=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88\u7B5B\u9009")))]):e("Button",{attrs:{loading:t.loadIng>0,type:"text"},on:{click:t.getLists}},[t._v(t._s(t.$L("\u5237\u65B0")))])],1)],1)],1)])]),e("div",{staticClass:"table-page-box"},[e("Table",{attrs:{columns:t.columns,data:t.list,loading:t.loadIng>0,"no-data-text":t.$L(t.noText),stripe:""}}),e("Page",{attrs:{total:t.total,current:t.page,"page-size":t.pageSize,disabled:t.loadIng>0,simple:t.windowSmall,"page-size-opts":[10,20,30,50,100],"show-elevator":"","show-sizer":"","show-total":""},on:{"on-change":t.setPage,"on-page-size-change":t.setPageSize}})],1)])},q=[];const X={name:"ProjectArchived",data(){return{loadIng:0,keys:{},keyIs:!1,columns:[{title:"ID",key:"id",width:80,render:(t,{row:a,column:e})=>t("TableAction",{props:{column:e,align:"left"}},[t("div",a.id)])},{title:this.$L("\u9879\u76EE\u540D\u79F0"),key:"name",minWidth:200,render:(t,{row:a})=>t("AutoTip",a.name)},{title:this.$L("\u5F52\u6863\u65F6\u95F4"),key:"archived_at",width:168},{title:this.$L("\u5F52\u6863\u4EBA\u5458"),key:"archived_userid",minWidth:80,render:(t,{row:a})=>a.archived_userid?t("UserAvatar",{props:{userid:a.archived_userid,size:24,showName:!0}}):t("Tag",this.$L("\u7CFB\u7EDF\u81EA\u52A8"))},{title:this.$L("\u8D1F\u8D23\u4EBA"),minWidth:80,render:(t,{row:a})=>t("UserAvatar",{props:{showName:!0,size:22,userid:a.owner_userid}})},{title:this.$L("\u64CD\u4F5C"),align:"center",width:100,render:(t,a)=>{const e=[t("Poptip",{props:{title:this.$L("\u4F60\u786E\u5B9A\u8981\u8FD8\u539F\u5F52\u6863\u5417\uFF1F"),confirm:!0,transfer:!0,placement:"left",okText:this.$L("\u786E\u5B9A"),cancelText:this.$L("\u53D6\u6D88")},style:{fontSize:"13px",cursor:"pointer",color:"#84C56A"},on:{"on-ok":()=>{this.recovery(a.row)}}},this.$L("\u8FD8\u539F")),t("Poptip",{props:{title:this.$L("\u4F60\u786E\u5B9A\u8981\u5220\u9664\u9879\u76EE\u5417\uFF1F"),confirm:!0,transfer:!0,placement:"left",okText:this.$L("\u786E\u5B9A"),cancelText:this.$L("\u53D6\u6D88")},style:{marginLeft:"8px",fontSize:"13px",cursor:"pointer",color:"#f00"},on:{"on-ok":()=>{this.delete(a.row)}}},this.$L("\u5220\u9664"))];return t("TableAction",{props:{column:a.column}},e)}}],list:[],page:1,pageSize:20,total:0,noText:""}},mounted(){this.getLists()},watch:{keyIs(t){t||(this.keys={},this.setPage(1))}},methods:{onSearch(){this.page=1,this.getLists()},getLists(){this.loadIng++,this.keyIs=$A.objImplode(this.keys)!="",this.$store.dispatch("call",{url:"project/lists",data:{keys:this.keys,archived:"yes",page:Math.max(this.page,1),pagesize:Math.max($A.runNum(this.pageSize),10)}}).then(({data:t})=>{this.page=t.current_page,this.total=t.total,this.list=t.data,this.noText="\u6CA1\u6709\u76F8\u5173\u7684\u6570\u636E"}).catch(()=>{this.noText="\u6570\u636E\u52A0\u8F7D\u5931\u8D25"}).finally(t=>{this.loadIng--})},setPage(t){this.page=t,this.getLists()},setPageSize(t){this.page=1,this.pageSize=t,this.getLists()},recovery(t){this.list=this.list.filter(({id:a})=>a!=t.id),this.loadIng++,this.$store.dispatch("call",{url:"project/archived",data:{project_id:t.id,type:"recovery"}}).then(()=>{this.getLists(),this.$store.dispatch("getProjectOne",t.id).catch(()=>{})}).catch(({msg:a})=>{$A.modalError(a),this.getLists()}).finally(a=>{this.loadIng--})},delete(t){this.list=this.list.filter(({id:a})=>a!=t.id),this.loadIng++,this.$store.dispatch("removeProject",t.id).then(({msg:a})=>{$A.messageSuccess(a),this.getLists()}).catch(({msg:a})=>{$A.modalError(a),this.getLists()}).finally(a=>{this.loadIng--})}}},b={};var G=n(X,J,q,!1,Q,null,null,null);function Q(t){for(let a in b)this[a]=b[a]}var Z=function(){return G.exports}(),tt=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"project-management"},[e("div",{staticClass:"management-title"},[t._v(" "+t._s(t.$L("\u6240\u6709\u9879\u76EE"))+" "),e("div",{staticClass:"title-icon"},[t.loadIng>0?e("Loading"):t._e()],1)]),e("div",{staticClass:"search-container lr"},[e("ul",[e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u9879\u76EE\u540D"))+" ")]),e("div",{staticClass:"search-content"},[e("Input",{attrs:{clearable:""},model:{value:t.keys.name,callback:function(s){t.$set(t.keys,"name",s)},expression:"keys.name"}})],1)]),e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u9879\u76EE\u7C7B\u578B"))+" ")]),e("div",{staticClass:"search-content"},[e("Select",{attrs:{placeholder:t.$L("\u56E2\u961F\u9879\u76EE")},model:{value:t.keys.type,callback:function(s){t.$set(t.keys,"type",s)},expression:"keys.type"}},[e("Option",{attrs:{value:""}},[t._v(t._s(t.$L("\u56E2\u961F\u9879\u76EE")))]),e("Option",{attrs:{value:"personal"}},[t._v(t._s(t.$L("\u4E2A\u4EBA\u9879\u76EE")))]),e("Option",{attrs:{value:"all"}},[t._v(t._s(t.$L("\u5168\u90E8\u9879\u76EE")))])],1)],1)]),e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u9879\u76EE\u72B6\u6001"))+" ")]),e("div",{staticClass:"search-content"},[e("Select",{attrs:{placeholder:t.$L("\u672A\u5F52\u6863")},model:{value:t.keys.status,callback:function(s){t.$set(t.keys,"status",s)},expression:"keys.status"}},[e("Option",{attrs:{value:""}},[t._v(t._s(t.$L("\u672A\u5F52\u6863")))]),e("Option",{attrs:{value:"archived"}},[t._v(t._s(t.$L("\u5DF2\u5F52\u6863")))]),e("Option",{attrs:{value:"all"}},[t._v(t._s(t.$L("\u5168\u90E8")))])],1)],1)]),e("li",{staticClass:"search-button"},[e("Tooltip",{attrs:{theme:"light",placement:"right","transfer-class-name":"search-button-clear",transfer:""}},[e("Button",{attrs:{loading:t.loadIng>0,type:"primary",icon:"ios-search"},on:{click:t.onSearch}},[t._v(t._s(t.$L("\u641C\u7D22")))]),e("div",{attrs:{slot:"content"},slot:"content"},[t.keyIs?e("Button",{attrs:{type:"text"},on:{click:function(s){t.keyIs=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88\u7B5B\u9009")))]):e("Button",{attrs:{loading:t.loadIng>0,type:"text"},on:{click:t.getLists}},[t._v(t._s(t.$L("\u5237\u65B0")))])],1)],1)],1)])]),e("div",{staticClass:"table-page-box"},[e("Table",{attrs:{columns:t.columns,data:t.list,loading:t.loadIng>0,"no-data-text":t.$L(t.noText),stripe:""}}),e("Page",{attrs:{total:t.total,current:t.page,"page-size":t.pageSize,disabled:t.loadIng>0,simple:t.windowSmall,"page-size-opts":[10,20,30,50,100],"show-elevator":"","show-sizer":"","show-total":""},on:{"on-change":t.setPage,"on-page-size-change":t.setPageSize}})],1)])},et=[];const at={name:"ProjectManagement",data(){return{loadIng:0,keys:{},keyIs:!1,columns:[{title:"ID",key:"id",width:80,render:(t,{row:a,column:e})=>t("TableAction",{props:{column:e,align:"left"}},[t("div",a.id)])},{title:this.$L("\u9879\u76EE\u540D\u79F0"),key:"name",minWidth:100,render:(t,{row:a})=>{const e=[t("AutoTip",a.name)];return a.archived_at&&e.push(t("Tag",{props:{color:"error"}},this.$L("\u5DF2\u5F52\u6863"))),t("div",{class:"project-name"},e)}},{title:this.$L("\u9879\u76EE\u8FDB\u5EA6"),minWidth:100,render:(t,{row:a})=>{const e=[t("AutoTip",a.task_complete+"/"+a.task_num),t("Progress",{props:{percent:a.task_percent,strokeWidth:5}})];return t("div",{class:"project-percent"},e)}},{title:this.$L("\u8D1F\u8D23\u4EBA"),minWidth:80,render:(t,{row:a})=>t("UserAvatar",{props:{showName:!0,size:22,userid:a.owner_userid}})},{title:this.$L("\u521B\u5EFA\u4EBA"),minWidth:80,render:(t,{row:a})=>t("UserAvatar",{props:{showName:!0,size:22,userid:a.userid}})},{title:this.$L("\u521B\u5EFA\u65F6\u95F4"),key:"created_at",width:168}],list:[],page:1,pageSize:20,total:0,noText:""}},mounted(){this.getLists()},watch:{keyIs(t){t||(this.keys={},this.setPage(1))}},methods:{onSearch(){this.page=1,this.getLists()},getLists(){let t="team";this.keys.type=="all"?t="all":this.keys.type=="personal"&&(t="personal");let a="no";this.keys.status=="all"?a="all":this.keys.status=="archived"&&(a="yes"),this.loadIng++,this.keyIs=$A.objImplode(this.keys)!="",this.$store.dispatch("call",{url:"project/lists",data:{keys:this.keys,all:1,archived:a,type:t,page:Math.max(this.page,1),pagesize:Math.max($A.runNum(this.pageSize),10)}}).then(({data:e})=>{this.page=e.current_page,this.total=e.total,this.list=e.data,this.noText="\u6CA1\u6709\u76F8\u5173\u7684\u6570\u636E"}).catch(()=>{this.noText="\u6570\u636E\u52A0\u8F7D\u5931\u8D25"}).finally(e=>{this.loadIng--})},setPage(t){this.page=t,this.getLists()},setPageSize(t){this.page=1,this.pageSize=t,this.getLists()}}},y={};var st=n(at,tt,et,!1,it,null,null,null);function it(t){for(let a in y)this[a]=y[a]}var ot=function(){return st.exports}(),nt=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"mobile-tabbar"},[t.windowSmall?e("NetworkException",{attrs:{type:"alert"}}):t._e(),e("transition",{attrs:{name:"mobile-fade"}},[t.isMore?e("div",{staticClass:"more-mask",on:{click:function(s){return t.toggleRoute("more")}}}):t._e()]),e("transition",{attrs:{name:"mobile-slide"}},[t.isMore?e("div",{staticClass:"more-box"},[e("div",{staticClass:"tabbar-more-title"},[t._v(t._s(t.$L("\u66F4\u591A")))]),t._l(t.navMore,function(s){return e("ul",t._l(s,function(i){return e("li",{class:{active:t.activeName===i.name},on:{click:function(o){return t.toggleRoute(i.name)}}},[e("div",{staticClass:"more-item"},[e("i",{staticClass:"taskfont",domProps:{innerHTML:t._s(i.icon)}}),e("div",{staticClass:"tabbar-title"},[t._v(t._s(t.$L(i.label)))])])])}),0)})],2):t._e()]),e("ul",{staticClass:"tabbar-box"},t._l(t.navList,function(s){return e("li",{class:{active:t.activeName===s.name},on:{click:function(i){return t.toggleRoute(s.name)}}},[e("i",{staticClass:"taskfont",domProps:{innerHTML:t._s(s.icon)}}),e("div",{staticClass:"tabbar-title"},[t._v(t._s(t.$L(s.label)))]),s.name==="dashboard"?[t.dashboardTask.overdue_count>0?e("Badge",{staticClass:"tabbar-badge",attrs:{type:"error","overflow-count":999,count:t.dashboardTask.overdue_count}}):t.dashboardTask.today_count>0?e("Badge",{staticClass:"tabbar-badge",attrs:{type:"info","overflow-count":999,count:t.dashboardTask.today_count}}):t.dashboardTask.all_count>0?e("Badge",{staticClass:"tabbar-badge",attrs:{type:"primary","overflow-count":999,count:t.dashboardTask.all_count}}):t._e()]:s.name==="dialog"?[e("Badge",{staticClass:"tabbar-badge",attrs:{"overflow-count":999,text:t.msgUnreadMention}})]:t._e()],2)}),0),e("Modal",{attrs:{title:t.$L("\u626B\u7801\u767B\u5F55"),"mask-closable":!1},model:{value:t.scanLoginShow,callback:function(s){t.scanLoginShow=s},expression:"scanLoginShow"}},[e("div",{staticClass:"mobile-scan-login-box"},[e("div",{staticClass:"mobile-scan-login-title"},[t._v(t._s(t.$L("\u4F60\u597D\uFF0C\u626B\u7801\u786E\u8BA4\u767B\u5F55")))]),e("div",{staticClass:"mobile-scan-login-subtitle"},[t._v("\u300C"+t._s(t.$L("\u4E3A\u786E\u4FDD\u5E10\u53F7\u5B89\u5168\uFF0C\u8BF7\u786E\u8BA4\u662F\u672C\u4EBA\u64CD\u4F5C"))+"\u300D")])]),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(s){t.scanLoginShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88\u767B\u5F55")))]),e("Button",{attrs:{type:"primary",loading:t.scanLoginLoad},on:{click:t.scanLoginSubmit}},[t._v(t._s(t.$L("\u786E\u8BA4\u767B\u5F55")))])],1)])],1)},rt=[];const lt={name:"MobileTabbar",components:{NetworkException:N},data(){return{isMore:!1,navList:[{icon:"",name:"dashboard",label:"\u4EEA\u8868\u76D8"},{icon:"",name:"project",label:"\u9879\u76EE"},{icon:"",name:"dialog",label:"\u6D88\u606F"},{icon:"",name:"contacts",label:"\u901A\u8BAF\u5F55"},{icon:"",name:"more",label:"\u66F4\u591A"}],navMore:[[{icon:"",name:"calendar",label:"\u65E5\u5386"},{icon:"",name:"file",label:"\u6587\u4EF6"},{icon:"",name:"setting",label:"\u8BBE\u7F6E"}],[{icon:"",name:"addProject",label:"\u521B\u5EFA\u9879\u76EE"},{icon:"",name:"addTask",label:"\u6DFB\u52A0\u4EFB\u52A1"},{icon:"",name:"createMeeting",label:"\u65B0\u4F1A\u8BAE"},{icon:"",name:"joinMeeting",label:"\u52A0\u5165\u4F1A\u8BAE"}]],scanLoginShow:!1,scanLoginLoad:!1,scanLoginCode:""}},created(){$A.isEEUiApp&&this.navMore[0].splice(2,0,{icon:"",name:"scan",label:"\u626B\u4E00\u626B"})},mounted(){},beforeDestroy(){},computed:{...d(["cacheDialogs"]),...g(["dashboardTask"]),routeName(){return this.$route.name},msgUnreadMention(){let t=0,a=0;this.cacheDialogs.some(s=>{t+=$A.getDialogUnread(s,!1),a+=$A.getDialogMention(s)}),t>999&&(t="999+"),a>999&&(a="999+");const e=this.msgTodoTotal;return e?a?`@${a}\xB7${e}`:t?`${t}\xB7${e}`:e:t?a?`${t}\xB7@${a}`:String(t):a?`@${a}`:""},msgAllUnread(){let t=0;return this.cacheDialogs.some(a=>{t+=$A.getDialogNum(a)}),t},msgTodoTotal(){let t=this.cacheDialogs.reduce((a,e)=>a+(e.todo_num||0),0);return t>0?(t>999?t="999+":t===1&&(t=""),`${this.$L("\u5F85\u529E")}${t}`):null},unreadAndOverdue(){return this.userId>0?this.msgAllUnread+this.dashboardTask.overdue_count:0},activeName(){return this.isMore||["manage-calendar","manage-file","manage-setting"].includes(this.routeName)?"more":this.routeName==="manage-dashboard"?"dashboard":this.routeName==="manage-project"&&!/^\d+$/.test(this.$route.params.projectId)?"project":this.routeName==="manage-messenger"?this.$route.params.dialogAction==="contacts"?"contacts":"dialog":""}},watch:{windowActive(t){t||$A.eeuiAppSendMessage({action:"setBdageNotify",bdage:this.unreadAndOverdue})}},methods:{toggleRoute(t){this.$emit("on-click",t),t!="more"&&(this.isMore=!1);let a;switch(t){case"more":this.isMore=!this.isMore;return;case"scan":$A.eeuiAppScan(this.scanResult);return;case"addTask":case"addProject":return;case"createMeeting":c.Store.set("addMeeting",{type:"create",userids:[this.userId]});break;case"joinMeeting":c.Store.set("addMeeting",{type:"join"});break;case"project":a={name:"manage-project",params:{projectId:"all"}};break;case"dialog":a={name:"manage-messenger",params:{dialogAction:"dialog"}},this.routeName==="manage-messenger"&&c.Store.set("clickAgainDialog",!0);break;case"contacts":a={name:"manage-messenger",params:{dialogAction:"contacts"}};break;default:a={name:"manage-"+t};break}this.goForward(a)},scanResult(t){const a=(t+"").match(/^https*:\/\/(.*?)\/login\?qrcode=(.*?)$/);if(a){this.scanLoginCode=a[2],this.scanLoginShow=!0;return}/^https*:\/\//i.test(t)&&$A.eeuiAppOpenPage({pageType:"app",pageTitle:" ",url:"web.js",params:{url:t,browser:!0,showProgress:!0}})},scanLoginSubmit(){this.scanLoginLoad!==!0&&(this.scanLoginLoad=!0,this.$store.dispatch("call",{url:"users/login/qrcode",data:{type:"login",code:this.scanLoginCode}}).then(({msg:t})=>{this.scanLoginShow=!1,$A.messageSuccess(t)}).catch(({msg:t})=>{$A.messageError(t)}).finally(t=>{this.scanLoginLoad=!1}))}}},w={};var ct=n(lt,nt,rt,!1,dt,null,null,null);function dt(t){for(let a in w)this[a]=w[a]}var ht=function(){return ct.exports}(),ut=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"task-add"},[e("div",{staticClass:"head",class:{empty:t.addData.cascader.length==0,visible:t.cascaderShow}},[e("Cascader",{attrs:{data:t.cascaderData,clearable:!1,placeholder:t.$L("\u8BF7\u9009\u62E9\u9879\u76EE"),"load-data":t.cascaderLoadData,filterable:""},on:{"on-change":t.cascaderChange,"on-input-change":t.cascaderInputChange,"on-visible-change":function(s){t.cascaderShow=!t.cascaderShow}},model:{value:t.addData.cascader,callback:function(s){t.$set(t.addData,"cascader",s)},expression:"addData.cascader"}})],1),e("div",{staticClass:"task-add-form"},[e("div",{staticClass:"title"},[e("Input",{ref:"input",attrs:{type:"textarea",rows:1,autosize:{minRows:1,maxRows:8},maxlength:255,placeholder:t.$L("\u4EFB\u52A1\u63CF\u8FF0"),enterkeyhint:"done"},on:{"on-keydown":t.onKeydown},model:{value:t.addData.name,callback:function(s){t.$set(t.addData,"name",s)},expression:"addData.name"}})],1),e("div",{staticClass:"desc"},[e("TEditor",{attrs:{plugins:t.taskPlugins,options:t.taskOptions,"option-full":t.taskOptionFull,placeholder:t.$L(t.windowLarge?"\u8BE6\u7EC6\u63CF\u8FF0\uFF0C\u9009\u586B...\uFF08\u70B9\u51FB\u53F3\u952E\u4F7F\u7528\u5DE5\u5177\u680F\uFF09":"\u8BE6\u7EC6\u63CF\u8FF0\uFF0C\u9009\u586B..."),placeholderFull:t.$L("\u8BE6\u7EC6\u63CF\u8FF0..."),inline:""},model:{value:t.addData.content,callback:function(s){t.$set(t.addData,"content",s)},expression:"addData.content"}})],1),e("div",{staticClass:"advanced-option"},[e("Button",{class:{advanced:t.advanced},on:{click:function(s){t.advanced=!t.advanced}}},[t._v(t._s(t.$L("\u9AD8\u7EA7\u9009\u9879")))]),e("ul",{staticClass:"advanced-priority"},t._l(t.taskPriority,function(s,i){return e("li",{key:i},[e("ETooltip",{attrs:{disabled:t.windowSmall||t.$isEEUiApp,content:t.taskPriorityContent(s)}},[e("i",{staticClass:"taskfont",style:{color:s.color},domProps:{innerHTML:t._s(t.addData.p_name==s.name?"":"")},on:{click:function(o){return t.choosePriority(s)}}})])],1)}),0),t.taskDays>0?e("DatePicker",{attrs:{open:t.taskTimeOpen,options:t.timeOptions,placeholder:t.$L("\u9009\u62E9\u8BA1\u5212\u8303\u56F4"),format:"yyyy/MM/dd HH:mm",type:"datetimerange",placement:"bottom"},on:{"on-change":function(s){return t.taskTimeChange(t.addData.times)},"on-open-change":t.taskTimeOpenChange},model:{value:t.addData.times,callback:function(s){t.$set(t.addData,"times",s)},expression:"addData.times"}},[e("div",{staticClass:"advanced-time",on:{click:function(s){return t.taskTimeOpenChange(!t.taskTimeOpen)}}},[e("Icon",{attrs:{type:"ios-clock-outline"}}),e("em",{style:t.addData.p_color?{backgroundColor:t.addData.p_color}:{},attrs:{type:"primary"}},[t._v(t._s(t.taskDays))])],1)]):t._e()],1)]),t.advanced?e("Form",{staticClass:"task-add-advanced",attrs:{"label-width":"auto"},nativeOn:{submit:function(s){s.preventDefault()}}},[e("FormItem",{attrs:{label:t.$L("\u8BA1\u5212\u65F6\u95F4")}},[e("DatePicker",{attrs:{options:t.timeOptions,editable:!1,placeholder:t.$L("\u9009\u62E9\u8BA1\u5212\u8303\u56F4"),format:"yyyy/MM/dd HH:mm",type:"datetimerange"},on:{"on-change":function(s){return t.taskTimeChange(t.addData.times)}},model:{value:t.addData.times,callback:function(s){t.$set(t.addData,"times",s)},expression:"addData.times"}})],1),e("FormItem",{attrs:{label:t.$L("\u4EFB\u52A1\u8D1F\u8D23\u4EBA")}},[e("UserInput",{attrs:{"multiple-max":10,placeholder:t.$L("\u9009\u62E9\u4EFB\u52A1\u8D1F\u8D23\u4EBA"),"project-id":t.addData.project_id,transfer:!1},model:{value:t.addData.owner,callback:function(s){t.$set(t.addData,"owner",s)},expression:"addData.owner"}}),t.showAddAssist?e("div",{staticClass:"task-add-assist"},[e("Checkbox",{attrs:{"true-value":1,"false-value":0},model:{value:t.addData.add_assist,callback:function(s){t.$set(t.addData,"add_assist",s)},expression:"addData.add_assist"}},[t._v(t._s(t.$L("\u52A0\u5165\u4EFB\u52A1\u534F\u52A9\u4EBA\u5458\u5217\u8868")))]),e("ETooltip",{attrs:{disabled:t.windowSmall||t.$isEEUiApp,content:t.$L("\u4F60\u4E0D\u662F\u4EFB\u52A1\u8D1F\u8D23\u4EBA\u65F6\u5EFA\u8BAE\u52A0\u5165\u4EFB\u52A1\u534F\u52A9\u4EBA\u5458\u5217\u8868")}},[e("Icon",{attrs:{type:"ios-alert-outline"}})],1)],1):t._e()],1),e("div",{staticClass:"subtasks"},[t.addData.subtasks.length>0?e("div",{staticClass:"sublist"},[e("Row",[e("Col",{attrs:{span:"12"}},[t._v(t._s(t.$L("\u4EFB\u52A1\u63CF\u8FF0")))]),e("Col",{attrs:{span:"6"}},[t._v(t._s(t.$L("\u8BA1\u5212\u65F6\u95F4")))]),e("Col",{attrs:{span:"6"}},[t._v(t._s(t.$L("\u8D1F\u8D23\u4EBA")))])],1),t._l(t.addData.subtasks,function(s,i){return e("Row",{key:i},[e("Col",{attrs:{span:"12"}},[e("Input",{attrs:{maxlength:255,clearable:""},on:{"on-clear":function(o){return t.addData.subtasks.splice(i,1)}},model:{value:s.name,callback:function(o){t.$set(s,"name",o)},expression:"item.name"}})],1),e("Col",{attrs:{span:"6"}},[e("DatePicker",{attrs:{options:t.timeOptions,editable:!1,placeholder:t.$L("\u9009\u62E9\u65F6\u95F4"),format:"yyyy/MM/dd HH:mm",type:"datetimerange"},on:{"on-change":function(o){return t.taskTimeChange(s.times)}},model:{value:s.times,callback:function(o){t.$set(s,"times",o)},expression:"item.times"}})],1),e("Col",{attrs:{span:"6"}},[e("UserInput",{attrs:{"multiple-max":1,placeholder:t.$L("\u9009\u62E9\u8D1F\u8D23\u4EBA"),"project-id":t.addData.project_id,transfer:!1,"max-hidden-select":""},model:{value:s.owner,callback:function(o){t.$set(s,"owner",o)},expression:"item.owner"}})],1)],1)})],2):t._e(),e("Input",{class:["enter-input",t.subName==""?"empty":""],attrs:{type:"text",placeholder:t.$L("+ \u8F93\u5165\u5B50\u4EFB\u52A1\uFF0C\u56DE\u8F66\u6DFB\u52A0\u5B50\u4EFB\u52A1")},on:{"on-enter":t.addSubTask},model:{value:t.subName,callback:function(s){t.subName=s},expression:"subName"}})],1)],1):t._e(),e("div",{staticClass:"ivu-modal-footer"},[e("div",{staticClass:"adaption"},[e("Button",{attrs:{type:"default"},on:{click:t.close}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("ButtonGroup",{staticClass:"page-manage-add-task-button-group"},[e("Button",{attrs:{type:"primary",loading:t.loadIng>0},on:{click:t.onAdd}},[t._v(t._s(t.$L("\u6DFB\u52A0\u4EFB\u52A1")))]),e("Dropdown",{attrs:{transfer:""},on:{"on-click":function(s){return t.onAdd(!0)}}},[e("Button",{attrs:{type:"primary"}},[e("Icon",{attrs:{type:"ios-arrow-down"}})],1),e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[e("DropdownItem",{attrs:{disabled:t.loadIng>0}},[t._v(t._s(t.$L("\u63D0\u4EA4\u7EE7\u7EED\u6DFB\u52A0")))])],1)],1)],1)],1)])],1)},pt=[];const mt={name:"TaskAdd",components:{UserInput:v,TEditor:F},props:{value:{type:Boolean,default:!1}},data(){return{addData:{cascader:[],name:"",content:"",owner:[],add_assist:1,project_id:0,column_id:0,times:[],subtasks:[],p_level:0,p_name:"",p_color:""},cascaderShow:!1,cascaderData:[],cascaderValue:"",cascaderLoading:0,cascaderAlready:[],advanced:!1,subName:"",taskPlugins:["advlist autolink lists link image charmap print preview hr anchor pagebreak","searchreplace visualblocks visualchars code","insertdatetime media nonbreaking save table directionality","emoticons paste codesample","autoresize"],taskOptions:{statusbar:!1,menubar:!1,autoresize_bottom_margin:2,min_height:200,max_height:380,contextmenu:"bold italic underline forecolor backcolor | codesample | uploadImages imagePreview | preview screenload",valid_elements:"a[href|target=_blank],em,strong/b,div[align],span[style],a,br,p,img[src|alt|witdh|height],pre[class],code",toolbar:!1},taskOptionFull:{menubar:"file edit view",valid_elements:"a[href|target=_blank],em,strong/b,div[align],span[style],a,br,p,img[src|alt|witdh|height],pre[class],code",toolbar:"uploadImages | bold italic underline forecolor backcolor | codesample | preview screenload"},taskTimeOpen:!1,timeOptions:{shortcuts:$A.timeOptionShortcuts()},loadIng:0,isMounted:!1,beforeClose:[]}},async mounted(){this.initCascaderData(),await this.initProjectData(),this.$nextTick(()=>this.$refs.input.focus()),this.isMounted=!0},beforeDestroy(){this.beforeClose.some(t=>{typeof t=="function"&&t()}),this.beforeClose=[]},computed:{...d(["cacheProjects","projectId","cacheColumns","taskPriority"]),taskDays(){const{times:t}=this.addData;let a=$A.date2string(t,"Y-m-d H:i");if(a[0]&&a[1]){let e=Math.ceil(($A.Date(a[1],!0)-$A.Date(a[0],!0))/86400);if(e>0)return e}return 0},showAddAssist(){return!this.addData.owner.includes(this.userId)}},watch:{"addData.project_id"(t){t>0&&$A.IDBSave("cacheAddTaskProjectId",t)},"addData.column_id"(t){t>0&&$A.IDBSave("cacheAddTaskColumnId",t);const{project_id:a}=this.addData;a&&t?this.$set(this.addData,"cascader",[a,t]):this.$set(this.addData,"cascader",[])}},methods:{initCascaderData(){const t=$A.cloneJSON(this.cacheProjects).sort((a,e)=>a.top_at||e.top_at?$A.Date(e.top_at)-$A.Date(a.top_at):e.id-a.id);this.cascaderData=t.map(a=>{const e=this.cacheColumns.filter(({project_id:i})=>i==a.id).map(i=>({value:i.id,label:i.name})),s={value:a.id,label:a.name,children:e};return e.length==0&&(s.loading=!1),s})},async initProjectData(){let t=await $A.IDBInt("cacheAddTaskProjectId"),a=this.cacheProjects.find(({id:e})=>e==this.projectId)||this.cacheProjects.find(({id:e})=>e==t)||this.cacheProjects.find(({id:e})=>e>0);if(a){let e=await $A.IDBInt("cacheAddTaskColumnId"),s=this.cacheColumns.find(({project_id:i,id:o})=>i==a.id&&o==e)||this.cacheColumns.find(({project_id:i})=>i==a.id);s?(this.addData.project_id=s.project_id,this.addData.column_id=s.id):this.$store.dispatch("getColumns",a.id).then(()=>{s=this.cacheColumns.find(({project_id:i,id:o})=>i==a.id&&o==e)||this.cacheColumns.find(({project_id:i})=>i==a.id),s&&(this.addData.project_id=s.project_id,this.addData.column_id=s.id)}).catch(()=>{})}this.taskPriority.length>0&&this.choosePriority(this.taskPriority[0])},taskTimeChange(t){let a=$A.date2string(t,"Y-m-d H:i");a[0]&&a[1]&&$A.rightExists(a[0],"00:00")&&$A.rightExists(a[1],"00:00")&&this.$set(this.addData,"times",[a[0],a[1].replace("00:00","23:59")])},taskTimeOpenChange(t){this.taskTimeOpen=t},onKeydown(t){if(t.keyCode===13){if(t.shiftKey)return;t.preventDefault(),this.onAdd()}},addSubTask(){this.subName.trim()!==""&&(this.addData.subtasks.push({name:this.subName.trim(),owner:[this.userId],times:[]}),this.subName="")},taskPriorityContent(t){let a=$A.runNum(t.days);return a<=0?t.name+" ("+this.$L("\u65E0\u65F6\u95F4\u9650\u5236")+")":t.name+" ("+a+this.$L("\u5929")+")"},choosePriority(t){let a=new Date,e=$A.runNum(t.days);if(e>0){let s=new Date(new Date().setDate(a.getDate()+e));this.$set(this.addData,"times",$A.date2string([a,s]))}else this.$set(this.addData,"times",[]);this.$set(this.addData,"p_level",t.priority),this.$set(this.addData,"p_name",t.name),this.$set(this.addData,"p_color",t.color)},cascaderLoadData(t,a){t.loading=!0,this.$store.dispatch("getColumns",t.value).then(e=>{t.children=e.map(s=>({value:s.id,label:s.name})),t.loading=!1,a()}).catch(()=>{t.loading=!1,a()})},cascaderChange(t){t[1]&&(this.$set(this.addData,"project_id",t[0]),this.$set(this.addData,"column_id",t[1]))},cascaderInputChange(t){this.cascaderValue=t||"",this.cascaderAlready[this.cascaderValue]!==!0&&(this.cascaderAlready[this.cascaderValue]=!0,setTimeout(()=>{this.cascaderLoading++},1e3),this.$store.dispatch("getProjects",{keys:{name:this.cascaderValue},getcolumn:"yes"}).then(()=>{this.cascaderLoading--,this.initCascaderData()}).catch(()=>{this.cascaderLoading--}))},setData(t){if(!this.isMounted){this.__setData&&clearTimeout(this.__setData),this.__setData=setTimeout(a=>this.setData(t),10);return}typeof t.beforeClose!="undefined"&&(this.beforeClose.push(t.beforeClose),delete t.beforeClose),this.addData=Object.assign({},this.addData,t)},onAdd(t){if(!this.addData.name){$A.messageError("\u4EFB\u52A1\u63CF\u8FF0\u4E0D\u80FD\u4E3A\u7A7A");return}this.loadIng++,this.$store.dispatch("taskAdd",this.addData).then(({msg:a})=>{this.loadIng--,$A.messageSuccess(a),t===!0?(this.addData=Object.assign({},this.addData,{name:"",content:"",subtasks:[]}),this.$refs.input.focus()):(this.addData={cascader:[],name:"",content:"",owner:[],add_assist:1,column_id:0,times:[],subtasks:[],p_level:0,p_name:"",p_color:""},this.close())}).catch(({msg:a})=>{this.loadIng--,$A.modalError(a)})},close(){this.$emit("input",!this.value)}}},D={};var ft=n(mt,ut,pt,!1,gt,null,null,null);function gt(t){for(let a in D)this[a]=D[a]}var vt=function(){return ft.exports}(),_t=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"report-list-wrap"},[e("div",{staticClass:"search-expand"},[e("div",{staticClass:"search-container lr"},[e("ul",[e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u6C47\u62A5\u7C7B\u578B"))+" ")]),e("div",{staticClass:"search-content"},[e("Select",{attrs:{placeholder:t.$L("\u5168\u90E8")},model:{value:t.keys.type,callback:function(s){t.$set(t.keys,"type",s)},expression:"keys.type"}},t._l(t.reportTypeList,function(s){return e("Option",{key:s.value,attrs:{value:s.value}},[t._v(t._s(s.label))])}),1)],1)]),e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u6C47\u62A5\u65F6\u95F4"))+" ")]),e("div",{staticClass:"search-content"},[e("DatePicker",{attrs:{type:"daterange","split-panels":"",placeholder:t.$L("\u8BF7\u9009\u62E9\u65F6\u95F4")},model:{value:t.keys.created_at,callback:function(s){t.$set(t.keys,"created_at",s)},expression:"keys.created_at"}})],1)]),e("li",{staticClass:"search-button"},[e("Tooltip",{attrs:{theme:"light",placement:"right","transfer-class-name":"search-button-clear",transfer:""}},[e("Button",{attrs:{loading:t.loadIng>0,type:"primary",icon:"ios-search"},on:{click:t.onSearch}},[t._v(t._s(t.$L("\u641C\u7D22")))]),e("div",{attrs:{slot:"content"},slot:"content"},[t.keyIs?e("Button",{attrs:{type:"text"},on:{click:function(s){t.keyIs=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88\u7B5B\u9009")))]):e("Button",{attrs:{loading:t.loadIng>0,type:"text"},on:{click:t.getLists}},[t._v(t._s(t.$L("\u5237\u65B0")))])],1)],1)],1)])]),e("div",{staticClass:"expand-button-group"},[e("Button",{attrs:{type:"primary",icon:"md-add"},on:{click:t.addReport}},[t._v(t._s(t.$L("\u65B0\u589E\u62A5\u544A")))])],1)]),e("div",{staticClass:"table-page-box"},[e("Table",{attrs:{columns:t.columns,data:t.lists,loading:t.loadIng>0,"no-data-text":t.$L(t.noDataText),stripe:""}}),e("Page",{attrs:{total:t.listTotal,current:t.listPage,"page-size":t.listPageSize,disabled:t.loadIng>0,simple:t.windowSmall,"page-size-opts":[10,20,30,50,100],"show-elevator":"","show-sizer":"","show-total":""},on:{"on-change":t.setPage,"on-page-size-change":t.setPageSize}})],1)])},$t=[];const kt={name:"ReportMy",data(){return{loadIng:0,columns:[{title:this.$L("\u540D\u79F0"),key:"title",minWidth:120},{title:this.$L("\u7C7B\u578B"),key:"type",align:"center",width:90},{title:this.$L("\u6C47\u62A5\u65F6\u95F4"),key:"created_at",align:"center",width:180},{title:this.$L("\u6C47\u62A5\u5BF9\u8C61"),key:"receives",align:"center",width:90,render:(t,{row:a})=>{if(a.receives.length===0)return t("div","-");const e=[];return a.receives.length<=2?a.receives.some(s=>{e.push(t("UserAvatar",{props:{size:22,userid:s}}))}):(e.push(t("UserAvatar",{props:{size:22,userid:a.receives[0]}})),e.push(t("div",{class:"more-avatar"},`+${a.receives.length-1}`))),t("div",{class:"report-table-avatar"},e)}},{title:this.$L("\u64CD\u4F5C"),align:"center",width:100,minWidth:100,render:(t,{column:a,row:e})=>e.id?t("TableAction",{props:{column:a,menu:[{icon:"md-create",action:"edit"},{icon:"md-eye",action:"view"}]},on:{action:s=>{s==="edit"?this.$emit("on-edit",e.id):s==="view"&&this.$emit("on-view",e)}}}):null}],lists:[],listPage:1,listTotal:0,listPageSize:20,noDataText:"\u6570\u636E\u52A0\u8F7D\u4E2D.....",keys:{},keyIs:!1,reportTypeList:[{value:"",label:this.$L("\u5168\u90E8")},{value:"weekly",label:this.$L("\u5468\u62A5")},{value:"daily",label:this.$L("\u65E5\u62A5")}]}},mounted(){this.getLists()},watch:{keyIs(t){t||(this.keys={},this.setPage(1))}},methods:{onSearch(){this.listPage=1,this.getLists()},getLists(){this.loadIng++,this.keyIs=$A.objImplode(this.keys)!="",this.$store.dispatch("call",{url:"report/my",data:{keys:this.keys,page:Math.max(this.listPage,1),pagesize:Math.max($A.runNum(this.listPageSize),10)}}).then(({data:t})=>{this.lists=t.data,this.listTotal=t.total,this.noDataText="\u6CA1\u6709\u76F8\u5173\u7684\u6570\u636E"}).catch(({msg:t})=>{$A.messageError(t),this.noDataText="\u6570\u636E\u52A0\u8F7D\u5931\u8D25"}).finally(()=>{this.loadIng--})},setPage(t){this.listPage=t,this.getLists()},setPageSize(t){Math.max($A.runNum(this.listPageSize),10)!==t&&(this.listPageSize=t,this.getLists())},addReport(){this.$emit("on-edit",0)}}},L={};var bt=n(kt,_t,$t,!1,yt,null,null,null);function yt(t){for(let a in L)this[a]=L[a]}var wt=function(){return bt.exports}(),Dt=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"report-list-wrap"},[e("div",{staticClass:"search-container lr"},[e("ul",[e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u5173\u952E\u8BCD"))+" ")]),e("div",{staticClass:"search-content"},[e("Input",{attrs:{placeholder:t.$L("\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22"),clearable:""},model:{value:t.keys.key,callback:function(s){t.$set(t.keys,"key",s)},expression:"keys.key"}})],1)]),e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u6C47\u62A5\u7C7B\u578B"))+" ")]),e("div",{staticClass:"search-content"},[e("Select",{attrs:{placeholder:t.$L("\u5168\u90E8")},model:{value:t.keys.type,callback:function(s){t.$set(t.keys,"type",s)},expression:"keys.type"}},t._l(t.reportTypeList,function(s){return e("Option",{key:s.value,attrs:{value:s.value}},[t._v(t._s(s.label))])}),1)],1)]),e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u6C47\u62A5\u65F6\u95F4"))+" ")]),e("div",{staticClass:"search-content"},[e("DatePicker",{attrs:{type:"daterange","split-panels":"",placeholder:t.$L("\u8BF7\u9009\u62E9\u65F6\u95F4")},model:{value:t.keys.created_at,callback:function(s){t.$set(t.keys,"created_at",s)},expression:"keys.created_at"}})],1)]),e("li",{staticClass:"search-button"},[e("Tooltip",{attrs:{theme:"light",placement:"right","transfer-class-name":"search-button-clear",transfer:""}},[e("Button",{attrs:{loading:t.loadIng>0,type:"primary",icon:"ios-search"},on:{click:t.onSearch}},[t._v(t._s(t.$L("\u641C\u7D22")))]),e("div",{attrs:{slot:"content"},slot:"content"},[t.keyIs?e("Button",{attrs:{type:"text"},on:{click:function(s){t.keyIs=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88\u7B5B\u9009")))]):e("Button",{attrs:{loading:t.loadIng>0,type:"text"},on:{click:t.getLists}},[t._v(t._s(t.$L("\u5237\u65B0")))])],1)],1)],1)])]),e("div",{staticClass:"table-page-box"},[e("Table",{attrs:{columns:t.columns,data:t.lists,loading:t.loadIng>0,"no-data-text":t.$L(t.noDataText),stripe:""},on:{"on-selection-change":t.selectChange}}),e("div",{staticClass:"table-attach"},[e("div",{staticClass:"select-box"},[e("Select",{attrs:{disabled:t.selectIds.length==0,placeholder:t.$L("\u8BF7\u9009\u62E9"),transfer:""},on:{"on-change":function(s){t.groupSelect=!0}},model:{value:t.selectAction,callback:function(s){t.selectAction=s},expression:"selectAction"}},[e("Option",{attrs:{value:"read"}},[t._v(t._s(t.$L("\u6807\u8BB0\u5DF2\u8BFB")))]),e("Option",{attrs:{value:"unread"}},[t._v(t._s(t.$L("\u6807\u8BB0\u672A\u8BFB")))])],1),e("Button",{attrs:{loading:t.loadIng>0,type:"primary",disabled:t.selectAction==""||t.selectIds.length==0},on:{click:t.selectClick}},[t._v(t._s(t.$L("\u6267\u884C")))])],1),e("Page",{attrs:{total:t.listTotal,current:t.listPage,"page-size":t.listPageSize,disabled:t.loadIng>0,simple:t.windowSmall,"page-size-opts":[10,20,30,50,100],"show-elevator":"","show-sizer":"","show-total":""},on:{"on-change":t.setPage,"on-page-size-change":t.setPageSize}})],1)],1)])},Lt=[];const Tt={name:"ReportReceive",data(){return{loadIng:0,columns:[{type:"selection",width:50,align:"right"},{title:this.$L("\u6807\u9898"),key:"title",sortable:!0,minWidth:120,render:(t,{row:a})=>{let e=[];const s=a.receives_user.find(({userid:i})=>i==this.userId);return s&&s.pivot.read==0?e.push(t("Tag",{props:{color:"orange"}},this.$L("\u672A\u8BFB")),t("span",a.title)):e.push(t("span",a.title)),t("div",e)}},{title:this.$L("\u7C7B\u578B"),key:"type",sortable:!0,width:90},{title:this.$L("\u63A5\u6536\u65F6\u95F4"),key:"receive_time",align:"center",sortable:!0,width:180},{title:this.$L("\u64CD\u4F5C"),align:"center",width:90,minWidth:90,render:(t,{column:a,row:e})=>e.id?t("TableAction",{props:{column:a,menu:[{icon:"md-eye",action:"view"}]},on:{action:s=>{if(s==="view"){this.$emit("on-view",e);const i=e.receives_user.find(({userid:o})=>o==this.userId);i&&this.$set(i.pivot,"read",1)}}}}):null}],lists:[],listPage:1,listTotal:0,listPageSize:20,noDataText:"\u6570\u636E\u52A0\u8F7D\u4E2D.....",keys:{},keyIs:!1,selectIds:[],selectAction:"",reportTypeList:[{value:"",label:this.$L("\u5168\u90E8")},{value:"weekly",label:this.$L("\u5468\u62A5")},{value:"daily",label:this.$L("\u65E5\u62A5")}]}},mounted(){this.getLists()},watch:{keyIs(t){t||(this.keys={},this.setPage(1))}},methods:{onSearch(){this.listPage=1,this.getLists()},getLists(){this.loadIng++,this.keyIs=$A.objImplode(this.keys)!="",this.$store.dispatch("call",{url:"report/receive",data:{keys:this.keys,page:Math.max(this.listPage,1),pagesize:Math.max($A.runNum(this.listPageSize),10)}}).then(({data:t})=>{this.lists=t.data,this.listTotal=t.total,this.noDataText="\u6CA1\u6709\u76F8\u5173\u7684\u6570\u636E"}).catch(({msg:t})=>{$A.messageError(t),this.noDataText="\u6570\u636E\u52A0\u8F7D\u5931\u8D25"}).finally(()=>{this.loadIng--})},setPage(t){this.listPage=t,this.getLists()},setPageSize(t){Math.max($A.runNum(this.listPageSize),10)!==t&&(this.listPageSize=t,this.getLists())},selectChange(t){this.selectIds=t.map(({id:a})=>a)},selectClick(){if(this.selectIds.length===0){$A.messageWarning("\u8BF7\u9009\u62E9\u7EBF\u8DEF");return}switch(this.selectAction){case"read":case"unread":this.readReport(this.selectIds,this.selectAction);break;default:$A.messageWarning("\u8BF7\u9009\u62E9\u6267\u884C\u65B9\u5F0F");break}},readReport(t,a){const e=a==="read"?"\u6807\u8BB0\u5DF2\u8BFB":"\u6807\u8BB0\u672A\u8BFB";$A.modalConfirm({content:`\u4F60\u786E\u5B9A\u8981\u3010${e}\u3011\u5417\uFF1F`,cancelText:"\u53D6\u6D88",okText:"\u786E\u5B9A",loading:!0,onOk:()=>new Promise((s,i)=>{this.$store.dispatch("call",{url:"report/mark",data:{id:t,action:a}}).then(({msg:o})=>{s(o),this.getLists(),this.$emit("on-read")}).catch(({msg:o})=>{i(o)})})})}}},T={};var Ct=n(Tt,Dt,Lt,!1,xt,null,null,null);function xt(t){for(let a in T)this[a]=T[a]}var St=function(){return Ct.exports}(),It=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"report"},[e("Tabs",{model:{value:t.reportTabs,callback:function(s){t.reportTabs=s},expression:"reportTabs"}},[e("TabPane",{attrs:{label:t.$L("\u6211\u7684\u6C47\u62A5"),name:"my"}},[t.reportTabs==="my"?e("ReportMy",{ref:"report",on:{"on-view":t.onView,"on-edit":t.onEditReport}}):t._e()],1),e("TabPane",{attrs:{label:t.tabRebder(t.reportUnreadNumber),name:"receive"}},[t.reportTabs==="receive"?e("ReportReceive",{on:{"on-view":t.onView,"on-read":t.onRead}}):t._e()],1)],1),e("DrawerOverlay",{attrs:{placement:"right",size:950,transfer:""},model:{value:t.showDetailDrawer,callback:function(s){t.showDetailDrawer=s},expression:"showDetailDrawer"}},[t.showDetailDrawer?e("ReportDetail",{attrs:{data:t.detailData}}):t._e()],1),e("DrawerOverlay",{attrs:{placement:"right",size:1e3,transfer:""},model:{value:t.showEditDrawer,callback:function(s){t.showEditDrawer=s},expression:"showEditDrawer"}},[t.showEditDrawer?e("ReportEdit",{attrs:{id:t.reportId},on:{saveSuccess:t.saveSuccess}}):t._e()],1)],1)},At=[];const Mt={name:"Report",components:{DrawerOverlay:B,ReportEdit:W,ReportMy:wt,ReportReceive:St,ReportDetail:H},props:{reportType:{default:"my"}},data(){return{reportTabs:"my",showDetailDrawer:!1,showEditDrawer:!1,detailData:{},reportId:0}},mounted(){this.reportTabs=this.reportType,this.$isMainElectron&&this.$Electron.listenerOnly("reportSaveSuccess",({data:t,msg:a})=>{$A.messageSuccess(a),this.saveSuccess(t)})},computed:{...d(["reportUnreadNumber"])},methods:{tabRebder(t){return a=>t>0?a("div",[a("span",{class:"navbar-item-content"},this.$L("\u6536\u5230\u7684\u6C47\u62A5")),a("Badge",{class:"manage-box-report",props:{count:t}})]):a("div",[a("span",{class:"navbar-item-content"},this.$L("\u6536\u5230\u7684\u6C47\u62A5"))])},onView(t){if(this.detailData=t,this.$emit("on-read"),this.$Electron){let a={title:t.title,titleFixed:!0,parent:null,width:Math.min(window.screen.availWidth,1440),height:Math.min(window.screen.availHeight,900)};this.$Electron.sendMessage("windowRouter",{name:`report-detail-${t.id}`,path:`/single/report/detail/${t.id}`,force:!1,config:a})}else this.showDetailDrawer=!0},onRead(){this.$emit("on-read",0)},onEditReport(t){if(this.$Electron){let a={title:this.$L(t>0?"\u4FEE\u6539\u62A5\u544A":"\u65B0\u589E\u62A5\u544A"),parent:null,width:Math.min(window.screen.availWidth,1440),height:Math.min(window.screen.availHeight,900)};this.$Electron.sendMessage("windowRouter",{name:`report-edit-${t}`,path:`/single/report/edit/${t}`,force:!1,config:a})}else this.reportId=t,this.showEditDrawer=!0},saveSuccess(){this.reportId=0,this.reportTabs="my",this.showEditDrawer=!1,this.$refs.report&&this.$refs.report.getLists()}}},C={};var jt=n(Mt,It,At,!1,Pt,null,null,null);function Pt(t){for(let a in C)this[a]=C[a]}var Rt=function(){return jt.exports}(),Ut=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"mobile-back"},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.windowScrollY>0,expression:"windowScrollY > 0"}],ref:"bar",staticClass:"back-bar"}),t.show?e("div",{staticClass:"back-semicircle",style:t.style}):t._e()])},Bt=[];const Et={name:"MobileBack",props:{showTabbar:{type:Boolean,default:!1}},data(){return{show:!1,x:0,y:0}},created(){this.appAndroidEvents()},mounted(){this.$refs.bar.addEventListener("touchmove",this.barListener),document.addEventListener("touchstart",this.touchstart),document.addEventListener("touchmove",this.touchmove),document.addEventListener("touchend",this.touchend)},beforeDestroy(){this.$refs.bar.removeEventListener("touchmove",this.barListener),document.removeEventListener("touchstart",this.touchstart),document.removeEventListener("touchmove",this.touchmove),document.removeEventListener("touchend",this.touchend)},computed:{...d(["fileLists"]),style(){const a=Math.max(135,this.y)+this.windowScrollY,e=this.windowHeight-135;return{top:Math.min(a,e)+"px",left:this.x>20?0:"-50px"}},routeName(){return this.$route.name},fileFolderId(){const{folderId:t}=this.$route.params;return parseInt(/^\d+$/.test(t)?t:0)}},watch:{show(t){t?document.body.classList.add("touch-back"):document.body.classList.remove("touch-back"),this.$store.state.touchBackInProgress=t}},methods:{getXY(t){let a=t.touches[0];this.x=a.clientX,this.y=a.clientY},barListener(t){t.preventDefault()},touchstart(t){this.getXY(t),this.show=this.canBack()&&this.x<20},touchmove(t){this.show&&this.getXY(t)},touchend(){this.x>90&&this.show&&this.onBack(),this.x=0,this.show=!1},canBack(){return!this.showTabbar||this.$Modal.visibles().length>0||this.fileFolderId>0},onBack(){if(!this.$Modal.removeLast()){if(this.fileFolderId>0){const t=this.fileLists.find(({id:a,permission:e})=>a==this.fileFolderId&&e>-1);if(t){const a=this.fileLists.find(({id:e,permission:s})=>e==t.pid&&s>-1);if(a){this.goForward({name:"manage-file",params:{folderId:a.id,fileId:null}});return}}this.goForward({name:"manage-file"});return}this.goBack()}},appAndroidEvents(){this.$isEEUiApp&&$A.isAndroid()&&$A.eeuiAppSetPageBackPressed({pageName:"firstPage"},t=>{this.canBack()?this.onBack():$A.eeuiAppGoDesktop()})}}},x={};var Nt=n(Et,Ut,Bt,!1,Ot,null,null,null);function Ot(t){for(let a in x)this[a]=x[a]}var zt=function(){return Nt.exports}(),Ft=function(){var t=this,a=t.$createElement,e=t._self._c||a;return t.show&&t.userid>0?e("transition",{attrs:{name:"mobile-notify"}},[e("div",{staticClass:"mobile-notification",class:{show:t.show},on:{click:function(s){return s.stopPropagation(),t.onClick.apply(null,arguments)},touchstart:t.onTouchstart,touchmove:t.onTouchmove}},[e("UserAvatar",{attrs:{userid:t.userid,size:40,"show-name":"","name-text":t.title}}),e("div",{staticClass:"notification-desc"},[t._v(t._s(t.desc))])],1)]):t._e()},Wt=[];const Ht={name:"MobileNotification",data(){return{userid:0,title:"",desc:"",duration:6e3,callback:null,show:!1,timer:null,startY:0}},beforeDestroy(){this.timer&&clearTimeout(this.timer),this.show=!1},methods:{open(t){!$A.isJson(t)||(this.userid=t.userid||0,this.title=t.title||"",this.desc=t.desc||"",this.duration=typeof t.duration=="number"?t.duration:6e3,this.callback=typeof t.callback=="function"?t.callback:null,this.show=!0,this.timer&&clearTimeout(this.timer),this.duration>0&&(this.timer=setTimeout(this.close,this.duration)),$A.eeuiAppSendMessage({action:"setVibrate"}))},close(){this.show=!1},onClick(){this.close(),typeof this.callback=="function"&&this.callback()},onTouchstart(t){this.startY=t.touches[0].clientY},onTouchmove(t){this.startY>0&&this.startY-t.touches[0].clientY>10&&(this.startY=0,this.close())}}},S={};var Vt=n(Ht,Ft,Wt,!1,Kt,null,null,null);function Kt(t){for(let a in S)this[a]=S[a]}var Yt=function(){return Vt.exports}(),Jt=function(){var t=this,a=t.$createElement,e=t._self._c||a;return t.userid?e("div",{staticClass:"meeting-player"},[e("div",{staticClass:"player",style:t.playerStyle,attrs:{id:t.id}}),e("UserAvatar",{attrs:{userid:t.userid,size:36,borderWitdh:2}}),e("div",{staticClass:"player-state"},[t.audio?t._e():e("i",{staticClass:"taskfont"},[t._v("\uE7C7")]),t.video?t._e():e("i",{staticClass:"taskfont"},[t._v("\uE7C8")])])],1):t._e()},qt=[];const Xt={name:"MeetingPlayer",props:{id:{type:String,default:()=>"meeting-player-"+Math.round(Math.random()*1e4)},player:{type:Object,default:()=>({})},isLocal:{type:Boolean,default:!1}},data(){return{timer:null}},mounted(){this.timer=setInterval(t=>{this.audio&&!this.player.audioTrack.isPlaying&&this.play("audio"),this.video&&!this.player.videoTrack.isPlaying&&this.play("video")},3e3)},beforeDestroy(){clearInterval(this.timer)},computed:{...d(["cacheUserBasic"]),userid(){return this.player.uid?parseInt($A.getMiddle(this.player.uid,null,"-")):0},playerStyle(){const t=this.cacheUserBasic.find(({userid:a})=>a==this.userid);return t?{backgroundImage:`url("${t.userimg}")`}:null},audio(){return!!this.player.audioTrack},video(){return!!this.player.videoTrack}},watch:{audio:{handler(t){this.isLocal||!t||this.play("audio")},immediate:!0},video:{handler(t){!t||this.play("video")},immediate:!0}},methods:{play(t){this.$nextTick(a=>{try{t==="audio"?this.player.audioTrack.play():t==="video"&&this.player.videoTrack.play(this.id)}catch(e){console.log("Meeting Player Error",e)}})}}},I={};var Gt=n(Xt,Jt,qt,!1,Qt,null,null,null);function Qt(t){for(let a in I)this[a]=I[a]}var Zt=function(){return Gt.exports}(),te=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{ref:"floatDrag",style:t.dragStyle,on:{mousedown:function(s){return s.stopPropagation(),s.preventDefault(),t.mouseDown.apply(null,arguments)}}},[t._t("default")],2)},ee=[];const ae={name:"DragBallComponent",props:{id:{type:String,default:""},distanceRight:{type:Number,default:0},distanceBottom:{type:Number,default:100},isScrollHidden:{type:Boolean,default:!1},isCanDraggable:{type:Boolean,default:!0},zIndex:{type:Number,default:50}},data(){return{clientWidth:null,clientHeight:null,top:0,left:0,timer:null,currentTop:0,isMoving:!1,record:{}}},created(){this.clientWidth=document.documentElement.clientWidth,this.clientHeight=document.documentElement.clientHeight},mounted(){this.id&&($A.isJson(window._DragBallComponent)||(window._DragBallComponent={})),this.isCanDraggable&&this.$nextTick(()=>{this.id&&$A.isJson(window._DragBallComponent[this.id])?(this.left=window._DragBallComponent[this.id].left,this.top=window._DragBallComponent[this.id].top):(this.left=this.clientWidth-this.floatDrag.offsetWidth-this.distanceRight,this.top=this.clientHeight-this.floatDrag.offsetHeight-this.distanceBottom),this.initDraggable()}),this.isScrollHidden&&window.addEventListener("scroll",this.handleScroll),window.addEventListener("resize",this.handleResize)},beforeDestroy(){this.id&&(window._DragBallComponent[this.id]={left:this.left,top:this.top}),window.removeEventListener("scroll",this.handleScroll),window.removeEventListener("resize",this.handleResize)},computed:{dragStyle(){return{left:this.left+"px",top:this.top+"px",zIndex:this.zIndex,position:"fixed"}},floatDrag(){return this.$refs.floatDrag}},methods:{handleScroll(){this.timer&&clearTimeout(this.timer),this.timer=setTimeout(()=>{this.handleScrollEnd()},200),this.currentTop=document.documentElement.scrollTop||document.body.scrollTop,this.left>this.clientWidth/2?this.left=this.clientWidth+this.floatDrag.offsetWidth:this.left=-this.floatDrag.offsetWidth},handleScrollEnd(){(document.documentElement.scrollTop||document.body.scrollTop)===this.currentTop&&(this.left>this.clientWidth/2?this.left=this.clientWidth-this.floatDrag.offsetWidth:this.left=0,clearTimeout(this.timer))},handleResize(){this.clientWidth=document.documentElement.clientWidth,this.clientHeight=document.documentElement.clientHeight,this.$nextTick(this.checkDraggablePosition)},initDraggable(){this.floatDrag.addEventListener("touchstart",this.toucheStart),this.floatDrag.addEventListener("touchmove",this.touchMove),this.floatDrag.addEventListener("touchend",this.touchEnd)},mouseDown(t){this.record={time:new Date().getTime(),top:this.floatDrag.offsetTop,left:this.floatDrag.offsetLeft,x:t.clientX-this.floatDrag.offsetLeft,y:t.clientY-this.floatDrag.offsetTop},this.floatDrag.style.transition="none",this.canClick=!1,document.onmousemove=a=>{let e=a.clientX-this.record.x,s=a.clientY-this.record.y;e<0?e=0:e>window.innerWidth-this.floatDrag.offsetWidth&&(e=window.innerWidth-this.floatDrag.offsetWidth),s<0?s=0:s>window.innerHeight-this.floatDrag.offsetHeight&&(s=window.innerHeight-this.floatDrag.offsetHeight),this.left=e,this.top=s},document.onmouseup=()=>{document.onmousemove=null,document.onmouseup=null,this.checkDraggablePosition(),this.floatDrag.style.transition="all 0.3s",(Math.abs(this.record.top-this.floatDrag.offsetTop)<5&&Math.abs(this.record.left-this.floatDrag.offsetLeft)<5||new Date().getTime()-this.record.time<200)&&this.$emit("on-click")}},toucheStart(){this.canClick=!1,this.floatDrag.style.transition="none"},touchMove(t){if(this.canClick=!0,t.targetTouches.length===1){let a=event.targetTouches[0],e=a.clientX-this.floatDrag.offsetWidth/2,s=a.clientY-this.floatDrag.offsetHeight/2;e<0?e=0:e>window.innerWidth-this.floatDrag.offsetWidth&&(e=window.innerWidth-this.floatDrag.offsetWidth),s<0?s=0:s>window.innerHeight-this.floatDrag.offsetHeight&&(s=window.innerHeight-this.floatDrag.offsetHeight),this.left=e,this.top=s}},touchEnd(){!this.canClick||(this.floatDrag.style.transition="all 0.3s",this.checkDraggablePosition())},checkDraggablePosition(){this.left+this.floatDrag.offsetWidth/2>=this.clientWidth/2?this.left=this.clientWidth-this.floatDrag.offsetWidth:this.left=0,this.top<0&&(this.top=0),this.top+this.floatDrag.offsetHeight>=this.clientHeight&&(this.top=this.clientHeight-this.floatDrag.offsetHeight)}}},A={};var se=n(ae,te,ee,!1,ie,null,null,null);function ie(t){for(let a in A)this[a]=A[a]}var oe=function(){return se.exports}(),ne=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"meeting-warp"},[e("Modal",{attrs:{title:t.$L(t.addData.type==="join"?"\u52A0\u5165\u4F1A\u8BAE":"\u65B0\u4F1A\u8BAE"),"mask-closable":!1},model:{value:t.addShow,callback:function(s){t.addShow=s},expression:"addShow"}},[e("Form",{ref:"addForm",attrs:{model:t.addData,"label-width":"auto"},nativeOn:{submit:function(s){s.preventDefault()}}},[t.addData.type==="join"?[t.addData.name?e("FormItem",{attrs:{prop:"userids",label:t.$L("\u4F1A\u8BAE\u4E3B\u9898")}},[e("Input",{attrs:{disabled:""},model:{value:t.addData.name,callback:function(s){t.$set(t.addData,"name",s)},expression:"addData.name"}})],1):t._e(),e("FormItem",{attrs:{prop:"meetingid",label:t.$L("\u4F1A\u8BAE\u9891\u9053ID")}},[e("Input",{attrs:{disabled:t.addData.meetingdisabled===!0,placeholder:t.$L("\u8BF7\u8F93\u5165\u4F1A\u8BAE\u9891\u9053ID")},model:{value:t.addData.meetingid,callback:function(s){t.$set(t.addData,"meetingid",s)},expression:"addData.meetingid"}})],1)]:[e("FormItem",{attrs:{prop:"name",label:t.$L("\u4F1A\u8BAE\u4E3B\u9898")}},[e("Input",{attrs:{maxlength:50,placeholder:t.$L("\u9009\u586B")},model:{value:t.addData.name,callback:function(s){t.$set(t.addData,"name",s)},expression:"addData.name"}})],1),e("FormItem",{attrs:{prop:"userids",label:t.$L("\u9080\u8BF7\u6210\u5458")}},[e("UserInput",{attrs:{uncancelable:[t.userId],"multiple-max":20,placeholder:t.$L("\u9009\u62E9\u9080\u8BF7\u6210\u5458")},model:{value:t.addData.userids,callback:function(s){t.$set(t.addData,"userids",s)},expression:"addData.userids"}})],1)],e("FormItem",{attrs:{prop:"tracks"}},[e("CheckboxGroup",{model:{value:t.addData.tracks,callback:function(s){t.$set(t.addData,"tracks",s)},expression:"addData.tracks"}},[e("Checkbox",{attrs:{label:"audio"}},[e("span",[t._v(t._s(t.$L("\u9EA6\u514B\u98CE")))])]),e("Checkbox",{attrs:{label:"video"}},[e("span",[t._v(t._s(t.$L("\u6444\u50CF\u5934")))])])],1)],1)],2),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(s){t.addShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.loadIng>0},on:{click:t.onSubmit}},[t._v(t._s(t.$L(t.addData.type==="join"?"\u52A0\u5165\u4F1A\u8BAE":"\u5F00\u59CB\u4F1A\u8BAE")))])],1)],1),e("Modal",{attrs:{title:t.addData.name,mask:!1,"mask-closable":!1,closable:!1,"transition-names":["",""],beforeClose:t.onClose,"class-name":`meeting-manager${t.meetingMini?" meeting-hidden":""}`,fullscreen:""},model:{value:t.meetingShow,callback:function(s){t.meetingShow=s},expression:"meetingShow"}},[e("ul",[t.localUser.uid?e("li",[e("MeetingPlayer",{attrs:{player:t.localUser,isLocal:""}})],1):t._e(),t._l(t.remoteUsers,function(s){return e("li",[e("MeetingPlayer",{attrs:{player:s}})],1)})],2),e("div",{staticClass:"adaption meeting-button-group",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"primary",loading:t.audioLoad},on:{click:t.onAudio}},[e("i",{staticClass:"taskfont",domProps:{innerHTML:t._s(t.localUser.audioTrack?"":"")}})]),e("Button",{attrs:{type:"primary",loading:t.videoLoad},on:{click:t.onVideo}},[e("i",{staticClass:"taskfont",domProps:{innerHTML:t._s(t.localUser.videoTrack?"":"")}})]),t.windowSmall?[e("Button",{attrs:{type:"primary"},on:{click:function(s){return t.onInvitation("open")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE646")])]),e("Button",{attrs:{type:"primary"},on:{click:function(s){t.meetingMini=!0}}},[e("i",{staticClass:"taskfont"},[t._v("\uE656")])]),e("Button",{attrs:{type:"warning",loading:t.loadIng>0},on:{click:t.onClose}},[e("i",{staticClass:"taskfont"},[t._v("\uE612")])])]:[e("Button",{attrs:{type:"primary"},on:{click:function(s){return t.onInvitation("open")}}},[t._v(t._s(t.$L("\u9080\u8BF7")))]),e("Button",{attrs:{type:"primary"},on:{click:function(s){t.meetingMini=!0}}},[t._v(t._s(t.$L("\u6700\u5C0F\u5316")))]),e("Button",{attrs:{type:"warning",loading:t.loadIng>0},on:{click:t.onClose}},[t._v(t._s(t.$L("\u79BB\u5F00\u4F1A\u8BAE")))])]],2)]),t.meetingMini?e("DragBallComponent",{attrs:{id:"meetingDragBall","z-index":3e3},on:{"on-click":function(s){t.meetingMini=!1}}},[e("div",{staticClass:"meeting-drag-ball"},[e("i",{staticClass:"taskfont",domProps:{innerHTML:t._s(t.localUser.audioTrack?"":"")}}),e("i",{staticClass:"taskfont",domProps:{innerHTML:t._s(t.localUser.videoTrack?"":"")}}),e("em",[t._v(t._s(t.$L("\u4F1A\u8BAE\u4E2D")))])])]):t._e(),e("Modal",{attrs:{title:t.$L("\u9080\u8BF7\u52A0\u5165"),"mask-closable":!1},model:{value:t.invitationShow,callback:function(s){t.invitationShow=s},expression:"invitationShow"}},[e("Form",{ref:"invitationForm",attrs:{model:t.invitationData,"label-width":"auto"},nativeOn:{submit:function(s){s.preventDefault()}}},[e("FormItem",{attrs:{prop:"userids",label:t.$L("\u9080\u8BF7\u6210\u5458")}},[e("UserInput",{attrs:{"multiple-max":20,placeholder:t.$L("\u9009\u62E9\u9080\u8BF7\u6210\u5458")},model:{value:t.invitationData.userids,callback:function(s){t.$set(t.invitationData,"userids",s)},expression:"invitationData.userids"}})],1)],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(s){t.invitationShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.invitationLoad},on:{click:function(s){return t.onInvitation("submit")}}},[t._v(t._s(t.$L("\u53D1\u9001\u9080\u8BF7")))])],1)],1)],1)},re=[];const le={name:"MeetingManager",components:{DragBallComponent:oe,MeetingPlayer:Zt,UserInput:v},data(){return{loadIng:0,subscribe:null,addShow:!1,addData:{userids:[],tracks:["audio"]},invitationShow:!1,invitationLoad:!1,invitationData:{userids:[]},meetingShow:!1,meetingMini:!1,audioLoad:!1,videoLoad:!1,agoraClient:null,remoteUsers:[],localUser:{uid:null,audioTrack:null,videoTrack:null}}},mounted(){this.subscribe=c.Store.subscribe("addMeeting",this.onAdd)},beforeDestroy(){this.subscribe&&(this.subscribe.unsubscribe(),this.subscribe=null)},watch:{meetingShow(t){t?$A.eeuiAppKeepScreenOn():$A.eeuiAppKeepScreenOff()}},methods:{onAdd(t){t=$A.isJson(t)?t:{},/^\d+$/.test(t.dialog_id)&&(this.loadIng++,this.$store.dispatch("call",{url:"dialog/user",data:{dialog_id:t.dialog_id}}).then(({data:a})=>{this.$set(this.addData,"userids",a.map(e=>e.userid))}).finally(a=>{this.loadIng--}),delete t.dialog_id),$A.isArray(t.userids)?t.userids.includes(this.userId)||t.userids.push(this.userId):t.userids=[this.userId],$A.isArray(t.tracks)?t.tracks.includes("audio")||t.tracks.push("audio"):t.tracks=["audio"],this.addData=t,this.addShow=!0},onSubmit(){this.$refs.addForm.validate(t=>{t&&(this.loadIng++,this.$store.dispatch("call",{url:"users/meeting/open",data:this.addData}).then(({data:a})=>{this.$set(this.addData,"name",a.name),this.$set(this.addData,"meetingid",a.meetingid),this.$store.dispatch("saveDialogMsg",a.msgs),this.$store.dispatch("updateDialogLastMsg",a.msgs),delete a.name,delete a.msgs,$A.loadScript("js/AgoraRTC_N-4.14.2.js",e=>{e!==null||typeof AgoraRTC!="object"?$A.modalError("\u4F1A\u8BAE\u7EC4\u4EF6\u52A0\u8F7D\u5931\u8D25\uFF01"):this.join(a),this.loadIng--})}).catch(({msg:a})=>{this.loadIng--,$A.modalError(a)}))})},onAudio(){this.localUser.audioTrack?this.closeAudio():this.openAudio()},onVideo(){this.localUser.videoTrack?this.closeVideo():this.openVideo()},onInvitation(t){t==="open"?(this.invitationData={userids:[],meetingid:this.addData.meetingid},this.invitationShow=!0):t==="submit"&&(this.invitationLoad=!0,this.$store.dispatch("call",{url:"users/meeting/invitation",data:this.invitationData}).then(({data:a,msg:e})=>{this.invitationShow=!1,this.$store.dispatch("saveDialogMsg",a.msgs),this.$store.dispatch("updateDialogLastMsg",a.msgs),$A.messageSuccess(e)}).catch(({msg:a})=>{$A.modalError(a)}).finally(a=>{this.invitationLoad=!1}))},onClose(){return new Promise(t=>{$A.modalConfirm({content:"\u786E\u5B9A\u8981\u79BB\u5F00\u4F1A\u8BAE\u5417\uFF1F",cancelText:"\u7EE7\u7EED",okText:"\u9000\u51FA",onOk:async a=>{await this.leave(),t()}})})},async join(t){this.loadIng++,AgoraRTC.onMicrophoneChanged=async e=>{if(e.state==="ACTIVE")this.localUser.audioTrack.setDevice(e.device.deviceId);else if(e.device.label===this.localUser.audioTrack.getTrackLabel()){const s=await AgoraRTC.getMicrophones();s[0]&&this.localUser.audioTrack.setDevice(s[0].deviceId)}},AgoraRTC.onCameraChanged=async e=>{if(e.state==="ACTIVE")this.localUser.videoTrack.setDevice(e.device.deviceId);else if(e.device.label===this.localUser.videoTrack.getTrackLabel()){const s=await AgoraRTC.getCameras();s[0]&&this.localUser.videoTrack.setDevice(s[0].deviceId)}},AgoraRTC.onAutoplayFailed=()=>{},this.agoraClient=AgoraRTC.createClient({mode:"rtc",codec:"vp8"}),this.agoraClient.on("user-joined",this.handleUserJoined),this.agoraClient.on("user-left",this.handleUserLeft),this.agoraClient.on("user-published",this.handleUserPublished),this.agoraClient.on("user-unpublished",this.handleUserUnpublished);const a=[];this.localUser.uid=await this.agoraClient.join(t.appid,t.channel,t.token,t.uid),this.addData.tracks.includes("audio")&&a.push(this.localUser.audioTrack=await AgoraRTC.createMicrophoneAudioTrack()),this.addData.tracks.includes("video")&&a.push(this.localUser.videoTrack=await AgoraRTC.createCameraVideoTrack()),a.length>0&&await this.agoraClient.publish(a),this.loadIng--,this.addShow=!1,this.meetingShow=!0},async leave(){this.loadIng++,["audioTrack","videoTrack"].some(t=>{var a,e;(a=this.localUser[t])==null||a.stop(),(e=this.localUser[t])==null||e.close()}),this.localUser={uid:null,audioTrack:null,videoTrack:null},this.remoteUsers=[],await this.agoraClient.leave(),this.loadIng--,this.meetingShow=!1},async openAudio(){this.audioLoad||this.localUser.audioTrack||(this.audioLoad=!0,this.localUser.audioTrack=await AgoraRTC.createMicrophoneAudioTrack(),await this.agoraClient.publish([this.localUser.audioTrack]),this.audioLoad=!1)},async closeAudio(){this.audioLoad||!this.localUser.audioTrack||(this.audioLoad=!0,await this.agoraClient.unpublish([this.localUser.audioTrack]),this.localUser.audioTrack.stop(),this.localUser.audioTrack.close(),this.localUser.audioTrack=null,this.audioLoad=!1)},async openVideo(){this.videoLoad||this.localUser.videoTrack||(this.videoLoad=!0,this.localUser.videoTrack=await AgoraRTC.createCameraVideoTrack(),await this.agoraClient.publish([this.localUser.videoTrack]),this.videoLoad=!1)},async closeVideo(){this.videoLoad||!this.localUser.videoTrack||(this.videoLoad=!0,await this.agoraClient.unpublish([this.localUser.videoTrack]),this.localUser.videoTrack.stop(),this.localUser.videoTrack.close(),this.localUser.videoTrack=null,this.videoLoad=!1)},async handleUserJoined(t){const a=this.remoteUsers.findIndex(e=>e.uid==t.uid);a>-1?this.remoteUsers.splice(a,1,t):this.remoteUsers.push(t)},async handleUserLeft(t){const a=this.remoteUsers.findIndex(e=>e.uid==t.uid);a>-1&&this.remoteUsers.splice(a,1)},async handleUserPublished(t,a){this.remoteUsers.find(s=>s.uid==t.uid)&&await this.agoraClient.subscribe(t,a)},async handleUserUnpublished(t,a){this.remoteUsers.find(s=>s.uid==t.uid)&&await this.agoraClient.unsubscribe(t,a)}}},M={};var ce=n(le,ne,re,!1,de,null,null,null);function de(t){for(let a in M)this[a]=M[a]}var he=function(){return ce.exports}(),ue=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("Modal",{attrs:{value:t.visible,mask:!1,"mask-closable":!1,"footer-hide":!0,"transition-names":[t.transition,""],beforeClose:t.onBeforeClose,"class-name":"dialog-modal",fullscreen:""}},[t.windowSmall&&t.dialogId>0?e("DialogWrapper",{attrs:{dialogId:t.dialogId,beforeBack:t.onBeforeClose}}):t._e()],1)},pe=[];const me={name:"DialogModal",components:{DialogWrapper:K},data(){return{timer:null,transition:$A.isIos()?"mobile-dialog":""}},computed:{...d(["dialogId"]),visible(){return this.dialogId>0&&this.windowSmall}},methods:{onBeforeClose(){return new Promise(t=>{this.$store.dispatch("openDialog",0)})}}},j={};var fe=n(me,ue,pe,!1,ge,null,null,null);function ge(t){for(let a in j)this[a]=j[a]}var ve=function(){return fe.exports}(),_e=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("Modal",{attrs:{value:t.show,styles:t.styles,"mask-closable":!1,"footer-hide":!0,beforeClose:t.onBeforeClose,"class-name":"task-modal"}},[e("TaskDetail",{ref:"taskDetail",attrs:{"task-id":t.taskId,"open-task":t.taskData,modalMode:""}})],1)},$e=[];const ke={name:"TaskModal",components:{TaskDetail:Y},computed:{...d(["taskId"]),...g(["taskData"]),show(){return this.taskId>0},styles(){return{width:"90%",maxWidth:this.taskData.dialog_id?"1200px":"700px"}}},methods:{onBeforeClose(){return new Promise(t=>{this.$store.dispatch("openTask",0)})},checkUpdate(){if(this.show)return this.$refs.taskDetail.checkUpdate(!0),!0}}},P={};var be=n(ke,_e,$e,!1,ye,null,null,null);function ye(t){for(let a in P)this[a]=P[a]}var we=function(){return be.exports}(),De=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("Modal",{attrs:{title:t.$L("\u5BFC\u51FA\u4EFB\u52A1\u7EDF\u8BA1"),"mask-closable":!1},model:{value:t.show,callback:function(s){t.show=s},expression:"show"}},[e("Form",{ref:"exportTask",attrs:{model:t.formData,"label-width":"auto"},nativeOn:{submit:function(s){s.preventDefault()}}},[e("FormItem",{attrs:{label:t.$L("\u5BFC\u51FA\u6210\u5458")}},[e("UserInput",{attrs:{"multiple-max":100,placeholder:t.$L("\u8BF7\u9009\u62E9\u6210\u5458")},model:{value:t.formData.userid,callback:function(s){t.$set(t.formData,"userid",s)},expression:"formData.userid"}}),e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u6BCF\u6B21\u6700\u591A\u9009\u62E9\u5BFC\u51FA100\u4E2A\u6210\u5458")))])],1),e("FormItem",{attrs:{label:t.$L("\u65F6\u95F4\u8303\u56F4")}},[e("DatePicker",{staticStyle:{width:"100%"},attrs:{type:"daterange",format:"yyyy/MM/dd",placeholder:t.$L("\u8BF7\u9009\u62E9\u65F6\u95F4")},model:{value:t.formData.time,callback:function(s){t.$set(t.formData,"time",s)},expression:"formData.time"}}),e("div",{staticClass:"form-tip checkin-export-quick-select"},[e("span",[t._v(t._s(t.$L("\u5FEB\u6377\u9009\u62E9"))+":")]),e("em",{on:{click:function(s){t.formData.time=t.dateShortcuts("prev")}}},[t._v(t._s(t.$L("\u4E0A\u4E2A\u6708")))]),e("em",{on:{click:function(s){t.formData.time=t.dateShortcuts("this")}}},[t._v(t._s(t.$L("\u8FD9\u4E2A\u6708")))])])],1),e("FormItem",{attrs:{prop:"type",label:t.$L("\u5BFC\u51FA\u65F6\u95F4\u7C7B\u578B")}},[e("RadioGroup",{model:{value:t.formData.type,callback:function(s){t.$set(t.formData,"type",s)},expression:"formData.type"}},[e("Radio",{attrs:{label:"taskTime"}},[t._v(t._s(t.$L("\u4EFB\u52A1\u65F6\u95F4")))]),e("Radio",{attrs:{label:"createdTime"}},[t._v(t._s(t.$L("\u521B\u5EFA\u65F6\u95F4")))])],1)],1)],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(s){t.show=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.loadIng>0},on:{click:t.onExport}},[t._v(t._s(t.$L("\u5BFC\u51FA")))])],1)],1)},Le=[];const Te={name:"TaskExport",components:{UserInput:v},props:{value:{type:Boolean,default:!1}},data(){return{show:this.value,loadIng:0,formData:{userid:[],time:[],type:"taskTime"}}},watch:{value(t){this.show=t},show(t){this.value!==t&&this.$emit("input",t)}},methods:{dateShortcuts(t){if(t==="prev")return[$A.getSpecifyDate("\u4E0A\u4E2A\u6708"),$A.getSpecifyDate("\u4E0A\u4E2A\u6708\u7ED3\u675F")];if(t==="this")return[$A.getSpecifyDate("\u672C\u6708"),$A.getSpecifyDate("\u672C\u6708\u7ED3\u675F")]},onExport(){this.loadIng>0||(this.loadIng++,this.$store.dispatch("call",{url:"project/task/export",data:this.formData}).then(({data:t})=>{this.show=!1,this.$store.dispatch("downUrl",{url:t.url})}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.loadIng--}))}}},R={};var Ce=n(Te,De,Le,!1,xe,null,null,null);function xe(t){for(let a in R)this[a]=R[a]}var Se=function(){return Ce.exports}();const Ie=(t,a)=>!t||!a?!1:t==="String"?typeof a=="string":t==="Object"?Object.prototype.toString.call(a)==="[object Object]":t==="number"?typeof a=="number":t==="function"?Object.prototype.toString.call(a)==="[object Function]":!1,Ae=(t,a,e)=>t.findIndex(s=>s[a]===e);var l={checkData:Ie,searchArrObj:Ae};class Me{constructor(a="\u9ED8\u8BA4\u6807\u9898",e={}){this.title=a,this.options=e,this.support=!1,this.supportFn()}supportFn(){window.Notification?(this.initStatus(),this.support=!0):this.support=!1}initStatus(){this.notification=null,this.state=Notification.permission,this.msg=null,this.callBackObj={},this.notificationAll=[],this.requireInteractionTimeout=!1,this.timeout=null}initNotification(a){if(!!this.checkStatus("support")){if(!l.checkData("function",a))return console.error("initNotification\u7684\u53C2\u6570\u5FC5\u987B\u4E3A\u51FD\u6570");if(this.state==="granted")this.msg="already granted";else if(this.state==="default"){const e=s=>(this.state=s,s==="granted"?this.msg="granted":s==="default"?this.msg="close":this.msg="denied",a(this.msg));try{Notification.requestPermission().then(e)}catch{Notification.requestPermission(e)}}else this.msg="already denied";if(this.state!=="default")return a(this.msg)}}userAgreed(){if(!!this.checkStatus("userAgreed")){this.notification=new Notification(this.title,this.options),this.notificationWatch();for(const a in this.callBackObj)this.notification[a]=e=>{this.callBackObj[a](e)}}}notificationTimeoutFn(a){a&&l.checkData("number",a)?this.timeout=a:this.timeout=5e3}notificationWatch(){this.notificationAll.push(this.notification),this.notification.requireInteraction?this.everyTimeout():this.autoClose(),this.watchClose()}everyTimeout(){!l.checkData("number",this.timeout)||(this.options.timeOut&&l.checkData("number",this.options.timeOut)?this.timeoutCloseFn(this.options.timeOut):this.timeoutCloseFn(this.timeout))}timeoutCloseFn(a){const e=this.notification.timestamp;setTimeout(()=>{const s=l.searchArrObj(this.notificationAll,"timestamp",e);s!==-1&&this.notificationAll[s].close()},a)}watchClose(){const a=this.notification.timestamp;this.notification.addEventListener("close",e=>{const s=l.searchArrObj(this.notificationAll,"timestamp",a);s!==-1&&this.notificationAll.splice(s,1)})}autoClose(){const a=this.notification.timestamp;setTimeout(()=>{const e=l.searchArrObj(this.notificationAll,"timestamp",a);e!==-1&&this.notificationAll.splice(e,1)},6e3)}notificationEvent(a){if(!!this.checkStatus("support"))if(l.checkData("Object",a)){for(const e in a)if(!l.checkData("function",a[e]))return console.error("callObj\u5BF9\u8C61\u4E2D\u7684\u6BCF\u4E2Avalue\u5FC5\u987B\u4E3A\u51FD\u6570");this.callBackObj=a}else return console.error("callObj\u5FC5\u987B\u4E3A\u5BF9\u8C61")}closeAll(){for(let a of this.notificationAll.values())a.close();this.notificationAll=[]}close(){if(!this.notification)return console.warn("this.notification\u4E3Anull,\u901A\u77E5\u5C1A\u672A\u8C03\u7528/\u7528\u6237\u672A\u540C\u610F\u663E\u793A\u901A\u77E5");this.notification.close()}updateOptions(a){if(a&&l.checkData("Object",a))for(const e in a)this.options[e]=a[e];else console.warn("updateOptions\u53C2\u6570\u9519\u8BEF\uFF1Aoptions\u4E3A\u5FC5\u586B\u5BF9\u8C61")}replaceTitle(a){a&&l.checkData("String",a)?this.title=a:console.warn("replaceTitle: title(\u901A\u77E5\u6807\u9898)\u4E3A\u5FC5\u586B\u5B57\u7B26\u4E32")}replaceOptions(a){a&&l.checkData("Object",a)?this.options=a:console.warn("replaceOptions\u53C2\u6570\u9519\u8BEF\uFF1Aoptions\u4E3A\u5FC5\u586B\u5BF9\u8C61")}checkStatus(a){if(a==="support"){if(!this.support)return console.warn("\u7528\u6237\u6D4F\u89C8\u5668\u4E0D\u652F\u6301"),!1}else if(a==="userAgreed"&&(this.state!=="granted"||!this.checkStatus("support")))return!1;return!0}}var je=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{directives:[{name:"show",rawName:"v-show",value:t.userId>0,expression:"userId > 0"}],staticClass:"page-manage",class:{"show-tabbar":t.showMobileTabbar}},[e("div",{staticClass:"manage-box-menu",class:{"show768-menu":t.show768Menu}},[e("Dropdown",{staticClass:"page-manage-menu-dropdown main-menu",attrs:{trigger:"click"},on:{"on-click":t.settingRoute,"on-visible-change":t.menuVisibleChange}},[e("div",{class:["manage-box-title",t.visibleMenu?"menu-visible":""]},[e("div",{staticClass:"manage-box-avatar"},[e("UserAvatar",{attrs:{userid:t.userId,size:36,tooltipDisabled:""}})],1),e("span",[t._v(t._s(t.userInfo.nickname))]),t.reportUnreadNumber>0?e("Badge",{staticClass:"manage-box-top-report",attrs:{"overflow-count":999,count:t.reportUnreadNumber}}):t.clientNewVersion?e("Badge",{staticClass:"manage-box-top-report",attrs:{dot:""}}):t._e(),e("div",{staticClass:"manage-box-arrow"},[e("Icon",{attrs:{type:"ios-arrow-up"}}),e("Icon",{attrs:{type:"ios-arrow-down"}})],1)],1),e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[t._l(t.menu,function(s){return[s.path==="taskBrowse"?e("Dropdown",{attrs:{transfer:"","transfer-class-name":"page-manage-menu-dropdown",placement:"right-start"}},[e("DropdownItem",{attrs:{divided:!!s.divided}},[e("div",{staticClass:"manage-menu-flex"},[t._v(" "+t._s(t.$L(s.name))+" "),e("Icon",{attrs:{type:"ios-arrow-forward"}})],1)]),t.taskBrowseLists.length>0?e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},t._l(t.taskBrowseLists,function(i,o){return i.id>0&&o<10?e("DropdownItem",{key:o,staticClass:"task-title",attrs:{name:i.name},nativeOn:{click:function(h){return t.openTask(i)}}},[i.flow_item_name?e("span",{class:i.flow_item_status},[t._v(t._s(i.flow_item_name))]):t._e(),e("div",{staticClass:"task-title-text"},[t._v(t._s(i.name))])]):t._e()}),1):e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[e("DropdownItem",{staticStyle:{color:"darkgrey"}},[t._v(t._s(t.$L("\u6682\u65E0\u6253\u5F00\u8BB0\u5F55")))])],1)],1):s.path==="team"?e("Dropdown",{attrs:{transfer:"","transfer-class-name":"page-manage-menu-dropdown",placement:"right-start"}},[e("DropdownItem",{attrs:{divided:!!s.divided}},[e("div",{staticClass:"manage-menu-flex"},[t._v(" "+t._s(t.$L(s.name))+" "),t.reportUnreadNumber>0?e("Badge",{staticClass:"manage-menu-report-badge",attrs:{"overflow-count":999,count:t.reportUnreadNumber}}):e("Icon",{attrs:{type:"ios-arrow-forward"}})],1)]),e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[e("DropdownItem",{attrs:{name:"allUser"}},[t._v(t._s(t.$L("\u56E2\u961F\u7BA1\u7406")))]),e("DropdownItem",{attrs:{name:"workReport"}},[e("div",{staticClass:"manage-menu-flex"},[t._v(" "+t._s(t.$L("\u5DE5\u4F5C\u62A5\u544A"))+" "),t.reportUnreadNumber>0?e("Badge",{staticClass:"manage-menu-report-badge",attrs:{"overflow-count":999,count:t.reportUnreadNumber}}):t._e()],1)]),e("DropdownItem",{attrs:{name:"exportTask"}},[t._v(t._s(t.$L("\u5BFC\u51FA\u4EFB\u52A1\u7EDF\u8BA1")))]),e("DropdownItem",{attrs:{name:"exportOverdueTask"}},[t._v(t._s(t.$L("\u5BFC\u51FA\u8D85\u671F\u4EFB\u52A1")))]),e("DropdownItem",{attrs:{name:"exportCheckin"}},[t._v(t._s(t.$L("\u5BFC\u51FA\u7B7E\u5230\u6570\u636E")))])],1)],1):s.visible!==!1?e("DropdownItem",{style:s.style||{},attrs:{divided:!!s.divided,name:s.path}},[e("div",{staticClass:"manage-menu-flex"},[t._v(" "+t._s(t.$L(s.name))+" "),s.path==="version"?e("Badge",{staticClass:"manage-menu-report-badge",attrs:{text:t.clientNewVersion}}):s.path==="workReport"&&t.reportUnreadNumber>0?e("Badge",{staticClass:"manage-menu-report-badge",attrs:{count:t.reportUnreadNumber}}):t._e()],1)]):t._e()]})],2)],1),e("ul",{class:t.listClassName,on:{scroll:function(s){t.operateVisible=!1}}},[e("li",{class:t.classNameRoute("dashboard"),on:{click:function(s){return t.toggleRoute("dashboard")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE6FB")]),e("div",{staticClass:"menu-title"},[t._v(t._s(t.$L("\u4EEA\u8868\u76D8")))]),t.dashboardTask.overdue_count>0?e("Badge",{staticClass:"menu-badge",attrs:{type:"error","overflow-count":999,count:t.dashboardTask.overdue_count}}):t.dashboardTask.today_count>0?e("Badge",{staticClass:"menu-badge",attrs:{type:"info","overflow-count":999,count:t.dashboardTask.today_count}}):t.dashboardTask.all_count>0?e("Badge",{staticClass:"menu-badge",attrs:{type:"primary","overflow-count":999,count:t.dashboardTask.all_count}}):t._e()],1),e("li",{class:t.classNameRoute("calendar"),on:{click:function(s){return t.toggleRoute("calendar")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE6F5")]),e("div",{staticClass:"menu-title"},[t._v(t._s(t.$L("\u65E5\u5386")))])]),e("li",{class:t.classNameRoute("messenger"),on:{click:function(s){return t.toggleRoute("messenger")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE6EB")]),e("div",{staticClass:"menu-title"},[t._v(t._s(t.$L("\u6D88\u606F")))]),e("Badge",{staticClass:"menu-badge",attrs:{"overflow-count":999,text:t.msgUnreadMention}})],1),e("li",{class:t.classNameRoute("file"),on:{click:function(s){return t.toggleRoute("file")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE6F3")]),e("div",{staticClass:"menu-title"},[t._v(t._s(t.$L("\u6587\u4EF6")))])]),e("li",{ref:"menuProject",staticClass:"menu-project"},[e("ul",{class:t.listClassName,on:{scroll:function(s){t.operateVisible=!1}}},[t._l(t.projectLists,function(s,i){return e("li",{directives:[{name:"longpress",rawName:"v-longpress",value:t.handleLongpress,expression:"handleLongpress"}],key:i,ref:`project_${s.id}`,refInFor:!0,class:t.classNameProject(s),attrs:{"data-id":s.id},on:{click:function(o){return t.toggleRoute("project",{projectId:s.id})}}},[e("div",{staticClass:"project-h1"},[e("em",{on:{click:function(o){return o.stopPropagation(),t.toggleOpenMenu(s.id)}}}),e("div",{staticClass:"title"},[t._v(t._s(s.name))]),s.top_at?e("div",{staticClass:"icon-top"}):t._e(),s.task_my_num-s.task_my_complete>0?e("div",{staticClass:"num"},[t._v(t._s(s.task_my_num-s.task_my_complete))]):t._e()]),e("div",{staticClass:"project-h2"},[e("p",[e("em",[t._v(t._s(t.$L("\u6211\u7684"))+":")]),e("span",[t._v(t._s(s.task_my_complete)+"/"+t._s(s.task_my_num))]),e("Progress",{attrs:{percent:s.task_my_percent,"stroke-width":6}})],1),e("p",[e("em",[t._v(t._s(t.$L("\u5168\u90E8"))+":")]),e("span",[t._v(t._s(s.task_complete)+"/"+t._s(s.task_num))]),e("Progress",{attrs:{percent:s.task_percent,"stroke-width":6}})],1)])])}),t.projectKeyLoading>0?e("li",{staticClass:"loading"},[e("Loading")],1):t._e()],2)])]),e("div",{staticClass:"operate-position",style:t.operateStyles},[e("Dropdown",{attrs:{trigger:"custom",placement:t.windowLarge?"bottom":"top",visible:t.operateVisible,transfer:""},on:{"on-clickoutside":function(s){t.operateVisible=!1}}},[e("div",{style:{userSelect:t.operateVisible?"none":"auto",height:t.operateStyles.height}}),e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[e("DropdownItem",{nativeOn:{click:function(s){return t.handleTopClick.apply(null,arguments)}}},[t._v(" "+t._s(t.$L(t.operateItem.top_at?"\u53D6\u6D88\u7F6E\u9876":"\u7F6E\u9876\u8BE5\u9879\u76EE"))+" ")])],1)],1)],1),(t.projectSearchShow||t.projectTotal>20)&&t.windowHeight>600?e("div",{staticClass:"manage-project-search"},[e("Input",{attrs:{placeholder:t.$L(`\u5171${t.projectTotal||t.cacheProjects.length}\u4E2A\u9879\u76EE\uFF0C\u641C\u7D22...`),clearable:""},model:{value:t.projectKeyValue,callback:function(s){t.projectKeyValue=s},expression:"projectKeyValue"}},[e("div",{staticClass:"search-pre",attrs:{slot:"prefix"},slot:"prefix"},[t.projectKeyLoading>0?e("Loading"):e("Icon",{attrs:{type:"ios-search"}})],1)])],1):t._e(),e("ButtonGroup",{staticClass:"manage-box-new-group"},[e("Button",{staticClass:"manage-box-new",attrs:{type:"primary",icon:"md-add"},on:{click:t.onAddShow}},[t._v(t._s(t.$L("\u65B0\u5EFA\u9879\u76EE")))]),e("Dropdown",{attrs:{trigger:"click"},on:{"on-click":t.onAddMenu}},[e("Button",{attrs:{type:"primary"}},[e("Icon",{attrs:{type:"ios-arrow-down"}})],1),e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[e("DropdownItem",{attrs:{name:"task"}},[t._v(t._s(t.$L("\u65B0\u5EFA\u4EFB\u52A1"))+" ("+t._s(t.mateName)+"+K)")]),e("DropdownItem",{attrs:{name:"createMeeting"}},[t._v(t._s(t.$L("\u65B0\u4F1A\u8BAE"))+" ("+t._s(t.mateName)+"+J)")]),e("DropdownItem",{attrs:{name:"joinMeeting"}},[t._v(t._s(t.$L("\u52A0\u5165\u4F1A\u8BAE")))])],1)],1)],1)],1),e("div",{staticClass:"manage-box-main"},[e("keep-alive",[e("router-view",{staticClass:"manage-box-view"})],1)],1),e("Modal",{attrs:{title:t.$L("\u65B0\u5EFA\u9879\u76EE"),"mask-closable":!1},model:{value:t.addShow,callback:function(s){t.addShow=s},expression:"addShow"}},[e("Form",{ref:"addProject",attrs:{model:t.addData,rules:t.addRule,"label-width":"auto"},nativeOn:{submit:function(s){s.preventDefault()}}},[e("FormItem",{attrs:{prop:"name",label:t.$L("\u9879\u76EE\u540D\u79F0")}},[e("Input",{ref:"projectName",attrs:{type:"text"},model:{value:t.addData.name,callback:function(s){t.$set(t.addData,"name",s)},expression:"addData.name"}})],1),t.addData.columns?e("FormItem",{attrs:{label:t.$L("\u4EFB\u52A1\u5217\u8868")}},[e("TagInput",{model:{value:t.addData.columns,callback:function(s){t.$set(t.addData,"columns",s)},expression:"addData.columns"}})],1):e("FormItem",{attrs:{label:t.$L("\u9879\u76EE\u6A21\u677F")}},[e("Select",{attrs:{value:0,placeholder:t.$L("\u8BF7\u9009\u62E9\u6A21\u677F")},on:{"on-change":t.selectChange}},t._l(t.columns,function(s,i){return e("Option",{key:i,attrs:{value:i}},[t._v(t._s(s.name))])}),1)],1),e("FormItem",{attrs:{prop:"flow",label:t.$L("\u5F00\u542F\u5DE5\u4F5C\u6D41")}},[e("RadioGroup",{model:{value:t.addData.flow,callback:function(s){t.$set(t.addData,"flow",s)},expression:"addData.flow"}},[e("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),e("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1)],1)],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(s){t.addShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.loadIng>0},on:{click:t.onAddProject}},[t._v(t._s(t.$L("\u6DFB\u52A0")))])],1)],1),e("Modal",{attrs:{"mask-closable":!1,styles:{width:"90%",maxWidth:"640px"},"footer-hide":""},model:{value:t.addTaskShow,callback:function(s){t.addTaskShow=s},expression:"addTaskShow"}},[e("TaskAdd",{ref:"addTask",model:{value:t.addTaskShow,callback:function(s){t.addTaskShow=s},expression:"addTaskShow"}})],1),e("TaskExport",{model:{value:t.exportTaskShow,callback:function(s){t.exportTaskShow=s},expression:"exportTaskShow"}}),e("CheckinExport",{model:{value:t.exportCheckinShow,callback:function(s){t.exportCheckinShow=s},expression:"exportCheckinShow"}}),e("TaskModal",{ref:"taskModal"}),e("DialogModal",{ref:"dialogModal"}),e("DrawerOverlay",{attrs:{placement:"right",size:1200},model:{value:t.workReportShow,callback:function(s){t.workReportShow=s},expression:"workReportShow"}},[t.workReportShow?e("Report",{attrs:{reportType:t.reportTabs},on:{"on-read":function(s){return t.$store.dispatch("getReportUnread",1e3)}}}):t._e()],1),e("DrawerOverlay",{attrs:{placement:"right",size:1380},model:{value:t.allUserShow,callback:function(s){t.allUserShow=s},expression:"allUserShow"}},[t.allUserShow?e("TeamManagement"):t._e()],1),e("DrawerOverlay",{attrs:{placement:"right",size:1200},model:{value:t.allProjectShow,callback:function(s){t.allProjectShow=s},expression:"allProjectShow"}},[t.allProjectShow?e("ProjectManagement"):t._e()],1),e("DrawerOverlay",{attrs:{placement:"right",size:1200},model:{value:t.archivedProjectShow,callback:function(s){t.archivedProjectShow=s},expression:"archivedProjectShow"}},[t.archivedProjectShow?e("ProjectArchived"):t._e()],1),e("MeetingManager"),e("transition",{attrs:{name:"mobile-slide"}},[t.showMobileTabbar?e("MobileTabbar",{on:{"on-click":t.onTabbarClick}}):t._e()],1),e("MobileBack",{attrs:{showTabbar:t.showMobileTabbar}}),e("MobileNotification",{ref:"mobileNotification"})],1)},Pe=[];const Re={components:{TaskExport:Se,CheckinExport:O,TaskModal:we,DialogModal:ve,MeetingManager:he,MobileNotification:Yt,MobileBack:zt,MobileTabbar:ht,TaskAdd:vt,Report:Rt,DrawerOverlay:B,ProjectManagement:ot,TeamManagement:z,ProjectArchived:Z},directives:{longpress:V},data(){return{loadIng:0,mateName:/macintosh|mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl",addShow:!1,addData:{name:"",columns:"",flow:"open"},addRule:{name:[{required:!0,message:this.$L("\u8BF7\u586B\u5199\u9879\u76EE\u540D\u79F0\uFF01"),trigger:"change"},{type:"string",min:2,message:this.$L("\u9879\u76EE\u540D\u79F0\u81F3\u5C112\u4E2A\u5B57\uFF01"),trigger:"change"}]},addTaskShow:!1,addTaskSubscribe:null,exportTaskShow:!1,exportCheckinShow:!1,dialogMsgSubscribe:null,projectKeyValue:"",projectKeyLoading:0,projectSearchShow:!1,openMenu:{},visibleMenu:!1,show768Menu:!1,workReportShow:!1,allUserShow:!1,allProjectShow:!1,archivedProjectShow:!1,natificationReady:!1,notificationManage:null,reportTabs:"my",operateStyles:{},operateVisible:!1,operateItem:{},needStartHome:!1}},mounted(){this.chackClear(),this.notificationInit(),this.addTaskSubscribe=c.Store.subscribe("addTask",this.onAddTask),this.dialogMsgSubscribe=c.Store.subscribe("dialogMsgPush",this.addDialogMsg),document.addEventListener("keydown",this.shortcutEvent)},activated(){this.$store.dispatch("getUserInfo").catch(t=>{}),this.$store.dispatch("getTaskPriority").catch(t=>{}),this.$store.dispatch("getReportUnread",0),this.$store.dispatch("needHome").then(t=>{this.needStartHome=!0}).catch(t=>{this.needStartHome=!1})},beforeDestroy(){this.addTaskSubscribe&&(this.addTaskSubscribe.unsubscribe(),this.addTaskSubscribe=null),this.dialogMsgSubscribe&&(this.dialogMsgSubscribe.unsubscribe(),this.dialogMsgSubscribe=null),document.removeEventListener("keydown",this.shortcutEvent)},deactivated(){this.addShow=!1},computed:{...d(["userInfo","userIsAdmin","cacheUserBasic","cacheTasks","cacheDialogs","cacheProjects","projectTotal","wsOpenNum","columnTemplate","wsMsg","clientNewVersion","cacheTaskBrowse","dialogIns","reportUnreadNumber"]),...g(["dashboardTask"]),routeName(){return this.$route.name},msgUnreadMention(){let t=0,a=0;this.cacheDialogs.some(s=>{t+=$A.getDialogUnread(s,!1),a+=$A.getDialogMention(s)}),t>999&&(t="999+"),a>999&&(a="999+");const e=this.msgTodoTotal;return e?a?`@${a}\xB7${e}`:t?`${t}\xB7${e}`:e:t?a?`${t}\xB7@${a}`:String(t):a?`@${a}`:""},msgAllUnread(){let t=0;return this.cacheDialogs.some(a=>{t+=$A.getDialogNum(a)}),t},msgTodoTotal(){let t=this.cacheDialogs.reduce((a,e)=>a+(e.todo_num||0),0);return t>0?(t>99?t="99+":t===1&&(t=""),`${this.$L("\u5F85\u529E")}${t}`):null},unreadAndOverdue(){return this.userId>0?this.msgAllUnread+this.dashboardTask.overdue_count:0},menu(){const{userIsAdmin:t,needStartHome:a}=this,e=[{path:"taskBrowse",name:"\u6700\u8FD1\u6253\u5F00\u7684\u4EFB\u52A1"}];return t?e.push({path:"personal",name:"\u504F\u597D\u8BBE\u7F6E",divided:!0},{path:"system",name:"\u7CFB\u7EDF\u8BBE\u7F6E"},{path:"clearCache",name:"\u6E05\u9664\u7F13\u5B58"},{path:"version",name:"\u66F4\u65B0\u7248\u672C",divided:!0,visible:!!this.clientNewVersion},{path:"allProject",name:"\u6240\u6709\u9879\u76EE",divided:!0},{path:"archivedProject",name:"\u5DF2\u5F52\u6863\u7684\u9879\u76EE"},{path:"team",name:"\u56E2\u961F\u7BA1\u7406",divided:!0}):e.push({path:"personal",name:"\u504F\u597D\u8BBE\u7F6E",divided:!0},{path:"clearCache",name:"\u6E05\u9664\u7F13\u5B58"},{path:"version",name:"\u66F4\u65B0\u7248\u672C",divided:!0,visible:!!this.clientNewVersion},{path:"workReport",name:"\u5DE5\u4F5C\u62A5\u544A",divided:!0},{path:"archivedProject",name:"\u5DF2\u5F52\u6863\u7684\u9879\u76EE"}),a?e.push({path:"goHome",name:"\u6253\u5F00\u9996\u9875",divided:!0},{path:"logout",name:"\u9000\u51FA\u767B\u5F55",style:{color:"#f40"}}):e.push({path:"logout",name:"\u9000\u51FA\u767B\u5F55",style:{color:"#f40"},divided:!0}),e},columns(){const t=$A.cloneJSON(this.columnTemplate);return t.unshift({name:this.$L("\u7A7A\u767D\u6A21\u677F"),columns:[]}),t},projectLists(){const{projectKeyValue:t,cacheProjects:a}=this,e=$A.cloneJSON(a).sort((s,i)=>s.top_at||i.top_at?$A.Date(i.top_at)-$A.Date(s.top_at):i.id-s.id);return t?e.filter(s=>$A.strExists(`${s.name} ${s.desc}`,t)):e},listClassName(){return{"scrollbar-overlay":!0,"scrollbar-hidden":this.operateVisible===!0}},taskBrowseLists(){const{cacheTasks:t,cacheTaskBrowse:a,userId:e}=this;return a.filter(({userid:s})=>s===e).map(({id:s})=>t.find(i=>i.id===s)||{})},showMobileTabbar(){return this.routeName==="manage-project"&&!/^\d+$/.test(this.$route.params.projectId)?!0:["manage-dashboard","manage-calendar","manage-messenger","manage-file","manage-setting"].includes(this.routeName)}},watch:{$route(){this.chackPass()},userInfo(){this.chackPass()},projectKeyValue(t){t!=""&&setTimeout(()=>{this.projectKeyValue==t&&this.searchProject()},600)},wsOpenNum(t){t<=1||this.$store.dispatch("getBasicData",600)},workReportShow(t){t&&this.$store.dispatch("getReportUnread",0)},"cacheProjects.length":{handler(){this.$nextTick(t=>{const a=this.$refs.menuProject,e=$A.last($A.getObject(a,"children.0.children"));if(e){const s=e.getBoundingClientRect(),i=a.getBoundingClientRect();if(s.top>i.top+i.height){this.projectSearchShow=!0;return}}this.projectSearchShow=!1})},immediate:!0},unreadAndOverdue:{handler(t){this.$Electron&&this.$Electron.sendMessage("setDockBadge",t)},immediate:!0},wsMsg:{handler(t){const{type:a,action:e}=t;switch(a){case"report":e=="unreadUpdate"&&this.$store.dispatch("getReportUnread",1e3);break}},deep:!0}},methods:{async chackClear(){await $A.IDBString("clearCache")&&(await $A.IDBRemove("clearCache"),$A.messageSuccess("\u6E05\u9664\u6210\u529F"))},chackPass(){this.userInfo.changepass===1&&this.goForward({name:"manage-setting-password"})},async toggleRoute(t,a){this.show768Menu=!1;let e={name:"manage-"+t,params:a||{}},s=await $A.IDBInt("fileFolderId");t==="file"&&s>0&&(e.params.folderId=s),this.goForward(e)},toggleOpenMenu(t){this.$set(this.openMenu,t,!this.openMenu[t])},settingRoute(t){switch(t){case"allUser":this.allUserShow=!0;return;case"allProject":this.allProjectShow=!0;return;case"archivedProject":this.archivedProjectShow=!0;return;case"exportTask":this.exportTaskShow=!0;return;case"exportOverdueTask":this.exportOverdueTask();return;case"exportCheckin":this.exportCheckinShow=!0;return;case"workReport":this.reportUnreadNumber>0&&(this.reportTabs="receive"),this.workReportShow=!0;return;case"version":c.Store.set("updateNotification",null);return;case"clearCache":this.$store.dispatch("handleClearCache",null).then(async()=>{await $A.IDBSet("clearCache",$A.randomString(6)),$A.reloadUrl()});return;case"goHome":this.needStartHome&&this.goForward({name:"index",query:{action:"index"}});return;case"logout":$A.modalConfirm({title:"\u9000\u51FA\u767B\u5F55",content:"\u4F60\u786E\u5B9A\u8981\u767B\u51FA\u7CFB\u7EDF\uFF1F",onOk:()=>{this.$store.dispatch("logout",!1)}});return}this.menu.findIndex(a=>a.path==t)>-1&&this.toggleRoute("setting-"+t)},exportOverdueTask(){$A.modalConfirm({title:"\u5BFC\u51FA\u4EFB\u52A1",content:"\u4F60\u786E\u5B9A\u8981\u5BFC\u51FA\u6240\u6709\u8D85\u671F\u4EFB\u52A1\u5417\uFF1F",loading:!0,onOk:()=>new Promise((t,a)=>{this.$store.dispatch("call",{url:"project/task/exportoverdue"}).then(({data:e})=>{t(),this.$store.dispatch("downUrl",{url:e.url})}).catch(({msg:e})=>{a(e)})})})},menuVisibleChange(t){this.visibleMenu=t},classNameRoute(t){return{active:this.routeName===`manage-${t}`}},classNameProject(t){return{active:this.routeName==="manage-project"&&this.$route.params.projectId==t.id,"open-menu":this.openMenu[t.id]===!0,operate:t.id==this.operateItem.id&&this.operateVisible}},onAddMenu(t){switch(t){case"task":this.onAddTask(0);break;case"createMeeting":c.Store.set("addMeeting",{type:"create",userids:[this.userId]});break;case"joinMeeting":c.Store.set("addMeeting",{type:"join"});break}},onAddShow(){this.$store.dispatch("getColumnTemplate").catch(()=>{}),this.addShow=!0,this.$nextTick(()=>{this.$refs.projectName.focus()})},onAddProject(){this.$refs.addProject.validate(t=>{t&&(this.loadIng++,this.$store.dispatch("call",{url:"project/add",data:this.addData}).then(({data:a,msg:e})=>{$A.messageSuccess(e),this.addShow=!1,this.$refs.addProject.resetFields(),this.$store.dispatch("saveProject",a),this.toggleRoute("project",{projectId:a.id})}).catch(({msg:a})=>{$A.modalError(a)}).finally(a=>{this.loadIng--}))})},searchProject(){setTimeout(()=>{this.projectKeyLoading++},1e3),this.$store.dispatch("getProjects",{keys:{name:this.projectKeyValue}}).finally(t=>{this.projectKeyLoading--})},selectChange(t){this.$nextTick(()=>{this.$set(this.addData,"columns",this.columns[t].columns.join(","))})},shortcutEvent(t){(t.metaKey||t.ctrlKey)&&(t.keyCode===74?(t.preventDefault(),this.onAddMenu("createMeeting")):t.keyCode===75||t.keyCode===78?(t.preventDefault(),this.onAddMenu("task")):t.keyCode===83&&this.$refs.taskModal.checkUpdate()&&t.preventDefault())},onAddTask(t){this.addTaskShow=!0,this.$nextTick(a=>{let e={owner:[this.userId]};$A.isJson(t)?e=t:/^[1-9]\d*$/.test(t)&&(e.column_id=t),this.$refs.addTask.setData(e)})},openTask(t){this.$store.dispatch("openTask",t)},addDialogMsg(t){var k;if(!this.natificationReady&&!this.$isEEUiApp||this.windowActive&&t.dialog_id===((k=$A.last(this.dialogIns))==null?void 0:k.dialog_id))return;const{id:a,dialog_id:e,dialog_type:s,type:i,msg:o,userid:h}=t;if(h==this.userId)return;let u;switch(i){case"text":u=$A.getMsgTextPreview(o.text);break;case"file":u="["+this.$L(o.type=="img"?"\u56FE\u7247\u4FE1\u606F":"\u6587\u4EF6\u4FE1\u606F")+"]";break;default:return}this.__notificationId=a;const _=r=>{if(s==="group"){let p=this.cacheUserBasic.find(f=>f.userid==h);p?m(`${r} (${p.nickname})`):this.$store.dispatch("call",{url:"users/basic",data:{userid:[h]},checkRole:!1}).then(({data:f})=>{p=f.find(E=>E.userid==h),p&&m(`${r} (${p.nickname})`)}).catch(f=>{m(r)})}else m(r)},m=r=>{this.__notificationId===a&&(this.$isEEUiApp?this.$refs.mobileNotification.open({userid:h,title:r,desc:u,callback:()=>{this.goForward({name:"manage-messenger"}),this.$store.dispatch("openDialog",e)}}):this.$Electron?this.$Electron.sendMessage("openNotification",{icon:$A.originUrl("images/logo.png"),title:r,body:u,data:t,tag:"dialog",hasReply:!0,replyPlaceholder:this.$L("\u56DE\u590D\u6D88\u606F")}):(this.notificationManage.replaceOptions({icon:$A.originUrl("images/logo.png"),body:u,data:t,tag:"dialog"}),this.notificationManage.replaceTitle(r),this.notificationManage.userAgreed()))},$=this.cacheDialogs.find(r=>r.id==e);$?_($.name):this.$store.dispatch("getDialogOne",e).then(({data:r})=>_(r.name)).catch(()=>{})},handleLongpress(t,a){const e=$A.getAttr(a,"data-id"),s=this.projectLists.find(i=>i.id==e);!s||(this.operateVisible=!1,this.operateItem=$A.isJson(s)?s:{},this.$nextTick(()=>{const i=a.getBoundingClientRect(),o=this.$refs.menuProject.getBoundingClientRect();this.operateStyles={left:`${t.clientX-o.left}px`,top:`${i.top+this.windowScrollY}px`,height:i.height+"px"},this.operateVisible=!0}))},handleTopClick(){this.$store.dispatch("call",{url:"project/top",data:{project_id:this.operateItem.id}}).then(({data:t})=>{this.$store.dispatch("saveProject",t),this.$nextTick(()=>{const a=this.$refs.menuProject.querySelector(".active");a&&$A.scrollIntoViewIfNeeded(a)})}).catch(({msg:t})=>{$A.modalError(t)})},onTabbarClick(t){switch(t){case"addTask":this.onAddTask(0);break;case"addProject":this.onAddShow();break}},notificationInit(){this.notificationManage=new Me(this.$L("\u6253\u5F00\u901A\u77E5\u6210\u529F")),this.notificationManage.support&&(this.notificationManage.notificationEvent({onclick:({target:t})=>{console.log("[Notification] A Click",t),this.notificationManage.close(),this.notificationClick(t),window.focus()}}),this.notificationPermission()),this.$Electron&&(this.$Electron.registerMsgListener("clickNotification",t=>{console.log("[Notification] B Click",t),this.$Electron.sendMessage("mainWindowActive"),this.notificationClick(t)}),this.$Electron.registerMsgListener("replyNotification",t=>{console.log("[Notification] B Reply",t),this.notificationReply(t)}))},notificationPermission(){const t=a=>{switch(a){case"already granted":case"granted":return this.natificationReady=!0;case"close":return this.notificationManage.initNotification(t);case"denied":case"already denied":console.log(a==="denied"?"\u60A8\u521A\u521A\u62D2\u7EDD\u663E\u793A\u901A\u77E5 \u8BF7\u5728\u8BBE\u7F6E\u4E2D\u66F4\u6539\u8BBE\u7F6E":"\u60A8\u66FE\u7EA7\u62D2\u7EDD\u663E\u793A\u901A\u77E5 \u8BF7\u5728\u8BBE\u7F6E\u4E2D\u66F4\u6539\u8BBE\u7F6E");break}};this.notificationManage.initNotification(t)},notificationClick(t){const{tag:a,data:e}=t;if(a=="dialog"){if(!$A.isJson(e))return;this.goForward({name:"manage-messenger"}),this.$nextTick(s=>{this.$store.dispatch("openDialog",e.dialog_id)})}},notificationReply(t){const{tag:a,data:e,reply:s}=t;a=="dialog"&&s&&this.$store.dispatch("call",{url:"dialog/msg/sendtext",data:{dialog_id:e.dialog_id,text:s},method:"post"}).then(({data:i})=>{this.$store.dispatch("saveDialogMsg",i),this.$store.dispatch("increaseTaskMsgNum",i),this.$store.dispatch("increaseMsgReplyNum",i),this.$store.dispatch("updateDialogLastMsg",i)}).catch(({msg:i})=>{$A.modalError(i)})}}},U={};var Ue=n(Re,je,Pe,!1,Be,null,null,null);function Be(t){for(let a in U)this[a]=U[a]}var Ge=function(){return Ue.exports}();export{Ge as default}; +import{n,N,m as d,c as g,d as c}from"./app.feefc813.js";import{C as O,T as z}from"./CheckinExport.8a7d62a4.js";import{D as B}from"./index.f3f56c75.js";import F from"./TEditor.a1d21399.js";import{U as v}from"./UserInput.2bc16b15.js";import{R as W}from"./ReportEdit.4981db49.js";import{R as H}from"./ReportDetail.732d6d88.js";import{l as V}from"./DialogSelect.5d8dded5.js";import{D as K}from"./DialogWrapper.0c8b0be3.js";import{T as Y}from"./TaskDetail.e0049723.js";import"./ImgUpload.e60c7ecf.js";import"./ProjectLog.ac7d2c0b.js";import"./TaskMenu.0eaf56d7.js";var J=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"project-archived"},[e("div",{staticClass:"archived-title"},[t._v(" "+t._s(t.$L("\u5F52\u6863\u7684\u9879\u76EE"))+" "),e("div",{staticClass:"title-icon"},[t.loadIng>0?e("Loading"):t._e()],1)]),e("div",{staticClass:"search-container lr"},[e("ul",[e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u9879\u76EE\u540D"))+" ")]),e("div",{staticClass:"search-content"},[e("Input",{attrs:{clearable:""},model:{value:t.keys.name,callback:function(s){t.$set(t.keys,"name",s)},expression:"keys.name"}})],1)]),e("li",{staticClass:"search-button"},[e("Tooltip",{attrs:{theme:"light",placement:"right","transfer-class-name":"search-button-clear",transfer:""}},[e("Button",{attrs:{loading:t.loadIng>0,type:"primary",icon:"ios-search"},on:{click:t.onSearch}},[t._v(t._s(t.$L("\u641C\u7D22")))]),e("div",{attrs:{slot:"content"},slot:"content"},[t.keyIs?e("Button",{attrs:{type:"text"},on:{click:function(s){t.keyIs=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88\u7B5B\u9009")))]):e("Button",{attrs:{loading:t.loadIng>0,type:"text"},on:{click:t.getLists}},[t._v(t._s(t.$L("\u5237\u65B0")))])],1)],1)],1)])]),e("div",{staticClass:"table-page-box"},[e("Table",{attrs:{columns:t.columns,data:t.list,loading:t.loadIng>0,"no-data-text":t.$L(t.noText),stripe:""}}),e("Page",{attrs:{total:t.total,current:t.page,"page-size":t.pageSize,disabled:t.loadIng>0,simple:t.windowSmall,"page-size-opts":[10,20,30,50,100],"show-elevator":"","show-sizer":"","show-total":""},on:{"on-change":t.setPage,"on-page-size-change":t.setPageSize}})],1)])},q=[];const X={name:"ProjectArchived",data(){return{loadIng:0,keys:{},keyIs:!1,columns:[{title:"ID",key:"id",width:80,render:(t,{row:a,column:e})=>t("TableAction",{props:{column:e,align:"left"}},[t("div",a.id)])},{title:this.$L("\u9879\u76EE\u540D\u79F0"),key:"name",minWidth:200,render:(t,{row:a})=>t("AutoTip",a.name)},{title:this.$L("\u5F52\u6863\u65F6\u95F4"),key:"archived_at",width:168},{title:this.$L("\u5F52\u6863\u4EBA\u5458"),key:"archived_userid",minWidth:80,render:(t,{row:a})=>a.archived_userid?t("UserAvatar",{props:{userid:a.archived_userid,size:24,showName:!0}}):t("Tag",this.$L("\u7CFB\u7EDF\u81EA\u52A8"))},{title:this.$L("\u8D1F\u8D23\u4EBA"),minWidth:80,render:(t,{row:a})=>t("UserAvatar",{props:{showName:!0,size:22,userid:a.owner_userid}})},{title:this.$L("\u64CD\u4F5C"),align:"center",width:100,render:(t,a)=>{const e=[t("Poptip",{props:{title:this.$L("\u4F60\u786E\u5B9A\u8981\u8FD8\u539F\u5F52\u6863\u5417\uFF1F"),confirm:!0,transfer:!0,placement:"left",okText:this.$L("\u786E\u5B9A"),cancelText:this.$L("\u53D6\u6D88")},style:{fontSize:"13px",cursor:"pointer",color:"#84C56A"},on:{"on-ok":()=>{this.recovery(a.row)}}},this.$L("\u8FD8\u539F")),t("Poptip",{props:{title:this.$L("\u4F60\u786E\u5B9A\u8981\u5220\u9664\u9879\u76EE\u5417\uFF1F"),confirm:!0,transfer:!0,placement:"left",okText:this.$L("\u786E\u5B9A"),cancelText:this.$L("\u53D6\u6D88")},style:{marginLeft:"8px",fontSize:"13px",cursor:"pointer",color:"#f00"},on:{"on-ok":()=>{this.delete(a.row)}}},this.$L("\u5220\u9664"))];return t("TableAction",{props:{column:a.column}},e)}}],list:[],page:1,pageSize:20,total:0,noText:""}},mounted(){this.getLists()},watch:{keyIs(t){t||(this.keys={},this.setPage(1))}},methods:{onSearch(){this.page=1,this.getLists()},getLists(){this.loadIng++,this.keyIs=$A.objImplode(this.keys)!="",this.$store.dispatch("call",{url:"project/lists",data:{keys:this.keys,archived:"yes",page:Math.max(this.page,1),pagesize:Math.max($A.runNum(this.pageSize),10)}}).then(({data:t})=>{this.page=t.current_page,this.total=t.total,this.list=t.data,this.noText="\u6CA1\u6709\u76F8\u5173\u7684\u6570\u636E"}).catch(()=>{this.noText="\u6570\u636E\u52A0\u8F7D\u5931\u8D25"}).finally(t=>{this.loadIng--})},setPage(t){this.page=t,this.getLists()},setPageSize(t){this.page=1,this.pageSize=t,this.getLists()},recovery(t){this.list=this.list.filter(({id:a})=>a!=t.id),this.loadIng++,this.$store.dispatch("call",{url:"project/archived",data:{project_id:t.id,type:"recovery"}}).then(()=>{this.getLists(),this.$store.dispatch("getProjectOne",t.id).catch(()=>{})}).catch(({msg:a})=>{$A.modalError(a),this.getLists()}).finally(a=>{this.loadIng--})},delete(t){this.list=this.list.filter(({id:a})=>a!=t.id),this.loadIng++,this.$store.dispatch("removeProject",t.id).then(({msg:a})=>{$A.messageSuccess(a),this.getLists()}).catch(({msg:a})=>{$A.modalError(a),this.getLists()}).finally(a=>{this.loadIng--})}}},b={};var G=n(X,J,q,!1,Q,null,null,null);function Q(t){for(let a in b)this[a]=b[a]}var Z=function(){return G.exports}(),tt=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"project-management"},[e("div",{staticClass:"management-title"},[t._v(" "+t._s(t.$L("\u6240\u6709\u9879\u76EE"))+" "),e("div",{staticClass:"title-icon"},[t.loadIng>0?e("Loading"):t._e()],1)]),e("div",{staticClass:"search-container lr"},[e("ul",[e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u9879\u76EE\u540D"))+" ")]),e("div",{staticClass:"search-content"},[e("Input",{attrs:{clearable:""},model:{value:t.keys.name,callback:function(s){t.$set(t.keys,"name",s)},expression:"keys.name"}})],1)]),e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u9879\u76EE\u7C7B\u578B"))+" ")]),e("div",{staticClass:"search-content"},[e("Select",{attrs:{placeholder:t.$L("\u56E2\u961F\u9879\u76EE")},model:{value:t.keys.type,callback:function(s){t.$set(t.keys,"type",s)},expression:"keys.type"}},[e("Option",{attrs:{value:""}},[t._v(t._s(t.$L("\u56E2\u961F\u9879\u76EE")))]),e("Option",{attrs:{value:"personal"}},[t._v(t._s(t.$L("\u4E2A\u4EBA\u9879\u76EE")))]),e("Option",{attrs:{value:"all"}},[t._v(t._s(t.$L("\u5168\u90E8\u9879\u76EE")))])],1)],1)]),e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u9879\u76EE\u72B6\u6001"))+" ")]),e("div",{staticClass:"search-content"},[e("Select",{attrs:{placeholder:t.$L("\u672A\u5F52\u6863")},model:{value:t.keys.status,callback:function(s){t.$set(t.keys,"status",s)},expression:"keys.status"}},[e("Option",{attrs:{value:""}},[t._v(t._s(t.$L("\u672A\u5F52\u6863")))]),e("Option",{attrs:{value:"archived"}},[t._v(t._s(t.$L("\u5DF2\u5F52\u6863")))]),e("Option",{attrs:{value:"all"}},[t._v(t._s(t.$L("\u5168\u90E8")))])],1)],1)]),e("li",{staticClass:"search-button"},[e("Tooltip",{attrs:{theme:"light",placement:"right","transfer-class-name":"search-button-clear",transfer:""}},[e("Button",{attrs:{loading:t.loadIng>0,type:"primary",icon:"ios-search"},on:{click:t.onSearch}},[t._v(t._s(t.$L("\u641C\u7D22")))]),e("div",{attrs:{slot:"content"},slot:"content"},[t.keyIs?e("Button",{attrs:{type:"text"},on:{click:function(s){t.keyIs=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88\u7B5B\u9009")))]):e("Button",{attrs:{loading:t.loadIng>0,type:"text"},on:{click:t.getLists}},[t._v(t._s(t.$L("\u5237\u65B0")))])],1)],1)],1)])]),e("div",{staticClass:"table-page-box"},[e("Table",{attrs:{columns:t.columns,data:t.list,loading:t.loadIng>0,"no-data-text":t.$L(t.noText),stripe:""}}),e("Page",{attrs:{total:t.total,current:t.page,"page-size":t.pageSize,disabled:t.loadIng>0,simple:t.windowSmall,"page-size-opts":[10,20,30,50,100],"show-elevator":"","show-sizer":"","show-total":""},on:{"on-change":t.setPage,"on-page-size-change":t.setPageSize}})],1)])},et=[];const at={name:"ProjectManagement",data(){return{loadIng:0,keys:{},keyIs:!1,columns:[{title:"ID",key:"id",width:80,render:(t,{row:a,column:e})=>t("TableAction",{props:{column:e,align:"left"}},[t("div",a.id)])},{title:this.$L("\u9879\u76EE\u540D\u79F0"),key:"name",minWidth:100,render:(t,{row:a})=>{const e=[t("AutoTip",a.name)];return a.archived_at&&e.push(t("Tag",{props:{color:"error"}},this.$L("\u5DF2\u5F52\u6863"))),t("div",{class:"project-name"},e)}},{title:this.$L("\u9879\u76EE\u8FDB\u5EA6"),minWidth:100,render:(t,{row:a})=>{const e=[t("AutoTip",a.task_complete+"/"+a.task_num),t("Progress",{props:{percent:a.task_percent,strokeWidth:5}})];return t("div",{class:"project-percent"},e)}},{title:this.$L("\u8D1F\u8D23\u4EBA"),minWidth:80,render:(t,{row:a})=>t("UserAvatar",{props:{showName:!0,size:22,userid:a.owner_userid}})},{title:this.$L("\u521B\u5EFA\u4EBA"),minWidth:80,render:(t,{row:a})=>t("UserAvatar",{props:{showName:!0,size:22,userid:a.userid}})},{title:this.$L("\u521B\u5EFA\u65F6\u95F4"),key:"created_at",width:168}],list:[],page:1,pageSize:20,total:0,noText:""}},mounted(){this.getLists()},watch:{keyIs(t){t||(this.keys={},this.setPage(1))}},methods:{onSearch(){this.page=1,this.getLists()},getLists(){let t="team";this.keys.type=="all"?t="all":this.keys.type=="personal"&&(t="personal");let a="no";this.keys.status=="all"?a="all":this.keys.status=="archived"&&(a="yes"),this.loadIng++,this.keyIs=$A.objImplode(this.keys)!="",this.$store.dispatch("call",{url:"project/lists",data:{keys:this.keys,all:1,archived:a,type:t,page:Math.max(this.page,1),pagesize:Math.max($A.runNum(this.pageSize),10)}}).then(({data:e})=>{this.page=e.current_page,this.total=e.total,this.list=e.data,this.noText="\u6CA1\u6709\u76F8\u5173\u7684\u6570\u636E"}).catch(()=>{this.noText="\u6570\u636E\u52A0\u8F7D\u5931\u8D25"}).finally(e=>{this.loadIng--})},setPage(t){this.page=t,this.getLists()},setPageSize(t){this.page=1,this.pageSize=t,this.getLists()}}},y={};var st=n(at,tt,et,!1,it,null,null,null);function it(t){for(let a in y)this[a]=y[a]}var ot=function(){return st.exports}(),nt=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"mobile-tabbar"},[t.windowSmall?e("NetworkException",{attrs:{type:"alert"}}):t._e(),e("transition",{attrs:{name:"mobile-fade"}},[t.isMore?e("div",{staticClass:"more-mask",on:{click:function(s){return t.toggleRoute("more")}}}):t._e()]),e("transition",{attrs:{name:"mobile-slide"}},[t.isMore?e("div",{staticClass:"more-box"},[e("div",{staticClass:"tabbar-more-title"},[t._v(t._s(t.$L("\u66F4\u591A")))]),t._l(t.navMore,function(s){return e("ul",t._l(s,function(i){return e("li",{class:{active:t.activeName===i.name},on:{click:function(o){return t.toggleRoute(i.name)}}},[e("div",{staticClass:"more-item"},[e("i",{staticClass:"taskfont",domProps:{innerHTML:t._s(i.icon)}}),e("div",{staticClass:"tabbar-title"},[t._v(t._s(t.$L(i.label)))])])])}),0)})],2):t._e()]),e("ul",{staticClass:"tabbar-box"},t._l(t.navList,function(s){return e("li",{class:{active:t.activeName===s.name},on:{click:function(i){return t.toggleRoute(s.name)}}},[e("i",{staticClass:"taskfont",domProps:{innerHTML:t._s(s.icon)}}),e("div",{staticClass:"tabbar-title"},[t._v(t._s(t.$L(s.label)))]),s.name==="dashboard"?[t.dashboardTask.overdue_count>0?e("Badge",{staticClass:"tabbar-badge",attrs:{type:"error","overflow-count":999,count:t.dashboardTask.overdue_count}}):t.dashboardTask.today_count>0?e("Badge",{staticClass:"tabbar-badge",attrs:{type:"info","overflow-count":999,count:t.dashboardTask.today_count}}):t.dashboardTask.all_count>0?e("Badge",{staticClass:"tabbar-badge",attrs:{type:"primary","overflow-count":999,count:t.dashboardTask.all_count}}):t._e()]:s.name==="dialog"?[e("Badge",{staticClass:"tabbar-badge",attrs:{"overflow-count":999,text:t.msgUnreadMention}})]:t._e()],2)}),0),e("Modal",{attrs:{title:t.$L("\u626B\u7801\u767B\u5F55"),"mask-closable":!1},model:{value:t.scanLoginShow,callback:function(s){t.scanLoginShow=s},expression:"scanLoginShow"}},[e("div",{staticClass:"mobile-scan-login-box"},[e("div",{staticClass:"mobile-scan-login-title"},[t._v(t._s(t.$L("\u4F60\u597D\uFF0C\u626B\u7801\u786E\u8BA4\u767B\u5F55")))]),e("div",{staticClass:"mobile-scan-login-subtitle"},[t._v("\u300C"+t._s(t.$L("\u4E3A\u786E\u4FDD\u5E10\u53F7\u5B89\u5168\uFF0C\u8BF7\u786E\u8BA4\u662F\u672C\u4EBA\u64CD\u4F5C"))+"\u300D")])]),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(s){t.scanLoginShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88\u767B\u5F55")))]),e("Button",{attrs:{type:"primary",loading:t.scanLoginLoad},on:{click:t.scanLoginSubmit}},[t._v(t._s(t.$L("\u786E\u8BA4\u767B\u5F55")))])],1)])],1)},rt=[];const lt={name:"MobileTabbar",components:{NetworkException:N},data(){return{isMore:!1,navList:[{icon:"",name:"dashboard",label:"\u4EEA\u8868\u76D8"},{icon:"",name:"project",label:"\u9879\u76EE"},{icon:"",name:"dialog",label:"\u6D88\u606F"},{icon:"",name:"contacts",label:"\u901A\u8BAF\u5F55"},{icon:"",name:"more",label:"\u66F4\u591A"}],navMore:[[{icon:"",name:"calendar",label:"\u65E5\u5386"},{icon:"",name:"file",label:"\u6587\u4EF6"},{icon:"",name:"setting",label:"\u8BBE\u7F6E"}],[{icon:"",name:"addProject",label:"\u521B\u5EFA\u9879\u76EE"},{icon:"",name:"addTask",label:"\u6DFB\u52A0\u4EFB\u52A1"},{icon:"",name:"createMeeting",label:"\u65B0\u4F1A\u8BAE"},{icon:"",name:"joinMeeting",label:"\u52A0\u5165\u4F1A\u8BAE"}]],scanLoginShow:!1,scanLoginLoad:!1,scanLoginCode:""}},created(){$A.isEEUiApp&&this.navMore[0].splice(2,0,{icon:"",name:"scan",label:"\u626B\u4E00\u626B"})},mounted(){},beforeDestroy(){},computed:{...d(["cacheDialogs"]),...g(["dashboardTask"]),routeName(){return this.$route.name},msgUnreadMention(){let t=0,a=0;this.cacheDialogs.some(s=>{t+=$A.getDialogUnread(s,!1),a+=$A.getDialogMention(s)}),t>999&&(t="999+"),a>999&&(a="999+");const e=this.msgTodoTotal;return e?a?`@${a}\xB7${e}`:t?`${t}\xB7${e}`:e:t?a?`${t}\xB7@${a}`:String(t):a?`@${a}`:""},msgAllUnread(){let t=0;return this.cacheDialogs.some(a=>{t+=$A.getDialogNum(a)}),t},msgTodoTotal(){let t=this.cacheDialogs.reduce((a,e)=>a+(e.todo_num||0),0);return t>0?(t>999?t="999+":t===1&&(t=""),`${this.$L("\u5F85\u529E")}${t}`):null},unreadAndOverdue(){return this.userId>0?this.msgAllUnread+this.dashboardTask.overdue_count:0},activeName(){return this.isMore||["manage-calendar","manage-file","manage-setting"].includes(this.routeName)?"more":this.routeName==="manage-dashboard"?"dashboard":this.routeName==="manage-project"&&!/^\d+$/.test(this.$route.params.projectId)?"project":this.routeName==="manage-messenger"?this.$route.params.dialogAction==="contacts"?"contacts":"dialog":""}},watch:{windowActive(t){t||$A.eeuiAppSendMessage({action:"setBdageNotify",bdage:this.unreadAndOverdue})}},methods:{toggleRoute(t){this.$emit("on-click",t),t!="more"&&(this.isMore=!1);let a;switch(t){case"more":this.isMore=!this.isMore;return;case"scan":$A.eeuiAppScan(this.scanResult);return;case"addTask":case"addProject":return;case"createMeeting":c.Store.set("addMeeting",{type:"create",userids:[this.userId]});break;case"joinMeeting":c.Store.set("addMeeting",{type:"join"});break;case"project":a={name:"manage-project",params:{projectId:"all"}};break;case"dialog":a={name:"manage-messenger",params:{dialogAction:"dialog"}},this.routeName==="manage-messenger"&&c.Store.set("clickAgainDialog",!0);break;case"contacts":a={name:"manage-messenger",params:{dialogAction:"contacts"}};break;default:a={name:"manage-"+t};break}this.goForward(a)},scanResult(t){const a=(t+"").match(/^https*:\/\/(.*?)\/login\?qrcode=(.*?)$/);if(a){this.scanLoginCode=a[2],this.scanLoginShow=!0;return}/^https*:\/\//i.test(t)&&$A.eeuiAppOpenPage({pageType:"app",pageTitle:" ",url:"web.js",params:{url:t,browser:!0,showProgress:!0}})},scanLoginSubmit(){this.scanLoginLoad!==!0&&(this.scanLoginLoad=!0,this.$store.dispatch("call",{url:"users/login/qrcode",data:{type:"login",code:this.scanLoginCode}}).then(({msg:t})=>{this.scanLoginShow=!1,$A.messageSuccess(t)}).catch(({msg:t})=>{$A.messageError(t)}).finally(t=>{this.scanLoginLoad=!1}))}}},w={};var ct=n(lt,nt,rt,!1,dt,null,null,null);function dt(t){for(let a in w)this[a]=w[a]}var ht=function(){return ct.exports}(),ut=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"task-add"},[e("div",{staticClass:"head",class:{empty:t.addData.cascader.length==0,visible:t.cascaderShow}},[e("Cascader",{attrs:{data:t.cascaderData,clearable:!1,placeholder:t.$L("\u8BF7\u9009\u62E9\u9879\u76EE"),"load-data":t.cascaderLoadData,filterable:""},on:{"on-change":t.cascaderChange,"on-input-change":t.cascaderInputChange,"on-visible-change":function(s){t.cascaderShow=!t.cascaderShow}},model:{value:t.addData.cascader,callback:function(s){t.$set(t.addData,"cascader",s)},expression:"addData.cascader"}})],1),e("div",{staticClass:"task-add-form"},[e("div",{staticClass:"title"},[e("Input",{ref:"input",attrs:{type:"textarea",rows:1,autosize:{minRows:1,maxRows:8},maxlength:255,placeholder:t.$L("\u4EFB\u52A1\u63CF\u8FF0"),enterkeyhint:"done"},on:{"on-keydown":t.onKeydown},model:{value:t.addData.name,callback:function(s){t.$set(t.addData,"name",s)},expression:"addData.name"}})],1),e("div",{staticClass:"desc"},[e("TEditor",{attrs:{plugins:t.taskPlugins,options:t.taskOptions,"option-full":t.taskOptionFull,placeholder:t.$L(t.windowLarge?"\u8BE6\u7EC6\u63CF\u8FF0\uFF0C\u9009\u586B...\uFF08\u70B9\u51FB\u53F3\u952E\u4F7F\u7528\u5DE5\u5177\u680F\uFF09":"\u8BE6\u7EC6\u63CF\u8FF0\uFF0C\u9009\u586B..."),placeholderFull:t.$L("\u8BE6\u7EC6\u63CF\u8FF0..."),inline:""},model:{value:t.addData.content,callback:function(s){t.$set(t.addData,"content",s)},expression:"addData.content"}})],1),e("div",{staticClass:"advanced-option"},[e("Button",{class:{advanced:t.advanced},on:{click:function(s){t.advanced=!t.advanced}}},[t._v(t._s(t.$L("\u9AD8\u7EA7\u9009\u9879")))]),e("ul",{staticClass:"advanced-priority"},t._l(t.taskPriority,function(s,i){return e("li",{key:i},[e("ETooltip",{attrs:{disabled:t.windowSmall||t.$isEEUiApp,content:t.taskPriorityContent(s)}},[e("i",{staticClass:"taskfont",style:{color:s.color},domProps:{innerHTML:t._s(t.addData.p_name==s.name?"":"")},on:{click:function(o){return t.choosePriority(s)}}})])],1)}),0),t.taskDays>0?e("DatePicker",{attrs:{open:t.taskTimeOpen,options:t.timeOptions,placeholder:t.$L("\u9009\u62E9\u8BA1\u5212\u8303\u56F4"),format:"yyyy/MM/dd HH:mm",type:"datetimerange",placement:"bottom"},on:{"on-change":function(s){return t.taskTimeChange(t.addData.times)},"on-open-change":t.taskTimeOpenChange},model:{value:t.addData.times,callback:function(s){t.$set(t.addData,"times",s)},expression:"addData.times"}},[e("div",{staticClass:"advanced-time",on:{click:function(s){return t.taskTimeOpenChange(!t.taskTimeOpen)}}},[e("Icon",{attrs:{type:"ios-clock-outline"}}),e("em",{style:t.addData.p_color?{backgroundColor:t.addData.p_color}:{},attrs:{type:"primary"}},[t._v(t._s(t.taskDays))])],1)]):t._e()],1)]),t.advanced?e("Form",{staticClass:"task-add-advanced",attrs:{"label-width":"auto"},nativeOn:{submit:function(s){s.preventDefault()}}},[e("FormItem",{attrs:{label:t.$L("\u8BA1\u5212\u65F6\u95F4")}},[e("DatePicker",{attrs:{options:t.timeOptions,editable:!1,placeholder:t.$L("\u9009\u62E9\u8BA1\u5212\u8303\u56F4"),format:"yyyy/MM/dd HH:mm",type:"datetimerange"},on:{"on-change":function(s){return t.taskTimeChange(t.addData.times)}},model:{value:t.addData.times,callback:function(s){t.$set(t.addData,"times",s)},expression:"addData.times"}})],1),e("FormItem",{attrs:{label:t.$L("\u4EFB\u52A1\u8D1F\u8D23\u4EBA")}},[e("UserInput",{attrs:{"multiple-max":10,placeholder:t.$L("\u9009\u62E9\u4EFB\u52A1\u8D1F\u8D23\u4EBA"),"project-id":t.addData.project_id,transfer:!1},model:{value:t.addData.owner,callback:function(s){t.$set(t.addData,"owner",s)},expression:"addData.owner"}}),t.showAddAssist?e("div",{staticClass:"task-add-assist"},[e("Checkbox",{attrs:{"true-value":1,"false-value":0},model:{value:t.addData.add_assist,callback:function(s){t.$set(t.addData,"add_assist",s)},expression:"addData.add_assist"}},[t._v(t._s(t.$L("\u52A0\u5165\u4EFB\u52A1\u534F\u52A9\u4EBA\u5458\u5217\u8868")))]),e("ETooltip",{attrs:{disabled:t.windowSmall||t.$isEEUiApp,content:t.$L("\u4F60\u4E0D\u662F\u4EFB\u52A1\u8D1F\u8D23\u4EBA\u65F6\u5EFA\u8BAE\u52A0\u5165\u4EFB\u52A1\u534F\u52A9\u4EBA\u5458\u5217\u8868")}},[e("Icon",{attrs:{type:"ios-alert-outline"}})],1)],1):t._e()],1),e("div",{staticClass:"subtasks"},[t.addData.subtasks.length>0?e("div",{staticClass:"sublist"},[e("Row",[e("Col",{attrs:{span:"12"}},[t._v(t._s(t.$L("\u4EFB\u52A1\u63CF\u8FF0")))]),e("Col",{attrs:{span:"6"}},[t._v(t._s(t.$L("\u8BA1\u5212\u65F6\u95F4")))]),e("Col",{attrs:{span:"6"}},[t._v(t._s(t.$L("\u8D1F\u8D23\u4EBA")))])],1),t._l(t.addData.subtasks,function(s,i){return e("Row",{key:i},[e("Col",{attrs:{span:"12"}},[e("Input",{attrs:{maxlength:255,clearable:""},on:{"on-clear":function(o){return t.addData.subtasks.splice(i,1)}},model:{value:s.name,callback:function(o){t.$set(s,"name",o)},expression:"item.name"}})],1),e("Col",{attrs:{span:"6"}},[e("DatePicker",{attrs:{options:t.timeOptions,editable:!1,placeholder:t.$L("\u9009\u62E9\u65F6\u95F4"),format:"yyyy/MM/dd HH:mm",type:"datetimerange"},on:{"on-change":function(o){return t.taskTimeChange(s.times)}},model:{value:s.times,callback:function(o){t.$set(s,"times",o)},expression:"item.times"}})],1),e("Col",{attrs:{span:"6"}},[e("UserInput",{attrs:{"multiple-max":1,placeholder:t.$L("\u9009\u62E9\u8D1F\u8D23\u4EBA"),"project-id":t.addData.project_id,transfer:!1,"max-hidden-select":""},model:{value:s.owner,callback:function(o){t.$set(s,"owner",o)},expression:"item.owner"}})],1)],1)})],2):t._e(),e("Input",{class:["enter-input",t.subName==""?"empty":""],attrs:{type:"text",placeholder:t.$L("+ \u8F93\u5165\u5B50\u4EFB\u52A1\uFF0C\u56DE\u8F66\u6DFB\u52A0\u5B50\u4EFB\u52A1")},on:{"on-enter":t.addSubTask},model:{value:t.subName,callback:function(s){t.subName=s},expression:"subName"}})],1)],1):t._e(),e("div",{staticClass:"ivu-modal-footer"},[e("div",{staticClass:"adaption"},[e("Button",{attrs:{type:"default"},on:{click:t.close}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("ButtonGroup",{staticClass:"page-manage-add-task-button-group"},[e("Button",{attrs:{type:"primary",loading:t.loadIng>0},on:{click:t.onAdd}},[t._v(t._s(t.$L("\u6DFB\u52A0\u4EFB\u52A1")))]),e("Dropdown",{attrs:{transfer:""},on:{"on-click":function(s){return t.onAdd(!0)}}},[e("Button",{attrs:{type:"primary"}},[e("Icon",{attrs:{type:"ios-arrow-down"}})],1),e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[e("DropdownItem",{attrs:{disabled:t.loadIng>0}},[t._v(t._s(t.$L("\u63D0\u4EA4\u7EE7\u7EED\u6DFB\u52A0")))])],1)],1)],1)],1)])],1)},pt=[];const mt={name:"TaskAdd",components:{UserInput:v,TEditor:F},props:{value:{type:Boolean,default:!1}},data(){return{addData:{cascader:[],name:"",content:"",owner:[],add_assist:1,project_id:0,column_id:0,times:[],subtasks:[],p_level:0,p_name:"",p_color:""},cascaderShow:!1,cascaderData:[],cascaderValue:"",cascaderLoading:0,cascaderAlready:[],advanced:!1,subName:"",taskPlugins:["advlist autolink lists link image charmap print preview hr anchor pagebreak","searchreplace visualblocks visualchars code","insertdatetime media nonbreaking save table directionality","emoticons paste codesample","autoresize"],taskOptions:{statusbar:!1,menubar:!1,autoresize_bottom_margin:2,min_height:200,max_height:380,contextmenu:"bold italic underline forecolor backcolor | codesample | uploadImages imagePreview | preview screenload",valid_elements:"a[href|target=_blank],em,strong/b,div[align],span[style],a,br,p,img[src|alt|witdh|height],pre[class],code",toolbar:!1},taskOptionFull:{menubar:"file edit view",valid_elements:"a[href|target=_blank],em,strong/b,div[align],span[style],a,br,p,img[src|alt|witdh|height],pre[class],code",toolbar:"uploadImages | bold italic underline forecolor backcolor | codesample | preview screenload"},taskTimeOpen:!1,timeOptions:{shortcuts:$A.timeOptionShortcuts()},loadIng:0,isMounted:!1,beforeClose:[]}},async mounted(){this.initCascaderData(),await this.initProjectData(),this.$nextTick(()=>this.$refs.input.focus()),this.isMounted=!0},beforeDestroy(){this.beforeClose.some(t=>{typeof t=="function"&&t()}),this.beforeClose=[]},computed:{...d(["cacheProjects","projectId","cacheColumns","taskPriority"]),taskDays(){const{times:t}=this.addData;let a=$A.date2string(t,"Y-m-d H:i");if(a[0]&&a[1]){let e=Math.ceil(($A.Date(a[1],!0)-$A.Date(a[0],!0))/86400);if(e>0)return e}return 0},showAddAssist(){return!this.addData.owner.includes(this.userId)}},watch:{"addData.project_id"(t){t>0&&$A.IDBSave("cacheAddTaskProjectId",t)},"addData.column_id"(t){t>0&&$A.IDBSave("cacheAddTaskColumnId",t);const{project_id:a}=this.addData;a&&t?this.$set(this.addData,"cascader",[a,t]):this.$set(this.addData,"cascader",[])}},methods:{initCascaderData(){const t=$A.cloneJSON(this.cacheProjects).sort((a,e)=>a.top_at||e.top_at?$A.Date(e.top_at)-$A.Date(a.top_at):e.id-a.id);this.cascaderData=t.map(a=>{const e=this.cacheColumns.filter(({project_id:i})=>i==a.id).map(i=>({value:i.id,label:i.name})),s={value:a.id,label:a.name,children:e};return e.length==0&&(s.loading=!1),s})},async initProjectData(){let t=await $A.IDBInt("cacheAddTaskProjectId"),a=this.cacheProjects.find(({id:e})=>e==this.projectId)||this.cacheProjects.find(({id:e})=>e==t)||this.cacheProjects.find(({id:e})=>e>0);if(a){let e=await $A.IDBInt("cacheAddTaskColumnId"),s=this.cacheColumns.find(({project_id:i,id:o})=>i==a.id&&o==e)||this.cacheColumns.find(({project_id:i})=>i==a.id);s?(this.addData.project_id=s.project_id,this.addData.column_id=s.id):this.$store.dispatch("getColumns",a.id).then(()=>{s=this.cacheColumns.find(({project_id:i,id:o})=>i==a.id&&o==e)||this.cacheColumns.find(({project_id:i})=>i==a.id),s&&(this.addData.project_id=s.project_id,this.addData.column_id=s.id)}).catch(()=>{})}this.taskPriority.length>0&&this.choosePriority(this.taskPriority[0])},taskTimeChange(t){let a=$A.date2string(t,"Y-m-d H:i");a[0]&&a[1]&&$A.rightExists(a[0],"00:00")&&$A.rightExists(a[1],"00:00")&&this.$set(this.addData,"times",[a[0],a[1].replace("00:00","23:59")])},taskTimeOpenChange(t){this.taskTimeOpen=t},onKeydown(t){if(t.keyCode===13){if(t.shiftKey)return;t.preventDefault(),this.onAdd()}},addSubTask(){this.subName.trim()!==""&&(this.addData.subtasks.push({name:this.subName.trim(),owner:[this.userId],times:[]}),this.subName="")},taskPriorityContent(t){let a=$A.runNum(t.days);return a<=0?t.name+" ("+this.$L("\u65E0\u65F6\u95F4\u9650\u5236")+")":t.name+" ("+a+this.$L("\u5929")+")"},choosePriority(t){let a=new Date,e=$A.runNum(t.days);if(e>0){let s=new Date(new Date().setDate(a.getDate()+e));this.$set(this.addData,"times",$A.date2string([a,s]))}else this.$set(this.addData,"times",[]);this.$set(this.addData,"p_level",t.priority),this.$set(this.addData,"p_name",t.name),this.$set(this.addData,"p_color",t.color)},cascaderLoadData(t,a){t.loading=!0,this.$store.dispatch("getColumns",t.value).then(e=>{t.children=e.map(s=>({value:s.id,label:s.name})),t.loading=!1,a()}).catch(()=>{t.loading=!1,a()})},cascaderChange(t){t[1]&&(this.$set(this.addData,"project_id",t[0]),this.$set(this.addData,"column_id",t[1]))},cascaderInputChange(t){this.cascaderValue=t||"",this.cascaderAlready[this.cascaderValue]!==!0&&(this.cascaderAlready[this.cascaderValue]=!0,setTimeout(()=>{this.cascaderLoading++},1e3),this.$store.dispatch("getProjects",{keys:{name:this.cascaderValue},getcolumn:"yes"}).then(()=>{this.cascaderLoading--,this.initCascaderData()}).catch(()=>{this.cascaderLoading--}))},setData(t){if(!this.isMounted){this.__setData&&clearTimeout(this.__setData),this.__setData=setTimeout(a=>this.setData(t),10);return}typeof t.beforeClose!="undefined"&&(this.beforeClose.push(t.beforeClose),delete t.beforeClose),this.addData=Object.assign({},this.addData,t)},onAdd(t){if(!this.addData.name){$A.messageError("\u4EFB\u52A1\u63CF\u8FF0\u4E0D\u80FD\u4E3A\u7A7A");return}this.loadIng++,this.$store.dispatch("taskAdd",this.addData).then(({msg:a})=>{this.loadIng--,$A.messageSuccess(a),t===!0?(this.addData=Object.assign({},this.addData,{name:"",content:"",subtasks:[]}),this.$refs.input.focus()):(this.addData={cascader:[],name:"",content:"",owner:[],add_assist:1,column_id:0,times:[],subtasks:[],p_level:0,p_name:"",p_color:""},this.close())}).catch(({msg:a})=>{this.loadIng--,$A.modalError(a)})},close(){this.$emit("input",!this.value)}}},D={};var ft=n(mt,ut,pt,!1,gt,null,null,null);function gt(t){for(let a in D)this[a]=D[a]}var vt=function(){return ft.exports}(),_t=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"report-list-wrap"},[e("div",{staticClass:"search-expand"},[e("div",{staticClass:"search-container lr"},[e("ul",[e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u6C47\u62A5\u7C7B\u578B"))+" ")]),e("div",{staticClass:"search-content"},[e("Select",{attrs:{placeholder:t.$L("\u5168\u90E8")},model:{value:t.keys.type,callback:function(s){t.$set(t.keys,"type",s)},expression:"keys.type"}},t._l(t.reportTypeList,function(s){return e("Option",{key:s.value,attrs:{value:s.value}},[t._v(t._s(s.label))])}),1)],1)]),e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u6C47\u62A5\u65F6\u95F4"))+" ")]),e("div",{staticClass:"search-content"},[e("DatePicker",{attrs:{type:"daterange","split-panels":"",placeholder:t.$L("\u8BF7\u9009\u62E9\u65F6\u95F4")},model:{value:t.keys.created_at,callback:function(s){t.$set(t.keys,"created_at",s)},expression:"keys.created_at"}})],1)]),e("li",{staticClass:"search-button"},[e("Tooltip",{attrs:{theme:"light",placement:"right","transfer-class-name":"search-button-clear",transfer:""}},[e("Button",{attrs:{loading:t.loadIng>0,type:"primary",icon:"ios-search"},on:{click:t.onSearch}},[t._v(t._s(t.$L("\u641C\u7D22")))]),e("div",{attrs:{slot:"content"},slot:"content"},[t.keyIs?e("Button",{attrs:{type:"text"},on:{click:function(s){t.keyIs=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88\u7B5B\u9009")))]):e("Button",{attrs:{loading:t.loadIng>0,type:"text"},on:{click:t.getLists}},[t._v(t._s(t.$L("\u5237\u65B0")))])],1)],1)],1)])]),e("div",{staticClass:"expand-button-group"},[e("Button",{attrs:{type:"primary",icon:"md-add"},on:{click:t.addReport}},[t._v(t._s(t.$L("\u65B0\u589E\u62A5\u544A")))])],1)]),e("div",{staticClass:"table-page-box"},[e("Table",{attrs:{columns:t.columns,data:t.lists,loading:t.loadIng>0,"no-data-text":t.$L(t.noDataText),stripe:""}}),e("Page",{attrs:{total:t.listTotal,current:t.listPage,"page-size":t.listPageSize,disabled:t.loadIng>0,simple:t.windowSmall,"page-size-opts":[10,20,30,50,100],"show-elevator":"","show-sizer":"","show-total":""},on:{"on-change":t.setPage,"on-page-size-change":t.setPageSize}})],1)])},$t=[];const kt={name:"ReportMy",data(){return{loadIng:0,columns:[{title:this.$L("\u540D\u79F0"),key:"title",minWidth:120},{title:this.$L("\u7C7B\u578B"),key:"type",align:"center",width:90},{title:this.$L("\u6C47\u62A5\u65F6\u95F4"),key:"created_at",align:"center",width:180},{title:this.$L("\u6C47\u62A5\u5BF9\u8C61"),key:"receives",align:"center",width:90,render:(t,{row:a})=>{if(a.receives.length===0)return t("div","-");const e=[];return a.receives.length<=2?a.receives.some(s=>{e.push(t("UserAvatar",{props:{size:22,userid:s}}))}):(e.push(t("UserAvatar",{props:{size:22,userid:a.receives[0]}})),e.push(t("div",{class:"more-avatar"},`+${a.receives.length-1}`))),t("div",{class:"report-table-avatar"},e)}},{title:this.$L("\u64CD\u4F5C"),align:"center",width:100,minWidth:100,render:(t,{column:a,row:e})=>e.id?t("TableAction",{props:{column:a,menu:[{icon:"md-create",action:"edit"},{icon:"md-eye",action:"view"}]},on:{action:s=>{s==="edit"?this.$emit("on-edit",e.id):s==="view"&&this.$emit("on-view",e)}}}):null}],lists:[],listPage:1,listTotal:0,listPageSize:20,noDataText:"\u6570\u636E\u52A0\u8F7D\u4E2D.....",keys:{},keyIs:!1,reportTypeList:[{value:"",label:this.$L("\u5168\u90E8")},{value:"weekly",label:this.$L("\u5468\u62A5")},{value:"daily",label:this.$L("\u65E5\u62A5")}]}},mounted(){this.getLists()},watch:{keyIs(t){t||(this.keys={},this.setPage(1))}},methods:{onSearch(){this.listPage=1,this.getLists()},getLists(){this.loadIng++,this.keyIs=$A.objImplode(this.keys)!="",this.$store.dispatch("call",{url:"report/my",data:{keys:this.keys,page:Math.max(this.listPage,1),pagesize:Math.max($A.runNum(this.listPageSize),10)}}).then(({data:t})=>{this.lists=t.data,this.listTotal=t.total,this.noDataText="\u6CA1\u6709\u76F8\u5173\u7684\u6570\u636E"}).catch(({msg:t})=>{$A.messageError(t),this.noDataText="\u6570\u636E\u52A0\u8F7D\u5931\u8D25"}).finally(()=>{this.loadIng--})},setPage(t){this.listPage=t,this.getLists()},setPageSize(t){Math.max($A.runNum(this.listPageSize),10)!==t&&(this.listPageSize=t,this.getLists())},addReport(){this.$emit("on-edit",0)}}},L={};var bt=n(kt,_t,$t,!1,yt,null,null,null);function yt(t){for(let a in L)this[a]=L[a]}var wt=function(){return bt.exports}(),Dt=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"report-list-wrap"},[e("div",{staticClass:"search-container lr"},[e("ul",[e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u5173\u952E\u8BCD"))+" ")]),e("div",{staticClass:"search-content"},[e("Input",{attrs:{placeholder:t.$L("\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22"),clearable:""},model:{value:t.keys.key,callback:function(s){t.$set(t.keys,"key",s)},expression:"keys.key"}})],1)]),e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u6C47\u62A5\u7C7B\u578B"))+" ")]),e("div",{staticClass:"search-content"},[e("Select",{attrs:{placeholder:t.$L("\u5168\u90E8")},model:{value:t.keys.type,callback:function(s){t.$set(t.keys,"type",s)},expression:"keys.type"}},t._l(t.reportTypeList,function(s){return e("Option",{key:s.value,attrs:{value:s.value}},[t._v(t._s(s.label))])}),1)],1)]),e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u6C47\u62A5\u65F6\u95F4"))+" ")]),e("div",{staticClass:"search-content"},[e("DatePicker",{attrs:{type:"daterange","split-panels":"",placeholder:t.$L("\u8BF7\u9009\u62E9\u65F6\u95F4")},model:{value:t.keys.created_at,callback:function(s){t.$set(t.keys,"created_at",s)},expression:"keys.created_at"}})],1)]),e("li",{staticClass:"search-button"},[e("Tooltip",{attrs:{theme:"light",placement:"right","transfer-class-name":"search-button-clear",transfer:""}},[e("Button",{attrs:{loading:t.loadIng>0,type:"primary",icon:"ios-search"},on:{click:t.onSearch}},[t._v(t._s(t.$L("\u641C\u7D22")))]),e("div",{attrs:{slot:"content"},slot:"content"},[t.keyIs?e("Button",{attrs:{type:"text"},on:{click:function(s){t.keyIs=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88\u7B5B\u9009")))]):e("Button",{attrs:{loading:t.loadIng>0,type:"text"},on:{click:t.getLists}},[t._v(t._s(t.$L("\u5237\u65B0")))])],1)],1)],1)])]),e("div",{staticClass:"table-page-box"},[e("Table",{attrs:{columns:t.columns,data:t.lists,loading:t.loadIng>0,"no-data-text":t.$L(t.noDataText),stripe:""},on:{"on-selection-change":t.selectChange}}),e("div",{staticClass:"table-attach"},[e("div",{staticClass:"select-box"},[e("Select",{attrs:{disabled:t.selectIds.length==0,placeholder:t.$L("\u8BF7\u9009\u62E9"),transfer:""},on:{"on-change":function(s){t.groupSelect=!0}},model:{value:t.selectAction,callback:function(s){t.selectAction=s},expression:"selectAction"}},[e("Option",{attrs:{value:"read"}},[t._v(t._s(t.$L("\u6807\u8BB0\u5DF2\u8BFB")))]),e("Option",{attrs:{value:"unread"}},[t._v(t._s(t.$L("\u6807\u8BB0\u672A\u8BFB")))])],1),e("Button",{attrs:{loading:t.loadIng>0,type:"primary",disabled:t.selectAction==""||t.selectIds.length==0},on:{click:t.selectClick}},[t._v(t._s(t.$L("\u6267\u884C")))])],1),e("Page",{attrs:{total:t.listTotal,current:t.listPage,"page-size":t.listPageSize,disabled:t.loadIng>0,simple:t.windowSmall,"page-size-opts":[10,20,30,50,100],"show-elevator":"","show-sizer":"","show-total":""},on:{"on-change":t.setPage,"on-page-size-change":t.setPageSize}})],1)],1)])},Lt=[];const Tt={name:"ReportReceive",data(){return{loadIng:0,columns:[{type:"selection",width:50,align:"right"},{title:this.$L("\u6807\u9898"),key:"title",sortable:!0,minWidth:120,render:(t,{row:a})=>{let e=[];const s=a.receives_user.find(({userid:i})=>i==this.userId);return s&&s.pivot.read==0?e.push(t("Tag",{props:{color:"orange"}},this.$L("\u672A\u8BFB")),t("span",a.title)):e.push(t("span",a.title)),t("div",e)}},{title:this.$L("\u7C7B\u578B"),key:"type",sortable:!0,width:90},{title:this.$L("\u63A5\u6536\u65F6\u95F4"),key:"receive_time",align:"center",sortable:!0,width:180},{title:this.$L("\u64CD\u4F5C"),align:"center",width:90,minWidth:90,render:(t,{column:a,row:e})=>e.id?t("TableAction",{props:{column:a,menu:[{icon:"md-eye",action:"view"}]},on:{action:s=>{if(s==="view"){this.$emit("on-view",e);const i=e.receives_user.find(({userid:o})=>o==this.userId);i&&this.$set(i.pivot,"read",1)}}}}):null}],lists:[],listPage:1,listTotal:0,listPageSize:20,noDataText:"\u6570\u636E\u52A0\u8F7D\u4E2D.....",keys:{},keyIs:!1,selectIds:[],selectAction:"",reportTypeList:[{value:"",label:this.$L("\u5168\u90E8")},{value:"weekly",label:this.$L("\u5468\u62A5")},{value:"daily",label:this.$L("\u65E5\u62A5")}]}},mounted(){this.getLists()},watch:{keyIs(t){t||(this.keys={},this.setPage(1))}},methods:{onSearch(){this.listPage=1,this.getLists()},getLists(){this.loadIng++,this.keyIs=$A.objImplode(this.keys)!="",this.$store.dispatch("call",{url:"report/receive",data:{keys:this.keys,page:Math.max(this.listPage,1),pagesize:Math.max($A.runNum(this.listPageSize),10)}}).then(({data:t})=>{this.lists=t.data,this.listTotal=t.total,this.noDataText="\u6CA1\u6709\u76F8\u5173\u7684\u6570\u636E"}).catch(({msg:t})=>{$A.messageError(t),this.noDataText="\u6570\u636E\u52A0\u8F7D\u5931\u8D25"}).finally(()=>{this.loadIng--})},setPage(t){this.listPage=t,this.getLists()},setPageSize(t){Math.max($A.runNum(this.listPageSize),10)!==t&&(this.listPageSize=t,this.getLists())},selectChange(t){this.selectIds=t.map(({id:a})=>a)},selectClick(){if(this.selectIds.length===0){$A.messageWarning("\u8BF7\u9009\u62E9\u7EBF\u8DEF");return}switch(this.selectAction){case"read":case"unread":this.readReport(this.selectIds,this.selectAction);break;default:$A.messageWarning("\u8BF7\u9009\u62E9\u6267\u884C\u65B9\u5F0F");break}},readReport(t,a){const e=a==="read"?"\u6807\u8BB0\u5DF2\u8BFB":"\u6807\u8BB0\u672A\u8BFB";$A.modalConfirm({content:`\u4F60\u786E\u5B9A\u8981\u3010${e}\u3011\u5417\uFF1F`,cancelText:"\u53D6\u6D88",okText:"\u786E\u5B9A",loading:!0,onOk:()=>new Promise((s,i)=>{this.$store.dispatch("call",{url:"report/mark",data:{id:t,action:a}}).then(({msg:o})=>{s(o),this.getLists(),this.$emit("on-read")}).catch(({msg:o})=>{i(o)})})})}}},T={};var Ct=n(Tt,Dt,Lt,!1,xt,null,null,null);function xt(t){for(let a in T)this[a]=T[a]}var St=function(){return Ct.exports}(),It=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"report"},[e("Tabs",{model:{value:t.reportTabs,callback:function(s){t.reportTabs=s},expression:"reportTabs"}},[e("TabPane",{attrs:{label:t.$L("\u6211\u7684\u6C47\u62A5"),name:"my"}},[t.reportTabs==="my"?e("ReportMy",{ref:"report",on:{"on-view":t.onView,"on-edit":t.onEditReport}}):t._e()],1),e("TabPane",{attrs:{label:t.tabRebder(t.reportUnreadNumber),name:"receive"}},[t.reportTabs==="receive"?e("ReportReceive",{on:{"on-view":t.onView,"on-read":t.onRead}}):t._e()],1)],1),e("DrawerOverlay",{attrs:{placement:"right",size:950,transfer:""},model:{value:t.showDetailDrawer,callback:function(s){t.showDetailDrawer=s},expression:"showDetailDrawer"}},[t.showDetailDrawer?e("ReportDetail",{attrs:{data:t.detailData}}):t._e()],1),e("DrawerOverlay",{attrs:{placement:"right",size:1e3,transfer:""},model:{value:t.showEditDrawer,callback:function(s){t.showEditDrawer=s},expression:"showEditDrawer"}},[t.showEditDrawer?e("ReportEdit",{attrs:{id:t.reportId},on:{saveSuccess:t.saveSuccess}}):t._e()],1)],1)},At=[];const Mt={name:"Report",components:{DrawerOverlay:B,ReportEdit:W,ReportMy:wt,ReportReceive:St,ReportDetail:H},props:{reportType:{default:"my"}},data(){return{reportTabs:"my",showDetailDrawer:!1,showEditDrawer:!1,detailData:{},reportId:0}},mounted(){this.reportTabs=this.reportType,this.$isMainElectron&&this.$Electron.listenerOnly("reportSaveSuccess",({data:t,msg:a})=>{$A.messageSuccess(a),this.saveSuccess(t)})},computed:{...d(["reportUnreadNumber"])},methods:{tabRebder(t){return a=>t>0?a("div",[a("span",{class:"navbar-item-content"},this.$L("\u6536\u5230\u7684\u6C47\u62A5")),a("Badge",{class:"manage-box-report",props:{count:t}})]):a("div",[a("span",{class:"navbar-item-content"},this.$L("\u6536\u5230\u7684\u6C47\u62A5"))])},onView(t){if(this.detailData=t,this.$emit("on-read"),this.$Electron){let a={title:t.title,titleFixed:!0,parent:null,width:Math.min(window.screen.availWidth,1440),height:Math.min(window.screen.availHeight,900)};this.$Electron.sendMessage("windowRouter",{name:`report-detail-${t.id}`,path:`/single/report/detail/${t.id}`,force:!1,config:a})}else this.showDetailDrawer=!0},onRead(){this.$emit("on-read",0)},onEditReport(t){if(this.$Electron){let a={title:this.$L(t>0?"\u4FEE\u6539\u62A5\u544A":"\u65B0\u589E\u62A5\u544A"),parent:null,width:Math.min(window.screen.availWidth,1440),height:Math.min(window.screen.availHeight,900)};this.$Electron.sendMessage("windowRouter",{name:`report-edit-${t}`,path:`/single/report/edit/${t}`,force:!1,config:a})}else this.reportId=t,this.showEditDrawer=!0},saveSuccess(){this.reportId=0,this.reportTabs="my",this.showEditDrawer=!1,this.$refs.report&&this.$refs.report.getLists()}}},C={};var jt=n(Mt,It,At,!1,Pt,null,null,null);function Pt(t){for(let a in C)this[a]=C[a]}var Rt=function(){return jt.exports}(),Ut=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"mobile-back"},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.windowScrollY>0,expression:"windowScrollY > 0"}],ref:"bar",staticClass:"back-bar"}),t.show?e("div",{staticClass:"back-semicircle",style:t.style}):t._e()])},Bt=[];const Et={name:"MobileBack",props:{showTabbar:{type:Boolean,default:!1}},data(){return{show:!1,x:0,y:0}},created(){this.appAndroidEvents()},mounted(){this.$refs.bar.addEventListener("touchmove",this.barListener),document.addEventListener("touchstart",this.touchstart),document.addEventListener("touchmove",this.touchmove),document.addEventListener("touchend",this.touchend)},beforeDestroy(){this.$refs.bar.removeEventListener("touchmove",this.barListener),document.removeEventListener("touchstart",this.touchstart),document.removeEventListener("touchmove",this.touchmove),document.removeEventListener("touchend",this.touchend)},computed:{...d(["fileLists"]),style(){const a=Math.max(135,this.y)+this.windowScrollY,e=this.windowHeight-135;return{top:Math.min(a,e)+"px",left:this.x>20?0:"-50px"}},routeName(){return this.$route.name},fileFolderId(){const{folderId:t}=this.$route.params;return parseInt(/^\d+$/.test(t)?t:0)}},watch:{show(t){t?document.body.classList.add("touch-back"):document.body.classList.remove("touch-back"),this.$store.state.touchBackInProgress=t}},methods:{getXY(t){let a=t.touches[0];this.x=a.clientX,this.y=a.clientY},barListener(t){t.preventDefault()},touchstart(t){this.getXY(t),this.show=this.canBack()&&this.x<20},touchmove(t){this.show&&this.getXY(t)},touchend(){this.x>90&&this.show&&this.onBack(),this.x=0,this.show=!1},canBack(){return!this.showTabbar||this.$Modal.visibles().length>0||this.fileFolderId>0},onBack(){if(!this.$Modal.removeLast()){if(this.fileFolderId>0){const t=this.fileLists.find(({id:a,permission:e})=>a==this.fileFolderId&&e>-1);if(t){const a=this.fileLists.find(({id:e,permission:s})=>e==t.pid&&s>-1);if(a){this.goForward({name:"manage-file",params:{folderId:a.id,fileId:null}});return}}this.goForward({name:"manage-file"});return}this.goBack()}},appAndroidEvents(){this.$isEEUiApp&&$A.isAndroid()&&$A.eeuiAppSetPageBackPressed({pageName:"firstPage"},t=>{this.canBack()?this.onBack():$A.eeuiAppGoDesktop()})}}},x={};var Nt=n(Et,Ut,Bt,!1,Ot,null,null,null);function Ot(t){for(let a in x)this[a]=x[a]}var zt=function(){return Nt.exports}(),Ft=function(){var t=this,a=t.$createElement,e=t._self._c||a;return t.show&&t.userid>0?e("transition",{attrs:{name:"mobile-notify"}},[e("div",{staticClass:"mobile-notification",class:{show:t.show},on:{click:function(s){return s.stopPropagation(),t.onClick.apply(null,arguments)},touchstart:t.onTouchstart,touchmove:t.onTouchmove}},[e("UserAvatar",{attrs:{userid:t.userid,size:40,"show-name":"","name-text":t.title}}),e("div",{staticClass:"notification-desc"},[t._v(t._s(t.desc))])],1)]):t._e()},Wt=[];const Ht={name:"MobileNotification",data(){return{userid:0,title:"",desc:"",duration:6e3,callback:null,show:!1,timer:null,startY:0}},beforeDestroy(){this.timer&&clearTimeout(this.timer),this.show=!1},methods:{open(t){!$A.isJson(t)||(this.userid=t.userid||0,this.title=t.title||"",this.desc=t.desc||"",this.duration=typeof t.duration=="number"?t.duration:6e3,this.callback=typeof t.callback=="function"?t.callback:null,this.show=!0,this.timer&&clearTimeout(this.timer),this.duration>0&&(this.timer=setTimeout(this.close,this.duration)),$A.eeuiAppSendMessage({action:"setVibrate"}))},close(){this.show=!1},onClick(){this.close(),typeof this.callback=="function"&&this.callback()},onTouchstart(t){this.startY=t.touches[0].clientY},onTouchmove(t){this.startY>0&&this.startY-t.touches[0].clientY>10&&(this.startY=0,this.close())}}},S={};var Vt=n(Ht,Ft,Wt,!1,Kt,null,null,null);function Kt(t){for(let a in S)this[a]=S[a]}var Yt=function(){return Vt.exports}(),Jt=function(){var t=this,a=t.$createElement,e=t._self._c||a;return t.userid?e("div",{staticClass:"meeting-player"},[e("div",{staticClass:"player",style:t.playerStyle,attrs:{id:t.id}}),e("UserAvatar",{attrs:{userid:t.userid,size:36,borderWitdh:2}}),e("div",{staticClass:"player-state"},[t.audio?t._e():e("i",{staticClass:"taskfont"},[t._v("\uE7C7")]),t.video?t._e():e("i",{staticClass:"taskfont"},[t._v("\uE7C8")])])],1):t._e()},qt=[];const Xt={name:"MeetingPlayer",props:{id:{type:String,default:()=>"meeting-player-"+Math.round(Math.random()*1e4)},player:{type:Object,default:()=>({})},isLocal:{type:Boolean,default:!1}},data(){return{timer:null}},mounted(){this.timer=setInterval(t=>{this.audio&&!this.player.audioTrack.isPlaying&&this.play("audio"),this.video&&!this.player.videoTrack.isPlaying&&this.play("video")},3e3)},beforeDestroy(){clearInterval(this.timer)},computed:{...d(["cacheUserBasic"]),userid(){return this.player.uid?parseInt($A.getMiddle(this.player.uid,null,"-")):0},playerStyle(){const t=this.cacheUserBasic.find(({userid:a})=>a==this.userid);return t?{backgroundImage:`url("${t.userimg}")`}:null},audio(){return!!this.player.audioTrack},video(){return!!this.player.videoTrack}},watch:{audio:{handler(t){this.isLocal||!t||this.play("audio")},immediate:!0},video:{handler(t){!t||this.play("video")},immediate:!0}},methods:{play(t){this.$nextTick(a=>{try{t==="audio"?this.player.audioTrack.play():t==="video"&&this.player.videoTrack.play(this.id)}catch(e){console.log("Meeting Player Error",e)}})}}},I={};var Gt=n(Xt,Jt,qt,!1,Qt,null,null,null);function Qt(t){for(let a in I)this[a]=I[a]}var Zt=function(){return Gt.exports}(),te=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{ref:"floatDrag",style:t.dragStyle,on:{mousedown:function(s){return s.stopPropagation(),s.preventDefault(),t.mouseDown.apply(null,arguments)}}},[t._t("default")],2)},ee=[];const ae={name:"DragBallComponent",props:{id:{type:String,default:""},distanceRight:{type:Number,default:0},distanceBottom:{type:Number,default:100},isScrollHidden:{type:Boolean,default:!1},isCanDraggable:{type:Boolean,default:!0},zIndex:{type:Number,default:50}},data(){return{clientWidth:null,clientHeight:null,top:0,left:0,timer:null,currentTop:0,isMoving:!1,record:{}}},created(){this.clientWidth=document.documentElement.clientWidth,this.clientHeight=document.documentElement.clientHeight},mounted(){this.id&&($A.isJson(window._DragBallComponent)||(window._DragBallComponent={})),this.isCanDraggable&&this.$nextTick(()=>{this.id&&$A.isJson(window._DragBallComponent[this.id])?(this.left=window._DragBallComponent[this.id].left,this.top=window._DragBallComponent[this.id].top):(this.left=this.clientWidth-this.floatDrag.offsetWidth-this.distanceRight,this.top=this.clientHeight-this.floatDrag.offsetHeight-this.distanceBottom),this.initDraggable()}),this.isScrollHidden&&window.addEventListener("scroll",this.handleScroll),window.addEventListener("resize",this.handleResize)},beforeDestroy(){this.id&&(window._DragBallComponent[this.id]={left:this.left,top:this.top}),window.removeEventListener("scroll",this.handleScroll),window.removeEventListener("resize",this.handleResize)},computed:{dragStyle(){return{left:this.left+"px",top:this.top+"px",zIndex:this.zIndex,position:"fixed"}},floatDrag(){return this.$refs.floatDrag}},methods:{handleScroll(){this.timer&&clearTimeout(this.timer),this.timer=setTimeout(()=>{this.handleScrollEnd()},200),this.currentTop=document.documentElement.scrollTop||document.body.scrollTop,this.left>this.clientWidth/2?this.left=this.clientWidth+this.floatDrag.offsetWidth:this.left=-this.floatDrag.offsetWidth},handleScrollEnd(){(document.documentElement.scrollTop||document.body.scrollTop)===this.currentTop&&(this.left>this.clientWidth/2?this.left=this.clientWidth-this.floatDrag.offsetWidth:this.left=0,clearTimeout(this.timer))},handleResize(){this.clientWidth=document.documentElement.clientWidth,this.clientHeight=document.documentElement.clientHeight,this.$nextTick(this.checkDraggablePosition)},initDraggable(){this.floatDrag.addEventListener("touchstart",this.toucheStart),this.floatDrag.addEventListener("touchmove",this.touchMove),this.floatDrag.addEventListener("touchend",this.touchEnd)},mouseDown(t){this.record={time:new Date().getTime(),top:this.floatDrag.offsetTop,left:this.floatDrag.offsetLeft,x:t.clientX-this.floatDrag.offsetLeft,y:t.clientY-this.floatDrag.offsetTop},this.floatDrag.style.transition="none",this.canClick=!1,document.onmousemove=a=>{let e=a.clientX-this.record.x,s=a.clientY-this.record.y;e<0?e=0:e>window.innerWidth-this.floatDrag.offsetWidth&&(e=window.innerWidth-this.floatDrag.offsetWidth),s<0?s=0:s>window.innerHeight-this.floatDrag.offsetHeight&&(s=window.innerHeight-this.floatDrag.offsetHeight),this.left=e,this.top=s},document.onmouseup=()=>{document.onmousemove=null,document.onmouseup=null,this.checkDraggablePosition(),this.floatDrag.style.transition="all 0.3s",(Math.abs(this.record.top-this.floatDrag.offsetTop)<5&&Math.abs(this.record.left-this.floatDrag.offsetLeft)<5||new Date().getTime()-this.record.time<200)&&this.$emit("on-click")}},toucheStart(){this.canClick=!1,this.floatDrag.style.transition="none"},touchMove(t){if(this.canClick=!0,t.targetTouches.length===1){let a=event.targetTouches[0],e=a.clientX-this.floatDrag.offsetWidth/2,s=a.clientY-this.floatDrag.offsetHeight/2;e<0?e=0:e>window.innerWidth-this.floatDrag.offsetWidth&&(e=window.innerWidth-this.floatDrag.offsetWidth),s<0?s=0:s>window.innerHeight-this.floatDrag.offsetHeight&&(s=window.innerHeight-this.floatDrag.offsetHeight),this.left=e,this.top=s}},touchEnd(){!this.canClick||(this.floatDrag.style.transition="all 0.3s",this.checkDraggablePosition())},checkDraggablePosition(){this.left+this.floatDrag.offsetWidth/2>=this.clientWidth/2?this.left=this.clientWidth-this.floatDrag.offsetWidth:this.left=0,this.top<0&&(this.top=0),this.top+this.floatDrag.offsetHeight>=this.clientHeight&&(this.top=this.clientHeight-this.floatDrag.offsetHeight)}}},A={};var se=n(ae,te,ee,!1,ie,null,null,null);function ie(t){for(let a in A)this[a]=A[a]}var oe=function(){return se.exports}(),ne=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"meeting-warp"},[e("Modal",{attrs:{title:t.$L(t.addData.type==="join"?"\u52A0\u5165\u4F1A\u8BAE":"\u65B0\u4F1A\u8BAE"),"mask-closable":!1},model:{value:t.addShow,callback:function(s){t.addShow=s},expression:"addShow"}},[e("Form",{ref:"addForm",attrs:{model:t.addData,"label-width":"auto"},nativeOn:{submit:function(s){s.preventDefault()}}},[t.addData.type==="join"?[t.addData.name?e("FormItem",{attrs:{prop:"userids",label:t.$L("\u4F1A\u8BAE\u4E3B\u9898")}},[e("Input",{attrs:{disabled:""},model:{value:t.addData.name,callback:function(s){t.$set(t.addData,"name",s)},expression:"addData.name"}})],1):t._e(),e("FormItem",{attrs:{prop:"meetingid",label:t.$L("\u4F1A\u8BAE\u9891\u9053ID")}},[e("Input",{attrs:{disabled:t.addData.meetingdisabled===!0,placeholder:t.$L("\u8BF7\u8F93\u5165\u4F1A\u8BAE\u9891\u9053ID")},model:{value:t.addData.meetingid,callback:function(s){t.$set(t.addData,"meetingid",s)},expression:"addData.meetingid"}})],1)]:[e("FormItem",{attrs:{prop:"name",label:t.$L("\u4F1A\u8BAE\u4E3B\u9898")}},[e("Input",{attrs:{maxlength:50,placeholder:t.$L("\u9009\u586B")},model:{value:t.addData.name,callback:function(s){t.$set(t.addData,"name",s)},expression:"addData.name"}})],1),e("FormItem",{attrs:{prop:"userids",label:t.$L("\u9080\u8BF7\u6210\u5458")}},[e("UserInput",{attrs:{uncancelable:[t.userId],"multiple-max":20,placeholder:t.$L("\u9009\u62E9\u9080\u8BF7\u6210\u5458")},model:{value:t.addData.userids,callback:function(s){t.$set(t.addData,"userids",s)},expression:"addData.userids"}})],1)],e("FormItem",{attrs:{prop:"tracks"}},[e("CheckboxGroup",{model:{value:t.addData.tracks,callback:function(s){t.$set(t.addData,"tracks",s)},expression:"addData.tracks"}},[e("Checkbox",{attrs:{label:"audio"}},[e("span",[t._v(t._s(t.$L("\u9EA6\u514B\u98CE")))])]),e("Checkbox",{attrs:{label:"video"}},[e("span",[t._v(t._s(t.$L("\u6444\u50CF\u5934")))])])],1)],1)],2),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(s){t.addShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.loadIng>0},on:{click:t.onSubmit}},[t._v(t._s(t.$L(t.addData.type==="join"?"\u52A0\u5165\u4F1A\u8BAE":"\u5F00\u59CB\u4F1A\u8BAE")))])],1)],1),e("Modal",{attrs:{title:t.addData.name,mask:!1,"mask-closable":!1,closable:!1,"transition-names":["",""],beforeClose:t.onClose,"class-name":`meeting-manager${t.meetingMini?" meeting-hidden":""}`,fullscreen:""},model:{value:t.meetingShow,callback:function(s){t.meetingShow=s},expression:"meetingShow"}},[e("ul",[t.localUser.uid?e("li",[e("MeetingPlayer",{attrs:{player:t.localUser,isLocal:""}})],1):t._e(),t._l(t.remoteUsers,function(s){return e("li",[e("MeetingPlayer",{attrs:{player:s}})],1)})],2),e("div",{staticClass:"adaption meeting-button-group",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"primary",loading:t.audioLoad},on:{click:t.onAudio}},[e("i",{staticClass:"taskfont",domProps:{innerHTML:t._s(t.localUser.audioTrack?"":"")}})]),e("Button",{attrs:{type:"primary",loading:t.videoLoad},on:{click:t.onVideo}},[e("i",{staticClass:"taskfont",domProps:{innerHTML:t._s(t.localUser.videoTrack?"":"")}})]),t.windowSmall?[e("Button",{attrs:{type:"primary"},on:{click:function(s){return t.onInvitation("open")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE646")])]),e("Button",{attrs:{type:"primary"},on:{click:function(s){t.meetingMini=!0}}},[e("i",{staticClass:"taskfont"},[t._v("\uE656")])]),e("Button",{attrs:{type:"warning",loading:t.loadIng>0},on:{click:t.onClose}},[e("i",{staticClass:"taskfont"},[t._v("\uE612")])])]:[e("Button",{attrs:{type:"primary"},on:{click:function(s){return t.onInvitation("open")}}},[t._v(t._s(t.$L("\u9080\u8BF7")))]),e("Button",{attrs:{type:"primary"},on:{click:function(s){t.meetingMini=!0}}},[t._v(t._s(t.$L("\u6700\u5C0F\u5316")))]),e("Button",{attrs:{type:"warning",loading:t.loadIng>0},on:{click:t.onClose}},[t._v(t._s(t.$L("\u79BB\u5F00\u4F1A\u8BAE")))])]],2)]),t.meetingMini?e("DragBallComponent",{attrs:{id:"meetingDragBall","z-index":3e3},on:{"on-click":function(s){t.meetingMini=!1}}},[e("div",{staticClass:"meeting-drag-ball"},[e("i",{staticClass:"taskfont",domProps:{innerHTML:t._s(t.localUser.audioTrack?"":"")}}),e("i",{staticClass:"taskfont",domProps:{innerHTML:t._s(t.localUser.videoTrack?"":"")}}),e("em",[t._v(t._s(t.$L("\u4F1A\u8BAE\u4E2D")))])])]):t._e(),e("Modal",{attrs:{title:t.$L("\u9080\u8BF7\u52A0\u5165"),"mask-closable":!1},model:{value:t.invitationShow,callback:function(s){t.invitationShow=s},expression:"invitationShow"}},[e("Form",{ref:"invitationForm",attrs:{model:t.invitationData,"label-width":"auto"},nativeOn:{submit:function(s){s.preventDefault()}}},[e("FormItem",{attrs:{prop:"userids",label:t.$L("\u9080\u8BF7\u6210\u5458")}},[e("UserInput",{attrs:{"multiple-max":20,placeholder:t.$L("\u9009\u62E9\u9080\u8BF7\u6210\u5458")},model:{value:t.invitationData.userids,callback:function(s){t.$set(t.invitationData,"userids",s)},expression:"invitationData.userids"}})],1)],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(s){t.invitationShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.invitationLoad},on:{click:function(s){return t.onInvitation("submit")}}},[t._v(t._s(t.$L("\u53D1\u9001\u9080\u8BF7")))])],1)],1)],1)},re=[];const le={name:"MeetingManager",components:{DragBallComponent:oe,MeetingPlayer:Zt,UserInput:v},data(){return{loadIng:0,subscribe:null,addShow:!1,addData:{userids:[],tracks:["audio"]},invitationShow:!1,invitationLoad:!1,invitationData:{userids:[]},meetingShow:!1,meetingMini:!1,audioLoad:!1,videoLoad:!1,agoraClient:null,remoteUsers:[],localUser:{uid:null,audioTrack:null,videoTrack:null}}},mounted(){this.subscribe=c.Store.subscribe("addMeeting",this.onAdd)},beforeDestroy(){this.subscribe&&(this.subscribe.unsubscribe(),this.subscribe=null)},watch:{meetingShow(t){t?$A.eeuiAppKeepScreenOn():$A.eeuiAppKeepScreenOff()}},methods:{onAdd(t){t=$A.isJson(t)?t:{},/^\d+$/.test(t.dialog_id)&&(this.loadIng++,this.$store.dispatch("call",{url:"dialog/user",data:{dialog_id:t.dialog_id}}).then(({data:a})=>{this.$set(this.addData,"userids",a.map(e=>e.userid))}).finally(a=>{this.loadIng--}),delete t.dialog_id),$A.isArray(t.userids)?t.userids.includes(this.userId)||t.userids.push(this.userId):t.userids=[this.userId],$A.isArray(t.tracks)?t.tracks.includes("audio")||t.tracks.push("audio"):t.tracks=["audio"],this.addData=t,this.addShow=!0},onSubmit(){this.$refs.addForm.validate(t=>{t&&(this.loadIng++,this.$store.dispatch("call",{url:"users/meeting/open",data:this.addData}).then(({data:a})=>{this.$set(this.addData,"name",a.name),this.$set(this.addData,"meetingid",a.meetingid),this.$store.dispatch("saveDialogMsg",a.msgs),this.$store.dispatch("updateDialogLastMsg",a.msgs),delete a.name,delete a.msgs,$A.loadScript("js/AgoraRTC_N-4.14.2.js",e=>{e!==null||typeof AgoraRTC!="object"?$A.modalError("\u4F1A\u8BAE\u7EC4\u4EF6\u52A0\u8F7D\u5931\u8D25\uFF01"):this.join(a),this.loadIng--})}).catch(({msg:a})=>{this.loadIng--,$A.modalError(a)}))})},onAudio(){this.localUser.audioTrack?this.closeAudio():this.openAudio()},onVideo(){this.localUser.videoTrack?this.closeVideo():this.openVideo()},onInvitation(t){t==="open"?(this.invitationData={userids:[],meetingid:this.addData.meetingid},this.invitationShow=!0):t==="submit"&&(this.invitationLoad=!0,this.$store.dispatch("call",{url:"users/meeting/invitation",data:this.invitationData}).then(({data:a,msg:e})=>{this.invitationShow=!1,this.$store.dispatch("saveDialogMsg",a.msgs),this.$store.dispatch("updateDialogLastMsg",a.msgs),$A.messageSuccess(e)}).catch(({msg:a})=>{$A.modalError(a)}).finally(a=>{this.invitationLoad=!1}))},onClose(){return new Promise(t=>{$A.modalConfirm({content:"\u786E\u5B9A\u8981\u79BB\u5F00\u4F1A\u8BAE\u5417\uFF1F",cancelText:"\u7EE7\u7EED",okText:"\u9000\u51FA",onOk:async a=>{await this.leave(),t()}})})},async join(t){this.loadIng++,AgoraRTC.onMicrophoneChanged=async e=>{if(e.state==="ACTIVE")this.localUser.audioTrack.setDevice(e.device.deviceId);else if(e.device.label===this.localUser.audioTrack.getTrackLabel()){const s=await AgoraRTC.getMicrophones();s[0]&&this.localUser.audioTrack.setDevice(s[0].deviceId)}},AgoraRTC.onCameraChanged=async e=>{if(e.state==="ACTIVE")this.localUser.videoTrack.setDevice(e.device.deviceId);else if(e.device.label===this.localUser.videoTrack.getTrackLabel()){const s=await AgoraRTC.getCameras();s[0]&&this.localUser.videoTrack.setDevice(s[0].deviceId)}},AgoraRTC.onAutoplayFailed=()=>{},this.agoraClient=AgoraRTC.createClient({mode:"rtc",codec:"vp8"}),this.agoraClient.on("user-joined",this.handleUserJoined),this.agoraClient.on("user-left",this.handleUserLeft),this.agoraClient.on("user-published",this.handleUserPublished),this.agoraClient.on("user-unpublished",this.handleUserUnpublished);const a=[];this.localUser.uid=await this.agoraClient.join(t.appid,t.channel,t.token,t.uid),this.addData.tracks.includes("audio")&&a.push(this.localUser.audioTrack=await AgoraRTC.createMicrophoneAudioTrack()),this.addData.tracks.includes("video")&&a.push(this.localUser.videoTrack=await AgoraRTC.createCameraVideoTrack()),a.length>0&&await this.agoraClient.publish(a),this.loadIng--,this.addShow=!1,this.meetingShow=!0},async leave(){this.loadIng++,["audioTrack","videoTrack"].some(t=>{var a,e;(a=this.localUser[t])==null||a.stop(),(e=this.localUser[t])==null||e.close()}),this.localUser={uid:null,audioTrack:null,videoTrack:null},this.remoteUsers=[],await this.agoraClient.leave(),this.loadIng--,this.meetingShow=!1},async openAudio(){this.audioLoad||this.localUser.audioTrack||(this.audioLoad=!0,this.localUser.audioTrack=await AgoraRTC.createMicrophoneAudioTrack(),await this.agoraClient.publish([this.localUser.audioTrack]),this.audioLoad=!1)},async closeAudio(){this.audioLoad||!this.localUser.audioTrack||(this.audioLoad=!0,await this.agoraClient.unpublish([this.localUser.audioTrack]),this.localUser.audioTrack.stop(),this.localUser.audioTrack.close(),this.localUser.audioTrack=null,this.audioLoad=!1)},async openVideo(){this.videoLoad||this.localUser.videoTrack||(this.videoLoad=!0,this.localUser.videoTrack=await AgoraRTC.createCameraVideoTrack(),await this.agoraClient.publish([this.localUser.videoTrack]),this.videoLoad=!1)},async closeVideo(){this.videoLoad||!this.localUser.videoTrack||(this.videoLoad=!0,await this.agoraClient.unpublish([this.localUser.videoTrack]),this.localUser.videoTrack.stop(),this.localUser.videoTrack.close(),this.localUser.videoTrack=null,this.videoLoad=!1)},async handleUserJoined(t){const a=this.remoteUsers.findIndex(e=>e.uid==t.uid);a>-1?this.remoteUsers.splice(a,1,t):this.remoteUsers.push(t)},async handleUserLeft(t){const a=this.remoteUsers.findIndex(e=>e.uid==t.uid);a>-1&&this.remoteUsers.splice(a,1)},async handleUserPublished(t,a){this.remoteUsers.find(s=>s.uid==t.uid)&&await this.agoraClient.subscribe(t,a)},async handleUserUnpublished(t,a){this.remoteUsers.find(s=>s.uid==t.uid)&&await this.agoraClient.unsubscribe(t,a)}}},M={};var ce=n(le,ne,re,!1,de,null,null,null);function de(t){for(let a in M)this[a]=M[a]}var he=function(){return ce.exports}(),ue=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("Modal",{attrs:{value:t.visible,mask:!1,"mask-closable":!1,"footer-hide":!0,"transition-names":[t.transition,""],beforeClose:t.onBeforeClose,"class-name":"dialog-modal",fullscreen:""}},[t.windowSmall&&t.dialogId>0?e("DialogWrapper",{attrs:{dialogId:t.dialogId,beforeBack:t.onBeforeClose}}):t._e()],1)},pe=[];const me={name:"DialogModal",components:{DialogWrapper:K},data(){return{timer:null,transition:$A.isIos()?"mobile-dialog":""}},computed:{...d(["dialogId"]),visible(){return this.dialogId>0&&this.windowSmall}},methods:{onBeforeClose(){return new Promise(t=>{this.$store.dispatch("openDialog",0)})}}},j={};var fe=n(me,ue,pe,!1,ge,null,null,null);function ge(t){for(let a in j)this[a]=j[a]}var ve=function(){return fe.exports}(),_e=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("Modal",{attrs:{value:t.show,styles:t.styles,"mask-closable":!1,"footer-hide":!0,beforeClose:t.onBeforeClose,"class-name":"task-modal"}},[e("TaskDetail",{ref:"taskDetail",attrs:{"task-id":t.taskId,"open-task":t.taskData,modalMode:""}})],1)},$e=[];const ke={name:"TaskModal",components:{TaskDetail:Y},computed:{...d(["taskId"]),...g(["taskData"]),show(){return this.taskId>0},styles(){return{width:"90%",maxWidth:this.taskData.dialog_id?"1200px":"700px"}}},methods:{onBeforeClose(){return new Promise(t=>{this.$store.dispatch("openTask",0)})},checkUpdate(){if(this.show)return this.$refs.taskDetail.checkUpdate(!0),!0}}},P={};var be=n(ke,_e,$e,!1,ye,null,null,null);function ye(t){for(let a in P)this[a]=P[a]}var we=function(){return be.exports}(),De=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("Modal",{attrs:{title:t.$L("\u5BFC\u51FA\u4EFB\u52A1\u7EDF\u8BA1"),"mask-closable":!1},model:{value:t.show,callback:function(s){t.show=s},expression:"show"}},[e("Form",{ref:"exportTask",attrs:{model:t.formData,"label-width":"auto"},nativeOn:{submit:function(s){s.preventDefault()}}},[e("FormItem",{attrs:{label:t.$L("\u5BFC\u51FA\u6210\u5458")}},[e("UserInput",{attrs:{"multiple-max":100,placeholder:t.$L("\u8BF7\u9009\u62E9\u6210\u5458")},model:{value:t.formData.userid,callback:function(s){t.$set(t.formData,"userid",s)},expression:"formData.userid"}}),e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u6BCF\u6B21\u6700\u591A\u9009\u62E9\u5BFC\u51FA100\u4E2A\u6210\u5458")))])],1),e("FormItem",{attrs:{label:t.$L("\u65F6\u95F4\u8303\u56F4")}},[e("DatePicker",{staticStyle:{width:"100%"},attrs:{type:"daterange",format:"yyyy/MM/dd",placeholder:t.$L("\u8BF7\u9009\u62E9\u65F6\u95F4")},model:{value:t.formData.time,callback:function(s){t.$set(t.formData,"time",s)},expression:"formData.time"}}),e("div",{staticClass:"form-tip checkin-export-quick-select"},[e("span",[t._v(t._s(t.$L("\u5FEB\u6377\u9009\u62E9"))+":")]),e("em",{on:{click:function(s){t.formData.time=t.dateShortcuts("prev")}}},[t._v(t._s(t.$L("\u4E0A\u4E2A\u6708")))]),e("em",{on:{click:function(s){t.formData.time=t.dateShortcuts("this")}}},[t._v(t._s(t.$L("\u8FD9\u4E2A\u6708")))])])],1),e("FormItem",{attrs:{prop:"type",label:t.$L("\u5BFC\u51FA\u65F6\u95F4\u7C7B\u578B")}},[e("RadioGroup",{model:{value:t.formData.type,callback:function(s){t.$set(t.formData,"type",s)},expression:"formData.type"}},[e("Radio",{attrs:{label:"taskTime"}},[t._v(t._s(t.$L("\u4EFB\u52A1\u65F6\u95F4")))]),e("Radio",{attrs:{label:"createdTime"}},[t._v(t._s(t.$L("\u521B\u5EFA\u65F6\u95F4")))])],1)],1)],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(s){t.show=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.loadIng>0},on:{click:t.onExport}},[t._v(t._s(t.$L("\u5BFC\u51FA")))])],1)],1)},Le=[];const Te={name:"TaskExport",components:{UserInput:v},props:{value:{type:Boolean,default:!1}},data(){return{show:this.value,loadIng:0,formData:{userid:[],time:[],type:"taskTime"}}},watch:{value(t){this.show=t},show(t){this.value!==t&&this.$emit("input",t)}},methods:{dateShortcuts(t){if(t==="prev")return[$A.getSpecifyDate("\u4E0A\u4E2A\u6708"),$A.getSpecifyDate("\u4E0A\u4E2A\u6708\u7ED3\u675F")];if(t==="this")return[$A.getSpecifyDate("\u672C\u6708"),$A.getSpecifyDate("\u672C\u6708\u7ED3\u675F")]},onExport(){this.loadIng>0||(this.loadIng++,this.$store.dispatch("call",{url:"project/task/export",data:this.formData}).then(({data:t})=>{this.show=!1,this.$store.dispatch("downUrl",{url:t.url})}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.loadIng--}))}}},R={};var Ce=n(Te,De,Le,!1,xe,null,null,null);function xe(t){for(let a in R)this[a]=R[a]}var Se=function(){return Ce.exports}();const Ie=(t,a)=>!t||!a?!1:t==="String"?typeof a=="string":t==="Object"?Object.prototype.toString.call(a)==="[object Object]":t==="number"?typeof a=="number":t==="function"?Object.prototype.toString.call(a)==="[object Function]":!1,Ae=(t,a,e)=>t.findIndex(s=>s[a]===e);var l={checkData:Ie,searchArrObj:Ae};class Me{constructor(a="\u9ED8\u8BA4\u6807\u9898",e={}){this.title=a,this.options=e,this.support=!1,this.supportFn()}supportFn(){window.Notification?(this.initStatus(),this.support=!0):this.support=!1}initStatus(){this.notification=null,this.state=Notification.permission,this.msg=null,this.callBackObj={},this.notificationAll=[],this.requireInteractionTimeout=!1,this.timeout=null}initNotification(a){if(!!this.checkStatus("support")){if(!l.checkData("function",a))return console.error("initNotification\u7684\u53C2\u6570\u5FC5\u987B\u4E3A\u51FD\u6570");if(this.state==="granted")this.msg="already granted";else if(this.state==="default"){const e=s=>(this.state=s,s==="granted"?this.msg="granted":s==="default"?this.msg="close":this.msg="denied",a(this.msg));try{Notification.requestPermission().then(e)}catch{Notification.requestPermission(e)}}else this.msg="already denied";if(this.state!=="default")return a(this.msg)}}userAgreed(){if(!!this.checkStatus("userAgreed")){this.notification=new Notification(this.title,this.options),this.notificationWatch();for(const a in this.callBackObj)this.notification[a]=e=>{this.callBackObj[a](e)}}}notificationTimeoutFn(a){a&&l.checkData("number",a)?this.timeout=a:this.timeout=5e3}notificationWatch(){this.notificationAll.push(this.notification),this.notification.requireInteraction?this.everyTimeout():this.autoClose(),this.watchClose()}everyTimeout(){!l.checkData("number",this.timeout)||(this.options.timeOut&&l.checkData("number",this.options.timeOut)?this.timeoutCloseFn(this.options.timeOut):this.timeoutCloseFn(this.timeout))}timeoutCloseFn(a){const e=this.notification.timestamp;setTimeout(()=>{const s=l.searchArrObj(this.notificationAll,"timestamp",e);s!==-1&&this.notificationAll[s].close()},a)}watchClose(){const a=this.notification.timestamp;this.notification.addEventListener("close",e=>{const s=l.searchArrObj(this.notificationAll,"timestamp",a);s!==-1&&this.notificationAll.splice(s,1)})}autoClose(){const a=this.notification.timestamp;setTimeout(()=>{const e=l.searchArrObj(this.notificationAll,"timestamp",a);e!==-1&&this.notificationAll.splice(e,1)},6e3)}notificationEvent(a){if(!!this.checkStatus("support"))if(l.checkData("Object",a)){for(const e in a)if(!l.checkData("function",a[e]))return console.error("callObj\u5BF9\u8C61\u4E2D\u7684\u6BCF\u4E2Avalue\u5FC5\u987B\u4E3A\u51FD\u6570");this.callBackObj=a}else return console.error("callObj\u5FC5\u987B\u4E3A\u5BF9\u8C61")}closeAll(){for(let a of this.notificationAll.values())a.close();this.notificationAll=[]}close(){if(!this.notification)return console.warn("this.notification\u4E3Anull,\u901A\u77E5\u5C1A\u672A\u8C03\u7528/\u7528\u6237\u672A\u540C\u610F\u663E\u793A\u901A\u77E5");this.notification.close()}updateOptions(a){if(a&&l.checkData("Object",a))for(const e in a)this.options[e]=a[e];else console.warn("updateOptions\u53C2\u6570\u9519\u8BEF\uFF1Aoptions\u4E3A\u5FC5\u586B\u5BF9\u8C61")}replaceTitle(a){a&&l.checkData("String",a)?this.title=a:console.warn("replaceTitle: title(\u901A\u77E5\u6807\u9898)\u4E3A\u5FC5\u586B\u5B57\u7B26\u4E32")}replaceOptions(a){a&&l.checkData("Object",a)?this.options=a:console.warn("replaceOptions\u53C2\u6570\u9519\u8BEF\uFF1Aoptions\u4E3A\u5FC5\u586B\u5BF9\u8C61")}checkStatus(a){if(a==="support"){if(!this.support)return console.warn("\u7528\u6237\u6D4F\u89C8\u5668\u4E0D\u652F\u6301"),!1}else if(a==="userAgreed"&&(this.state!=="granted"||!this.checkStatus("support")))return!1;return!0}}var je=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{directives:[{name:"show",rawName:"v-show",value:t.userId>0,expression:"userId > 0"}],staticClass:"page-manage",class:{"show-tabbar":t.showMobileTabbar}},[e("div",{staticClass:"manage-box-menu",class:{"show768-menu":t.show768Menu}},[e("Dropdown",{staticClass:"page-manage-menu-dropdown main-menu",attrs:{trigger:"click"},on:{"on-click":t.settingRoute,"on-visible-change":t.menuVisibleChange}},[e("div",{class:["manage-box-title",t.visibleMenu?"menu-visible":""]},[e("div",{staticClass:"manage-box-avatar"},[e("UserAvatar",{attrs:{userid:t.userId,size:36,tooltipDisabled:""}})],1),e("span",[t._v(t._s(t.userInfo.nickname))]),t.reportUnreadNumber>0?e("Badge",{staticClass:"manage-box-top-report",attrs:{"overflow-count":999,count:t.reportUnreadNumber}}):t.clientNewVersion?e("Badge",{staticClass:"manage-box-top-report",attrs:{dot:""}}):t._e(),e("div",{staticClass:"manage-box-arrow"},[e("Icon",{attrs:{type:"ios-arrow-up"}}),e("Icon",{attrs:{type:"ios-arrow-down"}})],1)],1),e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[t._l(t.menu,function(s){return[s.path==="taskBrowse"?e("Dropdown",{attrs:{transfer:"","transfer-class-name":"page-manage-menu-dropdown",placement:"right-start"}},[e("DropdownItem",{attrs:{divided:!!s.divided}},[e("div",{staticClass:"manage-menu-flex"},[t._v(" "+t._s(t.$L(s.name))+" "),e("Icon",{attrs:{type:"ios-arrow-forward"}})],1)]),t.taskBrowseLists.length>0?e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},t._l(t.taskBrowseLists,function(i,o){return i.id>0&&o<10?e("DropdownItem",{key:o,staticClass:"task-title",attrs:{name:i.name},nativeOn:{click:function(h){return t.openTask(i)}}},[i.flow_item_name?e("span",{class:i.flow_item_status},[t._v(t._s(i.flow_item_name))]):t._e(),e("div",{staticClass:"task-title-text"},[t._v(t._s(i.name))])]):t._e()}),1):e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[e("DropdownItem",{staticStyle:{color:"darkgrey"}},[t._v(t._s(t.$L("\u6682\u65E0\u6253\u5F00\u8BB0\u5F55")))])],1)],1):s.path==="team"?e("Dropdown",{attrs:{transfer:"","transfer-class-name":"page-manage-menu-dropdown",placement:"right-start"}},[e("DropdownItem",{attrs:{divided:!!s.divided}},[e("div",{staticClass:"manage-menu-flex"},[t._v(" "+t._s(t.$L(s.name))+" "),t.reportUnreadNumber>0?e("Badge",{staticClass:"manage-menu-report-badge",attrs:{"overflow-count":999,count:t.reportUnreadNumber}}):e("Icon",{attrs:{type:"ios-arrow-forward"}})],1)]),e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[e("DropdownItem",{attrs:{name:"allUser"}},[t._v(t._s(t.$L("\u56E2\u961F\u7BA1\u7406")))]),e("DropdownItem",{attrs:{name:"workReport"}},[e("div",{staticClass:"manage-menu-flex"},[t._v(" "+t._s(t.$L("\u5DE5\u4F5C\u62A5\u544A"))+" "),t.reportUnreadNumber>0?e("Badge",{staticClass:"manage-menu-report-badge",attrs:{"overflow-count":999,count:t.reportUnreadNumber}}):t._e()],1)]),e("DropdownItem",{attrs:{name:"exportTask"}},[t._v(t._s(t.$L("\u5BFC\u51FA\u4EFB\u52A1\u7EDF\u8BA1")))]),e("DropdownItem",{attrs:{name:"exportOverdueTask"}},[t._v(t._s(t.$L("\u5BFC\u51FA\u8D85\u671F\u4EFB\u52A1")))]),e("DropdownItem",{attrs:{name:"exportCheckin"}},[t._v(t._s(t.$L("\u5BFC\u51FA\u7B7E\u5230\u6570\u636E")))])],1)],1):s.visible!==!1?e("DropdownItem",{style:s.style||{},attrs:{divided:!!s.divided,name:s.path}},[e("div",{staticClass:"manage-menu-flex"},[t._v(" "+t._s(t.$L(s.name))+" "),s.path==="version"?e("Badge",{staticClass:"manage-menu-report-badge",attrs:{text:t.clientNewVersion}}):s.path==="workReport"&&t.reportUnreadNumber>0?e("Badge",{staticClass:"manage-menu-report-badge",attrs:{count:t.reportUnreadNumber}}):t._e()],1)]):t._e()]})],2)],1),e("ul",{class:t.listClassName,on:{scroll:function(s){t.operateVisible=!1}}},[e("li",{class:t.classNameRoute("dashboard"),on:{click:function(s){return t.toggleRoute("dashboard")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE6FB")]),e("div",{staticClass:"menu-title"},[t._v(t._s(t.$L("\u4EEA\u8868\u76D8")))]),t.dashboardTask.overdue_count>0?e("Badge",{staticClass:"menu-badge",attrs:{type:"error","overflow-count":999,count:t.dashboardTask.overdue_count}}):t.dashboardTask.today_count>0?e("Badge",{staticClass:"menu-badge",attrs:{type:"info","overflow-count":999,count:t.dashboardTask.today_count}}):t.dashboardTask.all_count>0?e("Badge",{staticClass:"menu-badge",attrs:{type:"primary","overflow-count":999,count:t.dashboardTask.all_count}}):t._e()],1),e("li",{class:t.classNameRoute("calendar"),on:{click:function(s){return t.toggleRoute("calendar")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE6F5")]),e("div",{staticClass:"menu-title"},[t._v(t._s(t.$L("\u65E5\u5386")))])]),e("li",{class:t.classNameRoute("messenger"),on:{click:function(s){return t.toggleRoute("messenger")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE6EB")]),e("div",{staticClass:"menu-title"},[t._v(t._s(t.$L("\u6D88\u606F")))]),e("Badge",{staticClass:"menu-badge",attrs:{"overflow-count":999,text:t.msgUnreadMention}})],1),e("li",{class:t.classNameRoute("file"),on:{click:function(s){return t.toggleRoute("file")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE6F3")]),e("div",{staticClass:"menu-title"},[t._v(t._s(t.$L("\u6587\u4EF6")))])]),e("li",{ref:"menuProject",staticClass:"menu-project"},[e("ul",{class:t.listClassName,on:{scroll:function(s){t.operateVisible=!1}}},[t._l(t.projectLists,function(s,i){return e("li",{directives:[{name:"longpress",rawName:"v-longpress",value:t.handleLongpress,expression:"handleLongpress"}],key:i,ref:`project_${s.id}`,refInFor:!0,class:t.classNameProject(s),attrs:{"data-id":s.id},on:{click:function(o){return t.toggleRoute("project",{projectId:s.id})}}},[e("div",{staticClass:"project-h1"},[e("em",{on:{click:function(o){return o.stopPropagation(),t.toggleOpenMenu(s.id)}}}),e("div",{staticClass:"title"},[t._v(t._s(s.name))]),s.top_at?e("div",{staticClass:"icon-top"}):t._e(),s.task_my_num-s.task_my_complete>0?e("div",{staticClass:"num"},[t._v(t._s(s.task_my_num-s.task_my_complete))]):t._e()]),e("div",{staticClass:"project-h2"},[e("p",[e("em",[t._v(t._s(t.$L("\u6211\u7684"))+":")]),e("span",[t._v(t._s(s.task_my_complete)+"/"+t._s(s.task_my_num))]),e("Progress",{attrs:{percent:s.task_my_percent,"stroke-width":6}})],1),e("p",[e("em",[t._v(t._s(t.$L("\u5168\u90E8"))+":")]),e("span",[t._v(t._s(s.task_complete)+"/"+t._s(s.task_num))]),e("Progress",{attrs:{percent:s.task_percent,"stroke-width":6}})],1)])])}),t.projectKeyLoading>0?e("li",{staticClass:"loading"},[e("Loading")],1):t._e()],2)])]),e("div",{staticClass:"operate-position",style:t.operateStyles},[e("Dropdown",{attrs:{trigger:"custom",placement:t.windowLarge?"bottom":"top",visible:t.operateVisible,transfer:""},on:{"on-clickoutside":function(s){t.operateVisible=!1}}},[e("div",{style:{userSelect:t.operateVisible?"none":"auto",height:t.operateStyles.height}}),e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[e("DropdownItem",{nativeOn:{click:function(s){return t.handleTopClick.apply(null,arguments)}}},[t._v(" "+t._s(t.$L(t.operateItem.top_at?"\u53D6\u6D88\u7F6E\u9876":"\u7F6E\u9876\u8BE5\u9879\u76EE"))+" ")])],1)],1)],1),(t.projectSearchShow||t.projectTotal>20)&&t.windowHeight>600?e("div",{staticClass:"manage-project-search"},[e("Input",{attrs:{placeholder:t.$L(`\u5171${t.projectTotal||t.cacheProjects.length}\u4E2A\u9879\u76EE\uFF0C\u641C\u7D22...`),clearable:""},model:{value:t.projectKeyValue,callback:function(s){t.projectKeyValue=s},expression:"projectKeyValue"}},[e("div",{staticClass:"search-pre",attrs:{slot:"prefix"},slot:"prefix"},[t.projectKeyLoading>0?e("Loading"):e("Icon",{attrs:{type:"ios-search"}})],1)])],1):t._e(),e("ButtonGroup",{staticClass:"manage-box-new-group"},[e("Button",{staticClass:"manage-box-new",attrs:{type:"primary",icon:"md-add"},on:{click:t.onAddShow}},[t._v(t._s(t.$L("\u65B0\u5EFA\u9879\u76EE")))]),e("Dropdown",{attrs:{trigger:"click"},on:{"on-click":t.onAddMenu}},[e("Button",{attrs:{type:"primary"}},[e("Icon",{attrs:{type:"ios-arrow-down"}})],1),e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[e("DropdownItem",{attrs:{name:"task"}},[t._v(t._s(t.$L("\u65B0\u5EFA\u4EFB\u52A1"))+" ("+t._s(t.mateName)+"+K)")]),e("DropdownItem",{attrs:{name:"createMeeting"}},[t._v(t._s(t.$L("\u65B0\u4F1A\u8BAE"))+" ("+t._s(t.mateName)+"+J)")]),e("DropdownItem",{attrs:{name:"joinMeeting"}},[t._v(t._s(t.$L("\u52A0\u5165\u4F1A\u8BAE")))])],1)],1)],1)],1),e("div",{staticClass:"manage-box-main"},[e("keep-alive",[e("router-view",{staticClass:"manage-box-view"})],1)],1),e("Modal",{attrs:{title:t.$L("\u65B0\u5EFA\u9879\u76EE"),"mask-closable":!1},model:{value:t.addShow,callback:function(s){t.addShow=s},expression:"addShow"}},[e("Form",{ref:"addProject",attrs:{model:t.addData,rules:t.addRule,"label-width":"auto"},nativeOn:{submit:function(s){s.preventDefault()}}},[e("FormItem",{attrs:{prop:"name",label:t.$L("\u9879\u76EE\u540D\u79F0")}},[e("Input",{ref:"projectName",attrs:{type:"text"},model:{value:t.addData.name,callback:function(s){t.$set(t.addData,"name",s)},expression:"addData.name"}})],1),t.addData.columns?e("FormItem",{attrs:{label:t.$L("\u4EFB\u52A1\u5217\u8868")}},[e("TagInput",{model:{value:t.addData.columns,callback:function(s){t.$set(t.addData,"columns",s)},expression:"addData.columns"}})],1):e("FormItem",{attrs:{label:t.$L("\u9879\u76EE\u6A21\u677F")}},[e("Select",{attrs:{value:0,placeholder:t.$L("\u8BF7\u9009\u62E9\u6A21\u677F")},on:{"on-change":t.selectChange}},t._l(t.columns,function(s,i){return e("Option",{key:i,attrs:{value:i}},[t._v(t._s(s.name))])}),1)],1),e("FormItem",{attrs:{prop:"flow",label:t.$L("\u5F00\u542F\u5DE5\u4F5C\u6D41")}},[e("RadioGroup",{model:{value:t.addData.flow,callback:function(s){t.$set(t.addData,"flow",s)},expression:"addData.flow"}},[e("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),e("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1)],1)],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(s){t.addShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.loadIng>0},on:{click:t.onAddProject}},[t._v(t._s(t.$L("\u6DFB\u52A0")))])],1)],1),e("Modal",{attrs:{"mask-closable":!1,styles:{width:"90%",maxWidth:"640px"},"footer-hide":""},model:{value:t.addTaskShow,callback:function(s){t.addTaskShow=s},expression:"addTaskShow"}},[e("TaskAdd",{ref:"addTask",model:{value:t.addTaskShow,callback:function(s){t.addTaskShow=s},expression:"addTaskShow"}})],1),e("TaskExport",{model:{value:t.exportTaskShow,callback:function(s){t.exportTaskShow=s},expression:"exportTaskShow"}}),e("CheckinExport",{model:{value:t.exportCheckinShow,callback:function(s){t.exportCheckinShow=s},expression:"exportCheckinShow"}}),e("TaskModal",{ref:"taskModal"}),e("DialogModal",{ref:"dialogModal"}),e("DrawerOverlay",{attrs:{placement:"right",size:1200},model:{value:t.workReportShow,callback:function(s){t.workReportShow=s},expression:"workReportShow"}},[t.workReportShow?e("Report",{attrs:{reportType:t.reportTabs},on:{"on-read":function(s){return t.$store.dispatch("getReportUnread",1e3)}}}):t._e()],1),e("DrawerOverlay",{attrs:{placement:"right",size:1380},model:{value:t.allUserShow,callback:function(s){t.allUserShow=s},expression:"allUserShow"}},[t.allUserShow?e("TeamManagement"):t._e()],1),e("DrawerOverlay",{attrs:{placement:"right",size:1200},model:{value:t.allProjectShow,callback:function(s){t.allProjectShow=s},expression:"allProjectShow"}},[t.allProjectShow?e("ProjectManagement"):t._e()],1),e("DrawerOverlay",{attrs:{placement:"right",size:1200},model:{value:t.archivedProjectShow,callback:function(s){t.archivedProjectShow=s},expression:"archivedProjectShow"}},[t.archivedProjectShow?e("ProjectArchived"):t._e()],1),e("MeetingManager"),e("transition",{attrs:{name:"mobile-slide"}},[t.showMobileTabbar?e("MobileTabbar",{on:{"on-click":t.onTabbarClick}}):t._e()],1),e("MobileBack",{attrs:{showTabbar:t.showMobileTabbar}}),e("MobileNotification",{ref:"mobileNotification"})],1)},Pe=[];const Re={components:{TaskExport:Se,CheckinExport:O,TaskModal:we,DialogModal:ve,MeetingManager:he,MobileNotification:Yt,MobileBack:zt,MobileTabbar:ht,TaskAdd:vt,Report:Rt,DrawerOverlay:B,ProjectManagement:ot,TeamManagement:z,ProjectArchived:Z},directives:{longpress:V},data(){return{loadIng:0,mateName:/macintosh|mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl",addShow:!1,addData:{name:"",columns:"",flow:"open"},addRule:{name:[{required:!0,message:this.$L("\u8BF7\u586B\u5199\u9879\u76EE\u540D\u79F0\uFF01"),trigger:"change"},{type:"string",min:2,message:this.$L("\u9879\u76EE\u540D\u79F0\u81F3\u5C112\u4E2A\u5B57\uFF01"),trigger:"change"}]},addTaskShow:!1,addTaskSubscribe:null,exportTaskShow:!1,exportCheckinShow:!1,dialogMsgSubscribe:null,projectKeyValue:"",projectKeyLoading:0,projectSearchShow:!1,openMenu:{},visibleMenu:!1,show768Menu:!1,workReportShow:!1,allUserShow:!1,allProjectShow:!1,archivedProjectShow:!1,natificationReady:!1,notificationManage:null,reportTabs:"my",operateStyles:{},operateVisible:!1,operateItem:{},needStartHome:!1}},mounted(){this.chackClear(),this.notificationInit(),this.addTaskSubscribe=c.Store.subscribe("addTask",this.onAddTask),this.dialogMsgSubscribe=c.Store.subscribe("dialogMsgPush",this.addDialogMsg),document.addEventListener("keydown",this.shortcutEvent)},activated(){this.$store.dispatch("getUserInfo").catch(t=>{}),this.$store.dispatch("getTaskPriority").catch(t=>{}),this.$store.dispatch("getReportUnread",0),this.$store.dispatch("needHome").then(t=>{this.needStartHome=!0}).catch(t=>{this.needStartHome=!1})},beforeDestroy(){this.addTaskSubscribe&&(this.addTaskSubscribe.unsubscribe(),this.addTaskSubscribe=null),this.dialogMsgSubscribe&&(this.dialogMsgSubscribe.unsubscribe(),this.dialogMsgSubscribe=null),document.removeEventListener("keydown",this.shortcutEvent)},deactivated(){this.addShow=!1},computed:{...d(["userInfo","userIsAdmin","cacheUserBasic","cacheTasks","cacheDialogs","cacheProjects","projectTotal","wsOpenNum","columnTemplate","wsMsg","clientNewVersion","cacheTaskBrowse","dialogIns","reportUnreadNumber"]),...g(["dashboardTask"]),routeName(){return this.$route.name},msgUnreadMention(){let t=0,a=0;this.cacheDialogs.some(s=>{t+=$A.getDialogUnread(s,!1),a+=$A.getDialogMention(s)}),t>999&&(t="999+"),a>999&&(a="999+");const e=this.msgTodoTotal;return e?a?`@${a}\xB7${e}`:t?`${t}\xB7${e}`:e:t?a?`${t}\xB7@${a}`:String(t):a?`@${a}`:""},msgAllUnread(){let t=0;return this.cacheDialogs.some(a=>{t+=$A.getDialogNum(a)}),t},msgTodoTotal(){let t=this.cacheDialogs.reduce((a,e)=>a+(e.todo_num||0),0);return t>0?(t>99?t="99+":t===1&&(t=""),`${this.$L("\u5F85\u529E")}${t}`):null},unreadAndOverdue(){return this.userId>0?this.msgAllUnread+this.dashboardTask.overdue_count:0},menu(){const{userIsAdmin:t,needStartHome:a}=this,e=[{path:"taskBrowse",name:"\u6700\u8FD1\u6253\u5F00\u7684\u4EFB\u52A1"}];return t?e.push({path:"personal",name:"\u4E2A\u4EBA\u8BBE\u7F6E",divided:!0},{path:"system",name:"\u7CFB\u7EDF\u8BBE\u7F6E"},{path:"clearCache",name:"\u6E05\u9664\u7F13\u5B58"},{path:"version",name:"\u66F4\u65B0\u7248\u672C",divided:!0,visible:!!this.clientNewVersion},{path:"allProject",name:"\u6240\u6709\u9879\u76EE",divided:!0},{path:"archivedProject",name:"\u5DF2\u5F52\u6863\u7684\u9879\u76EE"},{path:"team",name:"\u56E2\u961F\u7BA1\u7406",divided:!0}):e.push({path:"personal",name:"\u4E2A\u4EBA\u8BBE\u7F6E",divided:!0},{path:"clearCache",name:"\u6E05\u9664\u7F13\u5B58"},{path:"version",name:"\u66F4\u65B0\u7248\u672C",divided:!0,visible:!!this.clientNewVersion},{path:"workReport",name:"\u5DE5\u4F5C\u62A5\u544A",divided:!0},{path:"archivedProject",name:"\u5DF2\u5F52\u6863\u7684\u9879\u76EE"}),a?e.push({path:"goHome",name:"\u6253\u5F00\u9996\u9875",divided:!0},{path:"logout",name:"\u9000\u51FA\u767B\u5F55",style:{color:"#f40"}}):e.push({path:"logout",name:"\u9000\u51FA\u767B\u5F55",style:{color:"#f40"},divided:!0}),e},columns(){const t=$A.cloneJSON(this.columnTemplate);return t.unshift({name:this.$L("\u7A7A\u767D\u6A21\u677F"),columns:[]}),t},projectLists(){const{projectKeyValue:t,cacheProjects:a}=this,e=$A.cloneJSON(a).sort((s,i)=>s.top_at||i.top_at?$A.Date(i.top_at)-$A.Date(s.top_at):i.id-s.id);return t?e.filter(s=>$A.strExists(`${s.name} ${s.desc}`,t)):e},listClassName(){return{"scrollbar-overlay":!0,"scrollbar-hidden":this.operateVisible===!0}},taskBrowseLists(){const{cacheTasks:t,cacheTaskBrowse:a,userId:e}=this;return a.filter(({userid:s})=>s===e).map(({id:s})=>t.find(i=>i.id===s)||{})},showMobileTabbar(){return this.routeName==="manage-project"&&!/^\d+$/.test(this.$route.params.projectId)?!0:["manage-dashboard","manage-calendar","manage-messenger","manage-file","manage-setting"].includes(this.routeName)}},watch:{$route(){this.chackPass()},userInfo(){this.chackPass()},projectKeyValue(t){t!=""&&setTimeout(()=>{this.projectKeyValue==t&&this.searchProject()},600)},wsOpenNum(t){t<=1||this.$store.dispatch("getBasicData",600)},workReportShow(t){t&&this.$store.dispatch("getReportUnread",0)},"cacheProjects.length":{handler(){this.$nextTick(t=>{const a=this.$refs.menuProject,e=$A.last($A.getObject(a,"children.0.children"));if(e){const s=e.getBoundingClientRect(),i=a.getBoundingClientRect();if(s.top>i.top+i.height){this.projectSearchShow=!0;return}}this.projectSearchShow=!1})},immediate:!0},unreadAndOverdue:{handler(t){this.$Electron&&this.$Electron.sendMessage("setDockBadge",t)},immediate:!0},wsMsg:{handler(t){const{type:a,action:e}=t;switch(a){case"report":e=="unreadUpdate"&&this.$store.dispatch("getReportUnread",1e3);break}},deep:!0}},methods:{async chackClear(){await $A.IDBString("clearCache")&&(await $A.IDBRemove("clearCache"),$A.messageSuccess("\u6E05\u9664\u6210\u529F"))},chackPass(){this.userInfo.changepass===1&&this.goForward({name:"manage-setting-password"})},async toggleRoute(t,a){this.show768Menu=!1;let e={name:"manage-"+t,params:a||{}},s=await $A.IDBInt("fileFolderId");t==="file"&&s>0&&(e.params.folderId=s),this.goForward(e)},toggleOpenMenu(t){this.$set(this.openMenu,t,!this.openMenu[t])},settingRoute(t){switch(t){case"allUser":this.allUserShow=!0;return;case"allProject":this.allProjectShow=!0;return;case"archivedProject":this.archivedProjectShow=!0;return;case"exportTask":this.exportTaskShow=!0;return;case"exportOverdueTask":this.exportOverdueTask();return;case"exportCheckin":this.exportCheckinShow=!0;return;case"workReport":this.reportUnreadNumber>0&&(this.reportTabs="receive"),this.workReportShow=!0;return;case"version":c.Store.set("updateNotification",null);return;case"clearCache":this.$store.dispatch("handleClearCache",null).then(async()=>{await $A.IDBSet("clearCache",$A.randomString(6)),$A.reloadUrl()});return;case"goHome":this.needStartHome&&this.goForward({name:"index",query:{action:"index"}});return;case"logout":$A.modalConfirm({title:"\u9000\u51FA\u767B\u5F55",content:"\u4F60\u786E\u5B9A\u8981\u767B\u51FA\u7CFB\u7EDF\uFF1F",onOk:()=>{this.$store.dispatch("logout",!1)}});return}this.menu.findIndex(a=>a.path==t)>-1&&this.toggleRoute("setting-"+t)},exportOverdueTask(){$A.modalConfirm({title:"\u5BFC\u51FA\u4EFB\u52A1",content:"\u4F60\u786E\u5B9A\u8981\u5BFC\u51FA\u6240\u6709\u8D85\u671F\u4EFB\u52A1\u5417\uFF1F",loading:!0,onOk:()=>new Promise((t,a)=>{this.$store.dispatch("call",{url:"project/task/exportoverdue"}).then(({data:e})=>{t(),this.$store.dispatch("downUrl",{url:e.url})}).catch(({msg:e})=>{a(e)})})})},menuVisibleChange(t){this.visibleMenu=t},classNameRoute(t){return{active:this.routeName===`manage-${t}`}},classNameProject(t){return{active:this.routeName==="manage-project"&&this.$route.params.projectId==t.id,"open-menu":this.openMenu[t.id]===!0,operate:t.id==this.operateItem.id&&this.operateVisible}},onAddMenu(t){switch(t){case"task":this.onAddTask(0);break;case"createMeeting":c.Store.set("addMeeting",{type:"create",userids:[this.userId]});break;case"joinMeeting":c.Store.set("addMeeting",{type:"join"});break}},onAddShow(){this.$store.dispatch("getColumnTemplate").catch(()=>{}),this.addShow=!0,this.$nextTick(()=>{this.$refs.projectName.focus()})},onAddProject(){this.$refs.addProject.validate(t=>{t&&(this.loadIng++,this.$store.dispatch("call",{url:"project/add",data:this.addData}).then(({data:a,msg:e})=>{$A.messageSuccess(e),this.addShow=!1,this.$refs.addProject.resetFields(),this.$store.dispatch("saveProject",a),this.toggleRoute("project",{projectId:a.id})}).catch(({msg:a})=>{$A.modalError(a)}).finally(a=>{this.loadIng--}))})},searchProject(){setTimeout(()=>{this.projectKeyLoading++},1e3),this.$store.dispatch("getProjects",{keys:{name:this.projectKeyValue}}).finally(t=>{this.projectKeyLoading--})},selectChange(t){this.$nextTick(()=>{this.$set(this.addData,"columns",this.columns[t].columns.join(","))})},shortcutEvent(t){(t.metaKey||t.ctrlKey)&&(t.keyCode===74?(t.preventDefault(),this.onAddMenu("createMeeting")):t.keyCode===75||t.keyCode===78?(t.preventDefault(),this.onAddMenu("task")):t.keyCode===83&&this.$refs.taskModal.checkUpdate()&&t.preventDefault())},onAddTask(t){this.addTaskShow=!0,this.$nextTick(a=>{let e={owner:[this.userId]};$A.isJson(t)?e=t:/^[1-9]\d*$/.test(t)&&(e.column_id=t),this.$refs.addTask.setData(e)})},openTask(t){this.$store.dispatch("openTask",t)},addDialogMsg(t){var k;if(!this.natificationReady&&!this.$isEEUiApp||this.windowActive&&t.dialog_id===((k=$A.last(this.dialogIns))==null?void 0:k.dialog_id))return;const{id:a,dialog_id:e,dialog_type:s,type:i,msg:o,userid:h}=t;if(h==this.userId)return;let u;switch(i){case"text":u=$A.getMsgTextPreview(o.text);break;case"file":u="["+this.$L(o.type=="img"?"\u56FE\u7247\u4FE1\u606F":"\u6587\u4EF6\u4FE1\u606F")+"]";break;default:return}this.__notificationId=a;const _=r=>{if(s==="group"){let p=this.cacheUserBasic.find(f=>f.userid==h);p?m(`${r} (${p.nickname})`):this.$store.dispatch("call",{url:"users/basic",data:{userid:[h]},checkRole:!1}).then(({data:f})=>{p=f.find(E=>E.userid==h),p&&m(`${r} (${p.nickname})`)}).catch(f=>{m(r)})}else m(r)},m=r=>{this.__notificationId===a&&(this.$isEEUiApp?this.$refs.mobileNotification.open({userid:h,title:r,desc:u,callback:()=>{this.goForward({name:"manage-messenger"}),this.$store.dispatch("openDialog",e)}}):this.$Electron?this.$Electron.sendMessage("openNotification",{icon:$A.originUrl("images/logo.png"),title:r,body:u,data:t,tag:"dialog",hasReply:!0,replyPlaceholder:this.$L("\u56DE\u590D\u6D88\u606F")}):(this.notificationManage.replaceOptions({icon:$A.originUrl("images/logo.png"),body:u,data:t,tag:"dialog"}),this.notificationManage.replaceTitle(r),this.notificationManage.userAgreed()))},$=this.cacheDialogs.find(r=>r.id==e);$?_($.name):this.$store.dispatch("getDialogOne",e).then(({data:r})=>_(r.name)).catch(()=>{})},handleLongpress(t,a){const e=$A.getAttr(a,"data-id"),s=this.projectLists.find(i=>i.id==e);!s||(this.operateVisible=!1,this.operateItem=$A.isJson(s)?s:{},this.$nextTick(()=>{const i=a.getBoundingClientRect(),o=this.$refs.menuProject.getBoundingClientRect();this.operateStyles={left:`${t.clientX-o.left}px`,top:`${i.top+this.windowScrollY}px`,height:i.height+"px"},this.operateVisible=!0}))},handleTopClick(){this.$store.dispatch("call",{url:"project/top",data:{project_id:this.operateItem.id}}).then(({data:t})=>{this.$store.dispatch("saveProject",t),this.$nextTick(()=>{const a=this.$refs.menuProject.querySelector(".active");a&&$A.scrollIntoViewIfNeeded(a)})}).catch(({msg:t})=>{$A.modalError(t)})},onTabbarClick(t){switch(t){case"addTask":this.onAddTask(0);break;case"addProject":this.onAddShow();break}},notificationInit(){this.notificationManage=new Me(this.$L("\u6253\u5F00\u901A\u77E5\u6210\u529F")),this.notificationManage.support&&(this.notificationManage.notificationEvent({onclick:({target:t})=>{console.log("[Notification] A Click",t),this.notificationManage.close(),this.notificationClick(t),window.focus()}}),this.notificationPermission()),this.$Electron&&(this.$Electron.registerMsgListener("clickNotification",t=>{console.log("[Notification] B Click",t),this.$Electron.sendMessage("mainWindowActive"),this.notificationClick(t)}),this.$Electron.registerMsgListener("replyNotification",t=>{console.log("[Notification] B Reply",t),this.notificationReply(t)}))},notificationPermission(){const t=a=>{switch(a){case"already granted":case"granted":return this.natificationReady=!0;case"close":return this.notificationManage.initNotification(t);case"denied":case"already denied":console.log(a==="denied"?"\u60A8\u521A\u521A\u62D2\u7EDD\u663E\u793A\u901A\u77E5 \u8BF7\u5728\u8BBE\u7F6E\u4E2D\u66F4\u6539\u8BBE\u7F6E":"\u60A8\u66FE\u7EA7\u62D2\u7EDD\u663E\u793A\u901A\u77E5 \u8BF7\u5728\u8BBE\u7F6E\u4E2D\u66F4\u6539\u8BBE\u7F6E");break}};this.notificationManage.initNotification(t)},notificationClick(t){const{tag:a,data:e}=t;if(a=="dialog"){if(!$A.isJson(e))return;this.goForward({name:"manage-messenger"}),this.$nextTick(s=>{this.$store.dispatch("openDialog",e.dialog_id)})}},notificationReply(t){const{tag:a,data:e,reply:s}=t;a=="dialog"&&s&&this.$store.dispatch("call",{url:"dialog/msg/sendtext",data:{dialog_id:e.dialog_id,text:s},method:"post"}).then(({data:i})=>{this.$store.dispatch("saveDialogMsg",i),this.$store.dispatch("increaseTaskMsgNum",i),this.$store.dispatch("increaseMsgReplyNum",i),this.$store.dispatch("updateDialogLastMsg",i)}).catch(({msg:i})=>{$A.modalError(i)})}}},U={};var Ue=n(Re,je,Pe,!1,Be,null,null,null);function Be(t){for(let a in U)this[a]=U[a]}var Ge=function(){return Ue.exports}();export{Ge as default}; diff --git a/public/js/build/messenger.16a771fa.js b/public/js/build/messenger.16a771fa.js deleted file mode 100644 index 1f15622fc..000000000 --- a/public/js/build/messenger.16a771fa.js +++ /dev/null @@ -1 +0,0 @@ -import{n as u,d as h,m as p}from"./app.90cb6e79.js";import{D as f}from"./DialogWrapper.0674ddc3.js";import{l as g}from"./DialogSelect.9924132a.js";import"./UserInput.1d67c0fc.js";import"./index.b6ff1b3f.js";var _=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{ref:"scrollerView",staticClass:"app-scroller-y",class:[t.static?"static":""]},[t._t("default"),e("div",{ref:"bottom",staticClass:"app-scroller-bottom"})],2)},m=[];const v={name:"ScrollerY",props:{static:{type:Boolean,default:!1},autoBottom:{type:Boolean,default:!1},autoRecovery:{type:Boolean,default:!0},autoRecoveryAnimate:{type:Boolean,default:!1}},data(){return{scrollY:0,scrollDiff:0,autoInterval:null}},mounted(){this.openInterval(),this.$nextTick(this.initScroll)},activated(){this.openInterval(),this.recoveryScroll()},destroyed(){this.closeInterval()},deactivated(){this.closeInterval()},methods:{initScroll(){this.autoToBottom();let t=typeof this.$listeners["on-scroll"]=="function",i=$A(this.$refs.scrollerView);i.scroll(()=>{let e=Math.round(i.innerHeight()),s=i.scrollTop(),a=this.$refs.scrollerView.scrollHeight;if(this.scrollY=s,t){let o="static",l="static";this.scrollDiff-s>50?(this.scrollDiff=s,o="down"):this.scrollDiff-s<-100&&(this.scrollDiff=s,o="up"),this.scrollDiff-s>1?(this.scrollDiff=s,l="down"):this.scrollDiff-s<-1&&(this.scrollDiff=s,l="up"),this.$emit("on-scroll",{scale:s/(a-e),scrollY:s,scrollE:a-e-s,direction:o,directionreal:l})}})},recoveryScroll(){this.autoRecovery&&(this.scrollY>0||this.autoBottom)&&this.$nextTick(()=>{this.autoBottom?this.autoToBottom():this.scrollTo(this.scrollY,this.autoRecoveryAnimate)})},openInterval(){this.autoToBottom(),this.autoInterval&&clearInterval(this.autoInterval),this.autoInterval=setInterval(this.autoToBottom,300)},closeInterval(){clearInterval(this.autoInterval),this.autoInterval=null},scrollTo(t,i){i===!1?$A(this.$refs.scrollerView).stop().scrollTop(t):$A(this.$refs.scrollerView).stop().animate({scrollTop:t})},autoToBottom(){this.autoBottom&&$A.scrollToView(this.$refs.bottom,{behavior:"instant",inline:"end"})},scrollInfo(){let t=$A(this.$refs.scrollerView),i=Math.round(t.innerHeight()),e=t.scrollTop(),s=this.$refs.scrollerView.scrollHeight;return this.scrollY=e,{scale:e/(s-i),scrollY:e,scrollE:s-i-e}},querySelector(t){return this.$refs.scrollerView&&this.$refs.scrollerView.querySelector(t)}}},c={};var $=u(v,_,m,!1,A,null,null,null);function A(t){for(let i in c)this[i]=c[i]}var y=function(){return $.exports}(),D=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"page-messenger"},[e("PageTitle",{attrs:{title:t.$L(t.tabActive==="dialog"?"\u6D88\u606F":"\u901A\u8BAF\u5F55")}}),e("div",{staticClass:"messenger-wrapper"},[e("div",{staticClass:"messenger-select"},[e("div",{staticClass:"messenger-search"},[e("div",{staticClass:"search-wrapper"},[t.tabActive==="dialog"?e("Input",{attrs:{placeholder:t.$L(t.loadDialogs?"\u66F4\u65B0\u4E2D...":"\u641C\u7D22\u6D88\u606F"),clearable:""},model:{value:t.dialogKey,callback:function(s){t.dialogKey=s},expression:"dialogKey"}},[e("div",{staticClass:"search-pre",attrs:{slot:"prefix"},slot:"prefix"},[t.loadDialogs?e("Loading"):e("Icon",{attrs:{type:"ios-search"}})],1)]):e("Input",{attrs:{prefix:"ios-search",placeholder:t.$L("\u641C\u7D22\u8054\u7CFB\u4EBA"),clearable:""},model:{value:t.contactsKey,callback:function(s){t.contactsKey=s},expression:"contactsKey"}})],1)]),t.tabActive==="dialog"&&!t.dialogKey?e("div",{staticClass:"messenger-nav"},t._l(t.dialogType,function(s,a){return e("div",{key:a,class:{active:t.dialogActive==s.type},on:{click:function(o){return t.onActive(s.type)}}},[e("Badge",{staticClass:"nav-num",attrs:{"overflow-count":999,count:t.msgUnread(s.type)}}),e("div",{staticClass:"nav-title"},[t._v(t._s(t.$L(s.name)))])],1)}),0):t._e(),t.$isEEUiApp&&!t.appNotificationPermission?e("div",{staticClass:"messenger-notify-permission",on:{click:t.onOpenAppSetting}},[t._v(" "+t._s(t.$L("\u672A\u5F00\u542F\u901A\u77E5\u6743\u9650"))),e("i",{staticClass:"taskfont"},[t._v("\uE733")])]):t._e(),e("ScrollerY",{ref:"list",staticClass:"messenger-list",class:t.listClassName,attrs:{static:""},on:{"on-scroll":t.listScroll}},[t.tabActive==="dialog"?e("ul",{staticClass:"dialog"},[t.dialogList.length===0?[t.dialogLoad>0?e("li",{staticClass:"loading"},[e("Loading")],1):e("li",{staticClass:"nothing"},[t._v(" "+t._s(t.$L(t.dialogKey?`\u6CA1\u6709\u4EFB\u4F55\u4E0E"${t.dialogKey}"\u76F8\u5173\u7684\u4F1A\u8BDD`:"\u6CA1\u6709\u4EFB\u4F55\u4F1A\u8BDD"))+" ")])]:t._l(t.dialogList,function(s,a){return e("li",{directives:[{name:"longpress",rawName:"v-longpress",value:t.handleLongpress,expression:"handleLongpress"}],key:a,ref:`dialog_${s.id}`,refInFor:!0,class:t.dialogClass(s),attrs:{"data-id":s.id},on:{click:function(o){return t.openDialog({dialog_id:s.id,search_msg_id:s.search_msg_id})}}},[s.type=="group"?[s.group_type=="department"?e("i",{staticClass:"taskfont icon-avatar department"},[t._v("\uE75C")]):s.group_type=="project"?e("i",{staticClass:"taskfont icon-avatar project"},[t._v("\uE6F9")]):s.group_type=="task"?e("i",{staticClass:"taskfont icon-avatar task"},[t._v("\uE6F4")]):e("Icon",{staticClass:"icon-avatar",attrs:{type:"ios-people"}})]:s.dialog_user?e("div",{staticClass:"user-avatar"},[e("UserAvatar",{attrs:{userid:s.dialog_user.userid,size:42}})],1):e("Icon",{staticClass:"icon-avatar",attrs:{type:"md-person"}}),e("div",{staticClass:"dialog-box"},[e("div",{staticClass:"dialog-title"},[s.todo_num?e("div",{staticClass:"todo"},[t._v("["+t._s(t.$L("\u5F85\u529E"))+t._s(t.formatTodoNum(s.todo_num))+"]")]):t._e(),t.$A.getDialogMention(s)>0?e("div",{staticClass:"mention"},[t._v("[@"+t._s(t.$A.getDialogMention(s))+"]")]):t._e(),s.bot?e("div",{staticClass:"taskfont bot"},[t._v("\uE68C")]):t._e(),t._l(t.$A.dialogTags(s),function(o){return o.color!="success"?[e("Tag",{attrs:{color:o.color,fade:!1},on:{"on-click":function(l){return t.openDialog(s.id)}}},[t._v(t._s(t.$L(o.text)))])]:t._e()}),e("span",[t._v(t._s(s.name))]),s.type=="user"&&t.lastMsgReadDone(s.last_msg)&&s.dialog_user.userid!=t.userId?e("Icon",{attrs:{type:t.lastMsgReadDone(s.last_msg)}}):t._e(),s.last_at?e("em",[t._v(t._s(t.$A.formatTime(s.last_at)))]):t._e()],2),e("div",{staticClass:"dialog-text no-dark-content"},[s.type=="group"&&s.last_msg&&s.last_msg.userid?[s.last_msg.userid==t.userId?e("div",{staticClass:"last-self"},[t._v(t._s(t.$L("\u4F60")))]):e("UserAvatar",{attrs:{userid:s.last_msg.userid,"show-name":!0,"show-icon":!1,"tooltip-disabled":""}})]:t._e(),e("div",{staticClass:"last-text"},[t.formatMsgEmojiDesc(s.last_msg)?e("em",[t._v(t._s(t.formatMsgEmojiDesc(s.last_msg)))]):t._e(),e("span",[t._v(t._s(t.$A.getMsgSimpleDesc(s.last_msg)))])]),s.silence?e("div",{staticClass:"taskfont last-silence"},[t._v("\uE7D7")]):t._e()],2)]),e("Badge",{staticClass:"dialog-num",attrs:{type:s.silence?"normal":"error","overflow-count":999,count:t.$A.getDialogUnread(s,!0)}}),e("div",{staticClass:"dialog-line"})],2)})],2):e("ul",{staticClass:"contacts"},[t.contactsFilter.length===0?[t.contactsLoad>0?e("li",{staticClass:"loading"},[e("Loading")],1):e("li",{staticClass:"nothing"},[t._v(" "+t._s(t.$L(t.contactsKey?`\u6CA1\u6709\u4EFB\u4F55\u4E0E"${t.contactsKey}"\u76F8\u5173\u7684\u8054\u7CFB\u4EBA`:"\u6CA1\u6709\u4EFB\u4F55\u8054\u7CFB\u4EBA"))+" ")])]:[t._l(t.contactsList,function(s){return e("li",[e("div",{staticClass:"label"},[t._v(t._s(s.az))]),e("ul",t._l(s.list,function(a,o){return e("li",{key:o,on:{click:function(l){return t.openContacts(a)}}},[e("div",{staticClass:"avatar"},[e("UserAvatar",{attrs:{userid:a.userid,size:30}})],1),e("div",{staticClass:"nickname"},[e("em",[t._v(t._s(a.nickname))]),a.tags?e("div",{staticClass:"tags"},[t._v(t._s(a.tags.join(", ")))]):t._e()]),a.loading?e("div",{staticClass:"loading"},[e("Loading")],1):t._e()])}),0)])}),e("li",{staticClass:"loaded"},[t._v(t._s(t.$L("\u5171"+t.contactsFilter.length+"\u4F4D\u8054\u7CFB\u4EBA")))])]],2),e("div",{staticClass:"operate-position",style:t.operateStyles},[e("Dropdown",{attrs:{trigger:"custom",placement:t.windowLarge?"bottom":"top",visible:t.operateVisible,transfer:""},on:{"on-clickoutside":function(s){t.operateVisible=!1}}},[e("div",{style:{userSelect:t.operateVisible?"none":"auto",height:t.operateStyles.height}}),e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[e("DropdownItem",{nativeOn:{click:function(s){return t.handleTopClick.apply(null,arguments)}}},[t._v(" "+t._s(t.$L(t.operateItem.top_at?"\u53D6\u6D88\u7F6E\u9876":"\u7F6E\u9876"))+" ")]),e("DropdownItem",{nativeOn:{click:function(s){return t.handleReadClick.apply(null,arguments)}}},[t._v(" "+t._s(t.$L(t.$A.getDialogUnread(t.operateItem,!0)>0?"\u6807\u8BB0\u5DF2\u8BFB":"\u6807\u8BB0\u672A\u8BFB"))+" ")]),e("DropdownItem",{attrs:{disabled:t.silenceDisabled(t.operateItem)},nativeOn:{click:function(s){return t.handleSilenceClick.apply(null,arguments)}}},[t._v(" "+t._s(t.$L(t.operateItem.silence?"\u5141\u8BB8\u6D88\u606F\u901A\u77E5":"\u6D88\u606F\u514D\u6253\u6270"))+" ")])],1)],1)],1)]),e("div",{staticClass:"messenger-menu"},[e("div",{staticClass:"menu-icon"},[e("Icon",{class:{active:t.tabActive==="dialog"},attrs:{type:"ios-chatbubbles"},on:{click:function(s){return t.onActive(null)}}}),e("Badge",{staticClass:"menu-num",attrs:{"overflow-count":999,count:t.msgUnread("all")}})],1),e("div",{staticClass:"menu-icon"},[e("Icon",{class:{active:t.tabActive==="contacts"},attrs:{type:"md-person"},on:{click:function(s){t.tabActive="contacts"}}})],1)])],1),t.activeNum>0&&t.routeName==="manage-messenger"?e("div",{staticClass:"messenger-msg"},[e("div",{staticClass:"msg-dialog-bg"},[e("div",{staticClass:"msg-dialog-bg-icon"},[e("Icon",{attrs:{type:"ios-chatbubbles"}})],1),e("div",{staticClass:"msg-dialog-bg-text"},[t._v(t._s(t.$L("\u9009\u62E9\u4E00\u4E2A\u4F1A\u8BDD\u5F00\u59CB\u804A\u5929")))])]),t.windowLarge&&t.dialogId>0?e("DialogWrapper",{attrs:{dialogId:t.dialogId,"auto-focus":t.$A.isDesktop()},on:{"on-active":t.scrollIntoActive}}):t._e()],1):t._e()])],1)},b=[];const C={components:{ScrollerY:y,DialogWrapper:f},directives:{longpress:g},data(){return{activeNum:0,tabActive:"dialog",dialogLoad:0,dialogKey:"",dialogSearch:[],dialogActive:"",dialogType:[{type:"",name:"\u5168\u90E8"},{type:"project",name:"\u9879\u76EE"},{type:"task",name:"\u4EFB\u52A1"},{type:"user",name:"\u4E2A\u4EBA"}],contactsKey:"",contactsLoad:0,contactsData:null,contactsCurrentPage:1,contactsHasMorePages:!1,contactsLastTime:0,operateItem:{},operateStyles:{},operateVisible:!1,clickAgainSubscribe:null}},mounted(){const t=$A.runNum(this.$route.query.dialog_id);t>0&&this.openDialog(t),this.clickAgainSubscribe=h.Store.subscribe("clickAgainDialog",this.shakeUnread)},beforeDestroy(){this.clickAgainSubscribe&&(this.clickAgainSubscribe.unsubscribe(),this.clickAgainSubscribe=null),document.removeEventListener("keydown",this.shortcutEvent)},activated(){this.updateDialogs(1e3),this.$nextTick(t=>this.activeNum++),$A.isEEUiApp&&$A.eeuiAppSendMessage({action:"getNotificationPermission"})},deactivated(){this.updateDialogs(-1),this.$nextTick(t=>this.activeNum--)},computed:{...p(["cacheDialogs","loadDialogs","dialogId","appNotificationPermission"]),routeName(){return this.$route.name},dialogList(){const{dialogActive:t,dialogKey:i,dialogSearch:e}=this;if(t==""&&i=="")return this.cacheDialogs.filter(a=>this.filterDialog(a)).sort((a,o)=>a.top_at||o.top_at?$A.Date(o.top_at)-$A.Date(a.top_at):a.todo_num>0||o.todo_num>0?o.todo_num-a.todo_num:$A.Date(o.last_at)-$A.Date(a.last_at));const s=this.cacheDialogs.filter(a=>{if(!this.filterDialog(a))return!1;if(i){const{name:o,pinyin:l,last_msg:r}=a;let n=`${o} ${l}`;if(r)switch(r.type){case"text":n+=` ${r.msg.text.replace(/<[^>]+>/g,"")}`;break;case"meeting":case"file":n+=` ${r.msg.name}`;break}if(!$A.strExists(n,i))return!1}else if(t)switch(t){case"project":case"task":if(a.group_type!=t)return!1;break;case"user":if(a.type!="user"||a.bot)return!1;break;default:return!1}return!0});if(e.length>0){const a=[],o=[];s.forEach(l=>{l.last_msg&&!a.includes(l.last_msg.id)&&a.push(l.last_msg.id),l.dialog_user&&!o.includes(l.dialog_user.userid)&&o.push(l.dialog_user.userid)}),e.forEach(l=>{$A.leftExists(l.id,"u:")?o.includes(l.dialog_user.userid)||s.push(Object.assign(l,{is_search:!0})):(!l.last_msg||!a.includes(l.last_msg.id))&&s.push(Object.assign(l,{is_search:!0}))})}return s.sort((a,o)=>(a._by_search=a.is_search===!0?1:0,o._by_search=o.is_search===!0?1:0,a._by_search||o._by_search?a._by_search-o._by_search:a.top_at||o.top_at?$A.Date(o.top_at)-$A.Date(a.top_at):a.todo_num>0||o.todo_num>0?o.todo_num-a.todo_num:$A.Date(o.last_at)-$A.Date(a.last_at)))},contactsFilter(){const{contactsData:t,contactsKey:i}=this;return t===null?[]:i?t.filter(e=>$A.strExists(`${e.email} ${e.nickname} ${e.profession} ${e.pinyin}`,i)):t},contactsList(){const t=[];return this.contactsFilter.some(i=>{let e=i.az?i.az.toUpperCase():"#",s=t.find(a=>a.az==e);s?s.list.findIndex(({userid:a})=>a==i.userid)===-1&&s.list.push(i):t.push({az:e,list:[i]})}),t},msgUnread(){return function(t){let i=0;return this.cacheDialogs.some(e=>{switch(t){case"project":case"task":if(t!=e.group_type)return!1;break;case"user":if(t!=e.type||e.bot)return!1;break}i+=$A.getDialogNum(e)}),i}},listClassName(){return{"scrollbar-overlay":!0,"scrollbar-hidden":this.operateVisible===!0}}},watch:{$route:{handler({params:t}){["dialog","contacts"].includes(t.dialogAction)&&(this.tabActive=t.dialogAction)},immediate:!0},dialogKey(t){switch(t){case"log.open":case"log:open":case"eruda:open":$A.IDBSet("logOpen","open").then(i=>$A.reloadUrl());break;case"log.close":case"log:close":case"eruda:close":$A.IDBSet("logOpen","close").then(i=>$A.reloadUrl());break}this.dialogSearch=[],t!=""&&(this.dialogLoad++,setTimeout(()=>{this.dialogKey==t&&this.searchDialog(t),this.dialogLoad--},600))},contactsKey(t){t!=""&&(this.contactsLoad++,setTimeout(()=>{this.contactsKey==t&&this.getContactsList(1),this.contactsLoad--},600))},tabActive:{handler(t){t=="contacts"?($A.Time()-this.contactsLastTime>24*3600&&(this.contactsData=null),this.contactsData===null?this.getContactsList(1):this.updateContactsList(1e3)):this.updateDialogs(1e3)},immediate:!0},dialogId:{handler(t){t>0&&this.scrollIntoActive()},immediate:!0}},methods:{listScroll(t){switch(t.directionreal){case"up":t.scrollE<10&&this.tabActive==="contacts"&&this.contactsLoad==0&&this.contactsHasMorePages&&this.getContactsList(this.contactsCurrentPage+1);break}this.operateVisible=!1},onActive(t){if(t===null){if(this.tabActive!=="dialog"){this.tabActive="dialog";return}t=this.dialogActive}this.dialogActive==t?this.shakeUnread():this.dialogActive=t},shakeUnread(){var i;let t=this.dialogList.findIndex(e=>$A.getDialogNum(e)>0);if(t===-1&&(t=this.dialogList.findIndex(e=>$A.getDialogUnread(e,!0)>0)),t>-1){const e=this.$refs[`dialog_${(i=this.dialogList[t])==null?void 0:i.id}`];if(e&&e[0]){if(e[0].classList.contains("common-shake"))return;$A.scrollIntoViewIfNeeded(e[0]),requestAnimationFrame(s=>{e[0].classList.add("common-shake"),setTimeout(a=>{e[0].classList.remove("common-shake")},600)})}}},dialogClass(t){return this.dialogKey?null:{top:t.top_at,active:t.id==this.dialogId,operate:this.operateVisible&&t.id==this.operateItem.id,completed:$A.dialogCompleted(t)}},openDialog(t){this.operateVisible||(this.dialogKey="",$A.isJson(t)&&$A.leftExists(t.dialog_id,"u:")?this.$store.dispatch("openDialogUserid",$A.leftDelete(t.dialog_id,"u:")).catch(({msg:i})=>{$A.modalError(i)}):this.$store.dispatch("openDialog",t))},openContacts(t){t.loading||(this.$set(t,"loading",!0),this.$store.dispatch("openDialogUserid",t.userid).then(i=>{this.windowLarge&&(this.tabActive="dialog")}).catch(({msg:i})=>{$A.modalError(i)}).finally(i=>{this.$set(t,"loading",!1)}))},filterDialog(t){if($A.getDialogNum(t)>0||t.id==this.dialogId||t.top_at||t.todo_num>0)return!0;if(t.name===void 0||t.dialog_delete===1||!t.last_at)return!1;if(t.type=="group"&&["project","task"].includes(t.group_type)&&$A.isJson(t.group_info)){if(t.group_type=="task"&&t.group_info.complete_at){let i=Math.max($A.Date(t.last_at,!0),$A.Date(t.group_info.complete_at,!0));if(5*86400+i<$A.Time())return!1}if(t.group_info.deleted_at){let i=Math.max($A.Date(t.last_at,!0),$A.Date(t.group_info.deleted_at,!0));if(2*86400+i<$A.Time())return!1}if(t.group_info.archived_at){let i=Math.max($A.Date(t.last_at,!0),$A.Date(t.group_info.archived_at,!0));if(3*86400+i<$A.Time())return!1}}return!0},searchDialog(t){this.dialogLoad++,this.$store.dispatch("call",{url:"dialog/search",data:{key:t}}).then(({data:i})=>{this.dialogSearch=i}).finally(i=>{this.dialogLoad--})},getContactsList(t){this.contactsLoad++,this.$store.dispatch("call",{url:"users/search",data:{keys:{key:this.contactsKey},sorts:{az:"asc"},page:t,pagesize:50}}).then(({data:i})=>{this.contactsData===null&&(this.contactsData=[]),i.data.some(e=>{this.contactsData.findIndex(s=>s.userid==e.userid)===-1&&this.contactsData.push(e)}),this.contactsCurrentPage=i.current_page,this.contactsHasMorePages=i.current_page{this.contactsHasMorePages=!1}).finally(i=>{this.contactsLoad--,this.contactsLastTime=$A.Time()})},updateContactsList(t){this.__updateContactsList&&clearTimeout(this.__updateContactsList),t>-1&&(this.__updateContactsList=setTimeout(i=>{this.tabActive==="contacts"&&this.$store.dispatch("call",{url:"users/search",data:{updated_time:this.contactsLastTime,take:100}}).then(({data:e})=>{e.some(s=>{const a=this.contactsData.findIndex(o=>o.userid==s.userid);a>-1?this.contactsData.splice(a,1,s):this.contactsData.push(s)})}).finally(e=>{this.contactsLastTime=$A.Time()})},t))},formatTodoNum(t){return t>999?"999+":t>1?t:""},formatMsgEmojiDesc(t){return $A.isJson(t)&&$A.arrayLength(t.emoji)>0?t.emoji[0].symbol:null},lastMsgReadDone(t){if($A.isJson(t)){const{userid:i,percentage:e}=t;if(i===this.userId)return e===100?"md-done-all":"md-checkmark"}return null},scrollIntoActive(){this.$nextTick(()=>{if(this.windowLarge&&this.$refs.list){const t=this.$refs.list.querySelector(".active");t?$A.scrollIntoViewIfNeeded(t):this.cacheDialogs.find(({id:e})=>e==this.dialogId)&&this.dialogActive&&(this.dialogActive="",this.$nextTick(()=>{const e=this.$refs.list.querySelector(".active");e&&$A.scrollIntoViewIfNeeded(e)}))}})},handleLongpress(t,i){const e=$A.getAttr(i,"data-id"),s=this.dialogList.find(a=>a.id==e);!s||(this.operateVisible=!1,this.operateItem=$A.isJson(s)?s:{},this.$nextTick(()=>{const a=i.getBoundingClientRect(),o=this.$refs.list.$el.getBoundingClientRect();this.operateStyles={left:`${t.clientX-o.left}px`,top:`${a.top+this.windowScrollY}px`,height:a.height+"px"},this.operateVisible=!0}))},handleTopClick(){this.$store.dispatch("call",{url:"dialog/top",data:{dialog_id:this.operateItem.id}}).then(({data:t})=>{this.$store.dispatch("saveDialog",t),this.$nextTick(this.scrollIntoActive)}).catch(({msg:t})=>{$A.modalError(t)})},handleReadClick(){this.$store.dispatch("dialogMsgMark",{dialog_id:this.operateItem.id,type:$A.getDialogUnread(this.operateItem,!0)>0?"read":"unread"}).catch(({msg:t})=>{$A.modalError(t)})},handleSilenceClick(){this.silenceDisabled(this.operateItem)||this.$store.dispatch("call",{url:"dialog/msg/silence",data:{dialog_id:this.operateItem.id,type:this.operateItem.silence?"cancel":"set"}}).then(({data:t})=>{this.$store.dispatch("saveDialog",t)}).catch(({msg:t})=>{$A.modalError(t)})},updateDialogs(t){this.__updateDialogs&&clearTimeout(this.__updateDialogs),t>-1&&(this.__updateDialogs=setTimeout(i=>{this.tabActive==="dialog"&&this.$store.dispatch("getDialogs",{hideLoad:!0}).catch(()=>{})},t))},onOpenAppSetting(){$A.eeuiAppSendMessage({action:"gotoSetting"})},silenceDisabled(t){const{type:i,group_type:e}=t;return i==="group"&&e!=="user"},userTag({identity:t,department_name:i}){const e=[],s=i==null?void 0:i.split(",").find(a=>/\(M\)$/.test(a));return s&&e.push(s.replace(/\(M\)$/,"")+" "+this.$L("\u8D1F\u8D23\u4EBA")),t!=null&&t.includes("temp")&&e.push(this.$L("\u4E34\u65F6")),e.join(", ")}}},d={};var k=u(C,D,b,!1,I,null,null,null);function I(t){for(let i in d)this[i]=d[i]}var M=function(){return k.exports}();export{M as default}; diff --git a/public/js/build/messenger.778c884d.js b/public/js/build/messenger.778c884d.js new file mode 100644 index 000000000..0db157e55 --- /dev/null +++ b/public/js/build/messenger.778c884d.js @@ -0,0 +1 @@ +import{n as d,d as h,m as p}from"./app.feefc813.js";import{D as f}from"./DialogWrapper.0c8b0be3.js";import{l as g}from"./DialogSelect.5d8dded5.js";import"./UserInput.2bc16b15.js";import"./index.f3f56c75.js";import"./ImgUpload.e60c7ecf.js";var _=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{ref:"scrollerView",staticClass:"app-scroller-y",class:[t.static?"static":""]},[t._t("default"),e("div",{ref:"bottom",staticClass:"app-scroller-bottom"})],2)},m=[];const v={name:"ScrollerY",props:{static:{type:Boolean,default:!1},autoBottom:{type:Boolean,default:!1},autoRecovery:{type:Boolean,default:!0},autoRecoveryAnimate:{type:Boolean,default:!1}},data(){return{scrollY:0,scrollDiff:0,autoInterval:null}},mounted(){this.openInterval(),this.$nextTick(this.initScroll)},activated(){this.openInterval(),this.recoveryScroll()},destroyed(){this.closeInterval()},deactivated(){this.closeInterval()},methods:{initScroll(){this.autoToBottom();let t=typeof this.$listeners["on-scroll"]=="function",i=$A(this.$refs.scrollerView);i.scroll(()=>{let e=Math.round(i.innerHeight()),s=i.scrollTop(),a=this.$refs.scrollerView.scrollHeight;if(this.scrollY=s,t){let o="static",r="static";this.scrollDiff-s>50?(this.scrollDiff=s,o="down"):this.scrollDiff-s<-100&&(this.scrollDiff=s,o="up"),this.scrollDiff-s>1?(this.scrollDiff=s,r="down"):this.scrollDiff-s<-1&&(this.scrollDiff=s,r="up"),this.$emit("on-scroll",{scale:s/(a-e),scrollY:s,scrollE:a-e-s,direction:o,directionreal:r})}})},recoveryScroll(){this.autoRecovery&&(this.scrollY>0||this.autoBottom)&&this.$nextTick(()=>{this.autoBottom?this.autoToBottom():this.scrollTo(this.scrollY,this.autoRecoveryAnimate)})},openInterval(){this.autoToBottom(),this.autoInterval&&clearInterval(this.autoInterval),this.autoInterval=setInterval(this.autoToBottom,300)},closeInterval(){clearInterval(this.autoInterval),this.autoInterval=null},scrollTo(t,i){i===!1?$A(this.$refs.scrollerView).stop().scrollTop(t):$A(this.$refs.scrollerView).stop().animate({scrollTop:t})},autoToBottom(){this.autoBottom&&$A.scrollToView(this.$refs.bottom,{behavior:"instant",inline:"end"})},scrollInfo(){let t=$A(this.$refs.scrollerView),i=Math.round(t.innerHeight()),e=t.scrollTop(),s=this.$refs.scrollerView.scrollHeight;return this.scrollY=e,{scale:e/(s-i),scrollY:e,scrollE:s-i-e}},querySelector(t){return this.$refs.scrollerView&&this.$refs.scrollerView.querySelector(t)}}},c={};var $=d(v,_,m,!1,A,null,null,null);function A(t){for(let i in c)this[i]=c[i]}var y=function(){return $.exports}(),D=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"page-messenger"},[e("PageTitle",{attrs:{title:t.$L(t.tabActive==="dialog"?"\u6D88\u606F":"\u901A\u8BAF\u5F55")}}),e("div",{staticClass:"messenger-wrapper"},[e("div",{staticClass:"messenger-select"},[e("div",{staticClass:"messenger-search"},[e("div",{staticClass:"search-wrapper"},[t.tabActive==="dialog"?e("Input",{attrs:{placeholder:t.$L(t.loadDialogs?"\u66F4\u65B0\u4E2D...":"\u641C\u7D22\u6D88\u606F"),clearable:""},model:{value:t.dialogKey,callback:function(s){t.dialogKey=s},expression:"dialogKey"}},[e("div",{staticClass:"search-pre",attrs:{slot:"prefix"},slot:"prefix"},[t.loadDialogs?e("Loading"):e("Icon",{attrs:{type:"ios-search"}})],1)]):e("Input",{attrs:{prefix:"ios-search",placeholder:t.$L("\u641C\u7D22\u8054\u7CFB\u4EBA"),clearable:""},model:{value:t.contactsKey,callback:function(s){t.contactsKey=s},expression:"contactsKey"}})],1)]),t.tabActive==="dialog"&&!t.dialogKey?e("div",{staticClass:"messenger-nav"},t._l(t.dialogType,function(s,a){return e("div",{key:a,class:{active:t.dialogActive==s.type},on:{click:function(o){return t.onActive(s.type)}}},[e("Badge",{staticClass:"nav-num",attrs:{"overflow-count":999,count:t.msgUnread(s.type)}}),e("div",{staticClass:"nav-title"},[t._v(t._s(t.$L(s.name)))])],1)}),0):t._e(),t.$isEEUiApp&&!t.appNotificationPermission?e("div",{staticClass:"messenger-notify-permission",on:{click:t.onOpenAppSetting}},[t._v(" "+t._s(t.$L("\u672A\u5F00\u542F\u901A\u77E5\u6743\u9650"))),e("i",{staticClass:"taskfont"},[t._v("\uE733")])]):t._e(),e("ScrollerY",{ref:"list",staticClass:"messenger-list",class:t.listClassName,attrs:{static:""},on:{"on-scroll":t.listScroll}},[t.tabActive==="dialog"?e("ul",{staticClass:"dialog"},[t.dialogList.length===0?[t.dialogLoad>0?e("li",{staticClass:"loading"},[e("Loading")],1):e("li",{staticClass:"nothing"},[t._v(" "+t._s(t.$L(t.dialogKey?`\u6CA1\u6709\u4EFB\u4F55\u4E0E"${t.dialogKey}"\u76F8\u5173\u7684\u4F1A\u8BDD`:"\u6CA1\u6709\u4EFB\u4F55\u4F1A\u8BDD"))+" ")])]:t._l(t.dialogList,function(s,a){return e("li",{directives:[{name:"longpress",rawName:"v-longpress",value:t.handleLongpress,expression:"handleLongpress"}],key:a,ref:`dialog_${s.id}`,refInFor:!0,class:t.dialogClass(s),attrs:{"data-id":s.id},on:{click:function(o){return t.openDialog({dialog_id:s.id,search_msg_id:s.search_msg_id})}}},[s.type=="group"?[s.avatar?e("EAvatar",{staticClass:"img-avatar",attrs:{src:s.avatar,size:42}}):s.group_type=="department"?e("i",{staticClass:"taskfont icon-avatar department"},[t._v("\uE75C")]):s.group_type=="project"?e("i",{staticClass:"taskfont icon-avatar project"},[t._v("\uE6F9")]):s.group_type=="task"?e("i",{staticClass:"taskfont icon-avatar task"},[t._v("\uE6F4")]):e("Icon",{staticClass:"icon-avatar",attrs:{type:"ios-people"}})]:s.dialog_user?e("div",{staticClass:"user-avatar"},[e("UserAvatar",{attrs:{userid:s.dialog_user.userid,size:42}})],1):e("Icon",{staticClass:"icon-avatar",attrs:{type:"md-person"}}),e("div",{staticClass:"dialog-box"},[e("div",{staticClass:"dialog-title"},[s.todo_num?e("div",{staticClass:"todo"},[t._v("["+t._s(t.$L("\u5F85\u529E"))+t._s(t.formatTodoNum(s.todo_num))+"]")]):t._e(),t.$A.getDialogMention(s)>0?e("div",{staticClass:"mention"},[t._v("[@"+t._s(t.$A.getDialogMention(s))+"]")]):t._e(),s.bot?e("div",{staticClass:"taskfont bot"},[t._v("\uE68C")]):t._e(),t._l(t.$A.dialogTags(s),function(o){return o.color!="success"?[e("Tag",{attrs:{color:o.color,fade:!1},on:{"on-click":function(r){return t.openDialog(s.id)}}},[t._v(t._s(t.$L(o.text)))])]:t._e()}),e("span",[t._v(t._s(s.name))]),s.type=="user"&&t.lastMsgReadDone(s.last_msg)&&s.dialog_user.userid!=t.userId?e("Icon",{attrs:{type:t.lastMsgReadDone(s.last_msg)}}):t._e(),s.last_at?e("em",[t._v(t._s(t.$A.formatTime(s.last_at)))]):t._e()],2),e("div",{staticClass:"dialog-text no-dark-content"},[s.type=="group"&&s.last_msg&&s.last_msg.userid?[s.last_msg.userid==t.userId?e("div",{staticClass:"last-self"},[t._v(t._s(t.$L("\u4F60")))]):e("UserAvatar",{attrs:{userid:s.last_msg.userid,"show-name":!0,"show-icon":!1,"tooltip-disabled":""}})]:t._e(),e("div",{staticClass:"last-text"},[t.formatMsgEmojiDesc(s.last_msg)?e("em",[t._v(t._s(t.formatMsgEmojiDesc(s.last_msg)))]):t._e(),e("span",[t._v(t._s(t.$A.getMsgSimpleDesc(s.last_msg)))])]),s.silence?e("div",{staticClass:"taskfont last-silence"},[t._v("\uE7D7")]):t._e()],2)]),e("Badge",{staticClass:"dialog-num",attrs:{type:s.silence?"normal":"error","overflow-count":999,count:t.$A.getDialogUnread(s,!0)}}),e("div",{staticClass:"dialog-line"})],2)})],2):e("ul",{staticClass:"contacts"},[t.contactsFilter.length===0?[t.contactsLoad>0?e("li",{staticClass:"loading"},[e("Loading")],1):e("li",{staticClass:"nothing"},[t._v(" "+t._s(t.$L(t.contactsKey?`\u6CA1\u6709\u4EFB\u4F55\u4E0E"${t.contactsKey}"\u76F8\u5173\u7684\u8054\u7CFB\u4EBA`:"\u6CA1\u6709\u4EFB\u4F55\u8054\u7CFB\u4EBA"))+" ")])]:[t._l(t.contactsList,function(s){return e("li",[e("div",{staticClass:"label"},[t._v(t._s(s.az))]),e("ul",t._l(s.list,function(a,o){return e("li",{key:o,on:{click:function(r){return t.openContacts(a)}}},[e("div",{staticClass:"avatar"},[e("UserAvatar",{attrs:{userid:a.userid,size:30}})],1),e("div",{staticClass:"nickname"},[e("em",[t._v(t._s(a.nickname))]),a.tags?e("div",{staticClass:"tags"},[t._v(t._s(a.tags.join(", ")))]):t._e()]),a.loading?e("div",{staticClass:"loading"},[e("Loading")],1):t._e()])}),0)])}),e("li",{staticClass:"loaded"},[t._v(t._s(t.$L("\u5171"+t.contactsFilter.length+"\u4F4D\u8054\u7CFB\u4EBA")))])]],2),e("div",{staticClass:"operate-position",style:t.operateStyles},[e("Dropdown",{attrs:{trigger:"custom",placement:t.windowLarge?"bottom":"top",visible:t.operateVisible,transfer:""},on:{"on-clickoutside":function(s){t.operateVisible=!1}}},[e("div",{style:{userSelect:t.operateVisible?"none":"auto",height:t.operateStyles.height}}),e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[e("DropdownItem",{nativeOn:{click:function(s){return t.handleTopClick.apply(null,arguments)}}},[t._v(" "+t._s(t.$L(t.operateItem.top_at?"\u53D6\u6D88\u7F6E\u9876":"\u7F6E\u9876"))+" ")]),e("DropdownItem",{nativeOn:{click:function(s){return t.handleReadClick.apply(null,arguments)}}},[t._v(" "+t._s(t.$L(t.$A.getDialogUnread(t.operateItem,!0)>0?"\u6807\u8BB0\u5DF2\u8BFB":"\u6807\u8BB0\u672A\u8BFB"))+" ")]),e("DropdownItem",{attrs:{disabled:t.silenceDisabled(t.operateItem)},nativeOn:{click:function(s){return t.handleSilenceClick.apply(null,arguments)}}},[t._v(" "+t._s(t.$L(t.operateItem.silence?"\u5141\u8BB8\u6D88\u606F\u901A\u77E5":"\u6D88\u606F\u514D\u6253\u6270"))+" ")])],1)],1)],1)]),e("div",{staticClass:"messenger-menu"},[e("div",{staticClass:"menu-icon"},[e("Icon",{class:{active:t.tabActive==="dialog"},attrs:{type:"ios-chatbubbles"},on:{click:function(s){return t.onActive(null)}}}),e("Badge",{staticClass:"menu-num",attrs:{"overflow-count":999,count:t.msgUnread("all")}})],1),e("div",{staticClass:"menu-icon"},[e("Icon",{class:{active:t.tabActive==="contacts"},attrs:{type:"md-person"},on:{click:function(s){t.tabActive="contacts"}}})],1)])],1),t.activeNum>0&&t.routeName==="manage-messenger"?e("div",{staticClass:"messenger-msg"},[e("div",{staticClass:"msg-dialog-bg"},[e("div",{staticClass:"msg-dialog-bg-icon"},[e("Icon",{attrs:{type:"ios-chatbubbles"}})],1),e("div",{staticClass:"msg-dialog-bg-text"},[t._v(t._s(t.$L("\u9009\u62E9\u4E00\u4E2A\u4F1A\u8BDD\u5F00\u59CB\u804A\u5929")))])]),t.windowLarge&&t.dialogId>0?e("DialogWrapper",{attrs:{dialogId:t.dialogId,"auto-focus":t.$A.isDesktop()},on:{"on-active":t.scrollIntoActive}}):t._e()],1):t._e()])],1)},C=[];const b={components:{ScrollerY:y,DialogWrapper:f},directives:{longpress:g},data(){return{activeNum:0,tabActive:"dialog",dialogLoad:0,dialogKey:"",dialogSearch:[],dialogActive:"",dialogType:[{type:"",name:"\u5168\u90E8"},{type:"project",name:"\u9879\u76EE"},{type:"task",name:"\u4EFB\u52A1"},{type:"user",name:"\u4E2A\u4EBA"}],contactsKey:"",contactsLoad:0,contactsData:null,contactsCurrentPage:1,contactsHasMorePages:!1,contactsLastTime:0,operateItem:{},operateStyles:{},operateVisible:!1,clickAgainSubscribe:null}},mounted(){const t=$A.runNum(this.$route.query.dialog_id);t>0&&this.openDialog(t),this.clickAgainSubscribe=h.Store.subscribe("clickAgainDialog",this.shakeUnread)},beforeDestroy(){this.clickAgainSubscribe&&(this.clickAgainSubscribe.unsubscribe(),this.clickAgainSubscribe=null),document.removeEventListener("keydown",this.shortcutEvent)},activated(){this.updateDialogs(1e3),this.$nextTick(t=>this.activeNum++),$A.isEEUiApp&&$A.eeuiAppSendMessage({action:"getNotificationPermission"})},deactivated(){this.updateDialogs(-1),this.$nextTick(t=>this.activeNum--)},computed:{...p(["cacheDialogs","loadDialogs","dialogId","appNotificationPermission"]),routeName(){return this.$route.name},dialogList(){const{dialogActive:t,dialogKey:i,dialogSearch:e}=this;if(t==""&&i=="")return this.cacheDialogs.filter(a=>this.filterDialog(a)).sort((a,o)=>a.top_at||o.top_at?$A.Date(o.top_at)-$A.Date(a.top_at):a.todo_num>0||o.todo_num>0?o.todo_num-a.todo_num:$A.Date(o.last_at)-$A.Date(a.last_at));const s=this.cacheDialogs.filter(a=>{if(!this.filterDialog(a))return!1;if(i){const{name:o,pinyin:r,last_msg:l}=a;let n=`${o} ${r}`;if(l)switch(l.type){case"text":n+=` ${l.msg.text.replace(/<[^>]+>/g,"")}`;break;case"meeting":case"file":n+=` ${l.msg.name}`;break}if(!$A.strExists(n,i))return!1}else if(t)switch(t){case"project":case"task":if(a.group_type!=t)return!1;break;case"user":if(a.type!="user"||a.bot)return!1;break;default:return!1}return!0});if(e.length>0){const a=[],o=[];s.forEach(r=>{r.last_msg&&!a.includes(r.last_msg.id)&&a.push(r.last_msg.id),r.dialog_user&&!o.includes(r.dialog_user.userid)&&o.push(r.dialog_user.userid)}),e.forEach(r=>{$A.leftExists(r.id,"u:")?o.includes(r.dialog_user.userid)||s.push(Object.assign(r,{is_search:!0})):(!r.last_msg||!a.includes(r.last_msg.id))&&s.push(Object.assign(r,{is_search:!0}))})}return s.sort((a,o)=>(a._by_search=a.is_search===!0?1:0,o._by_search=o.is_search===!0?1:0,a._by_search||o._by_search?a._by_search-o._by_search:a.top_at||o.top_at?$A.Date(o.top_at)-$A.Date(a.top_at):a.todo_num>0||o.todo_num>0?o.todo_num-a.todo_num:$A.Date(o.last_at)-$A.Date(a.last_at)))},contactsFilter(){const{contactsData:t,contactsKey:i}=this;return t===null?[]:i?t.filter(e=>$A.strExists(`${e.email} ${e.nickname} ${e.profession} ${e.pinyin}`,i)):t},contactsList(){const t=[];return this.contactsFilter.some(i=>{let e=i.az?i.az.toUpperCase():"#",s=t.find(a=>a.az==e);s?s.list.findIndex(({userid:a})=>a==i.userid)===-1&&s.list.push(i):t.push({az:e,list:[i]})}),t},msgUnread(){return function(t){let i=0;return this.cacheDialogs.some(e=>{switch(t){case"project":case"task":if(t!=e.group_type)return!1;break;case"user":if(t!=e.type||e.bot)return!1;break}i+=$A.getDialogNum(e)}),i}},listClassName(){return{"scrollbar-overlay":!0,"scrollbar-hidden":this.operateVisible===!0}}},watch:{$route:{handler({params:t}){["dialog","contacts"].includes(t.dialogAction)&&(this.tabActive=t.dialogAction)},immediate:!0},dialogKey(t){switch(t){case"log.open":case"log:open":case"eruda:open":$A.IDBSet("logOpen","open").then(i=>$A.reloadUrl());break;case"log.close":case"log:close":case"eruda:close":$A.IDBSet("logOpen","close").then(i=>$A.reloadUrl());break}this.dialogSearch=[],t!=""&&(this.dialogLoad++,setTimeout(()=>{this.dialogKey==t&&this.searchDialog(t),this.dialogLoad--},600))},contactsKey(t){t!=""&&(this.contactsLoad++,setTimeout(()=>{this.contactsKey==t&&this.getContactsList(1),this.contactsLoad--},600))},tabActive:{handler(t){t=="contacts"?($A.Time()-this.contactsLastTime>24*3600&&(this.contactsData=null),this.contactsData===null?this.getContactsList(1):this.updateContactsList(1e3)):this.updateDialogs(1e3)},immediate:!0},dialogId:{handler(t){t>0&&this.scrollIntoActive()},immediate:!0}},methods:{listScroll(t){switch(t.directionreal){case"up":t.scrollE<10&&this.tabActive==="contacts"&&this.contactsLoad==0&&this.contactsHasMorePages&&this.getContactsList(this.contactsCurrentPage+1);break}this.operateVisible=!1},onActive(t){if(t===null){if(this.tabActive!=="dialog"){this.tabActive="dialog";return}t=this.dialogActive}this.dialogActive==t?this.shakeUnread():this.dialogActive=t},shakeUnread(){var i;let t=this.dialogList.findIndex(e=>$A.getDialogNum(e)>0);if(t===-1&&(t=this.dialogList.findIndex(e=>$A.getDialogUnread(e,!0)>0)),t>-1){const e=this.$refs[`dialog_${(i=this.dialogList[t])==null?void 0:i.id}`];if(e&&e[0]){if(e[0].classList.contains("common-shake"))return;$A.scrollIntoViewIfNeeded(e[0]),requestAnimationFrame(s=>{e[0].classList.add("common-shake"),setTimeout(a=>{e[0].classList.remove("common-shake")},600)})}}},dialogClass(t){return this.dialogKey?null:{top:t.top_at,active:t.id==this.dialogId,operate:this.operateVisible&&t.id==this.operateItem.id,completed:$A.dialogCompleted(t)}},openDialog(t){this.operateVisible||(this.dialogKey="",$A.isJson(t)&&$A.leftExists(t.dialog_id,"u:")?this.$store.dispatch("openDialogUserid",$A.leftDelete(t.dialog_id,"u:")).catch(({msg:i})=>{$A.modalError(i)}):this.$store.dispatch("openDialog",t))},openContacts(t){t.loading||(this.$set(t,"loading",!0),this.$store.dispatch("openDialogUserid",t.userid).then(i=>{this.windowLarge&&(this.tabActive="dialog")}).catch(({msg:i})=>{$A.modalError(i)}).finally(i=>{this.$set(t,"loading",!1)}))},filterDialog(t){if($A.getDialogNum(t)>0||t.id==this.dialogId||t.top_at||t.todo_num>0)return!0;if(t.name===void 0||t.dialog_delete===1||!t.last_at)return!1;if(t.type=="group"&&["project","task"].includes(t.group_type)&&$A.isJson(t.group_info)){if(t.group_type=="task"&&t.group_info.complete_at){let i=Math.max($A.Date(t.last_at,!0),$A.Date(t.group_info.complete_at,!0));if(5*86400+i<$A.Time())return!1}if(t.group_info.deleted_at){let i=Math.max($A.Date(t.last_at,!0),$A.Date(t.group_info.deleted_at,!0));if(2*86400+i<$A.Time())return!1}if(t.group_info.archived_at){let i=Math.max($A.Date(t.last_at,!0),$A.Date(t.group_info.archived_at,!0));if(3*86400+i<$A.Time())return!1}}return!0},searchDialog(t){this.dialogLoad++,this.$store.dispatch("call",{url:"dialog/search",data:{key:t}}).then(({data:i})=>{this.dialogSearch=i}).finally(i=>{this.dialogLoad--})},getContactsList(t){this.contactsLoad++,this.$store.dispatch("call",{url:"users/search",data:{keys:{key:this.contactsKey},sorts:{az:"asc"},page:t,pagesize:50}}).then(({data:i})=>{this.contactsData===null&&(this.contactsData=[]),i.data.some(e=>{this.contactsData.findIndex(s=>s.userid==e.userid)===-1&&this.contactsData.push(e)}),this.contactsCurrentPage=i.current_page,this.contactsHasMorePages=i.current_page{this.contactsHasMorePages=!1}).finally(i=>{this.contactsLoad--,this.contactsLastTime=$A.Time()})},updateContactsList(t){this.__updateContactsList&&clearTimeout(this.__updateContactsList),t>-1&&(this.__updateContactsList=setTimeout(i=>{this.tabActive==="contacts"&&this.$store.dispatch("call",{url:"users/search",data:{updated_time:this.contactsLastTime,take:100}}).then(({data:e})=>{e.some(s=>{const a=this.contactsData.findIndex(o=>o.userid==s.userid);a>-1?this.contactsData.splice(a,1,s):this.contactsData.push(s)})}).finally(e=>{this.contactsLastTime=$A.Time()})},t))},formatTodoNum(t){return t>999?"999+":t>1?t:""},formatMsgEmojiDesc(t){return $A.isJson(t)&&$A.arrayLength(t.emoji)>0?t.emoji[0].symbol:null},lastMsgReadDone(t){if($A.isJson(t)){const{userid:i,percentage:e}=t;if(i===this.userId)return e===100?"md-done-all":"md-checkmark"}return null},scrollIntoActive(){this.$nextTick(()=>{if(this.windowLarge&&this.$refs.list){const t=this.$refs.list.querySelector(".active");t?$A.scrollIntoViewIfNeeded(t):this.cacheDialogs.find(({id:e})=>e==this.dialogId)&&this.dialogActive&&(this.dialogActive="",this.$nextTick(()=>{const e=this.$refs.list.querySelector(".active");e&&$A.scrollIntoViewIfNeeded(e)}))}})},handleLongpress(t,i){const e=$A.getAttr(i,"data-id"),s=this.dialogList.find(a=>a.id==e);!s||(this.operateVisible=!1,this.operateItem=$A.isJson(s)?s:{},this.$nextTick(()=>{const a=i.getBoundingClientRect(),o=this.$refs.list.$el.getBoundingClientRect();this.operateStyles={left:`${t.clientX-o.left}px`,top:`${a.top+this.windowScrollY}px`,height:a.height+"px"},this.operateVisible=!0}))},handleTopClick(){this.$store.dispatch("call",{url:"dialog/top",data:{dialog_id:this.operateItem.id}}).then(({data:t})=>{this.$store.dispatch("saveDialog",t),this.$nextTick(this.scrollIntoActive)}).catch(({msg:t})=>{$A.modalError(t)})},handleReadClick(){this.$store.dispatch("dialogMsgMark",{dialog_id:this.operateItem.id,type:$A.getDialogUnread(this.operateItem,!0)>0?"read":"unread"}).catch(({msg:t})=>{$A.modalError(t)})},handleSilenceClick(){this.silenceDisabled(this.operateItem)||this.$store.dispatch("call",{url:"dialog/msg/silence",data:{dialog_id:this.operateItem.id,type:this.operateItem.silence?"cancel":"set"}}).then(({data:t})=>{this.$store.dispatch("saveDialog",t)}).catch(({msg:t})=>{$A.modalError(t)})},updateDialogs(t){this.__updateDialogs&&clearTimeout(this.__updateDialogs),t>-1&&(this.__updateDialogs=setTimeout(i=>{this.tabActive==="dialog"&&this.$store.dispatch("getDialogs",{hideLoad:!0}).catch(()=>{})},t))},onOpenAppSetting(){$A.eeuiAppSendMessage({action:"gotoSetting"})},silenceDisabled(t){const{type:i,group_type:e}=t;return i==="group"&&e!=="user"},userTag({identity:t,department_name:i}){const e=[],s=i==null?void 0:i.split(",").find(a=>/\(M\)$/.test(a));return s&&e.push(s.replace(/\(M\)$/,"")+" "+this.$L("\u8D1F\u8D23\u4EBA")),t!=null&&t.includes("temp")&&e.push(this.$L("\u4E34\u65F6")),e.join(", ")}}},u={};var k=d(b,D,C,!1,I,null,null,null);function I(t){for(let i in u)this[i]=u[i]}var E=function(){return k.exports}();export{E as default}; diff --git a/public/js/build/password.d71ad0a5.js b/public/js/build/password.2a18a0cb.js similarity index 97% rename from public/js/build/password.d71ad0a5.js rename to public/js/build/password.2a18a0cb.js index 6bdf56ee3..355052159 100644 --- a/public/js/build/password.d71ad0a5.js +++ b/public/js/build/password.2a18a0cb.js @@ -1 +1 @@ -import{m as o,n as i}from"./app.90cb6e79.js";var n=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"setting-item submit"},[s("Form",{ref:"formDatum",attrs:{model:t.formDatum,rules:t.ruleDatum,labelPosition:t.formLabelPosition,labelWidth:t.formLabelWidth},nativeOn:{submit:function(r){r.preventDefault()}}},[t.userInfo.changepass?s("Alert",{staticStyle:{"margin-bottom":"32px"},attrs:{type:"warning",showIcon:""}},[t._v(t._s(t.$L("\u8BF7\u5148\u4FEE\u6539\u767B\u5F55\u5BC6\u7801\uFF01")))]):t._e(),s("FormItem",{attrs:{label:t.$L("\u65E7\u5BC6\u7801"),prop:"oldpass"}},[s("Input",{attrs:{type:"password"},model:{value:t.formDatum.oldpass,callback:function(r){t.$set(t.formDatum,"oldpass",r)},expression:"formDatum.oldpass"}})],1),s("FormItem",{attrs:{label:t.$L("\u65B0\u5BC6\u7801"),prop:"newpass"}},[s("Input",{attrs:{type:"password"},model:{value:t.formDatum.newpass,callback:function(r){t.$set(t.formDatum,"newpass",r)},expression:"formDatum.newpass"}})],1),s("FormItem",{attrs:{label:t.$L("\u786E\u8BA4\u65B0\u5BC6\u7801"),prop:"checkpass"}},[s("Input",{attrs:{type:"password"},model:{value:t.formDatum.checkpass,callback:function(r){t.$set(t.formDatum,"checkpass",r)},expression:"formDatum.checkpass"}})],1)],1),s("div",{staticClass:"setting-footer"},[s("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),s("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},m=[];const l={data(){return{loadIng:0,formDatum:{oldpass:"",newpass:"",checkpass:""},ruleDatum:{oldpass:[{required:!0,message:this.$L("\u8BF7\u8F93\u5165\u65E7\u5BC6\u7801\uFF01"),trigger:"change"},{type:"string",min:6,message:this.$L("\u5BC6\u7801\u957F\u5EA6\u81F3\u5C116\u4F4D\uFF01"),trigger:"change"}],newpass:[{validator:(t,e,s)=>{e===""?s(new Error(this.$L("\u8BF7\u8F93\u5165\u65B0\u5BC6\u7801\uFF01"))):(this.formDatum.checkpass!==""&&this.$refs.formDatum.validateField("checkpass"),s())},required:!0,trigger:"change"},{type:"string",min:6,message:this.$L("\u5BC6\u7801\u957F\u5EA6\u81F3\u5C116\u4F4D\uFF01"),trigger:"change"}],checkpass:[{validator:(t,e,s)=>{e===""?s(new Error(this.$L("\u8BF7\u91CD\u65B0\u8F93\u5165\u65B0\u5BC6\u7801\uFF01"))):e!==this.formDatum.newpass?s(new Error(this.$L("\u4E24\u6B21\u5BC6\u7801\u8F93\u5165\u4E0D\u4E00\u81F4\uFF01"))):s()},required:!0,trigger:"change"}]}}},computed:{...o(["userInfo","formLabelPosition","formLabelWidth"])},methods:{submitForm(){this.$refs.formDatum.validate(t=>{t&&(this.loadIng++,this.$store.dispatch("call",{url:"users/editpass",data:this.formDatum}).then(({data:e})=>{$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.$store.dispatch("saveUserInfo",e),this.$refs.formDatum.resetFields()}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.loadIng--}))})},resetForm(){this.$refs.formDatum.resetFields()}}},a={};var u=i(l,n,m,!1,p,null,null,null);function p(t){for(let e in a)this[e]=a[e]}var f=function(){return u.exports}();export{f as default}; +import{m as o,n as i}from"./app.feefc813.js";var n=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"setting-item submit"},[s("Form",{ref:"formDatum",attrs:{model:t.formDatum,rules:t.ruleDatum,labelPosition:t.formLabelPosition,labelWidth:t.formLabelWidth},nativeOn:{submit:function(r){r.preventDefault()}}},[t.userInfo.changepass?s("Alert",{staticStyle:{"margin-bottom":"32px"},attrs:{type:"warning",showIcon:""}},[t._v(t._s(t.$L("\u8BF7\u5148\u4FEE\u6539\u767B\u5F55\u5BC6\u7801\uFF01")))]):t._e(),s("FormItem",{attrs:{label:t.$L("\u65E7\u5BC6\u7801"),prop:"oldpass"}},[s("Input",{attrs:{type:"password"},model:{value:t.formDatum.oldpass,callback:function(r){t.$set(t.formDatum,"oldpass",r)},expression:"formDatum.oldpass"}})],1),s("FormItem",{attrs:{label:t.$L("\u65B0\u5BC6\u7801"),prop:"newpass"}},[s("Input",{attrs:{type:"password"},model:{value:t.formDatum.newpass,callback:function(r){t.$set(t.formDatum,"newpass",r)},expression:"formDatum.newpass"}})],1),s("FormItem",{attrs:{label:t.$L("\u786E\u8BA4\u65B0\u5BC6\u7801"),prop:"checkpass"}},[s("Input",{attrs:{type:"password"},model:{value:t.formDatum.checkpass,callback:function(r){t.$set(t.formDatum,"checkpass",r)},expression:"formDatum.checkpass"}})],1)],1),s("div",{staticClass:"setting-footer"},[s("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),s("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},m=[];const l={data(){return{loadIng:0,formDatum:{oldpass:"",newpass:"",checkpass:""},ruleDatum:{oldpass:[{required:!0,message:this.$L("\u8BF7\u8F93\u5165\u65E7\u5BC6\u7801\uFF01"),trigger:"change"},{type:"string",min:6,message:this.$L("\u5BC6\u7801\u957F\u5EA6\u81F3\u5C116\u4F4D\uFF01"),trigger:"change"}],newpass:[{validator:(t,e,s)=>{e===""?s(new Error(this.$L("\u8BF7\u8F93\u5165\u65B0\u5BC6\u7801\uFF01"))):(this.formDatum.checkpass!==""&&this.$refs.formDatum.validateField("checkpass"),s())},required:!0,trigger:"change"},{type:"string",min:6,message:this.$L("\u5BC6\u7801\u957F\u5EA6\u81F3\u5C116\u4F4D\uFF01"),trigger:"change"}],checkpass:[{validator:(t,e,s)=>{e===""?s(new Error(this.$L("\u8BF7\u91CD\u65B0\u8F93\u5165\u65B0\u5BC6\u7801\uFF01"))):e!==this.formDatum.newpass?s(new Error(this.$L("\u4E24\u6B21\u5BC6\u7801\u8F93\u5165\u4E0D\u4E00\u81F4\uFF01"))):s()},required:!0,trigger:"change"}]}}},computed:{...o(["userInfo","formLabelPosition","formLabelWidth"])},methods:{submitForm(){this.$refs.formDatum.validate(t=>{t&&(this.loadIng++,this.$store.dispatch("call",{url:"users/editpass",data:this.formDatum}).then(({data:e})=>{$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.$store.dispatch("saveUserInfo",e),this.$refs.formDatum.resetFields()}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.loadIng--}))})},resetForm(){this.$refs.formDatum.resetFields()}}},a={};var u=i(l,n,m,!1,p,null,null,null);function p(t){for(let e in a)this[e]=a[e]}var f=function(){return u.exports}();export{f as default}; diff --git a/public/js/build/personal.d8be3746.js b/public/js/build/personal.59098901.js similarity index 96% rename from public/js/build/personal.d8be3746.js rename to public/js/build/personal.59098901.js index 186915a58..8e5f500c0 100644 --- a/public/js/build/personal.d8be3746.js +++ b/public/js/build/personal.59098901.js @@ -1 +1 @@ -import{I as i}from"./ImgUpload.466e5bce.js";import{m as o,n}from"./app.90cb6e79.js";var m=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"setting-item submit"},[e("Form",{ref:"formData",attrs:{model:t.formData,rules:t.ruleData,labelPosition:t.formLabelPosition,labelWidth:t.formLabelWidth},nativeOn:{submit:function(a){a.preventDefault()}}},[e("FormItem",{attrs:{label:t.$L("\u5934\u50CF"),prop:"userimg"}},[e("ImgUpload",{attrs:{num:1,width:512,height:512,whcut:1},model:{value:t.formData.userimg,callback:function(a){t.$set(t.formData,"userimg",a)},expression:"formData.userimg"}}),e("span",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A200x200")))])],1),e("FormItem",{attrs:{label:t.$L("\u90AE\u7BB1"),prop:"email"}},[e("Input",{attrs:{disabled:""},model:{value:t.userInfo.email,callback:function(a){t.$set(t.userInfo,"email",a)},expression:"userInfo.email"}})],1),e("FormItem",{attrs:{label:t.$L("\u7535\u8BDD"),prop:"tel"}},[e("Input",{attrs:{maxlength:20,placeholder:t.$L("\u8BF7\u8F93\u5165\u8054\u7CFB\u7535\u8BDD")},model:{value:t.formData.tel,callback:function(a){t.$set(t.formData,"tel",a)},expression:"formData.tel"}})],1),e("FormItem",{attrs:{label:t.$L("\u6635\u79F0"),prop:"nickname"}},[e("Input",{attrs:{maxlength:20,placeholder:t.$L("\u8BF7\u8F93\u5165\u6635\u79F0")},model:{value:t.formData.nickname,callback:function(a){t.$set(t.formData,"nickname",a)},expression:"formData.nickname"}})],1),e("FormItem",{attrs:{label:t.$L("\u804C\u4F4D/\u804C\u79F0"),prop:"profession"}},[e("Input",{attrs:{maxlength:20,placeholder:t.$L("\u8BF7\u8F93\u5165\u804C\u4F4D/\u804C\u79F0")},model:{value:t.formData.profession,callback:function(a){t.$set(t.formData,"profession",a)},expression:"formData.profession"}})],1)],1),e("div",{staticClass:"setting-footer"},[e("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),e("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},l=[];const f={components:{ImgUpload:i},data(){return{loadIng:0,formData:{userimg:"",email:"",tel:"",nickname:"",profession:""},ruleData:{email:[{required:!0,message:this.$L("\u8BF7\u8F93\u5165\u90AE\u7BB1\u5730\u5740\uFF01"),trigger:"change"}],tel:[{required:!0,message:this.$L("\u8BF7\u8F93\u5165\u8054\u7CFB\u7535\u8BDD\uFF01"),trigger:"change"},{type:"string",min:6,message:this.$L("\u7535\u8BDD\u957F\u5EA6\u81F3\u5C116\u4F4D\uFF01"),trigger:"change"}],nickname:[{required:!0,message:this.$L("\u8BF7\u8F93\u5165\u6635\u79F0\uFF01"),trigger:"change"},{type:"string",min:2,message:this.$L("\u6635\u79F0\u957F\u5EA6\u81F3\u5C112\u4F4D\uFF01"),trigger:"change"}]}}},mounted(){this.initData()},computed:{...o(["userInfo","formLabelPosition","formLabelWidth"])},watch:{userInfo(){this.initData()}},methods:{initData(){this.$set(this.formData,"userimg",$A.strExists(this.userInfo.userimg,"/avatar")?"":this.userInfo.userimg),this.$set(this.formData,"email",this.userInfo.email),this.$set(this.formData,"tel",this.userInfo.tel),this.$set(this.formData,"nickname",typeof this.userInfo.nickname_original!="undefined"?this.userInfo.nickname_original:this.userInfo.nickname),this.$set(this.formData,"profession",this.userInfo.profession),this.formData_bak=$A.cloneJSON(this.formData)},submitForm(){this.$refs.formData.validate(t=>{if(t){let s=$A.cloneJSON(this.formData);$A.count(s.userimg)==0&&(s.userimg=""),this.loadIng++,this.$store.dispatch("call",{url:"users/editdata",data:s}).then(()=>{$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.$store.dispatch("getUserInfo").catch(()=>{})}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.loadIng--})}})},resetForm(){this.formData=$A.cloneJSON(this.formData_bak)}}},r={};var u=n(f,m,l,!1,c,null,null,null);function c(t){for(let s in r)this[s]=r[s]}var g=function(){return u.exports}();export{g as default}; +import{I as i}from"./ImgUpload.e60c7ecf.js";import{m as o,n}from"./app.feefc813.js";var m=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"setting-item submit"},[e("Form",{ref:"formData",attrs:{model:t.formData,rules:t.ruleData,labelPosition:t.formLabelPosition,labelWidth:t.formLabelWidth},nativeOn:{submit:function(a){a.preventDefault()}}},[e("FormItem",{attrs:{label:t.$L("\u5934\u50CF"),prop:"userimg"}},[e("ImgUpload",{attrs:{num:1,width:512,height:512,whcut:1},model:{value:t.formData.userimg,callback:function(a){t.$set(t.formData,"userimg",a)},expression:"formData.userimg"}}),e("span",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A200x200")))])],1),e("FormItem",{attrs:{label:t.$L("\u90AE\u7BB1"),prop:"email"}},[e("Input",{attrs:{disabled:""},model:{value:t.userInfo.email,callback:function(a){t.$set(t.userInfo,"email",a)},expression:"userInfo.email"}})],1),e("FormItem",{attrs:{label:t.$L("\u7535\u8BDD"),prop:"tel"}},[e("Input",{attrs:{maxlength:20,placeholder:t.$L("\u8BF7\u8F93\u5165\u8054\u7CFB\u7535\u8BDD")},model:{value:t.formData.tel,callback:function(a){t.$set(t.formData,"tel",a)},expression:"formData.tel"}})],1),e("FormItem",{attrs:{label:t.$L("\u6635\u79F0"),prop:"nickname"}},[e("Input",{attrs:{maxlength:20,placeholder:t.$L("\u8BF7\u8F93\u5165\u6635\u79F0")},model:{value:t.formData.nickname,callback:function(a){t.$set(t.formData,"nickname",a)},expression:"formData.nickname"}})],1),e("FormItem",{attrs:{label:t.$L("\u804C\u4F4D/\u804C\u79F0"),prop:"profession"}},[e("Input",{attrs:{maxlength:20,placeholder:t.$L("\u8BF7\u8F93\u5165\u804C\u4F4D/\u804C\u79F0")},model:{value:t.formData.profession,callback:function(a){t.$set(t.formData,"profession",a)},expression:"formData.profession"}})],1)],1),e("div",{staticClass:"setting-footer"},[e("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),e("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},l=[];const f={components:{ImgUpload:i},data(){return{loadIng:0,formData:{userimg:"",email:"",tel:"",nickname:"",profession:""},ruleData:{email:[{required:!0,message:this.$L("\u8BF7\u8F93\u5165\u90AE\u7BB1\u5730\u5740\uFF01"),trigger:"change"}],tel:[{required:!0,message:this.$L("\u8BF7\u8F93\u5165\u8054\u7CFB\u7535\u8BDD\uFF01"),trigger:"change"},{type:"string",min:6,message:this.$L("\u7535\u8BDD\u957F\u5EA6\u81F3\u5C116\u4F4D\uFF01"),trigger:"change"}],nickname:[{required:!0,message:this.$L("\u8BF7\u8F93\u5165\u6635\u79F0\uFF01"),trigger:"change"},{type:"string",min:2,message:this.$L("\u6635\u79F0\u957F\u5EA6\u81F3\u5C112\u4F4D\uFF01"),trigger:"change"}]}}},mounted(){this.initData()},computed:{...o(["userInfo","formLabelPosition","formLabelWidth"])},watch:{userInfo(){this.initData()}},methods:{initData(){this.$set(this.formData,"userimg",$A.strExists(this.userInfo.userimg,"/avatar")?"":this.userInfo.userimg),this.$set(this.formData,"email",this.userInfo.email),this.$set(this.formData,"tel",this.userInfo.tel),this.$set(this.formData,"nickname",typeof this.userInfo.nickname_original!="undefined"?this.userInfo.nickname_original:this.userInfo.nickname),this.$set(this.formData,"profession",this.userInfo.profession),this.formData_bak=$A.cloneJSON(this.formData)},submitForm(){this.$refs.formData.validate(t=>{if(t){let s=$A.cloneJSON(this.formData);$A.count(s.userimg)==0&&(s.userimg=""),this.loadIng++,this.$store.dispatch("call",{url:"users/editdata",data:s}).then(()=>{$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.$store.dispatch("getUserInfo").catch(()=>{})}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.loadIng--})}})},resetForm(){this.formData=$A.cloneJSON(this.formData_bak)}}},r={};var u=n(f,m,l,!1,c,null,null,null);function c(t){for(let s in r)this[s]=r[s]}var g=function(){return u.exports}();export{g as default}; diff --git a/public/js/build/preview.a850e707.js b/public/js/build/preview.a850e707.js deleted file mode 100644 index 9c0816007..000000000 --- a/public/js/build/preview.a850e707.js +++ /dev/null @@ -1 +0,0 @@ -import"./app.90cb6e79.js";import{p as a}from"./app.90cb6e79.js";export{a as default}; diff --git a/public/js/build/preview.ae4f93f9.js b/public/js/build/preview.ae4f93f9.js new file mode 100644 index 000000000..ce2cc95f1 --- /dev/null +++ b/public/js/build/preview.ae4f93f9.js @@ -0,0 +1 @@ +import"./app.feefc813.js";import{p as a}from"./app.feefc813.js";export{a as default}; diff --git a/public/js/build/pro.38bd30b6.js b/public/js/build/pro.1c8d65b0.js similarity index 99% rename from public/js/build/pro.38bd30b6.js rename to public/js/build/pro.1c8d65b0.js index dfb5cadef..75218ccc7 100644 --- a/public/js/build/pro.38bd30b6.js +++ b/public/js/build/pro.1c8d65b0.js @@ -1 +1 @@ -import{n as l,l as r,a as c,b as d,s as o}from"./app.90cb6e79.js";import{U as p}from"./UpdateLog.8c1c1fb4.js";var u=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"page-plans no-dark-content"},[e("PageTitle",{attrs:{title:t.appTitle}}),e("div",{staticClass:"top-bg"}),e("div",{staticClass:"top-menu"},[e("div",{staticClass:"header"},[e("div",{staticClass:"z-row"},[e("div",{staticClass:"header-col-sub"},[e("div",{staticClass:"logo",on:{click:t.goHome}})]),e("div",{staticClass:"z-1"},[e("dl",[e("dd",[e("div",{staticClass:"right-info",on:{click:t.goHome}},[t._v(t._s(t.$L("\u8FD4\u56DE\u9996\u9875")))]),t.showItem.updateLog?e("div",{staticClass:"right-info",on:{click:function(s){t.uplogShow=!0}}},[t._v(t._s(t.$L("\u66F4\u65B0\u65E5\u5FD7")))]):t._e(),e("a",{staticClass:"right-info item-center",attrs:{target:"_blank",href:"https://github.com/kuaifan/dootask"}},[e("Icon",{staticClass:"right-icon",attrs:{type:"logo-github"}})],1),e("Dropdown",{staticClass:"right-info",attrs:{trigger:"click"},on:{"on-click":t.onLanguage}},[e("div",{staticClass:"item-center"},[e("Icon",{staticClass:"right-icon",attrs:{type:"md-globe"}}),e("Icon",{attrs:{type:"md-arrow-dropdown"}})],1),e("Dropdown-menu",{attrs:{slot:"list"},slot:"list"},t._l(t.languageList,function(s,n){return e("Dropdown-item",{key:n,attrs:{name:n,selected:t.languageType===n}},[t._v(t._s(s))])}),1)],1)],1)])])])])]),e("div",{staticClass:"banner"},[e("div",{staticClass:"banner-title"},[t._v(" "+t._s(t.$L("\u9009\u62E9\u9002\u5408\u60A8\u7684\u7248\u672C"))+" ")]),e("div",{staticClass:"banner-desc"},[t._v(" "+t._s(t.$L("DooTask \u662F\u65B0\u4E00\u4EE3\u56E2\u961F\u534F\u4F5C\u5E73\u53F0\uFF0C\u60A8\u53EF\u4EE5\u6839\u636E\u60A8\u56E2\u961F\u7684\u9700\u6C42\uFF0C\u9009\u62E9\u5408\u9002\u7684\u4EA7\u54C1\u529F\u80FD\u3002"))+" "),e("br"),t._v(" "+t._s(t.$L("\u4ECE\u73B0\u5728\u5F00\u59CB\uFF0CDooTask \u4E3A\u4E16\u754C\u5404\u5730\u7684\u56E2\u961F\u63D0\u4F9B\u652F\u6301\uFF0C\u63A2\u7D22\u9002\u5408\u60A8\u7684\u9009\u9879\u3002"))+" ")]),e("div",{staticClass:"plans-table"},[e("div",{staticClass:"plans-table-bd plans-table-info"},[e("div",{staticClass:"plans-table-item first"},[e("div",{staticClass:"plans-table-info-th"}),e("div",{staticClass:"plans-table-info-price"},[e("em",[t._v(t._s(t.$L("\u4EF7\u683C")))])]),e("div",{staticClass:"plans-table-info-desc"},[e("em",[t._v(t._s(t.$L("\u6982\u8FF0")))])]),e("div",{staticClass:"plans-table-info-desc"},[e("em",[t._v(t._s(t.$L("\u4EBA\u6570")))])]),e("div",{staticClass:"plans-table-info-btn"})]),e("div",{staticClass:"plans-table-item",class:{active:t.active==1},on:{mouseenter:function(s){t.active=1}}},[e("div",{staticClass:"plans-table-info-th"},[t._v(t._s(t.$L("\u793E\u533A\u7248")))]),e("div",{staticClass:"plans-table-info-price"},[e("ImgView",{staticClass:"plans-version",attrs:{src:"images/pro/free.png"}}),t._m(0)],1),e("div",{staticClass:"plans-table-info-desc"},[t._v(t._s(t.$L("\u76F8\u6BD4Pro\u66F4\u65B0\u5468\u671F\u957F\u4E9B")))]),e("div",{staticClass:"plans-table-info-desc"},[t._v(t._s(t.$L("\u65E0\u9650\u5236")))]),e("div",{staticClass:"plans-table-info-btn"},[e("div",{staticClass:"plans-info-btns"},[e("a",{staticClass:"github",attrs:{href:"https://github.com/kuaifan/dootask",target:"_blank"}},[e("Icon",{attrs:{type:"logo-github"}})],1)])])]),e("div",{staticClass:"plans-table-item",class:{active:t.active==2},on:{mouseenter:function(s){t.active=2}}},[e("div",{staticClass:"plans-table-info-th"},[t._v(t._s(t.$L("Pro\u7248"))+" "),e("span",[t._v(t._s(t.$L("\u63A8\u8350")))])]),e("div",{staticClass:"plans-table-info-price"},[e("ImgView",{staticClass:"plans-version",attrs:{src:"images/pro/pro.png"}}),t._m(1)],1),e("div",{staticClass:"plans-table-info-desc"},[t._v(t._s(t.$L("\u62E5\u6709\u6700\u65B0\u7248\u672C\u6240\u6709\u529F\u80FD")))]),e("div",{staticClass:"plans-table-info-desc"},[t._v(t._s(t.$L("\u65E0\u9650\u5236")))]),e("div",{staticClass:"plans-table-info-btn"},[e("Tooltip",{attrs:{content:t.$L("\u5E10\u53F7\uFF1Aadmin\u3001\u5BC6\u7801\uFF1A123456"),transfer:""}},[e("a",{staticClass:"btn",attrs:{href:"https://www.dootask.com",target:"_blank"}},[t._v(t._s(t.$L("\u4F53\u9A8CDEMO")))])])],1)]),e("div",{staticClass:"plans-table-item",class:{active:t.active==3},on:{mouseenter:function(s){t.active=3}}},[e("div",{staticClass:"plans-table-info-th"},[t._v(t._s(t.$L("\u5B9A\u5236\u7248")))]),e("div",{staticClass:"plans-table-info-price"},[e("ImgView",{staticClass:"plans-version",attrs:{src:"images/pro/custom.png"}}),e("div",{staticClass:"currency"},[e("em",{staticClass:"custom"},[t._v(t._s(t.$L("\u81EA\u5B9A\u4E49")))])])],1),e("div",{staticClass:"plans-table-info-desc"},[t._v(t._s(t.$L("\u6839\u636E\u60A8\u7684\u9700\u6C42\u91CF\u8EAB\u5B9A\u5236")))]),e("div",{staticClass:"plans-table-info-desc"},[t._v(t._s(t.$L("\u65E0\u9650\u5236")))]),e("div",{staticClass:"plans-table-info-btn"},[e("a",{staticClass:"btn btn-contact",attrs:{href:"javascript:void(0)"},on:{click:function(s){t.contactShow=!0}}},[t._v(t._s(t.$L("\u8054\u7CFB\u6211\u4EEC")))])])])]),e("div",{staticClass:"plans-accordion-head",class:{"plans-accordion-close":!t.body1},on:{click:function(s){t.body1=!t.body1}}},[e("div",{staticClass:"first"},[e("span",[t._v(t._s(t.$L("\u5E94\u7528\u652F\u6301")))])]),e("div",{staticClass:"plans-table-item",class:{active:t.active==1},on:{mouseenter:function(s){t.active=1}}}),e("div",{staticClass:"plans-table-item",class:{active:t.active==2},on:{mouseenter:function(s){t.active=2}}}),e("div",{staticClass:"plans-table-item",class:{active:t.active==3},on:{mouseenter:function(s){t.active=3}}}),e("span",[e("Icon",{attrs:{type:"ios-arrow-down"}})],1)]),t.body1?e("div",{staticClass:"plans-accordion-body"},[e("div",{staticClass:"plans-table-bd plans-table-app"},[e("div",{staticClass:"plans-table-item first"},[e("div",{staticClass:"plans-table-td"},[t._v(t._s(t.$L("\u9879\u76EE\u7BA1\u7406")))]),e("div",{staticClass:"plans-table-td"},[t._v(t._s(t.$L("\u6587\u4EF6\u7BA1\u7406")))]),e("div",{staticClass:"plans-table-td"},[t._v(t._s(t.$L("\u56E2\u961F\u7BA1\u7406")))]),e("div",{staticClass:"plans-table-td"},[t._v(t._s(t.$L("\u5373\u65F6\u804A\u5929")))]),e("div",{staticClass:"plans-table-td"},[t._v(t._s(t.$L("\u5B50\u4EFB\u52A1")))]),e("div",{staticClass:"plans-table-td"},[t._v(t._s(t.$L("\u56FD\u9645\u5316")))]),e("div",{staticClass:"plans-table-td"},[t._v(t._s(t.$L("\u7518\u7279\u56FE")))]),e("div",{staticClass:"plans-table-td"},[t._v(t._s(t.$L("\u4EFB\u52A1\u52A8\u6001")))]),e("div",{staticClass:"plans-table-td"},[t._v(t._s(t.$L("\u5BFC\u51FA\u4EFB\u52A1")))]),e("div",{staticClass:"plans-table-td"},[t._v(t._s(t.$L("\u65E5\u7A0B")))]),e("div",{staticClass:"plans-table-td"},[t._v(t._s(t.$L("\u5468\u62A5/\u65E5\u62A5")))]),e("div",{staticClass:"plans-table-td"},[t._v(t._s(t.$L("\u521B\u5EFA\u7FA4\u804A")))]),e("div",{staticClass:"plans-table-td"},[t._v(t._s(t.$L("\u9879\u76EE\u7FA4\u804A")))]),e("div",{staticClass:"plans-table-td"},[t._v(t._s(t.$L("\u9879\u76EE\u641C\u7D22")))]),e("div",{staticClass:"plans-table-td"},[t._v(t._s(t.$L("\u4EFB\u52A1\u7C7B\u578B")))]),e("div",{staticClass:"plans-table-td"},[t._v(t._s(t.$L("\u6587\u4EF6\u641C\u7D22")))]),e("div",{staticClass:"plans-table-td"},[t._v(t._s(t.$L("Mac/PC\u5BA2\u6237\u7AEF")))]),e("div",{staticClass:"plans-table-td"},[t._v(t._s(t.$L("iOS/Android\u5BA2\u6237\u7AEF")))])]),e("div",{staticClass:"plans-table-item",class:{active:t.active==1},on:{mouseenter:function(s){t.active=1}}},[e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1)]),e("div",{staticClass:"plans-table-item",class:{active:t.active==2},on:{mouseenter:function(s){t.active=2}}},[e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1)]),e("div",{staticClass:"plans-table-item",class:{active:t.active==3},on:{mouseenter:function(s){t.active=3}}},[e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1)])])]):t._e(),e("div",{staticClass:"plans-accordion-head",class:{"plans-accordion-close":!t.body2},on:{click:function(s){t.body2=!t.body2}}},[e("div",{staticClass:"first"},[e("span",[t._v(t._s(t.$L("\u670D\u52A1\u652F\u6301")))])]),e("div",{staticClass:"plans-table-item",class:{active:t.active==1},on:{mouseenter:function(s){t.active=1}}}),e("div",{staticClass:"plans-table-item",class:{active:t.active==2},on:{mouseenter:function(s){t.active=2}}}),e("div",{staticClass:"plans-table-item",class:{active:t.active==3},on:{mouseenter:function(s){t.active=3}}}),e("span",[e("Icon",{attrs:{type:"ios-arrow-down"}})],1)]),t.body2?e("div",{staticClass:"plans-accordion-body"},[e("div",{staticClass:"plans-table-bd plans-table-app plans-table-service"},[e("div",{staticClass:"plans-table-item first"},[e("div",{staticClass:"plans-table-td"},[t._v(t._s(t.$L("\u81EA\u52A9\u652F\u6301"))+" "),e("span",[t._v(t._s(t.$L("\uFF08Issues/\u793E\u7FA4\uFF09")))])]),e("div",{staticClass:"plans-table-td"},[t._v(t._s(t.$L("\u652F\u6301\u79C1\u6709\u5316\u90E8\u7F72")))]),e("div",{staticClass:"plans-table-td"},[t._v(t._s(t.$L("\u7ED1\u5B9A\u81EA\u6709\u57DF\u540D")))]),e("div",{staticClass:"plans-table-td"},[t._v(t._s(t.$L("\u4E8C\u6B21\u5F00\u53D1")))]),e("div",{staticClass:"plans-table-td"},[t._v(t._s(t.$L("\u4E8C\u6B21\u5F00\u53D1\u54A8\u8BE2\u670D\u52A1")))]),e("div",{staticClass:"plans-table-td"},[t._v(t._s(t.$L("\u5141\u8BB8\u9690\u85CF\u6216\u5B9A\u5236\u4EA7\u54C1\u540D")))]),e("div",{staticClass:"plans-table-td"},[t._v(t._s(t.$L("\u5728\u7EBF\u54A8\u8BE2\u652F\u6301")))]),e("div",{staticClass:"plans-table-td"},[t._v(t._s(t.$L("\u7535\u8BDD\u54A8\u8BE2\u652F\u6301")))]),e("div",{staticClass:"plans-table-td"},[t._v(t._s(t.$L("\u4E2D\u82F1\u6587\u90AE\u4EF6\u652F\u6301")))]),e("div",{staticClass:"plans-table-td"},[t._v(t._s(t.$L("\u4E00\u5BF9\u4E00\u5BA2\u6237\u987E\u95EE")))]),e("div",{staticClass:"plans-table-td"},[t._v(t._s(t.$L("\u4EA7\u54C1\u57F9\u8BAD")))]),e("div",{staticClass:"plans-table-td"},[t._v(t._s(t.$L("\u4E0A\u95E8\u652F\u6301")))]),e("div",{staticClass:"plans-table-td"},[t._v(t._s(t.$L("\u4E13\u5C5E\u5BA2\u6237\u6210\u529F\u7ECF\u7406")))]),e("div",{staticClass:"plans-table-td"},[t._v(t._s(t.$L("\u514D\u8D39\u63D0\u4F9B\u4E00\u6B21\u5185\u8BAD")))]),e("div",{staticClass:"plans-table-td"},[t._v(t._s(t.$L("\u660E\u661F\u5BA2\u6237\u6848\u4F8B")))]),e("div",{staticClass:"plans-table-info-btn"})]),e("div",{staticClass:"plans-table-item",class:{active:t.active==1},on:{mouseenter:function(s){t.active=1}}},[e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),t._m(2),t._m(3),t._m(4),t._m(5),t._m(6),t._m(7),t._m(8),t._m(9),t._m(10),t._m(11),t._m(12),e("div",{staticClass:"plans-table-info-btn"},[e("div",{staticClass:"plans-info-btns"},[e("a",{staticClass:"github",attrs:{href:"https://github.com/kuaifan/dootask",target:"_blank"}},[e("Icon",{attrs:{type:"logo-github"}})],1)])])]),e("div",{staticClass:"plans-table-item",class:{active:t.active==2},on:{mouseenter:function(s){t.active=2}}},[e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),t._m(13),t._m(14),t._m(15),t._m(16),e("div",{staticClass:"plans-table-info-btn"},[e("Tooltip",{attrs:{content:t.$L("\u5E10\u53F7\uFF1Aadmin\u3001\u5BC6\u7801\uFF1A123456"),transfer:""}},[e("a",{staticClass:"btn",attrs:{href:"https://www.dootask.com",target:"_blank"}},[t._v(t._s(t.$L("\u4F53\u9A8CDEMO")))])])],1)]),e("div",{staticClass:"plans-table-item",class:{active:t.active==3},on:{mouseenter:function(s){t.active=3}}},[e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-info-btn"},[e("a",{staticClass:"btn btn-contact",attrs:{href:"javascript:void(0)"},on:{click:function(s){t.contactShow=!0}}},[t._v(t._s(t.$L("\u8054\u7CFB\u6211\u4EEC")))])])])])]):t._e()])]),e("div",{staticClass:"container-fluid"},[e("div",{staticClass:"fluid-info fluid-info-1"},[e("div",{staticClass:"fluid-info-item"},[e("div",{staticClass:"info-title"},[t._v(" "+t._s(t.$L("\u591A\u79CD\u90E8\u7F72\u65B9\u5F0F\u968F\u5FC3\u9009\u62E9"))+" ")]),e("div",{staticClass:"info-function"},[e("div",{staticClass:"func-item"},[e("div",{staticClass:"image"},[e("ImgView",{attrs:{src:"images/pro/1.svg"}})],1),e("div",{staticClass:"func-desc"},[e("div",{staticClass:"desc-title"},[t._v(" "+t._s(t.$L("\u516C\u6709\u4E91"))+" ")]),e("div",{staticClass:"desc-text"},[t._v(" "+t._s(t.$L("\u65E0\u9700\u672C\u5730\u73AF\u5883\u51C6\u5907\uFF0C\u6309\u9700\u8D2D\u4E70\u5E10\u6237\uFF0C\u4E13\u4E1A\u56E2\u961F\u63D0\u4F9B\u8FD0\u7EF4\u4FDD\u969C\u670D\u52A1\uFF0C\u4E24\u5468\u4E00\u6B21\u7684\u7248\u672C\u8FED\u4EE3"))+" ")])])]),e("div",{staticClass:"func-item"},[e("div",{staticClass:"image"},[e("ImgView",{attrs:{src:"images/pro/2.svg"}})],1),e("div",{staticClass:"func-desc"},[e("div",{staticClass:"desc-title"},[t._v(" "+t._s(t.$L("\u79C1\u6709\u4E91"))+" ")]),e("div",{staticClass:"desc-text"},[t._v(" "+t._s(t.$L("\u4F01\u4E1A\u9694\u79BB\u7684\u4E91\u670D\u52A1\u5668\u73AF\u5883\uFF0C\u9AD8\u53EF\u7528\u6027\uFF0C\u7F51\u7EDC\u53CA\u5E94\u7528\u5C42\u5B8C\u6574\u9694\u79BB\uFF0C\u6570\u636E\u9AD8\u5EA6\u81EA\u4E3B\u53EF\u63A7"))+" ")])])]),e("div",{staticClass:"func-item"},[e("div",{staticClass:"image image-80"},[e("ImgView",{attrs:{src:"images/pro/3.svg"}})],1),e("div",{staticClass:"func-desc"},[e("div",{staticClass:"desc-title"},[t._v(" "+t._s(t.$L("\u672C\u5730\u670D\u52A1\u5668"))+" ")]),e("div",{staticClass:"desc-text"},[t._v(" "+t._s(t.$L("\u57FA\u4E8E Docker \u7684\u5BB9\u5668\u5316\u90E8\u7F72\uFF0C\u652F\u6301\u9AD8\u53EF\u7528\u96C6\u7FA4\uFF0C\u5FEB\u901F\u5F39\u6027\u6269\u5C55\uFF0C\u6570\u636E\u9AD8\u5EA6\u81EA\u4E3B\u53EF\u63A7"))+" ")])])])])])]),e("div",{staticClass:"fluid-info"},[e("div",{staticClass:"fluid-info-item"},[e("div",{staticClass:"info-title"},[t._v(" "+t._s(t.$L("\u5B8C\u5584\u7684\u670D\u52A1\u652F\u6301\u4F53\u7CFB"))+" ")]),e("div",{staticClass:"info-function"},[e("div",{staticClass:"func-item"},[e("div",{staticClass:"image"},[e("ImgView",{attrs:{src:"images/pro/4.svg"}})],1),e("div",{staticClass:"func-desc"},[e("div",{staticClass:"desc-title"},[t._v(" "+t._s(t.$L("1:1\u5BA2\u6237\u6210\u529F\u987E\u95EE"))+" ")]),e("div",{staticClass:"desc-text"},[t._v(" "+t._s(t.$L("\u8D44\u6DF1\u5BA2\u6237\u6210\u529F\u987E\u95EE\u5BF9\u4F01\u4E1A\u8FDB\u884C\u8C03\u7814\u3001\u6C9F\u901A\u9700\u6C42\u3001\u5236\u5B9A\u4E2A\u6027\u5316\u7684\u89E3\u51B3\u65B9\u6848\uFF0C\u5E2E\u52A9\u4F01\u4E1A\u843D\u5730"))+" ")])])]),e("div",{staticClass:"func-item"},[e("div",{staticClass:"image image-80"},[e("ImgView",{attrs:{src:"images/pro/5.svg"}})],1),e("div",{staticClass:"func-desc"},[e("div",{staticClass:"desc-title"},[t._v(" "+t._s(t.$L("\u5B8C\u5584\u7684\u57F9\u8BAD\u4F53\u7CFB"))+" ")]),e("div",{staticClass:"desc-text"},[t._v(" "+t._s(t.$L("\u6839\u636E\u9700\u6C42\u5B9A\u5236\u57F9\u8BAD\u5185\u5BB9\uFF0C\u4E3A\u4E0D\u540C\u89D2\u8272\u7ED9\u51FA\u4E13\u5C5E\u57F9\u8BAD\u65B9\u6848\uFF0C\u7EBF\u4E0A\u7EBF\u4E0B\u57F9\u8BAD\u6E20\u9053\u5168\u8986\u76D6"))+" ")])])]),e("div",{staticClass:"func-item"},[e("div",{staticClass:"image"},[e("ImgView",{attrs:{src:"images/pro/6.svg"}})],1),e("div",{staticClass:"func-desc"},[e("div",{staticClass:"desc-title"},[t._v(" "+t._s(t.$L("\u5168\u9762\u7684\u652F\u6301\u670D\u52A1"))+" ")]),e("div",{staticClass:"desc-text"},[t._v(" "+t._s(t.$L("\u591A\u79CD\u652F\u6301\u670D\u52A1\u8BA9\u4F01\u4E1A\u65E0\u540E\u987E\u4E4B\u5FE7\uFF0C7x24 \u7EBF\u4E0A\u652F\u6301\u3001\u5728\u7EBF\u5DE5\u5355\u3001\u4E2D\u82F1\u6587\u90AE\u4EF6\u652F\u6301\u3001\u4E0A\u95E8\u652F\u6301"))+" ")])])])])])]),e("div",{staticClass:"fluid-info fluid-info-3"},[e("div",{staticClass:"fluid-info-item"},[e("div",{staticClass:"info-title"},[t._v(" "+t._s(t.$L("\u591A\u91CD\u5B89\u5168\u7B56\u7565\u4FDD\u62A4\u6570\u636E"))+" ")]),e("div",{staticClass:"info-function"},[e("div",{staticClass:"func-item"},[e("div",{staticClass:"image"},[e("ImgView",{attrs:{src:"images/pro/7.svg"}})],1),e("div",{staticClass:"func-desc"},[e("div",{staticClass:"desc-title"},[t._v(" "+t._s(t.$L("\u9AD8\u53EF\u7528\u6027\u4FDD\u8BC1"))+" ")]),e("div",{staticClass:"desc-text"},[t._v(" "+t._s(t.$L("\u591A\u91CD\u65B9\u5F0F\u4FDD\u8BC1\u6570\u636E\u4E0D\u4E22\u5931\uFF0C\u9AD8\u53EF\u7528\u6545\u969C\u8F6C\u79FB\uFF0C\u5F02\u5730\u5BB9\u707E\u5907\u4EFD\uFF0C99.99%\u53EF\u7528\u6027\u4FDD\u8BC1"))+" ")])])]),e("div",{staticClass:"func-item"},[e("div",{staticClass:"image image-80"},[e("ImgView",{attrs:{src:"images/pro/8.svg"}})],1),e("div",{staticClass:"func-desc"},[e("div",{staticClass:"desc-title"},[t._v(" "+t._s(t.$L("\u6570\u636E\u52A0\u5BC6"))+" ")]),e("div",{staticClass:"desc-text"},[t._v(" "+t._s(t.$L("\u591A\u91CD\u65B9\u5F0F\u4FDD\u8BC1\u6570\u636E\u4E0D\u6CC4\u6F0F\uFF0C\u57FA\u4E8E TLS \u7684\u6570\u636E\u52A0\u5BC6\u4F20\u8F93\uFF0CDDOS \u9632\u5FA1\u548C\u5165\u4FB5\u68C0\u6D4B"))+" ")])])]),e("div",{staticClass:"func-item"},[e("div",{staticClass:"image image-50"},[e("ImgView",{attrs:{src:"images/pro/9.svg"}})],1),e("div",{staticClass:"func-desc"},[e("div",{staticClass:"desc-title"},[t._v(" "+t._s(t.$L("\u5E10\u6237\u5B89\u5168"))+" ")]),e("div",{staticClass:"desc-text"},[t._v(" "+t._s(t.$L("\u591A\u91CD\u65B9\u5F0F\u4FDD\u8BC1\u5E10\u6237\u5B89\u5168\uFF0C\u8FDC\u7A0B\u4F1A\u8BDD\u63A7\u5236\uFF0C\u8BBE\u5907\u7ED1\u5B9A\uFF0C\u5B89\u5168\u65E5\u5FD7\u4EE5\u53CA\u624B\u52BF\u5BC6\u7801"))+" ")])])])])])])]),t.systemConfig.home_footer?e("div",{staticClass:"contact-footer"},[e("span",{domProps:{innerHTML:t._s(t.systemConfig.home_footer)}})]):t._e(),e("Modal",{attrs:{title:t.$L("\u8054\u7CFB\u6211\u4EEC"),width:"430"},model:{value:t.contactShow,callback:function(s){t.contactShow=s},expression:"contactShow"}},[e("p",[t._v(t._s(t.$L("\u5982\u6709\u4EFB\u4F55\u95EE\u9898\uFF0C\u6B22\u8FCE\u4F7F\u7528\u90AE\u7BB1\u4E0E\u6211\u4EEC\u8054\u7CFB\u3002")))]),e("p",[t._v(t._s(t.$L("\u90AE\u7BB1\u5730\u5740\uFF1Aaipaw@live.cn")))]),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"primary"},on:{click:function(s){t.contactShow=!1}}},[t._v(t._s(t.$L("\u786E\u5B9A")))])],1)]),e("UpdateLog",{attrs:{"update-log":t.showItem.updateLog,"update-ver":t.showItem.updateVer},model:{value:t.uplogShow,callback:function(s){t.uplogShow=s},expression:"uplogShow"}})],1)},v=[function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"currency"},[e("em",[t._v("0")])])},function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"currency"},[e("em",[t._v("18800")])])},function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"plans-table-td"},[e("span",[t._v(" - ")])])},function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"plans-table-td"},[e("span",[t._v(" - ")])])},function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"plans-table-td"},[e("span",[t._v(" - ")])])},function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"plans-table-td"},[e("span",[t._v(" - ")])])},function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"plans-table-td"},[e("span",[t._v(" - ")])])},function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"plans-table-td"},[e("span",[t._v(" - ")])])},function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"plans-table-td"},[e("span",[t._v(" - ")])])},function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"plans-table-td"},[e("span",[t._v(" - ")])])},function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"plans-table-td"},[e("span",[t._v(" - ")])])},function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"plans-table-td"},[e("span",[t._v(" - ")])])},function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"plans-table-td"},[e("span",[t._v(" - ")])])},function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"plans-table-td"},[e("span",[t._v(" - ")])])},function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"plans-table-td"},[e("span",[t._v(" - ")])])},function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"plans-table-td"},[e("span",[t._v(" - ")])])},function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"plans-table-td"},[e("span",[t._v(" - ")])])}];const m={components:{UpdateLog:p},data(){return{languageList:r,languageType:c,active:2,body1:!0,body2:!0,contactShow:!1,systemConfig:{},showItem:{pro:!1,github:"",updateLog:"",updateVer:""},uplogShow:!1}},created(){d([{key:"\u591A\u79CD\u652F\u6301\u670D\u52A1\u8BA9\u4F01\u4E1A\u65E0\u540E\u987E\u4E4B\u5FE7\uFF0C7x24 \u7EBF\u4E0A\u652F\u6301\u3001\u5728\u7EBF\u5DE5\u5355\u3001\u4E2D\u82F1\u6587\u90AE\u4EF6\u652F\u6301\u3001\u4E0A\u95E8\u652F\u6301",zh:"","zh-CHT":"\u591A\u7A2E\u652F\u6301\u670D\u52D9\u8B93\u4F01\u696D\u7121\u5F8C\u9867\u4E4B\u6182\uFF0C7x24 \u7DDA\u4E0A\u652F\u6301\u3001\u5728\u7DDA\u5DE5\u55AE\u3001\u4E2D\u82F1\u6587\u90F5\u4EF6\u652F\u6301\u3001\u4E0A\u9580\u652F\u6301",en:"A variety of support services give the enterprise without worries.",ko:"\uB2E4\uC591\uD55C \uC9C0\uC6D0 \uC11C\uBE44\uC2A4\uB294 \uADFC\uB85C\uC790\uAC00\uC5C6\uB294 \uAE30\uC5C5\uC5D0 \uC81C\uACF5\uD569\uB2C8\uB2E4.",ja:"\u3055\u307E\u3056\u307E\u306A\u30B5\u30DD\u30FC\u30C8\u30B5\u30FC\u30D3\u30B9\u306F\u3001\u5FC3\u914D\u3059\u308B\u3053\u3068\u306A\u304F\u4F01\u696D\u3092\u63D0\u4F9B\u3057\u307E\u3059\u3002",de:"Eine Vielzahl von Unterst\xFCtzungsdiensten erteilen das Unternehmen ohne Sorgen.",fr:"Une vari\xE9t\xE9 de services de soutien donnent \xE0 l'entreprise sans soucis.",id:"Berbagai layanan dukungan memberikan perusahaan tanpa pekerja."},{key:"\u65E0\u9700\u672C\u5730\u73AF\u5883\u51C6\u5907\uFF0C\u6309\u9700\u8D2D\u4E70\u5E10\u6237\uFF0C\u4E13\u4E1A\u56E2\u961F\u63D0\u4F9B\u8FD0\u7EF4\u4FDD\u969C\u670D\u52A1\uFF0C\u4E24\u5468\u4E00\u6B21\u7684\u7248\u672C\u8FED\u4EE3",zh:"","zh-CHT":"\u7121\u9700\u672C\u5730\u74B0\u5883\u6E96\u5099\uFF0C\u6309\u9700\u8CFC\u8CB7\u5E33\u6236\uFF0C\u5C08\u696D\u5718\u968A\u63D0\u4F9B\u904B\u7DAD\u4FDD\u969C\u670D\u52D9\uFF0C\u5169\u9031\u4E00\u6B21\u7684\u7248\u672C\u8FED\u4EE3",en:"No need to prepare a local environment, buy accounts on demand, professional team provides operation and maintenance security services, and iterations for two weeks once a week",ko:"\uD604\uC9C0 \uD658\uACBD\uC744 \uC900\uBE44\uD558\uACE0, \uC8FC\uBB38\uC2DC \uACC4\uC815\uC744 \uAD6C\uB9E4, \uD504\uB85C \uD504\uB799\uD2F1 \uD300 \uC81C\uACF5 \uBC0F \uC720\uC9C0 \uBCF4\uC218 \uBCF4\uC548 \uC11C\uBE44\uC2A4 \uBC0F 2 \uC8FC \uB3D9\uC548\uC758 \uC124\uACC4\uAC00 onces onces onces\uC758 \uC124\uACC4\uAC00 \uD544\uC694\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",ja:"\u30ED\u30FC\u30AB\u30EB\u74B0\u5883\u3092\u6E96\u5099\u3057\u305F\u308A\u3001\u30A2\u30AB\u30A6\u30F3\u30C8\u3092\u30AA\u30F3\u30C7\u30DE\u30F3\u30C9\u3067\u8CFC\u5165\u3057\u305F\u308A\u3001\u30D7\u30ED\u306E\u30C1\u30FC\u30E0\u304C\u904B\u7528\u3068\u30E1\u30F3\u30C6\u30CA\u30F3\u30B9\u306E\u30BB\u30AD\u30E5\u30EA\u30C6\u30A3\u30B5\u30FC\u30D3\u30B9\u3092\u63D0\u4F9B\u3057\u305F\u308A\u3001\u9031\u306B1\u56DE\u306E\u53CD\u5FA9\u3092\u63D0\u4F9B\u3059\u308B\u5FC5\u8981\u306F\u3042\u308A\u307E\u305B\u3093\u3002",de:"Es ist nicht erforderlich, ein lokales Umfeld vorzubereiten, Konten auf Demand zu kaufen, professionelles Team f\xFCr Betriebs- und Wartungssicherheitsdienste sowie zwei Wochen einmal pro Woche Iterationen",fr:"Pas besoin de pr\xE9parer un environnement local, d'acheter des comptes \xE0 la demande, l'\xE9quipe professionnelle fournit des services de s\xE9curit\xE9 et de maintenance et des it\xE9rations pendant deux semaines une fois par semaine",id:"Tidak perlu menyiapkan lingkungan lokal, membeli akun sesuai permintaan, tim propraktik menyediakan dan layanan keamanan pemeliharaan, dan desain selama dua minggu di atasnya"},{key:"\u8D44\u6DF1\u5BA2\u6237\u6210\u529F\u987E\u95EE\u5BF9\u4F01\u4E1A\u8FDB\u884C\u8C03\u7814\u3001\u6C9F\u901A\u9700\u6C42\u3001\u5236\u5B9A\u4E2A\u6027\u5316\u7684\u89E3\u51B3\u65B9\u6848\uFF0C\u5E2E\u52A9\u4F01\u4E1A\u843D\u5730",zh:"","zh-CHT":"\u8CC7\u6DF1\u5BA2\u6236\u6210\u529F\u9867\u554F\u5C0D\u4F01\u696D\u9032\u884C\u8ABF\u7814\u3001\u6E9D\u901A\u9700\u6C42\u3001\u5236\u5B9A\u500B\u6027\u5316\u7684\u89E3\u6C7A\u65B9\u6848\uFF0C\u5E6B\u52A9\u4F01\u696D\u843D\u5730",en:"Senior customer successful consultants investigate, communicate needs, and formulate personalized solutions to help enterprises land",ko:"\uC120\uC784 \uACE0\uAC1D \uC131\uACF5\uC801\uC778 \uCEE8\uC124\uD134\uD2B8\uB294 \uAE30\uC5C5 \uD1A0\uC9C0\uB97C \uB3D5\uAE30 \uC704\uD574 \uC870\uC0AC, \uC694\uAD6C\uB97C \uC870\uC0AC\uD558\uACE0 \uAC1C\uC778\uD654 \uB41C \uC194\uB8E8\uC158\uC744 \uACF5\uC2DD\uD654\uD569\uB2C8\uB2E4.",ja:"\u30B7\u30CB\u30A2\u9867\u5BA2\u306E\u6210\u529F\u30B3\u30F3\u30B5\u30EB\u30BF\u30F3\u30C8\u306F\u3001\u4F01\u696D\u306E\u571F\u5730\u3092\u652F\u63F4\u3059\u308B\u305F\u3081\u306B\u30D1\u30FC\u30BD\u30CA\u30E9\u30A4\u30BA\u3055\u308C\u305F\u30BD\u30EA\u30E5\u30FC\u30B7\u30E7\u30F3\u3092\u8ABF\u67FB\u3001\u30B3\u30DF\u30E5\u30CB\u30B1\u30FC\u30B7\u30E7\u30F3\u3001\u304A\u3088\u3073\u7B56\u5B9A\u3057\u307E\u3059",de:"Senior Customer -erfolgreiche Berater untersuchen, kommunizieren Bed\xFCrfnisse und formulieren personalisierte L\xF6sungen, um Unternehmen beim Land zu helfen",fr:"Les consultants \xE0 succ\xE8s des clients seniors enqu\xEAtent, communiquent les besoins et formulent des solutions personnalis\xE9es pour aider les entreprises \xE0 terrer",id:"Pelanggan Senior Konsultan sukses menyelidiki, berkomunikasi kebutuhan, dan merumuskan solusi yang dipersonalisasi untuk membantu perusahaan mendarat"},{key:"\u4F01\u4E1A\u9694\u79BB\u7684\u4E91\u670D\u52A1\u5668\u73AF\u5883\uFF0C\u9AD8\u53EF\u7528\u6027\uFF0C\u7F51\u7EDC\u53CA\u5E94\u7528\u5C42\u5B8C\u6574\u9694\u79BB\uFF0C\u6570\u636E\u9AD8\u5EA6\u81EA\u4E3B\u53EF\u63A7",zh:"","zh-CHT":"\u4F01\u696D\u9694\u96E2\u7684\u96F2\u670D\u52D9\u5668\u74B0\u5883\uFF0C\u9AD8\u53EF\u7528\u6027\uFF0C\u7DB2\u7D61\u53CA\u61C9\u7528\u5C64\u5B8C\u6574\u9694\u96E2\uFF0C\u6578\u64DA\u9AD8\u5EA6\u81EA\u4E3B\u53EF\u63A7",en:"Enterprise isolation cloud server environment, high availability, network and application layer complete isolation, data high and controllable",ko:"\uC5D4\uD130\uD504\uB77C\uC774\uC988 \uACA9\uB9AC \uD074\uB77C\uC6B0\uB4DC \uC11C\uBC84 \uD658\uACBD, \uACE0 \uAC00\uC6A9\uC131, \uB124\uD2B8\uC6CC\uD06C \uBC0F \uC560\uD50C\uB9AC\uCF00\uC774\uC158 \uACC4\uCE35 \uC644\uC804\uD55C \uACA9\uB9AC, \uB370\uC774\uD130 \uB192\uC74C \uBC0F \uC81C\uC5B4 \uD654",ja:"\u30A8\u30F3\u30BF\u30FC\u30D7\u30E9\u30A4\u30BA\u5206\u96E2\u30AF\u30E9\u30A6\u30C9\u30B5\u30FC\u30D0\u30FC\u74B0\u5883\u3001\u9AD8\u53EF\u7528\u6027\u3001\u30CD\u30C3\u30C8\u30EF\u30FC\u30AF\u304A\u3088\u3073\u30A2\u30D7\u30EA\u30B1\u30FC\u30B7\u30E7\u30F3\u30EC\u30A4\u30E4\u30FC\u306E\u5B8C\u5168\u306A\u5206\u96E2\u3001\u30C7\u30FC\u30BF\u304C\u9AD8\u304F\u3001\u5236\u5FA1\u53EF\u80FD\u306A\u30C7\u30FC\u30BF",de:"Enterprise Isolation Cloud Server -Umgebung, hohe Verf\xFCgbarkeit, Netzwerk- und Anwendungsschicht vollst\xE4ndige Isolation, Daten hoch und kontrollierbar",fr:"Environnement du serveur cloud d'isolement d'entreprise, haute disponibilit\xE9, r\xE9seau de r\xE9seau et de couche d'application Isolement complet, donn\xE9es \xE9lev\xE9es et contr\xF4lables",id:"Lingkungan server cloud isolasi perusahaan, ketersediaan tinggi, jaringan dan lapisan aplikasi isolasi lengkap, data tinggi dan pengendalian"},{key:"\u6839\u636E\u9700\u6C42\u5B9A\u5236\u57F9\u8BAD\u5185\u5BB9\uFF0C\u4E3A\u4E0D\u540C\u89D2\u8272\u7ED9\u51FA\u4E13\u5C5E\u57F9\u8BAD\u65B9\u6848\uFF0C\u7EBF\u4E0A\u7EBF\u4E0B\u57F9\u8BAD\u6E20\u9053\u5168\u8986\u76D6",zh:"","zh-CHT":"\u6839\u64DA\u9700\u6C42\u5B9A\u5236\u57F9\u8A13\u5167\u5BB9\uFF0C\u70BA\u4E0D\u540C\u89D2\u8272\u7D66\u51FA\u5C08\u5C6C\u57F9\u8A13\u65B9\u6848\uFF0C\u7DDA\u4E0A\u7DDA\u4E0B\u57F9\u8A13\u6E20\u9053\u5168\u8986\u84CB",en:"Customize the training content according to the needs, give the exclusive training scheme for different roles, and the online and offline training channels are fully covered",ko:"The The The The The Needs, \uB2E4\uB978 \uC5ED\uD560\uC5D0 \uB300\uD55C \uB3C5\uC810 \uAD50\uC721 \uACC4\uD68D\uC744 \uC81C\uACF5\uD558\uBA70 \uC628\uB77C\uC778 \uBC0F \uC0AC\uBB34\uC2E4 \uAD50\uC721 \uCC44\uB110\uC774 \uC644\uC804\uD788 \uCEE4\uBC84\uB429\uB2C8\uB2E4.",ja:"\u30CB\u30FC\u30BA\u306B\u5FDC\u3058\u3066\u30C8\u30EC\u30FC\u30CB\u30F3\u30B0\u30B3\u30F3\u30C6\u30F3\u30C4\u3092\u30AB\u30B9\u30BF\u30DE\u30A4\u30BA\u3057\u3001\u3055\u307E\u3056\u307E\u306A\u5F79\u5272\u306E\u6392\u4ED6\u7684\u306A\u30C8\u30EC\u30FC\u30CB\u30F3\u30B0\u30B9\u30AD\u30FC\u30E0\u3092\u63D0\u4F9B\u3059\u308B\u3068\u3001\u30AA\u30F3\u30E9\u30A4\u30F3\u304A\u3088\u3073\u30AA\u30D5\u30E9\u30A4\u30F3\u306E\u30C8\u30EC\u30FC\u30CB\u30F3\u30B0\u30C1\u30E3\u30CD\u30EB\u304C\u5B8C\u5168\u306B\u30AB\u30D0\u30FC\u3055\u308C\u3066\u3044\u307E\u3059",de:"Passen Sie die Schulungsinhalte entsprechend den Anforderungen an, geben Sie das exklusive Schulungsschema f\xFCr verschiedene Rollen an, und die Online- und Offline -Trainingskan\xE4le sind vollst\xE4ndig abgedeckt",fr:"Personnalisez le contenu de formation en fonction des besoins, donnez le sch\xE9ma de formation exclusif pour diff\xE9rents r\xF4les, et les canaux de formation en ligne et hors ligne sont enti\xE8rement couverts",id:"CustMize the the the the the the the Needs, Berikan skema pelatihan eksklusif untuk peran yang berbeda, dan saluran pelatihan online dan kantor tertutup sepenuhnya"},{key:"DooTask \u662F\u65B0\u4E00\u4EE3\u56E2\u961F\u534F\u4F5C\u5E73\u53F0\uFF0C\u60A8\u53EF\u4EE5\u6839\u636E\u60A8\u56E2\u961F\u7684\u9700\u6C42\uFF0C\u9009\u62E9\u5408\u9002\u7684\u4EA7\u54C1\u529F\u80FD\u3002",zh:"","zh-CHT":"DooTask \u662F\u65B0\u4E00\u4EE3\u5718\u968A\u5354\u4F5C\u5E73\u53F0\uFF0C\u60A8\u53EF\u4EE5\u6839\u64DA\u60A8\u5718\u968A\u7684\u9700\u6C42\uFF0C\u9078\u64C7\u5408\u9069\u7684\u7522\u54C1\u529F\u80FD\u3002",en:"Dootask is a new generation of team collaboration platform. You can choose the appropriate product function according to the needs of your team.",ko:"Dootask\uB294 \uC0C8\uB85C\uC6B4 \uC138\uB300\uC758 \uD300 \uD611\uC5C5 \uD50C\uB7AB\uD3FC\uC785\uB2C8\uB2E4. \uD300\uC758 \uD544\uC694\uD55C \uAC83\uB4E4\uC5D0 \uB300\uD55C \uC801\uC808\uD55C \uC591\uC721 \uC7AC\uBBF8\uB97C \uC120\uD0DD\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.",ja:"Dootask\u306F\u3001\u65B0\u4E16\u4EE3\u306E\u30C1\u30FC\u30E0\u30B3\u30E9\u30DC\u30EC\u30FC\u30B7\u30E7\u30F3\u30D7\u30E9\u30C3\u30C8\u30D5\u30A9\u30FC\u30E0\u3067\u3059\u3002\u30C1\u30FC\u30E0\u306E\u30CB\u30FC\u30BA\u306B\u5FDC\u3058\u3066\u9069\u5207\u306A\u88FD\u54C1\u6A5F\u80FD\u3092\u9078\u629E\u3067\u304D\u307E\u3059\u3002",de:"Dootask ist eine neue Generation von Team -Kollaborationsplattform. Sie k\xF6nnen die entsprechende Produktfunktion entsprechend Ihrem Team ausw\xE4hlen.",fr:"Dootask est une nouvelle g\xE9n\xE9ration de plate-forme de collaboration d'\xE9quipe. Vous pouvez choisir la fonction de produit appropri\xE9e en fonction des besoins de votre \xE9quipe.",id:"Dootask adalah generasi baru platform kolaborasi tim. Anda dapat memamerkan kesenangan yang menyenangkan untuk kebutuhan tim Anda."},{key:"\u57FA\u4E8E Docker \u7684\u5BB9\u5668\u5316\u90E8\u7F72\uFF0C\u652F\u6301\u9AD8\u53EF\u7528\u96C6\u7FA4\uFF0C\u5FEB\u901F\u5F39\u6027\u6269\u5C55\uFF0C\u6570\u636E\u9AD8\u5EA6\u81EA\u4E3B\u53EF\u63A7",zh:"","zh-CHT":"\u57FA\u65BC Docker \u7684\u5BB9\u5668\u5316\u90E8\u7F72\uFF0C\u652F\u6301\u9AD8\u53EF\u7528\u96C6\u7FA4\uFF0C\u5FEB\u901F\u5F48\u6027\u64F4\u5C55\uFF0C\u6578\u64DA\u9AD8\u5EA6\u81EA\u4E3B\u53EF\u63A7",en:"Based on Docker's containerization deployment, support high available clusters, rapid elastic expansion, data highly controlled and controllable",ko:"Docker\uC758 \uCEE8\uD14C\uC774\uB108\uD654 \uBC30\uCE58\uB97C \uAE30\uBC18\uC73C\uB85C, \uB192\uC740 \uAC00\uC6A9 \uD074\uB7EC\uC2A4\uD130, \uBE60\uB978 \uD0C4\uC131 \uD655\uC7A5, \uB370\uC774\uD130\uAC00 \uACE0\uB3C4\uB85C \uC81C\uC5B4\uB418\uACE0 \uC81C\uC5B4\uB418\uB294 \uC9C0\uC6D0",ja:"Docker\u306E\u30B3\u30F3\u30C6\u30CA\u5316\u306E\u5C55\u958B\u306B\u57FA\u3065\u3044\u3066\u3001\u5229\u7528\u53EF\u80FD\u306A\u9AD8\u3044\u30AF\u30E9\u30B9\u30BF\u30FC\u3001\u6025\u901F\u306A\u5F3E\u6027\u62E1\u5F35\u3001\u9AD8\u5EA6\u306B\u5236\u5FA1\u3055\u308C\u3001\u5236\u5FA1\u53EF\u80FD\u306A\u30C7\u30FC\u30BF\u3092\u30B5\u30DD\u30FC\u30C8\u3057\u307E\u3059",de:"Basierend auf der Bereitstellung von Docker's Containerisierung, Unterst\xFCtzung von hohen verf\xFCgbaren Clustern, schnelle elastische Expansion, Daten hoch kontrolliert und kontrollierbar",fr:"Sur la base du d\xE9ploiement de la conteneurisation de Docker, prends en charge les clusters \xE9lev\xE9s disponibles, l'expansion \xE9lastique rapide, les donn\xE9es hautement contr\xF4l\xE9es et contr\xF4lables",id:"Berdasarkan penyebaran kontainerisasi Docker, mendukung kluster tinggi yang tersedia, ekspansi elastis cepat, data sangat terkontrol dan dikendalikan"},{key:"\u591A\u91CD\u65B9\u5F0F\u4FDD\u8BC1\u6570\u636E\u4E0D\u4E22\u5931\uFF0C\u9AD8\u53EF\u7528\u6545\u969C\u8F6C\u79FB\uFF0C\u5F02\u5730\u5BB9\u707E\u5907\u4EFD\uFF0C99.99%\u53EF\u7528\u6027\u4FDD\u8BC1",zh:"","zh-CHT":"\u591A\u91CD\u65B9\u5F0F\u4FDD\u8B49\u6578\u64DA\u4E0D\u4E1F\u5931\uFF0C\u9AD8\u53EF\u7528\u6545\u969C\u8F49\u79FB\uFF0C\u7570\u5730\u5BB9\u707D\u5099\u4EFD\uFF0C99.99%\u53EF\u7528\u6027\u4FDD\u8B49",en:"Multiple ways to ensure that the data is not lost, high availability can be transferred, disasters are backup, 99.99%availability guarantee guarantee",ko:"\uB370\uC774\uD130\uAC00 \uAE38\uC9C0 \uC54A\uB3C4\uB85D\uD558\uB294 \uC5EC\uB7EC \uAC00\uC9C0 \uBC29\uBC95, \uACE0 \uAC00\uC6A9\uC131\uC744 \uC804\uC1A1\uD560 \uC218 \uC788\uACE0, \uC7AC\uD574\uB294 \uBC31\uC5C5\uB418\uBA70, 99.99%\uAC00\uC6A9\uC131 \uBCF4\uC99D\uC778 \uBCF4\uC99D\uC778",ja:"\u30C7\u30FC\u30BF\u304C\u5931\u308F\u308C\u306A\u3044\u3088\u3046\u306B\u3059\u308B\u8907\u6570\u306E\u65B9\u6CD5\u3001\u9AD8\u53EF\u7528\u6027\u3092\u8EE2\u9001\u3057\u3001\u707D\u5BB3\u306F\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u300199.99\uFF05\u306E\u53EF\u7528\u6027\u4FDD\u8A3C\u4FDD\u8A3C",de:"Mehrere M\xF6glichkeiten, um sicherzustellen, dass die Daten nicht verloren gehen, kann eine hohe Verf\xFCgbarkeit \xFCbertragen werden, Katastrophen Backups, 99,99%Verf\xFCgbarkeitsgarantie Garantie -Garantie",fr:"Plusieurs fa\xE7ons de s'assurer que les donn\xE9es ne sont pas perdues, la haute disponibilit\xE9 peut \xEAtre transf\xE9r\xE9e, les catastrophes sont une sauvegarde, une garantie de garantie de disponibilit\xE9 de 99,99%",id:"Berbagai cara untuk memastikan bahwa data tidak panjang, ketersediaan tinggi dapat ditransfer, bencana adalah cadangan, 99,99%ketersediaan jaminan jaminan"},{key:"\u591A\u91CD\u65B9\u5F0F\u4FDD\u8BC1\u5E10\u6237\u5B89\u5168\uFF0C\u8FDC\u7A0B\u4F1A\u8BDD\u63A7\u5236\uFF0C\u8BBE\u5907\u7ED1\u5B9A\uFF0C\u5B89\u5168\u65E5\u5FD7\u4EE5\u53CA\u624B\u52BF\u5BC6\u7801",zh:"","zh-CHT":"\u591A\u91CD\u65B9\u5F0F\u4FDD\u8B49\u5E33\u6236\u5B89\u5168\uFF0C\u9060\u7A0B\u6703\u8A71\u63A7\u5236\uFF0C\u8A2D\u5099\u7D81\u5B9A\uFF0C\u5B89\u5168\u65E5\u8A8C\u4EE5\u53CA\u624B\u52E2\u5BC6\u78BC",en:"Multiple ways to ensure account security, remote session control, device binding, security logs and gesture passwords",ko:"\uACC4\uC815 \uBCF4\uC548, \uC6D0\uACA9 \uC138\uC158 \uC81C\uC5B4, \uC7A5\uCE58 \uBC14\uC778\uB529, \uBCF4\uC548 \uB85C\uADF8 \uBC0F \uC81C\uC2A4\uCC98 \uC554\uD638\uB97C \uBCF4\uC7A5\uD558\uB294 \uC5EC\uB7EC \uAC00\uC9C0 \uBC29\uBC95",ja:"\u30A2\u30AB\u30A6\u30F3\u30C8\u30BB\u30AD\u30E5\u30EA\u30C6\u30A3\u3001\u30EA\u30E2\u30FC\u30C8\u30BB\u30C3\u30B7\u30E7\u30F3\u5236\u5FA1\u3001\u30C7\u30D0\u30A4\u30B9\u30D0\u30A4\u30F3\u30C7\u30A3\u30F3\u30B0\u3001\u30BB\u30AD\u30E5\u30EA\u30C6\u30A3\u30ED\u30B0\u3001\u30B8\u30A7\u30B9\u30C1\u30E3\u30FC\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u78BA\u4FDD\u3059\u308B\u8907\u6570\u306E\u65B9\u6CD5",de:"Mehrere M\xF6glichkeiten, um die Sicherheitssicherheit, die Steuerung der Remotesitzung, die Ger\xE4tebindung, die Sicherheitsprotokolle und die Gestenkennw\xF6rter sicherzustellen",fr:"Plusieurs fa\xE7ons d'assurer la s\xE9curit\xE9 du compte, le contr\xF4le de session \xE0 distance, la liaison des p\xE9riph\xE9riques, les journaux de s\xE9curit\xE9 et les mots de passe gestuels",id:"Berbagai cara untuk memastikan keamanan akun, kontrol sesi jarak jauh, pengikatan perangkat, log keamanan dan kata sandi gerakan"},{key:"\u591A\u91CD\u65B9\u5F0F\u4FDD\u8BC1\u6570\u636E\u4E0D\u6CC4\u6F0F\uFF0C\u57FA\u4E8E TLS \u7684\u6570\u636E\u52A0\u5BC6\u4F20\u8F93\uFF0CDDOS \u9632\u5FA1\u548C\u5165\u4FB5\u68C0\u6D4B",zh:"","zh-CHT":"\u591A\u91CD\u65B9\u5F0F\u4FDD\u8B49\u5E33\u6236\u5B89\u5168\uFF0C\u9060\u7A0B\u6703\u8A71\u63A7\u5236\uFF0C\u8A2D\u5099\u7D81\u5B9A\uFF0C\u5B89\u5168\u65E5\u8A8C\u4EE5\u53CA\u624B\u52E2\u5BC6\u78BC",en:"Multi -way guarantees the data is not leaked. TLS -based data encryption transmission, DDOS defense and intrusion detection",ko:"\uB2E4\uC911 \uC6E8\uC774 Guarane \uB370\uC774\uD130\uAC00 \uC720\uCD9C\uB418\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4. TLS \uAE30\uBC18 \uB370\uC774\uD130 \uC554\uD638\uD654 \uC804\uC1A1, DDOS \uBC29\uC5B4 \uBC0F \uCE68\uC785 \uD0D0\uC9C0",ja:"\u30A2\u30AB\u30A6\u30F3\u30C8\u30BB\u30AD\u30E5\u30EA\u30C6\u30A3\u3001\u30EA\u30E2\u30FC\u30C8\u30BB\u30C3\u30B7\u30E7\u30F3\u5236\u5FA1\u3001\u30C7\u30D0\u30A4\u30B9\u30D0\u30A4\u30F3\u30C7\u30A3\u30F3\u30B0\u3001\u30BB\u30AD\u30E5\u30EA\u30C6\u30A3\u30ED\u30B0\u3001\u30B8\u30A7\u30B9\u30C1\u30E3\u30FC\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u78BA\u4FDD\u3059\u308B\u8907\u6570\u306E\u65B9\u6CD5",de:"Multi -Way -Garantien, dass die Daten nicht durchgesickert sind.",fr:"Garantie multi-voies Les donn\xE9es ne sont pas divulgu\xE9es. Transmission de chiffrement des donn\xE9es bas\xE9e sur TLS, d\xE9fense DDOS et d\xE9tection d'intrusion",id:"Multi -Way Guaranees Data tidak bocor. Transmisi enkripsi data berbasis TLS, DDOS Defense dan Detection Intrusion"},{key:"\u4ECE\u73B0\u5728\u5F00\u59CB\uFF0CDooTask \u4E3A\u4E16\u754C\u5404\u5730\u7684\u56E2\u961F\u63D0\u4F9B\u652F\u6301\uFF0C\u63A2\u7D22\u9002\u5408\u60A8\u7684\u9009\u9879\u3002",zh:"","zh-CHT":"\u5F9E\u73FE\u5728\u958B\u59CB\uFF0CDooTask \u70BA\u4E16\u754C\u5404\u5730\u7684\u5718\u968A\u63D0\u4F9B\u652F\u6301\uFF0C\u63A2\u7D22\u9069\u5408\u60A8\u7684\u9078\u9805\u3002",en:"From now on, Dootask has provided support for teams around the world and explores the options suitable for you.",ko:"\uC774\uC81C\uBD80\uD130 Dootask\uB294 \uC804 \uC138\uACC4 \uD300\uC744 \uC704\uD574 \uC9C0\uC6D0\uC744 \uC81C\uACF5\uD588\uC73C\uBA70 \uADC0\uD558\uC5D0\uAC8C \uC801\uD569\uD55C \uC635\uC158\uC744 \uD0D0\uC0C9\uD569\uB2C8\uB2E4.",ja:"\u3053\u308C\u304B\u3089\u3001Dootask\u306F\u4E16\u754C\u4E2D\u306E\u30C1\u30FC\u30E0\u306B\u30B5\u30DD\u30FC\u30C8\u3092\u63D0\u4F9B\u3057\u3001\u3042\u306A\u305F\u306B\u9069\u3057\u305F\u30AA\u30D7\u30B7\u30E7\u30F3\u3092\u63A2\u308A\u307E\u3059\u3002",de:"Von nun an hat Dootask Teams auf der ganzen Welt unterst\xFCtzt und die f\xFCr Sie geeigneten Optionen untersucht.",fr:"\xC0 partir de maintenant, Dootask a fourni un soutien aux \xE9quipes du monde entier et explore les options qui vous conviennent.",id:"Mulai sekarang, Dootask telah memberikan yang disediakan untuk tim di seluruh dunia dan mengeksplorasi opsi yang cocok untuk Anda."},{key:"\u5982\u6709\u4EFB\u4F55\u95EE\u9898\uFF0C\u6B22\u8FCE\u4F7F\u7528\u90AE\u7BB1\u4E0E\u6211\u4EEC\u8054\u7CFB\u3002",zh:"","zh-CHT":"\u5982\u6709\u4EFB\u4F55\u554F\u984C\uFF0C\u6B61\u8FCE\u4F7F\u7528\u90F5\u7BB1\u8207\u6211\u5011\u806F\u7E6B\u3002",en:"If you have any questions, please use your mailbox to contact us.",ko:"\uAD81\uAE08\uD55C \uC810\uC774 \uC788\uC73C\uBA74 \uC0AC\uC11C\uD568\uC744 \uC0AC\uC6A9\uD558\uC5EC \uBB38\uC758\uD558\uC2ED\uC2DC\uC624.",ja:"\u3054\u8CEA\u554F\u304C\u3042\u308B\u5834\u5408\u306F\u3001\u30E1\u30FC\u30EB\u30DC\u30C3\u30AF\u30B9\u3092\u4F7F\u7528\u3057\u3066\u304A\u554F\u3044\u5408\u308F\u305B\u304F\u3060\u3055\u3044\u3002",de:"Wenn Sie Fragen haben, verwenden Sie bitte Ihre Mailbox, um uns zu kontaktieren.",fr:"Si vous avez des questions, veuillez utiliser votre bo\xEEte aux lettres pour nous contacter.",id:"Jika Anda memiliki pertanyaan, silakan gunakan kotak surat Anda untuk menghubungi kami."},{key:"\u5E10\u53F7\uFF1A(*)\u3001\u5BC6\u7801\uFF1A(*)",zh:"","zh-CHT":"\u5E33\u865F\uFF1A(*)\u3001\u5BC6\u78BC\uFF1A(*)",en:"Account password:(*)",ko:"\uACC4\uC815 \uBE44\uBC00\uBC88\uD638: (*)",ja:"\u30A2\u30AB\u30A6\u30F3\u30C8\u30D1\u30B9\u30EF\u30FC\u30C9\uFF1A\uFF08*\uFF09",de:"Konto Passwort:(*)",fr:"mot de passe du compte:(*)",id:"kata sandi akun: (*)"},{key:"\u5141\u8BB8\u9690\u85CF\u6216\u5B9A\u5236\u4EA7\u54C1\u540D",zh:"","zh-CHT":"\u5141\u8A31\u96B1\u85CF\u6216\u5B9A\u5236\u7522\u54C1\u540D",en:"Allow hidden or customized product name",ko:"\uC228\uACA8\uC838 \uC788\uAC70\uB098 \uB9DE\uCDA4\uD615 \uC81C\uD488 \uC774\uB984\uC744 \uD5C8\uC6A9\uD558\uC2ED\uC2DC\uC624",ja:"\u975E\u8868\u793A\u307E\u305F\u306F\u30AB\u30B9\u30BF\u30DE\u30A4\u30BA\u3055\u308C\u305F\u88FD\u54C1\u540D\u3092\u8A31\u53EF\u3057\u307E\u3059",de:"Erm\xF6glichen Sie den versteckten oder angepassten Produktnamen",fr:"Autoriser le nom du produit cach\xE9 ou personnalis\xE9",id:"Izinkan nama produk tersembunyi atau disesuaikan"},{key:"\u591A\u79CD\u90E8\u7F72\u65B9\u5F0F\u968F\u5FC3\u9009\u62E9",zh:"","zh-CHT":"\u591A\u7A2E\u90E8\u7F72\u65B9\u5F0F\u96A8\u5FC3\u9078\u64C7",en:"Choose a variety of deployment methods at will",ko:"\uB9C8\uC74C\uB300\uB85C \uB2E4\uC591\uD55C \uBC30\uD3EC \uBC29\uBC95\uC744 \uC120\uD0DD\uD558\uC2ED\uC2DC\uC624",ja:"\u3055\u307E\u3056\u307E\u306A\u5C55\u958B\u65B9\u6CD5\u3092\u81EA\u7531\u306B\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",de:"W\xE4hlen Sie nach Belieben eine Vielzahl von Bereitstellungsmethoden",fr:"Choisissez une vari\xE9t\xE9 de m\xE9thodes de d\xE9ploiement \xE0 volont\xE9",id:"Pilih berbagai metode penempatan sesuka hati"},{key:"\u591A\u91CD\u5B89\u5168\u7B56\u7565\u4FDD\u62A4\u6570\u636E",zh:"","zh-CHT":"\u591A\u91CD\u5B89\u5168\u7B56\u7565\u4FDD\u8B77\u6578\u64DA",en:"Multiple security strategy protection data",ko:"\uB2E4\uC911 \uBCF4\uC548 \uC804\uB7B5 \uBCF4\uD638 \uB370\uC774\uD130",ja:"\u8907\u6570\u306E\u30BB\u30AD\u30E5\u30EA\u30C6\u30A3\u6226\u7565\u4FDD\u8B77\u30C7\u30FC\u30BF",de:"Mehrere Sicherheitsstrategieschutzdaten",fr:"Donn\xE9es de protection de la strat\xE9gie de s\xE9curit\xE9 multiples",id:"Data Perlindungan Strategi Keamanan Berganda"},{key:"\u62E5\u6709\u6700\u65B0\u7248\u672C\u6240\u6709\u529F\u80FD",zh:"","zh-CHT":"\u64C1\u6709\u6700\u65B0\u7248\u672C\u6240\u6709\u529F\u80FD",en:"Have all functions of the latest version",ko:"\uCD5C\uC2E0 \uBC84\uC804\uC758 \uBAA8\uB4E0 \uAE30\uB2A5\uC774 \uC788\uC2B5\uB2C8\uB2E4",ja:"\u6700\u65B0\u30D0\u30FC\u30B8\u30E7\u30F3\u306E\u3059\u3079\u3066\u306E\u6A5F\u80FD\u3092\u6301\u3063\u3066\u3044\u307E\u3059",de:"Haben Sie alle Funktionen der neuesten Version",fr:"Avoir toutes les fonctions de la derni\xE8re version",id:"Memiliki semua fungsi versi terbaru"},{key:"\u6839\u636E\u60A8\u7684\u9700\u6C42\u91CF\u8EAB\u5B9A\u5236",zh:"","zh-CHT":"\u6839\u64DA\u60A8\u7684\u9700\u6C42\u91CF\u8EAB\u5B9A\u5236",en:"Customized according to your needs",ko:"\uC0AC\uC6A9\uC790 \uC815\uC758\uD558\uC2ED\uC2DC\uC624",ja:"\u30CB\u30FC\u30BA\u306B\u5FDC\u3058\u3066\u30AB\u30B9\u30BF\u30DE\u30A4\u30BA\u3055\u308C\u3066\u3044\u307E\u3059",de:"Angepasst nach Ihren Bed\xFCrfnissen",fr:"Personnalis\xE9 en fonction de vos besoins",id:"Menyesuaikan"},{key:"\u5B8C\u5584\u7684\u670D\u52A1\u652F\u6301\u4F53\u7CFB",zh:"","zh-CHT":"\u5B8C\u5584\u7684\u670D\u52D9\u652F\u6301\u9AD4\u7CFB",en:"Perfect service support system",ko:"\uC644\uBCBD\uD55C \uC11C\uBE44\uC2A4 \uC9C0\uC6D0 \uC2DC\uC2A4\uD15C",ja:"\u5B8C\u74A7\u306A\u30B5\u30FC\u30D3\u30B9\u30B5\u30DD\u30FC\u30C8\u30B7\u30B9\u30C6\u30E0",de:"Perfektes Service -Support -System",fr:"Syst\xE8me de support de service parfait",id:"Sistem Dukungan Layanan yang Sempurna"},{key:"\u4E13\u5C5E\u5BA2\u6237\u6210\u529F\u7ECF\u7406",zh:"","zh-CHT":"\u5C08\u5C6C\u5BA2\u6236\u6210\u529F\u7D93\u7406",en:"Customer success manager",ko:"\uACE0\uAC1D \uC131\uACF5 \uAD00\uB9AC\uC790",ja:"\u30AB\u30B9\u30BF\u30DE\u30FC\u30B5\u30AF\u30BB\u30B9\u30DE\u30CD\u30FC\u30B8\u30E3\u30FC",de:"Kundenerfolgsmanager",fr:"Client Success Manager",id:"Manajer Sukses Pelanggan"},{key:"\u4E8C\u6B21\u5F00\u53D1\u54A8\u8BE2\u670D\u52A1",zh:"","zh-CHT":"\u4E8C\u6B21\u958B\u767C\u8AEE\u8A62\u670D\u52D9",en:"Secondary development consulting service",ko:"2 \uCC28 \uAC1C\uBC1C \uCEE8\uC124\uD305 \uC11C\uBE44\uC2A4",ja:"\u4E8C\u6B21\u958B\u767A\u30B3\u30F3\u30B5\u30EB\u30C6\u30A3\u30F3\u30B0\u30B5\u30FC\u30D3\u30B9",de:"Sekund\xE4rentwicklungsberatungsdienst",fr:"Service de conseil en d\xE9veloppement secondaire",id:"Layanan Konsultasi Pengembangan Sekunder"},{key:"\u514D\u8D39\u63D0\u4F9B\u4E00\u6B21\u5185\u8BAD",zh:"","zh-CHT":"\u514D\u8CBB\u63D0\u4F9B\u4E00\u6B21\u5167\u8A13",en:"Provide internal training for free",ko:"\uC778\uD130\uB137\uC744 \uBB34\uB8CC\uB85C \uC81C\uACF5\uD558\uC2ED\uC2DC\uC624",ja:"\u7121\u6599\u3067\u5185\u90E8\u30C8\u30EC\u30FC\u30CB\u30F3\u30B0\u3092\u63D0\u4F9B\u3057\u307E\u3059",de:"Bieten Sie kostenlos interne Schulungen an",fr:"Fournir une formation interne gratuitement",id:"Menyediakan internet secara gratis"},{key:"\u9009\u62E9\u9002\u5408\u60A8\u7684\u7248\u672C",zh:"","zh-CHT":"\u9078\u64C7\u9069\u5408\u60A8\u7684\u7248\u672C",en:"Choose the version that suits you",ko:"\uC790\uC2E0\uC5D0\uAC8C \uB9DE\uB294 \uBC84\uC804\uC744 \uC120\uD0DD\uD558\uC2ED\uC2DC\uC624",ja:"\u3042\u306A\u305F\u306B\u5408\u3063\u305F\u30D0\u30FC\u30B8\u30E7\u30F3\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",de:"W\xE4hlen Sie die Version, die zu Ihnen passt",fr:"Choisissez la version qui vous convient",id:"Pilih versi yang cocok untuk Anda"},{key:"1:1\u5BA2\u6237\u6210\u529F\u987E\u95EE",zh:"","zh-CHT":"1:1\u5BA2\u6236\u6210\u529F\u9867\u554F",en:"1: 1 Customer successful consultant",ko:"1 : 1 \uACE0\uAC1D \uC131\uACF5\uC801\uC778 \uCEE8\uC124\uD134\uD2B8",ja:"1\uFF1A1\u306E\u9867\u5BA2\u6210\u529F\u30B3\u30F3\u30B5\u30EB\u30BF\u30F3\u30C8",de:"1: 1 Kunde erfolgreicher Berater",fr:"1: 1 consultant r\xE9ussi du client",id:"1: 1 Pelanggan Konsultan Sukses"},{key:"\u4E00\u5BF9\u4E00\u5BA2\u6237\u987E\u95EE",zh:"","zh-CHT":"\u4E00\u5C0D\u4E00\u5BA2\u6236\u9867\u554F",en:"One -to -one customer consultant",ko:"\uD558\uB098\uC758 \uACE0\uAC1D \uCEE8\uC124\uD134\uD2B8",ja:"1\u4EBA\u304B\u30891\u4EBA\u306E\u9867\u5BA2\u30B3\u30F3\u30B5\u30EB\u30BF\u30F3\u30C8",de:"Ein -zu -Ein -Kundenberater",fr:"Un consultant client \xE0 un \xE0 un",id:"Satu -untuk -satu konsultan pelanggan"},{key:"\u4E2D\u82F1\u6587\u90AE\u4EF6\u652F\u6301",zh:"","zh-CHT":"\u4E2D\u82F1\u6587\u90F5\u4EF6\u652F\u6301",en:"Chinese and English email support",ko:"\uC911\uAD6D\uC5B4 \uBC0F \uC601\uC5B4 \uC774\uBA54\uC77C \uC9C0\uC6D0",ja:"\u4E2D\u56FD\u8A9E\u3068\u82F1\u8A9E\u306E\u96FB\u5B50\u30E1\u30FC\u30EB\u30B5\u30DD\u30FC\u30C8",de:"Chinesische und englische E -Mail -Support",fr:"Assistance par e-mail chinois et anglais",id:"Dukungan Email Cina dan Inggris"},{key:"\u5168\u9762\u7684\u652F\u6301\u670D\u52A1",zh:"","zh-CHT":"\u5168\u9762\u7684\u652F\u6301\u670D\u52D9",en:"Comprehensive support service",ko:"\uD3EC\uAD04\uC801 \uC778 \uC9C0\uC6D0 \uC11C\uBE44\uC2A4",ja:"\u5305\u62EC\u7684\u306A\u30B5\u30DD\u30FC\u30C8\u30B5\u30FC\u30D3\u30B9",de:"Umfassender Support -Service",fr:"Service de soutien complet",id:"Layanan Dukungan Komprehensif"},{key:"\u5B8C\u5584\u7684\u57F9\u8BAD\u4F53\u7CFB",zh:"","zh-CHT":"\u5B8C\u5584\u7684\u57F9\u8A13\u9AD4\u7CFB",en:"Comprehensive training system",ko:"\uD3EC\uAD04\uC801 \uC778 Trining Systemm",ja:"\u5305\u62EC\u7684\u306A\u30C8\u30EC\u30FC\u30CB\u30F3\u30B0\u30B7\u30B9\u30C6\u30E0",de:"Umfassendes Trainingssystem",fr:"Syst\xE8me de formation complet",id:"Sistem Trining Komprehensif"},{key:"\u652F\u6301\u79C1\u6709\u5316\u90E8\u7F72",zh:"","zh-CHT":"\u652F\u6301\u79C1\u6709\u5316\u90E8\u7F72",en:"Support privatization deployment",ko:"\uAC1C\uC778 \uBC30\uD3EC\uB97C \uC9C0\uC6D0\uD569\uB2C8\uB2E4",ja:"\u6C11\u55B6\u5316\u306E\u5C55\u958B\u3092\u30B5\u30DD\u30FC\u30C8\u3057\u307E\u3059",de:"Bereitstellung von Privatisierungen unterst\xFCtzen",fr:"Soutenir le d\xE9ploiement de la privatisation",id:"Mendukung penyebaran privatif"},{key:"iOS/Android\u5BA2\u6237\u7AEF",zh:"","zh-CHT":"iOS/Android\u5BA2\u6236\u7AEF",en:"IOS/Android client",ko:"iOS/Android \uD074\uB77C\uC774\uC5B8\uD2B8",ja:"iOS/Android\u30AF\u30E9\u30A4\u30A2\u30F3\u30C8",de:"iOS/Android -Client",fr:"Client iOS / Android",id:"Klien iOS/Android"},{key:"\uFF08Issues/\u793E\u7FA4\uFF09",zh:"","zh-CHT":"\uFF08Issues/\u793E\u7FA4\uFF09",en:"(ISSUES/Community)",ko:"(\uBB38\uC81C/\uCEE4\uBBA4\uB2C8\uD2F0)",ja:"\uFF08\u554F\u984C/\u30B3\u30DF\u30E5\u30CB\u30C6\u30A3\uFF09",de:"(Themen/Community)",fr:"(Probl\xE8mes / communaut\xE9)",id:"(Masalah/Komunitas)"},{key:"\u5728\u7EBF\u54A8\u8BE2\u652F\u6301",zh:"","zh-CHT":"\u5728\u7DDA\u8AEE\u8A62\u652F\u6301",en:"Online consultation support",ko:"\uC628\uB77C\uC778 \uC0C1\uB2F4 \uC9C0\uC6D0",ja:"\u30AA\u30F3\u30E9\u30A4\u30F3\u76F8\u8AC7\u30B5\u30DD\u30FC\u30C8",de:"Online -Beratungsunterst\xFCtzung",fr:"Assistance de consultation en ligne",id:"Dukungan Konsultasi Online"},{key:"\u660E\u661F\u5BA2\u6237\u6848\u4F8B",zh:"","zh-CHT":"\u660E\u661F\u5BA2\u6236\u6848\u4F8B",en:"Star customer case",ko:"\uC2A4\uD0C0 \uACE0\uAC1D \uC0AC\uB840",ja:"\u30B9\u30BF\u30FC\u306E\u9867\u5BA2\u30B1\u30FC\u30B9",de:"Sternkundenfall",fr:"Case client vedette",id:"Kasus Pelanggan Bintang"},{key:"\u7535\u8BDD\u54A8\u8BE2\u652F\u6301",zh:"","zh-CHT":"\u96FB\u8A71\u8AEE\u8A62\u652F\u6301",en:"Telephone consultation support",ko:"\uC804\uD654 \uC0C1\uB2F4 \uC9C0\uC6D0",ja:"\u96FB\u8A71\u76F8\u8AC7\u30B5\u30DD\u30FC\u30C8",de:"Telefonberatungsunterst\xFCtzung",fr:"Assistance de consultation t\xE9l\xE9phonique",id:"Dukungan Konsultasi Telepon"},{key:"\u7ED1\u5B9A\u81EA\u6709\u57DF\u540D",zh:"","zh-CHT":"\u7D81\u5B9A\u81EA\u6709\u57DF\u540D",en:"Bind your own domain name",ko:"\uC790\uC2E0\uC758 \uB3C4\uBA54\uC778 \uC774\uB984\uC744 \uBC14\uC778\uB529\uD558\uC2ED\uC2DC\uC624",ja:"\u72EC\u81EA\u306E\u30C9\u30E1\u30A4\u30F3\u540D\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u307E\u3059",de:"Binden Sie Ihren eigenen Domainnamen",fr:"Lisez votre propre nom de domaine",id:"Ikat nama domain Anda sendiri"},{key:"\u9009\u62E9\u9002\u5408\u4F60\u7684",zh:"","zh-CHT":"\u9078\u64C7\u9069\u5408\u4F60\u7684",en:"Choose suitable for you",ko:"\uB2F9\uC2E0\uC5D0\uAC8C \uC801\uD569\uD55C \uC120\uD0DD\uC744 \uC120\uD0DD\uD558\uC2ED\uC2DC\uC624",ja:"\u3042\u306A\u305F\u306B\u9069\u3057\u305F\u9078\u629E\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",de:"W\xE4hlen Sie f\xFCr Sie geeignet",fr:"Choisissez adapt\xE9 pour vous",id:"Pilih yang cocok untuk Anda"},{key:"\u9AD8\u53EF\u7528\u6027\u4FDD\u8BC1",zh:"","zh-CHT":"\u9AD8\u53EF\u7528\u6027\u4FDD\u8B49",en:"High availability guarantee",ko:"\uACE0 \uAC00\uC6A9\uC131 \uBCF4\uC99D",ja:"\u9AD8\u53EF\u7528\u6027\u4FDD\u8A3C",de:"Hohe Verf\xFCgbarkeitsgarantie",fr:"Garantie de haute disponibilit\xE9",id:"Jaminan ketersediaan tinggi"},{key:"\u90AE\u7BB1\u5730\u5740\uFF1A(*)",zh:"","zh-CHT":"\u90F5\u7BB1\u5730\u5740\uFF1A(*)",en:"Email address:(*)",ko:"\uC774\uBA54\uC77C \uC8FC\uC18C: (*)",ja:"\u96FB\u5B50\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9\uFF1A\uFF08*\uFF09",de:"E-Mail-Addresse:(*)",fr:"adresse e-mail:(*)",id:"alamat email: (*)"},{key:"Mac/PC\u5BA2\u6237\u7AEF",zh:"","zh-CHT":"Mac/PC\u5BA2\u6236\u7AEF",en:"Mac/PC client",ko:"Mac/PC \uD074\uB77C\uC774\uC5B8\uD2B8",ja:"Mac/PC\u30AF\u30E9\u30A4\u30A2\u30F3\u30C8",de:"MAC/PC -Client",fr:"Client Mac / PC",id:"Klien Mac/PC"},{key:"\u672C\u5730\u670D\u52A1\u5668",zh:"","zh-CHT":"\u672C\u5730\u670D\u52D9\u5668",en:"Local server",ko:"\uB85C\uCEEC \uC11C\uBC84",ja:"\u30ED\u30FC\u30AB\u30EB\u30B5\u30FC\u30D0\u30FC",de:"Lokaler Server",fr:"Serveur local",id:"Server lokal"},{key:"\u5468\u62A5/\u65E5\u62A5",zh:"","zh-CHT":"\u9031\u5831/\u65E5\u5831",en:"Weekly/Daily",ko:"\uC8FC\uAC04/\uB9E4\uC77C",ja:"\u6BCE\u9031/\u6BCE\u65E5",de:"W\xF6chentlich/t\xE4glich",fr:"Hebdomadaire / quotidien",id:"Mingguan/harian"},{key:"\u4E0A\u95E8\u652F\u6301",zh:"","zh-CHT":"\u4E0A\u9580\u652F\u6301",en:"Support",ko:"\uC9C0\uC6D0\uD558\uB2E4",ja:"\u30B5\u30DD\u30FC\u30C8",de:"Unterst\xFCtzung",fr:"Soutien",id:"Mendukung"},{key:"\u4E8C\u6B21\u5F00\u53D1",zh:"","zh-CHT":"\u4E8C\u6B21\u958B\u767C",en:"Secondary development",ko:"\uC774\uCC28 \uAC1C\uBC1C",ja:"\u4E8C\u6B21\u767A\u9054",de:"Sekund\xE4rentwicklung",fr:"D\xE9veloppement secondaire",id:"Pengembangan Sekunder"},{key:"\u4EA7\u54C1\u57F9\u8BAD",zh:"","zh-CHT":"\u7522\u54C1\u57F9\u8A13",en:"Product training",ko:"\uC81C\uD488 \uAD50\uC721",ja:"\u88FD\u54C1\u30C8\u30EC\u30FC\u30CB\u30F3\u30B0",de:"Produktschulungen",fr:"Essai de production",id:"Pelatihan produk"},{key:"\u4EFB\u52A1\u52A8\u6001",zh:"","zh-CHT":"\u4EFB\u52D9\u52D5\u614B",en:"Mission dynamic",ko:"\uBBF8\uC158 \uB2E4\uC774\uB098\uBBF9",ja:"\u30DF\u30C3\u30B7\u30E7\u30F3\u30C0\u30A4\u30CA\u30DF\u30C3\u30AF",de:"Missionsdynamik",fr:"Dynamique de mission",id:"Dinamika Misi"},{key:"\u4EFB\u52A1\u7C7B\u578B",zh:"","zh-CHT":"\u4EFB\u52D9\u985E\u578B",en:"Task type",ko:"\uC791\uC5C5 \uC720\uD615",ja:"\u30BF\u30B9\u30AF\u30BF\u30A4\u30D7",de:"Aufgabentyp",fr:"Type de t\xE2che",id:"Jenis tugas"},{key:"\u521B\u5EFA\u7FA4\u804A",zh:"","zh-CHT":"\u5275\u5EFA\u7FA4\u804A",en:"Create group chat",ko:"\uADF8\uB8F9 \uCC44\uD305\uC744 \uB9CC\uB4ED\uB2C8\uB2E4",ja:"\u30B0\u30EB\u30FC\u30D7\u30C1\u30E3\u30C3\u30C8\u3092\u4F5C\u6210\u3057\u307E\u3059",de:"Gruppenchat erstellen",fr:"Cr\xE9er un chat de groupe",id:"Buat obrolan grup"},{key:"\u5BFC\u51FA\u4EFB\u52A1",zh:"","zh-CHT":"\u5C0E\u51FA\u4EFB\u52D9",en:"Export task",ko:"\uC218\uCD9C \uC791\uC5C5",ja:"\u30A8\u30AF\u30B9\u30DD\u30FC\u30C8\u30BF\u30B9\u30AF",de:"Exportaufgabe",fr:"T\xE2che d'exportation",id:"Tugas Ekspor"},{key:"\u5E10\u6237\u5B89\u5168",zh:"","zh-CHT":"\u5E33\u6236\u5B89\u5168",en:"Account security",ko:"\uACC4\uC815 \uBCF4\uC548",ja:"\u30A2\u30AB\u30A6\u30F3\u30C8\u306E\u30BB\u30AD\u30E5\u30EA\u30C6\u30A3",de:"Konto Sicherheit",fr:"S\xE9curit\xE9 du compte",id:"Keamanan Akun"},{key:"\u5E94\u7528\u652F\u6301",zh:"","zh-CHT":"\u61C9\u7528\u652F\u6301",en:"Applied support",ko:"\uC751\uC6A9 \uC9C0\uC6D0",ja:"\u5FDC\u7528\u30B5\u30DD\u30FC\u30C8",de:"Angewandte Unterst\xFCtzung",fr:"Assistance appliqu\xE9e",id:"Dukungan Terapan"},{key:"\u6570\u636E\u52A0\u5BC6",zh:"","zh-CHT":"\u6578\u64DA\u52A0\u5BC6",en:"Data encryption",ko:"\uB370\uC774\uD130 \uC554\uD638\uD654",ja:"\u30C7\u30FC\u30BF\u6697\u53F7\u5316",de:"Datenverschl\xFCsselung",fr:"cryptage de donn\xE9es",id:"Enkripsi data"},{key:"\u6587\u4EF6\u641C\u7D22",zh:"","zh-CHT":"\u6587\u4EF6\u641C\u7D22",en:"File search",ko:"\uD30C\uC77C \uAC80\uC0C9",ja:"\u30D5\u30A1\u30A4\u30EB\u691C\u7D22",de:"Dateisuche",fr:"Recherche de fichier",id:"Pencarian file"},{key:"\u6587\u4EF6\u7BA1\u7406",zh:"","zh-CHT":"\u6587\u4EF6\u7BA1\u7406",en:"File management",ko:"\uD30C\uC77C \uAD00\uB9AC",ja:"\u30D5\u30A1\u30A4\u30EB\u7BA1\u7406",de:"Dokumentenverwaltung",fr:"Gestion de fichiers",id:"Manajemen file"},{key:"\u670D\u52A1\u652F\u6301",zh:"","zh-CHT":"\u670D\u52D9\u652F\u6301",en:"Service support",ko:"\uC11C\uBE44\uC2A4 \uC9C0\uC6D0",ja:"\u30B5\u30FC\u30D3\u30B9\u30B5\u30DD\u30FC\u30C8",de:"Service-Unterst\xFCtzung",fr:"service apr\xE8s vente",id:"Dukungan Layanan"},{key:"\u81EA\u52A9\u652F\u6301",zh:"","zh-CHT":"\u81EA\u52A9\u652F\u6301",en:"Self -support",ko:"\uC790\uAE30 \uC9C0\uC6D0",ja:"\u81EA\u5DF1\u30B5\u30DD\u30FC\u30C8",de:"Selbsthilfe",fr:"Auto-support",id:"Mendukung diri sendiri"},{key:"\u8FD4\u56DE\u9996\u9875",zh:"","zh-CHT":"\u8FD4\u56DE\u9996\u9801",en:"Return homepage",ko:"\uD648\uD398\uC774\uC9C0\uB97C \uBC18\uD658\uD558\uC2ED\uC2DC\uC624",ja:"\u30DB\u30FC\u30E0\u30DA\u30FC\u30B8\u3092\u8FD4\u3057\u307E\u3059",de:"Homepage zur\xFCckkehren",fr:"Page d'accueil de retour",id:"Kembalikan beranda"},{key:"\u9879\u76EE\u641C\u7D22",zh:"","zh-CHT":"\u9805\u76EE\u641C\u7D22",en:"Project search",ko:"\uD504\uB85C\uC81D\uD2B8 \uAC80\uC0C9",ja:"\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u691C\u7D22",de:"Projektsuche",fr:"Recherche de projet",id:"Pencarian Proyek"},{key:"\u9879\u76EE\u7BA1\u7406",zh:"","zh-CHT":"\u9805\u76EE\u7BA1\u7406",en:"Project management",ko:"\uD504\uB85C\uC81D\uD2B8 \uAD00\uB9AC",ja:"\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u7BA1\u7406",de:"Projektmanagement",fr:"gestion de projet",id:"Manajemen proyek"},{key:"\u9879\u76EE\u7FA4\u804A",zh:"","zh-CHT":"\u9805\u76EE\u7FA4\u804A",en:"Project group chat",ko:"\uD504\uB85C\uC81D\uD2B8 \uADF8\uB8F9 \uCC44\uD305",ja:"\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u30B0\u30EB\u30FC\u30D7\u30C1\u30E3\u30C3\u30C8",de:"Projektgruppe Chat",fr:"Chat de groupe de projet",id:"Obrolan grup proyek"},{key:"\u4F53\u9A8CDEMO",zh:"","zh-CHT":"\u9AD4\u9A57DEMO",en:"Experience DEMO",ko:"\uB370\uBAA8\uB97C \uACBD\uD5D8\uD558\uC2ED\uC2DC\uC624",ja:"\u30C7\u30E2\u3092\u4F53\u9A13\u3057\u3066\u304F\u3060\u3055\u3044",de:"Erleben Sie Demo",fr:"D\xE9couvrez la d\xE9mo",id:"Pengalaman demo"},{key:"\u516C\u6709\u4E91",zh:"","zh-CHT":"\u516C\u6709\u4E91",en:"Public cloud",ko:"\uD37C\uBE14\uB9AD \uD074\uB77C\uC6B0\uB4DC",ja:"\u30D1\u30D6\u30EA\u30C3\u30AF\u30AF\u30E9\u30A6\u30C9",de:"\xD6ffentliche Wolke",fr:"Nuage public",id:"Cloud publik"},{key:"\u56FD\u9645\u5316",zh:"","zh-CHT":"\u570B\u969B\u5316",en:"Globalization",ko:"\uC138\uACC4\uD654",ja:"\u30B0\u30ED\u30FC\u30D0\u30EA\u30BC\u30FC\u30B7\u30E7\u30F3",de:"Globalisierung",fr:"mondialisation",id:"globalisasi"},{key:"\u5B9A\u5236\u7248",zh:"","zh-CHT":"\u5B9A\u88FD\u7248",en:"Custom Edition",ko:"\uCEE4\uC2A4\uD140 \uC5D0\uB514\uC158",ja:"\u30AB\u30B9\u30BF\u30E0\u30A8\u30C7\u30A3\u30B7\u30E7\u30F3",de:"Benutzerdefinierte Ausgabe",fr:"\xC9dition personnalis\xE9e",id:"Edisi Kustom"},{key:"\u65E0\u9650\u5236",zh:"","zh-CHT":"\u7121\u9650\u5236",en:"Unlimited",ko:"\uC81C\uD55C \uC5C6\uB294",ja:"\u7121\u5236\u9650",de:"Unbegrenzt",fr:"Illimit\xE9",id:"Tak terbatas"},{key:"\u7518\u7279\u56FE",zh:"","zh-CHT":"\u7518\u7279\u5716",en:"Gantt chart",ko:"\uAC04\uD2B8 \uCC28\uD2B8",ja:"\u30AC\u30F3\u30C8\u30C1\u30E3\u30FC\u30C8",de:"Gantt-Diagramm",fr:"diagramme de Gantt",id:"Bagan Gant"},{key:"\u793E\u533A\u7248",zh:"","zh-CHT":"\u793E\u5340\u7248",en:"Community",ko:"\uC9C0\uC5ED \uC0AC\uD68C",ja:"\u30B3\u30DF\u30E5\u30CB\u30C6\u30A3",de:"Gemeinschaft",fr:"Communaut\xE9",id:"Masyarakat"},{key:"\u793E\u533A\u7248",zh:"","zh-CHT":"\u793E\u5340\u7248",en:"Community",ko:"\uC9C0\uC5ED \uC0AC\uD68C",ja:"\u30B3\u30DF\u30E5\u30CB\u30C6\u30A3",de:"Gemeinschaft",fr:"Communaut\xE9",id:"Masyarakat"},{key:"\u79C1\u6709\u4E91",zh:"","zh-CHT":"\u79C1\u6709\u4E91",en:"Private Cloud",ko:"\uD504\uB77C\uC774\uBE57 \uD074\uB77C\uC6B0\uB4DC",ja:"\u30D7\u30E9\u30A4\u30D9\u30FC\u30C8\u30AF\u30E9\u30A6\u30C9",de:"Private Wolke",fr:"Nuage priv\xE9",id:"Cloud pribadi"},{key:"\u81EA\u5B9A\u4E49",zh:"","zh-CHT":"\u81EA\u5B9A\u7FA9",en:"Customize",ko:"\uC0AC\uC6A9\uC790 \uC815\uC758\uD558\uC2ED\uC2DC\uC624",ja:"\u30AB\u30B9\u30BF\u30DE\u30A4\u30BA",de:"anpassen",fr:"Personnaliser",id:"Menyesuaikan"},{key:"Pro\u7248",zh:"","zh-CHT":"Pro\u7248",en:"PRO version",ko:"\uD504\uB85C \uBC84\uC804",ja:"\u30D7\u30ED\u30D0\u30FC\u30B8\u30E7\u30F3",de:"Pro-Version",fr:"Version pro",id:"Versi Pro"},{key:"\u4EBA\u6570",zh:"","zh-CHT":"\u4EBA\u6578",en:"Number of people",ko:"\uC0AC\uB78C\uB4E4\uC758 \uC218",ja:"\u4EBA\u3005\u306E\u6570",de:"Anzahl der Personen",fr:"Nombre de personnes",id:"Jumlah orang"},{key:"\u4EF7\u683C",zh:"","zh-CHT":"\u50F9\u683C",en:"Price",ko:"\uAC00\uACA9",ja:"\u4FA1\u683C",de:"Preis",fr:"prix",id:"harga"},{key:"\u63A8\u8350",zh:"","zh-CHT":"\u63A8\u85A6",en:"Recommend",ko:"\uCD94\uCC9C",ja:"\u304A\u52E7\u3081",de:"empfehlen",fr:"recommander",id:"Direkomendasikan"},{key:"\u65E5\u7A0B",zh:"","zh-CHT":"\u65E5\u7A0B",en:"Schedule",ko:"\uC77C\uC815",ja:"\u30B9\u30B1\u30B8\u30E5\u30FC\u30EB",de:"Zeitplan",fr:"calendrier",id:"jadwal"},{key:"\u6982\u8FF0",zh:"","zh-CHT":"\u6982\u8FF0",en:"Overview",ko:"\uAC1C\uC694",ja:"\u6982\u8981",de:"\xDCberblick",fr:"Aper\xE7u",id:"Ringkasan"}])},mounted(){this.getSetting(),this.getShowItem()},computed:{appTitle(){return`${this.$L("\u9009\u62E9\u9002\u5408\u4F60\u7684")} ${window.systemInfo.title||"DooTask"}`}},methods:{onLanguage(t){o(t)},goHome(){this.goForward({name:"index",query:{action:"index"}})},getSetting(){this.$store.dispatch("call",{url:"system/setting"}).then(({data:t})=>{this.systemConfig=t})},getShowItem(){this.$store.dispatch("call",{url:"system/get/showitem"}).then(({data:t})=>{this.showItem=t}).catch(t=>{this.showItem={}})}}},i={};var h=l(m,u,v,!1,k,"03af2689",null,null);function k(t){for(let a in i)this[a]=i[a]}var g=function(){return h.exports}();export{g as default}; +import{n as l,l as r,a as c,b as d,s as o}from"./app.feefc813.js";import{U as p}from"./UpdateLog.c8b0b98a.js";var u=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"page-plans no-dark-content"},[e("PageTitle",{attrs:{title:t.appTitle}}),e("div",{staticClass:"top-bg"}),e("div",{staticClass:"top-menu"},[e("div",{staticClass:"header"},[e("div",{staticClass:"z-row"},[e("div",{staticClass:"header-col-sub"},[e("div",{staticClass:"logo",on:{click:t.goHome}})]),e("div",{staticClass:"z-1"},[e("dl",[e("dd",[e("div",{staticClass:"right-info",on:{click:t.goHome}},[t._v(t._s(t.$L("\u8FD4\u56DE\u9996\u9875")))]),t.showItem.updateLog?e("div",{staticClass:"right-info",on:{click:function(s){t.uplogShow=!0}}},[t._v(t._s(t.$L("\u66F4\u65B0\u65E5\u5FD7")))]):t._e(),e("a",{staticClass:"right-info item-center",attrs:{target:"_blank",href:"https://github.com/kuaifan/dootask"}},[e("Icon",{staticClass:"right-icon",attrs:{type:"logo-github"}})],1),e("Dropdown",{staticClass:"right-info",attrs:{trigger:"click"},on:{"on-click":t.onLanguage}},[e("div",{staticClass:"item-center"},[e("Icon",{staticClass:"right-icon",attrs:{type:"md-globe"}}),e("Icon",{attrs:{type:"md-arrow-dropdown"}})],1),e("Dropdown-menu",{attrs:{slot:"list"},slot:"list"},t._l(t.languageList,function(s,n){return e("Dropdown-item",{key:n,attrs:{name:n,selected:t.languageType===n}},[t._v(t._s(s))])}),1)],1)],1)])])])])]),e("div",{staticClass:"banner"},[e("div",{staticClass:"banner-title"},[t._v(" "+t._s(t.$L("\u9009\u62E9\u9002\u5408\u60A8\u7684\u7248\u672C"))+" ")]),e("div",{staticClass:"banner-desc"},[t._v(" "+t._s(t.$L("DooTask \u662F\u65B0\u4E00\u4EE3\u56E2\u961F\u534F\u4F5C\u5E73\u53F0\uFF0C\u60A8\u53EF\u4EE5\u6839\u636E\u60A8\u56E2\u961F\u7684\u9700\u6C42\uFF0C\u9009\u62E9\u5408\u9002\u7684\u4EA7\u54C1\u529F\u80FD\u3002"))+" "),e("br"),t._v(" "+t._s(t.$L("\u4ECE\u73B0\u5728\u5F00\u59CB\uFF0CDooTask \u4E3A\u4E16\u754C\u5404\u5730\u7684\u56E2\u961F\u63D0\u4F9B\u652F\u6301\uFF0C\u63A2\u7D22\u9002\u5408\u60A8\u7684\u9009\u9879\u3002"))+" ")]),e("div",{staticClass:"plans-table"},[e("div",{staticClass:"plans-table-bd plans-table-info"},[e("div",{staticClass:"plans-table-item first"},[e("div",{staticClass:"plans-table-info-th"}),e("div",{staticClass:"plans-table-info-price"},[e("em",[t._v(t._s(t.$L("\u4EF7\u683C")))])]),e("div",{staticClass:"plans-table-info-desc"},[e("em",[t._v(t._s(t.$L("\u6982\u8FF0")))])]),e("div",{staticClass:"plans-table-info-desc"},[e("em",[t._v(t._s(t.$L("\u4EBA\u6570")))])]),e("div",{staticClass:"plans-table-info-btn"})]),e("div",{staticClass:"plans-table-item",class:{active:t.active==1},on:{mouseenter:function(s){t.active=1}}},[e("div",{staticClass:"plans-table-info-th"},[t._v(t._s(t.$L("\u793E\u533A\u7248")))]),e("div",{staticClass:"plans-table-info-price"},[e("ImgView",{staticClass:"plans-version",attrs:{src:"images/pro/free.png"}}),t._m(0)],1),e("div",{staticClass:"plans-table-info-desc"},[t._v(t._s(t.$L("\u76F8\u6BD4Pro\u66F4\u65B0\u5468\u671F\u957F\u4E9B")))]),e("div",{staticClass:"plans-table-info-desc"},[t._v(t._s(t.$L("\u65E0\u9650\u5236")))]),e("div",{staticClass:"plans-table-info-btn"},[e("div",{staticClass:"plans-info-btns"},[e("a",{staticClass:"github",attrs:{href:"https://github.com/kuaifan/dootask",target:"_blank"}},[e("Icon",{attrs:{type:"logo-github"}})],1)])])]),e("div",{staticClass:"plans-table-item",class:{active:t.active==2},on:{mouseenter:function(s){t.active=2}}},[e("div",{staticClass:"plans-table-info-th"},[t._v(t._s(t.$L("Pro\u7248"))+" "),e("span",[t._v(t._s(t.$L("\u63A8\u8350")))])]),e("div",{staticClass:"plans-table-info-price"},[e("ImgView",{staticClass:"plans-version",attrs:{src:"images/pro/pro.png"}}),t._m(1)],1),e("div",{staticClass:"plans-table-info-desc"},[t._v(t._s(t.$L("\u62E5\u6709\u6700\u65B0\u7248\u672C\u6240\u6709\u529F\u80FD")))]),e("div",{staticClass:"plans-table-info-desc"},[t._v(t._s(t.$L("\u65E0\u9650\u5236")))]),e("div",{staticClass:"plans-table-info-btn"},[e("Tooltip",{attrs:{content:t.$L("\u5E10\u53F7\uFF1Aadmin\u3001\u5BC6\u7801\uFF1A123456"),transfer:""}},[e("a",{staticClass:"btn",attrs:{href:"https://www.dootask.com",target:"_blank"}},[t._v(t._s(t.$L("\u4F53\u9A8CDEMO")))])])],1)]),e("div",{staticClass:"plans-table-item",class:{active:t.active==3},on:{mouseenter:function(s){t.active=3}}},[e("div",{staticClass:"plans-table-info-th"},[t._v(t._s(t.$L("\u5B9A\u5236\u7248")))]),e("div",{staticClass:"plans-table-info-price"},[e("ImgView",{staticClass:"plans-version",attrs:{src:"images/pro/custom.png"}}),e("div",{staticClass:"currency"},[e("em",{staticClass:"custom"},[t._v(t._s(t.$L("\u81EA\u5B9A\u4E49")))])])],1),e("div",{staticClass:"plans-table-info-desc"},[t._v(t._s(t.$L("\u6839\u636E\u60A8\u7684\u9700\u6C42\u91CF\u8EAB\u5B9A\u5236")))]),e("div",{staticClass:"plans-table-info-desc"},[t._v(t._s(t.$L("\u65E0\u9650\u5236")))]),e("div",{staticClass:"plans-table-info-btn"},[e("a",{staticClass:"btn btn-contact",attrs:{href:"javascript:void(0)"},on:{click:function(s){t.contactShow=!0}}},[t._v(t._s(t.$L("\u8054\u7CFB\u6211\u4EEC")))])])])]),e("div",{staticClass:"plans-accordion-head",class:{"plans-accordion-close":!t.body1},on:{click:function(s){t.body1=!t.body1}}},[e("div",{staticClass:"first"},[e("span",[t._v(t._s(t.$L("\u5E94\u7528\u652F\u6301")))])]),e("div",{staticClass:"plans-table-item",class:{active:t.active==1},on:{mouseenter:function(s){t.active=1}}}),e("div",{staticClass:"plans-table-item",class:{active:t.active==2},on:{mouseenter:function(s){t.active=2}}}),e("div",{staticClass:"plans-table-item",class:{active:t.active==3},on:{mouseenter:function(s){t.active=3}}}),e("span",[e("Icon",{attrs:{type:"ios-arrow-down"}})],1)]),t.body1?e("div",{staticClass:"plans-accordion-body"},[e("div",{staticClass:"plans-table-bd plans-table-app"},[e("div",{staticClass:"plans-table-item first"},[e("div",{staticClass:"plans-table-td"},[t._v(t._s(t.$L("\u9879\u76EE\u7BA1\u7406")))]),e("div",{staticClass:"plans-table-td"},[t._v(t._s(t.$L("\u6587\u4EF6\u7BA1\u7406")))]),e("div",{staticClass:"plans-table-td"},[t._v(t._s(t.$L("\u56E2\u961F\u7BA1\u7406")))]),e("div",{staticClass:"plans-table-td"},[t._v(t._s(t.$L("\u5373\u65F6\u804A\u5929")))]),e("div",{staticClass:"plans-table-td"},[t._v(t._s(t.$L("\u5B50\u4EFB\u52A1")))]),e("div",{staticClass:"plans-table-td"},[t._v(t._s(t.$L("\u56FD\u9645\u5316")))]),e("div",{staticClass:"plans-table-td"},[t._v(t._s(t.$L("\u7518\u7279\u56FE")))]),e("div",{staticClass:"plans-table-td"},[t._v(t._s(t.$L("\u4EFB\u52A1\u52A8\u6001")))]),e("div",{staticClass:"plans-table-td"},[t._v(t._s(t.$L("\u5BFC\u51FA\u4EFB\u52A1")))]),e("div",{staticClass:"plans-table-td"},[t._v(t._s(t.$L("\u65E5\u7A0B")))]),e("div",{staticClass:"plans-table-td"},[t._v(t._s(t.$L("\u5468\u62A5/\u65E5\u62A5")))]),e("div",{staticClass:"plans-table-td"},[t._v(t._s(t.$L("\u521B\u5EFA\u7FA4\u804A")))]),e("div",{staticClass:"plans-table-td"},[t._v(t._s(t.$L("\u9879\u76EE\u7FA4\u804A")))]),e("div",{staticClass:"plans-table-td"},[t._v(t._s(t.$L("\u9879\u76EE\u641C\u7D22")))]),e("div",{staticClass:"plans-table-td"},[t._v(t._s(t.$L("\u4EFB\u52A1\u7C7B\u578B")))]),e("div",{staticClass:"plans-table-td"},[t._v(t._s(t.$L("\u6587\u4EF6\u641C\u7D22")))]),e("div",{staticClass:"plans-table-td"},[t._v(t._s(t.$L("Mac/PC\u5BA2\u6237\u7AEF")))]),e("div",{staticClass:"plans-table-td"},[t._v(t._s(t.$L("iOS/Android\u5BA2\u6237\u7AEF")))])]),e("div",{staticClass:"plans-table-item",class:{active:t.active==1},on:{mouseenter:function(s){t.active=1}}},[e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1)]),e("div",{staticClass:"plans-table-item",class:{active:t.active==2},on:{mouseenter:function(s){t.active=2}}},[e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1)]),e("div",{staticClass:"plans-table-item",class:{active:t.active==3},on:{mouseenter:function(s){t.active=3}}},[e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1)])])]):t._e(),e("div",{staticClass:"plans-accordion-head",class:{"plans-accordion-close":!t.body2},on:{click:function(s){t.body2=!t.body2}}},[e("div",{staticClass:"first"},[e("span",[t._v(t._s(t.$L("\u670D\u52A1\u652F\u6301")))])]),e("div",{staticClass:"plans-table-item",class:{active:t.active==1},on:{mouseenter:function(s){t.active=1}}}),e("div",{staticClass:"plans-table-item",class:{active:t.active==2},on:{mouseenter:function(s){t.active=2}}}),e("div",{staticClass:"plans-table-item",class:{active:t.active==3},on:{mouseenter:function(s){t.active=3}}}),e("span",[e("Icon",{attrs:{type:"ios-arrow-down"}})],1)]),t.body2?e("div",{staticClass:"plans-accordion-body"},[e("div",{staticClass:"plans-table-bd plans-table-app plans-table-service"},[e("div",{staticClass:"plans-table-item first"},[e("div",{staticClass:"plans-table-td"},[t._v(t._s(t.$L("\u81EA\u52A9\u652F\u6301"))+" "),e("span",[t._v(t._s(t.$L("\uFF08Issues/\u793E\u7FA4\uFF09")))])]),e("div",{staticClass:"plans-table-td"},[t._v(t._s(t.$L("\u652F\u6301\u79C1\u6709\u5316\u90E8\u7F72")))]),e("div",{staticClass:"plans-table-td"},[t._v(t._s(t.$L("\u7ED1\u5B9A\u81EA\u6709\u57DF\u540D")))]),e("div",{staticClass:"plans-table-td"},[t._v(t._s(t.$L("\u4E8C\u6B21\u5F00\u53D1")))]),e("div",{staticClass:"plans-table-td"},[t._v(t._s(t.$L("\u4E8C\u6B21\u5F00\u53D1\u54A8\u8BE2\u670D\u52A1")))]),e("div",{staticClass:"plans-table-td"},[t._v(t._s(t.$L("\u5141\u8BB8\u9690\u85CF\u6216\u5B9A\u5236\u4EA7\u54C1\u540D")))]),e("div",{staticClass:"plans-table-td"},[t._v(t._s(t.$L("\u5728\u7EBF\u54A8\u8BE2\u652F\u6301")))]),e("div",{staticClass:"plans-table-td"},[t._v(t._s(t.$L("\u7535\u8BDD\u54A8\u8BE2\u652F\u6301")))]),e("div",{staticClass:"plans-table-td"},[t._v(t._s(t.$L("\u4E2D\u82F1\u6587\u90AE\u4EF6\u652F\u6301")))]),e("div",{staticClass:"plans-table-td"},[t._v(t._s(t.$L("\u4E00\u5BF9\u4E00\u5BA2\u6237\u987E\u95EE")))]),e("div",{staticClass:"plans-table-td"},[t._v(t._s(t.$L("\u4EA7\u54C1\u57F9\u8BAD")))]),e("div",{staticClass:"plans-table-td"},[t._v(t._s(t.$L("\u4E0A\u95E8\u652F\u6301")))]),e("div",{staticClass:"plans-table-td"},[t._v(t._s(t.$L("\u4E13\u5C5E\u5BA2\u6237\u6210\u529F\u7ECF\u7406")))]),e("div",{staticClass:"plans-table-td"},[t._v(t._s(t.$L("\u514D\u8D39\u63D0\u4F9B\u4E00\u6B21\u5185\u8BAD")))]),e("div",{staticClass:"plans-table-td"},[t._v(t._s(t.$L("\u660E\u661F\u5BA2\u6237\u6848\u4F8B")))]),e("div",{staticClass:"plans-table-info-btn"})]),e("div",{staticClass:"plans-table-item",class:{active:t.active==1},on:{mouseenter:function(s){t.active=1}}},[e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),t._m(2),t._m(3),t._m(4),t._m(5),t._m(6),t._m(7),t._m(8),t._m(9),t._m(10),t._m(11),t._m(12),e("div",{staticClass:"plans-table-info-btn"},[e("div",{staticClass:"plans-info-btns"},[e("a",{staticClass:"github",attrs:{href:"https://github.com/kuaifan/dootask",target:"_blank"}},[e("Icon",{attrs:{type:"logo-github"}})],1)])])]),e("div",{staticClass:"plans-table-item",class:{active:t.active==2},on:{mouseenter:function(s){t.active=2}}},[e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),t._m(13),t._m(14),t._m(15),t._m(16),e("div",{staticClass:"plans-table-info-btn"},[e("Tooltip",{attrs:{content:t.$L("\u5E10\u53F7\uFF1Aadmin\u3001\u5BC6\u7801\uFF1A123456"),transfer:""}},[e("a",{staticClass:"btn",attrs:{href:"https://www.dootask.com",target:"_blank"}},[t._v(t._s(t.$L("\u4F53\u9A8CDEMO")))])])],1)]),e("div",{staticClass:"plans-table-item",class:{active:t.active==3},on:{mouseenter:function(s){t.active=3}}},[e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-td"},[e("Icon",{attrs:{type:"md-checkmark"}})],1),e("div",{staticClass:"plans-table-info-btn"},[e("a",{staticClass:"btn btn-contact",attrs:{href:"javascript:void(0)"},on:{click:function(s){t.contactShow=!0}}},[t._v(t._s(t.$L("\u8054\u7CFB\u6211\u4EEC")))])])])])]):t._e()])]),e("div",{staticClass:"container-fluid"},[e("div",{staticClass:"fluid-info fluid-info-1"},[e("div",{staticClass:"fluid-info-item"},[e("div",{staticClass:"info-title"},[t._v(" "+t._s(t.$L("\u591A\u79CD\u90E8\u7F72\u65B9\u5F0F\u968F\u5FC3\u9009\u62E9"))+" ")]),e("div",{staticClass:"info-function"},[e("div",{staticClass:"func-item"},[e("div",{staticClass:"image"},[e("ImgView",{attrs:{src:"images/pro/1.svg"}})],1),e("div",{staticClass:"func-desc"},[e("div",{staticClass:"desc-title"},[t._v(" "+t._s(t.$L("\u516C\u6709\u4E91"))+" ")]),e("div",{staticClass:"desc-text"},[t._v(" "+t._s(t.$L("\u65E0\u9700\u672C\u5730\u73AF\u5883\u51C6\u5907\uFF0C\u6309\u9700\u8D2D\u4E70\u5E10\u6237\uFF0C\u4E13\u4E1A\u56E2\u961F\u63D0\u4F9B\u8FD0\u7EF4\u4FDD\u969C\u670D\u52A1\uFF0C\u4E24\u5468\u4E00\u6B21\u7684\u7248\u672C\u8FED\u4EE3"))+" ")])])]),e("div",{staticClass:"func-item"},[e("div",{staticClass:"image"},[e("ImgView",{attrs:{src:"images/pro/2.svg"}})],1),e("div",{staticClass:"func-desc"},[e("div",{staticClass:"desc-title"},[t._v(" "+t._s(t.$L("\u79C1\u6709\u4E91"))+" ")]),e("div",{staticClass:"desc-text"},[t._v(" "+t._s(t.$L("\u4F01\u4E1A\u9694\u79BB\u7684\u4E91\u670D\u52A1\u5668\u73AF\u5883\uFF0C\u9AD8\u53EF\u7528\u6027\uFF0C\u7F51\u7EDC\u53CA\u5E94\u7528\u5C42\u5B8C\u6574\u9694\u79BB\uFF0C\u6570\u636E\u9AD8\u5EA6\u81EA\u4E3B\u53EF\u63A7"))+" ")])])]),e("div",{staticClass:"func-item"},[e("div",{staticClass:"image image-80"},[e("ImgView",{attrs:{src:"images/pro/3.svg"}})],1),e("div",{staticClass:"func-desc"},[e("div",{staticClass:"desc-title"},[t._v(" "+t._s(t.$L("\u672C\u5730\u670D\u52A1\u5668"))+" ")]),e("div",{staticClass:"desc-text"},[t._v(" "+t._s(t.$L("\u57FA\u4E8E Docker \u7684\u5BB9\u5668\u5316\u90E8\u7F72\uFF0C\u652F\u6301\u9AD8\u53EF\u7528\u96C6\u7FA4\uFF0C\u5FEB\u901F\u5F39\u6027\u6269\u5C55\uFF0C\u6570\u636E\u9AD8\u5EA6\u81EA\u4E3B\u53EF\u63A7"))+" ")])])])])])]),e("div",{staticClass:"fluid-info"},[e("div",{staticClass:"fluid-info-item"},[e("div",{staticClass:"info-title"},[t._v(" "+t._s(t.$L("\u5B8C\u5584\u7684\u670D\u52A1\u652F\u6301\u4F53\u7CFB"))+" ")]),e("div",{staticClass:"info-function"},[e("div",{staticClass:"func-item"},[e("div",{staticClass:"image"},[e("ImgView",{attrs:{src:"images/pro/4.svg"}})],1),e("div",{staticClass:"func-desc"},[e("div",{staticClass:"desc-title"},[t._v(" "+t._s(t.$L("1:1\u5BA2\u6237\u6210\u529F\u987E\u95EE"))+" ")]),e("div",{staticClass:"desc-text"},[t._v(" "+t._s(t.$L("\u8D44\u6DF1\u5BA2\u6237\u6210\u529F\u987E\u95EE\u5BF9\u4F01\u4E1A\u8FDB\u884C\u8C03\u7814\u3001\u6C9F\u901A\u9700\u6C42\u3001\u5236\u5B9A\u4E2A\u6027\u5316\u7684\u89E3\u51B3\u65B9\u6848\uFF0C\u5E2E\u52A9\u4F01\u4E1A\u843D\u5730"))+" ")])])]),e("div",{staticClass:"func-item"},[e("div",{staticClass:"image image-80"},[e("ImgView",{attrs:{src:"images/pro/5.svg"}})],1),e("div",{staticClass:"func-desc"},[e("div",{staticClass:"desc-title"},[t._v(" "+t._s(t.$L("\u5B8C\u5584\u7684\u57F9\u8BAD\u4F53\u7CFB"))+" ")]),e("div",{staticClass:"desc-text"},[t._v(" "+t._s(t.$L("\u6839\u636E\u9700\u6C42\u5B9A\u5236\u57F9\u8BAD\u5185\u5BB9\uFF0C\u4E3A\u4E0D\u540C\u89D2\u8272\u7ED9\u51FA\u4E13\u5C5E\u57F9\u8BAD\u65B9\u6848\uFF0C\u7EBF\u4E0A\u7EBF\u4E0B\u57F9\u8BAD\u6E20\u9053\u5168\u8986\u76D6"))+" ")])])]),e("div",{staticClass:"func-item"},[e("div",{staticClass:"image"},[e("ImgView",{attrs:{src:"images/pro/6.svg"}})],1),e("div",{staticClass:"func-desc"},[e("div",{staticClass:"desc-title"},[t._v(" "+t._s(t.$L("\u5168\u9762\u7684\u652F\u6301\u670D\u52A1"))+" ")]),e("div",{staticClass:"desc-text"},[t._v(" "+t._s(t.$L("\u591A\u79CD\u652F\u6301\u670D\u52A1\u8BA9\u4F01\u4E1A\u65E0\u540E\u987E\u4E4B\u5FE7\uFF0C7x24 \u7EBF\u4E0A\u652F\u6301\u3001\u5728\u7EBF\u5DE5\u5355\u3001\u4E2D\u82F1\u6587\u90AE\u4EF6\u652F\u6301\u3001\u4E0A\u95E8\u652F\u6301"))+" ")])])])])])]),e("div",{staticClass:"fluid-info fluid-info-3"},[e("div",{staticClass:"fluid-info-item"},[e("div",{staticClass:"info-title"},[t._v(" "+t._s(t.$L("\u591A\u91CD\u5B89\u5168\u7B56\u7565\u4FDD\u62A4\u6570\u636E"))+" ")]),e("div",{staticClass:"info-function"},[e("div",{staticClass:"func-item"},[e("div",{staticClass:"image"},[e("ImgView",{attrs:{src:"images/pro/7.svg"}})],1),e("div",{staticClass:"func-desc"},[e("div",{staticClass:"desc-title"},[t._v(" "+t._s(t.$L("\u9AD8\u53EF\u7528\u6027\u4FDD\u8BC1"))+" ")]),e("div",{staticClass:"desc-text"},[t._v(" "+t._s(t.$L("\u591A\u91CD\u65B9\u5F0F\u4FDD\u8BC1\u6570\u636E\u4E0D\u4E22\u5931\uFF0C\u9AD8\u53EF\u7528\u6545\u969C\u8F6C\u79FB\uFF0C\u5F02\u5730\u5BB9\u707E\u5907\u4EFD\uFF0C99.99%\u53EF\u7528\u6027\u4FDD\u8BC1"))+" ")])])]),e("div",{staticClass:"func-item"},[e("div",{staticClass:"image image-80"},[e("ImgView",{attrs:{src:"images/pro/8.svg"}})],1),e("div",{staticClass:"func-desc"},[e("div",{staticClass:"desc-title"},[t._v(" "+t._s(t.$L("\u6570\u636E\u52A0\u5BC6"))+" ")]),e("div",{staticClass:"desc-text"},[t._v(" "+t._s(t.$L("\u591A\u91CD\u65B9\u5F0F\u4FDD\u8BC1\u6570\u636E\u4E0D\u6CC4\u6F0F\uFF0C\u57FA\u4E8E TLS \u7684\u6570\u636E\u52A0\u5BC6\u4F20\u8F93\uFF0CDDOS \u9632\u5FA1\u548C\u5165\u4FB5\u68C0\u6D4B"))+" ")])])]),e("div",{staticClass:"func-item"},[e("div",{staticClass:"image image-50"},[e("ImgView",{attrs:{src:"images/pro/9.svg"}})],1),e("div",{staticClass:"func-desc"},[e("div",{staticClass:"desc-title"},[t._v(" "+t._s(t.$L("\u5E10\u6237\u5B89\u5168"))+" ")]),e("div",{staticClass:"desc-text"},[t._v(" "+t._s(t.$L("\u591A\u91CD\u65B9\u5F0F\u4FDD\u8BC1\u5E10\u6237\u5B89\u5168\uFF0C\u8FDC\u7A0B\u4F1A\u8BDD\u63A7\u5236\uFF0C\u8BBE\u5907\u7ED1\u5B9A\uFF0C\u5B89\u5168\u65E5\u5FD7\u4EE5\u53CA\u624B\u52BF\u5BC6\u7801"))+" ")])])])])])])]),t.systemConfig.home_footer?e("div",{staticClass:"contact-footer"},[e("span",{domProps:{innerHTML:t._s(t.systemConfig.home_footer)}})]):t._e(),e("Modal",{attrs:{title:t.$L("\u8054\u7CFB\u6211\u4EEC"),width:"430"},model:{value:t.contactShow,callback:function(s){t.contactShow=s},expression:"contactShow"}},[e("p",[t._v(t._s(t.$L("\u5982\u6709\u4EFB\u4F55\u95EE\u9898\uFF0C\u6B22\u8FCE\u4F7F\u7528\u90AE\u7BB1\u4E0E\u6211\u4EEC\u8054\u7CFB\u3002")))]),e("p",[t._v(t._s(t.$L("\u90AE\u7BB1\u5730\u5740\uFF1Aaipaw@live.cn")))]),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"primary"},on:{click:function(s){t.contactShow=!1}}},[t._v(t._s(t.$L("\u786E\u5B9A")))])],1)]),e("UpdateLog",{attrs:{"update-log":t.showItem.updateLog,"update-ver":t.showItem.updateVer},model:{value:t.uplogShow,callback:function(s){t.uplogShow=s},expression:"uplogShow"}})],1)},v=[function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"currency"},[e("em",[t._v("0")])])},function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"currency"},[e("em",[t._v("18800")])])},function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"plans-table-td"},[e("span",[t._v(" - ")])])},function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"plans-table-td"},[e("span",[t._v(" - ")])])},function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"plans-table-td"},[e("span",[t._v(" - ")])])},function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"plans-table-td"},[e("span",[t._v(" - ")])])},function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"plans-table-td"},[e("span",[t._v(" - ")])])},function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"plans-table-td"},[e("span",[t._v(" - ")])])},function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"plans-table-td"},[e("span",[t._v(" - ")])])},function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"plans-table-td"},[e("span",[t._v(" - ")])])},function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"plans-table-td"},[e("span",[t._v(" - ")])])},function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"plans-table-td"},[e("span",[t._v(" - ")])])},function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"plans-table-td"},[e("span",[t._v(" - ")])])},function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"plans-table-td"},[e("span",[t._v(" - ")])])},function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"plans-table-td"},[e("span",[t._v(" - ")])])},function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"plans-table-td"},[e("span",[t._v(" - ")])])},function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"plans-table-td"},[e("span",[t._v(" - ")])])}];const m={components:{UpdateLog:p},data(){return{languageList:r,languageType:c,active:2,body1:!0,body2:!0,contactShow:!1,systemConfig:{},showItem:{pro:!1,github:"",updateLog:"",updateVer:""},uplogShow:!1}},created(){d([{key:"\u591A\u79CD\u652F\u6301\u670D\u52A1\u8BA9\u4F01\u4E1A\u65E0\u540E\u987E\u4E4B\u5FE7\uFF0C7x24 \u7EBF\u4E0A\u652F\u6301\u3001\u5728\u7EBF\u5DE5\u5355\u3001\u4E2D\u82F1\u6587\u90AE\u4EF6\u652F\u6301\u3001\u4E0A\u95E8\u652F\u6301",zh:"","zh-CHT":"\u591A\u7A2E\u652F\u6301\u670D\u52D9\u8B93\u4F01\u696D\u7121\u5F8C\u9867\u4E4B\u6182\uFF0C7x24 \u7DDA\u4E0A\u652F\u6301\u3001\u5728\u7DDA\u5DE5\u55AE\u3001\u4E2D\u82F1\u6587\u90F5\u4EF6\u652F\u6301\u3001\u4E0A\u9580\u652F\u6301",en:"A variety of support services give the enterprise without worries.",ko:"\uB2E4\uC591\uD55C \uC9C0\uC6D0 \uC11C\uBE44\uC2A4\uB294 \uADFC\uB85C\uC790\uAC00\uC5C6\uB294 \uAE30\uC5C5\uC5D0 \uC81C\uACF5\uD569\uB2C8\uB2E4.",ja:"\u3055\u307E\u3056\u307E\u306A\u30B5\u30DD\u30FC\u30C8\u30B5\u30FC\u30D3\u30B9\u306F\u3001\u5FC3\u914D\u3059\u308B\u3053\u3068\u306A\u304F\u4F01\u696D\u3092\u63D0\u4F9B\u3057\u307E\u3059\u3002",de:"Eine Vielzahl von Unterst\xFCtzungsdiensten erteilen das Unternehmen ohne Sorgen.",fr:"Une vari\xE9t\xE9 de services de soutien donnent \xE0 l'entreprise sans soucis.",id:"Berbagai layanan dukungan memberikan perusahaan tanpa pekerja."},{key:"\u65E0\u9700\u672C\u5730\u73AF\u5883\u51C6\u5907\uFF0C\u6309\u9700\u8D2D\u4E70\u5E10\u6237\uFF0C\u4E13\u4E1A\u56E2\u961F\u63D0\u4F9B\u8FD0\u7EF4\u4FDD\u969C\u670D\u52A1\uFF0C\u4E24\u5468\u4E00\u6B21\u7684\u7248\u672C\u8FED\u4EE3",zh:"","zh-CHT":"\u7121\u9700\u672C\u5730\u74B0\u5883\u6E96\u5099\uFF0C\u6309\u9700\u8CFC\u8CB7\u5E33\u6236\uFF0C\u5C08\u696D\u5718\u968A\u63D0\u4F9B\u904B\u7DAD\u4FDD\u969C\u670D\u52D9\uFF0C\u5169\u9031\u4E00\u6B21\u7684\u7248\u672C\u8FED\u4EE3",en:"No need to prepare a local environment, buy accounts on demand, professional team provides operation and maintenance security services, and iterations for two weeks once a week",ko:"\uD604\uC9C0 \uD658\uACBD\uC744 \uC900\uBE44\uD558\uACE0, \uC8FC\uBB38\uC2DC \uACC4\uC815\uC744 \uAD6C\uB9E4, \uD504\uB85C \uD504\uB799\uD2F1 \uD300 \uC81C\uACF5 \uBC0F \uC720\uC9C0 \uBCF4\uC218 \uBCF4\uC548 \uC11C\uBE44\uC2A4 \uBC0F 2 \uC8FC \uB3D9\uC548\uC758 \uC124\uACC4\uAC00 onces onces onces\uC758 \uC124\uACC4\uAC00 \uD544\uC694\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",ja:"\u30ED\u30FC\u30AB\u30EB\u74B0\u5883\u3092\u6E96\u5099\u3057\u305F\u308A\u3001\u30A2\u30AB\u30A6\u30F3\u30C8\u3092\u30AA\u30F3\u30C7\u30DE\u30F3\u30C9\u3067\u8CFC\u5165\u3057\u305F\u308A\u3001\u30D7\u30ED\u306E\u30C1\u30FC\u30E0\u304C\u904B\u7528\u3068\u30E1\u30F3\u30C6\u30CA\u30F3\u30B9\u306E\u30BB\u30AD\u30E5\u30EA\u30C6\u30A3\u30B5\u30FC\u30D3\u30B9\u3092\u63D0\u4F9B\u3057\u305F\u308A\u3001\u9031\u306B1\u56DE\u306E\u53CD\u5FA9\u3092\u63D0\u4F9B\u3059\u308B\u5FC5\u8981\u306F\u3042\u308A\u307E\u305B\u3093\u3002",de:"Es ist nicht erforderlich, ein lokales Umfeld vorzubereiten, Konten auf Demand zu kaufen, professionelles Team f\xFCr Betriebs- und Wartungssicherheitsdienste sowie zwei Wochen einmal pro Woche Iterationen",fr:"Pas besoin de pr\xE9parer un environnement local, d'acheter des comptes \xE0 la demande, l'\xE9quipe professionnelle fournit des services de s\xE9curit\xE9 et de maintenance et des it\xE9rations pendant deux semaines une fois par semaine",id:"Tidak perlu menyiapkan lingkungan lokal, membeli akun sesuai permintaan, tim propraktik menyediakan dan layanan keamanan pemeliharaan, dan desain selama dua minggu di atasnya"},{key:"\u8D44\u6DF1\u5BA2\u6237\u6210\u529F\u987E\u95EE\u5BF9\u4F01\u4E1A\u8FDB\u884C\u8C03\u7814\u3001\u6C9F\u901A\u9700\u6C42\u3001\u5236\u5B9A\u4E2A\u6027\u5316\u7684\u89E3\u51B3\u65B9\u6848\uFF0C\u5E2E\u52A9\u4F01\u4E1A\u843D\u5730",zh:"","zh-CHT":"\u8CC7\u6DF1\u5BA2\u6236\u6210\u529F\u9867\u554F\u5C0D\u4F01\u696D\u9032\u884C\u8ABF\u7814\u3001\u6E9D\u901A\u9700\u6C42\u3001\u5236\u5B9A\u500B\u6027\u5316\u7684\u89E3\u6C7A\u65B9\u6848\uFF0C\u5E6B\u52A9\u4F01\u696D\u843D\u5730",en:"Senior customer successful consultants investigate, communicate needs, and formulate personalized solutions to help enterprises land",ko:"\uC120\uC784 \uACE0\uAC1D \uC131\uACF5\uC801\uC778 \uCEE8\uC124\uD134\uD2B8\uB294 \uAE30\uC5C5 \uD1A0\uC9C0\uB97C \uB3D5\uAE30 \uC704\uD574 \uC870\uC0AC, \uC694\uAD6C\uB97C \uC870\uC0AC\uD558\uACE0 \uAC1C\uC778\uD654 \uB41C \uC194\uB8E8\uC158\uC744 \uACF5\uC2DD\uD654\uD569\uB2C8\uB2E4.",ja:"\u30B7\u30CB\u30A2\u9867\u5BA2\u306E\u6210\u529F\u30B3\u30F3\u30B5\u30EB\u30BF\u30F3\u30C8\u306F\u3001\u4F01\u696D\u306E\u571F\u5730\u3092\u652F\u63F4\u3059\u308B\u305F\u3081\u306B\u30D1\u30FC\u30BD\u30CA\u30E9\u30A4\u30BA\u3055\u308C\u305F\u30BD\u30EA\u30E5\u30FC\u30B7\u30E7\u30F3\u3092\u8ABF\u67FB\u3001\u30B3\u30DF\u30E5\u30CB\u30B1\u30FC\u30B7\u30E7\u30F3\u3001\u304A\u3088\u3073\u7B56\u5B9A\u3057\u307E\u3059",de:"Senior Customer -erfolgreiche Berater untersuchen, kommunizieren Bed\xFCrfnisse und formulieren personalisierte L\xF6sungen, um Unternehmen beim Land zu helfen",fr:"Les consultants \xE0 succ\xE8s des clients seniors enqu\xEAtent, communiquent les besoins et formulent des solutions personnalis\xE9es pour aider les entreprises \xE0 terrer",id:"Pelanggan Senior Konsultan sukses menyelidiki, berkomunikasi kebutuhan, dan merumuskan solusi yang dipersonalisasi untuk membantu perusahaan mendarat"},{key:"\u4F01\u4E1A\u9694\u79BB\u7684\u4E91\u670D\u52A1\u5668\u73AF\u5883\uFF0C\u9AD8\u53EF\u7528\u6027\uFF0C\u7F51\u7EDC\u53CA\u5E94\u7528\u5C42\u5B8C\u6574\u9694\u79BB\uFF0C\u6570\u636E\u9AD8\u5EA6\u81EA\u4E3B\u53EF\u63A7",zh:"","zh-CHT":"\u4F01\u696D\u9694\u96E2\u7684\u96F2\u670D\u52D9\u5668\u74B0\u5883\uFF0C\u9AD8\u53EF\u7528\u6027\uFF0C\u7DB2\u7D61\u53CA\u61C9\u7528\u5C64\u5B8C\u6574\u9694\u96E2\uFF0C\u6578\u64DA\u9AD8\u5EA6\u81EA\u4E3B\u53EF\u63A7",en:"Enterprise isolation cloud server environment, high availability, network and application layer complete isolation, data high and controllable",ko:"\uC5D4\uD130\uD504\uB77C\uC774\uC988 \uACA9\uB9AC \uD074\uB77C\uC6B0\uB4DC \uC11C\uBC84 \uD658\uACBD, \uACE0 \uAC00\uC6A9\uC131, \uB124\uD2B8\uC6CC\uD06C \uBC0F \uC560\uD50C\uB9AC\uCF00\uC774\uC158 \uACC4\uCE35 \uC644\uC804\uD55C \uACA9\uB9AC, \uB370\uC774\uD130 \uB192\uC74C \uBC0F \uC81C\uC5B4 \uD654",ja:"\u30A8\u30F3\u30BF\u30FC\u30D7\u30E9\u30A4\u30BA\u5206\u96E2\u30AF\u30E9\u30A6\u30C9\u30B5\u30FC\u30D0\u30FC\u74B0\u5883\u3001\u9AD8\u53EF\u7528\u6027\u3001\u30CD\u30C3\u30C8\u30EF\u30FC\u30AF\u304A\u3088\u3073\u30A2\u30D7\u30EA\u30B1\u30FC\u30B7\u30E7\u30F3\u30EC\u30A4\u30E4\u30FC\u306E\u5B8C\u5168\u306A\u5206\u96E2\u3001\u30C7\u30FC\u30BF\u304C\u9AD8\u304F\u3001\u5236\u5FA1\u53EF\u80FD\u306A\u30C7\u30FC\u30BF",de:"Enterprise Isolation Cloud Server -Umgebung, hohe Verf\xFCgbarkeit, Netzwerk- und Anwendungsschicht vollst\xE4ndige Isolation, Daten hoch und kontrollierbar",fr:"Environnement du serveur cloud d'isolement d'entreprise, haute disponibilit\xE9, r\xE9seau de r\xE9seau et de couche d'application Isolement complet, donn\xE9es \xE9lev\xE9es et contr\xF4lables",id:"Lingkungan server cloud isolasi perusahaan, ketersediaan tinggi, jaringan dan lapisan aplikasi isolasi lengkap, data tinggi dan pengendalian"},{key:"\u6839\u636E\u9700\u6C42\u5B9A\u5236\u57F9\u8BAD\u5185\u5BB9\uFF0C\u4E3A\u4E0D\u540C\u89D2\u8272\u7ED9\u51FA\u4E13\u5C5E\u57F9\u8BAD\u65B9\u6848\uFF0C\u7EBF\u4E0A\u7EBF\u4E0B\u57F9\u8BAD\u6E20\u9053\u5168\u8986\u76D6",zh:"","zh-CHT":"\u6839\u64DA\u9700\u6C42\u5B9A\u5236\u57F9\u8A13\u5167\u5BB9\uFF0C\u70BA\u4E0D\u540C\u89D2\u8272\u7D66\u51FA\u5C08\u5C6C\u57F9\u8A13\u65B9\u6848\uFF0C\u7DDA\u4E0A\u7DDA\u4E0B\u57F9\u8A13\u6E20\u9053\u5168\u8986\u84CB",en:"Customize the training content according to the needs, give the exclusive training scheme for different roles, and the online and offline training channels are fully covered",ko:"The The The The The Needs, \uB2E4\uB978 \uC5ED\uD560\uC5D0 \uB300\uD55C \uB3C5\uC810 \uAD50\uC721 \uACC4\uD68D\uC744 \uC81C\uACF5\uD558\uBA70 \uC628\uB77C\uC778 \uBC0F \uC0AC\uBB34\uC2E4 \uAD50\uC721 \uCC44\uB110\uC774 \uC644\uC804\uD788 \uCEE4\uBC84\uB429\uB2C8\uB2E4.",ja:"\u30CB\u30FC\u30BA\u306B\u5FDC\u3058\u3066\u30C8\u30EC\u30FC\u30CB\u30F3\u30B0\u30B3\u30F3\u30C6\u30F3\u30C4\u3092\u30AB\u30B9\u30BF\u30DE\u30A4\u30BA\u3057\u3001\u3055\u307E\u3056\u307E\u306A\u5F79\u5272\u306E\u6392\u4ED6\u7684\u306A\u30C8\u30EC\u30FC\u30CB\u30F3\u30B0\u30B9\u30AD\u30FC\u30E0\u3092\u63D0\u4F9B\u3059\u308B\u3068\u3001\u30AA\u30F3\u30E9\u30A4\u30F3\u304A\u3088\u3073\u30AA\u30D5\u30E9\u30A4\u30F3\u306E\u30C8\u30EC\u30FC\u30CB\u30F3\u30B0\u30C1\u30E3\u30CD\u30EB\u304C\u5B8C\u5168\u306B\u30AB\u30D0\u30FC\u3055\u308C\u3066\u3044\u307E\u3059",de:"Passen Sie die Schulungsinhalte entsprechend den Anforderungen an, geben Sie das exklusive Schulungsschema f\xFCr verschiedene Rollen an, und die Online- und Offline -Trainingskan\xE4le sind vollst\xE4ndig abgedeckt",fr:"Personnalisez le contenu de formation en fonction des besoins, donnez le sch\xE9ma de formation exclusif pour diff\xE9rents r\xF4les, et les canaux de formation en ligne et hors ligne sont enti\xE8rement couverts",id:"CustMize the the the the the the the Needs, Berikan skema pelatihan eksklusif untuk peran yang berbeda, dan saluran pelatihan online dan kantor tertutup sepenuhnya"},{key:"DooTask \u662F\u65B0\u4E00\u4EE3\u56E2\u961F\u534F\u4F5C\u5E73\u53F0\uFF0C\u60A8\u53EF\u4EE5\u6839\u636E\u60A8\u56E2\u961F\u7684\u9700\u6C42\uFF0C\u9009\u62E9\u5408\u9002\u7684\u4EA7\u54C1\u529F\u80FD\u3002",zh:"","zh-CHT":"DooTask \u662F\u65B0\u4E00\u4EE3\u5718\u968A\u5354\u4F5C\u5E73\u53F0\uFF0C\u60A8\u53EF\u4EE5\u6839\u64DA\u60A8\u5718\u968A\u7684\u9700\u6C42\uFF0C\u9078\u64C7\u5408\u9069\u7684\u7522\u54C1\u529F\u80FD\u3002",en:"Dootask is a new generation of team collaboration platform. You can choose the appropriate product function according to the needs of your team.",ko:"Dootask\uB294 \uC0C8\uB85C\uC6B4 \uC138\uB300\uC758 \uD300 \uD611\uC5C5 \uD50C\uB7AB\uD3FC\uC785\uB2C8\uB2E4. \uD300\uC758 \uD544\uC694\uD55C \uAC83\uB4E4\uC5D0 \uB300\uD55C \uC801\uC808\uD55C \uC591\uC721 \uC7AC\uBBF8\uB97C \uC120\uD0DD\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.",ja:"Dootask\u306F\u3001\u65B0\u4E16\u4EE3\u306E\u30C1\u30FC\u30E0\u30B3\u30E9\u30DC\u30EC\u30FC\u30B7\u30E7\u30F3\u30D7\u30E9\u30C3\u30C8\u30D5\u30A9\u30FC\u30E0\u3067\u3059\u3002\u30C1\u30FC\u30E0\u306E\u30CB\u30FC\u30BA\u306B\u5FDC\u3058\u3066\u9069\u5207\u306A\u88FD\u54C1\u6A5F\u80FD\u3092\u9078\u629E\u3067\u304D\u307E\u3059\u3002",de:"Dootask ist eine neue Generation von Team -Kollaborationsplattform. Sie k\xF6nnen die entsprechende Produktfunktion entsprechend Ihrem Team ausw\xE4hlen.",fr:"Dootask est une nouvelle g\xE9n\xE9ration de plate-forme de collaboration d'\xE9quipe. Vous pouvez choisir la fonction de produit appropri\xE9e en fonction des besoins de votre \xE9quipe.",id:"Dootask adalah generasi baru platform kolaborasi tim. Anda dapat memamerkan kesenangan yang menyenangkan untuk kebutuhan tim Anda."},{key:"\u57FA\u4E8E Docker \u7684\u5BB9\u5668\u5316\u90E8\u7F72\uFF0C\u652F\u6301\u9AD8\u53EF\u7528\u96C6\u7FA4\uFF0C\u5FEB\u901F\u5F39\u6027\u6269\u5C55\uFF0C\u6570\u636E\u9AD8\u5EA6\u81EA\u4E3B\u53EF\u63A7",zh:"","zh-CHT":"\u57FA\u65BC Docker \u7684\u5BB9\u5668\u5316\u90E8\u7F72\uFF0C\u652F\u6301\u9AD8\u53EF\u7528\u96C6\u7FA4\uFF0C\u5FEB\u901F\u5F48\u6027\u64F4\u5C55\uFF0C\u6578\u64DA\u9AD8\u5EA6\u81EA\u4E3B\u53EF\u63A7",en:"Based on Docker's containerization deployment, support high available clusters, rapid elastic expansion, data highly controlled and controllable",ko:"Docker\uC758 \uCEE8\uD14C\uC774\uB108\uD654 \uBC30\uCE58\uB97C \uAE30\uBC18\uC73C\uB85C, \uB192\uC740 \uAC00\uC6A9 \uD074\uB7EC\uC2A4\uD130, \uBE60\uB978 \uD0C4\uC131 \uD655\uC7A5, \uB370\uC774\uD130\uAC00 \uACE0\uB3C4\uB85C \uC81C\uC5B4\uB418\uACE0 \uC81C\uC5B4\uB418\uB294 \uC9C0\uC6D0",ja:"Docker\u306E\u30B3\u30F3\u30C6\u30CA\u5316\u306E\u5C55\u958B\u306B\u57FA\u3065\u3044\u3066\u3001\u5229\u7528\u53EF\u80FD\u306A\u9AD8\u3044\u30AF\u30E9\u30B9\u30BF\u30FC\u3001\u6025\u901F\u306A\u5F3E\u6027\u62E1\u5F35\u3001\u9AD8\u5EA6\u306B\u5236\u5FA1\u3055\u308C\u3001\u5236\u5FA1\u53EF\u80FD\u306A\u30C7\u30FC\u30BF\u3092\u30B5\u30DD\u30FC\u30C8\u3057\u307E\u3059",de:"Basierend auf der Bereitstellung von Docker's Containerisierung, Unterst\xFCtzung von hohen verf\xFCgbaren Clustern, schnelle elastische Expansion, Daten hoch kontrolliert und kontrollierbar",fr:"Sur la base du d\xE9ploiement de la conteneurisation de Docker, prends en charge les clusters \xE9lev\xE9s disponibles, l'expansion \xE9lastique rapide, les donn\xE9es hautement contr\xF4l\xE9es et contr\xF4lables",id:"Berdasarkan penyebaran kontainerisasi Docker, mendukung kluster tinggi yang tersedia, ekspansi elastis cepat, data sangat terkontrol dan dikendalikan"},{key:"\u591A\u91CD\u65B9\u5F0F\u4FDD\u8BC1\u6570\u636E\u4E0D\u4E22\u5931\uFF0C\u9AD8\u53EF\u7528\u6545\u969C\u8F6C\u79FB\uFF0C\u5F02\u5730\u5BB9\u707E\u5907\u4EFD\uFF0C99.99%\u53EF\u7528\u6027\u4FDD\u8BC1",zh:"","zh-CHT":"\u591A\u91CD\u65B9\u5F0F\u4FDD\u8B49\u6578\u64DA\u4E0D\u4E1F\u5931\uFF0C\u9AD8\u53EF\u7528\u6545\u969C\u8F49\u79FB\uFF0C\u7570\u5730\u5BB9\u707D\u5099\u4EFD\uFF0C99.99%\u53EF\u7528\u6027\u4FDD\u8B49",en:"Multiple ways to ensure that the data is not lost, high availability can be transferred, disasters are backup, 99.99%availability guarantee guarantee",ko:"\uB370\uC774\uD130\uAC00 \uAE38\uC9C0 \uC54A\uB3C4\uB85D\uD558\uB294 \uC5EC\uB7EC \uAC00\uC9C0 \uBC29\uBC95, \uACE0 \uAC00\uC6A9\uC131\uC744 \uC804\uC1A1\uD560 \uC218 \uC788\uACE0, \uC7AC\uD574\uB294 \uBC31\uC5C5\uB418\uBA70, 99.99%\uAC00\uC6A9\uC131 \uBCF4\uC99D\uC778 \uBCF4\uC99D\uC778",ja:"\u30C7\u30FC\u30BF\u304C\u5931\u308F\u308C\u306A\u3044\u3088\u3046\u306B\u3059\u308B\u8907\u6570\u306E\u65B9\u6CD5\u3001\u9AD8\u53EF\u7528\u6027\u3092\u8EE2\u9001\u3057\u3001\u707D\u5BB3\u306F\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u300199.99\uFF05\u306E\u53EF\u7528\u6027\u4FDD\u8A3C\u4FDD\u8A3C",de:"Mehrere M\xF6glichkeiten, um sicherzustellen, dass die Daten nicht verloren gehen, kann eine hohe Verf\xFCgbarkeit \xFCbertragen werden, Katastrophen Backups, 99,99%Verf\xFCgbarkeitsgarantie Garantie -Garantie",fr:"Plusieurs fa\xE7ons de s'assurer que les donn\xE9es ne sont pas perdues, la haute disponibilit\xE9 peut \xEAtre transf\xE9r\xE9e, les catastrophes sont une sauvegarde, une garantie de garantie de disponibilit\xE9 de 99,99%",id:"Berbagai cara untuk memastikan bahwa data tidak panjang, ketersediaan tinggi dapat ditransfer, bencana adalah cadangan, 99,99%ketersediaan jaminan jaminan"},{key:"\u591A\u91CD\u65B9\u5F0F\u4FDD\u8BC1\u5E10\u6237\u5B89\u5168\uFF0C\u8FDC\u7A0B\u4F1A\u8BDD\u63A7\u5236\uFF0C\u8BBE\u5907\u7ED1\u5B9A\uFF0C\u5B89\u5168\u65E5\u5FD7\u4EE5\u53CA\u624B\u52BF\u5BC6\u7801",zh:"","zh-CHT":"\u591A\u91CD\u65B9\u5F0F\u4FDD\u8B49\u5E33\u6236\u5B89\u5168\uFF0C\u9060\u7A0B\u6703\u8A71\u63A7\u5236\uFF0C\u8A2D\u5099\u7D81\u5B9A\uFF0C\u5B89\u5168\u65E5\u8A8C\u4EE5\u53CA\u624B\u52E2\u5BC6\u78BC",en:"Multiple ways to ensure account security, remote session control, device binding, security logs and gesture passwords",ko:"\uACC4\uC815 \uBCF4\uC548, \uC6D0\uACA9 \uC138\uC158 \uC81C\uC5B4, \uC7A5\uCE58 \uBC14\uC778\uB529, \uBCF4\uC548 \uB85C\uADF8 \uBC0F \uC81C\uC2A4\uCC98 \uC554\uD638\uB97C \uBCF4\uC7A5\uD558\uB294 \uC5EC\uB7EC \uAC00\uC9C0 \uBC29\uBC95",ja:"\u30A2\u30AB\u30A6\u30F3\u30C8\u30BB\u30AD\u30E5\u30EA\u30C6\u30A3\u3001\u30EA\u30E2\u30FC\u30C8\u30BB\u30C3\u30B7\u30E7\u30F3\u5236\u5FA1\u3001\u30C7\u30D0\u30A4\u30B9\u30D0\u30A4\u30F3\u30C7\u30A3\u30F3\u30B0\u3001\u30BB\u30AD\u30E5\u30EA\u30C6\u30A3\u30ED\u30B0\u3001\u30B8\u30A7\u30B9\u30C1\u30E3\u30FC\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u78BA\u4FDD\u3059\u308B\u8907\u6570\u306E\u65B9\u6CD5",de:"Mehrere M\xF6glichkeiten, um die Sicherheitssicherheit, die Steuerung der Remotesitzung, die Ger\xE4tebindung, die Sicherheitsprotokolle und die Gestenkennw\xF6rter sicherzustellen",fr:"Plusieurs fa\xE7ons d'assurer la s\xE9curit\xE9 du compte, le contr\xF4le de session \xE0 distance, la liaison des p\xE9riph\xE9riques, les journaux de s\xE9curit\xE9 et les mots de passe gestuels",id:"Berbagai cara untuk memastikan keamanan akun, kontrol sesi jarak jauh, pengikatan perangkat, log keamanan dan kata sandi gerakan"},{key:"\u591A\u91CD\u65B9\u5F0F\u4FDD\u8BC1\u6570\u636E\u4E0D\u6CC4\u6F0F\uFF0C\u57FA\u4E8E TLS \u7684\u6570\u636E\u52A0\u5BC6\u4F20\u8F93\uFF0CDDOS \u9632\u5FA1\u548C\u5165\u4FB5\u68C0\u6D4B",zh:"","zh-CHT":"\u591A\u91CD\u65B9\u5F0F\u4FDD\u8B49\u5E33\u6236\u5B89\u5168\uFF0C\u9060\u7A0B\u6703\u8A71\u63A7\u5236\uFF0C\u8A2D\u5099\u7D81\u5B9A\uFF0C\u5B89\u5168\u65E5\u8A8C\u4EE5\u53CA\u624B\u52E2\u5BC6\u78BC",en:"Multi -way guarantees the data is not leaked. TLS -based data encryption transmission, DDOS defense and intrusion detection",ko:"\uB2E4\uC911 \uC6E8\uC774 Guarane \uB370\uC774\uD130\uAC00 \uC720\uCD9C\uB418\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4. TLS \uAE30\uBC18 \uB370\uC774\uD130 \uC554\uD638\uD654 \uC804\uC1A1, DDOS \uBC29\uC5B4 \uBC0F \uCE68\uC785 \uD0D0\uC9C0",ja:"\u30A2\u30AB\u30A6\u30F3\u30C8\u30BB\u30AD\u30E5\u30EA\u30C6\u30A3\u3001\u30EA\u30E2\u30FC\u30C8\u30BB\u30C3\u30B7\u30E7\u30F3\u5236\u5FA1\u3001\u30C7\u30D0\u30A4\u30B9\u30D0\u30A4\u30F3\u30C7\u30A3\u30F3\u30B0\u3001\u30BB\u30AD\u30E5\u30EA\u30C6\u30A3\u30ED\u30B0\u3001\u30B8\u30A7\u30B9\u30C1\u30E3\u30FC\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u78BA\u4FDD\u3059\u308B\u8907\u6570\u306E\u65B9\u6CD5",de:"Multi -Way -Garantien, dass die Daten nicht durchgesickert sind.",fr:"Garantie multi-voies Les donn\xE9es ne sont pas divulgu\xE9es. Transmission de chiffrement des donn\xE9es bas\xE9e sur TLS, d\xE9fense DDOS et d\xE9tection d'intrusion",id:"Multi -Way Guaranees Data tidak bocor. Transmisi enkripsi data berbasis TLS, DDOS Defense dan Detection Intrusion"},{key:"\u4ECE\u73B0\u5728\u5F00\u59CB\uFF0CDooTask \u4E3A\u4E16\u754C\u5404\u5730\u7684\u56E2\u961F\u63D0\u4F9B\u652F\u6301\uFF0C\u63A2\u7D22\u9002\u5408\u60A8\u7684\u9009\u9879\u3002",zh:"","zh-CHT":"\u5F9E\u73FE\u5728\u958B\u59CB\uFF0CDooTask \u70BA\u4E16\u754C\u5404\u5730\u7684\u5718\u968A\u63D0\u4F9B\u652F\u6301\uFF0C\u63A2\u7D22\u9069\u5408\u60A8\u7684\u9078\u9805\u3002",en:"From now on, Dootask has provided support for teams around the world and explores the options suitable for you.",ko:"\uC774\uC81C\uBD80\uD130 Dootask\uB294 \uC804 \uC138\uACC4 \uD300\uC744 \uC704\uD574 \uC9C0\uC6D0\uC744 \uC81C\uACF5\uD588\uC73C\uBA70 \uADC0\uD558\uC5D0\uAC8C \uC801\uD569\uD55C \uC635\uC158\uC744 \uD0D0\uC0C9\uD569\uB2C8\uB2E4.",ja:"\u3053\u308C\u304B\u3089\u3001Dootask\u306F\u4E16\u754C\u4E2D\u306E\u30C1\u30FC\u30E0\u306B\u30B5\u30DD\u30FC\u30C8\u3092\u63D0\u4F9B\u3057\u3001\u3042\u306A\u305F\u306B\u9069\u3057\u305F\u30AA\u30D7\u30B7\u30E7\u30F3\u3092\u63A2\u308A\u307E\u3059\u3002",de:"Von nun an hat Dootask Teams auf der ganzen Welt unterst\xFCtzt und die f\xFCr Sie geeigneten Optionen untersucht.",fr:"\xC0 partir de maintenant, Dootask a fourni un soutien aux \xE9quipes du monde entier et explore les options qui vous conviennent.",id:"Mulai sekarang, Dootask telah memberikan yang disediakan untuk tim di seluruh dunia dan mengeksplorasi opsi yang cocok untuk Anda."},{key:"\u5982\u6709\u4EFB\u4F55\u95EE\u9898\uFF0C\u6B22\u8FCE\u4F7F\u7528\u90AE\u7BB1\u4E0E\u6211\u4EEC\u8054\u7CFB\u3002",zh:"","zh-CHT":"\u5982\u6709\u4EFB\u4F55\u554F\u984C\uFF0C\u6B61\u8FCE\u4F7F\u7528\u90F5\u7BB1\u8207\u6211\u5011\u806F\u7E6B\u3002",en:"If you have any questions, please use your mailbox to contact us.",ko:"\uAD81\uAE08\uD55C \uC810\uC774 \uC788\uC73C\uBA74 \uC0AC\uC11C\uD568\uC744 \uC0AC\uC6A9\uD558\uC5EC \uBB38\uC758\uD558\uC2ED\uC2DC\uC624.",ja:"\u3054\u8CEA\u554F\u304C\u3042\u308B\u5834\u5408\u306F\u3001\u30E1\u30FC\u30EB\u30DC\u30C3\u30AF\u30B9\u3092\u4F7F\u7528\u3057\u3066\u304A\u554F\u3044\u5408\u308F\u305B\u304F\u3060\u3055\u3044\u3002",de:"Wenn Sie Fragen haben, verwenden Sie bitte Ihre Mailbox, um uns zu kontaktieren.",fr:"Si vous avez des questions, veuillez utiliser votre bo\xEEte aux lettres pour nous contacter.",id:"Jika Anda memiliki pertanyaan, silakan gunakan kotak surat Anda untuk menghubungi kami."},{key:"\u5E10\u53F7\uFF1A(*)\u3001\u5BC6\u7801\uFF1A(*)",zh:"","zh-CHT":"\u5E33\u865F\uFF1A(*)\u3001\u5BC6\u78BC\uFF1A(*)",en:"Account password:(*)",ko:"\uACC4\uC815 \uBE44\uBC00\uBC88\uD638: (*)",ja:"\u30A2\u30AB\u30A6\u30F3\u30C8\u30D1\u30B9\u30EF\u30FC\u30C9\uFF1A\uFF08*\uFF09",de:"Konto Passwort:(*)",fr:"mot de passe du compte:(*)",id:"kata sandi akun: (*)"},{key:"\u5141\u8BB8\u9690\u85CF\u6216\u5B9A\u5236\u4EA7\u54C1\u540D",zh:"","zh-CHT":"\u5141\u8A31\u96B1\u85CF\u6216\u5B9A\u5236\u7522\u54C1\u540D",en:"Allow hidden or customized product name",ko:"\uC228\uACA8\uC838 \uC788\uAC70\uB098 \uB9DE\uCDA4\uD615 \uC81C\uD488 \uC774\uB984\uC744 \uD5C8\uC6A9\uD558\uC2ED\uC2DC\uC624",ja:"\u975E\u8868\u793A\u307E\u305F\u306F\u30AB\u30B9\u30BF\u30DE\u30A4\u30BA\u3055\u308C\u305F\u88FD\u54C1\u540D\u3092\u8A31\u53EF\u3057\u307E\u3059",de:"Erm\xF6glichen Sie den versteckten oder angepassten Produktnamen",fr:"Autoriser le nom du produit cach\xE9 ou personnalis\xE9",id:"Izinkan nama produk tersembunyi atau disesuaikan"},{key:"\u591A\u79CD\u90E8\u7F72\u65B9\u5F0F\u968F\u5FC3\u9009\u62E9",zh:"","zh-CHT":"\u591A\u7A2E\u90E8\u7F72\u65B9\u5F0F\u96A8\u5FC3\u9078\u64C7",en:"Choose a variety of deployment methods at will",ko:"\uB9C8\uC74C\uB300\uB85C \uB2E4\uC591\uD55C \uBC30\uD3EC \uBC29\uBC95\uC744 \uC120\uD0DD\uD558\uC2ED\uC2DC\uC624",ja:"\u3055\u307E\u3056\u307E\u306A\u5C55\u958B\u65B9\u6CD5\u3092\u81EA\u7531\u306B\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",de:"W\xE4hlen Sie nach Belieben eine Vielzahl von Bereitstellungsmethoden",fr:"Choisissez une vari\xE9t\xE9 de m\xE9thodes de d\xE9ploiement \xE0 volont\xE9",id:"Pilih berbagai metode penempatan sesuka hati"},{key:"\u591A\u91CD\u5B89\u5168\u7B56\u7565\u4FDD\u62A4\u6570\u636E",zh:"","zh-CHT":"\u591A\u91CD\u5B89\u5168\u7B56\u7565\u4FDD\u8B77\u6578\u64DA",en:"Multiple security strategy protection data",ko:"\uB2E4\uC911 \uBCF4\uC548 \uC804\uB7B5 \uBCF4\uD638 \uB370\uC774\uD130",ja:"\u8907\u6570\u306E\u30BB\u30AD\u30E5\u30EA\u30C6\u30A3\u6226\u7565\u4FDD\u8B77\u30C7\u30FC\u30BF",de:"Mehrere Sicherheitsstrategieschutzdaten",fr:"Donn\xE9es de protection de la strat\xE9gie de s\xE9curit\xE9 multiples",id:"Data Perlindungan Strategi Keamanan Berganda"},{key:"\u62E5\u6709\u6700\u65B0\u7248\u672C\u6240\u6709\u529F\u80FD",zh:"","zh-CHT":"\u64C1\u6709\u6700\u65B0\u7248\u672C\u6240\u6709\u529F\u80FD",en:"Have all functions of the latest version",ko:"\uCD5C\uC2E0 \uBC84\uC804\uC758 \uBAA8\uB4E0 \uAE30\uB2A5\uC774 \uC788\uC2B5\uB2C8\uB2E4",ja:"\u6700\u65B0\u30D0\u30FC\u30B8\u30E7\u30F3\u306E\u3059\u3079\u3066\u306E\u6A5F\u80FD\u3092\u6301\u3063\u3066\u3044\u307E\u3059",de:"Haben Sie alle Funktionen der neuesten Version",fr:"Avoir toutes les fonctions de la derni\xE8re version",id:"Memiliki semua fungsi versi terbaru"},{key:"\u6839\u636E\u60A8\u7684\u9700\u6C42\u91CF\u8EAB\u5B9A\u5236",zh:"","zh-CHT":"\u6839\u64DA\u60A8\u7684\u9700\u6C42\u91CF\u8EAB\u5B9A\u5236",en:"Customized according to your needs",ko:"\uC0AC\uC6A9\uC790 \uC815\uC758\uD558\uC2ED\uC2DC\uC624",ja:"\u30CB\u30FC\u30BA\u306B\u5FDC\u3058\u3066\u30AB\u30B9\u30BF\u30DE\u30A4\u30BA\u3055\u308C\u3066\u3044\u307E\u3059",de:"Angepasst nach Ihren Bed\xFCrfnissen",fr:"Personnalis\xE9 en fonction de vos besoins",id:"Menyesuaikan"},{key:"\u5B8C\u5584\u7684\u670D\u52A1\u652F\u6301\u4F53\u7CFB",zh:"","zh-CHT":"\u5B8C\u5584\u7684\u670D\u52D9\u652F\u6301\u9AD4\u7CFB",en:"Perfect service support system",ko:"\uC644\uBCBD\uD55C \uC11C\uBE44\uC2A4 \uC9C0\uC6D0 \uC2DC\uC2A4\uD15C",ja:"\u5B8C\u74A7\u306A\u30B5\u30FC\u30D3\u30B9\u30B5\u30DD\u30FC\u30C8\u30B7\u30B9\u30C6\u30E0",de:"Perfektes Service -Support -System",fr:"Syst\xE8me de support de service parfait",id:"Sistem Dukungan Layanan yang Sempurna"},{key:"\u4E13\u5C5E\u5BA2\u6237\u6210\u529F\u7ECF\u7406",zh:"","zh-CHT":"\u5C08\u5C6C\u5BA2\u6236\u6210\u529F\u7D93\u7406",en:"Customer success manager",ko:"\uACE0\uAC1D \uC131\uACF5 \uAD00\uB9AC\uC790",ja:"\u30AB\u30B9\u30BF\u30DE\u30FC\u30B5\u30AF\u30BB\u30B9\u30DE\u30CD\u30FC\u30B8\u30E3\u30FC",de:"Kundenerfolgsmanager",fr:"Client Success Manager",id:"Manajer Sukses Pelanggan"},{key:"\u4E8C\u6B21\u5F00\u53D1\u54A8\u8BE2\u670D\u52A1",zh:"","zh-CHT":"\u4E8C\u6B21\u958B\u767C\u8AEE\u8A62\u670D\u52D9",en:"Secondary development consulting service",ko:"2 \uCC28 \uAC1C\uBC1C \uCEE8\uC124\uD305 \uC11C\uBE44\uC2A4",ja:"\u4E8C\u6B21\u958B\u767A\u30B3\u30F3\u30B5\u30EB\u30C6\u30A3\u30F3\u30B0\u30B5\u30FC\u30D3\u30B9",de:"Sekund\xE4rentwicklungsberatungsdienst",fr:"Service de conseil en d\xE9veloppement secondaire",id:"Layanan Konsultasi Pengembangan Sekunder"},{key:"\u514D\u8D39\u63D0\u4F9B\u4E00\u6B21\u5185\u8BAD",zh:"","zh-CHT":"\u514D\u8CBB\u63D0\u4F9B\u4E00\u6B21\u5167\u8A13",en:"Provide internal training for free",ko:"\uC778\uD130\uB137\uC744 \uBB34\uB8CC\uB85C \uC81C\uACF5\uD558\uC2ED\uC2DC\uC624",ja:"\u7121\u6599\u3067\u5185\u90E8\u30C8\u30EC\u30FC\u30CB\u30F3\u30B0\u3092\u63D0\u4F9B\u3057\u307E\u3059",de:"Bieten Sie kostenlos interne Schulungen an",fr:"Fournir une formation interne gratuitement",id:"Menyediakan internet secara gratis"},{key:"\u9009\u62E9\u9002\u5408\u60A8\u7684\u7248\u672C",zh:"","zh-CHT":"\u9078\u64C7\u9069\u5408\u60A8\u7684\u7248\u672C",en:"Choose the version that suits you",ko:"\uC790\uC2E0\uC5D0\uAC8C \uB9DE\uB294 \uBC84\uC804\uC744 \uC120\uD0DD\uD558\uC2ED\uC2DC\uC624",ja:"\u3042\u306A\u305F\u306B\u5408\u3063\u305F\u30D0\u30FC\u30B8\u30E7\u30F3\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",de:"W\xE4hlen Sie die Version, die zu Ihnen passt",fr:"Choisissez la version qui vous convient",id:"Pilih versi yang cocok untuk Anda"},{key:"1:1\u5BA2\u6237\u6210\u529F\u987E\u95EE",zh:"","zh-CHT":"1:1\u5BA2\u6236\u6210\u529F\u9867\u554F",en:"1: 1 Customer successful consultant",ko:"1 : 1 \uACE0\uAC1D \uC131\uACF5\uC801\uC778 \uCEE8\uC124\uD134\uD2B8",ja:"1\uFF1A1\u306E\u9867\u5BA2\u6210\u529F\u30B3\u30F3\u30B5\u30EB\u30BF\u30F3\u30C8",de:"1: 1 Kunde erfolgreicher Berater",fr:"1: 1 consultant r\xE9ussi du client",id:"1: 1 Pelanggan Konsultan Sukses"},{key:"\u4E00\u5BF9\u4E00\u5BA2\u6237\u987E\u95EE",zh:"","zh-CHT":"\u4E00\u5C0D\u4E00\u5BA2\u6236\u9867\u554F",en:"One -to -one customer consultant",ko:"\uD558\uB098\uC758 \uACE0\uAC1D \uCEE8\uC124\uD134\uD2B8",ja:"1\u4EBA\u304B\u30891\u4EBA\u306E\u9867\u5BA2\u30B3\u30F3\u30B5\u30EB\u30BF\u30F3\u30C8",de:"Ein -zu -Ein -Kundenberater",fr:"Un consultant client \xE0 un \xE0 un",id:"Satu -untuk -satu konsultan pelanggan"},{key:"\u4E2D\u82F1\u6587\u90AE\u4EF6\u652F\u6301",zh:"","zh-CHT":"\u4E2D\u82F1\u6587\u90F5\u4EF6\u652F\u6301",en:"Chinese and English email support",ko:"\uC911\uAD6D\uC5B4 \uBC0F \uC601\uC5B4 \uC774\uBA54\uC77C \uC9C0\uC6D0",ja:"\u4E2D\u56FD\u8A9E\u3068\u82F1\u8A9E\u306E\u96FB\u5B50\u30E1\u30FC\u30EB\u30B5\u30DD\u30FC\u30C8",de:"Chinesische und englische E -Mail -Support",fr:"Assistance par e-mail chinois et anglais",id:"Dukungan Email Cina dan Inggris"},{key:"\u5168\u9762\u7684\u652F\u6301\u670D\u52A1",zh:"","zh-CHT":"\u5168\u9762\u7684\u652F\u6301\u670D\u52D9",en:"Comprehensive support service",ko:"\uD3EC\uAD04\uC801 \uC778 \uC9C0\uC6D0 \uC11C\uBE44\uC2A4",ja:"\u5305\u62EC\u7684\u306A\u30B5\u30DD\u30FC\u30C8\u30B5\u30FC\u30D3\u30B9",de:"Umfassender Support -Service",fr:"Service de soutien complet",id:"Layanan Dukungan Komprehensif"},{key:"\u5B8C\u5584\u7684\u57F9\u8BAD\u4F53\u7CFB",zh:"","zh-CHT":"\u5B8C\u5584\u7684\u57F9\u8A13\u9AD4\u7CFB",en:"Comprehensive training system",ko:"\uD3EC\uAD04\uC801 \uC778 Trining Systemm",ja:"\u5305\u62EC\u7684\u306A\u30C8\u30EC\u30FC\u30CB\u30F3\u30B0\u30B7\u30B9\u30C6\u30E0",de:"Umfassendes Trainingssystem",fr:"Syst\xE8me de formation complet",id:"Sistem Trining Komprehensif"},{key:"\u652F\u6301\u79C1\u6709\u5316\u90E8\u7F72",zh:"","zh-CHT":"\u652F\u6301\u79C1\u6709\u5316\u90E8\u7F72",en:"Support privatization deployment",ko:"\uAC1C\uC778 \uBC30\uD3EC\uB97C \uC9C0\uC6D0\uD569\uB2C8\uB2E4",ja:"\u6C11\u55B6\u5316\u306E\u5C55\u958B\u3092\u30B5\u30DD\u30FC\u30C8\u3057\u307E\u3059",de:"Bereitstellung von Privatisierungen unterst\xFCtzen",fr:"Soutenir le d\xE9ploiement de la privatisation",id:"Mendukung penyebaran privatif"},{key:"iOS/Android\u5BA2\u6237\u7AEF",zh:"","zh-CHT":"iOS/Android\u5BA2\u6236\u7AEF",en:"IOS/Android client",ko:"iOS/Android \uD074\uB77C\uC774\uC5B8\uD2B8",ja:"iOS/Android\u30AF\u30E9\u30A4\u30A2\u30F3\u30C8",de:"iOS/Android -Client",fr:"Client iOS / Android",id:"Klien iOS/Android"},{key:"\uFF08Issues/\u793E\u7FA4\uFF09",zh:"","zh-CHT":"\uFF08Issues/\u793E\u7FA4\uFF09",en:"(ISSUES/Community)",ko:"(\uBB38\uC81C/\uCEE4\uBBA4\uB2C8\uD2F0)",ja:"\uFF08\u554F\u984C/\u30B3\u30DF\u30E5\u30CB\u30C6\u30A3\uFF09",de:"(Themen/Community)",fr:"(Probl\xE8mes / communaut\xE9)",id:"(Masalah/Komunitas)"},{key:"\u5728\u7EBF\u54A8\u8BE2\u652F\u6301",zh:"","zh-CHT":"\u5728\u7DDA\u8AEE\u8A62\u652F\u6301",en:"Online consultation support",ko:"\uC628\uB77C\uC778 \uC0C1\uB2F4 \uC9C0\uC6D0",ja:"\u30AA\u30F3\u30E9\u30A4\u30F3\u76F8\u8AC7\u30B5\u30DD\u30FC\u30C8",de:"Online -Beratungsunterst\xFCtzung",fr:"Assistance de consultation en ligne",id:"Dukungan Konsultasi Online"},{key:"\u660E\u661F\u5BA2\u6237\u6848\u4F8B",zh:"","zh-CHT":"\u660E\u661F\u5BA2\u6236\u6848\u4F8B",en:"Star customer case",ko:"\uC2A4\uD0C0 \uACE0\uAC1D \uC0AC\uB840",ja:"\u30B9\u30BF\u30FC\u306E\u9867\u5BA2\u30B1\u30FC\u30B9",de:"Sternkundenfall",fr:"Case client vedette",id:"Kasus Pelanggan Bintang"},{key:"\u7535\u8BDD\u54A8\u8BE2\u652F\u6301",zh:"","zh-CHT":"\u96FB\u8A71\u8AEE\u8A62\u652F\u6301",en:"Telephone consultation support",ko:"\uC804\uD654 \uC0C1\uB2F4 \uC9C0\uC6D0",ja:"\u96FB\u8A71\u76F8\u8AC7\u30B5\u30DD\u30FC\u30C8",de:"Telefonberatungsunterst\xFCtzung",fr:"Assistance de consultation t\xE9l\xE9phonique",id:"Dukungan Konsultasi Telepon"},{key:"\u7ED1\u5B9A\u81EA\u6709\u57DF\u540D",zh:"","zh-CHT":"\u7D81\u5B9A\u81EA\u6709\u57DF\u540D",en:"Bind your own domain name",ko:"\uC790\uC2E0\uC758 \uB3C4\uBA54\uC778 \uC774\uB984\uC744 \uBC14\uC778\uB529\uD558\uC2ED\uC2DC\uC624",ja:"\u72EC\u81EA\u306E\u30C9\u30E1\u30A4\u30F3\u540D\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u307E\u3059",de:"Binden Sie Ihren eigenen Domainnamen",fr:"Lisez votre propre nom de domaine",id:"Ikat nama domain Anda sendiri"},{key:"\u9009\u62E9\u9002\u5408\u4F60\u7684",zh:"","zh-CHT":"\u9078\u64C7\u9069\u5408\u4F60\u7684",en:"Choose suitable for you",ko:"\uB2F9\uC2E0\uC5D0\uAC8C \uC801\uD569\uD55C \uC120\uD0DD\uC744 \uC120\uD0DD\uD558\uC2ED\uC2DC\uC624",ja:"\u3042\u306A\u305F\u306B\u9069\u3057\u305F\u9078\u629E\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",de:"W\xE4hlen Sie f\xFCr Sie geeignet",fr:"Choisissez adapt\xE9 pour vous",id:"Pilih yang cocok untuk Anda"},{key:"\u9AD8\u53EF\u7528\u6027\u4FDD\u8BC1",zh:"","zh-CHT":"\u9AD8\u53EF\u7528\u6027\u4FDD\u8B49",en:"High availability guarantee",ko:"\uACE0 \uAC00\uC6A9\uC131 \uBCF4\uC99D",ja:"\u9AD8\u53EF\u7528\u6027\u4FDD\u8A3C",de:"Hohe Verf\xFCgbarkeitsgarantie",fr:"Garantie de haute disponibilit\xE9",id:"Jaminan ketersediaan tinggi"},{key:"\u90AE\u7BB1\u5730\u5740\uFF1A(*)",zh:"","zh-CHT":"\u90F5\u7BB1\u5730\u5740\uFF1A(*)",en:"Email address:(*)",ko:"\uC774\uBA54\uC77C \uC8FC\uC18C: (*)",ja:"\u96FB\u5B50\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9\uFF1A\uFF08*\uFF09",de:"E-Mail-Addresse:(*)",fr:"adresse e-mail:(*)",id:"alamat email: (*)"},{key:"Mac/PC\u5BA2\u6237\u7AEF",zh:"","zh-CHT":"Mac/PC\u5BA2\u6236\u7AEF",en:"Mac/PC client",ko:"Mac/PC \uD074\uB77C\uC774\uC5B8\uD2B8",ja:"Mac/PC\u30AF\u30E9\u30A4\u30A2\u30F3\u30C8",de:"MAC/PC -Client",fr:"Client Mac / PC",id:"Klien Mac/PC"},{key:"\u672C\u5730\u670D\u52A1\u5668",zh:"","zh-CHT":"\u672C\u5730\u670D\u52D9\u5668",en:"Local server",ko:"\uB85C\uCEEC \uC11C\uBC84",ja:"\u30ED\u30FC\u30AB\u30EB\u30B5\u30FC\u30D0\u30FC",de:"Lokaler Server",fr:"Serveur local",id:"Server lokal"},{key:"\u5468\u62A5/\u65E5\u62A5",zh:"","zh-CHT":"\u9031\u5831/\u65E5\u5831",en:"Weekly/Daily",ko:"\uC8FC\uAC04/\uB9E4\uC77C",ja:"\u6BCE\u9031/\u6BCE\u65E5",de:"W\xF6chentlich/t\xE4glich",fr:"Hebdomadaire / quotidien",id:"Mingguan/harian"},{key:"\u4E0A\u95E8\u652F\u6301",zh:"","zh-CHT":"\u4E0A\u9580\u652F\u6301",en:"Support",ko:"\uC9C0\uC6D0\uD558\uB2E4",ja:"\u30B5\u30DD\u30FC\u30C8",de:"Unterst\xFCtzung",fr:"Soutien",id:"Mendukung"},{key:"\u4E8C\u6B21\u5F00\u53D1",zh:"","zh-CHT":"\u4E8C\u6B21\u958B\u767C",en:"Secondary development",ko:"\uC774\uCC28 \uAC1C\uBC1C",ja:"\u4E8C\u6B21\u767A\u9054",de:"Sekund\xE4rentwicklung",fr:"D\xE9veloppement secondaire",id:"Pengembangan Sekunder"},{key:"\u4EA7\u54C1\u57F9\u8BAD",zh:"","zh-CHT":"\u7522\u54C1\u57F9\u8A13",en:"Product training",ko:"\uC81C\uD488 \uAD50\uC721",ja:"\u88FD\u54C1\u30C8\u30EC\u30FC\u30CB\u30F3\u30B0",de:"Produktschulungen",fr:"Essai de production",id:"Pelatihan produk"},{key:"\u4EFB\u52A1\u52A8\u6001",zh:"","zh-CHT":"\u4EFB\u52D9\u52D5\u614B",en:"Mission dynamic",ko:"\uBBF8\uC158 \uB2E4\uC774\uB098\uBBF9",ja:"\u30DF\u30C3\u30B7\u30E7\u30F3\u30C0\u30A4\u30CA\u30DF\u30C3\u30AF",de:"Missionsdynamik",fr:"Dynamique de mission",id:"Dinamika Misi"},{key:"\u4EFB\u52A1\u7C7B\u578B",zh:"","zh-CHT":"\u4EFB\u52D9\u985E\u578B",en:"Task type",ko:"\uC791\uC5C5 \uC720\uD615",ja:"\u30BF\u30B9\u30AF\u30BF\u30A4\u30D7",de:"Aufgabentyp",fr:"Type de t\xE2che",id:"Jenis tugas"},{key:"\u521B\u5EFA\u7FA4\u804A",zh:"","zh-CHT":"\u5275\u5EFA\u7FA4\u804A",en:"Create group chat",ko:"\uADF8\uB8F9 \uCC44\uD305\uC744 \uB9CC\uB4ED\uB2C8\uB2E4",ja:"\u30B0\u30EB\u30FC\u30D7\u30C1\u30E3\u30C3\u30C8\u3092\u4F5C\u6210\u3057\u307E\u3059",de:"Gruppenchat erstellen",fr:"Cr\xE9er un chat de groupe",id:"Buat obrolan grup"},{key:"\u5BFC\u51FA\u4EFB\u52A1",zh:"","zh-CHT":"\u5C0E\u51FA\u4EFB\u52D9",en:"Export task",ko:"\uC218\uCD9C \uC791\uC5C5",ja:"\u30A8\u30AF\u30B9\u30DD\u30FC\u30C8\u30BF\u30B9\u30AF",de:"Exportaufgabe",fr:"T\xE2che d'exportation",id:"Tugas Ekspor"},{key:"\u5E10\u6237\u5B89\u5168",zh:"","zh-CHT":"\u5E33\u6236\u5B89\u5168",en:"Account security",ko:"\uACC4\uC815 \uBCF4\uC548",ja:"\u30A2\u30AB\u30A6\u30F3\u30C8\u306E\u30BB\u30AD\u30E5\u30EA\u30C6\u30A3",de:"Konto Sicherheit",fr:"S\xE9curit\xE9 du compte",id:"Keamanan Akun"},{key:"\u5E94\u7528\u652F\u6301",zh:"","zh-CHT":"\u61C9\u7528\u652F\u6301",en:"Applied support",ko:"\uC751\uC6A9 \uC9C0\uC6D0",ja:"\u5FDC\u7528\u30B5\u30DD\u30FC\u30C8",de:"Angewandte Unterst\xFCtzung",fr:"Assistance appliqu\xE9e",id:"Dukungan Terapan"},{key:"\u6570\u636E\u52A0\u5BC6",zh:"","zh-CHT":"\u6578\u64DA\u52A0\u5BC6",en:"Data encryption",ko:"\uB370\uC774\uD130 \uC554\uD638\uD654",ja:"\u30C7\u30FC\u30BF\u6697\u53F7\u5316",de:"Datenverschl\xFCsselung",fr:"cryptage de donn\xE9es",id:"Enkripsi data"},{key:"\u6587\u4EF6\u641C\u7D22",zh:"","zh-CHT":"\u6587\u4EF6\u641C\u7D22",en:"File search",ko:"\uD30C\uC77C \uAC80\uC0C9",ja:"\u30D5\u30A1\u30A4\u30EB\u691C\u7D22",de:"Dateisuche",fr:"Recherche de fichier",id:"Pencarian file"},{key:"\u6587\u4EF6\u7BA1\u7406",zh:"","zh-CHT":"\u6587\u4EF6\u7BA1\u7406",en:"File management",ko:"\uD30C\uC77C \uAD00\uB9AC",ja:"\u30D5\u30A1\u30A4\u30EB\u7BA1\u7406",de:"Dokumentenverwaltung",fr:"Gestion de fichiers",id:"Manajemen file"},{key:"\u670D\u52A1\u652F\u6301",zh:"","zh-CHT":"\u670D\u52D9\u652F\u6301",en:"Service support",ko:"\uC11C\uBE44\uC2A4 \uC9C0\uC6D0",ja:"\u30B5\u30FC\u30D3\u30B9\u30B5\u30DD\u30FC\u30C8",de:"Service-Unterst\xFCtzung",fr:"service apr\xE8s vente",id:"Dukungan Layanan"},{key:"\u81EA\u52A9\u652F\u6301",zh:"","zh-CHT":"\u81EA\u52A9\u652F\u6301",en:"Self -support",ko:"\uC790\uAE30 \uC9C0\uC6D0",ja:"\u81EA\u5DF1\u30B5\u30DD\u30FC\u30C8",de:"Selbsthilfe",fr:"Auto-support",id:"Mendukung diri sendiri"},{key:"\u8FD4\u56DE\u9996\u9875",zh:"","zh-CHT":"\u8FD4\u56DE\u9996\u9801",en:"Return homepage",ko:"\uD648\uD398\uC774\uC9C0\uB97C \uBC18\uD658\uD558\uC2ED\uC2DC\uC624",ja:"\u30DB\u30FC\u30E0\u30DA\u30FC\u30B8\u3092\u8FD4\u3057\u307E\u3059",de:"Homepage zur\xFCckkehren",fr:"Page d'accueil de retour",id:"Kembalikan beranda"},{key:"\u9879\u76EE\u641C\u7D22",zh:"","zh-CHT":"\u9805\u76EE\u641C\u7D22",en:"Project search",ko:"\uD504\uB85C\uC81D\uD2B8 \uAC80\uC0C9",ja:"\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u691C\u7D22",de:"Projektsuche",fr:"Recherche de projet",id:"Pencarian Proyek"},{key:"\u9879\u76EE\u7BA1\u7406",zh:"","zh-CHT":"\u9805\u76EE\u7BA1\u7406",en:"Project management",ko:"\uD504\uB85C\uC81D\uD2B8 \uAD00\uB9AC",ja:"\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u7BA1\u7406",de:"Projektmanagement",fr:"gestion de projet",id:"Manajemen proyek"},{key:"\u9879\u76EE\u7FA4\u804A",zh:"","zh-CHT":"\u9805\u76EE\u7FA4\u804A",en:"Project group chat",ko:"\uD504\uB85C\uC81D\uD2B8 \uADF8\uB8F9 \uCC44\uD305",ja:"\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u30B0\u30EB\u30FC\u30D7\u30C1\u30E3\u30C3\u30C8",de:"Projektgruppe Chat",fr:"Chat de groupe de projet",id:"Obrolan grup proyek"},{key:"\u4F53\u9A8CDEMO",zh:"","zh-CHT":"\u9AD4\u9A57DEMO",en:"Experience DEMO",ko:"\uB370\uBAA8\uB97C \uACBD\uD5D8\uD558\uC2ED\uC2DC\uC624",ja:"\u30C7\u30E2\u3092\u4F53\u9A13\u3057\u3066\u304F\u3060\u3055\u3044",de:"Erleben Sie Demo",fr:"D\xE9couvrez la d\xE9mo",id:"Pengalaman demo"},{key:"\u516C\u6709\u4E91",zh:"","zh-CHT":"\u516C\u6709\u4E91",en:"Public cloud",ko:"\uD37C\uBE14\uB9AD \uD074\uB77C\uC6B0\uB4DC",ja:"\u30D1\u30D6\u30EA\u30C3\u30AF\u30AF\u30E9\u30A6\u30C9",de:"\xD6ffentliche Wolke",fr:"Nuage public",id:"Cloud publik"},{key:"\u56FD\u9645\u5316",zh:"","zh-CHT":"\u570B\u969B\u5316",en:"Globalization",ko:"\uC138\uACC4\uD654",ja:"\u30B0\u30ED\u30FC\u30D0\u30EA\u30BC\u30FC\u30B7\u30E7\u30F3",de:"Globalisierung",fr:"mondialisation",id:"globalisasi"},{key:"\u5B9A\u5236\u7248",zh:"","zh-CHT":"\u5B9A\u88FD\u7248",en:"Custom Edition",ko:"\uCEE4\uC2A4\uD140 \uC5D0\uB514\uC158",ja:"\u30AB\u30B9\u30BF\u30E0\u30A8\u30C7\u30A3\u30B7\u30E7\u30F3",de:"Benutzerdefinierte Ausgabe",fr:"\xC9dition personnalis\xE9e",id:"Edisi Kustom"},{key:"\u65E0\u9650\u5236",zh:"","zh-CHT":"\u7121\u9650\u5236",en:"Unlimited",ko:"\uC81C\uD55C \uC5C6\uB294",ja:"\u7121\u5236\u9650",de:"Unbegrenzt",fr:"Illimit\xE9",id:"Tak terbatas"},{key:"\u7518\u7279\u56FE",zh:"","zh-CHT":"\u7518\u7279\u5716",en:"Gantt chart",ko:"\uAC04\uD2B8 \uCC28\uD2B8",ja:"\u30AC\u30F3\u30C8\u30C1\u30E3\u30FC\u30C8",de:"Gantt-Diagramm",fr:"diagramme de Gantt",id:"Bagan Gant"},{key:"\u793E\u533A\u7248",zh:"","zh-CHT":"\u793E\u5340\u7248",en:"Community",ko:"\uC9C0\uC5ED \uC0AC\uD68C",ja:"\u30B3\u30DF\u30E5\u30CB\u30C6\u30A3",de:"Gemeinschaft",fr:"Communaut\xE9",id:"Masyarakat"},{key:"\u793E\u533A\u7248",zh:"","zh-CHT":"\u793E\u5340\u7248",en:"Community",ko:"\uC9C0\uC5ED \uC0AC\uD68C",ja:"\u30B3\u30DF\u30E5\u30CB\u30C6\u30A3",de:"Gemeinschaft",fr:"Communaut\xE9",id:"Masyarakat"},{key:"\u79C1\u6709\u4E91",zh:"","zh-CHT":"\u79C1\u6709\u4E91",en:"Private Cloud",ko:"\uD504\uB77C\uC774\uBE57 \uD074\uB77C\uC6B0\uB4DC",ja:"\u30D7\u30E9\u30A4\u30D9\u30FC\u30C8\u30AF\u30E9\u30A6\u30C9",de:"Private Wolke",fr:"Nuage priv\xE9",id:"Cloud pribadi"},{key:"\u81EA\u5B9A\u4E49",zh:"","zh-CHT":"\u81EA\u5B9A\u7FA9",en:"Customize",ko:"\uC0AC\uC6A9\uC790 \uC815\uC758\uD558\uC2ED\uC2DC\uC624",ja:"\u30AB\u30B9\u30BF\u30DE\u30A4\u30BA",de:"anpassen",fr:"Personnaliser",id:"Menyesuaikan"},{key:"Pro\u7248",zh:"","zh-CHT":"Pro\u7248",en:"PRO version",ko:"\uD504\uB85C \uBC84\uC804",ja:"\u30D7\u30ED\u30D0\u30FC\u30B8\u30E7\u30F3",de:"Pro-Version",fr:"Version pro",id:"Versi Pro"},{key:"\u4EBA\u6570",zh:"","zh-CHT":"\u4EBA\u6578",en:"Number of people",ko:"\uC0AC\uB78C\uB4E4\uC758 \uC218",ja:"\u4EBA\u3005\u306E\u6570",de:"Anzahl der Personen",fr:"Nombre de personnes",id:"Jumlah orang"},{key:"\u4EF7\u683C",zh:"","zh-CHT":"\u50F9\u683C",en:"Price",ko:"\uAC00\uACA9",ja:"\u4FA1\u683C",de:"Preis",fr:"prix",id:"harga"},{key:"\u63A8\u8350",zh:"","zh-CHT":"\u63A8\u85A6",en:"Recommend",ko:"\uCD94\uCC9C",ja:"\u304A\u52E7\u3081",de:"empfehlen",fr:"recommander",id:"Direkomendasikan"},{key:"\u65E5\u7A0B",zh:"","zh-CHT":"\u65E5\u7A0B",en:"Schedule",ko:"\uC77C\uC815",ja:"\u30B9\u30B1\u30B8\u30E5\u30FC\u30EB",de:"Zeitplan",fr:"calendrier",id:"jadwal"},{key:"\u6982\u8FF0",zh:"","zh-CHT":"\u6982\u8FF0",en:"Overview",ko:"\uAC1C\uC694",ja:"\u6982\u8981",de:"\xDCberblick",fr:"Aper\xE7u",id:"Ringkasan"}])},mounted(){this.getSetting(),this.getShowItem()},computed:{appTitle(){return`${this.$L("\u9009\u62E9\u9002\u5408\u4F60\u7684")} ${window.systemInfo.title||"DooTask"}`}},methods:{onLanguage(t){o(t)},goHome(){this.goForward({name:"index",query:{action:"index"}})},getSetting(){this.$store.dispatch("call",{url:"system/setting"}).then(({data:t})=>{this.systemConfig=t})},getShowItem(){this.$store.dispatch("call",{url:"system/get/showitem"}).then(({data:t})=>{this.showItem=t}).catch(t=>{this.showItem={}})}}},i={};var h=l(m,u,v,!1,k,"03af2689",null,null);function k(t){for(let a in i)this[a]=i[a]}var g=function(){return h.exports}();export{g as default}; diff --git a/public/js/build/project.e97940be.js b/public/js/build/project.1ededf9a.js similarity index 99% rename from public/js/build/project.e97940be.js rename to public/js/build/project.1ededf9a.js index 2cbe7afaa..3b4e3fafe 100644 --- a/public/js/build/project.e97940be.js +++ b/public/js/build/project.1ededf9a.js @@ -1,8 +1,8 @@ -import{i as Dn,e as xn,g as Sn,m as kt,n as wt,d as Te,c as Ae}from"./app.90cb6e79.js";import{T as an,P as Tn}from"./ProjectLog.53e7fe6c.js";import{U as sn}from"./UserInput.1d67c0fc.js";import{T as ln}from"./TaskMenu.8ddcdf6c.js";import{D as In}from"./index.b6ff1b3f.js";import{D as kn}from"./DialogWrapper.0674ddc3.js";import{l as jn}from"./DialogSelect.9924132a.js";var cn={exports:{}};/**! +import{i as Dn,e as xn,g as Sn,m as kt,n as wt,d as Te,c as Ae}from"./app.feefc813.js";import{T as an,P as Tn}from"./ProjectLog.ac7d2c0b.js";import{U as sn}from"./UserInput.2bc16b15.js";import{T as ln}from"./TaskMenu.0eaf56d7.js";import{D as In}from"./index.f3f56c75.js";import{D as kn}from"./DialogWrapper.0c8b0be3.js";import{l as jn}from"./DialogSelect.5d8dded5.js";import"./ImgUpload.e60c7ecf.js";var cn={exports:{}};/**! * Sortable 1.10.2 * @author RubaXa * @author owenm * @license MIT */function re(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?re=function(o){return typeof o}:re=function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},re(t)}function En(t,o,e){return o in t?Object.defineProperty(t,o,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[o]=e,t}function vt(){return vt=Object.assign||function(t){for(var o=1;o=0)&&(e[a]=t[a]);return e}function An(t,o){if(t==null)return{};var e=Ln(t,o),n,a;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);for(a=0;a=0)&&(!Object.prototype.propertyIsEnumerable.call(t,n)||(e[n]=t[n]))}return e}function On(t){return Pn(t)||Mn(t)||Nn()}function Pn(t){if(Array.isArray(t)){for(var o=0,e=new Array(t.length);o"&&(o=o.substring(1)),t)try{if(t.matches)return t.matches(o);if(t.msMatchesSelector)return t.msMatchesSelector(o);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(o)}catch{return!1}return!1}}function Wn(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function bt(t,o,e,n){if(t){e=e||document;do{if(o!=null&&(o[0]===">"?t.parentNode===e&&ce(t,o):ce(t,o))||n&&t===e)return t;if(t===e)break}while(t=Wn(t))}return null}var Re=/\s+/g;function V(t,o,e){if(t&&o)if(t.classList)t.classList[e?"add":"remove"](o);else{var n=(" "+t.className+" ").replace(Re," ").replace(" "+o+" "," ");t.className=(n+(e?" "+o:"")).replace(Re," ")}}function _(t,o,e){var n=t&&t.style;if(n){if(e===void 0)return document.defaultView&&document.defaultView.getComputedStyle?e=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(e=t.currentStyle),o===void 0?e:e[o];!(o in n)&&o.indexOf("webkit")===-1&&(o="-webkit-"+o),n[o]=e+(typeof e=="string"?"":"px")}}function At(t,o){var e="";if(typeof t=="string")e=t;else do{var n=_(t,"transform");n&&n!=="none"&&(e=n+" "+e)}while(!o&&(t=t.parentNode));var a=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return a&&new a(e)}function fn(t,o,e){if(t){var n=t.getElementsByTagName(o),a=0,r=n.length;if(e)for(;a=r:s=a<=r,!s)return n;if(n===_t())break;n=Tt(n,!1)}return!1}function de(t,o,e){for(var n=0,a=0,r=t.children;a2&&arguments[2]!==void 0?arguments[2]:{},a=n.evt,r=An(n,["evt"]);Zt.pluginEvent.bind(I)(o,e,It({dragEl:w,parentEl:nt,ghostEl:A,rootEl:Y,nextEl:Lt,lastDownEl:ae,cloneEl:J,cloneHidden:St,dragStarted:zt,putSortable:at,activeSortable:I.active,originalEvent:a,oldIndex:Nt,oldDraggableIndex:Yt,newIndex:pt,newDraggableIndex:xt,hideGhostForTarget:yn,unhideGhostForTarget:bn,cloneNowHidden:function(){St=!0},cloneNowShown:function(){St=!1},dispatchSortableEvent:function(i){ct({sortable:e,name:i,originalEvent:a})}},r))};function ct(t){Ut(It({putSortable:at,cloneEl:J,targetEl:w,rootEl:Y,oldIndex:Nt,oldDraggableIndex:Yt,newIndex:pt,newDraggableIndex:xt},t))}var w,nt,A,Y,Lt,ae,J,St,Nt,pt,Yt,xt,qt,at,Mt=!1,ue=!1,fe=[],jt,gt,be,we,ze,Ge,zt,Ot,Vt,Kt=!1,te=!1,se,it,$e=[],ke=!1,he=[],me=typeof document!="undefined",ee=dn,He=Jt||Dt?"cssFloat":"float",Yn=me&&!Rn&&!dn&&"draggable"in document.createElement("div"),mn=function(){if(!!me){if(Dt)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto",t.style.pointerEvents==="auto"}}(),vn=function(o,e){var n=_(o),a=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),r=de(o,0,e),s=de(o,1,e),i=r&&_(r),l=s&&_(s),c=i&&parseInt(i.marginLeft)+parseInt(i.marginRight)+Q(r).width,d=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+Q(s).width;if(n.display==="flex")return n.flexDirection==="column"||n.flexDirection==="column-reverse"?"vertical":"horizontal";if(n.display==="grid")return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&i.float&&i.float!=="none"){var u=i.float==="left"?"left":"right";return s&&(l.clear==="both"||l.clear===u)?"vertical":"horizontal"}return r&&(i.display==="block"||i.display==="flex"||i.display==="table"||i.display==="grid"||c>=a&&n[He]==="none"||s&&n[He]==="none"&&c+d>a)?"vertical":"horizontal"},Vn=function(o,e,n){var a=n?o.left:o.top,r=n?o.right:o.bottom,s=n?o.width:o.height,i=n?e.left:e.top,l=n?e.right:e.bottom,c=n?e.width:e.height;return a===i||r===l||a+s/2===i+c/2},Kn=function(o,e){var n;return fe.some(function(a){if(!Oe(a)){var r=Q(a),s=a[lt].options.emptyInsertThreshold,i=o>=r.left-s&&o<=r.right+s,l=e>=r.top-s&&e<=r.bottom+s;if(s&&i&&l)return n=a}}),n},gn=function(o){function e(r,s){return function(i,l,c,d){var u=i.options.group.name&&l.options.group.name&&i.options.group.name===l.options.group.name;if(r==null&&(s||u))return!0;if(r==null||r===!1)return!1;if(s&&r==="clone")return r;if(typeof r=="function")return e(r(i,l,c,d),s)(i,l,c,d);var f=(s?i:l).options.group.name;return r===!0||typeof r=="string"&&r===f||r.join&&r.indexOf(f)>-1}}var n={},a=o.group;(!a||re(a)!="object")&&(a={name:a}),n.name=a.name,n.checkPull=e(a.pull,!0),n.checkPut=e(a.put),n.revertClone=a.revertClone,o.group=n},yn=function(){!mn&&A&&_(A,"display","none")},bn=function(){!mn&&A&&_(A,"display","")};me&&document.addEventListener("click",function(t){if(ue)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),ue=!1,!1},!0);var Et=function(o){if(w){o=o.touches?o.touches[0]:o;var e=Kn(o.clientX,o.clientY);if(e){var n={};for(var a in o)o.hasOwnProperty(a)&&(n[a]=o[a]);n.target=n.rootEl=e,n.preventDefault=void 0,n.stopPropagation=void 0,e[lt]._onDragOver(n)}}},Jn=function(o){w&&w.parentNode[lt]._isOutsideThisEl(o.target)};function I(t,o){if(!(t&&t.nodeType&&t.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=o=vt({},o),t[lt]=this;var e={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return vn(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(s,i){s.setData("Text",i.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:I.supportPointer!==!1&&"PointerEvent"in window,emptyInsertThreshold:5};Zt.initializePlugins(this,t,e);for(var n in e)!(n in o)&&(o[n]=e[n]);gn(o);for(var a in this)a.charAt(0)==="_"&&typeof this[a]=="function"&&(this[a]=this[a].bind(this));this.nativeDraggable=o.forceFallback?!1:Yn,this.nativeDraggable&&(this.options.touchStartThreshold=1),o.supportPointer?F(t,"pointerdown",this._onTapStart):(F(t,"mousedown",this._onTapStart),F(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(F(t,"dragover",this),F(t,"dragenter",this)),fe.push(this.el),o.store&&o.store.get&&this.sort(o.store.get(this)||[]),vt(this,Gn())}I.prototype={constructor:I,_isOutsideThisEl:function(o){!this.el.contains(o)&&o!==this.el&&(Ot=null)},_getDirection:function(o,e){return typeof this.options.direction=="function"?this.options.direction.call(this,o,e,w):this.options.direction},_onTapStart:function(o){if(!!o.cancelable){var e=this,n=this.el,a=this.options,r=a.preventOnFilter,s=o.type,i=o.touches&&o.touches[0]||o.pointerType&&o.pointerType==="touch"&&o,l=(i||o).target,c=o.target.shadowRoot&&(o.path&&o.path[0]||o.composedPath&&o.composedPath()[0])||l,d=a.filter;if(oo(n),!w&&!(/mousedown|pointerdown/.test(s)&&o.button!==0||a.disabled)&&!c.isContentEditable&&(l=bt(l,a.draggable,n,!1),!(l&&l.animated)&&ae!==l)){if(Nt=Z(l),Yt=Z(l,a.draggable),typeof d=="function"){if(d.call(this,o,l,this)){ct({sortable:e,rootEl:c,name:"filter",targetEl:l,toEl:n,fromEl:n}),dt("filter",e,{evt:o}),r&&o.cancelable&&o.preventDefault();return}}else if(d&&(d=d.split(",").some(function(u){if(u=bt(c,u.trim(),n,!1),u)return ct({sortable:e,rootEl:u,name:"filter",targetEl:l,fromEl:n,toEl:n}),dt("filter",e,{evt:o}),!0}),d)){r&&o.cancelable&&o.preventDefault();return}a.handle&&!bt(c,a.handle,n,!1)||this._prepareDragStart(o,i,l)}}},_prepareDragStart:function(o,e,n){var a=this,r=a.el,s=a.options,i=r.ownerDocument,l;if(n&&!w&&n.parentNode===r){var c=Q(n);if(Y=r,w=n,nt=w.parentNode,Lt=w.nextSibling,ae=n,qt=s.group,I.dragged=w,jt={target:w,clientX:(e||o).clientX,clientY:(e||o).clientY},ze=jt.clientX-c.left,Ge=jt.clientY-c.top,this._lastX=(e||o).clientX,this._lastY=(e||o).clientY,w.style["will-change"]="all",l=function(){if(dt("delayEnded",a,{evt:o}),I.eventCanceled){a._onDrop();return}a._disableDelayedDragEvents(),!Fe&&a.nativeDraggable&&(w.draggable=!0),a._triggerDragStart(o,e),ct({sortable:a,name:"choose",originalEvent:o}),V(w,s.chosenClass,!0)},s.ignore.split(",").forEach(function(d){fn(w,d.trim(),Ce)}),F(i,"dragover",Et),F(i,"mousemove",Et),F(i,"touchmove",Et),F(i,"mouseup",a._onDrop),F(i,"touchend",a._onDrop),F(i,"touchcancel",a._onDrop),Fe&&this.nativeDraggable&&(this.options.touchStartThreshold=4,w.draggable=!0),dt("delayStart",this,{evt:o}),s.delay&&(!s.delayOnTouchOnly||e)&&(!this.nativeDraggable||!(Jt||Dt))){if(I.eventCanceled){this._onDrop();return}F(i,"mouseup",a._disableDelayedDrag),F(i,"touchend",a._disableDelayedDrag),F(i,"touchcancel",a._disableDelayedDrag),F(i,"mousemove",a._delayedDragTouchMoveHandler),F(i,"touchmove",a._delayedDragTouchMoveHandler),s.supportPointer&&F(i,"pointermove",a._delayedDragTouchMoveHandler),a._dragStartTimer=setTimeout(l,s.delay)}else l()}},_delayedDragTouchMoveHandler:function(o){var e=o.touches?o.touches[0]:o;Math.max(Math.abs(e.clientX-this._lastX),Math.abs(e.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){w&&Ce(w),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var o=this.el.ownerDocument;M(o,"mouseup",this._disableDelayedDrag),M(o,"touchend",this._disableDelayedDrag),M(o,"touchcancel",this._disableDelayedDrag),M(o,"mousemove",this._delayedDragTouchMoveHandler),M(o,"touchmove",this._delayedDragTouchMoveHandler),M(o,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(o,e){e=e||o.pointerType=="touch"&&o,!this.nativeDraggable||e?this.options.supportPointer?F(document,"pointermove",this._onTouchMove):e?F(document,"touchmove",this._onTouchMove):F(document,"mousemove",this._onTouchMove):(F(w,"dragend",this),F(Y,"dragstart",this._onDragStart));try{document.selection?ie(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(o,e){if(Mt=!1,Y&&w){dt("dragStarted",this,{evt:e}),this.nativeDraggable&&F(document,"dragover",Jn);var n=this.options;!o&&V(w,n.dragClass,!1),V(w,n.ghostClass,!0),I.active=this,o&&this._appendGhost(),ct({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(gt){this._lastX=gt.clientX,this._lastY=gt.clientY,yn();for(var o=document.elementFromPoint(gt.clientX,gt.clientY),e=o;o&&o.shadowRoot&&(o=o.shadowRoot.elementFromPoint(gt.clientX,gt.clientY),o!==e);)e=o;if(w.parentNode[lt]._isOutsideThisEl(o),e)do{if(e[lt]){var n=void 0;if(n=e[lt]._onDragOver({clientX:gt.clientX,clientY:gt.clientY,target:o,rootEl:e}),n&&!this.options.dragoverBubble)break}o=e}while(e=e.parentNode);bn()}},_onTouchMove:function(o){if(jt){var e=this.options,n=e.fallbackTolerance,a=e.fallbackOffset,r=o.touches?o.touches[0]:o,s=A&&At(A,!0),i=A&&s&&s.a,l=A&&s&&s.d,c=ee&&it&&Be(it),d=(r.clientX-jt.clientX+a.x)/(i||1)+(c?c[0]-$e[0]:0)/(i||1),u=(r.clientY-jt.clientY+a.y)/(l||1)+(c?c[1]-$e[1]:0)/(l||1);if(!I.active&&!Mt){if(n&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))=0&&(ct({rootEl:nt,name:"add",toEl:nt,fromEl:Y,originalEvent:o}),ct({sortable:this,name:"remove",toEl:nt,originalEvent:o}),ct({rootEl:nt,name:"sort",toEl:nt,fromEl:Y,originalEvent:o}),ct({sortable:this,name:"sort",toEl:nt,originalEvent:o})),at&&at.save()):pt!==Nt&&pt>=0&&(ct({sortable:this,name:"update",toEl:nt,originalEvent:o}),ct({sortable:this,name:"sort",toEl:nt,originalEvent:o})),I.active&&((pt==null||pt===-1)&&(pt=Nt,xt=Yt),ct({sortable:this,name:"end",toEl:nt,originalEvent:o}),this.save()))),this._nulling()},_nulling:function(){dt("nulling",this),Y=w=nt=A=Lt=J=ae=St=jt=gt=zt=pt=xt=Nt=Yt=Ot=Vt=at=qt=I.dragged=I.ghost=I.clone=I.active=null,he.forEach(function(o){o.checked=!0}),he.length=be=we=0},handleEvent:function(o){switch(o.type){case"drop":case"dragend":this._onDrop(o);break;case"dragenter":case"dragover":w&&(this._onDragOver(o),Zn(o));break;case"selectstart":o.preventDefault();break}},toArray:function(){for(var o=[],e,n=this.el.children,a=0,r=n.length,s=this.options;an.right+a||t.clientX<=n.right&&t.clientY>n.bottom&&t.clientX>=n.left:t.clientX>n.right&&t.clientY>n.top||t.clientX<=n.right&&t.clientY>n.bottom+a}function to(t,o,e,n,a,r,s,i){var l=n?t.clientY:t.clientX,c=n?e.height:e.width,d=n?e.top:e.left,u=n?e.bottom:e.right,f=!1;if(!s){if(i&&sed+c*r/2:lu-se)return-Vt}else if(l>d+c*(1-a)/2&&lu-c*r/2)?l>d+c/2?1:-1:0}function eo(t){return Z(w)1&&(E.forEach(function(i){r.addAnimationState({target:i,rect:ft?Q(i):s}),ge(i),i.fromRect=s,n.removeAnimationState(i)}),ft=!1,lo(!this.options.removeCloneOnHide,a))},dragOverCompleted:function(e){var n=e.sortable,a=e.isOwner,r=e.insertion,s=e.activeSortable,i=e.parentEl,l=e.putSortable,c=this.options;if(r){if(a&&s._hideClone(),Wt=!1,c.animation&&E.length>1&&(ft||!a&&!s.options.sort&&!l)){var d=Q(H,!1,!0,!0);E.forEach(function(f){f!==H&&(Ue(f,d),i.appendChild(f))}),ft=!0}if(!a)if(ft||oe(),E.length>1){var u=ne;s._showClone(n),s.options.animation&&!ne&&u&&ht.forEach(function(f){s.addAnimationState({target:f,rect:Bt}),f.fromRect=Bt,f.thisAnimationDuration=null})}else s._showClone(n)}},dragOverAnimationCapture:function(e){var n=e.dragRect,a=e.isOwner,r=e.activeSortable;if(E.forEach(function(i){i.thisAnimationDuration=null}),r.options.animation&&!a&&r.multiDrag.isMultiDrag){Bt=vt({},n);var s=At(H,!0);Bt.top-=s.f,Bt.left-=s.e}},dragOverAnimationComplete:function(){ft&&(ft=!1,oe())},drop:function(e){var n=e.originalEvent,a=e.rootEl,r=e.parentEl,s=e.sortable,i=e.dispatchSortableEvent,l=e.oldIndex,c=e.putSortable,d=c||this.sortable;if(!!n){var u=this.options,f=r.children;if(!Pt)if(u.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),V(H,u.selectedClass,!~E.indexOf(H)),~E.indexOf(H))E.splice(E.indexOf(H),1),Rt=null,Ut({sortable:s,rootEl:a,name:"deselect",targetEl:H,originalEvt:n});else{if(E.push(H),Ut({sortable:s,rootEl:a,name:"select",targetEl:H,originalEvt:n}),n.shiftKey&&Rt&&s.el.contains(Rt)){var v=Z(Rt),h=Z(H);if(~v&&~h&&v!==h){var m,b;for(h>v?(b=v,m=h):(b=h,m=v+1);b1){var S=Q(H),T=Z(H,":not(."+this.options.selectedClass+")");if(!Wt&&u.animation&&(H.thisAnimationDuration=null),d.captureAnimationState(),!Wt&&(u.animation&&(H.fromRect=S,E.forEach(function(D){if(D.thisAnimationDuration=null,D!==H){var N=ft?Q(D):S;D.fromRect=N,d.addAnimationState({target:D,rect:N})}})),oe(),E.forEach(function(D){f[T]?r.insertBefore(D,f[T]):r.appendChild(D),T++}),l===Z(H))){var x=!1;E.forEach(function(D){if(D.sortableIndex!==Z(D)){x=!0;return}}),x&&i("update")}E.forEach(function(D){ge(D)}),d.animateAll()}yt=d}(a===r||c&&c.lastPutMode!=="clone")&&ht.forEach(function(D){D.parentNode&&D.parentNode.removeChild(D)})}},nullingGlobal:function(){this.isMultiDrag=Pt=!1,ht.length=0},destroyGlobal:function(){this._deselectMultiDrag(),M(document,"pointerup",this._deselectMultiDrag),M(document,"mouseup",this._deselectMultiDrag),M(document,"touchend",this._deselectMultiDrag),M(document,"keydown",this._checkKeyDown),M(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(e){if(!(typeof Pt!="undefined"&&Pt)&&yt===this.sortable&&!(e&&bt(e.target,this.options.draggable,this.sortable.el,!1))&&!(e&&e.button!==0))for(;E.length;){var n=E[0];V(n,this.options.selectedClass,!1),E.shift(),Ut({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:n,originalEvt:e})}},_checkKeyDown:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},vt(t,{pluginName:"multiDrag",utils:{select:function(e){var n=e.parentNode[lt];!n||!n.options.multiDrag||~E.indexOf(e)||(yt&&yt!==n&&(yt.multiDrag._deselectMultiDrag(),yt=n),V(e,n.options.selectedClass,!0),E.push(e))},deselect:function(e){var n=e.parentNode[lt],a=E.indexOf(e);!n||!n.options.multiDrag||!~a||(V(e,n.options.selectedClass,!1),E.splice(a,1))}},eventProperties:function(){var e=this,n=[],a=[];return E.forEach(function(r){n.push({multiDragElement:r,index:r.sortableIndex});var s;ft&&r!==H?s=-1:ft?s=Z(r,":not(."+e.options.selectedClass+")"):s=Z(r),a.push({multiDragElement:r,index:s})}),{items:On(E),clones:[].concat(ht),oldIndicies:n,newIndicies:a}},optionListeners:{multiDragKey:function(e){return e=e.toLowerCase(),e==="ctrl"?e="Control":e.length>1&&(e=e.charAt(0).toUpperCase()+e.substr(1)),e}}})}function lo(t,o){E.forEach(function(e,n){var a=o.children[e.sortableIndex+(t?Number(n):0)];a?o.insertBefore(e,a):o.appendChild(e)})}function Ye(t,o){ht.forEach(function(e,n){var a=o.children[e.sortableIndex+(t?Number(n):0)];a?o.insertBefore(e,a):o.appendChild(e)})}function oe(){E.forEach(function(t){t!==H&&t.parentNode&&t.parentNode.removeChild(t)})}I.mount(new ro);I.mount(Ne,Me);var co=Object.freeze(Object.defineProperty({__proto__:null,default:I,MultiDrag:io,Sortable:I,Swap:ao},Symbol.toStringTag,{value:"Module"})),uo=Dn(co);(function(t,o){(function(n,a){t.exports=a(uo)})(typeof self!="undefined"?self:xn,function(e){return function(n){var a={};function r(s){if(a[s])return a[s].exports;var i=a[s]={i:s,l:!1,exports:{}};return n[s].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=n,r.c=a,r.d=function(s,i,l){r.o(s,i)||Object.defineProperty(s,i,{enumerable:!0,get:l})},r.r=function(s){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},r.t=function(s,i){if(i&1&&(s=r(s)),i&8||i&4&&typeof s=="object"&&s&&s.__esModule)return s;var l=Object.create(null);if(r.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:s}),i&2&&typeof s!="string")for(var c in s)r.d(l,c,function(d){return s[d]}.bind(null,c));return l},r.n=function(s){var i=s&&s.__esModule?function(){return s.default}:function(){return s};return r.d(i,"a",i),i},r.o=function(s,i){return Object.prototype.hasOwnProperty.call(s,i)},r.p="",r(r.s="fb15")}({"01f9":function(n,a,r){var s=r("2d00"),i=r("5ca1"),l=r("2aba"),c=r("32e9"),d=r("84f2"),u=r("41a0"),f=r("7f20"),v=r("38fd"),h=r("2b4c")("iterator"),m=!([].keys&&"next"in[].keys()),b="@@iterator",S="keys",T="values",x=function(){return this};n.exports=function(D,N,W,B,j,L,k){u(W,N,B);var R=function(g){if(!m&&g in G)return G[g];switch(g){case S:return function(){return new W(this,g)};case T:return function(){return new W(this,g)}}return function(){return new W(this,g)}},K=N+" Iterator",et=j==T,q=!1,G=D.prototype,U=G[h]||G[b]||j&&G[j],X=U||R(j),ut=j?et?R("entries"):X:void 0,st=N=="Array"&&G.entries||U,rt,y,p;if(st&&(p=v(st.call(new D)),p!==Object.prototype&&p.next&&(f(p,K,!0),!s&&typeof p[h]!="function"&&c(p,h,x))),et&&U&&U.name!==T&&(q=!0,X=function(){return U.call(this)}),(!s||k)&&(m||q||!G[h])&&c(G,h,X),d[N]=X,d[K]=x,j)if(rt={values:et?X:R(T),keys:L?X:R(S),entries:ut},k)for(y in rt)y in G||l(G,y,rt[y]);else i(i.P+i.F*(m||q),N,rt);return rt}},"02f4":function(n,a,r){var s=r("4588"),i=r("be13");n.exports=function(l){return function(c,d){var u=String(i(c)),f=s(d),v=u.length,h,m;return f<0||f>=v?l?"":void 0:(h=u.charCodeAt(f),h<55296||h>56319||f+1===v||(m=u.charCodeAt(f+1))<56320||m>57343?l?u.charAt(f):h:l?u.slice(f,f+2):(h-55296<<10)+(m-56320)+65536)}}},"0390":function(n,a,r){var s=r("02f4")(!0);n.exports=function(i,l,c){return l+(c?s(i,l).length:1)}},"0bfb":function(n,a,r){var s=r("cb7c");n.exports=function(){var i=s(this),l="";return i.global&&(l+="g"),i.ignoreCase&&(l+="i"),i.multiline&&(l+="m"),i.unicode&&(l+="u"),i.sticky&&(l+="y"),l}},"0d58":function(n,a,r){var s=r("ce10"),i=r("e11e");n.exports=Object.keys||function(c){return s(c,i)}},1495:function(n,a,r){var s=r("86cc"),i=r("cb7c"),l=r("0d58");n.exports=r("9e1e")?Object.defineProperties:function(d,u){i(d);for(var f=l(u),v=f.length,h=0,m;v>h;)s.f(d,m=f[h++],u[m]);return d}},"214f":function(n,a,r){r("b0c5");var s=r("2aba"),i=r("32e9"),l=r("79e5"),c=r("be13"),d=r("2b4c"),u=r("520a"),f=d("species"),v=!l(function(){var m=/./;return m.exec=function(){var b=[];return b.groups={a:"7"},b},"".replace(m,"$
    ")!=="7"}),h=function(){var m=/(?:)/,b=m.exec;m.exec=function(){return b.apply(this,arguments)};var S="ab".split(m);return S.length===2&&S[0]==="a"&&S[1]==="b"}();n.exports=function(m,b,S){var T=d(m),x=!l(function(){var L={};return L[T]=function(){return 7},""[m](L)!=7}),D=x?!l(function(){var L=!1,k=/a/;return k.exec=function(){return L=!0,null},m==="split"&&(k.constructor={},k.constructor[f]=function(){return k}),k[T](""),!L}):void 0;if(!x||!D||m==="replace"&&!v||m==="split"&&!h){var N=/./[T],W=S(c,T,""[m],function(k,R,K,et,q){return R.exec===u?x&&!q?{done:!0,value:N.call(R,K,et)}:{done:!0,value:k.call(K,R,et)}:{done:!1}}),B=W[0],j=W[1];s(String.prototype,m,B),i(RegExp.prototype,T,b==2?function(L,k){return j.call(L,this,k)}:function(L){return j.call(L,this)})}}},"230e":function(n,a,r){var s=r("d3f4"),i=r("7726").document,l=s(i)&&s(i.createElement);n.exports=function(c){return l?i.createElement(c):{}}},"23c6":function(n,a,r){var s=r("2d95"),i=r("2b4c")("toStringTag"),l=s(function(){return arguments}())=="Arguments",c=function(d,u){try{return d[u]}catch{}};n.exports=function(d){var u,f,v;return d===void 0?"Undefined":d===null?"Null":typeof(f=c(u=Object(d),i))=="string"?f:l?s(u):(v=s(u))=="Object"&&typeof u.callee=="function"?"Arguments":v}},2621:function(n,a){a.f=Object.getOwnPropertySymbols},"2aba":function(n,a,r){var s=r("7726"),i=r("32e9"),l=r("69a8"),c=r("ca5a")("src"),d=r("fa5b"),u="toString",f=(""+d).split(u);r("8378").inspectSource=function(v){return d.call(v)},(n.exports=function(v,h,m,b){var S=typeof m=="function";S&&(l(m,"name")||i(m,"name",h)),v[h]!==m&&(S&&(l(m,c)||i(m,c,v[h]?""+v[h]:f.join(String(h)))),v===s?v[h]=m:b?v[h]?v[h]=m:i(v,h,m):(delete v[h],i(v,h,m)))})(Function.prototype,u,function(){return typeof this=="function"&&this[c]||d.call(this)})},"2aeb":function(n,a,r){var s=r("cb7c"),i=r("1495"),l=r("e11e"),c=r("613b")("IE_PROTO"),d=function(){},u="prototype",f=function(){var v=r("230e")("iframe"),h=l.length,m="<",b=">",S;for(v.style.display="none",r("fab2").appendChild(v),v.src="javascript:",S=v.contentWindow.document,S.open(),S.write(m+"script"+b+"document.F=Object"+m+"/script"+b),S.close(),f=S.F;h--;)delete f[u][l[h]];return f()};n.exports=Object.create||function(h,m){var b;return h!==null?(d[u]=s(h),b=new d,d[u]=null,b[c]=h):b=f(),m===void 0?b:i(b,m)}},"2b4c":function(n,a,r){var s=r("5537")("wks"),i=r("ca5a"),l=r("7726").Symbol,c=typeof l=="function",d=n.exports=function(u){return s[u]||(s[u]=c&&l[u]||(c?l:i)("Symbol."+u))};d.store=s},"2d00":function(n,a){n.exports=!1},"2d95":function(n,a){var r={}.toString;n.exports=function(s){return r.call(s).slice(8,-1)}},"2fdb":function(n,a,r){var s=r("5ca1"),i=r("d2c8"),l="includes";s(s.P+s.F*r("5147")(l),"String",{includes:function(d){return!!~i(this,d,l).indexOf(d,arguments.length>1?arguments[1]:void 0)}})},"32e9":function(n,a,r){var s=r("86cc"),i=r("4630");n.exports=r("9e1e")?function(l,c,d){return s.f(l,c,i(1,d))}:function(l,c,d){return l[c]=d,l}},"38fd":function(n,a,r){var s=r("69a8"),i=r("4bf8"),l=r("613b")("IE_PROTO"),c=Object.prototype;n.exports=Object.getPrototypeOf||function(d){return d=i(d),s(d,l)?d[l]:typeof d.constructor=="function"&&d instanceof d.constructor?d.constructor.prototype:d instanceof Object?c:null}},"41a0":function(n,a,r){var s=r("2aeb"),i=r("4630"),l=r("7f20"),c={};r("32e9")(c,r("2b4c")("iterator"),function(){return this}),n.exports=function(d,u,f){d.prototype=s(c,{next:i(1,f)}),l(d,u+" Iterator")}},"456d":function(n,a,r){var s=r("4bf8"),i=r("0d58");r("5eda")("keys",function(){return function(c){return i(s(c))}})},4588:function(n,a){var r=Math.ceil,s=Math.floor;n.exports=function(i){return isNaN(i=+i)?0:(i>0?s:r)(i)}},4630:function(n,a){n.exports=function(r,s){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:s}}},"4bf8":function(n,a,r){var s=r("be13");n.exports=function(i){return Object(s(i))}},5147:function(n,a,r){var s=r("2b4c")("match");n.exports=function(i){var l=/./;try{"/./"[i](l)}catch{try{return l[s]=!1,!"/./"[i](l)}catch{}}return!0}},"520a":function(n,a,r){var s=r("0bfb"),i=RegExp.prototype.exec,l=String.prototype.replace,c=i,d="lastIndex",u=function(){var h=/a/,m=/b*/g;return i.call(h,"a"),i.call(m,"a"),h[d]!==0||m[d]!==0}(),f=/()??/.exec("")[1]!==void 0,v=u||f;v&&(c=function(m){var b=this,S,T,x,D;return f&&(T=new RegExp("^"+b.source+"$(?!\\s)",s.call(b))),u&&(S=b[d]),x=i.call(b,m),u&&x&&(b[d]=b.global?x.index+x[0].length:S),f&&x&&x.length>1&&l.call(x[0],T,function(){for(D=1;D1?arguments[1]:void 0)}}),r("9c6c")("includes")},6821:function(n,a,r){var s=r("626a"),i=r("be13");n.exports=function(l){return s(i(l))}},"69a8":function(n,a){var r={}.hasOwnProperty;n.exports=function(s,i){return r.call(s,i)}},"6a99":function(n,a,r){var s=r("d3f4");n.exports=function(i,l){if(!s(i))return i;var c,d;if(l&&typeof(c=i.toString)=="function"&&!s(d=c.call(i))||typeof(c=i.valueOf)=="function"&&!s(d=c.call(i))||!l&&typeof(c=i.toString)=="function"&&!s(d=c.call(i)))return d;throw TypeError("Can't convert object to primitive value")}},7333:function(n,a,r){var s=r("0d58"),i=r("2621"),l=r("52a7"),c=r("4bf8"),d=r("626a"),u=Object.assign;n.exports=!u||r("79e5")(function(){var f={},v={},h=Symbol(),m="abcdefghijklmnopqrst";return f[h]=7,m.split("").forEach(function(b){v[b]=b}),u({},f)[h]!=7||Object.keys(u({},v)).join("")!=m})?function(v,h){for(var m=c(v),b=arguments.length,S=1,T=i.f,x=l.f;b>S;)for(var D=d(arguments[S++]),N=T?s(D).concat(T(D)):s(D),W=N.length,B=0,j;W>B;)x.call(D,j=N[B++])&&(m[j]=D[j]);return m}:u},7726:function(n,a){var r=n.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=r)},"77f1":function(n,a,r){var s=r("4588"),i=Math.max,l=Math.min;n.exports=function(c,d){return c=s(c),c<0?i(c+d,0):l(c,d)}},"79e5":function(n,a){n.exports=function(r){try{return!!r()}catch{return!0}}},"7f20":function(n,a,r){var s=r("86cc").f,i=r("69a8"),l=r("2b4c")("toStringTag");n.exports=function(c,d,u){c&&!i(c=u?c:c.prototype,l)&&s(c,l,{configurable:!0,value:d})}},8378:function(n,a){var r=n.exports={version:"2.6.5"};typeof __e=="number"&&(__e=r)},"84f2":function(n,a){n.exports={}},"86cc":function(n,a,r){var s=r("cb7c"),i=r("c69a"),l=r("6a99"),c=Object.defineProperty;a.f=r("9e1e")?Object.defineProperty:function(u,f,v){if(s(u),f=l(f,!0),s(v),i)try{return c(u,f,v)}catch{}if("get"in v||"set"in v)throw TypeError("Accessors not supported!");return"value"in v&&(u[f]=v.value),u}},"9b43":function(n,a,r){var s=r("d8e8");n.exports=function(i,l,c){if(s(i),l===void 0)return i;switch(c){case 1:return function(d){return i.call(l,d)};case 2:return function(d,u){return i.call(l,d,u)};case 3:return function(d,u,f){return i.call(l,d,u,f)}}return function(){return i.apply(l,arguments)}}},"9c6c":function(n,a,r){var s=r("2b4c")("unscopables"),i=Array.prototype;i[s]==null&&r("32e9")(i,s,{}),n.exports=function(l){i[s][l]=!0}},"9def":function(n,a,r){var s=r("4588"),i=Math.min;n.exports=function(l){return l>0?i(s(l),9007199254740991):0}},"9e1e":function(n,a,r){n.exports=!r("79e5")(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},a352:function(n,a){n.exports=e},a481:function(n,a,r){var s=r("cb7c"),i=r("4bf8"),l=r("9def"),c=r("4588"),d=r("0390"),u=r("5f1b"),f=Math.max,v=Math.min,h=Math.floor,m=/\$([$&`']|\d\d?|<[^>]*>)/g,b=/\$([$&`']|\d\d?)/g,S=function(T){return T===void 0?T:String(T)};r("214f")("replace",2,function(T,x,D,N){return[function(j,L){var k=T(this),R=j==null?void 0:j[x];return R!==void 0?R.call(j,k,L):D.call(String(k),j,L)},function(B,j){var L=N(D,B,this,j);if(L.done)return L.value;var k=s(B),R=String(this),K=typeof j=="function";K||(j=String(j));var et=k.global;if(et){var q=k.unicode;k.lastIndex=0}for(var G=[];;){var U=u(k,R);if(U===null||(G.push(U),!et))break;var X=String(U[0]);X===""&&(k.lastIndex=d(R,l(k.lastIndex),q))}for(var ut="",st=0,rt=0;rt=st&&(ut+=R.slice(st,p)+z,st=p+y.length)}return ut+R.slice(st)}];function W(B,j,L,k,R,K){var et=L+B.length,q=k.length,G=b;return R!==void 0&&(R=i(R),G=m),D.call(K,G,function(U,X){var ut;switch(X.charAt(0)){case"$":return"$";case"&":return B;case"`":return j.slice(0,L);case"'":return j.slice(et);case"<":ut=R[X.slice(1,-1)];break;default:var st=+X;if(st===0)return U;if(st>q){var rt=h(st/10);return rt===0?U:rt<=q?k[rt-1]===void 0?X.charAt(1):k[rt-1]+X.charAt(1):U}ut=k[st-1]}return ut===void 0?"":ut})}})},aae3:function(n,a,r){var s=r("d3f4"),i=r("2d95"),l=r("2b4c")("match");n.exports=function(c){var d;return s(c)&&((d=c[l])!==void 0?!!d:i(c)=="RegExp")}},ac6a:function(n,a,r){for(var s=r("cadf"),i=r("0d58"),l=r("2aba"),c=r("7726"),d=r("32e9"),u=r("84f2"),f=r("2b4c"),v=f("iterator"),h=f("toStringTag"),m=u.Array,b={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},S=i(b),T=0;Tm;)if(b=v[m++],b!=b)return!0}else for(;h>m;m++)if((c||m in v)&&v[m]===u)return c||m||0;return!c&&-1}}},c649:function(n,a,r){(function(s){r.d(a,"c",function(){return v}),r.d(a,"a",function(){return u}),r.d(a,"b",function(){return l}),r.d(a,"d",function(){return f}),r("a481");function i(){return typeof window!="undefined"?window.console:s.console}var l=i();function c(h){var m=Object.create(null);return function(S){var T=m[S];return T||(m[S]=h(S))}}var d=/-(\w)/g,u=c(function(h){return h.replace(d,function(m,b){return b?b.toUpperCase():""})});function f(h){h.parentElement!==null&&h.parentElement.removeChild(h)}function v(h,m,b){var S=b===0?h.children[0]:h.children[b-1].nextSibling;h.insertBefore(m,S)}}).call(this,r("c8ba"))},c69a:function(n,a,r){n.exports=!r("9e1e")&&!r("79e5")(function(){return Object.defineProperty(r("230e")("div"),"a",{get:function(){return 7}}).a!=7})},c8ba:function(n,a){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch{typeof window=="object"&&(r=window)}n.exports=r},ca5a:function(n,a){var r=0,s=Math.random();n.exports=function(i){return"Symbol(".concat(i===void 0?"":i,")_",(++r+s).toString(36))}},cadf:function(n,a,r){var s=r("9c6c"),i=r("d53b"),l=r("84f2"),c=r("6821");n.exports=r("01f9")(Array,"Array",function(d,u){this._t=c(d),this._i=0,this._k=u},function(){var d=this._t,u=this._k,f=this._i++;return!d||f>=d.length?(this._t=void 0,i(1)):u=="keys"?i(0,f):u=="values"?i(0,d[f]):i(0,[f,d[f]])},"values"),l.Arguments=l.Array,s("keys"),s("values"),s("entries")},cb7c:function(n,a,r){var s=r("d3f4");n.exports=function(i){if(!s(i))throw TypeError(i+" is not an object!");return i}},ce10:function(n,a,r){var s=r("69a8"),i=r("6821"),l=r("c366")(!1),c=r("613b")("IE_PROTO");n.exports=function(d,u){var f=i(d),v=0,h=[],m;for(m in f)m!=c&&s(f,m)&&h.push(m);for(;u.length>v;)s(f,m=u[v++])&&(~l(h,m)||h.push(m));return h}},d2c8:function(n,a,r){var s=r("aae3"),i=r("be13");n.exports=function(l,c,d){if(s(c))throw TypeError("String#"+d+" doesn't accept regex!");return String(i(l))}},d3f4:function(n,a){n.exports=function(r){return typeof r=="object"?r!==null:typeof r=="function"}},d53b:function(n,a){n.exports=function(r,s){return{value:s,done:!!r}}},d8e8:function(n,a){n.exports=function(r){if(typeof r!="function")throw TypeError(r+" is not a function!");return r}},e11e:function(n,a){n.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},f559:function(n,a,r){var s=r("5ca1"),i=r("9def"),l=r("d2c8"),c="startsWith",d=""[c];s(s.P+s.F*r("5147")(c),"String",{startsWith:function(f){var v=l(this,f,c),h=i(Math.min(arguments.length>1?arguments[1]:void 0,v.length)),m=String(f);return d?d.call(v,m,h):v.slice(h,h+m.length)===m}})},f6fd:function(n,a){(function(r){var s="currentScript",i=r.getElementsByTagName("script");s in r||Object.defineProperty(r,s,{get:function(){try{throw new Error}catch(d){var l,c=(/.*at [^\(]*\((.*):.+:.+\)$/ig.exec(d.stack)||[!1])[1];for(l in i)if(i[l].src==c||i[l].readyState=="interactive")return i[l];return null}}})})(document)},f751:function(n,a,r){var s=r("5ca1");s(s.S+s.F,"Object",{assign:r("7333")})},fa5b:function(n,a,r){n.exports=r("5537")("native-function-to-string",Function.toString)},fab2:function(n,a,r){var s=r("7726").document;n.exports=s&&s.documentElement},fb15:function(n,a,r){if(r.r(a),typeof window!="undefined"){r("f6fd");var s;(s=window.document.currentScript)&&(s=s.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(r.p=s[1])}r("f751"),r("f559"),r("ac6a"),r("cadf"),r("456d");function i(y){if(Array.isArray(y))return y}function l(y,p){if(!(typeof Symbol=="undefined"||!(Symbol.iterator in Object(y)))){var g=[],C=!0,O=!1,P=void 0;try{for(var z=y[Symbol.iterator](),tt;!(C=(tt=z.next()).done)&&(g.push(tt.value),!(p&&g.length===p));C=!0);}catch($t){O=!0,P=$t}finally{try{!C&&z.return!=null&&z.return()}finally{if(O)throw P}}return g}}function c(y,p){(p==null||p>y.length)&&(p=y.length);for(var g=0,C=new Array(p);g=P?O.length:O.indexOf(tt)});return g?z.filter(function(tt){return tt!==-1}):z}function B(y,p){var g=this;this.$nextTick(function(){return g.$emit(y.toLowerCase(),p)})}function j(y){var p=this;return function(g){p.realList!==null&&p["onDrag"+y](g),B.call(p,y,g)}}function L(y){return["transition-group","TransitionGroup"].includes(y)}function k(y){if(!y||y.length!==1)return!1;var p=f(y,1),g=p[0].componentOptions;return g?L(g.tag):!1}function R(y,p,g){return y[g]||(p[g]?p[g]():void 0)}function K(y,p,g){var C=0,O=0,P=R(p,g,"header");P&&(C=P.length,y=y?[].concat(b(P),b(y)):b(P));var z=R(p,g,"footer");return z&&(O=z.length,y=y?[].concat(b(y),b(z)):b(z)),{children:y,headerOffset:C,footerOffset:O}}function et(y,p){var g=null,C=function(Qt,Cn){g=D(g,Qt,Cn)},O=Object.keys(y).filter(function($t){return $t==="id"||$t.startsWith("data-")}).reduce(function($t,Qt){return $t[Qt]=y[Qt],$t},{});if(C("attrs",O),!p)return g;var P=p.on,z=p.props,tt=p.attrs;return C("on",P),C("props",z),Object.assign(g.attrs,tt),g}var q=["Start","Add","Remove","Update","End"],G=["Choose","Unchoose","Sort","Filter","Clone"],U=["Move"].concat(q,G).map(function(y){return"on"+y}),X=null,ut={options:Object,list:{type:Array,required:!1,default:null},value:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:function(p){return p}},element:{type:String,default:"div"},tag:{type:String,default:null},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},st={name:"draggable",inheritAttrs:!1,props:ut,data:function(){return{transitionMode:!1,noneFunctionalComponentMode:!1}},render:function(p){var g=this.$slots.default;this.transitionMode=k(g);var C=K(g,this.$slots,this.$scopedSlots),O=C.children,P=C.headerOffset,z=C.footerOffset;this.headerOffset=P,this.footerOffset=z;var tt=et(this.$attrs,this.componentData);return p(this.getTag(),tt,O)},created:function(){this.list!==null&&this.value!==null&&x.b.error("Value and list props are mutually exclusive! Please set one or another."),this.element!=="div"&&x.b.warn("Element props is deprecated please use tag props instead. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#element-props"),this.options!==void 0&&x.b.warn("Options props is deprecated, add sortable options directly as vue.draggable item, or use v-bind. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#options-props")},mounted:function(){var p=this;if(this.noneFunctionalComponentMode=this.getTag().toLowerCase()!==this.$el.nodeName.toLowerCase()&&!this.getIsFunctional(),this.noneFunctionalComponentMode&&this.transitionMode)throw new Error("Transition-group inside component is not supported. Please alter tag value or remove transition-group. Current tag value: ".concat(this.getTag()));var g={};q.forEach(function(P){g["on"+P]=j.call(p,P)}),G.forEach(function(P){g["on"+P]=B.bind(p,P)});var C=Object.keys(this.$attrs).reduce(function(P,z){return P[Object(x.a)(z)]=p.$attrs[z],P},{}),O=Object.assign({},this.options,C,g,{onMove:function(z,tt){return p.onDragMove(z,tt)}});!("draggable"in O)&&(O.draggable=">*"),this._sortable=new T.a(this.rootContainer,O),this.computeIndexes()},beforeDestroy:function(){this._sortable!==void 0&&this._sortable.destroy()},computed:{rootContainer:function(){return this.transitionMode?this.$el.children[0]:this.$el},realList:function(){return this.list?this.list:this.value}},watch:{options:{handler:function(p){this.updateOptions(p)},deep:!0},$attrs:{handler:function(p){this.updateOptions(p)},deep:!0},realList:function(){this.computeIndexes()}},methods:{getIsFunctional:function(){var p=this._vnode.fnOptions;return p&&p.functional},getTag:function(){return this.tag||this.element},updateOptions:function(p){for(var g in p){var C=Object(x.a)(g);U.indexOf(C)===-1&&this._sortable.option(C,p[g])}},getChildrenNodes:function(){if(this.noneFunctionalComponentMode)return this.$children[0].$slots.default;var p=this.$slots.default;return this.transitionMode?p[0].child.$slots.default:p},computeIndexes:function(){var p=this;this.$nextTick(function(){p.visibleIndexes=W(p.getChildrenNodes(),p.rootContainer.children,p.transitionMode,p.footerOffset)})},getUnderlyingVm:function(p){var g=N(this.getChildrenNodes()||[],p);if(g===-1)return null;var C=this.realList[g];return{index:g,element:C}},getUnderlyingPotencialDraggableComponent:function(p){var g=p.__vue__;return!g||!g.$options||!L(g.$options._componentTag)?!("realList"in g)&&g.$children.length===1&&"realList"in g.$children[0]?g.$children[0]:g:g.$parent},emitChanges:function(p){var g=this;this.$nextTick(function(){g.$emit("change",p)})},alterList:function(p){if(this.list){p(this.list);return}var g=b(this.value);p(g),this.$emit("input",g)},spliceList:function(){var p=arguments,g=function(O){return O.splice.apply(O,b(p))};this.alterList(g)},updatePosition:function(p,g){var C=function(P){return P.splice(g,0,P.splice(p,1)[0])};this.alterList(C)},getRelatedContextFromMoveEvent:function(p){var g=p.to,C=p.related,O=this.getUnderlyingPotencialDraggableComponent(g);if(!O)return{component:O};var P=O.realList,z={list:P,component:O};if(g!==C&&P&&O.getUnderlyingVm){var tt=O.getUnderlyingVm(C);if(tt)return Object.assign(tt,z)}return z},getVmIndex:function(p){var g=this.visibleIndexes,C=g.length;return p>C-1?C:g[p]},getComponent:function(){return this.$slots.default[0].componentInstance},resetTransitionData:function(p){if(!(!this.noTransitionOnDrag||!this.transitionMode)){var g=this.getChildrenNodes();g[p].data=null;var C=this.getComponent();C.children=[],C.kept=void 0}},onDragStart:function(p){this.context=this.getUnderlyingVm(p.item),p.item._underlying_vm_=this.clone(this.context.element),X=p.item},onDragAdd:function(p){var g=p.item._underlying_vm_;if(g!==void 0){Object(x.d)(p.item);var C=this.getVmIndex(p.newIndex);this.spliceList(C,0,g),this.computeIndexes();var O={element:g,newIndex:C};this.emitChanges({added:O})}},onDragRemove:function(p){if(Object(x.c)(this.rootContainer,p.item,p.oldIndex),p.pullMode==="clone"){Object(x.d)(p.clone);return}var g=this.context.index;this.spliceList(g,1);var C={element:this.context.element,oldIndex:g};this.resetTransitionData(g),this.emitChanges({removed:C})},onDragUpdate:function(p){Object(x.d)(p.item),Object(x.c)(p.from,p.item,p.oldIndex);var g=this.context.index,C=this.getVmIndex(p.newIndex);this.updatePosition(g,C);var O={element:this.context.element,oldIndex:g,newIndex:C};this.emitChanges({moved:O})},updateProperty:function(p,g){p.hasOwnProperty(g)&&(p[g]+=this.headerOffset)},computeFutureIndex:function(p,g){if(!p.element)return 0;var C=b(g.to.children).filter(function(tt){return tt.style.display!=="none"}),O=C.indexOf(g.related),P=p.component.getVmIndex(O),z=C.indexOf(X)!==-1;return z||!g.willInsertAfter?P:P+1},onDragMove:function(p,g){var C=this.move;if(!C||!this.realList)return!0;var O=this.getRelatedContextFromMoveEvent(p),P=this.context,z=this.computeFutureIndex(O,p);Object.assign(P,{futureIndex:z});var tt=Object.assign({},p,{relatedContext:O,draggedContext:P});return C(tt,g)},onDragEnd:function(){this.computeIndexes(),X=null}}};typeof window!="undefined"&&"Vue"in window&&window.Vue.component("draggable",st);var rt=st;a.default=rt}}).default})})(cn);var $n=Sn(cn.exports),fo=function(){var t=this,o=t.$createElement,e=t._self._c||o;return t.rowMode?e("Row",{staticClass:"task-add-row"},[e("Col",{class:["row-add",t.active?"active":""],attrs:{span:"12"}},[e("div",{staticClass:"add-input",on:{mouseenter:function(n){t.mouseEnter=!0},mouseleave:function(n){t.mouseEnter=!1}}},[e("Input",{ref:"input",attrs:{type:"textarea",rows:1,autosize:{minRows:1,maxRows:3},maxlength:255,placeholder:t.$L(t.typeName+"\u63CF\u8FF0\uFF0C\u56DE\u8F66\u521B\u5EFA"),enterkeyhint:"done"},on:{"on-focus":function(n){t.onFocus=!0},"on-blur":function(n){t.onFocus=!1},"on-keydown":t.onKeydown},model:{value:t.addData.name,callback:function(n){t.$set(t.addData,"name",n)},expression:"addData.name"}}),t.parentId==0?e("div",{staticClass:"priority"},[e("ul",t._l(t.taskPriority,function(n,a){return e("li",{key:a},[t.active?e("ETooltip",{attrs:{disabled:t.windowSmall||t.$isEEUiApp,content:t.taskPriorityContent(n)}},[e("i",{staticClass:"taskfont",style:{color:n.color},domProps:{innerHTML:t._s(t.addData.p_name==n.name?"":"")},on:{click:function(r){return t.choosePriority(n)}}})]):t._e()],1)}),0),e("Icon",{attrs:{type:"md-settings"},on:{click:t.onPriority}})],1):t._e()],1),e("div",{staticClass:"add-btn",on:{click:t.openAdd}},[e("Icon",{staticClass:"add-icon",attrs:{type:"md-add"}}),t._v(t._s(t.$L("\u6DFB\u52A0"+t.typeName))+" ")],1)]),e("Col",{attrs:{span:"3"}}),e("Col",{attrs:{span:"3"}}),e("Col",{attrs:{span:"3"}}),e("Col",{attrs:{span:"3"}})],1):e("div",{class:["task-add-simple",t.active?"active":""],on:{mouseenter:function(n){t.mouseEnter=!0},mouseleave:function(n){t.mouseEnter=!1}}},[e("Input",{ref:"input",attrs:{type:"textarea",rows:2,autosize:{minRows:2,maxRows:3},maxlength:255,placeholder:t.$L(t.typeName+"\u63CF\u8FF0\uFF0C\u56DE\u8F66\u521B\u5EFA"),enterkeyhint:"done"},on:{"on-focus":function(n){t.onFocus=!0},"on-blur":function(n){t.onFocus=!1},"on-keydown":t.onKeydown},model:{value:t.addData.name,callback:function(n){t.$set(t.addData,"name",n)},expression:"addData.name"}}),e("div",{staticClass:"add-placeholder",on:{click:t.openAdd}},[e("Icon",{attrs:{type:"md-add"}}),t._v(t._s(t.$L("\u6DFB\u52A0"+t.typeName))+" ")],1),e("div",{staticClass:"priority"},[e("ul",t._l(t.taskPriority,function(n,a){return e("li",{key:a},[t.active?e("ETooltip",{attrs:{disabled:t.windowSmall||t.$isEEUiApp,content:t.taskPriorityContent(n)}},[e("i",{staticClass:"taskfont",style:{color:n.color},domProps:{innerHTML:t._s(t.addData.p_name==n.name?"":"")},on:{click:function(r){return t.choosePriority(n)}}})]):t._e()],1)}),0),e("Icon",{attrs:{type:"md-settings"},on:{click:t.onPriority}})],1)],1)},ho=[];const po={name:"TaskAddSimple",props:{parentId:{type:Number,default:0},projectId:{type:Number,default:0},columnId:{type:Number,default:0},addTop:{type:Boolean,default:!1},autoActive:{type:Boolean,default:!1},rowMode:{type:Boolean,default:!1}},data(){return{addData:{name:"",owner:0,column_id:0,times:[],subtasks:[],p_level:0,p_name:"",p_color:""},active:!1,onFocus:!1,mouseEnter:!1}},mounted(){this.autoActive&&this.$nextTick(this.openAdd)},computed:{...kt(["taskPriority"]),typeName(){return this.parentId>0?"\u5B50\u4EFB\u52A1":"\u4EFB\u52A1"}},watch:{active(t){t||this.$emit("on-close")},mouseEnter(){this.chackClose()},onFocus(){this.chackClose()}},methods:{getData(){return this.parentId>0?{task_id:this.parentId,name:this.addData.name}:(this.addData.project_id=this.projectId||this.$store.state.projectId,this.addData.column_id=this.columnId||"",this.addData.owner=[this.userId],this.addData.top=this.addTop?1:0,$A.cloneJSON(this.addData))},openAdd(){this.active=!0,this.defaultPriority(),this.$nextTick(()=>{this.$refs.input.focus()})},chackClose(){this.mouseEnter||this.onFocus||this.addData.name||(this.active=!1)},onPriority(){this.$emit("on-priority",this.getData()),this.active=!1},onKeydown(t){if(t.keyCode===13){if(t.shiftKey)return;t.preventDefault(),this.onAdd()}},onAdd(){if(!this.addData.name){$A.messageWarning("\u8BF7\u8F93\u5165\u4EFB\u52A1\u63CF\u8FF0");return}this.loadIng++;let t=this.parentId>0?"taskAddSub":"taskAdd";this.$store.dispatch(t,this.getData()).then(({msg:o})=>{$A.messageSuccess(o),this.loadIng--,this.active=!1,this.addData={name:"",owner:0,column_id:0,times:[],subtasks:[],p_level:0,p_name:"",p_color:""}}).catch(({msg:o})=>{$A.modalError(o),this.loadIng--})},taskPriorityContent(t){let o=$A.runNum(t.days);return o<=0?t.name+" ("+this.$L("\u65E0\u65F6\u95F4\u9650\u5236")+")":t.name+" ("+o+this.$L("\u5929")+")"},choosePriority(t){if($A.runNum(t.days)>0){let o=new Date,e=new Date(new Date().setDate(o.getDate()+$A.runNum(t.days)));this.$set(this.addData,"times",$A.date2string([o,e]))}else this.$set(this.addData,"times",[]);this.$set(this.addData,"p_level",t.priority),this.$set(this.addData,"p_name",t.name),this.$set(this.addData,"p_color",t.color),this.$nextTick(()=>{this.$refs.input.focus()})},defaultPriority(){this.taskPriority.length!==0&&(this.addData.p_name||this.choosePriority(this.taskPriority[0]))}}},Ve={};var mo=wt(po,fo,ho,!1,vo,null,null,null);function vo(t){for(let o in Ve)this[o]=Ve[o]}var _n=function(){return mo.exports}(),go=function(){var t=this,o=t.$createElement,e=t._self._c||o;return e("div",{staticClass:"task-rows"},[t._l(t.list,function(n,a){return e("div",{key:a},[e("Row",{staticClass:"task-row",style:n.color?{backgroundColor:n.color,borderBottomColor:n.color}:{}},[n.p_name?e("em",{staticClass:"priority-color",style:{backgroundColor:n.p_color}}):t._e(),e("Col",{class:["row-name",n.complete_at?"complete":""],attrs:{span:"12"}},[n.sub_num>0&&n.sub_top!==!0||n.parent_id===0&&t.fastAddTask?e("Icon",{class:["sub-icon",t.taskOpen[n.id]?"active":""],attrs:{type:"ios-arrow-forward"},on:{click:function(r){return t.getSublist(n)}}}):t._e(),e("TaskMenu",{ref:`taskMenu_${n.id}`,refInFor:!0,attrs:{task:n}}),e("div",{staticClass:"item-title",on:{click:function(r){return t.openTask(n)}}},[n.flow_item_name?e("span",{class:n.flow_item_status,on:{click:function(r){return r.stopPropagation(),t.openMenu(r,n)}}},[t._v(t._s(n.flow_item_name))]):t._e(),n.sub_top===!0?e("span",[t._v(t._s(t.$L("\u5B50\u4EFB\u52A1")))]):t._e(),n.sub_my&&n.sub_my.length>0?e("span",[t._v("+"+t._s(n.sub_my.length))]):t._e(),t._v(" "+t._s(n.name)+" ")]),e("div",{staticClass:"item-icons",on:{click:function(r){return t.openTask(n)}}},[n.desc?e("div",{staticClass:"item-icon"},[e("i",{staticClass:"taskfont"},[t._v("\uE71A")])]):t._e(),n.file_num>0?e("div",{staticClass:"item-icon"},[e("i",{staticClass:"taskfont"},[t._v("\uE71C")]),e("em",[t._v(t._s(n.file_num))])]):t._e(),n.msg_num>0?e("div",{staticClass:"item-icon"},[e("i",{staticClass:"taskfont"},[t._v("\uE71E")]),e("em",[t._v(t._s(n.msg_num))])]):t._e(),n.sub_num>0?e("div",{staticClass:"item-icon",on:{click:function(r){return r.stopPropagation(),t.getSublist(n)}}},[e("i",{staticClass:"taskfont"},[t._v("\uE71F")]),e("em",[t._v(t._s(n.sub_complete)+"/"+t._s(n.sub_num))])]):t._e()])],1),e("Col",{staticClass:"row-column",attrs:{span:"3"}},[e("EDropdown",{attrs:{trigger:"click",size:"small",placement:"bottom",disabled:n.sub_top===!0},on:{command:function(r){return t.dropTask(n,r)}}},[e("div",{staticClass:"task-column"},[t._v(t._s(t.columnName(n.column_id)))]),e("EDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},t._l(t.columnList(n.project_id),function(r){return e("EDropdownItem",{key:r.id,attrs:{command:"column::"+r.id}},[t._v(" "+t._s(r.name)+" ")])}),1)],1)],1),e("Col",{staticClass:"row-priority",attrs:{span:"3"}},[e("EDropdown",{attrs:{trigger:"click",size:"small",placement:"bottom",disabled:n.sub_top===!0},on:{command:function(r){return t.dropTask(n,r)}}},[e("TaskPriority",{attrs:{backgroundColor:n.p_color}},[t._v(t._s(n.p_name))]),e("EDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},t._l(t.taskPriority,function(r,s){return e("EDropdownItem",{key:s,attrs:{command:"priority::"+s}},[e("i",{staticClass:"taskfont",style:{color:r.color},domProps:{innerHTML:t._s(r.p_name==r.name?"":"")}}),t._v(" "+t._s(r.name)+" ")])}),1)],1)],1),e("Col",{staticClass:"row-user",attrs:{span:"3"}},[e("ul",{on:{click:function(r){return t.openTask(n)}}},[t._l(t.ownerUser(n.task_user),function(r,s){return s<3?e("li",{key:s},[e("UserAvatar",{attrs:{userid:r.userid,size:"32",borderWitdh:2,borderColor:n.color,showName:t.ownerUser(n.task_user).length===1}})],1):t._e()}),t.ownerUser(n.task_user).length===0?e("li",{staticClass:"no-owner"},[e("Button",{attrs:{type:"primary",size:"small"},on:{click:function(r){return r.stopPropagation(),t.openTask(n,!0)}}},[t._v(t._s(t.$L("\u9886\u53D6\u4EFB\u52A1")))])],1):t._e()],2)]),e("Col",{staticClass:"row-time",attrs:{span:"3"}},[!n.complete_at&&n.end_at?e("ETooltip",{class:["task-time",n.today?"today":"",n.overdue?"overdue":""],attrs:{disabled:t.windowSmall||t.$isEEUiApp,"open-delay":600,content:n.end_at}},[e("div",{on:{click:function(r){return t.openTask(n)}}},[t._v(t._s(t.expiresFormat(n.end_at)))])]):t.showCompleteAt&&n.complete_at?e("div",{attrs:{title:n.complete_at}},[t._v(t._s(t.completeAtFormat(n.complete_at)))]):t._e()],1)],1),t.taskOpen[n.id]===!0?e("TaskRow",{attrs:{list:t.subTask(n.id),"parent-id":n.id,"fast-add-task":n.parent_id===0&&t.fastAddTask,"open-key":t.openKey},on:{command:t.dropTask}}):t._e()],1)}),t.fastAddTask||t.parentId>0?e("TaskAddSimple",{attrs:{"parent-id":t.parentId,"row-mode":""},on:{"on-priority":t.onPriority}}):t._e()],2)},yo=[];const bo={name:"TaskRow",components:{TaskMenu:ln,TaskAddSimple:_n,TaskPriority:an},props:{list:{type:Array,default:()=>[]},parentId:{type:Number,default:0},fastAddTask:{type:Boolean,default:!1},openKey:{type:String,default:"default"},showCompleteAt:{type:Boolean,default:!1}},data(){return{nowTime:$A.Time(),nowInterval:null,taskLoad:{},taskOpen:{}}},mounted(){this.nowInterval=setInterval(()=>{this.nowTime=$A.Time()},1e3)},destroyed(){clearInterval(this.nowInterval)},computed:{...kt(["cacheTasks","taskPriority","cacheColumns"]),subTask(){return function(t){return this.cacheTasks.filter(o=>o.archived_at?!1:o.parent_id==t).sort((o,e)=>o.id-e.id)}}},methods:{columnName(t){const o=this.cacheColumns.find(({id:e})=>e==t);return o?o.name:""},dropTask(t,o){const e=this.$refs[`taskMenu_${t.id}`];if(!!e){if($A.leftExists(o,"column::")){e[0].updateTask({column_id:$A.leftDelete(o,"column::")});return}if($A.leftExists(o,"priority::")){let n=this.taskPriority[parseInt($A.leftDelete(o,"priority::"))];n&&e[0].updateTask({p_level:n.priority,p_name:n.name,p_color:n.color})}}},onPriority(t){this.$emit("on-priority",t)},getSublist(t){if(t.sub_top===!0){this.openTask(t);return}if(this.taskOpen[t.id]===!0){this.$set(this.taskOpen,t.id,!1);return}this.taskLoad[t.id]!==!0&&(this.$set(this.taskLoad,t.id,!0),this.$store.dispatch("getTaskForParent",t.id).then(()=>{this.$set(this.taskLoad,t.id,!1),this.$set(this.taskOpen,t.id,!0)}).catch(({msg:o})=>{$A.modalError(o),this.$set(this.taskLoad,t.id,!1)}))},columnList(t){return this.cacheColumns.filter(({project_id:o})=>o==t)},openTask(t,o){this.$store.dispatch("openTask",t),o===!0&&setTimeout(()=>{Te.Store.set("receiveTask",!0)},300)},openMenu(t,o){const e=this.$refs[`taskMenu_${o.id}`];e&&e[0].handleClick(t)},ownerUser(t){return t.filter(({owner:o})=>o==1).sort((o,e)=>o.id-e.id)},expiresFormat(t){return $A.countDownFormat(t,this.nowTime)},completeAtFormat(t){let o=$A.Date(t,!0);return $A.formatDate("Y")===$A.formatDate("Y",o)?$A.formatDate("m-d H:i",o):$A.formatDate("Y-m-d",o)}}},Ke={};var wo=wt(bo,go,yo,!1,$o,null,null,null);function $o(t){for(let o in Ke)this[o]=Ke[o]}var _o=function(){return wo.exports}(),Co=function(){var t=this,o=t.$createElement,e=t._self._c||o;return e("div",{staticClass:"task-archived"},[e("div",{staticClass:"archived-title"},[t._v(" "+t._s(t.$L("\u5F52\u6863\u7684\u4EFB\u52A1"))+" "),e("div",{staticClass:"title-icon"},[t.loadIng>0?e("Loading"):t._e()],1)]),e("div",{staticClass:"search-container lr"},[e("ul",[e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u4EFB\u52A1\u540D"))+" ")]),e("div",{staticClass:"search-content"},[e("Input",{attrs:{clearable:""},model:{value:t.keys.name,callback:function(n){t.$set(t.keys,"name",n)},expression:"keys.name"}})],1)]),e("li",{staticClass:"search-button"},[e("Tooltip",{attrs:{theme:"light",placement:"right","transfer-class-name":"search-button-clear",transfer:""}},[e("Button",{attrs:{loading:t.loadIng>0,type:"primary",icon:"ios-search"},on:{click:t.onSearch}},[t._v(t._s(t.$L("\u641C\u7D22")))]),e("div",{attrs:{slot:"content"},slot:"content"},[t.keyIs?e("Button",{attrs:{type:"text"},on:{click:function(n){t.keyIs=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88\u7B5B\u9009")))]):e("Button",{attrs:{loading:t.loadIng>0,type:"text"},on:{click:t.getLists}},[t._v(t._s(t.$L("\u5237\u65B0")))])],1)],1)],1)])]),e("div",{staticClass:"table-page-box"},[e("Table",{attrs:{columns:t.columns,data:t.list,loading:t.loadIng>0,"no-data-text":t.$L(t.noText),stripe:""}}),e("Page",{attrs:{total:t.total,current:t.page,"page-size":t.pageSize,disabled:t.loadIng>0,simple:t.windowSmall,"page-size-opts":[10,20,30,50,100],"show-elevator":"","show-sizer":"","show-total":""},on:{"on-change":t.setPage,"on-page-size-change":t.setPageSize}})],1)])},Do=[];const xo={name:"TaskArchived",props:{projectId:{type:Number,default:0}},data(){return{loadIng:0,keys:{},keyIs:!1,columns:[{title:"ID",key:"id",width:80,render:(t,{row:o,column:e})=>t("TableAction",{props:{column:e,align:"left"}},[t("div",o.id)])},{title:this.$L("\u4EFB\u52A1\u540D\u79F0"),key:"name",minWidth:200,render:(t,{row:o})=>t("AutoTip",{on:{"on-click":()=>{this.$store.dispatch("openTask",o)}}},o.name)},{title:this.$L("\u5B8C\u6210\u65F6\u95F4"),key:"complete_at",width:168,render:(t,{row:o})=>t("div",{style:{color:o.complete_at?"":"#f00"}},o.complete_at||this.$L("\u672A\u5B8C\u6210"))},{title:this.$L("\u5F52\u6863\u65F6\u95F4"),key:"archived_at",width:168},{title:this.$L("\u5F52\u6863\u4EBA\u5458"),key:"archived_userid",minWidth:100,render:(t,{row:o})=>o.archived_userid?t("UserAvatar",{props:{userid:o.archived_userid,size:24,showName:!0}}):t("Tag",this.$L("\u7CFB\u7EDF\u81EA\u52A8"))},{title:this.$L("\u64CD\u4F5C"),align:"center",width:100,render:(t,o)=>{if(this.cacheTasks.find(n=>n.id==o.row.id&&!n.archived_at))return t("div",{style:{color:"#888"}},this.$L("\u5DF2\u8FD8\u539F"));const e=[t("span",{style:{fontSize:"13px",cursor:"pointer",color:"#84C56A"},on:{click:()=>{this.$store.dispatch("openTask",o.row)}}},this.$L("\u67E5\u770B")),t("Poptip",{props:{title:this.$L("\u4F60\u786E\u5B9A\u8981\u8FD8\u539F\u5F52\u6863\u5417\uFF1F"),confirm:!0,transfer:!0,placement:"left",okText:this.$L("\u786E\u5B9A"),cancelText:this.$L("\u53D6\u6D88")},style:{marginLeft:"6px",fontSize:"13px",cursor:"pointer",color:"#84C56A"},on:{"on-ok":()=>{this.recovery(o.row)}}},this.$L("\u8FD8\u539F")),t("Poptip",{props:{title:this.$L("\u4F60\u786E\u5B9A\u8981\u5220\u9664\u4EFB\u52A1\u5417\uFF1F"),confirm:!0,transfer:!0,placement:"left",okText:this.$L("\u786E\u5B9A"),cancelText:this.$L("\u53D6\u6D88")},style:{marginLeft:"6px",fontSize:"13px",cursor:"pointer",color:"#f00"},on:{"on-ok":()=>{this.delete(o.row)}}},this.$L("\u5220\u9664"))];return t("TableAction",{props:{column:o.column}},e)}}],list:[],page:1,pageSize:20,total:0,noText:""}},mounted(){},computed:{...kt(["cacheTasks"])},watch:{projectId:{handler(){this.getLists()},immediate:!0},keyIs(t){t||(this.keys={},this.setPage(1))}},methods:{onSearch(){this.page=1,this.getLists()},getLists(){!this.projectId||(this.loadIng++,this.keyIs=$A.objImplode(this.keys)!="",this.$store.dispatch("call",{url:"project/task/lists",data:{keys:this.keys,project_id:this.projectId,parent_id:-1,archived:"yes",sorts:{archived_at:"desc"},page:Math.max(this.page,1),pagesize:Math.max($A.runNum(this.pageSize),10)}}).then(({data:t})=>{this.page=t.current_page,this.total=t.total,this.list=t.data,this.noText="\u6CA1\u6709\u76F8\u5173\u7684\u6570\u636E"}).catch(()=>{this.noText="\u6570\u636E\u52A0\u8F7D\u5931\u8D25"}).finally(t=>{this.loadIng--}))},setPage(t){this.page=t,this.getLists()},setPageSize(t){this.page=1,this.pageSize=t,this.getLists()},recovery(t){this.list=this.list.filter(({id:o})=>o!=t.id),this.loadIng++,this.$store.dispatch("archivedTask",{task_id:t.id,type:"recovery"}).then(({msg:o})=>{$A.messageSuccess(o),this.loadIng--,this.getLists(),this.$store.dispatch("openTask",t)}).catch(({msg:o})=>{$A.modalError(o),this.loadIng--,this.getLists()})},delete(t){this.list=this.list.filter(({id:o})=>o!=t.id),this.loadIng++,this.$store.dispatch("removeTask",{task_id:t.id}).then(({msg:o})=>{$A.messageSuccess(o),this.loadIng--,this.getLists()}).catch(({msg:o})=>{$A.modalError(o),this.loadIng--,this.getLists()})}}},Je={};var So=wt(xo,Co,Do,!1,To,null,null,null);function To(t){for(let o in Je)this[o]=Je[o]}var Io=function(){return So.exports}(),ko=function(){var t=this,o=t.$createElement,e=t._self._c||o;return e("div",{staticClass:"project-workflow"},[e("div",{staticClass:"workflow-title"},[t._v(" "+t._s(t.$L("\u5DE5\u4F5C\u6D41\u8BBE\u7F6E"))+" "),e("div",{staticClass:"title-icon"},[t.loadIng>0?e("Loading"):e("Icon",{attrs:{type:"ios-refresh"},on:{click:t.getData}})],1)]),t.list.length>0?e("div",{staticClass:"workflow-content"},[e("Collapse",{attrs:{accordion:""},model:{value:t.openIndex,callback:function(n){t.openIndex=n},expression:"openIndex"}},t._l(t.list,function(n){return e("Panel",{key:n.id,attrs:{name:"index_"+n.id}},[e("div",{staticClass:"workflow-item"},[e("div",{staticClass:"workflow-name"},[t._v(t._s(n.name))]),e("div",{staticClass:"workflow-status"},t._l(n.project_flow_item,function(a){return e("div",{class:a.status},[t._v(t._s(a.name))])}),0),e("div",{staticClass:"workflow-save",on:{click:function(a){a.stopPropagation()}}},[t.contrast(n.project_flow_item,n.project_flow_bak)?[e("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:function(a){return t.onSave(n)}}},[t._v(t._s(t.$L("\u4FDD\u5B58")))]),n.id>0?e("Button",{attrs:{disabled:t.loadIng>0,type:"primary",ghost:""},on:{click:function(a){return t.onReduction(n,a)}}},[t._v(t._s(t.$L("\u8FD8\u539F")))]):t._e()]:t._e(),e("Button",{attrs:{disabled:t.loadIng>0,type:"error",ghost:""},on:{click:function(a){return t.onDelete(n)}}},[t._v(t._s(t.$L("\u5220\u9664")))])],2)]),e("div",{staticClass:"taskflow-config",attrs:{slot:"content"},slot:"content"},[e("div",{staticClass:"taskflow-config-table"},[e("div",{staticClass:"taskflow-config-table-left-container"},[e("div",{staticClass:"taskflow-config-table-column-header left-header"},[t._v(t._s(t.$L("\u914D\u7F6E\u9879")))]),e("div",{ref:`overlay_${n.id}`,refInFor:!0,staticClass:"taskflow-config-table-column-body scrollbar-overlay"},[e("div",{staticClass:"taskflow-config-table-block"},[e("div",{staticClass:"taskflow-config-table-block-title"},[t._v(t._s(t.$L("\u8BBE\u7F6E\u72B6\u6001\u4E3A")))]),e("div",{staticClass:"taskflow-config-table-block-item"},[e("div",[e("div",{staticClass:"title"},[t._v(t._s(t.$L("\u5F00\u59CB\u72B6\u6001")))]),e("div",{staticClass:"subtitle"},[t._v(t._s(t.$L("\u65B0\u5EFA\u4EFB\u52A1\u9ED8\u8BA4\u72B6\u6001")))])])]),e("div",{staticClass:"taskflow-config-table-block-item"},[e("div",[e("div",{staticClass:"title"},[t._v(t._s(t.$L("\u8FDB\u884C\u4E2D")))]),e("div",{staticClass:"subtitle"},[t._v(t._s(t.$L("\u53EF\u8BBE\u7F6E\u591A\u4E2A\u72B6\u6001\u4E3A\u8FDB\u884C\u4E2D")))])])]),e("div",{staticClass:"taskflow-config-table-block-item"},[e("div",[e("div",{staticClass:"title"},[t._v(t._s(t.$L("\u9A8C\u6536/\u6D4B\u8BD5")))]),e("div",{staticClass:"subtitle"},[t._v(t._s(t.$L("\u53EA\u80FD\u8BBE\u7F6E\u5355\u4E2A\u72B6\u6001\u4E3A\u9A8C\u6536/\u6D4B\u8BD5")))])])]),e("div",{staticClass:"taskflow-config-table-block-item"},[e("div",[e("div",{staticClass:"title"},[t._v(t._s(t.$L("\u7ED3\u675F\u72B6\u6001")))]),e("div",{staticClass:"subtitle"},[t._v(t._s(t.$L("\u8BE5\u72B6\u6001\u4E0B\u4EFB\u52A1\u81EA\u52A8\u6807\u8BB0\u5B8C\u6210")))])])])]),e("div",{staticClass:"taskflow-config-table-block hr"},[e("div",{staticClass:"taskflow-config-table-block-title"},[t._v(t._s(t.$L("\u53EF\u6D41\u8F6C\u5230")))]),t._l(n.project_flow_item,function(a){return e("div",{staticClass:"taskflow-config-table-block-item"},[e("span",{staticClass:"transform-status-name"},[t._v(t._s(a.name))])])})],2)])]),e("div",{staticClass:"taskflow-config-table-right-container"},[e("Draggable",{staticClass:"taskflow-config-table-list-wrapper",attrs:{list:n.project_flow_item,animation:150,disabled:t.windowSmall||t.$isEEUiApp,tag:"div",draggable:".column-border"},on:{sort:function(a){}}},[t._l(n.project_flow_item,function(a){return e("div",{staticClass:"taskflow-config-table-status-column column-border",class:a.status},[e("div",{staticClass:"taskflow-config-table-status-item taskflow-config-table-column-header"},[e("div",{staticClass:"status-label-with-menu",class:a.status},[e("div",{staticClass:"name"},[t._v(t._s(t.$L(a.name)))]),e("EDropdown",{staticClass:"more",class:{opacity:a.userids.length>0},attrs:{trigger:"click"},on:{command:function(r){return t.onMore(r,a)}}},[e("div",{staticClass:"more-icon"},[a.userids.length>1?e("EAvatar",{attrs:{size:20}},[t._v(t._s(a.userids.length))]):a.userids.length>0?e("UserAvatar",{attrs:{userid:a.userids[0],size:20,tooltipDisabled:""}}):e("Icon",{attrs:{type:"ios-more"}})],1),e("EDropdownMenu",{staticClass:"taskflow-config-more-dropdown-menu",attrs:{slot:"dropdown"},slot:"dropdown"},[a.userids.length>0?e("EDropdownItem",{attrs:{command:"user"}},[e("div",{staticClass:"users"},t._l(a.userids,function(r,s){return e("UserAvatar",{key:s,attrs:{userid:r,size:28,borderWitdh:1,showName:a.userids.length===1,tooltipDisabled:""}})}),1)]):t._e(),e("EDropdownItem",{attrs:{command:"user"}},[e("div",{staticClass:"item"},[e("Icon",{attrs:{type:"md-person"}}),t._v(" "+t._s(t.$L("\u72B6\u6001\u8D1F\u8D23\u4EBA"))+" ")],1)]),e("EDropdownItem",{attrs:{command:"name"}},[e("div",{staticClass:"item"},[e("Icon",{attrs:{type:"md-create"}}),t._v(t._s(t.$L("\u4FEE\u6539\u540D\u79F0"))+" ")],1)]),e("EDropdownItem",{attrs:{command:"remove"}},[e("div",{staticClass:"item delete"},[e("Icon",{attrs:{type:"md-trash"}}),t._v(t._s(t.$L("\u5220\u9664"))+" ")],1)])],1)],1)],1)]),e("div",{ref:`overlay_${n.id}`,refInFor:!0,staticClass:"taskflow-config-table-column-body scrollbar-overlay"},[e("div",{staticClass:"taskflow-config-table-block"},[e("div",{staticClass:"taskflow-config-table-block-title"}),e("RadioGroup",{model:{value:a.status,callback:function(r){t.$set(a,"status",r)},expression:"item.status"}},[e("Radio",{attrs:{label:"start"}},[e("span")]),e("Radio",{attrs:{label:"progress"}},[e("span")]),e("Radio",{attrs:{label:"test"}},[e("span")]),e("Radio",{attrs:{label:"end"}},[e("span")])],1)],1),e("div",{staticClass:"taskflow-config-table-block"},[e("div",{staticClass:"taskflow-config-table-block-title"}),e("CheckboxGroup",{on:{"on-change":function(r){return t.onTurns(a)}},model:{value:a.turns,callback:function(r){t.$set(a,"turns",r)},expression:"item.turns"}},t._l(n.project_flow_item,function(r){return e("Checkbox",{key:r.id,attrs:{label:r.id,disabled:r.id==a.id}},[e("span")])}),1)],1)])])}),e("div",{staticClass:"taskflow-config-table-status-column addnew",on:{click:function(a){return t.onAdd(n)}}},[t._v(t._s(t.$L("\u6DFB\u52A0\u72B6\u6001")))])],2)],1)])])])}),1)],1):t.loadIng==0?e("div",{staticClass:"workflow-no"},[t._v(" "+t._s(t.$L("\u5F53\u524D\u9879\u76EE\u8FD8\u6CA1\u6709\u521B\u5EFA\u5DE5\u4F5C\u6D41"))+" "),e("Button",{attrs:{type:"primary"},on:{click:t.onCreate}},[t._v(t._s(t.$L("\u521B\u5EFA\u5DE5\u4F5C\u6D41")))])],1):t._e(),e("Modal",{attrs:{title:`${t.$L("\u72B6\u6001\u8D1F\u8D23\u4EBA")} (${t.userData.name})`,"mask-closable":!1},model:{value:t.userShow,callback:function(n){t.userShow=n},expression:"userShow"}},[e("Form",{attrs:{model:t.userData,"label-width":"auto"},nativeOn:{submit:function(n){n.preventDefault()}}},[e("FormItem",{attrs:{prop:"userids",label:t.$L("\u72B6\u6001\u8D1F\u8D23\u4EBA")}},[e("UserInput",{attrs:{"project-id":t.projectId,"multiple-max":5,placeholder:t.$L("\u9009\u62E9\u72B6\u6001\u8D1F\u8D23\u4EBA")},model:{value:t.userData.userids,callback:function(n){t.$set(t.userData,"userids",n)},expression:"userData.userids"}})],1),e("FormItem",{attrs:{prop:"usertype",label:t.$L("\u6D41\u8F6C\u6A21\u5F0F")}},[e("RadioGroup",{model:{value:t.userData.usertype,callback:function(n){t.$set(t.userData,"usertype",n)},expression:"userData.usertype"}},[e("Radio",{attrs:{label:"add"}},[t._v(t._s(t.$L("\u6DFB\u52A0\u6A21\u5F0F")))]),e("Radio",{attrs:{label:"replace"}},[t._v(t._s(t.$L("\u6D41\u8F6C\u6A21\u5F0F")))]),e("Radio",{attrs:{label:"merge"}},[t._v(t._s(t.$L("\u5254\u9664\u6A21\u5F0F")))])],1),t.userData.usertype=="replace"?e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L(`\u6D41\u8F6C\u5230\u3010${t.userData.name}\u3011\u65F6\u6539\u53D8\u4EFB\u52A1\u8D1F\u8D23\u4EBA\u4E3A\u72B6\u6001\u8D1F\u8D23\u4EBA\uFF0C\u539F\u672C\u7684\u4EFB\u52A1\u8D1F\u8D23\u4EBA\u79FB\u81F3\u534F\u52A9\u4EBA\u5458\u3002`)))]):t.userData.usertype=="merge"?e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L(`\u6D41\u8F6C\u5230\u3010${t.userData.name}\u3011\u65F6\u6539\u53D8\u4EFB\u52A1\u8D1F\u8D23\u4EBA\u4E3A\u72B6\u6001\u8D1F\u8D23\u4EBA\uFF08\u5E76\u4FDD\u7559\u64CD\u4F5C\u72B6\u6001\u7684\u4EBA\u5458\uFF09\uFF0C\u539F\u672C\u7684\u4EFB\u52A1\u8D1F\u8D23\u4EBA\u79FB\u81F3\u534F\u52A9\u4EBA\u5458\u3002`)))]):e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L(`\u6D41\u8F6C\u5230\u3010${t.userData.name}\u3011\u65F6\u6DFB\u52A0\u72B6\u6001\u8D1F\u8D23\u4EBA\u81F3\u4EFB\u52A1\u8D1F\u8D23\u4EBA\u3002`)))])],1),e("FormItem",{attrs:{prop:"userlimit",label:t.$L("\u9650\u5236\u8D1F\u8D23\u4EBA")}},[e("iSwitch",{attrs:{"true-value":1,"false-value":0},model:{value:t.userData.userlimit,callback:function(n){t.$set(t.userData,"userlimit",n)},expression:"userData.userlimit"}}),t.userData.userlimit===1?e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L(`\u6D41\u8F6C\u5230\u3010${t.userData.name}\u3011\u65F6\uFF0C[\u4EFB\u52A1\u8D1F\u8D23\u4EBA] \u548C [\u9879\u76EE\u7BA1\u7406\u5458] \u53EF\u4EE5\u4FEE\u6539\u72B6\u6001\u3002`)))]):e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L(`\u6D41\u8F6C\u5230\u3010${t.userData.name}\u3011\u65F6\uFF0C[\u4EFB\u52A1\u8D1F\u8D23\u4EBA] \u548C [\u9879\u76EE\u7BA1\u7406\u5458] \u53EF\u4EE5\u4FEE\u6539\u72B6\u6001\u3002`)))])],1)],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(n){t.userShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary"},on:{click:t.onUser}},[t._v(t._s(t.$L("\u4FDD\u5B58")))])],1)],1)],1)},jo=[];const Eo={name:"ProjectWorkflow",components:{UserInput:sn,Draggable:$n},props:{projectId:{type:Number,default:0}},data(){return{loadIng:0,list:[],openIndex:"",userShow:!1,userData:{}}},mounted(){},watch:{projectId:{handler(t){t&&this.getData()},immediate:!0}},methods:{getData(){this.loadIng++,this.$store.dispatch("call",{url:"project/flow/list",data:{project_id:this.projectId}}).then(({data:t})=>{this.list=t.map(o=>(o.project_flow_bak=JSON.stringify(o.project_flow_item),o)),this.openIndex=this.list.length===1?"index_"+this.list[0].id:"",this.$nextTick(this.syncScroller)}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.loadIng--})},syncScroller(){this.list.some(t=>{this.$refs[`overlay_${t.id}`]&&this.$refs[`overlay_${t.id}`].some(o=>{Object.keys(o.attributes).includes("sync-scroller")||(o.setAttribute("sync-scroller",!0),o.addEventListener("scroll",({target:e})=>{let n=e.scrollTop,a=e.scrollLeft;this.$nextTick(()=>{this.$refs[`overlay_${t.id}`].some(r=>{r!=o&&r.scrollTo(a,n)})})}))})})},contrast(t,o){return JSON.stringify(t)!=o},existDiff(){return!!this.list.find(t=>this.contrast(t.project_flow_item,t.project_flow_bak))},onCreate(){let t=-1*$A.randNum(1e3,1e4);this.list.push({id:t,name:"Default",project_flow_item:[{id:-10,name:"\u5F85\u5904\u7406",status:"start",turns:[-10,-11,-12,-13,-14],userids:[],usertype:"add",userlimit:0},{id:-11,name:"\u8FDB\u884C\u4E2D",status:"progress",turns:[-10,-11,-12,-13,-14],userids:[],usertype:"add",userlimit:0},{id:-12,name:"\u5F85\u6D4B\u8BD5",status:"test",turns:[-10,-11,-12,-13,-14],userids:[],usertype:"add",userlimit:0},{id:-13,name:"\u5DF2\u5B8C\u6210",status:"end",turns:[-10,-11,-12,-13,-14],userids:[],usertype:"add",userlimit:0},{id:-14,name:"\u5DF2\u53D6\u6D88",status:"end",turns:[-10,-11,-12,-13,-14],userids:[],usertype:"add",userlimit:0}]}),this.openIndex="index_"+t,this.$nextTick(this.syncScroller)},onDelete(t){$A.modalConfirm({title:"\u5220\u9664\u5DE5\u4F5C\u6D41",content:"\u4F60\u786E\u5B9A\u8981\u5220\u9664\u5DE5\u4F5C\u6D41\u5417\uFF1F",loading:!0,onOk:()=>{if(t.id>0)return new Promise((e,n)=>{this.loadIng++,this.$store.dispatch("call",{url:"project/flow/delete",data:{project_id:this.projectId}}).then(({msg:a})=>{e(a);let r=this.list.findIndex(({id:s})=>s==t.id);r>-1&&this.list.splice(r,1)}).catch(({msg:a})=>{n(a)}).finally(a=>{this.loadIng--})});const o=this.list.findIndex(({id:e})=>e==t.id);o>-1&&this.list.splice(o,1)}})},onMore(t,o){switch(t){case"user":this.$set(this.userData,"id",o.id),this.$set(this.userData,"name",o.name),this.$set(this.userData,"userids",o.userids),this.$set(this.userData,"usertype",o.usertype),this.$set(this.userData,"userlimit",o.userlimit),this.userShow=!0;break;case"name":this.onName(o);break;case"remove":this.onRemove(o);break}},onUser(){this.userShow=!1,this.list.some(t=>{let o=t.project_flow_item.find(e=>e.id==this.userData.id);o&&(this.$set(o,"userids",this.userData.userids),this.$set(o,"usertype",this.userData.usertype),this.$set(o,"userlimit",this.userData.userlimit))})},onName(t){$A.modalInput({value:t.name,title:"\u4FEE\u6539\u540D\u79F0",placeholder:"\u8BF7\u8F93\u5165\u6D41\u7A0B\u540D\u79F0",onOk:o=>{if(!o)return"\u8BF7\u8F93\u5165\u6D41\u7A0B\u540D\u79F0";this.$set(t,"name",o)}})},onRemove(t){this.list.some(o=>{let e=o.project_flow_item.findIndex(({id:n})=>n==t.id);e>-1&&o.project_flow_item.splice(e,1)})},onTurns(t){this.$set(t,"turns",t.turns.sort())},onAdd(t){$A.modalInput({title:"\u6DFB\u52A0\u72B6\u6001",placeholder:"\u8BF7\u8F93\u5165\u72B6\u6001\u540D\u79F0",onOk:o=>{if(!o)return"\u8BF7\u8F93\u5165\u72B6\u6001\u540D\u79F0";const e=$A.randNum(1e5,999999)*-1,n=t.project_flow_item.map(({id:a})=>a);t.project_flow_item.push({id:e,name:o,status:"end",turns:n,userids:[],usertype:"add",userlimit:0}),t.project_flow_item.some(a=>{a.turns.push(e)})}})},onReduction(t){this.$set(t,"project_flow_item",JSON.parse(t.project_flow_bak))},onSave(t){let o=0;t.project_flow_item.some(e=>{e.sort=o++}),this.loadIng++,this.$store.dispatch("call",{url:"project/flow/save",data:{project_id:this.projectId,flows:t.project_flow_item},method:"post"}).then(({data:e,msg:n})=>{$.messageSuccess(n),e.project_flow_bak=JSON.stringify(e.project_flow_item);let a=this.list.findIndex(({id:r})=>r==t.id);a>-1?this.list.splice(a,1,e):this.list.push(e),this.openIndex="index_"+e.id,this.$nextTick(this.syncScroller)}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.loadIng--})},saveAll(){this.list.some(t=>{this.contrast(t.project_flow_item,t.project_flow_bak)&&this.onSave(t)})}}},Ze={};var Lo=wt(Eo,ko,jo,!1,Ao,null,null,null);function Ao(t){for(let o in Ze)this[o]=Ze[o]}var Oo=function(){return Lo.exports}(),Po=function(){var t=this,o=t.$createElement,e=t._self._c||o;return e("div",{staticClass:"task-deleted"},[e("div",{staticClass:"deleted-title"},[t._v(" "+t._s(t.$L("\u5220\u9664\u7684\u4EFB\u52A1"))+" "),e("div",{staticClass:"title-icon"},[t.loadIng>0?e("Loading"):t._e()],1)]),e("div",{staticClass:"search-container lr"},[e("ul",[e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u4EFB\u52A1\u540D"))+" ")]),e("div",{staticClass:"search-content"},[e("Input",{attrs:{clearable:""},model:{value:t.keys.name,callback:function(n){t.$set(t.keys,"name",n)},expression:"keys.name"}})],1)]),e("li",{staticClass:"search-button"},[e("Tooltip",{attrs:{theme:"light",placement:"right","transfer-class-name":"search-button-clear",transfer:""}},[e("Button",{attrs:{loading:t.loadIng>0,type:"primary",icon:"ios-search"},on:{click:t.onSearch}},[t._v(t._s(t.$L("\u641C\u7D22")))]),e("div",{attrs:{slot:"content"},slot:"content"},[t.keyIs?e("Button",{attrs:{type:"text"},on:{click:function(n){t.keyIs=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88\u7B5B\u9009")))]):e("Button",{attrs:{loading:t.loadIng>0,type:"text"},on:{click:t.getLists}},[t._v(t._s(t.$L("\u5237\u65B0")))])],1)],1)],1)])]),e("div",{staticClass:"table-page-box"},[e("Table",{attrs:{columns:t.columns,data:t.list,loading:t.loadIng>0,"no-data-text":t.$L(t.noText),stripe:""}}),e("Page",{attrs:{total:t.total,current:t.page,"page-size":t.pageSize,disabled:t.loadIng>0,simple:t.windowSmall,"page-size-opts":[10,20,30,50,100],"show-elevator":"","show-sizer":"","show-total":""},on:{"on-change":t.setPage,"on-page-size-change":t.setPageSize}})],1)])},Mo=[];const No={name:"TaskDeleted",props:{projectId:{type:Number,default:0}},data(){return{loadIng:0,keys:{},keyIs:!1,columns:[{title:"ID",key:"id",width:80,render:(t,{row:o,column:e})=>t("TableAction",{props:{column:e,align:"left"}},[t("div",o.id)])},{title:this.$L("\u4EFB\u52A1\u540D\u79F0"),key:"name",minWidth:200,render:(t,{row:o})=>t("AutoTip",o.name)},{title:this.$L("\u521B\u5EFA\u65F6\u95F4"),key:"created_at",width:168},{title:this.$L("\u5220\u9664\u65F6\u95F4"),key:"deleted_at",width:168},{title:this.$L("\u5220\u9664\u4EBA\u5458"),key:"deleted_userid",minWidth:100,render:(t,{row:o})=>o.deleted_userid?t("UserAvatar",{props:{userid:o.deleted_userid,size:24,showName:!0}}):t("span","-")},{title:this.$L("\u64CD\u4F5C"),align:"center",width:100,render:(t,o)=>{const e=[t("Poptip",{props:{title:this.$L("\u4F60\u786E\u5B9A\u8981\u8FD8\u539F\u5220\u9664\u5417\uFF1F"),confirm:!0,transfer:!0,placement:"left",okText:this.$L("\u786E\u5B9A"),cancelText:this.$L("\u53D6\u6D88")},style:{fontSize:"13px",cursor:"pointer",color:"#84C56A"},on:{"on-ok":()=>{this.recovery(o.row)}}},this.$L("\u8FD8\u539F"))];return t("TableAction",{props:{column:o.column}},e)}}],list:[],page:1,pageSize:20,total:0,noText:""}},mounted(){},computed:{...kt(["cacheTasks"])},watch:{projectId:{handler(){this.getLists()},immediate:!0},keyIs(t){t||(this.keys={},this.setPage(1))}},methods:{onSearch(){this.page=1,this.getLists()},getLists(){!this.projectId||(this.loadIng++,this.keyIs=$A.objImplode(this.keys)!="",this.$store.dispatch("call",{url:"project/task/lists",data:{keys:this.keys,project_id:this.projectId,parent_id:-1,deleted:"yes",sorts:{deleted_at:"desc"},page:Math.max(this.page,1),pagesize:Math.max($A.runNum(this.pageSize),10)}}).then(({data:t})=>{this.page=t.current_page,this.total=t.total,this.list=t.data,this.noText="\u6CA1\u6709\u76F8\u5173\u7684\u6570\u636E"}).catch(()=>{this.noText="\u6570\u636E\u52A0\u8F7D\u5931\u8D25"}).finally(t=>{this.loadIng--}))},setPage(t){this.page=t,this.getLists()},setPageSize(t){this.page=1,this.pageSize=t,this.getLists()},recovery(t){this.list=this.list.filter(({id:o})=>o!=t.id),this.loadIng++,this.$store.dispatch("removeTask",{task_id:t.id,type:"recovery"}).then(({msg:o})=>{$A.messageSuccess(o),this.loadIng--,this.getLists(),this.$store.dispatch("openTask",t)}).catch(({msg:o})=>{$A.modalError(o),this.loadIng--,this.getLists()})}}},Qe={};var Fo=wt(No,Po,Mo,!1,Ro,null,null,null);function Ro(t){for(let o in Qe)this[o]=Qe[o]}var Wo=function(){return Fo.exports}(),Bo=function(){var t=this,o=t.$createElement,e=t._self._c||o;return e("div",{staticClass:"common-gantt"},[e("div",{staticClass:"gantt-left",style:{width:t.menuWidth+"px"}},[e("div",{staticClass:"gantt-title"},[e("div",{staticClass:"gantt-title-text"},[t._v(t._s(t.$L("\u4EFB\u52A1\u540D\u79F0")))])]),e("ul",{ref:"ganttItem",staticClass:"gantt-item",on:{scroll:t.itemScrollListener,mouseenter:function(n){t.mouseType="item"}}},t._l(t.lists,function(n,a){return e("li",{key:a},[n.overdue?e("div",{staticClass:"item-overdue",on:{click:function(r){return t.clickItem(n)}}},[t._v(t._s(t.$L("\u5DF2\u8D85\u671F")))]):t._e(),e("div",{staticClass:"item-title",class:{complete:n.complete,overdue:n.overdue},on:{click:function(r){return t.clickItem(n)}}},[t._v(t._s(n.label))]),e("Icon",{staticClass:"item-icon",attrs:{type:"ios-locate-outline"},on:{click:function(r){return t.scrollPosition(a)}}})],1)}),0)]),e("div",{ref:"ganttRight",staticClass:"gantt-right"},[e("div",{staticClass:"gantt-chart"},[e("ul",{staticClass:"gantt-month"},t._l(t.monthNum,function(n,a){return e("li",{key:a,style:t.monthStyle(a)},[e("div",{staticClass:"month-format"},[t._v(t._s(t.monthFormat(a)))])])}),0),e("ul",{staticClass:"gantt-date",on:{mousedown:t.dateMouseDown}},t._l(t.dateNum,function(n,a){return e("li",{key:a,style:t.dateStyle(a)},[e("div",{staticClass:"date-format"},[e("div",{staticClass:"format-day"},[t._v(t._s(t.dateFormat(a,"day")))]),t.dateWidth>46?e("div",{staticClass:"format-week"},[t._v(t._s(t.dateFormat(a,"week")))]):t._e()])])}),0),e("ul",{ref:"ganttTimeline",staticClass:"gantt-timeline",on:{scroll:t.timelineScrollListener,mouseenter:function(n){t.mouseType="timeline"}}},t._l(t.lists,function(n,a){return e("li",{key:a},[e("div",{staticClass:"timeline-item",style:t.itemStyle(n),on:{mousedown:function(r){return t.itemMouseDown(r,n)}}},[e("div",{staticClass:"timeline-title",attrs:{title:n.label}},[t._v(t._s(n.label))]),e("div",{staticClass:"timeline-resizer"})])])}),0)])])])},Uo=[];const zo={name:"GanttView",props:{lists:{type:Array},menuWidth:{type:Number,default:300},itemWidth:{type:Number,default:100}},data(){return{mouseType:"",mouseWidth:0,mouseScaleWidth:0,dateWidth:100,ganttWidth:0,mouseItem:null,mouseBak:{},dateMove:null}},mounted(){this.dateWidth=this.itemWidth,this.$refs.ganttRight.addEventListener("mousewheel",this.handleScroll,!1),document.addEventListener("mousemove",this.itemMouseMove),document.addEventListener("mouseup",this.itemMouseUp),window.addEventListener("resize",this.handleResize,!1),this.handleResize()},beforeDestroy(){this.$refs.ganttRight.removeEventListener("mousewheel",this.handleScroll,!1),document.removeEventListener("mousemove",this.itemMouseMove),document.removeEventListener("mouseup",this.itemMouseUp),window.removeEventListener("resize",this.handleResize,!1)},watch:{itemWidth(t){this.dateWidth=t}},computed:{monthNum(){const{ganttWidth:t,dateWidth:o}=this;return Math.floor(t/o/30)+2},monthStyle(){const{mouseWidth:t,dateWidth:o}=this;return function(e){let n=t==0?0:t/o,a=new Date,r=new Date(a.getFullYear(),a.getMonth(),a.getDate(),0,0,0),s=new Date(r.getTime()+n*864e5),i=new Date(s.getFullYear(),s.getMonth()+1,0,23,59,59),l=(i-s)/1e3/60/60/24,c=o*l;return e>0&&(i=new Date(s.getFullYear(),s.getMonth()+1+e,0),c=i.getDate()*o),{width:c+"px"}}},monthFormat(){const{mouseWidth:t,dateWidth:o}=this;return function(e){let n=t==0?0:t/o,a=new Date,r=new Date(a.getFullYear(),a.getMonth(),a.getDate(),0,0,0),s=new Date(r.getTime()+n*864e5);return e>0&&(s=new Date(s.getFullYear(),s.getMonth()+1+e,0)),$A.formatDate("Y-m",s)}},dateNum(){const{ganttWidth:t,dateWidth:o}=this;return Math.floor(t/o)+2},dateStyle(){const{mouseWidth:t,dateWidth:o}=this;return function(e){const n={};let a=t==0?0:t/o,r=Math.floor(a)+e;a==Math.floor(a)&&r--;let s=t==0?e-1:r,i=new Date(new Date().getTime()+s*864e5);[0,6].indexOf(i.getDay())!==-1&&(n.backgroundColor="#f9fafb");let l=o;return e==0&&(l=Math.abs((t%l-l)%l)),n.width=l+"px",n}},dateFormat(){const{mouseWidth:t,dateWidth:o}=this;return function(e,n){let a=t==0?0:t/o,r=Math.floor(a)+e;a==Math.floor(a)&&r--;let s=t==0?e-1:r,i=new Date(new Date().getTime()+s*864e5);return n=="day"?i.getDate():n=="week"?this.$L(`\u661F\u671F${"\u65E5\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D".charAt(i.getDay())}`):i}},itemStyle(){const{mouseWidth:t,dateWidth:o,ganttWidth:e}=this;return function(n){const{start:a,end:r}=n.time,{style:s,moveX:i,moveW:l}=n;let c=new Date,d=new Date(c.getFullYear(),c.getMonth(),c.getDate(),0,0,0).getTime(),u=(a-d)/1e3/60/60/24,f=(r-d)/1e3/60/60/24,v=o*u+t*-1,h=o*(f-u);typeof i=="number"&&(v+=i),typeof l=="number"&&(h+=l);const m={left:Math.min(Math.max(v,h*-1.2),e*1.2).toFixed(2)+"px",width:h.toFixed(2)+"px"};return v<0&&Math.abs(v)e&&vo.scrollHeight-o.clientHeight&&(e=o.scrollHeight-o.clientHeight),o.scrollTop!=e&&(this.mouseType="timeline",o.scrollTop=e)}t.deltaX!=0&&(this.mouseWidth+=t.deltaX,this.mouseScaleWidth+=t.deltaX*(100/this.dateWidth))},handleResize(){this.ganttWidth=this.$refs.ganttTimeline.clientWidth},dateMouseDown(t){t.preventDefault(),this.mouseItem=null,this.dateMove={clientX:t.clientX}},itemMouseDown(t,o){t.preventDefault();let e="moveX";t.target.className=="timeline-resizer"&&(e="moveW"),typeof o[e]!="number"&&this.$set(o,e,0),this.mouseBak={type:e,clientX:t.clientX,value:o[e]},this.mouseItem=o,this.dateMove=null},itemMouseMove(t){if(this.mouseItem!=null){t.preventDefault();const o=this.mouseBak.value+(t.clientX-this.mouseBak.clientX);if(this.mouseBak.type==="moveW"){const e=864e5/this.dateWidth,{start:n,end:a}=this.mouseItem.time;let r=o*e;if(a+r-n<=0)return}this.$set(this.mouseItem,this.mouseBak.type,o)}else if(this.dateMove!=null){t.preventDefault();let o=(this.dateMove.clientX-t.clientX)*5;this.dateMove.clientX=t.clientX,this.mouseWidth+=o,this.mouseScaleWidth+=o*(100/this.dateWidth)}},itemMouseUp(t){if(this.mouseItem!=null){const{start:o,end:e}=this.mouseItem.time;let n=!1,a=864e5/this.dateWidth;if(typeof this.mouseItem.moveX=="number"&&this.mouseItem.moveX!=0){let r=this.mouseItem.moveX*a;this.$set(this.mouseItem.time,"start",o+r),this.$set(this.mouseItem.time,"end",e+r),this.$set(this.mouseItem,"moveX",0),n=!0}if(typeof this.mouseItem.moveW=="number"&&this.mouseItem.moveW!=0){let r=this.mouseItem.moveW*a;this.$set(this.mouseItem.time,"end",e+r),this.$set(this.mouseItem,"moveW",0),n=!0}n?this.$emit("on-change",this.mouseItem):t.target.className=="timeline-title"&&this.clickItem(this.mouseItem),this.mouseItem=null}else this.dateMove!=null&&(this.dateMove=null)},scrollPosition(t){let o=new Date,e=new Date(o.getFullYear(),o.getMonth(),o.getDate(),0,0,0),n=864e5/this.dateWidth,a=(this.lists[t].time.start-e)/n-this.dateWidth-this.mouseWidth;this.mouseWidth+=a,this.mouseScaleWidth+=a*(100/this.dateWidth)},clickItem(t){this.$emit("on-click",t)}}},qe={};var Go=wt(zo,Bo,Uo,!1,Ho,null,null,null);function Ho(t){for(let o in qe)this[o]=qe[o]}var Xo=function(){return Go.exports}(),Yo=function(){var t=this,o=t.$createElement,e=t._self._c||o;return e("div",{staticClass:"project-gstc-gantt"},[e("GanttView",{attrs:{lists:t.lists,menuWidth:t.menuWidth,itemWidth:80},on:{"on-change":t.onChange,"on-click":t.onClick}}),e("Dropdown",{staticClass:"project-gstc-dropdown-filtr",style:t.dropStyle,attrs:{trigger:"click"},on:{"on-click":t.onSwitchColumn}},[e("Icon",{staticClass:"project-gstc-dropdown-icon",class:{filtr:t.filtrProjectId>0},attrs:{type:"md-funnel"}}),e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[e("DropdownItem",{class:{"dropdown-active":t.filtrProjectId==0},attrs:{name:0}},[t._v(t._s(t.$L("\u5168\u90E8")))]),t._l(t.projectColumn,function(n,a){return e("DropdownItem",{key:a,class:{"dropdown-active":t.filtrProjectId==n.id},attrs:{name:n.id}},[t._v(" "+t._s(n.name)+" "),n.tasks?e("span",[t._v("("+t._s(t.filtrLength(n.tasks))+")")]):t._e()])})],2)],1),e("div",{staticClass:"project-gstc-edit",class:{info:t.editShowInfo,visible:t.editData&&t.editData.length>0}},[e("div",{staticClass:"project-gstc-edit-info"},[e("Table",{attrs:{size:"small","max-height":"600",columns:t.editColumns,data:t.editData}}),e("div",{staticClass:"project-gstc-edit-btns"},[e("Button",{attrs:{loading:t.editLoad>0,size:"small",type:"text"},on:{click:function(n){return t.editSubmit(!1)}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{loading:t.editLoad>0,size:"small",type:"primary"},on:{click:function(n){return t.editSubmit(!0)}}},[t._v(t._s(t.$L("\u4FDD\u5B58")))]),e("Icon",{staticClass:"zoom",attrs:{type:"md-arrow-dropright"},on:{click:function(n){t.editShowInfo=!1}}})],1)],1),e("div",{staticClass:"project-gstc-edit-small"},[e("div",{staticClass:"project-gstc-edit-text",on:{click:function(n){t.editShowInfo=!0}}},[t._v(t._s(t.$L("\u672A\u4FDD\u5B58\u8BA1\u5212\u65F6\u95F4"))+": "),t.editData?e("span",[t._v(t._s(t.editData.length))]):t._e()]),e("Button",{attrs:{loading:t.editLoad>0,size:"small",type:"text"},on:{click:function(n){return t.editSubmit(!1)}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{loading:t.editLoad>0,size:"small",type:"primary"},on:{click:function(n){return t.editSubmit(!0)}}},[t._v(t._s(t.$L("\u4FDD\u5B58")))])],1)])],1)},Vo=[];const Ko={name:"ProjectGantt",components:{GanttView:Xo},props:{projectColumn:{default:[]},flowInfo:{default:{}}},data(){return{lists:[],filtrProjectId:0,editColumns:[{title:this.$L("\u4EFB\u52A1\u540D\u79F0"),key:"label",minWidth:150,ellipsis:!0},{title:this.$L("\u539F\u8BA1\u5212\u65F6\u95F4"),minWidth:135,align:"center",render:(t,{row:o})=>o.notime===!0?t("span","-"):t("div",{style:{}},[t("div",$A.formatDate("Y-m-d H:i",Math.round(o.baktime.start/1e3))),t("div",$A.formatDate("Y-m-d H:i",Math.round(o.baktime.end/1e3)))])},{title:this.$L("\u65B0\u8BA1\u5212\u65F6\u95F4"),minWidth:135,align:"center",render:(t,{row:o})=>t("div",{style:{}},[t("div",$A.formatDate("Y-m-d H:i",Math.round(o.newTime.start/1e3))),t("div",$A.formatDate("Y-m-d H:i",Math.round(o.newTime.end/1e3)))])}],editData:[],editLoad:0,editShowInfo:!1}},mounted(){this.initData()},computed:{...kt(["taskPriority"]),...Ae(["projectData"]),menuWidth(){return this.windowWidth<1440?180:260},dropStyle(){return this.windowWidth<1440?{left:"142px"}:{}},completedTask(){return this.projectData.cacheParameter.completedTask}},watch:{projectColumn:{handler(){this.initData()},deep:!0},flowInfo:{handler(){this.initData()},deep:!0},completedTask(){this.initData()}},methods:{initData(){this.lists=[],this.projectColumn&&this.projectColumn.some(this.checkAdd)},flowTask(t){return $A.leftExists(this.flowInfo.value,"user:")&&!t.task_user.find(({userid:o,owner:e})=>o===this.flowInfo.userid&&e)?!0:this.flowInfo.value>0&&t.flow_item_id!==this.flowInfo.value},filtrLength(t){return t.filter(o=>!(o.complete_at&&!this.completedTask||this.flowTask(o))).length},checkAdd(t){this.filtrProjectId>0&&t.id!=this.filtrProjectId||t.tasks&&t.tasks.some(o=>{let e=!o.start_at||!o.end_at,n=this.getTimeObj(o),a=n.start,r=n.end;if(o.complete_at&&!this.completedTask||this.flowTask(o))return!1;let s="#058ce4";this.taskPriority.some(d=>{if(d.priority===o.p_level)return s=d.color,!0});let i={start:a,end:r},l=$A.cloneJSON(i),c=this.editData.find(({id:d})=>d==o.id);c&&(i=$A.cloneJSON(c.newTime)),this.lists.push({id:o.id,label:o.name,complete:o.complete_at,overdue:o.overdue,time:i,notime:e,baktime:l,style:{background:s}})})},onChange(t){const{time:o,baktime:e}=t;if(Math.abs(e.end-o.end)>1e3||Math.abs(e.start-o.start)>1e3){let n=this.editData.find(({id:a})=>a==t.id);n?n.newTime=o:this.editData.push({id:t.id,label:t.label,notime:t.notime,baktime:t.baktime,newTime:o})}},onClick(t){this.$store.dispatch("openTask",t)},editSubmit(t){this.editData&&this.editData.forEach(o=>{let e=this.lists.find(({id:n})=>n==o.id);if(t){this.editLoad++;let n=$A.formatDate("Y-m-d H:i",Math.round(o.newTime.start/1e3)),a=$A.formatDate("Y-m-d H:i",Math.round(o.newTime.end/1e3)),r={task_id:o.id,times:[n,a]};this.$store.dispatch("taskUpdate",r).then(({msg:s})=>{this.editLoad--,this.editLoad===0&&$A.messageSuccess(s),e&&this.$set(e,"baktime",$A.cloneJSON(e.time))}).catch(({msg:s})=>{this.editLoad--,this.editLoad===0&&$A.modalError(s),e&&this.$set(e,"time",$A.cloneJSON(e.baktime))})}else e&&this.$set(e,"time",$A.cloneJSON(e.baktime))}),this.editData=[]},getTimeObj(t){let o=$A.Time(t.start_at)||$A.Time(t.created_at),e=$A.Time(t.end_at)||$A.Time(t.created_at)+86400;return e==o&&(e=Math.round(new Date($A.formatDate("Y-m-d 23:59:59",e)).getTime()/1e3)),e=Math.max(e,o+60),o*=1e3,e*=1e3,{start:o,end:e}},onSwitchColumn(t){this.filtrProjectId=$A.runNum(t),this.initData()}}},tn={};var Jo=wt(Ko,Yo,Vo,!1,Zo,null,null,null);function Zo(t){for(let o in tn)this[o]=tn[o]}var Qo=function(){return Jo.exports}(),qo=function(){var t=this,o=t.$createElement,e=t._self._c||o;return e("div",{staticClass:"project-panel",class:[t.tabTypeActive]},[e("PageTitle",{attrs:{title:t.projectData.name}}),e("div",{staticClass:"project-titbox"},[e("div",{staticClass:"project-title"},[e("div",{staticClass:"project-back",on:{click:t.onBack}},[e("i",{staticClass:"taskfont"},[t._v("\uE676")])]),e("h1",{on:{click:t.showName}},[t._v(t._s(t.projectData.name))]),t.loading?e("div",{staticClass:"project-load"},[e("Loading")],1):t._e()]),e("ul",{staticClass:"project-icons"},[e("li",{staticClass:"project-avatar",class:{"cursor-default":t.projectData.owner_userid!==t.userId},on:{click:function(n){return t.projectDropdown("user")}}},[e("ul",[e("li",[e("UserAvatar",{attrs:{userid:t.projectData.owner_userid,size:36,borderWitdh:2,openDelay:0}},[e("p",[t._v(t._s(t.$L("\u9879\u76EE\u8D1F\u8D23\u4EBA")))])]),(t.windowWidth<=980||t.projectData.cacheParameter.chat)&&t.projectUser.length>0?e("Badge",{attrs:{type:"normal","overflow-count":999,count:t.projectData.project_user.length}}):t._e()],1),t._l(t.projectUser,function(n){return!(t.windowWidth<=980||t.projectData.cacheParameter.chat)&&t.projectUser.length>0?[n.userid===-1?e("li",{staticClass:"more"},[e("ETooltip",{attrs:{disabled:t.windowSmall||t.$isEEUiApp,content:t.$L("\u5171"+t.projectData.project_user.length+"\u4E2A\u6210\u5458")}},[e("Icon",{attrs:{type:"ios-more"}})],1)],1):e("li",[e("UserAvatar",{attrs:{userid:n.userid,size:36,borderWitdh:2,openDelay:0}})],1)]:t._e()})],2)]),e("li",{staticClass:"project-icon",on:{click:function(n){return t.addTaskOpen(0)}}},[e("ETooltip",{attrs:{disabled:t.windowSmall||t.$isEEUiApp,content:t.$L("\u6DFB\u52A0\u4EFB\u52A1")}},[e("Icon",{staticClass:"menu-icon",attrs:{type:"md-add"}})],1)],1),e("li",{class:["project-icon",t.searchText!=""?"active":""]},[e("Tooltip",{attrs:{always:t.searchText!="",theme:"light",rawIndex:10},on:{"on-popper-show":t.searchFocus}},[e("Icon",{staticClass:"menu-icon",attrs:{type:"ios-search"},on:{click:t.searchFocus}}),e("div",{attrs:{slot:"content"},slot:"content"},[e("Input",{ref:"searchInput",staticClass:"search-input",attrs:{placeholder:t.$L("\u540D\u79F0\u3001\u63CF\u8FF0..."),clearable:""},model:{value:t.searchText,callback:function(n){t.searchText=n},expression:"searchText"}})],1)],1)],1),e("li",{class:["project-icon",t.windowLarge&&t.projectData.cacheParameter.chat?"active":""],on:{click:function(n){return t.toggleParameter("chat")}}},[e("Icon",{staticClass:"menu-icon",attrs:{type:"ios-chatbubbles"}}),e("Badge",{staticClass:"menu-badge",attrs:{"overflow-count":999,count:t.msgUnread}})],1),e("li",{staticClass:"project-icon"},[e("EDropdown",{attrs:{trigger:"click",transfer:""},on:{command:t.projectDropdown}},[e("Icon",{staticClass:"menu-icon",attrs:{type:"ios-more"}}),t.projectData.owner_userid===t.userId?e("EDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},[e("EDropdownItem",{attrs:{command:"setting"}},[t._v(t._s(t.$L("\u9879\u76EE\u8BBE\u7F6E")))]),e("EDropdownItem",{attrs:{command:"workflow"}},[t._v(t._s(t.$L("\u5DE5\u4F5C\u6D41\u8BBE\u7F6E")))]),e("EDropdownItem",{attrs:{command:"user",divided:""}},[t._v(t._s(t.$L("\u6210\u5458\u7BA1\u7406")))]),e("EDropdownItem",{attrs:{command:"invite"}},[t._v(t._s(t.$L("\u9080\u8BF7\u94FE\u63A5")))]),e("EDropdownItem",{attrs:{command:"log",divided:""}},[t._v(t._s(t.$L("\u9879\u76EE\u52A8\u6001")))]),e("EDropdownItem",{attrs:{command:"archived_task"}},[t._v(t._s(t.$L("\u5DF2\u5F52\u6863\u4EFB\u52A1")))]),e("EDropdownItem",{attrs:{command:"deleted_task"}},[t._v(t._s(t.$L("\u5DF2\u5220\u9664\u4EFB\u52A1")))]),e("EDropdownItem",{attrs:{command:"transfer",divided:""}},[t._v(t._s(t.$L("\u79FB\u4EA4\u9879\u76EE")))]),e("EDropdownItem",{attrs:{command:"archived"}},[t._v(t._s(t.$L("\u5F52\u6863\u9879\u76EE")))]),e("EDropdownItem",{staticStyle:{color:"#f40"},attrs:{command:"delete"}},[t._v(t._s(t.$L("\u5220\u9664\u9879\u76EE")))])],1):e("EDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},[e("EDropdownItem",{attrs:{command:"log"}},[t._v(t._s(t.$L("\u9879\u76EE\u52A8\u6001")))]),e("EDropdownItem",{attrs:{command:"archived_task"}},[t._v(t._s(t.$L("\u5DF2\u5F52\u6863\u4EFB\u52A1")))]),e("EDropdownItem",{attrs:{command:"deleted_task"}},[t._v(t._s(t.$L("\u5DF2\u5220\u9664\u4EFB\u52A1")))]),e("EDropdownItem",{staticStyle:{color:"#f40"},attrs:{command:"exit",divided:""}},[t._v(t._s(t.$L("\u9000\u51FA\u9879\u76EE")))])],1)],1)],1)])]),e("div",{staticClass:"project-subbox"},[e("div",{staticClass:"project-subtitle",on:{click:t.showDesc}},[t._v(t._s(t.projectData.desc))]),e("div",{staticClass:"project-switch"},[t.completedCount>0?e("div",{staticClass:"project-checkbox"},[e("Checkbox",{attrs:{value:t.projectData.cacheParameter.completedTask},on:{"on-change":t.toggleCompleted}},[t._v(t._s(t.$L("\u663E\u793A\u5DF2\u5B8C\u6210")))])],1):t._e(),t.flowList.length>0?e("div",{staticClass:"project-select"},[e("Cascader",{ref:"flow",attrs:{data:t.flowData,"transfer-class-name":"project-panel-flow-cascader",transfer:""},on:{"on-change":t.flowChange}},[e("span",{class:`project-flow ${t.flowInfo.status||""}`},[t._v(t._s(t.flowTitle))])])],1):t._e(),e("div",{staticClass:"project-switch-button"},[e("div",{staticClass:"slider",style:t.tabTypeStyle}),e("div",{class:{active:t.tabTypeActive==="column"},on:{click:function(n){return t.tabTypeChange("column")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE60C")])]),e("div",{class:{active:t.tabTypeActive==="table"},on:{click:function(n){return t.tabTypeChange("table")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE66A")])]),e("div",{class:{active:t.tabTypeActive==="gantt"},on:{click:function(n){return t.tabTypeChange("gantt")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE797")])])])])]),t.tabTypeActive==="column"?e("div",{staticClass:"project-column"},[e("Draggable",{staticClass:"column-list",attrs:{list:t.columnList,animation:150,disabled:t.sortDisabled||t.windowSmall||t.$isEEUiApp,tag:"ul",draggable:".column-item"},on:{sort:function(n){return t.sortUpdate(!0)}}},[t._l(t.columnList,function(n){return e("li",{staticClass:"column-item"},[e("div",{class:["column-head",n.color?"custom-color":""],style:n.color?{backgroundColor:n.color}:{}},[e("div",{staticClass:"column-head-title"},[e("AutoTip",[t._v(t._s(n.name))]),e("em",[t._v("("+t._s(t.panelTask(n.tasks).length)+")")])],1),e("div",{staticClass:"column-head-icon"},[t.columnLoad[n.id]===!0?e("div",{staticClass:"loading"},[e("Loading")],1):e("EDropdown",{attrs:{trigger:"click",size:"small"},on:{command:function(a){return t.dropColumn(n,a)}}},[e("Icon",{attrs:{type:"ios-more"}}),e("EDropdownMenu",{staticClass:"project-panel-more-dropdown-menu",attrs:{slot:"dropdown"},slot:"dropdown"},[e("EDropdownItem",{attrs:{command:"title"}},[e("div",{staticClass:"item"},[e("Icon",{attrs:{type:"md-create"}}),t._v(t._s(t.$L("\u4FEE\u6539"))+" ")],1)]),e("EDropdownItem",{attrs:{command:"remove"}},[e("div",{staticClass:"item"},[e("Icon",{attrs:{type:"md-trash"}}),t._v(t._s(t.$L("\u5220\u9664"))+" ")],1)]),t._l(t.$store.state.columnColorList,function(a,r){return e("EDropdownItem",{key:r,attrs:{divided:r==0,command:a}},[e("div",{staticClass:"item"},[e("i",{staticClass:"taskfont",style:{color:a.color},domProps:{innerHTML:t._s(a.color==n.color?"":"")}}),t._v(t._s(t.$L(a.name))+" ")])])})],2)],1),e("Icon",{staticClass:"last",attrs:{type:"md-add"},on:{click:function(a){return t.addTopShow(n.id,!0)}}})],1)]),e("div",{ref:"column_"+n.id,refInFor:!0,staticClass:"column-task scrollbar-overlay"},[t.columnTopShow[n.id]?e("div",{staticClass:"task-item additem"},[e("TaskAddSimple",{attrs:{"column-id":n.id,"project-id":t.projectId,"add-top":!0,"auto-active":""},on:{"on-close":function(a){return t.addTopShow(n.id,!1)},"on-priority":t.addTaskOpen}})],1):t._e(),e("Draggable",{staticClass:"task-list",attrs:{list:n.tasks,animation:150,disabled:t.sortDisabled||t.windowSmall||t.$isEEUiApp,draggable:".task-draggable",filter:".complete",group:"task"},on:{sort:t.sortUpdate,remove:t.sortUpdate}},[t._l(n.tasks,function(a){return e("div",{class:["task-item task-draggable",a.complete_at?"complete":"",t.taskIsHidden(a)?"hidden":""],style:a.color?{backgroundColor:a.color}:{},on:{click:function(r){return t.openTask(a)}}},[e("div",{class:["task-head",a.desc?"has-desc":""]},[e("div",{staticClass:"task-title"},[a.flow_item_name?e("span",{class:a.flow_item_status,on:{click:function(r){return r.stopPropagation(),t.openMenu(r,a)}}},[t._v(t._s(a.flow_item_name))]):t._e(),e("pre",[t._v(t._s(a.name))])]),e("div",{staticClass:"task-menu",on:{click:function(r){r.stopPropagation()}}},[e("TaskMenu",{ref:`taskMenu_${a.id}`,refInFor:!0,attrs:{task:a,icon:"ios-more"}})],1)]),a.desc?e("div",{staticClass:"task-desc"},[e("pre",{domProps:{innerHTML:t._s(a.desc)}})]):t._e(),a.task_tag.length>0?e("div",{staticClass:"task-tags"},t._l(a.task_tag,function(r,s){return e("Tag",{key:s,attrs:{color:r.color}},[t._v(t._s(r.name))])}),1):t._e(),e("div",{staticClass:"task-users"},[e("ul",[t._l(t.ownerUser(a.task_user),function(r,s){return e("li",{key:s},[e("UserAvatar",{attrs:{userid:r.userid,size:"32",borderWitdh:2,borderColor:a.color}})],1)}),t.ownerUser(a.task_user).length===0?e("li",{staticClass:"no-owner"},[e("Button",{attrs:{type:"primary",size:"small",ghost:""},on:{click:function(r){return r.stopPropagation(),t.openTask(a,!0)}}},[t._v(t._s(t.$L("\u9886\u53D6\u4EFB\u52A1")))])],1):t._e()],2),a.file_num>0?e("div",{staticClass:"task-icon"},[t._v(t._s(a.file_num)),e("Icon",{attrs:{type:"ios-link-outline"}})],1):t._e(),a.msg_num>0?e("div",{staticClass:"task-icon"},[t._v(t._s(a.msg_num)),e("Icon",{attrs:{type:"ios-chatbubbles-outline"}})],1):t._e()]),e("div",{staticClass:"task-progress"},[a.sub_num>0?e("div",{staticClass:"task-sub-num"},[t._v(t._s(a.sub_complete)+"/"+t._s(a.sub_num))]):t._e(),e("Progress",{attrs:{percent:a.percent,"stroke-width":6}}),a.end_at?e("ETooltip",{class:["task-time",a.today?"today":"",a.overdue?"overdue":""],attrs:{disabled:t.windowSmall||t.$isEEUiApp,"open-delay":600,content:a.end_at}},[a.complete_at?t._e():e("div",[e("i",{staticClass:"taskfont"},[t._v("\uE71D")]),t._v(t._s(t.expiresFormat(a.end_at)))])]):t._e()],1),a.p_name?e("em",{staticClass:"priority-color",style:{backgroundColor:a.p_color}}):t._e()])}),e("div",{staticClass:"task-item additem"},[e("TaskAddSimple",{attrs:{"column-id":n.id,"project-id":t.projectId},on:{"on-priority":t.addTaskOpen}})],1)],2)],1)])}),e("li",{class:["add-column",t.addColumnShow?"show-input":""]},[e("div",{staticClass:"add-column-text",on:{click:t.addColumnOpen}},[e("Icon",{attrs:{type:"md-add"}}),t._v(t._s(t.$L("\u6DFB\u52A0\u5217\u8868"))+" ")],1),e("div",{staticClass:"add-column-input"},[e("Input",{ref:"addColumnName",attrs:{placeholder:t.$L("\u5217\u8868\u540D\u79F0\uFF0C\u56DE\u8F66\u521B\u5EFA"),clearable:""},on:{"on-blur":t.addColumnBlur,"on-enter":t.addColumnSubmit,"on-clear":function(n){t.addColumnShow=!1}},model:{value:t.addColumnName,callback:function(n){t.addColumnName=n},expression:"addColumnName"}})],1)])],2)],1):t.tabTypeActive==="table"?e("div",{staticClass:"project-table scrollbar-overlay"},[e("div",{staticClass:"project-table-head"},[e("Row",{staticClass:"task-row"},[e("Col",{attrs:{span:"12"}},[t._v("# "+t._s(t.$L("\u4EFB\u52A1\u540D\u79F0")))]),e("Col",{attrs:{span:"3"}},[t._v(t._s(t.$L("\u5217\u8868")))]),e("Col",{attrs:{span:"3"}},[e("div",{staticClass:"sort",on:{click:function(n){return t.onSort("level")}}},[t._v(" "+t._s(t.$L("\u4F18\u5148\u7EA7"))+" "),e("div",{staticClass:"task-sort"},[e("Icon",{class:{on:t.sortField=="level"&&t.sortType=="asc"},attrs:{type:"md-arrow-dropup"}}),e("Icon",{class:{on:t.sortField=="level"&&t.sortType=="desc"},attrs:{type:"md-arrow-dropdown"}})],1)])]),e("Col",{attrs:{span:"3"}},[t._v(t._s(t.$L("\u8D1F\u8D23\u4EBA")))]),e("Col",{attrs:{span:"3"}},[e("div",{staticClass:"sort",on:{click:function(n){return t.onSort("end_at")}}},[t._v(" "+t._s(t.$L("\u5230\u671F\u65F6\u95F4"))+" "),e("div",{staticClass:"task-sort"},[e("Icon",{class:{on:t.sortField=="end_at"&&t.sortType=="asc"},attrs:{type:"md-arrow-dropup"}}),e("Icon",{class:{on:t.sortField=="end_at"&&t.sortType=="desc"},attrs:{type:"md-arrow-dropdown"}})],1)])])],1)],1),e("div",{class:["project-table-body",t.projectData.cacheParameter.showMy?"":"project-table-hide"]},[e("Row",{staticClass:"task-row"},[e("Col",{staticClass:"row-title",attrs:{span:"12"}},[e("i",{staticClass:"taskfont",on:{click:function(n){return t.toggleParameter("showMy")}}},[t._v("\uE689")]),e("div",{staticClass:"row-h1"},[t._v(t._s(t.$L("\u6211\u7684\u4EFB\u52A1")))]),e("div",{staticClass:"row-num"},[t._v("("+t._s(t.myList.length)+")")])]),e("Col",{attrs:{span:"3"}}),e("Col",{attrs:{span:"3"}}),e("Col",{attrs:{span:"3"}}),e("Col",{attrs:{span:"3"}})],1),t.projectData.cacheParameter.showMy?e("TaskRow",{attrs:{list:t.transforTasks(t.myList),"open-key":"my","fast-add-task":""},on:{"on-priority":t.addTaskOpen}}):t._e()],1),t.helpList.length?e("div",{class:["project-table-body",t.projectData.cacheParameter.showHelp?"":"project-table-hide"]},[e("Row",{staticClass:"task-row"},[e("Col",{staticClass:"row-title",attrs:{span:"12"}},[e("i",{staticClass:"taskfont",on:{click:function(n){return t.toggleParameter("showHelp")}}},[t._v("\uE689")]),e("div",{staticClass:"row-h1"},[t._v(t._s(t.$L("\u534F\u52A9\u7684\u4EFB\u52A1")))]),e("div",{staticClass:"row-num"},[t._v("("+t._s(t.helpList.length)+")")])]),e("Col",{attrs:{span:"3"}}),e("Col",{attrs:{span:"3"}}),e("Col",{attrs:{span:"3"}}),e("Col",{attrs:{span:"3"}})],1),t.projectData.cacheParameter.showHelp?e("TaskRow",{attrs:{list:t.helpList,"open-key":"help"},on:{"on-priority":t.addTaskOpen}}):t._e()],1):t._e(),t.projectData.task_num>0?e("div",{class:["project-table-body",t.projectData.cacheParameter.showUndone?"":"project-table-hide"]},[e("Row",{staticClass:"task-row"},[e("Col",{staticClass:"row-title",attrs:{span:"12"}},[e("i",{staticClass:"taskfont",on:{click:function(n){return t.toggleParameter("showUndone")}}},[t._v("\uE689")]),e("div",{staticClass:"row-h1"},[t._v(t._s(t.$L("\u672A\u5B8C\u6210\u4EFB\u52A1")))]),e("div",{staticClass:"row-num"},[t._v("("+t._s(t.unList.length)+")")])]),e("Col",{attrs:{span:"3"}}),e("Col",{attrs:{span:"3"}}),e("Col",{attrs:{span:"3"}}),e("Col",{attrs:{span:"3"}})],1),t.projectData.cacheParameter.showUndone?e("TaskRow",{attrs:{list:t.unList,"open-key":"undone"},on:{"on-priority":t.addTaskOpen}}):t._e()],1):t._e(),t.projectData.task_num>0?e("div",{class:["project-table-body",t.projectData.cacheParameter.showCompleted?"":"project-table-hide"]},[e("Row",{staticClass:"task-row"},[e("Col",{staticClass:"row-title",attrs:{span:"12"}},[e("i",{staticClass:"taskfont",on:{click:function(n){return t.toggleParameter("showCompleted")}}},[t._v("\uE689")]),e("div",{staticClass:"row-h1"},[t._v(t._s(t.$L("\u5DF2\u5B8C\u6210\u4EFB\u52A1")))]),e("div",{staticClass:"row-num"},[t._v("("+t._s(t.completedList.length)+")")])]),e("Col",{attrs:{span:"3"}}),e("Col",{attrs:{span:"3"}}),e("Col",{attrs:{span:"3"}}),e("Col",{attrs:{span:"3"}},[t._v(t._s(t.projectData.task_num>0&&t.projectData.cacheParameter.showCompleted?t.$L("\u5B8C\u6210\u65F6\u95F4"):""))])],1),t.projectData.cacheParameter.showCompleted?e("TaskRow",{attrs:{list:t.completedList,"open-key":"completed",showCompleteAt:""},on:{"on-priority":t.addTaskOpen}}):t._e()],1):t._e()]):t.tabTypeActive==="gantt"?e("div",{staticClass:"project-gantt"},[e("ProjectGantt",{attrs:{projectColumn:t.columnList,flowInfo:t.flowInfo}})],1):t._e(),e("Modal",{attrs:{title:t.$L("\u9879\u76EE\u8BBE\u7F6E"),"mask-closable":!1},model:{value:t.settingShow,callback:function(n){t.settingShow=n},expression:"settingShow"}},[e("Form",{attrs:{model:t.settingData,"label-width":"auto"},nativeOn:{submit:function(n){n.preventDefault()}}},[e("FormItem",{attrs:{prop:"name",label:t.$L("\u9879\u76EE\u540D\u79F0")}},[e("Input",{ref:"projectName",attrs:{type:"text",maxlength:32,placeholder:t.$L("\u5FC5\u586B")},model:{value:t.settingData.name,callback:function(n){t.$set(t.settingData,"name",n)},expression:"settingData.name"}})],1),e("FormItem",{attrs:{prop:"desc",label:t.$L("\u9879\u76EE\u4ECB\u7ECD")}},[e("Input",{ref:"projectDesc",attrs:{type:"textarea",autosize:{minRows:3,maxRows:5},maxlength:255,placeholder:t.$L("\u9009\u586B")},model:{value:t.settingData.desc,callback:function(n){t.$set(t.settingData,"desc",n)},expression:"settingData.desc"}})],1)],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(n){t.settingShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.settingLoad>0},on:{click:t.onSetting}},[t._v(t._s(t.$L("\u4FEE\u6539")))])],1)],1),e("Modal",{attrs:{title:t.$L("\u6210\u5458\u7BA1\u7406"),"mask-closable":!1},model:{value:t.userShow,callback:function(n){t.userShow=n},expression:"userShow"}},[e("Form",{attrs:{model:t.userData,"label-width":"auto"},nativeOn:{submit:function(n){n.preventDefault()}}},[e("FormItem",{attrs:{prop:"userids",label:t.$L("\u9879\u76EE\u6210\u5458")}},[e("UserInput",{attrs:{uncancelable:t.userData.uncancelable,"multiple-max":100,placeholder:t.$L("\u9009\u62E9\u9879\u76EE\u6210\u5458")},model:{value:t.userData.userids,callback:function(n){t.$set(t.userData,"userids",n)},expression:"userData.userids"}})],1)],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(n){t.userShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),t.userWaitRemove.length>0?e("Poptip",{staticStyle:{"margin-left":"8px"},attrs:{confirm:"",placement:"bottom","ok-text":t.$L("\u786E\u5B9A"),"cancel-text":t.$L("\u53D6\u6D88"),transfer:""},on:{"on-ok":t.onUser}},[e("div",{attrs:{slot:"title"},slot:"title"},[e("p",[e("strong",[t._v(t._s(t.$L("\u79FB\u9664\u6210\u5458\u8D1F\u8D23\u7684\u4EFB\u52A1\u5C06\u53D8\u6210\u65E0\u8D1F\u8D23\u4EBA\uFF0C")))])]),e("p",[t._v(t._s(t.$L("\u6CE8\u610F\u6B64\u64CD\u4F5C\u4E0D\u53EF\u9006\uFF01")))]),e("ul",{staticClass:"project-panel-wait-remove"},[e("li",[t._v(t._s(t.$L("\u5373\u5C06\u79FB\u9664"))+"\uFF1A")]),t._l(t.userWaitRemove,function(n){return e("li",{key:n},[e("UserAvatar",{attrs:{userid:n,size:20,showName:"",tooltipDisabled:""}})],1)})],2)]),e("Button",{attrs:{type:"primary",loading:t.userLoad>0}},[t._v(t._s(t.$L("\u4FDD\u5B58")))])],1):e("Button",{attrs:{type:"primary",loading:t.userLoad>0},on:{click:t.onUser}},[t._v(t._s(t.$L("\u4FDD\u5B58")))])],1)],1),e("Modal",{attrs:{title:t.$L("\u9080\u8BF7\u94FE\u63A5"),"mask-closable":!1},model:{value:t.inviteShow,callback:function(n){t.inviteShow=n},expression:"inviteShow"}},[e("Form",{attrs:{model:t.inviteData,"label-width":"auto"},nativeOn:{submit:function(n){n.preventDefault()}}},[e("FormItem",{attrs:{label:t.$L("\u94FE\u63A5\u5730\u5740")}},[e("Input",{ref:"inviteInput",attrs:{type:"textarea",rows:3,readonly:""},on:{"on-focus":t.inviteFocus},model:{value:t.inviteData.url,callback:function(n){t.$set(t.inviteData,"url",n)},expression:"inviteData.url"}}),e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u53EF\u901A\u8FC7\u6B64\u94FE\u63A5\u76F4\u63A5\u52A0\u5165\u9879\u76EE\u3002")))])],1)],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(n){t.inviteShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Poptip",{staticStyle:{"margin-left":"8px"},attrs:{confirm:"",placement:"bottom","ok-text":t.$L("\u786E\u5B9A"),"cancel-text":t.$L("\u53D6\u6D88"),transfer:""},on:{"on-ok":function(n){return t.inviteGet(!0)}}},[e("div",{attrs:{slot:"title"},slot:"title"},[e("p",[e("strong",[t._v(t._s(t.$L("\u6CE8\u610F\uFF1A\u5237\u65B0\u5C06\u5BFC\u81F4\u539F\u6765\u7684\u9080\u8BF7\u94FE\u63A5\u5931\u6548\uFF01")))])])]),e("Button",{attrs:{type:"primary",loading:t.inviteLoad>0}},[t._v(t._s(t.$L("\u5237\u65B0")))])],1)],1)],1),e("Modal",{attrs:{title:t.$L("\u79FB\u4EA4\u9879\u76EE"),"mask-closable":!1},model:{value:t.transferShow,callback:function(n){t.transferShow=n},expression:"transferShow"}},[e("Form",{attrs:{model:t.transferData,"label-width":"auto"},nativeOn:{submit:function(n){n.preventDefault()}}},[e("FormItem",{attrs:{prop:"owner_userid",label:t.$L("\u9879\u76EE\u8D1F\u8D23\u4EBA")}},[e("UserInput",{attrs:{"multiple-max":1,"max-hidden-select":"",placeholder:t.$L("\u9009\u62E9\u9879\u76EE\u8D1F\u8D23\u4EBA")},model:{value:t.transferData.owner_userid,callback:function(n){t.$set(t.transferData,"owner_userid",n)},expression:"transferData.owner_userid"}})],1)],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(n){t.transferShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.transferLoad>0},on:{click:t.onTransfer}},[t._v(t._s(t.$L("\u79FB\u4EA4")))])],1)],1),e("DrawerOverlay",{attrs:{placement:"right",beforeClose:t.workflowBeforeClose,size:1280},model:{value:t.workflowShow,callback:function(n){t.workflowShow=n},expression:"workflowShow"}},[t.workflowShow?e("ProjectWorkflow",{ref:"workflow",attrs:{"project-id":t.projectId}}):t._e()],1),e("DrawerOverlay",{attrs:{placement:"right",size:768},model:{value:t.logShow,callback:function(n){t.logShow=n},expression:"logShow"}},[t.logShow?e("ProjectLog",{attrs:{"project-id":t.projectId}}):t._e()],1),e("DrawerOverlay",{attrs:{placement:"right",size:900},model:{value:t.archivedTaskShow,callback:function(n){t.archivedTaskShow=n},expression:"archivedTaskShow"}},[t.archivedTaskShow?e("TaskArchived",{attrs:{"project-id":t.projectId}}):t._e()],1),e("DrawerOverlay",{attrs:{placement:"right",size:900},model:{value:t.deletedTaskShow,callback:function(n){t.deletedTaskShow=n},expression:"deletedTaskShow"}},[t.deletedTaskShow?e("TaskDeleted",{attrs:{"project-id":t.projectId}}):t._e()],1)],1)},tr=[];const er={name:"ProjectPanel",components:{TaskMenu:ln,ProjectWorkflow:Oo,DrawerOverlay:In,ProjectLog:Tn,TaskArchived:Io,TaskRow:_o,Draggable:$n,TaskAddSimple:_n,UserInput:sn,TaskPriority:an,TaskDeleted:Wo,ProjectGantt:Qo},data(){return{loading:!1,nowTime:$A.Time(),nowInterval:null,columnLoad:{},columnTopShow:{},sortField:"end_at",sortType:"desc",searchText:"",addColumnShow:!1,addColumnName:"",sortData:[],sortDisabled:!1,settingShow:!1,settingData:{},settingLoad:0,userShow:!1,userData:{},userLoad:0,inviteShow:!1,inviteData:{},inviteLoad:0,transferShow:!1,transferData:{},transferLoad:0,workflowShow:!1,logShow:!1,archivedTaskShow:!1,deletedTaskShow:!1,flowInfo:{},flowList:[]}},mounted(){this.nowInterval=setInterval(()=>{this.nowTime=$A.Time()},1e3)},destroyed(){clearInterval(this.nowInterval)},computed:{...kt(["cacheDialogs","projectId","projectLoad","cacheTasks","cacheColumns","taskCompleteTemps","cacheUserBasic"]),...Ae(["projectData","transforTasks"]),tabTypeActive(){return this.projectData.cacheParameter.menuType},tabTypeStyle(){const t={};switch(this.tabTypeActive){case"column":t.left="0";break;case"table":t.left="33.33%";break;case"gantt":t.left="66.66%";break;default:t.display="none"}return t},userWaitRemove(){const{userids:t,useridbak:o}=this.userData;if(!t)return[];let e=[];return o.some(n=>{t.includes(n)||e.push(n)}),e},msgUnread(){const{cacheDialogs:t,projectData:o}=this,e=t.find(({id:n})=>n===o.dialog_id);return $A.getDialogNum(e)},panelTask(){const{searchText:t,flowInfo:o}=this;return function(e){return this.projectData.cacheParameter.completedTask||(e=e.filter(({complete_at:n})=>!n)),$A.leftExists(o.value,"user:")?e=e.filter(({task_user:n})=>n.find(({userid:a,owner:r})=>a===o.userid&&r)):o.value>0&&(e=e.filter(({flow_item_id:n})=>n===o.value)),t&&(e=e.filter(({name:n,desc:a})=>$A.strExists(`${n} ${a}`,t))),e}},projectUser(){const{projectData:t,windowWidth:o}=this;if(!t.project_user)return[];let e=o>1200?8:3,n=t.project_user.filter(({userid:r})=>r!=t.owner_userid);if(n.length<=e)return n;let a=n.slice(0,e-1);return a.push({userid:-1}),a.push(n[n.length-1]),a},allTask(){const{cacheTasks:t,projectId:o}=this;return t.filter(e=>e.archived_at?!1:e.project_id==o)},columnList(){const{projectId:t,cacheColumns:o,allTask:e}=this,n=o.filter(({project_id:a})=>a==t).sort((a,r)=>a.sort!=r.sort?a.sort-r.sort:a.id-r.id);return n.forEach(a=>{a.tasks=this.transforTasks(e.filter(r=>r.column_id==a.id)).sort((r,s)=>r.complete_at||s.complete_at?$A.Date(r.complete_at)-$A.Date(s.complete_at):r.sort!=s.sort?r.sort-s.sort:r.id-s.id)}),n},myList(){const{allTask:t,taskCompleteTemps:o,sortField:e,sortType:n}=this;let a=t.filter(r=>this.myFilter(r));if(o.length>0){let r=t.filter(s=>o.includes(s.id)&&this.myFilter(s,!1));r.length>0&&(a=$A.cloneJSON(a),a.push(...r))}return a.sort((r,s)=>{if(n=="asc"&&([r,s]=[s,r]),e=="level")return r.p_level-s.p_level;if(e=="end_at")return r.end_at==s.end_at?r.p_level-s.p_level:$A.Date(r.end_at||"2099-12-31 23:59:59")-$A.Date(s.end_at||"2099-12-31 23:59:59")})},helpList(){const{allTask:t,taskCompleteTemps:o,sortField:e,sortType:n}=this;let a=t.filter(r=>this.helpFilter(r));if(o.length>0){let r=t.filter(s=>o.includes(s.id)&&this.helpFilter(s,!1));r.length>0&&(a=$A.cloneJSON(a),a.push(...r))}return a.sort((r,s)=>{if(n=="asc"&&([r,s]=[s,r]),e=="level")return r.p_level-s.p_level;if(e=="end_at")return r.end_at==s.end_at?r.p_level-s.p_level:$A.Date(r.end_at||"2099-12-31 23:59:59")-$A.Date(s.end_at||"2099-12-31 23:59:59")})},unList(){const{allTask:t,searchText:o,sortField:e,sortType:n}=this;return t.filter(r=>r.parent_id>0||this.flowTask(r)||o&&!$A.strExists(r.name,o)&&!$A.strExists(r.desc,o)?!1:!r.complete_at).sort((r,s)=>{if(n=="asc"&&([r,s]=[s,r]),e=="level")return r.p_level-s.p_level;if(e=="end_at")return r.end_at==s.end_at?r.p_level-s.p_level:$A.Date(r.end_at||"2099-12-31 23:59:59")-$A.Date(s.end_at||"2099-12-31 23:59:59")})},completedList(){const{allTask:t,searchText:o}=this;return t.filter(n=>n.parent_id>0||this.flowTask(n)||o&&!$A.strExists(n.name,o)&&!$A.strExists(n.desc,o)?!1:n.complete_at).sort((n,a)=>{let r=$A.Date(n.complete_at);return $A.Date(a.complete_at)-r})},completedCount(){const{allTask:t}=this;return t.filter(o=>o.parent_id>0?!1:o.complete_at).length},flowTitle(){const{flowInfo:t,flowData:o,allTask:e}=this;if(t.value){const n=o.find(a=>a.value===t.value);return n?n.label:t.label}return`${this.$L("\u5168\u90E8")} (${e.length})`},flowData(){const{flowList:t,allTask:o,cacheUserBasic:e}=this,n=[{value:0,label:`${this.$L("\u5168\u90E8")} (${o.length})`,children:[]}],a=t.map(i=>({value:i.id,label:i.name,status:i.status,children:i.project_flow_item.map(l=>{const c=o.filter(({flow_item_id:d})=>d==l.id).length;return{value:l.id,label:`${l.name} (${c})`,status:l.status,class:l.status}})}));a.length===1?n.push(...a[0].children):a.length>0&&n.push(...a);const{project_user:r}=this.projectData,s=r.map((i,l)=>{const c=e.find(({userid:u})=>u===i.userid)||{},d=o.filter(({task_user:u,complete_at:f})=>!this.projectData.cacheParameter.completedTask&&f?!1:u.find(({userid:v,owner:h})=>v===i.userid&&h)).length;return{value:`user:${c.userid}`,label:`${c.nickname} (${d})`,class:`user-${l}`,userid:c.userid||0,length:d}}).filter(({userid:i,length:l})=>i>0&&l>0);return s.length>0&&n.push(...s),n}},watch:{projectData(){this.sortData=this.getSort()},projectLoad(t){this._loadTimeout&&clearTimeout(this._loadTimeout),t>0?this._loadTimeout=setTimeout(()=>{this.loading=!0},1e3):this.loading=!1},projectId:{handler(t){t>0&&this.getFlowData()},immediate:!0}},methods:{showName(){this.windowLarge||$A.modalInfo({language:!1,title:this.$L("\u9879\u76EE\u540D\u79F0"),content:this.projectData.name})},showDesc(){this.windowLarge||$A.modalInfo({language:!1,title:this.$L("\u9879\u76EE\u63CF\u8FF0"),content:this.projectData.desc})},searchFocus(){this.$nextTick(()=>{this.$refs.searchInput.focus({cursor:"end"})})},getSort(){const t=[];return this.columnList.forEach(o=>{t.push({id:o.id,task:o.tasks.map(({id:e})=>e)})}),t},sortUpdate(t){const o=this.sortData,e=this.getSort();if(JSON.stringify(o)===JSON.stringify(e))return;this.sortData=e;const n={project_id:this.projectId,sort:this.sortData,only_column:t===!0?1:0};this.sortDisabled=!0,this.$store.dispatch("call",{url:"project/sort",data:n}).then(({msg:a})=>{$A.messageSuccess(a),this.sortDisabled=!1;let r,s=[];n.only_column?(r=-1,n.sort.forEach(i=>{r++,s.push({id:i.id,sort:r})}),this.$store.dispatch("saveColumn",s)):(n.sort.forEach(i=>{r=-1,s.push(...i.task.map(l=>(r++,s.push(...this.allTask.filter(c=>c.parent_id==l).map(({id:c})=>({id:c,sort:r,column_id:i.id}))),{id:l,sort:r,column_id:i.id})))}),this.$store.dispatch("saveTask",s))}).catch(({msg:a})=>{$A.modalError(a),this.sortDisabled=!1,this.$store.dispatch("getTaskForProject",this.projectId).catch(()=>{})})},addTopShow(t,o){this.$set(this.columnTopShow,t,o),o&&(this.$refs["column_"+t][0].scrollTop=0)},addTaskOpen(t){Te.Store.set("addTask",t)},addColumnOpen(){this.addColumnShow=!0,this.$nextTick(()=>{this.$refs.addColumnName.focus()})},addColumnBlur(){this.addColumnName===""&&(this.addColumnShow=!1)},addColumnSubmit(){let t=this.addColumnName.trim();t!==""&&this.$store.dispatch("call",{url:"project/column/add",data:{project_id:this.projectId,name:t}}).then(({data:o,msg:e})=>{$A.messageSuccess(e),this.addColumnName="",this.$store.dispatch("saveColumn",o)}).catch(({msg:o})=>{$A.modalError(o)})},dropColumn(t,o){o==="title"?this.titleColumn(t):o==="remove"?this.removeColumn(t):o.name&&this.updateColumn(t,{color:o.color}).catch($A.modalError)},titleColumn(t){$A.modalInput({value:t.name,title:"\u4FEE\u6539\u5217\u8868",placeholder:"\u8F93\u5165\u5217\u8868\u540D\u79F0",onOk:o=>o?this.updateColumn(t,{name:o}):"\u5217\u8868\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"})},updateColumn(t,o){return new Promise((e,n)=>{if(this.columnLoad[t.id]===!0){e();return}this.$set(this.columnLoad,t.id,!0),Object.keys(o).forEach(a=>this.$set(t,a,o[a])),this.$store.dispatch("call",{url:"project/column/update",data:Object.assign(o,{column_id:t.id})}).then(({data:a})=>{this.$set(this.columnLoad,t.id,!1),this.$store.dispatch("saveColumn",a),e()}).catch(({msg:a})=>{this.$set(this.columnLoad,t.id,!1),this.$store.dispatch("getColumns",this.projectId).catch(()=>{}),n(a)})})},removeColumn(t){$A.modalConfirm({title:"\u5220\u9664\u5217\u8868",content:"\u4F60\u786E\u5B9A\u8981\u5220\u9664\u5217\u8868\u3010"+t.name+"\u3011\u53CA\u5217\u8868\u5185\u7684\u4EFB\u52A1\u5417\uFF1F",loading:!0,onOk:()=>{if(this.columnLoad[t.id]!==!0)return this.$set(this.columnLoad,t.id,!0),new Promise((o,e)=>{this.$store.dispatch("removeColumn",t.id).then(({msg:n})=>{o(n)}).catch(({msg:n})=>{e(n)}).finally(n=>{this.$set(this.columnLoad,t.id,!1)})})}})},onSort(t){this.sortField=t,this.sortType=this.sortType=="desc"?"asc":"desc"},onSetting(){this.settingLoad++,this.$store.dispatch("call",{url:"project/update",data:Object.assign(this.settingData,{project_id:this.projectId})}).then(({data:t,msg:o})=>{$A.messageSuccess(o),this.settingShow=!1,this.$store.dispatch("saveProject",t)}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.settingLoad--})},onUser(){this.userLoad++,this.$store.dispatch("call",{url:"project/user",data:{project_id:this.projectId,userid:this.userData.userids}}).then(({msg:t})=>{$A.messageSuccess(t),this.userShow=!1,this.$store.dispatch("getProjectOne",this.projectId).catch(()=>{}),this.$store.dispatch("getTaskForProject",this.projectId).catch(()=>{})}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.userLoad--})},onTransfer(){this.transferLoad++,this.$store.dispatch("call",{url:"project/transfer",data:{project_id:this.projectId,owner_userid:this.transferData.owner_userid[0]}}).then(({msg:t})=>{$A.messageSuccess(t),this.transferShow=!1,this.$store.dispatch("getProjectOne",this.projectId).catch(()=>{}),this.$store.dispatch("getTaskForProject",this.projectId).catch(()=>{})}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.transferLoad--})},onArchived(){$A.modalConfirm({title:"\u5F52\u6863\u9879\u76EE",content:"\u4F60\u786E\u5B9A\u8981\u5F52\u6863\u9879\u76EE\u3010"+this.projectData.name+"\u3011\u5417\uFF1F",loading:!0,onOk:()=>new Promise((t,o)=>{this.$store.dispatch("archivedProject",this.projectId).then(({msg:e})=>{t(e)}).catch(({msg:e})=>{o(e)})})})},onDelete(){$A.modalConfirm({title:"\u5220\u9664\u9879\u76EE",content:"\u4F60\u786E\u5B9A\u8981\u5220\u9664\u9879\u76EE\u3010"+this.projectData.name+"\u3011\u5417\uFF1F",loading:!0,onOk:()=>new Promise((t,o)=>{this.$store.dispatch("removeProject",this.projectId).then(({msg:e})=>{t(e)}).catch(({msg:e})=>{o(e)})})})},onExit(){$A.modalConfirm({title:"\u9000\u51FA\u9879\u76EE",content:"\u4F60\u786E\u5B9A\u8981\u9000\u51FA\u9879\u76EE\u3010"+this.projectData.name+"\u3011\u5417\uFF1F",loading:!0,onOk:()=>new Promise((t,o)=>{this.$store.dispatch("exitProject",this.projectId).then(({msg:e})=>{t(e)}).catch(({msg:e})=>{o(e)})})})},projectDropdown(t){switch(t){case"setting":this.$set(this.settingData,"name",this.projectData.name),this.$set(this.settingData,"desc",this.projectData.desc),this.settingShow=!0,this.$nextTick(()=>{this.$refs.projectName.focus(),setTimeout(this.$refs.projectDesc.resizeTextarea,0)});break;case"user":if(this.projectData.owner_userid!==this.userId)return;const o=this.projectData.project_user.map(({userid:e})=>e);this.$set(this.userData,"userids",o),this.$set(this.userData,"useridbak",o),this.$set(this.userData,"uncancelable",[this.projectData.owner_userid]),this.userShow=!0;break;case"invite":this.inviteData={},this.inviteShow=!0,this.inviteGet();break;case"workflow":this.workflowShow=!0;break;case"log":this.logShow=!0;break;case"archived_task":this.archivedTaskShow=!0;break;case"deleted_task":this.deletedTaskShow=!0;break;case"transfer":this.$set(this.transferData,"owner_userid",[this.projectData.owner_userid]),this.transferShow=!0;break;case"archived":this.onArchived();break;case"delete":this.onDelete();break;case"exit":this.onExit();break}},openTask(t,o){this.$store.dispatch("openTask",t),o===!0&&setTimeout(()=>{Te.Store.set("receiveTask",!0)},300)},openMenu(t,o){const e=this.$refs[`taskMenu_${o.id}`];e&&e[0].handleClick(t)},taskIsHidden(t){const{name:o,desc:e,complete_at:n}=t,{searchText:a}=this;return!!(!this.projectData.cacheParameter.completedTask&&n||this.flowTask(t)||a&&!$A.strExists(`${o} ${e}`,a))},ownerUser(t){return t.filter(({owner:o})=>o==1).sort((o,e)=>o.id-e.id)},inviteGet(t){this.inviteLoad++,this.$store.dispatch("call",{url:"project/invite",data:{project_id:this.projectId,refresh:t===!0?"yes":"no"}}).then(({data:o})=>{this.inviteData=o,this.inviteCopy()}).catch(({msg:o})=>{$A.modalError(o)}).finally(o=>{this.inviteLoad--})},getFlowData(){this.flowInfo={},this.$store.dispatch("call",{url:"project/flow/list",data:{project_id:this.projectId}}).then(({data:t})=>{var o;this.flowList=t,(o=this.$refs.flow)==null||o.clearSelect()}).catch(()=>{this.flowList=[]})},flowChange(t,o){this.flowInfo=o.pop()||{}},inviteCopy(){!this.inviteData.url||this.$copyText(this.inviteData.url).then(t=>{$A.messageSuccess("\u590D\u5236\u6210\u529F")}).catch(t=>{$A.messageError("\u590D\u5236\u5931\u8D25")})},inviteFocus(){this.$refs.inviteInput.focus({cursor:"all"})},toggleCompleted(){this.toggleParameter("completedTask")},workflowBeforeClose(){return new Promise(t=>{if(!this.$refs.workflow.existDiff()){t();return}$A.modalConfirm({content:"\u8BBE\u7F6E\u5C1A\u672A\u4FDD\u5B58\uFF0C\u662F\u5426\u653E\u5F03\u4FEE\u6539\uFF1F",cancelText:"\u53D6\u6D88",okText:"\u653E\u5F03",onOk:()=>{t()}})})},myFilter(t,o=!0){return!this.projectData.cacheParameter.completedTask&&o===!0&&t.complete_at||this.flowTask(t)||this.searchText&&!$A.strExists(t.name,this.searchText)&&!$A.strExists(t.desc,this.searchText)?!1:t.owner},helpFilter(t,o=!0){return t.parent_id>0||!this.projectData.cacheParameter.completedTask&&o===!0&&t.complete_at||this.flowTask(t)||this.searchText&&!$A.strExists(t.name,this.searchText)&&!$A.strExists(t.desc,this.searchText)?!1:t.task_user&&t.task_user.find(({userid:e,owner:n})=>e==this.userId&&n==0)},flowTask(t){return $A.leftExists(this.flowInfo.value,"user:")&&!t.task_user.find(({userid:o,owner:e})=>o===this.flowInfo.userid&&e)?!0:this.flowInfo.value>0&&t.flow_item_id!==this.flowInfo.value},expiresFormat(t){return $A.countDownFormat(t,this.nowTime)},tabTypeChange(t){switch(t){case"column":this.toggleParameter({project_id:this.projectId,key:"menuType",value:"column"});break;case"table":this.toggleParameter({project_id:this.projectId,key:"menuType",value:"table"});break;case"gantt":this.toggleParameter({project_id:this.projectId,key:"menuType",value:"gantt"});break}},toggleParameter(t){if(t==="completedTask")this.$store.dispatch("forgetTaskCompleteTemp",!0);else if(t==="chat"&&this.windowSmall){this.$store.dispatch("openDialog",this.projectData.dialog_id);return}this.$store.dispatch("toggleProjectParameter",t)},onBack(){const{name:t,params:o}=this.$store.state.routeHistoryLast;t===this.$route.name&&/^\d+$/.test(o.projectId)?this.goForward({name:this.$route.name,params:{projectId:"all"}}):this.goBack()}}},en={};var nr=wt(er,qo,tr,!1,or,null,null,null);function or(t){for(let o in en)this[o]=en[o]}var rr=function(){return nr.exports}(),ar=function(){var t=this,o=t.$createElement,e=t._self._c||o;return t.dialogShow?e("DialogWrapper",{staticClass:"project-dialog",attrs:{"dialog-id":t.projectData.dialog_id}},[e("template",{slot:"head"},[e("div",{staticClass:"dialog-user"},[e("div",{staticClass:"member-head"},[e("div",{staticClass:"member-title"},[t._v(t._s(t.$L("\u9879\u76EE\u6210\u5458"))),e("span",{on:{click:function(n){t.memberShowAll=!t.memberShowAll}}},[t._v("("+t._s(t.projectData.project_user.length)+")")])]),e("div",{staticClass:"member-close",on:{click:t.onClose}},[e("Icon",{attrs:{type:"ios-close"}})],1)]),e("ul",{class:["member-list",t.memberShowAll?"member-all":""]},t._l(t.projectData.project_user,function(n){return e("li",[e("UserAvatar",{attrs:{userid:n.userid,size:36}})],1)}),0)]),e("div",{staticClass:"nav-wrapper"},[e("div",{staticClass:"dialog-title"},[e("h2",[t._v(t._s(t.$L("\u7FA4\u804A")))])])])])],2):t._e()},sr=[];const ir={name:"ProjectDialog",components:{DialogWrapper:kn},data(){return{loadIng:!1,memberShowAll:!1}},computed:{...Ae(["projectData"]),dialogShow(){return this.windowLarge&&this.projectData.dialog_id&&this.projectData.cacheParameter.chat}},methods:{onClose(){this.$store.dispatch("toggleProjectParameter","chat")}}},nn={};var lr=wt(ir,ar,sr,!1,cr,null,null,null);function cr(t){for(let o in nn)this[o]=nn[o]}var dr=function(){return lr.exports}(),ur=function(){var t=this,o=t.$createElement,e=t._self._c||o;return e("div",{staticClass:"project-list"},[e("PageTitle",{attrs:{title:t.$L("\u9879\u76EE")}}),e("div",{staticClass:"list-search"},[e("div",{staticClass:"search-wrapper"},[e("Input",{attrs:{placeholder:t.$L(t.loadProjects?"\u66F4\u65B0\u4E2D...":"\u641C\u7D22\u9879\u76EE"),clearable:""},model:{value:t.projectKeyValue,callback:function(n){t.projectKeyValue=n},expression:"projectKeyValue"}},[e("div",{staticClass:"search-pre",attrs:{slot:"prefix"},slot:"prefix"},[t.loadProjects?e("Loading"):e("Icon",{attrs:{type:"ios-search"}})],1)])],1)]),e("ul",{on:{scroll:function(n){t.operateVisible=!1}}},[t.projectLists.length===0?[t.projectKeyLoading>0?e("li",{staticClass:"loading"},[e("Loading")],1):e("li",{staticClass:"nothing"},[t._v(" "+t._s(t.$L(t.projectKeyValue?`\u6CA1\u6709\u4EFB\u4F55\u4E0E"${t.projectKeyValue}"\u76F8\u5173\u7684\u9879\u76EE`:"\u6CA1\u6709\u4EFB\u4F55\u9879\u76EE"))+" ")])]:t._e(),t._l(t.projectLists,function(n,a){return e("li",{directives:[{name:"longpress",rawName:"v-longpress",value:t.handleLongpress,expression:"handleLongpress"}],key:a,class:{operate:n.id==t.operateItem.id&&t.operateVisible},attrs:{"data-id":n.id},on:{click:function(r){return t.toggleRoute("project",{projectId:n.id})}}},[e("div",{staticClass:"project-item"},[e("div",{staticClass:"item-left"},[e("div",{staticClass:"project-h1"},[e("div",{staticClass:"project-name"},[t._v(t._s(n.name))]),n.top_at?e("div",{staticClass:"icon-top"}):t._e(),n.task_my_num-n.task_my_complete>0?e("div",{staticClass:"num"},[t._v(t._s(n.task_my_num-n.task_my_complete))]):t._e()]),e("div",{staticClass:"project-h2"},[t._v(" "+t._s(n.desc)+" ")])]),n.task_num>0?e("div",{staticClass:"item-right",on:{click:function(r){return r.stopPropagation(),t.modalPercent(n)}}},[e("iCircle",{attrs:{type:"circle","trail-color":"rgba(132, 197, 106, 0.2)","trail-width":7,"stroke-color":n.task_percent===100?"rgba(132, 197, 106, 0)":"#84C56A","stroke-width":7,percent:n.task_percent,size:44}},[n.task_percent===100?e("Icon",{attrs:{type:"ios-checkmark"}}):e("span",{staticClass:"percent-text"},[t._v(t._s(n.task_percent)+"%")])],1)],1):t._e()])])})],2),e("div",{staticClass:"operate-position",style:t.operateStyles},[e("Dropdown",{attrs:{trigger:"custom",placement:t.windowLarge?"bottom":"top",visible:t.operateVisible,transfer:""},on:{"on-clickoutside":function(n){t.operateVisible=!1}}},[e("div",{style:{userSelect:t.operateVisible?"none":"auto",height:t.operateStyles.height}}),e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[e("DropdownItem",{nativeOn:{click:function(n){return t.handleTopClick.apply(null,arguments)}}},[t._v(" "+t._s(t.$L(t.operateItem.top_at?"\u53D6\u6D88\u7F6E\u9876":"\u7F6E\u9876\u8BE5\u9879\u76EE"))+" ")])],1)],1)],1)],1)},fr=[];const hr={name:"ProjectList",directives:{longpress:jn},data(){return{projectKeyValue:"",projectKeyLoading:0,operateStyles:{},operateVisible:!1,operateItem:{}}},computed:{...kt(["cacheProjects","loadProjects"]),projectLists(){const{projectKeyValue:t,cacheProjects:o}=this,e=$A.cloneJSON(o).sort((n,a)=>n.top_at||a.top_at?$A.Date(a.top_at)-$A.Date(n.top_at):a.id-n.id);return t?e.filter(n=>$A.strExists(`${n.name} ${n.desc}`,t)):e}},watch:{projectKeyValue(t){t!=""&&(this.projectKeyLoading++,setTimeout(()=>{this.projectKeyValue==t&&this.searchProject(),this.projectKeyLoading--},600))}},methods:{searchProject(){this.projectKeyLoading++,this.$store.dispatch("getProjects",{keys:{name:this.projectKeyValue},hideLoad:!0}).finally(t=>{this.projectKeyLoading--})},toggleRoute(t,o){this.operateVisible||this.goForward({name:"manage-"+t,params:o||{}})},modalPercent(t){if(this.operateVisible)return;let o=`

    ${this.$L("\u603B\u8FDB\u5EA6")}

    `;o+=`

    ${this.$L("\u603B\u6570\u91CF")}: ${t.task_num}

    `,o+=`

    ${this.$L("\u5DF2\u5B8C\u6210")}: ${t.task_complete}

    `,o+=`

    ${this.$L("\u6211\u7684\u4EFB\u52A1")}

    `,o+=`

    ${this.$L("\u603B\u6570\u91CF")}: ${t.task_my_num}

    `,o+=`

    ${this.$L("\u5DF2\u5B8C\u6210")}: ${t.task_my_complete}

    `,$A.modalInfo({language:!1,title:`${t.name} ${this.$L("\u9879\u76EE\u8FDB\u5EA6")}`,content:o})},handleLongpress(t,o){const e=$A.getAttr(o,"data-id"),n=this.projectLists.find(a=>a.id==e);!n||(this.operateVisible=!1,this.operateItem=$A.isJson(n)?n:{},this.$nextTick(()=>{const a=o.getBoundingClientRect(),r=this.$el.getBoundingClientRect();this.operateStyles={left:`${t.clientX-r.left}px`,top:`${a.top+this.windowScrollY}px`,height:a.height+"px"},this.operateVisible=!0}))},handleTopClick(){this.$store.dispatch("call",{url:"project/top",data:{project_id:this.operateItem.id}}).then(({data:t})=>{this.$store.dispatch("saveProject",t)}).catch(({msg:t})=>{$A.modalError(t)})}}},on={};var pr=wt(hr,ur,fr,!1,mr,null,null,null);function mr(t){for(let o in on)this[o]=on[o]}var vr=function(){return pr.exports}(),gr=function(){var t=this,o=t.$createElement,e=t._self._c||o;return e("div",{staticClass:"page-project"},[t.projectId>0?[e("ProjectPanel"),e("ProjectDialog")]:t._e(),t.windowSmall?e("ProjectList",{directives:[{name:"show",rawName:"v-show",value:t.projectId===0,expression:"projectId === 0"}]}):t._e()],2)},yr=[];const br={components:{ProjectList:vr,ProjectDialog:dr,ProjectPanel:rr},deactivated(){this.$store.dispatch("forgetTaskCompleteTemp",!0)},computed:{...kt(["cacheProjects","wsOpenNum"]),projectId(){const{projectId:t}=this.$route.params;return parseInt(/^\d+$/.test(t)?t:0)}},watch:{projectId:{handler(){this.getProjectData()},immediate:!0},wsOpenNum(t){t<=1||(this.wsOpenTimeout&&clearTimeout(this.wsOpenTimeout),this.wsOpenTimeout=setTimeout(()=>{this.$route.name=="manage-project"&&this.getProjectData()},5e3))}},methods:{getProjectData(){if(this.projectId<=0)return;const t=this.projectId;this.$nextTick(()=>{this.$store.state.projectId=t,this.$store.dispatch("getProjectOne",t).then(()=>{this.$store.dispatch("getColumns",t).catch(()=>{}),this.$store.dispatch("getTaskForProject",t).catch(()=>{})}).catch(({msg:o})=>{t===this.projectId&&$A.modalWarning({content:o,onOk:()=>{const e=this.cacheProjects.find(({id:n})=>n);e?$A.goForward({name:"manage-project",params:{projectId:e.id}}):$A.goForward({name:"manage-dashboard"})}})}),this.$store.dispatch("forgetTaskCompleteTemp",!0)})}}},rn={};var wr=wt(br,gr,yr,!1,$r,null,null,null);function $r(t){for(let o in rn)this[o]=rn[o]}var kr=function(){return wr.exports}();export{kr as default}; +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function b(y){return v(y)||h(y)||d(y)||m()}var S=r("a352"),T=r.n(S),x=r("c649");function D(y,p,g){return g===void 0||(y=y||{},y[p]=g),y}function N(y,p){return y.map(function(g){return g.elm}).indexOf(p)}function W(y,p,g,C){if(!y)return[];var O=y.map(function(tt){return tt.elm}),P=p.length-C,z=b(p).map(function(tt,$t){return $t>=P?O.length:O.indexOf(tt)});return g?z.filter(function(tt){return tt!==-1}):z}function B(y,p){var g=this;this.$nextTick(function(){return g.$emit(y.toLowerCase(),p)})}function j(y){var p=this;return function(g){p.realList!==null&&p["onDrag"+y](g),B.call(p,y,g)}}function L(y){return["transition-group","TransitionGroup"].includes(y)}function k(y){if(!y||y.length!==1)return!1;var p=f(y,1),g=p[0].componentOptions;return g?L(g.tag):!1}function R(y,p,g){return y[g]||(p[g]?p[g]():void 0)}function K(y,p,g){var C=0,O=0,P=R(p,g,"header");P&&(C=P.length,y=y?[].concat(b(P),b(y)):b(P));var z=R(p,g,"footer");return z&&(O=z.length,y=y?[].concat(b(y),b(z)):b(z)),{children:y,headerOffset:C,footerOffset:O}}function et(y,p){var g=null,C=function(Qt,Cn){g=D(g,Qt,Cn)},O=Object.keys(y).filter(function($t){return $t==="id"||$t.startsWith("data-")}).reduce(function($t,Qt){return $t[Qt]=y[Qt],$t},{});if(C("attrs",O),!p)return g;var P=p.on,z=p.props,tt=p.attrs;return C("on",P),C("props",z),Object.assign(g.attrs,tt),g}var q=["Start","Add","Remove","Update","End"],G=["Choose","Unchoose","Sort","Filter","Clone"],U=["Move"].concat(q,G).map(function(y){return"on"+y}),X=null,ut={options:Object,list:{type:Array,required:!1,default:null},value:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:function(p){return p}},element:{type:String,default:"div"},tag:{type:String,default:null},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},st={name:"draggable",inheritAttrs:!1,props:ut,data:function(){return{transitionMode:!1,noneFunctionalComponentMode:!1}},render:function(p){var g=this.$slots.default;this.transitionMode=k(g);var C=K(g,this.$slots,this.$scopedSlots),O=C.children,P=C.headerOffset,z=C.footerOffset;this.headerOffset=P,this.footerOffset=z;var tt=et(this.$attrs,this.componentData);return p(this.getTag(),tt,O)},created:function(){this.list!==null&&this.value!==null&&x.b.error("Value and list props are mutually exclusive! Please set one or another."),this.element!=="div"&&x.b.warn("Element props is deprecated please use tag props instead. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#element-props"),this.options!==void 0&&x.b.warn("Options props is deprecated, add sortable options directly as vue.draggable item, or use v-bind. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#options-props")},mounted:function(){var p=this;if(this.noneFunctionalComponentMode=this.getTag().toLowerCase()!==this.$el.nodeName.toLowerCase()&&!this.getIsFunctional(),this.noneFunctionalComponentMode&&this.transitionMode)throw new Error("Transition-group inside component is not supported. Please alter tag value or remove transition-group. Current tag value: ".concat(this.getTag()));var g={};q.forEach(function(P){g["on"+P]=j.call(p,P)}),G.forEach(function(P){g["on"+P]=B.bind(p,P)});var C=Object.keys(this.$attrs).reduce(function(P,z){return P[Object(x.a)(z)]=p.$attrs[z],P},{}),O=Object.assign({},this.options,C,g,{onMove:function(z,tt){return p.onDragMove(z,tt)}});!("draggable"in O)&&(O.draggable=">*"),this._sortable=new T.a(this.rootContainer,O),this.computeIndexes()},beforeDestroy:function(){this._sortable!==void 0&&this._sortable.destroy()},computed:{rootContainer:function(){return this.transitionMode?this.$el.children[0]:this.$el},realList:function(){return this.list?this.list:this.value}},watch:{options:{handler:function(p){this.updateOptions(p)},deep:!0},$attrs:{handler:function(p){this.updateOptions(p)},deep:!0},realList:function(){this.computeIndexes()}},methods:{getIsFunctional:function(){var p=this._vnode.fnOptions;return p&&p.functional},getTag:function(){return this.tag||this.element},updateOptions:function(p){for(var g in p){var C=Object(x.a)(g);U.indexOf(C)===-1&&this._sortable.option(C,p[g])}},getChildrenNodes:function(){if(this.noneFunctionalComponentMode)return this.$children[0].$slots.default;var p=this.$slots.default;return this.transitionMode?p[0].child.$slots.default:p},computeIndexes:function(){var p=this;this.$nextTick(function(){p.visibleIndexes=W(p.getChildrenNodes(),p.rootContainer.children,p.transitionMode,p.footerOffset)})},getUnderlyingVm:function(p){var g=N(this.getChildrenNodes()||[],p);if(g===-1)return null;var C=this.realList[g];return{index:g,element:C}},getUnderlyingPotencialDraggableComponent:function(p){var g=p.__vue__;return!g||!g.$options||!L(g.$options._componentTag)?!("realList"in g)&&g.$children.length===1&&"realList"in g.$children[0]?g.$children[0]:g:g.$parent},emitChanges:function(p){var g=this;this.$nextTick(function(){g.$emit("change",p)})},alterList:function(p){if(this.list){p(this.list);return}var g=b(this.value);p(g),this.$emit("input",g)},spliceList:function(){var p=arguments,g=function(O){return O.splice.apply(O,b(p))};this.alterList(g)},updatePosition:function(p,g){var C=function(P){return P.splice(g,0,P.splice(p,1)[0])};this.alterList(C)},getRelatedContextFromMoveEvent:function(p){var g=p.to,C=p.related,O=this.getUnderlyingPotencialDraggableComponent(g);if(!O)return{component:O};var P=O.realList,z={list:P,component:O};if(g!==C&&P&&O.getUnderlyingVm){var tt=O.getUnderlyingVm(C);if(tt)return Object.assign(tt,z)}return z},getVmIndex:function(p){var g=this.visibleIndexes,C=g.length;return p>C-1?C:g[p]},getComponent:function(){return this.$slots.default[0].componentInstance},resetTransitionData:function(p){if(!(!this.noTransitionOnDrag||!this.transitionMode)){var g=this.getChildrenNodes();g[p].data=null;var C=this.getComponent();C.children=[],C.kept=void 0}},onDragStart:function(p){this.context=this.getUnderlyingVm(p.item),p.item._underlying_vm_=this.clone(this.context.element),X=p.item},onDragAdd:function(p){var g=p.item._underlying_vm_;if(g!==void 0){Object(x.d)(p.item);var C=this.getVmIndex(p.newIndex);this.spliceList(C,0,g),this.computeIndexes();var O={element:g,newIndex:C};this.emitChanges({added:O})}},onDragRemove:function(p){if(Object(x.c)(this.rootContainer,p.item,p.oldIndex),p.pullMode==="clone"){Object(x.d)(p.clone);return}var g=this.context.index;this.spliceList(g,1);var C={element:this.context.element,oldIndex:g};this.resetTransitionData(g),this.emitChanges({removed:C})},onDragUpdate:function(p){Object(x.d)(p.item),Object(x.c)(p.from,p.item,p.oldIndex);var g=this.context.index,C=this.getVmIndex(p.newIndex);this.updatePosition(g,C);var O={element:this.context.element,oldIndex:g,newIndex:C};this.emitChanges({moved:O})},updateProperty:function(p,g){p.hasOwnProperty(g)&&(p[g]+=this.headerOffset)},computeFutureIndex:function(p,g){if(!p.element)return 0;var C=b(g.to.children).filter(function(tt){return tt.style.display!=="none"}),O=C.indexOf(g.related),P=p.component.getVmIndex(O),z=C.indexOf(X)!==-1;return z||!g.willInsertAfter?P:P+1},onDragMove:function(p,g){var C=this.move;if(!C||!this.realList)return!0;var O=this.getRelatedContextFromMoveEvent(p),P=this.context,z=this.computeFutureIndex(O,p);Object.assign(P,{futureIndex:z});var tt=Object.assign({},p,{relatedContext:O,draggedContext:P});return C(tt,g)},onDragEnd:function(){this.computeIndexes(),X=null}}};typeof window!="undefined"&&"Vue"in window&&window.Vue.component("draggable",st);var rt=st;a.default=rt}}).default})})(cn);var $n=Sn(cn.exports),fo=function(){var t=this,o=t.$createElement,e=t._self._c||o;return t.rowMode?e("Row",{staticClass:"task-add-row"},[e("Col",{class:["row-add",t.active?"active":""],attrs:{span:"12"}},[e("div",{staticClass:"add-input",on:{mouseenter:function(n){t.mouseEnter=!0},mouseleave:function(n){t.mouseEnter=!1}}},[e("Input",{ref:"input",attrs:{type:"textarea",rows:1,autosize:{minRows:1,maxRows:3},maxlength:255,placeholder:t.$L(t.typeName+"\u63CF\u8FF0\uFF0C\u56DE\u8F66\u521B\u5EFA"),enterkeyhint:"done"},on:{"on-focus":function(n){t.onFocus=!0},"on-blur":function(n){t.onFocus=!1},"on-keydown":t.onKeydown},model:{value:t.addData.name,callback:function(n){t.$set(t.addData,"name",n)},expression:"addData.name"}}),t.parentId==0?e("div",{staticClass:"priority"},[e("ul",t._l(t.taskPriority,function(n,a){return e("li",{key:a},[t.active?e("ETooltip",{attrs:{disabled:t.windowSmall||t.$isEEUiApp,content:t.taskPriorityContent(n)}},[e("i",{staticClass:"taskfont",style:{color:n.color},domProps:{innerHTML:t._s(t.addData.p_name==n.name?"":"")},on:{click:function(r){return t.choosePriority(n)}}})]):t._e()],1)}),0),e("Icon",{attrs:{type:"md-settings"},on:{click:t.onPriority}})],1):t._e()],1),e("div",{staticClass:"add-btn",on:{click:t.openAdd}},[e("Icon",{staticClass:"add-icon",attrs:{type:"md-add"}}),t._v(t._s(t.$L("\u6DFB\u52A0"+t.typeName))+" ")],1)]),e("Col",{attrs:{span:"3"}}),e("Col",{attrs:{span:"3"}}),e("Col",{attrs:{span:"3"}}),e("Col",{attrs:{span:"3"}})],1):e("div",{class:["task-add-simple",t.active?"active":""],on:{mouseenter:function(n){t.mouseEnter=!0},mouseleave:function(n){t.mouseEnter=!1}}},[e("Input",{ref:"input",attrs:{type:"textarea",rows:2,autosize:{minRows:2,maxRows:3},maxlength:255,placeholder:t.$L(t.typeName+"\u63CF\u8FF0\uFF0C\u56DE\u8F66\u521B\u5EFA"),enterkeyhint:"done"},on:{"on-focus":function(n){t.onFocus=!0},"on-blur":function(n){t.onFocus=!1},"on-keydown":t.onKeydown},model:{value:t.addData.name,callback:function(n){t.$set(t.addData,"name",n)},expression:"addData.name"}}),e("div",{staticClass:"add-placeholder",on:{click:t.openAdd}},[e("Icon",{attrs:{type:"md-add"}}),t._v(t._s(t.$L("\u6DFB\u52A0"+t.typeName))+" ")],1),e("div",{staticClass:"priority"},[e("ul",t._l(t.taskPriority,function(n,a){return e("li",{key:a},[t.active?e("ETooltip",{attrs:{disabled:t.windowSmall||t.$isEEUiApp,content:t.taskPriorityContent(n)}},[e("i",{staticClass:"taskfont",style:{color:n.color},domProps:{innerHTML:t._s(t.addData.p_name==n.name?"":"")},on:{click:function(r){return t.choosePriority(n)}}})]):t._e()],1)}),0),e("Icon",{attrs:{type:"md-settings"},on:{click:t.onPriority}})],1)],1)},ho=[];const po={name:"TaskAddSimple",props:{parentId:{type:Number,default:0},projectId:{type:Number,default:0},columnId:{type:Number,default:0},addTop:{type:Boolean,default:!1},autoActive:{type:Boolean,default:!1},rowMode:{type:Boolean,default:!1}},data(){return{addData:{name:"",owner:0,column_id:0,times:[],subtasks:[],p_level:0,p_name:"",p_color:""},active:!1,onFocus:!1,mouseEnter:!1}},mounted(){this.autoActive&&this.$nextTick(this.openAdd)},computed:{...kt(["taskPriority"]),typeName(){return this.parentId>0?"\u5B50\u4EFB\u52A1":"\u4EFB\u52A1"}},watch:{active(t){t||this.$emit("on-close")},mouseEnter(){this.chackClose()},onFocus(){this.chackClose()}},methods:{getData(){return this.parentId>0?{task_id:this.parentId,name:this.addData.name}:(this.addData.project_id=this.projectId||this.$store.state.projectId,this.addData.column_id=this.columnId||"",this.addData.owner=[this.userId],this.addData.top=this.addTop?1:0,$A.cloneJSON(this.addData))},openAdd(){this.active=!0,this.defaultPriority(),this.$nextTick(()=>{this.$refs.input.focus()})},chackClose(){this.mouseEnter||this.onFocus||this.addData.name||(this.active=!1)},onPriority(){this.$emit("on-priority",this.getData()),this.active=!1},onKeydown(t){if(t.keyCode===13){if(t.shiftKey)return;t.preventDefault(),this.onAdd()}},onAdd(){if(!this.addData.name){$A.messageWarning("\u8BF7\u8F93\u5165\u4EFB\u52A1\u63CF\u8FF0");return}this.loadIng++;let t=this.parentId>0?"taskAddSub":"taskAdd";this.$store.dispatch(t,this.getData()).then(({msg:o})=>{$A.messageSuccess(o),this.loadIng--,this.active=!1,this.addData={name:"",owner:0,column_id:0,times:[],subtasks:[],p_level:0,p_name:"",p_color:""}}).catch(({msg:o})=>{$A.modalError(o),this.loadIng--})},taskPriorityContent(t){let o=$A.runNum(t.days);return o<=0?t.name+" ("+this.$L("\u65E0\u65F6\u95F4\u9650\u5236")+")":t.name+" ("+o+this.$L("\u5929")+")"},choosePriority(t){if($A.runNum(t.days)>0){let o=new Date,e=new Date(new Date().setDate(o.getDate()+$A.runNum(t.days)));this.$set(this.addData,"times",$A.date2string([o,e]))}else this.$set(this.addData,"times",[]);this.$set(this.addData,"p_level",t.priority),this.$set(this.addData,"p_name",t.name),this.$set(this.addData,"p_color",t.color),this.$nextTick(()=>{this.$refs.input.focus()})},defaultPriority(){this.taskPriority.length!==0&&(this.addData.p_name||this.choosePriority(this.taskPriority[0]))}}},Ve={};var mo=wt(po,fo,ho,!1,vo,null,null,null);function vo(t){for(let o in Ve)this[o]=Ve[o]}var _n=function(){return mo.exports}(),go=function(){var t=this,o=t.$createElement,e=t._self._c||o;return e("div",{staticClass:"task-rows"},[t._l(t.list,function(n,a){return e("div",{key:a},[e("Row",{staticClass:"task-row",style:n.color?{backgroundColor:n.color,borderBottomColor:n.color}:{}},[n.p_name?e("em",{staticClass:"priority-color",style:{backgroundColor:n.p_color}}):t._e(),e("Col",{class:["row-name",n.complete_at?"complete":""],attrs:{span:"12"}},[n.sub_num>0&&n.sub_top!==!0||n.parent_id===0&&t.fastAddTask?e("Icon",{class:["sub-icon",t.taskOpen[n.id]?"active":""],attrs:{type:"ios-arrow-forward"},on:{click:function(r){return t.getSublist(n)}}}):t._e(),e("TaskMenu",{ref:`taskMenu_${n.id}`,refInFor:!0,attrs:{task:n}}),e("div",{staticClass:"item-title",on:{click:function(r){return t.openTask(n)}}},[n.flow_item_name?e("span",{class:n.flow_item_status,on:{click:function(r){return r.stopPropagation(),t.openMenu(r,n)}}},[t._v(t._s(n.flow_item_name))]):t._e(),n.sub_top===!0?e("span",[t._v(t._s(t.$L("\u5B50\u4EFB\u52A1")))]):t._e(),n.sub_my&&n.sub_my.length>0?e("span",[t._v("+"+t._s(n.sub_my.length))]):t._e(),t._v(" "+t._s(n.name)+" ")]),e("div",{staticClass:"item-icons",on:{click:function(r){return t.openTask(n)}}},[n.desc?e("div",{staticClass:"item-icon"},[e("i",{staticClass:"taskfont"},[t._v("\uE71A")])]):t._e(),n.file_num>0?e("div",{staticClass:"item-icon"},[e("i",{staticClass:"taskfont"},[t._v("\uE71C")]),e("em",[t._v(t._s(n.file_num))])]):t._e(),n.msg_num>0?e("div",{staticClass:"item-icon"},[e("i",{staticClass:"taskfont"},[t._v("\uE71E")]),e("em",[t._v(t._s(n.msg_num))])]):t._e(),n.sub_num>0?e("div",{staticClass:"item-icon",on:{click:function(r){return r.stopPropagation(),t.getSublist(n)}}},[e("i",{staticClass:"taskfont"},[t._v("\uE71F")]),e("em",[t._v(t._s(n.sub_complete)+"/"+t._s(n.sub_num))])]):t._e()])],1),e("Col",{staticClass:"row-column",attrs:{span:"3"}},[e("EDropdown",{attrs:{trigger:"click",size:"small",placement:"bottom",disabled:n.sub_top===!0},on:{command:function(r){return t.dropTask(n,r)}}},[e("div",{staticClass:"task-column"},[t._v(t._s(t.columnName(n.column_id)))]),e("EDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},t._l(t.columnList(n.project_id),function(r){return e("EDropdownItem",{key:r.id,attrs:{command:"column::"+r.id}},[t._v(" "+t._s(r.name)+" ")])}),1)],1)],1),e("Col",{staticClass:"row-priority",attrs:{span:"3"}},[e("EDropdown",{attrs:{trigger:"click",size:"small",placement:"bottom",disabled:n.sub_top===!0},on:{command:function(r){return t.dropTask(n,r)}}},[e("TaskPriority",{attrs:{backgroundColor:n.p_color}},[t._v(t._s(n.p_name))]),e("EDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},t._l(t.taskPriority,function(r,s){return e("EDropdownItem",{key:s,attrs:{command:"priority::"+s}},[e("i",{staticClass:"taskfont",style:{color:r.color},domProps:{innerHTML:t._s(r.p_name==r.name?"":"")}}),t._v(" "+t._s(r.name)+" ")])}),1)],1)],1),e("Col",{staticClass:"row-user",attrs:{span:"3"}},[e("ul",{on:{click:function(r){return t.openTask(n)}}},[t._l(t.ownerUser(n.task_user),function(r,s){return s<3?e("li",{key:s},[e("UserAvatar",{attrs:{userid:r.userid,size:"32",borderWitdh:2,borderColor:n.color,showName:t.ownerUser(n.task_user).length===1}})],1):t._e()}),t.ownerUser(n.task_user).length===0?e("li",{staticClass:"no-owner"},[e("Button",{attrs:{type:"primary",size:"small"},on:{click:function(r){return r.stopPropagation(),t.openTask(n,!0)}}},[t._v(t._s(t.$L("\u9886\u53D6\u4EFB\u52A1")))])],1):t._e()],2)]),e("Col",{staticClass:"row-time",attrs:{span:"3"}},[!n.complete_at&&n.end_at?e("ETooltip",{class:["task-time",n.today?"today":"",n.overdue?"overdue":""],attrs:{disabled:t.windowSmall||t.$isEEUiApp,"open-delay":600,content:n.end_at}},[e("div",{on:{click:function(r){return t.openTask(n)}}},[t._v(t._s(t.expiresFormat(n.end_at)))])]):t.showCompleteAt&&n.complete_at?e("div",{attrs:{title:n.complete_at}},[t._v(t._s(t.completeAtFormat(n.complete_at)))]):t._e()],1)],1),t.taskOpen[n.id]===!0?e("TaskRow",{attrs:{list:t.subTask(n.id),"parent-id":n.id,"fast-add-task":n.parent_id===0&&t.fastAddTask,"open-key":t.openKey},on:{command:t.dropTask}}):t._e()],1)}),t.fastAddTask||t.parentId>0?e("TaskAddSimple",{attrs:{"parent-id":t.parentId,"row-mode":""},on:{"on-priority":t.onPriority}}):t._e()],2)},yo=[];const bo={name:"TaskRow",components:{TaskMenu:ln,TaskAddSimple:_n,TaskPriority:an},props:{list:{type:Array,default:()=>[]},parentId:{type:Number,default:0},fastAddTask:{type:Boolean,default:!1},openKey:{type:String,default:"default"},showCompleteAt:{type:Boolean,default:!1}},data(){return{nowTime:$A.Time(),nowInterval:null,taskLoad:{},taskOpen:{}}},mounted(){this.nowInterval=setInterval(()=>{this.nowTime=$A.Time()},1e3)},destroyed(){clearInterval(this.nowInterval)},computed:{...kt(["cacheTasks","taskPriority","cacheColumns"]),subTask(){return function(t){return this.cacheTasks.filter(o=>o.archived_at?!1:o.parent_id==t).sort((o,e)=>o.id-e.id)}}},methods:{columnName(t){const o=this.cacheColumns.find(({id:e})=>e==t);return o?o.name:""},dropTask(t,o){const e=this.$refs[`taskMenu_${t.id}`];if(!!e){if($A.leftExists(o,"column::")){e[0].updateTask({column_id:$A.leftDelete(o,"column::")});return}if($A.leftExists(o,"priority::")){let n=this.taskPriority[parseInt($A.leftDelete(o,"priority::"))];n&&e[0].updateTask({p_level:n.priority,p_name:n.name,p_color:n.color})}}},onPriority(t){this.$emit("on-priority",t)},getSublist(t){if(t.sub_top===!0){this.openTask(t);return}if(this.taskOpen[t.id]===!0){this.$set(this.taskOpen,t.id,!1);return}this.taskLoad[t.id]!==!0&&(this.$set(this.taskLoad,t.id,!0),this.$store.dispatch("getTaskForParent",t.id).then(()=>{this.$set(this.taskLoad,t.id,!1),this.$set(this.taskOpen,t.id,!0)}).catch(({msg:o})=>{$A.modalError(o),this.$set(this.taskLoad,t.id,!1)}))},columnList(t){return this.cacheColumns.filter(({project_id:o})=>o==t)},openTask(t,o){this.$store.dispatch("openTask",t),o===!0&&setTimeout(()=>{Te.Store.set("receiveTask",!0)},300)},openMenu(t,o){const e=this.$refs[`taskMenu_${o.id}`];e&&e[0].handleClick(t)},ownerUser(t){return t.filter(({owner:o})=>o==1).sort((o,e)=>o.id-e.id)},expiresFormat(t){return $A.countDownFormat(t,this.nowTime)},completeAtFormat(t){let o=$A.Date(t,!0);return $A.formatDate("Y")===$A.formatDate("Y",o)?$A.formatDate("m-d H:i",o):$A.formatDate("Y-m-d",o)}}},Ke={};var wo=wt(bo,go,yo,!1,$o,null,null,null);function $o(t){for(let o in Ke)this[o]=Ke[o]}var _o=function(){return wo.exports}(),Co=function(){var t=this,o=t.$createElement,e=t._self._c||o;return e("div",{staticClass:"task-archived"},[e("div",{staticClass:"archived-title"},[t._v(" "+t._s(t.$L("\u5F52\u6863\u7684\u4EFB\u52A1"))+" "),e("div",{staticClass:"title-icon"},[t.loadIng>0?e("Loading"):t._e()],1)]),e("div",{staticClass:"search-container lr"},[e("ul",[e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u4EFB\u52A1\u540D"))+" ")]),e("div",{staticClass:"search-content"},[e("Input",{attrs:{clearable:""},model:{value:t.keys.name,callback:function(n){t.$set(t.keys,"name",n)},expression:"keys.name"}})],1)]),e("li",{staticClass:"search-button"},[e("Tooltip",{attrs:{theme:"light",placement:"right","transfer-class-name":"search-button-clear",transfer:""}},[e("Button",{attrs:{loading:t.loadIng>0,type:"primary",icon:"ios-search"},on:{click:t.onSearch}},[t._v(t._s(t.$L("\u641C\u7D22")))]),e("div",{attrs:{slot:"content"},slot:"content"},[t.keyIs?e("Button",{attrs:{type:"text"},on:{click:function(n){t.keyIs=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88\u7B5B\u9009")))]):e("Button",{attrs:{loading:t.loadIng>0,type:"text"},on:{click:t.getLists}},[t._v(t._s(t.$L("\u5237\u65B0")))])],1)],1)],1)])]),e("div",{staticClass:"table-page-box"},[e("Table",{attrs:{columns:t.columns,data:t.list,loading:t.loadIng>0,"no-data-text":t.$L(t.noText),stripe:""}}),e("Page",{attrs:{total:t.total,current:t.page,"page-size":t.pageSize,disabled:t.loadIng>0,simple:t.windowSmall,"page-size-opts":[10,20,30,50,100],"show-elevator":"","show-sizer":"","show-total":""},on:{"on-change":t.setPage,"on-page-size-change":t.setPageSize}})],1)])},Do=[];const xo={name:"TaskArchived",props:{projectId:{type:Number,default:0}},data(){return{loadIng:0,keys:{},keyIs:!1,columns:[{title:"ID",key:"id",width:80,render:(t,{row:o,column:e})=>t("TableAction",{props:{column:e,align:"left"}},[t("div",o.id)])},{title:this.$L("\u4EFB\u52A1\u540D\u79F0"),key:"name",minWidth:200,render:(t,{row:o})=>t("AutoTip",{on:{"on-click":()=>{this.$store.dispatch("openTask",o)}}},o.name)},{title:this.$L("\u5B8C\u6210\u65F6\u95F4"),key:"complete_at",width:168,render:(t,{row:o})=>t("div",{style:{color:o.complete_at?"":"#f00"}},o.complete_at||this.$L("\u672A\u5B8C\u6210"))},{title:this.$L("\u5F52\u6863\u65F6\u95F4"),key:"archived_at",width:168},{title:this.$L("\u5F52\u6863\u4EBA\u5458"),key:"archived_userid",minWidth:100,render:(t,{row:o})=>o.archived_userid?t("UserAvatar",{props:{userid:o.archived_userid,size:24,showName:!0}}):t("Tag",this.$L("\u7CFB\u7EDF\u81EA\u52A8"))},{title:this.$L("\u64CD\u4F5C"),align:"center",width:100,render:(t,o)=>{if(this.cacheTasks.find(n=>n.id==o.row.id&&!n.archived_at))return t("div",{style:{color:"#888"}},this.$L("\u5DF2\u8FD8\u539F"));const e=[t("span",{style:{fontSize:"13px",cursor:"pointer",color:"#84C56A"},on:{click:()=>{this.$store.dispatch("openTask",o.row)}}},this.$L("\u67E5\u770B")),t("Poptip",{props:{title:this.$L("\u4F60\u786E\u5B9A\u8981\u8FD8\u539F\u5F52\u6863\u5417\uFF1F"),confirm:!0,transfer:!0,placement:"left",okText:this.$L("\u786E\u5B9A"),cancelText:this.$L("\u53D6\u6D88")},style:{marginLeft:"6px",fontSize:"13px",cursor:"pointer",color:"#84C56A"},on:{"on-ok":()=>{this.recovery(o.row)}}},this.$L("\u8FD8\u539F")),t("Poptip",{props:{title:this.$L("\u4F60\u786E\u5B9A\u8981\u5220\u9664\u4EFB\u52A1\u5417\uFF1F"),confirm:!0,transfer:!0,placement:"left",okText:this.$L("\u786E\u5B9A"),cancelText:this.$L("\u53D6\u6D88")},style:{marginLeft:"6px",fontSize:"13px",cursor:"pointer",color:"#f00"},on:{"on-ok":()=>{this.delete(o.row)}}},this.$L("\u5220\u9664"))];return t("TableAction",{props:{column:o.column}},e)}}],list:[],page:1,pageSize:20,total:0,noText:""}},mounted(){},computed:{...kt(["cacheTasks"])},watch:{projectId:{handler(){this.getLists()},immediate:!0},keyIs(t){t||(this.keys={},this.setPage(1))}},methods:{onSearch(){this.page=1,this.getLists()},getLists(){!this.projectId||(this.loadIng++,this.keyIs=$A.objImplode(this.keys)!="",this.$store.dispatch("call",{url:"project/task/lists",data:{keys:this.keys,project_id:this.projectId,parent_id:-1,archived:"yes",sorts:{archived_at:"desc"},page:Math.max(this.page,1),pagesize:Math.max($A.runNum(this.pageSize),10)}}).then(({data:t})=>{this.page=t.current_page,this.total=t.total,this.list=t.data,this.noText="\u6CA1\u6709\u76F8\u5173\u7684\u6570\u636E"}).catch(()=>{this.noText="\u6570\u636E\u52A0\u8F7D\u5931\u8D25"}).finally(t=>{this.loadIng--}))},setPage(t){this.page=t,this.getLists()},setPageSize(t){this.page=1,this.pageSize=t,this.getLists()},recovery(t){this.list=this.list.filter(({id:o})=>o!=t.id),this.loadIng++,this.$store.dispatch("archivedTask",{task_id:t.id,type:"recovery"}).then(({msg:o})=>{$A.messageSuccess(o),this.loadIng--,this.getLists(),this.$store.dispatch("openTask",t)}).catch(({msg:o})=>{$A.modalError(o),this.loadIng--,this.getLists()})},delete(t){this.list=this.list.filter(({id:o})=>o!=t.id),this.loadIng++,this.$store.dispatch("removeTask",{task_id:t.id}).then(({msg:o})=>{$A.messageSuccess(o),this.loadIng--,this.getLists()}).catch(({msg:o})=>{$A.modalError(o),this.loadIng--,this.getLists()})}}},Je={};var So=wt(xo,Co,Do,!1,To,null,null,null);function To(t){for(let o in Je)this[o]=Je[o]}var Io=function(){return So.exports}(),ko=function(){var t=this,o=t.$createElement,e=t._self._c||o;return e("div",{staticClass:"project-workflow"},[e("div",{staticClass:"workflow-title"},[t._v(" "+t._s(t.$L("\u5DE5\u4F5C\u6D41\u8BBE\u7F6E"))+" "),e("div",{staticClass:"title-icon"},[t.loadIng>0?e("Loading"):e("Icon",{attrs:{type:"ios-refresh"},on:{click:t.getData}})],1)]),t.list.length>0?e("div",{staticClass:"workflow-content"},[e("Collapse",{attrs:{accordion:""},model:{value:t.openIndex,callback:function(n){t.openIndex=n},expression:"openIndex"}},t._l(t.list,function(n){return e("Panel",{key:n.id,attrs:{name:"index_"+n.id}},[e("div",{staticClass:"workflow-item"},[e("div",{staticClass:"workflow-name"},[t._v(t._s(n.name))]),e("div",{staticClass:"workflow-status"},t._l(n.project_flow_item,function(a){return e("div",{class:a.status},[t._v(t._s(a.name))])}),0),e("div",{staticClass:"workflow-save",on:{click:function(a){a.stopPropagation()}}},[t.contrast(n.project_flow_item,n.project_flow_bak)?[e("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:function(a){return t.onSave(n)}}},[t._v(t._s(t.$L("\u4FDD\u5B58")))]),n.id>0?e("Button",{attrs:{disabled:t.loadIng>0,type:"primary",ghost:""},on:{click:function(a){return t.onReduction(n,a)}}},[t._v(t._s(t.$L("\u8FD8\u539F")))]):t._e()]:t._e(),e("Button",{attrs:{disabled:t.loadIng>0,type:"error",ghost:""},on:{click:function(a){return t.onDelete(n)}}},[t._v(t._s(t.$L("\u5220\u9664")))])],2)]),e("div",{staticClass:"taskflow-config",attrs:{slot:"content"},slot:"content"},[e("div",{staticClass:"taskflow-config-table"},[e("div",{staticClass:"taskflow-config-table-left-container"},[e("div",{staticClass:"taskflow-config-table-column-header left-header"},[t._v(t._s(t.$L("\u914D\u7F6E\u9879")))]),e("div",{ref:`overlay_${n.id}`,refInFor:!0,staticClass:"taskflow-config-table-column-body scrollbar-overlay"},[e("div",{staticClass:"taskflow-config-table-block"},[e("div",{staticClass:"taskflow-config-table-block-title"},[t._v(t._s(t.$L("\u8BBE\u7F6E\u72B6\u6001\u4E3A")))]),e("div",{staticClass:"taskflow-config-table-block-item"},[e("div",[e("div",{staticClass:"title"},[t._v(t._s(t.$L("\u5F00\u59CB\u72B6\u6001")))]),e("div",{staticClass:"subtitle"},[t._v(t._s(t.$L("\u65B0\u5EFA\u4EFB\u52A1\u9ED8\u8BA4\u72B6\u6001")))])])]),e("div",{staticClass:"taskflow-config-table-block-item"},[e("div",[e("div",{staticClass:"title"},[t._v(t._s(t.$L("\u8FDB\u884C\u4E2D")))]),e("div",{staticClass:"subtitle"},[t._v(t._s(t.$L("\u53EF\u8BBE\u7F6E\u591A\u4E2A\u72B6\u6001\u4E3A\u8FDB\u884C\u4E2D")))])])]),e("div",{staticClass:"taskflow-config-table-block-item"},[e("div",[e("div",{staticClass:"title"},[t._v(t._s(t.$L("\u9A8C\u6536/\u6D4B\u8BD5")))]),e("div",{staticClass:"subtitle"},[t._v(t._s(t.$L("\u53EA\u80FD\u8BBE\u7F6E\u5355\u4E2A\u72B6\u6001\u4E3A\u9A8C\u6536/\u6D4B\u8BD5")))])])]),e("div",{staticClass:"taskflow-config-table-block-item"},[e("div",[e("div",{staticClass:"title"},[t._v(t._s(t.$L("\u7ED3\u675F\u72B6\u6001")))]),e("div",{staticClass:"subtitle"},[t._v(t._s(t.$L("\u8BE5\u72B6\u6001\u4E0B\u4EFB\u52A1\u81EA\u52A8\u6807\u8BB0\u5B8C\u6210")))])])])]),e("div",{staticClass:"taskflow-config-table-block hr"},[e("div",{staticClass:"taskflow-config-table-block-title"},[t._v(t._s(t.$L("\u53EF\u6D41\u8F6C\u5230")))]),t._l(n.project_flow_item,function(a){return e("div",{staticClass:"taskflow-config-table-block-item"},[e("span",{staticClass:"transform-status-name"},[t._v(t._s(a.name))])])})],2)])]),e("div",{staticClass:"taskflow-config-table-right-container"},[e("Draggable",{staticClass:"taskflow-config-table-list-wrapper",attrs:{list:n.project_flow_item,animation:150,disabled:t.windowSmall||t.$isEEUiApp,tag:"div",draggable:".column-border"},on:{sort:function(a){}}},[t._l(n.project_flow_item,function(a){return e("div",{staticClass:"taskflow-config-table-status-column column-border",class:a.status},[e("div",{staticClass:"taskflow-config-table-status-item taskflow-config-table-column-header"},[e("div",{staticClass:"status-label-with-menu",class:a.status},[e("div",{staticClass:"name"},[t._v(t._s(t.$L(a.name)))]),e("EDropdown",{staticClass:"more",class:{opacity:a.userids.length>0},attrs:{trigger:"click"},on:{command:function(r){return t.onMore(r,a)}}},[e("div",{staticClass:"more-icon"},[a.userids.length>1?e("EAvatar",{attrs:{size:20}},[t._v(t._s(a.userids.length))]):a.userids.length>0?e("UserAvatar",{attrs:{userid:a.userids[0],size:20,tooltipDisabled:""}}):e("Icon",{attrs:{type:"ios-more"}})],1),e("EDropdownMenu",{staticClass:"taskflow-config-more-dropdown-menu",attrs:{slot:"dropdown"},slot:"dropdown"},[a.userids.length>0?e("EDropdownItem",{attrs:{command:"user"}},[e("div",{staticClass:"users"},t._l(a.userids,function(r,s){return e("UserAvatar",{key:s,attrs:{userid:r,size:28,borderWitdh:1,showName:a.userids.length===1,tooltipDisabled:""}})}),1)]):t._e(),e("EDropdownItem",{attrs:{command:"user"}},[e("div",{staticClass:"item"},[e("Icon",{attrs:{type:"md-person"}}),t._v(" "+t._s(t.$L("\u72B6\u6001\u8D1F\u8D23\u4EBA"))+" ")],1)]),e("EDropdownItem",{attrs:{command:"name"}},[e("div",{staticClass:"item"},[e("Icon",{attrs:{type:"md-create"}}),t._v(t._s(t.$L("\u4FEE\u6539\u540D\u79F0"))+" ")],1)]),e("EDropdownItem",{attrs:{command:"remove"}},[e("div",{staticClass:"item delete"},[e("Icon",{attrs:{type:"md-trash"}}),t._v(t._s(t.$L("\u5220\u9664"))+" ")],1)])],1)],1)],1)]),e("div",{ref:`overlay_${n.id}`,refInFor:!0,staticClass:"taskflow-config-table-column-body scrollbar-overlay"},[e("div",{staticClass:"taskflow-config-table-block"},[e("div",{staticClass:"taskflow-config-table-block-title"}),e("RadioGroup",{model:{value:a.status,callback:function(r){t.$set(a,"status",r)},expression:"item.status"}},[e("Radio",{attrs:{label:"start"}},[e("span")]),e("Radio",{attrs:{label:"progress"}},[e("span")]),e("Radio",{attrs:{label:"test"}},[e("span")]),e("Radio",{attrs:{label:"end"}},[e("span")])],1)],1),e("div",{staticClass:"taskflow-config-table-block"},[e("div",{staticClass:"taskflow-config-table-block-title"}),e("CheckboxGroup",{on:{"on-change":function(r){return t.onTurns(a)}},model:{value:a.turns,callback:function(r){t.$set(a,"turns",r)},expression:"item.turns"}},t._l(n.project_flow_item,function(r){return e("Checkbox",{key:r.id,attrs:{label:r.id,disabled:r.id==a.id}},[e("span")])}),1)],1)])])}),e("div",{staticClass:"taskflow-config-table-status-column addnew",on:{click:function(a){return t.onAdd(n)}}},[t._v(t._s(t.$L("\u6DFB\u52A0\u72B6\u6001")))])],2)],1)])])])}),1)],1):t.loadIng==0?e("div",{staticClass:"workflow-no"},[t._v(" "+t._s(t.$L("\u5F53\u524D\u9879\u76EE\u8FD8\u6CA1\u6709\u521B\u5EFA\u5DE5\u4F5C\u6D41"))+" "),e("Button",{attrs:{type:"primary"},on:{click:t.onCreate}},[t._v(t._s(t.$L("\u521B\u5EFA\u5DE5\u4F5C\u6D41")))])],1):t._e(),e("Modal",{attrs:{title:`${t.$L("\u72B6\u6001\u8D1F\u8D23\u4EBA")} (${t.userData.name})`,"mask-closable":!1},model:{value:t.userShow,callback:function(n){t.userShow=n},expression:"userShow"}},[e("Form",{attrs:{model:t.userData,"label-width":"auto"},nativeOn:{submit:function(n){n.preventDefault()}}},[e("FormItem",{attrs:{prop:"userids",label:t.$L("\u72B6\u6001\u8D1F\u8D23\u4EBA")}},[e("UserInput",{attrs:{"project-id":t.projectId,"multiple-max":5,placeholder:t.$L("\u9009\u62E9\u72B6\u6001\u8D1F\u8D23\u4EBA")},model:{value:t.userData.userids,callback:function(n){t.$set(t.userData,"userids",n)},expression:"userData.userids"}})],1),e("FormItem",{attrs:{prop:"usertype",label:t.$L("\u6D41\u8F6C\u6A21\u5F0F")}},[e("RadioGroup",{model:{value:t.userData.usertype,callback:function(n){t.$set(t.userData,"usertype",n)},expression:"userData.usertype"}},[e("Radio",{attrs:{label:"add"}},[t._v(t._s(t.$L("\u6DFB\u52A0\u6A21\u5F0F")))]),e("Radio",{attrs:{label:"replace"}},[t._v(t._s(t.$L("\u6D41\u8F6C\u6A21\u5F0F")))]),e("Radio",{attrs:{label:"merge"}},[t._v(t._s(t.$L("\u5254\u9664\u6A21\u5F0F")))])],1),t.userData.usertype=="replace"?e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L(`\u6D41\u8F6C\u5230\u3010${t.userData.name}\u3011\u65F6\u6539\u53D8\u4EFB\u52A1\u8D1F\u8D23\u4EBA\u4E3A\u72B6\u6001\u8D1F\u8D23\u4EBA\uFF0C\u539F\u672C\u7684\u4EFB\u52A1\u8D1F\u8D23\u4EBA\u79FB\u81F3\u534F\u52A9\u4EBA\u5458\u3002`)))]):t.userData.usertype=="merge"?e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L(`\u6D41\u8F6C\u5230\u3010${t.userData.name}\u3011\u65F6\u6539\u53D8\u4EFB\u52A1\u8D1F\u8D23\u4EBA\u4E3A\u72B6\u6001\u8D1F\u8D23\u4EBA\uFF08\u5E76\u4FDD\u7559\u64CD\u4F5C\u72B6\u6001\u7684\u4EBA\u5458\uFF09\uFF0C\u539F\u672C\u7684\u4EFB\u52A1\u8D1F\u8D23\u4EBA\u79FB\u81F3\u534F\u52A9\u4EBA\u5458\u3002`)))]):e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L(`\u6D41\u8F6C\u5230\u3010${t.userData.name}\u3011\u65F6\u6DFB\u52A0\u72B6\u6001\u8D1F\u8D23\u4EBA\u81F3\u4EFB\u52A1\u8D1F\u8D23\u4EBA\u3002`)))])],1),e("FormItem",{attrs:{prop:"userlimit",label:t.$L("\u9650\u5236\u8D1F\u8D23\u4EBA")}},[e("iSwitch",{attrs:{"true-value":1,"false-value":0},model:{value:t.userData.userlimit,callback:function(n){t.$set(t.userData,"userlimit",n)},expression:"userData.userlimit"}}),t.userData.userlimit===1?e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L(`\u6D41\u8F6C\u5230\u3010${t.userData.name}\u3011\u65F6\uFF0C[\u4EFB\u52A1\u8D1F\u8D23\u4EBA] \u548C [\u9879\u76EE\u7BA1\u7406\u5458] \u53EF\u4EE5\u4FEE\u6539\u72B6\u6001\u3002`)))]):e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L(`\u6D41\u8F6C\u5230\u3010${t.userData.name}\u3011\u65F6\uFF0C[\u4EFB\u52A1\u8D1F\u8D23\u4EBA] \u548C [\u9879\u76EE\u7BA1\u7406\u5458] \u53EF\u4EE5\u4FEE\u6539\u72B6\u6001\u3002`)))])],1)],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(n){t.userShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary"},on:{click:t.onUser}},[t._v(t._s(t.$L("\u4FDD\u5B58")))])],1)],1)],1)},jo=[];const Eo={name:"ProjectWorkflow",components:{UserInput:sn,Draggable:$n},props:{projectId:{type:Number,default:0}},data(){return{loadIng:0,list:[],openIndex:"",userShow:!1,userData:{}}},mounted(){},watch:{projectId:{handler(t){t&&this.getData()},immediate:!0}},methods:{getData(){this.loadIng++,this.$store.dispatch("call",{url:"project/flow/list",data:{project_id:this.projectId}}).then(({data:t})=>{this.list=t.map(o=>(o.project_flow_bak=JSON.stringify(o.project_flow_item),o)),this.openIndex=this.list.length===1?"index_"+this.list[0].id:"",this.$nextTick(this.syncScroller)}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.loadIng--})},syncScroller(){this.list.some(t=>{this.$refs[`overlay_${t.id}`]&&this.$refs[`overlay_${t.id}`].some(o=>{Object.keys(o.attributes).includes("sync-scroller")||(o.setAttribute("sync-scroller",!0),o.addEventListener("scroll",({target:e})=>{let n=e.scrollTop,a=e.scrollLeft;this.$nextTick(()=>{this.$refs[`overlay_${t.id}`].some(r=>{r!=o&&r.scrollTo(a,n)})})}))})})},contrast(t,o){return JSON.stringify(t)!=o},existDiff(){return!!this.list.find(t=>this.contrast(t.project_flow_item,t.project_flow_bak))},onCreate(){let t=-1*$A.randNum(1e3,1e4);this.list.push({id:t,name:"Default",project_flow_item:[{id:-10,name:"\u5F85\u5904\u7406",status:"start",turns:[-10,-11,-12,-13,-14],userids:[],usertype:"add",userlimit:0},{id:-11,name:"\u8FDB\u884C\u4E2D",status:"progress",turns:[-10,-11,-12,-13,-14],userids:[],usertype:"add",userlimit:0},{id:-12,name:"\u5F85\u6D4B\u8BD5",status:"test",turns:[-10,-11,-12,-13,-14],userids:[],usertype:"add",userlimit:0},{id:-13,name:"\u5DF2\u5B8C\u6210",status:"end",turns:[-10,-11,-12,-13,-14],userids:[],usertype:"add",userlimit:0},{id:-14,name:"\u5DF2\u53D6\u6D88",status:"end",turns:[-10,-11,-12,-13,-14],userids:[],usertype:"add",userlimit:0}]}),this.openIndex="index_"+t,this.$nextTick(this.syncScroller)},onDelete(t){$A.modalConfirm({title:"\u5220\u9664\u5DE5\u4F5C\u6D41",content:"\u4F60\u786E\u5B9A\u8981\u5220\u9664\u5DE5\u4F5C\u6D41\u5417\uFF1F",loading:!0,onOk:()=>{if(t.id>0)return new Promise((e,n)=>{this.loadIng++,this.$store.dispatch("call",{url:"project/flow/delete",data:{project_id:this.projectId}}).then(({msg:a})=>{e(a);let r=this.list.findIndex(({id:s})=>s==t.id);r>-1&&this.list.splice(r,1)}).catch(({msg:a})=>{n(a)}).finally(a=>{this.loadIng--})});const o=this.list.findIndex(({id:e})=>e==t.id);o>-1&&this.list.splice(o,1)}})},onMore(t,o){switch(t){case"user":this.$set(this.userData,"id",o.id),this.$set(this.userData,"name",o.name),this.$set(this.userData,"userids",o.userids),this.$set(this.userData,"usertype",o.usertype),this.$set(this.userData,"userlimit",o.userlimit),this.userShow=!0;break;case"name":this.onName(o);break;case"remove":this.onRemove(o);break}},onUser(){this.userShow=!1,this.list.some(t=>{let o=t.project_flow_item.find(e=>e.id==this.userData.id);o&&(this.$set(o,"userids",this.userData.userids),this.$set(o,"usertype",this.userData.usertype),this.$set(o,"userlimit",this.userData.userlimit))})},onName(t){$A.modalInput({value:t.name,title:"\u4FEE\u6539\u540D\u79F0",placeholder:"\u8BF7\u8F93\u5165\u6D41\u7A0B\u540D\u79F0",onOk:o=>{if(!o)return"\u8BF7\u8F93\u5165\u6D41\u7A0B\u540D\u79F0";this.$set(t,"name",o)}})},onRemove(t){this.list.some(o=>{let e=o.project_flow_item.findIndex(({id:n})=>n==t.id);e>-1&&o.project_flow_item.splice(e,1)})},onTurns(t){this.$set(t,"turns",t.turns.sort())},onAdd(t){$A.modalInput({title:"\u6DFB\u52A0\u72B6\u6001",placeholder:"\u8BF7\u8F93\u5165\u72B6\u6001\u540D\u79F0",onOk:o=>{if(!o)return"\u8BF7\u8F93\u5165\u72B6\u6001\u540D\u79F0";const e=$A.randNum(1e5,999999)*-1,n=t.project_flow_item.map(({id:a})=>a);t.project_flow_item.push({id:e,name:o,status:"end",turns:n,userids:[],usertype:"add",userlimit:0}),t.project_flow_item.some(a=>{a.turns.push(e)})}})},onReduction(t){this.$set(t,"project_flow_item",JSON.parse(t.project_flow_bak))},onSave(t){let o=0;t.project_flow_item.some(e=>{e.sort=o++}),this.loadIng++,this.$store.dispatch("call",{url:"project/flow/save",data:{project_id:this.projectId,flows:t.project_flow_item},method:"post"}).then(({data:e,msg:n})=>{$.messageSuccess(n),e.project_flow_bak=JSON.stringify(e.project_flow_item);let a=this.list.findIndex(({id:r})=>r==t.id);a>-1?this.list.splice(a,1,e):this.list.push(e),this.openIndex="index_"+e.id,this.$nextTick(this.syncScroller)}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.loadIng--})},saveAll(){this.list.some(t=>{this.contrast(t.project_flow_item,t.project_flow_bak)&&this.onSave(t)})}}},Ze={};var Lo=wt(Eo,ko,jo,!1,Ao,null,null,null);function Ao(t){for(let o in Ze)this[o]=Ze[o]}var Oo=function(){return Lo.exports}(),Po=function(){var t=this,o=t.$createElement,e=t._self._c||o;return e("div",{staticClass:"task-deleted"},[e("div",{staticClass:"deleted-title"},[t._v(" "+t._s(t.$L("\u5220\u9664\u7684\u4EFB\u52A1"))+" "),e("div",{staticClass:"title-icon"},[t.loadIng>0?e("Loading"):t._e()],1)]),e("div",{staticClass:"search-container lr"},[e("ul",[e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u4EFB\u52A1\u540D"))+" ")]),e("div",{staticClass:"search-content"},[e("Input",{attrs:{clearable:""},model:{value:t.keys.name,callback:function(n){t.$set(t.keys,"name",n)},expression:"keys.name"}})],1)]),e("li",{staticClass:"search-button"},[e("Tooltip",{attrs:{theme:"light",placement:"right","transfer-class-name":"search-button-clear",transfer:""}},[e("Button",{attrs:{loading:t.loadIng>0,type:"primary",icon:"ios-search"},on:{click:t.onSearch}},[t._v(t._s(t.$L("\u641C\u7D22")))]),e("div",{attrs:{slot:"content"},slot:"content"},[t.keyIs?e("Button",{attrs:{type:"text"},on:{click:function(n){t.keyIs=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88\u7B5B\u9009")))]):e("Button",{attrs:{loading:t.loadIng>0,type:"text"},on:{click:t.getLists}},[t._v(t._s(t.$L("\u5237\u65B0")))])],1)],1)],1)])]),e("div",{staticClass:"table-page-box"},[e("Table",{attrs:{columns:t.columns,data:t.list,loading:t.loadIng>0,"no-data-text":t.$L(t.noText),stripe:""}}),e("Page",{attrs:{total:t.total,current:t.page,"page-size":t.pageSize,disabled:t.loadIng>0,simple:t.windowSmall,"page-size-opts":[10,20,30,50,100],"show-elevator":"","show-sizer":"","show-total":""},on:{"on-change":t.setPage,"on-page-size-change":t.setPageSize}})],1)])},Mo=[];const No={name:"TaskDeleted",props:{projectId:{type:Number,default:0}},data(){return{loadIng:0,keys:{},keyIs:!1,columns:[{title:"ID",key:"id",width:80,render:(t,{row:o,column:e})=>t("TableAction",{props:{column:e,align:"left"}},[t("div",o.id)])},{title:this.$L("\u4EFB\u52A1\u540D\u79F0"),key:"name",minWidth:200,render:(t,{row:o})=>t("AutoTip",o.name)},{title:this.$L("\u521B\u5EFA\u65F6\u95F4"),key:"created_at",width:168},{title:this.$L("\u5220\u9664\u65F6\u95F4"),key:"deleted_at",width:168},{title:this.$L("\u5220\u9664\u4EBA\u5458"),key:"deleted_userid",minWidth:100,render:(t,{row:o})=>o.deleted_userid?t("UserAvatar",{props:{userid:o.deleted_userid,size:24,showName:!0}}):t("span","-")},{title:this.$L("\u64CD\u4F5C"),align:"center",width:100,render:(t,o)=>{const e=[t("Poptip",{props:{title:this.$L("\u4F60\u786E\u5B9A\u8981\u8FD8\u539F\u5220\u9664\u5417\uFF1F"),confirm:!0,transfer:!0,placement:"left",okText:this.$L("\u786E\u5B9A"),cancelText:this.$L("\u53D6\u6D88")},style:{fontSize:"13px",cursor:"pointer",color:"#84C56A"},on:{"on-ok":()=>{this.recovery(o.row)}}},this.$L("\u8FD8\u539F"))];return t("TableAction",{props:{column:o.column}},e)}}],list:[],page:1,pageSize:20,total:0,noText:""}},mounted(){},computed:{...kt(["cacheTasks"])},watch:{projectId:{handler(){this.getLists()},immediate:!0},keyIs(t){t||(this.keys={},this.setPage(1))}},methods:{onSearch(){this.page=1,this.getLists()},getLists(){!this.projectId||(this.loadIng++,this.keyIs=$A.objImplode(this.keys)!="",this.$store.dispatch("call",{url:"project/task/lists",data:{keys:this.keys,project_id:this.projectId,parent_id:-1,deleted:"yes",sorts:{deleted_at:"desc"},page:Math.max(this.page,1),pagesize:Math.max($A.runNum(this.pageSize),10)}}).then(({data:t})=>{this.page=t.current_page,this.total=t.total,this.list=t.data,this.noText="\u6CA1\u6709\u76F8\u5173\u7684\u6570\u636E"}).catch(()=>{this.noText="\u6570\u636E\u52A0\u8F7D\u5931\u8D25"}).finally(t=>{this.loadIng--}))},setPage(t){this.page=t,this.getLists()},setPageSize(t){this.page=1,this.pageSize=t,this.getLists()},recovery(t){this.list=this.list.filter(({id:o})=>o!=t.id),this.loadIng++,this.$store.dispatch("removeTask",{task_id:t.id,type:"recovery"}).then(({msg:o})=>{$A.messageSuccess(o),this.loadIng--,this.getLists(),this.$store.dispatch("openTask",t)}).catch(({msg:o})=>{$A.modalError(o),this.loadIng--,this.getLists()})}}},Qe={};var Fo=wt(No,Po,Mo,!1,Ro,null,null,null);function Ro(t){for(let o in Qe)this[o]=Qe[o]}var Wo=function(){return Fo.exports}(),Bo=function(){var t=this,o=t.$createElement,e=t._self._c||o;return e("div",{staticClass:"common-gantt"},[e("div",{staticClass:"gantt-left",style:{width:t.menuWidth+"px"}},[e("div",{staticClass:"gantt-title"},[e("div",{staticClass:"gantt-title-text"},[t._v(t._s(t.$L("\u4EFB\u52A1\u540D\u79F0")))])]),e("ul",{ref:"ganttItem",staticClass:"gantt-item",on:{scroll:t.itemScrollListener,mouseenter:function(n){t.mouseType="item"}}},t._l(t.lists,function(n,a){return e("li",{key:a},[n.overdue?e("div",{staticClass:"item-overdue",on:{click:function(r){return t.clickItem(n)}}},[t._v(t._s(t.$L("\u5DF2\u8D85\u671F")))]):t._e(),e("div",{staticClass:"item-title",class:{complete:n.complete,overdue:n.overdue},on:{click:function(r){return t.clickItem(n)}}},[t._v(t._s(n.label))]),e("Icon",{staticClass:"item-icon",attrs:{type:"ios-locate-outline"},on:{click:function(r){return t.scrollPosition(a)}}})],1)}),0)]),e("div",{ref:"ganttRight",staticClass:"gantt-right"},[e("div",{staticClass:"gantt-chart"},[e("ul",{staticClass:"gantt-month"},t._l(t.monthNum,function(n,a){return e("li",{key:a,style:t.monthStyle(a)},[e("div",{staticClass:"month-format"},[t._v(t._s(t.monthFormat(a)))])])}),0),e("ul",{staticClass:"gantt-date",on:{mousedown:t.dateMouseDown}},t._l(t.dateNum,function(n,a){return e("li",{key:a,style:t.dateStyle(a)},[e("div",{staticClass:"date-format"},[e("div",{staticClass:"format-day"},[t._v(t._s(t.dateFormat(a,"day")))]),t.dateWidth>46?e("div",{staticClass:"format-week"},[t._v(t._s(t.dateFormat(a,"week")))]):t._e()])])}),0),e("ul",{ref:"ganttTimeline",staticClass:"gantt-timeline",on:{scroll:t.timelineScrollListener,mouseenter:function(n){t.mouseType="timeline"}}},t._l(t.lists,function(n,a){return e("li",{key:a},[e("div",{staticClass:"timeline-item",style:t.itemStyle(n),on:{mousedown:function(r){return t.itemMouseDown(r,n)}}},[e("div",{staticClass:"timeline-title",attrs:{title:n.label}},[t._v(t._s(n.label))]),e("div",{staticClass:"timeline-resizer"})])])}),0)])])])},Uo=[];const zo={name:"GanttView",props:{lists:{type:Array},menuWidth:{type:Number,default:300},itemWidth:{type:Number,default:100}},data(){return{mouseType:"",mouseWidth:0,mouseScaleWidth:0,dateWidth:100,ganttWidth:0,mouseItem:null,mouseBak:{},dateMove:null}},mounted(){this.dateWidth=this.itemWidth,this.$refs.ganttRight.addEventListener("mousewheel",this.handleScroll,!1),document.addEventListener("mousemove",this.itemMouseMove),document.addEventListener("mouseup",this.itemMouseUp),window.addEventListener("resize",this.handleResize,!1),this.handleResize()},beforeDestroy(){this.$refs.ganttRight.removeEventListener("mousewheel",this.handleScroll,!1),document.removeEventListener("mousemove",this.itemMouseMove),document.removeEventListener("mouseup",this.itemMouseUp),window.removeEventListener("resize",this.handleResize,!1)},watch:{itemWidth(t){this.dateWidth=t}},computed:{monthNum(){const{ganttWidth:t,dateWidth:o}=this;return Math.floor(t/o/30)+2},monthStyle(){const{mouseWidth:t,dateWidth:o}=this;return function(e){let n=t==0?0:t/o,a=new Date,r=new Date(a.getFullYear(),a.getMonth(),a.getDate(),0,0,0),s=new Date(r.getTime()+n*864e5),i=new Date(s.getFullYear(),s.getMonth()+1,0,23,59,59),l=(i-s)/1e3/60/60/24,c=o*l;return e>0&&(i=new Date(s.getFullYear(),s.getMonth()+1+e,0),c=i.getDate()*o),{width:c+"px"}}},monthFormat(){const{mouseWidth:t,dateWidth:o}=this;return function(e){let n=t==0?0:t/o,a=new Date,r=new Date(a.getFullYear(),a.getMonth(),a.getDate(),0,0,0),s=new Date(r.getTime()+n*864e5);return e>0&&(s=new Date(s.getFullYear(),s.getMonth()+1+e,0)),$A.formatDate("Y-m",s)}},dateNum(){const{ganttWidth:t,dateWidth:o}=this;return Math.floor(t/o)+2},dateStyle(){const{mouseWidth:t,dateWidth:o}=this;return function(e){const n={};let a=t==0?0:t/o,r=Math.floor(a)+e;a==Math.floor(a)&&r--;let s=t==0?e-1:r,i=new Date(new Date().getTime()+s*864e5);[0,6].indexOf(i.getDay())!==-1&&(n.backgroundColor="#f9fafb");let l=o;return e==0&&(l=Math.abs((t%l-l)%l)),n.width=l+"px",n}},dateFormat(){const{mouseWidth:t,dateWidth:o}=this;return function(e,n){let a=t==0?0:t/o,r=Math.floor(a)+e;a==Math.floor(a)&&r--;let s=t==0?e-1:r,i=new Date(new Date().getTime()+s*864e5);return n=="day"?i.getDate():n=="week"?this.$L(`\u661F\u671F${"\u65E5\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D".charAt(i.getDay())}`):i}},itemStyle(){const{mouseWidth:t,dateWidth:o,ganttWidth:e}=this;return function(n){const{start:a,end:r}=n.time,{style:s,moveX:i,moveW:l}=n;let c=new Date,d=new Date(c.getFullYear(),c.getMonth(),c.getDate(),0,0,0).getTime(),u=(a-d)/1e3/60/60/24,f=(r-d)/1e3/60/60/24,v=o*u+t*-1,h=o*(f-u);typeof i=="number"&&(v+=i),typeof l=="number"&&(h+=l);const m={left:Math.min(Math.max(v,h*-1.2),e*1.2).toFixed(2)+"px",width:h.toFixed(2)+"px"};return v<0&&Math.abs(v)e&&vo.scrollHeight-o.clientHeight&&(e=o.scrollHeight-o.clientHeight),o.scrollTop!=e&&(this.mouseType="timeline",o.scrollTop=e)}t.deltaX!=0&&(this.mouseWidth+=t.deltaX,this.mouseScaleWidth+=t.deltaX*(100/this.dateWidth))},handleResize(){this.ganttWidth=this.$refs.ganttTimeline.clientWidth},dateMouseDown(t){t.preventDefault(),this.mouseItem=null,this.dateMove={clientX:t.clientX}},itemMouseDown(t,o){t.preventDefault();let e="moveX";t.target.className=="timeline-resizer"&&(e="moveW"),typeof o[e]!="number"&&this.$set(o,e,0),this.mouseBak={type:e,clientX:t.clientX,value:o[e]},this.mouseItem=o,this.dateMove=null},itemMouseMove(t){if(this.mouseItem!=null){t.preventDefault();const o=this.mouseBak.value+(t.clientX-this.mouseBak.clientX);if(this.mouseBak.type==="moveW"){const e=864e5/this.dateWidth,{start:n,end:a}=this.mouseItem.time;let r=o*e;if(a+r-n<=0)return}this.$set(this.mouseItem,this.mouseBak.type,o)}else if(this.dateMove!=null){t.preventDefault();let o=(this.dateMove.clientX-t.clientX)*5;this.dateMove.clientX=t.clientX,this.mouseWidth+=o,this.mouseScaleWidth+=o*(100/this.dateWidth)}},itemMouseUp(t){if(this.mouseItem!=null){const{start:o,end:e}=this.mouseItem.time;let n=!1,a=864e5/this.dateWidth;if(typeof this.mouseItem.moveX=="number"&&this.mouseItem.moveX!=0){let r=this.mouseItem.moveX*a;this.$set(this.mouseItem.time,"start",o+r),this.$set(this.mouseItem.time,"end",e+r),this.$set(this.mouseItem,"moveX",0),n=!0}if(typeof this.mouseItem.moveW=="number"&&this.mouseItem.moveW!=0){let r=this.mouseItem.moveW*a;this.$set(this.mouseItem.time,"end",e+r),this.$set(this.mouseItem,"moveW",0),n=!0}n?this.$emit("on-change",this.mouseItem):t.target.className=="timeline-title"&&this.clickItem(this.mouseItem),this.mouseItem=null}else this.dateMove!=null&&(this.dateMove=null)},scrollPosition(t){let o=new Date,e=new Date(o.getFullYear(),o.getMonth(),o.getDate(),0,0,0),n=864e5/this.dateWidth,a=(this.lists[t].time.start-e)/n-this.dateWidth-this.mouseWidth;this.mouseWidth+=a,this.mouseScaleWidth+=a*(100/this.dateWidth)},clickItem(t){this.$emit("on-click",t)}}},qe={};var Go=wt(zo,Bo,Uo,!1,Ho,null,null,null);function Ho(t){for(let o in qe)this[o]=qe[o]}var Xo=function(){return Go.exports}(),Yo=function(){var t=this,o=t.$createElement,e=t._self._c||o;return e("div",{staticClass:"project-gstc-gantt"},[e("GanttView",{attrs:{lists:t.lists,menuWidth:t.menuWidth,itemWidth:80},on:{"on-change":t.onChange,"on-click":t.onClick}}),e("Dropdown",{staticClass:"project-gstc-dropdown-filtr",style:t.dropStyle,attrs:{trigger:"click"},on:{"on-click":t.onSwitchColumn}},[e("Icon",{staticClass:"project-gstc-dropdown-icon",class:{filtr:t.filtrProjectId>0},attrs:{type:"md-funnel"}}),e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[e("DropdownItem",{class:{"dropdown-active":t.filtrProjectId==0},attrs:{name:0}},[t._v(t._s(t.$L("\u5168\u90E8")))]),t._l(t.projectColumn,function(n,a){return e("DropdownItem",{key:a,class:{"dropdown-active":t.filtrProjectId==n.id},attrs:{name:n.id}},[t._v(" "+t._s(n.name)+" "),n.tasks?e("span",[t._v("("+t._s(t.filtrLength(n.tasks))+")")]):t._e()])})],2)],1),e("div",{staticClass:"project-gstc-edit",class:{info:t.editShowInfo,visible:t.editData&&t.editData.length>0}},[e("div",{staticClass:"project-gstc-edit-info"},[e("Table",{attrs:{size:"small","max-height":"600",columns:t.editColumns,data:t.editData}}),e("div",{staticClass:"project-gstc-edit-btns"},[e("Button",{attrs:{loading:t.editLoad>0,size:"small",type:"text"},on:{click:function(n){return t.editSubmit(!1)}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{loading:t.editLoad>0,size:"small",type:"primary"},on:{click:function(n){return t.editSubmit(!0)}}},[t._v(t._s(t.$L("\u4FDD\u5B58")))]),e("Icon",{staticClass:"zoom",attrs:{type:"md-arrow-dropright"},on:{click:function(n){t.editShowInfo=!1}}})],1)],1),e("div",{staticClass:"project-gstc-edit-small"},[e("div",{staticClass:"project-gstc-edit-text",on:{click:function(n){t.editShowInfo=!0}}},[t._v(t._s(t.$L("\u672A\u4FDD\u5B58\u8BA1\u5212\u65F6\u95F4"))+": "),t.editData?e("span",[t._v(t._s(t.editData.length))]):t._e()]),e("Button",{attrs:{loading:t.editLoad>0,size:"small",type:"text"},on:{click:function(n){return t.editSubmit(!1)}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{loading:t.editLoad>0,size:"small",type:"primary"},on:{click:function(n){return t.editSubmit(!0)}}},[t._v(t._s(t.$L("\u4FDD\u5B58")))])],1)])],1)},Vo=[];const Ko={name:"ProjectGantt",components:{GanttView:Xo},props:{projectColumn:{default:[]},flowInfo:{default:{}}},data(){return{lists:[],filtrProjectId:0,editColumns:[{title:this.$L("\u4EFB\u52A1\u540D\u79F0"),key:"label",minWidth:150,ellipsis:!0},{title:this.$L("\u539F\u8BA1\u5212\u65F6\u95F4"),minWidth:135,align:"center",render:(t,{row:o})=>o.notime===!0?t("span","-"):t("div",{style:{}},[t("div",$A.formatDate("Y-m-d H:i",Math.round(o.baktime.start/1e3))),t("div",$A.formatDate("Y-m-d H:i",Math.round(o.baktime.end/1e3)))])},{title:this.$L("\u65B0\u8BA1\u5212\u65F6\u95F4"),minWidth:135,align:"center",render:(t,{row:o})=>t("div",{style:{}},[t("div",$A.formatDate("Y-m-d H:i",Math.round(o.newTime.start/1e3))),t("div",$A.formatDate("Y-m-d H:i",Math.round(o.newTime.end/1e3)))])}],editData:[],editLoad:0,editShowInfo:!1}},mounted(){this.initData()},computed:{...kt(["taskPriority"]),...Ae(["projectData"]),menuWidth(){return this.windowWidth<1440?180:260},dropStyle(){return this.windowWidth<1440?{left:"142px"}:{}},completedTask(){return this.projectData.cacheParameter.completedTask}},watch:{projectColumn:{handler(){this.initData()},deep:!0},flowInfo:{handler(){this.initData()},deep:!0},completedTask(){this.initData()}},methods:{initData(){this.lists=[],this.projectColumn&&this.projectColumn.some(this.checkAdd)},flowTask(t){return $A.leftExists(this.flowInfo.value,"user:")&&!t.task_user.find(({userid:o,owner:e})=>o===this.flowInfo.userid&&e)?!0:this.flowInfo.value>0&&t.flow_item_id!==this.flowInfo.value},filtrLength(t){return t.filter(o=>!(o.complete_at&&!this.completedTask||this.flowTask(o))).length},checkAdd(t){this.filtrProjectId>0&&t.id!=this.filtrProjectId||t.tasks&&t.tasks.some(o=>{let e=!o.start_at||!o.end_at,n=this.getTimeObj(o),a=n.start,r=n.end;if(o.complete_at&&!this.completedTask||this.flowTask(o))return!1;let s="#058ce4";this.taskPriority.some(d=>{if(d.priority===o.p_level)return s=d.color,!0});let i={start:a,end:r},l=$A.cloneJSON(i),c=this.editData.find(({id:d})=>d==o.id);c&&(i=$A.cloneJSON(c.newTime)),this.lists.push({id:o.id,label:o.name,complete:o.complete_at,overdue:o.overdue,time:i,notime:e,baktime:l,style:{background:s}})})},onChange(t){const{time:o,baktime:e}=t;if(Math.abs(e.end-o.end)>1e3||Math.abs(e.start-o.start)>1e3){let n=this.editData.find(({id:a})=>a==t.id);n?n.newTime=o:this.editData.push({id:t.id,label:t.label,notime:t.notime,baktime:t.baktime,newTime:o})}},onClick(t){this.$store.dispatch("openTask",t)},editSubmit(t){this.editData&&this.editData.forEach(o=>{let e=this.lists.find(({id:n})=>n==o.id);if(t){this.editLoad++;let n=$A.formatDate("Y-m-d H:i",Math.round(o.newTime.start/1e3)),a=$A.formatDate("Y-m-d H:i",Math.round(o.newTime.end/1e3)),r={task_id:o.id,times:[n,a]};this.$store.dispatch("taskUpdate",r).then(({msg:s})=>{this.editLoad--,this.editLoad===0&&$A.messageSuccess(s),e&&this.$set(e,"baktime",$A.cloneJSON(e.time))}).catch(({msg:s})=>{this.editLoad--,this.editLoad===0&&$A.modalError(s),e&&this.$set(e,"time",$A.cloneJSON(e.baktime))})}else e&&this.$set(e,"time",$A.cloneJSON(e.baktime))}),this.editData=[]},getTimeObj(t){let o=$A.Time(t.start_at)||$A.Time(t.created_at),e=$A.Time(t.end_at)||$A.Time(t.created_at)+86400;return e==o&&(e=Math.round(new Date($A.formatDate("Y-m-d 23:59:59",e)).getTime()/1e3)),e=Math.max(e,o+60),o*=1e3,e*=1e3,{start:o,end:e}},onSwitchColumn(t){this.filtrProjectId=$A.runNum(t),this.initData()}}},tn={};var Jo=wt(Ko,Yo,Vo,!1,Zo,null,null,null);function Zo(t){for(let o in tn)this[o]=tn[o]}var Qo=function(){return Jo.exports}(),qo=function(){var t=this,o=t.$createElement,e=t._self._c||o;return e("div",{staticClass:"project-panel",class:[t.tabTypeActive]},[e("PageTitle",{attrs:{title:t.projectData.name}}),e("div",{staticClass:"project-titbox"},[e("div",{staticClass:"project-title"},[e("div",{staticClass:"project-back",on:{click:t.onBack}},[e("i",{staticClass:"taskfont"},[t._v("\uE676")])]),e("h1",{on:{click:t.showName}},[t._v(t._s(t.projectData.name))]),t.loading?e("div",{staticClass:"project-load"},[e("Loading")],1):t._e()]),e("ul",{staticClass:"project-icons"},[e("li",{staticClass:"project-avatar",class:{"cursor-default":t.projectData.owner_userid!==t.userId},on:{click:function(n){return t.projectDropdown("user")}}},[e("ul",[e("li",[e("UserAvatar",{attrs:{userid:t.projectData.owner_userid,size:36,borderWitdh:2,openDelay:0}},[e("p",[t._v(t._s(t.$L("\u9879\u76EE\u8D1F\u8D23\u4EBA")))])]),(t.windowWidth<=980||t.projectData.cacheParameter.chat)&&t.projectUser.length>0?e("Badge",{attrs:{type:"normal","overflow-count":999,count:t.projectData.project_user.length}}):t._e()],1),t._l(t.projectUser,function(n){return!(t.windowWidth<=980||t.projectData.cacheParameter.chat)&&t.projectUser.length>0?[n.userid===-1?e("li",{staticClass:"more"},[e("ETooltip",{attrs:{disabled:t.windowSmall||t.$isEEUiApp,content:t.$L("\u5171"+t.projectData.project_user.length+"\u4E2A\u6210\u5458")}},[e("Icon",{attrs:{type:"ios-more"}})],1)],1):e("li",[e("UserAvatar",{attrs:{userid:n.userid,size:36,borderWitdh:2,openDelay:0}})],1)]:t._e()})],2)]),e("li",{staticClass:"project-icon",on:{click:function(n){return t.addTaskOpen(0)}}},[e("ETooltip",{attrs:{disabled:t.windowSmall||t.$isEEUiApp,content:t.$L("\u6DFB\u52A0\u4EFB\u52A1")}},[e("Icon",{staticClass:"menu-icon",attrs:{type:"md-add"}})],1)],1),e("li",{class:["project-icon",t.searchText!=""?"active":""]},[e("Tooltip",{attrs:{always:t.searchText!="",theme:"light",rawIndex:10},on:{"on-popper-show":t.searchFocus}},[e("Icon",{staticClass:"menu-icon",attrs:{type:"ios-search"},on:{click:t.searchFocus}}),e("div",{attrs:{slot:"content"},slot:"content"},[e("Input",{ref:"searchInput",staticClass:"search-input",attrs:{placeholder:t.$L("\u540D\u79F0\u3001\u63CF\u8FF0..."),clearable:""},model:{value:t.searchText,callback:function(n){t.searchText=n},expression:"searchText"}})],1)],1)],1),e("li",{class:["project-icon",t.windowLarge&&t.projectData.cacheParameter.chat?"active":""],on:{click:function(n){return t.toggleParameter("chat")}}},[e("Icon",{staticClass:"menu-icon",attrs:{type:"ios-chatbubbles"}}),e("Badge",{staticClass:"menu-badge",attrs:{"overflow-count":999,count:t.msgUnread}})],1),e("li",{staticClass:"project-icon"},[e("EDropdown",{attrs:{trigger:"click",transfer:""},on:{command:t.projectDropdown}},[e("Icon",{staticClass:"menu-icon",attrs:{type:"ios-more"}}),t.projectData.owner_userid===t.userId?e("EDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},[e("EDropdownItem",{attrs:{command:"setting"}},[t._v(t._s(t.$L("\u9879\u76EE\u8BBE\u7F6E")))]),e("EDropdownItem",{attrs:{command:"workflow"}},[t._v(t._s(t.$L("\u5DE5\u4F5C\u6D41\u8BBE\u7F6E")))]),e("EDropdownItem",{attrs:{command:"user",divided:""}},[t._v(t._s(t.$L("\u6210\u5458\u7BA1\u7406")))]),e("EDropdownItem",{attrs:{command:"invite"}},[t._v(t._s(t.$L("\u9080\u8BF7\u94FE\u63A5")))]),e("EDropdownItem",{attrs:{command:"log",divided:""}},[t._v(t._s(t.$L("\u9879\u76EE\u52A8\u6001")))]),e("EDropdownItem",{attrs:{command:"archived_task"}},[t._v(t._s(t.$L("\u5DF2\u5F52\u6863\u4EFB\u52A1")))]),e("EDropdownItem",{attrs:{command:"deleted_task"}},[t._v(t._s(t.$L("\u5DF2\u5220\u9664\u4EFB\u52A1")))]),e("EDropdownItem",{attrs:{command:"transfer",divided:""}},[t._v(t._s(t.$L("\u79FB\u4EA4\u9879\u76EE")))]),e("EDropdownItem",{attrs:{command:"archived"}},[t._v(t._s(t.$L("\u5F52\u6863\u9879\u76EE")))]),e("EDropdownItem",{staticStyle:{color:"#f40"},attrs:{command:"delete"}},[t._v(t._s(t.$L("\u5220\u9664\u9879\u76EE")))])],1):e("EDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},[e("EDropdownItem",{attrs:{command:"log"}},[t._v(t._s(t.$L("\u9879\u76EE\u52A8\u6001")))]),e("EDropdownItem",{attrs:{command:"archived_task"}},[t._v(t._s(t.$L("\u5DF2\u5F52\u6863\u4EFB\u52A1")))]),e("EDropdownItem",{attrs:{command:"deleted_task"}},[t._v(t._s(t.$L("\u5DF2\u5220\u9664\u4EFB\u52A1")))]),e("EDropdownItem",{staticStyle:{color:"#f40"},attrs:{command:"exit",divided:""}},[t._v(t._s(t.$L("\u9000\u51FA\u9879\u76EE")))])],1)],1)],1)])]),e("div",{staticClass:"project-subbox"},[e("div",{staticClass:"project-subtitle",on:{click:t.showDesc}},[t._v(t._s(t.projectData.desc))]),e("div",{staticClass:"project-switch"},[t.completedCount>0?e("div",{staticClass:"project-checkbox"},[e("Checkbox",{attrs:{value:t.projectData.cacheParameter.completedTask},on:{"on-change":t.toggleCompleted}},[t._v(t._s(t.$L("\u663E\u793A\u5DF2\u5B8C\u6210")))])],1):t._e(),t.flowList.length>0?e("div",{staticClass:"project-select"},[e("Cascader",{ref:"flow",attrs:{data:t.flowData,"transfer-class-name":"project-panel-flow-cascader",transfer:""},on:{"on-change":t.flowChange}},[e("span",{class:`project-flow ${t.flowInfo.status||""}`},[t._v(t._s(t.flowTitle))])])],1):t._e(),e("div",{staticClass:"project-switch-button"},[e("div",{staticClass:"slider",style:t.tabTypeStyle}),e("div",{class:{active:t.tabTypeActive==="column"},on:{click:function(n){return t.tabTypeChange("column")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE60C")])]),e("div",{class:{active:t.tabTypeActive==="table"},on:{click:function(n){return t.tabTypeChange("table")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE66A")])]),e("div",{class:{active:t.tabTypeActive==="gantt"},on:{click:function(n){return t.tabTypeChange("gantt")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE797")])])])])]),t.tabTypeActive==="column"?e("div",{staticClass:"project-column"},[e("Draggable",{staticClass:"column-list",attrs:{list:t.columnList,animation:150,disabled:t.sortDisabled||t.windowSmall||t.$isEEUiApp,tag:"ul",draggable:".column-item"},on:{sort:function(n){return t.sortUpdate(!0)}}},[t._l(t.columnList,function(n){return e("li",{staticClass:"column-item"},[e("div",{class:["column-head",n.color?"custom-color":""],style:n.color?{backgroundColor:n.color}:{}},[e("div",{staticClass:"column-head-title"},[e("AutoTip",[t._v(t._s(n.name))]),e("em",[t._v("("+t._s(t.panelTask(n.tasks).length)+")")])],1),e("div",{staticClass:"column-head-icon"},[t.columnLoad[n.id]===!0?e("div",{staticClass:"loading"},[e("Loading")],1):e("EDropdown",{attrs:{trigger:"click",size:"small"},on:{command:function(a){return t.dropColumn(n,a)}}},[e("Icon",{attrs:{type:"ios-more"}}),e("EDropdownMenu",{staticClass:"project-panel-more-dropdown-menu",attrs:{slot:"dropdown"},slot:"dropdown"},[e("EDropdownItem",{attrs:{command:"title"}},[e("div",{staticClass:"item"},[e("Icon",{attrs:{type:"md-create"}}),t._v(t._s(t.$L("\u4FEE\u6539"))+" ")],1)]),e("EDropdownItem",{attrs:{command:"remove"}},[e("div",{staticClass:"item"},[e("Icon",{attrs:{type:"md-trash"}}),t._v(t._s(t.$L("\u5220\u9664"))+" ")],1)]),t._l(t.$store.state.columnColorList,function(a,r){return e("EDropdownItem",{key:r,attrs:{divided:r==0,command:a}},[e("div",{staticClass:"item"},[e("i",{staticClass:"taskfont",style:{color:a.color},domProps:{innerHTML:t._s(a.color==n.color?"":"")}}),t._v(t._s(t.$L(a.name))+" ")])])})],2)],1),e("Icon",{staticClass:"last",attrs:{type:"md-add"},on:{click:function(a){return t.addTopShow(n.id,!0)}}})],1)]),e("div",{ref:"column_"+n.id,refInFor:!0,staticClass:"column-task scrollbar-overlay"},[t.columnTopShow[n.id]?e("div",{staticClass:"task-item additem"},[e("TaskAddSimple",{attrs:{"column-id":n.id,"project-id":t.projectId,"add-top":!0,"auto-active":""},on:{"on-close":function(a){return t.addTopShow(n.id,!1)},"on-priority":t.addTaskOpen}})],1):t._e(),e("Draggable",{staticClass:"task-list",attrs:{list:n.tasks,animation:150,disabled:t.sortDisabled||t.windowSmall||t.$isEEUiApp,draggable:".task-draggable",filter:".complete",group:"task"},on:{sort:t.sortUpdate,remove:t.sortUpdate}},[t._l(n.tasks,function(a){return e("div",{class:["task-item task-draggable",a.complete_at?"complete":"",t.taskIsHidden(a)?"hidden":""],style:a.color?{backgroundColor:a.color}:{},on:{click:function(r){return t.openTask(a)}}},[e("div",{class:["task-head",a.desc?"has-desc":""]},[e("div",{staticClass:"task-title"},[a.flow_item_name?e("span",{class:a.flow_item_status,on:{click:function(r){return r.stopPropagation(),t.openMenu(r,a)}}},[t._v(t._s(a.flow_item_name))]):t._e(),e("pre",[t._v(t._s(a.name))])]),e("div",{staticClass:"task-menu",on:{click:function(r){r.stopPropagation()}}},[e("TaskMenu",{ref:`taskMenu_${a.id}`,refInFor:!0,attrs:{task:a,icon:"ios-more"}})],1)]),a.desc?e("div",{staticClass:"task-desc"},[e("pre",{domProps:{innerHTML:t._s(a.desc)}})]):t._e(),a.task_tag.length>0?e("div",{staticClass:"task-tags"},t._l(a.task_tag,function(r,s){return e("Tag",{key:s,attrs:{color:r.color}},[t._v(t._s(r.name))])}),1):t._e(),e("div",{staticClass:"task-users"},[e("ul",[t._l(t.ownerUser(a.task_user),function(r,s){return e("li",{key:s},[e("UserAvatar",{attrs:{userid:r.userid,size:"32",borderWitdh:2,borderColor:a.color}})],1)}),t.ownerUser(a.task_user).length===0?e("li",{staticClass:"no-owner"},[e("Button",{attrs:{type:"primary",size:"small",ghost:""},on:{click:function(r){return r.stopPropagation(),t.openTask(a,!0)}}},[t._v(t._s(t.$L("\u9886\u53D6\u4EFB\u52A1")))])],1):t._e()],2),a.file_num>0?e("div",{staticClass:"task-icon"},[t._v(t._s(a.file_num)),e("Icon",{attrs:{type:"ios-link-outline"}})],1):t._e(),a.msg_num>0?e("div",{staticClass:"task-icon"},[t._v(t._s(a.msg_num)),e("Icon",{attrs:{type:"ios-chatbubbles-outline"}})],1):t._e()]),e("div",{staticClass:"task-progress"},[a.sub_num>0?e("div",{staticClass:"task-sub-num"},[t._v(t._s(a.sub_complete)+"/"+t._s(a.sub_num))]):t._e(),e("Progress",{attrs:{percent:a.percent,"stroke-width":6}}),a.end_at?e("ETooltip",{class:["task-time",a.today?"today":"",a.overdue?"overdue":""],attrs:{disabled:t.windowSmall||t.$isEEUiApp,"open-delay":600,content:a.end_at}},[a.complete_at?t._e():e("div",[e("i",{staticClass:"taskfont"},[t._v("\uE71D")]),t._v(t._s(t.expiresFormat(a.end_at)))])]):t._e()],1),a.p_name?e("em",{staticClass:"priority-color",style:{backgroundColor:a.p_color}}):t._e()])}),e("div",{staticClass:"task-item additem"},[e("TaskAddSimple",{attrs:{"column-id":n.id,"project-id":t.projectId},on:{"on-priority":t.addTaskOpen}})],1)],2)],1)])}),e("li",{class:["add-column",t.addColumnShow?"show-input":""]},[e("div",{staticClass:"add-column-text",on:{click:t.addColumnOpen}},[e("Icon",{attrs:{type:"md-add"}}),t._v(t._s(t.$L("\u6DFB\u52A0\u5217\u8868"))+" ")],1),e("div",{staticClass:"add-column-input"},[e("Input",{ref:"addColumnName",attrs:{placeholder:t.$L("\u5217\u8868\u540D\u79F0\uFF0C\u56DE\u8F66\u521B\u5EFA"),clearable:""},on:{"on-blur":t.addColumnBlur,"on-enter":t.addColumnSubmit,"on-clear":function(n){t.addColumnShow=!1}},model:{value:t.addColumnName,callback:function(n){t.addColumnName=n},expression:"addColumnName"}})],1)])],2)],1):t.tabTypeActive==="table"?e("div",{staticClass:"project-table scrollbar-overlay"},[e("div",{staticClass:"project-table-head"},[e("Row",{staticClass:"task-row"},[e("Col",{attrs:{span:"12"}},[t._v("# "+t._s(t.$L("\u4EFB\u52A1\u540D\u79F0")))]),e("Col",{attrs:{span:"3"}},[t._v(t._s(t.$L("\u5217\u8868")))]),e("Col",{attrs:{span:"3"}},[e("div",{staticClass:"sort",on:{click:function(n){return t.onSort("level")}}},[t._v(" "+t._s(t.$L("\u4F18\u5148\u7EA7"))+" "),e("div",{staticClass:"task-sort"},[e("Icon",{class:{on:t.sortField=="level"&&t.sortType=="asc"},attrs:{type:"md-arrow-dropup"}}),e("Icon",{class:{on:t.sortField=="level"&&t.sortType=="desc"},attrs:{type:"md-arrow-dropdown"}})],1)])]),e("Col",{attrs:{span:"3"}},[t._v(t._s(t.$L("\u8D1F\u8D23\u4EBA")))]),e("Col",{attrs:{span:"3"}},[e("div",{staticClass:"sort",on:{click:function(n){return t.onSort("end_at")}}},[t._v(" "+t._s(t.$L("\u5230\u671F\u65F6\u95F4"))+" "),e("div",{staticClass:"task-sort"},[e("Icon",{class:{on:t.sortField=="end_at"&&t.sortType=="asc"},attrs:{type:"md-arrow-dropup"}}),e("Icon",{class:{on:t.sortField=="end_at"&&t.sortType=="desc"},attrs:{type:"md-arrow-dropdown"}})],1)])])],1)],1),e("div",{class:["project-table-body",t.projectData.cacheParameter.showMy?"":"project-table-hide"]},[e("Row",{staticClass:"task-row"},[e("Col",{staticClass:"row-title",attrs:{span:"12"}},[e("i",{staticClass:"taskfont",on:{click:function(n){return t.toggleParameter("showMy")}}},[t._v("\uE689")]),e("div",{staticClass:"row-h1"},[t._v(t._s(t.$L("\u6211\u7684\u4EFB\u52A1")))]),e("div",{staticClass:"row-num"},[t._v("("+t._s(t.myList.length)+")")])]),e("Col",{attrs:{span:"3"}}),e("Col",{attrs:{span:"3"}}),e("Col",{attrs:{span:"3"}}),e("Col",{attrs:{span:"3"}})],1),t.projectData.cacheParameter.showMy?e("TaskRow",{attrs:{list:t.transforTasks(t.myList),"open-key":"my","fast-add-task":""},on:{"on-priority":t.addTaskOpen}}):t._e()],1),t.helpList.length?e("div",{class:["project-table-body",t.projectData.cacheParameter.showHelp?"":"project-table-hide"]},[e("Row",{staticClass:"task-row"},[e("Col",{staticClass:"row-title",attrs:{span:"12"}},[e("i",{staticClass:"taskfont",on:{click:function(n){return t.toggleParameter("showHelp")}}},[t._v("\uE689")]),e("div",{staticClass:"row-h1"},[t._v(t._s(t.$L("\u534F\u52A9\u7684\u4EFB\u52A1")))]),e("div",{staticClass:"row-num"},[t._v("("+t._s(t.helpList.length)+")")])]),e("Col",{attrs:{span:"3"}}),e("Col",{attrs:{span:"3"}}),e("Col",{attrs:{span:"3"}}),e("Col",{attrs:{span:"3"}})],1),t.projectData.cacheParameter.showHelp?e("TaskRow",{attrs:{list:t.helpList,"open-key":"help"},on:{"on-priority":t.addTaskOpen}}):t._e()],1):t._e(),t.projectData.task_num>0?e("div",{class:["project-table-body",t.projectData.cacheParameter.showUndone?"":"project-table-hide"]},[e("Row",{staticClass:"task-row"},[e("Col",{staticClass:"row-title",attrs:{span:"12"}},[e("i",{staticClass:"taskfont",on:{click:function(n){return t.toggleParameter("showUndone")}}},[t._v("\uE689")]),e("div",{staticClass:"row-h1"},[t._v(t._s(t.$L("\u672A\u5B8C\u6210\u4EFB\u52A1")))]),e("div",{staticClass:"row-num"},[t._v("("+t._s(t.unList.length)+")")])]),e("Col",{attrs:{span:"3"}}),e("Col",{attrs:{span:"3"}}),e("Col",{attrs:{span:"3"}}),e("Col",{attrs:{span:"3"}})],1),t.projectData.cacheParameter.showUndone?e("TaskRow",{attrs:{list:t.unList,"open-key":"undone"},on:{"on-priority":t.addTaskOpen}}):t._e()],1):t._e(),t.projectData.task_num>0?e("div",{class:["project-table-body",t.projectData.cacheParameter.showCompleted?"":"project-table-hide"]},[e("Row",{staticClass:"task-row"},[e("Col",{staticClass:"row-title",attrs:{span:"12"}},[e("i",{staticClass:"taskfont",on:{click:function(n){return t.toggleParameter("showCompleted")}}},[t._v("\uE689")]),e("div",{staticClass:"row-h1"},[t._v(t._s(t.$L("\u5DF2\u5B8C\u6210\u4EFB\u52A1")))]),e("div",{staticClass:"row-num"},[t._v("("+t._s(t.completedList.length)+")")])]),e("Col",{attrs:{span:"3"}}),e("Col",{attrs:{span:"3"}}),e("Col",{attrs:{span:"3"}}),e("Col",{attrs:{span:"3"}},[t._v(t._s(t.projectData.task_num>0&&t.projectData.cacheParameter.showCompleted?t.$L("\u5B8C\u6210\u65F6\u95F4"):""))])],1),t.projectData.cacheParameter.showCompleted?e("TaskRow",{attrs:{list:t.completedList,"open-key":"completed",showCompleteAt:""},on:{"on-priority":t.addTaskOpen}}):t._e()],1):t._e()]):t.tabTypeActive==="gantt"?e("div",{staticClass:"project-gantt"},[e("ProjectGantt",{attrs:{projectColumn:t.columnList,flowInfo:t.flowInfo}})],1):t._e(),e("Modal",{attrs:{title:t.$L("\u9879\u76EE\u8BBE\u7F6E"),"mask-closable":!1},model:{value:t.settingShow,callback:function(n){t.settingShow=n},expression:"settingShow"}},[e("Form",{attrs:{model:t.settingData,"label-width":"auto"},nativeOn:{submit:function(n){n.preventDefault()}}},[e("FormItem",{attrs:{prop:"name",label:t.$L("\u9879\u76EE\u540D\u79F0")}},[e("Input",{ref:"projectName",attrs:{type:"text",maxlength:32,placeholder:t.$L("\u5FC5\u586B")},model:{value:t.settingData.name,callback:function(n){t.$set(t.settingData,"name",n)},expression:"settingData.name"}})],1),e("FormItem",{attrs:{prop:"desc",label:t.$L("\u9879\u76EE\u4ECB\u7ECD")}},[e("Input",{ref:"projectDesc",attrs:{type:"textarea",autosize:{minRows:3,maxRows:5},maxlength:255,placeholder:t.$L("\u9009\u586B")},model:{value:t.settingData.desc,callback:function(n){t.$set(t.settingData,"desc",n)},expression:"settingData.desc"}})],1)],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(n){t.settingShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.settingLoad>0},on:{click:t.onSetting}},[t._v(t._s(t.$L("\u4FEE\u6539")))])],1)],1),e("Modal",{attrs:{title:t.$L("\u6210\u5458\u7BA1\u7406"),"mask-closable":!1},model:{value:t.userShow,callback:function(n){t.userShow=n},expression:"userShow"}},[e("Form",{attrs:{model:t.userData,"label-width":"auto"},nativeOn:{submit:function(n){n.preventDefault()}}},[e("FormItem",{attrs:{prop:"userids",label:t.$L("\u9879\u76EE\u6210\u5458")}},[e("UserInput",{attrs:{uncancelable:t.userData.uncancelable,"multiple-max":100,placeholder:t.$L("\u9009\u62E9\u9879\u76EE\u6210\u5458")},model:{value:t.userData.userids,callback:function(n){t.$set(t.userData,"userids",n)},expression:"userData.userids"}})],1)],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(n){t.userShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),t.userWaitRemove.length>0?e("Poptip",{staticStyle:{"margin-left":"8px"},attrs:{confirm:"",placement:"bottom","ok-text":t.$L("\u786E\u5B9A"),"cancel-text":t.$L("\u53D6\u6D88"),transfer:""},on:{"on-ok":t.onUser}},[e("div",{attrs:{slot:"title"},slot:"title"},[e("p",[e("strong",[t._v(t._s(t.$L("\u79FB\u9664\u6210\u5458\u8D1F\u8D23\u7684\u4EFB\u52A1\u5C06\u53D8\u6210\u65E0\u8D1F\u8D23\u4EBA\uFF0C")))])]),e("p",[t._v(t._s(t.$L("\u6CE8\u610F\u6B64\u64CD\u4F5C\u4E0D\u53EF\u9006\uFF01")))]),e("ul",{staticClass:"project-panel-wait-remove"},[e("li",[t._v(t._s(t.$L("\u5373\u5C06\u79FB\u9664"))+"\uFF1A")]),t._l(t.userWaitRemove,function(n){return e("li",{key:n},[e("UserAvatar",{attrs:{userid:n,size:20,showName:"",tooltipDisabled:""}})],1)})],2)]),e("Button",{attrs:{type:"primary",loading:t.userLoad>0}},[t._v(t._s(t.$L("\u4FDD\u5B58")))])],1):e("Button",{attrs:{type:"primary",loading:t.userLoad>0},on:{click:t.onUser}},[t._v(t._s(t.$L("\u4FDD\u5B58")))])],1)],1),e("Modal",{attrs:{title:t.$L("\u9080\u8BF7\u94FE\u63A5"),"mask-closable":!1},model:{value:t.inviteShow,callback:function(n){t.inviteShow=n},expression:"inviteShow"}},[e("Form",{attrs:{model:t.inviteData,"label-width":"auto"},nativeOn:{submit:function(n){n.preventDefault()}}},[e("FormItem",{attrs:{label:t.$L("\u94FE\u63A5\u5730\u5740")}},[e("Input",{ref:"inviteInput",attrs:{type:"textarea",rows:3,readonly:""},on:{"on-focus":t.inviteFocus},model:{value:t.inviteData.url,callback:function(n){t.$set(t.inviteData,"url",n)},expression:"inviteData.url"}}),e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u53EF\u901A\u8FC7\u6B64\u94FE\u63A5\u76F4\u63A5\u52A0\u5165\u9879\u76EE\u3002")))])],1)],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(n){t.inviteShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Poptip",{staticStyle:{"margin-left":"8px"},attrs:{confirm:"",placement:"bottom","ok-text":t.$L("\u786E\u5B9A"),"cancel-text":t.$L("\u53D6\u6D88"),transfer:""},on:{"on-ok":function(n){return t.inviteGet(!0)}}},[e("div",{attrs:{slot:"title"},slot:"title"},[e("p",[e("strong",[t._v(t._s(t.$L("\u6CE8\u610F\uFF1A\u5237\u65B0\u5C06\u5BFC\u81F4\u539F\u6765\u7684\u9080\u8BF7\u94FE\u63A5\u5931\u6548\uFF01")))])])]),e("Button",{attrs:{type:"primary",loading:t.inviteLoad>0}},[t._v(t._s(t.$L("\u5237\u65B0")))])],1)],1)],1),e("Modal",{attrs:{title:t.$L("\u79FB\u4EA4\u9879\u76EE"),"mask-closable":!1},model:{value:t.transferShow,callback:function(n){t.transferShow=n},expression:"transferShow"}},[e("Form",{attrs:{model:t.transferData,"label-width":"auto"},nativeOn:{submit:function(n){n.preventDefault()}}},[e("FormItem",{attrs:{prop:"owner_userid",label:t.$L("\u9879\u76EE\u8D1F\u8D23\u4EBA")}},[e("UserInput",{attrs:{"multiple-max":1,"max-hidden-select":"",placeholder:t.$L("\u9009\u62E9\u9879\u76EE\u8D1F\u8D23\u4EBA")},model:{value:t.transferData.owner_userid,callback:function(n){t.$set(t.transferData,"owner_userid",n)},expression:"transferData.owner_userid"}})],1)],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(n){t.transferShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.transferLoad>0},on:{click:t.onTransfer}},[t._v(t._s(t.$L("\u79FB\u4EA4")))])],1)],1),e("DrawerOverlay",{attrs:{placement:"right",beforeClose:t.workflowBeforeClose,size:1280},model:{value:t.workflowShow,callback:function(n){t.workflowShow=n},expression:"workflowShow"}},[t.workflowShow?e("ProjectWorkflow",{ref:"workflow",attrs:{"project-id":t.projectId}}):t._e()],1),e("DrawerOverlay",{attrs:{placement:"right",size:768},model:{value:t.logShow,callback:function(n){t.logShow=n},expression:"logShow"}},[t.logShow?e("ProjectLog",{attrs:{"project-id":t.projectId}}):t._e()],1),e("DrawerOverlay",{attrs:{placement:"right",size:900},model:{value:t.archivedTaskShow,callback:function(n){t.archivedTaskShow=n},expression:"archivedTaskShow"}},[t.archivedTaskShow?e("TaskArchived",{attrs:{"project-id":t.projectId}}):t._e()],1),e("DrawerOverlay",{attrs:{placement:"right",size:900},model:{value:t.deletedTaskShow,callback:function(n){t.deletedTaskShow=n},expression:"deletedTaskShow"}},[t.deletedTaskShow?e("TaskDeleted",{attrs:{"project-id":t.projectId}}):t._e()],1)],1)},tr=[];const er={name:"ProjectPanel",components:{TaskMenu:ln,ProjectWorkflow:Oo,DrawerOverlay:In,ProjectLog:Tn,TaskArchived:Io,TaskRow:_o,Draggable:$n,TaskAddSimple:_n,UserInput:sn,TaskPriority:an,TaskDeleted:Wo,ProjectGantt:Qo},data(){return{loading:!1,nowTime:$A.Time(),nowInterval:null,columnLoad:{},columnTopShow:{},sortField:"end_at",sortType:"desc",searchText:"",addColumnShow:!1,addColumnName:"",sortData:[],sortDisabled:!1,settingShow:!1,settingData:{},settingLoad:0,userShow:!1,userData:{},userLoad:0,inviteShow:!1,inviteData:{},inviteLoad:0,transferShow:!1,transferData:{},transferLoad:0,workflowShow:!1,logShow:!1,archivedTaskShow:!1,deletedTaskShow:!1,flowInfo:{},flowList:[]}},mounted(){this.nowInterval=setInterval(()=>{this.nowTime=$A.Time()},1e3)},destroyed(){clearInterval(this.nowInterval)},computed:{...kt(["cacheDialogs","projectId","projectLoad","cacheTasks","cacheColumns","taskCompleteTemps","cacheUserBasic"]),...Ae(["projectData","transforTasks"]),tabTypeActive(){return this.projectData.cacheParameter.menuType},tabTypeStyle(){const t={};switch(this.tabTypeActive){case"column":t.left="0";break;case"table":t.left="33.33%";break;case"gantt":t.left="66.66%";break;default:t.display="none"}return t},userWaitRemove(){const{userids:t,useridbak:o}=this.userData;if(!t)return[];let e=[];return o.some(n=>{t.includes(n)||e.push(n)}),e},msgUnread(){const{cacheDialogs:t,projectData:o}=this,e=t.find(({id:n})=>n===o.dialog_id);return $A.getDialogNum(e)},panelTask(){const{searchText:t,flowInfo:o}=this;return function(e){return this.projectData.cacheParameter.completedTask||(e=e.filter(({complete_at:n})=>!n)),$A.leftExists(o.value,"user:")?e=e.filter(({task_user:n})=>n.find(({userid:a,owner:r})=>a===o.userid&&r)):o.value>0&&(e=e.filter(({flow_item_id:n})=>n===o.value)),t&&(e=e.filter(({name:n,desc:a})=>$A.strExists(`${n} ${a}`,t))),e}},projectUser(){const{projectData:t,windowWidth:o}=this;if(!t.project_user)return[];let e=o>1200?8:3,n=t.project_user.filter(({userid:r})=>r!=t.owner_userid);if(n.length<=e)return n;let a=n.slice(0,e-1);return a.push({userid:-1}),a.push(n[n.length-1]),a},allTask(){const{cacheTasks:t,projectId:o}=this;return t.filter(e=>e.archived_at?!1:e.project_id==o)},columnList(){const{projectId:t,cacheColumns:o,allTask:e}=this,n=o.filter(({project_id:a})=>a==t).sort((a,r)=>a.sort!=r.sort?a.sort-r.sort:a.id-r.id);return n.forEach(a=>{a.tasks=this.transforTasks(e.filter(r=>r.column_id==a.id)).sort((r,s)=>r.complete_at||s.complete_at?$A.Date(r.complete_at)-$A.Date(s.complete_at):r.sort!=s.sort?r.sort-s.sort:r.id-s.id)}),n},myList(){const{allTask:t,taskCompleteTemps:o,sortField:e,sortType:n}=this;let a=t.filter(r=>this.myFilter(r));if(o.length>0){let r=t.filter(s=>o.includes(s.id)&&this.myFilter(s,!1));r.length>0&&(a=$A.cloneJSON(a),a.push(...r))}return a.sort((r,s)=>{if(n=="asc"&&([r,s]=[s,r]),e=="level")return r.p_level-s.p_level;if(e=="end_at")return r.end_at==s.end_at?r.p_level-s.p_level:$A.Date(r.end_at||"2099-12-31 23:59:59")-$A.Date(s.end_at||"2099-12-31 23:59:59")})},helpList(){const{allTask:t,taskCompleteTemps:o,sortField:e,sortType:n}=this;let a=t.filter(r=>this.helpFilter(r));if(o.length>0){let r=t.filter(s=>o.includes(s.id)&&this.helpFilter(s,!1));r.length>0&&(a=$A.cloneJSON(a),a.push(...r))}return a.sort((r,s)=>{if(n=="asc"&&([r,s]=[s,r]),e=="level")return r.p_level-s.p_level;if(e=="end_at")return r.end_at==s.end_at?r.p_level-s.p_level:$A.Date(r.end_at||"2099-12-31 23:59:59")-$A.Date(s.end_at||"2099-12-31 23:59:59")})},unList(){const{allTask:t,searchText:o,sortField:e,sortType:n}=this;return t.filter(r=>r.parent_id>0||this.flowTask(r)||o&&!$A.strExists(r.name,o)&&!$A.strExists(r.desc,o)?!1:!r.complete_at).sort((r,s)=>{if(n=="asc"&&([r,s]=[s,r]),e=="level")return r.p_level-s.p_level;if(e=="end_at")return r.end_at==s.end_at?r.p_level-s.p_level:$A.Date(r.end_at||"2099-12-31 23:59:59")-$A.Date(s.end_at||"2099-12-31 23:59:59")})},completedList(){const{allTask:t,searchText:o}=this;return t.filter(n=>n.parent_id>0||this.flowTask(n)||o&&!$A.strExists(n.name,o)&&!$A.strExists(n.desc,o)?!1:n.complete_at).sort((n,a)=>{let r=$A.Date(n.complete_at);return $A.Date(a.complete_at)-r})},completedCount(){const{allTask:t}=this;return t.filter(o=>o.parent_id>0?!1:o.complete_at).length},flowTitle(){const{flowInfo:t,flowData:o,allTask:e}=this;if(t.value){const n=o.find(a=>a.value===t.value);return n?n.label:t.label}return`${this.$L("\u5168\u90E8")} (${e.length})`},flowData(){const{flowList:t,allTask:o,cacheUserBasic:e}=this,n=[{value:0,label:`${this.$L("\u5168\u90E8")} (${o.length})`,children:[]}],a=t.map(i=>({value:i.id,label:i.name,status:i.status,children:i.project_flow_item.map(l=>{const c=o.filter(({flow_item_id:d})=>d==l.id).length;return{value:l.id,label:`${l.name} (${c})`,status:l.status,class:l.status}})}));a.length===1?n.push(...a[0].children):a.length>0&&n.push(...a);const{project_user:r}=this.projectData,s=r.map((i,l)=>{const c=e.find(({userid:u})=>u===i.userid)||{},d=o.filter(({task_user:u,complete_at:f})=>!this.projectData.cacheParameter.completedTask&&f?!1:u.find(({userid:v,owner:h})=>v===i.userid&&h)).length;return{value:`user:${c.userid}`,label:`${c.nickname} (${d})`,class:`user-${l}`,userid:c.userid||0,length:d}}).filter(({userid:i,length:l})=>i>0&&l>0);return s.length>0&&n.push(...s),n}},watch:{projectData(){this.sortData=this.getSort()},projectLoad(t){this._loadTimeout&&clearTimeout(this._loadTimeout),t>0?this._loadTimeout=setTimeout(()=>{this.loading=!0},1e3):this.loading=!1},projectId:{handler(t){t>0&&this.getFlowData()},immediate:!0}},methods:{showName(){this.windowLarge||$A.modalInfo({language:!1,title:this.$L("\u9879\u76EE\u540D\u79F0"),content:this.projectData.name})},showDesc(){this.windowLarge||$A.modalInfo({language:!1,title:this.$L("\u9879\u76EE\u63CF\u8FF0"),content:this.projectData.desc})},searchFocus(){this.$nextTick(()=>{this.$refs.searchInput.focus({cursor:"end"})})},getSort(){const t=[];return this.columnList.forEach(o=>{t.push({id:o.id,task:o.tasks.map(({id:e})=>e)})}),t},sortUpdate(t){const o=this.sortData,e=this.getSort();if(JSON.stringify(o)===JSON.stringify(e))return;this.sortData=e;const n={project_id:this.projectId,sort:this.sortData,only_column:t===!0?1:0};this.sortDisabled=!0,this.$store.dispatch("call",{url:"project/sort",data:n}).then(({msg:a})=>{$A.messageSuccess(a),this.sortDisabled=!1;let r,s=[];n.only_column?(r=-1,n.sort.forEach(i=>{r++,s.push({id:i.id,sort:r})}),this.$store.dispatch("saveColumn",s)):(n.sort.forEach(i=>{r=-1,s.push(...i.task.map(l=>(r++,s.push(...this.allTask.filter(c=>c.parent_id==l).map(({id:c})=>({id:c,sort:r,column_id:i.id}))),{id:l,sort:r,column_id:i.id})))}),this.$store.dispatch("saveTask",s))}).catch(({msg:a})=>{$A.modalError(a),this.sortDisabled=!1,this.$store.dispatch("getTaskForProject",this.projectId).catch(()=>{})})},addTopShow(t,o){this.$set(this.columnTopShow,t,o),o&&(this.$refs["column_"+t][0].scrollTop=0)},addTaskOpen(t){Te.Store.set("addTask",t)},addColumnOpen(){this.addColumnShow=!0,this.$nextTick(()=>{this.$refs.addColumnName.focus()})},addColumnBlur(){this.addColumnName===""&&(this.addColumnShow=!1)},addColumnSubmit(){let t=this.addColumnName.trim();t!==""&&this.$store.dispatch("call",{url:"project/column/add",data:{project_id:this.projectId,name:t}}).then(({data:o,msg:e})=>{$A.messageSuccess(e),this.addColumnName="",this.$store.dispatch("saveColumn",o)}).catch(({msg:o})=>{$A.modalError(o)})},dropColumn(t,o){o==="title"?this.titleColumn(t):o==="remove"?this.removeColumn(t):o.name&&this.updateColumn(t,{color:o.color}).catch($A.modalError)},titleColumn(t){$A.modalInput({value:t.name,title:"\u4FEE\u6539\u5217\u8868",placeholder:"\u8F93\u5165\u5217\u8868\u540D\u79F0",onOk:o=>o?this.updateColumn(t,{name:o}):"\u5217\u8868\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"})},updateColumn(t,o){return new Promise((e,n)=>{if(this.columnLoad[t.id]===!0){e();return}this.$set(this.columnLoad,t.id,!0),Object.keys(o).forEach(a=>this.$set(t,a,o[a])),this.$store.dispatch("call",{url:"project/column/update",data:Object.assign(o,{column_id:t.id})}).then(({data:a})=>{this.$set(this.columnLoad,t.id,!1),this.$store.dispatch("saveColumn",a),e()}).catch(({msg:a})=>{this.$set(this.columnLoad,t.id,!1),this.$store.dispatch("getColumns",this.projectId).catch(()=>{}),n(a)})})},removeColumn(t){$A.modalConfirm({title:"\u5220\u9664\u5217\u8868",content:"\u4F60\u786E\u5B9A\u8981\u5220\u9664\u5217\u8868\u3010"+t.name+"\u3011\u53CA\u5217\u8868\u5185\u7684\u4EFB\u52A1\u5417\uFF1F",loading:!0,onOk:()=>{if(this.columnLoad[t.id]!==!0)return this.$set(this.columnLoad,t.id,!0),new Promise((o,e)=>{this.$store.dispatch("removeColumn",t.id).then(({msg:n})=>{o(n)}).catch(({msg:n})=>{e(n)}).finally(n=>{this.$set(this.columnLoad,t.id,!1)})})}})},onSort(t){this.sortField=t,this.sortType=this.sortType=="desc"?"asc":"desc"},onSetting(){this.settingLoad++,this.$store.dispatch("call",{url:"project/update",data:Object.assign(this.settingData,{project_id:this.projectId})}).then(({data:t,msg:o})=>{$A.messageSuccess(o),this.settingShow=!1,this.$store.dispatch("saveProject",t)}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.settingLoad--})},onUser(){this.userLoad++,this.$store.dispatch("call",{url:"project/user",data:{project_id:this.projectId,userid:this.userData.userids}}).then(({msg:t})=>{$A.messageSuccess(t),this.userShow=!1,this.$store.dispatch("getProjectOne",this.projectId).catch(()=>{}),this.$store.dispatch("getTaskForProject",this.projectId).catch(()=>{})}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.userLoad--})},onTransfer(){this.transferLoad++,this.$store.dispatch("call",{url:"project/transfer",data:{project_id:this.projectId,owner_userid:this.transferData.owner_userid[0]}}).then(({msg:t})=>{$A.messageSuccess(t),this.transferShow=!1,this.$store.dispatch("getProjectOne",this.projectId).catch(()=>{}),this.$store.dispatch("getTaskForProject",this.projectId).catch(()=>{})}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.transferLoad--})},onArchived(){$A.modalConfirm({title:"\u5F52\u6863\u9879\u76EE",content:"\u4F60\u786E\u5B9A\u8981\u5F52\u6863\u9879\u76EE\u3010"+this.projectData.name+"\u3011\u5417\uFF1F",loading:!0,onOk:()=>new Promise((t,o)=>{this.$store.dispatch("archivedProject",this.projectId).then(({msg:e})=>{t(e)}).catch(({msg:e})=>{o(e)})})})},onDelete(){$A.modalConfirm({title:"\u5220\u9664\u9879\u76EE",content:"\u4F60\u786E\u5B9A\u8981\u5220\u9664\u9879\u76EE\u3010"+this.projectData.name+"\u3011\u5417\uFF1F",loading:!0,onOk:()=>new Promise((t,o)=>{this.$store.dispatch("removeProject",this.projectId).then(({msg:e})=>{t(e)}).catch(({msg:e})=>{o(e)})})})},onExit(){$A.modalConfirm({title:"\u9000\u51FA\u9879\u76EE",content:"\u4F60\u786E\u5B9A\u8981\u9000\u51FA\u9879\u76EE\u3010"+this.projectData.name+"\u3011\u5417\uFF1F",loading:!0,onOk:()=>new Promise((t,o)=>{this.$store.dispatch("exitProject",this.projectId).then(({msg:e})=>{t(e)}).catch(({msg:e})=>{o(e)})})})},projectDropdown(t){switch(t){case"setting":this.$set(this.settingData,"name",this.projectData.name),this.$set(this.settingData,"desc",this.projectData.desc),this.settingShow=!0,this.$nextTick(()=>{this.$refs.projectName.focus(),setTimeout(this.$refs.projectDesc.resizeTextarea,0)});break;case"user":if(this.projectData.owner_userid!==this.userId)return;const o=this.projectData.project_user.map(({userid:e})=>e);this.$set(this.userData,"userids",o),this.$set(this.userData,"useridbak",o),this.$set(this.userData,"uncancelable",[this.projectData.owner_userid]),this.userShow=!0;break;case"invite":this.inviteData={},this.inviteShow=!0,this.inviteGet();break;case"workflow":this.workflowShow=!0;break;case"log":this.logShow=!0;break;case"archived_task":this.archivedTaskShow=!0;break;case"deleted_task":this.deletedTaskShow=!0;break;case"transfer":this.$set(this.transferData,"owner_userid",[this.projectData.owner_userid]),this.transferShow=!0;break;case"archived":this.onArchived();break;case"delete":this.onDelete();break;case"exit":this.onExit();break}},openTask(t,o){this.$store.dispatch("openTask",t),o===!0&&setTimeout(()=>{Te.Store.set("receiveTask",!0)},300)},openMenu(t,o){const e=this.$refs[`taskMenu_${o.id}`];e&&e[0].handleClick(t)},taskIsHidden(t){const{name:o,desc:e,complete_at:n}=t,{searchText:a}=this;return!!(!this.projectData.cacheParameter.completedTask&&n||this.flowTask(t)||a&&!$A.strExists(`${o} ${e}`,a))},ownerUser(t){return t.filter(({owner:o})=>o==1).sort((o,e)=>o.id-e.id)},inviteGet(t){this.inviteLoad++,this.$store.dispatch("call",{url:"project/invite",data:{project_id:this.projectId,refresh:t===!0?"yes":"no"}}).then(({data:o})=>{this.inviteData=o,this.inviteCopy()}).catch(({msg:o})=>{$A.modalError(o)}).finally(o=>{this.inviteLoad--})},getFlowData(){this.flowInfo={},this.$store.dispatch("call",{url:"project/flow/list",data:{project_id:this.projectId}}).then(({data:t})=>{var o;this.flowList=t,(o=this.$refs.flow)==null||o.clearSelect()}).catch(()=>{this.flowList=[]})},flowChange(t,o){this.flowInfo=o.pop()||{}},inviteCopy(){!this.inviteData.url||this.$copyText(this.inviteData.url).then(t=>{$A.messageSuccess("\u590D\u5236\u6210\u529F")}).catch(t=>{$A.messageError("\u590D\u5236\u5931\u8D25")})},inviteFocus(){this.$refs.inviteInput.focus({cursor:"all"})},toggleCompleted(){this.toggleParameter("completedTask")},workflowBeforeClose(){return new Promise(t=>{if(!this.$refs.workflow.existDiff()){t();return}$A.modalConfirm({content:"\u8BBE\u7F6E\u5C1A\u672A\u4FDD\u5B58\uFF0C\u662F\u5426\u653E\u5F03\u4FEE\u6539\uFF1F",cancelText:"\u53D6\u6D88",okText:"\u653E\u5F03",onOk:()=>{t()}})})},myFilter(t,o=!0){return!this.projectData.cacheParameter.completedTask&&o===!0&&t.complete_at||this.flowTask(t)||this.searchText&&!$A.strExists(t.name,this.searchText)&&!$A.strExists(t.desc,this.searchText)?!1:t.owner},helpFilter(t,o=!0){return t.parent_id>0||!this.projectData.cacheParameter.completedTask&&o===!0&&t.complete_at||this.flowTask(t)||this.searchText&&!$A.strExists(t.name,this.searchText)&&!$A.strExists(t.desc,this.searchText)?!1:t.task_user&&t.task_user.find(({userid:e,owner:n})=>e==this.userId&&n==0)},flowTask(t){return $A.leftExists(this.flowInfo.value,"user:")&&!t.task_user.find(({userid:o,owner:e})=>o===this.flowInfo.userid&&e)?!0:this.flowInfo.value>0&&t.flow_item_id!==this.flowInfo.value},expiresFormat(t){return $A.countDownFormat(t,this.nowTime)},tabTypeChange(t){switch(t){case"column":this.toggleParameter({project_id:this.projectId,key:"menuType",value:"column"});break;case"table":this.toggleParameter({project_id:this.projectId,key:"menuType",value:"table"});break;case"gantt":this.toggleParameter({project_id:this.projectId,key:"menuType",value:"gantt"});break}},toggleParameter(t){if(t==="completedTask")this.$store.dispatch("forgetTaskCompleteTemp",!0);else if(t==="chat"&&this.windowSmall){this.$store.dispatch("openDialog",this.projectData.dialog_id);return}this.$store.dispatch("toggleProjectParameter",t)},onBack(){const{name:t,params:o}=this.$store.state.routeHistoryLast;t===this.$route.name&&/^\d+$/.test(o.projectId)?this.goForward({name:this.$route.name,params:{projectId:"all"}}):this.goBack()}}},en={};var nr=wt(er,qo,tr,!1,or,null,null,null);function or(t){for(let o in en)this[o]=en[o]}var rr=function(){return nr.exports}(),ar=function(){var t=this,o=t.$createElement,e=t._self._c||o;return t.dialogShow?e("DialogWrapper",{staticClass:"project-dialog",attrs:{"dialog-id":t.projectData.dialog_id}},[e("template",{slot:"head"},[e("div",{staticClass:"dialog-user"},[e("div",{staticClass:"member-head"},[e("div",{staticClass:"member-title"},[t._v(t._s(t.$L("\u9879\u76EE\u6210\u5458"))),e("span",{on:{click:function(n){t.memberShowAll=!t.memberShowAll}}},[t._v("("+t._s(t.projectData.project_user.length)+")")])]),e("div",{staticClass:"member-close",on:{click:t.onClose}},[e("Icon",{attrs:{type:"ios-close"}})],1)]),e("ul",{class:["member-list",t.memberShowAll?"member-all":""]},t._l(t.projectData.project_user,function(n){return e("li",[e("UserAvatar",{attrs:{userid:n.userid,size:36}})],1)}),0)]),e("div",{staticClass:"nav-wrapper"},[e("div",{staticClass:"dialog-title"},[e("h2",[t._v(t._s(t.$L("\u7FA4\u804A")))])])])])],2):t._e()},sr=[];const ir={name:"ProjectDialog",components:{DialogWrapper:kn},data(){return{loadIng:!1,memberShowAll:!1}},computed:{...Ae(["projectData"]),dialogShow(){return this.windowLarge&&this.projectData.dialog_id&&this.projectData.cacheParameter.chat}},methods:{onClose(){this.$store.dispatch("toggleProjectParameter","chat")}}},nn={};var lr=wt(ir,ar,sr,!1,cr,null,null,null);function cr(t){for(let o in nn)this[o]=nn[o]}var dr=function(){return lr.exports}(),ur=function(){var t=this,o=t.$createElement,e=t._self._c||o;return e("div",{staticClass:"project-list"},[e("PageTitle",{attrs:{title:t.$L("\u9879\u76EE")}}),e("div",{staticClass:"list-search"},[e("div",{staticClass:"search-wrapper"},[e("Input",{attrs:{placeholder:t.$L(t.loadProjects?"\u66F4\u65B0\u4E2D...":"\u641C\u7D22\u9879\u76EE"),clearable:""},model:{value:t.projectKeyValue,callback:function(n){t.projectKeyValue=n},expression:"projectKeyValue"}},[e("div",{staticClass:"search-pre",attrs:{slot:"prefix"},slot:"prefix"},[t.loadProjects?e("Loading"):e("Icon",{attrs:{type:"ios-search"}})],1)])],1)]),e("ul",{on:{scroll:function(n){t.operateVisible=!1}}},[t.projectLists.length===0?[t.projectKeyLoading>0?e("li",{staticClass:"loading"},[e("Loading")],1):e("li",{staticClass:"nothing"},[t._v(" "+t._s(t.$L(t.projectKeyValue?`\u6CA1\u6709\u4EFB\u4F55\u4E0E"${t.projectKeyValue}"\u76F8\u5173\u7684\u9879\u76EE`:"\u6CA1\u6709\u4EFB\u4F55\u9879\u76EE"))+" ")])]:t._e(),t._l(t.projectLists,function(n,a){return e("li",{directives:[{name:"longpress",rawName:"v-longpress",value:t.handleLongpress,expression:"handleLongpress"}],key:a,class:{operate:n.id==t.operateItem.id&&t.operateVisible},attrs:{"data-id":n.id},on:{click:function(r){return t.toggleRoute("project",{projectId:n.id})}}},[e("div",{staticClass:"project-item"},[e("div",{staticClass:"item-left"},[e("div",{staticClass:"project-h1"},[e("div",{staticClass:"project-name"},[t._v(t._s(n.name))]),n.top_at?e("div",{staticClass:"icon-top"}):t._e(),n.task_my_num-n.task_my_complete>0?e("div",{staticClass:"num"},[t._v(t._s(n.task_my_num-n.task_my_complete))]):t._e()]),e("div",{staticClass:"project-h2"},[t._v(" "+t._s(n.desc)+" ")])]),n.task_num>0?e("div",{staticClass:"item-right",on:{click:function(r){return r.stopPropagation(),t.modalPercent(n)}}},[e("iCircle",{attrs:{type:"circle","trail-color":"rgba(132, 197, 106, 0.2)","trail-width":7,"stroke-color":n.task_percent===100?"rgba(132, 197, 106, 0)":"#84C56A","stroke-width":7,percent:n.task_percent,size:44}},[n.task_percent===100?e("Icon",{attrs:{type:"ios-checkmark"}}):e("span",{staticClass:"percent-text"},[t._v(t._s(n.task_percent)+"%")])],1)],1):t._e()])])})],2),e("div",{staticClass:"operate-position",style:t.operateStyles},[e("Dropdown",{attrs:{trigger:"custom",placement:t.windowLarge?"bottom":"top",visible:t.operateVisible,transfer:""},on:{"on-clickoutside":function(n){t.operateVisible=!1}}},[e("div",{style:{userSelect:t.operateVisible?"none":"auto",height:t.operateStyles.height}}),e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[e("DropdownItem",{nativeOn:{click:function(n){return t.handleTopClick.apply(null,arguments)}}},[t._v(" "+t._s(t.$L(t.operateItem.top_at?"\u53D6\u6D88\u7F6E\u9876":"\u7F6E\u9876\u8BE5\u9879\u76EE"))+" ")])],1)],1)],1)],1)},fr=[];const hr={name:"ProjectList",directives:{longpress:jn},data(){return{projectKeyValue:"",projectKeyLoading:0,operateStyles:{},operateVisible:!1,operateItem:{}}},computed:{...kt(["cacheProjects","loadProjects"]),projectLists(){const{projectKeyValue:t,cacheProjects:o}=this,e=$A.cloneJSON(o).sort((n,a)=>n.top_at||a.top_at?$A.Date(a.top_at)-$A.Date(n.top_at):a.id-n.id);return t?e.filter(n=>$A.strExists(`${n.name} ${n.desc}`,t)):e}},watch:{projectKeyValue(t){t!=""&&(this.projectKeyLoading++,setTimeout(()=>{this.projectKeyValue==t&&this.searchProject(),this.projectKeyLoading--},600))}},methods:{searchProject(){this.projectKeyLoading++,this.$store.dispatch("getProjects",{keys:{name:this.projectKeyValue},hideLoad:!0}).finally(t=>{this.projectKeyLoading--})},toggleRoute(t,o){this.operateVisible||this.goForward({name:"manage-"+t,params:o||{}})},modalPercent(t){if(this.operateVisible)return;let o=`

    ${this.$L("\u603B\u8FDB\u5EA6")}

    `;o+=`

    ${this.$L("\u603B\u6570\u91CF")}: ${t.task_num}

    `,o+=`

    ${this.$L("\u5DF2\u5B8C\u6210")}: ${t.task_complete}

    `,o+=`

    ${this.$L("\u6211\u7684\u4EFB\u52A1")}

    `,o+=`

    ${this.$L("\u603B\u6570\u91CF")}: ${t.task_my_num}

    `,o+=`

    ${this.$L("\u5DF2\u5B8C\u6210")}: ${t.task_my_complete}

    `,$A.modalInfo({language:!1,title:`${t.name} ${this.$L("\u9879\u76EE\u8FDB\u5EA6")}`,content:o})},handleLongpress(t,o){const e=$A.getAttr(o,"data-id"),n=this.projectLists.find(a=>a.id==e);!n||(this.operateVisible=!1,this.operateItem=$A.isJson(n)?n:{},this.$nextTick(()=>{const a=o.getBoundingClientRect(),r=this.$el.getBoundingClientRect();this.operateStyles={left:`${t.clientX-r.left}px`,top:`${a.top+this.windowScrollY}px`,height:a.height+"px"},this.operateVisible=!0}))},handleTopClick(){this.$store.dispatch("call",{url:"project/top",data:{project_id:this.operateItem.id}}).then(({data:t})=>{this.$store.dispatch("saveProject",t)}).catch(({msg:t})=>{$A.modalError(t)})}}},on={};var pr=wt(hr,ur,fr,!1,mr,null,null,null);function mr(t){for(let o in on)this[o]=on[o]}var vr=function(){return pr.exports}(),gr=function(){var t=this,o=t.$createElement,e=t._self._c||o;return e("div",{staticClass:"page-project"},[t.projectId>0?[e("ProjectPanel"),e("ProjectDialog")]:t._e(),t.windowSmall?e("ProjectList",{directives:[{name:"show",rawName:"v-show",value:t.projectId===0,expression:"projectId === 0"}]}):t._e()],2)},yr=[];const br={components:{ProjectList:vr,ProjectDialog:dr,ProjectPanel:rr},deactivated(){this.$store.dispatch("forgetTaskCompleteTemp",!0)},computed:{...kt(["cacheProjects","wsOpenNum"]),projectId(){const{projectId:t}=this.$route.params;return parseInt(/^\d+$/.test(t)?t:0)}},watch:{projectId:{handler(){this.getProjectData()},immediate:!0},wsOpenNum(t){t<=1||(this.wsOpenTimeout&&clearTimeout(this.wsOpenTimeout),this.wsOpenTimeout=setTimeout(()=>{this.$route.name=="manage-project"&&this.getProjectData()},5e3))}},methods:{getProjectData(){if(this.projectId<=0)return;const t=this.projectId;this.$nextTick(()=>{this.$store.state.projectId=t,this.$store.dispatch("getProjectOne",t).then(()=>{this.$store.dispatch("getColumns",t).catch(()=>{}),this.$store.dispatch("getTaskForProject",t).catch(()=>{})}).catch(({msg:o})=>{t===this.projectId&&$A.modalWarning({content:o,onOk:()=>{const e=this.cacheProjects.find(({id:n})=>n);e?$A.goForward({name:"manage-project",params:{projectId:e.id}}):$A.goForward({name:"manage-dashboard"})}})}),this.$store.dispatch("forgetTaskCompleteTemp",!0)})}}},rn={};var wr=wt(br,gr,yr,!1,$r,null,null,null);function $r(t){for(let o in rn)this[o]=rn[o]}var jr=function(){return wr.exports}();export{jr as default}; diff --git a/public/js/build/projectInvite.b379c531.js b/public/js/build/projectInvite.ef2b6575.js similarity index 96% rename from public/js/build/projectInvite.b379c531.js rename to public/js/build/projectInvite.ef2b6575.js index ffa96748b..559601c55 100644 --- a/public/js/build/projectInvite.b379c531.js +++ b/public/js/build/projectInvite.ef2b6575.js @@ -1 +1 @@ -import{n as a}from"./app.90cb6e79.js";var r=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"page-invite"},[e("PageTitle",{attrs:{title:t.$L("\u52A0\u5165\u9879\u76EE")}}),t.loadIng>0?e("div",{staticClass:"invite-load"},[e("Loading")],1):e("div",{staticClass:"invite-warp"},[t.project.id>0?e("Card",[e("p",{attrs:{slot:"title"},slot:"title"},[t._v(t._s(t.project.name))]),t.project.desc?e("div",{staticClass:"invite-desc"},[t._v(t._s(t.project.desc))]):e("div",[t._v(t._s(t.$L("\u6682\u65E0\u4ECB\u7ECD")))]),e("div",{staticClass:"invite-footer"},[t.already?e("Button",{attrs:{type:"success",icon:"ios-checkmark-circle-outline"},on:{click:t.goProject}},[t._v(t._s(t.$L("\u5DF2\u52A0\u5165")))]):e("Button",{attrs:{type:"primary",loading:t.joinLoad>0},on:{click:t.joinProject}},[t._v(t._s(t.$L("\u52A0\u5165\u9879\u76EE")))])],1)]):e("Card",[e("p",[t._v(t._s(t.$L("\u9080\u8BF7\u5730\u5740\u4E0D\u5B58\u5728\u6216\u5DF2\u88AB\u5220\u9664\uFF01")))])])],1)],1)},s=[];const c={data(){return{loadIng:0,joinLoad:0,already:!1,project:{}}},watch:{$route:{handler(t){this.code=t.query?t.query.code:"",this.getData()},immediate:!0}},methods:{getData(){this.loadIng++,this.$store.dispatch("call",{url:"project/invite/info",data:{code:this.code}}).then(({data:t})=>{this.already=t.already,this.project=t.project}).catch(()=>{this.project={}}).finally(t=>{this.loadIng--})},joinProject(){this.joinLoad++,this.$store.dispatch("call",{url:"project/invite/join",data:{code:this.code}}).then(({data:t})=>{this.already=t.already,this.project=t.project,this.goProject()}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.joinLoad--})},goProject(){this.$nextTick(()=>{$A.goForward({name:"manage-project",params:{projectId:this.project.id}})})}}},o={};var n=a(c,r,s,!1,l,"2305dec0",null,null);function l(t){for(let i in o)this[i]=o[i]}var _=function(){return n.exports}();export{_ as default}; +import{n as a}from"./app.feefc813.js";var r=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"page-invite"},[e("PageTitle",{attrs:{title:t.$L("\u52A0\u5165\u9879\u76EE")}}),t.loadIng>0?e("div",{staticClass:"invite-load"},[e("Loading")],1):e("div",{staticClass:"invite-warp"},[t.project.id>0?e("Card",[e("p",{attrs:{slot:"title"},slot:"title"},[t._v(t._s(t.project.name))]),t.project.desc?e("div",{staticClass:"invite-desc"},[t._v(t._s(t.project.desc))]):e("div",[t._v(t._s(t.$L("\u6682\u65E0\u4ECB\u7ECD")))]),e("div",{staticClass:"invite-footer"},[t.already?e("Button",{attrs:{type:"success",icon:"ios-checkmark-circle-outline"},on:{click:t.goProject}},[t._v(t._s(t.$L("\u5DF2\u52A0\u5165")))]):e("Button",{attrs:{type:"primary",loading:t.joinLoad>0},on:{click:t.joinProject}},[t._v(t._s(t.$L("\u52A0\u5165\u9879\u76EE")))])],1)]):e("Card",[e("p",[t._v(t._s(t.$L("\u9080\u8BF7\u5730\u5740\u4E0D\u5B58\u5728\u6216\u5DF2\u88AB\u5220\u9664\uFF01")))])])],1)],1)},s=[];const c={data(){return{loadIng:0,joinLoad:0,already:!1,project:{}}},watch:{$route:{handler(t){this.code=t.query?t.query.code:"",this.getData()},immediate:!0}},methods:{getData(){this.loadIng++,this.$store.dispatch("call",{url:"project/invite/info",data:{code:this.code}}).then(({data:t})=>{this.already=t.already,this.project=t.project}).catch(()=>{this.project={}}).finally(t=>{this.loadIng--})},joinProject(){this.joinLoad++,this.$store.dispatch("call",{url:"project/invite/join",data:{code:this.code}}).then(({data:t})=>{this.already=t.already,this.project=t.project,this.goProject()}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.joinLoad--})},goProject(){this.$nextTick(()=>{$A.goForward({name:"manage-project",params:{projectId:this.project.id}})})}}},o={};var n=a(c,r,s,!1,l,"2305dec0",null,null);function l(t){for(let i in o)this[i]=o[i]}var _=function(){return n.exports}();export{_ as default}; diff --git a/public/js/build/reportDetail.88da4fa9.js b/public/js/build/reportDetail.50768d0f.js similarity index 85% rename from public/js/build/reportDetail.88da4fa9.js rename to public/js/build/reportDetail.50768d0f.js index 4c705f0c3..5c10b779e 100644 --- a/public/js/build/reportDetail.88da4fa9.js +++ b/public/js/build/reportDetail.50768d0f.js @@ -1 +1 @@ -import{R as i}from"./ReportDetail.7265b249.js";import{n as o}from"./app.90cb6e79.js";var s=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"electron-report"},[r("PageTitle",{attrs:{title:t.$L("\u62A5\u544A\u8BE6\u60C5")}}),r("ReportDetail",{attrs:{data:t.detailData}})],1)},l=[];const n={components:{ReportDetail:i},data(){return{detailData:{}}},computed:{reportDetailId(){const{reportDetailId:t}=this.$route.params;return parseInt(/^\d+$/.test(t)?t:0)}},watch:{reportDetailId:{handler(){this.getDetail()},immediate:!0}},methods:{getDetail(){this.reportDetailId<=0||this.$store.dispatch("call",{url:"report/detail",data:{id:this.reportDetailId}}).then(({data:t})=>{this.detailData=t}).catch(({msg:t})=>{$A.messageError(t)})}}},a={};var c=o(n,s,l,!1,d,"76126c11",null,null);function d(t){for(let e in a)this[e]=a[e]}var u=function(){return c.exports}();export{u as default}; +import{R as i}from"./ReportDetail.732d6d88.js";import{n as o}from"./app.feefc813.js";var s=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"electron-report"},[r("PageTitle",{attrs:{title:t.$L("\u62A5\u544A\u8BE6\u60C5")}}),r("ReportDetail",{attrs:{data:t.detailData}})],1)},l=[];const n={components:{ReportDetail:i},data(){return{detailData:{}}},computed:{reportDetailId(){const{reportDetailId:t}=this.$route.params;return parseInt(/^\d+$/.test(t)?t:0)}},watch:{reportDetailId:{handler(){this.getDetail()},immediate:!0}},methods:{getDetail(){this.reportDetailId<=0||this.$store.dispatch("call",{url:"report/detail",data:{id:this.reportDetailId}}).then(({data:t})=>{this.detailData=t}).catch(({msg:t})=>{$A.messageError(t)})}}},a={};var c=o(n,s,l,!1,d,"76126c11",null,null);function d(t){for(let e in a)this[e]=a[e]}var u=function(){return c.exports}();export{u as default}; diff --git a/public/js/build/reportEdit.723b9ca6.js b/public/js/build/reportEdit.f02ae320.js similarity index 86% rename from public/js/build/reportEdit.723b9ca6.js rename to public/js/build/reportEdit.f02ae320.js index 5a29dfe07..2b794f8a6 100644 --- a/public/js/build/reportEdit.723b9ca6.js +++ b/public/js/build/reportEdit.f02ae320.js @@ -1 +1 @@ -import{R as i}from"./ReportEdit.1b195875.js";import{n}from"./app.90cb6e79.js";import"./UserInput.1d67c0fc.js";var o=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"electron-report"},[r("PageTitle",{attrs:{title:t.title}}),r("ReportEdit",{attrs:{id:t.reportEditId},on:{saveSuccess:t.saveSuccess}})],1)},a=[];const d={components:{ReportEdit:i},data(){return{detail:{}}},computed:{reportEditId(){if(/^\d+$/.test(this.detail.id))return parseInt(this.detail.id);const{reportEditId:t}=this.$route.params;return parseInt(/^\d+$/.test(t)?t:0)},title(){return this.$L(this.reportEditId>0?"\u4FEE\u6539\u62A5\u544A":"\u65B0\u589E\u62A5\u544A")}},methods:{saveSuccess(t){this.detail=t,this.$isSubElectron&&($A.Electron.sendMessage("sendForwardMain",{channel:"reportSaveSuccess",data:t}),window.close())}}},s={};var c=n(d,o,a,!1,l,"807ce0ea",null,null);function l(t){for(let e in s)this[e]=s[e]}var v=function(){return c.exports}();export{v as default}; +import{R as i}from"./ReportEdit.4981db49.js";import{n}from"./app.feefc813.js";import"./UserInput.2bc16b15.js";var o=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"electron-report"},[r("PageTitle",{attrs:{title:t.title}}),r("ReportEdit",{attrs:{id:t.reportEditId},on:{saveSuccess:t.saveSuccess}})],1)},a=[];const d={components:{ReportEdit:i},data(){return{detail:{}}},computed:{reportEditId(){if(/^\d+$/.test(this.detail.id))return parseInt(this.detail.id);const{reportEditId:t}=this.$route.params;return parseInt(/^\d+$/.test(t)?t:0)},title(){return this.$L(this.reportEditId>0?"\u4FEE\u6539\u62A5\u544A":"\u65B0\u589E\u62A5\u544A")}},methods:{saveSuccess(t){this.detail=t,this.$isSubElectron&&($A.Electron.sendMessage("sendForwardMain",{channel:"reportSaveSuccess",data:t}),window.close())}}},s={};var c=n(d,o,a,!1,l,"807ce0ea",null,null);function l(t){for(let e in s)this[e]=s[e]}var v=function(){return c.exports}();export{v as default}; diff --git a/public/js/build/swipe.95eaa6f0.js b/public/js/build/swipe.3ea9c9af.js similarity index 99% rename from public/js/build/swipe.95eaa6f0.js rename to public/js/build/swipe.3ea9c9af.js index ea3db2953..1bc4dbd6b 100644 --- a/public/js/build/swipe.95eaa6f0.js +++ b/public/js/build/swipe.3ea9c9af.js @@ -1,4 +1,4 @@ -import{n as _,_ as w}from"./app.90cb6e79.js";/*! +import{n as _,_ as w}from"./app.feefc813.js";/*! * PhotoSwipe Lightbox 5.3.4 - https://photoswipe.com * (c) 2022 Dmytro Semenov */function o(s,t,e){const i=document.createElement(t||"div");return s&&(i.className=s),e&&e.appendChild(i),i}function v(s,t,e){let i="translate3d("+s+"px,"+(t||0)+"px,0)";return e!==void 0&&(i+=" scale3d("+e+","+e+",1)"),i}function u(s,t,e){s.style.width=typeof t=="number"?t+"px":t,s.style.height=typeof e=="number"?e+"px":e}const l={IDLE:"idle",LOADING:"loading",LOADED:"loaded",ERROR:"error"};function S(s){if(s.which===2||s.ctrlKey||s.metaKey||s.altKey||s.shiftKey)return!0}function p(s,t,e=document){let i=[];if(s instanceof Element)i=[s];else if(s instanceof NodeList||Array.isArray(s))i=Array.from(s);else{const n=typeof s=="string"?s:t;n&&(i=Array.from(e.querySelectorAll(n)))}return i}function E(s){return typeof s=="function"&&s.prototype&&s.prototype.goTo}function f(){return!!(navigator.vendor&&navigator.vendor.match(/apple/i))}class I{constructor(t,e){this.type=t,e&&Object.assign(this,e)}preventDefault(){this.defaultPrevented=!0}}class A{constructor(){this._listeners={},this._filters={},this.pswp=void 0,this.options=void 0}addFilter(t,e,i=100){this._filters[t]||(this._filters[t]=[]),this._filters[t].push({fn:e,priority:i}),this._filters[t].sort((n,r)=>n.priority-r.priority),this.pswp&&this.pswp.addFilter(t,e,i)}removeFilter(t,e){this._filters[t]&&(this._filters[t]=this._filters[t].filter(i=>i.fn!==e)),this.pswp&&this.pswp.removeFilter(t,e)}applyFilters(t,...e){return this._filters[t]&&this._filters[t].forEach(i=>{e[0]=i.fn.apply(this,e)}),e[0]}on(t,e){this._listeners[t]||(this._listeners[t]=[]),this._listeners[t].push(e),this.pswp&&this.pswp.on(t,e)}off(t,e){this._listeners[t]&&(this._listeners[t]=this._listeners[t].filter(i=>e!==i)),this.pswp&&this.pswp.off(t,e)}dispatch(t,e){if(this.pswp)return this.pswp.dispatch(t,e);const i=new I(t,e);return this._listeners&&this._listeners[t]&&this._listeners[t].forEach(n=>{n.call(this,i)}),i}}class D{constructor(t,e){this.element=o("pswp__img pswp__img--placeholder",t?"img":"",e),t&&(this.element.decoding="async",this.element.alt="",this.element.src=t,this.element.setAttribute("role","presentation")),this.element.setAttribute("aria-hidden","true")}setDisplayedSize(t,e){!this.element||(this.element.tagName==="IMG"?(u(this.element,250,"auto"),this.element.style.transformOrigin="0 0",this.element.style.transform=v(0,0,t/250)):u(this.element,t,e))}destroy(){this.element.parentNode&&this.element.remove(),this.element=null}}class L{constructor(t,e,i){this.instance=e,this.data=t,this.index=i,this.element=void 0,this.displayedImageWidth=0,this.displayedImageHeight=0,this.width=Number(this.data.w)||Number(this.data.width)||0,this.height=Number(this.data.h)||Number(this.data.height)||0,this.isAttached=!1,this.hasSlide=!1,this.state=l.IDLE,this.data.type?this.type=this.data.type:this.data.src?this.type="image":this.type="html",this.instance.dispatch("contentInit",{content:this})}removePlaceholder(){this.placeholder&&!this.keepPlaceholder()&&setTimeout(()=>{this.placeholder&&(this.placeholder.destroy(),this.placeholder=null)},1e3)}load(t,e){if(this.slide&&this.usePlaceholder())if(this.placeholder){const i=this.placeholder.element;i&&!i.parentElement&&this.slide.container.prepend(i)}else{const i=this.instance.applyFilters("placeholderSrc",this.data.msrc&&this.slide.isFirstSlide?this.data.msrc:!1,this);this.placeholder=new D(i,this.slide.container)}this.element&&!e||this.instance.dispatch("contentLoad",{content:this,isLazy:t}).defaultPrevented||(this.isImageContent()?(this.element=o("pswp__img","img"),this.displayedImageWidth&&this.loadImage(t)):(this.element=o("pswp__content"),this.element.innerHTML=this.data.html||""),e&&this.slide&&this.slide.updateContentSize(!0))}loadImage(t){const e=this.element;this.instance.dispatch("contentLoadImage",{content:this,isLazy:t}).defaultPrevented||(this.updateSrcsetSizes(),this.data.srcset&&(e.srcset=this.data.srcset),e.src=this.data.src,e.alt=this.data.alt||"",this.state=l.LOADING,e.complete?this.onLoaded():(e.onload=()=>{this.onLoaded()},e.onerror=()=>{this.onError()}))}setSlide(t){this.slide=t,this.hasSlide=!0,this.instance=t.pswp}onLoaded(){this.state=l.LOADED,this.slide&&(this.instance.dispatch("loadComplete",{slide:this.slide,content:this}),this.slide.isActive&&this.slide.heavyAppended&&!this.element.parentNode&&(this.append(),this.slide.updateContentSize(!0)),(this.state===l.LOADED||this.state===l.ERROR)&&this.removePlaceholder())}onError(){this.state=l.ERROR,this.slide&&(this.displayError(),this.instance.dispatch("loadComplete",{slide:this.slide,isError:!0,content:this}),this.instance.dispatch("loadError",{slide:this.slide,content:this}))}isLoading(){return this.instance.applyFilters("isContentLoading",this.state===l.LOADING,this)}isError(){return this.state===l.ERROR}isImageContent(){return this.type==="image"}setDisplayedSize(t,e){if(!!this.element&&(this.placeholder&&this.placeholder.setDisplayedSize(t,e),!this.instance.dispatch("contentResize",{content:this,width:t,height:e}).defaultPrevented&&(u(this.element,t,e),this.isImageContent()&&!this.isError()))){const i=!this.displayedImageWidth&&t;this.displayedImageWidth=t,this.displayedImageHeight=e,i?this.loadImage(!1):this.updateSrcsetSizes(),this.slide&&this.instance.dispatch("imageSizeChange",{slide:this.slide,width:t,height:e,content:this})}}isZoomable(){return this.instance.applyFilters("isContentZoomable",this.isImageContent()&&this.state!==l.ERROR,this)}updateSrcsetSizes(){if(this.data.srcset){const t=this.element,e=this.instance.applyFilters("srcsetSizesWidth",this.displayedImageWidth,this);(!t.dataset.largestUsedSize||e>parseInt(t.dataset.largestUsedSize,10))&&(t.sizes=e+"px",t.dataset.largestUsedSize=String(e))}}usePlaceholder(){return this.instance.applyFilters("useContentPlaceholder",this.isImageContent(),this)}lazyLoad(){this.instance.dispatch("contentLazyLoad",{content:this}).defaultPrevented||this.load(!0)}keepPlaceholder(){return this.instance.applyFilters("isKeepingPlaceholder",this.isLoading(),this)}destroy(){this.hasSlide=!1,this.slide=null,!this.instance.dispatch("contentDestroy",{content:this}).defaultPrevented&&(this.remove(),this.placeholder&&(this.placeholder.destroy(),this.placeholder=null),this.isImageContent()&&this.element&&(this.element.onload=null,this.element.onerror=null,this.element=null))}displayError(){if(this.slide){let t=o("pswp__error-msg");t.innerText=this.instance.options.errorMsg,t=this.instance.applyFilters("contentErrorElement",t,this),this.element=o("pswp__content pswp__error-msg-container"),this.element.appendChild(t),this.slide.container.innerText="",this.slide.container.appendChild(this.element),this.slide.updateContentSize(!0),this.removePlaceholder()}}append(){if(this.isAttached)return;if(this.isAttached=!0,this.state===l.ERROR){this.displayError();return}if(this.instance.dispatch("contentAppend",{content:this}).defaultPrevented)return;const t="decode"in this.element;this.isImageContent()?t&&this.slide&&(!this.slide.isActive||f())?(this.isDecoding=!0,this.element.decode().catch(()=>{}).finally(()=>{this.isDecoding=!1,this.appendImage()})):this.appendImage():this.element&&!this.element.parentNode&&this.slide.container.appendChild(this.element)}activate(){this.instance.dispatch("contentActivate",{content:this}).defaultPrevented||this.slide&&(this.isImageContent()&&this.isDecoding&&!f()?this.appendImage():this.isError()&&this.load(!1,!0),this.slide.holderElement&&this.slide.holderElement.setAttribute("aria-hidden","false"))}deactivate(){this.instance.dispatch("contentDeactivate",{content:this}),this.slide&&this.slide.holderElement&&this.slide.holderElement.setAttribute("aria-hidden","true")}remove(){this.isAttached=!1,!this.instance.dispatch("contentRemove",{content:this}).defaultPrevented&&(this.element&&this.element.parentNode&&this.element.remove(),this.placeholder&&this.placeholder.element&&this.placeholder.element.remove())}appendImage(){!this.isAttached||this.instance.dispatch("contentAppendImage",{content:this}).defaultPrevented||(this.slide&&this.element&&!this.element.parentNode&&this.slide.container.appendChild(this.element),(this.state===l.LOADED||this.state===l.ERROR)&&this.removePlaceholder())}}function b(s,t){if(s.getViewportSizeFn){const e=s.getViewportSizeFn(s,t);if(e)return e}return{x:document.documentElement.clientWidth,y:window.innerHeight}}function d(s,t,e,i,n){let r;if(t.paddingFn)r=t.paddingFn(e,i,n)[s];else if(t.padding)r=t.padding[s];else{const h="padding"+s[0].toUpperCase()+s.slice(1);t[h]&&(r=t[h])}return r||0}function C(s,t,e,i){return{x:t.x-d("left",s,t,e,i)-d("right",s,t,e,i),y:t.y-d("top",s,t,e,i)-d("bottom",s,t,e,i)}}const m=4e3;class z{constructor(t,e,i,n){this.pswp=n,this.options=t,this.itemData=e,this.index=i}update(t,e,i){this.elementSize={x:t,y:e},this.panAreaSize=i;const n=this.panAreaSize.x/this.elementSize.x,r=this.panAreaSize.y/this.elementSize.y;this.fit=Math.min(1,nr?n:r),this.vFill=Math.min(1,r),this.initial=this._getInitial(),this.secondary=this._getSecondary(),this.max=Math.max(this.initial,this.secondary,this._getMax()),this.min=Math.min(this.fit,this.initial,this.secondary),this.pswp&&this.pswp.dispatch("zoomLevelsUpdate",{zoomLevels:this,slideData:this.itemData})}_parseZoomLevelOption(t){const e=t+"ZoomLevel",i=this.options[e];if(!!i)return typeof i=="function"?i(this):i==="fill"?this.fill:i==="fit"?this.fit:Number(i)}_getSecondary(){let t=this._parseZoomLevelOption("secondary");return t||(t=Math.min(1,this.fit*3),t*this.elementSize.x>m&&(t=m/this.elementSize.x),t)}_getInitial(){return this._parseZoomLevelOption("initial")||this.fit}_getMax(){const t=this._parseZoomLevelOption("max");return t||Math.max(1,this.fit*4)}}function y(s,t,e){const i=t.createContentFromData(s,e);if(!i||!i.lazyLoad)return;const{options:n}=t,r=t.viewportSize||b(n,t),h=C(n,r,s,e),a=new z(n,s,-1);return a.update(i.width,i.height,h),i.lazyLoad(),i.setDisplayedSize(Math.ceil(i.width*a.initial),Math.ceil(i.height*a.initial)),i}function x(s,t){const e=t.getItemData(s);if(!t.dispatch("lazyLoadSlide",{index:s,itemData:e}).defaultPrevented)return y(e,t,s)}class P extends A{getNumItems(){let t;const{dataSource:e}=this.options;e?"length"in e?t=e.length:"gallery"in e&&(e.items||(e.items=this._getGalleryDOMElements(e.gallery)),e.items&&(t=e.items.length)):t=0;const i=this.dispatch("numItems",{dataSource:e,numItems:t});return this.applyFilters("numItems",i.numItems,e)}createContentFromData(t,e){return new L(t,this,e)}getItemData(t){const{dataSource:e}=this.options;let i;Array.isArray(e)?i=e[t]:e&&e.gallery&&(e.items||(e.items=this._getGalleryDOMElements(e.gallery)),i=e.items[t]);let n=i;n instanceof Element&&(n=this._domElementToItemData(n));const r=this.dispatch("itemData",{itemData:n||{},index:t});return this.applyFilters("itemData",r.itemData,t)}_getGalleryDOMElements(t){return this.options.children||this.options.childSelector?p(this.options.children,this.options.childSelector,t)||[]:[t]}_domElementToItemData(t){const e={element:t},i=t.tagName==="A"?t:t.querySelector("a");if(i){e.src=i.dataset.pswpSrc||i.href,i.dataset.pswpSrcset&&(e.srcset=i.dataset.pswpSrcset),e.width=parseInt(i.dataset.pswpWidth,10),e.height=parseInt(i.dataset.pswpHeight,10),e.w=e.width,e.h=e.height,i.dataset.pswpType&&(e.type=i.dataset.pswpType);const n=t.querySelector("img");n&&(e.msrc=n.currentSrc||n.src,e.alt=n.getAttribute("alt")),(i.dataset.pswpCropped||i.dataset.cropped)&&(e.thumbCropped=!0)}return this.applyFilters("domItemData",e,t,i)}lazyLoadData(t,e){return y(t,this,e)}}class O extends P{constructor(t){super(),this.options=t||{},this._uid=0}init(){this.onThumbnailsClick=this.onThumbnailsClick.bind(this),p(this.options.gallery,this.options.gallerySelector).forEach(t=>{t.addEventListener("click",this.onThumbnailsClick,!1)})}onThumbnailsClick(t){if(S(t)||window.pswp||window.navigator.onLine===!1)return;let e={x:t.clientX,y:t.clientY};!e.x&&!e.y&&(e=null);let i=this.getClickedIndex(t);i=this.applyFilters("clickedIndex",i,t,this);const n={gallery:t.currentTarget};i>=0&&(t.preventDefault(),this.loadAndOpen(i,n,e))}getClickedIndex(t){if(this.options.getClickedIndexFn)return this.options.getClickedIndexFn.call(this,t);const e=t.target,n=p(this.options.children,this.options.childSelector,t.currentTarget).findIndex(r=>r===e||r.contains(e));return n!==-1?n:this.options.children||this.options.childSelector?-1:0}loadAndOpen(t,e,i){return window.pswp?!1:(this.options.index=t,this.options.initialPointerPos=i,this.shouldOpen=!0,this.preload(t,e),!0)}preload(t,e){const{options:i}=this;e&&(i.dataSource=e);const n=[],r=typeof i.pswpModule;if(E(i.pswpModule))n.push(Promise.resolve(i.pswpModule));else{if(r==="string")throw new Error("pswpModule as string is no longer supported");if(r==="function")n.push(i.pswpModule());else throw new Error("pswpModule is not valid")}typeof i.openPromise=="function"&&n.push(i.openPromise()),i.preloadFirstSlide!==!1&&t>=0&&(this._preloadedContent=x(t,this));const h=++this._uid;Promise.all(n).then(a=>{if(this.shouldOpen){const c=a[0];this._openPhotoswipe(c,h)}})}_openPhotoswipe(t,e){if(e!==this._uid&&this.shouldOpen||(this.shouldOpen=!1,window.pswp))return;const i=typeof t=="object"?new t.default(this.options):new t(this.options);this.pswp=i,window.pswp=i,Object.keys(this._listeners).forEach(n=>{this._listeners[n].forEach(r=>{i.on(n,r)})}),Object.keys(this._filters).forEach(n=>{this._filters[n].forEach(r=>{i.addFilter(n,r.fn,r.priority)})}),this._preloadedContent&&(i.contentLoader.addToCache(this._preloadedContent),this._preloadedContent=null),i.on("destroy",()=>{this.pswp=null,window.pswp=null}),i.init()}destroy(){this.pswp&&this.pswp.destroy(),this.shouldOpen=!1,this._listeners=null,p(this.options.gallery,this.options.gallerySelector).forEach(t=>{t.removeEventListener("click",this.onThumbnailsClick,!1)})}}var M=function(){var s=this,t=s.$createElement,e=s._self._c||t;return e("div")},F=[];const R={props:{className:{type:String,default:()=>"preview-image-swipe-"+Math.round(Math.random()*1e4)},urlList:{type:Array,default:()=>[]},initialIndex:{type:Number,default:0}},data(){return{lightbox:null}},beforeDestroy(){var s;(s=this.lightbox)==null||s.destroy()},watch:{urlList:{handler(s){var n;let t=!1,e=!1;(n=this.lightbox)==null||n.destroy();const i=s.map(r=>{if($A.isJson(r)){if(r.src&&(r.src=$A.rightDelete(r.src,"_thumb.jpg")),parseInt(r.width)>0&&parseInt(r.height)>0)return r;r=r.src}return e=!0,{html:`
    `}});this.lightbox=new O({dataSource:i,escKey:!1,mainClass:this.className,showHideAnimationType:"none",pswpModule:()=>w(()=>import("./photoswipe.esm.7de5f3f7.js"),[])}),this.lightbox.on("change",()=>{e&&$A.loadScript("js/pinch-zoom.umd.min.js",r=>{PinchZoom!=="object"&&document.querySelector(`.${this.className}`).querySelectorAll(".preview-image-swipe").forEach(a=>{a.getAttribute("data-init-pinch-zoom")!=="init"&&(a.setAttribute("data-init-pinch-zoom","init"),a.querySelector("img").addEventListener("pointermove",c=>{t&&c.stopPropagation()}),new PinchZoom.default(a,{draggableUnzoomed:!1,onDragStart:()=>{t=!0},onDragEnd:()=>{t=!1}}))})})}),this.lightbox.on("close",()=>{this.$emit("on-close")}),this.lightbox.on("destroy",()=>{this.$emit("on-destroy")}),this.lightbox.init(),this.lightbox.loadAndOpen(this.initialIndex)},immediate:!0},initialIndex(s){var t;(t=this.lightbox)==null||t.loadAndOpen(s)}}},g={};var T=_(R,M,F,!1,N,null,null,null);function N(s){for(let t in g)this[t]=g[t]}var Z=function(){return T.exports}();export{Z as default}; diff --git a/public/js/build/system.8bd8c3e1.js b/public/js/build/system.dc8f36e7.js similarity index 99% rename from public/js/build/system.8bd8c3e1.js rename to public/js/build/system.dc8f36e7.js index 97fc6ca11..096465df6 100644 --- a/public/js/build/system.8bd8c3e1.js +++ b/public/js/build/system.dc8f36e7.js @@ -1 +1 @@ -import{n as r,m as v}from"./app.90cb6e79.js";import{D as $}from"./index.b6ff1b3f.js";import{C as h,T as D}from"./CheckinExport.893ae33d.js";import"./UserInput.1d67c0fc.js";var b=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"setting-component-item"},[a("Form",{ref:"formDatum",attrs:{model:t.formDatum,"label-width":"auto"},nativeOn:{submit:function(e){e.preventDefault()}}},[a("FormItem",{attrs:{label:t.$L("\u5141\u8BB8\u6CE8\u518C"),prop:"reg"}},[a("RadioGroup",{model:{value:t.formDatum.reg,callback:function(e){t.$set(t.formDatum,"reg",e)},expression:"formDatum.reg"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5141\u8BB8")))]),a("Radio",{attrs:{label:"invite"}},[t._v(t._s(t.$L("\u9080\u8BF7\u7801")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u7981\u6B62")))])],1),t.formDatum.reg=="open"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5141\u8BB8\uFF1A\u5F00\u653E\u6CE8\u518C\u529F\u80FD\u3002")))]):t.formDatum.reg=="invite"?[a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u9080\u8BF7\u7801\uFF1A\u6CE8\u518C\u65F6\u9700\u586B\u5199\u4E0B\u65B9\u9080\u8BF7\u7801\u3002")))]),a("Input",{staticStyle:{width:"200px","margin-top":"6px"},model:{value:t.formDatum.reg_invite,callback:function(e){t.$set(t.formDatum,"reg_invite",e)},expression:"formDatum.reg_invite"}},[a("span",{attrs:{slot:"prepend"},slot:"prepend"},[t._v(t._s(t.$L("\u9080\u8BF7\u7801")))])])]:t._e()],2),["open","invite"].includes(t.formDatum.reg)?a("FormItem",{attrs:{label:t.$L("\u6CE8\u518C\u8EAB\u4EFD"),prop:"reg_identity"}},[a("RadioGroup",{model:{value:t.formDatum.reg_identity,callback:function(e){t.$set(t.formDatum,"reg_identity",e)},expression:"formDatum.reg_identity"}},[a("Radio",{attrs:{label:"normal"}},[t._v(t._s(t.$L("\u6B63\u5E38\u5E10\u53F7")))]),a("Radio",{attrs:{label:"temp"}},[t._v(t._s(t.$L("\u4E34\u65F6\u5E10\u53F7")))])],1),a("div",{staticClass:"form-tip form-list"},[a("p",[t._v(t._s(t.$L("\u4E34\u65F6\u5E10\u53F7"))+"\uFF1A")]),a("ol",[a("li",[t._v(t._s(t.$L("\u7981\u6B62\u67E5\u770B\u5171\u4EAB\u6240\u6709\u4EBA\u7684\u6587\u4EF6\u3002")))]),a("li",[t._v(t._s(t.$L("\u7981\u6B62\u53D1\u8D77\u4F1A\u8BDD\u3002")))]),a("li",[t._v(t._s(t.$L("\u7981\u6B62\u521B\u5EFA\u7FA4\u804A\u3002")))]),a("li",[t._v(t._s(t.$L("\u7981\u6B62\u62E8\u6253\u7535\u8BDD\u3002")))])])])],1):t._e(),a("FormItem",{attrs:{label:t.$L("\u767B\u5F55\u9A8C\u8BC1\u7801"),prop:"loginCode"}},[a("RadioGroup",{model:{value:t.formDatum.login_code,callback:function(e){t.$set(t.formDatum,"login_code",e)},expression:"formDatum.login_code"}},[a("Radio",{attrs:{label:"auto"}},[t._v(t._s(t.$L("\u81EA\u52A8")))]),a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),t.formDatum.login_code=="auto"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u81EA\u52A8\uFF1A\u5BC6\u7801\u8F93\u5165\u9519\u8BEF\u540E\u5FC5\u987B\u6DFB\u52A0\u9A8C\u8BC1\u7801\u3002")))]):t.formDatum.login_code=="open"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5F00\u542F\uFF1A\u6BCF\u6B21\u767B\u5F55\u90FD\u9700\u8981\u56FE\u5F62\u9A8C\u8BC1\u7801\u3002")))]):t.formDatum.login_code=="close"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5173\u95ED\uFF1A\u4E0D\u9700\u8981\u8F93\u5165\u56FE\u5F62\u9A8C\u8BC1\u3002")))]):t._e()],1),a("FormItem",{attrs:{label:t.$L("\u5BC6\u7801\u7B56\u7565"),prop:"passwordPolicy"}},[a("RadioGroup",{model:{value:t.formDatum.password_policy,callback:function(e){t.$set(t.formDatum,"password_policy",e)},expression:"formDatum.password_policy"}},[a("Radio",{attrs:{label:"simple"}},[t._v(t._s(t.$L("\u7B80\u5355")))]),a("Radio",{attrs:{label:"complex"}},[t._v(t._s(t.$L("\u590D\u6742")))])],1),t.formDatum.password_policy=="simple"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u7B80\u5355\uFF1A\u5927\u4E8E\u6216\u7B49\u4E8E6\u4E2A\u5B57\u7B26\u3002")))]):t.formDatum.password_policy=="complex"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u590D\u6742\uFF1A\u5927\u4E8E\u6216\u7B49\u4E8E6\u4E2A\u5B57\u7B26\uFF0C\u5305\u542B\u6570\u5B57\u3001\u5B57\u6BCD\u5927\u5C0F\u5199\u6216\u8005\u7279\u6B8A\u5B57\u7B26\u3002")))]):t._e()],1),a("FormItem",{attrs:{label:t.$L("\u9080\u8BF7\u9879\u76EE"),prop:"projectInvite"}},[a("RadioGroup",{model:{value:t.formDatum.project_invite,callback:function(e){t.$set(t.formDatum,"project_invite",e)},expression:"formDatum.project_invite"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),t.formDatum.project_invite=="open"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5F00\u542F\uFF1A\u9879\u76EE\u7BA1\u7406\u5458\u53EF\u751F\u6210\u94FE\u63A5\u9080\u8BF7\u6210\u5458\u52A0\u5165\u9879\u76EE\u3002")))]):t._e()],1),a("FormItem",{attrs:{label:t.$L("\u804A\u5929\u8D44\u6599"),prop:"chatInformation"}},[a("RadioGroup",{model:{value:t.formDatum.chat_information,callback:function(e){t.$set(t.formDatum,"chat_information",e)},expression:"formDatum.chat_information"}},[a("Radio",{attrs:{label:"optional"}},[t._v(t._s(t.$L("\u53EF\u9009")))]),a("Radio",{attrs:{label:"required"}},[t._v(t._s(t.$L("\u5FC5\u586B")))])],1),t.formDatum.chat_information=="required"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5FC5\u586B\uFF1A\u53D1\u9001\u804A\u5929\u5185\u5BB9\u524D\u5FC5\u987B\u8BBE\u7F6E\u6635\u79F0\u3001\u7535\u8BDD\u3002")))]):a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5982\u679C\u5FC5\u586B\uFF0C\u53D1\u9001\u804A\u5929\u524D\u5FC5\u987B\u8BBE\u7F6E\u6635\u79F0\u3001\u7535\u8BDD\u3002")))])],1),a("FormItem",{attrs:{label:t.$L("\u81EA\u52A8\u5F52\u6863\u4EFB\u52A1"),prop:"autoArchived"}},[a("RadioGroup",{attrs:{value:t.formDatum.auto_archived},on:{"on-change":t.formArchived}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u4EFB\u52A1\u5B8C\u6210\u540E\u81EA\u52A8\u5F52\u6863\u3002")))]),t.formDatum.auto_archived=="open"?a("ETooltip",{attrs:{placement:"right",disabled:t.windowSmall||t.$isEEUiApp}},[a("div",{staticClass:"setting-auto-day"},[a("Input",{attrs:{type:"number"},model:{value:t.formDatum.archived_day,callback:function(e){t.$set(t.formDatum,"archived_day",e)},expression:"formDatum.archived_day"}},[a("span",{attrs:{slot:"append"},slot:"append"},[t._v(t._s(t.$L("\u5929")))])])],1),a("div",{attrs:{slot:"content"},slot:"content"},[t._v(t._s(t.$L("\u4EFB\u52A1\u5B8C\u6210 (*) \u5929\u540E\u81EA\u52A8\u5F52\u6863\u3002",t.formDatum.archived_day)))])]):t._e()],1),a("FormItem",{attrs:{label:t.$L("\u5168\u5458\u7FA4\u7EC4\u7981\u8A00"),prop:"allGroupMute"}},[a("RadioGroup",{model:{value:t.formDatum.all_group_mute,callback:function(e){t.$set(t.formDatum,"all_group_mute",e)},expression:"formDatum.all_group_mute"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u653E")))]),a("Radio",{attrs:{label:"user"}},[t._v(t._s(t.$L("\u6210\u5458\u7981\u8A00")))]),a("Radio",{attrs:{label:"all"}},[t._v(t._s(t.$L("\u5168\u90E8\u7981\u8A00")))])],1),t.formDatum.all_group_mute=="open"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5F00\u653E\uFF1A\u6240\u6709\u4EBA\u90FD\u53EF\u4EE5\u53D1\u8A00\u3002")))]):t.formDatum.all_group_mute=="user"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u6210\u5458\u7981\u8A00\uFF1A\u4EC5\u7BA1\u7406\u5458\u53EF\u4EE5\u53D1\u8A00\u3002")))]):t.formDatum.all_group_mute=="all"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5168\u90E8\u7981\u8A00\uFF1A\u6240\u6709\u4EBA\u90FD\u7981\u6B62\u53D1\u8A00\u3002")))]):t._e()],1),a("FormItem",{attrs:{label:t.$L("\u81EA\u52A8\u8FDB\u5165\u5168\u5458\u7FA4"),prop:"allGroupAutoin"}},[a("RadioGroup",{model:{value:t.formDatum.all_group_autoin,callback:function(e){t.$set(t.formDatum,"all_group_autoin",e)},expression:"formDatum.all_group_autoin"}},[a("Radio",{attrs:{label:"yes"}},[t._v(t._s(t.$L("\u81EA\u52A8")))]),a("Radio",{attrs:{label:"no"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),t.formDatum.all_group_autoin=="yes"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u81EA\u52A8\uFF1A\u6CE8\u518C\u6210\u529F\u540E\u81EA\u52A8\u8FDB\u5165\u5168\u5458\u7FA4\u3002")))]):t.formDatum.all_group_autoin=="no"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5173\u95ED\uFF1A\u5176\u4ED6\u6210\u5458\u901A\u8FC7@\u9080\u8BF7\u8FDB\u5165\u3002")))]):t._e()],1),a("FormItem",{attrs:{label:t.$L("\u662F\u5426\u542F\u52A8\u9996\u9875"),prop:"startHome"}},[a("RadioGroup",{model:{value:t.formDatum.start_home,callback:function(e){t.$set(t.formDatum,"start_home",e)},expression:"formDatum.start_home"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u4EC5\u652F\u6301\u7F51\u9875\u7248\u3002")))]),t.formDatum.start_home=="open"?a("Input",{staticStyle:{margin:"8px 0 -8px"},attrs:{type:"textarea",rows:2,autosize:{minRows:2,maxRows:8},placeholder:t.$L("\u9996\u9875\u5E95\u90E8\uFF1A\u9996\u9875\u5E95\u90E8\u7F51\u7AD9\u5907\u6848\u53F7\u7B49\u4FE1\u606F")},model:{value:t.formDatum.home_footer,callback:function(e){t.$set(t.formDatum,"home_footer",e)},expression:"formDatum.home_footer"}}):t._e()],1)],1),a("div",{staticClass:"setting-footer"},[a("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),a("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},g=[];const y={name:"SystemSetting",data(){return{loadIng:0,formDatum:{}}},mounted(){this.systemSetting()},methods:{submitForm(){this.$refs.formDatum.validate(t=>{t&&this.systemSetting(!0)})},resetForm(){this.formDatum=$A.cloneJSON(this.formDatum_bak)},formArchived(t){this.formDatum={...this.formDatum,auto_archived:t}},systemSetting(t){this.loadIng++,this.$store.dispatch("call",{url:"system/setting?type="+(t?"save":"all"),data:this.formDatum}).then(({data:s})=>{t&&$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.formDatum=s,this.formDatum_bak=$A.cloneJSON(this.formDatum)}).catch(({msg:s})=>{t&&$A.modalError(s)}).finally(s=>{this.loadIng--})}}},i={};var L=r(y,b,g,!1,k,null,null,null);function k(t){for(let s in i)this[s]=i[s]}var x=function(){return L.exports}(),S=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"setting-component-item"},[a("Form",{ref:"formDatum",attrs:{"label-width":"auto"},nativeOn:{submit:function(e){e.preventDefault()}}},[a("Row",{staticClass:"setting-color color-label-box"},[a("Col",{attrs:{span:"12"}},[t._v(t._s(t.$L("\u540D\u79F0")))]),a("Col",{attrs:{span:"4"}},[a("ETooltip",{attrs:{disabled:t.windowSmall||t.$isEEUiApp,content:t.$L("\u6570\u503C\u8D8A\u5C0F\u7EA7\u522B\u8D8A\u9AD8"),"max-width":"auto",placement:"top",transfer:""}},[a("div",[a("Icon",{staticClass:"information",attrs:{type:"ios-information-circle-outline"}}),t._v(" "+t._s(t.$L("\u7EA7\u522B")))],1)])],1),a("Col",{attrs:{span:"4"}},[a("ETooltip",{attrs:{disabled:t.windowSmall||t.$isEEUiApp,content:t.$L("\u4EFB\u52A1\u5B8C\u6210\u65F6\u95F4"),"max-width":"auto",placement:"top",transfer:""}},[a("div",[a("Icon",{staticClass:"information",attrs:{type:"ios-information-circle-outline"}}),t._v(" "+t._s(t.$L("\u5929\u6570")))],1)])],1),a("Col",{attrs:{span:"4"}},[t._v(t._s(t.$L("\u989C\u8272")))])],1),t._l(t.formDatum,function(e,l){return a("Row",{key:l,staticClass:"setting-color"},[a("Col",{attrs:{span:"12"}},[a("Input",{attrs:{maxlength:20,placeholder:t.$L("\u8BF7\u8F93\u5165\u540D\u79F0"),clearable:""},on:{"on-clear":function(o){return t.delDatum(l)}},model:{value:e.name,callback:function(o){t.$set(e,"name",o)},expression:"item.name"}})],1),a("Col",{attrs:{span:"4"}},[a("Input",{attrs:{type:"number"},model:{value:e.priority,callback:function(o){t.$set(e,"priority",o)},expression:"item.priority"}})],1),a("Col",{attrs:{span:"4"}},[a("Input",{attrs:{type:"number"},model:{value:e.days,callback:function(o){t.$set(e,"days",o)},expression:"item.days"}})],1),a("Col",{attrs:{span:"4"}},[a("ColorPicker",{attrs:{recommend:"",transfer:""},model:{value:e.color,callback:function(o){t.$set(e,"color",o)},expression:"item.color"}})],1)],1)}),a("Button",{attrs:{type:"default",icon:"md-add"},on:{click:t.addDatum}},[t._v(t._s(t.$L("\u6DFB\u52A0\u4F18\u5148\u7EA7")))])],2),a("div",{staticClass:"setting-footer"},[a("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),a("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},I=[];const C={name:"SystemTaskPriority",data(){return{loadIng:0,formDatum:[],nullDatum:{name:"",priority:1,days:1,color:"#84C56A"}}},mounted(){this.systemSetting()},computed:{...v(["taskPriority"])},watch:{taskPriority:{handler(t){this.formDatum=$A.cloneJSON(t),this.formDatum.length===0&&this.addDatum()},immediate:!0}},methods:{submitForm(){this.$refs.formDatum.validate(t=>{t&&this.systemSetting(!0)})},resetForm(){this.formDatum=$A.cloneJSON(this.taskPriority)},addDatum(){this.formDatum.push($A.cloneJSON(this.nullDatum))},delDatum(t){this.formDatum.splice(t,1),this.formDatum.length===0&&this.addDatum()},systemSetting(t){this.loadIng++,this.$store.dispatch("call",{url:"system/priority?type="+(t?"save":"get"),method:"post",data:{list:this.formDatum}}).then(({data:s})=>{t&&$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.$store.state.taskPriority=$A.cloneJSON(s)}).catch(({msg:s})=>{t&&$A.modalError(s)}).finally(s=>{this.loadIng--})}}},n={};var F=r(C,S,I,!1,A,null,null,null);function A(t){for(let s in n)this[s]=n[s]}var R=function(){return F.exports}(),w=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"setting-component-item"},[a("Form",{ref:"formDatum",attrs:{"label-width":"auto"},nativeOn:{submit:function(e){e.preventDefault()}}},[a("Row",{staticClass:"setting-template"},[a("Col",{attrs:{span:"8"}},[t._v(t._s(t.$L("\u540D\u79F0")))]),a("Col",{attrs:{span:"16"}},[t._v(t._s(t.$L("\u9879\u76EE\u6A21\u677F")))])],1),t._l(t.formDatum,function(e,l){return a("Row",{key:l,staticClass:"setting-template"},[a("Col",{attrs:{span:"8"}},[a("Input",{attrs:{maxlength:20,placeholder:t.$L("\u8BF7\u8F93\u5165\u540D\u79F0"),clearable:""},on:{"on-clear":function(o){return t.delDatum(l)}},model:{value:e.name,callback:function(o){t.$set(e,"name",o)},expression:"item.name"}})],1),a("Col",{attrs:{span:"16"}},[a("TagInput",{model:{value:e.columns,callback:function(o){t.$set(e,"columns",o)},expression:"item.columns"}})],1)],1)}),a("Button",{attrs:{type:"default",icon:"md-add"},on:{click:t.addDatum}},[t._v(t._s(t.$L("\u6DFB\u52A0\u6A21\u677F")))])],2),a("div",{staticClass:"setting-footer"},[a("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),a("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},O=[];const P={name:"SystemColumnTemplate",data(){return{loadIng:0,formDatum:[],nullDatum:{name:"",columns:""}}},mounted(){this.systemSetting()},computed:{...v(["columnTemplate"])},watch:{columnTemplate:{handler(t){this.formDatum=$A.cloneJSON(t),this.formDatum.length===0&&this.addDatum()},immediate:!0}},methods:{submitForm(){this.$refs.formDatum.validate(t=>{t&&this.systemSetting(!0)})},resetForm(){this.formDatum=$A.cloneJSON(this.columnTemplate)},addDatum(){this.formDatum.push($A.cloneJSON(this.nullDatum))},delDatum(t){this.formDatum.splice(t,1),this.formDatum.length===0&&this.addDatum()},systemSetting(t){this.loadIng++,this.$store.dispatch("call",{url:"system/column/template?type="+(t?"save":"get"),method:"post",data:{list:this.formDatum}}).then(({data:s})=>{t&&$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.$store.state.columnTemplate=$A.cloneJSON(s).map(a=>($A.isArray(a.columns)&&(a.columns=a.columns.join(",")),a))}).catch(({msg:s})=>{t&&$A.modalError(s)}).finally(s=>{this.loadIng--})}}},m={};var E=r(P,w,O,!1,T,null,null,null);function T(t){for(let s in m)this[s]=m[s]}var N=function(){return E.exports}(),B=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"setting-component-item"},[a("Form",{ref:"formData",attrs:{model:t.formData,rules:t.ruleData,"label-width":"auto"},nativeOn:{submit:function(e){e.preventDefault()}}},[a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("\u90AE\u7BB1\u670D\u52A1\u5668\u8BBE\u7F6E")))]),a("FormItem",{attrs:{label:t.$L("SMTP\u670D\u52A1\u5668"),prop:"smtp_server"}},[a("Input",{model:{value:t.formData.smtp_server,callback:function(e){t.$set(t.formData,"smtp_server",e)},expression:"formData.smtp_server"}})],1),a("FormItem",{attrs:{label:t.$L("\u7AEF\u53E3"),prop:"port"}},[a("Input",{attrs:{maxlength:20},model:{value:t.formData.port,callback:function(e){t.$set(t.formData,"port",e)},expression:"formData.port"}})],1),a("FormItem",{attrs:{label:t.$L("\u5E10\u53F7"),prop:"account"}},[a("Input",{attrs:{maxlength:128},model:{value:t.formData.account,callback:function(e){t.$set(t.formData,"account",e)},expression:"formData.account"}})],1),a("FormItem",{attrs:{label:t.$L("\u5BC6\u7801"),prop:"password"}},[a("Input",{attrs:{maxlength:128,type:"password"},model:{value:t.formData.password,callback:function(e){t.$set(t.formData,"password",e)},expression:"formData.password"}})],1),a("FormItem",[a("Button",{on:{click:t.checkEmailSend}},[t._v(t._s(t.$L("\u90AE\u4EF6\u53D1\u9001\u6D4B\u8BD5")))])],1)],1),a("div",{staticClass:"block-setting-placeholder"}),a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("\u90AE\u4EF6\u901A\u77E5\u8BBE\u7F6E")))]),a("FormItem",{attrs:{label:t.$L("\u5F00\u542F\u6CE8\u518C\u9A8C\u8BC1"),prop:"reg_verify"}},[a("RadioGroup",{model:{value:t.formData.reg_verify,callback:function(e){t.$set(t.formData,"reg_verify",e)},expression:"formData.reg_verify"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),t.formData.reg_verify=="open"?a("div",{staticClass:"form-tip"},[t._v(" "+t._s(t.$L("\u5F00\u542F\u540E\uFF1A"))),a("br"),t._v(" \u2460 "+t._s(t.$L("\u5E10\u53F7\u9700\u9A8C\u8BC1\u901A\u8FC7\u624D\u53EF\u767B\u5F55"))),a("br"),t._v(" \u2461 "+t._s(t.$L("\u4FEE\u6539\u90AE\u7BB1\u548C\u5220\u9664\u5E10\u53F7\u9700\u8981\u90AE\u7BB1\u9A8C\u8BC1\u7801"))+" ")]):t._e()],1),a("FormItem",{attrs:{label:t.$L("\u6D88\u606F\u63D0\u9192"),prop:"notice_msg"}},[a("RadioGroup",{model:{value:t.formData.notice_msg,callback:function(e){t.$set(t.formData,"notice_msg",e)},expression:"formData.notice_msg"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),t.formData.notice_msg=="open"?a("Form",{nativeOn:{submit:function(e){e.preventDefault()}}},[a("FormItem",{attrs:{label:t.$L("\u672A\u8BFB\u4E2A\u4EBA\u6D88\u606F"),prop:"msg_unread_user_minute"}},[a("div",{staticClass:"input-number-box"},[a("InputNumber",{attrs:{min:0,step:1},model:{value:t.formData.msg_unread_user_minute,callback:function(e){t.$set(t.formData,"msg_unread_user_minute",e)},expression:"formData.msg_unread_user_minute"}}),a("label",[t._v(t._s(t.$L("\u5206\u949F"))+"(m)")])],1)]),a("FormItem",{attrs:{label:t.$L("\u672A\u8BFB\u7FA4\u804A\u6D88\u606F"),prop:"msg_unread_group_minute"}},[a("div",{staticClass:"input-number-box"},[a("InputNumber",{attrs:{min:0,step:1},model:{value:t.formData.msg_unread_group_minute,callback:function(e){t.$set(t.formData,"msg_unread_group_minute",e)},expression:"formData.msg_unread_group_minute"}}),a("label",[t._v(t._s(t.$L("\u5206\u949F"))+"(m)")])],1)]),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u586B\u5199-1\u5219\u4E0D\u901A\u77E5\uFF0C\u8BEF\u5DEE\xB110\u5206\u949F")))])],1):t._e()],1)],1),a("div",{staticClass:"block-setting-placeholder"}),a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("\u5FFD\u7565\u90AE\u7BB1\u5730\u5740")))]),a("FormItem",{attrs:{label:t.$L("\u5FFD\u7565\u90AE\u7BB1"),prop:"ignore_addr"}},[a("Input",{attrs:{type:"textarea",autosize:{minRows:3,maxRows:50}},model:{value:t.formData.ignore_addr,callback:function(e){t.$set(t.formData,"ignore_addr",e)},expression:"formData.ignore_addr"}}),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u4E0D\u4F1A\u5411\u5FFD\u7565\u7684\u90AE\u7BB1\u5730\u5740\u53D1\u9001\u90AE\u4EF6\uFF0C\u53EF\u4F7F\u7528\u6362\u884C\u5206\u5272\u591A\u4E2A\u5730\u5740\u3002")))])],1)],1)]),a("div",{staticClass:"setting-footer"},[a("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),a("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},G=[];const J={name:"SystemEmailSetting",data(){return{loadIng:0,formData:{smtp_server:"",port:"",account:"",password:"",reg_verify:"colse",notice_msg:"open",msg_unread_user_minute:-1,msg_unread_group_minute:-1,ignore_addr:""},ruleData:{}}},mounted(){this.systemSetting()},methods:{submitForm(){this.$refs.formData.validate(t=>{t&&this.systemSetting(!0)})},resetForm(){this.formData=$A.cloneJSON(this.formDatum_bak)},systemSetting(t){this.loadIng++,this.$store.dispatch("call",{url:"system/setting/email?type="+(t?"save":"all"),data:this.formData}).then(({data:s})=>{t&&$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.formData=s,this.formDatum_bak=$A.cloneJSON(this.formData)}).catch(({msg:s})=>{t&&$A.modalError(s)}).finally(s=>{this.loadIng--})},checkEmailSend(){$A.modalInput({title:"\u6D4B\u8BD5\u90AE\u4EF6",placeholder:"\u8BF7\u8F93\u5165\u6536\u4EF6\u4EBA\u5730\u5740",onOk:t=>t?$A.isEmail(t)?new Promise((s,a)=>{this.$store.dispatch("call",{url:"system/email/check",data:Object.assign(this.formData,{to:t})}).then(({msg:e})=>{s(e)}).catch(({msg:e})=>{a(e)})}):"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u6536\u4EF6\u4EBA\u5730\u5740":"\u8BF7\u8F93\u5165\u6536\u4EF6\u4EBA\u5730\u5740"})}}},c={};var M=r(J,B,G,!1,j,null,null,null);function j(t){for(let s in c)this[s]=c[s]}var U=function(){return M.exports}(),z=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"setting-component-item"},[a("Form",{ref:"formData",attrs:{model:t.formData,rules:t.ruleData,"label-width":"auto"},nativeOn:{submit:function(e){e.preventDefault()}}},[a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("\u53CB\u76DF\u63A8\u9001")))]),a("FormItem",{attrs:{label:t.$L("\u5F00\u542F\u63A8\u9001"),prop:"push"}},[a("RadioGroup",{model:{value:t.formData.push,callback:function(e){t.$set(t.formData,"push",e)},expression:"formData.push"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1)],1),t.formData.push==="open"?[a("Divider",{attrs:{orientation:"left"}},[t._v("iOS "+t._s(t.$L("\u53C2\u6570\u914D\u7F6E")))]),a("FormItem",{attrs:{label:"Appkey",prop:"ios_appkey"}},[a("Input",{attrs:{maxlength:255},model:{value:t.formData.ios_key,callback:function(e){t.$set(t.formData,"ios_key",e)},expression:"formData.ios_key"}})],1),a("FormItem",{attrs:{label:"App Master Secret",prop:"secret"}},[a("Input",{attrs:{maxlength:255,type:"password"},model:{value:t.formData.ios_secret,callback:function(e){t.$set(t.formData,"ios_secret",e)},expression:"formData.ios_secret"}})],1),a("Divider",{attrs:{orientation:"left"}},[t._v("Android "+t._s(t.$L("\u53C2\u6570\u914D\u7F6E")))]),a("FormItem",{attrs:{label:"Appkey",prop:"android_appkey"}},[a("Input",{attrs:{maxlength:255},model:{value:t.formData.android_key,callback:function(e){t.$set(t.formData,"android_key",e)},expression:"formData.android_key"}})],1),a("FormItem",{attrs:{label:"App Master Secret",prop:"secret"}},[a("Input",{attrs:{maxlength:255,type:"password"},model:{value:t.formData.android_secret,callback:function(e){t.$set(t.formData,"android_secret",e)},expression:"formData.android_secret"}})],1)]:t._e()],2)]),a("div",{staticClass:"setting-footer"},[a("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),a("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},H=[];const q={name:"SystemAppPush",data(){return{loadIng:0,formData:{push:"",ios_key:"",ios_secret:"",android_key:"",android_secret:""},ruleData:{}}},mounted(){this.systemSetting()},methods:{submitForm(){this.$refs.formData.validate(t=>{t&&this.systemSetting(!0)})},resetForm(){this.formData=$A.cloneJSON(this.formDatum_bak)},systemSetting(t){this.loadIng++,this.$store.dispatch("call",{url:"system/setting/apppush?type="+(t?"save":"all"),data:this.formData}).then(({data:s})=>{t&&$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.formData=s,this.formDatum_bak=$A.cloneJSON(this.formData)}).catch(({msg:s})=>{t&&$A.modalError(s)}).finally(s=>{this.loadIng--})}}},u={};var W=r(q,z,H,!1,K,null,null,null);function K(t){for(let s in u)this[s]=u[s]}var Q=function(){return W.exports}(),V=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"setting-component-item"},[a("Form",{ref:"formData",attrs:{model:t.formData,rules:t.ruleData,"label-width":"auto"},nativeOn:{submit:function(e){e.preventDefault()}}},[a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("AgoraIO")))]),a("FormItem",{attrs:{label:t.$L("\u4F1A\u8BAE\u529F\u80FD"),prop:"open"}},[a("RadioGroup",{model:{value:t.formData.open,callback:function(e){t.$set(t.formData,"open",e)},expression:"formData.open"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1)],1),t.formData.open==="open"?[a("FormItem",{attrs:{label:"App ID ",prop:"appid"}},[a("Input",{attrs:{maxlength:255},model:{value:t.formData.appid,callback:function(e){t.$set(t.formData,"appid",e)},expression:"formData.appid"}})],1),a("FormItem",{attrs:{label:"App certificate",prop:"app_certificate"}},[a("Input",{attrs:{maxlength:255,type:"password"},model:{value:t.formData.app_certificate,callback:function(e){t.$set(t.formData,"app_certificate",e)},expression:"formData.app_certificate"}})],1)]:t._e()],2)]),a("div",{staticClass:"setting-footer"},[a("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),a("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},X=[];const Y={name:"SystemMeeting",data(){return{loadIng:0,formData:{open:"",appid:"",app_certificate:""},ruleData:{}}},mounted(){this.systemSetting()},methods:{submitForm(){this.$refs.formData.validate(t=>{t&&this.systemSetting(!0)})},resetForm(){this.formData=$A.cloneJSON(this.formDatum_bak)},systemSetting(t){this.loadIng++,this.$store.dispatch("call",{url:"system/setting/meeting?type="+(t?"save":"all"),data:this.formData}).then(({data:s})=>{t&&$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.formData=s,this.formDatum_bak=$A.cloneJSON(this.formData)}).catch(({msg:s})=>{t&&$A.modalError(s)}).finally(s=>{this.loadIng--})}}},p={};var Z=r(Y,V,X,!1,tt,null,null,null);function tt(t){for(let s in p)this[s]=p[s]}var at=function(){return Z.exports}(),et=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"setting-component-item"},[a("Form",{ref:"formData",attrs:{model:t.formData,rules:t.ruleData,"label-width":"auto"},nativeOn:{submit:function(e){e.preventDefault()}}},[a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("\u7B7E\u5230\u8BBE\u7F6E")))]),a("FormItem",{attrs:{label:t.$L("\u529F\u80FD\u5F00\u542F"),prop:"open"}},[a("RadioGroup",{model:{value:t.formData.open,callback:function(e){t.$set(t.formData,"open",e)},expression:"formData.open"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),a("div",{staticClass:"export-data"},[a("p",{on:{click:function(e){t.allUserShow=!0}}},[t._v(t._s(t.$L("\u7BA1\u7406\u6210\u5458MAC\u5730\u5740")))]),a("p",{on:{click:function(e){t.exportShow=!0}}},[t._v(t._s(t.$L("\u5BFC\u51FA\u7B7E\u5230\u6570\u636E")))])])],1),t.formData.open==="open"?[a("FormItem",{attrs:{label:t.$L("\u7B7E\u5230\u65F6\u95F4"),prop:"time"}},[a("TimePicker",{attrs:{type:"timerange",format:"HH:mm",placeholder:t.$L("\u8BF7\u9009\u62E9\u7B7E\u5230\u65F6\u95F4")},model:{value:t.formData.time,callback:function(e){t.$set(t.formData,"time",e)},expression:"formData.time"}}),a("Form",{nativeOn:{submit:function(e){e.preventDefault()}}},[a("FormItem",{attrs:{label:t.$L("\u6700\u65E9\u53EF\u63D0\u524D"),prop:"advance"}},[a("div",{staticClass:"input-number-box"},[a("InputNumber",{attrs:{min:0,step:1},model:{value:t.formData.advance,callback:function(e){t.$set(t.formData,"advance",e)},expression:"formData.advance"}}),a("label",[t._v(t._s(t.$L("\u5206\u949F")))])],1)]),a("FormItem",{attrs:{label:t.$L("\u6700\u665A\u53EF\u5EF6\u540E"),prop:"delay"}},[a("div",{staticClass:"input-number-box"},[a("InputNumber",{attrs:{min:0,step:1},model:{value:t.formData.delay,callback:function(e){t.$set(t.formData,"delay",e)},expression:"formData.delay"}}),a("label",[t._v(t._s(t.$L("\u5206\u949F")))])],1)]),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u7B7E\u5230\u524D\u540E\u65F6\u95F4\u6536\u5230\u6D88\u606F\u901A\u77E5")))]),a("FormItem",{attrs:{label:t.$L("\u7B7E\u5230\u6253\u5361\u63D0\u9192"),prop:"remindin"}},[a("div",{staticClass:"input-number-box"},[a("InputNumber",{attrs:{min:0,step:1},model:{value:t.formData.remindin,callback:function(e){t.$set(t.formData,"remindin",e)},expression:"formData.remindin"}}),a("label",[t._v(t._s(t.$L("\u5206\u949F")))])],1)]),a("FormItem",{attrs:{label:t.$L("\u7B7E\u5230\u7F3A\u5361\u63D0\u9192"),prop:"remindexceed"}},[a("div",{staticClass:"input-number-box"},[a("InputNumber",{attrs:{min:0,step:1},model:{value:t.formData.remindexceed,callback:function(e){t.$set(t.formData,"remindexceed",e)},expression:"formData.remindexceed"}}),a("label",[t._v(t._s(t.$L("\u5206\u949F")))])],1)]),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u7B7E\u5230\u63D0\u9192\u5BF9\u8C61\uFF1A3\u5929\u5185\u6709\u7B7E\u5230\u7684\u6210\u5458\uFF08\u6CD5\u5B9A\u5DE5\u4F5C\u65E5\uFF09")))])],1)],1),a("FormItem",{attrs:{label:t.$L("\u5141\u8BB8\u4FEE\u6539"),prop:"edit"}},[a("RadioGroup",{model:{value:t.formData.edit,callback:function(e){t.$set(t.formData,"edit",e)},expression:"formData.edit"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5141\u8BB8")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u7981\u6B62")))])],1),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5141\u8BB8\u6210\u5458\u81EA\u5DF1\u4FEE\u6539MAC\u5730\u5740")))])],1)]:t._e()],2),t.formData.open==="open"?[a("div",{staticClass:"block-setting-placeholder"}),a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("\u81EA\u52A8\u7B7E\u5230")))]),a("FormItem",{attrs:{label:t.$L("\u5B89\u88C5\u8BF4\u660E"),prop:"explain"}},[a("p",[t._v("1. "+t._s(t.$L("\u81EA\u52A8\u7B7E\u5230\u5EF6\u8FDF\u65F6\u957F\u4E3A\xB11\u5206\u949F\u3002")))]),a("p",[t._v("2. "+t._s(t.$L("\u8BBE\u5907\u8FDE\u63A5\u4E0A\u6307\u5B9A\u8DEF\u7531\u5668\uFF08WiFi\uFF09\u540E\u81EA\u52A8\u7B7E\u5230\u3002")))]),a("p",[t._v("3. "+t._s(t.$L("\u4EC5\u652F\u6301Openwrt\u7CFB\u7EDF\u7684\u8DEF\u7531\u5668\u3002")))]),a("p",[t._v("4. "+t._s(t.$L("\u5173\u95ED\u7B7E\u5230\u529F\u80FD\u518D\u5F00\u542F\u9700\u8981\u91CD\u65B0\u5B89\u88C5\u3002")))]),a("p",[t._v("5. "+t._s(t.$L("\u8FDB\u5165\u8DEF\u7531\u5668\u7EC8\u7AEF\u6267\u884C\u4EE5\u4E0B\u547D\u4EE4\u5373\u53EF\u5B8C\u6210\u5B89\u88C5\uFF1A")))]),a("Input",{ref:"cmd",staticStyle:{"margin-top":"6px"},attrs:{type:"textarea",readonly:"",value:t.formData.cmd},on:{"on-focus":t.clickCmd}})],1)],1)]:t._e()],2),a("div",{staticClass:"setting-footer"},[a("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),a("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1),a("CheckinExport",{model:{value:t.exportShow,callback:function(e){t.exportShow=e},expression:"exportShow"}}),a("DrawerOverlay",{attrs:{placement:"right",size:1380},model:{value:t.allUserShow,callback:function(e){t.allUserShow=e},expression:"allUserShow"}},[t.allUserShow?a("TeamManagement",{attrs:{"checkin-mac":""}}):t._e()],1)],1)},st=[];const ot={name:"SystemCheckin",components:{CheckinExport:h,TeamManagement:D,DrawerOverlay:$},data(){return{loadIng:0,formData:{open:"",edit:"",cmd:""},ruleData:{},allUserShow:!1,exportShow:!1}},mounted(){this.systemSetting()},methods:{submitForm(){this.$refs.formData.validate(t=>{t&&this.systemSetting(!0)})},resetForm(){this.formData=$A.cloneJSON(this.formDatum_bak)},systemSetting(t){this.loadIng++,this.$store.dispatch("call",{url:"system/setting/checkin?type="+(t?"save":"all"),data:this.formData}).then(({data:s})=>{t&&$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.formData=s,this.formDatum_bak=$A.cloneJSON(this.formData)}).catch(({msg:s})=>{t&&$A.modalError(s)}).finally(s=>{this.loadIng--})},clickCmd(){this.$nextTick(t=>{this.$refs.cmd.focus({cursor:"all"})})}}},_={};var rt=r(ot,et,st,!1,lt,null,null,null);function lt(t){for(let s in _)this[s]=_[s]}var it=function(){return rt.exports}(),nt=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"setting-component-item"},[a("Form",{ref:"formData",attrs:{model:t.formData,rules:t.ruleData,"label-width":"auto"},nativeOn:{submit:function(e){e.preventDefault()}}},[a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("LDAP")))]),a("FormItem",{attrs:{label:t.$L("\u542F\u7528 LDAP \u8BA4\u8BC1"),prop:"ldap_open"}},[a("RadioGroup",{model:{value:t.formData.ldap_open,callback:function(e){t.$set(t.formData,"ldap_open",e)},expression:"formData.ldap_open"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5F00\u542F\u540E\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528 LDAP \u5E10\u53F7\u5BC6\u7801\u767B\u5F55")))])],1),t.formData.ldap_open==="open"?[a("FormItem",{attrs:{label:t.$L("LDAP \u5730\u5740"),prop:"ldap_host"}},[a("Input",{model:{value:t.formData.ldap_host,callback:function(e){t.$set(t.formData,"ldap_host",e)},expression:"formData.ldap_host"}}),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u4F8B\u5982"))+": 192.168.1.200\u3001www.ldap.com")])],1),a("FormItem",{attrs:{label:t.$L("LDAP \u7AEF\u53E3"),prop:"ldap_port"}},[a("Input",{attrs:{type:"number",placeholder:`${t.$L("\u9ED8\u8BA4")}: 389`},model:{value:t.formData.ldap_port,callback:function(e){t.$set(t.formData,"ldap_port",e)},expression:"formData.ldap_port"}})],1),a("FormItem",{attrs:{label:"Base DN",prop:"ldap_base_dn"}},[a("Input",{model:{value:t.formData.ldap_base_dn,callback:function(e){t.$set(t.formData,"ldap_base_dn",e)},expression:"formData.ldap_base_dn"}})],1),a("FormItem",{attrs:{label:"User DN",prop:"ldap_user_dn"}},[a("Input",{model:{value:t.formData.ldap_user_dn,callback:function(e){t.$set(t.formData,"ldap_user_dn",e)},expression:"formData.ldap_user_dn"}})],1),a("FormItem",{attrs:{label:t.$L("\u5BC6\u7801"),prop:"ldap_password"}},[a("Input",{attrs:{type:"password"},model:{value:t.formData.ldap_password,callback:function(e){t.$set(t.formData,"ldap_password",e)},expression:"formData.ldap_password"}})],1),a("FormItem",{attrs:{label:t.$L("\u540C\u6B65\u672C\u5730\u5E10\u53F7"),prop:"ldap_sync_local"}},[a("RadioGroup",{model:{value:t.formData.ldap_sync_local,callback:function(e){t.$set(t.formData,"ldap_sync_local",e)},expression:"formData.ldap_sync_local"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5F00\u542F\u540C\u6B65\u672C\u5730\u5E10\u53F7\u767B\u5F55\u540E\u5C06\u540C\u6B65\u5230 LDAP \u670D\u52A1\u5668")))])],1),a("FormItem",[a("Button",{attrs:{loading:t.testLoad},on:{click:t.checkTest}},[t._v(t._s(t.$L("\u6D4B\u8BD5\u94FE\u63A5")))])],1)]:t._e()],2)]),a("div",{staticClass:"setting-footer"},[a("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),a("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},mt=[];const ct={name:"SystemThirdAccess",data(){return{loadIng:0,formData:{},ruleData:{},testLoad:!1}},mounted(){this.systemSetting()},methods:{submitForm(){this.$refs.formData.validate(t=>{t&&this.systemSetting(!0)})},resetForm(){this.formData=$A.cloneJSON(this.formDatum_bak)},systemSetting(t){this.loadIng++,this.$store.dispatch("call",{url:"system/setting/thirdaccess?type="+(t?"save":"all"),data:this.formData}).then(({data:s})=>{t&&$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.formData=s,this.formDatum_bak=$A.cloneJSON(this.formData)}).catch(({msg:s})=>{t&&$A.modalError(s)}).finally(s=>{this.loadIng--})},checkTest(){this.testLoad||(this.testLoad=!0,this.$store.dispatch("call",{url:"system/setting/thirdaccess?type=testldap",data:this.formData}).then(({msg:t})=>{$A.messageSuccess(t)}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.testLoad=!1}))}}},d={};var ut=r(ct,nt,mt,!1,pt,null,null,null);function pt(t){for(let s in d)this[s]=d[s]}var _t=function(){return ut.exports}(),dt=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"setting-item submit"},[a("Tabs",{model:{value:t.tabAction,callback:function(e){t.tabAction=e},expression:"tabAction"}},[a("TabPane",{attrs:{label:t.$L("\u7CFB\u7EDF\u8BBE\u7F6E"),name:"setting"}},[a("SystemSetting")],1),a("TabPane",{attrs:{label:t.$L("\u4EFB\u52A1\u4F18\u5148\u7EA7"),name:"taskPriority"}},[a("SystemTaskPriority")],1),a("TabPane",{attrs:{label:t.$L("\u9879\u76EE\u6A21\u677F"),name:"columnTemplate"}},[a("SystemColumnTemplate")],1),a("TabPane",{attrs:{label:t.$L("\u4F1A\u8BAE\u529F\u80FD"),name:"meeting"}},[a("SystemMeeting")],1),a("TabPane",{attrs:{label:t.$L("\u7B7E\u5230\u529F\u80FD"),name:"checkin"}},[a("SystemCheckin")],1),a("TabPane",{attrs:{label:t.$L("\u90AE\u4EF6\u8BBE\u7F6E"),name:"emailSetting"}},[a("SystemEmailSetting")],1),a("TabPane",{attrs:{label:t.$L("\u8BA4\u8BC1\u8BBE\u7F6E"),name:"thirdAccess"}},[a("SystemThirdAccess")],1),t.appPush?a("TabPane",{attrs:{label:t.$L("APP\u63A8\u9001"),name:"appPush"}},[a("SystemAppPush")],1):t._e()],1)],1)},ft=[];const vt={components:{SystemThirdAccess:_t,SystemCheckin:it,SystemMeeting:at,SystemAppPush:Q,SystemColumnTemplate:N,SystemTaskPriority:R,SystemSetting:x,SystemEmailSetting:U},data(){return{tabAction:"setting",appPush:!1}},mounted(){["127.0.0.1:2222","192.168.100.88:2222","dootask.com","www.dootask.com","t.hitosea.com"].includes($A.getDomain($A.apiUrl("../")))&&(this.appPush=!0)}},f={};var $t=r(vt,dt,ft,!1,ht,null,null,null);function ht(t){for(let s in f)this[s]=f[s]}var Lt=function(){return $t.exports}();export{Lt as default}; +import{n as r,m as v}from"./app.feefc813.js";import{D as $}from"./index.f3f56c75.js";import{C as h,T as D}from"./CheckinExport.8a7d62a4.js";import"./UserInput.2bc16b15.js";var b=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"setting-component-item"},[a("Form",{ref:"formDatum",attrs:{model:t.formDatum,"label-width":"auto"},nativeOn:{submit:function(e){e.preventDefault()}}},[a("FormItem",{attrs:{label:t.$L("\u5141\u8BB8\u6CE8\u518C"),prop:"reg"}},[a("RadioGroup",{model:{value:t.formDatum.reg,callback:function(e){t.$set(t.formDatum,"reg",e)},expression:"formDatum.reg"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5141\u8BB8")))]),a("Radio",{attrs:{label:"invite"}},[t._v(t._s(t.$L("\u9080\u8BF7\u7801")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u7981\u6B62")))])],1),t.formDatum.reg=="open"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5141\u8BB8\uFF1A\u5F00\u653E\u6CE8\u518C\u529F\u80FD\u3002")))]):t.formDatum.reg=="invite"?[a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u9080\u8BF7\u7801\uFF1A\u6CE8\u518C\u65F6\u9700\u586B\u5199\u4E0B\u65B9\u9080\u8BF7\u7801\u3002")))]),a("Input",{staticStyle:{width:"200px","margin-top":"6px"},model:{value:t.formDatum.reg_invite,callback:function(e){t.$set(t.formDatum,"reg_invite",e)},expression:"formDatum.reg_invite"}},[a("span",{attrs:{slot:"prepend"},slot:"prepend"},[t._v(t._s(t.$L("\u9080\u8BF7\u7801")))])])]:t._e()],2),["open","invite"].includes(t.formDatum.reg)?a("FormItem",{attrs:{label:t.$L("\u6CE8\u518C\u8EAB\u4EFD"),prop:"reg_identity"}},[a("RadioGroup",{model:{value:t.formDatum.reg_identity,callback:function(e){t.$set(t.formDatum,"reg_identity",e)},expression:"formDatum.reg_identity"}},[a("Radio",{attrs:{label:"normal"}},[t._v(t._s(t.$L("\u6B63\u5E38\u5E10\u53F7")))]),a("Radio",{attrs:{label:"temp"}},[t._v(t._s(t.$L("\u4E34\u65F6\u5E10\u53F7")))])],1),a("div",{staticClass:"form-tip form-list"},[a("p",[t._v(t._s(t.$L("\u4E34\u65F6\u5E10\u53F7"))+"\uFF1A")]),a("ol",[a("li",[t._v(t._s(t.$L("\u7981\u6B62\u67E5\u770B\u5171\u4EAB\u6240\u6709\u4EBA\u7684\u6587\u4EF6\u3002")))]),a("li",[t._v(t._s(t.$L("\u7981\u6B62\u53D1\u8D77\u4F1A\u8BDD\u3002")))]),a("li",[t._v(t._s(t.$L("\u7981\u6B62\u521B\u5EFA\u7FA4\u804A\u3002")))]),a("li",[t._v(t._s(t.$L("\u7981\u6B62\u62E8\u6253\u7535\u8BDD\u3002")))])])])],1):t._e(),a("FormItem",{attrs:{label:t.$L("\u767B\u5F55\u9A8C\u8BC1\u7801"),prop:"loginCode"}},[a("RadioGroup",{model:{value:t.formDatum.login_code,callback:function(e){t.$set(t.formDatum,"login_code",e)},expression:"formDatum.login_code"}},[a("Radio",{attrs:{label:"auto"}},[t._v(t._s(t.$L("\u81EA\u52A8")))]),a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),t.formDatum.login_code=="auto"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u81EA\u52A8\uFF1A\u5BC6\u7801\u8F93\u5165\u9519\u8BEF\u540E\u5FC5\u987B\u6DFB\u52A0\u9A8C\u8BC1\u7801\u3002")))]):t.formDatum.login_code=="open"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5F00\u542F\uFF1A\u6BCF\u6B21\u767B\u5F55\u90FD\u9700\u8981\u56FE\u5F62\u9A8C\u8BC1\u7801\u3002")))]):t.formDatum.login_code=="close"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5173\u95ED\uFF1A\u4E0D\u9700\u8981\u8F93\u5165\u56FE\u5F62\u9A8C\u8BC1\u3002")))]):t._e()],1),a("FormItem",{attrs:{label:t.$L("\u5BC6\u7801\u7B56\u7565"),prop:"passwordPolicy"}},[a("RadioGroup",{model:{value:t.formDatum.password_policy,callback:function(e){t.$set(t.formDatum,"password_policy",e)},expression:"formDatum.password_policy"}},[a("Radio",{attrs:{label:"simple"}},[t._v(t._s(t.$L("\u7B80\u5355")))]),a("Radio",{attrs:{label:"complex"}},[t._v(t._s(t.$L("\u590D\u6742")))])],1),t.formDatum.password_policy=="simple"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u7B80\u5355\uFF1A\u5927\u4E8E\u6216\u7B49\u4E8E6\u4E2A\u5B57\u7B26\u3002")))]):t.formDatum.password_policy=="complex"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u590D\u6742\uFF1A\u5927\u4E8E\u6216\u7B49\u4E8E6\u4E2A\u5B57\u7B26\uFF0C\u5305\u542B\u6570\u5B57\u3001\u5B57\u6BCD\u5927\u5C0F\u5199\u6216\u8005\u7279\u6B8A\u5B57\u7B26\u3002")))]):t._e()],1),a("FormItem",{attrs:{label:t.$L("\u9080\u8BF7\u9879\u76EE"),prop:"projectInvite"}},[a("RadioGroup",{model:{value:t.formDatum.project_invite,callback:function(e){t.$set(t.formDatum,"project_invite",e)},expression:"formDatum.project_invite"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),t.formDatum.project_invite=="open"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5F00\u542F\uFF1A\u9879\u76EE\u7BA1\u7406\u5458\u53EF\u751F\u6210\u94FE\u63A5\u9080\u8BF7\u6210\u5458\u52A0\u5165\u9879\u76EE\u3002")))]):t._e()],1),a("FormItem",{attrs:{label:t.$L("\u804A\u5929\u8D44\u6599"),prop:"chatInformation"}},[a("RadioGroup",{model:{value:t.formDatum.chat_information,callback:function(e){t.$set(t.formDatum,"chat_information",e)},expression:"formDatum.chat_information"}},[a("Radio",{attrs:{label:"optional"}},[t._v(t._s(t.$L("\u53EF\u9009")))]),a("Radio",{attrs:{label:"required"}},[t._v(t._s(t.$L("\u5FC5\u586B")))])],1),t.formDatum.chat_information=="required"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5FC5\u586B\uFF1A\u53D1\u9001\u804A\u5929\u5185\u5BB9\u524D\u5FC5\u987B\u8BBE\u7F6E\u6635\u79F0\u3001\u7535\u8BDD\u3002")))]):a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5982\u679C\u5FC5\u586B\uFF0C\u53D1\u9001\u804A\u5929\u524D\u5FC5\u987B\u8BBE\u7F6E\u6635\u79F0\u3001\u7535\u8BDD\u3002")))])],1),a("FormItem",{attrs:{label:t.$L("\u81EA\u52A8\u5F52\u6863\u4EFB\u52A1"),prop:"autoArchived"}},[a("RadioGroup",{attrs:{value:t.formDatum.auto_archived},on:{"on-change":t.formArchived}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u4EFB\u52A1\u5B8C\u6210\u540E\u81EA\u52A8\u5F52\u6863\u3002")))]),t.formDatum.auto_archived=="open"?a("ETooltip",{attrs:{placement:"right",disabled:t.windowSmall||t.$isEEUiApp}},[a("div",{staticClass:"setting-auto-day"},[a("Input",{attrs:{type:"number"},model:{value:t.formDatum.archived_day,callback:function(e){t.$set(t.formDatum,"archived_day",e)},expression:"formDatum.archived_day"}},[a("span",{attrs:{slot:"append"},slot:"append"},[t._v(t._s(t.$L("\u5929")))])])],1),a("div",{attrs:{slot:"content"},slot:"content"},[t._v(t._s(t.$L("\u4EFB\u52A1\u5B8C\u6210 (*) \u5929\u540E\u81EA\u52A8\u5F52\u6863\u3002",t.formDatum.archived_day)))])]):t._e()],1),a("FormItem",{attrs:{label:t.$L("\u5168\u5458\u7FA4\u7EC4\u7981\u8A00"),prop:"allGroupMute"}},[a("RadioGroup",{model:{value:t.formDatum.all_group_mute,callback:function(e){t.$set(t.formDatum,"all_group_mute",e)},expression:"formDatum.all_group_mute"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u653E")))]),a("Radio",{attrs:{label:"user"}},[t._v(t._s(t.$L("\u6210\u5458\u7981\u8A00")))]),a("Radio",{attrs:{label:"all"}},[t._v(t._s(t.$L("\u5168\u90E8\u7981\u8A00")))])],1),t.formDatum.all_group_mute=="open"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5F00\u653E\uFF1A\u6240\u6709\u4EBA\u90FD\u53EF\u4EE5\u53D1\u8A00\u3002")))]):t.formDatum.all_group_mute=="user"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u6210\u5458\u7981\u8A00\uFF1A\u4EC5\u7BA1\u7406\u5458\u53EF\u4EE5\u53D1\u8A00\u3002")))]):t.formDatum.all_group_mute=="all"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5168\u90E8\u7981\u8A00\uFF1A\u6240\u6709\u4EBA\u90FD\u7981\u6B62\u53D1\u8A00\u3002")))]):t._e()],1),a("FormItem",{attrs:{label:t.$L("\u81EA\u52A8\u8FDB\u5165\u5168\u5458\u7FA4"),prop:"allGroupAutoin"}},[a("RadioGroup",{model:{value:t.formDatum.all_group_autoin,callback:function(e){t.$set(t.formDatum,"all_group_autoin",e)},expression:"formDatum.all_group_autoin"}},[a("Radio",{attrs:{label:"yes"}},[t._v(t._s(t.$L("\u81EA\u52A8")))]),a("Radio",{attrs:{label:"no"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),t.formDatum.all_group_autoin=="yes"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u81EA\u52A8\uFF1A\u6CE8\u518C\u6210\u529F\u540E\u81EA\u52A8\u8FDB\u5165\u5168\u5458\u7FA4\u3002")))]):t.formDatum.all_group_autoin=="no"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5173\u95ED\uFF1A\u5176\u4ED6\u6210\u5458\u901A\u8FC7@\u9080\u8BF7\u8FDB\u5165\u3002")))]):t._e()],1),a("FormItem",{attrs:{label:t.$L("\u662F\u5426\u542F\u52A8\u9996\u9875"),prop:"startHome"}},[a("RadioGroup",{model:{value:t.formDatum.start_home,callback:function(e){t.$set(t.formDatum,"start_home",e)},expression:"formDatum.start_home"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u4EC5\u652F\u6301\u7F51\u9875\u7248\u3002")))]),t.formDatum.start_home=="open"?a("Input",{staticStyle:{margin:"8px 0 -8px"},attrs:{type:"textarea",rows:2,autosize:{minRows:2,maxRows:8},placeholder:t.$L("\u9996\u9875\u5E95\u90E8\uFF1A\u9996\u9875\u5E95\u90E8\u7F51\u7AD9\u5907\u6848\u53F7\u7B49\u4FE1\u606F")},model:{value:t.formDatum.home_footer,callback:function(e){t.$set(t.formDatum,"home_footer",e)},expression:"formDatum.home_footer"}}):t._e()],1)],1),a("div",{staticClass:"setting-footer"},[a("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),a("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},g=[];const y={name:"SystemSetting",data(){return{loadIng:0,formDatum:{}}},mounted(){this.systemSetting()},methods:{submitForm(){this.$refs.formDatum.validate(t=>{t&&this.systemSetting(!0)})},resetForm(){this.formDatum=$A.cloneJSON(this.formDatum_bak)},formArchived(t){this.formDatum={...this.formDatum,auto_archived:t}},systemSetting(t){this.loadIng++,this.$store.dispatch("call",{url:"system/setting?type="+(t?"save":"all"),data:this.formDatum}).then(({data:s})=>{t&&$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.formDatum=s,this.formDatum_bak=$A.cloneJSON(this.formDatum)}).catch(({msg:s})=>{t&&$A.modalError(s)}).finally(s=>{this.loadIng--})}}},i={};var L=r(y,b,g,!1,k,null,null,null);function k(t){for(let s in i)this[s]=i[s]}var x=function(){return L.exports}(),S=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"setting-component-item"},[a("Form",{ref:"formDatum",attrs:{"label-width":"auto"},nativeOn:{submit:function(e){e.preventDefault()}}},[a("Row",{staticClass:"setting-color color-label-box"},[a("Col",{attrs:{span:"12"}},[t._v(t._s(t.$L("\u540D\u79F0")))]),a("Col",{attrs:{span:"4"}},[a("ETooltip",{attrs:{disabled:t.windowSmall||t.$isEEUiApp,content:t.$L("\u6570\u503C\u8D8A\u5C0F\u7EA7\u522B\u8D8A\u9AD8"),"max-width":"auto",placement:"top",transfer:""}},[a("div",[a("Icon",{staticClass:"information",attrs:{type:"ios-information-circle-outline"}}),t._v(" "+t._s(t.$L("\u7EA7\u522B")))],1)])],1),a("Col",{attrs:{span:"4"}},[a("ETooltip",{attrs:{disabled:t.windowSmall||t.$isEEUiApp,content:t.$L("\u4EFB\u52A1\u5B8C\u6210\u65F6\u95F4"),"max-width":"auto",placement:"top",transfer:""}},[a("div",[a("Icon",{staticClass:"information",attrs:{type:"ios-information-circle-outline"}}),t._v(" "+t._s(t.$L("\u5929\u6570")))],1)])],1),a("Col",{attrs:{span:"4"}},[t._v(t._s(t.$L("\u989C\u8272")))])],1),t._l(t.formDatum,function(e,l){return a("Row",{key:l,staticClass:"setting-color"},[a("Col",{attrs:{span:"12"}},[a("Input",{attrs:{maxlength:20,placeholder:t.$L("\u8BF7\u8F93\u5165\u540D\u79F0"),clearable:""},on:{"on-clear":function(o){return t.delDatum(l)}},model:{value:e.name,callback:function(o){t.$set(e,"name",o)},expression:"item.name"}})],1),a("Col",{attrs:{span:"4"}},[a("Input",{attrs:{type:"number"},model:{value:e.priority,callback:function(o){t.$set(e,"priority",o)},expression:"item.priority"}})],1),a("Col",{attrs:{span:"4"}},[a("Input",{attrs:{type:"number"},model:{value:e.days,callback:function(o){t.$set(e,"days",o)},expression:"item.days"}})],1),a("Col",{attrs:{span:"4"}},[a("ColorPicker",{attrs:{recommend:"",transfer:""},model:{value:e.color,callback:function(o){t.$set(e,"color",o)},expression:"item.color"}})],1)],1)}),a("Button",{attrs:{type:"default",icon:"md-add"},on:{click:t.addDatum}},[t._v(t._s(t.$L("\u6DFB\u52A0\u4F18\u5148\u7EA7")))])],2),a("div",{staticClass:"setting-footer"},[a("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),a("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},I=[];const C={name:"SystemTaskPriority",data(){return{loadIng:0,formDatum:[],nullDatum:{name:"",priority:1,days:1,color:"#84C56A"}}},mounted(){this.systemSetting()},computed:{...v(["taskPriority"])},watch:{taskPriority:{handler(t){this.formDatum=$A.cloneJSON(t),this.formDatum.length===0&&this.addDatum()},immediate:!0}},methods:{submitForm(){this.$refs.formDatum.validate(t=>{t&&this.systemSetting(!0)})},resetForm(){this.formDatum=$A.cloneJSON(this.taskPriority)},addDatum(){this.formDatum.push($A.cloneJSON(this.nullDatum))},delDatum(t){this.formDatum.splice(t,1),this.formDatum.length===0&&this.addDatum()},systemSetting(t){this.loadIng++,this.$store.dispatch("call",{url:"system/priority?type="+(t?"save":"get"),method:"post",data:{list:this.formDatum}}).then(({data:s})=>{t&&$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.$store.state.taskPriority=$A.cloneJSON(s)}).catch(({msg:s})=>{t&&$A.modalError(s)}).finally(s=>{this.loadIng--})}}},n={};var F=r(C,S,I,!1,A,null,null,null);function A(t){for(let s in n)this[s]=n[s]}var R=function(){return F.exports}(),w=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"setting-component-item"},[a("Form",{ref:"formDatum",attrs:{"label-width":"auto"},nativeOn:{submit:function(e){e.preventDefault()}}},[a("Row",{staticClass:"setting-template"},[a("Col",{attrs:{span:"8"}},[t._v(t._s(t.$L("\u540D\u79F0")))]),a("Col",{attrs:{span:"16"}},[t._v(t._s(t.$L("\u9879\u76EE\u6A21\u677F")))])],1),t._l(t.formDatum,function(e,l){return a("Row",{key:l,staticClass:"setting-template"},[a("Col",{attrs:{span:"8"}},[a("Input",{attrs:{maxlength:20,placeholder:t.$L("\u8BF7\u8F93\u5165\u540D\u79F0"),clearable:""},on:{"on-clear":function(o){return t.delDatum(l)}},model:{value:e.name,callback:function(o){t.$set(e,"name",o)},expression:"item.name"}})],1),a("Col",{attrs:{span:"16"}},[a("TagInput",{model:{value:e.columns,callback:function(o){t.$set(e,"columns",o)},expression:"item.columns"}})],1)],1)}),a("Button",{attrs:{type:"default",icon:"md-add"},on:{click:t.addDatum}},[t._v(t._s(t.$L("\u6DFB\u52A0\u6A21\u677F")))])],2),a("div",{staticClass:"setting-footer"},[a("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),a("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},O=[];const P={name:"SystemColumnTemplate",data(){return{loadIng:0,formDatum:[],nullDatum:{name:"",columns:""}}},mounted(){this.systemSetting()},computed:{...v(["columnTemplate"])},watch:{columnTemplate:{handler(t){this.formDatum=$A.cloneJSON(t),this.formDatum.length===0&&this.addDatum()},immediate:!0}},methods:{submitForm(){this.$refs.formDatum.validate(t=>{t&&this.systemSetting(!0)})},resetForm(){this.formDatum=$A.cloneJSON(this.columnTemplate)},addDatum(){this.formDatum.push($A.cloneJSON(this.nullDatum))},delDatum(t){this.formDatum.splice(t,1),this.formDatum.length===0&&this.addDatum()},systemSetting(t){this.loadIng++,this.$store.dispatch("call",{url:"system/column/template?type="+(t?"save":"get"),method:"post",data:{list:this.formDatum}}).then(({data:s})=>{t&&$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.$store.state.columnTemplate=$A.cloneJSON(s).map(a=>($A.isArray(a.columns)&&(a.columns=a.columns.join(",")),a))}).catch(({msg:s})=>{t&&$A.modalError(s)}).finally(s=>{this.loadIng--})}}},m={};var E=r(P,w,O,!1,T,null,null,null);function T(t){for(let s in m)this[s]=m[s]}var N=function(){return E.exports}(),B=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"setting-component-item"},[a("Form",{ref:"formData",attrs:{model:t.formData,rules:t.ruleData,"label-width":"auto"},nativeOn:{submit:function(e){e.preventDefault()}}},[a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("\u90AE\u7BB1\u670D\u52A1\u5668\u8BBE\u7F6E")))]),a("FormItem",{attrs:{label:t.$L("SMTP\u670D\u52A1\u5668"),prop:"smtp_server"}},[a("Input",{model:{value:t.formData.smtp_server,callback:function(e){t.$set(t.formData,"smtp_server",e)},expression:"formData.smtp_server"}})],1),a("FormItem",{attrs:{label:t.$L("\u7AEF\u53E3"),prop:"port"}},[a("Input",{attrs:{maxlength:20},model:{value:t.formData.port,callback:function(e){t.$set(t.formData,"port",e)},expression:"formData.port"}})],1),a("FormItem",{attrs:{label:t.$L("\u5E10\u53F7"),prop:"account"}},[a("Input",{attrs:{maxlength:128},model:{value:t.formData.account,callback:function(e){t.$set(t.formData,"account",e)},expression:"formData.account"}})],1),a("FormItem",{attrs:{label:t.$L("\u5BC6\u7801"),prop:"password"}},[a("Input",{attrs:{maxlength:128,type:"password"},model:{value:t.formData.password,callback:function(e){t.$set(t.formData,"password",e)},expression:"formData.password"}})],1),a("FormItem",[a("Button",{on:{click:t.checkEmailSend}},[t._v(t._s(t.$L("\u90AE\u4EF6\u53D1\u9001\u6D4B\u8BD5")))])],1)],1),a("div",{staticClass:"block-setting-placeholder"}),a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("\u90AE\u4EF6\u901A\u77E5\u8BBE\u7F6E")))]),a("FormItem",{attrs:{label:t.$L("\u5F00\u542F\u6CE8\u518C\u9A8C\u8BC1"),prop:"reg_verify"}},[a("RadioGroup",{model:{value:t.formData.reg_verify,callback:function(e){t.$set(t.formData,"reg_verify",e)},expression:"formData.reg_verify"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),t.formData.reg_verify=="open"?a("div",{staticClass:"form-tip"},[t._v(" "+t._s(t.$L("\u5F00\u542F\u540E\uFF1A"))),a("br"),t._v(" \u2460 "+t._s(t.$L("\u5E10\u53F7\u9700\u9A8C\u8BC1\u901A\u8FC7\u624D\u53EF\u767B\u5F55"))),a("br"),t._v(" \u2461 "+t._s(t.$L("\u4FEE\u6539\u90AE\u7BB1\u548C\u5220\u9664\u5E10\u53F7\u9700\u8981\u90AE\u7BB1\u9A8C\u8BC1\u7801"))+" ")]):t._e()],1),a("FormItem",{attrs:{label:t.$L("\u6D88\u606F\u63D0\u9192"),prop:"notice_msg"}},[a("RadioGroup",{model:{value:t.formData.notice_msg,callback:function(e){t.$set(t.formData,"notice_msg",e)},expression:"formData.notice_msg"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),t.formData.notice_msg=="open"?a("Form",{nativeOn:{submit:function(e){e.preventDefault()}}},[a("FormItem",{attrs:{label:t.$L("\u672A\u8BFB\u4E2A\u4EBA\u6D88\u606F"),prop:"msg_unread_user_minute"}},[a("div",{staticClass:"input-number-box"},[a("InputNumber",{attrs:{min:0,step:1},model:{value:t.formData.msg_unread_user_minute,callback:function(e){t.$set(t.formData,"msg_unread_user_minute",e)},expression:"formData.msg_unread_user_minute"}}),a("label",[t._v(t._s(t.$L("\u5206\u949F"))+"(m)")])],1)]),a("FormItem",{attrs:{label:t.$L("\u672A\u8BFB\u7FA4\u804A\u6D88\u606F"),prop:"msg_unread_group_minute"}},[a("div",{staticClass:"input-number-box"},[a("InputNumber",{attrs:{min:0,step:1},model:{value:t.formData.msg_unread_group_minute,callback:function(e){t.$set(t.formData,"msg_unread_group_minute",e)},expression:"formData.msg_unread_group_minute"}}),a("label",[t._v(t._s(t.$L("\u5206\u949F"))+"(m)")])],1)]),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u586B\u5199-1\u5219\u4E0D\u901A\u77E5\uFF0C\u8BEF\u5DEE\xB110\u5206\u949F")))])],1):t._e()],1)],1),a("div",{staticClass:"block-setting-placeholder"}),a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("\u5FFD\u7565\u90AE\u7BB1\u5730\u5740")))]),a("FormItem",{attrs:{label:t.$L("\u5FFD\u7565\u90AE\u7BB1"),prop:"ignore_addr"}},[a("Input",{attrs:{type:"textarea",autosize:{minRows:3,maxRows:50}},model:{value:t.formData.ignore_addr,callback:function(e){t.$set(t.formData,"ignore_addr",e)},expression:"formData.ignore_addr"}}),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u4E0D\u4F1A\u5411\u5FFD\u7565\u7684\u90AE\u7BB1\u5730\u5740\u53D1\u9001\u90AE\u4EF6\uFF0C\u53EF\u4F7F\u7528\u6362\u884C\u5206\u5272\u591A\u4E2A\u5730\u5740\u3002")))])],1)],1)]),a("div",{staticClass:"setting-footer"},[a("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),a("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},G=[];const J={name:"SystemEmailSetting",data(){return{loadIng:0,formData:{smtp_server:"",port:"",account:"",password:"",reg_verify:"colse",notice_msg:"open",msg_unread_user_minute:-1,msg_unread_group_minute:-1,ignore_addr:""},ruleData:{}}},mounted(){this.systemSetting()},methods:{submitForm(){this.$refs.formData.validate(t=>{t&&this.systemSetting(!0)})},resetForm(){this.formData=$A.cloneJSON(this.formDatum_bak)},systemSetting(t){this.loadIng++,this.$store.dispatch("call",{url:"system/setting/email?type="+(t?"save":"all"),data:this.formData}).then(({data:s})=>{t&&$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.formData=s,this.formDatum_bak=$A.cloneJSON(this.formData)}).catch(({msg:s})=>{t&&$A.modalError(s)}).finally(s=>{this.loadIng--})},checkEmailSend(){$A.modalInput({title:"\u6D4B\u8BD5\u90AE\u4EF6",placeholder:"\u8BF7\u8F93\u5165\u6536\u4EF6\u4EBA\u5730\u5740",onOk:t=>t?$A.isEmail(t)?new Promise((s,a)=>{this.$store.dispatch("call",{url:"system/email/check",data:Object.assign(this.formData,{to:t})}).then(({msg:e})=>{s(e)}).catch(({msg:e})=>{a(e)})}):"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u6536\u4EF6\u4EBA\u5730\u5740":"\u8BF7\u8F93\u5165\u6536\u4EF6\u4EBA\u5730\u5740"})}}},c={};var M=r(J,B,G,!1,j,null,null,null);function j(t){for(let s in c)this[s]=c[s]}var U=function(){return M.exports}(),z=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"setting-component-item"},[a("Form",{ref:"formData",attrs:{model:t.formData,rules:t.ruleData,"label-width":"auto"},nativeOn:{submit:function(e){e.preventDefault()}}},[a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("\u53CB\u76DF\u63A8\u9001")))]),a("FormItem",{attrs:{label:t.$L("\u5F00\u542F\u63A8\u9001"),prop:"push"}},[a("RadioGroup",{model:{value:t.formData.push,callback:function(e){t.$set(t.formData,"push",e)},expression:"formData.push"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1)],1),t.formData.push==="open"?[a("Divider",{attrs:{orientation:"left"}},[t._v("iOS "+t._s(t.$L("\u53C2\u6570\u914D\u7F6E")))]),a("FormItem",{attrs:{label:"Appkey",prop:"ios_appkey"}},[a("Input",{attrs:{maxlength:255},model:{value:t.formData.ios_key,callback:function(e){t.$set(t.formData,"ios_key",e)},expression:"formData.ios_key"}})],1),a("FormItem",{attrs:{label:"App Master Secret",prop:"secret"}},[a("Input",{attrs:{maxlength:255,type:"password"},model:{value:t.formData.ios_secret,callback:function(e){t.$set(t.formData,"ios_secret",e)},expression:"formData.ios_secret"}})],1),a("Divider",{attrs:{orientation:"left"}},[t._v("Android "+t._s(t.$L("\u53C2\u6570\u914D\u7F6E")))]),a("FormItem",{attrs:{label:"Appkey",prop:"android_appkey"}},[a("Input",{attrs:{maxlength:255},model:{value:t.formData.android_key,callback:function(e){t.$set(t.formData,"android_key",e)},expression:"formData.android_key"}})],1),a("FormItem",{attrs:{label:"App Master Secret",prop:"secret"}},[a("Input",{attrs:{maxlength:255,type:"password"},model:{value:t.formData.android_secret,callback:function(e){t.$set(t.formData,"android_secret",e)},expression:"formData.android_secret"}})],1)]:t._e()],2)]),a("div",{staticClass:"setting-footer"},[a("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),a("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},H=[];const q={name:"SystemAppPush",data(){return{loadIng:0,formData:{push:"",ios_key:"",ios_secret:"",android_key:"",android_secret:""},ruleData:{}}},mounted(){this.systemSetting()},methods:{submitForm(){this.$refs.formData.validate(t=>{t&&this.systemSetting(!0)})},resetForm(){this.formData=$A.cloneJSON(this.formDatum_bak)},systemSetting(t){this.loadIng++,this.$store.dispatch("call",{url:"system/setting/apppush?type="+(t?"save":"all"),data:this.formData}).then(({data:s})=>{t&&$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.formData=s,this.formDatum_bak=$A.cloneJSON(this.formData)}).catch(({msg:s})=>{t&&$A.modalError(s)}).finally(s=>{this.loadIng--})}}},u={};var W=r(q,z,H,!1,K,null,null,null);function K(t){for(let s in u)this[s]=u[s]}var Q=function(){return W.exports}(),V=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"setting-component-item"},[a("Form",{ref:"formData",attrs:{model:t.formData,rules:t.ruleData,"label-width":"auto"},nativeOn:{submit:function(e){e.preventDefault()}}},[a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("AgoraIO")))]),a("FormItem",{attrs:{label:t.$L("\u4F1A\u8BAE\u529F\u80FD"),prop:"open"}},[a("RadioGroup",{model:{value:t.formData.open,callback:function(e){t.$set(t.formData,"open",e)},expression:"formData.open"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1)],1),t.formData.open==="open"?[a("FormItem",{attrs:{label:"App ID ",prop:"appid"}},[a("Input",{attrs:{maxlength:255},model:{value:t.formData.appid,callback:function(e){t.$set(t.formData,"appid",e)},expression:"formData.appid"}})],1),a("FormItem",{attrs:{label:"App certificate",prop:"app_certificate"}},[a("Input",{attrs:{maxlength:255,type:"password"},model:{value:t.formData.app_certificate,callback:function(e){t.$set(t.formData,"app_certificate",e)},expression:"formData.app_certificate"}})],1)]:t._e()],2)]),a("div",{staticClass:"setting-footer"},[a("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),a("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},X=[];const Y={name:"SystemMeeting",data(){return{loadIng:0,formData:{open:"",appid:"",app_certificate:""},ruleData:{}}},mounted(){this.systemSetting()},methods:{submitForm(){this.$refs.formData.validate(t=>{t&&this.systemSetting(!0)})},resetForm(){this.formData=$A.cloneJSON(this.formDatum_bak)},systemSetting(t){this.loadIng++,this.$store.dispatch("call",{url:"system/setting/meeting?type="+(t?"save":"all"),data:this.formData}).then(({data:s})=>{t&&$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.formData=s,this.formDatum_bak=$A.cloneJSON(this.formData)}).catch(({msg:s})=>{t&&$A.modalError(s)}).finally(s=>{this.loadIng--})}}},p={};var Z=r(Y,V,X,!1,tt,null,null,null);function tt(t){for(let s in p)this[s]=p[s]}var at=function(){return Z.exports}(),et=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"setting-component-item"},[a("Form",{ref:"formData",attrs:{model:t.formData,rules:t.ruleData,"label-width":"auto"},nativeOn:{submit:function(e){e.preventDefault()}}},[a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("\u7B7E\u5230\u8BBE\u7F6E")))]),a("FormItem",{attrs:{label:t.$L("\u529F\u80FD\u5F00\u542F"),prop:"open"}},[a("RadioGroup",{model:{value:t.formData.open,callback:function(e){t.$set(t.formData,"open",e)},expression:"formData.open"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),a("div",{staticClass:"export-data"},[a("p",{on:{click:function(e){t.allUserShow=!0}}},[t._v(t._s(t.$L("\u7BA1\u7406\u6210\u5458MAC\u5730\u5740")))]),a("p",{on:{click:function(e){t.exportShow=!0}}},[t._v(t._s(t.$L("\u5BFC\u51FA\u7B7E\u5230\u6570\u636E")))])])],1),t.formData.open==="open"?[a("FormItem",{attrs:{label:t.$L("\u7B7E\u5230\u65F6\u95F4"),prop:"time"}},[a("TimePicker",{attrs:{type:"timerange",format:"HH:mm",placeholder:t.$L("\u8BF7\u9009\u62E9\u7B7E\u5230\u65F6\u95F4")},model:{value:t.formData.time,callback:function(e){t.$set(t.formData,"time",e)},expression:"formData.time"}}),a("Form",{nativeOn:{submit:function(e){e.preventDefault()}}},[a("FormItem",{attrs:{label:t.$L("\u6700\u65E9\u53EF\u63D0\u524D"),prop:"advance"}},[a("div",{staticClass:"input-number-box"},[a("InputNumber",{attrs:{min:0,step:1},model:{value:t.formData.advance,callback:function(e){t.$set(t.formData,"advance",e)},expression:"formData.advance"}}),a("label",[t._v(t._s(t.$L("\u5206\u949F")))])],1)]),a("FormItem",{attrs:{label:t.$L("\u6700\u665A\u53EF\u5EF6\u540E"),prop:"delay"}},[a("div",{staticClass:"input-number-box"},[a("InputNumber",{attrs:{min:0,step:1},model:{value:t.formData.delay,callback:function(e){t.$set(t.formData,"delay",e)},expression:"formData.delay"}}),a("label",[t._v(t._s(t.$L("\u5206\u949F")))])],1)]),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u7B7E\u5230\u524D\u540E\u65F6\u95F4\u6536\u5230\u6D88\u606F\u901A\u77E5")))]),a("FormItem",{attrs:{label:t.$L("\u7B7E\u5230\u6253\u5361\u63D0\u9192"),prop:"remindin"}},[a("div",{staticClass:"input-number-box"},[a("InputNumber",{attrs:{min:0,step:1},model:{value:t.formData.remindin,callback:function(e){t.$set(t.formData,"remindin",e)},expression:"formData.remindin"}}),a("label",[t._v(t._s(t.$L("\u5206\u949F")))])],1)]),a("FormItem",{attrs:{label:t.$L("\u7B7E\u5230\u7F3A\u5361\u63D0\u9192"),prop:"remindexceed"}},[a("div",{staticClass:"input-number-box"},[a("InputNumber",{attrs:{min:0,step:1},model:{value:t.formData.remindexceed,callback:function(e){t.$set(t.formData,"remindexceed",e)},expression:"formData.remindexceed"}}),a("label",[t._v(t._s(t.$L("\u5206\u949F")))])],1)]),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u7B7E\u5230\u63D0\u9192\u5BF9\u8C61\uFF1A3\u5929\u5185\u6709\u7B7E\u5230\u7684\u6210\u5458\uFF08\u6CD5\u5B9A\u5DE5\u4F5C\u65E5\uFF09")))])],1)],1),a("FormItem",{attrs:{label:t.$L("\u5141\u8BB8\u4FEE\u6539"),prop:"edit"}},[a("RadioGroup",{model:{value:t.formData.edit,callback:function(e){t.$set(t.formData,"edit",e)},expression:"formData.edit"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5141\u8BB8")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u7981\u6B62")))])],1),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5141\u8BB8\u6210\u5458\u81EA\u5DF1\u4FEE\u6539MAC\u5730\u5740")))])],1)]:t._e()],2),t.formData.open==="open"?[a("div",{staticClass:"block-setting-placeholder"}),a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("\u81EA\u52A8\u7B7E\u5230")))]),a("FormItem",{attrs:{label:t.$L("\u5B89\u88C5\u8BF4\u660E"),prop:"explain"}},[a("p",[t._v("1. "+t._s(t.$L("\u81EA\u52A8\u7B7E\u5230\u5EF6\u8FDF\u65F6\u957F\u4E3A\xB11\u5206\u949F\u3002")))]),a("p",[t._v("2. "+t._s(t.$L("\u8BBE\u5907\u8FDE\u63A5\u4E0A\u6307\u5B9A\u8DEF\u7531\u5668\uFF08WiFi\uFF09\u540E\u81EA\u52A8\u7B7E\u5230\u3002")))]),a("p",[t._v("3. "+t._s(t.$L("\u4EC5\u652F\u6301Openwrt\u7CFB\u7EDF\u7684\u8DEF\u7531\u5668\u3002")))]),a("p",[t._v("4. "+t._s(t.$L("\u5173\u95ED\u7B7E\u5230\u529F\u80FD\u518D\u5F00\u542F\u9700\u8981\u91CD\u65B0\u5B89\u88C5\u3002")))]),a("p",[t._v("5. "+t._s(t.$L("\u8FDB\u5165\u8DEF\u7531\u5668\u7EC8\u7AEF\u6267\u884C\u4EE5\u4E0B\u547D\u4EE4\u5373\u53EF\u5B8C\u6210\u5B89\u88C5\uFF1A")))]),a("Input",{ref:"cmd",staticStyle:{"margin-top":"6px"},attrs:{type:"textarea",readonly:"",value:t.formData.cmd},on:{"on-focus":t.clickCmd}})],1)],1)]:t._e()],2),a("div",{staticClass:"setting-footer"},[a("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),a("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1),a("CheckinExport",{model:{value:t.exportShow,callback:function(e){t.exportShow=e},expression:"exportShow"}}),a("DrawerOverlay",{attrs:{placement:"right",size:1380},model:{value:t.allUserShow,callback:function(e){t.allUserShow=e},expression:"allUserShow"}},[t.allUserShow?a("TeamManagement",{attrs:{"checkin-mac":""}}):t._e()],1)],1)},st=[];const ot={name:"SystemCheckin",components:{CheckinExport:h,TeamManagement:D,DrawerOverlay:$},data(){return{loadIng:0,formData:{open:"",edit:"",cmd:""},ruleData:{},allUserShow:!1,exportShow:!1}},mounted(){this.systemSetting()},methods:{submitForm(){this.$refs.formData.validate(t=>{t&&this.systemSetting(!0)})},resetForm(){this.formData=$A.cloneJSON(this.formDatum_bak)},systemSetting(t){this.loadIng++,this.$store.dispatch("call",{url:"system/setting/checkin?type="+(t?"save":"all"),data:this.formData}).then(({data:s})=>{t&&$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.formData=s,this.formDatum_bak=$A.cloneJSON(this.formData)}).catch(({msg:s})=>{t&&$A.modalError(s)}).finally(s=>{this.loadIng--})},clickCmd(){this.$nextTick(t=>{this.$refs.cmd.focus({cursor:"all"})})}}},_={};var rt=r(ot,et,st,!1,lt,null,null,null);function lt(t){for(let s in _)this[s]=_[s]}var it=function(){return rt.exports}(),nt=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"setting-component-item"},[a("Form",{ref:"formData",attrs:{model:t.formData,rules:t.ruleData,"label-width":"auto"},nativeOn:{submit:function(e){e.preventDefault()}}},[a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("LDAP")))]),a("FormItem",{attrs:{label:t.$L("\u542F\u7528 LDAP \u8BA4\u8BC1"),prop:"ldap_open"}},[a("RadioGroup",{model:{value:t.formData.ldap_open,callback:function(e){t.$set(t.formData,"ldap_open",e)},expression:"formData.ldap_open"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5F00\u542F\u540E\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528 LDAP \u5E10\u53F7\u5BC6\u7801\u767B\u5F55")))])],1),t.formData.ldap_open==="open"?[a("FormItem",{attrs:{label:t.$L("LDAP \u5730\u5740"),prop:"ldap_host"}},[a("Input",{model:{value:t.formData.ldap_host,callback:function(e){t.$set(t.formData,"ldap_host",e)},expression:"formData.ldap_host"}}),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u4F8B\u5982"))+": 192.168.1.200\u3001www.ldap.com")])],1),a("FormItem",{attrs:{label:t.$L("LDAP \u7AEF\u53E3"),prop:"ldap_port"}},[a("Input",{attrs:{type:"number",placeholder:`${t.$L("\u9ED8\u8BA4")}: 389`},model:{value:t.formData.ldap_port,callback:function(e){t.$set(t.formData,"ldap_port",e)},expression:"formData.ldap_port"}})],1),a("FormItem",{attrs:{label:"Base DN",prop:"ldap_base_dn"}},[a("Input",{model:{value:t.formData.ldap_base_dn,callback:function(e){t.$set(t.formData,"ldap_base_dn",e)},expression:"formData.ldap_base_dn"}})],1),a("FormItem",{attrs:{label:"User DN",prop:"ldap_user_dn"}},[a("Input",{model:{value:t.formData.ldap_user_dn,callback:function(e){t.$set(t.formData,"ldap_user_dn",e)},expression:"formData.ldap_user_dn"}})],1),a("FormItem",{attrs:{label:t.$L("\u5BC6\u7801"),prop:"ldap_password"}},[a("Input",{attrs:{type:"password"},model:{value:t.formData.ldap_password,callback:function(e){t.$set(t.formData,"ldap_password",e)},expression:"formData.ldap_password"}})],1),a("FormItem",{attrs:{label:t.$L("\u540C\u6B65\u672C\u5730\u5E10\u53F7"),prop:"ldap_sync_local"}},[a("RadioGroup",{model:{value:t.formData.ldap_sync_local,callback:function(e){t.$set(t.formData,"ldap_sync_local",e)},expression:"formData.ldap_sync_local"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5F00\u542F\u540C\u6B65\u672C\u5730\u5E10\u53F7\u767B\u5F55\u540E\u5C06\u540C\u6B65\u5230 LDAP \u670D\u52A1\u5668")))])],1),a("FormItem",[a("Button",{attrs:{loading:t.testLoad},on:{click:t.checkTest}},[t._v(t._s(t.$L("\u6D4B\u8BD5\u94FE\u63A5")))])],1)]:t._e()],2)]),a("div",{staticClass:"setting-footer"},[a("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),a("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},mt=[];const ct={name:"SystemThirdAccess",data(){return{loadIng:0,formData:{},ruleData:{},testLoad:!1}},mounted(){this.systemSetting()},methods:{submitForm(){this.$refs.formData.validate(t=>{t&&this.systemSetting(!0)})},resetForm(){this.formData=$A.cloneJSON(this.formDatum_bak)},systemSetting(t){this.loadIng++,this.$store.dispatch("call",{url:"system/setting/thirdaccess?type="+(t?"save":"all"),data:this.formData}).then(({data:s})=>{t&&$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.formData=s,this.formDatum_bak=$A.cloneJSON(this.formData)}).catch(({msg:s})=>{t&&$A.modalError(s)}).finally(s=>{this.loadIng--})},checkTest(){this.testLoad||(this.testLoad=!0,this.$store.dispatch("call",{url:"system/setting/thirdaccess?type=testldap",data:this.formData}).then(({msg:t})=>{$A.messageSuccess(t)}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.testLoad=!1}))}}},d={};var ut=r(ct,nt,mt,!1,pt,null,null,null);function pt(t){for(let s in d)this[s]=d[s]}var _t=function(){return ut.exports}(),dt=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"setting-item submit"},[a("Tabs",{model:{value:t.tabAction,callback:function(e){t.tabAction=e},expression:"tabAction"}},[a("TabPane",{attrs:{label:t.$L("\u7CFB\u7EDF\u8BBE\u7F6E"),name:"setting"}},[a("SystemSetting")],1),a("TabPane",{attrs:{label:t.$L("\u4EFB\u52A1\u4F18\u5148\u7EA7"),name:"taskPriority"}},[a("SystemTaskPriority")],1),a("TabPane",{attrs:{label:t.$L("\u9879\u76EE\u6A21\u677F"),name:"columnTemplate"}},[a("SystemColumnTemplate")],1),a("TabPane",{attrs:{label:t.$L("\u4F1A\u8BAE\u529F\u80FD"),name:"meeting"}},[a("SystemMeeting")],1),a("TabPane",{attrs:{label:t.$L("\u7B7E\u5230\u529F\u80FD"),name:"checkin"}},[a("SystemCheckin")],1),a("TabPane",{attrs:{label:t.$L("\u90AE\u4EF6\u8BBE\u7F6E"),name:"emailSetting"}},[a("SystemEmailSetting")],1),a("TabPane",{attrs:{label:t.$L("\u8BA4\u8BC1\u8BBE\u7F6E"),name:"thirdAccess"}},[a("SystemThirdAccess")],1),t.appPush?a("TabPane",{attrs:{label:t.$L("APP\u63A8\u9001"),name:"appPush"}},[a("SystemAppPush")],1):t._e()],1)],1)},ft=[];const vt={components:{SystemThirdAccess:_t,SystemCheckin:it,SystemMeeting:at,SystemAppPush:Q,SystemColumnTemplate:N,SystemTaskPriority:R,SystemSetting:x,SystemEmailSetting:U},data(){return{tabAction:"setting",appPush:!1}},mounted(){["127.0.0.1:2222","192.168.100.88:2222","dootask.com","www.dootask.com","t.hitosea.com"].includes($A.getDomain($A.apiUrl("../")))&&(this.appPush=!0)}},f={};var $t=r(vt,dt,ft,!1,ht,null,null,null);function ht(t){for(let s in f)this[s]=f[s]}var Lt=function(){return $t.exports}();export{Lt as default}; diff --git a/public/js/build/task.2524631c.js b/public/js/build/task.796f0242.js similarity index 83% rename from public/js/build/task.2524631c.js rename to public/js/build/task.796f0242.js index a54b093b0..25dc8402d 100644 --- a/public/js/build/task.2524631c.js +++ b/public/js/build/task.796f0242.js @@ -1 +1 @@ -import{T as n}from"./TaskDetail.0ed8c7bb.js";import{m as r,n as o}from"./app.90cb6e79.js";import"./TEditor.27348ee4.js";import"./ImgUpload.466e5bce.js";import"./ProjectLog.53e7fe6c.js";import"./UserInput.1d67c0fc.js";import"./DialogWrapper.0674ddc3.js";import"./DialogSelect.9924132a.js";import"./index.b6ff1b3f.js";import"./TaskMenu.8ddcdf6c.js";var i=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"electron-task"},[s("PageTitle",{attrs:{title:t.taskInfo.name}}),t.loadIng>0?s("Loading"):s("TaskDetail",{ref:"taskDetail",attrs:{"task-id":t.taskInfo.id,"open-task":t.taskInfo,"can-update-blur":t.canUpdateBlur}})],1)},c=[];const d={components:{TaskDetail:n},data(){return{loadIng:0,canUpdateBlur:!0}},mounted(){document.addEventListener("keydown",this.shortcutEvent),this.$isSubElectron&&(window.__onBeforeUnload=()=>{if(this.$refs.taskDetail.checkUpdate())return this.canUpdateBlur=!1,$A.modalConfirm({content:"\u4FEE\u6539\u7684\u5185\u5BB9\u5C1A\u672A\u4FDD\u5B58\uFF0C\u771F\u7684\u8981\u653E\u5F03\u4FEE\u6539\u5417\uFF1F",cancelText:"\u53D6\u6D88",okText:"\u653E\u5F03",onOk:()=>{this.$Electron.sendMessage("windowDestroy")},onCancel:()=>{this.$refs.taskDetail.checkUpdate(!1),this.canUpdateBlur=!0}}),!0})},beforeDestroy(){document.removeEventListener("keydown",this.shortcutEvent)},computed:{...r(["cacheTasks"]),taskId(){const{taskId:t}=this.$route.params;return parseInt(/^\d+$/.test(t)?t:0)},taskInfo(){return this.cacheTasks.find(({id:t})=>t===this.taskId)||{}}},watch:{taskId:{handler(){this.getInfo()},immediate:!0}},methods:{getInfo(){this.taskId<=0||(this.loadIng++,this.$store.dispatch("getTaskOne",{task_id:this.taskId,archived:"all"}).then(()=>{this.$store.dispatch("getTaskContent",this.taskId),this.$store.dispatch("getTaskFiles",this.taskId),this.$store.dispatch("getTaskForParent",this.taskId).catch(()=>{}),this.$store.dispatch("getTaskPriority").catch(()=>{})}).catch(({msg:t})=>{$A.modalError({content:t,onOk:()=>{this.$Electron&&window.close()}})}).finally(t=>{this.loadIng--}))},shortcutEvent(t){(t.metaKey||t.ctrlKey)&&t.keyCode===83&&(t.preventDefault(),this.$refs.taskDetail.checkUpdate(!0))}}},a={};var l=o(d,i,c,!1,h,"7af6ba13",null,null);function h(t){for(let e in a)this[e]=a[e]}var y=function(){return l.exports}();export{y as default}; +import{T as n}from"./TaskDetail.e0049723.js";import{m as r,n as o}from"./app.feefc813.js";import"./TEditor.a1d21399.js";import"./ImgUpload.e60c7ecf.js";import"./ProjectLog.ac7d2c0b.js";import"./UserInput.2bc16b15.js";import"./DialogWrapper.0c8b0be3.js";import"./DialogSelect.5d8dded5.js";import"./index.f3f56c75.js";import"./TaskMenu.0eaf56d7.js";var i=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"electron-task"},[s("PageTitle",{attrs:{title:t.taskInfo.name}}),t.loadIng>0?s("Loading"):s("TaskDetail",{ref:"taskDetail",attrs:{"task-id":t.taskInfo.id,"open-task":t.taskInfo,"can-update-blur":t.canUpdateBlur}})],1)},c=[];const d={components:{TaskDetail:n},data(){return{loadIng:0,canUpdateBlur:!0}},mounted(){document.addEventListener("keydown",this.shortcutEvent),this.$isSubElectron&&(window.__onBeforeUnload=()=>{if(this.$refs.taskDetail.checkUpdate())return this.canUpdateBlur=!1,$A.modalConfirm({content:"\u4FEE\u6539\u7684\u5185\u5BB9\u5C1A\u672A\u4FDD\u5B58\uFF0C\u771F\u7684\u8981\u653E\u5F03\u4FEE\u6539\u5417\uFF1F",cancelText:"\u53D6\u6D88",okText:"\u653E\u5F03",onOk:()=>{this.$Electron.sendMessage("windowDestroy")},onCancel:()=>{this.$refs.taskDetail.checkUpdate(!1),this.canUpdateBlur=!0}}),!0})},beforeDestroy(){document.removeEventListener("keydown",this.shortcutEvent)},computed:{...r(["cacheTasks"]),taskId(){const{taskId:t}=this.$route.params;return parseInt(/^\d+$/.test(t)?t:0)},taskInfo(){return this.cacheTasks.find(({id:t})=>t===this.taskId)||{}}},watch:{taskId:{handler(){this.getInfo()},immediate:!0}},methods:{getInfo(){this.taskId<=0||(this.loadIng++,this.$store.dispatch("getTaskOne",{task_id:this.taskId,archived:"all"}).then(()=>{this.$store.dispatch("getTaskContent",this.taskId),this.$store.dispatch("getTaskFiles",this.taskId),this.$store.dispatch("getTaskForParent",this.taskId).catch(()=>{}),this.$store.dispatch("getTaskPriority").catch(()=>{})}).catch(({msg:t})=>{$A.modalError({content:t,onOk:()=>{this.$Electron&&window.close()}})}).finally(t=>{this.loadIng--}))},shortcutEvent(t){(t.metaKey||t.ctrlKey)&&t.keyCode===83&&(t.preventDefault(),this.$refs.taskDetail.checkUpdate(!0))}}},a={};var l=o(d,i,c,!1,h,"7af6ba13",null,null);function h(t){for(let e in a)this[e]=a[e]}var y=function(){return l.exports}();export{y as default}; diff --git a/public/js/build/theme.d2fcebc3.js b/public/js/build/theme.b257d9ca.js similarity index 96% rename from public/js/build/theme.d2fcebc3.js rename to public/js/build/theme.b257d9ca.js index 1fcd03b34..990bf5a69 100644 --- a/public/js/build/theme.d2fcebc3.js +++ b/public/js/build/theme.b257d9ca.js @@ -1 +1 @@ -import{m as i,n}from"./app.90cb6e79.js";var m=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"setting-item submit"},[e("Form",{ref:"formData",attrs:{model:t.formData,rules:t.ruleData,labelPosition:t.formLabelPosition,labelWidth:t.formLabelWidth},nativeOn:{submit:function(o){o.preventDefault()}}},[e("FormItem",{attrs:{label:t.$L("\u9009\u62E9\u4E3B\u9898"),prop:"theme"}},[e("Select",{attrs:{placeholder:t.$L("\u9009\u9879\u4E3B\u9898")},model:{value:t.formData.theme,callback:function(o){t.$set(t.formData,"theme",o)},expression:"formData.theme"}},t._l(t.themeList,function(o,s){return e("Option",{key:s,attrs:{value:o.value}},[t._v(t._s(t.$L(o.name)))])}),1)],1)],1),e("div",{staticClass:"setting-footer"},[e("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),e("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},l=[];const c={data(){return{loadIng:0,formData:{theme:""},ruleData:{}}},mounted(){this.initData()},computed:{...i(["themeMode","themeList","formLabelPosition","formLabelWidth"])},methods:{initData(){this.$set(this.formData,"theme",this.themeMode),this.formData_bak=$A.cloneJSON(this.formData)},submitForm(){this.$refs.formData.validate(t=>{t&&this.$store.dispatch("setTheme",this.formData.theme).then(a=>{a&&$A.messageSuccess("\u4FDD\u5B58\u6210\u529F")})})},resetForm(){this.formData=$A.cloneJSON(this.formData_bak)}}},r={};var f=n(c,m,l,!1,h,null,null,null);function h(t){for(let a in r)this[a]=r[a]}var _=function(){return f.exports}();export{_ as default}; +import{m as i,n}from"./app.feefc813.js";var m=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"setting-item submit"},[e("Form",{ref:"formData",attrs:{model:t.formData,rules:t.ruleData,labelPosition:t.formLabelPosition,labelWidth:t.formLabelWidth},nativeOn:{submit:function(o){o.preventDefault()}}},[e("FormItem",{attrs:{label:t.$L("\u9009\u62E9\u4E3B\u9898"),prop:"theme"}},[e("Select",{attrs:{placeholder:t.$L("\u9009\u9879\u4E3B\u9898")},model:{value:t.formData.theme,callback:function(o){t.$set(t.formData,"theme",o)},expression:"formData.theme"}},t._l(t.themeList,function(o,s){return e("Option",{key:s,attrs:{value:o.value}},[t._v(t._s(t.$L(o.name)))])}),1)],1)],1),e("div",{staticClass:"setting-footer"},[e("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),e("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},l=[];const c={data(){return{loadIng:0,formData:{theme:""},ruleData:{}}},mounted(){this.initData()},computed:{...i(["themeMode","themeList","formLabelPosition","formLabelWidth"])},methods:{initData(){this.$set(this.formData,"theme",this.themeMode),this.formData_bak=$A.cloneJSON(this.formData)},submitForm(){this.$refs.formData.validate(t=>{t&&this.$store.dispatch("setTheme",this.formData.theme).then(a=>{a&&$A.messageSuccess("\u4FDD\u5B58\u6210\u529F")})})},resetForm(){this.formData=$A.cloneJSON(this.formData_bak)}}},r={};var f=n(c,m,l,!1,h,null,null,null);function h(t){for(let a in r)this[a]=r[a]}var _=function(){return f.exports}();export{_ as default}; diff --git a/public/js/build/token.098421cd.js b/public/js/build/token.29a88a8a.js similarity index 91% rename from public/js/build/token.098421cd.js rename to public/js/build/token.29a88a8a.js index d57b9c58c..dcd25eea2 100644 --- a/public/js/build/token.098421cd.js +++ b/public/js/build/token.29a88a8a.js @@ -1 +1 @@ -import{n}from"./app.90cb6e79.js";var a=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"token-transfer"},[o("Loading")],1)},s=[];const i={mounted(){this.goNext1()},methods:{goNext1(){const e=$A.urlParameterAll();e.token&&this.$store.dispatch("call",{url:"users/info",header:{token:e.token}}).then(t=>{this.$store.dispatch("saveUserInfo",t.data),this.goNext2()}).catch(t=>{this.goForward({name:"login"},!0)})},goNext2(){let e=decodeURIComponent($A.getObject(this.$route.query,"from"));e?window.location.replace(e):this.goForward({name:"manage-dashboard"},!0)}}},r={};var c=n(i,a,s,!1,l,"5df16c44",null,null);function l(e){for(let t in r)this[t]=r[t]}var d=function(){return c.exports}();export{d as default}; +import{n}from"./app.feefc813.js";var a=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"token-transfer"},[o("Loading")],1)},s=[];const i={mounted(){this.goNext1()},methods:{goNext1(){const e=$A.urlParameterAll();e.token&&this.$store.dispatch("call",{url:"users/info",header:{token:e.token}}).then(t=>{this.$store.dispatch("saveUserInfo",t.data),this.goNext2()}).catch(t=>{this.goForward({name:"login"},!0)})},goNext2(){let e=decodeURIComponent($A.getObject(this.$route.query,"from"));e?window.location.replace(e):this.goForward({name:"manage-dashboard"},!0)}}},r={};var c=n(i,a,s,!1,l,"5df16c44",null,null);function l(e){for(let t in r)this[t]=r[t]}var d=function(){return c.exports}();export{d as default}; diff --git a/public/js/build/validEmail.fb7e7cb9.js b/public/js/build/validEmail.dfd455f4.js similarity index 95% rename from public/js/build/validEmail.fb7e7cb9.js rename to public/js/build/validEmail.dfd455f4.js index 178e4dce0..953fac4e6 100644 --- a/public/js/build/validEmail.fb7e7cb9.js +++ b/public/js/build/validEmail.dfd455f4.js @@ -1 +1 @@ -import{n as i}from"./app.90cb6e79.js";var a=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"valid-wrap"},[e("div",{staticClass:"valid-box"},[e("div",{staticClass:"valid-title"},[t._v(t._s(t.$L("\u9A8C\u8BC1\u90AE\u7BB1")))]),!t.success&&!t.error?e("Spin",{attrs:{size:"large"}}):t._e(),t.success?e("div",{staticClass:"validation-text"},[e("p",[t._v(t._s(t.$L("\u60A8\u7684\u90AE\u7BB1\u5DF2\u901A\u8FC7\u9A8C\u8BC1")))]),e("p",[t._v(t._s(t.$L("\u4ECA\u540E\u60A8\u53EF\u4EE5\u901A\u8FC7\u6B64\u90AE\u7BB1\u91CD\u7F6E\u60A8\u7684\u5E10\u53F7\u5BC6\u7801")))])]):t._e(),t.error?e("div",{staticClass:"validation-text"},[e("div",[t._v(t._s(t.errorText))])]):t._e(),t.success?e("div",{attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"primary",long:""},on:{click:t.userLogout}},[t._v(t._s(t.$L("\u8FD4\u56DE\u9996\u9875")))])],1):t._e()],1)])},o=[];const c={data(){return{success:!1,error:!1,errorText:this.$L("\u94FE\u63A5\u5DF2\u8FC7\u671F\uFF0C\u5DF2\u91CD\u65B0\u53D1\u9001")}},mounted(){this.verificationEmail()},methods:{verificationEmail(){this.$store.dispatch("call",{url:"users/email/verification",data:{code:this.$route.query.code}}).then(()=>{this.success=!0,this.error=!1}).catch(({data:t,msg:s})=>{t.code===2?this.goForward({name:"index",query:{action:"index"}},!0):(this.success=!1,this.error=!0,this.errorText=this.$L(s))})},userLogout(){this.$store.dispatch("logout",!1)}}},r={};var l=i(c,a,o,!1,n,"763444c4",null,null);function n(t){for(let s in r)this[s]=r[s]}var u=function(){return l.exports}();export{u as default}; +import{n as i}from"./app.feefc813.js";var a=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"valid-wrap"},[e("div",{staticClass:"valid-box"},[e("div",{staticClass:"valid-title"},[t._v(t._s(t.$L("\u9A8C\u8BC1\u90AE\u7BB1")))]),!t.success&&!t.error?e("Spin",{attrs:{size:"large"}}):t._e(),t.success?e("div",{staticClass:"validation-text"},[e("p",[t._v(t._s(t.$L("\u60A8\u7684\u90AE\u7BB1\u5DF2\u901A\u8FC7\u9A8C\u8BC1")))]),e("p",[t._v(t._s(t.$L("\u4ECA\u540E\u60A8\u53EF\u4EE5\u901A\u8FC7\u6B64\u90AE\u7BB1\u91CD\u7F6E\u60A8\u7684\u5E10\u53F7\u5BC6\u7801")))])]):t._e(),t.error?e("div",{staticClass:"validation-text"},[e("div",[t._v(t._s(t.errorText))])]):t._e(),t.success?e("div",{attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"primary",long:""},on:{click:t.userLogout}},[t._v(t._s(t.$L("\u8FD4\u56DE\u9996\u9875")))])],1):t._e()],1)])},o=[];const c={data(){return{success:!1,error:!1,errorText:this.$L("\u94FE\u63A5\u5DF2\u8FC7\u671F\uFF0C\u5DF2\u91CD\u65B0\u53D1\u9001")}},mounted(){this.verificationEmail()},methods:{verificationEmail(){this.$store.dispatch("call",{url:"users/email/verification",data:{code:this.$route.query.code}}).then(()=>{this.success=!0,this.error=!1}).catch(({data:t,msg:s})=>{t.code===2?this.goForward({name:"index",query:{action:"index"}},!0):(this.success=!1,this.error=!0,this.errorText=this.$L(s))})},userLogout(){this.$store.dispatch("logout",!1)}}},r={};var l=i(c,a,o,!1,n,"763444c4",null,null);function n(t){for(let s in r)this[s]=r[s]}var u=function(){return l.exports}();export{u as default}; diff --git a/public/js/build/view.e8df30fb.js b/public/js/build/view.e87ac5ac.js similarity index 98% rename from public/js/build/view.e8df30fb.js rename to public/js/build/view.e87ac5ac.js index ef3207476..4b82949bb 100644 --- a/public/js/build/view.e8df30fb.js +++ b/public/js/build/view.e87ac5ac.js @@ -1 +1 @@ -import{V as c,n as m}from"./app.90cb6e79.js";typeof/./!="function"&&typeof Int8Array!="object"&&(c.prototype.$isServer||document.childNodes);const v=function(){return!c.prototype.$isServer&&!!window.navigator.userAgent.match(/firefox/i)};function d(e){let i=!1;return function(...t){i||(i=!0,window.requestAnimationFrame(s=>{e.apply(this,t),i=!1}))}}const h=c.prototype.$isServer,r=function(){return!h&&document.addEventListener?function(e,i,t){e&&i&&t&&e.addEventListener(i,t,!1)}:function(e,i,t){e&&i&&t&&e.attachEvent("on"+i,t)}}(),l=function(){return!h&&document.removeEventListener?function(e,i,t){e&&i&&e.removeEventListener(i,t,!1)}:function(e,i,t){e&&i&&e.detachEvent("on"+i,t)}}();var g=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{ref:"view",staticClass:"common-preview-image"},[t("div",{staticClass:"common-preview-view no-dark-content"},[e.isSingle?e._e():[t("div",{staticClass:"preview-view-prev",class:{"is-disabled":!e.infinite&&e.isFirst},on:{click:e.prev}},[t("i",{staticClass:"taskfont"},[e._v("\uE72D")])]),t("div",{staticClass:"preview-view-next",class:{"is-disabled":!e.infinite&&e.isLast},on:{click:e.next}},[t("i",{staticClass:"taskfont"},[e._v("\uE733")])])],t("div",{staticClass:"preview-view-actions"},[t("div",{staticClass:"actions-inner"},[t("i",{staticClass:"taskfont",on:{click:function(s){return e.handleActions("zoomOut")}}},[e._v("\uE7A2")]),t("i",{staticClass:"taskfont",on:{click:function(s){return e.handleActions("zoomIn")}}},[e._v("\uE79F")]),t("i",{staticClass:"actions-divider"}),t("i",{staticClass:"taskfont",domProps:{innerHTML:e._s(e.mode.icon)},on:{click:e.toggleMode}}),t("i",{staticClass:"actions-divider"}),t("i",{staticClass:"taskfont",on:{click:function(s){return e.handleActions("anticlocelise")}}},[e._v("\uE7A7")]),t("i",{staticClass:"taskfont",on:{click:function(s){return e.handleActions("clocelise")}}},[e._v("\uE7A6")])])]),t("div",{staticClass:"preview-view-canvas"},e._l(e.urlList,function(s,o){return o===e.index?t("img",{key:o,ref:"img",refInFor:!0,staticClass:"preview-view-img",style:e.imgStyle,attrs:{src:e.currentImg},on:{load:e.handleImgLoad,error:e.handleImgError,mousedown:e.handleMouseDown}}):e._e()}),0)],2)])},p=[];const a={CONTAIN:{name:"contain",icon:""},ORIGINAL:{name:"original",icon:""}},u=v()?"DOMMouseScroll":"mousewheel",_={props:{urlList:{type:Array,default:()=>[]},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!1},onSwitch:{type:Function,default:()=>{}}},data(){return{index:this.initialIndex,loading:!1,mode:a.CONTAIN,transform:{scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}},mounted(){this.deviceSupportInstall(),this.$refs.view.focus()},beforeDestroy(){this.deviceSupportUninstall()},computed:{isSingle(){return this.urlList.length<=1},isFirst(){return this.index===0},isLast(){return this.index===this.urlList.length-1},currentImg(){let e=this.urlList[this.index];return $A.isJson(e)&&(e=e.src),$A.rightDelete(e,"_thumb.jpg")},imgStyle(){const{scale:e,deg:i,offsetX:t,offsetY:s,enableTransition:o}=this.transform,n={transform:`scale(${e}) rotate(${i}deg)`,transition:o?"transform .3s":"","margin-left":`${t}px`,"margin-top":`${s}px`};return this.mode===a.CONTAIN&&(n.maxWidth=n.maxHeight="100%"),n}},watch:{index:{handler:function(e){this.reset(),this.onSwitch(e)}},initialIndex(e){this.index=e},currentImg(){this.$nextTick(e=>{this.$refs.img[0].complete||(this.loading=!0)})}},methods:{deviceSupportInstall(){this._keyDownHandler=e=>{switch(e.stopPropagation(),e.keyCode){case 32:this.toggleMode();break;case 37:this.prev();break;case 38:this.handleActions("zoomIn");break;case 39:this.next();break;case 40:this.handleActions("zoomOut");break}},this._mouseWheelHandler=d(e=>{(e.wheelDelta?e.wheelDelta:-e.detail)>0?this.handleActions("zoomIn",{zoomRate:.015,enableTransition:!1}):this.handleActions("zoomOut",{zoomRate:.015,enableTransition:!1})}),r(document,"keydown",this._keyDownHandler),r(document,u,this._mouseWheelHandler)},deviceSupportUninstall(){l(document,"keydown",this._keyDownHandler),l(document,u,this._mouseWheelHandler),this._keyDownHandler=null,this._mouseWheelHandler=null},handleImgLoad(e){this.loading=!1},handleImgError(e){this.loading=!1,e.target.alt="\u52A0\u8F7D\u5931\u8D25"},handleMouseDown(e){if(this.loading||e.button!==0)return;const{offsetX:i,offsetY:t}=this.transform,s=e.pageX,o=e.pageY;this._dragHandler=d(n=>{this.transform.offsetX=i+n.pageX-s,this.transform.offsetY=t+n.pageY-o}),r(document,"mousemove",this._dragHandler),r(document,"mouseup",n=>{l(document,"mousemove",this._dragHandler)}),e.preventDefault()},reset(){this.transform={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}},toggleMode(){if(this.loading)return;const e=Object.keys(a),s=(Object.values(a).indexOf(this.mode)+1)%e.length;this.mode=a[e[s]],this.reset()},prev(){if(this.isFirst&&!this.infinite)return;const e=this.urlList.length;this.index=(this.index-1+e)%e},next(){if(this.isLast&&!this.infinite)return;const e=this.urlList.length;this.index=(this.index+1)%e},handleActions(e,i={}){if(this.loading)return;const{zoomRate:t,rotateDeg:s,enableTransition:o}={zoomRate:.2,rotateDeg:90,enableTransition:!0,...i},{transform:n}=this;switch(e){case"zoomOut":n.scale>.2&&(n.scale=parseFloat((n.scale-t).toFixed(3)));break;case"zoomIn":n.scale=parseFloat((n.scale+t).toFixed(3));break;case"clocelise":n.deg+=s;break;case"anticlocelise":n.deg-=s;break}n.enableTransition=o}}},f={};var w=m(_,g,p,!1,x,"124de060",null,null);function x(e){for(let i in f)this[i]=f[i]}var y=function(){return w.exports}();export{y as default}; +import{V as c,n as m}from"./app.feefc813.js";typeof/./!="function"&&typeof Int8Array!="object"&&(c.prototype.$isServer||document.childNodes);const v=function(){return!c.prototype.$isServer&&!!window.navigator.userAgent.match(/firefox/i)};function d(e){let i=!1;return function(...t){i||(i=!0,window.requestAnimationFrame(s=>{e.apply(this,t),i=!1}))}}const h=c.prototype.$isServer,r=function(){return!h&&document.addEventListener?function(e,i,t){e&&i&&t&&e.addEventListener(i,t,!1)}:function(e,i,t){e&&i&&t&&e.attachEvent("on"+i,t)}}(),l=function(){return!h&&document.removeEventListener?function(e,i,t){e&&i&&e.removeEventListener(i,t,!1)}:function(e,i,t){e&&i&&e.detachEvent("on"+i,t)}}();var g=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{ref:"view",staticClass:"common-preview-image"},[t("div",{staticClass:"common-preview-view no-dark-content"},[e.isSingle?e._e():[t("div",{staticClass:"preview-view-prev",class:{"is-disabled":!e.infinite&&e.isFirst},on:{click:e.prev}},[t("i",{staticClass:"taskfont"},[e._v("\uE72D")])]),t("div",{staticClass:"preview-view-next",class:{"is-disabled":!e.infinite&&e.isLast},on:{click:e.next}},[t("i",{staticClass:"taskfont"},[e._v("\uE733")])])],t("div",{staticClass:"preview-view-actions"},[t("div",{staticClass:"actions-inner"},[t("i",{staticClass:"taskfont",on:{click:function(s){return e.handleActions("zoomOut")}}},[e._v("\uE7A2")]),t("i",{staticClass:"taskfont",on:{click:function(s){return e.handleActions("zoomIn")}}},[e._v("\uE79F")]),t("i",{staticClass:"actions-divider"}),t("i",{staticClass:"taskfont",domProps:{innerHTML:e._s(e.mode.icon)},on:{click:e.toggleMode}}),t("i",{staticClass:"actions-divider"}),t("i",{staticClass:"taskfont",on:{click:function(s){return e.handleActions("anticlocelise")}}},[e._v("\uE7A7")]),t("i",{staticClass:"taskfont",on:{click:function(s){return e.handleActions("clocelise")}}},[e._v("\uE7A6")])])]),t("div",{staticClass:"preview-view-canvas"},e._l(e.urlList,function(s,o){return o===e.index?t("img",{key:o,ref:"img",refInFor:!0,staticClass:"preview-view-img",style:e.imgStyle,attrs:{src:e.currentImg},on:{load:e.handleImgLoad,error:e.handleImgError,mousedown:e.handleMouseDown}}):e._e()}),0)],2)])},p=[];const a={CONTAIN:{name:"contain",icon:""},ORIGINAL:{name:"original",icon:""}},u=v()?"DOMMouseScroll":"mousewheel",_={props:{urlList:{type:Array,default:()=>[]},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!1},onSwitch:{type:Function,default:()=>{}}},data(){return{index:this.initialIndex,loading:!1,mode:a.CONTAIN,transform:{scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}},mounted(){this.deviceSupportInstall(),this.$refs.view.focus()},beforeDestroy(){this.deviceSupportUninstall()},computed:{isSingle(){return this.urlList.length<=1},isFirst(){return this.index===0},isLast(){return this.index===this.urlList.length-1},currentImg(){let e=this.urlList[this.index];return $A.isJson(e)&&(e=e.src),$A.rightDelete(e,"_thumb.jpg")},imgStyle(){const{scale:e,deg:i,offsetX:t,offsetY:s,enableTransition:o}=this.transform,n={transform:`scale(${e}) rotate(${i}deg)`,transition:o?"transform .3s":"","margin-left":`${t}px`,"margin-top":`${s}px`};return this.mode===a.CONTAIN&&(n.maxWidth=n.maxHeight="100%"),n}},watch:{index:{handler:function(e){this.reset(),this.onSwitch(e)}},initialIndex(e){this.index=e},currentImg(){this.$nextTick(e=>{this.$refs.img[0].complete||(this.loading=!0)})}},methods:{deviceSupportInstall(){this._keyDownHandler=e=>{switch(e.stopPropagation(),e.keyCode){case 32:this.toggleMode();break;case 37:this.prev();break;case 38:this.handleActions("zoomIn");break;case 39:this.next();break;case 40:this.handleActions("zoomOut");break}},this._mouseWheelHandler=d(e=>{(e.wheelDelta?e.wheelDelta:-e.detail)>0?this.handleActions("zoomIn",{zoomRate:.015,enableTransition:!1}):this.handleActions("zoomOut",{zoomRate:.015,enableTransition:!1})}),r(document,"keydown",this._keyDownHandler),r(document,u,this._mouseWheelHandler)},deviceSupportUninstall(){l(document,"keydown",this._keyDownHandler),l(document,u,this._mouseWheelHandler),this._keyDownHandler=null,this._mouseWheelHandler=null},handleImgLoad(e){this.loading=!1},handleImgError(e){this.loading=!1,e.target.alt="\u52A0\u8F7D\u5931\u8D25"},handleMouseDown(e){if(this.loading||e.button!==0)return;const{offsetX:i,offsetY:t}=this.transform,s=e.pageX,o=e.pageY;this._dragHandler=d(n=>{this.transform.offsetX=i+n.pageX-s,this.transform.offsetY=t+n.pageY-o}),r(document,"mousemove",this._dragHandler),r(document,"mouseup",n=>{l(document,"mousemove",this._dragHandler)}),e.preventDefault()},reset(){this.transform={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}},toggleMode(){if(this.loading)return;const e=Object.keys(a),s=(Object.values(a).indexOf(this.mode)+1)%e.length;this.mode=a[e[s]],this.reset()},prev(){if(this.isFirst&&!this.infinite)return;const e=this.urlList.length;this.index=(this.index-1+e)%e},next(){if(this.isLast&&!this.infinite)return;const e=this.urlList.length;this.index=(this.index+1)%e},handleActions(e,i={}){if(this.loading)return;const{zoomRate:t,rotateDeg:s,enableTransition:o}={zoomRate:.2,rotateDeg:90,enableTransition:!0,...i},{transform:n}=this;switch(e){case"zoomOut":n.scale>.2&&(n.scale=parseFloat((n.scale-t).toFixed(3)));break;case"zoomIn":n.scale=parseFloat((n.scale+t).toFixed(3));break;case"clocelise":n.deg+=s;break;case"anticlocelise":n.deg-=s;break}n.enableTransition=o}}},f={};var w=m(_,g,p,!1,x,"124de060",null,null);function x(e){for(let i in f)this[i]=f[i]}var y=function(){return w.exports}();export{y as default}; diff --git a/public/manifest.json b/public/manifest.json index d623d0eaa..6d842e7d1 100644 --- a/public/manifest.json +++ b/public/manifest.json @@ -1,6 +1,6 @@ { "resources/assets/js/app.js": { - "file": "js/build/app.90cb6e79.js", + "file": "js/build/app.feefc813.js", "src": "resources/assets/js/app.js", "isEntry": true, "dynamicImports": [ @@ -37,7 +37,7 @@ "resources/assets/js/pages/404.vue" ], "css": [ - "js/build/app.ce5dd3b0.css" + "js/build/app.961ba03c.css" ], "assets": [ "js/build/iconfont.01196938.eot", @@ -104,27 +104,27 @@ ] }, "resources/assets/js/pages/index.vue": { - "file": "js/build/index.5d080e35.js", + "file": "js/build/index.c87e6256.js", "src": "resources/assets/js/pages/index.vue", "isDynamicEntry": true, "imports": [ "resources/assets/js/app.js", - "_UpdateLog.8c1c1fb4.js" + "_UpdateLog.c8b0b98a.js" ] }, - "_UpdateLog.8c1c1fb4.js": { - "file": "js/build/UpdateLog.8c1c1fb4.js", + "_UpdateLog.c8b0b98a.js": { + "file": "js/build/UpdateLog.c8b0b98a.js", "imports": [ "resources/assets/js/app.js" ] }, "resources/assets/js/pages/pro.vue": { - "file": "js/build/pro.38bd30b6.js", + "file": "js/build/pro.1c8d65b0.js", "src": "resources/assets/js/pages/pro.vue", "isDynamicEntry": true, "imports": [ "resources/assets/js/app.js", - "_UpdateLog.8c1c1fb4.js" + "_UpdateLog.c8b0b98a.js" ], "css": [ "js/build/pro.039043a1.css" @@ -136,40 +136,40 @@ ] }, "resources/assets/js/pages/manage.vue": { - "file": "js/build/manage.9cd00782.js", + "file": "js/build/manage.dcb52a78.js", "src": "resources/assets/js/pages/manage.vue", "isDynamicEntry": true, "imports": [ "resources/assets/js/app.js", - "_CheckinExport.893ae33d.js", - "_index.b6ff1b3f.js", + "_CheckinExport.8a7d62a4.js", + "_index.f3f56c75.js", "resources/assets/js/components/TEditor.vue", - "_UserInput.1d67c0fc.js", - "_ReportEdit.1b195875.js", - "_ReportDetail.7265b249.js", - "_DialogSelect.9924132a.js", - "_DialogWrapper.0674ddc3.js", - "_TaskDetail.0ed8c7bb.js", - "_ImgUpload.466e5bce.js", - "_ProjectLog.53e7fe6c.js", - "_TaskMenu.8ddcdf6c.js" + "_UserInput.2bc16b15.js", + "_ReportEdit.4981db49.js", + "_ReportDetail.732d6d88.js", + "_DialogSelect.5d8dded5.js", + "_DialogWrapper.0c8b0be3.js", + "_TaskDetail.e0049723.js", + "_ImgUpload.e60c7ecf.js", + "_ProjectLog.ac7d2c0b.js", + "_TaskMenu.0eaf56d7.js" ], "css": [ "js/build/manage.a77f99dc.css" ] }, - "_CheckinExport.893ae33d.js": { - "file": "js/build/CheckinExport.893ae33d.js", + "_CheckinExport.8a7d62a4.js": { + "file": "js/build/CheckinExport.8a7d62a4.js", "imports": [ - "_UserInput.1d67c0fc.js", + "_UserInput.2bc16b15.js", "resources/assets/js/app.js" ], "css": [ "js/build/CheckinExport.68b4950e.css" ] }, - "_index.b6ff1b3f.js": { - "file": "js/build/index.b6ff1b3f.js", + "_index.f3f56c75.js": { + "file": "js/build/index.f3f56c75.js", "imports": [ "resources/assets/js/app.js" ], @@ -177,117 +177,119 @@ "js/build/index.51410170.css" ] }, - "_DialogSelect.9924132a.js": { - "file": "js/build/DialogSelect.9924132a.js", + "_DialogSelect.5d8dded5.js": { + "file": "js/build/DialogSelect.5d8dded5.js", "imports": [ - "_UserInput.1d67c0fc.js", + "_UserInput.2bc16b15.js", "resources/assets/js/app.js" ] }, - "_UserInput.1d67c0fc.js": { - "file": "js/build/UserInput.1d67c0fc.js", + "_UserInput.2bc16b15.js": { + "file": "js/build/UserInput.2bc16b15.js", "imports": [ "resources/assets/js/app.js" ] }, "resources/assets/js/components/TEditor.vue": { - "file": "js/build/TEditor.27348ee4.js", + "file": "js/build/TEditor.a1d21399.js", "src": "resources/assets/js/components/TEditor.vue", "isDynamicEntry": true, "imports": [ "resources/assets/js/app.js", - "_ImgUpload.466e5bce.js" + "_ImgUpload.e60c7ecf.js" ] }, - "_ReportEdit.1b195875.js": { - "file": "js/build/ReportEdit.1b195875.js", + "_ReportEdit.4981db49.js": { + "file": "js/build/ReportEdit.4981db49.js", "imports": [ "resources/assets/js/app.js", - "_UserInput.1d67c0fc.js" + "_UserInput.2bc16b15.js" ], "dynamicImports": [ "resources/assets/js/components/TEditor.vue" ] }, - "_ReportDetail.7265b249.js": { - "file": "js/build/ReportDetail.7265b249.js", + "_ReportDetail.732d6d88.js": { + "file": "js/build/ReportDetail.732d6d88.js", "imports": [ "resources/assets/js/app.js" ] }, - "_DialogWrapper.0674ddc3.js": { - "file": "js/build/DialogWrapper.0674ddc3.js", + "_DialogWrapper.0c8b0be3.js": { + "file": "js/build/DialogWrapper.0c8b0be3.js", "imports": [ "resources/assets/js/app.js", - "_DialogSelect.9924132a.js", - "_UserInput.1d67c0fc.js", - "_index.b6ff1b3f.js" + "_DialogSelect.5d8dded5.js", + "_UserInput.2bc16b15.js", + "_index.f3f56c75.js", + "_ImgUpload.e60c7ecf.js" ] }, - "_TaskDetail.0ed8c7bb.js": { - "file": "js/build/TaskDetail.0ed8c7bb.js", + "_TaskDetail.e0049723.js": { + "file": "js/build/TaskDetail.e0049723.js", "imports": [ "resources/assets/js/app.js", "resources/assets/js/components/TEditor.vue", - "_ProjectLog.53e7fe6c.js", - "_UserInput.1d67c0fc.js", - "_DialogWrapper.0674ddc3.js", - "_TaskMenu.8ddcdf6c.js" + "_ProjectLog.ac7d2c0b.js", + "_UserInput.2bc16b15.js", + "_DialogWrapper.0c8b0be3.js", + "_TaskMenu.0eaf56d7.js" ] }, - "_ImgUpload.466e5bce.js": { - "file": "js/build/ImgUpload.466e5bce.js", + "_ImgUpload.e60c7ecf.js": { + "file": "js/build/ImgUpload.e60c7ecf.js", "imports": [ "resources/assets/js/app.js" ] }, - "_ProjectLog.53e7fe6c.js": { - "file": "js/build/ProjectLog.53e7fe6c.js", + "_ProjectLog.ac7d2c0b.js": { + "file": "js/build/ProjectLog.ac7d2c0b.js", "imports": [ "resources/assets/js/app.js" ] }, - "_TaskMenu.8ddcdf6c.js": { - "file": "js/build/TaskMenu.8ddcdf6c.js", + "_TaskMenu.0eaf56d7.js": { + "file": "js/build/TaskMenu.0eaf56d7.js", "imports": [ "resources/assets/js/app.js" ] }, "resources/assets/js/pages/manage/dashboard.vue": { - "file": "js/build/dashboard.0fe751dc.js", + "file": "js/build/dashboard.4a838ed2.js", "src": "resources/assets/js/pages/manage/dashboard.vue", "isDynamicEntry": true, "imports": [ "resources/assets/js/app.js", - "_TaskMenu.8ddcdf6c.js" + "_TaskMenu.0eaf56d7.js" ] }, "resources/assets/js/pages/manage/calendar.vue": { - "file": "js/build/calendar.3dec34b5.js", + "file": "js/build/calendar.8bdd845c.js", "src": "resources/assets/js/pages/manage/calendar.vue", "isDynamicEntry": true, "imports": [ "resources/assets/js/app.js", - "_TaskMenu.8ddcdf6c.js" + "_TaskMenu.0eaf56d7.js" ], "css": [ "js/build/calendar.323d515a.css" ] }, "resources/assets/js/pages/manage/messenger.vue": { - "file": "js/build/messenger.16a771fa.js", + "file": "js/build/messenger.778c884d.js", "src": "resources/assets/js/pages/manage/messenger.vue", "isDynamicEntry": true, "imports": [ "resources/assets/js/app.js", - "_DialogWrapper.0674ddc3.js", - "_DialogSelect.9924132a.js", - "_UserInput.1d67c0fc.js", - "_index.b6ff1b3f.js" + "_DialogWrapper.0c8b0be3.js", + "_DialogSelect.5d8dded5.js", + "_UserInput.2bc16b15.js", + "_index.f3f56c75.js", + "_ImgUpload.e60c7ecf.js" ] }, "resources/assets/js/pages/manage/setting/index.vue": { - "file": "js/build/index.a60d7544.js", + "file": "js/build/index.86e79d3b.js", "src": "resources/assets/js/pages/manage/setting/index.vue", "isDynamicEntry": true, "imports": [ @@ -295,16 +297,16 @@ ] }, "resources/assets/js/pages/manage/setting/personal.vue": { - "file": "js/build/personal.d8be3746.js", + "file": "js/build/personal.59098901.js", "src": "resources/assets/js/pages/manage/setting/personal.vue", "isDynamicEntry": true, "imports": [ - "_ImgUpload.466e5bce.js", + "_ImgUpload.e60c7ecf.js", "resources/assets/js/app.js" ] }, "resources/assets/js/pages/manage/setting/checkin.vue": { - "file": "js/build/checkin.53f513f9.js", + "file": "js/build/checkin.0d786328.js", "src": "resources/assets/js/pages/manage/setting/checkin.vue", "isDynamicEntry": true, "imports": [ @@ -315,7 +317,7 @@ ] }, "resources/assets/js/pages/manage/setting/language.vue": { - "file": "js/build/language.af8cf380.js", + "file": "js/build/language.34c761e5.js", "src": "resources/assets/js/pages/manage/setting/language.vue", "isDynamicEntry": true, "imports": [ @@ -323,7 +325,7 @@ ] }, "resources/assets/js/pages/manage/setting/theme.vue": { - "file": "js/build/theme.d2fcebc3.js", + "file": "js/build/theme.b257d9ca.js", "src": "resources/assets/js/pages/manage/setting/theme.vue", "isDynamicEntry": true, "imports": [ @@ -331,7 +333,7 @@ ] }, "resources/assets/js/pages/manage/setting/keyboard.vue": { - "file": "js/build/keyboard.ea30cc70.js", + "file": "js/build/keyboard.73faa1b4.js", "src": "resources/assets/js/pages/manage/setting/keyboard.vue", "isDynamicEntry": true, "imports": [ @@ -342,7 +344,7 @@ ] }, "resources/assets/js/pages/manage/setting/password.vue": { - "file": "js/build/password.d71ad0a5.js", + "file": "js/build/password.2a18a0cb.js", "src": "resources/assets/js/pages/manage/setting/password.vue", "isDynamicEntry": true, "imports": [ @@ -350,7 +352,7 @@ ] }, "resources/assets/js/pages/manage/setting/email.vue": { - "file": "js/build/email.8395af92.js", + "file": "js/build/email.af678eb7.js", "src": "resources/assets/js/pages/manage/setting/email.vue", "isDynamicEntry": true, "imports": [ @@ -358,18 +360,18 @@ ] }, "resources/assets/js/pages/manage/setting/system.vue": { - "file": "js/build/system.8bd8c3e1.js", + "file": "js/build/system.dc8f36e7.js", "src": "resources/assets/js/pages/manage/setting/system.vue", "isDynamicEntry": true, "imports": [ "resources/assets/js/app.js", - "_index.b6ff1b3f.js", - "_CheckinExport.893ae33d.js", - "_UserInput.1d67c0fc.js" + "_index.f3f56c75.js", + "_CheckinExport.8a7d62a4.js", + "_UserInput.2bc16b15.js" ] }, "resources/assets/js/pages/manage/setting/delete.vue": { - "file": "js/build/delete.2a213a29.js", + "file": "js/build/delete.89a7cb0f.js", "src": "resources/assets/js/pages/manage/setting/delete.vue", "isDynamicEntry": true, "imports": [ @@ -377,7 +379,7 @@ ] }, "resources/assets/js/pages/manage/projectInvite.vue": { - "file": "js/build/projectInvite.b379c531.js", + "file": "js/build/projectInvite.ef2b6575.js", "src": "resources/assets/js/pages/manage/projectInvite.vue", "isDynamicEntry": true, "imports": [ @@ -388,28 +390,29 @@ ] }, "resources/assets/js/pages/manage/project.vue": { - "file": "js/build/project.e97940be.js", + "file": "js/build/project.1ededf9a.js", "src": "resources/assets/js/pages/manage/project.vue", "isDynamicEntry": true, "imports": [ "resources/assets/js/app.js", - "_ProjectLog.53e7fe6c.js", - "_UserInput.1d67c0fc.js", - "_TaskMenu.8ddcdf6c.js", - "_index.b6ff1b3f.js", - "_DialogWrapper.0674ddc3.js", - "_DialogSelect.9924132a.js" + "_ProjectLog.ac7d2c0b.js", + "_UserInput.2bc16b15.js", + "_TaskMenu.0eaf56d7.js", + "_index.f3f56c75.js", + "_DialogWrapper.0c8b0be3.js", + "_DialogSelect.5d8dded5.js", + "_ImgUpload.e60c7ecf.js" ] }, "resources/assets/js/pages/manage/file.vue": { - "file": "js/build/file.8172d75e.js", + "file": "js/build/file.181f336a.js", "src": "resources/assets/js/pages/manage/file.vue", "isDynamicEntry": true, "imports": [ "resources/assets/js/app.js", - "_UserInput.1d67c0fc.js", - "_index.b6ff1b3f.js", - "_DialogSelect.9924132a.js" + "_UserInput.2bc16b15.js", + "_index.f3f56c75.js", + "_DialogSelect.5d8dded5.js" ], "dynamicImports": [ "resources/assets/js/pages/manage/components/FilePreview.vue", @@ -417,12 +420,12 @@ ] }, "resources/assets/js/pages/single/fileMsg.vue": { - "file": "js/build/fileMsg.b74dc083.js", + "file": "js/build/fileMsg.1ae48885.js", "src": "resources/assets/js/pages/single/fileMsg.vue", "isDynamicEntry": true, "imports": [ "resources/assets/js/app.js", - "_IFrame.a3e09c0b.js" + "_IFrame.5edcf1c5.js" ], "dynamicImports": [ "resources/assets/js/components/MDEditor/preview.js", @@ -436,19 +439,19 @@ "js/build/fileMsg.1a0b76dd.css" ] }, - "_IFrame.a3e09c0b.js": { - "file": "js/build/IFrame.a3e09c0b.js", + "_IFrame.5edcf1c5.js": { + "file": "js/build/IFrame.5edcf1c5.js", "imports": [ "resources/assets/js/app.js" ] }, "resources/assets/js/pages/single/fileTask.vue": { - "file": "js/build/fileTask.abf72a70.js", + "file": "js/build/fileTask.14c3cf6b.js", "src": "resources/assets/js/pages/single/fileTask.vue", "isDynamicEntry": true, "imports": [ "resources/assets/js/app.js", - "_IFrame.a3e09c0b.js" + "_IFrame.5edcf1c5.js" ], "dynamicImports": [ "resources/assets/js/components/MDEditor/preview.js", @@ -463,26 +466,26 @@ ] }, "resources/assets/js/pages/single/file.vue": { - "file": "js/build/file.2fac1b66.js", + "file": "js/build/file.880d0f68.js", "src": "resources/assets/js/pages/single/file.vue", "isDynamicEntry": true, "imports": [ "resources/assets/js/pages/manage/components/FileContent.vue", "resources/assets/js/pages/manage/components/FilePreview.vue", "resources/assets/js/app.js", - "_IFrame.a3e09c0b.js" + "_IFrame.5edcf1c5.js" ], "css": [ "js/build/file.560ab02c.css" ] }, "resources/assets/js/pages/manage/components/FileContent.vue": { - "file": "js/build/FileContent.50f8fd54.js", + "file": "js/build/FileContent.209e43d5.js", "src": "resources/assets/js/pages/manage/components/FileContent.vue", "isDynamicEntry": true, "imports": [ "resources/assets/js/app.js", - "_IFrame.a3e09c0b.js" + "_IFrame.5edcf1c5.js" ], "dynamicImports": [ "resources/assets/js/components/MDEditor/index.vue", @@ -497,12 +500,12 @@ ] }, "resources/assets/js/pages/manage/components/FilePreview.vue": { - "file": "js/build/FilePreview.8438d32b.js", + "file": "js/build/FilePreview.07a4bed5.js", "src": "resources/assets/js/pages/manage/components/FilePreview.vue", "isDynamicEntry": true, "imports": [ "resources/assets/js/app.js", - "_IFrame.a3e09c0b.js" + "_IFrame.5edcf1c5.js" ], "dynamicImports": [ "resources/assets/js/components/MDEditor/preview.js", @@ -514,27 +517,27 @@ ] }, "resources/assets/js/pages/single/task.vue": { - "file": "js/build/task.2524631c.js", + "file": "js/build/task.796f0242.js", "src": "resources/assets/js/pages/single/task.vue", "isDynamicEntry": true, "imports": [ - "_TaskDetail.0ed8c7bb.js", + "_TaskDetail.e0049723.js", "resources/assets/js/app.js", "resources/assets/js/components/TEditor.vue", - "_ImgUpload.466e5bce.js", - "_ProjectLog.53e7fe6c.js", - "_UserInput.1d67c0fc.js", - "_DialogWrapper.0674ddc3.js", - "_DialogSelect.9924132a.js", - "_index.b6ff1b3f.js", - "_TaskMenu.8ddcdf6c.js" + "_ImgUpload.e60c7ecf.js", + "_ProjectLog.ac7d2c0b.js", + "_UserInput.2bc16b15.js", + "_DialogWrapper.0c8b0be3.js", + "_DialogSelect.5d8dded5.js", + "_index.f3f56c75.js", + "_TaskMenu.0eaf56d7.js" ], "css": [ "js/build/task.0d7ca2d3.css" ] }, "resources/assets/js/pages/single/validEmail.vue": { - "file": "js/build/validEmail.fb7e7cb9.js", + "file": "js/build/validEmail.dfd455f4.js", "src": "resources/assets/js/pages/single/validEmail.vue", "isDynamicEntry": true, "imports": [ @@ -545,24 +548,24 @@ ] }, "resources/assets/js/pages/single/reportEdit.vue": { - "file": "js/build/reportEdit.723b9ca6.js", + "file": "js/build/reportEdit.f02ae320.js", "src": "resources/assets/js/pages/single/reportEdit.vue", "isDynamicEntry": true, "imports": [ - "_ReportEdit.1b195875.js", + "_ReportEdit.4981db49.js", "resources/assets/js/app.js", - "_UserInput.1d67c0fc.js" + "_UserInput.2bc16b15.js" ], "css": [ "js/build/reportEdit.5c397123.css" ] }, "resources/assets/js/pages/single/reportDetail.vue": { - "file": "js/build/reportDetail.88da4fa9.js", + "file": "js/build/reportDetail.50768d0f.js", "src": "resources/assets/js/pages/single/reportDetail.vue", "isDynamicEntry": true, "imports": [ - "_ReportDetail.7265b249.js", + "_ReportDetail.732d6d88.js", "resources/assets/js/app.js" ], "css": [ @@ -570,7 +573,7 @@ ] }, "resources/assets/js/pages/token.vue": { - "file": "js/build/token.098421cd.js", + "file": "js/build/token.29a88a8a.js", "src": "resources/assets/js/pages/token.vue", "isDynamicEntry": true, "imports": [ @@ -581,7 +584,7 @@ ] }, "resources/assets/js/pages/login.vue": { - "file": "js/build/login.f89f580b.js", + "file": "js/build/login.03c32b80.js", "src": "resources/assets/js/pages/login.vue", "isDynamicEntry": true, "imports": [ @@ -589,7 +592,7 @@ ] }, "resources/assets/js/pages/404.vue": { - "file": "js/build/404.062a1c9e.js", + "file": "js/build/404.332392c6.js", "src": "resources/assets/js/pages/404.vue", "isDynamicEntry": true, "imports": [ @@ -600,7 +603,7 @@ ] }, "resources/assets/js/components/PreviewImage/components/view.vue": { - "file": "js/build/view.e8df30fb.js", + "file": "js/build/view.e87ac5ac.js", "src": "resources/assets/js/components/PreviewImage/components/view.vue", "isDynamicEntry": true, "imports": [ @@ -611,7 +614,7 @@ ] }, "resources/assets/js/components/PreviewImage/components/swipe.vue": { - "file": "js/build/swipe.95eaa6f0.js", + "file": "js/build/swipe.3ea9c9af.js", "src": "resources/assets/js/components/PreviewImage/components/swipe.vue", "isDynamicEntry": true, "imports": [ @@ -625,7 +628,7 @@ ] }, "resources/assets/js/components/MDEditor/preview.js": { - "file": "js/build/preview.a850e707.js", + "file": "js/build/preview.ae4f93f9.js", "src": "resources/assets/js/components/MDEditor/preview.js", "isDynamicEntry": true, "imports": [ @@ -633,7 +636,7 @@ ] }, "resources/assets/js/components/AceEditor.vue": { - "file": "js/build/AceEditor.b217f4b4.js", + "file": "js/build/AceEditor.1e64324c.js", "src": "resources/assets/js/components/AceEditor.vue", "isDynamicEntry": true, "imports": [ @@ -641,35 +644,35 @@ ] }, "resources/assets/js/components/OnlyOffice.vue": { - "file": "js/build/OnlyOffice.2eabb102.js", + "file": "js/build/OnlyOffice.fc35776c.js", "src": "resources/assets/js/components/OnlyOffice.vue", "isDynamicEntry": true, "imports": [ "resources/assets/js/app.js", - "_IFrame.a3e09c0b.js" + "_IFrame.5edcf1c5.js" ], "css": [ "js/build/OnlyOffice.d36f3069.css" ] }, "resources/assets/js/components/Drawio.vue": { - "file": "js/build/Drawio.eaf9e104.js", + "file": "js/build/Drawio.f86613c4.js", "src": "resources/assets/js/components/Drawio.vue", "isDynamicEntry": true, "imports": [ "resources/assets/js/app.js", - "_IFrame.a3e09c0b.js" + "_IFrame.5edcf1c5.js" ], "css": [ "js/build/Drawio.fc5c6326.css" ] }, "resources/assets/js/components/Minder.vue": { - "file": "js/build/Minder.f2d75c7c.js", + "file": "js/build/Minder.e582a65a.js", "src": "resources/assets/js/components/Minder.vue", "isDynamicEntry": true, "imports": [ - "_IFrame.a3e09c0b.js", + "_IFrame.5edcf1c5.js", "resources/assets/js/app.js" ], "css": [ @@ -677,12 +680,12 @@ ] }, "resources/assets/js/components/MDEditor/index.vue": { - "file": "js/build/index.26863913.js", + "file": "js/build/index.0bf9683e.js", "src": "resources/assets/js/components/MDEditor/index.vue", "isDynamicEntry": true, "imports": [ "resources/assets/js/app.js", - "_ImgUpload.466e5bce.js" + "_ImgUpload.e60c7ecf.js" ], "css": [ "js/build/index.a55dd794.css"