diff --git a/CHANGELOG.md b/CHANGELOG.md index 45073800b..d016db2e3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,21 @@ All notable changes to this project will be documented in this file. +## [0.26.6] + +### Bug Fixes + +- 移动端无法长按录音的问题 +- 终端用户数提示错误 + +### Performance + +- Windows 10 以下不支持加密 +- 优化图形验证码方式 +- 兼容iPad键盘 +- 优化移动端兼容 +- 优化iPad Pro页面布局 + ## [0.25.95] ### Performance diff --git a/language/original-web.txt b/language/original-web.txt index 2a1c80690..43e423f5f 100644 --- a/language/original-web.txt +++ b/language/original-web.txt @@ -1135,3 +1135,4 @@ Markdown 格式发送 记录不存在 上传本地图片 浏览已上传图片 +加载失败 diff --git a/language/translate.json b/language/translate.json index 2fc0c1a1a..0d8ae4111 100644 --- a/language/translate.json +++ b/language/translate.json @@ -15728,5 +15728,16 @@ "de": "Die datei (*) ist nicht korrekt. Bitte hochladen sie bilder im (*) format", "fr": "Le format du fichier (*) est incorrect. Veuillez télécharger une image au format (*).", "id": "Berkas (*) tidak memiliki format yang benar, silakan unggah (*) format gambar." + }, + { + "key": "加载失败", + "zh": "", + "zh-CHT": "加載失敗", + "en": "Load failure", + "ko": "불러오는 데 실패했습니다", + "ja": "ロード失敗です", + "de": "Geladen und geschlagen.", + "fr": "Échec au chargement", + "id": "Gagal memuat" } ] \ No newline at end of file diff --git a/package.json b/package.json index d59dba901..0a4b0277e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "DooTask", - "version": "0.25.95", + "version": "0.26.6", "description": "DooTask is task management system.", "scripts": { "start": "./cmd dev", diff --git a/public/js/build/404.3b8d207a.js b/public/js/build/404.9eccf0ae.js similarity index 87% rename from public/js/build/404.3b8d207a.js rename to public/js/build/404.9eccf0ae.js index 16bb5f0e3..8f16c7e8e 100644 --- a/public/js/build/404.3b8d207a.js +++ b/public/js/build/404.9eccf0ae.js @@ -1 +1 @@ -import{n}from"./app.96a4a566.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.3c1b5c04.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.48c1c979.js b/public/js/build/AceEditor.25f1dbec.js similarity index 98% rename from public/js/build/AceEditor.48c1c979.js rename to public/js/build/AceEditor.25f1dbec.js index 3dccc1fda..6c9164134 100644 --- a/public/js/build/AceEditor.48c1c979.js +++ b/public/js/build/AceEditor.25f1dbec.js @@ -1 +1 @@ -import{m as h,n as l}from"./app.96a4a566.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|webp|png|bmp|gif|tif|emf"]}}),mounted(){$A.loadScriptS(["js/ace/ace.js","js/ace/mode-json.js"]).then(e=>{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|webp|png|bmp|gif|tif|emf"]}}),mounted(){$A.loadScriptS(["js/ace/ace.js","js/ace/mode-json.js"]).then(e=>{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",class:{"min-box":t.minBox}},[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",style:t.userStyle},[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,minBox:!1,minWidth: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)},windowSmall:{handler(t){this.minBox=t},immediate:!0},minBox:{handler(){this.$nextTick(t=>{this.$el&&this.$el.clientWidth>0&&(this.minWidth=this.$el.clientWidth)})},immediate:!0}},computed:{departmentParentDisabled(){return!!(this.departmentData.id>0&&this.departmentList.find(({parent_id:t})=>t==this.departmentData.id))},userStyle({minWidth:t}){const s={};return t>0&&(s.minWidth=t-40+"px"),s}},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.windowSmall&&(this.minBox=!0),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,"show-disable":"",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 $={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 v=d($,_,f,!1,k,null,null,null);function k(t){for(let s in o)this[s]=o[s]}var b=function(){return v.exports}();export{b as C,D as T}; diff --git a/public/js/build/CheckinExport.a923536d.js b/public/js/build/CheckinExport.a923536d.js new file mode 100644 index 000000000..402a940a4 --- /dev/null +++ b/public/js/build/CheckinExport.a923536d.js @@ -0,0 +1 @@ +import{U as l}from"./UserInput.2373e386.js";import{n as d}from"./app.3c1b5c04.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-zoom",on:{click:function(a){t.minBox=!t.minBox}}},[t.minBox?e("i",{staticClass:"taskfont"},[t._v("\uE7D4")]):e("i",{staticClass:"taskfont"},[t._v("\uE7D3")])]),e("div",{staticClass:"title-icon"},[t.loadIng>0?e("Loading"):t._e()],1)]),e("div",{staticClass:"management-box",class:{"min-box":t.minBox}},[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",style:t.userStyle},[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.windowPortrait,"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,minBox:!1,minWidth: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)},windowPortrait:{handler(t){this.minBox=t},immediate:!0},minBox:{handler(){this.$nextTick(t=>{this.$el&&this.$el.clientWidth>0&&(this.minWidth=this.$el.clientWidth)})},immediate:!0}},computed:{departmentParentDisabled(){return!!(this.departmentData.id>0&&this.departmentList.find(({parent_id:t})=>t==this.departmentData.id))},userStyle({minWidth:t}){const s={};return t>0&&(s.minWidth=t-40+"px"),s}},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.windowPortrait&&(this.minBox=!0),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,"show-disable":"",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 $={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 v=d($,_,f,!1,k,null,null,null);function k(t){for(let s in o)this[s]=o[s]}var b=function(){return v.exports}();export{b as C,D as T}; diff --git a/public/js/build/DialogSelect.57ed2430.js b/public/js/build/DialogSelect.7152bc4c.js similarity index 96% rename from public/js/build/DialogSelect.57ed2430.js rename to public/js/build/DialogSelect.7152bc4c.js index 7f02ede30..a70d96d03 100644 --- a/public/js/build/DialogSelect.57ed2430.js +++ b/public/js/build/DialogSelect.7152bc4c.js @@ -1 +1 @@ -import{U as i}from"./UserInput.3c8516f0.js";import{m as c,n as u}from"./app.96a4a566.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.2373e386.js";import{m as c,n as u}from"./app.3c1b5c04.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.c5ec77d2.js b/public/js/build/DialogWrapper.a308ebb0.js similarity index 96% rename from public/js/build/DialogWrapper.c5ec77d2.js rename to public/js/build/DialogWrapper.a308ebb0.js index ea1f179e4..f954e4cb3 100644 --- a/public/js/build/DialogWrapper.c5ec77d2.js +++ b/public/js/build/DialogWrapper.a308ebb0.js @@ -1,4 +1,4 @@ -import{n as Wt,g as Gu,e as Gi,m as Vn,c as Rl,d as qi,f as qu,h as Yu,r as zu,V as $u,i as Hu}from"./app.96a4a566.js";import{l as Yi,D as Vu}from"./DialogSelect.57ed2430.js";import{U as Nl}from"./UserInput.3c8516f0.js";import{D as Wu}from"./index.9e7a2eb7.js";import{I as Ku}from"./ImgUpload.6f2636ce.js";var Qu=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"common-circle",style:e.style,attrs:{"data-id":e.percent}},[n("svg",{attrs:{viewBox:"0 0 28 28"}},[n("g",{attrs:{fill:"none","fill-rule":"evenodd"}},[n("path",{staticClass:"common-circle-path",attrs:{d:"M-500-100h997V48h-997z"}}),n("g",{attrs:{"fill-rule":"nonzero"}},[n("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"}}),n("path",{staticClass:"common-circle-g-path-core",attrs:{d:e.arc(e.args)}})])])])])},Xu=[];const ju={name:"WCircle",props:{percent:{type:Number,default:0},size:{type:Number,default:120}},computed:{style(){let{size:e}=this;return this.isNumeric(e)&&(e+="px"),{width:e,height:e}},args(){const{percent:e}=this;let t=Math.min(360,360/100*e);return t==360?t=0:t==0&&(t=360),{x:14,y:14,r:14,start:360,end:t}}},methods:{isNumeric(e){return e!==""&&!isNaN(parseFloat(e))&&isFinite(e)},point(e,t,n,r){return[(e+Math.sin(r)*n).toFixed(2),(t-Math.cos(r)*n).toFixed(2)]},full(e,t,n,r){return r<=0?`M ${e-n} ${t} A ${n} ${n} 0 1 1 ${e+n} ${t} A ${n} ${n} 1 1 1 ${e-n} ${t} Z`:`M ${e-n} ${t} A ${n} ${n} 0 1 1 ${e+n} ${t} A ${n} ${n} 1 1 1 ${e-n} ${t} M ${e-r} ${t} A ${r} ${r} 0 1 1 ${e+r} ${t} A ${r} ${r} 1 1 1 ${e-r} ${t} Z`},part(e,t,n,r,i,l){const[u,c]=[i/360*2*Math.PI,l/360*2*Math.PI],d=[this.point(e,t,r,u),this.point(e,t,n,u),this.point(e,t,n,c),this.point(e,t,r,c)],f=c-u>Math.PI?"1":"0";return`M ${d[0][0]} ${d[0][1]} L ${d[1][0]} ${d[1][1]} A ${n} ${n} 0 ${f} 1 ${d[2][0]} ${d[2][1]} L ${d[3][0]} ${d[3][1]} A ${r} ${r} 0 ${f} 0 ${d[0][0]} ${d[0][1]} Z`},arc(e){const{x:t=0,y:n=0}=e;let{R:r=0,r:i=0,start:l,end:u}=e;return[r,i]=[Math.max(r,i),Math.min(r,i)],r<=0?"":l!==+l||u!==+u?this.full(t,n,r,i):Math.abs(l-u)<1e-6?"":Math.abs(l-u)%360<1e-6?this.full(t,n,r,i):([l,u]=[l%360,u%360],l>u&&(u+=360),this.part(t,n,r,i,l,u))}}},bs={};var Zu=Wt(ju,Qu,Xu,!1,Ju,null,null,null);function Ju(e){for(let t in bs)this[t]=bs[t]}var ed=function(){return Zu.exports}();var Ze={};const td="\xC1",nd="\xE1",rd="\u0102",ad="\u0103",id="\u223E",od="\u223F",sd="\u223E\u0333",ld="\xC2",cd="\xE2",ud="\xB4",dd="\u0410",_d="\u0430",pd="\xC6",md="\xE6",fd="\u2061",gd="\u{1D504}",hd="\u{1D51E}",Ed="\xC0",Sd="\xE0",bd="\u2135",vd="\u2135",Td="\u0391",yd="\u03B1",Cd="\u0100",Rd="\u0101",Nd="\u2A3F",Od="&",Ad="&",Id="\u2A55",Dd="\u2A53",xd="\u2227",wd="\u2A5C",Md="\u2A58",Ld="\u2A5A",kd="\u2220",Pd="\u29A4",Bd="\u2220",Fd="\u29A8",Ud="\u29A9",Gd="\u29AA",qd="\u29AB",Yd="\u29AC",zd="\u29AD",$d="\u29AE",Hd="\u29AF",Vd="\u2221",Wd="\u221F",Kd="\u22BE",Qd="\u299D",Xd="\u2222",jd="\xC5",Zd="\u237C",Jd="\u0104",e_="\u0105",t_="\u{1D538}",n_="\u{1D552}",r_="\u2A6F",a_="\u2248",i_="\u2A70",o_="\u224A",s_="\u224B",l_="'",c_="\u2061",u_="\u2248",d_="\u224A",__="\xC5",p_="\xE5",m_="\u{1D49C}",f_="\u{1D4B6}",g_="\u2254",h_="*",E_="\u2248",S_="\u224D",b_="\xC3",v_="\xE3",T_="\xC4",y_="\xE4",C_="\u2233",R_="\u2A11",N_="\u224C",O_="\u03F6",A_="\u2035",I_="\u223D",D_="\u22CD",x_="\u2216",w_="\u2AE7",M_="\u22BD",L_="\u2305",k_="\u2306",P_="\u2305",B_="\u23B5",F_="\u23B6",U_="\u224C",G_="\u0411",q_="\u0431",Y_="\u201E",z_="\u2235",$_="\u2235",H_="\u2235",V_="\u29B0",W_="\u03F6",K_="\u212C",Q_="\u212C",X_="\u0392",j_="\u03B2",Z_="\u2136",J_="\u226C",ep="\u{1D505}",tp="\u{1D51F}",np="\u22C2",rp="\u25EF",ap="\u22C3",ip="\u2A00",op="\u2A01",sp="\u2A02",lp="\u2A06",cp="\u2605",up="\u25BD",dp="\u25B3",_p="\u2A04",pp="\u22C1",mp="\u22C0",fp="\u290D",gp="\u29EB",hp="\u25AA",Ep="\u25B4",Sp="\u25BE",bp="\u25C2",vp="\u25B8",Tp="\u2423",yp="\u2592",Cp="\u2591",Rp="\u2593",Np="\u2588",Op="=\u20E5",Ap="\u2261\u20E5",Ip="\u2AED",Dp="\u2310",xp="\u{1D539}",wp="\u{1D553}",Mp="\u22A5",Lp="\u22A5",kp="\u22C8",Pp="\u29C9",Bp="\u2510",Fp="\u2555",Up="\u2556",Gp="\u2557",qp="\u250C",Yp="\u2552",zp="\u2553",$p="\u2554",Hp="\u2500",Vp="\u2550",Wp="\u252C",Kp="\u2564",Qp="\u2565",Xp="\u2566",jp="\u2534",Zp="\u2567",Jp="\u2568",em="\u2569",tm="\u229F",nm="\u229E",rm="\u22A0",am="\u2518",im="\u255B",om="\u255C",sm="\u255D",lm="\u2514",cm="\u2558",um="\u2559",dm="\u255A",_m="\u2502",pm="\u2551",mm="\u253C",fm="\u256A",gm="\u256B",hm="\u256C",Em="\u2524",Sm="\u2561",bm="\u2562",vm="\u2563",Tm="\u251C",ym="\u255E",Cm="\u255F",Rm="\u2560",Nm="\u2035",Om="\u02D8",Am="\u02D8",Im="\xA6",Dm="\u{1D4B7}",xm="\u212C",wm="\u204F",Mm="\u223D",Lm="\u22CD",km="\u29C5",Pm="\\",Bm="\u27C8",Fm="\u2022",Um="\u2022",Gm="\u224E",qm="\u2AAE",Ym="\u224F",zm="\u224E",$m="\u224F",Hm="\u0106",Vm="\u0107",Wm="\u2A44",Km="\u2A49",Qm="\u2A4B",Xm="\u2229",jm="\u22D2",Zm="\u2A47",Jm="\u2A40",ef="\u2145",tf="\u2229\uFE00",nf="\u2041",rf="\u02C7",af="\u212D",of="\u2A4D",sf="\u010C",lf="\u010D",cf="\xC7",uf="\xE7",df="\u0108",_f="\u0109",pf="\u2230",mf="\u2A4C",ff="\u2A50",gf="\u010A",hf="\u010B",Ef="\xB8",Sf="\xB8",bf="\u29B2",vf="\xA2",Tf="\xB7",yf="\xB7",Cf="\u{1D520}",Rf="\u212D",Nf="\u0427",Of="\u0447",Af="\u2713",If="\u2713",Df="\u03A7",xf="\u03C7",wf="\u02C6",Mf="\u2257",Lf="\u21BA",kf="\u21BB",Pf="\u229B",Bf="\u229A",Ff="\u229D",Uf="\u2299",Gf="\xAE",qf="\u24C8",Yf="\u2296",zf="\u2295",$f="\u2297",Hf="\u25CB",Vf="\u29C3",Wf="\u2257",Kf="\u2A10",Qf="\u2AEF",Xf="\u29C2",jf="\u2232",Zf="\u201D",Jf="\u2019",e0="\u2663",t0="\u2663",n0=":",r0="\u2237",a0="\u2A74",i0="\u2254",o0="\u2254",s0=",",l0="@",c0="\u2201",u0="\u2218",d0="\u2201",_0="\u2102",p0="\u2245",m0="\u2A6D",f0="\u2261",g0="\u222E",h0="\u222F",E0="\u222E",S0="\u{1D554}",b0="\u2102",v0="\u2210",T0="\u2210",y0="\xA9",C0="\xA9",R0="\u2117",N0="\u2233",O0="\u21B5",A0="\u2717",I0="\u2A2F",D0="\u{1D49E}",x0="\u{1D4B8}",w0="\u2ACF",M0="\u2AD1",L0="\u2AD0",k0="\u2AD2",P0="\u22EF",B0="\u2938",F0="\u2935",U0="\u22DE",G0="\u22DF",q0="\u21B6",Y0="\u293D",z0="\u2A48",$0="\u2A46",H0="\u224D",V0="\u222A",W0="\u22D3",K0="\u2A4A",Q0="\u228D",X0="\u2A45",j0="\u222A\uFE00",Z0="\u21B7",J0="\u293C",eg="\u22DE",tg="\u22DF",ng="\u22CE",rg="\u22CF",ag="\xA4",ig="\u21B6",og="\u21B7",sg="\u22CE",lg="\u22CF",cg="\u2232",ug="\u2231",dg="\u232D",_g="\u2020",pg="\u2021",mg="\u2138",fg="\u2193",gg="\u21A1",hg="\u21D3",Eg="\u2010",Sg="\u2AE4",bg="\u22A3",vg="\u290F",Tg="\u02DD",yg="\u010E",Cg="\u010F",Rg="\u0414",Ng="\u0434",Og="\u2021",Ag="\u21CA",Ig="\u2145",Dg="\u2146",xg="\u2911",wg="\u2A77",Mg="\xB0",Lg="\u2207",kg="\u0394",Pg="\u03B4",Bg="\u29B1",Fg="\u297F",Ug="\u{1D507}",Gg="\u{1D521}",qg="\u2965",Yg="\u21C3",zg="\u21C2",$g="\xB4",Hg="\u02D9",Vg="\u02DD",Wg="`",Kg="\u02DC",Qg="\u22C4",Xg="\u22C4",jg="\u22C4",Zg="\u2666",Jg="\u2666",eh="\xA8",th="\u2146",nh="\u03DD",rh="\u22F2",ah="\xF7",ih="\xF7",oh="\u22C7",sh="\u22C7",lh="\u0402",ch="\u0452",uh="\u231E",dh="\u230D",_h="$",ph="\u{1D53B}",mh="\u{1D555}",fh="\xA8",gh="\u02D9",hh="\u20DC",Eh="\u2250",Sh="\u2251",bh="\u2250",vh="\u2238",Th="\u2214",yh="\u22A1",Ch="\u2306",Rh="\u222F",Nh="\xA8",Oh="\u21D3",Ah="\u21D0",Ih="\u21D4",Dh="\u2AE4",xh="\u27F8",wh="\u27FA",Mh="\u27F9",Lh="\u21D2",kh="\u22A8",Ph="\u21D1",Bh="\u21D5",Fh="\u2225",Uh="\u2913",Gh="\u2193",qh="\u2193",Yh="\u21D3",zh="\u21F5",$h="\u0311",Hh="\u21CA",Vh="\u21C3",Wh="\u21C2",Kh="\u2950",Qh="\u295E",Xh="\u2956",jh="\u21BD",Zh="\u295F",Jh="\u2957",eE="\u21C1",tE="\u21A7",nE="\u22A4",rE="\u2910",aE="\u231F",iE="\u230C",oE="\u{1D49F}",sE="\u{1D4B9}",lE="\u0405",cE="\u0455",uE="\u29F6",dE="\u0110",_E="\u0111",pE="\u22F1",mE="\u25BF",fE="\u25BE",gE="\u21F5",hE="\u296F",EE="\u29A6",SE="\u040F",bE="\u045F",vE="\u27FF",TE="\xC9",yE="\xE9",CE="\u2A6E",RE="\u011A",NE="\u011B",OE="\xCA",AE="\xEA",IE="\u2256",DE="\u2255",xE="\u042D",wE="\u044D",ME="\u2A77",LE="\u0116",kE="\u0117",PE="\u2251",BE="\u2147",FE="\u2252",UE="\u{1D508}",GE="\u{1D522}",qE="\u2A9A",YE="\xC8",zE="\xE8",$E="\u2A96",HE="\u2A98",VE="\u2A99",WE="\u2208",KE="\u23E7",QE="\u2113",XE="\u2A95",jE="\u2A97",ZE="\u0112",JE="\u0113",eS="\u2205",tS="\u2205",nS="\u25FB",rS="\u2205",aS="\u25AB",iS="\u2004",oS="\u2005",sS="\u2003",lS="\u014A",cS="\u014B",uS="\u2002",dS="\u0118",_S="\u0119",pS="\u{1D53C}",mS="\u{1D556}",fS="\u22D5",gS="\u29E3",hS="\u2A71",ES="\u03B5",SS="\u0395",bS="\u03B5",vS="\u03F5",TS="\u2256",yS="\u2255",CS="\u2242",RS="\u2A96",NS="\u2A95",OS="\u2A75",AS="=",IS="\u2242",DS="\u225F",xS="\u21CC",wS="\u2261",MS="\u2A78",LS="\u29E5",kS="\u2971",PS="\u2253",BS="\u212F",FS="\u2130",US="\u2250",GS="\u2A73",qS="\u2242",YS="\u0397",zS="\u03B7",$S="\xD0",HS="\xF0",VS="\xCB",WS="\xEB",KS="\u20AC",QS="!",XS="\u2203",jS="\u2203",ZS="\u2130",JS="\u2147",eb="\u2147",tb="\u2252",nb="\u0424",rb="\u0444",ab="\u2640",ib="\uFB03",ob="\uFB00",sb="\uFB04",lb="\u{1D509}",cb="\u{1D523}",ub="\uFB01",db="\u25FC",_b="\u25AA",pb="fj",mb="\u266D",fb="\uFB02",gb="\u25B1",hb="\u0192",Eb="\u{1D53D}",Sb="\u{1D557}",bb="\u2200",vb="\u2200",Tb="\u22D4",yb="\u2AD9",Cb="\u2131",Rb="\u2A0D",Nb="\xBD",Ob="\u2153",Ab="\xBC",Ib="\u2155",Db="\u2159",xb="\u215B",wb="\u2154",Mb="\u2156",Lb="\xBE",kb="\u2157",Pb="\u215C",Bb="\u2158",Fb="\u215A",Ub="\u215D",Gb="\u215E",qb="\u2044",Yb="\u2322",zb="\u{1D4BB}",$b="\u2131",Hb="\u01F5",Vb="\u0393",Wb="\u03B3",Kb="\u03DC",Qb="\u03DD",Xb="\u2A86",jb="\u011E",Zb="\u011F",Jb="\u0122",ev="\u011C",tv="\u011D",nv="\u0413",rv="\u0433",av="\u0120",iv="\u0121",ov="\u2265",sv="\u2267",lv="\u2A8C",cv="\u22DB",uv="\u2265",dv="\u2267",_v="\u2A7E",pv="\u2AA9",mv="\u2A7E",fv="\u2A80",gv="\u2A82",hv="\u2A84",Ev="\u22DB\uFE00",Sv="\u2A94",bv="\u{1D50A}",vv="\u{1D524}",Tv="\u226B",yv="\u22D9",Cv="\u22D9",Rv="\u2137",Nv="\u0403",Ov="\u0453",Av="\u2AA5",Iv="\u2277",Dv="\u2A92",xv="\u2AA4",wv="\u2A8A",Mv="\u2A8A",Lv="\u2A88",kv="\u2269",Pv="\u2A88",Bv="\u2269",Fv="\u22E7",Uv="\u{1D53E}",Gv="\u{1D558}",qv="`",Yv="\u2265",zv="\u22DB",$v="\u2267",Hv="\u2AA2",Vv="\u2277",Wv="\u2A7E",Kv="\u2273",Qv="\u{1D4A2}",Xv="\u210A",jv="\u2273",Zv="\u2A8E",Jv="\u2A90",eT="\u2AA7",tT="\u2A7A",nT=">",rT=">",aT="\u226B",iT="\u22D7",oT="\u2995",sT="\u2A7C",lT="\u2A86",cT="\u2978",uT="\u22D7",dT="\u22DB",_T="\u2A8C",pT="\u2277",mT="\u2273",fT="\u2269\uFE00",gT="\u2269\uFE00",hT="\u02C7",ET="\u200A",ST="\xBD",bT="\u210B",vT="\u042A",TT="\u044A",yT="\u2948",CT="\u2194",RT="\u21D4",NT="\u21AD",OT="^",AT="\u210F",IT="\u0124",DT="\u0125",xT="\u2665",wT="\u2665",MT="\u2026",LT="\u22B9",kT="\u{1D525}",PT="\u210C",BT="\u210B",FT="\u2925",UT="\u2926",GT="\u21FF",qT="\u223B",YT="\u21A9",zT="\u21AA",$T="\u{1D559}",HT="\u210D",VT="\u2015",WT="\u2500",KT="\u{1D4BD}",QT="\u210B",XT="\u210F",jT="\u0126",ZT="\u0127",JT="\u224E",ey="\u224F",ty="\u2043",ny="\u2010",ry="\xCD",ay="\xED",iy="\u2063",oy="\xCE",sy="\xEE",ly="\u0418",cy="\u0438",uy="\u0130",dy="\u0415",_y="\u0435",py="\xA1",my="\u21D4",fy="\u{1D526}",gy="\u2111",hy="\xCC",Ey="\xEC",Sy="\u2148",by="\u2A0C",vy="\u222D",Ty="\u29DC",yy="\u2129",Cy="\u0132",Ry="\u0133",Ny="\u012A",Oy="\u012B",Ay="\u2111",Iy="\u2148",Dy="\u2110",xy="\u2111",wy="\u0131",My="\u2111",Ly="\u22B7",ky="\u01B5",Py="\u21D2",By="\u2105",Fy="\u221E",Uy="\u29DD",Gy="\u0131",qy="\u22BA",Yy="\u222B",zy="\u222C",$y="\u2124",Hy="\u222B",Vy="\u22BA",Wy="\u22C2",Ky="\u2A17",Qy="\u2A3C",Xy="\u2063",jy="\u2062",Zy="\u0401",Jy="\u0451",e1="\u012E",t1="\u012F",n1="\u{1D540}",r1="\u{1D55A}",a1="\u0399",i1="\u03B9",o1="\u2A3C",s1="\xBF",l1="\u{1D4BE}",c1="\u2110",u1="\u2208",d1="\u22F5",_1="\u22F9",p1="\u22F4",m1="\u22F3",f1="\u2208",g1="\u2062",h1="\u0128",E1="\u0129",S1="\u0406",b1="\u0456",v1="\xCF",T1="\xEF",y1="\u0134",C1="\u0135",R1="\u0419",N1="\u0439",O1="\u{1D50D}",A1="\u{1D527}",I1="\u0237",D1="\u{1D541}",x1="\u{1D55B}",w1="\u{1D4A5}",M1="\u{1D4BF}",L1="\u0408",k1="\u0458",P1="\u0404",B1="\u0454",F1="\u039A",U1="\u03BA",G1="\u03F0",q1="\u0136",Y1="\u0137",z1="\u041A",$1="\u043A",H1="\u{1D50E}",V1="\u{1D528}",W1="\u0138",K1="\u0425",Q1="\u0445",X1="\u040C",j1="\u045C",Z1="\u{1D542}",J1="\u{1D55C}",eC="\u{1D4A6}",tC="\u{1D4C0}",nC="\u21DA",rC="\u0139",aC="\u013A",iC="\u29B4",oC="\u2112",sC="\u039B",lC="\u03BB",cC="\u27E8",uC="\u27EA",dC="\u2991",_C="\u27E8",pC="\u2A85",mC="\u2112",fC="\xAB",gC="\u21E4",hC="\u291F",EC="\u2190",SC="\u219E",bC="\u21D0",vC="\u291D",TC="\u21A9",yC="\u21AB",CC="\u2939",RC="\u2973",NC="\u21A2",OC="\u2919",AC="\u291B",IC="\u2AAB",DC="\u2AAD",xC="\u2AAD\uFE00",wC="\u290C",MC="\u290E",LC="\u2772",kC="{",PC="[",BC="\u298B",FC="\u298F",UC="\u298D",GC="\u013D",qC="\u013E",YC="\u013B",zC="\u013C",$C="\u2308",HC="{",VC="\u041B",WC="\u043B",KC="\u2936",QC="\u201C",XC="\u201E",jC="\u2967",ZC="\u294B",JC="\u21B2",eR="\u2264",tR="\u2266",nR="\u27E8",rR="\u21E4",aR="\u2190",iR="\u2190",oR="\u21D0",sR="\u21C6",lR="\u21A2",cR="\u2308",uR="\u27E6",dR="\u2961",_R="\u2959",pR="\u21C3",mR="\u230A",fR="\u21BD",gR="\u21BC",hR="\u21C7",ER="\u2194",SR="\u2194",bR="\u21D4",vR="\u21C6",TR="\u21CB",yR="\u21AD",CR="\u294E",RR="\u21A4",NR="\u22A3",OR="\u295A",AR="\u22CB",IR="\u29CF",DR="\u22B2",xR="\u22B4",wR="\u2951",MR="\u2960",LR="\u2958",kR="\u21BF",PR="\u2952",BR="\u21BC",FR="\u2A8B",UR="\u22DA",GR="\u2264",qR="\u2266",YR="\u2A7D",zR="\u2AA8",$R="\u2A7D",HR="\u2A7F",VR="\u2A81",WR="\u2A83",KR="\u22DA\uFE00",QR="\u2A93",XR="\u2A85",jR="\u22D6",ZR="\u22DA",JR="\u2A8B",eN="\u22DA",tN="\u2266",nN="\u2276",rN="\u2276",aN="\u2AA1",iN="\u2272",oN="\u2A7D",sN="\u2272",lN="\u297C",cN="\u230A",uN="\u{1D50F}",dN="\u{1D529}",_N="\u2276",pN="\u2A91",mN="\u2962",fN="\u21BD",gN="\u21BC",hN="\u296A",EN="\u2584",SN="\u0409",bN="\u0459",vN="\u21C7",TN="\u226A",yN="\u22D8",CN="\u231E",RN="\u21DA",NN="\u296B",ON="\u25FA",AN="\u013F",IN="\u0140",DN="\u23B0",xN="\u23B0",wN="\u2A89",MN="\u2A89",LN="\u2A87",kN="\u2268",PN="\u2A87",BN="\u2268",FN="\u22E6",UN="\u27EC",GN="\u21FD",qN="\u27E6",YN="\u27F5",zN="\u27F5",$N="\u27F8",HN="\u27F7",VN="\u27F7",WN="\u27FA",KN="\u27FC",QN="\u27F6",XN="\u27F6",jN="\u27F9",ZN="\u21AB",JN="\u21AC",eO="\u2985",tO="\u{1D543}",nO="\u{1D55D}",rO="\u2A2D",aO="\u2A34",iO="\u2217",oO="_",sO="\u2199",lO="\u2198",cO="\u25CA",uO="\u25CA",dO="\u29EB",_O="(",pO="\u2993",mO="\u21C6",fO="\u231F",gO="\u21CB",hO="\u296D",EO="\u200E",SO="\u22BF",bO="\u2039",vO="\u{1D4C1}",TO="\u2112",yO="\u21B0",CO="\u21B0",RO="\u2272",NO="\u2A8D",OO="\u2A8F",AO="[",IO="\u2018",DO="\u201A",xO="\u0141",wO="\u0142",MO="\u2AA6",LO="\u2A79",kO="<",PO="<",BO="\u226A",FO="\u22D6",UO="\u22CB",GO="\u22C9",qO="\u2976",YO="\u2A7B",zO="\u25C3",$O="\u22B4",HO="\u25C2",VO="\u2996",WO="\u294A",KO="\u2966",QO="\u2268\uFE00",XO="\u2268\uFE00",jO="\xAF",ZO="\u2642",JO="\u2720",eA="\u2720",tA="\u21A6",nA="\u21A6",rA="\u21A7",aA="\u21A4",iA="\u21A5",oA="\u25AE",sA="\u2A29",lA="\u041C",cA="\u043C",uA="\u2014",dA="\u223A",_A="\u2221",pA="\u205F",mA="\u2133",fA="\u{1D510}",gA="\u{1D52A}",hA="\u2127",EA="\xB5",SA="*",bA="\u2AF0",vA="\u2223",TA="\xB7",yA="\u229F",CA="\u2212",RA="\u2238",NA="\u2A2A",OA="\u2213",AA="\u2ADB",IA="\u2026",DA="\u2213",xA="\u22A7",wA="\u{1D544}",MA="\u{1D55E}",LA="\u2213",kA="\u{1D4C2}",PA="\u2133",BA="\u223E",FA="\u039C",UA="\u03BC",GA="\u22B8",qA="\u22B8",YA="\u2207",zA="\u0143",HA="\u0144",VA="\u2220\u20D2",WA="\u2249",KA="\u2A70\u0338",QA="\u224B\u0338",XA="\u0149",jA="\u2249",ZA="\u266E",JA="\u2115",eI="\u266E",tI="\xA0",nI="\u224E\u0338",rI="\u224F\u0338",aI="\u2A43",iI="\u0147",oI="\u0148",sI="\u0145",lI="\u0146",cI="\u2247",uI="\u2A6D\u0338",dI="\u2A42",_I="\u041D",pI="\u043D",mI="\u2013",fI="\u2924",gI="\u2197",hI="\u21D7",EI="\u2197",SI="\u2260",bI="\u2250\u0338",vI="\u200B",TI="\u200B",yI="\u200B",CI="\u200B",RI="\u2262",NI="\u2928",OI="\u2242\u0338",AI="\u226B",II="\u226A",DI=` +import{n as Wt,g as Gu,e as Gi,m as Vn,c as Rl,d as qi,f as qu,h as Yu,r as zu,V as $u,i as Hu}from"./app.3c1b5c04.js";import{l as Yi,D as Vu}from"./DialogSelect.7152bc4c.js";import{U as Nl}from"./UserInput.2373e386.js";import{D as Wu}from"./index.121f88d5.js";import{I as Ku}from"./ImgUpload.3e6ccbfd.js";var Qu=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"common-circle",style:e.style,attrs:{"data-id":e.percent}},[n("svg",{attrs:{viewBox:"0 0 28 28"}},[n("g",{attrs:{fill:"none","fill-rule":"evenodd"}},[n("path",{staticClass:"common-circle-path",attrs:{d:"M-500-100h997V48h-997z"}}),n("g",{attrs:{"fill-rule":"nonzero"}},[n("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"}}),n("path",{staticClass:"common-circle-g-path-core",attrs:{d:e.arc(e.args)}})])])])])},Xu=[];const ju={name:"WCircle",props:{percent:{type:Number,default:0},size:{type:Number,default:120}},computed:{style(){let{size:e}=this;return this.isNumeric(e)&&(e+="px"),{width:e,height:e}},args(){const{percent:e}=this;let t=Math.min(360,360/100*e);return t==360?t=0:t==0&&(t=360),{x:14,y:14,r:14,start:360,end:t}}},methods:{isNumeric(e){return e!==""&&!isNaN(parseFloat(e))&&isFinite(e)},point(e,t,n,r){return[(e+Math.sin(r)*n).toFixed(2),(t-Math.cos(r)*n).toFixed(2)]},full(e,t,n,r){return r<=0?`M ${e-n} ${t} A ${n} ${n} 0 1 1 ${e+n} ${t} A ${n} ${n} 1 1 1 ${e-n} ${t} Z`:`M ${e-n} ${t} A ${n} ${n} 0 1 1 ${e+n} ${t} A ${n} ${n} 1 1 1 ${e-n} ${t} M ${e-r} ${t} A ${r} ${r} 0 1 1 ${e+r} ${t} A ${r} ${r} 1 1 1 ${e-r} ${t} Z`},part(e,t,n,r,i,l){const[u,c]=[i/360*2*Math.PI,l/360*2*Math.PI],d=[this.point(e,t,r,u),this.point(e,t,n,u),this.point(e,t,n,c),this.point(e,t,r,c)],f=c-u>Math.PI?"1":"0";return`M ${d[0][0]} ${d[0][1]} L ${d[1][0]} ${d[1][1]} A ${n} ${n} 0 ${f} 1 ${d[2][0]} ${d[2][1]} L ${d[3][0]} ${d[3][1]} A ${r} ${r} 0 ${f} 0 ${d[0][0]} ${d[0][1]} Z`},arc(e){const{x:t=0,y:n=0}=e;let{R:r=0,r:i=0,start:l,end:u}=e;return[r,i]=[Math.max(r,i),Math.min(r,i)],r<=0?"":l!==+l||u!==+u?this.full(t,n,r,i):Math.abs(l-u)<1e-6?"":Math.abs(l-u)%360<1e-6?this.full(t,n,r,i):([l,u]=[l%360,u%360],l>u&&(u+=360),this.part(t,n,r,i,l,u))}}},bs={};var Zu=Wt(ju,Qu,Xu,!1,Ju,null,null,null);function Ju(e){for(let t in bs)this[t]=bs[t]}var ed=function(){return Zu.exports}();var Ze={};const td="\xC1",nd="\xE1",rd="\u0102",ad="\u0103",id="\u223E",od="\u223F",sd="\u223E\u0333",ld="\xC2",cd="\xE2",ud="\xB4",dd="\u0410",_d="\u0430",pd="\xC6",md="\xE6",fd="\u2061",gd="\u{1D504}",hd="\u{1D51E}",Ed="\xC0",Sd="\xE0",bd="\u2135",vd="\u2135",Td="\u0391",yd="\u03B1",Cd="\u0100",Rd="\u0101",Nd="\u2A3F",Od="&",Ad="&",Id="\u2A55",Dd="\u2A53",xd="\u2227",wd="\u2A5C",Md="\u2A58",Ld="\u2A5A",kd="\u2220",Pd="\u29A4",Bd="\u2220",Fd="\u29A8",Ud="\u29A9",Gd="\u29AA",qd="\u29AB",Yd="\u29AC",zd="\u29AD",$d="\u29AE",Hd="\u29AF",Vd="\u2221",Wd="\u221F",Kd="\u22BE",Qd="\u299D",Xd="\u2222",jd="\xC5",Zd="\u237C",Jd="\u0104",e_="\u0105",t_="\u{1D538}",n_="\u{1D552}",r_="\u2A6F",a_="\u2248",i_="\u2A70",o_="\u224A",s_="\u224B",l_="'",c_="\u2061",u_="\u2248",d_="\u224A",__="\xC5",p_="\xE5",m_="\u{1D49C}",f_="\u{1D4B6}",g_="\u2254",h_="*",E_="\u2248",S_="\u224D",b_="\xC3",v_="\xE3",T_="\xC4",y_="\xE4",C_="\u2233",R_="\u2A11",N_="\u224C",O_="\u03F6",A_="\u2035",I_="\u223D",D_="\u22CD",x_="\u2216",w_="\u2AE7",M_="\u22BD",L_="\u2305",k_="\u2306",P_="\u2305",B_="\u23B5",F_="\u23B6",U_="\u224C",G_="\u0411",q_="\u0431",Y_="\u201E",z_="\u2235",$_="\u2235",H_="\u2235",V_="\u29B0",W_="\u03F6",K_="\u212C",Q_="\u212C",X_="\u0392",j_="\u03B2",Z_="\u2136",J_="\u226C",ep="\u{1D505}",tp="\u{1D51F}",np="\u22C2",rp="\u25EF",ap="\u22C3",ip="\u2A00",op="\u2A01",sp="\u2A02",lp="\u2A06",cp="\u2605",up="\u25BD",dp="\u25B3",_p="\u2A04",pp="\u22C1",mp="\u22C0",fp="\u290D",gp="\u29EB",hp="\u25AA",Ep="\u25B4",Sp="\u25BE",bp="\u25C2",vp="\u25B8",Tp="\u2423",yp="\u2592",Cp="\u2591",Rp="\u2593",Np="\u2588",Op="=\u20E5",Ap="\u2261\u20E5",Ip="\u2AED",Dp="\u2310",xp="\u{1D539}",wp="\u{1D553}",Mp="\u22A5",Lp="\u22A5",kp="\u22C8",Pp="\u29C9",Bp="\u2510",Fp="\u2555",Up="\u2556",Gp="\u2557",qp="\u250C",Yp="\u2552",zp="\u2553",$p="\u2554",Hp="\u2500",Vp="\u2550",Wp="\u252C",Kp="\u2564",Qp="\u2565",Xp="\u2566",jp="\u2534",Zp="\u2567",Jp="\u2568",em="\u2569",tm="\u229F",nm="\u229E",rm="\u22A0",am="\u2518",im="\u255B",om="\u255C",sm="\u255D",lm="\u2514",cm="\u2558",um="\u2559",dm="\u255A",_m="\u2502",pm="\u2551",mm="\u253C",fm="\u256A",gm="\u256B",hm="\u256C",Em="\u2524",Sm="\u2561",bm="\u2562",vm="\u2563",Tm="\u251C",ym="\u255E",Cm="\u255F",Rm="\u2560",Nm="\u2035",Om="\u02D8",Am="\u02D8",Im="\xA6",Dm="\u{1D4B7}",xm="\u212C",wm="\u204F",Mm="\u223D",Lm="\u22CD",km="\u29C5",Pm="\\",Bm="\u27C8",Fm="\u2022",Um="\u2022",Gm="\u224E",qm="\u2AAE",Ym="\u224F",zm="\u224E",$m="\u224F",Hm="\u0106",Vm="\u0107",Wm="\u2A44",Km="\u2A49",Qm="\u2A4B",Xm="\u2229",jm="\u22D2",Zm="\u2A47",Jm="\u2A40",ef="\u2145",tf="\u2229\uFE00",nf="\u2041",rf="\u02C7",af="\u212D",of="\u2A4D",sf="\u010C",lf="\u010D",cf="\xC7",uf="\xE7",df="\u0108",_f="\u0109",pf="\u2230",mf="\u2A4C",ff="\u2A50",gf="\u010A",hf="\u010B",Ef="\xB8",Sf="\xB8",bf="\u29B2",vf="\xA2",Tf="\xB7",yf="\xB7",Cf="\u{1D520}",Rf="\u212D",Nf="\u0427",Of="\u0447",Af="\u2713",If="\u2713",Df="\u03A7",xf="\u03C7",wf="\u02C6",Mf="\u2257",Lf="\u21BA",kf="\u21BB",Pf="\u229B",Bf="\u229A",Ff="\u229D",Uf="\u2299",Gf="\xAE",qf="\u24C8",Yf="\u2296",zf="\u2295",$f="\u2297",Hf="\u25CB",Vf="\u29C3",Wf="\u2257",Kf="\u2A10",Qf="\u2AEF",Xf="\u29C2",jf="\u2232",Zf="\u201D",Jf="\u2019",e0="\u2663",t0="\u2663",n0=":",r0="\u2237",a0="\u2A74",i0="\u2254",o0="\u2254",s0=",",l0="@",c0="\u2201",u0="\u2218",d0="\u2201",_0="\u2102",p0="\u2245",m0="\u2A6D",f0="\u2261",g0="\u222E",h0="\u222F",E0="\u222E",S0="\u{1D554}",b0="\u2102",v0="\u2210",T0="\u2210",y0="\xA9",C0="\xA9",R0="\u2117",N0="\u2233",O0="\u21B5",A0="\u2717",I0="\u2A2F",D0="\u{1D49E}",x0="\u{1D4B8}",w0="\u2ACF",M0="\u2AD1",L0="\u2AD0",k0="\u2AD2",P0="\u22EF",B0="\u2938",F0="\u2935",U0="\u22DE",G0="\u22DF",q0="\u21B6",Y0="\u293D",z0="\u2A48",$0="\u2A46",H0="\u224D",V0="\u222A",W0="\u22D3",K0="\u2A4A",Q0="\u228D",X0="\u2A45",j0="\u222A\uFE00",Z0="\u21B7",J0="\u293C",eg="\u22DE",tg="\u22DF",ng="\u22CE",rg="\u22CF",ag="\xA4",ig="\u21B6",og="\u21B7",sg="\u22CE",lg="\u22CF",cg="\u2232",ug="\u2231",dg="\u232D",_g="\u2020",pg="\u2021",mg="\u2138",fg="\u2193",gg="\u21A1",hg="\u21D3",Eg="\u2010",Sg="\u2AE4",bg="\u22A3",vg="\u290F",Tg="\u02DD",yg="\u010E",Cg="\u010F",Rg="\u0414",Ng="\u0434",Og="\u2021",Ag="\u21CA",Ig="\u2145",Dg="\u2146",xg="\u2911",wg="\u2A77",Mg="\xB0",Lg="\u2207",kg="\u0394",Pg="\u03B4",Bg="\u29B1",Fg="\u297F",Ug="\u{1D507}",Gg="\u{1D521}",qg="\u2965",Yg="\u21C3",zg="\u21C2",$g="\xB4",Hg="\u02D9",Vg="\u02DD",Wg="`",Kg="\u02DC",Qg="\u22C4",Xg="\u22C4",jg="\u22C4",Zg="\u2666",Jg="\u2666",eh="\xA8",th="\u2146",nh="\u03DD",rh="\u22F2",ah="\xF7",ih="\xF7",oh="\u22C7",sh="\u22C7",lh="\u0402",ch="\u0452",uh="\u231E",dh="\u230D",_h="$",ph="\u{1D53B}",mh="\u{1D555}",fh="\xA8",gh="\u02D9",hh="\u20DC",Eh="\u2250",Sh="\u2251",bh="\u2250",vh="\u2238",Th="\u2214",yh="\u22A1",Ch="\u2306",Rh="\u222F",Nh="\xA8",Oh="\u21D3",Ah="\u21D0",Ih="\u21D4",Dh="\u2AE4",xh="\u27F8",wh="\u27FA",Mh="\u27F9",Lh="\u21D2",kh="\u22A8",Ph="\u21D1",Bh="\u21D5",Fh="\u2225",Uh="\u2913",Gh="\u2193",qh="\u2193",Yh="\u21D3",zh="\u21F5",$h="\u0311",Hh="\u21CA",Vh="\u21C3",Wh="\u21C2",Kh="\u2950",Qh="\u295E",Xh="\u2956",jh="\u21BD",Zh="\u295F",Jh="\u2957",eE="\u21C1",tE="\u21A7",nE="\u22A4",rE="\u2910",aE="\u231F",iE="\u230C",oE="\u{1D49F}",sE="\u{1D4B9}",lE="\u0405",cE="\u0455",uE="\u29F6",dE="\u0110",_E="\u0111",pE="\u22F1",mE="\u25BF",fE="\u25BE",gE="\u21F5",hE="\u296F",EE="\u29A6",SE="\u040F",bE="\u045F",vE="\u27FF",TE="\xC9",yE="\xE9",CE="\u2A6E",RE="\u011A",NE="\u011B",OE="\xCA",AE="\xEA",IE="\u2256",DE="\u2255",xE="\u042D",wE="\u044D",ME="\u2A77",LE="\u0116",kE="\u0117",PE="\u2251",BE="\u2147",FE="\u2252",UE="\u{1D508}",GE="\u{1D522}",qE="\u2A9A",YE="\xC8",zE="\xE8",$E="\u2A96",HE="\u2A98",VE="\u2A99",WE="\u2208",KE="\u23E7",QE="\u2113",XE="\u2A95",jE="\u2A97",ZE="\u0112",JE="\u0113",eS="\u2205",tS="\u2205",nS="\u25FB",rS="\u2205",aS="\u25AB",iS="\u2004",oS="\u2005",sS="\u2003",lS="\u014A",cS="\u014B",uS="\u2002",dS="\u0118",_S="\u0119",pS="\u{1D53C}",mS="\u{1D556}",fS="\u22D5",gS="\u29E3",hS="\u2A71",ES="\u03B5",SS="\u0395",bS="\u03B5",vS="\u03F5",TS="\u2256",yS="\u2255",CS="\u2242",RS="\u2A96",NS="\u2A95",OS="\u2A75",AS="=",IS="\u2242",DS="\u225F",xS="\u21CC",wS="\u2261",MS="\u2A78",LS="\u29E5",kS="\u2971",PS="\u2253",BS="\u212F",FS="\u2130",US="\u2250",GS="\u2A73",qS="\u2242",YS="\u0397",zS="\u03B7",$S="\xD0",HS="\xF0",VS="\xCB",WS="\xEB",KS="\u20AC",QS="!",XS="\u2203",jS="\u2203",ZS="\u2130",JS="\u2147",eb="\u2147",tb="\u2252",nb="\u0424",rb="\u0444",ab="\u2640",ib="\uFB03",ob="\uFB00",sb="\uFB04",lb="\u{1D509}",cb="\u{1D523}",ub="\uFB01",db="\u25FC",_b="\u25AA",pb="fj",mb="\u266D",fb="\uFB02",gb="\u25B1",hb="\u0192",Eb="\u{1D53D}",Sb="\u{1D557}",bb="\u2200",vb="\u2200",Tb="\u22D4",yb="\u2AD9",Cb="\u2131",Rb="\u2A0D",Nb="\xBD",Ob="\u2153",Ab="\xBC",Ib="\u2155",Db="\u2159",xb="\u215B",wb="\u2154",Mb="\u2156",Lb="\xBE",kb="\u2157",Pb="\u215C",Bb="\u2158",Fb="\u215A",Ub="\u215D",Gb="\u215E",qb="\u2044",Yb="\u2322",zb="\u{1D4BB}",$b="\u2131",Hb="\u01F5",Vb="\u0393",Wb="\u03B3",Kb="\u03DC",Qb="\u03DD",Xb="\u2A86",jb="\u011E",Zb="\u011F",Jb="\u0122",ev="\u011C",tv="\u011D",nv="\u0413",rv="\u0433",av="\u0120",iv="\u0121",ov="\u2265",sv="\u2267",lv="\u2A8C",cv="\u22DB",uv="\u2265",dv="\u2267",_v="\u2A7E",pv="\u2AA9",mv="\u2A7E",fv="\u2A80",gv="\u2A82",hv="\u2A84",Ev="\u22DB\uFE00",Sv="\u2A94",bv="\u{1D50A}",vv="\u{1D524}",Tv="\u226B",yv="\u22D9",Cv="\u22D9",Rv="\u2137",Nv="\u0403",Ov="\u0453",Av="\u2AA5",Iv="\u2277",Dv="\u2A92",xv="\u2AA4",wv="\u2A8A",Mv="\u2A8A",Lv="\u2A88",kv="\u2269",Pv="\u2A88",Bv="\u2269",Fv="\u22E7",Uv="\u{1D53E}",Gv="\u{1D558}",qv="`",Yv="\u2265",zv="\u22DB",$v="\u2267",Hv="\u2AA2",Vv="\u2277",Wv="\u2A7E",Kv="\u2273",Qv="\u{1D4A2}",Xv="\u210A",jv="\u2273",Zv="\u2A8E",Jv="\u2A90",eT="\u2AA7",tT="\u2A7A",nT=">",rT=">",aT="\u226B",iT="\u22D7",oT="\u2995",sT="\u2A7C",lT="\u2A86",cT="\u2978",uT="\u22D7",dT="\u22DB",_T="\u2A8C",pT="\u2277",mT="\u2273",fT="\u2269\uFE00",gT="\u2269\uFE00",hT="\u02C7",ET="\u200A",ST="\xBD",bT="\u210B",vT="\u042A",TT="\u044A",yT="\u2948",CT="\u2194",RT="\u21D4",NT="\u21AD",OT="^",AT="\u210F",IT="\u0124",DT="\u0125",xT="\u2665",wT="\u2665",MT="\u2026",LT="\u22B9",kT="\u{1D525}",PT="\u210C",BT="\u210B",FT="\u2925",UT="\u2926",GT="\u21FF",qT="\u223B",YT="\u21A9",zT="\u21AA",$T="\u{1D559}",HT="\u210D",VT="\u2015",WT="\u2500",KT="\u{1D4BD}",QT="\u210B",XT="\u210F",jT="\u0126",ZT="\u0127",JT="\u224E",ey="\u224F",ty="\u2043",ny="\u2010",ry="\xCD",ay="\xED",iy="\u2063",oy="\xCE",sy="\xEE",ly="\u0418",cy="\u0438",uy="\u0130",dy="\u0415",_y="\u0435",py="\xA1",my="\u21D4",fy="\u{1D526}",gy="\u2111",hy="\xCC",Ey="\xEC",Sy="\u2148",by="\u2A0C",vy="\u222D",Ty="\u29DC",yy="\u2129",Cy="\u0132",Ry="\u0133",Ny="\u012A",Oy="\u012B",Ay="\u2111",Iy="\u2148",Dy="\u2110",xy="\u2111",wy="\u0131",My="\u2111",Ly="\u22B7",ky="\u01B5",Py="\u21D2",By="\u2105",Fy="\u221E",Uy="\u29DD",Gy="\u0131",qy="\u22BA",Yy="\u222B",zy="\u222C",$y="\u2124",Hy="\u222B",Vy="\u22BA",Wy="\u22C2",Ky="\u2A17",Qy="\u2A3C",Xy="\u2063",jy="\u2062",Zy="\u0401",Jy="\u0451",e1="\u012E",t1="\u012F",n1="\u{1D540}",r1="\u{1D55A}",a1="\u0399",i1="\u03B9",o1="\u2A3C",s1="\xBF",l1="\u{1D4BE}",c1="\u2110",u1="\u2208",d1="\u22F5",_1="\u22F9",p1="\u22F4",m1="\u22F3",f1="\u2208",g1="\u2062",h1="\u0128",E1="\u0129",S1="\u0406",b1="\u0456",v1="\xCF",T1="\xEF",y1="\u0134",C1="\u0135",R1="\u0419",N1="\u0439",O1="\u{1D50D}",A1="\u{1D527}",I1="\u0237",D1="\u{1D541}",x1="\u{1D55B}",w1="\u{1D4A5}",M1="\u{1D4BF}",L1="\u0408",k1="\u0458",P1="\u0404",B1="\u0454",F1="\u039A",U1="\u03BA",G1="\u03F0",q1="\u0136",Y1="\u0137",z1="\u041A",$1="\u043A",H1="\u{1D50E}",V1="\u{1D528}",W1="\u0138",K1="\u0425",Q1="\u0445",X1="\u040C",j1="\u045C",Z1="\u{1D542}",J1="\u{1D55C}",eC="\u{1D4A6}",tC="\u{1D4C0}",nC="\u21DA",rC="\u0139",aC="\u013A",iC="\u29B4",oC="\u2112",sC="\u039B",lC="\u03BB",cC="\u27E8",uC="\u27EA",dC="\u2991",_C="\u27E8",pC="\u2A85",mC="\u2112",fC="\xAB",gC="\u21E4",hC="\u291F",EC="\u2190",SC="\u219E",bC="\u21D0",vC="\u291D",TC="\u21A9",yC="\u21AB",CC="\u2939",RC="\u2973",NC="\u21A2",OC="\u2919",AC="\u291B",IC="\u2AAB",DC="\u2AAD",xC="\u2AAD\uFE00",wC="\u290C",MC="\u290E",LC="\u2772",kC="{",PC="[",BC="\u298B",FC="\u298F",UC="\u298D",GC="\u013D",qC="\u013E",YC="\u013B",zC="\u013C",$C="\u2308",HC="{",VC="\u041B",WC="\u043B",KC="\u2936",QC="\u201C",XC="\u201E",jC="\u2967",ZC="\u294B",JC="\u21B2",eR="\u2264",tR="\u2266",nR="\u27E8",rR="\u21E4",aR="\u2190",iR="\u2190",oR="\u21D0",sR="\u21C6",lR="\u21A2",cR="\u2308",uR="\u27E6",dR="\u2961",_R="\u2959",pR="\u21C3",mR="\u230A",fR="\u21BD",gR="\u21BC",hR="\u21C7",ER="\u2194",SR="\u2194",bR="\u21D4",vR="\u21C6",TR="\u21CB",yR="\u21AD",CR="\u294E",RR="\u21A4",NR="\u22A3",OR="\u295A",AR="\u22CB",IR="\u29CF",DR="\u22B2",xR="\u22B4",wR="\u2951",MR="\u2960",LR="\u2958",kR="\u21BF",PR="\u2952",BR="\u21BC",FR="\u2A8B",UR="\u22DA",GR="\u2264",qR="\u2266",YR="\u2A7D",zR="\u2AA8",$R="\u2A7D",HR="\u2A7F",VR="\u2A81",WR="\u2A83",KR="\u22DA\uFE00",QR="\u2A93",XR="\u2A85",jR="\u22D6",ZR="\u22DA",JR="\u2A8B",eN="\u22DA",tN="\u2266",nN="\u2276",rN="\u2276",aN="\u2AA1",iN="\u2272",oN="\u2A7D",sN="\u2272",lN="\u297C",cN="\u230A",uN="\u{1D50F}",dN="\u{1D529}",_N="\u2276",pN="\u2A91",mN="\u2962",fN="\u21BD",gN="\u21BC",hN="\u296A",EN="\u2584",SN="\u0409",bN="\u0459",vN="\u21C7",TN="\u226A",yN="\u22D8",CN="\u231E",RN="\u21DA",NN="\u296B",ON="\u25FA",AN="\u013F",IN="\u0140",DN="\u23B0",xN="\u23B0",wN="\u2A89",MN="\u2A89",LN="\u2A87",kN="\u2268",PN="\u2A87",BN="\u2268",FN="\u22E6",UN="\u27EC",GN="\u21FD",qN="\u27E6",YN="\u27F5",zN="\u27F5",$N="\u27F8",HN="\u27F7",VN="\u27F7",WN="\u27FA",KN="\u27FC",QN="\u27F6",XN="\u27F6",jN="\u27F9",ZN="\u21AB",JN="\u21AC",eO="\u2985",tO="\u{1D543}",nO="\u{1D55D}",rO="\u2A2D",aO="\u2A34",iO="\u2217",oO="_",sO="\u2199",lO="\u2198",cO="\u25CA",uO="\u25CA",dO="\u29EB",_O="(",pO="\u2993",mO="\u21C6",fO="\u231F",gO="\u21CB",hO="\u296D",EO="\u200E",SO="\u22BF",bO="\u2039",vO="\u{1D4C1}",TO="\u2112",yO="\u21B0",CO="\u21B0",RO="\u2272",NO="\u2A8D",OO="\u2A8F",AO="[",IO="\u2018",DO="\u201A",xO="\u0141",wO="\u0142",MO="\u2AA6",LO="\u2A79",kO="<",PO="<",BO="\u226A",FO="\u22D6",UO="\u22CB",GO="\u22C9",qO="\u2976",YO="\u2A7B",zO="\u25C3",$O="\u22B4",HO="\u25C2",VO="\u2996",WO="\u294A",KO="\u2966",QO="\u2268\uFE00",XO="\u2268\uFE00",jO="\xAF",ZO="\u2642",JO="\u2720",eA="\u2720",tA="\u21A6",nA="\u21A6",rA="\u21A7",aA="\u21A4",iA="\u21A5",oA="\u25AE",sA="\u2A29",lA="\u041C",cA="\u043C",uA="\u2014",dA="\u223A",_A="\u2221",pA="\u205F",mA="\u2133",fA="\u{1D510}",gA="\u{1D52A}",hA="\u2127",EA="\xB5",SA="*",bA="\u2AF0",vA="\u2223",TA="\xB7",yA="\u229F",CA="\u2212",RA="\u2238",NA="\u2A2A",OA="\u2213",AA="\u2ADB",IA="\u2026",DA="\u2213",xA="\u22A7",wA="\u{1D544}",MA="\u{1D55E}",LA="\u2213",kA="\u{1D4C2}",PA="\u2133",BA="\u223E",FA="\u039C",UA="\u03BC",GA="\u22B8",qA="\u22B8",YA="\u2207",zA="\u0143",HA="\u0144",VA="\u2220\u20D2",WA="\u2249",KA="\u2A70\u0338",QA="\u224B\u0338",XA="\u0149",jA="\u2249",ZA="\u266E",JA="\u2115",eI="\u266E",tI="\xA0",nI="\u224E\u0338",rI="\u224F\u0338",aI="\u2A43",iI="\u0147",oI="\u0148",sI="\u0145",lI="\u0146",cI="\u2247",uI="\u2A6D\u0338",dI="\u2A42",_I="\u041D",pI="\u043D",mI="\u2013",fI="\u2924",gI="\u2197",hI="\u21D7",EI="\u2197",SI="\u2260",bI="\u2250\u0338",vI="\u200B",TI="\u200B",yI="\u200B",CI="\u200B",RI="\u2262",NI="\u2928",OI="\u2242\u0338",AI="\u226B",II="\u226A",DI=` `,xI="\u2204",wI="\u2204",MI="\u{1D511}",LI="\u{1D52B}",kI="\u2267\u0338",PI="\u2271",BI="\u2271",FI="\u2267\u0338",UI="\u2A7E\u0338",GI="\u2A7E\u0338",qI="\u22D9\u0338",YI="\u2275",zI="\u226B\u20D2",$I="\u226F",HI="\u226F",VI="\u226B\u0338",WI="\u21AE",KI="\u21CE",QI="\u2AF2",XI="\u220B",jI="\u22FC",ZI="\u22FA",JI="\u220B",eD="\u040A",tD="\u045A",nD="\u219A",rD="\u21CD",aD="\u2025",iD="\u2266\u0338",oD="\u2270",sD="\u219A",lD="\u21CD",cD="\u21AE",uD="\u21CE",dD="\u2270",_D="\u2266\u0338",pD="\u2A7D\u0338",mD="\u2A7D\u0338",fD="\u226E",gD="\u22D8\u0338",hD="\u2274",ED="\u226A\u20D2",SD="\u226E",bD="\u22EA",vD="\u22EC",TD="\u226A\u0338",yD="\u2224",CD="\u2060",RD="\xA0",ND="\u{1D55F}",OD="\u2115",AD="\u2AEC",ID="\xAC",DD="\u2262",xD="\u226D",wD="\u2226",MD="\u2209",LD="\u2260",kD="\u2242\u0338",PD="\u2204",BD="\u226F",FD="\u2271",UD="\u2267\u0338",GD="\u226B\u0338",qD="\u2279",YD="\u2A7E\u0338",zD="\u2275",$D="\u224E\u0338",HD="\u224F\u0338",VD="\u2209",WD="\u22F5\u0338",KD="\u22F9\u0338",QD="\u2209",XD="\u22F7",jD="\u22F6",ZD="\u29CF\u0338",JD="\u22EA",ex="\u22EC",tx="\u226E",nx="\u2270",rx="\u2278",ax="\u226A\u0338",ix="\u2A7D\u0338",ox="\u2274",sx="\u2AA2\u0338",lx="\u2AA1\u0338",cx="\u220C",ux="\u220C",dx="\u22FE",_x="\u22FD",px="\u2280",mx="\u2AAF\u0338",fx="\u22E0",gx="\u220C",hx="\u29D0\u0338",Ex="\u22EB",Sx="\u22ED",bx="\u228F\u0338",vx="\u22E2",Tx="\u2290\u0338",yx="\u22E3",Cx="\u2282\u20D2",Rx="\u2288",Nx="\u2281",Ox="\u2AB0\u0338",Ax="\u22E1",Ix="\u227F\u0338",Dx="\u2283\u20D2",xx="\u2289",wx="\u2241",Mx="\u2244",Lx="\u2247",kx="\u2249",Px="\u2224",Bx="\u2226",Fx="\u2226",Ux="\u2AFD\u20E5",Gx="\u2202\u0338",qx="\u2A14",Yx="\u2280",zx="\u22E0",$x="\u2280",Hx="\u2AAF\u0338",Vx="\u2AAF\u0338",Wx="\u2933\u0338",Kx="\u219B",Qx="\u21CF",Xx="\u219D\u0338",jx="\u219B",Zx="\u21CF",Jx="\u22EB",ew="\u22ED",tw="\u2281",nw="\u22E1",rw="\u2AB0\u0338",aw="\u{1D4A9}",iw="\u{1D4C3}",ow="\u2224",sw="\u2226",lw="\u2241",cw="\u2244",uw="\u2244",dw="\u2224",_w="\u2226",pw="\u22E2",mw="\u22E3",fw="\u2284",gw="\u2AC5\u0338",hw="\u2288",Ew="\u2282\u20D2",Sw="\u2288",bw="\u2AC5\u0338",vw="\u2281",Tw="\u2AB0\u0338",yw="\u2285",Cw="\u2AC6\u0338",Rw="\u2289",Nw="\u2283\u20D2",Ow="\u2289",Aw="\u2AC6\u0338",Iw="\u2279",Dw="\xD1",xw="\xF1",ww="\u2278",Mw="\u22EA",Lw="\u22EC",kw="\u22EB",Pw="\u22ED",Bw="\u039D",Fw="\u03BD",Uw="#",Gw="\u2116",qw="\u2007",Yw="\u224D\u20D2",zw="\u22AC",$w="\u22AD",Hw="\u22AE",Vw="\u22AF",Ww="\u2265\u20D2",Kw=">\u20D2",Qw="\u2904",Xw="\u29DE",jw="\u2902",Zw="\u2264\u20D2",Jw="<\u20D2",e2="\u22B4\u20D2",t2="\u2903",n2="\u22B5\u20D2",r2="\u223C\u20D2",a2="\u2923",i2="\u2196",o2="\u21D6",s2="\u2196",l2="\u2927",c2="\xD3",u2="\xF3",d2="\u229B",_2="\xD4",p2="\xF4",m2="\u229A",f2="\u041E",g2="\u043E",h2="\u229D",E2="\u0150",S2="\u0151",b2="\u2A38",v2="\u2299",T2="\u29BC",y2="\u0152",C2="\u0153",R2="\u29BF",N2="\u{1D512}",O2="\u{1D52C}",A2="\u02DB",I2="\xD2",D2="\xF2",x2="\u29C1",w2="\u29B5",M2="\u03A9",L2="\u222E",k2="\u21BA",P2="\u29BE",B2="\u29BB",F2="\u203E",U2="\u29C0",G2="\u014C",q2="\u014D",Y2="\u03A9",z2="\u03C9",$2="\u039F",H2="\u03BF",V2="\u29B6",W2="\u2296",K2="\u{1D546}",Q2="\u{1D560}",X2="\u29B7",j2="\u201C",Z2="\u2018",J2="\u29B9",eM="\u2295",tM="\u21BB",nM="\u2A54",rM="\u2228",aM="\u2A5D",iM="\u2134",oM="\u2134",sM="\xAA",lM="\xBA",cM="\u22B6",uM="\u2A56",dM="\u2A57",_M="\u2A5B",pM="\u24C8",mM="\u{1D4AA}",fM="\u2134",gM="\xD8",hM="\xF8",EM="\u2298",SM="\xD5",bM="\xF5",vM="\u2A36",TM="\u2A37",yM="\u2297",CM="\xD6",RM="\xF6",NM="\u233D",OM="\u203E",AM="\u23DE",IM="\u23B4",DM="\u23DC",xM="\xB6",wM="\u2225",MM="\u2225",LM="\u2AF3",kM="\u2AFD",PM="\u2202",BM="\u2202",FM="\u041F",UM="\u043F",GM="%",qM=".",YM="\u2030",zM="\u22A5",$M="\u2031",HM="\u{1D513}",VM="\u{1D52D}",WM="\u03A6",KM="\u03C6",QM="\u03D5",XM="\u2133",jM="\u260E",ZM="\u03A0",JM="\u03C0",e4="\u22D4",t4="\u03D6",n4="\u210F",r4="\u210E",a4="\u210F",i4="\u2A23",o4="\u229E",s4="\u2A22",l4="+",c4="\u2214",u4="\u2A25",d4="\u2A72",_4="\xB1",p4="\xB1",m4="\u2A26",f4="\u2A27",g4="\xB1",h4="\u210C",E4="\u2A15",S4="\u{1D561}",b4="\u2119",v4="\xA3",T4="\u2AB7",y4="\u2ABB",C4="\u227A",R4="\u227C",N4="\u2AB7",O4="\u227A",A4="\u227C",I4="\u227A",D4="\u2AAF",x4="\u227C",w4="\u227E",M4="\u2AAF",L4="\u2AB9",k4="\u2AB5",P4="\u22E8",B4="\u2AAF",F4="\u2AB3",U4="\u227E",G4="\u2032",q4="\u2033",Y4="\u2119",z4="\u2AB9",$4="\u2AB5",H4="\u22E8",V4="\u220F",W4="\u220F",K4="\u232E",Q4="\u2312",X4="\u2313",j4="\u221D",Z4="\u221D",J4="\u2237",eL="\u221D",tL="\u227E",nL="\u22B0",rL="\u{1D4AB}",aL="\u{1D4C5}",iL="\u03A8",oL="\u03C8",sL="\u2008",lL="\u{1D514}",cL="\u{1D52E}",uL="\u2A0C",dL="\u{1D562}",_L="\u211A",pL="\u2057",mL="\u{1D4AC}",fL="\u{1D4C6}",gL="\u210D",hL="\u2A16",EL="?",SL="\u225F",bL='"',vL='"',TL="\u21DB",yL="\u223D\u0331",CL="\u0154",RL="\u0155",NL="\u221A",OL="\u29B3",AL="\u27E9",IL="\u27EB",DL="\u2992",xL="\u29A5",wL="\u27E9",ML="\xBB",LL="\u2975",kL="\u21E5",PL="\u2920",BL="\u2933",FL="\u2192",UL="\u21A0",GL="\u21D2",qL="\u291E",YL="\u21AA",zL="\u21AC",$L="\u2945",HL="\u2974",VL="\u2916",WL="\u21A3",KL="\u219D",QL="\u291A",XL="\u291C",jL="\u2236",ZL="\u211A",JL="\u290D",ek="\u290F",tk="\u2910",nk="\u2773",rk="}",ak="]",ik="\u298C",ok="\u298E",sk="\u2990",lk="\u0158",ck="\u0159",uk="\u0156",dk="\u0157",_k="\u2309",pk="}",mk="\u0420",fk="\u0440",gk="\u2937",hk="\u2969",Ek="\u201D",Sk="\u201D",bk="\u21B3",vk="\u211C",Tk="\u211B",yk="\u211C",Ck="\u211D",Rk="\u211C",Nk="\u25AD",Ok="\xAE",Ak="\xAE",Ik="\u220B",Dk="\u21CB",xk="\u296F",wk="\u297D",Mk="\u230B",Lk="\u{1D52F}",kk="\u211C",Pk="\u2964",Bk="\u21C1",Fk="\u21C0",Uk="\u296C",Gk="\u03A1",qk="\u03C1",Yk="\u03F1",zk="\u27E9",$k="\u21E5",Hk="\u2192",Vk="\u2192",Wk="\u21D2",Kk="\u21C4",Qk="\u21A3",Xk="\u2309",jk="\u27E7",Zk="\u295D",Jk="\u2955",e3="\u21C2",t3="\u230B",n3="\u21C1",r3="\u21C0",a3="\u21C4",i3="\u21CC",o3="\u21C9",s3="\u219D",l3="\u21A6",c3="\u22A2",u3="\u295B",d3="\u22CC",_3="\u29D0",p3="\u22B3",m3="\u22B5",f3="\u294F",g3="\u295C",h3="\u2954",E3="\u21BE",S3="\u2953",b3="\u21C0",v3="\u02DA",T3="\u2253",y3="\u21C4",C3="\u21CC",R3="\u200F",N3="\u23B1",O3="\u23B1",A3="\u2AEE",I3="\u27ED",D3="\u21FE",x3="\u27E7",w3="\u2986",M3="\u{1D563}",L3="\u211D",k3="\u2A2E",P3="\u2A35",B3="\u2970",F3=")",U3="\u2994",G3="\u2A12",q3="\u21C9",Y3="\u21DB",z3="\u203A",$3="\u{1D4C7}",H3="\u211B",V3="\u21B1",W3="\u21B1",K3="]",Q3="\u2019",X3="\u2019",j3="\u22CC",Z3="\u22CA",J3="\u25B9",e5="\u22B5",t5="\u25B8",n5="\u29CE",r5="\u29F4",a5="\u2968",i5="\u211E",o5="\u015A",s5="\u015B",l5="\u201A",c5="\u2AB8",u5="\u0160",d5="\u0161",_5="\u2ABC",p5="\u227B",m5="\u227D",f5="\u2AB0",g5="\u2AB4",h5="\u015E",E5="\u015F",S5="\u015C",b5="\u015D",v5="\u2ABA",T5="\u2AB6",y5="\u22E9",C5="\u2A13",R5="\u227F",N5="\u0421",O5="\u0441",A5="\u22A1",I5="\u22C5",D5="\u2A66",x5="\u2925",w5="\u2198",M5="\u21D8",L5="\u2198",k5="\xA7",P5=";",B5="\u2929",F5="\u2216",U5="\u2216",G5="\u2736",q5="\u{1D516}",Y5="\u{1D530}",z5="\u2322",$5="\u266F",H5="\u0429",V5="\u0449",W5="\u0428",K5="\u0448",Q5="\u2193",X5="\u2190",j5="\u2223",Z5="\u2225",J5="\u2192",eP="\u2191",tP="\xAD",nP="\u03A3",rP="\u03C3",aP="\u03C2",iP="\u03C2",oP="\u223C",sP="\u2A6A",lP="\u2243",cP="\u2243",uP="\u2A9E",dP="\u2AA0",_P="\u2A9D",pP="\u2A9F",mP="\u2246",fP="\u2A24",gP="\u2972",hP="\u2190",EP="\u2218",SP="\u2216",bP="\u2A33",vP="\u29E4",TP="\u2223",yP="\u2323",CP="\u2AAA",RP="\u2AAC",NP="\u2AAC\uFE00",OP="\u042C",AP="\u044C",IP="\u233F",DP="\u29C4",xP="/",wP="\u{1D54A}",MP="\u{1D564}",LP="\u2660",kP="\u2660",PP="\u2225",BP="\u2293",FP="\u2293\uFE00",UP="\u2294",GP="\u2294\uFE00",qP="\u221A",YP="\u228F",zP="\u2291",$P="\u228F",HP="\u2291",VP="\u2290",WP="\u2292",KP="\u2290",QP="\u2292",XP="\u25A1",jP="\u25A1",ZP="\u2293",JP="\u228F",e6="\u2291",t6="\u2290",n6="\u2292",r6="\u2294",a6="\u25AA",i6="\u25A1",o6="\u25AA",s6="\u2192",l6="\u{1D4AE}",c6="\u{1D4C8}",u6="\u2216",d6="\u2323",_6="\u22C6",p6="\u22C6",m6="\u2606",f6="\u2605",g6="\u03F5",h6="\u03D5",E6="\xAF",S6="\u2282",b6="\u22D0",v6="\u2ABD",T6="\u2AC5",y6="\u2286",C6="\u2AC3",R6="\u2AC1",N6="\u2ACB",O6="\u228A",A6="\u2ABF",I6="\u2979",D6="\u2282",x6="\u22D0",w6="\u2286",M6="\u2AC5",L6="\u2286",k6="\u228A",P6="\u2ACB",B6="\u2AC7",F6="\u2AD5",U6="\u2AD3",G6="\u2AB8",q6="\u227B",Y6="\u227D",z6="\u227B",$6="\u2AB0",H6="\u227D",V6="\u227F",W6="\u2AB0",K6="\u2ABA",Q6="\u2AB6",X6="\u22E9",j6="\u227F",Z6="\u220B",J6="\u2211",e7="\u2211",t7="\u266A",n7="\xB9",r7="\xB2",a7="\xB3",i7="\u2283",o7="\u22D1",s7="\u2ABE",l7="\u2AD8",c7="\u2AC6",u7="\u2287",d7="\u2AC4",_7="\u2283",p7="\u2287",m7="\u27C9",f7="\u2AD7",g7="\u297B",h7="\u2AC2",E7="\u2ACC",S7="\u228B",b7="\u2AC0",v7="\u2283",T7="\u22D1",y7="\u2287",C7="\u2AC6",R7="\u228B",N7="\u2ACC",O7="\u2AC8",A7="\u2AD4",I7="\u2AD6",D7="\u2926",x7="\u2199",w7="\u21D9",M7="\u2199",L7="\u292A",k7="\xDF",P7=" ",B7="\u2316",F7="\u03A4",U7="\u03C4",G7="\u23B4",q7="\u0164",Y7="\u0165",z7="\u0162",$7="\u0163",H7="\u0422",V7="\u0442",W7="\u20DB",K7="\u2315",Q7="\u{1D517}",X7="\u{1D531}",j7="\u2234",Z7="\u2234",J7="\u2234",e8="\u0398",t8="\u03B8",n8="\u03D1",r8="\u03D1",a8="\u2248",i8="\u223C",o8="\u205F\u200A",s8="\u2009",l8="\u2009",c8="\u2248",u8="\u223C",d8="\xDE",_8="\xFE",p8="\u02DC",m8="\u223C",f8="\u2243",g8="\u2245",h8="\u2248",E8="\u2A31",S8="\u22A0",b8="\xD7",v8="\u2A30",T8="\u222D",y8="\u2928",C8="\u2336",R8="\u2AF1",N8="\u22A4",O8="\u{1D54B}",A8="\u{1D565}",I8="\u2ADA",D8="\u2929",x8="\u2034",w8="\u2122",M8="\u2122",L8="\u25B5",k8="\u25BF",P8="\u25C3",B8="\u22B4",F8="\u225C",U8="\u25B9",G8="\u22B5",q8="\u25EC",Y8="\u225C",z8="\u2A3A",$8="\u20DB",H8="\u2A39",V8="\u29CD",W8="\u2A3B",K8="\u23E2",Q8="\u{1D4AF}",X8="\u{1D4C9}",j8="\u0426",Z8="\u0446",J8="\u040B",e9="\u045B",t9="\u0166",n9="\u0167",r9="\u226C",a9="\u219E",i9="\u21A0",o9="\xDA",s9="\xFA",l9="\u2191",c9="\u219F",u9="\u21D1",d9="\u2949",_9="\u040E",p9="\u045E",m9="\u016C",f9="\u016D",g9="\xDB",h9="\xFB",E9="\u0423",S9="\u0443",b9="\u21C5",v9="\u0170",T9="\u0171",y9="\u296E",C9="\u297E",R9="\u{1D518}",N9="\u{1D532}",O9="\xD9",A9="\xF9",I9="\u2963",D9="\u21BF",x9="\u21BE",w9="\u2580",M9="\u231C",L9="\u231C",k9="\u230F",P9="\u25F8",B9="\u016A",F9="\u016B",U9="\xA8",G9="_",q9="\u23DF",Y9="\u23B5",z9="\u23DD",$9="\u22C3",H9="\u228E",V9="\u0172",W9="\u0173",K9="\u{1D54C}",Q9="\u{1D566}",X9="\u2912",j9="\u2191",Z9="\u2191",J9="\u21D1",eB="\u21C5",tB="\u2195",nB="\u2195",rB="\u21D5",aB="\u296E",iB="\u21BF",oB="\u21BE",sB="\u228E",lB="\u2196",cB="\u2197",uB="\u03C5",dB="\u03D2",_B="\u03D2",pB="\u03A5",mB="\u03C5",fB="\u21A5",gB="\u22A5",hB="\u21C8",EB="\u231D",SB="\u231D",bB="\u230E",vB="\u016E",TB="\u016F",yB="\u25F9",CB="\u{1D4B0}",RB="\u{1D4CA}",NB="\u22F0",OB="\u0168",AB="\u0169",IB="\u25B5",DB="\u25B4",xB="\u21C8",wB="\xDC",MB="\xFC",LB="\u29A7",kB="\u299C",PB="\u03F5",BB="\u03F0",FB="\u2205",UB="\u03D5",GB="\u03D6",qB="\u221D",YB="\u2195",zB="\u21D5",$B="\u03F1",HB="\u03C2",VB="\u228A\uFE00",WB="\u2ACB\uFE00",KB="\u228B\uFE00",QB="\u2ACC\uFE00",XB="\u03D1",jB="\u22B2",ZB="\u22B3",JB="\u2AE8",eF="\u2AEB",tF="\u2AE9",nF="\u0412",rF="\u0432",aF="\u22A2",iF="\u22A8",oF="\u22A9",sF="\u22AB",lF="\u2AE6",cF="\u22BB",uF="\u2228",dF="\u22C1",_F="\u225A",pF="\u22EE",mF="|",fF="\u2016",gF="|",hF="\u2016",EF="\u2223",SF="|",bF="\u2758",vF="\u2240",TF="\u200A",yF="\u{1D519}",CF="\u{1D533}",RF="\u22B2",NF="\u2282\u20D2",OF="\u2283\u20D2",AF="\u{1D54D}",IF="\u{1D567}",DF="\u221D",xF="\u22B3",wF="\u{1D4B1}",MF="\u{1D4CB}",LF="\u2ACB\uFE00",kF="\u228A\uFE00",PF="\u2ACC\uFE00",BF="\u228B\uFE00",FF="\u22AA",UF="\u299A",GF="\u0174",qF="\u0175",YF="\u2A5F",zF="\u2227",$F="\u22C0",HF="\u2259",VF="\u2118",WF="\u{1D51A}",KF="\u{1D534}",QF="\u{1D54E}",XF="\u{1D568}",jF="\u2118",ZF="\u2240",JF="\u2240",eU="\u{1D4B2}",tU="\u{1D4CC}",nU="\u22C2",rU="\u25EF",aU="\u22C3",iU="\u25BD",oU="\u{1D51B}",sU="\u{1D535}",lU="\u27F7",cU="\u27FA",uU="\u039E",dU="\u03BE",_U="\u27F5",pU="\u27F8",mU="\u27FC",fU="\u22FB",gU="\u2A00",hU="\u{1D54F}",EU="\u{1D569}",SU="\u2A01",bU="\u2A02",vU="\u27F6",TU="\u27F9",yU="\u{1D4B3}",CU="\u{1D4CD}",RU="\u2A06",NU="\u2A04",OU="\u25B3",AU="\u22C1",IU="\u22C0",DU="\xDD",xU="\xFD",wU="\u042F",MU="\u044F",LU="\u0176",kU="\u0177",PU="\u042B",BU="\u044B",FU="\xA5",UU="\u{1D51C}",GU="\u{1D536}",qU="\u0407",YU="\u0457",zU="\u{1D550}",$U="\u{1D56A}",HU="\u{1D4B4}",VU="\u{1D4CE}",WU="\u042E",KU="\u044E",QU="\xFF",XU="\u0178",jU="\u0179",ZU="\u017A",JU="\u017D",eG="\u017E",tG="\u0417",nG="\u0437",rG="\u017B",aG="\u017C",iG="\u2128",oG="\u200B",sG="\u0396",lG="\u03B6",cG="\u{1D537}",uG="\u2128",dG="\u0416",_G="\u0436",pG="\u21DD",mG="\u{1D56B}",fG="\u2124",gG="\u{1D4B5}",hG="\u{1D4CF}",EG="\u200D",SG="\u200C";var bG={Aacute:td,aacute:nd,Abreve:rd,abreve:ad,ac:id,acd:od,acE:sd,Acirc:ld,acirc:cd,acute:ud,Acy:dd,acy:_d,AElig:pd,aelig:md,af:fd,Afr:gd,afr:hd,Agrave:Ed,agrave:Sd,alefsym:bd,aleph:vd,Alpha:Td,alpha:yd,Amacr:Cd,amacr:Rd,amalg:Nd,amp:Od,AMP:Ad,andand:Id,And:Dd,and:xd,andd:wd,andslope:Md,andv:Ld,ang:kd,ange:Pd,angle:Bd,angmsdaa:Fd,angmsdab:Ud,angmsdac:Gd,angmsdad:qd,angmsdae:Yd,angmsdaf:zd,angmsdag:$d,angmsdah:Hd,angmsd:Vd,angrt:Wd,angrtvb:Kd,angrtvbd:Qd,angsph:Xd,angst:jd,angzarr:Zd,Aogon:Jd,aogon:e_,Aopf:t_,aopf:n_,apacir:r_,ap:a_,apE:i_,ape:o_,apid:s_,apos:l_,ApplyFunction:c_,approx:u_,approxeq:d_,Aring:__,aring:p_,Ascr:m_,ascr:f_,Assign:g_,ast:h_,asymp:E_,asympeq:S_,Atilde:b_,atilde:v_,Auml:T_,auml:y_,awconint:C_,awint:R_,backcong:N_,backepsilon:O_,backprime:A_,backsim:I_,backsimeq:D_,Backslash:x_,Barv:w_,barvee:M_,barwed:L_,Barwed:k_,barwedge:P_,bbrk:B_,bbrktbrk:F_,bcong:U_,Bcy:G_,bcy:q_,bdquo:Y_,becaus:z_,because:$_,Because:H_,bemptyv:V_,bepsi:W_,bernou:K_,Bernoullis:Q_,Beta:X_,beta:j_,beth:Z_,between:J_,Bfr:ep,bfr:tp,bigcap:np,bigcirc:rp,bigcup:ap,bigodot:ip,bigoplus:op,bigotimes:sp,bigsqcup:lp,bigstar:cp,bigtriangledown:up,bigtriangleup:dp,biguplus:_p,bigvee:pp,bigwedge:mp,bkarow:fp,blacklozenge:gp,blacksquare:hp,blacktriangle:Ep,blacktriangledown:Sp,blacktriangleleft:bp,blacktriangleright:vp,blank:Tp,blk12:yp,blk14:Cp,blk34:Rp,block:Np,bne:Op,bnequiv:Ap,bNot:Ip,bnot:Dp,Bopf:xp,bopf:wp,bot:Mp,bottom:Lp,bowtie:kp,boxbox:Pp,boxdl:Bp,boxdL:Fp,boxDl:Up,boxDL:Gp,boxdr:qp,boxdR:Yp,boxDr:zp,boxDR:$p,boxh:Hp,boxH:Vp,boxhd:Wp,boxHd:Kp,boxhD:Qp,boxHD:Xp,boxhu:jp,boxHu:Zp,boxhU:Jp,boxHU:em,boxminus:tm,boxplus:nm,boxtimes:rm,boxul:am,boxuL:im,boxUl:om,boxUL:sm,boxur:lm,boxuR:cm,boxUr:um,boxUR:dm,boxv:_m,boxV:pm,boxvh:mm,boxvH:fm,boxVh:gm,boxVH:hm,boxvl:Em,boxvL:Sm,boxVl:bm,boxVL:vm,boxvr:Tm,boxvR:ym,boxVr:Cm,boxVR:Rm,bprime:Nm,breve:Om,Breve:Am,brvbar:Im,bscr:Dm,Bscr:xm,bsemi:wm,bsim:Mm,bsime:Lm,bsolb:km,bsol:Pm,bsolhsub:Bm,bull:Fm,bullet:Um,bump:Gm,bumpE:qm,bumpe:Ym,Bumpeq:zm,bumpeq:$m,Cacute:Hm,cacute:Vm,capand:Wm,capbrcup:Km,capcap:Qm,cap:Xm,Cap:jm,capcup:Zm,capdot:Jm,CapitalDifferentialD:ef,caps:tf,caret:nf,caron:rf,Cayleys:af,ccaps:of,Ccaron:sf,ccaron:lf,Ccedil:cf,ccedil:uf,Ccirc:df,ccirc:_f,Cconint:pf,ccups:mf,ccupssm:ff,Cdot:gf,cdot:hf,cedil:Ef,Cedilla:Sf,cemptyv:bf,cent:vf,centerdot:Tf,CenterDot:yf,cfr:Cf,Cfr:Rf,CHcy:Nf,chcy:Of,check:Af,checkmark:If,Chi:Df,chi:xf,circ:wf,circeq:Mf,circlearrowleft:Lf,circlearrowright:kf,circledast:Pf,circledcirc:Bf,circleddash:Ff,CircleDot:Uf,circledR:Gf,circledS:qf,CircleMinus:Yf,CirclePlus:zf,CircleTimes:$f,cir:Hf,cirE:Vf,cire:Wf,cirfnint:Kf,cirmid:Qf,cirscir:Xf,ClockwiseContourIntegral:jf,CloseCurlyDoubleQuote:Zf,CloseCurlyQuote:Jf,clubs:e0,clubsuit:t0,colon:n0,Colon:r0,Colone:a0,colone:i0,coloneq:o0,comma:s0,commat:l0,comp:c0,compfn:u0,complement:d0,complexes:_0,cong:p0,congdot:m0,Congruent:f0,conint:g0,Conint:h0,ContourIntegral:E0,copf:S0,Copf:b0,coprod:v0,Coproduct:T0,copy:y0,COPY:C0,copysr:R0,CounterClockwiseContourIntegral:N0,crarr:O0,cross:A0,Cross:I0,Cscr:D0,cscr:x0,csub:w0,csube:M0,csup:L0,csupe:k0,ctdot:P0,cudarrl:B0,cudarrr:F0,cuepr:U0,cuesc:G0,cularr:q0,cularrp:Y0,cupbrcap:z0,cupcap:$0,CupCap:H0,cup:V0,Cup:W0,cupcup:K0,cupdot:Q0,cupor:X0,cups:j0,curarr:Z0,curarrm:J0,curlyeqprec:eg,curlyeqsucc:tg,curlyvee:ng,curlywedge:rg,curren:ag,curvearrowleft:ig,curvearrowright:og,cuvee:sg,cuwed:lg,cwconint:cg,cwint:ug,cylcty:dg,dagger:_g,Dagger:pg,daleth:mg,darr:fg,Darr:gg,dArr:hg,dash:Eg,Dashv:Sg,dashv:bg,dbkarow:vg,dblac:Tg,Dcaron:yg,dcaron:Cg,Dcy:Rg,dcy:Ng,ddagger:Og,ddarr:Ag,DD:Ig,dd:Dg,DDotrahd:xg,ddotseq:wg,deg:Mg,Del:Lg,Delta:kg,delta:Pg,demptyv:Bg,dfisht:Fg,Dfr:Ug,dfr:Gg,dHar:qg,dharl:Yg,dharr:zg,DiacriticalAcute:$g,DiacriticalDot:Hg,DiacriticalDoubleAcute:Vg,DiacriticalGrave:Wg,DiacriticalTilde:Kg,diam:Qg,diamond:Xg,Diamond:jg,diamondsuit:Zg,diams:Jg,die:eh,DifferentialD:th,digamma:nh,disin:rh,div:ah,divide:ih,divideontimes:oh,divonx:sh,DJcy:lh,djcy:ch,dlcorn:uh,dlcrop:dh,dollar:_h,Dopf:ph,dopf:mh,Dot:fh,dot:gh,DotDot:hh,doteq:Eh,doteqdot:Sh,DotEqual:bh,dotminus:vh,dotplus:Th,dotsquare:yh,doublebarwedge:Ch,DoubleContourIntegral:Rh,DoubleDot:Nh,DoubleDownArrow:Oh,DoubleLeftArrow:Ah,DoubleLeftRightArrow:Ih,DoubleLeftTee:Dh,DoubleLongLeftArrow:xh,DoubleLongLeftRightArrow:wh,DoubleLongRightArrow:Mh,DoubleRightArrow:Lh,DoubleRightTee:kh,DoubleUpArrow:Ph,DoubleUpDownArrow:Bh,DoubleVerticalBar:Fh,DownArrowBar:Uh,downarrow:Gh,DownArrow:qh,Downarrow:Yh,DownArrowUpArrow:zh,DownBreve:$h,downdownarrows:Hh,downharpoonleft:Vh,downharpoonright:Wh,DownLeftRightVector:Kh,DownLeftTeeVector:Qh,DownLeftVectorBar:Xh,DownLeftVector:jh,DownRightTeeVector:Zh,DownRightVectorBar:Jh,DownRightVector:eE,DownTeeArrow:tE,DownTee:nE,drbkarow:rE,drcorn:aE,drcrop:iE,Dscr:oE,dscr:sE,DScy:lE,dscy:cE,dsol:uE,Dstrok:dE,dstrok:_E,dtdot:pE,dtri:mE,dtrif:fE,duarr:gE,duhar:hE,dwangle:EE,DZcy:SE,dzcy:bE,dzigrarr:vE,Eacute:TE,eacute:yE,easter:CE,Ecaron:RE,ecaron:NE,Ecirc:OE,ecirc:AE,ecir:IE,ecolon:DE,Ecy:xE,ecy:wE,eDDot:ME,Edot:LE,edot:kE,eDot:PE,ee:BE,efDot:FE,Efr:UE,efr:GE,eg:qE,Egrave:YE,egrave:zE,egs:$E,egsdot:HE,el:VE,Element:WE,elinters:KE,ell:QE,els:XE,elsdot:jE,Emacr:ZE,emacr:JE,empty:eS,emptyset:tS,EmptySmallSquare:nS,emptyv:rS,EmptyVerySmallSquare:aS,emsp13:iS,emsp14:oS,emsp:sS,ENG:lS,eng:cS,ensp:uS,Eogon:dS,eogon:_S,Eopf:pS,eopf:mS,epar:fS,eparsl:gS,eplus:hS,epsi:ES,Epsilon:SS,epsilon:bS,epsiv:vS,eqcirc:TS,eqcolon:yS,eqsim:CS,eqslantgtr:RS,eqslantless:NS,Equal:OS,equals:AS,EqualTilde:IS,equest:DS,Equilibrium:xS,equiv:wS,equivDD:MS,eqvparsl:LS,erarr:kS,erDot:PS,escr:BS,Escr:FS,esdot:US,Esim:GS,esim:qS,Eta:YS,eta:zS,ETH:$S,eth:HS,Euml:VS,euml:WS,euro:KS,excl:QS,exist:XS,Exists:jS,expectation:ZS,exponentiale:JS,ExponentialE:eb,fallingdotseq:tb,Fcy:nb,fcy:rb,female:ab,ffilig:ib,fflig:ob,ffllig:sb,Ffr:lb,ffr:cb,filig:ub,FilledSmallSquare:db,FilledVerySmallSquare:_b,fjlig:pb,flat:mb,fllig:fb,fltns:gb,fnof:hb,Fopf:Eb,fopf:Sb,forall:bb,ForAll:vb,fork:Tb,forkv:yb,Fouriertrf:Cb,fpartint:Rb,frac12:Nb,frac13:Ob,frac14:Ab,frac15:Ib,frac16:Db,frac18:xb,frac23:wb,frac25:Mb,frac34:Lb,frac35:kb,frac38:Pb,frac45:Bb,frac56:Fb,frac58:Ub,frac78:Gb,frasl:qb,frown:Yb,fscr:zb,Fscr:$b,gacute:Hb,Gamma:Vb,gamma:Wb,Gammad:Kb,gammad:Qb,gap:Xb,Gbreve:jb,gbreve:Zb,Gcedil:Jb,Gcirc:ev,gcirc:tv,Gcy:nv,gcy:rv,Gdot:av,gdot:iv,ge:ov,gE:sv,gEl:lv,gel:cv,geq:uv,geqq:dv,geqslant:_v,gescc:pv,ges:mv,gesdot:fv,gesdoto:gv,gesdotol:hv,gesl:Ev,gesles:Sv,Gfr:bv,gfr:vv,gg:Tv,Gg:yv,ggg:Cv,gimel:Rv,GJcy:Nv,gjcy:Ov,gla:Av,gl:Iv,glE:Dv,glj:xv,gnap:wv,gnapprox:Mv,gne:Lv,gnE:kv,gneq:Pv,gneqq:Bv,gnsim:Fv,Gopf:Uv,gopf:Gv,grave:qv,GreaterEqual:Yv,GreaterEqualLess:zv,GreaterFullEqual:$v,GreaterGreater:Hv,GreaterLess:Vv,GreaterSlantEqual:Wv,GreaterTilde:Kv,Gscr:Qv,gscr:Xv,gsim:jv,gsime:Zv,gsiml:Jv,gtcc:eT,gtcir:tT,gt:nT,GT:rT,Gt:aT,gtdot:iT,gtlPar:oT,gtquest:sT,gtrapprox:lT,gtrarr:cT,gtrdot:uT,gtreqless:dT,gtreqqless:_T,gtrless:pT,gtrsim:mT,gvertneqq:fT,gvnE:gT,Hacek:hT,hairsp:ET,half:ST,hamilt:bT,HARDcy:vT,hardcy:TT,harrcir:yT,harr:CT,hArr:RT,harrw:NT,Hat:OT,hbar:AT,Hcirc:IT,hcirc:DT,hearts:xT,heartsuit:wT,hellip:MT,hercon:LT,hfr:kT,Hfr:PT,HilbertSpace:BT,hksearow:FT,hkswarow:UT,hoarr:GT,homtht:qT,hookleftarrow:YT,hookrightarrow:zT,hopf:$T,Hopf:HT,horbar:VT,HorizontalLine:WT,hscr:KT,Hscr:QT,hslash:XT,Hstrok:jT,hstrok:ZT,HumpDownHump:JT,HumpEqual:ey,hybull:ty,hyphen:ny,Iacute:ry,iacute:ay,ic:iy,Icirc:oy,icirc:sy,Icy:ly,icy:cy,Idot:uy,IEcy:dy,iecy:_y,iexcl:py,iff:my,ifr:fy,Ifr:gy,Igrave:hy,igrave:Ey,ii:Sy,iiiint:by,iiint:vy,iinfin:Ty,iiota:yy,IJlig:Cy,ijlig:Ry,Imacr:Ny,imacr:Oy,image:Ay,ImaginaryI:Iy,imagline:Dy,imagpart:xy,imath:wy,Im:My,imof:Ly,imped:ky,Implies:Py,incare:By,in:"\u2208",infin:Fy,infintie:Uy,inodot:Gy,intcal:qy,int:Yy,Int:zy,integers:$y,Integral:Hy,intercal:Vy,Intersection:Wy,intlarhk:Ky,intprod:Qy,InvisibleComma:Xy,InvisibleTimes:jy,IOcy:Zy,iocy:Jy,Iogon:e1,iogon:t1,Iopf:n1,iopf:r1,Iota:a1,iota:i1,iprod:o1,iquest:s1,iscr:l1,Iscr:c1,isin:u1,isindot:d1,isinE:_1,isins:p1,isinsv:m1,isinv:f1,it:g1,Itilde:h1,itilde:E1,Iukcy:S1,iukcy:b1,Iuml:v1,iuml:T1,Jcirc:y1,jcirc:C1,Jcy:R1,jcy:N1,Jfr:O1,jfr:A1,jmath:I1,Jopf:D1,jopf:x1,Jscr:w1,jscr:M1,Jsercy:L1,jsercy:k1,Jukcy:P1,jukcy:B1,Kappa:F1,kappa:U1,kappav:G1,Kcedil:q1,kcedil:Y1,Kcy:z1,kcy:$1,Kfr:H1,kfr:V1,kgreen:W1,KHcy:K1,khcy:Q1,KJcy:X1,kjcy:j1,Kopf:Z1,kopf:J1,Kscr:eC,kscr:tC,lAarr:nC,Lacute:rC,lacute:aC,laemptyv:iC,lagran:oC,Lambda:sC,lambda:lC,lang:cC,Lang:uC,langd:dC,langle:_C,lap:pC,Laplacetrf:mC,laquo:fC,larrb:gC,larrbfs:hC,larr:EC,Larr:SC,lArr:bC,larrfs:vC,larrhk:TC,larrlp:yC,larrpl:CC,larrsim:RC,larrtl:NC,latail:OC,lAtail:AC,lat:IC,late:DC,lates:xC,lbarr:wC,lBarr:MC,lbbrk:LC,lbrace:kC,lbrack:PC,lbrke:BC,lbrksld:FC,lbrkslu:UC,Lcaron:GC,lcaron:qC,Lcedil:YC,lcedil:zC,lceil:$C,lcub:HC,Lcy:VC,lcy:WC,ldca:KC,ldquo:QC,ldquor:XC,ldrdhar:jC,ldrushar:ZC,ldsh:JC,le:eR,lE:tR,LeftAngleBracket:nR,LeftArrowBar:rR,leftarrow:aR,LeftArrow:iR,Leftarrow:oR,LeftArrowRightArrow:sR,leftarrowtail:lR,LeftCeiling:cR,LeftDoubleBracket:uR,LeftDownTeeVector:dR,LeftDownVectorBar:_R,LeftDownVector:pR,LeftFloor:mR,leftharpoondown:fR,leftharpoonup:gR,leftleftarrows:hR,leftrightarrow:ER,LeftRightArrow:SR,Leftrightarrow:bR,leftrightarrows:vR,leftrightharpoons:TR,leftrightsquigarrow:yR,LeftRightVector:CR,LeftTeeArrow:RR,LeftTee:NR,LeftTeeVector:OR,leftthreetimes:AR,LeftTriangleBar:IR,LeftTriangle:DR,LeftTriangleEqual:xR,LeftUpDownVector:wR,LeftUpTeeVector:MR,LeftUpVectorBar:LR,LeftUpVector:kR,LeftVectorBar:PR,LeftVector:BR,lEg:FR,leg:UR,leq:GR,leqq:qR,leqslant:YR,lescc:zR,les:$R,lesdot:HR,lesdoto:VR,lesdotor:WR,lesg:KR,lesges:QR,lessapprox:XR,lessdot:jR,lesseqgtr:ZR,lesseqqgtr:JR,LessEqualGreater:eN,LessFullEqual:tN,LessGreater:nN,lessgtr:rN,LessLess:aN,lesssim:iN,LessSlantEqual:oN,LessTilde:sN,lfisht:lN,lfloor:cN,Lfr:uN,lfr:dN,lg:_N,lgE:pN,lHar:mN,lhard:fN,lharu:gN,lharul:hN,lhblk:EN,LJcy:SN,ljcy:bN,llarr:vN,ll:TN,Ll:yN,llcorner:CN,Lleftarrow:RN,llhard:NN,lltri:ON,Lmidot:AN,lmidot:IN,lmoustache:DN,lmoust:xN,lnap:wN,lnapprox:MN,lne:LN,lnE:kN,lneq:PN,lneqq:BN,lnsim:FN,loang:UN,loarr:GN,lobrk:qN,longleftarrow:YN,LongLeftArrow:zN,Longleftarrow:$N,longleftrightarrow:HN,LongLeftRightArrow:VN,Longleftrightarrow:WN,longmapsto:KN,longrightarrow:QN,LongRightArrow:XN,Longrightarrow:jN,looparrowleft:ZN,looparrowright:JN,lopar:eO,Lopf:tO,lopf:nO,loplus:rO,lotimes:aO,lowast:iO,lowbar:oO,LowerLeftArrow:sO,LowerRightArrow:lO,loz:cO,lozenge:uO,lozf:dO,lpar:_O,lparlt:pO,lrarr:mO,lrcorner:fO,lrhar:gO,lrhard:hO,lrm:EO,lrtri:SO,lsaquo:bO,lscr:vO,Lscr:TO,lsh:yO,Lsh:CO,lsim:RO,lsime:NO,lsimg:OO,lsqb:AO,lsquo:IO,lsquor:DO,Lstrok:xO,lstrok:wO,ltcc:MO,ltcir:LO,lt:kO,LT:PO,Lt:BO,ltdot:FO,lthree:UO,ltimes:GO,ltlarr:qO,ltquest:YO,ltri:zO,ltrie:$O,ltrif:HO,ltrPar:VO,lurdshar:WO,luruhar:KO,lvertneqq:QO,lvnE:XO,macr:jO,male:ZO,malt:JO,maltese:eA,Map:"\u2905",map:tA,mapsto:nA,mapstodown:rA,mapstoleft:aA,mapstoup:iA,marker:oA,mcomma:sA,Mcy:lA,mcy:cA,mdash:uA,mDDot:dA,measuredangle:_A,MediumSpace:pA,Mellintrf:mA,Mfr:fA,mfr:gA,mho:hA,micro:EA,midast:SA,midcir:bA,mid:vA,middot:TA,minusb:yA,minus:CA,minusd:RA,minusdu:NA,MinusPlus:OA,mlcp:AA,mldr:IA,mnplus:DA,models:xA,Mopf:wA,mopf:MA,mp:LA,mscr:kA,Mscr:PA,mstpos:BA,Mu:FA,mu:UA,multimap:GA,mumap:qA,nabla:YA,Nacute:zA,nacute:HA,nang:VA,nap:WA,napE:KA,napid:QA,napos:XA,napprox:jA,natural:ZA,naturals:JA,natur:eI,nbsp:tI,nbump:nI,nbumpe:rI,ncap:aI,Ncaron:iI,ncaron:oI,Ncedil:sI,ncedil:lI,ncong:cI,ncongdot:uI,ncup:dI,Ncy:_I,ncy:pI,ndash:mI,nearhk:fI,nearr:gI,neArr:hI,nearrow:EI,ne:SI,nedot:bI,NegativeMediumSpace:vI,NegativeThickSpace:TI,NegativeThinSpace:yI,NegativeVeryThinSpace:CI,nequiv:RI,nesear:NI,nesim:OI,NestedGreaterGreater:AI,NestedLessLess:II,NewLine:DI,nexist:xI,nexists:wI,Nfr:MI,nfr:LI,ngE:kI,nge:PI,ngeq:BI,ngeqq:FI,ngeqslant:UI,nges:GI,nGg:qI,ngsim:YI,nGt:zI,ngt:$I,ngtr:HI,nGtv:VI,nharr:WI,nhArr:KI,nhpar:QI,ni:XI,nis:jI,nisd:ZI,niv:JI,NJcy:eD,njcy:tD,nlarr:nD,nlArr:rD,nldr:aD,nlE:iD,nle:oD,nleftarrow:sD,nLeftarrow:lD,nleftrightarrow:cD,nLeftrightarrow:uD,nleq:dD,nleqq:_D,nleqslant:pD,nles:mD,nless:fD,nLl:gD,nlsim:hD,nLt:ED,nlt:SD,nltri:bD,nltrie:vD,nLtv:TD,nmid:yD,NoBreak:CD,NonBreakingSpace:RD,nopf:ND,Nopf:OD,Not:AD,not:ID,NotCongruent:DD,NotCupCap:xD,NotDoubleVerticalBar:wD,NotElement:MD,NotEqual:LD,NotEqualTilde:kD,NotExists:PD,NotGreater:BD,NotGreaterEqual:FD,NotGreaterFullEqual:UD,NotGreaterGreater:GD,NotGreaterLess:qD,NotGreaterSlantEqual:YD,NotGreaterTilde:zD,NotHumpDownHump:$D,NotHumpEqual:HD,notin:VD,notindot:WD,notinE:KD,notinva:QD,notinvb:XD,notinvc:jD,NotLeftTriangleBar:ZD,NotLeftTriangle:JD,NotLeftTriangleEqual:ex,NotLess:tx,NotLessEqual:nx,NotLessGreater:rx,NotLessLess:ax,NotLessSlantEqual:ix,NotLessTilde:ox,NotNestedGreaterGreater:sx,NotNestedLessLess:lx,notni:cx,notniva:ux,notnivb:dx,notnivc:_x,NotPrecedes:px,NotPrecedesEqual:mx,NotPrecedesSlantEqual:fx,NotReverseElement:gx,NotRightTriangleBar:hx,NotRightTriangle:Ex,NotRightTriangleEqual:Sx,NotSquareSubset:bx,NotSquareSubsetEqual:vx,NotSquareSuperset:Tx,NotSquareSupersetEqual:yx,NotSubset:Cx,NotSubsetEqual:Rx,NotSucceeds:Nx,NotSucceedsEqual:Ox,NotSucceedsSlantEqual:Ax,NotSucceedsTilde:Ix,NotSuperset:Dx,NotSupersetEqual:xx,NotTilde:wx,NotTildeEqual:Mx,NotTildeFullEqual:Lx,NotTildeTilde:kx,NotVerticalBar:Px,nparallel:Bx,npar:Fx,nparsl:Ux,npart:Gx,npolint:qx,npr:Yx,nprcue:zx,nprec:$x,npreceq:Hx,npre:Vx,nrarrc:Wx,nrarr:Kx,nrArr:Qx,nrarrw:Xx,nrightarrow:jx,nRightarrow:Zx,nrtri:Jx,nrtrie:ew,nsc:tw,nsccue:nw,nsce:rw,Nscr:aw,nscr:iw,nshortmid:ow,nshortparallel:sw,nsim:lw,nsime:cw,nsimeq:uw,nsmid:dw,nspar:_w,nsqsube:pw,nsqsupe:mw,nsub:fw,nsubE:gw,nsube:hw,nsubset:Ew,nsubseteq:Sw,nsubseteqq:bw,nsucc:vw,nsucceq:Tw,nsup:yw,nsupE:Cw,nsupe:Rw,nsupset:Nw,nsupseteq:Ow,nsupseteqq:Aw,ntgl:Iw,Ntilde:Dw,ntilde:xw,ntlg:ww,ntriangleleft:Mw,ntrianglelefteq:Lw,ntriangleright:kw,ntrianglerighteq:Pw,Nu:Bw,nu:Fw,num:Uw,numero:Gw,numsp:qw,nvap:Yw,nvdash:zw,nvDash:$w,nVdash:Hw,nVDash:Vw,nvge:Ww,nvgt:Kw,nvHarr:Qw,nvinfin:Xw,nvlArr:jw,nvle:Zw,nvlt:Jw,nvltrie:e2,nvrArr:t2,nvrtrie:n2,nvsim:r2,nwarhk:a2,nwarr:i2,nwArr:o2,nwarrow:s2,nwnear:l2,Oacute:c2,oacute:u2,oast:d2,Ocirc:_2,ocirc:p2,ocir:m2,Ocy:f2,ocy:g2,odash:h2,Odblac:E2,odblac:S2,odiv:b2,odot:v2,odsold:T2,OElig:y2,oelig:C2,ofcir:R2,Ofr:N2,ofr:O2,ogon:A2,Ograve:I2,ograve:D2,ogt:x2,ohbar:w2,ohm:M2,oint:L2,olarr:k2,olcir:P2,olcross:B2,oline:F2,olt:U2,Omacr:G2,omacr:q2,Omega:Y2,omega:z2,Omicron:$2,omicron:H2,omid:V2,ominus:W2,Oopf:K2,oopf:Q2,opar:X2,OpenCurlyDoubleQuote:j2,OpenCurlyQuote:Z2,operp:J2,oplus:eM,orarr:tM,Or:nM,or:rM,ord:aM,order:iM,orderof:oM,ordf:sM,ordm:lM,origof:cM,oror:uM,orslope:dM,orv:_M,oS:pM,Oscr:mM,oscr:fM,Oslash:gM,oslash:hM,osol:EM,Otilde:SM,otilde:bM,otimesas:vM,Otimes:TM,otimes:yM,Ouml:CM,ouml:RM,ovbar:NM,OverBar:OM,OverBrace:AM,OverBracket:IM,OverParenthesis:DM,para:xM,parallel:wM,par:MM,parsim:LM,parsl:kM,part:PM,PartialD:BM,Pcy:FM,pcy:UM,percnt:GM,period:qM,permil:YM,perp:zM,pertenk:$M,Pfr:HM,pfr:VM,Phi:WM,phi:KM,phiv:QM,phmmat:XM,phone:jM,Pi:ZM,pi:JM,pitchfork:e4,piv:t4,planck:n4,planckh:r4,plankv:a4,plusacir:i4,plusb:o4,pluscir:s4,plus:l4,plusdo:c4,plusdu:u4,pluse:d4,PlusMinus:_4,plusmn:p4,plussim:m4,plustwo:f4,pm:g4,Poincareplane:h4,pointint:E4,popf:S4,Popf:b4,pound:v4,prap:T4,Pr:y4,pr:C4,prcue:R4,precapprox:N4,prec:O4,preccurlyeq:A4,Precedes:I4,PrecedesEqual:D4,PrecedesSlantEqual:x4,PrecedesTilde:w4,preceq:M4,precnapprox:L4,precneqq:k4,precnsim:P4,pre:B4,prE:F4,precsim:U4,prime:G4,Prime:q4,primes:Y4,prnap:z4,prnE:$4,prnsim:H4,prod:V4,Product:W4,profalar:K4,profline:Q4,profsurf:X4,prop:j4,Proportional:Z4,Proportion:J4,propto:eL,prsim:tL,prurel:nL,Pscr:rL,pscr:aL,Psi:iL,psi:oL,puncsp:sL,Qfr:lL,qfr:cL,qint:uL,qopf:dL,Qopf:_L,qprime:pL,Qscr:mL,qscr:fL,quaternions:gL,quatint:hL,quest:EL,questeq:SL,quot:bL,QUOT:vL,rAarr:TL,race:yL,Racute:CL,racute:RL,radic:NL,raemptyv:OL,rang:AL,Rang:IL,rangd:DL,range:xL,rangle:wL,raquo:ML,rarrap:LL,rarrb:kL,rarrbfs:PL,rarrc:BL,rarr:FL,Rarr:UL,rArr:GL,rarrfs:qL,rarrhk:YL,rarrlp:zL,rarrpl:$L,rarrsim:HL,Rarrtl:VL,rarrtl:WL,rarrw:KL,ratail:QL,rAtail:XL,ratio:jL,rationals:ZL,rbarr:JL,rBarr:ek,RBarr:tk,rbbrk:nk,rbrace:rk,rbrack:ak,rbrke:ik,rbrksld:ok,rbrkslu:sk,Rcaron:lk,rcaron:ck,Rcedil:uk,rcedil:dk,rceil:_k,rcub:pk,Rcy:mk,rcy:fk,rdca:gk,rdldhar:hk,rdquo:Ek,rdquor:Sk,rdsh:bk,real:vk,realine:Tk,realpart:yk,reals:Ck,Re:Rk,rect:Nk,reg:Ok,REG:Ak,ReverseElement:Ik,ReverseEquilibrium:Dk,ReverseUpEquilibrium:xk,rfisht:wk,rfloor:Mk,rfr:Lk,Rfr:kk,rHar:Pk,rhard:Bk,rharu:Fk,rharul:Uk,Rho:Gk,rho:qk,rhov:Yk,RightAngleBracket:zk,RightArrowBar:$k,rightarrow:Hk,RightArrow:Vk,Rightarrow:Wk,RightArrowLeftArrow:Kk,rightarrowtail:Qk,RightCeiling:Xk,RightDoubleBracket:jk,RightDownTeeVector:Zk,RightDownVectorBar:Jk,RightDownVector:e3,RightFloor:t3,rightharpoondown:n3,rightharpoonup:r3,rightleftarrows:a3,rightleftharpoons:i3,rightrightarrows:o3,rightsquigarrow:s3,RightTeeArrow:l3,RightTee:c3,RightTeeVector:u3,rightthreetimes:d3,RightTriangleBar:_3,RightTriangle:p3,RightTriangleEqual:m3,RightUpDownVector:f3,RightUpTeeVector:g3,RightUpVectorBar:h3,RightUpVector:E3,RightVectorBar:S3,RightVector:b3,ring:v3,risingdotseq:T3,rlarr:y3,rlhar:C3,rlm:R3,rmoustache:N3,rmoust:O3,rnmid:A3,roang:I3,roarr:D3,robrk:x3,ropar:w3,ropf:M3,Ropf:L3,roplus:k3,rotimes:P3,RoundImplies:B3,rpar:F3,rpargt:U3,rppolint:G3,rrarr:q3,Rrightarrow:Y3,rsaquo:z3,rscr:$3,Rscr:H3,rsh:V3,Rsh:W3,rsqb:K3,rsquo:Q3,rsquor:X3,rthree:j3,rtimes:Z3,rtri:J3,rtrie:e5,rtrif:t5,rtriltri:n5,RuleDelayed:r5,ruluhar:a5,rx:i5,Sacute:o5,sacute:s5,sbquo:l5,scap:c5,Scaron:u5,scaron:d5,Sc:_5,sc:p5,sccue:m5,sce:f5,scE:g5,Scedil:h5,scedil:E5,Scirc:S5,scirc:b5,scnap:v5,scnE:T5,scnsim:y5,scpolint:C5,scsim:R5,Scy:N5,scy:O5,sdotb:A5,sdot:I5,sdote:D5,searhk:x5,searr:w5,seArr:M5,searrow:L5,sect:k5,semi:P5,seswar:B5,setminus:F5,setmn:U5,sext:G5,Sfr:q5,sfr:Y5,sfrown:z5,sharp:$5,SHCHcy:H5,shchcy:V5,SHcy:W5,shcy:K5,ShortDownArrow:Q5,ShortLeftArrow:X5,shortmid:j5,shortparallel:Z5,ShortRightArrow:J5,ShortUpArrow:eP,shy:tP,Sigma:nP,sigma:rP,sigmaf:aP,sigmav:iP,sim:oP,simdot:sP,sime:lP,simeq:cP,simg:uP,simgE:dP,siml:_P,simlE:pP,simne:mP,simplus:fP,simrarr:gP,slarr:hP,SmallCircle:EP,smallsetminus:SP,smashp:bP,smeparsl:vP,smid:TP,smile:yP,smt:CP,smte:RP,smtes:NP,SOFTcy:OP,softcy:AP,solbar:IP,solb:DP,sol:xP,Sopf:wP,sopf:MP,spades:LP,spadesuit:kP,spar:PP,sqcap:BP,sqcaps:FP,sqcup:UP,sqcups:GP,Sqrt:qP,sqsub:YP,sqsube:zP,sqsubset:$P,sqsubseteq:HP,sqsup:VP,sqsupe:WP,sqsupset:KP,sqsupseteq:QP,square:XP,Square:jP,SquareIntersection:ZP,SquareSubset:JP,SquareSubsetEqual:e6,SquareSuperset:t6,SquareSupersetEqual:n6,SquareUnion:r6,squarf:a6,squ:i6,squf:o6,srarr:s6,Sscr:l6,sscr:c6,ssetmn:u6,ssmile:d6,sstarf:_6,Star:p6,star:m6,starf:f6,straightepsilon:g6,straightphi:h6,strns:E6,sub:S6,Sub:b6,subdot:v6,subE:T6,sube:y6,subedot:C6,submult:R6,subnE:N6,subne:O6,subplus:A6,subrarr:I6,subset:D6,Subset:x6,subseteq:w6,subseteqq:M6,SubsetEqual:L6,subsetneq:k6,subsetneqq:P6,subsim:B6,subsub:F6,subsup:U6,succapprox:G6,succ:q6,succcurlyeq:Y6,Succeeds:z6,SucceedsEqual:$6,SucceedsSlantEqual:H6,SucceedsTilde:V6,succeq:W6,succnapprox:K6,succneqq:Q6,succnsim:X6,succsim:j6,SuchThat:Z6,sum:J6,Sum:e7,sung:t7,sup1:n7,sup2:r7,sup3:a7,sup:i7,Sup:o7,supdot:s7,supdsub:l7,supE:c7,supe:u7,supedot:d7,Superset:_7,SupersetEqual:p7,suphsol:m7,suphsub:f7,suplarr:g7,supmult:h7,supnE:E7,supne:S7,supplus:b7,supset:v7,Supset:T7,supseteq:y7,supseteqq:C7,supsetneq:R7,supsetneqq:N7,supsim:O7,supsub:A7,supsup:I7,swarhk:D7,swarr:x7,swArr:w7,swarrow:M7,swnwar:L7,szlig:k7,Tab:P7,target:B7,Tau:F7,tau:U7,tbrk:G7,Tcaron:q7,tcaron:Y7,Tcedil:z7,tcedil:$7,Tcy:H7,tcy:V7,tdot:W7,telrec:K7,Tfr:Q7,tfr:X7,there4:j7,therefore:Z7,Therefore:J7,Theta:e8,theta:t8,thetasym:n8,thetav:r8,thickapprox:a8,thicksim:i8,ThickSpace:o8,ThinSpace:s8,thinsp:l8,thkap:c8,thksim:u8,THORN:d8,thorn:_8,tilde:p8,Tilde:m8,TildeEqual:f8,TildeFullEqual:g8,TildeTilde:h8,timesbar:E8,timesb:S8,times:b8,timesd:v8,tint:T8,toea:y8,topbot:C8,topcir:R8,top:N8,Topf:O8,topf:A8,topfork:I8,tosa:D8,tprime:x8,trade:w8,TRADE:M8,triangle:L8,triangledown:k8,triangleleft:P8,trianglelefteq:B8,triangleq:F8,triangleright:U8,trianglerighteq:G8,tridot:q8,trie:Y8,triminus:z8,TripleDot:$8,triplus:H8,trisb:V8,tritime:W8,trpezium:K8,Tscr:Q8,tscr:X8,TScy:j8,tscy:Z8,TSHcy:J8,tshcy:e9,Tstrok:t9,tstrok:n9,twixt:r9,twoheadleftarrow:a9,twoheadrightarrow:i9,Uacute:o9,uacute:s9,uarr:l9,Uarr:c9,uArr:u9,Uarrocir:d9,Ubrcy:_9,ubrcy:p9,Ubreve:m9,ubreve:f9,Ucirc:g9,ucirc:h9,Ucy:E9,ucy:S9,udarr:b9,Udblac:v9,udblac:T9,udhar:y9,ufisht:C9,Ufr:R9,ufr:N9,Ugrave:O9,ugrave:A9,uHar:I9,uharl:D9,uharr:x9,uhblk:w9,ulcorn:M9,ulcorner:L9,ulcrop:k9,ultri:P9,Umacr:B9,umacr:F9,uml:U9,UnderBar:G9,UnderBrace:q9,UnderBracket:Y9,UnderParenthesis:z9,Union:$9,UnionPlus:H9,Uogon:V9,uogon:W9,Uopf:K9,uopf:Q9,UpArrowBar:X9,uparrow:j9,UpArrow:Z9,Uparrow:J9,UpArrowDownArrow:eB,updownarrow:tB,UpDownArrow:nB,Updownarrow:rB,UpEquilibrium:aB,upharpoonleft:iB,upharpoonright:oB,uplus:sB,UpperLeftArrow:lB,UpperRightArrow:cB,upsi:uB,Upsi:dB,upsih:_B,Upsilon:pB,upsilon:mB,UpTeeArrow:fB,UpTee:gB,upuparrows:hB,urcorn:EB,urcorner:SB,urcrop:bB,Uring:vB,uring:TB,urtri:yB,Uscr:CB,uscr:RB,utdot:NB,Utilde:OB,utilde:AB,utri:IB,utrif:DB,uuarr:xB,Uuml:wB,uuml:MB,uwangle:LB,vangrt:kB,varepsilon:PB,varkappa:BB,varnothing:FB,varphi:UB,varpi:GB,varpropto:qB,varr:YB,vArr:zB,varrho:$B,varsigma:HB,varsubsetneq:VB,varsubsetneqq:WB,varsupsetneq:KB,varsupsetneqq:QB,vartheta:XB,vartriangleleft:jB,vartriangleright:ZB,vBar:JB,Vbar:eF,vBarv:tF,Vcy:nF,vcy:rF,vdash:aF,vDash:iF,Vdash:oF,VDash:sF,Vdashl:lF,veebar:cF,vee:uF,Vee:dF,veeeq:_F,vellip:pF,verbar:mF,Verbar:fF,vert:gF,Vert:hF,VerticalBar:EF,VerticalLine:SF,VerticalSeparator:bF,VerticalTilde:vF,VeryThinSpace:TF,Vfr:yF,vfr:CF,vltri:RF,vnsub:NF,vnsup:OF,Vopf:AF,vopf:IF,vprop:DF,vrtri:xF,Vscr:wF,vscr:MF,vsubnE:LF,vsubne:kF,vsupnE:PF,vsupne:BF,Vvdash:FF,vzigzag:UF,Wcirc:GF,wcirc:qF,wedbar:YF,wedge:zF,Wedge:$F,wedgeq:HF,weierp:VF,Wfr:WF,wfr:KF,Wopf:QF,wopf:XF,wp:jF,wr:ZF,wreath:JF,Wscr:eU,wscr:tU,xcap:nU,xcirc:rU,xcup:aU,xdtri:iU,Xfr:oU,xfr:sU,xharr:lU,xhArr:cU,Xi:uU,xi:dU,xlarr:_U,xlArr:pU,xmap:mU,xnis:fU,xodot:gU,Xopf:hU,xopf:EU,xoplus:SU,xotime:bU,xrarr:vU,xrArr:TU,Xscr:yU,xscr:CU,xsqcup:RU,xuplus:NU,xutri:OU,xvee:AU,xwedge:IU,Yacute:DU,yacute:xU,YAcy:wU,yacy:MU,Ycirc:LU,ycirc:kU,Ycy:PU,ycy:BU,yen:FU,Yfr:UU,yfr:GU,YIcy:qU,yicy:YU,Yopf:zU,yopf:$U,Yscr:HU,yscr:VU,YUcy:WU,yucy:KU,yuml:QU,Yuml:XU,Zacute:jU,zacute:ZU,Zcaron:JU,zcaron:eG,Zcy:tG,zcy:nG,Zdot:rG,zdot:aG,zeetrf:iG,ZeroWidthSpace:oG,Zeta:sG,zeta:lG,zfr:cG,Zfr:uG,ZHcy:dG,zhcy:_G,zigrarr:pG,zopf:mG,Zopf:fG,Zscr:gG,zscr:hG,zwj:EG,zwnj:SG},Ol=bG,zi=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,Wn={},vs={};function vG(e){var t,n,r=vs[e];if(r)return r;for(r=vs[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),/^[0-9a-z]$/i.test(n)?r.push(n):r.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2));for(t=0;t=55296&&l<=57343){if(l>=55296&&l<=56319&&r+1=56320&&u<=57343)){d+=encodeURIComponent(e[r]+e[r+1]),r++;continue}d+="%EF%BF%BD";continue}d+=encodeURIComponent(e[r])}return d}ha.defaultChars=";/?:@&=+$,-_.!~*'()#";ha.componentChars="-_.!~*'()";var TG=ha,Ts={};function yG(e){var t,n,r=Ts[e];if(r)return r;for(r=Ts[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),r.push(n);for(t=0;t=55296&&g<=57343?h+="\uFFFD\uFFFD\uFFFD":h+=String.fromCharCode(g),i+=6;continue}if((u&248)===240&&i+91114111?h+="\uFFFD\uFFFD\uFFFD\uFFFD":(g-=65536,h+=String.fromCharCode(55296+(g>>10),56320+(g&1023))),i+=9;continue}h+="\uFFFD"}return h})}Ea.defaultChars=";/?:@&=+$,#";Ea.componentChars="";var CG=Ea,RG=function(t){var n="";return n+=t.protocol||"",n+=t.slashes?"//":"",n+=t.auth?t.auth+"@":"",t.hostname&&t.hostname.indexOf(":")!==-1?n+="["+t.hostname+"]":n+=t.hostname||"",n+=t.port?":"+t.port:"",n+=t.pathname||"",n+=t.search||"",n+=t.hash||"",n};function da(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var NG=/^([a-z0-9.+-]+:)/i,OG=/:[0-9]*$/,AG=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,IG=["<",">",'"',"`"," ","\r",` `," "],DG=["{","}","|","\\","^","`"].concat(IG),xG=["'"].concat(DG),ys=["%","/","?",";","#"].concat(xG),Cs=["/","?","#"],wG=255,Rs=/^[+a-z0-9A-Z_-]{0,63}$/,MG=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Ns={javascript:!0,"javascript:":!0},Os={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function LG(e,t){if(e&&e instanceof da)return e;var n=new da;return n.parse(e,t),n}da.prototype.parse=function(e,t){var n,r,i,l,u,c=e;if(c=c.trim(),!t&&e.split("#").length===1){var d=AG.exec(c);if(d)return this.pathname=d[1],d[2]&&(this.search=d[2]),this}var f=NG.exec(c);if(f&&(f=f[0],i=f.toLowerCase(),this.protocol=f,c=c.substr(f.length)),(t||f||c.match(/^\/\/[^@\/]+@[^@\/]+/))&&(u=c.substr(0,2)==="//",u&&!(f&&Ns[f])&&(c=c.substr(2),this.slashes=!0)),!Ns[f]&&(u||f&&!Os[f])){var g=-1;for(n=0;n127?E+="x":E+=C[v];if(!E.match(Rs)){var S=b.slice(0,n),A=b.slice(n+1),P=C.match(MG);P&&(S.push(P[1]),A.unshift(P[2])),A.length&&(c=A.join(".")+c),this.hostname=S.join(".");break}}}}this.hostname.length>wG&&(this.hostname=""),y&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var F=c.indexOf("#");F!==-1&&(this.hash=c.substr(F),c=c.slice(0,F));var G=c.indexOf("?");return G!==-1&&(this.search=c.substr(G),c=c.slice(0,G)),c&&(this.pathname=c),Os[i]&&this.hostname&&!this.pathname&&(this.pathname=""),this};da.prototype.parseHost=function(e){var t=OG.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var kG=LG;Wn.encode=TG;Wn.decode=CG;Wn.format=RG;Wn.parse=kG;var Kn={},Al=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Il=/[\0-\x1F\x7F-\x9F]/,PG=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,Dl=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/;Kn.Any=Al;Kn.Cc=Il;Kn.Cf=PG;Kn.P=zi;Kn.Z=Dl;(function(e){function t(x){return Object.prototype.toString.call(x)}function n(x){return t(x)==="[object String]"}var r=Object.prototype.hasOwnProperty;function i(x,Y){return r.call(x,Y)}function l(x){var Y=Array.prototype.slice.call(arguments,1);return Y.forEach(function(V){if(!!V){if(typeof V!="object")throw new TypeError(V+"must be object");Object.keys(V).forEach(function(j){x[j]=V[j]})}}),x}function u(x,Y,V){return[].concat(x.slice(0,Y),V,x.slice(Y+1))}function c(x){return!(x>=55296&&x<=57343||x>=64976&&x<=65007||(x&65535)===65535||(x&65535)===65534||x>=0&&x<=8||x===11||x>=14&&x<=31||x>=127&&x<=159||x>1114111)}function d(x){if(x>65535){x-=65536;var Y=55296+(x>>10),V=56320+(x&1023);return String.fromCharCode(Y,V)}return String.fromCharCode(x)}var f=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,g=/&([a-z#][a-z0-9]{1,31});/gi,h=new RegExp(f.source+"|"+g.source,"gi"),p=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,m=Ol;function y(x,Y){var V=0;return i(m,Y)?m[Y]:Y.charCodeAt(0)===35&&p.test(Y)&&(V=Y[1].toLowerCase()==="x"?parseInt(Y.slice(2),16):parseInt(Y.slice(1),10),c(V))?d(V):x}function b(x){return x.indexOf("\\")<0?x:x.replace(f,"$1")}function C(x){return x.indexOf("\\")<0&&x.indexOf("&")<0?x:x.replace(h,function(Y,V,j){return V||y(Y,j)})}var E=/[&<>"]/,v=/[&<>"]/g,N={"&":"&","<":"<",">":">",'"':"""};function S(x){return N[x]}function A(x){return E.test(x)?x.replace(v,S):x}var P=/[.?*+^$[\]\\(){}|-]/g;function F(x){return x.replace(P,"\\$&")}function G(x){switch(x){case 9:case 32:return!0}return!1}function z(x){if(x>=8192&&x<=8202)return!0;switch(x){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}var k=zi;function L(x){return k.test(x)}function w(x){switch(x){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function M(x){return x=x.trim().replace(/\s+/g," "),"\u1E9E".toLowerCase()==="\u1E7E"&&(x=x.replace(/ẞ/g,"\xDF")),x.toLowerCase().toUpperCase()}e.lib={},e.lib.mdurl=Wn,e.lib.ucmicro=Kn,e.assign=l,e.isString=n,e.has=i,e.unescapeMd=b,e.unescapeAll=C,e.isValidEntityCode=c,e.fromCodePoint=d,e.escapeHtml=A,e.arrayReplaceAt=u,e.isSpace=G,e.isWhiteSpace=z,e.isMdAsciiPunct=w,e.isPunctChar=L,e.escapeRE=F,e.normalizeReference=M})(Ze);var Sa={},BG=function(t,n,r){var i,l,u,c,d=-1,f=t.posMax,g=t.pos;for(t.pos=n+1,i=1;t.pos32))return d;if(i===41){if(l===0)break;l--}n++}return c===n||l!==0||(d.str=As(t.slice(c,n)),d.lines=u,d.pos=n,d.ok=!0),d},UG=Ze.unescapeAll,GG=function(t,n,r){var i,l,u=0,c=n,d={ok:!1,pos:0,lines:0,str:""};if(n>=r||(l=t.charCodeAt(n),l!==34&&l!==39&&l!==40))return d;for(n++,l===40&&(l=41);n"+yn(e[t].content)+""};Kt.code_block=function(e,t,n,r,i){var l=e[t];return""+yn(e[t].content)+` `};Kt.fence=function(e,t,n,r,i){var l=e[t],u=l.info?YG(l.info).trim():"",c="",d="",f,g,h,p,m;return u&&(h=u.split(/(\s+)/g),c=h[0],d=h.slice(2).join("")),n.highlight?f=n.highlight(l.content,c,d)||yn(l.content):f=yn(l.content),f.indexOf("me.offsetTop+ve*1.5&&pe.insert(` `)}return pe}function st(me,pe){var ve={},Ne=me.style||{};return Ne.fontStyle&&ae(me).fontStyle==="italic"&&(ve.italic=!0),Ne.fontWeight&&(ae(me).fontWeight.startsWith("bold")||parseInt(ae(me).fontWeight)>=700)&&(ve.bold=!0),Object.keys(ve).length>0&&(pe=Z(pe,ve)),parseFloat(Ne.textIndent||0)>0&&(pe=new h.default().insert(" ").concat(pe)),pe}function we(me,pe){var ve=me.data;if(me.parentNode.tagName==="O:P")return pe.insert(ve.trim());if(ve.trim().length===0&&me.parentNode.classList.contains("ql-clipboard"))return pe;if(!ae(me.parentNode).whiteSpace.startsWith("pre")){var Ne=function(Ye,ze){return ze=ze.replace(/[^\u00a0]/g,""),ze.length<1&&Ye?" ":ze};ve=ve.replace(/\r\n/g," ").replace(/\n/g," "),ve=ve.replace(/\s\s+/g,Ne.bind(Ne,!0)),(me.previousSibling==null&&K(me.parentNode)||me.previousSibling!=null&&K(me.previousSibling))&&(ve=ve.replace(/^\s+/,Ne.bind(Ne,!1))),(me.nextSibling==null&&K(me.parentNode)||me.nextSibling!=null&&K(me.nextSibling))&&(ve=ve.replace(/\s+$/,Ne.bind(Ne,!1)))}return pe.insert(ve)}r.default=Q,r.matchAttributor=ce,r.matchBlot=he,r.matchNewline=qe,r.matchSpacing=We,r.matchText=we},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var l=function(){function y(b,C){for(var E=0;E '},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var l=function(){function y(b,C){for(var E=0;Em.right&&(b=m.right-y.right,this.root.style.left=h+b+"px"),y.leftm.bottom){var C=y.bottom-y.top,E=g.bottom-g.top+C;this.root.style.top=p-E+"px",this.root.classList.add("ql-flip")}return b}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),d}();r.default=c},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var l=function(){function k(L,w){var M=[],x=!0,Y=!1,V=void 0;try{for(var j=L[Symbol.iterator](),le;!(x=(le=j.next()).done)&&(M.push(le.value),!(w&&M.length===w));x=!0);}catch(ee){Y=!0,V=ee}finally{try{!x&&j.return&&j.return()}finally{if(Y)throw V}}return M}return function(L,w){if(Array.isArray(L))return L;if(Symbol.iterator in Object(L))return k(L,w);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u=function k(L,w,M){L===null&&(L=Function.prototype);var x=Object.getOwnPropertyDescriptor(L,w);if(x===void 0){var Y=Object.getPrototypeOf(L);return Y===null?void 0:k(Y,w,M)}else{if("value"in x)return x.value;var V=x.get;return V===void 0?void 0:V.call(M)}},c=function(){function k(L,w){for(var M=0;M','','',''].join(""),r.default=G},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var l=i(29),u=be(l),c=i(36),d=i(38),f=i(64),g=i(65),h=be(g),p=i(66),m=be(p),y=i(67),b=be(y),C=i(37),E=i(26),v=i(39),N=i(40),S=i(56),A=be(S),P=i(68),F=be(P),G=i(27),z=be(G),k=i(69),L=be(k),w=i(70),M=be(w),x=i(71),Y=be(x),V=i(72),j=be(V),le=i(73),ee=be(le),X=i(13),U=be(X),Q=i(74),Z=be(Q),ae=i(75),se=be(ae),K=i(57),re=be(K),de=i(41),ce=be(de),he=i(28),Ae=be(he),Le=i(59),Ge=be(Le),qe=i(60),We=be(qe),st=i(61),we=be(st),me=i(108),pe=be(me),ve=i(62),Ne=be(ve);function be(Ye){return Ye&&Ye.__esModule?Ye:{default:Ye}}u.default.register({"attributors/attribute/direction":d.DirectionAttribute,"attributors/class/align":c.AlignClass,"attributors/class/background":C.BackgroundClass,"attributors/class/color":E.ColorClass,"attributors/class/direction":d.DirectionClass,"attributors/class/font":v.FontClass,"attributors/class/size":N.SizeClass,"attributors/style/align":c.AlignStyle,"attributors/style/background":C.BackgroundStyle,"attributors/style/color":E.ColorStyle,"attributors/style/direction":d.DirectionStyle,"attributors/style/font":v.FontStyle,"attributors/style/size":N.SizeStyle},!0),u.default.register({"formats/align":c.AlignClass,"formats/direction":d.DirectionClass,"formats/indent":f.IndentClass,"formats/background":C.BackgroundStyle,"formats/color":E.ColorStyle,"formats/font":v.FontClass,"formats/size":N.SizeClass,"formats/blockquote":h.default,"formats/code-block":U.default,"formats/header":m.default,"formats/list":b.default,"formats/bold":A.default,"formats/code":X.Code,"formats/italic":F.default,"formats/link":z.default,"formats/script":L.default,"formats/strike":M.default,"formats/underline":Y.default,"formats/image":j.default,"formats/video":ee.default,"formats/list/item":y.ListItem,"modules/formula":Z.default,"modules/syntax":se.default,"modules/toolbar":re.default,"themes/bubble":pe.default,"themes/snow":Ne.default,"ui/icons":ce.default,"ui/picker":Ae.default,"ui/icon-picker":We.default,"ui/color-picker":Ge.default,"ui/tooltip":we.default},!0),r.default=u.default},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.IndentClass=void 0;var l=function(){function b(C,E){for(var v=0;v0&&this.children.tail.format(F,G)}},{key:"formats",value:function(){return y({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(F,G){if(F instanceof v)u(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"insertBefore",this).call(this,F,G);else{var z=G==null?this.length():G.offset(this),k=this.split(z);k.parent.insertBefore(F,k)}}},{key:"optimize",value:function(F){u(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"optimize",this).call(this,F);var G=this.next;G!=null&&G.prev===this&&G.statics.blotName===this.statics.blotName&&G.domNode.tagName===this.domNode.tagName&&G.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(G.moveChildren(this),G.remove())}},{key:"replace",value:function(F){if(F.statics.blotName!==this.statics.blotName){var G=d.default.create(this.statics.defaultChild);F.moveChildren(G),this.appendChild(G)}u(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"replace",this).call(this,F)}}]),A}(p.default);N.blotName="list",N.scope=d.default.Scope.BLOCK_BLOT,N.tagName=["OL","UL"],N.defaultChild="list-item",N.allowedChildren=[v],r.ListItem=v,r.default=N},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var l=i(56),u=c(l);function c(p){return p&&p.__esModule?p:{default:p}}function d(p,m){if(!(p instanceof m))throw new TypeError("Cannot call a class as a function")}function f(p,m){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:p}function g(p,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);p.prototype=Object.create(m&&m.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(p,m):p.__proto__=m)}var h=function(p){g(m,p);function m(){return d(this,m),f(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return m}(u.default);h.blotName="italic",h.tagName=["EM","I"],r.default=h},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var l=function(){function y(b,C){for(var E=0;E-1?S?this.domNode.setAttribute(N,S):this.domNode.removeAttribute(N):u(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"format",this).call(this,N,S)}}],[{key:"create",value:function(N){var S=u(E.__proto__||Object.getPrototypeOf(E),"create",this).call(this,N);return typeof N=="string"&&S.setAttribute("src",this.sanitize(N)),S}},{key:"formats",value:function(N){return y.reduce(function(S,A){return N.hasAttribute(A)&&(S[A]=N.getAttribute(A)),S},{})}},{key:"match",value:function(N){return/\.(jpe?g|gif|png)$/.test(N)||/^data:image\/.+;base64/.test(N)}},{key:"sanitize",value:function(N){return(0,f.sanitize)(N,["http","https","data"])?N:"//:0"}},{key:"value",value:function(N){return N.getAttribute("src")}}]),E}(d.default.Embed);b.blotName="image",b.tagName="IMG",r.default=b},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var l=function(){function C(E,v){for(var N=0;N-1?S?this.domNode.setAttribute(N,S):this.domNode.removeAttribute(N):u(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"format",this).call(this,N,S)}}],[{key:"create",value:function(N){var S=u(E.__proto__||Object.getPrototypeOf(E),"create",this).call(this,N);return S.setAttribute("frameborder","0"),S.setAttribute("allowfullscreen",!0),S.setAttribute("src",this.sanitize(N)),S}},{key:"formats",value:function(N){return y.reduce(function(S,A){return N.hasAttribute(A)&&(S[A]=N.getAttribute(A)),S},{})}},{key:"sanitize",value:function(N){return f.default.sanitize(N)}},{key:"value",value:function(N){return N.getAttribute("src")}}]),E}(c.BlockEmbed);b.blotName="video",b.className="ql-video",b.tagName="IFRAME",r.default=b},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.FormulaBlot=void 0;var l=function(){function N(S,A){for(var P=0;P0||this.cachedText==null)&&(this.domNode.innerHTML=z(k),this.domNode.normalize(),this.attach()),this.cachedText=k)}}]),F}(y.default);N.className="ql-syntax";var S=new d.default.Attributor.Class("token","hljs",{scope:d.default.Scope.INLINE}),A=function(P){v(F,P),l(F,null,[{key:"register",value:function(){g.default.register(S,!0),g.default.register(N,!0)}}]);function F(G,z){C(this,F);var k=E(this,(F.__proto__||Object.getPrototypeOf(F)).call(this,G,z));if(typeof k.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var L=null;return k.quill.on(g.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(L),L=setTimeout(function(){k.highlight(),L=null},k.options.interval)}),k.highlight(),k}return l(F,[{key:"highlight",value:function(){var z=this;if(!this.quill.selection.composing){this.quill.update(g.default.sources.USER);var k=this.quill.getSelection();this.quill.scroll.descendants(N).forEach(function(L){L.highlight(z.options.highlight)}),this.quill.update(g.default.sources.SILENT),k!=null&&this.quill.setSelection(k,g.default.sources.SILENT)}}}]),F}(p.default);A.DEFAULTS={highlight:function(){return window.hljs==null?null:function(P){var F=window.hljs.highlightAuto(P);return F.value}}(),interval:1e3},r.CodeBlock=N,r.CodeToken=S,r.default=A},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.BubbleTooltip=void 0;var l=function F(G,z,k){G===null&&(G=Function.prototype);var L=Object.getOwnPropertyDescriptor(G,z);if(L===void 0){var w=Object.getPrototypeOf(G);return w===null?void 0:F(w,z,k)}else{if("value"in L)return L.value;var M=L.get;return M===void 0?void 0:M.call(k)}},u=function(){function F(G,z){for(var k=0;k0&&Y===g.default.sources.USER){L.show(),L.root.style.left="0px",L.root.style.width="",L.root.style.width=L.root.offsetWidth+"px";var V=L.quill.getLines(M.index,M.length);if(V.length===1)L.position(L.quill.getBounds(M));else{var j=V[V.length-1],le=L.quill.getIndex(j),ee=Math.min(j.length()-1,M.index+M.length-le),X=L.quill.getBounds(new m.Range(le,ee));L.position(X)}}else document.activeElement!==L.textbox&&L.quill.hasFocus()&&L.hide()}),L}return u(G,[{key:"listen",value:function(){var k=this;l(G.prototype.__proto__||Object.getPrototypeOf(G.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){k.root.classList.remove("ql-editing")}),this.quill.on(g.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!k.root.classList.contains("ql-hidden")){var L=k.quill.getSelection();L!=null&&k.position(k.quill.getBounds(L))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(k){var L=l(G.prototype.__proto__||Object.getPrototypeOf(G.prototype),"position",this).call(this,k),w=this.root.querySelector(".ql-tooltip-arrow");if(w.style.marginLeft="",L===0)return L;w.style.marginLeft=-1*L-w.offsetWidth/2+"px"}}]),G}(h.BaseTooltip);P.TEMPLATE=['','
','','',"
"].join(""),r.BubbleTooltip=P,r.default=A},function(n,r,i){n.exports=i(63)}]).default})})(Cc);var rn=qu(Cc.exports);function ua(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ua=function(t){return typeof t}:ua=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ua(e)}function Rc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function El(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(d){throw d},f:i}}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 l=!0,u=!1,c;return{s:function(){n=n.call(e)},n:function(){var d=n.next();return l=d.done,d},e:function(d){u=!0,c=d},f:function(){try{!l&&n.return!=null&&n.return()}finally{if(u)throw c}}}}var tn={TAB:9,ENTER:13,ESCAPE:27,UP:38,DOWN:40};function nJ(e,t,n){var r=e;return Object.keys(t).forEach(function(i){n.indexOf(i)>-1?r.dataset[i]=t[i]:delete r.dataset[i]}),r}function rJ(e,t){return t.reduce(function(n,r){var i=e.lastIndexOf(r);return i>n.mentionCharIndex?{mentionChar:r,mentionCharIndex:i}:{mentionChar:n.mentionChar,mentionCharIndex:n.mentionCharIndex}},{mentionChar:null,mentionCharIndex:-1})}function aJ(e,t){return t.test(e)}function iJ(e,t,n){return e>-1?!(n&&!(e===0||!!t[e-1].match(/\s/g))):!1}function oJ(e){return ua(e)!=="object"||e===null?e:JSON.parse(JSON.stringify(e))}var sJ=rn.import("blots/embed"),Oa=function(e){QZ(n,e);var t=ZZ(n);function n(r,i){var l;return Rc(this,n),l=t.call(this,r,i),Sl(Fi(l),"hoverHandler",void 0),Sl(Fi(l),"hoverHandler",void 0),l.clickHandler=null,l.hoverHandler=null,l.mounted=!1,l}return Nc(n,[{key:"attach",value:function(){Hn(mn(n.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(){Hn(mn(n.prototype),"detach",this).call(this),this.mounted=!1,this.clickHandler&&(this.domNode.removeEventListener("click",this.clickHandler),this.clickHandler=null)}},{key:"getClickHandler",value:function(){var i=this;return function(l){var u=i.buildEvent("mention-clicked",l);window.dispatchEvent(u),l.preventDefault()}}},{key:"getHoverHandler",value:function(){var i=this;return function(l){var u=i.buildEvent("mention-hovered",l);window.dispatchEvent(u),l.preventDefault()}}},{key:"buildEvent",value:function(i,l){var u=new Event(i,{bubbles:!0,cancelable:!0});return u.value=ga({},this.domNode.dataset),u.event=l,u}}],[{key:"create",value:function(i){var l=Hn(mn(n),"create",this).call(this),u=document.createElement("span");return u.className="ql-mention-denotation-char",u.innerHTML=i.denotationChar,l.appendChild(u),l.innerHTML+=i.value,n.setDataValues(l,i)}},{key:"setDataValues",value:function(i,l){var u=i;return Object.keys(l).forEach(function(c){u.dataset[c]=l[c]}),u}},{key:"value",value:function(i){return i.dataset}}]),n}(sJ);Oa.blotName="mention";Oa.tagName="span";Oa.className="mention";rn.register(Oa);var lJ=function(){function e(t,n){var r=this;Rc(this,e),this.isOpen=!1,this.itemIndex=0,this.mentionCharPos=null,this.cursorPos=null,this.values=[],this.suspendMouseEnter=!1,this.existingSourceExecutionToken=null,this.quill=t,this.options={source:null,renderItem:function(d){return"".concat(d.value)},renderLoading:function(){return null},onSelect:function(d,f){f(d)},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:[tn.ENTER]},ga(this.options,n,{dataAttributes:Array.isArray(n.dataAttributes)?this.options.dataAttributes.concat(n.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",t.root.setAttribute("aria-owns","quill-mention-list"),this.mentionList.className=this.options.mentionListClass?this.options.mentionListClass:"",this.mentionContainer.appendChild(this.mentionList),t.on("text-change",this.onTextChange.bind(this)),t.on("selection-change",this.onSelectionChange.bind(this)),t.container.addEventListener("paste",function(){setTimeout(function(){var c=t.getSelection();r.onSelectionChange(c)})}),t.keyboard.addBinding({key:tn.TAB},this.selectHandler.bind(this)),t.keyboard.bindings[tn.TAB].unshift(t.keyboard.bindings[tn.TAB].pop());var i=tJ(this.options.selectKeys),l;try{for(i.s();!(l=i.n()).done;){var u=l.value;t.keyboard.addBinding({key:u},this.selectHandler.bind(this))}}catch(c){i.e(c)}finally{i.f()}t.keyboard.bindings[tn.ENTER].unshift(t.keyboard.bindings[tn.ENTER].pop()),t.keyboard.addBinding({key:tn.ESCAPE},this.escapeHandler.bind(this)),t.keyboard.addBinding({key:tn.UP},this.upHandler.bind(this)),t.keyboard.addBinding({key:tn.DOWN},this.downHandler.bind(this))}return Nc(e,[{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 n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,r=0;rc-i&&(this.mentionContainer.scrollTop+=l-c+i)}}},{key:"getItemData",value:function(){var n=this.mentionList.childNodes[this.itemIndex].dataset.link,r=typeof n!="undefined",i=this.mentionList.childNodes[this.itemIndex].dataset.target;return r&&(this.mentionList.childNodes[this.itemIndex].dataset.value='-1&&(p=setTimeout(function(){g(),h(),i({statusText:"Request Timeout",status:408})},n)),window[u]=function(y){clearTimeout(p),g(),h(),r(y)};var m=document.createElement("script");m.addEventListener("error",f),m.src=e+(/\?/.test(e)?"&":"?")+d,document.body.appendChild(m)})}var uJ=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"chat-emoji-wrapper"},[n("div",{staticClass:"chat-emoji-box"},[e.type==="emosearch"?n("div",{staticClass:"chat-emoji-emosearch"},[n("Input",{attrs:{clearable:"",placeholder:e.$L("\u641C\u7D22\u8868\u60C5")},model:{value:e.emosearchKey,callback:function(r){e.emosearchKey=r},expression:"emosearchKey"}},[n("Icon",{class:{"icon-loading":e.emosearchLoad},attrs:{slot:"prefix",type:e.emosearchLoad?"ios-loading":"ios-search"},slot:"prefix"})],1)],1):e.type==="emoji"?n("div",{staticClass:"chat-emoji-nav"},e._l(e.emojiNavList,function(r){var i;return n("div",{key:r.type,class:(i={},i[`i-${r.name}`]=!0,i.active=r.type===e.emojiNavActive,i),domProps:{innerHTML:e._s(r.content)},on:{click:function(l){e.emojiNavActive=r.type}}})}),0):e._e(),n("ul",{staticClass:"scrollbar-overlay",class:[e.type,"no-dark-content"]},e._l(e.list,function(r){return n("li",{on:{click:function(i){return e.onSelect(i,r)}}},[r.type==="emoticon"?n("img",{attrs:{src:r.src,title:r.name,alt:r.name}}):n("span",{attrs:{title:r.name},domProps:{innerHTML:e._s(r.html)}})])}),0)]),e.onlyEmoji?e._e():n("ul",{staticClass:"chat-emoji-menu"},[n("li",{class:{active:e.type==="emosearch"},on:{click:function(r){e.type="emosearch"}}},[n("i",{staticClass:"taskfont"},[e._v("\uE6F8")])]),n("li",{class:{active:e.type==="emoji"},on:{click:function(r){e.type="emoji"}}},[n("span",{staticClass:"no-dark-content"},[e._v("\u{1F600}")])]),e._l(e.emoticonData,function(r){return n("li",{class:{active:e.type==="emoticon"&&e.emoticonPath==r.path},on:{click:function(i){return e.onEmoticon(r.path)}}},[n("img",{attrs:{title:r.name,alt:r.name,src:r.src}})])})],2)])},dJ=[];const _J={name:"ChatEmoji",props:{searchKey:{type:String,default:""},onlyEmoji:{type:Boolean,default:!1}},data(){return{type:"emoji",emojiNavActive:"p",emojiNavList:[{type:"p",name:"people",content:''},{type:"n",name:"nature",content:` -`},{type:"d",name:"food",content:''},{type:"s",name:"symbols",content:''},{type:"a",name:"activity",content:''},{type:"t",name:"travel",content:''},{type:"o",name:"objects",content:''},{type:"f",name:"flags",content:''}],emoticonPath:"",emosearchKey:"",emosearchCache:null,emosearchLoad:!1,emosearchTimer:null,emosearchList:[],emojiData:[],emoticonData:[]}},mounted(){this.initData()},watch:{type(){this.onEmosearch()},emosearchKey(){this.onEmosearch()},searchKey:{handler(e){this.emosearchKey=e},immediate:!0}},computed:{list(){if(this.type==="emoji")return this.emojiData.filter(e=>e.category===this.emojiNavActive);if(this.type==="emosearch")return this.emosearchList;if(this.type==="emoticon"){const e=this.emoticonData.find(({path:t})=>t===this.emoticonPath);if(e)return e.list}return[]}},methods:{initData(){$A.loadScriptS(["js/emoji.all.js","js/emoticon.all.js"]).then(e=>{const t=$A.apiUrl("../images/emoticon");$A.isArray(window.emojiData)&&(this.emojiData=window.emojiData.sort(function(n,r){return n.emoji_order-r.emoji_order}).map(n=>({type:"emoji",name:n.name,category:n.category,html:n.code_decimal}))),$A.isArray(window.emoticonData)&&(this.emoticonData=window.emoticonData.map(n=>Object.assign(n,{src:`${t}/${n.path}/${n.icon}`,list:n.list.map(r=>Object.assign(r,{type:"emoticon",asset:`images/emoticon/${n.path}/${r.path}`,src:`${t}/${n.path}/${r.path}`}))})))})},onEmosearch(){this.type!=="emosearch"||this.emosearchCache===this.emosearchKey||(this.emosearchCache=this.emosearchKey,this.emosearchLoad=!0,this.emosearchTimer&&clearTimeout(this.emosearchTimer),this.emosearchTimer=setTimeout(e=>{cJ("https://pic.sogou.com/napi/wap/pic",{query:this.emosearchKey+" \u8868\u60C5"}).then(t=>{if(this.emosearchList=[],t.status===0){const n=t.data.items;n.length>0&&(this.emosearchList=n.map(r=>({type:"emoticon",asset:"emosearch",name:r.title,src:r.thumbUrl,height:r.thumbHeight,width:r.thumbWidth})))}this.emosearchList.length===0&&$A.noticeWarning("\u6CA1\u6709\u641C\u7D22\u5230\u4EFB\u4F55\u8868\u60C5")}).catch(t=>{this.emosearchList=[],$A.noticeWarning("\u641C\u7D22\u7ED3\u679C\u4E3A\u7A7A")}).finally(t=>{this.emosearchLoad=!1})},300))},onEmoticon(e){this.type="emoticon",this.emoticonPath=e},onSelect(e,t){t.type==="emoji"?this.$emit("on-select",{type:"emoji",text:e.target.innerText}):this.$emit("on-select",t)}}},vl={};var pJ=Wt(_J,uJ,dJ,!1,mJ,null,null,null);function mJ(e){for(let t in vl)this[t]=vl[t]}var Ac=function(){return pJ.exports}();const Tl="ontouchend"in document;var fJ={bind(e,t){let n=!1;e.__touchMouseDown__=r=>{r.preventDefault(),n=!0,t.value("down",r)},e.__touchMouseMove__=r=>{n&&t.value("move",r)},e.__touchMouseUp__=r=>{n&&(n=!1,t.value("up"))},Tl?(e.addEventListener("touchstart",e.__touchMouseDown__),e.addEventListener("touchmove",e.__touchMouseMove__),e.addEventListener("touchend",e.__touchMouseUp__)):(e.addEventListener("mousedown",e.__touchMouseDown__),document.addEventListener("mousemove",e.__touchMouseMove__),document.addEventListener("mouseup",e.__touchMouseUp__))},update(){},unbind(e){Tl?(e.removeEventListener("touchstart",e.__touchMouseDown__),e.removeEventListener("touchmove",e.__touchMouseMove__),e.removeEventListener("touchend",e.__touchMouseUp__)):(e.removeEventListener("mousedown",e.__touchMouseDown__),document.removeEventListener("mousemove",e.__touchMouseMove__),document.removeEventListener("mouseup",e.__touchMouseUp__)),delete e.__touchMouseDown__,delete e.__touchMouseMove__,delete e.__touchMouseUp__}};function qn(e){return e===void 0&&(e=document.body),e===!0?document.body:e instanceof window.Node?e:document.querySelector(e)}const gJ={inserted(e,{value:t},n){if(e.dataset&&e.dataset.transfer!=="true")return!1;e.className=e.className?e.className+" v-transfer-dom":"v-transfer-dom";const r=e.parentNode;if(!r)return;const i=document.createComment("");let l=!1;t!==!1&&(r.replaceChild(i,e),qn(t).appendChild(e),l=!0),e.__transferDomData||(e.__transferDomData={parentNode:r,home:i,target:qn(t),hasMovedOut:l})},componentUpdated(e,{value:t}){if(e.dataset&&e.dataset.transfer!=="true")return!1;const n=e.__transferDomData;if(!n)return;const r=n.parentNode,i=n.home,l=n.hasMovedOut;!l&&t?(r.replaceChild(i,e),qn(t).appendChild(e),e.__transferDomData=Object.assign({},e.__transferDomData,{hasMovedOut:!0,target:qn(t)})):l&&t===!1?(r.replaceChild(e,i),e.__transferDomData=Object.assign({},e.__transferDomData,{hasMovedOut:!1,target:qn(t)})):t&&qn(t).appendChild(e)},unbind(e){if(e.dataset&&e.dataset.transfer!=="true")return!1;e.className=e.className.replace("v-transfer-dom",""),e.__transferDomData&&(e.__transferDomData.hasMovedOut===!0&&e.__transferDomData.parentNode&&e.__transferDomData.parentNode.appendChild(e),e.__transferDomData=null)}};var hJ=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.hidePopover,expression:"hidePopover"}],staticClass:"chat-input-box",class:e.boxClass},[n("div",{staticClass:"chat-input-quick-emoji"},[n("EPopover",{ref:"emojiQuickRef",attrs:{visibleArrow:!1,transition:"",placement:"top-end",popperClass:"chat-quick-emoji-popover"},model:{value:e.emojiQuickShow,callback:function(r){e.emojiQuickShow=r},expression:"emojiQuickShow"}},[n("div",{attrs:{slot:"reference"},slot:"reference"}),n("ul",{staticClass:"chat-quick-emoji-wrapper"},e._l(e.emojiQuickItems,function(r){return n("li",{on:{click:function(i){return e.onEmojiQuick(r)}}},[n("img",{attrs:{title:r.name,alt:r.name,src:r.src}})])}),0)])],1),n("div",{staticClass:"chat-input-wrapper",on:{click:function(r){return r.stopPropagation(),e.focus.apply(null,arguments)}}},[e.quoteData?n("div",{staticClass:"chat-quote"},[e.quoteUpdate?n("div",{staticClass:"quote-label"},[e._v(e._s(e.$L("\u7F16\u8F91\u6D88\u606F")))]):n("UserAvatar",{attrs:{userid:e.quoteData.userid,"show-icon":!1,"show-name":!0,"tooltip-disabled":!0}}),n("div",{staticClass:"quote-desc"},[e._v(e._s(e.$A.getMsgSimpleDesc(e.quoteData)))]),n("i",{staticClass:"taskfont",on:{click:function(r){return r.stopPropagation(),e.cancelQuote.apply(null,arguments)}}},[e._v("\uE6E5")])],1):e._e(),n("div",{ref:"editor",staticClass:"no-dark-content",style:e.editorStyle,on:{click:function(r){return r.stopPropagation(),e.onClickEditor.apply(null,arguments)},paste:e.handlePaste}}),n("ul",{staticClass:"chat-toolbar",on:{click:function(r){r.stopPropagation()}}},[n("li",[e.emojiBottom?n("ETooltip",{ref:"emojiTip",attrs:{disabled:e.windowSmall||e.$isEEUiApp||e.showEmoji,placement:"top",content:e.$L("\u8868\u60C5")}},[n("i",{staticClass:"taskfont",on:{click:function(r){e.showEmoji=!e.showEmoji}}},[e._v("\uE7AD")])]):n("EPopover",{attrs:{visibleArrow:!1,placement:"top",popperClass:"chat-input-emoji-popover"},model:{value:e.showEmoji,callback:function(r){e.showEmoji=r},expression:"showEmoji"}},[n("ETooltip",{ref:"emojiTip",attrs:{slot:"reference",disabled:e.windowSmall||e.$isEEUiApp||e.showEmoji,placement:"top",content:e.$L("\u8868\u60C5")},slot:"reference"},[n("i",{staticClass:"taskfont"},[e._v("\uE7AD")])]),e.showEmoji?n("ChatEmoji",{attrs:{searchKey:e.emojiQuickKey},on:{"on-select":e.onSelectEmoji}}):e._e()],1)],1),n("li",[n("ETooltip",{attrs:{placement:"top",disabled:e.windowSmall||e.$isEEUiApp,content:e.$L("\u9009\u62E9\u6210\u5458")}},[n("i",{staticClass:"taskfont",on:{click:function(r){return e.onToolbar("user")}}},[e._v("\uE78F")])])],1),n("li",[n("ETooltip",{attrs:{placement:"top",disabled:e.windowSmall||e.$isEEUiApp,content:e.$L("\u9009\u62E9\u4EFB\u52A1")}},[n("i",{staticClass:"taskfont",on:{click:function(r){return e.onToolbar("task")}}},[e._v("\uE7D6")])])],1),n("li",[n("EPopover",{attrs:{visibleArrow:!1,placement:"top",popperClass:"chat-input-more-popover"},model:{value:e.showMore,callback:function(r){e.showMore=r},expression:"showMore"}},[n("ETooltip",{ref:"moreTip",attrs:{slot:"reference",disabled:e.windowSmall||e.$isEEUiApp||e.showMore,placement:"top",content:e.$L("\u5C55\u5F00")},slot:"reference"},[n("i",{staticClass:"taskfont"},[e._v("\uE790")])]),e.recordReady?n("div",{staticClass:"chat-input-popover-item",on:{click:function(r){return e.onToolbar("meeting")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE7C1")]),e._v(" "+e._s(e.$L("\u65B0\u4F1A\u8BAE"))+" ")]):e._e(),e.canCall?n("div",{staticClass:"chat-input-popover-item",on:{click:function(r){return e.onToolbar("call")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE7BA")]),e._v(" "+e._s(e.$L("\u62E8\u6253\u7535\u8BDD"))+" ")]):e._e(),n("div",{staticClass:"chat-input-popover-item",on:{click:function(r){return e.onToolbar("image")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE7BC")]),e._v(" "+e._s(e.$L("\u53D1\u9001\u56FE\u7247"))+" ")]),n("div",{staticClass:"chat-input-popover-item",on:{click:function(r){return e.onToolbar("file")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE7C0")]),e._v(" "+e._s(e.$L("\u4E0A\u4F20\u6587\u4EF6"))+" ")]),e.canAnon?n("div",{staticClass:"chat-input-popover-item",on:{click:function(r){return e.onToolbar("anon")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE690")]),e._v(" "+e._s(e.$L("\u533F\u540D\u6D88\u606F"))+" ")]):e._e()],1)],1),n("li",{directives:[{name:"touchmouse",rawName:"v-touchmouse",value:e.clickSend,expression:"clickSend"},{name:"longpress",rawName:"v-longpress",value:{callback:e.longSend,delay:300},expression:"{callback: longSend, delay: 300}"}],ref:"chatSend",staticClass:"chat-send",class:e.sendClass},[n("EPopover",{attrs:{visibleArrow:!1,trigger:"manual",placement:"top",popperClass:"chat-input-more-popover"},model:{value:e.showMenu,callback:function(r){e.showMenu=r},expression:"showMenu"}},[n("ETooltip",{ref:"sendTip",attrs:{slot:"reference",placement:"top",disabled:e.windowSmall||e.$isEEUiApp||e.showMenu,content:e.$L(e.sendContent)},slot:"reference"},[e.loading?n("div",[n("div",{staticClass:"chat-load"},[n("Loading")],1)]):n("div",[n("transition",{attrs:{name:"mobile-send"}},[e.sendClass==="recorder"?n("i",{staticClass:"taskfont"},[e._v("\uE609")]):e._e()]),n("transition",{attrs:{name:"mobile-send"}},[e.sendClass!=="recorder"?n("i",{staticClass:"taskfont"},[e._v("\uE606")]):e._e()])],1)]),n("div",{staticClass:"chat-input-popover-item",on:{click:function(r){return e.onSend("silence")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE7D7")]),e._v(" "+e._s(e.$L("\u65E0\u58F0\u53D1\u9001"))+" ")]),n("div",{staticClass:"chat-input-popover-item",on:{click:function(r){return e.onSend("md")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE647")]),e._v(" "+e._s(e.$L("Markdown \u683C\u5F0F\u53D1\u9001"))+" ")])],1)],1),n("li",{staticClass:"chat-record-recwave"},[n("div",{ref:"recwave"})])]),n("div",{staticClass:"chat-cover",on:{click:function(r){return r.stopPropagation(),e.onClickCover.apply(null,arguments)}}})]),e.emojiBottom&&e.showEmoji?n("ChatEmoji",{attrs:{searchKey:e.emojiQuickKey},on:{"on-select":e.onSelectEmoji}}):e._e(),n("transition",{attrs:{name:"fade"}},[["ready","ing"].includes(e.recordState)?n("div",{directives:[{name:"transfer-dom",rawName:"v-transfer-dom"}],staticClass:"chat-input-record-transfer",class:{cancel:e.touchLimitY},style:e.recordTransferStyle,attrs:{"data-transfer":!0},on:{click:e.stopRecord}},[e.recordDuration>0?n("div",{staticClass:"record-duration"},[e._v(e._s(e.recordFormatDuration))]):n("div",{staticClass:"record-loading"},[n("Loading")],1),n("div",{staticClass:"record-cancel",on:{click:function(r){return r.stopPropagation(),e.stopRecord(!0)}}},[e._v(e._s(e.$L(e.touchLimitY?"\u677E\u5F00\u53D6\u6D88":"\u5411\u4E0A\u6ED1\u52A8\u53D6\u6D88")))])]):e._e()])],1)},EJ=[];const SJ={name:"ChatInput",components:{ChatEmoji:Ac},directives:{touchmouse:fJ,TransferDom:gJ,clickoutside:Yu,longpress:Yi},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"}},data(){return{quill:null,isFocus:!1,rangeIndex:0,_content:"",_options:{},mentionMode:"",userList:null,userCache:null,taskList:null,fileList:{},showMenu:!1,showMore:!1,showEmoji:!1,emojiQuickShow:!1,emojiQuickTimer:null,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(e=>{e.some(({target:t,contentRect:n})=>{t===this.$el?(this.wrapperWidth=n.width,this.wrapperHeight=n.height):t===this.$refs.editor&&(this.editorHeight=n.height)})}),this.observer.observe(this.$el),this.observer.observe(this.$refs.editor),this.recordInter=setInterval(e=>{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=(e,t)=>{e==="recordAudio"&&t===!1&&this.stopRecord(!0)})},beforeDestroy(){this.quill&&(this.quill=null),this.recordRec&&(this.recordRec=null),this.observer&&(this.observer.disconnect(),this.observer=null),this.recordInter&&clearInterval(this.recordInter)},computed:{...Vn(["cacheProjects","cacheTasks","cacheUserBasic","dialogMsgs","cacheDialogs"]),isEnterSend(){return typeof this.enterSend=="boolean"?this.enterSend:this.$store.state.windowLarge},canCall(){return this.dialogData.type==="user"&&!this.dialogData.bot&&this.$isEEUiApp},canAnon(){return this.dialogData.type==="user"&&!this.dialogData.bot},editorStyle(){const{wrapperWidth:e,editorHeight:t}=this;return e>0&&t>0&&(e<280||t>40)?{width:"100%"}:{}},recordTransferStyle(){const{windowScrollY:e}=this;return e>0?{marginTop:e/2+"px"}:null},boxClass(){const e=[];return["ready","ing"].includes(this.recordState)&&(this.recordState==="ing"&&this.recordDuration>0?e.push("record-progress"):e.push("record-ready")),this.showMenu&&e.push("show-menu"),this.showMore&&e.push("show-more"),this.showEmoji&&e.push("show-emoji"),this.mentionMode&&e.push(this.mentionMode),e},sendClass(){return this.value?"sender":this.recordReady?"recorder":""},sendContent(){const{sendTip:e}=this.$refs;return e&&e.$refs.popper&&(e.$refs.popper.style.visibility="hidden",e.showPopper=!1,setTimeout(t=>{e.$refs.popper&&(e.$refs.popper.style.visibility="visible")},300)),this.sendClass==="recorder"?"\u957F\u6309\u5F55\u97F3":"\u53D1\u9001"},recordFormatDuration(){const{recordDuration:e}=this;let t=Math.floor(e/6e4),n=Math.floor(e/1e3)%60,r=("00"+e%1e3).substr(-2);return t<10&&(t=`0${t}`),n<10&&(n=`0${n}`),`${t}:${n}\u2033${r}`},dialogData(){return this.dialogId>0?this.cacheDialogs.find(({id:e})=>e==this.dialogId)||{}:{}},quoteUpdate(){return this.dialogData.extra_quote_type==="update"},quoteData(){const{extra_quote_id:e}=this.dialogData;return e?this.dialogMsgs.find(t=>t.id===e):null}},watch:{value(e){this.quill&&(e&&e!==this._content?(this._content=e,this.setContent(e)):e||this.quill.setText("")),this.$store.dispatch("saveDialogDraft",{id:this.dialogId,extra_draft_content:e})},disabled(e){var t;(t=this.quill)==null||t.enable(!e)},dialogId(){this.userList=null,this.userCache=null,this.taskList=null,this.fileList={},this.loadInputDraft()},taskId(){this.userList=null,this.userCache=null,this.taskList=null,this.fileList={},this.loadInputDraft()},"dialogData.extra_draft_content"(){this.isFocus||this.loadInputDraft()},showMenu(e){e&&(this.showMore=!1,this.showEmoji=!1,this.emojiQuickShow=!1)},showMore(e){e&&(this.showMenu=!1,this.showEmoji=!1,this.emojiQuickShow=!1)},showEmoji(e){if(this.emojiBottom&&(e?this.quill.enable(!1):this.disabled||this.quill.enable(!0)),e){let t=this.value.replace(/ /g," ");if(t=t.replace(/<[^>]+>/g,""),t&&t.indexOf(" ")===-1&&t.length>=1&&t.length<=4?this.emojiQuickKey=t:this.emojiQuickKey="",this.showMenu=!1,this.showMore=!1,this.emojiQuickShow=!1,this.quill){const n=this.quill.selection.savedRange;this.rangeIndex=n?n.index:0}}else this.rangeIndex>0&&this.quill.setSelection(this.rangeIndex);this.$emit("on-emoji-visible-change",e)},emojiQuickShow(e){e&&(this.showMenu=!1,this.showMore=!1,this.showEmoji=!1)},isFocus(e){this.timerScroll&&clearInterval(this.timerScroll),e?(this.$emit("on-focus"),this.hidePopover(),this.isSpecVersion||this.windowSmall&&(this.timerScroll=setInterval(()=>{var t;(t=this.quill)!=null&&t.hasFocus()?this.windowScrollY>0&&$A.scrollIntoViewIfNeeded(this.$refs.editor):clearInterval(this.timerScroll)},200))):this.$emit("on-blur")},recordState(e){e==="ing"?this.recordWave=window.Recorder.FrequencyHistogramView({elem:this.$refs.recwave,lineCount:90,position:0,minHeight:1,stripeEnable:!1}):(this.recordWave=null,this.$refs.recwave.innerHTML=""),this.$emit("on-record-state",e)},wrapperHeight(e,t){this.$emit("on-height-change",{newVal:e,oldVal:t})}},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:e=>this.isEnterSend?!0:(this.onSend(),!1)},enter:{key:13,shiftKey:!1,handler:e=>this.isEnterSend?(this.onSend(),!1):!0},esc:{key:27,shiftKey:!1,handler:e=>this.emojiQuickShow?(this.emojiQuickShow=!1,!1):!0}}},mention:{allowedChars:/^\S*$/,mentionDenotationChars:["@","#","~"],defaultMenuOrientation:this.defaultMenuOrientation,isolateCharacter:!0,positioningStrategy:"fixed",renderItem:e=>{if(e.disabled===!0)return`
${e.value}
`;if(e.id===0)return`
@
${e.value}
${e.tip}
`;if(e.avatar){const t=e.bot?'
':"";return`
${t}
${e.value}
`}return e.tip?`
${e.value}
${e.tip}
`:`
${e.value}
`},renderLoading:()=>"Loading...",source:(e,t,n)=>{const r=n=="@"?"user-mention":n=="#"?"task-mention":"file-mention",i=document.getElementsByClassName("ql-mention-list-container");for(let u=0;u{const c=[];u.some(d=>{let f=d.list;e&&(f=f.filter(({value:g})=>$A.strExists(g,e))),f.length>0&&(d.label&&c.push(...d.label),c.push(...f))}),$A.jsonStringify(c.map(({id:d})=>d))!==l&&(l=$A.jsonStringify(c.map(({id:d})=>d)),t(c,e))})}}}},this.options),this.quill=new rn(this.$refs.editor,this._options),this.quill.enable(!this.disabled),this.value?this.setContent(this.value):this.loadInputDraft(),this.quill.on("selection-change",e=>{if(!e){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=!!e}),this.quill.on("text-change",e=>{this.maxlength>0&&this.quill.getLength()>this.maxlength&&this.quill.deleteText(this.maxlength,this.quill.getLength());let t=this.$refs.editor.children[0].innerHTML;t=t.replace(/^(

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

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

<\/p>)+|(

<\/p>)+$/gi,""),this.updateEmojiQuick(t),this._content=t,this.$emit("input",this._content),this.$nextTick(n=>{const r=this.quill.getSelection();if(r){const i=this.quill.getText(r.index);/^\n\n$/.test(i)&&this.quill.deleteText(r.index,1)}})}),this.quill.clipboard.addMatcher(Node.ELEMENT_NODE,(e,t)=>(this.pasteClean&&(t.ops=t.ops.map(n=>{const r={insert:n.insert};try{typeof r.insert.mention=="object"&&e.innerHTML&&(r.insert=e.innerHTML.replace(/<[^>]+>/g,""))}catch{}return n.attributes&&["bold","strike","italic","underline","list","blockquote","link"].some(i=>{n.attributes[i]&&(typeof r.attributes=="undefined"&&(r.attributes={}),r.attributes[i]=n.attributes[i])}),r})),t)),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"]).then(e=>{typeof window.Recorder=="function"&&(this.recordRec=window.Recorder({type:"mp3",bitRate:64,sampleRate:32e3,onProcess:(t,n,r,i,l,u)=>{var c;(c=this.recordWave)==null||c.input(t[t.length-1],n,i),this.recordDuration=r,r>=3*60*1e3&&this.stopRecord(!1)}}),window.Recorder.Support()&&(this.recordReady=!0))})},updateEmojiQuick(e){if(!this.isFocus||!e){this.emojiQuickShow=!1;return}this.emojiQuickTimer&&clearTimeout(this.emojiQuickTimer),this.emojiQuickTimer=setTimeout(t=>{if(e=e.replace(/ /g," "),e=e.replace(/<[^>]+>/g,""),e&&e.indexOf(" ")===-1&&e.length>=1&&e.length<=4&&$A.isArray(window.emoticonData)){this.emojiQuickItems=[];let n=$A.apiUrl("../images/emoticon");if(window.emoticonData.some(r=>{let i=r.list.find(l=>$A.strExists(l.name+(l.key?` ${l.key}`:""),e));if(i&&(this.emojiQuickItems.push(Object.assign(i,{type:"emoticon",asset:`images/emoticon/${r.path}/${i.path}`,src:`${n}/${r.path}/${i.path}`})),this.emojiQuickItems.length>=3))return!0}),this.emojiQuickItems.length>0){this.$nextTick(r=>{this.emojiQuickShow=!0,this.$refs.emojiQuickRef.updatePopper()});return}}this.emojiQuickShow=!1},100)},getText(){return this.quill?this.quill.getText():""},setText(e){this.quill&&this.quill.setText(e)},setContent(e){this.quill&&this.quill.setContents(this.quill.clipboard.convert(e))},setPasteMode(e){this.pasteClean=e},loadInputDraft(){const{extra_draft_content:e}=this.dialogData;e?(this.pasteClean=!1,this.$emit("input",e),this.$nextTick(t=>this.pasteClean=!0)):this.$emit("input","")},onClickEditor(){this.$store.state.messengerSearchKey={dialog:"",contacts:""},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(e,t){if(!this.loading)switch(e){case"down":if(this.touchLimitX=!1,this.touchLimitY=!1,this.touchStart=t.type==="touchstart"?t.touches[0]:t,t.button===0&&this.startRecord())return;break;case"move":const n=t.type==="touchmove"?t.touches[0]:t;this.touchLimitX=(this.touchStart.clientX-n.clientX)/window.innerWidth>.1,this.touchLimitY=(this.touchStart.clientY-n.clientY)/window.innerHeight>.1;break;case"up":if(this.showMenu||this.stopRecord(this.touchLimitY)||this.touchLimitY||this.touchLimitX)return;this.onSend();break}},longSend(){this.sendClass!=="recorder"&&(this.showMenu=!0)},onSend(e){this.hidePopover("send"),this.rangeIndex=0,this.$store.state.messengerSearchKey={dialog:"",contacts:""},e?this.$emit("on-send",null,e):this.$emit("on-send")},startRecord(){return this.sendClass==="recorder"?(this.$store.dispatch("audioStop",!0),this.recordDuration=0,this.recordState="ready",this.$nextTick(e=>{this.recordRec.open(t=>{this.recordState==="ready"?(this.recordState="ing",this.recordBlob=null,setTimeout(n=>{this.recordRec.start()},300)):this.recordRec.close()},t=>{this.recordState="stop",$A.messageError(t||"\u6253\u5F00\u5F55\u97F3\u5931\u8D25")})}),!0):!1},stopRecord(e){switch(this.recordState){case"ing":return this.recordState="stop",this.recordRec.stop((t,n)=>{this.recordRec.close(),e!==!0&&(n<600?$A.messageWarning("\u8BF4\u8BDD\u65F6\u95F4\u592A\u77ED"):(this.recordBlob=t,this.uploadRecord(n)))},t=>{this.recordRec.close(),$A.messageError(t||"\u5F55\u97F3\u5931\u8D25")}),!0;case"ready":return this.recordState="stop",!0;default:return this.recordState="stop",!1}},hidePopover(e){this.showMenu=!1,this.showMore=!1,e!=="send"&&(this.showEmoji=!1,this.emojiQuickShow=!1)},onClickCover(){this.hidePopover(),this.$nextTick(e=>{var t;(t=this.quill)==null||t.focus()})},uploadRecord(e){if(this.recordBlob===null)return;const t=new FileReader;t.onloadend=()=>{this.$emit("on-record",{type:this.recordBlob.type,base64:t.result,duration:e})},t.readAsDataURL(this.recordBlob)},onEmojiQuick(e){e.type==="online"?(this.$emit("input",""),this.$emit("on-send",``)):(this.$emit("input",""),this.$emit("on-send",``)),this.emojiQuickShow=!1,this.focus()},onSelectEmoji(e){!this.quill||(e.type==="emoji"?(this.quill.insertText(this.rangeIndex,e.text),this.rangeIndex+=e.text.length,this.windowLarge&&(this.showEmoji=!1)):e.type==="emoticon"&&(this.$emit("on-send",``),e.asset==="emosearch"&&this.$emit("input",""),this.windowLarge&&(this.showEmoji=!1)))},onToolbar(e){switch(this.hidePopover(),e){case"user":this.openMenu("@");break;case"task":this.openMenu("#");break;case"meeting":qi.Store.set("addMeeting",{type:"create",dialog_id:this.dialogId,userids:[this.userId]});break;case"image":case"file":case"call":case"anon":this.$emit("on-more",e);break}},onMoreVisibleChange(e){this.showMore=e},setQuote(e,t="reply"){this.dialogId>0&&this.$store.dispatch("saveDialog",{id:this.dialogId,extra_quote_id:e,extra_quote_type:t==="update"?"update":"reply"})},cancelQuote(){this.quoteUpdate&&this.$emit("input",""),this.setQuote(0)},openMenu(e){if(!!this.quill)if(this.value.length===0||this.value.endsWith("


"))this.quill.getModule("mention").openMenu(e);else{let t=this.value.replace(/<[^>]+>/g,"");t.length===0||t.endsWith(" ")?this.quill.getModule("mention").openMenu(e):this.quill.getModule("mention").openMenu(` ${e}`)}},addMention(e){!this.quill||this.quill.getModule("mention").insertItem(e,!0)},getProjectId(){let e=null;if(this.dialogId>0){if(e=this.cacheProjects.find(({dialog_id:t})=>t==this.dialogId),e)return e.id;if(e=this.cacheTasks.find(({dialog_id:t})=>t==this.dialogId),e)return e.project_id}else if(this.taskId>0&&(e=this.cacheTasks.find(({id:t})=>t==this.taskId),e))return e.project_id;return 0},getMentionSource(e,t,n){switch(e){case"@":this.mentionMode="user-mention";const r=c=>{this.getMoreUser(t,c.map(d=>d.id)).then(d=>{this.userList=c,this.userCache=[],d.length>0?(c.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:c},{label:[{id:0,value:this.$L("\u4F1A\u8BDD\u4EE5\u5916\u6210\u5458"),disabled:!0}],list:d})):c.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:c}):this.userCache.push({label:null,list:c}),n(this.userCache)})};if(this.dialogData.people&&$A.arrayLength(this.userList)!==this.dialogData.people&&(this.userList=null,this.userCache=null),this.userCache!==null&&n(this.userCache),this.userList!==null){r(this.userList);return}const i=[];if(this.dialogId>0)this.$store.dispatch("call",{url:"dialog/user",data:{dialog_id:this.dialogId,getuser:1}}).then(({data:c})=>{this.cacheDialogs.find(({id:d})=>d==this.dialogId)&&this.$store.dispatch("saveDialog",{id:this.dialogId,people:c.length}),c.length>0&&i.push(...c.map(d=>({id:d.userid,value:d.nickname,avatar:d.userimg,online:d.online,bot:d.bot}))),r(i)}).catch(c=>{r(i)});else if(this.taskId>0){const c=this.cacheTasks.find(({id:d})=>d==this.taskId);c&&$A.isArray(c.task_user)&&c.task_user.some(d=>{const f=this.cacheUserBasic.find(({userid:g})=>g==d.userid);f&&i.push({id:f.userid,value:f.nickname,avatar:f.userimg,online:f.online,bot:f.bot})}),r(i)}break;case"#":if(this.mentionMode="task-mention",this.taskList!==null){n(this.taskList);return}const l=c=>{this.taskList=[],c.length>0&&(c=c.map(g=>({id:g.id,value:g.name,tip:g.complete_at?this.$L("\u5DF2\u5B8C\u6210"):null})).splice(0,100),this.taskList.push({label:[{id:0,value:this.$L("\u9879\u76EE\u4EFB\u52A1"),disabled:!0}],list:c}));let d=this.$store.getters.transforTasks(this.$store.getters.dashboardTask.all);d.length>0&&(d=d.sort((g,h)=>$A.Date(g.end_at||"2099-12-31 23:59:59")-$A.Date(h.end_at||"2099-12-31 23:59:59")).splice(0,100),this.taskList.push({label:[{id:0,value:this.$L("\u6211\u7684\u5F85\u5B8C\u6210\u4EFB\u52A1"),disabled:!0}],list:d.map(g=>({id:g.id,value:g.name}))}));let f=this.$store.getters.assistTask;f.length>0&&(f=f.sort((g,h)=>$A.Date(g.end_at||"2099-12-31 23:59:59")-$A.Date(h.end_at||"2099-12-31 23:59:59")).splice(0,100),this.taskList.push({label:[{id:0,value:this.$L("\u6211\u534F\u52A9\u7684\u4EFB\u52A1"),disabled:!0}],list:f.map(g=>({id:g.id,value:g.name}))})),n(this.taskList)},u=this.getProjectId();if(u>0){this.$store.dispatch("getTaskForProject",u).then(c=>{const d=this.cacheTasks.filter(f=>f.archived_at?!1:f.project_id==u&&f.parent_id===0&&!f.archived_at).sort((f,g)=>$A.Date(g.complete_at||"2099-12-31 23:59:59")-$A.Date(f.complete_at||"2099-12-31 23:59:59"));d.length>0?l(d):l([])}).catch(c=>{l([])});return}l([]);break;case"~":if(this.mentionMode="file-mention",$A.isArray(this.fileList[t])){n(this.fileList[t]);return}this.fileTimer&&clearTimeout(this.fileTimer),this.fileTimer=setTimeout(c=>{this.$store.dispatch("searchFiles",t).then(({data:d})=>{this.fileList[t]=[{label:[{id:0,value:this.$L("\u6587\u4EF6\u5206\u4EAB\u67E5\u770B"),disabled:!0}],list:d.filter(f=>f.type!=="folder").map(f=>({id:f.id,value:f.ext?`${f.name}.${f.ext}`:f.name}))}],n(this.fileList[t])}).catch(()=>{n([])})},300);break;default:n([]);break}},getMoreUser(e,t){return new Promise(n=>{const{owner_id:r,type:i}=this.dialogData,l=i==="group"&&[0,this.userId].includes(r);this.taskId>0||l?(this.__getMoreTimer&&clearTimeout(this.__getMoreTimer),this.__getMoreTimer=setTimeout(u=>{this.$store.dispatch("call",{url:"users/search",data:{keys:{key:e},state:1,take:30}}).then(({data:c})=>{const d=c.filter(f=>!t.includes(f.userid));n(d.map(f=>({id:f.userid,value:f.nickname,avatar:f.userimg,online:!!f.online})))}).catch(c=>{n([])})},this.userCache===null?0:600)):n([])})},checkIOSVersion(){let t=(window&&window.navigator&&window.navigator.userAgent).match(/OS ((\d+_?){2,3})\s/i);const r=(t?t[1].replace(/_/g,"."):"unknown").split(".");return+r[0]==11&&+r[1]>=0&&+r[1]<3},handlePaste(e){const t=Array.prototype.slice.call(e.clipboardData.files);t.filter(r=>!$A.leftExists(r.type,"image/")).length>0?(e.preventDefault(),this.$emit("on-file",t)):this.pasteRtf(e)&&e.preventDefault()},pasteRtf(e){if(e&&e.clipboardData&&e.clipboardData.items&&!new DOMParser().parseFromString(e.clipboardData.getData("text/html")||"","text/html").querySelector("img")){const n=[];let r=null;if(e.clipboardData.types&&[].indexOf.call(e.clipboardData.types,"text/rtf")!=-1||e.clipboardData.getData("text/rtf"))r=e.clipboardData.items[0].getAsFile(),r&&n.push(r);else for(let i=0;i0)return n.forEach(i=>{const l=new FileReader;l.onload=({target:u})=>{const c=this.quill.getSelection(!0).index;this.quill.insertEmbed(c,"image",u.result),this.quill.setSelection(c+1)},l.readAsDataURL(i)}),!0}return!1}}},yl={};var bJ=Wt(SJ,hJ,EJ,!1,vJ,null,null,null);function vJ(e){for(let t in yl)this[t]=yl[t]}var TJ=function(){return bJ.exports}(),Ic={exports:{}};/*! +`},{type:"d",name:"food",content:''},{type:"s",name:"symbols",content:''},{type:"a",name:"activity",content:''},{type:"t",name:"travel",content:''},{type:"o",name:"objects",content:''},{type:"f",name:"flags",content:''}],emoticonPath:"",emosearchKey:"",emosearchCache:null,emosearchLoad:!1,emosearchTimer:null,emosearchList:[],emojiData:[],emoticonData:[]}},mounted(){this.initData()},watch:{type(){this.onEmosearch()},emosearchKey(){this.onEmosearch()},searchKey:{handler(e){this.emosearchKey=e},immediate:!0}},computed:{list(){if(this.type==="emoji")return this.emojiData.filter(e=>e.category===this.emojiNavActive);if(this.type==="emosearch")return this.emosearchList;if(this.type==="emoticon"){const e=this.emoticonData.find(({path:t})=>t===this.emoticonPath);if(e)return e.list}return[]}},methods:{initData(){$A.loadScriptS(["js/emoji.all.js","js/emoticon.all.js"]).then(e=>{const t=$A.apiUrl("../images/emoticon");$A.isArray(window.emojiData)&&(this.emojiData=window.emojiData.sort(function(n,r){return n.emoji_order-r.emoji_order}).map(n=>({type:"emoji",name:n.name,category:n.category,html:n.code_decimal}))),$A.isArray(window.emoticonData)&&(this.emoticonData=window.emoticonData.map(n=>Object.assign(n,{src:`${t}/${n.path}/${n.icon}`,list:n.list.map(r=>Object.assign(r,{type:"emoticon",asset:`images/emoticon/${n.path}/${r.path}`,src:`${t}/${n.path}/${r.path}`}))})))})},onEmosearch(){this.type!=="emosearch"||this.emosearchCache===this.emosearchKey||(this.emosearchCache=this.emosearchKey,this.emosearchLoad=!0,this.emosearchTimer&&clearTimeout(this.emosearchTimer),this.emosearchTimer=setTimeout(e=>{cJ("https://pic.sogou.com/napi/wap/pic",{query:this.emosearchKey+" \u8868\u60C5"}).then(t=>{if(this.emosearchList=[],t.status===0){const n=t.data.items;n.length>0&&(this.emosearchList=n.map(r=>({type:"emoticon",asset:"emosearch",name:r.title,src:r.thumbUrl,height:r.thumbHeight,width:r.thumbWidth})))}this.emosearchList.length===0&&$A.noticeWarning("\u6CA1\u6709\u641C\u7D22\u5230\u4EFB\u4F55\u8868\u60C5")}).catch(t=>{this.emosearchList=[],$A.noticeWarning("\u641C\u7D22\u7ED3\u679C\u4E3A\u7A7A")}).finally(t=>{this.emosearchLoad=!1})},300))},onEmoticon(e){this.type="emoticon",this.emoticonPath=e},onSelect(e,t){t.type==="emoji"?this.$emit("on-select",{type:"emoji",text:e.target.innerText}):this.$emit("on-select",t)}}},vl={};var pJ=Wt(_J,uJ,dJ,!1,mJ,null,null,null);function mJ(e){for(let t in vl)this[t]=vl[t]}var Ac=function(){return pJ.exports}();const Tl="ontouchend"in document;var fJ={bind(e,t){let n=!1;e.__touchMouseDown__=r=>{r.preventDefault(),n=!0,t.value("down",r)},e.__touchMouseMove__=r=>{n&&t.value("move",r)},e.__touchMouseUp__=r=>{n&&(n=!1,t.value("up"))},Tl?(e.addEventListener("touchstart",e.__touchMouseDown__),e.addEventListener("touchmove",e.__touchMouseMove__),e.addEventListener("touchend",e.__touchMouseUp__)):(e.addEventListener("mousedown",e.__touchMouseDown__),document.addEventListener("mousemove",e.__touchMouseMove__),document.addEventListener("mouseup",e.__touchMouseUp__))},update(){},unbind(e){Tl?(e.removeEventListener("touchstart",e.__touchMouseDown__),e.removeEventListener("touchmove",e.__touchMouseMove__),e.removeEventListener("touchend",e.__touchMouseUp__)):(e.removeEventListener("mousedown",e.__touchMouseDown__),document.removeEventListener("mousemove",e.__touchMouseMove__),document.removeEventListener("mouseup",e.__touchMouseUp__)),delete e.__touchMouseDown__,delete e.__touchMouseMove__,delete e.__touchMouseUp__}};function qn(e){return e===void 0&&(e=document.body),e===!0?document.body:e instanceof window.Node?e:document.querySelector(e)}const gJ={inserted(e,{value:t},n){if(e.dataset&&e.dataset.transfer!=="true")return!1;e.className=e.className?e.className+" v-transfer-dom":"v-transfer-dom";const r=e.parentNode;if(!r)return;const i=document.createComment("");let l=!1;t!==!1&&(r.replaceChild(i,e),qn(t).appendChild(e),l=!0),e.__transferDomData||(e.__transferDomData={parentNode:r,home:i,target:qn(t),hasMovedOut:l})},componentUpdated(e,{value:t}){if(e.dataset&&e.dataset.transfer!=="true")return!1;const n=e.__transferDomData;if(!n)return;const r=n.parentNode,i=n.home,l=n.hasMovedOut;!l&&t?(r.replaceChild(i,e),qn(t).appendChild(e),e.__transferDomData=Object.assign({},e.__transferDomData,{hasMovedOut:!0,target:qn(t)})):l&&t===!1?(r.replaceChild(e,i),e.__transferDomData=Object.assign({},e.__transferDomData,{hasMovedOut:!1,target:qn(t)})):t&&qn(t).appendChild(e)},unbind(e){if(e.dataset&&e.dataset.transfer!=="true")return!1;e.className=e.className.replace("v-transfer-dom",""),e.__transferDomData&&(e.__transferDomData.hasMovedOut===!0&&e.__transferDomData.parentNode&&e.__transferDomData.parentNode.appendChild(e),e.__transferDomData=null)}};var hJ=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.hidePopover,expression:"hidePopover"}],staticClass:"chat-input-box",class:e.boxClass},[n("div",{staticClass:"chat-input-quick-emoji"},[n("EPopover",{ref:"emojiQuickRef",attrs:{visibleArrow:!1,transition:"",placement:"top-end",popperClass:"chat-quick-emoji-popover"},model:{value:e.emojiQuickShow,callback:function(r){e.emojiQuickShow=r},expression:"emojiQuickShow"}},[n("div",{attrs:{slot:"reference"},slot:"reference"}),n("ul",{staticClass:"chat-quick-emoji-wrapper"},e._l(e.emojiQuickItems,function(r){return n("li",{on:{click:function(i){return e.onEmojiQuick(r)}}},[n("img",{attrs:{title:r.name,alt:r.name,src:r.src}})])}),0)])],1),n("div",{staticClass:"chat-input-wrapper",on:{click:function(r){return r.stopPropagation(),e.focus.apply(null,arguments)}}},[e.quoteData?n("div",{staticClass:"chat-quote"},[e.quoteUpdate?n("div",{staticClass:"quote-label"},[e._v(e._s(e.$L("\u7F16\u8F91\u6D88\u606F")))]):n("UserAvatar",{attrs:{userid:e.quoteData.userid,"show-icon":!1,"show-name":!0,"tooltip-disabled":!0}}),n("div",{staticClass:"quote-desc"},[e._v(e._s(e.$A.getMsgSimpleDesc(e.quoteData)))]),n("i",{staticClass:"taskfont",on:{click:function(r){return r.stopPropagation(),e.cancelQuote.apply(null,arguments)}}},[e._v("\uE6E5")])],1):e._e(),n("div",{ref:"editor",staticClass:"no-dark-content",style:e.editorStyle,on:{click:function(r){return r.stopPropagation(),e.onClickEditor.apply(null,arguments)},paste:e.handlePaste}}),n("ul",{staticClass:"chat-toolbar",on:{click:function(r){r.stopPropagation()}}},[n("li",[e.emojiBottom?n("ETooltip",{ref:"emojiTip",attrs:{disabled:e.$isEEUiApp||e.windowTouch||e.showEmoji,placement:"top",content:e.$L("\u8868\u60C5")}},[n("i",{staticClass:"taskfont",on:{click:function(r){e.showEmoji=!e.showEmoji}}},[e._v("\uE7AD")])]):n("EPopover",{attrs:{visibleArrow:!1,placement:"top",popperClass:"chat-input-emoji-popover"},model:{value:e.showEmoji,callback:function(r){e.showEmoji=r},expression:"showEmoji"}},[n("ETooltip",{ref:"emojiTip",attrs:{slot:"reference",disabled:e.$isEEUiApp||e.windowTouch||e.showEmoji,placement:"top",content:e.$L("\u8868\u60C5")},slot:"reference"},[n("i",{staticClass:"taskfont"},[e._v("\uE7AD")])]),e.showEmoji?n("ChatEmoji",{attrs:{searchKey:e.emojiQuickKey},on:{"on-select":e.onSelectEmoji}}):e._e()],1)],1),n("li",[n("ETooltip",{attrs:{placement:"top",disabled:e.$isEEUiApp||e.windowTouch,content:e.$L("\u9009\u62E9\u6210\u5458")}},[n("i",{staticClass:"taskfont",on:{click:function(r){return e.onToolbar("user")}}},[e._v("\uE78F")])])],1),n("li",[n("ETooltip",{attrs:{placement:"top",disabled:e.$isEEUiApp||e.windowTouch,content:e.$L("\u9009\u62E9\u4EFB\u52A1")}},[n("i",{staticClass:"taskfont",on:{click:function(r){return e.onToolbar("task")}}},[e._v("\uE7D6")])])],1),n("li",[n("EPopover",{attrs:{visibleArrow:!1,placement:"top",popperClass:"chat-input-more-popover"},model:{value:e.showMore,callback:function(r){e.showMore=r},expression:"showMore"}},[n("ETooltip",{ref:"moreTip",attrs:{slot:"reference",disabled:e.$isEEUiApp||e.windowTouch||e.showMore,placement:"top",content:e.$L("\u5C55\u5F00")},slot:"reference"},[n("i",{staticClass:"taskfont"},[e._v("\uE790")])]),e.recordReady?n("div",{staticClass:"chat-input-popover-item",on:{click:function(r){return e.onToolbar("meeting")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE7C1")]),e._v(" "+e._s(e.$L("\u65B0\u4F1A\u8BAE"))+" ")]):e._e(),e.canCall?n("div",{staticClass:"chat-input-popover-item",on:{click:function(r){return e.onToolbar("call")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE7BA")]),e._v(" "+e._s(e.$L("\u62E8\u6253\u7535\u8BDD"))+" ")]):e._e(),n("div",{staticClass:"chat-input-popover-item",on:{click:function(r){return e.onToolbar("image")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE7BC")]),e._v(" "+e._s(e.$L("\u53D1\u9001\u56FE\u7247"))+" ")]),n("div",{staticClass:"chat-input-popover-item",on:{click:function(r){return e.onToolbar("file")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE7C0")]),e._v(" "+e._s(e.$L("\u4E0A\u4F20\u6587\u4EF6"))+" ")]),e.canAnon?n("div",{staticClass:"chat-input-popover-item",on:{click:function(r){return e.onToolbar("anon")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE690")]),e._v(" "+e._s(e.$L("\u533F\u540D\u6D88\u606F"))+" ")]):e._e()],1)],1),n("li",{directives:[{name:"touchmouse",rawName:"v-touchmouse",value:e.clickSend,expression:"clickSend"},{name:"longpress",rawName:"v-longpress",value:{callback:e.longSend,delay:300},expression:"{callback: longSend, delay: 300}"}],ref:"chatSend",staticClass:"chat-send",class:e.sendClass},[n("EPopover",{attrs:{visibleArrow:!1,trigger:"manual",placement:"top",popperClass:"chat-input-more-popover"},model:{value:e.showMenu,callback:function(r){e.showMenu=r},expression:"showMenu"}},[n("ETooltip",{ref:"sendTip",attrs:{slot:"reference",placement:"top",disabled:e.$isEEUiApp||e.windowTouch||e.showMenu,content:e.$L(e.sendContent)},slot:"reference"},[e.loading?n("div",[n("div",{staticClass:"chat-load"},[n("Loading")],1)]):n("div",[n("transition",{attrs:{name:"mobile-send"}},[e.sendClass==="recorder"?n("i",{staticClass:"taskfont"},[e._v("\uE609")]):e._e()]),n("transition",{attrs:{name:"mobile-send"}},[e.sendClass!=="recorder"?n("i",{staticClass:"taskfont"},[e._v("\uE606")]):e._e()])],1)]),n("div",{staticClass:"chat-input-popover-item",on:{click:function(r){return e.onSend("silence")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE7D7")]),e._v(" "+e._s(e.$L("\u65E0\u58F0\u53D1\u9001"))+" ")]),n("div",{staticClass:"chat-input-popover-item",on:{click:function(r){return e.onSend("md")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE647")]),e._v(" "+e._s(e.$L("Markdown \u683C\u5F0F\u53D1\u9001"))+" ")])],1)],1),n("li",{staticClass:"chat-record-recwave"},[n("div",{ref:"recwave"})])]),n("div",{staticClass:"chat-cover",on:{click:function(r){return r.stopPropagation(),e.onClickCover.apply(null,arguments)}}})]),e.emojiBottom&&e.showEmoji?n("ChatEmoji",{attrs:{searchKey:e.emojiQuickKey},on:{"on-select":e.onSelectEmoji}}):e._e(),n("transition",{attrs:{name:"fade"}},[["ready","ing"].includes(e.recordState)?n("div",{directives:[{name:"transfer-dom",rawName:"v-transfer-dom"}],staticClass:"chat-input-record-transfer",class:{cancel:e.touchLimitY},style:e.recordTransferStyle,attrs:{"data-transfer":!0},on:{click:e.stopRecord}},[e.recordDuration>0?n("div",{staticClass:"record-duration"},[e._v(e._s(e.recordFormatDuration))]):n("div",{staticClass:"record-loading"},[n("Loading")],1),n("div",{staticClass:"record-cancel",on:{click:function(r){return r.stopPropagation(),e.stopRecord(!0)}}},[e._v(e._s(e.$L(e.touchLimitY?"\u677E\u5F00\u53D6\u6D88":"\u5411\u4E0A\u6ED1\u52A8\u53D6\u6D88")))])]):e._e()])],1)},EJ=[];const SJ={name:"ChatInput",components:{ChatEmoji:Ac},directives:{touchmouse:fJ,TransferDom:gJ,clickoutside:Yu,longpress:Yi},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"}},data(){return{quill:null,isFocus:!1,rangeIndex:0,_content:"",_options:{},mentionMode:"",userList:null,userCache:null,taskList:null,fileList:{},showMenu:!1,showMore:!1,showEmoji:!1,emojiQuickShow:!1,emojiQuickTimer:null,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(e=>{e.some(({target:t,contentRect:n})=>{t===this.$el?(this.wrapperWidth=n.width,this.wrapperHeight=n.height):t===this.$refs.editor&&(this.editorHeight=n.height)})}),this.observer.observe(this.$el),this.observer.observe(this.$refs.editor),this.recordInter=setInterval(e=>{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=(e,t)=>{e==="recordAudio"&&t===!1&&this.stopRecord(!0)})},beforeDestroy(){this.quill&&(this.quill=null),this.recordRec&&(this.recordRec=null),this.observer&&(this.observer.disconnect(),this.observer=null),this.recordInter&&clearInterval(this.recordInter)},computed:{...Vn(["cacheProjects","cacheTasks","cacheUserBasic","dialogMsgs","cacheDialogs"]),isEnterSend(){return typeof this.enterSend=="boolean"?this.enterSend:!this.windowTouch},canCall(){return this.dialogData.type==="user"&&!this.dialogData.bot&&this.$isEEUiApp},canAnon(){return this.dialogData.type==="user"&&!this.dialogData.bot},editorStyle(){const{wrapperWidth:e,editorHeight:t}=this;return e>0&&t>0&&(e<280||t>40)?{width:"100%"}:{}},recordTransferStyle(){const{windowScrollY:e}=this;return e>0?{marginTop:e/2+"px"}:null},boxClass(){const e=[];return["ready","ing"].includes(this.recordState)&&(this.recordState==="ing"&&this.recordDuration>0?e.push("record-progress"):e.push("record-ready")),this.showMenu&&e.push("show-menu"),this.showMore&&e.push("show-more"),this.showEmoji&&e.push("show-emoji"),this.mentionMode&&e.push(this.mentionMode),e},sendClass(){return this.value?"sender":this.recordReady?"recorder":""},sendContent(){const{sendTip:e}=this.$refs;return e&&e.$refs.popper&&(e.$refs.popper.style.visibility="hidden",e.showPopper=!1,setTimeout(t=>{e.$refs.popper&&(e.$refs.popper.style.visibility="visible")},300)),this.sendClass==="recorder"?"\u957F\u6309\u5F55\u97F3":"\u53D1\u9001"},recordFormatDuration(){const{recordDuration:e}=this;let t=Math.floor(e/6e4),n=Math.floor(e/1e3)%60,r=("00"+e%1e3).substr(-2);return t<10&&(t=`0${t}`),n<10&&(n=`0${n}`),`${t}:${n}\u2033${r}`},dialogData(){return this.dialogId>0?this.cacheDialogs.find(({id:e})=>e==this.dialogId)||{}:{}},quoteUpdate(){return this.dialogData.extra_quote_type==="update"},quoteData(){const{extra_quote_id:e}=this.dialogData;return e?this.dialogMsgs.find(t=>t.id===e):null}},watch:{value(e){this.quill&&(e&&e!==this._content?(this._content=e,this.setContent(e)):e||this.quill.setText("")),this.$store.dispatch("saveDialogDraft",{id:this.dialogId,extra_draft_content:e})},disabled(e){var t;(t=this.quill)==null||t.enable(!e)},dialogId(){this.userList=null,this.userCache=null,this.taskList=null,this.fileList={},this.loadInputDraft()},taskId(){this.userList=null,this.userCache=null,this.taskList=null,this.fileList={},this.loadInputDraft()},"dialogData.extra_draft_content"(){this.isFocus||this.loadInputDraft()},showMenu(e){e&&(this.showMore=!1,this.showEmoji=!1,this.emojiQuickShow=!1)},showMore(e){e&&(this.showMenu=!1,this.showEmoji=!1,this.emojiQuickShow=!1)},showEmoji(e){if(this.emojiBottom&&(e?this.quill.enable(!1):this.disabled||this.quill.enable(!0)),e){let t=this.value.replace(/ /g," ");if(t=t.replace(/<[^>]+>/g,""),t&&t.indexOf(" ")===-1&&t.length>=1&&t.length<=4?this.emojiQuickKey=t:this.emojiQuickKey="",this.showMenu=!1,this.showMore=!1,this.emojiQuickShow=!1,this.quill){const n=this.quill.selection.savedRange;this.rangeIndex=n?n.index:0}}else this.rangeIndex>0&&this.quill.setSelection(this.rangeIndex);this.$emit("on-emoji-visible-change",e)},emojiQuickShow(e){e&&(this.showMenu=!1,this.showMore=!1,this.showEmoji=!1)},isFocus(e){this.timerScroll&&clearInterval(this.timerScroll),e?(this.$emit("on-focus"),this.hidePopover(),this.isSpecVersion||this.windowPortrait&&(this.timerScroll=setInterval(()=>{var t;(t=this.quill)!=null&&t.hasFocus()?this.windowScrollY>0&&$A.scrollIntoViewIfNeeded(this.$refs.editor):clearInterval(this.timerScroll)},200))):this.$emit("on-blur")},recordState(e){e==="ing"?this.recordWave=window.Recorder.FrequencyHistogramView({elem:this.$refs.recwave,lineCount:90,position:0,minHeight:1,stripeEnable:!1}):(this.recordWave=null,this.$refs.recwave.innerHTML=""),this.$emit("on-record-state",e)},wrapperHeight(e,t){this.$emit("on-height-change",{newVal:e,oldVal:t})}},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:e=>this.isEnterSend?!0:(this.onSend(),!1)},enter:{key:13,shiftKey:!1,handler:e=>this.isEnterSend?(this.onSend(),!1):!0},esc:{key:27,shiftKey:!1,handler:e=>this.emojiQuickShow?(this.emojiQuickShow=!1,!1):!0}}},mention:{allowedChars:/^\S*$/,mentionDenotationChars:["@","#","~"],defaultMenuOrientation:this.defaultMenuOrientation,isolateCharacter:!0,positioningStrategy:"fixed",renderItem:e=>{if(e.disabled===!0)return`
${e.value}
`;if(e.id===0)return`
@
${e.value}
${e.tip}
`;if(e.avatar){const t=e.bot?'
':"";return`
${t}
${e.value}
`}return e.tip?`
${e.value}
${e.tip}
`:`
${e.value}
`},renderLoading:()=>"Loading...",source:(e,t,n)=>{const r=n=="@"?"user-mention":n=="#"?"task-mention":"file-mention",i=document.getElementsByClassName("ql-mention-list-container");for(let u=0;u{const c=[];u.some(d=>{let f=d.list;e&&(f=f.filter(({value:g})=>$A.strExists(g,e))),f.length>0&&(d.label&&c.push(...d.label),c.push(...f))}),$A.jsonStringify(c.map(({id:d})=>d))!==l&&(l=$A.jsonStringify(c.map(({id:d})=>d)),t(c,e))})}}}},this.options),this.quill=new rn(this.$refs.editor,this._options),this.quill.enable(!this.disabled),this.value?this.setContent(this.value):this.loadInputDraft(),this.quill.on("selection-change",e=>{if(!e){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=!!e}),this.quill.on("text-change",e=>{this.maxlength>0&&this.quill.getLength()>this.maxlength&&this.quill.deleteText(this.maxlength,this.quill.getLength());let t=this.$refs.editor.children[0].innerHTML;t=t.replace(/^(

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

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

<\/p>)+|(

<\/p>)+$/gi,""),this.updateEmojiQuick(t),this._content=t,this.$emit("input",this._content),this.$nextTick(n=>{const r=this.quill.getSelection();if(r){const i=this.quill.getText(r.index);/^\n\n$/.test(i)&&this.quill.deleteText(r.index,1)}})}),this.quill.clipboard.addMatcher(Node.ELEMENT_NODE,(e,t)=>(this.pasteClean&&(t.ops=t.ops.map(n=>{const r={insert:n.insert};try{typeof r.insert.mention=="object"&&e.innerHTML&&(r.insert=e.innerHTML.replace(/<[^>]+>/g,""))}catch{}return n.attributes&&["bold","strike","italic","underline","list","blockquote","link"].some(i=>{n.attributes[i]&&(typeof r.attributes=="undefined"&&(r.attributes={}),r.attributes[i]=n.attributes[i])}),r})),t)),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"]).then(e=>{typeof window.Recorder=="function"&&(this.recordRec=window.Recorder({type:"mp3",bitRate:64,sampleRate:32e3,onProcess:(t,n,r,i,l,u)=>{var c;(c=this.recordWave)==null||c.input(t[t.length-1],n,i),this.recordDuration=r,r>=3*60*1e3&&this.stopRecord(!1)}}),window.Recorder.Support()&&(this.recordReady=!0))})},updateEmojiQuick(e){if(!this.isFocus||!e){this.emojiQuickShow=!1;return}this.emojiQuickTimer&&clearTimeout(this.emojiQuickTimer),this.emojiQuickTimer=setTimeout(t=>{if(e=e.replace(/ /g," "),e=e.replace(/<[^>]+>/g,""),e&&e.indexOf(" ")===-1&&e.length>=1&&e.length<=4&&$A.isArray(window.emoticonData)){this.emojiQuickItems=[];let n=$A.apiUrl("../images/emoticon");if(window.emoticonData.some(r=>{let i=r.list.find(l=>$A.strExists(l.name+(l.key?` ${l.key}`:""),e));if(i&&(this.emojiQuickItems.push(Object.assign(i,{type:"emoticon",asset:`images/emoticon/${r.path}/${i.path}`,src:`${n}/${r.path}/${i.path}`})),this.emojiQuickItems.length>=3))return!0}),this.emojiQuickItems.length>0){this.$nextTick(r=>{this.emojiQuickShow=!0,this.$refs.emojiQuickRef.updatePopper()});return}}this.emojiQuickShow=!1},100)},getText(){return this.quill?this.quill.getText():""},setText(e){this.quill&&this.quill.setText(e)},setContent(e){this.quill&&this.quill.setContents(this.quill.clipboard.convert(e))},setPasteMode(e){this.pasteClean=e},loadInputDraft(){const{extra_draft_content:e}=this.dialogData;e?(this.pasteClean=!1,this.$emit("input",e),this.$nextTick(t=>this.pasteClean=!0)):this.$emit("input","")},onClickEditor(){this.$store.state.messengerSearchKey={dialog:"",contacts:""},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(e,t){if(!this.loading)switch(e){case"down":if(this.touchLimitX=!1,this.touchLimitY=!1,this.touchStart=t.type==="touchstart"?t.touches[0]:t,(t.button===void 0||t.button===0)&&this.startRecord())return;break;case"move":const n=t.type==="touchmove"?t.touches[0]:t;this.touchLimitX=(this.touchStart.clientX-n.clientX)/window.innerWidth>.1,this.touchLimitY=(this.touchStart.clientY-n.clientY)/window.innerHeight>.1;break;case"up":if(this.showMenu||this.stopRecord(this.touchLimitY)||this.touchLimitY||this.touchLimitX)return;this.onSend();break}},longSend(){this.sendClass!=="recorder"&&(this.showMenu=!0)},onSend(e){this.hidePopover("send"),this.rangeIndex=0,this.$store.state.messengerSearchKey={dialog:"",contacts:""},e?this.$emit("on-send",null,e):this.$emit("on-send")},startRecord(){return this.sendClass==="recorder"?(this.$store.dispatch("audioStop",!0),this.recordDuration=0,this.recordState="ready",this.$nextTick(e=>{this.recordRec.open(t=>{this.recordState==="ready"?(this.recordState="ing",this.recordBlob=null,setTimeout(n=>{this.recordRec.start()},300)):this.recordRec.close()},t=>{this.recordState="stop",$A.messageError(t||"\u6253\u5F00\u5F55\u97F3\u5931\u8D25")})}),!0):!1},stopRecord(e){switch(this.recordState){case"ing":return this.recordState="stop",this.recordRec.stop((t,n)=>{this.recordRec.close(),e!==!0&&(n<600?$A.messageWarning("\u8BF4\u8BDD\u65F6\u95F4\u592A\u77ED"):(this.recordBlob=t,this.uploadRecord(n)))},t=>{this.recordRec.close(),$A.messageError(t||"\u5F55\u97F3\u5931\u8D25")}),!0;case"ready":return this.recordState="stop",!0;default:return this.recordState="stop",!1}},hidePopover(e){this.showMenu=!1,this.showMore=!1,e!=="send"&&(this.showEmoji=!1,this.emojiQuickShow=!1)},onClickCover(){this.hidePopover(),this.$nextTick(e=>{var t;(t=this.quill)==null||t.focus()})},uploadRecord(e){if(this.recordBlob===null)return;const t=new FileReader;t.onloadend=()=>{this.$emit("on-record",{type:this.recordBlob.type,base64:t.result,duration:e})},t.readAsDataURL(this.recordBlob)},onEmojiQuick(e){e.type==="online"?(this.$emit("input",""),this.$emit("on-send",``)):(this.$emit("input",""),this.$emit("on-send",``)),this.emojiQuickShow=!1,this.focus()},onSelectEmoji(e){!this.quill||(e.type==="emoji"?(this.quill.insertText(this.rangeIndex,e.text),this.rangeIndex+=e.text.length,this.windowLandscape&&(this.showEmoji=!1)):e.type==="emoticon"&&(this.$emit("on-send",``),e.asset==="emosearch"&&this.$emit("input",""),this.windowLandscape&&(this.showEmoji=!1)))},onToolbar(e){switch(this.hidePopover(),e){case"user":this.openMenu("@");break;case"task":this.openMenu("#");break;case"meeting":qi.Store.set("addMeeting",{type:"create",dialog_id:this.dialogId,userids:[this.userId]});break;case"image":case"file":case"call":case"anon":this.$emit("on-more",e);break}},onMoreVisibleChange(e){this.showMore=e},setQuote(e,t="reply"){this.dialogId>0&&this.$store.dispatch("saveDialog",{id:this.dialogId,extra_quote_id:e,extra_quote_type:t==="update"?"update":"reply"})},cancelQuote(){this.quoteUpdate&&this.$emit("input",""),this.setQuote(0)},openMenu(e){if(!!this.quill)if(this.value.length===0||this.value.endsWith("


"))this.quill.getModule("mention").openMenu(e);else{let t=this.value.replace(/<[^>]+>/g,"");t.length===0||t.endsWith(" ")?this.quill.getModule("mention").openMenu(e):this.quill.getModule("mention").openMenu(` ${e}`)}},addMention(e){!this.quill||this.quill.getModule("mention").insertItem(e,!0)},getProjectId(){let e=null;if(this.dialogId>0){if(e=this.cacheProjects.find(({dialog_id:t})=>t==this.dialogId),e)return e.id;if(e=this.cacheTasks.find(({dialog_id:t})=>t==this.dialogId),e)return e.project_id}else if(this.taskId>0&&(e=this.cacheTasks.find(({id:t})=>t==this.taskId),e))return e.project_id;return 0},getMentionSource(e,t,n){switch(e){case"@":this.mentionMode="user-mention";const r=c=>{this.getMoreUser(t,c.map(d=>d.id)).then(d=>{this.userList=c,this.userCache=[],d.length>0?(c.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:c},{label:[{id:0,value:this.$L("\u4F1A\u8BDD\u4EE5\u5916\u6210\u5458"),disabled:!0}],list:d})):c.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:c}):this.userCache.push({label:null,list:c}),n(this.userCache)})};if(this.dialogData.people&&$A.arrayLength(this.userList)!==this.dialogData.people&&(this.userList=null,this.userCache=null),this.userCache!==null&&n(this.userCache),this.userList!==null){r(this.userList);return}const i=[];if(this.dialogId>0)this.$store.dispatch("call",{url:"dialog/user",data:{dialog_id:this.dialogId,getuser:1}}).then(({data:c})=>{this.cacheDialogs.find(({id:d})=>d==this.dialogId)&&this.$store.dispatch("saveDialog",{id:this.dialogId,people:c.length}),c.length>0&&i.push(...c.map(d=>({id:d.userid,value:d.nickname,avatar:d.userimg,online:d.online,bot:d.bot}))),r(i)}).catch(c=>{r(i)});else if(this.taskId>0){const c=this.cacheTasks.find(({id:d})=>d==this.taskId);c&&$A.isArray(c.task_user)&&c.task_user.some(d=>{const f=this.cacheUserBasic.find(({userid:g})=>g==d.userid);f&&i.push({id:f.userid,value:f.nickname,avatar:f.userimg,online:f.online,bot:f.bot})}),r(i)}break;case"#":if(this.mentionMode="task-mention",this.taskList!==null){n(this.taskList);return}const l=c=>{this.taskList=[],c.length>0&&(c=c.map(g=>({id:g.id,value:g.name,tip:g.complete_at?this.$L("\u5DF2\u5B8C\u6210"):null})).splice(0,100),this.taskList.push({label:[{id:0,value:this.$L("\u9879\u76EE\u4EFB\u52A1"),disabled:!0}],list:c}));let d=this.$store.getters.transforTasks(this.$store.getters.dashboardTask.all);d.length>0&&(d=d.sort((g,h)=>$A.Date(g.end_at||"2099-12-31 23:59:59")-$A.Date(h.end_at||"2099-12-31 23:59:59")).splice(0,100),this.taskList.push({label:[{id:0,value:this.$L("\u6211\u7684\u5F85\u5B8C\u6210\u4EFB\u52A1"),disabled:!0}],list:d.map(g=>({id:g.id,value:g.name}))}));let f=this.$store.getters.assistTask;f.length>0&&(f=f.sort((g,h)=>$A.Date(g.end_at||"2099-12-31 23:59:59")-$A.Date(h.end_at||"2099-12-31 23:59:59")).splice(0,100),this.taskList.push({label:[{id:0,value:this.$L("\u6211\u534F\u52A9\u7684\u4EFB\u52A1"),disabled:!0}],list:f.map(g=>({id:g.id,value:g.name}))})),n(this.taskList)},u=this.getProjectId();if(u>0){this.$store.dispatch("getTaskForProject",u).then(c=>{const d=this.cacheTasks.filter(f=>f.archived_at?!1:f.project_id==u&&f.parent_id===0&&!f.archived_at).sort((f,g)=>$A.Date(g.complete_at||"2099-12-31 23:59:59")-$A.Date(f.complete_at||"2099-12-31 23:59:59"));d.length>0?l(d):l([])}).catch(c=>{l([])});return}l([]);break;case"~":if(this.mentionMode="file-mention",$A.isArray(this.fileList[t])){n(this.fileList[t]);return}this.fileTimer&&clearTimeout(this.fileTimer),this.fileTimer=setTimeout(c=>{this.$store.dispatch("searchFiles",t).then(({data:d})=>{this.fileList[t]=[{label:[{id:0,value:this.$L("\u6587\u4EF6\u5206\u4EAB\u67E5\u770B"),disabled:!0}],list:d.filter(f=>f.type!=="folder").map(f=>({id:f.id,value:f.ext?`${f.name}.${f.ext}`:f.name}))}],n(this.fileList[t])}).catch(()=>{n([])})},300);break;default:n([]);break}},getMoreUser(e,t){return new Promise(n=>{const{owner_id:r,type:i}=this.dialogData,l=i==="group"&&[0,this.userId].includes(r);this.taskId>0||l?(this.__getMoreTimer&&clearTimeout(this.__getMoreTimer),this.__getMoreTimer=setTimeout(u=>{this.$store.dispatch("call",{url:"users/search",data:{keys:{key:e},state:1,take:30}}).then(({data:c})=>{const d=c.filter(f=>!t.includes(f.userid));n(d.map(f=>({id:f.userid,value:f.nickname,avatar:f.userimg,online:!!f.online})))}).catch(c=>{n([])})},this.userCache===null?0:600)):n([])})},checkIOSVersion(){let t=(window&&window.navigator&&window.navigator.userAgent).match(/OS ((\d+_?){2,3})\s/i);const r=(t?t[1].replace(/_/g,"."):"unknown").split(".");return+r[0]==11&&+r[1]>=0&&+r[1]<3},handlePaste(e){const t=Array.prototype.slice.call(e.clipboardData.files);t.filter(r=>!$A.leftExists(r.type,"image/")).length>0?(e.preventDefault(),this.$emit("on-file",t)):this.pasteRtf(e)&&e.preventDefault()},pasteRtf(e){if(e&&e.clipboardData&&e.clipboardData.items&&!new DOMParser().parseFromString(e.clipboardData.getData("text/html")||"","text/html").querySelector("img")){const n=[];let r=null;if(e.clipboardData.types&&[].indexOf.call(e.clipboardData.types,"text/rtf")!=-1||e.clipboardData.getData("text/rtf"))r=e.clipboardData.items[0].getAsFile(),r&&n.push(r);else for(let i=0;i0)return n.forEach(i=>{const l=new FileReader;l.onload=({target:u})=>{const c=this.quill.getSelection(!0).index;this.quill.insertEmbed(c,"image",u.result),this.quill.setSelection(c+1)},l.readAsDataURL(i)}),!0}return!1}}},yl={};var bJ=Wt(SJ,hJ,EJ,!1,vJ,null,null,null);function vJ(e){for(let t in yl)this[t]=yl[t]}var TJ=function(){return bJ.exports}(),Ic={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(e,t){(function(n,r){e.exports=r(zu)})(Gi,function(n){n=n&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n;function r(w,M){if(!(w instanceof M))throw new TypeError("Cannot call a class as a function")}function i(w,M){for(var x=0;xw.length)&&(M=w.length);for(var x=0,Y=new Array(M);xthis.range.start)){var Y=Math.max(x-this.param.buffer,0);this.checkRange(Y,this.getEndByStart(Y))}}},{key:"handleBehind",value:function(){var x=this.getScrollOvers();xx&&(le=V-1)}return Y>0?--Y:0}},{key:"getIndexOffset",value:function(x){if(!x)return 0;for(var Y=0,V=0,j=0;j1&&arguments[1]!==void 0?arguments[1]:0;if(M>=this.dataSources.length-1)this.scrollToBottom();else{var Y=this.virtual.getOffset(M);x!==0&&(Y=Math.max(0,Y+x)),this.scrollToOffset(Y)}},scrollToBottom:function(){var M=this,x=this.$refs.shepherd;if(x){var Y=x[this.isHorizontal?"offsetLeft":"offsetTop"];this.scrollToOffset(Y),this.toBottomTime&&(clearTimeout(this.toBottomTime),this.toBottomTime=null),this.toBottomTime=setTimeout(function(){M.getOffset()+M.getClientSize()+1V+1||!V||(this.virtual.handleScroll(x),this.emitEvent(x,Y,V,M))}},emitEvent:function(M,x,Y,V){this.$emit("scroll",V,this.virtual.getRange()),this.virtual.isFront()&&!!this.dataSources.length&&M-this.topThreshold<=0?this.$emit("totop"):this.virtual.isBehind()&&M+x+this.bottomThreshold>=Y&&this.$emit("tobottom")},getRenderSlots:function(M){for(var x=[],Y=this.range,V=Y.start,j=Y.end,le=this.dataSources,ee=this.dataKey,X=this.itemClass,U=this.itemTag,Q=this.itemStyle,Z=this.isHorizontal,ae=this.extraProps,se=this.dataComponent,K=this.itemScopedSlots,re=this.$scopedSlots&&this.$scopedSlots.item,de=V;de<=j;de++){var ce=le[de];if(ce){var he=typeof ee=="function"?ee(ce):ce[ee];typeof he=="string"||typeof he=="number"?x.push(M(F,{props:{index:de,tag:U,event:z.ITEM,horizontal:Z,uniqueKey:he,source:ce,extraProps:ae,component:se,slotComponent:re,scopedSlots:K},style:Q,class:"".concat(X).concat(this.itemClassAdd?" "+this.itemClassAdd(de):"")})):console.warn("Cannot get the data-key '".concat(ee,"' from data-sources."))}else console.warn("Cannot get the index '".concat(de,"' from data-sources."))}return x}},render:function(M){var x=this.$slots,Y=x.header,V=x.footer,j=this.range,le=j.padFront,ee=j.padBehind,X=this.isHorizontal,U=this.pageMode,Q=this.rootTag,Z=this.wrapTag,ae=this.wrapClass,se=this.wrapStyle,K=this.headerTag,re=this.headerClass,de=this.headerStyle,ce=this.footerTag,he=this.footerClass,Ae=this.footerStyle,Le=this.disabled,Ge={padding:X?"0px ".concat(ee,"px 0px ").concat(le,"px"):"".concat(le,"px 0px ").concat(ee,"px")},qe=se?Object.assign({},se,Ge):Ge;return M(Q,{ref:"root",style:Le?{overflow:"hidden"}:null,on:{"&scroll":!U&&this.onScroll}},[Y?M(G,{class:re,style:de,props:{tag:K,event:z.SLOT,uniqueKey:k.HEADER}},Y):null,M(Z,{class:ae,attrs:{role:"group"},style:qe},this.getRenderSlots(M)),V?M(G,{class:he,style:Ae,props:{tag:ce,event:z.SLOT,uniqueKey:k.FOOTER}},V):null,M("div",{ref:"shepherd",style:{width:X?"0px":"100%",height:X?"100%":"0px"}})])}});return L})})(Ic);var yJ=Ic.exports;function CJ(){return new Promise(e=>{const t=new $u({render(i){return i(Hu.exports.Modal,{class:"chat-emoji-one-modal",props:{fullscreen:!0,footerHide:!0},on:{"on-visible-change":l=>{l||setTimeout(u=>{document.body.removeChild(this.$el)},500)}}},[i(Ac,{attrs:{onlyEmoji:!0},on:{"on-select":l=>{this.$children[0].visible=!1,l.type==="emoji"&&e(l.text)}}})])}}),n=t.$mount();document.body.appendChild(n.$el);const r=t.$children[0];r.visible=!0,r.$el.lastChild.addEventListener("click",({target:i})=>{i.classList.contains("ivu-modal-body")&&(r.visible=!1)})})}var RJ=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.isReady?n("div",{staticClass:"dialog-wrapper",class:e.wrapperClass,on:{drop:function(r){return r.preventDefault(),e.chatPasteDrag(r,"drag")},dragover:function(r){return r.preventDefault(),e.chatDragOver(!0,r)},dragleave:function(r){return r.preventDefault(),e.chatDragOver(!1,r)},touchstart:e.onTouchStart,touchmove:e.onTouchMove}},[n("div",{staticClass:"dialog-nav",style:e.navStyle},[e._t("head",function(){return[n("div",{staticClass:"nav-wrapper",class:{completed:e.$A.dialogCompleted(e.dialogData)}},[n("div",{staticClass:"dialog-back",on:{click:e.onBack}},[n("i",{staticClass:"taskfont"},[e._v("\uE676")]),e.msgUnreadOnly?n("div",{staticClass:"back-num"},[e._v(e._s(e.msgUnreadOnly))]):e._e()]),n("div",{staticClass:"dialog-block"},[n("div",{staticClass:"dialog-avatar",on:{click:e.onViewAvatar}},[e.dialogData.type=="group"?[e.dialogData.avatar?n("EAvatar",{staticClass:"img-avatar",attrs:{src:e.dialogData.avatar,size:42}}):e.dialogData.group_type=="department"?n("i",{staticClass:"taskfont icon-avatar department"},[e._v("\uE75C")]):e.dialogData.group_type=="project"?n("i",{staticClass:"taskfont icon-avatar project"},[e._v("\uE6F9")]):e.dialogData.group_type=="task"?n("i",{staticClass:"taskfont icon-avatar task"},[e._v("\uE6F4")]):n("Icon",{staticClass:"icon-avatar",attrs:{type:"ios-people"}})]:e.dialogData.dialog_user?n("div",{staticClass:"user-avatar"},[n("UserAvatar",{attrs:{online:e.dialogData.online_state,userid:e.dialogData.dialog_user.userid,size:42},on:{"update:online":function(r){return e.$set(e.dialogData,"online_state",r)}}},[e.dialogData.type==="user"&&e.dialogData.online_state!==!0?n("p",{attrs:{slot:"end"},slot:"end"},[e._v(" "+e._s(e.$L(e.dialogData.online_state))+" ")]):e._e()])],1):n("Icon",{staticClass:"icon-avatar",attrs:{type:"md-person"}})],2),n("div",{staticClass:"dialog-title"},[n("div",{staticClass:"main-title"},[e._l(e.$A.dialogTags(e.dialogData),function(r){return r.color!="success"?[n("Tag",{attrs:{color:r.color,fade:!1}},[e._v(e._s(e.$L(r.text)))])]:e._e()}),n("h2",[e._v(e._s(e.dialogData.name))]),e.peopleNum>0?n("em",{on:{click:function(r){return e.onDialogMenu("groupInfo")}}},[e._v("("+e._s(e.peopleNum)+")")]):e._e(),e.dialogData.bot?n("Tag",{staticClass:"after",attrs:{fade:!1}},[e._v(e._s(e.$L("\u673A\u5668\u4EBA")))]):e._e(),e.dialogData.group_type=="all"?n("Tag",{staticClass:"after pointer",attrs:{fade:!1},on:{"on-click":function(r){return e.onDialogMenu("groupInfo")}}},[e._v(e._s(e.$L("\u5168\u5458")))]):e.dialogData.group_type=="department"?n("Tag",{staticClass:"after pointer",attrs:{fade:!1},on:{"on-click":function(r){return e.onDialogMenu("groupInfo")}}},[e._v(e._s(e.$L("\u90E8\u95E8")))]):e._e(),e.msgLoadIng>0?n("div",{staticClass:"load"},[n("Loading")],1):e._e()],2),n("ul",{staticClass:"title-desc"},[e.dialogData.type==="user"?n("li",{class:[e.dialogData.online_state===!0?"online":"offline"]},[e._v(" "+e._s(e.$L(e.dialogData.online_state===!0?"\u5728\u7EBF":e.dialogData.online_state))+" ")]):e._e()]),e.tagShow?n("ul",{staticClass:"title-tags scrollbar-hidden"},e._l(e.msgTags,function(r){var i;return n("li",{key:r.type,class:(i={},i[r.type||"msg"]=!0,i.active=e.msgType===r.type,i),on:{click:function(l){return e.onMsgType(r.type)}}},[n("i",{staticClass:"no-dark-content"}),n("span",[e._v(e._s(e.$L(r.label)))])])}),0):e._e()])]),n("EDropdown",{staticClass:"dialog-menu",attrs:{trigger:"click"},on:{command:e.onDialogMenu}},[n("i",{staticClass:"taskfont dialog-menu-icon"},[e._v("\uE6E9")]),n("EDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},[n("EDropdownItem",{attrs:{command:"searchMsg"}},[n("div",[e._v(e._s(e.$L("\u641C\u7D22\u6D88\u606F")))])]),e.dialogData.type==="user"?[e.dialogData.bot==e.userId?n("EDropdownItem",{attrs:{command:"modifyNormal"}},[n("div",[e._v(e._s(e.$L("\u4FEE\u6539\u8D44\u6599")))])]):e._e(),n("EDropdownItem",{attrs:{command:"openCreate"}},[n("div",[e._v(e._s(e.$L("\u521B\u5EFA\u7FA4\u7EC4")))])])]:[n("EDropdownItem",{attrs:{command:"groupInfo"}},[n("div",[e._v(e._s(e.$L("\u7FA4\u7EC4\u8BBE\u7F6E")))])]),e.dialogData.owner_id!=e.userId?[e.dialogData.group_type==="all"&&e.userIsAdmin?n("EDropdownItem",{attrs:{command:"modifyAdmin"}},[n("div",[e._v(e._s(e.$L("\u4FEE\u6539\u8D44\u6599")))])]):e._e(),n("EDropdownItem",{attrs:{command:"exit"}},[n("div",{staticStyle:{color:"#f00"}},[e._v(e._s(e.$L("\u9000\u51FA\u7FA4\u7EC4")))])])]:e.dialogData.group_type==="user"?[n("EDropdownItem",{attrs:{command:"modifyNormal"}},[n("div",[e._v(e._s(e.$L("\u4FEE\u6539\u8D44\u6599")))])]),n("EDropdownItem",{attrs:{command:"transfer"}},[n("div",[e._v(e._s(e.$L("\u8F6C\u8BA9\u7FA4\u4E3B")))])]),n("EDropdownItem",{attrs:{command:"disband"}},[n("div",{staticStyle:{color:"#f00"}},[e._v(e._s(e.$L("\u89E3\u6563\u7FA4\u7EC4")))])])]:e._e()]],2)],1),e.searchShow?n("div",{staticClass:"dialog-search"},[n("div",{staticClass:"search-location"},[n("i",{staticClass:"taskfont",on:{click:function(r){return e.onSearchSwitch("prev")}}},[e._v("\uE702")]),n("i",{staticClass:"taskfont",on:{click:function(r){return e.onSearchSwitch("next")}}},[e._v("\uE705")])]),n("div",{staticClass:"search-input"},[n("Input",{ref:"searchInput",attrs:{placeholder:e.$L("\u641C\u7D22\u6D88\u606F"),clearable:""},on:{"on-keyup":e.onSearchKeyup},model:{value:e.searchKey,callback:function(r){e.searchKey=r},expression:"searchKey"}},[n("div",{staticClass:"search-pre",attrs:{slot:"prefix"},slot:"prefix"},[e.searchLoad>0?n("Loading"):n("Icon",{attrs:{type:"ios-search"}})],1)]),e.searchLoad===0&&e.searchResult.length>0?n("div",{staticClass:"search-total",attrs:{slot:"append"},slot:"append"},[e._v(e._s(e.searchLocation)+"/"+e._s(e.searchResult.length))]):e._e()],1),n("div",{staticClass:"search-cancel",on:{click:function(r){return e.onSearchKeyup(null)}}},[e._v(e._s(e.$L("\u53D6\u6D88")))])]):e._e()],1)]})],2),e.positionMsg?n("div",{staticClass:"dialog-position",class:{down:e.tagShow}},[n("div",{staticClass:"position-label",on:{click:e.onPositionMark}},[e.positionLoad>0?n("Icon",{staticClass:"icon-loading",attrs:{type:"ios-loading"}}):n("i",{staticClass:"taskfont"},[e._v("\uE624")]),e._v(" "+e._s(e.positionMsg.label)+" ")],1)]):e._e(),n("VirtualList",{ref:"scroller",staticClass:"dialog-scroller scrollbar-overlay",class:e.scrollerClass,attrs:{"data-key":"id","data-sources":e.allMsgs,"data-component":e.msgItem,"item-class-add":e.itemClassAdd,"extra-props":{dialogData:e.dialogData,operateVisible:e.operateVisible,operateItem:e.operateItem,isMyDialog:e.isMyDialog,msgId:e.msgId},"estimate-size":e.dialogData.type=="group"?105:77,keeps:50,disabled:e.scrollDisabled},on:{scroll:e.onScroll,range:e.onRange,totop:e.onPrevPage,"on-mention":e.onMention,"on-longpress":e.onLongpress,"on-view-reply":e.onViewReply,"on-view-text":e.onViewText,"on-view-file":e.onViewFile,"on-down-file":e.onDownFile,"on-reply-list":e.onReplyList,"on-error":e.onError,"on-emoji":e.onEmoji,"on-show-emoji-user":e.onShowEmojiUser},scopedSlots:e._u([{key:"header",fn:function(){return[e.allMsgs.length===0&&e.loadIng||e.prevId>0?n("div",{staticClass:"dialog-item loading"},[e.scrollOffset<100?n("div",{staticClass:"dialog-wrapper-loading"}):e._e()]):e.allMsgs.length===0?n("div",{staticClass:"dialog-item nothing"},[e._v(e._s(e.$L("\u6682\u65E0\u6D88\u606F")))]):e._e()]},proxy:!0}],null,!1,3828201241)}),n("div",{ref:"footer",staticClass:"dialog-footer",class:e.footerClass,on:{click:e.onActive}},[n("div",{staticClass:"dialog-newmsg",on:{click:e.onToBottom}},[e._v(e._s(e.$L(`\u6709${e.msgNew}\u6761\u65B0\u6D88\u606F`)))]),n("div",{staticClass:"dialog-goto",on:{click:e.onToBottom}},[n("i",{staticClass:"taskfont"},[e._v("\uE72B")])]),n("DialogUpload",{ref:"chatUpload",staticClass:"chat-upload",attrs:{"dialog-id":e.dialogId},on:{"on-progress":function(r){return e.chatFile("progress",r)},"on-success":function(r){return e.chatFile("success",r)},"on-error":function(r){return e.chatFile("error",r)}}}),e.todoShow?n("div",{staticClass:"chat-bottom-menu"},[n("div",{staticClass:"bottom-menu-label"},[e._v(e._s(e.$L("\u5F85\u529E"))+":")]),n("ul",{staticClass:"scrollbar-hidden"},e._l(e.todoList,function(r){return n("li",{on:{click:function(i){return i.stopPropagation(),e.onViewTodo(r)}}},[n("div",{staticClass:"bottom-menu-desc no-dark-content"},[e._v(e._s(e.$A.getMsgSimpleDesc(r.msg_data)))])])}),0)]):e.quickShow?n("div",{staticClass:"chat-bottom-menu"},[n("ul",{staticClass:"scrollbar-hidden"},e._l(e.quickMsgs,function(r){return n("li",{on:{click:function(i){return i.stopPropagation(),e.sendQuick(r)}}},[n("div",{staticClass:"bottom-menu-desc no-dark-content",style:r.style||null},[e._v(e._s(r.label))])])}),0)]):e._e(),e.isMute?n("div",{staticClass:"chat-mute"},[e._v(" "+e._s(e.$L("\u7981\u8A00\u53D1\u8A00"))+" ")]):n("ChatInput",{ref:"input",attrs:{"dialog-id":e.dialogId,"emoji-bottom":e.windowSmall,maxlength:2e5,placeholder:e.$L("\u8F93\u5165\u6D88\u606F...")},on:{"on-focus":e.onEventFocus,"on-blur":e.onEventBlur,"on-more":e.onEventMore,"on-file":e.sendFileMsg,"on-send":e.sendMsg,"on-record":e.sendRecord,"on-record-state":e.onRecordState,"on-emoji-visible-change":e.onEventEmojiVisibleChange,"on-height-change":e.onHeightChange},model:{value:e.msgText,callback:function(r){e.msgText=r},expression:"msgText"}})],1),n("div",{directives:[{name:"show",rawName:"v-show",value:e.operateVisible,expression:"operateVisible"}],staticClass:"operate-position",style:e.operateStyles},[n("Dropdown",{attrs:{trigger:"custom",placement:"top",visible:e.operateVisible,transferClassName:"dialog-wrapper-operate",transfer:""},on:{"on-clickoutside":function(r){e.operateVisible=!1}}},[n("div",{style:{userSelect:e.operateVisible?"none":"auto",height:e.operateStyles.height}}),n("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[n("DropdownItem",{attrs:{name:"action"}},[n("ul",{staticClass:"operate-action"},[e.msgId===0?n("li",{on:{click:function(r){return e.onOperate("reply")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE6EB")]),n("span",[e._v(e._s(e.$L("\u56DE\u590D")))])]):e._e(),e.operateItem.userid==e.userId&&e.operateItem.type==="text"?n("li",{on:{click:function(r){return e.onOperate("update")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE779")]),n("span",[e._v(e._s(e.$L("\u7F16\u8F91")))])]):e._e(),e._l(e.operateCopys,function(r){return n("li",{on:{click:function(i){return e.onOperate("copy",r)}}},[n("i",{staticClass:"taskfont",domProps:{innerHTML:e._s(r.icon)}}),n("span",[e._v(e._s(e.$L(r.label)))])])}),n("li",{on:{click:function(r){return e.onOperate("forward")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE638")]),n("span",[e._v(e._s(e.$L("\u8F6C\u53D1")))])]),e.operateItem.userid==e.userId?n("li",{on:{click:function(r){return e.onOperate("withdraw")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE637")]),n("span",[e._v(e._s(e.$L("\u64A4\u56DE")))])]):e._e(),e.operateItem.type==="file"?[n("li",{on:{click:function(r){return e.onOperate("view")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE77B")]),n("span",[e._v(e._s(e.$L("\u67E5\u770B")))])]),n("li",{on:{click:function(r){return e.onOperate("down")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE7A8")]),n("span",[e._v(e._s(e.$L("\u4E0B\u8F7D")))])])]:e._e(),n("li",{on:{click:function(r){return e.onOperate("tag")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE61E")]),n("span",[e._v(e._s(e.$L(e.operateItem.tag?"\u53D6\u6D88\u6807\u6CE8":"\u6807\u6CE8")))])]),e.operateItem.type==="text"?n("li",{on:{click:function(r){return e.onOperate("newTask")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE7B8")]),n("span",[e._v(e._s(e.$L("\u65B0\u4EFB\u52A1")))])]):e._e(),n("li",{on:{click:function(r){return e.onOperate("todo")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE7B7")]),n("span",[e._v(e._s(e.$L(e.operateItem.todo?"\u53D6\u6D88\u5F85\u529E":"\u8BBE\u5F85\u529E")))])]),e.msgType!==""?n("li",{on:{click:function(r){return e.onOperate("pos")}}},[n("i",{staticClass:"taskfont"},[e._v("\uEE15")]),n("span",[e._v(e._s(e.$L("\u5B8C\u6574\u5BF9\u8BDD")))])]):e._e()],2)]),n("DropdownItem",{staticClass:"dropdown-emoji",attrs:{name:"emoji"}},[n("ul",{staticClass:"operate-emoji scrollbar-hidden"},[e._l(e.operateEmojis,function(r,i){return n("li",{key:i,staticClass:"no-dark-content",domProps:{innerHTML:e._s(r)},on:{click:function(l){return e.onOperate("emoji",r)}}})}),n("li"),n("li",{staticClass:"more-emoji",on:{click:function(r){return e.onOperate("emoji","more")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE790")])])],2)])],1)],1)],1),e.dialogDrag?n("div",{staticClass:"drag-over",on:{click:function(r){e.dialogDrag=!1}}},[n("div",{staticClass:"drag-text"},[e._v(e._s(e.$L("\u62D6\u52A8\u5230\u8FD9\u91CC\u53D1\u9001")))])]):e._e(),n("Modal",{attrs:{title:e.$L(e.pasteTitle),"cancel-text":e.$L("\u53D6\u6D88"),"ok-text":e.$L("\u53D1\u9001"),"enter-ok":!0},on:{"on-ok":e.pasteSend},model:{value:e.pasteShow,callback:function(r){e.pasteShow=r},expression:"pasteShow"}},[n("ul",{staticClass:"dialog-wrapper-paste",class:e.pasteWrapperClass},e._l(e.pasteItem,function(r){return n("li",[r.type=="image"?n("img",{attrs:{src:r.result}}):n("div",[e._v(e._s(e.$L("\u6587\u4EF6"))+": "+e._s(r.name)+" ("+e._s(e.$A.bytesToSize(r.size))+")")])])}),0)]),n("Modal",{attrs:{title:e.$L("\u521B\u5EFA\u7FA4\u7EC4"),"mask-closable":!1},model:{value:e.createGroupShow,callback:function(r){e.createGroupShow=r},expression:"createGroupShow"}},[n("Form",{attrs:{model:e.createGroupData,"label-width":"auto"},nativeOn:{submit:function(r){r.preventDefault()}}},[n("FormItem",{attrs:{prop:"avatar",label:e.$L("\u7FA4\u5934\u50CF")}},[n("ImgUpload",{attrs:{num:1,width:512,height:512,whcut:1},model:{value:e.createGroupData.avatar,callback:function(r){e.$set(e.createGroupData,"avatar",r)},expression:"createGroupData.avatar"}})],1),n("FormItem",{attrs:{prop:"chat_name",label:e.$L("\u7FA4\u540D\u79F0")}},[n("Input",{attrs:{placeholder:e.$L("\u8F93\u5165\u7FA4\u540D\u79F0\uFF08\u9009\u586B\uFF09")},model:{value:e.createGroupData.chat_name,callback:function(r){e.$set(e.createGroupData,"chat_name",r)},expression:"createGroupData.chat_name"}})],1),n("FormItem",{attrs:{prop:"userids",label:e.$L("\u7FA4\u6210\u5458")}},[n("UserInput",{attrs:{uncancelable:e.createGroupData.uncancelable,"multiple-max":100,"show-bot":"",placeholder:e.$L("\u9009\u62E9\u9879\u76EE\u6210\u5458")},model:{value:e.createGroupData.userids,callback:function(r){e.$set(e.createGroupData,"userids",r)},expression:"createGroupData.userids"}})],1)],1),n("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[n("Button",{attrs:{type:"default"},on:{click:function(r){e.createGroupShow=!1}}},[e._v(e._s(e.$L("\u53D6\u6D88")))]),n("Button",{attrs:{type:"primary",loading:e.createGroupLoad>0},on:{click:e.onCreateGroup}},[e._v(e._s(e.$L("\u521B\u5EFA")))])],1)],1),n("Modal",{attrs:{title:e.$L("\u4FEE\u6539\u8D44\u6599"),"mask-closable":!1},model:{value:e.modifyShow,callback:function(r){e.modifyShow=r},expression:"modifyShow"}},[n("Form",{attrs:{model:e.modifyData,"label-width":"auto"},nativeOn:{submit:function(r){r.preventDefault()}}},[n("FormItem",{attrs:{prop:"avatar",label:e.$L("\u5934\u50CF")}},[n("ImgUpload",{attrs:{num:1,width:512,height:512,whcut:1},model:{value:e.modifyData.avatar,callback:function(r){e.$set(e.modifyData,"avatar",r)},expression:"modifyData.avatar"}})],1),typeof e.modifyData.name!="undefined"?n("FormItem",{attrs:{prop:"name",label:e.$L("\u540D\u79F0")}},[n("Input",{attrs:{maxlength:20},model:{value:e.modifyData.name,callback:function(r){e.$set(e.modifyData,"name",r)},expression:"modifyData.name"}})],1):e._e(),typeof e.modifyData.clear_day!="undefined"?n("FormItem",{attrs:{prop:"clear_day",label:e.$L("\u6D88\u606F\u4FDD\u7559")}},[n("Input",{attrs:{maxlength:3,type:"number"},model:{value:e.modifyData.clear_day,callback:function(r){e.$set(e.modifyData,"clear_day",r)},expression:"modifyData.clear_day"}},[n("div",{attrs:{slot:"append"},slot:"append"},[e._v(e._s(e.$L("\u5929")))])])],1):e._e(),typeof e.modifyData.webhook_url!="undefined"?n("FormItem",{attrs:{prop:"webhook_url",label:"Webhook"}},[n("Input",{attrs:{maxlength:255},model:{value:e.modifyData.webhook_url,callback:function(r){e.$set(e.modifyData,"webhook_url",r)},expression:"modifyData.webhook_url"}})],1):e._e()],1),n("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[n("Button",{attrs:{type:"default"},on:{click:function(r){e.modifyShow=!1}}},[e._v(e._s(e.$L("\u53D6\u6D88")))]),n("Button",{attrs:{type:"primary",loading:e.modifyLoad>0},on:{click:e.onModify}},[e._v(e._s(e.$L("\u4FDD\u5B58")))])],1)],1),n("Modal",{attrs:{title:e.$L("\u8F6C\u53D1"),"mask-closable":!1},model:{value:e.forwardShow,callback:function(r){e.forwardShow=r},expression:"forwardShow"}},[n("DialogSelect",{model:{value:e.forwardData,callback:function(r){e.forwardData=r},expression:"forwardData"}}),n("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[n("Button",{attrs:{type:"default"},on:{click:function(r){e.forwardShow=!1}}},[e._v(e._s(e.$L("\u53D6\u6D88")))]),n("Button",{attrs:{type:"primary",loading:e.forwardLoad},on:{click:function(r){return e.onForward("submit")}}},[e._v(e._s(e.$L("\u8F6C\u53D1")))])],1)],1),n("Modal",{attrs:{title:e.$L("\u8BBE\u7F6E\u5F85\u529E"),"mask-closable":!1},model:{value:e.todoSettingShow,callback:function(r){e.todoSettingShow=r},expression:"todoSettingShow"}},[n("Form",{ref:"todoSettingForm",attrs:{model:e.todoSettingData,"label-width":"auto"},nativeOn:{submit:function(r){r.preventDefault()}}},[n("FormItem",{attrs:{prop:"type",label:e.$L("\u5F53\u524D\u4F1A\u8BDD")}},[n("RadioGroup",{model:{value:e.todoSettingData.type,callback:function(r){e.$set(e.todoSettingData,"type",r)},expression:"todoSettingData.type"}},[n("Radio",{attrs:{label:"all"}},[e._v(e._s(e.$L("\u6240\u6709\u6210\u5458")))]),n("Radio",{attrs:{label:"user"}},[e._v(e._s(e.$L("\u6307\u5B9A\u6210\u5458")))]),e.todoSettingData.my_id?n("Radio",{attrs:{label:"my"}},[n("div",{staticClass:"dialog-wrapper-todo"},[n("div",[n("UserAvatar",{attrs:{userid:e.todoSettingData.my_id,"show-icon":!1,"show-name":!0}}),n("Tag",[e._v(e._s(e.$L("\u81EA\u5DF1")))])],1)])]):e._e(),e.todoSettingData.you_id?n("Radio",{attrs:{label:"you"}},[n("div",{staticClass:"dialog-wrapper-todo"},[n("div",[n("UserAvatar",{attrs:{userid:e.todoSettingData.you_id,"show-icon":!1,"show-name":!0}})],1)])]):e._e()],1)],1),e.todoSettingData.type==="user"?n("FormItem",{attrs:{prop:"userids"}},[n("UserInput",{attrs:{"dialog-id":e.dialogId,placeholder:e.$L("\u9009\u62E9\u6307\u5B9A\u6210\u5458")},model:{value:e.todoSettingData.userids,callback:function(r){e.$set(e.todoSettingData,"userids",r)},expression:"todoSettingData.userids"}})],1):e._e()],1),n("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[n("Button",{attrs:{type:"default"},on:{click:function(r){e.todoSettingShow=!1}}},[e._v(e._s(e.$L("\u53D6\u6D88")))]),n("Button",{attrs:{type:"primary",loading:e.todoSettingLoad>0},on:{click:function(r){return e.onTodo("submit")}}},[e._v(e._s(e.$L("\u786E\u5B9A")))])],1)],1),n("DrawerOverlay",{attrs:{placement:"right",size:400},model:{value:e.groupInfoShow,callback:function(r){e.groupInfoShow=r},expression:"groupInfoShow"}},[e.groupInfoShow?n("DialogGroupInfo",{attrs:{dialogId:e.dialogId},on:{"on-close":function(r){e.groupInfoShow=!1}}}):e._e()],1),n("Modal",{attrs:{title:e.$L("\u8F6C\u8BA9\u7FA4\u4E3B\u8EAB\u4EFD"),"mask-closable":!1},model:{value:e.groupTransferShow,callback:function(r){e.groupTransferShow=r},expression:"groupTransferShow"}},[n("Form",{attrs:{model:e.groupTransferData,"label-width":"auto"},nativeOn:{submit:function(r){r.preventDefault()}}},[n("FormItem",{attrs:{prop:"userid",label:e.$L("\u65B0\u7684\u7FA4\u4E3B")}},[n("UserInput",{attrs:{disabledChoice:e.groupTransferData.disabledChoice,"multiple-max":1,"max-hidden-select":"",placeholder:e.$L("\u9009\u62E9\u65B0\u7684\u7FA4\u4E3B")},model:{value:e.groupTransferData.userid,callback:function(r){e.$set(e.groupTransferData,"userid",r)},expression:"groupTransferData.userid"}})],1)],1),n("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[n("Button",{attrs:{type:"default"},on:{click:function(r){e.groupTransferShow=!1}}},[e._v(e._s(e.$L("\u53D6\u6D88")))]),n("Button",{attrs:{type:"primary",loading:e.groupTransferLoad>0},on:{click:function(r){return e.onDialogMenu("transferConfirm")}}},[e._v(e._s(e.$L("\u786E\u5B9A\u8F6C\u8BA9")))])],1)],1),n("DrawerOverlay",{attrs:{placement:"right","class-name":"dialog-wrapper-drawer-list",size:500},model:{value:e.replyListShow,callback:function(r){e.replyListShow=r},expression:"replyListShow"}},[e.replyListShow?n("DialogWrapper",{staticClass:"drawer-list",attrs:{dialogId:e.dialogId,msgId:e.replyListId}},[n("div",{staticClass:"drawer-title",attrs:{slot:"head"},slot:"head"},[e._v(e._s(e.$L("\u56DE\u590D\u6D88\u606F")))])]):e._e()],1),n("DrawerOverlay",{attrs:{placement:"right",size:400},model:{value:e.respondShow,callback:function(r){e.respondShow=r},expression:"respondShow"}},[e.respondShow?n("DialogRespond",{attrs:{"respond-data":e.respondData},on:{"on-close":function(r){e.respondShow=!1}}}):e._e()],1),n("DrawerOverlay",{attrs:{placement:"right","class-name":"dialog-wrapper-drawer-list",size:500},model:{value:e.todoViewShow,callback:function(r){e.todoViewShow=r},expression:"todoViewShow"}},[n("div",{staticClass:"dialog-wrapper drawer-list"},[n("div",{staticClass:"dialog-nav"},[n("div",{staticClass:"drawer-title"},[e._v(e._s(e.$L("\u5F85\u529E\u6D88\u606F")))])]),n("div",{staticClass:"dialog-scroller scrollbar-overlay"},[e.todoViewMsg?n("DialogItem",{attrs:{source:e.todoViewMsg,simpleView:""},on:{"on-view-text":e.onViewText,"on-view-file":e.onViewFile,"on-down-file":e.onDownFile,"on-emoji":e.onEmoji}}):e._e(),n("Button",{staticClass:"original-button",attrs:{icon:"md-exit",type:"text",loading:e.todoViewPosLoad},on:{click:e.onPosTodo}},[e._v(e._s(e.$L("\u56DE\u5230\u539F\u6587")))])],1),n("div",{staticClass:"todo-button"},[n("Button",{attrs:{type:"primary",size:"large",icon:"md-checkbox-outline",loading:e.todoViewLoad,long:""},on:{click:e.onDoneTodo}},[e._v(e._s(e.$L("\u5B8C\u6210")))])],1)])])],1):e._e()},NJ=[];const OJ={name:"DialogWrapper",components:{ImgUpload:Ku,DialogSelect:Vu,DialogRespond:KZ,DialogItem:ml,VirtualList:yJ,ChatInput:TJ,DialogGroupInfo:YZ,DrawerOverlay:Wu,UserInput:Nl,DialogUpload:PZ},props:{dialogId:{type:Number,default:0},msgId:{type:Number,default:0},autoFocus:{type:Boolean,default:!1},beforeBack:Function},data(){return{msgItem:ml,msgText:"",msgNew:0,msgType:"",loadIng:0,allMsgs:[],tempMsgs:[],tempId:$A.randNum(1e9,9999999999),msgLoadIng:0,msgActiveIndex:-1,pasteShow:!1,pasteFile:[],pasteItem:[],searchShow:!1,searchKey:"",searchLoad:0,searchLocation:1,searchResult:[],createGroupShow:!1,createGroupData:{},createGroupLoad:0,modifyShow:!1,modifyData:{},modifyLoad: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:{},recordState:"",wrapperStart:{},scrollOffset:0,scrollTail:0,preventMoreLoad:!1,preventToBottom:!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:{...Vn(["userIsAdmin","taskId","dialogSearchMsgId","dialogMsgs","dialogTodos","dialogMsgTransfer","cacheDialogs","wsOpenNum","touchBackInProgress","dialogIns","cacheUserBasic","fileLinks","cacheEmojis"]),...Rl(["isLoad"]),isReady(){return this.dialogId>0&&this.dialogData.id>0},dialogData(){return this.cacheDialogs.find(({id:e})=>e==this.dialogId)||{}},dialogList(){return this.cacheDialogs.filter(e=>!(e.name===void 0||e.dialog_delete===1)).sort((e,t)=>e.top_at||t.top_at?$A.Date(t.top_at)-$A.Date(e.top_at):e.todo_num>0||t.todo_num>0?t.todo_num-e.todo_num:$A.Date(t.last_at)-$A.Date(e.last_at))},dialogMsgList(){return this.isReady?this.dialogMsgs.filter(e=>e.dialog_id==this.dialogId):[]},tempMsgList(){return this.isReady?this.tempMsgs.filter(e=>e.dialog_id==this.dialogId):[]},allMsgList(){const e=[];if(e.push(...this.dialogMsgList.filter(t=>this.msgFilter(t))),this.msgId>0){const t=this.dialogMsgs.find(n=>n.id==this.msgId);t&&e.unshift(t)}if(this.tempMsgList.length>0){const t=e.map(({id:r})=>r),n=this.tempMsgList.filter(r=>!t.includes(r.id)&&this.msgFilter(r));n.length>0&&e.push(...n)}return e.sort((t,n)=>t.id-n.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:e}=this;let t=e.find(({type:r})=>r=="image"),n=e.find(({type:r})=>r!="image");return t&&n?"\u53D1\u9001\u6587\u4EF6/\u56FE\u7247":t?"\u53D1\u9001\u56FE\u7247":"\u53D1\u9001\u6587\u4EF6"},msgTags(){const e=[{type:"",label:"\u6D88\u606F"}];return this.dialogData.has_tag&&e.push({type:"tag",label:"\u6807\u6CE8"}),this.dialogData.has_image&&e.push({type:"image",label:"\u56FE\u7247"}),this.dialogData.has_file&&e.push({type:"file",label:"\u6587\u4EF6"}),this.dialogData.has_link&&e.push({type:"link",label:"\u94FE\u63A5"}),this.dialogData.group_type==="project"&&e.push({type:"project",label:"\u6253\u5F00\u9879\u76EE"}),this.dialogData.group_type==="task"&&e.push({type:"task",label:"\u6253\u5F00\u4EFB\u52A1"}),e},quickMsgs(){return this.dialogData.quick_msgs||[]},quickShow(){return this.quickMsgs.length>0&&this.windowScrollY===0&&this.quoteId===0},todoList(){return this.dialogData.todo_num?this.dialogTodos.filter(e=>!e.done_at&&e.dialog_id==this.dialogId).sort((e,t)=>t.id-e.id):[]},todoShow(){return this.todoList.length>0&&this.windowScrollY===0&&this.quoteId===0},wrapperClass(){return["ready","ing"].includes(this.recordState)?["record-ready"]:null},tagShow(){return this.msgTags.length>1&&this.windowScrollY===0&&!this.searchShow},scrollerClass(){return!this.$slots.head&&this.tagShow?"default-header":null},pasteWrapperClass(){return this.pasteItem.find(({type:e})=>e!=="image")?["multiple"]:[]},footerClass(){return this.msgNew>0&&this.allMsgs.length>0?"newmsg":this.scrollTail>500?"goto":null},msgUnreadOnly(){let e=0;return this.cacheDialogs.some(t=>{e+=$A.getDialogNum(t)}),e<=0?"":(e>999&&(e="999+"),String(e))},isMyDialog(){const{dialogData:e,userId:t}=this;return e.dialog_user&&e.dialog_user.userid==t},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},quoteId(){return this.msgId>0?this.msgId:this.dialogData.extra_quote_id||0},quoteUpdate(){return this.dialogData.extra_quote_type==="update"},quoteData(){return this.quoteId?this.allMsgs.find(({id:e})=>e===this.quoteId):null},todoViewMsg(){if(this.todoViewMid){const e=this.allMsgs.find(t=>t.id==this.todoViewMid);if(e)return e;if(this.todoViewData.id===this.todoViewMid)return this.todoViewData}return null},positionMsg(){const{unread:e,position_msgs:t}=this.dialogData;if(!t||t.length===0||e===0||this.allMsgs.length===0)return null;const n=t.sort((r,i)=>i.msg_id-r.msg_id)[0];return this.allMsgs.findIndex(({id:r})=>r==n.msg_id)===-1?n.label==="{UNREAD}"?Object.assign(n,{label:this.$L(`\u672A\u8BFB\u6D88\u606F${e}\u6761`)}):n:null},operateEmojis(){const e=this.cacheEmojis.slice(0,3);return Object.values(["\u{1F44C}","\u{1F44D}","\u{1F602}","\u{1F389}","\u2764\uFE0F","\u{1F973}\uFE0F","\u{1F970}","\u{1F625}","\u{1F62D}"]).some(t=>{e.includes(t)||e.push(t)}),e}},watch:{dialogId:{handler(e,t){e&&(this.msgNew=0,this.msgType="",this.searchShow=!1,this.allMsgList.length>0&&(this.allMsgs=this.allMsgList,requestAnimationFrame(this.onToBottom)),this.getMsgs({dialog_id:e,msg_id:this.msgId,msg_type:this.msgType}).then(n=>{this.openId=e,setTimeout(this.onSearchMsgId,100)}).catch(n=>{}),this.$store.dispatch("saveInDialog",{uid:this._uid,dialog_id:e}),this.autoFocus&&this.inputFocus()),this.$store.dispatch("closeDialog",t)},immediate:!0},loadMsg:{handler(e){e?this.loadIng++:setTimeout(t=>{this.loadIng--},300)},immediate:!0},msgType(){this.getMsgs({dialog_id:this.dialogId,msg_id:this.msgId,msg_type:this.msgType,clear_before:!0}).catch(e=>{})},searchKey(e){!e||(this.searchLoad++,setTimeout(t=>{this.searchKey===e&&(this.searchLoad++,this.searchResult=[],this.searchLocation=0,this.$store.dispatch("call",{url:"dialog/msg/search",data:{dialog_id:this.dialogId,key:e}}).then(({data:n})=>{this.searchKey===e&&(this.searchResult=n.data,this.searchLocation=this.searchResult.length)}).finally(n=>{this.searchLoad--})),this.searchLoad--},600))},searchLocation(e){if(e===0)return;const t=this.searchResult[e-1];t&&this.onPositionId(t)},dialogSearchMsgId(){this.onSearchMsgId()},dialogMsgTransfer:{handler({time:e,msgFile:t,msgRecord:n,msgText:r,dialogId:i}){e>$A.Time()&&i==this.dialogId&&(this.$store.state.dialogMsgTransfer.time=0,this.$nextTick(()=>{$A.isArray(t)&&t.length>0?this.sendFileMsg(t):$A.isJson(n)&&n.duration>0?this.sendRecord(n):r&&this.sendMsg(r)}))},immediate:!0},wsOpenNum(e){e<=1||this.getMsgs({dialog_id:this.dialogId,msg_id:this.msgId,msg_type:this.msgType}).catch(t=>{})},allMsgList(e,t){const{tail:n}=this.scrollInfo();if(this.allMsgs=e,!this.windowActive||n>10&&t.length>0){const r=t[t.length-1]?t[t.length-1].id:0,i=e.filter(l=>l.id&&l.id>r);this.msgNew+=i.length}else this.preventToBottom||this.$nextTick(this.onToBottom)},windowScrollY(e){if($A.isIos()){const{tail:t}=this.scrollInfo();this.navStyle={marginTop:e+"px"},t<=10&&requestAnimationFrame(this.onToBottom),this.$refs.input.isFocus&&$A.scrollToView(this.$refs.footer)}},windowActive(e){if(e&&this.autoFocus){const t=$A.last(this.dialogIns);t&&t.uid===this._uid&&this.inputFocus()}},dialogDrag(e){e&&(this.operateVisible=!1)},msgActiveIndex(e){e>-1&&setTimeout(t=>this.msgActiveIndex=-1,800)}},methods:{sendMsg(e,t){let n,r="text",i="no",l=!1;if(typeof e=="string"&&e?n=e:(n=this.msgText,l=!0),t==="md"?(n=this.$refs.input.getText(),r="md"):t==="silence"&&(i="yes"),n==""){this.inputFocus();return}if(r==="text"&&(n=n.replace(/<\/span> <\/p>$/,"

")),this.quoteUpdate){r==="text"&&(n=n.replace(new RegExp(`src=(["'])${$A.apiUrl("../")}`,"g"),"src=$1{{RemoteURL}}"));const u=this.quoteId;this.$store.dispatch("setLoad",{key:`msg-${u}`,delay:600}),this.cancelQuote(),this.onActive(),this.$store.dispatch("call",{url:"dialog/msg/sendtext",data:{dialog_id:this.dialogId,update_id:u,text:n,text_type:r,silence:i},method:"post",complete:c=>this.$store.dispatch("cancelLoad",`msg-${u}`)}).then(({data:c})=>{this.sendSuccess(c),this.onPositionId(u)}).catch(({msg:c})=>{$A.modalError(c)})}else{const u=$A.stringLength(n.replace(/]*?>/g,""))>5e3,c={id:this.getTempId(),dialog_id:this.dialogData.id,reply_id:this.quoteId,reply_data:this.quoteData,type:u?"loading":"text",userid:this.userId,msg:{text:u?"":n,type:r}};this.tempMsgs.push(c),this.msgType="",this.cancelQuote(),this.onActive(),this.$nextTick(this.onToBottom),this.$store.dispatch("call",{url:"dialog/msg/sendtext",data:{dialog_id:c.dialog_id,reply_id:c.reply_id,text:n,text_type:r,silence:i},method:"post"}).then(({data:d})=>{this.tempMsgs=this.tempMsgs.filter(({id:f})=>f!=c.id),this.sendSuccess(d)}).catch(d=>{this.$set(c,"error",!0),this.$set(c,"errorData",{type:"text",content:d.msg,msg:n})})}l&&requestAnimationFrame(u=>this.msgText="")},sendRecord(e){const t={id:this.getTempId(),dialog_id:this.dialogData.id,reply_id:this.quoteId,reply_data:this.quoteData,type:"loading",userid:this.userId,msg:e};this.tempMsgs.push(t),this.msgType="",this.cancelQuote(),this.onActive(),this.$nextTick(this.onToBottom),this.$store.dispatch("call",{url:"dialog/msg/sendrecord",data:Object.assign(e,{dialog_id:this.dialogId,reply_id:this.quoteId}),method:"post"}).then(({data:n})=>{this.tempMsgs=this.tempMsgs.filter(({id:r})=>r!=t.id),this.sendSuccess(n)}).catch(n=>{this.$set(t,"error",!0),this.$set(t,"errorData",{type:"record",content:n.msg,msg:e})})},sendFileMsg(e){const t=$A.isArray(e)?e:[e];t.length>0&&(this.pasteFile=[],this.pasteItem=[],t.some(n=>{const r={type:$A.getMiddle(n.type,null,"/"),name:n.name,size:n.size,result:null};if(r.type==="image"){const i=new FileReader;i.readAsDataURL(n),i.onload=({target:l})=>{r.result=l.result,this.pasteFile.push(n),this.pasteItem.push(r),this.pasteShow=!0}}else this.pasteFile.push(n),this.pasteItem.push(r),this.pasteShow=!0}))},sendQuick(e){this.sendMsg(`

${e.label}

`)},getTempId(){return this.tempId++},getMsgs(e){return new Promise((t,n)=>{setTimeout(r=>this.msgLoadIng++,2e3),this.$store.dispatch("getDialogMsgs",e).then(t).catch(n).finally(r=>{this.msgLoadIng--})})},msgFilter(e){if(this.msgType){if(this.msgType==="tag"){if(!e.tag)return!1}else if(this.msgType==="link"){if(!e.link)return!1}else if(this.msgType!==e.mtype)return!1}return!(this.msgId&&e.reply_id!=this.msgId)},onSearchMsgId(){this.dialogSearchMsgId>0&&this.openId===this.dialogId&&(this.onPositionId(this.dialogSearchMsgId),this.$store.state.dialogSearchMsgId=0)},onPositionId(e,t=0,n=0){return new Promise((r,i)=>{if(e===0){$A.modalError("\u67E5\u770B\u5931\u8D25\uFF1A\u53C2\u6570\u9519\u8BEF"),i();return}if(this.loadMsg||this.msgType!==""){if(this.msgType="",n===0)this.$store.dispatch("showSpinner",600);else if(n>20){this.$store.dispatch("hiddenSpinner"),$A.modalError("\u67E5\u770B\u5931\u8D25\uFF1A\u8BF7\u6C42\u8D85\u65F6"),i();return}n++,setTimeout(c=>{this.onPositionId(e,t,n).then(r).catch(i)},Math.min(800,200*n));return}n>0&&this.$store.dispatch("hiddenSpinner");const l=this.allMsgs.findIndex(c=>c.id===e),u=this.prevId>0?0:-1;l>u?setTimeout(c=>{this.onToIndex(l),r()},200):(t>0&&this.$store.dispatch("setLoad",{key:`msg-${t}`,delay:600}),this.preventToBottom=!0,this.getMsgs({dialog_id:this.dialogId,msg_id:this.msgId,msg_type:this.msgType,position_id:e,spinner:2e3}).finally(c=>{const d=this.allMsgs.findIndex(f=>f.id===e);d>-1&&(this.onToIndex(d),r()),t>0&&this.$store.dispatch("cancelLoad",`msg-${t}`),this.preventToBottom=!1}))})},onViewTodo(e){if(this.operateVisible)return;this.todoViewId=e.id,this.todoViewMid=e.msg_id,this.todoViewShow=!0,this.allMsgs.findIndex(n=>n.id===this.todoViewMid)===-1&&this.$store.dispatch("call",{url:"dialog/msg/one",data:{msg_id:this.todoViewMid}}).then(({data:n})=>{this.todoViewData=n})},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(e=>{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:e})=>{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}),e.add&&this.sendSuccess(e.add),this.todoList.length===0&&this.$store.dispatch("getDialogTodo",this.dialogId),this.onCloseTodo()}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.todoViewLoad=!1}))},itemClassAdd(e){return e===this.msgActiveIndex?"common-shake":""},inputFocus(){this.$nextTick(e=>{this.$refs.input&&this.$refs.input.focus()})},onRecordState(e){this.recordState=e},chatPasteDrag(e,t){this.dialogDrag=!1;const n=t==="drag"?e.dataTransfer.files:e.clipboardData.files,r=Array.prototype.slice.call(n);r.length>0&&(e.preventDefault(),this.sendFileMsg(r))},chatDragOver(e,t){let n=this.__dialogDrag=$A.randomString(8);if(!e)setTimeout(()=>{n===this.__dialogDrag&&(this.dialogDrag=e)},150);else{if(t.dataTransfer.effectAllowed==="move"||Array.prototype.slice.call(t.dataTransfer.files).length===0)return;this.dialogDrag=!0}},onTouchStart(e){this.wrapperStart=Object.assign(this.scrollInfo(),{clientY:e.touches[0].clientY,exclud:!this.$refs.scroller.$el.contains(e.target)})},onTouchMove(e){if(this.windowSmall&&this.windowScrollY>0){if(this.wrapperStart.exclud){e.preventDefault();return}this.wrapperStart.clientY>e.touches[0].clientY?this.wrapperStart.tail===0&&e.preventDefault():this.wrapperStart.offset===0&&e.preventDefault()}},pasteSend(){this.pasteFile.some(e=>{this.$refs.chatUpload.upload(e)})},chatFile(e,t){switch(e){case"progress":const n={id:t.tempId,dialog_id:this.dialogData.id,reply_id:this.quoteId,type:"loading",userid:this.userId,msg:{}};this.tempMsgs.push(n),this.msgType="",this.cancelQuote(),this.onActive(),this.$nextTick(this.onToBottom);break;case"error":this.tempMsgs=this.tempMsgs.filter(({id:r})=>r!=t.tempId);break;case"success":this.tempMsgs=this.tempMsgs.filter(({id:r})=>r!=t.tempId),this.sendSuccess(t.data);break}},sendSuccess(e){if($A.isArray(e)){e.some(this.sendSuccess);return}this.$store.dispatch("saveDialogMsg",e),this.quoteUpdate||(this.$store.dispatch("increaseTaskMsgNum",e),this.$store.dispatch("increaseMsgReplyNum",e),this.$store.dispatch("updateDialogLastMsg",e)),this.cancelQuote(),this.onActive()},setQuote(e,t){var n;(n=this.$refs.input)==null||n.setQuote(e,t)},cancelQuote(){var e;(e=this.$refs.input)==null||e.cancelQuote()},onEventFocus(){this.$emit("on-focus")},onEventBlur(){this.$emit("on-blur")},onEventMore(e){switch(e){case"image":case"file":this.$refs.chatUpload.handleClick();break;case"call":this.onCallTel();break;case"anon":this.onAnon();break}},onCallTel(){this.$store.dispatch("call",{url:"dialog/tel",data:{dialog_id:this.dialogId},spinner:600}).then(({data:e})=>{e.tel&&$A.eeuiAppSendMessage({action:"callTel",tel:e.tel}),e.add&&(this.$store.dispatch("saveDialogMsg",e.add),this.$store.dispatch("updateDialogLastMsg",e.add),this.onActive())}).catch(({msg:e})=>{$A.modalError(e)})},onAnon(){if(this.dialogData.type!=="user"||this.dialogData.bot){$A.modalWarning("\u533F\u540D\u6D88\u606F\u4EC5\u5141\u8BB8\u53D1\u9001\u7ED9\u4E2A\u4EBA");return}$A.modalInput({title:"\u53D1\u9001\u533F\u540D\u6D88\u606F",placeholder:"\u533F\u540D\u6D88\u606F\u5C06\u901A\u8FC7\u533F\u540D\u6D88\u606F\uFF08\u673A\u5668\u4EBA\uFF09\u53D1\u9001\u7ED9\u5BF9\u65B9\uFF0C\u4E0D\u4F1A\u8BB0\u5F55\u4F60\u7684\u4EFB\u4F55\u8EAB\u4EFD\u4FE1\u606F",inputProps:{type:"textarea",rows:3,autosize:{minRows:3,maxRows:6},maxlength:2e3},okText:"\u533F\u540D\u53D1\u9001",onOk:e=>e?new Promise((t,n)=>{this.$store.dispatch("call",{url:"dialog/msg/sendanon",data:{userid:this.dialogData.dialog_user.userid,text:e},method:"post"}).then(({msg:r})=>{t(r)}).catch(({msg:r})=>{n(r)})}):"\u8BF7\u8F93\u5165\u6D88\u606F\u5185\u5BB9"})},onEventEmojiVisibleChange(e){e&&this.windowSmall&&this.onToBottom()},onHeightChange({newVal:e,oldVal:t}){const n=e-t;if(n!==0){const{offset:r,tail:i}=this.scrollInfo();i>0&&this.onToOffset(r+n)}},onActive(){this.$emit("on-active")},onToBottom(){this.msgNew=0;const e=this.$refs.scroller;e&&(e.scrollToBottom(),requestAnimationFrame(t=>e.scrollToBottom()))},onToIndex(e){const t=this.$refs.scroller;t&&(t.stopToBottom(),t.scrollToIndex(e,-100),requestAnimationFrame(n=>t.scrollToIndex(e,-100))),requestAnimationFrame(n=>this.msgActiveIndex=e)},onToOffset(e){const t=this.$refs.scroller;t&&(t.stopToBottom(),t.scrollToOffset(e),setTimeout(n=>t.scrollToOffset(e),10))},scrollInfo(){const e=this.$refs.scroller;return e?e.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:e=>this.scrollDisabled=!0,save_after:e=>this.scrollDisabled=!1}).then(({data:e})=>{const t=e.list.map(n=>n.id);this.$nextTick(()=>{const n=this.$refs.scroller,r=t.reduce((l,u)=>({size:(typeof l=="object"?l.size:n.getSize(l))+n.getSize(u)}));let i=n.getOffset()+r.size;this.prevId===0&&(i-=36),this.onToOffset(i),setTimeout(l=>n.virtual.handleFront(),10)})}).catch(()=>{})},onDialogMenu(e){var t;switch(e){case"searchMsg":this.searchShow=!0,this.$nextTick(r=>{this.$refs.searchInput.focus()});break;case"openCreate":const n=[this.userId];this.dialogData.dialog_user&&this.userId!=this.dialogData.dialog_user.userid&&n.push(this.dialogData.dialog_user.userid),this.createGroupData={userids:n,uncancelable:[this.userId]},this.createGroupShow=!0;break;case"modifyNormal":this.modifyData={dialog_id:this.dialogData.id,avatar:this.dialogData.avatar,name:this.dialogData.name},this.dialogData.type==="user"&&(this.modifyData=Object.assign(this.modifyData,{userid:this.dialogData.dialog_user.userid,avatar:(t=this.cacheUserBasic.find(r=>r.userid===this.dialogData.dialog_user.userid))==null?void 0:t.userimg,clear_day:0,webhook_url:""}),this.modifyLoad++,this.$store.dispatch("call",{url:"users/bot/info",data:{id:this.dialogData.dialog_user.userid}}).then(({data:r})=>{this.modifyData.clear_day=r.clear_day,this.modifyData.webhook_url=r.webhook_url}).finally(()=>{this.modifyLoad--})),this.modifyShow=!0;break;case"modifyAdmin":this.modifyData={dialog_id:this.dialogData.id,avatar:this.dialogData.avatar,admin:1},this.modifyShow=!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:e,msg:t})=>{$A.messageSuccess(t),this.$store.dispatch("saveDialog",e)}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{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((e,t)=>{this.$store.dispatch("call",{url:"dialog/group/disband",data:{dialog_id:this.dialogId}}).then(({msg:n})=>{e(n),this.$store.dispatch("forgetDialog",this.dialogId),this.goForward({name:"manage-messenger"})}).catch(({msg:n})=>{t(n)})})})},onExitGroup(){$A.modalConfirm({content:"\u4F60\u786E\u5B9A\u8981\u9000\u51FA\u7FA4\u7EC4\u5417\uFF1F",loading:!0,onOk:()=>new Promise((e,t)=>{this.$store.dispatch("call",{url:"dialog/group/deluser",data:{dialog_id:this.dialogId}}).then(({msg:n})=>{e(n),this.$store.dispatch("forgetDialog",this.dialogId),this.goForward({name:"manage-messenger"})}).catch(({msg:n})=>{t(n)})})})},onCreateGroup(){this.createGroupLoad++,this.$store.dispatch("call",{url:"dialog/group/add",data:this.createGroupData}).then(({data:e,msg:t})=>{$A.messageSuccess(t),this.createGroupShow=!1,this.createGroupData={},this.$store.dispatch("saveDialog",e),this.$store.dispatch("openDialog",e.id)}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.createGroupLoad--})},onModify(){this.modifyData.userid?(this.modifyLoad++,this.$store.dispatch("call",{url:"users/bot/edit",data:{id:this.modifyData.userid,avatar:this.modifyData.avatar,name:this.modifyData.name,clear_day:this.modifyData.clear_day,webhook_url:this.modifyData.webhook_url},method:"post"}).then(({data:e,msg:t})=>{$A.messageSuccess(t),this.$store.dispatch("saveUserBasic",{userid:this.modifyData.userid,nickname:e.name,userimg:e.avatar}),this.$store.dispatch("saveDialog",{id:this.modifyData.dialog_id,name:e.name}),this.modifyShow=!1,this.modifyData={}}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.modifyLoad--})):(this.modifyLoad++,this.$store.dispatch("call",{url:"dialog/group/edit",data:this.modifyData}).then(({data:e,msg:t})=>{$A.messageSuccess(t),this.$store.dispatch("saveDialog",e),this.modifyShow=!1,this.modifyData={}}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.modifyLoad--}))},onForward(e){if(e==="open")this.forwardData={dialogids:[],userids:[],msg_id:this.operateItem.id},this.forwardShow=!0;else if(e==="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:t,msg:n})=>{this.forwardShow=!1,this.$store.dispatch("saveDialogMsg",t.msgs),this.$store.dispatch("updateDialogLastMsg",t.msgs),$A.messageSuccess(n)}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.forwardLoad=!1})}},onScroll(e){this.operateVisible=!1;const{offset:t,tail:n}=this.scrollInfo();this.scrollOffset=t,this.scrollTail=n,this.scrollTail<=10&&(this.msgNew=0),this.scrollAction=e.target.scrollTop,this.scrollDirection=this.scrollTmp<=this.scrollAction?"down":"up",setTimeout(r=>this.scrollTmp=this.scrollAction,0)},onRange(e){if(this.preventMoreLoad)return;const t=this.scrollDirection==="down"?"next_id":"prev_id";for(let n=e.start;n<=e.end;n++){const r=this.allMsgs[n][t];if(r){const i=this.allMsgs[n+(t==="next_id"?1:-1)];i&&i.id!=r&&(this.preventMoreLoad=!0,this.getMsgs({dialog_id:this.dialogId,msg_id:this.msgId,msg_type:this.msgType,[t]:r}).finally(l=>{this.preventMoreLoad=!1}))}}},onBack(){if(!this.beforeBack)return this.handleBack();const e=this.beforeBack();e&&e.then?e.then(()=>{this.handleBack()}):this.handleBack()},handleBack(){const{name:e,params:t}=this.$store.state.routeHistoryLast;e===this.$route.name&&/^\d+$/.test(t.dialogId)?this.goForward({name:this.$route.name}):this.goBack()},onMsgType(e){switch(e){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=e;break}},onMention(e){const t=this.cacheUserBasic.find(({userid:n})=>n==e.userid);t&&this.$refs.input.addMention({denotationChar:"@",id:t.userid,value:t.nickname})},onLongpress({event:e,el:t,msgData:n}){this.operateVisible=this.operateItem.id===n.id,this.operateItem=$A.isJson(n)?n:{},this.operateCopys=[],e.target.nodeName==="IMG"&&this.$Electron?this.operateCopys.push({type:"image",icon:"",label:"\u590D\u5236\u56FE\u7247",value:$A.rightDelete(e.target.currentSrc,"_thumb.jpg")}):e.target.nodeName==="A"&&(e.target.classList.contains("mention")&&e.target.classList.contains("file")&&this.findOperateFile(this.operateItem.id,e.target.href),this.operateCopys.push({type:"link",icon:"",label:"\u590D\u5236\u94FE\u63A5",value:e.target.href})),n.type==="text"&&(e.target.nodeName==="IMG"&&this.operateCopys.push({type:"imagedown",icon:"",label:"\u4E0B\u8F7D\u56FE\u7247",value:$A.rightDelete(e.target.currentSrc,"_thumb.jpg")}),n.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 r=t.getBoundingClientRect(),i=this.$el.getBoundingClientRect();this.operateStyles={left:`${e.clientX-i.left}px`,top:`${r.top+this.windowScrollY}px`,height:r.height+"px"},this.operateVisible=!0})},onOperate(e,t=null){this.operateVisible=!1,this.$nextTick(n=>{switch(e){case"reply":this.onReply();break;case"update":this.onUpdate();break;case"copy":this.onCopy(t);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 r=$A.formatMsgBasic(this.operateItem.msg.text);r=r.replace(/]*?src=(["'])(.*?)(_thumb\.jpg)*\1[^>]*?>/g,''),qi.Store.set("addTask",{owner:[this.userId],content:r});break;case"todo":this.onTodo();break;case"pos":this.onPositionId(this.operateItem.id);break;case"emoji":t==="more"?CJ().then(this.onEmoji):this.onEmoji(t);break}})},onReply(e){const{tail:t}=this.scrollInfo();this.setQuote(this.operateItem.id,e),this.inputFocus(),t<=10&&requestAnimationFrame(this.onToBottom)},onUpdate(){const{type:e}=this.operateItem;if(this.onReply(e==="text"?"update":"reply"),e==="text"){let{text:t,type:n}=this.operateItem.msg;this.$refs.input.setPasteMode(!1),n==="md"?this.$refs.input.setText(t):(t.indexOf("mention")>-1&&(t=t.replace(/
]*)>~([^>]*)<\/a>/g,'~$3'),t=t.replace(/([@#])([^>]*)<\/span>/g,'$3$4')),t=t.replace(/]*>/gi,r=>r.replace(/(width|height)="\d+"\s*/ig,"")),this.msgText=$A.formatMsgBasic(t)),this.$nextTick(r=>this.$refs.input.setPasteMode(!0))}},onCopy(e){if(!$A.isJson(e))return;const{type:t,value:n}=e;switch(t){case"image":this.$Electron&&this.getBase64Image(n).then(i=>{this.$Electron.sendMessage("copyBase64Image",{base64:i})});break;case"imagedown":this.$store.dispatch("downUrl",{url:n,token:!1});break;case"filepos":this.windowSmall&&this.$store.dispatch("openDialog",0),this.goForward({name:"manage-file",params:n});break;case"link":this.$copyText(n).then(i=>$A.messageSuccess("\u590D\u5236\u6210\u529F")).catch(i=>$A.messageError("\u590D\u5236\u5931\u8D25"));break;case"text":const r=$A(this.$refs.scroller.$el).find(`[data-id="${this.operateItem.id}"]`).find(".dialog-content");if(r.length>0){const i=r[0].innerText.replace(/\n\n/g,` +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var b={FRONT:"FRONT",BEHIND:"BEHIND"},C={INIT:"INIT",FIXED:"FIXED",DYNAMIC:"DYNAMIC"},E=0,v=function(){function w(M,x){r(this,w),this.init(M,x)}return l(w,[{key:"init",value:function(x,Y){this.param=x,this.callUpdate=Y,this.sizes=new Map,this.firstRangeTotalSize=0,this.firstRangeAverageSize=0,this.lastCalcIndex=0,this.fixedSizeValue=0,this.calcType=C.INIT,this.offset=0,this.direction="",this.range=Object.create(null),x&&this.checkRange(0,x.keeps-1)}},{key:"destroy",value:function(){this.init(null,null)}},{key:"getRange",value:function(){var x=Object.create(null);return x.start=this.range.start,x.end=this.range.end,x.padFront=this.range.padFront,x.padBehind=this.range.padBehind,x}},{key:"isBehind",value:function(){return this.direction===b.BEHIND}},{key:"isFront",value:function(){return this.direction===b.FRONT}},{key:"getOffset",value:function(x){return(x<1?0:this.getIndexOffset(x))+this.param.slotHeaderSize}},{key:"updateParam",value:function(x,Y){var V=this;this.param&&x in this.param&&(x==="uniqueIds"&&this.sizes.forEach(function(j,le){Y.includes(le)||V.sizes.delete(le)}),this.param[x]=Y)}},{key:"saveSize",value:function(x,Y){this.sizes.set(x,Y),this.calcType===C.INIT?(this.fixedSizeValue=Y,this.calcType=C.FIXED):this.calcType===C.FIXED&&this.fixedSizeValue!==Y&&(this.calcType=C.DYNAMIC,delete this.fixedSizeValue),this.calcType!==C.FIXED&&typeof this.firstRangeTotalSize!="undefined"&&(this.sizes.sizethis.range.start)){var Y=Math.max(x-this.param.buffer,0);this.checkRange(Y,this.getEndByStart(Y))}}},{key:"handleBehind",value:function(){var x=this.getScrollOvers();xx&&(le=V-1)}return Y>0?--Y:0}},{key:"getIndexOffset",value:function(x){if(!x)return 0;for(var Y=0,V=0,j=0;j1&&arguments[1]!==void 0?arguments[1]:0;if(M>=this.dataSources.length-1)this.scrollToBottom();else{var Y=this.virtual.getOffset(M);x!==0&&(Y=Math.max(0,Y+x)),this.scrollToOffset(Y)}},scrollToBottom:function(){var M=this,x=this.$refs.shepherd;if(x){var Y=x[this.isHorizontal?"offsetLeft":"offsetTop"];this.scrollToOffset(Y),this.toBottomTime&&(clearTimeout(this.toBottomTime),this.toBottomTime=null),this.toBottomTime=setTimeout(function(){M.getOffset()+M.getClientSize()+1V+1||!V||(this.virtual.handleScroll(x),this.emitEvent(x,Y,V,M))}},emitEvent:function(M,x,Y,V){this.$emit("scroll",V,this.virtual.getRange()),this.virtual.isFront()&&!!this.dataSources.length&&M-this.topThreshold<=0?this.$emit("totop"):this.virtual.isBehind()&&M+x+this.bottomThreshold>=Y&&this.$emit("tobottom")},getRenderSlots:function(M){for(var x=[],Y=this.range,V=Y.start,j=Y.end,le=this.dataSources,ee=this.dataKey,X=this.itemClass,U=this.itemTag,Q=this.itemStyle,Z=this.isHorizontal,ae=this.extraProps,se=this.dataComponent,K=this.itemScopedSlots,re=this.$scopedSlots&&this.$scopedSlots.item,de=V;de<=j;de++){var ce=le[de];if(ce){var he=typeof ee=="function"?ee(ce):ce[ee];typeof he=="string"||typeof he=="number"?x.push(M(F,{props:{index:de,tag:U,event:z.ITEM,horizontal:Z,uniqueKey:he,source:ce,extraProps:ae,component:se,slotComponent:re,scopedSlots:K},style:Q,class:"".concat(X).concat(this.itemClassAdd?" "+this.itemClassAdd(de):"")})):console.warn("Cannot get the data-key '".concat(ee,"' from data-sources."))}else console.warn("Cannot get the index '".concat(de,"' from data-sources."))}return x}},render:function(M){var x=this.$slots,Y=x.header,V=x.footer,j=this.range,le=j.padFront,ee=j.padBehind,X=this.isHorizontal,U=this.pageMode,Q=this.rootTag,Z=this.wrapTag,ae=this.wrapClass,se=this.wrapStyle,K=this.headerTag,re=this.headerClass,de=this.headerStyle,ce=this.footerTag,he=this.footerClass,Ae=this.footerStyle,Le=this.disabled,Ge={padding:X?"0px ".concat(ee,"px 0px ").concat(le,"px"):"".concat(le,"px 0px ").concat(ee,"px")},qe=se?Object.assign({},se,Ge):Ge;return M(Q,{ref:"root",style:Le?{overflow:"hidden"}:null,on:{"&scroll":!U&&this.onScroll}},[Y?M(G,{class:re,style:de,props:{tag:K,event:z.SLOT,uniqueKey:k.HEADER}},Y):null,M(Z,{class:ae,attrs:{role:"group"},style:qe},this.getRenderSlots(M)),V?M(G,{class:he,style:Ae,props:{tag:ce,event:z.SLOT,uniqueKey:k.FOOTER}},V):null,M("div",{ref:"shepherd",style:{width:X?"0px":"100%",height:X?"100%":"0px"}})])}});return L})})(Ic);var yJ=Ic.exports;function CJ(){return new Promise(e=>{const t=new $u({render(i){return i(Hu.exports.Modal,{class:"chat-emoji-one-modal",props:{fullscreen:!0,footerHide:!0},on:{"on-visible-change":l=>{l||setTimeout(u=>{document.body.removeChild(this.$el)},500)}}},[i(Ac,{attrs:{onlyEmoji:!0},on:{"on-select":l=>{this.$children[0].visible=!1,l.type==="emoji"&&e(l.text)}}})])}}),n=t.$mount();document.body.appendChild(n.$el);const r=t.$children[0];r.visible=!0,r.$el.lastChild.addEventListener("click",({target:i})=>{i.classList.contains("ivu-modal-body")&&(r.visible=!1)})})}var RJ=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.isReady?n("div",{staticClass:"dialog-wrapper",class:e.wrapperClass,on:{drop:function(r){return r.preventDefault(),e.chatPasteDrag(r,"drag")},dragover:function(r){return r.preventDefault(),e.chatDragOver(!0,r)},dragleave:function(r){return r.preventDefault(),e.chatDragOver(!1,r)},touchstart:e.onTouchStart,touchmove:e.onTouchMove}},[n("div",{staticClass:"dialog-nav",style:e.navStyle},[e._t("head",function(){return[n("div",{staticClass:"nav-wrapper",class:{completed:e.$A.dialogCompleted(e.dialogData)}},[n("div",{staticClass:"dialog-back",on:{click:e.onBack}},[n("i",{staticClass:"taskfont"},[e._v("\uE676")]),e.msgUnreadOnly?n("div",{staticClass:"back-num"},[e._v(e._s(e.msgUnreadOnly))]):e._e()]),n("div",{staticClass:"dialog-block"},[n("div",{staticClass:"dialog-avatar",on:{click:e.onViewAvatar}},[e.dialogData.type=="group"?[e.dialogData.avatar?n("EAvatar",{staticClass:"img-avatar",attrs:{src:e.dialogData.avatar,size:42}}):e.dialogData.group_type=="department"?n("i",{staticClass:"taskfont icon-avatar department"},[e._v("\uE75C")]):e.dialogData.group_type=="project"?n("i",{staticClass:"taskfont icon-avatar project"},[e._v("\uE6F9")]):e.dialogData.group_type=="task"?n("i",{staticClass:"taskfont icon-avatar task"},[e._v("\uE6F4")]):n("Icon",{staticClass:"icon-avatar",attrs:{type:"ios-people"}})]:e.dialogData.dialog_user?n("div",{staticClass:"user-avatar"},[n("UserAvatar",{attrs:{online:e.dialogData.online_state,userid:e.dialogData.dialog_user.userid,size:42},on:{"update:online":function(r){return e.$set(e.dialogData,"online_state",r)}}},[e.dialogData.type==="user"&&e.dialogData.online_state!==!0?n("p",{attrs:{slot:"end"},slot:"end"},[e._v(" "+e._s(e.$L(e.dialogData.online_state))+" ")]):e._e()])],1):n("Icon",{staticClass:"icon-avatar",attrs:{type:"md-person"}})],2),n("div",{staticClass:"dialog-title"},[n("div",{staticClass:"main-title"},[e._l(e.$A.dialogTags(e.dialogData),function(r){return r.color!="success"?[n("Tag",{attrs:{color:r.color,fade:!1}},[e._v(e._s(e.$L(r.text)))])]:e._e()}),n("h2",[e._v(e._s(e.dialogData.name))]),e.peopleNum>0?n("em",{on:{click:function(r){return e.onDialogMenu("groupInfo")}}},[e._v("("+e._s(e.peopleNum)+")")]):e._e(),e.dialogData.bot?n("Tag",{staticClass:"after",attrs:{fade:!1}},[e._v(e._s(e.$L("\u673A\u5668\u4EBA")))]):e._e(),e.dialogData.group_type=="all"?n("Tag",{staticClass:"after pointer",attrs:{fade:!1},on:{"on-click":function(r){return e.onDialogMenu("groupInfo")}}},[e._v(e._s(e.$L("\u5168\u5458")))]):e.dialogData.group_type=="department"?n("Tag",{staticClass:"after pointer",attrs:{fade:!1},on:{"on-click":function(r){return e.onDialogMenu("groupInfo")}}},[e._v(e._s(e.$L("\u90E8\u95E8")))]):e._e(),e.msgLoadIng>0?n("div",{staticClass:"load"},[n("Loading")],1):e._e()],2),n("ul",{staticClass:"title-desc"},[e.dialogData.type==="user"?n("li",{class:[e.dialogData.online_state===!0?"online":"offline"]},[e._v(" "+e._s(e.$L(e.dialogData.online_state===!0?"\u5728\u7EBF":e.dialogData.online_state))+" ")]):e._e()]),e.tagShow?n("ul",{staticClass:"title-tags scrollbar-hidden"},e._l(e.msgTags,function(r){var i;return n("li",{key:r.type,class:(i={},i[r.type||"msg"]=!0,i.active=e.msgType===r.type,i),on:{click:function(l){return e.onMsgType(r.type)}}},[n("i",{staticClass:"no-dark-content"}),n("span",[e._v(e._s(e.$L(r.label)))])])}),0):e._e()])]),n("EDropdown",{staticClass:"dialog-menu",attrs:{trigger:"click"},on:{command:e.onDialogMenu}},[n("i",{staticClass:"taskfont dialog-menu-icon"},[e._v("\uE6E9")]),n("EDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},[n("EDropdownItem",{attrs:{command:"searchMsg"}},[n("div",[e._v(e._s(e.$L("\u641C\u7D22\u6D88\u606F")))])]),e.dialogData.type==="user"?[e.dialogData.bot==e.userId?n("EDropdownItem",{attrs:{command:"modifyNormal"}},[n("div",[e._v(e._s(e.$L("\u4FEE\u6539\u8D44\u6599")))])]):e._e(),n("EDropdownItem",{attrs:{command:"openCreate"}},[n("div",[e._v(e._s(e.$L("\u521B\u5EFA\u7FA4\u7EC4")))])])]:[n("EDropdownItem",{attrs:{command:"groupInfo"}},[n("div",[e._v(e._s(e.$L("\u7FA4\u7EC4\u8BBE\u7F6E")))])]),e.dialogData.owner_id!=e.userId?[e.dialogData.group_type==="all"&&e.userIsAdmin?n("EDropdownItem",{attrs:{command:"modifyAdmin"}},[n("div",[e._v(e._s(e.$L("\u4FEE\u6539\u8D44\u6599")))])]):e._e(),n("EDropdownItem",{attrs:{command:"exit"}},[n("div",{staticStyle:{color:"#f00"}},[e._v(e._s(e.$L("\u9000\u51FA\u7FA4\u7EC4")))])])]:e.dialogData.group_type==="user"?[n("EDropdownItem",{attrs:{command:"modifyNormal"}},[n("div",[e._v(e._s(e.$L("\u4FEE\u6539\u8D44\u6599")))])]),n("EDropdownItem",{attrs:{command:"transfer"}},[n("div",[e._v(e._s(e.$L("\u8F6C\u8BA9\u7FA4\u4E3B")))])]),n("EDropdownItem",{attrs:{command:"disband"}},[n("div",{staticStyle:{color:"#f00"}},[e._v(e._s(e.$L("\u89E3\u6563\u7FA4\u7EC4")))])])]:e._e()]],2)],1),e.searchShow?n("div",{staticClass:"dialog-search"},[n("div",{staticClass:"search-location"},[n("i",{staticClass:"taskfont",on:{click:function(r){return e.onSearchSwitch("prev")}}},[e._v("\uE702")]),n("i",{staticClass:"taskfont",on:{click:function(r){return e.onSearchSwitch("next")}}},[e._v("\uE705")])]),n("div",{staticClass:"search-input"},[n("Input",{ref:"searchInput",attrs:{placeholder:e.$L("\u641C\u7D22\u6D88\u606F"),clearable:""},on:{"on-keyup":e.onSearchKeyup},model:{value:e.searchKey,callback:function(r){e.searchKey=r},expression:"searchKey"}},[n("div",{staticClass:"search-pre",attrs:{slot:"prefix"},slot:"prefix"},[e.searchLoad>0?n("Loading"):n("Icon",{attrs:{type:"ios-search"}})],1)]),e.searchLoad===0&&e.searchResult.length>0?n("div",{staticClass:"search-total",attrs:{slot:"append"},slot:"append"},[e._v(e._s(e.searchLocation)+"/"+e._s(e.searchResult.length))]):e._e()],1),n("div",{staticClass:"search-cancel",on:{click:function(r){return e.onSearchKeyup(null)}}},[e._v(e._s(e.$L("\u53D6\u6D88")))])]):e._e()],1)]})],2),e.positionMsg?n("div",{staticClass:"dialog-position",class:{down:e.tagShow}},[n("div",{staticClass:"position-label",on:{click:e.onPositionMark}},[e.positionLoad>0?n("Icon",{staticClass:"icon-loading",attrs:{type:"ios-loading"}}):n("i",{staticClass:"taskfont"},[e._v("\uE624")]),e._v(" "+e._s(e.positionMsg.label)+" ")],1)]):e._e(),n("VirtualList",{ref:"scroller",staticClass:"dialog-scroller scrollbar-overlay",class:e.scrollerClass,attrs:{"data-key":"id","data-sources":e.allMsgs,"data-component":e.msgItem,"item-class-add":e.itemClassAdd,"extra-props":{dialogData:e.dialogData,operateVisible:e.operateVisible,operateItem:e.operateItem,isMyDialog:e.isMyDialog,msgId:e.msgId},"estimate-size":e.dialogData.type=="group"?105:77,keeps:50,disabled:e.scrollDisabled},on:{scroll:e.onScroll,range:e.onRange,totop:e.onPrevPage,"on-mention":e.onMention,"on-longpress":e.onLongpress,"on-view-reply":e.onViewReply,"on-view-text":e.onViewText,"on-view-file":e.onViewFile,"on-down-file":e.onDownFile,"on-reply-list":e.onReplyList,"on-error":e.onError,"on-emoji":e.onEmoji,"on-show-emoji-user":e.onShowEmojiUser},scopedSlots:e._u([{key:"header",fn:function(){return[e.allMsgs.length===0&&e.loadIng||e.prevId>0?n("div",{staticClass:"dialog-item loading"},[e.scrollOffset<100?n("div",{staticClass:"dialog-wrapper-loading"}):e._e()]):e.allMsgs.length===0?n("div",{staticClass:"dialog-item nothing"},[e._v(e._s(e.$L("\u6682\u65E0\u6D88\u606F")))]):e._e()]},proxy:!0}],null,!1,3828201241)}),n("div",{ref:"footer",staticClass:"dialog-footer",class:e.footerClass,style:e.footerStyle,on:{click:e.onActive}},[n("div",{staticClass:"dialog-newmsg",on:{click:e.onToBottom}},[e._v(e._s(e.$L(`\u6709${e.msgNew}\u6761\u65B0\u6D88\u606F`)))]),n("div",{staticClass:"dialog-goto",on:{click:e.onToBottom}},[n("i",{staticClass:"taskfont"},[e._v("\uE72B")])]),n("DialogUpload",{ref:"chatUpload",staticClass:"chat-upload",attrs:{"dialog-id":e.dialogId},on:{"on-progress":function(r){return e.chatFile("progress",r)},"on-success":function(r){return e.chatFile("success",r)},"on-error":function(r){return e.chatFile("error",r)}}}),e.todoShow?n("div",{staticClass:"chat-bottom-menu"},[n("div",{staticClass:"bottom-menu-label"},[e._v(e._s(e.$L("\u5F85\u529E"))+":")]),n("ul",{staticClass:"scrollbar-hidden"},e._l(e.todoList,function(r){return n("li",{on:{click:function(i){return i.stopPropagation(),e.onViewTodo(r)}}},[n("div",{staticClass:"bottom-menu-desc no-dark-content"},[e._v(e._s(e.$A.getMsgSimpleDesc(r.msg_data)))])])}),0)]):e.quickShow?n("div",{staticClass:"chat-bottom-menu"},[n("ul",{staticClass:"scrollbar-hidden"},e._l(e.quickMsgs,function(r){return n("li",{on:{click:function(i){return i.stopPropagation(),e.sendQuick(r)}}},[n("div",{staticClass:"bottom-menu-desc no-dark-content",style:r.style||null},[e._v(e._s(r.label))])])}),0)]):e._e(),e.isMute?n("div",{staticClass:"chat-mute"},[e._v(" "+e._s(e.$L("\u7981\u8A00\u53D1\u8A00"))+" ")]):n("ChatInput",{ref:"input",attrs:{"dialog-id":e.dialogId,"emoji-bottom":e.windowPortrait,maxlength:2e5,placeholder:e.$L("\u8F93\u5165\u6D88\u606F...")},on:{"on-focus":e.onEventFocus,"on-blur":e.onEventBlur,"on-more":e.onEventMore,"on-file":e.sendFileMsg,"on-send":e.sendMsg,"on-record":e.sendRecord,"on-record-state":e.onRecordState,"on-emoji-visible-change":e.onEventEmojiVisibleChange,"on-height-change":e.onHeightChange},model:{value:e.msgText,callback:function(r){e.msgText=r},expression:"msgText"}})],1),n("div",{directives:[{name:"show",rawName:"v-show",value:e.operateVisible,expression:"operateVisible"}],staticClass:"operate-position",style:e.operateStyles},[n("Dropdown",{attrs:{trigger:"custom",placement:"top",visible:e.operateVisible,transferClassName:"dialog-wrapper-operate",transfer:""},on:{"on-clickoutside":function(r){e.operateVisible=!1}}},[n("div",{style:{userSelect:e.operateVisible?"none":"auto",height:e.operateStyles.height}}),n("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[n("DropdownItem",{attrs:{name:"action"}},[n("ul",{staticClass:"operate-action"},[e.msgId===0?n("li",{on:{click:function(r){return e.onOperate("reply")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE6EB")]),n("span",[e._v(e._s(e.$L("\u56DE\u590D")))])]):e._e(),e.operateItem.userid==e.userId&&e.operateItem.type==="text"?n("li",{on:{click:function(r){return e.onOperate("update")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE779")]),n("span",[e._v(e._s(e.$L("\u7F16\u8F91")))])]):e._e(),e._l(e.operateCopys,function(r){return n("li",{on:{click:function(i){return e.onOperate("copy",r)}}},[n("i",{staticClass:"taskfont",domProps:{innerHTML:e._s(r.icon)}}),n("span",[e._v(e._s(e.$L(r.label)))])])}),n("li",{on:{click:function(r){return e.onOperate("forward")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE638")]),n("span",[e._v(e._s(e.$L("\u8F6C\u53D1")))])]),e.operateItem.userid==e.userId?n("li",{on:{click:function(r){return e.onOperate("withdraw")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE637")]),n("span",[e._v(e._s(e.$L("\u64A4\u56DE")))])]):e._e(),e.operateItem.type==="file"?[n("li",{on:{click:function(r){return e.onOperate("view")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE77B")]),n("span",[e._v(e._s(e.$L("\u67E5\u770B")))])]),n("li",{on:{click:function(r){return e.onOperate("down")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE7A8")]),n("span",[e._v(e._s(e.$L("\u4E0B\u8F7D")))])])]:e._e(),n("li",{on:{click:function(r){return e.onOperate("tag")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE61E")]),n("span",[e._v(e._s(e.$L(e.operateItem.tag?"\u53D6\u6D88\u6807\u6CE8":"\u6807\u6CE8")))])]),e.operateItem.type==="text"?n("li",{on:{click:function(r){return e.onOperate("newTask")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE7B8")]),n("span",[e._v(e._s(e.$L("\u65B0\u4EFB\u52A1")))])]):e._e(),n("li",{on:{click:function(r){return e.onOperate("todo")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE7B7")]),n("span",[e._v(e._s(e.$L(e.operateItem.todo?"\u53D6\u6D88\u5F85\u529E":"\u8BBE\u5F85\u529E")))])]),e.msgType!==""?n("li",{on:{click:function(r){return e.onOperate("pos")}}},[n("i",{staticClass:"taskfont"},[e._v("\uEE15")]),n("span",[e._v(e._s(e.$L("\u5B8C\u6574\u5BF9\u8BDD")))])]):e._e()],2)]),n("DropdownItem",{staticClass:"dropdown-emoji",attrs:{name:"emoji"}},[n("ul",{staticClass:"operate-emoji scrollbar-hidden"},[e._l(e.operateEmojis,function(r,i){return n("li",{key:i,staticClass:"no-dark-content",domProps:{innerHTML:e._s(r)},on:{click:function(l){return e.onOperate("emoji",r)}}})}),n("li"),n("li",{staticClass:"more-emoji",on:{click:function(r){return e.onOperate("emoji","more")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE790")])])],2)])],1)],1)],1),e.dialogDrag?n("div",{staticClass:"drag-over",on:{click:function(r){e.dialogDrag=!1}}},[n("div",{staticClass:"drag-text"},[e._v(e._s(e.$L("\u62D6\u52A8\u5230\u8FD9\u91CC\u53D1\u9001")))])]):e._e(),n("Modal",{attrs:{title:e.$L(e.pasteTitle),"cancel-text":e.$L("\u53D6\u6D88"),"ok-text":e.$L("\u53D1\u9001"),"enter-ok":!0},on:{"on-ok":e.pasteSend},model:{value:e.pasteShow,callback:function(r){e.pasteShow=r},expression:"pasteShow"}},[n("ul",{staticClass:"dialog-wrapper-paste",class:e.pasteWrapperClass},e._l(e.pasteItem,function(r){return n("li",[r.type=="image"?n("img",{attrs:{src:r.result}}):n("div",[e._v(e._s(e.$L("\u6587\u4EF6"))+": "+e._s(r.name)+" ("+e._s(e.$A.bytesToSize(r.size))+")")])])}),0)]),n("Modal",{attrs:{title:e.$L("\u521B\u5EFA\u7FA4\u7EC4"),"mask-closable":!1},model:{value:e.createGroupShow,callback:function(r){e.createGroupShow=r},expression:"createGroupShow"}},[n("Form",{attrs:{model:e.createGroupData,"label-width":"auto"},nativeOn:{submit:function(r){r.preventDefault()}}},[n("FormItem",{attrs:{prop:"avatar",label:e.$L("\u7FA4\u5934\u50CF")}},[n("ImgUpload",{attrs:{num:1,width:512,height:512,whcut:1},model:{value:e.createGroupData.avatar,callback:function(r){e.$set(e.createGroupData,"avatar",r)},expression:"createGroupData.avatar"}})],1),n("FormItem",{attrs:{prop:"chat_name",label:e.$L("\u7FA4\u540D\u79F0")}},[n("Input",{attrs:{placeholder:e.$L("\u8F93\u5165\u7FA4\u540D\u79F0\uFF08\u9009\u586B\uFF09")},model:{value:e.createGroupData.chat_name,callback:function(r){e.$set(e.createGroupData,"chat_name",r)},expression:"createGroupData.chat_name"}})],1),n("FormItem",{attrs:{prop:"userids",label:e.$L("\u7FA4\u6210\u5458")}},[n("UserInput",{attrs:{uncancelable:e.createGroupData.uncancelable,"multiple-max":100,"show-bot":"",placeholder:e.$L("\u9009\u62E9\u9879\u76EE\u6210\u5458")},model:{value:e.createGroupData.userids,callback:function(r){e.$set(e.createGroupData,"userids",r)},expression:"createGroupData.userids"}})],1)],1),n("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[n("Button",{attrs:{type:"default"},on:{click:function(r){e.createGroupShow=!1}}},[e._v(e._s(e.$L("\u53D6\u6D88")))]),n("Button",{attrs:{type:"primary",loading:e.createGroupLoad>0},on:{click:e.onCreateGroup}},[e._v(e._s(e.$L("\u521B\u5EFA")))])],1)],1),n("Modal",{attrs:{title:e.$L("\u4FEE\u6539\u8D44\u6599"),"mask-closable":!1},model:{value:e.modifyShow,callback:function(r){e.modifyShow=r},expression:"modifyShow"}},[n("Form",{attrs:{model:e.modifyData,"label-width":"auto"},nativeOn:{submit:function(r){r.preventDefault()}}},[n("FormItem",{attrs:{prop:"avatar",label:e.$L("\u5934\u50CF")}},[n("ImgUpload",{attrs:{num:1,width:512,height:512,whcut:1},model:{value:e.modifyData.avatar,callback:function(r){e.$set(e.modifyData,"avatar",r)},expression:"modifyData.avatar"}})],1),typeof e.modifyData.name!="undefined"?n("FormItem",{attrs:{prop:"name",label:e.$L("\u540D\u79F0")}},[n("Input",{attrs:{maxlength:20},model:{value:e.modifyData.name,callback:function(r){e.$set(e.modifyData,"name",r)},expression:"modifyData.name"}})],1):e._e(),typeof e.modifyData.clear_day!="undefined"?n("FormItem",{attrs:{prop:"clear_day",label:e.$L("\u6D88\u606F\u4FDD\u7559")}},[n("Input",{attrs:{maxlength:3,type:"number"},model:{value:e.modifyData.clear_day,callback:function(r){e.$set(e.modifyData,"clear_day",r)},expression:"modifyData.clear_day"}},[n("div",{attrs:{slot:"append"},slot:"append"},[e._v(e._s(e.$L("\u5929")))])])],1):e._e(),typeof e.modifyData.webhook_url!="undefined"?n("FormItem",{attrs:{prop:"webhook_url",label:"Webhook"}},[n("Input",{attrs:{maxlength:255},model:{value:e.modifyData.webhook_url,callback:function(r){e.$set(e.modifyData,"webhook_url",r)},expression:"modifyData.webhook_url"}})],1):e._e()],1),n("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[n("Button",{attrs:{type:"default"},on:{click:function(r){e.modifyShow=!1}}},[e._v(e._s(e.$L("\u53D6\u6D88")))]),n("Button",{attrs:{type:"primary",loading:e.modifyLoad>0},on:{click:e.onModify}},[e._v(e._s(e.$L("\u4FDD\u5B58")))])],1)],1),n("Modal",{attrs:{title:e.$L("\u8F6C\u53D1"),"mask-closable":!1},model:{value:e.forwardShow,callback:function(r){e.forwardShow=r},expression:"forwardShow"}},[n("DialogSelect",{model:{value:e.forwardData,callback:function(r){e.forwardData=r},expression:"forwardData"}}),n("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[n("Button",{attrs:{type:"default"},on:{click:function(r){e.forwardShow=!1}}},[e._v(e._s(e.$L("\u53D6\u6D88")))]),n("Button",{attrs:{type:"primary",loading:e.forwardLoad},on:{click:function(r){return e.onForward("submit")}}},[e._v(e._s(e.$L("\u8F6C\u53D1")))])],1)],1),n("Modal",{attrs:{title:e.$L("\u8BBE\u7F6E\u5F85\u529E"),"mask-closable":!1},model:{value:e.todoSettingShow,callback:function(r){e.todoSettingShow=r},expression:"todoSettingShow"}},[n("Form",{ref:"todoSettingForm",attrs:{model:e.todoSettingData,"label-width":"auto"},nativeOn:{submit:function(r){r.preventDefault()}}},[n("FormItem",{attrs:{prop:"type",label:e.$L("\u5F53\u524D\u4F1A\u8BDD")}},[n("RadioGroup",{model:{value:e.todoSettingData.type,callback:function(r){e.$set(e.todoSettingData,"type",r)},expression:"todoSettingData.type"}},[n("Radio",{attrs:{label:"all"}},[e._v(e._s(e.$L("\u6240\u6709\u6210\u5458")))]),n("Radio",{attrs:{label:"user"}},[e._v(e._s(e.$L("\u6307\u5B9A\u6210\u5458")))]),e.todoSettingData.my_id?n("Radio",{attrs:{label:"my"}},[n("div",{staticClass:"dialog-wrapper-todo"},[n("div",[n("UserAvatar",{attrs:{userid:e.todoSettingData.my_id,"show-icon":!1,"show-name":!0}}),n("Tag",[e._v(e._s(e.$L("\u81EA\u5DF1")))])],1)])]):e._e(),e.todoSettingData.you_id?n("Radio",{attrs:{label:"you"}},[n("div",{staticClass:"dialog-wrapper-todo"},[n("div",[n("UserAvatar",{attrs:{userid:e.todoSettingData.you_id,"show-icon":!1,"show-name":!0}})],1)])]):e._e()],1)],1),e.todoSettingData.type==="user"?n("FormItem",{attrs:{prop:"userids"}},[n("UserInput",{attrs:{"dialog-id":e.dialogId,placeholder:e.$L("\u9009\u62E9\u6307\u5B9A\u6210\u5458")},model:{value:e.todoSettingData.userids,callback:function(r){e.$set(e.todoSettingData,"userids",r)},expression:"todoSettingData.userids"}})],1):e._e()],1),n("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[n("Button",{attrs:{type:"default"},on:{click:function(r){e.todoSettingShow=!1}}},[e._v(e._s(e.$L("\u53D6\u6D88")))]),n("Button",{attrs:{type:"primary",loading:e.todoSettingLoad>0},on:{click:function(r){return e.onTodo("submit")}}},[e._v(e._s(e.$L("\u786E\u5B9A")))])],1)],1),n("DrawerOverlay",{attrs:{placement:"right",size:400},model:{value:e.groupInfoShow,callback:function(r){e.groupInfoShow=r},expression:"groupInfoShow"}},[e.groupInfoShow?n("DialogGroupInfo",{attrs:{dialogId:e.dialogId},on:{"on-close":function(r){e.groupInfoShow=!1}}}):e._e()],1),n("Modal",{attrs:{title:e.$L("\u8F6C\u8BA9\u7FA4\u4E3B\u8EAB\u4EFD"),"mask-closable":!1},model:{value:e.groupTransferShow,callback:function(r){e.groupTransferShow=r},expression:"groupTransferShow"}},[n("Form",{attrs:{model:e.groupTransferData,"label-width":"auto"},nativeOn:{submit:function(r){r.preventDefault()}}},[n("FormItem",{attrs:{prop:"userid",label:e.$L("\u65B0\u7684\u7FA4\u4E3B")}},[n("UserInput",{attrs:{disabledChoice:e.groupTransferData.disabledChoice,"multiple-max":1,"max-hidden-select":"",placeholder:e.$L("\u9009\u62E9\u65B0\u7684\u7FA4\u4E3B")},model:{value:e.groupTransferData.userid,callback:function(r){e.$set(e.groupTransferData,"userid",r)},expression:"groupTransferData.userid"}})],1)],1),n("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[n("Button",{attrs:{type:"default"},on:{click:function(r){e.groupTransferShow=!1}}},[e._v(e._s(e.$L("\u53D6\u6D88")))]),n("Button",{attrs:{type:"primary",loading:e.groupTransferLoad>0},on:{click:function(r){return e.onDialogMenu("transferConfirm")}}},[e._v(e._s(e.$L("\u786E\u5B9A\u8F6C\u8BA9")))])],1)],1),n("DrawerOverlay",{attrs:{placement:"right","class-name":"dialog-wrapper-drawer-list",size:500},model:{value:e.replyListShow,callback:function(r){e.replyListShow=r},expression:"replyListShow"}},[e.replyListShow?n("DialogWrapper",{staticClass:"drawer-list",attrs:{dialogId:e.dialogId,msgId:e.replyListId}},[n("div",{staticClass:"drawer-title",attrs:{slot:"head"},slot:"head"},[e._v(e._s(e.$L("\u56DE\u590D\u6D88\u606F")))])]):e._e()],1),n("DrawerOverlay",{attrs:{placement:"right",size:400},model:{value:e.respondShow,callback:function(r){e.respondShow=r},expression:"respondShow"}},[e.respondShow?n("DialogRespond",{attrs:{"respond-data":e.respondData},on:{"on-close":function(r){e.respondShow=!1}}}):e._e()],1),n("DrawerOverlay",{attrs:{placement:"right","class-name":"dialog-wrapper-drawer-list",size:500},model:{value:e.todoViewShow,callback:function(r){e.todoViewShow=r},expression:"todoViewShow"}},[n("div",{staticClass:"dialog-wrapper drawer-list"},[n("div",{staticClass:"dialog-nav"},[n("div",{staticClass:"drawer-title"},[e._v(e._s(e.$L("\u5F85\u529E\u6D88\u606F")))])]),n("div",{staticClass:"dialog-scroller scrollbar-overlay"},[e.todoViewMsg?n("DialogItem",{attrs:{source:e.todoViewMsg,simpleView:""},on:{"on-view-text":e.onViewText,"on-view-file":e.onViewFile,"on-down-file":e.onDownFile,"on-emoji":e.onEmoji}}):e._e(),n("Button",{staticClass:"original-button",attrs:{icon:"md-exit",type:"text",loading:e.todoViewPosLoad},on:{click:e.onPosTodo}},[e._v(e._s(e.$L("\u56DE\u5230\u539F\u6587")))])],1),n("div",{staticClass:"todo-button"},[n("Button",{attrs:{type:"primary",size:"large",icon:"md-checkbox-outline",loading:e.todoViewLoad,long:""},on:{click:e.onDoneTodo}},[e._v(e._s(e.$L("\u5B8C\u6210")))])],1)])])],1):e._e()},NJ=[];const OJ={name:"DialogWrapper",components:{ImgUpload:Ku,DialogSelect:Vu,DialogRespond:KZ,DialogItem:ml,VirtualList:yJ,ChatInput:TJ,DialogGroupInfo:YZ,DrawerOverlay:Wu,UserInput:Nl,DialogUpload:PZ},props:{dialogId:{type:Number,default:0},msgId:{type:Number,default:0},autoFocus:{type:Boolean,default:!1},beforeBack:Function},data(){return{msgItem:ml,msgText:"",msgNew:0,msgType:"",loadIng:0,allMsgs:[],tempMsgs:[],tempId:$A.randNum(1e9,9999999999),msgLoadIng:0,msgActiveIndex:-1,pasteShow:!1,pasteFile:[],pasteItem:[],searchShow:!1,searchKey:"",searchLoad:0,searchLocation:1,searchResult:[],createGroupShow:!1,createGroupData:{},createGroupLoad:0,modifyShow:!1,modifyData:{},modifyLoad: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:{},recordState:"",wrapperStart:{},scrollOffset:0,scrollTail:0,preventMoreLoad:!1,preventToBottom:!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:{...Vn(["userIsAdmin","taskId","dialogSearchMsgId","dialogMsgs","dialogTodos","dialogMsgTransfer","cacheDialogs","wsOpenNum","touchBackInProgress","dialogIns","cacheUserBasic","fileLinks","cacheEmojis","keyboardType","keyboardHeight","safeAreaBottom"]),...Rl(["isLoad"]),isReady(){return this.dialogId>0&&this.dialogData.id>0},dialogData(){return this.cacheDialogs.find(({id:e})=>e==this.dialogId)||{}},dialogList(){return this.cacheDialogs.filter(e=>!(e.name===void 0||e.dialog_delete===1)).sort((e,t)=>e.top_at||t.top_at?$A.Date(t.top_at)-$A.Date(e.top_at):e.todo_num>0||t.todo_num>0?t.todo_num-e.todo_num:$A.Date(t.last_at)-$A.Date(e.last_at))},dialogMsgList(){return this.isReady?this.dialogMsgs.filter(e=>e.dialog_id==this.dialogId):[]},tempMsgList(){return this.isReady?this.tempMsgs.filter(e=>e.dialog_id==this.dialogId):[]},allMsgList(){const e=[];if(e.push(...this.dialogMsgList.filter(t=>this.msgFilter(t))),this.msgId>0){const t=this.dialogMsgs.find(n=>n.id==this.msgId);t&&e.unshift(t)}if(this.tempMsgList.length>0){const t=e.map(({id:r})=>r),n=this.tempMsgList.filter(r=>!t.includes(r.id)&&this.msgFilter(r));n.length>0&&e.push(...n)}return e.sort((t,n)=>t.id-n.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:e}=this;let t=e.find(({type:r})=>r=="image"),n=e.find(({type:r})=>r!="image");return t&&n?"\u53D1\u9001\u6587\u4EF6/\u56FE\u7247":t?"\u53D1\u9001\u56FE\u7247":"\u53D1\u9001\u6587\u4EF6"},msgTags(){const e=[{type:"",label:"\u6D88\u606F"}];return this.dialogData.has_tag&&e.push({type:"tag",label:"\u6807\u6CE8"}),this.dialogData.has_image&&e.push({type:"image",label:"\u56FE\u7247"}),this.dialogData.has_file&&e.push({type:"file",label:"\u6587\u4EF6"}),this.dialogData.has_link&&e.push({type:"link",label:"\u94FE\u63A5"}),this.dialogData.group_type==="project"&&e.push({type:"project",label:"\u6253\u5F00\u9879\u76EE"}),this.dialogData.group_type==="task"&&e.push({type:"task",label:"\u6253\u5F00\u4EFB\u52A1"}),e},quickMsgs(){return this.dialogData.quick_msgs||[]},quickShow(){return this.quickMsgs.length>0&&this.windowScrollY===0&&this.quoteId===0},todoList(){return this.dialogData.todo_num?this.dialogTodos.filter(e=>!e.done_at&&e.dialog_id==this.dialogId).sort((e,t)=>t.id-e.id):[]},todoShow(){return this.todoList.length>0&&this.windowScrollY===0&&this.quoteId===0},wrapperClass(){return["ready","ing"].includes(this.recordState)?["record-ready"]:null},tagShow(){return this.msgTags.length>1&&this.windowScrollY===0&&!this.searchShow},scrollerClass(){return!this.$slots.head&&this.tagShow?"default-header":null},pasteWrapperClass(){return this.pasteItem.find(({type:e})=>e!=="image")?["multiple"]:[]},footerClass(){return this.msgNew>0&&this.allMsgs.length>0?"newmsg":this.scrollTail>500?"goto":null},footerStyle(){const{keyboardType:e,keyboardHeight:t,safeAreaBottom:n,windowScrollY:r}=this,i={};return r===0&&e==="show"&&t>0&&t<120&&(i.paddingBottom=t+n+"px"),i},msgUnreadOnly(){let e=0;return this.cacheDialogs.some(t=>{e+=$A.getDialogNum(t)}),e<=0?"":(e>999&&(e="999+"),String(e))},isMyDialog(){const{dialogData:e,userId:t}=this;return e.dialog_user&&e.dialog_user.userid==t},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},quoteId(){return this.msgId>0?this.msgId:this.dialogData.extra_quote_id||0},quoteUpdate(){return this.dialogData.extra_quote_type==="update"},quoteData(){return this.quoteId?this.allMsgs.find(({id:e})=>e===this.quoteId):null},todoViewMsg(){if(this.todoViewMid){const e=this.allMsgs.find(t=>t.id==this.todoViewMid);if(e)return e;if(this.todoViewData.id===this.todoViewMid)return this.todoViewData}return null},positionMsg(){const{unread:e,position_msgs:t}=this.dialogData;if(!t||t.length===0||e===0||this.allMsgs.length===0)return null;const n=t.sort((r,i)=>i.msg_id-r.msg_id)[0];return this.allMsgs.findIndex(({id:r})=>r==n.msg_id)===-1?n.label==="{UNREAD}"?Object.assign(n,{label:this.$L(`\u672A\u8BFB\u6D88\u606F${e}\u6761`)}):n:null},operateEmojis(){const e=this.cacheEmojis.slice(0,3);return Object.values(["\u{1F44C}","\u{1F44D}","\u{1F602}","\u{1F389}","\u2764\uFE0F","\u{1F973}\uFE0F","\u{1F970}","\u{1F625}","\u{1F62D}"]).some(t=>{e.includes(t)||e.push(t)}),e}},watch:{dialogId:{handler(e,t){e&&(this.msgNew=0,this.msgType="",this.searchShow=!1,this.allMsgList.length>0&&(this.allMsgs=this.allMsgList,requestAnimationFrame(this.onToBottom)),this.getMsgs({dialog_id:e,msg_id:this.msgId,msg_type:this.msgType}).then(n=>{this.openId=e,setTimeout(this.onSearchMsgId,100)}).catch(n=>{}),this.$store.dispatch("saveInDialog",{uid:this._uid,dialog_id:e}),this.autoFocus&&this.inputFocus()),this.$store.dispatch("closeDialog",t)},immediate:!0},loadMsg:{handler(e){e?this.loadIng++:setTimeout(t=>{this.loadIng--},300)},immediate:!0},msgType(){this.getMsgs({dialog_id:this.dialogId,msg_id:this.msgId,msg_type:this.msgType,clear_before:!0}).catch(e=>{})},searchKey(e){!e||(this.searchLoad++,setTimeout(t=>{this.searchKey===e&&(this.searchLoad++,this.searchResult=[],this.searchLocation=0,this.$store.dispatch("call",{url:"dialog/msg/search",data:{dialog_id:this.dialogId,key:e}}).then(({data:n})=>{this.searchKey===e&&(this.searchResult=n.data,this.searchLocation=this.searchResult.length)}).finally(n=>{this.searchLoad--})),this.searchLoad--},600))},searchLocation(e){if(e===0)return;const t=this.searchResult[e-1];t&&this.onPositionId(t)},dialogSearchMsgId(){this.onSearchMsgId()},dialogMsgTransfer:{handler({time:e,msgFile:t,msgRecord:n,msgText:r,dialogId:i}){e>$A.Time()&&i==this.dialogId&&(this.$store.state.dialogMsgTransfer.time=0,this.$nextTick(()=>{$A.isArray(t)&&t.length>0?this.sendFileMsg(t):$A.isJson(n)&&n.duration>0?this.sendRecord(n):r&&this.sendMsg(r)}))},immediate:!0},wsOpenNum(e){e<=1||this.getMsgs({dialog_id:this.dialogId,msg_id:this.msgId,msg_type:this.msgType}).catch(t=>{})},allMsgList(e,t){const{tail:n}=this.scrollInfo();if(this.allMsgs=e,!this.windowActive||n>10&&t.length>0){const r=t[t.length-1]?t[t.length-1].id:0,i=e.filter(l=>l.id&&l.id>r);this.msgNew+=i.length}else this.preventToBottom||this.$nextTick(this.onToBottom)},windowScrollY(e){if($A.isIos()){const{tail:t}=this.scrollInfo();this.navStyle={marginTop:e+"px"},t<=10&&requestAnimationFrame(this.onToBottom),this.$refs.input.isFocus&&$A.scrollToView(this.$refs.footer)}},windowActive(e){if(e&&this.autoFocus){const t=$A.last(this.dialogIns);t&&t.uid===this._uid&&this.inputFocus()}},dialogDrag(e){e&&(this.operateVisible=!1)},msgActiveIndex(e){e>-1&&setTimeout(t=>this.msgActiveIndex=-1,800)}},methods:{sendMsg(e,t){let n,r="text",i="no",l=!1;if(typeof e=="string"&&e?n=e:(n=this.msgText,l=!0),t==="md"?(n=this.$refs.input.getText(),r="md"):t==="silence"&&(i="yes"),n==""){this.inputFocus();return}if(r==="text"&&(n=n.replace(/<\/span> <\/p>$/,"

")),this.quoteUpdate){r==="text"&&(n=n.replace(new RegExp(`src=(["'])${$A.apiUrl("../")}`,"g"),"src=$1{{RemoteURL}}"));const u=this.quoteId;this.$store.dispatch("setLoad",{key:`msg-${u}`,delay:600}),this.cancelQuote(),this.onActive(),this.$store.dispatch("call",{url:"dialog/msg/sendtext",data:{dialog_id:this.dialogId,update_id:u,text:n,text_type:r,silence:i},method:"post",complete:c=>this.$store.dispatch("cancelLoad",`msg-${u}`)}).then(({data:c})=>{this.sendSuccess(c),this.onPositionId(u)}).catch(({msg:c})=>{$A.modalError(c)})}else{const u=$A.stringLength(n.replace(/]*?>/g,""))>5e3,c={id:this.getTempId(),dialog_id:this.dialogData.id,reply_id:this.quoteId,reply_data:this.quoteData,type:u?"loading":"text",userid:this.userId,msg:{text:u?"":n,type:r}};this.tempMsgs.push(c),this.msgType="",this.cancelQuote(),this.onActive(),this.$nextTick(this.onToBottom),this.$store.dispatch("call",{url:"dialog/msg/sendtext",data:{dialog_id:c.dialog_id,reply_id:c.reply_id,text:n,text_type:r,silence:i},method:"post"}).then(({data:d})=>{this.tempMsgs=this.tempMsgs.filter(({id:f})=>f!=c.id),this.sendSuccess(d)}).catch(d=>{this.$set(c,"error",!0),this.$set(c,"errorData",{type:"text",content:d.msg,msg:n})})}l&&requestAnimationFrame(u=>this.msgText="")},sendRecord(e){const t={id:this.getTempId(),dialog_id:this.dialogData.id,reply_id:this.quoteId,reply_data:this.quoteData,type:"loading",userid:this.userId,msg:e};this.tempMsgs.push(t),this.msgType="",this.cancelQuote(),this.onActive(),this.$nextTick(this.onToBottom),this.$store.dispatch("call",{url:"dialog/msg/sendrecord",data:Object.assign(e,{dialog_id:this.dialogId,reply_id:this.quoteId}),method:"post"}).then(({data:n})=>{this.tempMsgs=this.tempMsgs.filter(({id:r})=>r!=t.id),this.sendSuccess(n)}).catch(n=>{this.$set(t,"error",!0),this.$set(t,"errorData",{type:"record",content:n.msg,msg:e})})},sendFileMsg(e){const t=$A.isArray(e)?e:[e];t.length>0&&(this.pasteFile=[],this.pasteItem=[],t.some(n=>{const r={type:$A.getMiddle(n.type,null,"/"),name:n.name,size:n.size,result:null};if(r.type==="image"){const i=new FileReader;i.readAsDataURL(n),i.onload=({target:l})=>{r.result=l.result,this.pasteFile.push(n),this.pasteItem.push(r),this.pasteShow=!0}}else this.pasteFile.push(n),this.pasteItem.push(r),this.pasteShow=!0}))},sendQuick(e){this.sendMsg(`

${e.label}

`)},getTempId(){return this.tempId++},getMsgs(e){return new Promise((t,n)=>{setTimeout(r=>this.msgLoadIng++,2e3),this.$store.dispatch("getDialogMsgs",e).then(t).catch(n).finally(r=>{this.msgLoadIng--})})},msgFilter(e){if(this.msgType){if(this.msgType==="tag"){if(!e.tag)return!1}else if(this.msgType==="link"){if(!e.link)return!1}else if(this.msgType!==e.mtype)return!1}return!(this.msgId&&e.reply_id!=this.msgId)},onSearchMsgId(){this.dialogSearchMsgId>0&&this.openId===this.dialogId&&(this.onPositionId(this.dialogSearchMsgId),this.$store.state.dialogSearchMsgId=0)},onPositionId(e,t=0,n=0){return new Promise((r,i)=>{if(e===0){$A.modalError("\u67E5\u770B\u5931\u8D25\uFF1A\u53C2\u6570\u9519\u8BEF"),i();return}if(this.loadMsg||this.msgType!==""){if(this.msgType="",n===0)this.$store.dispatch("showSpinner",600);else if(n>20){this.$store.dispatch("hiddenSpinner"),$A.modalError("\u67E5\u770B\u5931\u8D25\uFF1A\u8BF7\u6C42\u8D85\u65F6"),i();return}n++,setTimeout(c=>{this.onPositionId(e,t,n).then(r).catch(i)},Math.min(800,200*n));return}n>0&&this.$store.dispatch("hiddenSpinner");const l=this.allMsgs.findIndex(c=>c.id===e),u=this.prevId>0?0:-1;l>u?setTimeout(c=>{this.onToIndex(l),r()},200):(t>0&&this.$store.dispatch("setLoad",{key:`msg-${t}`,delay:600}),this.preventToBottom=!0,this.getMsgs({dialog_id:this.dialogId,msg_id:this.msgId,msg_type:this.msgType,position_id:e,spinner:2e3}).finally(c=>{const d=this.allMsgs.findIndex(f=>f.id===e);d>-1&&(this.onToIndex(d),r()),t>0&&this.$store.dispatch("cancelLoad",`msg-${t}`),this.preventToBottom=!1}))})},onViewTodo(e){if(this.operateVisible)return;this.todoViewId=e.id,this.todoViewMid=e.msg_id,this.todoViewShow=!0,this.allMsgs.findIndex(n=>n.id===this.todoViewMid)===-1&&this.$store.dispatch("call",{url:"dialog/msg/one",data:{msg_id:this.todoViewMid}}).then(({data:n})=>{this.todoViewData=n})},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(e=>{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:e})=>{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}),e.add&&this.sendSuccess(e.add),this.todoList.length===0&&this.$store.dispatch("getDialogTodo",this.dialogId),this.onCloseTodo()}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.todoViewLoad=!1}))},itemClassAdd(e){return e===this.msgActiveIndex?"common-shake":""},inputFocus(){this.$nextTick(e=>{this.$refs.input&&this.$refs.input.focus()})},onRecordState(e){this.recordState=e},chatPasteDrag(e,t){this.dialogDrag=!1;const n=t==="drag"?e.dataTransfer.files:e.clipboardData.files,r=Array.prototype.slice.call(n);r.length>0&&(e.preventDefault(),this.sendFileMsg(r))},chatDragOver(e,t){let n=this.__dialogDrag=$A.randomString(8);if(!e)setTimeout(()=>{n===this.__dialogDrag&&(this.dialogDrag=e)},150);else{if(t.dataTransfer.effectAllowed==="move"||Array.prototype.slice.call(t.dataTransfer.files).length===0)return;this.dialogDrag=!0}},onTouchStart(e){this.wrapperStart=Object.assign(this.scrollInfo(),{clientY:e.touches[0].clientY,exclud:!this.$refs.scroller.$el.contains(e.target)})},onTouchMove(e){if(this.windowPortrait&&this.windowScrollY>0){if(this.wrapperStart.exclud){e.preventDefault();return}this.wrapperStart.clientY>e.touches[0].clientY?this.wrapperStart.tail===0&&e.preventDefault():this.wrapperStart.offset===0&&e.preventDefault()}},pasteSend(){this.pasteFile.some(e=>{this.$refs.chatUpload.upload(e)})},chatFile(e,t){switch(e){case"progress":const n={id:t.tempId,dialog_id:this.dialogData.id,reply_id:this.quoteId,type:"loading",userid:this.userId,msg:{}};this.tempMsgs.push(n),this.msgType="",this.cancelQuote(),this.onActive(),this.$nextTick(this.onToBottom);break;case"error":this.tempMsgs=this.tempMsgs.filter(({id:r})=>r!=t.tempId);break;case"success":this.tempMsgs=this.tempMsgs.filter(({id:r})=>r!=t.tempId),this.sendSuccess(t.data);break}},sendSuccess(e){if($A.isArray(e)){e.some(this.sendSuccess);return}this.$store.dispatch("saveDialogMsg",e),this.quoteUpdate||(this.$store.dispatch("increaseTaskMsgNum",e),this.$store.dispatch("increaseMsgReplyNum",e),this.$store.dispatch("updateDialogLastMsg",e)),this.cancelQuote(),this.onActive()},setQuote(e,t){var n;(n=this.$refs.input)==null||n.setQuote(e,t)},cancelQuote(){var e;(e=this.$refs.input)==null||e.cancelQuote()},onEventFocus(){this.$emit("on-focus")},onEventBlur(){this.$emit("on-blur")},onEventMore(e){switch(e){case"image":case"file":this.$refs.chatUpload.handleClick();break;case"call":this.onCallTel();break;case"anon":this.onAnon();break}},onCallTel(){this.$store.dispatch("call",{url:"dialog/tel",data:{dialog_id:this.dialogId},spinner:600}).then(({data:e})=>{e.tel&&$A.eeuiAppSendMessage({action:"callTel",tel:e.tel}),e.add&&(this.$store.dispatch("saveDialogMsg",e.add),this.$store.dispatch("updateDialogLastMsg",e.add),this.onActive())}).catch(({msg:e})=>{$A.modalError(e)})},onAnon(){if(this.dialogData.type!=="user"||this.dialogData.bot){$A.modalWarning("\u533F\u540D\u6D88\u606F\u4EC5\u5141\u8BB8\u53D1\u9001\u7ED9\u4E2A\u4EBA");return}$A.modalInput({title:"\u53D1\u9001\u533F\u540D\u6D88\u606F",placeholder:"\u533F\u540D\u6D88\u606F\u5C06\u901A\u8FC7\u533F\u540D\u6D88\u606F\uFF08\u673A\u5668\u4EBA\uFF09\u53D1\u9001\u7ED9\u5BF9\u65B9\uFF0C\u4E0D\u4F1A\u8BB0\u5F55\u4F60\u7684\u4EFB\u4F55\u8EAB\u4EFD\u4FE1\u606F",inputProps:{type:"textarea",rows:3,autosize:{minRows:3,maxRows:6},maxlength:2e3},okText:"\u533F\u540D\u53D1\u9001",onOk:e=>e?new Promise((t,n)=>{this.$store.dispatch("call",{url:"dialog/msg/sendanon",data:{userid:this.dialogData.dialog_user.userid,text:e},method:"post"}).then(({msg:r})=>{t(r)}).catch(({msg:r})=>{n(r)})}):"\u8BF7\u8F93\u5165\u6D88\u606F\u5185\u5BB9"})},onEventEmojiVisibleChange(e){e&&this.windowPortrait&&this.onToBottom()},onHeightChange({newVal:e,oldVal:t}){const n=e-t;if(n!==0){const{offset:r,tail:i}=this.scrollInfo();i>0&&this.onToOffset(r+n)}},onActive(){this.$emit("on-active")},onToBottom(){this.msgNew=0;const e=this.$refs.scroller;e&&(e.scrollToBottom(),requestAnimationFrame(t=>e.scrollToBottom()))},onToIndex(e){const t=this.$refs.scroller;t&&(t.stopToBottom(),t.scrollToIndex(e,-100),requestAnimationFrame(n=>t.scrollToIndex(e,-100))),requestAnimationFrame(n=>this.msgActiveIndex=e)},onToOffset(e){const t=this.$refs.scroller;t&&(t.stopToBottom(),t.scrollToOffset(e),setTimeout(n=>t.scrollToOffset(e),10))},scrollInfo(){const e=this.$refs.scroller;return e?e.scrollInfo():{offset:0,scale:0,tail:0}},openProject(){!this.dialogData.group_info||(this.windowPortrait&&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:e=>this.scrollDisabled=!0,save_after:e=>this.scrollDisabled=!1}).then(({data:e})=>{const t=e.list.map(n=>n.id);this.$nextTick(()=>{const n=this.$refs.scroller,r=t.reduce((l,u)=>({size:(typeof l=="object"?l.size:n.getSize(l))+n.getSize(u)}));let i=n.getOffset()+r.size;this.prevId===0&&(i-=36),this.onToOffset(i),setTimeout(l=>n.virtual.handleFront(),10)})}).catch(()=>{})},onDialogMenu(e){var t;switch(e){case"searchMsg":this.searchShow=!0,this.$nextTick(r=>{this.$refs.searchInput.focus()});break;case"openCreate":const n=[this.userId];this.dialogData.dialog_user&&this.userId!=this.dialogData.dialog_user.userid&&n.push(this.dialogData.dialog_user.userid),this.createGroupData={userids:n,uncancelable:[this.userId]},this.createGroupShow=!0;break;case"modifyNormal":this.modifyData={dialog_id:this.dialogData.id,avatar:this.dialogData.avatar,name:this.dialogData.name},this.dialogData.type==="user"&&(this.modifyData=Object.assign(this.modifyData,{userid:this.dialogData.dialog_user.userid,avatar:(t=this.cacheUserBasic.find(r=>r.userid===this.dialogData.dialog_user.userid))==null?void 0:t.userimg,clear_day:0,webhook_url:""}),this.modifyLoad++,this.$store.dispatch("call",{url:"users/bot/info",data:{id:this.dialogData.dialog_user.userid}}).then(({data:r})=>{this.modifyData.clear_day=r.clear_day,this.modifyData.webhook_url=r.webhook_url}).finally(()=>{this.modifyLoad--})),this.modifyShow=!0;break;case"modifyAdmin":this.modifyData={dialog_id:this.dialogData.id,avatar:this.dialogData.avatar,admin:1},this.modifyShow=!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:e,msg:t})=>{$A.messageSuccess(t),this.$store.dispatch("saveDialog",e)}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{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((e,t)=>{this.$store.dispatch("call",{url:"dialog/group/disband",data:{dialog_id:this.dialogId}}).then(({msg:n})=>{e(n),this.$store.dispatch("forgetDialog",this.dialogId),this.goForward({name:"manage-messenger"})}).catch(({msg:n})=>{t(n)})})})},onExitGroup(){$A.modalConfirm({content:"\u4F60\u786E\u5B9A\u8981\u9000\u51FA\u7FA4\u7EC4\u5417\uFF1F",loading:!0,onOk:()=>new Promise((e,t)=>{this.$store.dispatch("call",{url:"dialog/group/deluser",data:{dialog_id:this.dialogId}}).then(({msg:n})=>{e(n),this.$store.dispatch("forgetDialog",this.dialogId),this.goForward({name:"manage-messenger"})}).catch(({msg:n})=>{t(n)})})})},onCreateGroup(){this.createGroupLoad++,this.$store.dispatch("call",{url:"dialog/group/add",data:this.createGroupData}).then(({data:e,msg:t})=>{$A.messageSuccess(t),this.createGroupShow=!1,this.createGroupData={},this.$store.dispatch("saveDialog",e),this.$store.dispatch("openDialog",e.id)}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.createGroupLoad--})},onModify(){this.modifyData.userid?(this.modifyLoad++,this.$store.dispatch("call",{url:"users/bot/edit",data:{id:this.modifyData.userid,avatar:this.modifyData.avatar,name:this.modifyData.name,clear_day:this.modifyData.clear_day,webhook_url:this.modifyData.webhook_url},method:"post"}).then(({data:e,msg:t})=>{$A.messageSuccess(t),this.$store.dispatch("saveUserBasic",{userid:this.modifyData.userid,nickname:e.name,userimg:e.avatar}),this.$store.dispatch("saveDialog",{id:this.modifyData.dialog_id,name:e.name}),this.modifyShow=!1,this.modifyData={}}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.modifyLoad--})):(this.modifyLoad++,this.$store.dispatch("call",{url:"dialog/group/edit",data:this.modifyData}).then(({data:e,msg:t})=>{$A.messageSuccess(t),this.$store.dispatch("saveDialog",e),this.modifyShow=!1,this.modifyData={}}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.modifyLoad--}))},onForward(e){if(e==="open")this.forwardData={dialogids:[],userids:[],msg_id:this.operateItem.id},this.forwardShow=!0;else if(e==="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:t,msg:n})=>{this.forwardShow=!1,this.$store.dispatch("saveDialogMsg",t.msgs),this.$store.dispatch("updateDialogLastMsg",t.msgs),$A.messageSuccess(n)}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.forwardLoad=!1})}},onScroll(e){this.operateVisible=!1;const{offset:t,tail:n}=this.scrollInfo();this.scrollOffset=t,this.scrollTail=n,this.scrollTail<=10&&(this.msgNew=0),this.scrollAction=e.target.scrollTop,this.scrollDirection=this.scrollTmp<=this.scrollAction?"down":"up",setTimeout(r=>this.scrollTmp=this.scrollAction,0)},onRange(e){if(this.preventMoreLoad)return;const t=this.scrollDirection==="down"?"next_id":"prev_id";for(let n=e.start;n<=e.end;n++){const r=this.allMsgs[n][t];if(r){const i=this.allMsgs[n+(t==="next_id"?1:-1)];i&&i.id!=r&&(this.preventMoreLoad=!0,this.getMsgs({dialog_id:this.dialogId,msg_id:this.msgId,msg_type:this.msgType,[t]:r}).finally(l=>{this.preventMoreLoad=!1}))}}},onBack(){if(!this.beforeBack)return this.handleBack();const e=this.beforeBack();e&&e.then?e.then(()=>{this.handleBack()}):this.handleBack()},handleBack(){const{name:e,params:t}=this.$store.state.routeHistoryLast;e===this.$route.name&&/^\d+$/.test(t.dialogId)?this.goForward({name:this.$route.name}):this.goBack()},onMsgType(e){switch(e){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=e;break}},onMention(e){const t=this.cacheUserBasic.find(({userid:n})=>n==e.userid);t&&this.$refs.input.addMention({denotationChar:"@",id:t.userid,value:t.nickname})},onLongpress({event:e,el:t,msgData:n}){this.operateVisible=this.operateItem.id===n.id,this.operateItem=$A.isJson(n)?n:{},this.operateCopys=[],e.target.nodeName==="IMG"&&this.$Electron?this.operateCopys.push({type:"image",icon:"",label:"\u590D\u5236\u56FE\u7247",value:$A.rightDelete(e.target.currentSrc,"_thumb.jpg")}):e.target.nodeName==="A"&&(e.target.classList.contains("mention")&&e.target.classList.contains("file")&&this.findOperateFile(this.operateItem.id,e.target.href),this.operateCopys.push({type:"link",icon:"",label:"\u590D\u5236\u94FE\u63A5",value:e.target.href})),n.type==="text"&&(e.target.nodeName==="IMG"&&this.operateCopys.push({type:"imagedown",icon:"",label:"\u4E0B\u8F7D\u56FE\u7247",value:$A.rightDelete(e.target.currentSrc,"_thumb.jpg")}),n.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 r=t.getBoundingClientRect(),i=this.$el.getBoundingClientRect();this.operateStyles={left:`${e.clientX-i.left}px`,top:`${r.top+this.windowScrollY}px`,height:r.height+"px"},this.operateVisible=!0})},onOperate(e,t=null){this.operateVisible=!1,this.$nextTick(n=>{switch(e){case"reply":this.onReply();break;case"update":this.onUpdate();break;case"copy":this.onCopy(t);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 r=$A.formatMsgBasic(this.operateItem.msg.text);r=r.replace(/]*?src=(["'])(.*?)(_thumb\.jpg)*\1[^>]*?>/g,''),qi.Store.set("addTask",{owner:[this.userId],content:r});break;case"todo":this.onTodo();break;case"pos":this.onPositionId(this.operateItem.id);break;case"emoji":t==="more"?CJ().then(this.onEmoji):this.onEmoji(t);break}})},onReply(e){const{tail:t}=this.scrollInfo();this.setQuote(this.operateItem.id,e),this.inputFocus(),t<=10&&requestAnimationFrame(this.onToBottom)},onUpdate(){const{type:e}=this.operateItem;if(this.onReply(e==="text"?"update":"reply"),e==="text"){let{text:t,type:n}=this.operateItem.msg;this.$refs.input.setPasteMode(!1),n==="md"?this.$refs.input.setText(t):(t.indexOf("mention")>-1&&(t=t.replace(/
]*)>~([^>]*)<\/a>/g,'~$3'),t=t.replace(/([@#])([^>]*)<\/span>/g,'$3$4')),t=t.replace(/]*>/gi,r=>r.replace(/(width|height)="\d+"\s*/ig,"")),this.msgText=$A.formatMsgBasic(t)),this.$nextTick(r=>this.$refs.input.setPasteMode(!0))}},onCopy(e){if(!$A.isJson(e))return;const{type:t,value:n}=e;switch(t){case"image":this.$Electron&&this.getBase64Image(n).then(i=>{this.$Electron.sendMessage("copyBase64Image",{base64:i})});break;case"imagedown":this.$store.dispatch("downUrl",{url:n,token:!1});break;case"filepos":this.windowPortrait&&this.$store.dispatch("openDialog",0),this.goForward({name:"manage-file",params:n});break;case"link":this.$copyText(n).then(i=>$A.messageSuccess("\u590D\u5236\u6210\u529F")).catch(i=>$A.messageError("\u590D\u5236\u5931\u8D25"));break;case"text":const r=$A(this.$refs.scroller.$el).find(`[data-id="${this.operateItem.id}"]`).find(".dialog-content");if(r.length>0){const i=r[0].innerText.replace(/\n\n/g,` `).replace(/(^\s*)|(\s*$)/g,"");this.$copyText(i).then(l=>$A.messageSuccess("\u590D\u5236\u6210\u529F")).catch(l=>$A.messageError("\u590D\u5236\u5931\u8D25"))}else $A.messageWarning("\u4E0D\u53EF\u590D\u5236\u7684\u5185\u5BB9");break}},onWithdraw(){$A.modalConfirm({content:"\u786E\u5B9A\u64A4\u56DE\u6B64\u4FE1\u606F\u5417\uFF1F",okText:"\u64A4\u56DE",loading:!0,onOk:()=>new Promise((e,t)=>{this.$store.dispatch("call",{url:"dialog/msg/withdraw",data:{msg_id:this.operateItem.id}}).then(()=>{e("\u6D88\u606F\u5DF2\u64A4\u56DE"),this.$store.dispatch("forgetDialogMsg",this.operateItem.id)}).catch(({msg:n})=>{t(n)})})})},onViewReply(e){this.operateVisible||this.onPositionId(e.reply_id,e.msg_id)},onViewText({target:e},t){if(!this.operateVisible)switch(e.nodeName){case"IMG":if(e.classList.contains("browse"))this.onViewPicture(e.currentSrc);else{const n=$A.getTextImagesInfo(t.outerHTML),r=n.findIndex(i=>i.src==e.currentSrc);this.$store.dispatch("previewImage",{index:r,list:n})}break;case"SPAN":e.classList.contains("mention")&&e.classList.contains("task")&&this.$store.dispatch("openTask",$A.runNum(e.getAttribute("data-id")));break}},onViewFile(e){if(this.operateVisible)return;$A.isJson(e)||(e=this.operateItem);const{msg:t}=e;if(["jpg","jpeg","webp","gif","png"].includes(t.ext)){this.onViewPicture(t.path);return}const n=`/single/file/msg/${e.id}`;this.$Electron?this.$Electron.sendMessage("windowRouter",{name:`file-msg-${e.id}`,path:n,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)+`#${n}`}}):window.open($A.apiUrl(`..${n}`))},onViewPicture(e){const t=this.allMsgs.filter(i=>i.type==="file"?["jpg","jpeg","webp","gif","png"].includes(i.msg.ext):i.type==="text"?i.msg.text.match(/]*?>/):!1),n=[];t.some(({type:i,msg:l})=>{i==="file"?n.push({src:l.path,width:l.width,height:l.height}):i==="text"&&n.push(...$A.getTextImagesInfo(l.text))});const r=n.findIndex(({src:i})=>i===e);r>-1?this.$store.dispatch("previewImage",{index:r,list:n}):this.$store.dispatch("previewImage",e)},onDownFile(e){this.operateVisible||($A.isJson(e)||(e=this.operateItem),$A.modalConfirm({title:"\u4E0B\u8F7D\u6587\u4EF6",content:`${e.msg.name} (${$A.bytesToSize(e.msg.size)})`,okText:"\u7ACB\u5373\u4E0B\u8F7D",onOk:()=>{this.$store.dispatch("downUrl",$A.apiUrl(`dialog/msg/download?msg_id=${e.id}`))}}))},onReplyList(e){this.operateVisible||(this.replyListId=e.msg_id,this.replyListShow=!0)},onError(e){if(e.error!==!0)return;const{type:t,content:n,msg:r}=e.errorData,i={icon:"error",title:"\u53D1\u9001\u5931\u8D25",content:n,cancelText:"\u53D6\u6D88\u53D1\u9001",onCancel:l=>{this.tempMsgs=this.tempMsgs.filter(({id:u})=>u!=e.id)}};if(t==="text")i.okText="\u518D\u6B21\u7F16\u8F91",i.onOk=()=>{this.tempMsgs=this.tempMsgs.filter(({id:l})=>l!=e.id),this.msgText=r,this.inputFocus()};else if(t==="record")i.okText="\u91CD\u65B0\u53D1\u9001",i.onOk=()=>{this.tempMsgs=this.tempMsgs.filter(({id:l})=>l!=e.id),this.sendRecord(r)};else return;$A.modalConfirm(i)},onEmoji(e){$A.isJson(e)||(e={msg_id:this.operateItem.id,symbol:e});const t=this.cacheEmojis.filter(n=>n!==e.symbol);t.unshift(e.symbol),$A.IDBSave("cacheEmojis",this.$store.state.cacheEmojis=t.slice(0,3)),this.$store.dispatch("setLoad",{key:`msg-${e.msg_id}`,delay:600}),this.$store.dispatch("call",{url:"dialog/msg/emoji",data:e}).then(({data:n})=>{this.dialogMsgs.findIndex(i=>i.id==n.id)>-1?this.$store.dispatch("saveDialogMsg",n):this.todoViewData.id===n.id&&(this.todoViewData=Object.assign(this.todoViewData,n))}).catch(({msg:n})=>{$A.messageError(n)}).finally(n=>{this.$store.dispatch("cancelLoad",`msg-${e.msg_id}`)})},onShowEmojiUser(e){this.operateVisible||(this.respondData=e,this.respondShow=!0)},onTag(){if(this.operateVisible)return;const e={msg_id:this.operateItem.id};this.$store.dispatch("setLoad",{key:`msg-${e.msg_id}`,delay:600}),this.$store.dispatch("call",{url:"dialog/msg/tag",data:e}).then(({data:t})=>{this.tagOrTodoSuccess(t)}).catch(({msg:t})=>{$A.messageError(t)}).finally(t=>{this.$store.dispatch("cancelLoad",`msg-${e.msg_id}`)})},onTodo(e){var t;if(!this.operateVisible)if(e==="submit"){const n=$A.cloneJSON(this.todoSettingData);if(n.type==="my")n.type="user",n.userids=[n.my_id];else if(n.type==="you")n.type="user",n.userids=[n.you_id];else if(n.type==="user"&&$A.arrayLength(n.userids)===0){$A.messageWarning("\u9009\u62E9\u6307\u5B9A\u6210\u5458");return}this.todoSettingLoad++,this.onTodoSubmit(n).then(r=>{$A.messageSuccess(r),this.todoSettingShow=!1}).catch($A.messageError).finally(r=>{this.todoSettingLoad--})}else{const n=(t=this.dialogData.dialog_user)==null?void 0:t.userid;this.todoSettingData={type:"all",userids:[],msg_id:this.operateItem.id,my_id:this.userId,you_id:n!=this.userId&&!this.dialogData.bot?n: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(e){return new Promise((t,n)=>{this.$store.dispatch("setLoad",{key:`msg-${e.msg_id}`,delay:600}),this.$store.dispatch("call",{url:"dialog/msg/todo",data:e}).then(({data:r,msg:i})=>{t(i),this.tagOrTodoSuccess(r),this.onActive()}).catch(({msg:r})=>{n(r)}).finally(r=>{this.$store.dispatch("cancelLoad",`msg-${e.msg_id}`)})})},tagOrTodoSuccess(e){this.$store.dispatch("saveDialogMsg",e.update),e.add&&(this.$store.dispatch("saveDialogMsg",e.add),this.$store.dispatch("updateDialogLastMsg",e.add))},onSearchSwitch(e){if(this.searchResult.length!==0){if(this.searchLocation===1&&this.searchResult.length===1){this.onPositionId(this.searchResult[0]);return}e==="prev"?this.searchLocation<=1?this.searchLocation=this.searchResult.length:this.searchLocation--:this.searchLocation>=this.searchResult.length?this.searchLocation=1:this.searchLocation++}},onSearchKeyup(e){(e===null||e.keyCode===27)&&(this.searchShow=!1,this.searchKey="",this.searchResult=[])},onPositionMark(){if(this.positionLoad>0)return;this.positionLoad++;const{msg_id:e}=this.positionMsg;this.$store.dispatch("dialogMsgMark",{dialog_id:this.dialogId,type:"read",after_msg_id:e}).then(t=>{this.positionLoad++,this.onPositionId(e).finally(n=>{this.positionLoad--})}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.positionLoad--})},findOperateFile(e,t){const n=this.fileLinks.find(r=>r.link===t);if(n){this.addFileMenu(e,n);return}this.$store.dispatch("searchFiles",{link:t}).then(({data:r})=>{if(r.length===1){const i={link:t,id:r[0].id,pid:r[0].pid};this.fileLinks.push(i),this.addFileMenu(e,i)}}).catch(r=>{})},addFileMenu(e,t){if(this.operateItem.id!=e||this.operateCopys.findIndex(r=>r.type==="filepos")!==-1)return;const n=Math.max(0,this.operateCopys.findIndex(r=>r.type==="link")-1);this.operateCopys.splice(n,0,{type:"filepos",icon:"",label:"\u663E\u793A\u6587\u4EF6",value:{folderId:t.pid,fileId:null,shakeId:t.id}})},getBase64Image(e){return new Promise(t=>{let n=document.createElement("CANVAS"),r=n.getContext("2d"),i=new Image;i.crossOrigin="Anonymous",i.onload=()=>{n.height=i.height,n.width=i.width,r.drawImage(i,0,0);let l="png";$A.rightExists(e,"jpg")||$A.rightExists(e,"jpeg")?l="jpeg":$A.rightExists(e,"webp")?l="webp":$A.rightExists(e,"git")&&(l="git"),t(n.toDataURL(`image/${l}`)),n=null},i.src=e})},onViewAvatar(e){let t=null;e.target.tagName==="IMG"?t=e.target.src:t=$A(e.target).find("img").attr("src"),t&&this.$store.dispatch("previewImage",t)}}},Cl={};var AJ=Wt(OJ,RJ,NJ,!1,IJ,null,null,null);function IJ(e){for(let t in Cl)this[t]=Cl[t]}var kJ=function(){return AJ.exports}();export{TJ as C,kJ as D}; diff --git a/public/js/build/Drawio.c41d1719.js b/public/js/build/Drawio.4136dec3.js similarity index 93% rename from public/js/build/Drawio.c41d1719.js rename to public/js/build/Drawio.4136dec3.js index 51b9ed4e0..a660e9009 100644 --- a/public/js/build/Drawio.c41d1719.js +++ b/public/js/build/Drawio.4136dec3.js @@ -1 +1 @@ -import{m as o,n as l,a as s}from"./app.96a4a566.js";import{I as d}from"./IFrame.910f4499.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.3c1b5c04.js";import{I as d}from"./IFrame.019fb497.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.1012b31f.js b/public/js/build/FileContent.343c7f2d.js similarity index 90% rename from public/js/build/FileContent.1012b31f.js rename to public/js/build/FileContent.343c7f2d.js index 533beee4f..57fc82e13 100644 --- a/public/js/build/FileContent.1012b31f.js +++ b/public/js/build/FileContent.343c7f2d.js @@ -1 +1 @@ -import{n as r,m as c,_ as n}from"./app.96a4a566.js";import{I as d}from"./IFrame.910f4499.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.293ca800.js"),["js/build/index.293ca800.js","js/build/index.4dae4044.css","js/build/app.96a4a566.js","js/build/app.5d9405af.css","js/build/ImgUpload.6f2636ce.js"]),$=()=>n(()=>import("./TEditor.267919b6.js"),["js/build/TEditor.267919b6.js","js/build/app.96a4a566.js","js/build/app.5d9405af.css","js/build/ImgUpload.6f2636ce.js"]),w=()=>n(()=>import("./AceEditor.48c1c979.js"),["js/build/AceEditor.48c1c979.js","js/build/app.96a4a566.js","js/build/app.5d9405af.css"]),g=()=>n(()=>import("./OnlyOffice.227dc61b.js"),["js/build/OnlyOffice.227dc61b.js","js/build/OnlyOffice.a5dfbde1.css","js/build/app.96a4a566.js","js/build/app.5d9405af.css","js/build/IFrame.910f4499.js"]),D=()=>n(()=>import("./Drawio.c41d1719.js"),["js/build/Drawio.c41d1719.js","js/build/Drawio.fc5c6326.css","js/build/app.96a4a566.js","js/build/app.5d9405af.css","js/build/IFrame.910f4499.js"]),x=()=>n(()=>import("./Minder.bca1b172.js"),["js/build/Minder.bca1b172.js","js/build/Minder.f2273bdb.css","js/build/IFrame.910f4499.js","js/build/app.96a4a566.js","js/build/app.5d9405af.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.3c1b5c04.js";import{I as d}from"./IFrame.019fb497.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.$isEEUiApp||e.windowTouch,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.$isEEUiApp||e.windowTouch||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.dedff080.js"),["js/build/index.dedff080.js","js/build/index.4dae4044.css","js/build/app.3c1b5c04.js","js/build/app.b2de25ef.css","js/build/ImgUpload.3e6ccbfd.js"]),$=()=>n(()=>import("./TEditor.917688db.js"),["js/build/TEditor.917688db.js","js/build/app.3c1b5c04.js","js/build/app.b2de25ef.css","js/build/ImgUpload.3e6ccbfd.js"]),w=()=>n(()=>import("./AceEditor.25f1dbec.js"),["js/build/AceEditor.25f1dbec.js","js/build/app.3c1b5c04.js","js/build/app.b2de25ef.css"]),g=()=>n(()=>import("./OnlyOffice.e9a75626.js"),["js/build/OnlyOffice.e9a75626.js","js/build/OnlyOffice.a5dfbde1.css","js/build/app.3c1b5c04.js","js/build/app.b2de25ef.css","js/build/IFrame.019fb497.js"]),D=()=>n(()=>import("./Drawio.4136dec3.js"),["js/build/Drawio.4136dec3.js","js/build/Drawio.fc5c6326.css","js/build/app.3c1b5c04.js","js/build/app.b2de25ef.css","js/build/IFrame.019fb497.js"]),x=()=>n(()=>import("./Minder.d8da9c94.js"),["js/build/Minder.d8da9c94.js","js/build/Minder.f2273bdb.css","js/build/IFrame.019fb497.js","js/build/app.3c1b5c04.js","js/build/app.b2de25ef.css"]),C={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 S=r(C,m,y,!1,L,null,null,null);function L(e){for(let s in l)this[s]=l[s]}var T=function(){return S.exports}();export{T as default}; diff --git a/public/js/build/FilePreview.db4b7a4d.js b/public/js/build/FilePreview.61d158e7.js similarity index 76% rename from public/js/build/FilePreview.db4b7a4d.js rename to public/js/build/FilePreview.61d158e7.js index d40a08cb2..ee970cdc9 100644 --- a/public/js/build/FilePreview.db4b7a4d.js +++ b/public/js/build/FilePreview.61d158e7.js @@ -1 +1 @@ -import{n as r,_ as n}from"./app.96a4a566.js";import{I as a}from"./IFrame.910f4499.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.721cb2b3.js"),["js/build/preview.721cb2b3.js","js/build/app.96a4a566.js","js/build/app.5d9405af.css"]),c=()=>n(()=>import("./TEditor.267919b6.js"),["js/build/TEditor.267919b6.js","js/build/app.96a4a566.js","js/build/app.5d9405af.css","js/build/ImgUpload.6f2636ce.js"]),_=()=>n(()=>import("./AceEditor.48c1c979.js"),["js/build/AceEditor.48c1c979.js","js/build/app.96a4a566.js","js/build/app.5d9405af.css"]),p=()=>n(()=>import("./OnlyOffice.227dc61b.js"),["js/build/OnlyOffice.227dc61b.js","js/build/OnlyOffice.a5dfbde1.css","js/build/app.96a4a566.js","js/build/app.5d9405af.css","js/build/IFrame.910f4499.js"]),u=()=>n(()=>import("./Drawio.c41d1719.js"),["js/build/Drawio.c41d1719.js","js/build/Drawio.fc5c6326.css","js/build/app.96a4a566.js","js/build/app.5d9405af.css","js/build/IFrame.910f4499.js"]),h=()=>n(()=>import("./Minder.bca1b172.js"),["js/build/Minder.bca1b172.js","js/build/Minder.f2273bdb.css","js/build/IFrame.910f4499.js","js/build/app.96a4a566.js","js/build/app.5d9405af.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.3c1b5c04.js";import{I as a}from"./IFrame.019fb497.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.ee7fff32.js"),["js/build/preview.ee7fff32.js","js/build/app.3c1b5c04.js","js/build/app.b2de25ef.css"]),c=()=>n(()=>import("./TEditor.917688db.js"),["js/build/TEditor.917688db.js","js/build/app.3c1b5c04.js","js/build/app.b2de25ef.css","js/build/ImgUpload.3e6ccbfd.js"]),_=()=>n(()=>import("./AceEditor.25f1dbec.js"),["js/build/AceEditor.25f1dbec.js","js/build/app.3c1b5c04.js","js/build/app.b2de25ef.css"]),p=()=>n(()=>import("./OnlyOffice.e9a75626.js"),["js/build/OnlyOffice.e9a75626.js","js/build/OnlyOffice.a5dfbde1.css","js/build/app.3c1b5c04.js","js/build/app.b2de25ef.css","js/build/IFrame.019fb497.js"]),u=()=>n(()=>import("./Drawio.4136dec3.js"),["js/build/Drawio.4136dec3.js","js/build/Drawio.fc5c6326.css","js/build/app.3c1b5c04.js","js/build/app.b2de25ef.css","js/build/IFrame.019fb497.js"]),h=()=>n(()=>import("./Minder.d8da9c94.js"),["js/build/Minder.d8da9c94.js","js/build/Minder.f2273bdb.css","js/build/IFrame.019fb497.js","js/build/app.3c1b5c04.js","js/build/app.b2de25ef.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.910f4499.js b/public/js/build/IFrame.019fb497.js similarity index 94% rename from public/js/build/IFrame.910f4499.js rename to public/js/build/IFrame.019fb497.js index f5fe55dd1..d15e1ee92 100644 --- a/public/js/build/IFrame.910f4499.js +++ b/public/js/build/IFrame.019fb497.js @@ -1 +1 @@ -import{n}from"./app.96a4a566.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.dispatch("previewImage",{index:e.params.index,list: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,c,null,null,null);function c(e){for(let s in t)this[s]=t[s]}var l=function(){return m.exports}();export{l as I}; +import{n}from"./app.3c1b5c04.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.dispatch("previewImage",{index:e.params.index,list: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,c,null,null,null);function c(e){for(let s in t)this[s]=t[s]}var l=function(){return m.exports}();export{l as I}; diff --git a/public/js/build/ImgUpload.6f2636ce.js b/public/js/build/ImgUpload.3e6ccbfd.js similarity index 99% rename from public/js/build/ImgUpload.6f2636ce.js rename to public/js/build/ImgUpload.3e6ccbfd.js index c218e7899..a6a78d1ea 100644 --- a/public/js/build/ImgUpload.6f2636ce.js +++ b/public/js/build/ImgUpload.3e6ccbfd.js @@ -1 +1 @@ -import{n as o}from"./app.96a4a566.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","webp","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...")))]):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.$store.dispatch("previewImage",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\u3001webp\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.$store.dispatch("previewImage",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\u3001webp\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")).then(t=>{if(!this.documentKey){this.handleClose();return}const i=this.documentKey();i&&i.then?i.then(this.loadFile):this.loadFile()}).catch(t=>{this.loadError=!0}).finally(t=>{this.loading=!1}))},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 y=>{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,h,u,!1,_,"38b2d892",null,null);function _(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.3c1b5c04.js";import{I as c}from"./IFrame.019fb497.js";var h=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)},u=[];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")).then(t=>{if(!this.documentKey){this.handleClose();return}const i=this.documentKey();i&&i.then?i.then(this.loadFile):this.loadFile()}).catch(t=>{this.loadError=!0}).finally(t=>{this.loading=!1}))},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 y=>{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,h,u,!1,_,"38b2d892",null,null);function _(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.4e29610c.js b/public/js/build/ProjectLog.3d6fc7bd.js similarity index 98% rename from public/js/build/ProjectLog.4e29610c.js rename to public/js/build/ProjectLog.3d6fc7bd.js index 9c12f5ec2..3ef0a6b69 100644 --- a/public/js/build/ProjectLog.4e29610c.js +++ b/public/js/build/ProjectLog.3d6fc7bd.js @@ -1 +1 @@ -import{m as p,n as c}from"./app.96a4a566.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.3c1b5c04.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.ffb8d6e5.js b/public/js/build/ReportDetail.a1cf9556.js similarity index 97% rename from public/js/build/ReportDetail.ffb8d6e5.js rename to public/js/build/ReportDetail.a1cf9556.js index 43882052e..e8fd7fc0b 100644 --- a/public/js/build/ReportDetail.ffb8d6e5.js +++ b/public/js/build/ReportDetail.a1cf9556.js @@ -1 +1 @@ -import{m as i,n as l}from"./app.96a4a566.js";var n=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),t.formLabelWidth==="auto"?a("div",{staticClass:"report-detail-context"},[a("Form",{staticClass:"report-form auto-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(r,s){return a("UserAvatar",{key:s,attrs:{userid:r.userid,size:28}})})],2)],1),a("Form",{staticClass:"report-form auto-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):a("div",{staticClass:"report-detail-context"},[a("Form",{staticClass:"report-form",attrs:{labelPosition:t.formLabelPosition,labelWidth:t.formLabelWidth}},[t.formLabelWidth!=="auto"?[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(r,s){return a("UserAvatar",{key:s,attrs:{userid:r.userid,size:28}})})],2)]:t._e(),a("FormItem",{attrs:{label:t.$L("\u6C47\u62A5\u5185\u5BB9")}},[a("div",{staticClass:"report-content",domProps:{innerHTML:t._s(t.data.content)}})])],2)],1)])},d=[];const c={name:"ReportDetail",props:{data:{default:{}}},data(){return{loadIng:0}},computed:{...i(["formLabelPosition","formLabelWidth"])},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--})}}},o={};var m=l(c,n,d,!1,u,null,null,null);function u(t){for(let e in o)this[e]=o[e]}var v=function(){return m.exports}();export{v as R}; +import{m as i,n as l}from"./app.3c1b5c04.js";var n=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),t.formLabelWidth==="auto"?a("div",{staticClass:"report-detail-context"},[a("Form",{staticClass:"report-form auto-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(r,s){return a("UserAvatar",{key:s,attrs:{userid:r.userid,size:28}})})],2)],1),a("Form",{staticClass:"report-form auto-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):a("div",{staticClass:"report-detail-context"},[a("Form",{staticClass:"report-form",attrs:{labelPosition:t.formLabelPosition,labelWidth:t.formLabelWidth}},[t.formLabelWidth!=="auto"?[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(r,s){return a("UserAvatar",{key:s,attrs:{userid:r.userid,size:28}})})],2)]:t._e(),a("FormItem",{attrs:{label:t.$L("\u6C47\u62A5\u5185\u5BB9")}},[a("div",{staticClass:"report-content",domProps:{innerHTML:t._s(t.data.content)}})])],2)],1)])},d=[];const c={name:"ReportDetail",props:{data:{default:{}}},data(){return{loadIng:0}},computed:{...i(["formLabelPosition","formLabelWidth"])},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--})}}},o={};var m=l(c,n,d,!1,u,null,null,null);function u(t){for(let e in o)this[e]=o[e]}var v=function(){return m.exports}();export{v as R}; diff --git a/public/js/build/ReportEdit.d4a11fec.js b/public/js/build/ReportEdit.484054e5.js similarity index 91% rename from public/js/build/ReportEdit.d4a11fec.js rename to public/js/build/ReportEdit.484054e5.js index e58b85bc8..3e83d5b54 100644 --- a/public/js/build/ReportEdit.d4a11fec.js +++ b/public/js/build/ReportEdit.484054e5.js @@ -1 +1 @@ -import{n as s,_ as o}from"./app.96a4a566.js";import{U as l}from"./UserInput.3c8516f0.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.267919b6.js"),["js/build/TEditor.267919b6.js","js/build/app.96a4a566.js","js/build/app.5d9405af.css","js/build/ImgUpload.6f2636ce.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.3c1b5c04.js";import{U as l}from"./UserInput.2373e386.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.$isEEUiApp||t.windowTouch,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.$isEEUiApp||t.windowTouch||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.917688db.js"),["js/build/TEditor.917688db.js","js/build/app.3c1b5c04.js","js/build/app.b2de25ef.css","js/build/ImgUpload.3e6ccbfd.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,u,null,null,null);function u(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.267919b6.js b/public/js/build/TEditor.917688db.js similarity index 99% rename from public/js/build/TEditor.267919b6.js rename to public/js/build/TEditor.917688db.js index 799428a45..c09bc0698 100644 --- a/public/js/build/TEditor.267919b6.js +++ b/public/js/build/TEditor.917688db.js @@ -1,4 +1,4 @@ -import{e as PC,m as a2,a as IC,n as i2}from"./app.96a4a566.js";import{I as o2}from"./ImgUpload.6f2636ce.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.9e35604f.js b/public/js/build/TaskDetail.208504c2.js similarity index 61% rename from public/js/build/TaskDetail.9e35604f.js rename to public/js/build/TaskDetail.208504c2.js index e96f32014..80510807b 100644 --- a/public/js/build/TaskDetail.9e35604f.js +++ b/public/js/build/TaskDetail.208504c2.js @@ -1 +1 @@ -import{n as r,d as c,m as u}from"./app.96a4a566.js";import h from"./TEditor.267919b6.js";import{P as m,T as p}from"./ProjectLog.4e29610c.js";import{U as f}from"./UserInput.3c8516f0.js";import{C as k,D as g}from"./DialogWrapper.c5ec77d2.js";import{T as _}from"./TaskMenu.d3fb0011.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","webp","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":10,"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","webp","gif","png"].includes(t.ext)){const e=this.fileList.filter(i=>["jpg","jpeg","webp","gif","png"].includes(i.ext)),s=e.findIndex(i=>i.id===t.id);s>-1?this.$store.dispatch("previewImage",{index:s,list:e.map(i=>({src:i.path,width:i.width,height:i.height}))}):this.$store.dispatch("previewImage",{index:0,list:[{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.3c1b5c04.js";import h from"./TEditor.917688db.js";import{P as m,T as p}from"./ProjectLog.3d6fc7bd.js";import{U as f}from"./UserInput.2373e386.js";import{C as k,D as g}from"./DialogWrapper.a308ebb0.js";import{T as _}from"./TaskMenu.4ef6a20d.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","webp","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":10,"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.$isEEUiApp||t.windowTouch,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.$isEEUiApp||t.windowTouch||!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.windowLandscape},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.windowPortrait&&$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.windowPortrait){$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","webp","gif","png"].includes(t.ext)){const e=this.fileList.filter(i=>["jpg","jpeg","webp","gif","png"].includes(i.ext)),s=e.findIndex(i=>i.id===t.id);s>-1?this.$store.dispatch("previewImage",{index:s,list:e.map(i=>({src:i.path,width:i.width,height:i.height}))}):this.$store.dispatch("previewImage",{index:0,list:[{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.d3fb0011.js b/public/js/build/TaskMenu.4ef6a20d.js similarity index 96% rename from public/js/build/TaskMenu.d3fb0011.js rename to public/js/build/TaskMenu.4ef6a20d.js index 2a0c1fc62..499f4096e 100644 --- a/public/js/build/TaskMenu.d3fb0011.js +++ b/public/js/build/TaskMenu.4ef6a20d.js @@ -1 +1 @@ -import{m as i,c as n,n as l}from"./app.96a4a566.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.3c1b5c04.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.05cfa3a4.js b/public/js/build/UpdateLog.c6634cb7.js similarity index 94% rename from public/js/build/UpdateLog.05cfa3a4.js rename to public/js/build/UpdateLog.c6634cb7.js index 9f921f9dc..5bbfaa314 100644 --- a/public/js/build/UpdateLog.05cfa3a4.js +++ b/public/js/build/UpdateLog.c6634cb7.js @@ -1 +1 @@ -import{n as s,p as r}from"./app.96a4a566.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.3c1b5c04.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.3c8516f0.js b/public/js/build/UserInput.2373e386.js similarity index 98% rename from public/js/build/UserInput.3c8516f0.js rename to public/js/build/UserInput.2373e386.js index b9f5f064d..dc016b404 100644 --- a/public/js/build/UserInput.3c8516f0.js +++ b/public/js/build/UserInput.2373e386.js @@ -1 +1 @@ -import{n as r,d as c}from"./app.96a4a566.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}|${i.pinyin}`,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(),i.disable_at?t("div",{staticClass:"user-input-disable"},[e._v("["+e._s(e.$L("\u79BB\u804C"))+"]")]):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},showDisable:{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&&e?2:0,disable:this.showDisable&&e?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 m=function(){return d.exports}();export{m as U}; +import{n as r,d as c}from"./app.3c1b5c04.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}|${i.pinyin}`,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(),i.disable_at?t("div",{staticClass:"user-input-disable"},[e._v("["+e._s(e.$L("\u79BB\u804C"))+"]")]):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},showDisable:{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&&e?2:0,disable:this.showDisable&&e?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 m=function(){return d.exports}();export{m as U}; diff --git a/public/js/build/app.96a4a566.js b/public/js/build/app.3c1b5c04.js similarity index 88% rename from public/js/build/app.96a4a566.js rename to public/js/build/app.3c1b5c04.js index 839b1621a..ead7fc0f7 100644 --- a/public/js/build/app.96a4a566.js +++ b/public/js/build/app.3c1b5c04.js @@ -1,4 +1,4 @@ -var t$={languageTypes:{zh:"\u7B80\u4F53\u4E2D\u6587","zh-CHT":"\u7E41\u9AD4\u4E2D\u6587",en:"English",ko:"\uD55C\uAD6D\uC5B4",ja:"\u65E5\u672C\u8A9E",de:"Deutsch",fr:"Fran\xE7ais",id:"Indonesia"},replaceArgumentsLanguage(e,t){let r=1;for(;e.indexOf("(*)")!==-1;)typeof t[r]=="object"?e=e.replace("(*)",""):e=e.replace("(*)",t[r]),r++;return e},replaceEscape(e){return!e||e==""?"":e.replace(/\(\*\)/g,"~%~").replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&").replace(/~%~/g,"(.*?)")},getLanguage(){let e=window.localStorage.getItem("__language:type__");if(typeof e=="string"&&typeof this.languageTypes[e]!="undefined")return e;e="en";let t=((window.navigator.language||navigator.userLanguage)+"").toLowerCase();switch(t){case"zh":case"cn":case"zh-cn":e="zh";break;case"zh-tw":case"zh-tr":case"zh-hk":case"zh-cnt":case"zh-cht":e="zh-CHT";break;default:typeof this.languageTypes[t]!="undefined"&&(e=t);break}return window.localStorage.setItem("__language:type__",e),e}};const Rp=t$,n$=Rp.languageTypes,Qo=Rp.getLanguage(),jl={};function QJ(e){if(!$A.isArray(e))return;const t=Object.assign(Object.keys(n$));e.some(r=>{let i=-1;r.key&&t.some(a=>{const s=r[a]||r.general||null;s&&typeof window.LANGUAGE_DATA[a]!="undefined"&&(i=window.LANGUAGE_DATA[a].push(s)-1)}),i>-1&&(window.LANGUAGE_DATA.key[r.key]=i)})}function qJ(e){e!==void 0&&$A.modalConfirm({content:"\u5207\u6362\u8BED\u8A00\u9700\u8981\u5237\u65B0\u540E\u751F\u6548\uFF0C\u662F\u5426\u786E\u5B9A\u5237\u65B0\uFF1F",cancelText:"\u53D6\u6D88",okText:"\u786E\u5B9A",onOk:()=>{window.localStorage.setItem("__language:type__",e),$A.reloadUrl()}})}function Vy(e){var r;if(typeof arguments[1]!="undefined")return Vy(Rp.replaceArgumentsLanguage(e,arguments));if(typeof e!="string"||!e||typeof window.LANGUAGE_DATA=="undefined"||typeof window.LANGUAGE_DATA.key=="undefined"||typeof window.LANGUAGE_DATA[Qo]=="undefined")return e;const t=window.LANGUAGE_DATA.key[e]||-1;if(t>-1)return window.LANGUAGE_DATA[Qo][t]||e;if(typeof jl[e]=="undefined"){jl[e]=!1;for(let i in window.LANGUAGE_DATA.key)if(i.indexOf("(*)")>-1){const a=new RegExp("^"+Rp.replaceEscape(i)+"$","g");if(a.test(e)){let s=0;const u=window.LANGUAGE_DATA.key[i],c=(r=window.LANGUAGE_DATA[Qo][u]||i)==null?void 0:r.replace(/\(\*\)/g,function(){return"$"+ ++s});jl[e]={rege:a,value:c};break}}}return jl[e]?e.replace(jl[e].rege,jl[e].value):(window.systemInfo.debug==="yes"&&setTimeout(i=>{try{let a="__language:Undefined__",s=JSON.parse(window.localStorage.getItem(a)||"[]");$A.isArray(s)||(s=[]);let u=null;s.find(h=>(u=new RegExp("^"+h.replace(/\(\*\)/g,"(.*?)")+"$","g"),!!e.match(u)))||(s.push(e),window.localStorage.setItem(a,JSON.stringify(s)))}catch{}},10),e)}var xs=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function r$(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Wy(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),t}function kh(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Sk={exports:{}};/*! +var r$={languageTypes:{zh:"\u7B80\u4F53\u4E2D\u6587","zh-CHT":"\u7E41\u9AD4\u4E2D\u6587",en:"English",ko:"\uD55C\uAD6D\uC5B4",ja:"\u65E5\u672C\u8A9E",de:"Deutsch",fr:"Fran\xE7ais",id:"Indonesia"},replaceArgumentsLanguage(e,t){let r=1;for(;e.indexOf("(*)")!==-1;)typeof t[r]=="object"?e=e.replace("(*)",""):e=e.replace("(*)",t[r]),r++;return e},replaceEscape(e){return!e||e==""?"":e.replace(/\(\*\)/g,"~%~").replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&").replace(/~%~/g,"(.*?)")},getLanguage(){let e=window.localStorage.getItem("__language:type__");if(typeof e=="string"&&typeof this.languageTypes[e]!="undefined")return e;e="en";let t=((window.navigator.language||navigator.userLanguage)+"").toLowerCase();switch(t){case"zh":case"cn":case"zh-cn":e="zh";break;case"zh-tw":case"zh-tr":case"zh-hk":case"zh-cnt":case"zh-cht":e="zh-CHT";break;default:typeof this.languageTypes[t]!="undefined"&&(e=t);break}return window.localStorage.setItem("__language:type__",e),e}};const Rp=r$,i$=Rp.languageTypes,Qo=Rp.getLanguage(),jl={};function tZ(e){if(!$A.isArray(e))return;const t=Object.assign(Object.keys(i$));e.some(r=>{let i=-1;r.key&&t.some(a=>{const s=r[a]||r.general||null;s&&typeof window.LANGUAGE_DATA[a]!="undefined"&&(i=window.LANGUAGE_DATA[a].push(s)-1)}),i>-1&&(window.LANGUAGE_DATA.key[r.key]=i)})}function nZ(e){e!==void 0&&$A.modalConfirm({content:"\u5207\u6362\u8BED\u8A00\u9700\u8981\u5237\u65B0\u540E\u751F\u6548\uFF0C\u662F\u5426\u786E\u5B9A\u5237\u65B0\uFF1F",cancelText:"\u53D6\u6D88",okText:"\u786E\u5B9A",onOk:()=>{window.localStorage.setItem("__language:type__",e),$A.reloadUrl()}})}function Ky(e){var r;if(typeof arguments[1]!="undefined")return Ky(Rp.replaceArgumentsLanguage(e,arguments));if(typeof e!="string"||!e||typeof window.LANGUAGE_DATA=="undefined"||typeof window.LANGUAGE_DATA.key=="undefined"||typeof window.LANGUAGE_DATA[Qo]=="undefined")return e;const t=window.LANGUAGE_DATA.key[e]||-1;if(t>-1)return window.LANGUAGE_DATA[Qo][t]||e;if(typeof jl[e]=="undefined"){jl[e]=!1;for(let i in window.LANGUAGE_DATA.key)if(i.indexOf("(*)")>-1){const a=new RegExp("^"+Rp.replaceEscape(i)+"$","g");if(a.test(e)){let s=0;const u=window.LANGUAGE_DATA.key[i],c=(r=window.LANGUAGE_DATA[Qo][u]||i)==null?void 0:r.replace(/\(\*\)/g,function(){return"$"+ ++s});jl[e]={rege:a,value:c};break}}}return jl[e]?e.replace(jl[e].rege,jl[e].value):(window.systemInfo.debug==="yes"&&setTimeout(i=>{try{let a="__language:Undefined__",s=JSON.parse(window.localStorage.getItem(a)||"[]");$A.isArray(s)||(s=[]);let u=null;s.find(h=>(u=new RegExp("^"+h.replace(/\(\*\)/g,"(.*?)")+"$","g"),!!e.match(u)))||(s.push(e),window.localStorage.setItem(a,JSON.stringify(s)))}catch{}},10),e)}var xs=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function a$(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Hy(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),t}function kh(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Ek={exports:{}};/*! * jQuery JavaScript Library v3.6.4 * https://jquery.com/ * @@ -13,18 +13,18 @@ var t$={languageTypes:{zh:"\u7B80\u4F53\u4E2D\u6587","zh-CHT":"\u7E41\u9AD4\u4E2 */(function(e){(function(t,r){e.exports=t.document?r(t,!0):function(i){if(!i.document)throw new Error("jQuery requires a window with a document");return r(i)}})(typeof window!="undefined"?window:xs,function(t,r){var i=[],a=Object.getPrototypeOf,s=i.slice,u=i.flat?function(D){return i.flat.call(D)}:function(D){return i.concat.apply([],D)},c=i.push,h=i.indexOf,n={},p=n.toString,d=n.hasOwnProperty,v=d.toString,m=v.call(Object),g={},y=function(R){return typeof R=="function"&&typeof R.nodeType!="number"&&typeof R.item!="function"},b=function(R){return R!=null&&R===R.window},k=t.document,O={type:!0,src:!0,nonce:!0,noModule:!0};function S(D,R,K){K=K||k;var Q,ge,we=K.createElement("script");if(we.text=D,R)for(Q in O)ge=R[Q]||R.getAttribute&&R.getAttribute(Q),ge&&we.setAttribute(Q,ge);K.head.appendChild(we).parentNode.removeChild(we)}function x(D){return D==null?D+"":typeof D=="object"||typeof D=="function"?n[p.call(D)]||"object":typeof D}var E="3.6.4",w=function(D,R){return new w.fn.init(D,R)};w.fn=w.prototype={jquery:E,constructor:w,length:0,toArray:function(){return s.call(this)},get:function(D){return D==null?s.call(this):D<0?this[D+this.length]:this[D]},pushStack:function(D){var R=w.merge(this.constructor(),D);return R.prevObject=this,R},each:function(D){return w.each(this,D)},map:function(D){return this.pushStack(w.map(this,function(R,K){return D.call(R,K,R)}))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(w.grep(this,function(D,R){return(R+1)%2}))},odd:function(){return this.pushStack(w.grep(this,function(D,R){return R%2}))},eq:function(D){var R=this.length,K=+D+(D<0?R:0);return this.pushStack(K>=0&&K0&&R-1 in D}var M=function(D){var R,K,Q,ge,we,Ae,Ke,Fe,qe,at,gt,rt,lt,en,pn,Xt,fr,ur,si,Ln="sizzle"+1*new Date,vn=D.document,Lr=0,On=0,Yn=Al(),zs=Al(),Pl=Al(),oi=Al(),cs=function($e,je){return $e===je&&(gt=!0),0},Ea={}.hasOwnProperty,kr=[],sa=kr.pop,li=kr.push,Da=kr.push,Ju=kr.slice,ds=function($e,je){for(var Ge=0,ct=$e.length;Ge+~]|"+In+")"+In+"*"),ef=new RegExp(In+"|>"),So=new RegExp(Tl),Nm=new RegExp("^"+Oa+"$"),ko={ID:new RegExp("^#("+Oa+")"),CLASS:new RegExp("^\\.("+Oa+")"),TAG:new RegExp("^("+Oa+"|[*])"),ATTR:new RegExp("^"+Qd),PSEUDO:new RegExp("^"+Tl),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+In+"*(even|odd|(([+-]|)(\\d*)n|)"+In+"*(?:([+-]|)"+In+"*(\\d+)|))"+In+"*\\)|)","i"),bool:new RegExp("^(?:"+Zu+")$","i"),needsContext:new RegExp("^"+In+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+In+"*((?:-\\d)?\\d*)"+In+"*\\)|)(?=[^-]|$)","i")},wi=/HTML$/i,Bm=/^(?:input|select|textarea|button)$/i,Qu=/^h\d$/i,Eo=/^[^{]+\{\s*\[native \w/,Fm=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,qu=/[+~]/,Zi=new RegExp("\\\\[\\da-fA-F]{1,6}"+In+"?|\\\\([^\\r\\n\\f])","g"),Ci=function($e,je){var Ge="0x"+$e.slice(1)-65536;return je||(Ge<0?String.fromCharCode(Ge+65536):String.fromCharCode(Ge>>10|55296,Ge&1023|56320))},ec=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,tc=function($e,je){return je?$e==="\0"?"\uFFFD":$e.slice(0,-1)+"\\"+$e.charCodeAt($e.length-1).toString(16)+" ":"\\"+$e},nc=function(){rt()},zm=Il(function($e){return $e.disabled===!0&&$e.nodeName.toLowerCase()==="fieldset"},{dir:"parentNode",next:"legend"});try{Da.apply(kr=Ju.call(vn.childNodes),vn.childNodes),kr[vn.childNodes.length].nodeType}catch{Da={apply:kr.length?function(je,Ge){li.apply(je,Ju.call(Ge))}:function(je,Ge){for(var ct=je.length,et=0;je[ct++]=Ge[et++];);je.length=ct-1}}}function Bn($e,je,Ge,ct){var et,vt,wt,$t,zt,an,Ft,un=je&&je.ownerDocument,Cn=je?je.nodeType:9;if(Ge=Ge||[],typeof $e!="string"||!$e||Cn!==1&&Cn!==9&&Cn!==11)return Ge;if(!ct&&(rt(je),je=je||lt,pn)){if(Cn!==11&&(zt=Fm.exec($e)))if(et=zt[1]){if(Cn===9)if(wt=je.getElementById(et)){if(wt.id===et)return Ge.push(wt),Ge}else return Ge;else if(un&&(wt=un.getElementById(et))&&si(je,wt)&&wt.id===et)return Ge.push(wt),Ge}else{if(zt[2])return Da.apply(Ge,je.getElementsByTagName($e)),Ge;if((et=zt[3])&&K.getElementsByClassName&&je.getElementsByClassName)return Da.apply(Ge,je.getElementsByClassName(et)),Ge}if(K.qsa&&!oi[$e+" "]&&(!Xt||!Xt.test($e))&&(Cn!==1||je.nodeName.toLowerCase()!=="object")){if(Ft=$e,un=je,Cn===1&&(ef.test($e)||qd.test($e))){for(un=qu.test($e)&&js(je.parentNode)||je,(un!==je||!K.scope)&&(($t=je.getAttribute("id"))?$t=$t.replace(ec,tc):je.setAttribute("id",$t=Ln)),an=Ae($e),vt=an.length;vt--;)an[vt]=($t?"#"+$t:":scope")+" "+Do(an[vt]);Ft=an.join(",")}try{return Da.apply(Ge,un.querySelectorAll(Ft)),Ge}catch{oi($e,!0)}finally{$t===Ln&&je.removeAttribute("id")}}}return Fe($e.replace(xo,"$1"),je,Ge,ct)}function Al(){var $e=[];function je(Ge,ct){return $e.push(Ge+" ")>Q.cacheLength&&delete je[$e.shift()],je[Ge+" "]=ct}return je}function xi($e){return $e[Ln]=!0,$e}function Nr($e){var je=lt.createElement("fieldset");try{return!!$e(je)}catch{return!1}finally{je.parentNode&&je.parentNode.removeChild(je),je=null}}function Ml($e,je){for(var Ge=$e.split("|"),ct=Ge.length;ct--;)Q.attrHandle[Ge[ct]]=je}function rc($e,je){var Ge=je&&$e,ct=Ge&&$e.nodeType===1&&je.nodeType===1&&$e.sourceIndex-je.sourceIndex;if(ct)return ct;if(Ge){for(;Ge=Ge.nextSibling;)if(Ge===je)return-1}return $e?1:-1}function jm($e){return function(je){var Ge=je.nodeName.toLowerCase();return Ge==="input"&&je.type===$e}}function Um($e){return function(je){var Ge=je.nodeName.toLowerCase();return(Ge==="input"||Ge==="button")&&je.type===$e}}function tf($e){return function(je){return"form"in je?je.parentNode&&je.disabled===!1?"label"in je?"label"in je.parentNode?je.parentNode.disabled===$e:je.disabled===$e:je.isDisabled===$e||je.isDisabled!==!$e&&zm(je)===$e:je.disabled===$e:"label"in je?je.disabled===$e:!1}}function Pa($e){return xi(function(je){return je=+je,xi(function(Ge,ct){for(var et,vt=$e([],Ge.length,je),wt=vt.length;wt--;)Ge[et=vt[wt]]&&(Ge[et]=!(ct[et]=Ge[et]))})})}function js($e){return $e&&typeof $e.getElementsByTagName!="undefined"&&$e}K=Bn.support={},we=Bn.isXML=function($e){var je=$e&&$e.namespaceURI,Ge=$e&&($e.ownerDocument||$e).documentElement;return!wi.test(je||Ge&&Ge.nodeName||"HTML")},rt=Bn.setDocument=function($e){var je,Ge,ct=$e?$e.ownerDocument||$e:vn;return ct==lt||ct.nodeType!==9||!ct.documentElement||(lt=ct,en=lt.documentElement,pn=!we(lt),vn!=lt&&(Ge=lt.defaultView)&&Ge.top!==Ge&&(Ge.addEventListener?Ge.addEventListener("unload",nc,!1):Ge.attachEvent&&Ge.attachEvent("onunload",nc)),K.scope=Nr(function(et){return en.appendChild(et).appendChild(lt.createElement("div")),typeof et.querySelectorAll!="undefined"&&!et.querySelectorAll(":scope fieldset div").length}),K.cssHas=Nr(function(){try{return lt.querySelector(":has(*,:jqfake)"),!1}catch{return!0}}),K.attributes=Nr(function(et){return et.className="i",!et.getAttribute("className")}),K.getElementsByTagName=Nr(function(et){return et.appendChild(lt.createComment("")),!et.getElementsByTagName("*").length}),K.getElementsByClassName=Eo.test(lt.getElementsByClassName),K.getById=Nr(function(et){return en.appendChild(et).id=Ln,!lt.getElementsByName||!lt.getElementsByName(Ln).length}),K.getById?(Q.filter.ID=function(et){var vt=et.replace(Zi,Ci);return function(wt){return wt.getAttribute("id")===vt}},Q.find.ID=function(et,vt){if(typeof vt.getElementById!="undefined"&&pn){var wt=vt.getElementById(et);return wt?[wt]:[]}}):(Q.filter.ID=function(et){var vt=et.replace(Zi,Ci);return function(wt){var $t=typeof wt.getAttributeNode!="undefined"&&wt.getAttributeNode("id");return $t&&$t.value===vt}},Q.find.ID=function(et,vt){if(typeof vt.getElementById!="undefined"&&pn){var wt,$t,zt,an=vt.getElementById(et);if(an){if(wt=an.getAttributeNode("id"),wt&&wt.value===et)return[an];for(zt=vt.getElementsByName(et),$t=0;an=zt[$t++];)if(wt=an.getAttributeNode("id"),wt&&wt.value===et)return[an]}return[]}}),Q.find.TAG=K.getElementsByTagName?function(et,vt){if(typeof vt.getElementsByTagName!="undefined")return vt.getElementsByTagName(et);if(K.qsa)return vt.querySelectorAll(et)}:function(et,vt){var wt,$t=[],zt=0,an=vt.getElementsByTagName(et);if(et==="*"){for(;wt=an[zt++];)wt.nodeType===1&&$t.push(wt);return $t}return an},Q.find.CLASS=K.getElementsByClassName&&function(et,vt){if(typeof vt.getElementsByClassName!="undefined"&&pn)return vt.getElementsByClassName(et)},fr=[],Xt=[],(K.qsa=Eo.test(lt.querySelectorAll))&&(Nr(function(et){var vt;en.appendChild(et).innerHTML="
",et.querySelectorAll("[msallowcapture^='']").length&&Xt.push("[*^$]="+In+`*(?:''|"")`),et.querySelectorAll("[selected]").length||Xt.push("\\["+In+"*(?:value|"+Zu+")"),et.querySelectorAll("[id~="+Ln+"-]").length||Xt.push("~="),vt=lt.createElement("input"),vt.setAttribute("name",""),et.appendChild(vt),et.querySelectorAll("[name='']").length||Xt.push("\\["+In+"*name"+In+"*="+In+`*(?:''|"")`),et.querySelectorAll(":checked").length||Xt.push(":checked"),et.querySelectorAll("a#"+Ln+"+*").length||Xt.push(".#.+[+~]"),et.querySelectorAll("\\\f"),Xt.push("[\\r\\n\\f]")}),Nr(function(et){et.innerHTML="";var vt=lt.createElement("input");vt.setAttribute("type","hidden"),et.appendChild(vt).setAttribute("name","D"),et.querySelectorAll("[name=d]").length&&Xt.push("name"+In+"*[*^$|!~]?="),et.querySelectorAll(":enabled").length!==2&&Xt.push(":enabled",":disabled"),en.appendChild(et).disabled=!0,et.querySelectorAll(":disabled").length!==2&&Xt.push(":enabled",":disabled"),et.querySelectorAll("*,:x"),Xt.push(",.*:")})),(K.matchesSelector=Eo.test(ur=en.matches||en.webkitMatchesSelector||en.mozMatchesSelector||en.oMatchesSelector||en.msMatchesSelector))&&Nr(function(et){K.disconnectedMatch=ur.call(et,"*"),ur.call(et,"[s!='']:x"),fr.push("!=",Tl)}),K.cssHas||Xt.push(":has"),Xt=Xt.length&&new RegExp(Xt.join("|")),fr=fr.length&&new RegExp(fr.join("|")),je=Eo.test(en.compareDocumentPosition),si=je||Eo.test(en.contains)?function(et,vt){var wt=et.nodeType===9&&et.documentElement||et,$t=vt&&vt.parentNode;return et===$t||!!($t&&$t.nodeType===1&&(wt.contains?wt.contains($t):et.compareDocumentPosition&&et.compareDocumentPosition($t)&16))}:function(et,vt){if(vt){for(;vt=vt.parentNode;)if(vt===et)return!0}return!1},cs=je?function(et,vt){if(et===vt)return gt=!0,0;var wt=!et.compareDocumentPosition-!vt.compareDocumentPosition;return wt||(wt=(et.ownerDocument||et)==(vt.ownerDocument||vt)?et.compareDocumentPosition(vt):1,wt&1||!K.sortDetached&&vt.compareDocumentPosition(et)===wt?et==lt||et.ownerDocument==vn&&si(vn,et)?-1:vt==lt||vt.ownerDocument==vn&&si(vn,vt)?1:at?ds(at,et)-ds(at,vt):0:wt&4?-1:1)}:function(et,vt){if(et===vt)return gt=!0,0;var wt,$t=0,zt=et.parentNode,an=vt.parentNode,Ft=[et],un=[vt];if(!zt||!an)return et==lt?-1:vt==lt?1:zt?-1:an?1:at?ds(at,et)-ds(at,vt):0;if(zt===an)return rc(et,vt);for(wt=et;wt=wt.parentNode;)Ft.unshift(wt);for(wt=vt;wt=wt.parentNode;)un.unshift(wt);for(;Ft[$t]===un[$t];)$t++;return $t?rc(Ft[$t],un[$t]):Ft[$t]==vn?-1:un[$t]==vn?1:0}),lt},Bn.matches=function($e,je){return Bn($e,null,null,je)},Bn.matchesSelector=function($e,je){if(rt($e),K.matchesSelector&&pn&&!oi[je+" "]&&(!fr||!fr.test(je))&&(!Xt||!Xt.test(je)))try{var Ge=ur.call($e,je);if(Ge||K.disconnectedMatch||$e.document&&$e.document.nodeType!==11)return Ge}catch{oi(je,!0)}return Bn(je,lt,null,[$e]).length>0},Bn.contains=function($e,je){return($e.ownerDocument||$e)!=lt&&rt($e),si($e,je)},Bn.attr=function($e,je){($e.ownerDocument||$e)!=lt&&rt($e);var Ge=Q.attrHandle[je.toLowerCase()],ct=Ge&&Ea.call(Q.attrHandle,je.toLowerCase())?Ge($e,je,!pn):void 0;return ct!==void 0?ct:K.attributes||!pn?$e.getAttribute(je):(ct=$e.getAttributeNode(je))&&ct.specified?ct.value:null},Bn.escape=function($e){return($e+"").replace(ec,tc)},Bn.error=function($e){throw new Error("Syntax error, unrecognized expression: "+$e)},Bn.uniqueSort=function($e){var je,Ge=[],ct=0,et=0;if(gt=!K.detectDuplicates,at=!K.sortStable&&$e.slice(0),$e.sort(cs),gt){for(;je=$e[et++];)je===$e[et]&&(ct=Ge.push(et));for(;ct--;)$e.splice(Ge[ct],1)}return at=null,$e},ge=Bn.getText=function($e){var je,Ge="",ct=0,et=$e.nodeType;if(et){if(et===1||et===9||et===11){if(typeof $e.textContent=="string")return $e.textContent;for($e=$e.firstChild;$e;$e=$e.nextSibling)Ge+=ge($e)}else if(et===3||et===4)return $e.nodeValue}else for(;je=$e[ct++];)Ge+=ge(je);return Ge},Q=Bn.selectors={cacheLength:50,createPseudo:xi,match:ko,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function($e){return $e[1]=$e[1].replace(Zi,Ci),$e[3]=($e[3]||$e[4]||$e[5]||"").replace(Zi,Ci),$e[2]==="~="&&($e[3]=" "+$e[3]+" "),$e.slice(0,4)},CHILD:function($e){return $e[1]=$e[1].toLowerCase(),$e[1].slice(0,3)==="nth"?($e[3]||Bn.error($e[0]),$e[4]=+($e[4]?$e[5]+($e[6]||1):2*($e[3]==="even"||$e[3]==="odd")),$e[5]=+($e[7]+$e[8]||$e[3]==="odd")):$e[3]&&Bn.error($e[0]),$e},PSEUDO:function($e){var je,Ge=!$e[6]&&$e[2];return ko.CHILD.test($e[0])?null:($e[3]?$e[2]=$e[4]||$e[5]||"":Ge&&So.test(Ge)&&(je=Ae(Ge,!0))&&(je=Ge.indexOf(")",Ge.length-je)-Ge.length)&&($e[0]=$e[0].slice(0,je),$e[2]=Ge.slice(0,je)),$e.slice(0,3))}},filter:{TAG:function($e){var je=$e.replace(Zi,Ci).toLowerCase();return $e==="*"?function(){return!0}:function(Ge){return Ge.nodeName&&Ge.nodeName.toLowerCase()===je}},CLASS:function($e){var je=Yn[$e+" "];return je||(je=new RegExp("(^|"+In+")"+$e+"("+In+"|$)"))&&Yn($e,function(Ge){return je.test(typeof Ge.className=="string"&&Ge.className||typeof Ge.getAttribute!="undefined"&&Ge.getAttribute("class")||"")})},ATTR:function($e,je,Ge){return function(ct){var et=Bn.attr(ct,$e);return et==null?je==="!=":je?(et+="",je==="="?et===Ge:je==="!="?et!==Ge:je==="^="?Ge&&et.indexOf(Ge)===0:je==="*="?Ge&&et.indexOf(Ge)>-1:je==="$="?Ge&&et.slice(-Ge.length)===Ge:je==="~="?(" "+et.replace(Rm," ")+" ").indexOf(Ge)>-1:je==="|="?et===Ge||et.slice(0,Ge.length+1)===Ge+"-":!1):!0}},CHILD:function($e,je,Ge,ct,et){var vt=$e.slice(0,3)!=="nth",wt=$e.slice(-4)!=="last",$t=je==="of-type";return ct===1&&et===0?function(zt){return!!zt.parentNode}:function(zt,an,Ft){var un,Cn,Nn,sn,hr,Pr,Yr=vt!==wt?"nextSibling":"previousSibling",En=zt.parentNode,Li=$t&&zt.nodeName.toLowerCase(),Po=!Ft&&!$t,ui=!1;if(En){if(vt){for(;Yr;){for(sn=zt;sn=sn[Yr];)if($t?sn.nodeName.toLowerCase()===Li:sn.nodeType===1)return!1;Pr=Yr=$e==="only"&&!Pr&&"nextSibling"}return!0}if(Pr=[wt?En.firstChild:En.lastChild],wt&&Po){for(sn=En,Nn=sn[Ln]||(sn[Ln]={}),Cn=Nn[sn.uniqueID]||(Nn[sn.uniqueID]={}),un=Cn[$e]||[],hr=un[0]===Lr&&un[1],ui=hr&&un[2],sn=hr&&En.childNodes[hr];sn=++hr&&sn&&sn[Yr]||(ui=hr=0)||Pr.pop();)if(sn.nodeType===1&&++ui&&sn===zt){Cn[$e]=[Lr,hr,ui];break}}else if(Po&&(sn=zt,Nn=sn[Ln]||(sn[Ln]={}),Cn=Nn[sn.uniqueID]||(Nn[sn.uniqueID]={}),un=Cn[$e]||[],hr=un[0]===Lr&&un[1],ui=hr),ui===!1)for(;(sn=++hr&&sn&&sn[Yr]||(ui=hr=0)||Pr.pop())&&!(($t?sn.nodeName.toLowerCase()===Li:sn.nodeType===1)&&++ui&&(Po&&(Nn=sn[Ln]||(sn[Ln]={}),Cn=Nn[sn.uniqueID]||(Nn[sn.uniqueID]={}),Cn[$e]=[Lr,ui]),sn===zt)););return ui-=et,ui===ct||ui%ct===0&&ui/ct>=0}}},PSEUDO:function($e,je){var Ge,ct=Q.pseudos[$e]||Q.setFilters[$e.toLowerCase()]||Bn.error("unsupported pseudo: "+$e);return ct[Ln]?ct(je):ct.length>1?(Ge=[$e,$e,"",je],Q.setFilters.hasOwnProperty($e.toLowerCase())?xi(function(et,vt){for(var wt,$t=ct(et,je),zt=$t.length;zt--;)wt=ds(et,$t[zt]),et[wt]=!(vt[wt]=$t[zt])}):function(et){return ct(et,0,Ge)}):ct}},pseudos:{not:xi(function($e){var je=[],Ge=[],ct=Ke($e.replace(xo,"$1"));return ct[Ln]?xi(function(et,vt,wt,$t){for(var zt,an=ct(et,null,$t,[]),Ft=et.length;Ft--;)(zt=an[Ft])&&(et[Ft]=!(vt[Ft]=zt))}):function(et,vt,wt){return je[0]=et,ct(je,null,wt,Ge),je[0]=null,!Ge.pop()}}),has:xi(function($e){return function(je){return Bn($e,je).length>0}}),contains:xi(function($e){return $e=$e.replace(Zi,Ci),function(je){return(je.textContent||ge(je)).indexOf($e)>-1}}),lang:xi(function($e){return Nm.test($e||"")||Bn.error("unsupported lang: "+$e),$e=$e.replace(Zi,Ci).toLowerCase(),function(je){var Ge;do if(Ge=pn?je.lang:je.getAttribute("xml:lang")||je.getAttribute("lang"))return Ge=Ge.toLowerCase(),Ge===$e||Ge.indexOf($e+"-")===0;while((je=je.parentNode)&&je.nodeType===1);return!1}}),target:function($e){var je=D.location&&D.location.hash;return je&&je.slice(1)===$e.id},root:function($e){return $e===en},focus:function($e){return $e===lt.activeElement&&(!lt.hasFocus||lt.hasFocus())&&!!($e.type||$e.href||~$e.tabIndex)},enabled:tf(!1),disabled:tf(!0),checked:function($e){var je=$e.nodeName.toLowerCase();return je==="input"&&!!$e.checked||je==="option"&&!!$e.selected},selected:function($e){return $e.parentNode&&$e.parentNode.selectedIndex,$e.selected===!0},empty:function($e){for($e=$e.firstChild;$e;$e=$e.nextSibling)if($e.nodeType<6)return!1;return!0},parent:function($e){return!Q.pseudos.empty($e)},header:function($e){return Qu.test($e.nodeName)},input:function($e){return Bm.test($e.nodeName)},button:function($e){var je=$e.nodeName.toLowerCase();return je==="input"&&$e.type==="button"||je==="button"},text:function($e){var je;return $e.nodeName.toLowerCase()==="input"&&$e.type==="text"&&((je=$e.getAttribute("type"))==null||je.toLowerCase()==="text")},first:Pa(function(){return[0]}),last:Pa(function($e,je){return[je-1]}),eq:Pa(function($e,je,Ge){return[Ge<0?Ge+je:Ge]}),even:Pa(function($e,je){for(var Ge=0;Geje?je:Ge;--ct>=0;)$e.push(ct);return $e}),gt:Pa(function($e,je,Ge){for(var ct=Ge<0?Ge+je:Ge;++ct1?function(je,Ge,ct){for(var et=$e.length;et--;)if(!$e[et](je,Ge,ct))return!1;return!0}:$e[0]}function Vm($e,je,Ge){for(var ct=0,et=je.length;ct-1&&(wt[Ft]=!($t[Ft]=Cn))}}else En=Oo(En===$t?En.splice(hr,En.length):En),et?et(null,$t,En,an):Da.apply($t,En)})}function $l($e){for(var je,Ge,ct,et=$e.length,vt=Q.relative[$e[0].type],wt=vt||Q.relative[" "],$t=vt?1:0,zt=Il(function(un){return un===je},wt,!0),an=Il(function(un){return ds(je,un)>-1},wt,!0),Ft=[function(un,Cn,Nn){var sn=!vt&&(Nn||Cn!==qe)||((je=Cn).nodeType?zt(un,Cn,Nn):an(un,Cn,Nn));return je=null,sn}];$t1&&ac(Ft),$t>1&&Do($e.slice(0,$t-1).concat({value:$e[$t-2].type===" "?"*":""})).replace(xo,"$1"),Ge,$t0,ct=$e.length>0,et=function(vt,wt,$t,zt,an){var Ft,un,Cn,Nn=0,sn="0",hr=vt&&[],Pr=[],Yr=qe,En=vt||ct&&Q.find.TAG("*",an),Li=Lr+=Yr==null?1:Math.random()||.1,Po=En.length;for(an&&(qe=wt==lt||wt||an);sn!==Po&&(Ft=En[sn])!=null;sn++){if(ct&&Ft){for(un=0,!wt&&Ft.ownerDocument!=lt&&(rt(Ft),$t=!pn);Cn=$e[un++];)if(Cn(Ft,wt||lt,$t)){zt.push(Ft);break}an&&(Lr=Li)}Ge&&((Ft=!Cn&&Ft)&&Nn--,vt&&hr.push(Ft))}if(Nn+=sn,Ge&&sn!==Nn){for(un=0;Cn=je[un++];)Cn(hr,Pr,wt,$t);if(vt){if(Nn>0)for(;sn--;)hr[sn]||Pr[sn]||(Pr[sn]=sa.call(zt));Pr=Oo(Pr)}Da.apply(zt,Pr),an&&!vt&&Pr.length>0&&Nn+je.length>1&&Bn.uniqueSort(zt)}return an&&(Lr=Li,qe=Yr),hr};return Ge?xi(et):et}return Ke=Bn.compile=function($e,je){var Ge,ct=[],et=[],vt=Pl[$e+" "];if(!vt){for(je||(je=Ae($e)),Ge=je.length;Ge--;)vt=$l(je[Ge]),vt[Ln]?ct.push(vt):et.push(vt);vt=Pl($e,nf(et,ct)),vt.selector=$e}return vt},Fe=Bn.select=function($e,je,Ge,ct){var et,vt,wt,$t,zt,an=typeof $e=="function"&&$e,Ft=!ct&&Ae($e=an.selector||$e);if(Ge=Ge||[],Ft.length===1){if(vt=Ft[0]=Ft[0].slice(0),vt.length>2&&(wt=vt[0]).type==="ID"&&je.nodeType===9&&pn&&Q.relative[vt[1].type]){if(je=(Q.find.ID(wt.matches[0].replace(Zi,Ci),je)||[])[0],je)an&&(je=je.parentNode);else return Ge;$e=$e.slice(vt.shift().value.length)}for(et=ko.needsContext.test($e)?0:vt.length;et--&&(wt=vt[et],!Q.relative[$t=wt.type]);)if((zt=Q.find[$t])&&(ct=zt(wt.matches[0].replace(Zi,Ci),qu.test(vt[0].type)&&js(je.parentNode)||je))){if(vt.splice(et,1),$e=ct.length&&Do(vt),!$e)return Da.apply(Ge,ct),Ge;break}}return(an||Ke($e,Ft))(ct,je,!pn,Ge,!je||qu.test($e)&&js(je.parentNode)||je),Ge},K.sortStable=Ln.split("").sort(cs).join("")===Ln,K.detectDuplicates=!!gt,rt(),K.sortDetached=Nr(function($e){return $e.compareDocumentPosition(lt.createElement("fieldset"))&1}),Nr(function($e){return $e.innerHTML="",$e.firstChild.getAttribute("href")==="#"})||Ml("type|href|height|width",function($e,je,Ge){if(!Ge)return $e.getAttribute(je,je.toLowerCase()==="type"?1:2)}),(!K.attributes||!Nr(function($e){return $e.innerHTML="",$e.firstChild.setAttribute("value",""),$e.firstChild.getAttribute("value")===""}))&&Ml("value",function($e,je,Ge){if(!Ge&&$e.nodeName.toLowerCase()==="input")return $e.defaultValue}),Nr(function($e){return $e.getAttribute("disabled")==null})||Ml(Zu,function($e,je,Ge){var ct;if(!Ge)return $e[je]===!0?je.toLowerCase():(ct=$e.getAttributeNode(je))&&ct.specified?ct.value:null}),Bn}(t);w.find=M,w.expr=M.selectors,w.expr[":"]=w.expr.pseudos,w.uniqueSort=w.unique=M.uniqueSort,w.text=M.getText,w.isXMLDoc=M.isXML,w.contains=M.contains,w.escapeSelector=M.escape;var A=function(D,R,K){for(var Q=[],ge=K!==void 0;(D=D[R])&&D.nodeType!==9;)if(D.nodeType===1){if(ge&&w(D).is(K))break;Q.push(D)}return Q},L=function(D,R){for(var K=[];D;D=D.nextSibling)D.nodeType===1&&D!==R&&K.push(D);return K},Y=w.expr.match.needsContext;function N(D,R){return D.nodeName&&D.nodeName.toLowerCase()===R.toLowerCase()}var W=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function j(D,R,K){return y(R)?w.grep(D,function(Q,ge){return!!R.call(Q,ge,Q)!==K}):R.nodeType?w.grep(D,function(Q){return Q===R!==K}):typeof R!="string"?w.grep(D,function(Q){return h.call(R,Q)>-1!==K}):w.filter(R,D,K)}w.filter=function(D,R,K){var Q=R[0];return K&&(D=":not("+D+")"),R.length===1&&Q.nodeType===1?w.find.matchesSelector(Q,D)?[Q]:[]:w.find.matches(D,w.grep(R,function(ge){return ge.nodeType===1}))},w.fn.extend({find:function(D){var R,K,Q=this.length,ge=this;if(typeof D!="string")return this.pushStack(w(D).filter(function(){for(R=0;R1?w.uniqueSort(K):K},filter:function(D){return this.pushStack(j(this,D||[],!1))},not:function(D){return this.pushStack(j(this,D||[],!0))},is:function(D){return!!j(this,typeof D=="string"&&Y.test(D)?w(D):D||[],!1).length}});var ue,Te=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,pe=w.fn.init=function(D,R,K){var Q,ge;if(!D)return this;if(K=K||ue,typeof D=="string")if(D[0]==="<"&&D[D.length-1]===">"&&D.length>=3?Q=[null,D,null]:Q=Te.exec(D),Q&&(Q[1]||!R))if(Q[1]){if(R=R instanceof w?R[0]:R,w.merge(this,w.parseHTML(Q[1],R&&R.nodeType?R.ownerDocument||R:k,!0)),W.test(Q[1])&&w.isPlainObject(R))for(Q in R)y(this[Q])?this[Q](R[Q]):this.attr(Q,R[Q]);return this}else return ge=k.getElementById(Q[2]),ge&&(this[0]=ge,this.length=1),this;else return!R||R.jquery?(R||K).find(D):this.constructor(R).find(D);else{if(D.nodeType)return this[0]=D,this.length=1,this;if(y(D))return K.ready!==void 0?K.ready(D):D(w)}return w.makeArray(D,this)};pe.prototype=w.fn,ue=w(k);var ye=/^(?:parents|prev(?:Until|All))/,de={children:!0,contents:!0,next:!0,prev:!0};w.fn.extend({has:function(D){var R=w(D,this),K=R.length;return this.filter(function(){for(var Q=0;Q-1:K.nodeType===1&&w.find.matchesSelector(K,D))){we.push(K);break}}return this.pushStack(we.length>1?w.uniqueSort(we):we)},index:function(D){return D?typeof D=="string"?h.call(w(D),this[0]):h.call(this,D.jquery?D[0]:D):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(D,R){return this.pushStack(w.uniqueSort(w.merge(this.get(),w(D,R))))},addBack:function(D){return this.add(D==null?this.prevObject:this.prevObject.filter(D))}});function Ee(D,R){for(;(D=D[R])&&D.nodeType!==1;);return D}w.each({parent:function(D){var R=D.parentNode;return R&&R.nodeType!==11?R:null},parents:function(D){return A(D,"parentNode")},parentsUntil:function(D,R,K){return A(D,"parentNode",K)},next:function(D){return Ee(D,"nextSibling")},prev:function(D){return Ee(D,"previousSibling")},nextAll:function(D){return A(D,"nextSibling")},prevAll:function(D){return A(D,"previousSibling")},nextUntil:function(D,R,K){return A(D,"nextSibling",K)},prevUntil:function(D,R,K){return A(D,"previousSibling",K)},siblings:function(D){return L((D.parentNode||{}).firstChild,D)},children:function(D){return L(D.firstChild)},contents:function(D){return D.contentDocument!=null&&a(D.contentDocument)?D.contentDocument:(N(D,"template")&&(D=D.content||D),w.merge([],D.childNodes))}},function(D,R){w.fn[D]=function(K,Q){var ge=w.map(this,R,K);return D.slice(-5)!=="Until"&&(Q=K),Q&&typeof Q=="string"&&(ge=w.filter(Q,ge)),this.length>1&&(de[D]||w.uniqueSort(ge),ye.test(D)&&ge.reverse()),this.pushStack(ge)}});var ie=/[^\x20\t\r\n\f]+/g;function be(D){var R={};return w.each(D.match(ie)||[],function(K,Q){R[Q]=!0}),R}w.Callbacks=function(D){D=typeof D=="string"?be(D):w.extend({},D);var R,K,Q,ge,we=[],Ae=[],Ke=-1,Fe=function(){for(ge=ge||D.once,Q=R=!0;Ae.length;Ke=-1)for(K=Ae.shift();++Ke-1;)we.splice(rt,1),rt<=Ke&&Ke--}),this},has:function(at){return at?w.inArray(at,we)>-1:we.length>0},empty:function(){return we&&(we=[]),this},disable:function(){return ge=Ae=[],we=K="",this},disabled:function(){return!we},lock:function(){return ge=Ae=[],!K&&!R&&(we=K=""),this},locked:function(){return!!ge},fireWith:function(at,gt){return ge||(gt=gt||[],gt=[at,gt.slice?gt.slice():gt],Ae.push(gt),R||Fe()),this},fire:function(){return qe.fireWith(this,arguments),this},fired:function(){return!!Q}};return qe};function Ie(D){return D}function De(D){throw D}function se(D,R,K,Q){var ge;try{D&&y(ge=D.promise)?ge.call(D).done(R).fail(K):D&&y(ge=D.then)?ge.call(D,R,K):R.apply(void 0,[D].slice(Q))}catch(we){K.apply(void 0,[we])}}w.extend({Deferred:function(D){var R=[["notify","progress",w.Callbacks("memory"),w.Callbacks("memory"),2],["resolve","done",w.Callbacks("once memory"),w.Callbacks("once memory"),0,"resolved"],["reject","fail",w.Callbacks("once memory"),w.Callbacks("once memory"),1,"rejected"]],K="pending",Q={state:function(){return K},always:function(){return ge.done(arguments).fail(arguments),this},catch:function(we){return Q.then(null,we)},pipe:function(){var we=arguments;return w.Deferred(function(Ae){w.each(R,function(Ke,Fe){var qe=y(we[Fe[4]])&&we[Fe[4]];ge[Fe[1]](function(){var at=qe&&qe.apply(this,arguments);at&&y(at.promise)?at.promise().progress(Ae.notify).done(Ae.resolve).fail(Ae.reject):Ae[Fe[0]+"With"](this,qe?[at]:arguments)})}),we=null}).promise()},then:function(we,Ae,Ke){var Fe=0;function qe(at,gt,rt,lt){return function(){var en=this,pn=arguments,Xt=function(){var ur,si;if(!(at=Fe&&(rt!==De&&(en=void 0,pn=[ur]),gt.rejectWith(en,pn))}};at?fr():(w.Deferred.getStackHook&&(fr.stackTrace=w.Deferred.getStackHook()),t.setTimeout(fr))}}return w.Deferred(function(at){R[0][3].add(qe(0,at,y(Ke)?Ke:Ie,at.notifyWith)),R[1][3].add(qe(0,at,y(we)?we:Ie)),R[2][3].add(qe(0,at,y(Ae)?Ae:De))}).promise()},promise:function(we){return we!=null?w.extend(we,Q):Q}},ge={};return w.each(R,function(we,Ae){var Ke=Ae[2],Fe=Ae[5];Q[Ae[1]]=Ke.add,Fe&&Ke.add(function(){K=Fe},R[3-we][2].disable,R[3-we][3].disable,R[0][2].lock,R[0][3].lock),Ke.add(Ae[3].fire),ge[Ae[0]]=function(){return ge[Ae[0]+"With"](this===ge?void 0:this,arguments),this},ge[Ae[0]+"With"]=Ke.fireWith}),Q.promise(ge),D&&D.call(ge,ge),ge},when:function(D){var R=arguments.length,K=R,Q=Array(K),ge=s.call(arguments),we=w.Deferred(),Ae=function(Ke){return function(Fe){Q[Ke]=this,ge[Ke]=arguments.length>1?s.call(arguments):Fe,--R||we.resolveWith(Q,ge)}};if(R<=1&&(se(D,we.done(Ae(K)).resolve,we.reject,!R),we.state()==="pending"||y(ge[K]&&ge[K].then)))return we.then();for(;K--;)se(ge[K],Ae(K),we.reject);return we.promise()}});var q=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;w.Deferred.exceptionHook=function(D,R){t.console&&t.console.warn&&D&&q.test(D.name)&&t.console.warn("jQuery.Deferred exception: "+D.message,D.stack,R)},w.readyException=function(D){t.setTimeout(function(){throw D})};var F=w.Deferred();w.fn.ready=function(D){return F.then(D).catch(function(R){w.readyException(R)}),this},w.extend({isReady:!1,readyWait:1,ready:function(D){(D===!0?--w.readyWait:w.isReady)||(w.isReady=!0,!(D!==!0&&--w.readyWait>0)&&F.resolveWith(k,[w]))}}),w.ready.then=F.then;function I(){k.removeEventListener("DOMContentLoaded",I),t.removeEventListener("load",I),w.ready()}k.readyState==="complete"||k.readyState!=="loading"&&!k.documentElement.doScroll?t.setTimeout(w.ready):(k.addEventListener("DOMContentLoaded",I),t.addEventListener("load",I));var J=function(D,R,K,Q,ge,we,Ae){var Ke=0,Fe=D.length,qe=K==null;if(x(K)==="object"){ge=!0;for(Ke in K)J(D,R,Ke,K[Ke],!0,we,Ae)}else if(Q!==void 0&&(ge=!0,y(Q)||(Ae=!0),qe&&(Ae?(R.call(D,Q),R=null):(qe=R,R=function(at,gt,rt){return qe.call(w(at),rt)})),R))for(;Ke1,null,!0)},removeData:function(D){return this.each(function(){Pe.remove(this,D)})}}),w.extend({queue:function(D,R,K){var Q;if(D)return R=(R||"fx")+"queue",Q=Z.get(D,R),K&&(!Q||Array.isArray(K)?Q=Z.access(D,R,w.makeArray(K)):Q.push(K)),Q||[]},dequeue:function(D,R){R=R||"fx";var K=w.queue(D,R),Q=K.length,ge=K.shift(),we=w._queueHooks(D,R),Ae=function(){w.dequeue(D,R)};ge==="inprogress"&&(ge=K.shift(),Q--),ge&&(R==="fx"&&K.unshift("inprogress"),delete we.stop,ge.call(D,Ae,we)),!Q&&we&&we.empty.fire()},_queueHooks:function(D,R){var K=R+"queueHooks";return Z.get(D,K)||Z.access(D,K,{empty:w.Callbacks("once memory").add(function(){Z.remove(D,[R+"queue",K])})})}}),w.fn.extend({queue:function(D,R){var K=2;return typeof D!="string"&&(R=D,D="fx",K--),arguments.length\x20\t\r\n\f]*)/i,St=/^$|^module$|\/(?:java|ecma)script/i;(function(){var D=k.createDocumentFragment(),R=D.appendChild(k.createElement("div")),K=k.createElement("input");K.setAttribute("type","radio"),K.setAttribute("checked","checked"),K.setAttribute("name","t"),R.appendChild(K),g.checkClone=R.cloneNode(!0).cloneNode(!0).lastChild.checked,R.innerHTML="",g.noCloneChecked=!!R.cloneNode(!0).lastChild.defaultValue,R.innerHTML="",g.option=!!R.lastChild})();var At={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};At.tbody=At.tfoot=At.colgroup=At.caption=At.thead,At.th=At.td,g.option||(At.optgroup=At.option=[1,""]);function ht(D,R){var K;return typeof D.getElementsByTagName!="undefined"?K=D.getElementsByTagName(R||"*"):typeof D.querySelectorAll!="undefined"?K=D.querySelectorAll(R||"*"):K=[],R===void 0||R&&N(D,R)?w.merge([D],K):K}function Rt(D,R){for(var K=0,Q=D.length;K-1){ge&&ge.push(we);continue}if(qe=te(we),Ae=ht(gt.appendChild(we),"script"),qe&&Rt(Ae),K)for(at=0;we=Ae[at++];)St.test(we.type||"")&&K.push(we)}return gt}var tn=/^([^.]*)(?:\.(.+)|)/;function Yt(){return!0}function Ht(){return!1}function Jt(D,R){return D===Gt()==(R==="focus")}function Gt(){try{return k.activeElement}catch{}}function ln(D,R,K,Q,ge,we){var Ae,Ke;if(typeof R=="object"){typeof K!="string"&&(Q=Q||K,K=void 0);for(Ke in R)ln(D,Ke,K,Q,R[Ke],we);return D}if(Q==null&&ge==null?(ge=K,Q=K=void 0):ge==null&&(typeof K=="string"?(ge=Q,Q=void 0):(ge=Q,Q=K,K=void 0)),ge===!1)ge=Ht;else if(!ge)return D;return we===1&&(Ae=ge,ge=function(Fe){return w().off(Fe),Ae.apply(this,arguments)},ge.guid=Ae.guid||(Ae.guid=w.guid++)),D.each(function(){w.event.add(this,R,ge,Q,K)})}w.event={global:{},add:function(D,R,K,Q,ge){var we,Ae,Ke,Fe,qe,at,gt,rt,lt,en,pn,Xt=Z.get(D);if(!!H(D))for(K.handler&&(we=K,K=we.handler,ge=we.selector),ge&&w.find.matchesSelector(G,ge),K.guid||(K.guid=w.guid++),(Fe=Xt.events)||(Fe=Xt.events=Object.create(null)),(Ae=Xt.handle)||(Ae=Xt.handle=function(fr){return typeof w!="undefined"&&w.event.triggered!==fr.type?w.event.dispatch.apply(D,arguments):void 0}),R=(R||"").match(ie)||[""],qe=R.length;qe--;)Ke=tn.exec(R[qe])||[],lt=pn=Ke[1],en=(Ke[2]||"").split(".").sort(),lt&&(gt=w.event.special[lt]||{},lt=(ge?gt.delegateType:gt.bindType)||lt,gt=w.event.special[lt]||{},at=w.extend({type:lt,origType:pn,data:Q,handler:K,guid:K.guid,selector:ge,needsContext:ge&&w.expr.match.needsContext.test(ge),namespace:en.join(".")},we),(rt=Fe[lt])||(rt=Fe[lt]=[],rt.delegateCount=0,(!gt.setup||gt.setup.call(D,Q,en,Ae)===!1)&&D.addEventListener&&D.addEventListener(lt,Ae)),gt.add&&(gt.add.call(D,at),at.handler.guid||(at.handler.guid=K.guid)),ge?rt.splice(rt.delegateCount++,0,at):rt.push(at),w.event.global[lt]=!0)},remove:function(D,R,K,Q,ge){var we,Ae,Ke,Fe,qe,at,gt,rt,lt,en,pn,Xt=Z.hasData(D)&&Z.get(D);if(!(!Xt||!(Fe=Xt.events))){for(R=(R||"").match(ie)||[""],qe=R.length;qe--;){if(Ke=tn.exec(R[qe])||[],lt=pn=Ke[1],en=(Ke[2]||"").split(".").sort(),!lt){for(lt in Fe)w.event.remove(D,lt+R[qe],K,Q,!0);continue}for(gt=w.event.special[lt]||{},lt=(Q?gt.delegateType:gt.bindType)||lt,rt=Fe[lt]||[],Ke=Ke[2]&&new RegExp("(^|\\.)"+en.join("\\.(?:.*\\.|)")+"(\\.|$)"),Ae=we=rt.length;we--;)at=rt[we],(ge||pn===at.origType)&&(!K||K.guid===at.guid)&&(!Ke||Ke.test(at.namespace))&&(!Q||Q===at.selector||Q==="**"&&at.selector)&&(rt.splice(we,1),at.selector&&rt.delegateCount--,gt.remove&>.remove.call(D,at));Ae&&!rt.length&&((!gt.teardown||gt.teardown.call(D,en,Xt.handle)===!1)&&w.removeEvent(D,lt,Xt.handle),delete Fe[lt])}w.isEmptyObject(Fe)&&Z.remove(D,"handle events")}},dispatch:function(D){var R,K,Q,ge,we,Ae,Ke=new Array(arguments.length),Fe=w.event.fix(D),qe=(Z.get(this,"events")||Object.create(null))[Fe.type]||[],at=w.event.special[Fe.type]||{};for(Ke[0]=Fe,R=1;R=1)){for(;qe!==this;qe=qe.parentNode||this)if(qe.nodeType===1&&!(D.type==="click"&&qe.disabled===!0)){for(we=[],Ae={},K=0;K-1:w.find(ge,this,null,[qe]).length),Ae[ge]&&we.push(Q);we.length&&Ke.push({elem:qe,handlers:we})}}return qe=this,Fe\s*$/g;function Ce(D,R){return N(D,"table")&&N(R.nodeType!==11?R:R.firstChild,"tr")&&w(D).children("tbody")[0]||D}function Le(D){return D.type=(D.getAttribute("type")!==null)+"/"+D.type,D}function ze(D){return(D.type||"").slice(0,5)==="true/"?D.type=D.type.slice(5):D.removeAttribute("type"),D}function He(D,R){var K,Q,ge,we,Ae,Ke,Fe;if(R.nodeType===1){if(Z.hasData(D)&&(we=Z.get(D),Fe=we.events,Fe)){Z.remove(R,"handle events");for(ge in Fe)for(K=0,Q=Fe[ge].length;K1&&typeof lt=="string"&&!g.checkClone&&st.test(lt))return D.each(function(pn){var Xt=D.eq(pn);en&&(R[0]=lt.call(this,pn,Xt.html())),nt(Xt,R,K,Q)});if(gt&&(ge=cn(R,D[0].ownerDocument,!1,D,Q),we=ge.firstChild,ge.childNodes.length===1&&(ge=we),we||Q)){for(Ae=w.map(ht(ge,"script"),Le),Ke=Ae.length;at0&&Rt(Ae,!Fe&&ht(D,"script")),Ke},cleanData:function(D){for(var R,K,Q,ge=w.event.special,we=0;(K=D[we])!==void 0;we++)if(H(K)){if(R=K[Z.expando]){if(R.events)for(Q in R.events)ge[Q]?w.event.remove(K,Q):w.removeEvent(K,Q,R.handle);K[Z.expando]=void 0}K[Pe.expando]&&(K[Pe.expando]=void 0)}}}),w.fn.extend({detach:function(D){return pt(this,D,!0)},remove:function(D){return pt(this,D)},text:function(D){return J(this,function(R){return R===void 0?w.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=R)})},null,D,arguments.length)},append:function(){return nt(this,arguments,function(D){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var R=Ce(this,D);R.appendChild(D)}})},prepend:function(){return nt(this,arguments,function(D){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var R=Ce(this,D);R.insertBefore(D,R.firstChild)}})},before:function(){return nt(this,arguments,function(D){this.parentNode&&this.parentNode.insertBefore(D,this)})},after:function(){return nt(this,arguments,function(D){this.parentNode&&this.parentNode.insertBefore(D,this.nextSibling)})},empty:function(){for(var D,R=0;(D=this[R])!=null;R++)D.nodeType===1&&(w.cleanData(ht(D,!1)),D.textContent="");return this},clone:function(D,R){return D=D==null?!1:D,R=R==null?D:R,this.map(function(){return w.clone(this,D,R)})},html:function(D){return J(this,function(R){var K=this[0]||{},Q=0,ge=this.length;if(R===void 0&&K.nodeType===1)return K.innerHTML;if(typeof R=="string"&&!it.test(R)&&!At[(Tt.exec(R)||["",""])[1].toLowerCase()]){R=w.htmlPrefilter(R);try{for(;Q=0&&(Fe+=Math.max(0,Math.ceil(D["offset"+R[0].toUpperCase()+R.slice(1)]-we-Fe-Ke-.5))||0),Fe}function yi(D,R,K){var Q=Bt(D),ge=!g.boxSizingReliable()||K,we=ge&&w.css(D,"boxSizing",!1,Q)==="border-box",Ae=we,Ke=qt(D,R,Q),Fe="offset"+R[0].toUpperCase()+R.slice(1);if(bt.test(Ke)){if(!K)return Ke;Ke="auto"}return(!g.boxSizingReliable()&&we||!g.reliableTrDimensions()&&N(D,"tr")||Ke==="auto"||!parseFloat(Ke)&&w.css(D,"display",!1,Q)==="inline")&&D.getClientRects().length&&(we=w.css(D,"boxSizing",!1,Q)==="border-box",Ae=Fe in D,Ae&&(Ke=D[Fe])),Ke=parseFloat(Ke)||0,Ke+ii(D,R,K||(we?"border":"content"),Ae,Q,Ke)+"px"}w.extend({cssHooks:{opacity:{get:function(D,R){if(R){var K=qt(D,"opacity");return K===""?"1":K}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(D,R,K,Q){if(!(!D||D.nodeType===3||D.nodeType===8||!D.style)){var ge,we,Ae,Ke=X(R),Fe=Ot.test(R),qe=D.style;if(Fe||(R=dr(Ke)),Ae=w.cssHooks[R]||w.cssHooks[Ke],K!==void 0){if(we=typeof K,we==="string"&&(ge=B.exec(K))&&ge[1]&&(K=ce(D,R,ge),we="number"),K==null||K!==K)return;we==="number"&&!Fe&&(K+=ge&&ge[3]||(w.cssNumber[Ke]?"":"px")),!g.clearCloneStyle&&K===""&&R.indexOf("background")===0&&(qe[R]="inherit"),(!Ae||!("set"in Ae)||(K=Ae.set(D,K,Q))!==void 0)&&(Fe?qe.setProperty(R,K):qe[R]=K)}else return Ae&&"get"in Ae&&(ge=Ae.get(D,!1,Q))!==void 0?ge:qe[R]}},css:function(D,R,K,Q){var ge,we,Ae,Ke=X(R),Fe=Ot.test(R);return Fe||(R=dr(Ke)),Ae=w.cssHooks[R]||w.cssHooks[Ke],Ae&&"get"in Ae&&(ge=Ae.get(D,!0,K)),ge===void 0&&(ge=qt(D,R,Q)),ge==="normal"&&R in gi&&(ge=gi[R]),K===""||K?(we=parseFloat(ge),K===!0||isFinite(we)?we||0:ge):ge}}),w.each(["height","width"],function(D,R){w.cssHooks[R]={get:function(K,Q,ge){if(Q)return wr.test(w.css(K,"display"))&&(!K.getClientRects().length||!K.getBoundingClientRect().width)?Ut(K,Cr,function(){return yi(K,R,ge)}):yi(K,R,ge)},set:function(K,Q,ge){var we,Ae=Bt(K),Ke=!g.scrollboxSize()&&Ae.position==="absolute",Fe=Ke||ge,qe=Fe&&w.css(K,"boxSizing",!1,Ae)==="border-box",at=ge?ii(K,R,ge,qe,Ae):0;return qe&&Ke&&(at-=Math.ceil(K["offset"+R[0].toUpperCase()+R.slice(1)]-parseFloat(Ae[R])-ii(K,R,"border",!1,Ae)-.5)),at&&(we=B.exec(Q))&&(we[3]||"px")!=="px"&&(K.style[R]=Q,Q=w.css(K,R)),Rr(K,Q,at)}}}),w.cssHooks.marginLeft=Dn(g.reliableMarginLeft,function(D,R){if(R)return(parseFloat(qt(D,"marginLeft"))||D.getBoundingClientRect().left-Ut(D,{marginLeft:0},function(){return D.getBoundingClientRect().left}))+"px"}),w.each({margin:"",padding:"",border:"Width"},function(D,R){w.cssHooks[D+R]={expand:function(K){for(var Q=0,ge={},we=typeof K=="string"?K.split(" "):[K];Q<4;Q++)ge[D+V[Q]+R]=we[Q]||we[Q-2]||we[0];return ge}},D!=="margin"&&(w.cssHooks[D+R].set=Rr)}),w.fn.extend({css:function(D,R){return J(this,function(K,Q,ge){var we,Ae,Ke={},Fe=0;if(Array.isArray(Q)){for(we=Bt(K),Ae=Q.length;Fe1)}});function rr(D,R,K,Q,ge){return new rr.prototype.init(D,R,K,Q,ge)}w.Tween=rr,rr.prototype={constructor:rr,init:function(D,R,K,Q,ge,we){this.elem=D,this.prop=K,this.easing=ge||w.easing._default,this.options=R,this.start=this.now=this.cur(),this.end=Q,this.unit=we||(w.cssNumber[K]?"":"px")},cur:function(){var D=rr.propHooks[this.prop];return D&&D.get?D.get(this):rr.propHooks._default.get(this)},run:function(D){var R,K=rr.propHooks[this.prop];return this.options.duration?this.pos=R=w.easing[this.easing](D,this.options.duration*D,0,1,this.options.duration):this.pos=R=D,this.now=(this.end-this.start)*R+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),K&&K.set?K.set(this):rr.propHooks._default.set(this),this}},rr.prototype.init.prototype=rr.prototype,rr.propHooks={_default:{get:function(D){var R;return D.elem.nodeType!==1||D.elem[D.prop]!=null&&D.elem.style[D.prop]==null?D.elem[D.prop]:(R=w.css(D.elem,D.prop,""),!R||R==="auto"?0:R)},set:function(D){w.fx.step[D.prop]?w.fx.step[D.prop](D):D.elem.nodeType===1&&(w.cssHooks[D.prop]||D.elem.style[dr(D.prop)]!=null)?w.style(D.elem,D.prop,D.now+D.unit):D.elem[D.prop]=D.now}}},rr.propHooks.scrollTop=rr.propHooks.scrollLeft={set:function(D){D.elem.nodeType&&D.elem.parentNode&&(D.elem[D.prop]=D.now)}},w.easing={linear:function(D){return D},swing:function(D){return .5-Math.cos(D*Math.PI)/2},_default:"swing"},w.fx=rr.prototype.init,w.fx.step={};var xr,ai,bi=/^(?:toggle|show|hide)$/,Me=/queueHooks$/;function We(){ai&&(k.hidden===!1&&t.requestAnimationFrame?t.requestAnimationFrame(We):t.setTimeout(We,w.fx.interval),w.fx.tick())}function Ne(){return t.setTimeout(function(){xr=void 0}),xr=Date.now()}function Xe(D,R){var K,Q=0,ge={height:D};for(R=R?1:0;Q<4;Q+=2-R)K=V[Q],ge["margin"+K]=ge["padding"+K]=D;return R&&(ge.opacity=ge.width=D),ge}function Qe(D,R,K){for(var Q,ge=(mt.tweeners[R]||[]).concat(mt.tweeners["*"]),we=0,Ae=ge.length;we1)},removeAttr:function(D){return this.each(function(){w.removeAttr(this,D)})}}),w.extend({attr:function(D,R,K){var Q,ge,we=D.nodeType;if(!(we===3||we===8||we===2)){if(typeof D.getAttribute=="undefined")return w.prop(D,R,K);if((we!==1||!w.isXMLDoc(D))&&(ge=w.attrHooks[R.toLowerCase()]||(w.expr.match.bool.test(R)?Dt:void 0)),K!==void 0){if(K===null){w.removeAttr(D,R);return}return ge&&"set"in ge&&(Q=ge.set(D,K,R))!==void 0?Q:(D.setAttribute(R,K+""),K)}return ge&&"get"in ge&&(Q=ge.get(D,R))!==null?Q:(Q=w.find.attr(D,R),Q==null?void 0:Q)}},attrHooks:{type:{set:function(D,R){if(!g.radioValue&&R==="radio"&&N(D,"input")){var K=D.value;return D.setAttribute("type",R),K&&(D.value=K),R}}}},removeAttr:function(D,R){var K,Q=0,ge=R&&R.match(ie);if(ge&&D.nodeType===1)for(;K=ge[Q++];)D.removeAttribute(K)}}),Dt={set:function(D,R,K){return R===!1?w.removeAttr(D,K):D.setAttribute(K,K),K}},w.each(w.expr.match.bool.source.match(/\w+/g),function(D,R){var K=kt[R]||w.find.attr;kt[R]=function(Q,ge,we){var Ae,Ke,Fe=ge.toLowerCase();return we||(Ke=kt[Fe],kt[Fe]=Ae,Ae=K(Q,ge,we)!=null?Fe:null,kt[Fe]=Ke),Ae}});var xt=/^(?:input|select|textarea|button)$/i,Vt=/^(?:a|area)$/i;w.fn.extend({prop:function(D,R){return J(this,w.prop,D,R,arguments.length>1)},removeProp:function(D){return this.each(function(){delete this[w.propFix[D]||D]})}}),w.extend({prop:function(D,R,K){var Q,ge,we=D.nodeType;if(!(we===3||we===8||we===2))return(we!==1||!w.isXMLDoc(D))&&(R=w.propFix[R]||R,ge=w.propHooks[R]),K!==void 0?ge&&"set"in ge&&(Q=ge.set(D,K,R))!==void 0?Q:D[R]=K:ge&&"get"in ge&&(Q=ge.get(D,R))!==null?Q:D[R]},propHooks:{tabIndex:{get:function(D){var R=w.find.attr(D,"tabindex");return R?parseInt(R,10):xt.test(D.nodeName)||Vt.test(D.nodeName)&&D.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.optSelected||(w.propHooks.selected={get:function(D){var R=D.parentNode;return R&&R.parentNode&&R.parentNode.selectedIndex,null},set:function(D){var R=D.parentNode;R&&(R.selectedIndex,R.parentNode&&R.parentNode.selectedIndex)}}),w.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){w.propFix[this.toLowerCase()]=this});function dn(D){var R=D.match(ie)||[];return R.join(" ")}function _n(D){return D.getAttribute&&D.getAttribute("class")||""}function Et(D){return Array.isArray(D)?D:typeof D=="string"?D.match(ie)||[]:[]}w.fn.extend({addClass:function(D){var R,K,Q,ge,we,Ae;return y(D)?this.each(function(Ke){w(this).addClass(D.call(this,Ke,_n(this)))}):(R=Et(D),R.length?this.each(function(){if(Q=_n(this),K=this.nodeType===1&&" "+dn(Q)+" ",K){for(we=0;we-1;)K=K.replace(" "+ge+" "," ");Ae=dn(K),Q!==Ae&&this.setAttribute("class",Ae)}}):this):this.attr("class","")},toggleClass:function(D,R){var K,Q,ge,we,Ae=typeof D,Ke=Ae==="string"||Array.isArray(D);return y(D)?this.each(function(Fe){w(this).toggleClass(D.call(this,Fe,_n(this),R),R)}):typeof R=="boolean"&&Ke?R?this.addClass(D):this.removeClass(D):(K=Et(D),this.each(function(){if(Ke)for(we=w(this),ge=0;ge-1)return!0;return!1}});var Wn=/\r/g;w.fn.extend({val:function(D){var R,K,Q,ge=this[0];return arguments.length?(Q=y(D),this.each(function(we){var Ae;this.nodeType===1&&(Q?Ae=D.call(this,we,w(this).val()):Ae=D,Ae==null?Ae="":typeof Ae=="number"?Ae+="":Array.isArray(Ae)&&(Ae=w.map(Ae,function(Ke){return Ke==null?"":Ke+""})),R=w.valHooks[this.type]||w.valHooks[this.nodeName.toLowerCase()],(!R||!("set"in R)||R.set(this,Ae,"value")===void 0)&&(this.value=Ae))})):ge?(R=w.valHooks[ge.type]||w.valHooks[ge.nodeName.toLowerCase()],R&&"get"in R&&(K=R.get(ge,"value"))!==void 0?K:(K=ge.value,typeof K=="string"?K.replace(Wn,""):K==null?"":K)):void 0}}),w.extend({valHooks:{option:{get:function(D){var R=w.find.attr(D,"value");return R!=null?R:dn(w.text(D))}},select:{get:function(D){var R,K,Q,ge=D.options,we=D.selectedIndex,Ae=D.type==="select-one",Ke=Ae?null:[],Fe=Ae?we+1:ge.length;for(we<0?Q=Fe:Q=Ae?we:0;Q-1)&&(K=!0);return K||(D.selectedIndex=-1),we}}}}),w.each(["radio","checkbox"],function(){w.valHooks[this]={set:function(D,R){if(Array.isArray(R))return D.checked=w.inArray(w(D).val(),R)>-1}},g.checkOn||(w.valHooks[this].get=function(D){return D.getAttribute("value")===null?"on":D.value})}),g.focusin="onfocusin"in t;var yn=/^(?:focusinfocus|focusoutblur)$/,Qn=function(D){D.stopPropagation()};w.extend(w.event,{trigger:function(D,R,K,Q){var ge,we,Ae,Ke,Fe,qe,at,gt,rt=[K||k],lt=d.call(D,"type")?D.type:D,en=d.call(D,"namespace")?D.namespace.split("."):[];if(we=gt=Ae=K=K||k,!(K.nodeType===3||K.nodeType===8)&&!yn.test(lt+w.event.triggered)&&(lt.indexOf(".")>-1&&(en=lt.split("."),lt=en.shift(),en.sort()),Fe=lt.indexOf(":")<0&&"on"+lt,D=D[w.expando]?D:new w.Event(lt,typeof D=="object"&&D),D.isTrigger=Q?2:3,D.namespace=en.join("."),D.rnamespace=D.namespace?new RegExp("(^|\\.)"+en.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,D.result=void 0,D.target||(D.target=K),R=R==null?[D]:w.makeArray(R,[D]),at=w.event.special[lt]||{},!(!Q&&at.trigger&&at.trigger.apply(K,R)===!1))){if(!Q&&!at.noBubble&&!b(K)){for(Ke=at.delegateType||lt,yn.test(Ke+lt)||(we=we.parentNode);we;we=we.parentNode)rt.push(we),Ae=we;Ae===(K.ownerDocument||k)&&rt.push(Ae.defaultView||Ae.parentWindow||t)}for(ge=0;(we=rt[ge++])&&!D.isPropagationStopped();)gt=we,D.type=ge>1?Ke:at.bindType||lt,qe=(Z.get(we,"events")||Object.create(null))[D.type]&&Z.get(we,"handle"),qe&&qe.apply(we,R),qe=Fe&&we[Fe],qe&&qe.apply&&H(we)&&(D.result=qe.apply(we,R),D.result===!1&&D.preventDefault());return D.type=lt,!Q&&!D.isDefaultPrevented()&&(!at._default||at._default.apply(rt.pop(),R)===!1)&&H(K)&&Fe&&y(K[lt])&&!b(K)&&(Ae=K[Fe],Ae&&(K[Fe]=null),w.event.triggered=lt,D.isPropagationStopped()&>.addEventListener(lt,Qn),K[lt](),D.isPropagationStopped()&>.removeEventListener(lt,Qn),w.event.triggered=void 0,Ae&&(K[Fe]=Ae)),D.result}},simulate:function(D,R,K){var Q=w.extend(new w.Event,K,{type:D,isSimulated:!0});w.event.trigger(Q,null,R)}}),w.fn.extend({trigger:function(D,R){return this.each(function(){w.event.trigger(D,R,this)})},triggerHandler:function(D,R){var K=this[0];if(K)return w.event.trigger(D,R,K,!0)}}),g.focusin||w.each({focus:"focusin",blur:"focusout"},function(D,R){var K=function(Q){w.event.simulate(R,Q.target,w.event.fix(Q))};w.event.special[R]={setup:function(){var Q=this.ownerDocument||this.document||this,ge=Z.access(Q,R);ge||Q.addEventListener(D,K,!0),Z.access(Q,R,(ge||0)+1)},teardown:function(){var Q=this.ownerDocument||this.document||this,ge=Z.access(Q,R)-1;ge?Z.access(Q,R,ge):(Q.removeEventListener(D,K,!0),Z.remove(Q,R))}}});var Gr=t.location,Or={guid:Date.now()},Sr=/\?/;w.parseXML=function(D){var R,K;if(!D||typeof D!="string")return null;try{R=new t.DOMParser().parseFromString(D,"text/xml")}catch{}return K=R&&R.getElementsByTagName("parsererror")[0],(!R||K)&&w.error("Invalid XML: "+(K?w.map(K.childNodes,function(Q){return Q.textContent}).join(` `):D)),R};var Ji=/\[\]$/,_t=/\r?\n/g,ls=/^(?:submit|button|image|reset|file)$/i,Wu=/^(?:input|select|textarea|keygen)/i;function us(D,R,K,Q){var ge;if(Array.isArray(R))w.each(R,function(we,Ae){K||Ji.test(D)?Q(D,Ae):us(D+"["+(typeof Ae=="object"&&Ae!=null?we:"")+"]",Ae,K,Q)});else if(!K&&x(R)==="object")for(ge in R)us(D+"["+ge+"]",R[ge],K,Q);else Q(D,R)}w.param=function(D,R){var K,Q=[],ge=function(we,Ae){var Ke=y(Ae)?Ae():Ae;Q[Q.length]=encodeURIComponent(we)+"="+encodeURIComponent(Ke==null?"":Ke)};if(D==null)return"";if(Array.isArray(D)||D.jquery&&!w.isPlainObject(D))w.each(D,function(){ge(this.name,this.value)});else for(K in D)us(K,D[K],R,ge);return Q.join("&")},w.fn.extend({serialize:function(){return w.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var D=w.prop(this,"elements");return D?w.makeArray(D):this}).filter(function(){var D=this.type;return this.name&&!w(this).is(":disabled")&&Wu.test(this.nodeName)&&!ls.test(D)&&(this.checked||!yt.test(D))}).map(function(D,R){var K=w(this).val();return K==null?null:Array.isArray(K)?w.map(K,function(Q){return{name:R.name,value:Q.replace(_t,`\r `)}}):{name:R.name,value:K.replace(_t,`\r -`)}}).get()}});var Om=/%20/g,Pm=/#.*$/,Gd=/([?&])_=[^&]*/,El=/^(.*?):[ \t]*([^\r\n]*)$/mg,Yd=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Xd=/^(?:GET|HEAD)$/,Tm=/^\/\//,Jd={},Ku={},Hu="*/".concat("*"),Bs=k.createElement("a");Bs.href=Gr.href;function Gu(D){return function(R,K){typeof R!="string"&&(K=R,R="*");var Q,ge=0,we=R.toLowerCase().match(ie)||[];if(y(K))for(;Q=we[ge++];)Q[0]==="+"?(Q=Q.slice(1)||"*",(D[Q]=D[Q]||[]).unshift(K)):(D[Q]=D[Q]||[]).push(K)}}function Yu(D,R,K,Q){var ge={},we=D===Ku;function Ae(Ke){var Fe;return ge[Ke]=!0,w.each(D[Ke]||[],function(qe,at){var gt=at(R,K,Q);if(typeof gt=="string"&&!we&&!ge[gt])return R.dataTypes.unshift(gt),Ae(gt),!1;if(we)return!(Fe=gt)}),Fe}return Ae(R.dataTypes[0])||!ge["*"]&&Ae("*")}function Xu(D,R){var K,Q,ge=w.ajaxSettings.flatOptions||{};for(K in R)R[K]!==void 0&&((ge[K]?D:Q||(Q={}))[K]=R[K]);return Q&&w.extend(!0,D,Q),D}function Dl(D,R,K){for(var Q,ge,we,Ae,Ke=D.contents,Fe=D.dataTypes;Fe[0]==="*";)Fe.shift(),Q===void 0&&(Q=D.mimeType||R.getResponseHeader("Content-Type"));if(Q){for(ge in Ke)if(Ke[ge]&&Ke[ge].test(Q)){Fe.unshift(ge);break}}if(Fe[0]in K)we=Fe[0];else{for(ge in K){if(!Fe[0]||D.converters[ge+" "+Fe[0]]){we=ge;break}Ae||(Ae=ge)}we=we||Ae}if(we)return we!==Fe[0]&&Fe.unshift(we),K[we]}function Am(D,R,K,Q){var ge,we,Ae,Ke,Fe,qe={},at=D.dataTypes.slice();if(at[1])for(Ae in D.converters)qe[Ae.toLowerCase()]=D.converters[Ae];for(we=at.shift();we;)if(D.responseFields[we]&&(K[D.responseFields[we]]=R),!Fe&&Q&&D.dataFilter&&(R=D.dataFilter(R,D.dataType)),Fe=we,we=at.shift(),we){if(we==="*")we=Fe;else if(Fe!=="*"&&Fe!==we){if(Ae=qe[Fe+" "+we]||qe["* "+we],!Ae){for(ge in qe)if(Ke=ge.split(" "),Ke[1]===we&&(Ae=qe[Fe+" "+Ke[0]]||qe["* "+Ke[0]],Ae)){Ae===!0?Ae=qe[ge]:qe[ge]!==!0&&(we=Ke[0],at.unshift(Ke[1]));break}}if(Ae!==!0)if(Ae&&D.throws)R=Ae(R);else try{R=Ae(R)}catch(gt){return{state:"parsererror",error:Ae?gt:"No conversion from "+Fe+" to "+we}}}}return{state:"success",data:R}}w.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Gr.href,type:"GET",isLocal:Yd.test(Gr.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Hu,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":w.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(D,R){return R?Xu(Xu(D,w.ajaxSettings),R):Xu(w.ajaxSettings,D)},ajaxPrefilter:Gu(Jd),ajaxTransport:Gu(Ku),ajax:function(D,R){typeof D=="object"&&(R=D,D=void 0),R=R||{};var K,Q,ge,we,Ae,Ke,Fe,qe,at,gt,rt=w.ajaxSetup({},R),lt=rt.context||rt,en=rt.context&&(lt.nodeType||lt.jquery)?w(lt):w.event,pn=w.Deferred(),Xt=w.Callbacks("once memory"),fr=rt.statusCode||{},ur={},si={},Ln="canceled",vn={readyState:0,getResponseHeader:function(On){var Yn;if(Fe){if(!we)for(we={};Yn=El.exec(ge);)we[Yn[1].toLowerCase()+" "]=(we[Yn[1].toLowerCase()+" "]||[]).concat(Yn[2]);Yn=we[On.toLowerCase()+" "]}return Yn==null?null:Yn.join(", ")},getAllResponseHeaders:function(){return Fe?ge:null},setRequestHeader:function(On,Yn){return Fe==null&&(On=si[On.toLowerCase()]=si[On.toLowerCase()]||On,ur[On]=Yn),this},overrideMimeType:function(On){return Fe==null&&(rt.mimeType=On),this},statusCode:function(On){var Yn;if(On)if(Fe)vn.always(On[vn.status]);else for(Yn in On)fr[Yn]=[fr[Yn],On[Yn]];return this},abort:function(On){var Yn=On||Ln;return K&&K.abort(Yn),Lr(0,Yn),this}};if(pn.promise(vn),rt.url=((D||rt.url||Gr.href)+"").replace(Tm,Gr.protocol+"//"),rt.type=R.method||R.type||rt.method||rt.type,rt.dataTypes=(rt.dataType||"*").toLowerCase().match(ie)||[""],rt.crossDomain==null){Ke=k.createElement("a");try{Ke.href=rt.url,Ke.href=Ke.href,rt.crossDomain=Bs.protocol+"//"+Bs.host!=Ke.protocol+"//"+Ke.host}catch{rt.crossDomain=!0}}if(rt.data&&rt.processData&&typeof rt.data!="string"&&(rt.data=w.param(rt.data,rt.traditional)),Yu(Jd,rt,R,vn),Fe)return vn;qe=w.event&&rt.global,qe&&w.active++===0&&w.event.trigger("ajaxStart"),rt.type=rt.type.toUpperCase(),rt.hasContent=!Xd.test(rt.type),Q=rt.url.replace(Pm,""),rt.hasContent?rt.data&&rt.processData&&(rt.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(rt.data=rt.data.replace(Om,"+")):(gt=rt.url.slice(Q.length),rt.data&&(rt.processData||typeof rt.data=="string")&&(Q+=(Sr.test(Q)?"&":"?")+rt.data,delete rt.data),rt.cache===!1&&(Q=Q.replace(Gd,"$1"),gt=(Sr.test(Q)?"&":"?")+"_="+Or.guid+++gt),rt.url=Q+gt),rt.ifModified&&(w.lastModified[Q]&&vn.setRequestHeader("If-Modified-Since",w.lastModified[Q]),w.etag[Q]&&vn.setRequestHeader("If-None-Match",w.etag[Q])),(rt.data&&rt.hasContent&&rt.contentType!==!1||R.contentType)&&vn.setRequestHeader("Content-Type",rt.contentType),vn.setRequestHeader("Accept",rt.dataTypes[0]&&rt.accepts[rt.dataTypes[0]]?rt.accepts[rt.dataTypes[0]]+(rt.dataTypes[0]!=="*"?", "+Hu+"; q=0.01":""):rt.accepts["*"]);for(at in rt.headers)vn.setRequestHeader(at,rt.headers[at]);if(rt.beforeSend&&(rt.beforeSend.call(lt,vn,rt)===!1||Fe))return vn.abort();if(Ln="abort",Xt.add(rt.complete),vn.done(rt.success),vn.fail(rt.error),K=Yu(Ku,rt,R,vn),!K)Lr(-1,"No Transport");else{if(vn.readyState=1,qe&&en.trigger("ajaxSend",[vn,rt]),Fe)return vn;rt.async&&rt.timeout>0&&(Ae=t.setTimeout(function(){vn.abort("timeout")},rt.timeout));try{Fe=!1,K.send(ur,Lr)}catch(On){if(Fe)throw On;Lr(-1,On)}}function Lr(On,Yn,zs,Pl){var oi,cs,Ea,kr,sa,li=Yn;Fe||(Fe=!0,Ae&&t.clearTimeout(Ae),K=void 0,ge=Pl||"",vn.readyState=On>0?4:0,oi=On>=200&&On<300||On===304,zs&&(kr=Dl(rt,vn,zs)),!oi&&w.inArray("script",rt.dataTypes)>-1&&w.inArray("json",rt.dataTypes)<0&&(rt.converters["text script"]=function(){}),kr=Am(rt,kr,vn,oi),oi?(rt.ifModified&&(sa=vn.getResponseHeader("Last-Modified"),sa&&(w.lastModified[Q]=sa),sa=vn.getResponseHeader("etag"),sa&&(w.etag[Q]=sa)),On===204||rt.type==="HEAD"?li="nocontent":On===304?li="notmodified":(li=kr.state,cs=kr.data,Ea=kr.error,oi=!Ea)):(Ea=li,(On||!li)&&(li="error",On<0&&(On=0))),vn.status=On,vn.statusText=(Yn||li)+"",oi?pn.resolveWith(lt,[cs,li,vn]):pn.rejectWith(lt,[vn,li,Ea]),vn.statusCode(fr),fr=void 0,qe&&en.trigger(oi?"ajaxSuccess":"ajaxError",[vn,rt,oi?cs:Ea]),Xt.fireWith(lt,[vn,li]),qe&&(en.trigger("ajaxComplete",[vn,rt]),--w.active||w.event.trigger("ajaxStop")))}return vn},getJSON:function(D,R,K){return w.get(D,R,K,"json")},getScript:function(D,R){return w.get(D,void 0,R,"script")}}),w.each(["get","post"],function(D,R){w[R]=function(K,Q,ge,we){return y(Q)&&(we=we||ge,ge=Q,Q=void 0),w.ajax(w.extend({url:K,type:R,dataType:we,data:Q,success:ge},w.isPlainObject(K)&&K))}}),w.ajaxPrefilter(function(D){var R;for(R in D.headers)R.toLowerCase()==="content-type"&&(D.contentType=D.headers[R]||"")}),w._evalUrl=function(D,R,K){return w.ajax({url:D,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(Q){w.globalEval(Q,R,K)}})},w.fn.extend({wrapAll:function(D){var R;return this[0]&&(y(D)&&(D=D.call(this[0])),R=w(D,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&R.insertBefore(this[0]),R.map(function(){for(var K=this;K.firstElementChild;)K=K.firstElementChild;return K}).append(this)),this},wrapInner:function(D){return y(D)?this.each(function(R){w(this).wrapInner(D.call(this,R))}):this.each(function(){var R=w(this),K=R.contents();K.length?K.wrapAll(D):R.append(D)})},wrap:function(D){var R=y(D);return this.each(function(K){w(this).wrapAll(R?D.call(this,K):D)})},unwrap:function(D){return this.parent(D).not("body").each(function(){w(this).replaceWith(this.childNodes)}),this}}),w.expr.pseudos.hidden=function(D){return!w.expr.pseudos.visible(D)},w.expr.pseudos.visible=function(D){return!!(D.offsetWidth||D.offsetHeight||D.getClientRects().length)},w.ajaxSettings.xhr=function(){try{return new t.XMLHttpRequest}catch{}};var Mm={0:200,1223:204},Fs=w.ajaxSettings.xhr();g.cors=!!Fs&&"withCredentials"in Fs,g.ajax=Fs=!!Fs,w.ajaxTransport(function(D){var R,K;if(g.cors||Fs&&!D.crossDomain)return{send:function(Q,ge){var we,Ae=D.xhr();if(Ae.open(D.type,D.url,D.async,D.username,D.password),D.xhrFields)for(we in D.xhrFields)Ae[we]=D.xhrFields[we];D.mimeType&&Ae.overrideMimeType&&Ae.overrideMimeType(D.mimeType),!D.crossDomain&&!Q["X-Requested-With"]&&(Q["X-Requested-With"]="XMLHttpRequest");for(we in Q)Ae.setRequestHeader(we,Q[we]);R=function(Ke){return function(){R&&(R=K=Ae.onload=Ae.onerror=Ae.onabort=Ae.ontimeout=Ae.onreadystatechange=null,Ke==="abort"?Ae.abort():Ke==="error"?typeof Ae.status!="number"?ge(0,"error"):ge(Ae.status,Ae.statusText):ge(Mm[Ae.status]||Ae.status,Ae.statusText,(Ae.responseType||"text")!=="text"||typeof Ae.responseText!="string"?{binary:Ae.response}:{text:Ae.responseText},Ae.getAllResponseHeaders()))}},Ae.onload=R(),K=Ae.onerror=Ae.ontimeout=R("error"),Ae.onabort!==void 0?Ae.onabort=K:Ae.onreadystatechange=function(){Ae.readyState===4&&t.setTimeout(function(){R&&K()})},R=R("abort");try{Ae.send(D.hasContent&&D.data||null)}catch(Ke){if(R)throw Ke}},abort:function(){R&&R()}}}),w.ajaxPrefilter(function(D){D.crossDomain&&(D.contents.script=!1)}),w.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(D){return w.globalEval(D),D}}}),w.ajaxPrefilter("script",function(D){D.cache===void 0&&(D.cache=!1),D.crossDomain&&(D.type="GET")}),w.ajaxTransport("script",function(D){if(D.crossDomain||D.scriptAttrs){var R,K;return{send:function(Q,ge){R=w("