0?o.push(l):(n.length>0&&(i.push(r(n)),n=[]),i.push(...o),o=[],i.push(l))}return n.length>0&&i.push(r(n)),i.push(...o),i.join(`
-`)}function Pt(e){return e==="..."?'
':(q.mdi===null&&(q.mdi=new nn({html:!0,breaks:!0,linkify:!1,typographer:!0,highlight(s,t){if(!!(t&&wt.getLanguage(t))){const n=t!=null?t:"";return q.highlightBlock(wt.highlight(s,{language:n}).value,n)}return q.highlightBlock(wt.highlightAuto(s).value,"")}}),q.mdi.use(ar,{attrs:{target:"_blank",rel:"noopener noreferrer"}}),q.mdi.use(lr,{blockClass:"katexmath-block rounded-md p-[10px]",errorColor:" #cc0000"}),dt.initReasoningPlugin(q.mdi)),e=dt.clearEmptyReasoning(e),e=Ir(e),e=q.processAiAction(e),e=q.processDeepLinks(e),e=q.mdi.render(e),q.formatMsg(e))}function Dr(e){return q.mds===null&&(q.mds=nn(),dt.initReasoningPlugin(q.mds)),e=dt.clearEmptyReasoning(e),q.mds.render(e)}function Er(e){if(!e||e==="")return!1;const s=e.replace(//g,`
-`).replace(/(^|\s+)```([\s\S]*)```/gm,"");if(/<\/(strong|s|em|u|ol|ul|li|blockquote|pre|img|a)>/i.test(s)||/]+?class="mention"[^>]*?>/i.test(s))return!1;const t=q.extractTextWithDOMParser(e);return q.detectMarkdownSyntaxWeight(t)>=.3}(function(e){const s=e.$A;s.extend({apiUrl(t){if(t=="privacy"){const i=$A.getDomain(e.systemInfo.apiUrl);if(i==""||i=="public")return"https://www.dootask.com/privacy.html";t="../privacy.html"}if(t.substring(0,2)==="//"||t.substring(0,7)==="http://"||t.substring(0,8)==="https://"||t.substring(0,6)==="ftp://"||t.substring(0,1)==="/")return t;for(typeof e.systemInfo.apiUrl=="string"?t=e.systemInfo.apiUrl+t:t=e.location.origin+"/api/"+t;t.indexOf("/../")!==-1;)t=t.replace(/\/(((?!\/).)*)\/\.\.\//,"/");return t},mainUrl(t=null){return t||(t=""),t.substring(0,2)==="//"||t.substring(0,7)==="http://"||t.substring(0,8)==="https://"||t.substring(0,6)==="ftp://"||t.substring(0,1)==="/"?t:$A.apiUrl(`../${t}`)},mainDomain(){return $A.getDomain($A.mainUrl())},removeMainUrlPrefix(t){t=t+"";const i=$A.getDomain(t),n=$A.mainDomain();return i&&n&&i===n?t.replace(/^https?:\/\/[^\/]+/,""):t},originUrl(t){if(t.substring(0,2)==="//"||t.substring(0,7)==="http://"||t.substring(0,8)==="https://"||t.substring(0,6)==="ftp://"||t.substring(0,1)==="/")return t;for(typeof e.systemInfo.origin=="string"?t=e.systemInfo.origin+t:t=e.location.origin+"/"+t;t.indexOf("/../")!==-1;)t=t.replace(/\/(((?!\/).)*)\/\.\.\//,"/");return t},onlinePreviewUrl(t,i){return $A.mainUrl(`online/preview/${t}?key=${i}&version=${e.systemInfo.version}&__=${$A.dayjs().valueOf()}`)},projectParameterTemplate(t){return{project_id:t,menuInit:!1,menuType:"column",chat:!1,showMy:!0,showHelp:!0,showUndone:!0,showCompleted:!1,completedTask:!1}},timeOptionShortcuts(){const t=$A.daytz().startOf("day").toDate();return[{text:$A.L("\u4ECA\u5929"),value(){return[t,$A.daytz().endOf("day").toDate()]}},{text:$A.L("\u660E\u5929"),value(){return[t,$A.daytz().add(1,"day").endOf("day").toDate()]}},{text:$A.L("\u672C\u5468"),value(){return[t,$A.daytz().endOf("week").toDate()]}},{text:$A.L("\u672C\u6708"),value(){return[t,$A.daytz().endOf("month").toDate()]}},{text:$A.L("(*)\u5929",3),value(){return[t,$A.daytz().add(2,"day").endOf("day").toDate()]}},{text:$A.L("(*)\u5929",5),value(){return[t,$A.daytz().add(4,"day").endOf("day").toDate()]}},{text:$A.L("(*)\u5929",7),value(){return[t,$A.daytz().add(6,"day").endOf("day").toDate()]}}]},dialogTags(t){let i=[];return t.type=="group"&&["project","task"].includes(t.group_type)&&$A.isJson(t.group_info)&&(t.group_type=="task"&&t.group_info.complete_at&&i.push({color:"success",text:"\u5DF2\u5B8C\u6210"}),t.group_info.deleted_at?i.push({color:"red",text:"\u5DF2\u5220\u9664"}):t.group_info.archived_at&&i.push({color:"default",text:"\u5DF2\u5F52\u6863"})),i},isAiBotUser(t){return!!(t!=null&&t.bot)&&/^ai-[^@]+@bot\.system$/.test(t.email||"")},isAiBotDialog(t){return(t==null?void 0:t.type)==="user"&&this.isAiBotUser(t)},dialogCompleted(t){return this.dialogTags(t).find(({color:i})=>i=="success")},getDialogNum(t){return t&&((t.silence?0:t.unread)||t.mention||t.mark_unread)||0},getDialogUnread(t,i){return t&&((i||!t.silence?t.unread:0)||t.mark_unread)||0},getDialogMention(t){return(t==null?void 0:t.mention)||0},getMsgTextPreview({type:t,text:i},n=null){if(!i)return"";if(t==="md"){if(i=i.replace(/<\/?tool-use[^>]*>/g,""),i=i.replace(/:::\s*reasoning[\s\S]*?:::/g,""),/:::\s*reasoning\s+/.test(i))return $A.L("\u601D\u8003\u4E2D...");let r="";const o=i.match(/^#{1,2}\s+(.+)/m);o&&(r=o[1].trim()),r?i=r:i=Dr(i)}return i=i.replace(/ ]*?alt="(\S+)"[^>]*?>/g,"[$1]"),i=i.replace(/ ]*?>/g,`[${$A.L("\u52A8\u753B\u8868\u60C5")}]`),n?i=i.replace(/ ]*?src="(\S+)"[^>]*?>/g,function(r,o){const a=$A.extractImageParameter(r);if(a.width&&a.height){const l=$A.imageRatioHandle({src:a.src,width:a.width,height:a.height,crops:{ratio:2,percentage:"80x0"},scaleSize:40});o=l.src,n=`${n}" style="width:${l.width}px;height:${l.height}px`}return`[image:${o}]`}):i=i.replace(/ ]*?>/g,`[${$A.L("\u56FE\u7247")}]`),i=i.replace(/<\/p>/g,"
").replace(/<[^>]+>/g,"").replace(/ /g," ").replace(/"/g,'"').replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/\s+/g," "),n?(i=i.replace(/\[image:(.*?)\]/g,` `),i=i.replace(/\{\{RemoteURL\}\}/g,this.apiUrl("../"))):i=$A.cutString(i,50),i},formatMsgBasic(t){if(!t)return t;if($A.isJson(t))for(let i in t)!t.hasOwnProperty(i)||(t[i]=$A.formatMsgBasic(t[i]));else $A.isArray(t)?t.forEach((i,n)=>{t[n]=$A.formatMsgBasic(i)}):typeof t=="string"&&(t=t.replace(/\{\{RemoteURL\}\}/g,this.apiUrl("../")));return t},formatTextMsg(t,i){if(!t)return"";const n=new RegExp(``,"g");return t=t.trim().replace(/(\n\x20*){3,}/g,`
+`)}function Pt(e){return e==="..."?'
':(q.mdi===null&&(q.mdi=new nn({html:!0,breaks:!0,linkify:!1,typographer:!0,highlight(s,t){if(!!(t&&wt.getLanguage(t))){const n=t!=null?t:"";return q.highlightBlock(wt.highlight(s,{language:n}).value,n)}return q.highlightBlock(wt.highlightAuto(s).value,"")}}),q.mdi.use(or,{attrs:{target:"_blank",rel:"noopener noreferrer"}}),q.mdi.use(ar,{blockClass:"katexmath-block rounded-md p-[10px]",errorColor:" #cc0000"}),dt.initReasoningPlugin(q.mdi)),e=dt.clearEmptyReasoning(e),e=Tr(e),e=q.processAiAction(e),e=q.processDeepLinks(e),e=q.mdi.render(e),q.formatMsg(e))}function Ir(e){return q.mds===null&&(q.mds=nn(),dt.initReasoningPlugin(q.mds)),e=dt.clearEmptyReasoning(e),q.mds.render(e)}function Dr(e){if(!e||e==="")return!1;const s=e.replace(//g,`
+`).replace(/(^|\s+)```([\s\S]*)```/gm,"");if(/<\/(strong|s|em|u|ol|ul|li|blockquote|pre|img|a)>/i.test(s)||/]+?class="mention"[^>]*?>/i.test(s))return!1;const t=q.extractTextWithDOMParser(e);return q.detectMarkdownSyntaxWeight(t)>=.3}(function(e){const s=e.$A;s.extend({apiUrl(t){if(t=="privacy"){const i=$A.getDomain(e.systemInfo.apiUrl);if(i==""||i=="public")return"https://www.dootask.com/privacy.html";t="../privacy.html"}if(t.substring(0,2)==="//"||t.substring(0,7)==="http://"||t.substring(0,8)==="https://"||t.substring(0,6)==="ftp://"||t.substring(0,1)==="/")return t;for(typeof e.systemInfo.apiUrl=="string"?t=e.systemInfo.apiUrl+t:t=e.location.origin+"/api/"+t;t.indexOf("/../")!==-1;)t=t.replace(/\/(((?!\/).)*)\/\.\.\//,"/");return t},mainUrl(t=null){return t||(t=""),t.substring(0,2)==="//"||t.substring(0,7)==="http://"||t.substring(0,8)==="https://"||t.substring(0,6)==="ftp://"||t.substring(0,1)==="/"?t:$A.apiUrl(`../${t}`)},mainDomain(){return $A.getDomain($A.mainUrl())},removeMainUrlPrefix(t){t=t+"";const i=$A.getDomain(t),n=$A.mainDomain();return i&&n&&i===n?t.replace(/^https?:\/\/[^\/]+/,""):t},originUrl(t){if(t.substring(0,2)==="//"||t.substring(0,7)==="http://"||t.substring(0,8)==="https://"||t.substring(0,6)==="ftp://"||t.substring(0,1)==="/")return t;for(typeof e.systemInfo.origin=="string"?t=e.systemInfo.origin+t:t=e.location.origin+"/"+t;t.indexOf("/../")!==-1;)t=t.replace(/\/(((?!\/).)*)\/\.\.\//,"/");return t},onlinePreviewUrl(t,i){return $A.mainUrl(`online/preview/${t}?key=${i}&version=${e.systemInfo.version}&__=${$A.dayjs().valueOf()}`)},projectParameterTemplate(t){return{project_id:t,menuInit:!1,menuType:"column",chat:!1,showMy:!0,showHelp:!0,showUndone:!0,showCompleted:!1,completedTask:!1}},timeOptionShortcuts(){const t=$A.daytz().startOf("day").toDate();return[{text:$A.L("\u4ECA\u5929"),value(){return[t,$A.daytz().endOf("day").toDate()]}},{text:$A.L("\u660E\u5929"),value(){return[t,$A.daytz().add(1,"day").endOf("day").toDate()]}},{text:$A.L("\u672C\u5468"),value(){return[t,$A.daytz().endOf("week").toDate()]}},{text:$A.L("\u672C\u6708"),value(){return[t,$A.daytz().endOf("month").toDate()]}},{text:$A.L("(*)\u5929",3),value(){return[t,$A.daytz().add(2,"day").endOf("day").toDate()]}},{text:$A.L("(*)\u5929",5),value(){return[t,$A.daytz().add(4,"day").endOf("day").toDate()]}},{text:$A.L("(*)\u5929",7),value(){return[t,$A.daytz().add(6,"day").endOf("day").toDate()]}}]},dialogTags(t){let i=[];return t.type=="group"&&["project","task"].includes(t.group_type)&&$A.isJson(t.group_info)&&(t.group_type=="task"&&t.group_info.complete_at&&i.push({color:"success",text:"\u5DF2\u5B8C\u6210"}),t.group_info.deleted_at?i.push({color:"red",text:"\u5DF2\u5220\u9664"}):t.group_info.archived_at&&i.push({color:"default",text:"\u5DF2\u5F52\u6863"})),i},isAiBotUser(t){return!!(t!=null&&t.bot)&&/^ai-[^@]+@bot\.system$/.test(t.email||"")},isAiBotDialog(t){return(t==null?void 0:t.type)==="user"&&this.isAiBotUser(t)},dialogCompleted(t){return this.dialogTags(t).find(({color:i})=>i=="success")},getDialogNum(t){return t&&((t.silence?0:t.unread)||t.mention||t.mark_unread)||0},getDialogUnread(t,i){return t&&((i||!t.silence?t.unread:0)||t.mark_unread)||0},getDialogMention(t){return(t==null?void 0:t.mention)||0},getMsgTextPreview({type:t,text:i},n=null){if(!i)return"";if(t==="md"){if(i=i.replace(/<\/?tool-use[^>]*>/g,""),i=i.replace(/:::\s*reasoning[\s\S]*?:::/g,""),/:::\s*reasoning\s+/.test(i))return $A.L("\u601D\u8003\u4E2D...");let r="";const o=i.match(/^#{1,2}\s+(.+)/m);o&&(r=o[1].trim()),r?i=r:i=Ir(i)}return i=i.replace(/ ]*?alt="(\S+)"[^>]*?>/g,"[$1]"),i=i.replace(/ ]*?>/g,`[${$A.L("\u52A8\u753B\u8868\u60C5")}]`),n?i=i.replace(/ ]*?src="(\S+)"[^>]*?>/g,function(r,o){const a=$A.extractImageParameter(r);if(a.width&&a.height){const l=$A.imageRatioHandle({src:a.src,width:a.width,height:a.height,crops:{ratio:2,percentage:"80x0"},scaleSize:40});o=l.src,n=`${n}" style="width:${l.width}px;height:${l.height}px`}return`[image:${o}]`}):i=i.replace(/ ]*?>/g,`[${$A.L("\u56FE\u7247")}]`),i=i.replace(/<\/p>/g,"
").replace(/<[^>]+>/g,"").replace(/ /g," ").replace(/"/g,'"').replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/\s+/g," "),n?(i=i.replace(/\[image:(.*?)\]/g,` `),i=i.replace(/\{\{RemoteURL\}\}/g,this.apiUrl("../"))):i=$A.cutString(i,50),i},formatMsgBasic(t){if(!t)return t;if($A.isJson(t))for(let i in t)!t.hasOwnProperty(i)||(t[i]=$A.formatMsgBasic(t[i]));else $A.isArray(t)?t.forEach((i,n)=>{t[n]=$A.formatMsgBasic(i)}):typeof t=="string"&&(t=t.replace(/\{\{RemoteURL\}\}/g,this.apiUrl("../")));return t},formatTextMsg(t,i){if(!t)return"";const n=new RegExp(``,"g");return t=t.trim().replace(/(\n\x20*){3,}/g,`
`),t=t.replace(/ /g," "),t=t.replace(/<\/p>/g,"
"),t=t.replace(/\{\{RemoteURL\}\}/g,$A.mainUrl()),t=t.replace(n,``),/https?:\/\//.test(t)&&(t=t.split(/(<[^>]*>)/g).map(o=>(o&&!/<[^>]*>/.test(o)&&(o=o.replace(/(^|[^'"])((https?:\/\/)((\w|=|\?|\.|\/|&|-|:|\+|%|;|#|@|,|!)+))/g,'$1$2 ')),o)).join("")),$A.extractImageParameterAll(t).some(o=>{if(o.src&&o.width&&o.height){const a=$A.imageRatioHandle({src:o.src,width:o.width,height:o.height,crops:{ratio:5,percentage:"320x0"},scaleSize:o.original.indexOf("emoticon")>-1?150:220}),l=o.original.replace(/\s+width=/," original-width=").replace(/\s+height=/," original-height=").replace(/\s+src=(["'])([^'"]*)\1/i,` style="width:${a.width}px;height:${a.height}px" src="${on(a.src)}"`);t=t.replace(o.original,l)}else t=t.replace(o.original,`${o.original}
`)}),t},getTextImagesInfo(t){const i=$A.mainUrl(),n=t.match(new RegExp(" ]*?>","g")),r=[];if(n){const o=new RegExp(`src=(["'])([^'"]*)\\1`),a=new RegExp('(original-)?width="(\\d+)"'),l=new RegExp('(original-)?height="(\\d+)"');n.some(c=>{const d=c.match(o),h=c.match(a),u=c.match(l);d&&r.push({src:d[2].replace(/\{\{RemoteURL\}\}/g,i),width:h?h[2]:-1,height:u?u[2]:-1})})}return r},getMergeForwardTitle(t){const i=t.sender_names||[];return i.length===0?$A.L("\u804A\u5929\u8BB0\u5F55"):i.length===1?$A.L("(*)\u7684\u804A\u5929\u8BB0\u5F55",i[0]):t.sender_total>2?$A.L("(*)\u548C(*)\u7B49\u4EBA\u7684\u804A\u5929\u8BB0\u5F55",i[0],i[1]):$A.L("(*)\u548C(*)\u7684\u804A\u5929\u8BB0\u5F55",i[0],i[1])},getMsgSimpleDesc(t,i=null){if(!$A.isJson(t))return"";switch(t.type){case"text":return $A.getMsgTextPreview(t.msg,i);case"longtext":return t.msg.desc?$A.cutString(t.msg.desc,50):"["+$A.L("\u957F\u6587\u672C")+"]";case"vote":return`[${$A.L("\u6295\u7968")}]`+$A.getMsgTextPreview(t.msg,i);case"word-chain":return`[${$A.L("\u63A5\u9F99")}]`+$A.getMsgTextPreview(t.msg,i);case"record":return`[${$A.L("\u8BED\u97F3")}]`;case"location":return`[${$A.L("\u4F4D\u7F6E")}] ${$A.cutString(t.msg.title,50)}`;case"meeting":return`[${$A.L("\u4F1A\u8BAE")}] ${$A.cutString(t.msg.name,50)}`;case"file":return $A.fileMsgSimpleDesc(t.msg,i);case"tag":return`[${$A.L(t.msg.action==="remove"?"\u53D6\u6D88\u6807\u6CE8":"\u6807\u6CE8")}] ${$A.getMsgSimpleDesc(t.msg.data)}`;case"top":return`[${$A.L(t.msg.action==="remove"?"\u53D6\u6D88\u7F6E\u9876":"\u7F6E\u9876")}] ${$A.getMsgSimpleDesc(t.msg.data)}`;case"todo":return`[${$A.L(t.msg.action==="remove"?"\u53D6\u6D88\u5F85\u529E":t.msg.action==="done"?"\u5B8C\u6210":"\u8BBE\u5F85\u529E")}] ${$A.getMsgSimpleDesc(t.msg.data)}`;case"notice":const n=t.msg.source==="api"?t.msg.notice:$A.L(t.msg.notice);return $A.cutString(n,50);case"merge-forward":return`[${$A.L("\u804A\u5929\u8BB0\u5F55")}] ${$A.cutString($A.getMergeForwardTitle(t.msg),50)}`;case"template":return $A.templateMsgSimpleDesc(t.msg);case"preview":return t.msg.preview;default:return`[${$A.L("\u672A\u77E5\u7684\u6D88\u606F")}]`}},fileMsgSimpleDesc(t,i=null){if(t.type=="img"){if(i){const n=$A.imageRatioHandle({src:t.thumb,width:parseInt(t.width),height:parseInt(t.height),crops:{ratio:2,percentage:"80x0"},scaleSize:40});return` `}return`[${$A.L("\u56FE\u7247")}]`}else if(t.ext=="mp4")return`[${$A.L("\u89C6\u9891")}]`;return`[${$A.L("\u6587\u4EF6")}] ${$A.cutString(t.name,50)}`},templateMsgSimpleDesc(t){if(t.title_raw)return t.title_raw;if(t.type==="task_list"&&$A.arrayLength(t.list)===1)return(t.source==="api"?t.title:$A.L(t.title))+": "+$A.cutString(t.list[0].name,50);if(t.title)return t.source==="api"?t.title:$A.L(t.title);if(t.type==="content"&&typeof t.content=="string"&&t.content!==""){const i=t.source==="api"?t.content:$A.L(t.content);return $A.cutString(i,50)}return $A.L("\u672A\u77E5\u7684\u6D88\u606F")},getFileName(t){let i=t.name||"",n=t.ext||"";return n!=""&&(i+="."+n),i},isDooServer(){const t=$A.mainDomain();return/dootask\.com$/.test(t)||/hitosea\.com$/.test(t)||/^127\.0\.0\.1/.test(t)||/^(10)\./.test(t)||/^(172)\.(1[6-9]|2[0-9]|3[0-1])\./.test(t)||/^(192)\.(168)\./.test(t)},thumbRestore(t){return`${t}`.replace(/_thumb\.(png|jpg|jpeg)$/,"").replace(/\/crop\/([^\/]+)$/,"")},dataHasFolder(t){const{items:i}=t;if(i){for(const n of i)if(n.kind==="directory"||n.kind==="file"&&n.webkitGetAsEntry().isDirectory)return!0}return!1},imageRatioHandle(t){if(!$A.isJson(t.crops))return t;if($A.imageRatioJudge(t.src)){t.src=$A.thumbRestore(t.src)+"/crop/"+Object.keys(t.crops).map(n=>`${n}:${t.crops[n]}`).join(",");const i=$A.imageRatioExceed(t.width,t.height,t.crops.ratio);i>0&&(t.width>t.height?t.width=t.height*i:t.height=t.width*i)}if(t.scaleSize){const i=$A.scaleToScale(t.width,t.height,t.scaleSize);t.width=i.width,t.height=i.height}return t},imageRatioJudge(t){return/\.(png|jpg|jpeg)$/.test(t)?$A.getDomain(t)==$A.mainDomain():!1},imageRatioExceed(t,i,n,r=.5){return t&&i&&n&&(t/i>n+r||i/t>n+r)?n:0},filterInvalidLine(t){return t?`${t}`.replace(/^(\s*<\/p>)+|(
\s*<\/p>)+$/gi,"").replace(/^(
<\/p>)+|(
<\/p>)+$/gi,""):""},loadVConsole(t=void 0){if(typeof t=="string"){switch(t){case"log.o":return $A.IDBSet("logOpen","open").then(i=>{$A.loadVConsole()}),!0;case"log.c":return $A.IDBSet("logOpen","close").then(i=>{$A.loadVConsole()}),!0}return!1}$A.IDBString("logOpen").then(i=>{typeof e.vConsole!="undefined"&&(e.vConsole.destroy(),e.vConsole=null),$A.openLog=i==="open",$A.openLog&&$A.loadScript("js/vconsole.min.js").then(n=>{e.vConsole=new e.VConsole({onReady:()=>{console.log("VConsole: onReady")},onClearLog:()=>{console.log("VConsole: onClearLog")}})}).catch(n=>{$A.modalError("VConsole \u7EC4\u4EF6\u52A0\u8F7D\u5931\u8D25\uFF01")})})},reportExtractTime(t){const i=/(?:.*?)(?:\[([^\[\]]*)\]\s*)?(?:\[([^\[\]]*)\]\s*)?$/,n=t.match(i);if(!n)return"";const r=`${n[1]||""}`.replace(/^\s*\((.*)\)\s*$/,"$1"),o=`${n[2]||""}`.replace(/^\s*\((.*)\)\s*$/,"$1");return o&&r?`${o} (${r})`:o||r||""},generateColorVarStyle(t,i=[],n="custom-color",r=null){if(typeof t!="string"||!/^#([0-9a-fA-F]{6})$/.test(t))return r;const o=parseInt(t.substring(1,3),16),a=parseInt(t.substring(3,5),16),l=parseInt(t.substring(5,7),16);return $A.isJson(r)||(r={}),i.forEach(c=>{if(typeof c=="number"&&c>=0&&c<=100){const d=Math.round(c/100*100)/100;r[`--${n}-${c}`]=`rgba(${o}, ${a}, ${l}, ${d})`}}),r[`--${n}-100`]=t,r},convertWorkflow(t){let i=null,n=t,r=null;if($A.isJson(t)&&(n=t.flow_item_name,n.indexOf("|")===-1&&(n.complete_at?n=$A.L("\u5DF2\u5B8C\u6210"):n=$A.L("\u672A\u5B8C\u6210"))),n&&n.indexOf("|")!==-1){const o=`${n}||`.split("|");i=o[0],n=o[1],r=o[2]}return{status:i,name:n,color:r}}}),s.extend({modalConfig(t){return typeof t=="undefined"?t={content:"Undefined"}:typeof t=="string"&&(t={content:t}),t.title=t.title||(typeof t.render=="undefined"?$A.modalTranslation("\u6E29\u99A8\u63D0\u793A",t.language):""),t.content=t.content||"",t.okText=t.okText||$A.modalTranslation("\u786E\u5B9A",t.language),t.cancelText=t.cancelText||$A.modalTranslation("\u53D6\u6D88",t.language),t.language!==!1&&(delete t.language,t.title=$A.L(t.title),t.content=$A.L(t.content),t.okText=$A.L(t.okText),t.cancelText=$A.L(t.cancelText)),t},modalTranslation(t,i){return i!==!1?t:$A.L(t)},modalInput(t,i=0){if(i>0){setTimeout(()=>{$A.modalInput(t)},i);return}typeof t=="string"&&(t={title:t});let n="modalInput_"+$A.randomString(6),r={type:t.type||"text",value:t.value,placeholder:$A.L(t.placeholder),elementId:n};$A.isJson(t.inputProps)&&(r=Object.assign(r,t.inputProps));const o=()=>new Promise((l,c)=>{if(!t.onOk){c();return}const d=t.onOk(t.value);if(!d){l();return}d.then?d.then(h=>{h&&$A.messageSuccess(h),l()}).catch(h=>{h&&$A.messageError(h),c()}):(typeof d=="string"&&$A.messageError(d),c())}),a=()=>{typeof t.onCancel=="function"&&t.onCancel()};$A.eeuiAppKeyboardHide(),$A.Modal.confirm({render:l=>l("div",[l("div",{style:{fontSize:"16px",fontWeight:"500",marginBottom:"20px"}},$A.L(t.title)),l("Input",{props:r,on:{input:c=>{t.value=c},"on-enter":c=>{r.type!=="textarea"&&$A(c.target).parents(".ivu-modal-body").find(".ivu-btn-primary").click()}}})]),onOk:o,onCancel:a,loading:!0,okText:$A.L(t.okText||"\u786E\u5B9A"),cancelText:$A.L(t.cancelText||"\u53D6\u6D88"),okType:t.okType||"primary",cancelType:t.cancelType||"text"}),setTimeout(()=>{document.getElementById(n)&&document.getElementById(n).focus()})},modalConfirm(t,i=0){if(t!==!1){if(i>0){setTimeout(()=>{$A.modalConfirm(t)},i);return}if(t=$A.modalConfig(t),t.loading){const{onOk:n}=t;t.onOk=()=>new Promise((r,o)=>{if(!n){o();return}const a=n();if(!a){r();return}a.then?a.then(l=>{l&&$A.messageSuccess(l),r()}).catch(l=>{l&&$A.messageError(l),o()}):(typeof a=="string"&&$A.messageError(a),o())})}$A.eeuiAppKeyboardHide(),$A.Modal.confirm($A.modalConfig(t))}},modalSuccess(t,i=0){if(t!==!1){if(i>0){setTimeout(()=>{$A.modalSuccess(t)},i);return}$A.eeuiAppKeyboardHide(),$A.Modal.success($A.modalConfig(t))}},modalInfo(t,i=0){if(t!==!1){if(i>0){setTimeout(()=>{$A.modalInfo(t)},i);return}$A.eeuiAppKeyboardHide(),$A.Modal.info($A.modalConfig(t))}},modalWarning(t,i=0){if(t!==!1&&!($A.isJson(t)&&t.content===!1)){if(i>0){setTimeout(()=>{$A.modalWarning(t)},i);return}$A.eeuiAppKeyboardHide(),$A.Modal.warning($A.modalConfig(t))}},modalError(t,i=0){if(t!==!1&&!($A.isJson(t)&&t.content===!1)){if(i>0){setTimeout(()=>{$A.modalError(t)},i);return}$A.eeuiAppKeyboardHide(),$A.Modal.error($A.modalConfig(t))}},modalAlert(t){t!==!1&&($A.eeuiAppKeyboardHide(),alert($A.L(t)))},messageSuccess(t){$A.Message.success($A.L(t))},messageInfo(t){$A.Message.info($A.L(t))},messageWarning(t){t!==!1&&$A.Message.warning($A.L(t))},messageError(t){t!==!1&&$A.Message.error($A.L(t))},noticeConfig(t){return typeof t=="undefined"?t={desc:"Undefined"}:typeof t=="string"&&(t={desc:t}),t.title=$A.L(t.title||(typeof t.render=="undefined"?"\u6E29\u99A8\u63D0\u793A":"")),t.desc=$A.L(t.desc||""),t},noticeSuccess(t){t!==!1&&$A.Notice.success($A.noticeConfig(t))},noticeWarning(t){t!==!1&&$A.Notice.warning($A.noticeConfig(t))},noticeError(t){t!==!1&&(typeof t=="string"&&(t={desc:t,duration:6}),$A.Notice.error($A.noticeConfig(t)))}}),s.extend({dark:{utils:{supportMode(){let t=typeof e!="undefined"&&e.navigator.userAgent.toLowerCase();return`${t.match(/Chrome/i)}`=="chrome"?"chrome":`${t.match(/Webkit/i)}`=="webkit"?"webkit":null},defaultFilter(){return"-webkit-filter: invert(100%) hue-rotate(180deg) contrast(90%) !important; filter: invert(100%) hue-rotate(180deg) contrast(90%) !important;"},reverseFilter(){return"-webkit-filter: invert(100%) hue-rotate(180deg) contrast(100%) !important; filter: invert(100%) hue-rotate(180deg) contrast(100%) !important;"},noneFilter(){return"-webkit-filter: none !important; filter: none !important;"},addStyle(t,i,n){i=i||"style";let r=document;if(r.getElementById(t))return;let a=r.createElement(i);a.rel="stylesheet",a.id=t,i==="style"?a.innerHTML=n:a.href=n,document.head.appendChild(a)},getClassList(t){return t.classList||[]},addClass(t,i){return this.getClassList(t).add(i),this},removeClass(t,i){return this.getClassList(t).remove(i),this},hasClass(t,i){return this.getClassList(t).contains(i)},hasElementById(t){return document.getElementById(t)},removeElementById(t){let i=document.getElementById(t);i&&i.parentNode.removeChild(i)}},createDarkStyle(){this.utils.addStyle("dark-mode-style","style",`
@media screen {
@@ -92,18 +92,18 @@ var er=Object.defineProperty;var tr=(e,s,t)=>s in e?er(e,s,{enumerable:!0,config
.no-print {
display: none !important;
}
- }`)},enableDarkMode(){!this.utils.supportMode()||this.isDarkEnabled()||(this.createDarkStyle(),this.utils.addClass(document.body,"dark-mode-reverse"))},disableDarkMode(){!this.isDarkEnabled()||(this.utils.removeElementById("dark-mode-style"),this.utils.removeClass(document.body,"dark-mode-reverse"))},autoDarkMode(){let t=e.matchMedia&&e.matchMedia("(prefers-color-scheme: dark)").matches;$A.isEEUIApp&&(t=$A.eeuiAppGetThemeName()==="dark"),t?this.enableDarkMode():this.disableDarkMode()},isDarkEnabled(){return this.utils.hasClass(document.body,"dark-mode-reverse")}}}),e.$A=s})(window);var Lr=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("transition",{attrs:{name:"fade"}},[e.floatSpinnerLoad>0?t("div",{staticClass:"common-float-spinner"},[t("Loading",{staticClass:"common-float-circular"})],1):e._e()])},Mr=[];function A(e,s,t,i,n,r,o,a){var l=typeof e=="function"?e.options:e;s&&(l.render=s,l.staticRenderFns=t,l._compiled=!0),i&&(l.functional=!0),r&&(l._scopeId="data-v-"+r);var c;if(o?(c=function(u){u=u||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!u&&typeof __VUE_SSR_CONTEXT__!="undefined"&&(u=__VUE_SSR_CONTEXT__),n&&n.call(this,u),u&&u._registeredComponents&&u._registeredComponents.add(o)},l._ssrRegister=c):n&&(c=a?function(){n.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:n),c)if(l.functional){l._injectStyles=c;var d=l.render;l.render=function(p,g){return c.call(g),d(p,g)}}else{var h=l.beforeCreate;l.beforeCreate=h?[].concat(h,c):[c]}return{exports:e,options:l}}const Pr={name:"FloatSpinner",computed:{...B(["floatSpinnerLoad"])}},Zt={};var jr=A(Pr,Lr,Mr,!1,Rr,null,null,null);function Rr(e){for(let s in Zt)this[s]=Zt[s]}var Or=function(){return jr.exports}();const x=_r();var zr=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"common-right-bottom"},[e.showSSO?t("div",{staticClass:"common-right-bottom-link",on:{click:e.useSSOLogin}},[e._v(" "+e._s(e.$L("\u4F7F\u7528 SSO \u767B\u5F55"))+" ")]):e._e(),e.showDown&&e.clientDownloadUrl?t("a",{staticClass:"common-right-bottom-link",attrs:{href:e.clientDownloadUrl,target:"_blank"}},[t("Icon",{attrs:{type:"md-download"}}),e._v(" "+e._s(e.$L("\u5BA2\u6237\u7AEF\u4E0B\u8F7D"))+" ")],1):e._e(),e.showPrivacy?t("a",{staticClass:"common-right-bottom-link",attrs:{target:"_blank",href:e.$A.apiUrl("privacy")}},[e._v(" \u300A"+e._s(e.$L("\u9690\u79C1\u653F\u7B56"))+"\u300B ")]):e._e(),t("Modal",{attrs:{closable:!1,"mask-closable":!1,"class-name":"common-right-bottom-notification"},model:{value:e.updateShow,callback:function(i){e.updateShow=i},expression:"updateShow"}},[t("div",{attrs:{slot:"header"},slot:"header"},[t("div",{staticClass:"notification-head"},[t("div",{staticClass:"notification-title"},[e._v(e._s(e.$L("\u53D1\u73B0\u65B0\u7248\u672C")))]),t("Tag",{attrs:{color:"volcano"}},[e._v("v"+e._s(e.systemVersion)+" -> v"+e._s(e.updateVersion))])],1),e.$Platform==="mac"?t("div",{staticClass:"notification-tip"},[e._v(e._s(e.$L("\u79BB\u6700\u65B0\u7248\u672C\u53EA\u6709\u4E00\u6B65\u4E4B\u9065\u4E86\uFF01\u91CD\u65B0\u542F\u52A8\u5E94\u7528\u5373\u53EF\u5B8C\u6210\u66F4\u65B0\u3002")))]):e._e()]),t("Scrollbar",{attrs:{"class-name":"notification-body"}},[t("VMPreview",{attrs:{value:e.updateNote}})],1),t("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[t("Button",{attrs:{type:"default"},on:{click:function(i){e.updateShow=!1}}},[e._v(e._s(e.$L("\u7A0D\u540E")))]),t("Button",{attrs:{type:"primary",loading:e.updateIng},on:{click:e.updateQuitAndInstall}},[e._v(e._s(e.$L(e.$Platform==="mac"?"\u91CD\u65B0\u542F\u52A8":"\u7ACB\u5373\u5347\u7EA7")))])],1)],1)],1)},Ur=[];const Br=()=>D(()=>import("./preview.a027dcb2.js"),["js/build/preview.a027dcb2.js","js/build/openpgp_hi.15f91b1d.js","js/build/index.40a8e116.js","js/build/jquery.c87f487f.js","js/build/@babel.9410f858.js","js/build/dayjs.fd4aa75c.js","js/build/localforage.8de7c27e.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/vuex.cc7cb26e.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),Nr={name:"RightBottom",components:{VMPreview:Br},data(){return{loadIng:0,apiVersion:"",systemVersion:window.systemInfo.version,updateVersion:"",updateNote:"",updateShow:!1,updateBottomShow:!1,updateIng:!1}},mounted(){this.prefetchResources(),this.checkVersion(),this.$Electron&&(x.on("updateNotification",this.onUpdateShow),this.$Electron.listener("updateDownloaded",e=>{this.$store.state.clientNewVersion=e.version,this.updateVersion=e.version,this.updateNote=e.releaseNotes||this.$L("\u6CA1\u6709\u66F4\u65B0\u63CF\u8FF0\u3002"),this.updateShow=!$A.strExists(this.updateNote,`[${this.updateVersion}-Silence]`)})),x.on("openDownloadClient",this.openDownloadClient)},beforeDestroy(){x.off("updateNotification",this.onUpdateShow),x.off("openDownloadClient",this.openDownloadClient)},watch:{updateShow(e){e&&(this.updateBottomShow=!0)}},computed:{...B(["clientDownloadUrl"]),showSSO(){return this.$isSoftware&&["login"].includes(this.routeName)},showDown(){return this.$Electron||this.$isEEUIApp||this.windowTouch?!1:this.routeName==="login"},showPrivacy(){return $A.isDooServer()&&this.$isEEUIApp&&["login"].includes(this.routeName)}},methods:{onUpdateShow(){this.updateShow=!0},openDownloadClient(){this.clientDownloadUrl&&window.open(this.clientDownloadUrl,"_blank")},isNotServer(){let e=$A.getDomain(window.systemInfo.apiUrl);return this.$isSoftware&&(e==""||e=="public")},prefetchResources(){this.isNotServer()||this.$Electron&&$A.$isSubElectron||at.get($A.apiUrl("system/prefetch")).then(({status:e,data:s})=>{e===200&&s.forEach(t=>{const i=document.createElement("link");i.rel="prefetch",i.href=t,i.onload=()=>{document.head.removeChild(i)},i.onerror=()=>{document.head.removeChild(i)},document.head.appendChild(i)})}).catch(e=>{})},checkVersion(){this.isNotServer()||(at.get($A.apiUrl("system/version")).then(({status:e,data:s})=>{e===200&&(this.apiVersion=s.version||"",this.compareVersion(this.apiVersion,"0.19.0")===-1&&$A.modalWarning({title:"\u6E29\u99A8\u63D0\u793A",message:`\u670D\u52A1\u5668\uFF08${$A.mainDomain()}\uFF09\u63A5\u53E3\u7248\u672C\u8FC7\u4F4E\uFF0C\u90E8\u5206\u529F\u80FD\u53EF\u80FD\u65E0\u6CD5\u6B63\u5E38\u4F7F\u7528\u3002`}),this.$Electron?this.$Electron.sendMessage("updateCheckAndDownload",{apiVersion:this.apiVersion}):this.getDownloadUrl(s.publish))}).catch(e=>{}),this.__checkVersion&&clearTimeout(this.__checkVersion),this.__checkVersion=setTimeout(this.checkVersion,600*1e3))},getDownloadUrl(e){if(!!$A.isJson(e))switch(e.provider){case"generic":this.$store.state.clientDownloadUrl=`${e.url}/latest`;break;case"github":(async s=>{let t="cacheAppdown::"+this.apiVersion,i=await $A.IDBJson(t),n=600;if(i.time&&i.time+n>$A.dayjs().unix()){this.$store.state.clientDownloadUrl=i.data.html_url;return}this.loadIng>0||(this.loadIng++,at.get(`https://api.github.com/repos/${e.owner}/${e.repo}/releases`).then(({status:r,data:o})=>{this.loadIng--,r===200&&$A.isArray(o)&&(i.time=$A.dayjs().unix(),i.data=o.find(({tag_name:a})=>this.compareVersion(this.tagVersion(a),this.apiVersion)===0)||{},$A.IDBSave(t,i),this.$store.state.clientDownloadUrl=i.data.html_url)}).catch(()=>{this.loadIng--}))})();break}},updateQuitAndInstall(){this.updateIng=!0,setTimeout(()=>{this.$Electron.sendMessage("updateQuitAndInstall",{updateTitle:this.$L("\u6B63\u5728\u5B89\u88C5\u66F4\u65B0\uFF0C\u8BF7\u7A0D\u5019...")})},301)},useSSOLogin(){x.emit("useSSOLogin",!0)},tagVersion(e){return e?$A.leftDelete(e.toLowerCase(),"v"):""},compareVersion(e,s){let t=0,i=0;if(e===s)return 0;const n=(r,o)=>{let a=o;for(;r[a]!=="."&&al?1:-1;t=r+1,i=o+1}for(;t0)return 1;t=r+1}for(;i0)return-1;i=r+1}return 0}}},es={};var Fr=A(Nr,zr,Ur,!1,Hr,null,null,null);function Hr(e){for(let s in es)this[s]=es[s]}var Wr=function(){return Fr.exports}(),Vr=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("Modal",{attrs:{mask:!1,"mask-closable":!1,"footer-hide":!0,"transition-names":["",""],"class-name":e.viewMode==="desktop"?"common-preview-image-view":"common-preview-image-swipe",fullscreen:""},model:{value:e.show,callback:function(i){e.show=i},expression:"show"}},[e.list.length>0?[e.viewVideo?t("PreviewVideoView",{attrs:{item:e.viewVideo}}):e.viewMode==="desktop"?t("PreviewImageView",{attrs:{"initial-index":e.index,"url-list":e.list,infinite:""}}):e.viewMode==="mobile"?t("PreviewImageSwipe",{attrs:{"initial-index":e.index,"url-list":e.list},on:{"on-destroy":function(i){e.show=!1}}}):e._e()]:e._e()],2)},Yr=[];const qr=()=>D(()=>import("./video.62bb9aea.js"),["js/build/video.62bb9aea.js","js/build/video.6c8ed952.css","js/build/jquery.c87f487f.js","js/build/@babel.9410f858.js","js/build/dayjs.fd4aa75c.js","js/build/localforage.8de7c27e.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),Kr=()=>D(()=>import("./view.067c0cbb.js"),["js/build/view.067c0cbb.js","js/build/view.344e05c9.css","js/build/element-sea.f8a64907.js","js/build/vue.adba9046.js","js/build/@babel.9410f858.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js","js/build/jquery.c87f487f.js","js/build/dayjs.fd4aa75c.js","js/build/localforage.8de7c27e.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js"]),Gr=()=>D(()=>import("./swipe.009070fc.js"),["js/build/swipe.009070fc.js","js/build/swipe.7b577070.css","js/build/openpgp_hi.15f91b1d.js","js/build/photoswipe.a7142509.js","js/build/photoswipe.0fb72215.css","js/build/jquery.c87f487f.js","js/build/@babel.9410f858.js","js/build/dayjs.fd4aa75c.js","js/build/localforage.8de7c27e.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/vuex.cc7cb26e.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),Jr={name:"PreviewImage",components:{PreviewVideoView:qr,PreviewImageSwipe:Gr,PreviewImageView:Kr},props:{value:{type:Boolean,default:!1},index:{type:Number,default:0},list:{type:Array,default:()=>[]},mode:{type:String,default:null}},data(){return{show:this.value}},watch:{value(e){this.show=e},show(e){this.value!==e&&this.$emit("input",e)}},computed:{viewVideo(){return this.list.length===0?!1:this.list.find(({src:s})=>/\.mp4$/i.test(s))||!1},viewMode(){return this.mode?this.mode:this.windowTouch?"mobile":"desktop"}}},ts={};var Qr=A(Jr,Vr,Yr,!1,Xr,null,null,null);function Xr(e){for(let s in ts)this[s]=ts[s]}var Zr=function(){return Qr.exports}(),eo=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("PreviewImage",{attrs:{index:e.previewImageIndex,list:e.previewImageList},model:{value:e.show,callback:function(i){e.show=i},expression:"show"}})},to=[];const so={name:"PreviewImageState",components:{PreviewImage:Zr},computed:{...B(["previewImageIndex","previewImageList"])},data(){return{show:!1}},watch:{show(e){e?this.$store.state.previewImageIndex=Math.min(Math.max(this.$store.state.previewImageIndex,0),this.$store.state.previewImageList.length-1):(this.$store.state.previewImageIndex=0,this.$store.state.previewImageList=[])},previewImageList(e){if(e.length>0)if($A.isEEUIApp||$A.isElectron){let s=Math.min(Math.max(this.$store.state.previewImageIndex,0),this.$store.state.previewImageList.length-1),t=e.map(r=>$A.isJson(r)?r.src:r),i=50;if(t.length>i){const r=[];let o=0;for(;r.length=0&&r.unshift(t[a]),la===t[s]),t=r}const n=t.find(r=>/\.mp4$/i.test(r));n?this.videoPreview(n):this.imagePreview(s,t)}else this.show=!0}},methods:{videoPreview(e){$A.isEEUIApp?$A.eeuiAppSendMessage({language:$A.eeuiAppConvertLanguage(),action:"videoPreview",path:e}):$A.isElectron&&this.$Electron.sendMessage("openMediaViewer",{type:"video",lang:M,video:e})},imagePreview(e,s){$A.isEEUIApp?$A.eeuiAppSendMessage({language:$A.eeuiAppConvertLanguage(),action:"picturePreview",position:e,paths:s}):$A.isElectron&&this.$Electron.sendMessage("openMediaViewer",{type:"image",lang:M,currentIndex:e,images:s})}}},ss={};var io=A(so,eo,to,!1,no,null,null,null);function no(e){for(let s in ss)this[s]=ss[s]}var ro=function(){return io.exports}(),oo=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("Modal",{attrs:{value:e.show,width:416,closable:!1,"mask-closable":!1,"footer-hide":!0}},[t("div",{staticClass:"ivu-modal-confirm"},[t("div",{staticClass:"ivu-modal-confirm-head"},[t("div",{staticClass:"ivu-modal-confirm-head-icon ivu-modal-confirm-head-icon-error"},[t("Icon",{attrs:{type:"ios-close-circle"}})],1),t("div",{staticClass:"ivu-modal-confirm-head-title"},[e._v(e._s(e.$L("\u6E29\u99A8\u63D0\u793A")))])]),t("div",{staticClass:"ivu-modal-confirm-body"},[t("div",[e._v(e._s(e.ajaxAuthException))])]),e.$isSubElectron?t("div",{staticClass:"ivu-modal-confirm-footer"},[t("Button",{attrs:{type:"text"},on:{click:e.onClose}},[e._v(e._s(e.$L("\u5173\u95ED\u7A97\u53E3")))]),t("Button",{attrs:{type:"primary"},on:{click:e.onRefresh}},[e._v(e._s(e.$L("\u5237\u65B0")))])],1):t("div",{staticClass:"ivu-modal-confirm-footer"},[t("Button",{attrs:{type:"primary"},on:{click:e.onConfirm}},[e._v(e._s(e.$L("\u786E\u5B9A")))])],1)])])},ao=[];const lo={name:"AuthException",computed:{...B(["ajaxAuthException"]),show(){return this.routePath!=="/login"&&!!this.ajaxAuthException}},methods:{onClose(){window.close()},onRefresh(){$A.reloadUrl()},onConfirm(){this.$store.state.ajaxAuthException=null,this.$store.dispatch("logout")}}},is={};var co=A(lo,oo,ao,!1,uo,null,null,null);function uo(e){for(let s in is)this[s]=is[s]}var ho=function(){return co.exports}(),po=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"common-network-exception"},[e.type==="alert"?[e.show?t("Alert",{attrs:{type:"error","show-icon":"",closable:""},on:{"on-close":e.onClose}},[e._v(e._s(e.$L("\u7F51\u7EDC\u8FDE\u63A5\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u8BBE\u7F6E\u3002")))]):e._e()]:e.type==="modal"?[t("Modal",{attrs:{value:e.show,width:416,closable:!1,"mask-closable":!1,"footer-hide":!0}},[t("div",{staticClass:"ivu-modal-confirm"},[t("div",{staticClass:"ivu-modal-confirm-head"},[t("div",{staticClass:"ivu-modal-confirm-head-icon ivu-modal-confirm-head-icon-error"},[t("Icon",{attrs:{type:"ios-close-circle"}})],1),t("div",{staticClass:"ivu-modal-confirm-head-title"},[e._v(e._s(e.$L("\u6E29\u99A8\u63D0\u793A")))])]),t("div",{staticClass:"ivu-modal-confirm-body"},[t("div",[e._v(e._s(e.ajaxNetworkException))])]),t("div",{staticClass:"ivu-modal-confirm-footer"},[t("Button",{attrs:{type:"text"},on:{click:e.onClose}},[e._v(e._s(e.$L("\u5FFD\u7565")))]),t("Button",{attrs:{type:"primary",loading:e.loadIng},on:{click:e.onCheck}},[e._v(e._s(e.$L("\u68C0\u67E5")))])],1)])])]:e._e()],2)},fo=[];const mo={name:"NetworkException",props:{type:{type:String,default:"modal"}},data(){return{timer:null,checkIng:!1,loadIng:!1}},beforeDestroy(){this.onClose()},computed:{...B(["ajaxNetworkException"]),show(){return!!this.ajaxNetworkException}},watch:{show(e){this.timer&&clearInterval(this.timer),e&&(this.timer=setInterval(this.checkNetwork,3e3))}},methods:{isNotServer(){let e=$A.getDomain(window.systemInfo.apiUrl);return this.$isSoftware&&(e==""||e=="public")},async callNetwork(){if(this.isNotServer()){this.onClose();return}await this.$store.dispatch("call",{url:"system/setting"}),this.onClose()},async checkNetwork(){if(!this.checkIng){this.checkIng=!0;try{await this.callNetwork()}catch{}this.checkIng=!1}},async onCheck(){if(!this.loadIng){this.loadIng=!0;try{await this.callNetwork()}catch{$A.messageError("\u7F51\u7EDC\u8FDE\u63A5\u5931\u8D25")}this.loadIng=!1}},onClose(){this.$store.state.ajaxNetworkException=null}}},ns={};var go=A(mo,po,fo,!1,_o,null,null,null);function _o(e){for(let s in ns)this[s]=ns[s]}var vo=function(){return go.exports}(),yo=function(){var e=this,s=e.$createElement,t=e._self._c||s;return e.show?t("div",{staticClass:"common-guide"},[t("img",{attrs:{src:e.src,width:"100%"}}),t("div",[t("Button",{attrs:{type:"default",size:"large"},on:{click:function(i){e.show=!1}}},[e._v(e._s(e.$L("\u5FCD\u5FC3\u62D2\u7EDD")))])],1)]):e._e()},wo=[];const $o={name:"GuidePage",data(){return{show:!1,src:""}},mounted(){this.src=$.apiUrl("../images/other/guide.png")},watch:{$route:{handler(e){this.show=!1,navigator.userAgent.indexOf("MicroMessenger")!==-1&&e.name=="manage-project-invite"&&(this.show=!0)},immediate:!0}}},rs={};var ko=A($o,yo,wo,!1,bo,null,null,null);function bo(e){for(let s in rs)this[s]=rs[s]}var Ao=function(){return ko.exports}(),Co=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"task-menu-icon",on:{click:e.handleClick}},[e.loadIng&&e.showLoad?t("div",{staticClass:"loading"},[t("Loading")],1):[e.task.complete_at?t("Icon",{staticClass:"completed",attrs:{type:e.completedIcon}}):t("Icon",{staticClass:"uncomplete",attrs:{type:e.icon}})]],2)},So=[];const xo={name:"TaskMenu",props:{task:{type:Object,default:()=>({})},loadStatus:{type:Boolean,default:!1},colorShow:{type:Boolean,default:!0},operationShow:{type:Boolean,default:!0},updateBefore:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},size:{type:String,default:"small"},placement:{type:String,default:"bottom"},icon:{type:String,default:"md-radio-button-off"},completedIcon:{type:String,default:"md-checkmark-circle"},projectId:{type:Number,default:0},showLoad:{type:Boolean,default:!0}},computed:{...B(["loads","taskFlows"]),...ye(["isLoad"]),loadIng(){return this.loadStatus?!0:this.isLoad(`task-${this.task.id}`)}},methods:{handleClick(e){this.$store.state.taskOperation={event:e,task:this.task,loadStatus:this.loadStatus,colorShow:this.colorShow,operationShow:this.operationShow,updateBefore:this.updateBefore,disabled:this.disabled,size:this.size,placement:this.placement,projectId:this.projectId,onUpdate:s=>{this.$emit("on-update",s)}}},updateTask(e){if(this.loadIng)return;Object.keys(e).forEach(t=>this.$set(this.task,t,e[t]));const s=Object.assign(e,{task_id:this.task.id});this.$store.dispatch("taskUpdate",s).then(({data:t,msg:i})=>{$A.messageSuccess(i),this.$store.dispatch("saveTaskBrowse",s.task_id),this.$emit("on-update",t)}).catch(({msg:t})=>{$A.modalError(t),this.$store.dispatch("getTaskOne",s.task_id).catch(()=>{})})}}},os={};var To=A(xo,Co,So,!1,Io,null,null,null);function Io(e){for(let s in os)this[s]=os[s]}var Do=function(){return To.exports}(),Eo=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"common-user-select",class:e.warpClass},[e.module?e._e():t("ul",[e._l(e.values,function(i){return[i?t("li",{key:i,on:{click:e.onSelection,contextmenu:function(n){return e.onContextRemove(n,i)}}},[t("UserAvatar",{attrs:{userid:i,size:e.avatarSize,"show-icon":e.avatarIcon,"show-name":e.avatarName}})],1):e._e()]}),!e.disabled&&(e.addIcon||e.values.length===0)?t("li",{staticClass:"add-icon",style:e.addStyle,on:{click:e.onSelection}}):e._e()],2),t("Modal",{attrs:{"class-name":"common-user-select-modal","mask-closable":!1,closable:!e.isFullscreen,fullscreen:e.isFullscreen,"footer-hide":e.isFullscreen,width:"640"},scopedSlots:e._u([{key:"header",fn:function(){return[e.isFullscreen?t("div",{staticClass:"user-modal-header"},[t("div",{staticClass:"user-modal-close",on:{click:function(i){e.showModal=!1}}},[e._v(e._s(e.$L("\u5173\u95ED")))]),t("div",{staticClass:"user-modal-title"},[t("span",{ref:"headerTitle",on:{click:e.onClickTitle}},[e._v(e._s(e.localTitle))])]),t("div",{ref:"headerSubmit",staticClass:"user-modal-submit",on:{click:e.onSubmit}},[e.submittIng>0?t("div",{staticClass:"submit-loading"},[t("Loading")],1):e._e(),e._v(" "+e._s(e.$L("\u786E\u5B9A"))+" "),e.selects.length>0?[e._v(" ("+e._s(e.selects.length)),e.multipleMax?t("span",[e._v("/"+e._s(e.multipleMax))]):e._e(),e._v(") ")]:e._e()],2)]):t("div",{staticClass:"ivu-modal-header-inner"},[e._v(e._s(e.localTitle))])]},proxy:!0},{key:"close",fn:function(){return[t("i",{staticClass:"ivu-icon ivu-icon-ios-close"})]},proxy:!0},{key:"footer",fn:function(){return[t("Button",{attrs:{type:"primary",loading:e.submittIng>0},on:{click:e.onSubmit}},[e._v(" "+e._s(e.$L("\u786E\u5B9A"))+" "),e.selects.length>0?[e._v(" ("+e._s(e.selects.length)),e.multipleMax?t("span",[e._v("/"+e._s(e.multipleMax))]):e._e(),e._v(") ")]:e._e()],2)]},proxy:!0}]),model:{value:e.showModal,callback:function(i){e.showModal=i},expression:"showModal"}},[t("div",{staticClass:"user-modal-search"},[e.selects.length>0?t("Scrollbar",{ref:"selected",staticClass:"search-selected",attrs:{"enable-x":"","enable-y":!1}},[t("ul",{staticClass:"selected-avatar-list"},e._l(e.formatSelect(e.selects),function(i){return t("li",{key:i.userid,class:{"selected-mouse":e.selectedPointerType==="mouse","selected-removable":!e.isUncancelable(i.userid)},attrs:{"data-id":i.userid},on:{pointerover:function(n){e.selectedPointerType=n.pointerType},pointerdown:function(n){e.selectedPointerType=n.pointerType},"&touchstart":function(n){e.selectedPointerType="touch"},click:function(n){return n.stopPropagation(),e.onSelectedAvatarClick(n,i.userid)}}},[i.type=="group"?[i.avatar?t("EAvatar",{staticClass:"img-avatar",attrs:{src:i.avatar,size:32}}):i.group_type=="department"?t("i",{staticClass:"taskfont icon-avatar department"},[e._v("\uE75C")]):i.group_type=="project"?t("i",{staticClass:"taskfont icon-avatar project"},[e._v("\uE6F9")]):i.group_type=="task"?t("i",{staticClass:"taskfont icon-avatar task"},[e._v("\uE6F4")]):i.group_type=="okr"?t("i",{staticClass:"taskfont icon-avatar task"},[e._v("\uE6F4")]):t("Icon",{staticClass:"icon-avatar",attrs:{type:"ios-people"}})]:t("UserAvatar",{attrs:{userid:i.userid}}),e.isUncancelable(i.userid)?e._e():t("button",{staticClass:"selected-remove",attrs:{type:"button","aria-label":e.$L("\u53D6\u6D88\u9009\u62E9"),title:e.$L("\u53D6\u6D88\u9009\u62E9")},on:{click:function(n){return n.stopPropagation(),e.onRemoveItem(i.userid)}}},[t("Icon",{attrs:{type:"ios-close"}})],1)],2)}),0)]):e._e(),t("div",{staticClass:"search-input"},[t("div",{staticClass:"search-pre"},[e.loadIng>0?t("Loading"):t("Icon",{attrs:{type:"ios-search"}})],1),t("Form",{staticClass:"search-form",attrs:{action:"javascript:void(0)"},nativeOn:{submit:function(i){return i.preventDefault(),e.$A.eeuiAppKeyboardHide.apply(null,arguments)}}},[t("Input",{attrs:{type:"search",placeholder:e.localPlaceholder,clearable:""},on:{"on-keydown":e.onKeydown,"on-keyup":e.onKeyup},model:{value:e.searchKey,callback:function(i){e.searchKey=i},expression:"searchKey"}})],1)],1)],1),e.isWhole?t("ul",{staticClass:"user-modal-switch"},e._l(e.switchItems,function(i){return t("li",{key:i.key,class:{active:e.switchActive===i.key},on:{click:function(n){e.switchActive=i.key}}},[e._v(e._s(e.$L(i.label))+" ")])}),0):e._e(),e.lists.length>0?t("Scrollbar",{staticClass:"user-modal-list"},[e.switchActive=="project"?t("ul",{staticClass:"user-modal-project"},e._l(e.lists,function(i){return t("li",{key:i.id,class:e.selectClass(i.userid_list),on:{click:function(n){return e.onSelectMultiple(i.userid_list)}}},[t("Icon",{staticClass:"user-modal-icon",attrs:{type:e.selectIcon(i.userid_list)}}),t("div",{staticClass:"user-modal-avatar"},[t("i",{staticClass:"taskfont icon-avatar"},[e._v("\uE6F9")]),t("div",{staticClass:"project-name"},[t("div",{staticClass:"label"},[e._v(e._s(i.name))]),t("div",{staticClass:"subtitle"},[e._v(" "+e._s(i.userid_list.length)+" "+e._s(e.$L("\u9879\u76EE\u6210\u5458"))+" "),t("em",{staticClass:"all"},[e._v(e._s(e.$L("\u5DF2\u5168\u9009")))]),t("em",{staticClass:"some"},[e._v(e._s(e.$L("\u5DF2\u9009\u90E8\u5206")))])])])])],1)}),0):[e.showSelectAll||e.switchActive=="contact"?t("ul",{staticClass:"sticky-top"},[t("li",{staticClass:"select-view",class:e.selectClass("all")},[e.showSelectAll?t("div",{staticClass:"user-modal-label",on:{click:e.onSelectAll}},[t("Icon",{staticClass:"user-modal-icon",attrs:{type:e.selectIcon("all")}}),t("span",[e._v(e._s(e.$L("\u5168\u9009")))])],1):e._e(),e.switchActive=="contact"?t("div",{staticClass:"user-modal-view"},[t("RadioGroup",{attrs:{type:"button","button-style":"solid"},model:{value:e.contactViewMode,callback:function(i){e.contactViewMode=i},expression:"contactViewMode"}},[t("Radio",{attrs:{label:"list"}},[e._v(e._s(e.$L("\u5217\u8868\u89C6\u56FE")))]),t("Radio",{attrs:{label:"department"}},[e._v(e._s(e.$L("\u90E8\u95E8\u89C6\u56FE")))])],1)],1):e._e()])]):e._e(),e._l(e.convertTwoList(e.lists),function(i){return[i.name!==null?t("ul",{key:`${i.id}-sticky`,staticClass:"sticky-top"},[t("li",{class:e.selectClass(i.userid_list)},[t("div",{staticClass:"user-modal-label",on:{click:function(n){return e.onSelectMultiple(i.userid_list)}}},[t("Icon",{staticClass:"user-modal-icon",attrs:{type:e.selectIcon(i.userid_list)}}),t("span",[e._v(e._s(i.name))])],1),t("div",{staticClass:"user-modal-view department-count"},[e._v(e._s(i.list.length)+" "+e._s(e.$L("\u90E8\u95E8\u6210\u5458")))])])]):e._e(),t("ul",{key:`${i.id}-list`,class:{"department-members":i.name!==null}},e._l(i.list,function(n){return t("li",{key:n.userid,class:{selected:e.selects.includes(n.userid),disabled:e.isNoChoice(n.userid)},on:{click:function(r){return e.onSelectItem(n)}}},[e.selects.includes(n.userid)?t("Icon",{staticClass:"user-modal-icon",attrs:{type:"ios-checkmark-circle"}}):e.isNoChoice(n.userid)?t("Icon",{staticClass:"user-modal-icon",attrs:{type:"ios-remove-circle-outline"}}):t("Icon",{staticClass:"user-modal-icon",attrs:{type:"ios-radio-button-off"}}),n.type=="group"?t("div",{staticClass:"user-modal-avatar"},[n.avatar?t("EAvatar",{staticClass:"img-avatar",attrs:{src:n.avatar,size:40}}):n.group_type=="department"?t("i",{staticClass:"taskfont icon-avatar department"},[e._v("\uE75C")]):n.group_type=="project"?t("i",{staticClass:"taskfont icon-avatar project"},[e._v("\uE6F9")]):n.group_type=="task"?t("i",{staticClass:"taskfont icon-avatar task"},[e._v("\uE6F4")]):n.group_type=="okr"?t("i",{staticClass:"taskfont icon-avatar task"},[e._v("\uE6F4")]):t("Icon",{staticClass:"icon-avatar",attrs:{type:"ios-people"}}),t("div",{staticClass:"avatar-name"},[t("span",[e._v(e._s(n.name))])])],1):t("UserAvatar",{staticClass:"user-modal-avatar",attrs:{userid:n.userid,size:40,"show-name":""}})],1)}),0)]})]],2):t("div",{staticClass:"user-modal-empty"},[e.waitIng>0?t("Loading"):[t("div",{staticClass:"empty-icon"},[t("Icon",{attrs:{type:"ios-cafe-outline"}})],1),t("div",{staticClass:"empty-text"},[e._v(e._s(e.$L("\u6682\u65E0\u7ED3\u679C")))])]],2)],1)],1)},Lo=[];const Mo={name:"UserSelect",props:{value:{type:[String,Number,Array],default:()=>[]},uncancelable:{type:Array,default:()=>[]},disabledChoice:{type:Array,default:()=>[]},users:{type:Array,default:null},projectId:{type:Number,default:0},noProjectId:{type:Number,default:0},dialogId:{type:Number,default:0},showBot:{type:Boolean,default:!1},hideAiBot:{type:Boolean,default:!1},showDisable:{type:Boolean,default:!1},multipleMax:{type:Number},avatarSize:{type:Number,default:28},avatarIcon:{type:Boolean,default:!0},avatarName:{type:Boolean,default:!1},addIcon:{type:Boolean,default:!0},border:{type:Boolean,default:!1},title:{type:String},placeholder:{type:String},showSelectAll:{type:Boolean,default:!0},showDialog:{type:Boolean,default:!1},module:{type:Boolean,default:!1},contextmenuRemove:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},onlyGroup:{type:Boolean,default:!1},beforeSubmit:Function},data(){return{switchItems:[{key:"recent",label:"\u6700\u8FD1"},{key:"contact",label:"\u901A\u8BAF\u5F55"},{key:"project",label:"\u9879\u76EE\u6210\u5458"}],switchActive:"recent",contactViewMode:"list",loadIng:0,waitIng:0,submittIng:0,backspaceDelete:!1,selectedPointerType:"mouse",values:[],selects:[],callback:null,closeCallback:null,recents:[],contacts:[],projects:[],showModal:!1,searchKey:null,searchCache:[]}},async mounted(){this.contactViewMode=await $A.IDBString("userSelectContactViewMode",this.contactViewMode)},watch:{value:{handler(e){typeof e=="number"?this.$emit("input",e>0?[e]:[]):typeof e=="string"&&(e=e.indexOf(",")>-1?e.split(","):[e],this.$emit("input",e.map(s=>$A.runNum(s)).filter(s=>s>0))),this.values=e},immediate:!0},isWhole:{handler(e){e||this.onlyGroup?this.switchActive="recent":this.switchActive="contact"},immediate:!0},showModal(e){e?(this.searchBefore(),this.upTitleWidth()):(this.searchKey="",this.closeCallback&&this.closeCallback()),this.$emit("on-show-change",e),$A.eeuiAppSetScrollDisabled(e&&this.windowPortrait)},searchKey(){this.searchBefore()},switchActive(){this.searchBefore()},contactViewMode(e){$A.IDBSet("userSelectContactViewMode",e)},isFullscreen(e){e&&this.upTitleWidth()},"selects.length"(){this.upTitleWidth()}},computed:{...B(["cacheDialogs"]),isFullscreen({windowWidth:e}){return e<576},isWhole({projectId:e,noProjectId:s,dialogId:t,onlyGroup:i,users:n}){return n===null&&e===0&&s===0&&t===0&&!i},lists({switchActive:e,searchKey:s,recents:t,contacts:i,projects:n,users:r}){if(r!==null)return r.filter(o=>(!this.hideAiBot||!$A.isAiBotUser(o))&&(!s||$A.strExists(`${o.nickname||o.name||""} ${o.email||""} ${o.pinyin||""}`,s))).map(o=>({...o,type:"user"}));switch(e){case"recent":return s?t.filter(o=>$A.strExists(`${o.name} ${o.email} ${o.pinyin}`,s)):t;case"contact":return this.hideAiBot?i.filter(o=>!$A.isAiBotUser(o)):i;case"project":return n}return[]},isSelectAll({lists:e,selects:s}){return e.length>0&&e.filter(t=>s.includes(t.userid)).length===e.length},warpClass(){return{"select-module":this.module,"select-border":this.border,"select-whole":this.isWhole,"select-disabled":this.disabled}},addStyle({avatarSize:e}){return{width:e+"px",height:e+"px"}},localTitle({title:e}){return e===void 0?this.$L("\u9009\u62E9\u4F1A\u5458"):e},localPlaceholder({placeholder:e}){return e===void 0?this.$L("\u641C\u7D22"):e}},methods:{upTitleWidth(){!this.isFullscreen||this.$nextTick(()=>{const e=this.$refs.headerTitle,s=this.$refs.headerSubmit;e&&s&&(e.style.width=this.windowWidth-s.clientWidth*2+"px")})},isUncancelable(e){return this.uncancelable.length===0?!1:this.uncancelable.includes(e)},isDisabled(e){return this.disabledChoice.length===0?!1:this.disabledChoice.includes(e)},isNoChoice(e){return this.isUncancelable(e)||this.isDisabled(e)},formatSelect(e){return e.map(s=>$A.leftExists(s,"d:")?this.recents.find(t=>t.userid===s):{type:"user",userid:s})},convertTwoList(e){if(this.switchActive==="contact"&&this.contactViewMode==="department"){const s=new Map,t=[];return e.forEach(i=>{i.department_info&&i.department_info.length>0?i.department_info.forEach(n=>{s.has(n.id)||s.set(n.id,{id:n.id,name:n.name,list:[]}),s.get(n.id).list.push(i)}):t.push(i)}),t.length>0&&s.set(0,{id:0,name:this.$L("\u9ED8\u8BA4\u90E8\u95E8"),list:t}),Array.from(s.values()).map(i=>({...i,userid_list:i.list.map(n=>n.userid)}))}return[{id:0,name:null,list:e}]},selectIcon(e){if(e==="all")return this.isSelectAll?"ios-checkmark-circle":"ios-radio-button-off";if($A.isArray(e)&&e.length>0){const s=e.filter(t=>this.selects.includes(t)).length;if(s===e.length)return"ios-checkmark-circle";if(s>0)return"ios-remove-circle"}return"ios-radio-button-off"},selectClass(e){switch(this.selectIcon(e)){case"ios-checkmark-circle":return"selected";case"ios-remove-circle":return"somed"}return""},searchBefore(){!this.showModal||this.users!==null||(this.switchActive==="recent"?this.searchRecent():this.switchActive==="contact"?this.searchContact():this.switchActive==="project"&&this.searchProject())},searchRecent(){this.recents=this.cacheDialogs.filter(e=>this.hideAiBot&&$A.isAiBotDialog(e)||this.onlyGroup&&e.type!="group"||e.name===void 0||e.dialog_delete===1||!this.showBot&&e.bot?!1:this.showDialog||e.type==="user").sort((e,s)=>e.top_at||s.top_at?$A.sortDay(s.top_at,e.top_at):e.todo_num>0||s.todo_num>0?$A.sortFloat(s.todo_num,e.todo_num):$A.sortDay(s.last_at,e.last_at)).map(({id:e,name:s,pinyin:t,email:i,type:n,group_type:r,avatar:o,dialog_user:a})=>({name:s,pinyin:t,email:i,type:n,group_type:r,avatar:o,userid:n==="user"?a.userid:`d:${e}`}))},searchContact(){const e=this.searchKey,s=this.searchCache.find(t=>t.type==="contact"&&t.key==e);s&&(this.contacts=s.data,!s.more)||(this.waitIng++,setTimeout(()=>{if(this.searchKey!=e){this.waitIng--;return}setTimeout(()=>{this.loadIng++},300),this.searchRequest(e,1,()=>{this.loadIng--,this.waitIng--})},this.searchCache.length>0?300:0))},searchRequest(e,s,t){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},page:s,pagesize:100,with_department:1}}).then(({data:i})=>{if(this.searchKey!=e){t();return}const n=i.data.map(a=>Object.assign(a,{type:"user"}));i.current_page>1&&n.unshift(...this.contacts),this.contacts=n;const r=this.searchCache.findIndex(a=>a.type==="contact"&&a.key==e),o={type:"contact",key:e,data:n,time:$A.dayjs().unix(),more:i.current_page-1?this.searchCache.splice(r,1,o):this.searchCache.push(o),!o.more){t();return}i.current_page%5===0?$A.modalConfirm({content:"\u6570\u636E\u5DF2\u8D85\u8FC7"+i.to+"\u6761\uFF0C\u662F\u5426\u7EE7\u7EED\u52A0\u8F7D\uFF1F",onOk:()=>{this.searchRequest(e,i.current_page+1,t)},onCancel:t}):this.searchRequest(e,i.current_page+1,t)}).catch(({msg:i})=>{s===1&&(this.contacts=[]),$A.messageWarning(i),t()})},searchProject(){const e=this.searchKey,s=this.searchCache.find(t=>t.type==="project"&&t.key==e);s&&(this.projects=s.data,!s.more)||(this.waitIng++,setTimeout(()=>{if(this.searchKey!=e){this.waitIng--;return}setTimeout(()=>{this.loadIng++},300),this.$store.dispatch("call",{url:"project/lists",data:{type:"team",keys:{name:e},getuserid:"yes",getstatistics:"no"}}).then(({data:t})=>{if(this.searchKey!=e)return;const i=t.data.map(o=>Object.assign(o,{type:"project"}));this.projects=i;const n=this.searchCache.findIndex(o=>o.type==="project"&&o.key==e),r={type:"project",key:e,data:i,time:$A.dayjs().unix(),more:!1};n>-1?this.searchCache.splice(n,1,r):this.searchCache.push(r)}).catch(({msg:t})=>{this.projects=[],$A.messageWarning(t)}).finally(t=>{this.loadIng--,this.waitIng--})},this.searchCache.length>0?300:0))},onSelection(e=null,s=null){this.disabled||this.$nextTick(t=>{this.selects=$A.cloneJSON(this.values),this.callback=typeof e=="function"?e:null,this.closeCallback=typeof s=="function"?s:null,this.showModal=!0})},onSelectItem({userid:e}){if(this.selects.includes(e)){if(this.isUncancelable(e))return;this.selects=this.selects.filter(s=>s!=e)}else{if(this.isDisabled(e))return;if(this.multipleMax&&this.selects.length>=this.multipleMax){if(this.multipleMax>1){$A.messageWarning("\u5DF2\u8D85\u8FC7\u6700\u5927\u9009\u62E9\u6570\u91CF");return}this.selects=[]}this.selects.push(e),this.$nextTick(()=>{$A.scrollIntoViewIfNeeded(this.$refs.selected.querySelector(`li[data-id="${e}"]`),!0)})}},onSelectMultiple(e){switch(this.selectIcon(e)){case"ios-checkmark-circle":const s=e.filter(i=>!this.isUncancelable(i));s.length!=e.length&&$A.messageWarning("\u90E8\u5206\u6210\u5458\u7981\u6B62\u53D6\u6D88"),this.selects=this.selects.filter(i=>!s.includes(i));break;default:const t=e.filter(i=>!this.isDisabled(i));t.length!=e.length&&$A.messageWarning("\u90E8\u5206\u6210\u5458\u7981\u6B62\u9009\u62E9"),this.selects=this.selects.concat(t.filter(i=>!this.selects.includes(i))),this.multipleMax&&this.selects.length>this.multipleMax&&($A.messageWarning("\u5DF2\u8D85\u8FC7\u6700\u5927\u9009\u62E9\u6570\u91CF"),this.selects=this.selects.slice(0,this.multipleMax));break}},onSelectAll(){if(this.isSelectAll){this.selects=$A.cloneJSON(this.uncancelable);return}this.lists.some(e=>{if(this.isDisabled(e.userid))return!1;if(this.multipleMax&&this.selects.length>=this.multipleMax)return $A.messageWarning("\u5DF2\u8D85\u8FC7\u6700\u5927\u9009\u62E9\u6570\u91CF"),!0;this.selects.includes(e.userid)||this.selects.push(e.userid)})},onContextRemove(e,s){!this.contextmenuRemove||(e.preventDefault(),e.stopPropagation(),!(this.disabled||this.submittIng>0||this.showModal||this.isUncancelable(s))&&(this.selects=$A.cloneJSON(this.values),this.onRemoveItem(s),this.onSubmit()))},onSelectedAvatarClick(e,s){const t=e.pointerType||this.selectedPointerType;(t==="touch"||t==="pen")&&this.onRemoveItem(s)},onRemoveItem(e){this.isUncancelable(e)||(this.selects=this.selects.filter(s=>s!=e))},onClickTitle(){const e=this.$refs.headerTitle,s=document.createRange();s.setStart(e,0),s.setEnd(e,e.childNodes.length||0);const t=s.getBoundingClientRect().width;Math.floor(t)>Math.floor(e.offsetWidth)&&$A.modalInfo({title:this.$L("\u5168\u6807\u9898"),content:this.localTitle,language:!1})},onSubmit(){if(this.submittIng>0)return;const e=$A.cloneJSON(this.values);this.values=$A.cloneJSON(this.selects),this.$emit("input",this.values),this.$emit("on-submit",this.values);const s=this.callback||this.beforeSubmit;if(!s){this.hide();return}const t=s(this.values);t&&t.then?(this.submittIng++,t.then(()=>{this.hide()}).catch(()=>{this.values=e,this.$emit("input",this.values)}).finally(()=>{this.submittIng--})):this.hide()},onKeydown(e){e.isComposing||e.key==="Process"||(this.backspaceDelete=e.key==="Backspace"&&!this.searchKey&&this.selects.length>0)},onKeyup(e){if(!(e.isComposing||e.key==="Process")&&e.key==="Backspace"&&this.backspaceDelete)for(let s=this.selects.length-1;s>=0;s--){const t=this.selects[s];if(!this.isUncancelable(t)){this.onRemoveItem(t),this.$nextTick(()=>{const i=this.$refs.selected,n=i&&i.scrollElement();n&&(n.scrollLeft=n.scrollWidth)});break}}},show(){this.onSelection()},hide(){this.showModal=!1}}},as={};var Po=A(Mo,Eo,Lo,!1,jo,null,null,null);function jo(e){for(let s in as)this[s]=as[s]}var Ft=function(){return Po.exports}(),Ro=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"task-move",style:e.$A.generateColorVarStyle(e.task.flow_item_color,[10],"flow-item-custom-color")},[t("Cascader",{attrs:{data:e.cascaderData,clearable:!1,placeholder:e.$L("\u8BF7\u9009\u62E9\u9879\u76EE"),"load-data":e.cascaderLoadData,filterable:""},on:{"on-visible-change":function(i){e.cascaderShow=!e.cascaderShow}},model:{value:e.cascader,callback:function(i){e.cascader=i},expression:"cascader"}}),t("div",{staticClass:"task-move-content"},[t("div",{staticClass:"task-move-content-old"},[t("div",{staticClass:"task-move-title"},[e._v(e._s(e.beforeTitle))]),t("div",{staticClass:"task-move-row"},[t("span",{staticClass:"label"},[e._v(e._s(e.$L("\u72B6\u6001"))+":")]),t("div",{staticClass:"flow"},[e.task.flow_item_name?t("span",{class:e.task.flow_item_status},[e._v(e._s(e.task.flow_item_name))]):e.task.complete_at?t("span",{staticClass:"end"},[e._v(e._s(e.$L("\u5DF2\u5B8C\u6210")))]):t("span",{staticClass:"start"},[e._v(e._s(e.$L("\u672A\u5B8C\u6210")))])])]),t("div",{staticClass:"task-move-row",class:{"not-flex":e.windowPortrait}},[t("span",{staticClass:"label"},[e._v(e._s(e.$L("\u8D1F\u8D23\u4EBA"))+":")]),t("UserSelect",{staticClass:"item-content user",attrs:{"avatar-size":28,"project-id":e.task.project_id,"add-icon":!1,disabled:""},model:{value:e.ownerUserids,callback:function(i){e.ownerUserids=i},expression:"ownerUserids"}})],1),t("div",{staticClass:"task-move-row",class:{"not-flex":e.windowPortrait}},[t("span",{staticClass:"label"},[e._v(e._s(e.$L("\u534F\u52A9\u4EBA"))+":")]),t("UserSelect",{staticClass:"item-content user",attrs:{"avatar-size":28,"project-id":e.task.project_id,"add-icon":!1,disabled:""},model:{value:e.assistUserids,callback:function(i){e.assistUserids=i},expression:"assistUserids"}})],1)]),t("div",{staticClass:"task-move-content-new"},[t("div",{staticClass:"task-move-title"},[e._v(e._s(e.afterTitle))]),t("div",{staticClass:"task-move-row"},[t("span",{staticClass:"label"},[e._v(e._s(e.$L("\u72B6\u6001"))+":")]),t("TaskMenu",{ref:`taskMenu_${e.task.id}`,attrs:{task:e.tasks,"project-id":e.cascader[0],"color-show":!1,"operation-show":!1,"load-status":e.task.loading===!0,placement:"bottom-start"},on:{"on-update":e.onStatusUpdate}}),e.updateData.flow.flow_item_name?t("div",{staticClass:"flow"},[t("span",{class:e.updateData.flow.flow_item_status,on:{click:function(i){return i.stopPropagation(),e.openMenu(i,e.tasks)}}},[e._v(e._s(e.updateData.flow.flow_item_name))])]):e._e()],1),t("div",{staticClass:"task-move-row",class:{"not-flex":e.windowPortrait}},[t("span",{staticClass:"label"},[e._v(e._s(e.$L("\u8D1F\u8D23\u4EBA"))+":")]),t("div",[t("UserSelect",{staticClass:"item-content user",attrs:{"multiple-max":10,"avatar-size":28,"project-id":e.cascader[0],"disabled-choice":e.updateData.assist_userids,"add-icon":!1},model:{value:e.updateData.owner_userids,callback:function(i){e.$set(e.updateData,"owner_userids",i)},expression:"updateData.owner_userids"}})],1)]),t("div",{staticClass:"task-move-row",class:{"not-flex":e.windowPortrait}},[t("span",{staticClass:"label"},[e._v(e._s(e.$L("\u534F\u52A9\u4EBA"))+":")]),t("div",[t("UserSelect",{staticClass:"item-content user",attrs:{"multiple-max":10,"avatar-size":28,"project-id":e.cascader[0],"disabled-choice":e.updateData.owner_userids,"add-icon":!1},model:{value:e.updateData.assist_userids,callback:function(i){e.$set(e.updateData,"assist_userids",i)},expression:"updateData.assist_userids"}})],1)])])]),t("div",{staticClass:"ivu-modal-footer"},[t("div",{staticClass:"adaption"},[t("Button",{attrs:{type:"default"},on:{click:e.close}},[e._v(e._s(e.$L("\u53D6\u6D88")))]),t("Button",{attrs:{type:"primary",loading:e.loadIng>0},on:{click:e.onConfirm}},[e._v(e._s(e.confirmText))])],1)])],1)},Oo=[];const zo={name:"TaskMove",components:{TaskMenu:Do,UserSelect:Ft},props:{value:{type:Boolean,default:!1},task:{type:Object,default:!1},type:{type:String,default:"move",validator:e=>["move","copy"].includes(e)}},data(){return{tasks:{},cascader:[],cascaderShow:!1,cascaderData:[],cascaderValue:"",cascaderLoading:0,cascaderAlready:[],loadIng:0,flowItemId:0,ownerUserids:[],assistUserids:[],updateData:{flow:{},owner_userids:[],assist_userids:[]}}},async mounted(){this.initData()},computed:{...B(["cacheProjects","cacheColumns"]),isCopy(){return this.type==="copy"},beforeTitle(){return this.$L(this.isCopy?"\u590D\u5236\u524D":"\u79FB\u52A8\u524D")},afterTitle(){return this.$L(this.isCopy?"\u590D\u5236\u540E":"\u79FB\u52A8\u540E")},confirmText(){return this.$L(this.isCopy?"\u590D\u5236":"\u786E\u5B9A")}},watch:{cascader(e){var t,i;this.tasks.flow_item_id=this.flowItemId,e[0]!=this.task.project_id?(this.updateData.flow.flow_item_id=0,this.updateData.flow.flow_item_name="",this.updateData.flow.flow_item_status=""):(this.updateData.flow.flow_item_id=this.flowItemId,this.updateData.flow.flow_item_name=this.task.flow_item_name,this.updateData.flow.flow_item_status=this.task.flow_item_status);const s=((i=(t=this.cacheProjects.find(n=>n.id==e[0]))==null?void 0:t.project_user)==null?void 0:i.map(n=>n.userid))||[];this.updateData.owner_userids=(this.task.task_user||[]).filter(n=>n.owner&&s.indexOf(n.userid)!==-1).sort((n,r)=>n.id-r.id).map(n=>n.userid),this.updateData.assist_userids=(this.task.task_user||[]).filter(n=>!n.owner&&s.indexOf(n.userid)!==-1).sort((n,r)=>n.id-r.id).map(n=>n.userid)}},methods:{initData(){this.flowItemId=this.task.flow_item_id,this.cascader=[this.task.project_id,this.task.column_id],this.ownerUserids=(this.task.task_user||[]).filter(s=>s.owner).sort((s,t)=>s.id-t.id).map(s=>s.userid),this.assistUserids=(this.task.task_user||[]).filter(s=>!s.owner).sort((s,t)=>s.id-t.id).map(s=>s.userid),this.tasks=JSON.parse(JSON.stringify(this.task));const e=$A.cloneJSON(this.cacheProjects).sort((s,t)=>s.top_at||t.top_at?$A.sortDay(t.top_at,s.top_at):t.id-s.id);this.cascaderData=e.map(s=>{const t=this.cacheColumns.filter(({project_id:n})=>n==s.id).map(n=>({value:n.id,label:n.name})),i={value:s.id,label:s.name,children:t};return t.length==0&&(i.loading=!1),i})},cascaderLoadData(e,s){e.loading=!0,this.$store.dispatch("getColumns",e.value).then(t=>{e.children=t.map(i=>({value:i.id,label:i.name})),e.loading=!1,s()}).catch(()=>{e.loading=!1,s()})},async onConfirm(){if(!this.isCopy&&this.task.project_id==this.cascader[0]&&this.task.column_id==this.cascader[1]){$A.messageError(this.$L("\u672A\u53D8\u66F4\u79FB\u52A8\u9879"));return}this.loadIng++;const e={task_id:this.task.id,project_id:this.cascader[0],column_id:this.cascader[1],flow_item_id:this.updateData.flow.flow_item_id||0,owner:this.updateData.owner_userids,assist:this.updateData.assist_userids};!this.updateData.flow.flow_item_id&&this.updateData.flow.flow_item_status&&(e.completed=this.updateData.flow.complete_at?1:0),this.$store.dispatch("call",{url:this.isCopy?"project/task/copy":"project/task/move",data:e}).then(({data:s,msg:t})=>{this.loadIng--,this.$store.dispatch("saveTask",s),$A.messageSuccess(t),this.close()}).catch(({msg:s,ret:t})=>{this.loadIng--,t==102?$A.messageError("\u8BF7\u9009\u62E9\u79FB\u52A8\u540E\u72B6\u6001"):$A.modalError(s)})},close(){this.$emit("input",!this.value)},openMenu(e,s){const t=this.$refs[`taskMenu_${s.id}`];t&&t.handleClick(e)},onStatusUpdate(e){e.flow_item_id||(this.updateData.flow.flow_item_name?(e.flow_item_status="",e.flow_item_name=""):(e.flow_item_status=e.complete_at?"end":"start",e.flow_item_name=this.$L(e.complete_at?"\u8F6C\u4E3A\u5DF2\u5B8C\u6210":"\u8F6C\u4E3A\u672A\u5B8C\u6210"))),this.tasks.flow_item_id=e.flow_item_id,this.updateData.flow=e}}},ls={};var Uo=A(zo,Ro,Oo,!1,Bo,null,null,null);function Bo(e){for(let s in ls)this[s]=ls[s]}var No=function(){return Uo.exports}(),Fo=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"common-circle",style:e.style,attrs:{"data-id":e.percent}},[t("svg",{attrs:{viewBox:"0 0 28 28"}},[t("g",{attrs:{fill:"none","fill-rule":"evenodd"}},[t("path",{staticClass:"common-circle-path",attrs:{d:"M-500-100h997V48h-997z"}}),t("g",{attrs:{"fill-rule":"nonzero"}},[t("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"}}),t("path",{staticClass:"common-circle-g-path-core",attrs:{d:e.arc(e.args)}})])])])])},Ho=[];const Wo={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 s=Math.min(360,360/100*e);return s==360?s=0:s==0&&(s=360),{x:14,y:14,r:14,start:360,end:s}}},methods:{isNumeric(e){return e!==""&&!isNaN(parseFloat(e))&&isFinite(e)},point(e,s,t,i){return[(e+Math.sin(i)*t).toFixed(2),(s-Math.cos(i)*t).toFixed(2)]},full(e,s,t,i){return i<=0?`M ${e-t} ${s} A ${t} ${t} 0 1 1 ${e+t} ${s} A ${t} ${t} 1 1 1 ${e-t} ${s} Z`:`M ${e-t} ${s} A ${t} ${t} 0 1 1 ${e+t} ${s} A ${t} ${t} 1 1 1 ${e-t} ${s} M ${e-i} ${s} A ${i} ${i} 0 1 1 ${e+i} ${s} A ${i} ${i} 1 1 1 ${e-i} ${s} Z`},part(e,s,t,i,n,r){const[o,a]=[n/360*2*Math.PI,r/360*2*Math.PI],l=[this.point(e,s,i,o),this.point(e,s,t,o),this.point(e,s,t,a),this.point(e,s,i,a)],c=a-o>Math.PI?"1":"0";return`M ${l[0][0]} ${l[0][1]} L ${l[1][0]} ${l[1][1]} A ${t} ${t} 0 ${c} 1 ${l[2][0]} ${l[2][1]} L ${l[3][0]} ${l[3][1]} A ${i} ${i} 0 ${c} 0 ${l[0][0]} ${l[0][1]} Z`},arc(e){const{x:s=0,y:t=0}=e;let{R:i=0,r:n=0,start:r,end:o}=e;return[i,n]=[Math.max(i,n),Math.min(i,n)],i<=0?"":r!==+r||o!==+o?this.full(s,t,i,n):Math.abs(r-o)<1e-6?"":Math.abs(r-o)%360<1e-6?this.full(s,t,i,n):([r,o]=[r%360,o%360],r>o&&(o+=360),this.part(s,t,i,n,r,o))}}},cs={};var Vo=A(Wo,Fo,Ho,!1,Yo,null,null,null);function Yo(e){for(let s in cs)this[s]=cs[s]}var qo=function(){return Vo.exports}();var Ko=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"markdown-body dialog-markdown",domProps:{innerHTML:e._s(e.html)},on:{click:e.onCLick}})},Go=[];const Jo={name:"DialogMarkdown",props:{text:{type:String,default:""},beforeNavigate:{type:Function,default:null}},data(){return{mdi:null}},mounted(){this.copyCodeBlock()},updated(){this.copyCodeBlock()},computed:{html({text:e}){return Pt(e)}},methods:{copyCodeBlock(){this.$el.querySelectorAll(".code-block-wrapper").forEach(s=>{const t=s.querySelector(".code-block-header__copy"),i=s.querySelector(".code-block-body");t&&i&&t.getAttribute("data-copy")!=="click"&&(t.setAttribute("data-copy","click"),t.addEventListener("click",()=>{var n,r,o;(n=navigator.clipboard)!=null&&n.writeText?navigator.clipboard.writeText((r=i.textContent)!=null?r:""):this.copyContent({text:(o=i.textContent)!=null?o:"",origin:!0})}))})},copyContent(e){const s={origin:!0,...e};let t;s.origin?t=document.createElement("textarea"):t=document.createElement("input"),t.setAttribute("readonly","readonly"),t.value=s.text,document.body.appendChild(t),t.select(),document.execCommand("copy")&&document.execCommand("copy"),document.body.removeChild(t)},onCLick(e){const s=e.target;if(s.tagName==="A"){const t=s.getAttribute("href");if(t&&t.startsWith("dootask://")){e.preventDefault(),e.stopPropagation(),this.handleDooTaskLink(t);return}}this.$emit("click",e)},handleDooTaskLink(e){var l,c,d,h,u;if(e.startsWith("dootask://link/")){this.handleDeepLink(e);return}if(e.startsWith("dootask://ai-apply/")){this.handleAiApply(e);return}if(e.startsWith("dootask://ai-dismiss/")){this.handleAiDismiss(e);return}const s=e.match(/^dootask:\/\/(\w+)\/([^/]+)(?:\/(\d+))?$/);if(!s)return;const[,t,i,n]=s,r=/^\d+$/.test(i),o=r?parseInt(i,10):null,a=n?parseInt(n,10):null;switch(t){case"task":(l=this.beforeNavigate)==null||l.call(this),this.$store.dispatch("openTask",{id:a&&a>0?a:o});break;case"project":(c=this.beforeNavigate)==null||c.call(this),this.goForward({name:"manage-project",params:{projectId:o}});break;case"file":r?((d=this.beforeNavigate)==null||d.call(this),this.goForward({name:"manage-file",params:{folderId:0,fileId:null,shakeId:o}}),this.$store.state.fileShakeId=o,setTimeout(()=>{this.$store.state.fileShakeId=0},600)):window.open($A.mainUrl("single/file/"+i));break;case"contact":(h=this.beforeNavigate)==null||h.call(this),this.$store.dispatch("openDialogUserid",o).catch(({msg:p})=>{$A.modalError(p)});break;case"message":(u=this.beforeNavigate)==null||u.call(this),this.$store.dispatch("openDialog",o).then(()=>{a&&(this.$store.state.dialogSearchMsgId=a)}).catch(({msg:p})=>{$A.modalError(p)});break}},handleDeepLink(e){var t;const s=e.match(/^dootask:\/\/link\/([a-z_]+)/);!s||!ln(s[1])||((t=this.beforeNavigate)==null||t.call(this),cn(s[1]))},handleAiApply(e){const s=e.match(/^dootask:\/\/ai-apply\/(\w+)\/(\d+)\/(\d+)(?:\?(.*))?$/);if(!s)return;const[,t,i,n,r]=s,o=new URLSearchParams(r||""),a={task_id:parseInt(i,10),msg_id:parseInt(n,10),type:t};t==="assignee"&&o.get("userid")&&(a.userid=parseInt(o.get("userid"),10)),t==="similar"&&o.get("related")&&(a.related=parseInt(o.get("related"),10)),this.$store.dispatch("applyAiSuggestion",a).then(({data:l})=>{l.msg&&this.$store.dispatch("saveDialogMsg",l.msg),this.applyAiSuggestionByType(l.type,l.task_id,l.result,o)}).catch(({msg:l})=>{$A.modalError(l)})},applyAiSuggestionByType(e,s,t,i){var n;switch(e){case"description":this.$store.dispatch("taskUpdate",{task_id:s,content:Pt(t.content)}).then(()=>{$A.messageSuccess("\u5E94\u7528\u6210\u529F")}).catch(({msg:d})=>{$A.modalError(d)});break;case"subtasks":this.createSubtasksSequentially(s,t.content||[]);break;case"assignee":const r=i.get("userid");if(!r||isNaN(parseInt(r,10))){$A.modalError("\u8BF7\u9009\u62E9\u8D1F\u8D23\u4EBA");return}const o=parseInt(r,10),a=this.$store.state.cacheTasks.find(d=>d.id===s),l=((n=a==null?void 0:a.task_user)==null?void 0:n.filter(d=>d.owner===1).map(d=>d.userid))||[],c=[...new Set([...l,o])];this.$store.dispatch("taskUpdate",{task_id:s,owner:c}).then(()=>{$A.messageSuccess("\u5E94\u7528\u6210\u529F")}).catch(({msg:d})=>{$A.modalError(d)});break;case"similar":$A.messageSuccess("\u5E94\u7528\u6210\u529F");break;default:$A.modalError("\u672A\u77E5\u7684\u5EFA\u8BAE\u7C7B\u578B")}},createSubtasksSequentially(e,s){if(!s||s.length===0){$A.modalError("\u6CA1\u6709\u6709\u6548\u7684\u5B50\u4EFB\u52A1");return}const t=s.length,i=n=>{if(n>=t){$A.messageSuccess("\u5E94\u7528\u6210\u529F");return}const r=s[n];if(!r||typeof r!="string"||!r.trim()){i(n+1);return}this.$store.dispatch("taskAddSub",{task_id:e,name:r.trim()}).then(()=>{i(n+1)}).catch(({msg:o})=>{console.warn(`\u521B\u5EFA\u5B50\u4EFB\u52A1\u5931\u8D25: ${r}`,o),i(n+1)})};i(0)},handleAiDismiss(e){const s=e.match(/^dootask:\/\/ai-dismiss\/(\w+)\/(\d+)\/(\d+)(\?.*)?$/);if(!s)return;const[,t,i,n,r]=s,o=new URLSearchParams(r||""),a={task_id:parseInt(i,10),msg_id:parseInt(n,10),type:t};t==="assignee"&&o.get("userid")&&(a.userid=parseInt(o.get("userid"),10)),t==="similar"&&o.get("related")&&(a.related=parseInt(o.get("related"),10)),this.$store.dispatch("dismissAiSuggestion",a).then(({data:l})=>{l.msg&&this.$store.dispatch("saveDialogMsg",l.msg),$A.messageSuccess(this.$L("\u5DF2\u5FFD\u7565"))}).catch(({msg:l})=>{$A.modalError(l)})}}},us={};var Qo=A(Jo,Ko,Go,!1,Xo,null,null,null);function Xo(e){for(let s in us)this[s]=us[s]}var J=function(){return Qo.exports}(),pv=Object.freeze(Object.defineProperty({__proto__:null,default:J},Symbol.toStringTag,{value:"Module"})),Zo=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"content-text no-dark-content"},[e.isOverdueMsg?t("div",{staticClass:"content-overdue"},[e._v(e._s(e.$L("\u6B64\u6D88\u606F\u5DF2\u7ECF\u8FC7\u671F")))]):e.msg.type==="md"?t("DialogMarkdown",{attrs:{text:e.msg.text},on:{click:e.viewText}}):t("pre",{domProps:{innerHTML:e._s(e.$A.formatTextMsg(e.msg.text,e.userId))},on:{click:e.viewText}}),e.translation?[t("div",{staticClass:"content-divider"},[t("span"),t("div",{staticClass:"divider-label translation-label",on:{click:e.viewText}},[e._v(e._s(e.translation.label))]),t("span")]),e.msg.type==="md"?t("DialogMarkdown",{staticClass:"content-translation",attrs:{text:e.translation.content}}):t("pre",{domProps:{innerHTML:e._s(e.$A.formatTextMsg(e.translation.content,e.userId))}})]:e._e()],2)},ea=[];const ta={components:{DialogMarkdown:J},props:{msgId:Number,msg:Object,createdAt:String},computed:{...B(["cacheTranslations","cacheTranslationLanguage"]),translation({cacheTranslations:e,msgId:s,cacheTranslationLanguage:t}){const i=e.find(n=>n.key===`msg-${s}`&&n.language===t);return i||null},isOverdueMsg({msg:e,createdAt:s}){return e.text==="..."&&$A.dayjs(s).isBefore($A.daytz().subtract(10,"minute"))}},methods:{viewText(e){this.$emit("viewText",e)}}},ds={};var sa=A(ta,Zo,ea,!1,ia,null,null,null);function ia(e){for(let s in ds)this[s]=ds[s]}var na=function(){return sa.exports}(),ra=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"content-text no-dark-content"},[e.msg.type==="md"?t("DialogMarkdown",{attrs:{text:e.msg.text},on:{click:e.viewText}}):t("pre",{domProps:{innerHTML:e._s(e.$A.formatTextMsg(e.msg.text,e.userId))},on:{click:e.viewText}}),t("div",{staticClass:"content-longtext-footer"},[t("span",{on:{click:e.downFile}},[e._v(e._s(e.$L("\u67E5\u770B\u8BE6\u60C5")))])])],1)},oa=[];const aa={components:{DialogMarkdown:J},props:{msgId:Number,msg:Object},methods:{viewText(e){this.$emit("viewText",e)},downFile(){this.$emit("downFile")}}},hs={};var la=A(aa,ra,oa,!1,ca,null,null,null);function ca(e){for(let s in hs)this[s]=hs[s]}var ua=function(){return la.exports}(),da=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("span",{staticClass:"local-file-status-icon",attrs:{"aria-hidden":"true"}},[e.status==="downloading"?t("Loading"):e.status==="available"?t("svg",{attrs:{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M3.5 16V6A2 2 0 0 1 5.5 4H8.2A2 2 0 0 1 9.6 4.6L11 6H18.5A2 2 0 0 1 20.5 8V9",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round"}}),t("path",{attrs:{d:"M5.2 19.5H17.7A2 2 0 0 0 19.6 18.1L21.2 12.8A1.5 1.5 0 0 0 19.8 10.8H8.3A2 2 0 0 0 6.4 12.2L3.6 17A1.7 1.7 0 0 0 5.2 19.5Z",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round"}})]):t("svg",{attrs:{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M12 3V15M7.5 10.5L12 15L16.5 10.5M5 20H19",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round"}})])],1)},ha=[];const pa={name:"LocalFileStatusIcon",props:{status:{type:String,default:"missing"}}},ps={};var fa=A(pa,da,ha,!1,ma,"f4b4ba4c",null,null);function ma(e){for(let s in ps)this[s]=ps[s]}var ga=function(){return fa.exports}(),_a=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{class:`content-file ${e.msg.type}`},[t("div",{staticClass:"dialog-file"},[e.msg.type==="img"?t("img",{staticClass:"file-img",style:e.imageStyle(e.msg),attrs:{src:e.imageSrc(e.msg)},on:{click:e.viewFile}}):e.isVideoFile(e.msg)?t("div",{staticClass:"file-video",style:e.imageStyle(e.msg),on:{click:e.viewFile}},[e.msg.thumb?t("img",{attrs:{src:e.msg.thumb}}):t("video",{attrs:{width:e.imageStyle(e.msg,"width"),height:e.imageStyle(e.msg,"height")}},[t("source",{attrs:{src:e.msg.path,type:"video/mp4"}})]),e._m(0)]):t("div",{staticClass:"file-box",on:{click:e.downFile}},[t("img",{staticClass:"file-thumb",attrs:{src:e.msg.thumb}}),t("div",{staticClass:"file-info"},[t("div",{staticClass:"file-name",attrs:{title:e.msg.name}},[e._v(e._s(e.msg.name))]),t("div",{staticClass:"file-size"},[e._v(e._s(e.$A.bytesToSize(e.msg.size)))])]),e.$Electron?t("button",{staticClass:"file-local-action",attrs:{type:"button",title:e.localActionTitle,"aria-label":e.localActionTitle,disabled:e.localFileStatus==="downloading"},on:{click:function(i){return i.stopPropagation(),e.handleLocalAction.apply(null,arguments)}}},[t("LocalFileStatusIcon",{attrs:{status:e.localFileStatus}})],1):e._e()]),e.msg.percentage?t("div",{staticClass:"file-percentage"},[t("span",{style:e.fileStyle(e.msg.percentage)})]):e._e()])])},va=[function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"file-play"},[t("div",{staticClass:"play-icon no-dark-content"},[t("i",{staticClass:"taskfont"},[e._v("\uE745")])])])}];const ya={components:{LocalFileStatusIcon:ga},props:{msgId:{type:[Number,String],default:0},msg:Object},data(){return{localFileStatus:"missing",removeDownloadListener:null}},computed:{localActionTitle(){return this.localFileStatus==="available"?this.$L("\u5728\u6587\u4EF6\u5939\u4E2D\u663E\u793A"):this.$L("\u4E0B\u8F7D")}},watch:{msgId(){this.refreshLocalFileStatus()}},mounted(){!this.$Electron||(this.refreshLocalFileStatus(),this.removeDownloadListener=$A.Electron.listener("downloadItemsChanged",()=>{this.refreshLocalFileStatus()}))},beforeDestroy(){typeof this.removeDownloadListener=="function"&&this.removeDownloadListener()},methods:{viewFile(){this.$emit("viewFile")},downFile(){this.$emit("downFile")},async refreshLocalFileStatus(){if(!this.$Electron||!this.msgId){this.localFileStatus="missing";return}try{const e=await $A.Electron.sendAsync("downloadManager",{action:"messageFileStatus",msgId:this.msgId});this.localFileStatus=(e==null?void 0:e.status)||"missing"}catch{this.localFileStatus="missing"}},async handleLocalAction(){if(this.localFileStatus!=="downloading"){if(this.localFileStatus==="available"){try{if(await $A.Electron.sendAsync("downloadManager",{action:"showMessageFile",msgId:this.msgId}))return}catch{}this.localFileStatus="missing";return}this.localFileStatus="downloading",this.$store.dispatch("downUrl",$A.apiUrl(`dialog/msg/download?msg_id=${this.msgId}`)),setTimeout(()=>this.refreshLocalFileStatus(),500)}},fileStyle(e){return e?{width:`${e}%`}:{}},imageStyle({width:e,height:s,thumb:t},i="style"){if(e&&s){const n=$A.imageRatioExceed(e,s,3);$A.imageRatioJudge(t)&&n>0&&(e>s?e=s*n:s=e*n);let r=220,o=220,a=e,l=s;return(e>r||s>o)&&(e>s?(a=r,l=s*(r/e)):(a=e*(o/s),l=o)),i==="width"?a:i==="height"?l:{width:a+"px",height:l+"px"}}return i==="width"||i==="height"?0:{}},imageSrc({width:e,height:s,thumb:t}){const i=$A.imageRatioExceed(e,s,3);return $A.imageRatioJudge(t)&&i>0&&(t=$A.thumbRestore(t)+`/crop/ratio:${i},percentage:320x0`),t},isVideoFile(e){return e.type==="file"&&e.ext==="mp4"&&e.width>0&&e.height>0}}},fs={};var wa=A(ya,_a,va,!1,$a,null,null,null);function $a(e){for(let s in fs)this[s]=fs[s]}var ka=function(){return wa.exports}(),ba=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"content-record no-dark-content"},[t("div",{staticClass:"dialog-record",class:{playing:e.audioPlaying===e.msg.path},style:e.recordStyle(e.msg),on:{click:e.playRecord}},[t("div",{staticClass:"record-time"},[e._v(e._s(e.recordDuration(e.msg.duration)))]),t("div",{staticClass:"record-icon taskfont"})]),e.msg.text?[e._m(0),t("div",{staticClass:"content-additional"},[e._v(e._s(e.msg.text))])]:e._e(),e.translation?[t("div",{staticClass:"content-divider"},[t("span"),t("div",{staticClass:"divider-label translation-label",on:{click:e.viewText}},[e._v(e._s(e.translation.label))]),t("span")]),t("div",{staticClass:"content-additional"},[e._v(e._s(e.translation.content))])]:e._e()],2)},Aa=[function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"content-divider"},[t("span",{staticClass:"divider-full"})])}];const Ca={props:{msgId:Number,msg:Object},computed:{...B(["audioPlaying","cacheTranslations","cacheTranslationLanguage"]),translation({cacheTranslations:e,msgId:s,cacheTranslationLanguage:t}){const i=e.find(n=>n.key===`msg-${s}`&&n.language===t);return i||null}},methods:{playRecord(){this.$emit("playRecord")},recordStyle(e){const{duration:s}=e;return{width:50+Math.min(180,Math.floor(s/200))+"px"}},recordDuration(e){const s=Math.floor(e/6e4),t=Math.floor(e/1e3)%60;return s>0?`${s}:${t}\u2033`:`${Math.max(1,t)}\u2033`},viewText(e){this.$emit("viewText",e)}}},ms={};var Sa=A(Ca,ba,Aa,!1,xa,null,null,null);function xa(e){for(let s in ms)this[s]=ms[s]}var Ta=function(){return Sa.exports}(),Ia=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"content-location no-dark-content"},[t("div",{staticClass:"location-title"},[e._v(e._s(e.msg.title))]),e.msg.address?t("div",{staticClass:"location-address"},[e._v(e._s(e.msg.address))]):e._e(),t("div",{staticClass:"location-preview",style:e.imageStyle(e.msg)})])},Da=[];const Ea={props:{msg:Object},methods:{imageStyle({width:e,height:s,thumb:t}){if(!t)return{};const i={backgroundImage:`url(${t})`};if(e&&s){const n=$A.scaleToScale(e,s,600);i.backgroundSize=`${n.width}px ${n.height}px`}return i}}},gs={};var La=A(Ea,Ia,Da,!1,Ma,null,null,null);function Ma(e){for(let s in gs)this[s]=gs[s]}var Pa=function(){return La.exports}(),ja=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"content-meeting no-dark-content"},[t("ul",{staticClass:"dialog-meeting",class:{"meeting-end":!!e.msg.end_at}},[t("li",[t("em",[e._v(e._s(e.$L("\u4F1A\u8BAE\u4E3B\u9898")))]),e._v(" "+e._s(e.msg.name)+" ")]),t("li",[t("em",[e._v(e._s(e.$L("\u4F1A\u8BAE\u521B\u5EFA\u4EBA")))]),t("UserAvatar",{attrs:{userid:e.msg.userid,"show-icon":!1,"show-name":!0}})],1),t("li",[t("em",[e._v(e._s(e.$L("\u9891\u9053ID")))]),e._v(" "+e._s(e.channelID(e.msg.meetingid))+" ")]),e.msg.end_at?t("li",{staticClass:"meeting-operation"},[e._v(" "+e._s(e.$L("\u4F1A\u8BAE\u5DF2\u7ED3\u675F"))+" ")]):t("li",{staticClass:"meeting-operation",on:{click:e.openMeeting}},[e._v(" "+e._s(e.$L("\u70B9\u51FB\u52A0\u5165\u4F1A\u8BAE"))+" "),t("i",{staticClass:"taskfont"},[e._v("\uE68B")])])])])},Ra=[];const Oa={props:{msg:Object},methods:{openMeeting(){this.$emit("openMeeting")},channelID(e){return e.replace(/^(.{3})(.{3})(.*)$/,"$1 $2 $3")}}},_s={};var za=A(Oa,ja,Ra,!1,Ua,null,null,null);function Ua(e){for(let s in _s)this[s]=_s[s]}var Ba=function(){return za.exports}(),Na=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"content-text content-word-chain no-dark-content"},[t("pre",{domProps:{innerHTML:e._s(e.$A.formatTextMsg(e.msg.text,e.userId))}}),t("ul",{class:{expand:e.unfoldWordChainData.indexOf(e.msgId)!==-1}},[e._l((e.msg.list||[]).filter(function(i){return i.type=="case"}),function(i){return t("li",[e._v(" "+e._s(e.$L("[example_label].\u4F8B"))+" "+e._s(i.text)+" ")])}),e._l((e.msg.list||[]).filter(function(i){return i.type!="case"&&i.text}),function(i,n){return t("li",[n==2&&e.msg.list.length>4?t("span",{staticClass:"expand",on:{click:e.unfoldWordChain}},[e._v(" ..."+e._s(e.$L("\u5C55\u5F00"))+"... ")]):e._e(),t("span",{class:{shrink:n>=2&&e.msg.list.length>4}},[e._v(" "+e._s(n+1)+". "+e._s(i.text)+" ")])])}),t("li",{staticClass:"participate",on:{click:e.onWordChain}},[e._v(" "+e._s(e.$L("\u53C2\u4E0E\u63A5\u9F99"))+" "),t("i",{staticClass:"taskfont"},[e._v("\uE703")])])],2)])},Fa=[];const Ha={props:{msg:Object,msgId:Number,unfoldWordChainData:Array},methods:{unfoldWordChain(){this.$emit("unfoldWordChain")},onWordChain(){this.$emit("onWordChain")}}},vs={};var Wa=A(Ha,Na,Fa,!1,Va,null,null,null);function Va(e){for(let s in vs)this[s]=vs[s]}var Ya=function(){return Wa.exports}(),qa=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"content-text content-word-vote no-dark-content"},[t("div",{staticClass:"vote-msg-head"},[t("i",{staticClass:"taskfont"},[e._v("\uE7FD")]),t("em",[e._v(e._s(e.$L("\u6295\u7968")))]),t("span",[e._v(e._s(e.msg.multiple==1?e.$L("\u591A\u9009"):e.$L("\u5355\u9009")))]),t("span",[e._v(e._s(e.msg.anonymous==1?e.$L("\u533F\u540D"):e.$L("\u5B9E\u540D")))])]),t("pre",{domProps:{innerHTML:e._s(e.$A.formatTextMsg(e.msg.text,e.userId))}}),(e.msg.votes||[]).filter(function(i){return i.userid==e.userId}).length==0?[e.msg.multiple==0?t("RadioGroup",{attrs:{vertical:""},model:{value:e.voteData[e.msg.uuid],callback:function(i){e.$set(e.voteData,e.msg.uuid,i)},expression:"voteData[msg.uuid]"}},e._l(e.msg.list||[],function(i,n){return t("Radio",{key:n,attrs:{label:i.id}},[e._v(" "+e._s(i.text)+" ")])}),1):t("CheckboxGroup",{model:{value:e.voteData[e.msg.uuid],callback:function(i){e.$set(e.voteData,e.msg.uuid,i)},expression:"voteData[msg.uuid]"}},e._l(e.msg.list||[],function(i,n){return t("Checkbox",{key:n,attrs:{label:i.id}},[e._v(" "+e._s(i.text)+" ")])}),1),t("div",{staticClass:"btn-row"},[(e.voteData[e.msg.uuid]||[]).length==0?t("Button",{staticClass:"ivu-btn-grey",attrs:{disabled:""}},[e._v(e._s(e.$L("\u8BF7\u9009\u62E9\u540E\u6295\u7968")))]):t("Button",{staticClass:"no-dark-content",attrs:{type:"warning",loading:e.msg._loadIng>0},on:{click:function(i){return e.onVote("vote")}}},[e._v(e._s(e.$L("\u7ACB\u5373\u6295\u7968")))])],1)]:[t("div",{staticClass:"vote-result-body"},[t("ul",e._l(e.msg.list||[],function(i){return t("li",[t("div",{staticClass:"vote-option-title"},[e._v(e._s(i.text))]),t("div",{staticClass:"ticket-num"},[t("span",[e._v(e._s(e.getVoteProgress(e.msg,i.id).num)+e._s(e.$L("[vote_unit].\u7968")))]),t("span",[e._v(e._s(e.getVoteProgress(e.msg,i.id).progress+"%"))])]),t("Progress",{attrs:{percent:Number(e.getVoteProgress(e.msg,i.id).progress),"stroke-width":5,"hide-info":""}}),e.msg.anonymous==0?t("div",{staticClass:"avatar-row"},[e._l((e.msg.votes||[]).filter(function(n){return n.votes.indexOf(i.id)!=-1}),function(n){return[t("UserAvatar",{attrs:{userid:n.userid,size:18}})]})],2):e._e()],1)}),0)]),e.msg.state==1&&e.msg.userid==e.userId?t("div",{staticClass:"btn-row"},[t("Button",{attrs:{type:"warning",loading:e.msg._loadIng>0},on:{click:function(i){return e.onVote("again")}}},[e._v(e._s(e.$L("\u518D\u6B21\u53D1\u9001")))]),t("Button",{attrs:{type:"warning",loading:e.msg._loadIng>0},on:{click:function(i){return e.onVote("finish")}}},[e._v(e._s(e.$L("\u7ED3\u675F\u6295\u7968")))])],1):e._e()]],2)},Ka=[];const Ga={props:{msg:Object,voteData:Object},methods:{getVoteProgress(e,s){const t=e.votes.filter(n=>(n.votes||"").indexOf(s)!=-1).length,i=t?(t/e.votes.length*100).toFixed(2):"0.00";return{num:t,progress:i}},onVote(e){this.$emit("onVote",e)}}},ys={};var Ja=A(Ga,qa,Ka,!1,Qa,null,null,null);function Qa(e){for(let s in ys)this[s]=ys[s]}var Xa=function(){return Ja.exports}(),Za=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[e._v(" "+e._s(e.$L("\u60A8\u597D\uFF0C\u6211\u662F\u673A\u5668\u4EBA"))+"\uFF1A"+e._s(e.msg.data.nickname)+"\uFF0C"+e._s(e.$L("\u6211\u7684\u673A\u5668\u4EBAID\u662F"))+"\uFF1A"+e._s(e.msg.data.userid)+"\uFF0C"+e._s(e.$L("\u4F60\u53EF\u4EE5\u53D1\u9001"))+" "),t("span",{staticClass:"mark-color mark-set"},[e._v("/help")]),e._v(" "+e._s(e.$L("\u67E5\u770B\u6211\u652F\u6301\u4EC0\u4E48\u547D\u4EE4"))+"\u3002 ")])},el=[];const tl={props:{msg:Object},data(){return{}},computed:{},methods:{}},ws={};var sl=A(tl,Za,el,!1,il,null,null,null);function il(e){for(let s in ws)this[s]=ws[s]}var nl=function(){return sl.exports}(),rl=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("DialogMarkdown",{attrs:{text:e.content}})},ol=[];const al={components:{DialogMarkdown:J},props:{msg:Object},data(){return{}},computed:{IDLabel(){return this.msg.manager?this.$L("\u673A\u5668\u4EBAID"):""},content(){return["### {{\u60A8\u53EF\u4EE5\u901A\u8FC7\u53D1\u9001\u4EE5\u4E0B\u547D\u4EE4\u6765\u63A7\u5236\u6211}}","","| {{\u547D\u4EE4}} | {{\u8BF4\u660E}} |","| ------ | ------ |",this.msg.manager?"| ~/list~ | {{\u673A\u5668\u4EBA\u5217\u8868}} |":null,this.msg.manager?"| ~/newbot ({{\u673A\u5668\u4EBA\u540D\u79F0}})~ | {{\u521B\u5EFA\u673A\u5668\u4EBA}} |":null,this.msg.manager?null:"| ~/info~ | {{\u67E5\u770B\u673A\u5668\u4EBA\u8BE6\u60C5}} |","","### {{\u4FEE\u6539\u673A\u5668\u4EBA}}","","| {{\u547D\u4EE4}} | {{\u8BF4\u660E}} |","| ------ | ------ |","| ~/setname:IDLabel: ({{\u673A\u5668\u4EBA\u540D\u79F0}})~ | {{\u4FEE\u6539\u673A\u5668\u4EBA\u540D\u79F0}} |","| ~/deletebot:IDLabel:~ | {{\u5220\u9664\u673A\u5668\u4EBA}} |","| ~/clearday:IDLabel: ({{\u5929\u6570}})~ | {{\u8BBE\u7F6E\u4FDD\u7559\u6D88\u606F\u65F6\u95F4\uFF08\u9ED8\u8BA430\u5929\uFF09}} |","| ~/webhook:IDLabel: [url]~ | {{\u8BBE\u7F6E\u6D88\u606FWebhook\uFF08\u8BE6\u60C5\u8BF7\u770B API\u63A5\u53E3\u6587\u6863\uFF09}} |","","### {{\u673A\u5668\u4EBA\u8BBE\u7F6E}}","","| {{\u547D\u4EE4}} | {{\u8BF4\u660E}} |","| ------ | ------ |","| ~/token:IDLabel:~ | {{\u751F\u6210Token\u4EE4\u724C}} |","| ~/revoke:IDLabel:~ | {{\u64A4\u9500\u673A\u5668\u4EBAToken\u4EE4\u724C}} |","","### {{\u4F1A\u8BDD\u7BA1\u7406}}","","| {{\u547D\u4EE4}} | {{\u8BF4\u660E}} |","| ------ | ------ |","| ~/dialog:IDLabel: [{{\u641C\u7D22\u5173\u952E\u8BCD}}]~ | {{\u67E5\u770B\u4F1A\u8BDDID}} |","","### {{API\u63A5\u53E3\u6587\u6863}}","","| {{\u547D\u4EE4}} | {{\u8BF4\u660E}} |","| ------ | ------ |","| ~/api~ | {{\u67E5\u770B\u63A5\u53E3\u5217\u8868}} |"].filter(Boolean).map(e=>e.replace(/~([^~]+)~/g,(s,t)=>''+t+" ").replace(/\{\{([^}]+)\}\}/g,(s,t)=>this.$L(t)).replace(/:IDLabel:/g," {"+this.IDLabel+"}")).join(`
-`)}}},$s={};var ll=A(al,rl,ol,!1,cl,null,null,null);function cl(e){for(let s in $s)this[s]=$s[s]}var ul=function(){return ll.exports}(),dl=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("DialogMarkdown",{attrs:{text:e.content}})},hl=[];const pl={components:{DialogMarkdown:J},props:{msg:Object},data(){return{}},computed:{content(){return["### {{\u6211\u7684\u673A\u5668\u4EBA}}","","| ID | {{\u540D\u79F0}} | {{\u6E05\u7406\u65F6\u95F4}} | Webhook |","| ------ | ------ | ------ | ------ |",...this.msg.data.map(e=>"| "+e.userid+" | "+e.nickname+" | "+e.clear_day+" | "+(e.webhook_url?"\u221A":"")+" |")].map(e=>e.replace(/\{\{([^}]+)\}\}/g,(s,t)=>this.$L(t))).join(`
-`)}},methods:{}},ks={};var fl=A(pl,dl,hl,!1,ml,null,null,null);function ml(e){for(let s in ks)this[s]=ks[s]}var gl=function(){return fl.exports}(),_l=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("DialogMarkdown",{attrs:{text:e.content}})},vl=[];const yl={components:{DialogMarkdown:J},props:{msg:Object},data(){return{}},computed:{content(){return["### {{\u673A\u5668\u4EBA\u8BE6\u60C5}}","","| {{\u5C5E\u6027}} | {{\u7ED3\u679C}} |","| ------ | ------ |","| {{\u673A\u5668\u4EBAID}} | "+this.msg.data.userid+" |","| {{\u673A\u5668\u4EBA\u540D\u79F0}} | "+this.msg.data.nickname+" |","| {{\u4FDD\u7559\u6D88\u606F\u65F6\u95F4}} | "+this.msg.data.clear_day+" |","| {{\u6700\u540E\u4E00\u6B21\u6E05\u7406\u65F6\u95F4}} | "+this.msg.data.clear_at+" |"].map(e=>e.replace(/\{\{([^}]+)\}\}/g,(s,t)=>this.$L(t))).join(`
-`)}},methods:{}},bs={};var wl=A(yl,_l,vl,!1,$l,null,null,null);function $l(e){for(let s in bs)this[s]=bs[s]}var kl=function(){return wl.exports}(),bl=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("DialogMarkdown",{attrs:{text:e.content}})},Al=[];const Cl={components:{DialogMarkdown:J},props:{msg:Object},data(){return{}},computed:{content(){return["### {{\u521B\u5EFA\u6210\u529F}}","","| {{\u5C5E\u6027}} | {{\u7ED3\u679C}} |","| ------ | ------ |","| {{\u673A\u5668\u4EBAID}} | "+this.msg.data.userid+" |","| {{\u673A\u5668\u4EBA\u540D\u79F0}} | "+this.msg.data.nickname+" |"].map(e=>e.replace(/\{\{([^}]+)\}\}/g,(s,t)=>this.$L(t))).join(`
-`)}},methods:{}},As={};var Sl=A(Cl,bl,Al,!1,xl,null,null,null);function xl(e){for(let s in As)this[s]=As[s]}var Tl=function(){return Sl.exports}(),Il=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("DialogMarkdown",{attrs:{text:e.content}})},Dl=[];const El={components:{DialogMarkdown:J},props:{msg:Object},data(){return{}},computed:{content(){return["### {{\u8BBE\u7F6E\u540D\u79F0\u6210\u529F}}","","| {{\u5C5E\u6027}} | {{\u7ED3\u679C}} |","| ------ | ------ |","| {{\u673A\u5668\u4EBAID}} | "+this.msg.data.userid+" |","| {{\u673A\u5668\u4EBA\u540D\u79F0}} | "+this.msg.data.nickname+" |"].map(e=>e.replace(/\{\{([^}]+)\}\}/g,(s,t)=>this.$L(t))).join(`
-`)}},methods:{}},Cs={};var Ll=A(El,Il,Dl,!1,Ml,null,null,null);function Ml(e){for(let s in Cs)this[s]=Cs[s]}var Pl=function(){return Ll.exports}(),jl=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("DialogMarkdown",{attrs:{text:e.content}})},Rl=[];const Ol={components:{DialogMarkdown:J},props:{msg:Object},data(){return{}},computed:{content(){return["### {{\u5220\u9664\u6210\u529F}}","","| {{\u5C5E\u6027}} | {{\u7ED3\u679C}} |","| ------ | ------ |","| {{\u673A\u5668\u4EBAID}} | "+this.msg.data.userid+" |","| {{\u673A\u5668\u4EBA\u540D\u79F0}} | "+this.msg.data.nickname+" |"].map(e=>e.replace(/\{\{([^}]+)\}\}/g,(s,t)=>this.$L(t))).join(`
-`)}},methods:{}},Ss={};var zl=A(Ol,jl,Rl,!1,Ul,null,null,null);function Ul(e){for(let s in Ss)this[s]=Ss[s]}var Bl=function(){return zl.exports}(),Nl=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("DialogMarkdown",{attrs:{text:e.content}})},Fl=[];const Hl={components:{DialogMarkdown:J},props:{msg:Object},data(){return{}},computed:{content(){return["### {{\u751F\u6210Token\u4EE4\u724C}}","","| {{\u5C5E\u6027}} | {{\u7ED3\u679C}} |","| ------ | ------ |","| {{\u673A\u5668\u4EBAID}} | "+this.msg.data.userid+" |","| {{\u673A\u5668\u4EBA\u540D\u79F0}} | "+this.msg.data.nickname+" |","| Token | "+this.msg.data.token+" |"].map(e=>e.replace(/\{\{([^}]+)\}\}/g,(s,t)=>this.$L(t))).join(`
-`)}},methods:{}},xs={};var Wl=A(Hl,Nl,Fl,!1,Vl,null,null,null);function Vl(e){for(let s in xs)this[s]=xs[s]}var Yl=function(){return Wl.exports}(),ql=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("DialogMarkdown",{attrs:{text:e.content}})},Kl=[];const Gl={components:{DialogMarkdown:J},props:{msg:Object},data(){return{}},computed:{content(){return["### {{\u64A4\u9500\u673A\u5668\u4EBAToken\u4EE4\u724C}}","","| {{\u5C5E\u6027}} | {{\u7ED3\u679C}} |","| ------ | ------ |","| {{\u673A\u5668\u4EBAID}} | "+this.msg.data.userid+" |","| {{\u673A\u5668\u4EBA\u540D\u79F0}} | "+this.msg.data.nickname+" |"].map(e=>e.replace(/\{\{([^}]+)\}\}/g,(s,t)=>this.$L(t))).join(`
-`)}},methods:{}},Ts={};var Jl=A(Gl,ql,Kl,!1,Ql,null,null,null);function Ql(e){for(let s in Ts)this[s]=Ts[s]}var Xl=function(){return Jl.exports}(),Zl=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("DialogMarkdown",{attrs:{text:e.content}})},ec=[];const tc={components:{DialogMarkdown:J},props:{msg:Object},data(){return{}},computed:{content(){return["### {{\u8BBE\u7F6EWebhook\u5730\u5740}}","","| {{\u5C5E\u6027}} | {{\u7ED3\u679C}} |","| ------ | ------ |","| {{\u673A\u5668\u4EBAID}} | "+this.msg.data.userid+" |","| {{\u673A\u5668\u4EBA\u540D\u79F0}} | "+this.msg.data.nickname+" |","| {{Webhook\u5730\u5740}} | "+this.msg.data.webhook_url+" |"].map(e=>e.replace(/\{\{([^}]+)\}\}/g,(s,t)=>this.$L(t))).join(`
-`)}},methods:{}},Is={};var sc=A(tc,Zl,ec,!1,ic,null,null,null);function ic(e){for(let s in Is)this[s]=Is[s]}var nc=function(){return sc.exports}(),rc=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("DialogMarkdown",{attrs:{text:e.content}})},oc=[];const ac={components:{DialogMarkdown:J},props:{msg:Object},data(){return{}},computed:{content(){return["### {{\u8BBE\u7F6E\u4FDD\u7559\u6D88\u606F\u65F6\u95F4}}","","| {{\u5C5E\u6027}} | {{\u7ED3\u679C}} |","| ------ | ------ |","| {{\u673A\u5668\u4EBAID}} | "+this.msg.data.userid+" |","| {{\u673A\u5668\u4EBA\u540D\u79F0}} | "+this.msg.data.nickname+" |","| {{\u6E05\u7406\u5468\u671F}} | "+this.msg.data.clear_day+" {{\u5929}} |","| {{\u4E0B\u6B21\u6E05\u7406}} | "+this.msg.data.clear_at+" |"].map(e=>e.replace(/\{\{([^}]+)\}\}/g,(s,t)=>this.$L(t))).join(`
-`)}},methods:{}},Ds={};var lc=A(ac,rc,oc,!1,cc,null,null,null);function cc(e){for(let s in Ds)this[s]=Ds[s]}var uc=function(){return lc.exports}(),dc=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("DialogMarkdown",{attrs:{text:e.content}})},hc=[];const pc={components:{DialogMarkdown:J},props:{msg:Object},data(){return{}},computed:{content(){return["### {{\u673A\u5668\u4EBA}} "+this.msg.data.nickname+" (ID:"+this.msg.data.userid+") {{\u5DF2\u52A0\u5165\u7684\u4F1A\u8BDD}}\uFF1A","","| {{\u4F1A\u8BDDID}} | {{\u4F1A\u8BDD\u540D\u79F0}} |","| ------ | ------ |",...this.msg.data.list.map(e=>"| "+e.id+" | "+e.name+(e.type==="user"?"{{ (\u4E2A\u4EBA)}}":"")+" |")].map(e=>e.replace(/\{\{([^}]+)\}\}/g,(s,t)=>this.$L(t))).join(`
-`)}},methods:{}},Es={};var fc=A(pc,dc,hc,!1,mc,null,null,null);function mc(e){for(let s in Es)this[s]=Es[s]}var gc=function(){return fc.exports}(),_c=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("DialogMarkdown",{attrs:{text:e.content}})},vc=[];const yc={components:{DialogMarkdown:J},props:{msg:Object},data(){return{isChinese:/^zh/.test(M),chineseTemplate:`
+ }`)},enableDarkMode(){!this.utils.supportMode()||this.isDarkEnabled()||(this.createDarkStyle(),this.utils.addClass(document.body,"dark-mode-reverse"))},disableDarkMode(){!this.isDarkEnabled()||(this.utils.removeElementById("dark-mode-style"),this.utils.removeClass(document.body,"dark-mode-reverse"))},autoDarkMode(){let t=e.matchMedia&&e.matchMedia("(prefers-color-scheme: dark)").matches;$A.isEEUIApp&&(t=$A.eeuiAppGetThemeName()==="dark"),t?this.enableDarkMode():this.disableDarkMode()},isDarkEnabled(){return this.utils.hasClass(document.body,"dark-mode-reverse")}}}),e.$A=s})(window);var Er=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("transition",{attrs:{name:"fade"}},[e.floatSpinnerLoad>0?t("div",{staticClass:"common-float-spinner"},[t("Loading",{staticClass:"common-float-circular"})],1):e._e()])},Lr=[];function A(e,s,t,i,n,r,o,a){var l=typeof e=="function"?e.options:e;s&&(l.render=s,l.staticRenderFns=t,l._compiled=!0),i&&(l.functional=!0),r&&(l._scopeId="data-v-"+r);var c;if(o?(c=function(u){u=u||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!u&&typeof __VUE_SSR_CONTEXT__!="undefined"&&(u=__VUE_SSR_CONTEXT__),n&&n.call(this,u),u&&u._registeredComponents&&u._registeredComponents.add(o)},l._ssrRegister=c):n&&(c=a?function(){n.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:n),c)if(l.functional){l._injectStyles=c;var d=l.render;l.render=function(p,g){return c.call(g),d(p,g)}}else{var h=l.beforeCreate;l.beforeCreate=h?[].concat(h,c):[c]}return{exports:e,options:l}}const Mr={name:"FloatSpinner",computed:{...B(["floatSpinnerLoad"])}},Zt={};var Pr=A(Mr,Er,Lr,!1,jr,null,null,null);function jr(e){for(let s in Zt)this[s]=Zt[s]}var Rr=function(){return Pr.exports}();const x=gr();var Or=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"common-right-bottom"},[e.showSSO?t("div",{staticClass:"common-right-bottom-link",on:{click:e.useSSOLogin}},[e._v(" "+e._s(e.$L("\u4F7F\u7528 SSO \u767B\u5F55"))+" ")]):e._e(),e.showDown&&e.clientDownloadUrl?t("a",{staticClass:"common-right-bottom-link",attrs:{href:e.clientDownloadUrl,target:"_blank"}},[t("Icon",{attrs:{type:"md-download"}}),e._v(" "+e._s(e.$L("\u5BA2\u6237\u7AEF\u4E0B\u8F7D"))+" ")],1):e._e(),e.showPrivacy?t("a",{staticClass:"common-right-bottom-link",attrs:{target:"_blank",href:e.$A.apiUrl("privacy")}},[e._v(" \u300A"+e._s(e.$L("\u9690\u79C1\u653F\u7B56"))+"\u300B ")]):e._e(),t("Modal",{attrs:{closable:!1,"mask-closable":!1,"class-name":"common-right-bottom-notification"},model:{value:e.updateShow,callback:function(i){e.updateShow=i},expression:"updateShow"}},[t("div",{attrs:{slot:"header"},slot:"header"},[t("div",{staticClass:"notification-head"},[t("div",{staticClass:"notification-title"},[e._v(e._s(e.$L("\u53D1\u73B0\u5BA2\u6237\u7AEF\u65B0\u7248\u672C")))]),t("Tag",{attrs:{color:"volcano"}},[e._v("v"+e._s(e.systemVersion)+" -> v"+e._s(e.updateVersion))])],1),e.$Platform==="mac"?t("div",{staticClass:"notification-tip"},[e._v(e._s(e.$L("\u79BB\u6700\u65B0\u7248\u672C\u53EA\u6709\u4E00\u6B65\u4E4B\u9065\u4E86\uFF01\u91CD\u65B0\u542F\u52A8\u5E94\u7528\u5373\u53EF\u5B8C\u6210\u66F4\u65B0\u3002")))]):e._e()]),t("Scrollbar",{attrs:{"class-name":"notification-body"}},[t("VMPreview",{attrs:{value:e.updateNote}})],1),t("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[t("Button",{attrs:{type:"default"},on:{click:function(i){e.updateShow=!1}}},[e._v(e._s(e.$L("\u7A0D\u540E")))]),t("Button",{attrs:{type:"primary",loading:e.updateIng},on:{click:e.updateQuitAndInstall}},[e._v(e._s(e.$L(e.$Platform==="mac"?"\u91CD\u65B0\u542F\u52A8":"\u7ACB\u5373\u66F4\u65B0")))])],1)],1)],1)},zr=[];const Ur=()=>D(()=>import("./preview.7d35fa9c.js"),["js/build/preview.7d35fa9c.js","js/build/openpgp_hi.15f91b1d.js","js/build/index.40a8e116.js","js/build/jquery.6e4daff9.js","js/build/@babel.9410f858.js","js/build/dayjs.d20a4841.js","js/build/localforage.743dffdd.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/vuex.cc7cb26e.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),Br={name:"RightBottom",components:{VMPreview:Ur},data(){return{loadIng:0,apiVersion:"",systemVersion:window.systemInfo.version,updateVersion:"",updateNote:"",updateShow:!1,updateBottomShow:!1,updateIng:!1}},mounted(){this.prefetchResources(),this.checkVersion(),this.$Electron&&(x.on("updateNotification",this.onUpdateShow),this.$Electron.listener("updateDownloaded",e=>{this.$store.state.clientNewVersion=e.version,this.updateVersion=e.version,this.updateNote=e.releaseNotes||this.$L("\u6CA1\u6709\u66F4\u65B0\u63CF\u8FF0\u3002"),this.updateShow=!$A.strExists(this.updateNote,`[${this.updateVersion}-Silence]`)})),x.on("openDownloadClient",this.openDownloadClient)},beforeDestroy(){x.off("updateNotification",this.onUpdateShow),x.off("openDownloadClient",this.openDownloadClient)},watch:{updateShow(e){e&&(this.updateBottomShow=!0)}},computed:{...B(["clientDownloadUrl"]),showSSO(){return this.$isSoftware&&["login"].includes(this.routeName)},showDown(){return this.$Electron||this.$isEEUIApp||this.windowTouch?!1:this.routeName==="login"},showPrivacy(){return $A.isDooServer()&&this.$isEEUIApp&&["login"].includes(this.routeName)}},methods:{onUpdateShow(){this.updateShow=!0},openDownloadClient(){this.clientDownloadUrl&&window.open(this.clientDownloadUrl,"_blank")},isNotServer(){let e=$A.getDomain(window.systemInfo.apiUrl);return this.$isSoftware&&(e==""||e=="public")},prefetchResources(){this.isNotServer()||this.$Electron&&$A.$isSubElectron||at.get($A.apiUrl("system/prefetch")).then(({status:e,data:s})=>{e===200&&s.forEach(t=>{const i=document.createElement("link");i.rel="prefetch",i.href=t,i.onload=()=>{document.head.removeChild(i)},i.onerror=()=>{document.head.removeChild(i)},document.head.appendChild(i)})}).catch(e=>{})},checkVersion(){this.isNotServer()||(at.get($A.apiUrl("system/version")).then(({status:e,data:s})=>{e===200&&(this.apiVersion=s.version||"",this.compareVersion(this.apiVersion,"0.19.0")===-1&&$A.modalWarning({title:"\u6E29\u99A8\u63D0\u793A",message:`\u670D\u52A1\u5668\uFF08${$A.mainDomain()}\uFF09\u63A5\u53E3\u7248\u672C\u8FC7\u4F4E\uFF0C\u90E8\u5206\u529F\u80FD\u53EF\u80FD\u65E0\u6CD5\u6B63\u5E38\u4F7F\u7528\u3002`}),this.$Electron?this.$Electron.sendMessage("updateCheckAndDownload",{apiVersion:this.apiVersion}):this.getDownloadUrl(s.publish))}).catch(e=>{}),this.__checkVersion&&clearTimeout(this.__checkVersion),this.__checkVersion=setTimeout(this.checkVersion,600*1e3))},getDownloadUrl(e){if(!!$A.isJson(e))switch(e.provider){case"generic":this.$store.state.clientDownloadUrl=`${e.url}/latest`;break;case"github":(async s=>{let t="cacheAppdown::"+this.apiVersion,i=await $A.IDBJson(t),n=600;if(i.time&&i.time+n>$A.dayjs().unix()){this.$store.state.clientDownloadUrl=i.data.html_url;return}this.loadIng>0||(this.loadIng++,at.get(`https://api.github.com/repos/${e.owner}/${e.repo}/releases`).then(({status:r,data:o})=>{this.loadIng--,r===200&&$A.isArray(o)&&(i.time=$A.dayjs().unix(),i.data=o.find(({tag_name:a})=>this.compareVersion(this.tagVersion(a),this.apiVersion)===0)||{},$A.IDBSave(t,i),this.$store.state.clientDownloadUrl=i.data.html_url)}).catch(()=>{this.loadIng--}))})();break}},updateQuitAndInstall(){this.updateIng=!0,setTimeout(()=>{this.$Electron.sendMessage("updateQuitAndInstall",{updateTitle:this.$L("\u6B63\u5728\u5B89\u88C5\u66F4\u65B0\uFF0C\u8BF7\u7A0D\u5019...")})},301)},useSSOLogin(){x.emit("useSSOLogin",!0)},tagVersion(e){return e?$A.leftDelete(e.toLowerCase(),"v"):""},compareVersion(e,s){let t=0,i=0;if(e===s)return 0;const n=(r,o)=>{let a=o;for(;r[a]!=="."&&al?1:-1;t=r+1,i=o+1}for(;t0)return 1;t=r+1}for(;i0)return-1;i=r+1}return 0}}},es={};var Nr=A(Br,Or,zr,!1,Fr,null,null,null);function Fr(e){for(let s in es)this[s]=es[s]}var Hr=function(){return Nr.exports}(),Wr=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("Modal",{attrs:{mask:!1,"mask-closable":!1,"footer-hide":!0,"transition-names":["",""],"class-name":e.viewMode==="desktop"?"common-preview-image-view":"common-preview-image-swipe",fullscreen:""},model:{value:e.show,callback:function(i){e.show=i},expression:"show"}},[e.list.length>0?[e.viewVideo?t("PreviewVideoView",{attrs:{item:e.viewVideo}}):e.viewMode==="desktop"?t("PreviewImageView",{attrs:{"initial-index":e.index,"url-list":e.list,infinite:""}}):e.viewMode==="mobile"?t("PreviewImageSwipe",{attrs:{"initial-index":e.index,"url-list":e.list},on:{"on-destroy":function(i){e.show=!1}}}):e._e()]:e._e()],2)},Vr=[];const Yr=()=>D(()=>import("./video.8becb11f.js"),["js/build/video.8becb11f.js","js/build/video.6c8ed952.css","js/build/jquery.6e4daff9.js","js/build/@babel.9410f858.js","js/build/dayjs.d20a4841.js","js/build/localforage.743dffdd.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),qr=()=>D(()=>import("./view.61b3adb3.js"),["js/build/view.61b3adb3.js","js/build/view.344e05c9.css","js/build/element-sea.f8a64907.js","js/build/vue.adba9046.js","js/build/@babel.9410f858.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js","js/build/jquery.6e4daff9.js","js/build/dayjs.d20a4841.js","js/build/localforage.743dffdd.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js"]),Kr=()=>D(()=>import("./swipe.169af9f5.js"),["js/build/swipe.169af9f5.js","js/build/swipe.7b577070.css","js/build/openpgp_hi.15f91b1d.js","js/build/photoswipe.a7142509.js","js/build/photoswipe.0fb72215.css","js/build/jquery.6e4daff9.js","js/build/@babel.9410f858.js","js/build/dayjs.d20a4841.js","js/build/localforage.743dffdd.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/vuex.cc7cb26e.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),Gr={name:"PreviewImage",components:{PreviewVideoView:Yr,PreviewImageSwipe:Kr,PreviewImageView:qr},props:{value:{type:Boolean,default:!1},index:{type:Number,default:0},list:{type:Array,default:()=>[]},mode:{type:String,default:null}},data(){return{show:this.value}},watch:{value(e){this.show=e},show(e){this.value!==e&&this.$emit("input",e)}},computed:{viewVideo(){return this.list.length===0?!1:this.list.find(({src:s})=>/\.mp4$/i.test(s))||!1},viewMode(){return this.mode?this.mode:this.windowTouch?"mobile":"desktop"}}},ts={};var Jr=A(Gr,Wr,Vr,!1,Qr,null,null,null);function Qr(e){for(let s in ts)this[s]=ts[s]}var Xr=function(){return Jr.exports}(),Zr=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("PreviewImage",{attrs:{index:e.previewImageIndex,list:e.previewImageList},model:{value:e.show,callback:function(i){e.show=i},expression:"show"}})},eo=[];const to={name:"PreviewImageState",components:{PreviewImage:Xr},computed:{...B(["previewImageIndex","previewImageList"])},data(){return{show:!1}},watch:{show(e){e?this.$store.state.previewImageIndex=Math.min(Math.max(this.$store.state.previewImageIndex,0),this.$store.state.previewImageList.length-1):(this.$store.state.previewImageIndex=0,this.$store.state.previewImageList=[])},previewImageList(e){if(e.length>0)if($A.isEEUIApp||$A.isElectron){let s=Math.min(Math.max(this.$store.state.previewImageIndex,0),this.$store.state.previewImageList.length-1),t=e.map(r=>$A.isJson(r)?r.src:r),i=50;if(t.length>i){const r=[];let o=0;for(;r.length=0&&r.unshift(t[a]),la===t[s]),t=r}const n=t.find(r=>/\.mp4$/i.test(r));n?this.videoPreview(n):this.imagePreview(s,t)}else this.show=!0}},methods:{videoPreview(e){$A.isEEUIApp?$A.eeuiAppSendMessage({language:$A.eeuiAppConvertLanguage(),action:"videoPreview",path:e}):$A.isElectron&&this.$Electron.sendMessage("openMediaViewer",{type:"video",lang:M,video:e})},imagePreview(e,s){$A.isEEUIApp?$A.eeuiAppSendMessage({language:$A.eeuiAppConvertLanguage(),action:"picturePreview",position:e,paths:s}):$A.isElectron&&this.$Electron.sendMessage("openMediaViewer",{type:"image",lang:M,currentIndex:e,images:s})}}},ss={};var so=A(to,Zr,eo,!1,io,null,null,null);function io(e){for(let s in ss)this[s]=ss[s]}var no=function(){return so.exports}(),ro=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("Modal",{attrs:{value:e.show,width:416,closable:!1,"mask-closable":!1,"footer-hide":!0}},[t("div",{staticClass:"ivu-modal-confirm"},[t("div",{staticClass:"ivu-modal-confirm-head"},[t("div",{staticClass:"ivu-modal-confirm-head-icon ivu-modal-confirm-head-icon-error"},[t("Icon",{attrs:{type:"ios-close-circle"}})],1),t("div",{staticClass:"ivu-modal-confirm-head-title"},[e._v(e._s(e.$L("\u6E29\u99A8\u63D0\u793A")))])]),t("div",{staticClass:"ivu-modal-confirm-body"},[t("div",[e._v(e._s(e.ajaxAuthException))])]),e.$isSubElectron?t("div",{staticClass:"ivu-modal-confirm-footer"},[t("Button",{attrs:{type:"text"},on:{click:e.onClose}},[e._v(e._s(e.$L("\u5173\u95ED\u7A97\u53E3")))]),t("Button",{attrs:{type:"primary"},on:{click:e.onRefresh}},[e._v(e._s(e.$L("\u5237\u65B0")))])],1):t("div",{staticClass:"ivu-modal-confirm-footer"},[t("Button",{attrs:{type:"primary"},on:{click:e.onConfirm}},[e._v(e._s(e.$L("\u786E\u5B9A")))])],1)])])},oo=[];const ao={name:"AuthException",computed:{...B(["ajaxAuthException"]),show(){return this.routePath!=="/login"&&!!this.ajaxAuthException}},methods:{onClose(){window.close()},onRefresh(){$A.reloadUrl()},onConfirm(){this.$store.state.ajaxAuthException=null,this.$store.dispatch("logout")}}},is={};var lo=A(ao,ro,oo,!1,co,null,null,null);function co(e){for(let s in is)this[s]=is[s]}var uo=function(){return lo.exports}(),ho=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"common-network-exception"},[e.type==="alert"?[e.show?t("Alert",{attrs:{type:"error","show-icon":"",closable:""},on:{"on-close":e.onClose}},[e._v(e._s(e.$L("\u7F51\u7EDC\u8FDE\u63A5\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u8BBE\u7F6E\u3002")))]):e._e()]:e.type==="modal"?[t("Modal",{attrs:{value:e.show,width:416,closable:!1,"mask-closable":!1,"footer-hide":!0}},[t("div",{staticClass:"ivu-modal-confirm"},[t("div",{staticClass:"ivu-modal-confirm-head"},[t("div",{staticClass:"ivu-modal-confirm-head-icon ivu-modal-confirm-head-icon-error"},[t("Icon",{attrs:{type:"ios-close-circle"}})],1),t("div",{staticClass:"ivu-modal-confirm-head-title"},[e._v(e._s(e.$L("\u6E29\u99A8\u63D0\u793A")))])]),t("div",{staticClass:"ivu-modal-confirm-body"},[t("div",[e._v(e._s(e.ajaxNetworkException))])]),t("div",{staticClass:"ivu-modal-confirm-footer"},[t("Button",{attrs:{type:"text"},on:{click:e.onClose}},[e._v(e._s(e.$L("\u5FFD\u7565")))]),t("Button",{attrs:{type:"primary",loading:e.loadIng},on:{click:e.onCheck}},[e._v(e._s(e.$L("\u68C0\u67E5")))])],1)])])]:e._e()],2)},po=[];const fo={name:"NetworkException",props:{type:{type:String,default:"modal"}},data(){return{timer:null,checkIng:!1,loadIng:!1}},beforeDestroy(){this.onClose()},computed:{...B(["ajaxNetworkException"]),show(){return!!this.ajaxNetworkException}},watch:{show(e){this.timer&&clearInterval(this.timer),e&&(this.timer=setInterval(this.checkNetwork,3e3))}},methods:{isNotServer(){let e=$A.getDomain(window.systemInfo.apiUrl);return this.$isSoftware&&(e==""||e=="public")},async callNetwork(){if(this.isNotServer()){this.onClose();return}await this.$store.dispatch("call",{url:"system/setting"}),this.onClose()},async checkNetwork(){if(!this.checkIng){this.checkIng=!0;try{await this.callNetwork()}catch{}this.checkIng=!1}},async onCheck(){if(!this.loadIng){this.loadIng=!0;try{await this.callNetwork()}catch{$A.messageError("\u7F51\u7EDC\u8FDE\u63A5\u5931\u8D25")}this.loadIng=!1}},onClose(){this.$store.state.ajaxNetworkException=null}}},ns={};var mo=A(fo,ho,po,!1,go,null,null,null);function go(e){for(let s in ns)this[s]=ns[s]}var _o=function(){return mo.exports}(),vo=function(){var e=this,s=e.$createElement,t=e._self._c||s;return e.show?t("div",{staticClass:"common-guide"},[t("img",{attrs:{src:e.src,width:"100%"}}),t("div",[t("Button",{attrs:{type:"default",size:"large"},on:{click:function(i){e.show=!1}}},[e._v(e._s(e.$L("\u5FCD\u5FC3\u62D2\u7EDD")))])],1)]):e._e()},yo=[];const wo={name:"GuidePage",data(){return{show:!1,src:""}},mounted(){this.src=$.apiUrl("../images/other/guide.png")},watch:{$route:{handler(e){this.show=!1,navigator.userAgent.indexOf("MicroMessenger")!==-1&&e.name=="manage-project-invite"&&(this.show=!0)},immediate:!0}}},rs={};var $o=A(wo,vo,yo,!1,ko,null,null,null);function ko(e){for(let s in rs)this[s]=rs[s]}var bo=function(){return $o.exports}(),Ao=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"task-menu-icon",on:{click:e.handleClick}},[e.loadIng&&e.showLoad?t("div",{staticClass:"loading"},[t("Loading")],1):[e.task.complete_at?t("Icon",{staticClass:"completed",attrs:{type:e.completedIcon}}):t("Icon",{staticClass:"uncomplete",attrs:{type:e.icon}})]],2)},Co=[];const So={name:"TaskMenu",props:{task:{type:Object,default:()=>({})},loadStatus:{type:Boolean,default:!1},colorShow:{type:Boolean,default:!0},operationShow:{type:Boolean,default:!0},updateBefore:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},size:{type:String,default:"small"},placement:{type:String,default:"bottom"},icon:{type:String,default:"md-radio-button-off"},completedIcon:{type:String,default:"md-checkmark-circle"},projectId:{type:Number,default:0},showLoad:{type:Boolean,default:!0}},computed:{...B(["loads","taskFlows"]),...ye(["isLoad"]),loadIng(){return this.loadStatus?!0:this.isLoad(`task-${this.task.id}`)}},methods:{handleClick(e){this.$store.state.taskOperation={event:e,task:this.task,loadStatus:this.loadStatus,colorShow:this.colorShow,operationShow:this.operationShow,updateBefore:this.updateBefore,disabled:this.disabled,size:this.size,placement:this.placement,projectId:this.projectId,onUpdate:s=>{this.$emit("on-update",s)}}},updateTask(e){if(this.loadIng)return;Object.keys(e).forEach(t=>this.$set(this.task,t,e[t]));const s=Object.assign(e,{task_id:this.task.id});this.$store.dispatch("taskUpdate",s).then(({data:t,msg:i})=>{$A.messageSuccess(i),this.$store.dispatch("saveTaskBrowse",s.task_id),this.$emit("on-update",t)}).catch(({msg:t})=>{$A.modalError(t),this.$store.dispatch("getTaskOne",s.task_id).catch(()=>{})})}}},os={};var xo=A(So,Ao,Co,!1,To,null,null,null);function To(e){for(let s in os)this[s]=os[s]}var Io=function(){return xo.exports}(),Do=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"common-user-select",class:e.warpClass},[e.module?e._e():t("ul",[e._l(e.values,function(i){return[i?t("li",{key:i,on:{click:e.onSelection,contextmenu:function(n){return e.onContextRemove(n,i)}}},[t("UserAvatar",{attrs:{userid:i,size:e.avatarSize,"show-icon":e.avatarIcon,"show-name":e.avatarName}})],1):e._e()]}),!e.disabled&&(e.addIcon||e.values.length===0)?t("li",{staticClass:"add-icon",style:e.addStyle,on:{click:e.onSelection}}):e._e()],2),t("Modal",{attrs:{"class-name":"common-user-select-modal","mask-closable":!1,closable:!e.isFullscreen,fullscreen:e.isFullscreen,"footer-hide":e.isFullscreen,width:"640"},scopedSlots:e._u([{key:"header",fn:function(){return[e.isFullscreen?t("div",{staticClass:"user-modal-header"},[t("div",{staticClass:"user-modal-close",on:{click:function(i){e.showModal=!1}}},[e._v(e._s(e.$L("\u5173\u95ED")))]),t("div",{staticClass:"user-modal-title"},[t("span",{ref:"headerTitle",on:{click:e.onClickTitle}},[e._v(e._s(e.localTitle))])]),t("div",{ref:"headerSubmit",staticClass:"user-modal-submit",on:{click:e.onSubmit}},[e.submittIng>0?t("div",{staticClass:"submit-loading"},[t("Loading")],1):e._e(),e._v(" "+e._s(e.$L("\u786E\u5B9A"))+" "),e.selects.length>0?[e._v(" ("+e._s(e.selects.length)),e.multipleMax?t("span",[e._v("/"+e._s(e.multipleMax))]):e._e(),e._v(") ")]:e._e()],2)]):t("div",{staticClass:"ivu-modal-header-inner"},[e._v(e._s(e.localTitle))])]},proxy:!0},{key:"close",fn:function(){return[t("i",{staticClass:"ivu-icon ivu-icon-ios-close"})]},proxy:!0},{key:"footer",fn:function(){return[t("Button",{attrs:{type:"primary",loading:e.submittIng>0},on:{click:e.onSubmit}},[e._v(" "+e._s(e.$L("\u786E\u5B9A"))+" "),e.selects.length>0?[e._v(" ("+e._s(e.selects.length)),e.multipleMax?t("span",[e._v("/"+e._s(e.multipleMax))]):e._e(),e._v(") ")]:e._e()],2)]},proxy:!0}]),model:{value:e.showModal,callback:function(i){e.showModal=i},expression:"showModal"}},[t("div",{staticClass:"user-modal-search"},[e.selects.length>0?t("Scrollbar",{ref:"selected",staticClass:"search-selected",attrs:{"enable-x":"","enable-y":!1}},[t("ul",{staticClass:"selected-avatar-list"},e._l(e.formatSelect(e.selects),function(i){return t("li",{key:i.userid,class:{"selected-mouse":e.selectedPointerType==="mouse","selected-removable":!e.isUncancelable(i.userid)},attrs:{"data-id":i.userid},on:{pointerover:function(n){e.selectedPointerType=n.pointerType},pointerdown:function(n){e.selectedPointerType=n.pointerType},"&touchstart":function(n){e.selectedPointerType="touch"},click:function(n){return n.stopPropagation(),e.onSelectedAvatarClick(n,i.userid)}}},[i.type=="group"?[i.avatar?t("EAvatar",{staticClass:"img-avatar",attrs:{src:i.avatar,size:32}}):i.group_type=="department"?t("i",{staticClass:"taskfont icon-avatar department"},[e._v("\uE75C")]):i.group_type=="project"?t("i",{staticClass:"taskfont icon-avatar project"},[e._v("\uE6F9")]):i.group_type=="task"?t("i",{staticClass:"taskfont icon-avatar task"},[e._v("\uE6F4")]):i.group_type=="okr"?t("i",{staticClass:"taskfont icon-avatar task"},[e._v("\uE6F4")]):t("Icon",{staticClass:"icon-avatar",attrs:{type:"ios-people"}})]:t("UserAvatar",{attrs:{userid:i.userid}}),e.isUncancelable(i.userid)?e._e():t("button",{staticClass:"selected-remove",attrs:{type:"button","aria-label":e.$L("\u53D6\u6D88\u9009\u62E9"),title:e.$L("\u53D6\u6D88\u9009\u62E9")},on:{click:function(n){return n.stopPropagation(),e.onRemoveItem(i.userid)}}},[t("Icon",{attrs:{type:"ios-close"}})],1)],2)}),0)]):e._e(),t("div",{staticClass:"search-input"},[t("div",{staticClass:"search-pre"},[e.loadIng>0?t("Loading"):t("Icon",{attrs:{type:"ios-search"}})],1),t("Form",{staticClass:"search-form",attrs:{action:"javascript:void(0)"},nativeOn:{submit:function(i){return i.preventDefault(),e.$A.eeuiAppKeyboardHide.apply(null,arguments)}}},[t("Input",{attrs:{type:"search",placeholder:e.localPlaceholder,clearable:""},on:{"on-keydown":e.onKeydown,"on-keyup":e.onKeyup},model:{value:e.searchKey,callback:function(i){e.searchKey=i},expression:"searchKey"}})],1)],1)],1),e.isWhole?t("ul",{staticClass:"user-modal-switch"},e._l(e.switchItems,function(i){return t("li",{key:i.key,class:{active:e.switchActive===i.key},on:{click:function(n){e.switchActive=i.key}}},[e._v(e._s(e.$L(i.label))+" ")])}),0):e._e(),e.lists.length>0?t("Scrollbar",{staticClass:"user-modal-list"},[e.switchActive=="project"?t("ul",{staticClass:"user-modal-project"},e._l(e.lists,function(i){return t("li",{key:i.id,class:e.selectClass(i.userid_list),on:{click:function(n){return e.onSelectMultiple(i.userid_list)}}},[t("Icon",{staticClass:"user-modal-icon",attrs:{type:e.selectIcon(i.userid_list)}}),t("div",{staticClass:"user-modal-avatar"},[t("i",{staticClass:"taskfont icon-avatar"},[e._v("\uE6F9")]),t("div",{staticClass:"project-name"},[t("div",{staticClass:"label"},[e._v(e._s(i.name))]),t("div",{staticClass:"subtitle"},[e._v(" "+e._s(i.userid_list.length)+" "+e._s(e.$L("\u9879\u76EE\u6210\u5458"))+" "),t("em",{staticClass:"all"},[e._v(e._s(e.$L("\u5DF2\u5168\u9009")))]),t("em",{staticClass:"some"},[e._v(e._s(e.$L("\u5DF2\u9009\u90E8\u5206")))])])])])],1)}),0):[e.showSelectAll||e.switchActive=="contact"?t("ul",{staticClass:"sticky-top"},[t("li",{staticClass:"select-view",class:e.selectClass("all")},[e.showSelectAll?t("div",{staticClass:"user-modal-label",on:{click:e.onSelectAll}},[t("Icon",{staticClass:"user-modal-icon",attrs:{type:e.selectIcon("all")}}),t("span",[e._v(e._s(e.$L("\u5168\u9009")))])],1):e._e(),e.switchActive=="contact"?t("div",{staticClass:"user-modal-view"},[t("RadioGroup",{attrs:{type:"button","button-style":"solid"},model:{value:e.contactViewMode,callback:function(i){e.contactViewMode=i},expression:"contactViewMode"}},[t("Radio",{attrs:{label:"list"}},[e._v(e._s(e.$L("\u5217\u8868\u89C6\u56FE")))]),t("Radio",{attrs:{label:"department"}},[e._v(e._s(e.$L("\u90E8\u95E8\u89C6\u56FE")))])],1)],1):e._e()])]):e._e(),e._l(e.convertTwoList(e.lists),function(i){return[i.name!==null?t("ul",{key:`${i.id}-sticky`,staticClass:"sticky-top"},[t("li",{class:e.selectClass(i.userid_list)},[t("div",{staticClass:"user-modal-label",on:{click:function(n){return e.onSelectMultiple(i.userid_list)}}},[t("Icon",{staticClass:"user-modal-icon",attrs:{type:e.selectIcon(i.userid_list)}}),t("span",[e._v(e._s(i.name))])],1),t("div",{staticClass:"user-modal-view department-count"},[e._v(e._s(i.list.length)+" "+e._s(e.$L("\u90E8\u95E8\u6210\u5458")))])])]):e._e(),t("ul",{key:`${i.id}-list`,class:{"department-members":i.name!==null}},e._l(i.list,function(n){return t("li",{key:n.userid,class:{selected:e.selects.includes(n.userid),disabled:e.isNoChoice(n.userid)},on:{click:function(r){return e.onSelectItem(n)}}},[e.selects.includes(n.userid)?t("Icon",{staticClass:"user-modal-icon",attrs:{type:"ios-checkmark-circle"}}):e.isNoChoice(n.userid)?t("Icon",{staticClass:"user-modal-icon",attrs:{type:"ios-remove-circle-outline"}}):t("Icon",{staticClass:"user-modal-icon",attrs:{type:"ios-radio-button-off"}}),n.type=="group"?t("div",{staticClass:"user-modal-avatar"},[n.avatar?t("EAvatar",{staticClass:"img-avatar",attrs:{src:n.avatar,size:40}}):n.group_type=="department"?t("i",{staticClass:"taskfont icon-avatar department"},[e._v("\uE75C")]):n.group_type=="project"?t("i",{staticClass:"taskfont icon-avatar project"},[e._v("\uE6F9")]):n.group_type=="task"?t("i",{staticClass:"taskfont icon-avatar task"},[e._v("\uE6F4")]):n.group_type=="okr"?t("i",{staticClass:"taskfont icon-avatar task"},[e._v("\uE6F4")]):t("Icon",{staticClass:"icon-avatar",attrs:{type:"ios-people"}}),t("div",{staticClass:"avatar-name"},[t("span",[e._v(e._s(n.name))])])],1):t("UserAvatar",{staticClass:"user-modal-avatar",attrs:{userid:n.userid,size:40,"show-name":""}})],1)}),0)]})]],2):t("div",{staticClass:"user-modal-empty"},[e.waitIng>0?t("Loading"):[t("div",{staticClass:"empty-icon"},[t("Icon",{attrs:{type:"ios-cafe-outline"}})],1),t("div",{staticClass:"empty-text"},[e._v(e._s(e.$L("\u6682\u65E0\u7ED3\u679C")))])]],2)],1)],1)},Eo=[];const Lo={name:"UserSelect",props:{value:{type:[String,Number,Array],default:()=>[]},uncancelable:{type:Array,default:()=>[]},disabledChoice:{type:Array,default:()=>[]},users:{type:Array,default:null},projectId:{type:Number,default:0},noProjectId:{type:Number,default:0},dialogId:{type:Number,default:0},showBot:{type:Boolean,default:!1},hideAiBot:{type:Boolean,default:!1},showDisable:{type:Boolean,default:!1},multipleMax:{type:Number},avatarSize:{type:Number,default:28},avatarIcon:{type:Boolean,default:!0},avatarName:{type:Boolean,default:!1},addIcon:{type:Boolean,default:!0},border:{type:Boolean,default:!1},title:{type:String},placeholder:{type:String},showSelectAll:{type:Boolean,default:!0},showDialog:{type:Boolean,default:!1},module:{type:Boolean,default:!1},contextmenuRemove:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},onlyGroup:{type:Boolean,default:!1},beforeSubmit:Function},data(){return{switchItems:[{key:"recent",label:"\u6700\u8FD1"},{key:"contact",label:"\u901A\u8BAF\u5F55"},{key:"project",label:"\u9879\u76EE\u6210\u5458"}],switchActive:"recent",contactViewMode:"list",loadIng:0,waitIng:0,submittIng:0,backspaceDelete:!1,selectedPointerType:"mouse",values:[],selects:[],callback:null,closeCallback:null,recents:[],contacts:[],projects:[],showModal:!1,searchKey:null,searchCache:[]}},async mounted(){this.contactViewMode=await $A.IDBString("userSelectContactViewMode",this.contactViewMode)},watch:{value:{handler(e){typeof e=="number"?this.$emit("input",e>0?[e]:[]):typeof e=="string"&&(e=e.indexOf(",")>-1?e.split(","):[e],this.$emit("input",e.map(s=>$A.runNum(s)).filter(s=>s>0))),this.values=e},immediate:!0},isWhole:{handler(e){e||this.onlyGroup?this.switchActive="recent":this.switchActive="contact"},immediate:!0},showModal(e){e?(this.searchBefore(),this.upTitleWidth()):(this.searchKey="",this.closeCallback&&this.closeCallback()),this.$emit("on-show-change",e),$A.eeuiAppSetScrollDisabled(e&&this.windowPortrait)},searchKey(){this.searchBefore()},switchActive(){this.searchBefore()},contactViewMode(e){$A.IDBSet("userSelectContactViewMode",e)},isFullscreen(e){e&&this.upTitleWidth()},"selects.length"(){this.upTitleWidth()}},computed:{...B(["cacheDialogs"]),isFullscreen({windowWidth:e}){return e<576},isWhole({projectId:e,noProjectId:s,dialogId:t,onlyGroup:i,users:n}){return n===null&&e===0&&s===0&&t===0&&!i},lists({switchActive:e,searchKey:s,recents:t,contacts:i,projects:n,users:r}){if(r!==null)return r.filter(o=>(!this.hideAiBot||!$A.isAiBotUser(o))&&(!s||$A.strExists(`${o.nickname||o.name||""} ${o.email||""} ${o.pinyin||""}`,s))).map(o=>({...o,type:"user"}));switch(e){case"recent":return s?t.filter(o=>$A.strExists(`${o.name} ${o.email} ${o.pinyin}`,s)):t;case"contact":return this.hideAiBot?i.filter(o=>!$A.isAiBotUser(o)):i;case"project":return n}return[]},isSelectAll({lists:e,selects:s}){return e.length>0&&e.filter(t=>s.includes(t.userid)).length===e.length},warpClass(){return{"select-module":this.module,"select-border":this.border,"select-whole":this.isWhole,"select-disabled":this.disabled}},addStyle({avatarSize:e}){return{width:e+"px",height:e+"px"}},localTitle({title:e}){return e===void 0?this.$L("\u9009\u62E9\u4F1A\u5458"):e},localPlaceholder({placeholder:e}){return e===void 0?this.$L("\u641C\u7D22"):e}},methods:{upTitleWidth(){!this.isFullscreen||this.$nextTick(()=>{const e=this.$refs.headerTitle,s=this.$refs.headerSubmit;e&&s&&(e.style.width=this.windowWidth-s.clientWidth*2+"px")})},isUncancelable(e){return this.uncancelable.length===0?!1:this.uncancelable.includes(e)},isDisabled(e){return this.disabledChoice.length===0?!1:this.disabledChoice.includes(e)},isNoChoice(e){return this.isUncancelable(e)||this.isDisabled(e)},formatSelect(e){return e.map(s=>$A.leftExists(s,"d:")?this.recents.find(t=>t.userid===s):{type:"user",userid:s})},convertTwoList(e){if(this.switchActive==="contact"&&this.contactViewMode==="department"){const s=new Map,t=[];return e.forEach(i=>{i.department_info&&i.department_info.length>0?i.department_info.forEach(n=>{s.has(n.id)||s.set(n.id,{id:n.id,name:n.name,list:[]}),s.get(n.id).list.push(i)}):t.push(i)}),t.length>0&&s.set(0,{id:0,name:this.$L("\u9ED8\u8BA4\u90E8\u95E8"),list:t}),Array.from(s.values()).map(i=>({...i,userid_list:i.list.map(n=>n.userid)}))}return[{id:0,name:null,list:e}]},selectIcon(e){if(e==="all")return this.isSelectAll?"ios-checkmark-circle":"ios-radio-button-off";if($A.isArray(e)&&e.length>0){const s=e.filter(t=>this.selects.includes(t)).length;if(s===e.length)return"ios-checkmark-circle";if(s>0)return"ios-remove-circle"}return"ios-radio-button-off"},selectClass(e){switch(this.selectIcon(e)){case"ios-checkmark-circle":return"selected";case"ios-remove-circle":return"somed"}return""},searchBefore(){!this.showModal||this.users!==null||(this.switchActive==="recent"?this.searchRecent():this.switchActive==="contact"?this.searchContact():this.switchActive==="project"&&this.searchProject())},searchRecent(){this.recents=this.cacheDialogs.filter(e=>this.hideAiBot&&$A.isAiBotDialog(e)||this.onlyGroup&&e.type!="group"||e.name===void 0||e.dialog_delete===1||!this.showBot&&e.bot?!1:this.showDialog||e.type==="user").sort((e,s)=>e.top_at||s.top_at?$A.sortDay(s.top_at,e.top_at):e.todo_num>0||s.todo_num>0?$A.sortFloat(s.todo_num,e.todo_num):$A.sortDay(s.last_at,e.last_at)).map(({id:e,name:s,pinyin:t,email:i,type:n,group_type:r,avatar:o,dialog_user:a})=>({name:s,pinyin:t,email:i,type:n,group_type:r,avatar:o,userid:n==="user"?a.userid:`d:${e}`}))},searchContact(){const e=this.searchKey,s=this.searchCache.find(t=>t.type==="contact"&&t.key==e);s&&(this.contacts=s.data,!s.more)||(this.waitIng++,setTimeout(()=>{if(this.searchKey!=e){this.waitIng--;return}setTimeout(()=>{this.loadIng++},300),this.searchRequest(e,1,()=>{this.loadIng--,this.waitIng--})},this.searchCache.length>0?300:0))},searchRequest(e,s,t){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},page:s,pagesize:100,with_department:1}}).then(({data:i})=>{if(this.searchKey!=e){t();return}const n=i.data.map(a=>Object.assign(a,{type:"user"}));i.current_page>1&&n.unshift(...this.contacts),this.contacts=n;const r=this.searchCache.findIndex(a=>a.type==="contact"&&a.key==e),o={type:"contact",key:e,data:n,time:$A.dayjs().unix(),more:i.current_page-1?this.searchCache.splice(r,1,o):this.searchCache.push(o),!o.more){t();return}i.current_page%5===0?$A.modalConfirm({content:"\u6570\u636E\u5DF2\u8D85\u8FC7"+i.to+"\u6761\uFF0C\u662F\u5426\u7EE7\u7EED\u52A0\u8F7D\uFF1F",onOk:()=>{this.searchRequest(e,i.current_page+1,t)},onCancel:t}):this.searchRequest(e,i.current_page+1,t)}).catch(({msg:i})=>{s===1&&(this.contacts=[]),$A.messageWarning(i),t()})},searchProject(){const e=this.searchKey,s=this.searchCache.find(t=>t.type==="project"&&t.key==e);s&&(this.projects=s.data,!s.more)||(this.waitIng++,setTimeout(()=>{if(this.searchKey!=e){this.waitIng--;return}setTimeout(()=>{this.loadIng++},300),this.$store.dispatch("call",{url:"project/lists",data:{type:"team",keys:{name:e},getuserid:"yes",getstatistics:"no"}}).then(({data:t})=>{if(this.searchKey!=e)return;const i=t.data.map(o=>Object.assign(o,{type:"project"}));this.projects=i;const n=this.searchCache.findIndex(o=>o.type==="project"&&o.key==e),r={type:"project",key:e,data:i,time:$A.dayjs().unix(),more:!1};n>-1?this.searchCache.splice(n,1,r):this.searchCache.push(r)}).catch(({msg:t})=>{this.projects=[],$A.messageWarning(t)}).finally(t=>{this.loadIng--,this.waitIng--})},this.searchCache.length>0?300:0))},onSelection(e=null,s=null){this.disabled||this.$nextTick(t=>{this.selects=$A.cloneJSON(this.values),this.callback=typeof e=="function"?e:null,this.closeCallback=typeof s=="function"?s:null,this.showModal=!0})},onSelectItem({userid:e}){if(this.selects.includes(e)){if(this.isUncancelable(e))return;this.selects=this.selects.filter(s=>s!=e)}else{if(this.isDisabled(e))return;if(this.multipleMax&&this.selects.length>=this.multipleMax){if(this.multipleMax>1){$A.messageWarning("\u5DF2\u8D85\u8FC7\u6700\u5927\u9009\u62E9\u6570\u91CF");return}this.selects=[]}this.selects.push(e),this.$nextTick(()=>{$A.scrollIntoViewIfNeeded(this.$refs.selected.querySelector(`li[data-id="${e}"]`),!0)})}},onSelectMultiple(e){switch(this.selectIcon(e)){case"ios-checkmark-circle":const s=e.filter(i=>!this.isUncancelable(i));s.length!=e.length&&$A.messageWarning("\u90E8\u5206\u6210\u5458\u7981\u6B62\u53D6\u6D88"),this.selects=this.selects.filter(i=>!s.includes(i));break;default:const t=e.filter(i=>!this.isDisabled(i));t.length!=e.length&&$A.messageWarning("\u90E8\u5206\u6210\u5458\u7981\u6B62\u9009\u62E9"),this.selects=this.selects.concat(t.filter(i=>!this.selects.includes(i))),this.multipleMax&&this.selects.length>this.multipleMax&&($A.messageWarning("\u5DF2\u8D85\u8FC7\u6700\u5927\u9009\u62E9\u6570\u91CF"),this.selects=this.selects.slice(0,this.multipleMax));break}},onSelectAll(){if(this.isSelectAll){this.selects=$A.cloneJSON(this.uncancelable);return}this.lists.some(e=>{if(this.isDisabled(e.userid))return!1;if(this.multipleMax&&this.selects.length>=this.multipleMax)return $A.messageWarning("\u5DF2\u8D85\u8FC7\u6700\u5927\u9009\u62E9\u6570\u91CF"),!0;this.selects.includes(e.userid)||this.selects.push(e.userid)})},onContextRemove(e,s){!this.contextmenuRemove||(e.preventDefault(),e.stopPropagation(),!(this.disabled||this.submittIng>0||this.showModal||this.isUncancelable(s))&&(this.selects=$A.cloneJSON(this.values),this.onRemoveItem(s),this.onSubmit()))},onSelectedAvatarClick(e,s){const t=e.pointerType||this.selectedPointerType;(t==="touch"||t==="pen")&&this.onRemoveItem(s)},onRemoveItem(e){this.isUncancelable(e)||(this.selects=this.selects.filter(s=>s!=e))},onClickTitle(){const e=this.$refs.headerTitle,s=document.createRange();s.setStart(e,0),s.setEnd(e,e.childNodes.length||0);const t=s.getBoundingClientRect().width;Math.floor(t)>Math.floor(e.offsetWidth)&&$A.modalInfo({title:this.$L("\u5168\u6807\u9898"),content:this.localTitle,language:!1})},onSubmit(){if(this.submittIng>0)return;const e=$A.cloneJSON(this.values);this.values=$A.cloneJSON(this.selects),this.$emit("input",this.values),this.$emit("on-submit",this.values);const s=this.callback||this.beforeSubmit;if(!s){this.hide();return}const t=s(this.values);t&&t.then?(this.submittIng++,t.then(()=>{this.hide()}).catch(()=>{this.values=e,this.$emit("input",this.values)}).finally(()=>{this.submittIng--})):this.hide()},onKeydown(e){e.isComposing||e.key==="Process"||(this.backspaceDelete=e.key==="Backspace"&&!this.searchKey&&this.selects.length>0)},onKeyup(e){if(!(e.isComposing||e.key==="Process")&&e.key==="Backspace"&&this.backspaceDelete)for(let s=this.selects.length-1;s>=0;s--){const t=this.selects[s];if(!this.isUncancelable(t)){this.onRemoveItem(t),this.$nextTick(()=>{const i=this.$refs.selected,n=i&&i.scrollElement();n&&(n.scrollLeft=n.scrollWidth)});break}}},show(){this.onSelection()},hide(){this.showModal=!1}}},as={};var Mo=A(Lo,Do,Eo,!1,Po,null,null,null);function Po(e){for(let s in as)this[s]=as[s]}var Ft=function(){return Mo.exports}(),jo=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"task-move",style:e.$A.generateColorVarStyle(e.task.flow_item_color,[10],"flow-item-custom-color")},[t("Cascader",{attrs:{data:e.cascaderData,clearable:!1,placeholder:e.$L("\u8BF7\u9009\u62E9\u9879\u76EE"),"load-data":e.cascaderLoadData,filterable:""},on:{"on-visible-change":function(i){e.cascaderShow=!e.cascaderShow}},model:{value:e.cascader,callback:function(i){e.cascader=i},expression:"cascader"}}),t("div",{staticClass:"task-move-content"},[t("div",{staticClass:"task-move-content-old"},[t("div",{staticClass:"task-move-title"},[e._v(e._s(e.beforeTitle))]),t("div",{staticClass:"task-move-row"},[t("span",{staticClass:"label"},[e._v(e._s(e.$L("\u72B6\u6001"))+":")]),t("div",{staticClass:"flow"},[e.task.flow_item_name?t("span",{class:e.task.flow_item_status},[e._v(e._s(e.task.flow_item_name))]):e.task.complete_at?t("span",{staticClass:"end"},[e._v(e._s(e.$L("\u5DF2\u5B8C\u6210")))]):t("span",{staticClass:"start"},[e._v(e._s(e.$L("\u672A\u5B8C\u6210")))])])]),t("div",{staticClass:"task-move-row",class:{"not-flex":e.windowPortrait}},[t("span",{staticClass:"label"},[e._v(e._s(e.$L("\u8D1F\u8D23\u4EBA"))+":")]),t("UserSelect",{staticClass:"item-content user",attrs:{"avatar-size":28,"project-id":e.task.project_id,"add-icon":!1,disabled:""},model:{value:e.ownerUserids,callback:function(i){e.ownerUserids=i},expression:"ownerUserids"}})],1),t("div",{staticClass:"task-move-row",class:{"not-flex":e.windowPortrait}},[t("span",{staticClass:"label"},[e._v(e._s(e.$L("\u534F\u52A9\u4EBA"))+":")]),t("UserSelect",{staticClass:"item-content user",attrs:{"avatar-size":28,"project-id":e.task.project_id,"add-icon":!1,disabled:""},model:{value:e.assistUserids,callback:function(i){e.assistUserids=i},expression:"assistUserids"}})],1)]),t("div",{staticClass:"task-move-content-new"},[t("div",{staticClass:"task-move-title"},[e._v(e._s(e.afterTitle))]),t("div",{staticClass:"task-move-row"},[t("span",{staticClass:"label"},[e._v(e._s(e.$L("\u72B6\u6001"))+":")]),t("TaskMenu",{ref:`taskMenu_${e.task.id}`,attrs:{task:e.tasks,"project-id":e.cascader[0],"color-show":!1,"operation-show":!1,"load-status":e.task.loading===!0,placement:"bottom-start"},on:{"on-update":e.onStatusUpdate}}),e.updateData.flow.flow_item_name?t("div",{staticClass:"flow"},[t("span",{class:e.updateData.flow.flow_item_status,on:{click:function(i){return i.stopPropagation(),e.openMenu(i,e.tasks)}}},[e._v(e._s(e.updateData.flow.flow_item_name))])]):e._e()],1),t("div",{staticClass:"task-move-row",class:{"not-flex":e.windowPortrait}},[t("span",{staticClass:"label"},[e._v(e._s(e.$L("\u8D1F\u8D23\u4EBA"))+":")]),t("div",[t("UserSelect",{staticClass:"item-content user",attrs:{"multiple-max":10,"avatar-size":28,"project-id":e.cascader[0],"disabled-choice":e.updateData.assist_userids,"add-icon":!1},model:{value:e.updateData.owner_userids,callback:function(i){e.$set(e.updateData,"owner_userids",i)},expression:"updateData.owner_userids"}})],1)]),t("div",{staticClass:"task-move-row",class:{"not-flex":e.windowPortrait}},[t("span",{staticClass:"label"},[e._v(e._s(e.$L("\u534F\u52A9\u4EBA"))+":")]),t("div",[t("UserSelect",{staticClass:"item-content user",attrs:{"multiple-max":10,"avatar-size":28,"project-id":e.cascader[0],"disabled-choice":e.updateData.owner_userids,"add-icon":!1},model:{value:e.updateData.assist_userids,callback:function(i){e.$set(e.updateData,"assist_userids",i)},expression:"updateData.assist_userids"}})],1)])])]),t("div",{staticClass:"ivu-modal-footer"},[t("div",{staticClass:"adaption"},[t("Button",{attrs:{type:"default"},on:{click:e.close}},[e._v(e._s(e.$L("\u53D6\u6D88")))]),t("Button",{attrs:{type:"primary",loading:e.loadIng>0},on:{click:e.onConfirm}},[e._v(e._s(e.confirmText))])],1)])],1)},Ro=[];const Oo={name:"TaskMove",components:{TaskMenu:Io,UserSelect:Ft},props:{value:{type:Boolean,default:!1},task:{type:Object,default:!1},type:{type:String,default:"move",validator:e=>["move","copy"].includes(e)}},data(){return{tasks:{},cascader:[],cascaderShow:!1,cascaderData:[],cascaderValue:"",cascaderLoading:0,cascaderAlready:[],loadIng:0,flowItemId:0,ownerUserids:[],assistUserids:[],updateData:{flow:{},owner_userids:[],assist_userids:[]}}},async mounted(){this.initData()},computed:{...B(["cacheProjects","cacheColumns"]),isCopy(){return this.type==="copy"},beforeTitle(){return this.$L(this.isCopy?"\u590D\u5236\u524D":"\u79FB\u52A8\u524D")},afterTitle(){return this.$L(this.isCopy?"\u590D\u5236\u540E":"\u79FB\u52A8\u540E")},confirmText(){return this.$L(this.isCopy?"\u590D\u5236":"\u786E\u5B9A")}},watch:{cascader(e){var t,i;this.tasks.flow_item_id=this.flowItemId,e[0]!=this.task.project_id?(this.updateData.flow.flow_item_id=0,this.updateData.flow.flow_item_name="",this.updateData.flow.flow_item_status=""):(this.updateData.flow.flow_item_id=this.flowItemId,this.updateData.flow.flow_item_name=this.task.flow_item_name,this.updateData.flow.flow_item_status=this.task.flow_item_status);const s=((i=(t=this.cacheProjects.find(n=>n.id==e[0]))==null?void 0:t.project_user)==null?void 0:i.map(n=>n.userid))||[];this.updateData.owner_userids=(this.task.task_user||[]).filter(n=>n.owner&&s.indexOf(n.userid)!==-1).sort((n,r)=>n.id-r.id).map(n=>n.userid),this.updateData.assist_userids=(this.task.task_user||[]).filter(n=>!n.owner&&s.indexOf(n.userid)!==-1).sort((n,r)=>n.id-r.id).map(n=>n.userid)}},methods:{initData(){this.flowItemId=this.task.flow_item_id,this.cascader=[this.task.project_id,this.task.column_id],this.ownerUserids=(this.task.task_user||[]).filter(s=>s.owner).sort((s,t)=>s.id-t.id).map(s=>s.userid),this.assistUserids=(this.task.task_user||[]).filter(s=>!s.owner).sort((s,t)=>s.id-t.id).map(s=>s.userid),this.tasks=JSON.parse(JSON.stringify(this.task));const e=$A.cloneJSON(this.cacheProjects).sort((s,t)=>s.top_at||t.top_at?$A.sortDay(t.top_at,s.top_at):t.id-s.id);this.cascaderData=e.map(s=>{const t=this.cacheColumns.filter(({project_id:n})=>n==s.id).map(n=>({value:n.id,label:n.name})),i={value:s.id,label:s.name,children:t};return t.length==0&&(i.loading=!1),i})},cascaderLoadData(e,s){e.loading=!0,this.$store.dispatch("getColumns",e.value).then(t=>{e.children=t.map(i=>({value:i.id,label:i.name})),e.loading=!1,s()}).catch(()=>{e.loading=!1,s()})},async onConfirm(){if(!this.isCopy&&this.task.project_id==this.cascader[0]&&this.task.column_id==this.cascader[1]){$A.messageError(this.$L("\u672A\u53D8\u66F4\u79FB\u52A8\u9879"));return}this.loadIng++;const e={task_id:this.task.id,project_id:this.cascader[0],column_id:this.cascader[1],flow_item_id:this.updateData.flow.flow_item_id||0,owner:this.updateData.owner_userids,assist:this.updateData.assist_userids};!this.updateData.flow.flow_item_id&&this.updateData.flow.flow_item_status&&(e.completed=this.updateData.flow.complete_at?1:0),this.$store.dispatch("call",{url:this.isCopy?"project/task/copy":"project/task/move",data:e}).then(({data:s,msg:t})=>{this.loadIng--,this.$store.dispatch("saveTask",s),$A.messageSuccess(t),this.close()}).catch(({msg:s,ret:t})=>{this.loadIng--,t==102?$A.messageError("\u8BF7\u9009\u62E9\u79FB\u52A8\u540E\u72B6\u6001"):$A.modalError(s)})},close(){this.$emit("input",!this.value)},openMenu(e,s){const t=this.$refs[`taskMenu_${s.id}`];t&&t.handleClick(e)},onStatusUpdate(e){e.flow_item_id||(this.updateData.flow.flow_item_name?(e.flow_item_status="",e.flow_item_name=""):(e.flow_item_status=e.complete_at?"end":"start",e.flow_item_name=this.$L(e.complete_at?"\u8F6C\u4E3A\u5DF2\u5B8C\u6210":"\u8F6C\u4E3A\u672A\u5B8C\u6210"))),this.tasks.flow_item_id=e.flow_item_id,this.updateData.flow=e}}},ls={};var zo=A(Oo,jo,Ro,!1,Uo,null,null,null);function Uo(e){for(let s in ls)this[s]=ls[s]}var Bo=function(){return zo.exports}(),No=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"common-circle",style:e.style,attrs:{"data-id":e.percent}},[t("svg",{attrs:{viewBox:"0 0 28 28"}},[t("g",{attrs:{fill:"none","fill-rule":"evenodd"}},[t("path",{staticClass:"common-circle-path",attrs:{d:"M-500-100h997V48h-997z"}}),t("g",{attrs:{"fill-rule":"nonzero"}},[t("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"}}),t("path",{staticClass:"common-circle-g-path-core",attrs:{d:e.arc(e.args)}})])])])])},Fo=[];const Ho={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 s=Math.min(360,360/100*e);return s==360?s=0:s==0&&(s=360),{x:14,y:14,r:14,start:360,end:s}}},methods:{isNumeric(e){return e!==""&&!isNaN(parseFloat(e))&&isFinite(e)},point(e,s,t,i){return[(e+Math.sin(i)*t).toFixed(2),(s-Math.cos(i)*t).toFixed(2)]},full(e,s,t,i){return i<=0?`M ${e-t} ${s} A ${t} ${t} 0 1 1 ${e+t} ${s} A ${t} ${t} 1 1 1 ${e-t} ${s} Z`:`M ${e-t} ${s} A ${t} ${t} 0 1 1 ${e+t} ${s} A ${t} ${t} 1 1 1 ${e-t} ${s} M ${e-i} ${s} A ${i} ${i} 0 1 1 ${e+i} ${s} A ${i} ${i} 1 1 1 ${e-i} ${s} Z`},part(e,s,t,i,n,r){const[o,a]=[n/360*2*Math.PI,r/360*2*Math.PI],l=[this.point(e,s,i,o),this.point(e,s,t,o),this.point(e,s,t,a),this.point(e,s,i,a)],c=a-o>Math.PI?"1":"0";return`M ${l[0][0]} ${l[0][1]} L ${l[1][0]} ${l[1][1]} A ${t} ${t} 0 ${c} 1 ${l[2][0]} ${l[2][1]} L ${l[3][0]} ${l[3][1]} A ${i} ${i} 0 ${c} 0 ${l[0][0]} ${l[0][1]} Z`},arc(e){const{x:s=0,y:t=0}=e;let{R:i=0,r:n=0,start:r,end:o}=e;return[i,n]=[Math.max(i,n),Math.min(i,n)],i<=0?"":r!==+r||o!==+o?this.full(s,t,i,n):Math.abs(r-o)<1e-6?"":Math.abs(r-o)%360<1e-6?this.full(s,t,i,n):([r,o]=[r%360,o%360],r>o&&(o+=360),this.part(s,t,i,n,r,o))}}},cs={};var Wo=A(Ho,No,Fo,!1,Vo,null,null,null);function Vo(e){for(let s in cs)this[s]=cs[s]}var Yo=function(){return Wo.exports}();var qo=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"markdown-body dialog-markdown",domProps:{innerHTML:e._s(e.html)},on:{click:e.onCLick}})},Ko=[];const Go={name:"DialogMarkdown",props:{text:{type:String,default:""},beforeNavigate:{type:Function,default:null}},data(){return{mdi:null}},mounted(){this.copyCodeBlock()},updated(){this.copyCodeBlock()},computed:{html({text:e}){return Pt(e)}},methods:{copyCodeBlock(){this.$el.querySelectorAll(".code-block-wrapper").forEach(s=>{const t=s.querySelector(".code-block-header__copy"),i=s.querySelector(".code-block-body");t&&i&&t.getAttribute("data-copy")!=="click"&&(t.setAttribute("data-copy","click"),t.addEventListener("click",()=>{var n,r,o;(n=navigator.clipboard)!=null&&n.writeText?navigator.clipboard.writeText((r=i.textContent)!=null?r:""):this.copyContent({text:(o=i.textContent)!=null?o:"",origin:!0})}))})},copyContent(e){const s={origin:!0,...e};let t;s.origin?t=document.createElement("textarea"):t=document.createElement("input"),t.setAttribute("readonly","readonly"),t.value=s.text,document.body.appendChild(t),t.select(),document.execCommand("copy")&&document.execCommand("copy"),document.body.removeChild(t)},onCLick(e){const s=e.target;if(s.tagName==="A"){const t=s.getAttribute("href");if(t&&t.startsWith("dootask://")){e.preventDefault(),e.stopPropagation(),this.handleDooTaskLink(t);return}}this.$emit("click",e)},handleDooTaskLink(e){var l,c,d,h,u;if(e.startsWith("dootask://link/")){this.handleDeepLink(e);return}if(e.startsWith("dootask://ai-apply/")){this.handleAiApply(e);return}if(e.startsWith("dootask://ai-dismiss/")){this.handleAiDismiss(e);return}const s=e.match(/^dootask:\/\/(\w+)\/([^/]+)(?:\/(\d+))?$/);if(!s)return;const[,t,i,n]=s,r=/^\d+$/.test(i),o=r?parseInt(i,10):null,a=n?parseInt(n,10):null;switch(t){case"task":(l=this.beforeNavigate)==null||l.call(this),this.$store.dispatch("openTask",{id:a&&a>0?a:o});break;case"project":(c=this.beforeNavigate)==null||c.call(this),this.goForward({name:"manage-project",params:{projectId:o}});break;case"file":r?((d=this.beforeNavigate)==null||d.call(this),this.goForward({name:"manage-file",params:{folderId:0,fileId:null,shakeId:o}}),this.$store.state.fileShakeId=o,setTimeout(()=>{this.$store.state.fileShakeId=0},600)):window.open($A.mainUrl("single/file/"+i));break;case"contact":(h=this.beforeNavigate)==null||h.call(this),this.$store.dispatch("openDialogUserid",o).catch(({msg:p})=>{$A.modalError(p)});break;case"message":(u=this.beforeNavigate)==null||u.call(this),this.$store.dispatch("openDialog",o).then(()=>{a&&(this.$store.state.dialogSearchMsgId=a)}).catch(({msg:p})=>{$A.modalError(p)});break}},handleDeepLink(e){var t;const s=e.match(/^dootask:\/\/link\/([a-z_]+)/);!s||!ln(s[1])||((t=this.beforeNavigate)==null||t.call(this),cn(s[1]))},handleAiApply(e){const s=e.match(/^dootask:\/\/ai-apply\/(\w+)\/(\d+)\/(\d+)(?:\?(.*))?$/);if(!s)return;const[,t,i,n,r]=s,o=new URLSearchParams(r||""),a={task_id:parseInt(i,10),msg_id:parseInt(n,10),type:t};t==="assignee"&&o.get("userid")&&(a.userid=parseInt(o.get("userid"),10)),t==="similar"&&o.get("related")&&(a.related=parseInt(o.get("related"),10)),this.$store.dispatch("applyAiSuggestion",a).then(({data:l})=>{l.msg&&this.$store.dispatch("saveDialogMsg",l.msg),this.applyAiSuggestionByType(l.type,l.task_id,l.result,o)}).catch(({msg:l})=>{$A.modalError(l)})},applyAiSuggestionByType(e,s,t,i){var n;switch(e){case"description":this.$store.dispatch("taskUpdate",{task_id:s,content:Pt(t.content)}).then(()=>{$A.messageSuccess("\u5E94\u7528\u6210\u529F")}).catch(({msg:d})=>{$A.modalError(d)});break;case"subtasks":this.createSubtasksSequentially(s,t.content||[]);break;case"assignee":const r=i.get("userid");if(!r||isNaN(parseInt(r,10))){$A.modalError("\u8BF7\u9009\u62E9\u8D1F\u8D23\u4EBA");return}const o=parseInt(r,10),a=this.$store.state.cacheTasks.find(d=>d.id===s),l=((n=a==null?void 0:a.task_user)==null?void 0:n.filter(d=>d.owner===1).map(d=>d.userid))||[],c=[...new Set([...l,o])];this.$store.dispatch("taskUpdate",{task_id:s,owner:c}).then(()=>{$A.messageSuccess("\u5E94\u7528\u6210\u529F")}).catch(({msg:d})=>{$A.modalError(d)});break;case"similar":$A.messageSuccess("\u5E94\u7528\u6210\u529F");break;default:$A.modalError("\u672A\u77E5\u7684\u5EFA\u8BAE\u7C7B\u578B")}},createSubtasksSequentially(e,s){if(!s||s.length===0){$A.modalError("\u6CA1\u6709\u6709\u6548\u7684\u5B50\u4EFB\u52A1");return}const t=s.length,i=n=>{if(n>=t){$A.messageSuccess("\u5E94\u7528\u6210\u529F");return}const r=s[n];if(!r||typeof r!="string"||!r.trim()){i(n+1);return}this.$store.dispatch("taskAddSub",{task_id:e,name:r.trim()}).then(()=>{i(n+1)}).catch(({msg:o})=>{console.warn(`\u521B\u5EFA\u5B50\u4EFB\u52A1\u5931\u8D25: ${r}`,o),i(n+1)})};i(0)},handleAiDismiss(e){const s=e.match(/^dootask:\/\/ai-dismiss\/(\w+)\/(\d+)\/(\d+)(\?.*)?$/);if(!s)return;const[,t,i,n,r]=s,o=new URLSearchParams(r||""),a={task_id:parseInt(i,10),msg_id:parseInt(n,10),type:t};t==="assignee"&&o.get("userid")&&(a.userid=parseInt(o.get("userid"),10)),t==="similar"&&o.get("related")&&(a.related=parseInt(o.get("related"),10)),this.$store.dispatch("dismissAiSuggestion",a).then(({data:l})=>{l.msg&&this.$store.dispatch("saveDialogMsg",l.msg),$A.messageSuccess(this.$L("\u5DF2\u5FFD\u7565"))}).catch(({msg:l})=>{$A.modalError(l)})}}},us={};var Jo=A(Go,qo,Ko,!1,Qo,null,null,null);function Qo(e){for(let s in us)this[s]=us[s]}var J=function(){return Jo.exports}(),pv=Object.freeze(Object.defineProperty({__proto__:null,default:J},Symbol.toStringTag,{value:"Module"})),Xo=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"content-text no-dark-content"},[e.isOverdueMsg?t("div",{staticClass:"content-overdue"},[e._v(e._s(e.$L("\u6B64\u6D88\u606F\u5DF2\u7ECF\u8FC7\u671F")))]):e.msg.type==="md"?t("DialogMarkdown",{attrs:{text:e.msg.text},on:{click:e.viewText}}):t("pre",{domProps:{innerHTML:e._s(e.$A.formatTextMsg(e.msg.text,e.userId))},on:{click:e.viewText}}),e.translation?[t("div",{staticClass:"content-divider"},[t("span"),t("div",{staticClass:"divider-label translation-label",on:{click:e.viewText}},[e._v(e._s(e.translation.label))]),t("span")]),e.msg.type==="md"?t("DialogMarkdown",{staticClass:"content-translation",attrs:{text:e.translation.content}}):t("pre",{domProps:{innerHTML:e._s(e.$A.formatTextMsg(e.translation.content,e.userId))}})]:e._e()],2)},Zo=[];const ea={components:{DialogMarkdown:J},props:{msgId:Number,msg:Object,createdAt:String},computed:{...B(["cacheTranslations","cacheTranslationLanguage"]),translation({cacheTranslations:e,msgId:s,cacheTranslationLanguage:t}){const i=e.find(n=>n.key===`msg-${s}`&&n.language===t);return i||null},isOverdueMsg({msg:e,createdAt:s}){return e.text==="..."&&$A.dayjs(s).isBefore($A.daytz().subtract(10,"minute"))}},methods:{viewText(e){this.$emit("viewText",e)}}},ds={};var ta=A(ea,Xo,Zo,!1,sa,null,null,null);function sa(e){for(let s in ds)this[s]=ds[s]}var ia=function(){return ta.exports}(),na=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"content-text no-dark-content"},[e.msg.type==="md"?t("DialogMarkdown",{attrs:{text:e.msg.text},on:{click:e.viewText}}):t("pre",{domProps:{innerHTML:e._s(e.$A.formatTextMsg(e.msg.text,e.userId))},on:{click:e.viewText}}),t("div",{staticClass:"content-longtext-footer"},[t("span",{on:{click:e.downFile}},[e._v(e._s(e.$L("\u67E5\u770B\u8BE6\u60C5")))])])],1)},ra=[];const oa={components:{DialogMarkdown:J},props:{msgId:Number,msg:Object},methods:{viewText(e){this.$emit("viewText",e)},downFile(){this.$emit("downFile")}}},hs={};var aa=A(oa,na,ra,!1,la,null,null,null);function la(e){for(let s in hs)this[s]=hs[s]}var ca=function(){return aa.exports}(),ua=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("span",{staticClass:"local-file-status-icon",attrs:{"aria-hidden":"true"}},[e.status==="downloading"?t("Loading"):e.status==="available"?t("svg",{attrs:{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M3.5 16V6A2 2 0 0 1 5.5 4H8.2A2 2 0 0 1 9.6 4.6L11 6H18.5A2 2 0 0 1 20.5 8V9",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round"}}),t("path",{attrs:{d:"M5.2 19.5H17.7A2 2 0 0 0 19.6 18.1L21.2 12.8A1.5 1.5 0 0 0 19.8 10.8H8.3A2 2 0 0 0 6.4 12.2L3.6 17A1.7 1.7 0 0 0 5.2 19.5Z",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round"}})]):t("svg",{attrs:{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M12 3V15M7.5 10.5L12 15L16.5 10.5M5 20H19",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round"}})])],1)},da=[];const ha={name:"LocalFileStatusIcon",props:{status:{type:String,default:"missing"}}},ps={};var pa=A(ha,ua,da,!1,fa,"f4b4ba4c",null,null);function fa(e){for(let s in ps)this[s]=ps[s]}var ma=function(){return pa.exports}(),ga=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{class:`content-file ${e.msg.type}`},[t("div",{staticClass:"dialog-file"},[e.msg.type==="img"?t("img",{staticClass:"file-img",style:e.imageStyle(e.msg),attrs:{src:e.imageSrc(e.msg)},on:{click:e.viewFile}}):e.isVideoFile(e.msg)?t("div",{staticClass:"file-video",style:e.imageStyle(e.msg),on:{click:e.viewFile}},[e.msg.thumb?t("img",{attrs:{src:e.msg.thumb}}):t("video",{attrs:{width:e.imageStyle(e.msg,"width"),height:e.imageStyle(e.msg,"height")}},[t("source",{attrs:{src:e.msg.path,type:"video/mp4"}})]),e._m(0)]):t("div",{staticClass:"file-box",on:{click:e.downFile}},[t("img",{staticClass:"file-thumb",attrs:{src:e.msg.thumb}}),t("div",{staticClass:"file-info"},[t("div",{staticClass:"file-name",attrs:{title:e.msg.name}},[e._v(e._s(e.msg.name))]),t("div",{staticClass:"file-size"},[e._v(e._s(e.$A.bytesToSize(e.msg.size)))])]),e.$Electron?t("button",{staticClass:"file-local-action",attrs:{type:"button",title:e.localActionTitle,"aria-label":e.localActionTitle,disabled:e.localFileStatus==="downloading"},on:{click:function(i){return i.stopPropagation(),e.handleLocalAction.apply(null,arguments)}}},[t("LocalFileStatusIcon",{attrs:{status:e.localFileStatus}})],1):e._e()]),e.msg.percentage?t("div",{staticClass:"file-percentage"},[t("span",{style:e.fileStyle(e.msg.percentage)})]):e._e()])])},_a=[function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"file-play"},[t("div",{staticClass:"play-icon no-dark-content"},[t("i",{staticClass:"taskfont"},[e._v("\uE745")])])])}];const va={components:{LocalFileStatusIcon:ma},props:{msgId:{type:[Number,String],default:0},msg:Object},data(){return{localFileStatus:"missing",removeDownloadListener:null}},computed:{localActionTitle(){return this.localFileStatus==="available"?this.$L("\u5728\u6587\u4EF6\u5939\u4E2D\u663E\u793A"):this.$L("\u4E0B\u8F7D")}},watch:{msgId(){this.refreshLocalFileStatus()}},mounted(){!this.$Electron||(this.refreshLocalFileStatus(),this.removeDownloadListener=$A.Electron.listener("downloadItemsChanged",()=>{this.refreshLocalFileStatus()}))},beforeDestroy(){typeof this.removeDownloadListener=="function"&&this.removeDownloadListener()},methods:{viewFile(){this.$emit("viewFile")},downFile(){this.$emit("downFile")},async refreshLocalFileStatus(){if(!this.$Electron||!this.msgId){this.localFileStatus="missing";return}try{const e=await $A.Electron.sendAsync("downloadManager",{action:"messageFileStatus",msgId:this.msgId});this.localFileStatus=(e==null?void 0:e.status)||"missing"}catch{this.localFileStatus="missing"}},async handleLocalAction(){if(this.localFileStatus!=="downloading"){if(this.localFileStatus==="available"){try{if(await $A.Electron.sendAsync("downloadManager",{action:"showMessageFile",msgId:this.msgId}))return}catch{}this.localFileStatus="missing";return}this.localFileStatus="downloading",this.$store.dispatch("downUrl",$A.apiUrl(`dialog/msg/download?msg_id=${this.msgId}`)),setTimeout(()=>this.refreshLocalFileStatus(),500)}},fileStyle(e){return e?{width:`${e}%`}:{}},imageStyle({width:e,height:s,thumb:t},i="style"){if(e&&s){const n=$A.imageRatioExceed(e,s,3);$A.imageRatioJudge(t)&&n>0&&(e>s?e=s*n:s=e*n);let r=220,o=220,a=e,l=s;return(e>r||s>o)&&(e>s?(a=r,l=s*(r/e)):(a=e*(o/s),l=o)),i==="width"?a:i==="height"?l:{width:a+"px",height:l+"px"}}return i==="width"||i==="height"?0:{}},imageSrc({width:e,height:s,thumb:t}){const i=$A.imageRatioExceed(e,s,3);return $A.imageRatioJudge(t)&&i>0&&(t=$A.thumbRestore(t)+`/crop/ratio:${i},percentage:320x0`),t},isVideoFile(e){return e.type==="file"&&e.ext==="mp4"&&e.width>0&&e.height>0}}},fs={};var ya=A(va,ga,_a,!1,wa,null,null,null);function wa(e){for(let s in fs)this[s]=fs[s]}var $a=function(){return ya.exports}(),ka=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"content-record no-dark-content"},[t("div",{staticClass:"dialog-record",class:{playing:e.audioPlaying===e.msg.path},style:e.recordStyle(e.msg),on:{click:e.playRecord}},[t("div",{staticClass:"record-time"},[e._v(e._s(e.recordDuration(e.msg.duration)))]),t("div",{staticClass:"record-icon taskfont"})]),e.msg.text?[e._m(0),t("div",{staticClass:"content-additional"},[e._v(e._s(e.msg.text))])]:e._e(),e.translation?[t("div",{staticClass:"content-divider"},[t("span"),t("div",{staticClass:"divider-label translation-label",on:{click:e.viewText}},[e._v(e._s(e.translation.label))]),t("span")]),t("div",{staticClass:"content-additional"},[e._v(e._s(e.translation.content))])]:e._e()],2)},ba=[function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"content-divider"},[t("span",{staticClass:"divider-full"})])}];const Aa={props:{msgId:Number,msg:Object},computed:{...B(["audioPlaying","cacheTranslations","cacheTranslationLanguage"]),translation({cacheTranslations:e,msgId:s,cacheTranslationLanguage:t}){const i=e.find(n=>n.key===`msg-${s}`&&n.language===t);return i||null}},methods:{playRecord(){this.$emit("playRecord")},recordStyle(e){const{duration:s}=e;return{width:50+Math.min(180,Math.floor(s/200))+"px"}},recordDuration(e){const s=Math.floor(e/6e4),t=Math.floor(e/1e3)%60;return s>0?`${s}:${t}\u2033`:`${Math.max(1,t)}\u2033`},viewText(e){this.$emit("viewText",e)}}},ms={};var Ca=A(Aa,ka,ba,!1,Sa,null,null,null);function Sa(e){for(let s in ms)this[s]=ms[s]}var xa=function(){return Ca.exports}(),Ta=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"content-location no-dark-content"},[t("div",{staticClass:"location-title"},[e._v(e._s(e.msg.title))]),e.msg.address?t("div",{staticClass:"location-address"},[e._v(e._s(e.msg.address))]):e._e(),t("div",{staticClass:"location-preview",style:e.imageStyle(e.msg)})])},Ia=[];const Da={props:{msg:Object},methods:{imageStyle({width:e,height:s,thumb:t}){if(!t)return{};const i={backgroundImage:`url(${t})`};if(e&&s){const n=$A.scaleToScale(e,s,600);i.backgroundSize=`${n.width}px ${n.height}px`}return i}}},gs={};var Ea=A(Da,Ta,Ia,!1,La,null,null,null);function La(e){for(let s in gs)this[s]=gs[s]}var Ma=function(){return Ea.exports}(),Pa=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"content-meeting no-dark-content"},[t("ul",{staticClass:"dialog-meeting",class:{"meeting-end":!!e.msg.end_at}},[t("li",[t("em",[e._v(e._s(e.$L("\u4F1A\u8BAE\u4E3B\u9898")))]),e._v(" "+e._s(e.msg.name)+" ")]),t("li",[t("em",[e._v(e._s(e.$L("\u4F1A\u8BAE\u521B\u5EFA\u4EBA")))]),t("UserAvatar",{attrs:{userid:e.msg.userid,"show-icon":!1,"show-name":!0}})],1),t("li",[t("em",[e._v(e._s(e.$L("\u9891\u9053ID")))]),e._v(" "+e._s(e.channelID(e.msg.meetingid))+" ")]),e.msg.end_at?t("li",{staticClass:"meeting-operation"},[e._v(" "+e._s(e.$L("\u4F1A\u8BAE\u5DF2\u7ED3\u675F"))+" ")]):t("li",{staticClass:"meeting-operation",on:{click:e.openMeeting}},[e._v(" "+e._s(e.$L("\u70B9\u51FB\u52A0\u5165\u4F1A\u8BAE"))+" "),t("i",{staticClass:"taskfont"},[e._v("\uE68B")])])])])},ja=[];const Ra={props:{msg:Object},methods:{openMeeting(){this.$emit("openMeeting")},channelID(e){return e.replace(/^(.{3})(.{3})(.*)$/,"$1 $2 $3")}}},_s={};var Oa=A(Ra,Pa,ja,!1,za,null,null,null);function za(e){for(let s in _s)this[s]=_s[s]}var Ua=function(){return Oa.exports}(),Ba=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"content-text content-word-chain no-dark-content"},[t("pre",{domProps:{innerHTML:e._s(e.$A.formatTextMsg(e.msg.text,e.userId))}}),t("ul",{class:{expand:e.unfoldWordChainData.indexOf(e.msgId)!==-1}},[e._l((e.msg.list||[]).filter(function(i){return i.type=="case"}),function(i){return t("li",[e._v(" "+e._s(e.$L("[example_label].\u4F8B"))+" "+e._s(i.text)+" ")])}),e._l((e.msg.list||[]).filter(function(i){return i.type!="case"&&i.text}),function(i,n){return t("li",[n==2&&e.msg.list.length>4?t("span",{staticClass:"expand",on:{click:e.unfoldWordChain}},[e._v(" ..."+e._s(e.$L("\u5C55\u5F00"))+"... ")]):e._e(),t("span",{class:{shrink:n>=2&&e.msg.list.length>4}},[e._v(" "+e._s(n+1)+". "+e._s(i.text)+" ")])])}),t("li",{staticClass:"participate",on:{click:e.onWordChain}},[e._v(" "+e._s(e.$L("\u53C2\u4E0E\u63A5\u9F99"))+" "),t("i",{staticClass:"taskfont"},[e._v("\uE703")])])],2)])},Na=[];const Fa={props:{msg:Object,msgId:Number,unfoldWordChainData:Array},methods:{unfoldWordChain(){this.$emit("unfoldWordChain")},onWordChain(){this.$emit("onWordChain")}}},vs={};var Ha=A(Fa,Ba,Na,!1,Wa,null,null,null);function Wa(e){for(let s in vs)this[s]=vs[s]}var Va=function(){return Ha.exports}(),Ya=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"content-text content-word-vote no-dark-content"},[t("div",{staticClass:"vote-msg-head"},[t("i",{staticClass:"taskfont"},[e._v("\uE7FD")]),t("em",[e._v(e._s(e.$L("\u6295\u7968")))]),t("span",[e._v(e._s(e.msg.multiple==1?e.$L("\u591A\u9009"):e.$L("\u5355\u9009")))]),t("span",[e._v(e._s(e.msg.anonymous==1?e.$L("\u533F\u540D"):e.$L("\u5B9E\u540D")))])]),t("pre",{domProps:{innerHTML:e._s(e.$A.formatTextMsg(e.msg.text,e.userId))}}),(e.msg.votes||[]).filter(function(i){return i.userid==e.userId}).length==0?[e.msg.multiple==0?t("RadioGroup",{attrs:{vertical:""},model:{value:e.voteData[e.msg.uuid],callback:function(i){e.$set(e.voteData,e.msg.uuid,i)},expression:"voteData[msg.uuid]"}},e._l(e.msg.list||[],function(i,n){return t("Radio",{key:n,attrs:{label:i.id}},[e._v(" "+e._s(i.text)+" ")])}),1):t("CheckboxGroup",{model:{value:e.voteData[e.msg.uuid],callback:function(i){e.$set(e.voteData,e.msg.uuid,i)},expression:"voteData[msg.uuid]"}},e._l(e.msg.list||[],function(i,n){return t("Checkbox",{key:n,attrs:{label:i.id}},[e._v(" "+e._s(i.text)+" ")])}),1),t("div",{staticClass:"btn-row"},[(e.voteData[e.msg.uuid]||[]).length==0?t("Button",{staticClass:"ivu-btn-grey",attrs:{disabled:""}},[e._v(e._s(e.$L("\u8BF7\u9009\u62E9\u540E\u6295\u7968")))]):t("Button",{staticClass:"no-dark-content",attrs:{type:"warning",loading:e.msg._loadIng>0},on:{click:function(i){return e.onVote("vote")}}},[e._v(e._s(e.$L("\u7ACB\u5373\u6295\u7968")))])],1)]:[t("div",{staticClass:"vote-result-body"},[t("ul",e._l(e.msg.list||[],function(i){return t("li",[t("div",{staticClass:"vote-option-title"},[e._v(e._s(i.text))]),t("div",{staticClass:"ticket-num"},[t("span",[e._v(e._s(e.getVoteProgress(e.msg,i.id).num)+e._s(e.$L("[vote_unit].\u7968")))]),t("span",[e._v(e._s(e.getVoteProgress(e.msg,i.id).progress+"%"))])]),t("Progress",{attrs:{percent:Number(e.getVoteProgress(e.msg,i.id).progress),"stroke-width":5,"hide-info":""}}),e.msg.anonymous==0?t("div",{staticClass:"avatar-row"},[e._l((e.msg.votes||[]).filter(function(n){return n.votes.indexOf(i.id)!=-1}),function(n){return[t("UserAvatar",{attrs:{userid:n.userid,size:18}})]})],2):e._e()],1)}),0)]),e.msg.state==1&&e.msg.userid==e.userId?t("div",{staticClass:"btn-row"},[t("Button",{attrs:{type:"warning",loading:e.msg._loadIng>0},on:{click:function(i){return e.onVote("again")}}},[e._v(e._s(e.$L("\u518D\u6B21\u53D1\u9001")))]),t("Button",{attrs:{type:"warning",loading:e.msg._loadIng>0},on:{click:function(i){return e.onVote("finish")}}},[e._v(e._s(e.$L("\u7ED3\u675F\u6295\u7968")))])],1):e._e()]],2)},qa=[];const Ka={props:{msg:Object,voteData:Object},methods:{getVoteProgress(e,s){const t=e.votes.filter(n=>(n.votes||"").indexOf(s)!=-1).length,i=t?(t/e.votes.length*100).toFixed(2):"0.00";return{num:t,progress:i}},onVote(e){this.$emit("onVote",e)}}},ys={};var Ga=A(Ka,Ya,qa,!1,Ja,null,null,null);function Ja(e){for(let s in ys)this[s]=ys[s]}var Qa=function(){return Ga.exports}(),Xa=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[e._v(" "+e._s(e.$L("\u60A8\u597D\uFF0C\u6211\u662F\u673A\u5668\u4EBA"))+"\uFF1A"+e._s(e.msg.data.nickname)+"\uFF0C"+e._s(e.$L("\u6211\u7684\u673A\u5668\u4EBAID\u662F"))+"\uFF1A"+e._s(e.msg.data.userid)+"\uFF0C"+e._s(e.$L("\u4F60\u53EF\u4EE5\u53D1\u9001"))+" "),t("span",{staticClass:"mark-color mark-set"},[e._v("/help")]),e._v(" "+e._s(e.$L("\u67E5\u770B\u6211\u652F\u6301\u4EC0\u4E48\u547D\u4EE4"))+"\u3002 ")])},Za=[];const el={props:{msg:Object},data(){return{}},computed:{},methods:{}},ws={};var tl=A(el,Xa,Za,!1,sl,null,null,null);function sl(e){for(let s in ws)this[s]=ws[s]}var il=function(){return tl.exports}(),nl=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("DialogMarkdown",{attrs:{text:e.content}})},rl=[];const ol={components:{DialogMarkdown:J},props:{msg:Object},data(){return{}},computed:{IDLabel(){return this.msg.manager?this.$L("\u673A\u5668\u4EBAID"):""},content(){return["### {{\u60A8\u53EF\u4EE5\u901A\u8FC7\u53D1\u9001\u4EE5\u4E0B\u547D\u4EE4\u6765\u63A7\u5236\u6211}}","","| {{\u547D\u4EE4}} | {{\u8BF4\u660E}} |","| ------ | ------ |",this.msg.manager?"| ~/list~ | {{\u673A\u5668\u4EBA\u5217\u8868}} |":null,this.msg.manager?"| ~/newbot ({{\u673A\u5668\u4EBA\u540D\u79F0}})~ | {{\u521B\u5EFA\u673A\u5668\u4EBA}} |":null,this.msg.manager?null:"| ~/info~ | {{\u67E5\u770B\u673A\u5668\u4EBA\u8BE6\u60C5}} |","","### {{\u4FEE\u6539\u673A\u5668\u4EBA}}","","| {{\u547D\u4EE4}} | {{\u8BF4\u660E}} |","| ------ | ------ |","| ~/setname:IDLabel: ({{\u673A\u5668\u4EBA\u540D\u79F0}})~ | {{\u4FEE\u6539\u673A\u5668\u4EBA\u540D\u79F0}} |","| ~/deletebot:IDLabel:~ | {{\u5220\u9664\u673A\u5668\u4EBA}} |","| ~/clearday:IDLabel: ({{\u5929\u6570}})~ | {{\u8BBE\u7F6E\u4FDD\u7559\u6D88\u606F\u65F6\u95F4\uFF08\u9ED8\u8BA430\u5929\uFF09}} |","| ~/webhook:IDLabel: [url]~ | {{\u8BBE\u7F6E\u6D88\u606FWebhook\uFF08\u8BE6\u60C5\u8BF7\u770B API\u63A5\u53E3\u6587\u6863\uFF09}} |","","### {{\u673A\u5668\u4EBA\u8BBE\u7F6E}}","","| {{\u547D\u4EE4}} | {{\u8BF4\u660E}} |","| ------ | ------ |","| ~/token:IDLabel:~ | {{\u751F\u6210Token\u4EE4\u724C}} |","| ~/revoke:IDLabel:~ | {{\u64A4\u9500\u673A\u5668\u4EBAToken\u4EE4\u724C}} |","","### {{\u4F1A\u8BDD\u7BA1\u7406}}","","| {{\u547D\u4EE4}} | {{\u8BF4\u660E}} |","| ------ | ------ |","| ~/dialog:IDLabel: [{{\u641C\u7D22\u5173\u952E\u8BCD}}]~ | {{\u67E5\u770B\u4F1A\u8BDDID}} |","","### {{API\u63A5\u53E3\u6587\u6863}}","","| {{\u547D\u4EE4}} | {{\u8BF4\u660E}} |","| ------ | ------ |","| ~/api~ | {{\u67E5\u770B\u63A5\u53E3\u5217\u8868}} |"].filter(Boolean).map(e=>e.replace(/~([^~]+)~/g,(s,t)=>''+t+" ").replace(/\{\{([^}]+)\}\}/g,(s,t)=>this.$L(t)).replace(/:IDLabel:/g," {"+this.IDLabel+"}")).join(`
+`)}}},$s={};var al=A(ol,nl,rl,!1,ll,null,null,null);function ll(e){for(let s in $s)this[s]=$s[s]}var cl=function(){return al.exports}(),ul=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("DialogMarkdown",{attrs:{text:e.content}})},dl=[];const hl={components:{DialogMarkdown:J},props:{msg:Object},data(){return{}},computed:{content(){return["### {{\u6211\u7684\u673A\u5668\u4EBA}}","","| ID | {{\u540D\u79F0}} | {{\u6E05\u7406\u65F6\u95F4}} | Webhook |","| ------ | ------ | ------ | ------ |",...this.msg.data.map(e=>"| "+e.userid+" | "+e.nickname+" | "+e.clear_day+" | "+(e.webhook_url?"\u221A":"")+" |")].map(e=>e.replace(/\{\{([^}]+)\}\}/g,(s,t)=>this.$L(t))).join(`
+`)}},methods:{}},ks={};var pl=A(hl,ul,dl,!1,fl,null,null,null);function fl(e){for(let s in ks)this[s]=ks[s]}var ml=function(){return pl.exports}(),gl=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("DialogMarkdown",{attrs:{text:e.content}})},_l=[];const vl={components:{DialogMarkdown:J},props:{msg:Object},data(){return{}},computed:{content(){return["### {{\u673A\u5668\u4EBA\u8BE6\u60C5}}","","| {{\u5C5E\u6027}} | {{\u7ED3\u679C}} |","| ------ | ------ |","| {{\u673A\u5668\u4EBAID}} | "+this.msg.data.userid+" |","| {{\u673A\u5668\u4EBA\u540D\u79F0}} | "+this.msg.data.nickname+" |","| {{\u4FDD\u7559\u6D88\u606F\u65F6\u95F4}} | "+this.msg.data.clear_day+" |","| {{\u6700\u540E\u4E00\u6B21\u6E05\u7406\u65F6\u95F4}} | "+this.msg.data.clear_at+" |"].map(e=>e.replace(/\{\{([^}]+)\}\}/g,(s,t)=>this.$L(t))).join(`
+`)}},methods:{}},bs={};var yl=A(vl,gl,_l,!1,wl,null,null,null);function wl(e){for(let s in bs)this[s]=bs[s]}var $l=function(){return yl.exports}(),kl=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("DialogMarkdown",{attrs:{text:e.content}})},bl=[];const Al={components:{DialogMarkdown:J},props:{msg:Object},data(){return{}},computed:{content(){return["### {{\u521B\u5EFA\u6210\u529F}}","","| {{\u5C5E\u6027}} | {{\u7ED3\u679C}} |","| ------ | ------ |","| {{\u673A\u5668\u4EBAID}} | "+this.msg.data.userid+" |","| {{\u673A\u5668\u4EBA\u540D\u79F0}} | "+this.msg.data.nickname+" |"].map(e=>e.replace(/\{\{([^}]+)\}\}/g,(s,t)=>this.$L(t))).join(`
+`)}},methods:{}},As={};var Cl=A(Al,kl,bl,!1,Sl,null,null,null);function Sl(e){for(let s in As)this[s]=As[s]}var xl=function(){return Cl.exports}(),Tl=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("DialogMarkdown",{attrs:{text:e.content}})},Il=[];const Dl={components:{DialogMarkdown:J},props:{msg:Object},data(){return{}},computed:{content(){return["### {{\u8BBE\u7F6E\u540D\u79F0\u6210\u529F}}","","| {{\u5C5E\u6027}} | {{\u7ED3\u679C}} |","| ------ | ------ |","| {{\u673A\u5668\u4EBAID}} | "+this.msg.data.userid+" |","| {{\u673A\u5668\u4EBA\u540D\u79F0}} | "+this.msg.data.nickname+" |"].map(e=>e.replace(/\{\{([^}]+)\}\}/g,(s,t)=>this.$L(t))).join(`
+`)}},methods:{}},Cs={};var El=A(Dl,Tl,Il,!1,Ll,null,null,null);function Ll(e){for(let s in Cs)this[s]=Cs[s]}var Ml=function(){return El.exports}(),Pl=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("DialogMarkdown",{attrs:{text:e.content}})},jl=[];const Rl={components:{DialogMarkdown:J},props:{msg:Object},data(){return{}},computed:{content(){return["### {{\u5220\u9664\u6210\u529F}}","","| {{\u5C5E\u6027}} | {{\u7ED3\u679C}} |","| ------ | ------ |","| {{\u673A\u5668\u4EBAID}} | "+this.msg.data.userid+" |","| {{\u673A\u5668\u4EBA\u540D\u79F0}} | "+this.msg.data.nickname+" |"].map(e=>e.replace(/\{\{([^}]+)\}\}/g,(s,t)=>this.$L(t))).join(`
+`)}},methods:{}},Ss={};var Ol=A(Rl,Pl,jl,!1,zl,null,null,null);function zl(e){for(let s in Ss)this[s]=Ss[s]}var Ul=function(){return Ol.exports}(),Bl=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("DialogMarkdown",{attrs:{text:e.content}})},Nl=[];const Fl={components:{DialogMarkdown:J},props:{msg:Object},data(){return{}},computed:{content(){return["### {{\u751F\u6210Token\u4EE4\u724C}}","","| {{\u5C5E\u6027}} | {{\u7ED3\u679C}} |","| ------ | ------ |","| {{\u673A\u5668\u4EBAID}} | "+this.msg.data.userid+" |","| {{\u673A\u5668\u4EBA\u540D\u79F0}} | "+this.msg.data.nickname+" |","| Token | "+this.msg.data.token+" |"].map(e=>e.replace(/\{\{([^}]+)\}\}/g,(s,t)=>this.$L(t))).join(`
+`)}},methods:{}},xs={};var Hl=A(Fl,Bl,Nl,!1,Wl,null,null,null);function Wl(e){for(let s in xs)this[s]=xs[s]}var Vl=function(){return Hl.exports}(),Yl=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("DialogMarkdown",{attrs:{text:e.content}})},ql=[];const Kl={components:{DialogMarkdown:J},props:{msg:Object},data(){return{}},computed:{content(){return["### {{\u64A4\u9500\u673A\u5668\u4EBAToken\u4EE4\u724C}}","","| {{\u5C5E\u6027}} | {{\u7ED3\u679C}} |","| ------ | ------ |","| {{\u673A\u5668\u4EBAID}} | "+this.msg.data.userid+" |","| {{\u673A\u5668\u4EBA\u540D\u79F0}} | "+this.msg.data.nickname+" |"].map(e=>e.replace(/\{\{([^}]+)\}\}/g,(s,t)=>this.$L(t))).join(`
+`)}},methods:{}},Ts={};var Gl=A(Kl,Yl,ql,!1,Jl,null,null,null);function Jl(e){for(let s in Ts)this[s]=Ts[s]}var Ql=function(){return Gl.exports}(),Xl=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("DialogMarkdown",{attrs:{text:e.content}})},Zl=[];const ec={components:{DialogMarkdown:J},props:{msg:Object},data(){return{}},computed:{content(){return["### {{\u8BBE\u7F6EWebhook\u5730\u5740}}","","| {{\u5C5E\u6027}} | {{\u7ED3\u679C}} |","| ------ | ------ |","| {{\u673A\u5668\u4EBAID}} | "+this.msg.data.userid+" |","| {{\u673A\u5668\u4EBA\u540D\u79F0}} | "+this.msg.data.nickname+" |","| {{Webhook\u5730\u5740}} | "+this.msg.data.webhook_url+" |"].map(e=>e.replace(/\{\{([^}]+)\}\}/g,(s,t)=>this.$L(t))).join(`
+`)}},methods:{}},Is={};var tc=A(ec,Xl,Zl,!1,sc,null,null,null);function sc(e){for(let s in Is)this[s]=Is[s]}var ic=function(){return tc.exports}(),nc=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("DialogMarkdown",{attrs:{text:e.content}})},rc=[];const oc={components:{DialogMarkdown:J},props:{msg:Object},data(){return{}},computed:{content(){return["### {{\u8BBE\u7F6E\u4FDD\u7559\u6D88\u606F\u65F6\u95F4}}","","| {{\u5C5E\u6027}} | {{\u7ED3\u679C}} |","| ------ | ------ |","| {{\u673A\u5668\u4EBAID}} | "+this.msg.data.userid+" |","| {{\u673A\u5668\u4EBA\u540D\u79F0}} | "+this.msg.data.nickname+" |","| {{\u6E05\u7406\u5468\u671F}} | "+this.msg.data.clear_day+" {{\u5929}} |","| {{\u4E0B\u6B21\u6E05\u7406}} | "+this.msg.data.clear_at+" |"].map(e=>e.replace(/\{\{([^}]+)\}\}/g,(s,t)=>this.$L(t))).join(`
+`)}},methods:{}},Ds={};var ac=A(oc,nc,rc,!1,lc,null,null,null);function lc(e){for(let s in Ds)this[s]=Ds[s]}var cc=function(){return ac.exports}(),uc=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("DialogMarkdown",{attrs:{text:e.content}})},dc=[];const hc={components:{DialogMarkdown:J},props:{msg:Object},data(){return{}},computed:{content(){return["### {{\u673A\u5668\u4EBA}} "+this.msg.data.nickname+" (ID:"+this.msg.data.userid+") {{\u5DF2\u52A0\u5165\u7684\u4F1A\u8BDD}}\uFF1A","","| {{\u4F1A\u8BDDID}} | {{\u4F1A\u8BDD\u540D\u79F0}} |","| ------ | ------ |",...this.msg.data.list.map(e=>"| "+e.id+" | "+e.name+(e.type==="user"?"{{ (\u4E2A\u4EBA)}}":"")+" |")].map(e=>e.replace(/\{\{([^}]+)\}\}/g,(s,t)=>this.$L(t))).join(`
+`)}},methods:{}},Es={};var pc=A(hc,uc,dc,!1,fc,null,null,null);function fc(e){for(let s in Es)this[s]=Es[s]}var mc=function(){return pc.exports}(),gc=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("DialogMarkdown",{attrs:{text:e.content}})},_c=[];const vc={components:{DialogMarkdown:J},props:{msg:Object},data(){return{isChinese:/^zh/.test(M),chineseTemplate:`
## API \u4F7F\u7528\u8BF4\u660E
---
@@ -437,8 +437,8 @@ var er=Object.defineProperty;var tr=(e,s,t)=>s in e?er(e,s,{enumerable:!0,config
---
**Tip**: Please keep the bot Token secure, ensure the Webhook interface is stable and responds promptly. For more help, send the /help command.
-`}},computed:{content(){const e={sendApiUrl:$A.apiUrl("dialog/msg/sendtext"),version:this.msg.version,sessionDesc:/^(ai-|user-session-)/.test(this.msg.email)?"":` (${this.$L("\u8BE5\u673A\u5668\u4EBA\u4E0D\u652F\u6301")}) `};return(this.isChinese?this.chineseTemplate:this.englishTemplate).replace(/\{\{([^}]+)\}\}/g,(t,i)=>e[i]||i).trim()}},methods:{}},Ls={};var wc=A(yc,_c,vc,!1,$c,null,null,null);function $c(e){for(let s in Ls)this[s]=Ls[s]}var kc=function(){return wc.exports}(),bc=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"open-approve-details",attrs:{"data-id":e.msg.data.id}},[t("b",[e._v(e._s(e.$L("(*)\u63D0\u4EA4\u7684\u300C(*)\u300D\u5F85\u4F60\u5BA1\u6279",e.msg.data.nickname,e.$L(e.msg.data.proc_def_name))))]),t("div",{staticClass:"cause"},[t("p",[e._v(e._s(e.$L("\u72B6\u6001"))+"\uFF1A"),t("b",[e._v(e._s(e.$L(e.statusText)))])]),t("p",[e._v(e._s(e.$L("\u7533\u8BF7\u4EBA"))+"\uFF1A"),t("span",{staticClass:"mark-color"},[e._v("@"+e._s(e.msg.data.nickname))]),e._v(" "+e._s(e.msg.data.department))]),t("b",[e._v(e._s(e.$L("\u8BE6\u60C5")))]),e.msg.data.type?t("p",[e._v(e._s(e.$L("\u7C7B\u578B"))+"\uFF1A"+e._s(e.$L(e.msg.data.type)))]):e._e(),e.msg.data.start_time?t("p",[e._v(e._s(e.$L("\u5F00\u59CB\u65F6\u95F4"))+"\uFF1A"+e._s(e.msg.data.start_time)),e.msg.data.start_day_of_week?[e._v(" ("+e._s(e.$L(e.msg.data.start_day_of_week))+")")]:e._e()],2):e._e(),e.msg.data.end_time?t("p",[e._v(e._s(e.$L("\u7ED3\u675F\u65F6\u95F4"))+"\uFF1A"+e._s(e.msg.data.end_time)),e.msg.data.end_day_of_week?[e._v(" ("+e._s(e.$L(e.msg.data.end_day_of_week))+")")]:e._e()],2):e._e(),e.msg.data.description?t("p",[e._v(e._s(e.$L("\u4E8B\u7531"))+"\uFF1A"+e._s(e.msg.data.description))]):e._e(),e.msg.data.thumb?t("p",{domProps:{innerHTML:e._s(e.imageHtml(e.msg.data.thumb))}}):e._e()])])},Ac=[];const Cc={props:{msg:Object},data(){return{}},computed:{statusText({msg:e}){switch(e.action){case"pass":return"\u5DF2\u540C\u610F";case"refuse":return"\u5DF2\u62D2\u7EDD";case"withdraw":return"\u5DF2\u64A4\u9500";default:return"\u5F85\u5BA1\u6279"}}},methods:{imageHtml(e){const s=$A.imageRatioHandle({src:e.url,width:e.width,height:e.height,crops:{ratio:5,percentage:"320x0"},scaleSize:220});return` `}}},Ms={};var Sc=A(Cc,bc,Ac,!1,xc,null,null,null);function xc(e){for(let s in Ms)this[s]=Ms[s]}var Tc=function(){return Sc.exports}(),Ic=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"open-approve-details",attrs:{"data-id":e.msg.data.id}},[t("b",[e._v(e._s(e.$L("\u6284\u9001(*)\u63D0\u4EA4\u7684\u300C(*)\u300D\u8BB0\u5F55",e.msg.data.nickname,e.$L(e.msg.data.proc_def_name))))]),t("div",{staticClass:"cause"},[t("p",[e._v(e._s(e.$L("\u72B6\u6001"))+"\uFF1A"),t("b",[e._v(e._s(e.msg.is_finished?e.$L("\u5DF2\u5B8C\u6210"):e.$L("\u5BA1\u6279\u4E2D")))])]),t("p",[e._v(e._s(e.$L("\u7533\u8BF7\u4EBA"))+"\uFF1A"),t("span",{staticClass:"mark-color"},[e._v("@"+e._s(e.msg.data.nickname))]),e._v(" "+e._s(e.msg.data.department))]),t("b",[e._v(e._s(e.$L("\u8BE6\u60C5")))]),e.msg.data.type?t("p",[e._v(e._s(e.$L("\u7C7B\u578B"))+"\uFF1A"+e._s(e.$L(e.msg.data.type)))]):e._e(),e.msg.data.start_time?t("p",[e._v(e._s(e.$L("\u5F00\u59CB\u65F6\u95F4"))+"\uFF1A"+e._s(e.msg.data.start_time)),e.msg.data.start_day_of_week?[e._v(" ("+e._s(e.$L(e.msg.data.start_day_of_week))+")")]:e._e()],2):e._e(),e.msg.data.end_time?t("p",[e._v(e._s(e.$L("\u7ED3\u675F\u65F6\u95F4"))+"\uFF1A"+e._s(e.msg.data.end_time)),e.msg.data.end_day_of_week?[e._v(" ("+e._s(e.$L(e.msg.data.end_day_of_week))+")")]:e._e()],2):e._e(),e.msg.data.description?t("p",[e._v(e._s(e.$L("\u4E8B\u7531"))+"\uFF1A"+e._s(e.msg.data.description))]):e._e()])])},Dc=[];const Ec={props:{msg:Object},data(){return{}},computed:{},methods:{}},Ps={};var Lc=A(Ec,Ic,Dc,!1,Mc,null,null,null);function Mc(e){for(let s in Ps)this[s]=Ps[s]}var Pc=function(){return Lc.exports}(),jc=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"open-approve-details",attrs:{"data-id":e.msg.data.id}},[t("b",[e._v(e._s(e.$L("(*)\u8BC4\u8BBA\u4E86(*)\u7684\u300C(*)\u300D\u5BA1\u6279",e.msg.data.comment_nickname,e.msg.data.nickname,e.$L(e.msg.data.proc_def_name))))]),t("div",{staticClass:"cause"},[t("p",[e._v(e._s(e.$L("\u7533\u8BF7\u4EBA"))+"\uFF1A"),t("span",{staticClass:"mark-color"},[e._v("@"+e._s(e.msg.data.nickname))]),e._v(" "+e._s(e.msg.data.department))]),t("b",[e._v(e._s(e.$L("\u8BC4\u8BBA\u5185\u5BB9")))]),t("p",[e._v(e._s(e.msg.data.comment_content))]),e.msg.data.thumb?t("p",{domProps:{innerHTML:e._s(e.imageHtml(e.msg.data.thumb))}}):e._e()])])},Rc=[];const Oc={props:{msg:Object},data(){return{}},methods:{imageHtml(e){const s=$A.imageRatioHandle({src:e.url,width:e.width,height:e.height,crops:{ratio:5,percentage:"320x0"},scaleSize:220});return` `}}},js={};var zc=A(Oc,jc,Rc,!1,Uc,null,null,null);function Uc(e){for(let s in js)this[s]=js[s]}var Bc=function(){return zc.exports}(),Nc=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"open-approve-details",attrs:{"data-id":e.msg.data.id}},[t("b",[e._v(e._s(e.title))]),t("div",{staticClass:"cause"},[t("p",[e._v(e._s(e.$L("\u72B6\u6001"))+"\uFF1A"),t("b",[e._v(e._s(e.$L(e.statusText)))])]),t("p",[e._v(e._s(e.$L("\u7533\u8BF7\u4EBA"))+"\uFF1A"),t("span",{staticClass:"mark-color"},[e._v("@"+e._s(e.msg.data.start_nickname))]),e._v(" "+e._s(e.msg.data.department))]),t("b",[e._v(e._s(e.$L("\u8BE6\u60C5")))]),e.msg.data.type?t("p",[e._v(e._s(e.$L("\u7C7B\u578B"))+"\uFF1A"+e._s(e.$L(e.msg.data.type)))]):e._e(),e.msg.data.start_time?t("p",[e._v(e._s(e.$L("\u5F00\u59CB\u65F6\u95F4"))+"\uFF1A"+e._s(e.msg.data.start_time)),e.msg.data.start_day_of_week?[e._v(" ("+e._s(e.$L(e.msg.data.start_day_of_week))+")")]:e._e()],2):e._e(),e.msg.data.end_time?t("p",[e._v(e._s(e.$L("\u7ED3\u675F\u65F6\u95F4"))+"\uFF1A"+e._s(e.msg.data.end_time)),e.msg.data.end_day_of_week?[e._v(" ("+e._s(e.$L(e.msg.data.end_day_of_week))+")")]:e._e()],2):e._e(),e.msg.data.description?t("p",[e._v(e._s(e.$L("\u4E8B\u7531"))+"\uFF1A"+e._s(e.msg.data.description))]):e._e()])])},Fc=[];const Hc={props:{msg:Object},data(){return{}},computed:{title({msg:e}){const s=this.$L(e.data.proc_def_name);return e.action==="pass"?this.$L("\u60A8\u53D1\u8D77\u7684\u300C(*)\u300D\u5DF2\u901A\u8FC7",s):this.$L("\u60A8\u53D1\u8D77\u7684\u300C(*)\u300D\u88AB(*)\u62D2\u7EDD",s,e.data.nickname)},statusText({msg:e}){switch(e.action){case"pass":return"\u5DF2\u901A\u8FC7";case"refuse":return"\u5DF2\u62D2\u7EDD";case"withdraw":return"\u5DF2\u64A4\u9500";default:return"\u5904\u7406\u4E2D"}}},methods:{}},Rs={};var Wc=A(Hc,Nc,Fc,!1,Vc,null,null,null);function Vc(e){for(let s in Rs)this[s]=Rs[s]}var Yc=function(){return Wc.exports}(),qc=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[t("p",[e._v(e._s(e.$L(e.msg.title)))]),t("p",[e._v("\xA0")]),e._l(e.msg.list,function(i,n){return t("p",{key:n},[t("span",{staticClass:"mention task",attrs:{"data-id":i.id}},[e._v("#"+e._s(i.name))])])})],2)},Kc=[];const Gc={props:{msg:Object},data(){return{}},computed:{},methods:{}},Os={};var Jc=A(Gc,qc,Kc,!1,Qc,null,null,null);function Qc(e){for(let s in Os)this[s]=Os[s]}var Xc=function(){return Jc.exports}(),Zc=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[t("p",[t("b",[e._v(e._s(e.$L(e.msg.title)))])]),t("p",[e._v("\xA0")]),t("p",[e._v(e._s(e.$L("\u6587\u4EF6\u540D"))+": "+e._s(e.msg.name))]),t("p",[e._v(e._s(e.$L("\u6587\u4EF6\u5927\u5C0F"))+": "+e._s(e.$A.bytesToSize(e.msg.size)))]),t("p",{staticStyle:{"margin-top":"10px"}},[t("Button",{staticClass:"no-dark-content",attrs:{to:e.msg.url,target:"_blank",type:"warning"}},[e._v(e._s(e.$L("\u7ACB\u5373\u4E0B\u8F7D")))])],1)])},eu=[];const tu={props:{msg:Object},data(){return{}},computed:{},methods:{}},zs={};var su=A(tu,Zc,eu,!1,iu,null,null,null);function iu(e){for(let s in zs)this[s]=zs[s]}var nu=function(){return su.exports}(),ru=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",e._l(e.items,function(i,n){return t("p",{key:n,style:i.style},[e._v(e._s(i.content))])}),0)},ou=[];const au={props:{msg:Object},data(){return{}},computed:{items({msg:e}){const{content:s}=e;return $A.isArray(s)?s.map(t=>this.formatContent(t)):[this.formatContent(s)]}},methods:{formatContent(e){return $A.isJson(e)?{content:e.language===!1||this.msg.source==="api"?e.content:this.$L(e.content),style:e.style||{}}:{content:this.$L(e),style:{}}}}},Us={};var lu=A(au,ru,ou,!1,cu,null,null,null);function cu(e){for(let s in Us)this[s]=Us[s]}var uu=function(){return lu.exports}(),du=function(){var e=this,s=e.$createElement,t=e._self._c||s;return e.isBot?t("div",[e._v(" "+e._s(e.$L("\u4E0D\u652F\u6301\u7684\u6307\u4EE4"))+" "),t("span",{staticClass:"warning-color"},[e._v(e._s(e.msg.type))]),e._v("\uFF0C"+e._s(e.$L("\u4F60\u53EF\u4EE5\u53D1\u9001"))+" "),t("span",{staticClass:"mark-color mark-set"},[e._v("/help")]),e._v(" "+e._s(e.$L("\u67E5\u770B\u5E2E\u52A9\u83DC\u5355"))+"\u3002 ")]):t("div",[e._v(" "+e._s(e.$L("\u672A\u77E5\u7684\u6D88\u606F"))+" ")])},hu=[];const pu={props:{msg:Object},data(){return{}},computed:{isBot(){return/^\//.test(this.msg.type)}},methods:{}},Bs={};var fu=A(pu,du,hu,!1,mu,null,null,null);function mu(e){for(let s in Bs)this[s]=Bs[s]}var gu=function(){return fu.exports}(),_u=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{class:`content-template no-dark-content ${e.msg.type}`,on:{click:e.viewText}},[t(e.currentTemplate,{tag:"component",attrs:{msg:e.msg}})],1)},vu=[];const yu={props:{msg:Object},data(){return{}},computed:{currentTemplate(){switch(this.msg.type){case"/hello":return nl;case"/help":return ul;case"/list":return gl;case"/info":return kl;case"/newbot":return Tl;case"/setname":return Pl;case"/deletebot":return Bl;case"/token":return Yl;case"/revoke":return Xl;case"/webhook":return nc;case"/clearday":return uc;case"/dialog":return gc;case"/api":return kc;case"approve_reviewer":return Tc;case"approve_notifier":return Pc;case"approve_comment_notifier":return Bc;case"approve_submitter":return Yc;case"task_list":return Xc;case"file_download":return nu;case"content":return uu;default:return gu}}},methods:{viewText(e){this.$emit("viewText",e)}}},Ns={};var wu=A(yu,_u,vu,!1,$u,null,null,null);function $u(e){for(let s in Ns)this[s]=Ns[s]}var ku=function(){return wu.exports}(),bu=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"content-merge-forward",on:{click:e.openDetail}},[t("div",{staticClass:"merge-title"},[e._v(e._s(e.mergeTitle))]),t("div",{staticClass:"merge-list"},e._l(e.displayList,function(i,n){return t("div",{key:n,staticClass:"merge-item"},[t("UserAvatar",{attrs:{userid:i.userid,"show-icon":!1,"show-name":!0,size:14}}),t("span",{staticClass:"item-colon"},[e._v(":")]),t("span",{staticClass:"item-desc",domProps:{innerHTML:e._s(e.$A.getMsgSimpleDesc(i))}})],1)}),0),t("div",{staticClass:"merge-footer"},[e._v(e._s(e.$L("\u5171(*)\u6761\u6D88\u606F",e.msg.count||0)))])])},Au=[];const Cu={name:"MergeForwardMsg",props:{msg:{type:Object,default:()=>({})}},computed:{displayList(){var e;return((e=this.msg)==null?void 0:e.preview)||[]},mergeTitle(){return $A.getMergeForwardTitle(this.msg)}},methods:{openDetail(){this.$emit("on-view-detail",this.msg)}}},Fs={};var Su=A(Cu,bu,Au,!1,xu,null,null,null);function xu(e){for(let s in Fs)this[s]=Fs[s]}var Tu=function(){return Su.exports}(),Iu=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"content-loading"},[e.error===!0?t("Icon",{attrs:{type:"ios-alert-outline"}}):t("Loading")],1)},Du=[];const Eu={props:{error:Boolean}},Hs={};var Lu=A(Eu,Iu,Du,!1,Mu,null,null,null);function Mu(e){for(let s in Hs)this[s]=Hs[s]}var Pu=function(){return Lu.exports}(),ju=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"content-unknown"},[e._v(e._s(e.$L("\u672A\u77E5\u7684\u6D88\u606F")))])},Ru=[];const Ou={},Ws={};var zu=A(Ou,ju,Ru,!1,Uu,null,null,null);function Uu(e){for(let s in Ws)this[s]=Ws[s]}var Bu=function(){return zu.exports}(),Nu=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"dialog-view",class:e.viewClass,attrs:{"data-id":e.msgData.id}},[e.dialogType==="group"?t("div",{staticClass:"dialog-username",on:{pointerdown:function(i){return e.handleOperation(i,"mention")}}},[t("UserAvatar",{attrs:{userid:e.msgData.userid,"show-icon":!1,"show-name":!0,"name-text":e.msgData.userid===-1&&e.msgData.msg.nickname||"","click-open-detail":e.msgData.userid!==-1}})],1):e._e(),t("div",{staticClass:"dialog-head",class:e.headClass,on:{click:e.handleClick,pointerdown:function(i){return e.handleOperation(i,"operateMsg")}}},[!e.hideReply&&e.msgData.reply_id&&e.showReplyData(e.msgData.msg.reply_data)?t("div",{staticClass:"dialog-reply no-dark-content",class:e.replyClass,on:{click:e.viewReply}},[t("div",{staticClass:"reply-avatar"},[t("UserAvatar",{attrs:{userid:e.msgData.msg.reply_data.userid,"show-icon":!1,"show-name":!0,"name-text":e.msgData.msg.reply_data.userid===-1&&e.msgData.msg.reply_data.msg&&e.msgData.msg.reply_data.msg.nickname||""}})],1),t("div",{staticClass:"reply-desc",domProps:{innerHTML:e._s(e.$A.getMsgSimpleDesc(e.msgData.msg.reply_data,"image-preview"))}})]):e._e(),!e.hideForward&&e.msgData.forward_id&&e.showForwardData(e.msgData.msg.forward_data)?t("div",{staticClass:"dialog-reply no-dark-content",on:{click:function(i){e.msgData.msg.forward_data.userid!==-1&&e.openDialog(e.msgData.msg.forward_data.userid)}}},[t("div",{staticClass:"reply-avatar"},[t("UserAvatar",{attrs:{userid:e.msgData.msg.forward_data.userid,"show-icon":!1,"show-name":!0}})],1)]):e._e(),t("div",{ref:"content",staticClass:"dialog-content",class:e.contentClass},[e.msgData.type==="text"?t("TextMsg",{attrs:{msgId:e.msgData.id,msg:e.msgData.msg,createdAt:e.msgData.created_at},on:{viewText:e.viewText}}):e.msgData.type==="longtext"?t("LongTextMsg",{attrs:{msgId:e.msgData.id,msg:e.msgData.msg},on:{viewText:e.viewText,downFile:e.downFile}}):e.msgData.type==="file"?t("FileMsg",{attrs:{"msg-id":e.msgData.id,msg:e.msgData.msg},on:{viewFile:e.viewFile,downFile:e.downFile}}):e.msgData.type==="record"?t("RecordMsg",{attrs:{msgId:e.msgData.id,msg:e.msgData.msg},on:{viewText:e.viewText,playRecord:e.playRecord}}):e.msgData.type==="location"?t("LocationMsg",{attrs:{msg:e.msgData.msg}}):e.msgData.type==="meeting"?t("MeetingMsg",{attrs:{msg:e.msgData.msg},on:{openMeeting:e.openMeeting}}):e.msgData.type==="word-chain"?t("WordChainMsg",{attrs:{msg:e.msgData.msg,msgId:e.msgData.id,unfoldWordChainData:e.unfoldWordChainData},on:{unfoldWordChain:function(i){return e.unfoldWordChain(e.msgData)},onWordChain:e.onWordChain}}):e.msgData.type==="vote"?t("VoteMsg",{attrs:{msg:e.msgData.msg,voteData:e.voteData},on:{onVote:function(i){return e.onVote(i,e.msgData)}}}):e.msgData.type==="merge-forward"?t("MergeForwardMsg",{attrs:{msg:e.msgData.msg},on:{"on-view-detail":e.onMergeForwardDetail}}):e.msgData.type==="template"?t("TemplateMsg",{attrs:{msg:e.msgData.msg},on:{viewText:e.viewText}}):e.isLoading?t("LoadMsg",{attrs:{error:e.msgData.error}}):t("UnknownMsg")],1),e.$A.arrayLength(e.msgData.emoji)>0?t("ul",{staticClass:"dialog-emoji"},e._l(e.msgData.emoji,function(i,n){return t("li",{key:n,class:{hasme:i.userids.includes(e.userId)}},[t("div",{staticClass:"emoji-symbol no-dark-content",on:{click:function(r){return e.onEmoji(i.symbol)}}},[e._v(e._s(i.symbol))]),t("div",{staticClass:"emoji-users",on:{click:function(r){return e.onShowEmojiUser(i)}}},[t("ul",[e._l(e.sortEmojiUser(i.userids),function(r,o){return[o0?t("div",{staticClass:"reply",on:{click:e.replyList}},[t("i",{staticClass:"taskfont"},[e._v("\uE6EB")]),e._v(" "+e._s(e.$L("(*)\u6761\u56DE\u590D",e.msgData.reply_num))+" ")]):e._e(),e.msgData.tag?t("div",{staticClass:"tag",on:{click:e.openTag}},[t("i",{staticClass:"taskfont"},[e._v("\uE61E")])]):e._e(),e.msgData.todo?t("div",{staticClass:"todo",class:{todo_done:e.msgData.todo_done},on:{click:e.openTodo}},[t("EPopover",{ref:"todo",attrs:{"popper-class":"dialog-wrapper-read-poptip dialog-wrapper-todo-poptip",placement:e.isRightMsg?"bottom-end":"bottom-start"},model:{value:e.todoShow,callback:function(i){e.todoShow=i},expression:"todoShow"}},[t("div",{staticClass:"read-poptip-content",class:{"is-tab":e.todoNarrow}},[e.todoNarrow?t("div",{staticClass:"todo-tabbar"},[t("span",{staticClass:"todo-tab",class:{on:e.todoTab==="undone"},on:{click:function(i){i.stopPropagation(),e.todoTab="undone"}}},[e._v(e._s(e.$L("\u5F85\u529E"))+" "),t("em",[e._v(e._s(e.todoUndoneList.length))])]),t("span",{staticClass:"todo-tab",class:{on:e.todoTab==="done"},on:{click:function(i){i.stopPropagation(),e.todoTab="done"}}},[e._v(e._s(e.$L("\u5B8C\u6210"))+" "),t("em",[e._v(e._s(e.todoDoneList.length))])]),t("span",{staticClass:"space"}),e.todoTab==="undone"?t("Button",{attrs:{type:"primary",size:"small"},on:{click:function(i){return i.stopPropagation(),e.handleTodoAdd.apply(null,arguments)}}},[e._v(e._s(e.$L("\u6DFB\u52A0")))]):e._e()],1):e._e(),!e.todoNarrow||e.todoTab==="done"?t("Scrollbar",{attrs:{"class-name":"read"}},[e.todoNarrow?e._e():t("div",{staticClass:"read-title"},[t("em",[e._v(e._s(e.todoDoneList.length))]),e._v(" "+e._s(e.$L("\u5B8C\u6210"))+" ")]),e.todoDoneList.length?t("ul",e._l(e.todoDoneList,function(i){return t("li",{key:`todo-done-${i.userid}`},[t("UserAvatar",{attrs:{userid:i.userid,size:26,showName:""}})],1)}),0):t("div",{staticClass:"read-empty"},[t("Icon",{attrs:{type:"ios-checkmark-circle-outline"}}),t("p",[e._v(e._s(e.$L("\u6682\u65E0\u5B8C\u6210")))])],1)]):e._e(),!e.todoNarrow||e.todoTab==="undone"?t("Scrollbar",{attrs:{"class-name":"unread"}},[e.todoNarrow?e._e():t("div",{staticClass:"read-title"},[t("em",[e._v(e._s(e.todoUndoneList.length))]),e._v(" "+e._s(e.$L("\u5F85\u529E"))+" "),t("span",{staticClass:"space"}),t("Button",{attrs:{type:"primary",size:"small"},on:{click:function(i){return i.stopPropagation(),e.handleTodoAdd.apply(null,arguments)}}},[e._v(e._s(e.$L("\u6DFB\u52A0")))])],1),e.todoUndoneList.length?t("ul",e._l(e.todoUndoneList,function(i){return t("li",{key:`todo-undone-${i.userid}`},[t("UserAvatar",{attrs:{userid:i.userid,size:26,showName:""}}),t("span",{staticClass:"todo-remind",on:{click:function(n){n.stopPropagation()}}},[t("DatePicker",{attrs:{open:e.todoRemindOpenUserid===i.userid,value:e.todoRemindOpenUserid===i.userid?e.todoRemindEditing:i.remind_at,type:"datetime",format:"yyyy-MM-dd HH:mm",editable:!1,transfer:""},on:{"on-change":function(n){return e.todoRemindEditing=n},"on-ok":function(n){return e.confirmTodoRemind(i)},"on-clear":function(n){return e.cancelTodoRemind(i)},"on-open-change":function(n){!n&&e.todoRemindOpenUserid===i.userid&&(e.todoRemindOpenUserid=0)}}},[i.remind_at?t("span",{staticClass:"todo-remind-time",on:{click:function(n){return n.stopPropagation(),e.openTodoRemind(i)}}},[t("Icon",{attrs:{type:"ios-alarm-outline"}}),e._v(" "+e._s(e.todoRemindFormat(i.remind_at))+" ")],1):t("Icon",{staticClass:"todo-remind-add",attrs:{type:"ios-clock-outline"},on:{click:function(n){return n.stopPropagation(),e.openTodoRemind(i)}}})],1)],1)],1)}),0):t("div",{staticClass:"read-empty"},[t("Icon",{attrs:{type:"ios-list-box-outline"}}),t("p",[e._v(e._s(e.$L("\u6682\u65E0\u5F85\u529E")))])],1)]):e._e()],1),t("div",{staticClass:"popover-reference",attrs:{slot:"reference"},slot:"reference"})]),e.todoLoad>0?t("Loading"):t("i",{staticClass:"taskfont"},[e._v("\uE7B7")])],1):e._e(),e.msgData.modify?t("div",{staticClass:"modify"},[t("i",{staticClass:"taskfont"},[e._v("\uE779")])]):e._e(),e.msgData.error===!0?t("div",{staticClass:"error",on:{click:e.onError}},[t("Icon",{attrs:{type:"ios-alert"}})],1):e.isLoading?t("Loading",{attrs:{delay:300}}):[e.timeShow?t("div",{staticClass:"time",on:{click:function(i){e.timeShow=!1}}},[e._v(e._s(e.msgData.created_at))]):t("div",{staticClass:"time",attrs:{title:e.msgData.created_at},on:{click:function(i){e.timeShow=!0}}},[e._v(e._s(e.$A.timeFormat(e.msgData.created_at)))]),e.hidePercentage?e._e():[e.dialogType==="group"?t("div",{staticClass:"percent",on:{click:e.openReadPercentage}},[t("EPopover",{ref:"percent",attrs:{"popper-class":"dialog-wrapper-read-poptip",placement:e.isRightMsg?"bottom-end":"bottom-start"},model:{value:e.percentageShow,callback:function(i){e.percentageShow=i},expression:"percentageShow"}},[t("div",{staticClass:"read-poptip-content"},[t("Scrollbar",{attrs:{"class-name":"read"}},[t("div",{staticClass:"read-title"},[t("em",[e._v(e._s(e.readList.length))]),e._v(" "+e._s(e.$L("\u5DF2\u8BFB"))+" ")]),t("ul",e._l(e.readList,function(i){return t("li",{key:`read-${i.userid}`},[t("UserAvatar",{attrs:{userid:i.userid,size:26,showName:""}})],1)}),0)]),t("Scrollbar",{attrs:{"class-name":"unread"}},[t("div",{staticClass:"read-title"},[t("em",[e._v(e._s(e.unreadList.length))]),e._v(" "+e._s(e.$L("\u672A\u8BFB"))+" ")]),t("ul",e._l(e.unreadList,function(i){return t("li",{key:`unread-${i.userid}`},[t("UserAvatar",{attrs:{userid:i.userid,size:26,showName:""}})],1)}),0)])],1),t("div",{staticClass:"popover-reference",attrs:{slot:"reference"},slot:"reference"})]),e.percentageLoad>0?t("Loading"):t("WCircle",{attrs:{percent:e.msgData.percentage,size:14}})],1):e.msgData.percentage===100?t("Icon",{staticClass:"done",attrs:{type:"md-done-all"}}):t("Icon",{staticClass:"done",attrs:{type:"md-checkmark"}})]]],2)])},Fu=[];const xe=Object.freeze({emoticon:/^ ]*?>$/,threeEmoji:/^\s*\s*([\uD800-\uDBFF][\uDC00-\uDFFF]){3}\s*<\/p>\s*$/,twoEmoji:/^\s*
\s*([\uD800-\uDBFF][\uDC00-\uDFFF]){2}\s*<\/p>\s*$/,oneEmoji:/^\s*
\s*[\uD800-\uDBFF][\uDC00-\uDFFF]\s*<\/p>\s*$/,emojiRange:/^\s*
\s*([\uD800-\uDBFF][\uDC00-\uDFFF]){1,3}\s*<\/p>\s*$/}),Hu={name:"DialogView",components:{UnknownMsg:Bu,LoadMsg:Pu,MergeForwardMsg:Tu,TemplateMsg:ku,VoteMsg:Xa,WordChainMsg:Ya,MeetingMsg:Ba,LocationMsg:Pa,RecordMsg:Ta,LongTextMsg:ua,TextMsg:na,FileMsg:ka,WCircle:qo},props:{msgData:{type:Object,default:()=>({})},dialogType:{type:String,default:""},hidePercentage:{type:Boolean,default:!1},hideReply:{type:Boolean,default:!1},hideForward:{type:Boolean,default:!1},operateVisible:{type:Boolean,default:!1},operateAction:{type:Boolean,default:!1},pointerMouse:{type:Boolean,default:!1},isRightMsg:{type:Boolean,default:!1}},data(){return{timeShow:!1,operateEnter:!1,percentageLoad:0,percentageShow:!1,percentageList:[],todoLoad:0,todoShow:!1,todoList:[],todoTab:"undone",todoRemindOpenUserid:0,todoRemindEditing:"",emojiUsersNum:5,voteData:{},dotClicks:[],unfoldWordChainData:[]}},mounted(){this.emojiUsersNum=Math.min(6,Math.max(2,Math.floor((this.windowWidth-180)/52))),Object.keys(this.voteData).length===0&&(this.voteData=JSON.parse(window.localStorage.getItem("__cache:vote__"))||{}),this.unfoldWordChainData.length===0&&(this.unfoldWordChainData=JSON.parse(window.localStorage.getItem("__cache:unfoldWordChain__"))||[])},beforeDestroy(){var e;this.$store.dispatch("audioStop",(e=this.msgData.msg)==null?void 0:e.path)},computed:{...B(["loads"]),...ye(["isLoad"]),isLoading(){return this.msgData.created_at?this.isLoad(`msg-${this.msgData.id}`):!0},readList({userId:e}){return this.percentageList.filter(({userid:s,read_at:t})=>s!=e&&t)},unreadList({userId:e}){return this.percentageList.filter(({userid:s,read_at:t})=>s!=e&&!t)},todoDoneList(){return this.todoList.filter(({done_at:e})=>e)},todoUndoneList(){return this.todoList.filter(({done_at:e})=>!e)},todoNarrow(){return this.windowWidth<=500},viewClass(){const{msgData:e}=this,s=[];return e.type&&s.push(e.type),s},headClass(){const{msgData:e,operateAction:s}=this,{id:t,reply_id:i,type:n,msg:r,emoji:o,dot:a}=e,l=[];return s&&l.push("operating"),a&&!this.dotClicks.includes(t)&&l.push("dot"),i===0&&$A.arrayLength(o)===0&&n==="text"&&(xe.emoticon.test(r.text)||xe.emojiRange.test(r.text))&&l.push("transparent"),l},replyClass(){const e=[];return(this.operateEnter||this.pointerMouse)&&e.push("user-select-auto"),e},contentClass(){const{type:e,msg:s}=this.msgData,t=[];if((this.operateEnter||this.pointerMouse)&&t.push("user-select-auto"),e==="text"&&(s==null?void 0:s.text)){const i=s.text;xe.emoticon.test(i)?t.push("an-emoticon"):xe.threeEmoji.test(i)?t.push("three-emoji"):xe.twoEmoji.test(i)?t.push("two-emoji"):xe.oneEmoji.test(i)&&t.push("an-emoji")}return t}},watch:{operateAction(e){this.operateEnter=!1,e&&setTimeout(s=>this.operateEnter=!0,500)},voteData:{handler(e){const s=JSON.parse(window.localStorage.getItem("__cache:vote__"))||{};for(const t in e)s[t]=e[t];Object.keys(s).length>0&&window.localStorage.setItem("__cache:vote__",JSON.stringify(s))},deep:!0}},methods:{handleOperation({currentTarget:e},s){this.$store.commit("longpress/set",{type:s,data:this.msgData,element:e})},handleClick(){this.msgData.dot&&(this.dotClicks.push(this.msgData.id),this.$store.dispatch("dialogMsgDot",this.msgData))},openTag(){!this.msgData.tag||(this.$store.dispatch("showSpinner",600),this.$store.dispatch("getUserData",this.msgData.tag).then(e=>{$A.messageInfo(`\u6807\u6CE8\u4EBA\u5458\uFF1A${e.nickname} (ID: ${e.userid})`)}).catch(e=>{$A.messageError("\u6807\u6CE8\u4EBA\u5458\u4E0D\u5B58\u5728")}).finally(e=>{this.$store.dispatch("hiddenSpinner")}))},openTodo(){if(!(this.todoLoad>0)){if(this.todoShow){this.todoShow=!1;return}this.todoLoad++,this.$store.dispatch("call",{url:"dialog/msg/todolist",data:{msg_id:this.msgData.id}}).then(({data:e})=>{this.todoList=e}).catch(()=>{this.todoList=[]}).finally(e=>{setTimeout(()=>{this.todoLoad--,this.todoTab="undone",this.todoShow=!0},100)})}},todoRemindFormat(e){return e?$A.dayjs(e).format("MM-DD HH:mm"):""},openTodoRemind(e){this.todoRemindEditing=e.remind_at||"",this.todoRemindOpenUserid=e.userid},confirmTodoRemind(e){this.todoRemindOpenUserid=0,this.setTodoRemind(e,this.todoRemindEditing)},cancelTodoRemind(e){this.todoRemindOpenUserid=0,e.remind_at&&$A.modalConfirm({title:"\u53D6\u6D88\u63D0\u9192",content:"\u786E\u5B9A\u53D6\u6D88\u8BE5\u6210\u5458\u7684\u63D0\u9192\u65F6\u95F4\u5417\uFF1F",onOk:()=>{this.setTodoRemind(e,"")}})},setTodoRemind(e,s){if(e._remindLoading)return;this.$set(e,"_remindLoading",!0);const t=s?$A.dayjs(s).second(0).format("YYYY-MM-DD HH:mm:ss"):"";this.$store.dispatch("call",{method:"post",url:"dialog/msg/todoremind",data:{msg_id:this.msgData.id,userids:[e.userid],remind_at:t}}).then(({msg:i})=>{this.$set(e,"remind_at",t||null),$A.messageSuccess(i)}).catch(({msg:i})=>{$A.messageError(i)}).finally(()=>{this.$set(e,"_remindLoading",!1)})},handleTodoAdd(){this.$refs.todo.doClose(),this.$emit("on-other",{event:"todoAdd",data:{msg_id:this.msgData.id,userids:this.todoList.map(({userid:e})=>e)}})},openReadPercentage(){if(!(this.percentageLoad>0)){if(this.percentageShow){this.percentageShow=!1;return}this.percentageLoad++,this.$store.dispatch("call",{url:"dialog/msg/readlist",data:{msg_id:this.msgData.id}}).then(({data:e})=>{this.percentageList=e}).catch(()=>{this.percentageList=[]}).finally(e=>{setTimeout(()=>{this.percentageLoad--,this.percentageShow=!0},100)})}},playRecord(){this.operateVisible||!this.msgData.created_at||this.$store.dispatch("audioPlay",this.msgData.msg.path)},openMeeting(){this.operateVisible||x.emit("addMeeting",{type:"join",name:this.msgData.msg.name,meetingid:this.msgData.msg.meetingid,meetingdisabled:!0})},openDialog(e){this.$store.dispatch("openDialogUserid",e).catch(({msg:s})=>{$A.modalError(s)})},showReplyData(e){return $A.isJson(e)?e.userid:!1},showForwardData(e){return $A.isJson(e)?e.show&&e.userid:!1},viewReply(){this.$emit("on-view-reply",{msg_id:this.msgData.id,reply_id:this.msgData.reply_id})},viewText(e){this.$emit("on-view-text",e,this.$refs.content)},viewFile(){!this.msgData.created_at||this.$emit("on-view-file",this.msgData)},downFile(){!this.msgData.created_at||this.$emit("on-down-file",this.msgData)},replyList(){this.$emit("on-reply-list",{msg_id:this.msgData.id})},onError(){this.$emit("on-error",this.msgData)},onEmoji(e){this.$emit("on-emoji",{msg_id:this.msgData.id,symbol:e})},onShowEmojiUser(e){this.$emit("on-show-emoji-user",e)},onMergeForwardDetail(e){this.$emit("on-merge-forward-detail",{msgId:this.msgData.id,msgData:e})},sortEmojiUser(e){const s=e.filter(i=>i==this.userId),t=e.filter(i=>i!=this.userId);return s.concat(t)},unfoldWordChain(e){if(this.unfoldWordChainData.indexOf(e.id)==-1){const s=JSON.parse(window.localStorage.getItem("__cache:unfoldWordChain__"))||[];s.push(e.id),window.localStorage.setItem("__cache:unfoldWordChain__",JSON.stringify(s)),this.unfoldWordChainData.push(e.id)}},onWordChain(){this.$store.state.dialogDroupWordChain={type:"participate",dialog_id:this.msgData.dialog_id,msgData:this.msgData}},onVote(e,s){if(e!="vote"){$A.modalConfirm({content:e=="finish"?"\u786E\u5B9A\u7ED3\u675F\u6295\u7968\uFF1F":"\u518D\u6B21\u53D1\u9001\u6295\u7968\uFF1F",cancelText:"\u53D6\u6D88",okText:"\u786E\u5B9A",onOk:()=>{this.submitVote(e,s)}});return}this.submitVote(e,s)},submitVote(e,s){this.$set(s.msg,"_loadIng",1),this.$store.dispatch("call",{url:"dialog/msg/vote",method:"post",data:{dialog_id:s.dialog_id,uuid:s.msg.uuid,vote:this.voteData[s.msg.uuid]||[],type:e}}).then(({data:t})=>{e=="again"&&$A.messageSuccess("\u5DF2\u53D1\u9001"),t.forEach(i=>{this.$store.dispatch("saveDialogMsg",i)})}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.$set(s.msg,"_loadIng",0)})}}},Vs={};var Wu=A(Hu,Nu,Fu,!1,Vu,null,null,null);function Vu(e){for(let s in Vs)this[s]=Vs[s]}var Yu=function(){return Wu.exports}(),qu=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{class:e.classArray},[e.isUnreadStart?t("div",{staticClass:"dialog-unread-label"},[t("em"),t("span",[e._v(e._s(e.$L("\u4EE5\u4E0B\u4E3A\u65B0\u6D88\u606F")))]),t("em")]):e._e(),e.source.type==="tag"?t("div",{staticClass:"dialog-tag",on:{click:e.onViewTag}},[t("div",{staticClass:"tag-user"},[t("UserAvatar",{attrs:{userid:e.source.userid,"show-name":!0,"show-icon":!1}})],1),e._v(" "+e._s(e.$L(e.source.msg.action==="remove"?"\u53D6\u6D88\u6807\u6CE8":"\u6807\u6CE8\u4E86"))+' "'+e._s(e.$A.getMsgSimpleDesc(e.source.msg.data))+'" ')]):e.source.type==="top"?t("div",{staticClass:"dialog-top",on:{click:e.onViewTag}},[t("div",{staticClass:"tag-user"},[t("UserAvatar",{attrs:{userid:e.source.userid,"show-name":!0,"show-icon":!1}})],1),e._v(" "+e._s(e.$L(e.source.msg.action==="remove"?"\u53D6\u6D88\u7F6E\u9876":"\u7F6E\u9876\u4E86"))+' "'+e._s(e.$A.getMsgSimpleDesc(e.source.msg.data))+'" ')]):e.source.type==="todo"?t("div",{staticClass:"dialog-todo",on:{click:e.onViewTodo}},[t("div",{staticClass:"no-dark-content"},[e.source.msg.action==="done"&&e.todoDoneDisplayList(e.source.msg.data).length>0?t("div",{staticClass:"todo-users"},e._l(e.todoDoneDisplayList(e.source.msg.data),function(i,n){return t("div",{key:`todo-done-${i.type}-${i.value}-${n}`,staticClass:"todo-user"},[i.type==="user"?t("UserAvatar",{attrs:{userid:i.value,"show-name":!0,"show-icon":!1}}):t("span",[e._v(e._s(i.value))])],1)}),0):t("div",{staticClass:"todo-user"},[t("UserAvatar",{attrs:{userid:e.source.userid,"show-name":!0,"show-icon":!1}})],1),e._v(" "+e._s(e.$L(e.source.msg.action==="remove"?"\u53D6\u6D88\u5F85\u529E":e.source.msg.action==="done"?"\u5B8C\u6210":"\u8BBE\u5F85\u529E"))+' "'+e._s(e.$A.getMsgSimpleDesc(e.source.msg.data))+'" '),e.source.msg.action==="add"&&e.formatTodoUser(e.source.msg.data).length>0?t("div",{staticClass:"todo-users"},[t("span",[e._v(e._s(e.$L("[todo_target].\u7ED9")))]),e._l(e.formatTodoUser(e.source.msg.data),function(i,n){return[n<3?t("div",{staticClass:"todo-user"},[t("UserAvatar",{attrs:{userid:i,"show-name":!0,"show-icon":!1}})],1):n==3?t("div",{staticClass:"todo-user"},[e._v("+"+e._s(e.formatTodoUser(e.source.msg.data).length-3))]):e._e()]})],2):e._e()])]):e.source.type==="notice"?t("div",{staticClass:"dialog-notice"},[e._v(" "+e._s(e.source.msg.source==="api"?e.source.msg.notice:e.$L(e.source.msg.notice))+" ")]):e.source.type==="withdraw"?t("div",{staticClass:"dialog-withdraw"},[e._v(" "+e._s(e.$L("\u4F60\u64A4\u56DE\u4E86\u4E00\u6761\u6D88\u606F"))+" "),t("em",{staticClass:"withdraw-re-edit",on:{click:e.onWithdrawReEdit}},[e._v(e._s(e.$L("\u91CD\u65B0\u7F16\u8F91")))])]):[e.multiSelectMode&&e.isSelectableMsg?t("div",{staticClass:"dialog-multi-check",on:{click:function(i){return i.stopPropagation(),e.onMultiSelectToggle.apply(null,arguments)}}},[t("Icon",{class:{checked:e.isSelected},attrs:{type:e.isSelected?"ios-checkmark-circle":"ios-radio-button-off"}})],1):e._e(),t("div",{staticClass:"dialog-avatar",on:{pointerdown:e.handleOperation}},[e.source.userid===-1?t("div",{staticClass:"ai-assistant-avatar"},[t("svg",{staticClass:"no-dark-content",attrs:{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M385.80516777 713.87417358c-12.76971517 0-24.13100586-7.79328205-28.82575409-19.62404756l-48.91927648-123.9413531c-18.40341303-46.75969229-55.77360888-84.0359932-102.53330118-102.53330117l-123.94135309-48.91927649c-11.83076552-4.69474822-19.62404757-16.05603892-19.62404757-28.8257541s7.79328205-24.13100586 19.62404757-28.82575407l123.94135309-48.91927649c46.75969229-18.40341303 84.0359932-55.77360888 102.53330118-102.53330119l48.91927648-123.94135308c4.69474822-11.83076552 16.05603892-19.62404757 28.8257541-19.62404757s24.13100586 7.79328205 28.82575408 19.62404757l48.91927648 123.94135308c18.40341303 46.75969229 55.77360888 84.0359932 102.53330118 102.53330119l123.94135309 48.91927649c11.83076552 4.69474822 19.62404757 16.05603892 19.62404757 28.82575407 0 12.76971517-7.79328205 24.13100586-19.62404757 28.8257541l-123.94135309 48.91927649c-46.75969229 18.40341303-84.0359932 55.77360888-102.53330118 102.53330117l-48.91927648 123.9413531c-4.69474822 11.83076552-16.14993388 19.62404757-28.82575408 19.62404756zM177.45224165 390.12433614l50.89107073 20.0935224c62.62794129 24.69437565 112.67395736 74.74039171 137.368333 137.36833299l20.09352239 50.89107073 20.0935224-50.89107073c24.69437565-62.62794129 74.74039171-112.67395736 137.368333-137.36833299l50.89107072-20.0935224-50.89107073-20.09352239c-62.62794129-24.69437565-112.67395736-74.74039171-137.36833299-137.36833301l-20.09352239-50.89107074-20.0935224 50.89107074c-24.69437565 62.62794129-74.74039171 112.67395736-137.368333 137.36833301l-50.89107073 20.09352239zM771.33789183 957.62550131c-12.76971517 0-24.13100586-7.79328205-28.82575409-19.62404758l-26.6661699-67.6043744c-8.63833672-21.87752672-26.10280012-39.34199011-47.98032684-47.98032684l-67.60437441-26.6661699c-11.83076552-4.69474822-19.62404757-16.05603892-19.62404757-28.82575409s7.79328205-24.13100586 19.62404757-28.82575409l67.60437441-26.6661699c21.87752672-8.63833672 39.34199011-26.10280012 47.98032684-47.98032685l26.6661699-67.6043744c4.69474822-11.83076552 16.05603892-19.62404757 28.82575409-19.62404757s24.13100586 7.79328205 28.82575409 19.62404757l26.66616991 67.6043744c8.63833672 21.87752672 26.10280012 39.34199011 47.98032684 47.98032685l67.6043744 26.6661699c11.83076552 4.69474822 19.62404757 16.05603892 19.62404757 28.82575409s-7.79328205 24.13100586-19.62404757 28.82575409l-67.6043744 26.6661699c-21.87752672 8.63833672-39.34199011 26.10280012-47.98032684 47.98032684l-26.66616991 67.6043744c-4.69474822 11.83076552-16.14993388 19.62404757-28.82575409 19.62404758z m-75.58544639-190.70067281c33.61439727 14.83540438 60.75004201 41.87715415 75.49155143 75.49155143 14.83540438-33.61439727 41.87715415-60.75004201 75.49155142-75.49155143-33.61439727-14.83540438-60.75004201-41.87715415-75.49155142-75.49155143-14.74150942 33.61439727-41.87715415 60.75004201-75.49155143 75.49155143z"}})])]):t("UserAvatar",{attrs:{userid:e.source.userid,size:30,"click-open-detail":""}})],1),t("DialogView",{attrs:{"msg-data":e.source,"dialog-type":e.dialogData.type,"hide-percentage":e.hidePercentage,"hide-reply":e.hideReply,"hide-forward":e.hideForward,"operate-visible":e.operateVisible,"operate-action":e.operateVisible&&e.source.id===e.operateItem.id,"pointer-mouse":e.pointerMouse,"is-right-msg":e.isRightMsg},on:{"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-other":e.onOther,"on-show-emoji-user":e.onShowEmojiUser,"on-merge-forward-detail":e.onMergeForwardDetail}})]],2)},Ku=[];const Gu={name:"DialogItem",components:{DialogView:Yu},props:{source:{type:Object,default(){return{}}},dialogData:{type:Object,default(){return{}}},operateVisible:{type:Boolean,default:!1},operateItem:{type:Object,default(){return{}}},pointerMouse:{type:Boolean,default:!1},simpleView:{type:Boolean,default:!1},isMyDialog:{type:Boolean,default:!1},msgId:{type:Number,default:0},unreadOne:{type:Number,default:0},scrollIng:{type:Number,default:0},readEnabled:{type:Boolean,default:!1},multiSelectMode:{type:Boolean,default:!1},selectedMsgIdsSet:{type:Set,default:()=>new Set}},computed:{...B(["userId"]),isRightMsg(){return this.source.userid==this.$store.state.userId},isReply(){return this.simpleView||this.msgId===this.source.id},isNoRead(){return this.isRightMsg||this.source.read_at},isUnreadStart(){return this.unreadOne===this.source.id&&this.source.id>0},hidePercentage(){return this.simpleView||this.isMyDialog||this.isReply},hideReply(){return this.simpleView||this.msgId>0},hideForward(){return this.simpleView||this.msgId>0},isSelected(){return this.multiSelectMode&&this.selectedMsgIdsSet.has(this.source.id)},isSelectableMsg(){return!["tag","top","todo","notice","withdraw","word-chain","vote","template"].includes(this.source.type)},classArray(){return{"dialog-item":!0,"reply-item":this.isReply,"unread-start":this.isUnreadStart,self:this.isRightMsg,"multi-select-mode":this.multiSelectMode,"multi-selected":this.isSelected}}},watch:{readEnabled(){this.msgRead()},windowActive(){this.msgRead()},scrollIng(){this.msgRead()}},methods:{msgRead(){var e;this.isNoRead||!this.readEnabled||!this.windowActive||!((e=this.$el)!=null&&e.parentNode.classList.contains("item-enter"))||this.$store.dispatch("dialogMsgRead",this.source)},formatTodoUser(e){if($A.isJson(e)){const{userids:s}=e;if(s)return s.split(",")}return[]},formatTodoDoneUser(e){return $A.isJson(e)&&$A.isArray(e.done_userids)?e.done_userids:[]},todoDoneDisplayList(e){const s=this.formatTodoDoneUser(e);if(s.length===0)return[];const t=s.slice(0,3).map(i=>({type:"user",value:i}));return s.length>3&&t.push({type:"extra",value:`+${s.length-3}`}),t},onViewTag(){this.onViewReply({msg_id:this.source.id,reply_id:this.source.msg.data.id})},onViewTodo(){this.onViewReply({msg_id:this.source.id,reply_id:this.source.msg.data.id})},handleOperation({currentTarget:e}){this.$store.commit("longpress/set",{type:"mention",data:this.source,element:e})},onMultiSelectToggle(){this.dispatch("on-multi-select-toggle",this.source.id)},onViewReply(e){this.dispatch("on-view-reply",e)},onViewText(e,s){this.dispatch("on-view-text",e,s)},onViewFile(e){this.dispatch("on-view-file",e)},onDownFile(e){this.dispatch("on-down-file",e)},onReplyList(e){this.dispatch("on-reply-list",e)},onError(e){this.dispatch("on-error",e)},onEmoji(e){this.dispatch("on-emoji",e)},onOther(e){this.dispatch("on-other",e)},onShowEmojiUser(e){this.dispatch("on-show-emoji-user",e)},onMergeForwardDetail(e){this.dispatch("on-merge-forward-detail",e)},onWithdrawReEdit(){this.dispatch("on-withdraw-re-edit",this.source)},dispatch(e,...s){if(this.isReply){this.$emit(e,...s);return}let t=this.$parent,i=t.$options.name;for(;t&&(!i||i!=="virtual-list");)t=t.$parent,t&&(i=t.$options.name);t&&t.$emit(e,...s)}}},Ys={};var Ju=A(Gu,qu,Ku,!1,Qu,null,null,null);function Qu(e){for(let s in Ys)this[s]=Ys[s]}var Xu=function(){return Ju.exports}();const Zu=ie.import("core/module"),Gt=class extends Zu{constructor(s,t={}){super(s,{...Gt.DEFAULTS,...t}),this.lastRange=null,this.debounceTimer=null,this.setupEventListeners()}setupEventListeners(){this.quill.on(Ze.events.SELECTION_CHANGE,(s,t,i)=>{this.handleSelectionChange(s,t,i)}),this.quill.on(Ze.events.TEXT_CHANGE,(s,t,i)=>{setTimeout(()=>{const n=this.quill.getSelection();this.handleSelectionChange(n,this.lastRange,i)},0)})}handleSelectionChange(s,t,i){this.debounceTimer&&clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout(()=>{this.processSelectionChange(s,t,i),this.lastRange=s,this.debounceTimer=null},this.options.immediate?0:100)}processSelectionChange(s,t,i){if(this.options.onSelectionChange&&this.options.onSelectionChange(s,t,i),s&&s.length>=this.options.minLength){const n=this.quill.getText(s.index,s.length);this.options.onTextSelected&&this.options.onTextSelected(n,s,i),this.quill.emitter.emit("text-selected",{text:n,range:s,source:i})}else(!s||s.length===0)&&t&&t.length>0&&(this.options.onSelectionCleared&&this.options.onSelectionCleared(t,i),this.quill.emitter.emit("selection-cleared",{previousRange:t,source:i}))}getSelectedText(){const s=this.quill.getSelection();return s&&s.length>0?this.quill.getText(s.index,s.length):null}hasSelection(){const s=this.quill.getSelection();return!!(s&&s.length>0)}selectText(s,t){this.quill.setSelection(s,t,Ze.sources.API)}clearSelection(){const s=this.quill.getSelection();s&&this.quill.setSelection(s.index,0,Ze.sources.API)}destroy(){this.debounceTimer&&clearTimeout(this.debounceTimer)}};let Ue=Gt;S(Ue,"DEFAULTS",{immediate:!0,minLength:1,onTextSelected:null,onSelectionCleared:null,onSelectionChange:null});ie.register("modules/selectionPlugin",Ue);typeof module!="undefined"&&module.exports&&(module.exports=Ue);var ed=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"chat-emoji-wrapper",on:{click:function(i){i.stopPropagation()}}},[t("div",{staticClass:"chat-emoji-box"},[e.type==="emosearch"?t("div",{staticClass:"chat-emoji-emosearch"},[t("Input",{attrs:{clearable:"",placeholder:e.$L("\u641C\u7D22\u8868\u60C5")},model:{value:e.emosearchKey,callback:function(i){e.emosearchKey=i},expression:"emosearchKey"}},[t("Icon",{class:{"icon-loading":e.emosearchLoad},attrs:{slot:"prefix",type:e.emosearchLoad?"ios-loading":"ios-search"},slot:"prefix"})],1)],1):e.type==="emoji"?t("div",{staticClass:"chat-emoji-nav"},e._l(e.emojiNavList,function(i){var n;return t("div",{key:i.type,class:(n={},n[`i-${i.name}`]=!0,n.active=i.type===e.emojiNavActive,n),domProps:{innerHTML:e._s(i.content)},on:{click:function(r){e.emojiNavActive=i.type}}})}),0):e._e(),t("Scrollbar",[t("ul",{class:[e.type,"no-dark-content"]},[e._l(e.list,function(i,n){return t("li",{key:n,on:{click:function(r){return e.onSelect(r,i)}}},[i.type==="emoticon"?t("Imgs",{attrs:{src:i.src,title:i.name,alt:i.name}}):t("span",{attrs:{title:i.name},domProps:{innerHTML:e._s(i.html)}})],1)}),e.type==="emoji"?[t("li",{staticClass:"delete-placeholder"}),t("li",{staticClass:"delete-placeholder"})]:e._e()],2)])],1),e.showEmojiDelete&&e.type==="emoji"?t("div",{staticClass:"chat-emoji-delete-btn",on:{click:e.onDelete}},[t("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"64",height:"64",stroke:"currentColor",fill:"currentColor"}},[t("path",{attrs:{d:"M889.202 167.878H343.626c-22.574 0-45.15 11.28-60.202 26.322L76.484 457.442c-22.576 30.084-22.576 67.688 0 94.016l206.94 263.236c15.052 18.802 37.628 30.084 60.202 30.084h545.572c41.39 0 75.252-33.842 75.252-75.208V243.092c-0.002-41.37-33.864-75.214-75.248-75.214z m3.76 601.69H347.39l-206.94-263.24 203.176-263.236h549.336v526.476z"}}),t("path",{attrs:{d:"M410.164 641.746c0 11.292 3.764 18.822 11.306 26.352 15.07 11.292 33.918 11.292 45.224 0l113.06-112.934 113.058 112.934c7.536 3.766 11.306 7.526 22.612 7.526s18.842-7.526 22.612-11.292c3.77-7.53 7.536-15.06 7.536-22.588 0-7.53 0-15.06-7.536-22.586l-113.058-112.94 113.058-112.934c3.77-3.766 7.536-11.296 7.536-18.822 0-15.062-15.072-26.352-22.612-30.118l-3.766-3.764h-3.77c-7.536 0-15.076 0-22.612 7.53l-113.058 112.934-116.83-120.466c-3.77-3.766-11.306-7.532-18.842-7.532-11.306 0-18.846 3.766-26.382 11.296-3.766 7.532-7.536 15.056-7.536 22.588 0 11.296 3.764 18.822 7.536 22.588l113.06 120.466-113.06 112.934c-3.766 3.772-7.536 11.298-7.536 18.828z"}})])]):e._e(),e.onlyEmoji?e._e():t("div",{staticClass:"chat-emoji-menu-wrap"},[t("span",{directives:[{name:"show",rawName:"v-show",value:e.showEmojiMenuScrollLeftBtn,expression:"showEmojiMenuScrollLeftBtn"}],staticClass:"left-btn",on:{click:function(i){return e.onEmojiMenuScroll("left")}}},[t("i",{staticClass:"taskfont"},[e._v("\uE72D")])]),t("ul",{ref:"chatEmojiMenuRef",staticClass:"chat-emoji-menu",on:{scroll:e.onHandleScroll}},[t("li",{class:{active:e.type==="emosearch"},on:{click:function(i){e.type="emosearch"}}},[t("i",{staticClass:"taskfont"},[e._v("\uE6F8")])]),t("li",{class:{active:e.type==="emoji"},on:{click:function(i){e.type="emoji"}}},[t("span",{staticClass:"no-dark-content"},[e._v("\u{1F600}")])]),e._l(e.emoticonData,function(i,n){return t("li",{key:n,class:{active:e.type==="emoticon"&&e.emoticonPath==i.path},on:{click:function(r){return e.onEmoticon(i.path)}}},[t("Imgs",{attrs:{title:i.name,alt:i.name,src:i.src}})],1)})],2),t("span",{directives:[{name:"show",rawName:"v-show",value:e.showEmojiMenuScrollRightBtn,expression:"showEmojiMenuScrollRightBtn"}],staticClass:"right-btn",on:{click:function(i){return e.onEmojiMenuScroll("right")}}},[t("i",{staticClass:"taskfont"},[e._v("\uE733")])])])])},td=[];const sd={name:"ChatEmoji",props:{searchKey:{type:String,default:""},onlyEmoji:{type:Boolean,default:!1},showEmojiDelete:{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:[],emojiMenuScrollLeft:0}},mounted(){var e;this.initData(),(e=this.$store)!=null&&e.state.windowPortrait||this.onMonitorWheel()},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:s})=>s===this.emoticonPath);if(e)return e.list}return[]},showEmojiMenuScrollLeftBtn(){return this.emojiMenuScrollLeft>34},showEmojiMenuScrollRightBtn(){var s;const e=this.$refs.chatEmojiMenuRef;if(e){const t=((s=e==null?void 0:e.querySelector("li"))==null?void 0:s.offsetWidth)||48;return this.emojiMenuScrollLeft{const s=$A.mainUrl("images/emoticon");$A.isArray(window.emojiData)&&(this.emojiData=window.emojiData.sort(function(t,i){return $A.sortFloat(t.emoji_order,i.emoji_order)}).map(t=>({type:"emoji",name:t.name,category:t.category,html:t.code_decimal}))),$A.isArray(window.emoticonData)&&(this.emoticonData=window.emoticonData.map(t=>Object.assign(t,{src:`${s}/${t.path}/${t.icon}`,list:t.list.map(i=>Object.assign(i,{type:"emoticon",asset:`images/emoticon/${t.path}/${i.path}`,src:`${s}/${t.path}/${i.path}`}))})))})},onEmosearch(){this.type!=="emosearch"||this.emosearchCache===this.emosearchKey||(this.emosearchCache=this.emosearchKey,this.emosearchLoad=!0,this.emosearchTimer&&clearTimeout(this.emosearchTimer),this.emosearchTimer=setTimeout(e=>{this.$store.dispatch("call",{url:"dialog/sticker/search",data:{key:this.emosearchKey}}).then(({data:s})=>{this.emosearchList=[];const t=s.list;t.length>0&&(this.emosearchList=t.map(i=>({type:"emoticon",asset:"emosearch",name:i.name,src:i.src,height:i.height,width:i.width}))),this.emosearchList.length===0&&$A.messageWarning("\u6CA1\u6709\u641C\u7D22\u5230\u4EFB\u4F55\u8868\u60C5")}).catch(s=>{this.emosearchList=[],$A.messageWarning("\u641C\u7D22\u7ED3\u679C\u4E3A\u7A7A")}).finally(s=>{this.emosearchLoad=!1})},300))},onEmoticon(e){this.type="emoticon",this.emoticonPath=e},onSelect(e,s){s.type==="emoji"?this.$emit("on-select",{type:"emoji",text:e.target.innerText}):this.$emit("on-select",s)},onDelete(){this.$emit("on-delete")},onMonitorWheel(){const e=this.$refs.chatEmojiMenuRef;e==null||e.addEventListener("wheel",s=>{Math.abs(s.deltaY)<10&&s.deltaMode===0||(s.preventDefault(),e.scrollLeft=e.scrollLeft+s.deltaY)})},onEmojiMenuScroll(e){const s=this.$refs.chatEmojiMenuRef,t=s.offsetWidth-68,i=e=="right"?s.scrollLeft+t:s.scrollLeft-t;s.scrollTo({left:i,behavior:"smooth"})},onHandleScroll(e){this.emojiMenuScrollLeft=e.target.scrollLeft}}},qs={};var id=A(sd,ed,td,!1,nd,null,null,null);function nd(e){for(let s in qs)this[s]=qs[s]}var un=function(){return id.exports}();const Ks="ontouchend"in document;var rd={bind(e,s){let t=!1;e.__touchEvent__={start:i=>{i.preventDefault(),t=!0,s.value("down",i,e)},move:i=>{t&&s.value("move",i,e)},end:i=>{t&&(t=!1,s.value("up",i,e))},click:i=>{s.value("click",i,e)}},Ks?(e.addEventListener("touchstart",e.__touchEvent__.start),e.addEventListener("touchmove",e.__touchEvent__.move),e.addEventListener("touchend",e.__touchEvent__.end)):(e.addEventListener("mousedown",e.__touchEvent__.start,{passive:!1}),document.addEventListener("mousemove",e.__touchEvent__.move),document.addEventListener("mouseup",e.__touchEvent__.end)),e.addEventListener("click",e.__touchEvent__.click)},update(){},unbind(e){Ks?(e.removeEventListener("touchstart",e.__touchEvent__.start),e.removeEventListener("touchmove",e.__touchEvent__.move),e.removeEventListener("touchend",e.__touchEvent__.end)):(e.removeEventListener("mousedown",e.__touchEvent__.start),document.removeEventListener("mousemove",e.__touchEvent__.move),document.removeEventListener("mouseup",e.__touchEvent__.end)),e.removeEventListener("click",e.__touchEvent__.click),delete e.__touchEvent__}};const Gs="ontouchend"in document;var od={bind(e,s){if(Gs){const t={move:!1,time:0,x:0,y:0};e.__touchEvent__={start:i=>{i.preventDefault(),t.move=!1,t.time=$A.dayjs().valueOf(),t.x=i.touches?i.touches[0].clientX:i.clientX,t.y=i.touches?i.touches[0].clientY:i.clientY},move:i=>{if(t.time>0){const n=i.touches?i.touches[0].clientX:i.clientX,r=i.touches?i.touches[0].clientY:i.clientY;(Math.abs(n-t.x)>5||Math.abs(r-t.y)>5)&&(t.move=!0)}},end:i=>{t.time>0&&(!t.move&&$A.dayjs().valueOf()-t.time<300&&s.value(i,e),t.time=0)}},e.addEventListener("touchstart",e.__touchEvent__.start),e.addEventListener("touchmove",e.__touchEvent__.move),e.addEventListener("touchend",e.__touchEvent__.end)}else e.__clickEvent__=t=>{t.preventDefault(),s.value(t,e)},e.addEventListener("click",e.__clickEvent__)},update(){},unbind(e){Gs?(e.removeEventListener("touchstart",e.__touchEvent__.start),e.removeEventListener("touchmove",e.__touchEvent__.move),e.removeEventListener("touchend",e.__touchEvent__.end),delete e.__touchEvent__):(e.removeEventListener("click",e.__clickEvent__),delete e.__clickEvent__)}};function Te(e){return e===void 0&&(e=document.body),e===!0?document.body:e instanceof window.Node?e:document.querySelector(e)}const dn={inserted(e,{value:s},t){if(e.dataset&&e.dataset.transfer!=="true")return!1;e.className=e.className?e.className+" v-transfer-dom":"v-transfer-dom";const i=e.parentNode;if(!i)return;const n=document.createComment("");let r=!1;s!==!1&&(i.replaceChild(n,e),Te(s).appendChild(e),r=!0),e.__transferDomData||(e.__transferDomData={parentNode:i,home:n,target:Te(s),hasMovedOut:r})},componentUpdated(e,{value:s}){if(e.dataset&&e.dataset.transfer!=="true")return!1;const t=e.__transferDomData;if(!t)return;const i=t.parentNode,n=t.home,r=t.hasMovedOut;!r&&s?(i.replaceChild(n,e),Te(s).appendChild(e),e.__transferDomData=Object.assign({},e.__transferDomData,{hasMovedOut:!0,target:Te(s)})):r&&s===!1?(i.replaceChild(e,n),e.__transferDomData=Object.assign({},e.__transferDomData,{hasMovedOut:!1,target:Te(s)})):s&&Te(s).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 hn={bind(e,s,t){function i(n){if(e.contains(n.target))return!1;s.expression&&s.value(n)}e.__vueClickOutside__=i,document.addEventListener("click",i)},update(){},unbind(e,s){document.removeEventListener("click",e.__vueClickOutside__),delete e.__vueClickOutside__}};const Js="ontouchend"in document,ad={bind:function(e,s){let t="default",i=!1,n=null,r=500,o=null,a=s.value,l=!1;if($A.isJson(s.value)&&(r=s.value.delay||500,o=typeof s.value.touchend=="function"?s.value.touchend:o,a=typeof s.value.callback=="function"?s.value.callback:a,l=s.value.preventEndEvent||!1),typeof a!="function")throw"callback must be a function";e.__longpressContextmenu__=c=>{c.preventDefault(),c.stopPropagation(),t==="default"&&a(c,e)},e.addEventListener("contextmenu",e.__longpressContextmenu__),Js&&(e.__longpressStart__=c=>{c.type==="click"&&c.button!==0||(t="touch",i=!1,n===null&&(n=setTimeout(()=>{t==="touch"&&(i=!0,a(c.touches[0],e))},r)))},e.__longpressCancel__=c=>{n!==null&&(clearTimeout(n),n=null),t="default"},e.__longpressEnd__=c=>{typeof o=="function"&&o(c,i),i&&l&&(c.preventDefault(),c.stopPropagation()),e.__longpressCancel__(c)},e.__longpressClick__=c=>{i&&(c.preventDefault(),c.stopPropagation()),e.__longpressCancel__(c)},e.addEventListener("touchstart",e.__longpressStart__),e.addEventListener("click",e.__longpressClick__),e.addEventListener("touchmove",e.__longpressCancel__),e.addEventListener("touchcancel",e.__longpressCancel__),e.addEventListener("touchend",e.__longpressEnd__))},unbind(e){e.removeEventListener("contextmenu",e.__longpressContextmenu__),delete e.__longpressContextmenu__,Js&&(e.removeEventListener("touchstart",e.__longpressStart__),e.removeEventListener("click",e.__longpressClick__),e.removeEventListener("touchmove",e.__longpressCancel__),e.removeEventListener("touchcancel",e.__longpressCancel__),e.removeEventListener("touchend",e.__longpressEnd__),delete e.__longpressStart__,delete e.__longpressClick__,delete e.__longpressCancel__,delete e.__longpressEnd__)}},Ee=[];function ld(e){if(Ee.length===0)return!0;const s=Ee.indexOf(e);return s===-1?!1:s===Ee.length-1}const pn=e=>{const s=Ee.indexOf(e);s!==-1&&Ee.splice(s,1)},Qs=e=>{pn(e),Ee.push(e)};function fv(){return new Promise(e=>{const s=new E({render(n){return n(vr.exports.Modal,{class:"chat-emoji-one-modal",props:{fullscreen:!0,footerHide:!0},on:{"on-visible-change":r=>{r||setTimeout(o=>{document.body.removeChild(this.$el)},500)}}},[n(un,{attrs:{onlyEmoji:!0},on:{"on-select":r=>{this.$children[0].visible=!1,r.type==="emoji"&&e(r.text)}}})])}}),t=s.$mount();document.body.appendChild(t.$el);const i=s.$children[0];i.visible=!0,i.$el.lastChild.addEventListener("click",({target:n})=>{n.classList.contains("ivu-modal-body")&&(i.visible=!1)})})}const Le=(e,s=60,t="...")=>{const i=(e||"").trim();if(!i)return"";const n=Array.from(i);return n.length<=s?i:n.slice(0,s).join("")+t},Xs=(e,s=null,t=!1)=>{if(!e)return"";const i=typeof e=="string"?e:JSON.stringify(e);if(t){const o=yr(i).trim();return s?Le(o,s):o}if(typeof window=="undefined"||!window.document){const o=i.replace(/<[^>]+>/g," ").replace(/\s+/g," ").trim();return s?Le(o,s):o}const n=document.createElement("div");n.innerHTML=i;const r=(n.textContent||n.innerText||"").replace(/\s+/g," ").trim();return s?Le(r,s):r},Zs={dooai:"Doo AI",openai:"ChatGPT",claude:"Claude",deepseek:"DeepSeek",gemini:"Gemini",grok:"Grok",ollama:"Ollama",zhipu:"\u667A\u8C31\u6E05\u8A00",qianwen:"\u901A\u4E49\u5343\u95EE",wenxin:"\u6587\u5FC3\u4E00\u8A00"},cd=`\u4F60\u662F\u4E00\u540D\u6C9F\u901A\u52A9\u624B\uFF0C\u5E2E\u52A9\u7528\u6237\u7F16\u5199\u5373\u65F6\u6D88\u606F\u3002
+`}},computed:{content(){const e={sendApiUrl:$A.apiUrl("dialog/msg/sendtext"),version:this.msg.version,sessionDesc:/^(ai-|user-session-)/.test(this.msg.email)?"":` (${this.$L("\u8BE5\u673A\u5668\u4EBA\u4E0D\u652F\u6301")}) `};return(this.isChinese?this.chineseTemplate:this.englishTemplate).replace(/\{\{([^}]+)\}\}/g,(t,i)=>e[i]||i).trim()}},methods:{}},Ls={};var yc=A(vc,gc,_c,!1,wc,null,null,null);function wc(e){for(let s in Ls)this[s]=Ls[s]}var $c=function(){return yc.exports}(),kc=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"open-approve-details",attrs:{"data-id":e.msg.data.id}},[t("b",[e._v(e._s(e.$L("(*)\u63D0\u4EA4\u7684\u300C(*)\u300D\u5F85\u4F60\u5BA1\u6279",e.msg.data.nickname,e.$L(e.msg.data.proc_def_name))))]),t("div",{staticClass:"cause"},[t("p",[e._v(e._s(e.$L("\u72B6\u6001"))+"\uFF1A"),t("b",[e._v(e._s(e.$L(e.statusText)))])]),t("p",[e._v(e._s(e.$L("\u7533\u8BF7\u4EBA"))+"\uFF1A"),t("span",{staticClass:"mark-color"},[e._v("@"+e._s(e.msg.data.nickname))]),e._v(" "+e._s(e.msg.data.department))]),t("b",[e._v(e._s(e.$L("\u8BE6\u60C5")))]),e.msg.data.type?t("p",[e._v(e._s(e.$L("\u7C7B\u578B"))+"\uFF1A"+e._s(e.$L(e.msg.data.type)))]):e._e(),e.msg.data.start_time?t("p",[e._v(e._s(e.$L("\u5F00\u59CB\u65F6\u95F4"))+"\uFF1A"+e._s(e.msg.data.start_time)),e.msg.data.start_day_of_week?[e._v(" ("+e._s(e.$L(e.msg.data.start_day_of_week))+")")]:e._e()],2):e._e(),e.msg.data.end_time?t("p",[e._v(e._s(e.$L("\u7ED3\u675F\u65F6\u95F4"))+"\uFF1A"+e._s(e.msg.data.end_time)),e.msg.data.end_day_of_week?[e._v(" ("+e._s(e.$L(e.msg.data.end_day_of_week))+")")]:e._e()],2):e._e(),e.msg.data.description?t("p",[e._v(e._s(e.$L("\u4E8B\u7531"))+"\uFF1A"+e._s(e.msg.data.description))]):e._e(),e.msg.data.thumb?t("p",{domProps:{innerHTML:e._s(e.imageHtml(e.msg.data.thumb))}}):e._e()])])},bc=[];const Ac={props:{msg:Object},data(){return{}},computed:{statusText({msg:e}){switch(e.action){case"pass":return"\u5DF2\u540C\u610F";case"refuse":return"\u5DF2\u62D2\u7EDD";case"withdraw":return"\u5DF2\u64A4\u9500";default:return"\u5F85\u5BA1\u6279"}}},methods:{imageHtml(e){const s=$A.imageRatioHandle({src:e.url,width:e.width,height:e.height,crops:{ratio:5,percentage:"320x0"},scaleSize:220});return` `}}},Ms={};var Cc=A(Ac,kc,bc,!1,Sc,null,null,null);function Sc(e){for(let s in Ms)this[s]=Ms[s]}var xc=function(){return Cc.exports}(),Tc=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"open-approve-details",attrs:{"data-id":e.msg.data.id}},[t("b",[e._v(e._s(e.$L("\u6284\u9001(*)\u63D0\u4EA4\u7684\u300C(*)\u300D\u8BB0\u5F55",e.msg.data.nickname,e.$L(e.msg.data.proc_def_name))))]),t("div",{staticClass:"cause"},[t("p",[e._v(e._s(e.$L("\u72B6\u6001"))+"\uFF1A"),t("b",[e._v(e._s(e.msg.is_finished?e.$L("\u5DF2\u5B8C\u6210"):e.$L("\u5BA1\u6279\u4E2D")))])]),t("p",[e._v(e._s(e.$L("\u7533\u8BF7\u4EBA"))+"\uFF1A"),t("span",{staticClass:"mark-color"},[e._v("@"+e._s(e.msg.data.nickname))]),e._v(" "+e._s(e.msg.data.department))]),t("b",[e._v(e._s(e.$L("\u8BE6\u60C5")))]),e.msg.data.type?t("p",[e._v(e._s(e.$L("\u7C7B\u578B"))+"\uFF1A"+e._s(e.$L(e.msg.data.type)))]):e._e(),e.msg.data.start_time?t("p",[e._v(e._s(e.$L("\u5F00\u59CB\u65F6\u95F4"))+"\uFF1A"+e._s(e.msg.data.start_time)),e.msg.data.start_day_of_week?[e._v(" ("+e._s(e.$L(e.msg.data.start_day_of_week))+")")]:e._e()],2):e._e(),e.msg.data.end_time?t("p",[e._v(e._s(e.$L("\u7ED3\u675F\u65F6\u95F4"))+"\uFF1A"+e._s(e.msg.data.end_time)),e.msg.data.end_day_of_week?[e._v(" ("+e._s(e.$L(e.msg.data.end_day_of_week))+")")]:e._e()],2):e._e(),e.msg.data.description?t("p",[e._v(e._s(e.$L("\u4E8B\u7531"))+"\uFF1A"+e._s(e.msg.data.description))]):e._e()])])},Ic=[];const Dc={props:{msg:Object},data(){return{}},computed:{},methods:{}},Ps={};var Ec=A(Dc,Tc,Ic,!1,Lc,null,null,null);function Lc(e){for(let s in Ps)this[s]=Ps[s]}var Mc=function(){return Ec.exports}(),Pc=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"open-approve-details",attrs:{"data-id":e.msg.data.id}},[t("b",[e._v(e._s(e.$L("(*)\u8BC4\u8BBA\u4E86(*)\u7684\u300C(*)\u300D\u5BA1\u6279",e.msg.data.comment_nickname,e.msg.data.nickname,e.$L(e.msg.data.proc_def_name))))]),t("div",{staticClass:"cause"},[t("p",[e._v(e._s(e.$L("\u7533\u8BF7\u4EBA"))+"\uFF1A"),t("span",{staticClass:"mark-color"},[e._v("@"+e._s(e.msg.data.nickname))]),e._v(" "+e._s(e.msg.data.department))]),t("b",[e._v(e._s(e.$L("\u8BC4\u8BBA\u5185\u5BB9")))]),t("p",[e._v(e._s(e.msg.data.comment_content))]),e.msg.data.thumb?t("p",{domProps:{innerHTML:e._s(e.imageHtml(e.msg.data.thumb))}}):e._e()])])},jc=[];const Rc={props:{msg:Object},data(){return{}},methods:{imageHtml(e){const s=$A.imageRatioHandle({src:e.url,width:e.width,height:e.height,crops:{ratio:5,percentage:"320x0"},scaleSize:220});return` `}}},js={};var Oc=A(Rc,Pc,jc,!1,zc,null,null,null);function zc(e){for(let s in js)this[s]=js[s]}var Uc=function(){return Oc.exports}(),Bc=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"open-approve-details",attrs:{"data-id":e.msg.data.id}},[t("b",[e._v(e._s(e.title))]),t("div",{staticClass:"cause"},[t("p",[e._v(e._s(e.$L("\u72B6\u6001"))+"\uFF1A"),t("b",[e._v(e._s(e.$L(e.statusText)))])]),t("p",[e._v(e._s(e.$L("\u7533\u8BF7\u4EBA"))+"\uFF1A"),t("span",{staticClass:"mark-color"},[e._v("@"+e._s(e.msg.data.start_nickname))]),e._v(" "+e._s(e.msg.data.department))]),t("b",[e._v(e._s(e.$L("\u8BE6\u60C5")))]),e.msg.data.type?t("p",[e._v(e._s(e.$L("\u7C7B\u578B"))+"\uFF1A"+e._s(e.$L(e.msg.data.type)))]):e._e(),e.msg.data.start_time?t("p",[e._v(e._s(e.$L("\u5F00\u59CB\u65F6\u95F4"))+"\uFF1A"+e._s(e.msg.data.start_time)),e.msg.data.start_day_of_week?[e._v(" ("+e._s(e.$L(e.msg.data.start_day_of_week))+")")]:e._e()],2):e._e(),e.msg.data.end_time?t("p",[e._v(e._s(e.$L("\u7ED3\u675F\u65F6\u95F4"))+"\uFF1A"+e._s(e.msg.data.end_time)),e.msg.data.end_day_of_week?[e._v(" ("+e._s(e.$L(e.msg.data.end_day_of_week))+")")]:e._e()],2):e._e(),e.msg.data.description?t("p",[e._v(e._s(e.$L("\u4E8B\u7531"))+"\uFF1A"+e._s(e.msg.data.description))]):e._e()])])},Nc=[];const Fc={props:{msg:Object},data(){return{}},computed:{title({msg:e}){const s=this.$L(e.data.proc_def_name);return e.action==="pass"?this.$L("\u60A8\u53D1\u8D77\u7684\u300C(*)\u300D\u5DF2\u901A\u8FC7",s):this.$L("\u60A8\u53D1\u8D77\u7684\u300C(*)\u300D\u88AB(*)\u62D2\u7EDD",s,e.data.nickname)},statusText({msg:e}){switch(e.action){case"pass":return"\u5DF2\u901A\u8FC7";case"refuse":return"\u5DF2\u62D2\u7EDD";case"withdraw":return"\u5DF2\u64A4\u9500";default:return"\u5904\u7406\u4E2D"}}},methods:{}},Rs={};var Hc=A(Fc,Bc,Nc,!1,Wc,null,null,null);function Wc(e){for(let s in Rs)this[s]=Rs[s]}var Vc=function(){return Hc.exports}(),Yc=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[t("p",[e._v(e._s(e.$L(e.msg.title)))]),t("p",[e._v("\xA0")]),e._l(e.msg.list,function(i,n){return t("p",{key:n},[t("span",{staticClass:"mention task",attrs:{"data-id":i.id}},[e._v("#"+e._s(i.name))])])})],2)},qc=[];const Kc={props:{msg:Object},data(){return{}},computed:{},methods:{}},Os={};var Gc=A(Kc,Yc,qc,!1,Jc,null,null,null);function Jc(e){for(let s in Os)this[s]=Os[s]}var Qc=function(){return Gc.exports}(),Xc=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[t("p",[t("b",[e._v(e._s(e.$L(e.msg.title)))])]),t("p",[e._v("\xA0")]),t("p",[e._v(e._s(e.$L("\u6587\u4EF6\u540D"))+": "+e._s(e.msg.name))]),t("p",[e._v(e._s(e.$L("\u6587\u4EF6\u5927\u5C0F"))+": "+e._s(e.$A.bytesToSize(e.msg.size)))]),t("p",{staticStyle:{"margin-top":"10px"}},[t("Button",{staticClass:"no-dark-content",attrs:{to:e.msg.url,target:"_blank",type:"warning"}},[e._v(e._s(e.$L("\u7ACB\u5373\u4E0B\u8F7D")))])],1)])},Zc=[];const eu={props:{msg:Object},data(){return{}},computed:{},methods:{}},zs={};var tu=A(eu,Xc,Zc,!1,su,null,null,null);function su(e){for(let s in zs)this[s]=zs[s]}var iu=function(){return tu.exports}(),nu=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",e._l(e.items,function(i,n){return t("p",{key:n,style:i.style},[e._v(e._s(i.content))])}),0)},ru=[];const ou={props:{msg:Object},data(){return{}},computed:{items({msg:e}){const{content:s}=e;return $A.isArray(s)?s.map(t=>this.formatContent(t)):[this.formatContent(s)]}},methods:{formatContent(e){return $A.isJson(e)?{content:e.language===!1||this.msg.source==="api"?e.content:this.$L(e.content),style:e.style||{}}:{content:this.$L(e),style:{}}}}},Us={};var au=A(ou,nu,ru,!1,lu,null,null,null);function lu(e){for(let s in Us)this[s]=Us[s]}var cu=function(){return au.exports}(),uu=function(){var e=this,s=e.$createElement,t=e._self._c||s;return e.isBot?t("div",[e._v(" "+e._s(e.$L("\u4E0D\u652F\u6301\u7684\u6307\u4EE4"))+" "),t("span",{staticClass:"warning-color"},[e._v(e._s(e.msg.type))]),e._v("\uFF0C"+e._s(e.$L("\u4F60\u53EF\u4EE5\u53D1\u9001"))+" "),t("span",{staticClass:"mark-color mark-set"},[e._v("/help")]),e._v(" "+e._s(e.$L("\u67E5\u770B\u5E2E\u52A9\u83DC\u5355"))+"\u3002 ")]):t("div",[e._v(" "+e._s(e.$L("\u672A\u77E5\u7684\u6D88\u606F"))+" ")])},du=[];const hu={props:{msg:Object},data(){return{}},computed:{isBot(){return/^\//.test(this.msg.type)}},methods:{}},Bs={};var pu=A(hu,uu,du,!1,fu,null,null,null);function fu(e){for(let s in Bs)this[s]=Bs[s]}var mu=function(){return pu.exports}(),gu=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{class:`content-template no-dark-content ${e.msg.type}`,on:{click:e.viewText}},[t(e.currentTemplate,{tag:"component",attrs:{msg:e.msg}})],1)},_u=[];const vu={props:{msg:Object},data(){return{}},computed:{currentTemplate(){switch(this.msg.type){case"/hello":return il;case"/help":return cl;case"/list":return ml;case"/info":return $l;case"/newbot":return xl;case"/setname":return Ml;case"/deletebot":return Ul;case"/token":return Vl;case"/revoke":return Ql;case"/webhook":return ic;case"/clearday":return cc;case"/dialog":return mc;case"/api":return $c;case"approve_reviewer":return xc;case"approve_notifier":return Mc;case"approve_comment_notifier":return Uc;case"approve_submitter":return Vc;case"task_list":return Qc;case"file_download":return iu;case"content":return cu;default:return mu}}},methods:{viewText(e){this.$emit("viewText",e)}}},Ns={};var yu=A(vu,gu,_u,!1,wu,null,null,null);function wu(e){for(let s in Ns)this[s]=Ns[s]}var $u=function(){return yu.exports}(),ku=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"content-merge-forward",on:{click:e.openDetail}},[t("div",{staticClass:"merge-title"},[e._v(e._s(e.mergeTitle))]),t("div",{staticClass:"merge-list"},e._l(e.displayList,function(i,n){return t("div",{key:n,staticClass:"merge-item"},[t("UserAvatar",{attrs:{userid:i.userid,"show-icon":!1,"show-name":!0,size:14}}),t("span",{staticClass:"item-colon"},[e._v(":")]),t("span",{staticClass:"item-desc",domProps:{innerHTML:e._s(e.$A.getMsgSimpleDesc(i))}})],1)}),0),t("div",{staticClass:"merge-footer"},[e._v(e._s(e.$L("\u5171(*)\u6761\u6D88\u606F",e.msg.count||0)))])])},bu=[];const Au={name:"MergeForwardMsg",props:{msg:{type:Object,default:()=>({})}},computed:{displayList(){var e;return((e=this.msg)==null?void 0:e.preview)||[]},mergeTitle(){return $A.getMergeForwardTitle(this.msg)}},methods:{openDetail(){this.$emit("on-view-detail",this.msg)}}},Fs={};var Cu=A(Au,ku,bu,!1,Su,null,null,null);function Su(e){for(let s in Fs)this[s]=Fs[s]}var xu=function(){return Cu.exports}(),Tu=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"content-loading"},[e.error===!0?t("Icon",{attrs:{type:"ios-alert-outline"}}):t("Loading")],1)},Iu=[];const Du={props:{error:Boolean}},Hs={};var Eu=A(Du,Tu,Iu,!1,Lu,null,null,null);function Lu(e){for(let s in Hs)this[s]=Hs[s]}var Mu=function(){return Eu.exports}(),Pu=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"content-unknown"},[e._v(e._s(e.$L("\u672A\u77E5\u7684\u6D88\u606F")))])},ju=[];const Ru={},Ws={};var Ou=A(Ru,Pu,ju,!1,zu,null,null,null);function zu(e){for(let s in Ws)this[s]=Ws[s]}var Uu=function(){return Ou.exports}(),Bu=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"dialog-view",class:e.viewClass,attrs:{"data-id":e.msgData.id}},[e.dialogType==="group"?t("div",{staticClass:"dialog-username",on:{pointerdown:function(i){return e.handleOperation(i,"mention")}}},[t("UserAvatar",{attrs:{userid:e.msgData.userid,"show-icon":!1,"show-name":!0,"name-text":e.msgData.userid===-1&&e.msgData.msg.nickname||"","click-open-detail":e.msgData.userid!==-1}})],1):e._e(),t("div",{staticClass:"dialog-head",class:e.headClass,on:{click:e.handleClick,pointerdown:function(i){return e.handleOperation(i,"operateMsg")}}},[!e.hideReply&&e.msgData.reply_id&&e.showReplyData(e.msgData.msg.reply_data)?t("div",{staticClass:"dialog-reply no-dark-content",class:e.replyClass,on:{click:e.viewReply}},[t("div",{staticClass:"reply-avatar"},[t("UserAvatar",{attrs:{userid:e.msgData.msg.reply_data.userid,"show-icon":!1,"show-name":!0,"name-text":e.msgData.msg.reply_data.userid===-1&&e.msgData.msg.reply_data.msg&&e.msgData.msg.reply_data.msg.nickname||""}})],1),t("div",{staticClass:"reply-desc",domProps:{innerHTML:e._s(e.$A.getMsgSimpleDesc(e.msgData.msg.reply_data,"image-preview"))}})]):e._e(),!e.hideForward&&e.msgData.forward_id&&e.showForwardData(e.msgData.msg.forward_data)?t("div",{staticClass:"dialog-reply no-dark-content",on:{click:function(i){e.msgData.msg.forward_data.userid!==-1&&e.openDialog(e.msgData.msg.forward_data.userid)}}},[t("div",{staticClass:"reply-avatar"},[t("UserAvatar",{attrs:{userid:e.msgData.msg.forward_data.userid,"show-icon":!1,"show-name":!0}})],1)]):e._e(),t("div",{ref:"content",staticClass:"dialog-content",class:e.contentClass},[e.msgData.type==="text"?t("TextMsg",{attrs:{msgId:e.msgData.id,msg:e.msgData.msg,createdAt:e.msgData.created_at},on:{viewText:e.viewText}}):e.msgData.type==="longtext"?t("LongTextMsg",{attrs:{msgId:e.msgData.id,msg:e.msgData.msg},on:{viewText:e.viewText,downFile:e.downFile}}):e.msgData.type==="file"?t("FileMsg",{attrs:{"msg-id":e.msgData.id,msg:e.msgData.msg},on:{viewFile:e.viewFile,downFile:e.downFile}}):e.msgData.type==="record"?t("RecordMsg",{attrs:{msgId:e.msgData.id,msg:e.msgData.msg},on:{viewText:e.viewText,playRecord:e.playRecord}}):e.msgData.type==="location"?t("LocationMsg",{attrs:{msg:e.msgData.msg}}):e.msgData.type==="meeting"?t("MeetingMsg",{attrs:{msg:e.msgData.msg},on:{openMeeting:e.openMeeting}}):e.msgData.type==="word-chain"?t("WordChainMsg",{attrs:{msg:e.msgData.msg,msgId:e.msgData.id,unfoldWordChainData:e.unfoldWordChainData},on:{unfoldWordChain:function(i){return e.unfoldWordChain(e.msgData)},onWordChain:e.onWordChain}}):e.msgData.type==="vote"?t("VoteMsg",{attrs:{msg:e.msgData.msg,voteData:e.voteData},on:{onVote:function(i){return e.onVote(i,e.msgData)}}}):e.msgData.type==="merge-forward"?t("MergeForwardMsg",{attrs:{msg:e.msgData.msg},on:{"on-view-detail":e.onMergeForwardDetail}}):e.msgData.type==="template"?t("TemplateMsg",{attrs:{msg:e.msgData.msg},on:{viewText:e.viewText}}):e.isLoading?t("LoadMsg",{attrs:{error:e.msgData.error}}):t("UnknownMsg")],1),e.$A.arrayLength(e.msgData.emoji)>0?t("ul",{staticClass:"dialog-emoji"},e._l(e.msgData.emoji,function(i,n){return t("li",{key:n,class:{hasme:i.userids.includes(e.userId)}},[t("div",{staticClass:"emoji-symbol no-dark-content",on:{click:function(r){return e.onEmoji(i.symbol)}}},[e._v(e._s(i.symbol))]),t("div",{staticClass:"emoji-users",on:{click:function(r){return e.onShowEmojiUser(i)}}},[t("ul",[e._l(e.sortEmojiUser(i.userids),function(r,o){return[o0?t("div",{staticClass:"reply",on:{click:e.replyList}},[t("i",{staticClass:"taskfont"},[e._v("\uE6EB")]),e._v(" "+e._s(e.$L("(*)\u6761\u56DE\u590D",e.msgData.reply_num))+" ")]):e._e(),e.msgData.tag?t("div",{staticClass:"tag",on:{click:e.openTag}},[t("i",{staticClass:"taskfont"},[e._v("\uE61E")])]):e._e(),e.msgData.todo?t("div",{staticClass:"todo",class:{todo_done:e.msgData.todo_done},on:{click:e.openTodo}},[t("EPopover",{ref:"todo",attrs:{"popper-class":"dialog-wrapper-read-poptip dialog-wrapper-todo-poptip",placement:e.isRightMsg?"bottom-end":"bottom-start"},model:{value:e.todoShow,callback:function(i){e.todoShow=i},expression:"todoShow"}},[t("div",{staticClass:"read-poptip-content",class:{"is-tab":e.todoNarrow}},[e.todoNarrow?t("div",{staticClass:"todo-tabbar"},[t("span",{staticClass:"todo-tab",class:{on:e.todoTab==="undone"},on:{click:function(i){i.stopPropagation(),e.todoTab="undone"}}},[e._v(e._s(e.$L("\u5F85\u529E"))+" "),t("em",[e._v(e._s(e.todoUndoneList.length))])]),t("span",{staticClass:"todo-tab",class:{on:e.todoTab==="done"},on:{click:function(i){i.stopPropagation(),e.todoTab="done"}}},[e._v(e._s(e.$L("\u5B8C\u6210"))+" "),t("em",[e._v(e._s(e.todoDoneList.length))])]),t("span",{staticClass:"space"}),e.todoTab==="undone"?t("Button",{attrs:{type:"primary",size:"small"},on:{click:function(i){return i.stopPropagation(),e.handleTodoAdd.apply(null,arguments)}}},[e._v(e._s(e.$L("\u6DFB\u52A0")))]):e._e()],1):e._e(),!e.todoNarrow||e.todoTab==="done"?t("Scrollbar",{attrs:{"class-name":"read"}},[e.todoNarrow?e._e():t("div",{staticClass:"read-title"},[t("em",[e._v(e._s(e.todoDoneList.length))]),e._v(" "+e._s(e.$L("\u5B8C\u6210"))+" ")]),e.todoDoneList.length?t("ul",e._l(e.todoDoneList,function(i){return t("li",{key:`todo-done-${i.userid}`},[t("UserAvatar",{attrs:{userid:i.userid,size:26,showName:""}})],1)}),0):t("div",{staticClass:"read-empty"},[t("Icon",{attrs:{type:"ios-checkmark-circle-outline"}}),t("p",[e._v(e._s(e.$L("\u6682\u65E0\u5B8C\u6210")))])],1)]):e._e(),!e.todoNarrow||e.todoTab==="undone"?t("Scrollbar",{attrs:{"class-name":"unread"}},[e.todoNarrow?e._e():t("div",{staticClass:"read-title"},[t("em",[e._v(e._s(e.todoUndoneList.length))]),e._v(" "+e._s(e.$L("\u5F85\u529E"))+" "),t("span",{staticClass:"space"}),t("Button",{attrs:{type:"primary",size:"small"},on:{click:function(i){return i.stopPropagation(),e.handleTodoAdd.apply(null,arguments)}}},[e._v(e._s(e.$L("\u6DFB\u52A0")))])],1),e.todoUndoneList.length?t("ul",e._l(e.todoUndoneList,function(i){return t("li",{key:`todo-undone-${i.userid}`},[t("UserAvatar",{attrs:{userid:i.userid,size:26,showName:""}}),t("span",{staticClass:"todo-remind",on:{click:function(n){n.stopPropagation()}}},[t("DatePicker",{attrs:{open:e.todoRemindOpenUserid===i.userid,value:e.todoRemindOpenUserid===i.userid?e.todoRemindEditing:i.remind_at,type:"datetime",format:"yyyy-MM-dd HH:mm",editable:!1,transfer:""},on:{"on-change":function(n){return e.todoRemindEditing=n},"on-ok":function(n){return e.confirmTodoRemind(i)},"on-clear":function(n){return e.cancelTodoRemind(i)},"on-open-change":function(n){!n&&e.todoRemindOpenUserid===i.userid&&(e.todoRemindOpenUserid=0)}}},[i.remind_at?t("span",{staticClass:"todo-remind-time",on:{click:function(n){return n.stopPropagation(),e.openTodoRemind(i)}}},[t("Icon",{attrs:{type:"ios-alarm-outline"}}),e._v(" "+e._s(e.todoRemindFormat(i.remind_at))+" ")],1):t("Icon",{staticClass:"todo-remind-add",attrs:{type:"ios-clock-outline"},on:{click:function(n){return n.stopPropagation(),e.openTodoRemind(i)}}})],1)],1)],1)}),0):t("div",{staticClass:"read-empty"},[t("Icon",{attrs:{type:"ios-list-box-outline"}}),t("p",[e._v(e._s(e.$L("\u6682\u65E0\u5F85\u529E")))])],1)]):e._e()],1),t("div",{staticClass:"popover-reference",attrs:{slot:"reference"},slot:"reference"})]),e.todoLoad>0?t("Loading"):t("i",{staticClass:"taskfont"},[e._v("\uE7B7")])],1):e._e(),e.msgData.modify?t("div",{staticClass:"modify"},[t("i",{staticClass:"taskfont"},[e._v("\uE779")])]):e._e(),e.msgData.error===!0?t("div",{staticClass:"error",on:{click:e.onError}},[t("Icon",{attrs:{type:"ios-alert"}})],1):e.isLoading?t("Loading",{attrs:{delay:300}}):[e.timeShow?t("div",{staticClass:"time",on:{click:function(i){e.timeShow=!1}}},[e._v(e._s(e.msgData.created_at))]):t("div",{staticClass:"time",attrs:{title:e.msgData.created_at},on:{click:function(i){e.timeShow=!0}}},[e._v(e._s(e.$A.timeFormat(e.msgData.created_at)))]),e.hidePercentage?e._e():[e.dialogType==="group"?t("div",{staticClass:"percent",on:{click:e.openReadPercentage}},[t("EPopover",{ref:"percent",attrs:{"popper-class":"dialog-wrapper-read-poptip",placement:e.isRightMsg?"bottom-end":"bottom-start"},model:{value:e.percentageShow,callback:function(i){e.percentageShow=i},expression:"percentageShow"}},[t("div",{staticClass:"read-poptip-content"},[t("Scrollbar",{attrs:{"class-name":"read"}},[t("div",{staticClass:"read-title"},[t("em",[e._v(e._s(e.readList.length))]),e._v(" "+e._s(e.$L("\u5DF2\u8BFB"))+" ")]),t("ul",e._l(e.readList,function(i){return t("li",{key:`read-${i.userid}`},[t("UserAvatar",{attrs:{userid:i.userid,size:26,showName:""}})],1)}),0)]),t("Scrollbar",{attrs:{"class-name":"unread"}},[t("div",{staticClass:"read-title"},[t("em",[e._v(e._s(e.unreadList.length))]),e._v(" "+e._s(e.$L("\u672A\u8BFB"))+" ")]),t("ul",e._l(e.unreadList,function(i){return t("li",{key:`unread-${i.userid}`},[t("UserAvatar",{attrs:{userid:i.userid,size:26,showName:""}})],1)}),0)])],1),t("div",{staticClass:"popover-reference",attrs:{slot:"reference"},slot:"reference"})]),e.percentageLoad>0?t("Loading"):t("WCircle",{attrs:{percent:e.msgData.percentage,size:14}})],1):e.msgData.percentage===100?t("Icon",{staticClass:"done",attrs:{type:"md-done-all"}}):t("Icon",{staticClass:"done",attrs:{type:"md-checkmark"}})]]],2)])},Nu=[];const xe=Object.freeze({emoticon:/^ ]*?>$/,threeEmoji:/^\s*\s*([\uD800-\uDBFF][\uDC00-\uDFFF]){3}\s*<\/p>\s*$/,twoEmoji:/^\s*
\s*([\uD800-\uDBFF][\uDC00-\uDFFF]){2}\s*<\/p>\s*$/,oneEmoji:/^\s*
\s*[\uD800-\uDBFF][\uDC00-\uDFFF]\s*<\/p>\s*$/,emojiRange:/^\s*
\s*([\uD800-\uDBFF][\uDC00-\uDFFF]){1,3}\s*<\/p>\s*$/}),Fu={name:"DialogView",components:{UnknownMsg:Uu,LoadMsg:Mu,MergeForwardMsg:xu,TemplateMsg:$u,VoteMsg:Qa,WordChainMsg:Va,MeetingMsg:Ua,LocationMsg:Ma,RecordMsg:xa,LongTextMsg:ca,TextMsg:ia,FileMsg:$a,WCircle:Yo},props:{msgData:{type:Object,default:()=>({})},dialogType:{type:String,default:""},hidePercentage:{type:Boolean,default:!1},hideReply:{type:Boolean,default:!1},hideForward:{type:Boolean,default:!1},operateVisible:{type:Boolean,default:!1},operateAction:{type:Boolean,default:!1},pointerMouse:{type:Boolean,default:!1},isRightMsg:{type:Boolean,default:!1}},data(){return{timeShow:!1,operateEnter:!1,percentageLoad:0,percentageShow:!1,percentageList:[],todoLoad:0,todoShow:!1,todoList:[],todoTab:"undone",todoRemindOpenUserid:0,todoRemindEditing:"",emojiUsersNum:5,voteData:{},dotClicks:[],unfoldWordChainData:[]}},mounted(){this.emojiUsersNum=Math.min(6,Math.max(2,Math.floor((this.windowWidth-180)/52))),Object.keys(this.voteData).length===0&&(this.voteData=JSON.parse(window.localStorage.getItem("__cache:vote__"))||{}),this.unfoldWordChainData.length===0&&(this.unfoldWordChainData=JSON.parse(window.localStorage.getItem("__cache:unfoldWordChain__"))||[])},beforeDestroy(){var e;this.$store.dispatch("audioStop",(e=this.msgData.msg)==null?void 0:e.path)},computed:{...B(["loads"]),...ye(["isLoad"]),isLoading(){return this.msgData.created_at?this.isLoad(`msg-${this.msgData.id}`):!0},readList({userId:e}){return this.percentageList.filter(({userid:s,read_at:t})=>s!=e&&t)},unreadList({userId:e}){return this.percentageList.filter(({userid:s,read_at:t})=>s!=e&&!t)},todoDoneList(){return this.todoList.filter(({done_at:e})=>e)},todoUndoneList(){return this.todoList.filter(({done_at:e})=>!e)},todoNarrow(){return this.windowWidth<=500},viewClass(){const{msgData:e}=this,s=[];return e.type&&s.push(e.type),s},headClass(){const{msgData:e,operateAction:s}=this,{id:t,reply_id:i,type:n,msg:r,emoji:o,dot:a}=e,l=[];return s&&l.push("operating"),a&&!this.dotClicks.includes(t)&&l.push("dot"),i===0&&$A.arrayLength(o)===0&&n==="text"&&(xe.emoticon.test(r.text)||xe.emojiRange.test(r.text))&&l.push("transparent"),l},replyClass(){const e=[];return(this.operateEnter||this.pointerMouse)&&e.push("user-select-auto"),e},contentClass(){const{type:e,msg:s}=this.msgData,t=[];if((this.operateEnter||this.pointerMouse)&&t.push("user-select-auto"),e==="text"&&(s==null?void 0:s.text)){const i=s.text;xe.emoticon.test(i)?t.push("an-emoticon"):xe.threeEmoji.test(i)?t.push("three-emoji"):xe.twoEmoji.test(i)?t.push("two-emoji"):xe.oneEmoji.test(i)&&t.push("an-emoji")}return t}},watch:{operateAction(e){this.operateEnter=!1,e&&setTimeout(s=>this.operateEnter=!0,500)},voteData:{handler(e){const s=JSON.parse(window.localStorage.getItem("__cache:vote__"))||{};for(const t in e)s[t]=e[t];Object.keys(s).length>0&&window.localStorage.setItem("__cache:vote__",JSON.stringify(s))},deep:!0}},methods:{handleOperation({currentTarget:e},s){this.$store.commit("longpress/set",{type:s,data:this.msgData,element:e})},handleClick(){this.msgData.dot&&(this.dotClicks.push(this.msgData.id),this.$store.dispatch("dialogMsgDot",this.msgData))},openTag(){!this.msgData.tag||(this.$store.dispatch("showSpinner",600),this.$store.dispatch("getUserData",this.msgData.tag).then(e=>{$A.messageInfo(`\u6807\u6CE8\u4EBA\u5458\uFF1A${e.nickname} (ID: ${e.userid})`)}).catch(e=>{$A.messageError("\u6807\u6CE8\u4EBA\u5458\u4E0D\u5B58\u5728")}).finally(e=>{this.$store.dispatch("hiddenSpinner")}))},openTodo(){if(!(this.todoLoad>0)){if(this.todoShow){this.todoShow=!1;return}this.todoLoad++,this.$store.dispatch("call",{url:"dialog/msg/todolist",data:{msg_id:this.msgData.id}}).then(({data:e})=>{this.todoList=e}).catch(()=>{this.todoList=[]}).finally(e=>{setTimeout(()=>{this.todoLoad--,this.todoTab="undone",this.todoShow=!0},100)})}},todoRemindFormat(e){return e?$A.dayjs(e).format("MM-DD HH:mm"):""},openTodoRemind(e){this.todoRemindEditing=e.remind_at||"",this.todoRemindOpenUserid=e.userid},confirmTodoRemind(e){this.todoRemindOpenUserid=0,this.setTodoRemind(e,this.todoRemindEditing)},cancelTodoRemind(e){this.todoRemindOpenUserid=0,e.remind_at&&$A.modalConfirm({title:"\u53D6\u6D88\u63D0\u9192",content:"\u786E\u5B9A\u53D6\u6D88\u8BE5\u6210\u5458\u7684\u63D0\u9192\u65F6\u95F4\u5417\uFF1F",onOk:()=>{this.setTodoRemind(e,"")}})},setTodoRemind(e,s){if(e._remindLoading)return;this.$set(e,"_remindLoading",!0);const t=s?$A.dayjs(s).second(0).format("YYYY-MM-DD HH:mm:ss"):"";this.$store.dispatch("call",{method:"post",url:"dialog/msg/todoremind",data:{msg_id:this.msgData.id,userids:[e.userid],remind_at:t}}).then(({msg:i})=>{this.$set(e,"remind_at",t||null),$A.messageSuccess(i)}).catch(({msg:i})=>{$A.messageError(i)}).finally(()=>{this.$set(e,"_remindLoading",!1)})},handleTodoAdd(){this.$refs.todo.doClose(),this.$emit("on-other",{event:"todoAdd",data:{msg_id:this.msgData.id,userids:this.todoList.map(({userid:e})=>e)}})},openReadPercentage(){if(!(this.percentageLoad>0)){if(this.percentageShow){this.percentageShow=!1;return}this.percentageLoad++,this.$store.dispatch("call",{url:"dialog/msg/readlist",data:{msg_id:this.msgData.id}}).then(({data:e})=>{this.percentageList=e}).catch(()=>{this.percentageList=[]}).finally(e=>{setTimeout(()=>{this.percentageLoad--,this.percentageShow=!0},100)})}},playRecord(){this.operateVisible||!this.msgData.created_at||this.$store.dispatch("audioPlay",this.msgData.msg.path)},openMeeting(){this.operateVisible||x.emit("addMeeting",{type:"join",name:this.msgData.msg.name,meetingid:this.msgData.msg.meetingid,meetingdisabled:!0})},openDialog(e){this.$store.dispatch("openDialogUserid",e).catch(({msg:s})=>{$A.modalError(s)})},showReplyData(e){return $A.isJson(e)?e.userid:!1},showForwardData(e){return $A.isJson(e)?e.show&&e.userid:!1},viewReply(){this.$emit("on-view-reply",{msg_id:this.msgData.id,reply_id:this.msgData.reply_id})},viewText(e){this.$emit("on-view-text",e,this.$refs.content)},viewFile(){!this.msgData.created_at||this.$emit("on-view-file",this.msgData)},downFile(){!this.msgData.created_at||this.$emit("on-down-file",this.msgData)},replyList(){this.$emit("on-reply-list",{msg_id:this.msgData.id})},onError(){this.$emit("on-error",this.msgData)},onEmoji(e){this.$emit("on-emoji",{msg_id:this.msgData.id,symbol:e})},onShowEmojiUser(e){this.$emit("on-show-emoji-user",e)},onMergeForwardDetail(e){this.$emit("on-merge-forward-detail",{msgId:this.msgData.id,msgData:e})},sortEmojiUser(e){const s=e.filter(i=>i==this.userId),t=e.filter(i=>i!=this.userId);return s.concat(t)},unfoldWordChain(e){if(this.unfoldWordChainData.indexOf(e.id)==-1){const s=JSON.parse(window.localStorage.getItem("__cache:unfoldWordChain__"))||[];s.push(e.id),window.localStorage.setItem("__cache:unfoldWordChain__",JSON.stringify(s)),this.unfoldWordChainData.push(e.id)}},onWordChain(){this.$store.state.dialogDroupWordChain={type:"participate",dialog_id:this.msgData.dialog_id,msgData:this.msgData}},onVote(e,s){if(e!="vote"){$A.modalConfirm({content:e=="finish"?"\u786E\u5B9A\u7ED3\u675F\u6295\u7968\uFF1F":"\u518D\u6B21\u53D1\u9001\u6295\u7968\uFF1F",cancelText:"\u53D6\u6D88",okText:"\u786E\u5B9A",onOk:()=>{this.submitVote(e,s)}});return}this.submitVote(e,s)},submitVote(e,s){this.$set(s.msg,"_loadIng",1),this.$store.dispatch("call",{url:"dialog/msg/vote",method:"post",data:{dialog_id:s.dialog_id,uuid:s.msg.uuid,vote:this.voteData[s.msg.uuid]||[],type:e}}).then(({data:t})=>{e=="again"&&$A.messageSuccess("\u5DF2\u53D1\u9001"),t.forEach(i=>{this.$store.dispatch("saveDialogMsg",i)})}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.$set(s.msg,"_loadIng",0)})}}},Vs={};var Hu=A(Fu,Bu,Nu,!1,Wu,null,null,null);function Wu(e){for(let s in Vs)this[s]=Vs[s]}var Vu=function(){return Hu.exports}(),Yu=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{class:e.classArray},[e.isUnreadStart?t("div",{staticClass:"dialog-unread-label"},[t("em"),t("span",[e._v(e._s(e.$L("\u4EE5\u4E0B\u4E3A\u65B0\u6D88\u606F")))]),t("em")]):e._e(),e.source.type==="tag"?t("div",{staticClass:"dialog-tag",on:{click:e.onViewTag}},[t("div",{staticClass:"tag-user"},[t("UserAvatar",{attrs:{userid:e.source.userid,"show-name":!0,"show-icon":!1}})],1),e._v(" "+e._s(e.$L(e.source.msg.action==="remove"?"\u53D6\u6D88\u6807\u6CE8":"\u6807\u6CE8\u4E86"))+' "'+e._s(e.$A.getMsgSimpleDesc(e.source.msg.data))+'" ')]):e.source.type==="top"?t("div",{staticClass:"dialog-top",on:{click:e.onViewTag}},[t("div",{staticClass:"tag-user"},[t("UserAvatar",{attrs:{userid:e.source.userid,"show-name":!0,"show-icon":!1}})],1),e._v(" "+e._s(e.$L(e.source.msg.action==="remove"?"\u53D6\u6D88\u7F6E\u9876":"\u7F6E\u9876\u4E86"))+' "'+e._s(e.$A.getMsgSimpleDesc(e.source.msg.data))+'" ')]):e.source.type==="todo"?t("div",{staticClass:"dialog-todo",on:{click:e.onViewTodo}},[t("div",{staticClass:"no-dark-content"},[e.source.msg.action==="done"&&e.todoDoneDisplayList(e.source.msg.data).length>0?t("div",{staticClass:"todo-users"},e._l(e.todoDoneDisplayList(e.source.msg.data),function(i,n){return t("div",{key:`todo-done-${i.type}-${i.value}-${n}`,staticClass:"todo-user"},[i.type==="user"?t("UserAvatar",{attrs:{userid:i.value,"show-name":!0,"show-icon":!1}}):t("span",[e._v(e._s(i.value))])],1)}),0):t("div",{staticClass:"todo-user"},[t("UserAvatar",{attrs:{userid:e.source.userid,"show-name":!0,"show-icon":!1}})],1),e._v(" "+e._s(e.$L(e.source.msg.action==="remove"?"\u53D6\u6D88\u5F85\u529E":e.source.msg.action==="done"?"\u5B8C\u6210":"\u8BBE\u5F85\u529E"))+' "'+e._s(e.$A.getMsgSimpleDesc(e.source.msg.data))+'" '),e.source.msg.action==="add"&&e.formatTodoUser(e.source.msg.data).length>0?t("div",{staticClass:"todo-users"},[t("span",[e._v(e._s(e.$L("[todo_target].\u7ED9")))]),e._l(e.formatTodoUser(e.source.msg.data),function(i,n){return[n<3?t("div",{staticClass:"todo-user"},[t("UserAvatar",{attrs:{userid:i,"show-name":!0,"show-icon":!1}})],1):n==3?t("div",{staticClass:"todo-user"},[e._v("+"+e._s(e.formatTodoUser(e.source.msg.data).length-3))]):e._e()]})],2):e._e()])]):e.source.type==="notice"?t("div",{staticClass:"dialog-notice"},[e._v(" "+e._s(e.source.msg.source==="api"?e.source.msg.notice:e.$L(e.source.msg.notice))+" ")]):e.source.type==="withdraw"?t("div",{staticClass:"dialog-withdraw"},[e._v(" "+e._s(e.$L("\u4F60\u64A4\u56DE\u4E86\u4E00\u6761\u6D88\u606F"))+" "),t("em",{staticClass:"withdraw-re-edit",on:{click:e.onWithdrawReEdit}},[e._v(e._s(e.$L("\u91CD\u65B0\u7F16\u8F91")))])]):[e.multiSelectMode&&e.isSelectableMsg?t("div",{staticClass:"dialog-multi-check",on:{click:function(i){return i.stopPropagation(),e.onMultiSelectToggle.apply(null,arguments)}}},[t("Icon",{class:{checked:e.isSelected},attrs:{type:e.isSelected?"ios-checkmark-circle":"ios-radio-button-off"}})],1):e._e(),t("div",{staticClass:"dialog-avatar",on:{pointerdown:e.handleOperation}},[e.source.userid===-1?t("div",{staticClass:"ai-assistant-avatar"},[t("svg",{staticClass:"no-dark-content",attrs:{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M385.80516777 713.87417358c-12.76971517 0-24.13100586-7.79328205-28.82575409-19.62404756l-48.91927648-123.9413531c-18.40341303-46.75969229-55.77360888-84.0359932-102.53330118-102.53330117l-123.94135309-48.91927649c-11.83076552-4.69474822-19.62404757-16.05603892-19.62404757-28.8257541s7.79328205-24.13100586 19.62404757-28.82575407l123.94135309-48.91927649c46.75969229-18.40341303 84.0359932-55.77360888 102.53330118-102.53330119l48.91927648-123.94135308c4.69474822-11.83076552 16.05603892-19.62404757 28.8257541-19.62404757s24.13100586 7.79328205 28.82575408 19.62404757l48.91927648 123.94135308c18.40341303 46.75969229 55.77360888 84.0359932 102.53330118 102.53330119l123.94135309 48.91927649c11.83076552 4.69474822 19.62404757 16.05603892 19.62404757 28.82575407 0 12.76971517-7.79328205 24.13100586-19.62404757 28.8257541l-123.94135309 48.91927649c-46.75969229 18.40341303-84.0359932 55.77360888-102.53330118 102.53330117l-48.91927648 123.9413531c-4.69474822 11.83076552-16.14993388 19.62404757-28.82575408 19.62404756zM177.45224165 390.12433614l50.89107073 20.0935224c62.62794129 24.69437565 112.67395736 74.74039171 137.368333 137.36833299l20.09352239 50.89107073 20.0935224-50.89107073c24.69437565-62.62794129 74.74039171-112.67395736 137.368333-137.36833299l50.89107072-20.0935224-50.89107073-20.09352239c-62.62794129-24.69437565-112.67395736-74.74039171-137.36833299-137.36833301l-20.09352239-50.89107074-20.0935224 50.89107074c-24.69437565 62.62794129-74.74039171 112.67395736-137.368333 137.36833301l-50.89107073 20.09352239zM771.33789183 957.62550131c-12.76971517 0-24.13100586-7.79328205-28.82575409-19.62404758l-26.6661699-67.6043744c-8.63833672-21.87752672-26.10280012-39.34199011-47.98032684-47.98032684l-67.60437441-26.6661699c-11.83076552-4.69474822-19.62404757-16.05603892-19.62404757-28.82575409s7.79328205-24.13100586 19.62404757-28.82575409l67.60437441-26.6661699c21.87752672-8.63833672 39.34199011-26.10280012 47.98032684-47.98032685l26.6661699-67.6043744c4.69474822-11.83076552 16.05603892-19.62404757 28.82575409-19.62404757s24.13100586 7.79328205 28.82575409 19.62404757l26.66616991 67.6043744c8.63833672 21.87752672 26.10280012 39.34199011 47.98032684 47.98032685l67.6043744 26.6661699c11.83076552 4.69474822 19.62404757 16.05603892 19.62404757 28.82575409s-7.79328205 24.13100586-19.62404757 28.82575409l-67.6043744 26.6661699c-21.87752672 8.63833672-39.34199011 26.10280012-47.98032684 47.98032684l-26.66616991 67.6043744c-4.69474822 11.83076552-16.14993388 19.62404757-28.82575409 19.62404758z m-75.58544639-190.70067281c33.61439727 14.83540438 60.75004201 41.87715415 75.49155143 75.49155143 14.83540438-33.61439727 41.87715415-60.75004201 75.49155142-75.49155143-33.61439727-14.83540438-60.75004201-41.87715415-75.49155142-75.49155143-14.74150942 33.61439727-41.87715415 60.75004201-75.49155143 75.49155143z"}})])]):t("UserAvatar",{attrs:{userid:e.source.userid,size:30,"click-open-detail":""}})],1),t("DialogView",{attrs:{"msg-data":e.source,"dialog-type":e.dialogData.type,"hide-percentage":e.hidePercentage,"hide-reply":e.hideReply,"hide-forward":e.hideForward,"operate-visible":e.operateVisible,"operate-action":e.operateVisible&&e.source.id===e.operateItem.id,"pointer-mouse":e.pointerMouse,"is-right-msg":e.isRightMsg},on:{"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-other":e.onOther,"on-show-emoji-user":e.onShowEmojiUser,"on-merge-forward-detail":e.onMergeForwardDetail}})]],2)},qu=[];const Ku={name:"DialogItem",components:{DialogView:Vu},props:{source:{type:Object,default(){return{}}},dialogData:{type:Object,default(){return{}}},operateVisible:{type:Boolean,default:!1},operateItem:{type:Object,default(){return{}}},pointerMouse:{type:Boolean,default:!1},simpleView:{type:Boolean,default:!1},isMyDialog:{type:Boolean,default:!1},msgId:{type:Number,default:0},unreadOne:{type:Number,default:0},scrollIng:{type:Number,default:0},readEnabled:{type:Boolean,default:!1},multiSelectMode:{type:Boolean,default:!1},selectedMsgIdsSet:{type:Set,default:()=>new Set}},computed:{...B(["userId"]),isRightMsg(){return this.source.userid==this.$store.state.userId},isReply(){return this.simpleView||this.msgId===this.source.id},isNoRead(){return this.isRightMsg||this.source.read_at},isUnreadStart(){return this.unreadOne===this.source.id&&this.source.id>0},hidePercentage(){return this.simpleView||this.isMyDialog||this.isReply},hideReply(){return this.simpleView||this.msgId>0},hideForward(){return this.simpleView||this.msgId>0},isSelected(){return this.multiSelectMode&&this.selectedMsgIdsSet.has(this.source.id)},isSelectableMsg(){return!["tag","top","todo","notice","withdraw","word-chain","vote","template"].includes(this.source.type)},classArray(){return{"dialog-item":!0,"reply-item":this.isReply,"unread-start":this.isUnreadStart,self:this.isRightMsg,"multi-select-mode":this.multiSelectMode,"multi-selected":this.isSelected}}},watch:{readEnabled(){this.msgRead()},windowActive(){this.msgRead()},scrollIng(){this.msgRead()}},methods:{msgRead(){var e;this.isNoRead||!this.readEnabled||!this.windowActive||!((e=this.$el)!=null&&e.parentNode.classList.contains("item-enter"))||this.$store.dispatch("dialogMsgRead",this.source)},formatTodoUser(e){if($A.isJson(e)){const{userids:s}=e;if(s)return s.split(",")}return[]},formatTodoDoneUser(e){return $A.isJson(e)&&$A.isArray(e.done_userids)?e.done_userids:[]},todoDoneDisplayList(e){const s=this.formatTodoDoneUser(e);if(s.length===0)return[];const t=s.slice(0,3).map(i=>({type:"user",value:i}));return s.length>3&&t.push({type:"extra",value:`+${s.length-3}`}),t},onViewTag(){this.onViewReply({msg_id:this.source.id,reply_id:this.source.msg.data.id})},onViewTodo(){this.onViewReply({msg_id:this.source.id,reply_id:this.source.msg.data.id})},handleOperation({currentTarget:e}){this.$store.commit("longpress/set",{type:"mention",data:this.source,element:e})},onMultiSelectToggle(){this.dispatch("on-multi-select-toggle",this.source.id)},onViewReply(e){this.dispatch("on-view-reply",e)},onViewText(e,s){this.dispatch("on-view-text",e,s)},onViewFile(e){this.dispatch("on-view-file",e)},onDownFile(e){this.dispatch("on-down-file",e)},onReplyList(e){this.dispatch("on-reply-list",e)},onError(e){this.dispatch("on-error",e)},onEmoji(e){this.dispatch("on-emoji",e)},onOther(e){this.dispatch("on-other",e)},onShowEmojiUser(e){this.dispatch("on-show-emoji-user",e)},onMergeForwardDetail(e){this.dispatch("on-merge-forward-detail",e)},onWithdrawReEdit(){this.dispatch("on-withdraw-re-edit",this.source)},dispatch(e,...s){if(this.isReply){this.$emit(e,...s);return}let t=this.$parent,i=t.$options.name;for(;t&&(!i||i!=="virtual-list");)t=t.$parent,t&&(i=t.$options.name);t&&t.$emit(e,...s)}}},Ys={};var Gu=A(Ku,Yu,qu,!1,Ju,null,null,null);function Ju(e){for(let s in Ys)this[s]=Ys[s]}var Qu=function(){return Gu.exports}();const Xu=ie.import("core/module"),Gt=class extends Xu{constructor(s,t={}){super(s,{...Gt.DEFAULTS,...t}),this.lastRange=null,this.debounceTimer=null,this.setupEventListeners()}setupEventListeners(){this.quill.on(Ze.events.SELECTION_CHANGE,(s,t,i)=>{this.handleSelectionChange(s,t,i)}),this.quill.on(Ze.events.TEXT_CHANGE,(s,t,i)=>{setTimeout(()=>{const n=this.quill.getSelection();this.handleSelectionChange(n,this.lastRange,i)},0)})}handleSelectionChange(s,t,i){this.debounceTimer&&clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout(()=>{this.processSelectionChange(s,t,i),this.lastRange=s,this.debounceTimer=null},this.options.immediate?0:100)}processSelectionChange(s,t,i){if(this.options.onSelectionChange&&this.options.onSelectionChange(s,t,i),s&&s.length>=this.options.minLength){const n=this.quill.getText(s.index,s.length);this.options.onTextSelected&&this.options.onTextSelected(n,s,i),this.quill.emitter.emit("text-selected",{text:n,range:s,source:i})}else(!s||s.length===0)&&t&&t.length>0&&(this.options.onSelectionCleared&&this.options.onSelectionCleared(t,i),this.quill.emitter.emit("selection-cleared",{previousRange:t,source:i}))}getSelectedText(){const s=this.quill.getSelection();return s&&s.length>0?this.quill.getText(s.index,s.length):null}hasSelection(){const s=this.quill.getSelection();return!!(s&&s.length>0)}selectText(s,t){this.quill.setSelection(s,t,Ze.sources.API)}clearSelection(){const s=this.quill.getSelection();s&&this.quill.setSelection(s.index,0,Ze.sources.API)}destroy(){this.debounceTimer&&clearTimeout(this.debounceTimer)}};let Ue=Gt;S(Ue,"DEFAULTS",{immediate:!0,minLength:1,onTextSelected:null,onSelectionCleared:null,onSelectionChange:null});ie.register("modules/selectionPlugin",Ue);typeof module!="undefined"&&module.exports&&(module.exports=Ue);var Zu=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"chat-emoji-wrapper",on:{click:function(i){i.stopPropagation()}}},[t("div",{staticClass:"chat-emoji-box"},[e.type==="emosearch"?t("div",{staticClass:"chat-emoji-emosearch"},[t("Input",{attrs:{clearable:"",placeholder:e.$L("\u641C\u7D22\u8868\u60C5")},model:{value:e.emosearchKey,callback:function(i){e.emosearchKey=i},expression:"emosearchKey"}},[t("Icon",{class:{"icon-loading":e.emosearchLoad},attrs:{slot:"prefix",type:e.emosearchLoad?"ios-loading":"ios-search"},slot:"prefix"})],1)],1):e.type==="emoji"?t("div",{staticClass:"chat-emoji-nav"},e._l(e.emojiNavList,function(i){var n;return t("div",{key:i.type,class:(n={},n[`i-${i.name}`]=!0,n.active=i.type===e.emojiNavActive,n),domProps:{innerHTML:e._s(i.content)},on:{click:function(r){e.emojiNavActive=i.type}}})}),0):e._e(),t("Scrollbar",[t("ul",{class:[e.type,"no-dark-content"]},[e._l(e.list,function(i,n){return t("li",{key:n,on:{click:function(r){return e.onSelect(r,i)}}},[i.type==="emoticon"?t("Imgs",{attrs:{src:i.src,title:i.name,alt:i.name}}):t("span",{attrs:{title:i.name},domProps:{innerHTML:e._s(i.html)}})],1)}),e.type==="emoji"?[t("li",{staticClass:"delete-placeholder"}),t("li",{staticClass:"delete-placeholder"})]:e._e()],2)])],1),e.showEmojiDelete&&e.type==="emoji"?t("div",{staticClass:"chat-emoji-delete-btn",on:{click:e.onDelete}},[t("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"64",height:"64",stroke:"currentColor",fill:"currentColor"}},[t("path",{attrs:{d:"M889.202 167.878H343.626c-22.574 0-45.15 11.28-60.202 26.322L76.484 457.442c-22.576 30.084-22.576 67.688 0 94.016l206.94 263.236c15.052 18.802 37.628 30.084 60.202 30.084h545.572c41.39 0 75.252-33.842 75.252-75.208V243.092c-0.002-41.37-33.864-75.214-75.248-75.214z m3.76 601.69H347.39l-206.94-263.24 203.176-263.236h549.336v526.476z"}}),t("path",{attrs:{d:"M410.164 641.746c0 11.292 3.764 18.822 11.306 26.352 15.07 11.292 33.918 11.292 45.224 0l113.06-112.934 113.058 112.934c7.536 3.766 11.306 7.526 22.612 7.526s18.842-7.526 22.612-11.292c3.77-7.53 7.536-15.06 7.536-22.588 0-7.53 0-15.06-7.536-22.586l-113.058-112.94 113.058-112.934c3.77-3.766 7.536-11.296 7.536-18.822 0-15.062-15.072-26.352-22.612-30.118l-3.766-3.764h-3.77c-7.536 0-15.076 0-22.612 7.53l-113.058 112.934-116.83-120.466c-3.77-3.766-11.306-7.532-18.842-7.532-11.306 0-18.846 3.766-26.382 11.296-3.766 7.532-7.536 15.056-7.536 22.588 0 11.296 3.764 18.822 7.536 22.588l113.06 120.466-113.06 112.934c-3.766 3.772-7.536 11.298-7.536 18.828z"}})])]):e._e(),e.onlyEmoji?e._e():t("div",{staticClass:"chat-emoji-menu-wrap"},[t("span",{directives:[{name:"show",rawName:"v-show",value:e.showEmojiMenuScrollLeftBtn,expression:"showEmojiMenuScrollLeftBtn"}],staticClass:"left-btn",on:{click:function(i){return e.onEmojiMenuScroll("left")}}},[t("i",{staticClass:"taskfont"},[e._v("\uE72D")])]),t("ul",{ref:"chatEmojiMenuRef",staticClass:"chat-emoji-menu",on:{scroll:e.onHandleScroll}},[t("li",{class:{active:e.type==="emosearch"},on:{click:function(i){e.type="emosearch"}}},[t("i",{staticClass:"taskfont"},[e._v("\uE6F8")])]),t("li",{class:{active:e.type==="emoji"},on:{click:function(i){e.type="emoji"}}},[t("span",{staticClass:"no-dark-content"},[e._v("\u{1F600}")])]),e._l(e.emoticonData,function(i,n){return t("li",{key:n,class:{active:e.type==="emoticon"&&e.emoticonPath==i.path},on:{click:function(r){return e.onEmoticon(i.path)}}},[t("Imgs",{attrs:{title:i.name,alt:i.name,src:i.src}})],1)})],2),t("span",{directives:[{name:"show",rawName:"v-show",value:e.showEmojiMenuScrollRightBtn,expression:"showEmojiMenuScrollRightBtn"}],staticClass:"right-btn",on:{click:function(i){return e.onEmojiMenuScroll("right")}}},[t("i",{staticClass:"taskfont"},[e._v("\uE733")])])])])},ed=[];const td={name:"ChatEmoji",props:{searchKey:{type:String,default:""},onlyEmoji:{type:Boolean,default:!1},showEmojiDelete:{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:[],emojiMenuScrollLeft:0}},mounted(){var e;this.initData(),(e=this.$store)!=null&&e.state.windowPortrait||this.onMonitorWheel()},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:s})=>s===this.emoticonPath);if(e)return e.list}return[]},showEmojiMenuScrollLeftBtn(){return this.emojiMenuScrollLeft>34},showEmojiMenuScrollRightBtn(){var s;const e=this.$refs.chatEmojiMenuRef;if(e){const t=((s=e==null?void 0:e.querySelector("li"))==null?void 0:s.offsetWidth)||48;return this.emojiMenuScrollLeft{const s=$A.mainUrl("images/emoticon");$A.isArray(window.emojiData)&&(this.emojiData=window.emojiData.sort(function(t,i){return $A.sortFloat(t.emoji_order,i.emoji_order)}).map(t=>({type:"emoji",name:t.name,category:t.category,html:t.code_decimal}))),$A.isArray(window.emoticonData)&&(this.emoticonData=window.emoticonData.map(t=>Object.assign(t,{src:`${s}/${t.path}/${t.icon}`,list:t.list.map(i=>Object.assign(i,{type:"emoticon",asset:`images/emoticon/${t.path}/${i.path}`,src:`${s}/${t.path}/${i.path}`}))})))})},onEmosearch(){this.type!=="emosearch"||this.emosearchCache===this.emosearchKey||(this.emosearchCache=this.emosearchKey,this.emosearchLoad=!0,this.emosearchTimer&&clearTimeout(this.emosearchTimer),this.emosearchTimer=setTimeout(e=>{this.$store.dispatch("call",{url:"dialog/sticker/search",data:{key:this.emosearchKey}}).then(({data:s})=>{this.emosearchList=[];const t=s.list;t.length>0&&(this.emosearchList=t.map(i=>({type:"emoticon",asset:"emosearch",name:i.name,src:i.src,height:i.height,width:i.width}))),this.emosearchList.length===0&&$A.messageWarning("\u6CA1\u6709\u641C\u7D22\u5230\u4EFB\u4F55\u8868\u60C5")}).catch(s=>{this.emosearchList=[],$A.messageWarning("\u641C\u7D22\u7ED3\u679C\u4E3A\u7A7A")}).finally(s=>{this.emosearchLoad=!1})},300))},onEmoticon(e){this.type="emoticon",this.emoticonPath=e},onSelect(e,s){s.type==="emoji"?this.$emit("on-select",{type:"emoji",text:e.target.innerText}):this.$emit("on-select",s)},onDelete(){this.$emit("on-delete")},onMonitorWheel(){const e=this.$refs.chatEmojiMenuRef;e==null||e.addEventListener("wheel",s=>{Math.abs(s.deltaY)<10&&s.deltaMode===0||(s.preventDefault(),e.scrollLeft=e.scrollLeft+s.deltaY)})},onEmojiMenuScroll(e){const s=this.$refs.chatEmojiMenuRef,t=s.offsetWidth-68,i=e=="right"?s.scrollLeft+t:s.scrollLeft-t;s.scrollTo({left:i,behavior:"smooth"})},onHandleScroll(e){this.emojiMenuScrollLeft=e.target.scrollLeft}}},qs={};var sd=A(td,Zu,ed,!1,id,null,null,null);function id(e){for(let s in qs)this[s]=qs[s]}var un=function(){return sd.exports}();const Ks="ontouchend"in document;var nd={bind(e,s){let t=!1;e.__touchEvent__={start:i=>{i.preventDefault(),t=!0,s.value("down",i,e)},move:i=>{t&&s.value("move",i,e)},end:i=>{t&&(t=!1,s.value("up",i,e))},click:i=>{s.value("click",i,e)}},Ks?(e.addEventListener("touchstart",e.__touchEvent__.start),e.addEventListener("touchmove",e.__touchEvent__.move),e.addEventListener("touchend",e.__touchEvent__.end)):(e.addEventListener("mousedown",e.__touchEvent__.start,{passive:!1}),document.addEventListener("mousemove",e.__touchEvent__.move),document.addEventListener("mouseup",e.__touchEvent__.end)),e.addEventListener("click",e.__touchEvent__.click)},update(){},unbind(e){Ks?(e.removeEventListener("touchstart",e.__touchEvent__.start),e.removeEventListener("touchmove",e.__touchEvent__.move),e.removeEventListener("touchend",e.__touchEvent__.end)):(e.removeEventListener("mousedown",e.__touchEvent__.start),document.removeEventListener("mousemove",e.__touchEvent__.move),document.removeEventListener("mouseup",e.__touchEvent__.end)),e.removeEventListener("click",e.__touchEvent__.click),delete e.__touchEvent__}};const Gs="ontouchend"in document;var rd={bind(e,s){if(Gs){const t={move:!1,time:0,x:0,y:0};e.__touchEvent__={start:i=>{i.preventDefault(),t.move=!1,t.time=$A.dayjs().valueOf(),t.x=i.touches?i.touches[0].clientX:i.clientX,t.y=i.touches?i.touches[0].clientY:i.clientY},move:i=>{if(t.time>0){const n=i.touches?i.touches[0].clientX:i.clientX,r=i.touches?i.touches[0].clientY:i.clientY;(Math.abs(n-t.x)>5||Math.abs(r-t.y)>5)&&(t.move=!0)}},end:i=>{t.time>0&&(!t.move&&$A.dayjs().valueOf()-t.time<300&&s.value(i,e),t.time=0)}},e.addEventListener("touchstart",e.__touchEvent__.start),e.addEventListener("touchmove",e.__touchEvent__.move),e.addEventListener("touchend",e.__touchEvent__.end)}else e.__clickEvent__=t=>{t.preventDefault(),s.value(t,e)},e.addEventListener("click",e.__clickEvent__)},update(){},unbind(e){Gs?(e.removeEventListener("touchstart",e.__touchEvent__.start),e.removeEventListener("touchmove",e.__touchEvent__.move),e.removeEventListener("touchend",e.__touchEvent__.end),delete e.__touchEvent__):(e.removeEventListener("click",e.__clickEvent__),delete e.__clickEvent__)}};function Te(e){return e===void 0&&(e=document.body),e===!0?document.body:e instanceof window.Node?e:document.querySelector(e)}const dn={inserted(e,{value:s},t){if(e.dataset&&e.dataset.transfer!=="true")return!1;e.className=e.className?e.className+" v-transfer-dom":"v-transfer-dom";const i=e.parentNode;if(!i)return;const n=document.createComment("");let r=!1;s!==!1&&(i.replaceChild(n,e),Te(s).appendChild(e),r=!0),e.__transferDomData||(e.__transferDomData={parentNode:i,home:n,target:Te(s),hasMovedOut:r})},componentUpdated(e,{value:s}){if(e.dataset&&e.dataset.transfer!=="true")return!1;const t=e.__transferDomData;if(!t)return;const i=t.parentNode,n=t.home,r=t.hasMovedOut;!r&&s?(i.replaceChild(n,e),Te(s).appendChild(e),e.__transferDomData=Object.assign({},e.__transferDomData,{hasMovedOut:!0,target:Te(s)})):r&&s===!1?(i.replaceChild(e,n),e.__transferDomData=Object.assign({},e.__transferDomData,{hasMovedOut:!1,target:Te(s)})):s&&Te(s).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 hn={bind(e,s,t){function i(n){if(e.contains(n.target))return!1;s.expression&&s.value(n)}e.__vueClickOutside__=i,document.addEventListener("click",i)},update(){},unbind(e,s){document.removeEventListener("click",e.__vueClickOutside__),delete e.__vueClickOutside__}};const Js="ontouchend"in document,od={bind:function(e,s){let t="default",i=!1,n=null,r=500,o=null,a=s.value,l=!1;if($A.isJson(s.value)&&(r=s.value.delay||500,o=typeof s.value.touchend=="function"?s.value.touchend:o,a=typeof s.value.callback=="function"?s.value.callback:a,l=s.value.preventEndEvent||!1),typeof a!="function")throw"callback must be a function";e.__longpressContextmenu__=c=>{c.preventDefault(),c.stopPropagation(),t==="default"&&a(c,e)},e.addEventListener("contextmenu",e.__longpressContextmenu__),Js&&(e.__longpressStart__=c=>{c.type==="click"&&c.button!==0||(t="touch",i=!1,n===null&&(n=setTimeout(()=>{t==="touch"&&(i=!0,a(c.touches[0],e))},r)))},e.__longpressCancel__=c=>{n!==null&&(clearTimeout(n),n=null),t="default"},e.__longpressEnd__=c=>{typeof o=="function"&&o(c,i),i&&l&&(c.preventDefault(),c.stopPropagation()),e.__longpressCancel__(c)},e.__longpressClick__=c=>{i&&(c.preventDefault(),c.stopPropagation()),e.__longpressCancel__(c)},e.addEventListener("touchstart",e.__longpressStart__),e.addEventListener("click",e.__longpressClick__),e.addEventListener("touchmove",e.__longpressCancel__),e.addEventListener("touchcancel",e.__longpressCancel__),e.addEventListener("touchend",e.__longpressEnd__))},unbind(e){e.removeEventListener("contextmenu",e.__longpressContextmenu__),delete e.__longpressContextmenu__,Js&&(e.removeEventListener("touchstart",e.__longpressStart__),e.removeEventListener("click",e.__longpressClick__),e.removeEventListener("touchmove",e.__longpressCancel__),e.removeEventListener("touchcancel",e.__longpressCancel__),e.removeEventListener("touchend",e.__longpressEnd__),delete e.__longpressStart__,delete e.__longpressClick__,delete e.__longpressCancel__,delete e.__longpressEnd__)}},Ee=[];function ad(e){if(Ee.length===0)return!0;const s=Ee.indexOf(e);return s===-1?!1:s===Ee.length-1}const pn=e=>{const s=Ee.indexOf(e);s!==-1&&Ee.splice(s,1)},Qs=e=>{pn(e),Ee.push(e)};function fv(){return new Promise(e=>{const s=new E({render(n){return n(_r.exports.Modal,{class:"chat-emoji-one-modal",props:{fullscreen:!0,footerHide:!0},on:{"on-visible-change":r=>{r||setTimeout(o=>{document.body.removeChild(this.$el)},500)}}},[n(un,{attrs:{onlyEmoji:!0},on:{"on-select":r=>{this.$children[0].visible=!1,r.type==="emoji"&&e(r.text)}}})])}}),t=s.$mount();document.body.appendChild(t.$el);const i=s.$children[0];i.visible=!0,i.$el.lastChild.addEventListener("click",({target:n})=>{n.classList.contains("ivu-modal-body")&&(i.visible=!1)})})}const Le=(e,s=60,t="...")=>{const i=(e||"").trim();if(!i)return"";const n=Array.from(i);return n.length<=s?i:n.slice(0,s).join("")+t},Xs=(e,s=null,t=!1)=>{if(!e)return"";const i=typeof e=="string"?e:JSON.stringify(e);if(t){const o=vr(i).trim();return s?Le(o,s):o}if(typeof window=="undefined"||!window.document){const o=i.replace(/<[^>]+>/g," ").replace(/\s+/g," ").trim();return s?Le(o,s):o}const n=document.createElement("div");n.innerHTML=i;const r=(n.textContent||n.innerText||"").replace(/\s+/g," ").trim();return s?Le(r,s):r},Zs={dooai:"Doo AI",openai:"ChatGPT",claude:"Claude",deepseek:"DeepSeek",gemini:"Gemini",grok:"Grok",ollama:"Ollama",zhipu:"\u667A\u8C31\u6E05\u8A00",qianwen:"\u901A\u4E49\u5343\u95EE",wenxin:"\u6587\u5FC3\u4E00\u8A00"},ld=`\u4F60\u662F\u4E00\u540D\u6C9F\u901A\u52A9\u624B\uFF0C\u5E2E\u52A9\u7528\u6237\u7F16\u5199\u5373\u65F6\u6D88\u606F\u3002
\u5199\u4F5C\u8981\u6C42\uFF1A
1. \u751F\u6210\u7B80\u77ED\u3001\u5F97\u4F53\u7684\u6D88\u606F\uFF0C\u8BED\u6C14\u7B26\u5408\u4E1A\u52A1\u6C9F\u901A\u573A\u666F
@@ -533,24 +533,24 @@ var er=Object.defineProperty;var tr=(e,s,t)=>s in e?er(e,s,{enumerable:!0,config
1. \u8C03\u7528\u641C\u7D22\u5DE5\u5177\u83B7\u53D6\u76F8\u5173\u7ED3\u679C
2. \u5BF9\u641C\u7D22\u7ED3\u679C\u8FDB\u884C\u5206\u7C7B\u6574\u7406
3. \u4EE5\u6E05\u6670\u7684\u683C\u5F0F\u5448\u73B0\u7ED9\u7528\u6237
-4. \u5982\u6709\u9700\u8981\uFF0C\u53EF\u4EE5\u8FDB\u884C\u591A\u6B21\u641C\u7D22\u4EE5\u83B7\u53D6\u66F4\u5168\u9762\u7684\u7ED3\u679C`,ud=`\u4F60\u662F DooTask\uFF08\u4EFB\u52A1 / \u9879\u76EE / \u6D88\u606F / \u65E5\u5386 / \u6587\u4EF6 / \u6C47\u62A5\uFF09\u7684 AI \u52A9\u624B\u3002
+4. \u5982\u6709\u9700\u8981\uFF0C\u53EF\u4EE5\u8FDB\u884C\u591A\u6B21\u641C\u7D22\u4EE5\u83B7\u53D6\u66F4\u5168\u9762\u7684\u7ED3\u679C`,cd=`\u4F60\u662F DooTask\uFF08\u4EFB\u52A1 / \u9879\u76EE / \u6D88\u606F / \u65E5\u5386 / \u6587\u4EF6 / \u6C47\u62A5\uFF09\u7684 AI \u52A9\u624B\u3002
- \u56DE\u7B54\u7B80\u6D01\u3001\u53EF\u6267\u884C
- \u5BF9\u8BDD\u4E2D\u4EE5 [\u5F53\u524D\u9875\u9762] / [\u9875\u9762\u5207\u6362] \u5F00\u5934\u7684 system \u6D88\u606F\u6807\u8BB0\u7528\u6237\u5F53\u524D\u573A\u666F\uFF1B\u6D89\u53CA\u5177\u4F53\u4EFB\u52A1\u3001\u9879\u76EE\u3001\u6210\u5458\u3001\u7EDF\u8BA1\u6216\u6700\u65B0\u72B6\u6001\u65F6\u8C03\u7528\u5DE5\u5177\u83B7\u53D6\uFF0C\u4E0D\u8981\u6839\u636E\u9875\u9762\u6807\u9898\u6216\u5386\u53F2\u5BF9\u8BDD\u81C6\u6D4B\u7EC6\u8282
-- \u4E0D\u786E\u5B9A\u5C31\u76F4\u8BF4\u4E0D\u77E5\u9053`,dd="{{SYSTEM_OPTIONAL_PROMPTS}}",hd=e=>`\u8F93\u51FA\u8BED\u8A00\u7B56\u7565\uFF1A
+- \u4E0D\u786E\u5B9A\u5C31\u76F4\u8BF4\u4E0D\u77E5\u9053`,ud="{{SYSTEM_OPTIONAL_PROMPTS}}",dd=e=>`\u8F93\u51FA\u8BED\u8A00\u7B56\u7565\uFF1A
- \u9ED8\u8BA4\u4F7F\u7528 ${e} \u8F93\u51FA\u3002
- \u5373\u4F7F\u4E0A\u4E0B\u6587\u6216\u5F15\u7528\u5305\u542B\u5176\u4ED6\u8BED\u8A00\uFF0C\u4E5F\u4FDD\u6301 ${e} \u8F93\u51FA\u3002
- \u4EC5\u5F53\u6211\u660E\u786E\u6307\u5B9A\u5176\u4ED6\u8BED\u8A00\u65F6\uFF0C\u624D\u5207\u6362\u5230\u8BE5\u8BED\u8A00\u3002`,fn=e=>{if(typeof e!="string"||!e)return e;const s=ve[M]||M||"",t=s?`
-${hd(s)}`:"";return`${e}${t}
+${dd(s)}`:"";return`${e}${t}
-${dd}`},pd=e=>{if(typeof e!="string")return[];const s=e.trim();if(s.startsWith("["))try{const i=JSON.parse(s);if(Array.isArray(i))return i.filter(n=>!(n!=null&&n.hidden)).map(n=>{var r,o,a,l;return{value:String((o=(r=n==null?void 0:n.id)!=null?r:n==null?void 0:n.value)!=null?o:"").trim(),label:String((l=(a=n==null?void 0:n.name)!=null?a:n==null?void 0:n.label)!=null?l:"").trim()}}).filter(n=>n.value).map(n=>({value:n.value,label:n.label||n.value}))}catch{}return e.split(`
-`).filter(i=>i.trim()).map(i=>{const[n,r]=i.split("|").map(o=>o.trim());return{value:n,label:r||n}},[]).filter(i=>i.value)},wv=e=>{if(!e)return null;const s=String(e).trim();if(!s)return null;const t=[s],i=s.match(/```(?:json)?\s*([\s\S]*?)```/i);i&&i[1]&&t.push(i[1].trim());const n=s.indexOf("{"),r=s.lastIndexOf("}");n!==-1&&r!==-1&&r>n&&t.push(s.slice(n,r+1));for(const o of t)if(!!o)try{return JSON.parse(o)}catch{}return null},ei=50,ti="chat-input-history";var fd={data(){return{historyList:[],historyIndex:0,historyCurrent:""}},methods:{refreshHistoryContext(){this.historyCurrent="",this.historyList=[],this.historyIndex=0,this.loadInputHistory()},async loadInputHistory(){try{const e=await $A.IDBValue(ti);Array.isArray(e)?this.historyList=e:e&&typeof e=="object"?this.historyList=Object.values(e).filter(s=>typeof s=="string"):this.historyList=[]}catch{this.historyList=[]}this.historyIndex=this.historyList.length},persistInputHistory(e){if(!e||$A.filterInvalidLine(e)==="")return;const s=Array.isArray(this.historyList)?[...this.historyList]:[];if(s[s.length-1]===e){this.historyIndex=s.length,this.historyCurrent="";return}const i=s.indexOf(e);i!==-1&&s.splice(i,1),s.push(e),s.length>ei&&s.splice(0,s.length-ei),this.historyList=s,this.historyIndex=s.length,this.historyCurrent="",$A.IDBSet(ti,s).catch(()=>{})},applyHistoryContent(e){!this.quill||(e?this.setContent(e):this.quill.setText(""),this._content=e||"",this.$emit("input",this._content),this.$nextTick(()=>{const s=this.quill.getLength();this.quill.setSelection(Math.max(s-1,0),0)}))},navigateHistory(e,s){if(!this.quill||!this.historyList.length||!s||s.length!==0)return!0;if(e==="up")return s.index>0?!0:(this.historyIndex===this.historyList.length&&(this.historyCurrent=this.value),this.historyIndex>0?this.historyIndex--:this.historyIndex=0,this.applyHistoryContent(this.historyList[this.historyIndex]||""),!1);if(e==="down"){const t=Math.max(this.quill.getLength()-1,0);return s.index0&&e.aiVisible?t("div",{staticClass:"chat-input-popover-item",on:{click:function(i){return e.onToolbar("ai")}}},[t("i",{staticClass:"taskfont"},[e._v("\uE8A1")]),t("em",[e._v(e._s(e.$L("AI \u751F\u6210")))])]):e._e(),t("div",{ref:"moreFull",staticClass:"chat-input-popover-item",on:{click:function(i){return e.onToolbar("full")}}},[t("i",{staticClass:"taskfont"},[e._v("\uE6A7")]),t("em",[e._v(e._s(e.$L("\u5168\u5C4F\u8F93\u5165")))])])],2)],1),t("li",{directives:[{name:"touchmouse",rawName:"v-touchmouse",value:e.clickSend,expression:"clickSend"},{name:"longpress",rawName:"v-longpress",value:e.onShowMenu,expression:"onShowMenu"}],ref:"chatSend",staticClass:"chat-send",class:e.sendClass},[t("EPopover",{ref:"menu",attrs:{visibleArrow:!1,trigger:"manual",placement:"top",popperClass:"chat-input-more-popover"},model:{value:e.showMenu,callback:function(i){e.showMenu=i},expression:"showMenu"}},[t("ETooltip",{ref:"sendTip",attrs:{slot:"reference",placement:"top",disabled:e.$isEEUIApp||e.windowTouch||e.showMenu,enterable:!1,content:e.$L(e.sendContent)},slot:"reference"},[e.loading?t("div",[t("div",{staticClass:"chat-load"},[t("Loading")],1)]):t("div",[t("transition",{attrs:{name:"mobile-send"}},[e.sendClass==="recorder"?t("i",{staticClass:"taskfont"},[e._v("\uE609")]):e._e()]),t("transition",{attrs:{name:"mobile-send"}},[e.sendClass!=="recorder"?t("i",{staticClass:"taskfont"},[e._v("\uE606")]):e._e()])],1)]),t("div",{staticClass:"chat-input-popover-item",on:{click:function(i){return e.onSend("silence")}}},[t("i",{staticClass:"taskfont"},[e._v("\uE7D7")]),t("em",[e._v(e._s(e.$L("\u65E0\u58F0\u53D1\u9001")))])]),t("div",{staticClass:"chat-input-popover-item",on:{click:function(i){return e.onSend("md")}}},[t("i",{staticClass:"taskfont"},[e._v("\uE647")]),t("em",[e._v(e._s(e.$L("MD \u683C\u5F0F\u53D1\u9001")))])]),t("div",{staticClass:"chat-input-popover-item",on:{click:function(i){return e.onSend("normal")}}},[t("i",{staticClass:"taskfont"},[e._v("\uE71B")]),t("em",[e._v(e._s(e.$L("\u666E\u901A\u683C\u5F0F\u53D1\u9001")))])])],1)],1)]),t("div",{staticClass:"chat-record",class:e.recordClassName},[t("div",{staticClass:"record-convert",on:{click:function(i){return e.stopRecord(!1,!0)}}},[t("i",{staticClass:"taskfont"},[e._v("\uE628")])]),t("div",{staticClass:"record-recwave"},[t("div",{ref:"recwave"})]),t("div",{staticClass:"record-remove",on:{click:function(i){return e.stopRecord(!0)}}},[t("i",{staticClass:"taskfont"},[e._v("\uE787")]),t("i",{staticClass:"taskfont"},[e._v("\uE702")])])]),t("div",{staticClass:"chat-cover",on:{click:function(i){return i.stopPropagation(),e.onClickCover.apply(null,arguments)}}})]),e.emojiBottom&&e.showEmoji?t("ChatEmoji",{attrs:{searchKey:e.emojiQuickKey,showEmojiDelete:""},on:{"on-select":e.onSelectEmoji,"on-delete":e.onEmojiDelete}}):e._e(),t("transition",{attrs:{name:"fade"}},[e.recordShow?t("div",{directives:[{name:"transfer-dom",rawName:"v-transfer-dom"}],staticClass:"chat-input-record-transfer",class:e.recordClassName,style:e.recordStyle,attrs:{"data-transfer":!0},on:{click:e.stopRecord}},[e.recordDuration>0?t("div",{staticClass:"record-duration"},[e._v(e._s(e.recordFormatDuration))]):t("div",{staticClass:"record-loading"},[t("Loading",{attrs:{type:"pure"}})],1),t("div",{staticClass:"record-cancel",on:{click:function(i){return i.stopPropagation(),e.stopRecord(!0)}}},[e._v(e._s(e.$L(e.recordFormatTip)))])]):e._e()]),t("transition",{attrs:{name:"fade"}},[e.recordConvertIng?t("div",{directives:[{name:"transfer-dom",rawName:"v-transfer-dom"}],staticClass:"chat-input-convert-transfer",style:e.recordConvertStyle,attrs:{"data-transfer":!0}},[t("div",{staticClass:"convert-box"},[t("div",{staticClass:"convert-body"},[t("div",{staticClass:"convert-content"},[e.recordConvertSetting?t("div",{staticClass:"convert-setting"},[t("i",{staticClass:"taskfont",class:{active:!!e.recordConvertTranslate},on:{click:function(i){return e.convertSetting(i)}}},[e._v("\uE795")])]):e._e(),t("div",{staticClass:"convert-input"},[t("Input",{staticClass:"convert-result no-dark-content",attrs:{type:"textarea",rows:1,autosize:{minRows:1,maxRows:5},placeholder:e.recordConvertStatus===0?"...":"",disabled:e.recordConvertStatus!==1},on:{"on-focus":function(i){e.recordConvertFocus=!0},"on-blur":function(i){e.recordConvertFocus=!1}},model:{value:e.recordConvertResult,callback:function(i){e.recordConvertResult=i},expression:"recordConvertResult"}})],1)])]),t("ul",{staticClass:"convert-footer",style:e.recordConvertFooterStyle},[t("li",{directives:[{name:"touchclick",rawName:"v-touchclick",value:e.onTouchClick,expression:"onTouchClick"}],attrs:{"data-action":"record-convert-cancel"}},[t("i",{staticClass:"taskfont"},[e._v("\uE637")]),t("span",[e._v(e._s(e.$L("\u53D6\u6D88")))])]),t("li",{directives:[{name:"touchclick",rawName:"v-touchclick",value:e.onTouchClick,expression:"onTouchClick"}],attrs:{"data-action":"record-convert-voice"}},[t("i",{staticClass:"taskfont voice"},[e._v("\uE793")]),t("span",[e._v(e._s(e.$L("\u53D1\u9001\u539F\u8BED\u97F3")))])]),t("li",{directives:[{name:"touchclick",rawName:"v-touchclick",value:e.onTouchClick,expression:"onTouchClick"}],attrs:{"data-action":"record-convert-result"}},[e.recordConvertStatus===0?t("i",{staticClass:"send"},[t("Loading")],1):e.recordConvertStatus===2?t("i",{staticClass:"taskfont error"},[e._v("\uE665")]):t("i",{staticClass:"taskfont send"},[e._v("\uE684")])])])])]):e._e()]),t("Modal",{attrs:{"mask-closable":!1,beforeClose:e.onFullBeforeClose,"class-name":"chat-input-full-input","footer-hide":"",fullscreen:""},model:{value:e.fullInput,callback:function(i){e.fullInput=i},expression:"fullInput"}},[t("div",{staticClass:"chat-input-box",style:e.chatInputBoxStyle},[t("div",{staticClass:"chat-input-wrapper"},[t("div",{ref:"editorFull",staticClass:"no-dark-content"})]),t("ul",{staticClass:"chat-input-menu",class:{activation:e.fullSelected}},e._l(e.tools,function(i,n){return t("li",{directives:[{name:"touchmouse",rawName:"v-touchmouse",value:e.onMenu,expression:"onMenu"}],key:n,attrs:{"data-label":i.label,"data-type":i.type}},[t("i",{staticClass:"taskfont",domProps:{innerHTML:e._s(i.icon)}})])}),0)]),t("i",{staticClass:"taskfont",attrs:{slot:"close"},slot:"close"},[e._v("\uE6AB")])])],1)},gd=[];const si={},_d={name:"ChatInput",components:{ChatEmoji:un},directives:{touchmouse:rd,touchclick:od,TransferDom:dn,clickoutside:hn,longpress:ad},mixins:[fd],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},emojiBottom:{type:Boolean,default:!1},sendMenu:{type:Boolean,default:!0},simpleMode:{type:Boolean,default:!1},options:{type:Object,default:()=>({})},toolbar:{type:Array,default:()=>["bold","strike","italic","underline","blockquote","link",{list:"ordered"},{list:"bullet"},{list:"check"}]},maxlength:{type:Number},defaultMenuOrientation:{type:String,default:"top"},replyMsgAutoMention:{type:Boolean,default:!0}},data(){return{quill:null,isFocus:!1,rangeIndex:0,rangeLength:0,_content:"",_options:{},mentionMode:"",maybePhotoShow:!1,maybePhotoData:{},maybePhotoStyle:{},userList:null,userCache:null,taskList:null,taskSearchList:{},fileList:{},reportList:{},taskSearchKey:"",showMenu:!1,showMore:!1,showEmoji:!1,emojiQuickShow:!1,emojiQuickKey:"",emojiQuickItems:[],recordReady:!1,recordRec:null,recordBlob:null,recordWave:null,recordInter:null,recordState:"stop",recordDuration:0,recordIndex:window.modalTransferIndex,recordConvertIng:!1,recordConvertFocus:!1,recordConvertSetting:!1,recordConvertStatus:0,recordConvertResult:"",recordConvertTranslate:"",touchStart:{},touchFocus:!1,touchLimitX:!1,touchLimitY:!1,pasteClean:!0,changeLoad:0,isSpecVersion:this.checkIOSVersion(),emojiTimer:null,scrollTimer:null,textTimer:null,fileTimer:null,reportTimer:null,taskSearchTimer:null,moreTimer:null,selectTimer:null,selectRange:null,selectedText:!1,fullInput:!1,fullQuill:null,fullSelected:!1,fullSelection:null,tools:[{label:"bold",type:"",icon:""},{label:"strike",type:"",icon:""},{label:"italic",type:"",icon:""},{label:"underline",type:"",icon:""},{label:"blockquote",type:"",icon:""},{label:"link",type:"",icon:""},{label:"list",type:"ordered",icon:""},{label:"list",type:"bullet",icon:""},{label:"list",type:"unchecked",icon:""}],iOSDevices:$A.isIos()}},created(){Qs(this._uid)},mounted(){this.init(),this.refreshHistoryContext(),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,s)=>{e==="recordAudio"&&s===!1&&this.stopRecord(!0)}),$A.loadScript("js/emoticon.all.js")},beforeDestroy(){var e;pn(this._uid),this.quill&&((e=this.quill.getModule("mention"))==null||e.hideMentionList(),this.quill=null),this.recordRec&&(this.recordRec=null),this.recordConvertIng&&(this.recordConvertIng=!1),this.recordInter&&clearInterval(this.recordInter)},computed:{...B(["cacheProjects","cacheTasks","cacheUserBasic","cacheDialogs","dialogMsgs","cacheKeyboard","keyboardShow","keyboardHeight","isModKey","safeAreaSize","viewportHeight"]),...ye(["aiVisible","getDialogDraft","getDialogQuote"]),isEnterSend({cacheKeyboard:e}){return this.$isEEUIApp?e.send_button_app==="enter":e.send_button_desktop==="enter"},isAiBot({dialogData:e}){return!e.bot||e.type!=="user"?!1:/^ai-(.*?)@bot\.system/.test(e.email)},canCall(){return this.dialogData.type==="user"&&!this.dialogData.bot&&this.$isEEUIApp},canAnon(){return this.dialogData.type==="user"&&!this.dialogData.bot},recordShow(){const{recordState:e}=this;return["ready","ing"].includes(e)},recordStyle(){const{windowScrollY:e,recordIndex:s}=this,t={zIndex:s};return e>0&&(t.marginTop=e/2+"px"),t},recordConvertStyle(){const{recordIndex:e}=this;return{zIndex:e}},recordConvertFooterStyle(){const{recordConvertFocus:e,keyboardShow:s,keyboardHeight:t}=this;return e&&s&&t>120&&$A.isIos()?{alignItems:"flex-start",transform:"translateY(12px)"}:{}},boxClass(){const e=[];return this.recordShow&&(this.recordState==="ing"&&this.recordDuration>0?e.push("record-progress"):e.push("record-ready")),this.simpleMode&&e.push("simple-mode"),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 $A.filterInvalidLine(this.value)?"sender":this.recordReady?"recorder":""},sendContent(){return this.tempHiddenSendTip(),this.sendClass==="recorder"?"\u957F\u6309\u5F55\u97F3":"\u53D1\u9001"},recordFormatDuration(){const{recordDuration:e}=this;let s=Math.floor(e/6e4),t=Math.floor(e/1e3)%60,i=("00"+e%1e3).substr(-2);return s<10&&(s=`0${s}`),t<10&&(t=`0${t}`),`${s}:${t}\u2033${i}`},recordClassName({touchLimitX:e,touchLimitY:s}){return s?"cancel":e?"convert":""},recordFormatTip({touchLimitX:e,touchLimitY:s}){return s?"\u677E\u5F00\u53D6\u6D88":e?"\u8F6C\u6587\u5B57":"\u5411\u4E0A\u6ED1\u52A8\u53D6\u6D88"},dialogData(){return this.dialogId>0?this.cacheDialogs.find(({id:e})=>e==this.dialogId)||{}:{}},draftId(){return this.dialogId||`t_${this.taskId}`},draftData(){var e;return((e=this.getDialogDraft(this.draftId))==null?void 0:e.content)||""},quoteData(){var e;return((e=this.getDialogQuote(this.dialogId))==null?void 0:e.content)||null},quoteUpdate(){var e;return((e=this.getDialogQuote(this.dialogId))==null?void 0:e.type)==="update"},chatInputBoxStyle({iOSDevices:e,fullInput:s,keyboardShow:t,viewportHeight:i,safeAreaSize:n}){const r={};return e&&s&&t&&i>0&&$A.isIos()?r.height=Math.max(100,i-70-n.top)+"px":r.paddingBottom=`${n.bottom}px`,r}},watch:{value(e){this.quill&&(e&&e!==this._content?(this._content=e,this.setContent(e)):e||this.quill.setText("")),this.simpleMode||this.$store.dispatch("saveDialogDraft",{id:this.draftId,content:e})},disabled(e){var s;(s=this.quill)==null||s.enable(!e)},dialogId(){this.selectRange=null,this.userList=null,this.userCache=null,this.taskList=null,this.taskSearchList={},this.fileList={},this.reportList={},this.loadInputDraft(),this.refreshHistoryContext()},taskId(){this.selectRange=null,this.userList=null,this.userCache=null,this.taskList=null,this.taskSearchList={},this.fileList={},this.reportList={},this.loadInputDraft(),this.refreshHistoryContext()},draftData(){this.isFocus||this.loadInputDraft()},quoteData(){this.quoteChanged=!0},showMenu(e){e&&(this.showMore=!1,this.showEmoji=!1,this.emojiQuickShow=!1)},showMore(e){if(this.maybePhotoShow=!1,e){if(this.showMenu=!1,this.showEmoji=!1,this.emojiQuickShow=!1,this.isAiBot)return;$A.eeuiAppGetLatestPhoto().then(({thumbnail:s,original:t})=>{const i=Math.min(120,Math.max(100,this.$refs.moreFull.clientWidth));this.maybePhotoStyle={width:i+"px",height:i+"px",backgroundImage:`url(${s.base64})`},this.maybePhotoData={thumbnail:s,original:t},this.maybePhotoShow=!0,this.$nextTick(()=>{var n;(n=this.$refs.more)==null||n.updatePopper()})}).catch(s=>{})}},showEmoji(e){if(this.emojiBottom&&(e?this.quill.enable(!1):this.disabled||this.quill.enable(!0)),e){let s=this.value.replace(/ /g," ").replace(/<[^>]+>/g,"");if(s&&s.indexOf(" ")===-1&&s.length>=1&&s.length<=8?this.emojiQuickKey=s:this.emojiQuickKey="",this.showMenu=!1,this.showMore=!1,this.emojiQuickShow=!1,this.quill){const t=this.quill.selection.savedRange;this.rangeIndex=t?t.index:0,this.rangeLength=t?t.length:0}}else this.rangeLength=0,this.rangeIndex>0&&this.quill.setSelection(this.rangeIndex)},emojiQuickShow(e){e&&(this.showMenu=!1,this.showMore=!1,this.showEmoji=!1)},isFocus(e){this.scrollTimer&&clearInterval(this.scrollTimer),e?(this.$emit("on-focus"),this.hidePopover(),this.isSpecVersion||this.windowPortrait&&(this.scrollTimer=setInterval(()=>{var s;(s=this.quill)!=null&&s.hasFocus()?this.windowScrollY>0&&$A.scrollIntoViewIfNeeded(this.$refs.editor):clearInterval(this.scrollTimer)},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)},recordShow(e){e&&(this.recordIndex=++window.modalTransferIndex)},recordConvertIng(e){e?this.recordIndex=++window.modalTransferIndex:this.recordConvertSetting=!1},fullInput(e){var s;(s=this.quill)==null||s.enable(!e)},windowScrollY(e){this.fullInput&&e>0&&window.scrollTo(0,0)},keyboardShow(e){var s;!e&&this.isFocus&&(this.isFocus=!1,(s=this.quill)==null||s.blur())},selectRange(e){e!=null&&e.index&&(si[this.draftId]=e.index)}},methods:{init(){var s;this._options=Object.assign({theme:"bubble",bubbleTooltipTop:!0,formats:["bold","strike","italic","underline","blockquote","list","link","image","mention"],readOnly:!1,placeholder:this.placeholder,modules:{toolbar:!1,keyboard:this.simpleMode?{}:{bindings:{"enter-short":{key:"Enter",shortKey:!0,handler:t=>this.isEnterSend?!0:(this.onSend(),!1)},enter:{key:"Enter",shiftKey:!1,handler:t=>this.isEnterSend?(this.onSend(),!1):!0},esc:{key:"Escape",shiftKey:!1,handler:t=>this.emojiQuickShow?(this.emojiQuickShow=!1,!1):!0},"history-up":{key:38,handler:t=>this.navigateHistory("up",t)},"history-down":{key:40,handler:t=>this.navigateHistory("down",t)}}},selectionPlugin:{onTextSelected:t=>{this.$isEEUIApp||this.windowTouch||(this.selectedText=!!t.trim())},onSelectionCleared:()=>{this.selectedText=!1}},mention:this.quillMention()}},this.options),this.quill=new ie(this.$refs.editor,this._options),this.quill.enable(!this.disabled),this.value?this.setContent(this.value):this.loadInputDraft(),this.quill.on("selection-change",t=>{if(!!this.inputActivated()){if(t)this.selectRange=t;else if(this.selectRange&&document.activeElement&&/(ql-editor|ql-clipboard)/.test(document.activeElement.className)){this.selectTimer&&clearTimeout(this.selectTimer),this.selectTimer=setTimeout(i=>{this.quill.setSelection(this.selectRange.index,this.selectRange.length)},100);return}this.isFocus=!!t}}),this.quill.on("text-change",t=>{if(this.isFocus){const{index:i}=this.quill.getSelection();if(this.quill.getText(i-1,1)==="\r"){this.quill.insertText(i,`
-`),this.quill.deleteText(i-1,1);return}}this.textTimer?clearTimeout(this.textTimer):this.changeLoad++,this.textTimer=setTimeout(i=>{this.textTimer=null,this.changeLoad--,this.maxlength>0&&this.quill.getLength()>this.maxlength&&this.quill.deleteText(this.maxlength,this.quill.getLength());const n=this.$refs.editor.firstChild.innerHTML;this.updateEmojiQuick(n),this._content=n,this.$emit("input",this._content)},100)}),this.quill.clipboard.addMatcher(Node.ELEMENT_NODE,(t,i)=>(this.pasteClean&&(i.ops=i.ops.map(n=>{const r={insert:n.insert};return n.attributes&&["bold","strike","italic","underline","list","blockquote","link"].some(o=>{n.attributes[o]&&(typeof r.attributes=="undefined"&&(r.attributes={}),r.attributes[o]=n.attributes[o])}),r})),i)),this.quill.clipboard.addMatcher(["span.mention","a.mention"],(t,i)=>{if(!this.pasteClean)return i;const n=this.extractMentionData(t);return n===null?i:new wr([{insert:{mention:n}}])});const e=this.quill.getModule("toolbar");if((s=e==null?void 0:e.handlers)!=null&&s.link&&e.addHandler("link",t=>{t?$A.modalInput({title:"\u63D2\u5165\u94FE\u63A5",placeholder:"\u8BF7\u8F93\u5165\u5B8C\u6574\u7684\u94FE\u63A5\u5730\u5740",onOk:i=>{if(!i)return!1;this.quill.format("link",i)}}):this.quill.format("link",!1)}),this.$nextTick(t=>{this.$isEEUIApp&&this.cacheKeyboard.send_button_app==="enter"&&this.quill.root.setAttribute("enterkeyhint","send")}),this.$emit("on-ready",this.quill),!this.disabledRecord){const t=/^zh/.test(M)?"zh-CN":"en-US";$A.loadScriptS(["js/recorder/recorder.mp3.min.js","js/recorder/lib.fft.js","js/recorder/frequency.histogram.view.js",`js/recorder/i18n/${t}.js`]).then(i=>{typeof window.Recorder=="function"&&(window.Recorder.i18n.lang=t,this.recordRec=window.Recorder({type:"mp3",bitRate:64,sampleRate:32e3,audioTrackSet:{noiseSuppression:!0,echoCancellation:!0},disableEnvInFix:!1,onProcess:(n,r,o,a,l,c)=>{var d;(d=this.recordWave)==null||d.input(n[n.length-1],r,a),this.recordDuration=o,o>=3*60*1e3&&this.stopRecord(!1)}}),window.Recorder.Support()&&(this.recordReady=!0),window.systemInfo.debug!=="yes"&&(window.Recorder.CLog=function(){}))})}},quillMention(){return{allowedChars:/^\S*$/,mentionDenotationChars:["@","#","~","%","/"],defaultMenuOrientation:this.defaultMenuOrientation,isolateCharacter:!0,positioningStrategy:"fixed",dataAttributes:["tip"],renderItem:e=>{if(e.disabled===!0)return`${e.value}
`;const s=`${e.value}
`,t=e.tip?`${e.tip}
`:"";if(e.id===0)return`@
${s}${t}`;if(e.avatar){const i=e.bot?'
':"";return` ${i}${s}${t}`}return`${s}${t}`},renderLoading:()=>"Loading...",onSelect:function(e,s){var t;if(e.denotationChar==="/"&&e.tip){const i=this.mentionCharPos,n=this.cursorPos;if(typeof i=="number"&&typeof n=="number"&&n>=i&&(this.quill.deleteText(i,n-i,ie.sources.USER),this.quill.setSelection(i,0,ie.sources.USER)),["@","#","~","%"].includes(e.tip))this.openMenu(e.tip);else{const r=e.tip.endsWith(" ")?e.tip:`${e.tip} `,o=typeof i=="number"?i:((t=this.quill.getSelection(!0))==null?void 0:t.index)||0;this.quill.insertText(o,r,ie.sources.USER),this.quill.setSelection(o+r.length,0,ie.sources.USER)}return}s(e)},source:(e,s,t)=>{const i={"@":"user-mention","#":"task-mention","~":"file-mention","%":"report-mention","/":"slash-mention"},n=i[t]||"file-mention",r=document.getElementsByClassName("ql-mention-list-container");for(let a=0;a{const l=[];a.some(c=>{let d=c.list;e&&(d=d.filter(({id:h,value:u,key:p})=>/^\d+$/.test(e)&&h&&h==e?!0:$A.strExists(p||u,e))),d.length>0&&(c.label&&l.push(...c.label),l.push(...d))}),$A.jsonStringify(l.map(({id:c})=>c))!==o&&(o=$A.jsonStringify(l.map(({id:c})=>c)),s(l,e))})}}},extractMentionData(e){let s=e.getAttribute("data-denotation-char"),t=e.getAttribute("data-id")||e.getAttribute("href"),i=e.getAttribute("data-value");if(!s||!i){const r=(e.textContent||e.innerText||"").match(/^([@#~%])(.*)$/);r&&(s=s||r[1],i=i||r[2])}return!s||!t||!i?null:{denotationChar:s,id:t,value:i}},updateEmojiQuick(e){if(!this.isFocus||!e){this.emojiQuickShow=!1;return}this.emojiTimer&&clearTimeout(this.emojiTimer),this.emojiTimer=setTimeout(s=>{if(this.emojiTimer=null,/ ]+>/g,""),e&&e.indexOf(" ")===-1&&e.length>=1&&e.length<=8&&$A.isArray(window.emoticonData)){this.emojiQuickItems=[];const t=$A.mainUrl("images/emoticon");if(window.emoticonData.some(i=>{let n=0;if(i.list.some(r=>{const o=[r.name];if(r.key&&o.push(...`${r.key}`.split(" ")),o.includes(e)&&(this.emojiQuickItems.push(Object.assign(r,{type:"emoticon",asset:`images/emoticon/${i.path}/${r.path}`,name:r.name,src:`${t}/${i.path}/${r.path}`})),++n>=2))return!0}),this.emojiQuickItems.length>=20)return!0}),this.emojiQuickItems.length>0){this.$refs.emojiWrapper.$el.style.maxWidth=`${Math.min(500,this.$refs.inputWrapper.clientWidth)}px`,this.$nextTick(i=>{this.emojiQuickShow=!0,this.$refs.emojiQuickRef.updatePopper()});return}}this.emojiQuickShow=!1},100)},inputActivated(){return!this.fullInput&&ld(this._uid)},getEditor(){return this.fullInput?this.fullQuill:this.quill},getText(){return this.quill?`${this.quill.getText()}`.replace(/^\s+|\s+$/g,""):""},insertText(e){if(this.quill){const{index:s}=this.quill.getSelection(!0);this.quill.insertText(s,e)}},setText(e){this.quill&&this.quill.setText(e)},setContent(e){this.quill&&this.quill.setContents(this.quill.clipboard.convert({html:e}))},setPasteMode(e){this.pasteClean=e},loadInputDraft(){if(this.simpleMode||!this.draftData){this.$emit("input","");return}this.pasteClean=!1,this.$emit("input",this.draftData),this.$nextTick(e=>this.pasteClean=!0)},onClickEditor(){this.clearSearchKey(),this.updateEmojiQuick(this.value),!this.isFocus&&this.focus(),Qs(this._uid)},clearSearchKey(){this.$parent.$options.name==="DialogWrapper"&&(this.$store.state.messengerSearchKey.dialog!=""||this.$store.state.messengerSearchKey.contacts!="")&&setTimeout(e=>{this.$parent.onActive()},10),this.$store.state.messengerSearchKey={dialog:"",contacts:""}},focus(){this.$nextTick(()=>{var s;const e=this.getEditor();if(e){if(!((s=this.selectRange)!=null&&s.index)){const t=e.getLength();e.setSelection(Math.min(si[this.draftId]||t,t))}e.focus()}})},blur(){this.$nextTick(()=>{var e;(e=this.getEditor())==null||e.blur()})},clickSend(e,s){var t;if(!this.loading)switch(e){case"down":if(this.touchFocus=(t=this.quill)==null?void 0:t.hasFocus(),this.touchLimitX=!1,this.touchLimitY=!1,this.touchStart=s.type==="touchstart"?s.touches[0]:s,(s.button===void 0||s.button===0)&&this.startRecord())return;s.button===2&&this.onShowMenu();break;case"move":const i=s.type==="touchmove"?s.touches[0]:s;this.touchLimitX=(this.touchStart.clientX-i.clientX)/window.innerWidth>.1,this.touchLimitY=(this.touchStart.clientY-i.clientY)/window.innerHeight>.1;break;case"up":if(this.showMenu||this.stopRecord(this.touchLimitY,this.touchLimitX)||this.touchLimitY||this.touchLimitX)return;this.onSend();break;case"click":this.showMenu&&(this.tempHiddenSendTip(),this.showMenu=!1),this.touchFocus&&(this.quill.blur(),this.quill.focus());break}},onShowMenu(){this.sendClass==="recorder"||!this.sendMenu||(this.showMenu=!0)},onSend(e="auto"){this.emojiTimer&&clearTimeout(this.emojiTimer),this.emojiQuickShow=!1,setTimeout(s=>{if($A.filterInvalidLine(this.value)==="")return;this.hidePopover("send"),this.rangeIndex=0,this.clearSearchKey(),e==="auto"&&(e=Er(this.value)?"md":""),e==="normal"&&(e="");const t=this.value;this.persistInputHistory(t),e?this.$emit("on-send",null,e):this.$emit("on-send")},this.changeLoad>0?100:0)},startRecord(){return this.sendClass==="recorder"?(this.$store.dispatch("audioStop",!0),this.recordDuration=0,this.recordState="ready",this.$nextTick(e=>{this.recordRec.open(s=>{this.recordState==="ready"?(this.recordState="ing",this.recordBlob=null,setTimeout(t=>{this.recordState=="stop"?this.recordRec.close():this.recordRec.start()},300)):this.recordRec.close()},s=>{this.recordState="stop",$A.messageError(s||"\u6253\u5F00\u5F55\u97F3\u5931\u8D25")})}),!0):!1},stopRecord(e,s=!1){switch(this.recordState){case"ing":return this.recordState="stop",this.recordRec.stop((t,i)=>{this.recordRec.close(),e!==!0&&(i<600?$A.messageWarning("\u8BF4\u8BDD\u65F6\u95F4\u592A\u77ED"):(this.recordBlob=t,this.recordDuration=i,s===!0?(this.blur(),this.convertRecord()):this.uploadRecord()))},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 s;(s=this.quill)==null||s.focus()})},onTouchClick(e,s){var i;let t=s.getAttribute("data-action");switch(t==="children"&&(t=(i=e.target)==null?void 0:i.getAttribute("data-action")),t){case"cancel-quote":this.cancelQuote();break;case"record-convert-cancel":this.recordConvertIng=!1;break;case"record-convert-voice":this.convertSend("voice");break;case"record-convert-result":this.convertSend("result");break}},convertRecord(){if(this.recordBlob===null){this.recordConvertIng=!1;return}this.recordConvertResult="",this.recordConvertStatus=0,this.recordConvertIng=!0;const e=new FileReader;e.onloadend=()=>{this.$store.dispatch("call",{url:"dialog/msg/convertrecord",data:{dialog_id:this.dialogId,base64:e.result,duration:this.recordDuration,translate:this.recordConvertTranslate},method:"post"}).then(({data:s})=>{s?(this.recordConvertStatus=1,this.recordConvertResult=s,this.recordConvertSetting=!0):(this.recordConvertStatus=2,this.recordConvertResult=this.$L("\u8F6C\u6587\u5B57\u5931\u8D25"))}).catch(({msg:s})=>{this.recordConvertStatus=2,this.recordConvertResult=s})},e.readAsDataURL(this.recordBlob)},async convertSetting(e){if(this.recordConvertStatus!==1){$A.messageWarning("\u8BF7\u7A0D\u540E\u518D\u8BD5...");return}await this.$nextTick();const s=Object.keys(ve).map(t=>({label:ve[t],value:t}));s.unshift({label:this.$L("\u9009\u62E9\u7FFB\u8BD1\u7ED3\u679C"),value:"",disabled:!0},{label:this.$L("\u4E0D\u7FFB\u8BD1\u7ED3\u679C"),value:"",divided:!0}),this.$store.commit("menu/operation",{event:e,list:s,active:this.recordConvertTranslate,language:!1,onUpdate:t=>{this.recordConvertTranslate=t,this.convertRecord()}})},convertSend(e){!this.recordConvertIng||(e==="voice"?(this.uploadRecord(),this.recordConvertIng=!1):this.recordConvertStatus===1?(this.$emit("on-send",this.recordConvertResult),this.recordConvertIng=!1):this.recordConvertStatus===2&&this.convertRecord())},uploadRecord(){if(this.recordBlob===null)return;const e=new FileReader;e.onloadend=()=>{this.$emit("on-record",{type:this.recordBlob.type,base64:e.result,duration:this.recordDuration})},e.readAsDataURL(this.recordBlob)},onEmojiQuick(e){e.type==="online"?this.$emit("on-send",` `):this.$emit("on-send",` `),this.$emit("input",""),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.rangeLength=0,this.quill.setSelection(this.rangeIndex,0,"silent"),this.windowLandscape&&!this.isModKey&&(this.showEmoji=!1)):e.type==="emoticon"&&(this.$emit("on-send",` `),e.asset==="emosearch"&&this.$emit("input",""),this.windowLandscape&&!this.isModKey&&(this.showEmoji=!1)))},onEmojiDelete(){var s;if(!this.quill)return;const e=((s=this.quill.selection)==null?void 0:s.savedRange)||this.quill.getSelection();if(e&&typeof e.index=="number"&&(this.rangeIndex=e.index,this.rangeLength=e.length||0),this.rangeLength>0)this.quill.deleteText(this.rangeIndex,this.rangeLength),this.rangeLength=0;else if(this.rangeIndex>0){const t=this.getPreviousGraphemeLength(this.rangeIndex);t>0&&(this.quill.deleteText(this.rangeIndex-t,t),this.rangeIndex-=t)}this.quill.setSelection(this.rangeIndex,0,"silent")},getPreviousGraphemeLength(e){if(!this.quill||e<=0)return 0;const s=this.quill.getText(0,e);if(!s)return 0;if(typeof Intl!="undefined"&&typeof Intl.Segmenter=="function"){this.graphemeSegmenter||(this.graphemeSegmenter=new Intl.Segmenter(void 0,{granularity:"grapheme"}));let o;for(const a of this.graphemeSegmenter.segment(s))o=a;if(o&&o.segment)return o.segment.length}const t=Math.min(e,8),i=this.quill.getText(e-t,t);if(!i)return 0;const r=Array.from(i).pop();return r?r.length:0},onToolbar(e){switch(this.hidePopover(),e){case"user":this.openMenu("@");break;case"task":this.openMenu("#");break;case"ai":this.onMessageAI();break;case"maybe-photo":this.$emit("on-file",{type:"photo",msg:{type:"img",filename:this.maybePhotoData.original.name,path:this.maybePhotoData.original.path,width:this.maybePhotoData.original.width,height:this.maybePhotoData.original.height,thumb:this.maybePhotoData.thumbnail.base64}});break;case"meeting":x.emit("addMeeting",{type:"create",dialog_id:this.dialogId,userids:[this.userId]});break;case"full":this.onFullInput();break;case"image":case"file":case"call":case"anon":this.$emit("on-more",e);break;case"word-chain":this.$store.state.dialogDroupWordChain={type:"create",dialog_id:this.dialogId};break;case"vote":this.$store.state.dialogGroupVote={type:"create",dialog_id:this.dialogId};break}},onMessageAI(){if(!this.disabled){if(!this.dialogId){$A.messageWarning("\u5F53\u524D\u672A\u9009\u62E9\u4F1A\u8BDD");return}x.emit("openAIAssistant",{sessionKey:"chat-message",title:this.$L("AI \u6D88\u606F\u52A9\u624B"),placeholder:this.$L("\u8BF7\u7B80\u8981\u63CF\u8FF0\u6D88\u606F\u7684\u4E3B\u9898\u3001\u8BED\u6C14\u6216\u8981\u70B9\uFF0CAI \u5C06\u751F\u6210\u5B8C\u6574\u6D88\u606F"),onBeforeSend:this.handleMessageAIBeforeSend,onApply:this.handleMessageAIApply})}},handleMessageAIBeforeSend(e=[]){const s=[["system",fn(cd)]];let t=this.buildMessageAssistantContext();return t&&($A.getObject(e,[0,0])==="human"&&(t+=`
+${ud}`},hd=e=>{if(typeof e!="string")return[];const s=e.trim();if(s.startsWith("["))try{const i=JSON.parse(s);if(Array.isArray(i))return i.filter(n=>!(n!=null&&n.hidden)).map(n=>{var r,o,a,l;return{value:String((o=(r=n==null?void 0:n.id)!=null?r:n==null?void 0:n.value)!=null?o:"").trim(),label:String((l=(a=n==null?void 0:n.name)!=null?a:n==null?void 0:n.label)!=null?l:"").trim()}}).filter(n=>n.value).map(n=>({value:n.value,label:n.label||n.value}))}catch{}return e.split(`
+`).filter(i=>i.trim()).map(i=>{const[n,r]=i.split("|").map(o=>o.trim());return{value:n,label:r||n}},[]).filter(i=>i.value)},wv=e=>{if(!e)return null;const s=String(e).trim();if(!s)return null;const t=[s],i=s.match(/```(?:json)?\s*([\s\S]*?)```/i);i&&i[1]&&t.push(i[1].trim());const n=s.indexOf("{"),r=s.lastIndexOf("}");n!==-1&&r!==-1&&r>n&&t.push(s.slice(n,r+1));for(const o of t)if(!!o)try{return JSON.parse(o)}catch{}return null},ei=50,ti="chat-input-history";var pd={data(){return{historyList:[],historyIndex:0,historyCurrent:""}},methods:{refreshHistoryContext(){this.historyCurrent="",this.historyList=[],this.historyIndex=0,this.loadInputHistory()},async loadInputHistory(){try{const e=await $A.IDBValue(ti);Array.isArray(e)?this.historyList=e:e&&typeof e=="object"?this.historyList=Object.values(e).filter(s=>typeof s=="string"):this.historyList=[]}catch{this.historyList=[]}this.historyIndex=this.historyList.length},persistInputHistory(e){if(!e||$A.filterInvalidLine(e)==="")return;const s=Array.isArray(this.historyList)?[...this.historyList]:[];if(s[s.length-1]===e){this.historyIndex=s.length,this.historyCurrent="";return}const i=s.indexOf(e);i!==-1&&s.splice(i,1),s.push(e),s.length>ei&&s.splice(0,s.length-ei),this.historyList=s,this.historyIndex=s.length,this.historyCurrent="",$A.IDBSet(ti,s).catch(()=>{})},applyHistoryContent(e){!this.quill||(e?this.setContent(e):this.quill.setText(""),this._content=e||"",this.$emit("input",this._content),this.$nextTick(()=>{const s=this.quill.getLength();this.quill.setSelection(Math.max(s-1,0),0)}))},navigateHistory(e,s){if(!this.quill||!this.historyList.length||!s||s.length!==0)return!0;if(e==="up")return s.index>0?!0:(this.historyIndex===this.historyList.length&&(this.historyCurrent=this.value),this.historyIndex>0?this.historyIndex--:this.historyIndex=0,this.applyHistoryContent(this.historyList[this.historyIndex]||""),!1);if(e==="down"){const t=Math.max(this.quill.getLength()-1,0);return s.index0&&e.aiVisible?t("div",{staticClass:"chat-input-popover-item",on:{click:function(i){return e.onToolbar("ai")}}},[t("i",{staticClass:"taskfont"},[e._v("\uE8A1")]),t("em",[e._v(e._s(e.$L("AI \u751F\u6210")))])]):e._e(),t("div",{ref:"moreFull",staticClass:"chat-input-popover-item",on:{click:function(i){return e.onToolbar("full")}}},[t("i",{staticClass:"taskfont"},[e._v("\uE6A7")]),t("em",[e._v(e._s(e.$L("\u5168\u5C4F\u8F93\u5165")))])])],2)],1),t("li",{directives:[{name:"touchmouse",rawName:"v-touchmouse",value:e.clickSend,expression:"clickSend"},{name:"longpress",rawName:"v-longpress",value:e.onShowMenu,expression:"onShowMenu"}],ref:"chatSend",staticClass:"chat-send",class:e.sendClass},[t("EPopover",{ref:"menu",attrs:{visibleArrow:!1,trigger:"manual",placement:"top",popperClass:"chat-input-more-popover"},model:{value:e.showMenu,callback:function(i){e.showMenu=i},expression:"showMenu"}},[t("ETooltip",{ref:"sendTip",attrs:{slot:"reference",placement:"top",disabled:e.$isEEUIApp||e.windowTouch||e.showMenu,enterable:!1,content:e.$L(e.sendContent)},slot:"reference"},[e.loading?t("div",[t("div",{staticClass:"chat-load"},[t("Loading")],1)]):t("div",[t("transition",{attrs:{name:"mobile-send"}},[e.sendClass==="recorder"?t("i",{staticClass:"taskfont"},[e._v("\uE609")]):e._e()]),t("transition",{attrs:{name:"mobile-send"}},[e.sendClass!=="recorder"?t("i",{staticClass:"taskfont"},[e._v("\uE606")]):e._e()])],1)]),t("div",{staticClass:"chat-input-popover-item",on:{click:function(i){return e.onSend("silence")}}},[t("i",{staticClass:"taskfont"},[e._v("\uE7D7")]),t("em",[e._v(e._s(e.$L("\u65E0\u58F0\u53D1\u9001")))])]),t("div",{staticClass:"chat-input-popover-item",on:{click:function(i){return e.onSend("md")}}},[t("i",{staticClass:"taskfont"},[e._v("\uE647")]),t("em",[e._v(e._s(e.$L("MD \u683C\u5F0F\u53D1\u9001")))])]),t("div",{staticClass:"chat-input-popover-item",on:{click:function(i){return e.onSend("normal")}}},[t("i",{staticClass:"taskfont"},[e._v("\uE71B")]),t("em",[e._v(e._s(e.$L("\u666E\u901A\u683C\u5F0F\u53D1\u9001")))])])],1)],1)]),t("div",{staticClass:"chat-record",class:e.recordClassName},[t("div",{staticClass:"record-convert",on:{click:function(i){return e.stopRecord(!1,!0)}}},[t("i",{staticClass:"taskfont"},[e._v("\uE628")])]),t("div",{staticClass:"record-recwave"},[t("div",{ref:"recwave"})]),t("div",{staticClass:"record-remove",on:{click:function(i){return e.stopRecord(!0)}}},[t("i",{staticClass:"taskfont"},[e._v("\uE787")]),t("i",{staticClass:"taskfont"},[e._v("\uE702")])])]),t("div",{staticClass:"chat-cover",on:{click:function(i){return i.stopPropagation(),e.onClickCover.apply(null,arguments)}}})]),e.emojiBottom&&e.showEmoji?t("ChatEmoji",{attrs:{searchKey:e.emojiQuickKey,showEmojiDelete:""},on:{"on-select":e.onSelectEmoji,"on-delete":e.onEmojiDelete}}):e._e(),t("transition",{attrs:{name:"fade"}},[e.recordShow?t("div",{directives:[{name:"transfer-dom",rawName:"v-transfer-dom"}],staticClass:"chat-input-record-transfer",class:e.recordClassName,style:e.recordStyle,attrs:{"data-transfer":!0},on:{click:e.stopRecord}},[e.recordDuration>0?t("div",{staticClass:"record-duration"},[e._v(e._s(e.recordFormatDuration))]):t("div",{staticClass:"record-loading"},[t("Loading",{attrs:{type:"pure"}})],1),t("div",{staticClass:"record-cancel",on:{click:function(i){return i.stopPropagation(),e.stopRecord(!0)}}},[e._v(e._s(e.$L(e.recordFormatTip)))])]):e._e()]),t("transition",{attrs:{name:"fade"}},[e.recordConvertIng?t("div",{directives:[{name:"transfer-dom",rawName:"v-transfer-dom"}],staticClass:"chat-input-convert-transfer",style:e.recordConvertStyle,attrs:{"data-transfer":!0}},[t("div",{staticClass:"convert-box"},[t("div",{staticClass:"convert-body"},[t("div",{staticClass:"convert-content"},[e.recordConvertSetting?t("div",{staticClass:"convert-setting"},[t("i",{staticClass:"taskfont",class:{active:!!e.recordConvertTranslate},on:{click:function(i){return e.convertSetting(i)}}},[e._v("\uE795")])]):e._e(),t("div",{staticClass:"convert-input"},[t("Input",{staticClass:"convert-result no-dark-content",attrs:{type:"textarea",rows:1,autosize:{minRows:1,maxRows:5},placeholder:e.recordConvertStatus===0?"...":"",disabled:e.recordConvertStatus!==1},on:{"on-focus":function(i){e.recordConvertFocus=!0},"on-blur":function(i){e.recordConvertFocus=!1}},model:{value:e.recordConvertResult,callback:function(i){e.recordConvertResult=i},expression:"recordConvertResult"}})],1)])]),t("ul",{staticClass:"convert-footer",style:e.recordConvertFooterStyle},[t("li",{directives:[{name:"touchclick",rawName:"v-touchclick",value:e.onTouchClick,expression:"onTouchClick"}],attrs:{"data-action":"record-convert-cancel"}},[t("i",{staticClass:"taskfont"},[e._v("\uE637")]),t("span",[e._v(e._s(e.$L("\u53D6\u6D88")))])]),t("li",{directives:[{name:"touchclick",rawName:"v-touchclick",value:e.onTouchClick,expression:"onTouchClick"}],attrs:{"data-action":"record-convert-voice"}},[t("i",{staticClass:"taskfont voice"},[e._v("\uE793")]),t("span",[e._v(e._s(e.$L("\u53D1\u9001\u539F\u8BED\u97F3")))])]),t("li",{directives:[{name:"touchclick",rawName:"v-touchclick",value:e.onTouchClick,expression:"onTouchClick"}],attrs:{"data-action":"record-convert-result"}},[e.recordConvertStatus===0?t("i",{staticClass:"send"},[t("Loading")],1):e.recordConvertStatus===2?t("i",{staticClass:"taskfont error"},[e._v("\uE665")]):t("i",{staticClass:"taskfont send"},[e._v("\uE684")])])])])]):e._e()]),t("Modal",{attrs:{"mask-closable":!1,beforeClose:e.onFullBeforeClose,"class-name":"chat-input-full-input","footer-hide":"",fullscreen:""},model:{value:e.fullInput,callback:function(i){e.fullInput=i},expression:"fullInput"}},[t("div",{staticClass:"chat-input-box",style:e.chatInputBoxStyle},[t("div",{staticClass:"chat-input-wrapper"},[t("div",{ref:"editorFull",staticClass:"no-dark-content"})]),t("ul",{staticClass:"chat-input-menu",class:{activation:e.fullSelected}},e._l(e.tools,function(i,n){return t("li",{directives:[{name:"touchmouse",rawName:"v-touchmouse",value:e.onMenu,expression:"onMenu"}],key:n,attrs:{"data-label":i.label,"data-type":i.type}},[t("i",{staticClass:"taskfont",domProps:{innerHTML:e._s(i.icon)}})])}),0)]),t("i",{staticClass:"taskfont",attrs:{slot:"close"},slot:"close"},[e._v("\uE6AB")])])],1)},md=[];const si={},gd={name:"ChatInput",components:{ChatEmoji:un},directives:{touchmouse:nd,touchclick:rd,TransferDom:dn,clickoutside:hn,longpress:od},mixins:[pd],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},emojiBottom:{type:Boolean,default:!1},sendMenu:{type:Boolean,default:!0},simpleMode:{type:Boolean,default:!1},options:{type:Object,default:()=>({})},toolbar:{type:Array,default:()=>["bold","strike","italic","underline","blockquote","link",{list:"ordered"},{list:"bullet"},{list:"check"}]},maxlength:{type:Number},defaultMenuOrientation:{type:String,default:"top"},replyMsgAutoMention:{type:Boolean,default:!0}},data(){return{quill:null,isFocus:!1,rangeIndex:0,rangeLength:0,_content:"",_options:{},mentionMode:"",maybePhotoShow:!1,maybePhotoData:{},maybePhotoStyle:{},userList:null,userCache:null,taskList:null,taskSearchList:{},fileList:{},reportList:{},taskSearchKey:"",showMenu:!1,showMore:!1,showEmoji:!1,emojiQuickShow:!1,emojiQuickKey:"",emojiQuickItems:[],recordReady:!1,recordRec:null,recordBlob:null,recordWave:null,recordInter:null,recordState:"stop",recordDuration:0,recordIndex:window.modalTransferIndex,recordConvertIng:!1,recordConvertFocus:!1,recordConvertSetting:!1,recordConvertStatus:0,recordConvertResult:"",recordConvertTranslate:"",touchStart:{},touchFocus:!1,touchLimitX:!1,touchLimitY:!1,pasteClean:!0,changeLoad:0,isSpecVersion:this.checkIOSVersion(),emojiTimer:null,scrollTimer:null,textTimer:null,fileTimer:null,reportTimer:null,taskSearchTimer:null,moreTimer:null,selectTimer:null,selectRange:null,selectedText:!1,fullInput:!1,fullQuill:null,fullSelected:!1,fullSelection:null,tools:[{label:"bold",type:"",icon:""},{label:"strike",type:"",icon:""},{label:"italic",type:"",icon:""},{label:"underline",type:"",icon:""},{label:"blockquote",type:"",icon:""},{label:"link",type:"",icon:""},{label:"list",type:"ordered",icon:""},{label:"list",type:"bullet",icon:""},{label:"list",type:"unchecked",icon:""}],iOSDevices:$A.isIos()}},created(){Qs(this._uid)},mounted(){this.init(),this.refreshHistoryContext(),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,s)=>{e==="recordAudio"&&s===!1&&this.stopRecord(!0)}),$A.loadScript("js/emoticon.all.js")},beforeDestroy(){var e;pn(this._uid),this.quill&&((e=this.quill.getModule("mention"))==null||e.hideMentionList(),this.quill=null),this.recordRec&&(this.recordRec=null),this.recordConvertIng&&(this.recordConvertIng=!1),this.recordInter&&clearInterval(this.recordInter)},computed:{...B(["cacheProjects","cacheTasks","cacheUserBasic","cacheDialogs","dialogMsgs","cacheKeyboard","keyboardShow","keyboardHeight","isModKey","safeAreaSize","viewportHeight"]),...ye(["aiVisible","getDialogDraft","getDialogQuote"]),isEnterSend({cacheKeyboard:e}){return this.$isEEUIApp?e.send_button_app==="enter":e.send_button_desktop==="enter"},isAiBot({dialogData:e}){return!e.bot||e.type!=="user"?!1:/^ai-(.*?)@bot\.system/.test(e.email)},canCall(){return this.dialogData.type==="user"&&!this.dialogData.bot&&this.$isEEUIApp},canAnon(){return this.dialogData.type==="user"&&!this.dialogData.bot},recordShow(){const{recordState:e}=this;return["ready","ing"].includes(e)},recordStyle(){const{windowScrollY:e,recordIndex:s}=this,t={zIndex:s};return e>0&&(t.marginTop=e/2+"px"),t},recordConvertStyle(){const{recordIndex:e}=this;return{zIndex:e}},recordConvertFooterStyle(){const{recordConvertFocus:e,keyboardShow:s,keyboardHeight:t}=this;return e&&s&&t>120&&$A.isIos()?{alignItems:"flex-start",transform:"translateY(12px)"}:{}},boxClass(){const e=[];return this.recordShow&&(this.recordState==="ing"&&this.recordDuration>0?e.push("record-progress"):e.push("record-ready")),this.simpleMode&&e.push("simple-mode"),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 $A.filterInvalidLine(this.value)?"sender":this.recordReady?"recorder":""},sendContent(){return this.tempHiddenSendTip(),this.sendClass==="recorder"?"\u957F\u6309\u5F55\u97F3":"\u53D1\u9001"},recordFormatDuration(){const{recordDuration:e}=this;let s=Math.floor(e/6e4),t=Math.floor(e/1e3)%60,i=("00"+e%1e3).substr(-2);return s<10&&(s=`0${s}`),t<10&&(t=`0${t}`),`${s}:${t}\u2033${i}`},recordClassName({touchLimitX:e,touchLimitY:s}){return s?"cancel":e?"convert":""},recordFormatTip({touchLimitX:e,touchLimitY:s}){return s?"\u677E\u5F00\u53D6\u6D88":e?"\u8F6C\u6587\u5B57":"\u5411\u4E0A\u6ED1\u52A8\u53D6\u6D88"},dialogData(){return this.dialogId>0?this.cacheDialogs.find(({id:e})=>e==this.dialogId)||{}:{}},draftId(){return this.dialogId||`t_${this.taskId}`},draftData(){var e;return((e=this.getDialogDraft(this.draftId))==null?void 0:e.content)||""},quoteData(){var e;return((e=this.getDialogQuote(this.dialogId))==null?void 0:e.content)||null},quoteUpdate(){var e;return((e=this.getDialogQuote(this.dialogId))==null?void 0:e.type)==="update"},chatInputBoxStyle({iOSDevices:e,fullInput:s,keyboardShow:t,viewportHeight:i,safeAreaSize:n}){const r={};return e&&s&&t&&i>0&&$A.isIos()?r.height=Math.max(100,i-70-n.top)+"px":r.paddingBottom=`${n.bottom}px`,r}},watch:{value(e){this.quill&&(e&&e!==this._content?(this._content=e,this.setContent(e)):e||this.quill.setText("")),this.simpleMode||this.$store.dispatch("saveDialogDraft",{id:this.draftId,content:e})},disabled(e){var s;(s=this.quill)==null||s.enable(!e)},dialogId(){this.selectRange=null,this.userList=null,this.userCache=null,this.taskList=null,this.taskSearchList={},this.fileList={},this.reportList={},this.loadInputDraft(),this.refreshHistoryContext()},taskId(){this.selectRange=null,this.userList=null,this.userCache=null,this.taskList=null,this.taskSearchList={},this.fileList={},this.reportList={},this.loadInputDraft(),this.refreshHistoryContext()},draftData(){this.isFocus||this.loadInputDraft()},quoteData(){this.quoteChanged=!0},showMenu(e){e&&(this.showMore=!1,this.showEmoji=!1,this.emojiQuickShow=!1)},showMore(e){if(this.maybePhotoShow=!1,e){if(this.showMenu=!1,this.showEmoji=!1,this.emojiQuickShow=!1,this.isAiBot)return;$A.eeuiAppGetLatestPhoto().then(({thumbnail:s,original:t})=>{const i=Math.min(120,Math.max(100,this.$refs.moreFull.clientWidth));this.maybePhotoStyle={width:i+"px",height:i+"px",backgroundImage:`url(${s.base64})`},this.maybePhotoData={thumbnail:s,original:t},this.maybePhotoShow=!0,this.$nextTick(()=>{var n;(n=this.$refs.more)==null||n.updatePopper()})}).catch(s=>{})}},showEmoji(e){if(this.emojiBottom&&(e?this.quill.enable(!1):this.disabled||this.quill.enable(!0)),e){let s=this.value.replace(/ /g," ").replace(/<[^>]+>/g,"");if(s&&s.indexOf(" ")===-1&&s.length>=1&&s.length<=8?this.emojiQuickKey=s:this.emojiQuickKey="",this.showMenu=!1,this.showMore=!1,this.emojiQuickShow=!1,this.quill){const t=this.quill.selection.savedRange;this.rangeIndex=t?t.index:0,this.rangeLength=t?t.length:0}}else this.rangeLength=0,this.rangeIndex>0&&this.quill.setSelection(this.rangeIndex)},emojiQuickShow(e){e&&(this.showMenu=!1,this.showMore=!1,this.showEmoji=!1)},isFocus(e){this.scrollTimer&&clearInterval(this.scrollTimer),e?(this.$emit("on-focus"),this.hidePopover(),this.isSpecVersion||this.windowPortrait&&(this.scrollTimer=setInterval(()=>{var s;(s=this.quill)!=null&&s.hasFocus()?this.windowScrollY>0&&$A.scrollIntoViewIfNeeded(this.$refs.editor):clearInterval(this.scrollTimer)},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)},recordShow(e){e&&(this.recordIndex=++window.modalTransferIndex)},recordConvertIng(e){e?this.recordIndex=++window.modalTransferIndex:this.recordConvertSetting=!1},fullInput(e){var s;(s=this.quill)==null||s.enable(!e)},windowScrollY(e){this.fullInput&&e>0&&window.scrollTo(0,0)},keyboardShow(e){var s;!e&&this.isFocus&&(this.isFocus=!1,(s=this.quill)==null||s.blur())},selectRange(e){e!=null&&e.index&&(si[this.draftId]=e.index)}},methods:{init(){var s;this._options=Object.assign({theme:"bubble",bubbleTooltipTop:!0,formats:["bold","strike","italic","underline","blockquote","list","link","image","mention"],readOnly:!1,placeholder:this.placeholder,modules:{toolbar:!1,keyboard:this.simpleMode?{}:{bindings:{"enter-short":{key:"Enter",shortKey:!0,handler:t=>this.isEnterSend?!0:(this.onSend(),!1)},enter:{key:"Enter",shiftKey:!1,handler:t=>this.isEnterSend?(this.onSend(),!1):!0},esc:{key:"Escape",shiftKey:!1,handler:t=>this.emojiQuickShow?(this.emojiQuickShow=!1,!1):!0},"history-up":{key:38,handler:t=>this.navigateHistory("up",t)},"history-down":{key:40,handler:t=>this.navigateHistory("down",t)}}},selectionPlugin:{onTextSelected:t=>{this.$isEEUIApp||this.windowTouch||(this.selectedText=!!t.trim())},onSelectionCleared:()=>{this.selectedText=!1}},mention:this.quillMention()}},this.options),this.quill=new ie(this.$refs.editor,this._options),this.quill.enable(!this.disabled),this.value?this.setContent(this.value):this.loadInputDraft(),this.quill.on("selection-change",t=>{if(!!this.inputActivated()){if(t)this.selectRange=t;else if(this.selectRange&&document.activeElement&&/(ql-editor|ql-clipboard)/.test(document.activeElement.className)){this.selectTimer&&clearTimeout(this.selectTimer),this.selectTimer=setTimeout(i=>{this.quill.setSelection(this.selectRange.index,this.selectRange.length)},100);return}this.isFocus=!!t}}),this.quill.on("text-change",t=>{if(this.isFocus){const{index:i}=this.quill.getSelection();if(this.quill.getText(i-1,1)==="\r"){this.quill.insertText(i,`
+`),this.quill.deleteText(i-1,1);return}}this.textTimer?clearTimeout(this.textTimer):this.changeLoad++,this.textTimer=setTimeout(i=>{this.textTimer=null,this.changeLoad--,this.maxlength>0&&this.quill.getLength()>this.maxlength&&this.quill.deleteText(this.maxlength,this.quill.getLength());const n=this.$refs.editor.firstChild.innerHTML;this.updateEmojiQuick(n),this._content=n,this.$emit("input",this._content)},100)}),this.quill.clipboard.addMatcher(Node.ELEMENT_NODE,(t,i)=>(this.pasteClean&&(i.ops=i.ops.map(n=>{const r={insert:n.insert};return n.attributes&&["bold","strike","italic","underline","list","blockquote","link"].some(o=>{n.attributes[o]&&(typeof r.attributes=="undefined"&&(r.attributes={}),r.attributes[o]=n.attributes[o])}),r})),i)),this.quill.clipboard.addMatcher(["span.mention","a.mention"],(t,i)=>{if(!this.pasteClean)return i;const n=this.extractMentionData(t);return n===null?i:new yr([{insert:{mention:n}}])});const e=this.quill.getModule("toolbar");if((s=e==null?void 0:e.handlers)!=null&&s.link&&e.addHandler("link",t=>{t?$A.modalInput({title:"\u63D2\u5165\u94FE\u63A5",placeholder:"\u8BF7\u8F93\u5165\u5B8C\u6574\u7684\u94FE\u63A5\u5730\u5740",onOk:i=>{if(!i)return!1;this.quill.format("link",i)}}):this.quill.format("link",!1)}),this.$nextTick(t=>{this.$isEEUIApp&&this.cacheKeyboard.send_button_app==="enter"&&this.quill.root.setAttribute("enterkeyhint","send")}),this.$emit("on-ready",this.quill),!this.disabledRecord){const t=/^zh/.test(M)?"zh-CN":"en-US";$A.loadScriptS(["js/recorder/recorder.mp3.min.js","js/recorder/lib.fft.js","js/recorder/frequency.histogram.view.js",`js/recorder/i18n/${t}.js`]).then(i=>{typeof window.Recorder=="function"&&(window.Recorder.i18n.lang=t,this.recordRec=window.Recorder({type:"mp3",bitRate:64,sampleRate:32e3,audioTrackSet:{noiseSuppression:!0,echoCancellation:!0},disableEnvInFix:!1,onProcess:(n,r,o,a,l,c)=>{var d;(d=this.recordWave)==null||d.input(n[n.length-1],r,a),this.recordDuration=o,o>=3*60*1e3&&this.stopRecord(!1)}}),window.Recorder.Support()&&(this.recordReady=!0),window.systemInfo.debug!=="yes"&&(window.Recorder.CLog=function(){}))})}},quillMention(){return{allowedChars:/^\S*$/,mentionDenotationChars:["@","#","~","%","/"],defaultMenuOrientation:this.defaultMenuOrientation,isolateCharacter:!0,positioningStrategy:"fixed",dataAttributes:["tip"],renderItem:e=>{if(e.disabled===!0)return`${e.value}
`;const s=`${e.value}
`,t=e.tip?`${e.tip}
`:"";if(e.id===0)return`@
${s}${t}`;if(e.avatar){const i=e.bot?'
':"";return` ${i}${s}${t}`}return`${s}${t}`},renderLoading:()=>"Loading...",onSelect:function(e,s){var t;if(e.denotationChar==="/"&&e.tip){const i=this.mentionCharPos,n=this.cursorPos;if(typeof i=="number"&&typeof n=="number"&&n>=i&&(this.quill.deleteText(i,n-i,ie.sources.USER),this.quill.setSelection(i,0,ie.sources.USER)),["@","#","~","%"].includes(e.tip))this.openMenu(e.tip);else{const r=e.tip.endsWith(" ")?e.tip:`${e.tip} `,o=typeof i=="number"?i:((t=this.quill.getSelection(!0))==null?void 0:t.index)||0;this.quill.insertText(o,r,ie.sources.USER),this.quill.setSelection(o+r.length,0,ie.sources.USER)}return}s(e)},source:(e,s,t)=>{const i={"@":"user-mention","#":"task-mention","~":"file-mention","%":"report-mention","/":"slash-mention"},n=i[t]||"file-mention",r=document.getElementsByClassName("ql-mention-list-container");for(let a=0;a{const l=[];a.some(c=>{let d=c.list;e&&(d=d.filter(({id:h,value:u,key:p})=>/^\d+$/.test(e)&&h&&h==e?!0:$A.strExists(p||u,e))),d.length>0&&(c.label&&l.push(...c.label),l.push(...d))}),$A.jsonStringify(l.map(({id:c})=>c))!==o&&(o=$A.jsonStringify(l.map(({id:c})=>c)),s(l,e))})}}},extractMentionData(e){let s=e.getAttribute("data-denotation-char"),t=e.getAttribute("data-id")||e.getAttribute("href"),i=e.getAttribute("data-value");if(!s||!i){const r=(e.textContent||e.innerText||"").match(/^([@#~%])(.*)$/);r&&(s=s||r[1],i=i||r[2])}return!s||!t||!i?null:{denotationChar:s,id:t,value:i}},updateEmojiQuick(e){if(!this.isFocus||!e){this.emojiQuickShow=!1;return}this.emojiTimer&&clearTimeout(this.emojiTimer),this.emojiTimer=setTimeout(s=>{if(this.emojiTimer=null,/ ]+>/g,""),e&&e.indexOf(" ")===-1&&e.length>=1&&e.length<=8&&$A.isArray(window.emoticonData)){this.emojiQuickItems=[];const t=$A.mainUrl("images/emoticon");if(window.emoticonData.some(i=>{let n=0;if(i.list.some(r=>{const o=[r.name];if(r.key&&o.push(...`${r.key}`.split(" ")),o.includes(e)&&(this.emojiQuickItems.push(Object.assign(r,{type:"emoticon",asset:`images/emoticon/${i.path}/${r.path}`,name:r.name,src:`${t}/${i.path}/${r.path}`})),++n>=2))return!0}),this.emojiQuickItems.length>=20)return!0}),this.emojiQuickItems.length>0){this.$refs.emojiWrapper.$el.style.maxWidth=`${Math.min(500,this.$refs.inputWrapper.clientWidth)}px`,this.$nextTick(i=>{this.emojiQuickShow=!0,this.$refs.emojiQuickRef.updatePopper()});return}}this.emojiQuickShow=!1},100)},inputActivated(){return!this.fullInput&&ad(this._uid)},getEditor(){return this.fullInput?this.fullQuill:this.quill},getText(){return this.quill?`${this.quill.getText()}`.replace(/^\s+|\s+$/g,""):""},insertText(e){if(this.quill){const{index:s}=this.quill.getSelection(!0);this.quill.insertText(s,e)}},setText(e){this.quill&&this.quill.setText(e)},setContent(e){this.quill&&this.quill.setContents(this.quill.clipboard.convert({html:e}))},setPasteMode(e){this.pasteClean=e},loadInputDraft(){if(this.simpleMode||!this.draftData){this.$emit("input","");return}this.pasteClean=!1,this.$emit("input",this.draftData),this.$nextTick(e=>this.pasteClean=!0)},onClickEditor(){this.clearSearchKey(),this.updateEmojiQuick(this.value),!this.isFocus&&this.focus(),Qs(this._uid)},clearSearchKey(){this.$parent.$options.name==="DialogWrapper"&&(this.$store.state.messengerSearchKey.dialog!=""||this.$store.state.messengerSearchKey.contacts!="")&&setTimeout(e=>{this.$parent.onActive()},10),this.$store.state.messengerSearchKey={dialog:"",contacts:""}},focus(){this.$nextTick(()=>{var s;const e=this.getEditor();if(e){if(!((s=this.selectRange)!=null&&s.index)){const t=e.getLength();e.setSelection(Math.min(si[this.draftId]||t,t))}e.focus()}})},blur(){this.$nextTick(()=>{var e;(e=this.getEditor())==null||e.blur()})},clickSend(e,s){var t;if(!this.loading)switch(e){case"down":if(this.touchFocus=(t=this.quill)==null?void 0:t.hasFocus(),this.touchLimitX=!1,this.touchLimitY=!1,this.touchStart=s.type==="touchstart"?s.touches[0]:s,(s.button===void 0||s.button===0)&&this.startRecord())return;s.button===2&&this.onShowMenu();break;case"move":const i=s.type==="touchmove"?s.touches[0]:s;this.touchLimitX=(this.touchStart.clientX-i.clientX)/window.innerWidth>.1,this.touchLimitY=(this.touchStart.clientY-i.clientY)/window.innerHeight>.1;break;case"up":if(this.showMenu||this.stopRecord(this.touchLimitY,this.touchLimitX)||this.touchLimitY||this.touchLimitX)return;this.onSend();break;case"click":this.showMenu&&(this.tempHiddenSendTip(),this.showMenu=!1),this.touchFocus&&(this.quill.blur(),this.quill.focus());break}},onShowMenu(){this.sendClass==="recorder"||!this.sendMenu||(this.showMenu=!0)},onSend(e="auto"){this.emojiTimer&&clearTimeout(this.emojiTimer),this.emojiQuickShow=!1,setTimeout(s=>{if($A.filterInvalidLine(this.value)==="")return;this.hidePopover("send"),this.rangeIndex=0,this.clearSearchKey(),e==="auto"&&(e=Dr(this.value)?"md":""),e==="normal"&&(e="");const t=this.value;this.persistInputHistory(t),e?this.$emit("on-send",null,e):this.$emit("on-send")},this.changeLoad>0?100:0)},startRecord(){return this.sendClass==="recorder"?(this.$store.dispatch("audioStop",!0),this.recordDuration=0,this.recordState="ready",this.$nextTick(e=>{this.recordRec.open(s=>{this.recordState==="ready"?(this.recordState="ing",this.recordBlob=null,setTimeout(t=>{this.recordState=="stop"?this.recordRec.close():this.recordRec.start()},300)):this.recordRec.close()},s=>{this.recordState="stop",$A.messageError(s||"\u6253\u5F00\u5F55\u97F3\u5931\u8D25")})}),!0):!1},stopRecord(e,s=!1){switch(this.recordState){case"ing":return this.recordState="stop",this.recordRec.stop((t,i)=>{this.recordRec.close(),e!==!0&&(i<600?$A.messageWarning("\u8BF4\u8BDD\u65F6\u95F4\u592A\u77ED"):(this.recordBlob=t,this.recordDuration=i,s===!0?(this.blur(),this.convertRecord()):this.uploadRecord()))},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 s;(s=this.quill)==null||s.focus()})},onTouchClick(e,s){var i;let t=s.getAttribute("data-action");switch(t==="children"&&(t=(i=e.target)==null?void 0:i.getAttribute("data-action")),t){case"cancel-quote":this.cancelQuote();break;case"record-convert-cancel":this.recordConvertIng=!1;break;case"record-convert-voice":this.convertSend("voice");break;case"record-convert-result":this.convertSend("result");break}},convertRecord(){if(this.recordBlob===null){this.recordConvertIng=!1;return}this.recordConvertResult="",this.recordConvertStatus=0,this.recordConvertIng=!0;const e=new FileReader;e.onloadend=()=>{this.$store.dispatch("call",{url:"dialog/msg/convertrecord",data:{dialog_id:this.dialogId,base64:e.result,duration:this.recordDuration,translate:this.recordConvertTranslate},method:"post"}).then(({data:s})=>{s?(this.recordConvertStatus=1,this.recordConvertResult=s,this.recordConvertSetting=!0):(this.recordConvertStatus=2,this.recordConvertResult=this.$L("\u8F6C\u6587\u5B57\u5931\u8D25"))}).catch(({msg:s})=>{this.recordConvertStatus=2,this.recordConvertResult=s})},e.readAsDataURL(this.recordBlob)},async convertSetting(e){if(this.recordConvertStatus!==1){$A.messageWarning("\u8BF7\u7A0D\u540E\u518D\u8BD5...");return}await this.$nextTick();const s=Object.keys(ve).map(t=>({label:ve[t],value:t}));s.unshift({label:this.$L("\u9009\u62E9\u7FFB\u8BD1\u7ED3\u679C"),value:"",disabled:!0},{label:this.$L("\u4E0D\u7FFB\u8BD1\u7ED3\u679C"),value:"",divided:!0}),this.$store.commit("menu/operation",{event:e,list:s,active:this.recordConvertTranslate,language:!1,onUpdate:t=>{this.recordConvertTranslate=t,this.convertRecord()}})},convertSend(e){!this.recordConvertIng||(e==="voice"?(this.uploadRecord(),this.recordConvertIng=!1):this.recordConvertStatus===1?(this.$emit("on-send",this.recordConvertResult),this.recordConvertIng=!1):this.recordConvertStatus===2&&this.convertRecord())},uploadRecord(){if(this.recordBlob===null)return;const e=new FileReader;e.onloadend=()=>{this.$emit("on-record",{type:this.recordBlob.type,base64:e.result,duration:this.recordDuration})},e.readAsDataURL(this.recordBlob)},onEmojiQuick(e){e.type==="online"?this.$emit("on-send",` `):this.$emit("on-send",` `),this.$emit("input",""),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.rangeLength=0,this.quill.setSelection(this.rangeIndex,0,"silent"),this.windowLandscape&&!this.isModKey&&(this.showEmoji=!1)):e.type==="emoticon"&&(this.$emit("on-send",` `),e.asset==="emosearch"&&this.$emit("input",""),this.windowLandscape&&!this.isModKey&&(this.showEmoji=!1)))},onEmojiDelete(){var s;if(!this.quill)return;const e=((s=this.quill.selection)==null?void 0:s.savedRange)||this.quill.getSelection();if(e&&typeof e.index=="number"&&(this.rangeIndex=e.index,this.rangeLength=e.length||0),this.rangeLength>0)this.quill.deleteText(this.rangeIndex,this.rangeLength),this.rangeLength=0;else if(this.rangeIndex>0){const t=this.getPreviousGraphemeLength(this.rangeIndex);t>0&&(this.quill.deleteText(this.rangeIndex-t,t),this.rangeIndex-=t)}this.quill.setSelection(this.rangeIndex,0,"silent")},getPreviousGraphemeLength(e){if(!this.quill||e<=0)return 0;const s=this.quill.getText(0,e);if(!s)return 0;if(typeof Intl!="undefined"&&typeof Intl.Segmenter=="function"){this.graphemeSegmenter||(this.graphemeSegmenter=new Intl.Segmenter(void 0,{granularity:"grapheme"}));let o;for(const a of this.graphemeSegmenter.segment(s))o=a;if(o&&o.segment)return o.segment.length}const t=Math.min(e,8),i=this.quill.getText(e-t,t);if(!i)return 0;const r=Array.from(i).pop();return r?r.length:0},onToolbar(e){switch(this.hidePopover(),e){case"user":this.openMenu("@");break;case"task":this.openMenu("#");break;case"ai":this.onMessageAI();break;case"maybe-photo":this.$emit("on-file",{type:"photo",msg:{type:"img",filename:this.maybePhotoData.original.name,path:this.maybePhotoData.original.path,width:this.maybePhotoData.original.width,height:this.maybePhotoData.original.height,thumb:this.maybePhotoData.thumbnail.base64}});break;case"meeting":x.emit("addMeeting",{type:"create",dialog_id:this.dialogId,userids:[this.userId]});break;case"full":this.onFullInput();break;case"image":case"file":case"call":case"anon":this.$emit("on-more",e);break;case"word-chain":this.$store.state.dialogDroupWordChain={type:"create",dialog_id:this.dialogId};break;case"vote":this.$store.state.dialogGroupVote={type:"create",dialog_id:this.dialogId};break}},onMessageAI(){if(!this.disabled){if(!this.dialogId){$A.messageWarning("\u5F53\u524D\u672A\u9009\u62E9\u4F1A\u8BDD");return}x.emit("openAIAssistant",{sessionKey:"chat-message",title:this.$L("AI \u6D88\u606F\u52A9\u624B"),placeholder:this.$L("\u8BF7\u7B80\u8981\u63CF\u8FF0\u6D88\u606F\u7684\u4E3B\u9898\u3001\u8BED\u6C14\u6216\u8981\u70B9\uFF0CAI \u5C06\u751F\u6210\u5B8C\u6574\u6D88\u606F"),onBeforeSend:this.handleMessageAIBeforeSend,onApply:this.handleMessageAIApply})}},handleMessageAIBeforeSend(e=[]){const s=[["system",fn(ld)]];let t=this.buildMessageAssistantContext();return t&&($A.getObject(e,[0,0])==="human"&&(t+=`
----
\u8BF7\u6839\u636E\u4EE5\u4E0A\u4FE1\u606F\uFF0C\u7ED3\u5408\u4EE5\u4E0B\u7528\u6237\u8F93\u5165\u7684\u5185\u5BB9\u751F\u6210\u6D88\u606F\uFF1A++++`),s.push(["human",t])),e.length>0&&s.push(...e),s},handleMessageAIApply({rawOutput:e}){if(!e){$A.messageWarning("AI \u672A\u751F\u6210\u5185\u5BB9");return}const s=Pt(e);this.$emit("input",s),this.$nextTick(()=>this.focus())},buildMessageAssistantContext(){var r,o,a;const e=[],s=[];if((r=this.dialogData)!=null&&r.name&&s.push(`\u540D\u79F0\uFF1A${Le(this.dialogData.name,60)}`),(o=this.dialogData)!=null&&o.type){const l={group:this.$L("\u7FA4\u804A"),user:this.$L("\u5355\u804A")};s.push(`\u7C7B\u578B\uFF1A${l[this.dialogData.type]||this.dialogData.type}`)}(a=this.dialogData)!=null&&a.group_type&&s.push(`\u5206\u7C7B\uFF1A${Le(this.dialogData.group_type,60)}`),s.length&&(e.push("## \u4F1A\u8BDD\u4FE1\u606F"),e.push(...s));const t=this.collectDialogMemberNames();t.length&&(e.push("## \u4F1A\u8BDD\u6210\u5458"),e.push(t.join("\uFF0C")));const i=this.collectRecentMessages();if(i.length&&(e.push("## \u6700\u8FD1\u6D88\u606F"),i.forEach(({sender:l,summary:c})=>{if(c){const d=l||this.$L("\u6210\u5458");e.push(`- ${d}\uFF1A${c}`)}})),this.quoteData){const l=this.getMessageSummaryText(this.quoteData);if(l){e.push("## \u5F15\u7528\u6D88\u606F");const c=this.resolveUserNickname(this.quoteData.userid);e.push(c?`${c}\uFF1A${l}`:l)}}const n=Xs(this.value,500);return n&&(e.push("## \u5F53\u524D\u8349\u7A3F"),e.push(n)),e.join(`
`)},collectDialogMemberNames(e=10){var o,a,l,c;if(!this.dialogId)return[];const s=[],t=new Set,i=d=>{const h=Le((d||"").trim(),30);!h||t.has(h)||(t.add(h),s.push(h))};(o=this.dialogData)!=null&&o.dialog_user&&i(this.dialogData.dialog_user.nickname||this.dialogData.dialog_user.name);const n=this.dialogMsgs.filter(d=>d.dialog_id==this.dialogId);for(let d=n.length-1;d>=0&&s.lengthn.dialog_id==this.dialogId);if(s.length===0)return[];const t=s.slice().sort((n,r)=>n.id-r.id),i=[];for(let n=t.length-1;n>=0&&i.lengtho.userid==e);return t?t.nickname||t.name||t.username||"":((r=this.dialogData)==null?void 0:r.dialog_user)&&this.dialogData.dialog_user.userid==e&&(this.dialogData.dialog_user.nickname||this.dialogData.dialog_user.name)||""},onFullInput(){this.disabled||(this.fullInput=!this.fullInput,this.fullInput&&this.$nextTick(e=>{this.fullQuill=new ie(this.$refs.editorFull,Object.assign({theme:"bubble",readOnly:!1,placeholder:this.placeholder,modules:{toolbar:!1,selectionPlugin:{onTextSelected:s=>{this.fullSelected=!!s.trim()},onSelectionCleared:()=>{this.fullSelected=!1}},mention:this.quillMention()}},this.options)),this.fullQuill.on("selection-change",s=>{s?this.fullSelection=s:this.fullSelection&&document.activeElement&&/(ql-editor|ql-clipboard)/.test(document.activeElement.className)&&(this.selectTimer&&clearTimeout(this.selectTimer),this.selectTimer=setTimeout(t=>{this.fullQuill.setSelection(this.fullSelection.index,this.fullSelection.length)},100))}),this.fullQuill.enable(!0),this.$refs.editorFull.firstChild.innerHTML=this.$refs.editor.firstChild.innerHTML,this.$nextTick(s=>{this.fullQuill.setSelection(this.fullQuill.getLength()),this.fullQuill.focus()})}))},onFullBeforeClose(){return new Promise(e=>{var s;(s=this.$refs.editorFull)!=null&&s.firstChild&&(this.$refs.editor.firstChild.innerHTML=this.$refs.editorFull.firstChild.innerHTML),e()})},onMenu(e,s,t){if(e!=="up")return;const i=this.getEditor(),{length:n}=i.getSelection(!0);if(n===0){$A.messageWarning("\u8BF7\u9009\u62E9\u6587\u5B57\u540E\u518D\u64CD\u4F5C");return}switch(t.getAttribute("data-label")){case"bold":i.format("bold",!i.getFormat().bold);break;case"strike":i.format("strike",!i.getFormat().strike);break;case"italic":i.format("italic",!i.getFormat().italic);break;case"underline":i.format("underline",!i.getFormat().underline);break;case"blockquote":i.format("blockquote",!i.getFormat().blockquote);break;case"link":if(i.getFormat().link){i.format("link",!1);return}$A.modalInput({title:"\u63D2\u5165\u94FE\u63A5",placeholder:"\u8BF7\u8F93\u5165\u5B8C\u6574\u7684\u94FE\u63A5\u5730\u5740",onOk:a=>{if(!a)return!1;i.format("link",a)}});break;case"list":const o=t.getAttribute("data-type")||"";i.format("list",i.getFormat().list===o?!1:o);break}},setQuote(e,s="reply"){if(this.dialogId<=0)return;const t=this.dialogMsgs.find(i=>i.id==e&&i.dialog_id==this.dialogId);if(!t){this.$store.dispatch("removeDialogQuote",this.dialogId);return}this.$store.dispatch("saveDialogQuote",{id:this.dialogId,type:s==="update"?"update":"reply",content:t})},cancelQuote(){if(this.quoteUpdate)this.$emit("input","");else if(this.quoteData){const{firstChild:e}=this.$refs.editor;if(e&&e.querySelectorAll("img").length===0){const s=e.querySelectorAll("span.mention");if(s.length===1){const t=s[0];if(t.getAttribute("data-id")==this.quoteData.userid){const i=t.parentNode;i.normalize(),Array.from(i.childNodes).filter(r=>r.nodeType!==Node.TEXT_NODE||!/^\s*$/.test(r.textContent)).length===1&&t.remove()}}e.innerText.replace(/\s/g,"")||this.$emit("input","")}}this.setQuote(0)},onQuoteUserResult(e){var s;!this.quoteChanged||(this.quoteChanged=!1,!(this.dialogData.type!=="group"||this.quoteUpdate||!this.quoteData||!this.replyMsgAutoMention||e.userid===-1||this.userId===e.userid||this.quoteData.userid!==e.userid)&&(new RegExp(`]+?class="mention"[^>]+?data-id="${e.userid}"[^>]*?>`).test((s=this.$refs.editor.firstChild)==null?void 0:s.innerHTML)||this.addMention({denotationChar:"@",id:e.userid,value:e.nickname})))},onSpaceInputFocus(){var e;this.selectRange&&((e=this.quill)==null||e.setSelection(this.selectRange.index,this.selectRange.length))},openMenu(e){if(!!this.quill)if(this.value.length===0||this.value.endsWith("
"))this.quill.getModule("mention").openMenu(e);else{let s=this.value.replace(/<[^>]+>/g,"");s.length===0||s.endsWith(" ")?this.quill.getModule("mention").openMenu(e):this.quill.getModule("mention").openMenu(` ${e}`)}},addMention(e){if(!this.quill||!this.inputActivated())return;const{index:s}=this.quill.getSelection(!0);this.quill.insertEmbed(s,"mention",e,ie.sources.USER),this.quill.insertText(s+1," ",ie.sources.USER),this.quill.setSelection(s+2,ie.sources.USER)},getProjectId(){let e=null;if(this.dialogId>0){if(e=this.cacheProjects.find(({dialog_id:s})=>s==this.dialogId),e)return e.id;if(e=this.cacheTasks.find(({dialog_id:s})=>s==this.dialogId),e)return e.project_id}else if(this.taskId>0&&(e=this.cacheTasks.find(({id:s})=>s==this.taskId),e))return e.project_id;return 0},getMentionSource(e,s,t){switch(e){case"@":this.mentionMode="user-mention";const i=_=>{this.getMoreUser(s,_.map(v=>v.id)).then(v=>{let y=this.cacheDialogs.filter((w,b)=>w.type=="user"&&w.bot==0&&w.last_at);y.sort((w,b)=>w.last_at>b.last_at?-1:w.last_atb<5),v.forEach(w=>{w.last_at="1990-01-01 00:00:00",y.forEach(b=>{var C;((C=b.dialog_user)==null?void 0:C.userid)==w.id&&(w.last_at=b.last_at)})}),v.sort((w,b)=>w.last_at>b.last_at?-1:w.last_at0?(_.length>2&&this.userCache.push({label:null,list:[{id:0,value:this.$L("\u6240\u6709\u4EBA.All"),tip:""}]}),this.userCache.push({label:[{id:0,value:this.$L("\u7FA4\u5185\u6210\u5458"),className:"sticky-top",disabled:!0}],list:_},{label:[{id:0,value:this.$L("\u7FA4\u5916\u6210\u5458"),className:"sticky-top",disabled:!0}],list:v})):_.length>2?this.userCache.push({label:null,list:[{id:0,value:this.$L("\u6240\u6709\u4EBA.All"),tip:""}]},{label:[{id:0,value:this.$L("\u7FA4\u6210\u5458"),className:"sticky-top",disabled:!0}],list:_}):this.userCache.push({label:null,list:_}),t(this.userCache)})};if(this.dialogData.people&&$A.arrayLength(this.userList)!==this.dialogData.people&&(this.userList=null,this.userCache=null),this.userCache!==null&&t(this.userCache),this.userList!==null){i(this.userList);return}const n=[];if(this.dialogId>0)this.$store.dispatch("call",{url:"dialog/user",data:{dialog_id:this.dialogId,getuser:1}}).then(({data:_})=>{this.cacheDialogs.find(({id:v})=>v==this.dialogId)&&this.$store.dispatch("saveDialog",{id:this.dialogId,people:_.length,people_user:_.filter(v=>!v.bot).length,people_bot:_.filter(v=>v.bot).length}),_.length>0&&n.push(..._.map(v=>({id:v.userid,value:v.nickname,avatar:v.userimg,online:v.online,bot:v.bot,key:`${v.nickname} ${v.email} ${v.pinyin}`}))),i(n)}).catch(_=>{i(n)});else if(this.taskId>0){const _=this.cacheTasks.find(({id:v})=>v==this.taskId);_&&$A.isArray(_.task_user)&&_.task_user.some(v=>{const y=this.cacheUserBasic.find(({userid:w})=>w==v.userid);y&&n.push({id:y.userid,value:y.nickname,avatar:y.userimg,online:y.online,bot:y.bot,key:`${y.nickname} ${y.email} ${y.pinyin}`})}),i(n)}break;case"#":this.mentionMode="task-mention";const r=(s||"").trim();this.taskSearchKey=r;const o=_=>{const v=Array.isArray(_)?_:[];if(!r)return v;const y=Array.isArray(this.taskSearchList[r])?this.taskSearchList[r]:[];if(y.length===0)return v;const w=new Set;v.forEach(C=>{(C.list||[]).forEach(U=>w.add(U.id))});const b=[];return y.forEach(C=>{w.has(C.id)||(w.add(C.id),b.push({id:C.id,value:C.name,tip:C.complete_at?this.$L("\u5DF2\u5B8C\u6210"):null}))}),b.length===0?v:[...v,{label:[{id:0,value:this.$L("\u5176\u4ED6\u4EFB\u52A1"),className:"sticky-top",disabled:!0}],list:b}]},a=_=>t(o(_||[]));if(this.taskList!==null)a(this.taskList);else{const _=y=>{this.taskList=[],y.length>0&&(y=y.map(Y=>({id:Y.id,value:Y.name,tip:Y.complete_at?this.$L("\u5DF2\u5B8C\u6210"):null})).splice(0,100),this.taskList.push({label:[{id:0,value:this.$L("\u9879\u76EE\u4EFB\u52A1"),className:"sticky-top",disabled:!0}],list:y}));const{overdue:w,today:b,todo:C}=this.$store.getters.dashboardTask,U=[...w,...b,...C];let O=this.$store.getters.transforTasks(U);O.length>0&&(O=[...O].sort((Y,Re)=>$A.sortDay(Y.end_at||"2099-12-31 23:59:59",Re.end_at||"2099-12-31 23:59:59")).slice(0,100),this.taskList.push({label:[{id:0,value:this.$L("\u6211\u7684\u5F85\u5B8C\u6210\u4EFB\u52A1"),className:"sticky-top",disabled:!0}],list:O.map(Y=>({id:Y.id,value:Y.name}))}));let K=this.$store.getters.assistTask||[];K.length>0&&(K=[...K].sort((Y,Re)=>$A.sortDay(Y.end_at||"2099-12-31 23:59:59",Re.end_at||"2099-12-31 23:59:59")).slice(0,100),this.taskList.push({label:[{id:0,value:this.$L("\u6211\u534F\u52A9\u7684\u4EFB\u52A1"),className:"sticky-top",disabled:!0}],list:K.map(Y=>({id:Y.id,value:Y.name}))})),a(this.taskList)},v=this.getProjectId();v>0?this.$store.dispatch("getTaskForProject",v).then(y=>{const w=this.cacheTasks.filter(b=>b.archived_at?!1:b.project_id==v&&b.parent_id===0&&!b.archived_at).sort((b,C)=>$A.sortDay(C.complete_at||"2099-12-31 23:59:59",b.complete_at||"2099-12-31 23:59:59"));w.length>0?_(w):_([])}).catch(y=>{_([])}):_([])}if(r){if(Array.isArray(this.taskSearchList[r]))return;this.taskSearchTimer&&clearTimeout(this.taskSearchTimer),this.taskSearchTimer=setTimeout(async _=>{var w;if(this.taskSearchKey!==r)return;const v=(w=await this.$store.dispatch("call",{url:"project/task/lists",data:{keys:{name:r},parent_id:-1,scope:"all_project",pagesize:50}}).catch(b=>{}))==null?void 0:w.data;if(this.taskSearchKey!==r)return;const y=$A.getObject(v,"data")||[];this.taskSearchList[r]=y.map(b=>({id:b.id,name:b.name,complete_at:b.complete_at})),a(this.taskList)},300)}break;case"~":if(this.mentionMode="file-mention",$A.isArray(this.fileList[s])){t(this.fileList[s]);return}this.fileTimer&&clearTimeout(this.fileTimer),this.fileTimer=setTimeout(async _=>{var w;const v=[],y=(w=await this.$store.dispatch("searchFiles",s).catch(b=>{}))==null?void 0:w.data;y&&(v.push({label:[{id:0,value:this.$L("\u6587\u4EF6\u5206\u4EAB\u67E5\u770B"),className:"sticky-top",disabled:!0}],list:y.filter(b=>b.type!=="folder").map(b=>({id:b.id,value:b.ext?`${b.name}.${b.ext}`:b.name}))}),this.fileList[s]=v),t(v)},300);break;case"%":if(this.mentionMode="report-mention",$A.isArray(this.reportList[s])){t(this.reportList[s]);return}this.reportTimer&&clearTimeout(this.reportTimer),this.reportTimer=setTimeout(async _=>{var C,U;const v=[];let y=2;const w=(C=await this.$store.dispatch("call",{url:"report/my",data:{keys:{key:s}}}).catch(O=>{}))==null?void 0:C.data;w&&(v.push({label:[{id:0,value:this.$L("\u6211\u7684\u62A5\u544A"),className:"sticky-top",disabled:!0}],list:w.data.map(O=>({id:O.id,value:O.title}))}),y--);const b=(U=await this.$store.dispatch("call",{url:"report/receive",data:{keys:{key:s}}}).catch(O=>{}))==null?void 0:U.data;b&&(v.push({label:[{id:0,value:this.$L("\u6536\u5230\u7684\u62A5\u544A"),className:"sticky-top",disabled:!0}],list:b.data.map(O=>({id:O.id,value:O.title}))}),y--),y===0&&(this.reportList[s]=v),t(v)},300);break;case"/":this.mentionMode="slash-mention";const l=this.isSlashAtLineStart(),c=this.dialogData.type==="user"&&this.dialogData.bot,d=c&&this.dialogData.bot==this.userId,h=c&&this.dialogData.email==="bot-manager@bot.system",u=l&&(d||h),g=[{label:u?[{id:0,value:this.$L("\u5FEB\u6377\u83DC\u5355"),className:"sticky-top",disabled:!0}]:null,list:[{id:"mention",value:this.$L("\u63D0\u53CA"),tip:"@"},{id:"task",value:this.$L("\u4EFB\u52A1"),tip:"#"},{id:"file",value:this.$L("\u6587\u4EF6"),tip:"~"},{id:"report",value:this.$L("\u5DE5\u4F5C\u62A5\u544A"),tip:"%"}]}];if(u){const _=[];h&&_.push({id:"list",value:this.$L("\u6211\u7684\u673A\u5668\u4EBA"),tip:"/list"},{id:"newbot",value:this.$L("\u65B0\u5EFA\u673A\u5668\u4EBA"),tip:"/newbot"}),_.push({id:"help",value:this.$L("\u5E2E\u52A9\u6307\u4EE4"),tip:"/help"},{id:"api",value:this.$L("API\u63A5\u53E3\u6587\u6863"),tip:"/api"},{id:"info",value:this.$L("\u673A\u5668\u4EBA\u4FE1\u606F"),tip:"/info"},{id:"setname",value:this.$L("\u8BBE\u7F6E\u540D\u79F0"),tip:"/setname"},{id:"deletebot",value:this.$L("\u5220\u9664\u673A\u5668\u4EBA"),tip:"/deletebot"},{id:"token",value:this.$L("\u673A\u5668\u4EBAToken"),tip:"/token"},{id:"revoke",value:this.$L("\u66F4\u65B0Token"),tip:"/revoke"},{id:"clearday",value:this.$L("\u8BBE\u7F6E\u4FDD\u7559\u6D88\u606F\u65F6\u95F4"),tip:"/clearday"},{id:"webhook",value:this.$L("\u8BBE\u7F6EWebhook"),tip:"/webhook"},{id:"dialog",value:this.$L("\u5BF9\u8BDD\u5217\u8868"),tip:"/dialog"}),g.push({label:[{id:0,value:this.$L("\u673A\u5668\u4EBA\u547D\u4EE4"),className:"sticky-top",disabled:!0}],list:_})}t(g);break;default:t([]);break}},isSlashAtLineStart(){const e=this.getEditor(),s=e==null?void 0:e.getModule("mention"),t=s==null?void 0:s.mentionCharPos;if(!e||typeof t!="number"||Math.max(0,e.getLength()-1)>100)return!1;const n=e.getText(0,t)||"";return Math.max(n.lastIndexOf(`
-`),n.lastIndexOf("\r"))>=0?!1:n.trim().length===0},getMoreUser(e,s){return new Promise(t=>{const{owner_id:i,type:n}=this.dialogData,r=n==="group"&&[0,this.userId].includes(i);this.taskId>0||r?(this.moreTimer&&clearTimeout(this.moreTimer),this.moreTimer=setTimeout(o=>{this.$store.dispatch("call",{url:"users/search",data:{keys:{key:e,bot:2},state:1,take:30}}).then(({data:a})=>{const l=a.filter(c=>!s.includes(c.userid));t(l.map(c=>({id:c.userid,value:c.nickname,avatar:c.userimg,online:!!c.online,bot:!!c.bot,key:`${c.nickname} ${c.email} ${c.pinyin}`})))}).catch(a=>{t([])})},this.userCache===null?0:600)):t([])})},checkIOSVersion(){let s=(window&&window.navigator&&window.navigator.userAgent).match(/OS ((\d+_?){2,3})\s/i);const i=(s?s[1].replace(/_/g,"."):"unknown").split(".");return+i[0]==11&&+i[1]>=0&&+i[1]<3},handlePaste(e){const s=Array.prototype.slice.call(e.clipboardData.files);s.filter(i=>!$A.leftExists(i.type,"image/")).length>0&&(e.preventDefault(),this.$emit("on-file",s))},updateTools(){var s,t,i,n;this.showEmoji&&((s=this.$refs.emoji)==null||s.updatePopper()),this.showMore&&((t=this.$refs.more)==null||t.updatePopper()),this.showMenu&&((i=this.$refs.menu)==null||i.updatePopper());const e=(n=this.quill)==null?void 0:n.getModule("mention");e.isOpen&&e.setMentionContainerPosition()},tempHiddenSendTip(){const{sendTip:e}=this.$refs;e&&e.$refs.popper&&(e.$refs.popper.style.visibility="hidden",e.showPopper=!1,setTimeout(s=>{e.$refs.popper&&(e.$refs.popper.style.visibility="visible")},300))}}},ii={};var vd=A(_d,md,gd,!1,yd,null,null,null);function yd(e){for(let s in ii)this[s]=ii[s]}var wd=function(){return vd.exports}(),$d=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("Modal",{attrs:{title:e.title,"class-name":"common-user-select-modal forwarder-message-modal","mask-closable":!1,width:"420"},scopedSlots:e._u([{key:"footer",fn:function(){return[t("Button",{attrs:{type:"primary",loading:e.loading},on:{click:e.onSubmit}},[e._v(" "+e._s(e.$L("\u786E\u5B9A"))+" "),e.forwardTo.length>0?[e._v("("+e._s(e.forwardTo.length)+")")]:e._e()],2)]},proxy:!0}]),model:{value:e.show,callback:function(i){e.show=i},expression:"show"}},[t("div",{staticClass:"user-modal-search"},[t("Scrollbar",{staticClass:"search-selected",attrs:{"enable-x":"","enable-y":!1}},[t("ul",e._l(e.forwardTo,function(i){return t("li",{attrs:{"data-id":i.userid}},[i.type=="group"?t("div",{staticClass:"user-modal-avatar",attrs:{title:i.name}},[i.avatar?t("EAvatar",{staticClass:"img-avatar",attrs:{src:i.avatar,size:32}}):i.group_type=="department"?t("i",{staticClass:"taskfont icon-avatar department"},[e._v("\uE75C")]):i.group_type=="project"?t("i",{staticClass:"taskfont icon-avatar project"},[e._v("\uE6F9")]):i.group_type=="task"?t("i",{staticClass:"taskfont icon-avatar task"},[e._v("\uE6F4")]):i.group_type=="okr"?t("i",{staticClass:"taskfont icon-avatar task"},[e._v("\uE6F4")]):t("Icon",{staticClass:"icon-avatar",attrs:{type:"ios-people"}}),e.forwardTo.length==1?t("div",{staticClass:"avatar-name"},[t("span",[e._v(e._s(i.name))])]):e._e()],1):t("UserAvatar",{attrs:{userid:i.userid,size:32,"show-name":e.forwardTo.length==1}})],1)}),0)])],1),t("div",{staticClass:"twice-affirm-body-extend"},[t("div",{staticClass:"forwarder-wrapper-body"},[e.isMultiMode?t("div",{staticClass:"forward-mode-select"},[t("RadioGroup",{attrs:{size:"small"},model:{value:e.forwardMode,callback:function(i){e.forwardMode=i},expression:"forwardMode"}},[t("Radio",{attrs:{label:"one-by-one"}},[e._v(e._s(e.$L("\u9010\u6761\u8F6C\u53D1")))]),t("Radio",{attrs:{label:"merge"}},[e._v(e._s(e.$L("\u5408\u5E76\u8F6C\u53D1")))])],1)],1):e._e(),e.isMultiMode?t("div",{staticClass:"dialog-wrapper inde-list"},[t("Scrollbar",{attrs:{"class-name":"dialog-scroller"}},[e.forwardMode==="merge"?[t("div",{staticClass:"merge-forward-preview"},[t("div",{staticClass:"merge-preview-title"},[e._v(e._s(e.$L("\u804A\u5929\u8BB0\u5F55")))]),e._l(e.previewMsgList,function(i,n){return t("div",{key:i.id,staticClass:"merge-preview-item"},[t("UserAvatar",{attrs:{userid:i.userid,"show-icon":!1,"show-name":!0,size:16}}),t("span",{staticClass:"preview-desc",domProps:{innerHTML:e._s(e.$A.getMsgSimpleDesc(i))}})],1)}),t("div",{staticClass:"merge-preview-count"},[e._v(e._s(e.$L("\u5171(*)\u6761\u6D88\u606F",e.msgIds.length)))])],2)]:e._l(e.previewMsgList,function(i){return t("DialogItem",{key:i.id,attrs:{source:i,simpleView:""},on:{"on-view-text":e.onViewText,"on-view-file":e.onViewFile,"on-down-file":e.onDownFile,"on-emoji":e.onEmoji,"on-other":e.onOther}})})],2)],1):e.msgDetail?t("div",{staticClass:"dialog-wrapper inde-list"},[t("Scrollbar",{attrs:{"class-name":"dialog-scroller"}},[t("DialogItem",{attrs:{source:e.msgDetail,simpleView:""},on:{"on-view-text":e.onViewText,"on-view-file":e.onViewFile,"on-down-file":e.onDownFile,"on-emoji":e.onEmoji,"on-other":e.onOther}})],1)],1):e._e(),t("div",{staticClass:"leave-message"},[e.dialogId>0?t("ChatInput",{attrs:{"dialog-id":e.dialogId,"emoji-bottom":e.windowPortrait,maxlength:2e5,placeholder:e.placeholder||e.$L("\u7559\u8A00"),disabled:e.loading,"disabled-record":"","simple-mode":""},model:{value:e.message,callback:function(i){e.message=i},expression:"message"}}):t("Input",{attrs:{type:"textarea",autosize:{minRows:1,maxRows:3},maxlength:2e5,placeholder:e.placeholder||e.$L("\u7559\u8A00"),disabled:e.loading,clearable:""},model:{value:e.message,callback:function(i){e.message=i},expression:"message"}})],1),t("ul",{staticClass:"radio-group"},[e.aiUser.length>0?t("li",{class:{selected:e.ainew}},[t("Icon",{staticClass:"radio-icon",attrs:{type:e.ainew?"ios-checkmark-circle":"ios-radio-button-off"},on:{click:e.onAinew}}),t("span",{staticClass:"radio-label",on:{click:e.onAinew}},[e._v(e._s(e.$L("AI\u5F00\u542F\u65B0\u4F1A\u8BDD")))])],1):e._e(),!e.senderHidden&&e.forwardMode!=="merge"?t("li",{class:{selected:!e.sender}},[t("Icon",{staticClass:"radio-icon",attrs:{type:e.sender?"ios-radio-button-off":"ios-checkmark-circle"},on:{click:e.onSender}}),t("span",{staticClass:"radio-label",on:{click:e.onSender}},[e._v(e._s(e.$L("\u4E0D\u663E\u793A\u539F\u53D1\u9001\u8005\u4FE1\u606F")))])],1):e._e()])])])])},kd=[];const bd={components:{ChatInput:wd,DialogItem:Xu},props:{value:{type:Boolean,default:!1},title:{type:String,default:""},placeholder:{type:String,default:null},senderHidden:{type:Boolean,default:!1},beforeSubmit:Function,dialogId:{type:Number,default:0},forwardTo:{type:Array,default:()=>[]},msgDetail:{type:Object,default:null},msgIds:{type:Array,default:()=>[]},msgList:{type:Array,default:()=>[]}},data(){return{show:!1,loading:!1,message:"",forwardMode:"one-by-one",ainew:$A.getStorageBoolean("forwarder.ainew",!0),sender:$A.getStorageBoolean("forwarder.sender",!0)}},computed:{...B(["cacheUserBasic"]),isMultiMode(){return this.msgIds&&this.msgIds.length>0},previewMsgList(){return this.isMultiMode?this.msgList.slice(0,this.forwardMode==="merge"?4:10):[]},aiUser({forwardTo:e,cacheUserBasic:s}){return e.filter(i=>i.type!=="group").filter(i=>{const n=s.find(r=>r.userid===i.userid);return n&&n.bot&&/^ai-(.*?)@bot\.system/.test(n.email)})}},watch:{value(e){this.show=e},ainew(e){$A.setStorage("forwarder.ainew",e)},sender(e){$A.setStorage("forwarder.sender",e)},show(e){this.$emit("input",e),e||(this.loading=!1,this.message="")}},methods:{onViewText(...e){this.$emit("on-view-text",...e)},onViewFile(...e){this.$emit("on-view-file",...e)},onDownFile(...e){this.$emit("on-down-file",...e)},onEmoji(...e){this.$emit("on-emoji",...e)},onOther(...e){this.$emit("on-other",...e)},onAinew(){this.loading||(this.ainew=!this.ainew)},onSender(){this.loading||(this.sender=!this.sender)},async onSubmit(){if(this.loading)return;if(!this.beforeSubmit){this.hide();return}const e={message:this.message};this.isMultiMode&&(e.forward_mode=this.forwardMode),this.senderHidden||(e.sender=this.sender),this.loading=!0;try{await this.onAiNew()}catch{this.loading=!1;return}const s=this.beforeSubmit(e);s&&s.then?s.then(()=>{this.hide()}).catch(t=>{}).finally(()=>{this.loading=!1}):(this.loading=!1,this.hide())},onAiNew(){return new Promise((e,s)=>{if(this.aiUser.length===0||!this.ainew)return e();(async()=>{try{for(const i of this.aiUser)await this.$store.dispatch("call",{url:"dialog/session/create",data:{userid:i.userid}}),await this.$store.dispatch("clearDialogMsgs",{id:this.dialogId});e()}catch(i){$A.modalError({language:!1,content:this.$L("AI\u5F00\u542F\u65B0\u4F1A\u8BDD\u5931\u8D25")+`: ${i.msg||"Unknown Error"}`}),s(i)}})()})},hide(){this.show=!1}}},ni={};var Ad=A(bd,$d,kd,!1,Cd,null,null,null);function Cd(e){for(let s in ni)this[s]=ni[s]}var Sd=function(){return Ad.exports}(),xd=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}]},[t("UserSelect",{ref:"forwardSelect",attrs:{title:e.title,"show-bot":e.showBot,"hide-ai-bot":e.appAiHidden,"multiple-max":e.userMaxSelect,"before-submit":e.onSelectBefore,"show-select-all":!1,"show-dialog":"",module:""}}),t("ForwardConfirm",{ref:"forwardConfirm",attrs:{title:e.confirmTitle,placeholder:e.confirmPlaceholder,"sender-hidden":e.senderHidden,"before-submit":e.onConfirmBefore,"dialog-id":e.forwardDialogId,"forward-to":e.forwardTo,"msg-detail":e.msgDetail,"msg-ids":e.msgIds,"msg-list":e.msgList},model:{value:e.confirmShow,callback:function(i){e.confirmShow=i},expression:"confirmShow"}})],1)},Td=[];const Id={name:"Forwarder",components:{UserSelect:Ft,ForwardConfirm:Sd},props:{title:{type:String,default:"Forward"},confirmTitle:{type:String,default:"Forward Confirm"},confirmPlaceholder:{type:String,default:null},senderHidden:{type:Boolean,default:!1},showBot:{type:Boolean,default:!0},userMaxSelect:{type:Number,default:50},beforeSubmit:Function,msgDetail:{type:Object,default:null},msgIds:{type:Array,default:()=>[]},msgList:{type:Array,default:()=>[]}},data(){return{confirmShow:!1,forwardDialogId:0,forwardTo:[]}},computed:{...ye(["appAiHidden"])},methods:{onSelection(){this.$refs.forwardSelect.onSelection()},onSelectBefore(){return new Promise((e,s)=>{if(this.forwardTo=this.$refs.forwardSelect.formatSelect(this.$refs.forwardSelect.selects),this.forwardTo.length===0)$A.messageError("\u8BF7\u9009\u62E9\u5BF9\u8BDD\u6216\u6210\u5458");else{if(this.forwardDialogId=0,this.forwardTo.length===1){const{type:t,userid:i}=this.forwardTo[0];t==="group"&&/^d:/.test(i)&&(this.forwardDialogId=parseInt(i.replace(/^d:/,"")))}this.confirmShow=!0}s()})},onConfirmBefore(e){return new Promise((s,t)=>{const i=this.$refs.forwardSelect.selects;if(i.length===0){$A.messageError("\u8BF7\u9009\u62E9\u5BF9\u8BDD\u6216\u6210\u5458"),t();return}e.dialogids=i.filter(o=>$A.leftExists(o,"d:")).map(o=>o.replace("d:","")),e.userids=i.filter(o=>!$A.leftExists(o,"d:")),this.msgIds&&this.msgIds.length>0?e.msg_ids=this.msgIds:this.msgDetail&&(e.msg_id=this.msgDetail.id);const n=()=>{this.$refs.forwardSelect.hide(),s()};if(!this.beforeSubmit){n();return}const r=this.beforeSubmit(e);r&&r.then?r.then(n).catch(t):n()})}}},ri={};var Dd=A(Id,xd,Td,!1,Ed,null,null,null);function Ed(e){for(let s in ri)this[s]=ri[s]}var Ld=function(){return Dd.exports}(),Md=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[t("EDropdown",{ref:"dropdown",staticClass:"general-operation-dropdown",style:e.styles,attrs:{trigger:"click",disabled:e.disabled,size:e.size,placement:e.placement},on:{command:e.dropTask,"visible-change":e.visibleChange}},[t("div",{ref:"icon",staticClass:"general-operation-icon"}),t("EDropdownMenu",{ref:"dropdownMenu",staticClass:"general-operation-more-dropdown",attrs:{slot:"dropdown"},slot:"dropdown"},[t("li",{staticClass:"general-operation-more-warp",class:e.size},[t("ul",[e.flow?e.turns.length>0?e._l(e.turns,function(i){return t("EDropdownItem",{key:i.id,style:e.$A.generateColorVarStyle(i.color,[10],"flow-item-custom-color"),attrs:{command:`turn::${i.id}`}},[t("div",{staticClass:"item flow"},[i.id==e.task.flow_item_id&&e.flow.auto_assign!==!0?t("Icon",{staticClass:"check",attrs:{type:"md-checkmark-circle-outline"}}):t("Icon",{attrs:{type:"md-radio-button-off"}}),t("div",{staticClass:"flow-name",class:i.status},[e._v(e._s(i.name))])],1)])}):[e.task.complete_at?t("EDropdownItem",{attrs:{command:"uncomplete"}},[t("div",{staticClass:"item red"},[t("Icon",{attrs:{type:"md-checkmark-circle-outline"}}),e._v(e._s(e.$L("\u6807\u8BB0\u672A\u5B8C\u6210"))+" ")],1)]):t("EDropdownItem",{attrs:{command:"complete"}},[t("div",{staticClass:"item"},[t("Icon",{attrs:{type:"md-radio-button-off"}}),e._v(e._s(e.$L("\u5B8C\u6210"))+" ")],1)])]:t("EDropdownItem",{staticClass:"load-flow",attrs:{disabled:""}},[t("div",{staticClass:"load-flow-warp"},[t("Loading")],1)]),e.task.parent_id===0?[e.operationShow?[t("EDropdownItem",{attrs:{command:"favorite",divided:""}},[t("div",{staticClass:"item",class:{favorited:e.isFavorited}},[t("i",{staticClass:"taskfont movefont"},[e._v("\uE683")]),e._v(e._s(e.$L(e.isFavorited?"\u53D6\u6D88\u6536\u85CF":"\u6536\u85CF"))+" ")])]),t("EDropdownItem",{attrs:{command:"send"}},[t("div",{staticClass:"item"},[t("i",{staticClass:"taskfont movefont"},[e._v("\uE629")]),e._v(e._s(e.$L("\u53D1\u9001"))+" ")])]),t("EDropdownItem",{attrs:{command:"archived"}},[t("div",{staticClass:"item"},[t("Icon",{attrs:{type:"ios-filing"}}),e._v(e._s(e.$L(e.task.archived_at?"\u8FD8\u539F\u5F52\u6863":"\u5F52\u6863"))+" ")],1)]),t("EDropdownItem",{attrs:{command:"move"}},[t("div",{staticClass:"item"},[t("i",{staticClass:"taskfont movefont"},[e._v("\uE7FC")]),e._v(e._s(e.$L("\u79FB\u52A8"))+" ")])]),t("EDropdownItem",{attrs:{command:"copy"}},[t("div",{staticClass:"item"},[t("Icon",{attrs:{type:"ios-copy"}}),e._v(e._s(e.$L("\u590D\u5236"))+" ")],1)]),t("EDropdownItem",{attrs:{command:"remove"}},[t("div",{staticClass:"item hover-del"},[t("Icon",{attrs:{type:"md-trash"}}),e._v(e._s(e.$L("\u5220\u9664"))+" ")],1)])]:e._e(),e.colorShow?e._l(e.taskColorList,function(i,n){return t("EDropdownItem",{key:"c_"+n,attrs:{divided:n==0,command:i}},[t("div",{staticClass:"item"},[t("i",{staticClass:"taskfont",style:{color:i.primary||"#ddd"},domProps:{innerHTML:e._s(i.color==(e.task.color||"")?"":"")}}),e._v(e._s(e.$L(i.name))+" ")])])}):e._e()]:e.operationShow?[t("EDropdownItem",{attrs:{command:"upgrade",divided:e.turns.length>0}},[t("div",{staticClass:"item"},[t("Icon",{attrs:{type:"md-arrow-round-up"}}),e._v(e._s(e.$L("\u5347\u4E3B\u4EFB\u52A1"))+" ")],1)]),t("EDropdownItem",{attrs:{command:"remove"}},[t("div",{staticClass:"item hover-del"},[t("Icon",{attrs:{type:"md-trash"}}),e._v(e._s(e.$L("\u5220\u9664"))+" ")],1)])]:e._e()],2)])])],1),t("Modal",{attrs:{title:e.$L("\u79FB\u52A8\u4EFB\u52A1"),"mask-closable":!1,width:"540px","footer-hide":""},model:{value:e.moveTaskShow,callback:function(i){e.moveTaskShow=i},expression:"moveTaskShow"}},[t("TaskMove",{ref:"addTask",attrs:{task:e.task},model:{value:e.moveTaskShow,callback:function(i){e.moveTaskShow=i},expression:"moveTaskShow"}})],1),t("Modal",{attrs:{title:e.$L("\u590D\u5236\u4EFB\u52A1"),"mask-closable":!1,width:"540px","footer-hide":""},model:{value:e.copyTaskShow,callback:function(i){e.copyTaskShow=i},expression:"copyTaskShow"}},[t("TaskMove",{attrs:{task:e.task,type:"copy"},model:{value:e.copyTaskShow,callback:function(i){e.copyTaskShow=i},expression:"copyTaskShow"}})],1),t("Forwarder",{ref:"forwarder",attrs:{title:e.$L("\u53D1\u9001\u4EFB\u52A1"),"confirm-title":e.$L("\u786E\u8BA4\u53D1\u9001"),"confirm-placeholder":e.$L("\u9644\u8A00"),"multiple-max":50,"before-submit":e.onSendTask,"sender-hidden":""}})],1)},Pd=[];const jd={name:"TaskOperation",components:{Forwarder:Ld,TaskMove:No},data(){return{task:{},loadStatus:!1,colorShow:!0,operationShow:!0,updateBefore:!1,disabled:!1,size:"small",placement:"bottom",projectId:0,onUpdate:null,element:null,target:null,styles:{},moveTaskShow:!1,copyTaskShow:!1,isFavorited:!1}},beforeDestroy(){this.target&&this.target.removeEventListener("scroll",this.handlerEventListeners)},computed:{...B(["loads","taskOperation","taskColorList","taskFlows","taskFlowItems"]),...ye(["isLoad"]),loadIng(){return this.loadStatus?!0:this.isLoad(`task-${this.task.id}`)},flow(){const e=this.taskFlows.find(({task_id:s})=>s==this.task.id);return e||this.taskFlows.find(({flow_item_id:s})=>s==this.task.flow_item_id)},turns(){if(!this.flow)return[];let e=this.taskFlowItems.find(({id:s})=>s==this.flow.flow_item_id);return e?this.taskFlowItems.filter(({id:s})=>e.turns.includes(s)):[]}},watch:{taskOperation(e){if(e.event&&e.task){if(this.$refs.dropdown.visible&&this.element===e.event.target){this.hide();return}const s=e.event.target.getBoundingClientRect();this.styles={left:`${s.left}px`,top:`${s.top}px`,width:`${s.width}px`,height:`${s.height}px`},this.task=e.task,this.loadStatus=typeof e.loadStatus=="undefined"?!1:e.loadStatus,this.colorShow=typeof e.colorShow=="undefined"?!0:e.colorShow,this.operationShow=typeof e.operationShow=="undefined"?!0:e.operationShow,this.updateBefore=typeof e.updateBefore=="undefined"?!1:e.updateBefore,this.disabled=typeof e.disabled=="undefined"?!1:e.disabled,this.size=typeof e.size=="undefined"?"small":e.size,this.placement=typeof e.placement=="undefined"?"bottom":e.placement,this.projectId=typeof e.projectId=="undefined"?0:e.projectId,this.onUpdate=typeof e.onUpdate=="function"?e.onUpdate:null,this.checkFavoriteStatus(),this.$refs.icon.focus(),this.updatePopper(),this.show(),this.$store.dispatch("getTaskFlow",{task_id:this.task.id,project_id:this.projectId}).finally(this.updatePopper),this.setupEventListeners(e.event)}else this.hide()}},methods:{show(){this.$refs.dropdown.show()},hide(){this.$refs.dropdown.hide()},dropTask(e){const s=this.task,t=i=>{i?this.$store.dispatch("saveTaskCompleteTemp",s.id):this.$store.dispatch("forgetTaskCompleteTemp",s.id)};if($A.isJson(e)){e.name&&this.updateTask({color:e.color}).catch(()=>{});return}if($A.leftExists(e,"turn::")){let i=$A.leftDelete(e,"turn::");if(i==this.task.flow_item_id)return;let n=this.taskFlowItems.find(({id:l})=>l==this.flow.flow_item_id)||{},r=this.taskFlowItems.find(({id:l})=>l==i)||{},o=n.status!=="end"&&r.status==="end",a=n.status==="end"&&r.status!=="end";this.updateBefore&&(o?t(!0):a&&t(!1)),this.updateTask({flow_item_id:i,flow_item_status:r.status,flow_item_name:r.name}).then(()=>{o?t(!0):a&&t(!1)}).catch(()=>{o?t(!1):a&&t(!0)});return}switch(e){case"complete":if(this.task.complete_at)return;this.updateBefore&&t(!0),this.updateTask({complete_at:$A.daytz().format("YYYY-MM-DD HH:mm:ss")}).then(()=>{t(!0)}).catch(i=>{var n;t(!1),i&&i.ret===-4005&&((n=i.data)==null?void 0:n.flow_items)&&this.showFlowItemSelector(i.data.flow_items,"complete")});break;case"uncomplete":if(!this.task.complete_at)return;this.updateBefore&&t(!1),this.updateTask({complete_at:!1}).then(()=>{t(!1)}).catch(i=>{var n;t(!0),i&&i.ret===-4006&&((n=i.data)==null?void 0:n.flow_items)&&this.showFlowItemSelector(i.data.flow_items,"uncomplete")});break;case"favorite":this.toggleFavorite();break;case"send":this.$refs.forwarder.onSelection();break;case"upgrade":this.upgradeSubtask();break;case"archived":case"remove":this.archivedOrRemoveTask(e);break;case"move":this.moveTaskShow=!0;break;case"copy":this.copyTaskShow=!0;break}},updateTask(e){return new Promise((s,t)=>{if(this.loadIng){t();return}const i=Object.assign(e,{task_id:this.task.id});if(!this.operationShow){typeof this.onUpdate=="function"&&this.onUpdate(i),t();return}Object.keys(e).forEach(n=>this.$set(this.task,n,e[n])),this.$store.dispatch("taskUpdate",i).then(({data:n,msg:r})=>{$A.messageSuccess(r),s(),this.$store.dispatch("saveTaskBrowse",i.task_id),typeof this.onUpdate=="function"&&this.onUpdate(n)}).catch(n=>{if(n&&(n.ret===-4005||n.ret===-4006)){this.$store.dispatch("getTaskOne",i.task_id).catch(()=>{}),t(n);return}$A.modalError(n==null?void 0:n.msg),this.$store.dispatch("getTaskOne",i.task_id).catch(()=>{}),t(n)})})},upgradeSubtask(){this.loadIng||$A.modalConfirm({title:"\u5347\u7EA7\u4E3A\u4E3B\u4EFB\u52A1",content:`\u4F60\u786E\u5B9A\u8981\u5C06\u5B50\u4EFB\u52A1\u3010${this.task.name}\u3011\u5347\u7EA7\u4E3A\u4E3B\u4EFB\u52A1\u5417\uFF1F`,loading:!0,onOk:()=>{if(!this.loadIng)return new Promise(e=>{this.$store.dispatch("taskConvertToMain",this.task.id).then(({data:s,msg:t})=>{var i;$A.messageSuccess(t),this.hide(),this.$store.dispatch("openTask",((i=s==null?void 0:s.task)==null?void 0:i.id)||this.task.id),e()}).catch(({msg:s})=>{$A.modalError(s),e()})})}})},showFlowItemSelector(e,s){const t=e.map(i=>({label:i.name,value:i.id,color:i.color}));this.$store.commit("menu/operation",{event:{target:this.$refs.icon},list:t,size:"large",onUpdate:i=>{if(i){const n=e.find(r=>r.id===i);if(n){const r={flow_item_id:i,flow_item_status:n.status,flow_item_name:n.name};s==="complete"?r.complete_at=$A.daytz().format("YYYY-MM-DD HH:mm:ss"):r.complete_at=!1,this.updateTask(r).catch(()=>{})}}}})},archivedOrRemoveTask(e){let s="removeTask",t="\u5220\u9664",i={task_id:this.task.id},n=this.task.parent_id>0?"\u5B50\u4EFB\u52A1":"\u4EFB\u52A1";e=="archived"&&(s="archivedTask",t="\u5F52\u6863",this.task.archived_at&&(t="\u8FD8\u539F\u5F52\u6863",i={task_id:this.task.id,type:"recovery"})),$A.modalConfirm({title:t+n,content:"\u4F60\u786E\u5B9A\u8981"+t+n+"\u3010"+this.task.name+"\u3011\u5417\uFF1F",loading:!0,onOk:()=>{if(!this.loadIng)return new Promise((r,o)=>{this.$store.dispatch(s,i).then(({msg:a})=>{r(a),this.$store.dispatch("saveTaskBrowse",i.task_id)}).catch(({msg:a})=>{o(a)})})}})},visibleChange(e){this.visible=e},updatePopper(){this.$nextTick(this.$refs.dropdownMenu.updatePopper)},setupEventListeners(e){this.element=e.target;let s=this.getScrollParent(this.element);if((s===window.document.body||s===window.document.documentElement)&&(s=window),this.target){if(this.target===s)return;this.target.removeEventListener("scroll",this.handlerEventListeners)}this.target=s,this.target.addEventListener("scroll",this.handlerEventListeners)},handlerEventListeners(e){if(!this.visible||!this.element)return;const s=e.target.getBoundingClientRect(),t=this.element.getBoundingClientRect();if(t.tops.top+s.height){this.hide();return}this.styles={left:`${t.left}px`,top:`${t.top}px`,width:`${t.width}px`,height:`${t.height}px`},this.updatePopper()},getScrollParent(e){const s=e.parentNode;return s?s===window.document?window.document.body.scrollTop||window.document.body.scrollLeft?window.document.body:window.document.documentElement:["scroll","auto"].indexOf(this.getStyleComputedProperty(s,"overflow"))!==-1||["scroll","auto"].indexOf(this.getStyleComputedProperty(s,"overflow-x"))!==-1||["scroll","auto"].indexOf(this.getStyleComputedProperty(s,"overflow-y"))!==-1?s:this.getScrollParent(e.parentNode):e},getStyleComputedProperty(e,s){return!e||!(e instanceof HTMLElement)?null:window.getComputedStyle(e,null)[s]},onSendTask({dialogids:e,userids:s,message:t}){return new Promise((i,n)=>{this.$store.dispatch("call",{url:"dialog/msg/sendtaskid",data:{dialogids:e,userids:s,leave_message:t,task_id:this.task.id}}).then(({data:r,msg:o})=>{this.$store.dispatch("saveDialogMsg",r.msgs),this.$store.dispatch("updateDialogLastMsg",r.msgs),$A.messageSuccess(o),i()}).catch(({msg:r})=>{$A.modalError(r),n()})})},checkFavoriteStatus(){!this.task.id||this.$store.dispatch("checkFavoriteStatus",{type:"task",id:this.task.id}).then(({data:e})=>{this.isFavorited=e.favorited||!1}).catch(()=>{this.isFavorited=!1})},toggleFavorite(){!this.task.id||this.$store.dispatch("toggleFavorite",{type:"task",id:this.task.id}).then(({data:e})=>{this.isFavorited=e.favorited,this.hide()})}}},oi={};var Rd=A(jd,Md,Pd,!1,Od,null,null,null);function Od(e){for(let s in oi)this[s]=oi[s]}var zd=function(){return Rd.exports}(),Ud=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"meeting-player"},[t("div",{staticClass:"player",attrs:{id:e.id}},[t("div",{staticClass:"player-bg",style:e.playerStyle})]),t("ETooltip",{attrs:{disabled:e.$isEEUIApp||e.windowTouch||!e.username}},[t("div",{attrs:{slot:"content"},slot:"content"},[e._v(" "+e._s(e.username)+" ")]),t("div",{staticClass:"meeting-avatar"},[e.userid?t("UserAvatar",{attrs:{userid:e.userid,size:36,borderWidth:2}}):e.tourist.userimg?t("div",{staticClass:"common-avatar avatar-wrapper"},[t("div",{staticClass:"avatar-box online"},[t("em"),t("EAvatar",{attrs:{size:36,src:e.tourist.userimg}})],1)]):e._e()],1)]),t("div",{staticClass:"player-state"},[e.audio?e._e():t("i",{staticClass:"taskfont"},[e._v("\uE7C7")]),e.video?e._e():t("i",{staticClass:"taskfont"},[e._v("\uE7C8")])])],1)},Bd=[];const Nd={name:"MeetingPlayer",props:{id:{type:String,default:()=>"meeting-player-"+Math.round(Math.random()*1e4)},player:{type:Object,default:()=>({})},isLocal:{type:Boolean,default:!1}},data(){return{timer:null,tourist:{uid:"",nickname:"",userimg:""}}},mounted(){this.timer=setInterval(e=>{this.audio&&!this.player.audioTrack.isPlaying&&this.play("audio"),this.video&&!this.player.videoTrack.isPlaying&&this.play("video")},3e3)},beforeDestroy(){clearInterval(this.timer)},computed:{...B(["cacheUserBasic"]),userid(){return this.player.uid?(this.player.uid+"").indexOf("88888")!==-1?(this.getTouristInfo(),0):parseInt((this.player.uid+"").substring(6))||0:0},username(){if(this.userid){const e=this.cacheUserBasic.find(({userid:s})=>s==this.userid);return e?e.nickname:""}return this.tourist.nickname||""},playerStyle(){const e=this.cacheUserBasic.find(({userid:s})=>s==this.userid);return e&&e.userimg?{backgroundImage:`url("${e.userimg}")`}:this.tourist.userimg?{backgroundImage:`url("${this.tourist.userimg}")`}:null},audio(){return!!this.player.audioTrack},video(){return!!this.player.videoTrack}},watch:{audio:{handler(e){e&&this.play("audio")},immediate:!0},video:{handler(e){e&&this.play("video")},immediate:!0}},methods:{play(e){this.$nextTick(s=>{try{e==="audio"?!this.isLocal&&this.player.audioTrack.play():e==="video"&&this.player.videoTrack.play(this.id)}catch(t){console.log("Meeting Player Error",t)}})},getTouristInfo(){this.$store.dispatch("call",{url:"users/meeting/tourist",data:{tourist_id:this.player.uid}}).then(({data:e})=>{this.tourist=e}).catch(({msg:e})=>{$A.modalError(e)})}}},ai={};var Fd=A(Nd,Ud,Bd,!1,Hd,null,null,null);function Hd(e){for(let s in ai)this[s]=ai[s]}var Wd=function(){return Fd.exports}(),Vd=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{ref:"floatDrag",style:e.dragStyle,on:{mousedown:function(i){return i.stopPropagation(),i.preventDefault(),e.mouseDown.apply(null,arguments)}}},[e._t("default")],2)},Yd=[];const qd={name:"DragBallComponent",props:{id:{type:String,default:""},distanceRight:{type:Number,default:0},distanceBottom:{type:Number,default:100},isScrollHidden:{type:Boolean,default:!1},isCanDraggable:{type:Boolean,default:!0},zIndex:{type:Number,default:50}},data(){return{clientWidth:null,clientHeight:null,top:0,left:0,timer:null,currentTop:0,isMoving:!1,record:{}}},created(){this.clientWidth=document.documentElement.clientWidth,this.clientHeight=document.documentElement.clientHeight},mounted(){this.id&&($A.isJson(window._DragBallComponent)||(window._DragBallComponent={})),this.isCanDraggable&&this.$nextTick(()=>{this.id&&$A.isJson(window._DragBallComponent[this.id])?(this.left=window._DragBallComponent[this.id].left,this.top=window._DragBallComponent[this.id].top):(this.left=this.clientWidth-this.floatDrag.offsetWidth-this.distanceRight,this.top=this.clientHeight-this.floatDrag.offsetHeight-this.distanceBottom),this.initDraggable()}),this.isScrollHidden&&window.addEventListener("scroll",this.handleScroll),window.addEventListener("resize",this.handleResize)},beforeDestroy(){this.id&&(window._DragBallComponent[this.id]={left:this.left,top:this.top}),window.removeEventListener("scroll",this.handleScroll),window.removeEventListener("resize",this.handleResize)},computed:{dragStyle(){return{left:this.left+"px",top:this.top+"px",zIndex:this.zIndex,position:"fixed"}},floatDrag(){return this.$refs.floatDrag}},methods:{handleScroll(){this.timer&&clearTimeout(this.timer),this.timer=setTimeout(()=>{this.handleScrollEnd()},200),this.currentTop=document.documentElement.scrollTop||document.body.scrollTop,this.left>this.clientWidth/2?this.left=this.clientWidth+this.floatDrag.offsetWidth:this.left=-this.floatDrag.offsetWidth},handleScrollEnd(){(document.documentElement.scrollTop||document.body.scrollTop)===this.currentTop&&(this.left>this.clientWidth/2?this.left=this.clientWidth-this.floatDrag.offsetWidth:this.left=0,clearTimeout(this.timer))},handleResize(){this.clientWidth=document.documentElement.clientWidth,this.clientHeight=document.documentElement.clientHeight,this.$nextTick(this.checkDraggablePosition)},initDraggable(){this.floatDrag.addEventListener("touchstart",this.toucheStart),this.floatDrag.addEventListener("touchmove",this.touchMove),this.floatDrag.addEventListener("touchend",this.touchEnd)},mouseDown(e){this.record={time:$A.dayjs().valueOf(),top:this.floatDrag.offsetTop,left:this.floatDrag.offsetLeft,x:e.clientX-this.floatDrag.offsetLeft,y:e.clientY-this.floatDrag.offsetTop},this.floatDrag.style.transition="none",this.canClick=!1,document.onmousemove=s=>{let t=s.clientX-this.record.x,i=s.clientY-this.record.y;t<0?t=0:t>window.innerWidth-this.floatDrag.offsetWidth&&(t=window.innerWidth-this.floatDrag.offsetWidth),i<0?i=0:i>window.innerHeight-this.floatDrag.offsetHeight&&(i=window.innerHeight-this.floatDrag.offsetHeight),this.left=t,this.top=i},document.onmouseup=()=>{document.onmousemove=null,document.onmouseup=null,this.checkDraggablePosition(),this.floatDrag.style.transition="all 0.3s",(Math.abs(this.record.top-this.floatDrag.offsetTop)<5&&Math.abs(this.record.left-this.floatDrag.offsetLeft)<5||$A.dayjs().valueOf()-this.record.time<200)&&this.$emit("on-click")}},toucheStart(){this.canClick=!1,this.floatDrag.style.transition="none"},touchMove(e){if(this.canClick=!0,e.targetTouches.length===1){let s=event.targetTouches[0],t=s.clientX-this.floatDrag.offsetWidth/2,i=s.clientY-this.floatDrag.offsetHeight/2;t<0?t=0:t>window.innerWidth-this.floatDrag.offsetWidth&&(t=window.innerWidth-this.floatDrag.offsetWidth),i<0?i=0:i>window.innerHeight-this.floatDrag.offsetHeight&&(i=window.innerHeight-this.floatDrag.offsetHeight),this.left=t,this.top=i}},touchEnd(){!this.canClick||(this.floatDrag.style.transition="all 0.3s",this.checkDraggablePosition())},checkDraggablePosition(){this.left+this.floatDrag.offsetWidth/2>=this.clientWidth/2?this.left=this.clientWidth-this.floatDrag.offsetWidth:this.left=0,this.top<0&&(this.top=0),this.top+this.floatDrag.offsetHeight>=this.clientHeight&&(this.top=this.clientHeight-this.floatDrag.offsetHeight)}}},li={};var Kd=A(qd,Vd,Yd,!1,Gd,null,null,null);function Gd(e){for(let s in li)this[s]=li[s]}var Jd=function(){return Kd.exports}();const Qd={UNEXPECTED_ERROR:{zh:"\u65E0\u6CD5\u5904\u7406\u7684\u3001\u975E\u9884\u671F\u7684\u9519\u8BEF\uFF0C\u901A\u5E38\u8FD9\u4E2A\u9519\u8BEF\u4F1A\u6709\u5177\u4F53\u7684\u9519\u8BEF\u63D0\u793A\u3002","zh-CHT":"\u7121\u6CD5\u8655\u7406\u7684\u3001\u975E\u9810\u671F\u7684\u932F\u8AA4\uFF0C\u901A\u5E38\u9019\u500B\u932F\u8AA4\u6703\u6709\u5177\u9AD4\u7684\u932F\u8AA4\u63D0\u793A\u3002",en:"An unhandled, unexpected error. This error usually comes with a specific error message.",ko:"\uCC98\uB9AC\uB418\uC9C0 \uC54A\uC740 \uC608\uAE30\uCE58 \uC54A\uC740 \uC624\uB958\uC785\uB2C8\uB2E4. \uC77C\uBC18\uC801\uC73C\uB85C \uC774 \uC624\uB958\uC5D0\uB294 \uAD6C\uCCB4\uC801\uC778 \uC624\uB958 \uBA54\uC2DC\uC9C0\uAC00 \uD3EC\uD568\uB429\uB2C8\uB2E4.",ja:"\u51E6\u7406\u3067\u304D\u306A\u3044\u4E88\u671F\u3057\u306A\u3044\u30A8\u30E9\u30FC\u3067\u3059\u3002\u901A\u5E38\u3001\u3053\u306E\u30A8\u30E9\u30FC\u306B\u306F\u5177\u4F53\u7684\u306A\u30A8\u30E9\u30FC\u30E1\u30C3\u30BB\u30FC\u30B8\u304C\u542B\u307E\u308C\u3066\u3044\u307E\u3059\u3002",de:"Ein unbehandelter, unerwarteter Fehler. Dieser Fehler enth\xE4lt normalerweise eine spezifische Fehlermeldung.",fr:"Une erreur inattendue et non g\xE9r\xE9e. Cette erreur est g\xE9n\xE9ralement accompagn\xE9e d'un message d'erreur sp\xE9cifique.",id:"Kesalahan tak terduga dan tidak tertangani. Kesalahan ini biasanya disertai dengan pesan kesalahan spesifik.",ru:"\u041D\u0435\u043E\u0431\u0440\u0430\u0431\u043E\u0442\u0430\u043D\u043D\u0430\u044F, \u043D\u0435\u043E\u0436\u0438\u0434\u0430\u043D\u043D\u0430\u044F \u043E\u0448\u0438\u0431\u043A\u0430. \u041E\u0431\u044B\u0447\u043D\u043E \u044D\u0442\u0430 \u043E\u0448\u0438\u0431\u043A\u0430 \u0441\u043E\u043F\u0440\u043E\u0432\u043E\u0436\u0434\u0430\u0435\u0442\u0441\u044F \u043A\u043E\u043D\u043A\u0440\u0435\u0442\u043D\u044B\u043C \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435\u043C \u043E\u0431 \u043E\u0448\u0438\u0431\u043A\u0435."},UNEXPECTED_RESPONSE:{zh:"\u670D\u52A1\u7AEF\u8FD4\u56DE\u4E86\u975E\u9884\u671F\u7684\u54CD\u5E94\u3002\u8FD9\u4E2A\u9519\u8BEF\u901A\u5E38\u662F\u5728\u7F51\u7EDC\u95EE\u9898\u5BFC\u81F4\u5BA2\u6237\u7AEF\u4E0E\u670D\u52A1\u7AEF\u72B6\u6001\u4E0D\u4E00\u81F4\u65F6\u629B\u51FA\u3002","zh-CHT":"\u670D\u52D9\u7AEF\u8FD4\u56DE\u4E86\u975E\u9810\u671F\u7684\u97FF\u61C9\u3002\u9019\u500B\u932F\u8AA4\u901A\u5E38\u662F\u5728\u7DB2\u7D61\u554F\u984C\u5C0E\u81F4\u5BA2\u6236\u7AEF\u8207\u670D\u52D9\u7AEF\u72C0\u614B\u4E0D\u4E00\u81F4\u6642\u62CB\u51FA\u3002",en:"The server returned an unexpected response. This error usually occurs when network issues cause inconsistency between client and server states.",ko:"\uC11C\uBC84\uAC00 \uC608\uAE30\uCE58 \uC54A\uC740 \uC751\uB2F5\uC744 \uBC18\uD658\uD588\uC2B5\uB2C8\uB2E4. \uC774 \uC624\uB958\uB294 \uC77C\uBC18\uC801\uC73C\uB85C \uB124\uD2B8\uC6CC\uD06C \uBB38\uC81C\uB85C \uC778\uD574 \uD074\uB77C\uC774\uC5B8\uD2B8\uC640 \uC11C\uBC84 \uC0C1\uD0DC\uAC00 \uBD88\uC77C\uCE58\uD560 \uB54C \uBC1C\uC0DD\uD569\uB2C8\uB2E4.",ja:"\u30B5\u30FC\u30D0\u30FC\u304B\u3089\u4E88\u671F\u3057\u306A\u3044\u5FDC\u7B54\u304C\u8FD4\u3055\u308C\u307E\u3057\u305F\u3002\u3053\u306E\u30A8\u30E9\u30FC\u306F\u901A\u5E38\u3001\u30CD\u30C3\u30C8\u30EF\u30FC\u30AF\u306E\u554F\u984C\u306B\u3088\u3063\u3066\u30AF\u30E9\u30A4\u30A2\u30F3\u30C8\u3068\u30B5\u30FC\u30D0\u30FC\u306E\u72B6\u614B\u304C\u4E00\u81F4\u3057\u306A\u3044\u5834\u5408\u306B\u767A\u751F\u3057\u307E\u3059\u3002",de:"Der Server hat eine unerwartete Antwort zur\xFCckgegeben. Dieser Fehler tritt normalerweise auf, wenn Netzwerkprobleme zu Inkonsistenzen zwischen Client- und Serverzust\xE4nden f\xFChren.",fr:"Le serveur a renvoy\xE9 une r\xE9ponse inattendue. Cette erreur survient g\xE9n\xE9ralement lorsque des probl\xE8mes de r\xE9seau causent une incoh\xE9rence entre les \xE9tats du client et du serveur.",id:"Server mengembalikan respons yang tidak terduga. Kesalahan ini biasanya terjadi ketika masalah jaringan menyebabkan ketidaksesuaian antara status klien dan server.",ru:"\u0421\u0435\u0440\u0432\u0435\u0440 \u0432\u0435\u0440\u043D\u0443\u043B \u043D\u0435\u043E\u0436\u0438\u0434\u0430\u043D\u043D\u044B\u0439 \u043E\u0442\u0432\u0435\u0442. \u042D\u0442\u0430 \u043E\u0448\u0438\u0431\u043A\u0430 \u043E\u0431\u044B\u0447\u043D\u043E \u0432\u043E\u0437\u043D\u0438\u043A\u0430\u0435\u0442, \u043A\u043E\u0433\u0434\u0430 \u043F\u0440\u043E\u0431\u043B\u0435\u043C\u044B \u0441 \u0441\u0435\u0442\u044C\u044E \u0432\u044B\u0437\u044B\u0432\u0430\u044E\u0442 \u043D\u0435\u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435 \u043C\u0435\u0436\u0434\u0443 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u044F\u043C\u0438 \u043A\u043B\u0438\u0435\u043D\u0442\u0430 \u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u0430."},INVALID_PARAMS:{zh:"\u975E\u6CD5\u53C2\u6570\u3002","zh-CHT":"\u975E\u6CD5\u53C3\u6578\u3002",en:"Invalid parameters.",ko:"\uC798\uBABB\uB41C \uB9E4\uAC1C\uBCC0\uC218\uC785\uB2C8\uB2E4.",ja:"\u7121\u52B9\u306A\u30D1\u30E9\u30E1\u30FC\u30BF\u3067\u3059\u3002",de:"Ung\xFCltige Parameter.",fr:"Param\xE8tres invalides.",id:"Parameter tidak valid.",ru:"\u041D\u0435\u0434\u043E\u043F\u0443\u0441\u0442\u0438\u043C\u044B\u0435 \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B."},NOT_SUPPORTED:{zh:"\u6D4F\u89C8\u5668\u4E0D\u652F\u6301\u3002","zh-CHT":"\u700F\u89BD\u5668\u4E0D\u652F\u6301\u3002",en:"Browser not supported.",ko:"\uBE0C\uB77C\uC6B0\uC800\uAC00 \uC9C0\uC6D0\uB418\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",ja:"\u30D6\u30E9\u30A6\u30B6\u306F\u30B5\u30DD\u30FC\u30C8\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",de:"Der Browser wird nicht unterst\xFCtzt.",fr:"Le navigateur n'est pas pris en charge.",id:"Browser tidak didukung.",ru:"\u0411\u0440\u0430\u0443\u0437\u0435\u0440 \u043D\u0435 \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044F."},INVALID_OPERATION:{zh:"\u975E\u6CD5\u64CD\u4F5C\uFF0C\u901A\u5E38\u662F\u56E0\u4E3A\u5728\u5F53\u524D\u72B6\u6001\u4E0D\u80FD\u8FDB\u884C\u8BE5\u64CD\u4F5C\u3002","zh-CHT":"\u975E\u6CD5\u64CD\u4F5C\uFF0C\u901A\u5E38\u662F\u56E0\u70BA\u5728\u7576\u524D\u72C0\u614B\u4E0D\u80FD\u9032\u884C\u8A72\u64CD\u4F5C\u3002",en:"Invalid operation, usually because the operation cannot be performed in the current state.",ko:"\uC798\uBABB\uB41C \uC791\uC5C5\uC785\uB2C8\uB2E4. \uC77C\uBC18\uC801\uC73C\uB85C \uD604\uC7AC \uC0C1\uD0DC\uC5D0\uC11C \uD574\uB2F9 \uC791\uC5C5\uC744 \uC218\uD589\uD560 \uC218 \uC5C6\uAE30 \uB54C\uBB38\uC785\uB2C8\uB2E4.",ja:"\u7121\u52B9\u306A\u64CD\u4F5C\u3067\u3059\u3002\u901A\u5E38\u306F\u3001\u73FE\u5728\u306E\u72B6\u614B\u3067\u64CD\u4F5C\u3092\u5B9F\u884C\u3067\u304D\u306A\u3044\u305F\u3081\u3067\u3059\u3002",de:"Ung\xFCltiger Vorgang, normalerweise weil der Vorgang im aktuellen Zustand nicht durchgef\xFChrt werden kann.",fr:"Op\xE9ration invalide, g\xE9n\xE9ralement parce que l'op\xE9ration ne peut pas \xEAtre effectu\xE9e dans l'\xE9tat actuel.",id:"Operasi tidak valid. Biasanya karena operasi tidak dapat dilakukan dalam status saat ini.",ru:"\u041D\u0435\u0434\u043E\u043F\u0443\u0441\u0442\u0438\u043C\u0430\u044F \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u044F, \u043E\u0431\u044B\u0447\u043D\u043E \u043F\u043E\u0442\u043E\u043C\u0443, \u0447\u0442\u043E \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u044F \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u0431\u044B\u0442\u044C \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u0430 \u0432 \u0442\u0435\u043A\u0443\u0449\u0435\u043C \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0438."},OPERATION_ABORTED:{zh:"\u64CD\u4F5C\u4E2D\u6B62\uFF0C\u901A\u5E38\u662F\u56E0\u4E3A\u7F51\u7EDC\u8D28\u91CF\u5DEE\u6216\u8FDE\u63A5\u65AD\u5F00\u5BFC\u81F4\u4E0E\u8BED\u97F3\u670D\u52A1\u5668\u901A\u4FE1\u5931\u8D25\u3002","zh-CHT":"\u64CD\u4F5C\u4E2D\u6B62\uFF0C\u901A\u5E38\u662F\u56E0\u70BA\u7DB2\u7D61\u8CEA\u91CF\u5DEE\u6216\u9023\u63A5\u65B7\u958B\u5C0E\u81F4\u8207\u8A9E\u97F3\u670D\u52D9\u5668\u901A\u4FE1\u5931\u6557\u3002",en:"Operation aborted, usually due to communication failure with the voice server caused by poor network quality or disconnection.",ko:"\uC791\uC5C5\uC774 \uC911\uB2E8\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uC77C\uBC18\uC801\uC73C\uB85C \uB124\uD2B8\uC6CC\uD06C \uD488\uC9C8\uC774 \uB098\uC058\uAC70\uB098 \uC5F0\uACB0\uC774 \uB04A\uC5B4\uC838 \uC74C\uC131 \uC11C\uBC84\uC640 \uD1B5\uC2E0\uC5D0 \uC2E4\uD328\uD588\uAE30 \uB54C\uBB38\uC785\uB2C8\uB2E4.",ja:"\u64CD\u4F5C\u304C\u4E2D\u6B62\u3055\u308C\u307E\u3057\u305F\u3002\u901A\u5E38\u306F\u3001\u30CD\u30C3\u30C8\u30EF\u30FC\u30AF\u54C1\u8CEA\u304C\u60AA\u3044\u304B\u3001\u63A5\u7D9A\u304C\u5207\u65AD\u3055\u308C\u305F\u305F\u3081\u3001\u97F3\u58F0\u30B5\u30FC\u30D0\u30FC\u3068\u306E\u901A\u4FE1\u306B\u5931\u6557\u3057\u305F\u305F\u3081\u3067\u3059\u3002",de:"Vorgang abgebrochen, normalerweise aufgrund von Kommunikationsfehlern mit dem Sprachserver aufgrund von schlechter Netzwerkqualit\xE4t oder Verbindungsunterbrechung.",fr:"Op\xE9ration annul\xE9e, g\xE9n\xE9ralement en raison d'une d\xE9faillance de communication avec le serveur vocal due \xE0 une mauvaise qualit\xE9 du r\xE9seau ou \xE0 une d\xE9connexion.",id:"Operasi dibatalkan. Biasanya karena komunikasi dengan server suara gagal karena kualitas jaringan yang buruk atau koneksi yang terputus.",ru:"\u041E\u043F\u0435\u0440\u0430\u0446\u0438\u044F \u043E\u0442\u043C\u0435\u043D\u0435\u043D\u0430, \u043E\u0431\u044B\u0447\u043D\u043E \u0438\u0437-\u0437\u0430 \u0441\u0431\u043E\u044F \u0441\u0432\u044F\u0437\u0438 \u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u043E\u043C \u0433\u043E\u043B\u043E\u0441\u0430 \u0438\u0437-\u0437\u0430 \u043F\u043B\u043E\u0445\u043E\u0433\u043E \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u0430 \u0441\u0435\u0442\u0438 \u0438\u043B\u0438 \u0440\u0430\u0437\u0440\u044B\u0432\u0430 \u0441\u043E\u0435\u0434\u0438\u043D\u0435\u043D\u0438\u044F."},WEB_SECURITY_RESTRICT:{zh:"\u6D4F\u89C8\u5668\u5B89\u5168\u7B56\u7565\u9650\u5236\u3002","zh-CHT":"\u700F\u89BD\u5668\u5B89\u5168\u7B56\u7565\u9650\u5236\u3002",en:"Browser security policy restriction.",ko:"\uBE0C\uB77C\uC6B0\uC800 \uBCF4\uC548 \uC815\uCC45 \uC81C\uD55C\uC785\uB2C8\uB2E4.",ja:"\u30D6\u30E9\u30A6\u30B6\u306E\u30BB\u30AD\u30E5\u30EA\u30C6\u30A3\u30DD\u30EA\u30B7\u30FC\u5236\u9650\u3067\u3059\u3002",de:"Einschr\xE4nkung der Browser-Sicherheitsrichtlinie.",fr:"Restriction de la politique de s\xE9curit\xE9 du navigateur.",id:"Pembatasan kebijakan keamanan browser.",ru:"\u041E\u0433\u0440\u0430\u043D\u0438\u0447\u0435\u043D\u0438\u0435 \u043F\u043E\u043B\u0438\u0442\u0438\u043A\u0438 \u0431\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u0438 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430."},NO_ACTIVE_STATUS:{zh:"\u8BED\u97F3\u9879\u76EE\u672A\u6FC0\u6D3B\u6216\u88AB\u7981\u7528\u3002","zh-CHT":"\u8A9E\u97F3\u9805\u76EE\u672A\u6FC0\u6D3B\u6216\u88AB\u7981\u7528\u3002",en:"Voice project is not activated or has been disabled.",ko:"\uC74C\uC131 \uD504\uB85C\uC81D\uD2B8\uAC00 \uD65C\uC131\uD654\uB418\uC9C0 \uC54A\uC558\uAC70\uB098 \uBE44\uD65C\uC131\uD654\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",ja:"\u97F3\u58F0\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u304C\u30A2\u30AF\u30C6\u30A3\u30D6\u5316\u3055\u308C\u3066\u3044\u306A\u3044\u304B\u3001\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002",de:"Sprachprojekt ist nicht aktiviert oder wurde deaktiviert.",fr:"Le projet vocal n'est pas activ\xE9 ou a \xE9t\xE9 d\xE9sactiv\xE9.",id:"Proyek suara tidak diaktifkan atau dinonaktifkan.",ru:"\u041F\u0440\u043E\u0435\u043A\u0442 \u0433\u043E\u043B\u043E\u0441\u0430 \u043D\u0435 \u0430\u043A\u0442\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0435\u043D."},NETWORK_TIMEOUT:{zh:"\u8BF7\u6C42\u8D85\u65F6\uFF0C\u901A\u5E38\u662F\u56E0\u4E3A\u7F51\u7EDC\u8D28\u91CF\u5DEE\u6216\u8FDE\u63A5\u65AD\u5F00\u5BFC\u81F4\u4E0E\u8BED\u97F3\u670D\u52A1\u5668\u901A\u4FE1\u5931\u8D25\u3002","zh-CHT":"\u8ACB\u6C42\u8D85\u6642\uFF0C\u901A\u5E38\u662F\u56E0\u70BA\u7DB2\u7D61\u8CEA\u91CF\u5DEE\u6216\u9023\u63A5\u65B7\u958B\u5C0E\u81F4\u8207\u8A9E\u97F3\u670D\u52D9\u5668\u901A\u4FE1\u5931\u6557\u3002",en:"Request timeout, usually due to communication failure with the voice server caused by poor network quality or disconnection.",ko:"\uC694\uCCAD\uC774 \uC2DC\uAC04 \uCD08\uACFC\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uC77C\uBC18\uC801\uC73C\uB85C \uB124\uD2B8\uC6CC\uD06C \uD488\uC9C8\uC774 \uB098\uC058\uAC70\uB098 \uC5F0\uACB0\uC774 \uB04A\uC5B4\uC838 \uC74C\uC131 \uC11C\uBC84\uC640 \uD1B5\uC2E0\uC5D0 \uC2E4\uD328\uD588\uAE30 \uB54C\uBB38\uC785\uB2C8\uB2E4.",ja:"\u30EA\u30AF\u30A8\u30B9\u30C8\u304C\u30BF\u30A4\u30E0\u30A2\u30A6\u30C8\u3057\u307E\u3057\u305F\u3002\u901A\u5E38\u306F\u3001\u30CD\u30C3\u30C8\u30EF\u30FC\u30AF\u54C1\u8CEA\u304C\u60AA\u3044\u304B\u3001\u63A5\u7D9A\u304C\u5207\u65AD\u3055\u308C\u305F\u305F\u3081\u3001\u97F3\u58F0\u30B5\u30FC\u30D0\u30FC\u3068\u306E\u901A\u4FE1\u306B\u5931\u6557\u3057\u305F\u305F\u3081\u3067\u3059\u3002",de:"Anforderungstimeout, normalerweise aufgrund von Kommunikationsfehlern mit dem Sprachserver aufgrund von schlechter Netzwerkqualit\xE4t oder Verbindungsunterbrechung.",fr:"D\xE9lai d'attente de la requ\xEAte d\xE9pass\xE9, g\xE9n\xE9ralement en raison d'une d\xE9faillance de communication avec le serveur vocal due \xE0 une mauvaise qualit\xE9 du r\xE9seau ou \xE0 une d\xE9connexion.",id:"Waktu permintaan habis. Biasanya karena komunikasi dengan server suara gagal karena kualitas jaringan yang buruk atau koneksi yang terputus.",ru:"\u0412\u0440\u0435\u043C\u044F \u0437\u0430\u043F\u0440\u043E\u0441\u0430 \u0438\u0441\u0442\u0435\u043A\u043B\u043E. \u041E\u0431\u044B\u0447\u043D\u043E \u0438\u0437-\u0437\u0430 \u0441\u0431\u043E\u044F \u0441\u0432\u044F\u0437\u0438 \u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u043E\u043C \u0433\u043E\u043B\u043E\u0441\u0430 \u0438\u0437-\u0437\u0430 \u043F\u043B\u043E\u0445\u043E\u0433\u043E \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u0430 \u0441\u0435\u0442\u0438 \u0438\u043B\u0438 \u0440\u0430\u0437\u0440\u044B\u0432\u0430 \u0441\u043E\u0435\u0434\u0438\u043D\u0435\u043D\u0438\u044F."},NETWORK_RESPONSE_ERROR:{zh:"\u54CD\u5E94\u9519\u8BEF\uFF0C\u4E00\u822C\u662F\u72B6\u6001\u7801\u975E\u6CD5\u3002","zh-CHT":"\u97FF\u61C9\u932F\u8AA4\uFF0C\u4E00\u822C\u662F\u72C0\u614B\u78BC\u975E\u6CD5\u3002",en:"Response error, usually due to invalid status code.",ko:"\uC751\uB2F5 \uC624\uB958\uC785\uB2C8\uB2E4. \uC77C\uBC18\uC801\uC73C\uB85C \uC0C1\uD0DC \uCF54\uB4DC\uAC00 \uC798\uBABB\uB418\uAE30 \uB54C\uBB38\uC785\uB2C8\uB2E4.",ja:"\u30EC\u30B9\u30DD\u30F3\u30B9\u30A8\u30E9\u30FC\u3067\u3059\u3002\u901A\u5E38\u306F\u3001\u30B9\u30C6\u30FC\u30BF\u30B9\u30B3\u30FC\u30C9\u304C\u7121\u52B9\u3067\u3042\u308B\u305F\u3081\u3067\u3059\u3002",de:"Antwortfehler, normalerweise aufgrund eines ung\xFCltigen Statuscodes.",fr:"Erreur de r\xE9ponse, g\xE9n\xE9ralement en raison d'un code de statut invalide.",id:"Kesalahan respons. Biasanya karena kode status tidak valid.",ru:"\u041E\u0448\u0438\u0431\u043A\u0430 \u043E\u0442\u0432\u0435\u0442\u0430, \u043E\u0431\u044B\u0447\u043D\u043E \u0438\u0437-\u0437\u0430 \u043D\u0435\u0434\u043E\u043F\u0443\u0441\u0442\u0438\u043C\u043E\u0433\u043E \u043A\u043E\u0434\u0430 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u044F."},NETWORK_ERROR:{zh:"\u65E0\u6CD5\u5B9A\u4F4D\u7684\u7F51\u7EDC\u9519\u8BEF\u3002","zh-CHT":"\u7121\u6CD5\u5B9A\u4F4D\u7684\u7DB2\u7D61\u932F\u8AA4\u3002",en:"Unlocatable network error.",ko:"\uC704\uCE58\uD560 \uC218 \uC5C6\uB294 \uB124\uD2B8\uC6CC\uD06C \uC624\uB958\uC785\uB2C8\uB2E4.",ja:"\u7279\u5B9A\u3067\u304D\u306A\u3044\u30CD\u30C3\u30C8\u30EF\u30FC\u30AF\u30A8\u30E9\u30FC\u3067\u3059\u3002",de:"Nicht lokalisierbarer Netzwerkfehler.",fr:"Erreur r\xE9seau non localisable.",id:"Kesalahan jaringan yang tidak dapat ditemukan.",ru:"\u041D\u0435\u043B\u043E\u043A\u0430\u043B\u0438\u0437\u0443\u0435\u043C\u0430\u044F \u043E\u0448\u0438\u0431\u043A\u0430 \u0441\u0435\u0442\u0438."},WS_ABORT:{zh:"\u8BF7\u6C42\u8BED\u97F3\u670D\u52A1\u5668\u8FC7\u7A0B\u4E2D WebSocket \u65AD\u5F00\u3002","zh-CHT":"\u8ACB\u6C42\u8A9E\u97F3\u670D\u52D9\u5668\u904E\u7A0B\u4E2D WebSocket \u65B7\u958B\u3002",en:"WebSocket disconnected during voice server request.",ko:"\uC74C\uC131 \uC11C\uBC84 \uC694\uCCAD \uC911 WebSocket \uC5F0\uACB0\uC774 \uB04A\uC5B4\uC84C\uC2B5\uB2C8\uB2E4.",ja:"\u97F3\u58F0\u30B5\u30FC\u30D0\u30FC\u306E\u30EA\u30AF\u30A8\u30B9\u30C8\u4E2D\u306BWebSocket\u304C\u5207\u65AD\u3055\u308C\u307E\u3057\u305F\u3002",de:"WebSocket wurde w\xE4hrend der Anfrage an den Sprachserver getrennt.",fr:"La connexion WebSocket a \xE9t\xE9 interrompue pendant la requ\xEAte au serveur vocal.",id:"Koneksi WebSocket terputus selama permintaan server suara.",ru:"\u0421\u043E\u0435\u0434\u0438\u043D\u0435\u043D\u0438\u0435 WebSocket \u0431\u044B\u043B\u043E \u043F\u0440\u0435\u0440\u0432\u0430\u043D\u043E \u0432\u043E \u0432\u0440\u0435\u043C\u044F \u0437\u0430\u043F\u0440\u043E\u0441\u0430 \u043A \u0441\u0435\u0440\u0432\u0435\u0440\u0443 \u0433\u043E\u043B\u043E\u0441\u0430."},WS_DISCONNECT:{zh:"\u8BF7\u6C42\u8BED\u97F3\u670D\u52A1\u5668\u524D\uFF0CWebSocket \u5C31\u5DF2\u7ECF\u65AD\u5F00\u3002","zh-CHT":"\u8ACB\u6C42\u8A9E\u97F3\u670D\u52D9\u5668\u524D\uFF0CWebSocket \u5C31\u5DF2\u7D93\u65B7\u958B\u3002",en:"WebSocket was already disconnected before requesting the voice server.",ko:"\uC74C\uC131 \uC11C\uBC84\uB97C \uC694\uCCAD\uD558\uAE30 \uC804\uC5D0 WebSocket \uC5F0\uACB0\uC774 \uC774\uBBF8 \uB04A\uC5B4\uC84C\uC2B5\uB2C8\uB2E4.",ja:"\u97F3\u58F0\u30B5\u30FC\u30D0\u30FC\u3092\u30EA\u30AF\u30A8\u30B9\u30C8\u3059\u308B\u524D\u306B\u3001WebSocket\u304C\u3059\u3067\u306B\u5207\u65AD\u3055\u308C\u3066\u3044\u307E\u3057\u305F\u3002",de:"WebSocket wurde bereits vor der Anfrage an den Sprachserver getrennt.",fr:"La connexion WebSocket \xE9tait d\xE9j\xE0 interrompue avant de demander le serveur vocal.",id:"Koneksi WebSocket sudah terputus sebelum meminta server suara.",ru:"\u0421\u043E\u0435\u0434\u0438\u043D\u0435\u043D\u0438\u0435 WebSocket \u0443\u0436\u0435 \u0431\u044B\u043B\u043E \u0440\u0430\u0437\u043E\u0440\u0432\u0430\u043D\u043E \u0434\u043E \u0437\u0430\u043F\u0440\u043E\u0441\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0433\u043E\u043B\u043E\u0441\u0430."},WS_ERR:{zh:"WebSocket \u8FDE\u63A5\u53D1\u751F\u9519\u8BEF\u3002","zh-CHT":"WebSocket \u9023\u63A5\u767C\u751F\u932F\u8AA4\u3002",en:"WebSocket connection error occurred.",ko:"WebSocket \uC5F0\uACB0 \uC624\uB958\uAC00 \uBC1C\uC0DD\uD588\uC2B5\uB2C8\uB2E4.",ja:"WebSocket\u63A5\u7D9A\u30A8\u30E9\u30FC\u304C\u767A\u751F\u3057\u307E\u3057\u305F\u3002",de:"WebSocket-Verbindungsfehler ist aufgetreten.",fr:"Une erreur de connexion WebSocket s'est produite.",id:"Kesalahan koneksi WebSocket terjadi.",ru:"\u041F\u0440\u043E\u0438\u0437\u043E\u0448\u043B\u0430 \u043E\u0448\u0438\u0431\u043A\u0430 \u0441\u043E\u0435\u0434\u0438\u043D\u0435\u043D\u0438\u044F WebSocket."},ENUMERATE_DEVICES_FAILED:{zh:"\u679A\u4E3E\u672C\u5730\u8BBE\u5907\u5931\u8D25\uFF0C\u4E00\u822C\u662F\u7531\u4E8E\u6D4F\u89C8\u5668\u9650\u5236\u3002","zh-CHT":"\u679A\u8209\u672C\u5730\u8A2D\u5099\u5931\u6557\uFF0C\u4E00\u822C\u662F\u7531\u65BC\u700F\u89BD\u5668\u9650\u5236\u3002",en:"Failed to enumerate local devices, usually due to browser restrictions.",ko:"\uB85C\uCEEC \uC7A5\uCE58\uB97C \uC5F4\uAC70\uD558\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4. \uC77C\uBC18\uC801\uC73C\uB85C \uBE0C\uB77C\uC6B0\uC800 \uC81C\uD55C\uC73C\uB85C \uC778\uD574 \uBC1C\uC0DD\uD569\uB2C8\uB2E4.",ja:"\u30ED\u30FC\u30AB\u30EB\u30C7\u30D0\u30A4\u30B9\u306E\u5217\u6319\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002\u901A\u5E38\u306F\u3001\u30D6\u30E9\u30A6\u30B6\u306E\u5236\u9650\u306B\u3088\u308B\u3082\u306E\u3067\u3059\u3002",de:"Auflistung lokaler Ger\xE4te fehlgeschlagen, normalerweise aufgrund von Browser-Einschr\xE4nkungen.",fr:"\xC9chec de l'\xE9num\xE9ration des p\xE9riph\xE9riques locaux, g\xE9n\xE9ralement en raison de restrictions de navigateur.",id:"Gagal menghitung perangkat lokal. Biasanya karena pembatasan browser.",ru:"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043F\u0435\u0440\u0435\u0447\u0438\u0441\u043B\u0438\u0442\u044C \u043B\u043E\u043A\u0430\u043B\u044C\u043D\u044B\u0435 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u0430, \u043E\u0431\u044B\u0447\u043D\u043E \u0438\u0437-\u0437\u0430 \u043E\u0433\u0440\u0430\u043D\u0438\u0447\u0435\u043D\u0438\u0439 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430."},DEVICE_NOT_FOUND:{zh:"\u65E0\u6CD5\u627E\u5230\u6307\u5B9A\u8BBE\u5907\u3002","zh-CHT":"\u7121\u6CD5\u627E\u5230\u6307\u5B9A\u8A2D\u5099\u3002",en:"Specified device not found.",ko:"\uC9C0\uC815\uB41C \uC7A5\uCE58\uB97C \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",ja:"\u6307\u5B9A\u3055\u308C\u305F\u30C7\u30D0\u30A4\u30B9\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3067\u3057\u305F\u3002",de:"Das angegebene Ger\xE4t wurde nicht gefunden.",fr:"Le p\xE9riph\xE9rique sp\xE9cifi\xE9 n'a pas \xE9t\xE9 trouv\xE9.",id:"Perangkat yang ditentukan tidak ditemukan.",ru:"\u0423\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u043E."},TRACK_IS_DISABLED:{zh:"\u8F68\u9053\u88AB\u7981\u7528\uFF0C\u901A\u5E38\u56E0\u4E3A\u8F68\u9053\u8BBE\u7F6E\u4E86 Track.setEnabled(false)\u3002","zh-CHT":"\u8ECC\u9053\u88AB\u7981\u7528\uFF0C\u901A\u5E38\u662F\u56E0\u70BA\u8ECC\u9053\u8A2D\u5B9A\u4E86 Track.setEnabled(false)\u3002",en:"Track is disabled, usually because Track.setEnabled(false) was set.",ko:"\uD2B8\uB799\uC774 \uBE44\uD65C\uC131\uD654\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uC77C\uBC18\uC801\uC73C\uB85C \uD2B8\uB799\uC5D0 Track.setEnabled(false)\uAC00 \uC124\uC815\uB418\uC5C8\uAE30 \uB54C\uBB38\uC785\uB2C8\uB2E4.",ja:"\u30C8\u30E9\u30C3\u30AF\u304C\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002\u901A\u5E38\u306F\u3001\u30C8\u30E9\u30C3\u30AF\u306BTrack.setEnabled(false)\u304C\u8A2D\u5B9A\u3055\u308C\u3066\u3044\u308B\u305F\u3081\u3067\u3059\u3002",de:"Die Spur ist deaktiviert, normalerweise weil Track.setEnabled(false) gesetzt wurde.",fr:"La piste est d\xE9sactiv\xE9e, g\xE9n\xE9ralement parce que Track.setEnabled(false) a \xE9t\xE9 d\xE9fini.",id:"Trek dinonaktifkan. Biasanya karena trek memiliki Track.setEnabled(false).",ru:"\u0422\u0440\u0435\u043A \u043E\u0442\u043A\u043B\u044E\u0447\u0435\u043D, \u043E\u0431\u044B\u0447\u043D\u043E \u043F\u043E\u0442\u043E\u043C\u0443, \u0447\u0442\u043E Track.setEnabled(false) \u0431\u044B\u043B \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D."},SHARE_AUDIO_NOT_ALLOWED:{zh:"\u5C4F\u5E55\u5171\u4EAB\u97F3\u9891\u65F6\u7EC8\u7AEF\u7528\u6237\u6CA1\u6709\u70B9\u51FB\u5206\u4EAB\u97F3\u9891\u3002","zh-CHT":"\u87A2\u5E55\u5171\u4EAB\u97F3\u983B\u6642\u7D42\u7AEF\u7528\u6236\u6C92\u6709\u9EDE\u64CA\u5206\u4EAB\u97F3\u983B\u3002",en:"End user did not click to share audio during screen sharing.",ko:"\uD654\uBA74 \uACF5\uC720 \uC911\uC5D0 \uC0AC\uC6A9\uC790\uAC00 \uC624\uB514\uC624 \uACF5\uC720\uB97C \uD074\uB9AD\uD558\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4.",ja:"\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30A7\u30A2\u30EA\u30F3\u30B0\u4E2D\u306B\u3001\u30A8\u30F3\u30C9\u30E6\u30FC\u30B6\u30FC\u304C\u30AA\u30FC\u30C7\u30A3\u30AA\u3092\u5171\u6709\u3059\u308B\u3053\u3068\u3092\u30AF\u30EA\u30C3\u30AF\u3057\u306A\u304B\u3063\u305F\u305F\u3081\u3067\u3059\u3002",de:"Der Endbenutzer hat w\xE4hrend der Bildschirmfreigabe nicht auf Audio-Freigabe geklickt.",fr:"L'utilisateur final n'a pas cliqu\xE9 sur le partage audio pendant le partage d'\xE9cran.",id:"Pengguna akhir tidak mengklik bagikan audio selama berbagi layar.",ru:"\u041A\u043E\u043D\u0435\u0447\u043D\u044B\u0439 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C \u043D\u0435 \u043D\u0430\u0436\u0430\u043B \u043D\u0430 \u043A\u043D\u043E\u043F\u043A\u0443 \xAB\u041F\u043E\u0434\u0435\u043B\u0438\u0442\u044C\u0441\u044F \u0430\u0443\u0434\u0438\u043E\xBB \u0432\u043E \u0432\u0440\u0435\u043C\u044F \u043E\u0431\u043C\u0435\u043D\u0430 \u044D\u043A\u0440\u0430\u043D\u043E\u043C."},CHROME_PLUGIN_NO_RESPONSE:{zh:"Chrome \u5C4F\u5E55\u5171\u4EAB\u63D2\u4EF6\u65E0\u54CD\u5E94\u3002","zh-CHT":"Chrome \u87A2\u5E55\u5171\u4EAB\u63D2\u4EF6\u7121\u97FF\u61C9\u3002",en:"Chrome screen sharing plugin not responding.",ko:"\uD06C\uB86C \uD654\uBA74 \uACF5\uC720 \uD50C\uB7EC\uADF8\uC778\uC774 \uC751\uB2F5\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",ja:"Chrome\u306E\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30A7\u30A2\u30EA\u30F3\u30B0\u30D7\u30E9\u30B0\u30A4\u30F3\u304C\u5FDC\u7B54\u3057\u3066\u3044\u307E\u305B\u3093\u3002",de:"Chrome-Bildschirmfreigabe-Plug-in reagiert nicht.",fr:"Le plug-in de partage d'\xE9cran Chrome ne r\xE9pond pas.",id:"Plugin berbagi layar Chrome tidak merespons.",ru:"\u041F\u043B\u0430\u0433\u0438\u043D \u0434\u043B\u044F \u043E\u0431\u043C\u0435\u043D\u0430 \u044D\u043A\u0440\u0430\u043D\u043E\u043C Chrome \u043D\u0435 \u043E\u0442\u0432\u0435\u0447\u0430\u0435\u0442."},CHROME_PLUGIN_NOT_INSTALL:{zh:"Chrome \u5C4F\u5E55\u5171\u4EAB\u63D2\u4EF6\u6CA1\u6709\u5B89\u88C5\u3002","zh-CHT":"Chrome \u87A2\u5E55\u5171\u4EAB\u63D2\u4EF6\u6C92\u6709\u5B89\u88DD\u3002",en:"Chrome screen sharing plugin not installed.",ko:"\uD06C\uB86C \uD654\uBA74 \uACF5\uC720 \uD50C\uB7EC\uADF8\uC778\uC774 \uC124\uCE58\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4.",ja:"Chrome\u306E\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30A7\u30A2\u30EA\u30F3\u30B0\u30D7\u30E9\u30B0\u30A4\u30F3\u304C\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",de:"Chrome-Bildschirmfreigabe-Plug-in nicht installiert.",fr:"Le plug-in de partage d'\xE9cran Chrome n'est pas install\xE9.",id:"Plugin berbagi layar Chrome tidak terinstal.",ru:"\u041F\u043B\u0430\u0433\u0438\u043D \u0434\u043B\u044F \u043E\u0431\u043C\u0435\u043D\u0430 \u044D\u043A\u0440\u0430\u043D\u043E\u043C Chrome \u043D\u0435 \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D."},MEDIA_OPTION_INVALID:{zh:"\u4E0D\u652F\u6301\u7684\u5A92\u4F53\u91C7\u96C6\u7684\u53C2\u6570\u3002","zh-CHT":"\u4E0D\u652F\u6301\u7684\u5A92\u9AD4\u63A1\u96C6\u7684\u53C3\u6578\u3002",en:"Unsupported media capture parameters.",ko:"\uC9C0\uC6D0\uB418\uC9C0 \uC54A\uB294 \uBBF8\uB514\uC5B4 \uCEA1\uCC98 \uB9E4\uAC1C\uBCC0\uC218\uC785\uB2C8\uB2E4.",ja:"\u30B5\u30DD\u30FC\u30C8\u3055\u308C\u3066\u3044\u306A\u3044\u30E1\u30C7\u30A3\u30A2\u30AD\u30E3\u30D7\u30C1\u30E3\u30D1\u30E9\u30E1\u30FC\u30BF\u3067\u3059\u3002",de:"Nicht unterst\xFCtzte Medienaufnahmeparameter.",fr:"Param\xE8tres de capture de m\xE9dias non pris en charge.",id:"Parameter pengambilan media tidak didukung.",ru:"\u041D\u0435\u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043C\u044B\u0435 \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B \u0437\u0430\u0445\u0432\u0430\u0442\u0430 \u043C\u0435\u0434\u0438\u0430."},CONSTRAINT_NOT_SATISFIED:{zh:"\u4E0D\u652F\u6301\u7684\u5A92\u4F53\u91C7\u96C6\u7684\u53C2\u6570\u3002","zh-CHT":"\u4E0D\u652F\u6301\u7684\u5A92\u9AD4\u63A1\u96C6\u7684\u53C3\u6578\u3002",en:"Unsupported media capture parameters.",ko:"\uC9C0\uC6D0\uB418\uC9C0 \uC54A\uB294 \uBBF8\uB514\uC5B4 \uCEA1\uCC98 \uB9E4\uAC1C\uBCC0\uC218\uC785\uB2C8\uB2E4.",ja:"\u30B5\u30DD\u30FC\u30C8\u3055\u308C\u3066\u3044\u306A\u3044\u30E1\u30C7\u30A3\u30A2\u30AD\u30E3\u30D7\u30C1\u30E3\u30D1\u30E9\u30E1\u30FC\u30BF\u3067\u3059\u3002",de:"Nicht unterst\xFCtzte Medienaufnahmeparameter.",fr:"Param\xE8tres de capture de m\xE9dias non pris en charge.",id:"Parameter pengambilan media tidak didukung.",ru:"\u041D\u0435\u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043C\u044B\u0435 \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B \u0437\u0430\u0445\u0432\u0430\u0442\u0430 \u043C\u0435\u0434\u0438\u0430."},PERMISSION_DENIED:{zh:"\u83B7\u53D6\u5A92\u4F53\u8BBE\u5907\u6743\u9650\u88AB\u62D2\u7EDD\u3002","zh-CHT":"\u83B7\u53D6\u5A92\u9AD4\u8A2D\u5099\u6B0A\u9650\u88AB\u62D2\u7D55\u3002",en:"Permission to access media devices was denied.",ko:"\uBBF8\uB514\uC5B4 \uC7A5\uCE58\uC5D0 \uB300\uD55C \uAD8C\uD55C\uC774 \uAC70\uBD80\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",ja:"\u30E1\u30C7\u30A3\u30A2\u30C7\u30D0\u30A4\u30B9\u3078\u306E\u30A2\u30AF\u30BB\u30B9\u6A29\u9650\u304C\u62D2\u5426\u3055\u308C\u307E\u3057\u305F\u3002",de:"Die Erlaubnis zum Zugriff auf Medien-Ger\xE4te wurde verweigert.",fr:"L'autorisation d'acc\xE9der aux p\xE9riph\xE9riques multim\xE9dias a \xE9t\xE9 refus\xE9e.",id:"Izin mengakses perangkat media ditolak.",ru:"\u0414\u043E\u0441\u0442\u0443\u043F \u043A \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u0430\u043C \u043C\u0443\u043B\u044C\u0442\u0438\u043C\u0435\u0434\u0438\u0430 \u0431\u044B\u043B \u0437\u0430\u043F\u0440\u0435\u0449\u0435\u043D."},NOT_READABLE:{zh:"\u7528\u6237\u5DF2\u7ECF\u6388\u6743\uFF0C\u4F46\u5A92\u4F53\u8BBE\u5907\u65E0\u6CD5\u8BBF\u95EE\u3002","zh-CHT":"\u7528\u6236\u5DF2\u7D93\u6388\u6B0A\uFF0C\u4F46\u5A92\u9AD4\u8A2D\u5099\u7121\u6CD5\u5B58\u53D6\u3002",en:"User has authorized, but media device cannot be accessed.",ko:"\uC0AC\uC6A9\uC790\uAC00 \uC774\uBBF8 \uAD8C\uD55C\uC744 \uBD80\uC5EC\uD588\uC9C0\uB9CC \uBBF8\uB514\uC5B4 \uC7A5\uCE58\uC5D0 \uC561\uC138\uC2A4\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",ja:"\u30E6\u30FC\u30B6\u30FC\u306F\u3059\u3067\u306B\u6A29\u9650\u3092\u4ED8\u4E0E\u3057\u3066\u3044\u307E\u3059\u304C\u3001\u30E1\u30C7\u30A3\u30A2\u30C7\u30D0\u30A4\u30B9\u306B\u30A2\u30AF\u30BB\u30B9\u3067\u304D\u307E\u305B\u3093\u3002",de:"Der Benutzer hat bereits die Erlaubnis erteilt, aber das Medien-Ger\xE4t kann nicht zug\xE4nglich gemacht werden.",fr:"L'utilisateur a d\xE9j\xE0 autoris\xE9 l'acc\xE8s, mais le p\xE9riph\xE9rique multim\xE9dia ne peut pas \xEAtre acc\xE9d\xE9.",id:"Pengguna telah memberikan izin, tetapi perangkat media tidak dapat diakses.",ru:"\u041F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C \u0443\u0436\u0435 \u043F\u0440\u0435\u0434\u043E\u0441\u0442\u0430\u0432\u0438\u043B \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043D\u0438\u0435, \u043D\u043E \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E \u043C\u0443\u043B\u044C\u0442\u0438\u043C\u0435\u0434\u0438\u0430 \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u0431\u044B\u0442\u044C \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u043E."},FETCH_AUDIO_FILE_FAILED:{zh:"\u4E0B\u8F7D\u5728\u7EBF\u97F3\u9891\u6587\u4EF6\u5931\u8D25\u3002","zh-CHT":"\u4E0B\u8F09\u5728\u7DDA\u97F3\u983B\u6587\u4EF6\u5931\u6557\u3002",en:"Failed to download online audio file.",ko:"\uC628\uB77C\uC778 \uC624\uB514\uC624 \uD30C\uC77C \uB2E4\uC6B4\uB85C\uB4DC\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4.",ja:"\u30AA\u30F3\u30E9\u30A4\u30F3\u30AA\u30FC\u30C7\u30A3\u30AA\u30D5\u30A1\u30A4\u30EB\u306E\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002",de:"Herunterladen der Online-Audio-Datei fehlgeschlagen.",fr:"\xC9chec du t\xE9l\xE9chargement du fichier audio en ligne.",id:"Gagal mengunduh file audio online.",ru:"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0441\u043A\u0430\u0447\u0430\u0442\u044C \u0444\u0430\u0439\u043B \u0430\u0443\u0434\u0438\u043E \u043E\u043D\u043B\u0430\u0439\u043D."},READ_LOCAL_AUDIO_FILE_ERROR:{zh:"\u8BFB\u53D6\u672C\u5730\u97F3\u9891\u6587\u4EF6\u5931\u8D25\u3002","zh-CHT":"\u8B80\u53D6\u672C\u5730\u97F3\u983B\u6587\u4EF6\u5931\u6557\u3002",en:"Failed to read local audio file.",ko:"\uB85C\uCEEC \uC624\uB514\uC624 \uD30C\uC77C \uC77D\uAE30\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4.",ja:"\u30ED\u30FC\u30AB\u30EB\u30AA\u30FC\u30C7\u30A3\u30AA\u30D5\u30A1\u30A4\u30EB\u306E\u8AAD\u307F\u53D6\u308A\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002",de:"Lokale Audio-Datei konnte nicht gelesen werden.",fr:"\xC9chec de la lecture du fichier audio local.",id:"Gagal membaca file audio lokal.",ru:"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043F\u0440\u043E\u0447\u0438\u0442\u0430\u0442\u044C \u043B\u043E\u043A\u0430\u043B\u044C\u043D\u044B\u0439 \u0444\u0430\u0439\u043B \u0430\u0443\u0434\u0438\u043E."},DECODE_AUDIO_FILE_FAILED:{zh:"\u97F3\u9891\u6587\u4EF6\u89E3\u7801\u5931\u8D25\uFF0C\u53EF\u80FD\u662F\u56E0\u4E3A\u97F3\u9891\u6587\u4EF6\u7684\u7F16\u7801\u683C\u5F0F\u662F\u6D4F\u89C8\u5668 WebAudio \u4E0D\u652F\u6301\u7684\u7F16\u7801\u683C\u5F0F\u3002","zh-CHT":"\u97F3\u983B\u6587\u4EF6\u89E3\u78BC\u5931\u6557\uFF0C\u53EF\u80FD\u662F\u56E0\u70BA\u97F3\u983B\u6587\u4EF6\u7684\u7DE8\u78BC\u683C\u5F0F\u662F\u700F\u89BD\u5668 WebAudio \u4E0D\u652F\u6301\u7684\u7DE8\u78BC\u683C\u5F0F\u3002",en:"Failed to decode audio file, possibly because the audio file encoding format is not supported by browser WebAudio.",ko:"\uC624\uB514\uC624 \uD30C\uC77C \uB514\uCF54\uB529\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4. \uBE0C\uB77C\uC6B0\uC800 WebAudio\uC5D0\uC11C \uC9C0\uC6D0\uD558\uC9C0 \uC54A\uB294 \uC624\uB514\uC624 \uD30C\uC77C \uC778\uCF54\uB529 \uD615\uC2DD \uB54C\uBB38\uC77C \uC218 \uC788\uC2B5\uB2C8\uB2E4.",ja:"\u30AA\u30FC\u30C7\u30A3\u30AA\u30D5\u30A1\u30A4\u30EB\u306E\u30C7\u30B3\u30FC\u30C9\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002\u30D6\u30E9\u30A6\u30B6\u306EWebAudio\u304C\u30B5\u30DD\u30FC\u30C8\u3057\u3066\u3044\u306A\u3044\u30AA\u30FC\u30C7\u30A3\u30AA\u30D5\u30A1\u30A4\u30EB\u306E\u30A8\u30F3\u30B3\u30FC\u30C9\u5F62\u5F0F\u3067\u3042\u308B\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059\u3002",de:"Audio-Datei konnte nicht decodiert werden, m\xF6glicherweise weil das Audio-Datei-Codec-Format vom Browser-WebAudio nicht unterst\xFCtzt wird.",fr:"\xC9chec de la d\xE9codage du fichier audio, probablement parce que le format de codage du fichier audio n'est pas pris en charge par le navigateur WebAudio.",id:"Gagal mendekode file audio. Mungkin karena format enkode file audio tidak didukung oleh WebAudio browser.",ru:"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0434\u0435\u043A\u043E\u0434\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0444\u0430\u0439\u043B \u0430\u0443\u0434\u0438\u043E, \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E, \u043F\u043E\u0442\u043E\u043C\u0443 \u0447\u0442\u043E \u0444\u043E\u0440\u043C\u0430\u0442 \u043A\u043E\u0434\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0444\u0430\u0439\u043B\u0430 \u0430\u0443\u0434\u0438\u043E \u043D\u0435 \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044F \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043E\u043C WebAudio."},UID_CONFLICT:{zh:"\u540C\u4E00\u4E2A\u9891\u9053\u5185 UID \u91CD\u590D\u3002","zh-CHT":"\u540C\u4E00\u500B\u983B\u9053\u5167 UID \u91CD\u8907\u3002",en:"Duplicate UID within the same channel.",ko:"\uAC19\uC740 \uCC44\uB110 \uB0B4\uC5D0\uC11C UID\uAC00 \uC911\uBCF5\uB429\uB2C8\uB2E4.",ja:"\u540C\u3058\u30C1\u30E3\u30F3\u30CD\u30EB\u5185\u3067UID\u304C\u91CD\u8907\u3057\u3066\u3044\u307E\u3059\u3002",de:"Doppelte UID innerhalb des gleichen Kanals.",fr:"UID en double dans le m\xEAme canal.",id:"UID ganda dalam saluran yang sama.",ru:"\u0414\u0443\u0431\u043B\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435 UID \u0432 \u043E\u0434\u043D\u043E\u043C \u0438 \u0442\u043E\u043C \u0436\u0435 \u043A\u0430\u043D\u0430\u043B\u0435."},INVALID_UINT_UID_FROM_STRING_UID:{zh:"String UID \u5206\u914D\u670D\u52A1\u8FD4\u56DE\u4E86\u975E\u6CD5\u7684 int UID\u3002","zh-CHT":"String UID \u5206\u914D\u670D\u52D9\u8FD4\u56DE\u4E86\u975E\u6CD5\u7684 int UID\u3002",en:"String UID allocation service returned an invalid int UID.",ko:"\uBB38\uC790\uC5F4 UID \uD560\uB2F9 \uC11C\uBE44\uC2A4\uAC00 \uC798\uBABB\uB41C \uC815\uC218 UID\uB97C \uBC18\uD658\uD588\uC2B5\uB2C8\uB2E4.",ja:"String UID\u5272\u308A\u5F53\u3066\u30B5\u30FC\u30D3\u30B9\u304C\u7121\u52B9\u306Aint UID\u3092\u8FD4\u3057\u307E\u3057\u305F\u3002",de:"String-UID-Zuweisungsdienst hat eine ung\xFCltige int-UID zur\xFCckgegeben.",fr:"Le service d'allocation d'UID de cha\xEEne a retourn\xE9 un UID entier non valide.",id:"Layanan alokasi UID string mengembalikan UID int yang tidak valid.",ru:"\u0421\u043B\u0443\u0436\u0431\u0430 \u0440\u0430\u0441\u043F\u0440\u0435\u0434\u0435\u043B\u0435\u043D\u0438\u044F UID \u0441\u0442\u0440\u043E\u043A\u0438 \u0432\u0435\u0440\u043D\u0443\u043B\u0430 \u043D\u0435\u0434\u043E\u043F\u0443\u0441\u0442\u0438\u043C\u044B\u0439 \u0446\u0435\u043B\u043E\u0447\u0438\u0441\u043B\u0435\u043D\u043D\u044B\u0439 UID."},CAN_NOT_GET_PROXY_SERVER:{zh:"\u65E0\u6CD5\u83B7\u53D6\u4E91\u4EE3\u7406\u670D\u52A1\u5730\u5740\u3002","zh-CHT":"\u7121\u6CD5\u83B7\u53D6\u96F2\u4EE3\u7406\u670D\u52D9\u5730\u5740\u3002",en:"Unable to get cloud proxy server address.",ko:"\uD074\uB77C\uC6B0\uB4DC \uD504\uB85D\uC2DC \uC11C\uBC84 \uC8FC\uC18C\uB97C \uAC00\uC838\uC62C \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",ja:"\u30AF\u30E9\u30A6\u30C9\u30D7\u30ED\u30AD\u30B7\u30B5\u30FC\u30D0\u30FC\u306E\u30A2\u30C9\u30EC\u30B9\u3092\u53D6\u5F97\u3067\u304D\u307E\u305B\u3093\u3002",de:"Cloud-Proxy-Server-Adresse kann nicht abgerufen werden.",fr:"Impossible d'obtenir l'adresse du serveur proxy cloud.",id:"Tidak dapat mendapatkan alamat server proxy cloud.",ru:"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0430\u0434\u0440\u0435\u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043F\u0440\u043E\u043A\u0441\u0438 \u043E\u0431\u043B\u0430\u0447\u043D\u044B\u0445 \u0443\u0441\u043B\u0443\u0433."},CAN_NOT_GET_GATEWAY_SERVER:{zh:"\u65E0\u6CD5\u83B7\u53D6\u8BED\u97F3\u670D\u52A1\u5668\u5730\u5740\u3002","zh-CHT":"\u7121\u6CD5\u83B7\u53D6\u8A9E\u97F3\u670D\u52D9\u5668\u5730\u5740\u3002",en:"Unable to get voice server address.",ko:"\uC74C\uC131 \uC11C\uBC84 \uC8FC\uC18C\uB97C \uAC00\uC838\uC62C \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",ja:"\u97F3\u58F0\u30B5\u30FC\u30D0\u30FC\u306E\u30A2\u30C9\u30EC\u30B9\u3092\u53D6\u5F97\u3067\u304D\u307E\u305B\u3093\u3002",de:"Sprachserver-Adresse kann nicht abgerufen werden.",fr:"Impossible d'obtenir l'adresse du serveur vocal.",id:"Tidak dapat mendapatkan alamat server suara.",ru:"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0430\u0434\u0440\u0435\u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0433\u043E\u043B\u043E\u0441\u0430."},INVALID_LOCAL_TRACK:{zh:"\u4F20\u5165\u4E86\u975E\u6CD5\u7684 LocalTrack\u3002","zh-CHT":"\u50B3\u5165\u4E86\u975E\u6CD5\u7684 LocalTrack\u3002",en:"Invalid LocalTrack passed.",ko:"\uC798\uBABB\uB41C \uB85C\uCEEC \uD2B8\uB799\uC774 \uC804\uB2EC\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",ja:"\u7121\u52B9\u306ALocalTrack\u304C\u6E21\u3055\u308C\u307E\u3057\u305F\u3002",de:"Ung\xFCltiger LocalTrack \xFCbergeben.",fr:"Piste locale invalide transmise.",id:"Trek lokal tidak valid dilewatkan.",ru:"\u041F\u0435\u0440\u0435\u0434\u0430\u043D \u043D\u0435\u0434\u043E\u043F\u0443\u0441\u0442\u0438\u043C\u044B\u0439 LocalTrack."},CAN_NOT_PUBLISH_MULTIPLE_VIDEO_TRACKS:{zh:"\u4E00\u4E2A Client \u53D1\u5E03\u591A\u4E2A\u89C6\u9891\u8F68\u9053\u3002","zh-CHT":"\u4E00\u500B Client \u767C\u5E03\u591A\u500B\u8996\u983B\u8ECC\u9053\u3002",en:"A Client publishing multiple video tracks.",ko:"\uD074\uB77C\uC774\uC5B8\uD2B8\uAC00 \uC5EC\uB7EC \uBE44\uB514\uC624 \uD2B8\uB799\uC744 \uBC1C\uD589\uD569\uB2C8\uB2E4.",ja:"\u30AF\u30E9\u30A4\u30A2\u30F3\u30C8\u304C\u8907\u6570\u306E\u30D3\u30C7\u30AA\u30C8\u30E9\u30C3\u30AF\u3092\u516C\u958B\u3057\u3066\u3044\u307E\u3059\u3002",de:"Ein Client ver\xF6ffentlicht mehrere Videospuren.",fr:"Un client publie plusieurs pistes vid\xE9o.",id:"Klien menerbitkan beberapa trek video.",ru:"\u041A\u043B\u0438\u0435\u043D\u0442 \u043F\u0443\u0431\u043B\u0438\u043A\u0443\u0435\u0442 \u043D\u0435\u0441\u043A\u043E\u043B\u044C\u043A\u043E \u0432\u0438\u0434\u0435\u043E\u0434\u043E\u0440\u043E\u0436\u0435\u043A."},INVALID_REMOTE_USER:{zh:"\u975E\u6CD5\u7684\u8FDC\u7AEF\u7528\u6237\uFF0C\u53EF\u80FD\u662F\u8FDC\u7AEF\u7528\u6237\u4E0D\u5728\u9891\u9053\u5185\u6216\u8FD8\u672A\u53D1\u5E03\u4EFB\u4F55\u5A92\u4F53\u8F68\u9053\u3002","zh-CHT":"\u975E\u6CD5\u7684\u9060\u7AEF\u7528\u6236\uFF0C\u53EF\u80FD\u662F\u9060\u7AEF\u7528\u6236\u4E0D\u5728\u983B\u9053\u5167\u6216\u9084\u672A\u767C\u5E03\u4EFB\u4F55\u5A92\u9AD4\u8ECC\u9053\u3002",en:"Invalid remote user, possibly because the remote user is not in the channel or has not published any media tracks.",ko:"\uC798\uBABB\uB41C \uC6D0\uACA9 \uC0AC\uC6A9\uC790\uC785\uB2C8\uB2E4. \uC6D0\uACA9 \uC0AC\uC6A9\uC790\uAC00 \uCC44\uB110\uC5D0 \uC788\uC9C0 \uC54A\uAC70\uB098 \uBBF8\uB514\uC5B4 \uD2B8\uB799\uC744 \uBC1C\uD589\uD558\uC9C0 \uC54A\uC558\uC744 \uC218 \uC788\uC2B5\uB2C8\uB2E4.",ja:"\u7121\u52B9\u306A\u30EA\u30E2\u30FC\u30C8\u30E6\u30FC\u30B6\u30FC\u3067\u3059\u3002\u30EA\u30E2\u30FC\u30C8\u30E6\u30FC\u30B6\u30FC\u304C\u30C1\u30E3\u30F3\u30CD\u30EB\u306B\u3044\u306A\u3044\u304B\u3001\u30E1\u30C7\u30A3\u30A2\u30C8\u30E9\u30C3\u30AF\u3092\u516C\u958B\u3057\u3066\u3044\u306A\u3044\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059\u3002",de:"Ung\xFCltiger Remote-Benutzer, m\xF6glicherweise weil der Remote-Benutzer sich nicht im Kanal befindet oder noch keine Medien-Spuren ver\xF6ffentlicht hat.",fr:"Utilisateur distant invalide, probablement parce que l'utilisateur distant n'est pas dans le canal ou n'a pas publi\xE9 de pistes multim\xE9dias.",id:"Pengguna jarak jauh tidak valid. Mungkin karena pengguna jarak jauh tidak berada di saluran atau belum menerbitkan trek media apa pun.",ru:"\u041D\u0435\u0434\u043E\u043F\u0443\u0441\u0442\u0438\u043C\u044B\u0439 \u0443\u0434\u0430\u043B\u0435\u043D\u043D\u044B\u0439 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C, \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E, \u043F\u043E\u0442\u043E\u043C\u0443 \u0447\u0442\u043E \u0443\u0434\u0430\u043B\u0435\u043D\u043D\u044B\u0439 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C \u043D\u0435 \u043D\u0430\u0445\u043E\u0434\u0438\u0442\u0441\u044F \u0432 \u043A\u0430\u043D\u0430\u043B\u0435 \u0438\u043B\u0438 \u0435\u0449\u0435 \u043D\u0435 \u043E\u043F\u0443\u0431\u043B\u0438\u043A\u043E\u0432\u0430\u043B \u043D\u0438 \u043E\u0434\u043D\u043E\u0439 \u0434\u043E\u0440\u043E\u0436\u043A\u0438 \u043C\u0443\u043B\u044C\u0442\u0438\u043C\u0435\u0434\u0438\u0430."},REMOTE_USER_IS_NOT_PUBLISHED:{zh:"\u8FDC\u7AEF\u7528\u6237\u5DF2\u53D1\u5E03\u4E86\u97F3\u9891\u6216\u89C6\u9891\u8F68\u9053\uFF0C\u4F46\u4E0D\u662F\u4E0E\u4F60\u7684\u8BA2\u9605\u64CD\u4F5C\u6240\u6307\u5B9A\u7684\u7C7B\u578B\u4E0D\u7B26\u3002","zh-CHT":"\u9060\u7AEF\u7528\u6236\u5DF2\u767C\u5E03\u4E86\u97F3\u983B\u6216\u8996\u983B\u8ECC\u9053\uFF0C\u4F46\u4E0D\u662F\u8207\u4F60\u7684\u8A02\u95B1\u64CD\u4F5C\u6240\u6307\u5B9A\u7684\u985E\u578B\u4E0D\u7B26\u3002",en:"Remote user has published audio or video tracks, but not of the type specified by your subscription operation.",ko:"\uC6D0\uACA9 \uC0AC\uC6A9\uC790\uAC00 \uC624\uB514\uC624 \uB610\uB294 \uBE44\uB514\uC624 \uD2B8\uB799\uC744 \uBC1C\uD589\uD588\uC9C0\uB9CC \uAD6C\uB3C5 \uC791\uC5C5\uC5D0\uC11C \uC9C0\uC815\uD55C \uC720\uD615\uACFC \uC77C\uCE58\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",ja:"\u30EA\u30E2\u30FC\u30C8\u30E6\u30FC\u30B6\u30FC\u306F\u30AA\u30FC\u30C7\u30A3\u30AA\u307E\u305F\u306F\u30D3\u30C7\u30AA\u30C8\u30E9\u30C3\u30AF\u3092\u516C\u958B\u3057\u3066\u3044\u307E\u3059\u304C\u3001\u30B5\u30D6\u30B9\u30AF\u30EA\u30D7\u30B7\u30E7\u30F3\u64CD\u4F5C\u3067\u6307\u5B9A\u3055\u308C\u305F\u30BF\u30A4\u30D7\u3068\u4E00\u81F4\u3057\u307E\u305B\u3093\u3002",de:"Der Remote-Benutzer hat Audio- oder Videospuren ver\xF6ffentlicht, aber nicht vom Typ, der durch Ihren Abonnementvorgang angegeben wurde.",fr:"L'utilisateur distant a publi\xE9 des pistes audio ou vid\xE9o, mais pas du type sp\xE9cifi\xE9 par votre op\xE9ration d'abonnement.",id:"Pengguna jarak jauh telah menerbitkan trek audio atau video, tetapi tidak sesuai dengan jenis yang ditentukan oleh operasi berlangganan Anda.",ru:"\u0423\u0434\u0430\u043B\u0435\u043D\u043D\u044B\u0439 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C \u043E\u043F\u0443\u0431\u043B\u0438\u043A\u043E\u0432\u0430\u043B \u0430\u0443\u0434\u0438\u043E- \u0438\u043B\u0438 \u0432\u0438\u0434\u0435\u043E\u0434\u043E\u0440\u043E\u0436\u043A\u0438, \u043D\u043E \u043D\u0435 \u0442\u043E\u0433\u043E \u0442\u0438\u043F\u0430, \u043A\u043E\u0442\u043E\u0440\u044B\u0439 \u0443\u043A\u0430\u0437\u0430\u043D \u0432 \u0432\u0430\u0448\u0435\u0439 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438 \u043F\u043E\u0434\u043F\u0438\u0441\u043A\u0438."},ERR_TOO_MANY_BROADCASTERS:{zh:"\u9891\u9053\u5185\u4E3B\u64AD\u4EBA\u6570\u8D85\u8FC7\u4E0A\u9650\u3002","zh-CHT":"\u983B\u9053\u5167\u4E3B\u64AD\u4EBA\u6578\u8D85\u904E\u4E0A\u9650\u3002",en:"Number of broadcasters in the channel exceeds the limit.",ko:"\uCC44\uB110 \uB0B4 \uBC29\uC1A1\uC790 \uC218\uB294 \uC81C\uD55C\uC744 \uCD08\uACFC\uD588\uC2B5\uB2C8\uB2E4.",ja:"\u30C1\u30E3\u30F3\u30CD\u30EB\u5185\u306E\u30D6\u30ED\u30FC\u30C9\u30AD\u30E3\u30B9\u30BF\u30FC\u306E\u6570\u304C\u4E0A\u9650\u3092\u8D85\u3048\u3066\u3044\u307E\u3059\u3002",de:"Die Anzahl der Broadcaster im Kanal \xFCberschreitet das Limit.",fr:"Le nombre de diffuseurs dans le canal d\xE9passe la limite.",id:"Jumlah penyiar di saluran melebihi batas.",ru:"\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u0432\u0435\u0449\u0430\u0442\u0435\u043B\u0435\u0439 \u0432 \u043A\u0430\u043D\u0430\u043B\u0435 \u043F\u0440\u0435\u0432\u044B\u0448\u0430\u0435\u0442 \u043F\u0440\u0435\u0434\u0435\u043B."},ERR_TOO_MANY_SUBSCRIBERS:{zh:"\u5F53\u524D\u7528\u6237\u8BA2\u9605\u7684\u4E3B\u64AD\u4EBA\u6570\u8D85\u8FC7\u4E0A\u9650\u3002","zh-CHT":"\u7576\u524D\u7528\u6236\u8A02\u95B1\u7684\u4E3B\u64AD\u4EBA\u6578\u8D85\u904E\u4E0A\u9650\u3002",en:"Number of subscribers to the current user's channel exceeds the limit.",ko:"\uD604\uC7AC \uC0AC\uC6A9\uC790\uC758 \uCC44\uB110 \uAD6C\uB3C5\uC790 \uC218\uB294 \uC81C\uD55C\uC744 \uCD08\uACFC\uD588\uC2B5\uB2C8\uB2E4.",ja:"\u73FE\u5728\u306E\u30E6\u30FC\u30B6\u30FC\u306E\u30C1\u30E3\u30F3\u30CD\u30EB\u306E\u30B5\u30D6\u30B9\u30AF\u30E9\u30A4\u30D0\u30FC\u6570\u304C\u4E0A\u9650\u3092\u8D85\u3048\u3066\u3044\u307E\u3059\u3002",de:"Die Anzahl der Abonnenten des aktuellen Benutzers \xFCberschreitet das Limit.",fr:"Le nombre d'abonn\xE9s du canal de l'utilisateur actuel d\xE9passe la limite.",id:"Jumlah pelanggan saluran pengguna saat ini melebihi batas.",ru:"\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u043F\u043E\u0434\u043F\u0438\u0441\u0447\u0438\u043A\u043E\u0432 \u043A\u0430\u043D\u0430\u043B\u0430 \u0442\u0435\u043A\u0443\u0449\u0435\u0433\u043E \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F \u043F\u0440\u0435\u0432\u044B\u0448\u0430\u0435\u0442 \u043F\u0440\u0435\u0434\u0435\u043B."},LIVE_STREAMING_TASK_CONFLICT:{zh:"\u63A8\u6D41\u4EFB\u52A1\u5DF2\u7ECF\u5B58\u5728\u3002","zh-CHT":"\u63A8\u6D41\u4EFB\u52D9\u5DF2\u7D93\u5B58\u5728\u3002",en:"Live streaming task already exists.",ko:"\uB77C\uC774\uBE0C \uC2A4\uD2B8\uB9AC\uBC0D \uC791\uC5C5\uC774 \uC774\uBBF8 \uC874\uC7AC\uD569\uB2C8\uB2E4.",ja:"\u30E9\u30A4\u30D6\u30B9\u30C8\u30EA\u30FC\u30DF\u30F3\u30B0\u30BF\u30B9\u30AF\u304C\u3059\u3067\u306B\u5B58\u5728\u3057\u307E\u3059\u3002",de:"Live-Streaming-Aufgabe existiert bereits.",fr:"La t\xE2che de diffusion en direct existe d\xE9j\xE0.",id:"Tugas streaming langsung sudah ada.",ru:"\u0417\u0430\u0434\u0430\u0447\u0430 \u043F\u0440\u044F\u043C\u043E\u0439 \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u0438 \u0443\u0436\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442."},LIVE_STREAMING_INVALID_ARGUMENT:{zh:"\u63A8\u6D41\u53C2\u6570\u9519\u8BEF\u3002","zh-CHT":"\u63A8\u6D41\u53C3\u6578\u932F\u8AA4\u3002",en:"Invalid live streaming argument.",ko:"\uB77C\uC774\uBE0C \uC2A4\uD2B8\uB9AC\uBC0D \uC778\uC218\uAC00 \uC798\uBABB\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",ja:"\u30E9\u30A4\u30D6\u30B9\u30C8\u30EA\u30FC\u30DF\u30F3\u30B0\u5F15\u6570\u304C\u7121\u52B9\u3067\u3059\u3002",de:"Ung\xFCltiger Live-Streaming-Parameter.",fr:"Argument de diffusion en direct invalide.",id:"Argumen streaming langsung tidak valid.",ru:"\u041D\u0435\u0434\u043E\u043F\u0443\u0441\u0442\u0438\u043C\u044B\u0439 \u0430\u0440\u0433\u0443\u043C\u0435\u043D\u0442 \u043F\u0440\u044F\u043C\u043E\u0439 \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u0438."},LIVE_STREAMING_INTERNAL_SERVER_ERROR:{zh:"\u63A8\u6D41\u670D\u52A1\u5668\u5185\u90E8\u9519\u8BEF\u3002","zh-CHT":"\u63A8\u6D41\u670D\u52D9\u5668\u5185\u90E8\u932F\u8AA4\u3002",en:"Live streaming server internal error.",ko:"\uB77C\uC774\uBE0C \uC2A4\uD2B8\uB9AC\uBC0D \uC11C\uBC84 \uB0B4\uBD80 \uC624\uB958\uC785\uB2C8\uB2E4.",ja:"\u30E9\u30A4\u30D6\u30B9\u30C8\u30EA\u30FC\u30DF\u30F3\u30B0\u30B5\u30FC\u30D0\u30FC\u306E\u5185\u90E8\u30A8\u30E9\u30FC\u3067\u3059\u3002",de:"Interner Fehler des Live-Streaming-Servers.",fr:"Erreur interne du serveur de diffusion en direct.",id:"Kesalahan internal server streaming langsung.",ru:"\u0412\u043D\u0443\u0442\u0440\u0435\u043D\u043D\u044F\u044F \u043E\u0448\u0438\u0431\u043A\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043F\u0440\u044F\u043C\u043E\u0439 \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u0438."},LIVE_STREAMING_PUBLISH_STREAM_NOT_AUTHORIZED:{zh:"\u63A8\u6D41 URL \u88AB\u5360\u7528\u3002","zh-CHT":"\u63A8\u6D41 URL \u88AB\u4F54\u7528\u3002",en:"Live streaming URL is occupied.",ko:"\uB77C\uC774\uBE0C \uC2A4\uD2B8\uB9AC\uBC0D URL\uC774 \uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC785\uB2C8\uB2E4.",ja:"\u30E9\u30A4\u30D6\u30B9\u30C8\u30EA\u30FC\u30DF\u30F3\u30B0URL\u306F\u3059\u3067\u306B\u5360\u6709\u3055\u308C\u3066\u3044\u307E\u3059\u3002",de:"Live-Streaming-URL ist besetzt.",fr:"L'URL de diffusion en direct est occup\xE9e.",id:"URL streaming langsung sudah digunakan.",ru:"URL \u043F\u0440\u044F\u043C\u043E\u0439 \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u0438 \u0443\u0436\u0435 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0435\u0442\u0441\u044F."},LIVE_STREAMING_CDN_ERROR:{zh:"\u63A8\u6D41\u7684\u76EE\u6807 CDN \u51FA\u73B0\u9519\u8BEF\u5BFC\u81F4\u63A8\u6D41\u5931\u8D25\u3002","zh-CHT":"\u63A8\u6D41\u7684\u76EE\u6A19 CDN \u51FA\u73FE\u932F\u8AA4\u5C0E\u81F4\u63A8\u6D41\u5931\u6557\u3002",en:"Live streaming failed due to error in target CDN.",ko:"\uB300\uC0C1 CDN\uC5D0\uC11C \uC624\uB958\uAC00 \uBC1C\uC0DD\uD558\uC5EC \uB77C\uC774\uBE0C \uC2A4\uD2B8\uB9AC\uBC0D\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4.",ja:"\u30BF\u30FC\u30B2\u30C3\u30C8CDN\u306E\u30A8\u30E9\u30FC\u306B\u3088\u308A\u3001\u30E9\u30A4\u30D6\u30B9\u30C8\u30EA\u30FC\u30DF\u30F3\u30B0\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002",de:"Live-Streaming fehlgeschlagen aufgrund eines Fehlers im Ziel-CDN.",fr:"La diffusion en direct a \xE9chou\xE9 en raison d'une erreur dans le CDN cible.",id:"Streaming langsung gagal karena kesalahan di CDN target.",ru:"\u041F\u0440\u044F\u043C\u0430\u044F \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u043D\u0435 \u0443\u0434\u0430\u043B\u0430\u0441\u044C \u0438\u0437-\u0437\u0430 \u043E\u0448\u0438\u0431\u043A\u0438 \u0432 \u0446\u0435\u043B\u0435\u0432\u043E\u043C CDN."},LIVE_STREAMING_INVALID_RAW_STREAM:{zh:"\u63A8\u6D41\u8D85\u65F6\u3002","zh-CHT":"\u63A8\u6D41\u8D85\u6642\u3002",en:"Live streaming timed out.",ko:"\uB77C\uC774\uBE0C \uC2A4\uD2B8\uB9AC\uBC0D\uC774 \uC2DC\uAC04 \uCD08\uACFC\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",ja:"\u30E9\u30A4\u30D6\u30B9\u30C8\u30EA\u30FC\u30DF\u30F3\u30B0\u304C\u30BF\u30A4\u30E0\u30A2\u30A6\u30C8\u3057\u307E\u3057\u305F\u3002",de:"Live-Streaming hat einen Timeout erreicht.",fr:"La diffusion en direct a expir\xE9.",id:"Streaming langsung telah kedaluwarsa.",ru:"\u041F\u0440\u044F\u043C\u0430\u044F \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F timed out."},CROSS_CHANNEL_WAIT_STATUS_ERROR:{zh:"\u7B49\u5F85 RTCClient.on(channel-media-relay-state) \u56DE\u8C03\u51FA\u9519\u3002","zh-CHT":"\u7B49\u5F85 RTCClient.on(channel-media-relay-state) \u56DE\u8ABF\u51FA\u932F\u3002",en:"Error waiting for RTCClient.on(channel-media-relay-state) callback.",ko:"RTCClient.on(channel-media-relay-state) \uCF5C\uBC31\uC744 \uAE30\uB2E4\uB9AC\uB294 \uB3D9\uC548 \uC624\uB958\uAC00 \uBC1C\uC0DD\uD588\uC2B5\uB2C8\uB2E4.",ja:"RTCClient.on(channel-media-relay-state)\u30B3\u30FC\u30EB\u30D0\u30C3\u30AF\u3092\u5F85\u6A5F\u4E2D\u306B\u30A8\u30E9\u30FC\u304C\u767A\u751F\u3057\u307E\u3057\u305F\u3002",de:"Fehler beim Warten auf den RTCClient.on(channel-media-relay-state)-R\xFCckruf.",fr:"Erreur lors de l'attente du rappel RTCClient.on(channel-media-relay-state).",id:"Kesalahan saat menunggu panggilan balik RTCClient.on(channel-media-relay-state).",ru:"\u041E\u0448\u0438\u0431\u043A\u0430 \u043F\u0440\u0438 \u043E\u0436\u0438\u0434\u0430\u043D\u0438\u0438 \u043E\u0431\u0440\u0430\u0442\u043D\u043E\u0433\u043E \u0432\u044B\u0437\u043E\u0432\u0430 RTCClient.on(channel-media-relay-state)."},CROSS_CHANNEL_FAILED_JOIN_SRC:{zh:"\u53D1\u8D77\u8DE8\u9891\u9053\u8F6C\u53D1\u5A92\u4F53\u6D41\u8BF7\u6C42\u5931\u8D25\u3002","zh-CHT":"\u767C\u8D77\u8DE8\u983B\u9053\u8F49\u767C\u5A92\u9AD4\u6D41\u8ACB\u6C42\u5931\u6557\u3002",en:"Failed to initiate cross-channel media stream forwarding request.",ko:"\uCC44\uB110 \uAC04 \uBBF8\uB514\uC5B4 \uC2A4\uD2B8\uB9BC \uC804\uB2EC \uC694\uCCAD\uC744 \uC2DC\uC791\uD558\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.",ja:"\u30C1\u30E3\u30F3\u30CD\u30EB\u9593\u30E1\u30C7\u30A3\u30A2\u30B9\u30C8\u30EA\u30FC\u30E0\u8EE2\u9001\u30EA\u30AF\u30A8\u30B9\u30C8\u306E\u958B\u59CB\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002",de:"Fehler beim Initiieren einer Anfrage zur Weiterleitung von Medienstr\xF6men zwischen Kan\xE4len.",fr:"\xC9chec de l'initialisation de la demande de transfert de flux multim\xE9dia entre canaux.",id:"Gagal memulai permintaan pengalihan aliran media antar saluran.",ru:"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0438\u043D\u0438\u0446\u0438\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0437\u0430\u043F\u0440\u043E\u0441 \u043D\u0430 \u043F\u0435\u0440\u0435\u0441\u044B\u043B\u043A\u0443 \u043F\u043E\u0442\u043E\u043A\u0430 \u043C\u0443\u043B\u044C\u0442\u0438\u043C\u0435\u0434\u0438\u0430 \u043C\u0435\u0436\u0434\u0443 \u043A\u0430\u043D\u0430\u043B\u0430\u043C\u0438."},CROSS_CHANNEL_FAILED_JOIN_DEST:{zh:"\u63A5\u53D7\u8DE8\u9891\u9053\u8F6C\u53D1\u5A92\u4F53\u6D41\u8BF7\u6C42\u5931\u8D25\u3002","zh-CHT":"\u63A5\u53D7\u8DE8\u983B\u9053\u8F49\u767C\u5A92\u9AD4\u6D41\u8ACB\u6C42\u5931\u6557\u3002",en:"Failed to accept cross-channel media stream forwarding request.",ko:"\uCC44\uB110 \uAC04 \uBBF8\uB514\uC5B4 \uC2A4\uD2B8\uB9BC \uC804\uB2EC \uC694\uCCAD\uC744 \uC218\uB77D\uD558\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.",ja:"\u30C1\u30E3\u30F3\u30CD\u30EB\u9593\u30E1\u30C7\u30A3\u30A2\u30B9\u30C8\u30EA\u30FC\u30E0\u8EE2\u9001\u30EA\u30AF\u30A8\u30B9\u30C8\u306E\u53D7\u3051\u5165\u308C\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002",de:"Fehler beim Akzeptieren einer Anfrage zur Weiterleitung von Medienstr\xF6men zwischen Kan\xE4len.",fr:"\xC9chec de l'acceptation de la demande de transfert de flux multim\xE9dia entre canaux.",id:"Gagal menerima permintaan pengalihan aliran media antar saluran.",ru:"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043F\u0440\u0438\u043D\u044F\u0442\u044C \u0437\u0430\u043F\u0440\u043E\u0441 \u043D\u0430 \u043F\u0435\u0440\u0435\u0441\u044B\u043B\u043A\u0443 \u043F\u043E\u0442\u043E\u043A\u0430 \u043C\u0443\u043B\u044C\u0442\u0438\u043C\u0435\u0434\u0438\u0430 \u043C\u0435\u0436\u0434\u0443 \u043A\u0430\u043D\u0430\u043B\u0430\u043C\u0438."},CROSS_CHANNEL_FAILED_PACKET_SENT_TO_DEST:{zh:"\u670D\u52A1\u5668\u63A5\u6536\u8DE8\u9891\u9053\u8F6C\u53D1\u5A92\u4F53\u6D41\u5931\u8D25\u3002","zh-CHT":"\u670D\u52D9\u5668\u63A5\u6536\u8DE8\u983B\u9053\u8F49\u767C\u5A92\u9AD4\u6D41\u5931\u6557\u3002",en:"Server failed to receive cross-channel forwarded media stream.",ko:"\uC11C\uBC84\uAC00 \uCC44\uB110 \uAC04 \uC804\uB2EC\uB41C \uBBF8\uB514\uC5B4 \uC2A4\uD2B8\uB9BC\uC744 \uC218\uC2E0\uD558\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.",ja:"\u30B5\u30FC\u30D0\u30FC\u304C\u30C1\u30E3\u30F3\u30CD\u30EB\u9593\u8EE2\u9001\u3055\u308C\u305F\u30E1\u30C7\u30A3\u30A2\u30B9\u30C8\u30EA\u30FC\u30E0\u306E\u53D7\u4FE1\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002",de:"Server konnte den zwischen Kan\xE4len weitergeleiteten Medienstrom nicht empfangen.",fr:"Le serveur n'a pas pu recevoir le flux multim\xE9dia transf\xE9r\xE9 entre canaux.",id:"Server gagal menerima aliran media yang dikirimkan antar saluran.",ru:"\u0421\u0435\u0440\u0432\u0435\u0440 \u043D\u0435 \u0441\u043C\u043E\u0433 \u043F\u0440\u0438\u043D\u044F\u0442\u044C \u043F\u043E\u0442\u043E\u043A \u043C\u0443\u043B\u044C\u0442\u0438\u043C\u0435\u0434\u0438\u0430, \u043F\u0435\u0440\u0435\u0441\u043B\u0430\u043D\u043D\u044B\u0439 \u043C\u0435\u0436\u0434\u0443 \u043A\u0430\u043D\u0430\u043B\u0430\u043C\u0438."},CROSS_CHANNEL_SERVER_ERROR_RESPONSE:{zh:"\u670D\u52A1\u5668\u54CD\u5E94\u51FA\u9519\u3002","zh-CHT":"\u670D\u52D9\u5668\u97FF\u61C9\u51FA\u932F\u3002",en:"Server response error.",ko:"\uC11C\uBC84 \uC751\uB2F5 \uC624\uB958\uC785\uB2C8\uB2E4.",ja:"\u30B5\u30FC\u30D0\u30FC\u306E\u30EC\u30B9\u30DD\u30F3\u30B9\u30A8\u30E9\u30FC\u3067\u3059\u3002",de:"Server-Antwortfehler.",fr:"Erreur de r\xE9ponse du serveur.",id:"Kesalahan respons server.",ru:"\u041E\u0448\u0438\u0431\u043A\u0430 \u043E\u0442\u0432\u0435\u0442\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0430."}},$t=(e,s)=>{const t=Qd[e];return t?t[s]||t.en:null};var Xd=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"meeting-warp"},[t("Modal",{attrs:{title:e.$L(e.addData.type==="join"?"\u52A0\u5165\u4F1A\u8BAE":"\u65B0\u4F1A\u8BAE"),"mask-closable":!1,closable:!e.addData.sharekey},model:{value:e.addShow,callback:function(i){e.addShow=i},expression:"addShow"}},[t("Form",e._b({ref:"addForm",attrs:{model:e.addData,rules:e.addRule},nativeOn:{submit:function(i){i.preventDefault()}}},"Form",e.formOptions,!1),[e.addData.type==="join"?[e.addData.name?t("FormItem",{attrs:{prop:"userids",label:e.$L("\u4F1A\u8BAE\u4E3B\u9898")}},[t("Input",{attrs:{disabled:""},model:{value:e.addData.name,callback:function(i){e.$set(e.addData,"name",i)},expression:"addData.name"}})],1):e._e(),e.addData.sharekey?t("FormItem",{attrs:{prop:"username",label:e.$L("\u4F60\u7684\u59D3\u540D")}},[t("Input",{attrs:{placeholder:e.$L("\u8BF7\u8F93\u5165\u4F60\u7684\u59D3\u540D")},model:{value:e.addData.username,callback:function(i){e.$set(e.addData,"username",i)},expression:"addData.username"}})],1):e._e(),t("FormItem",{attrs:{prop:"meetingid",label:e.$L("\u4F1A\u8BAE\u9891\u9053ID")}},[t("Input",{attrs:{disabled:e.addData.meetingdisabled===!0,placeholder:e.$L("\u8BF7\u8F93\u5165\u4F1A\u8BAE\u9891\u9053ID")},model:{value:e.addData.meetingid,callback:function(i){e.$set(e.addData,"meetingid",i)},expression:"addData.meetingid"}})],1)]:[t("FormItem",{attrs:{prop:"name",label:e.$L("\u4F1A\u8BAE\u4E3B\u9898")}},[t("Input",{attrs:{maxlength:50,placeholder:e.$L("\u9009\u586B")},model:{value:e.addData.name,callback:function(i){e.$set(e.addData,"name",i)},expression:"addData.name"}})],1),t("FormItem",{attrs:{prop:"userids",label:e.$L("\u9080\u8BF7\u6210\u5458")}},[t("UserSelect",{attrs:{uncancelable:[e.userId],"multiple-max":20,title:e.$L("\u9009\u62E9\u9080\u8BF7\u6210\u5458")},model:{value:e.addData.userids,callback:function(i){e.$set(e.addData,"userids",i)},expression:"addData.userids"}})],1)],t("FormItem",{attrs:{prop:"tracks"}},[t("CheckboxGroup",{model:{value:e.addData.tracks,callback:function(i){e.$set(e.addData,"tracks",i)},expression:"addData.tracks"}},[t("Checkbox",{attrs:{label:"audio"}},[t("span",[e._v(e._s(e.$L("\u9EA6\u514B\u98CE")))])]),t("Checkbox",{attrs:{label:"video"}},[t("span",[e._v(e._s(e.$L("\u6444\u50CF\u5934")))])])],1)],1)],2),t("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e.addData.sharekey?e._e():t("Button",{attrs:{type:"default"},on:{click:function(i){e.addShow=!1}}},[e._v(e._s(e.$L("\u53D6\u6D88")))]),t("Button",{attrs:{type:"primary",loading:e.loadIng>0},on:{click:e.onSubmit}},[e._v(e._s(e.$L(e.addData.type==="join"?"\u52A0\u5165\u4F1A\u8BAE":"\u5F00\u59CB\u4F1A\u8BAE")))])],1)],1),t("Modal",{ref:"meetingModal",attrs:{title:e.addData.name,mask:!1,"mask-closable":!1,closable:!1,"transition-names":["",""],beforeClose:e.onClose,"class-name":`meeting-manager${e.meetingMini?" meeting-hidden":""}`,"ignore-remove-last":e.meetingMini,fullscreen:""},model:{value:e.meetingShow,callback:function(i){e.meetingShow=i},expression:"meetingShow"}},[t("ul",[e.localUser.uid?t("li",[t("Player",{attrs:{player:e.localUser,isLocal:""}})],1):e._e(),e._l(e.remoteUsers,function(i){return t("li",[t("Player",{attrs:{player:i}})],1)})],2),t("div",{staticClass:"adaption meeting-button-group",attrs:{slot:"footer"},slot:"footer"},[t("Button",{attrs:{type:"primary",loading:e.audioLoad},on:{click:e.onAudio}},[t("i",{staticClass:"taskfont",domProps:{innerHTML:e._s(e.localUser.audioTrack?"":"")}})]),t("Button",{attrs:{type:"primary",loading:e.videoLoad},on:{click:e.onVideo}},[t("i",{staticClass:"taskfont",domProps:{innerHTML:e._s(e.localUser.videoTrack?"":"")}})]),e.windowPortrait?[t("Button",{attrs:{type:"primary",loading:e.linkCopyLoad},on:{click:function(i){return e.onInvitation("open")}}},[t("i",{staticClass:"taskfont"},[e._v("\uE646")])]),e.addData.sharekey?e._e():t("Button",{attrs:{type:"primary"},on:{click:function(i){e.meetingMini=!0}}},[t("i",{staticClass:"taskfont"},[e._v("\uE656")])]),t("Button",{attrs:{type:"warning",loading:e.loadIng>0},on:{click:e.onClose}},[t("i",{staticClass:"taskfont"},[e._v("\uE612")])])]:[t("Button",{attrs:{type:"primary"},on:{click:function(i){return e.onInvitation("open")}}},[e._v(e._s(e.$L("\u9080\u8BF7")))]),e.addData.sharekey?e._e():t("Button",{attrs:{type:"primary"},on:{click:function(i){e.meetingMini=!0}}},[e._v(e._s(e.$L("\u6700\u5C0F\u5316")))]),t("Button",{attrs:{type:"warning",loading:e.loadIng>0},on:{click:e.onClose}},[e._v(e._s(e.$L("\u79BB\u5F00\u4F1A\u8BAE")))])]],2)]),e.meetingMini?t("DragBallComponent",{attrs:{id:"meetingDragBall","z-index":3e3},on:{"on-click":function(i){e.meetingMini=!1}}},[t("div",{staticClass:"meeting-drag-ball"},[t("i",{staticClass:"taskfont",domProps:{innerHTML:e._s(e.localUser.audioTrack?"":"")}}),t("i",{staticClass:"taskfont",domProps:{innerHTML:e._s(e.localUser.videoTrack?"":"")}}),t("em",[e._v(e._s(e.$L("\u4F1A\u8BAE\u4E2D")))])])]):e._e(),t("Modal",{attrs:{title:e.$L("\u9080\u8BF7\u52A0\u5165"),"mask-closable":!1},model:{value:e.invitationShow,callback:function(i){e.invitationShow=i},expression:"invitationShow"}},[t("Form",e._b({ref:"invitationForm",attrs:{model:e.invitationData},nativeOn:{submit:function(i){i.preventDefault()}}},"Form",e.formOptions,!1),[t("FormItem",{attrs:{prop:"userids",label:e.$L("\u9080\u8BF7\u6210\u5458")}},[t("UserSelect",{attrs:{"multiple-max":20,title:e.$L("\u9009\u62E9\u9080\u8BF7\u6210\u5458")},model:{value:e.invitationData.userids,callback:function(i){e.$set(e.invitationData,"userids",i)},expression:"invitationData.userids"}})],1)],1),t("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[t("Button",{attrs:{type:"default",loading:e.linkCopyLoad},on:{click:e.linkCopy}},[e._v(e._s(e.$L("\u590D\u5236\u94FE\u63A5")))]),t("Button",{attrs:{type:"primary",loading:e.invitationLoad},on:{click:function(i){return e.onInvitation("submit")}}},[e._v(e._s(e.$L("\u53D1\u9001\u9080\u8BF7")))])],1)],1)],1)},Zd=[];const eh={name:"MeetingManager",components:{UserSelect:Ft,DragBallComponent:Jd,Player:Wd},props:{id:{type:String,default:()=>"meeting-player-"+Math.round(Math.random()*1e4)}},data(){return{loadIng:0,addShow:!1,addData:{userids:[],tracks:["audio"]},addRule:{username:[{required:!0,message:this.$L("\u8BF7\u8F93\u5165\u4F60\u7684\u59D3\u540D\uFF01"),trigger:"change"}]},invitationShow:!1,invitationLoad:!1,invitationData:{userids:[]},meetingShow:!1,meetingMini:!1,audioLoad:!1,videoLoad:!1,agoraClient:null,remoteUsers:[],localUser:{uid:null,audioTrack:null,videoTrack:null},linkCopyLoad:!1}},computed:{...B(["meetingWindow","appMeetingShow","formOptions","userToken"])},mounted(){x.on("addMeeting",this.onAdd)},beforeDestroy(){x.off("addMeeting",this.onAdd)},watch:{meetingMini(e){e||(this.$refs.meetingModal.modalIndex=this.$refs.meetingModal.handleGetModalIndex())},meetingWindow:{handler(e){switch(e.type){case"add":this.addShow=e.show;break;case"join":case"direct":this.addShow=e.show,this.addData.type="join",e.meetingNickname&&(this.addData.username=e.meetingNickname),e.meetingAvatar&&(this.addData.userimg=e.meetingAvatar),$A.runNum(e.meetingAudio)&&!this.addData.tracks.includes("audio")&&this.addData.tracks.push("audio"),$A.runNum(e.meetingVideo)&&!this.addData.tracks.includes("video")&&this.addData.tracks.push("video"),e.meetingSharekey&&(this.addData.sharekey=e.meetingSharekey,this.addData.meetingid=e.meetingid||"",this.addData.meetingdisabled=!!e.meetingSharekey),e.type==="direct"&&this.onOpen(!0);break;case"invitation":this.invitationShow=e.show,this.invitationLoad=!1,this.invitationData.meetingid=e.meetingid;break;case"error":this.addShow=e.show,this.invitationShow=e.show,this.invitationLoad=!1,$A.modalError("\u52A0\u5165\u4F1A\u8BAE\u5931\u8D25");break}},immediate:!0}},methods:{onAdd(e){e=$A.isJson(e)?e:{},/^\d+$/.test(e.dialog_id)&&(this.loadIng++,this.$store.dispatch("call",{url:"dialog/user",data:{dialog_id:e.dialog_id}}).then(({data:s})=>{this.$set(this.addData,"userids",s.filter(t=>!t.bot).map(t=>t.userid))}).finally(s=>{this.loadIng--}),delete e.dialog_id),$A.isArray(e.userids)||(e.userids=[]),this.userId&&!e.userids.includes(this.userId)&&e.userids.push(this.userId),$A.isArray(e.tracks)?e.tracks.includes("audio")||e.tracks.push("audio"):e.tracks=["audio"],this.addData=e,this.addShow=!0},onSubmit(){this.$refs.addForm.validate(e=>{e&&this.onOpen()})},async onOpen(e=!1){let s=!1;if($A.isEEUIApp)s=this.appMeetingShow;else if($A.Electron){const i=await $A.Electron.sendAsync("getChildWindow","meeting-window");if(i){const n=await $A.Electron.sendAsync("getChildWindow",null);s=(n==null?void 0:n.id)!==i.id}}else s=this.meetingShow;if(s){$A.modalWarning({content:"\u6B63\u5728\u4F1A\u8BAE\u4E2D\uFF0C\u65E0\u6CD5\u8FDB\u5165\u5176\u4ED6\u4F1A\u8BAE\u5BA4",onOk:this.onBeforeClose});return}const t=i=>{e?i?this.$store.dispatch("showSpinner"):this.$store.dispatch("hiddenSpinner",600):i?this.loadIng++:this.loadIng--};t(!0),this.$store.dispatch("call",{url:"users/meeting/open",data:this.addData}).then(({data:i})=>{if(this.$set(this.addData,"name",i.name),this.$set(this.addData,"meetingid",i.meetingid),this.$set(this.localUser,"nickname",i.nickname),this.$set(this.localUser,"userimg",i.userimg),this.$store.dispatch("saveDialogMsg",i.msgs),this.$store.dispatch("updateDialogLastMsg",i.msgs),delete i.name,delete i.msgs,$A.isEEUIApp){t(!0),this.loadNum=0,this.loadTimer&&clearInterval(this.loadTimer),this.loadTimer=setInterval(()=>{this.addShow&&++this.loadNum<10||(clearInterval(this.loadTimer),t(!1))},1e3),$A.eeuiAppSendMessage({action:"startMeeting",meetingParams:{name:this.addData.name,token:i.token,channel:i.channel,uuid:i.uid,appid:i.appid,avatar:i.userimg,username:i.nickname,video:this.addData.tracks.includes("video"),audio:this.addData.tracks.includes("audio"),meetingid:i.meetingid,sharelink:i.sharelink,alert:{title:this.$L("\u6E29\u99A8\u63D0\u793A"),message:this.$L("\u786E\u5B9A\u8981\u79BB\u5F00\u4F1A\u8BAE\u5417\uFF1F"),cancel:this.$L("\u7EE7\u7EED"),confirm:this.$L("\u9000\u51FA")}}});return}if($A.Electron&&!this.addData.sharekey){t(!0),this.$store.dispatch("call",{url:"users/meeting/link",data:{meetingid:i.meetingid}}).then(n=>{const r=$A.urlAddParams($A.removeMainUrlPrefix(n.data),{type:"direct",nickname:i.nickname,avatar:i.userimg,audio:this.addData.tracks.includes("audio")?1:0,video:this.addData.tracks.includes("video")?1:0,token:this.userToken});this.$store.dispatch("openWindow",{name:"meeting-window",path:r,mode:"window",title:this.addData.name,titleFixed:!0}),this.addShow=!1}).catch(({msg:n})=>{$A.modalError({content:n,onOk:this.onBeforeClose})}).finally(n=>{t(!1)});return}t(!0),$A.loadScript("js/AgoraRTC_N-4.17.0.js").then(n=>{this.join(i)}).catch(n=>{$A.modalError({content:"\u4F1A\u8BAE\u7EC4\u4EF6\u52A0\u8F7D\u5931\u8D25\uFF01",onOk:this.onBeforeClose})}).finally(n=>{t(!1)})}).catch(({msg:i})=>{$A.modalError({content:i,onOk:this.onBeforeClose})}).finally(i=>{t(!1)})},onAudio(){this.localUser.audioTrack?this.closeAudio():this.openAudio()},onVideo(){this.localUser.videoTrack?this.closeVideo():this.openVideo()},onInvitation(e){if(e==="open"){if(this.addData.sharekey&&!this.userId){this.linkCopy();return}this.invitationData={userids:[],meetingid:this.addData.meetingid},this.invitationShow=!0}else if(e==="submit"){if(this.invitationData.userids.length===0){$A.modalWarning("\u8BF7\u9009\u62E9\u9080\u8BF7\u6210\u5458");return}this.invitationLoad=!0,this.$store.dispatch("call",{url:"users/meeting/invitation",data:this.invitationData}).then(({data:s,msg:t})=>{this.invitationShow=!1,this.$store.dispatch("saveDialogMsg",s.msgs),this.$store.dispatch("updateDialogLastMsg",s.msgs),$A.messageSuccess(t)}).catch(({msg:s})=>{$A.modalError(s)}).finally(s=>{this.invitationLoad=!1})}},onClose(){return new Promise(e=>{$A.modalConfirm({content:"\u786E\u5B9A\u8981\u79BB\u5F00\u4F1A\u8BAE\u5417\uFF1F",cancelText:"\u7EE7\u7EED",okText:"\u9000\u51FA",onOk:async()=>{await this.onBeforeClose(),e()}})})},async onBeforeClose(){try{await this.leave()}catch(e){console.error(e)}$A.isSubElectron?this.$Electron.sendMessage("windowDestroy"):this.addData.sharekey&&(this.addShow=!0)},linkCopy(){this.linkCopyLoad=!0,this.$store.dispatch("call",{url:"users/meeting/link",data:{meetingid:this.addData.meetingid||this.invitationData.meetingid,sharekey:this.addData.sharekey}}).then(({data:e})=>{this.copyText({text:e,success:"\u5DF2\u590D\u5236\u4F1A\u8BAE\u9080\u8BF7\u94FE\u63A5",error:"\u590D\u5236\u5931\u8D25"}),this.invitationShow=!1}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.linkCopyLoad=!1})},async join(e){this.loadIng++;try{AgoraRTC.onMicrophoneChanged=async t=>{var i,n,r;if(t.state==="ACTIVE")(i=this.localUser.audioTrack)==null||i.setDevice(t.device.deviceId);else if(t.device.label===((n=this.localUser.audioTrack)==null?void 0:n.getTrackLabel())){const o=await AgoraRTC.getMicrophones();o[0]&&((r=this.localUser.audioTrack)==null||r.setDevice(o[0].deviceId))}},AgoraRTC.onCameraChanged=async t=>{var i,n,r;if(t.state==="ACTIVE")(i=this.localUser.videoTrack)==null||i.setDevice(t.device.deviceId);else if(t.device.label===((n=this.localUser.videoTrack)==null?void 0:n.getTrackLabel())){const o=await AgoraRTC.getCameras();o[0]&&((r=this.localUser.videoTrack)==null||r.setDevice(o[0].deviceId))}},AgoraRTC.onAutoplayFailed=()=>{$A.messageWarning("\u70B9\u51FB\u5C4F\u5E55\u5F00\u59CB\u4F1A\u8BAE")},AgoraRTC.setLogLevel(window.systemInfo.debug==="yes"?0:3),this.agoraClient=AgoraRTC.createClient({mode:"rtc",codec:"vp8"}),this.agoraClient.on("user-joined",this.handleUserJoined),this.agoraClient.on("user-left",this.handleUserLeft),this.agoraClient.on("user-published",this.handleUserPublished),this.agoraClient.on("user-unpublished",this.handleUserUnpublished);const s=[];try{this.localUser.uid=await this.agoraClient.join(e.appid,e.channel,e.token,e.uid),await Promise.all(["audio","video"].map(async t=>{if(!this.addData.tracks.includes(t))return;const i=t==="audio"?AgoraRTC.createMicrophoneAudioTrack:AgoraRTC.createCameraVideoTrack,n=`${t}Track`;try{this.localUser[n]=await i(),s.push(this.localUser[n])}catch(r){if(r.code==="DEVICE_NOT_FOUND")console.warn(`${t} device not found:`,r);else throw r}})),s.length>0&&await this.agoraClient.publish(s),this.meetingShow=!0}catch(t){console.error(t),$A.modalError({language:!1,content:$t(t.code,M)||this.$L("\u4F1A\u8BAE\u7EC4\u4EF6\u52A0\u8F7D\u5931\u8D25\uFF01"),onOk:this.onBeforeClose})}}catch{}this.addShow=!1,this.loadIng--},async leave(){this.loadIng++;try{["audioTrack","videoTrack"].some(e=>{var s,t;(s=this.localUser[e])==null||s.stop(),(t=this.localUser[e])==null||t.close()}),this.localUser={uid:null,audioTrack:null,videoTrack:null},this.remoteUsers=[],await this.agoraClient.leave()}catch{}this.meetingShow=!1,this.loadIng--},async openAudio(){if(!(this.audioLoad||this.localUser.audioTrack)){this.audioLoad=!0;try{this.localUser.audioTrack=await AgoraRTC.createMicrophoneAudioTrack(),await this.agoraClient.publish([this.localUser.audioTrack])}catch(e){$A.modalError({language:!1,content:$t(e.code,M)||this.$L("\u5F00\u542F\u9EA6\u514B\u98CE\u5931\u8D25\uFF01")})}finally{this.audioLoad=!1}}},async closeAudio(){this.audioLoad||!this.localUser.audioTrack||(this.audioLoad=!0,await this.agoraClient.unpublish([this.localUser.audioTrack]),this.localUser.audioTrack.stop(),this.localUser.audioTrack.close(),this.localUser.audioTrack=null,this.audioLoad=!1)},async openVideo(){if(!(this.videoLoad||this.localUser.videoTrack)){this.videoLoad=!0;try{this.localUser.videoTrack=await AgoraRTC.createCameraVideoTrack(),await this.agoraClient.publish([this.localUser.videoTrack])}catch(e){$A.modalError({language:!1,content:$t(e.code,M)||this.$L("\u5F00\u542F\u6444\u50CF\u5934\u5931\u8D25\uFF01")})}finally{this.videoLoad=!1}}},async closeVideo(){this.videoLoad||!this.localUser.videoTrack||(this.videoLoad=!0,await this.agoraClient.unpublish([this.localUser.videoTrack]),this.localUser.videoTrack.stop(),this.localUser.videoTrack.close(),this.localUser.videoTrack=null,this.videoLoad=!1)},async handleUserJoined(e){if(e.uid==this.localUser.uid)return;const s=this.remoteUsers.findIndex(t=>t.uid==e.uid);s>-1?this.remoteUsers.splice(s,1,e):this.remoteUsers.push(e)},async handleUserLeft(e){const s=this.remoteUsers.findIndex(t=>t.uid==e.uid);s>-1&&this.remoteUsers.splice(s,1)},async handleUserPublished(e,s){this.remoteUsers.find(i=>i.uid==e.uid)&&await this.agoraClient.subscribe(e,s)},async handleUserUnpublished(e,s){this.remoteUsers.find(i=>i.uid==e.uid)&&await this.agoraClient.unsubscribe(e,s)}}},ci={};var th=A(eh,Xd,Zd,!1,sh,null,null,null);function sh(e){for(let s in ci)this[s]=ci[s]}var ih=function(){return th.exports}();const Be=/(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff]|[\u0023-\u0039]\ufe0f?\u20e3|\u3299|\u3297|\u303d|\u3030|\u24c2|\ud83c[\udd70-\udd71]|\ud83c[\udd7e-\udd7f]|\ud83c\udd8e|\ud83c[\udd91-\udd9a]|\ud83c[\udde6-\uddff]|\ud83c[\ude01-\ude02]|\ud83c\ude1a|\ud83c\ude2f|\ud83c[\ude32-\ude3a]|\ud83c[\ude50-\ude51]|\u203c|\u2049|[\u25aa-\u25ab]|\u25b6|\u25c0|[\u25fb-\u25fe]|\u00a9|\u00ae|\u2122|\u2139|\ud83c\udc04|[\u2600-\u26FF]|\u2b05|\u2b06|\u2b07|\u2b1b|\u2b1c|\u2b50|\u2b55|\u231a|\u231b|\u2328|\u23cf|[\u23e9-\u23f3]|[\u23f8-\u23fa]|\ud83c\udccf|\u2934|\u2935|[\u2190-\u21ff])/g,nh=e=>(Be.lastIndex=0,Be.test(e));function mt(e,s="emoji-original",t="span"){if(typeof e!="string")return"";if((!s||typeof s!="string")&&(s="emoji-original"),(!t||typeof t!="string")&&(t="span"),!nh(e))return e;Be.lastIndex=0;let i="",n=0,r;for(;(r=Be.exec(e))!==null;)r.index>n&&(i+=e.substring(n,r.index)),i+=`<${t} class="${s}">${r[0]}${t}>`,n=Be.lastIndex;return n ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|\\n*|\\n*|?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|(?!script|pre|style)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:Se,table:Se,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};I._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/;I._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/;I.def=V(I.def).replace("label",I._label).replace("title",I._title).getRegex();I.bullet=/(?:[*+-]|\d{1,9}\.)/;I.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/;I.item=V(I.item,"gm").replace(/bull/g,I.bullet).getRegex();I.list=V(I.list).replace(/bull/g,I.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+I.def.source+")").getRegex();I._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul";I._comment=//;I.html=V(I.html,"i").replace("comment",I._comment).replace("tag",I._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();I.paragraph=V(I._paragraph).replace("hr",I.hr).replace("heading"," {0,3}#{1,6} +").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}|~{3,})[^`\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",I._tag).getRegex();I.blockquote=V(I.blockquote).replace("paragraph",I.paragraph).getRegex();I.normal=oe({},I);I.gfm=oe({},I.normal,{nptable:/^ *([^|\n ].*\|.*)\n *([-:]+ *\|[-| :]*)(?:\n((?:.*[^>\n ].*(?:\n|$))*)\n*|$)/,table:/^ *\|(.+)\n *\|?( *[-:]+[-| :]*)(?:\n((?: *[^>\n ].*(?:\n|$))*)\n*|$)/});I.pedantic=oe({},I.normal,{html:V(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?\\1> *(?:\\n{2,}|\\s*$)| \\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",I._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:Se,paragraph:V(I.normal._paragraph).replace("hr",I.hr).replace("heading",` *#{1,6} *[^
+`),n.lastIndexOf("\r"))>=0?!1:n.trim().length===0},getMoreUser(e,s){return new Promise(t=>{const{owner_id:i,type:n}=this.dialogData,r=n==="group"&&[0,this.userId].includes(i);this.taskId>0||r?(this.moreTimer&&clearTimeout(this.moreTimer),this.moreTimer=setTimeout(o=>{this.$store.dispatch("call",{url:"users/search",data:{keys:{key:e,bot:2},state:1,take:30}}).then(({data:a})=>{const l=a.filter(c=>!s.includes(c.userid));t(l.map(c=>({id:c.userid,value:c.nickname,avatar:c.userimg,online:!!c.online,bot:!!c.bot,key:`${c.nickname} ${c.email} ${c.pinyin}`})))}).catch(a=>{t([])})},this.userCache===null?0:600)):t([])})},checkIOSVersion(){let s=(window&&window.navigator&&window.navigator.userAgent).match(/OS ((\d+_?){2,3})\s/i);const i=(s?s[1].replace(/_/g,"."):"unknown").split(".");return+i[0]==11&&+i[1]>=0&&+i[1]<3},handlePaste(e){const s=Array.prototype.slice.call(e.clipboardData.files);s.filter(i=>!$A.leftExists(i.type,"image/")).length>0&&(e.preventDefault(),this.$emit("on-file",s))},updateTools(){var s,t,i,n;this.showEmoji&&((s=this.$refs.emoji)==null||s.updatePopper()),this.showMore&&((t=this.$refs.more)==null||t.updatePopper()),this.showMenu&&((i=this.$refs.menu)==null||i.updatePopper());const e=(n=this.quill)==null?void 0:n.getModule("mention");e.isOpen&&e.setMentionContainerPosition()},tempHiddenSendTip(){const{sendTip:e}=this.$refs;e&&e.$refs.popper&&(e.$refs.popper.style.visibility="hidden",e.showPopper=!1,setTimeout(s=>{e.$refs.popper&&(e.$refs.popper.style.visibility="visible")},300))}}},ii={};var _d=A(gd,fd,md,!1,vd,null,null,null);function vd(e){for(let s in ii)this[s]=ii[s]}var yd=function(){return _d.exports}(),wd=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("Modal",{attrs:{title:e.title,"class-name":"common-user-select-modal forwarder-message-modal","mask-closable":!1,width:"420"},scopedSlots:e._u([{key:"footer",fn:function(){return[t("Button",{attrs:{type:"primary",loading:e.loading},on:{click:e.onSubmit}},[e._v(" "+e._s(e.$L("\u786E\u5B9A"))+" "),e.forwardTo.length>0?[e._v("("+e._s(e.forwardTo.length)+")")]:e._e()],2)]},proxy:!0}]),model:{value:e.show,callback:function(i){e.show=i},expression:"show"}},[t("div",{staticClass:"user-modal-search"},[t("Scrollbar",{staticClass:"search-selected",attrs:{"enable-x":"","enable-y":!1}},[t("ul",e._l(e.forwardTo,function(i){return t("li",{attrs:{"data-id":i.userid}},[i.type=="group"?t("div",{staticClass:"user-modal-avatar",attrs:{title:i.name}},[i.avatar?t("EAvatar",{staticClass:"img-avatar",attrs:{src:i.avatar,size:32}}):i.group_type=="department"?t("i",{staticClass:"taskfont icon-avatar department"},[e._v("\uE75C")]):i.group_type=="project"?t("i",{staticClass:"taskfont icon-avatar project"},[e._v("\uE6F9")]):i.group_type=="task"?t("i",{staticClass:"taskfont icon-avatar task"},[e._v("\uE6F4")]):i.group_type=="okr"?t("i",{staticClass:"taskfont icon-avatar task"},[e._v("\uE6F4")]):t("Icon",{staticClass:"icon-avatar",attrs:{type:"ios-people"}}),e.forwardTo.length==1?t("div",{staticClass:"avatar-name"},[t("span",[e._v(e._s(i.name))])]):e._e()],1):t("UserAvatar",{attrs:{userid:i.userid,size:32,"show-name":e.forwardTo.length==1}})],1)}),0)])],1),t("div",{staticClass:"twice-affirm-body-extend"},[t("div",{staticClass:"forwarder-wrapper-body"},[e.isMultiMode?t("div",{staticClass:"forward-mode-select"},[t("RadioGroup",{attrs:{size:"small"},model:{value:e.forwardMode,callback:function(i){e.forwardMode=i},expression:"forwardMode"}},[t("Radio",{attrs:{label:"one-by-one"}},[e._v(e._s(e.$L("\u9010\u6761\u8F6C\u53D1")))]),t("Radio",{attrs:{label:"merge"}},[e._v(e._s(e.$L("\u5408\u5E76\u8F6C\u53D1")))])],1)],1):e._e(),e.isMultiMode?t("div",{staticClass:"dialog-wrapper inde-list"},[t("Scrollbar",{attrs:{"class-name":"dialog-scroller"}},[e.forwardMode==="merge"?[t("div",{staticClass:"merge-forward-preview"},[t("div",{staticClass:"merge-preview-title"},[e._v(e._s(e.$L("\u804A\u5929\u8BB0\u5F55")))]),e._l(e.previewMsgList,function(i,n){return t("div",{key:i.id,staticClass:"merge-preview-item"},[t("UserAvatar",{attrs:{userid:i.userid,"show-icon":!1,"show-name":!0,size:16}}),t("span",{staticClass:"preview-desc",domProps:{innerHTML:e._s(e.$A.getMsgSimpleDesc(i))}})],1)}),t("div",{staticClass:"merge-preview-count"},[e._v(e._s(e.$L("\u5171(*)\u6761\u6D88\u606F",e.msgIds.length)))])],2)]:e._l(e.previewMsgList,function(i){return t("DialogItem",{key:i.id,attrs:{source:i,simpleView:""},on:{"on-view-text":e.onViewText,"on-view-file":e.onViewFile,"on-down-file":e.onDownFile,"on-emoji":e.onEmoji,"on-other":e.onOther}})})],2)],1):e.msgDetail?t("div",{staticClass:"dialog-wrapper inde-list"},[t("Scrollbar",{attrs:{"class-name":"dialog-scroller"}},[t("DialogItem",{attrs:{source:e.msgDetail,simpleView:""},on:{"on-view-text":e.onViewText,"on-view-file":e.onViewFile,"on-down-file":e.onDownFile,"on-emoji":e.onEmoji,"on-other":e.onOther}})],1)],1):e._e(),t("div",{staticClass:"leave-message"},[e.dialogId>0?t("ChatInput",{attrs:{"dialog-id":e.dialogId,"emoji-bottom":e.windowPortrait,maxlength:2e5,placeholder:e.placeholder||e.$L("\u7559\u8A00"),disabled:e.loading,"disabled-record":"","simple-mode":""},model:{value:e.message,callback:function(i){e.message=i},expression:"message"}}):t("Input",{attrs:{type:"textarea",autosize:{minRows:1,maxRows:3},maxlength:2e5,placeholder:e.placeholder||e.$L("\u7559\u8A00"),disabled:e.loading,clearable:""},model:{value:e.message,callback:function(i){e.message=i},expression:"message"}})],1),t("ul",{staticClass:"radio-group"},[e.aiUser.length>0?t("li",{class:{selected:e.ainew}},[t("Icon",{staticClass:"radio-icon",attrs:{type:e.ainew?"ios-checkmark-circle":"ios-radio-button-off"},on:{click:e.onAinew}}),t("span",{staticClass:"radio-label",on:{click:e.onAinew}},[e._v(e._s(e.$L("AI\u5F00\u542F\u65B0\u4F1A\u8BDD")))])],1):e._e(),!e.senderHidden&&e.forwardMode!=="merge"?t("li",{class:{selected:!e.sender}},[t("Icon",{staticClass:"radio-icon",attrs:{type:e.sender?"ios-radio-button-off":"ios-checkmark-circle"},on:{click:e.onSender}}),t("span",{staticClass:"radio-label",on:{click:e.onSender}},[e._v(e._s(e.$L("\u4E0D\u663E\u793A\u539F\u53D1\u9001\u8005\u4FE1\u606F")))])],1):e._e()])])])])},$d=[];const kd={components:{ChatInput:yd,DialogItem:Qu},props:{value:{type:Boolean,default:!1},title:{type:String,default:""},placeholder:{type:String,default:null},senderHidden:{type:Boolean,default:!1},beforeSubmit:Function,dialogId:{type:Number,default:0},forwardTo:{type:Array,default:()=>[]},msgDetail:{type:Object,default:null},msgIds:{type:Array,default:()=>[]},msgList:{type:Array,default:()=>[]}},data(){return{show:!1,loading:!1,message:"",forwardMode:"one-by-one",ainew:$A.getStorageBoolean("forwarder.ainew",!0),sender:$A.getStorageBoolean("forwarder.sender",!0)}},computed:{...B(["cacheUserBasic"]),isMultiMode(){return this.msgIds&&this.msgIds.length>0},previewMsgList(){return this.isMultiMode?this.msgList.slice(0,this.forwardMode==="merge"?4:10):[]},aiUser({forwardTo:e,cacheUserBasic:s}){return e.filter(i=>i.type!=="group").filter(i=>{const n=s.find(r=>r.userid===i.userid);return n&&n.bot&&/^ai-(.*?)@bot\.system/.test(n.email)})}},watch:{value(e){this.show=e},ainew(e){$A.setStorage("forwarder.ainew",e)},sender(e){$A.setStorage("forwarder.sender",e)},show(e){this.$emit("input",e),e||(this.loading=!1,this.message="")}},methods:{onViewText(...e){this.$emit("on-view-text",...e)},onViewFile(...e){this.$emit("on-view-file",...e)},onDownFile(...e){this.$emit("on-down-file",...e)},onEmoji(...e){this.$emit("on-emoji",...e)},onOther(...e){this.$emit("on-other",...e)},onAinew(){this.loading||(this.ainew=!this.ainew)},onSender(){this.loading||(this.sender=!this.sender)},async onSubmit(){if(this.loading)return;if(!this.beforeSubmit){this.hide();return}const e={message:this.message};this.isMultiMode&&(e.forward_mode=this.forwardMode),this.senderHidden||(e.sender=this.sender),this.loading=!0;try{await this.onAiNew()}catch{this.loading=!1;return}const s=this.beforeSubmit(e);s&&s.then?s.then(()=>{this.hide()}).catch(t=>{}).finally(()=>{this.loading=!1}):(this.loading=!1,this.hide())},onAiNew(){return new Promise((e,s)=>{if(this.aiUser.length===0||!this.ainew)return e();(async()=>{try{for(const i of this.aiUser)await this.$store.dispatch("call",{url:"dialog/session/create",data:{userid:i.userid}}),await this.$store.dispatch("clearDialogMsgs",{id:this.dialogId});e()}catch(i){$A.modalError({language:!1,content:this.$L("AI\u5F00\u542F\u65B0\u4F1A\u8BDD\u5931\u8D25")+`: ${i.msg||"Unknown Error"}`}),s(i)}})()})},hide(){this.show=!1}}},ni={};var bd=A(kd,wd,$d,!1,Ad,null,null,null);function Ad(e){for(let s in ni)this[s]=ni[s]}var Cd=function(){return bd.exports}(),Sd=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}]},[t("UserSelect",{ref:"forwardSelect",attrs:{title:e.title,"show-bot":e.showBot,"hide-ai-bot":e.appAiHidden,"multiple-max":e.userMaxSelect,"before-submit":e.onSelectBefore,"show-select-all":!1,"show-dialog":"",module:""}}),t("ForwardConfirm",{ref:"forwardConfirm",attrs:{title:e.confirmTitle,placeholder:e.confirmPlaceholder,"sender-hidden":e.senderHidden,"before-submit":e.onConfirmBefore,"dialog-id":e.forwardDialogId,"forward-to":e.forwardTo,"msg-detail":e.msgDetail,"msg-ids":e.msgIds,"msg-list":e.msgList},model:{value:e.confirmShow,callback:function(i){e.confirmShow=i},expression:"confirmShow"}})],1)},xd=[];const Td={name:"Forwarder",components:{UserSelect:Ft,ForwardConfirm:Cd},props:{title:{type:String,default:"Forward"},confirmTitle:{type:String,default:"Forward Confirm"},confirmPlaceholder:{type:String,default:null},senderHidden:{type:Boolean,default:!1},showBot:{type:Boolean,default:!0},userMaxSelect:{type:Number,default:50},beforeSubmit:Function,msgDetail:{type:Object,default:null},msgIds:{type:Array,default:()=>[]},msgList:{type:Array,default:()=>[]}},data(){return{confirmShow:!1,forwardDialogId:0,forwardTo:[]}},computed:{...ye(["appAiHidden"])},methods:{onSelection(){this.$refs.forwardSelect.onSelection()},onSelectBefore(){return new Promise((e,s)=>{if(this.forwardTo=this.$refs.forwardSelect.formatSelect(this.$refs.forwardSelect.selects),this.forwardTo.length===0)$A.messageError("\u8BF7\u9009\u62E9\u5BF9\u8BDD\u6216\u6210\u5458");else{if(this.forwardDialogId=0,this.forwardTo.length===1){const{type:t,userid:i}=this.forwardTo[0];t==="group"&&/^d:/.test(i)&&(this.forwardDialogId=parseInt(i.replace(/^d:/,"")))}this.confirmShow=!0}s()})},onConfirmBefore(e){return new Promise((s,t)=>{const i=this.$refs.forwardSelect.selects;if(i.length===0){$A.messageError("\u8BF7\u9009\u62E9\u5BF9\u8BDD\u6216\u6210\u5458"),t();return}e.dialogids=i.filter(o=>$A.leftExists(o,"d:")).map(o=>o.replace("d:","")),e.userids=i.filter(o=>!$A.leftExists(o,"d:")),this.msgIds&&this.msgIds.length>0?e.msg_ids=this.msgIds:this.msgDetail&&(e.msg_id=this.msgDetail.id);const n=()=>{this.$refs.forwardSelect.hide(),s()};if(!this.beforeSubmit){n();return}const r=this.beforeSubmit(e);r&&r.then?r.then(n).catch(t):n()})}}},ri={};var Id=A(Td,Sd,xd,!1,Dd,null,null,null);function Dd(e){for(let s in ri)this[s]=ri[s]}var Ed=function(){return Id.exports}(),Ld=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[t("EDropdown",{ref:"dropdown",staticClass:"general-operation-dropdown",style:e.styles,attrs:{trigger:"click",disabled:e.disabled,size:e.size,placement:e.placement},on:{command:e.dropTask,"visible-change":e.visibleChange}},[t("div",{ref:"icon",staticClass:"general-operation-icon"}),t("EDropdownMenu",{ref:"dropdownMenu",staticClass:"general-operation-more-dropdown",attrs:{slot:"dropdown"},slot:"dropdown"},[t("li",{staticClass:"general-operation-more-warp",class:e.size},[t("ul",[e.flow?e.turns.length>0?e._l(e.turns,function(i){return t("EDropdownItem",{key:i.id,style:e.$A.generateColorVarStyle(i.color,[10],"flow-item-custom-color"),attrs:{command:`turn::${i.id}`}},[t("div",{staticClass:"item flow"},[i.id==e.task.flow_item_id&&e.flow.auto_assign!==!0?t("Icon",{staticClass:"check",attrs:{type:"md-checkmark-circle-outline"}}):t("Icon",{attrs:{type:"md-radio-button-off"}}),t("div",{staticClass:"flow-name",class:i.status},[e._v(e._s(i.name))])],1)])}):[e.task.complete_at?t("EDropdownItem",{attrs:{command:"uncomplete"}},[t("div",{staticClass:"item red"},[t("Icon",{attrs:{type:"md-checkmark-circle-outline"}}),e._v(e._s(e.$L("\u6807\u8BB0\u672A\u5B8C\u6210"))+" ")],1)]):t("EDropdownItem",{attrs:{command:"complete"}},[t("div",{staticClass:"item"},[t("Icon",{attrs:{type:"md-radio-button-off"}}),e._v(e._s(e.$L("\u5B8C\u6210"))+" ")],1)])]:t("EDropdownItem",{staticClass:"load-flow",attrs:{disabled:""}},[t("div",{staticClass:"load-flow-warp"},[t("Loading")],1)]),e.task.parent_id===0?[e.operationShow?[t("EDropdownItem",{attrs:{command:"favorite",divided:""}},[t("div",{staticClass:"item",class:{favorited:e.isFavorited}},[t("i",{staticClass:"taskfont movefont"},[e._v("\uE683")]),e._v(e._s(e.$L(e.isFavorited?"\u53D6\u6D88\u6536\u85CF":"\u6536\u85CF"))+" ")])]),t("EDropdownItem",{attrs:{command:"send"}},[t("div",{staticClass:"item"},[t("i",{staticClass:"taskfont movefont"},[e._v("\uE629")]),e._v(e._s(e.$L("\u53D1\u9001"))+" ")])]),t("EDropdownItem",{attrs:{command:"archived"}},[t("div",{staticClass:"item"},[t("Icon",{attrs:{type:"ios-filing"}}),e._v(e._s(e.$L(e.task.archived_at?"\u8FD8\u539F\u5F52\u6863":"\u5F52\u6863"))+" ")],1)]),t("EDropdownItem",{attrs:{command:"move"}},[t("div",{staticClass:"item"},[t("i",{staticClass:"taskfont movefont"},[e._v("\uE7FC")]),e._v(e._s(e.$L("\u79FB\u52A8"))+" ")])]),t("EDropdownItem",{attrs:{command:"copy"}},[t("div",{staticClass:"item"},[t("Icon",{attrs:{type:"ios-copy"}}),e._v(e._s(e.$L("\u590D\u5236"))+" ")],1)]),t("EDropdownItem",{attrs:{command:"remove"}},[t("div",{staticClass:"item hover-del"},[t("Icon",{attrs:{type:"md-trash"}}),e._v(e._s(e.$L("\u5220\u9664"))+" ")],1)])]:e._e(),e.colorShow?e._l(e.taskColorList,function(i,n){return t("EDropdownItem",{key:"c_"+n,attrs:{divided:n==0,command:i}},[t("div",{staticClass:"item"},[t("i",{staticClass:"taskfont",style:{color:i.primary||"#ddd"},domProps:{innerHTML:e._s(i.color==(e.task.color||"")?"":"")}}),e._v(e._s(e.$L(i.name))+" ")])])}):e._e()]:e.operationShow?[t("EDropdownItem",{attrs:{command:"upgrade",divided:e.turns.length>0}},[t("div",{staticClass:"item"},[t("Icon",{attrs:{type:"md-arrow-round-up"}}),e._v(e._s(e.$L("\u5347\u4E3B\u4EFB\u52A1"))+" ")],1)]),t("EDropdownItem",{attrs:{command:"remove"}},[t("div",{staticClass:"item hover-del"},[t("Icon",{attrs:{type:"md-trash"}}),e._v(e._s(e.$L("\u5220\u9664"))+" ")],1)])]:e._e()],2)])])],1),t("Modal",{attrs:{title:e.$L("\u79FB\u52A8\u4EFB\u52A1"),"mask-closable":!1,width:"540px","footer-hide":""},model:{value:e.moveTaskShow,callback:function(i){e.moveTaskShow=i},expression:"moveTaskShow"}},[t("TaskMove",{ref:"addTask",attrs:{task:e.task},model:{value:e.moveTaskShow,callback:function(i){e.moveTaskShow=i},expression:"moveTaskShow"}})],1),t("Modal",{attrs:{title:e.$L("\u590D\u5236\u4EFB\u52A1"),"mask-closable":!1,width:"540px","footer-hide":""},model:{value:e.copyTaskShow,callback:function(i){e.copyTaskShow=i},expression:"copyTaskShow"}},[t("TaskMove",{attrs:{task:e.task,type:"copy"},model:{value:e.copyTaskShow,callback:function(i){e.copyTaskShow=i},expression:"copyTaskShow"}})],1),t("Forwarder",{ref:"forwarder",attrs:{title:e.$L("\u53D1\u9001\u4EFB\u52A1"),"confirm-title":e.$L("\u786E\u8BA4\u53D1\u9001"),"confirm-placeholder":e.$L("\u9644\u8A00"),"multiple-max":50,"before-submit":e.onSendTask,"sender-hidden":""}})],1)},Md=[];const Pd={name:"TaskOperation",components:{Forwarder:Ed,TaskMove:Bo},data(){return{task:{},loadStatus:!1,colorShow:!0,operationShow:!0,updateBefore:!1,disabled:!1,size:"small",placement:"bottom",projectId:0,onUpdate:null,element:null,target:null,styles:{},moveTaskShow:!1,copyTaskShow:!1,isFavorited:!1}},beforeDestroy(){this.target&&this.target.removeEventListener("scroll",this.handlerEventListeners)},computed:{...B(["loads","taskOperation","taskColorList","taskFlows","taskFlowItems"]),...ye(["isLoad"]),loadIng(){return this.loadStatus?!0:this.isLoad(`task-${this.task.id}`)},flow(){const e=this.taskFlows.find(({task_id:s})=>s==this.task.id);return e||this.taskFlows.find(({flow_item_id:s})=>s==this.task.flow_item_id)},turns(){if(!this.flow)return[];let e=this.taskFlowItems.find(({id:s})=>s==this.flow.flow_item_id);return e?this.taskFlowItems.filter(({id:s})=>e.turns.includes(s)):[]}},watch:{taskOperation(e){if(e.event&&e.task){if(this.$refs.dropdown.visible&&this.element===e.event.target){this.hide();return}const s=e.event.target.getBoundingClientRect();this.styles={left:`${s.left}px`,top:`${s.top}px`,width:`${s.width}px`,height:`${s.height}px`},this.task=e.task,this.loadStatus=typeof e.loadStatus=="undefined"?!1:e.loadStatus,this.colorShow=typeof e.colorShow=="undefined"?!0:e.colorShow,this.operationShow=typeof e.operationShow=="undefined"?!0:e.operationShow,this.updateBefore=typeof e.updateBefore=="undefined"?!1:e.updateBefore,this.disabled=typeof e.disabled=="undefined"?!1:e.disabled,this.size=typeof e.size=="undefined"?"small":e.size,this.placement=typeof e.placement=="undefined"?"bottom":e.placement,this.projectId=typeof e.projectId=="undefined"?0:e.projectId,this.onUpdate=typeof e.onUpdate=="function"?e.onUpdate:null,this.checkFavoriteStatus(),this.$refs.icon.focus(),this.updatePopper(),this.show(),this.$store.dispatch("getTaskFlow",{task_id:this.task.id,project_id:this.projectId}).finally(this.updatePopper),this.setupEventListeners(e.event)}else this.hide()}},methods:{show(){this.$refs.dropdown.show()},hide(){this.$refs.dropdown.hide()},dropTask(e){const s=this.task,t=i=>{i?this.$store.dispatch("saveTaskCompleteTemp",s.id):this.$store.dispatch("forgetTaskCompleteTemp",s.id)};if($A.isJson(e)){e.name&&this.updateTask({color:e.color}).catch(()=>{});return}if($A.leftExists(e,"turn::")){let i=$A.leftDelete(e,"turn::");if(i==this.task.flow_item_id)return;let n=this.taskFlowItems.find(({id:l})=>l==this.flow.flow_item_id)||{},r=this.taskFlowItems.find(({id:l})=>l==i)||{},o=n.status!=="end"&&r.status==="end",a=n.status==="end"&&r.status!=="end";this.updateBefore&&(o?t(!0):a&&t(!1)),this.updateTask({flow_item_id:i,flow_item_status:r.status,flow_item_name:r.name}).then(()=>{o?t(!0):a&&t(!1)}).catch(()=>{o?t(!1):a&&t(!0)});return}switch(e){case"complete":if(this.task.complete_at)return;this.updateBefore&&t(!0),this.updateTask({complete_at:$A.daytz().format("YYYY-MM-DD HH:mm:ss")}).then(()=>{t(!0)}).catch(i=>{var n;t(!1),i&&i.ret===-4005&&((n=i.data)==null?void 0:n.flow_items)&&this.showFlowItemSelector(i.data.flow_items,"complete")});break;case"uncomplete":if(!this.task.complete_at)return;this.updateBefore&&t(!1),this.updateTask({complete_at:!1}).then(()=>{t(!1)}).catch(i=>{var n;t(!0),i&&i.ret===-4006&&((n=i.data)==null?void 0:n.flow_items)&&this.showFlowItemSelector(i.data.flow_items,"uncomplete")});break;case"favorite":this.toggleFavorite();break;case"send":this.$refs.forwarder.onSelection();break;case"upgrade":this.upgradeSubtask();break;case"archived":case"remove":this.archivedOrRemoveTask(e);break;case"move":this.moveTaskShow=!0;break;case"copy":this.copyTaskShow=!0;break}},updateTask(e){return new Promise((s,t)=>{if(this.loadIng){t();return}const i=Object.assign(e,{task_id:this.task.id});if(!this.operationShow){typeof this.onUpdate=="function"&&this.onUpdate(i),t();return}Object.keys(e).forEach(n=>this.$set(this.task,n,e[n])),this.$store.dispatch("taskUpdate",i).then(({data:n,msg:r})=>{$A.messageSuccess(r),s(),this.$store.dispatch("saveTaskBrowse",i.task_id),typeof this.onUpdate=="function"&&this.onUpdate(n)}).catch(n=>{if(n&&(n.ret===-4005||n.ret===-4006)){this.$store.dispatch("getTaskOne",i.task_id).catch(()=>{}),t(n);return}$A.modalError(n==null?void 0:n.msg),this.$store.dispatch("getTaskOne",i.task_id).catch(()=>{}),t(n)})})},upgradeSubtask(){this.loadIng||$A.modalConfirm({title:"\u5347\u7EA7\u4E3A\u4E3B\u4EFB\u52A1",content:`\u4F60\u786E\u5B9A\u8981\u5C06\u5B50\u4EFB\u52A1\u3010${this.task.name}\u3011\u5347\u7EA7\u4E3A\u4E3B\u4EFB\u52A1\u5417\uFF1F`,loading:!0,onOk:()=>{if(!this.loadIng)return new Promise(e=>{this.$store.dispatch("taskConvertToMain",this.task.id).then(({data:s,msg:t})=>{var i;$A.messageSuccess(t),this.hide(),this.$store.dispatch("openTask",((i=s==null?void 0:s.task)==null?void 0:i.id)||this.task.id),e()}).catch(({msg:s})=>{$A.modalError(s),e()})})}})},showFlowItemSelector(e,s){const t=e.map(i=>({label:i.name,value:i.id,color:i.color}));this.$store.commit("menu/operation",{event:{target:this.$refs.icon},list:t,size:"large",onUpdate:i=>{if(i){const n=e.find(r=>r.id===i);if(n){const r={flow_item_id:i,flow_item_status:n.status,flow_item_name:n.name};s==="complete"?r.complete_at=$A.daytz().format("YYYY-MM-DD HH:mm:ss"):r.complete_at=!1,this.updateTask(r).catch(()=>{})}}}})},archivedOrRemoveTask(e){let s="removeTask",t="\u5220\u9664",i={task_id:this.task.id},n=this.task.parent_id>0?"\u5B50\u4EFB\u52A1":"\u4EFB\u52A1";e=="archived"&&(s="archivedTask",t="\u5F52\u6863",this.task.archived_at&&(t="\u8FD8\u539F\u5F52\u6863",i={task_id:this.task.id,type:"recovery"})),$A.modalConfirm({title:t+n,content:"\u4F60\u786E\u5B9A\u8981"+t+n+"\u3010"+this.task.name+"\u3011\u5417\uFF1F",loading:!0,onOk:()=>{if(!this.loadIng)return new Promise((r,o)=>{this.$store.dispatch(s,i).then(({msg:a})=>{r(a),this.$store.dispatch("saveTaskBrowse",i.task_id)}).catch(({msg:a})=>{o(a)})})}})},visibleChange(e){this.visible=e},updatePopper(){this.$nextTick(this.$refs.dropdownMenu.updatePopper)},setupEventListeners(e){this.element=e.target;let s=this.getScrollParent(this.element);if((s===window.document.body||s===window.document.documentElement)&&(s=window),this.target){if(this.target===s)return;this.target.removeEventListener("scroll",this.handlerEventListeners)}this.target=s,this.target.addEventListener("scroll",this.handlerEventListeners)},handlerEventListeners(e){if(!this.visible||!this.element)return;const s=e.target.getBoundingClientRect(),t=this.element.getBoundingClientRect();if(t.tops.top+s.height){this.hide();return}this.styles={left:`${t.left}px`,top:`${t.top}px`,width:`${t.width}px`,height:`${t.height}px`},this.updatePopper()},getScrollParent(e){const s=e.parentNode;return s?s===window.document?window.document.body.scrollTop||window.document.body.scrollLeft?window.document.body:window.document.documentElement:["scroll","auto"].indexOf(this.getStyleComputedProperty(s,"overflow"))!==-1||["scroll","auto"].indexOf(this.getStyleComputedProperty(s,"overflow-x"))!==-1||["scroll","auto"].indexOf(this.getStyleComputedProperty(s,"overflow-y"))!==-1?s:this.getScrollParent(e.parentNode):e},getStyleComputedProperty(e,s){return!e||!(e instanceof HTMLElement)?null:window.getComputedStyle(e,null)[s]},onSendTask({dialogids:e,userids:s,message:t}){return new Promise((i,n)=>{this.$store.dispatch("call",{url:"dialog/msg/sendtaskid",data:{dialogids:e,userids:s,leave_message:t,task_id:this.task.id}}).then(({data:r,msg:o})=>{this.$store.dispatch("saveDialogMsg",r.msgs),this.$store.dispatch("updateDialogLastMsg",r.msgs),$A.messageSuccess(o),i()}).catch(({msg:r})=>{$A.modalError(r),n()})})},checkFavoriteStatus(){!this.task.id||this.$store.dispatch("checkFavoriteStatus",{type:"task",id:this.task.id}).then(({data:e})=>{this.isFavorited=e.favorited||!1}).catch(()=>{this.isFavorited=!1})},toggleFavorite(){!this.task.id||this.$store.dispatch("toggleFavorite",{type:"task",id:this.task.id}).then(({data:e})=>{this.isFavorited=e.favorited,this.hide()})}}},oi={};var jd=A(Pd,Ld,Md,!1,Rd,null,null,null);function Rd(e){for(let s in oi)this[s]=oi[s]}var Od=function(){return jd.exports}(),zd=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"meeting-player"},[t("div",{staticClass:"player",attrs:{id:e.id}},[t("div",{staticClass:"player-bg",style:e.playerStyle})]),t("ETooltip",{attrs:{disabled:e.$isEEUIApp||e.windowTouch||!e.username}},[t("div",{attrs:{slot:"content"},slot:"content"},[e._v(" "+e._s(e.username)+" ")]),t("div",{staticClass:"meeting-avatar"},[e.userid?t("UserAvatar",{attrs:{userid:e.userid,size:36,borderWidth:2}}):e.tourist.userimg?t("div",{staticClass:"common-avatar avatar-wrapper"},[t("div",{staticClass:"avatar-box online"},[t("em"),t("EAvatar",{attrs:{size:36,src:e.tourist.userimg}})],1)]):e._e()],1)]),t("div",{staticClass:"player-state"},[e.audio?e._e():t("i",{staticClass:"taskfont"},[e._v("\uE7C7")]),e.video?e._e():t("i",{staticClass:"taskfont"},[e._v("\uE7C8")])])],1)},Ud=[];const Bd={name:"MeetingPlayer",props:{id:{type:String,default:()=>"meeting-player-"+Math.round(Math.random()*1e4)},player:{type:Object,default:()=>({})},isLocal:{type:Boolean,default:!1}},data(){return{timer:null,tourist:{uid:"",nickname:"",userimg:""}}},mounted(){this.timer=setInterval(e=>{this.audio&&!this.player.audioTrack.isPlaying&&this.play("audio"),this.video&&!this.player.videoTrack.isPlaying&&this.play("video")},3e3)},beforeDestroy(){clearInterval(this.timer)},computed:{...B(["cacheUserBasic"]),userid(){return this.player.uid?(this.player.uid+"").indexOf("88888")!==-1?(this.getTouristInfo(),0):parseInt((this.player.uid+"").substring(6))||0:0},username(){if(this.userid){const e=this.cacheUserBasic.find(({userid:s})=>s==this.userid);return e?e.nickname:""}return this.tourist.nickname||""},playerStyle(){const e=this.cacheUserBasic.find(({userid:s})=>s==this.userid);return e&&e.userimg?{backgroundImage:`url("${e.userimg}")`}:this.tourist.userimg?{backgroundImage:`url("${this.tourist.userimg}")`}:null},audio(){return!!this.player.audioTrack},video(){return!!this.player.videoTrack}},watch:{audio:{handler(e){e&&this.play("audio")},immediate:!0},video:{handler(e){e&&this.play("video")},immediate:!0}},methods:{play(e){this.$nextTick(s=>{try{e==="audio"?!this.isLocal&&this.player.audioTrack.play():e==="video"&&this.player.videoTrack.play(this.id)}catch(t){console.log("Meeting Player Error",t)}})},getTouristInfo(){this.$store.dispatch("call",{url:"users/meeting/tourist",data:{tourist_id:this.player.uid}}).then(({data:e})=>{this.tourist=e}).catch(({msg:e})=>{$A.modalError(e)})}}},ai={};var Nd=A(Bd,zd,Ud,!1,Fd,null,null,null);function Fd(e){for(let s in ai)this[s]=ai[s]}var Hd=function(){return Nd.exports}(),Wd=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{ref:"floatDrag",style:e.dragStyle,on:{mousedown:function(i){return i.stopPropagation(),i.preventDefault(),e.mouseDown.apply(null,arguments)}}},[e._t("default")],2)},Vd=[];const Yd={name:"DragBallComponent",props:{id:{type:String,default:""},distanceRight:{type:Number,default:0},distanceBottom:{type:Number,default:100},isScrollHidden:{type:Boolean,default:!1},isCanDraggable:{type:Boolean,default:!0},zIndex:{type:Number,default:50}},data(){return{clientWidth:null,clientHeight:null,top:0,left:0,timer:null,currentTop:0,isMoving:!1,record:{}}},created(){this.clientWidth=document.documentElement.clientWidth,this.clientHeight=document.documentElement.clientHeight},mounted(){this.id&&($A.isJson(window._DragBallComponent)||(window._DragBallComponent={})),this.isCanDraggable&&this.$nextTick(()=>{this.id&&$A.isJson(window._DragBallComponent[this.id])?(this.left=window._DragBallComponent[this.id].left,this.top=window._DragBallComponent[this.id].top):(this.left=this.clientWidth-this.floatDrag.offsetWidth-this.distanceRight,this.top=this.clientHeight-this.floatDrag.offsetHeight-this.distanceBottom),this.initDraggable()}),this.isScrollHidden&&window.addEventListener("scroll",this.handleScroll),window.addEventListener("resize",this.handleResize)},beforeDestroy(){this.id&&(window._DragBallComponent[this.id]={left:this.left,top:this.top}),window.removeEventListener("scroll",this.handleScroll),window.removeEventListener("resize",this.handleResize)},computed:{dragStyle(){return{left:this.left+"px",top:this.top+"px",zIndex:this.zIndex,position:"fixed"}},floatDrag(){return this.$refs.floatDrag}},methods:{handleScroll(){this.timer&&clearTimeout(this.timer),this.timer=setTimeout(()=>{this.handleScrollEnd()},200),this.currentTop=document.documentElement.scrollTop||document.body.scrollTop,this.left>this.clientWidth/2?this.left=this.clientWidth+this.floatDrag.offsetWidth:this.left=-this.floatDrag.offsetWidth},handleScrollEnd(){(document.documentElement.scrollTop||document.body.scrollTop)===this.currentTop&&(this.left>this.clientWidth/2?this.left=this.clientWidth-this.floatDrag.offsetWidth:this.left=0,clearTimeout(this.timer))},handleResize(){this.clientWidth=document.documentElement.clientWidth,this.clientHeight=document.documentElement.clientHeight,this.$nextTick(this.checkDraggablePosition)},initDraggable(){this.floatDrag.addEventListener("touchstart",this.toucheStart),this.floatDrag.addEventListener("touchmove",this.touchMove),this.floatDrag.addEventListener("touchend",this.touchEnd)},mouseDown(e){this.record={time:$A.dayjs().valueOf(),top:this.floatDrag.offsetTop,left:this.floatDrag.offsetLeft,x:e.clientX-this.floatDrag.offsetLeft,y:e.clientY-this.floatDrag.offsetTop},this.floatDrag.style.transition="none",this.canClick=!1,document.onmousemove=s=>{let t=s.clientX-this.record.x,i=s.clientY-this.record.y;t<0?t=0:t>window.innerWidth-this.floatDrag.offsetWidth&&(t=window.innerWidth-this.floatDrag.offsetWidth),i<0?i=0:i>window.innerHeight-this.floatDrag.offsetHeight&&(i=window.innerHeight-this.floatDrag.offsetHeight),this.left=t,this.top=i},document.onmouseup=()=>{document.onmousemove=null,document.onmouseup=null,this.checkDraggablePosition(),this.floatDrag.style.transition="all 0.3s",(Math.abs(this.record.top-this.floatDrag.offsetTop)<5&&Math.abs(this.record.left-this.floatDrag.offsetLeft)<5||$A.dayjs().valueOf()-this.record.time<200)&&this.$emit("on-click")}},toucheStart(){this.canClick=!1,this.floatDrag.style.transition="none"},touchMove(e){if(this.canClick=!0,e.targetTouches.length===1){let s=event.targetTouches[0],t=s.clientX-this.floatDrag.offsetWidth/2,i=s.clientY-this.floatDrag.offsetHeight/2;t<0?t=0:t>window.innerWidth-this.floatDrag.offsetWidth&&(t=window.innerWidth-this.floatDrag.offsetWidth),i<0?i=0:i>window.innerHeight-this.floatDrag.offsetHeight&&(i=window.innerHeight-this.floatDrag.offsetHeight),this.left=t,this.top=i}},touchEnd(){!this.canClick||(this.floatDrag.style.transition="all 0.3s",this.checkDraggablePosition())},checkDraggablePosition(){this.left+this.floatDrag.offsetWidth/2>=this.clientWidth/2?this.left=this.clientWidth-this.floatDrag.offsetWidth:this.left=0,this.top<0&&(this.top=0),this.top+this.floatDrag.offsetHeight>=this.clientHeight&&(this.top=this.clientHeight-this.floatDrag.offsetHeight)}}},li={};var qd=A(Yd,Wd,Vd,!1,Kd,null,null,null);function Kd(e){for(let s in li)this[s]=li[s]}var Gd=function(){return qd.exports}();const Jd={UNEXPECTED_ERROR:{zh:"\u65E0\u6CD5\u5904\u7406\u7684\u3001\u975E\u9884\u671F\u7684\u9519\u8BEF\uFF0C\u901A\u5E38\u8FD9\u4E2A\u9519\u8BEF\u4F1A\u6709\u5177\u4F53\u7684\u9519\u8BEF\u63D0\u793A\u3002","zh-CHT":"\u7121\u6CD5\u8655\u7406\u7684\u3001\u975E\u9810\u671F\u7684\u932F\u8AA4\uFF0C\u901A\u5E38\u9019\u500B\u932F\u8AA4\u6703\u6709\u5177\u9AD4\u7684\u932F\u8AA4\u63D0\u793A\u3002",en:"An unhandled, unexpected error. This error usually comes with a specific error message.",ko:"\uCC98\uB9AC\uB418\uC9C0 \uC54A\uC740 \uC608\uAE30\uCE58 \uC54A\uC740 \uC624\uB958\uC785\uB2C8\uB2E4. \uC77C\uBC18\uC801\uC73C\uB85C \uC774 \uC624\uB958\uC5D0\uB294 \uAD6C\uCCB4\uC801\uC778 \uC624\uB958 \uBA54\uC2DC\uC9C0\uAC00 \uD3EC\uD568\uB429\uB2C8\uB2E4.",ja:"\u51E6\u7406\u3067\u304D\u306A\u3044\u4E88\u671F\u3057\u306A\u3044\u30A8\u30E9\u30FC\u3067\u3059\u3002\u901A\u5E38\u3001\u3053\u306E\u30A8\u30E9\u30FC\u306B\u306F\u5177\u4F53\u7684\u306A\u30A8\u30E9\u30FC\u30E1\u30C3\u30BB\u30FC\u30B8\u304C\u542B\u307E\u308C\u3066\u3044\u307E\u3059\u3002",de:"Ein unbehandelter, unerwarteter Fehler. Dieser Fehler enth\xE4lt normalerweise eine spezifische Fehlermeldung.",fr:"Une erreur inattendue et non g\xE9r\xE9e. Cette erreur est g\xE9n\xE9ralement accompagn\xE9e d'un message d'erreur sp\xE9cifique.",id:"Kesalahan tak terduga dan tidak tertangani. Kesalahan ini biasanya disertai dengan pesan kesalahan spesifik.",ru:"\u041D\u0435\u043E\u0431\u0440\u0430\u0431\u043E\u0442\u0430\u043D\u043D\u0430\u044F, \u043D\u0435\u043E\u0436\u0438\u0434\u0430\u043D\u043D\u0430\u044F \u043E\u0448\u0438\u0431\u043A\u0430. \u041E\u0431\u044B\u0447\u043D\u043E \u044D\u0442\u0430 \u043E\u0448\u0438\u0431\u043A\u0430 \u0441\u043E\u043F\u0440\u043E\u0432\u043E\u0436\u0434\u0430\u0435\u0442\u0441\u044F \u043A\u043E\u043D\u043A\u0440\u0435\u0442\u043D\u044B\u043C \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435\u043C \u043E\u0431 \u043E\u0448\u0438\u0431\u043A\u0435."},UNEXPECTED_RESPONSE:{zh:"\u670D\u52A1\u7AEF\u8FD4\u56DE\u4E86\u975E\u9884\u671F\u7684\u54CD\u5E94\u3002\u8FD9\u4E2A\u9519\u8BEF\u901A\u5E38\u662F\u5728\u7F51\u7EDC\u95EE\u9898\u5BFC\u81F4\u5BA2\u6237\u7AEF\u4E0E\u670D\u52A1\u7AEF\u72B6\u6001\u4E0D\u4E00\u81F4\u65F6\u629B\u51FA\u3002","zh-CHT":"\u670D\u52D9\u7AEF\u8FD4\u56DE\u4E86\u975E\u9810\u671F\u7684\u97FF\u61C9\u3002\u9019\u500B\u932F\u8AA4\u901A\u5E38\u662F\u5728\u7DB2\u7D61\u554F\u984C\u5C0E\u81F4\u5BA2\u6236\u7AEF\u8207\u670D\u52D9\u7AEF\u72C0\u614B\u4E0D\u4E00\u81F4\u6642\u62CB\u51FA\u3002",en:"The server returned an unexpected response. This error usually occurs when network issues cause inconsistency between client and server states.",ko:"\uC11C\uBC84\uAC00 \uC608\uAE30\uCE58 \uC54A\uC740 \uC751\uB2F5\uC744 \uBC18\uD658\uD588\uC2B5\uB2C8\uB2E4. \uC774 \uC624\uB958\uB294 \uC77C\uBC18\uC801\uC73C\uB85C \uB124\uD2B8\uC6CC\uD06C \uBB38\uC81C\uB85C \uC778\uD574 \uD074\uB77C\uC774\uC5B8\uD2B8\uC640 \uC11C\uBC84 \uC0C1\uD0DC\uAC00 \uBD88\uC77C\uCE58\uD560 \uB54C \uBC1C\uC0DD\uD569\uB2C8\uB2E4.",ja:"\u30B5\u30FC\u30D0\u30FC\u304B\u3089\u4E88\u671F\u3057\u306A\u3044\u5FDC\u7B54\u304C\u8FD4\u3055\u308C\u307E\u3057\u305F\u3002\u3053\u306E\u30A8\u30E9\u30FC\u306F\u901A\u5E38\u3001\u30CD\u30C3\u30C8\u30EF\u30FC\u30AF\u306E\u554F\u984C\u306B\u3088\u3063\u3066\u30AF\u30E9\u30A4\u30A2\u30F3\u30C8\u3068\u30B5\u30FC\u30D0\u30FC\u306E\u72B6\u614B\u304C\u4E00\u81F4\u3057\u306A\u3044\u5834\u5408\u306B\u767A\u751F\u3057\u307E\u3059\u3002",de:"Der Server hat eine unerwartete Antwort zur\xFCckgegeben. Dieser Fehler tritt normalerweise auf, wenn Netzwerkprobleme zu Inkonsistenzen zwischen Client- und Serverzust\xE4nden f\xFChren.",fr:"Le serveur a renvoy\xE9 une r\xE9ponse inattendue. Cette erreur survient g\xE9n\xE9ralement lorsque des probl\xE8mes de r\xE9seau causent une incoh\xE9rence entre les \xE9tats du client et du serveur.",id:"Server mengembalikan respons yang tidak terduga. Kesalahan ini biasanya terjadi ketika masalah jaringan menyebabkan ketidaksesuaian antara status klien dan server.",ru:"\u0421\u0435\u0440\u0432\u0435\u0440 \u0432\u0435\u0440\u043D\u0443\u043B \u043D\u0435\u043E\u0436\u0438\u0434\u0430\u043D\u043D\u044B\u0439 \u043E\u0442\u0432\u0435\u0442. \u042D\u0442\u0430 \u043E\u0448\u0438\u0431\u043A\u0430 \u043E\u0431\u044B\u0447\u043D\u043E \u0432\u043E\u0437\u043D\u0438\u043A\u0430\u0435\u0442, \u043A\u043E\u0433\u0434\u0430 \u043F\u0440\u043E\u0431\u043B\u0435\u043C\u044B \u0441 \u0441\u0435\u0442\u044C\u044E \u0432\u044B\u0437\u044B\u0432\u0430\u044E\u0442 \u043D\u0435\u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435 \u043C\u0435\u0436\u0434\u0443 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u044F\u043C\u0438 \u043A\u043B\u0438\u0435\u043D\u0442\u0430 \u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u0430."},INVALID_PARAMS:{zh:"\u975E\u6CD5\u53C2\u6570\u3002","zh-CHT":"\u975E\u6CD5\u53C3\u6578\u3002",en:"Invalid parameters.",ko:"\uC798\uBABB\uB41C \uB9E4\uAC1C\uBCC0\uC218\uC785\uB2C8\uB2E4.",ja:"\u7121\u52B9\u306A\u30D1\u30E9\u30E1\u30FC\u30BF\u3067\u3059\u3002",de:"Ung\xFCltige Parameter.",fr:"Param\xE8tres invalides.",id:"Parameter tidak valid.",ru:"\u041D\u0435\u0434\u043E\u043F\u0443\u0441\u0442\u0438\u043C\u044B\u0435 \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B."},NOT_SUPPORTED:{zh:"\u6D4F\u89C8\u5668\u4E0D\u652F\u6301\u3002","zh-CHT":"\u700F\u89BD\u5668\u4E0D\u652F\u6301\u3002",en:"Browser not supported.",ko:"\uBE0C\uB77C\uC6B0\uC800\uAC00 \uC9C0\uC6D0\uB418\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",ja:"\u30D6\u30E9\u30A6\u30B6\u306F\u30B5\u30DD\u30FC\u30C8\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",de:"Der Browser wird nicht unterst\xFCtzt.",fr:"Le navigateur n'est pas pris en charge.",id:"Browser tidak didukung.",ru:"\u0411\u0440\u0430\u0443\u0437\u0435\u0440 \u043D\u0435 \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044F."},INVALID_OPERATION:{zh:"\u975E\u6CD5\u64CD\u4F5C\uFF0C\u901A\u5E38\u662F\u56E0\u4E3A\u5728\u5F53\u524D\u72B6\u6001\u4E0D\u80FD\u8FDB\u884C\u8BE5\u64CD\u4F5C\u3002","zh-CHT":"\u975E\u6CD5\u64CD\u4F5C\uFF0C\u901A\u5E38\u662F\u56E0\u70BA\u5728\u7576\u524D\u72C0\u614B\u4E0D\u80FD\u9032\u884C\u8A72\u64CD\u4F5C\u3002",en:"Invalid operation, usually because the operation cannot be performed in the current state.",ko:"\uC798\uBABB\uB41C \uC791\uC5C5\uC785\uB2C8\uB2E4. \uC77C\uBC18\uC801\uC73C\uB85C \uD604\uC7AC \uC0C1\uD0DC\uC5D0\uC11C \uD574\uB2F9 \uC791\uC5C5\uC744 \uC218\uD589\uD560 \uC218 \uC5C6\uAE30 \uB54C\uBB38\uC785\uB2C8\uB2E4.",ja:"\u7121\u52B9\u306A\u64CD\u4F5C\u3067\u3059\u3002\u901A\u5E38\u306F\u3001\u73FE\u5728\u306E\u72B6\u614B\u3067\u64CD\u4F5C\u3092\u5B9F\u884C\u3067\u304D\u306A\u3044\u305F\u3081\u3067\u3059\u3002",de:"Ung\xFCltiger Vorgang, normalerweise weil der Vorgang im aktuellen Zustand nicht durchgef\xFChrt werden kann.",fr:"Op\xE9ration invalide, g\xE9n\xE9ralement parce que l'op\xE9ration ne peut pas \xEAtre effectu\xE9e dans l'\xE9tat actuel.",id:"Operasi tidak valid. Biasanya karena operasi tidak dapat dilakukan dalam status saat ini.",ru:"\u041D\u0435\u0434\u043E\u043F\u0443\u0441\u0442\u0438\u043C\u0430\u044F \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u044F, \u043E\u0431\u044B\u0447\u043D\u043E \u043F\u043E\u0442\u043E\u043C\u0443, \u0447\u0442\u043E \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u044F \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u0431\u044B\u0442\u044C \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u0430 \u0432 \u0442\u0435\u043A\u0443\u0449\u0435\u043C \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0438."},OPERATION_ABORTED:{zh:"\u64CD\u4F5C\u4E2D\u6B62\uFF0C\u901A\u5E38\u662F\u56E0\u4E3A\u7F51\u7EDC\u8D28\u91CF\u5DEE\u6216\u8FDE\u63A5\u65AD\u5F00\u5BFC\u81F4\u4E0E\u8BED\u97F3\u670D\u52A1\u5668\u901A\u4FE1\u5931\u8D25\u3002","zh-CHT":"\u64CD\u4F5C\u4E2D\u6B62\uFF0C\u901A\u5E38\u662F\u56E0\u70BA\u7DB2\u7D61\u8CEA\u91CF\u5DEE\u6216\u9023\u63A5\u65B7\u958B\u5C0E\u81F4\u8207\u8A9E\u97F3\u670D\u52D9\u5668\u901A\u4FE1\u5931\u6557\u3002",en:"Operation aborted, usually due to communication failure with the voice server caused by poor network quality or disconnection.",ko:"\uC791\uC5C5\uC774 \uC911\uB2E8\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uC77C\uBC18\uC801\uC73C\uB85C \uB124\uD2B8\uC6CC\uD06C \uD488\uC9C8\uC774 \uB098\uC058\uAC70\uB098 \uC5F0\uACB0\uC774 \uB04A\uC5B4\uC838 \uC74C\uC131 \uC11C\uBC84\uC640 \uD1B5\uC2E0\uC5D0 \uC2E4\uD328\uD588\uAE30 \uB54C\uBB38\uC785\uB2C8\uB2E4.",ja:"\u64CD\u4F5C\u304C\u4E2D\u6B62\u3055\u308C\u307E\u3057\u305F\u3002\u901A\u5E38\u306F\u3001\u30CD\u30C3\u30C8\u30EF\u30FC\u30AF\u54C1\u8CEA\u304C\u60AA\u3044\u304B\u3001\u63A5\u7D9A\u304C\u5207\u65AD\u3055\u308C\u305F\u305F\u3081\u3001\u97F3\u58F0\u30B5\u30FC\u30D0\u30FC\u3068\u306E\u901A\u4FE1\u306B\u5931\u6557\u3057\u305F\u305F\u3081\u3067\u3059\u3002",de:"Vorgang abgebrochen, normalerweise aufgrund von Kommunikationsfehlern mit dem Sprachserver aufgrund von schlechter Netzwerkqualit\xE4t oder Verbindungsunterbrechung.",fr:"Op\xE9ration annul\xE9e, g\xE9n\xE9ralement en raison d'une d\xE9faillance de communication avec le serveur vocal due \xE0 une mauvaise qualit\xE9 du r\xE9seau ou \xE0 une d\xE9connexion.",id:"Operasi dibatalkan. Biasanya karena komunikasi dengan server suara gagal karena kualitas jaringan yang buruk atau koneksi yang terputus.",ru:"\u041E\u043F\u0435\u0440\u0430\u0446\u0438\u044F \u043E\u0442\u043C\u0435\u043D\u0435\u043D\u0430, \u043E\u0431\u044B\u0447\u043D\u043E \u0438\u0437-\u0437\u0430 \u0441\u0431\u043E\u044F \u0441\u0432\u044F\u0437\u0438 \u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u043E\u043C \u0433\u043E\u043B\u043E\u0441\u0430 \u0438\u0437-\u0437\u0430 \u043F\u043B\u043E\u0445\u043E\u0433\u043E \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u0430 \u0441\u0435\u0442\u0438 \u0438\u043B\u0438 \u0440\u0430\u0437\u0440\u044B\u0432\u0430 \u0441\u043E\u0435\u0434\u0438\u043D\u0435\u043D\u0438\u044F."},WEB_SECURITY_RESTRICT:{zh:"\u6D4F\u89C8\u5668\u5B89\u5168\u7B56\u7565\u9650\u5236\u3002","zh-CHT":"\u700F\u89BD\u5668\u5B89\u5168\u7B56\u7565\u9650\u5236\u3002",en:"Browser security policy restriction.",ko:"\uBE0C\uB77C\uC6B0\uC800 \uBCF4\uC548 \uC815\uCC45 \uC81C\uD55C\uC785\uB2C8\uB2E4.",ja:"\u30D6\u30E9\u30A6\u30B6\u306E\u30BB\u30AD\u30E5\u30EA\u30C6\u30A3\u30DD\u30EA\u30B7\u30FC\u5236\u9650\u3067\u3059\u3002",de:"Einschr\xE4nkung der Browser-Sicherheitsrichtlinie.",fr:"Restriction de la politique de s\xE9curit\xE9 du navigateur.",id:"Pembatasan kebijakan keamanan browser.",ru:"\u041E\u0433\u0440\u0430\u043D\u0438\u0447\u0435\u043D\u0438\u0435 \u043F\u043E\u043B\u0438\u0442\u0438\u043A\u0438 \u0431\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u0438 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430."},NO_ACTIVE_STATUS:{zh:"\u8BED\u97F3\u9879\u76EE\u672A\u6FC0\u6D3B\u6216\u88AB\u7981\u7528\u3002","zh-CHT":"\u8A9E\u97F3\u9805\u76EE\u672A\u6FC0\u6D3B\u6216\u88AB\u7981\u7528\u3002",en:"Voice project is not activated or has been disabled.",ko:"\uC74C\uC131 \uD504\uB85C\uC81D\uD2B8\uAC00 \uD65C\uC131\uD654\uB418\uC9C0 \uC54A\uC558\uAC70\uB098 \uBE44\uD65C\uC131\uD654\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",ja:"\u97F3\u58F0\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u304C\u30A2\u30AF\u30C6\u30A3\u30D6\u5316\u3055\u308C\u3066\u3044\u306A\u3044\u304B\u3001\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002",de:"Sprachprojekt ist nicht aktiviert oder wurde deaktiviert.",fr:"Le projet vocal n'est pas activ\xE9 ou a \xE9t\xE9 d\xE9sactiv\xE9.",id:"Proyek suara tidak diaktifkan atau dinonaktifkan.",ru:"\u041F\u0440\u043E\u0435\u043A\u0442 \u0433\u043E\u043B\u043E\u0441\u0430 \u043D\u0435 \u0430\u043A\u0442\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0435\u043D."},NETWORK_TIMEOUT:{zh:"\u8BF7\u6C42\u8D85\u65F6\uFF0C\u901A\u5E38\u662F\u56E0\u4E3A\u7F51\u7EDC\u8D28\u91CF\u5DEE\u6216\u8FDE\u63A5\u65AD\u5F00\u5BFC\u81F4\u4E0E\u8BED\u97F3\u670D\u52A1\u5668\u901A\u4FE1\u5931\u8D25\u3002","zh-CHT":"\u8ACB\u6C42\u8D85\u6642\uFF0C\u901A\u5E38\u662F\u56E0\u70BA\u7DB2\u7D61\u8CEA\u91CF\u5DEE\u6216\u9023\u63A5\u65B7\u958B\u5C0E\u81F4\u8207\u8A9E\u97F3\u670D\u52D9\u5668\u901A\u4FE1\u5931\u6557\u3002",en:"Request timeout, usually due to communication failure with the voice server caused by poor network quality or disconnection.",ko:"\uC694\uCCAD\uC774 \uC2DC\uAC04 \uCD08\uACFC\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uC77C\uBC18\uC801\uC73C\uB85C \uB124\uD2B8\uC6CC\uD06C \uD488\uC9C8\uC774 \uB098\uC058\uAC70\uB098 \uC5F0\uACB0\uC774 \uB04A\uC5B4\uC838 \uC74C\uC131 \uC11C\uBC84\uC640 \uD1B5\uC2E0\uC5D0 \uC2E4\uD328\uD588\uAE30 \uB54C\uBB38\uC785\uB2C8\uB2E4.",ja:"\u30EA\u30AF\u30A8\u30B9\u30C8\u304C\u30BF\u30A4\u30E0\u30A2\u30A6\u30C8\u3057\u307E\u3057\u305F\u3002\u901A\u5E38\u306F\u3001\u30CD\u30C3\u30C8\u30EF\u30FC\u30AF\u54C1\u8CEA\u304C\u60AA\u3044\u304B\u3001\u63A5\u7D9A\u304C\u5207\u65AD\u3055\u308C\u305F\u305F\u3081\u3001\u97F3\u58F0\u30B5\u30FC\u30D0\u30FC\u3068\u306E\u901A\u4FE1\u306B\u5931\u6557\u3057\u305F\u305F\u3081\u3067\u3059\u3002",de:"Anforderungstimeout, normalerweise aufgrund von Kommunikationsfehlern mit dem Sprachserver aufgrund von schlechter Netzwerkqualit\xE4t oder Verbindungsunterbrechung.",fr:"D\xE9lai d'attente de la requ\xEAte d\xE9pass\xE9, g\xE9n\xE9ralement en raison d'une d\xE9faillance de communication avec le serveur vocal due \xE0 une mauvaise qualit\xE9 du r\xE9seau ou \xE0 une d\xE9connexion.",id:"Waktu permintaan habis. Biasanya karena komunikasi dengan server suara gagal karena kualitas jaringan yang buruk atau koneksi yang terputus.",ru:"\u0412\u0440\u0435\u043C\u044F \u0437\u0430\u043F\u0440\u043E\u0441\u0430 \u0438\u0441\u0442\u0435\u043A\u043B\u043E. \u041E\u0431\u044B\u0447\u043D\u043E \u0438\u0437-\u0437\u0430 \u0441\u0431\u043E\u044F \u0441\u0432\u044F\u0437\u0438 \u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u043E\u043C \u0433\u043E\u043B\u043E\u0441\u0430 \u0438\u0437-\u0437\u0430 \u043F\u043B\u043E\u0445\u043E\u0433\u043E \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u0430 \u0441\u0435\u0442\u0438 \u0438\u043B\u0438 \u0440\u0430\u0437\u0440\u044B\u0432\u0430 \u0441\u043E\u0435\u0434\u0438\u043D\u0435\u043D\u0438\u044F."},NETWORK_RESPONSE_ERROR:{zh:"\u54CD\u5E94\u9519\u8BEF\uFF0C\u4E00\u822C\u662F\u72B6\u6001\u7801\u975E\u6CD5\u3002","zh-CHT":"\u97FF\u61C9\u932F\u8AA4\uFF0C\u4E00\u822C\u662F\u72C0\u614B\u78BC\u975E\u6CD5\u3002",en:"Response error, usually due to invalid status code.",ko:"\uC751\uB2F5 \uC624\uB958\uC785\uB2C8\uB2E4. \uC77C\uBC18\uC801\uC73C\uB85C \uC0C1\uD0DC \uCF54\uB4DC\uAC00 \uC798\uBABB\uB418\uAE30 \uB54C\uBB38\uC785\uB2C8\uB2E4.",ja:"\u30EC\u30B9\u30DD\u30F3\u30B9\u30A8\u30E9\u30FC\u3067\u3059\u3002\u901A\u5E38\u306F\u3001\u30B9\u30C6\u30FC\u30BF\u30B9\u30B3\u30FC\u30C9\u304C\u7121\u52B9\u3067\u3042\u308B\u305F\u3081\u3067\u3059\u3002",de:"Antwortfehler, normalerweise aufgrund eines ung\xFCltigen Statuscodes.",fr:"Erreur de r\xE9ponse, g\xE9n\xE9ralement en raison d'un code de statut invalide.",id:"Kesalahan respons. Biasanya karena kode status tidak valid.",ru:"\u041E\u0448\u0438\u0431\u043A\u0430 \u043E\u0442\u0432\u0435\u0442\u0430, \u043E\u0431\u044B\u0447\u043D\u043E \u0438\u0437-\u0437\u0430 \u043D\u0435\u0434\u043E\u043F\u0443\u0441\u0442\u0438\u043C\u043E\u0433\u043E \u043A\u043E\u0434\u0430 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u044F."},NETWORK_ERROR:{zh:"\u65E0\u6CD5\u5B9A\u4F4D\u7684\u7F51\u7EDC\u9519\u8BEF\u3002","zh-CHT":"\u7121\u6CD5\u5B9A\u4F4D\u7684\u7DB2\u7D61\u932F\u8AA4\u3002",en:"Unlocatable network error.",ko:"\uC704\uCE58\uD560 \uC218 \uC5C6\uB294 \uB124\uD2B8\uC6CC\uD06C \uC624\uB958\uC785\uB2C8\uB2E4.",ja:"\u7279\u5B9A\u3067\u304D\u306A\u3044\u30CD\u30C3\u30C8\u30EF\u30FC\u30AF\u30A8\u30E9\u30FC\u3067\u3059\u3002",de:"Nicht lokalisierbarer Netzwerkfehler.",fr:"Erreur r\xE9seau non localisable.",id:"Kesalahan jaringan yang tidak dapat ditemukan.",ru:"\u041D\u0435\u043B\u043E\u043A\u0430\u043B\u0438\u0437\u0443\u0435\u043C\u0430\u044F \u043E\u0448\u0438\u0431\u043A\u0430 \u0441\u0435\u0442\u0438."},WS_ABORT:{zh:"\u8BF7\u6C42\u8BED\u97F3\u670D\u52A1\u5668\u8FC7\u7A0B\u4E2D WebSocket \u65AD\u5F00\u3002","zh-CHT":"\u8ACB\u6C42\u8A9E\u97F3\u670D\u52D9\u5668\u904E\u7A0B\u4E2D WebSocket \u65B7\u958B\u3002",en:"WebSocket disconnected during voice server request.",ko:"\uC74C\uC131 \uC11C\uBC84 \uC694\uCCAD \uC911 WebSocket \uC5F0\uACB0\uC774 \uB04A\uC5B4\uC84C\uC2B5\uB2C8\uB2E4.",ja:"\u97F3\u58F0\u30B5\u30FC\u30D0\u30FC\u306E\u30EA\u30AF\u30A8\u30B9\u30C8\u4E2D\u306BWebSocket\u304C\u5207\u65AD\u3055\u308C\u307E\u3057\u305F\u3002",de:"WebSocket wurde w\xE4hrend der Anfrage an den Sprachserver getrennt.",fr:"La connexion WebSocket a \xE9t\xE9 interrompue pendant la requ\xEAte au serveur vocal.",id:"Koneksi WebSocket terputus selama permintaan server suara.",ru:"\u0421\u043E\u0435\u0434\u0438\u043D\u0435\u043D\u0438\u0435 WebSocket \u0431\u044B\u043B\u043E \u043F\u0440\u0435\u0440\u0432\u0430\u043D\u043E \u0432\u043E \u0432\u0440\u0435\u043C\u044F \u0437\u0430\u043F\u0440\u043E\u0441\u0430 \u043A \u0441\u0435\u0440\u0432\u0435\u0440\u0443 \u0433\u043E\u043B\u043E\u0441\u0430."},WS_DISCONNECT:{zh:"\u8BF7\u6C42\u8BED\u97F3\u670D\u52A1\u5668\u524D\uFF0CWebSocket \u5C31\u5DF2\u7ECF\u65AD\u5F00\u3002","zh-CHT":"\u8ACB\u6C42\u8A9E\u97F3\u670D\u52D9\u5668\u524D\uFF0CWebSocket \u5C31\u5DF2\u7D93\u65B7\u958B\u3002",en:"WebSocket was already disconnected before requesting the voice server.",ko:"\uC74C\uC131 \uC11C\uBC84\uB97C \uC694\uCCAD\uD558\uAE30 \uC804\uC5D0 WebSocket \uC5F0\uACB0\uC774 \uC774\uBBF8 \uB04A\uC5B4\uC84C\uC2B5\uB2C8\uB2E4.",ja:"\u97F3\u58F0\u30B5\u30FC\u30D0\u30FC\u3092\u30EA\u30AF\u30A8\u30B9\u30C8\u3059\u308B\u524D\u306B\u3001WebSocket\u304C\u3059\u3067\u306B\u5207\u65AD\u3055\u308C\u3066\u3044\u307E\u3057\u305F\u3002",de:"WebSocket wurde bereits vor der Anfrage an den Sprachserver getrennt.",fr:"La connexion WebSocket \xE9tait d\xE9j\xE0 interrompue avant de demander le serveur vocal.",id:"Koneksi WebSocket sudah terputus sebelum meminta server suara.",ru:"\u0421\u043E\u0435\u0434\u0438\u043D\u0435\u043D\u0438\u0435 WebSocket \u0443\u0436\u0435 \u0431\u044B\u043B\u043E \u0440\u0430\u0437\u043E\u0440\u0432\u0430\u043D\u043E \u0434\u043E \u0437\u0430\u043F\u0440\u043E\u0441\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0433\u043E\u043B\u043E\u0441\u0430."},WS_ERR:{zh:"WebSocket \u8FDE\u63A5\u53D1\u751F\u9519\u8BEF\u3002","zh-CHT":"WebSocket \u9023\u63A5\u767C\u751F\u932F\u8AA4\u3002",en:"WebSocket connection error occurred.",ko:"WebSocket \uC5F0\uACB0 \uC624\uB958\uAC00 \uBC1C\uC0DD\uD588\uC2B5\uB2C8\uB2E4.",ja:"WebSocket\u63A5\u7D9A\u30A8\u30E9\u30FC\u304C\u767A\u751F\u3057\u307E\u3057\u305F\u3002",de:"WebSocket-Verbindungsfehler ist aufgetreten.",fr:"Une erreur de connexion WebSocket s'est produite.",id:"Kesalahan koneksi WebSocket terjadi.",ru:"\u041F\u0440\u043E\u0438\u0437\u043E\u0448\u043B\u0430 \u043E\u0448\u0438\u0431\u043A\u0430 \u0441\u043E\u0435\u0434\u0438\u043D\u0435\u043D\u0438\u044F WebSocket."},ENUMERATE_DEVICES_FAILED:{zh:"\u679A\u4E3E\u672C\u5730\u8BBE\u5907\u5931\u8D25\uFF0C\u4E00\u822C\u662F\u7531\u4E8E\u6D4F\u89C8\u5668\u9650\u5236\u3002","zh-CHT":"\u679A\u8209\u672C\u5730\u8A2D\u5099\u5931\u6557\uFF0C\u4E00\u822C\u662F\u7531\u65BC\u700F\u89BD\u5668\u9650\u5236\u3002",en:"Failed to enumerate local devices, usually due to browser restrictions.",ko:"\uB85C\uCEEC \uC7A5\uCE58\uB97C \uC5F4\uAC70\uD558\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4. \uC77C\uBC18\uC801\uC73C\uB85C \uBE0C\uB77C\uC6B0\uC800 \uC81C\uD55C\uC73C\uB85C \uC778\uD574 \uBC1C\uC0DD\uD569\uB2C8\uB2E4.",ja:"\u30ED\u30FC\u30AB\u30EB\u30C7\u30D0\u30A4\u30B9\u306E\u5217\u6319\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002\u901A\u5E38\u306F\u3001\u30D6\u30E9\u30A6\u30B6\u306E\u5236\u9650\u306B\u3088\u308B\u3082\u306E\u3067\u3059\u3002",de:"Auflistung lokaler Ger\xE4te fehlgeschlagen, normalerweise aufgrund von Browser-Einschr\xE4nkungen.",fr:"\xC9chec de l'\xE9num\xE9ration des p\xE9riph\xE9riques locaux, g\xE9n\xE9ralement en raison de restrictions de navigateur.",id:"Gagal menghitung perangkat lokal. Biasanya karena pembatasan browser.",ru:"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043F\u0435\u0440\u0435\u0447\u0438\u0441\u043B\u0438\u0442\u044C \u043B\u043E\u043A\u0430\u043B\u044C\u043D\u044B\u0435 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u0430, \u043E\u0431\u044B\u0447\u043D\u043E \u0438\u0437-\u0437\u0430 \u043E\u0433\u0440\u0430\u043D\u0438\u0447\u0435\u043D\u0438\u0439 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430."},DEVICE_NOT_FOUND:{zh:"\u65E0\u6CD5\u627E\u5230\u6307\u5B9A\u8BBE\u5907\u3002","zh-CHT":"\u7121\u6CD5\u627E\u5230\u6307\u5B9A\u8A2D\u5099\u3002",en:"Specified device not found.",ko:"\uC9C0\uC815\uB41C \uC7A5\uCE58\uB97C \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",ja:"\u6307\u5B9A\u3055\u308C\u305F\u30C7\u30D0\u30A4\u30B9\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3067\u3057\u305F\u3002",de:"Das angegebene Ger\xE4t wurde nicht gefunden.",fr:"Le p\xE9riph\xE9rique sp\xE9cifi\xE9 n'a pas \xE9t\xE9 trouv\xE9.",id:"Perangkat yang ditentukan tidak ditemukan.",ru:"\u0423\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u043E."},TRACK_IS_DISABLED:{zh:"\u8F68\u9053\u88AB\u7981\u7528\uFF0C\u901A\u5E38\u56E0\u4E3A\u8F68\u9053\u8BBE\u7F6E\u4E86 Track.setEnabled(false)\u3002","zh-CHT":"\u8ECC\u9053\u88AB\u7981\u7528\uFF0C\u901A\u5E38\u662F\u56E0\u70BA\u8ECC\u9053\u8A2D\u5B9A\u4E86 Track.setEnabled(false)\u3002",en:"Track is disabled, usually because Track.setEnabled(false) was set.",ko:"\uD2B8\uB799\uC774 \uBE44\uD65C\uC131\uD654\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uC77C\uBC18\uC801\uC73C\uB85C \uD2B8\uB799\uC5D0 Track.setEnabled(false)\uAC00 \uC124\uC815\uB418\uC5C8\uAE30 \uB54C\uBB38\uC785\uB2C8\uB2E4.",ja:"\u30C8\u30E9\u30C3\u30AF\u304C\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002\u901A\u5E38\u306F\u3001\u30C8\u30E9\u30C3\u30AF\u306BTrack.setEnabled(false)\u304C\u8A2D\u5B9A\u3055\u308C\u3066\u3044\u308B\u305F\u3081\u3067\u3059\u3002",de:"Die Spur ist deaktiviert, normalerweise weil Track.setEnabled(false) gesetzt wurde.",fr:"La piste est d\xE9sactiv\xE9e, g\xE9n\xE9ralement parce que Track.setEnabled(false) a \xE9t\xE9 d\xE9fini.",id:"Trek dinonaktifkan. Biasanya karena trek memiliki Track.setEnabled(false).",ru:"\u0422\u0440\u0435\u043A \u043E\u0442\u043A\u043B\u044E\u0447\u0435\u043D, \u043E\u0431\u044B\u0447\u043D\u043E \u043F\u043E\u0442\u043E\u043C\u0443, \u0447\u0442\u043E Track.setEnabled(false) \u0431\u044B\u043B \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D."},SHARE_AUDIO_NOT_ALLOWED:{zh:"\u5C4F\u5E55\u5171\u4EAB\u97F3\u9891\u65F6\u7EC8\u7AEF\u7528\u6237\u6CA1\u6709\u70B9\u51FB\u5206\u4EAB\u97F3\u9891\u3002","zh-CHT":"\u87A2\u5E55\u5171\u4EAB\u97F3\u983B\u6642\u7D42\u7AEF\u7528\u6236\u6C92\u6709\u9EDE\u64CA\u5206\u4EAB\u97F3\u983B\u3002",en:"End user did not click to share audio during screen sharing.",ko:"\uD654\uBA74 \uACF5\uC720 \uC911\uC5D0 \uC0AC\uC6A9\uC790\uAC00 \uC624\uB514\uC624 \uACF5\uC720\uB97C \uD074\uB9AD\uD558\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4.",ja:"\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30A7\u30A2\u30EA\u30F3\u30B0\u4E2D\u306B\u3001\u30A8\u30F3\u30C9\u30E6\u30FC\u30B6\u30FC\u304C\u30AA\u30FC\u30C7\u30A3\u30AA\u3092\u5171\u6709\u3059\u308B\u3053\u3068\u3092\u30AF\u30EA\u30C3\u30AF\u3057\u306A\u304B\u3063\u305F\u305F\u3081\u3067\u3059\u3002",de:"Der Endbenutzer hat w\xE4hrend der Bildschirmfreigabe nicht auf Audio-Freigabe geklickt.",fr:"L'utilisateur final n'a pas cliqu\xE9 sur le partage audio pendant le partage d'\xE9cran.",id:"Pengguna akhir tidak mengklik bagikan audio selama berbagi layar.",ru:"\u041A\u043E\u043D\u0435\u0447\u043D\u044B\u0439 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C \u043D\u0435 \u043D\u0430\u0436\u0430\u043B \u043D\u0430 \u043A\u043D\u043E\u043F\u043A\u0443 \xAB\u041F\u043E\u0434\u0435\u043B\u0438\u0442\u044C\u0441\u044F \u0430\u0443\u0434\u0438\u043E\xBB \u0432\u043E \u0432\u0440\u0435\u043C\u044F \u043E\u0431\u043C\u0435\u043D\u0430 \u044D\u043A\u0440\u0430\u043D\u043E\u043C."},CHROME_PLUGIN_NO_RESPONSE:{zh:"Chrome \u5C4F\u5E55\u5171\u4EAB\u63D2\u4EF6\u65E0\u54CD\u5E94\u3002","zh-CHT":"Chrome \u87A2\u5E55\u5171\u4EAB\u63D2\u4EF6\u7121\u97FF\u61C9\u3002",en:"Chrome screen sharing plugin not responding.",ko:"\uD06C\uB86C \uD654\uBA74 \uACF5\uC720 \uD50C\uB7EC\uADF8\uC778\uC774 \uC751\uB2F5\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",ja:"Chrome\u306E\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30A7\u30A2\u30EA\u30F3\u30B0\u30D7\u30E9\u30B0\u30A4\u30F3\u304C\u5FDC\u7B54\u3057\u3066\u3044\u307E\u305B\u3093\u3002",de:"Chrome-Bildschirmfreigabe-Plug-in reagiert nicht.",fr:"Le plug-in de partage d'\xE9cran Chrome ne r\xE9pond pas.",id:"Plugin berbagi layar Chrome tidak merespons.",ru:"\u041F\u043B\u0430\u0433\u0438\u043D \u0434\u043B\u044F \u043E\u0431\u043C\u0435\u043D\u0430 \u044D\u043A\u0440\u0430\u043D\u043E\u043C Chrome \u043D\u0435 \u043E\u0442\u0432\u0435\u0447\u0430\u0435\u0442."},CHROME_PLUGIN_NOT_INSTALL:{zh:"Chrome \u5C4F\u5E55\u5171\u4EAB\u63D2\u4EF6\u6CA1\u6709\u5B89\u88C5\u3002","zh-CHT":"Chrome \u87A2\u5E55\u5171\u4EAB\u63D2\u4EF6\u6C92\u6709\u5B89\u88DD\u3002",en:"Chrome screen sharing plugin not installed.",ko:"\uD06C\uB86C \uD654\uBA74 \uACF5\uC720 \uD50C\uB7EC\uADF8\uC778\uC774 \uC124\uCE58\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4.",ja:"Chrome\u306E\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30A7\u30A2\u30EA\u30F3\u30B0\u30D7\u30E9\u30B0\u30A4\u30F3\u304C\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",de:"Chrome-Bildschirmfreigabe-Plug-in nicht installiert.",fr:"Le plug-in de partage d'\xE9cran Chrome n'est pas install\xE9.",id:"Plugin berbagi layar Chrome tidak terinstal.",ru:"\u041F\u043B\u0430\u0433\u0438\u043D \u0434\u043B\u044F \u043E\u0431\u043C\u0435\u043D\u0430 \u044D\u043A\u0440\u0430\u043D\u043E\u043C Chrome \u043D\u0435 \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D."},MEDIA_OPTION_INVALID:{zh:"\u4E0D\u652F\u6301\u7684\u5A92\u4F53\u91C7\u96C6\u7684\u53C2\u6570\u3002","zh-CHT":"\u4E0D\u652F\u6301\u7684\u5A92\u9AD4\u63A1\u96C6\u7684\u53C3\u6578\u3002",en:"Unsupported media capture parameters.",ko:"\uC9C0\uC6D0\uB418\uC9C0 \uC54A\uB294 \uBBF8\uB514\uC5B4 \uCEA1\uCC98 \uB9E4\uAC1C\uBCC0\uC218\uC785\uB2C8\uB2E4.",ja:"\u30B5\u30DD\u30FC\u30C8\u3055\u308C\u3066\u3044\u306A\u3044\u30E1\u30C7\u30A3\u30A2\u30AD\u30E3\u30D7\u30C1\u30E3\u30D1\u30E9\u30E1\u30FC\u30BF\u3067\u3059\u3002",de:"Nicht unterst\xFCtzte Medienaufnahmeparameter.",fr:"Param\xE8tres de capture de m\xE9dias non pris en charge.",id:"Parameter pengambilan media tidak didukung.",ru:"\u041D\u0435\u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043C\u044B\u0435 \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B \u0437\u0430\u0445\u0432\u0430\u0442\u0430 \u043C\u0435\u0434\u0438\u0430."},CONSTRAINT_NOT_SATISFIED:{zh:"\u4E0D\u652F\u6301\u7684\u5A92\u4F53\u91C7\u96C6\u7684\u53C2\u6570\u3002","zh-CHT":"\u4E0D\u652F\u6301\u7684\u5A92\u9AD4\u63A1\u96C6\u7684\u53C3\u6578\u3002",en:"Unsupported media capture parameters.",ko:"\uC9C0\uC6D0\uB418\uC9C0 \uC54A\uB294 \uBBF8\uB514\uC5B4 \uCEA1\uCC98 \uB9E4\uAC1C\uBCC0\uC218\uC785\uB2C8\uB2E4.",ja:"\u30B5\u30DD\u30FC\u30C8\u3055\u308C\u3066\u3044\u306A\u3044\u30E1\u30C7\u30A3\u30A2\u30AD\u30E3\u30D7\u30C1\u30E3\u30D1\u30E9\u30E1\u30FC\u30BF\u3067\u3059\u3002",de:"Nicht unterst\xFCtzte Medienaufnahmeparameter.",fr:"Param\xE8tres de capture de m\xE9dias non pris en charge.",id:"Parameter pengambilan media tidak didukung.",ru:"\u041D\u0435\u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043C\u044B\u0435 \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B \u0437\u0430\u0445\u0432\u0430\u0442\u0430 \u043C\u0435\u0434\u0438\u0430."},PERMISSION_DENIED:{zh:"\u83B7\u53D6\u5A92\u4F53\u8BBE\u5907\u6743\u9650\u88AB\u62D2\u7EDD\u3002","zh-CHT":"\u83B7\u53D6\u5A92\u9AD4\u8A2D\u5099\u6B0A\u9650\u88AB\u62D2\u7D55\u3002",en:"Permission to access media devices was denied.",ko:"\uBBF8\uB514\uC5B4 \uC7A5\uCE58\uC5D0 \uB300\uD55C \uAD8C\uD55C\uC774 \uAC70\uBD80\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",ja:"\u30E1\u30C7\u30A3\u30A2\u30C7\u30D0\u30A4\u30B9\u3078\u306E\u30A2\u30AF\u30BB\u30B9\u6A29\u9650\u304C\u62D2\u5426\u3055\u308C\u307E\u3057\u305F\u3002",de:"Die Erlaubnis zum Zugriff auf Medien-Ger\xE4te wurde verweigert.",fr:"L'autorisation d'acc\xE9der aux p\xE9riph\xE9riques multim\xE9dias a \xE9t\xE9 refus\xE9e.",id:"Izin mengakses perangkat media ditolak.",ru:"\u0414\u043E\u0441\u0442\u0443\u043F \u043A \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u0430\u043C \u043C\u0443\u043B\u044C\u0442\u0438\u043C\u0435\u0434\u0438\u0430 \u0431\u044B\u043B \u0437\u0430\u043F\u0440\u0435\u0449\u0435\u043D."},NOT_READABLE:{zh:"\u7528\u6237\u5DF2\u7ECF\u6388\u6743\uFF0C\u4F46\u5A92\u4F53\u8BBE\u5907\u65E0\u6CD5\u8BBF\u95EE\u3002","zh-CHT":"\u7528\u6236\u5DF2\u7D93\u6388\u6B0A\uFF0C\u4F46\u5A92\u9AD4\u8A2D\u5099\u7121\u6CD5\u5B58\u53D6\u3002",en:"User has authorized, but media device cannot be accessed.",ko:"\uC0AC\uC6A9\uC790\uAC00 \uC774\uBBF8 \uAD8C\uD55C\uC744 \uBD80\uC5EC\uD588\uC9C0\uB9CC \uBBF8\uB514\uC5B4 \uC7A5\uCE58\uC5D0 \uC561\uC138\uC2A4\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",ja:"\u30E6\u30FC\u30B6\u30FC\u306F\u3059\u3067\u306B\u6A29\u9650\u3092\u4ED8\u4E0E\u3057\u3066\u3044\u307E\u3059\u304C\u3001\u30E1\u30C7\u30A3\u30A2\u30C7\u30D0\u30A4\u30B9\u306B\u30A2\u30AF\u30BB\u30B9\u3067\u304D\u307E\u305B\u3093\u3002",de:"Der Benutzer hat bereits die Erlaubnis erteilt, aber das Medien-Ger\xE4t kann nicht zug\xE4nglich gemacht werden.",fr:"L'utilisateur a d\xE9j\xE0 autoris\xE9 l'acc\xE8s, mais le p\xE9riph\xE9rique multim\xE9dia ne peut pas \xEAtre acc\xE9d\xE9.",id:"Pengguna telah memberikan izin, tetapi perangkat media tidak dapat diakses.",ru:"\u041F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C \u0443\u0436\u0435 \u043F\u0440\u0435\u0434\u043E\u0441\u0442\u0430\u0432\u0438\u043B \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043D\u0438\u0435, \u043D\u043E \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E \u043C\u0443\u043B\u044C\u0442\u0438\u043C\u0435\u0434\u0438\u0430 \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u0431\u044B\u0442\u044C \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u043E."},FETCH_AUDIO_FILE_FAILED:{zh:"\u4E0B\u8F7D\u5728\u7EBF\u97F3\u9891\u6587\u4EF6\u5931\u8D25\u3002","zh-CHT":"\u4E0B\u8F09\u5728\u7DDA\u97F3\u983B\u6587\u4EF6\u5931\u6557\u3002",en:"Failed to download online audio file.",ko:"\uC628\uB77C\uC778 \uC624\uB514\uC624 \uD30C\uC77C \uB2E4\uC6B4\uB85C\uB4DC\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4.",ja:"\u30AA\u30F3\u30E9\u30A4\u30F3\u30AA\u30FC\u30C7\u30A3\u30AA\u30D5\u30A1\u30A4\u30EB\u306E\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002",de:"Herunterladen der Online-Audio-Datei fehlgeschlagen.",fr:"\xC9chec du t\xE9l\xE9chargement du fichier audio en ligne.",id:"Gagal mengunduh file audio online.",ru:"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0441\u043A\u0430\u0447\u0430\u0442\u044C \u0444\u0430\u0439\u043B \u0430\u0443\u0434\u0438\u043E \u043E\u043D\u043B\u0430\u0439\u043D."},READ_LOCAL_AUDIO_FILE_ERROR:{zh:"\u8BFB\u53D6\u672C\u5730\u97F3\u9891\u6587\u4EF6\u5931\u8D25\u3002","zh-CHT":"\u8B80\u53D6\u672C\u5730\u97F3\u983B\u6587\u4EF6\u5931\u6557\u3002",en:"Failed to read local audio file.",ko:"\uB85C\uCEEC \uC624\uB514\uC624 \uD30C\uC77C \uC77D\uAE30\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4.",ja:"\u30ED\u30FC\u30AB\u30EB\u30AA\u30FC\u30C7\u30A3\u30AA\u30D5\u30A1\u30A4\u30EB\u306E\u8AAD\u307F\u53D6\u308A\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002",de:"Lokale Audio-Datei konnte nicht gelesen werden.",fr:"\xC9chec de la lecture du fichier audio local.",id:"Gagal membaca file audio lokal.",ru:"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043F\u0440\u043E\u0447\u0438\u0442\u0430\u0442\u044C \u043B\u043E\u043A\u0430\u043B\u044C\u043D\u044B\u0439 \u0444\u0430\u0439\u043B \u0430\u0443\u0434\u0438\u043E."},DECODE_AUDIO_FILE_FAILED:{zh:"\u97F3\u9891\u6587\u4EF6\u89E3\u7801\u5931\u8D25\uFF0C\u53EF\u80FD\u662F\u56E0\u4E3A\u97F3\u9891\u6587\u4EF6\u7684\u7F16\u7801\u683C\u5F0F\u662F\u6D4F\u89C8\u5668 WebAudio \u4E0D\u652F\u6301\u7684\u7F16\u7801\u683C\u5F0F\u3002","zh-CHT":"\u97F3\u983B\u6587\u4EF6\u89E3\u78BC\u5931\u6557\uFF0C\u53EF\u80FD\u662F\u56E0\u70BA\u97F3\u983B\u6587\u4EF6\u7684\u7DE8\u78BC\u683C\u5F0F\u662F\u700F\u89BD\u5668 WebAudio \u4E0D\u652F\u6301\u7684\u7DE8\u78BC\u683C\u5F0F\u3002",en:"Failed to decode audio file, possibly because the audio file encoding format is not supported by browser WebAudio.",ko:"\uC624\uB514\uC624 \uD30C\uC77C \uB514\uCF54\uB529\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4. \uBE0C\uB77C\uC6B0\uC800 WebAudio\uC5D0\uC11C \uC9C0\uC6D0\uD558\uC9C0 \uC54A\uB294 \uC624\uB514\uC624 \uD30C\uC77C \uC778\uCF54\uB529 \uD615\uC2DD \uB54C\uBB38\uC77C \uC218 \uC788\uC2B5\uB2C8\uB2E4.",ja:"\u30AA\u30FC\u30C7\u30A3\u30AA\u30D5\u30A1\u30A4\u30EB\u306E\u30C7\u30B3\u30FC\u30C9\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002\u30D6\u30E9\u30A6\u30B6\u306EWebAudio\u304C\u30B5\u30DD\u30FC\u30C8\u3057\u3066\u3044\u306A\u3044\u30AA\u30FC\u30C7\u30A3\u30AA\u30D5\u30A1\u30A4\u30EB\u306E\u30A8\u30F3\u30B3\u30FC\u30C9\u5F62\u5F0F\u3067\u3042\u308B\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059\u3002",de:"Audio-Datei konnte nicht decodiert werden, m\xF6glicherweise weil das Audio-Datei-Codec-Format vom Browser-WebAudio nicht unterst\xFCtzt wird.",fr:"\xC9chec de la d\xE9codage du fichier audio, probablement parce que le format de codage du fichier audio n'est pas pris en charge par le navigateur WebAudio.",id:"Gagal mendekode file audio. Mungkin karena format enkode file audio tidak didukung oleh WebAudio browser.",ru:"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0434\u0435\u043A\u043E\u0434\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0444\u0430\u0439\u043B \u0430\u0443\u0434\u0438\u043E, \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E, \u043F\u043E\u0442\u043E\u043C\u0443 \u0447\u0442\u043E \u0444\u043E\u0440\u043C\u0430\u0442 \u043A\u043E\u0434\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0444\u0430\u0439\u043B\u0430 \u0430\u0443\u0434\u0438\u043E \u043D\u0435 \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044F \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043E\u043C WebAudio."},UID_CONFLICT:{zh:"\u540C\u4E00\u4E2A\u9891\u9053\u5185 UID \u91CD\u590D\u3002","zh-CHT":"\u540C\u4E00\u500B\u983B\u9053\u5167 UID \u91CD\u8907\u3002",en:"Duplicate UID within the same channel.",ko:"\uAC19\uC740 \uCC44\uB110 \uB0B4\uC5D0\uC11C UID\uAC00 \uC911\uBCF5\uB429\uB2C8\uB2E4.",ja:"\u540C\u3058\u30C1\u30E3\u30F3\u30CD\u30EB\u5185\u3067UID\u304C\u91CD\u8907\u3057\u3066\u3044\u307E\u3059\u3002",de:"Doppelte UID innerhalb des gleichen Kanals.",fr:"UID en double dans le m\xEAme canal.",id:"UID ganda dalam saluran yang sama.",ru:"\u0414\u0443\u0431\u043B\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435 UID \u0432 \u043E\u0434\u043D\u043E\u043C \u0438 \u0442\u043E\u043C \u0436\u0435 \u043A\u0430\u043D\u0430\u043B\u0435."},INVALID_UINT_UID_FROM_STRING_UID:{zh:"String UID \u5206\u914D\u670D\u52A1\u8FD4\u56DE\u4E86\u975E\u6CD5\u7684 int UID\u3002","zh-CHT":"String UID \u5206\u914D\u670D\u52D9\u8FD4\u56DE\u4E86\u975E\u6CD5\u7684 int UID\u3002",en:"String UID allocation service returned an invalid int UID.",ko:"\uBB38\uC790\uC5F4 UID \uD560\uB2F9 \uC11C\uBE44\uC2A4\uAC00 \uC798\uBABB\uB41C \uC815\uC218 UID\uB97C \uBC18\uD658\uD588\uC2B5\uB2C8\uB2E4.",ja:"String UID\u5272\u308A\u5F53\u3066\u30B5\u30FC\u30D3\u30B9\u304C\u7121\u52B9\u306Aint UID\u3092\u8FD4\u3057\u307E\u3057\u305F\u3002",de:"String-UID-Zuweisungsdienst hat eine ung\xFCltige int-UID zur\xFCckgegeben.",fr:"Le service d'allocation d'UID de cha\xEEne a retourn\xE9 un UID entier non valide.",id:"Layanan alokasi UID string mengembalikan UID int yang tidak valid.",ru:"\u0421\u043B\u0443\u0436\u0431\u0430 \u0440\u0430\u0441\u043F\u0440\u0435\u0434\u0435\u043B\u0435\u043D\u0438\u044F UID \u0441\u0442\u0440\u043E\u043A\u0438 \u0432\u0435\u0440\u043D\u0443\u043B\u0430 \u043D\u0435\u0434\u043E\u043F\u0443\u0441\u0442\u0438\u043C\u044B\u0439 \u0446\u0435\u043B\u043E\u0447\u0438\u0441\u043B\u0435\u043D\u043D\u044B\u0439 UID."},CAN_NOT_GET_PROXY_SERVER:{zh:"\u65E0\u6CD5\u83B7\u53D6\u4E91\u4EE3\u7406\u670D\u52A1\u5730\u5740\u3002","zh-CHT":"\u7121\u6CD5\u83B7\u53D6\u96F2\u4EE3\u7406\u670D\u52D9\u5730\u5740\u3002",en:"Unable to get cloud proxy server address.",ko:"\uD074\uB77C\uC6B0\uB4DC \uD504\uB85D\uC2DC \uC11C\uBC84 \uC8FC\uC18C\uB97C \uAC00\uC838\uC62C \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",ja:"\u30AF\u30E9\u30A6\u30C9\u30D7\u30ED\u30AD\u30B7\u30B5\u30FC\u30D0\u30FC\u306E\u30A2\u30C9\u30EC\u30B9\u3092\u53D6\u5F97\u3067\u304D\u307E\u305B\u3093\u3002",de:"Cloud-Proxy-Server-Adresse kann nicht abgerufen werden.",fr:"Impossible d'obtenir l'adresse du serveur proxy cloud.",id:"Tidak dapat mendapatkan alamat server proxy cloud.",ru:"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0430\u0434\u0440\u0435\u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043F\u0440\u043E\u043A\u0441\u0438 \u043E\u0431\u043B\u0430\u0447\u043D\u044B\u0445 \u0443\u0441\u043B\u0443\u0433."},CAN_NOT_GET_GATEWAY_SERVER:{zh:"\u65E0\u6CD5\u83B7\u53D6\u8BED\u97F3\u670D\u52A1\u5668\u5730\u5740\u3002","zh-CHT":"\u7121\u6CD5\u83B7\u53D6\u8A9E\u97F3\u670D\u52D9\u5668\u5730\u5740\u3002",en:"Unable to get voice server address.",ko:"\uC74C\uC131 \uC11C\uBC84 \uC8FC\uC18C\uB97C \uAC00\uC838\uC62C \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",ja:"\u97F3\u58F0\u30B5\u30FC\u30D0\u30FC\u306E\u30A2\u30C9\u30EC\u30B9\u3092\u53D6\u5F97\u3067\u304D\u307E\u305B\u3093\u3002",de:"Sprachserver-Adresse kann nicht abgerufen werden.",fr:"Impossible d'obtenir l'adresse du serveur vocal.",id:"Tidak dapat mendapatkan alamat server suara.",ru:"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0430\u0434\u0440\u0435\u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0433\u043E\u043B\u043E\u0441\u0430."},INVALID_LOCAL_TRACK:{zh:"\u4F20\u5165\u4E86\u975E\u6CD5\u7684 LocalTrack\u3002","zh-CHT":"\u50B3\u5165\u4E86\u975E\u6CD5\u7684 LocalTrack\u3002",en:"Invalid LocalTrack passed.",ko:"\uC798\uBABB\uB41C \uB85C\uCEEC \uD2B8\uB799\uC774 \uC804\uB2EC\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",ja:"\u7121\u52B9\u306ALocalTrack\u304C\u6E21\u3055\u308C\u307E\u3057\u305F\u3002",de:"Ung\xFCltiger LocalTrack \xFCbergeben.",fr:"Piste locale invalide transmise.",id:"Trek lokal tidak valid dilewatkan.",ru:"\u041F\u0435\u0440\u0435\u0434\u0430\u043D \u043D\u0435\u0434\u043E\u043F\u0443\u0441\u0442\u0438\u043C\u044B\u0439 LocalTrack."},CAN_NOT_PUBLISH_MULTIPLE_VIDEO_TRACKS:{zh:"\u4E00\u4E2A Client \u53D1\u5E03\u591A\u4E2A\u89C6\u9891\u8F68\u9053\u3002","zh-CHT":"\u4E00\u500B Client \u767C\u5E03\u591A\u500B\u8996\u983B\u8ECC\u9053\u3002",en:"A Client publishing multiple video tracks.",ko:"\uD074\uB77C\uC774\uC5B8\uD2B8\uAC00 \uC5EC\uB7EC \uBE44\uB514\uC624 \uD2B8\uB799\uC744 \uBC1C\uD589\uD569\uB2C8\uB2E4.",ja:"\u30AF\u30E9\u30A4\u30A2\u30F3\u30C8\u304C\u8907\u6570\u306E\u30D3\u30C7\u30AA\u30C8\u30E9\u30C3\u30AF\u3092\u516C\u958B\u3057\u3066\u3044\u307E\u3059\u3002",de:"Ein Client ver\xF6ffentlicht mehrere Videospuren.",fr:"Un client publie plusieurs pistes vid\xE9o.",id:"Klien menerbitkan beberapa trek video.",ru:"\u041A\u043B\u0438\u0435\u043D\u0442 \u043F\u0443\u0431\u043B\u0438\u043A\u0443\u0435\u0442 \u043D\u0435\u0441\u043A\u043E\u043B\u044C\u043A\u043E \u0432\u0438\u0434\u0435\u043E\u0434\u043E\u0440\u043E\u0436\u0435\u043A."},INVALID_REMOTE_USER:{zh:"\u975E\u6CD5\u7684\u8FDC\u7AEF\u7528\u6237\uFF0C\u53EF\u80FD\u662F\u8FDC\u7AEF\u7528\u6237\u4E0D\u5728\u9891\u9053\u5185\u6216\u8FD8\u672A\u53D1\u5E03\u4EFB\u4F55\u5A92\u4F53\u8F68\u9053\u3002","zh-CHT":"\u975E\u6CD5\u7684\u9060\u7AEF\u7528\u6236\uFF0C\u53EF\u80FD\u662F\u9060\u7AEF\u7528\u6236\u4E0D\u5728\u983B\u9053\u5167\u6216\u9084\u672A\u767C\u5E03\u4EFB\u4F55\u5A92\u9AD4\u8ECC\u9053\u3002",en:"Invalid remote user, possibly because the remote user is not in the channel or has not published any media tracks.",ko:"\uC798\uBABB\uB41C \uC6D0\uACA9 \uC0AC\uC6A9\uC790\uC785\uB2C8\uB2E4. \uC6D0\uACA9 \uC0AC\uC6A9\uC790\uAC00 \uCC44\uB110\uC5D0 \uC788\uC9C0 \uC54A\uAC70\uB098 \uBBF8\uB514\uC5B4 \uD2B8\uB799\uC744 \uBC1C\uD589\uD558\uC9C0 \uC54A\uC558\uC744 \uC218 \uC788\uC2B5\uB2C8\uB2E4.",ja:"\u7121\u52B9\u306A\u30EA\u30E2\u30FC\u30C8\u30E6\u30FC\u30B6\u30FC\u3067\u3059\u3002\u30EA\u30E2\u30FC\u30C8\u30E6\u30FC\u30B6\u30FC\u304C\u30C1\u30E3\u30F3\u30CD\u30EB\u306B\u3044\u306A\u3044\u304B\u3001\u30E1\u30C7\u30A3\u30A2\u30C8\u30E9\u30C3\u30AF\u3092\u516C\u958B\u3057\u3066\u3044\u306A\u3044\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059\u3002",de:"Ung\xFCltiger Remote-Benutzer, m\xF6glicherweise weil der Remote-Benutzer sich nicht im Kanal befindet oder noch keine Medien-Spuren ver\xF6ffentlicht hat.",fr:"Utilisateur distant invalide, probablement parce que l'utilisateur distant n'est pas dans le canal ou n'a pas publi\xE9 de pistes multim\xE9dias.",id:"Pengguna jarak jauh tidak valid. Mungkin karena pengguna jarak jauh tidak berada di saluran atau belum menerbitkan trek media apa pun.",ru:"\u041D\u0435\u0434\u043E\u043F\u0443\u0441\u0442\u0438\u043C\u044B\u0439 \u0443\u0434\u0430\u043B\u0435\u043D\u043D\u044B\u0439 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C, \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E, \u043F\u043E\u0442\u043E\u043C\u0443 \u0447\u0442\u043E \u0443\u0434\u0430\u043B\u0435\u043D\u043D\u044B\u0439 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C \u043D\u0435 \u043D\u0430\u0445\u043E\u0434\u0438\u0442\u0441\u044F \u0432 \u043A\u0430\u043D\u0430\u043B\u0435 \u0438\u043B\u0438 \u0435\u0449\u0435 \u043D\u0435 \u043E\u043F\u0443\u0431\u043B\u0438\u043A\u043E\u0432\u0430\u043B \u043D\u0438 \u043E\u0434\u043D\u043E\u0439 \u0434\u043E\u0440\u043E\u0436\u043A\u0438 \u043C\u0443\u043B\u044C\u0442\u0438\u043C\u0435\u0434\u0438\u0430."},REMOTE_USER_IS_NOT_PUBLISHED:{zh:"\u8FDC\u7AEF\u7528\u6237\u5DF2\u53D1\u5E03\u4E86\u97F3\u9891\u6216\u89C6\u9891\u8F68\u9053\uFF0C\u4F46\u4E0D\u662F\u4E0E\u4F60\u7684\u8BA2\u9605\u64CD\u4F5C\u6240\u6307\u5B9A\u7684\u7C7B\u578B\u4E0D\u7B26\u3002","zh-CHT":"\u9060\u7AEF\u7528\u6236\u5DF2\u767C\u5E03\u4E86\u97F3\u983B\u6216\u8996\u983B\u8ECC\u9053\uFF0C\u4F46\u4E0D\u662F\u8207\u4F60\u7684\u8A02\u95B1\u64CD\u4F5C\u6240\u6307\u5B9A\u7684\u985E\u578B\u4E0D\u7B26\u3002",en:"Remote user has published audio or video tracks, but not of the type specified by your subscription operation.",ko:"\uC6D0\uACA9 \uC0AC\uC6A9\uC790\uAC00 \uC624\uB514\uC624 \uB610\uB294 \uBE44\uB514\uC624 \uD2B8\uB799\uC744 \uBC1C\uD589\uD588\uC9C0\uB9CC \uAD6C\uB3C5 \uC791\uC5C5\uC5D0\uC11C \uC9C0\uC815\uD55C \uC720\uD615\uACFC \uC77C\uCE58\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",ja:"\u30EA\u30E2\u30FC\u30C8\u30E6\u30FC\u30B6\u30FC\u306F\u30AA\u30FC\u30C7\u30A3\u30AA\u307E\u305F\u306F\u30D3\u30C7\u30AA\u30C8\u30E9\u30C3\u30AF\u3092\u516C\u958B\u3057\u3066\u3044\u307E\u3059\u304C\u3001\u30B5\u30D6\u30B9\u30AF\u30EA\u30D7\u30B7\u30E7\u30F3\u64CD\u4F5C\u3067\u6307\u5B9A\u3055\u308C\u305F\u30BF\u30A4\u30D7\u3068\u4E00\u81F4\u3057\u307E\u305B\u3093\u3002",de:"Der Remote-Benutzer hat Audio- oder Videospuren ver\xF6ffentlicht, aber nicht vom Typ, der durch Ihren Abonnementvorgang angegeben wurde.",fr:"L'utilisateur distant a publi\xE9 des pistes audio ou vid\xE9o, mais pas du type sp\xE9cifi\xE9 par votre op\xE9ration d'abonnement.",id:"Pengguna jarak jauh telah menerbitkan trek audio atau video, tetapi tidak sesuai dengan jenis yang ditentukan oleh operasi berlangganan Anda.",ru:"\u0423\u0434\u0430\u043B\u0435\u043D\u043D\u044B\u0439 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C \u043E\u043F\u0443\u0431\u043B\u0438\u043A\u043E\u0432\u0430\u043B \u0430\u0443\u0434\u0438\u043E- \u0438\u043B\u0438 \u0432\u0438\u0434\u0435\u043E\u0434\u043E\u0440\u043E\u0436\u043A\u0438, \u043D\u043E \u043D\u0435 \u0442\u043E\u0433\u043E \u0442\u0438\u043F\u0430, \u043A\u043E\u0442\u043E\u0440\u044B\u0439 \u0443\u043A\u0430\u0437\u0430\u043D \u0432 \u0432\u0430\u0448\u0435\u0439 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438 \u043F\u043E\u0434\u043F\u0438\u0441\u043A\u0438."},ERR_TOO_MANY_BROADCASTERS:{zh:"\u9891\u9053\u5185\u4E3B\u64AD\u4EBA\u6570\u8D85\u8FC7\u4E0A\u9650\u3002","zh-CHT":"\u983B\u9053\u5167\u4E3B\u64AD\u4EBA\u6578\u8D85\u904E\u4E0A\u9650\u3002",en:"Number of broadcasters in the channel exceeds the limit.",ko:"\uCC44\uB110 \uB0B4 \uBC29\uC1A1\uC790 \uC218\uB294 \uC81C\uD55C\uC744 \uCD08\uACFC\uD588\uC2B5\uB2C8\uB2E4.",ja:"\u30C1\u30E3\u30F3\u30CD\u30EB\u5185\u306E\u30D6\u30ED\u30FC\u30C9\u30AD\u30E3\u30B9\u30BF\u30FC\u306E\u6570\u304C\u4E0A\u9650\u3092\u8D85\u3048\u3066\u3044\u307E\u3059\u3002",de:"Die Anzahl der Broadcaster im Kanal \xFCberschreitet das Limit.",fr:"Le nombre de diffuseurs dans le canal d\xE9passe la limite.",id:"Jumlah penyiar di saluran melebihi batas.",ru:"\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u0432\u0435\u0449\u0430\u0442\u0435\u043B\u0435\u0439 \u0432 \u043A\u0430\u043D\u0430\u043B\u0435 \u043F\u0440\u0435\u0432\u044B\u0448\u0430\u0435\u0442 \u043F\u0440\u0435\u0434\u0435\u043B."},ERR_TOO_MANY_SUBSCRIBERS:{zh:"\u5F53\u524D\u7528\u6237\u8BA2\u9605\u7684\u4E3B\u64AD\u4EBA\u6570\u8D85\u8FC7\u4E0A\u9650\u3002","zh-CHT":"\u7576\u524D\u7528\u6236\u8A02\u95B1\u7684\u4E3B\u64AD\u4EBA\u6578\u8D85\u904E\u4E0A\u9650\u3002",en:"Number of subscribers to the current user's channel exceeds the limit.",ko:"\uD604\uC7AC \uC0AC\uC6A9\uC790\uC758 \uCC44\uB110 \uAD6C\uB3C5\uC790 \uC218\uB294 \uC81C\uD55C\uC744 \uCD08\uACFC\uD588\uC2B5\uB2C8\uB2E4.",ja:"\u73FE\u5728\u306E\u30E6\u30FC\u30B6\u30FC\u306E\u30C1\u30E3\u30F3\u30CD\u30EB\u306E\u30B5\u30D6\u30B9\u30AF\u30E9\u30A4\u30D0\u30FC\u6570\u304C\u4E0A\u9650\u3092\u8D85\u3048\u3066\u3044\u307E\u3059\u3002",de:"Die Anzahl der Abonnenten des aktuellen Benutzers \xFCberschreitet das Limit.",fr:"Le nombre d'abonn\xE9s du canal de l'utilisateur actuel d\xE9passe la limite.",id:"Jumlah pelanggan saluran pengguna saat ini melebihi batas.",ru:"\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u043F\u043E\u0434\u043F\u0438\u0441\u0447\u0438\u043A\u043E\u0432 \u043A\u0430\u043D\u0430\u043B\u0430 \u0442\u0435\u043A\u0443\u0449\u0435\u0433\u043E \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F \u043F\u0440\u0435\u0432\u044B\u0448\u0430\u0435\u0442 \u043F\u0440\u0435\u0434\u0435\u043B."},LIVE_STREAMING_TASK_CONFLICT:{zh:"\u63A8\u6D41\u4EFB\u52A1\u5DF2\u7ECF\u5B58\u5728\u3002","zh-CHT":"\u63A8\u6D41\u4EFB\u52D9\u5DF2\u7D93\u5B58\u5728\u3002",en:"Live streaming task already exists.",ko:"\uB77C\uC774\uBE0C \uC2A4\uD2B8\uB9AC\uBC0D \uC791\uC5C5\uC774 \uC774\uBBF8 \uC874\uC7AC\uD569\uB2C8\uB2E4.",ja:"\u30E9\u30A4\u30D6\u30B9\u30C8\u30EA\u30FC\u30DF\u30F3\u30B0\u30BF\u30B9\u30AF\u304C\u3059\u3067\u306B\u5B58\u5728\u3057\u307E\u3059\u3002",de:"Live-Streaming-Aufgabe existiert bereits.",fr:"La t\xE2che de diffusion en direct existe d\xE9j\xE0.",id:"Tugas streaming langsung sudah ada.",ru:"\u0417\u0430\u0434\u0430\u0447\u0430 \u043F\u0440\u044F\u043C\u043E\u0439 \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u0438 \u0443\u0436\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442."},LIVE_STREAMING_INVALID_ARGUMENT:{zh:"\u63A8\u6D41\u53C2\u6570\u9519\u8BEF\u3002","zh-CHT":"\u63A8\u6D41\u53C3\u6578\u932F\u8AA4\u3002",en:"Invalid live streaming argument.",ko:"\uB77C\uC774\uBE0C \uC2A4\uD2B8\uB9AC\uBC0D \uC778\uC218\uAC00 \uC798\uBABB\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",ja:"\u30E9\u30A4\u30D6\u30B9\u30C8\u30EA\u30FC\u30DF\u30F3\u30B0\u5F15\u6570\u304C\u7121\u52B9\u3067\u3059\u3002",de:"Ung\xFCltiger Live-Streaming-Parameter.",fr:"Argument de diffusion en direct invalide.",id:"Argumen streaming langsung tidak valid.",ru:"\u041D\u0435\u0434\u043E\u043F\u0443\u0441\u0442\u0438\u043C\u044B\u0439 \u0430\u0440\u0433\u0443\u043C\u0435\u043D\u0442 \u043F\u0440\u044F\u043C\u043E\u0439 \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u0438."},LIVE_STREAMING_INTERNAL_SERVER_ERROR:{zh:"\u63A8\u6D41\u670D\u52A1\u5668\u5185\u90E8\u9519\u8BEF\u3002","zh-CHT":"\u63A8\u6D41\u670D\u52D9\u5668\u5185\u90E8\u932F\u8AA4\u3002",en:"Live streaming server internal error.",ko:"\uB77C\uC774\uBE0C \uC2A4\uD2B8\uB9AC\uBC0D \uC11C\uBC84 \uB0B4\uBD80 \uC624\uB958\uC785\uB2C8\uB2E4.",ja:"\u30E9\u30A4\u30D6\u30B9\u30C8\u30EA\u30FC\u30DF\u30F3\u30B0\u30B5\u30FC\u30D0\u30FC\u306E\u5185\u90E8\u30A8\u30E9\u30FC\u3067\u3059\u3002",de:"Interner Fehler des Live-Streaming-Servers.",fr:"Erreur interne du serveur de diffusion en direct.",id:"Kesalahan internal server streaming langsung.",ru:"\u0412\u043D\u0443\u0442\u0440\u0435\u043D\u043D\u044F\u044F \u043E\u0448\u0438\u0431\u043A\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043F\u0440\u044F\u043C\u043E\u0439 \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u0438."},LIVE_STREAMING_PUBLISH_STREAM_NOT_AUTHORIZED:{zh:"\u63A8\u6D41 URL \u88AB\u5360\u7528\u3002","zh-CHT":"\u63A8\u6D41 URL \u88AB\u4F54\u7528\u3002",en:"Live streaming URL is occupied.",ko:"\uB77C\uC774\uBE0C \uC2A4\uD2B8\uB9AC\uBC0D URL\uC774 \uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC785\uB2C8\uB2E4.",ja:"\u30E9\u30A4\u30D6\u30B9\u30C8\u30EA\u30FC\u30DF\u30F3\u30B0URL\u306F\u3059\u3067\u306B\u5360\u6709\u3055\u308C\u3066\u3044\u307E\u3059\u3002",de:"Live-Streaming-URL ist besetzt.",fr:"L'URL de diffusion en direct est occup\xE9e.",id:"URL streaming langsung sudah digunakan.",ru:"URL \u043F\u0440\u044F\u043C\u043E\u0439 \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u0438 \u0443\u0436\u0435 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0435\u0442\u0441\u044F."},LIVE_STREAMING_CDN_ERROR:{zh:"\u63A8\u6D41\u7684\u76EE\u6807 CDN \u51FA\u73B0\u9519\u8BEF\u5BFC\u81F4\u63A8\u6D41\u5931\u8D25\u3002","zh-CHT":"\u63A8\u6D41\u7684\u76EE\u6A19 CDN \u51FA\u73FE\u932F\u8AA4\u5C0E\u81F4\u63A8\u6D41\u5931\u6557\u3002",en:"Live streaming failed due to error in target CDN.",ko:"\uB300\uC0C1 CDN\uC5D0\uC11C \uC624\uB958\uAC00 \uBC1C\uC0DD\uD558\uC5EC \uB77C\uC774\uBE0C \uC2A4\uD2B8\uB9AC\uBC0D\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4.",ja:"\u30BF\u30FC\u30B2\u30C3\u30C8CDN\u306E\u30A8\u30E9\u30FC\u306B\u3088\u308A\u3001\u30E9\u30A4\u30D6\u30B9\u30C8\u30EA\u30FC\u30DF\u30F3\u30B0\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002",de:"Live-Streaming fehlgeschlagen aufgrund eines Fehlers im Ziel-CDN.",fr:"La diffusion en direct a \xE9chou\xE9 en raison d'une erreur dans le CDN cible.",id:"Streaming langsung gagal karena kesalahan di CDN target.",ru:"\u041F\u0440\u044F\u043C\u0430\u044F \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u043D\u0435 \u0443\u0434\u0430\u043B\u0430\u0441\u044C \u0438\u0437-\u0437\u0430 \u043E\u0448\u0438\u0431\u043A\u0438 \u0432 \u0446\u0435\u043B\u0435\u0432\u043E\u043C CDN."},LIVE_STREAMING_INVALID_RAW_STREAM:{zh:"\u63A8\u6D41\u8D85\u65F6\u3002","zh-CHT":"\u63A8\u6D41\u8D85\u6642\u3002",en:"Live streaming timed out.",ko:"\uB77C\uC774\uBE0C \uC2A4\uD2B8\uB9AC\uBC0D\uC774 \uC2DC\uAC04 \uCD08\uACFC\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",ja:"\u30E9\u30A4\u30D6\u30B9\u30C8\u30EA\u30FC\u30DF\u30F3\u30B0\u304C\u30BF\u30A4\u30E0\u30A2\u30A6\u30C8\u3057\u307E\u3057\u305F\u3002",de:"Live-Streaming hat einen Timeout erreicht.",fr:"La diffusion en direct a expir\xE9.",id:"Streaming langsung telah kedaluwarsa.",ru:"\u041F\u0440\u044F\u043C\u0430\u044F \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F timed out."},CROSS_CHANNEL_WAIT_STATUS_ERROR:{zh:"\u7B49\u5F85 RTCClient.on(channel-media-relay-state) \u56DE\u8C03\u51FA\u9519\u3002","zh-CHT":"\u7B49\u5F85 RTCClient.on(channel-media-relay-state) \u56DE\u8ABF\u51FA\u932F\u3002",en:"Error waiting for RTCClient.on(channel-media-relay-state) callback.",ko:"RTCClient.on(channel-media-relay-state) \uCF5C\uBC31\uC744 \uAE30\uB2E4\uB9AC\uB294 \uB3D9\uC548 \uC624\uB958\uAC00 \uBC1C\uC0DD\uD588\uC2B5\uB2C8\uB2E4.",ja:"RTCClient.on(channel-media-relay-state)\u30B3\u30FC\u30EB\u30D0\u30C3\u30AF\u3092\u5F85\u6A5F\u4E2D\u306B\u30A8\u30E9\u30FC\u304C\u767A\u751F\u3057\u307E\u3057\u305F\u3002",de:"Fehler beim Warten auf den RTCClient.on(channel-media-relay-state)-R\xFCckruf.",fr:"Erreur lors de l'attente du rappel RTCClient.on(channel-media-relay-state).",id:"Kesalahan saat menunggu panggilan balik RTCClient.on(channel-media-relay-state).",ru:"\u041E\u0448\u0438\u0431\u043A\u0430 \u043F\u0440\u0438 \u043E\u0436\u0438\u0434\u0430\u043D\u0438\u0438 \u043E\u0431\u0440\u0430\u0442\u043D\u043E\u0433\u043E \u0432\u044B\u0437\u043E\u0432\u0430 RTCClient.on(channel-media-relay-state)."},CROSS_CHANNEL_FAILED_JOIN_SRC:{zh:"\u53D1\u8D77\u8DE8\u9891\u9053\u8F6C\u53D1\u5A92\u4F53\u6D41\u8BF7\u6C42\u5931\u8D25\u3002","zh-CHT":"\u767C\u8D77\u8DE8\u983B\u9053\u8F49\u767C\u5A92\u9AD4\u6D41\u8ACB\u6C42\u5931\u6557\u3002",en:"Failed to initiate cross-channel media stream forwarding request.",ko:"\uCC44\uB110 \uAC04 \uBBF8\uB514\uC5B4 \uC2A4\uD2B8\uB9BC \uC804\uB2EC \uC694\uCCAD\uC744 \uC2DC\uC791\uD558\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.",ja:"\u30C1\u30E3\u30F3\u30CD\u30EB\u9593\u30E1\u30C7\u30A3\u30A2\u30B9\u30C8\u30EA\u30FC\u30E0\u8EE2\u9001\u30EA\u30AF\u30A8\u30B9\u30C8\u306E\u958B\u59CB\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002",de:"Fehler beim Initiieren einer Anfrage zur Weiterleitung von Medienstr\xF6men zwischen Kan\xE4len.",fr:"\xC9chec de l'initialisation de la demande de transfert de flux multim\xE9dia entre canaux.",id:"Gagal memulai permintaan pengalihan aliran media antar saluran.",ru:"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0438\u043D\u0438\u0446\u0438\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0437\u0430\u043F\u0440\u043E\u0441 \u043D\u0430 \u043F\u0435\u0440\u0435\u0441\u044B\u043B\u043A\u0443 \u043F\u043E\u0442\u043E\u043A\u0430 \u043C\u0443\u043B\u044C\u0442\u0438\u043C\u0435\u0434\u0438\u0430 \u043C\u0435\u0436\u0434\u0443 \u043A\u0430\u043D\u0430\u043B\u0430\u043C\u0438."},CROSS_CHANNEL_FAILED_JOIN_DEST:{zh:"\u63A5\u53D7\u8DE8\u9891\u9053\u8F6C\u53D1\u5A92\u4F53\u6D41\u8BF7\u6C42\u5931\u8D25\u3002","zh-CHT":"\u63A5\u53D7\u8DE8\u983B\u9053\u8F49\u767C\u5A92\u9AD4\u6D41\u8ACB\u6C42\u5931\u6557\u3002",en:"Failed to accept cross-channel media stream forwarding request.",ko:"\uCC44\uB110 \uAC04 \uBBF8\uB514\uC5B4 \uC2A4\uD2B8\uB9BC \uC804\uB2EC \uC694\uCCAD\uC744 \uC218\uB77D\uD558\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.",ja:"\u30C1\u30E3\u30F3\u30CD\u30EB\u9593\u30E1\u30C7\u30A3\u30A2\u30B9\u30C8\u30EA\u30FC\u30E0\u8EE2\u9001\u30EA\u30AF\u30A8\u30B9\u30C8\u306E\u53D7\u3051\u5165\u308C\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002",de:"Fehler beim Akzeptieren einer Anfrage zur Weiterleitung von Medienstr\xF6men zwischen Kan\xE4len.",fr:"\xC9chec de l'acceptation de la demande de transfert de flux multim\xE9dia entre canaux.",id:"Gagal menerima permintaan pengalihan aliran media antar saluran.",ru:"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043F\u0440\u0438\u043D\u044F\u0442\u044C \u0437\u0430\u043F\u0440\u043E\u0441 \u043D\u0430 \u043F\u0435\u0440\u0435\u0441\u044B\u043B\u043A\u0443 \u043F\u043E\u0442\u043E\u043A\u0430 \u043C\u0443\u043B\u044C\u0442\u0438\u043C\u0435\u0434\u0438\u0430 \u043C\u0435\u0436\u0434\u0443 \u043A\u0430\u043D\u0430\u043B\u0430\u043C\u0438."},CROSS_CHANNEL_FAILED_PACKET_SENT_TO_DEST:{zh:"\u670D\u52A1\u5668\u63A5\u6536\u8DE8\u9891\u9053\u8F6C\u53D1\u5A92\u4F53\u6D41\u5931\u8D25\u3002","zh-CHT":"\u670D\u52D9\u5668\u63A5\u6536\u8DE8\u983B\u9053\u8F49\u767C\u5A92\u9AD4\u6D41\u5931\u6557\u3002",en:"Server failed to receive cross-channel forwarded media stream.",ko:"\uC11C\uBC84\uAC00 \uCC44\uB110 \uAC04 \uC804\uB2EC\uB41C \uBBF8\uB514\uC5B4 \uC2A4\uD2B8\uB9BC\uC744 \uC218\uC2E0\uD558\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.",ja:"\u30B5\u30FC\u30D0\u30FC\u304C\u30C1\u30E3\u30F3\u30CD\u30EB\u9593\u8EE2\u9001\u3055\u308C\u305F\u30E1\u30C7\u30A3\u30A2\u30B9\u30C8\u30EA\u30FC\u30E0\u306E\u53D7\u4FE1\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002",de:"Server konnte den zwischen Kan\xE4len weitergeleiteten Medienstrom nicht empfangen.",fr:"Le serveur n'a pas pu recevoir le flux multim\xE9dia transf\xE9r\xE9 entre canaux.",id:"Server gagal menerima aliran media yang dikirimkan antar saluran.",ru:"\u0421\u0435\u0440\u0432\u0435\u0440 \u043D\u0435 \u0441\u043C\u043E\u0433 \u043F\u0440\u0438\u043D\u044F\u0442\u044C \u043F\u043E\u0442\u043E\u043A \u043C\u0443\u043B\u044C\u0442\u0438\u043C\u0435\u0434\u0438\u0430, \u043F\u0435\u0440\u0435\u0441\u043B\u0430\u043D\u043D\u044B\u0439 \u043C\u0435\u0436\u0434\u0443 \u043A\u0430\u043D\u0430\u043B\u0430\u043C\u0438."},CROSS_CHANNEL_SERVER_ERROR_RESPONSE:{zh:"\u670D\u52A1\u5668\u54CD\u5E94\u51FA\u9519\u3002","zh-CHT":"\u670D\u52D9\u5668\u97FF\u61C9\u51FA\u932F\u3002",en:"Server response error.",ko:"\uC11C\uBC84 \uC751\uB2F5 \uC624\uB958\uC785\uB2C8\uB2E4.",ja:"\u30B5\u30FC\u30D0\u30FC\u306E\u30EC\u30B9\u30DD\u30F3\u30B9\u30A8\u30E9\u30FC\u3067\u3059\u3002",de:"Server-Antwortfehler.",fr:"Erreur de r\xE9ponse du serveur.",id:"Kesalahan respons server.",ru:"\u041E\u0448\u0438\u0431\u043A\u0430 \u043E\u0442\u0432\u0435\u0442\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0430."}},$t=(e,s)=>{const t=Jd[e];return t?t[s]||t.en:null};var Qd=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"meeting-warp"},[t("Modal",{attrs:{title:e.$L(e.addData.type==="join"?"\u52A0\u5165\u4F1A\u8BAE":"\u65B0\u4F1A\u8BAE"),"mask-closable":!1,closable:!e.addData.sharekey},model:{value:e.addShow,callback:function(i){e.addShow=i},expression:"addShow"}},[t("Form",e._b({ref:"addForm",attrs:{model:e.addData,rules:e.addRule},nativeOn:{submit:function(i){i.preventDefault()}}},"Form",e.formOptions,!1),[e.addData.type==="join"?[e.addData.name?t("FormItem",{attrs:{prop:"userids",label:e.$L("\u4F1A\u8BAE\u4E3B\u9898")}},[t("Input",{attrs:{disabled:""},model:{value:e.addData.name,callback:function(i){e.$set(e.addData,"name",i)},expression:"addData.name"}})],1):e._e(),e.addData.sharekey?t("FormItem",{attrs:{prop:"username",label:e.$L("\u4F60\u7684\u59D3\u540D")}},[t("Input",{attrs:{placeholder:e.$L("\u8BF7\u8F93\u5165\u4F60\u7684\u59D3\u540D")},model:{value:e.addData.username,callback:function(i){e.$set(e.addData,"username",i)},expression:"addData.username"}})],1):e._e(),t("FormItem",{attrs:{prop:"meetingid",label:e.$L("\u4F1A\u8BAE\u9891\u9053ID")}},[t("Input",{attrs:{disabled:e.addData.meetingdisabled===!0,placeholder:e.$L("\u8BF7\u8F93\u5165\u4F1A\u8BAE\u9891\u9053ID")},model:{value:e.addData.meetingid,callback:function(i){e.$set(e.addData,"meetingid",i)},expression:"addData.meetingid"}})],1)]:[t("FormItem",{attrs:{prop:"name",label:e.$L("\u4F1A\u8BAE\u4E3B\u9898")}},[t("Input",{attrs:{maxlength:50,placeholder:e.$L("\u9009\u586B")},model:{value:e.addData.name,callback:function(i){e.$set(e.addData,"name",i)},expression:"addData.name"}})],1),t("FormItem",{attrs:{prop:"userids",label:e.$L("\u9080\u8BF7\u6210\u5458")}},[t("UserSelect",{attrs:{uncancelable:[e.userId],"multiple-max":20,title:e.$L("\u9009\u62E9\u9080\u8BF7\u6210\u5458")},model:{value:e.addData.userids,callback:function(i){e.$set(e.addData,"userids",i)},expression:"addData.userids"}})],1)],t("FormItem",{attrs:{prop:"tracks"}},[t("CheckboxGroup",{model:{value:e.addData.tracks,callback:function(i){e.$set(e.addData,"tracks",i)},expression:"addData.tracks"}},[t("Checkbox",{attrs:{label:"audio"}},[t("span",[e._v(e._s(e.$L("\u9EA6\u514B\u98CE")))])]),t("Checkbox",{attrs:{label:"video"}},[t("span",[e._v(e._s(e.$L("\u6444\u50CF\u5934")))])])],1)],1)],2),t("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e.addData.sharekey?e._e():t("Button",{attrs:{type:"default"},on:{click:function(i){e.addShow=!1}}},[e._v(e._s(e.$L("\u53D6\u6D88")))]),t("Button",{attrs:{type:"primary",loading:e.loadIng>0},on:{click:e.onSubmit}},[e._v(e._s(e.$L(e.addData.type==="join"?"\u52A0\u5165\u4F1A\u8BAE":"\u5F00\u59CB\u4F1A\u8BAE")))])],1)],1),t("Modal",{ref:"meetingModal",attrs:{title:e.addData.name,mask:!1,"mask-closable":!1,closable:!1,"transition-names":["",""],beforeClose:e.onClose,"class-name":`meeting-manager${e.meetingMini?" meeting-hidden":""}`,"ignore-remove-last":e.meetingMini,fullscreen:""},model:{value:e.meetingShow,callback:function(i){e.meetingShow=i},expression:"meetingShow"}},[t("ul",[e.localUser.uid?t("li",[t("Player",{attrs:{player:e.localUser,isLocal:""}})],1):e._e(),e._l(e.remoteUsers,function(i){return t("li",[t("Player",{attrs:{player:i}})],1)})],2),t("div",{staticClass:"adaption meeting-button-group",attrs:{slot:"footer"},slot:"footer"},[t("Button",{attrs:{type:"primary",loading:e.audioLoad},on:{click:e.onAudio}},[t("i",{staticClass:"taskfont",domProps:{innerHTML:e._s(e.localUser.audioTrack?"":"")}})]),t("Button",{attrs:{type:"primary",loading:e.videoLoad},on:{click:e.onVideo}},[t("i",{staticClass:"taskfont",domProps:{innerHTML:e._s(e.localUser.videoTrack?"":"")}})]),e.windowPortrait?[t("Button",{attrs:{type:"primary",loading:e.linkCopyLoad},on:{click:function(i){return e.onInvitation("open")}}},[t("i",{staticClass:"taskfont"},[e._v("\uE646")])]),e.addData.sharekey?e._e():t("Button",{attrs:{type:"primary"},on:{click:function(i){e.meetingMini=!0}}},[t("i",{staticClass:"taskfont"},[e._v("\uE656")])]),t("Button",{attrs:{type:"warning",loading:e.loadIng>0},on:{click:e.onClose}},[t("i",{staticClass:"taskfont"},[e._v("\uE612")])])]:[t("Button",{attrs:{type:"primary"},on:{click:function(i){return e.onInvitation("open")}}},[e._v(e._s(e.$L("\u9080\u8BF7")))]),e.addData.sharekey?e._e():t("Button",{attrs:{type:"primary"},on:{click:function(i){e.meetingMini=!0}}},[e._v(e._s(e.$L("\u6700\u5C0F\u5316")))]),t("Button",{attrs:{type:"warning",loading:e.loadIng>0},on:{click:e.onClose}},[e._v(e._s(e.$L("\u79BB\u5F00\u4F1A\u8BAE")))])]],2)]),e.meetingMini?t("DragBallComponent",{attrs:{id:"meetingDragBall","z-index":3e3},on:{"on-click":function(i){e.meetingMini=!1}}},[t("div",{staticClass:"meeting-drag-ball"},[t("i",{staticClass:"taskfont",domProps:{innerHTML:e._s(e.localUser.audioTrack?"":"")}}),t("i",{staticClass:"taskfont",domProps:{innerHTML:e._s(e.localUser.videoTrack?"":"")}}),t("em",[e._v(e._s(e.$L("\u4F1A\u8BAE\u4E2D")))])])]):e._e(),t("Modal",{attrs:{title:e.$L("\u9080\u8BF7\u52A0\u5165"),"mask-closable":!1},model:{value:e.invitationShow,callback:function(i){e.invitationShow=i},expression:"invitationShow"}},[t("Form",e._b({ref:"invitationForm",attrs:{model:e.invitationData},nativeOn:{submit:function(i){i.preventDefault()}}},"Form",e.formOptions,!1),[t("FormItem",{attrs:{prop:"userids",label:e.$L("\u9080\u8BF7\u6210\u5458")}},[t("UserSelect",{attrs:{"multiple-max":20,title:e.$L("\u9009\u62E9\u9080\u8BF7\u6210\u5458")},model:{value:e.invitationData.userids,callback:function(i){e.$set(e.invitationData,"userids",i)},expression:"invitationData.userids"}})],1)],1),t("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[t("Button",{attrs:{type:"default",loading:e.linkCopyLoad},on:{click:e.linkCopy}},[e._v(e._s(e.$L("\u590D\u5236\u94FE\u63A5")))]),t("Button",{attrs:{type:"primary",loading:e.invitationLoad},on:{click:function(i){return e.onInvitation("submit")}}},[e._v(e._s(e.$L("\u53D1\u9001\u9080\u8BF7")))])],1)],1)],1)},Xd=[];const Zd={name:"MeetingManager",components:{UserSelect:Ft,DragBallComponent:Gd,Player:Hd},props:{id:{type:String,default:()=>"meeting-player-"+Math.round(Math.random()*1e4)}},data(){return{loadIng:0,addShow:!1,addData:{userids:[],tracks:["audio"]},addRule:{username:[{required:!0,message:this.$L("\u8BF7\u8F93\u5165\u4F60\u7684\u59D3\u540D\uFF01"),trigger:"change"}]},invitationShow:!1,invitationLoad:!1,invitationData:{userids:[]},meetingShow:!1,meetingMini:!1,audioLoad:!1,videoLoad:!1,agoraClient:null,remoteUsers:[],localUser:{uid:null,audioTrack:null,videoTrack:null},linkCopyLoad:!1}},computed:{...B(["meetingWindow","appMeetingShow","formOptions","userToken"])},mounted(){x.on("addMeeting",this.onAdd)},beforeDestroy(){x.off("addMeeting",this.onAdd)},watch:{meetingMini(e){e||(this.$refs.meetingModal.modalIndex=this.$refs.meetingModal.handleGetModalIndex())},meetingWindow:{handler(e){switch(e.type){case"add":this.addShow=e.show;break;case"join":case"direct":this.addShow=e.show,this.addData.type="join",e.meetingNickname&&(this.addData.username=e.meetingNickname),e.meetingAvatar&&(this.addData.userimg=e.meetingAvatar),$A.runNum(e.meetingAudio)&&!this.addData.tracks.includes("audio")&&this.addData.tracks.push("audio"),$A.runNum(e.meetingVideo)&&!this.addData.tracks.includes("video")&&this.addData.tracks.push("video"),e.meetingSharekey&&(this.addData.sharekey=e.meetingSharekey,this.addData.meetingid=e.meetingid||"",this.addData.meetingdisabled=!!e.meetingSharekey),e.type==="direct"&&this.onOpen(!0);break;case"invitation":this.invitationShow=e.show,this.invitationLoad=!1,this.invitationData.meetingid=e.meetingid;break;case"error":this.addShow=e.show,this.invitationShow=e.show,this.invitationLoad=!1,$A.modalError("\u52A0\u5165\u4F1A\u8BAE\u5931\u8D25");break}},immediate:!0}},methods:{onAdd(e){e=$A.isJson(e)?e:{},/^\d+$/.test(e.dialog_id)&&(this.loadIng++,this.$store.dispatch("call",{url:"dialog/user",data:{dialog_id:e.dialog_id}}).then(({data:s})=>{this.$set(this.addData,"userids",s.filter(t=>!t.bot).map(t=>t.userid))}).finally(s=>{this.loadIng--}),delete e.dialog_id),$A.isArray(e.userids)||(e.userids=[]),this.userId&&!e.userids.includes(this.userId)&&e.userids.push(this.userId),$A.isArray(e.tracks)?e.tracks.includes("audio")||e.tracks.push("audio"):e.tracks=["audio"],this.addData=e,this.addShow=!0},onSubmit(){this.$refs.addForm.validate(e=>{e&&this.onOpen()})},async onOpen(e=!1){let s=!1;if($A.isEEUIApp)s=this.appMeetingShow;else if($A.Electron){const i=await $A.Electron.sendAsync("getChildWindow","meeting-window");if(i){const n=await $A.Electron.sendAsync("getChildWindow",null);s=(n==null?void 0:n.id)!==i.id}}else s=this.meetingShow;if(s){$A.modalWarning({content:"\u6B63\u5728\u4F1A\u8BAE\u4E2D\uFF0C\u65E0\u6CD5\u8FDB\u5165\u5176\u4ED6\u4F1A\u8BAE\u5BA4",onOk:this.onBeforeClose});return}const t=i=>{e?i?this.$store.dispatch("showSpinner"):this.$store.dispatch("hiddenSpinner",600):i?this.loadIng++:this.loadIng--};t(!0),this.$store.dispatch("call",{url:"users/meeting/open",data:this.addData}).then(({data:i})=>{if(this.$set(this.addData,"name",i.name),this.$set(this.addData,"meetingid",i.meetingid),this.$set(this.localUser,"nickname",i.nickname),this.$set(this.localUser,"userimg",i.userimg),this.$store.dispatch("saveDialogMsg",i.msgs),this.$store.dispatch("updateDialogLastMsg",i.msgs),delete i.name,delete i.msgs,$A.isEEUIApp){t(!0),this.loadNum=0,this.loadTimer&&clearInterval(this.loadTimer),this.loadTimer=setInterval(()=>{this.addShow&&++this.loadNum<10||(clearInterval(this.loadTimer),t(!1))},1e3),$A.eeuiAppSendMessage({action:"startMeeting",meetingParams:{name:this.addData.name,token:i.token,channel:i.channel,uuid:i.uid,appid:i.appid,avatar:i.userimg,username:i.nickname,video:this.addData.tracks.includes("video"),audio:this.addData.tracks.includes("audio"),meetingid:i.meetingid,sharelink:i.sharelink,alert:{title:this.$L("\u6E29\u99A8\u63D0\u793A"),message:this.$L("\u786E\u5B9A\u8981\u79BB\u5F00\u4F1A\u8BAE\u5417\uFF1F"),cancel:this.$L("\u7EE7\u7EED"),confirm:this.$L("\u9000\u51FA")}}});return}if($A.Electron&&!this.addData.sharekey){t(!0),this.$store.dispatch("call",{url:"users/meeting/link",data:{meetingid:i.meetingid}}).then(n=>{const r=$A.urlAddParams($A.removeMainUrlPrefix(n.data),{type:"direct",nickname:i.nickname,avatar:i.userimg,audio:this.addData.tracks.includes("audio")?1:0,video:this.addData.tracks.includes("video")?1:0,token:this.userToken});this.$store.dispatch("openWindow",{name:"meeting-window",path:r,mode:"window",title:this.addData.name,titleFixed:!0}),this.addShow=!1}).catch(({msg:n})=>{$A.modalError({content:n,onOk:this.onBeforeClose})}).finally(n=>{t(!1)});return}t(!0),$A.loadScript("js/AgoraRTC_N-4.17.0.js").then(n=>{this.join(i)}).catch(n=>{$A.modalError({content:"\u4F1A\u8BAE\u7EC4\u4EF6\u52A0\u8F7D\u5931\u8D25\uFF01",onOk:this.onBeforeClose})}).finally(n=>{t(!1)})}).catch(({msg:i})=>{$A.modalError({content:i,onOk:this.onBeforeClose})}).finally(i=>{t(!1)})},onAudio(){this.localUser.audioTrack?this.closeAudio():this.openAudio()},onVideo(){this.localUser.videoTrack?this.closeVideo():this.openVideo()},onInvitation(e){if(e==="open"){if(this.addData.sharekey&&!this.userId){this.linkCopy();return}this.invitationData={userids:[],meetingid:this.addData.meetingid},this.invitationShow=!0}else if(e==="submit"){if(this.invitationData.userids.length===0){$A.modalWarning("\u8BF7\u9009\u62E9\u9080\u8BF7\u6210\u5458");return}this.invitationLoad=!0,this.$store.dispatch("call",{url:"users/meeting/invitation",data:this.invitationData}).then(({data:s,msg:t})=>{this.invitationShow=!1,this.$store.dispatch("saveDialogMsg",s.msgs),this.$store.dispatch("updateDialogLastMsg",s.msgs),$A.messageSuccess(t)}).catch(({msg:s})=>{$A.modalError(s)}).finally(s=>{this.invitationLoad=!1})}},onClose(){return new Promise(e=>{$A.modalConfirm({content:"\u786E\u5B9A\u8981\u79BB\u5F00\u4F1A\u8BAE\u5417\uFF1F",cancelText:"\u7EE7\u7EED",okText:"\u9000\u51FA",onOk:async()=>{await this.onBeforeClose(),e()}})})},async onBeforeClose(){try{await this.leave()}catch(e){console.error(e)}$A.isSubElectron?this.$Electron.sendMessage("windowDestroy"):this.addData.sharekey&&(this.addShow=!0)},linkCopy(){this.linkCopyLoad=!0,this.$store.dispatch("call",{url:"users/meeting/link",data:{meetingid:this.addData.meetingid||this.invitationData.meetingid,sharekey:this.addData.sharekey}}).then(({data:e})=>{this.copyText({text:e,success:"\u5DF2\u590D\u5236\u4F1A\u8BAE\u9080\u8BF7\u94FE\u63A5",error:"\u590D\u5236\u5931\u8D25"}),this.invitationShow=!1}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.linkCopyLoad=!1})},async join(e){this.loadIng++;try{AgoraRTC.onMicrophoneChanged=async t=>{var i,n,r;if(t.state==="ACTIVE")(i=this.localUser.audioTrack)==null||i.setDevice(t.device.deviceId);else if(t.device.label===((n=this.localUser.audioTrack)==null?void 0:n.getTrackLabel())){const o=await AgoraRTC.getMicrophones();o[0]&&((r=this.localUser.audioTrack)==null||r.setDevice(o[0].deviceId))}},AgoraRTC.onCameraChanged=async t=>{var i,n,r;if(t.state==="ACTIVE")(i=this.localUser.videoTrack)==null||i.setDevice(t.device.deviceId);else if(t.device.label===((n=this.localUser.videoTrack)==null?void 0:n.getTrackLabel())){const o=await AgoraRTC.getCameras();o[0]&&((r=this.localUser.videoTrack)==null||r.setDevice(o[0].deviceId))}},AgoraRTC.onAutoplayFailed=()=>{$A.messageWarning("\u70B9\u51FB\u5C4F\u5E55\u5F00\u59CB\u4F1A\u8BAE")},AgoraRTC.setLogLevel(window.systemInfo.debug==="yes"?0:3),this.agoraClient=AgoraRTC.createClient({mode:"rtc",codec:"vp8"}),this.agoraClient.on("user-joined",this.handleUserJoined),this.agoraClient.on("user-left",this.handleUserLeft),this.agoraClient.on("user-published",this.handleUserPublished),this.agoraClient.on("user-unpublished",this.handleUserUnpublished);const s=[];try{this.localUser.uid=await this.agoraClient.join(e.appid,e.channel,e.token,e.uid),await Promise.all(["audio","video"].map(async t=>{if(!this.addData.tracks.includes(t))return;const i=t==="audio"?AgoraRTC.createMicrophoneAudioTrack:AgoraRTC.createCameraVideoTrack,n=`${t}Track`;try{this.localUser[n]=await i(),s.push(this.localUser[n])}catch(r){if(r.code==="DEVICE_NOT_FOUND")console.warn(`${t} device not found:`,r);else throw r}})),s.length>0&&await this.agoraClient.publish(s),this.meetingShow=!0}catch(t){console.error(t),$A.modalError({language:!1,content:$t(t.code,M)||this.$L("\u4F1A\u8BAE\u7EC4\u4EF6\u52A0\u8F7D\u5931\u8D25\uFF01"),onOk:this.onBeforeClose})}}catch{}this.addShow=!1,this.loadIng--},async leave(){this.loadIng++;try{["audioTrack","videoTrack"].some(e=>{var s,t;(s=this.localUser[e])==null||s.stop(),(t=this.localUser[e])==null||t.close()}),this.localUser={uid:null,audioTrack:null,videoTrack:null},this.remoteUsers=[],await this.agoraClient.leave()}catch{}this.meetingShow=!1,this.loadIng--},async openAudio(){if(!(this.audioLoad||this.localUser.audioTrack)){this.audioLoad=!0;try{this.localUser.audioTrack=await AgoraRTC.createMicrophoneAudioTrack(),await this.agoraClient.publish([this.localUser.audioTrack])}catch(e){$A.modalError({language:!1,content:$t(e.code,M)||this.$L("\u5F00\u542F\u9EA6\u514B\u98CE\u5931\u8D25\uFF01")})}finally{this.audioLoad=!1}}},async closeAudio(){this.audioLoad||!this.localUser.audioTrack||(this.audioLoad=!0,await this.agoraClient.unpublish([this.localUser.audioTrack]),this.localUser.audioTrack.stop(),this.localUser.audioTrack.close(),this.localUser.audioTrack=null,this.audioLoad=!1)},async openVideo(){if(!(this.videoLoad||this.localUser.videoTrack)){this.videoLoad=!0;try{this.localUser.videoTrack=await AgoraRTC.createCameraVideoTrack(),await this.agoraClient.publish([this.localUser.videoTrack])}catch(e){$A.modalError({language:!1,content:$t(e.code,M)||this.$L("\u5F00\u542F\u6444\u50CF\u5934\u5931\u8D25\uFF01")})}finally{this.videoLoad=!1}}},async closeVideo(){this.videoLoad||!this.localUser.videoTrack||(this.videoLoad=!0,await this.agoraClient.unpublish([this.localUser.videoTrack]),this.localUser.videoTrack.stop(),this.localUser.videoTrack.close(),this.localUser.videoTrack=null,this.videoLoad=!1)},async handleUserJoined(e){if(e.uid==this.localUser.uid)return;const s=this.remoteUsers.findIndex(t=>t.uid==e.uid);s>-1?this.remoteUsers.splice(s,1,e):this.remoteUsers.push(e)},async handleUserLeft(e){const s=this.remoteUsers.findIndex(t=>t.uid==e.uid);s>-1&&this.remoteUsers.splice(s,1)},async handleUserPublished(e,s){this.remoteUsers.find(i=>i.uid==e.uid)&&await this.agoraClient.subscribe(e,s)},async handleUserUnpublished(e,s){this.remoteUsers.find(i=>i.uid==e.uid)&&await this.agoraClient.unsubscribe(e,s)}}},ci={};var eh=A(Zd,Qd,Xd,!1,th,null,null,null);function th(e){for(let s in ci)this[s]=ci[s]}var sh=function(){return eh.exports}();const Be=/(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff]|[\u0023-\u0039]\ufe0f?\u20e3|\u3299|\u3297|\u303d|\u3030|\u24c2|\ud83c[\udd70-\udd71]|\ud83c[\udd7e-\udd7f]|\ud83c\udd8e|\ud83c[\udd91-\udd9a]|\ud83c[\udde6-\uddff]|\ud83c[\ude01-\ude02]|\ud83c\ude1a|\ud83c\ude2f|\ud83c[\ude32-\ude3a]|\ud83c[\ude50-\ude51]|\u203c|\u2049|[\u25aa-\u25ab]|\u25b6|\u25c0|[\u25fb-\u25fe]|\u00a9|\u00ae|\u2122|\u2139|\ud83c\udc04|[\u2600-\u26FF]|\u2b05|\u2b06|\u2b07|\u2b1b|\u2b1c|\u2b50|\u2b55|\u231a|\u231b|\u2328|\u23cf|[\u23e9-\u23f3]|[\u23f8-\u23fa]|\ud83c\udccf|\u2934|\u2935|[\u2190-\u21ff])/g,ih=e=>(Be.lastIndex=0,Be.test(e));function mt(e,s="emoji-original",t="span"){if(typeof e!="string")return"";if((!s||typeof s!="string")&&(s="emoji-original"),(!t||typeof t!="string")&&(t="span"),!ih(e))return e;Be.lastIndex=0;let i="",n=0,r;for(;(r=Be.exec(e))!==null;)r.index>n&&(i+=e.substring(n,r.index)),i+=`<${t} class="${s}">${r[0]}${t}>`,n=Be.lastIndex;return n ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|\\n*|\\n*|?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|(?!script|pre|style)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:Se,table:Se,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};I._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/;I._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/;I.def=V(I.def).replace("label",I._label).replace("title",I._title).getRegex();I.bullet=/(?:[*+-]|\d{1,9}\.)/;I.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/;I.item=V(I.item,"gm").replace(/bull/g,I.bullet).getRegex();I.list=V(I.list).replace(/bull/g,I.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+I.def.source+")").getRegex();I._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul";I._comment=//;I.html=V(I.html,"i").replace("comment",I._comment).replace("tag",I._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();I.paragraph=V(I._paragraph).replace("hr",I.hr).replace("heading"," {0,3}#{1,6} +").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}|~{3,})[^`\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",I._tag).getRegex();I.blockquote=V(I.blockquote).replace("paragraph",I.paragraph).getRegex();I.normal=oe({},I);I.gfm=oe({},I.normal,{nptable:/^ *([^|\n ].*\|.*)\n *([-:]+ *\|[-| :]*)(?:\n((?:.*[^>\n ].*(?:\n|$))*)\n*|$)/,table:/^ *\|(.+)\n *\|?( *[-:]+[-| :]*)(?:\n((?: *[^>\n ].*(?:\n|$))*)\n*|$)/});I.pedantic=oe({},I.normal,{html:V(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?\\1> *(?:\\n{2,}|\\s*$)| \\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",I._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:Se,paragraph:V(I.normal._paragraph).replace("hr",I.hr).replace("heading",` *#{1,6} *[^
]`).replace("lheading",I.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});function _e(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||j.defaults,this.rules=I.normal,this.options.pedantic?this.rules=I.pedantic:this.options.gfm&&(this.rules=I.gfm)}_e.rules=I;_e.lex=function(e,s){var t=new _e(s);return t.lex(e)};_e.prototype.lex=function(e){return e=e.replace(/\r\n|\r/g,`
`).replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,`
`),this.token(e,!0)};_e.prototype.token=function(e,s){e=e.replace(/^ +$/gm,"");for(var t,i,n,r,o,a,l,c,d,h,u,p,g,_,v,y;e;){if((n=this.rules.newline.exec(e))&&(e=e.substring(n[0].length),n[0].length>1&&this.tokens.push({type:"space"})),n=this.rules.code.exec(e)){var w=this.tokens[this.tokens.length-1];e=e.substring(n[0].length),w&&w.type==="paragraph"?w.text+=`
@@ -561,7 +561,7 @@ ${dd}`},pd=e=>{if(typeof e!="string")return[];const s=e.trim();if(s.startsWith("
`)+e,u=g-1)),i=t||/\n\n(?!\s*$)/.test(a),u!==g-1&&(t=a.charAt(a.length-1)===`
`,i||(i=t)),i&&(l.loose=!0),v=/^\[[ xX]\] /.test(a),y=void 0,v&&(y=a[1]!==" ",a=a.replace(/^\[[ xX]\] +/,"")),d={type:"list_item_start",task:v,checked:y,loose:i},c.push(d),this.tokens.push(d),this.token(a,!1),this.tokens.push({type:"list_item_end"});if(l.loose)for(g=c.length,u=0;u?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Se,tag:"^comment|^[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,strong:/^__([^\s_])__(?!_)|^\*\*([^\s*])\*\*(?!\*)|^__([^\s][\s\S]*?[^\s])__(?!_)|^\*\*([^\s][\s\S]*?[^\s])\*\*(?!\*)/,em:/^_([^\s_])_(?!_)|^\*([^\s*<\[])\*(?!\*)|^_([^\s<][\s\S]*?[^\s_])_(?!_|[^\spunctuation])|^_([^\s_<][\s\S]*?[^\s])_(?!_|[^\spunctuation])|^\*([^\s<"][\s\S]*?[^\s\*])\*(?!\*|[^\spunctuation])|^\*([^\s*"<\[][\s\S]*?[^\s])\*(?!\*)/,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:Se,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\?@\\[^_{|}~`;T.em=V(T.em).replace(/punctuation/g,T._punctuation).getRegex();T._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g;T._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/;T._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/;T.autolink=V(T.autolink).replace("scheme",T._scheme).replace("email",T._email).getRegex();T._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/;T.tag=V(T.tag).replace("comment",I._comment).replace("attribute",T._attribute).getRegex();T._label=/(?:\[[^\[\]]*\]|\\.|`[^`]*`|[^\[\]\\`])*?/;T._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/;T._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/;T.link=V(T.link).replace("label",T._label).replace("href",T._href).replace("title",T._title).getRegex();T.reflink=V(T.reflink).replace("label",T._label).getRegex();T.normal=oe({},T);T.pedantic=oe({},T.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/,link:V(/^!?\[(label)\]\((.*?)\)/).replace("label",T._label).getRegex(),reflink:V(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",T._label).getRegex()});T.gfm=oe({},T.normal,{escape:V(T.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\/i.test(o[0])&&(this.inLink=!1),!this.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(o[0])?this.inRawBlock=!0:this.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(o[0])&&(this.inRawBlock=!1),e=e.substring(o[0].length),s+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(o[0]):P(o[0]):o[0];continue}if(o=this.rules.link.exec(e)){var l=ah(o[2],"()");if(l>-1){var c=4+o[1].length+l;o[2]=o[2].substring(0,l),o[0]=o[0].substring(0,c).trim(),o[3]=""}e=e.substring(o[0].length),this.inLink=!0,n=o[2],this.options.pedantic?(t=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(n),t?(n=t[1],r=t[3]):r=""):r=o[3]?o[3].slice(1,-1):"",n=n.trim().replace(/^<([\s\S]*)>$/,"$1"),s+=this.outputLink(o,{href:Q.escapes(n),title:Q.escapes(r)}),this.inLink=!1;continue}if((o=this.rules.reflink.exec(e))||(o=this.rules.nolink.exec(e))){if(e=e.substring(o[0].length),t=(o[2]||o[1]).replace(/\s+/g," "),t=this.links[t.toLowerCase()],!t||!t.href){s+=o[0].charAt(0),e=o[0].substring(1)+e;continue}this.inLink=!0,s+=this.outputLink(o,t),this.inLink=!1;continue}if(o=this.rules.strong.exec(e)){e=e.substring(o[0].length),s+=this.renderer.strong(this.output(o[4]||o[3]||o[2]||o[1]));continue}if(o=this.rules.em.exec(e)){e=e.substring(o[0].length),s+=this.renderer.em(this.output(o[6]||o[5]||o[4]||o[3]||o[2]||o[1]));continue}if(o=this.rules.code.exec(e)){e=e.substring(o[0].length),s+=this.renderer.codespan(P(o[2].trim(),!0));continue}if(o=this.rules.br.exec(e)){e=e.substring(o[0].length),s+=this.renderer.br();continue}if(o=this.rules.del.exec(e)){e=e.substring(o[0].length),s+=this.renderer.del(this.output(o[1]));continue}if(o=this.rules.autolink.exec(e)){e=e.substring(o[0].length),o[2]==="@"?(i=P(this.mangle(o[1])),n="mailto:"+i):(i=P(o[1]),n=i),s+=this.renderer.link(n,null,i);continue}if(!this.inLink&&(o=this.rules.url.exec(e))){if(o[2]==="@")i=P(o[0]),n="mailto:"+i;else{do a=o[0],o[0]=this.rules._backpedal.exec(o[0])[0];while(a!==o[0]);i=P(o[0]),o[1]==="www."?n="http://"+i:n=i}e=e.substring(o[0].length),s+=this.renderer.link(n,null,i);continue}if(o=this.rules.text.exec(e)){e=e.substring(o[0].length),this.inRawBlock?s+=this.renderer.text(this.options.sanitize?this.options.sanitizer?this.options.sanitizer(o[0]):P(o[0]):o[0]):s+=this.renderer.text(P(this.smartypants(o[0]))),s=s.replace(/\n+/g," ");continue}if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0))}return s};Q.escapes=function(e){return e&&e.replace(Q.rules._escapes,"$1")};Q.prototype.outputLink=function(e,s){var t=s.href,i=s.title?P(s.title):null;return e[0].charAt(0)!=="!"?this.renderer.link(t,i,this.output(e[1])):this.renderer.image(t,i,P(e[1]))};Q.prototype.smartypants=function(e){return this.options.smartypants?e.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201C").replace(/"/g,"\u201D").replace(/\.{3}/g,"\u2026"):e};Q.prototype.mangle=function(e){if(!this.options.mangle)return e;for(var s="",t=e.length,i=0,n;i.5&&(n="x"+n.toString(16)),s+=""+n+";";return s};function z(e){this.options=e||j.defaults}z.prototype.code=function(e,s,t){var i=(s||"").match(/\S*/)[0];if(this.options.highlight){var n=this.options.highlight(e,i);n!=null&&n!==e&&(t=!0,e=n)}return i?''+(t?e:P(e,!0))+`
+`?n[1].slice(0,-1):n[1]});continue}if(n=this.rules.text.exec(e)){e=e.substring(n[0].length),this.tokens.push({type:"text",text:n[0]});continue}if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0))}return this.tokens};var T={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Se,tag:"^comment|^[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,strong:/^__([^\s_])__(?!_)|^\*\*([^\s*])\*\*(?!\*)|^__([^\s][\s\S]*?[^\s])__(?!_)|^\*\*([^\s][\s\S]*?[^\s])\*\*(?!\*)/,em:/^_([^\s_])_(?!_)|^\*([^\s*<\[])\*(?!\*)|^_([^\s<][\s\S]*?[^\s_])_(?!_|[^\spunctuation])|^_([^\s_<][\s\S]*?[^\s])_(?!_|[^\spunctuation])|^\*([^\s<"][\s\S]*?[^\s\*])\*(?!\*|[^\spunctuation])|^\*([^\s*"<\[][\s\S]*?[^\s])\*(?!\*)/,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:Se,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\?@\\[^_{|}~`;T.em=V(T.em).replace(/punctuation/g,T._punctuation).getRegex();T._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g;T._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/;T._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/;T.autolink=V(T.autolink).replace("scheme",T._scheme).replace("email",T._email).getRegex();T._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/;T.tag=V(T.tag).replace("comment",I._comment).replace("attribute",T._attribute).getRegex();T._label=/(?:\[[^\[\]]*\]|\\.|`[^`]*`|[^\[\]\\`])*?/;T._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/;T._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/;T.link=V(T.link).replace("label",T._label).replace("href",T._href).replace("title",T._title).getRegex();T.reflink=V(T.reflink).replace("label",T._label).getRegex();T.normal=oe({},T);T.pedantic=oe({},T.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/,link:V(/^!?\[(label)\]\((.*?)\)/).replace("label",T._label).getRegex(),reflink:V(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",T._label).getRegex()});T.gfm=oe({},T.normal,{escape:V(T.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\/i.test(o[0])&&(this.inLink=!1),!this.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(o[0])?this.inRawBlock=!0:this.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(o[0])&&(this.inRawBlock=!1),e=e.substring(o[0].length),s+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(o[0]):P(o[0]):o[0];continue}if(o=this.rules.link.exec(e)){var l=oh(o[2],"()");if(l>-1){var c=4+o[1].length+l;o[2]=o[2].substring(0,l),o[0]=o[0].substring(0,c).trim(),o[3]=""}e=e.substring(o[0].length),this.inLink=!0,n=o[2],this.options.pedantic?(t=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(n),t?(n=t[1],r=t[3]):r=""):r=o[3]?o[3].slice(1,-1):"",n=n.trim().replace(/^<([\s\S]*)>$/,"$1"),s+=this.outputLink(o,{href:Q.escapes(n),title:Q.escapes(r)}),this.inLink=!1;continue}if((o=this.rules.reflink.exec(e))||(o=this.rules.nolink.exec(e))){if(e=e.substring(o[0].length),t=(o[2]||o[1]).replace(/\s+/g," "),t=this.links[t.toLowerCase()],!t||!t.href){s+=o[0].charAt(0),e=o[0].substring(1)+e;continue}this.inLink=!0,s+=this.outputLink(o,t),this.inLink=!1;continue}if(o=this.rules.strong.exec(e)){e=e.substring(o[0].length),s+=this.renderer.strong(this.output(o[4]||o[3]||o[2]||o[1]));continue}if(o=this.rules.em.exec(e)){e=e.substring(o[0].length),s+=this.renderer.em(this.output(o[6]||o[5]||o[4]||o[3]||o[2]||o[1]));continue}if(o=this.rules.code.exec(e)){e=e.substring(o[0].length),s+=this.renderer.codespan(P(o[2].trim(),!0));continue}if(o=this.rules.br.exec(e)){e=e.substring(o[0].length),s+=this.renderer.br();continue}if(o=this.rules.del.exec(e)){e=e.substring(o[0].length),s+=this.renderer.del(this.output(o[1]));continue}if(o=this.rules.autolink.exec(e)){e=e.substring(o[0].length),o[2]==="@"?(i=P(this.mangle(o[1])),n="mailto:"+i):(i=P(o[1]),n=i),s+=this.renderer.link(n,null,i);continue}if(!this.inLink&&(o=this.rules.url.exec(e))){if(o[2]==="@")i=P(o[0]),n="mailto:"+i;else{do a=o[0],o[0]=this.rules._backpedal.exec(o[0])[0];while(a!==o[0]);i=P(o[0]),o[1]==="www."?n="http://"+i:n=i}e=e.substring(o[0].length),s+=this.renderer.link(n,null,i);continue}if(o=this.rules.text.exec(e)){e=e.substring(o[0].length),this.inRawBlock?s+=this.renderer.text(this.options.sanitize?this.options.sanitizer?this.options.sanitizer(o[0]):P(o[0]):o[0]):s+=this.renderer.text(P(this.smartypants(o[0]))),s=s.replace(/\n+/g," ");continue}if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0))}return s};Q.escapes=function(e){return e&&e.replace(Q.rules._escapes,"$1")};Q.prototype.outputLink=function(e,s){var t=s.href,i=s.title?P(s.title):null;return e[0].charAt(0)!=="!"?this.renderer.link(t,i,this.output(e[1])):this.renderer.image(t,i,P(e[1]))};Q.prototype.smartypants=function(e){return this.options.smartypants?e.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201C").replace(/"/g,"\u201D").replace(/\.{3}/g,"\u2026"):e};Q.prototype.mangle=function(e){if(!this.options.mangle)return e;for(var s="",t=e.length,i=0,n;i.5&&(n="x"+n.toString(16)),s+=""+n+";";return s};function z(e){this.options=e||j.defaults}z.prototype.code=function(e,s,t){var i=(s||"").match(/\S*/)[0];if(this.options.highlight){var n=this.options.highlight(e,i);n!=null&&n!==e&&(t=!0,e=n)}return i?''+(t?e:P(e,!0))+`
`:""+(t?e:P(e,!0))+" "};z.prototype.blockquote=function(e){return`
`+e+`
`};z.prototype.html=function(e){return e};z.prototype.heading=function(e,s,t,i){return this.options.headerIds?"
@@ -580,17 +580,17 @@ ${dd}`},pd=e=>{if(typeof e!="string")return[];const s=e.trim();if(s.startsWith("
`+e+`
`};z.prototype.tablecell=function(e,s){var t=s.header?"th":"td",i=s.align?"<"+t+' align="'+s.align+'">':"<"+t+">";return i+e+""+t+`>
`};z.prototype.strong=function(e){return""+e+" "};z.prototype.em=function(e){return""+e+" "};z.prototype.codespan=function(e){return""+e+""};z.prototype.br=function(){return this.options.xhtml?" ":" "};z.prototype.del=function(e){return""+e+""};z.prototype.link=function(e,s,t){if(e=gn(this.options.sanitize,this.options.baseUrl,e),e===null)return t;var i='"+t+" ",i};z.prototype.image=function(e,s,t){if(e=gn(this.options.sanitize,this.options.baseUrl,e),e===null)return t;var i=' ":">",i};z.prototype.text=function(e){return e};function le(){}le.prototype.strong=le.prototype.em=le.prototype.codespan=le.prototype.del=le.prototype.text=function(e){return e};le.prototype.link=le.prototype.image=function(e,s,t){return""+t};le.prototype.br=function(){return""};function re(e){this.tokens=[],this.token=null,this.options=e||j.defaults,this.options.renderer=this.options.renderer||new z,this.renderer=this.options.renderer,this.renderer.options=this.options,this.slugger=new Ht}re.parse=function(e,s){var t=new re(s);return t.parse(e)};re.prototype.parse=function(e){this.inline=new Q(e.links,this.options),this.inlineText=new Q(e.links,oe({},this.options,{renderer:new le})),this.tokens=e.reverse();for(var s="";this.next();)s+=this.tok();return s};re.prototype.next=function(){return this.token=this.tokens.pop(),this.token};re.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0};re.prototype.parseText=function(){for(var e=this.token.text;this.peek().type==="text";)e+=`
-`+this.next().text;return this.inline.output(e)};re.prototype.tok=function(){switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,mn(this.inlineText.output(this.token.text)),this.slugger);case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":{var e="",s="",t,i,n,r;for(n="",t=0;t?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(s)){var t=s;do this.seen[t]++,s=t+"-"+this.seen[t];while(this.seen.hasOwnProperty(s))}return this.seen[s]=0,s};function P(e,s){if(s){if(P.escapeTest.test(e))return e.replace(P.escapeReplace,function(t){return P.replacements[t]})}else if(P.escapeTestNoEncode.test(e))return e.replace(P.escapeReplaceNoEncode,function(t){return P.replacements[t]});return e}P.escapeTest=/[&<>"']/;P.escapeReplace=/[&<>"']/g;P.replacements={"&":"&","<":"<",">":">",'"':""","'":"'"};P.escapeTestNoEncode=/[<>"']|&(?!#?\w+;)/;P.escapeReplaceNoEncode=/[<>"']|&(?!#?\w+;)/g;function mn(e){return e.replace(/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,function(s,t){return t=t.toLowerCase(),t==="colon"?":":t.charAt(0)==="#"?t.charAt(1)==="x"?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""})}function V(e,s){return e=e.source||e,s=s||"",{replace:function(t,i){return i=i.source||i,i=i.replace(/(^|[^\[])\^/g,"$1"),e=e.replace(t,i),this},getRegex:function(){return new RegExp(e,s)}}}function gn(e,s,t){if(e){try{var i=decodeURIComponent(mn(t)).replace(/[^\w:]/g,"").toLowerCase()}catch{return null}if(i.indexOf("javascript:")===0||i.indexOf("vbscript:")===0||i.indexOf("data:")===0)return null}s&&!oh.test(t)&&(t=rh(s,t));try{t=encodeURI(t).replace(/%25/g,"%")}catch{return null}return t}function rh(e,s){return et[" "+e]||(/^[^:]+:\/*[^/]*$/.test(e)?et[" "+e]=e+"/":et[" "+e]=_n(e,"/",!0)),e=et[" "+e],s.slice(0,2)==="//"?e.replace(/:[\s\S]*/,":")+s:s.charAt(0)==="/"?e.replace(/(:\/*[^/]*)[\s\S]*/,"$1")+s:e+s}var et={},oh=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function Se(){}Se.exec=Se;function oe(e){for(var s=1,t,i;s=0&&a[c]==="\\";)l=!l;return l?"|":" |"}),i=t.split(/ \|/),n=0;if(i.length>s)i.splice(s);else for(;i.lengthAn error occurred:
"+P(l.message+"",!0)+" ";throw l}}j.options=j.setOptions=function(e){return oe(j.defaults,e),j};j.getDefaults=function(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:new z,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,xhtml:!1}};j.defaults=j.getDefaults();j.Parser=re;j.parser=re.parse;j.Renderer=z;j.TextRenderer=le;j.Lexer=_e;j.lexer=_e.lex;j.InlineLexer=Q;j.inlineLexer=Q.output;j.Slugger=Ht;j.parse=j;const lh=new j.Renderer;var ch=j.setOptions({renderer:lh,gfm:!0,tables:!0,breaks:!1,pedantic:!1,sanitize:!1,smartLists:!0}),uh=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"vmpreview-nostyle",domProps:{innerHTML:e._s(e.html)}})},dh=[];const hh={name:"VMPreviewNostyle",props:{value:{default:""}},data(){return{html:""}},mounted(){this.translateMarkdown()},methods:{translateMarkdown(){this.html=ch(this.value,{sanitize:!1}).replace(/href="/gi,'target="_blank" href="')}},watch:{value(){this.translateMarkdown()}}},di={};var ph=A(hh,uh,dh,!1,fh,null,null,null);function fh(e){for(let s in di)this[s]=di[s]}var mh=function(){return ph.exports}(),gh=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"project-invite-warp"},[t("Modal",{attrs:{title:e.$L("\u52A0\u5165\u9879\u76EE"),"mask-closable":!1},model:{value:e.show,callback:function(i){e.show=i},expression:"show"}},[e.loadIng>0?t("div",{staticClass:"invite-load"},[t("Loading",{staticClass:"invite-load-icon"})],1):e.project.id>0?t("div",{staticClass:"invite-content"},[t("p",{staticClass:"invite-title",attrs:{slot:"title"},domProps:{innerHTML:e._s(e.transformEmojiToHtml(e.project.name))},slot:"title"}),e.project.desc?t("div",{staticClass:"invite-desc user-select-auto"},[t("VMPreviewNostyle",{attrs:{value:e.project.desc}})],1):t("div",[e._v(e._s(e.$L("\u6682\u65E0\u4ECB\u7ECD")))])]):t("div",[t("p",[e._v(e._s(e.$L("\u9080\u8BF7\u5730\u5740\u4E0D\u5B58\u5728\u6216\u5DF2\u88AB\u5220\u9664\uFF01")))])]),t("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e.already?[e.project.id>0?t("Button",{attrs:{type:"default"},on:{click:function(i){e.show=!1}}},[e._v(e._s(e.$L("\u5173\u95ED")))]):e._e(),e.already?t("Button",{attrs:{type:"success",icon:"md-checkmark-circle-outline"},on:{click:e.goProject}},[e._v(e._s(e.$L("\u5DF2\u52A0\u5165")))]):e._e()]:e.project.id>0?[e.project.id>0?t("Button",{attrs:{disabled:e.joinLoad>0,type:"default"},on:{click:function(i){e.show=!1}}},[e._v(e._s(e.$L("\u53D6\u6D88")))]):e._e(),t("Button",{attrs:{type:"primary",loading:e.joinLoad>0},on:{click:e.joinProject}},[e._v(e._s(e.$L("\u52A0\u5165\u9879\u76EE")))])]:[t("Button",{attrs:{type:"default"},on:{click:function(i){e.show=!1}}},[e._v(e._s(e.$L("\u5173\u95ED")))])]],2)])],1)},_h=[];const vh={name:"ProjectInvite",components:{VMPreviewNostyle:mh},data(){return{show:!1,code:"",loadIng:0,joinLoad:0,already:!1,project:{}}},mounted(){x.on("openProjectInvite",this.open)},beforeDestroy(){x.off("openProjectInvite",this.open)},methods:{transformEmojiToHtml:mt,open(e){this.code=e,this.show=!0,this.getData()},getData(){this.loadIng++,this.already=!1,this.project={},this.$store.dispatch("call",{url:"project/invite/info",data:{code:this.code}}).then(({data:e})=>{this.already=e.already,this.project=e.project}).catch(()=>{this.project={}}).finally(e=>{this.loadIng--})},joinProject(){this.joinLoad++,this.$store.dispatch("call",{url:"project/invite/join",data:{code:this.code}}).then(({data:e})=>{this.already=e.already,this.project=e.project,this.goProject()}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.joinLoad--})},goProject(){this.show=!1,this.$nextTick(()=>{$A.goForward({name:"manage-project",params:{projectId:this.project.id}})})}}},hi={};var yh=A(vh,gh,_h,!1,wh,"6b7b835e",null,null);function wh(e){for(let s in hi)this[s]=hi[s]}var $h=function(){return yh.exports}(),kh=function(){var e=this,s=e.$createElement,t=e._self._c||s;return e.show&&e.userid>0?t("transition",{attrs:{name:"mobile-notify"}},[t("div",{staticClass:"mobile-notification",class:{show:e.show},style:e.notifyStyle,on:{click:function(i){return i.stopPropagation(),e.onClick.apply(null,arguments)},touchstart:e.onTouchstart,touchmove:e.onTouchmove}},[t("UserAvatar",{attrs:{userid:e.userid,size:40,"show-name":"","name-text":e.title}}),t("div",{staticClass:"notification-desc no-dark-content"},[e._v(e._s(e.desc))])],1)]):e._e()},bh=[];const Ah={name:"MobileNotification",data(){return{userid:0,title:"",desc:"",duration:6e3,callback:null,show:!1,timer:null,startY:0}},mounted(){x.on("openMobileNotification",this.open)},beforeDestroy(){x.off("openMobileNotification",this.open),this.timer&&clearTimeout(this.timer),this.show=!1},computed:{...B(["safeAreaSize"]),notifyStyle({windowScrollY:e,safeAreaSize:s}){return{marginTop:e+s.top+"px"}}},methods:{open(e){!$A.isJson(e)||(this.userid=e.userid||0,this.title=e.title||"",this.desc=e.desc||"",this.duration=typeof e.duration=="number"?e.duration:6e3,this.callback=typeof e.callback=="function"?e.callback:null,this.show=!0,this.timer&&clearTimeout(this.timer),this.duration>0&&(this.timer=setTimeout(this.close,this.duration)),$A.eeuiAppSendMessage({action:"setVibrate"}))},close(){this.show=!1},onClick(){this.close(),typeof this.callback=="function"&&this.callback()},onTouchstart(e){this.startY=e.touches[0].clientY},onTouchmove(e){this.startY>0&&this.startY-e.touches[0].clientY>10&&(this.startY=0,this.close())}}},pi={};var Ch=A(Ah,kh,bh,!1,Sh,null,null,null);function Sh(e){for(let s in pi)this[s]=pi[s]}var xh=function(){return Ch.exports}(),Th=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"mobile-back"},[e.isVisible&&e.x>20?t("div",{staticClass:"back-semicircle",style:e.style}):e._e()])},Ih=[];const Dh={name:"MobileBack",data(){return{x:0,y:0,isVisible:!1,isTouched:!1,isScrolling:void 0,touchesStart:{}}},created(){this.appAndroidEvents()},mounted(){document.addEventListener("touchstart",this.touchstart),document.addEventListener("touchmove",this.touchmove,{passive:!1}),document.addEventListener("touchend",this.touchend)},beforeDestroy(){document.removeEventListener("touchstart",this.touchstart),document.removeEventListener("touchmove",this.touchmove),document.removeEventListener("touchend",this.touchend)},computed:{...B(["fileLists","messengerSearchKey","mobileTabbar"]),style(){const s=Math.max(135,this.y)+this.windowScrollY,t=this.windowHeight-135;return{top:Math.min(s,t)+"px"}},fileFolderId(){const{folderId:e}=this.$route.params;return parseInt(/^\d+$/.test(e)?e:0)}},watch:{isVisible(e){this.$store.state.touchBackInProgress=e}},methods:{getXY(e){const s=e.touches[0];this.x=s.clientX,this.y=s.clientY},touchstart(e){this.getXY(e),this.isTouched=this.canBack()&&this.x<20,this.isScrolling=void 0,this.touchesStart.x=e.type==="touchstart"?e.targetTouches[0].pageX:e.pageX,this.touchesStart.y=e.type==="touchstart"?e.targetTouches[0].pageY:e.pageY},touchmove(e){if(!this.isTouched)return;const s=e.type==="touchmove"?e.targetTouches[0].pageX:e.pageX,t=e.type==="touchmove"?e.targetTouches[0].pageY:e.pageY;if(typeof this.isScrolling=="undefined"){const i=Math.abs(t-this.touchesStart.y),n=Math.abs(s-this.touchesStart.x)*1.5;this.isScrolling=i>n}if(this.isScrolling){this.isTouched=!1;return}this.isVisible=!0,this.getXY(e),e.preventDefault()},touchend(){this.x>90&&this.isVisible&&this.onBack(),this.x=0,this.isVisible=!1},canBack(){if(!this.mobileTabbar||this.$Modal.visibleList().length>0||this.fileFolderId>0)return!0;if(this.routeName==="manage-messenger"){if(this.$route.params.dialogAction==="contacts"){if(this.messengerSearchKey.contacts)return!0}else if(this.messengerSearchKey.dialog)return!0}return!1},onBack(){if(this.$store.commit("menu/operation",{}),!this.$Modal.removeLast()){if(this.routeName==="manage-file"){if(this.fileFolderId>0){const e=this.fileLists.find(({id:s,permission:t})=>s==this.fileFolderId&&t>-1);if(e){const s=this.fileLists.find(({id:t,permission:i})=>t==e.pid&&i>-1);if(s){this.goForward({name:"manage-file",params:{folderId:s.id,fileId:null}});return}}this.goForward({name:"manage-file"});return}this.goForward({name:"manage-application"},!0);return}if(this.routeName==="manage-messenger"){if(this.$route.params.dialogAction==="contacts"){if(this.messengerSearchKey.contacts){this.$store.state.messengerSearchKey.contacts="";return}}else if(this.messengerSearchKey.dialog){this.$store.state.messengerSearchKey.dialog="";return}}this.goBack()}},appAndroidEvents(){this.$isEEUIApp&&$A.isAndroid()&&$A.eeuiAppSetPageBackPressed({pageName:"firstPage"},e=>{this.canBack()?this.onBack():$A.eeuiAppGoDesktop()})}}},fi={};var Eh=A(Dh,Th,Ih,!1,Lh,null,null,null);function Lh(e){for(let s in fi)this[s]=fi[s]}var Mh=function(){return Eh.exports}(),Ph=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("EDropdown",{ref:"dropdown",staticClass:"general-operation-dropdown",style:e.styles,attrs:{trigger:"click",placement:"bottom",size:e.size},on:{command:e.onCommand,"visible-change":e.visibleChange}},[t("div",{ref:"icon",staticClass:"general-operation-icon"}),t("EDropdownMenu",{ref:"dropdownMenu",staticClass:"general-operation-more-dropdown menu-dropdown",attrs:{slot:"dropdown"},slot:"dropdown"},[t("li",{staticClass:"general-operation-more-warp",class:e.size},[t("ul",{style:e.ulStyle},e._l(e.list,function(i,n){return t("EDropdownItem",{key:n,attrs:{command:i.value,divided:!!i.divided,disabled:e.active===i.value&&!e.activeClick||!!i.disabled}},[t("div",{staticClass:"item-box",class:i.className,style:i.style},[t("div",{staticClass:"item"},[i.prefix?t("div",{staticClass:"item-prefix",domProps:{innerHTML:e._s(i.prefix)}}):e._e(),t("div",{staticClass:"item-label"},[e._v(e._s(e.language?e.$L(i.label):i.label))])]),e.tickShow?t("div",{staticClass:"tick"},[e.active===i.value&&!i.disabled?t("i",{staticClass:"taskfont"},[e._v("\uE684")]):e._e()]):e._e()])])}),1)])])],1)},jh=[];const Rh={data(){return{visible:!1,list:[],size:"small",active:"",activeClick:!1,onVisibleChange:null,onUpdate:null,scrollHide:!0,tickShow:!0,maxHeight:0,language:!0,scrollTarget:null,menuTarget:null,styles:{}}},beforeDestroy(){this.removeEventListeners()},computed:{...B(["menuOperation"]),ulStyle({maxHeight:e}){return e>0?{maxHeight:`${e}px`}:{}}},watch:{menuOperation(e){if(e.event&&e.list){if(this.$refs.dropdown.visible&&this.menuTarget===e.event.target){this.hide();return}const s=e.event.target.getBoundingClientRect();this.styles={left:`${s.left}px`,top:`${s.top+this.windowScrollY}px`,width:`${s.width}px`,height:`${s.height}px`},this.list=e.list,this.size=["small","medium","large"].includes(e.size)?e.size:"small",this.active=e.active&&this.list.find(t=>t.value===e.active)?e.active:"",this.activeClick=typeof e.activeClick=="boolean"?e.activeClick:!1,this.onVisibleChange=typeof e.onVisibleChange=="function"?e.onVisibleChange:null,this.onUpdate=typeof e.onUpdate=="function"?e.onUpdate:null,this.scrollHide=typeof e.scrollHide=="boolean"?e.scrollHide:!0,this.tickShow=typeof e.tickShow=="boolean"?e.tickShow:typeof e.active!="undefined",this.maxHeight=typeof e.maxHeight=="number"?e.maxHeight:0,this.language=typeof e.language=="boolean"?e.language:!0,this.$refs.icon.focus(),this.show(),this.updatePopper(),this.setupEventListeners(e.event)}else this.hide()},windowScrollY(){if(!this.visible||!this.menuTarget)return;const e=this.menuTarget.getBoundingClientRect();this.styles={left:`${e.left}px`,top:`${e.top+this.windowScrollY}px`,width:`${e.width}px`,height:`${e.height}px`},this.updatePopper()},visible(e){e||this.removeEventListeners(),typeof this.onVisibleChange=="function"&&this.onVisibleChange(e)}},methods:{show(){this.$refs.dropdown.show()},hide(){this.$refs.dropdown.hide()},onCommand(e){this.hide(),typeof this.onUpdate=="function"&&this.onUpdate(e)},visibleChange(e){this.visible=e},updatePopper(){setTimeout(()=>{this.$refs.dropdownMenu.updatePopper()},0)},setupEventListeners(e){this.menuTarget=e.target;let s=this.getScrollParent(this.menuTarget);if((s===window.document.body||s===window.document.documentElement)&&(s=window),this.scrollTarget){if(this.scrollTarget===s)return;this.scrollTarget.removeEventListener("scroll",this.handlerEventListeners)}this.scrollTarget=s,this.scrollTarget.addEventListener("scroll",this.handlerEventListeners)},removeEventListeners(){this.scrollTarget&&(this.scrollTarget.removeEventListener("scroll",this.handlerEventListeners),this.scrollTarget=null)},handlerEventListeners(e){if(!this.visible||!this.menuTarget)return;if(this.scrollHide){this.hide();return}const s=e.target.getBoundingClientRect(),t=this.menuTarget.getBoundingClientRect();if(t.tops.top+s.height){this.hide();return}this.styles={left:`${t.left}px`,top:`${t.top+this.windowScrollY}px`,width:`${t.width}px`,height:`${t.height}px`},this.updatePopper()},getScrollParent(e){const s=e.parentNode;return s?s===window.document?window.document.body.scrollTop||window.document.body.scrollLeft?window.document.body:window.document.documentElement:["scroll","auto"].indexOf(this.getStyleComputedProperty(s,"overflow"))!==-1||["scroll","auto"].indexOf(this.getStyleComputedProperty(s,"overflow-x"))!==-1||["scroll","auto"].indexOf(this.getStyleComputedProperty(s,"overflow-y"))!==-1?s:this.getScrollParent(e.parentNode):e},getStyleComputedProperty(e,s){return!e||!(e instanceof HTMLElement)?null:window.getComputedStyle(e,null)[s]}}},mi={};var Oh=A(Rh,Ph,jh,!1,zh,null,null,null);function zh(e){for(let s in mi)this[s]=mi[s]}var Uh=function(){return Oh.exports}();const Bh={data(){return{isCtrlCommandPressed:!1}},created(){this.handlePointerdown=this.handlePointerdown.bind(this),this.handlePointerup=this.handlePointerup.bind(this)},mounted(){document.addEventListener("pointerdown",this.handlePointerdown),document.addEventListener("pointerup",this.handlePointerup)},beforeDestroy(){document.removeEventListener("pointerdown",this.handlePointerdown),document.removeEventListener("pointerup",this.handlePointerup)},methods:{handlePointerdown(e){(e.ctrlKey||e.metaKey)&&(this.isCtrlCommandPressed=!0)},handlePointerup(e){!e.ctrlKey&&!e.metaKey&&(this.isCtrlCommandPressed=!1)}}};function Nh(e,s,t){$A.isJson(s)||(s={});const i=e+"::"+encodeURIComponent(new URLSearchParams($A.sortObject(s,["page","pagesize","timerange"])).toString()),n=t.callAt.find(r=>r.key===i)||{};return n.__last=$A.dayjs().unix(),typeof n.key=="undefined"&&(n.key=i,n.updated=0,n.deleted=0,t.callAt.push(n),$A.IDBSet("callAt",t.callAt).catch(r=>{})),this.get=()=>(s.timerange=s.timerange||`${n.updated||0},${n.deleted||0}`,s),this.save=({total:r,current_page:o,deleted_id:a})=>new Promise(async l=>{if(o!==1)return;let c=!1;const d=n.__last||$A.dayjs().unix();r>0&&(n.updated=d,c=!0),$A.isArray(a)&&a.length>0?(n.deleted=d,c=!0):a=[],$A.isEEUIApp&&(c=t.isFirstPage),c&&($A.isSubElectron||$A.isEEUIApp&&!t.isFirstPage||await $A.IDBSet("callAt",t.callAt)),l(a)}),this}function kt(e,s,t){return new Nh(e,s,t)}function Fh(e,s=!0){return e&&(s?e=String(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/\n/g,"$"):e=String(e).replace(/\-/g,"+").replace(/\_/g,"/").replace(/\$/g,`
-`)),e}const Hh={retry:5,interval:3*1e3};class vn{constructor(s,t=Hh){this.url=s,this.es=null,this.options=t,this.retry=t.retry,this.timer=null}_onOpen(){window.systemInfo.debug==="yes"&&console.log("SSE open: "+this.url)}_onMessage(s,t){return i=>{this.retry=this.options.retry,typeof t=="function"&&t(s,i)}}_onError(s,t,i){return()=>{window.systemInfo.debug==="yes"&&console.log("SSE retry: "+this.url),this.es&&(this._removeAllEvent(s,t,i),this.unsunscribe()),this.retry>0?(this.retry--,this.timer=setTimeout(()=>{this.subscribe(s,t,i)},this.options.interval)):typeof i=="function"&&i()}}_removeAllEvent(s,t,i){s=$A.isArray(s)?s:[s],this.es.removeEventListener("open",this._onOpen),s.some(n=>{this.es.removeEventListener(n,this._onMessage(n,t))}),this.es.removeEventListener("error",this._onError(s,t,i))}subscribe(s,t,i){s=$A.isArray(s)?s:[s],this.es=new EventSource(this.url),this.es.addEventListener("open",this._onOpen),s.some(n=>{this.es.addEventListener(n,this._onMessage(n,t))}),this.es.addEventListener("error",this._onError(s,t,i))}unsunscribe(){this.es&&(this.es.close(),this.es=null),this.timer&&clearTimeout(this.timer),window.systemInfo.debug==="yes"&&console.log("SSE cancel: "+this.url)}}function Wh(e,s){if(e.role!==s.role||e.name!==s.name||!Vh(e,s)||ht(e)!==ht(s))return!1;const t=Object.keys(e.props),i=Object.keys(s.props);return t.length===i.length&&t.every(n=>e.props[n]===s.props[n])}function ht(e){return e.box.cursor==="pointer"}function Vh(e,s){return e.active===s.active&&e.checked===s.checked&&e.disabled===s.disabled&&e.expanded===s.expanded&&e.invalid===s.invalid&&e.selected===s.selected&&e.level===s.level&&e.pressed===s.pressed}var Ie;function yn(e){let s=Ie==null?void 0:Ie.get(e);return s===void 0&&(s=e.replace(/[\u200b\u00ad]/g,"").trim().replace(/\s+/g," "),Ie==null||Ie.set(e,s)),s}function gi(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Yh(e,s){const t=e.length,i=s.length;let n=0,r=0;const o=Array(t+1).fill(null).map(()=>Array(i+1).fill(0));for(let a=1;a<=t;a++)for(let l=1;l<=i;l++)e[a-1]===s[l-1]&&(o[a][l]=o[a-1][l-1]+1,o[a][l]>n&&(n=o[a][l],r=a));return e.slice(r-n,r)}function qh(e){return wn(e)?"'"+e.replace(/'/g,"''")+"'":e}function bt(e){return wn(e)?'"'+e.replace(/[\\"\x00-\x1f\x7f-\x9f]/g,s=>{switch(s){case"\\":return"\\\\";case'"':return'\\"';case"\b":return"\\b";case"\f":return"\\f";case`
-`:return"\\n";case"\r":return"\\r";case" ":return"\\t";default:const t=s.charCodeAt(0);return"\\x"+t.toString(16).padStart(2,"0")}})+'"':e}function wn(e){return!!(e.length===0||/^\s|\s$/.test(e)||/[\x00-\x08\x0b\x0c\x0e-\x1f\x7f-\x9f]/.test(e)||/^-/.test(e)||/[\n:](\s|$)/.test(e)||/\s#/.test(e)||/[\n\r]/.test(e)||/^[&*\],?!>|@"'#%]/.test(e)||/[{}`]/.test(e)||/^\[/.test(e)||!isNaN(Number(e))||["y","n","yes","no","true","false","on","off","null"].includes(e.toLowerCase()))}var Kh={};function Qe(e){if(e.parentElement)return e.parentElement;if(!!e.parentNode&&e.parentNode.nodeType===11&&e.parentNode.host)return e.parentNode.host}function Gh(e){let s=e;for(;s.parentNode;)s=s.parentNode;if(s.nodeType===11||s.nodeType===9)return s}function Jh(e){for(;e.parentElement;)e=e.parentElement;return Qe(e)}function st(e,s,t){for(;e;){const i=e.closest(s);if(t&&i!==t&&(i==null?void 0:i.contains(t)))return;if(i)return i;e=Jh(e)}}function we(e,s){const t=s==="::before"?Fe:s==="::after"?He:Ne;if(t&&t.has(e))return t.get(e);const i=e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView.getComputedStyle(e,s):void 0;return t==null||t.set(e,i),i}function $n(e,s){if(s=s!=null?s:we(e),!s)return!0;if(Element.prototype.checkVisibility&&Kh.browserNameForWorkarounds!=="webkit"){if(!e.checkVisibility())return!1}else{const t=e.closest("details,summary");if(t!==e&&(t==null?void 0:t.nodeName)==="DETAILS"&&!t.open)return!1}return s.visibility==="visible"}function pt(e){const s=we(e);if(!s)return{visible:!0,inline:!1};const t=s.cursor;if(s.display==="contents"){for(let n=e.firstChild;n;n=n.nextSibling){if(n.nodeType===1&&jt(n))return{visible:!0,inline:!1,cursor:t};if(n.nodeType===3&&kn(n))return{visible:!0,inline:!0,cursor:t}}return{visible:!1,inline:!1,cursor:t}}if(!$n(e,s))return{cursor:t,visible:!1,inline:!1};const i=e.getBoundingClientRect();return{cursor:t,visible:i.width>0&&i.height>0,inline:s.display==="inline"}}function jt(e){return pt(e).visible}function kn(e){const s=e.ownerDocument.createRange();s.selectNode(e);const t=s.getBoundingClientRect();return t.width>0&&t.height>0}function H(e){const s=e.tagName;return typeof s=="string"?s.toUpperCase():e instanceof HTMLFormElement?"FORM":e.tagName.toUpperCase()}var Ne,Fe,He,bn=0;function Qh(){++bn,Ne!=null||(Ne=new Map),Fe!=null||(Fe=new Map),He!=null||(He=new Map)}function Xh(){--bn||(Ne=void 0,Fe=void 0,He=void 0)}var F=function(e,s,t){return e>=s&&e<=t};function Z(e){return F(e,48,57)}function _i(e){return Z(e)||F(e,65,70)||F(e,97,102)}function Zh(e){return F(e,65,90)}function ep(e){return F(e,97,122)}function tp(e){return Zh(e)||ep(e)}function sp(e){return e>=128}function lt(e){return tp(e)||sp(e)||e===95}function vi(e){return lt(e)||Z(e)||e===45}function ip(e){return F(e,0,8)||e===11||F(e,14,31)||e===127}function ct(e){return e===10}function ue(e){return ct(e)||e===9||e===32}var np=1114111,Wt=class extends Error{constructor(e){super(e),this.name="InvalidCharacterError"}};function rp(e){const s=[];for(let t=0;t=s.length?-1:s[k]},o=function(k){if(k===void 0&&(k=1),k>3)throw"Spec Error: no more than three codepoints of lookahead.";return r(t+k)},a=function(k){return k===void 0&&(k=1),t+=k,n=r(t),!0},l=function(){return t-=1,!0},c=function(k){return k===void 0&&(k=n),k===-1},d=function(){if(h(),a(),ue(n)){for(;ue(o());)a();return new An}else{if(n===34)return g();if(n===35)if(vi(o())||y(o(1),o(2))){const k=new Sp("");return b(o(1),o(2),o(3))&&(k.type="id"),k.value=K(),k}else return new X(n);else return n===36?o()===61?(a(),new $p):new X(n):n===39?g():n===40?new _p:n===41?new Cn:n===42?o()===61?(a(),new kp):new X(n):n===43?O()?(l(),u()):new X(n):n===44?new hp:n===45?O()?(l(),u()):o(1)===45&&o(2)===62?(a(2),new cp):C()?(l(),p()):new X(n):n===46?O()?(l(),u()):new X(n):n===58?new up:n===59?new dp:n===60?o(1)===33&&o(2)===45&&o(3)===45?(a(3),new lp):new X(n):n===64?b(o(1),o(2),o(3))?new Cp(K()):new X(n):n===91?new mp:n===92?w()?(l(),p()):new X(n):n===93?new gp:n===94?o()===61?(a(),new wp):new X(n):n===123?new pp:n===124?o()===61?(a(),new yp):o()===124?(a(),new bp):new X(n):n===125?new fp:n===126?o()===61?(a(),new vp):new X(n):Z(n)?(l(),u()):lt(n)?(l(),p()):c()?new Ap:new X(n)}},h=function(){for(;o(1)===47&&o(2)===42;)for(a(2);;)if(a(),n===42&&o()===47){a();break}else if(c())return},u=function(){const k=Y();if(b(o(1),o(2),o(3))){const L=new Dp;return L.value=k.value,L.repr=k.repr,L.type=k.type,L.unit=K(),L}else if(o()===37){a();const L=new Ip;return L.value=k.value,L.repr=k.repr,L}else{const L=new Tp;return L.value=k.value,L.repr=k.repr,L.type=k.type,L}},p=function(){const k=K();if(k.toLowerCase()==="url"&&o()===40){for(a();ue(o(1))&&ue(o(2));)a();return o()===34||o()===39?new ut(k):ue(o())&&(o(2)===34||o(2)===39)?new ut(k):_()}else return o()===40?(a(),new ut(k)):new Sn(k)},g=function(k){k===void 0&&(k=n);let L="";for(;a();){if(n===k||c())return new xn(L);if(ct(n))return l(),new ap;n===92?c(o())||(ct(o())?a():L+=W(v())):L+=W(n)}throw new Error("Internal error")},_=function(){const k=new xp("");for(;ue(o());)a();if(c(o()))return k;for(;a();){if(n===41||c())return k;if(ue(n)){for(;ue(o());)a();return o()===41||c(o())?(a(),k):(vt(),new At)}else{if(n===34||n===39||n===40||ip(n))return vt(),new At;if(n===92)if(w())k.value+=W(v());else return vt(),new At;else k.value+=W(n)}}throw new Error("Internal error")},v=function(){if(a(),_i(n)){const k=[n];for(let se=0;se<5&&_i(o());se++)a(),k.push(n);ue(o())&&a();let L=parseInt(k.map(function(se){return String.fromCharCode(se)}).join(""),16);return L>np&&(L=65533),L}else return c()?65533:n},y=function(k,L){return!(k!==92||ct(L))},w=function(){return y(n,o())},b=function(k,L,se){return k===45?lt(L)||L===45||y(L,se):lt(k)?!0:k===92?y(k,L):!1},C=function(){return b(n,o(1),o(2))},U=function(k,L,se){return k===43||k===45?!!(Z(L)||L===46&&Z(se)):k===46?!!Z(L):!!Z(k)},O=function(){return U(n,o(1),o(2))},K=function(){let k="";for(;a();)if(vi(n))k+=W(n);else if(w())k+=W(v());else return l(),k;throw new Error("Internal parse error")},Y=function(){let k="",L="integer";for((o()===43||o()===45)&&(a(),k+=W(n));Z(o());)a(),k+=W(n);if(o(1)===46&&Z(o(2)))for(a(),k+=W(n),a(),k+=W(n),L="number";Z(o());)a(),k+=W(n);const se=o(1),yt=o(2),Xn=o(3);if((se===69||se===101)&&Z(yt))for(a(),k+=W(n),a(),k+=W(n),L="number";Z(o());)a(),k+=W(n);else if((se===69||se===101)&&(yt===43||yt===45)&&Z(Xn))for(a(),k+=W(n),a(),k+=W(n),a(),k+=W(n),L="number";Z(o());)a(),k+=W(n);const Zn=Re(k);return{type:L,value:Zn,repr:k}},Re=function(k){return+k},vt=function(){for(;a();){if(n===41||c())return;w()&&v()}};let Jt=0;for(;!c(o());)if(i.push(d()),Jt++,Jt>s.length*2)throw new Error("I'm infinite-looping!");return i}var N=class{constructor(){S(this,"tokenType","");S(this,"value")}toJSON(){return{token:this.tokenType}}toString(){return this.tokenType}toSource(){return""+this}},ap=class extends N{constructor(){super(...arguments);S(this,"tokenType","BADSTRING")}},At=class extends N{constructor(){super(...arguments);S(this,"tokenType","BADURL")}},An=class extends N{constructor(){super(...arguments);S(this,"tokenType","WHITESPACE")}toString(){return"WS"}toSource(){return" "}},lp=class extends N{constructor(){super(...arguments);S(this,"tokenType","CDO")}toSource(){return""}},up=class extends N{constructor(){super(...arguments);S(this,"tokenType",":")}},dp=class extends N{constructor(){super(...arguments);S(this,"tokenType",";")}},hp=class extends N{constructor(){super(...arguments);S(this,"tokenType",",")}},Pe=class extends N{constructor(){super(...arguments);S(this,"value","");S(this,"mirror","")}},pp=class extends Pe{constructor(){super();S(this,"tokenType","{");this.value="{",this.mirror="}"}},fp=class extends Pe{constructor(){super();S(this,"tokenType","}");this.value="}",this.mirror="{"}},mp=class extends Pe{constructor(){super();S(this,"tokenType","[");this.value="[",this.mirror="]"}},gp=class extends Pe{constructor(){super();S(this,"tokenType","]");this.value="]",this.mirror="["}},_p=class extends Pe{constructor(){super();S(this,"tokenType","(");this.value="(",this.mirror=")"}},Cn=class extends Pe{constructor(){super();S(this,"tokenType",")");this.value=")",this.mirror="("}},vp=class extends N{constructor(){super(...arguments);S(this,"tokenType","~=")}},yp=class extends N{constructor(){super(...arguments);S(this,"tokenType","|=")}},wp=class extends N{constructor(){super(...arguments);S(this,"tokenType","^=")}},$p=class extends N{constructor(){super(...arguments);S(this,"tokenType","$=")}},kp=class extends N{constructor(){super(...arguments);S(this,"tokenType","*=")}},bp=class extends N{constructor(){super(...arguments);S(this,"tokenType","||")}},Ap=class extends N{constructor(){super(...arguments);S(this,"tokenType","EOF")}toSource(){return""}},X=class extends N{constructor(s){super();S(this,"tokenType","DELIM");S(this,"value","");this.value=W(s)}toString(){return"DELIM("+this.value+")"}toJSON(){const s=this.constructor.prototype.constructor.prototype.toJSON.call(this);return s.value=this.value,s}toSource(){return this.value==="\\"?`\\
-`:this.value}},je=class extends N{constructor(){super(...arguments);S(this,"value","")}ASCIIMatch(s){return this.value.toLowerCase()===s.toLowerCase()}toJSON(){const s=this.constructor.prototype.constructor.prototype.toJSON.call(this);return s.value=this.value,s}},Sn=class extends je{constructor(s){super();S(this,"tokenType","IDENT");this.value=s}toString(){return"IDENT("+this.value+")"}toSource(){return Xe(this.value)}},ut=class extends je{constructor(s){super();S(this,"tokenType","FUNCTION");S(this,"mirror");this.value=s,this.mirror=")"}toString(){return"FUNCTION("+this.value+")"}toSource(){return Xe(this.value)+"("}},Cp=class extends je{constructor(s){super();S(this,"tokenType","AT-KEYWORD");this.value=s}toString(){return"AT("+this.value+")"}toSource(){return"@"+Xe(this.value)}},Sp=class extends je{constructor(s){super();S(this,"tokenType","HASH");S(this,"type");this.value=s,this.type="unrestricted"}toString(){return"HASH("+this.value+")"}toJSON(){const s=this.constructor.prototype.constructor.prototype.toJSON.call(this);return s.value=this.value,s.type=this.type,s}toSource(){return this.type==="id"?"#"+Xe(this.value):"#"+Ep(this.value)}},xn=class extends je{constructor(s){super();S(this,"tokenType","STRING");this.value=s}toString(){return'"'+Tn(this.value)+'"'}},xp=class extends je{constructor(s){super();S(this,"tokenType","URL");this.value=s}toString(){return"URL("+this.value+")"}toSource(){return'url("'+Tn(this.value)+'")'}},Tp=class extends N{constructor(){super();S(this,"tokenType","NUMBER");S(this,"type");S(this,"repr");this.type="integer",this.repr=""}toString(){return this.type==="integer"?"INT("+this.value+")":"NUMBER("+this.value+")"}toJSON(){const s=super.toJSON();return s.value=this.value,s.type=this.type,s.repr=this.repr,s}toSource(){return this.repr}},Ip=class extends N{constructor(){super();S(this,"tokenType","PERCENTAGE");S(this,"repr");this.repr=""}toString(){return"PERCENTAGE("+this.value+")"}toJSON(){const s=this.constructor.prototype.constructor.prototype.toJSON.call(this);return s.value=this.value,s.repr=this.repr,s}toSource(){return this.repr+"%"}},Dp=class extends N{constructor(){super();S(this,"tokenType","DIMENSION");S(this,"type");S(this,"repr");S(this,"unit");this.type="integer",this.repr="",this.unit=""}toString(){return"DIM("+this.value+","+this.unit+")"}toJSON(){const s=this.constructor.prototype.constructor.prototype.toJSON.call(this);return s.value=this.value,s.type=this.type,s.repr=this.repr,s.unit=this.unit,s}toSource(){const s=this.repr;let t=Xe(this.unit);return t[0].toLowerCase()==="e"&&(t[1]==="-"||F(t.charCodeAt(1),48,57))&&(t="\\65 "+t.slice(1,t.length)),s+t}};function Xe(e){e=""+e;let s="";const t=e.charCodeAt(0);for(let i=0;i=128||n===45||n===95||F(n,48,57)||F(n,65,90)||F(n,97,122)?s+=e[i]:s+="\\"+e[i]}return s}function Ep(e){e=""+e;let s="";for(let t=0;t=128||i===45||i===95||F(i,48,57)||F(i,65,90)||F(i,97,122)?s+=e[t]:s+="\\"+i.toString(16)+" "}return s}function Tn(e){e=""+e;let s="";for(let t=0;t!(i!=null&&i.includes(s||""))&&e.hasAttribute(t))}function Dn(e){return!Number.isNaN(Number(String(e.getAttribute("tabindex"))))}function Mp(e){return!Nn(e)&&(Pp(e)||Dn(e))}function Pp(e){const s=H(e);return["BUTTON","DETAILS","SELECT","TEXTAREA"].includes(s)?!0:s==="A"||s==="AREA"?e.hasAttribute("href"):s==="INPUT"?!e.hidden:!1}var Ct={A:e=>e.hasAttribute("href")?"link":null,AREA:e=>e.hasAttribute("href")?"link":null,ARTICLE:()=>"article",ASIDE:()=>"complementary",BLOCKQUOTE:()=>"blockquote",BUTTON:()=>"button",CAPTION:()=>"caption",CODE:()=>"code",DATALIST:()=>"listbox",DD:()=>"definition",DEL:()=>"deletion",DETAILS:()=>"group",DFN:()=>"term",DIALOG:()=>"dialog",DT:()=>"term",EM:()=>"emphasis",FIELDSET:()=>"group",FIGURE:()=>"figure",FOOTER:e=>st(e,wi)?null:"contentinfo",FORM:e=>yi(e)?"form":null,H1:()=>"heading",H2:()=>"heading",H3:()=>"heading",H4:()=>"heading",H5:()=>"heading",H6:()=>"heading",HEADER:e=>st(e,wi)?null:"banner",HR:()=>"separator",HTML:()=>"document",IMG:e=>e.getAttribute("alt")===""&&!e.getAttribute("title")&&!In(e)&&!Dn(e)?"presentation":"img",INPUT:e=>{const s=e.type.toLowerCase();if(s==="search")return e.hasAttribute("list")?"combobox":"searchbox";if(["email","tel","text","url",""].includes(s)){const t=gt(e,e.getAttribute("list"))[0];return t&&H(t)==="DATALIST"?"combobox":"textbox"}return s==="hidden"?null:s==="file"?"button":nf[s]||"textbox"},INS:()=>"insertion",LI:()=>"listitem",MAIN:()=>"main",MARK:()=>"mark",MATH:()=>"math",MENU:()=>"list",METER:()=>"meter",NAV:()=>"navigation",OL:()=>"list",OPTGROUP:()=>"group",OPTION:()=>"option",OUTPUT:()=>"status",P:()=>"paragraph",PROGRESS:()=>"progressbar",SEARCH:()=>"search",SECTION:e=>yi(e)?"region":null,SELECT:e=>e.hasAttribute("multiple")||e.size>1?"listbox":"combobox",STRONG:()=>"strong",SUB:()=>"subscript",SUP:()=>"superscript",SVG:()=>"img",TABLE:()=>"table",TBODY:()=>"rowgroup",TD:e=>{const s=st(e,"table"),t=s?Vt(s):"";return t==="grid"||t==="treegrid"?"gridcell":"cell"},TEXTAREA:()=>"textbox",TFOOT:()=>"rowgroup",TH:e=>{const s=e.getAttribute("scope");if(s==="col"||s==="colgroup")return"columnheader";if(s==="row"||s==="rowgroup")return"rowheader";const t=e.nextElementSibling,i=e.previousElementSibling,n=!!e.parentElement&&H(e.parentElement)==="TR"?e.parentElement:void 0;if(!t&&!i){if(n){const r=st(n,"table");if(r&&r.rows.length<=1)return null}return"columnheader"}return $i(t)&&$i(i)?"columnheader":ki(t)||ki(i)?"rowheader":"columnheader"},THEAD:()=>"rowgroup",TIME:()=>"time",TR:()=>"row",UL:()=>"list"};function $i(e){return!!e&&H(e)==="TH"}function ki(e){var s;return!e||H(e)!=="TD"?!1:!!(((s=e.textContent)==null?void 0:s.trim())||e.children.length>0)}var jp={DD:["DL","DIV"],DIV:["DL"],DT:["DL","DIV"],LI:["OL","UL"],TBODY:["TABLE"],TD:["TR"],TFOOT:["TABLE"],TH:["TR"],THEAD:["TABLE"],TR:["THEAD","TBODY","TFOOT","TABLE"]};function bi(e){var i;const s=((i=Ct[H(e)])==null?void 0:i.call(Ct,e))||"";if(!s)return null;let t=e;for(;t;){const n=Qe(t),r=jp[H(t)];if(!r||!n||!r.includes(H(n)))break;const o=Vt(n);if((o==="none"||o==="presentation")&&!En(n,o))return o;t=n}return s}var Rp=["alert","alertdialog","application","article","banner","blockquote","button","caption","cell","checkbox","code","columnheader","combobox","complementary","contentinfo","definition","deletion","dialog","directory","document","emphasis","feed","figure","form","generic","grid","gridcell","group","heading","img","insertion","link","list","listbox","listitem","log","main","mark","marquee","math","meter","menu","menubar","menuitem","menuitemcheckbox","menuitemradio","navigation","none","note","option","paragraph","presentation","progressbar","radio","radiogroup","region","row","rowgroup","rowheader","scrollbar","search","searchbox","separator","slider","spinbutton","status","strong","subscript","superscript","switch","tab","table","tablist","tabpanel","term","textbox","time","timer","toolbar","tooltip","tree","treegrid","treeitem"];function Vt(e){return(e.getAttribute("role")||"").split(" ").map(t=>t.trim()).find(t=>Rp.includes(t))||null}function En(e,s){return In(e,s)||Mp(e)}function ne(e){const s=Vt(e);if(!s)return bi(e);if(s==="none"||s==="presentation"){const t=bi(e);if(En(e,t))return t}return s}function Ln(e){return e===null?void 0:e.toLowerCase()==="true"}function Mn(e){return["STYLE","SCRIPT","NOSCRIPT","TEMPLATE"].includes(H(e))}function pe(e){if(Mn(e))return!0;const s=we(e),t=e.nodeName==="SLOT";if((s==null?void 0:s.display)==="contents"&&!t){for(let n=e.firstChild;n;n=n.nextSibling)if(n.nodeType===1&&!pe(n)||n.nodeType===3&&kn(n))return!1;return!0}return!(e.nodeName==="OPTION"&&!!e.closest("select"))&&!t&&!$n(e,s)?!0:Pn(e)}function Pn(e){let s=ae==null?void 0:ae.get(e);if(s===void 0){if(s=!1,e.parentElement&&e.parentElement.shadowRoot&&!e.assignedSlot&&(s=!0),!s){const t=we(e);s=!t||t.display==="none"||Ln(e.getAttribute("aria-hidden"))===!0}if(!s){const t=Qe(e);t&&(s=Pn(t))}ae==null||ae.set(e,s)}return s}function gt(e,s){if(!s)return[];const t=Gh(e);if(!t)return[];try{const i=s.split(" ").filter(r=>!!r),n=[];for(const r of i){const o=t.querySelector("#"+CSS.escape(r));o&&!n.includes(o)&&n.push(o)}return n}catch{return[]}}function de(e){return e.trim()}function Op(e){return e.split("\xA0").map(s=>s.replace(/\r\n/g,`
-`).replace(/[\u200b\u00ad]/g,"").replace(/\s\s*/g," ")).join("\xA0").trim()}function Ai(e,s){const t=[...e.querySelectorAll(s)];for(const i of gt(e,e.getAttribute("aria-owns")))i.matches(s)&&t.push(i),t.push(...i.querySelectorAll(s));return t}function We(e,s){const t=s==="::before"?Ke:s==="::after"?Ge:qe;if(t!=null&&t.has(e))return t==null?void 0:t.get(e);const i=we(e,s);let n;if(i){const r=i.content;r&&r!=="none"&&r!=="normal"&&i.display!=="none"&&i.visibility!=="hidden"&&(n=zp(e,r,!!s))}return s&&n!==void 0&&((i==null?void 0:i.display)||"inline")!=="inline"&&(n=" "+n+" "),t&&t.set(e,n),n}function zp(e,s,t){if(!(!s||s==="none"||s==="normal"))try{let i=op(s).filter(a=>!(a instanceof An));const n=i.findIndex(a=>a instanceof X&&a.value==="/");if(n!==-1)i=i.slice(n+1);else if(!t)return;const r=[];let o=0;for(;ofe(p,{...s,embeddedInLabelledBy:{element:p,hidden:pe(p)},embeddedInDescribedBy:void 0,embeddedInTargetElement:void 0,embeddedInLabel:void 0,embeddedInNativeTextAlternative:void 0})).join(" ");if(u)return u}const n=ne(e)||"",r=H(e);if(!!s.embeddedInLabel||!!s.embeddedInLabelledBy||s.embeddedInTargetElement==="descendant"){const u=[...e.labels||[]].includes(e),p=(i||[]).includes(e);if(!u&&!p){if(n==="textbox")return s.visitedElements.add(e),r==="INPUT"||r==="TEXTAREA"?e.value:e.textContent||"";if(["combobox","listbox"].includes(n)){s.visitedElements.add(e);let g;if(r==="SELECT")g=[...e.selectedOptions],!g.length&&e.options.length&&g.push(e.options[0]);else{const _=n==="combobox"?Ai(e,"*").find(v=>ne(v)==="listbox"):e;g=_?Ai(_,'[aria-selected="true"]').filter(v=>ne(v)==="option"):[]}return!g.length&&r==="INPUT"?e.value:g.map(_=>fe(_,t)).join(" ")}if(["progressbar","scrollbar","slider","spinbutton","meter"].includes(n))return s.visitedElements.add(e),e.hasAttribute("aria-valuetext")?e.getAttribute("aria-valuetext")||"":e.hasAttribute("aria-valuenow")?e.getAttribute("aria-valuenow")||"":e.getAttribute("value")||"";if(["menu"].includes(n))return s.visitedElements.add(e),""}}const o=e.getAttribute("aria-label")||"";if(de(o))return s.visitedElements.add(e),o;if(!["presentation","none"].includes(n)){if(r==="INPUT"&&["button","submit","reset"].includes(e.type)){s.visitedElements.add(e);const u=e.value||"";return de(u)?u:e.type==="submit"?"Submit":e.type==="reset"?"Reset":e.getAttribute("title")||""}if(r==="INPUT"&&e.type==="file"){s.visitedElements.add(e);const u=e.labels||[];return u.length&&!s.embeddedInLabelledBy?Oe(u,s):"Choose File"}if(r==="INPUT"&&e.type==="image"){s.visitedElements.add(e);const u=e.labels||[];if(u.length&&!s.embeddedInLabelledBy)return Oe(u,s);const p=e.getAttribute("alt")||"";if(de(p))return p;const g=e.getAttribute("title")||"";return de(g)?g:"Submit"}if(!i&&r==="BUTTON"){s.visitedElements.add(e);const u=e.labels||[];if(u.length)return Oe(u,s)}if(!i&&r==="OUTPUT"){s.visitedElements.add(e);const u=e.labels||[];return u.length?Oe(u,s):e.getAttribute("title")||""}if(!i&&(r==="TEXTAREA"||r==="SELECT"||r==="INPUT")){s.visitedElements.add(e);const u=e.labels||[];if(u.length)return Oe(u,s);const p=r==="INPUT"&&["text","password","search","tel","email","url"].includes(e.type)||r==="TEXTAREA",g=e.getAttribute("placeholder")||"",_=e.getAttribute("title")||"";return!p||_?_:g}if(!i&&r==="FIELDSET"){s.visitedElements.add(e);for(let p=e.firstElementChild;p;p=p.nextElementSibling)if(H(p)==="LEGEND")return fe(p,{...t,embeddedInNativeTextAlternative:{element:p,hidden:pe(p)}});return e.getAttribute("title")||""}if(!i&&r==="FIGURE"){s.visitedElements.add(e);for(let p=e.firstElementChild;p;p=p.nextElementSibling)if(H(p)==="FIGCAPTION")return fe(p,{...t,embeddedInNativeTextAlternative:{element:p,hidden:pe(p)}});return e.getAttribute("title")||""}if(r==="IMG"){s.visitedElements.add(e);const u=e.getAttribute("alt")||"";return de(u)?u:e.getAttribute("title")||""}if(r==="TABLE"){s.visitedElements.add(e);for(let p=e.firstElementChild;p;p=p.nextElementSibling)if(H(p)==="CAPTION")return fe(p,{...t,embeddedInNativeTextAlternative:{element:p,hidden:pe(p)}});const u=e.getAttribute("summary")||"";if(u)return u}if(r==="AREA"){s.visitedElements.add(e);const u=e.getAttribute("alt")||"";return de(u)?u:e.getAttribute("title")||""}if(r==="SVG"||e.ownerSVGElement){s.visitedElements.add(e);for(let u=e.firstElementChild;u;u=u.nextElementSibling)if(H(u)==="TITLE"&&u.ownerSVGElement)return fe(u,{...t,embeddedInLabelledBy:{element:u,hidden:pe(u)}})}if(e.ownerSVGElement&&r==="A"){const u=e.getAttribute("xlink:title")||"";if(de(u))return s.visitedElements.add(e),u}}const a=r==="SUMMARY"&&!["presentation","none"].includes(n);if(Bp(n,s.embeddedInTargetElement==="descendant")||a||!!s.embeddedInLabelledBy||!!s.embeddedInDescribedBy||!!s.embeddedInLabel||!!s.embeddedInNativeTextAlternative){s.visitedElements.add(e);const u=Wp(e,t);if(s.embeddedInTargetElement==="self"?de(u):u)return u}if(!["presentation","none"].includes(n)||r==="IFRAME"){s.visitedElements.add(e);const u=e.getAttribute("title")||"";if(de(u))return u}return s.visitedElements.add(e),""}function Wp(e,s){const t=[],i=(r,o)=>{var a;if(!(o&&r.assignedSlot))if(r.nodeType===1){const l=((a=we(r))==null?void 0:a.display)||"inline";let c=fe(r,s);(l!=="inline"||r.nodeName==="BR")&&(c=" "+c+" "),t.push(c)}else r.nodeType===3&&t.push(r.textContent||"")};t.push(We(e,"::before")||"");const n=We(e);if(n!==void 0)t.push(n);else{const r=e.nodeName==="SLOT"?e.assignedNodes():[];if(r.length)for(const o of r)i(o,!1);else{for(let o=e.firstChild;o;o=o.nextSibling)i(o,!0);if(e.shadowRoot)for(let o=e.shadowRoot.firstChild;o;o=o.nextSibling)i(o,!0);for(const o of gt(e,e.getAttribute("aria-owns")))i(o,!0)}}return t.push(We(e,"::after")||""),t.join("")}var jn=["gridcell","option","row","tab","rowheader","columnheader","treeitem"];function Vp(e){return H(e)==="OPTION"?e.selected:jn.includes(ne(e)||"")?Ln(e.getAttribute("aria-selected"))===!0:!1}var Rn=["checkbox","menuitemcheckbox","option","radio","switch","menuitemradio","treeitem"];function Yp(e){const s=qp(e,!0);return s==="error"?!1:s}function qp(e,s){const t=H(e);if(s&&t==="INPUT"&&e.indeterminate)return"mixed";if(t==="INPUT"&&["checkbox","radio"].includes(e.type))return e.checked;if(Rn.includes(ne(e)||"")){const i=e.getAttribute("aria-checked");return i==="true"?!0:s&&i==="mixed"?"mixed":!1}return"error"}var On=["button"];function Kp(e){if(On.includes(ne(e)||"")){const s=e.getAttribute("aria-pressed");if(s==="true")return!0;if(s==="mixed")return"mixed"}return!1}var zn=["application","button","checkbox","combobox","gridcell","link","listbox","menuitem","row","rowheader","tab","treeitem","columnheader","menuitemcheckbox","menuitemradio","rowheader","switch"];function Gp(e){if(H(e)==="DETAILS")return e.open;if(zn.includes(ne(e)||"")){const s=e.getAttribute("aria-expanded");return s===null?void 0:s==="true"}}var Un=["heading","listitem","row","treeitem"];function Jp(e){const s={H1:1,H2:2,H3:3,H4:4,H5:5,H6:6}[H(e)];if(s)return s;if(Un.includes(ne(e)||"")){const t=e.getAttribute("aria-level"),i=t===null?Number.NaN:Number(t);if(Number.isInteger(i)&&i>=1)return i}return 0}var Bn=["application","button","composite","gridcell","group","input","link","menuitem","scrollbar","separator","tab","checkbox","columnheader","combobox","grid","listbox","menu","menubar","menuitemcheckbox","menuitemradio","option","radio","radiogroup","row","rowheader","searchbox","select","slider","spinbutton","switch","tablist","textbox","toolbar","tree","treegrid","treeitem"];function Qp(e){return Nn(e)||Fn(e)}function Nn(e){return["BUTTON","INPUT","SELECT","TEXTAREA","OPTION","OPTGROUP"].includes(H(e))&&(e.hasAttribute("disabled")||Xp(e)||Zp(e))}function Xp(e){return H(e)==="OPTION"&&!!e.closest("OPTGROUP[DISABLED]")}function Zp(e){const s=e==null?void 0:e.closest("FIELDSET[DISABLED]");if(!s)return!1;const t=s.querySelector(":scope > LEGEND");return!t||!t.contains(e)}function Fn(e,s=!1){if(!e)return!1;if(s||Bn.includes(ne(e)||"")){const t=(e.getAttribute("aria-disabled")||"").toLowerCase();return t==="true"?!0:t==="false"?!1:Fn(Qe(e),!0)}return!1}function Oe(e,s){return[...e].map(t=>fe(t,{...s,embeddedInLabel:{element:t,hidden:pe(t)},embeddedInNativeTextAlternative:void 0,embeddedInLabelledBy:void 0,embeddedInDescribedBy:void 0,embeddedInTargetElement:void 0})).filter(t=>!!t).join(" ")}function ef(e){const s=Je;let t=e,i;const n=[];for(;t;t=Qe(t)){const r=s.get(t);if(r!==void 0){i=r;break}n.push(t);const o=we(t);if(!o){i=!0;break}const a=o.pointerEvents;if(a){i=a!=="none";break}}i===void 0&&(i=!0);for(const r of n)s.set(r,i);return i}var Ve,Ye,ae,qe,Ke,Ge,Je,Hn=0;function tf(){Qh(),++Hn,Ve!=null||(Ve=new Map),Ye!=null||(Ye=new Map),ae!=null||(ae=new Map),qe!=null||(qe=new Map),Ke!=null||(Ke=new Map),Ge!=null||(Ge=new Map),Je!=null||(Je=new Map)}function sf(){--Hn||(Ve=void 0,Ye=void 0,ae=void 0,qe=void 0,Ke=void 0,Ge=void 0,Je=void 0),Xh()}var nf={button:"button",checkbox:"checkbox",image:"button",number:"spinbutton",radio:"radio",range:"slider",reset:"button",submit:"button"},rf=0;function Wn(e){const s=e.boxes;return e.mode==="ai"?{visibility:"ariaOrVisible",refs:"interactable",refPrefix:e.refPrefix,includeGenericRole:!0,renderActive:!e.doNotRenderActive,renderCursorPointer:!0,renderBoxes:s}:e.mode==="autoexpect"?{visibility:"ariaAndVisible",refs:"none",renderBoxes:s}:e.mode==="codegen"?{visibility:"aria",refs:"none",renderStringsAsRegex:!0,renderBoxes:s}:{visibility:"aria",refs:"none",renderBoxes:s}}function of(e,s){const t=Wn(s),i=new Set,n={root:{role:"fragment",name:"",children:[],props:{},box:pt(e),receivesPointerEvents:!0},elements:new Map,refs:new Map,iframeRefs:[]};Rt(n.root,e);const r=(a,l,c)=>{if(i.has(l))return;if(i.add(l),l.nodeType===Node.TEXT_NODE&&l.nodeValue){if(!c)return;const _=l.nodeValue;a.role!=="textbox"&&_&&a.children.push(l.nodeValue||"");return}if(l.nodeType!==Node.ELEMENT_NODE)return;const d=l,h=!pe(d);let u=h;if(t.visibility==="ariaOrVisible"&&(u=h||jt(d)),t.visibility==="ariaAndVisible"&&(u=h&&jt(d)),t.visibility==="aria"&&!u)return;const p=[];if(d.hasAttribute("aria-owns")){const _=d.getAttribute("aria-owns").split(/\s+/);for(const v of _){const y=e.ownerDocument.getElementById(v);y&&p.push(y)}}const g=u?af(d,t):null;g&&(g.ref&&(n.elements.set(g.ref,d),n.refs.set(d,g.ref),g.role==="iframe"&&n.iframeRefs.push(g.ref)),a.children.push(g)),o(g||a,d,p,u)};function o(a,l,c,d){var g;const u=(((g=we(l))==null?void 0:g.display)||"inline")!=="inline"||l.nodeName==="BR"?" ":"";u&&a.children.push(u),a.children.push(We(l,"::before")||"");const p=l.nodeName==="SLOT"?l.assignedNodes():[];if(p.length)for(const _ of p)r(a,_,d);else{for(let _=l.firstChild;_;_=_.nextSibling)_.assignedSlot||r(a,_,d);if(l.shadowRoot)for(let _=l.shadowRoot.firstChild;_;_=_.nextSibling)r(a,_,d)}for(const _ of c)r(a,_,d);if(a.children.push(We(l,"::after")||""),u&&a.children.push(u),a.children.length===1&&a.name===a.children[0]&&(a.children=[]),a.role==="link"&&l.hasAttribute("href")){const _=l.getAttribute("href");a.props.url=_}if(a.role==="textbox"&&l.hasAttribute("placeholder")&&l.getAttribute("placeholder")!==a.name){const _=l.getAttribute("placeholder");a.props.placeholder=_}}tf();try{r(n.root,e,!0)}finally{sf()}return cf(n.root),lf(n.root),n}function Ci(e,s){var n;if(s.refs==="none"||s.refs==="interactable"&&(!e.box.visible||!e.receivesPointerEvents))return;const t=qn(e);let i=t._ariaRef;(!i||i.role!==e.role||i.name!==e.name)&&(i={role:e.role,name:e.name,ref:((n=s.refPrefix)!=null?n:"")+"e"+ ++rf},t._ariaRef=i),e.ref=i.ref}function af(e,s){var c;const t=e.ownerDocument.activeElement===e;if(e.nodeName==="IFRAME"){const d={role:"iframe",name:"",children:[],props:{},box:pt(e),receivesPointerEvents:!0,active:t};return Rt(d,e),Ci(d,s),d}const i=s.includeGenericRole?"generic":null,n=(c=ne(e))!=null?c:i;if(!n||n==="presentation"||n==="none")return null;const r=yn(Np(e,!1)||""),o=ef(e),a=pt(e);if(n==="generic"&&a.inline&&e.childNodes.length===1&&e.childNodes[0].nodeType===Node.TEXT_NODE)return null;const l={role:n,name:r,children:[],props:{},box:a,receivesPointerEvents:o,active:t};if(Rt(l,e),Ci(l,s),Rn.includes(n)&&(l.checked=Yp(e)),Bn.includes(n)&&(l.disabled=Qp(e)),zn.includes(n)&&(l.expanded=Gp(e)),Fp.includes(n)){const d=Hp(e);l.invalid=d==="false"?!1:d==="true"?!0:d}return Un.includes(n)&&(l.level=Jp(e)),On.includes(n)&&(l.pressed=Kp(e)),jn.includes(n)&&(l.selected=Vp(e)),(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)&&e.type!=="checkbox"&&e.type!=="radio"&&e.type!=="file"&&(l.children=[e.value]),l}function lf(e){const s=t=>{const i=[];for(const r of t.children||[]){if(typeof r=="string"){i.push(r);continue}const o=s(r);i.push(...o)}return t.role==="generic"&&!t.name&&i.length<=1&&i.every(r=>typeof r!="string"&&!!r.ref)?i:(t.children=i,[t])};s(e)}function cf(e){const s=(i,n)=>{if(!i.length)return;const r=yn(i.join(""));r&&n.push(r),i.length=0},t=i=>{const n=[],r=[];for(const o of i.children||[])typeof o=="string"?r.push(o):(s(r,n),t(o),n.push(o));s(r,n),i.children=n.length?n:[],i.children.length===1&&i.children[0]===i.name&&(i.children=[])};t(e)}function Vn(e,s=new Map){e!=null&&e.ref&&s.set(e.ref,e);for(const t of(e==null?void 0:e.children)||[])typeof t!="string"&&Vn(t,s);return s}function uf(e,s){var r;const t=Vn(s==null?void 0:s.root),i=new Map,n=(o,a)=>{let l=o.children.length===(a==null?void 0:a.children.length)&&Wh(o,a),c=l;for(let d=0;d{const r=s.get(n);if(r!=="same")if(r==="skip")for(const o of n.children)typeof o!="string"&&i(o);else t.push(n)};for(const n of e)typeof n=="string"?t.push(n):i(n);return t}function it(e){return" ".repeat(e)}function hf(e,s,t){const i=Wn(s),n=[],r={},o=i.renderStringsAsRegex?ff:()=>!0,a=i.renderStringsAsRegex?pf:g=>g;let l=e.root.role==="fragment"?e.root.children:[e.root];const c=uf(e,t);t&&(l=df(l,c));const d=(g,_)=>{if(s.depth&&_>s.depth)return;const v=bt(a(g));v&&n.push(it(_)+"- text: "+v)},h=(g,_)=>{let v=g.role;if(g.name&&g.name.length<=900){const y=a(g.name);if(y){const w=y.startsWith("/")&&y.endsWith("/")?y:JSON.stringify(y);v+=" "+w}}if(g.checked==="mixed"&&(v+=" [checked=mixed]"),g.checked===!0&&(v+=" [checked]"),g.disabled&&(v+=" [disabled]"),g.expanded&&(v+=" [expanded]"),g.active&&i.renderActive&&(v+=" [active]"),(g.invalid==="grammar"||g.invalid==="spelling")&&(v+=` [invalid=${g.invalid}]`),g.invalid===!0&&(v+=" [invalid]"),g.level&&(v+=` [level=${g.level}]`),g.pressed==="mixed"&&(v+=" [pressed=mixed]"),g.pressed===!0&&(v+=" [pressed]"),g.selected===!0&&(v+=" [selected]"),g.ref&&(v+=` [ref=${g.ref}]`,_&&ht(g)&&(v+=" [cursor=pointer]")),i.renderBoxes){const y=qn(g);if(y){const w=y.getBoundingClientRect();v+=` [box=${Math.round(w.x)},${Math.round(w.y)},${Math.round(w.width)},${Math.round(w.height)}]`}}return v},u=g=>(g==null?void 0:g.children.length)===1&&typeof g.children[0]=="string"&&!Object.keys(g.props).length?g.children[0]:void 0,p=(g,_,v)=>{if(s.depth&&_>s.depth)return;if(g.role==="iframe"&&g.ref&&(r[g.ref]=_),c.get(g)==="same"&&g.ref){n.push(it(_)+`- ref=${g.ref} [unchanged]`);return}const y=!!t&&!_,w=it(_)+"- "+(y?" ":"")+qh(h(g,v)),b=u(g),C=!!s.depth&&_===s.depth;if(!b&&(!g.children.length||C)&&!Object.keys(g.props).length)n.push(w);else if(b!==void 0)o(g,b)?n.push(w+": "+bt(a(b))):n.push(w);else{n.push(w+":");for(const[K,Y]of Object.entries(g.props))n.push(it(_+1)+"- /"+K+": "+bt(Y));const O=!!g.ref&&v&&ht(g);for(const K of g.children)typeof K=="string"?d(o(g,K)?K:"",_+1):p(K,_+1,v&&!O)}};for(const g of l)typeof g=="string"?d(g,0):p(g,0,!!i.renderCursorPointer);return{text:n.join(`
-`),iframeDepths:r}}function pf(e){const s=[{regex:/\b[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}\b/,replacement:"[0-9a-fA-F-]+"},{regex:/\b[\d,.]+[bkmBKM]+\b/,replacement:"[\\d,.]+[bkmBKM]+"},{regex:/\b\d+[hmsp]+\b/,replacement:"\\d+[hmsp]+"},{regex:/\b[\d,.]+[hmsp]+\b/,replacement:"[\\d,.]+[hmsp]+"},{regex:/\b\d+,\d+\b/,replacement:"\\d+,\\d+"},{regex:/\b\d+\.\d{2,}\b/,replacement:"\\d+\\.\\d+"},{regex:/\b\d{2,}\.\d+\b/,replacement:"\\d+\\.\\d+"},{regex:/\b\d{2,}\b/,replacement:"\\d+"}];let t="",i=0;const n=new RegExp(s.map(r=>"("+r.regex.source+")").join("|"),"g");return e.replace(n,(r,...o)=>{const a=o[o.length-2],l=o.slice(0,-2);t+=gi(e.slice(i,a));for(let c=0;c.1}var Yn=Symbol("element");function qn(e){return e[Yn]}function Rt(e,s){e[Yn]=s}function mf(e,s){const t=Object.assign({mode:"ai"},s||{}),i=of(e||document.body,t);return{text:hf(i,t).text,elements:i.elements,refs:i.refs}}const gf={button:"button",a:"link",input:e=>{var t;switch(((t=e.type)==null?void 0:t.toLowerCase())||"text"){case"checkbox":return"checkbox";case"radio":return"radio";case"submit":case"reset":case"button":return"button";case"search":return"searchbox";case"range":return"slider";case"number":return"spinbutton";default:return"textbox"}},textarea:"textbox",select:"combobox",option:"option",h1:"heading",h2:"heading",h3:"heading",h4:"heading",h5:"heading",h6:"heading",img:"img",nav:"navigation",main:"main",article:"article",li:"listitem",td:"cell",th:"columnheader"};function St(e,s={}){var h;const t=(h=e==null?void 0:e.state)==null?void 0:h.routeName,i=s.doc||document,n=s.include_elements!==!1,r=s.interactive_only||!1,o=s.max_elements||50,a=s.offset||0,l=s.container||null,c=s.query||"",d={page_type:t||"unknown",page_url:i.location&&i.location.href||window.location.href,page_title:i.title,timestamp:Date.now(),elements:[],element_count:0,total_count:0,offset:a,has_more:!1,available_actions:_f(t,e)};if(n){const u=Kn({doc:i,interactiveOnly:r,maxElements:o,offset:a,container:l,query:c});d.elements=u.elements,d.element_count=u.elements.length,d.total_count=u.totalCount,d.has_more=u.hasMore,d.ref_map=u.refMap,d.snapshot=u.snapshot,d.refElements=u.refElements,c&&(d.query=c,d.keyword_matched=u.keywordMatched)}return d}function _f(e,s){var r;const t=[{name:"navigate_to_dashboard",description:"\u8DF3\u8F6C\u5230\u4EEA\u8868\u76D8"},{name:"navigate_to_messenger",description:"\u8DF3\u8F6C\u5230\u6D88\u606F\u9875\u9762"},{name:"navigate_to_calendar",description:"\u8DF3\u8F6C\u5230\u65E5\u5386\u9875\u9762"},{name:"navigate_to_files",description:"\u8DF3\u8F6C\u5230\u6587\u4EF6\u7BA1\u7406\u9875\u9762"}],i=[];(((r=s==null?void 0:s.state)==null?void 0:r.microApps)||[]).some(o=>o&&o.isOpen)&&i.push({name:"close_app",description:"\u5173\u95ED\u5F53\u524D\u6253\u5F00\u7684\u5E94\u7528\u7A97\u53E3"});const n=[];switch(e){case"manage-project":n.push({name:"open_task",description:"\u6253\u5F00\u4EFB\u52A1\u8BE6\u60C5",params:{task_id:"\u4EFB\u52A1ID"}});break;case"manage-messenger":n.push({name:"open_dialog",description:"\u6253\u5F00/\u5207\u6362\u5BF9\u8BDD",params:{dialog_id:"\u5BF9\u8BDDID",msg_id:"(\u53EF\u9009)\u8DF3\u8F6C\u5230\u6307\u5B9A\u6D88\u606F"}});break;case"manage-file":n.push({name:"open_folder",description:"\u6253\u5F00\u6587\u4EF6\u5939",params:{folder_id:"\u6587\u4EF6\u5939ID"}},{name:"open_file",description:"\u6253\u5F00\u6587\u4EF6\u9884\u89C8",params:{file_id:"\u6587\u4EF6ID"}});break;case"manage-dashboard":n.push({name:"open_project",description:"\u6253\u5F00/\u5207\u6362\u5230\u9879\u76EE",params:{project_id:"\u9879\u76EEID"}},{name:"open_task",description:"\u6253\u5F00\u4EFB\u52A1\u8BE6\u60C5",params:{task_id:"\u4EFB\u52A1ID"}});break;default:n.push({name:"open_project",description:"\u6253\u5F00/\u5207\u6362\u5230\u9879\u76EE",params:{project_id:"\u9879\u76EEID"}},{name:"open_task",description:"\u6253\u5F00\u4EFB\u52A1\u8BE6\u60C5",params:{task_id:"\u4EFB\u52A1ID"}},{name:"open_dialog",description:"\u6253\u5F00\u5BF9\u8BDD",params:{dialog_id:"\u5BF9\u8BDDID"}})}return[...i,...n,...t]}function Kn(e={}){const{doc:s=document,maxElements:t=50,offset:i=0,container:n=null,query:r=""}=e,o={elements:[],refMap:{},refElements:new Map,snapshot:"",totalCount:0,hasMore:!1,keywordMatched:!1};let a=s.body||s.documentElement||s;if(n&&(a=s.querySelector(n),!a))return o;let l;try{l=mf(a,{mode:"ai"})}catch{return o}const c=l.elements||new Map,d=[];for(const[w,b]of c.entries()){if(!b||!b.isConnected)continue;const C=vf(b);!C||(C.ref=w,d.push(C))}let h=d,u=!1;if(r){const w=r.toLowerCase();h=d.filter(b=>(b.name||"").toLowerCase().includes(w)||(b.placeholder||"").toLowerCase().includes(w)||(b.aria_label||"").toLowerCase().includes(w)||(b.title||"").toLowerCase().includes(w)),u=h.length>0,h.length===0&&(h=d)}const p=h.length,g=Math.min(i+t,p),_=gi.remove());let t=s.textContent||s.innerText||"";return t=t.replace(/\s+/g," ").trim(),t}function $f(e){if(e.id)return`#${e.id}`;const s=[];let t=e,i=0;for(;t&&t!==e.ownerDocument.body&&i<5;){let n=t.tagName.toLowerCase();if(t.className&&typeof t.className=="string"){const r=t.className.split(" ").filter(o=>o&&!o.startsWith("ivu-")&&!o.includes("--")&&!o.includes("active")&&!o.includes("hover")).slice(0,2);r.length&&(n+="."+r.join("."))}t.getAttribute("role")?n+=`[role="${t.getAttribute("role")}"]`:t.getAttribute("data-id")?n+=`[data-id="${t.getAttribute("data-id")}"]`:t.getAttribute("name")&&(n+=`[name="${t.getAttribute("name")}"]`),s.unshift(n),t=t.parentElement,i++}return s.join(" > ")}async function kf(e,s,t,i=10){var r;if(!s||!t||t.length===0)return[];const n=t.filter(o=>o.name&&o.name.trim()).map(o=>({ref:o.ref,name:o.name}));if(n.length===0)return[];try{const o=await e.dispatch("call",{url:"assistant/match_elements",method:"post",data:{query:s,elements:n,top_k:i}}),a=(r=o==null?void 0:o.data)==null?void 0:r.matches;if(a&&a.length>0){const l=a.map(c=>c.element.ref);return t.filter(c=>l.includes(c.ref)).sort((c,d)=>l.indexOf(c.ref)-l.indexOf(d.ref))}}catch{}return[]}typeof window!="undefined"&&(window.__testPageContext=(e={})=>{let s=document;if(e.frameSrc){const n=[...document.querySelectorAll("iframe")].find(r=>(r.src||"").includes(e.frameSrc));n&&n.contentDocument&&(s=n.contentDocument)}const t={page_url:s.location&&s.location.href||window.location.href,page_title:s.title,timestamp:Date.now()},i=Kn({doc:s,interactiveOnly:e.interactive_only||!1,maxElements:e.max_elements||50,offset:e.offset||0,container:e.container||null});return t.elements=i.elements,t.element_count=i.elements.length,t.total_count=i.totalCount,t.offset=e.offset||0,t.has_more=i.hasMore,t.ref_map=i.refMap,t});const bf="iframe.micro-app-iframe-container";function Af(e){return typeof e=="string"&&/^iframe/i.test(e)}function Cf(e){var t;const s=(((t=e==null?void 0:e.state)==null?void 0:t.microApps)||[]).filter(i=>i&&i.isOpen);return s.length?s.reduce((i,n)=>(n.lastOpenAt||0)>(i.lastOpenAt||0)?n:i):null}function Sf(e){if(!e||!e.url)return null;const s=[...document.querySelectorAll(bf)];if(!s.length)return null;let t=s.find(i=>i.src===e.url);if(t)return t;try{const i=new URL(e.url,location.href).href;if(t=s.find(n=>{try{return new URL(n.src,location.href).href===i}catch{return!1}}),t)return t}catch{}return s.length===1?s[0]:null}function Gn(e,s="auto"){const t={kind:"main",scope:"main",doc:document,appName:null,label:"\u4E3B\u754C\u9762",reachable:!0,frameKey:"main"};if(s==="main")return t;const i=Cf(e);if(!i)return s==="app"?{kind:"app",scope:"app",appName:null,appTitle:"",reachable:!1,reason:"no_app",frameKey:null}:t;if(!Af(i.type))return{...t,appName:i.name,appTitle:i.title||i.name};const n={kind:"app",scope:"app",appName:i.name,appTitle:i.title||i.name,frameKey:`app:${i.name}@${i.lastOpenAt||0}`},r=Sf(i);if(!r)return{...n,reachable:!1,reason:"not_ready"};try{const o=r.contentDocument;return o&&o.body&&o.body.children.length>0?{...n,reachable:!0,doc:o,label:`\u5FAE\u5E94\u7528\u300C${n.appTitle}\u300D`}:{...n,reachable:!1,reason:"not_ready"}}catch{return{...n,reachable:!1,reason:"cross_origin"}}}const Si=e=>new Promise(s=>setTimeout(s,e));function Ce(e,s){return new Error(`${e}: ${s}`)}function xf(e){return!e||e.matches&&e.matches("input, textarea")||e.isContentEditable?e:e.querySelector&&e.querySelector('input, textarea, [contenteditable="true"], [contenteditable=""]')||e}function Ot(e,s){const t=s.InputEvent||s.Event;e.dispatchEvent(new t("input",{bubbles:!0})),e.dispatchEvent(new s.Event("change",{bubbles:!0}))}function xi(e,s,t){const i=xf(e),n=s==null?"":String(s),r=(i.tagName||"").toLowerCase();if(i.isContentEditable){i.focus();const c=t.getSelection&&t.getSelection();if(c){const h=i.ownerDocument.createRange();h.selectNodeContents(i),c.removeAllRanges(),c.addRange(h)}if(i.ownerDocument.execCommand&&i.ownerDocument.execCommand("insertText",!1,n)||(i.textContent=n),Ot(i,t),n&&!(i.textContent||"").includes(n))throw Ce("value_not_applied","\u5BCC\u6587\u672C\u5199\u5165\u672A\u751F\u6548");return{success:!0,action:"type",value:n}}if(r!=="input"&&r!=="textarea")throw Ce("unsupported_widget","\u5143\u7D20\u4E0D\u53EF\u8F93\u5165\u6587\u672C");i.focus();const o=r==="textarea"?t.HTMLTextAreaElement.prototype:t.HTMLInputElement.prototype,a=Object.getOwnPropertyDescriptor(o,"value"),l=a&&a.set;if(l?l.call(i,n):i.value=n,Ot(i,t),i.dispatchEvent(new t.Event("blur",{bubbles:!0})),i.value!==n)throw Ce("value_not_applied","\u5199\u5165\u540E\u56DE\u8BFB\u4E0D\u4E00\u81F4");return{success:!0,action:"type",value:n}}function Tf(e){if(typeof e.focus=="function")try{e.focus()}catch{}return e.click(),{success:!0,action:"click"}}async function If(e,s,t,i){const n=s==null?"":String(s);if((e.tagName||"").toLowerCase()==="select"){const h=[...e.options].find(u=>u.value===n||(u.textContent||"").trim()===n||(u.textContent||"").includes(n));if(!h)throw Ce("unsupported_widget",`\u539F\u751F select \u65E0\u9009\u9879 ${n}`);return e.value=h.value,Ot(e,i),{success:!0,action:"select",value:n}}e.click(),await Si(180);const o='[role="option"], [role="gridcell"], [role="menuitemradio"], .ivu-select-item, li[role]',a=[...t.querySelectorAll(o)].filter(h=>h.offsetParent!==null||h.getClientRects().length),l=a.find(h=>(h.textContent||"").trim()===n),c=a.find(h=>(h.textContent||"").trim().includes(n)),d=l||c;if(!d)throw Ce("unsupported_widget",`\u4E0B\u62C9\u672A\u6E32\u67D3\u5339\u914D\u9879 ${n}`);return d.click(),await Si(80),{success:!0,action:"select",value:n}}function Df(e){const s=e.matches&&e.matches('input[type="checkbox"], input[type="radio"]')?e:e.querySelector&&e.querySelector('input[type="checkbox"], input[type="radio"]');return s?!!s.checked:(e.getAttribute&&e.getAttribute("aria-checked"))==="true"}function Tt(e,s){const t=e.matches&&e.matches('input[type="checkbox"], input[type="radio"]')?e:e.querySelector&&e.querySelector('input[type="checkbox"], input[type="radio"]');if(t)return!!t.checked!==s&&t.click(),{success:!0,action:s?"check":"uncheck",checked:!!t.checked};const i=e.getAttribute&&e.getAttribute("aria-checked");if(i!=null)return i==="true"!==s&&e.click(),{success:!0,action:s?"check":"uncheck"};throw Ce("unsupported_widget","\u975E\u590D\u9009/\u5355\u9009\u5143\u7D20")}function Ef(){return{name:"web",async perform(e,s,t,i){const n=i&&i.win||e.ownerDocument.defaultView||window,r=i&&i.doc||e.ownerDocument;switch(s){case"click":return Tf(e);case"type":case"fill":return xi(e,t,n);case"clear":return xi(e,"",n);case"select":return If(e,t,r,n);case"check":return Tt(e,!0);case"uncheck":return Tt(e,!1);case"toggle":return Tt(e,!Df(e));case"focus":return e.focus(),{success:!0,action:"focus"};case"scroll":return e.scrollIntoView({behavior:"smooth",block:"center"}),{success:!0,action:"scroll"};case"hover":return e.dispatchEvent(new n.MouseEvent("mouseenter",{bubbles:!0})),e.dispatchEvent(new n.MouseEvent("mouseover",{bubbles:!0})),{success:!0,action:"hover"};default:throw Ce("not_actionable",`\u4E0D\u652F\u6301\u7684\u64CD\u4F5C: ${s}`)}}}}function Lf(){return!!(typeof window!="undefined"&&window.$A&&window.$A.isElectron&&window.electron&&typeof window.electron.sendAsync=="function")}function Mf(e){const s=e.getBoundingClientRect();return{x:Math.round(s.left+s.width/2),y:Math.round(s.top+s.height/2)}}function Pf(e,s){try{if(typeof e.select=="function"){e.select();return}if(e.isContentEditable){const t=s.getSelection&&s.getSelection();if(t){const i=e.ownerDocument.createRange();i.selectNodeContents(e),t.removeAllRanges(),t.addRange(i)}}}catch{}}function jf(e){const s=(t,i)=>window.electron.sendAsync("pageInput",Object.assign({op:t},i));return{name:"electron",async perform(t,i,n,r){const o=r&&r.win||t.ownerDocument.defaultView||window;try{if(i==="type"||i==="fill"||i==="clear"){const a=i==="clear"||n==null?"":String(n);typeof t.focus=="function"&&t.focus(),Pf(t,o),await s("insertText",{text:a});const l=t.value!=null?t.value:t.textContent||"";if(a&&l!==a&&!(l||"").includes(a))throw new Error("value_not_applied: \u53EF\u4FE1\u8F93\u5165\u56DE\u8BFB\u4E0D\u4E00\u81F4");return{success:!0,action:"type",value:a,backend:"electron"}}if(i==="click"){const{x:a,y:l}=Mf(t);return await s("click",{x:a,y:l}),{success:!0,action:"click",backend:"electron"}}}catch{return e().perform(t,i,n,r)}return e().perform(t,i,n,r)}}}let It=null,Dt=null;function Rf(){return Lf()?(Dt||(Dt=jf(()=>Ti())),Dt):Ti()}function Ti(){return It||(It=Ef()),It}function Of(e,s){return new zf(e,s)}class zf{constructor(s,t){this.store=s,this.router=t,this.actionHandlers={open_task:this.openTask.bind(this),open_dialog:this.openDialog.bind(this),open_project:this.openProject.bind(this),open_file:this.openFile.bind(this),open_folder:this.openFolder.bind(this),navigate_to_dashboard:this.navigateToDashboard.bind(this),navigate_to_messenger:this.navigateToMessenger.bind(this),navigate_to_calendar:this.navigateToCalendar.bind(this),navigate_to_files:this.navigateToFiles.bind(this),close_app:this.closeApp.bind(this),goto_task:this.openTask.bind(this),goto_project:this.openProject.bind(this),goto_dialog:this.openDialog.bind(this),navigate_to_task:this.openTask.bind(this),navigate_to_project:this.openProject.bind(this),navigate_to_dialog:this.openDialog.bind(this)}}async executeAction(s,t={}){const{normalizedAction:i,extractedParams:n}=this.parseActionName(s),r={...n,...t},o=this.actionHandlers[i];if(!o)throw new Error(`\u4E0D\u652F\u6301\u7684\u64CD\u4F5C: ${s}\u3002\u652F\u6301\u7684\u64CD\u4F5C: ${Object.keys(this.actionHandlers).join(", ")}`);try{const a=await o(r);return{success:!0,action:i,result:a}}catch(a){throw new Error(`\u6267\u884C\u64CD\u4F5C\u5931\u8D25: ${a.message}`)}}parseActionName(s){const t=[{regex:/^(open_task|goto_task|navigate_to_task)_(\d+)$/,paramName:"task_id"},{regex:/^(open_project|goto_project|navigate_to_project)_(\d+)$/,paramName:"project_id"},{regex:/^(open_dialog|goto_dialog|navigate_to_dialog)_(\d+)$/,paramName:"dialog_id"},{regex:/^(open_file)_(\d+)$/,paramName:"file_id"},{regex:/^(open_folder)_(\d+)$/,paramName:"folder_id"}];for(const{regex:i,paramName:n}of t){const r=s.match(i);if(r)return{normalizedAction:r[1],extractedParams:{[n]:parseInt(r[2],10)}}}return{normalizedAction:s,extractedParams:{}}}async openTask(s){const t=s.task_id;if(!t)throw new Error("\u7F3A\u5C11 task_id \u53C2\u6570");return this.store.dispatch("openTask",t),{opened:!0,task_id:t}}async openDialog(s){const t=s.dialog_id;if(!t)throw new Error("\u7F3A\u5C11 dialog_id \u53C2\u6570");const i=s.msg_id?{dialog_id:t,search_msg_id:s.msg_id}:t;return this.store.dispatch("openDialog",i),{opened:!0,dialog_id:t}}async openProject(s){const t=s.project_id;if(!t)throw new Error("\u7F3A\u5C11 project_id \u53C2\u6570");return window.$A.goForward({name:"manage-project",params:{projectId:t}}),{navigated:!0,project_id:t}}async openFile(s){const t=s.file_id;if(!t)throw new Error("\u7F3A\u5C11 file_id \u53C2\u6570");return window.$A.goForward({name:"manage-file",params:{fileId:t}}),{navigated:!0,file_id:t}}async openFolder(s){const t=s.folder_id;if(!t)throw new Error("\u7F3A\u5C11 folder_id \u53C2\u6570");return window.$A.goForward({name:"manage-file",params:{folderId:t,fileId:null}}),{navigated:!0,folder_id:t}}async navigateToDashboard(){return window.$A.goForward({name:"manage-dashboard"}),{navigated:!0,page:"dashboard"}}async navigateToMessenger(){return window.$A.goForward({name:"manage-messenger"}),{navigated:!0,page:"messenger"}}async navigateToCalendar(){return window.$A.goForward({name:"manage-calendar"}),{navigated:!0,page:"calendar"}}async navigateToFiles(){return window.$A.goForward({name:"manage-file"}),{navigated:!0,page:"files"}}async closeApp(){var t,i;if(!(((i=(t=this.store)==null?void 0:t.state)==null?void 0:i.microApps)||[]).some(n=>n&&n.isOpen))throw new Error("\u5F53\u524D\u6CA1\u6709\u6253\u5F00\u7684\u5E94\u7528");return x.emit("observeMicroApp:close"),{closed:!0}}setRefMap(s,t=null){this.currentRefElements=s instanceof Map?s:null,this.currentContext=t}resolveContextDoc(){const s=this.currentContext;if(!s||s.kind==="main"||s.frameKey==="main")return document;const t=Gn(this.store,s.scope||"auto");if(t.frameKey!==s.frameKey||!t.reachable||!t.doc)throw new Error("\u9875\u9762\u4E0A\u4E0B\u6587\u5DF2\u53D8\u66F4\uFF08\u7528\u6237\u5207\u6362\u4E86\u5E94\u7528\u6216\u5237\u65B0\u4E86\u9875\u9762\uFF09\uFF0C\u8BF7\u91CD\u65B0\u83B7\u53D6\u9875\u9762\u4E0A\u4E0B\u6587\u540E\u518D\u64CD\u4F5C");return t.doc}async executeElementAction(s,t,i){const n=this.resolveContextDoc(),r=this.findElement(s,n);if(!r)throw new Error(`element_not_found: \u627E\u4E0D\u5230\u5143\u7D20 ${s}\uFF08\u53EF\u80FD\u9875\u9762\u5DF2\u53D8\u66F4\uFF0C\u8BF7\u91CD\u65B0\u83B7\u53D6\u9875\u9762\u4E0A\u4E0B\u6587\uFF09`);const o=r.ownerDocument.defaultView||window;this.backend||(this.backend=Rf());const a=await this.backend.perform(r,t,i,{doc:n,win:o,elementUid:s});return Object.assign({element:s},a)}findElement(s,t=document){let i=null;if(s.startsWith("@")?i=s.slice(1):s.startsWith("ref=")?i=s.slice(4):/^e\d+$/.test(s)&&(i=s),i&&this.currentRefElements){const n=this.currentRefElements.get(i);if(n&&n.isConnected)return n;if(n&&!n.isConnected)return null}try{const n=t.querySelector(s);if(n)return n}catch{}return null}delay(s){return new Promise(t=>setTimeout(t,s))}}function Uf(e={}){return new Bf(e)}class Bf{constructor(s){this.store=s.store,this.router=s.router,this.executor=null}ensureExecutor(){return this.executor||(this.executor=Of(this.store,this.router)),this.executor}async handleRequest(s,t){switch(s){case"get_page_context":return this.getPageContext(t);case"execute_action":return this.executeAction(t);case"execute_element_action":return this.executeElementAction(t);default:throw new Error(`\u672A\u77E5\u7684\u64CD\u4F5C\u7C7B\u578B: ${s}`)}}async getPageContext(s){this.ensureExecutor();const t=(s==null?void 0:s.include_elements)!==!1,i=(s==null?void 0:s.interactive_only)||!1,n=(s==null?void 0:s.max_elements)||100,r=(s==null?void 0:s.query)||"",o=(s==null?void 0:s.offset)||0,a=(s==null?void 0:s.container)||null,l=(s==null?void 0:s.scope)||"auto",c=Gn(this.store,l);if(c.kind==="app"&&!c.reachable){const u=c.reason==="cross_origin"?"\u5F53\u524D\u5E94\u7528\u4E3A\u8DE8\u6E90\u9875\u9762\uFF0C\u65E0\u6CD5\u8BFB\u53D6\u5176\u5185\u90E8\u5143\u7D20":c.reason==="no_app"?"\u5F53\u524D\u6CA1\u6709\u6253\u5F00\u4EFB\u4F55\u5FAE\u5E94\u7528":"\u5F53\u524D\u5E94\u7528\u5C1A\u672A\u52A0\u8F7D\u5B8C\u6210",p=St(this.store,{include_elements:!1});return p.elements=[],p.element_count=0,p.total_count=0,p.has_more=!1,p.frame={scope:"app",app_name:c.appName||null,operable:!1,reachable:!1,reason:c.reason},p.hint=`${u}\u3002\u53EF\u6539\u7528\u4E3B\u754C\u9762\uFF08scope=main\uFF09\u64CD\u4F5C\uFF0C\u6216\u6539\u7528\u6570\u636E\u547D\u4EE4\u5B8C\u6210\u3002`,this.executor.setRefMap(new Map,null),p}const d=c.doc||document;let h=St(this.store,{doc:d,include_elements:t,interactive_only:i,max_elements:n,offset:o,container:a,query:r});if(r&&!h.keyword_matched){const u=St(this.store,{doc:d,include_elements:!0,interactive_only:i,max_elements:200,offset:0,container:a});if(u.elements.length>0){const p=await kf(this.store,r,u.elements,10);if(p.length>0){h.elements=p,h.element_count=p.length,h.total_count=p.length,h.has_more=!1,h.vector_matched=!0,h.refElements=u.refElements,h.ref_map={};for(const g of p)g.ref&&(h.ref_map[g.ref]={role:g.role,name:g.name})}}}return h.frame={scope:c.scope,app_name:c.appName||null,operable:!0},h.refElements&&this.executor&&this.executor.setRefMap(h.refElements,c),delete h.refElements,h}async executeAction(s){this.ensureExecutor();const t=s==null?void 0:s.name,i=(s==null?void 0:s.params)||{};if(!t)throw new Error("\u7F3A\u5C11\u64CD\u4F5C\u540D\u79F0");return this.executor.executeAction(t,i)}async executeElementAction(s){this.ensureExecutor();const t=s==null?void 0:s.element_uid,i=s==null?void 0:s.action,n=s==null?void 0:s.value;if(!t||!i)throw new Error("\u7F3A\u5C11\u5FC5\u8981\u53C2\u6570");return this.executor.executeElementAction(t,i,n)}}function Jn(e){return`aiAssistant.floatButtonVisible.${e}`}function Nf(e){return e<=0?Promise.resolve(!0):$A.IDBBoolean(Jn(e),!0).catch(()=>!0)}function $v(e,s){return e<=0?Promise.resolve():$A.IDBSet(Jn(e),s)}var Ff=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("transition",{attrs:{name:"fade"}},[e.visible?t("div",{staticClass:"ai-float-button-wrapper",class:e.wrapperClass,style:e.wrapperStyle,on:{mouseenter:e.onMouseEnter,mouseleave:e.onMouseLeave}},[t("div",{ref:"floatBtn",staticClass:"ai-float-button",class:e.btnClass,style:e.btnStyle,on:{mousedown:function(i){return i.stopPropagation(),i.preventDefault(),e.onMouseDown.apply(null,arguments)},touchstart:function(i){return i.stopPropagation(),e.onTouchStart.apply(null,arguments)}}},[t("svg",{staticClass:"ai-float-button-icon no-dark-content",attrs:{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M385.80516777 713.87417358c-12.76971517 0-24.13100586-7.79328205-28.82575409-19.62404756l-48.91927648-123.9413531c-18.40341303-46.75969229-55.77360888-84.0359932-102.53330118-102.53330117l-123.94135309-48.91927649c-11.83076552-4.69474822-19.62404757-16.05603892-19.62404757-28.8257541s7.79328205-24.13100586 19.62404757-28.82575407l123.94135309-48.91927649c46.75969229-18.40341303 84.0359932-55.77360888 102.53330118-102.53330119l48.91927648-123.94135308c4.69474822-11.83076552 16.05603892-19.62404757 28.8257541-19.62404757s24.13100586 7.79328205 28.82575408 19.62404757l48.91927648 123.94135308c18.40341303 46.75969229 55.77360888 84.0359932 102.53330118 102.53330119l123.94135309 48.91927649c11.83076552 4.69474822 19.62404757 16.05603892 19.62404757 28.82575407 0 12.76971517-7.79328205 24.13100586-19.62404757 28.8257541l-123.94135309 48.91927649c-46.75969229 18.40341303-84.0359932 55.77360888-102.53330118 102.53330117l-48.91927648 123.9413531c-4.69474822 11.83076552-16.14993388 19.62404757-28.82575408 19.62404756zM177.45224165 390.12433614l50.89107073 20.0935224c62.62794129 24.69437565 112.67395736 74.74039171 137.368333 137.36833299l20.09352239 50.89107073 20.0935224-50.89107073c24.69437565-62.62794129 74.74039171-112.67395736 137.368333-137.36833299l50.89107072-20.0935224-50.89107073-20.09352239c-62.62794129-24.69437565-112.67395736-74.74039171-137.36833299-137.36833301l-20.09352239-50.89107074-20.0935224 50.89107074c-24.69437565 62.62794129-74.74039171 112.67395736-137.368333 137.36833301l-50.89107073 20.09352239zM771.33789183 957.62550131c-12.76971517 0-24.13100586-7.79328205-28.82575409-19.62404758l-26.6661699-67.6043744c-8.63833672-21.87752672-26.10280012-39.34199011-47.98032684-47.98032684l-67.60437441-26.6661699c-11.83076552-4.69474822-19.62404757-16.05603892-19.62404757-28.82575409s7.79328205-24.13100586 19.62404757-28.82575409l67.60437441-26.6661699c21.87752672-8.63833672 39.34199011-26.10280012 47.98032684-47.98032685l26.6661699-67.6043744c4.69474822-11.83076552 16.05603892-19.62404757 28.82575409-19.62404757s24.13100586 7.79328205 28.82575409 19.62404757l26.66616991 67.6043744c8.63833672 21.87752672 26.10280012 39.34199011 47.98032684 47.98032685l67.6043744 26.6661699c11.83076552 4.69474822 19.62404757 16.05603892 19.62404757 28.82575409s-7.79328205 24.13100586-19.62404757 28.82575409l-67.6043744 26.6661699c-21.87752672 8.63833672-39.34199011 26.10280012-47.98032684 47.98032684l-26.66616991 67.6043744c-4.69474822 11.83076552-16.14993388 19.62404757-28.82575409 19.62404758z m-75.58544639-190.70067281c33.61439727 14.83540438 60.75004201 41.87715415 75.49155143 75.49155143 14.83540438-33.61439727 41.87715415-60.75004201 75.49155142-75.49155143-33.61439727-14.83540438-60.75004201-41.87715415-75.49155142-75.49155143-14.74150942 33.61439727-41.87715415 60.75004201-75.49155143 75.49155143z"}})])])]):e._e()])},Hf=[];const Wf={name:"AIAssistantFloatButton",data(){return{position:{x:24,y:24,fromRight:!0,fromBottom:!0,collapsed:!1},dragging:!1,positionLoaded:!1,visibilityLoaded:!1,floatButtonVisible:!0,cacheKey:"aiAssistant.floatButtonPosition",btnSize:44,collapsedHeight:48,collapseThreshold:12,collapseDelayDesktop:1e3,collapseDelayMobile:5e3,collapseTimer:null,record:{},operationModule:null,operationSessionId:null}},computed:{...ye(["aiVisible"]),visible(){var e;return this.aiVisible&&this.userId>0&&this.positionLoaded&&this.visibilityLoaded&&this.floatButtonVisible&&this.routeName!=="login"&&!((e=this.$parent)!=null&&e.showModal)},collapsed(){return this.position.collapsed},clientWidth(){return this.windowWidth||document.documentElement.clientWidth},clientHeight(){return this.windowHeight||document.documentElement.clientHeight},wrapperWidth(){return this.btnSize+this.position.x},wrapperLeft(){return this.position.fromRight?this.clientWidth-this.wrapperWidth:0},wrapperTop(){return(this.position.fromBottom?this.clientHeight-this.btnSize/2-this.position.y:this.position.y+this.btnSize/2)-this.wrapperHeight/2},wrapperClass(){return{"is-left":!this.position.fromRight,"is-right":this.position.fromRight,"is-dragging":this.dragging,"is-collapsed":this.collapsed}},wrapperHeight(){return this.collapsed?this.collapsedHeight:this.btnSize},wrapperStyle(){var e;return{left:`${this.wrapperLeft}px`,top:`${this.wrapperTop}px`,width:`${this.wrapperWidth}px`,height:`${this.wrapperHeight}px`,zIndex:((e=this.$parent)==null?void 0:e.topZIndex)||2e3}},btnClass(){return{"is-collapsed":this.collapsed}},btnStyle(){return this.collapsed?{transform:"translateX(0)"}:{transform:`translateX(${this.position.fromRight?-this.position.x:this.position.x}px)`}}},mounted(){this.loadPosition(),window.addEventListener("resize",this.onResize),x.on("openAIAssistantGlobal",this.onClick),x.on("aiAssistantClosed",this.onAssistantClosed),x.on("aiOperationRequest",this.onOperationRequest),x.on("aiAssistantFloatButtonVisibilityChanged",this.onVisibilityChanged),this.initOperationModule()},beforeDestroy(){window.removeEventListener("resize",this.onResize),x.off("openAIAssistantGlobal",this.onClick),x.off("aiAssistantClosed",this.onAssistantClosed),x.off("aiOperationRequest",this.onOperationRequest),x.off("aiAssistantFloatButtonVisibilityChanged",this.onVisibilityChanged),document.removeEventListener("mousemove",this.onMouseMove),document.removeEventListener("mouseup",this.onMouseUp),document.removeEventListener("contextmenu",this.onContextMenu),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd),document.removeEventListener("touchcancel",this.onTouchEnd),this.clearCollapseTimer(),this.destroyOperationModule()},watch:{userId:{handler(e){this.loadVisibility(e)},immediate:!0}},methods:{async loadVisibility(e){this.visibilityLoaded=!1;const s=await Nf(e);this.userId===e&&(this.floatButtonVisible=s,this.visibilityLoaded=e>0)},onVisibilityChanged({userId:e,visible:s}){this.userId===e&&(this.floatButtonVisible=s,this.visibilityLoaded=!0)},async loadPosition(){var e;try{const s=await $A.IDBString(this.cacheKey);if(s){const t=JSON.parse(s);if(t&&typeof t.x=="number"&&typeof t.y=="number"){this.position={...t,collapsed:(e=t.collapsed)!=null?e:!1},this.$nextTick(()=>{this.checkBounds(),this.positionLoaded=!0,this.scheduleCollapse()});return}}}catch{}this.position=this.windowPortrait?{x:12,y:Math.max(Math.round(this.clientHeight/4),100),fromRight:!0,fromBottom:!0,collapsed:!1}:{x:24,y:100,fromRight:!0,fromBottom:!0,collapsed:!1},this.positionLoaded=!0,this.scheduleCollapse()},savePosition(){$A.IDBSave(this.cacheKey,JSON.stringify(this.position))},updatePositionFromCoords(e,s){const t=e+this.btnSize/2,i=s+this.btnSize/2,n=t>=this.clientWidth/2,r=i>=this.clientHeight/2,o=n?this.clientWidth-this.btnSize-e:e,a=r?this.clientHeight-this.btnSize-s:s;this.position={x:o,y:a,fromRight:n,fromBottom:r,collapsed:this.position.collapsed}},onMouseDown(e){if(e.button!==0)return;if(this.clearCollapseTimer(),this.collapsed){this.onClick();return}const s=this.$refs.floatBtn.getBoundingClientRect();this.record={time:Date.now(),startLeft:s.left,startTop:s.top,offsetX:e.clientX-s.left,offsetY:e.clientY-s.top},this.dragging=!0,document.addEventListener("mousemove",this.onMouseMove),document.addEventListener("mouseup",this.onMouseUp),document.addEventListener("contextmenu",this.onContextMenu)},onContextMenu(){this.dragging&&this.onMouseUp()},onMouseMove(e){if(!this.dragging)return;const s=12;let t=e.clientX-this.record.offsetX,i=e.clientY-this.record.offsetY;t=Math.max(s,Math.min(t,this.clientWidth-this.btnSize-s)),i=Math.max(s,Math.min(i,this.clientHeight-this.btnSize-s)),this.updatePositionFromCoords(t,i)},onMouseUp(){document.removeEventListener("mousemove",this.onMouseMove),document.removeEventListener("mouseup",this.onMouseUp),document.removeEventListener("contextmenu",this.onContextMenu);const e=this.$refs.floatBtn.getBoundingClientRect(),s=Math.abs(e.left-this.record.startLeft)+Math.abs(e.top-this.record.startTop),t=Date.now()-this.record.time;this.savePosition(),this.dragging=!1,s<5&&t<200&&this.onClick(),this.scheduleCollapse()},onTouchStart(e){if(e.touches.length!==1)return;this.clearCollapseTimer();const s=e.touches[0],t=this.$refs.floatBtn.getBoundingClientRect();this.record={time:Date.now(),startLeft:t.left,startTop:t.top,offsetX:s.clientX-t.left,offsetY:s.clientY-t.top,startCollapsed:this.collapsed},this.dragging=!0,document.addEventListener("touchmove",this.onTouchMove,{passive:!1}),document.addEventListener("touchend",this.onTouchEnd),document.addEventListener("touchcancel",this.onTouchEnd)},onTouchMove(e){if(!this.dragging||e.touches.length!==1)return;e.preventDefault();const s=e.touches[0];this.position.collapsed&&(this.position.collapsed=!1);let t=s.clientX-this.record.offsetX,i=s.clientY-this.record.offsetY;const n=this.btnSize/3,r=this.btnSize-n;t=Math.max(-r,Math.min(t,this.clientWidth-n)),i=Math.max(-r,Math.min(i,this.clientHeight-n)),this.updatePositionFromCoords(t,i)},onTouchEnd(){if(document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd),document.removeEventListener("touchcancel",this.onTouchEnd),!this.dragging)return;const e=this.$refs.floatBtn.getBoundingClientRect(),s=Math.abs(e.left-this.record.startLeft)+Math.abs(e.top-this.record.startTop),t=Date.now()-this.record.time;if(this.dragging=!1,s<5&&t<200){this.record.startCollapsed?(this.position.collapsed=!1,this.position.x=12,this.scheduleCollapse()):this.onClick(),this.savePosition();return}this.position.x<12?this.position.collapsed=!0:(this.position.x=12,this.scheduleCollapse()),this.savePosition()},onMouseEnter(){this.clearCollapseTimer(),this.collapsed&&(this.position.collapsed=!1,this.savePosition())},onMouseLeave(){this.dragging||this.scheduleCollapse()},scheduleCollapse(){if(this.clearCollapseTimer(),this.windowPortrait||this.position.x<=this.collapseThreshold){const e=this.windowPortrait?this.collapseDelayMobile:this.collapseDelayDesktop;this.collapseTimer=setTimeout(()=>{this.position.collapsed=!0,this.savePosition()},e)}},clearCollapseTimer(){this.collapseTimer&&(clearTimeout(this.collapseTimer),this.collapseTimer=null)},checkBounds(){const s=this.clientWidth-this.btnSize-12,t=this.clientHeight-this.btnSize-12;this.position.x=Math.max(12,Math.min(this.position.x,s)),this.position.y=Math.max(12,Math.min(this.position.y,t))},onResize(){this.$nextTick(()=>{this.checkBounds()})},onClick(){this.enableOperationModule(),x.emit("openAIAssistant",{displayMode:"chat",sessionKey:"global",showApplyButton:!1,onDynamicSystem:()=>this.operationSessionId?`\u9875\u9762\u64CD\u4F5C\u4F1A\u8BDD operation_session_id=${this.operationSessionId}\u3002
-\u5F53\u8C03\u7528\u9700\u8981\u7ED1\u5B9A\u5F53\u524D\u9875\u9762\u64CD\u4F5C\u4F1A\u8BDD\u7684\u5DE5\u5177\u65F6\uFF0C\u4F20\u5165\u8BE5 ID\uFF1B\u666E\u901A\u56DE\u7B54\u4E0D\u8981\u63D0\u53CA\u5B83\uFF0C\u4E0D\u8981\u4FEE\u6539\u6216\u81C6\u9020\u5B83\u3002`:null})},onAssistantClosed(){this.disableOperationModule()},initOperationModule(){this.operationModule||(this.operationModule=Uf({store:this.$store,router:this.$router}))},enableOperationModule(){this.operationSessionId=$A.getSessionStorageString("userWsFd")||null},disableOperationModule(){this.operationSessionId=null},destroyOperationModule(){this.operationModule=null,this.operationSessionId=null},async onOperationRequest(e){const{requestId:s,action:t,payload:i}=e||{};if(!(!s||!t)){this.operationModule||this.initOperationModule();try{const n=await this.operationModule.handleRequest(t,i);this.$store.dispatch("websocketSend",{type:"operationResult",data:{requestId:s,success:!0,result:n}}).catch(r=>{})}catch(n){this.$store.dispatch("websocketSend",{type:"operationResult",data:{requestId:s,success:!1,error:(n==null?void 0:n.message)||"\u64CD\u4F5C\u6267\u884C\u5931\u8D25"}}).catch(r=>{})}}}}},Ii={};var Vf=A(Wf,Ff,Hf,!1,Yf,null,null,null);function Yf(e){for(let s in Ii)this[s]=Ii[s]}var qf=function(){return Vf.exports}(),Kf=function(){var e=this,s=e.$createElement,t=e._self._c||s;return e.displayMode==="chat"?t("div",{directives:[{name:"transfer-dom",rawName:"v-transfer-dom"}],attrs:{"data-transfer":!0}},[t("transition",{attrs:{name:"fade"}},[e.visible&&e.isMobile?t("div",{staticClass:"ai-assistant-chat-mask",style:{zIndex:e.zIndex-1}}):e._e()]),t("transition",{attrs:{name:"fade"}},[e.visible?t("div",{ref:"chatWindow",staticClass:"ai-assistant-chat",class:{"is-fullscreen":e.effectiveFullscreen,"is-mobile-fullscreen":e.isMobile},style:e.chatStyle},[e.isMobile?e._e():t("div",{staticClass:"ai-assistant-fullscreen",on:{click:e.toggleFullscreen}},[e.isFullscreen?t("svg",{attrs:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"}},[t("polyline",{attrs:{points:"4 10 10 10 10 4"}}),t("polyline",{attrs:{points:"14 4 14 10 20 10"}}),t("polyline",{attrs:{points:"10 20 10 14 4 14"}}),t("polyline",{attrs:{points:"20 14 14 14 14 20"}})]):t("svg",{attrs:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"}},[t("polyline",{attrs:{points:"5 9 5 5 9 5"}}),t("polyline",{attrs:{points:"19 9 19 5 15 5"}}),t("polyline",{attrs:{points:"5 15 5 19 9 19"}}),t("polyline",{attrs:{points:"19 15 19 19 15 19"}})])]),t("Icon",{staticClass:"ai-assistant-close",attrs:{type:"ios-close"},on:{click:e.onClose}}),t("div",{staticClass:"ai-assistant-drag-handle",on:{dblclick:e.toggleFullscreen,mousedown:function(i){return i.stopPropagation(),i.preventDefault(),e.onDragMouseDown.apply(null,arguments)}}},[e._t("header")],2),e._t("default"),e.effectiveFullscreen?e._e():[t("div",{staticClass:"ai-assistant-resize-handle ai-assistant-resize-n",on:{mousedown:function(i){return i.stopPropagation(),i.preventDefault(),e.onResizeMouseDown(i,"n")}}}),t("div",{staticClass:"ai-assistant-resize-handle ai-assistant-resize-s",on:{mousedown:function(i){return i.stopPropagation(),i.preventDefault(),e.onResizeMouseDown(i,"s")}}}),t("div",{staticClass:"ai-assistant-resize-handle ai-assistant-resize-e",on:{mousedown:function(i){return i.stopPropagation(),i.preventDefault(),e.onResizeMouseDown(i,"e")}}}),t("div",{staticClass:"ai-assistant-resize-handle ai-assistant-resize-w",on:{mousedown:function(i){return i.stopPropagation(),i.preventDefault(),e.onResizeMouseDown(i,"w")}}}),t("div",{staticClass:"ai-assistant-resize-handle ai-assistant-resize-ne",on:{mousedown:function(i){return i.stopPropagation(),i.preventDefault(),e.onResizeMouseDown(i,"ne")}}}),t("div",{staticClass:"ai-assistant-resize-handle ai-assistant-resize-nw",on:{mousedown:function(i){return i.stopPropagation(),i.preventDefault(),e.onResizeMouseDown(i,"nw")}}}),t("div",{staticClass:"ai-assistant-resize-handle ai-assistant-resize-se",on:{mousedown:function(i){return i.stopPropagation(),i.preventDefault(),e.onResizeMouseDown(i,"se")}}}),t("div",{staticClass:"ai-assistant-resize-handle ai-assistant-resize-sw",on:{mousedown:function(i){return i.stopPropagation(),i.preventDefault(),e.onResizeMouseDown(i,"sw")}}})]],2):e._e()]),t("Modal",{attrs:{mask:!1,"mask-closable":!1,"footer-hide":!0,"transition-names":["",""],beforeClose:e.onAssistClose,"class-name":"ai-assistant-assist"},model:{value:e.visible,callback:function(i){e.visible=i},expression:"visible"}})],1):t("Modal",{attrs:{width:e.shouldCreateNewSession?"440px":"600px","mask-closable":!1,"footer-hide":!0,"class-name":"ai-assistant-modal"},scopedSlots:e._u([{key:"header",fn:function(){return[e._t("header")]},proxy:!0}],null,!0),model:{value:e.visible,callback:function(i){e.visible=i},expression:"visible"}},[e._t("default")],2)},Gf=[];const Jf={name:"AssistantModal",directives:{TransferDom:dn},props:{value:{type:Boolean,default:!1},displayMode:{type:String,default:"modal"},shouldCreateNewSession:{type:Boolean,default:!1},zIndex:{type:Number,default:2e3}},data(){return{position:{x:24,y:24,fromRight:!0,fromBottom:!0},dragging:!1,positionLoaded:!1,cacheKey:"aiAssistant.chatPosition",sizeCacheKey:"aiAssistant.chatSize",windowSize:{width:460,height:600},customSize:{width:null,height:null},minSize:{width:380,height:400},maxSize:{width:800,height:900},record:{},resizing:!1,resizeDirection:null,resizeRecord:{},isFullscreen:!1}},computed:{visible:{get(){return this.value},set(e){this.$emit("input",e)}},clientWidth(){return this.windowWidth},clientHeight(){return this.windowHeight},isMobile(){return this.windowWidth<576},effectiveFullscreen(){return this.isFullscreen||this.isMobile},left(){return this.position.fromRight?this.clientWidth-this.windowSize.width-this.position.x:this.position.x},top(){return this.position.fromBottom?this.clientHeight-this.windowSize.height-this.position.y:this.position.y},chatStyle(){if(!this.positionLoaded)return{opacity:0,zIndex:this.zIndex};if(this.effectiveFullscreen)return{zIndex:this.zIndex};const e={left:`${this.left}px`,top:`${this.top}px`,zIndex:this.zIndex};return this.customSize.width&&(e.width=`${this.customSize.width}px`),this.customSize.height&&(e.height=`${this.customSize.height}px`),e}},watch:{visible(e){e&&this.displayMode==="chat"?this.$nextTick(()=>{this.updateWindowSize()}):e||(this.isFullscreen=!1)},windowWidth(){this.onViewportChange()},windowHeight(){this.onViewportChange()}},mounted(){this.loadSizeAndPosition(),document.addEventListener("keydown",this.onGlobalEscFullscreen,!0)},beforeDestroy(){document.removeEventListener("keydown",this.onGlobalEscFullscreen,!0),document.removeEventListener("mousemove",this.onDragMouseMove),document.removeEventListener("mouseup",this.onDragMouseUp),document.removeEventListener("mousemove",this.onResizeMouseMove),document.removeEventListener("mouseup",this.onResizeMouseUp),document.removeEventListener("contextmenu",this.onContextMenu)},methods:{updateWindowSize(){const e=this.$refs.chatWindow;e&&(this.windowSize={width:e.offsetWidth,height:e.offsetHeight})},async loadPosition(){try{const e=await $A.IDBString(this.cacheKey);if(e){const s=JSON.parse(e);if(s&&typeof s.x=="number"&&typeof s.y=="number"){this.position=s,this.$nextTick(()=>{this.checkBounds(),this.positionLoaded=!0});return}}}catch{}this.position={x:24,y:24,fromRight:!0,fromBottom:!0},this.positionLoaded=!0},savePosition(){$A.IDBSave(this.cacheKey,JSON.stringify(this.position))},updatePositionFromCoords(e,s){const t=e+this.windowSize.width/2,i=s+this.windowSize.height/2,n=t>=this.clientWidth/2,r=i>=this.clientHeight/2,o=n?this.clientWidth-this.windowSize.width-e:e,a=r?this.clientHeight-this.windowSize.height-s:s;this.position={x:o,y:a,fromRight:n,fromBottom:r}},onDragMouseDown(e){e.button!==0||this.effectiveFullscreen||(this.updateWindowSize(),this.record={offsetX:e.clientX-this.left,offsetY:e.clientY-this.top},this.dragging=!0,document.addEventListener("mousemove",this.onDragMouseMove),document.addEventListener("mouseup",this.onDragMouseUp),document.addEventListener("contextmenu",this.onContextMenu))},toggleFullscreen(){this.isMobile||(this.isFullscreen=!this.isFullscreen)},onContextMenu(){this.dragging&&this.onDragMouseUp(),this.resizing&&this.onResizeMouseUp()},onDragMouseMove(e){if(!this.dragging)return;const s=12;let t=e.clientX-this.record.offsetX,i=e.clientY-this.record.offsetY;t=Math.max(s,Math.min(t,this.clientWidth-this.windowSize.width-s)),i=Math.max(s,Math.min(i,this.clientHeight-this.windowSize.height-s)),this.updatePositionFromCoords(t,i)},onDragMouseUp(){document.removeEventListener("mousemove",this.onDragMouseMove),document.removeEventListener("mouseup",this.onDragMouseUp),document.removeEventListener("contextmenu",this.onContextMenu),this.savePosition(),this.dragging=!1},onResizeMouseDown(e,s){e.button===0&&(this.updateWindowSize(),this.resizeDirection=s,this.resizeRecord={startX:e.clientX,startY:e.clientY,startWidth:this.windowSize.width,startHeight:this.windowSize.height,startLeft:this.left,startTop:this.top},this.resizing=!0,document.addEventListener("mousemove",this.onResizeMouseMove),document.addEventListener("mouseup",this.onResizeMouseUp),document.addEventListener("contextmenu",this.onContextMenu))},onResizeMouseMove(e){if(!this.resizing)return;const s=this.resizeDirection,t=e.clientX-this.resizeRecord.startX,i=e.clientY-this.resizeRecord.startY;let n=this.resizeRecord.startWidth,r=this.resizeRecord.startHeight,o=this.resizeRecord.startLeft,a=this.resizeRecord.startTop;s.includes("e")&&(n=this.resizeRecord.startWidth+t),s.includes("w")&&(n=this.resizeRecord.startWidth-t,o=this.resizeRecord.startLeft+t),s.includes("s")&&(r=this.resizeRecord.startHeight+i),s.includes("n")&&(r=this.resizeRecord.startHeight-i,a=this.resizeRecord.startTop+i);const l=12,c=Math.min(this.maxSize.width,this.clientWidth-l*2),d=Math.min(this.maxSize.height,this.clientHeight-l*2);if(n=Math.max(this.minSize.width,Math.min(n,c)),r=Math.max(this.minSize.height,Math.min(r,d)),s.includes("w")){const h=n-this.resizeRecord.startWidth;o=this.resizeRecord.startLeft-h}if(s.includes("n")){const h=r-this.resizeRecord.startHeight;a=this.resizeRecord.startTop-h}o=Math.max(l,Math.min(o,this.clientWidth-n-l)),a=Math.max(l,Math.min(a,this.clientHeight-r-l)),this.customSize.width=n,this.customSize.height=r,this.windowSize.width=n,this.windowSize.height=r,this.updatePositionFromCoords(o,a)},onResizeMouseUp(){document.removeEventListener("mousemove",this.onResizeMouseMove),document.removeEventListener("mouseup",this.onResizeMouseUp),document.removeEventListener("contextmenu",this.onContextMenu),this.saveSize(),this.savePosition(),this.resizing=!1,this.resizeDirection=null},async loadSizeAndPosition(){await this.loadSize(),await this.loadPosition()},async loadSize(){try{const e=await $A.IDBString(this.sizeCacheKey);if(e){const s=JSON.parse(e);s&&typeof s.width=="number"&&typeof s.height=="number"&&(this.customSize={width:Math.max(this.minSize.width,Math.min(s.width,this.maxSize.width)),height:Math.max(this.minSize.height,Math.min(s.height,this.maxSize.height))},this.windowSize.width=this.customSize.width,this.windowSize.height=this.customSize.height)}}catch{}},saveSize(){this.customSize.width&&this.customSize.height&&$A.IDBSave(this.sizeCacheKey,JSON.stringify(this.customSize))},checkBounds(){const s=this.clientWidth-this.windowSize.width-12,t=this.clientHeight-this.windowSize.height-12;this.position.x=Math.max(12,Math.min(this.position.x,s)),this.position.y=Math.max(12,Math.min(this.position.y,t))},onViewportChange(){this.constrainSizeToScreen(),this.checkBounds()},constrainSizeToScreen(){const s=this.clientWidth-24,t=this.clientHeight-12*2;this.customSize.width&&this.customSize.width>s&&(this.customSize.width=Math.max(this.minSize.width,s),this.windowSize.width=this.customSize.width),this.customSize.height&&this.customSize.height>t&&(this.customSize.height=Math.max(this.minSize.height,t),this.windowSize.height=this.customSize.height)},onGlobalEscFullscreen(e){e.key!=="Escape"&&e.keyCode!==27||this.displayMode==="chat"&&this.visible&&this.isFullscreen&&(e.stopImmediatePropagation(),e.preventDefault(),this.isFullscreen=!1)},onAssistClose(){return new Promise(()=>{this.onClose()})},prepareForNavigate(){if(this.displayMode!=="chat"){this.$emit("input",!1);return}this.isMobile?this.$emit("input",!1):this.isFullscreen&&(this.isFullscreen=!1)},onClose(){this.$emit("input",!1)}}},Di={};var Qf=A(Jf,Kf,Gf,!1,Xf,null,null,null);function Xf(e){for(let s in Di)this[s]=Di[s]}var Zf=function(){return Qf.exports}(),em=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("span",{staticClass:"prompt-image-wrapper",on:{click:e.showPreview}},[e.imageUrl?t("img",{staticClass:"prompt-image-thumb",attrs:{src:e.imageUrl,alt:"uploaded image"}}):t("span",{staticClass:"prompt-image-placeholder"},[t("i",{staticClass:"taskfont"},[e._v("\uE6EF")])])])},tm=[];const sm={name:"PromptImage",props:{imageId:{type:String,required:!0},getImage:{type:Function,required:!0}},data(){return{imageUrl:null,loading:!0}},mounted(){this.loadImage()},methods:{async loadImage(){try{const e=await this.getImage(this.imageId);this.imageUrl=e}catch(e){console.warn("[PromptImage] \u52A0\u8F7D\u56FE\u7247\u5931\u8D25:",e)}finally{this.loading=!1}},showPreview(){this.imageUrl&&this.$store.dispatch("previewImage",this.imageUrl)}}},Ei={};var im=A(sm,em,tm,!1,nm,"52916529",null,null);function nm(e){for(let s in Ei)this[s]=Ei[s]}var rm=function(){return im.exports}();function om(e,s={}){const t=e.state.taskId;if(t>0)return Li(e,t);const i=e.state.dialogModalShow,n=e.state.dialogId;if(i&&n>0)return zt(e,n);switch(e.state.routeName){case"manage-dashboard":return te("dashboard","\u5DE5\u4F5C\u4EEA\u8868\u76D8");case"manage-project":return lm(e);case"manage-messenger":return cm(e);case"manage-calendar":return te("calendar","\u65E5\u5386\u9875");case"manage-file":return te("file-list","\u6587\u4EF6\u5217\u8868\u9875");case"single-task":case"single-task-content":return Li(e,s.taskId);case"single-dialog":return zt(e,s.dialogId);case"single-file":return Mi(s.codeOrFileId);case"single-file-task":return Mi(s.fileId);case"single-report-edit":return Pi(s.reportEditId,"\u5DE5\u4F5C\u6C47\u62A5\u7F16\u8F91");case"single-report-detail":return Pi(s.reportDetailId,"\u5DE5\u4F5C\u6C47\u62A5\u8BE6\u60C5");default:return null}}function am(e,s){if(!e)return"";const t=s?"[\u9875\u9762\u5207\u6362]":"[\u5F53\u524D\u9875\u9762]",i=[],n=e.entity;n&&(n.id!==void 0&&n.id!==null&&n.id!==""&&i.push(`${n.type}_id=${n.id}`),n.name&&i.push(`\u540D\u79F0:${n.name}`),n.dialogType&&i.push(`\u5BF9\u8BDD\u7C7B\u578B:${n.dialogType}`));const r=i.length?`(${i.join(",")})`:"";return`${t} ${e.pageLabel}${r}`}function te(e,s,t=null){return{contextKey:e,pageLabel:s,entity:t}}function Li(e,s){const t=Number(s);if(!t)return te("task","\u4EFB\u52A1\u8BE6\u60C5\u9875");const i=(e.state.cacheTasks||[]).find(n=>n.id===t);return te(`task:${t}`,"\u4EFB\u52A1\u8BE6\u60C5\u9875",{type:"task",id:t,name:(i==null?void 0:i.name)||""})}function zt(e,s){const t=Number(s);if(!t)return te("dialog","\u5BF9\u8BDD\u9875");const i=(e.state.cacheDialogs||[]).find(n=>n.id===t);return te(`dialog:${t}`,"\u5BF9\u8BDD\u9875",{type:"dialog",id:t,name:(i==null?void 0:i.name)||"",dialogType:um(i==null?void 0:i.type)})}function lm(e){const s=e.getters.projectData;return s!=null&&s.id?te(`project:${s.id}`,"\u9879\u76EE\u8BE6\u60C5\u9875",{type:"project",id:s.id,name:s.name||""}):te("project-list","\u9879\u76EE\u5217\u8868\u9875")}function cm(e){const s=e.state.dialogId;return s?zt(e,s):te("messenger","\u6D88\u606F\u5217\u8868\u9875")}function Mi(e){return e?te(`file:${e}`,"\u6587\u4EF6\u9875",{type:"file",id:e,name:""}):te("file","\u6587\u4EF6\u9875")}function Pi(e,s){return e?te(`report:${e}`,s,{type:"report",id:e,name:""}):te("report",s)}function um(e){return e?e==="group"?"\u7FA4\u804A":e==="user"?"\u79C1\u804A":String(e):""}const m={task:' ',list:' ',search:' ',calendar:' ',document:' ',plus:' ',message:' ',chart:' ',alert:' ',folder:' ',edit:' ',user:' ',send:' ',clock:' ',check:' ',flag:' ',clipboard:' ',link:' '};function dm(e){return typeof e=="string"?e:M&&M.includes("zh")?e.zh:e.en}const f={QUERY:"query",ACTION:"action",SYNC:"sync",REVIEW:"review"};function nt(e){const s=[...e];for(let t=s.length-1;t>0;t--){const i=Math.floor(Math.random()*(t+1));[s[t],s[i]]=[s[i],s[t]]}return s}function ji(e,s){if(e.length<=s)return e;const t=[...e];for(let i=0;i({text:dm(i.text),svg:i.svg}))}function hm(e,s){const t=Array.isArray(e)?e.filter(Boolean):[];if(t.length<=s)return nt(t);const i=[],n=new Set,r=t.filter(v=>v&&v.pin),o=t.filter(v=>!(v!=null&&v.pin)),a=Math.min(r.length,s);ji(nt(r),a).forEach(v=>{i.push(v),n.add(v)});let c=s-i.length;if(c<=0)return i;const d=new Set(i.map(v=>v.type).filter(Boolean)),h=o.filter(v=>!n.has(v)),u=new Map;if(h.forEach(v=>{const y=v.type||f.QUERY;u.has(y)||u.set(y,[]),u.get(y).push(v)}),nt(Array.from(u.keys()).filter(v=>!d.has(v))).forEach(v=>{if(c<=0)return;const y=u.get(v)||[];if(y.length===0)return;const w=y[Math.floor(Math.random()*y.length)];i.push(w),n.add(w),d.add(v),c--}),c<=0)return i;const g=h.filter(v=>!n.has(v)),_=ji(nt(g),c);return i.concat(_)}function pm(e,s={}){if(e.state.taskId>0)return Et(Lt());const i=e.state.dialogModalShow,n=e.state.dialogId;if(i&&n>0)return Et(Ri());const r=e.state.routeName,a={"manage-dashboard":fm,"manage-project":mm,"manage-messenger":gm,"manage-calendar":_m,"manage-file":vm,"single-task":Lt,"single-task-content":Lt,"single-dialog":Ri,"single-file":ym,"single-file-task":wm,"single-report-edit":$m,"single-report-detail":km}[r],l=a?a(e,s):bm(e);return Et(l)}function fm(e){const s=e.getters.dashboardTask||{},t=[],i=s.overdue_count||0,n=s.today_count||0,r=(s.today||[]).filter(a=>a.name),o=r.length>0?r[Math.floor(Math.random()*r.length)].name:null;return i>0&&t.push({text:{zh:`\u5217\u51FA\u6211\u7684 ${i} \u4E2A\u903E\u671F\u4EFB\u52A1`,en:`List my ${i} overdue tasks`},svg:m.alert,type:f.QUERY,pin:!0}),n>0&&t.push({text:{zh:"\u4ECA\u5929\u5230\u671F\u4EFB\u52A1\u6709\u54EA\u4E9B\uFF1F",en:"What tasks are due today?"},svg:m.calendar,type:f.QUERY,pin:!0}),t.push({text:{zh:"\u6309\u4F18\u5148\u7EA7\u6392\u4ECA\u5929\u4EFB\u52A1",en:"Prioritize my tasks for today"},svg:m.flag,type:f.ACTION},{text:{zh:"\u6C47\u603B\u903E\u671F\u4EFB\u52A1\u5E76\u7ED9\u65B9\u6848",en:"Summarize overdue tasks with actions"},svg:m.alert,type:f.REVIEW},{text:{zh:"\u672C\u5468\u5230\u671F\u4EFB\u52A1\u6709\u54EA\u4E9B\uFF1F",en:"What tasks are due this week?"},svg:m.list,type:f.QUERY},{text:{zh:"\u627E\u51FA\u6700\u8FD1\u505C\u6EDE\u7684\u4EFB\u52A1",en:"Find recently stalled tasks"},svg:m.alert,type:f.REVIEW},{text:{zh:"\u54EA\u4E9B\u4EFB\u52A1\u7F3A\u8D1F\u8D23\u4EBA\u6216\u622A\u6B62\uFF1F",en:"Which tasks lack owner or due date?"},svg:m.edit,type:f.REVIEW},{text:{zh:"\u6211\u9700\u8981\u534F\u52A9\u7684\u4EFB\u52A1\u6E05\u5355",en:"Tasks that need my assistance"},svg:m.user,type:f.QUERY},{text:{zh:"\u751F\u6210\u4ECA\u65E5\u5DE5\u4F5C\u540C\u6B65\u6587\u6848",en:"Draft today status update"},svg:m.message,type:f.SYNC},{text:{zh:"\u751F\u6210\u672C\u5468\u5468\u62A5\u8349\u7A3F",en:"Generate weekly report draft"},svg:m.document,type:f.SYNC},{text:{zh:"\u6309\u9879\u76EE\u6C47\u603B\u672A\u5B8C\u6210\u4EFB\u52A1",en:"Summarize my pending tasks by project"},svg:m.folder,type:f.QUERY},{text:{zh:"\u672A\u67657\u5929\u5230\u671F\u4EFB\u52A1\u6E05\u5355",en:"Tasks due in the next 7 days"},svg:m.calendar,type:f.QUERY},{text:{zh:"\u672C\u5468\u5DF2\u5B8C\u6210\u4EFB\u52A1\u56DE\u987E",en:"Review tasks completed this week"},svg:m.clipboard,type:f.REVIEW},{text:{zh:"\u627E\u51FA\u65E0\u63CF\u8FF0\u7684\u4EFB\u52A1",en:"Find tasks missing descriptions"},svg:m.edit,type:f.REVIEW},{text:{zh:"\u5B50\u4EFB\u52A1\u672A\u5B8C\u6210\u7684\u4E3B\u4EFB\u52A1",en:"Parent tasks with incomplete subtasks"},svg:m.task,type:f.REVIEW},{text:{zh:"\u641C\u7D22\u201C\u98CE\u9669/\u5EF6\u671F/\u963B\u585E\u201D",en:"Search \u201Crisk/delay/blocker\u201D"},svg:m.search,type:f.QUERY},{text:{zh:"\u5E2E\u6211\u5217\u51FA\u4ECA\u59293\u4E2A\u76EE\u6807",en:"List my 3 key goals for today"},svg:m.flag,type:f.ACTION},o?{text:{zh:`\u603B\u7ED3\u300C${o}\u300D\u7684\u8FDB\u5C55`,en:`Summarize progress of "${o}"`},svg:m.clipboard,type:f.REVIEW}:null,{text:{zh:"\u751F\u6210\u7ED9\u8001\u677F\u7684\u7B80\u77ED\u8FDB\u5EA6",en:"Draft a short status update for my manager"},svg:m.send,type:f.SYNC}),t.filter(Boolean)}function mm(e){return(e.getters.projectData||{}).id?[{text:{zh:"\u9879\u76EE\u672A\u5B8C\u6210\u4EFB\u52A1\u6E05\u5355",en:"List incomplete tasks in this project"},svg:m.list,type:f.QUERY},{text:{zh:"\u9879\u76EE\u903E\u671F\u4EFB\u52A1\u4E0E\u539F\u56E0\u6982\u89C8",en:"Overdue tasks & reasons overview"},svg:m.alert,type:f.REVIEW},{text:{zh:"\u67E5\u770B\u9879\u76EE\u770B\u677F\u5217\u914D\u7F6E",en:"View board columns configuration"},svg:m.list,type:f.QUERY},{text:{zh:"\u6210\u5458\u8D1F\u8F7D\u4E0E\u5206\u914D\u5EFA\u8BAE",en:"Member workload & assignment suggestions"},svg:m.chart,type:f.REVIEW},{text:{zh:"\u521B\u5EFA\u4EFB\u52A1\u5E76\u6307\u6D3E\u8D1F\u8D23\u4EBA",en:"Create a task and assign an owner"},svg:m.plus,type:f.ACTION},{text:{zh:"\u628A\u9700\u6C42\u62C6\u6210\u53EF\u6267\u884C\u4EFB\u52A1",en:"Break a requirement into tasks"},svg:m.edit,type:f.ACTION},{text:{zh:"\u6C47\u603B\u9879\u76EE\u98CE\u9669\u4E0E\u963B\u585E\u9879",en:"Summarize risks and blockers"},svg:m.alert,type:f.REVIEW},{text:{zh:"\u751F\u6210\u672C\u5468\u9879\u76EE\u63A8\u8FDB\u7B80\u62A5",en:"Generate this week project update"},svg:m.document,type:f.SYNC},{text:{zh:"\u641C\u7D22\u9879\u76EE\u76F8\u5173\u8D44\u6599",en:"Search project related docs"},svg:m.search,type:f.QUERY},{text:{zh:"\u67E5\u770B\u9879\u76EE\u6210\u5458\u5217\u8868\u4E0E\u89D2\u8272",en:"View project members and roles"},svg:m.user,type:f.QUERY},{text:{zh:"\u672C\u9879\u76EE\u672C\u5468\u5230\u671F\u4EFB\u52A1",en:"Tasks due this week in this project"},svg:m.calendar,type:f.QUERY},{text:{zh:"\u672C\u9879\u76EE\u7F3A\u8D1F\u8D23\u4EBA\u4EFB\u52A1",en:"Tasks missing an owner in this project"},svg:m.user,type:f.REVIEW},{text:{zh:"\u672C\u9879\u76EE\u65E0\u622A\u6B62\u4EFB\u52A1",en:"Tasks without due date in this project"},svg:m.clock,type:f.REVIEW},{text:{zh:"\u6309\u770B\u677F\u5217\u7EDF\u8BA1\u4EFB\u52A1\u91CF",en:"Task counts by board column"},svg:m.chart,type:f.REVIEW},{text:{zh:"\u6309\u6210\u5458\u7EDF\u8BA1\u4EFB\u52A1\u8D1F\u8F7D",en:"Task workload by member"},svg:m.chart,type:f.REVIEW},{text:{zh:"\u4F18\u5316\u9879\u76EE\u63CF\u8FF0\u4E0E\u76EE\u6807",en:"Improve project description and goals"},svg:m.edit,type:f.ACTION},{text:{zh:"\u751F\u6210\u9879\u76EE\u98CE\u9669\u63D0\u9192\u6587\u6848",en:"Draft a project risk reminder"},svg:m.message,type:f.SYNC},{text:{zh:"\u628A\u903E\u671F\u4EFB\u52A1\u6574\u7406\u6210\u8DDF\u8FDB\u6E05\u5355",en:"Turn overdue tasks into a follow-up checklist"},svg:m.clipboard,type:f.ACTION},{text:{zh:"\u751F\u6210\u9879\u76EE\u5468\u4F1A\u540C\u6B65\u7A3F",en:"Draft a weekly project meeting update"},svg:m.clipboard,type:f.SYNC}]:[{text:{zh:"\u6211\u53C2\u4E0E\u7684\u9879\u76EE\u6709\u54EA\u4E9B\uFF1F",en:"Which projects am I involved in?"},svg:m.folder,type:f.QUERY},{text:{zh:"\u6309\u5173\u952E\u8BCD\u641C\u7D22\u9879\u76EE",en:"Search projects by keyword"},svg:m.search,type:f.QUERY},{text:{zh:"\u54EA\u4E9B\u9879\u76EE\u903E\u671F\u6700\u4E25\u91CD\uFF1F",en:"Which projects have the most overdue tasks?"},svg:m.alert,type:f.REVIEW},{text:{zh:"\u5BF9\u6BD4\u9879\u76EE\u5065\u5EB7\u5EA6",en:"Compare project health"},svg:m.chart,type:f.REVIEW},{text:{zh:"\u751F\u6210\u9879\u76EE\u6982\u89C8\u7B80\u62A5",en:"Generate a project overview brief"},svg:m.document,type:f.SYNC},{text:{zh:"\u5E2E\u6211\u521B\u5EFA\u4E00\u4E2A\u65B0\u9879\u76EE",en:"Help me create a new project"},svg:m.plus,type:f.ACTION},{text:{zh:"\u67E5\u770B\u6211\u8D1F\u8D23\u7684\u9879\u76EE",en:"List projects I own"},svg:m.user,type:f.QUERY},{text:{zh:"\u67E5\u770B\u5DF2\u5F52\u6863\u9879\u76EE",en:"View archived projects"},svg:m.folder,type:f.QUERY},{text:{zh:"\u521B\u5EFA\u4E2A\u4EBA\u9879\u76EE\uFF08\u4E2A\u4EBA\u5F85\u529E\uFF09",en:"Create a personal project (personal to-dos)"},svg:m.plus,type:f.ACTION},{text:{zh:"\u65B0\u5EFA\u9879\u76EE\u5E76\u8BBE\u7F6E\u770B\u677F\u5217",en:"Create a project with default columns"},svg:m.plus,type:f.ACTION},{text:{zh:"\u751F\u6210\u672C\u5468\u9879\u76EE\u5468\u4F1A\u63D0\u7EB2",en:"Generate weekly project meeting outline"},svg:m.clipboard,type:f.SYNC},{text:{zh:"\u627E\u51FA\u6700\u4E45\u672A\u66F4\u65B0\u9879\u76EE",en:"Find least recently updated projects"},svg:m.alert,type:f.REVIEW}]}function gm(e){const s=e.state.dialogId,t=e.state.cacheDialogs||[],i=t.find(l=>l.id===s),n=t.filter(l=>l.type==="user"&&l.name&&!l.bot),r=n.length>0?n[Math.floor(Math.random()*n.length)].name:null,o=t.filter(l=>l.type==="group"&&l.name),a=o.length>0?o[Math.floor(Math.random()*o.length)].name:null;return i?[{text:{zh:"\u603B\u7ED3\u8FD1\u671F\u5BF9\u8BDD\u8981\u70B9\u4E0E\u7ED3\u8BBA",en:"Summarize recent chat highlights"},svg:m.document,type:f.REVIEW},{text:{zh:"\u63D0\u53D6\u5BF9\u8BDD\u5F85\u529E\u5E76\u5EFA\u4EFB\u52A1",en:"Extract to-dos and create tasks"},svg:m.task,type:f.ACTION},{text:{zh:"\u5217\u51FA\u5BF9\u8BDD\u91CC\u7684\u6587\u4EF6\u4E0E\u94FE\u63A5",en:"List files and links in this chat"},svg:m.link,type:f.QUERY},{text:{zh:"\u641C\u7D22\u5BF9\u8BDD\u5173\u952E\u8BCD\u5E76\u6458\u8981",en:"Search chat keyword with context"},svg:m.search,type:f.QUERY},{text:{zh:"\u7ED9\u6211\u4E09\u79CD\u63A8\u8FDB\u56DE\u590D\u7248\u672C",en:"Give 3 reply options to move forward"},svg:m.message,type:f.SYNC},{text:{zh:"\u751F\u6210\u4F1A\u8BAE\u7EAA\u8981\uFF08\u53EF\u76F4\u63A5\u53D1\uFF09",en:"Generate meeting notes to send"},svg:m.clipboard,type:f.SYNC},{text:{zh:"\u5217\u51FA\u672C\u5BF9\u8BDD\u5F85\u529E\uFF08TODO\uFF09",en:"List to-dos in this chat"},svg:m.clipboard,type:f.QUERY},{text:{zh:"\u5217\u51FA\u672C\u5BF9\u8BDD\u6587\u4EF6\uFF08File\uFF09",en:"List files in this chat"},svg:m.folder,type:f.QUERY},{text:{zh:"\u5217\u51FA\u672C\u5BF9\u8BDD\u4F1A\u8BAE\u7EAA\u8981",en:"List meeting notes in this chat"},svg:m.clipboard,type:f.REVIEW},{text:{zh:"\u628A\u884C\u52A8\u6E05\u5355\u53D1\u5230\u5BF9\u8BDD",en:"Send action list to this chat"},svg:m.send,type:f.SYNC},{text:{zh:"\u751F\u6210\u5F85\u786E\u8BA4\u95EE\u9898\u6E05\u5355",en:"Generate questions to confirm"},svg:m.alert,type:f.SYNC},{text:{zh:"\u8BC6\u522B\u672A\u51B3\u95EE\u9898\u5E76\u7ED9\u63A8\u8FDB\u8BDD\u672F",en:"Find open issues and draft follow-ups"},svg:m.message,type:f.SYNC},{text:{zh:"\u628A\u5F85\u529E\u5EFA\u4EFB\u52A1\u5E76\u5EFA\u8BAE\u8D1F\u8D23\u4EBA",en:"Create tasks from to-dos with owner suggestions"},svg:m.task,type:f.ACTION},{text:{zh:"\u56DE\u987E\u672C\u5BF9\u8BDD\u5173\u952E\u51B3\u5B9A",en:"Review key decisions in this chat"},svg:m.clipboard,type:f.REVIEW}]:[{text:{zh:"\u6309\u540D\u79F0\u627E\u5BF9\u8BDD",en:"Find a chat by name"},svg:m.search,type:f.QUERY},{text:{zh:"\u6309\u540D\u5B57/\u90AE\u7BB1\u627E\u4EBA",en:"Find a person by name/email"},svg:m.user,type:f.QUERY},{text:r?{zh:`\u7ED9 ${r} \u53D1\u9001\u4E00\u6761\u6D88\u606F`,en:`Send a message to ${r}`}:{zh:"\u7ED9\u67D0\u4EBA\u53D1\u9001\u4E00\u6761\u6D88\u606F",en:"Send a message to someone"},svg:m.send,type:f.ACTION},{text:{zh:"\u641C\u7D22\u5173\u952E\u8BCD\u6D88\u606F",en:"Search messages by keyword"},svg:m.search,type:f.QUERY},{text:{zh:"\u751F\u6210\u793C\u8C8C\u50AC\u529E\u8BDD\u672F",en:"Draft a polite follow-up message"},svg:m.edit,type:f.SYNC},{text:{zh:"\u751F\u6210\u8FDB\u5EA6\u540C\u6B65\u6587\u6848",en:"Draft a progress update message"},svg:m.document,type:f.SYNC},r?{text:{zh:`\u56DE\u987E\u4E0E ${r} \u6700\u8FD1\u5BF9\u8BDD\u8981\u70B9`,en:`Review highlights with ${r}`},svg:m.clipboard,type:f.REVIEW}:null,r?{text:{zh:`\u628A\u4E0E ${r} \u804A\u5929\u6574\u7406\u6210\u5F85\u529E`,en:`Turn chat with ${r} into to-dos`},svg:m.clipboard,type:f.ACTION}:null,r?{text:{zh:`\u7ED9 ${r} \u5199\u786E\u8BA4\u53E3\u5F84`,en:`Draft a confirmation message to ${r}`},svg:m.message,type:f.SYNC}:null,r?{text:{zh:`\u7ED9 ${r} \u5199\u50AC\u529E\u6D88\u606F\uFF08\u59D4\u5A49\u7248\uFF09`,en:`Draft a gentle follow-up to ${r}`},svg:m.edit,type:f.SYNC}:null,a?{text:{zh:`\u7ED9\u300C${a}\u300D\u53D1\u8FDB\u5EA6\u540C\u6B65`,en:`Send a progress update to "${a}"`},svg:m.send,type:f.SYNC}:null,{text:{zh:"\u641C\u7D22\u4F1A\u8BAE\u7EAA\u8981\u6D88\u606F",en:"Search meeting notes messages"},svg:m.search,type:f.QUERY},{text:{zh:"\u641C\u7D22\u5F85\u529E\u76F8\u5173\u6D88\u606F",en:"Search to-do related messages"},svg:m.search,type:f.QUERY},{text:{zh:"\u6574\u7406\u6700\u8FD1\u6C9F\u901A\u5F85\u529E",en:"Summarize my recent communication to-dos"},svg:m.clipboard,type:f.REVIEW}].filter(Boolean)}function _m(){return[{text:{zh:"\u4ECA\u5929\u5230\u671F\u4EFB\u52A1\u6E05\u5355",en:"Tasks due today"},svg:m.calendar,type:f.QUERY},{text:{zh:"\u672C\u5468\u5230\u671F\u4EFB\u52A1\u6E05\u5355",en:"Tasks due this week"},svg:m.list,type:f.QUERY},{text:{zh:"\u4E0B\u5468\u4EFB\u52A1\u5B89\u6392\u5EFA\u8BAE",en:"Suggestions for next week plan"},svg:m.clock,type:f.ACTION},{text:{zh:"\u622A\u6B62\u65E5\u671F\u51B2\u7A81\u6392\u67E5",en:"Check due-date conflicts"},svg:m.alert,type:f.REVIEW},{text:{zh:"\u903E\u671F\u4EFB\u52A1\u600E\u4E48\u91CD\u6392\u671F",en:"Reschedule overdue tasks"},svg:m.calendar,type:f.ACTION},{text:{zh:"\u672A\u6765\u4E24\u5468\u98CE\u9669\u9884\u8B66\u70B9",en:"Risks in the next two weeks"},svg:m.alert,type:f.REVIEW},{text:{zh:"\u751F\u6210\u4E0B\u5468\u5DE5\u4F5C\u8BA1\u5212\u8349\u6848",en:"Draft next week work plan"},svg:m.document,type:f.SYNC},{text:{zh:"\u672C\u6708\u4EFB\u52A1\u6982\u89C8\uFF08\u5230\u671F/\u5B8C\u6210\uFF09",en:"Monthly task overview (due/completed)"},svg:m.chart,type:f.REVIEW},{text:{zh:"\u672A\u676530\u5929\u5230\u671F\u4EFB\u52A1",en:"Tasks due in the next 30 days"},svg:m.calendar,type:f.QUERY},{text:{zh:"\u672C\u5468\u6BCF\u5929\u8BE5\u505A\u4EC0\u4E48\uFF08\u65F6\u95F4\u5757\uFF09",en:"Daily plan suggestion for this week"},svg:m.clock,type:f.ACTION},{text:{zh:"\u627E\u51FA\u540C\u4E00\u5929\u4EFB\u52A1\u8FC7\u591A\u7684\u65E5\u671F",en:"Find days with too many tasks"},svg:m.alert,type:f.REVIEW},{text:{zh:"\u751F\u6210\u5468\u8BA1\u5212\u540C\u6B65\u7ED9\u56E2\u961F",en:"Draft weekly plan update to the team"},svg:m.send,type:f.SYNC},{text:{zh:"\u641C\u7D22\u201C\u4E0B\u5468\u201D\u76F8\u5173\u4EFB\u52A1\u6D88\u606F",en:"Search \u201Cnext week\u201D in tasks/messages"},svg:m.search,type:f.QUERY}]}function vm(e){const t=((e.getters.dashboardTask||{}).today||[]).filter(n=>n.name),i=t.length>0?t[Math.floor(Math.random()*t.length)].name:null;return[{text:{zh:"\u641C\u7D22\u6587\u4EF6\uFF08\u540D\u79F0/\u5173\u952E\u8BCD\uFF09",en:"Search files by name/keyword"},svg:m.search,type:f.QUERY},{text:{zh:"\u67E5\u770B\u5171\u4EAB\u6587\u4EF6\u5217\u8868",en:"View shared files"},svg:m.folder,type:f.QUERY},{text:i?{zh:`\u67E5\u627E\u300C${i}\u300D\u7684\u9644\u4EF6`,en:`Find attachments of "${i}"`}:{zh:"\u67E5\u627E\u67D0\u4E2A\u4EFB\u52A1\u7684\u9644\u4EF6",en:"Find attachments of a task"},svg:m.task,type:f.QUERY},{text:{zh:"\u9605\u8BFB\u6587\u4EF6\u5E76\u603B\u7ED3\u8981\u70B9",en:"Read a file and summarize"},svg:m.document,type:f.REVIEW},{text:{zh:"\u4ECE\u6587\u4EF6\u63D0\u53D6\u884C\u52A8\u9879\u6E05\u5355",en:"Extract action items from files"},svg:m.clipboard,type:f.ACTION},{text:{zh:"\u751F\u6210\u6587\u4EF6\u8F6C\u53D1\u8BF4\u660E\u6587\u6848",en:"Draft a file sharing note"},svg:m.send,type:f.SYNC},{text:{zh:"\u641C\u7D22\u9879\u76EE\u76F8\u5173\u8D44\u6599",en:"Search project related docs"},svg:m.search,type:f.QUERY},{text:{zh:"\u641C\u7D22\u201C\u9700\u6C42/PRD/\u65B9\u6848\u201D\u6587\u4EF6",en:"Search \u201CPRD/spec/design\u201D files"},svg:m.search,type:f.QUERY},{text:{zh:"\u641C\u7D22\u201C\u4F1A\u8BAE\u7EAA\u8981/\u590D\u76D8\u201D\u6587\u4EF6",en:"Search meeting notes/retrospective files"},svg:m.search,type:f.QUERY},{text:{zh:"\u5BF9\u6BD4\u4E24\u4EFD\u76F8\u4F3C\u6587\u4EF6\u5DEE\u5F02",en:"Compare differences between similar files"},svg:m.document,type:f.REVIEW},{text:{zh:"\u628A\u6587\u4EF6\u8981\u70B9\u5199\u6210\u4EFB\u52A1\u63CF\u8FF0",en:"Turn file highlights into a task description"},svg:m.edit,type:f.ACTION},{text:{zh:"\u4ECE\u6587\u4EF6\u63D0\u53D6\u98CE\u9669\u4E0E\u5F85\u786E\u8BA4\u70B9",en:"Extract risks and questions to confirm"},svg:m.alert,type:f.REVIEW},i?{text:{zh:`\u627E\u4E0E\u300C${i}\u300D\u76F8\u5173\u7684\u6587\u4EF6`,en:`Find files related to "${i}"`},svg:m.search,type:f.QUERY}:null].filter(Boolean)}function Lt(){return[{text:{zh:"\u8865\u5168\u4EFB\u52A1\u4FE1\u606F\u4E0E\u9A8C\u6536\u6807\u51C6",en:"Fill task details and acceptance criteria"},svg:m.edit,type:f.ACTION},{text:{zh:"\u628A\u4EFB\u52A1\u62C6\u6210\u5B50\u4EFB\u52A1\u6E05\u5355",en:"Break down into subtasks"},svg:m.list,type:f.ACTION},{text:{zh:"\u7ACB\u523B\u6DFB\u52A0\u4E00\u4E2A\u5B50\u4EFB\u52A1",en:"Add a subtask now"},svg:m.plus,type:f.ACTION},{text:{zh:"\u8C03\u6574\u8D1F\u8D23\u4EBA/\u534F\u52A9\u4EBA",en:"Adjust owner/assignees"},svg:m.user,type:f.ACTION},{text:{zh:"\u4FEE\u6539\u5F00\u59CB\u4E0E\u622A\u6B62\u65F6\u95F4",en:"Change start and due dates"},svg:m.clock,type:f.ACTION},{text:{zh:"\u628A\u4EFB\u52A1\u79FB\u52A8\u5230\u770B\u677F\u5217",en:"Move task to a board column"},svg:m.list,type:f.ACTION},{text:{zh:"\u5C06\u4EFB\u52A1\u6807\u8BB0\u4E3A\u5B8C\u6210",en:"Mark this task as complete"},svg:m.check,type:f.ACTION},{text:{zh:"\u751F\u6210\u4EFB\u52A1\u8FDB\u5C55\u540C\u6B65\u6587\u6848",en:"Draft a task progress update"},svg:m.message,type:f.SYNC},{text:{zh:"\u67E5\u770B\u8FD9\u4E2A\u4EFB\u52A1\u7684\u9644\u4EF6\u5217\u8868",en:"View task attachments"},svg:m.folder,type:f.QUERY},{text:{zh:"\u67E5\u770B\u5B50\u4EFB\u52A1\u8FDB\u5EA6\u4E0E\u5B8C\u6210\u7387",en:"View subtask progress and completion rate"},svg:m.chart,type:f.REVIEW},{text:{zh:"\u64A4\u9500\u5DF2\u5B8C\u6210\u72B6\u6001",en:"Undo completion status"},svg:m.alert,type:f.ACTION},{text:{zh:"\u6574\u7406\u4EFB\u52A1\u63CF\u8FF0\u4E3A\u8981\u70B9\u7248",en:"Rewrite task description into key points"},svg:m.clipboard,type:f.REVIEW},{text:{zh:"\u751F\u6210\u9A8C\u6536\u68C0\u67E5\u6E05\u5355",en:"Generate acceptance checklist"},svg:m.check,type:f.REVIEW},{text:{zh:"\u57FA\u4E8E\u4EFB\u52A1\u5199\u4E00\u6761\u50AC\u529E\u6D88\u606F",en:"Draft a follow-up message for this task"},svg:m.send,type:f.SYNC},{text:{zh:"\u641C\u7D22\u4E0E\u8BE5\u4EFB\u52A1\u76F8\u5173\u8D44\u6599",en:"Search docs/messages related to this task"},svg:m.search,type:f.QUERY}]}function Ri(){return[{text:{zh:"\u603B\u7ED3\u5BF9\u8BDD\u91CD\u70B9\u4E0E\u5F85\u529E",en:"Summarize highlights and to-dos"},svg:m.document,type:f.REVIEW},{text:{zh:"\u63D0\u53D6\u5F85\u529E\u5E76\u521B\u5EFA\u4EFB\u52A1",en:"Extract to-dos and create tasks"},svg:m.task,type:f.ACTION},{text:{zh:"\u5217\u51FA\u5BF9\u8BDD\u4E2D\u7684\u6587\u4EF6",en:"List files in this chat"},svg:m.folder,type:f.QUERY},{text:{zh:"\u5E2E\u6211\u5199\u63A8\u8FDB\u56DE\u590D",en:"Draft a reply to move forward"},svg:m.message,type:f.SYNC},{text:{zh:"\u751F\u6210\u5BF9\u8BDD\u7EAA\u8981\u6458\u8981",en:"Generate chat summary notes"},svg:m.clipboard,type:f.SYNC},{text:{zh:"\u641C\u7D22\u5BF9\u8BDD\u5173\u952E\u8BCD\u5E76\u7ED3\u8BBA",en:"Search keyword and summarize findings"},svg:m.search,type:f.QUERY},{text:{zh:"\u5217\u51FA\u672C\u5BF9\u8BDD\u5F85\u529E\uFF08TODO\uFF09",en:"List to-dos in this chat"},svg:m.clipboard,type:f.QUERY},{text:{zh:"\u5217\u51FA\u672C\u5BF9\u8BDD\u4F1A\u8BAE\u7EAA\u8981",en:"List meeting notes in this chat"},svg:m.clipboard,type:f.REVIEW},{text:{zh:"\u628A\u884C\u52A8\u6E05\u5355\u53D1\u5230\u5BF9\u8BDD",en:"Send action list to this chat"},svg:m.send,type:f.SYNC},{text:{zh:"\u751F\u6210\u5F85\u786E\u8BA4\u95EE\u9898\u6E05\u5355",en:"Generate questions to confirm"},svg:m.alert,type:f.SYNC},{text:{zh:"\u628A\u5F85\u529E\u5EFA\u4EFB\u52A1\u5E76\u5EFA\u8BAE\u8D1F\u8D23\u4EBA",en:"Create tasks from to-dos with owner suggestions"},svg:m.task,type:f.ACTION}]}function ym(){return[{text:{zh:"\u603B\u7ED3\u6587\u4EF6\u8981\u70B9\u4E0E\u7ED3\u8BBA",en:"Summarize key points and conclusions"},svg:m.document,type:f.REVIEW},{text:{zh:"\u4ECE\u6587\u4EF6\u63D0\u53D6\u4EFB\u52A1\u6E05\u5355",en:"Extract tasks from this file"},svg:m.task,type:f.ACTION},{text:{zh:"\u751F\u6210\u6587\u4EF6\u5206\u4EAB\u8BF4\u660E",en:"Draft a file sharing note"},svg:m.send,type:f.SYNC},{text:{zh:"\u641C\u7D22\u76F8\u4F3C\u6587\u4EF6\u5E76\u5BF9\u6BD4",en:"Find similar files and compare"},svg:m.search,type:f.REVIEW},{text:{zh:"\u67E5\u627E\u5173\u8054\u7684\u4EFB\u52A1/\u9879\u76EE",en:"Find related tasks/projects"},svg:m.list,type:f.QUERY},{text:{zh:"\u5217\u51FA\u9700\u8981\u786E\u8BA4\u7684\u95EE\u9898",en:"List questions to clarify"},svg:m.alert,type:f.REVIEW},{text:{zh:"\u67E5\u770B\u6587\u4EF6\u8BE6\u60C5\uFF08\u5927\u5C0F/\u6765\u6E90\uFF09",en:"View file details (size/source)"},svg:m.document,type:f.QUERY},{text:{zh:"\u63D0\u53D6\u5173\u952E\u6BB5\u843D\u6458\u8981",en:"Extract key paragraphs summary"},svg:m.clipboard,type:f.REVIEW},{text:{zh:"\u4ECE\u6587\u4EF6\u63D0\u53D6\u98CE\u9669\u4E0E\u5F85\u786E\u8BA4\u70B9",en:"Extract risks and questions to confirm"},svg:m.alert,type:f.REVIEW},{text:{zh:"\u628A\u6587\u4EF6\u5185\u5BB9\u5199\u6210\u6C47\u62A5\u7D20\u6750",en:"Turn file content into report material"},svg:m.document,type:f.SYNC},{text:{zh:"\u641C\u7D22\u4E0E\u8BE5\u6587\u4EF6\u76F8\u5173\u7684\u6D88\u606F",en:"Search messages related to this file"},svg:m.search,type:f.QUERY}]}function wm(){return[{text:{zh:"\u67E5\u770B\u8BE5\u4EFB\u52A1\u5168\u90E8\u9644\u4EF6",en:"View all attachments"},svg:m.folder,type:f.QUERY},{text:{zh:"\u603B\u7ED3\u9644\u4EF6\u8981\u70B9\u4E0E\u98CE\u9669",en:"Summarize attachment highlights and risks"},svg:m.document,type:f.REVIEW},{text:{zh:"\u4ECE\u9644\u4EF6\u63D0\u53D6\u884C\u52A8\u9879",en:"Extract action items from attachments"},svg:m.clipboard,type:f.ACTION},{text:{zh:"\u7528\u9644\u4EF6\u5185\u5BB9\u5B8C\u5584\u4EFB\u52A1\u63CF\u8FF0",en:"Improve task description from attachments"},svg:m.edit,type:f.ACTION},{text:{zh:"\u751F\u6210\u9A8C\u6536\u68C0\u67E5\u6E05\u5355",en:"Generate acceptance checklist"},svg:m.check,type:f.REVIEW},{text:{zh:"\u57FA\u4E8E\u9644\u4EF6\u62C6\u5206\u5B50\u4EFB\u52A1",en:"Create subtasks based on attachments"},svg:m.plus,type:f.ACTION},{text:{zh:"\u628A\u9644\u4EF6\u6458\u8981\u5199\u5165\u4EFB\u52A1\u63CF\u8FF0",en:"Write attachment summary into task description"},svg:m.edit,type:f.ACTION},{text:{zh:"\u9644\u4EF6\u5185\u5BB9\u751F\u6210\u5B50\u4EFB\u52A1\u5E76\u6392\u5E8F",en:"Generate and prioritize subtasks from attachments"},svg:m.list,type:f.ACTION},{text:{zh:"\u4ECE\u9644\u4EF6\u751F\u6210\u9A8C\u6536\u6807\u51C6\u8349\u7A3F",en:"Draft acceptance criteria from attachments"},svg:m.check,type:f.REVIEW},{text:{zh:"\u57FA\u4E8E\u9644\u4EF6\u5217\u51FA\u7591\u95EE\u6E05\u5355",en:"List questions based on attachments"},svg:m.alert,type:f.REVIEW},{text:{zh:"\u628A\u9644\u4EF6\u8981\u70B9\u5199\u6210\u540C\u6B65\u6587\u6848",en:"Draft an update message from attachment highlights"},svg:m.send,type:f.SYNC}]}function $m(){return[{text:{zh:"\u57FA\u4E8E\u672C\u5468\u4EFB\u52A1\u751F\u6210\u5468\u62A5",en:"Generate weekly report from tasks"},svg:m.document,type:f.SYNC},{text:{zh:"\u57FA\u4E8E\u4ECA\u5929\u4EFB\u52A1\u751F\u6210\u65E5\u62A5",en:"Generate daily report from tasks"},svg:m.calendar,type:f.SYNC},{text:{zh:"\u67E5\u770B\u6211\u4E0A\u5468\u7684\u6C47\u62A5",en:"View my last week's report"},svg:m.search,type:f.QUERY},{text:{zh:"\u6C47\u603B\u672C\u5468\u5DF2\u5B8C\u6210\u4E8B\u9879",en:"Summarize completed items this week"},svg:m.check,type:f.REVIEW},{text:{zh:"\u6C47\u603B\u672C\u5468\u672A\u5B8C\u6210\u4E0E\u539F\u56E0",en:"Summarize unfinished items and reasons"},svg:m.alert,type:f.REVIEW},{text:{zh:"\u8865\u5145\u98CE\u9669\u4E0E\u9700\u8981\u652F\u6301",en:"Add risks and needed support"},svg:m.alert,type:f.SYNC},{text:{zh:"\u751F\u6210\u4E0B\u5468\u8BA1\u5212\u4E0E\u91CD\u70B9",en:"Generate next week plan and focus"},svg:m.list,type:f.SYNC},{text:{zh:"\u6DA6\u8272\u4E3A\u66F4\u4E13\u4E1A\u8868\u8FBE",en:"Polish for more professional tone"},svg:m.edit,type:f.ACTION},{text:{zh:"\u63D0\u4EA4\u6C47\u62A5\u7ED9\u6307\u5B9A\u540C\u4E8B",en:"Submit report to specified people"},svg:m.send,type:f.ACTION},{text:{zh:"\u67E5\u770B\u6211\u6700\u8FD1\u7684\u5468\u62A5\u5217\u8868",en:"View my recent weekly reports"},svg:m.search,type:f.QUERY},{text:{zh:"\u67E5\u770B\u6211\u6700\u8FD1\u7684\u65E5\u62A5\u5217\u8868",en:"View my recent daily reports"},svg:m.search,type:f.QUERY},{text:{zh:"\u751F\u6210\u7BA1\u7406\u5C42\u7248\u672C\u5468\u62A5",en:"Generate an executive version weekly report"},svg:m.document,type:f.SYNC},{text:{zh:"\u63D0\u70BC\u672C\u5468\u4EAE\u70B9\u6210\u679C\uFF08\u53EF\u91CF\u5316\uFF09",en:"Extract highlights this week (quantifiable)"},svg:m.clipboard,type:f.REVIEW},{text:{zh:"\u672C\u5468\u6700\u5927\u98CE\u9669\u4E0E\u5E94\u5BF9\u52A8\u4F5C",en:"Top risks this week and mitigation actions"},svg:m.alert,type:f.REVIEW},{text:{zh:"\u628A\u5468\u62A5\u6539\u5199\u6210\u7FA4\u53D1\u7248\u672C",en:"Rewrite weekly report for group sharing"},svg:m.message,type:f.SYNC},{text:{zh:"\u63D0\u4EA4\u524D\u68C0\u67E5\u7ED3\u6784\u4E0E\u91CD\u70B9",en:"Check structure and key points before submitting"},svg:m.clipboard,type:f.REVIEW},{text:{zh:"\u81EA\u52A8\u8865\u672A\u5B8C\u6210\u539F\u56E0\u4E0E\u8BA1\u5212",en:"Auto-fill unfinished reasons and next steps"},svg:m.edit,type:f.SYNC},{text:{zh:"\u751F\u6210\u9700\u8981\u534F\u52A9\u4E8B\u9879\u6E05\u5355",en:"Generate a list of help needed"},svg:m.user,type:f.SYNC}]}function km(){return[{text:{zh:"\u603B\u7ED3\u8FD9\u4EFD\u6C47\u62A5\u5173\u952E\u70B9",en:"Summarize key points of this report"},svg:m.document,type:f.REVIEW},{text:{zh:"\u63D0\u53D6\u6C47\u62A5\u91CC\u7684\u5F85\u529E\u4E8B\u9879",en:"Extract action items from this report"},svg:m.clipboard,type:f.ACTION},{text:{zh:"\u627E\u51FA\u6C47\u62A5\u63D0\u5230\u7684\u4EFB\u52A1",en:"Find tasks mentioned in this report"},svg:m.task,type:f.QUERY},{text:{zh:"\u751F\u6210\u4E00\u6761\u56DE\u590D\u8BC4\u8BBA\u6587\u6848",en:"Draft a reply/comment"},svg:m.message,type:f.SYNC},{text:{zh:"\u6807\u8BB0\u4E3A\u5DF2\u8BFB",en:"Mark as read"},svg:m.check,type:f.ACTION},{text:{zh:"\u6807\u8BB0\u4E3A\u672A\u8BFB",en:"Mark as unread"},svg:m.alert,type:f.ACTION},{text:{zh:"\u67E5\u770BTA\u7684\u5176\u4ED6\u6C47\u62A5",en:"View other reports from this person"},svg:m.list,type:f.QUERY},{text:{zh:"\u628A\u6C47\u62A5\u6574\u7406\u6210\u8DDF\u8FDB\u6E05\u5355",en:"Turn this report into a follow-up checklist"},svg:m.clipboard,type:f.ACTION},{text:{zh:"\u751F\u6210\u9700\u8981\u8FFD\u95EE\u76845\u4E2A\u95EE\u9898",en:"Generate 5 follow-up questions"},svg:m.alert,type:f.SYNC},{text:{zh:"\u628A\u5F85\u529E\u8F6C\u6210\u4EFB\u52A1\u5E76\u5EFA\u8BAE\u8D1F\u8D23\u4EBA",en:"Convert action items to tasks with owner suggestions"},svg:m.task,type:f.ACTION},{text:{zh:"\u603B\u7ED3\u98CE\u9669\u70B9\u5E76\u7ED9\u51FA\u5EFA\u8BAE",en:"Summarize risks and give suggestions"},svg:m.alert,type:f.REVIEW},{text:{zh:"\u67E5\u770B\u5BF9\u65B9\u672C\u5468/\u4E0A\u5468\u6C47\u62A5",en:"View this person\u2019s reports this/last week"},svg:m.search,type:f.QUERY},{text:{zh:"\u67E5\u627E\u6C47\u62A5\u76F8\u5173\u4EFB\u52A1\u8BE6\u60C5",en:"Find details of related tasks"},svg:m.search,type:f.QUERY}]}function bm(e){var n;const t=(((n=e==null?void 0:e.state)==null?void 0:n.cacheDialogs)||[]).filter(r=>r.type==="user"&&r.name&&!r.bot),i=t.length>0?t[Math.floor(Math.random()*t.length)].name:null;return[{text:{zh:"\u6211\u6709\u54EA\u4E9B\u672A\u5B8C\u6210\u4EFB\u52A1\uFF1F",en:"What tasks do I have pending?"},svg:m.task,type:f.QUERY},{text:{zh:"\u5168\u5C40\u667A\u80FD\u641C\u7D22\uFF08\u4EFB\u52A1/\u9879\u76EE/\u6587\u4EF6\uFF09",en:"Global smart search (tasks/projects/files)"},svg:m.search,type:f.QUERY},{text:{zh:"\u5E2E\u6211\u521B\u5EFA\u4E00\u4E2A\u4EFB\u52A1",en:"Help me create a task"},svg:m.plus,type:f.ACTION},{text:{zh:"\u67E5\u770B\u6211\u7684\u9879\u76EE\u5217\u8868",en:"View my projects"},svg:m.folder,type:f.QUERY},{text:{zh:"\u5E2E\u6211\u5199\u4E00\u4EFD\u5DE5\u4F5C\u6C47\u62A5",en:"Help me write a work report"},svg:m.document,type:f.SYNC},{text:i?{zh:`\u7ED9 ${i} \u53D1\u6D88\u606F\u5E76\u8BF4\u660E\u80CC\u666F`,en:`Send a message to ${i} with context`}:{zh:"\u7ED9\u67D0\u4EBA\u53D1\u6D88\u606F\u5E76\u8BF4\u660E\u80CC\u666F",en:"Send a message with context"},svg:m.send,type:f.SYNC},{text:{zh:"\u67E5\u770B\u672A\u8BFB\u7684\u5DE5\u4F5C\u6C47\u62A5",en:"View unread work reports"},svg:m.alert,type:f.QUERY},{text:{zh:"\u4E00\u952E\u6807\u8BB0\u672A\u8BFB\u4E3A\u5DF2\u8BFB",en:"Mark all unread reports as read"},svg:m.check,type:f.ACTION},{text:{zh:'\u641C\u7D22"\u98CE\u9669/\u5EF6\u671F/\u963B\u585E"\u5185\u5BB9',en:'Search "risk/delay/blocker" content'},svg:m.search,type:f.QUERY},{text:{zh:"\u521B\u5EFA\u9879\u76EE\u5E76\u8BBE\u7F6E\u770B\u677F\u5217",en:"Create a project with board columns"},svg:m.plus,type:f.ACTION},{text:{zh:"\u628A\u4E00\u4E2A\u60F3\u6CD5\u62C6\u6210\u4EFB\u52A1\u8BA1\u5212",en:"Turn an idea into a task plan"},svg:m.edit,type:f.ACTION},{text:{zh:"\u627E\u51FA\u6211\u6700\u8BE5\u5148\u505A\u76843\u4EF6\u4E8B",en:"Find the top 3 things I should do first"},svg:m.flag,type:f.REVIEW},{text:i?{zh:`\u7ED9 ${i} \u51993\u4E2A\u6D88\u606F\u7248\u672C`,en:`Draft 3 message options to ${i}`}:{zh:"\u7ED9\u67D0\u4EBA\u51993\u4E2A\u6D88\u606F\u7248\u672C",en:"Draft 3 message options to someone"},svg:m.message,type:f.SYNC}]}var Am=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("AssistantModal",{ref:"assistantModal",attrs:{displayMode:e.displayMode,shouldCreateNewSession:e.shouldCreateNewSession,zIndex:e.topZIndex},model:{value:e.showModal,callback:function(i){e.showModal=i},expression:"showModal"}},[t("div",{staticClass:"ai-assistant-header",attrs:{slot:"header"},slot:"header"},[t("div",{staticClass:"ai-assistant-header-title"},[t("i",{staticClass:"taskfont"},[e._v("\uE8A1")]),t("span",[e._v(e._s(e.modalTitle||e.$L("AI \u52A9\u624B")))])]),t("div",{staticClass:"ai-assistant-header-actions"},[e.sessionEnabled&&(e.responses.length>0||e.hasSessionHistory)?t("div",{staticClass:"ai-assistant-header-btn",attrs:{title:e.$L("\u65B0\u5EFA\u4F1A\u8BDD")},on:{click:function(i){return e.createNewSession()}}},[t("i",{staticClass:"taskfont"},[e._v("\uE6F2")])]):e._e(),e.sessionEnabled&&e.hasSessionHistory?t("Dropdown",{attrs:{trigger:"click",placement:"bottom-end",transfer:!0,"z-index":e.topZIndex+1},on:{"on-visible-change":e.onHistoryVisibleChange}},[t("div",{staticClass:"ai-assistant-header-btn",attrs:{title:e.$L("\u5386\u53F2\u4F1A\u8BDD")}},[t("i",{staticClass:"taskfont"},[e._v("\uE6E8")])]),t("DropdownMenu",{staticClass:"ai-assistant-history-menu",attrs:{slot:"list"},slot:"list"},[e._l(e.currentSessionList,function(i){return t("DropdownItem",{key:i.id,class:{active:i.id===e.currentSessionId},nativeOn:{click:function(n){return e.loadSession(i.id)}}},[t("div",{staticClass:"history-item",on:{mouseleave:e.resetDeleteConfirm}},[t("div",{staticClass:"history-item-content"},[t("div",{staticClass:"history-item-title"},[e._v(e._s(i.title))]),e.confirmingDeleteId===i.id?t("div",{staticClass:"history-item-delete history-item-delete-confirm",attrs:{title:e.$L("\u786E\u8BA4\u5220\u9664")},on:{click:function(n){return n.stopPropagation(),e.deleteSession(i.id)}}},[t("svg",{attrs:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round"}},[t("path",{attrs:{d:"M20 6 9 17l-5-5"}})])]):t("div",{staticClass:"history-item-delete",attrs:{title:e.$L("\u5220\u9664")},on:{click:function(n){return n.stopPropagation(),e.askDeleteSession(i.id)}}},[t("i",{staticClass:"taskfont"},[e._v("\uE6E5")])])]),t("span",{staticClass:"history-item-time"},[e._v(e._s(e.formatSessionTime(i.updatedAt)))])])])}),t("DropdownItem",{attrs:{divided:""},nativeOn:{click:function(i){return e.clearSessionHistory.apply(null,arguments)}}},[t("div",{staticClass:"history-clear"},[e._v(" "+e._s(e.$L("\u6E05\u7A7A\u5386\u53F2\u8BB0\u5F55"))+" ")])])],2)],1):e._e()],1)]),t("div",{staticClass:"ai-assistant-content",class:{"ai-assistant-content-dragging":e.isDragging},on:{dragenter:function(i){return i.preventDefault(),e.onDragEnter.apply(null,arguments)},dragover:function(i){i.preventDefault()},dragleave:e.onDragLeave,drop:function(i){return i.preventDefault(),e.onDrop.apply(null,arguments)}}},[e.isDragging?t("div",{staticClass:"ai-assistant-drop-overlay"},[t("div",{staticClass:"ai-assistant-drop-hint"},[t("i",{staticClass:"taskfont"},[e._v("\uE7BC")]),t("span",[e._v(e._s(e.$L("\u677E\u5F00\u4EE5\u4E0A\u4F20\u56FE\u7247")))])])]):e._e(),e.visibleResponses.length?t("div",{ref:"responseContainer",staticClass:"ai-assistant-output"},e._l(e.visibleResponses,function(i){return t("div",{key:i.localId,staticClass:"ai-assistant-output-item"},[t("div",{staticClass:"ai-assistant-output-apply"},[i.status==="error"?[t("span",{staticClass:"ai-assistant-output-error"},[e._v(e._s(e.$L("\u53D1\u9001\u5931\u8D25")))])]:i.rawOutput&&i.status!=="streaming"?[e.showApplyButton?t("Button",{staticClass:"ai-assistant-apply-btn",attrs:{type:"primary",size:"small",loading:i.applyLoading},on:{click:function(n){return e.applyResponse(i)}}},[e._v(" "+e._s(e.applyButtonText||e.$L("\u5E94\u7528\u6B64\u5185\u5BB9"))+" ")]):e._e()]:!i.rawOutput||i.status==="streaming"?[t("Icon",{staticClass:"ai-assistant-output-icon icon-loading",attrs:{type:"ios-loading"}}),e.loadingText&&!i.rawOutput?t("span",{staticClass:"ai-assistant-output-status"},[e._v(e._s(e.loadingText))]):e._e()]:e._e()],2),t("div",{staticClass:"ai-assistant-output-meta"},[t("span",{staticClass:"ai-assistant-output-model"},[e._v(e._s(i.modelLabel||i.model))])]),i.prompt?t("div",{staticClass:"ai-assistant-output-question-wrap"},[e.editingIndex===e.responses.indexOf(i)?t("div",{staticClass:"ai-assistant-question-editor"},[t("Input",{ref:"editInputRef",refInFor:!0,attrs:{type:"textarea",autosize:{minRows:1,maxRows:6},maxlength:e.inputMaxlength||500},on:{"on-keydown":e.onEditKeydown},nativeOn:{compositionstart:function(n){e.isComposing=!0},compositionend:function(n){e.isComposing=!1}},model:{value:e.editingValue,callback:function(n){e.editingValue=n},expression:"editingValue"}}),t("div",{staticClass:"ai-assistant-question-editor-btns"},[t("Button",{attrs:{size:"small"},on:{click:e.cancelEditQuestion}},[e._v(e._s(e.$L("\u53D6\u6D88")))]),t("Button",{attrs:{type:"primary",size:"small",loading:e.loadIng>0},on:{click:e.submitEditedQuestion}},[e._v(e._s(e.$L("\u53D1\u9001")))])],1)],1):e._l([e.parsePromptContent(i.prompt)],function(n,r){return[t("div",{staticClass:"ai-assistant-output-question"},[n.images.length?t("div",{staticClass:"ai-assistant-output-question-images"},e._l(n.images,function(o,a){return t("PromptImage",{key:"img"+a,attrs:{"image-id":o.imageId,"get-image":e.getImageFromCache}})}),1):e._e(),t("div",{staticClass:"ai-assistant-output-question-content"},[t("span",{staticClass:"ai-assistant-output-question-text",class:{"is-expanded":e.expandedQuestionIds.includes(i.localId)},on:{click:function(o){return e.toggleQuestionExpand(i.localId)}}},[e._v(e._s(n.text))]),t("span",{staticClass:"ai-assistant-output-question-edit",attrs:{title:e.$L("\u7F16\u8F91\u95EE\u9898")},on:{click:function(o){e.startEditQuestion(e.responses.indexOf(i))}}},[t("svg",{attrs:{viewBox:"0 0 20 20",fill:"currentColor"}},[t("path",{attrs:{d:"M11.331 3.568a3.61 3.61 0 0 1 4.973.128l.128.135a3.61 3.61 0 0 1 0 4.838l-.128.135-6.292 6.29c-.324.324-.558.561-.79.752l-.235.177q-.309.21-.65.36l-.23.093c-.181.066-.369.114-.585.159l-.765.135-2.394.399c-.142.024-.294.05-.422.06-.1.007-.233.01-.378-.026l-.149-.049a1.1 1.1 0 0 1-.522-.474l-.046-.094a1.1 1.1 0 0 1-.074-.526c.01-.129.035-.28.06-.423l.398-2.394.134-.764a4 4 0 0 1 .16-.586l.093-.23q.15-.342.36-.65l.176-.235c.19-.232.429-.466.752-.79l6.291-6.292zm-5.485 7.36c-.35.35-.533.535-.66.688l-.11.147a2.7 2.7 0 0 0-.24.433l-.062.155c-.04.11-.072.225-.106.394l-.127.717-.398 2.393-.001.002h.003l2.393-.399.717-.126c.169-.034.284-.065.395-.105l.153-.062q.228-.1.433-.241l.148-.11c.153-.126.338-.31.687-.66l4.988-4.988-3.226-3.226zm9.517-6.291a2.28 2.28 0 0 0-3.053-.157l-.173.157-.364.363L15 8.226l.363-.363.157-.174a2.28 2.28 0 0 0 0-2.878z"}})])])])])]})],2):e._e(),i.rawOutput?t("DialogMarkdown",{staticClass:"ai-assistant-output-markdown no-dark-content",attrs:{text:i.displayOutput||i.rawOutput,"before-navigate":e.onMarkdownNavigate}}):t("div",{staticClass:"ai-assistant-output-placeholder"},[e._v(" "+e._s(i.status==="error"?i.error||e.$L("\u53D1\u9001\u5931\u8D25"):e.$L("\u7B49\u5F85 AI \u56DE\u590D..."))+" ")]),i.rawOutput&&i.status==="completed"?t("div",{staticClass:"ai-assistant-output-feedback"},[t("span",{staticClass:"ai-assistant-feedback-btn",attrs:{title:e.$L("\u590D\u5236")},on:{click:function(n){return e.copyResponse(i)}}},[t("svg",{attrs:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.0"}},[t("rect",{attrs:{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}}),t("path",{attrs:{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"}})])]),t("span",{class:["ai-assistant-feedback-btn",{active:i.feedback==="like"}],attrs:{title:e.$L("\u6709\u5E2E\u52A9")},on:{click:function(n){return e.submitFeedback(i,"like")}}},[t("svg",{attrs:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.0"}},[t("path",{attrs:{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z"}}),t("path",{attrs:{d:"M7 10v12"}})])]),t("span",{class:["ai-assistant-feedback-btn ai-assistant-feedback-btn-down",{active:i.feedback==="dislike"}],attrs:{title:e.$L("\u6CA1\u5E2E\u52A9")},on:{click:function(n){return e.submitFeedback(i,"dislike")}}},[t("svg",{attrs:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.0"}},[t("path",{attrs:{d:"M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z"}}),t("path",{attrs:{d:"M17 14V2"}})])]),i.createdAt?t("span",{staticClass:"ai-assistant-output-time",attrs:{title:e.$A.dayjs(i.createdAt).format("YYYY-MM-DD HH:mm:ss")}},[e._v(e._s(e.formatResponseTime(i.createdAt)))]):e._e()]):e._e()],1)}),0):e.displayMode==="chat"?t("div",{staticClass:"ai-assistant-welcome",on:{click:e.onFocus}},[t("div",{staticClass:"ai-assistant-welcome-icon"},[t("svg",{staticClass:"no-dark-content",attrs:{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M385.80516777 713.87417358c-12.76971517 0-24.13100586-7.79328205-28.82575409-19.62404756l-48.91927648-123.9413531c-18.40341303-46.75969229-55.77360888-84.0359932-102.53330118-102.53330117l-123.94135309-48.91927649c-11.83076552-4.69474822-19.62404757-16.05603892-19.62404757-28.8257541s7.79328205-24.13100586 19.62404757-28.82575407l123.94135309-48.91927649c46.75969229-18.40341303 84.0359932-55.77360888 102.53330118-102.53330119l48.91927648-123.94135308c4.69474822-11.83076552 16.05603892-19.62404757 28.8257541-19.62404757s24.13100586 7.79328205 28.82575408 19.62404757l48.91927648 123.94135308c18.40341303 46.75969229 55.77360888 84.0359932 102.53330118 102.53330119l123.94135309 48.91927649c11.83076552 4.69474822 19.62404757 16.05603892 19.62404757 28.82575407 0 12.76971517-7.79328205 24.13100586-19.62404757 28.8257541l-123.94135309 48.91927649c-46.75969229 18.40341303-84.0359932 55.77360888-102.53330118 102.53330117l-48.91927648 123.9413531c-4.69474822 11.83076552-16.14993388 19.62404757-28.82575408 19.62404756zM177.45224165 390.12433614l50.89107073 20.0935224c62.62794129 24.69437565 112.67395736 74.74039171 137.368333 137.36833299l20.09352239 50.89107073 20.0935224-50.89107073c24.69437565-62.62794129 74.74039171-112.67395736 137.368333-137.36833299l50.89107072-20.0935224-50.89107073-20.09352239c-62.62794129-24.69437565-112.67395736-74.74039171-137.36833299-137.36833301l-20.09352239-50.89107074-20.0935224 50.89107074c-24.69437565 62.62794129-74.74039171 112.67395736-137.368333 137.36833301l-50.89107073 20.09352239zM771.33789183 957.62550131c-12.76971517 0-24.13100586-7.79328205-28.82575409-19.62404758l-26.6661699-67.6043744c-8.63833672-21.87752672-26.10280012-39.34199011-47.98032684-47.98032684l-67.60437441-26.6661699c-11.83076552-4.69474822-19.62404757-16.05603892-19.62404757-28.82575409s7.79328205-24.13100586 19.62404757-28.82575409l67.60437441-26.6661699c21.87752672-8.63833672 39.34199011-26.10280012 47.98032684-47.98032685l26.6661699-67.6043744c4.69474822-11.83076552 16.05603892-19.62404757 28.82575409-19.62404757s24.13100586 7.79328205 28.82575409 19.62404757l26.66616991 67.6043744c8.63833672 21.87752672 26.10280012 39.34199011 47.98032684 47.98032685l67.6043744 26.6661699c11.83076552 4.69474822 19.62404757 16.05603892 19.62404757 28.82575409s-7.79328205 24.13100586-19.62404757 28.82575409l-67.6043744 26.6661699c-21.87752672 8.63833672-39.34199011 26.10280012-47.98032684 47.98032684l-26.66616991 67.6043744c-4.69474822 11.83076552-16.14993388 19.62404757-28.82575409 19.62404758z m-75.58544639-190.70067281c33.61439727 14.83540438 60.75004201 41.87715415 75.49155143 75.49155143 14.83540438-33.61439727 41.87715415-60.75004201 75.49155142-75.49155143-33.61439727-14.83540438-60.75004201-41.87715415-75.49155142-75.49155143-14.74150942 33.61439727-41.87715415 60.75004201-75.49155143 75.49155143z"}})])]),t("div",{staticClass:"ai-assistant-welcome-title"},[e._v(" "+e._s(e.$L("\u6B22\u8FCE\u4F7F\u7528 AI \u52A9\u624B"))+" ")]),t("div",{staticClass:"ai-assistant-welcome-prompts"},e._l(e.displayWelcomePrompts,function(i,n){return t("div",{key:n,staticClass:"ai-assistant-prompt-card",on:{click:function(r){return e.onPromptClick(i)}}},[i.svg?t("span",{staticClass:"ai-assistant-prompt-icon no-dark-content",domProps:{innerHTML:e._s(i.svg)}}):e._e(),t("span",[e._v(e._s(i.text))])])}),0)]):e._e(),t("div",{staticClass:"ai-assistant-input"},[e.pendingImages.length?t("div",{staticClass:"ai-assistant-images"},e._l(e.pendingImages,function(i){return t("div",{key:i.id,staticClass:"ai-assistant-image-item"},[t("img",{attrs:{src:i.dataUrl,alt:"preview"}}),t("div",{staticClass:"ai-assistant-image-remove",on:{click:function(n){return e.removeImage(i.id)}}},[t("i",{staticClass:"taskfont"},[e._v("\uE6E5")])])])}),0):e._e(),t("Input",{ref:"inputRef",attrs:{type:"textarea",placeholder:e.inputPlaceholder||e.$L("\u8BF7\u8F93\u5165\u4F60\u7684\u95EE\u9898..."),rows:e.inputRows||1,autosize:e.inputAutosize||{minRows:1,maxRows:6},maxlength:e.inputMaxlength||500},on:{"on-keydown":e.onInputKeydown},nativeOn:{compositionstart:function(i){e.isComposing=!0},compositionend:function(i){e.isComposing=!1},paste:function(i){return e.onPaste.apply(null,arguments)}},model:{value:e.inputValue,callback:function(i){e.inputValue=i},expression:"inputValue"}}),t("input",{ref:"imageInput",staticStyle:{display:"none"},attrs:{type:"file",accept:"image/*",multiple:""},on:{change:e.onImageSelect}}),t("div",{staticClass:"ai-assistant-footer"},[t("div",{staticClass:"ai-assistant-footer-models"},[t("Select",{attrs:{placeholder:e.$L("\u9009\u62E9\u6A21\u578B"),loading:e.modelsLoading,disabled:e.modelsLoading||e.modelGroups.length===0,"not-found-text":e.$L("\u6682\u65E0\u53EF\u7528\u6A21\u578B"),transfer:"","z-index":e.topZIndex+1},model:{value:e.inputModel,callback:function(i){e.inputModel=i},expression:"inputModel"}},e._l(e.modelGroups,function(i){return t("OptionGroup",{key:i.type,attrs:{label:i.label}},e._l(i.options,function(n){return t("Option",{key:n.id,attrs:{value:n.id}},[e._v(" "+e._s(n.label)+" ")])}),1)}),1)],1),t("div",{staticClass:"ai-assistant-footer-btns"},[t("div",{staticClass:"ai-assistant-image-btn",attrs:{title:e.$L("\u4E0A\u4F20\u56FE\u7247")},on:{click:e.triggerImageSelect}},[t("i",{staticClass:"taskfont"},[e._v("\uE7BC")])]),e.submitButtonText?t("Button",{attrs:{type:"primary",shape:"circle",icon:"md-arrow-up",loading:e.loadIng>0},on:{click:e.onSubmit}},[e._v(e._s(e.submitButtonText))]):t("Button",{attrs:{type:"primary",shape:"circle",icon:"md-arrow-up",loading:e.loadIng>0},on:{click:e.onSubmit}})],1)])],1)])])},Cm=[];const Sm={name:"AIAssistant",components:{AssistantModal:Zf,DialogMarkdown:J,PromptImage:rm},floatButtonInstance:null,data(){return{displayMode:"modal",showModal:!1,closing:!1,loadIng:0,pendingAutoSubmit:!1,autoSubmitTimer:null,confirmingDeleteId:null,confirmingDeleteTimer:null,modalTitle:null,applyButtonText:null,submitButtonText:null,showApplyButton:!0,loadingText:null,inputValue:"",inputPlaceholder:null,inputRows:null,inputAutosize:null,inputMaxlength:null,applyHook:null,beforeSendHook:null,renderHook:null,dynamicSystemHook:null,inputModel:"",modelGroups:[],modelMap:{},modelsFirstLoad:!0,modelsLoading:!1,modelCacheKey:"aiAssistant.model",cachedModelId:"",isComposing:!1,responses:[],responseSeed:1,maxResponses:50,contextWindowSize:10,activeSSEClients:[],sessionEnabled:!1,sessionStore:[],currentSessionKey:"default",currentSessionId:null,sessionCacheKeyPrefix:"aiAssistant.sessions",maxSessionsPerKey:20,sessionStoreLoaded:!1,displayWelcomePrompts:[],editingIndex:-1,editingValue:"",expandedQuestionIds:[],inputHistoryList:[],inputHistoryIndex:0,inputHistoryCurrent:"",inputHistoryCacheKey:"aiAssistant.inputHistory",inputHistoryLimit:50,pendingImages:[],imageIdSeed:0,maxImages:5,imageCacheKeyPrefix:"aiAssistant.images",imageCache:{},serverImageMap:{},isDragging:!1,dragCounter:0,topZIndex:(window.modalTransferIndex||1e3)+1e3,zIndexTimer:null}},created(){this.refreshWelcomePromptsDebounced=Qt.exports.debounce(()=>{var e;this.displayWelcomePrompts=pm(this.$store,((e=this.$route)==null?void 0:e.params)||{})},100),this.saveSessionStoreDebouncedMap={}},mounted(){x.on("openAIAssistant",this.onOpenAIAssistant),this.loadCachedModel(),this.loadInputHistory(),this.mountFloatButton(),this.startZIndexTimer(2e4)},beforeDestroy(){var e;x.off("openAIAssistant",this.onOpenAIAssistant),this.clearActiveSSEClients(),this.clearAutoSubmitTimer(),this.resetDeleteConfirm(),this.unmountFloatButton(),(e=this.refreshWelcomePromptsDebounced)==null||e.cancel(),this.stopZIndexTimer()},computed:{selectedModelOption({modelMap:e,inputModel:s}){return e[s]||null},visibleResponses(){return this.responses.filter(e=>e.role!=="system")},shouldCreateNewSession(){return this.visibleResponses.length===0},currentSessionList(){return this.sessionStore||[]},hasSessionHistory(){return this.currentSessionList.length>0},welcomePromptsKey(){var r;const e=this.$store.state.routeName,s=this.$store.state.dialogId,t=(r=this.$store.getters.projectData)==null?void 0:r.id,i=this.$store.state.taskId,n=this.$store.state.dialogModalShow;return`${e}|${s}|${t}|${i}|${n}`}},watch:{inputModel(e){this.saveModelCache(e)},welcomePromptsKey:{handler(){var e;(e=this.refreshWelcomePromptsDebounced)==null||e.call(this)},immediate:!0},showModal(e){e?this.startZIndexTimer(5e3):(this.startZIndexTimer(2e4),x.emit("aiAssistantClosed"))}},methods:{onFocus(){var e;(e=this.$refs.inputRef)==null||e.focus()},onPromptClick(e){!e||!e.text||(this.inputValue=e.text,this.$nextTick(()=>{this.onFocus()}))},mountFloatButton(){const e=E.extend(qf);this.$options.floatButtonInstance=new e({parent:this}),this.$options.floatButtonInstance.$mount(),document.body.appendChild(this.$options.floatButtonInstance.$el)},unmountFloatButton(){this.$options.floatButtonInstance&&(this.$options.floatButtonInstance.$destroy(),this.$options.floatButtonInstance.$el&&this.$options.floatButtonInstance.$el.parentNode&&this.$options.floatButtonInstance.$el.parentNode.removeChild(this.$options.floatButtonInstance.$el),this.$options.floatButtonInstance=null)},onOpenAIAssistant(e){$A.isJson(e)||(e={});const s=e.displayMode==="chat"?"chat":"modal";let t=0;this.showModal&&this.displayMode==="chat"&&s==="modal"&&(this.showModal=!1,t=50),setTimeout(()=>{this.doOpenAssistant(e,s)},t)},async doOpenAssistant(e,s){this.displayMode=s,this.inputValue=e.value||"",this.inputPlaceholder=e.placeholder||null,this.inputRows=e.rows||null,this.inputAutosize=e.autosize||null,this.inputMaxlength=e.maxlength||null,this.applyHook=e.onApply||null,this.beforeSendHook=e.onBeforeSend||null,this.dynamicSystemHook=e.onDynamicSystem||null,this.modalTitle=e.title||null,this.applyButtonText=e.applyButtonText||null,this.submitButtonText=e.submitButtonText||null,this.showApplyButton=e.showApplyButton!==!1,this.loadingText=e.loadingText||null,this.renderHook=e.onRender||null,this.pendingAutoSubmit=!!e.autoSubmit,await this.initSession(e.sessionKey),this.showModal=!0,this.fetchModelOptions(),this.clearAutoSubmitTimer(),this.$nextTick(()=>{this.scheduleAutoSubmit(),this.scrollResponsesToBottom(),this.onFocus()})},async loadCachedModel(){try{this.cachedModelId=await $A.IDBString(this.modelCacheKey)||""}catch{this.cachedModelId=""}},saveModelCache(e){!e||($A.IDBSave(this.modelCacheKey,e),this.cachedModelId=e)},async fetchModelOptions(){const e=this.modelsFirstLoad;e&&(this.modelsFirstLoad=!1,this.modelsLoading=!0);try{const{data:s}=await this.$store.dispatch("call",{url:"assistant/models"});this.normalizeModelOptions(s)}catch(s){if(this.modelGroups.length>0)return;$A.modalError({content:(s==null?void 0:s.msg)||"\u83B7\u53D6\u6A21\u578B\u5217\u8868\u5931\u8D25",onOk:t=>{this.showModal=!1}})}finally{e&&(this.modelsLoading=!1)}},normalizeModelOptions(e){const s=[],t={};$A.isJson(e)&&Object.keys(e).forEach(n=>{const r=n.match(/^(.*?)_models$/);if(!r)return;const o=r[1],a=e[n],l=a?pd(a):[];if(!l.length)return;const c=e[`${o}_model`]||"",d=Zs[o]||o,h={type:o,label:d,defaultModel:c,options:l.map(u=>{const p=`${o}:${u.value}`,g=Object.assign({},u,{id:p,type:o});return t[p]=g,g})};s.push(h)});const i=Object.keys(Zs);s.sort((n,r)=>{const o=i.indexOf(n.type),a=i.indexOf(r.type);return o===-1&&a===-1?n.label.localeCompare(r.label):o===-1?1:a===-1?-1:o-a}),this.modelGroups=s,this.modelMap=t,this.ensureSelectedModel()},ensureSelectedModel(){if(this.inputModel&&this.modelMap[this.inputModel])return;if(this.cachedModelId&&this.modelMap[this.cachedModelId]){this.inputModel=this.cachedModelId;return}for(const s of this.modelGroups)if(s.defaultModel){const t=s.options.find(i=>i.value===s.defaultModel);if(t){this.inputModel=t.id;return}}const e=this.modelGroups.find(s=>s.options.length>0);e?this.inputModel=e.options[0].id:this.inputModel=""},onMarkdownNavigate(){const e=this.$refs.assistantModal;e&&typeof e.prepareForNavigate=="function"?e.prepareForNavigate():this.showModal=!1},onInputKeydown(e){if(!this.isComposing){if(!e.shiftKey&&e.key==="Enter"){e.preventDefault(),this.onSubmit();return}e.key==="ArrowUp"?this.navigateInputHistory("up")||e.preventDefault():e.key==="ArrowDown"&&(this.navigateInputHistory("down")||e.preventDefault())}},async onSubmit(){if(this.loadIng>0)return;const e=(this.inputValue||"").trim();if(!e)return;await this._doSendQuestion(e)&&(this.inputValue="",this.clearPendingImages())},async _doSendQuestion(e){const s=this.selectedModelOption;if(!s)return $A.messageWarning("\u8BF7\u9009\u62E9\u6A21\u578B"),!1;this.loadIng++;let t=null;try{this.sessionEnabled&&!this.beforeSendHook&&this.injectWeakPromptIfNeeded();const i=await this.collectBaseContext(e),n=await this.buildPayloadData(i),r=this.buildCurrentContent(e),o=await this.processContentForStorage(r);t=this.createResponseEntry({modelOption:s,prompt:o}),this.scrollResponsesToBottom();const a=await this.fetchStreamKey({model_type:s.type,model_name:s.value,context:n});return this.persistInputHistory(e),this.startStream(a,t),!0}catch(i){const n=(i==null?void 0:i.msg)||"\u53D1\u9001\u5931\u8D25";return t&&this.markResponseError(t,n),$A.modalError(n),!1}finally{this.loadIng--}},async buildPayloadData(e){const s=this.normalizeContextEntries(e);if(typeof this.beforeSendHook!="function")return s;try{const t=s.map(o=>o.slice()),i=this.beforeSendHook(t),n=i&&typeof i.then=="function"?await i:i,r=this.normalizeContextEntries(n);if(r.length)return r}catch(t){console.warn("[AIAssistant] onBeforeSend error:",t)}return s},async restorePromptImages(e){if(!e||typeof e!="string")return e||"";const s=this.parsePromptContent(e);if(s.images.length===0)return s.text;const t=[];for(const i of s.images){const n=await this.getImageFromCache(i.imageId);n&&t.push({type:"image_url",image_url:{url:n}})}return s.text&&t.push({type:"text",text:s.text}),t.length>0?t:s.text},async collectBaseContext(e){const s=(r,o,a)=>{if(!(typeof a=="undefined"||a===null))if(typeof a=="string"){const l=a.trim();if(!l)return;r.push([o,l])}else Array.isArray(a)&&a.length>0&&r.push([o,a])},t=[];if(this.sessionEnabled&&!this.beforeSendHook&&(s(t,"system",fn(ud)),typeof this.dynamicSystemHook=="function"))try{const r=this.dynamicSystemHook();r&&s(t,"system",String(r))}catch(r){console.warn("[AIAssistant] dynamicSystemHook error:",r)}const i=Number(this.contextWindowSize)||0,n=i>0?this.responses.slice(-i):this.responses;for(const r of n){if(r.role==="system"){s(t,"system",r.content);continue}if(r.prompt){const o=await this.restorePromptImages(r.prompt);s(t,"human",o)}r.rawOutput&&s(t,"assistant",r.rawOutput)}if(e&&String(e).trim()){const r=this.buildCurrentContent(e);s(t,"human",r)}return t},findLastSystemEntry(e){for(let s=this.responses.length-1;s>=0;s--){const t=this.responses[s];if(t.role==="system"&&(!e||t.systemKind===e))return t}return null},injectWeakPromptIfNeeded(){var n;let e=null;try{e=om(this.$store,((n=this.$route)==null?void 0:n.params)||{})}catch(r){console.warn("[AIAssistant] buildWeakPrompt error:",r);return}if(!e||!e.contextKey)return;const s=this.findLastSystemEntry("pageContext");if(s&&s.contextKey===e.contextKey)return;const i=am(e,!!s);!i||this.responses.push({localId:this.responseSeed++,role:"system",systemKind:"pageContext",contextKey:e.contextKey,content:i})},buildCurrentContent(e){const s=String(e).trim();if(!this.pendingImages.length)return s;const t=[];for(const i of this.pendingImages)t.push({type:"image_url",image_url:{url:i.dataUrl}});return s&&t.push({type:"text",text:s}),t},normalizeContextEntries(e){if(!Array.isArray(e))return[];const s=[];return e.forEach(t=>{if(!Array.isArray(t)||t.length<2)return;const[i,n]=t,r=typeof i=="string"?i.trim():"";if(Array.isArray(n)){r&&n.length>0&&s.push([r,n]);return}const o=typeof n=="string"?n.trim():String(n!=null?n:"").trim();if(!r||!o)return;const a=s[s.length-1];if(a&&a[0]===r&&typeof a[1]=="string"&&a[1].slice(-4)==="++++"){const c=a[1].slice(0,-4);a[1]=c?`${c}
+`+this.next().text;return this.inline.output(e)};re.prototype.tok=function(){switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,mn(this.inlineText.output(this.token.text)),this.slugger);case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":{var e="",s="",t,i,n,r;for(n="",t=0;t?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(s)){var t=s;do this.seen[t]++,s=t+"-"+this.seen[t];while(this.seen.hasOwnProperty(s))}return this.seen[s]=0,s};function P(e,s){if(s){if(P.escapeTest.test(e))return e.replace(P.escapeReplace,function(t){return P.replacements[t]})}else if(P.escapeTestNoEncode.test(e))return e.replace(P.escapeReplaceNoEncode,function(t){return P.replacements[t]});return e}P.escapeTest=/[&<>"']/;P.escapeReplace=/[&<>"']/g;P.replacements={"&":"&","<":"<",">":">",'"':""","'":"'"};P.escapeTestNoEncode=/[<>"']|&(?!#?\w+;)/;P.escapeReplaceNoEncode=/[<>"']|&(?!#?\w+;)/g;function mn(e){return e.replace(/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,function(s,t){return t=t.toLowerCase(),t==="colon"?":":t.charAt(0)==="#"?t.charAt(1)==="x"?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""})}function V(e,s){return e=e.source||e,s=s||"",{replace:function(t,i){return i=i.source||i,i=i.replace(/(^|[^\[])\^/g,"$1"),e=e.replace(t,i),this},getRegex:function(){return new RegExp(e,s)}}}function gn(e,s,t){if(e){try{var i=decodeURIComponent(mn(t)).replace(/[^\w:]/g,"").toLowerCase()}catch{return null}if(i.indexOf("javascript:")===0||i.indexOf("vbscript:")===0||i.indexOf("data:")===0)return null}s&&!rh.test(t)&&(t=nh(s,t));try{t=encodeURI(t).replace(/%25/g,"%")}catch{return null}return t}function nh(e,s){return et[" "+e]||(/^[^:]+:\/*[^/]*$/.test(e)?et[" "+e]=e+"/":et[" "+e]=_n(e,"/",!0)),e=et[" "+e],s.slice(0,2)==="//"?e.replace(/:[\s\S]*/,":")+s:s.charAt(0)==="/"?e.replace(/(:\/*[^/]*)[\s\S]*/,"$1")+s:e+s}var et={},rh=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function Se(){}Se.exec=Se;function oe(e){for(var s=1,t,i;s=0&&a[c]==="\\";)l=!l;return l?"|":" |"}),i=t.split(/ \|/),n=0;if(i.length>s)i.splice(s);else for(;i.lengthAn error occurred:
"+P(l.message+"",!0)+" ";throw l}}j.options=j.setOptions=function(e){return oe(j.defaults,e),j};j.getDefaults=function(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:new z,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,xhtml:!1}};j.defaults=j.getDefaults();j.Parser=re;j.parser=re.parse;j.Renderer=z;j.TextRenderer=le;j.Lexer=_e;j.lexer=_e.lex;j.InlineLexer=Q;j.inlineLexer=Q.output;j.Slugger=Ht;j.parse=j;const ah=new j.Renderer;var lh=j.setOptions({renderer:ah,gfm:!0,tables:!0,breaks:!1,pedantic:!1,sanitize:!1,smartLists:!0}),ch=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"vmpreview-nostyle",domProps:{innerHTML:e._s(e.html)}})},uh=[];const dh={name:"VMPreviewNostyle",props:{value:{default:""}},data(){return{html:""}},mounted(){this.translateMarkdown()},methods:{translateMarkdown(){this.html=lh(this.value,{sanitize:!1}).replace(/href="/gi,'target="_blank" href="')}},watch:{value(){this.translateMarkdown()}}},di={};var hh=A(dh,ch,uh,!1,ph,null,null,null);function ph(e){for(let s in di)this[s]=di[s]}var fh=function(){return hh.exports}(),mh=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"project-invite-warp"},[t("Modal",{attrs:{title:e.$L("\u52A0\u5165\u9879\u76EE"),"mask-closable":!1},model:{value:e.show,callback:function(i){e.show=i},expression:"show"}},[e.loadIng>0?t("div",{staticClass:"invite-load"},[t("Loading",{staticClass:"invite-load-icon"})],1):e.project.id>0?t("div",{staticClass:"invite-content"},[t("p",{staticClass:"invite-title",attrs:{slot:"title"},domProps:{innerHTML:e._s(e.transformEmojiToHtml(e.project.name))},slot:"title"}),e.project.desc?t("div",{staticClass:"invite-desc user-select-auto"},[t("VMPreviewNostyle",{attrs:{value:e.project.desc}})],1):t("div",[e._v(e._s(e.$L("\u6682\u65E0\u4ECB\u7ECD")))])]):t("div",[t("p",[e._v(e._s(e.$L("\u9080\u8BF7\u5730\u5740\u4E0D\u5B58\u5728\u6216\u5DF2\u88AB\u5220\u9664\uFF01")))])]),t("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e.already?[e.project.id>0?t("Button",{attrs:{type:"default"},on:{click:function(i){e.show=!1}}},[e._v(e._s(e.$L("\u5173\u95ED")))]):e._e(),e.already?t("Button",{attrs:{type:"success",icon:"md-checkmark-circle-outline"},on:{click:e.goProject}},[e._v(e._s(e.$L("\u5DF2\u52A0\u5165")))]):e._e()]:e.project.id>0?[e.project.id>0?t("Button",{attrs:{disabled:e.joinLoad>0,type:"default"},on:{click:function(i){e.show=!1}}},[e._v(e._s(e.$L("\u53D6\u6D88")))]):e._e(),t("Button",{attrs:{type:"primary",loading:e.joinLoad>0},on:{click:e.joinProject}},[e._v(e._s(e.$L("\u52A0\u5165\u9879\u76EE")))])]:[t("Button",{attrs:{type:"default"},on:{click:function(i){e.show=!1}}},[e._v(e._s(e.$L("\u5173\u95ED")))])]],2)])],1)},gh=[];const _h={name:"ProjectInvite",components:{VMPreviewNostyle:fh},data(){return{show:!1,code:"",loadIng:0,joinLoad:0,already:!1,project:{}}},mounted(){x.on("openProjectInvite",this.open)},beforeDestroy(){x.off("openProjectInvite",this.open)},methods:{transformEmojiToHtml:mt,open(e){this.code=e,this.show=!0,this.getData()},getData(){this.loadIng++,this.already=!1,this.project={},this.$store.dispatch("call",{url:"project/invite/info",data:{code:this.code}}).then(({data:e})=>{this.already=e.already,this.project=e.project}).catch(()=>{this.project={}}).finally(e=>{this.loadIng--})},joinProject(){this.joinLoad++,this.$store.dispatch("call",{url:"project/invite/join",data:{code:this.code}}).then(({data:e})=>{this.already=e.already,this.project=e.project,this.goProject()}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.joinLoad--})},goProject(){this.show=!1,this.$nextTick(()=>{$A.goForward({name:"manage-project",params:{projectId:this.project.id}})})}}},hi={};var vh=A(_h,mh,gh,!1,yh,"6b7b835e",null,null);function yh(e){for(let s in hi)this[s]=hi[s]}var wh=function(){return vh.exports}(),$h=function(){var e=this,s=e.$createElement,t=e._self._c||s;return e.show&&e.userid>0?t("transition",{attrs:{name:"mobile-notify"}},[t("div",{staticClass:"mobile-notification",class:{show:e.show},style:e.notifyStyle,on:{click:function(i){return i.stopPropagation(),e.onClick.apply(null,arguments)},touchstart:e.onTouchstart,touchmove:e.onTouchmove}},[t("UserAvatar",{attrs:{userid:e.userid,size:40,"show-name":"","name-text":e.title}}),t("div",{staticClass:"notification-desc no-dark-content"},[e._v(e._s(e.desc))])],1)]):e._e()},kh=[];const bh={name:"MobileNotification",data(){return{userid:0,title:"",desc:"",duration:6e3,callback:null,show:!1,timer:null,startY:0}},mounted(){x.on("openMobileNotification",this.open)},beforeDestroy(){x.off("openMobileNotification",this.open),this.timer&&clearTimeout(this.timer),this.show=!1},computed:{...B(["safeAreaSize"]),notifyStyle({windowScrollY:e,safeAreaSize:s}){return{marginTop:e+s.top+"px"}}},methods:{open(e){!$A.isJson(e)||(this.userid=e.userid||0,this.title=e.title||"",this.desc=e.desc||"",this.duration=typeof e.duration=="number"?e.duration:6e3,this.callback=typeof e.callback=="function"?e.callback:null,this.show=!0,this.timer&&clearTimeout(this.timer),this.duration>0&&(this.timer=setTimeout(this.close,this.duration)),$A.eeuiAppSendMessage({action:"setVibrate"}))},close(){this.show=!1},onClick(){this.close(),typeof this.callback=="function"&&this.callback()},onTouchstart(e){this.startY=e.touches[0].clientY},onTouchmove(e){this.startY>0&&this.startY-e.touches[0].clientY>10&&(this.startY=0,this.close())}}},pi={};var Ah=A(bh,$h,kh,!1,Ch,null,null,null);function Ch(e){for(let s in pi)this[s]=pi[s]}var Sh=function(){return Ah.exports}(),xh=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"mobile-back"},[e.isVisible&&e.x>20?t("div",{staticClass:"back-semicircle",style:e.style}):e._e()])},Th=[];const Ih={name:"MobileBack",data(){return{x:0,y:0,isVisible:!1,isTouched:!1,isScrolling:void 0,touchesStart:{}}},created(){this.appAndroidEvents()},mounted(){document.addEventListener("touchstart",this.touchstart),document.addEventListener("touchmove",this.touchmove,{passive:!1}),document.addEventListener("touchend",this.touchend)},beforeDestroy(){document.removeEventListener("touchstart",this.touchstart),document.removeEventListener("touchmove",this.touchmove),document.removeEventListener("touchend",this.touchend)},computed:{...B(["fileLists","messengerSearchKey","mobileTabbar"]),style(){const s=Math.max(135,this.y)+this.windowScrollY,t=this.windowHeight-135;return{top:Math.min(s,t)+"px"}},fileFolderId(){const{folderId:e}=this.$route.params;return parseInt(/^\d+$/.test(e)?e:0)}},watch:{isVisible(e){this.$store.state.touchBackInProgress=e}},methods:{getXY(e){const s=e.touches[0];this.x=s.clientX,this.y=s.clientY},touchstart(e){this.getXY(e),this.isTouched=this.canBack()&&this.x<20,this.isScrolling=void 0,this.touchesStart.x=e.type==="touchstart"?e.targetTouches[0].pageX:e.pageX,this.touchesStart.y=e.type==="touchstart"?e.targetTouches[0].pageY:e.pageY},touchmove(e){if(!this.isTouched)return;const s=e.type==="touchmove"?e.targetTouches[0].pageX:e.pageX,t=e.type==="touchmove"?e.targetTouches[0].pageY:e.pageY;if(typeof this.isScrolling=="undefined"){const i=Math.abs(t-this.touchesStart.y),n=Math.abs(s-this.touchesStart.x)*1.5;this.isScrolling=i>n}if(this.isScrolling){this.isTouched=!1;return}this.isVisible=!0,this.getXY(e),e.preventDefault()},touchend(){this.x>90&&this.isVisible&&this.onBack(),this.x=0,this.isVisible=!1},canBack(){if(!this.mobileTabbar||this.$Modal.visibleList().length>0||this.fileFolderId>0)return!0;if(this.routeName==="manage-messenger"){if(this.$route.params.dialogAction==="contacts"){if(this.messengerSearchKey.contacts)return!0}else if(this.messengerSearchKey.dialog)return!0}return!1},onBack(){if(this.$store.commit("menu/operation",{}),!this.$Modal.removeLast()){if(this.routeName==="manage-file"){if(this.fileFolderId>0){const e=this.fileLists.find(({id:s,permission:t})=>s==this.fileFolderId&&t>-1);if(e){const s=this.fileLists.find(({id:t,permission:i})=>t==e.pid&&i>-1);if(s){this.goForward({name:"manage-file",params:{folderId:s.id,fileId:null}});return}}this.goForward({name:"manage-file"});return}this.goForward({name:"manage-application"},!0);return}if(this.routeName==="manage-messenger"){if(this.$route.params.dialogAction==="contacts"){if(this.messengerSearchKey.contacts){this.$store.state.messengerSearchKey.contacts="";return}}else if(this.messengerSearchKey.dialog){this.$store.state.messengerSearchKey.dialog="";return}}this.goBack()}},appAndroidEvents(){this.$isEEUIApp&&$A.isAndroid()&&$A.eeuiAppSetPageBackPressed({pageName:"firstPage"},e=>{this.canBack()?this.onBack():$A.eeuiAppGoDesktop()})}}},fi={};var Dh=A(Ih,xh,Th,!1,Eh,null,null,null);function Eh(e){for(let s in fi)this[s]=fi[s]}var Lh=function(){return Dh.exports}(),Mh=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("EDropdown",{ref:"dropdown",staticClass:"general-operation-dropdown",style:e.styles,attrs:{trigger:"click",placement:"bottom",size:e.size},on:{command:e.onCommand,"visible-change":e.visibleChange}},[t("div",{ref:"icon",staticClass:"general-operation-icon"}),t("EDropdownMenu",{ref:"dropdownMenu",staticClass:"general-operation-more-dropdown menu-dropdown",attrs:{slot:"dropdown"},slot:"dropdown"},[t("li",{staticClass:"general-operation-more-warp",class:e.size},[t("ul",{style:e.ulStyle},e._l(e.list,function(i,n){return t("EDropdownItem",{key:n,attrs:{command:i.value,divided:!!i.divided,disabled:e.active===i.value&&!e.activeClick||!!i.disabled}},[t("div",{staticClass:"item-box",class:i.className,style:i.style},[t("div",{staticClass:"item"},[i.prefix?t("div",{staticClass:"item-prefix",domProps:{innerHTML:e._s(i.prefix)}}):e._e(),t("div",{staticClass:"item-label"},[e._v(e._s(e.language?e.$L(i.label):i.label))])]),e.tickShow?t("div",{staticClass:"tick"},[e.active===i.value&&!i.disabled?t("i",{staticClass:"taskfont"},[e._v("\uE684")]):e._e()]):e._e()])])}),1)])])],1)},Ph=[];const jh={data(){return{visible:!1,list:[],size:"small",active:"",activeClick:!1,onVisibleChange:null,onUpdate:null,scrollHide:!0,tickShow:!0,maxHeight:0,language:!0,scrollTarget:null,menuTarget:null,styles:{}}},beforeDestroy(){this.removeEventListeners()},computed:{...B(["menuOperation"]),ulStyle({maxHeight:e}){return e>0?{maxHeight:`${e}px`}:{}}},watch:{menuOperation(e){if(e.event&&e.list){if(this.$refs.dropdown.visible&&this.menuTarget===e.event.target){this.hide();return}const s=e.event.target.getBoundingClientRect();this.styles={left:`${s.left}px`,top:`${s.top+this.windowScrollY}px`,width:`${s.width}px`,height:`${s.height}px`},this.list=e.list,this.size=["small","medium","large"].includes(e.size)?e.size:"small",this.active=e.active&&this.list.find(t=>t.value===e.active)?e.active:"",this.activeClick=typeof e.activeClick=="boolean"?e.activeClick:!1,this.onVisibleChange=typeof e.onVisibleChange=="function"?e.onVisibleChange:null,this.onUpdate=typeof e.onUpdate=="function"?e.onUpdate:null,this.scrollHide=typeof e.scrollHide=="boolean"?e.scrollHide:!0,this.tickShow=typeof e.tickShow=="boolean"?e.tickShow:typeof e.active!="undefined",this.maxHeight=typeof e.maxHeight=="number"?e.maxHeight:0,this.language=typeof e.language=="boolean"?e.language:!0,this.$refs.icon.focus(),this.show(),this.updatePopper(),this.setupEventListeners(e.event)}else this.hide()},windowScrollY(){if(!this.visible||!this.menuTarget)return;const e=this.menuTarget.getBoundingClientRect();this.styles={left:`${e.left}px`,top:`${e.top+this.windowScrollY}px`,width:`${e.width}px`,height:`${e.height}px`},this.updatePopper()},visible(e){e||this.removeEventListeners(),typeof this.onVisibleChange=="function"&&this.onVisibleChange(e)}},methods:{show(){this.$refs.dropdown.show()},hide(){this.$refs.dropdown.hide()},onCommand(e){this.hide(),typeof this.onUpdate=="function"&&this.onUpdate(e)},visibleChange(e){this.visible=e},updatePopper(){setTimeout(()=>{this.$refs.dropdownMenu.updatePopper()},0)},setupEventListeners(e){this.menuTarget=e.target;let s=this.getScrollParent(this.menuTarget);if((s===window.document.body||s===window.document.documentElement)&&(s=window),this.scrollTarget){if(this.scrollTarget===s)return;this.scrollTarget.removeEventListener("scroll",this.handlerEventListeners)}this.scrollTarget=s,this.scrollTarget.addEventListener("scroll",this.handlerEventListeners)},removeEventListeners(){this.scrollTarget&&(this.scrollTarget.removeEventListener("scroll",this.handlerEventListeners),this.scrollTarget=null)},handlerEventListeners(e){if(!this.visible||!this.menuTarget)return;if(this.scrollHide){this.hide();return}const s=e.target.getBoundingClientRect(),t=this.menuTarget.getBoundingClientRect();if(t.tops.top+s.height){this.hide();return}this.styles={left:`${t.left}px`,top:`${t.top+this.windowScrollY}px`,width:`${t.width}px`,height:`${t.height}px`},this.updatePopper()},getScrollParent(e){const s=e.parentNode;return s?s===window.document?window.document.body.scrollTop||window.document.body.scrollLeft?window.document.body:window.document.documentElement:["scroll","auto"].indexOf(this.getStyleComputedProperty(s,"overflow"))!==-1||["scroll","auto"].indexOf(this.getStyleComputedProperty(s,"overflow-x"))!==-1||["scroll","auto"].indexOf(this.getStyleComputedProperty(s,"overflow-y"))!==-1?s:this.getScrollParent(e.parentNode):e},getStyleComputedProperty(e,s){return!e||!(e instanceof HTMLElement)?null:window.getComputedStyle(e,null)[s]}}},mi={};var Rh=A(jh,Mh,Ph,!1,Oh,null,null,null);function Oh(e){for(let s in mi)this[s]=mi[s]}var zh=function(){return Rh.exports}();const Uh={data(){return{isCtrlCommandPressed:!1}},created(){this.handlePointerdown=this.handlePointerdown.bind(this),this.handlePointerup=this.handlePointerup.bind(this)},mounted(){document.addEventListener("pointerdown",this.handlePointerdown),document.addEventListener("pointerup",this.handlePointerup)},beforeDestroy(){document.removeEventListener("pointerdown",this.handlePointerdown),document.removeEventListener("pointerup",this.handlePointerup)},methods:{handlePointerdown(e){(e.ctrlKey||e.metaKey)&&(this.isCtrlCommandPressed=!0)},handlePointerup(e){!e.ctrlKey&&!e.metaKey&&(this.isCtrlCommandPressed=!1)}}};function Bh(e,s,t){$A.isJson(s)||(s={});const i=e+"::"+encodeURIComponent(new URLSearchParams($A.sortObject(s,["page","pagesize","timerange"])).toString()),n=t.callAt.find(r=>r.key===i)||{};return n.__last=$A.dayjs().unix(),typeof n.key=="undefined"&&(n.key=i,n.updated=0,n.deleted=0,t.callAt.push(n),$A.IDBSet("callAt",t.callAt).catch(r=>{})),this.get=()=>(s.timerange=s.timerange||`${n.updated||0},${n.deleted||0}`,s),this.save=({total:r,current_page:o,deleted_id:a})=>new Promise(async l=>{if(o!==1)return;let c=!1;const d=n.__last||$A.dayjs().unix();r>0&&(n.updated=d,c=!0),$A.isArray(a)&&a.length>0?(n.deleted=d,c=!0):a=[],$A.isEEUIApp&&(c=t.isFirstPage),c&&($A.isSubElectron||$A.isEEUIApp&&!t.isFirstPage||await $A.IDBSet("callAt",t.callAt)),l(a)}),this}function kt(e,s,t){return new Bh(e,s,t)}function Nh(e,s=!0){return e&&(s?e=String(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/\n/g,"$"):e=String(e).replace(/\-/g,"+").replace(/\_/g,"/").replace(/\$/g,`
+`)),e}const Fh={retry:5,interval:3*1e3};class vn{constructor(s,t=Fh){this.url=s,this.es=null,this.options=t,this.retry=t.retry,this.timer=null}_onOpen(){window.systemInfo.debug==="yes"&&console.log("SSE open: "+this.url)}_onMessage(s,t){return i=>{this.retry=this.options.retry,typeof t=="function"&&t(s,i)}}_onError(s,t,i){return()=>{window.systemInfo.debug==="yes"&&console.log("SSE retry: "+this.url),this.es&&(this._removeAllEvent(s,t,i),this.unsunscribe()),this.retry>0?(this.retry--,this.timer=setTimeout(()=>{this.subscribe(s,t,i)},this.options.interval)):typeof i=="function"&&i()}}_removeAllEvent(s,t,i){s=$A.isArray(s)?s:[s],this.es.removeEventListener("open",this._onOpen),s.some(n=>{this.es.removeEventListener(n,this._onMessage(n,t))}),this.es.removeEventListener("error",this._onError(s,t,i))}subscribe(s,t,i){s=$A.isArray(s)?s:[s],this.es=new EventSource(this.url),this.es.addEventListener("open",this._onOpen),s.some(n=>{this.es.addEventListener(n,this._onMessage(n,t))}),this.es.addEventListener("error",this._onError(s,t,i))}unsunscribe(){this.es&&(this.es.close(),this.es=null),this.timer&&clearTimeout(this.timer),window.systemInfo.debug==="yes"&&console.log("SSE cancel: "+this.url)}}function Hh(e,s){if(e.role!==s.role||e.name!==s.name||!Wh(e,s)||ht(e)!==ht(s))return!1;const t=Object.keys(e.props),i=Object.keys(s.props);return t.length===i.length&&t.every(n=>e.props[n]===s.props[n])}function ht(e){return e.box.cursor==="pointer"}function Wh(e,s){return e.active===s.active&&e.checked===s.checked&&e.disabled===s.disabled&&e.expanded===s.expanded&&e.invalid===s.invalid&&e.selected===s.selected&&e.level===s.level&&e.pressed===s.pressed}var Ie;function yn(e){let s=Ie==null?void 0:Ie.get(e);return s===void 0&&(s=e.replace(/[\u200b\u00ad]/g,"").trim().replace(/\s+/g," "),Ie==null||Ie.set(e,s)),s}function gi(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Vh(e,s){const t=e.length,i=s.length;let n=0,r=0;const o=Array(t+1).fill(null).map(()=>Array(i+1).fill(0));for(let a=1;a<=t;a++)for(let l=1;l<=i;l++)e[a-1]===s[l-1]&&(o[a][l]=o[a-1][l-1]+1,o[a][l]>n&&(n=o[a][l],r=a));return e.slice(r-n,r)}function Yh(e){return wn(e)?"'"+e.replace(/'/g,"''")+"'":e}function bt(e){return wn(e)?'"'+e.replace(/[\\"\x00-\x1f\x7f-\x9f]/g,s=>{switch(s){case"\\":return"\\\\";case'"':return'\\"';case"\b":return"\\b";case"\f":return"\\f";case`
+`:return"\\n";case"\r":return"\\r";case" ":return"\\t";default:const t=s.charCodeAt(0);return"\\x"+t.toString(16).padStart(2,"0")}})+'"':e}function wn(e){return!!(e.length===0||/^\s|\s$/.test(e)||/[\x00-\x08\x0b\x0c\x0e-\x1f\x7f-\x9f]/.test(e)||/^-/.test(e)||/[\n:](\s|$)/.test(e)||/\s#/.test(e)||/[\n\r]/.test(e)||/^[&*\],?!>|@"'#%]/.test(e)||/[{}`]/.test(e)||/^\[/.test(e)||!isNaN(Number(e))||["y","n","yes","no","true","false","on","off","null"].includes(e.toLowerCase()))}var qh={};function Qe(e){if(e.parentElement)return e.parentElement;if(!!e.parentNode&&e.parentNode.nodeType===11&&e.parentNode.host)return e.parentNode.host}function Kh(e){let s=e;for(;s.parentNode;)s=s.parentNode;if(s.nodeType===11||s.nodeType===9)return s}function Gh(e){for(;e.parentElement;)e=e.parentElement;return Qe(e)}function st(e,s,t){for(;e;){const i=e.closest(s);if(t&&i!==t&&(i==null?void 0:i.contains(t)))return;if(i)return i;e=Gh(e)}}function we(e,s){const t=s==="::before"?Fe:s==="::after"?He:Ne;if(t&&t.has(e))return t.get(e);const i=e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView.getComputedStyle(e,s):void 0;return t==null||t.set(e,i),i}function $n(e,s){if(s=s!=null?s:we(e),!s)return!0;if(Element.prototype.checkVisibility&&qh.browserNameForWorkarounds!=="webkit"){if(!e.checkVisibility())return!1}else{const t=e.closest("details,summary");if(t!==e&&(t==null?void 0:t.nodeName)==="DETAILS"&&!t.open)return!1}return s.visibility==="visible"}function pt(e){const s=we(e);if(!s)return{visible:!0,inline:!1};const t=s.cursor;if(s.display==="contents"){for(let n=e.firstChild;n;n=n.nextSibling){if(n.nodeType===1&&jt(n))return{visible:!0,inline:!1,cursor:t};if(n.nodeType===3&&kn(n))return{visible:!0,inline:!0,cursor:t}}return{visible:!1,inline:!1,cursor:t}}if(!$n(e,s))return{cursor:t,visible:!1,inline:!1};const i=e.getBoundingClientRect();return{cursor:t,visible:i.width>0&&i.height>0,inline:s.display==="inline"}}function jt(e){return pt(e).visible}function kn(e){const s=e.ownerDocument.createRange();s.selectNode(e);const t=s.getBoundingClientRect();return t.width>0&&t.height>0}function H(e){const s=e.tagName;return typeof s=="string"?s.toUpperCase():e instanceof HTMLFormElement?"FORM":e.tagName.toUpperCase()}var Ne,Fe,He,bn=0;function Jh(){++bn,Ne!=null||(Ne=new Map),Fe!=null||(Fe=new Map),He!=null||(He=new Map)}function Qh(){--bn||(Ne=void 0,Fe=void 0,He=void 0)}var F=function(e,s,t){return e>=s&&e<=t};function Z(e){return F(e,48,57)}function _i(e){return Z(e)||F(e,65,70)||F(e,97,102)}function Xh(e){return F(e,65,90)}function Zh(e){return F(e,97,122)}function ep(e){return Xh(e)||Zh(e)}function tp(e){return e>=128}function lt(e){return ep(e)||tp(e)||e===95}function vi(e){return lt(e)||Z(e)||e===45}function sp(e){return F(e,0,8)||e===11||F(e,14,31)||e===127}function ct(e){return e===10}function ue(e){return ct(e)||e===9||e===32}var ip=1114111,Wt=class extends Error{constructor(e){super(e),this.name="InvalidCharacterError"}};function np(e){const s=[];for(let t=0;t=s.length?-1:s[k]},o=function(k){if(k===void 0&&(k=1),k>3)throw"Spec Error: no more than three codepoints of lookahead.";return r(t+k)},a=function(k){return k===void 0&&(k=1),t+=k,n=r(t),!0},l=function(){return t-=1,!0},c=function(k){return k===void 0&&(k=n),k===-1},d=function(){if(h(),a(),ue(n)){for(;ue(o());)a();return new An}else{if(n===34)return g();if(n===35)if(vi(o())||y(o(1),o(2))){const k=new Cp("");return b(o(1),o(2),o(3))&&(k.type="id"),k.value=K(),k}else return new X(n);else return n===36?o()===61?(a(),new wp):new X(n):n===39?g():n===40?new gp:n===41?new Cn:n===42?o()===61?(a(),new $p):new X(n):n===43?O()?(l(),u()):new X(n):n===44?new dp:n===45?O()?(l(),u()):o(1)===45&&o(2)===62?(a(2),new lp):C()?(l(),p()):new X(n):n===46?O()?(l(),u()):new X(n):n===58?new cp:n===59?new up:n===60?o(1)===33&&o(2)===45&&o(3)===45?(a(3),new ap):new X(n):n===64?b(o(1),o(2),o(3))?new Ap(K()):new X(n):n===91?new fp:n===92?w()?(l(),p()):new X(n):n===93?new mp:n===94?o()===61?(a(),new yp):new X(n):n===123?new hp:n===124?o()===61?(a(),new vp):o()===124?(a(),new kp):new X(n):n===125?new pp:n===126?o()===61?(a(),new _p):new X(n):Z(n)?(l(),u()):lt(n)?(l(),p()):c()?new bp:new X(n)}},h=function(){for(;o(1)===47&&o(2)===42;)for(a(2);;)if(a(),n===42&&o()===47){a();break}else if(c())return},u=function(){const k=Y();if(b(o(1),o(2),o(3))){const L=new Ip;return L.value=k.value,L.repr=k.repr,L.type=k.type,L.unit=K(),L}else if(o()===37){a();const L=new Tp;return L.value=k.value,L.repr=k.repr,L}else{const L=new xp;return L.value=k.value,L.repr=k.repr,L.type=k.type,L}},p=function(){const k=K();if(k.toLowerCase()==="url"&&o()===40){for(a();ue(o(1))&&ue(o(2));)a();return o()===34||o()===39?new ut(k):ue(o())&&(o(2)===34||o(2)===39)?new ut(k):_()}else return o()===40?(a(),new ut(k)):new Sn(k)},g=function(k){k===void 0&&(k=n);let L="";for(;a();){if(n===k||c())return new xn(L);if(ct(n))return l(),new op;n===92?c(o())||(ct(o())?a():L+=W(v())):L+=W(n)}throw new Error("Internal error")},_=function(){const k=new Sp("");for(;ue(o());)a();if(c(o()))return k;for(;a();){if(n===41||c())return k;if(ue(n)){for(;ue(o());)a();return o()===41||c(o())?(a(),k):(vt(),new At)}else{if(n===34||n===39||n===40||sp(n))return vt(),new At;if(n===92)if(w())k.value+=W(v());else return vt(),new At;else k.value+=W(n)}}throw new Error("Internal error")},v=function(){if(a(),_i(n)){const k=[n];for(let se=0;se<5&&_i(o());se++)a(),k.push(n);ue(o())&&a();let L=parseInt(k.map(function(se){return String.fromCharCode(se)}).join(""),16);return L>ip&&(L=65533),L}else return c()?65533:n},y=function(k,L){return!(k!==92||ct(L))},w=function(){return y(n,o())},b=function(k,L,se){return k===45?lt(L)||L===45||y(L,se):lt(k)?!0:k===92?y(k,L):!1},C=function(){return b(n,o(1),o(2))},U=function(k,L,se){return k===43||k===45?!!(Z(L)||L===46&&Z(se)):k===46?!!Z(L):!!Z(k)},O=function(){return U(n,o(1),o(2))},K=function(){let k="";for(;a();)if(vi(n))k+=W(n);else if(w())k+=W(v());else return l(),k;throw new Error("Internal parse error")},Y=function(){let k="",L="integer";for((o()===43||o()===45)&&(a(),k+=W(n));Z(o());)a(),k+=W(n);if(o(1)===46&&Z(o(2)))for(a(),k+=W(n),a(),k+=W(n),L="number";Z(o());)a(),k+=W(n);const se=o(1),yt=o(2),Qn=o(3);if((se===69||se===101)&&Z(yt))for(a(),k+=W(n),a(),k+=W(n),L="number";Z(o());)a(),k+=W(n);else if((se===69||se===101)&&(yt===43||yt===45)&&Z(Qn))for(a(),k+=W(n),a(),k+=W(n),a(),k+=W(n),L="number";Z(o());)a(),k+=W(n);const Xn=Re(k);return{type:L,value:Xn,repr:k}},Re=function(k){return+k},vt=function(){for(;a();){if(n===41||c())return;w()&&v()}};let Jt=0;for(;!c(o());)if(i.push(d()),Jt++,Jt>s.length*2)throw new Error("I'm infinite-looping!");return i}var N=class{constructor(){S(this,"tokenType","");S(this,"value")}toJSON(){return{token:this.tokenType}}toString(){return this.tokenType}toSource(){return""+this}},op=class extends N{constructor(){super(...arguments);S(this,"tokenType","BADSTRING")}},At=class extends N{constructor(){super(...arguments);S(this,"tokenType","BADURL")}},An=class extends N{constructor(){super(...arguments);S(this,"tokenType","WHITESPACE")}toString(){return"WS"}toSource(){return" "}},ap=class extends N{constructor(){super(...arguments);S(this,"tokenType","CDO")}toSource(){return""}},cp=class extends N{constructor(){super(...arguments);S(this,"tokenType",":")}},up=class extends N{constructor(){super(...arguments);S(this,"tokenType",";")}},dp=class extends N{constructor(){super(...arguments);S(this,"tokenType",",")}},Pe=class extends N{constructor(){super(...arguments);S(this,"value","");S(this,"mirror","")}},hp=class extends Pe{constructor(){super();S(this,"tokenType","{");this.value="{",this.mirror="}"}},pp=class extends Pe{constructor(){super();S(this,"tokenType","}");this.value="}",this.mirror="{"}},fp=class extends Pe{constructor(){super();S(this,"tokenType","[");this.value="[",this.mirror="]"}},mp=class extends Pe{constructor(){super();S(this,"tokenType","]");this.value="]",this.mirror="["}},gp=class extends Pe{constructor(){super();S(this,"tokenType","(");this.value="(",this.mirror=")"}},Cn=class extends Pe{constructor(){super();S(this,"tokenType",")");this.value=")",this.mirror="("}},_p=class extends N{constructor(){super(...arguments);S(this,"tokenType","~=")}},vp=class extends N{constructor(){super(...arguments);S(this,"tokenType","|=")}},yp=class extends N{constructor(){super(...arguments);S(this,"tokenType","^=")}},wp=class extends N{constructor(){super(...arguments);S(this,"tokenType","$=")}},$p=class extends N{constructor(){super(...arguments);S(this,"tokenType","*=")}},kp=class extends N{constructor(){super(...arguments);S(this,"tokenType","||")}},bp=class extends N{constructor(){super(...arguments);S(this,"tokenType","EOF")}toSource(){return""}},X=class extends N{constructor(s){super();S(this,"tokenType","DELIM");S(this,"value","");this.value=W(s)}toString(){return"DELIM("+this.value+")"}toJSON(){const s=this.constructor.prototype.constructor.prototype.toJSON.call(this);return s.value=this.value,s}toSource(){return this.value==="\\"?`\\
+`:this.value}},je=class extends N{constructor(){super(...arguments);S(this,"value","")}ASCIIMatch(s){return this.value.toLowerCase()===s.toLowerCase()}toJSON(){const s=this.constructor.prototype.constructor.prototype.toJSON.call(this);return s.value=this.value,s}},Sn=class extends je{constructor(s){super();S(this,"tokenType","IDENT");this.value=s}toString(){return"IDENT("+this.value+")"}toSource(){return Xe(this.value)}},ut=class extends je{constructor(s){super();S(this,"tokenType","FUNCTION");S(this,"mirror");this.value=s,this.mirror=")"}toString(){return"FUNCTION("+this.value+")"}toSource(){return Xe(this.value)+"("}},Ap=class extends je{constructor(s){super();S(this,"tokenType","AT-KEYWORD");this.value=s}toString(){return"AT("+this.value+")"}toSource(){return"@"+Xe(this.value)}},Cp=class extends je{constructor(s){super();S(this,"tokenType","HASH");S(this,"type");this.value=s,this.type="unrestricted"}toString(){return"HASH("+this.value+")"}toJSON(){const s=this.constructor.prototype.constructor.prototype.toJSON.call(this);return s.value=this.value,s.type=this.type,s}toSource(){return this.type==="id"?"#"+Xe(this.value):"#"+Dp(this.value)}},xn=class extends je{constructor(s){super();S(this,"tokenType","STRING");this.value=s}toString(){return'"'+Tn(this.value)+'"'}},Sp=class extends je{constructor(s){super();S(this,"tokenType","URL");this.value=s}toString(){return"URL("+this.value+")"}toSource(){return'url("'+Tn(this.value)+'")'}},xp=class extends N{constructor(){super();S(this,"tokenType","NUMBER");S(this,"type");S(this,"repr");this.type="integer",this.repr=""}toString(){return this.type==="integer"?"INT("+this.value+")":"NUMBER("+this.value+")"}toJSON(){const s=super.toJSON();return s.value=this.value,s.type=this.type,s.repr=this.repr,s}toSource(){return this.repr}},Tp=class extends N{constructor(){super();S(this,"tokenType","PERCENTAGE");S(this,"repr");this.repr=""}toString(){return"PERCENTAGE("+this.value+")"}toJSON(){const s=this.constructor.prototype.constructor.prototype.toJSON.call(this);return s.value=this.value,s.repr=this.repr,s}toSource(){return this.repr+"%"}},Ip=class extends N{constructor(){super();S(this,"tokenType","DIMENSION");S(this,"type");S(this,"repr");S(this,"unit");this.type="integer",this.repr="",this.unit=""}toString(){return"DIM("+this.value+","+this.unit+")"}toJSON(){const s=this.constructor.prototype.constructor.prototype.toJSON.call(this);return s.value=this.value,s.type=this.type,s.repr=this.repr,s.unit=this.unit,s}toSource(){const s=this.repr;let t=Xe(this.unit);return t[0].toLowerCase()==="e"&&(t[1]==="-"||F(t.charCodeAt(1),48,57))&&(t="\\65 "+t.slice(1,t.length)),s+t}};function Xe(e){e=""+e;let s="";const t=e.charCodeAt(0);for(let i=0;i=128||n===45||n===95||F(n,48,57)||F(n,65,90)||F(n,97,122)?s+=e[i]:s+="\\"+e[i]}return s}function Dp(e){e=""+e;let s="";for(let t=0;t=128||i===45||i===95||F(i,48,57)||F(i,65,90)||F(i,97,122)?s+=e[t]:s+="\\"+i.toString(16)+" "}return s}function Tn(e){e=""+e;let s="";for(let t=0;t!(i!=null&&i.includes(s||""))&&e.hasAttribute(t))}function Dn(e){return!Number.isNaN(Number(String(e.getAttribute("tabindex"))))}function Lp(e){return!Nn(e)&&(Mp(e)||Dn(e))}function Mp(e){const s=H(e);return["BUTTON","DETAILS","SELECT","TEXTAREA"].includes(s)?!0:s==="A"||s==="AREA"?e.hasAttribute("href"):s==="INPUT"?!e.hidden:!1}var Ct={A:e=>e.hasAttribute("href")?"link":null,AREA:e=>e.hasAttribute("href")?"link":null,ARTICLE:()=>"article",ASIDE:()=>"complementary",BLOCKQUOTE:()=>"blockquote",BUTTON:()=>"button",CAPTION:()=>"caption",CODE:()=>"code",DATALIST:()=>"listbox",DD:()=>"definition",DEL:()=>"deletion",DETAILS:()=>"group",DFN:()=>"term",DIALOG:()=>"dialog",DT:()=>"term",EM:()=>"emphasis",FIELDSET:()=>"group",FIGURE:()=>"figure",FOOTER:e=>st(e,wi)?null:"contentinfo",FORM:e=>yi(e)?"form":null,H1:()=>"heading",H2:()=>"heading",H3:()=>"heading",H4:()=>"heading",H5:()=>"heading",H6:()=>"heading",HEADER:e=>st(e,wi)?null:"banner",HR:()=>"separator",HTML:()=>"document",IMG:e=>e.getAttribute("alt")===""&&!e.getAttribute("title")&&!In(e)&&!Dn(e)?"presentation":"img",INPUT:e=>{const s=e.type.toLowerCase();if(s==="search")return e.hasAttribute("list")?"combobox":"searchbox";if(["email","tel","text","url",""].includes(s)){const t=gt(e,e.getAttribute("list"))[0];return t&&H(t)==="DATALIST"?"combobox":"textbox"}return s==="hidden"?null:s==="file"?"button":sf[s]||"textbox"},INS:()=>"insertion",LI:()=>"listitem",MAIN:()=>"main",MARK:()=>"mark",MATH:()=>"math",MENU:()=>"list",METER:()=>"meter",NAV:()=>"navigation",OL:()=>"list",OPTGROUP:()=>"group",OPTION:()=>"option",OUTPUT:()=>"status",P:()=>"paragraph",PROGRESS:()=>"progressbar",SEARCH:()=>"search",SECTION:e=>yi(e)?"region":null,SELECT:e=>e.hasAttribute("multiple")||e.size>1?"listbox":"combobox",STRONG:()=>"strong",SUB:()=>"subscript",SUP:()=>"superscript",SVG:()=>"img",TABLE:()=>"table",TBODY:()=>"rowgroup",TD:e=>{const s=st(e,"table"),t=s?Vt(s):"";return t==="grid"||t==="treegrid"?"gridcell":"cell"},TEXTAREA:()=>"textbox",TFOOT:()=>"rowgroup",TH:e=>{const s=e.getAttribute("scope");if(s==="col"||s==="colgroup")return"columnheader";if(s==="row"||s==="rowgroup")return"rowheader";const t=e.nextElementSibling,i=e.previousElementSibling,n=!!e.parentElement&&H(e.parentElement)==="TR"?e.parentElement:void 0;if(!t&&!i){if(n){const r=st(n,"table");if(r&&r.rows.length<=1)return null}return"columnheader"}return $i(t)&&$i(i)?"columnheader":ki(t)||ki(i)?"rowheader":"columnheader"},THEAD:()=>"rowgroup",TIME:()=>"time",TR:()=>"row",UL:()=>"list"};function $i(e){return!!e&&H(e)==="TH"}function ki(e){var s;return!e||H(e)!=="TD"?!1:!!(((s=e.textContent)==null?void 0:s.trim())||e.children.length>0)}var Pp={DD:["DL","DIV"],DIV:["DL"],DT:["DL","DIV"],LI:["OL","UL"],TBODY:["TABLE"],TD:["TR"],TFOOT:["TABLE"],TH:["TR"],THEAD:["TABLE"],TR:["THEAD","TBODY","TFOOT","TABLE"]};function bi(e){var i;const s=((i=Ct[H(e)])==null?void 0:i.call(Ct,e))||"";if(!s)return null;let t=e;for(;t;){const n=Qe(t),r=Pp[H(t)];if(!r||!n||!r.includes(H(n)))break;const o=Vt(n);if((o==="none"||o==="presentation")&&!En(n,o))return o;t=n}return s}var jp=["alert","alertdialog","application","article","banner","blockquote","button","caption","cell","checkbox","code","columnheader","combobox","complementary","contentinfo","definition","deletion","dialog","directory","document","emphasis","feed","figure","form","generic","grid","gridcell","group","heading","img","insertion","link","list","listbox","listitem","log","main","mark","marquee","math","meter","menu","menubar","menuitem","menuitemcheckbox","menuitemradio","navigation","none","note","option","paragraph","presentation","progressbar","radio","radiogroup","region","row","rowgroup","rowheader","scrollbar","search","searchbox","separator","slider","spinbutton","status","strong","subscript","superscript","switch","tab","table","tablist","tabpanel","term","textbox","time","timer","toolbar","tooltip","tree","treegrid","treeitem"];function Vt(e){return(e.getAttribute("role")||"").split(" ").map(t=>t.trim()).find(t=>jp.includes(t))||null}function En(e,s){return In(e,s)||Lp(e)}function ne(e){const s=Vt(e);if(!s)return bi(e);if(s==="none"||s==="presentation"){const t=bi(e);if(En(e,t))return t}return s}function Ln(e){return e===null?void 0:e.toLowerCase()==="true"}function Mn(e){return["STYLE","SCRIPT","NOSCRIPT","TEMPLATE"].includes(H(e))}function pe(e){if(Mn(e))return!0;const s=we(e),t=e.nodeName==="SLOT";if((s==null?void 0:s.display)==="contents"&&!t){for(let n=e.firstChild;n;n=n.nextSibling)if(n.nodeType===1&&!pe(n)||n.nodeType===3&&kn(n))return!1;return!0}return!(e.nodeName==="OPTION"&&!!e.closest("select"))&&!t&&!$n(e,s)?!0:Pn(e)}function Pn(e){let s=ae==null?void 0:ae.get(e);if(s===void 0){if(s=!1,e.parentElement&&e.parentElement.shadowRoot&&!e.assignedSlot&&(s=!0),!s){const t=we(e);s=!t||t.display==="none"||Ln(e.getAttribute("aria-hidden"))===!0}if(!s){const t=Qe(e);t&&(s=Pn(t))}ae==null||ae.set(e,s)}return s}function gt(e,s){if(!s)return[];const t=Kh(e);if(!t)return[];try{const i=s.split(" ").filter(r=>!!r),n=[];for(const r of i){const o=t.querySelector("#"+CSS.escape(r));o&&!n.includes(o)&&n.push(o)}return n}catch{return[]}}function de(e){return e.trim()}function Rp(e){return e.split("\xA0").map(s=>s.replace(/\r\n/g,`
+`).replace(/[\u200b\u00ad]/g,"").replace(/\s\s*/g," ")).join("\xA0").trim()}function Ai(e,s){const t=[...e.querySelectorAll(s)];for(const i of gt(e,e.getAttribute("aria-owns")))i.matches(s)&&t.push(i),t.push(...i.querySelectorAll(s));return t}function We(e,s){const t=s==="::before"?Ke:s==="::after"?Ge:qe;if(t!=null&&t.has(e))return t==null?void 0:t.get(e);const i=we(e,s);let n;if(i){const r=i.content;r&&r!=="none"&&r!=="normal"&&i.display!=="none"&&i.visibility!=="hidden"&&(n=Op(e,r,!!s))}return s&&n!==void 0&&((i==null?void 0:i.display)||"inline")!=="inline"&&(n=" "+n+" "),t&&t.set(e,n),n}function Op(e,s,t){if(!(!s||s==="none"||s==="normal"))try{let i=rp(s).filter(a=>!(a instanceof An));const n=i.findIndex(a=>a instanceof X&&a.value==="/");if(n!==-1)i=i.slice(n+1);else if(!t)return;const r=[];let o=0;for(;ofe(p,{...s,embeddedInLabelledBy:{element:p,hidden:pe(p)},embeddedInDescribedBy:void 0,embeddedInTargetElement:void 0,embeddedInLabel:void 0,embeddedInNativeTextAlternative:void 0})).join(" ");if(u)return u}const n=ne(e)||"",r=H(e);if(!!s.embeddedInLabel||!!s.embeddedInLabelledBy||s.embeddedInTargetElement==="descendant"){const u=[...e.labels||[]].includes(e),p=(i||[]).includes(e);if(!u&&!p){if(n==="textbox")return s.visitedElements.add(e),r==="INPUT"||r==="TEXTAREA"?e.value:e.textContent||"";if(["combobox","listbox"].includes(n)){s.visitedElements.add(e);let g;if(r==="SELECT")g=[...e.selectedOptions],!g.length&&e.options.length&&g.push(e.options[0]);else{const _=n==="combobox"?Ai(e,"*").find(v=>ne(v)==="listbox"):e;g=_?Ai(_,'[aria-selected="true"]').filter(v=>ne(v)==="option"):[]}return!g.length&&r==="INPUT"?e.value:g.map(_=>fe(_,t)).join(" ")}if(["progressbar","scrollbar","slider","spinbutton","meter"].includes(n))return s.visitedElements.add(e),e.hasAttribute("aria-valuetext")?e.getAttribute("aria-valuetext")||"":e.hasAttribute("aria-valuenow")?e.getAttribute("aria-valuenow")||"":e.getAttribute("value")||"";if(["menu"].includes(n))return s.visitedElements.add(e),""}}const o=e.getAttribute("aria-label")||"";if(de(o))return s.visitedElements.add(e),o;if(!["presentation","none"].includes(n)){if(r==="INPUT"&&["button","submit","reset"].includes(e.type)){s.visitedElements.add(e);const u=e.value||"";return de(u)?u:e.type==="submit"?"Submit":e.type==="reset"?"Reset":e.getAttribute("title")||""}if(r==="INPUT"&&e.type==="file"){s.visitedElements.add(e);const u=e.labels||[];return u.length&&!s.embeddedInLabelledBy?Oe(u,s):"Choose File"}if(r==="INPUT"&&e.type==="image"){s.visitedElements.add(e);const u=e.labels||[];if(u.length&&!s.embeddedInLabelledBy)return Oe(u,s);const p=e.getAttribute("alt")||"";if(de(p))return p;const g=e.getAttribute("title")||"";return de(g)?g:"Submit"}if(!i&&r==="BUTTON"){s.visitedElements.add(e);const u=e.labels||[];if(u.length)return Oe(u,s)}if(!i&&r==="OUTPUT"){s.visitedElements.add(e);const u=e.labels||[];return u.length?Oe(u,s):e.getAttribute("title")||""}if(!i&&(r==="TEXTAREA"||r==="SELECT"||r==="INPUT")){s.visitedElements.add(e);const u=e.labels||[];if(u.length)return Oe(u,s);const p=r==="INPUT"&&["text","password","search","tel","email","url"].includes(e.type)||r==="TEXTAREA",g=e.getAttribute("placeholder")||"",_=e.getAttribute("title")||"";return!p||_?_:g}if(!i&&r==="FIELDSET"){s.visitedElements.add(e);for(let p=e.firstElementChild;p;p=p.nextElementSibling)if(H(p)==="LEGEND")return fe(p,{...t,embeddedInNativeTextAlternative:{element:p,hidden:pe(p)}});return e.getAttribute("title")||""}if(!i&&r==="FIGURE"){s.visitedElements.add(e);for(let p=e.firstElementChild;p;p=p.nextElementSibling)if(H(p)==="FIGCAPTION")return fe(p,{...t,embeddedInNativeTextAlternative:{element:p,hidden:pe(p)}});return e.getAttribute("title")||""}if(r==="IMG"){s.visitedElements.add(e);const u=e.getAttribute("alt")||"";return de(u)?u:e.getAttribute("title")||""}if(r==="TABLE"){s.visitedElements.add(e);for(let p=e.firstElementChild;p;p=p.nextElementSibling)if(H(p)==="CAPTION")return fe(p,{...t,embeddedInNativeTextAlternative:{element:p,hidden:pe(p)}});const u=e.getAttribute("summary")||"";if(u)return u}if(r==="AREA"){s.visitedElements.add(e);const u=e.getAttribute("alt")||"";return de(u)?u:e.getAttribute("title")||""}if(r==="SVG"||e.ownerSVGElement){s.visitedElements.add(e);for(let u=e.firstElementChild;u;u=u.nextElementSibling)if(H(u)==="TITLE"&&u.ownerSVGElement)return fe(u,{...t,embeddedInLabelledBy:{element:u,hidden:pe(u)}})}if(e.ownerSVGElement&&r==="A"){const u=e.getAttribute("xlink:title")||"";if(de(u))return s.visitedElements.add(e),u}}const a=r==="SUMMARY"&&!["presentation","none"].includes(n);if(Up(n,s.embeddedInTargetElement==="descendant")||a||!!s.embeddedInLabelledBy||!!s.embeddedInDescribedBy||!!s.embeddedInLabel||!!s.embeddedInNativeTextAlternative){s.visitedElements.add(e);const u=Hp(e,t);if(s.embeddedInTargetElement==="self"?de(u):u)return u}if(!["presentation","none"].includes(n)||r==="IFRAME"){s.visitedElements.add(e);const u=e.getAttribute("title")||"";if(de(u))return u}return s.visitedElements.add(e),""}function Hp(e,s){const t=[],i=(r,o)=>{var a;if(!(o&&r.assignedSlot))if(r.nodeType===1){const l=((a=we(r))==null?void 0:a.display)||"inline";let c=fe(r,s);(l!=="inline"||r.nodeName==="BR")&&(c=" "+c+" "),t.push(c)}else r.nodeType===3&&t.push(r.textContent||"")};t.push(We(e,"::before")||"");const n=We(e);if(n!==void 0)t.push(n);else{const r=e.nodeName==="SLOT"?e.assignedNodes():[];if(r.length)for(const o of r)i(o,!1);else{for(let o=e.firstChild;o;o=o.nextSibling)i(o,!0);if(e.shadowRoot)for(let o=e.shadowRoot.firstChild;o;o=o.nextSibling)i(o,!0);for(const o of gt(e,e.getAttribute("aria-owns")))i(o,!0)}}return t.push(We(e,"::after")||""),t.join("")}var jn=["gridcell","option","row","tab","rowheader","columnheader","treeitem"];function Wp(e){return H(e)==="OPTION"?e.selected:jn.includes(ne(e)||"")?Ln(e.getAttribute("aria-selected"))===!0:!1}var Rn=["checkbox","menuitemcheckbox","option","radio","switch","menuitemradio","treeitem"];function Vp(e){const s=Yp(e,!0);return s==="error"?!1:s}function Yp(e,s){const t=H(e);if(s&&t==="INPUT"&&e.indeterminate)return"mixed";if(t==="INPUT"&&["checkbox","radio"].includes(e.type))return e.checked;if(Rn.includes(ne(e)||"")){const i=e.getAttribute("aria-checked");return i==="true"?!0:s&&i==="mixed"?"mixed":!1}return"error"}var On=["button"];function qp(e){if(On.includes(ne(e)||"")){const s=e.getAttribute("aria-pressed");if(s==="true")return!0;if(s==="mixed")return"mixed"}return!1}var zn=["application","button","checkbox","combobox","gridcell","link","listbox","menuitem","row","rowheader","tab","treeitem","columnheader","menuitemcheckbox","menuitemradio","rowheader","switch"];function Kp(e){if(H(e)==="DETAILS")return e.open;if(zn.includes(ne(e)||"")){const s=e.getAttribute("aria-expanded");return s===null?void 0:s==="true"}}var Un=["heading","listitem","row","treeitem"];function Gp(e){const s={H1:1,H2:2,H3:3,H4:4,H5:5,H6:6}[H(e)];if(s)return s;if(Un.includes(ne(e)||"")){const t=e.getAttribute("aria-level"),i=t===null?Number.NaN:Number(t);if(Number.isInteger(i)&&i>=1)return i}return 0}var Bn=["application","button","composite","gridcell","group","input","link","menuitem","scrollbar","separator","tab","checkbox","columnheader","combobox","grid","listbox","menu","menubar","menuitemcheckbox","menuitemradio","option","radio","radiogroup","row","rowheader","searchbox","select","slider","spinbutton","switch","tablist","textbox","toolbar","tree","treegrid","treeitem"];function Jp(e){return Nn(e)||Fn(e)}function Nn(e){return["BUTTON","INPUT","SELECT","TEXTAREA","OPTION","OPTGROUP"].includes(H(e))&&(e.hasAttribute("disabled")||Qp(e)||Xp(e))}function Qp(e){return H(e)==="OPTION"&&!!e.closest("OPTGROUP[DISABLED]")}function Xp(e){const s=e==null?void 0:e.closest("FIELDSET[DISABLED]");if(!s)return!1;const t=s.querySelector(":scope > LEGEND");return!t||!t.contains(e)}function Fn(e,s=!1){if(!e)return!1;if(s||Bn.includes(ne(e)||"")){const t=(e.getAttribute("aria-disabled")||"").toLowerCase();return t==="true"?!0:t==="false"?!1:Fn(Qe(e),!0)}return!1}function Oe(e,s){return[...e].map(t=>fe(t,{...s,embeddedInLabel:{element:t,hidden:pe(t)},embeddedInNativeTextAlternative:void 0,embeddedInLabelledBy:void 0,embeddedInDescribedBy:void 0,embeddedInTargetElement:void 0})).filter(t=>!!t).join(" ")}function Zp(e){const s=Je;let t=e,i;const n=[];for(;t;t=Qe(t)){const r=s.get(t);if(r!==void 0){i=r;break}n.push(t);const o=we(t);if(!o){i=!0;break}const a=o.pointerEvents;if(a){i=a!=="none";break}}i===void 0&&(i=!0);for(const r of n)s.set(r,i);return i}var Ve,Ye,ae,qe,Ke,Ge,Je,Hn=0;function ef(){Jh(),++Hn,Ve!=null||(Ve=new Map),Ye!=null||(Ye=new Map),ae!=null||(ae=new Map),qe!=null||(qe=new Map),Ke!=null||(Ke=new Map),Ge!=null||(Ge=new Map),Je!=null||(Je=new Map)}function tf(){--Hn||(Ve=void 0,Ye=void 0,ae=void 0,qe=void 0,Ke=void 0,Ge=void 0,Je=void 0),Qh()}var sf={button:"button",checkbox:"checkbox",image:"button",number:"spinbutton",radio:"radio",range:"slider",reset:"button",submit:"button"},nf=0;function Wn(e){const s=e.boxes;return e.mode==="ai"?{visibility:"ariaOrVisible",refs:"interactable",refPrefix:e.refPrefix,includeGenericRole:!0,renderActive:!e.doNotRenderActive,renderCursorPointer:!0,renderBoxes:s}:e.mode==="autoexpect"?{visibility:"ariaAndVisible",refs:"none",renderBoxes:s}:e.mode==="codegen"?{visibility:"aria",refs:"none",renderStringsAsRegex:!0,renderBoxes:s}:{visibility:"aria",refs:"none",renderBoxes:s}}function rf(e,s){const t=Wn(s),i=new Set,n={root:{role:"fragment",name:"",children:[],props:{},box:pt(e),receivesPointerEvents:!0},elements:new Map,refs:new Map,iframeRefs:[]};Rt(n.root,e);const r=(a,l,c)=>{if(i.has(l))return;if(i.add(l),l.nodeType===Node.TEXT_NODE&&l.nodeValue){if(!c)return;const _=l.nodeValue;a.role!=="textbox"&&_&&a.children.push(l.nodeValue||"");return}if(l.nodeType!==Node.ELEMENT_NODE)return;const d=l,h=!pe(d);let u=h;if(t.visibility==="ariaOrVisible"&&(u=h||jt(d)),t.visibility==="ariaAndVisible"&&(u=h&&jt(d)),t.visibility==="aria"&&!u)return;const p=[];if(d.hasAttribute("aria-owns")){const _=d.getAttribute("aria-owns").split(/\s+/);for(const v of _){const y=e.ownerDocument.getElementById(v);y&&p.push(y)}}const g=u?of(d,t):null;g&&(g.ref&&(n.elements.set(g.ref,d),n.refs.set(d,g.ref),g.role==="iframe"&&n.iframeRefs.push(g.ref)),a.children.push(g)),o(g||a,d,p,u)};function o(a,l,c,d){var g;const u=(((g=we(l))==null?void 0:g.display)||"inline")!=="inline"||l.nodeName==="BR"?" ":"";u&&a.children.push(u),a.children.push(We(l,"::before")||"");const p=l.nodeName==="SLOT"?l.assignedNodes():[];if(p.length)for(const _ of p)r(a,_,d);else{for(let _=l.firstChild;_;_=_.nextSibling)_.assignedSlot||r(a,_,d);if(l.shadowRoot)for(let _=l.shadowRoot.firstChild;_;_=_.nextSibling)r(a,_,d)}for(const _ of c)r(a,_,d);if(a.children.push(We(l,"::after")||""),u&&a.children.push(u),a.children.length===1&&a.name===a.children[0]&&(a.children=[]),a.role==="link"&&l.hasAttribute("href")){const _=l.getAttribute("href");a.props.url=_}if(a.role==="textbox"&&l.hasAttribute("placeholder")&&l.getAttribute("placeholder")!==a.name){const _=l.getAttribute("placeholder");a.props.placeholder=_}}ef();try{r(n.root,e,!0)}finally{tf()}return lf(n.root),af(n.root),n}function Ci(e,s){var n;if(s.refs==="none"||s.refs==="interactable"&&(!e.box.visible||!e.receivesPointerEvents))return;const t=qn(e);let i=t._ariaRef;(!i||i.role!==e.role||i.name!==e.name)&&(i={role:e.role,name:e.name,ref:((n=s.refPrefix)!=null?n:"")+"e"+ ++nf},t._ariaRef=i),e.ref=i.ref}function of(e,s){var c;const t=e.ownerDocument.activeElement===e;if(e.nodeName==="IFRAME"){const d={role:"iframe",name:"",children:[],props:{},box:pt(e),receivesPointerEvents:!0,active:t};return Rt(d,e),Ci(d,s),d}const i=s.includeGenericRole?"generic":null,n=(c=ne(e))!=null?c:i;if(!n||n==="presentation"||n==="none")return null;const r=yn(Bp(e,!1)||""),o=Zp(e),a=pt(e);if(n==="generic"&&a.inline&&e.childNodes.length===1&&e.childNodes[0].nodeType===Node.TEXT_NODE)return null;const l={role:n,name:r,children:[],props:{},box:a,receivesPointerEvents:o,active:t};if(Rt(l,e),Ci(l,s),Rn.includes(n)&&(l.checked=Vp(e)),Bn.includes(n)&&(l.disabled=Jp(e)),zn.includes(n)&&(l.expanded=Kp(e)),Np.includes(n)){const d=Fp(e);l.invalid=d==="false"?!1:d==="true"?!0:d}return Un.includes(n)&&(l.level=Gp(e)),On.includes(n)&&(l.pressed=qp(e)),jn.includes(n)&&(l.selected=Wp(e)),(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)&&e.type!=="checkbox"&&e.type!=="radio"&&e.type!=="file"&&(l.children=[e.value]),l}function af(e){const s=t=>{const i=[];for(const r of t.children||[]){if(typeof r=="string"){i.push(r);continue}const o=s(r);i.push(...o)}return t.role==="generic"&&!t.name&&i.length<=1&&i.every(r=>typeof r!="string"&&!!r.ref)?i:(t.children=i,[t])};s(e)}function lf(e){const s=(i,n)=>{if(!i.length)return;const r=yn(i.join(""));r&&n.push(r),i.length=0},t=i=>{const n=[],r=[];for(const o of i.children||[])typeof o=="string"?r.push(o):(s(r,n),t(o),n.push(o));s(r,n),i.children=n.length?n:[],i.children.length===1&&i.children[0]===i.name&&(i.children=[])};t(e)}function Vn(e,s=new Map){e!=null&&e.ref&&s.set(e.ref,e);for(const t of(e==null?void 0:e.children)||[])typeof t!="string"&&Vn(t,s);return s}function cf(e,s){var r;const t=Vn(s==null?void 0:s.root),i=new Map,n=(o,a)=>{let l=o.children.length===(a==null?void 0:a.children.length)&&Hh(o,a),c=l;for(let d=0;d{const r=s.get(n);if(r!=="same")if(r==="skip")for(const o of n.children)typeof o!="string"&&i(o);else t.push(n)};for(const n of e)typeof n=="string"?t.push(n):i(n);return t}function it(e){return" ".repeat(e)}function df(e,s,t){const i=Wn(s),n=[],r={},o=i.renderStringsAsRegex?pf:()=>!0,a=i.renderStringsAsRegex?hf:g=>g;let l=e.root.role==="fragment"?e.root.children:[e.root];const c=cf(e,t);t&&(l=uf(l,c));const d=(g,_)=>{if(s.depth&&_>s.depth)return;const v=bt(a(g));v&&n.push(it(_)+"- text: "+v)},h=(g,_)=>{let v=g.role;if(g.name&&g.name.length<=900){const y=a(g.name);if(y){const w=y.startsWith("/")&&y.endsWith("/")?y:JSON.stringify(y);v+=" "+w}}if(g.checked==="mixed"&&(v+=" [checked=mixed]"),g.checked===!0&&(v+=" [checked]"),g.disabled&&(v+=" [disabled]"),g.expanded&&(v+=" [expanded]"),g.active&&i.renderActive&&(v+=" [active]"),(g.invalid==="grammar"||g.invalid==="spelling")&&(v+=` [invalid=${g.invalid}]`),g.invalid===!0&&(v+=" [invalid]"),g.level&&(v+=` [level=${g.level}]`),g.pressed==="mixed"&&(v+=" [pressed=mixed]"),g.pressed===!0&&(v+=" [pressed]"),g.selected===!0&&(v+=" [selected]"),g.ref&&(v+=` [ref=${g.ref}]`,_&&ht(g)&&(v+=" [cursor=pointer]")),i.renderBoxes){const y=qn(g);if(y){const w=y.getBoundingClientRect();v+=` [box=${Math.round(w.x)},${Math.round(w.y)},${Math.round(w.width)},${Math.round(w.height)}]`}}return v},u=g=>(g==null?void 0:g.children.length)===1&&typeof g.children[0]=="string"&&!Object.keys(g.props).length?g.children[0]:void 0,p=(g,_,v)=>{if(s.depth&&_>s.depth)return;if(g.role==="iframe"&&g.ref&&(r[g.ref]=_),c.get(g)==="same"&&g.ref){n.push(it(_)+`- ref=${g.ref} [unchanged]`);return}const y=!!t&&!_,w=it(_)+"- "+(y?" ":"")+Yh(h(g,v)),b=u(g),C=!!s.depth&&_===s.depth;if(!b&&(!g.children.length||C)&&!Object.keys(g.props).length)n.push(w);else if(b!==void 0)o(g,b)?n.push(w+": "+bt(a(b))):n.push(w);else{n.push(w+":");for(const[K,Y]of Object.entries(g.props))n.push(it(_+1)+"- /"+K+": "+bt(Y));const O=!!g.ref&&v&&ht(g);for(const K of g.children)typeof K=="string"?d(o(g,K)?K:"",_+1):p(K,_+1,v&&!O)}};for(const g of l)typeof g=="string"?d(g,0):p(g,0,!!i.renderCursorPointer);return{text:n.join(`
+`),iframeDepths:r}}function hf(e){const s=[{regex:/\b[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}\b/,replacement:"[0-9a-fA-F-]+"},{regex:/\b[\d,.]+[bkmBKM]+\b/,replacement:"[\\d,.]+[bkmBKM]+"},{regex:/\b\d+[hmsp]+\b/,replacement:"\\d+[hmsp]+"},{regex:/\b[\d,.]+[hmsp]+\b/,replacement:"[\\d,.]+[hmsp]+"},{regex:/\b\d+,\d+\b/,replacement:"\\d+,\\d+"},{regex:/\b\d+\.\d{2,}\b/,replacement:"\\d+\\.\\d+"},{regex:/\b\d{2,}\.\d+\b/,replacement:"\\d+\\.\\d+"},{regex:/\b\d{2,}\b/,replacement:"\\d+"}];let t="",i=0;const n=new RegExp(s.map(r=>"("+r.regex.source+")").join("|"),"g");return e.replace(n,(r,...o)=>{const a=o[o.length-2],l=o.slice(0,-2);t+=gi(e.slice(i,a));for(let c=0;c.1}var Yn=Symbol("element");function qn(e){return e[Yn]}function Rt(e,s){e[Yn]=s}function ff(e,s){const t=Object.assign({mode:"ai"},s||{}),i=rf(e||document.body,t);return{text:df(i,t).text,elements:i.elements,refs:i.refs}}const mf={button:"button",a:"link",input:e=>{var t;switch(((t=e.type)==null?void 0:t.toLowerCase())||"text"){case"checkbox":return"checkbox";case"radio":return"radio";case"submit":case"reset":case"button":return"button";case"search":return"searchbox";case"range":return"slider";case"number":return"spinbutton";default:return"textbox"}},textarea:"textbox",select:"combobox",option:"option",h1:"heading",h2:"heading",h3:"heading",h4:"heading",h5:"heading",h6:"heading",img:"img",nav:"navigation",main:"main",article:"article",li:"listitem",td:"cell",th:"columnheader"};function St(e,s={}){var h;const t=(h=e==null?void 0:e.state)==null?void 0:h.routeName,i=s.doc||document,n=s.include_elements!==!1,r=s.interactive_only||!1,o=s.max_elements||50,a=s.offset||0,l=s.container||null,c=s.query||"",d={page_type:t||"unknown",page_url:i.location&&i.location.href||window.location.href,page_title:i.title,timestamp:Date.now(),elements:[],element_count:0,total_count:0,offset:a,has_more:!1,available_actions:gf(t,e)};if(n){const u=Kn({doc:i,interactiveOnly:r,maxElements:o,offset:a,container:l,query:c});d.elements=u.elements,d.element_count=u.elements.length,d.total_count=u.totalCount,d.has_more=u.hasMore,d.ref_map=u.refMap,d.snapshot=u.snapshot,d.refElements=u.refElements,c&&(d.query=c,d.keyword_matched=u.keywordMatched)}return d}function gf(e,s){var r;const t=[{name:"navigate_to_dashboard",description:"\u8DF3\u8F6C\u5230\u4EEA\u8868\u76D8"},{name:"navigate_to_messenger",description:"\u8DF3\u8F6C\u5230\u6D88\u606F\u9875\u9762"},{name:"navigate_to_calendar",description:"\u8DF3\u8F6C\u5230\u65E5\u5386\u9875\u9762"},{name:"navigate_to_files",description:"\u8DF3\u8F6C\u5230\u6587\u4EF6\u7BA1\u7406\u9875\u9762"}],i=[];(((r=s==null?void 0:s.state)==null?void 0:r.microApps)||[]).some(o=>o&&o.isOpen)&&i.push({name:"close_app",description:"\u5173\u95ED\u5F53\u524D\u6253\u5F00\u7684\u5E94\u7528\u7A97\u53E3"});const n=[];switch(e){case"manage-project":n.push({name:"open_task",description:"\u6253\u5F00\u4EFB\u52A1\u8BE6\u60C5",params:{task_id:"\u4EFB\u52A1ID"}});break;case"manage-messenger":n.push({name:"open_dialog",description:"\u6253\u5F00/\u5207\u6362\u5BF9\u8BDD",params:{dialog_id:"\u5BF9\u8BDDID",msg_id:"(\u53EF\u9009)\u8DF3\u8F6C\u5230\u6307\u5B9A\u6D88\u606F"}});break;case"manage-file":n.push({name:"open_folder",description:"\u6253\u5F00\u6587\u4EF6\u5939",params:{folder_id:"\u6587\u4EF6\u5939ID"}},{name:"open_file",description:"\u6253\u5F00\u6587\u4EF6\u9884\u89C8",params:{file_id:"\u6587\u4EF6ID"}});break;case"manage-dashboard":n.push({name:"open_project",description:"\u6253\u5F00/\u5207\u6362\u5230\u9879\u76EE",params:{project_id:"\u9879\u76EEID"}},{name:"open_task",description:"\u6253\u5F00\u4EFB\u52A1\u8BE6\u60C5",params:{task_id:"\u4EFB\u52A1ID"}});break;default:n.push({name:"open_project",description:"\u6253\u5F00/\u5207\u6362\u5230\u9879\u76EE",params:{project_id:"\u9879\u76EEID"}},{name:"open_task",description:"\u6253\u5F00\u4EFB\u52A1\u8BE6\u60C5",params:{task_id:"\u4EFB\u52A1ID"}},{name:"open_dialog",description:"\u6253\u5F00\u5BF9\u8BDD",params:{dialog_id:"\u5BF9\u8BDDID"}})}return[...i,...n,...t]}function Kn(e={}){const{doc:s=document,maxElements:t=50,offset:i=0,container:n=null,query:r=""}=e,o={elements:[],refMap:{},refElements:new Map,snapshot:"",totalCount:0,hasMore:!1,keywordMatched:!1};let a=s.body||s.documentElement||s;if(n&&(a=s.querySelector(n),!a))return o;let l;try{l=ff(a,{mode:"ai"})}catch{return o}const c=l.elements||new Map,d=[];for(const[w,b]of c.entries()){if(!b||!b.isConnected)continue;const C=_f(b);!C||(C.ref=w,d.push(C))}let h=d,u=!1;if(r){const w=r.toLowerCase();h=d.filter(b=>(b.name||"").toLowerCase().includes(w)||(b.placeholder||"").toLowerCase().includes(w)||(b.aria_label||"").toLowerCase().includes(w)||(b.title||"").toLowerCase().includes(w)),u=h.length>0,h.length===0&&(h=d)}const p=h.length,g=Math.min(i+t,p),_=gi.remove());let t=s.textContent||s.innerText||"";return t=t.replace(/\s+/g," ").trim(),t}function wf(e){if(e.id)return`#${e.id}`;const s=[];let t=e,i=0;for(;t&&t!==e.ownerDocument.body&&i<5;){let n=t.tagName.toLowerCase();if(t.className&&typeof t.className=="string"){const r=t.className.split(" ").filter(o=>o&&!o.startsWith("ivu-")&&!o.includes("--")&&!o.includes("active")&&!o.includes("hover")).slice(0,2);r.length&&(n+="."+r.join("."))}t.getAttribute("role")?n+=`[role="${t.getAttribute("role")}"]`:t.getAttribute("data-id")?n+=`[data-id="${t.getAttribute("data-id")}"]`:t.getAttribute("name")&&(n+=`[name="${t.getAttribute("name")}"]`),s.unshift(n),t=t.parentElement,i++}return s.join(" > ")}async function $f(e,s,t,i=10){var r;if(!s||!t||t.length===0)return[];const n=t.filter(o=>o.name&&o.name.trim()).map(o=>({ref:o.ref,name:o.name}));if(n.length===0)return[];try{const o=await e.dispatch("call",{url:"assistant/match_elements",method:"post",data:{query:s,elements:n,top_k:i}}),a=(r=o==null?void 0:o.data)==null?void 0:r.matches;if(a&&a.length>0){const l=a.map(c=>c.element.ref);return t.filter(c=>l.includes(c.ref)).sort((c,d)=>l.indexOf(c.ref)-l.indexOf(d.ref))}}catch{}return[]}typeof window!="undefined"&&(window.__testPageContext=(e={})=>{let s=document;if(e.frameSrc){const n=[...document.querySelectorAll("iframe")].find(r=>(r.src||"").includes(e.frameSrc));n&&n.contentDocument&&(s=n.contentDocument)}const t={page_url:s.location&&s.location.href||window.location.href,page_title:s.title,timestamp:Date.now()},i=Kn({doc:s,interactiveOnly:e.interactive_only||!1,maxElements:e.max_elements||50,offset:e.offset||0,container:e.container||null});return t.elements=i.elements,t.element_count=i.elements.length,t.total_count=i.totalCount,t.offset=e.offset||0,t.has_more=i.hasMore,t.ref_map=i.refMap,t});const kf="iframe.micro-app-iframe-container";function bf(e){return typeof e=="string"&&/^iframe/i.test(e)}function Af(e){var t;const s=(((t=e==null?void 0:e.state)==null?void 0:t.microApps)||[]).filter(i=>i&&i.isOpen);return s.length?s.reduce((i,n)=>(n.lastOpenAt||0)>(i.lastOpenAt||0)?n:i):null}function Cf(e){if(!e||!e.url)return null;const s=[...document.querySelectorAll(kf)];if(!s.length)return null;let t=s.find(i=>i.src===e.url);if(t)return t;try{const i=new URL(e.url,location.href).href;if(t=s.find(n=>{try{return new URL(n.src,location.href).href===i}catch{return!1}}),t)return t}catch{}return s.length===1?s[0]:null}function Gn(e,s="auto"){const t={kind:"main",scope:"main",doc:document,appName:null,label:"\u4E3B\u754C\u9762",reachable:!0,frameKey:"main"};if(s==="main")return t;const i=Af(e);if(!i)return s==="app"?{kind:"app",scope:"app",appName:null,appTitle:"",reachable:!1,reason:"no_app",frameKey:null}:t;if(!bf(i.type))return{...t,appName:i.name,appTitle:i.title||i.name};const n={kind:"app",scope:"app",appName:i.name,appTitle:i.title||i.name,frameKey:`app:${i.name}@${i.lastOpenAt||0}`},r=Cf(i);if(!r)return{...n,reachable:!1,reason:"not_ready"};try{const o=r.contentDocument;return o&&o.body&&o.body.children.length>0?{...n,reachable:!0,doc:o,label:`\u5FAE\u5E94\u7528\u300C${n.appTitle}\u300D`}:{...n,reachable:!1,reason:"not_ready"}}catch{return{...n,reachable:!1,reason:"cross_origin"}}}const Si=e=>new Promise(s=>setTimeout(s,e));function Ce(e,s){return new Error(`${e}: ${s}`)}function Sf(e){return!e||e.matches&&e.matches("input, textarea")||e.isContentEditable?e:e.querySelector&&e.querySelector('input, textarea, [contenteditable="true"], [contenteditable=""]')||e}function Ot(e,s){const t=s.InputEvent||s.Event;e.dispatchEvent(new t("input",{bubbles:!0})),e.dispatchEvent(new s.Event("change",{bubbles:!0}))}function xi(e,s,t){const i=Sf(e),n=s==null?"":String(s),r=(i.tagName||"").toLowerCase();if(i.isContentEditable){i.focus();const c=t.getSelection&&t.getSelection();if(c){const h=i.ownerDocument.createRange();h.selectNodeContents(i),c.removeAllRanges(),c.addRange(h)}if(i.ownerDocument.execCommand&&i.ownerDocument.execCommand("insertText",!1,n)||(i.textContent=n),Ot(i,t),n&&!(i.textContent||"").includes(n))throw Ce("value_not_applied","\u5BCC\u6587\u672C\u5199\u5165\u672A\u751F\u6548");return{success:!0,action:"type",value:n}}if(r!=="input"&&r!=="textarea")throw Ce("unsupported_widget","\u5143\u7D20\u4E0D\u53EF\u8F93\u5165\u6587\u672C");i.focus();const o=r==="textarea"?t.HTMLTextAreaElement.prototype:t.HTMLInputElement.prototype,a=Object.getOwnPropertyDescriptor(o,"value"),l=a&&a.set;if(l?l.call(i,n):i.value=n,Ot(i,t),i.dispatchEvent(new t.Event("blur",{bubbles:!0})),i.value!==n)throw Ce("value_not_applied","\u5199\u5165\u540E\u56DE\u8BFB\u4E0D\u4E00\u81F4");return{success:!0,action:"type",value:n}}function xf(e){if(typeof e.focus=="function")try{e.focus()}catch{}return e.click(),{success:!0,action:"click"}}async function Tf(e,s,t,i){const n=s==null?"":String(s);if((e.tagName||"").toLowerCase()==="select"){const h=[...e.options].find(u=>u.value===n||(u.textContent||"").trim()===n||(u.textContent||"").includes(n));if(!h)throw Ce("unsupported_widget",`\u539F\u751F select \u65E0\u9009\u9879 ${n}`);return e.value=h.value,Ot(e,i),{success:!0,action:"select",value:n}}e.click(),await Si(180);const o='[role="option"], [role="gridcell"], [role="menuitemradio"], .ivu-select-item, li[role]',a=[...t.querySelectorAll(o)].filter(h=>h.offsetParent!==null||h.getClientRects().length),l=a.find(h=>(h.textContent||"").trim()===n),c=a.find(h=>(h.textContent||"").trim().includes(n)),d=l||c;if(!d)throw Ce("unsupported_widget",`\u4E0B\u62C9\u672A\u6E32\u67D3\u5339\u914D\u9879 ${n}`);return d.click(),await Si(80),{success:!0,action:"select",value:n}}function If(e){const s=e.matches&&e.matches('input[type="checkbox"], input[type="radio"]')?e:e.querySelector&&e.querySelector('input[type="checkbox"], input[type="radio"]');return s?!!s.checked:(e.getAttribute&&e.getAttribute("aria-checked"))==="true"}function Tt(e,s){const t=e.matches&&e.matches('input[type="checkbox"], input[type="radio"]')?e:e.querySelector&&e.querySelector('input[type="checkbox"], input[type="radio"]');if(t)return!!t.checked!==s&&t.click(),{success:!0,action:s?"check":"uncheck",checked:!!t.checked};const i=e.getAttribute&&e.getAttribute("aria-checked");if(i!=null)return i==="true"!==s&&e.click(),{success:!0,action:s?"check":"uncheck"};throw Ce("unsupported_widget","\u975E\u590D\u9009/\u5355\u9009\u5143\u7D20")}function Df(){return{name:"web",async perform(e,s,t,i){const n=i&&i.win||e.ownerDocument.defaultView||window,r=i&&i.doc||e.ownerDocument;switch(s){case"click":return xf(e);case"type":case"fill":return xi(e,t,n);case"clear":return xi(e,"",n);case"select":return Tf(e,t,r,n);case"check":return Tt(e,!0);case"uncheck":return Tt(e,!1);case"toggle":return Tt(e,!If(e));case"focus":return e.focus(),{success:!0,action:"focus"};case"scroll":return e.scrollIntoView({behavior:"smooth",block:"center"}),{success:!0,action:"scroll"};case"hover":return e.dispatchEvent(new n.MouseEvent("mouseenter",{bubbles:!0})),e.dispatchEvent(new n.MouseEvent("mouseover",{bubbles:!0})),{success:!0,action:"hover"};default:throw Ce("not_actionable",`\u4E0D\u652F\u6301\u7684\u64CD\u4F5C: ${s}`)}}}}function Ef(){return!!(typeof window!="undefined"&&window.$A&&window.$A.isElectron&&window.electron&&typeof window.electron.sendAsync=="function")}function Lf(e){const s=e.getBoundingClientRect();return{x:Math.round(s.left+s.width/2),y:Math.round(s.top+s.height/2)}}function Mf(e,s){try{if(typeof e.select=="function"){e.select();return}if(e.isContentEditable){const t=s.getSelection&&s.getSelection();if(t){const i=e.ownerDocument.createRange();i.selectNodeContents(e),t.removeAllRanges(),t.addRange(i)}}}catch{}}function Pf(e){const s=(t,i)=>window.electron.sendAsync("pageInput",Object.assign({op:t},i));return{name:"electron",async perform(t,i,n,r){const o=r&&r.win||t.ownerDocument.defaultView||window;try{if(i==="type"||i==="fill"||i==="clear"){const a=i==="clear"||n==null?"":String(n);typeof t.focus=="function"&&t.focus(),Mf(t,o),await s("insertText",{text:a});const l=t.value!=null?t.value:t.textContent||"";if(a&&l!==a&&!(l||"").includes(a))throw new Error("value_not_applied: \u53EF\u4FE1\u8F93\u5165\u56DE\u8BFB\u4E0D\u4E00\u81F4");return{success:!0,action:"type",value:a,backend:"electron"}}if(i==="click"){const{x:a,y:l}=Lf(t);return await s("click",{x:a,y:l}),{success:!0,action:"click",backend:"electron"}}}catch{return e().perform(t,i,n,r)}return e().perform(t,i,n,r)}}}let It=null,Dt=null;function jf(){return Ef()?(Dt||(Dt=Pf(()=>Ti())),Dt):Ti()}function Ti(){return It||(It=Df()),It}function Rf(e,s){return new Of(e,s)}class Of{constructor(s,t){this.store=s,this.router=t,this.actionHandlers={open_task:this.openTask.bind(this),open_dialog:this.openDialog.bind(this),open_project:this.openProject.bind(this),open_file:this.openFile.bind(this),open_folder:this.openFolder.bind(this),navigate_to_dashboard:this.navigateToDashboard.bind(this),navigate_to_messenger:this.navigateToMessenger.bind(this),navigate_to_calendar:this.navigateToCalendar.bind(this),navigate_to_files:this.navigateToFiles.bind(this),close_app:this.closeApp.bind(this),goto_task:this.openTask.bind(this),goto_project:this.openProject.bind(this),goto_dialog:this.openDialog.bind(this),navigate_to_task:this.openTask.bind(this),navigate_to_project:this.openProject.bind(this),navigate_to_dialog:this.openDialog.bind(this)}}async executeAction(s,t={}){const{normalizedAction:i,extractedParams:n}=this.parseActionName(s),r={...n,...t},o=this.actionHandlers[i];if(!o)throw new Error(`\u4E0D\u652F\u6301\u7684\u64CD\u4F5C: ${s}\u3002\u652F\u6301\u7684\u64CD\u4F5C: ${Object.keys(this.actionHandlers).join(", ")}`);try{const a=await o(r);return{success:!0,action:i,result:a}}catch(a){throw new Error(`\u6267\u884C\u64CD\u4F5C\u5931\u8D25: ${a.message}`)}}parseActionName(s){const t=[{regex:/^(open_task|goto_task|navigate_to_task)_(\d+)$/,paramName:"task_id"},{regex:/^(open_project|goto_project|navigate_to_project)_(\d+)$/,paramName:"project_id"},{regex:/^(open_dialog|goto_dialog|navigate_to_dialog)_(\d+)$/,paramName:"dialog_id"},{regex:/^(open_file)_(\d+)$/,paramName:"file_id"},{regex:/^(open_folder)_(\d+)$/,paramName:"folder_id"}];for(const{regex:i,paramName:n}of t){const r=s.match(i);if(r)return{normalizedAction:r[1],extractedParams:{[n]:parseInt(r[2],10)}}}return{normalizedAction:s,extractedParams:{}}}async openTask(s){const t=s.task_id;if(!t)throw new Error("\u7F3A\u5C11 task_id \u53C2\u6570");return this.store.dispatch("openTask",t),{opened:!0,task_id:t}}async openDialog(s){const t=s.dialog_id;if(!t)throw new Error("\u7F3A\u5C11 dialog_id \u53C2\u6570");const i=s.msg_id?{dialog_id:t,search_msg_id:s.msg_id}:t;return this.store.dispatch("openDialog",i),{opened:!0,dialog_id:t}}async openProject(s){const t=s.project_id;if(!t)throw new Error("\u7F3A\u5C11 project_id \u53C2\u6570");return window.$A.goForward({name:"manage-project",params:{projectId:t}}),{navigated:!0,project_id:t}}async openFile(s){const t=s.file_id;if(!t)throw new Error("\u7F3A\u5C11 file_id \u53C2\u6570");return window.$A.goForward({name:"manage-file",params:{fileId:t}}),{navigated:!0,file_id:t}}async openFolder(s){const t=s.folder_id;if(!t)throw new Error("\u7F3A\u5C11 folder_id \u53C2\u6570");return window.$A.goForward({name:"manage-file",params:{folderId:t,fileId:null}}),{navigated:!0,folder_id:t}}async navigateToDashboard(){return window.$A.goForward({name:"manage-dashboard"}),{navigated:!0,page:"dashboard"}}async navigateToMessenger(){return window.$A.goForward({name:"manage-messenger"}),{navigated:!0,page:"messenger"}}async navigateToCalendar(){var s,t,i;if(!((i=(t=(s=this.store)==null?void 0:s.getters)==null?void 0:t.systemFunctionEnabled)!=null&&i.call(t,"calendar")))throw new Error("\u65E5\u5386\u529F\u80FD\u672A\u542F\u7528");return window.$A.goForward({name:"manage-calendar"}),{navigated:!0,page:"calendar"}}async navigateToFiles(){return window.$A.goForward({name:"manage-file"}),{navigated:!0,page:"files"}}async closeApp(){var t,i;if(!(((i=(t=this.store)==null?void 0:t.state)==null?void 0:i.microApps)||[]).some(n=>n&&n.isOpen))throw new Error("\u5F53\u524D\u6CA1\u6709\u6253\u5F00\u7684\u5E94\u7528");return x.emit("observeMicroApp:close"),{closed:!0}}setRefMap(s,t=null){this.currentRefElements=s instanceof Map?s:null,this.currentContext=t}resolveContextDoc(){const s=this.currentContext;if(!s||s.kind==="main"||s.frameKey==="main")return document;const t=Gn(this.store,s.scope||"auto");if(t.frameKey!==s.frameKey||!t.reachable||!t.doc)throw new Error("\u9875\u9762\u4E0A\u4E0B\u6587\u5DF2\u53D8\u66F4\uFF08\u7528\u6237\u5207\u6362\u4E86\u5E94\u7528\u6216\u5237\u65B0\u4E86\u9875\u9762\uFF09\uFF0C\u8BF7\u91CD\u65B0\u83B7\u53D6\u9875\u9762\u4E0A\u4E0B\u6587\u540E\u518D\u64CD\u4F5C");return t.doc}async executeElementAction(s,t,i){const n=this.resolveContextDoc(),r=this.findElement(s,n);if(!r)throw new Error(`element_not_found: \u627E\u4E0D\u5230\u5143\u7D20 ${s}\uFF08\u53EF\u80FD\u9875\u9762\u5DF2\u53D8\u66F4\uFF0C\u8BF7\u91CD\u65B0\u83B7\u53D6\u9875\u9762\u4E0A\u4E0B\u6587\uFF09`);const o=r.ownerDocument.defaultView||window;this.backend||(this.backend=jf());const a=await this.backend.perform(r,t,i,{doc:n,win:o,elementUid:s});return Object.assign({element:s},a)}findElement(s,t=document){let i=null;if(s.startsWith("@")?i=s.slice(1):s.startsWith("ref=")?i=s.slice(4):/^e\d+$/.test(s)&&(i=s),i&&this.currentRefElements){const n=this.currentRefElements.get(i);if(n&&n.isConnected)return n;if(n&&!n.isConnected)return null}try{const n=t.querySelector(s);if(n)return n}catch{}return null}delay(s){return new Promise(t=>setTimeout(t,s))}}function zf(e={}){return new Uf(e)}class Uf{constructor(s){this.store=s.store,this.router=s.router,this.executor=null}ensureExecutor(){return this.executor||(this.executor=Rf(this.store,this.router)),this.executor}async handleRequest(s,t){switch(s){case"get_page_context":return this.getPageContext(t);case"execute_action":return this.executeAction(t);case"execute_element_action":return this.executeElementAction(t);default:throw new Error(`\u672A\u77E5\u7684\u64CD\u4F5C\u7C7B\u578B: ${s}`)}}async getPageContext(s){this.ensureExecutor();const t=(s==null?void 0:s.include_elements)!==!1,i=(s==null?void 0:s.interactive_only)||!1,n=(s==null?void 0:s.max_elements)||100,r=(s==null?void 0:s.query)||"",o=(s==null?void 0:s.offset)||0,a=(s==null?void 0:s.container)||null,l=(s==null?void 0:s.scope)||"auto",c=Gn(this.store,l);if(c.kind==="app"&&!c.reachable){const u=c.reason==="cross_origin"?"\u5F53\u524D\u5E94\u7528\u4E3A\u8DE8\u6E90\u9875\u9762\uFF0C\u65E0\u6CD5\u8BFB\u53D6\u5176\u5185\u90E8\u5143\u7D20":c.reason==="no_app"?"\u5F53\u524D\u6CA1\u6709\u6253\u5F00\u4EFB\u4F55\u5FAE\u5E94\u7528":"\u5F53\u524D\u5E94\u7528\u5C1A\u672A\u52A0\u8F7D\u5B8C\u6210",p=St(this.store,{include_elements:!1});return p.elements=[],p.element_count=0,p.total_count=0,p.has_more=!1,p.frame={scope:"app",app_name:c.appName||null,operable:!1,reachable:!1,reason:c.reason},p.hint=`${u}\u3002\u53EF\u6539\u7528\u4E3B\u754C\u9762\uFF08scope=main\uFF09\u64CD\u4F5C\uFF0C\u6216\u6539\u7528\u6570\u636E\u547D\u4EE4\u5B8C\u6210\u3002`,this.executor.setRefMap(new Map,null),p}const d=c.doc||document;let h=St(this.store,{doc:d,include_elements:t,interactive_only:i,max_elements:n,offset:o,container:a,query:r});if(r&&!h.keyword_matched){const u=St(this.store,{doc:d,include_elements:!0,interactive_only:i,max_elements:200,offset:0,container:a});if(u.elements.length>0){const p=await $f(this.store,r,u.elements,10);if(p.length>0){h.elements=p,h.element_count=p.length,h.total_count=p.length,h.has_more=!1,h.vector_matched=!0,h.refElements=u.refElements,h.ref_map={};for(const g of p)g.ref&&(h.ref_map[g.ref]={role:g.role,name:g.name})}}}return h.frame={scope:c.scope,app_name:c.appName||null,operable:!0},h.refElements&&this.executor&&this.executor.setRefMap(h.refElements,c),delete h.refElements,h}async executeAction(s){this.ensureExecutor();const t=s==null?void 0:s.name,i=(s==null?void 0:s.params)||{};if(!t)throw new Error("\u7F3A\u5C11\u64CD\u4F5C\u540D\u79F0");return this.executor.executeAction(t,i)}async executeElementAction(s){this.ensureExecutor();const t=s==null?void 0:s.element_uid,i=s==null?void 0:s.action,n=s==null?void 0:s.value;if(!t||!i)throw new Error("\u7F3A\u5C11\u5FC5\u8981\u53C2\u6570");return this.executor.executeElementAction(t,i,n)}}function Bf(e){return`aiAssistant.floatButtonVisible.${e}`}function Nf(e){return e<=0?Promise.resolve(!0):$A.IDBBoolean(Bf(e),!0).catch(()=>!0)}var Ff=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("transition",{attrs:{name:"fade"}},[e.visible?t("div",{staticClass:"ai-float-button-wrapper",class:e.wrapperClass,style:e.wrapperStyle,on:{mouseenter:e.onMouseEnter,mouseleave:e.onMouseLeave}},[t("div",{ref:"floatBtn",staticClass:"ai-float-button",class:e.btnClass,style:e.btnStyle,on:{mousedown:function(i){return i.stopPropagation(),i.preventDefault(),e.onMouseDown.apply(null,arguments)},touchstart:function(i){return i.stopPropagation(),e.onTouchStart.apply(null,arguments)}}},[t("svg",{staticClass:"ai-float-button-icon no-dark-content",attrs:{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M385.80516777 713.87417358c-12.76971517 0-24.13100586-7.79328205-28.82575409-19.62404756l-48.91927648-123.9413531c-18.40341303-46.75969229-55.77360888-84.0359932-102.53330118-102.53330117l-123.94135309-48.91927649c-11.83076552-4.69474822-19.62404757-16.05603892-19.62404757-28.8257541s7.79328205-24.13100586 19.62404757-28.82575407l123.94135309-48.91927649c46.75969229-18.40341303 84.0359932-55.77360888 102.53330118-102.53330119l48.91927648-123.94135308c4.69474822-11.83076552 16.05603892-19.62404757 28.8257541-19.62404757s24.13100586 7.79328205 28.82575408 19.62404757l48.91927648 123.94135308c18.40341303 46.75969229 55.77360888 84.0359932 102.53330118 102.53330119l123.94135309 48.91927649c11.83076552 4.69474822 19.62404757 16.05603892 19.62404757 28.82575407 0 12.76971517-7.79328205 24.13100586-19.62404757 28.8257541l-123.94135309 48.91927649c-46.75969229 18.40341303-84.0359932 55.77360888-102.53330118 102.53330117l-48.91927648 123.9413531c-4.69474822 11.83076552-16.14993388 19.62404757-28.82575408 19.62404756zM177.45224165 390.12433614l50.89107073 20.0935224c62.62794129 24.69437565 112.67395736 74.74039171 137.368333 137.36833299l20.09352239 50.89107073 20.0935224-50.89107073c24.69437565-62.62794129 74.74039171-112.67395736 137.368333-137.36833299l50.89107072-20.0935224-50.89107073-20.09352239c-62.62794129-24.69437565-112.67395736-74.74039171-137.36833299-137.36833301l-20.09352239-50.89107074-20.0935224 50.89107074c-24.69437565 62.62794129-74.74039171 112.67395736-137.368333 137.36833301l-50.89107073 20.09352239zM771.33789183 957.62550131c-12.76971517 0-24.13100586-7.79328205-28.82575409-19.62404758l-26.6661699-67.6043744c-8.63833672-21.87752672-26.10280012-39.34199011-47.98032684-47.98032684l-67.60437441-26.6661699c-11.83076552-4.69474822-19.62404757-16.05603892-19.62404757-28.82575409s7.79328205-24.13100586 19.62404757-28.82575409l67.60437441-26.6661699c21.87752672-8.63833672 39.34199011-26.10280012 47.98032684-47.98032685l26.6661699-67.6043744c4.69474822-11.83076552 16.05603892-19.62404757 28.82575409-19.62404757s24.13100586 7.79328205 28.82575409 19.62404757l26.66616991 67.6043744c8.63833672 21.87752672 26.10280012 39.34199011 47.98032684 47.98032685l67.6043744 26.6661699c11.83076552 4.69474822 19.62404757 16.05603892 19.62404757 28.82575409s-7.79328205 24.13100586-19.62404757 28.82575409l-67.6043744 26.6661699c-21.87752672 8.63833672-39.34199011 26.10280012-47.98032684 47.98032684l-26.66616991 67.6043744c-4.69474822 11.83076552-16.14993388 19.62404757-28.82575409 19.62404758z m-75.58544639-190.70067281c33.61439727 14.83540438 60.75004201 41.87715415 75.49155143 75.49155143 14.83540438-33.61439727 41.87715415-60.75004201 75.49155142-75.49155143-33.61439727-14.83540438-60.75004201-41.87715415-75.49155142-75.49155143-14.74150942 33.61439727-41.87715415 60.75004201-75.49155143 75.49155143z"}})])])]):e._e()])},Hf=[];const Wf={name:"AIAssistantFloatButton",data(){return{position:{x:24,y:24,fromRight:!0,fromBottom:!0,collapsed:!1},dragging:!1,positionLoaded:!1,visibilityLoaded:!1,floatButtonVisible:!0,cacheKey:"aiAssistant.floatButtonPosition",btnSize:44,collapsedHeight:48,collapseThreshold:12,collapseDelayDesktop:1e3,collapseDelayMobile:5e3,collapseTimer:null,record:{},operationModule:null,operationSessionId:null}},computed:{...ye(["aiVisible"]),visible(){var e;return this.aiVisible&&this.userId>0&&this.positionLoaded&&this.visibilityLoaded&&this.floatButtonVisible&&this.routeName!=="login"&&!((e=this.$parent)!=null&&e.showModal)},collapsed(){return this.position.collapsed},clientWidth(){return this.windowWidth||document.documentElement.clientWidth},clientHeight(){return this.windowHeight||document.documentElement.clientHeight},wrapperWidth(){return this.btnSize+this.position.x},wrapperLeft(){return this.position.fromRight?this.clientWidth-this.wrapperWidth:0},wrapperTop(){return(this.position.fromBottom?this.clientHeight-this.btnSize/2-this.position.y:this.position.y+this.btnSize/2)-this.wrapperHeight/2},wrapperClass(){return{"is-left":!this.position.fromRight,"is-right":this.position.fromRight,"is-dragging":this.dragging,"is-collapsed":this.collapsed}},wrapperHeight(){return this.collapsed?this.collapsedHeight:this.btnSize},wrapperStyle(){var e;return{left:`${this.wrapperLeft}px`,top:`${this.wrapperTop}px`,width:`${this.wrapperWidth}px`,height:`${this.wrapperHeight}px`,zIndex:((e=this.$parent)==null?void 0:e.topZIndex)||2e3}},btnClass(){return{"is-collapsed":this.collapsed}},btnStyle(){return this.collapsed?{transform:"translateX(0)"}:{transform:`translateX(${this.position.fromRight?-this.position.x:this.position.x}px)`}}},mounted(){this.loadPosition(),window.addEventListener("resize",this.onResize),x.on("openAIAssistantGlobal",this.onClick),x.on("aiAssistantClosed",this.onAssistantClosed),x.on("aiOperationRequest",this.onOperationRequest),x.on("aiAssistantFloatButtonVisibilityChanged",this.onVisibilityChanged),this.initOperationModule()},beforeDestroy(){window.removeEventListener("resize",this.onResize),x.off("openAIAssistantGlobal",this.onClick),x.off("aiAssistantClosed",this.onAssistantClosed),x.off("aiOperationRequest",this.onOperationRequest),x.off("aiAssistantFloatButtonVisibilityChanged",this.onVisibilityChanged),document.removeEventListener("mousemove",this.onMouseMove),document.removeEventListener("mouseup",this.onMouseUp),document.removeEventListener("contextmenu",this.onContextMenu),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd),document.removeEventListener("touchcancel",this.onTouchEnd),this.clearCollapseTimer(),this.destroyOperationModule()},watch:{userId:{handler(e){this.loadVisibility(e)},immediate:!0}},methods:{async loadVisibility(e){this.visibilityLoaded=!1;const s=await Nf(e);this.userId===e&&(this.floatButtonVisible=s,this.visibilityLoaded=e>0)},onVisibilityChanged({userId:e,visible:s}){this.userId===e&&(this.floatButtonVisible=s,this.visibilityLoaded=!0)},async loadPosition(){var e;try{const s=await $A.IDBString(this.cacheKey);if(s){const t=JSON.parse(s);if(t&&typeof t.x=="number"&&typeof t.y=="number"){this.position={...t,collapsed:(e=t.collapsed)!=null?e:!1},this.$nextTick(()=>{this.checkBounds(),this.positionLoaded=!0,this.scheduleCollapse()});return}}}catch{}this.position=this.windowPortrait?{x:12,y:Math.max(Math.round(this.clientHeight/4),100),fromRight:!0,fromBottom:!0,collapsed:!1}:{x:24,y:100,fromRight:!0,fromBottom:!0,collapsed:!1},this.positionLoaded=!0,this.scheduleCollapse()},savePosition(){$A.IDBSave(this.cacheKey,JSON.stringify(this.position))},updatePositionFromCoords(e,s){const t=e+this.btnSize/2,i=s+this.btnSize/2,n=t>=this.clientWidth/2,r=i>=this.clientHeight/2,o=n?this.clientWidth-this.btnSize-e:e,a=r?this.clientHeight-this.btnSize-s:s;this.position={x:o,y:a,fromRight:n,fromBottom:r,collapsed:this.position.collapsed}},onMouseDown(e){if(e.button!==0)return;if(this.clearCollapseTimer(),this.collapsed){this.onClick();return}const s=this.$refs.floatBtn.getBoundingClientRect();this.record={time:Date.now(),startLeft:s.left,startTop:s.top,offsetX:e.clientX-s.left,offsetY:e.clientY-s.top},this.dragging=!0,document.addEventListener("mousemove",this.onMouseMove),document.addEventListener("mouseup",this.onMouseUp),document.addEventListener("contextmenu",this.onContextMenu)},onContextMenu(){this.dragging&&this.onMouseUp()},onMouseMove(e){if(!this.dragging)return;const s=12;let t=e.clientX-this.record.offsetX,i=e.clientY-this.record.offsetY;t=Math.max(s,Math.min(t,this.clientWidth-this.btnSize-s)),i=Math.max(s,Math.min(i,this.clientHeight-this.btnSize-s)),this.updatePositionFromCoords(t,i)},onMouseUp(){document.removeEventListener("mousemove",this.onMouseMove),document.removeEventListener("mouseup",this.onMouseUp),document.removeEventListener("contextmenu",this.onContextMenu);const e=this.$refs.floatBtn.getBoundingClientRect(),s=Math.abs(e.left-this.record.startLeft)+Math.abs(e.top-this.record.startTop),t=Date.now()-this.record.time;this.savePosition(),this.dragging=!1,s<5&&t<200&&this.onClick(),this.scheduleCollapse()},onTouchStart(e){if(e.touches.length!==1)return;this.clearCollapseTimer();const s=e.touches[0],t=this.$refs.floatBtn.getBoundingClientRect();this.record={time:Date.now(),startLeft:t.left,startTop:t.top,offsetX:s.clientX-t.left,offsetY:s.clientY-t.top,startCollapsed:this.collapsed},this.dragging=!0,document.addEventListener("touchmove",this.onTouchMove,{passive:!1}),document.addEventListener("touchend",this.onTouchEnd),document.addEventListener("touchcancel",this.onTouchEnd)},onTouchMove(e){if(!this.dragging||e.touches.length!==1)return;e.preventDefault();const s=e.touches[0];this.position.collapsed&&(this.position.collapsed=!1);let t=s.clientX-this.record.offsetX,i=s.clientY-this.record.offsetY;const n=this.btnSize/3,r=this.btnSize-n;t=Math.max(-r,Math.min(t,this.clientWidth-n)),i=Math.max(-r,Math.min(i,this.clientHeight-n)),this.updatePositionFromCoords(t,i)},onTouchEnd(){if(document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd),document.removeEventListener("touchcancel",this.onTouchEnd),!this.dragging)return;const e=this.$refs.floatBtn.getBoundingClientRect(),s=Math.abs(e.left-this.record.startLeft)+Math.abs(e.top-this.record.startTop),t=Date.now()-this.record.time;if(this.dragging=!1,s<5&&t<200){this.record.startCollapsed?(this.position.collapsed=!1,this.position.x=12,this.scheduleCollapse()):this.onClick(),this.savePosition();return}this.position.x<12?this.position.collapsed=!0:(this.position.x=12,this.scheduleCollapse()),this.savePosition()},onMouseEnter(){this.clearCollapseTimer(),this.collapsed&&(this.position.collapsed=!1,this.savePosition())},onMouseLeave(){this.dragging||this.scheduleCollapse()},scheduleCollapse(){if(this.clearCollapseTimer(),this.windowPortrait||this.position.x<=this.collapseThreshold){const e=this.windowPortrait?this.collapseDelayMobile:this.collapseDelayDesktop;this.collapseTimer=setTimeout(()=>{this.position.collapsed=!0,this.savePosition()},e)}},clearCollapseTimer(){this.collapseTimer&&(clearTimeout(this.collapseTimer),this.collapseTimer=null)},checkBounds(){const s=this.clientWidth-this.btnSize-12,t=this.clientHeight-this.btnSize-12;this.position.x=Math.max(12,Math.min(this.position.x,s)),this.position.y=Math.max(12,Math.min(this.position.y,t))},onResize(){this.$nextTick(()=>{this.checkBounds()})},onClick(){this.enableOperationModule(),x.emit("openAIAssistant",{displayMode:"chat",sessionKey:"global",showApplyButton:!1,onDynamicSystem:()=>this.operationSessionId?`\u9875\u9762\u64CD\u4F5C\u4F1A\u8BDD operation_session_id=${this.operationSessionId}\u3002
+\u5F53\u8C03\u7528\u9700\u8981\u7ED1\u5B9A\u5F53\u524D\u9875\u9762\u64CD\u4F5C\u4F1A\u8BDD\u7684\u5DE5\u5177\u65F6\uFF0C\u4F20\u5165\u8BE5 ID\uFF1B\u666E\u901A\u56DE\u7B54\u4E0D\u8981\u63D0\u53CA\u5B83\uFF0C\u4E0D\u8981\u4FEE\u6539\u6216\u81C6\u9020\u5B83\u3002`:null})},onAssistantClosed(){this.disableOperationModule()},initOperationModule(){this.operationModule||(this.operationModule=zf({store:this.$store,router:this.$router}))},enableOperationModule(){this.operationSessionId=$A.getSessionStorageString("userWsFd")||null},disableOperationModule(){this.operationSessionId=null},destroyOperationModule(){this.operationModule=null,this.operationSessionId=null},async onOperationRequest(e){const{requestId:s,action:t,payload:i}=e||{};if(!(!s||!t)){this.operationModule||this.initOperationModule();try{const n=await this.operationModule.handleRequest(t,i);this.$store.dispatch("websocketSend",{type:"operationResult",data:{requestId:s,success:!0,result:n}}).catch(r=>{})}catch(n){this.$store.dispatch("websocketSend",{type:"operationResult",data:{requestId:s,success:!1,error:(n==null?void 0:n.message)||"\u64CD\u4F5C\u6267\u884C\u5931\u8D25"}}).catch(r=>{})}}}}},Ii={};var Vf=A(Wf,Ff,Hf,!1,Yf,null,null,null);function Yf(e){for(let s in Ii)this[s]=Ii[s]}var qf=function(){return Vf.exports}(),Kf=function(){var e=this,s=e.$createElement,t=e._self._c||s;return e.displayMode==="chat"?t("div",{directives:[{name:"transfer-dom",rawName:"v-transfer-dom"}],attrs:{"data-transfer":!0}},[t("transition",{attrs:{name:"fade"}},[e.visible&&e.isMobile?t("div",{staticClass:"ai-assistant-chat-mask",style:{zIndex:e.zIndex-1}}):e._e()]),t("transition",{attrs:{name:"fade"}},[e.visible?t("div",{ref:"chatWindow",staticClass:"ai-assistant-chat",class:{"is-fullscreen":e.effectiveFullscreen,"is-mobile-fullscreen":e.isMobile},style:e.chatStyle},[e.isMobile?e._e():t("div",{staticClass:"ai-assistant-fullscreen",on:{click:e.toggleFullscreen}},[e.isFullscreen?t("svg",{attrs:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"}},[t("polyline",{attrs:{points:"4 10 10 10 10 4"}}),t("polyline",{attrs:{points:"14 4 14 10 20 10"}}),t("polyline",{attrs:{points:"10 20 10 14 4 14"}}),t("polyline",{attrs:{points:"20 14 14 14 14 20"}})]):t("svg",{attrs:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"}},[t("polyline",{attrs:{points:"5 9 5 5 9 5"}}),t("polyline",{attrs:{points:"19 9 19 5 15 5"}}),t("polyline",{attrs:{points:"5 15 5 19 9 19"}}),t("polyline",{attrs:{points:"19 15 19 19 15 19"}})])]),t("Icon",{staticClass:"ai-assistant-close",attrs:{type:"ios-close"},on:{click:e.onClose}}),t("div",{staticClass:"ai-assistant-drag-handle",on:{dblclick:e.toggleFullscreen,mousedown:function(i){return i.stopPropagation(),i.preventDefault(),e.onDragMouseDown.apply(null,arguments)}}},[e._t("header")],2),e._t("default"),e.effectiveFullscreen?e._e():[t("div",{staticClass:"ai-assistant-resize-handle ai-assistant-resize-n",on:{mousedown:function(i){return i.stopPropagation(),i.preventDefault(),e.onResizeMouseDown(i,"n")}}}),t("div",{staticClass:"ai-assistant-resize-handle ai-assistant-resize-s",on:{mousedown:function(i){return i.stopPropagation(),i.preventDefault(),e.onResizeMouseDown(i,"s")}}}),t("div",{staticClass:"ai-assistant-resize-handle ai-assistant-resize-e",on:{mousedown:function(i){return i.stopPropagation(),i.preventDefault(),e.onResizeMouseDown(i,"e")}}}),t("div",{staticClass:"ai-assistant-resize-handle ai-assistant-resize-w",on:{mousedown:function(i){return i.stopPropagation(),i.preventDefault(),e.onResizeMouseDown(i,"w")}}}),t("div",{staticClass:"ai-assistant-resize-handle ai-assistant-resize-ne",on:{mousedown:function(i){return i.stopPropagation(),i.preventDefault(),e.onResizeMouseDown(i,"ne")}}}),t("div",{staticClass:"ai-assistant-resize-handle ai-assistant-resize-nw",on:{mousedown:function(i){return i.stopPropagation(),i.preventDefault(),e.onResizeMouseDown(i,"nw")}}}),t("div",{staticClass:"ai-assistant-resize-handle ai-assistant-resize-se",on:{mousedown:function(i){return i.stopPropagation(),i.preventDefault(),e.onResizeMouseDown(i,"se")}}}),t("div",{staticClass:"ai-assistant-resize-handle ai-assistant-resize-sw",on:{mousedown:function(i){return i.stopPropagation(),i.preventDefault(),e.onResizeMouseDown(i,"sw")}}})]],2):e._e()]),t("Modal",{attrs:{mask:!1,"mask-closable":!1,"footer-hide":!0,"transition-names":["",""],beforeClose:e.onAssistClose,"class-name":"ai-assistant-assist"},model:{value:e.visible,callback:function(i){e.visible=i},expression:"visible"}})],1):t("Modal",{attrs:{width:e.shouldCreateNewSession?"440px":"600px","mask-closable":!1,"footer-hide":!0,"class-name":"ai-assistant-modal"},scopedSlots:e._u([{key:"header",fn:function(){return[e._t("header")]},proxy:!0}],null,!0),model:{value:e.visible,callback:function(i){e.visible=i},expression:"visible"}},[e._t("default")],2)},Gf=[];const Jf={name:"AssistantModal",directives:{TransferDom:dn},props:{value:{type:Boolean,default:!1},displayMode:{type:String,default:"modal"},shouldCreateNewSession:{type:Boolean,default:!1},zIndex:{type:Number,default:2e3}},data(){return{position:{x:24,y:24,fromRight:!0,fromBottom:!0},dragging:!1,positionLoaded:!1,cacheKey:"aiAssistant.chatPosition",sizeCacheKey:"aiAssistant.chatSize",windowSize:{width:460,height:600},customSize:{width:null,height:null},minSize:{width:380,height:400},maxSize:{width:800,height:900},record:{},resizing:!1,resizeDirection:null,resizeRecord:{},isFullscreen:!1}},computed:{visible:{get(){return this.value},set(e){this.$emit("input",e)}},clientWidth(){return this.windowWidth},clientHeight(){return this.windowHeight},isMobile(){return this.windowWidth<576},effectiveFullscreen(){return this.isFullscreen||this.isMobile},left(){return this.position.fromRight?this.clientWidth-this.windowSize.width-this.position.x:this.position.x},top(){return this.position.fromBottom?this.clientHeight-this.windowSize.height-this.position.y:this.position.y},chatStyle(){if(!this.positionLoaded)return{opacity:0,zIndex:this.zIndex};if(this.effectiveFullscreen)return{zIndex:this.zIndex};const e={left:`${this.left}px`,top:`${this.top}px`,zIndex:this.zIndex};return this.customSize.width&&(e.width=`${this.customSize.width}px`),this.customSize.height&&(e.height=`${this.customSize.height}px`),e}},watch:{visible(e){e&&this.displayMode==="chat"?this.$nextTick(()=>{this.updateWindowSize()}):e||(this.isFullscreen=!1)},windowWidth(){this.onViewportChange()},windowHeight(){this.onViewportChange()}},mounted(){this.loadSizeAndPosition(),document.addEventListener("keydown",this.onGlobalEscFullscreen,!0)},beforeDestroy(){document.removeEventListener("keydown",this.onGlobalEscFullscreen,!0),document.removeEventListener("mousemove",this.onDragMouseMove),document.removeEventListener("mouseup",this.onDragMouseUp),document.removeEventListener("mousemove",this.onResizeMouseMove),document.removeEventListener("mouseup",this.onResizeMouseUp),document.removeEventListener("contextmenu",this.onContextMenu)},methods:{updateWindowSize(){const e=this.$refs.chatWindow;e&&(this.windowSize={width:e.offsetWidth,height:e.offsetHeight})},async loadPosition(){try{const e=await $A.IDBString(this.cacheKey);if(e){const s=JSON.parse(e);if(s&&typeof s.x=="number"&&typeof s.y=="number"){this.position=s,this.$nextTick(()=>{this.checkBounds(),this.positionLoaded=!0});return}}}catch{}this.position={x:24,y:24,fromRight:!0,fromBottom:!0},this.positionLoaded=!0},savePosition(){$A.IDBSave(this.cacheKey,JSON.stringify(this.position))},updatePositionFromCoords(e,s){const t=e+this.windowSize.width/2,i=s+this.windowSize.height/2,n=t>=this.clientWidth/2,r=i>=this.clientHeight/2,o=n?this.clientWidth-this.windowSize.width-e:e,a=r?this.clientHeight-this.windowSize.height-s:s;this.position={x:o,y:a,fromRight:n,fromBottom:r}},onDragMouseDown(e){e.button!==0||this.effectiveFullscreen||(this.updateWindowSize(),this.record={offsetX:e.clientX-this.left,offsetY:e.clientY-this.top},this.dragging=!0,document.addEventListener("mousemove",this.onDragMouseMove),document.addEventListener("mouseup",this.onDragMouseUp),document.addEventListener("contextmenu",this.onContextMenu))},toggleFullscreen(){this.isMobile||(this.isFullscreen=!this.isFullscreen)},onContextMenu(){this.dragging&&this.onDragMouseUp(),this.resizing&&this.onResizeMouseUp()},onDragMouseMove(e){if(!this.dragging)return;const s=12;let t=e.clientX-this.record.offsetX,i=e.clientY-this.record.offsetY;t=Math.max(s,Math.min(t,this.clientWidth-this.windowSize.width-s)),i=Math.max(s,Math.min(i,this.clientHeight-this.windowSize.height-s)),this.updatePositionFromCoords(t,i)},onDragMouseUp(){document.removeEventListener("mousemove",this.onDragMouseMove),document.removeEventListener("mouseup",this.onDragMouseUp),document.removeEventListener("contextmenu",this.onContextMenu),this.savePosition(),this.dragging=!1},onResizeMouseDown(e,s){e.button===0&&(this.updateWindowSize(),this.resizeDirection=s,this.resizeRecord={startX:e.clientX,startY:e.clientY,startWidth:this.windowSize.width,startHeight:this.windowSize.height,startLeft:this.left,startTop:this.top},this.resizing=!0,document.addEventListener("mousemove",this.onResizeMouseMove),document.addEventListener("mouseup",this.onResizeMouseUp),document.addEventListener("contextmenu",this.onContextMenu))},onResizeMouseMove(e){if(!this.resizing)return;const s=this.resizeDirection,t=e.clientX-this.resizeRecord.startX,i=e.clientY-this.resizeRecord.startY;let n=this.resizeRecord.startWidth,r=this.resizeRecord.startHeight,o=this.resizeRecord.startLeft,a=this.resizeRecord.startTop;s.includes("e")&&(n=this.resizeRecord.startWidth+t),s.includes("w")&&(n=this.resizeRecord.startWidth-t,o=this.resizeRecord.startLeft+t),s.includes("s")&&(r=this.resizeRecord.startHeight+i),s.includes("n")&&(r=this.resizeRecord.startHeight-i,a=this.resizeRecord.startTop+i);const l=12,c=Math.min(this.maxSize.width,this.clientWidth-l*2),d=Math.min(this.maxSize.height,this.clientHeight-l*2);if(n=Math.max(this.minSize.width,Math.min(n,c)),r=Math.max(this.minSize.height,Math.min(r,d)),s.includes("w")){const h=n-this.resizeRecord.startWidth;o=this.resizeRecord.startLeft-h}if(s.includes("n")){const h=r-this.resizeRecord.startHeight;a=this.resizeRecord.startTop-h}o=Math.max(l,Math.min(o,this.clientWidth-n-l)),a=Math.max(l,Math.min(a,this.clientHeight-r-l)),this.customSize.width=n,this.customSize.height=r,this.windowSize.width=n,this.windowSize.height=r,this.updatePositionFromCoords(o,a)},onResizeMouseUp(){document.removeEventListener("mousemove",this.onResizeMouseMove),document.removeEventListener("mouseup",this.onResizeMouseUp),document.removeEventListener("contextmenu",this.onContextMenu),this.saveSize(),this.savePosition(),this.resizing=!1,this.resizeDirection=null},async loadSizeAndPosition(){await this.loadSize(),await this.loadPosition()},async loadSize(){try{const e=await $A.IDBString(this.sizeCacheKey);if(e){const s=JSON.parse(e);s&&typeof s.width=="number"&&typeof s.height=="number"&&(this.customSize={width:Math.max(this.minSize.width,Math.min(s.width,this.maxSize.width)),height:Math.max(this.minSize.height,Math.min(s.height,this.maxSize.height))},this.windowSize.width=this.customSize.width,this.windowSize.height=this.customSize.height)}}catch{}},saveSize(){this.customSize.width&&this.customSize.height&&$A.IDBSave(this.sizeCacheKey,JSON.stringify(this.customSize))},checkBounds(){const s=this.clientWidth-this.windowSize.width-12,t=this.clientHeight-this.windowSize.height-12;this.position.x=Math.max(12,Math.min(this.position.x,s)),this.position.y=Math.max(12,Math.min(this.position.y,t))},onViewportChange(){this.constrainSizeToScreen(),this.checkBounds()},constrainSizeToScreen(){const s=this.clientWidth-24,t=this.clientHeight-12*2;this.customSize.width&&this.customSize.width>s&&(this.customSize.width=Math.max(this.minSize.width,s),this.windowSize.width=this.customSize.width),this.customSize.height&&this.customSize.height>t&&(this.customSize.height=Math.max(this.minSize.height,t),this.windowSize.height=this.customSize.height)},onGlobalEscFullscreen(e){e.key!=="Escape"&&e.keyCode!==27||this.displayMode==="chat"&&this.visible&&this.isFullscreen&&(e.stopImmediatePropagation(),e.preventDefault(),this.isFullscreen=!1)},onAssistClose(){return new Promise(()=>{this.onClose()})},prepareForNavigate(){if(this.displayMode!=="chat"){this.$emit("input",!1);return}this.isMobile?this.$emit("input",!1):this.isFullscreen&&(this.isFullscreen=!1)},onClose(){this.$emit("input",!1)}}},Di={};var Qf=A(Jf,Kf,Gf,!1,Xf,null,null,null);function Xf(e){for(let s in Di)this[s]=Di[s]}var Zf=function(){return Qf.exports}(),em=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("span",{staticClass:"prompt-image-wrapper",on:{click:e.showPreview}},[e.imageUrl?t("img",{staticClass:"prompt-image-thumb",attrs:{src:e.imageUrl,alt:"uploaded image"}}):t("span",{staticClass:"prompt-image-placeholder"},[t("i",{staticClass:"taskfont"},[e._v("\uE6EF")])])])},tm=[];const sm={name:"PromptImage",props:{imageId:{type:String,required:!0},getImage:{type:Function,required:!0}},data(){return{imageUrl:null,loading:!0}},mounted(){this.loadImage()},methods:{async loadImage(){try{const e=await this.getImage(this.imageId);this.imageUrl=e}catch(e){console.warn("[PromptImage] \u52A0\u8F7D\u56FE\u7247\u5931\u8D25:",e)}finally{this.loading=!1}},showPreview(){this.imageUrl&&this.$store.dispatch("previewImage",this.imageUrl)}}},Ei={};var im=A(sm,em,tm,!1,nm,"52916529",null,null);function nm(e){for(let s in Ei)this[s]=Ei[s]}var rm=function(){return im.exports}();function om(e,s={}){const t=e.state.taskId;if(t>0)return Li(e,t);const i=e.state.dialogModalShow,n=e.state.dialogId;if(i&&n>0)return zt(e,n);switch(e.state.routeName){case"manage-dashboard":return te("dashboard","\u5DE5\u4F5C\u4EEA\u8868\u76D8");case"manage-project":return lm(e);case"manage-messenger":return cm(e);case"manage-calendar":return te("calendar","\u65E5\u5386\u9875");case"manage-file":return te("file-list","\u6587\u4EF6\u5217\u8868\u9875");case"single-task":case"single-task-content":return Li(e,s.taskId);case"single-dialog":return zt(e,s.dialogId);case"single-file":return Mi(s.codeOrFileId);case"single-file-task":return Mi(s.fileId);case"single-report-edit":return Pi(s.reportEditId,"\u5DE5\u4F5C\u6C47\u62A5\u7F16\u8F91");case"single-report-detail":return Pi(s.reportDetailId,"\u5DE5\u4F5C\u6C47\u62A5\u8BE6\u60C5");default:return null}}function am(e,s){if(!e)return"";const t=s?"[\u9875\u9762\u5207\u6362]":"[\u5F53\u524D\u9875\u9762]",i=[],n=e.entity;n&&(n.id!==void 0&&n.id!==null&&n.id!==""&&i.push(`${n.type}_id=${n.id}`),n.name&&i.push(`\u540D\u79F0:${n.name}`),n.dialogType&&i.push(`\u5BF9\u8BDD\u7C7B\u578B:${n.dialogType}`));const r=i.length?`(${i.join(",")})`:"";return`${t} ${e.pageLabel}${r}`}function te(e,s,t=null){return{contextKey:e,pageLabel:s,entity:t}}function Li(e,s){const t=Number(s);if(!t)return te("task","\u4EFB\u52A1\u8BE6\u60C5\u9875");const i=(e.state.cacheTasks||[]).find(n=>n.id===t);return te(`task:${t}`,"\u4EFB\u52A1\u8BE6\u60C5\u9875",{type:"task",id:t,name:(i==null?void 0:i.name)||""})}function zt(e,s){const t=Number(s);if(!t)return te("dialog","\u5BF9\u8BDD\u9875");const i=(e.state.cacheDialogs||[]).find(n=>n.id===t);return te(`dialog:${t}`,"\u5BF9\u8BDD\u9875",{type:"dialog",id:t,name:(i==null?void 0:i.name)||"",dialogType:um(i==null?void 0:i.type)})}function lm(e){const s=e.getters.projectData;return s!=null&&s.id?te(`project:${s.id}`,"\u9879\u76EE\u8BE6\u60C5\u9875",{type:"project",id:s.id,name:s.name||""}):te("project-list","\u9879\u76EE\u5217\u8868\u9875")}function cm(e){const s=e.state.dialogId;return s?zt(e,s):te("messenger","\u6D88\u606F\u5217\u8868\u9875")}function Mi(e){return e?te(`file:${e}`,"\u6587\u4EF6\u9875",{type:"file",id:e,name:""}):te("file","\u6587\u4EF6\u9875")}function Pi(e,s){return e?te(`report:${e}`,s,{type:"report",id:e,name:""}):te("report",s)}function um(e){return e?e==="group"?"\u7FA4\u804A":e==="user"?"\u79C1\u804A":String(e):""}const m={task:' ',list:' ',search:' ',calendar:' ',document:' ',plus:' ',message:' ',chart:' ',alert:' ',folder:' ',edit:' ',user:' ',send:' ',clock:' ',check:' ',flag:' ',clipboard:' ',link:' '};function dm(e){return typeof e=="string"?e:M&&M.includes("zh")?e.zh:e.en}const f={QUERY:"query",ACTION:"action",SYNC:"sync",REVIEW:"review"};function nt(e){const s=[...e];for(let t=s.length-1;t>0;t--){const i=Math.floor(Math.random()*(t+1));[s[t],s[i]]=[s[i],s[t]]}return s}function ji(e,s){if(e.length<=s)return e;const t=[...e];for(let i=0;i({text:dm(i.text),svg:i.svg}))}function hm(e,s){const t=Array.isArray(e)?e.filter(Boolean):[];if(t.length<=s)return nt(t);const i=[],n=new Set,r=t.filter(v=>v&&v.pin),o=t.filter(v=>!(v!=null&&v.pin)),a=Math.min(r.length,s);ji(nt(r),a).forEach(v=>{i.push(v),n.add(v)});let c=s-i.length;if(c<=0)return i;const d=new Set(i.map(v=>v.type).filter(Boolean)),h=o.filter(v=>!n.has(v)),u=new Map;if(h.forEach(v=>{const y=v.type||f.QUERY;u.has(y)||u.set(y,[]),u.get(y).push(v)}),nt(Array.from(u.keys()).filter(v=>!d.has(v))).forEach(v=>{if(c<=0)return;const y=u.get(v)||[];if(y.length===0)return;const w=y[Math.floor(Math.random()*y.length)];i.push(w),n.add(w),d.add(v),c--}),c<=0)return i;const g=h.filter(v=>!n.has(v)),_=ji(nt(g),c);return i.concat(_)}function pm(e,s={}){if(e.state.taskId>0)return Et(Lt());const i=e.state.dialogModalShow,n=e.state.dialogId;if(i&&n>0)return Et(Ri());const r=e.state.routeName,a={"manage-dashboard":fm,"manage-project":mm,"manage-messenger":gm,"manage-calendar":_m,"manage-file":vm,"single-task":Lt,"single-task-content":Lt,"single-dialog":Ri,"single-file":ym,"single-file-task":wm,"single-report-edit":$m,"single-report-detail":km}[r],l=a?a(e,s):bm(e);return Et(l)}function fm(e){const s=e.getters.dashboardTask||{},t=[],i=s.overdue_count||0,n=s.today_count||0,r=(s.today||[]).filter(a=>a.name),o=r.length>0?r[Math.floor(Math.random()*r.length)].name:null;return i>0&&t.push({text:{zh:`\u5217\u51FA\u6211\u7684 ${i} \u4E2A\u903E\u671F\u4EFB\u52A1`,en:`List my ${i} overdue tasks`},svg:m.alert,type:f.QUERY,pin:!0}),n>0&&t.push({text:{zh:"\u4ECA\u5929\u5230\u671F\u4EFB\u52A1\u6709\u54EA\u4E9B\uFF1F",en:"What tasks are due today?"},svg:m.calendar,type:f.QUERY,pin:!0}),t.push({text:{zh:"\u6309\u4F18\u5148\u7EA7\u6392\u4ECA\u5929\u4EFB\u52A1",en:"Prioritize my tasks for today"},svg:m.flag,type:f.ACTION},{text:{zh:"\u6C47\u603B\u903E\u671F\u4EFB\u52A1\u5E76\u7ED9\u65B9\u6848",en:"Summarize overdue tasks with actions"},svg:m.alert,type:f.REVIEW},{text:{zh:"\u672C\u5468\u5230\u671F\u4EFB\u52A1\u6709\u54EA\u4E9B\uFF1F",en:"What tasks are due this week?"},svg:m.list,type:f.QUERY},{text:{zh:"\u627E\u51FA\u6700\u8FD1\u505C\u6EDE\u7684\u4EFB\u52A1",en:"Find recently stalled tasks"},svg:m.alert,type:f.REVIEW},{text:{zh:"\u54EA\u4E9B\u4EFB\u52A1\u7F3A\u8D1F\u8D23\u4EBA\u6216\u622A\u6B62\uFF1F",en:"Which tasks lack owner or due date?"},svg:m.edit,type:f.REVIEW},{text:{zh:"\u6211\u9700\u8981\u534F\u52A9\u7684\u4EFB\u52A1\u6E05\u5355",en:"Tasks that need my assistance"},svg:m.user,type:f.QUERY},{text:{zh:"\u751F\u6210\u4ECA\u65E5\u5DE5\u4F5C\u540C\u6B65\u6587\u6848",en:"Draft today status update"},svg:m.message,type:f.SYNC},{text:{zh:"\u751F\u6210\u672C\u5468\u5468\u62A5\u8349\u7A3F",en:"Generate weekly report draft"},svg:m.document,type:f.SYNC},{text:{zh:"\u6309\u9879\u76EE\u6C47\u603B\u672A\u5B8C\u6210\u4EFB\u52A1",en:"Summarize my pending tasks by project"},svg:m.folder,type:f.QUERY},{text:{zh:"\u672A\u67657\u5929\u5230\u671F\u4EFB\u52A1\u6E05\u5355",en:"Tasks due in the next 7 days"},svg:m.calendar,type:f.QUERY},{text:{zh:"\u672C\u5468\u5DF2\u5B8C\u6210\u4EFB\u52A1\u56DE\u987E",en:"Review tasks completed this week"},svg:m.clipboard,type:f.REVIEW},{text:{zh:"\u627E\u51FA\u65E0\u63CF\u8FF0\u7684\u4EFB\u52A1",en:"Find tasks missing descriptions"},svg:m.edit,type:f.REVIEW},{text:{zh:"\u5B50\u4EFB\u52A1\u672A\u5B8C\u6210\u7684\u4E3B\u4EFB\u52A1",en:"Parent tasks with incomplete subtasks"},svg:m.task,type:f.REVIEW},{text:{zh:"\u641C\u7D22\u201C\u98CE\u9669/\u5EF6\u671F/\u963B\u585E\u201D",en:"Search \u201Crisk/delay/blocker\u201D"},svg:m.search,type:f.QUERY},{text:{zh:"\u5E2E\u6211\u5217\u51FA\u4ECA\u59293\u4E2A\u76EE\u6807",en:"List my 3 key goals for today"},svg:m.flag,type:f.ACTION},o?{text:{zh:`\u603B\u7ED3\u300C${o}\u300D\u7684\u8FDB\u5C55`,en:`Summarize progress of "${o}"`},svg:m.clipboard,type:f.REVIEW}:null,{text:{zh:"\u751F\u6210\u7ED9\u8001\u677F\u7684\u7B80\u77ED\u8FDB\u5EA6",en:"Draft a short status update for my manager"},svg:m.send,type:f.SYNC}),t.filter(Boolean)}function mm(e){return(e.getters.projectData||{}).id?[{text:{zh:"\u9879\u76EE\u672A\u5B8C\u6210\u4EFB\u52A1\u6E05\u5355",en:"List incomplete tasks in this project"},svg:m.list,type:f.QUERY},{text:{zh:"\u9879\u76EE\u903E\u671F\u4EFB\u52A1\u4E0E\u539F\u56E0\u6982\u89C8",en:"Overdue tasks & reasons overview"},svg:m.alert,type:f.REVIEW},{text:{zh:"\u67E5\u770B\u9879\u76EE\u770B\u677F\u5217\u914D\u7F6E",en:"View board columns configuration"},svg:m.list,type:f.QUERY},{text:{zh:"\u6210\u5458\u8D1F\u8F7D\u4E0E\u5206\u914D\u5EFA\u8BAE",en:"Member workload & assignment suggestions"},svg:m.chart,type:f.REVIEW},{text:{zh:"\u521B\u5EFA\u4EFB\u52A1\u5E76\u6307\u6D3E\u8D1F\u8D23\u4EBA",en:"Create a task and assign an owner"},svg:m.plus,type:f.ACTION},{text:{zh:"\u628A\u9700\u6C42\u62C6\u6210\u53EF\u6267\u884C\u4EFB\u52A1",en:"Break a requirement into tasks"},svg:m.edit,type:f.ACTION},{text:{zh:"\u6C47\u603B\u9879\u76EE\u98CE\u9669\u4E0E\u963B\u585E\u9879",en:"Summarize risks and blockers"},svg:m.alert,type:f.REVIEW},{text:{zh:"\u751F\u6210\u672C\u5468\u9879\u76EE\u63A8\u8FDB\u7B80\u62A5",en:"Generate this week project update"},svg:m.document,type:f.SYNC},{text:{zh:"\u641C\u7D22\u9879\u76EE\u76F8\u5173\u8D44\u6599",en:"Search project related docs"},svg:m.search,type:f.QUERY},{text:{zh:"\u67E5\u770B\u9879\u76EE\u6210\u5458\u5217\u8868\u4E0E\u89D2\u8272",en:"View project members and roles"},svg:m.user,type:f.QUERY},{text:{zh:"\u672C\u9879\u76EE\u672C\u5468\u5230\u671F\u4EFB\u52A1",en:"Tasks due this week in this project"},svg:m.calendar,type:f.QUERY},{text:{zh:"\u672C\u9879\u76EE\u7F3A\u8D1F\u8D23\u4EBA\u4EFB\u52A1",en:"Tasks missing an owner in this project"},svg:m.user,type:f.REVIEW},{text:{zh:"\u672C\u9879\u76EE\u65E0\u622A\u6B62\u4EFB\u52A1",en:"Tasks without due date in this project"},svg:m.clock,type:f.REVIEW},{text:{zh:"\u6309\u770B\u677F\u5217\u7EDF\u8BA1\u4EFB\u52A1\u91CF",en:"Task counts by board column"},svg:m.chart,type:f.REVIEW},{text:{zh:"\u6309\u6210\u5458\u7EDF\u8BA1\u4EFB\u52A1\u8D1F\u8F7D",en:"Task workload by member"},svg:m.chart,type:f.REVIEW},{text:{zh:"\u4F18\u5316\u9879\u76EE\u63CF\u8FF0\u4E0E\u76EE\u6807",en:"Improve project description and goals"},svg:m.edit,type:f.ACTION},{text:{zh:"\u751F\u6210\u9879\u76EE\u98CE\u9669\u63D0\u9192\u6587\u6848",en:"Draft a project risk reminder"},svg:m.message,type:f.SYNC},{text:{zh:"\u628A\u903E\u671F\u4EFB\u52A1\u6574\u7406\u6210\u8DDF\u8FDB\u6E05\u5355",en:"Turn overdue tasks into a follow-up checklist"},svg:m.clipboard,type:f.ACTION},{text:{zh:"\u751F\u6210\u9879\u76EE\u5468\u4F1A\u540C\u6B65\u7A3F",en:"Draft a weekly project meeting update"},svg:m.clipboard,type:f.SYNC}]:[{text:{zh:"\u6211\u53C2\u4E0E\u7684\u9879\u76EE\u6709\u54EA\u4E9B\uFF1F",en:"Which projects am I involved in?"},svg:m.folder,type:f.QUERY},{text:{zh:"\u6309\u5173\u952E\u8BCD\u641C\u7D22\u9879\u76EE",en:"Search projects by keyword"},svg:m.search,type:f.QUERY},{text:{zh:"\u54EA\u4E9B\u9879\u76EE\u903E\u671F\u6700\u4E25\u91CD\uFF1F",en:"Which projects have the most overdue tasks?"},svg:m.alert,type:f.REVIEW},{text:{zh:"\u5BF9\u6BD4\u9879\u76EE\u5065\u5EB7\u5EA6",en:"Compare project health"},svg:m.chart,type:f.REVIEW},{text:{zh:"\u751F\u6210\u9879\u76EE\u6982\u89C8\u7B80\u62A5",en:"Generate a project overview brief"},svg:m.document,type:f.SYNC},{text:{zh:"\u5E2E\u6211\u521B\u5EFA\u4E00\u4E2A\u65B0\u9879\u76EE",en:"Help me create a new project"},svg:m.plus,type:f.ACTION},{text:{zh:"\u67E5\u770B\u6211\u8D1F\u8D23\u7684\u9879\u76EE",en:"List projects I own"},svg:m.user,type:f.QUERY},{text:{zh:"\u67E5\u770B\u5DF2\u5F52\u6863\u9879\u76EE",en:"View archived projects"},svg:m.folder,type:f.QUERY},{text:{zh:"\u521B\u5EFA\u4E2A\u4EBA\u9879\u76EE\uFF08\u4E2A\u4EBA\u5F85\u529E\uFF09",en:"Create a personal project (personal to-dos)"},svg:m.plus,type:f.ACTION},{text:{zh:"\u65B0\u5EFA\u9879\u76EE\u5E76\u8BBE\u7F6E\u770B\u677F\u5217",en:"Create a project with default columns"},svg:m.plus,type:f.ACTION},{text:{zh:"\u751F\u6210\u672C\u5468\u9879\u76EE\u5468\u4F1A\u63D0\u7EB2",en:"Generate weekly project meeting outline"},svg:m.clipboard,type:f.SYNC},{text:{zh:"\u627E\u51FA\u6700\u4E45\u672A\u66F4\u65B0\u9879\u76EE",en:"Find least recently updated projects"},svg:m.alert,type:f.REVIEW}]}function gm(e){const s=e.state.dialogId,t=e.state.cacheDialogs||[],i=t.find(l=>l.id===s),n=t.filter(l=>l.type==="user"&&l.name&&!l.bot),r=n.length>0?n[Math.floor(Math.random()*n.length)].name:null,o=t.filter(l=>l.type==="group"&&l.name),a=o.length>0?o[Math.floor(Math.random()*o.length)].name:null;return i?[{text:{zh:"\u603B\u7ED3\u8FD1\u671F\u5BF9\u8BDD\u8981\u70B9\u4E0E\u7ED3\u8BBA",en:"Summarize recent chat highlights"},svg:m.document,type:f.REVIEW},{text:{zh:"\u63D0\u53D6\u5BF9\u8BDD\u5F85\u529E\u5E76\u5EFA\u4EFB\u52A1",en:"Extract to-dos and create tasks"},svg:m.task,type:f.ACTION},{text:{zh:"\u5217\u51FA\u5BF9\u8BDD\u91CC\u7684\u6587\u4EF6\u4E0E\u94FE\u63A5",en:"List files and links in this chat"},svg:m.link,type:f.QUERY},{text:{zh:"\u641C\u7D22\u5BF9\u8BDD\u5173\u952E\u8BCD\u5E76\u6458\u8981",en:"Search chat keyword with context"},svg:m.search,type:f.QUERY},{text:{zh:"\u7ED9\u6211\u4E09\u79CD\u63A8\u8FDB\u56DE\u590D\u7248\u672C",en:"Give 3 reply options to move forward"},svg:m.message,type:f.SYNC},{text:{zh:"\u751F\u6210\u4F1A\u8BAE\u7EAA\u8981\uFF08\u53EF\u76F4\u63A5\u53D1\uFF09",en:"Generate meeting notes to send"},svg:m.clipboard,type:f.SYNC},{text:{zh:"\u5217\u51FA\u672C\u5BF9\u8BDD\u5F85\u529E\uFF08TODO\uFF09",en:"List to-dos in this chat"},svg:m.clipboard,type:f.QUERY},{text:{zh:"\u5217\u51FA\u672C\u5BF9\u8BDD\u6587\u4EF6\uFF08File\uFF09",en:"List files in this chat"},svg:m.folder,type:f.QUERY},{text:{zh:"\u5217\u51FA\u672C\u5BF9\u8BDD\u4F1A\u8BAE\u7EAA\u8981",en:"List meeting notes in this chat"},svg:m.clipboard,type:f.REVIEW},{text:{zh:"\u628A\u884C\u52A8\u6E05\u5355\u53D1\u5230\u5BF9\u8BDD",en:"Send action list to this chat"},svg:m.send,type:f.SYNC},{text:{zh:"\u751F\u6210\u5F85\u786E\u8BA4\u95EE\u9898\u6E05\u5355",en:"Generate questions to confirm"},svg:m.alert,type:f.SYNC},{text:{zh:"\u8BC6\u522B\u672A\u51B3\u95EE\u9898\u5E76\u7ED9\u63A8\u8FDB\u8BDD\u672F",en:"Find open issues and draft follow-ups"},svg:m.message,type:f.SYNC},{text:{zh:"\u628A\u5F85\u529E\u5EFA\u4EFB\u52A1\u5E76\u5EFA\u8BAE\u8D1F\u8D23\u4EBA",en:"Create tasks from to-dos with owner suggestions"},svg:m.task,type:f.ACTION},{text:{zh:"\u56DE\u987E\u672C\u5BF9\u8BDD\u5173\u952E\u51B3\u5B9A",en:"Review key decisions in this chat"},svg:m.clipboard,type:f.REVIEW}]:[{text:{zh:"\u6309\u540D\u79F0\u627E\u5BF9\u8BDD",en:"Find a chat by name"},svg:m.search,type:f.QUERY},{text:{zh:"\u6309\u540D\u5B57/\u90AE\u7BB1\u627E\u4EBA",en:"Find a person by name/email"},svg:m.user,type:f.QUERY},{text:r?{zh:`\u7ED9 ${r} \u53D1\u9001\u4E00\u6761\u6D88\u606F`,en:`Send a message to ${r}`}:{zh:"\u7ED9\u67D0\u4EBA\u53D1\u9001\u4E00\u6761\u6D88\u606F",en:"Send a message to someone"},svg:m.send,type:f.ACTION},{text:{zh:"\u641C\u7D22\u5173\u952E\u8BCD\u6D88\u606F",en:"Search messages by keyword"},svg:m.search,type:f.QUERY},{text:{zh:"\u751F\u6210\u793C\u8C8C\u50AC\u529E\u8BDD\u672F",en:"Draft a polite follow-up message"},svg:m.edit,type:f.SYNC},{text:{zh:"\u751F\u6210\u8FDB\u5EA6\u540C\u6B65\u6587\u6848",en:"Draft a progress update message"},svg:m.document,type:f.SYNC},r?{text:{zh:`\u56DE\u987E\u4E0E ${r} \u6700\u8FD1\u5BF9\u8BDD\u8981\u70B9`,en:`Review highlights with ${r}`},svg:m.clipboard,type:f.REVIEW}:null,r?{text:{zh:`\u628A\u4E0E ${r} \u804A\u5929\u6574\u7406\u6210\u5F85\u529E`,en:`Turn chat with ${r} into to-dos`},svg:m.clipboard,type:f.ACTION}:null,r?{text:{zh:`\u7ED9 ${r} \u5199\u786E\u8BA4\u53E3\u5F84`,en:`Draft a confirmation message to ${r}`},svg:m.message,type:f.SYNC}:null,r?{text:{zh:`\u7ED9 ${r} \u5199\u50AC\u529E\u6D88\u606F\uFF08\u59D4\u5A49\u7248\uFF09`,en:`Draft a gentle follow-up to ${r}`},svg:m.edit,type:f.SYNC}:null,a?{text:{zh:`\u7ED9\u300C${a}\u300D\u53D1\u8FDB\u5EA6\u540C\u6B65`,en:`Send a progress update to "${a}"`},svg:m.send,type:f.SYNC}:null,{text:{zh:"\u641C\u7D22\u4F1A\u8BAE\u7EAA\u8981\u6D88\u606F",en:"Search meeting notes messages"},svg:m.search,type:f.QUERY},{text:{zh:"\u641C\u7D22\u5F85\u529E\u76F8\u5173\u6D88\u606F",en:"Search to-do related messages"},svg:m.search,type:f.QUERY},{text:{zh:"\u6574\u7406\u6700\u8FD1\u6C9F\u901A\u5F85\u529E",en:"Summarize my recent communication to-dos"},svg:m.clipboard,type:f.REVIEW}].filter(Boolean)}function _m(){return[{text:{zh:"\u4ECA\u5929\u5230\u671F\u4EFB\u52A1\u6E05\u5355",en:"Tasks due today"},svg:m.calendar,type:f.QUERY},{text:{zh:"\u672C\u5468\u5230\u671F\u4EFB\u52A1\u6E05\u5355",en:"Tasks due this week"},svg:m.list,type:f.QUERY},{text:{zh:"\u4E0B\u5468\u4EFB\u52A1\u5B89\u6392\u5EFA\u8BAE",en:"Suggestions for next week plan"},svg:m.clock,type:f.ACTION},{text:{zh:"\u622A\u6B62\u65E5\u671F\u51B2\u7A81\u6392\u67E5",en:"Check due-date conflicts"},svg:m.alert,type:f.REVIEW},{text:{zh:"\u903E\u671F\u4EFB\u52A1\u600E\u4E48\u91CD\u6392\u671F",en:"Reschedule overdue tasks"},svg:m.calendar,type:f.ACTION},{text:{zh:"\u672A\u6765\u4E24\u5468\u98CE\u9669\u9884\u8B66\u70B9",en:"Risks in the next two weeks"},svg:m.alert,type:f.REVIEW},{text:{zh:"\u751F\u6210\u4E0B\u5468\u5DE5\u4F5C\u8BA1\u5212\u8349\u6848",en:"Draft next week work plan"},svg:m.document,type:f.SYNC},{text:{zh:"\u672C\u6708\u4EFB\u52A1\u6982\u89C8\uFF08\u5230\u671F/\u5B8C\u6210\uFF09",en:"Monthly task overview (due/completed)"},svg:m.chart,type:f.REVIEW},{text:{zh:"\u672A\u676530\u5929\u5230\u671F\u4EFB\u52A1",en:"Tasks due in the next 30 days"},svg:m.calendar,type:f.QUERY},{text:{zh:"\u672C\u5468\u6BCF\u5929\u8BE5\u505A\u4EC0\u4E48\uFF08\u65F6\u95F4\u5757\uFF09",en:"Daily plan suggestion for this week"},svg:m.clock,type:f.ACTION},{text:{zh:"\u627E\u51FA\u540C\u4E00\u5929\u4EFB\u52A1\u8FC7\u591A\u7684\u65E5\u671F",en:"Find days with too many tasks"},svg:m.alert,type:f.REVIEW},{text:{zh:"\u751F\u6210\u5468\u8BA1\u5212\u540C\u6B65\u7ED9\u56E2\u961F",en:"Draft weekly plan update to the team"},svg:m.send,type:f.SYNC},{text:{zh:"\u641C\u7D22\u201C\u4E0B\u5468\u201D\u76F8\u5173\u4EFB\u52A1\u6D88\u606F",en:"Search \u201Cnext week\u201D in tasks/messages"},svg:m.search,type:f.QUERY}]}function vm(e){const t=((e.getters.dashboardTask||{}).today||[]).filter(n=>n.name),i=t.length>0?t[Math.floor(Math.random()*t.length)].name:null;return[{text:{zh:"\u641C\u7D22\u6587\u4EF6\uFF08\u540D\u79F0/\u5173\u952E\u8BCD\uFF09",en:"Search files by name/keyword"},svg:m.search,type:f.QUERY},{text:{zh:"\u67E5\u770B\u5171\u4EAB\u6587\u4EF6\u5217\u8868",en:"View shared files"},svg:m.folder,type:f.QUERY},{text:i?{zh:`\u67E5\u627E\u300C${i}\u300D\u7684\u9644\u4EF6`,en:`Find attachments of "${i}"`}:{zh:"\u67E5\u627E\u67D0\u4E2A\u4EFB\u52A1\u7684\u9644\u4EF6",en:"Find attachments of a task"},svg:m.task,type:f.QUERY},{text:{zh:"\u9605\u8BFB\u6587\u4EF6\u5E76\u603B\u7ED3\u8981\u70B9",en:"Read a file and summarize"},svg:m.document,type:f.REVIEW},{text:{zh:"\u4ECE\u6587\u4EF6\u63D0\u53D6\u884C\u52A8\u9879\u6E05\u5355",en:"Extract action items from files"},svg:m.clipboard,type:f.ACTION},{text:{zh:"\u751F\u6210\u6587\u4EF6\u8F6C\u53D1\u8BF4\u660E\u6587\u6848",en:"Draft a file sharing note"},svg:m.send,type:f.SYNC},{text:{zh:"\u641C\u7D22\u9879\u76EE\u76F8\u5173\u8D44\u6599",en:"Search project related docs"},svg:m.search,type:f.QUERY},{text:{zh:"\u641C\u7D22\u201C\u9700\u6C42/PRD/\u65B9\u6848\u201D\u6587\u4EF6",en:"Search \u201CPRD/spec/design\u201D files"},svg:m.search,type:f.QUERY},{text:{zh:"\u641C\u7D22\u201C\u4F1A\u8BAE\u7EAA\u8981/\u590D\u76D8\u201D\u6587\u4EF6",en:"Search meeting notes/retrospective files"},svg:m.search,type:f.QUERY},{text:{zh:"\u5BF9\u6BD4\u4E24\u4EFD\u76F8\u4F3C\u6587\u4EF6\u5DEE\u5F02",en:"Compare differences between similar files"},svg:m.document,type:f.REVIEW},{text:{zh:"\u628A\u6587\u4EF6\u8981\u70B9\u5199\u6210\u4EFB\u52A1\u63CF\u8FF0",en:"Turn file highlights into a task description"},svg:m.edit,type:f.ACTION},{text:{zh:"\u4ECE\u6587\u4EF6\u63D0\u53D6\u98CE\u9669\u4E0E\u5F85\u786E\u8BA4\u70B9",en:"Extract risks and questions to confirm"},svg:m.alert,type:f.REVIEW},i?{text:{zh:`\u627E\u4E0E\u300C${i}\u300D\u76F8\u5173\u7684\u6587\u4EF6`,en:`Find files related to "${i}"`},svg:m.search,type:f.QUERY}:null].filter(Boolean)}function Lt(){return[{text:{zh:"\u8865\u5168\u4EFB\u52A1\u4FE1\u606F\u4E0E\u9A8C\u6536\u6807\u51C6",en:"Fill task details and acceptance criteria"},svg:m.edit,type:f.ACTION},{text:{zh:"\u628A\u4EFB\u52A1\u62C6\u6210\u5B50\u4EFB\u52A1\u6E05\u5355",en:"Break down into subtasks"},svg:m.list,type:f.ACTION},{text:{zh:"\u7ACB\u523B\u6DFB\u52A0\u4E00\u4E2A\u5B50\u4EFB\u52A1",en:"Add a subtask now"},svg:m.plus,type:f.ACTION},{text:{zh:"\u8C03\u6574\u8D1F\u8D23\u4EBA/\u534F\u52A9\u4EBA",en:"Adjust owner/assignees"},svg:m.user,type:f.ACTION},{text:{zh:"\u4FEE\u6539\u5F00\u59CB\u4E0E\u622A\u6B62\u65F6\u95F4",en:"Change start and due dates"},svg:m.clock,type:f.ACTION},{text:{zh:"\u628A\u4EFB\u52A1\u79FB\u52A8\u5230\u770B\u677F\u5217",en:"Move task to a board column"},svg:m.list,type:f.ACTION},{text:{zh:"\u5C06\u4EFB\u52A1\u6807\u8BB0\u4E3A\u5B8C\u6210",en:"Mark this task as complete"},svg:m.check,type:f.ACTION},{text:{zh:"\u751F\u6210\u4EFB\u52A1\u8FDB\u5C55\u540C\u6B65\u6587\u6848",en:"Draft a task progress update"},svg:m.message,type:f.SYNC},{text:{zh:"\u67E5\u770B\u8FD9\u4E2A\u4EFB\u52A1\u7684\u9644\u4EF6\u5217\u8868",en:"View task attachments"},svg:m.folder,type:f.QUERY},{text:{zh:"\u67E5\u770B\u5B50\u4EFB\u52A1\u8FDB\u5EA6\u4E0E\u5B8C\u6210\u7387",en:"View subtask progress and completion rate"},svg:m.chart,type:f.REVIEW},{text:{zh:"\u64A4\u9500\u5DF2\u5B8C\u6210\u72B6\u6001",en:"Undo completion status"},svg:m.alert,type:f.ACTION},{text:{zh:"\u6574\u7406\u4EFB\u52A1\u63CF\u8FF0\u4E3A\u8981\u70B9\u7248",en:"Rewrite task description into key points"},svg:m.clipboard,type:f.REVIEW},{text:{zh:"\u751F\u6210\u9A8C\u6536\u68C0\u67E5\u6E05\u5355",en:"Generate acceptance checklist"},svg:m.check,type:f.REVIEW},{text:{zh:"\u57FA\u4E8E\u4EFB\u52A1\u5199\u4E00\u6761\u50AC\u529E\u6D88\u606F",en:"Draft a follow-up message for this task"},svg:m.send,type:f.SYNC},{text:{zh:"\u641C\u7D22\u4E0E\u8BE5\u4EFB\u52A1\u76F8\u5173\u8D44\u6599",en:"Search docs/messages related to this task"},svg:m.search,type:f.QUERY}]}function Ri(){return[{text:{zh:"\u603B\u7ED3\u5BF9\u8BDD\u91CD\u70B9\u4E0E\u5F85\u529E",en:"Summarize highlights and to-dos"},svg:m.document,type:f.REVIEW},{text:{zh:"\u63D0\u53D6\u5F85\u529E\u5E76\u521B\u5EFA\u4EFB\u52A1",en:"Extract to-dos and create tasks"},svg:m.task,type:f.ACTION},{text:{zh:"\u5217\u51FA\u5BF9\u8BDD\u4E2D\u7684\u6587\u4EF6",en:"List files in this chat"},svg:m.folder,type:f.QUERY},{text:{zh:"\u5E2E\u6211\u5199\u63A8\u8FDB\u56DE\u590D",en:"Draft a reply to move forward"},svg:m.message,type:f.SYNC},{text:{zh:"\u751F\u6210\u5BF9\u8BDD\u7EAA\u8981\u6458\u8981",en:"Generate chat summary notes"},svg:m.clipboard,type:f.SYNC},{text:{zh:"\u641C\u7D22\u5BF9\u8BDD\u5173\u952E\u8BCD\u5E76\u7ED3\u8BBA",en:"Search keyword and summarize findings"},svg:m.search,type:f.QUERY},{text:{zh:"\u5217\u51FA\u672C\u5BF9\u8BDD\u5F85\u529E\uFF08TODO\uFF09",en:"List to-dos in this chat"},svg:m.clipboard,type:f.QUERY},{text:{zh:"\u5217\u51FA\u672C\u5BF9\u8BDD\u4F1A\u8BAE\u7EAA\u8981",en:"List meeting notes in this chat"},svg:m.clipboard,type:f.REVIEW},{text:{zh:"\u628A\u884C\u52A8\u6E05\u5355\u53D1\u5230\u5BF9\u8BDD",en:"Send action list to this chat"},svg:m.send,type:f.SYNC},{text:{zh:"\u751F\u6210\u5F85\u786E\u8BA4\u95EE\u9898\u6E05\u5355",en:"Generate questions to confirm"},svg:m.alert,type:f.SYNC},{text:{zh:"\u628A\u5F85\u529E\u5EFA\u4EFB\u52A1\u5E76\u5EFA\u8BAE\u8D1F\u8D23\u4EBA",en:"Create tasks from to-dos with owner suggestions"},svg:m.task,type:f.ACTION}]}function ym(){return[{text:{zh:"\u603B\u7ED3\u6587\u4EF6\u8981\u70B9\u4E0E\u7ED3\u8BBA",en:"Summarize key points and conclusions"},svg:m.document,type:f.REVIEW},{text:{zh:"\u4ECE\u6587\u4EF6\u63D0\u53D6\u4EFB\u52A1\u6E05\u5355",en:"Extract tasks from this file"},svg:m.task,type:f.ACTION},{text:{zh:"\u751F\u6210\u6587\u4EF6\u5206\u4EAB\u8BF4\u660E",en:"Draft a file sharing note"},svg:m.send,type:f.SYNC},{text:{zh:"\u641C\u7D22\u76F8\u4F3C\u6587\u4EF6\u5E76\u5BF9\u6BD4",en:"Find similar files and compare"},svg:m.search,type:f.REVIEW},{text:{zh:"\u67E5\u627E\u5173\u8054\u7684\u4EFB\u52A1/\u9879\u76EE",en:"Find related tasks/projects"},svg:m.list,type:f.QUERY},{text:{zh:"\u5217\u51FA\u9700\u8981\u786E\u8BA4\u7684\u95EE\u9898",en:"List questions to clarify"},svg:m.alert,type:f.REVIEW},{text:{zh:"\u67E5\u770B\u6587\u4EF6\u8BE6\u60C5\uFF08\u5927\u5C0F/\u6765\u6E90\uFF09",en:"View file details (size/source)"},svg:m.document,type:f.QUERY},{text:{zh:"\u63D0\u53D6\u5173\u952E\u6BB5\u843D\u6458\u8981",en:"Extract key paragraphs summary"},svg:m.clipboard,type:f.REVIEW},{text:{zh:"\u4ECE\u6587\u4EF6\u63D0\u53D6\u98CE\u9669\u4E0E\u5F85\u786E\u8BA4\u70B9",en:"Extract risks and questions to confirm"},svg:m.alert,type:f.REVIEW},{text:{zh:"\u628A\u6587\u4EF6\u5185\u5BB9\u5199\u6210\u6C47\u62A5\u7D20\u6750",en:"Turn file content into report material"},svg:m.document,type:f.SYNC},{text:{zh:"\u641C\u7D22\u4E0E\u8BE5\u6587\u4EF6\u76F8\u5173\u7684\u6D88\u606F",en:"Search messages related to this file"},svg:m.search,type:f.QUERY}]}function wm(){return[{text:{zh:"\u67E5\u770B\u8BE5\u4EFB\u52A1\u5168\u90E8\u9644\u4EF6",en:"View all attachments"},svg:m.folder,type:f.QUERY},{text:{zh:"\u603B\u7ED3\u9644\u4EF6\u8981\u70B9\u4E0E\u98CE\u9669",en:"Summarize attachment highlights and risks"},svg:m.document,type:f.REVIEW},{text:{zh:"\u4ECE\u9644\u4EF6\u63D0\u53D6\u884C\u52A8\u9879",en:"Extract action items from attachments"},svg:m.clipboard,type:f.ACTION},{text:{zh:"\u7528\u9644\u4EF6\u5185\u5BB9\u5B8C\u5584\u4EFB\u52A1\u63CF\u8FF0",en:"Improve task description from attachments"},svg:m.edit,type:f.ACTION},{text:{zh:"\u751F\u6210\u9A8C\u6536\u68C0\u67E5\u6E05\u5355",en:"Generate acceptance checklist"},svg:m.check,type:f.REVIEW},{text:{zh:"\u57FA\u4E8E\u9644\u4EF6\u62C6\u5206\u5B50\u4EFB\u52A1",en:"Create subtasks based on attachments"},svg:m.plus,type:f.ACTION},{text:{zh:"\u628A\u9644\u4EF6\u6458\u8981\u5199\u5165\u4EFB\u52A1\u63CF\u8FF0",en:"Write attachment summary into task description"},svg:m.edit,type:f.ACTION},{text:{zh:"\u9644\u4EF6\u5185\u5BB9\u751F\u6210\u5B50\u4EFB\u52A1\u5E76\u6392\u5E8F",en:"Generate and prioritize subtasks from attachments"},svg:m.list,type:f.ACTION},{text:{zh:"\u4ECE\u9644\u4EF6\u751F\u6210\u9A8C\u6536\u6807\u51C6\u8349\u7A3F",en:"Draft acceptance criteria from attachments"},svg:m.check,type:f.REVIEW},{text:{zh:"\u57FA\u4E8E\u9644\u4EF6\u5217\u51FA\u7591\u95EE\u6E05\u5355",en:"List questions based on attachments"},svg:m.alert,type:f.REVIEW},{text:{zh:"\u628A\u9644\u4EF6\u8981\u70B9\u5199\u6210\u540C\u6B65\u6587\u6848",en:"Draft an update message from attachment highlights"},svg:m.send,type:f.SYNC}]}function $m(){return[{text:{zh:"\u57FA\u4E8E\u672C\u5468\u4EFB\u52A1\u751F\u6210\u5468\u62A5",en:"Generate weekly report from tasks"},svg:m.document,type:f.SYNC},{text:{zh:"\u57FA\u4E8E\u4ECA\u5929\u4EFB\u52A1\u751F\u6210\u65E5\u62A5",en:"Generate daily report from tasks"},svg:m.calendar,type:f.SYNC},{text:{zh:"\u67E5\u770B\u6211\u4E0A\u5468\u7684\u6C47\u62A5",en:"View my last week's report"},svg:m.search,type:f.QUERY},{text:{zh:"\u6C47\u603B\u672C\u5468\u5DF2\u5B8C\u6210\u4E8B\u9879",en:"Summarize completed items this week"},svg:m.check,type:f.REVIEW},{text:{zh:"\u6C47\u603B\u672C\u5468\u672A\u5B8C\u6210\u4E0E\u539F\u56E0",en:"Summarize unfinished items and reasons"},svg:m.alert,type:f.REVIEW},{text:{zh:"\u8865\u5145\u98CE\u9669\u4E0E\u9700\u8981\u652F\u6301",en:"Add risks and needed support"},svg:m.alert,type:f.SYNC},{text:{zh:"\u751F\u6210\u4E0B\u5468\u8BA1\u5212\u4E0E\u91CD\u70B9",en:"Generate next week plan and focus"},svg:m.list,type:f.SYNC},{text:{zh:"\u6DA6\u8272\u4E3A\u66F4\u4E13\u4E1A\u8868\u8FBE",en:"Polish for more professional tone"},svg:m.edit,type:f.ACTION},{text:{zh:"\u63D0\u4EA4\u6C47\u62A5\u7ED9\u6307\u5B9A\u540C\u4E8B",en:"Submit report to specified people"},svg:m.send,type:f.ACTION},{text:{zh:"\u67E5\u770B\u6211\u6700\u8FD1\u7684\u5468\u62A5\u5217\u8868",en:"View my recent weekly reports"},svg:m.search,type:f.QUERY},{text:{zh:"\u67E5\u770B\u6211\u6700\u8FD1\u7684\u65E5\u62A5\u5217\u8868",en:"View my recent daily reports"},svg:m.search,type:f.QUERY},{text:{zh:"\u751F\u6210\u7BA1\u7406\u5C42\u7248\u672C\u5468\u62A5",en:"Generate an executive version weekly report"},svg:m.document,type:f.SYNC},{text:{zh:"\u63D0\u70BC\u672C\u5468\u4EAE\u70B9\u6210\u679C\uFF08\u53EF\u91CF\u5316\uFF09",en:"Extract highlights this week (quantifiable)"},svg:m.clipboard,type:f.REVIEW},{text:{zh:"\u672C\u5468\u6700\u5927\u98CE\u9669\u4E0E\u5E94\u5BF9\u52A8\u4F5C",en:"Top risks this week and mitigation actions"},svg:m.alert,type:f.REVIEW},{text:{zh:"\u628A\u5468\u62A5\u6539\u5199\u6210\u7FA4\u53D1\u7248\u672C",en:"Rewrite weekly report for group sharing"},svg:m.message,type:f.SYNC},{text:{zh:"\u63D0\u4EA4\u524D\u68C0\u67E5\u7ED3\u6784\u4E0E\u91CD\u70B9",en:"Check structure and key points before submitting"},svg:m.clipboard,type:f.REVIEW},{text:{zh:"\u81EA\u52A8\u8865\u672A\u5B8C\u6210\u539F\u56E0\u4E0E\u8BA1\u5212",en:"Auto-fill unfinished reasons and next steps"},svg:m.edit,type:f.SYNC},{text:{zh:"\u751F\u6210\u9700\u8981\u534F\u52A9\u4E8B\u9879\u6E05\u5355",en:"Generate a list of help needed"},svg:m.user,type:f.SYNC}]}function km(){return[{text:{zh:"\u603B\u7ED3\u8FD9\u4EFD\u6C47\u62A5\u5173\u952E\u70B9",en:"Summarize key points of this report"},svg:m.document,type:f.REVIEW},{text:{zh:"\u63D0\u53D6\u6C47\u62A5\u91CC\u7684\u5F85\u529E\u4E8B\u9879",en:"Extract action items from this report"},svg:m.clipboard,type:f.ACTION},{text:{zh:"\u627E\u51FA\u6C47\u62A5\u63D0\u5230\u7684\u4EFB\u52A1",en:"Find tasks mentioned in this report"},svg:m.task,type:f.QUERY},{text:{zh:"\u751F\u6210\u4E00\u6761\u56DE\u590D\u8BC4\u8BBA\u6587\u6848",en:"Draft a reply/comment"},svg:m.message,type:f.SYNC},{text:{zh:"\u6807\u8BB0\u4E3A\u5DF2\u8BFB",en:"Mark as read"},svg:m.check,type:f.ACTION},{text:{zh:"\u6807\u8BB0\u4E3A\u672A\u8BFB",en:"Mark as unread"},svg:m.alert,type:f.ACTION},{text:{zh:"\u67E5\u770BTA\u7684\u5176\u4ED6\u6C47\u62A5",en:"View other reports from this person"},svg:m.list,type:f.QUERY},{text:{zh:"\u628A\u6C47\u62A5\u6574\u7406\u6210\u8DDF\u8FDB\u6E05\u5355",en:"Turn this report into a follow-up checklist"},svg:m.clipboard,type:f.ACTION},{text:{zh:"\u751F\u6210\u9700\u8981\u8FFD\u95EE\u76845\u4E2A\u95EE\u9898",en:"Generate 5 follow-up questions"},svg:m.alert,type:f.SYNC},{text:{zh:"\u628A\u5F85\u529E\u8F6C\u6210\u4EFB\u52A1\u5E76\u5EFA\u8BAE\u8D1F\u8D23\u4EBA",en:"Convert action items to tasks with owner suggestions"},svg:m.task,type:f.ACTION},{text:{zh:"\u603B\u7ED3\u98CE\u9669\u70B9\u5E76\u7ED9\u51FA\u5EFA\u8BAE",en:"Summarize risks and give suggestions"},svg:m.alert,type:f.REVIEW},{text:{zh:"\u67E5\u770B\u5BF9\u65B9\u672C\u5468/\u4E0A\u5468\u6C47\u62A5",en:"View this person\u2019s reports this/last week"},svg:m.search,type:f.QUERY},{text:{zh:"\u67E5\u627E\u6C47\u62A5\u76F8\u5173\u4EFB\u52A1\u8BE6\u60C5",en:"Find details of related tasks"},svg:m.search,type:f.QUERY}]}function bm(e){var n;const t=(((n=e==null?void 0:e.state)==null?void 0:n.cacheDialogs)||[]).filter(r=>r.type==="user"&&r.name&&!r.bot),i=t.length>0?t[Math.floor(Math.random()*t.length)].name:null;return[{text:{zh:"\u6211\u6709\u54EA\u4E9B\u672A\u5B8C\u6210\u4EFB\u52A1\uFF1F",en:"What tasks do I have pending?"},svg:m.task,type:f.QUERY},{text:{zh:"\u5168\u5C40\u667A\u80FD\u641C\u7D22\uFF08\u4EFB\u52A1/\u9879\u76EE/\u6587\u4EF6\uFF09",en:"Global smart search (tasks/projects/files)"},svg:m.search,type:f.QUERY},{text:{zh:"\u5E2E\u6211\u521B\u5EFA\u4E00\u4E2A\u4EFB\u52A1",en:"Help me create a task"},svg:m.plus,type:f.ACTION},{text:{zh:"\u67E5\u770B\u6211\u7684\u9879\u76EE\u5217\u8868",en:"View my projects"},svg:m.folder,type:f.QUERY},{text:{zh:"\u5E2E\u6211\u5199\u4E00\u4EFD\u5DE5\u4F5C\u6C47\u62A5",en:"Help me write a work report"},svg:m.document,type:f.SYNC},{text:i?{zh:`\u7ED9 ${i} \u53D1\u6D88\u606F\u5E76\u8BF4\u660E\u80CC\u666F`,en:`Send a message to ${i} with context`}:{zh:"\u7ED9\u67D0\u4EBA\u53D1\u6D88\u606F\u5E76\u8BF4\u660E\u80CC\u666F",en:"Send a message with context"},svg:m.send,type:f.SYNC},{text:{zh:"\u67E5\u770B\u672A\u8BFB\u7684\u5DE5\u4F5C\u6C47\u62A5",en:"View unread work reports"},svg:m.alert,type:f.QUERY},{text:{zh:"\u4E00\u952E\u6807\u8BB0\u672A\u8BFB\u4E3A\u5DF2\u8BFB",en:"Mark all unread reports as read"},svg:m.check,type:f.ACTION},{text:{zh:'\u641C\u7D22"\u98CE\u9669/\u5EF6\u671F/\u963B\u585E"\u5185\u5BB9',en:'Search "risk/delay/blocker" content'},svg:m.search,type:f.QUERY},{text:{zh:"\u521B\u5EFA\u9879\u76EE\u5E76\u8BBE\u7F6E\u770B\u677F\u5217",en:"Create a project with board columns"},svg:m.plus,type:f.ACTION},{text:{zh:"\u628A\u4E00\u4E2A\u60F3\u6CD5\u62C6\u6210\u4EFB\u52A1\u8BA1\u5212",en:"Turn an idea into a task plan"},svg:m.edit,type:f.ACTION},{text:{zh:"\u627E\u51FA\u6211\u6700\u8BE5\u5148\u505A\u76843\u4EF6\u4E8B",en:"Find the top 3 things I should do first"},svg:m.flag,type:f.REVIEW},{text:i?{zh:`\u7ED9 ${i} \u51993\u4E2A\u6D88\u606F\u7248\u672C`,en:`Draft 3 message options to ${i}`}:{zh:"\u7ED9\u67D0\u4EBA\u51993\u4E2A\u6D88\u606F\u7248\u672C",en:"Draft 3 message options to someone"},svg:m.message,type:f.SYNC}]}var Am=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("AssistantModal",{ref:"assistantModal",attrs:{displayMode:e.displayMode,shouldCreateNewSession:e.shouldCreateNewSession,zIndex:e.topZIndex},model:{value:e.showModal,callback:function(i){e.showModal=i},expression:"showModal"}},[t("div",{staticClass:"ai-assistant-header",attrs:{slot:"header"},slot:"header"},[t("div",{staticClass:"ai-assistant-header-title"},[t("i",{staticClass:"taskfont"},[e._v("\uE8A1")]),t("span",[e._v(e._s(e.modalTitle||e.$L("AI \u52A9\u624B")))])]),t("div",{staticClass:"ai-assistant-header-actions"},[e.sessionEnabled&&(e.responses.length>0||e.hasSessionHistory)?t("div",{staticClass:"ai-assistant-header-btn",attrs:{title:e.$L("\u65B0\u5EFA\u4F1A\u8BDD")},on:{click:function(i){return e.createNewSession()}}},[t("i",{staticClass:"taskfont"},[e._v("\uE6F2")])]):e._e(),e.sessionEnabled&&e.hasSessionHistory?t("Dropdown",{attrs:{trigger:"click",placement:"bottom-end",transfer:!0,"z-index":e.topZIndex+1},on:{"on-visible-change":e.onHistoryVisibleChange}},[t("div",{staticClass:"ai-assistant-header-btn",attrs:{title:e.$L("\u5386\u53F2\u4F1A\u8BDD")}},[t("i",{staticClass:"taskfont"},[e._v("\uE6E8")])]),t("DropdownMenu",{staticClass:"ai-assistant-history-menu",attrs:{slot:"list"},slot:"list"},[e._l(e.currentSessionList,function(i){return t("DropdownItem",{key:i.id,class:{active:i.id===e.currentSessionId},nativeOn:{click:function(n){return e.loadSession(i.id)}}},[t("div",{staticClass:"history-item",on:{mouseleave:e.resetDeleteConfirm}},[t("div",{staticClass:"history-item-content"},[t("div",{staticClass:"history-item-title"},[e._v(e._s(i.title))]),e.confirmingDeleteId===i.id?t("div",{staticClass:"history-item-delete history-item-delete-confirm",attrs:{title:e.$L("\u786E\u8BA4\u5220\u9664")},on:{click:function(n){return n.stopPropagation(),e.deleteSession(i.id)}}},[t("svg",{attrs:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round"}},[t("path",{attrs:{d:"M20 6 9 17l-5-5"}})])]):t("div",{staticClass:"history-item-delete",attrs:{title:e.$L("\u5220\u9664")},on:{click:function(n){return n.stopPropagation(),e.askDeleteSession(i.id)}}},[t("i",{staticClass:"taskfont"},[e._v("\uE6E5")])])]),t("span",{staticClass:"history-item-time"},[e._v(e._s(e.formatSessionTime(i.updatedAt)))])])])}),t("DropdownItem",{attrs:{divided:""},nativeOn:{click:function(i){return e.clearSessionHistory.apply(null,arguments)}}},[t("div",{staticClass:"history-clear"},[e._v(" "+e._s(e.$L("\u6E05\u7A7A\u5386\u53F2\u8BB0\u5F55"))+" ")])])],2)],1):e._e()],1)]),t("div",{staticClass:"ai-assistant-content",class:{"ai-assistant-content-dragging":e.isDragging},on:{dragenter:function(i){return i.preventDefault(),e.onDragEnter.apply(null,arguments)},dragover:function(i){i.preventDefault()},dragleave:e.onDragLeave,drop:function(i){return i.preventDefault(),e.onDrop.apply(null,arguments)}}},[e.isDragging?t("div",{staticClass:"ai-assistant-drop-overlay"},[t("div",{staticClass:"ai-assistant-drop-hint"},[t("i",{staticClass:"taskfont"},[e._v("\uE7BC")]),t("span",[e._v(e._s(e.$L("\u677E\u5F00\u4EE5\u4E0A\u4F20\u56FE\u7247")))])])]):e._e(),e.visibleResponses.length?t("div",{ref:"responseContainer",staticClass:"ai-assistant-output"},e._l(e.visibleResponses,function(i){return t("div",{key:i.localId,staticClass:"ai-assistant-output-item"},[t("div",{staticClass:"ai-assistant-output-apply"},[i.status==="error"?[t("span",{staticClass:"ai-assistant-output-error"},[e._v(e._s(e.$L("\u53D1\u9001\u5931\u8D25")))])]:i.rawOutput&&i.status!=="streaming"?[e.showApplyButton?t("Button",{staticClass:"ai-assistant-apply-btn",attrs:{type:"primary",size:"small",loading:i.applyLoading},on:{click:function(n){return e.applyResponse(i)}}},[e._v(" "+e._s(e.applyButtonText||e.$L("\u5E94\u7528\u6B64\u5185\u5BB9"))+" ")]):e._e()]:!i.rawOutput||i.status==="streaming"?[t("Icon",{staticClass:"ai-assistant-output-icon icon-loading",attrs:{type:"ios-loading"}}),e.loadingText&&!i.rawOutput?t("span",{staticClass:"ai-assistant-output-status"},[e._v(e._s(e.loadingText))]):e._e()]:e._e()],2),t("div",{staticClass:"ai-assistant-output-meta"},[t("span",{staticClass:"ai-assistant-output-model"},[e._v(e._s(i.modelLabel||i.model))])]),i.prompt?t("div",{staticClass:"ai-assistant-output-question-wrap"},[e.editingIndex===e.responses.indexOf(i)?t("div",{staticClass:"ai-assistant-question-editor"},[t("Input",{ref:"editInputRef",refInFor:!0,attrs:{type:"textarea",autosize:{minRows:1,maxRows:6},maxlength:e.inputMaxlength||500},on:{"on-keydown":e.onEditKeydown},nativeOn:{compositionstart:function(n){e.isComposing=!0},compositionend:function(n){e.isComposing=!1}},model:{value:e.editingValue,callback:function(n){e.editingValue=n},expression:"editingValue"}}),t("div",{staticClass:"ai-assistant-question-editor-btns"},[t("Button",{attrs:{size:"small"},on:{click:e.cancelEditQuestion}},[e._v(e._s(e.$L("\u53D6\u6D88")))]),t("Button",{attrs:{type:"primary",size:"small",loading:e.loadIng>0},on:{click:e.submitEditedQuestion}},[e._v(e._s(e.$L("\u53D1\u9001")))])],1)],1):e._l([e.parsePromptContent(i.prompt)],function(n,r){return[t("div",{staticClass:"ai-assistant-output-question"},[n.images.length?t("div",{staticClass:"ai-assistant-output-question-images"},e._l(n.images,function(o,a){return t("PromptImage",{key:"img"+a,attrs:{"image-id":o.imageId,"get-image":e.getImageFromCache}})}),1):e._e(),t("div",{staticClass:"ai-assistant-output-question-content"},[t("span",{staticClass:"ai-assistant-output-question-text",class:{"is-expanded":e.expandedQuestionIds.includes(i.localId)},on:{click:function(o){return e.toggleQuestionExpand(i.localId)}}},[e._v(e._s(n.text))]),t("span",{staticClass:"ai-assistant-output-question-edit",attrs:{title:e.$L("\u7F16\u8F91\u95EE\u9898")},on:{click:function(o){e.startEditQuestion(e.responses.indexOf(i))}}},[t("svg",{attrs:{viewBox:"0 0 20 20",fill:"currentColor"}},[t("path",{attrs:{d:"M11.331 3.568a3.61 3.61 0 0 1 4.973.128l.128.135a3.61 3.61 0 0 1 0 4.838l-.128.135-6.292 6.29c-.324.324-.558.561-.79.752l-.235.177q-.309.21-.65.36l-.23.093c-.181.066-.369.114-.585.159l-.765.135-2.394.399c-.142.024-.294.05-.422.06-.1.007-.233.01-.378-.026l-.149-.049a1.1 1.1 0 0 1-.522-.474l-.046-.094a1.1 1.1 0 0 1-.074-.526c.01-.129.035-.28.06-.423l.398-2.394.134-.764a4 4 0 0 1 .16-.586l.093-.23q.15-.342.36-.65l.176-.235c.19-.232.429-.466.752-.79l6.291-6.292zm-5.485 7.36c-.35.35-.533.535-.66.688l-.11.147a2.7 2.7 0 0 0-.24.433l-.062.155c-.04.11-.072.225-.106.394l-.127.717-.398 2.393-.001.002h.003l2.393-.399.717-.126c.169-.034.284-.065.395-.105l.153-.062q.228-.1.433-.241l.148-.11c.153-.126.338-.31.687-.66l4.988-4.988-3.226-3.226zm9.517-6.291a2.28 2.28 0 0 0-3.053-.157l-.173.157-.364.363L15 8.226l.363-.363.157-.174a2.28 2.28 0 0 0 0-2.878z"}})])])])])]})],2):e._e(),i.rawOutput?t("DialogMarkdown",{staticClass:"ai-assistant-output-markdown no-dark-content",attrs:{text:i.displayOutput||i.rawOutput,"before-navigate":e.onMarkdownNavigate}}):t("div",{staticClass:"ai-assistant-output-placeholder"},[e._v(" "+e._s(i.status==="error"?i.error||e.$L("\u53D1\u9001\u5931\u8D25"):e.$L("\u7B49\u5F85 AI \u56DE\u590D..."))+" ")]),i.rawOutput&&i.status==="completed"?t("div",{staticClass:"ai-assistant-output-feedback"},[t("span",{staticClass:"ai-assistant-feedback-btn",attrs:{title:e.$L("\u590D\u5236")},on:{click:function(n){return e.copyResponse(i)}}},[t("svg",{attrs:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.0"}},[t("rect",{attrs:{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}}),t("path",{attrs:{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"}})])]),t("span",{class:["ai-assistant-feedback-btn",{active:i.feedback==="like"}],attrs:{title:e.$L("\u6709\u5E2E\u52A9")},on:{click:function(n){return e.submitFeedback(i,"like")}}},[t("svg",{attrs:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.0"}},[t("path",{attrs:{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z"}}),t("path",{attrs:{d:"M7 10v12"}})])]),t("span",{class:["ai-assistant-feedback-btn ai-assistant-feedback-btn-down",{active:i.feedback==="dislike"}],attrs:{title:e.$L("\u6CA1\u5E2E\u52A9")},on:{click:function(n){return e.submitFeedback(i,"dislike")}}},[t("svg",{attrs:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.0"}},[t("path",{attrs:{d:"M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z"}}),t("path",{attrs:{d:"M17 14V2"}})])]),i.createdAt?t("span",{staticClass:"ai-assistant-output-time",attrs:{title:e.$A.dayjs(i.createdAt).format("YYYY-MM-DD HH:mm:ss")}},[e._v(e._s(e.formatResponseTime(i.createdAt)))]):e._e()]):e._e()],1)}),0):e.displayMode==="chat"?t("div",{staticClass:"ai-assistant-welcome",on:{click:e.onFocus}},[t("div",{staticClass:"ai-assistant-welcome-icon"},[t("svg",{staticClass:"no-dark-content",attrs:{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M385.80516777 713.87417358c-12.76971517 0-24.13100586-7.79328205-28.82575409-19.62404756l-48.91927648-123.9413531c-18.40341303-46.75969229-55.77360888-84.0359932-102.53330118-102.53330117l-123.94135309-48.91927649c-11.83076552-4.69474822-19.62404757-16.05603892-19.62404757-28.8257541s7.79328205-24.13100586 19.62404757-28.82575407l123.94135309-48.91927649c46.75969229-18.40341303 84.0359932-55.77360888 102.53330118-102.53330119l48.91927648-123.94135308c4.69474822-11.83076552 16.05603892-19.62404757 28.8257541-19.62404757s24.13100586 7.79328205 28.82575408 19.62404757l48.91927648 123.94135308c18.40341303 46.75969229 55.77360888 84.0359932 102.53330118 102.53330119l123.94135309 48.91927649c11.83076552 4.69474822 19.62404757 16.05603892 19.62404757 28.82575407 0 12.76971517-7.79328205 24.13100586-19.62404757 28.8257541l-123.94135309 48.91927649c-46.75969229 18.40341303-84.0359932 55.77360888-102.53330118 102.53330117l-48.91927648 123.9413531c-4.69474822 11.83076552-16.14993388 19.62404757-28.82575408 19.62404756zM177.45224165 390.12433614l50.89107073 20.0935224c62.62794129 24.69437565 112.67395736 74.74039171 137.368333 137.36833299l20.09352239 50.89107073 20.0935224-50.89107073c24.69437565-62.62794129 74.74039171-112.67395736 137.368333-137.36833299l50.89107072-20.0935224-50.89107073-20.09352239c-62.62794129-24.69437565-112.67395736-74.74039171-137.36833299-137.36833301l-20.09352239-50.89107074-20.0935224 50.89107074c-24.69437565 62.62794129-74.74039171 112.67395736-137.368333 137.36833301l-50.89107073 20.09352239zM771.33789183 957.62550131c-12.76971517 0-24.13100586-7.79328205-28.82575409-19.62404758l-26.6661699-67.6043744c-8.63833672-21.87752672-26.10280012-39.34199011-47.98032684-47.98032684l-67.60437441-26.6661699c-11.83076552-4.69474822-19.62404757-16.05603892-19.62404757-28.82575409s7.79328205-24.13100586 19.62404757-28.82575409l67.60437441-26.6661699c21.87752672-8.63833672 39.34199011-26.10280012 47.98032684-47.98032685l26.6661699-67.6043744c4.69474822-11.83076552 16.05603892-19.62404757 28.82575409-19.62404757s24.13100586 7.79328205 28.82575409 19.62404757l26.66616991 67.6043744c8.63833672 21.87752672 26.10280012 39.34199011 47.98032684 47.98032685l67.6043744 26.6661699c11.83076552 4.69474822 19.62404757 16.05603892 19.62404757 28.82575409s-7.79328205 24.13100586-19.62404757 28.82575409l-67.6043744 26.6661699c-21.87752672 8.63833672-39.34199011 26.10280012-47.98032684 47.98032684l-26.66616991 67.6043744c-4.69474822 11.83076552-16.14993388 19.62404757-28.82575409 19.62404758z m-75.58544639-190.70067281c33.61439727 14.83540438 60.75004201 41.87715415 75.49155143 75.49155143 14.83540438-33.61439727 41.87715415-60.75004201 75.49155142-75.49155143-33.61439727-14.83540438-60.75004201-41.87715415-75.49155142-75.49155143-14.74150942 33.61439727-41.87715415 60.75004201-75.49155143 75.49155143z"}})])]),t("div",{staticClass:"ai-assistant-welcome-title"},[e._v(" "+e._s(e.$L("\u6B22\u8FCE\u4F7F\u7528 AI \u52A9\u624B"))+" ")]),t("div",{staticClass:"ai-assistant-welcome-prompts"},e._l(e.displayWelcomePrompts,function(i,n){return t("div",{key:n,staticClass:"ai-assistant-prompt-card",on:{click:function(r){return e.onPromptClick(i)}}},[i.svg?t("span",{staticClass:"ai-assistant-prompt-icon no-dark-content",domProps:{innerHTML:e._s(i.svg)}}):e._e(),t("span",[e._v(e._s(i.text))])])}),0)]):e._e(),t("div",{staticClass:"ai-assistant-input"},[e.pendingImages.length?t("div",{staticClass:"ai-assistant-images"},e._l(e.pendingImages,function(i){return t("div",{key:i.id,staticClass:"ai-assistant-image-item"},[t("img",{attrs:{src:i.dataUrl,alt:"preview"}}),t("div",{staticClass:"ai-assistant-image-remove",on:{click:function(n){return e.removeImage(i.id)}}},[t("i",{staticClass:"taskfont"},[e._v("\uE6E5")])])])}),0):e._e(),t("Input",{ref:"inputRef",attrs:{type:"textarea",placeholder:e.inputPlaceholder||e.$L("\u8BF7\u8F93\u5165\u4F60\u7684\u95EE\u9898..."),rows:e.inputRows||1,autosize:e.inputAutosize||{minRows:1,maxRows:6},maxlength:e.inputMaxlength||500},on:{"on-keydown":e.onInputKeydown},nativeOn:{compositionstart:function(i){e.isComposing=!0},compositionend:function(i){e.isComposing=!1},paste:function(i){return e.onPaste.apply(null,arguments)}},model:{value:e.inputValue,callback:function(i){e.inputValue=i},expression:"inputValue"}}),t("input",{ref:"imageInput",staticStyle:{display:"none"},attrs:{type:"file",accept:"image/*",multiple:""},on:{change:e.onImageSelect}}),t("div",{staticClass:"ai-assistant-footer"},[t("div",{staticClass:"ai-assistant-footer-models"},[t("Select",{attrs:{placeholder:e.$L("\u9009\u62E9\u6A21\u578B"),loading:e.modelsLoading,disabled:e.modelsLoading||e.modelGroups.length===0,"not-found-text":e.$L("\u6682\u65E0\u53EF\u7528\u6A21\u578B"),transfer:"","z-index":e.topZIndex+1},model:{value:e.inputModel,callback:function(i){e.inputModel=i},expression:"inputModel"}},e._l(e.modelGroups,function(i){return t("OptionGroup",{key:i.type,attrs:{label:i.label}},e._l(i.options,function(n){return t("Option",{key:n.id,attrs:{value:n.id}},[e._v(" "+e._s(n.label)+" ")])}),1)}),1)],1),t("div",{staticClass:"ai-assistant-footer-btns"},[t("div",{staticClass:"ai-assistant-image-btn",attrs:{title:e.$L("\u4E0A\u4F20\u56FE\u7247")},on:{click:e.triggerImageSelect}},[t("i",{staticClass:"taskfont"},[e._v("\uE7BC")])]),e.submitButtonText?t("Button",{attrs:{type:"primary",shape:"circle",icon:"md-arrow-up",loading:e.loadIng>0},on:{click:e.onSubmit}},[e._v(e._s(e.submitButtonText))]):t("Button",{attrs:{type:"primary",shape:"circle",icon:"md-arrow-up",loading:e.loadIng>0},on:{click:e.onSubmit}})],1)])],1)])])},Cm=[];const Sm={name:"AIAssistant",components:{AssistantModal:Zf,DialogMarkdown:J,PromptImage:rm},floatButtonInstance:null,data(){return{displayMode:"modal",showModal:!1,closing:!1,loadIng:0,pendingAutoSubmit:!1,autoSubmitTimer:null,confirmingDeleteId:null,confirmingDeleteTimer:null,modalTitle:null,applyButtonText:null,submitButtonText:null,showApplyButton:!0,loadingText:null,inputValue:"",inputPlaceholder:null,inputRows:null,inputAutosize:null,inputMaxlength:null,applyHook:null,beforeSendHook:null,renderHook:null,dynamicSystemHook:null,inputModel:"",modelGroups:[],modelMap:{},modelsFirstLoad:!0,modelsLoading:!1,modelCacheKey:"aiAssistant.model",cachedModelId:"",isComposing:!1,responses:[],responseSeed:1,maxResponses:50,contextWindowSize:10,activeSSEClients:[],sessionEnabled:!1,sessionStore:[],currentSessionKey:"default",currentSessionId:null,sessionCacheKeyPrefix:"aiAssistant.sessions",maxSessionsPerKey:20,sessionStoreLoaded:!1,displayWelcomePrompts:[],editingIndex:-1,editingValue:"",expandedQuestionIds:[],inputHistoryList:[],inputHistoryIndex:0,inputHistoryCurrent:"",inputHistoryCacheKey:"aiAssistant.inputHistory",inputHistoryLimit:50,pendingImages:[],imageIdSeed:0,maxImages:5,imageCacheKeyPrefix:"aiAssistant.images",imageCache:{},serverImageMap:{},isDragging:!1,dragCounter:0,topZIndex:(window.modalTransferIndex||1e3)+1e3,zIndexTimer:null}},created(){this.refreshWelcomePromptsDebounced=Qt.exports.debounce(()=>{var e;this.displayWelcomePrompts=pm(this.$store,((e=this.$route)==null?void 0:e.params)||{})},100),this.saveSessionStoreDebouncedMap={}},mounted(){x.on("openAIAssistant",this.onOpenAIAssistant),this.loadCachedModel(),this.loadInputHistory(),this.mountFloatButton(),this.startZIndexTimer(2e4)},beforeDestroy(){var e;x.off("openAIAssistant",this.onOpenAIAssistant),this.clearActiveSSEClients(),this.clearAutoSubmitTimer(),this.resetDeleteConfirm(),this.unmountFloatButton(),(e=this.refreshWelcomePromptsDebounced)==null||e.cancel(),this.stopZIndexTimer()},computed:{selectedModelOption({modelMap:e,inputModel:s}){return e[s]||null},visibleResponses(){return this.responses.filter(e=>e.role!=="system")},shouldCreateNewSession(){return this.visibleResponses.length===0},currentSessionList(){return this.sessionStore||[]},hasSessionHistory(){return this.currentSessionList.length>0},welcomePromptsKey(){var r;const e=this.$store.state.routeName,s=this.$store.state.dialogId,t=(r=this.$store.getters.projectData)==null?void 0:r.id,i=this.$store.state.taskId,n=this.$store.state.dialogModalShow;return`${e}|${s}|${t}|${i}|${n}`}},watch:{inputModel(e){this.saveModelCache(e)},welcomePromptsKey:{handler(){var e;(e=this.refreshWelcomePromptsDebounced)==null||e.call(this)},immediate:!0},showModal(e){e?this.startZIndexTimer(5e3):(this.startZIndexTimer(2e4),x.emit("aiAssistantClosed"))}},methods:{onFocus(){var e;(e=this.$refs.inputRef)==null||e.focus()},onPromptClick(e){!e||!e.text||(this.inputValue=e.text,this.$nextTick(()=>{this.onFocus()}))},mountFloatButton(){const e=E.extend(qf);this.$options.floatButtonInstance=new e({parent:this}),this.$options.floatButtonInstance.$mount(),document.body.appendChild(this.$options.floatButtonInstance.$el)},unmountFloatButton(){this.$options.floatButtonInstance&&(this.$options.floatButtonInstance.$destroy(),this.$options.floatButtonInstance.$el&&this.$options.floatButtonInstance.$el.parentNode&&this.$options.floatButtonInstance.$el.parentNode.removeChild(this.$options.floatButtonInstance.$el),this.$options.floatButtonInstance=null)},onOpenAIAssistant(e){$A.isJson(e)||(e={});const s=e.displayMode==="chat"?"chat":"modal";let t=0;this.showModal&&this.displayMode==="chat"&&s==="modal"&&(this.showModal=!1,t=50),setTimeout(()=>{this.doOpenAssistant(e,s)},t)},async doOpenAssistant(e,s){this.displayMode=s,this.inputValue=e.value||"",this.inputPlaceholder=e.placeholder||null,this.inputRows=e.rows||null,this.inputAutosize=e.autosize||null,this.inputMaxlength=e.maxlength||null,this.applyHook=e.onApply||null,this.beforeSendHook=e.onBeforeSend||null,this.dynamicSystemHook=e.onDynamicSystem||null,this.modalTitle=e.title||null,this.applyButtonText=e.applyButtonText||null,this.submitButtonText=e.submitButtonText||null,this.showApplyButton=e.showApplyButton!==!1,this.loadingText=e.loadingText||null,this.renderHook=e.onRender||null,this.pendingAutoSubmit=!!e.autoSubmit,await this.initSession(e.sessionKey),this.showModal=!0,this.fetchModelOptions(),this.clearAutoSubmitTimer(),this.$nextTick(()=>{this.scheduleAutoSubmit(),this.scrollResponsesToBottom(),this.onFocus()})},async loadCachedModel(){try{this.cachedModelId=await $A.IDBString(this.modelCacheKey)||""}catch{this.cachedModelId=""}},saveModelCache(e){!e||($A.IDBSave(this.modelCacheKey,e),this.cachedModelId=e)},async fetchModelOptions(){const e=this.modelsFirstLoad;e&&(this.modelsFirstLoad=!1,this.modelsLoading=!0);try{const{data:s}=await this.$store.dispatch("call",{url:"assistant/models"});this.normalizeModelOptions(s)}catch(s){if(this.modelGroups.length>0)return;$A.modalError({content:(s==null?void 0:s.msg)||"\u83B7\u53D6\u6A21\u578B\u5217\u8868\u5931\u8D25",onOk:t=>{this.showModal=!1}})}finally{e&&(this.modelsLoading=!1)}},normalizeModelOptions(e){const s=[],t={};$A.isJson(e)&&Object.keys(e).forEach(n=>{const r=n.match(/^(.*?)_models$/);if(!r)return;const o=r[1],a=e[n],l=a?hd(a):[];if(!l.length)return;const c=e[`${o}_model`]||"",d=Zs[o]||o,h={type:o,label:d,defaultModel:c,options:l.map(u=>{const p=`${o}:${u.value}`,g=Object.assign({},u,{id:p,type:o});return t[p]=g,g})};s.push(h)});const i=Object.keys(Zs);s.sort((n,r)=>{const o=i.indexOf(n.type),a=i.indexOf(r.type);return o===-1&&a===-1?n.label.localeCompare(r.label):o===-1?1:a===-1?-1:o-a}),this.modelGroups=s,this.modelMap=t,this.ensureSelectedModel()},ensureSelectedModel(){if(this.inputModel&&this.modelMap[this.inputModel])return;if(this.cachedModelId&&this.modelMap[this.cachedModelId]){this.inputModel=this.cachedModelId;return}for(const s of this.modelGroups)if(s.defaultModel){const t=s.options.find(i=>i.value===s.defaultModel);if(t){this.inputModel=t.id;return}}const e=this.modelGroups.find(s=>s.options.length>0);e?this.inputModel=e.options[0].id:this.inputModel=""},onMarkdownNavigate(){const e=this.$refs.assistantModal;e&&typeof e.prepareForNavigate=="function"?e.prepareForNavigate():this.showModal=!1},onInputKeydown(e){if(!this.isComposing){if(!e.shiftKey&&e.key==="Enter"){e.preventDefault(),this.onSubmit();return}e.key==="ArrowUp"?this.navigateInputHistory("up")||e.preventDefault():e.key==="ArrowDown"&&(this.navigateInputHistory("down")||e.preventDefault())}},async onSubmit(){if(this.loadIng>0)return;const e=(this.inputValue||"").trim();if(!e)return;await this._doSendQuestion(e)&&(this.inputValue="",this.clearPendingImages())},async _doSendQuestion(e){const s=this.selectedModelOption;if(!s)return $A.messageWarning("\u8BF7\u9009\u62E9\u6A21\u578B"),!1;this.loadIng++;let t=null;try{this.sessionEnabled&&!this.beforeSendHook&&this.injectWeakPromptIfNeeded();const i=await this.collectBaseContext(e),n=await this.buildPayloadData(i),r=this.buildCurrentContent(e),o=await this.processContentForStorage(r);t=this.createResponseEntry({modelOption:s,prompt:o}),this.scrollResponsesToBottom();const a=await this.fetchStreamKey({model_type:s.type,model_name:s.value,context:n});return this.persistInputHistory(e),this.startStream(a,t),!0}catch(i){const n=(i==null?void 0:i.msg)||"\u53D1\u9001\u5931\u8D25";return t&&this.markResponseError(t,n),$A.modalError(n),!1}finally{this.loadIng--}},async buildPayloadData(e){const s=this.normalizeContextEntries(e);if(typeof this.beforeSendHook!="function")return s;try{const t=s.map(o=>o.slice()),i=this.beforeSendHook(t),n=i&&typeof i.then=="function"?await i:i,r=this.normalizeContextEntries(n);if(r.length)return r}catch(t){console.warn("[AIAssistant] onBeforeSend error:",t)}return s},async restorePromptImages(e){if(!e||typeof e!="string")return e||"";const s=this.parsePromptContent(e);if(s.images.length===0)return s.text;const t=[];for(const i of s.images){const n=await this.getImageFromCache(i.imageId);n&&t.push({type:"image_url",image_url:{url:n}})}return s.text&&t.push({type:"text",text:s.text}),t.length>0?t:s.text},async collectBaseContext(e){const s=(r,o,a)=>{if(!(typeof a=="undefined"||a===null))if(typeof a=="string"){const l=a.trim();if(!l)return;r.push([o,l])}else Array.isArray(a)&&a.length>0&&r.push([o,a])},t=[];if(this.sessionEnabled&&!this.beforeSendHook&&(s(t,"system",fn(cd)),typeof this.dynamicSystemHook=="function"))try{const r=this.dynamicSystemHook();r&&s(t,"system",String(r))}catch(r){console.warn("[AIAssistant] dynamicSystemHook error:",r)}const i=Number(this.contextWindowSize)||0,n=i>0?this.responses.slice(-i):this.responses;for(const r of n){if(r.role==="system"){s(t,"system",r.content);continue}if(r.prompt){const o=await this.restorePromptImages(r.prompt);s(t,"human",o)}r.rawOutput&&s(t,"assistant",r.rawOutput)}if(e&&String(e).trim()){const r=this.buildCurrentContent(e);s(t,"human",r)}return t},findLastSystemEntry(e){for(let s=this.responses.length-1;s>=0;s--){const t=this.responses[s];if(t.role==="system"&&(!e||t.systemKind===e))return t}return null},injectWeakPromptIfNeeded(){var n;let e=null;try{e=om(this.$store,((n=this.$route)==null?void 0:n.params)||{})}catch(r){console.warn("[AIAssistant] buildWeakPrompt error:",r);return}if(!e||!e.contextKey)return;const s=this.findLastSystemEntry("pageContext");if(s&&s.contextKey===e.contextKey)return;const i=am(e,!!s);!i||this.responses.push({localId:this.responseSeed++,role:"system",systemKind:"pageContext",contextKey:e.contextKey,content:i})},buildCurrentContent(e){const s=String(e).trim();if(!this.pendingImages.length)return s;const t=[];for(const i of this.pendingImages)t.push({type:"image_url",image_url:{url:i.dataUrl}});return s&&t.push({type:"text",text:s}),t},normalizeContextEntries(e){if(!Array.isArray(e))return[];const s=[];return e.forEach(t=>{if(!Array.isArray(t)||t.length<2)return;const[i,n]=t,r=typeof i=="string"?i.trim():"";if(Array.isArray(n)){r&&n.length>0&&s.push([r,n]);return}const o=typeof n=="string"?n.trim():String(n!=null?n:"").trim();if(!r||!o)return;const a=s[s.length-1];if(a&&a[0]===r&&typeof a[1]=="string"&&a[1].slice(-4)==="++++"){const c=a[1].slice(0,-4);a[1]=c?`${c}
${o}`:o;return}s.push([r,o])}),s},async fetchStreamKey({model_type:e,model_name:s,context:t}){const i=/zh/i.test(Xt())?"zh":"en",n={model_type:e,model_name:s,context:JSON.stringify(t||[]),locale:i,session_id:this.currentSessionId||""},{data:r}=await this.$store.dispatch("call",{url:"assistant/auth",method:"post",data:n}),o=(r==null?void 0:r.stream_key)||"";if(!o)throw new Error("\u83B7\u53D6 stream_key \u5931\u8D25");return o},startStream(e,s){if(!e)throw new Error("\u83B7\u53D6 stream_key \u5931\u8D25");const t={sessionKey:this.currentSessionKey,sessionId:this.currentSessionId,localId:s.localId};this.clearOwnerSSEClients(t.sessionKey,t.sessionId);const i=new vn($A.mainUrl(`ai/invoke/stream/${e}`));return this.registerSSEClient(i,t),i.subscribe(["append","replace","done"],(n,r)=>{switch(n){case"append":case"replace":this.handleStreamChunk(t,n,r);break;case"done":this.handleStreamDone(t,i,r);break}},()=>{this.handleStreamFailed(t,i)}),i},locateStreamTarget(e){if(this.currentSessionKey===e.sessionKey&&this.currentSessionId===e.sessionId)return{entry:this.responses.find(s=>s.localId===e.localId)||null,isCurrent:!0,session:null};if(this.currentSessionKey===e.sessionKey){const s=this.sessionStore.find(i=>i.id===e.sessionId)||null;return{entry:s&&(s.responses||[]).find(i=>i.localId===e.localId)||null,isCurrent:!1,session:s}}return{entry:null,isCurrent:!1,session:null}},handleStreamDone(e,s,t){const i=this.parseStreamPayload(t),n=this.locateStreamTarget(e),r=n.isCurrent&&this.shouldStickToBottom();n.entry&&(i&&i.error?this.markResponseError(n.entry,i.error):n.entry.status!=="error"&&(n.entry.status="completed")),this.releaseSSEClient(s),this.persistStreamTarget(n),r&&this.scrollResponsesToBottom()},handleStreamFailed(e,s){const t=this.locateStreamTarget(e);t.entry&&["streaming","waiting"].includes(t.entry.status)&&this.markResponseError(t.entry,this.$L("\u8FDE\u63A5\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5")),this.releaseSSEClient(s),this.persistStreamTarget(t)},persistStreamTarget(e){e.isCurrent?this.saveCurrentSession():e.session&&(e.session.updatedAt=Date.now(),this.saveSessionStore(e.session.id))},handleStreamChunk(e,s,t){const i=this.locateStreamTarget(e),n=i.entry;if(!n)return;const r=i.isCurrent&&this.shouldStickToBottom(),o=this.parseStreamPayload(t),a=this.resolveStreamContent(o);s==="replace"?n.rawOutput=a:n.rawOutput+=a,this.updateResponseDisplayOutput(n),n.status="streaming",i.isCurrent&&r&&this.scrollResponsesToBottom()},parseStreamPayload(e){if(!e||!e.data)return{};try{return JSON.parse(e.data)}catch{return{}}},resolveStreamContent(e){return!e||typeof e!="object"?"":typeof e.content=="string"?e.content:typeof e.c=="string"?e.c:""},registerSSEClient(e,s={}){!e||this.activeSSEClients.push({sse:e,sessionKey:s.sessionKey,sessionId:s.sessionId,localId:s.localId})},releaseSSEClient(e){const s=this.activeSSEClients.findIndex(t=>t.sse===e);s>-1&&this.activeSSEClients.splice(s,1),e.unsunscribe()},clearActiveSSEClients(){this.activeSSEClients.forEach(e=>{try{e.sse.unsunscribe()}catch{}}),this.activeSSEClients=[]},clearOwnerSSEClients(e,s){this.activeSSEClients=this.activeSSEClients.filter(t=>{if(t.sessionKey===e&&t.sessionId===s){this.cancelStreamOwner(t);try{t.sse.unsunscribe()}catch{}return!1}return!0})},cancelStreamOwner(e){const s=this.locateStreamTarget({sessionKey:e.sessionKey,sessionId:e.sessionId,localId:e.localId});s.entry&&["streaming","waiting"].includes(s.entry.status)&&(this.markResponseError(s.entry,this.$L("\u5DF2\u53D6\u6D88")),this.persistStreamTarget(s))},clearAutoSubmitTimer(){this.autoSubmitTimer&&(clearTimeout(this.autoSubmitTimer),this.autoSubmitTimer=null)},scheduleAutoSubmit(){if(!this.pendingAutoSubmit)return;const e=()=>{if(!!this.pendingAutoSubmit){if(this.canAutoSubmit()){this.pendingAutoSubmit=!1,this.clearAutoSubmitTimer(),this.onSubmit();return}this.autoSubmitTimer=setTimeout(e,200)}};this.clearAutoSubmitTimer(),this.autoSubmitTimer=setTimeout(e,0)},canAutoSubmit(){return!this.modelsLoading&&!!this.selectedModelOption&&this.responses.length===0&&this.loadIng===0},createResponseEntry({modelOption:e,prompt:s}){const t={localId:this.responseSeed++,id:null,model:e.value,modelLabel:e.label,type:e.type,prompt:s.trim(),rawOutput:"",displayOutput:"",status:"waiting",error:"",applyLoading:!1,feedback:"",createdAt:Date.now()};return this.responses.push(t),this.responses.length>this.maxResponses&&this.responses.shift(),t},markResponseError(e,s){e.status="error",e.error=s},applyResponse(e){if(!e||e.applyLoading)return;if(!e.rawOutput){$A.messageWarning("\u6682\u65E0\u53EF\u7528\u5185\u5BB9");return}if(typeof this.applyHook!="function"){this.closeAssistant();return}e.applyLoading=!0;const s=this.buildResponsePayload(e,!0);try{const t=this.applyHook(s);t&&typeof t.then=="function"?t.then(()=>{this.closeAssistant()}).catch(i=>{$A.modalError((i==null?void 0:i.msg)||"\u5E94\u7528\u5931\u8D25")}).finally(()=>{e.applyLoading=!1}):(this.closeAssistant(),e.applyLoading=!1)}catch(t){e.applyLoading=!1,$A.modalError((t==null?void 0:t.msg)||"\u5E94\u7528\u9519\u8BEF")}},buildResponsePayload(e,s=!1){return e?{model:e.model,type:e.type,prompt:e.prompt,rawOutput:s?this.removeReasoningSections(e.rawOutput):e.rawOutput}:{model:"",type:"",prompt:"",rawOutput:""}},removeReasoningSections(e){return typeof e!="string"?e:e.replace(/:::\s*reasoning[\s\S]*?:::/gi,"").trim()},extractSourceIds(e){if(typeof e!="string"||!e)return[];const t=this.removeReasoningSections(e).match(/(?:参考|References?)\s*[::]\s*(.+?)\s*$/im);if(!t)return[];const i=t[1].match(/[a-z0-9][\w-]*(?:\.[a-z0-9][\w-]*)+/gi)||[];return[...new Set(i)].slice(0,10)},copyResponse(e){const s=this.removeReasoningSections((e==null?void 0:e.displayOutput)||(e==null?void 0:e.rawOutput))||"";!s||this.copyText(s)},async submitFeedback(e,s){if(!e||e.feedbackLoading)return;const t=e.feedback===s?"":s,i=e.feedback;this.$set(e,"feedback",t),this.$set(e,"feedbackLoading",!0);try{await this.$store.dispatch("call",{url:"assistant/feedback/save",method:"post",data:{session_key:this.currentSessionKey,session_id:this.currentSessionId||"",local_id:e.localId,feedback:t,prompt:this.parsePromptContent(e.prompt).text.substring(0,1e3),answer:(this.removeReasoningSections(e.rawOutput)||"").substring(0,2e3),source_ids:this.extractSourceIds(e.rawOutput),model:e.model}}),this.$set(e,"feedbackLoading",!1),this.saveCurrentSession()}catch(n){this.$set(e,"feedback",i),this.$set(e,"feedbackLoading",!1),$A.messageError((n==null?void 0:n.msg)||"\u53CD\u9988\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5")}},updateResponseDisplayOutput(e){if(!!e){if(typeof this.renderHook!="function"){e.displayOutput=e.rawOutput;return}try{const s=this.buildResponsePayload(e),t=this.renderHook(s);if(t&&typeof t.then=="function"){console.warn("[AIAssistant] onRender should be synchronous"),e.displayOutput=e.rawOutput;return}e.displayOutput=typeof t=="string"?t:e.rawOutput}catch(s){console.warn("[AIAssistant] onRender error:",s),e.displayOutput=e.rawOutput}}},closeAssistant(){this.closing||(this.closing=!0,this.pendingAutoSubmit=!1,this.clearAutoSubmitTimer(),this.resetInputHistoryNavigation(),this.clearPendingImages(),this.showModal=!1,setTimeout(()=>{this.closing=!1},300))},scrollResponsesToBottom(){this.$nextTick(()=>{const e=this.$refs.responseContainer;e&&e.scrollHeight&&(e.scrollTop=e.scrollHeight)})},shouldStickToBottom(e=20){const s=this.$refs.responseContainer;if(!s)return!0;const t=s.scrollTop+s.clientHeight,i=s.scrollHeight-t;return Number.isNaN(i)?!0:i<=e},async loadSessionStore(e){try{const{data:s}=await this.$store.dispatch("call",{url:"assistant/session/list",data:{session_key:e||this.currentSessionKey}});Array.isArray(s)?(s.forEach(t=>{Array.isArray(t.responses)&&t.responses.forEach(i=>{(i.status==="streaming"||i.status==="waiting")&&(i.status="error",i.error=i.error||this.$L("\u4F1A\u8BDD\u4E2D\u65AD")),i.feedbackLoading=!1}),t.images&&Object.assign(this.serverImageMap,t.images)}),this.sessionStore=s):this.sessionStore=[]}catch(s){console.warn("[AIAssistant] \u52A0\u8F7D\u4F1A\u8BDD\u5931\u8D25:",s),this.sessionStore=[]}this.sessionStoreLoaded=!0},sanitizeResponsesForPersist(e){return(e||[]).map(s=>{const{feedbackLoading:t,...i}=s;return i.status==="streaming"||i.status==="waiting"?{...i,status:"error",error:i.error||this.$L("\u4F1A\u8BDD\u4E2D\u65AD")}:i})},async saveSessionStore(e=this.currentSessionId){if(!e)return;const s=this.sessionStore.find(n=>n.id===e);if(!s)return;const t=[],i=this.extractImageIdsFromSession(s);for(const n of i)!this.serverImageMap[n]&&this.imageCache[n]&&t.push({imageId:n,dataUrl:this.imageCache[n]});try{const{data:n}=await this.$store.dispatch("call",{url:"assistant/session/save",method:"post",data:{session_key:this.currentSessionKey,session_id:s.id,title:s.title||"",data:this.sanitizeResponsesForPersist(s.responses),new_images:t}});n!=null&&n.image_urls&&Object.assign(this.serverImageMap,n.image_urls)}catch(n){console.warn("[AIAssistant] \u4FDD\u5B58\u4F1A\u8BDD\u5931\u8D25:",n)}},generateSessionId(){return`session-${Date.now()}-${Math.random().toString(36).substr(2,9)}`},generateSessionTitle(e){var n;if(!e||e.length===0)return this.$L("\u65B0\u4F1A\u8BDD");const s=((n=e.find(r=>r.role!=="system"&&r.prompt))==null?void 0:n.prompt)||"";if(!s)return this.$L("\u65B0\u4F1A\u8BDD");const t=this.parsePromptContent(s).text;if(!t)return this.$L("\u65B0\u4F1A\u8BDD");const i=t.trim().substring(0,20);return i.length0&&this.saveCurrentSession(),this.sessionEnabled=!0,(s||this.currentSessionKey!==e||!this.sessionStoreLoaded)&&(this.currentSessionKey=e,await this.loadSessionStore(e),s&&(this.currentSessionId=null,this.responses=[])),this.currentSessionId||(this.currentSessionId=this.generateSessionId(),this.responses=[])},createNewSession(e=!0){e&&this.responses.length>0&&this.saveCurrentSession(),this.currentSessionId=this.generateSessionId(),this.responses=[]},saveCurrentSession(){if(!this.sessionEnabled||!this.currentSessionId||this.responses.length===0)return;Array.isArray(this.sessionStore)||(this.sessionStore=[]);const e=this.sessionStore.findIndex(t=>t.id===this.currentSessionId),s={id:this.currentSessionId,title:this.generateSessionTitle(this.responses),responses:JSON.parse(JSON.stringify(this.responses)),createdAt:e>-1?this.sessionStore[e].createdAt:Date.now(),updatedAt:Date.now()};e>-1?this.sessionStore.splice(e,1,s):this.sessionStore.unshift(s),this.sessionStore.length>this.maxSessionsPerKey&&this.sessionStore.splice(this.maxSessionsPerKey),this.saveSessionStoreDebounced(this.currentSessionId)},saveSessionStoreDebounced(e){if(!e)return;let s=this.saveSessionStoreDebouncedMap[e];s||(s=Qt.exports.debounce(()=>{this.saveSessionStore(e)},2e3),this.saveSessionStoreDebouncedMap[e]=s),s()},loadSession(e){const t=this.getSessionList().find(i=>i.id===e);t&&(this.currentSessionId!==e&&this.responses.length>0&&this.saveCurrentSession(),this.currentSessionId=t.id,this.responses=JSON.parse(JSON.stringify(t.responses)),this.syncResponseSeed(),this.scrollResponsesToBottom())},syncResponseSeed(){if(this.responses.length===0)return;const e=this.responses.reduce((s,t)=>Math.max(s,t.localId||0),0);e>=this.responseSeed&&(this.responseSeed=e+1)},askDeleteSession(e){this.confirmingDeleteId=e,clearTimeout(this.confirmingDeleteTimer),this.confirmingDeleteTimer=setTimeout(()=>{this.resetDeleteConfirm()},3e3)},resetDeleteConfirm(){this.confirmingDeleteId=null,clearTimeout(this.confirmingDeleteTimer),this.confirmingDeleteTimer=null},onHistoryVisibleChange(){this.resetDeleteConfirm()},deleteSession(e){this.resetDeleteConfirm();const s=this.sessionStore.findIndex(t=>t.id===e);if(s>-1){const t=this.sessionStore[s];this.clearSessionImageCache(t),this.sessionStore.splice(s,1),this.$store.dispatch("call",{url:"assistant/session/delete",method:"post",data:{session_key:this.currentSessionKey,session_id:e}}).catch(i=>console.warn("[AIAssistant] \u5220\u9664\u4F1A\u8BDD\u5931\u8D25:",i)),this.currentSessionId===e&&this.createNewSession(!1)}},clearSessionHistory(){$A.modalConfirm({title:this.$L("\u6E05\u7A7A\u5386\u53F2\u4F1A\u8BDD"),content:this.$L("\u786E\u5B9A\u8981\u6E05\u7A7A\u6240\u6709\u5386\u53F2\u4F1A\u8BDD\u5417\uFF1F"),onOk:()=>{this.serverImageMap={},this.imageCache={},this.sessionStore=[],this.$store.dispatch("call",{url:"assistant/session/delete",method:"post",data:{session_key:this.currentSessionKey,clear_all:!0}}).catch(e=>console.warn("[AIAssistant] \u6E05\u7A7A\u4F1A\u8BDD\u5931\u8D25:",e)),this.createNewSession(!1)}})},formatResponseTime(e){if(!e)return"";const s=$A.daytz(),t=$A.dayjs(e),i=t.format("HH:mm");if(s.format("YYYY-MM-DD")===t.format("YYYY-MM-DD"))return i;const n=s.subtract((s.day()+6)%7,"day").startOf("day");if(t.valueOf()>=n.valueOf()&&t.valueOf()<=s.valueOf()){const r={zh:"zh-CN","zh-CHT":"zh-TW"},o=Xt(),a=r[o]||o||"en";return`${new Intl.DateTimeFormat(a,{weekday:"short"}).format(t.toDate())} ${i}`}return s.year()===t.year()?t.format("MM-DD HH:mm"):t.format("YYYY-MM-DD")},formatSessionTime(e){const s=$A.daytz(),t=$A.dayjs(e);return s.format("YYYY-MM-DD")===t.format("YYYY-MM-DD")?this.$L("\u4ECA\u5929")+" "+t.format("HH:mm"):s.subtract(1,"day").format("YYYY-MM-DD")===t.format("YYYY-MM-DD")?this.$L("\u6628\u5929")+" "+t.format("HH:mm"):s.year()===t.year()?t.format("MM-DD HH:mm"):t.format("YYYY-MM-DD HH:mm")},async loadInputHistory(){try{const e=await $A.IDBValue(this.inputHistoryCacheKey);Array.isArray(e)?this.inputHistoryList=e:this.inputHistoryList=[]}catch{this.inputHistoryList=[]}this.inputHistoryIndex=this.inputHistoryList.length,this.inputHistoryCurrent=""},persistInputHistory(e){const s=(e||"").trim();if(!s)return;const t=Array.isArray(this.inputHistoryList)?[...this.inputHistoryList]:[];if(t[t.length-1]===s){this.inputHistoryIndex=t.length,this.inputHistoryCurrent="";return}const i=t.indexOf(s);i!==-1&&t.splice(i,1),t.push(s),t.length>this.inputHistoryLimit&&t.splice(0,t.length-this.inputHistoryLimit),this.inputHistoryList=t,this.inputHistoryIndex=t.length,this.inputHistoryCurrent="",$A.IDBSet(this.inputHistoryCacheKey,t).catch(()=>{})},resetInputHistoryNavigation(){this.inputHistoryIndex=this.inputHistoryList.length,this.inputHistoryCurrent=""},navigateInputHistory(e){var r,o;if(!this.inputHistoryList.length)return!0;const s=(o=(r=this.$refs.inputRef)==null?void 0:r.$el)==null?void 0:o.querySelector("textarea");if(!s)return!0;const t=s.selectionStart,i=s.selectionEnd,n=this.inputValue||"";if(t!==i)return!0;if(e==="up"){if(n.substring(0,t).includes(`
`))return!0;if(this.inputHistoryIndex===this.inputHistoryList.length&&(this.inputHistoryCurrent=n),this.inputHistoryIndex>0)return this.inputHistoryIndex--,this.inputValue=this.inputHistoryList[this.inputHistoryIndex]||"",this.$nextTick(()=>{var c,d;const l=(d=(c=this.$refs.inputRef)==null?void 0:c.$el)==null?void 0:d.querySelector("textarea");l==null||l.setSelectionRange(0,0)}),!1}else if(e==="down")return n.substring(t).includes(`
-`)||this.inputHistoryIndex>=this.inputHistoryList.length?!0:(this.inputHistoryIndex{var c,d;const l=(d=(c=this.$refs.inputRef)==null?void 0:c.$el)==null?void 0:d.querySelector("textarea");if(l){const h=(this.inputValue||"").length;l.setSelectionRange(h,h)}}),!1);return!0},toggleQuestionExpand(e){if(e==null)return;const s=this.expandedQuestionIds.indexOf(e);s===-1?this.expandedQuestionIds.push(e):this.expandedQuestionIds.splice(s,1)},startEditQuestion(e){e<0||e>=this.responses.length||this.loadIng>0||(this.editingIndex=e,this.editingValue=this.responses[e].prompt||"",this.$nextTick(()=>{const s=this.$refs.editInputRef,t=Array.isArray(s)?s[0]:s;t&&typeof t.focus=="function"&&t.focus()}))},cancelEditQuestion(){this.editingIndex=-1,this.editingValue=""},onEditKeydown(e){e.key==="Escape"?(e.preventDefault(),this.cancelEditQuestion()):e.key==="Enter"&&!e.shiftKey&&!this.isComposing&&(e.preventDefault(),this.submitEditedQuestion())},async submitEditedQuestion(){if(this.editingIndex<0||this.loadIng>0)return;const e=(this.editingValue||"").trim();if(!e){$A.messageWarning("\u8BF7\u8F93\u5165\u95EE\u9898");return}this.responses.splice(this.editingIndex),this.editingIndex=-1,this.editingValue="",await this._doSendQuestion(e)},updateTopZIndex(){this.topZIndex=(window.modalTransferIndex||1e3)+1e3},startZIndexTimer(e){this.stopZIndexTimer(),this.updateTopZIndex(),this.zIndexTimer=setInterval(()=>{this.updateTopZIndex()},e)},stopZIndexTimer(){this.zIndexTimer&&(clearInterval(this.zIndexTimer),this.zIndexTimer=null)},triggerImageSelect(){this.$refs.imageInput&&this.$refs.imageInput.click()},async onImageSelect(e){const s=e.target.files;await this.handleImageFiles(s),e.target.value=""},async handleImageFiles(e){if(!e||e.length===0)return;const s=this.maxImages-this.pendingImages.length;if(s<=0){$A.messageWarning(`\u6700\u591A\u4E0A\u4F20 ${this.maxImages} \u5F20\u56FE\u7247`);return}const t=Array.from(e).slice(0,s);for(const i of t)if(!!i.type.startsWith("image/"))try{const n=await this.compressImageForAI(i);this.pendingImages.push({id:++this.imageIdSeed,dataUrl:n,file:i})}catch(n){console.warn("[AIAssistant] \u56FE\u7247\u538B\u7F29\u5931\u8D25:",n)}},onDragEnter(e){var s,t;(t=(s=e.dataTransfer)==null?void 0:s.types)!=null&&t.includes("Files")&&(this.dragCounter++,this.isDragging=!0)},onDragLeave(){this.dragCounter--,this.dragCounter<=0&&(this.dragCounter=0,this.isDragging=!1)},async onDrop(e){var t;this.dragCounter=0,this.isDragging=!1;const s=(t=e.dataTransfer)==null?void 0:t.files;if(s&&s.length>0){const i=Array.from(s).filter(n=>n.type.startsWith("image/"));await this.handleImageFiles(i)}},async onPaste(e){var i;const s=(i=e.clipboardData)==null?void 0:i.items;if(!s)return;const t=[];for(const n of s)if(n.type.startsWith("image/")){const r=n.getAsFile();r&&t.push(r)}t.length>0&&(e.preventDefault(),await this.handleImageFiles(t))},async compressImageForAI(e){const s=await this.fileToDataUrl(e);return this.resizeDataUrl(s,1568,!0)},fileToDataUrl(e){return new Promise((s,t)=>{const i=new FileReader;i.onload=()=>s(i.result),i.onerror=()=>t(new Error("\u6587\u4EF6\u8BFB\u53D6\u5931\u8D25")),i.readAsDataURL(e)})},removeImage(e){const s=this.pendingImages.findIndex(t=>t.id===e);s!==-1&&this.pendingImages.splice(s,1)},clearPendingImages(){this.pendingImages=[]},generateImageCacheId(){const e=Date.now(),s=Math.random().toString(36).substr(2,6);return`${e}_${s}`},saveImageToCache(e,s){this.imageCache[e]=s},resizeDataUrl(e,s,t=!1){return new Promise((i,n)=>{if(!e||typeof e!="string"){n(new Error("\u65E0\u6548\u7684\u56FE\u7247\u6570\u636E"));return}const r=new Image;r.onload=()=>{let{width:o,height:a}=r;const l=o>s||a>s;if(!l&&!t){i(e);return}if(l){const h=Math.min(s/o,s/a);o=Math.round(o*h),a=Math.round(a*h)}const c=document.createElement("canvas");c.width=o,c.height=a;const d=c.getContext("2d");d.fillStyle="#FFFFFF",d.fillRect(0,0,o,a),d.drawImage(r,0,0,o,a),i(c.toDataURL("image/jpeg",.8))},r.onerror=()=>n(new Error("\u56FE\u7247\u52A0\u8F7D\u5931\u8D25")),r.src=e})},async getImageFromCache(e){return this.imageCache[e]?this.imageCache[e]:this.serverImageMap[e]?this.serverImageMap[e]:null},deleteImageCache(e){delete this.imageCache[e],delete this.serverImageMap[e]},extractImageIdsFromSession(e){const s=[];if(!(e!=null&&e.responses))return s;for(const t of e.responses)if(t.role!=="system"&&t.prompt){const i=this.parsePromptContent(t.prompt);for(const n of i.images)s.push(n.imageId)}return s},clearSessionImageCache(e){const s=this.extractImageIdsFromSession(e);for(const t of s)this.deleteImageCache(t)},async processContentForStorage(e){var t;if(typeof e=="string")return e;if(!Array.isArray(e))return String(e);const s=[];for(const i of e)if(i.type==="text")s.push(i.text||"");else if(i.type==="image_url"&&((t=i.image_url)==null?void 0:t.url)){const n=this.generateImageCacheId();await this.saveImageToCache(n,i.image_url.url),s.push(`[IMG:${n}]`)}return s.join(" ")},parsePromptContent(e){const s={images:[],text:""};if(!e||typeof e!="string")return s.text=e||"",s;const t=/\[IMG:([^\]]+)\]/g,i=[];let n=0,r;for(;(r=t.exec(e))!==null;)s.images.push({imageId:r[1]}),r.index>n&&i.push(e.slice(n,r.index)),n=r.index+r[0].length;return n0&&e.tags.length===0?t("div",{staticClass:"tag-loading"},[t("Loading")],1):e.tags.length===0?t("div",{staticClass:"tag-empty"},[t("Icon",{attrs:{type:"ios-pricetags-outline",size:"32"}}),t("p",[e._v(e._s(e.$L("\u8FD8\u6CA1\u6709\u4E2A\u6027\u6807\u7B7E\uFF0C\u5FEB\u6765\u6DFB\u52A0\u5427~")))])],1):t("ul",{staticClass:"tag-list"},e._l(e.tags,function(i){return t("li",{key:i.id,staticClass:"tag-item",class:{"is-editing":e.editId===i.id}},[t("div",{staticClass:"tag-item-main"},[e.editId!==i.id?t("div",{staticClass:"tag-name"},[t("div",{staticClass:"tag-pill",class:{"is-recognized":i.recognized}},[e._v(e._s(i.name))])]):t("div",{staticClass:"tag-name edit"},[t("Input",{ref:"editInput",refInFor:!0,attrs:{size:"small",maxlength:20,disabled:e.isPending(i.id,"edit")},on:{"on-keydown":function(n){return e.onEditKeydown(n,i)}},model:{value:e.editName,callback:function(n){e.editName=n},expression:"editName"}})],1),t("div",{staticClass:"tag-actions"},[t("Button",{staticClass:"recognize-btn",attrs:{type:"text",size:"small",loading:e.isPending(i.id,"recognize")},on:{click:function(n){return e.toggleRecognize(i)}}},[t("Icon",{attrs:{type:"md-thumbs-up"}}),i.recognition_total>0?t("span",[e._v(e._s(i.recognition_total))]):e._e(),t("span",{staticClass:"recognize-text"},[e._v(e._s(e.$L("\u8BA4\u53EF")))])],1),e.editId===i.id?[t("Button",{attrs:{type:"primary",size:"small",loading:e.isPending(i.id,"edit")},on:{click:function(n){return e.confirmEdit(i)}}},[e._v(e._s(e.$L("\u4FDD\u5B58")))]),t("Button",{attrs:{type:"text",size:"small"},on:{click:e.cancelEdit}},[e._v(e._s(e.$L("\u53D6\u6D88")))])]:[i.can_edit?t("Button",{attrs:{type:"text",size:"small"},on:{click:function(n){return e.startEdit(i)}}},[e._v(e._s(e.$L("\u7F16\u8F91")))]):e._e(),i.can_delete?t("Button",{attrs:{type:"text",size:"small",loading:e.isPending(i.id,"delete")},on:{click:function(n){return e.confirmDelete(i)}}},[e._v(e._s(e.$L("\u5220\u9664")))]):e._e()]],2)]),i.created_by_name?t("div",{staticClass:"tag-meta-info"},[t("span",[e._v(e._s(e.$L("\u7531(*)\u521B\u5EFA",i.created_by_name)))])]):e._e()])}),0)]),e.total>0?t("div",{staticClass:"tag-modal-footer"},[t("span",[e._v(e._s(e.$L("\u5F53\u524D\u5171(*)\u4E2A\u6807\u7B7E",e.total)))])]):e._e()])])},Em=[];const Lm={name:"UserTagsModal",props:{value:{type:Boolean,default:!1},userid:{type:Number,required:!0}},data(){return{visible:this.value,loading:0,tags:[],newTagName:"",editId:null,editName:"",pending:{add:!1,tagId:null,type:""}}},computed:{userId(){return this.$store.state.userId},total(){return this.tags.length}},watch:{value(e){this.visible=e,e&&this.openModal()},visible(e){this.$emit("input",e),e||this.resetInlineState()},userid(){this.visible&&this.loadTags()}},methods:{openModal(){this.resetInlineState(),this.loadTags()},resetInlineState(){this.newTagName="",this.editId=null,this.editName="",this.pending={add:!1,tagId:null,type:""}},setPending(e,s=null){e==="add"?this.pending.add=!0:(this.pending.tagId=s,this.pending.type=e)},clearPending(e){e==="add"?this.pending.add=!1:this.pending.type===e&&(this.pending.tagId=null,this.pending.type="")},isPending(e,s){return this.pending.tagId===e&&this.pending.type===s},loadTags(){!this.userid||(this.loading++,this.$store.dispatch("call",{url:"users/tags/lists",data:{userid:this.userid}}).then(({data:e})=>{this.applyTagData(e)}).catch(({msg:e})=>{$A.modalError(e||this.$L("\u52A0\u8F7D\u5931\u8D25"))}).finally(()=>{this.loading--}))},applyTagData(e){const s=Array.isArray(e==null?void 0:e.list)?e.list:[];this.tags=s;const t=Array.isArray(e==null?void 0:e.top)?e.top:s.slice(0,10),i=typeof(e==null?void 0:e.total)=="number"?e.total:s.length;this.emitUpdated({list:s,top:t,total:i})},emitUpdated(e){this.$emit("updated",e),this.$store.dispatch("saveUserExtra",{userid:this.userid,data:{personal_tags:Array.isArray(e==null?void 0:e.top)?e.top:[],personal_tags_total:typeof(e==null?void 0:e.total)=="number"?e.total:Array.isArray(e==null?void 0:e.top)?e.top.length:0}})},onAddKeydown(e){e.isComposing||e.key==="Process"||e.keyCode===229||e.keyCode===13&&this.handleAdd()},onEditKeydown(e,s){e.isComposing||e.key==="Process"||e.keyCode===229||e.keyCode===13&&this.confirmEdit(s)},handleAdd(){const e=this.newTagName.trim();if(!e){$A.messageError(this.$L("\u8BF7\u8F93\u5165\u4E2A\u6027\u6807\u7B7E"));return}if(e.length>20){$A.messageError(this.$L("\u6807\u7B7E\u540D\u79F0\u6700\u591A\u53EA\u80FD\u8BBE\u7F6E(*)\u4E2A\u5B57",20));return}this.pending.add||(this.setPending("add"),this.$store.dispatch("call",{url:"users/tags/add",method:"post",data:{userid:this.userid,name:e}}).then(({data:s,msg:t})=>{this.applyTagData(s),this.newTagName="",t&&$A.messageSuccess(t)}).catch(({msg:s})=>{$A.modalError(s||this.$L("\u6DFB\u52A0\u5931\u8D25"))}).finally(()=>{this.clearPending("add")}))},startEdit(e){this.editId=e.id,this.editName=e.name,this.$nextTick(()=>{const s=this.$refs.editInput;s&&s.focus?s.focus():Array.isArray(s)&&s.length>0&&s[0].focus&&s[0].focus()})},cancelEdit(){this.editId=null,this.editName=""},confirmEdit(e){const s=this.editName.trim();if(!s){$A.messageError(this.$L("\u8BF7\u8F93\u5165\u4E2A\u6027\u6807\u7B7E"));return}if(s.length>20){$A.messageError(this.$L("\u6807\u7B7E\u540D\u79F0\u6700\u591A\u53EA\u80FD\u8BBE\u7F6E(*)\u4E2A\u5B57",20));return}if(s===e.name){this.cancelEdit();return}this.isPending(e.id,"edit")||(this.setPending("edit",e.id),this.$store.dispatch("call",{url:"users/tags/update",method:"post",data:{tag_id:e.id,name:s}}).then(({data:t,msg:i})=>{this.applyTagData(t),this.cancelEdit(),i&&$A.messageSuccess(i)}).catch(({msg:t})=>{$A.modalError(t||this.$L("\u4FDD\u5B58\u5931\u8D25"))}).finally(()=>{this.clearPending("edit")}))},confirmDelete(e){this.isPending(e.id,"delete")||$A.modalConfirm({title:this.$L("\u5220\u9664\u6807\u7B7E"),content:this.$L("\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6807\u7B7E\u5417\uFF1F"),onOk:()=>{this.deleteTag(e)}})},deleteTag(e){this.setPending("delete",e.id),this.$store.dispatch("call",{url:"users/tags/delete",method:"post",data:{tag_id:e.id}}).then(({data:s,msg:t})=>{this.applyTagData(s),t&&$A.messageSuccess(t)}).catch(({msg:s})=>{$A.modalError(s||this.$L("\u5220\u9664\u5931\u8D25"))}).finally(()=>{this.clearPending("delete")})},toggleRecognize(e){this.isPending(e.id,"recognize")||(this.setPending("recognize",e.id),this.$store.dispatch("call",{url:"users/tags/recognize",method:"post",data:{tag_id:e.id}}).then(({data:s,msg:t})=>{this.applyTagData(s),t&&$A.messageSuccess(t)}).catch(({msg:s})=>{$A.modalError(s||this.$L("\u64CD\u4F5C\u5931\u8D25"))}).finally(()=>{this.clearPending("recognize")}))}}},zi={};var Mm=A(Lm,Dm,Em,!1,Pm,"2d506187",null,null);function Pm(e){for(let s in zi)this[s]=zi[s]}var jm=function(){return Mm.exports}(),Rm=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("Modal",{attrs:{title:e.$L("\u5171\u540C\u7FA4\u7EC4")+" ("+e.$L("(*)\u4E2A",e.totalCount)+")","footer-hide":!0,width:"500"},model:{value:e.visibleProxy,callback:function(i){e.visibleProxy=i},expression:"visibleProxy"}},[t("div",{staticClass:"common-dialog-content"},[e.loading>0&&e.list.length===0?t("div",{staticClass:"loading-wrapper"},[t("Loading")],1):e.list.length===0?t("div",{staticClass:"empty-wrapper"},[t("div",{staticClass:"empty-content"},[t("Icon",{attrs:{type:"ios-people-outline",size:"48"}}),t("p",[e._v(e._s(e.$L("\u6682\u65E0\u5171\u540C\u7FA4\u7EC4")))])],1)]):t("div",{staticClass:"dialog-list"},[e._l(e.list,function(i){return t("div",{key:i.id,staticClass:"dialog-item",on:{click:function(n){return e.onEnterDialog(i)}}},[t("div",{staticClass:"dialog-avatar"},[i.avatar?t("EAvatar",{attrs:{src:i.avatar,size:42}}):i.group_type=="department"?t("i",{staticClass:"taskfont icon-avatar department"},[e._v("\uE75C")]):i.group_type=="project"?t("i",{staticClass:"taskfont icon-avatar project"},[e._v("\uE6F9")]):i.group_type=="task"?t("i",{staticClass:"taskfont icon-avatar task"},[e._v("\uE6F4")]):i.group_type=="okr"?t("i",{staticClass:"taskfont icon-avatar task"},[e._v("\uE6F4")]):t("Icon",{staticClass:"icon-avatar",attrs:{type:"ios-people"}})],1),t("div",{staticClass:"dialog-info"},[t("div",{staticClass:"dialog-name",domProps:{innerHTML:e._s(e.transformEmojiToHtml(i.name))}}),t("div",{staticClass:"dialog-meta"},[t("span",{staticClass:"member-count"},[e._v(e._s(e.$L("(*) \u4EBA",i.people||0)))]),i.last_at?t("span",{staticClass:"last-time"},[e._v(e._s(e.$A.timeFormat(i.last_at)))]):e._e()])]),t("Icon",{staticClass:"enter-icon",attrs:{type:"ios-arrow-forward"}})],1)}),e.hasMore?t("div",{staticClass:"load-more-wrapper"},[t("Button",{attrs:{type:"primary",loading:e.loading>0},on:{click:function(i){return e.loadList(!0)}}},[e._v(e._s(e.$L("\u52A0\u8F7D\u66F4\u591A")))])],1):e._e()],2)])])},Om=[];const zm={name:"CommonDialogModal",props:{value:{type:Boolean,default:!1},targetUserId:{type:[Number,String],required:!0},totalCount:{type:[Number,String],default:0}},data(){return{list:[],page:1,hasMore:!1,loading:0}},computed:{visibleProxy:{get(){return this.value},set(e){this.$emit("input",e)}}},watch:{visibleProxy(e){e&&this.list.length===0&&this.loadList(!1)},targetUserId(){this.list=[],this.page=1,this.hasMore=!1}},methods:{transformEmojiToHtml:mt,loadList(e=!1){if(!this.targetUserId)return;this.loading++;const s=e?this.page+1:1;this.$store.dispatch("call",{url:"dialog/common/list",data:{target_userid:this.targetUserId,page:s}}).then(({data:t})=>{const i=e?[...this.list,...t.data]:t.data;this.list=Array.isArray(i)?i:[],this.page=t.current_page||s,this.hasMore=!!t.next_page_url}).catch(({msg:t})=>{$A.modalError(t||this.$L("\u52A0\u8F7D\u5931\u8D25"))}).finally(()=>{this.loading--})},onEnterDialog(e){this.$emit("open-chat",e)}}},Ui={};var Um=A(zm,Rm,Om,!1,Bm,"9c2e14d8",null,null);function Bm(e){for(let s in Ui)this[s]=Ui[s]}var Nm=function(){return Um.exports}(),Fm=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("Modal",{attrs:{"class-name":"user-works-modal",title:e.$L("\u9879\u76EE\u4E0E\u4EFB\u52A1"),"footer-hide":!0,width:"560"},model:{value:e.visibleProxy,callback:function(i){e.visibleProxy=i},expression:"visibleProxy"}},[e.activeTab!=="projects"?t("RadioGroup",{staticClass:"task-owner-filter",attrs:{type:"button",size:"small"},on:{"on-change":e.onOwnerChange},model:{value:e.taskOwner,callback:function(i){e.taskOwner=i},expression:"taskOwner"}},[t("Radio",{attrs:{label:"all"}},[e._v(e._s(e.$L("\u5168\u90E8")))]),t("Radio",{attrs:{label:"1"}},[e._v(e._s(e.$L("\u8D1F\u8D23")))]),t("Radio",{attrs:{label:"0"}},[e._v(e._s(e.$L("\u534F\u4F5C")))])],1):e._e(),t("Tabs",{staticClass:"user-works-tabs",model:{value:e.activeTab,callback:function(i){e.activeTab=i},expression:"activeTab"}},[t("TabPane",{attrs:{label:e.projectsTabLabel,name:"projects"}},[t("div",{staticClass:"user-works-content"},[e.projects.loading>0&&e.projects.list.length===0?t("div",{staticClass:"loading-wrapper"},[t("Loading")],1):e.projects.list.length===0?t("div",{staticClass:"empty-wrapper"},[t("div",{staticClass:"empty-content"},[t("Icon",{attrs:{type:"ios-folder-outline",size:"48"}}),t("p",[e._v(e._s(e.$L("\u6682\u65E0\u9879\u76EE")))])],1)]):t("div",{staticClass:"works-list"},[e._l(e.projects.list,function(i){return t("div",{key:i.id,staticClass:"works-item",on:{click:function(n){return e.onOpenProject(i)}}},[t("div",{staticClass:"works-icon project"},[t("i",{staticClass:"taskfont"},[e._v("\uE6F9")])]),t("div",{staticClass:"works-info"},[t("div",{staticClass:"works-name",domProps:{innerHTML:e._s(e.transformEmojiToHtml(i.name))}}),t("div",{staticClass:"works-meta"},[t("span",{staticClass:"role-badge",class:e.ownerClass(i.owner)},[e._v(e._s(e.ownerText(i.owner)))]),t("span",{staticClass:"works-stat"},[e._v(e._s(e.$L("\u4EFB\u52A1"))+" "+e._s(i.task_complete||0)+"/"+e._s(i.task_num||0))])])]),t("Icon",{staticClass:"enter-icon",attrs:{type:"ios-arrow-forward"}})],1)}),e.projects.hasMore?t("div",{staticClass:"load-more-wrapper"},[t("Button",{attrs:{type:"primary",loading:e.projects.loading>0},on:{click:function(i){return e.loadProjects(!0)}}},[e._v(e._s(e.$L("\u52A0\u8F7D\u66F4\u591A")))])],1):e._e()],2)])]),e._l(e.taskTabs,function(i){return t("TabPane",{key:i.key,attrs:{label:e.taskTabLabel(i.key),name:i.key}},[t("div",{staticClass:"user-works-content tasks"},[e.tabState(i.key).loading>0&&e.tabState(i.key).list.length===0?t("div",{staticClass:"loading-wrapper"},[t("Loading")],1):e.tabState(i.key).list.length===0?t("div",{staticClass:"empty-wrapper"},[t("div",{staticClass:"empty-content"},[t("Icon",{attrs:{type:"ios-list-box-outline",size:"48"}}),t("p",[e._v(e._s(e.$L("\u6682\u65E0\u4EFB\u52A1")))])],1)]):t("div",{staticClass:"works-list"},[e._l(e.tabState(i.key).list,function(n){return t("div",{key:n.id,staticClass:"works-item",on:{click:function(r){return e.onOpenTask(n)}}},[t("div",{staticClass:"works-icon task",class:{completed:!!n.complete_at}},[t("i",{staticClass:"taskfont"},[e._v("\uE6F4")])]),t("div",{staticClass:"works-info"},[t("div",{staticClass:"works-name",class:{completed:!!n.complete_at},domProps:{innerHTML:e._s(e.transformEmojiToHtml(n.name))}}),t("div",{staticClass:"works-meta"},[n.flow_item_name?t("span",{staticClass:"flow-name",class:n.flow_item_status,style:e.$A.generateColorVarStyle(n.flow_item_color,[10],"flow-item-custom-color")},[e._v(e._s(n.flow_item_name))]):n.complete_at?t("span",{staticClass:"flow-name end"},[e._v(e._s(e.$L("\u5DF2\u5B8C\u6210")))]):e._e(),t("span",{staticClass:"role-badge",class:n.owner?"owner":"assist"},[e._v(e._s(n.owner?e.$L("\u8D1F\u8D23"):e.$L("\u534F\u4F5C")))]),n.project_name?t("span",{staticClass:"works-project"},[e._v(e._s(n.project_name))]):e._e(),n.end_at?t("span",{staticClass:"works-time",class:{overdue:n.overdue}},[e._v(e._s(e.$A.timeFormat(n.end_at)))]):e._e()])]),t("Icon",{staticClass:"enter-icon",attrs:{type:"ios-arrow-forward"}})],1)}),e.tabState(i.key).hasMore?t("div",{staticClass:"load-more-wrapper"},[t("Button",{attrs:{type:"primary",loading:e.tabState(i.key).loading>0},on:{click:function(n){return e.loadTasks(i.key,!0)}}},[e._v(e._s(e.$L("\u52A0\u8F7D\u66F4\u591A")))])],1):e._e()],2)])])})],2)],1)},Hm=[];const ke=()=>({list:[],page:1,hasMore:!1,loading:0,total:null}),Wm={name:"UserWorksModal",props:{value:{type:Boolean,default:!1},targetUserId:{type:[Number,String],required:!0}},data(){return{activeTab:"projects",taskOwner:"all",taskTabs:[{key:"todo",status:"uncompleted"},{key:"done",status:"completed"}],counts:{project:null,todo:null,done:null},projects:ke(),todo:ke(),done:ke()}},computed:{visibleProxy:{get(){return this.value},set(e){this.$emit("input",e)}},projectsTabLabel(){return this.withCount(this.$L("\u9879\u76EE"),this.counts.project)}},watch:{visibleProxy(e){e&&this.loadInitial()},activeTab(e){e!=="projects"&&this.tabState(e).list.length===0&&this.tabState(e).loading===0&&this.loadTasks(e,!1)},targetUserId(){this.resetState(),this.visibleProxy&&this.loadInitial()}},methods:{transformEmojiToHtml:mt,tabState(e){return this[e]},withCount(e,s){return s==null?e:`${e} (${s})`},taskTabLabel(e){const s=e==="todo"?this.$L("\u5F85\u529E"):this.$L("\u5DF2\u5B8C\u6210");return this.withCount(s,this.counts[e])},resetState(){this.counts={project:null,todo:null,done:null},this.projects=ke(),this.todo=ke(),this.done=ke()},loadInitial(){this.loadCounts(),this.loadActive()},loadActive(){if(this.activeTab==="projects")this.projects.list.length===0&&this.projects.loading===0&&this.loadProjects(!1);else{const e=this.tabState(this.activeTab);e.list.length===0&&e.loading===0&&this.loadTasks(this.activeTab,!1)}},loadCounts(){if(!this.targetUserId)return;const e={userid:this.targetUserId};this.taskOwner!=="all"&&(e.owner=this.taskOwner),this.$store.dispatch("call",{url:"project/user/counts",data:e}).then(({data:s})=>{this.counts={project:typeof s.project=="number"?s.project:0,todo:typeof s.todo=="number"?s.todo:0,done:typeof s.done=="number"?s.done:0}}).catch(()=>{})},loadProjects(e=!1){if(!this.targetUserId)return;this.projects.loading++;const s=e?this.projects.page+1:1;this.$store.dispatch("call",{url:"project/user/projects",data:{userid:this.targetUserId,page:s}}).then(({data:t})=>{const i=Array.isArray(t.data)?t.data:[];this.projects.list=e?[...this.projects.list,...i]:i,this.projects.page=t.current_page||s,this.projects.hasMore=!!t.next_page_url,this.projects.total=typeof t.total=="number"?t.total:i.length,this.counts.project=this.projects.total}).catch(({msg:t})=>{$A.modalError(t||this.$L("\u52A0\u8F7D\u5931\u8D25"))}).finally(()=>{this.projects.loading--})},loadTasks(e,s=!1){if(!this.targetUserId)return;const t=this.tabState(e),i=this.taskTabs.find(o=>o.key===e);t.loading++;const n=s?t.page+1:1,r={userid:this.targetUserId,page:n,keys:{status:i.status}};this.taskOwner!=="all"&&(r.owner=this.taskOwner),this.$store.dispatch("call",{url:"project/user/tasks",data:r}).then(({data:o})=>{const a=(Array.isArray(o.data)?o.data:[]).map(l=>this.normalizeFlow(l));t.list=s?[...t.list,...a]:a,t.page=o.current_page||n,t.hasMore=!!o.next_page_url,t.total=typeof o.total=="number"?o.total:a.length,this.counts[e]=t.total}).catch(({msg:o})=>{$A.modalError(o||this.$L("\u52A0\u8F7D\u5931\u8D25"))}).finally(()=>{t.loading--})},onOwnerChange(){this.taskTabs.forEach(e=>{this[e.key]=ke()}),this.loadCounts(),this.loadActive()},normalizeFlow(e){if(e.flow_item_name&&e.flow_item_name.indexOf("|")!==-1){const s=$A.convertWorkflow(e.flow_item_name);e.flow_item_status=s.status,e.flow_item_name=s.name,e.flow_item_color=s.color}return e},ownerText(e){return e===1?this.$L("\u8D1F\u8D23\u4EBA"):e===2?this.$L("\u7BA1\u7406\u5458"):this.$L("\u6210\u5458")},ownerClass(e){return e===1?"owner":e===2?"deputy":"member"},onOpenProject(e){$A.goForward({name:"manage-project",params:{projectId:e.id}}),this.$emit("navigate")},onOpenTask(e){this.$store.dispatch("openTask",e)}}},Bi={};var Vm=A(Wm,Fm,Hm,!1,Ym,"79698690",null,null);function Ym(e){for(let s in Bi)this[s]=Bi[s]}var qm=function(){return Vm.exports}(),Km=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("ModalAlive",{attrs:{"class-name":"common-user-detail-modal",fullscreen:e.isFullscreen,"mask-closable":!1,"footer-hide":!0,width:"480"},model:{value:e.showModal,callback:function(i){e.showModal=i},expression:"showModal"}},[t("div",{staticClass:"user-detail-body"},[t("div",{staticClass:"profile-header"},[t("div",{staticClass:"cover-photo",style:{"--user-cover-photo":`url(${e.userData.userimg||""})`}}),t("div",{staticClass:"profile-avatar"},[t("UserAvatar",{attrs:{userid:e.userData.userid,size:96,"show-state-dot":!1},on:{"on-click":e.onOpenAvatar}})],1)]),t("div",{staticClass:"profile-content"},[t("div",{staticClass:"user-info-top"},[t("h1",{staticClass:"username"},[e._v(" "+e._s(e.userData.nickname)+" ")]),t("div",{staticClass:"meta"},[t("span",{staticClass:"common-dialog",on:{click:function(i){e.commonDialogShow=!0}}},[e._v(e._s(e.$L(e.userId==e.userData.userid?"\u6211\u7684\u7FA4\u7EC4":"\u5171\u540C\u7FA4\u7EC4"))+":"),t("em",[e._v(e._s(e.$L("(*)\u4E2A",e.commonDialog.total)))])]),e.worksVisible?[t("span",{staticClass:"separator"},[e._v("|")]),t("span",{staticClass:"common-dialog works-entry",on:{click:function(i){e.worksModalShow=!0}}},[e._v(e._s(e.$L("\u9879\u76EE\u4E0E\u4EFB\u52A1")))])]:e._e(),t("span",{staticClass:"separator"},[e._v("|")]),t("span",{attrs:{title:e.lineAtDisplay.title}},[e._v(e._s(e.$L("\u6700\u540E\u5728\u7EBF"))+": "+e._s(e.lineAtDisplay.text))])],2)]),e.aiConversationHidden?e._e():t("div",{staticClass:"profile-actions"},[t("Button",{on:{click:e.onOpenDialog}},[t("i",{staticClass:"taskfont"},[e._v("\uE6EB")]),e._v(e._s(e.$L("\u5F00\u59CB\u804A\u5929")))]),t("Button",{on:{click:e.onCreateGroup}},[t("i",{staticClass:"taskfont"},[e._v("\uE63F")]),e._v(e._s(e.$L("\u521B\u5EFA\u7FA4\u7EC4")))])],1),e.userData.introduction?t("div",{staticClass:"profile-bio"},[t("p",[e._v(e._s(e.userData.introduction))])]):e._e(),t("div",{staticClass:"profile-information"},[t("h2",[e._v(e._s(e.$L("\u4E2A\u4EBA\u4FE1\u606F")))]),t("ul",[t("li",[t("Icon",{attrs:{type:"ios-briefcase-outline"}}),t("span",{staticClass:"label"},[e._v(e._s(e.$L("\u804C\u4F4D/\u804C\u79F0")))]),t("span",{staticClass:"value"},[e._v(e._s(e.userData.profession||"-"))])],1),t("li",[t("Icon",{attrs:{type:"ios-people-outline"}}),t("span",{staticClass:"label"},[e._v(e._s(e.$L("\u90E8\u95E8")))]),t("span",{staticClass:"value"},[e._v(e._s(e.userData.department_name||"-"))])],1),t("li",[t("Icon",{attrs:{type:"ios-mail-outline"}}),t("span",{staticClass:"label"},[e._v(e._s(e.$L("\u90AE\u7BB1")))]),t("span",{staticClass:"value",class:{clickable:e.userData.email},on:{click:e.onOpenEmail}},[e._v(e._s(e.userData.email||"-"))])],1),t("li",[t("Icon",{attrs:{type:"ios-call-outline"}}),t("span",{staticClass:"label"},[e._v(e._s(e.$L("\u7535\u8BDD")))]),t("span",{staticClass:"value",class:{clickable:e.userData.tel},on:{click:e.onOpenTel}},[e._v(e._s(e.userData.tel||"-"))])],1),e.userData.birthday?t("li",[t("Icon",{attrs:{type:"ios-calendar-outline"}}),t("span",{staticClass:"label"},[e._v(e._s(e.$L("\u751F\u65E5")))]),t("span",{staticClass:"value"},[e._v(e._s(e.userData.birthday||"-"))])],1):e._e()]),t("div",{staticClass:"profile-tags"},[e.displayTags.length?t("div",{staticClass:"tags-list"},[e._l(e.displayTags,function(i){return t("Button",{key:i.id,attrs:{type:i.recognized?"primary":"default"},on:{click:e.onOpenTagsModal}},[e._v(" "+e._s(i.name)+" "),i.recognition_total>0?t("span",{staticClass:"recognition-total"},[e._v(e._s(i.recognition_total))]):e._e()])}),t("Button",{staticClass:"manage-tags-btn icon",attrs:{type:"dashed"},on:{click:e.onOpenTagsModal}},[t("Icon",{attrs:{type:"ios-settings-outline"}}),e._v(" "+e._s(e.$L("\u7BA1\u7406"))+" ")],1)],2):t("div",{staticClass:"tags-empty"},[t("Button",{staticClass:"add-tag-btn",attrs:{type:"dashed",icon:"md-add"},on:{click:e.onOpenTagsModal}},[e._v(e._s(e.$L("\u6DFB\u52A0\u6807\u7B7E")))])],1)])])])]),e.userData.userid?t("UserTagsModal",{attrs:{userid:e.userData.userid},on:{updated:e.onTagsUpdated},model:{value:e.tagModalVisible,callback:function(i){e.tagModalVisible=i},expression:"tagModalVisible"}}):e._e(),t("CommonDialogModal",{attrs:{"target-user-id":e.userData.userid,"total-count":e.commonDialog.total||0},on:{"open-chat":e.onOpenCommonDialogChat},model:{value:e.commonDialogShow,callback:function(i){e.commonDialogShow=i},expression:"commonDialogShow"}}),e.worksVisible&&e.userData.userid?t("UserWorksModal",{attrs:{"target-user-id":e.userData.userid},on:{navigate:e.onHide},model:{value:e.worksModalShow,callback:function(i){e.worksModalShow=i},expression:"worksModalShow"}}):e._e()],1)},Gm=[];const Jm={name:"UserDetail",components:{UserTagsModal:jm,CommonDialogModal:Nm,UserWorksModal:qm},data(){return{userData:{userid:0},showModal:!1,tagModalVisible:!1,commonDialog:{userid:null,total:null,list:[],page:1,has_more:!1},commonDialogShow:!1,commonDialogLoading:0,worksModalShow:!1}},mounted(){x.on("openUser",this.onShow)},beforeDestroy(){x.off("openUser",this.onShow)},watch:{...B(["cacheUserBasic"]),commonDialogShow(){!this.commonDialogShow||this.commonDialog.list.length>0||this.loadCommonDialogList(!1)}},computed:{...ye(["appAiHidden"]),aiConversationHidden(){return this.appAiHidden&&$A.isAiBotUser(this.userData)},isFullscreen({windowWidth:e}){return e<576},displayTags(){return Array.isArray(this.userData.personal_tags)?this.userData.personal_tags:[]},personalTagTotal(){return typeof this.userData.personal_tags_total=="number"?this.userData.personal_tags_total:this.displayTags.length},commonDialogList(){return this.commonDialog.list||[]},worksVisible(){return!!this.userData.works_visible},lineAtDisplay({userData:e}){const s=e.line_at;if(!s)return{text:"-",title:""};const t=$A.daytz(),i=$A.dayjs(s),n=i.format("YYYY-MM-DD HH:mm"),r=t.unix()-i.unix();let o;return r<60?o=this.$L("\u521A\u521A"):r<3600?o=this.$L("(*)\u5206\u949F\u524D",Math.floor(r/60)):r<3600*24?o=this.$L("(*)\u5C0F\u65F6\u524D",Math.floor(r/3600)):r<3600*24*7?o=this.$L("(*)\u5929\u524D",Math.floor(r/86400)):i.isAfter(t.clone().subtract(1,"month"))?o=i.format("MM-DD HH:mm"):o=i.format("YYYY-MM-DD"),{text:o,title:n}}},methods:{transformEmojiToHtml:mt,onShow(e){!/^\d+$/.test(e)||(this.$store.dispatch("showSpinner",600),Promise.all([this.$store.dispatch("getUserData",e).catch(()=>null),this.$store.dispatch("getUserExtra",e).catch(()=>null)]).then(([s,t])=>{const i=$A.isJson(s)?s:{},n=$A.isJson(t)?t:{};this.userData=Object.assign({},i,n),this.ensureTagDefaults(),this.showModal=!0,this.loadCommonDialogCount()}).finally(s=>{this.$store.dispatch("hiddenSpinner")}))},onHide(){this.showModal=!1,this.tagModalVisible=!1,this.commonDialogShow=!1,this.worksModalShow=!1},onOpenAvatar(){this.$store.dispatch("previewImage",this.userData.userimg)},onOpenDialog(){this.$store.dispatch("openDialogUserid",this.userData.userid).then(e=>{this.onHide()}).catch(({msg:e})=>{$A.modalError(e)})},onCreateGroup(){const e=[this.$store.state.userId];this.userData.userid&&this.$store.state.userId!=this.userData.userid&&e.push(this.userData.userid),x.emit("createGroup",e),this.onHide()},ensureTagDefaults(){Array.isArray(this.userData.personal_tags)||this.$set(this.userData,"personal_tags",[]),typeof this.userData.personal_tags_total!="number"&&this.$set(this.userData,"personal_tags_total",this.userData.personal_tags.length)},onOpenTagsModal(){!this.userData.userid||(this.tagModalVisible=!0)},onTagsUpdated({top:e,total:s}){this.$set(this.userData,"personal_tags",Array.isArray(e)?e:[]),this.$set(this.userData,"personal_tags_total",typeof s=="number"?s:this.userData.personal_tags.length)},loadCommonDialogCount(){const e=this.userData.userid,s=this.commonDialog.userid;if(!e){this.commonDialog={...this.commonDialog,userid:e||null,total:null,list:[],page:1,has_more:!1};return}s!==e&&(this.commonDialog={...this.commonDialog,userid:e,total:null,list:[],page:1,has_more:!1});const i=(this.$store.state.dialogCommonCountCache||{})[String(e)];i&&typeof i.total!="undefined"&&(this.commonDialog={...this.commonDialog,total:i.total}),this.$store.dispatch("call",{url:"dialog/common/list",data:{target_userid:e,only_count:"yes"}}).then(({data:n})=>{if(e!==this.userData.userid)return;const r=Number(n.total),o=Number.isNaN(r)?0:r;this.commonDialog={...this.commonDialog,userid:e,total:o,list:[],page:1,has_more:!1},this.$store.commit("common/dialog/count/save",{userid:e,total:o})})},loadCommonDialogList(e=!1){this.commonDialogLoading++;const s=this.userData.userid;this.$store.dispatch("call",{url:"dialog/common/list",data:{target_userid:s,page:e?this.commonDialog.page+1:1}}).then(({data:t})=>{s===this.userData.userid&&(this.commonDialog={...this.commonDialog,list:e?[...this.commonDialog.list,...t.data]:t.data,total:t.total,page:t.current_page,has_more:!!t.next_page_url})}).catch(({msg:t})=>{$A.modalError(t||this.$L("\u52A0\u8F7D\u5931\u8D25"))}).finally(()=>{this.commonDialogLoading--})},onOpenCommonDialogChat(e){this.$store.dispatch("openDialog",e.id).then(()=>{this.onHide()}).catch(({msg:s})=>{$A.modalError(s)})},onOpenEmail(){!this.userData.email||$A.modalConfirm({content:`\u662F\u5426\u53D1\u9001\u90AE\u4EF6\u7ED9 ${this.userData.nickname}\uFF1F`,onOk:()=>{window.open(`mailto:${this.userData.email}`)}})},onOpenTel(){!this.userData.tel||$A.modalConfirm({content:`\u662F\u5426\u62E8\u6253\u7535\u8BDD\u7ED9 ${this.userData.nickname}\uFF1F`,onOk:()=>{$A.isEEUIApp()?$A.eeuiAppSendMessage({action:"callTel",tel:this.userData.tel}):window.open(`tel:${this.userData.tel}`)}})}}},Ni={};var Qm=A(Jm,Km,Gm,!1,Xm,null,null,null);function Xm(e){for(let s in Ni)this[s]=Ni[s]}var Zm=function(){return Qm.exports}(),eg=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"app-view",attrs:{id:"app"}},[t("div",{staticClass:"child-status-bar"}),t("keep-alive",[t("router-view",{staticClass:"child-view",on:{"~hook:mounted":function(i){return e.onRouterViewMounted.apply(null,arguments)}}})],1),t("div",{staticClass:"child-navigation-bar"}),t("TaskOperation"),t("MeetingManager"),t("ProjectInvite"),t("DropdownMenu"),t("FloatSpinner"),t("RightBottom"),t("PreviewImageState"),t("AuthException"),t("GuidePage"),t("UserDetail"),e.aiVisible?t("AIAssistant"):e._e(),e.isFirstPage?t("MobileBack"):e._e(),e.isFirstPage?t("MobileNotification"):e._e(),e.windowLandscape?t("NetworkException"):e._e()],1)},tg=[];const sg={mixins:[Bh],components:{AIAssistant:Im,UserDetail:Zm,MobileBack:Mh,MobileNotification:xh,AuthException:ho,MeetingManager:ih,ProjectInvite:$h,DropdownMenu:Uh,TaskOperation:zd,NetworkException:vo,PreviewImageState:ro,RightBottom:Wr,FloatSpinner:Or,GuidePage:Ao},data(){return{appInter:null,appActivated:!0,countDown:Math.min(30,60-$A.daytz().second()),lastCheckUpgradeYmd:$A.daytz().format("YYYY-MM-DD")}},created(){this.electronEvents(),this.eeuiEvents(),this.otherEvents()},mounted(){this.appInter=setInterval(this.appTimerHandler,1e3),$A.loadVConsole()},beforeDestroy(){this.appInter&&clearInterval(this.appInter)},computed:{...ye(["aiVisible"]),...B(["ws","themeConf","windowOrientation","safeAreaSize","isFirstPage","mobileTabbar","themeName"]),statusColor({routeName:e,windowLandscape:s}){return e?s?"#f4f5f7":["login","manage-messenger","manage-project"].includes(e)||e.startsWith("manage-setting")?"#f8f8f8":null:null},navigationColor({routeName:e,windowLandscape:s,mobileTabbar:t}){return e?s?"#f4f5f7":["login","manage-messenger","manage-project","manage-setting"].includes(e)||t?"#f8f8f8":null:null},rootStyle(){return{"--window-width":`${this.windowWidth}px`,"--window-height":`${this.windowHeight}px`,"--window-scroll-y":`${this.windowScrollY}px`,"--status-bar-height":`${this.safeAreaSize.top}px`,"--status-bar-color":this.statusColor||"#ffffff","--navigation-bar-height":`${this.safeAreaSize.bottom}px`,"--navigation-bar-color":this.navigationColor||"#ffffff"}}},watch:{$route:{handler({name:e,path:s,params:t}){this.$store.state.routeName=e,this.$store.state.routePath=s,this.$store.state.mobileTabbar=e==="manage-project"&&!/^\d+$/.test(t.projectId)||["manage-dashboard","manage-messenger","manage-application"].includes(e)},immediate:!0},routePath:{handler(e){e&&this.userId>0&&(e=e.replace(/^\/manage\/file\/\d+\/(\d+)$/,"/single/file/$1"),this.$store.dispatch("websocketPath",e))},immediate:!0},userId:{handler(){this.$store.dispatch("websocketConnection"),this.$isEEUIApp&&(this.umengAliasTimer&&clearTimeout(this.umengAliasTimer),this.userId>0?($A.eeuiAppSendMessage({action:"initApp",apiUrl:$A.apiUrl(""),userid:this.userId,token:this.userToken,language:M,userAgent:window.navigator.userAgent}),$A.eeuiAppGetDeviceInfo().then(async e=>{let s=e.deviceName||e.modelName;e.systemName==="Android"&&($A.strExists(e.modelName,e.brand)?s=e.modelName:s=e.brand+" "+e.model),await this.$store.dispatch("call",{url:"users/device/edit",data:{device_name:s,app_brand:e.brand,app_model:e.model,app_os:e.systemName+" "+e.systemVersion}})}).catch(console.log),this.umengAliasTimer=setTimeout(e=>{this.umengAliasTimer=null,$A.eeuiAppSendMessage({action:"setUmengAlias",url:$A.apiUrl("users/umeng/alias")})},6e3)):$A.eeuiAppSendMessage({action:"delUmengAlias",url:$A.apiUrl("users/umeng/alias")}))},immediate:!0},rootStyle:{handler(e){for(const s in e)document.documentElement.style.setProperty(s,e[s])},immediate:!0},windowTouch:{handler(e){e?$A("body").addClass("window-touch"):$A("body").removeClass("window-touch")},immediate:!0},windowOrientation:{handler(e){$A("body").removeClass(["window-landscape","window-portrait"]),$A("body").addClass("window-"+e)},immediate:!0},isCtrlCommandPressed:{handler(e){this.$store.state.isModKey=e},immediate:!0},windowActive(e){if(!e){this.$store.dispatch("audioStop",!0);return}this.autoTheme(),$A.updateTimezone(),this.__windowTimer&&clearTimeout(this.__windowTimer),this.__timeoutTimer&&clearTimeout(this.__timeoutTimer),this.__windowTimer=setTimeout(async()=>{try{await this.$store.dispatch("call",{url:"users/socket/status"}),await new Promise((s,t)=>{this.$store.dispatch("websocketSend",{type:"handshake",callback:(i,n)=>{n?s():t(new Error("Handshake failed"))}}),this.__timeoutTimer=setTimeout(()=>t(new Error("Handshake timeout")),6e3)})}catch{await this.$store.dispatch("websocketConnection")}},600)}},methods:{appTimerHandler(){this.searchEnter(),this.countDown--,this.countDown<=0&&(this.countDown=Math.min(30,60-$A.daytz().second()),this.$store.dispatch("todayAndOverdue"))},searchEnter(){let e=$A(".search-container");if(e.length===0||e.attr("data-enter-init")==="init")return;e.attr("data-enter-init","init");let s=e.find("button[type='button']"),t=null;s.length!==0&&(s.each((i,n)=>{$A(n).text().indexOf("\u641C\u7D22")&&(t=$A(n))}),t!==null&&e.find("input.ivu-input").keydown(function(i){i.keyCode==13&&(t.hasClass("ivu-btn-loading")||t.click())}))},autoTheme(){this.themeConf==="auto"&&this.$store.dispatch("synchTheme")},onRouterViewMounted(){document.documentElement.setAttribute("data-platform",$A.isElectron?"desktop":$A.isEEUIApp?"app":"web")},getUrlMethodType(e){if(this.isCtrlCommandPressed||this.isApplicationProtocol(e)||this.isMeetingUrlStrict(e)||this.isDownloadUrl(e))return 1;if($A.getDomain(e)==$A.mainDomain())try{const{pathname:s,searchParams:t}=new URL(e);if(/^\/meeting\/\d+\/\S+$/.test(s)){const i=s.split("/")[2];return x.emit("addMeeting",{type:"join",meetingid:i,meetingdisabled:!0}),2}if(/^\/manage\/project\/invite/.test(s)){const i=s.split("/"),n=i.length>4?i[4]:t.get("code");return x.emit("openProjectInvite",{code:n}),2}}catch{}return 0},isDownloadUrl(e){if($A.getDomain(e)==$A.mainDomain())try{const{pathname:s,searchParams:t}=new URL(e);if(["/uploads","/api/dialog/msg/download","/api/project/task/filedown","/api/file/download/pack","/api/project/task/down","/api/system/checkin/down"].some(n=>$A.leftExists(s,n))||$A.leftExists(s,"/api/file/content")&&t.get("down")==="yes")return!0}catch{}return!1},isApplicationProtocol(e){const s=["thunder:","ed2k:","magnet:","weixin:","alipays:","mqq:","dingtalk:","baidumap:","iosamap:","androidamap:","tel:","sms:","mailto:","market:","intent:","taobao:","tmall:","jd:","pinduoduo:","vnd.youtube:","zhihu:","bilibili:","snssdk1128:","kwai:","fb:","twitter:","instagram:","linkedin:"],t=`${e}`.toLowerCase();return s.some(i=>t.startsWith(i))},isMeetingUrlStrict(e){const s=["zoom.us","meeting.tencent.com","teams.microsoft.com","meet.google.com","meeting.feishu.cn","meeting.dingtalk.com","webex.com","bluejeans.com","goto.com","gotomeeting.com","8x8.vc","meet.jit.si","jitsi.baidu.com","whereby.com","lifesize.com","starleaf.com","classroomscreen.com","bigbluebutton.org","matrix.to","meetings.vonage.com","voovmeeting.com","skype.com","maps.google.com","maps.apple.com","amap.com","map.baidu.com","map.qq.com","mapurl.cn","alipay.com","pay.weixin.qq.com","paypal.com/cgi-bin","checkout.stripe.com","pay.google.com","pay.qq.com","pay.baidu.com","apps.apple.com","play.google.com","itunes.apple.com","apps.samsung.com","microsoft.com/store","amazon.com/apps","apk.qq.com","app.mi.com","app.hicloud.com","pan.baidu.com","aliyundrive.com","drive.google.com","onedrive.live.com","xunlei.com","wx.qq.com","im.qq.com","web.whatsapp.com","web.telegram.org","discord.com/channels","messenger.com/call","workspace.dingtalk.com","douyin.com/live","live.kuaishou.com","live.bilibili.com","douyu.com/room","yy.com/x/","inke.cn/live","facebook.com/live","instagram.com/live","youtube.com/live","twitch.tv/live"],t=`${e}`.toLowerCase();return s.some(i=>t.indexOf(i)!==-1)},electronEvents(){!this.$Electron||(window.__onBeforeUnload=()=>{if(this.$store.dispatch("onBeforeUnload"),this.$Modal.removeLast())return!0},this.$Electron.sendMessage("registerCloseInterceptor"),window.__onBeforeOpenWindow=({url:e})=>{const s=this.getUrlMethodType(e);return s===2?!0:s===1?this.isDownloadUrl(e)?(this.$store.dispatch("downUrl",e),!0):!1:(this.$store.dispatch("openWindow",e),!0)},this.$Electron.listener("browserWindowBlur",e=>{this.$store.state.windowActive=!1}),this.$Electron.listener("browserWindowFocus",e=>{this.$store.state.windowActive=!0}),this.$Electron.listener("systemThemeChanged",e=>{this.autoTheme()}),this.$Electron.listener("openDownloadWindow",e=>{$A.Electron.request({action:"openDownloadWindow",language:M,theme:this.themeName})}),$A.bindScreenshotKey(this.$store.state.cacheKeyboard),this.$Electron.sendMessage("setMenuLanguage",{copy:this.$L("\u590D\u5236"),back:this.$L("\u540E\u9000"),forward:this.$L("\u524D\u8FDB"),reload:this.$L("\u91CD\u65B0\u52A0\u8F7D"),print:this.$L("\u6253\u5370"),openInBrowser:this.$L("\u5728\u6D4F\u89C8\u5668\u4E2D\u6253\u5F00"),openInDefaultBrowser:this.$L("\u9ED8\u8BA4\u6D4F\u89C8\u5668\u6253\u5F00"),saveImageAs:this.$L("\u56FE\u7247\u5B58\u50A8\u4E3A..."),copyImage:this.$L("\u590D\u5236\u56FE\u7247"),copyEmailAddress:this.$L("\u590D\u5236\u7535\u5B50\u90AE\u4EF6\u5730\u5740"),copyLinkAddress:this.$L("\u590D\u5236\u94FE\u63A5\u5730\u5740"),copyImageAddress:this.$L("\u590D\u5236\u56FE\u7247\u5730\u5740"),moveToNewWindow:this.$L("\u5C06\u6807\u7B7E\u9875\u79FB\u81F3\u65B0\u7A97\u53E3"),failedToSaveImage:this.$L("\u56FE\u7247\u4FDD\u5B58\u5931\u8D25"),theImageFailedToSave:this.$L("\u56FE\u7247\u65E0\u6CD5\u4FDD\u5B58")}))},eeuiEvents(){!this.$isEEUIApp||(setTimeout(()=>{this.appActivated&&$A.eeuiAppHideWebviewSnapshot()},500),window.__onAppActive=async()=>{if(this.appActivated=!0,!await $A.IDBTest())return;this.autoTheme(),$A.updateTimezone(),$A.eeuiAppHideWebviewSnapshot(),this.$store.dispatch("safeAreaInsets");const e=$A.daytz().format("YYYY-MM-DD");this.lastCheckUpgradeYmd!=e&&(this.lastCheckUpgradeYmd=e,$A.eeuiAppCheckUpdate())},window.__onAppDeactive=()=>{this.appActivated=!1,setTimeout(()=>{this.appActivated||$A.eeuiAppGetWebviewSnapshot(e=>{!e||this.appActivated||$A.eeuiAppShowWebviewSnapshot()})},500)},window.__onPagePause=()=>{this.$store.state.windowActive=!1,this.$store.dispatch("getBasicData",-1)},window.__onPageResume=e=>{this.$store.state.windowActive=!0,e>0?this.$store.dispatch("getBasicData",600):this.autoTheme()},window.__onCreateTarget=e=>{const s=this.getUrlMethodType(e);if(s!==2){if(s===1){$A.eeuiAppOpenWeb(e);return}this.$store.dispatch("openAppChildPage",{pageType:"app",pageTitle:" ",url:"web.js",params:{url:e}})}},window.__onMeetingEvent=e=>{if(!!$A.isJson(e))switch(e.act){case"getInfo":const s=(e.uuid+"").indexOf("88888")!==-1;this.$store.dispatch("call",{url:s?"users/meeting/tourist":"users/basic",data:{userid:s?e.uuid:(e.uuid+"").substring(6),tourist_id:e.uuid}}).then(({data:t})=>{var i,n;$A.eeuiAppSendMessage({action:"updateMeetingInfo",infos:{uuid:e.uuid,avatar:s?t==null?void 0:t.userimg:(i=t[0])==null?void 0:i.userimg,username:s?t==null?void 0:t.nickname:(n=t[0])==null?void 0:n.nickname}})}).catch(({msg:t})=>{$A.modalError(t)});break;case"success":this.$store.dispatch("closeMeetingWindow","add");break;case"invent":this.$store.dispatch("showMeetingWindow",{type:"invitation",meetingid:e.meetingid});break;case"endMeeting":break;case"error":this.$store.dispatch("closeMeetingWindow","error");break;case"status":this.$store.state.appMeetingShow=e.status;break}},window.__onKeyboardStatus=e=>{$A.isJson(e)||(e=$A.jsonParse(decodeURIComponent(e))),$A.isJson(e)&&(this.$store.state.keyboardShow=e.keyboardType==="show",this.$store.state.keyboardHeight=e.keyboardHeight,$A.eeuiAppShakeToEditEnabled(this.$store.state.keyboardShow))},window.__onNotificationPermissionStatus=e=>{this.$store.state.appNotificationPermission=$A.runNum(e)==1},window.__handleLink=e=>{this.goForward({path:(e||"").indexOf("/")!==0?"/"+e:e})},$A.eeuiAppSendMessage({action:"windowSize",width:this.windowWidth,height:this.windowHeight}),$A.eeuiAppSetHapticBackEnabled(!1),$A.eeuiAppSetCachesString("languageWebBack",this.$L("\u540E\u9000")),$A.eeuiAppSetCachesString("languageWebForward",this.$L("\u524D\u8FDB")),$A.eeuiAppSetCachesString("languageWebBrowser",this.$L("\u6D4F\u89C8\u5668\u6253\u5F00")),$A.eeuiAppSetCachesString("languageWebRefresh",this.$L("\u5237\u65B0")),$A.eeuiAppSetCachesString("updateDefaultTitle",this.$L("\u53D1\u73B0\u65B0\u7248\u672C")),$A.eeuiAppSetCachesString("updateDefaultContent",this.$L("\u6682\u65E0\u66F4\u65B0\u4ECB\u7ECD\uFF01")),$A.eeuiAppSetCachesString("updateDefaultCancelText",this.$L("\u4EE5\u540E\u518D\u8BF4")),$A.eeuiAppSetCachesString("updateDefaultUpdateText",this.$L("\u7ACB\u5373\u66F4\u65B0")))},otherEvents(){if(!this.$isSoftware){const e="hidden"in document?"hidden":"webkitHidden"in document?"webkitHidden":"mozHidden"in document?"mozHidden":null,s=e.replace(/hidden/i,"visibilitychange");document.addEventListener(s,()=>{this.$store.state.windowActive=!document[e]})}}}},Fi={};var ig=A(sg,eg,tg,!1,ng,"8e719004",null,null);function ng(e){for(let s in Fi)this[s]=Fi[s]}var rg=function(){return ig.exports}(),og=[{name:"index",path:"/",component:()=>D(()=>import("./index.d367f26c.js"),["js/build/index.d367f26c.js","js/build/jquery.c87f487f.js","js/build/@babel.9410f858.js","js/build/dayjs.fd4aa75c.js","js/build/localforage.8de7c27e.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"pro",path:"/pro",component:()=>D(()=>import("./pro.8ad1c5f1.js"),["js/build/pro.8ad1c5f1.js","js/build/jquery.c87f487f.js","js/build/@babel.9410f858.js","js/build/dayjs.fd4aa75c.js","js/build/localforage.8de7c27e.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"meeting",path:"/meeting/:meetingId?/:sharekey?",component:()=>D(()=>import("./meeting.4a444fa7.js"),["js/build/meeting.4a444fa7.js","js/build/jquery.c87f487f.js","js/build/@babel.9410f858.js","js/build/dayjs.fd4aa75c.js","js/build/localforage.8de7c27e.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage",path:"/manage",component:()=>D(()=>import("./manage.9e3d2fa7.js"),["js/build/manage.9e3d2fa7.js","js/build/manage.9f03272d.css","js/build/vuex.cc7cb26e.js","js/build/SearchButton.3fc39f79.js","js/build/CheckinExport.a0a6b328.js","js/build/CheckinExport.a228f52c.css","js/build/index.ab4b7604.js","js/build/ImgUpload.a99f26bd.js","js/build/chunkedUpload.a9ef725e.js","js/build/axios.37c7f908.js","js/build/spark-md5.0443325f.js","js/build/file.5e8166ad.js","js/build/TaskDetail.e33edbb5.js","js/build/TaskDetail.dc666c43.css","js/build/add.1373f0de.js","js/build/add.90416dbc.css","js/build/DialogWrapper.21630cce.js","js/build/vue-virtual-scroll-list-hi.74ad83f0.js","js/build/@babel.9410f858.js","js/build/vue.adba9046.js","js/build/lodash.8fcd6fd4.js","js/build/webhook.378987f3.js","js/build/TEditor.7069f2fe.js","js/build/tinymce.498510f2.js","js/build/jquery.c87f487f.js","js/build/dayjs.fd4aa75c.js","js/build/localforage.8de7c27e.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/openpgp_hi.15f91b1d.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js","js/build/ReportEdit.686131b0.js","js/build/ReportDetail.71244edd.js","js/build/index.a1e57906.js","js/build/index.9742549c.css","js/build/@micro-zoe.39406924.js","js/build/notification-koro1.99b93615.js","js/build/DepartmentOwnerView.2b37b86c.js","js/build/DepartmentOwnerView.9cbc9146.css"]),children:[{name:"manage-dashboard",path:"dashboard",component:()=>D(()=>import("./dashboard.a79ba6ba.js"),["js/build/dashboard.a79ba6ba.js","js/build/dashboard.affb9e3b.css","js/build/vuex.cc7cb26e.js","js/build/echarts.523e56b1.js","js/build/zrender.6f9469d4.js","js/build/tslib.891692d0.js","js/build/DepartmentOwnerView.2b37b86c.js","js/build/DepartmentOwnerView.9cbc9146.css","js/build/jquery.c87f487f.js","js/build/@babel.9410f858.js","js/build/dayjs.fd4aa75c.js","js/build/localforage.8de7c27e.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-calendar",path:"calendar",component:()=>D(()=>import("./calendar.d868375d.js"),["js/build/calendar.d868375d.js","js/build/tui-calendar-hi.8947f8cc.js","js/build/tui-calendar-hi.058e41e5.css","js/build/tui-date-picker.6a34ee03.js","js/build/@babel.9410f858.js","js/build/tui-time-picker.1ebb7768.js","js/build/vuex.cc7cb26e.js","js/build/jquery.c87f487f.js","js/build/dayjs.fd4aa75c.js","js/build/localforage.8de7c27e.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-messenger",path:"messenger/:dialogAction?",component:()=>D(()=>import("./messenger.b99bc25c.js"),["js/build/messenger.b99bc25c.js","js/build/vuex.cc7cb26e.js","js/build/DialogWrapper.21630cce.js","js/build/chunkedUpload.a9ef725e.js","js/build/axios.37c7f908.js","js/build/spark-md5.0443325f.js","js/build/index.ab4b7604.js","js/build/vue-virtual-scroll-list-hi.74ad83f0.js","js/build/@babel.9410f858.js","js/build/vue.adba9046.js","js/build/lodash.8fcd6fd4.js","js/build/ImgUpload.a99f26bd.js","js/build/webhook.378987f3.js","js/build/jquery.c87f487f.js","js/build/dayjs.fd4aa75c.js","js/build/localforage.8de7c27e.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/openpgp_hi.15f91b1d.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting",path:"setting",component:()=>D(()=>import("./index.a8a8b23a.js"),["js/build/index.a8a8b23a.js","js/build/index.274f71f0.css","js/build/vuex.cc7cb26e.js","js/build/jquery.c87f487f.js","js/build/@babel.9410f858.js","js/build/dayjs.fd4aa75c.js","js/build/localforage.8de7c27e.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),children:[{name:"manage-setting-personal",path:"personal",component:()=>D(()=>import("./personal.3bc6ab62.js"),["js/build/personal.3bc6ab62.js","js/build/personal.b6ea18df.css","js/build/ImgUpload.a99f26bd.js","js/build/chunkedUpload.a9ef725e.js","js/build/axios.37c7f908.js","js/build/spark-md5.0443325f.js","js/build/vuex.cc7cb26e.js","js/build/jquery.c87f487f.js","js/build/@babel.9410f858.js","js/build/dayjs.fd4aa75c.js","js/build/localforage.8de7c27e.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/openpgp_hi.15f91b1d.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting-checkin",path:"checkin",component:()=>D(()=>import("./checkin.6f76d224.js"),["js/build/checkin.6f76d224.js","js/build/checkin.2fa0bfae.css","js/build/ImgUpload.a99f26bd.js","js/build/chunkedUpload.a9ef725e.js","js/build/axios.37c7f908.js","js/build/spark-md5.0443325f.js","js/build/jquery.c87f487f.js","js/build/@babel.9410f858.js","js/build/dayjs.fd4aa75c.js","js/build/localforage.8de7c27e.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting-language",path:"language",component:()=>D(()=>import("./language.8bf77e4e.js"),["js/build/language.8bf77e4e.js","js/build/vuex.cc7cb26e.js","js/build/jquery.c87f487f.js","js/build/@babel.9410f858.js","js/build/dayjs.fd4aa75c.js","js/build/localforage.8de7c27e.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting-theme",path:"theme",component:()=>D(()=>import("./theme.97f5379c.js"),["js/build/theme.97f5379c.js","js/build/vuex.cc7cb26e.js","js/build/jquery.c87f487f.js","js/build/@babel.9410f858.js","js/build/dayjs.fd4aa75c.js","js/build/localforage.8de7c27e.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting-keyboard",path:"keyboard",component:()=>D(()=>import("./keyboard.04777b47.js"),["js/build/keyboard.04777b47.js","js/build/keyboard.654e75cb.css","js/build/vuex.cc7cb26e.js","js/build/jquery.c87f487f.js","js/build/@babel.9410f858.js","js/build/dayjs.fd4aa75c.js","js/build/localforage.8de7c27e.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting-assistant",path:"assistant",component:()=>D(()=>import("./assistant.ca9deae7.js"),["js/build/assistant.ca9deae7.js","js/build/vuex.cc7cb26e.js","js/build/jquery.c87f487f.js","js/build/@babel.9410f858.js","js/build/dayjs.fd4aa75c.js","js/build/localforage.8de7c27e.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting-license",path:"license",component:()=>D(()=>import("./license.02080b66.js"),["js/build/license.02080b66.js","js/build/license.e50534d0.css","js/build/vuex.cc7cb26e.js","js/build/jquery.c87f487f.js","js/build/@babel.9410f858.js","js/build/dayjs.fd4aa75c.js","js/build/localforage.8de7c27e.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting-password",path:"password",component:()=>D(()=>import("./password.382931f7.js"),["js/build/password.382931f7.js","js/build/vuex.cc7cb26e.js","js/build/jquery.c87f487f.js","js/build/@babel.9410f858.js","js/build/dayjs.fd4aa75c.js","js/build/localforage.8de7c27e.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting-email",path:"email",component:()=>D(()=>import("./email.9e66000c.js"),["js/build/email.9e66000c.js","js/build/vuex.cc7cb26e.js","js/build/jquery.c87f487f.js","js/build/@babel.9410f858.js","js/build/dayjs.fd4aa75c.js","js/build/localforage.8de7c27e.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting-system",path:"system",component:()=>D(()=>import("./system.aff91360.js"),["js/build/system.aff91360.js","js/build/system.4d047d3f.css","js/build/vuex.cc7cb26e.js","js/build/ImgUpload.a99f26bd.js","js/build/chunkedUpload.a9ef725e.js","js/build/axios.37c7f908.js","js/build/spark-md5.0443325f.js","js/build/jquery.c87f487f.js","js/build/@babel.9410f858.js","js/build/dayjs.fd4aa75c.js","js/build/localforage.8de7c27e.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/openpgp_hi.15f91b1d.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting-device",path:"device",component:()=>D(()=>import("./device.35bf6a95.js"),["js/build/device.35bf6a95.js","js/build/jquery.c87f487f.js","js/build/@babel.9410f858.js","js/build/dayjs.fd4aa75c.js","js/build/localforage.8de7c27e.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting-version",path:"version",component:()=>D(()=>import("./version.f4a10c75.js"),["js/build/version.f4a10c75.js","js/build/version.b2e280f3.css","js/build/preview.a027dcb2.js","js/build/openpgp_hi.15f91b1d.js","js/build/index.40a8e116.js","js/build/jquery.c87f487f.js","js/build/@babel.9410f858.js","js/build/dayjs.fd4aa75c.js","js/build/localforage.8de7c27e.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/vuex.cc7cb26e.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting-delete",path:"delete",component:()=>D(()=>import("./delete.6db06d5a.js"),["js/build/delete.6db06d5a.js","js/build/vuex.cc7cb26e.js","js/build/jquery.c87f487f.js","js/build/@babel.9410f858.js","js/build/dayjs.fd4aa75c.js","js/build/localforage.8de7c27e.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])}]},{name:"manage-project-invite",path:"project/invite/:inviteId?",component:()=>D(()=>import("./projectInvite.6aec10a1.js"),["js/build/projectInvite.6aec10a1.js","js/build/projectInvite.83f6f5bf.css","js/build/vuex.cc7cb26e.js","js/build/jquery.c87f487f.js","js/build/@babel.9410f858.js","js/build/dayjs.fd4aa75c.js","js/build/localforage.8de7c27e.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-project",path:"project/:projectId",component:()=>D(()=>import("./project.e01e074b.js"),["js/build/project.e01e074b.js","js/build/vuex.cc7cb26e.js","js/build/lodash.8fcd6fd4.js","js/build/@babel.9410f858.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/add.1373f0de.js","js/build/add.90416dbc.css","js/build/SearchButton.3fc39f79.js","js/build/index.ab4b7604.js","js/build/DepartmentOwnerView.2b37b86c.js","js/build/DepartmentOwnerView.9cbc9146.css","js/build/jquery.c87f487f.js","js/build/dayjs.fd4aa75c.js","js/build/localforage.8de7c27e.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-file",path:"file/:folderId?/:fileId?",component:()=>D(()=>import("./file.216499be.js"),["js/build/file.216499be.js","js/build/file.0083155b.css","js/build/openpgp_hi.15f91b1d.js","js/build/vuex.cc7cb26e.js","js/build/lodash.8fcd6fd4.js","js/build/@babel.9410f858.js","js/build/file.5e8166ad.js","js/build/index.ab4b7604.js","js/build/chunkedUpload.a9ef725e.js","js/build/axios.37c7f908.js","js/build/spark-md5.0443325f.js","js/build/jquery.c87f487f.js","js/build/dayjs.fd4aa75c.js","js/build/localforage.8de7c27e.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-application",path:"application",component:()=>D(()=>import("./application.44e4c067.js"),["js/build/application.44e4c067.js","js/build/application.29cc7ef9.css","js/build/vuex.cc7cb26e.js","js/build/index.ab4b7604.js","js/build/CheckinExport.a0a6b328.js","js/build/CheckinExport.a228f52c.css","js/build/SearchButton.3fc39f79.js","js/build/ImgUpload.a99f26bd.js","js/build/chunkedUpload.a9ef725e.js","js/build/axios.37c7f908.js","js/build/spark-md5.0443325f.js","js/build/IFrame.7112b2ed.js","js/build/checkin.6f76d224.js","js/build/checkin.2fa0bfae.css","js/build/jquery.c87f487f.js","js/build/@babel.9410f858.js","js/build/dayjs.fd4aa75c.js","js/build/localforage.8de7c27e.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/openpgp_hi.15f91b1d.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js","js/build/webhook.378987f3.js"])}]},{name:"single-file-msg",path:"/single/file/msg/:msgId",component:()=>D(()=>import("./fileMsg.43202f22.js"),["js/build/fileMsg.43202f22.js","js/build/fileMsg.ca2fe73a.css","js/build/openpgp_hi.15f91b1d.js","js/build/vuex.cc7cb26e.js","js/build/IFrame.7112b2ed.js","js/build/jquery.c87f487f.js","js/build/@babel.9410f858.js","js/build/dayjs.fd4aa75c.js","js/build/localforage.8de7c27e.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"single-file-task",path:"/single/file/task/:fileId",component:()=>D(()=>import("./fileTask.fcdb2716.js"),["js/build/fileTask.fcdb2716.js","js/build/fileTask.584e53db.css","js/build/openpgp_hi.15f91b1d.js","js/build/IFrame.7112b2ed.js","js/build/jquery.c87f487f.js","js/build/@babel.9410f858.js","js/build/dayjs.fd4aa75c.js","js/build/localforage.8de7c27e.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/vuex.cc7cb26e.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"single-file",path:"/single/file/:codeOrFileId",component:()=>D(()=>import("./file.34f4af1e.js"),["js/build/file.34f4af1e.js","js/build/file.faa69c59.css","js/build/FileContent.9635e5fc.js","js/build/FileContent.b41606aa.css","js/build/openpgp_hi.15f91b1d.js","js/build/IFrame.7112b2ed.js","js/build/jquery.c87f487f.js","js/build/@babel.9410f858.js","js/build/dayjs.fd4aa75c.js","js/build/localforage.8de7c27e.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/vuex.cc7cb26e.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js","js/build/FilePreview.f5f37123.js"])},{name:"single-task-content",path:"/single/task/content/:taskId",component:()=>D(()=>import("./taskContent.f0f81c3b.js"),["js/build/taskContent.f0f81c3b.js","js/build/taskContent.e7e754e7.css","js/build/TEditor.7069f2fe.js","js/build/tinymce.498510f2.js","js/build/@babel.9410f858.js","js/build/ImgUpload.a99f26bd.js","js/build/chunkedUpload.a9ef725e.js","js/build/axios.37c7f908.js","js/build/spark-md5.0443325f.js","js/build/vuex.cc7cb26e.js","js/build/jquery.c87f487f.js","js/build/dayjs.fd4aa75c.js","js/build/localforage.8de7c27e.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/openpgp_hi.15f91b1d.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"single-task",path:"/single/task/:taskId",component:()=>D(()=>import("./task.b6476095.js"),["js/build/task.b6476095.js","js/build/task.a4c33b20.css","js/build/TaskDetail.e33edbb5.js","js/build/TaskDetail.dc666c43.css","js/build/vuex.cc7cb26e.js","js/build/add.1373f0de.js","js/build/add.90416dbc.css","js/build/DialogWrapper.21630cce.js","js/build/chunkedUpload.a9ef725e.js","js/build/axios.37c7f908.js","js/build/spark-md5.0443325f.js","js/build/index.ab4b7604.js","js/build/vue-virtual-scroll-list-hi.74ad83f0.js","js/build/@babel.9410f858.js","js/build/vue.adba9046.js","js/build/lodash.8fcd6fd4.js","js/build/ImgUpload.a99f26bd.js","js/build/webhook.378987f3.js","js/build/TEditor.7069f2fe.js","js/build/tinymce.498510f2.js","js/build/jquery.c87f487f.js","js/build/dayjs.fd4aa75c.js","js/build/localforage.8de7c27e.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/openpgp_hi.15f91b1d.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"single-dialog",path:"/single/dialog/:dialogId",component:()=>D(()=>import("./dialog.f706bbe5.js"),["js/build/dialog.f706bbe5.js","js/build/dialog.f35a7a2e.css","js/build/DialogWrapper.21630cce.js","js/build/vuex.cc7cb26e.js","js/build/chunkedUpload.a9ef725e.js","js/build/axios.37c7f908.js","js/build/spark-md5.0443325f.js","js/build/index.ab4b7604.js","js/build/vue-virtual-scroll-list-hi.74ad83f0.js","js/build/@babel.9410f858.js","js/build/vue.adba9046.js","js/build/lodash.8fcd6fd4.js","js/build/ImgUpload.a99f26bd.js","js/build/webhook.378987f3.js","js/build/jquery.c87f487f.js","js/build/dayjs.fd4aa75c.js","js/build/localforage.8de7c27e.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/openpgp_hi.15f91b1d.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"single-apps",path:"/single/apps/:name",component:()=>D(()=>import("./apps.fae1581f.js"),["js/build/apps.fae1581f.js","js/build/vuex.cc7cb26e.js","js/build/index.a1e57906.js","js/build/index.9742549c.css","js/build/vue.adba9046.js","js/build/@babel.9410f858.js","js/build/view-design-hi.24419422.js","js/build/@micro-zoe.39406924.js","js/build/DialogWrapper.21630cce.js","js/build/chunkedUpload.a9ef725e.js","js/build/axios.37c7f908.js","js/build/spark-md5.0443325f.js","js/build/index.ab4b7604.js","js/build/vue-virtual-scroll-list-hi.74ad83f0.js","js/build/lodash.8fcd6fd4.js","js/build/ImgUpload.a99f26bd.js","js/build/webhook.378987f3.js","js/build/jquery.c87f487f.js","js/build/dayjs.fd4aa75c.js","js/build/localforage.8de7c27e.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/openpgp_hi.15f91b1d.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/html-to-md.f297036e.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"single-valid-email",path:"/single/valid/email",component:()=>D(()=>import("./validEmail.f2f15440.js"),["js/build/validEmail.f2f15440.js","js/build/validEmail.6e361ca9.css","js/build/jquery.c87f487f.js","js/build/@babel.9410f858.js","js/build/dayjs.fd4aa75c.js","js/build/localforage.8de7c27e.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"single-report-edit",path:"/single/report/edit/:reportEditId",component:()=>D(()=>import("./reportEdit.ce911fe7.js"),["js/build/reportEdit.ce911fe7.js","js/build/reportEdit.6962c3d0.css","js/build/ReportEdit.686131b0.js","js/build/openpgp_hi.15f91b1d.js","js/build/vuex.cc7cb26e.js","js/build/jquery.c87f487f.js","js/build/@babel.9410f858.js","js/build/dayjs.fd4aa75c.js","js/build/localforage.8de7c27e.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"single-report-detail",path:"/single/report/detail/:reportDetailId",component:()=>D(()=>import("./reportDetail.f22d6ebf.js"),["js/build/reportDetail.f22d6ebf.js","js/build/reportDetail.1d7536d4.css","js/build/ReportDetail.71244edd.js","js/build/openpgp_hi.15f91b1d.js","js/build/vuex.cc7cb26e.js","js/build/jquery.c87f487f.js","js/build/@babel.9410f858.js","js/build/dayjs.fd4aa75c.js","js/build/localforage.8de7c27e.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"token",path:"/token",component:()=>D(()=>import("./token.a5f4f1fc.js"),["js/build/token.a5f4f1fc.js","js/build/token.85beaced.css","js/build/jquery.c87f487f.js","js/build/@babel.9410f858.js","js/build/dayjs.fd4aa75c.js","js/build/localforage.8de7c27e.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"login",path:"/login",component:()=>D(()=>import("./login.f525c424.js"),["js/build/login.f525c424.js","js/build/vuex.cc7cb26e.js","js/build/@chenfengyuan.dfd1ecb7.js","js/build/jquery.c87f487f.js","js/build/@babel.9410f858.js","js/build/dayjs.fd4aa75c.js","js/build/localforage.8de7c27e.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"preload",path:"/preload",component:()=>D(()=>import("./preload.e939a731.js"),["js/build/preload.e939a731.js","js/build/jquery.c87f487f.js","js/build/@babel.9410f858.js","js/build/dayjs.fd4aa75c.js","js/build/localforage.8de7c27e.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"404",path:"*",component:()=>D(()=>import("./404.08c5bc7d.js"),["js/build/404.08c5bc7d.js","js/build/404.d686a01f.css","js/build/jquery.c87f487f.js","js/build/@babel.9410f858.js","js/build/dayjs.fd4aa75c.js","js/build/localforage.8de7c27e.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])}];const rt=$A(window).width(),ag=$A(window).height(),Mt=$A.screenOrientation(),lg=$A.isFullScreen();var cg={clientId:"",cacheVersion:"v17",windowActive:!0,windowScrollY:0,safeAreaSize:{top:0,bottom:0,data:null},viewportHeight:0,windowTouch:"ontouchend"in document,windowWidth:rt,windowHeight:ag,isFirstPage:!1,windowOrientation:Mt,windowLandscape:Mt==="landscape",windowPortrait:Mt==="portrait",windowIsFullScreen:lg,formOptions:{class:rt>576?"":"form-label-weight-bold",labelPosition:rt>576?"right":"top",labelWidth:rt>576?"auto":""},keyboardShow:!1,keyboardHeight:0,isModKey:!1,appNotificationPermission:!0,audioPlaying:null,routeName:null,routePath:null,routeHistorys:[],routeHistoryLast:{},routeLoading:0,mobileTabbar:!1,callAt:[],loads:[],loadDashboardTasks:null,loadUserBasic:!1,loadProjects:0,loadDialogs:0,loadDialogAuto:!1,loadDialogLatestId:0,floatSpinnerTimer:[],floatSpinnerLoad:0,touchBackInProgress:!1,cacheUserWait:[],cacheUserBasic:[],cacheUserExtra:{},cacheCalendarView:null,cacheDialogs:[],cacheProjects:[],cacheColumns:[],cacheTasks:[],cacheProjectParameter:[],cacheDepartmentOwnerIds:[],departmentOwnerProjectViewEnabled:!1,departmentOwnerViewRestored:!1,departmentOwnerProjectsRefreshing:!1,departmentOwnerReadonlyUrls:["project/lists","project/one","project/column/lists","project/task/lists","project/task/one","project/task/content","project/task/content_history","project/task/files","project/task/fileinfo","project/task/subdata","project/task/related","project/flow/list","project/log/lists","project/tag/list"],cacheEmojis:[],cacheServerUrl:"",cacheKeyboard:{},ajaxAuthException:null,ajaxNetworkException:null,ws:null,wsCall:{},wsTimeout:null,wsRandom:0,wsOpenNum:0,userInfo:{},userId:0,userToken:"",userIsAdmin:!1,userAvatar:{},dialogId:0,dialogMsgId:0,dialogMsgKeep:30,dialogSearchMsgId:0,dialogIns:[],dialogMsgs:[],dialogTodos:[],dialogMsgTops:[],dialogHistory:[],dialogDrafts:[],dialogQuotes:[],dialogWithdraws:[],dialogMsgTransfer:{time:0},dialogSseList:[],dialogDroupWordChain:{},dialogGroupVote:{},dialogModalShow:!1,dialogCommonCountCache:{},messengerSearchKey:{dialog:"",contacts:""},readLoadNum:0,readTimeout:null,readWaitData:{},fileLists:[],collaborationFileCache:{},collaborationFileViewMode:"list",fileLinks:[],filePackLists:[],fileShakeId:0,projectId:0,projectTotal:0,projectLoad:0,taskId:0,taskCompleteTemps:[],taskContents:[],taskFiles:[],taskLogs:[],taskOperation:{},taskRelatedCache:{},taskArchiveView:0,taskTemplates:[],taskLatestId:0,taskOneLoad:{},taskFlows:[],taskFlowItems:[],taskPriority:[],columnTemplate:[],columnColorList:[{name:"\u9ED8\u8BA4",color:""},{name:"\u84DD\u8272",color:"#51abea"},{name:"\u7EFF\u8272",color:"#73b45c"},{name:"\u9EC4\u8272",color:"#f2d86d"},{name:"\u6A59\u8272",color:"#faaa6c"},{name:"\u7EA2\u8272",color:"#ff7070"},{name:"\u7D2B\u8272",color:"#b583e3"},{name:"\u7C89\u8272",color:"#ff819c"},{name:"\u9752\u8272",color:"#3ad1c8"},{name:"\u68D5\u8272",color:"#947364"},{name:"\u7070\u8272",color:"#999999"},{name:"\u6DF1\u84DD",color:"#2b5caa"},{name:"\u6DF1\u7EFF",color:"#1a7f5a"},{name:"\u91D1\u8272",color:"#ffd700"},{name:"\u6E56\u84DD",color:"#00bcd4"}],taskColorList:[{name:"\u9ED8\u8BA4",color:"",primary:""},{name:"\u9EC4\u8272",color:"#fffae6",primary:"#f2d86d"},{name:"\u84DD\u8272",color:"#e5f5ff",primary:"#51abea"},{name:"\u7EFF\u8272",color:"#ecffe5",primary:"#73b45c"},{name:"\u7C89\u8272",color:"#ffeaee",primary:"#ff819c"},{name:"\u7D2B\u8272",color:"#f6ecff",primary:"#b583e3"},{name:"\u7070\u8272",color:"#f3f3f3",primary:"#999999"}],themeConf:window.localStorage.getItem("__system:themeConf__"),themeName:null,themeList:[{name:"\u8DDF\u968F\u7CFB\u7EDF",value:"auto"},{name:"\u660E\u4EAE",value:"light"},{name:"\u6697\u9ED1",value:"dark"}],clientNewVersion:null,clientDownloadUrl:"",previewImageIndex:0,previewImageList:[],reportUnreadNumber:0,apiKeyData:{},localKeyPair:{},localKeyLock:!1,systemConfig:{},meetingWindow:{show:!1,type:"",meetingid:0},appMeetingShow:!1,cacheTranslationLanguage:"",cacheTranslations:[],menuOperation:{},longpressData:{type:"",data:null,element:null},microApps:[],microAppsInstalled:[],microAppsIds:[],microAppsMenus:[],mcpServerStatus:{running:"stopped"}},ug={isLoad(e){return function(s){const t=e.loads.find(i=>i.key===s);return!!(t&&t.num>0)}},isMessengerPage(e){return e.routeName==="manage-messenger"},projectData(e){if(e.projectId>0){let s=e.cacheProjects.find(({id:t})=>t==e.projectId);if(s){let t=e.cacheProjectParameter.find(({project_id:i})=>i==e.projectId);return t||(t=$A.projectParameterTemplate(e.projectId),e.cacheProjectParameter.push(t)),t.menuType===void 0&&(t.menuType="column"),s.cacheParameter=t,s}}return{cacheParameter:{}}},taskData(e){let s=e.taskId;if(s==0&&(s=$A.runNum(window.__taskId)),s>0){window.__taskId=s;const t=e.cacheTasks.find(({id:i})=>i==s);if(t)return t}return{}},transforTasks(e){return function(s){return s.filter(({parent_id:t})=>!(t>0&&s.find(({id:i})=>i==t))).map(t=>{if(t.parent_id>0){const i=e.cacheTasks.find(({id:n})=>n==t.parent_id);return i?Object.assign({},i,{id:t.id,parent_id:t.parent_id,name:t.name,start_at:t.start_at,end_at:t.end_at,complete_at:t.complete_at,_time:t._time,flow_item_id:t.flow_item_id,flow_item_name:t.flow_item_name,flow_item_status:t.flow_item_status,sub_top:!0,sub_my:[]}):Object.assign({},t,{sub_top:!0,sub_my:[]})}else return Object.assign({},t,{sub_top:!1,sub_my:s.filter(({parent_id:i})=>i==t.id)})})}},dashboardTask(e){const s=$A.daytz().startOf("day"),t=$A.daytz().endOf("day"),i=$A.daytz(),n=(a,l=!0)=>a.archived_at||a.complete_at&&l===!0||a.start_at&&$A.dayjs(a.start_at)>i?!1:a.owner==1;let r=e.cacheTasks.filter(a=>n(a));if(e.taskCompleteTemps.length>0){let a=e.cacheTasks.filter(l=>e.taskCompleteTemps.includes(l.id)&&n(l,!1));a.length>0&&(a.length,r=$A.cloneJSON(r),r.push(...a))}const o={overdue:[],today:[],todo:[],overdue_count:0,today_count:0,todo_count:0};return r.forEach(a=>{const l=e.taskCompleteTemps.includes(a.id);if(a.end_at&&$A.dayjs(a.end_at)<=i)o.overdue.push(a),l||o.overdue_count++;else if(a.end_at){const c=$A.dayjs(a.end_at);s<=c&&c<=t?(o.today.push(a),l||o.today_count++):(o.todo.push(a),l||o.todo_count++)}else o.todo.push(a),l||o.todo_count++}),o},assistTask(e){const s=(i,n=!0)=>i.archived_at||i.complete_at&&n===!0?!1:i.assist&&i.owner===0;let t=e.cacheTasks.filter(i=>s(i));if(e.taskCompleteTemps.length>0){const i=e.cacheTasks.filter(n=>e.taskCompleteTemps.includes(n.id)&&s(n,!1));i.length>0&&(t=$A.cloneJSON(t),t.push(...i))}return t.sort((i,n)=>{const r=i.end_at?$A.dayjs(i.end_at):$A.dayjs("2099-12-31 23:59:59"),o=n.end_at?$A.dayjs(n.end_at):$A.dayjs("2099-12-31 23:59:59");return r-o})},getDialogDraft:e=>s=>e.dialogDrafts.find(i=>i.id===s)||null,tagDialogDraft:e=>s=>{const t=e.dialogDrafts.find(i=>i.id===s);return!!(t!=null&&t.tag)},getDialogQuote:e=>s=>e.dialogQuotes.find(i=>i.id===s)||null,aiVisible(e,s){var i;const t=(i=e.microAppsIds)==null?void 0:i.includes("ai");return $A.isEEUIApp?t&&e.systemConfig.__state==="success"&&!s.appAiHidden:t},appAiHidden(e){return $A.isEEUIApp&&(e.systemConfig.__state!=="success"||e.systemConfig.app_ai_hidden===!0)},visibleDialogs(e,s){return s.appAiHidden?e.cacheDialogs.filter(t=>!$A.isAiBotDialog(t)):e.cacheDialogs},filterMicroAppsMenus:(e,s)=>e.microAppsMenus.filter(t=>t.location==="application"&&(t.id!=="ai"||s.aiVisible)),filterMicroAppsMenusAdmin:(e,s)=>e.microAppsMenus.filter(t=>t.location==="application/admin"&&(t.id!=="ai"||s.aiVisible)),filterMicroAppsMenusMain:(e,s)=>e.microAppsMenus.filter(t=>t.location==="main/menu"&&(t.id!=="ai"||s.aiVisible))};const he={timer:{},subTemp:null},De={timer:{},expire:5*60*1e3,schedule(e,s){this.timer[s.id]&&clearTimeout(this.timer[s.id]),this.timer[s.id]=setTimeout(()=>{delete this.timer[s.id],e("withdraw/remove",s.id)},Math.max(0,s.time+this.expire-new Date().getTime()))}};var dg={preload({state:e}){var s;window.addEventListener("resize",()=>{const t=$A(window).width(),i=$A(window).height(),n=$A.screenOrientation();e.windowTouch="ontouchend"in document,e.windowWidth=t,e.windowHeight=i,e.windowOrientation=n,e.windowLandscape=n==="landscape",e.windowPortrait=n==="portrait",e.windowIsFullScreen=$A.isFullScreen(),e.formOptions={class:t>576?"":"form-label-weight-bold",labelPosition:t>576?"right":"top",labelWidth:t>576?"auto":""},$A.eeuiAppSendMessage({action:"windowSize",width:t,height:i})}),window.addEventListener("scroll",()=>{e.windowScrollY=window.scrollY}),window.addEventListener("message",({data:t})=>{t=$A.jsonParse(t),t.action==="eeuiAppSendMessage"&&($A.isArray(t.data)?t.data:[t.data]).forEach(n=>{$A.eeuiAppSendMessage(n)})}),window.addEventListener("fullscreenchange",()=>{document.fullscreenElement?$A("body").addClass("fullscreen-mode"):$A("body").removeClass("fullscreen-mode")}),(s=window.visualViewport)==null||s.addEventListener("resize",()=>{e.viewportHeight=window.visualViewport.height||0})},init({state:e,dispatch:s}){return new Promise(async t=>{const i=$A.urlParameterAll(),n={language:"__system:languageName__",theme:"__system:themeConf__",userid:"__system:userId__",token:"__system:userToken__"},r={userid:0,token:null};if(Object.entries(n).forEach(([c,d])=>{i[c]&&(window.localStorage.setItem(d,i[c]),c==="userid"&&(r.userid=$A.runNum(i[c])),c==="token"&&(r.token=i[c]))}),Object.keys(n).some(c=>i[c])){const c=$A.removeURLParameter(window.location.href,Object.keys(n));window.history.replaceState(null,"",c)}if(r.userid>0&&r.token){const c=await $A.IDBJson("userInfo");await $A.IDBSet("userInfo",Object.assign(c,r))}let o=null;const a=await $A.IDBString("clearCache");a&&(a==="handle"&&(o="handleClearCache"),await $A.IDBRemove("clearCache"),await $A.IDBSet("cacheVersion","clear"));const l=await $A.IDBString("cacheVersion");l&&l!==e.cacheVersion?await s("handleClearCache"):await s("handleReadCache"),await s("synchTheme"),await s("handleKeyboard"),e.clientId||(e.clientId=$A.randomString(6),await $A.IDBSet("clientId",e.clientId)),s("call",{url:"users/key/client",data:{client_id:e.clientId},encrypt:!1}).then(({data:c})=>{e.apiKeyData=c}),s("systemSetting"),await $A.loadScriptS(["js/jsencrypt.min.js","js/scroll-into-view.min.js","language/web/key.js",`language/web/${M}.js`,`language/iview/${M}.js`]),Cr(),t(o)})},safeAreaInsets({state:e}){return new Promise(s=>{if(!e.isFirstPage)return s(null);$A.eeuiAppGetSafeAreaInsets().then(async t=>{var n,r,o,a;t.top=t.top||((r=(n=e.safeAreaSize)==null?void 0:n.data)==null?void 0:r.top)||0,t.bottom=t.bottom||((a=(o=e.safeAreaSize)==null?void 0:o.data)==null?void 0:a.bottom)||0;const i=t.height/window.outerHeight;e.safeAreaSize={top:Math.round(t.top/i*100)/100,bottom:Math.round(t.bottom/i*100)/100,data:t},s(e.safeAreaSize)}).catch(t=>{console.warn(t),s(null)})})},call({state:e,dispatch:s},t){var r;$A.isJson(t)||(t={url:t});const i={"Content-Type":"application/json",language:M,token:e.userToken,fd:$A.getSessionStorageString("userWsFd"),version:window.systemInfo.version||"0.0.1",platform:$A.Platform};if(!e.userToken&&((r=e.meetingWindow)==null?void 0:r.meetingSharekey)&&(i.sharekey=e.meetingWindow.meetingSharekey),$A.isJson(t.header)?t.header=Object.assign(i,t.header):t.header=i,e.systemConfig.e2e_message==="open"&&t.encrypt===void 0&&$A.inArray(t.url,["users/login","users/editpass","users/operation","users/delete/account","system/license","users/bot/*","dialog/msg/*"],!0)&&(t.encrypt=!0),t.departmentOwner!==!1&&e.systemConfig.department_owner_project_view==="open"&&e.departmentOwnerProjectViewEnabled&&e.departmentOwnerReadonlyUrls.includes(t.url)&&(e.cacheDepartmentOwnerIds||[]).length>0&&($A.isJson(t.data)||(t.data={}),t.data.department_owner_ids===void 0&&(t.data.department_owner_ids=e.cacheDepartmentOwnerIds.join(","))),t.encrypt){const o=window.navigator.userAgent;(window.systemInfo.debug==="yes"||/Windows NT 5.1|Windows XP/.test(o)||o.indexOf("Windows NT 6.0")!==-1||o.indexOf("Windows NT 6.1")!==-1||o.indexOf("Windows NT 6.2")!==-1)&&(t.encrypt=!1)}t.url=$A.apiUrl(t.url),t.data=$A.newDateString(t.data);const n=$A.cloneJSON(t);return new Promise(async(o,a)=>{if(/^https?:\/\/public\//.test(t.url)){a({ret:-1,data:{},msg:"No server address"});return}const l=[];if(t.encrypt===!0&&(t.data&&e.apiKeyData.type==="pgp"&&(l.push(`encrypt_type=${e.apiKeyData.type};encrypt_id=${e.apiKeyData.id}`),t.method="post",t.data={encrypted:await s("pgpEncryptApi",t.data)}),l.push("client_type=pgp;client_key="+(await s("pgpGetLocalKey")).publicKeyB64)),l.length>0&&(t.header.encrypt=l.join(";")),t.method==="post"&&(t.data=JSON.stringify(t.data)),t.spinner===!0||typeof t.spinner=="number"&&t.spinner>0){const{before:c,complete:d}=t;t.before=()=>{s("showSpinner",typeof t.spinner=="number"?t.spinner:0),typeof c=="function"&&c()},t.complete=()=>{s("hiddenSpinner"),typeof d=="function"&&d()}}t.success=async(c,d,h)=>{if(!$A.isJson(c)){console.log(c,d,h),a({ret:-1,data:{},msg:$A.L("\u8FD4\u56DE\u53C2\u6570\u9519\u8BEF")});return}t.encrypt===!0&&c.encrypted&&(c=await s("pgpDecryptApi",c.encrypted));const{ret:u,data:p,msg:g}=c;if(u===-1&&(e.userId=0,t.checkAuth!==!1)){e.ajaxAuthException=g||$A.L("\u8BF7\u767B\u5F55\u540E\u7EE7\u7EED..."),a(Object.assign(c,{msg:!1}));return}if(u===-2&&t.checkNick!==!1){s("userEditInput","nickname").then(()=>{s("call",n).then(o).catch(a)}).catch(_=>{a({ret:-1,data:p,msg:_||$A.L("\u8BF7\u8BBE\u7F6E\u6635\u79F0")})});return}if(u===-3&&t.checkTel!==!1){s("userEditInput","tel").then(()=>{s("call",n).then(o).catch(a)}).catch(_=>{a({ret:-1,data:p,msg:_||$A.L("\u8BF7\u8BBE\u7F6E\u8054\u7CFB\u7535\u8BDD")})});return}if(u===1){o({data:p,msg:g,xhr:h});return}a({ret:u,data:p,msg:g||$A.L("\u672A\u77E5\u9519\u8BEF")}),u===-4001?s("forgetProject",{id:p.project_id}):u===-4002?(p.force===1&&(e.taskArchiveView=0),s("forgetTask",{id:p.task_id})):u===-4003?s("forgetDialog",{id:p.dialog_id}):u===-4004&&s("getTaskForParent",p.task_id).catch(()=>{})},t.error=async(c,d)=>{const h={ret:-1,data:{},msg:$A.L("\u8BF7\u6C42\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5\u3002")};if(window.navigator.onLine===!1||d===0&&c.readyState===4){if(n.method!=="post"&&n.networkFailureRetry!==!1){await new Promise(p=>setTimeout(p,1e3)),s("call",Object.assign(n,{networkFailureRetry:!1})).then(o).catch(a);return}h.ret=-1001,h.msg=t.checkNetwork!==!1?!1:$A.L("\u7F51\u7EDC\u5F02\u5E38\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5\u3002"),t.checkNetwork!==!1&&$A.Ready!==!1&&(e.ajaxNetworkException=$A.L("\u7F51\u7EDC\u8FDE\u63A5\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u8BBE\u7F6E\u3002"))}a(h),console.error(c,d)},$A.ajaxc(t)})},callCancel({state:e},s){return new Promise((t,i)=>{$A.ajaxcCancel(s)?t():i()})},systemSetting({dispatch:e,state:s}){return new Promise((t,i)=>{switch(s.systemConfig.__state){case"success":t(s.systemConfig);break;case"loading":setTimeout(n=>{e("systemSetting").then(t).catch(i)},100);break;default:s.systemConfig.__state="loading",e("call",{url:"system/setting"}).then(({data:n})=>{s.systemConfig=Object.assign(n,{timezoneDifference:$A.updateTimezone(n.server_timezone),__state:"success"}),t(s.systemConfig)}).catch(n=>{s.systemConfig.__state="error",i()});break}})},downUrl({state:e},s){if(!s)return;let t=s,i=!0;if($A.isJson(s)&&(t=s.url,i=!!s.token),i){let n={token:e.userToken};$A.isJson(s)&&(t=s.url,n=s.params||{}),t=$A.urlAddParams(t,n)}$A.Electron?($A.Electron.request({action:"openDownloadWindow",language:M,theme:e.themeName}),$A.Electron.request({action:"createDownload",url:t})):$A.isEEUIApp?$A.eeuiAppOpenWeb(t):window.open(t)},filePos({state:e,getters:s,dispatch:t},i){if($A.isSubElectron){$A.syncDispatch("filePos",i),$A.Electron.sendMessage("mainWindowActive");return}t("openTask",0),(!s.isMessengerPage||e.windowPortrait)&&t("openDialog",0);const{board:n,...r}=i;$A.goForward({name:"manage-file",params:r,query:["mine","shared"].includes(n)?{board:n}:void 0})},toggleProjectParameter({commit:e,state:s},t){$A.syncDispatch("toggleProjectParameter",t);let i=t,n=null,r=s.projectId;if($A.isJson(t)&&(i=t.key,n=t.value,r=t.project_id),r){let o=s.cacheProjectParameter.findIndex(l=>l.project_id==r);o===-1&&(e("project/parameter/push",$A.projectParameterTemplate(r)),o=s.cacheProjectParameter.findIndex(l=>l.project_id==r));const a=s.cacheProjectParameter[o];$A.isJson(i)||(i={[i]:n||!a[i]}),e("project/parameter/splice",{index:o,data:Object.assign(a,i)})}},setTheme({state:e,dispatch:s},t){return new Promise(function(i){if(t===void 0){i(!1);return}if(!$A.dark.utils.supportMode()){$A.isEEUIApp?$A.modalWarning("\u4EC5Android\u8BBE\u7F6E\u652F\u6301\u4E3B\u9898\u529F\u80FD"):$A.modalWarning("\u4EC5\u5BA2\u6237\u7AEF\u6216Chrome\u6D4F\u89C8\u5668\u652F\u6301\u4E3B\u9898\u529F\u80FD"),i(!1);return}s("synchTheme",{mode:t}),i(!0)})},synchTheme({state:e,dispatch:s},{mode:t,...i}={}){switch($A.syncDispatch("synchTheme",{...i,mode:t}),typeof t=="undefined"?t=e.themeConf:e.themeConf=t,t){case"dark":$A.dark.enableDarkMode();break;case"light":$A.dark.disableDarkMode();break;default:e.themeConf="auto",$A.dark.autoDarkMode();break}e.themeName=$A.dark.isDarkEnabled()?"dark":"light",window.localStorage.setItem("__system:themeConf__",e.themeConf),$A.isEEUIApp?$A.eeuiAppSendMessage({action:"updateTheme",themeName:e.themeName,themeDefault:{theme:{dark:"#131313",light:"#f8f8f8"},nav:{dark:"#cdcdcd",light:"#232323"}}}):$A.isElectron&&$A.Electron.sendMessage("setStore",{key:"themeConf",value:e.themeConf})},async getBasicData({state:e,dispatch:s},t){if(typeof t=="number"){window.__getBasicDataTimer&&clearTimeout(window.__getBasicDataTimer),t>-1&&(window.__getBasicDataTimer=setTimeout(r=>s("getBasicData",null),t));return}const i=e.userId+$A.dayjs().unix();if(window.__getBasicDataKey===i)return;window.__getBasicDataKey=i,s("getDialogAuto").catch(()=>{}),s("getDialogTodo",0).catch(()=>{}),s("getTaskPriority",1e3),s("getReportUnread",1e3),s("getProjectsForDepartmentOwnerView").catch(()=>{}),s("getTaskForDashboard"),s("dialogMsgRead"),s("updateMicroAppsStatus");const n=Object.values(e.userAvatar).map(({userid:r})=>r).filter(r=>r>0);[...new Set(n)].some(r=>s("getUserBasic",{userid:r}))},getReportUnread({state:e,dispatch:s},t){window.__getReportUnread&&clearTimeout(window.__getReportUnread),window.__getReportUnread=setTimeout(()=>{e.userId===0?e.reportUnreadNumber=0:s("call",{url:"report/unread"}).then(({data:i})=>{e.reportUnreadNumber=i.total||0}).catch(i=>{})},typeof t=="number"?t:1e3)},getUserInfo({dispatch:e}){return new Promise(function(s,t){e("call",{url:"users/info"}).then(i=>{e("saveUserInfo",i.data),s(i)}).catch(i=>{console.warn(i),t(i)})})},getUserExtra({state:e,dispatch:s},t){return new Promise(async(i,n)=>{if(!t){n({msg:"userid missing"});return}const r=e.cacheUserExtra||{},o=r[`${t}`],a=Date.now();if(o&&o.data&&a-o.updatedAt<3e4){i(o.data);return}try{const{data:l}=await s("call",{url:"users/extra",data:{userid:t}});e.cacheUserExtra=Object.assign({},r,{[`${t}`]:{data:l,updatedAt:Date.now()}}),i(l)}catch(l){n(l)}})},saveUserExtra({state:e},s){var r;const t=$A.runNum(s==null?void 0:s.userid);if(!t||!$A.isJson(s==null?void 0:s.data))return;const i=e.cacheUserExtra||{},n=((r=i[`${t}`])==null?void 0:r.data)||{};e.cacheUserExtra=Object.assign({},i,{[`${t}`]:{data:Object.assign({},n,s.data),updatedAt:Date.now()}})},saveUserInfoBase({state:e,dispatch:s},t){return new Promise(async i=>{const n=$A.cloneJSON(t);n.userid=$A.runNum(n.userid),n.token=n.userid>0?n.token||e.userToken:"",e.userInfo=n,e.userId=n.userid,e.userToken=n.token,e.userIsAdmin=$A.inArray("admin",n.identity),$A.isSubElectron||$A.isEEUIApp&&!e.isFirstPage||await $A.IDBSet("userInfo",e.userInfo),$A.eeuiAppSendMessage({action:"userChatList",language:$A.eeuiAppConvertLanguage(),url:$A.mainUrl("api/users/share/list")+`?token=${e.userToken}`}),$A.eeuiAppSendMessage({action:"userUploadUrl",dirUrl:$A.mainUrl("api/file/content/upload")+`?token=${e.userToken}`,chatUrl:$A.mainUrl("api/dialog/msg/sendfiles")+`?token=${e.userToken}`}),i()})},saveUserInfo({commit:e,state:s,dispatch:t},i){return new Promise(async n=>{await t("saveUserInfoBase",i),t("getBasicData",null),s.userId>0&&(e("user/save",s.cacheUserBasic.filter(({userid:r})=>r!==s.userId)),t("saveUserBasic",s.userInfo)),n()})},getUserBasic({state:e,dispatch:s},t){if(e.loadUserBasic===!0){t&&e.cacheUserWait.push(t);return}let i=$A.dayjs().unix(),n=$A.cloneJSON(e.cacheUserWait);t&&t.userid&&n.push(t),e.cacheUserWait=[];let r=[],o=0;n.some(a=>{let l=e.cacheUserBasic.find(({userid:c})=>c==a.userid);if(l&&i-l._time<=30)return setTimeout(()=>{x.emit("userActive",{type:"cache",data:l})},o+=5),!1;r.push(a)}),r.length!==0&&(r.length>30&&(e.cacheUserWait=r.slice(30),r=r.slice(0,30)),e.loadUserBasic=!0,s("call",{url:"users/basic",data:{userid:[...new Set(r.map(({userid:a})=>a))]},checkAuth:!1}).then(a=>{i=$A.dayjs().unix(),r.forEach(l=>{let c=a.data.find(({userid:d})=>d==l.userid)||Object.assign(l,{email:""});c._time=i,s("saveUserBasic",c)}),e.loadUserBasic=!1,s("getUserBasic")}).catch(a=>{console.warn(a),e.loadUserBasic=!1,s("getUserBasic")}))},getUserData({state:e,dispatch:s},t){return new Promise(async(i,n)=>{let r=e.cacheUserBasic.find(o=>o.userid==t);if(!r)try{const{data:o}=await s("call",{url:"users/basic",data:{userid:[t]},checkAuth:!1});r=o.find(a=>a.userid==t)}catch{}r?i($A.cloneJSON(r)):n()})},saveUserBasic({commit:e,state:s},t){$A.syncDispatch("saveUserBasic",t);const i=s.cacheUserBasic.findIndex(({userid:n})=>n==t.userid);i>-1?(t=Object.assign({},s.cacheUserBasic[i],t),e("user/splice",{index:i,data:t})):e("user/push",t),x.emit("userActive",{type:"cache",data:t})},editUserBot({dispatch:e},s){return new Promise((t,i)=>{let n=0;s.dialog_id&&(n=s.dialog_id,delete s.dialog_id),e("call",{url:"users/bot/edit",data:s,method:"post"}).then(({data:r,msg:o})=>{e("saveUserBasic",{userid:r.id,nickname:r.name,userimg:r.avatar}),n&&e("saveDialog",{id:n,name:r.name}),t({data:r,msg:o})}).catch(i)})},userEditInput({dispatch:e},s){return new Promise(function(t,i){let n="";if(s==="nickname")n="\u6635\u79F0";else if(s==="tel")n="\u8054\u7CFB\u7535\u8BDD";else{i("\u53C2\u6570\u9519\u8BEF");return}setTimeout(r=>{$A.modalInput({title:`\u8BBE\u7F6E${n}`,placeholder:`\u8BF7\u8F93\u5165\u60A8\u7684${n}`,okText:"\u4FDD\u5B58",onOk:o=>o?new Promise((a,l)=>{e("call",{url:"users/editdata",data:{[s]:o},checkNick:!1,checkTel:!1}).then(()=>{e("getUserInfo").finally(c=>{a(),t()})}).catch(({msg:c})=>{l(c)})}):`\u8BF7\u8F93\u5165${n}`,onCancel:o=>i})},100)})},getDepartmentList({dispatch:e}){return new Promise((s,t)=>{const i=(n,r=0,o=0,a=[])=>{let l=[];return n.some(c=>{if(c.parent_id==r){const d=Object.assign({},c,{chains:a.concat([c.name]),level:o+1});l.push(d);const h=i(n,c.id,o+1,a.concat([c.name]));l=l.concat(h)}}),l};e("call",{url:"users/department/list"}).then(({data:n})=>{s(i(n,0,1))}).catch(t)})},logout({state:e,dispatch:s},t=!0){return new Promise(async i=>{try{await s("call",{url:"users/logout",timeout:6e3})}catch(n){console.log(n)}s("handleClearCache",{}).then(()=>{let n=["/","/login"].includes(window.location.pathname)?"":encodeURIComponent(window.location.href);t===!1&&(n=null),$A.goForward({name:"login",query:n?{from:n}:{}},!0),i()})})},handleKeyboard({state:e},s){return new Promise(t=>{window.localStorage.getItem("__system:keyboardConf__")||(window.localStorage.setItem("__system:keyboardConf__",window.localStorage.getItem("__keyboard:data__")),window.localStorage.removeItem("__keyboard:data__"));const i=$A.isJson(s)?s:$A.jsonParse(window.localStorage.getItem("__system:keyboardConf__"))||{};i.screenshot_key=(i.screenshot_key||"").trim().toLowerCase(),i.send_button_app=i.send_button_app||"button",i.send_button_desktop=i.send_button_desktop||"enter",window.localStorage.setItem("__system:keyboardConf__",$A.jsonStringify(i)),e.cacheKeyboard=i,t(i)})},handleClearCache({state:e,dispatch:s},t){return new Promise(async i=>{e.loadDashboardTasks=null;const n=["themeConf","languageName","keyboardConf"],r=n.reduce((l,c)=>({...l,[c]:window.localStorage.getItem(`__system:${c}__`)}),{});window.localStorage.clear(),n.forEach(l=>window.localStorage.setItem(`__system:${l}__`,r[l]));const o=["clientId","cacheServerUrl","cacheCalendarView","cacheProjectParameter","cacheLoginEmail","cacheFileSort","cacheTranslationLanguage","cacheTranslations","cacheEmojis","userInfo","mcpServerStatus","aiAssistant.model","aiAssistant.sessions"];await $A.IDBClear(o),await $A.IDBSet("cacheVersion",e.cacheVersion);const a=await $A.IDBJson("userInfo");await s("saveUserInfoBase",$A.isJson(t)?t:a),await s("handleReadCache"),e.ajaxAuthException=null,i()})},handleReadCache({state:e,commit:s}){return new Promise(async t=>{const i={string:["clientId","cacheServerUrl","cacheCalendarView","cacheTranslationLanguage","collaborationFileViewMode"],array:["cacheUserBasic","cacheProjects","cacheDepartmentOwnerIds","cacheColumns","cacheTasks","cacheProjectParameter","cacheTranslations","dialogMsgs","dialogDrafts","dialogQuotes","dialogWithdraws","fileLists","callAt","cacheEmojis","cacheDialogs","microAppsIds","microAppsMenus"],json:["userInfo","taskRelatedCache","dialogCommonCountCache","collaborationFileCache","mcpServerStatus"]},n=$A.IDBValue("departmentOwnerProjectViewEnabled"),r=await Promise.all([...i.string.map(u=>$A.IDBString(u)),...i.array.map(u=>$A.IDBArray(u)),...i.json.map(u=>$A.IDBJson(u))]),o=await n;[...i.string,...i.array,...i.json].forEach((u,p)=>{u==="cacheDepartmentOwnerIds"?s("department/owner/ids/save",r[p]):e[u]=r[p]});const a=typeof o=="boolean"?o:(e.cacheDepartmentOwnerIds||[]).length>0;s("department/owner/enabled/save",a),e.cacheDialogs=e.cacheDialogs.map(u=>({...u,loading:!1})),e.dialogDrafts=e.dialogDrafts.filter(u=>!!u.content).map(u=>({...u,tag:!!u.content}));const l=new Date().getTime(),c=e.dialogWithdraws.length;e.dialogWithdraws=e.dialogWithdraws.filter(u=>u.time&&l-u.timeDe.schedule(s,u)),e.dialogWithdraws.length!==c&&$A.IDBSave("dialogWithdraws",e.dialogWithdraws),typeof ve[e.cacheTranslationLanguage]=="undefined"&&(e.cacheTranslationLanguage=M),e.userInfo.userid&&(e.userId=e.userInfo.userid=$A.runNum(e.userInfo.userid),e.userToken=e.userInfo.token,e.userIsAdmin=$A.inArray("admin",e.userInfo.identity));const d=(e.userInfo.managed_departments||[]).map(u=>parseInt(u.id)).filter(u=>u>0);let h=(e.cacheDepartmentOwnerIds||[]).map(u=>parseInt(u)).filter(u=>d.includes(u));h.length===0&&(h=d),s("department/owner/ids/save",[...new Set(h)]),h.length===0&&s("department/owner/enabled/save",!1),e.cacheServerUrl&&(window.systemInfo.apiUrl=e.cacheServerUrl),t()})},onBeforeUnload(){$A.isSubElectron&&he.subTemp&&($A.syncDispatch("saveDialogDraft",he.subTemp),he.subTemp=null)},scrollBottom({state:e},s){if(!s)return;const t=s.getBoundingClientRect();!t||window.scrollTo({top:t.bottom+e.safeAreaSize.bottom,behavior:"smooth"})},userUrl({state:e},s){return new Promise(t=>{if($A.getDomain(s)==$A.mainDomain()&&ze(window.location))try{const n=new URL(s);if(/^\/(single|meeting)\//.test(n.pathname)){const r=new URL(window.location);return r.hash=n.pathname+n.search,t(r.toString())}}catch{}const i={language:M,theme:e.themeConf,userid:e.userId};($A.getDomain(s)==$A.mainDomain()||ze(s))&&(i.token=e.userToken),t($A.urlAddParams(s,i))})},openAppMapPage({dispatch:e},s){return new Promise(t=>{const i=$A.L("\u5B9A\u4F4D\u7B7E\u5230"),n=$A.randomString(6),r={title:i,label:$A.L("\u9009\u62E9\u9644\u8FD1\u5730\u70B9"),placeholder:$A.L("\u641C\u7D22\u5730\u70B9"),noresult:$A.L("\u9644\u8FD1\u6CA1\u6709\u627E\u5230\u5730\u70B9"),errtip:$A.L("\u5B9A\u4F4D\u5931\u8D25"),selectclose:"true",channel:n};$A.eeuiAppSetVariate(`location::${n}`,"");const o=$A.urlAddParams(window.location.origin+"/tools/map/index.html",Object.assign(r,s||{}));e("openAppChildPage",{pageType:"app",pageTitle:i,url:"web.js",params:{titleFixed:!0,hiddenDone:!0,url:o},callback:({status:a})=>{if(a==="pause"){const l=$A.jsonParse($A.eeuiAppGetVariate(`location::${n}`));if(l.point){if($A.eeuiAppSetVariate(`location::${n}`,""),l.distance>s.radius){$A.modalError(`\u4F60\u9009\u62E9\u7684\u4F4D\u7F6E\u300C${l.title}\u300D\u4E0D\u5728\u7B7E\u5230\u8303\u56F4\u5185`);return}t(l)}}}})})},async openAppChildPage({dispatch:e},s){s.params.url=await e("userUrl",s.params.url),typeof s.params.allowAccess=="undefined"&&(s.params.allowAccess=ze(s.params.url)),typeof s.params.showProgress=="undefined"&&(s.params.showProgress=!ze(s.params.url)),$A.eeuiAppOpenPage(s)},async openWindow({dispatch:e},s){typeof s=="string"&&(s={path:s});const t=$A.getDomain(s.path);t&&t!==$A.mainDomain()?s.webPreferences=Object.assign({contextIsolation:!1},s.webPreferences):s.path=await e("userUrl",s.path),$A.Electron.sendMessage("openWindow",{name:s.name,url:s.path,mode:s.mode,title:s.title,titleFixed:s.titleFixed,width:s.width,height:s.height,minWidth:s.minWidth,minHeight:s.minHeight,userAgent:s.userAgent,force:s.force,webPreferences:s.webPreferences})},saveFile({commit:e,state:s,dispatch:t},i){if($A.syncDispatch("saveFile",i),$A.isArray(i))i.forEach(n=>{t("saveFile",n)});else if($A.isJson(i)){let n={_load:!1,_edit:!1};const r=s.fileLists.findIndex(({id:o})=>o==i.id);r>-1?e("file/splice",{index:r,data:Object.assign(n,s.fileLists[r],i)}):e("file/push",Object.assign(n,i))}},forgetFile({commit:e,state:s,dispatch:t},i){$A.syncDispatch("forgetFile",i),($A.isArray(i.id)?i.id:[i.id]).some(r=>{e("file/save",s.fileLists.filter(o=>o.id!=r)),s.fileLists.some(o=>{o.pid==r&&t("forgetFile",o)})})},packProgress({state:e,dispatch:s},t){$A.syncDispatch("packProgress",t);const i=e.filePackLists.findIndex(({name:n})=>n==t.name);i>-1?e.filePackLists[i].progress=t.progress:e.filePackLists.push(t)},getFiles({commit:e,state:s,dispatch:t},i){const n=typeof i=="object"&&i!==null?i.pid:i,r=typeof i=="object"&&i!==null?i.scope:void 0;return new Promise(function(o,a){t("call",{url:"file/lists",data:r?{pid:n,scope:r}:{pid:n}}).then(l=>{const c=l.data.map(({id:h})=>h),d=s.userId;e("file/save",s.fileLists.filter(h=>h.pid!=n||c.includes(h.id)?!0:n>0?!1:r==="mine"?h.userid!=d:r==="shared"?!(h.userid!=d||h.share):!1)),t("saveFile",l.data),o(l)}).catch(l=>{console.warn(l),a(l)})})},searchFiles({state:e,dispatch:s},t){return $A.isJson(t)||(t={key:t}),new Promise(function(i,n){s("call",{url:"file/search",data:t}).then(r=>{s("saveFile",r.data),i(r)}).catch(r=>{console.warn(r),n(r)})})},normalizeDepartmentOwnerIds({state:e},s){const t=(e.userInfo.managed_departments||[]).map(i=>parseInt(i.id));return $A.isArray(s)||(s=[]),[...new Set(s.map(i=>parseInt(i)).filter(i=>i>0&&t.includes(i)))]},async getProjectsForDepartmentOwnerView({state:e,dispatch:s,commit:t}){if(await s("systemSetting").catch(()=>{}),e.systemConfig.department_owner_project_view!=="open"){t("department/owner/ids/save",[]),t("department/owner/enabled/save",!1),s("getProjectByQueue");return}const i=await s("restoreDepartmentOwnerView");if(i.enabled&&i.ids.length>0){await s("getProjects",{__replace:!0,department_owner_ids:i.ids.join(",")});return}s("getProjectByQueue")},async restoreDepartmentOwnerView({state:e,dispatch:s,commit:t}){if(e.departmentOwnerViewRestored)return{enabled:e.departmentOwnerProjectViewEnabled,ids:e.cacheDepartmentOwnerIds||[]};if(e.systemConfig.department_owner_project_view!=="open")return t("department/owner/ids/save",[]),t("department/owner/enabled/save",!1),{enabled:!1,ids:[]};e.departmentOwnerViewRestored=!0;const i=(e.userInfo.managed_departments||[]).map(o=>parseInt(o.id)).filter(o=>o>0);let n=await s("normalizeDepartmentOwnerIds",e.cacheDepartmentOwnerIds);n.length===0&&(n=[...new Set(i)]);const r=e.departmentOwnerProjectViewEnabled&&n.length>0;return t("department/owner/ids/save",n),t("department/owner/enabled/save",r),r&&(e.departmentOwnerProjectsRefreshing=!0),{enabled:r,ids:n}},async setDepartmentOwnerIds({state:e,dispatch:s,commit:t},i){const n=$A.isJson(i);let r=n?i.ids:i,o=n&&typeof i.projectViewEnabled=="boolean"?i.projectViewEnabled:e.departmentOwnerProjectViewEnabled;e.systemConfig.department_owner_project_view!=="open"&&(r=[],o=!1);let a=await s("normalizeDepartmentOwnerIds",r);e.systemConfig.department_owner_project_view==="open"&&a.length===0&&(a=(e.userInfo.managed_departments||[]).map(p=>parseInt(p.id)).filter(p=>p>0)),a=[...new Set(a)],o=o&&a.length>0;const l=(e.cacheDepartmentOwnerIds||[]).slice().sort().join(","),c=a.slice().sort().join(","),d=l!==c,h=e.departmentOwnerProjectViewEnabled!==o;if(!d&&!h)return;let u=null;(h||o&&d)&&(e.departmentOwnerProjectsRefreshing=!0,u=await s("refreshDepartmentOwnerProjects",{ownerIds:a,enabled:o})),t("department/owner/ids/save",a),t("department/owner/enabled/save",o),u!=null&&u.route&&$A.goForward(u.route)},async refreshDepartmentOwnerProjects({state:e,dispatch:s},t={}){const i=e.routeName==="manage-project"?e.projectId:0,n=typeof t.enabled=="boolean"?t.enabled:e.departmentOwnerProjectViewEnabled;let r=t.ownerIds||e.cacheDepartmentOwnerIds;r=(r||[]).map(a=>parseInt(a)).filter(a=>a>0);const o=n?r.join(","):"";e.departmentOwnerProjectsRefreshing=!0,e.callAt=e.callAt.filter(a=>{const l=String(a.key);return!l.startsWith("projects::")&&!l.startsWith("tasks::")});try{if(await s("getProjects",{__replace:!0,department_owner_ids:o}),i>0){if(!e.cacheProjects.find(({id:l})=>l==i)){const l=$A.cloneJSON(e.cacheProjects).sort((c,d)=>c.top_at||d.top_at?$A.sortDay(d.top_at,c.top_at):d.id-c.id).find(({id:c})=>c);return{route:l?{name:"manage-project",params:{projectId:l.id}}:{name:"manage-dashboard"}}}await s("getProjectOne",{project_id:i,department_owner_ids:o}).catch(()=>{}),await s("getTaskForProject",{project_id:i,department_owner_ids:o}).catch(()=>{})}}finally{e.departmentOwnerProjectsRefreshing=!1}},saveProject({commit:e,state:s,dispatch:t},i){if($A.syncDispatch("saveProject",i),$A.isArray(i))i.forEach(n=>{t("saveProject",n)});else if($A.isJson(i)){typeof i.project_column!="undefined"&&(t("saveColumn",i.project_column),delete i.project_column);const n=s.cacheProjects.findIndex(({id:r})=>r==i.id);n>-1?e("project/splice",{index:n,data:Object.assign({},s.cacheProjects[n],i)}):(typeof i.project_user=="undefined"&&(i.project_user=[]),e("project/push",i),s.projectTotal++),s.cacheDialogs.some(r=>{if(r.type=="group"&&r.group_type=="project"&&r.group_info&&r.group_info.id==i.id){i.name!==void 0&&(r.name=i.name);for(let o in r.group_info)!r.group_info.hasOwnProperty(o)||i[o]===void 0||(r.group_info[o]=i[o])}})}},forgetProject({commit:e,state:s,dispatch:t},i){$A.syncDispatch("forgetProject",i);const n=$A.isArray(i.id)?i.id:[i.id];if(n.some(r=>{const o=s.cacheProjects.findIndex(a=>a.id==r);o>-1&&(t("forgetTask",{id:s.cacheTasks.filter(a=>a.project_id==i.id).map(a=>a.id)}),t("forgetColumn",{id:s.cacheColumns.filter(a=>a.project_id==i.id).map(a=>a.id)}),e("project/splice",{index:o}),s.projectTotal=Math.max(0,s.projectTotal-1))}),n.includes(s.projectId)){const r=$A.cloneJSON(s.cacheProjects).sort((o,a)=>o.top_at||a.top_at?$A.sortDay(a.top_at,o.top_at):a.id-o.id).find(({id:o})=>o&&o!=i.id);r?$A.goForward({name:"manage-project",params:{projectId:r.id}}):$A.goForward({name:"manage-dashboard"})}},getProjects({state:e,dispatch:s},t){$A.isJson(t)||(t={});const i=t.__replace===!0;return delete t.__replace,e.systemConfig.department_owner_project_view!=="open"?delete t.department_owner_ids:t.department_owner_ids===void 0&&(e.departmentOwnerProjectViewEnabled&&(e.cacheDepartmentOwnerIds||[]).length>0?t.department_owner_ids=e.cacheDepartmentOwnerIds.join(","):delete t.department_owner_ids),i&&(e.callAt=e.callAt.filter(n=>!String(n.key).startsWith("projects::")),$A.IDBSet("callAt",e.callAt).catch(()=>{})),new Promise(function(n,r){if(e.userId===0){e.cacheProjects=[],r({msg:"Parameter error"});return}const o=kt("projects",t,e);setTimeout(()=>{e.loadProjects++},2e3),s("call",{url:"project/lists",data:o.get()}).then(({data:a})=>{i&&(e.cacheProjects=[]),s("saveProject",a.data),o.save(a).then(l=>s("forgetProject",{id:l})),e.projectTotal=a.total_all,n(a)}).catch(a=>{console.warn(a),r(a)}).finally(a=>{i&&(e.departmentOwnerProjectsRefreshing=!1),e.loadProjects--})})},getProjectByQueue({dispatch:e},s=null){if(window.__getProjectByQueueTimer&&clearTimeout(window.__getProjectByQueueTimer),typeof s=="number"){window.__getProjectByQueueTimer=setTimeout(t=>e("getProjectByQueue",null),s);return}e("getProjects").catch(()=>{})},getProjectOne({state:e,dispatch:s},t){return new Promise(function(i,n){const r=$A.isJson(t)?{...t}:{project_id:t},o=r.project_id;if($A.runNum(o)===0){n({msg:"Parameter error"});return}e.projectLoad++,s("call",{url:"project/one",data:r}).then(a=>{setTimeout(()=>{e.projectLoad--},10),s("saveProject",a.data),i(a)}).catch(a=>{console.warn(a),e.projectLoad--,n(a)})})},archivedProject({state:e,dispatch:s},t){return new Promise(function(i,n){if($A.runNum(t)===0){n({msg:"Parameter error"});return}s("call",{url:"project/archived",data:{project_id:t}}).then(r=>{s("forgetProject",{id:t}),i(r)}).catch(r=>{console.warn(r),s("getProjectOne",t).catch(()=>{}),n(r)})})},removeProject({state:e,dispatch:s},t){return new Promise(function(i,n){if($A.runNum(t)===0){n({msg:"Parameter error"});return}s("call",{url:"project/remove",data:{project_id:t}}).then(r=>{s("forgetProject",{id:t}),i(r)}).catch(r=>{console.warn(r),s("getProjectOne",t).catch(()=>{}),n(r)})})},exitProject({state:e,dispatch:s},t){return new Promise(function(i,n){if($A.runNum(t)===0){n({msg:"Parameter error"});return}s("call",{url:"project/exit",data:{project_id:t}}).then(r=>{s("forgetProject",{id:t}),i(r)}).catch(r=>{console.warn(r),s("getProjectOne",t).catch(()=>{}),n(r)})})},saveColumn({commit:e,state:s,dispatch:t},i){if($A.syncDispatch("saveColumn",i),$A.isArray(i))i.forEach(n=>{t("saveColumn",n)});else if($A.isJson(i)){const n=s.cacheColumns.findIndex(({id:r})=>r==i.id);n>-1?e("project/column/splice",{index:n,data:Object.assign({},s.cacheColumns[n],i)}):e("project/column/push",i)}},forgetColumn({commit:e,state:s,dispatch:t},i){$A.syncDispatch("forgetColumn",i);const n=$A.isArray(i.id)?i.id:[i.id],r=[];n.some(o=>{const a=s.cacheColumns.findIndex(l=>l.id==o);a>-1&&(t("forgetTask",{id:s.cacheTasks.filter(l=>l.column_id==i.id).map(l=>l.id)}),r.push(s.cacheColumns[a].project_id),e("project/column/splice",{index:a}))}),Array.from(new Set(r)).some(o=>t("getProjectOne",o).catch(()=>{}))},getColumns({commit:e,state:s,dispatch:t},i){return new Promise(function(n,r){if(s.userId===0){s.cacheColumns=[],r({msg:"Parameter error"});return}s.projectLoad++,t("call",{url:"project/column/lists",data:{project_id:i}}).then(({data:o})=>{s.projectLoad--;const a=o.data.map(({id:l})=>l);if(e("project/column/save",s.cacheColumns.filter(l=>l.project_id!=i||a.includes(l.id))),t("saveColumn",o.data),n(o.data),s.cacheColumns.filter(l=>l.project_id==i).length===1){const l=s.cacheProjectParameter.find(c=>c.project_id==i)||{};(typeof l.menuInit=="undefined"||l.menuInit===!1)&&t("toggleProjectParameter",{project_id:i,key:{menuInit:!0,menuType:"table"}})}}).catch(o=>{console.warn(o),s.projectLoad--,r(o)})})},removeColumn({state:e,dispatch:s},t){return new Promise(function(i,n){if($A.runNum(t)===0){n({msg:"Parameter error"});return}s("call",{url:"project/column/remove",data:{column_id:t}}).then(r=>{s("forgetColumn",{id:t}),i(r)}).catch(r=>{console.warn(r),n(r)})})},saveTask({commit:e,state:s,dispatch:t},i){if($A.syncDispatch("saveTask",i),$A.isArray(i))i.forEach(n=>{t("saveTask",n)});else if($A.isJson(i)){if(i._time=$A.dayjs().unix(),i.flow_item_name&&i.flow_item_name.indexOf("|")!==-1){const o=$A.convertWorkflow(i.flow_item_name);i.flow_item_status=o.status,i.flow_item_name=o.name,i.flow_item_color=o.color}typeof i.archived_at!="undefined"&&s.cacheTasks.filter(o=>o.parent_id==i.id).some(o=>{t("saveTask",Object.assign(o,{archived_at:i.archived_at,archived_userid:i.archived_userid}))});let n={};typeof i.update_marking!="undefined"&&(n=$A.isJson(i.update_marking)?i.update_marking:{},delete i.update_marking);const r=s.cacheTasks.findIndex(({id:o})=>o==i.id);r>-1?e("task/splice",{index:r,data:Object.assign({},s.cacheTasks[r],i)}):e("task/push",i),(n.is_update_maintask===!0||i.parent_id>0&&s.cacheTasks.findIndex(({id:o})=>o==i.parent_id)===-1)&&t("getTaskOne",i.parent_id).catch(()=>{}),n.is_update_project===!0&&t("getProjectOne",i.project_id).catch(()=>{}),n.is_update_content===!0&&t("getTaskContent",i.id),n.is_update_subtask===!0&&t("getTaskForParent",i.id).catch(()=>{}),s.cacheDialogs.some(o=>{if(o.name===void 0||o.dialog_delete===1)return!1;if(o.type=="group"&&o.group_type=="task"&&o.group_info&&o.group_info.id==i.id){i.name!==void 0&&(o.name=i.name);for(let a in o.group_info)!o.group_info.hasOwnProperty(a)||i[a]===void 0||(o.group_info[a]=i[a])}})}},forgetTask({commit:e,state:s,dispatch:t},i){$A.syncDispatch("forgetTask",i);const n=($A.isArray(i.id)?i.id:[i.id]).filter(a=>a!=s.taskArchiveView),r=[],o=[];n.some(a=>{const l=s.cacheTasks.findIndex(c=>c.id==a);l>-1&&(s.cacheTasks[l].parent_id&&r.push(s.cacheTasks[l].parent_id),o.push(s.cacheTasks[l].project_id),e("task/splice",{index:l})),s.cacheTasks.filter(c=>c.parent_id==a).some(c=>{let d=s.cacheTasks.findIndex(h=>h.id==c.id);d>-1&&(o.push(c.project_id),e("task/splice",{index:d}))})}),Array.from(new Set(r)).some(a=>t("getTaskOne",a).catch(()=>{})),Array.from(new Set(o)).some(a=>t("getProjectOne",a).catch(()=>{})),n.includes(s.taskId)&&(s.taskId=0)},todayAndOverdue({state:e,dispatch:s}){const t=$A.daytz(),i=t.format("YYYY-MM-DD");e.cacheTasks.some(n=>{if(!n.end_at)return!1;const r={},o=$A.dayjs(n.end_at);!n.today&&o.format("YYYY-MM-DD")==i&&(r.today=!0),!n.overdue&&o0&&s("saveTask",Object.assign(n,r))})},increaseTaskMsgNum({state:e,commit:s},t){$A.syncDispatch("increaseTaskMsgNum",t);const i=e.cacheTasks.findIndex(n=>n.dialog_id===t.id);if(i!==-1){const n=$A.cloneJSON(e.cacheTasks[i]);n.msg_num++,s("task/splice",{index:i,data:n})}},increaseMsgReplyNum({state:e,commit:s},t){$A.syncDispatch("increaseMsgReplyNum",t);const i=e.dialogMsgs.findIndex(n=>n.id==t.id);if(i!==-1){const n=$A.cloneJSON(e.dialogMsgs[i]);n.reply_num++,s("message/splice",{index:i,data:n})}},decrementMsgReplyNum({state:e,commit:s},t){$A.syncDispatch("decrementMsgReplyNum",t);const i=e.dialogMsgs.findIndex(n=>n.id==t.id);if(i!==-1){const n=$A.cloneJSON(e.dialogMsgs[i]);n.reply_num--,s("message/splice",{index:i,data:n})}},getTasks({state:e,dispatch:s},t){$A.isJson(t)||(t={}),t.department_owner_ids===void 0&&(e.departmentOwnerProjectViewEnabled&&(e.cacheDepartmentOwnerIds||[]).length>0?t.department_owner_ids=e.cacheDepartmentOwnerIds.join(","):delete t.department_owner_ids);const i=kt("tasks",t,e);return new Promise(function(n,r){if(e.userId===0){e.cacheTasks=[],r({msg:"Parameter error"});return}t.project_id&&e.projectLoad++,s("call",{url:"project/task/lists",data:i.get()}).then(({data:o})=>{t.project_id&&e.projectLoad--,s("saveTask",o.data),i.save(o).then(a=>s("forgetTask",{id:a})),o.next_page_url?(t.page=o.current_page+1,o.current_page%30===0?$A.modalConfirm({content:"\u6570\u636E\u5DF2\u8D85\u8FC7"+o.to+"\u6761\uFF0C\u662F\u5426\u7EE7\u7EED\u52A0\u8F7D\uFF1F",onOk:()=>{s("getTasks",t).then(n).catch(r)},onCancel:()=>{n()}}):s("getTasks",t).then(n).catch(r)):n()}).catch(o=>{console.warn(o),r(o),t.project_id&&e.projectLoad--})})},getTaskOne({state:e,dispatch:s},t){return new Promise(function(i,n){if(/^\d+$/.test(t)&&(t={task_id:t}),$A.runNum(t.task_id)===0){n({msg:"Parameter error"});return}if($A.isArray(e.taskOneLoad[t.task_id])){e.taskOneLoad[t.task_id].push({resolve:i,reject:n});return}e.taskOneLoad[t.task_id]=[],s("call",{url:"project/task/one",data:t}).then(r=>{s("saveTask",r.data),i(r),e.taskOneLoad[t.task_id].some(o=>{o.resolve(r)})}).catch(r=>{console.warn(r),n(r),e.taskOneLoad[t.task_id].some(o=>{o.reject(r)})}).finally(r=>{delete e.taskOneLoad[t.task_id]})})},getTaskSubData({state:e,dispatch:s},t){if(!t)return;const i=e.cacheTasks.find(({id:n})=>n==t);!i||s("call",{url:"project/task/subdata",data:{task_id:t}}).then(({data:n})=>{s("saveTask",Object.assign(i,n))}).catch(n=>{console.warn(n)})},getTaskForDashboard({state:e,dispatch:s},t){if(window.__getTaskForDashboard&&clearTimeout(window.__getTaskForDashboard),typeof t=="number"){t>-1&&(window.__getTaskForDashboard=setTimeout(i=>s("getTaskForDashboard",null),t));return}e.loadDashboardTasks!==!0&&(e.loadDashboardTasks=!0,s("getTasks",null).finally(i=>{e.loadDashboardTasks=!1}))},getTaskForProject({state:e,dispatch:s},t){return new Promise(function(i,n){const r=$A.isJson(t)?{...t}:{project_id:t};s("getTasks",r).then(i).catch(n)})},getTaskForParent({state:e,dispatch:s},t){return new Promise(function(i,n){s("getTasks",{parent_id:t}).then(i).catch(n)})},removeTask({state:e,dispatch:s},t){return new Promise(function(i,n){if($A.runNum(t.task_id)===0){n({msg:"Parameter error"});return}s("setLoad",{key:`task-${t.task_id}`,delay:300}),s("call",{url:"project/task/remove",data:t}).then(r=>{e.taskArchiveView=0,s("forgetTask",{id:t.task_id}),i(r)}).catch(r=>{console.warn(r),s("getTaskOne",t.task_id).catch(()=>{}),n(r)}).finally(r=>{s("cancelLoad",`task-${t.task_id}`)})})},archivedTask({state:e,dispatch:s},t){return new Promise(function(i,n){if(/^\d+$/.test(t)&&(t={task_id:t}),$A.runNum(t.task_id)===0){n({msg:"Parameter error"});return}s("setLoad",{key:`task-${t.task_id}`,delay:300}),s("call",{url:"project/task/archived",data:t}).then(r=>{s("saveTask",r.data),i(r)}).catch(r=>{console.warn(r),s("getTaskOne",t.task_id).catch(()=>{}),n(r)}).finally(r=>{s("cancelLoad",`task-${t.task_id}`)})})},taskConvertToMain({dispatch:e},s){return new Promise(function(t,i){if(/^\d+$/.test(s)&&(s={task_id:s}),$A.runNum(s.task_id)===0){i({msg:"Parameter error"});return}e("setLoad",{key:`task-${s.task_id}`,delay:300}),e("call",{url:"project/task/upgrade",data:s}).then(n=>{const{task:r,parent:o}=n.data||{};r&&e("saveTask",r),o&&e("saveTask",o),t(n)}).catch(n=>{console.warn(n),e("getTaskOne",s.task_id).catch(()=>{}),i(n)}).finally(n=>{e("cancelLoad",`task-${s.task_id}`)})})},getTaskContent({state:e,dispatch:s},t){$A.runNum(t)!==0&&(s("setLoad",{key:`task-${t}`,delay:1200}),s("call",{url:"project/task/content",data:{task_id:t}}).then(i=>{s("saveTaskContent",i.data)}).catch(i=>{console.warn(i)}).finally(i=>{s("cancelLoad",`task-${t}`)}))},saveTaskContent({commit:e,state:s,dispatch:t},i){if($A.syncDispatch("saveTaskContent",i),$A.isArray(i))i.forEach(n=>{t("saveTaskContent",n)});else if($A.isJson(i)){const n=s.taskContents.findIndex(({task_id:r})=>r==i.task_id);n>-1?e("task/content/splice",{index:n,data:Object.assign({},s.taskContents[n],i)}):e("task/content/push",i)}},getTaskFiles({state:e,dispatch:s},t){$A.runNum(t)!==0&&s("call",{url:"project/task/files",data:{task_id:t}}).then(i=>{i.data.forEach(n=>{const r=e.taskFiles.findIndex(({id:o})=>o==n.id);r>-1?e.taskFiles.splice(r,1,n):e.taskFiles.push(n)}),s("saveTask",{id:t,file_num:i.data.length})}).catch(i=>{console.warn(i)})},forgetTaskFile({state:e,dispatch:s},t){($A.isArray(t)?t:[t]).some(n=>{const r=e.taskFiles.findIndex(o=>o.id==n);r>-1&&e.taskFiles.splice(r,1)})},openTask({state:e,dispatch:s},t){let i=t;if($A.isJson(t)&&(t.parent_id>0?i=t.parent_id:i=t.id),$A.isSubElectron){i>0?$A.Electron.sendMessage("updateWindow",{name:`task-${i}`,path:`/single/task/${i}`}):$A.Electron.sendMessage("windowClose");return}e.taskId>0&&x.emit("handleMoveTop","taskModal"),e.taskArchiveView=i,e.taskId=i,i>0?s("getTaskOne",{task_id:i,archived:"all"}).then(()=>{s("getTaskContent",i),s("getTaskFiles",i),s("getTaskForParent",i).catch(()=>{}),s("saveTaskBrowse",i)}).catch(({msg:n})=>{$A.modalWarning({content:n,onOk:()=>{e.taskId=0}})}):e.taskOperation={}},taskAdd({state:e,dispatch:s},t){return new Promise(function(i,n){const r=$A.cloneJSON($A.newDateString(t));$A.isArray(r.column_id)&&(r.column_id=r.column_id.find(o=>o)),s("call",{url:"project/task/add",data:r,spinner:600,method:"post"}).then(o=>{o.data.is_visible===1&&s("addTaskSuccess",o.data),e.taskLatestId=o.data.id,i(o)}).catch(o=>{console.warn(o),n(o)})})},getTaskRelated({state:e,commit:s,dispatch:t},i){return i=parseInt(i,10),i?new Promise((n,r)=>{t("call",{url:"project/task/related",data:{task_id:i}}).then(({data:o})=>{const a=(o.list||[]).map(l=>({...l,mention:!!l.mention,mentioned_by:!!l.mentioned_by}));s("task/related/save",{taskId:i,list:a,updatedAt:Date.now()}),n(a)}).catch(r)}):Promise.resolve([])},deleteTaskRelated({commit:e,dispatch:s},{taskId:t,relatedTaskId:i}){return new Promise((n,r)=>{s("call",{url:"project/task/related/delete",data:{task_id:t,related_task_id:i}}).then(({msg:o})=>{e("task/related/clear",t),e("task/related/clear",i),n(o)}).catch(r)})},taskAddSub({dispatch:e},s){return new Promise(function(t,i){e("call",{url:"project/task/addsub",data:s,spinner:600}).then(n=>{e("addTaskSuccess",n.data),t(n)}).catch(n=>{console.warn(n),i(n)})})},addTaskSuccess({dispatch:e},s){typeof s.new_column!="undefined"&&(e("saveColumn",s.new_column),delete s.new_column),e("saveTask",s),e("getTaskSubData",s.parent_id),e("getProjectOne",s.project_id).catch(()=>{})},taskUpdate({state:e,dispatch:s},t){return new Promise(function(i,n){s("taskBeforeUpdate",t).then(({post:r})=>{s("setLoad",{key:`task-${r.task_id}`,delay:300}),s("call",{url:"project/task/update",data:r,method:"post"}).then(o=>{s("saveTask",o.data),s("getTaskSubData",o.data.parent_id),i(o)}).catch(o=>{console.warn(o),s("getTaskOne",r.task_id).catch(()=>{}),n(o)}).finally(o=>{s("cancelLoad",`task-${r.task_id}`)})}).catch(n)})},taskBeforeUpdate({state:e,dispatch:s},t){return new Promise(function(i,n){let r=$A.cloneJSON($A.newDateString(t)),o="\u6E29\u99A8\u63D0\u793A",a=null;if(typeof r.times!="undefined"){t.times[0]===!1&&(a="\u4F60\u786E\u5B9A\u8981\u53D6\u6D88\u4EFB\u52A1\u65F6\u95F4\u5417\uFF1F");const l=e.cacheTasks.find(({id:c})=>c==r.task_id);o=l.parent_id>0?"\u66F4\u65B0\u5B50\u4EFB\u52A1":"\u66F4\u65B0\u4E3B\u4EFB\u52A1",l&&(l.parent_id>0?r.times[0]&&e.cacheTasks.some(c=>{if(c.id!=l.parent_id)return!1;if(!c.end_at)return a="\u4E3B\u4EFB\u52A1\u6CA1\u6709\u8BBE\u7F6E\u65F6\u95F4\uFF0C\u8BBE\u7F6E\u5B50\u4EFB\u52A1\u5C06\u540C\u6B65\u8BBE\u7F6E\u4E3B\u4EFB\u52A1",!0;let d=$A.dayjs(r.times[0]).unix(),h=$A.dayjs(r.times[1]).unix(),u=$A.dayjs(c.start_at).unix(),p=$A.dayjs(c.end_at).unix();if(dp)return a="\u65B0\u8BBE\u7F6E\u7684\u5B50\u4EFB\u52A1\u7ED3\u675F\u65F6\u95F4\u5728\u4E3B\u4EFB\u52A1\u65F6\u95F4\u4E4B\u5916\uFF0C\u4FEE\u6539\u540E\u5C06\u540C\u6B65\u4FEE\u6539\u4E3B\u4EFB\u52A1",!0}):e.cacheTasks.some(c=>{if(c.parent_id!=l.id||!c.end_at)return!1;let d=$A.dayjs(r.times[0]).unix(),h=$A.dayjs(r.times[1]).unix(),u=$A.dayjs(l.start_at).unix(),p=$A.dayjs(l.end_at).unix(),g=$A.dayjs(c.start_at).unix(),_=$A.dayjs(c.end_at).unix();if(u==g&&p==_)return!1;if(!r.times[0])return a=`\u5B50\u4EFB\u52A1\uFF08${c.name}\uFF09\u5DF2\u8BBE\u7F6E\u65F6\u95F4\uFF0C\u6E05\u9664\u4E3B\u4EFB\u52A1\u65F6\u95F4\u540E\u5C06\u540C\u6B65\u6E05\u9664\u5B50\u4EFB\u52A1\u7684\u65F6\u95F4`,!0;if(d>g)return a=`\u65B0\u8BBE\u7F6E\u7684\u5F00\u59CB\u65F6\u95F4\u5728\u5B50\u4EFB\u52A1\uFF08${c.name}\uFF09\u65F6\u95F4\u4E4B\u5185\uFF0C\u4FEE\u6539\u540E\u5C06\u540C\u6B65\u4FEE\u6539\u5B50\u4EFB\u52A1`,!0;if(h<_)return a=`\u65B0\u8BBE\u7F6E\u7684\u7ED3\u675F\u65F6\u95F4\u5728\u5B50\u4EFB\u52A1\uFF08${c.name}\uFF09\u65F6\u95F4\u4E4B\u5185\uFF0C\u4FEE\u6539\u540E\u5C06\u540C\u6B65\u4FEE\u6539\u5B50\u4EFB\u52A1`,!0}))}if(a===null){i({confirm:!1,post:r});return}$A.modalConfirm({title:o,content:a,onOk:()=>{i({confirm:!0,post:r})},onCancel:()=>{n({msg:!1})}})})},getTaskFlow({state:e,dispatch:s},{task_id:t,project_id:i}){return new Promise(function(n,r){s("call",{url:"project/task/flow",data:{task_id:t,project_id:i||0}}).then(o=>{let a=e.cacheTasks.find(({id:d})=>d==t),{data:l}=o;l.turns.some(d=>{const h=e.taskFlowItems.findIndex(({id:u})=>u==d.id);h>-1?e.taskFlowItems.splice(h,1,d):e.taskFlowItems.push(d),a&&a.flow_item_id==d.id&&a.flow_item_name!=d.name&&e.cacheTasks.filter(({flow_item_id:u})=>u==d.id).some(u=>{s("saveTask",{id:u.id,flow_item_name:`${d.status}|${d.name}|${d.color}`})})}),delete l.turns;const c=e.taskFlows.findIndex(({task_id:d})=>d==l.task_id);c>-1?e.taskFlows.splice(c,1,l):e.taskFlows.push(l),n(o)}).catch(o=>{console.warn(o),r(o)})})},getTaskPriority({state:e,dispatch:s},t){window.__getTaskPriority&&clearTimeout(window.__getTaskPriority),window.__getTaskPriority=setTimeout(()=>{s("call",{url:"system/priority"}).then(i=>{e.taskPriority=i.data}).catch(i=>{console.warn(i)})},typeof t=="number"?t:1e3)},getColumnTemplate({state:e,dispatch:s}){return new Promise(function(t,i){s("call",{url:"system/column/template"}).then(n=>{e.columnTemplate=n.data,t(n)}).catch(n=>{console.warn(n),i(n)})})},saveTaskCompleteTemp({state:e},s){/^\d+$/.test(s)&&!e.taskCompleteTemps.includes(s)&&e.taskCompleteTemps.push(s)},forgetTaskCompleteTemp({state:e},s){s===!0?e.taskCompleteTemps=[]:/^\d+$/.test(s)&&(e.taskCompleteTemps=e.taskCompleteTemps.filter(t=>t!=s))},saveTaskBrowse({dispatch:e},s){e("call",{url:"users/task/browse_save",data:{task_id:s}}).catch(t=>{console.warn("\u4FDD\u5B58\u4EFB\u52A1\u6D4F\u89C8\u5386\u53F2\u5931\u8D25:",t)})},getTaskBrowseHistory({dispatch:e},s=20){return e("call",{url:"users/task/browse",data:{limit:s},method:"get"})},getRecentBrowseHistory({dispatch:e},s={}){return e("call",{url:"users/recent/browse",data:s,method:"get"})},removeRecentBrowseRecord({dispatch:e},s){return e("call",{url:"users/recent/delete",data:{id:s},method:"post"})},taskDefaultTime({state:e,dispatch:s},t){return new Promise(async i=>{$A.isArray(t)&&t.length===2&&/\s+(00:00|23:59)$/.test(t[0])&&/\s+(00:00|23:59)$/.test(t[1])&&(t[0]=await s("taskDefaultStartTime",t[0]),t[1]=await s("taskDefaultEndTime",t[1])),i(t)})},taskDefaultStartTime({state:e},s){return new Promise(t=>{/(\s|^)([0-2]\d):([0-5]\d)(:\d{1,2})*$/.test(s)&&(s=s.replace(/(\s|^)([0-2]\d):([0-5]\d)(:\d{1,2})*$/,"$1"+e.systemConfig.task_default_time[0])),t(s)})},taskDefaultEndTime({state:e},s){return new Promise(t=>{/(\s|^)([0-2]\d):([0-5]\d)(:\d{1,2})*$/.test(s)&&(s=s.replace(/(\s|^)([0-2]\d):([0-5]\d)(:\d{1,2})*$/,"$1"+e.systemConfig.task_default_time[1])),t(s)})},async updateTaskTemplates({state:e,dispatch:s},t){const i=(e.cacheProjects||[]).find(({id:r})=>r==t);if(i&&i.task_template_share==="close"){const{data:r}=await s("call",{url:"project/task/template_list",data:{project_id:t||0}});e.taskTemplates=Array.isArray(r)?r:[];return}const{data:n}=await s("call",{url:"project/task/template_visible",data:{current_project_id:t||0}});e.taskTemplates=Array.isArray(n)?n:[]},checkFavoriteStatus({dispatch:e},{type:s,id:t}){return e("call",{url:"users/favorite/check",data:{type:s,id:t},method:"get"})},toggleFavorite({dispatch:e},{type:s,id:t}){return new Promise((i,n)=>{e("call",{url:"users/favorite/toggle",data:{type:s,id:t},method:"post"}).then(r=>{i(r);const{data:o,msg:a}=r;if(!o.favorited){$A.messageSuccess(a);return}$A.Message.success({duration:5,render:l=>l("span",[l("span",$A.L(a)),l("a",{style:{marginLeft:"8px"},on:{click:()=>{const c=o&&typeof o.remark=="string"?o.remark:"";$A.modalInput({title:$A.L("\u4FEE\u6539\u5907\u6CE8"),placeholder:$A.L("\u8BF7\u8F93\u5165\u4FEE\u6539\u5907\u6CE8"),okText:$A.L("\u4FDD\u5B58"),value:c,onOk:d=>{const h=typeof d=="string"?d.trim():"";return h?new Promise((u,p)=>{e("call",{url:"users/favorite/remark",data:{type:s,id:t,remark:h},method:"post"}).then(({msg:g})=>{$A.messageSuccess(g||$A.L("\u64CD\u4F5C\u6210\u529F")),u()}).catch(({msg:g})=>{p(g||$A.L("\u64CD\u4F5C\u5931\u8D25"))})}):$A.L("\u8BF7\u8F93\u5165\u4FEE\u6539\u5907\u6CE8")}})}}},$A.L("\u4FEE\u6539\u5907\u6CE8"))])})}).catch(({msg:r})=>{$A.modalError(r||this.$L("\u64CD\u4F5C\u5931\u8D25")),n()})})},checkFavoritesStatus({dispatch:e},{type:s,items:t}){if(!Array.isArray(t)||t.length===0)return Promise.resolve([]);const i=t.map(n=>e("checkFavoriteStatus",{type:s,id:n.id}).then(({data:r})=>({id:n.id,favorited:r.favorited||!1})).catch(()=>({id:n.id,favorited:!1})));return Promise.all(i)},saveDialog({commit:e,state:s,dispatch:t},i){var n;if($A.syncDispatch("saveDialog",i),$A.isArray(i))i.forEach(r=>{t("saveDialog",r)});else if($A.isJson(i)){i.id=parseInt(i.id);const r=s.cacheDialogs.findIndex(({id:a})=>a==i.id);let o=!1;if(typeof i.last_force!="undefined"&&(o=!0,delete i.last_force),r>-1){const a=s.cacheDialogs[r],l=i.user_ms,c=a.user_ms||0;ld.id==i.unread_one))!=null&&n.read_at&&delete i.unread_one,i.mention_ids&&(i.mention_ids=i.mention_ids.filter(d=>{var h;return!((h=s.dialogMsgs.find(u=>u.id==d))!=null&&h.read_at)})),!o&&i.last_at&&a.last_at&&$A.dayjs(i.last_at)<$A.dayjs(a.last_at)&&(delete i.last_at,delete i.last_msg),e("dialog/splice",{index:r,data:Object.assign({},a,i)})}else e("dialog/push",i)}},updateDialogLastMsg({state:e,dispatch:s},t){if($A.syncDispatch("updateDialogLastMsg",t),$A.isArray(t))t.forEach(i=>{s("updateDialogLastMsg",i)});else if($A.isJson(t))if(e.cacheDialogs.findIndex(({id:n})=>n==t.dialog_id)>-1){const n={id:t.dialog_id,last_msg:t,last_at:t.created_at||$A.daytz().format("YYYY-MM-DD HH:mm:ss")};t.mtype=="tag"&&(n.has_tag=!0),t.mtype=="todo"&&(n.has_todo=!0),t.mtype=="image"&&(n.has_image=!0),t.mtype=="file"&&(n.has_file=!0),t.link&&(n.has_link=!0),s("saveDialog",n)}else s("getDialogOne",t.dialog_id).catch(()=>{})},getDialogAuto({state:e,dispatch:s}){return new Promise(function(t,i){if(e.loadDialogAuto){i({msg:"Loading"});return}setTimeout(n=>{e.loadDialogs++},2e3),e.loadDialogAuto=!0,s("getDialogs").then(t).catch(i).finally(n=>{e.loadDialogs--,e.loadDialogAuto=!1})})},getDialogs({state:e,dispatch:s},t){return new Promise(function(i,n){if(e.userId===0){e.cacheDialogs=[],n({msg:"Parameter error"});return}$A.isJson(t)||(t={}),typeof t.page=="undefined"&&(t.page=1),typeof t.pagesize=="undefined"&&(t.pagesize=20);const r=kt("dialogs",t,e);s("call",{url:"dialog/lists",data:r.get()}).then(({data:o})=>{s("saveDialog",o.data),r.save(o).then(a=>s("forgetDialog",{id:a})),o.current_page===1&&s("getDialogLatestMsgs",o.data.map(({id:a})=>a)),o.next_page_url&&o.current_page<5?(t.page++,s("getDialogs",t).then(i).catch(n)):(i(),s("getDialogBeyonds"))}).catch(o=>{console.warn(o),n(o)})})},async getDialogBeyonds({state:e,dispatch:s}){const t=await $A.IDBString("dialogBeyond"),i=$A.daytz().format("YYYY-MM-DD HH");if(t==i)return;await $A.IDBSet("dialogBeyond",i);const n=a=>e.cacheDialogs.filter(a).sort((l,c)=>$A.sortDay(l.last_at,c.last_at)).find(({id:l})=>l>0),r=n(({unread:a,last_at:l})=>a>0&&l),o=n(({todo_num:a,last_at:l})=>a>0&&l);s("call",{url:"dialog/beyond",data:{unread_at:r?r.last_at:$A.dayjs().unix(),todo_at:o?o.last_at:$A.dayjs().unix()}}).then(({data:a})=>{s("saveDialog",a)})},getDialogOne({state:e,dispatch:s},t){return new Promise(function(i,n){if($A.runNum(t)===0){n({msg:"Parameter error"});return}s("call",{url:"dialog/one",data:{dialog_id:t}}).then(r=>{s("saveDialog",r.data),i(r)}).catch(r=>{console.warn(r),n(r)})})},getDialogTodo({commit:e,state:s,dispatch:t},i){t("call",{url:"dialog/todo",data:{dialog_id:i}}).then(({data:n})=>{$A.arrayLength(n)>0?(i>0&&(t("saveDialog",{id:i,todo_num:$A.arrayLength(n)}),e("dialog/todo/save",s.dialogTodos.filter(r=>r.dialog_id!=i))),t("saveDialogTodo",n)):i>0&&t("saveDialog",{id:i,todo_num:0})}).catch(console.warn)},getDialogMsgTop({state:e,dispatch:s},t){s("call",{url:"dialog/msg/topinfo",data:{dialog_id:t}}).then(({data:i})=>{$A.isJson(i)&&s("saveDialogMsgTop",i)}).catch(console.warn)},openDialog({state:e,dispatch:s},t){return new Promise(async(i,n)=>{let r,o,a;if($A.isJson(t)&&(r=t.single,o=t.search_msg_id,a=t.dialog_msg_id,t=t.dialog_id),r=typeof r=="boolean"?r:$A.isSubElectron,o=/^\d+$/.test(o)?parseInt(o):0,a=/^\d+$/.test(a)?parseInt(a):0,t=/^\d+$/.test(t)?parseInt(t):0,t>0&&e.cacheDialogs.findIndex(l=>l.id==t)===-1){s("showSpinner",300);try{await s("getDialogOne",t)}catch(l){n(l);return}finally{s("hiddenSpinner")}}if($A.Electron&&r){s("openDialogNewWindow",t),i();return}e.dialogModalShow?x.emit("handleMoveTop","dialogModal"):e.dialogId===t&&(e.dialogId=0),requestAnimationFrame(l=>{e.dialogSearchMsgId=o,e.dialogMsgId=a,e.dialogId=t,i()})})},openDialogUserid({state:e,dispatch:s},t){return new Promise((i,n)=>{const r=e.cacheDialogs.find(o=>o.type!=="user"||!o.dialog_user?!1:o.dialog_user.userid===t);if(r)return s("openDialog",r.id).then(i).catch(n);s("call",{url:"dialog/open/user",data:{userid:t},spinner:600}).then(async({data:o})=>{s("saveDialog",o),s("openDialog",o.id).then(i).catch(n)}).catch(o=>{console.warn(o),n(o)})})},openDialogEvent({state:e,dispatch:s},t){return new Promise((i,n)=>{if(!t){n({msg:"Parameter error"});return}s("call",{url:"dialog/open/event",data:{dialog_id:t}}).catch(r=>{console.warn(r),n(r)})})},openDialogNewWindow({state:e,dispatch:s},t){if($A.runNum(t)<=0)return;const i=e.cacheDialogs.find(({id:n})=>n===t)||{};s("openWindow",{name:`dialog-${t}`,path:`/single/dialog/${t}`,mode:"window",title:i.name,width:Math.min(window.screen.availWidth,1024),height:Math.min(window.screen.availHeight,768)})},forgetDialog({commit:e,state:s,dispatch:t},i){$A.syncDispatch("forgetDialog",i);const n=$A.isArray(i.id)?i.id:[i.id];n.some(r=>{$A.isJson(r)&&(r=r.id);const o=s.cacheDialogs.findIndex(a=>a.id==r);o>-1&&(t("forgetDialogMsg",{id:s.dialogMsgs.filter(a=>a.dialog_id==i.id).map(a=>a.id)}),e("dialog/splice",{index:o}))}),n.includes(s.dialogId)&&(s.dialogId=0)},saveInDialog({commit:e,state:s,dispatch:t},i){$A.syncDispatch("saveInDialog",i);const n=s.dialogIns.findIndex(a=>a.uid==i.uid);n>-1?e("dialog/in/splice",{index:n,data:Object.assign({},s.dialogIns[n],i)}):e("dialog/in/push",i);const r=5e3,o=500;if(e("dialog/history/save",s.dialogHistory.filter(a=>a!=i.dialog_id)),e("dialog/history/push",i.dialog_id),s.dialogMsgs.length>r&&s.dialogHistory.length>o){const a=s.dialogHistory.slice().reverse(),l=[],c=[];a.forEach(d=>{l.lengthh.dialog_id==d)>-1?l.push(d):c.push(d)}),c.length>0&&e("message/save",s.dialogMsgs.filter(d=>!c.includes(d.dialog_id))),e("dialog/history/save",l)}},forgetInDialog({state:e,commit:s},t){$A.syncDispatch("forgetInDialog",t);const i=e.dialogIns.findIndex(n=>n.uid==t.uid);i>-1&&s("dialog/in/splice",{index:i})},closeDialog({state:e,commit:s},t){if($A.syncDispatch("closeDialog",t),!/^\d+$/.test(t.id))return;s("draft/tag",t.id);const i=e.dialogMsgs.filter(n=>n.dialog_id==t.id);if(i.length>e.dialogMsgKeep){const n=i.sort((r,o)=>o.id-r.id).splice(e.dialogMsgKeep).map(r=>r.id);s("message/save",e.dialogMsgs.filter(r=>!n.includes(r.id)))}},clearDialogMsgs({state:e,commit:s},t){$A.syncDispatch("clearDialogMsgs",t),/^\d+$/.test(t.id)&&s("message/save",e.dialogMsgs.filter(i=>i.dialog_id!=t.id))},saveDialogTodo({commit:e,state:s,dispatch:t},i){if($A.syncDispatch("saveDialogTodo",i),$A.isArray(i))i.forEach(n=>{t("saveDialogTodo",n)});else if($A.isJson(i)){const n=s.dialogTodos.findIndex(r=>r.id==i.id);n>-1?e("dialog/todo/splice",{index:n,data:Object.assign({},s.dialogTodos[n],i)}):e("dialog/todo/push",i)}},forgetDialogTodoForMsgId({state:e,commit:s},t){$A.syncDispatch("forgetDialogTodoForMsgId",t);const i=e.dialogTodos.findIndex(n=>n.msg_id==t.id);i>-1&&s("dialog/todo/splice",{index:i})},saveDialogMsgTop({commit:e,state:s,dispatch:t},i){if($A.syncDispatch("saveDialogMsgTop",i),$A.isArray(i))i.forEach(n=>{t("saveDialogMsgTop",n)});else if($A.isJson(i)){e("dialog/msg/top/save",s.dialogMsgTops.filter(r=>r.dialog_id!=i.dialog_id));const n=s.dialogMsgTops.findIndex(r=>r.id==i.id);n>-1?e("dialog/msg/top/splice",{index:n,data:Object.assign({},s.dialogMsgTops[n],i)}):e("dialog/msg/top/push",i)}},forgetDialogMsgTopForMsgId({state:e,commit:s},t){$A.syncDispatch("forgetDialogMsgTopForMsgId",t);const i=e.dialogMsgTops.findIndex(n=>n.msg_id==t.id);i>-1&&s("dialog/msg/top/splice",{index:i})},saveDialogDraft({commit:e},{id:s,content:t,immediate:i=!1,...n}){if($A.isSubElectron){he.subTemp={id:s,content:t,immediate:!0};return}$A.syncDispatch("saveDialogDraft",{...n,id:s,content:t,immediate:i}),he.timer[s]&&(clearTimeout(he.timer[s]),delete he.timer[s]),he.timer[s]=setTimeout(()=>{e("draft/set",{id:s,content:t}),delete he.timer[s]},i||!t?0:600)},saveDialogQuote({commit:e},s){e("quote/set",s)},removeDialogQuote({commit:e},s){e("quote/remove",s)},saveDialogWithdraw({commit:e},s){s=Object.assign({time:new Date().getTime()},s),$A.syncDispatch("saveDialogWithdraw",s),e("withdraw/set",s),De.schedule(e,s)},forgetDialogWithdraw({commit:e},s){$A.syncDispatch("forgetDialogWithdraw",s),De.timer[s.id]&&(clearTimeout(De.timer[s.id]),delete De.timer[s.id]),e("withdraw/remove",s.id)},saveDialogMsg({commit:e,state:s,dispatch:t},i){if($A.syncDispatch("saveDialogMsg",i),$A.isArray(i)){i.forEach(o=>{t("saveDialogMsg",o)});return}i.type=="notice"&&(i.estimateSize=42);const n=s.dialogMsgs.findIndex(({id:o})=>o==i.id);if(n>-1){const o=s.dialogMsgs[n];o.read_at&&delete i.read_at,i=Object.assign({},o,i),e("message/splice",{index:n,data:i})}else e("message/push",i);const r=s.cacheDialogs.find(({id:o})=>o==i.dialog_id);if(r){let o=!1;!i.read_at&&i.userid!=s.userId&&!s.dialogIns.find(({dialog_id:a})=>a==r.id)&&(r.unread_one?r.unread_one=Math.min(r.unread_one,i.id):r.unread_one=i.id,o=!0),r.last_msg&&r.last_msg.id==i.id&&(r.last_msg=Object.assign({},r.last_msg,i),o=!0),o&&t("saveDialog",r)}},forgetDialogMsg({commit:e,state:s,dispatch:t},i){$A.syncDispatch("forgetDialogMsg",i),($A.isArray(i.id)?i.id:[i.id]).some(r=>{const o=s.dialogMsgs.findIndex(a=>a.id==r);if(o>-1){const a=s.dialogMsgs[o];t("decrementMsgReplyNum",{id:a.reply_id}),t("audioStop",$A.getObject(a,"msg.path")),e("message/splice",{index:o})}}),t("forgetDialogTodoForMsgId",i),t("forgetDialogMsgTopForMsgId",i)},getDialogMsgs({commit:e,state:s,dispatch:t,getters:i},n){return new Promise((r,o)=>{let a=u=>{},l=u=>{},c=!1,d=!1;typeof n.save_before!="undefined"&&(a=typeof n.save_before=="function"?n.save_before:u=>{},delete n.save_before),typeof n.save_after!="undefined"&&(l=typeof n.save_after=="function"?n.save_after:u=>{},delete n.save_after),typeof n.clear_before!="undefined"&&(c=typeof n.clear_before=="boolean"?n.clear_before:!1,delete n.clear_before),typeof n.spinner!="undefined"&&(d=n.spinner,delete n.spinner);const h=`msg::${n.dialog_id}-${n.msg_id}-${n.msg_type||""}`;if(i.isLoad(h)){o({msg:"Loading"});return}t("setLoad",h),c&&e("message/save",s.dialogMsgs.filter(({dialog_id:u})=>u!==n.dialog_id)),n.pagesize=25,t("call",{url:"dialog/msg/list",data:n,spinner:d,complete:u=>t("cancelLoad",h)}).then(u=>{a();const p=u.data;if($A.isJson(p.dialog)){const g=p.list.map(({id:_})=>_);e("message/save",s.dialogMsgs.filter(_=>_.dialog_id!=n.dialog_id||g.includes(_.id)||$A.dayjs(_.created_at).unix()>=p.time)),t("saveDialog",p.dialog)}$A.isArray(p.todo)&&(e("dialog/todo/save",s.dialogTodos.filter(g=>g.dialog_id!=n.dialog_id)),t("saveDialogTodo",p.todo)),$A.isJson(p.top)&&t("saveDialogMsgTop",p.top),t("saveDialogMsg",p.list),r(u),l()}).catch(u=>{console.warn(u),o(u)}).finally(u=>{if(n.prev_id){const p=s.dialogMsgs.find(({prev_id:g})=>g==n.prev_id);p&&(p.prev_id=0)}if(n.next_id){const p=s.dialogMsgs.find(({next_id:g})=>g==n.next_id);p&&(p.next_id=0)}})})},getDialogLatestMsgs({state:e,dispatch:s},t=[]){return new Promise(function(i,n){if(e.userId===0){n({msg:"Parameter error"});return}if(!$A.isArray(t)){n({msg:"Parameter is not array"});return}if(t.length===0){i();return}const r=t.slice(5),o=t.slice(0,5);s("call",{method:"post",url:"dialog/msg/latest",data:{dialogs:o.map(a=>{var l;return{id:a,latest_id:((l=e.dialogMsgs.sort((c,d)=>d.id-c.id).find(({dialog_id:c})=>c==a))==null?void 0:l.id)||0}}),take:e.dialogMsgKeep}}).then(({data:a})=>{s("saveDialogMsg",a.data),r.length>0?s("getDialogLatestMsgs",r).then(i).catch(n):i()}).catch(a=>{n(a)})})},dialogMsgRead({state:e,dispatch:s},t){if($A.isJson(t)){if(t.userid==e.userId||t.read_at)return;t.read_at=$A.daytz().format("YYYY-MM-DD HH:mm:ss"),e.readWaitData[t.id]=e.readWaitData[t.id]||0;const i=e.cacheDialogs.find(({id:n})=>n==t.dialog_id);if(i){let n=!1;if(t.id==i.unread_one&&(i.unread_one=0,n=!0),$A.isArray(i.mention_ids)){const r=i.mention_ids.findIndex(o=>o==t.id);r>-1&&(i.mention_ids.splice(r,1),n=!0)}n&&(s("saveDialog",i),e.readWaitData[t.id]=t.dialog_id)}}clearTimeout(e.readTimeout),e.readTimeout=setTimeout(i=>{if(e.readTimeout=null,e.userId===0){t&&(t.read_at=null);return}const n=Object.entries(e.readWaitData);if(n.length===0){t&&(t.read_at=null);return}const r=Object.fromEntries(n.slice(0,100));e.readWaitData=Object.fromEntries(n.slice(100)),s("call",{method:"post",url:"dialog/msg/read",data:{id:r}}).then(({data:o})=>{Object.entries(r).filter(([a,l])=>/^\d+$/.test(l)).forEach(([a,l])=>{e.dialogMsgs.filter(c=>c.dialog_id==l&&c.id>=a).forEach(c=>{c.read_at=$A.daytz().format("YYYY-MM-DD HH:mm:ss")})}),s("saveDialog",o)}).catch(o=>{Object.keys(r).forEach(a=>{const l=e.dialogMsgs.find(c=>c.id==a);l&&(l.read_at=null)}),e.readWaitData=Object.assign(e.readWaitData,r)}).finally(o=>{e.readLoadNum++})},50)},dialogMsgDot({state:e,dispatch:s},t){!$A.isJson(t)||!t.dot||(t.dot=0,s("call",{url:"dialog/msg/dot",data:{id:t.id}}).then(({data:i})=>{s("saveDialog",i)}))},dialogMsgMark({state:e,dispatch:s},t){return new Promise((i,n)=>{s("call",{url:"dialog/msg/mark",data:t}).then(r=>{typeof t.after_msg_id!="undefined"&&e.dialogMsgs.some(o=>{o.dialog_id==t.dialog_id&&o.id>=t.after_msg_id&&(o.read_at=$A.daytz().format("YYYY-MM-DD HH:mm:ss"))}),s("saveDialog",r.data),i(r)}).catch(r=>{n(r)})})},streamMsgSubscribe({state:e,dispatch:s},t){if(/^https?:\/\//i.test(t)||(t=$A.mainUrl(t.substring(1))),e.dialogSseList.find(n=>n.streamUrl==t))return;const i=new vn(t);i.subscribe(["append","replace","done"],(n,r)=>{switch(n){case"append":case"replace":const o=$A.jsonParse(r.data);s("streamMsgData",{type:n,id:r.lastEventId,text:o.content});break;case"done":const a=e.dialogSseList.findIndex(l=>i===l.sse);a>-1&&e.dialogSseList.splice(a,1),i.unsunscribe();break}}),e.dialogSseList.push({sse:i,streamUrl:t,time:$A.dayjs().unix()}),e.dialogSseList.length>10&&e.dialogSseList.shift().sse.close()},streamMsgData({state:e},s){$A.syncDispatch("streamMsgData",s),x.emit("streamMsgData",s)},saveTranslation({state:e},s){if(!$A.isJson(s))return;const t=e.cacheTranslations.find(i=>i.key==s.key&&i.language==s.language);if(t)t.content=s.content;else{const i=ve[s.language]||s.language;e.cacheTranslations.push(Object.assign(s,{label:i}))}$A.IDBSave("cacheTranslations",e.cacheTranslations.slice(-200))},removeTranslation({state:e},s){e.cacheTranslations=e.cacheTranslations.filter(t=>t.key!=s),$A.IDBSave("cacheTranslations",e.cacheTranslations.slice(-200))},setTranslationLanguage({state:e},s){e.cacheTranslationLanguage=s,$A.IDBSave("cacheTranslationLanguage",s)},setLoad({state:e,dispatch:s},t){if($A.isJson(t)){setTimeout(n=>{s("setLoad",t.key)},t.delay||0);return}const i=e.loads.find(n=>n.key==t);i?i.num++:e.loads.push({key:t,num:1})},cancelLoad({state:e},s){const t=e.loads.find(i=>i.key==s);t?t.num--:e.loads.push({key:s,num:-1})},showSpinner({state:e},s){const t=$A.randomString(6);e.floatSpinnerTimer.push({id:t,timer:setTimeout(i=>{e.floatSpinnerTimer=e.floatSpinnerTimer.filter(n=>n.id!==t),e.floatSpinnerLoad++},typeof s=="number"?s:0)})},hiddenSpinner({state:e,dispatch:s},t){if(typeof t=="number"){setTimeout(n=>{s("hiddenSpinner")},t);return}const i=e.floatSpinnerTimer.shift();i?clearTimeout(i.timer):e.floatSpinnerLoad--},previewImage({state:e},s){if($A.isJson(s)||(s={index:0,list:[s]}),s.list=s.list.map(t=>($A.isJson(t)?t.src=$A.thumbRestore(t.src):t=$A.thumbRestore(t),t)),typeof s.index=="string"){const t=$A.thumbRestore(s.index);s.index=Math.max(0,s.list.findIndex(i=>$A.isJson(i)?i.src==t:i==t))}e.previewImageIndex=s.index,e.previewImageList=s.list},audioPlay({state:e,dispatch:s},t){const i=document.getElementById("__audio_play_element__");if(i&&(i.pause(),i.src="",i.parentNode.removeChild(i)),!t||t===e.audioPlaying){e.audioPlaying=null;return}const n=document.createElement("audio");n.id=e.audioPlayId="__audio_play_element__",n.controls=!1,n.loop=!1,n.volume=1,n.src=e.audioPlaying=t,n.onended=r=>{s("audioStop",n.src)},document.body.appendChild(n),n.play().then(r=>{})},audioStop({state:e},s){const t=document.getElementById("__audio_play_element__");!t||(t.src===s||s===!0)&&(t.pause(),t.src="",t.parentNode.removeChild(t),e.audioPlaying=null)},websocketConnection({state:e,dispatch:s,commit:t}){if(clearTimeout(e.wsTimeout),e.ws&&(e.ws.close(),e.ws=null),e.userId===0)return;typeof window.wsInfo=="undefined"&&(window.wsInfo={msgCount:0,repeatCount:0,lastTime:0,lastData:null});let i=$A.mainUrl("ws");i=i.replace("https://","wss://"),i=i.replace("http://","ws://"),i+=`?action=web&token=${e.userToken}&language=${M}&platform=${$A.Platform}`;const n=$A.openLog,r=$A.randomString(16);e.wsRandom=r,e.ws=new WebSocket(i),e.ws.onopen=async o=>{n&&console.log("[WS] Open",o,$A.daytz().format("YYYY-MM-DD HH:mm:ss")),e.wsOpenNum++,!(window.systemInfo.debug==="yes"||e.systemConfig.e2e_message!=="open")&&s("websocketSend",{type:"encrypt",data:{type:"pgp",key:(await s("pgpGetLocalKey")).publicKeyB64}})},e.ws.onclose=async o=>{n&&console.log("[WS] Close",o,$A.daytz().format("YYYY-MM-DD HH:mm:ss")),e.ws=null,clearTimeout(e.wsTimeout),e.wsTimeout=setTimeout(()=>{r===e.wsRandom&&s("websocketConnection")},3e3)},e.ws.onerror=async o=>{n&&console.log("[WS] Error",o,$A.daytz().format("YYYY-MM-DD HH:mm:ss")),e.ws=null,clearTimeout(e.wsTimeout),e.wsTimeout=setTimeout(()=>{r===e.wsRandom&&s("websocketConnection")},3e3)},e.ws.onmessage=async o=>{if($A.inArray(e.routeName,["preload","404"])){n&&console.log("[WS] Preload",o);return}if($A.dayjs().unix()-window.wsInfo.lastTime<3&&window.wsInfo.lastData===o.data){console.log("[WS] Repeat",o,window.wsInfo.repeatCount),window.wsInfo.repeatCount++;return}window.wsInfo.msgCount++,window.wsInfo.lastTime=$A.dayjs().unix(),window.wsInfo.lastData=o.data,n&&console.log("[WS] Message",o);let a=$A.jsonParse(o.data);a.type==="encrypt"&&a.encrypted&&(a=await s("pgpDecryptApi",a.encrypted));const l=$A.formatMsgBasic(a),{type:c,msgId:d}=l;switch(c){case"open":$A.setSessionStorage("userWsFd",l.data.fd);break;case"receipt":typeof e.wsCall[d]=="function"&&e.wsCall[d](l.body,!0),delete e.wsCall[d];break;case"line":x.emit("userActive",{type:"line",data:l.data});break;case"msgStream":if($A.isSubElectron)return;s("streamMsgSubscribe",l.stream_url);break;case"operation":x.emit("aiOperationRequest",l.data);break;default:if(d&&s("websocketSend",{type:"receipt",msgId:d}).catch(h=>{}),x.emit("websocketMsg",l),$A.isSubElectron)return;switch(c){case"dialog":(function(h){const{mode:u,silence:p,data:g}=h,{dialog_id:_}=g;switch(u){case"delete":if(s("forgetDialogMsg",g),e.cacheDialogs.find(({id:C})=>C==_)){const C={id:_,last_msg:g.last_msg,last_at:g.last_msg?g.last_msg.created_at:$A.daytz().format("YYYY-MM-DD HH:mm:ss"),last_force:!0};g.update_read?s("call",{url:"dialog/msg/unread",data:{dialog_id:_}}).then(({data:U})=>{s("saveDialog",Object.assign(C,U))}).catch(()=>{}):s("saveDialog",C)}break;case"add":case"chat":const y=u==="add";if(!e.dialogMsgs.find(({id:C})=>C==g.id)&&(s("increaseTaskMsgNum",{id:g.dialog_id}),s("increaseMsgReplyNum",{id:g.reply_id}),y)){if(g.userid!==e.userId){const C=e.cacheDialogs.find(({id:U})=>U==_);if(C){const U={id:_,unread:C.unread+1,mention:C.mention,user_at:g.user_at,user_ms:g.user_ms};g.mention&&U.mention++,s("saveDialog",U)}}x.emit("dialogMsgPush",{silence:p,data:g})}const w=(C,U)=>{if(U>5||e.dialogMsgs.find(({id:O})=>O==C.id)){s("saveDialogMsg",C),y&&s("updateDialogLastMsg",C);return}setTimeout(()=>w(C,U+1),50)};w(g,0);break;case"update":case"readed":const b=(C,U)=>{if(e.dialogMsgs.find(({id:O})=>O==C.id)){s("saveDialogMsg",C),typeof C.todo!="undefined"&&s("getDialogTodo",_);return}U<=5&&setTimeout(O=>{b(C,++U)},500)};b(g,0);break;case"groupAdd":case"groupJoin":case"groupRestore":s("getDialogOne",g.id).catch(()=>{});break;case"groupUpdate":e.cacheDialogs.find(({id:C})=>C==g.id)&&s("saveDialog",g);break;case"groupExit":case"groupDelete":s("forgetDialog",g);break;case"updateTopMsg":s("saveDialog",{id:g.dialog_id,top_msg_id:g.top_msg_id,top_userid:g.top_userid}),s("getDialogMsgTop",_);break}})(l);break;case"project":(function(h){const{action:u,data:p}=h;switch(u){case"add":case"update":case"recovery":s("saveProject",p);break;case"detail":s("getProjectOne",p.id).catch(()=>{}),s("getTaskForProject",p.id).catch(()=>{});break;case"delete":case"archived":s("forgetProject",p);break;case"sort":s("getTaskForProject",p.id).catch(()=>{});break}})(l);break;case"projectColumn":(function(h){const{action:u,data:p}=h;switch(u){case"add":case"update":case"recovery":s("saveColumn",p);break;case"delete":s("forgetColumn",p);break}})(l);break;case"projectTask":(function(h){const{action:u,data:p}=h;switch(u){case"add":case"restore":s("addTaskSuccess",p);break;case"update":case"archived":case"recovery":s("saveTask",p);break;case"dialog":s("saveTask",p),s("getDialogOne",p.dialog_id).catch(()=>{});break;case"upload":s("getTaskFiles",p.task_id);break;case"filedelete":s("forgetTaskFile",p.id);break;case"delete":s("forgetTask",p);break;case"relation":x.emit("taskRelationUpdate",p.id);break}})(l);break;case"file":(function(h){const{action:u,data:p}=h;switch(u){case"add":case"update":s("saveFile",p);break;case"delete":s("forgetFile",p);break;case"compress":s("packProgress",p);break}})(l);break;case"report":(function({action:h}){h=="unreadUpdate"&&s("getReportUnread",1e3)})(l);break;case"appBadge":t("appBadges/set",l.data||{});break}break}}},websocketSend({state:e},s){return new Promise((t,i)=>{var l;if(!$A.isJson(s)){i();return}const{type:n,data:r,callback:o}=s;let a;if(!e.ws){typeof o=="function"&&o(null,!1),i();return}typeof o=="function"&&(a=n+"_"+$A.randomString(3),e.wsCall[a]=o);try{(l=e.ws)==null||l.send(JSON.stringify({type:n,msgId:a,data:r})),t()}catch(c){typeof o=="function"&&o(null,!1),i(c)}})},websocketPath({state:e,dispatch:s},t){clearTimeout(e.wsPathTimeout),e.wsPathValue=t,e.wsPathTimeout=setTimeout(()=>{e.wsPathValue==t&&s("websocketSend",{type:"path",data:{path:t}}).catch(i=>{})},1e3)},websocketClose({state:e}){e.ws&&(e.ws.close(),e.ws=null)},pgpGenerate({state:e}){return new Promise(async s=>{const t=await cr({type:"ecc",curve:"curve25519",passphrase:e.clientId,userIDs:[{name:"doo",email:"admin@admin.com"}]});t.publicKeyB64=Fh(t.publicKey.replace(/\s*-----(BEGIN|END) PGP PUBLIC KEY BLOCK-----\s*/g,"")),s(t)})},pgpGetLocalKey({state:e,dispatch:s}){return new Promise(async t=>{if(e.localKeyPair.privateKey)return t(e.localKeyPair);for(;e.localKeyLock===!0;)await new Promise(i=>setTimeout(i,100));if(e.localKeyPair.privateKey)return t(e.localKeyPair);e.localKeyLock=!0,e.localKeyPair=await s("pgpGenerate"),e.localKeyLock=!1,t(e.localKeyPair)})},pgpEncrypt({state:e,dispatch:s},t){return new Promise(async i=>{$A.isJson(t)||(t={message:t});const n=t.message||t.text,r=t.publicKey||t.key||(await s("pgpGetLocalKey")).publicKey,o=await ur({armoredKey:r}),a=await dr({message:await hr({text:n}),encryptionKeys:o});i(a)})},pgpDecrypt({state:e,dispatch:s},t){return new Promise(async i=>{$A.isJson(t)||(t={encrypted:t});const n=t.encrypted||t.text,r=t.privateKey||t.key||(await s("pgpGetLocalKey")).privateKey,o=await pr({privateKey:await fr({armoredKey:r}),passphrase:t.passphrase||e.clientId}),{data:a}=await mr({message:await gr({armoredMessage:n}),decryptionKeys:o});i(a)})},pgpEncryptApi({state:e,dispatch:s},t){return new Promise(i=>{t=$A.jsonStringify(t),s("pgpEncrypt",{message:t,publicKey:e.apiKeyData.key}).then(n=>{i(n.replace(/\s*-----(BEGIN|END) PGP MESSAGE-----\s*/g,""))})})},pgpDecryptApi({state:e,dispatch:s},t){return new Promise(i=>{s("pgpDecrypt",{encrypted:`-----BEGIN PGP MESSAGE-----
+`)||this.inputHistoryIndex>=this.inputHistoryList.length?!0:(this.inputHistoryIndex{var c,d;const l=(d=(c=this.$refs.inputRef)==null?void 0:c.$el)==null?void 0:d.querySelector("textarea");if(l){const h=(this.inputValue||"").length;l.setSelectionRange(h,h)}}),!1);return!0},toggleQuestionExpand(e){if(e==null)return;const s=this.expandedQuestionIds.indexOf(e);s===-1?this.expandedQuestionIds.push(e):this.expandedQuestionIds.splice(s,1)},startEditQuestion(e){e<0||e>=this.responses.length||this.loadIng>0||(this.editingIndex=e,this.editingValue=this.responses[e].prompt||"",this.$nextTick(()=>{const s=this.$refs.editInputRef,t=Array.isArray(s)?s[0]:s;t&&typeof t.focus=="function"&&t.focus()}))},cancelEditQuestion(){this.editingIndex=-1,this.editingValue=""},onEditKeydown(e){e.key==="Escape"?(e.preventDefault(),this.cancelEditQuestion()):e.key==="Enter"&&!e.shiftKey&&!this.isComposing&&(e.preventDefault(),this.submitEditedQuestion())},async submitEditedQuestion(){if(this.editingIndex<0||this.loadIng>0)return;const e=(this.editingValue||"").trim();if(!e){$A.messageWarning("\u8BF7\u8F93\u5165\u95EE\u9898");return}this.responses.splice(this.editingIndex),this.editingIndex=-1,this.editingValue="",await this._doSendQuestion(e)},updateTopZIndex(){this.topZIndex=(window.modalTransferIndex||1e3)+1e3},startZIndexTimer(e){this.stopZIndexTimer(),this.updateTopZIndex(),this.zIndexTimer=setInterval(()=>{this.updateTopZIndex()},e)},stopZIndexTimer(){this.zIndexTimer&&(clearInterval(this.zIndexTimer),this.zIndexTimer=null)},triggerImageSelect(){this.$refs.imageInput&&this.$refs.imageInput.click()},async onImageSelect(e){const s=e.target.files;await this.handleImageFiles(s),e.target.value=""},async handleImageFiles(e){if(!e||e.length===0)return;const s=this.maxImages-this.pendingImages.length;if(s<=0){$A.messageWarning(`\u6700\u591A\u4E0A\u4F20 ${this.maxImages} \u5F20\u56FE\u7247`);return}const t=Array.from(e).slice(0,s);for(const i of t)if(!!i.type.startsWith("image/"))try{const n=await this.compressImageForAI(i);this.pendingImages.push({id:++this.imageIdSeed,dataUrl:n,file:i})}catch(n){console.warn("[AIAssistant] \u56FE\u7247\u538B\u7F29\u5931\u8D25:",n)}},onDragEnter(e){var s,t;(t=(s=e.dataTransfer)==null?void 0:s.types)!=null&&t.includes("Files")&&(this.dragCounter++,this.isDragging=!0)},onDragLeave(){this.dragCounter--,this.dragCounter<=0&&(this.dragCounter=0,this.isDragging=!1)},async onDrop(e){var t;this.dragCounter=0,this.isDragging=!1;const s=(t=e.dataTransfer)==null?void 0:t.files;if(s&&s.length>0){const i=Array.from(s).filter(n=>n.type.startsWith("image/"));await this.handleImageFiles(i)}},async onPaste(e){var i;const s=(i=e.clipboardData)==null?void 0:i.items;if(!s)return;const t=[];for(const n of s)if(n.type.startsWith("image/")){const r=n.getAsFile();r&&t.push(r)}t.length>0&&(e.preventDefault(),await this.handleImageFiles(t))},async compressImageForAI(e){const s=await this.fileToDataUrl(e);return this.resizeDataUrl(s,1568,!0)},fileToDataUrl(e){return new Promise((s,t)=>{const i=new FileReader;i.onload=()=>s(i.result),i.onerror=()=>t(new Error("\u6587\u4EF6\u8BFB\u53D6\u5931\u8D25")),i.readAsDataURL(e)})},removeImage(e){const s=this.pendingImages.findIndex(t=>t.id===e);s!==-1&&this.pendingImages.splice(s,1)},clearPendingImages(){this.pendingImages=[]},generateImageCacheId(){const e=Date.now(),s=Math.random().toString(36).substr(2,6);return`${e}_${s}`},saveImageToCache(e,s){this.imageCache[e]=s},resizeDataUrl(e,s,t=!1){return new Promise((i,n)=>{if(!e||typeof e!="string"){n(new Error("\u65E0\u6548\u7684\u56FE\u7247\u6570\u636E"));return}const r=new Image;r.onload=()=>{let{width:o,height:a}=r;const l=o>s||a>s;if(!l&&!t){i(e);return}if(l){const h=Math.min(s/o,s/a);o=Math.round(o*h),a=Math.round(a*h)}const c=document.createElement("canvas");c.width=o,c.height=a;const d=c.getContext("2d");d.fillStyle="#FFFFFF",d.fillRect(0,0,o,a),d.drawImage(r,0,0,o,a),i(c.toDataURL("image/jpeg",.8))},r.onerror=()=>n(new Error("\u56FE\u7247\u52A0\u8F7D\u5931\u8D25")),r.src=e})},async getImageFromCache(e){return this.imageCache[e]?this.imageCache[e]:this.serverImageMap[e]?this.serverImageMap[e]:null},deleteImageCache(e){delete this.imageCache[e],delete this.serverImageMap[e]},extractImageIdsFromSession(e){const s=[];if(!(e!=null&&e.responses))return s;for(const t of e.responses)if(t.role!=="system"&&t.prompt){const i=this.parsePromptContent(t.prompt);for(const n of i.images)s.push(n.imageId)}return s},clearSessionImageCache(e){const s=this.extractImageIdsFromSession(e);for(const t of s)this.deleteImageCache(t)},async processContentForStorage(e){var t;if(typeof e=="string")return e;if(!Array.isArray(e))return String(e);const s=[];for(const i of e)if(i.type==="text")s.push(i.text||"");else if(i.type==="image_url"&&((t=i.image_url)==null?void 0:t.url)){const n=this.generateImageCacheId();await this.saveImageToCache(n,i.image_url.url),s.push(`[IMG:${n}]`)}return s.join(" ")},parsePromptContent(e){const s={images:[],text:""};if(!e||typeof e!="string")return s.text=e||"",s;const t=/\[IMG:([^\]]+)\]/g,i=[];let n=0,r;for(;(r=t.exec(e))!==null;)s.images.push({imageId:r[1]}),r.index>n&&i.push(e.slice(n,r.index)),n=r.index+r[0].length;return n0&&e.tags.length===0?t("div",{staticClass:"tag-loading"},[t("Loading")],1):e.tags.length===0?t("div",{staticClass:"tag-empty"},[t("Icon",{attrs:{type:"ios-pricetags-outline",size:"32"}}),t("p",[e._v(e._s(e.$L("\u8FD8\u6CA1\u6709\u4E2A\u6027\u6807\u7B7E\uFF0C\u5FEB\u6765\u6DFB\u52A0\u5427~")))])],1):t("ul",{staticClass:"tag-list"},e._l(e.tags,function(i){return t("li",{key:i.id,staticClass:"tag-item",class:{"is-editing":e.editId===i.id}},[t("div",{staticClass:"tag-item-main"},[e.editId!==i.id?t("div",{staticClass:"tag-name"},[t("div",{staticClass:"tag-pill",class:{"is-recognized":i.recognized}},[e._v(e._s(i.name))])]):t("div",{staticClass:"tag-name edit"},[t("Input",{ref:"editInput",refInFor:!0,attrs:{size:"small",maxlength:20,disabled:e.isPending(i.id,"edit")},on:{"on-keydown":function(n){return e.onEditKeydown(n,i)}},model:{value:e.editName,callback:function(n){e.editName=n},expression:"editName"}})],1),t("div",{staticClass:"tag-actions"},[t("Button",{staticClass:"recognize-btn",attrs:{type:"text",size:"small",loading:e.isPending(i.id,"recognize")},on:{click:function(n){return e.toggleRecognize(i)}}},[t("Icon",{attrs:{type:"md-thumbs-up"}}),i.recognition_total>0?t("span",[e._v(e._s(i.recognition_total))]):e._e(),t("span",{staticClass:"recognize-text"},[e._v(e._s(e.$L("\u8BA4\u53EF")))])],1),e.editId===i.id?[t("Button",{attrs:{type:"primary",size:"small",loading:e.isPending(i.id,"edit")},on:{click:function(n){return e.confirmEdit(i)}}},[e._v(e._s(e.$L("\u4FDD\u5B58")))]),t("Button",{attrs:{type:"text",size:"small"},on:{click:e.cancelEdit}},[e._v(e._s(e.$L("\u53D6\u6D88")))])]:[i.can_edit?t("Button",{attrs:{type:"text",size:"small"},on:{click:function(n){return e.startEdit(i)}}},[e._v(e._s(e.$L("\u7F16\u8F91")))]):e._e(),i.can_delete?t("Button",{attrs:{type:"text",size:"small",loading:e.isPending(i.id,"delete")},on:{click:function(n){return e.confirmDelete(i)}}},[e._v(e._s(e.$L("\u5220\u9664")))]):e._e()]],2)]),i.created_by_name?t("div",{staticClass:"tag-meta-info"},[t("span",[e._v(e._s(e.$L("\u7531(*)\u521B\u5EFA",i.created_by_name)))])]):e._e()])}),0)]),e.total>0?t("div",{staticClass:"tag-modal-footer"},[t("span",[e._v(e._s(e.$L("\u5F53\u524D\u5171(*)\u4E2A\u6807\u7B7E",e.total)))])]):e._e()])])},Em=[];const Lm={name:"UserTagsModal",props:{value:{type:Boolean,default:!1},userid:{type:Number,required:!0}},data(){return{visible:this.value,loading:0,tags:[],newTagName:"",editId:null,editName:"",pending:{add:!1,tagId:null,type:""}}},computed:{userId(){return this.$store.state.userId},total(){return this.tags.length}},watch:{value(e){this.visible=e,e&&this.openModal()},visible(e){this.$emit("input",e),e||this.resetInlineState()},userid(){this.visible&&this.loadTags()}},methods:{openModal(){this.resetInlineState(),this.loadTags()},resetInlineState(){this.newTagName="",this.editId=null,this.editName="",this.pending={add:!1,tagId:null,type:""}},setPending(e,s=null){e==="add"?this.pending.add=!0:(this.pending.tagId=s,this.pending.type=e)},clearPending(e){e==="add"?this.pending.add=!1:this.pending.type===e&&(this.pending.tagId=null,this.pending.type="")},isPending(e,s){return this.pending.tagId===e&&this.pending.type===s},loadTags(){!this.userid||(this.loading++,this.$store.dispatch("call",{url:"users/tags/lists",data:{userid:this.userid}}).then(({data:e})=>{this.applyTagData(e)}).catch(({msg:e})=>{$A.modalError(e||this.$L("\u52A0\u8F7D\u5931\u8D25"))}).finally(()=>{this.loading--}))},applyTagData(e){const s=Array.isArray(e==null?void 0:e.list)?e.list:[];this.tags=s;const t=Array.isArray(e==null?void 0:e.top)?e.top:s.slice(0,10),i=typeof(e==null?void 0:e.total)=="number"?e.total:s.length;this.emitUpdated({list:s,top:t,total:i})},emitUpdated(e){this.$emit("updated",e),this.$store.dispatch("saveUserExtra",{userid:this.userid,data:{personal_tags:Array.isArray(e==null?void 0:e.top)?e.top:[],personal_tags_total:typeof(e==null?void 0:e.total)=="number"?e.total:Array.isArray(e==null?void 0:e.top)?e.top.length:0}})},onAddKeydown(e){e.isComposing||e.key==="Process"||e.keyCode===229||e.keyCode===13&&this.handleAdd()},onEditKeydown(e,s){e.isComposing||e.key==="Process"||e.keyCode===229||e.keyCode===13&&this.confirmEdit(s)},handleAdd(){const e=this.newTagName.trim();if(!e){$A.messageError(this.$L("\u8BF7\u8F93\u5165\u4E2A\u6027\u6807\u7B7E"));return}if(e.length>20){$A.messageError(this.$L("\u6807\u7B7E\u540D\u79F0\u6700\u591A\u53EA\u80FD\u8BBE\u7F6E(*)\u4E2A\u5B57",20));return}this.pending.add||(this.setPending("add"),this.$store.dispatch("call",{url:"users/tags/add",method:"post",data:{userid:this.userid,name:e}}).then(({data:s,msg:t})=>{this.applyTagData(s),this.newTagName="",t&&$A.messageSuccess(t)}).catch(({msg:s})=>{$A.modalError(s||this.$L("\u6DFB\u52A0\u5931\u8D25"))}).finally(()=>{this.clearPending("add")}))},startEdit(e){this.editId=e.id,this.editName=e.name,this.$nextTick(()=>{const s=this.$refs.editInput;s&&s.focus?s.focus():Array.isArray(s)&&s.length>0&&s[0].focus&&s[0].focus()})},cancelEdit(){this.editId=null,this.editName=""},confirmEdit(e){const s=this.editName.trim();if(!s){$A.messageError(this.$L("\u8BF7\u8F93\u5165\u4E2A\u6027\u6807\u7B7E"));return}if(s.length>20){$A.messageError(this.$L("\u6807\u7B7E\u540D\u79F0\u6700\u591A\u53EA\u80FD\u8BBE\u7F6E(*)\u4E2A\u5B57",20));return}if(s===e.name){this.cancelEdit();return}this.isPending(e.id,"edit")||(this.setPending("edit",e.id),this.$store.dispatch("call",{url:"users/tags/update",method:"post",data:{tag_id:e.id,name:s}}).then(({data:t,msg:i})=>{this.applyTagData(t),this.cancelEdit(),i&&$A.messageSuccess(i)}).catch(({msg:t})=>{$A.modalError(t||this.$L("\u4FDD\u5B58\u5931\u8D25"))}).finally(()=>{this.clearPending("edit")}))},confirmDelete(e){this.isPending(e.id,"delete")||$A.modalConfirm({title:this.$L("\u5220\u9664\u6807\u7B7E"),content:this.$L("\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6807\u7B7E\u5417\uFF1F"),onOk:()=>{this.deleteTag(e)}})},deleteTag(e){this.setPending("delete",e.id),this.$store.dispatch("call",{url:"users/tags/delete",method:"post",data:{tag_id:e.id}}).then(({data:s,msg:t})=>{this.applyTagData(s),t&&$A.messageSuccess(t)}).catch(({msg:s})=>{$A.modalError(s||this.$L("\u5220\u9664\u5931\u8D25"))}).finally(()=>{this.clearPending("delete")})},toggleRecognize(e){this.isPending(e.id,"recognize")||(this.setPending("recognize",e.id),this.$store.dispatch("call",{url:"users/tags/recognize",method:"post",data:{tag_id:e.id}}).then(({data:s,msg:t})=>{this.applyTagData(s),t&&$A.messageSuccess(t)}).catch(({msg:s})=>{$A.modalError(s||this.$L("\u64CD\u4F5C\u5931\u8D25"))}).finally(()=>{this.clearPending("recognize")}))}}},zi={};var Mm=A(Lm,Dm,Em,!1,Pm,"2d506187",null,null);function Pm(e){for(let s in zi)this[s]=zi[s]}var jm=function(){return Mm.exports}(),Rm=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("Modal",{attrs:{title:e.$L("\u5171\u540C\u7FA4\u7EC4")+" ("+e.$L("(*)\u4E2A",e.totalCount)+")","footer-hide":!0,width:"500"},model:{value:e.visibleProxy,callback:function(i){e.visibleProxy=i},expression:"visibleProxy"}},[t("div",{staticClass:"common-dialog-content"},[e.loading>0&&e.list.length===0?t("div",{staticClass:"loading-wrapper"},[t("Loading")],1):e.list.length===0?t("div",{staticClass:"empty-wrapper"},[t("div",{staticClass:"empty-content"},[t("Icon",{attrs:{type:"ios-people-outline",size:"48"}}),t("p",[e._v(e._s(e.$L("\u6682\u65E0\u5171\u540C\u7FA4\u7EC4")))])],1)]):t("div",{staticClass:"dialog-list"},[e._l(e.list,function(i){return t("div",{key:i.id,staticClass:"dialog-item",on:{click:function(n){return e.onEnterDialog(i)}}},[t("div",{staticClass:"dialog-avatar"},[i.avatar?t("EAvatar",{attrs:{src:i.avatar,size:42}}):i.group_type=="department"?t("i",{staticClass:"taskfont icon-avatar department"},[e._v("\uE75C")]):i.group_type=="project"?t("i",{staticClass:"taskfont icon-avatar project"},[e._v("\uE6F9")]):i.group_type=="task"?t("i",{staticClass:"taskfont icon-avatar task"},[e._v("\uE6F4")]):i.group_type=="okr"?t("i",{staticClass:"taskfont icon-avatar task"},[e._v("\uE6F4")]):t("Icon",{staticClass:"icon-avatar",attrs:{type:"ios-people"}})],1),t("div",{staticClass:"dialog-info"},[t("div",{staticClass:"dialog-name",domProps:{innerHTML:e._s(e.transformEmojiToHtml(i.name))}}),t("div",{staticClass:"dialog-meta"},[t("span",{staticClass:"member-count"},[e._v(e._s(e.$L("(*) \u4EBA",i.people||0)))]),i.last_at?t("span",{staticClass:"last-time"},[e._v(e._s(e.$A.timeFormat(i.last_at)))]):e._e()])]),t("Icon",{staticClass:"enter-icon",attrs:{type:"ios-arrow-forward"}})],1)}),e.hasMore?t("div",{staticClass:"load-more-wrapper"},[t("Button",{attrs:{type:"primary",loading:e.loading>0},on:{click:function(i){return e.loadList(!0)}}},[e._v(e._s(e.$L("\u52A0\u8F7D\u66F4\u591A")))])],1):e._e()],2)])])},Om=[];const zm={name:"CommonDialogModal",props:{value:{type:Boolean,default:!1},targetUserId:{type:[Number,String],required:!0},totalCount:{type:[Number,String],default:0}},data(){return{list:[],page:1,hasMore:!1,loading:0}},computed:{visibleProxy:{get(){return this.value},set(e){this.$emit("input",e)}}},watch:{visibleProxy(e){e&&this.list.length===0&&this.loadList(!1)},targetUserId(){this.list=[],this.page=1,this.hasMore=!1}},methods:{transformEmojiToHtml:mt,loadList(e=!1){if(!this.targetUserId)return;this.loading++;const s=e?this.page+1:1;this.$store.dispatch("call",{url:"dialog/common/list",data:{target_userid:this.targetUserId,page:s}}).then(({data:t})=>{const i=e?[...this.list,...t.data]:t.data;this.list=Array.isArray(i)?i:[],this.page=t.current_page||s,this.hasMore=!!t.next_page_url}).catch(({msg:t})=>{$A.modalError(t||this.$L("\u52A0\u8F7D\u5931\u8D25"))}).finally(()=>{this.loading--})},onEnterDialog(e){this.$emit("open-chat",e)}}},Ui={};var Um=A(zm,Rm,Om,!1,Bm,"9c2e14d8",null,null);function Bm(e){for(let s in Ui)this[s]=Ui[s]}var Nm=function(){return Um.exports}(),Fm=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("Modal",{attrs:{"class-name":"user-works-modal",title:e.$L("\u9879\u76EE\u4E0E\u4EFB\u52A1"),"footer-hide":!0,width:"560"},model:{value:e.visibleProxy,callback:function(i){e.visibleProxy=i},expression:"visibleProxy"}},[e.activeTab!=="projects"?t("RadioGroup",{staticClass:"task-owner-filter",attrs:{type:"button",size:"small"},on:{"on-change":e.onOwnerChange},model:{value:e.taskOwner,callback:function(i){e.taskOwner=i},expression:"taskOwner"}},[t("Radio",{attrs:{label:"all"}},[e._v(e._s(e.$L("\u5168\u90E8")))]),t("Radio",{attrs:{label:"1"}},[e._v(e._s(e.$L("\u8D1F\u8D23")))]),t("Radio",{attrs:{label:"0"}},[e._v(e._s(e.$L("\u534F\u4F5C")))])],1):e._e(),t("Tabs",{staticClass:"user-works-tabs",model:{value:e.activeTab,callback:function(i){e.activeTab=i},expression:"activeTab"}},[t("TabPane",{attrs:{label:e.projectsTabLabel,name:"projects"}},[t("div",{staticClass:"user-works-content"},[e.projects.loading>0&&e.projects.list.length===0?t("div",{staticClass:"loading-wrapper"},[t("Loading")],1):e.projects.list.length===0?t("div",{staticClass:"empty-wrapper"},[t("div",{staticClass:"empty-content"},[t("Icon",{attrs:{type:"ios-folder-outline",size:"48"}}),t("p",[e._v(e._s(e.$L("\u6682\u65E0\u9879\u76EE")))])],1)]):t("div",{staticClass:"works-list"},[e._l(e.projects.list,function(i){return t("div",{key:i.id,staticClass:"works-item",on:{click:function(n){return e.onOpenProject(i)}}},[t("div",{staticClass:"works-icon project"},[t("i",{staticClass:"taskfont"},[e._v("\uE6F9")])]),t("div",{staticClass:"works-info"},[t("div",{staticClass:"works-name",domProps:{innerHTML:e._s(e.transformEmojiToHtml(i.name))}}),t("div",{staticClass:"works-meta"},[t("span",{staticClass:"role-badge",class:e.ownerClass(i.owner)},[e._v(e._s(e.ownerText(i.owner)))]),t("span",{staticClass:"works-stat"},[e._v(e._s(e.$L("\u4EFB\u52A1"))+" "+e._s(i.task_complete||0)+"/"+e._s(i.task_num||0))])])]),t("Icon",{staticClass:"enter-icon",attrs:{type:"ios-arrow-forward"}})],1)}),e.projects.hasMore?t("div",{staticClass:"load-more-wrapper"},[t("Button",{attrs:{type:"primary",loading:e.projects.loading>0},on:{click:function(i){return e.loadProjects(!0)}}},[e._v(e._s(e.$L("\u52A0\u8F7D\u66F4\u591A")))])],1):e._e()],2)])]),e._l(e.taskTabs,function(i){return t("TabPane",{key:i.key,attrs:{label:e.taskTabLabel(i.key),name:i.key}},[t("div",{staticClass:"user-works-content tasks"},[e.tabState(i.key).loading>0&&e.tabState(i.key).list.length===0?t("div",{staticClass:"loading-wrapper"},[t("Loading")],1):e.tabState(i.key).list.length===0?t("div",{staticClass:"empty-wrapper"},[t("div",{staticClass:"empty-content"},[t("Icon",{attrs:{type:"ios-list-box-outline",size:"48"}}),t("p",[e._v(e._s(e.$L("\u6682\u65E0\u4EFB\u52A1")))])],1)]):t("div",{staticClass:"works-list"},[e._l(e.tabState(i.key).list,function(n){return t("div",{key:n.id,staticClass:"works-item",on:{click:function(r){return e.onOpenTask(n)}}},[t("div",{staticClass:"works-icon task",class:{completed:!!n.complete_at}},[t("i",{staticClass:"taskfont"},[e._v("\uE6F4")])]),t("div",{staticClass:"works-info"},[t("div",{staticClass:"works-name",class:{completed:!!n.complete_at},domProps:{innerHTML:e._s(e.transformEmojiToHtml(n.name))}}),t("div",{staticClass:"works-meta"},[n.flow_item_name?t("span",{staticClass:"flow-name",class:n.flow_item_status,style:e.$A.generateColorVarStyle(n.flow_item_color,[10],"flow-item-custom-color")},[e._v(e._s(n.flow_item_name))]):n.complete_at?t("span",{staticClass:"flow-name end"},[e._v(e._s(e.$L("\u5DF2\u5B8C\u6210")))]):e._e(),t("span",{staticClass:"role-badge",class:n.owner?"owner":"assist"},[e._v(e._s(n.owner?e.$L("\u8D1F\u8D23"):e.$L("\u534F\u4F5C")))]),n.project_name?t("span",{staticClass:"works-project"},[e._v(e._s(n.project_name))]):e._e(),n.end_at?t("span",{staticClass:"works-time",class:{overdue:n.overdue}},[e._v(e._s(e.$A.timeFormat(n.end_at)))]):e._e()])]),t("Icon",{staticClass:"enter-icon",attrs:{type:"ios-arrow-forward"}})],1)}),e.tabState(i.key).hasMore?t("div",{staticClass:"load-more-wrapper"},[t("Button",{attrs:{type:"primary",loading:e.tabState(i.key).loading>0},on:{click:function(n){return e.loadTasks(i.key,!0)}}},[e._v(e._s(e.$L("\u52A0\u8F7D\u66F4\u591A")))])],1):e._e()],2)])])})],2)],1)},Hm=[];const ke=()=>({list:[],page:1,hasMore:!1,loading:0,total:null}),Wm={name:"UserWorksModal",props:{value:{type:Boolean,default:!1},targetUserId:{type:[Number,String],required:!0}},data(){return{activeTab:"projects",taskOwner:"all",taskTabs:[{key:"todo",status:"uncompleted"},{key:"done",status:"completed"}],counts:{project:null,todo:null,done:null},projects:ke(),todo:ke(),done:ke()}},computed:{visibleProxy:{get(){return this.value},set(e){this.$emit("input",e)}},projectsTabLabel(){return this.withCount(this.$L("\u9879\u76EE"),this.counts.project)}},watch:{visibleProxy(e){e&&this.loadInitial()},activeTab(e){e!=="projects"&&this.tabState(e).list.length===0&&this.tabState(e).loading===0&&this.loadTasks(e,!1)},targetUserId(){this.resetState(),this.visibleProxy&&this.loadInitial()}},methods:{transformEmojiToHtml:mt,tabState(e){return this[e]},withCount(e,s){return s==null?e:`${e} (${s})`},taskTabLabel(e){const s=e==="todo"?this.$L("\u5F85\u529E"):this.$L("\u5DF2\u5B8C\u6210");return this.withCount(s,this.counts[e])},resetState(){this.counts={project:null,todo:null,done:null},this.projects=ke(),this.todo=ke(),this.done=ke()},loadInitial(){this.loadCounts(),this.loadActive()},loadActive(){if(this.activeTab==="projects")this.projects.list.length===0&&this.projects.loading===0&&this.loadProjects(!1);else{const e=this.tabState(this.activeTab);e.list.length===0&&e.loading===0&&this.loadTasks(this.activeTab,!1)}},loadCounts(){if(!this.targetUserId)return;const e={userid:this.targetUserId};this.taskOwner!=="all"&&(e.owner=this.taskOwner),this.$store.dispatch("call",{url:"project/user/counts",data:e}).then(({data:s})=>{this.counts={project:typeof s.project=="number"?s.project:0,todo:typeof s.todo=="number"?s.todo:0,done:typeof s.done=="number"?s.done:0}}).catch(()=>{})},loadProjects(e=!1){if(!this.targetUserId)return;this.projects.loading++;const s=e?this.projects.page+1:1;this.$store.dispatch("call",{url:"project/user/projects",data:{userid:this.targetUserId,page:s}}).then(({data:t})=>{const i=Array.isArray(t.data)?t.data:[];this.projects.list=e?[...this.projects.list,...i]:i,this.projects.page=t.current_page||s,this.projects.hasMore=!!t.next_page_url,this.projects.total=typeof t.total=="number"?t.total:i.length,this.counts.project=this.projects.total}).catch(({msg:t})=>{$A.modalError(t||this.$L("\u52A0\u8F7D\u5931\u8D25"))}).finally(()=>{this.projects.loading--})},loadTasks(e,s=!1){if(!this.targetUserId)return;const t=this.tabState(e),i=this.taskTabs.find(o=>o.key===e);t.loading++;const n=s?t.page+1:1,r={userid:this.targetUserId,page:n,keys:{status:i.status}};this.taskOwner!=="all"&&(r.owner=this.taskOwner),this.$store.dispatch("call",{url:"project/user/tasks",data:r}).then(({data:o})=>{const a=(Array.isArray(o.data)?o.data:[]).map(l=>this.normalizeFlow(l));t.list=s?[...t.list,...a]:a,t.page=o.current_page||n,t.hasMore=!!o.next_page_url,t.total=typeof o.total=="number"?o.total:a.length,this.counts[e]=t.total}).catch(({msg:o})=>{$A.modalError(o||this.$L("\u52A0\u8F7D\u5931\u8D25"))}).finally(()=>{t.loading--})},onOwnerChange(){this.taskTabs.forEach(e=>{this[e.key]=ke()}),this.loadCounts(),this.loadActive()},normalizeFlow(e){if(e.flow_item_name&&e.flow_item_name.indexOf("|")!==-1){const s=$A.convertWorkflow(e.flow_item_name);e.flow_item_status=s.status,e.flow_item_name=s.name,e.flow_item_color=s.color}return e},ownerText(e){return e===1?this.$L("\u8D1F\u8D23\u4EBA"):e===2?this.$L("\u7BA1\u7406\u5458"):this.$L("\u6210\u5458")},ownerClass(e){return e===1?"owner":e===2?"deputy":"member"},onOpenProject(e){$A.goForward({name:"manage-project",params:{projectId:e.id}}),this.$emit("navigate")},onOpenTask(e){this.$store.dispatch("openTask",e)}}},Bi={};var Vm=A(Wm,Fm,Hm,!1,Ym,"79698690",null,null);function Ym(e){for(let s in Bi)this[s]=Bi[s]}var qm=function(){return Vm.exports}(),Km=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("ModalAlive",{attrs:{"class-name":"common-user-detail-modal",fullscreen:e.isFullscreen,"mask-closable":!1,"footer-hide":!0,width:"480"},model:{value:e.showModal,callback:function(i){e.showModal=i},expression:"showModal"}},[t("div",{staticClass:"user-detail-body"},[t("div",{staticClass:"profile-header"},[t("div",{staticClass:"cover-photo",style:{"--user-cover-photo":`url(${e.userData.userimg||""})`}}),t("div",{staticClass:"profile-avatar"},[t("UserAvatar",{attrs:{userid:e.userData.userid,size:96,"show-state-dot":!1},on:{"on-click":e.onOpenAvatar}})],1)]),t("div",{staticClass:"profile-content"},[t("div",{staticClass:"user-info-top"},[t("h1",{staticClass:"username"},[e._v(" "+e._s(e.userData.nickname)+" ")]),t("div",{staticClass:"meta"},[t("span",{staticClass:"common-dialog",on:{click:function(i){e.commonDialogShow=!0}}},[e._v(e._s(e.$L(e.userId==e.userData.userid?"\u6211\u7684\u7FA4\u7EC4":"\u5171\u540C\u7FA4\u7EC4"))+":"),t("em",[e._v(e._s(e.$L("(*)\u4E2A",e.commonDialog.total)))])]),e.worksVisible?[t("span",{staticClass:"separator"},[e._v("|")]),t("span",{staticClass:"common-dialog works-entry",on:{click:function(i){e.worksModalShow=!0}}},[e._v(e._s(e.$L("\u9879\u76EE\u4E0E\u4EFB\u52A1")))])]:e._e(),t("span",{staticClass:"separator"},[e._v("|")]),t("span",{attrs:{title:e.lineAtDisplay.title}},[e._v(e._s(e.$L("\u6700\u540E\u5728\u7EBF"))+": "+e._s(e.lineAtDisplay.text))])],2)]),e.aiConversationHidden?e._e():t("div",{staticClass:"profile-actions"},[t("Button",{on:{click:e.onOpenDialog}},[t("i",{staticClass:"taskfont"},[e._v("\uE6EB")]),e._v(e._s(e.$L("\u5F00\u59CB\u804A\u5929")))]),t("Button",{on:{click:e.onCreateGroup}},[t("i",{staticClass:"taskfont"},[e._v("\uE63F")]),e._v(e._s(e.$L("\u521B\u5EFA\u7FA4\u7EC4")))])],1),e.userData.introduction?t("div",{staticClass:"profile-bio"},[t("p",[e._v(e._s(e.userData.introduction))])]):e._e(),t("div",{staticClass:"profile-information"},[t("h2",[e._v(e._s(e.$L("\u4E2A\u4EBA\u4FE1\u606F")))]),t("ul",[t("li",[t("Icon",{attrs:{type:"ios-briefcase-outline"}}),t("span",{staticClass:"label"},[e._v(e._s(e.$L("\u804C\u4F4D/\u804C\u79F0")))]),t("span",{staticClass:"value"},[e._v(e._s(e.userData.profession||"-"))])],1),t("li",[t("Icon",{attrs:{type:"ios-people-outline"}}),t("span",{staticClass:"label"},[e._v(e._s(e.$L("\u90E8\u95E8")))]),t("span",{staticClass:"value"},[e._v(e._s(e.userData.department_name||"-"))])],1),t("li",[t("Icon",{attrs:{type:"ios-mail-outline"}}),t("span",{staticClass:"label"},[e._v(e._s(e.$L("\u90AE\u7BB1")))]),t("span",{staticClass:"value",class:{clickable:e.userData.email},on:{click:e.onOpenEmail}},[e._v(e._s(e.userData.email||"-"))])],1),t("li",[t("Icon",{attrs:{type:"ios-call-outline"}}),t("span",{staticClass:"label"},[e._v(e._s(e.$L("\u7535\u8BDD")))]),t("span",{staticClass:"value",class:{clickable:e.userData.tel},on:{click:e.onOpenTel}},[e._v(e._s(e.userData.tel||"-"))])],1),e.userData.birthday?t("li",[t("Icon",{attrs:{type:"ios-calendar-outline"}}),t("span",{staticClass:"label"},[e._v(e._s(e.$L("\u751F\u65E5")))]),t("span",{staticClass:"value"},[e._v(e._s(e.userData.birthday||"-"))])],1):e._e()]),t("div",{staticClass:"profile-tags"},[e.displayTags.length?t("div",{staticClass:"tags-list"},[e._l(e.displayTags,function(i){return t("Button",{key:i.id,attrs:{type:i.recognized?"primary":"default"},on:{click:e.onOpenTagsModal}},[e._v(" "+e._s(i.name)+" "),i.recognition_total>0?t("span",{staticClass:"recognition-total"},[e._v(e._s(i.recognition_total))]):e._e()])}),t("Button",{staticClass:"manage-tags-btn icon",attrs:{type:"dashed"},on:{click:e.onOpenTagsModal}},[t("Icon",{attrs:{type:"ios-settings-outline"}}),e._v(" "+e._s(e.$L("\u7BA1\u7406"))+" ")],1)],2):t("div",{staticClass:"tags-empty"},[t("Button",{staticClass:"add-tag-btn",attrs:{type:"dashed",icon:"md-add"},on:{click:e.onOpenTagsModal}},[e._v(e._s(e.$L("\u6DFB\u52A0\u6807\u7B7E")))])],1)])])])]),e.userData.userid?t("UserTagsModal",{attrs:{userid:e.userData.userid},on:{updated:e.onTagsUpdated},model:{value:e.tagModalVisible,callback:function(i){e.tagModalVisible=i},expression:"tagModalVisible"}}):e._e(),t("CommonDialogModal",{attrs:{"target-user-id":e.userData.userid,"total-count":e.commonDialog.total||0},on:{"open-chat":e.onOpenCommonDialogChat},model:{value:e.commonDialogShow,callback:function(i){e.commonDialogShow=i},expression:"commonDialogShow"}}),e.worksVisible&&e.userData.userid?t("UserWorksModal",{attrs:{"target-user-id":e.userData.userid},on:{navigate:e.onHide},model:{value:e.worksModalShow,callback:function(i){e.worksModalShow=i},expression:"worksModalShow"}}):e._e()],1)},Gm=[];const Jm={name:"UserDetail",components:{UserTagsModal:jm,CommonDialogModal:Nm,UserWorksModal:qm},data(){return{userData:{userid:0},showModal:!1,tagModalVisible:!1,commonDialog:{userid:null,total:null,list:[],page:1,has_more:!1},commonDialogShow:!1,commonDialogLoading:0,worksModalShow:!1}},mounted(){x.on("openUser",this.onShow)},beforeDestroy(){x.off("openUser",this.onShow)},watch:{...B(["cacheUserBasic"]),commonDialogShow(){!this.commonDialogShow||this.commonDialog.list.length>0||this.loadCommonDialogList(!1)}},computed:{...ye(["appAiHidden"]),aiConversationHidden(){return this.appAiHidden&&$A.isAiBotUser(this.userData)},isFullscreen({windowWidth:e}){return e<576},displayTags(){return Array.isArray(this.userData.personal_tags)?this.userData.personal_tags:[]},personalTagTotal(){return typeof this.userData.personal_tags_total=="number"?this.userData.personal_tags_total:this.displayTags.length},commonDialogList(){return this.commonDialog.list||[]},worksVisible(){return!!this.userData.works_visible},lineAtDisplay({userData:e}){const s=e.line_at;if(!s)return{text:"-",title:""};const t=$A.daytz(),i=$A.dayjs(s),n=i.format("YYYY-MM-DD HH:mm"),r=t.unix()-i.unix();let o;return r<60?o=this.$L("\u521A\u521A"):r<3600?o=this.$L("(*)\u5206\u949F\u524D",Math.floor(r/60)):r<3600*24?o=this.$L("(*)\u5C0F\u65F6\u524D",Math.floor(r/3600)):r<3600*24*7?o=this.$L("(*)\u5929\u524D",Math.floor(r/86400)):i.isAfter(t.clone().subtract(1,"month"))?o=i.format("MM-DD HH:mm"):o=i.format("YYYY-MM-DD"),{text:o,title:n}}},methods:{transformEmojiToHtml:mt,onShow(e){!/^\d+$/.test(e)||(this.$store.dispatch("showSpinner",600),Promise.all([this.$store.dispatch("getUserData",e).catch(()=>null),this.$store.dispatch("getUserExtra",e).catch(()=>null)]).then(([s,t])=>{const i=$A.isJson(s)?s:{},n=$A.isJson(t)?t:{};this.userData=Object.assign({},i,n),this.ensureTagDefaults(),this.showModal=!0,this.loadCommonDialogCount()}).finally(s=>{this.$store.dispatch("hiddenSpinner")}))},onHide(){this.showModal=!1,this.tagModalVisible=!1,this.commonDialogShow=!1,this.worksModalShow=!1},onOpenAvatar(){this.$store.dispatch("previewImage",this.userData.userimg)},onOpenDialog(){this.$store.dispatch("openDialogUserid",this.userData.userid).then(e=>{this.onHide()}).catch(({msg:e})=>{$A.modalError(e)})},onCreateGroup(){const e=[this.$store.state.userId];this.userData.userid&&this.$store.state.userId!=this.userData.userid&&e.push(this.userData.userid),x.emit("createGroup",e),this.onHide()},ensureTagDefaults(){Array.isArray(this.userData.personal_tags)||this.$set(this.userData,"personal_tags",[]),typeof this.userData.personal_tags_total!="number"&&this.$set(this.userData,"personal_tags_total",this.userData.personal_tags.length)},onOpenTagsModal(){!this.userData.userid||(this.tagModalVisible=!0)},onTagsUpdated({top:e,total:s}){this.$set(this.userData,"personal_tags",Array.isArray(e)?e:[]),this.$set(this.userData,"personal_tags_total",typeof s=="number"?s:this.userData.personal_tags.length)},loadCommonDialogCount(){const e=this.userData.userid,s=this.commonDialog.userid;if(!e){this.commonDialog={...this.commonDialog,userid:e||null,total:null,list:[],page:1,has_more:!1};return}s!==e&&(this.commonDialog={...this.commonDialog,userid:e,total:null,list:[],page:1,has_more:!1});const i=(this.$store.state.dialogCommonCountCache||{})[String(e)];i&&typeof i.total!="undefined"&&(this.commonDialog={...this.commonDialog,total:i.total}),this.$store.dispatch("call",{url:"dialog/common/list",data:{target_userid:e,only_count:"yes"}}).then(({data:n})=>{if(e!==this.userData.userid)return;const r=Number(n.total),o=Number.isNaN(r)?0:r;this.commonDialog={...this.commonDialog,userid:e,total:o,list:[],page:1,has_more:!1},this.$store.commit("common/dialog/count/save",{userid:e,total:o})})},loadCommonDialogList(e=!1){this.commonDialogLoading++;const s=this.userData.userid;this.$store.dispatch("call",{url:"dialog/common/list",data:{target_userid:s,page:e?this.commonDialog.page+1:1}}).then(({data:t})=>{s===this.userData.userid&&(this.commonDialog={...this.commonDialog,list:e?[...this.commonDialog.list,...t.data]:t.data,total:t.total,page:t.current_page,has_more:!!t.next_page_url})}).catch(({msg:t})=>{$A.modalError(t||this.$L("\u52A0\u8F7D\u5931\u8D25"))}).finally(()=>{this.commonDialogLoading--})},onOpenCommonDialogChat(e){this.$store.dispatch("openDialog",e.id).then(()=>{this.onHide()}).catch(({msg:s})=>{$A.modalError(s)})},onOpenEmail(){!this.userData.email||$A.modalConfirm({content:`\u662F\u5426\u53D1\u9001\u90AE\u4EF6\u7ED9 ${this.userData.nickname}\uFF1F`,onOk:()=>{window.open(`mailto:${this.userData.email}`)}})},onOpenTel(){!this.userData.tel||$A.modalConfirm({content:`\u662F\u5426\u62E8\u6253\u7535\u8BDD\u7ED9 ${this.userData.nickname}\uFF1F`,onOk:()=>{$A.isEEUIApp()?$A.eeuiAppSendMessage({action:"callTel",tel:this.userData.tel}):window.open(`tel:${this.userData.tel}`)}})}}},Ni={};var Qm=A(Jm,Km,Gm,!1,Xm,null,null,null);function Xm(e){for(let s in Ni)this[s]=Ni[s]}var Zm=function(){return Qm.exports}(),eg=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"app-view",attrs:{id:"app"}},[t("div",{staticClass:"child-status-bar"}),t("keep-alive",[t("router-view",{staticClass:"child-view",on:{"~hook:mounted":function(i){return e.onRouterViewMounted.apply(null,arguments)}}})],1),t("div",{staticClass:"child-navigation-bar"}),t("TaskOperation"),t("MeetingManager"),t("ProjectInvite"),t("DropdownMenu"),t("FloatSpinner"),t("RightBottom"),t("PreviewImageState"),t("AuthException"),t("GuidePage"),t("UserDetail"),e.aiVisible?t("AIAssistant"):e._e(),e.isFirstPage?t("MobileBack"):e._e(),e.isFirstPage?t("MobileNotification"):e._e(),e.windowLandscape?t("NetworkException"):e._e()],1)},tg=[];const sg={mixins:[Uh],components:{AIAssistant:Im,UserDetail:Zm,MobileBack:Lh,MobileNotification:Sh,AuthException:uo,MeetingManager:sh,ProjectInvite:wh,DropdownMenu:zh,TaskOperation:Od,NetworkException:_o,PreviewImageState:no,RightBottom:Hr,FloatSpinner:Rr,GuidePage:bo},data(){return{appInter:null,appActivated:!0,countDown:Math.min(30,60-$A.daytz().second()),lastCheckUpgradeYmd:$A.daytz().format("YYYY-MM-DD")}},created(){this.electronEvents(),this.eeuiEvents(),this.otherEvents()},mounted(){this.appInter=setInterval(this.appTimerHandler,1e3),$A.loadVConsole()},beforeDestroy(){this.appInter&&clearInterval(this.appInter)},computed:{...ye(["aiVisible"]),...B(["ws","themeConf","windowOrientation","safeAreaSize","isFirstPage","mobileTabbar","themeName"]),statusColor({routeName:e,windowLandscape:s}){return e?s?"#f4f5f7":["login","manage-messenger","manage-project"].includes(e)||e.startsWith("manage-setting")?"#f8f8f8":null:null},navigationColor({routeName:e,windowLandscape:s,mobileTabbar:t}){return e?s?"#f4f5f7":["login","manage-messenger","manage-project","manage-setting"].includes(e)||t?"#f8f8f8":null:null},rootStyle(){return{"--window-width":`${this.windowWidth}px`,"--window-height":`${this.windowHeight}px`,"--window-scroll-y":`${this.windowScrollY}px`,"--status-bar-height":`${this.safeAreaSize.top}px`,"--status-bar-color":this.statusColor||"#ffffff","--navigation-bar-height":`${this.safeAreaSize.bottom}px`,"--navigation-bar-color":this.navigationColor||"#ffffff"}}},watch:{$route:{handler({name:e,path:s,params:t}){this.$store.state.routeName=e,this.$store.state.routePath=s,this.$store.state.mobileTabbar=e==="manage-project"&&!/^\d+$/.test(t.projectId)||["manage-dashboard","manage-messenger","manage-application"].includes(e)},immediate:!0},routePath:{handler(e){e&&this.userId>0&&(e=e.replace(/^\/manage\/file\/\d+\/(\d+)$/,"/single/file/$1"),this.$store.dispatch("websocketPath",e))},immediate:!0},userId:{handler(){this.$store.dispatch("websocketConnection"),this.$isEEUIApp&&(this.umengAliasTimer&&clearTimeout(this.umengAliasTimer),this.userId>0?($A.eeuiAppSendMessage({action:"initApp",apiUrl:$A.apiUrl(""),userid:this.userId,token:this.userToken,language:M,userAgent:window.navigator.userAgent}),$A.eeuiAppGetDeviceInfo().then(async e=>{let s=e.deviceName||e.modelName;e.systemName==="Android"&&($A.strExists(e.modelName,e.brand)?s=e.modelName:s=e.brand+" "+e.model),await this.$store.dispatch("call",{url:"users/device/edit",data:{device_name:s,app_brand:e.brand,app_model:e.model,app_os:e.systemName+" "+e.systemVersion}})}).catch(console.log),this.umengAliasTimer=setTimeout(e=>{this.umengAliasTimer=null,$A.eeuiAppSendMessage({action:"setUmengAlias",url:$A.apiUrl("users/umeng/alias")})},6e3)):$A.eeuiAppSendMessage({action:"delUmengAlias",url:$A.apiUrl("users/umeng/alias")}))},immediate:!0},rootStyle:{handler(e){for(const s in e)document.documentElement.style.setProperty(s,e[s])},immediate:!0},windowTouch:{handler(e){e?$A("body").addClass("window-touch"):$A("body").removeClass("window-touch")},immediate:!0},windowOrientation:{handler(e){$A("body").removeClass(["window-landscape","window-portrait"]),$A("body").addClass("window-"+e)},immediate:!0},isCtrlCommandPressed:{handler(e){this.$store.state.isModKey=e},immediate:!0},windowActive(e){if(!e){this.$store.dispatch("audioStop",!0);return}this.autoTheme(),$A.updateTimezone(),this.__windowTimer&&clearTimeout(this.__windowTimer),this.__timeoutTimer&&clearTimeout(this.__timeoutTimer),this.__windowTimer=setTimeout(async()=>{try{await this.$store.dispatch("call",{url:"users/socket/status"}),await new Promise((s,t)=>{this.$store.dispatch("websocketSend",{type:"handshake",callback:(i,n)=>{n?s():t(new Error("Handshake failed"))}}),this.__timeoutTimer=setTimeout(()=>t(new Error("Handshake timeout")),6e3)})}catch{await this.$store.dispatch("websocketConnection")}},600)}},methods:{appTimerHandler(){this.searchEnter(),this.countDown--,this.countDown<=0&&(this.countDown=Math.min(30,60-$A.daytz().second()),this.$store.dispatch("todayAndOverdue"))},searchEnter(){let e=$A(".search-container");if(e.length===0||e.attr("data-enter-init")==="init")return;e.attr("data-enter-init","init");let s=e.find("button[type='button']"),t=null;s.length!==0&&(s.each((i,n)=>{$A(n).text().indexOf("\u641C\u7D22")&&(t=$A(n))}),t!==null&&e.find("input.ivu-input").keydown(function(i){i.keyCode==13&&(t.hasClass("ivu-btn-loading")||t.click())}))},autoTheme(){this.themeConf==="auto"&&this.$store.dispatch("synchTheme")},onRouterViewMounted(){document.documentElement.setAttribute("data-platform",$A.isElectron?"desktop":$A.isEEUIApp?"app":"web")},getUrlMethodType(e){if(this.isCtrlCommandPressed||this.isApplicationProtocol(e)||this.isMeetingUrlStrict(e)||this.isDownloadUrl(e))return 1;if($A.getDomain(e)==$A.mainDomain())try{const{pathname:s,searchParams:t}=new URL(e);if(/^\/meeting\/\d+\/\S+$/.test(s)){const i=s.split("/")[2];return x.emit("addMeeting",{type:"join",meetingid:i,meetingdisabled:!0}),2}if(/^\/manage\/project\/invite/.test(s)){const i=s.split("/"),n=i.length>4?i[4]:t.get("code");return x.emit("openProjectInvite",{code:n}),2}}catch{}return 0},isDownloadUrl(e){if($A.getDomain(e)==$A.mainDomain())try{const{pathname:s,searchParams:t}=new URL(e);if(["/uploads","/api/dialog/msg/download","/api/project/task/filedown","/api/file/download/pack","/api/project/task/down","/api/system/checkin/down"].some(n=>$A.leftExists(s,n))||$A.leftExists(s,"/api/file/content")&&t.get("down")==="yes")return!0}catch{}return!1},isApplicationProtocol(e){const s=["thunder:","ed2k:","magnet:","weixin:","alipays:","mqq:","dingtalk:","baidumap:","iosamap:","androidamap:","tel:","sms:","mailto:","market:","intent:","taobao:","tmall:","jd:","pinduoduo:","vnd.youtube:","zhihu:","bilibili:","snssdk1128:","kwai:","fb:","twitter:","instagram:","linkedin:"],t=`${e}`.toLowerCase();return s.some(i=>t.startsWith(i))},isMeetingUrlStrict(e){const s=["zoom.us","meeting.tencent.com","teams.microsoft.com","meet.google.com","meeting.feishu.cn","meeting.dingtalk.com","webex.com","bluejeans.com","goto.com","gotomeeting.com","8x8.vc","meet.jit.si","jitsi.baidu.com","whereby.com","lifesize.com","starleaf.com","classroomscreen.com","bigbluebutton.org","matrix.to","meetings.vonage.com","voovmeeting.com","skype.com","maps.google.com","maps.apple.com","amap.com","map.baidu.com","map.qq.com","mapurl.cn","alipay.com","pay.weixin.qq.com","paypal.com/cgi-bin","checkout.stripe.com","pay.google.com","pay.qq.com","pay.baidu.com","apps.apple.com","play.google.com","itunes.apple.com","apps.samsung.com","microsoft.com/store","amazon.com/apps","apk.qq.com","app.mi.com","app.hicloud.com","pan.baidu.com","aliyundrive.com","drive.google.com","onedrive.live.com","xunlei.com","wx.qq.com","im.qq.com","web.whatsapp.com","web.telegram.org","discord.com/channels","messenger.com/call","workspace.dingtalk.com","douyin.com/live","live.kuaishou.com","live.bilibili.com","douyu.com/room","yy.com/x/","inke.cn/live","facebook.com/live","instagram.com/live","youtube.com/live","twitch.tv/live"],t=`${e}`.toLowerCase();return s.some(i=>t.indexOf(i)!==-1)},electronEvents(){!this.$Electron||(window.__onBeforeUnload=()=>{if(this.$store.dispatch("onBeforeUnload"),this.$Modal.removeLast())return!0},this.$Electron.sendMessage("registerCloseInterceptor"),window.__onBeforeOpenWindow=({url:e})=>{const s=this.getUrlMethodType(e);return s===2?!0:s===1?this.isDownloadUrl(e)?(this.$store.dispatch("downUrl",e),!0):!1:(this.$store.dispatch("openWindow",e),!0)},this.$Electron.listener("browserWindowBlur",e=>{this.$store.state.windowActive=!1}),this.$Electron.listener("browserWindowFocus",e=>{this.$store.state.windowActive=!0}),this.$Electron.listener("systemThemeChanged",e=>{this.autoTheme()}),this.$Electron.listener("openDownloadWindow",e=>{$A.Electron.request({action:"openDownloadWindow",language:M,theme:this.themeName})}),$A.bindScreenshotKey(this.$store.state.cacheKeyboard),this.$Electron.sendMessage("setMenuLanguage",{copy:this.$L("\u590D\u5236"),back:this.$L("\u540E\u9000"),forward:this.$L("\u524D\u8FDB"),reload:this.$L("\u91CD\u65B0\u52A0\u8F7D"),print:this.$L("\u6253\u5370"),openInBrowser:this.$L("\u5728\u6D4F\u89C8\u5668\u4E2D\u6253\u5F00"),openInDefaultBrowser:this.$L("\u9ED8\u8BA4\u6D4F\u89C8\u5668\u6253\u5F00"),saveImageAs:this.$L("\u56FE\u7247\u5B58\u50A8\u4E3A..."),copyImage:this.$L("\u590D\u5236\u56FE\u7247"),copyEmailAddress:this.$L("\u590D\u5236\u7535\u5B50\u90AE\u4EF6\u5730\u5740"),copyLinkAddress:this.$L("\u590D\u5236\u94FE\u63A5\u5730\u5740"),copyImageAddress:this.$L("\u590D\u5236\u56FE\u7247\u5730\u5740"),moveToNewWindow:this.$L("\u5C06\u6807\u7B7E\u9875\u79FB\u81F3\u65B0\u7A97\u53E3"),failedToSaveImage:this.$L("\u56FE\u7247\u4FDD\u5B58\u5931\u8D25"),theImageFailedToSave:this.$L("\u56FE\u7247\u65E0\u6CD5\u4FDD\u5B58")}))},eeuiEvents(){!this.$isEEUIApp||(setTimeout(()=>{this.appActivated&&$A.eeuiAppHideWebviewSnapshot()},500),window.__onAppActive=async()=>{if(this.appActivated=!0,!await $A.IDBTest())return;this.autoTheme(),$A.updateTimezone(),$A.eeuiAppHideWebviewSnapshot(),this.$store.dispatch("safeAreaInsets");const e=$A.daytz().format("YYYY-MM-DD");this.lastCheckUpgradeYmd!=e&&(this.lastCheckUpgradeYmd=e,$A.eeuiAppCheckUpdate())},window.__onAppDeactive=()=>{this.appActivated=!1,setTimeout(()=>{this.appActivated||$A.eeuiAppGetWebviewSnapshot(e=>{!e||this.appActivated||$A.eeuiAppShowWebviewSnapshot()})},500)},window.__onPagePause=()=>{this.$store.state.windowActive=!1,this.$store.dispatch("getBasicData",-1)},window.__onPageResume=e=>{this.$store.state.windowActive=!0,e>0?this.$store.dispatch("getBasicData",600):this.autoTheme()},window.__onCreateTarget=e=>{const s=this.getUrlMethodType(e);if(s!==2){if(s===1){$A.eeuiAppOpenWeb(e);return}this.$store.dispatch("openAppChildPage",{pageType:"app",pageTitle:" ",url:"web.js",params:{url:e}})}},window.__onMeetingEvent=e=>{if(!!$A.isJson(e))switch(e.act){case"getInfo":const s=(e.uuid+"").indexOf("88888")!==-1;this.$store.dispatch("call",{url:s?"users/meeting/tourist":"users/basic",data:{userid:s?e.uuid:(e.uuid+"").substring(6),tourist_id:e.uuid}}).then(({data:t})=>{var i,n;$A.eeuiAppSendMessage({action:"updateMeetingInfo",infos:{uuid:e.uuid,avatar:s?t==null?void 0:t.userimg:(i=t[0])==null?void 0:i.userimg,username:s?t==null?void 0:t.nickname:(n=t[0])==null?void 0:n.nickname}})}).catch(({msg:t})=>{$A.modalError(t)});break;case"success":this.$store.dispatch("closeMeetingWindow","add");break;case"invent":this.$store.dispatch("showMeetingWindow",{type:"invitation",meetingid:e.meetingid});break;case"endMeeting":break;case"error":this.$store.dispatch("closeMeetingWindow","error");break;case"status":this.$store.state.appMeetingShow=e.status;break}},window.__onKeyboardStatus=e=>{$A.isJson(e)||(e=$A.jsonParse(decodeURIComponent(e))),$A.isJson(e)&&(this.$store.state.keyboardShow=e.keyboardType==="show",this.$store.state.keyboardHeight=e.keyboardHeight,$A.eeuiAppShakeToEditEnabled(this.$store.state.keyboardShow))},window.__onNotificationPermissionStatus=e=>{this.$store.state.appNotificationPermission=$A.runNum(e)==1},window.__handleLink=e=>{this.goForward({path:(e||"").indexOf("/")!==0?"/"+e:e})},$A.eeuiAppSendMessage({action:"windowSize",width:this.windowWidth,height:this.windowHeight}),$A.eeuiAppSetHapticBackEnabled(!1),$A.eeuiAppSetCachesString("languageWebBack",this.$L("\u540E\u9000")),$A.eeuiAppSetCachesString("languageWebForward",this.$L("\u524D\u8FDB")),$A.eeuiAppSetCachesString("languageWebBrowser",this.$L("\u6D4F\u89C8\u5668\u6253\u5F00")),$A.eeuiAppSetCachesString("languageWebRefresh",this.$L("\u5237\u65B0")),$A.eeuiAppSetCachesString("updateDefaultTitle",this.$L("APP \u65B0\u7248\u672C")),$A.eeuiAppSetCachesString("updateDefaultContent",this.$L("\u6682\u65E0\u66F4\u65B0\u4ECB\u7ECD\uFF01")),$A.eeuiAppSetCachesString("updateDefaultCancelText",this.$L("\u4EE5\u540E\u518D\u8BF4")),$A.eeuiAppSetCachesString("updateDefaultUpdateText",this.$L("\u7ACB\u5373\u66F4\u65B0")))},otherEvents(){if(!this.$isSoftware){const e="hidden"in document?"hidden":"webkitHidden"in document?"webkitHidden":"mozHidden"in document?"mozHidden":null,s=e.replace(/hidden/i,"visibilitychange");document.addEventListener(s,()=>{this.$store.state.windowActive=!document[e]})}}}},Fi={};var ig=A(sg,eg,tg,!1,ng,"7933b3fe",null,null);function ng(e){for(let s in Fi)this[s]=Fi[s]}var rg=function(){return ig.exports}(),og=[{name:"index",path:"/",component:()=>D(()=>import("./index.7a3429e1.js"),["js/build/index.7a3429e1.js","js/build/jquery.6e4daff9.js","js/build/@babel.9410f858.js","js/build/dayjs.d20a4841.js","js/build/localforage.743dffdd.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"pro",path:"/pro",component:()=>D(()=>import("./pro.0d341b38.js"),["js/build/pro.0d341b38.js","js/build/jquery.6e4daff9.js","js/build/@babel.9410f858.js","js/build/dayjs.d20a4841.js","js/build/localforage.743dffdd.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"meeting",path:"/meeting/:meetingId?/:sharekey?",component:()=>D(()=>import("./meeting.3e440d40.js"),["js/build/meeting.3e440d40.js","js/build/jquery.6e4daff9.js","js/build/@babel.9410f858.js","js/build/dayjs.d20a4841.js","js/build/localforage.743dffdd.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage",path:"/manage",component:()=>D(()=>import("./manage.670728eb.js"),["js/build/manage.670728eb.js","js/build/manage.9f03272d.css","js/build/vuex.cc7cb26e.js","js/build/SearchButton.2a8dd789.js","js/build/CheckinExport.9685d739.js","js/build/CheckinExport.a228f52c.css","js/build/index.f7653997.js","js/build/ImgUpload.434d067a.js","js/build/chunkedUpload.3cd238b0.js","js/build/axios.37c7f908.js","js/build/spark-md5.0443325f.js","js/build/file.5e8166ad.js","js/build/TaskDetail.6dbf17d2.js","js/build/TaskDetail.eb06ff10.css","js/build/add.0e2a5c01.js","js/build/add.90416dbc.css","js/build/DialogWrapper.bc988036.js","js/build/vue-virtual-scroll-list-hi.74ad83f0.js","js/build/@babel.9410f858.js","js/build/vue.adba9046.js","js/build/lodash.8fcd6fd4.js","js/build/webhook.378987f3.js","js/build/TEditor.64c880bb.js","js/build/tinymce.498510f2.js","js/build/jquery.6e4daff9.js","js/build/dayjs.d20a4841.js","js/build/localforage.743dffdd.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/openpgp_hi.15f91b1d.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js","js/build/ReportEdit.5ea53e87.js","js/build/ReportDetail.00959436.js","js/build/index.eb447f83.js","js/build/index.9742549c.css","js/build/@micro-zoe.39406924.js","js/build/notification-koro1.99b93615.js","js/build/DepartmentOwnerView.710b9bb7.js","js/build/DepartmentOwnerView.9cbc9146.css"]),children:[{name:"manage-dashboard",path:"dashboard",component:()=>D(()=>import("./dashboard.1ca3799a.js"),["js/build/dashboard.1ca3799a.js","js/build/dashboard.affb9e3b.css","js/build/vuex.cc7cb26e.js","js/build/echarts.523e56b1.js","js/build/zrender.6f9469d4.js","js/build/tslib.891692d0.js","js/build/DepartmentOwnerView.710b9bb7.js","js/build/DepartmentOwnerView.9cbc9146.css","js/build/jquery.6e4daff9.js","js/build/@babel.9410f858.js","js/build/dayjs.d20a4841.js","js/build/localforage.743dffdd.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-calendar",path:"calendar",component:()=>D(()=>import("./calendar.9858cdd5.js"),["js/build/calendar.9858cdd5.js","js/build/tui-calendar-hi.8947f8cc.js","js/build/tui-calendar-hi.058e41e5.css","js/build/tui-date-picker.6a34ee03.js","js/build/@babel.9410f858.js","js/build/tui-time-picker.1ebb7768.js","js/build/vuex.cc7cb26e.js","js/build/jquery.6e4daff9.js","js/build/dayjs.d20a4841.js","js/build/localforage.743dffdd.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-messenger",path:"messenger/:dialogAction?",component:()=>D(()=>import("./messenger.3ab48edf.js"),["js/build/messenger.3ab48edf.js","js/build/vuex.cc7cb26e.js","js/build/DialogWrapper.bc988036.js","js/build/chunkedUpload.3cd238b0.js","js/build/axios.37c7f908.js","js/build/spark-md5.0443325f.js","js/build/index.f7653997.js","js/build/vue-virtual-scroll-list-hi.74ad83f0.js","js/build/@babel.9410f858.js","js/build/vue.adba9046.js","js/build/lodash.8fcd6fd4.js","js/build/ImgUpload.434d067a.js","js/build/webhook.378987f3.js","js/build/jquery.6e4daff9.js","js/build/dayjs.d20a4841.js","js/build/localforage.743dffdd.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/openpgp_hi.15f91b1d.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting",path:"setting",component:()=>D(()=>import("./index.cc0c8724.js"),["js/build/index.cc0c8724.js","js/build/index.274f71f0.css","js/build/vuex.cc7cb26e.js","js/build/jquery.6e4daff9.js","js/build/@babel.9410f858.js","js/build/dayjs.d20a4841.js","js/build/localforage.743dffdd.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),children:[{name:"manage-setting-personal",path:"personal",component:()=>D(()=>import("./personal.4aeb260a.js"),["js/build/personal.4aeb260a.js","js/build/personal.b6ea18df.css","js/build/ImgUpload.434d067a.js","js/build/chunkedUpload.3cd238b0.js","js/build/axios.37c7f908.js","js/build/spark-md5.0443325f.js","js/build/vuex.cc7cb26e.js","js/build/jquery.6e4daff9.js","js/build/@babel.9410f858.js","js/build/dayjs.d20a4841.js","js/build/localforage.743dffdd.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/openpgp_hi.15f91b1d.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting-checkin",path:"checkin",component:()=>D(()=>import("./checkin.7e191bb8.js"),["js/build/checkin.7e191bb8.js","js/build/checkin.2fa0bfae.css","js/build/ImgUpload.434d067a.js","js/build/chunkedUpload.3cd238b0.js","js/build/axios.37c7f908.js","js/build/spark-md5.0443325f.js","js/build/jquery.6e4daff9.js","js/build/@babel.9410f858.js","js/build/dayjs.d20a4841.js","js/build/localforage.743dffdd.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting-language",path:"language",component:()=>D(()=>import("./language.e9b1c8cc.js"),["js/build/language.e9b1c8cc.js","js/build/vuex.cc7cb26e.js","js/build/jquery.6e4daff9.js","js/build/@babel.9410f858.js","js/build/dayjs.d20a4841.js","js/build/localforage.743dffdd.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting-theme",path:"theme",component:()=>D(()=>import("./theme.c83e7a13.js"),["js/build/theme.c83e7a13.js","js/build/vuex.cc7cb26e.js","js/build/jquery.6e4daff9.js","js/build/@babel.9410f858.js","js/build/dayjs.d20a4841.js","js/build/localforage.743dffdd.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting-keyboard",path:"keyboard",component:()=>D(()=>import("./keyboard.48563e8f.js"),["js/build/keyboard.48563e8f.js","js/build/keyboard.654e75cb.css","js/build/vuex.cc7cb26e.js","js/build/jquery.6e4daff9.js","js/build/@babel.9410f858.js","js/build/dayjs.d20a4841.js","js/build/localforage.743dffdd.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting-license",path:"license",component:()=>D(()=>import("./license.2168c5ac.js"),["js/build/license.2168c5ac.js","js/build/license.e50534d0.css","js/build/vuex.cc7cb26e.js","js/build/jquery.6e4daff9.js","js/build/@babel.9410f858.js","js/build/dayjs.d20a4841.js","js/build/localforage.743dffdd.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting-password",path:"password",component:()=>D(()=>import("./password.495f53b6.js"),["js/build/password.495f53b6.js","js/build/vuex.cc7cb26e.js","js/build/jquery.6e4daff9.js","js/build/@babel.9410f858.js","js/build/dayjs.d20a4841.js","js/build/localforage.743dffdd.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting-email",path:"email",component:()=>D(()=>import("./email.f60e6037.js"),["js/build/email.f60e6037.js","js/build/vuex.cc7cb26e.js","js/build/jquery.6e4daff9.js","js/build/@babel.9410f858.js","js/build/dayjs.d20a4841.js","js/build/localforage.743dffdd.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting-system",path:"system",component:()=>D(()=>import("./system.c147402f.js"),["js/build/system.c147402f.js","js/build/system.4d047d3f.css","js/build/vuex.cc7cb26e.js","js/build/ImgUpload.434d067a.js","js/build/chunkedUpload.3cd238b0.js","js/build/axios.37c7f908.js","js/build/spark-md5.0443325f.js","js/build/jquery.6e4daff9.js","js/build/@babel.9410f858.js","js/build/dayjs.d20a4841.js","js/build/localforage.743dffdd.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/openpgp_hi.15f91b1d.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting-device",path:"device",component:()=>D(()=>import("./device.5e662128.js"),["js/build/device.5e662128.js","js/build/jquery.6e4daff9.js","js/build/@babel.9410f858.js","js/build/dayjs.d20a4841.js","js/build/localforage.743dffdd.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting-system-update",path:"system-update",component:()=>D(()=>import("./system-update.0f19d7e0.js"),["js/build/system-update.0f19d7e0.js","js/build/preview.7d35fa9c.js","js/build/openpgp_hi.15f91b1d.js","js/build/index.40a8e116.js","js/build/jquery.6e4daff9.js","js/build/@babel.9410f858.js","js/build/dayjs.d20a4841.js","js/build/localforage.743dffdd.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/vuex.cc7cb26e.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting-version",path:"version",component:()=>D(()=>import("./version.f9e3fd2c.js"),["js/build/version.f9e3fd2c.js","js/build/version.b2e280f3.css","js/build/preview.7d35fa9c.js","js/build/openpgp_hi.15f91b1d.js","js/build/index.40a8e116.js","js/build/jquery.6e4daff9.js","js/build/@babel.9410f858.js","js/build/dayjs.d20a4841.js","js/build/localforage.743dffdd.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/vuex.cc7cb26e.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting-delete",path:"delete",component:()=>D(()=>import("./delete.d4b55667.js"),["js/build/delete.d4b55667.js","js/build/vuex.cc7cb26e.js","js/build/jquery.6e4daff9.js","js/build/@babel.9410f858.js","js/build/dayjs.d20a4841.js","js/build/localforage.743dffdd.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])}]},{name:"manage-project-invite",path:"project/invite/:inviteId?",component:()=>D(()=>import("./projectInvite.e4a62c77.js"),["js/build/projectInvite.e4a62c77.js","js/build/projectInvite.83f6f5bf.css","js/build/vuex.cc7cb26e.js","js/build/jquery.6e4daff9.js","js/build/@babel.9410f858.js","js/build/dayjs.d20a4841.js","js/build/localforage.743dffdd.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-project",path:"project/:projectId",component:()=>D(()=>import("./project.49d9c7c1.js"),["js/build/project.49d9c7c1.js","js/build/vuex.cc7cb26e.js","js/build/lodash.8fcd6fd4.js","js/build/@babel.9410f858.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/add.0e2a5c01.js","js/build/add.90416dbc.css","js/build/SearchButton.2a8dd789.js","js/build/index.f7653997.js","js/build/DepartmentOwnerView.710b9bb7.js","js/build/DepartmentOwnerView.9cbc9146.css","js/build/jquery.6e4daff9.js","js/build/dayjs.d20a4841.js","js/build/localforage.743dffdd.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-file",path:"file/:folderId?/:fileId?",component:()=>D(()=>import("./file.5d43d793.js"),["js/build/file.5d43d793.js","js/build/file.0083155b.css","js/build/openpgp_hi.15f91b1d.js","js/build/vuex.cc7cb26e.js","js/build/lodash.8fcd6fd4.js","js/build/@babel.9410f858.js","js/build/file.5e8166ad.js","js/build/index.f7653997.js","js/build/chunkedUpload.3cd238b0.js","js/build/axios.37c7f908.js","js/build/spark-md5.0443325f.js","js/build/jquery.6e4daff9.js","js/build/dayjs.d20a4841.js","js/build/localforage.743dffdd.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-application",path:"application",component:()=>D(()=>import("./application.6b8ee1d4.js"),["js/build/application.6b8ee1d4.js","js/build/application.29cc7ef9.css","js/build/vuex.cc7cb26e.js","js/build/index.f7653997.js","js/build/CheckinExport.9685d739.js","js/build/CheckinExport.a228f52c.css","js/build/SearchButton.2a8dd789.js","js/build/ImgUpload.434d067a.js","js/build/chunkedUpload.3cd238b0.js","js/build/axios.37c7f908.js","js/build/spark-md5.0443325f.js","js/build/IFrame.742911bb.js","js/build/checkin.7e191bb8.js","js/build/checkin.2fa0bfae.css","js/build/jquery.6e4daff9.js","js/build/@babel.9410f858.js","js/build/dayjs.d20a4841.js","js/build/localforage.743dffdd.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/openpgp_hi.15f91b1d.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js","js/build/webhook.378987f3.js"])}]},{name:"single-file-msg",path:"/single/file/msg/:msgId",component:()=>D(()=>import("./fileMsg.0b6ab042.js"),["js/build/fileMsg.0b6ab042.js","js/build/fileMsg.ca2fe73a.css","js/build/openpgp_hi.15f91b1d.js","js/build/vuex.cc7cb26e.js","js/build/IFrame.742911bb.js","js/build/jquery.6e4daff9.js","js/build/@babel.9410f858.js","js/build/dayjs.d20a4841.js","js/build/localforage.743dffdd.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"single-file-task",path:"/single/file/task/:fileId",component:()=>D(()=>import("./fileTask.9909534a.js"),["js/build/fileTask.9909534a.js","js/build/fileTask.584e53db.css","js/build/openpgp_hi.15f91b1d.js","js/build/IFrame.742911bb.js","js/build/jquery.6e4daff9.js","js/build/@babel.9410f858.js","js/build/dayjs.d20a4841.js","js/build/localforage.743dffdd.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/vuex.cc7cb26e.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"single-file",path:"/single/file/:codeOrFileId",component:()=>D(()=>import("./file.d8007700.js"),["js/build/file.d8007700.js","js/build/file.faa69c59.css","js/build/FileContent.476946a0.js","js/build/FileContent.b41606aa.css","js/build/openpgp_hi.15f91b1d.js","js/build/IFrame.742911bb.js","js/build/jquery.6e4daff9.js","js/build/@babel.9410f858.js","js/build/dayjs.d20a4841.js","js/build/localforage.743dffdd.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/vuex.cc7cb26e.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js","js/build/FilePreview.2741939d.js"])},{name:"single-task-content",path:"/single/task/content/:taskId",component:()=>D(()=>import("./taskContent.c53ad1c7.js"),["js/build/taskContent.c53ad1c7.js","js/build/taskContent.e7e754e7.css","js/build/TEditor.64c880bb.js","js/build/tinymce.498510f2.js","js/build/@babel.9410f858.js","js/build/ImgUpload.434d067a.js","js/build/chunkedUpload.3cd238b0.js","js/build/axios.37c7f908.js","js/build/spark-md5.0443325f.js","js/build/vuex.cc7cb26e.js","js/build/jquery.6e4daff9.js","js/build/dayjs.d20a4841.js","js/build/localforage.743dffdd.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/openpgp_hi.15f91b1d.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"single-task",path:"/single/task/:taskId",component:()=>D(()=>import("./task.ceb3b6f4.js"),["js/build/task.ceb3b6f4.js","js/build/task.a4c33b20.css","js/build/TaskDetail.6dbf17d2.js","js/build/TaskDetail.eb06ff10.css","js/build/vuex.cc7cb26e.js","js/build/add.0e2a5c01.js","js/build/add.90416dbc.css","js/build/DialogWrapper.bc988036.js","js/build/chunkedUpload.3cd238b0.js","js/build/axios.37c7f908.js","js/build/spark-md5.0443325f.js","js/build/index.f7653997.js","js/build/vue-virtual-scroll-list-hi.74ad83f0.js","js/build/@babel.9410f858.js","js/build/vue.adba9046.js","js/build/lodash.8fcd6fd4.js","js/build/ImgUpload.434d067a.js","js/build/webhook.378987f3.js","js/build/TEditor.64c880bb.js","js/build/tinymce.498510f2.js","js/build/jquery.6e4daff9.js","js/build/dayjs.d20a4841.js","js/build/localforage.743dffdd.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/openpgp_hi.15f91b1d.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"single-dialog",path:"/single/dialog/:dialogId",component:()=>D(()=>import("./dialog.4cf864e7.js"),["js/build/dialog.4cf864e7.js","js/build/dialog.f35a7a2e.css","js/build/DialogWrapper.bc988036.js","js/build/vuex.cc7cb26e.js","js/build/chunkedUpload.3cd238b0.js","js/build/axios.37c7f908.js","js/build/spark-md5.0443325f.js","js/build/index.f7653997.js","js/build/vue-virtual-scroll-list-hi.74ad83f0.js","js/build/@babel.9410f858.js","js/build/vue.adba9046.js","js/build/lodash.8fcd6fd4.js","js/build/ImgUpload.434d067a.js","js/build/webhook.378987f3.js","js/build/jquery.6e4daff9.js","js/build/dayjs.d20a4841.js","js/build/localforage.743dffdd.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/openpgp_hi.15f91b1d.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"single-apps",path:"/single/apps/:name",component:()=>D(()=>import("./apps.cb5fb384.js"),["js/build/apps.cb5fb384.js","js/build/vuex.cc7cb26e.js","js/build/index.eb447f83.js","js/build/index.9742549c.css","js/build/vue.adba9046.js","js/build/@babel.9410f858.js","js/build/view-design-hi.24419422.js","js/build/@micro-zoe.39406924.js","js/build/DialogWrapper.bc988036.js","js/build/chunkedUpload.3cd238b0.js","js/build/axios.37c7f908.js","js/build/spark-md5.0443325f.js","js/build/index.f7653997.js","js/build/vue-virtual-scroll-list-hi.74ad83f0.js","js/build/lodash.8fcd6fd4.js","js/build/ImgUpload.434d067a.js","js/build/webhook.378987f3.js","js/build/jquery.6e4daff9.js","js/build/dayjs.d20a4841.js","js/build/localforage.743dffdd.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/openpgp_hi.15f91b1d.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/html-to-md.f297036e.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"single-valid-email",path:"/single/valid/email",component:()=>D(()=>import("./validEmail.44c293c3.js"),["js/build/validEmail.44c293c3.js","js/build/validEmail.6e361ca9.css","js/build/jquery.6e4daff9.js","js/build/@babel.9410f858.js","js/build/dayjs.d20a4841.js","js/build/localforage.743dffdd.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"single-report-edit",path:"/single/report/edit/:reportEditId",component:()=>D(()=>import("./reportEdit.834e99b9.js"),["js/build/reportEdit.834e99b9.js","js/build/reportEdit.6962c3d0.css","js/build/ReportEdit.5ea53e87.js","js/build/openpgp_hi.15f91b1d.js","js/build/vuex.cc7cb26e.js","js/build/jquery.6e4daff9.js","js/build/@babel.9410f858.js","js/build/dayjs.d20a4841.js","js/build/localforage.743dffdd.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"single-report-detail",path:"/single/report/detail/:reportDetailId",component:()=>D(()=>import("./reportDetail.e5a9b56f.js"),["js/build/reportDetail.e5a9b56f.js","js/build/reportDetail.1d7536d4.css","js/build/ReportDetail.00959436.js","js/build/openpgp_hi.15f91b1d.js","js/build/vuex.cc7cb26e.js","js/build/jquery.6e4daff9.js","js/build/@babel.9410f858.js","js/build/dayjs.d20a4841.js","js/build/localforage.743dffdd.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"token",path:"/token",component:()=>D(()=>import("./token.ff455828.js"),["js/build/token.ff455828.js","js/build/token.85beaced.css","js/build/jquery.6e4daff9.js","js/build/@babel.9410f858.js","js/build/dayjs.d20a4841.js","js/build/localforage.743dffdd.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"login",path:"/login",component:()=>D(()=>import("./login.3eb79900.js"),["js/build/login.3eb79900.js","js/build/vuex.cc7cb26e.js","js/build/@chenfengyuan.dfd1ecb7.js","js/build/jquery.6e4daff9.js","js/build/@babel.9410f858.js","js/build/dayjs.d20a4841.js","js/build/localforage.743dffdd.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"preload",path:"/preload",component:()=>D(()=>import("./preload.55967afa.js"),["js/build/preload.55967afa.js","js/build/jquery.6e4daff9.js","js/build/@babel.9410f858.js","js/build/dayjs.d20a4841.js","js/build/localforage.743dffdd.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"404",path:"*",component:()=>D(()=>import("./404.459463dd.js"),["js/build/404.459463dd.js","js/build/404.d686a01f.css","js/build/jquery.6e4daff9.js","js/build/@babel.9410f858.js","js/build/dayjs.d20a4841.js","js/build/localforage.743dffdd.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])}];const rt=$A(window).width(),ag=$A(window).height(),Mt=$A.screenOrientation(),lg=$A.isFullScreen();var cg={clientId:"",cacheVersion:"v17",windowActive:!0,windowScrollY:0,safeAreaSize:{top:0,bottom:0,data:null},viewportHeight:0,windowTouch:"ontouchend"in document,windowWidth:rt,windowHeight:ag,isFirstPage:!1,windowOrientation:Mt,windowLandscape:Mt==="landscape",windowPortrait:Mt==="portrait",windowIsFullScreen:lg,formOptions:{class:rt>576?"":"form-label-weight-bold",labelPosition:rt>576?"right":"top",labelWidth:rt>576?"auto":""},keyboardShow:!1,keyboardHeight:0,isModKey:!1,appNotificationPermission:!0,audioPlaying:null,routeName:null,routePath:null,routeHistorys:[],routeHistoryLast:{},routeLoading:0,mobileTabbar:!1,callAt:[],loads:[],loadDashboardTasks:null,loadUserBasic:!1,loadProjects:0,loadDialogs:0,loadDialogAuto:!1,loadDialogLatestId:0,floatSpinnerTimer:[],floatSpinnerLoad:0,touchBackInProgress:!1,cacheUserWait:[],cacheUserBasic:[],cacheUserExtra:{},cacheCalendarView:null,cacheDialogs:[],cacheProjects:[],cacheColumns:[],cacheTasks:[],cacheProjectParameter:[],cacheDepartmentOwnerIds:[],departmentOwnerProjectViewEnabled:!1,departmentOwnerViewRestored:!1,departmentOwnerProjectsRefreshing:!1,departmentOwnerReadonlyUrls:["project/lists","project/one","project/column/lists","project/task/lists","project/task/one","project/task/content","project/task/content_history","project/task/files","project/task/fileinfo","project/task/subdata","project/task/related","project/flow/list","project/log/lists","project/tag/list"],cacheEmojis:[],cacheServerUrl:"",cacheKeyboard:{},ajaxAuthException:null,ajaxNetworkException:null,ws:null,wsCall:{},wsTimeout:null,wsRandom:0,wsOpenNum:0,userInfo:{},userId:0,userToken:"",userIsAdmin:!1,userAvatar:{},dialogId:0,dialogMsgId:0,dialogMsgKeep:30,dialogSearchMsgId:0,dialogIns:[],dialogMsgs:[],dialogTodos:[],dialogMsgTops:[],dialogHistory:[],dialogDrafts:[],dialogQuotes:[],dialogWithdraws:[],dialogMsgTransfer:{time:0},dialogSseList:[],dialogDroupWordChain:{},dialogGroupVote:{},dialogModalShow:!1,dialogCommonCountCache:{},messengerSearchKey:{dialog:"",contacts:""},readLoadNum:0,readTimeout:null,readWaitData:{},fileLists:[],collaborationFileCache:{},collaborationFileViewMode:"list",fileLinks:[],filePackLists:[],fileShakeId:0,projectId:0,projectTotal:0,projectLoad:0,taskId:0,taskCompleteTemps:[],taskContents:[],taskFiles:[],taskLogs:[],taskOperation:{},taskRelatedCache:{},taskArchiveView:0,taskTemplates:[],taskLatestId:0,taskOneLoad:{},taskFlows:[],taskFlowItems:[],taskPriority:[],columnTemplate:[],columnColorList:[{name:"\u9ED8\u8BA4",color:""},{name:"\u84DD\u8272",color:"#51abea"},{name:"\u7EFF\u8272",color:"#73b45c"},{name:"\u9EC4\u8272",color:"#f2d86d"},{name:"\u6A59\u8272",color:"#faaa6c"},{name:"\u7EA2\u8272",color:"#ff7070"},{name:"\u7D2B\u8272",color:"#b583e3"},{name:"\u7C89\u8272",color:"#ff819c"},{name:"\u9752\u8272",color:"#3ad1c8"},{name:"\u68D5\u8272",color:"#947364"},{name:"\u7070\u8272",color:"#999999"},{name:"\u6DF1\u84DD",color:"#2b5caa"},{name:"\u6DF1\u7EFF",color:"#1a7f5a"},{name:"\u91D1\u8272",color:"#ffd700"},{name:"\u6E56\u84DD",color:"#00bcd4"}],taskColorList:[{name:"\u9ED8\u8BA4",color:"",primary:""},{name:"\u9EC4\u8272",color:"#fffae6",primary:"#f2d86d"},{name:"\u84DD\u8272",color:"#e5f5ff",primary:"#51abea"},{name:"\u7EFF\u8272",color:"#ecffe5",primary:"#73b45c"},{name:"\u7C89\u8272",color:"#ffeaee",primary:"#ff819c"},{name:"\u7D2B\u8272",color:"#f6ecff",primary:"#b583e3"},{name:"\u7070\u8272",color:"#f3f3f3",primary:"#999999"}],themeConf:window.localStorage.getItem("__system:themeConf__"),themeName:null,themeList:[{name:"\u8DDF\u968F\u7CFB\u7EDF",value:"auto"},{name:"\u660E\u4EAE",value:"light"},{name:"\u6697\u9ED1",value:"dark"}],clientNewVersion:null,systemNewVersion:null,clientDownloadUrl:"",previewImageIndex:0,previewImageList:[],reportUnreadNumber:0,apiKeyData:{},localKeyPair:{},localKeyLock:!1,systemConfig:{},meetingWindow:{show:!1,type:"",meetingid:0},appMeetingShow:!1,cacheTranslationLanguage:"",cacheTranslations:[],menuOperation:{},longpressData:{type:"",data:null,element:null},microApps:[],microAppsInstalled:[],microAppsIds:[],microAppsMenus:[],systemFunctions:{},mcpServerStatus:{running:"stopped"}},ug={isLoad(e){return function(s){const t=e.loads.find(i=>i.key===s);return!!(t&&t.num>0)}},isMessengerPage(e){return e.routeName==="manage-messenger"},projectData(e){if(e.projectId>0){let s=e.cacheProjects.find(({id:t})=>t==e.projectId);if(s){let t=e.cacheProjectParameter.find(({project_id:i})=>i==e.projectId);return t||(t=$A.projectParameterTemplate(e.projectId),e.cacheProjectParameter.push(t)),t.menuType===void 0&&(t.menuType="column"),s.cacheParameter=t,s}}return{cacheParameter:{}}},taskData(e){let s=e.taskId;if(s==0&&(s=$A.runNum(window.__taskId)),s>0){window.__taskId=s;const t=e.cacheTasks.find(({id:i})=>i==s);if(t)return t}return{}},transforTasks(e){return function(s){return s.filter(({parent_id:t})=>!(t>0&&s.find(({id:i})=>i==t))).map(t=>{if(t.parent_id>0){const i=e.cacheTasks.find(({id:n})=>n==t.parent_id);return i?Object.assign({},i,{id:t.id,parent_id:t.parent_id,name:t.name,start_at:t.start_at,end_at:t.end_at,complete_at:t.complete_at,_time:t._time,flow_item_id:t.flow_item_id,flow_item_name:t.flow_item_name,flow_item_status:t.flow_item_status,sub_top:!0,sub_my:[]}):Object.assign({},t,{sub_top:!0,sub_my:[]})}else return Object.assign({},t,{sub_top:!1,sub_my:s.filter(({parent_id:i})=>i==t.id)})})}},dashboardTask(e){const s=$A.daytz().startOf("day"),t=$A.daytz().endOf("day"),i=$A.daytz(),n=(a,l=!0)=>a.archived_at||a.complete_at&&l===!0||a.start_at&&$A.dayjs(a.start_at)>i?!1:a.owner==1;let r=e.cacheTasks.filter(a=>n(a));if(e.taskCompleteTemps.length>0){let a=e.cacheTasks.filter(l=>e.taskCompleteTemps.includes(l.id)&&n(l,!1));a.length>0&&(a.length,r=$A.cloneJSON(r),r.push(...a))}const o={overdue:[],today:[],todo:[],overdue_count:0,today_count:0,todo_count:0};return r.forEach(a=>{const l=e.taskCompleteTemps.includes(a.id);if(a.end_at&&$A.dayjs(a.end_at)<=i)o.overdue.push(a),l||o.overdue_count++;else if(a.end_at){const c=$A.dayjs(a.end_at);s<=c&&c<=t?(o.today.push(a),l||o.today_count++):(o.todo.push(a),l||o.todo_count++)}else o.todo.push(a),l||o.todo_count++}),o},assistTask(e){const s=(i,n=!0)=>i.archived_at||i.complete_at&&n===!0?!1:i.assist&&i.owner===0;let t=e.cacheTasks.filter(i=>s(i));if(e.taskCompleteTemps.length>0){const i=e.cacheTasks.filter(n=>e.taskCompleteTemps.includes(n.id)&&s(n,!1));i.length>0&&(t=$A.cloneJSON(t),t.push(...i))}return t.sort((i,n)=>{const r=i.end_at?$A.dayjs(i.end_at):$A.dayjs("2099-12-31 23:59:59"),o=n.end_at?$A.dayjs(n.end_at):$A.dayjs("2099-12-31 23:59:59");return r-o})},getDialogDraft:e=>s=>e.dialogDrafts.find(i=>i.id===s)||null,tagDialogDraft:e=>s=>{const t=e.dialogDrafts.find(i=>i.id===s);return!!(t!=null&&t.tag)},getDialogQuote:e=>s=>e.dialogQuotes.find(i=>i.id===s)||null,aiVisible(e,s){var i;const t=(i=e.microAppsIds)==null?void 0:i.includes("ai");return $A.isEEUIApp?t&&e.systemConfig.__state==="success"&&!s.appAiHidden:t},appAiHidden(e){return $A.isEEUIApp&&(e.systemConfig.__state!=="success"||e.systemConfig.app_ai_hidden===!0)},hiddenStoreAppIds(e,s){return s.appAiHidden?["ai"]:[]},visibleDialogs(e,s){return s.appAiHidden?e.cacheDialogs.filter(t=>!$A.isAiBotDialog(t)):e.cacheDialogs},systemFunctionEnabled:e=>s=>{var t;return((t=e.systemFunctions)==null?void 0:t[s])===!0},filterMicroAppsMenus:(e,s)=>e.microAppsMenus.filter(t=>t.location==="application"&&(t.id!=="ai"||s.aiVisible)),filterMicroAppsMenusAdmin:(e,s)=>e.microAppsMenus.filter(t=>t.location==="application/admin"&&(t.id!=="ai"||s.aiVisible)),filterMicroAppsMenusMain:(e,s)=>e.microAppsMenus.filter(t=>t.location==="main/menu"&&(t.id!=="ai"||s.aiVisible))};const he={timer:{},subTemp:null},De={timer:{},expire:5*60*1e3,schedule(e,s){this.timer[s.id]&&clearTimeout(this.timer[s.id]),this.timer[s.id]=setTimeout(()=>{delete this.timer[s.id],e("withdraw/remove",s.id)},Math.max(0,s.time+this.expire-new Date().getTime()))}};var dg={preload({state:e}){var s;window.addEventListener("resize",()=>{const t=$A(window).width(),i=$A(window).height(),n=$A.screenOrientation();e.windowTouch="ontouchend"in document,e.windowWidth=t,e.windowHeight=i,e.windowOrientation=n,e.windowLandscape=n==="landscape",e.windowPortrait=n==="portrait",e.windowIsFullScreen=$A.isFullScreen(),e.formOptions={class:t>576?"":"form-label-weight-bold",labelPosition:t>576?"right":"top",labelWidth:t>576?"auto":""},$A.eeuiAppSendMessage({action:"windowSize",width:t,height:i})}),window.addEventListener("scroll",()=>{e.windowScrollY=window.scrollY}),window.addEventListener("message",({data:t})=>{t=$A.jsonParse(t),t.action==="eeuiAppSendMessage"&&($A.isArray(t.data)?t.data:[t.data]).forEach(n=>{$A.eeuiAppSendMessage(n)})}),window.addEventListener("fullscreenchange",()=>{document.fullscreenElement?$A("body").addClass("fullscreen-mode"):$A("body").removeClass("fullscreen-mode")}),(s=window.visualViewport)==null||s.addEventListener("resize",()=>{e.viewportHeight=window.visualViewport.height||0})},init({state:e,dispatch:s}){return new Promise(async t=>{const i=$A.urlParameterAll(),n={language:"__system:languageName__",theme:"__system:themeConf__",userid:"__system:userId__",token:"__system:userToken__"},r={userid:0,token:null};if(Object.entries(n).forEach(([c,d])=>{i[c]&&(window.localStorage.setItem(d,i[c]),c==="userid"&&(r.userid=$A.runNum(i[c])),c==="token"&&(r.token=i[c]))}),Object.keys(n).some(c=>i[c])){const c=$A.removeURLParameter(window.location.href,Object.keys(n));window.history.replaceState(null,"",c)}if(r.userid>0&&r.token){const c=await $A.IDBJson("userInfo");await $A.IDBSet("userInfo",Object.assign(c,r))}let o=null;const a=await $A.IDBString("clearCache");a&&(a==="handle"&&(o="handleClearCache"),await $A.IDBRemove("clearCache"),await $A.IDBSet("cacheVersion","clear"));const l=await $A.IDBString("cacheVersion");l&&l!==e.cacheVersion?await s("handleClearCache"):await s("handleReadCache"),await s("synchTheme"),await s("handleKeyboard"),e.clientId||(e.clientId=$A.randomString(6),await $A.IDBSet("clientId",e.clientId)),s("call",{url:"users/key/client",data:{client_id:e.clientId},encrypt:!1}).then(({data:c})=>{e.apiKeyData=c}),s("systemSetting"),await $A.loadScriptS(["js/jsencrypt.min.js","js/scroll-into-view.min.js","language/web/key.js",`language/web/${M}.js`,`language/iview/${M}.js`]),Ar(),t(o)})},safeAreaInsets({state:e}){return new Promise(s=>{if(!e.isFirstPage)return s(null);$A.eeuiAppGetSafeAreaInsets().then(async t=>{var n,r,o,a;t.top=t.top||((r=(n=e.safeAreaSize)==null?void 0:n.data)==null?void 0:r.top)||0,t.bottom=t.bottom||((a=(o=e.safeAreaSize)==null?void 0:o.data)==null?void 0:a.bottom)||0;const i=t.height/window.outerHeight;e.safeAreaSize={top:Math.round(t.top/i*100)/100,bottom:Math.round(t.bottom/i*100)/100,data:t},s(e.safeAreaSize)}).catch(t=>{console.warn(t),s(null)})})},call({state:e,dispatch:s},t){var r;$A.isJson(t)||(t={url:t});const i={"Content-Type":"application/json",language:M,token:e.userToken,fd:$A.getSessionStorageString("userWsFd"),version:window.systemInfo.version||"0.0.1",platform:$A.Platform};if(!e.userToken&&((r=e.meetingWindow)==null?void 0:r.meetingSharekey)&&(i.sharekey=e.meetingWindow.meetingSharekey),$A.isJson(t.header)?t.header=Object.assign(i,t.header):t.header=i,e.systemConfig.e2e_message==="open"&&t.encrypt===void 0&&$A.inArray(t.url,["users/login","users/editpass","users/operation","users/delete/account","system/license","users/bot/*","dialog/msg/*"],!0)&&(t.encrypt=!0),t.departmentOwner!==!1&&e.systemConfig.department_owner_project_view==="open"&&e.departmentOwnerProjectViewEnabled&&e.departmentOwnerReadonlyUrls.includes(t.url)&&(e.cacheDepartmentOwnerIds||[]).length>0&&($A.isJson(t.data)||(t.data={}),t.data.department_owner_ids===void 0&&(t.data.department_owner_ids=e.cacheDepartmentOwnerIds.join(","))),t.encrypt){const o=window.navigator.userAgent;(window.systemInfo.debug==="yes"||/Windows NT 5.1|Windows XP/.test(o)||o.indexOf("Windows NT 6.0")!==-1||o.indexOf("Windows NT 6.1")!==-1||o.indexOf("Windows NT 6.2")!==-1)&&(t.encrypt=!1)}t.url=$A.apiUrl(t.url),t.data=$A.newDateString(t.data);const n=$A.cloneJSON(t);return new Promise(async(o,a)=>{if(/^https?:\/\/public\//.test(t.url)){a({ret:-1,data:{},msg:"No server address"});return}const l=[];if(t.encrypt===!0&&(t.data&&e.apiKeyData.type==="pgp"&&(l.push(`encrypt_type=${e.apiKeyData.type};encrypt_id=${e.apiKeyData.id}`),t.method="post",t.data={encrypted:await s("pgpEncryptApi",t.data)}),l.push("client_type=pgp;client_key="+(await s("pgpGetLocalKey")).publicKeyB64)),l.length>0&&(t.header.encrypt=l.join(";")),t.method==="post"&&(t.data=JSON.stringify(t.data)),t.spinner===!0||typeof t.spinner=="number"&&t.spinner>0){const{before:c,complete:d}=t;t.before=()=>{s("showSpinner",typeof t.spinner=="number"?t.spinner:0),typeof c=="function"&&c()},t.complete=()=>{s("hiddenSpinner"),typeof d=="function"&&d()}}t.success=async(c,d,h)=>{if(!$A.isJson(c)){console.log(c,d,h),a({ret:-1,data:{},msg:$A.L("\u8FD4\u56DE\u53C2\u6570\u9519\u8BEF")});return}t.encrypt===!0&&c.encrypted&&(c=await s("pgpDecryptApi",c.encrypted));const{ret:u,data:p,msg:g}=c;if(u===-1&&(e.userId=0,t.checkAuth!==!1)){e.ajaxAuthException=g||$A.L("\u8BF7\u767B\u5F55\u540E\u7EE7\u7EED..."),a(Object.assign(c,{msg:!1}));return}if(u===-2&&t.checkNick!==!1){s("userEditInput","nickname").then(()=>{s("call",n).then(o).catch(a)}).catch(_=>{a({ret:-1,data:p,msg:_||$A.L("\u8BF7\u8BBE\u7F6E\u6635\u79F0")})});return}if(u===-3&&t.checkTel!==!1){s("userEditInput","tel").then(()=>{s("call",n).then(o).catch(a)}).catch(_=>{a({ret:-1,data:p,msg:_||$A.L("\u8BF7\u8BBE\u7F6E\u8054\u7CFB\u7535\u8BDD")})});return}if(u===1){o({data:p,msg:g,xhr:h});return}a({ret:u,data:p,msg:g||$A.L("\u672A\u77E5\u9519\u8BEF")}),u===-4001?s("forgetProject",{id:p.project_id}):u===-4002?(p.force===1&&(e.taskArchiveView=0),s("forgetTask",{id:p.task_id})):u===-4003?s("forgetDialog",{id:p.dialog_id}):u===-4004&&s("getTaskForParent",p.task_id).catch(()=>{})},t.error=async(c,d)=>{const h={ret:-1,data:{},msg:$A.L("\u8BF7\u6C42\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5\u3002")};if(window.navigator.onLine===!1||d===0&&c.readyState===4){if(n.method!=="post"&&n.networkFailureRetry!==!1){await new Promise(p=>setTimeout(p,1e3)),s("call",Object.assign(n,{networkFailureRetry:!1})).then(o).catch(a);return}h.ret=-1001,h.msg=t.checkNetwork!==!1?!1:$A.L("\u7F51\u7EDC\u5F02\u5E38\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5\u3002"),t.checkNetwork!==!1&&$A.Ready!==!1&&(e.ajaxNetworkException=$A.L("\u7F51\u7EDC\u8FDE\u63A5\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u8BBE\u7F6E\u3002"))}a(h),console.error(c,d)},$A.ajaxc(t)})},callCancel({state:e},s){return new Promise((t,i)=>{$A.ajaxcCancel(s)?t():i()})},systemSetting({dispatch:e,state:s}){return new Promise((t,i)=>{switch(s.systemConfig.__state){case"success":t(s.systemConfig);break;case"loading":setTimeout(n=>{e("systemSetting").then(t).catch(i)},100);break;default:s.systemConfig.__state="loading",e("call",{url:"system/setting"}).then(({data:n})=>{s.systemConfig=Object.assign(n,{timezoneDifference:$A.updateTimezone(n.server_timezone),__state:"success"}),t(s.systemConfig)}).catch(n=>{s.systemConfig.__state="error",i()});break}})},downUrl({state:e},s){if(!s)return;let t=s,i=!0;if($A.isJson(s)&&(t=s.url,i=!!s.token),i){let n={token:e.userToken};$A.isJson(s)&&(t=s.url,n=s.params||{}),t=$A.urlAddParams(t,n)}$A.Electron?($A.Electron.request({action:"openDownloadWindow",language:M,theme:e.themeName}),$A.Electron.request({action:"createDownload",url:t})):$A.isEEUIApp?$A.eeuiAppOpenWeb(t):window.open(t)},filePos({state:e,getters:s,dispatch:t},i){if($A.isSubElectron){$A.syncDispatch("filePos",i),$A.Electron.sendMessage("mainWindowActive");return}t("openTask",0),(!s.isMessengerPage||e.windowPortrait)&&t("openDialog",0);const{board:n,...r}=i;$A.goForward({name:"manage-file",params:r,query:["mine","shared"].includes(n)?{board:n}:void 0})},toggleProjectParameter({commit:e,state:s},t){$A.syncDispatch("toggleProjectParameter",t);let i=t,n=null,r=s.projectId;if($A.isJson(t)&&(i=t.key,n=t.value,r=t.project_id),r){let o=s.cacheProjectParameter.findIndex(l=>l.project_id==r);o===-1&&(e("project/parameter/push",$A.projectParameterTemplate(r)),o=s.cacheProjectParameter.findIndex(l=>l.project_id==r));const a=s.cacheProjectParameter[o];$A.isJson(i)||(i={[i]:n||!a[i]}),e("project/parameter/splice",{index:o,data:Object.assign(a,i)})}},setTheme({state:e,dispatch:s},t){return new Promise(function(i){if(t===void 0){i(!1);return}if(!$A.dark.utils.supportMode()){$A.isEEUIApp?$A.modalWarning("\u4EC5Android\u8BBE\u7F6E\u652F\u6301\u4E3B\u9898\u529F\u80FD"):$A.modalWarning("\u4EC5\u5BA2\u6237\u7AEF\u6216Chrome\u6D4F\u89C8\u5668\u652F\u6301\u4E3B\u9898\u529F\u80FD"),i(!1);return}s("synchTheme",{mode:t}),i(!0)})},synchTheme({state:e,dispatch:s},{mode:t,...i}={}){switch($A.syncDispatch("synchTheme",{...i,mode:t}),typeof t=="undefined"?t=e.themeConf:e.themeConf=t,t){case"dark":$A.dark.enableDarkMode();break;case"light":$A.dark.disableDarkMode();break;default:e.themeConf="auto",$A.dark.autoDarkMode();break}e.themeName=$A.dark.isDarkEnabled()?"dark":"light",window.localStorage.setItem("__system:themeConf__",e.themeConf),$A.isEEUIApp?$A.eeuiAppSendMessage({action:"updateTheme",themeName:e.themeName,themeDefault:{theme:{dark:"#131313",light:"#f8f8f8"},nav:{dark:"#cdcdcd",light:"#232323"}}}):$A.isElectron&&$A.Electron.sendMessage("setStore",{key:"themeConf",value:e.themeConf})},async getBasicData({state:e,dispatch:s},t){if(typeof t=="number"){window.__getBasicDataTimer&&clearTimeout(window.__getBasicDataTimer),t>-1&&(window.__getBasicDataTimer=setTimeout(r=>s("getBasicData",null),t));return}const i=e.userId+$A.dayjs().unix();if(window.__getBasicDataKey===i)return;window.__getBasicDataKey=i,s("getDialogAuto").catch(()=>{}),s("getDialogTodo",0).catch(()=>{}),s("getTaskPriority",1e3),s("getReportUnread",1e3),s("getProjectsForDepartmentOwnerView").catch(()=>{}),s("getTaskForDashboard"),s("dialogMsgRead"),s("updateMicroAppsStatus");const n=Object.values(e.userAvatar).map(({userid:r})=>r).filter(r=>r>0);[...new Set(n)].some(r=>s("getUserBasic",{userid:r}))},getReportUnread({state:e,dispatch:s},t){window.__getReportUnread&&clearTimeout(window.__getReportUnread),window.__getReportUnread=setTimeout(()=>{e.userId===0?e.reportUnreadNumber=0:s("call",{url:"report/unread"}).then(({data:i})=>{e.reportUnreadNumber=i.total||0}).catch(i=>{})},typeof t=="number"?t:1e3)},getUserInfo({dispatch:e}){return new Promise(function(s,t){e("call",{url:"users/info"}).then(i=>{e("saveUserInfo",i.data),s(i)}).catch(i=>{console.warn(i),t(i)})})},getUserExtra({state:e,dispatch:s},t){return new Promise(async(i,n)=>{if(!t){n({msg:"userid missing"});return}const r=e.cacheUserExtra||{},o=r[`${t}`],a=Date.now();if(o&&o.data&&a-o.updatedAt<3e4){i(o.data);return}try{const{data:l}=await s("call",{url:"users/extra",data:{userid:t}});e.cacheUserExtra=Object.assign({},r,{[`${t}`]:{data:l,updatedAt:Date.now()}}),i(l)}catch(l){n(l)}})},saveUserExtra({state:e},s){var r;const t=$A.runNum(s==null?void 0:s.userid);if(!t||!$A.isJson(s==null?void 0:s.data))return;const i=e.cacheUserExtra||{},n=((r=i[`${t}`])==null?void 0:r.data)||{};e.cacheUserExtra=Object.assign({},i,{[`${t}`]:{data:Object.assign({},n,s.data),updatedAt:Date.now()}})},saveUserInfoBase({state:e,dispatch:s},t){return new Promise(async i=>{const n=$A.cloneJSON(t);n.userid=$A.runNum(n.userid),n.token=n.userid>0?n.token||e.userToken:"",e.userInfo=n,e.userId=n.userid,e.userToken=n.token,e.userIsAdmin=$A.inArray("admin",n.identity),$A.isSubElectron||$A.isEEUIApp&&!e.isFirstPage||await $A.IDBSet("userInfo",e.userInfo),$A.eeuiAppSendMessage({action:"userChatList",language:$A.eeuiAppConvertLanguage(),url:$A.mainUrl("api/users/share/list")+`?token=${e.userToken}`}),$A.eeuiAppSendMessage({action:"userUploadUrl",dirUrl:$A.mainUrl("api/file/content/upload")+`?token=${e.userToken}`,chatUrl:$A.mainUrl("api/dialog/msg/sendfiles")+`?token=${e.userToken}`}),i()})},saveUserInfo({commit:e,state:s,dispatch:t},i){return new Promise(async n=>{await t("saveUserInfoBase",i),t("getBasicData",null),s.userId>0&&(e("user/save",s.cacheUserBasic.filter(({userid:r})=>r!==s.userId)),t("saveUserBasic",s.userInfo)),n()})},getUserBasic({state:e,dispatch:s},t){if(e.loadUserBasic===!0){t&&e.cacheUserWait.push(t);return}let i=$A.dayjs().unix(),n=$A.cloneJSON(e.cacheUserWait);t&&t.userid&&n.push(t),e.cacheUserWait=[];let r=[],o=0;n.some(a=>{let l=e.cacheUserBasic.find(({userid:c})=>c==a.userid);if(l&&i-l._time<=30)return setTimeout(()=>{x.emit("userActive",{type:"cache",data:l})},o+=5),!1;r.push(a)}),r.length!==0&&(r.length>30&&(e.cacheUserWait=r.slice(30),r=r.slice(0,30)),e.loadUserBasic=!0,s("call",{url:"users/basic",data:{userid:[...new Set(r.map(({userid:a})=>a))]},checkAuth:!1}).then(a=>{i=$A.dayjs().unix(),r.forEach(l=>{let c=a.data.find(({userid:d})=>d==l.userid)||Object.assign(l,{email:""});c._time=i,s("saveUserBasic",c)}),e.loadUserBasic=!1,s("getUserBasic")}).catch(a=>{console.warn(a),e.loadUserBasic=!1,s("getUserBasic")}))},getUserData({state:e,dispatch:s},t){return new Promise(async(i,n)=>{let r=e.cacheUserBasic.find(o=>o.userid==t);if(!r)try{const{data:o}=await s("call",{url:"users/basic",data:{userid:[t]},checkAuth:!1});r=o.find(a=>a.userid==t)}catch{}r?i($A.cloneJSON(r)):n()})},saveUserBasic({commit:e,state:s},t){$A.syncDispatch("saveUserBasic",t);const i=s.cacheUserBasic.findIndex(({userid:n})=>n==t.userid);i>-1?(t=Object.assign({},s.cacheUserBasic[i],t),e("user/splice",{index:i,data:t})):e("user/push",t),x.emit("userActive",{type:"cache",data:t})},editUserBot({dispatch:e},s){return new Promise((t,i)=>{let n=0;s.dialog_id&&(n=s.dialog_id,delete s.dialog_id),e("call",{url:"users/bot/edit",data:s,method:"post"}).then(({data:r,msg:o})=>{e("saveUserBasic",{userid:r.id,nickname:r.name,userimg:r.avatar}),n&&e("saveDialog",{id:n,name:r.name}),t({data:r,msg:o})}).catch(i)})},userEditInput({dispatch:e},s){return new Promise(function(t,i){let n="";if(s==="nickname")n="\u6635\u79F0";else if(s==="tel")n="\u8054\u7CFB\u7535\u8BDD";else{i("\u53C2\u6570\u9519\u8BEF");return}setTimeout(r=>{$A.modalInput({title:`\u8BBE\u7F6E${n}`,placeholder:`\u8BF7\u8F93\u5165\u60A8\u7684${n}`,okText:"\u4FDD\u5B58",onOk:o=>o?new Promise((a,l)=>{e("call",{url:"users/editdata",data:{[s]:o},checkNick:!1,checkTel:!1}).then(()=>{e("getUserInfo").finally(c=>{a(),t()})}).catch(({msg:c})=>{l(c)})}):`\u8BF7\u8F93\u5165${n}`,onCancel:o=>i})},100)})},getDepartmentList({dispatch:e}){return new Promise((s,t)=>{const i=(n,r=0,o=0,a=[])=>{let l=[];return n.some(c=>{if(c.parent_id==r){const d=Object.assign({},c,{chains:a.concat([c.name]),level:o+1});l.push(d);const h=i(n,c.id,o+1,a.concat([c.name]));l=l.concat(h)}}),l};e("call",{url:"users/department/list"}).then(({data:n})=>{s(i(n,0,1))}).catch(t)})},logout({state:e,dispatch:s},t=!0){return new Promise(async i=>{try{await s("call",{url:"users/logout",timeout:6e3})}catch(n){console.log(n)}s("handleClearCache",{}).then(()=>{let n=["/","/login"].includes(window.location.pathname)?"":encodeURIComponent(window.location.href);t===!1&&(n=null),$A.goForward({name:"login",query:n?{from:n}:{}},!0),i()})})},handleKeyboard({state:e},s){return new Promise(t=>{window.localStorage.getItem("__system:keyboardConf__")||(window.localStorage.setItem("__system:keyboardConf__",window.localStorage.getItem("__keyboard:data__")),window.localStorage.removeItem("__keyboard:data__"));const i=$A.isJson(s)?s:$A.jsonParse(window.localStorage.getItem("__system:keyboardConf__"))||{};i.screenshot_key=(i.screenshot_key||"").trim().toLowerCase(),i.send_button_app=i.send_button_app||"button",i.send_button_desktop=i.send_button_desktop||"enter",window.localStorage.setItem("__system:keyboardConf__",$A.jsonStringify(i)),e.cacheKeyboard=i,t(i)})},handleClearCache({state:e,dispatch:s},t){return new Promise(async i=>{e.loadDashboardTasks=null;const n=["themeConf","languageName","keyboardConf"],r=n.reduce((l,c)=>({...l,[c]:window.localStorage.getItem(`__system:${c}__`)}),{});window.localStorage.clear(),n.forEach(l=>window.localStorage.setItem(`__system:${l}__`,r[l]));const o=["clientId","cacheServerUrl","cacheCalendarView","cacheProjectParameter","cacheLoginEmail","cacheFileSort","cacheTranslationLanguage","cacheTranslations","cacheEmojis","userInfo","mcpServerStatus","aiAssistant.model","aiAssistant.sessions"];await $A.IDBClear(o),await $A.IDBSet("cacheVersion",e.cacheVersion);const a=await $A.IDBJson("userInfo");await s("saveUserInfoBase",$A.isJson(t)?t:a),await s("handleReadCache"),e.ajaxAuthException=null,i()})},handleReadCache({state:e,commit:s}){return new Promise(async t=>{const i={string:["clientId","cacheServerUrl","cacheCalendarView","cacheTranslationLanguage","collaborationFileViewMode"],array:["cacheUserBasic","cacheProjects","cacheDepartmentOwnerIds","cacheColumns","cacheTasks","cacheProjectParameter","cacheTranslations","dialogMsgs","dialogDrafts","dialogQuotes","dialogWithdraws","fileLists","callAt","cacheEmojis","cacheDialogs","microAppsIds","microAppsMenus"],json:["userInfo","taskRelatedCache","dialogCommonCountCache","collaborationFileCache","mcpServerStatus","systemFunctions"]},n=$A.IDBValue("departmentOwnerProjectViewEnabled"),r=await Promise.all([...i.string.map(u=>$A.IDBString(u)),...i.array.map(u=>$A.IDBArray(u)),...i.json.map(u=>$A.IDBJson(u))]),o=await n;[...i.string,...i.array,...i.json].forEach((u,p)=>{u==="cacheDepartmentOwnerIds"?s("department/owner/ids/save",r[p]):e[u]=r[p]});const a=typeof o=="boolean"?o:(e.cacheDepartmentOwnerIds||[]).length>0;s("department/owner/enabled/save",a),e.cacheDialogs=e.cacheDialogs.map(u=>({...u,loading:!1})),e.dialogDrafts=e.dialogDrafts.filter(u=>!!u.content).map(u=>({...u,tag:!!u.content}));const l=new Date().getTime(),c=e.dialogWithdraws.length;e.dialogWithdraws=e.dialogWithdraws.filter(u=>u.time&&l-u.timeDe.schedule(s,u)),e.dialogWithdraws.length!==c&&$A.IDBSave("dialogWithdraws",e.dialogWithdraws),typeof ve[e.cacheTranslationLanguage]=="undefined"&&(e.cacheTranslationLanguage=M),e.userInfo.userid&&(e.userId=e.userInfo.userid=$A.runNum(e.userInfo.userid),e.userToken=e.userInfo.token,e.userIsAdmin=$A.inArray("admin",e.userInfo.identity));const d=(e.userInfo.managed_departments||[]).map(u=>parseInt(u.id)).filter(u=>u>0);let h=(e.cacheDepartmentOwnerIds||[]).map(u=>parseInt(u)).filter(u=>d.includes(u));h.length===0&&(h=d),s("department/owner/ids/save",[...new Set(h)]),h.length===0&&s("department/owner/enabled/save",!1),e.cacheServerUrl&&(window.systemInfo.apiUrl=e.cacheServerUrl),t()})},onBeforeUnload(){$A.isSubElectron&&he.subTemp&&($A.syncDispatch("saveDialogDraft",he.subTemp),he.subTemp=null)},scrollBottom({state:e},s){if(!s)return;const t=s.getBoundingClientRect();!t||window.scrollTo({top:t.bottom+e.safeAreaSize.bottom,behavior:"smooth"})},userUrl({state:e},s){return new Promise(t=>{if($A.getDomain(s)==$A.mainDomain()&&ze(window.location))try{const n=new URL(s);if(/^\/(single|meeting)\//.test(n.pathname)){const r=new URL(window.location);return r.hash=n.pathname+n.search,t(r.toString())}}catch{}const i={language:M,theme:e.themeConf,userid:e.userId};($A.getDomain(s)==$A.mainDomain()||ze(s))&&(i.token=e.userToken),t($A.urlAddParams(s,i))})},openAppMapPage({dispatch:e},s){return new Promise(t=>{const i=$A.L("\u5B9A\u4F4D\u7B7E\u5230"),n=$A.randomString(6),r={title:i,label:$A.L("\u9009\u62E9\u9644\u8FD1\u5730\u70B9"),placeholder:$A.L("\u641C\u7D22\u5730\u70B9"),noresult:$A.L("\u9644\u8FD1\u6CA1\u6709\u627E\u5230\u5730\u70B9"),errtip:$A.L("\u5B9A\u4F4D\u5931\u8D25"),selectclose:"true",channel:n};$A.eeuiAppSetVariate(`location::${n}`,"");const o=$A.urlAddParams(window.location.origin+"/tools/map/index.html",Object.assign(r,s||{}));e("openAppChildPage",{pageType:"app",pageTitle:i,url:"web.js",params:{titleFixed:!0,hiddenDone:!0,url:o},callback:({status:a})=>{if(a==="pause"){const l=$A.jsonParse($A.eeuiAppGetVariate(`location::${n}`));if(l.point){if($A.eeuiAppSetVariate(`location::${n}`,""),l.distance>s.radius){$A.modalError(`\u4F60\u9009\u62E9\u7684\u4F4D\u7F6E\u300C${l.title}\u300D\u4E0D\u5728\u7B7E\u5230\u8303\u56F4\u5185`);return}t(l)}}}})})},async openAppChildPage({dispatch:e},s){s.params.url=await e("userUrl",s.params.url),typeof s.params.allowAccess=="undefined"&&(s.params.allowAccess=ze(s.params.url)),typeof s.params.showProgress=="undefined"&&(s.params.showProgress=!ze(s.params.url)),$A.eeuiAppOpenPage(s)},async openWindow({dispatch:e},s){typeof s=="string"&&(s={path:s});const t=$A.getDomain(s.path);t&&t!==$A.mainDomain()?s.webPreferences=Object.assign({contextIsolation:!1},s.webPreferences):s.path=await e("userUrl",s.path),$A.Electron.sendMessage("openWindow",{name:s.name,url:s.path,mode:s.mode,title:s.title,titleFixed:s.titleFixed,width:s.width,height:s.height,minWidth:s.minWidth,minHeight:s.minHeight,userAgent:s.userAgent,force:s.force,webPreferences:s.webPreferences})},saveFile({commit:e,state:s,dispatch:t},i){if($A.syncDispatch("saveFile",i),$A.isArray(i))i.forEach(n=>{t("saveFile",n)});else if($A.isJson(i)){let n={_load:!1,_edit:!1};const r=s.fileLists.findIndex(({id:o})=>o==i.id);r>-1?e("file/splice",{index:r,data:Object.assign(n,s.fileLists[r],i)}):e("file/push",Object.assign(n,i))}},forgetFile({commit:e,state:s,dispatch:t},i){$A.syncDispatch("forgetFile",i),($A.isArray(i.id)?i.id:[i.id]).some(r=>{e("file/save",s.fileLists.filter(o=>o.id!=r)),s.fileLists.some(o=>{o.pid==r&&t("forgetFile",o)})})},packProgress({state:e,dispatch:s},t){$A.syncDispatch("packProgress",t);const i=e.filePackLists.findIndex(({name:n})=>n==t.name);i>-1?e.filePackLists[i].progress=t.progress:e.filePackLists.push(t)},getFiles({commit:e,state:s,dispatch:t},i){const n=typeof i=="object"&&i!==null?i.pid:i,r=typeof i=="object"&&i!==null?i.scope:void 0;return new Promise(function(o,a){t("call",{url:"file/lists",data:r?{pid:n,scope:r}:{pid:n}}).then(l=>{const c=l.data.map(({id:h})=>h),d=s.userId;e("file/save",s.fileLists.filter(h=>h.pid!=n||c.includes(h.id)?!0:n>0?!1:r==="mine"?h.userid!=d:r==="shared"?!(h.userid!=d||h.share):!1)),t("saveFile",l.data),o(l)}).catch(l=>{console.warn(l),a(l)})})},searchFiles({state:e,dispatch:s},t){return $A.isJson(t)||(t={key:t}),new Promise(function(i,n){s("call",{url:"file/search",data:t}).then(r=>{s("saveFile",r.data),i(r)}).catch(r=>{console.warn(r),n(r)})})},normalizeDepartmentOwnerIds({state:e},s){const t=(e.userInfo.managed_departments||[]).map(i=>parseInt(i.id));return $A.isArray(s)||(s=[]),[...new Set(s.map(i=>parseInt(i)).filter(i=>i>0&&t.includes(i)))]},async getProjectsForDepartmentOwnerView({state:e,dispatch:s,commit:t}){if(await s("systemSetting").catch(()=>{}),e.systemConfig.department_owner_project_view!=="open"){t("department/owner/ids/save",[]),t("department/owner/enabled/save",!1),s("getProjectByQueue");return}const i=await s("restoreDepartmentOwnerView");if(i.enabled&&i.ids.length>0){await s("getProjects",{__replace:!0,department_owner_ids:i.ids.join(",")});return}s("getProjectByQueue")},async restoreDepartmentOwnerView({state:e,dispatch:s,commit:t}){if(e.departmentOwnerViewRestored)return{enabled:e.departmentOwnerProjectViewEnabled,ids:e.cacheDepartmentOwnerIds||[]};if(e.systemConfig.department_owner_project_view!=="open")return t("department/owner/ids/save",[]),t("department/owner/enabled/save",!1),{enabled:!1,ids:[]};e.departmentOwnerViewRestored=!0;const i=(e.userInfo.managed_departments||[]).map(o=>parseInt(o.id)).filter(o=>o>0);let n=await s("normalizeDepartmentOwnerIds",e.cacheDepartmentOwnerIds);n.length===0&&(n=[...new Set(i)]);const r=e.departmentOwnerProjectViewEnabled&&n.length>0;return t("department/owner/ids/save",n),t("department/owner/enabled/save",r),r&&(e.departmentOwnerProjectsRefreshing=!0),{enabled:r,ids:n}},async setDepartmentOwnerIds({state:e,dispatch:s,commit:t},i){const n=$A.isJson(i);let r=n?i.ids:i,o=n&&typeof i.projectViewEnabled=="boolean"?i.projectViewEnabled:e.departmentOwnerProjectViewEnabled;e.systemConfig.department_owner_project_view!=="open"&&(r=[],o=!1);let a=await s("normalizeDepartmentOwnerIds",r);e.systemConfig.department_owner_project_view==="open"&&a.length===0&&(a=(e.userInfo.managed_departments||[]).map(p=>parseInt(p.id)).filter(p=>p>0)),a=[...new Set(a)],o=o&&a.length>0;const l=(e.cacheDepartmentOwnerIds||[]).slice().sort().join(","),c=a.slice().sort().join(","),d=l!==c,h=e.departmentOwnerProjectViewEnabled!==o;if(!d&&!h)return;let u=null;(h||o&&d)&&(e.departmentOwnerProjectsRefreshing=!0,u=await s("refreshDepartmentOwnerProjects",{ownerIds:a,enabled:o})),t("department/owner/ids/save",a),t("department/owner/enabled/save",o),u!=null&&u.route&&$A.goForward(u.route)},async refreshDepartmentOwnerProjects({state:e,dispatch:s},t={}){const i=e.routeName==="manage-project"?e.projectId:0,n=typeof t.enabled=="boolean"?t.enabled:e.departmentOwnerProjectViewEnabled;let r=t.ownerIds||e.cacheDepartmentOwnerIds;r=(r||[]).map(a=>parseInt(a)).filter(a=>a>0);const o=n?r.join(","):"";e.departmentOwnerProjectsRefreshing=!0,e.callAt=e.callAt.filter(a=>{const l=String(a.key);return!l.startsWith("projects::")&&!l.startsWith("tasks::")});try{if(await s("getProjects",{__replace:!0,department_owner_ids:o}),i>0){if(!e.cacheProjects.find(({id:l})=>l==i)){const l=$A.cloneJSON(e.cacheProjects).sort((c,d)=>c.top_at||d.top_at?$A.sortDay(d.top_at,c.top_at):d.id-c.id).find(({id:c})=>c);return{route:l?{name:"manage-project",params:{projectId:l.id}}:{name:"manage-dashboard"}}}await s("getProjectOne",{project_id:i,department_owner_ids:o}).catch(()=>{}),await s("getTaskForProject",{project_id:i,department_owner_ids:o}).catch(()=>{})}}finally{e.departmentOwnerProjectsRefreshing=!1}},saveProject({commit:e,state:s,dispatch:t},i){if($A.syncDispatch("saveProject",i),$A.isArray(i))i.forEach(n=>{t("saveProject",n)});else if($A.isJson(i)){typeof i.project_column!="undefined"&&(t("saveColumn",i.project_column),delete i.project_column);const n=s.cacheProjects.findIndex(({id:r})=>r==i.id);n>-1?e("project/splice",{index:n,data:Object.assign({},s.cacheProjects[n],i)}):(typeof i.project_user=="undefined"&&(i.project_user=[]),e("project/push",i),s.projectTotal++),s.cacheDialogs.some(r=>{if(r.type=="group"&&r.group_type=="project"&&r.group_info&&r.group_info.id==i.id){i.name!==void 0&&(r.name=i.name);for(let o in r.group_info)!r.group_info.hasOwnProperty(o)||i[o]===void 0||(r.group_info[o]=i[o])}})}},forgetProject({commit:e,state:s,dispatch:t},i){$A.syncDispatch("forgetProject",i);const n=$A.isArray(i.id)?i.id:[i.id];if(n.some(r=>{const o=s.cacheProjects.findIndex(a=>a.id==r);o>-1&&(t("forgetTask",{id:s.cacheTasks.filter(a=>a.project_id==i.id).map(a=>a.id)}),t("forgetColumn",{id:s.cacheColumns.filter(a=>a.project_id==i.id).map(a=>a.id)}),e("project/splice",{index:o}),s.projectTotal=Math.max(0,s.projectTotal-1))}),n.includes(s.projectId)){const r=$A.cloneJSON(s.cacheProjects).sort((o,a)=>o.top_at||a.top_at?$A.sortDay(a.top_at,o.top_at):a.id-o.id).find(({id:o})=>o&&o!=i.id);r?$A.goForward({name:"manage-project",params:{projectId:r.id}}):$A.goForward({name:"manage-dashboard"})}},getProjects({state:e,dispatch:s},t){$A.isJson(t)||(t={});const i=t.__replace===!0;return delete t.__replace,e.systemConfig.department_owner_project_view!=="open"?delete t.department_owner_ids:t.department_owner_ids===void 0&&(e.departmentOwnerProjectViewEnabled&&(e.cacheDepartmentOwnerIds||[]).length>0?t.department_owner_ids=e.cacheDepartmentOwnerIds.join(","):delete t.department_owner_ids),i&&(e.callAt=e.callAt.filter(n=>!String(n.key).startsWith("projects::")),$A.IDBSet("callAt",e.callAt).catch(()=>{})),new Promise(function(n,r){if(e.userId===0){e.cacheProjects=[],r({msg:"Parameter error"});return}const o=kt("projects",t,e);setTimeout(()=>{e.loadProjects++},2e3),s("call",{url:"project/lists",data:o.get()}).then(({data:a})=>{i&&(e.cacheProjects=[]),s("saveProject",a.data),o.save(a).then(l=>s("forgetProject",{id:l})),e.projectTotal=a.total_all,n(a)}).catch(a=>{console.warn(a),r(a)}).finally(a=>{i&&(e.departmentOwnerProjectsRefreshing=!1),e.loadProjects--})})},getProjectByQueue({dispatch:e},s=null){if(window.__getProjectByQueueTimer&&clearTimeout(window.__getProjectByQueueTimer),typeof s=="number"){window.__getProjectByQueueTimer=setTimeout(t=>e("getProjectByQueue",null),s);return}e("getProjects").catch(()=>{})},getProjectOne({state:e,dispatch:s},t){return new Promise(function(i,n){const r=$A.isJson(t)?{...t}:{project_id:t},o=r.project_id;if($A.runNum(o)===0){n({msg:"Parameter error"});return}e.projectLoad++,s("call",{url:"project/one",data:r}).then(a=>{setTimeout(()=>{e.projectLoad--},10),s("saveProject",a.data),i(a)}).catch(a=>{console.warn(a),e.projectLoad--,n(a)})})},archivedProject({state:e,dispatch:s},t){return new Promise(function(i,n){if($A.runNum(t)===0){n({msg:"Parameter error"});return}s("call",{url:"project/archived",data:{project_id:t}}).then(r=>{s("forgetProject",{id:t}),i(r)}).catch(r=>{console.warn(r),s("getProjectOne",t).catch(()=>{}),n(r)})})},removeProject({state:e,dispatch:s},t){return new Promise(function(i,n){if($A.runNum(t)===0){n({msg:"Parameter error"});return}s("call",{url:"project/remove",data:{project_id:t}}).then(r=>{s("forgetProject",{id:t}),i(r)}).catch(r=>{console.warn(r),s("getProjectOne",t).catch(()=>{}),n(r)})})},exitProject({state:e,dispatch:s},t){return new Promise(function(i,n){if($A.runNum(t)===0){n({msg:"Parameter error"});return}s("call",{url:"project/exit",data:{project_id:t}}).then(r=>{s("forgetProject",{id:t}),i(r)}).catch(r=>{console.warn(r),s("getProjectOne",t).catch(()=>{}),n(r)})})},saveColumn({commit:e,state:s,dispatch:t},i){if($A.syncDispatch("saveColumn",i),$A.isArray(i))i.forEach(n=>{t("saveColumn",n)});else if($A.isJson(i)){const n=s.cacheColumns.findIndex(({id:r})=>r==i.id);n>-1?e("project/column/splice",{index:n,data:Object.assign({},s.cacheColumns[n],i)}):e("project/column/push",i)}},forgetColumn({commit:e,state:s,dispatch:t},i){$A.syncDispatch("forgetColumn",i);const n=$A.isArray(i.id)?i.id:[i.id],r=[];n.some(o=>{const a=s.cacheColumns.findIndex(l=>l.id==o);a>-1&&(t("forgetTask",{id:s.cacheTasks.filter(l=>l.column_id==i.id).map(l=>l.id)}),r.push(s.cacheColumns[a].project_id),e("project/column/splice",{index:a}))}),Array.from(new Set(r)).some(o=>t("getProjectOne",o).catch(()=>{}))},getColumns({commit:e,state:s,dispatch:t},i){return new Promise(function(n,r){if(s.userId===0){s.cacheColumns=[],r({msg:"Parameter error"});return}s.projectLoad++,t("call",{url:"project/column/lists",data:{project_id:i}}).then(({data:o})=>{s.projectLoad--;const a=o.data.map(({id:l})=>l);if(e("project/column/save",s.cacheColumns.filter(l=>l.project_id!=i||a.includes(l.id))),t("saveColumn",o.data),n(o.data),s.cacheColumns.filter(l=>l.project_id==i).length===1){const l=s.cacheProjectParameter.find(c=>c.project_id==i)||{};(typeof l.menuInit=="undefined"||l.menuInit===!1)&&t("toggleProjectParameter",{project_id:i,key:{menuInit:!0,menuType:"table"}})}}).catch(o=>{console.warn(o),s.projectLoad--,r(o)})})},removeColumn({state:e,dispatch:s},t){return new Promise(function(i,n){if($A.runNum(t)===0){n({msg:"Parameter error"});return}s("call",{url:"project/column/remove",data:{column_id:t}}).then(r=>{s("forgetColumn",{id:t}),i(r)}).catch(r=>{console.warn(r),n(r)})})},saveTask({commit:e,state:s,dispatch:t},i){if($A.syncDispatch("saveTask",i),$A.isArray(i))i.forEach(n=>{t("saveTask",n)});else if($A.isJson(i)){if(i._time=$A.dayjs().unix(),i.flow_item_name&&i.flow_item_name.indexOf("|")!==-1){const o=$A.convertWorkflow(i.flow_item_name);i.flow_item_status=o.status,i.flow_item_name=o.name,i.flow_item_color=o.color}typeof i.archived_at!="undefined"&&s.cacheTasks.filter(o=>o.parent_id==i.id).some(o=>{t("saveTask",Object.assign(o,{archived_at:i.archived_at,archived_userid:i.archived_userid}))});let n={};typeof i.update_marking!="undefined"&&(n=$A.isJson(i.update_marking)?i.update_marking:{},delete i.update_marking);const r=s.cacheTasks.findIndex(({id:o})=>o==i.id);r>-1?e("task/splice",{index:r,data:Object.assign({},s.cacheTasks[r],i)}):e("task/push",i),(n.is_update_maintask===!0||i.parent_id>0&&s.cacheTasks.findIndex(({id:o})=>o==i.parent_id)===-1)&&t("getTaskOne",i.parent_id).catch(()=>{}),n.is_update_project===!0&&t("getProjectOne",i.project_id).catch(()=>{}),n.is_update_content===!0&&t("getTaskContent",i.id),n.is_update_subtask===!0&&t("getTaskForParent",i.id).catch(()=>{}),s.cacheDialogs.some(o=>{if(o.name===void 0||o.dialog_delete===1)return!1;if(o.type=="group"&&o.group_type=="task"&&o.group_info&&o.group_info.id==i.id){i.name!==void 0&&(o.name=i.name);for(let a in o.group_info)!o.group_info.hasOwnProperty(a)||i[a]===void 0||(o.group_info[a]=i[a])}})}},forgetTask({commit:e,state:s,dispatch:t},i){$A.syncDispatch("forgetTask",i);const n=($A.isArray(i.id)?i.id:[i.id]).filter(a=>a!=s.taskArchiveView),r=[],o=[];n.some(a=>{const l=s.cacheTasks.findIndex(c=>c.id==a);l>-1&&(s.cacheTasks[l].parent_id&&r.push(s.cacheTasks[l].parent_id),o.push(s.cacheTasks[l].project_id),e("task/splice",{index:l})),s.cacheTasks.filter(c=>c.parent_id==a).some(c=>{let d=s.cacheTasks.findIndex(h=>h.id==c.id);d>-1&&(o.push(c.project_id),e("task/splice",{index:d}))})}),Array.from(new Set(r)).some(a=>t("getTaskOne",a).catch(()=>{})),Array.from(new Set(o)).some(a=>t("getProjectOne",a).catch(()=>{})),n.includes(s.taskId)&&(s.taskId=0)},todayAndOverdue({state:e,dispatch:s}){const t=$A.daytz(),i=t.format("YYYY-MM-DD");e.cacheTasks.some(n=>{if(!n.end_at)return!1;const r={},o=$A.dayjs(n.end_at);!n.today&&o.format("YYYY-MM-DD")==i&&(r.today=!0),!n.overdue&&o0&&s("saveTask",Object.assign(n,r))})},increaseTaskMsgNum({state:e,commit:s},t){$A.syncDispatch("increaseTaskMsgNum",t);const i=e.cacheTasks.findIndex(n=>n.dialog_id===t.id);if(i!==-1){const n=$A.cloneJSON(e.cacheTasks[i]);n.msg_num++,s("task/splice",{index:i,data:n})}},increaseMsgReplyNum({state:e,commit:s},t){$A.syncDispatch("increaseMsgReplyNum",t);const i=e.dialogMsgs.findIndex(n=>n.id==t.id);if(i!==-1){const n=$A.cloneJSON(e.dialogMsgs[i]);n.reply_num++,s("message/splice",{index:i,data:n})}},decrementMsgReplyNum({state:e,commit:s},t){$A.syncDispatch("decrementMsgReplyNum",t);const i=e.dialogMsgs.findIndex(n=>n.id==t.id);if(i!==-1){const n=$A.cloneJSON(e.dialogMsgs[i]);n.reply_num--,s("message/splice",{index:i,data:n})}},getTasks({state:e,dispatch:s},t){$A.isJson(t)||(t={}),t.department_owner_ids===void 0&&(e.departmentOwnerProjectViewEnabled&&(e.cacheDepartmentOwnerIds||[]).length>0?t.department_owner_ids=e.cacheDepartmentOwnerIds.join(","):delete t.department_owner_ids);const i=kt("tasks",t,e);return new Promise(function(n,r){if(e.userId===0){e.cacheTasks=[],r({msg:"Parameter error"});return}t.project_id&&e.projectLoad++,s("call",{url:"project/task/lists",data:i.get()}).then(({data:o})=>{t.project_id&&e.projectLoad--,s("saveTask",o.data),i.save(o).then(a=>s("forgetTask",{id:a})),o.next_page_url?(t.page=o.current_page+1,o.current_page%30===0?$A.modalConfirm({content:"\u6570\u636E\u5DF2\u8D85\u8FC7"+o.to+"\u6761\uFF0C\u662F\u5426\u7EE7\u7EED\u52A0\u8F7D\uFF1F",onOk:()=>{s("getTasks",t).then(n).catch(r)},onCancel:()=>{n()}}):s("getTasks",t).then(n).catch(r)):n()}).catch(o=>{console.warn(o),r(o),t.project_id&&e.projectLoad--})})},getTaskOne({state:e,dispatch:s},t){return new Promise(function(i,n){if(/^\d+$/.test(t)&&(t={task_id:t}),$A.runNum(t.task_id)===0){n({msg:"Parameter error"});return}if($A.isArray(e.taskOneLoad[t.task_id])){e.taskOneLoad[t.task_id].push({resolve:i,reject:n});return}e.taskOneLoad[t.task_id]=[],s("call",{url:"project/task/one",data:t}).then(r=>{s("saveTask",r.data),i(r),e.taskOneLoad[t.task_id].some(o=>{o.resolve(r)})}).catch(r=>{console.warn(r),n(r),e.taskOneLoad[t.task_id].some(o=>{o.reject(r)})}).finally(r=>{delete e.taskOneLoad[t.task_id]})})},getTaskSubData({state:e,dispatch:s},t){if(!t)return;const i=e.cacheTasks.find(({id:n})=>n==t);!i||s("call",{url:"project/task/subdata",data:{task_id:t}}).then(({data:n})=>{s("saveTask",Object.assign(i,n))}).catch(n=>{console.warn(n)})},getTaskForDashboard({state:e,dispatch:s},t){if(window.__getTaskForDashboard&&clearTimeout(window.__getTaskForDashboard),typeof t=="number"){t>-1&&(window.__getTaskForDashboard=setTimeout(i=>s("getTaskForDashboard",null),t));return}e.loadDashboardTasks!==!0&&(e.loadDashboardTasks=!0,s("getTasks",null).finally(i=>{e.loadDashboardTasks=!1}))},getTaskForProject({state:e,dispatch:s},t){return new Promise(function(i,n){const r=$A.isJson(t)?{...t}:{project_id:t};s("getTasks",r).then(i).catch(n)})},getTaskForParent({state:e,dispatch:s},t){return new Promise(function(i,n){s("getTasks",{parent_id:t}).then(i).catch(n)})},removeTask({state:e,dispatch:s},t){return new Promise(function(i,n){if($A.runNum(t.task_id)===0){n({msg:"Parameter error"});return}s("setLoad",{key:`task-${t.task_id}`,delay:300}),s("call",{url:"project/task/remove",data:t}).then(r=>{e.taskArchiveView=0,s("forgetTask",{id:t.task_id}),i(r)}).catch(r=>{console.warn(r),s("getTaskOne",t.task_id).catch(()=>{}),n(r)}).finally(r=>{s("cancelLoad",`task-${t.task_id}`)})})},archivedTask({state:e,dispatch:s},t){return new Promise(function(i,n){if(/^\d+$/.test(t)&&(t={task_id:t}),$A.runNum(t.task_id)===0){n({msg:"Parameter error"});return}s("setLoad",{key:`task-${t.task_id}`,delay:300}),s("call",{url:"project/task/archived",data:t}).then(r=>{s("saveTask",r.data),i(r)}).catch(r=>{console.warn(r),s("getTaskOne",t.task_id).catch(()=>{}),n(r)}).finally(r=>{s("cancelLoad",`task-${t.task_id}`)})})},taskConvertToMain({dispatch:e},s){return new Promise(function(t,i){if(/^\d+$/.test(s)&&(s={task_id:s}),$A.runNum(s.task_id)===0){i({msg:"Parameter error"});return}e("setLoad",{key:`task-${s.task_id}`,delay:300}),e("call",{url:"project/task/upgrade",data:s}).then(n=>{const{task:r,parent:o}=n.data||{};r&&e("saveTask",r),o&&e("saveTask",o),t(n)}).catch(n=>{console.warn(n),e("getTaskOne",s.task_id).catch(()=>{}),i(n)}).finally(n=>{e("cancelLoad",`task-${s.task_id}`)})})},getTaskContent({state:e,dispatch:s},t){$A.runNum(t)!==0&&(s("setLoad",{key:`task-${t}`,delay:1200}),s("call",{url:"project/task/content",data:{task_id:t}}).then(i=>{s("saveTaskContent",i.data)}).catch(i=>{console.warn(i)}).finally(i=>{s("cancelLoad",`task-${t}`)}))},saveTaskContent({commit:e,state:s,dispatch:t},i){if($A.syncDispatch("saveTaskContent",i),$A.isArray(i))i.forEach(n=>{t("saveTaskContent",n)});else if($A.isJson(i)){const n=s.taskContents.findIndex(({task_id:r})=>r==i.task_id);n>-1?e("task/content/splice",{index:n,data:Object.assign({},s.taskContents[n],i)}):e("task/content/push",i)}},getTaskFiles({state:e,dispatch:s},t){$A.runNum(t)!==0&&s("call",{url:"project/task/files",data:{task_id:t}}).then(i=>{i.data.forEach(n=>{const r=e.taskFiles.findIndex(({id:o})=>o==n.id);r>-1?e.taskFiles.splice(r,1,n):e.taskFiles.push(n)}),s("saveTask",{id:t,file_num:i.data.length})}).catch(i=>{console.warn(i)})},forgetTaskFile({state:e,dispatch:s},t){($A.isArray(t)?t:[t]).some(n=>{const r=e.taskFiles.findIndex(o=>o.id==n);r>-1&&e.taskFiles.splice(r,1)})},openTask({state:e,dispatch:s},t){let i=t;if($A.isJson(t)&&(t.parent_id>0?i=t.parent_id:i=t.id),$A.isSubElectron){i>0?$A.Electron.sendMessage("updateWindow",{name:`task-${i}`,path:`/single/task/${i}`}):$A.Electron.sendMessage("windowClose");return}e.taskId>0&&x.emit("handleMoveTop","taskModal"),e.taskArchiveView=i,e.taskId=i,i>0?s("getTaskOne",{task_id:i,archived:"all"}).then(()=>{s("getTaskContent",i),s("getTaskFiles",i),s("getTaskForParent",i).catch(()=>{}),s("saveTaskBrowse",i)}).catch(({msg:n})=>{$A.modalWarning({content:n,onOk:()=>{e.taskId=0}})}):e.taskOperation={}},taskAdd({state:e,dispatch:s},t){return new Promise(function(i,n){const r=$A.cloneJSON($A.newDateString(t));$A.isArray(r.column_id)&&(r.column_id=r.column_id.find(o=>o)),s("call",{url:"project/task/add",data:r,spinner:600,method:"post"}).then(o=>{o.data.is_visible===1&&s("addTaskSuccess",o.data),e.taskLatestId=o.data.id,i(o)}).catch(o=>{console.warn(o),n(o)})})},getTaskRelated({state:e,commit:s,dispatch:t},i){return i=parseInt(i,10),i?new Promise((n,r)=>{t("call",{url:"project/task/related",data:{task_id:i}}).then(({data:o})=>{const a=(o.list||[]).map(l=>({...l,mention:!!l.mention,mentioned_by:!!l.mentioned_by}));s("task/related/save",{taskId:i,list:a,updatedAt:Date.now()}),n(a)}).catch(r)}):Promise.resolve([])},deleteTaskRelated({commit:e,dispatch:s},{taskId:t,relatedTaskId:i}){return new Promise((n,r)=>{s("call",{url:"project/task/related/delete",data:{task_id:t,related_task_id:i}}).then(({msg:o})=>{e("task/related/clear",t),e("task/related/clear",i),n(o)}).catch(r)})},taskAddSub({dispatch:e},s){return new Promise(function(t,i){e("call",{url:"project/task/addsub",data:s,spinner:600}).then(n=>{e("addTaskSuccess",n.data),t(n)}).catch(n=>{console.warn(n),i(n)})})},addTaskSuccess({dispatch:e},s){typeof s.new_column!="undefined"&&(e("saveColumn",s.new_column),delete s.new_column),e("saveTask",s),e("getTaskSubData",s.parent_id),e("getProjectOne",s.project_id).catch(()=>{})},taskUpdate({state:e,dispatch:s},t){return new Promise(function(i,n){s("taskBeforeUpdate",t).then(({post:r})=>{s("setLoad",{key:`task-${r.task_id}`,delay:300}),s("call",{url:"project/task/update",data:r,method:"post"}).then(o=>{s("saveTask",o.data),s("getTaskSubData",o.data.parent_id),i(o)}).catch(o=>{console.warn(o),s("getTaskOne",r.task_id).catch(()=>{}),n(o)}).finally(o=>{s("cancelLoad",`task-${r.task_id}`)})}).catch(n)})},taskBeforeUpdate({state:e,dispatch:s},t){return new Promise(function(i,n){let r=$A.cloneJSON($A.newDateString(t)),o="\u6E29\u99A8\u63D0\u793A",a=null;if(typeof r.times!="undefined"){t.times[0]===!1&&(a="\u4F60\u786E\u5B9A\u8981\u53D6\u6D88\u4EFB\u52A1\u65F6\u95F4\u5417\uFF1F");const l=e.cacheTasks.find(({id:c})=>c==r.task_id);o=l.parent_id>0?"\u66F4\u65B0\u5B50\u4EFB\u52A1":"\u66F4\u65B0\u4E3B\u4EFB\u52A1",l&&(l.parent_id>0?r.times[0]&&e.cacheTasks.some(c=>{if(c.id!=l.parent_id)return!1;if(!c.end_at)return a="\u4E3B\u4EFB\u52A1\u6CA1\u6709\u8BBE\u7F6E\u65F6\u95F4\uFF0C\u8BBE\u7F6E\u5B50\u4EFB\u52A1\u5C06\u540C\u6B65\u8BBE\u7F6E\u4E3B\u4EFB\u52A1",!0;let d=$A.dayjs(r.times[0]).unix(),h=$A.dayjs(r.times[1]).unix(),u=$A.dayjs(c.start_at).unix(),p=$A.dayjs(c.end_at).unix();if(dp)return a="\u65B0\u8BBE\u7F6E\u7684\u5B50\u4EFB\u52A1\u7ED3\u675F\u65F6\u95F4\u5728\u4E3B\u4EFB\u52A1\u65F6\u95F4\u4E4B\u5916\uFF0C\u4FEE\u6539\u540E\u5C06\u540C\u6B65\u4FEE\u6539\u4E3B\u4EFB\u52A1",!0}):e.cacheTasks.some(c=>{if(c.parent_id!=l.id||!c.end_at)return!1;let d=$A.dayjs(r.times[0]).unix(),h=$A.dayjs(r.times[1]).unix(),u=$A.dayjs(l.start_at).unix(),p=$A.dayjs(l.end_at).unix(),g=$A.dayjs(c.start_at).unix(),_=$A.dayjs(c.end_at).unix();if(u==g&&p==_)return!1;if(!r.times[0])return a=`\u5B50\u4EFB\u52A1\uFF08${c.name}\uFF09\u5DF2\u8BBE\u7F6E\u65F6\u95F4\uFF0C\u6E05\u9664\u4E3B\u4EFB\u52A1\u65F6\u95F4\u540E\u5C06\u540C\u6B65\u6E05\u9664\u5B50\u4EFB\u52A1\u7684\u65F6\u95F4`,!0;if(d>g)return a=`\u65B0\u8BBE\u7F6E\u7684\u5F00\u59CB\u65F6\u95F4\u5728\u5B50\u4EFB\u52A1\uFF08${c.name}\uFF09\u65F6\u95F4\u4E4B\u5185\uFF0C\u4FEE\u6539\u540E\u5C06\u540C\u6B65\u4FEE\u6539\u5B50\u4EFB\u52A1`,!0;if(h<_)return a=`\u65B0\u8BBE\u7F6E\u7684\u7ED3\u675F\u65F6\u95F4\u5728\u5B50\u4EFB\u52A1\uFF08${c.name}\uFF09\u65F6\u95F4\u4E4B\u5185\uFF0C\u4FEE\u6539\u540E\u5C06\u540C\u6B65\u4FEE\u6539\u5B50\u4EFB\u52A1`,!0}))}if(a===null){i({confirm:!1,post:r});return}$A.modalConfirm({title:o,content:a,onOk:()=>{i({confirm:!0,post:r})},onCancel:()=>{n({msg:!1})}})})},getTaskFlow({state:e,dispatch:s},{task_id:t,project_id:i}){return new Promise(function(n,r){s("call",{url:"project/task/flow",data:{task_id:t,project_id:i||0}}).then(o=>{let a=e.cacheTasks.find(({id:d})=>d==t),{data:l}=o;l.turns.some(d=>{const h=e.taskFlowItems.findIndex(({id:u})=>u==d.id);h>-1?e.taskFlowItems.splice(h,1,d):e.taskFlowItems.push(d),a&&a.flow_item_id==d.id&&a.flow_item_name!=d.name&&e.cacheTasks.filter(({flow_item_id:u})=>u==d.id).some(u=>{s("saveTask",{id:u.id,flow_item_name:`${d.status}|${d.name}|${d.color}`})})}),delete l.turns;const c=e.taskFlows.findIndex(({task_id:d})=>d==l.task_id);c>-1?e.taskFlows.splice(c,1,l):e.taskFlows.push(l),n(o)}).catch(o=>{console.warn(o),r(o)})})},getTaskPriority({state:e,dispatch:s},t){window.__getTaskPriority&&clearTimeout(window.__getTaskPriority),window.__getTaskPriority=setTimeout(()=>{s("call",{url:"system/priority"}).then(i=>{e.taskPriority=i.data}).catch(i=>{console.warn(i)})},typeof t=="number"?t:1e3)},getColumnTemplate({state:e,dispatch:s}){return new Promise(function(t,i){s("call",{url:"system/column/template"}).then(n=>{e.columnTemplate=n.data,t(n)}).catch(n=>{console.warn(n),i(n)})})},saveTaskCompleteTemp({state:e},s){/^\d+$/.test(s)&&!e.taskCompleteTemps.includes(s)&&e.taskCompleteTemps.push(s)},forgetTaskCompleteTemp({state:e},s){s===!0?e.taskCompleteTemps=[]:/^\d+$/.test(s)&&(e.taskCompleteTemps=e.taskCompleteTemps.filter(t=>t!=s))},saveTaskBrowse({dispatch:e},s){e("call",{url:"users/task/browse_save",data:{task_id:s}}).catch(t=>{console.warn("\u4FDD\u5B58\u4EFB\u52A1\u6D4F\u89C8\u5386\u53F2\u5931\u8D25:",t)})},getTaskBrowseHistory({dispatch:e},s=20){return e("call",{url:"users/task/browse",data:{limit:s},method:"get"})},getRecentBrowseHistory({dispatch:e},s={}){return e("call",{url:"users/recent/browse",data:s,method:"get"})},removeRecentBrowseRecord({dispatch:e},s){return e("call",{url:"users/recent/delete",data:{id:s},method:"post"})},taskDefaultTime({state:e,dispatch:s},t){return new Promise(async i=>{$A.isArray(t)&&t.length===2&&/\s+(00:00|23:59)$/.test(t[0])&&/\s+(00:00|23:59)$/.test(t[1])&&(t[0]=await s("taskDefaultStartTime",t[0]),t[1]=await s("taskDefaultEndTime",t[1])),i(t)})},taskDefaultStartTime({state:e},s){return new Promise(t=>{/(\s|^)([0-2]\d):([0-5]\d)(:\d{1,2})*$/.test(s)&&(s=s.replace(/(\s|^)([0-2]\d):([0-5]\d)(:\d{1,2})*$/,"$1"+e.systemConfig.task_default_time[0])),t(s)})},taskDefaultEndTime({state:e},s){return new Promise(t=>{/(\s|^)([0-2]\d):([0-5]\d)(:\d{1,2})*$/.test(s)&&(s=s.replace(/(\s|^)([0-2]\d):([0-5]\d)(:\d{1,2})*$/,"$1"+e.systemConfig.task_default_time[1])),t(s)})},async updateTaskTemplates({state:e,dispatch:s},t){const i=(e.cacheProjects||[]).find(({id:r})=>r==t);if(i&&i.task_template_share==="close"){const{data:r}=await s("call",{url:"project/task/template_list",data:{project_id:t||0}});e.taskTemplates=Array.isArray(r)?r:[];return}const{data:n}=await s("call",{url:"project/task/template_visible",data:{current_project_id:t||0}});e.taskTemplates=Array.isArray(n)?n:[]},checkFavoriteStatus({dispatch:e},{type:s,id:t}){return e("call",{url:"users/favorite/check",data:{type:s,id:t},method:"get"})},toggleFavorite({dispatch:e},{type:s,id:t}){return new Promise((i,n)=>{e("call",{url:"users/favorite/toggle",data:{type:s,id:t},method:"post"}).then(r=>{i(r);const{data:o,msg:a}=r;if(!o.favorited){$A.messageSuccess(a);return}$A.Message.success({duration:5,render:l=>l("span",[l("span",$A.L(a)),l("a",{style:{marginLeft:"8px"},on:{click:()=>{const c=o&&typeof o.remark=="string"?o.remark:"";$A.modalInput({title:$A.L("\u4FEE\u6539\u5907\u6CE8"),placeholder:$A.L("\u8BF7\u8F93\u5165\u4FEE\u6539\u5907\u6CE8"),okText:$A.L("\u4FDD\u5B58"),value:c,onOk:d=>{const h=typeof d=="string"?d.trim():"";return h?new Promise((u,p)=>{e("call",{url:"users/favorite/remark",data:{type:s,id:t,remark:h},method:"post"}).then(({msg:g})=>{$A.messageSuccess(g||$A.L("\u64CD\u4F5C\u6210\u529F")),u()}).catch(({msg:g})=>{p(g||$A.L("\u64CD\u4F5C\u5931\u8D25"))})}):$A.L("\u8BF7\u8F93\u5165\u4FEE\u6539\u5907\u6CE8")}})}}},$A.L("\u4FEE\u6539\u5907\u6CE8"))])})}).catch(({msg:r})=>{$A.modalError(r||this.$L("\u64CD\u4F5C\u5931\u8D25")),n()})})},checkFavoritesStatus({dispatch:e},{type:s,items:t}){if(!Array.isArray(t)||t.length===0)return Promise.resolve([]);const i=t.map(n=>e("checkFavoriteStatus",{type:s,id:n.id}).then(({data:r})=>({id:n.id,favorited:r.favorited||!1})).catch(()=>({id:n.id,favorited:!1})));return Promise.all(i)},saveDialog({commit:e,state:s,dispatch:t},i){var n;if($A.syncDispatch("saveDialog",i),$A.isArray(i))i.forEach(r=>{t("saveDialog",r)});else if($A.isJson(i)){i.id=parseInt(i.id);const r=s.cacheDialogs.findIndex(({id:a})=>a==i.id);let o=!1;if(typeof i.last_force!="undefined"&&(o=!0,delete i.last_force),r>-1){const a=s.cacheDialogs[r],l=i.user_ms,c=a.user_ms||0;ld.id==i.unread_one))!=null&&n.read_at&&delete i.unread_one,i.mention_ids&&(i.mention_ids=i.mention_ids.filter(d=>{var h;return!((h=s.dialogMsgs.find(u=>u.id==d))!=null&&h.read_at)})),!o&&i.last_at&&a.last_at&&$A.dayjs(i.last_at)<$A.dayjs(a.last_at)&&(delete i.last_at,delete i.last_msg),e("dialog/splice",{index:r,data:Object.assign({},a,i)})}else e("dialog/push",i)}},updateDialogLastMsg({state:e,dispatch:s},t){if($A.syncDispatch("updateDialogLastMsg",t),$A.isArray(t))t.forEach(i=>{s("updateDialogLastMsg",i)});else if($A.isJson(t))if(e.cacheDialogs.findIndex(({id:n})=>n==t.dialog_id)>-1){const n={id:t.dialog_id,last_msg:t,last_at:t.created_at||$A.daytz().format("YYYY-MM-DD HH:mm:ss")};t.mtype=="tag"&&(n.has_tag=!0),t.mtype=="todo"&&(n.has_todo=!0),t.mtype=="image"&&(n.has_image=!0),t.mtype=="file"&&(n.has_file=!0),t.link&&(n.has_link=!0),s("saveDialog",n)}else s("getDialogOne",t.dialog_id).catch(()=>{})},getDialogAuto({state:e,dispatch:s}){return new Promise(function(t,i){if(e.loadDialogAuto){i({msg:"Loading"});return}setTimeout(n=>{e.loadDialogs++},2e3),e.loadDialogAuto=!0,s("getDialogs").then(t).catch(i).finally(n=>{e.loadDialogs--,e.loadDialogAuto=!1})})},getDialogs({state:e,dispatch:s},t){return new Promise(function(i,n){if(e.userId===0){e.cacheDialogs=[],n({msg:"Parameter error"});return}$A.isJson(t)||(t={}),typeof t.page=="undefined"&&(t.page=1),typeof t.pagesize=="undefined"&&(t.pagesize=20);const r=kt("dialogs",t,e);s("call",{url:"dialog/lists",data:r.get()}).then(({data:o})=>{s("saveDialog",o.data),r.save(o).then(a=>s("forgetDialog",{id:a})),o.current_page===1&&s("getDialogLatestMsgs",o.data.map(({id:a})=>a)),o.next_page_url&&o.current_page<5?(t.page++,s("getDialogs",t).then(i).catch(n)):(i(),s("getDialogBeyonds"))}).catch(o=>{console.warn(o),n(o)})})},async getDialogBeyonds({state:e,dispatch:s}){const t=await $A.IDBString("dialogBeyond"),i=$A.daytz().format("YYYY-MM-DD HH");if(t==i)return;await $A.IDBSet("dialogBeyond",i);const n=a=>e.cacheDialogs.filter(a).sort((l,c)=>$A.sortDay(l.last_at,c.last_at)).find(({id:l})=>l>0),r=n(({unread:a,last_at:l})=>a>0&&l),o=n(({todo_num:a,last_at:l})=>a>0&&l);s("call",{url:"dialog/beyond",data:{unread_at:r?r.last_at:$A.dayjs().unix(),todo_at:o?o.last_at:$A.dayjs().unix()}}).then(({data:a})=>{s("saveDialog",a)})},getDialogOne({state:e,dispatch:s},t){return new Promise(function(i,n){if($A.runNum(t)===0){n({msg:"Parameter error"});return}s("call",{url:"dialog/one",data:{dialog_id:t}}).then(r=>{s("saveDialog",r.data),i(r)}).catch(r=>{console.warn(r),n(r)})})},getDialogTodo({commit:e,state:s,dispatch:t},i){t("call",{url:"dialog/todo",data:{dialog_id:i}}).then(({data:n})=>{$A.arrayLength(n)>0?(i>0&&(t("saveDialog",{id:i,todo_num:$A.arrayLength(n)}),e("dialog/todo/save",s.dialogTodos.filter(r=>r.dialog_id!=i))),t("saveDialogTodo",n)):i>0&&t("saveDialog",{id:i,todo_num:0})}).catch(console.warn)},getDialogMsgTop({state:e,dispatch:s},t){s("call",{url:"dialog/msg/topinfo",data:{dialog_id:t}}).then(({data:i})=>{$A.isJson(i)&&s("saveDialogMsgTop",i)}).catch(console.warn)},openDialog({state:e,dispatch:s},t){return new Promise(async(i,n)=>{let r,o,a;if($A.isJson(t)&&(r=t.single,o=t.search_msg_id,a=t.dialog_msg_id,t=t.dialog_id),r=typeof r=="boolean"?r:$A.isSubElectron,o=/^\d+$/.test(o)?parseInt(o):0,a=/^\d+$/.test(a)?parseInt(a):0,t=/^\d+$/.test(t)?parseInt(t):0,t>0&&e.cacheDialogs.findIndex(l=>l.id==t)===-1){s("showSpinner",300);try{await s("getDialogOne",t)}catch(l){n(l);return}finally{s("hiddenSpinner")}}if($A.Electron&&r){s("openDialogNewWindow",t),i();return}e.dialogModalShow?x.emit("handleMoveTop","dialogModal"):e.dialogId===t&&(e.dialogId=0),requestAnimationFrame(l=>{e.dialogSearchMsgId=o,e.dialogMsgId=a,e.dialogId=t,i()})})},openDialogUserid({state:e,dispatch:s},t){return new Promise((i,n)=>{const r=e.cacheDialogs.find(o=>o.type!=="user"||!o.dialog_user?!1:o.dialog_user.userid===t);if(r)return s("openDialog",r.id).then(i).catch(n);s("call",{url:"dialog/open/user",data:{userid:t},spinner:600}).then(async({data:o})=>{s("saveDialog",o),s("openDialog",o.id).then(i).catch(n)}).catch(o=>{console.warn(o),n(o)})})},openDialogEvent({state:e,dispatch:s},t){return new Promise((i,n)=>{if(!t){n({msg:"Parameter error"});return}s("call",{url:"dialog/open/event",data:{dialog_id:t}}).catch(r=>{console.warn(r),n(r)})})},openDialogNewWindow({state:e,dispatch:s},t){if($A.runNum(t)<=0)return;const i=e.cacheDialogs.find(({id:n})=>n===t)||{};s("openWindow",{name:`dialog-${t}`,path:`/single/dialog/${t}`,mode:"window",title:i.name,width:Math.min(window.screen.availWidth,1024),height:Math.min(window.screen.availHeight,768)})},forgetDialog({commit:e,state:s,dispatch:t},i){$A.syncDispatch("forgetDialog",i);const n=$A.isArray(i.id)?i.id:[i.id];n.some(r=>{$A.isJson(r)&&(r=r.id);const o=s.cacheDialogs.findIndex(a=>a.id==r);o>-1&&(t("forgetDialogMsg",{id:s.dialogMsgs.filter(a=>a.dialog_id==i.id).map(a=>a.id)}),e("dialog/splice",{index:o}))}),n.includes(s.dialogId)&&(s.dialogId=0)},saveInDialog({commit:e,state:s,dispatch:t},i){$A.syncDispatch("saveInDialog",i);const n=s.dialogIns.findIndex(a=>a.uid==i.uid);n>-1?e("dialog/in/splice",{index:n,data:Object.assign({},s.dialogIns[n],i)}):e("dialog/in/push",i);const r=5e3,o=500;if(e("dialog/history/save",s.dialogHistory.filter(a=>a!=i.dialog_id)),e("dialog/history/push",i.dialog_id),s.dialogMsgs.length>r&&s.dialogHistory.length>o){const a=s.dialogHistory.slice().reverse(),l=[],c=[];a.forEach(d=>{l.lengthh.dialog_id==d)>-1?l.push(d):c.push(d)}),c.length>0&&e("message/save",s.dialogMsgs.filter(d=>!c.includes(d.dialog_id))),e("dialog/history/save",l)}},forgetInDialog({state:e,commit:s},t){$A.syncDispatch("forgetInDialog",t);const i=e.dialogIns.findIndex(n=>n.uid==t.uid);i>-1&&s("dialog/in/splice",{index:i})},closeDialog({state:e,commit:s},t){if($A.syncDispatch("closeDialog",t),!/^\d+$/.test(t.id))return;s("draft/tag",t.id);const i=e.dialogMsgs.filter(n=>n.dialog_id==t.id);if(i.length>e.dialogMsgKeep){const n=i.sort((r,o)=>o.id-r.id).splice(e.dialogMsgKeep).map(r=>r.id);s("message/save",e.dialogMsgs.filter(r=>!n.includes(r.id)))}},clearDialogMsgs({state:e,commit:s},t){$A.syncDispatch("clearDialogMsgs",t),/^\d+$/.test(t.id)&&s("message/save",e.dialogMsgs.filter(i=>i.dialog_id!=t.id))},saveDialogTodo({commit:e,state:s,dispatch:t},i){if($A.syncDispatch("saveDialogTodo",i),$A.isArray(i))i.forEach(n=>{t("saveDialogTodo",n)});else if($A.isJson(i)){const n=s.dialogTodos.findIndex(r=>r.id==i.id);n>-1?e("dialog/todo/splice",{index:n,data:Object.assign({},s.dialogTodos[n],i)}):e("dialog/todo/push",i)}},forgetDialogTodoForMsgId({state:e,commit:s},t){$A.syncDispatch("forgetDialogTodoForMsgId",t);const i=e.dialogTodos.findIndex(n=>n.msg_id==t.id);i>-1&&s("dialog/todo/splice",{index:i})},saveDialogMsgTop({commit:e,state:s,dispatch:t},i){if($A.syncDispatch("saveDialogMsgTop",i),$A.isArray(i))i.forEach(n=>{t("saveDialogMsgTop",n)});else if($A.isJson(i)){e("dialog/msg/top/save",s.dialogMsgTops.filter(r=>r.dialog_id!=i.dialog_id));const n=s.dialogMsgTops.findIndex(r=>r.id==i.id);n>-1?e("dialog/msg/top/splice",{index:n,data:Object.assign({},s.dialogMsgTops[n],i)}):e("dialog/msg/top/push",i)}},forgetDialogMsgTopForMsgId({state:e,commit:s},t){$A.syncDispatch("forgetDialogMsgTopForMsgId",t);const i=e.dialogMsgTops.findIndex(n=>n.msg_id==t.id);i>-1&&s("dialog/msg/top/splice",{index:i})},saveDialogDraft({commit:e},{id:s,content:t,immediate:i=!1,...n}){if($A.isSubElectron){he.subTemp={id:s,content:t,immediate:!0};return}$A.syncDispatch("saveDialogDraft",{...n,id:s,content:t,immediate:i}),he.timer[s]&&(clearTimeout(he.timer[s]),delete he.timer[s]),he.timer[s]=setTimeout(()=>{e("draft/set",{id:s,content:t}),delete he.timer[s]},i||!t?0:600)},saveDialogQuote({commit:e},s){e("quote/set",s)},removeDialogQuote({commit:e},s){e("quote/remove",s)},saveDialogWithdraw({commit:e},s){s=Object.assign({time:new Date().getTime()},s),$A.syncDispatch("saveDialogWithdraw",s),e("withdraw/set",s),De.schedule(e,s)},forgetDialogWithdraw({commit:e},s){$A.syncDispatch("forgetDialogWithdraw",s),De.timer[s.id]&&(clearTimeout(De.timer[s.id]),delete De.timer[s.id]),e("withdraw/remove",s.id)},saveDialogMsg({commit:e,state:s,dispatch:t},i){if($A.syncDispatch("saveDialogMsg",i),$A.isArray(i)){i.forEach(o=>{t("saveDialogMsg",o)});return}i.type=="notice"&&(i.estimateSize=42);const n=s.dialogMsgs.findIndex(({id:o})=>o==i.id);if(n>-1){const o=s.dialogMsgs[n];o.read_at&&delete i.read_at,i=Object.assign({},o,i),e("message/splice",{index:n,data:i})}else e("message/push",i);const r=s.cacheDialogs.find(({id:o})=>o==i.dialog_id);if(r){let o=!1;!i.read_at&&i.userid!=s.userId&&!s.dialogIns.find(({dialog_id:a})=>a==r.id)&&(r.unread_one?r.unread_one=Math.min(r.unread_one,i.id):r.unread_one=i.id,o=!0),r.last_msg&&r.last_msg.id==i.id&&(r.last_msg=Object.assign({},r.last_msg,i),o=!0),o&&t("saveDialog",r)}},forgetDialogMsg({commit:e,state:s,dispatch:t},i){$A.syncDispatch("forgetDialogMsg",i),($A.isArray(i.id)?i.id:[i.id]).some(r=>{const o=s.dialogMsgs.findIndex(a=>a.id==r);if(o>-1){const a=s.dialogMsgs[o];t("decrementMsgReplyNum",{id:a.reply_id}),t("audioStop",$A.getObject(a,"msg.path")),e("message/splice",{index:o})}}),t("forgetDialogTodoForMsgId",i),t("forgetDialogMsgTopForMsgId",i)},getDialogMsgs({commit:e,state:s,dispatch:t,getters:i},n){return new Promise((r,o)=>{let a=u=>{},l=u=>{},c=!1,d=!1;typeof n.save_before!="undefined"&&(a=typeof n.save_before=="function"?n.save_before:u=>{},delete n.save_before),typeof n.save_after!="undefined"&&(l=typeof n.save_after=="function"?n.save_after:u=>{},delete n.save_after),typeof n.clear_before!="undefined"&&(c=typeof n.clear_before=="boolean"?n.clear_before:!1,delete n.clear_before),typeof n.spinner!="undefined"&&(d=n.spinner,delete n.spinner);const h=`msg::${n.dialog_id}-${n.msg_id}-${n.msg_type||""}`;if(i.isLoad(h)){o({msg:"Loading"});return}t("setLoad",h),c&&e("message/save",s.dialogMsgs.filter(({dialog_id:u})=>u!==n.dialog_id)),n.pagesize=25,t("call",{url:"dialog/msg/list",data:n,spinner:d,complete:u=>t("cancelLoad",h)}).then(u=>{a();const p=u.data;if($A.isJson(p.dialog)){const g=p.list.map(({id:_})=>_);e("message/save",s.dialogMsgs.filter(_=>_.dialog_id!=n.dialog_id||g.includes(_.id)||$A.dayjs(_.created_at).unix()>=p.time)),t("saveDialog",p.dialog)}$A.isArray(p.todo)&&(e("dialog/todo/save",s.dialogTodos.filter(g=>g.dialog_id!=n.dialog_id)),t("saveDialogTodo",p.todo)),$A.isJson(p.top)&&t("saveDialogMsgTop",p.top),t("saveDialogMsg",p.list),r(u),l()}).catch(u=>{console.warn(u),o(u)}).finally(u=>{if(n.prev_id){const p=s.dialogMsgs.find(({prev_id:g})=>g==n.prev_id);p&&(p.prev_id=0)}if(n.next_id){const p=s.dialogMsgs.find(({next_id:g})=>g==n.next_id);p&&(p.next_id=0)}})})},getDialogLatestMsgs({state:e,dispatch:s},t=[]){return new Promise(function(i,n){if(e.userId===0){n({msg:"Parameter error"});return}if(!$A.isArray(t)){n({msg:"Parameter is not array"});return}if(t.length===0){i();return}const r=t.slice(5),o=t.slice(0,5);s("call",{method:"post",url:"dialog/msg/latest",data:{dialogs:o.map(a=>{var l;return{id:a,latest_id:((l=e.dialogMsgs.sort((c,d)=>d.id-c.id).find(({dialog_id:c})=>c==a))==null?void 0:l.id)||0}}),take:e.dialogMsgKeep}}).then(({data:a})=>{s("saveDialogMsg",a.data),r.length>0?s("getDialogLatestMsgs",r).then(i).catch(n):i()}).catch(a=>{n(a)})})},dialogMsgRead({state:e,dispatch:s},t){if($A.isJson(t)){if(t.userid==e.userId||t.read_at)return;t.read_at=$A.daytz().format("YYYY-MM-DD HH:mm:ss"),e.readWaitData[t.id]=e.readWaitData[t.id]||0;const i=e.cacheDialogs.find(({id:n})=>n==t.dialog_id);if(i){let n=!1;if(t.id==i.unread_one&&(i.unread_one=0,n=!0),$A.isArray(i.mention_ids)){const r=i.mention_ids.findIndex(o=>o==t.id);r>-1&&(i.mention_ids.splice(r,1),n=!0)}n&&(s("saveDialog",i),e.readWaitData[t.id]=t.dialog_id)}}clearTimeout(e.readTimeout),e.readTimeout=setTimeout(i=>{if(e.readTimeout=null,e.userId===0){t&&(t.read_at=null);return}const n=Object.entries(e.readWaitData);if(n.length===0){t&&(t.read_at=null);return}const r=Object.fromEntries(n.slice(0,100));e.readWaitData=Object.fromEntries(n.slice(100)),s("call",{method:"post",url:"dialog/msg/read",data:{id:r}}).then(({data:o})=>{Object.entries(r).filter(([a,l])=>/^\d+$/.test(l)).forEach(([a,l])=>{e.dialogMsgs.filter(c=>c.dialog_id==l&&c.id>=a).forEach(c=>{c.read_at=$A.daytz().format("YYYY-MM-DD HH:mm:ss")})}),s("saveDialog",o)}).catch(o=>{Object.keys(r).forEach(a=>{const l=e.dialogMsgs.find(c=>c.id==a);l&&(l.read_at=null)}),e.readWaitData=Object.assign(e.readWaitData,r)}).finally(o=>{e.readLoadNum++})},50)},dialogMsgDot({state:e,dispatch:s},t){!$A.isJson(t)||!t.dot||(t.dot=0,s("call",{url:"dialog/msg/dot",data:{id:t.id}}).then(({data:i})=>{s("saveDialog",i)}))},dialogMsgMark({state:e,dispatch:s},t){return new Promise((i,n)=>{s("call",{url:"dialog/msg/mark",data:t}).then(r=>{typeof t.after_msg_id!="undefined"&&e.dialogMsgs.some(o=>{o.dialog_id==t.dialog_id&&o.id>=t.after_msg_id&&(o.read_at=$A.daytz().format("YYYY-MM-DD HH:mm:ss"))}),s("saveDialog",r.data),i(r)}).catch(r=>{n(r)})})},streamMsgSubscribe({state:e,dispatch:s},t){if(/^https?:\/\//i.test(t)||(t=$A.mainUrl(t.substring(1))),e.dialogSseList.find(n=>n.streamUrl==t))return;const i=new vn(t);i.subscribe(["append","replace","done"],(n,r)=>{switch(n){case"append":case"replace":const o=$A.jsonParse(r.data);s("streamMsgData",{type:n,id:r.lastEventId,text:o.content});break;case"done":const a=e.dialogSseList.findIndex(l=>i===l.sse);a>-1&&e.dialogSseList.splice(a,1),i.unsunscribe();break}}),e.dialogSseList.push({sse:i,streamUrl:t,time:$A.dayjs().unix()}),e.dialogSseList.length>10&&e.dialogSseList.shift().sse.close()},streamMsgData({state:e},s){$A.syncDispatch("streamMsgData",s),x.emit("streamMsgData",s)},saveTranslation({state:e},s){if(!$A.isJson(s))return;const t=e.cacheTranslations.find(i=>i.key==s.key&&i.language==s.language);if(t)t.content=s.content;else{const i=ve[s.language]||s.language;e.cacheTranslations.push(Object.assign(s,{label:i}))}$A.IDBSave("cacheTranslations",e.cacheTranslations.slice(-200))},removeTranslation({state:e},s){e.cacheTranslations=e.cacheTranslations.filter(t=>t.key!=s),$A.IDBSave("cacheTranslations",e.cacheTranslations.slice(-200))},setTranslationLanguage({state:e},s){e.cacheTranslationLanguage=s,$A.IDBSave("cacheTranslationLanguage",s)},setLoad({state:e,dispatch:s},t){if($A.isJson(t)){setTimeout(n=>{s("setLoad",t.key)},t.delay||0);return}const i=e.loads.find(n=>n.key==t);i?i.num++:e.loads.push({key:t,num:1})},cancelLoad({state:e},s){const t=e.loads.find(i=>i.key==s);t?t.num--:e.loads.push({key:s,num:-1})},showSpinner({state:e},s){const t=$A.randomString(6);e.floatSpinnerTimer.push({id:t,timer:setTimeout(i=>{e.floatSpinnerTimer=e.floatSpinnerTimer.filter(n=>n.id!==t),e.floatSpinnerLoad++},typeof s=="number"?s:0)})},hiddenSpinner({state:e,dispatch:s},t){if(typeof t=="number"){setTimeout(n=>{s("hiddenSpinner")},t);return}const i=e.floatSpinnerTimer.shift();i?clearTimeout(i.timer):e.floatSpinnerLoad--},previewImage({state:e},s){if($A.isJson(s)||(s={index:0,list:[s]}),s.list=s.list.map(t=>($A.isJson(t)?t.src=$A.thumbRestore(t.src):t=$A.thumbRestore(t),t)),typeof s.index=="string"){const t=$A.thumbRestore(s.index);s.index=Math.max(0,s.list.findIndex(i=>$A.isJson(i)?i.src==t:i==t))}e.previewImageIndex=s.index,e.previewImageList=s.list},audioPlay({state:e,dispatch:s},t){const i=document.getElementById("__audio_play_element__");if(i&&(i.pause(),i.src="",i.parentNode.removeChild(i)),!t||t===e.audioPlaying){e.audioPlaying=null;return}const n=document.createElement("audio");n.id=e.audioPlayId="__audio_play_element__",n.controls=!1,n.loop=!1,n.volume=1,n.src=e.audioPlaying=t,n.onended=r=>{s("audioStop",n.src)},document.body.appendChild(n),n.play().then(r=>{})},audioStop({state:e},s){const t=document.getElementById("__audio_play_element__");!t||(t.src===s||s===!0)&&(t.pause(),t.src="",t.parentNode.removeChild(t),e.audioPlaying=null)},websocketConnection({state:e,dispatch:s,commit:t}){if(clearTimeout(e.wsTimeout),e.ws&&(e.ws.close(),e.ws=null),e.userId===0)return;typeof window.wsInfo=="undefined"&&(window.wsInfo={msgCount:0,repeatCount:0,lastTime:0,lastData:null});let i=$A.mainUrl("ws");i=i.replace("https://","wss://"),i=i.replace("http://","ws://"),i+=`?action=web&token=${e.userToken}&language=${M}&platform=${$A.Platform}`;const n=$A.openLog,r=$A.randomString(16);e.wsRandom=r,e.ws=new WebSocket(i),e.ws.onopen=async o=>{n&&console.log("[WS] Open",o,$A.daytz().format("YYYY-MM-DD HH:mm:ss")),e.wsOpenNum++,!(window.systemInfo.debug==="yes"||e.systemConfig.e2e_message!=="open")&&s("websocketSend",{type:"encrypt",data:{type:"pgp",key:(await s("pgpGetLocalKey")).publicKeyB64}})},e.ws.onclose=async o=>{n&&console.log("[WS] Close",o,$A.daytz().format("YYYY-MM-DD HH:mm:ss")),e.ws=null,clearTimeout(e.wsTimeout),e.wsTimeout=setTimeout(()=>{r===e.wsRandom&&s("websocketConnection")},3e3)},e.ws.onerror=async o=>{n&&console.log("[WS] Error",o,$A.daytz().format("YYYY-MM-DD HH:mm:ss")),e.ws=null,clearTimeout(e.wsTimeout),e.wsTimeout=setTimeout(()=>{r===e.wsRandom&&s("websocketConnection")},3e3)},e.ws.onmessage=async o=>{if($A.inArray(e.routeName,["preload","404"])){n&&console.log("[WS] Preload",o);return}if($A.dayjs().unix()-window.wsInfo.lastTime<3&&window.wsInfo.lastData===o.data){console.log("[WS] Repeat",o,window.wsInfo.repeatCount),window.wsInfo.repeatCount++;return}window.wsInfo.msgCount++,window.wsInfo.lastTime=$A.dayjs().unix(),window.wsInfo.lastData=o.data,n&&console.log("[WS] Message",o);let a=$A.jsonParse(o.data);a.type==="encrypt"&&a.encrypted&&(a=await s("pgpDecryptApi",a.encrypted));const l=$A.formatMsgBasic(a),{type:c,msgId:d}=l;switch(c){case"open":$A.setSessionStorage("userWsFd",l.data.fd);break;case"receipt":typeof e.wsCall[d]=="function"&&e.wsCall[d](l.body,!0),delete e.wsCall[d];break;case"line":x.emit("userActive",{type:"line",data:l.data});break;case"msgStream":if($A.isSubElectron)return;s("streamMsgSubscribe",l.stream_url);break;case"operation":x.emit("aiOperationRequest",l.data);break;default:if(d&&s("websocketSend",{type:"receipt",msgId:d}).catch(h=>{}),x.emit("websocketMsg",l),$A.isSubElectron)return;switch(c){case"dialog":(function(h){const{mode:u,silence:p,data:g}=h,{dialog_id:_}=g;switch(u){case"delete":if(s("forgetDialogMsg",g),e.cacheDialogs.find(({id:C})=>C==_)){const C={id:_,last_msg:g.last_msg,last_at:g.last_msg?g.last_msg.created_at:$A.daytz().format("YYYY-MM-DD HH:mm:ss"),last_force:!0};g.update_read?s("call",{url:"dialog/msg/unread",data:{dialog_id:_}}).then(({data:U})=>{s("saveDialog",Object.assign(C,U))}).catch(()=>{}):s("saveDialog",C)}break;case"add":case"chat":const y=u==="add";if(!e.dialogMsgs.find(({id:C})=>C==g.id)&&(s("increaseTaskMsgNum",{id:g.dialog_id}),s("increaseMsgReplyNum",{id:g.reply_id}),y)){if(g.userid!==e.userId){const C=e.cacheDialogs.find(({id:U})=>U==_);if(C){const U={id:_,unread:C.unread+1,mention:C.mention,user_at:g.user_at,user_ms:g.user_ms};g.mention&&U.mention++,s("saveDialog",U)}}x.emit("dialogMsgPush",{silence:p,data:g})}const w=(C,U)=>{if(U>5||e.dialogMsgs.find(({id:O})=>O==C.id)){s("saveDialogMsg",C),y&&s("updateDialogLastMsg",C);return}setTimeout(()=>w(C,U+1),50)};w(g,0);break;case"update":case"readed":const b=(C,U)=>{if(e.dialogMsgs.find(({id:O})=>O==C.id)){s("saveDialogMsg",C),typeof C.todo!="undefined"&&s("getDialogTodo",_);return}U<=5&&setTimeout(O=>{b(C,++U)},500)};b(g,0);break;case"groupAdd":case"groupJoin":case"groupRestore":s("getDialogOne",g.id).catch(()=>{});break;case"groupUpdate":e.cacheDialogs.find(({id:C})=>C==g.id)&&s("saveDialog",g);break;case"groupExit":case"groupDelete":s("forgetDialog",g);break;case"updateTopMsg":s("saveDialog",{id:g.dialog_id,top_msg_id:g.top_msg_id,top_userid:g.top_userid}),s("getDialogMsgTop",_);break}})(l);break;case"project":(function(h){const{action:u,data:p}=h;switch(u){case"add":case"update":case"recovery":s("saveProject",p);break;case"detail":s("getProjectOne",p.id).catch(()=>{}),s("getTaskForProject",p.id).catch(()=>{});break;case"delete":case"archived":s("forgetProject",p);break;case"sort":s("getTaskForProject",p.id).catch(()=>{});break}})(l);break;case"projectColumn":(function(h){const{action:u,data:p}=h;switch(u){case"add":case"update":case"recovery":s("saveColumn",p);break;case"delete":s("forgetColumn",p);break}})(l);break;case"projectTask":(function(h){const{action:u,data:p}=h;switch(u){case"add":case"restore":s("addTaskSuccess",p);break;case"update":case"archived":case"recovery":s("saveTask",p);break;case"dialog":s("saveTask",p),s("getDialogOne",p.dialog_id).catch(()=>{});break;case"upload":s("getTaskFiles",p.task_id);break;case"filedelete":s("forgetTaskFile",p.id);break;case"delete":s("forgetTask",p);break;case"relation":x.emit("taskRelationUpdate",p.id);break}})(l);break;case"file":(function(h){const{action:u,data:p}=h;switch(u){case"add":case"update":s("saveFile",p);break;case"delete":s("forgetFile",p);break;case"compress":s("packProgress",p);break}})(l);break;case"report":(function({action:h}){h=="unreadUpdate"&&s("getReportUnread",1e3)})(l);break;case"appBadge":t("appBadges/set",l.data||{});break}break}}},websocketSend({state:e},s){return new Promise((t,i)=>{var l;if(!$A.isJson(s)){i();return}const{type:n,data:r,callback:o}=s;let a;if(!e.ws){typeof o=="function"&&o(null,!1),i();return}typeof o=="function"&&(a=n+"_"+$A.randomString(3),e.wsCall[a]=o);try{(l=e.ws)==null||l.send(JSON.stringify({type:n,msgId:a,data:r})),t()}catch(c){typeof o=="function"&&o(null,!1),i(c)}})},websocketPath({state:e,dispatch:s},t){clearTimeout(e.wsPathTimeout),e.wsPathValue=t,e.wsPathTimeout=setTimeout(()=>{e.wsPathValue==t&&s("websocketSend",{type:"path",data:{path:t}}).catch(i=>{})},1e3)},websocketClose({state:e}){e.ws&&(e.ws.close(),e.ws=null)},pgpGenerate({state:e}){return new Promise(async s=>{const t=await lr({type:"ecc",curve:"curve25519",passphrase:e.clientId,userIDs:[{name:"doo",email:"admin@admin.com"}]});t.publicKeyB64=Nh(t.publicKey.replace(/\s*-----(BEGIN|END) PGP PUBLIC KEY BLOCK-----\s*/g,"")),s(t)})},pgpGetLocalKey({state:e,dispatch:s}){return new Promise(async t=>{if(e.localKeyPair.privateKey)return t(e.localKeyPair);for(;e.localKeyLock===!0;)await new Promise(i=>setTimeout(i,100));if(e.localKeyPair.privateKey)return t(e.localKeyPair);e.localKeyLock=!0,e.localKeyPair=await s("pgpGenerate"),e.localKeyLock=!1,t(e.localKeyPair)})},pgpEncrypt({state:e,dispatch:s},t){return new Promise(async i=>{$A.isJson(t)||(t={message:t});const n=t.message||t.text,r=t.publicKey||t.key||(await s("pgpGetLocalKey")).publicKey,o=await cr({armoredKey:r}),a=await ur({message:await dr({text:n}),encryptionKeys:o});i(a)})},pgpDecrypt({state:e,dispatch:s},t){return new Promise(async i=>{$A.isJson(t)||(t={encrypted:t});const n=t.encrypted||t.text,r=t.privateKey||t.key||(await s("pgpGetLocalKey")).privateKey,o=await hr({privateKey:await pr({armoredKey:r}),passphrase:t.passphrase||e.clientId}),{data:a}=await fr({message:await mr({armoredMessage:n}),decryptionKeys:o});i(a)})},pgpEncryptApi({state:e,dispatch:s},t){return new Promise(i=>{t=$A.jsonStringify(t),s("pgpEncrypt",{message:t,publicKey:e.apiKeyData.key}).then(n=>{i(n.replace(/\s*-----(BEGIN|END) PGP MESSAGE-----\s*/g,""))})})},pgpDecryptApi({state:e,dispatch:s},t){return new Promise(i=>{s("pgpDecrypt",{encrypted:`-----BEGIN PGP MESSAGE-----
`+t+`
------END PGP MESSAGE-----`}).then(n=>{i($A.jsonParse(n))})})},closeMeetingWindow({state:e},s){e.meetingWindow={show:!1,type:s,meetingid:0}},showMeetingWindow({state:e},s){e.meetingWindow=Object.assign(s,{show:s.type!=="direct"})},async openMicroApp({state:e,getters:s},t){if(!t||!$A.isJson(t)||!t.id||!t.name||!t.url)return;let i=t.id;if(e.microAppsIds.includes(i)||(i=e.microAppsIds.find(a=>typeof a=="string"&&a.endsWith(i))||null),!i){$A.modalWarning(`\u5E94\u7528\u300C${t.id}\u300D\u672A\u5B89\u88C5`);return}if(i==="ai"&&!s.aiVisible)return;if(t.skip_base_menu!==!0){const a=e.microAppsMenus.find(l=>(l==null?void 0:l.id)===i)||null;$A.isJson(a)&&(t=Object.assign({},a,t))}const n=new URL($A.mainUrl()),r=t.url.replace(/^\/+/,"").replace(/^\:(\d+)/ig,(a,l)=>n.protocol+"//"+n.hostname+":"+l).replace(/\{window[._]location[._](\w+)}/ig,(a,l)=>{if(l in n)return n[l]}).replace(/\{system_base_url}/g,n.origin),o={id:i,key:typeof t.key=="string"?t.key:"",name:t.name,title:t.label||t.title||t.name,url:$A.mainUrl(r),type:t.type||t.url_type,background:t.background||null,capsule:$A.isJson(t.capsule)?t.capsule:{},transparent:typeof t.transparent=="boolean"?t.transparent:!1,disable_scope_css:typeof t.disable_scope_css=="boolean"?t.disable_scope_css:!1,auto_dark_theme:typeof t.auto_dark_theme=="boolean"?t.auto_dark_theme:!0,keep_alive:typeof t.keep_alive=="boolean"?t.keep_alive:!0,immersive:typeof t.immersive=="boolean"?t.immersive:!1,badge_clear_on_open:typeof t.badge_clear_on_open=="boolean"?t.badge_clear_on_open:!1,props:$A.isJson(t.props)?t.props:{}};o.url=o.url.replace(/\{user_id}/g,e.userId).replace(/\{user_nickname}/g,encodeURIComponent(e.userInfo.nickname)).replace(/\{user_email}/g,encodeURIComponent(e.userInfo.email)).replace(/\{user_avatar}/g,encodeURIComponent(e.userInfo.userimg)).replace(/\{user_token}/g,encodeURIComponent(e.userToken)).replace(/\{system_theme}/g,e.themeName).replace(/\{system_lang}/g,M),x.emit("observeMicroApp:open",o)},isMicroAppInstalled({state:e},s){return new Promise(t=>{if(!s){t(!1);return}t(!!e.microAppsIds.includes(s))})},async updateMicroAppsStatus({commit:e,state:s,dispatch:t}){const{data:{code:i,data:n}}=await at.get($A.mainUrl("appstore/api/v1/internal/installed"),{headers:{Token:s.userToken,Language:M}});if(i===200){let r=Array.isArray(n)?n:[];try{const{data:o}=await t("call",{url:"system/microapp_menu?type=get"});$A.isArray(o)&&o.length>0&&(o.forEach(a=>{a.menu_items.forEach(l=>{l.icon=l.icon||$A.mainUrl("images/application/appstore-default.svg")})}),r=r.concat(o))}catch{}e("microApps/data",r||[]);try{const{data:o}=await t("call",{url:"apps/badge/list"});e("appBadges/hydrateMap",o||{})}catch{}}},async toggleMcpServer({state:e,commit:s}){e.mcpServerStatus.running==="running"?s("mcp/server/status",{running:"stopped"}):s("mcp/server/status",{running:"running"})},applyAiSuggestion({},e){return this.dispatch("call",{url:"project/task/ai_apply",data:e})},dismissAiSuggestion({},e){return this.dispatch("call",{url:"project/task/ai_dismiss",data:e})}},hg={"route/loading":function(e,s){s?e.routeLoading++:e.routeLoading--},"user/push":function(e,s){e.cacheUserBasic.push(s),$A.IDBSave("cacheUserBasic",e.cacheUserBasic,600)},"user/splice":function(e,{index:s,data:t,count:i=1}){typeof t=="undefined"?e.cacheUserBasic.splice(s,i):e.cacheUserBasic.splice(s,i,t),$A.IDBSave("cacheUserBasic",e.cacheUserBasic,600)},"user/save":function(e,s){e.cacheUserBasic=s,$A.IDBSave("cacheUserBasic",e.cacheUserBasic,600)},"common/dialog/count/save":function(e,{userid:s,total:t,updatedAt:i=Date.now()}){if(!s)return;const n=String(s),r=Object.assign({},e.dialogCommonCountCache),o=Number(t);r[n]={total:Number.isNaN(o)?0:o,updated_at:i},e.dialogCommonCountCache=r,$A.IDBSave("dialogCommonCountCache",e.dialogCommonCountCache,600)},"common/dialog/count/clear":function(e,s){if(typeof s=="number"||typeof s=="string"){const t=Object.assign({},e.dialogCommonCountCache);delete t[String(s)],e.dialogCommonCountCache=t}else e.dialogCommonCountCache={};$A.IDBSave("dialogCommonCountCache",e.dialogCommonCountCache,600)},"message/push":function(e,s){e.dialogMsgs.push(s),$A.IDBSave("dialogMsgs",e.dialogMsgs,600)},"message/splice":function(e,{index:s,data:t,count:i=1}){typeof t=="undefined"?e.dialogMsgs.splice(s,i):e.dialogMsgs.splice(s,i,t),$A.IDBSave("dialogMsgs",e.dialogMsgs,600)},"message/save":function(e,s){e.dialogMsgs=s,$A.IDBSave("dialogMsgs",e.dialogMsgs,600)},"task/push":function(e,s){e.cacheTasks.push(s),$A.IDBSave("cacheTasks",e.cacheTasks,600)},"task/splice":function(e,{index:s,data:t,count:i=1}){typeof t=="undefined"?e.cacheTasks.splice(s,i):e.cacheTasks.splice(s,i,t),$A.IDBSave("cacheTasks",e.cacheTasks,600)},"task/content/push":function(e,s){e.taskContents.push(s)},"task/content/splice":function(e,{index:s,data:t,count:i=1}){typeof t=="undefined"?e.taskContents.splice(s,i):e.taskContents.splice(s,i,t)},"task/related/save":function(e,{taskId:s,list:t,updatedAt:i=Date.now()}){const n=Object.assign({},e.taskRelatedCache);n[s]={list:t,updated_at:i},e.taskRelatedCache=n,$A.IDBSave("taskRelatedCache",e.taskRelatedCache,600)},"task/related/clear":function(e,s){if(typeof s=="number"||typeof s=="string"){const t=Object.assign({},e.taskRelatedCache);delete t[s],e.taskRelatedCache=t}else e.taskRelatedCache={};$A.IDBSave("taskRelatedCache",e.taskRelatedCache,600)},"dialog/push":function(e,s){e.cacheDialogs.push(s),$A.IDBSave("cacheDialogs",e.cacheDialogs,600)},"dialog/splice":function(e,{index:s,data:t,count:i=1}){typeof t=="undefined"?e.cacheDialogs.splice(s,i):e.cacheDialogs.splice(s,i,t),$A.IDBSave("cacheDialogs",e.cacheDialogs,600)},"dialog/in/push":function(e,s){e.dialogIns.push(s)},"dialog/in/splice":function(e,{index:s,data:t,count:i=1}){typeof t=="undefined"?e.dialogIns.splice(s,i):e.dialogIns.splice(s,i,t)},"dialog/history/push":function(e,s){e.dialogHistory.push(s)},"dialog/history/save":function(e,s){e.dialogHistory=s},"dialog/msg/top/push":function(e,s){e.dialogMsgTops.push(s)},"dialog/msg/top/splice":function(e,{index:s,data:t,count:i=1}){typeof t=="undefined"?e.dialogMsgTops.splice(s,i):e.dialogMsgTops.splice(s,i,t)},"dialog/msg/top/save":function(e,s){e.dialogMsgTops=s},"dialog/todo/push":function(e,s){e.dialogTodos.push(s)},"dialog/todo/splice":function(e,{index:s,data:t,count:i=1}){typeof t=="undefined"?e.dialogTodos.splice(s,i):e.dialogTodos.splice(s,i,t)},"dialog/todo/save":function(e,s){e.dialogTodos=s},"project/push":function(e,s){e.cacheProjects.push(s),$A.IDBSave("cacheProjects",e.cacheProjects)},"project/splice":function(e,{index:s,data:t,count:i=1}){typeof t=="undefined"?e.cacheProjects.splice(s,i):e.cacheProjects.splice(s,i,t),$A.IDBSave("cacheProjects",e.cacheProjects)},"project/column/push":function(e,s){e.cacheColumns.push(s),$A.IDBSave("cacheColumns",e.cacheColumns)},"project/column/splice":function(e,{index:s,data:t,count:i=1}){typeof t=="undefined"?e.cacheColumns.splice(s,i):e.cacheColumns.splice(s,i,t),$A.IDBSave("cacheColumns",e.cacheColumns)},"project/column/save":function(e,s){e.cacheColumns=s,$A.IDBSave("cacheColumns",e.cacheColumns)},"project/parameter/push":function(e,s){e.cacheProjectParameter.push(s),$A.IDBSave("cacheProjectParameter",e.cacheProjectParameter)},"project/parameter/splice":function(e,{index:s,data:t,count:i=1}){typeof t=="undefined"?e.cacheProjectParameter.splice(s,i):e.cacheProjectParameter.splice(s,i,t),$A.IDBSave("cacheProjectParameter",e.cacheProjectParameter)},"department/owner/ids/save":function(e,s){e.cacheDepartmentOwnerIds=$A.normalizeIntArray(s),$A.IDBSet("cacheDepartmentOwnerIds",e.cacheDepartmentOwnerIds).catch(()=>{})},"department/owner/enabled/save":function(e,s){e.departmentOwnerProjectViewEnabled=s===!0,$A.IDBSet("departmentOwnerProjectViewEnabled",e.departmentOwnerProjectViewEnabled).catch(()=>{})},"file/push":function(e,s){e.fileLists.push(s),$A.IDBSave("fileLists",e.fileLists,600)},"file/splice":function(e,{index:s,data:t,count:i=1}){typeof t=="undefined"?e.fileLists.splice(s,i):e.fileLists.splice(s,i,t),$A.IDBSave("fileLists",e.fileLists,600)},"file/save":function(e,s){e.fileLists=s,$A.IDBSave("fileLists",e.fileLists,600)},"collaboration/file/cache/save":function(e,s){e.collaborationFileCache=s,$A.IDBSave("collaborationFileCache",s,600)},"collaboration/file/view/save":function(e,s){e.collaborationFileViewMode=s==="grid"?"grid":"list",$A.IDBSave("collaborationFileViewMode",e.collaborationFileViewMode)},"draft/set":function(e,{id:s,content:t}){const i=e.dialogDrafts.findIndex(r=>r.id===s),n={id:s,content:$A.filterInvalidLine(t),time:new Date().getTime()};i===-1&&!n.content||(e.dialogId==s?n.tag=i!==-1?e.dialogDrafts[i].tag:!1:n.tag=!!n.content,i!==-1?e.dialogDrafts.splice(i,1,n):e.dialogDrafts.push(n),$A.IDBSave("dialogDrafts",e.dialogDrafts))},"draft/tag":function(e,s){if(e.dialogId==s)return;const t=e.dialogDrafts.findIndex(i=>i.id===s);t!==-1&&(e.dialogDrafts[t].tag=!!e.dialogDrafts[t].content,$A.IDBSave("dialogDrafts",e.dialogDrafts))},"quote/set":function(e,{id:s,type:t,content:i}){const n=e.dialogQuotes.findIndex(o=>o.id===s),r={id:s,type:t,content:i,time:new Date().getTime()};n===-1&&!r.content||(n!==-1?e.dialogQuotes.splice(n,1,r):e.dialogQuotes.push(r),$A.IDBSave("dialogQuotes",e.dialogQuotes))},"quote/remove":function(e,s){const t=e.dialogQuotes.findIndex(i=>i.id===s);t!==-1&&(e.dialogQuotes.splice(t,1),$A.IDBSave("dialogQuotes",e.dialogQuotes))},"withdraw/set":function(e,s){const t=e.dialogWithdraws.findIndex(i=>i.id===s.id);t!==-1?e.dialogWithdraws.splice(t,1,s):e.dialogWithdraws.push(s),$A.IDBSave("dialogWithdraws",e.dialogWithdraws)},"withdraw/remove":function(e,s){const t=e.dialogWithdraws.findIndex(i=>i.id===s);t!==-1&&(e.dialogWithdraws.splice(t,1),$A.IDBSave("dialogWithdraws",e.dialogWithdraws))},"longpress/set":function(e,{type:s,data:t,element:i}){e.longpressData={type:s,data:t,element:i}},"longpress/clear":function(e){e.longpressData={type:"",data:null,element:null}},"menu/operation":function(e,s){e.menuOperation=s||{}},"microApps/push":function(e,s){e.microApps.push(s)},"microApps/update":function(e,{name:s,data:t}){const i=e.microApps.find(n=>n.name==s);i&&Object.assign(i,t)},"microApps/keepAlive":function(e,s){const t=e.microApps.filter(i=>i.keep_alive);t.length<=s||t.sort((i,n)=>i.lastOpenAt-n.lastOpenAt).slice(0,t.length-s).forEach(i=>{i.keepAliveBackup=!0,i.keep_alive=!1})},"microApps/splice":function(e,{index:s,data:t,count:i=1}){typeof t=="undefined"?e.microApps.splice(s,i):e.microApps.splice(s,i,t)},"microApps/data":function(e,s){e.userIsAdmin&&s.unshift({id:"appstore",version:"1.0.0",menu_items:[{location:"application/admin",label:$A.L("\u5E94\u7528\u5546\u5E97"),icon:$A.mainUrl("images/application/appstore.svg"),url:"appstore/internal?language={system_lang}&theme={system_theme}",disable_scope_css:!0,auto_dark_theme:!1,capsule:{visible:!0,top:18,right:18}}]});const t=e.microAppsInstalled.filter(n=>!s.some(r=>r.id===n.id)).map(n=>({type:"uninstall",id:n.id}));e.microAppsInstalled.forEach(n=>{const r=s.find(o=>o.id===n.id);r&&(n.version!==r.version?t.push({type:"update",id:n.id}):n.install_at!==r.install_at&&t.push({type:"reinstall",id:n.id}))}),e.microAppsInstalled=s,x.emit("observeMicroApp:updatedOrUninstalled",t);const i=[];s.forEach(n=>{Array.isArray(n.menu_items)&&n.menu_items.length>0&&i.push(...n.menu_items.map(r=>Object.assign({},r,{id:n.id})))}),i.forEach(n=>{let r=n.id;i.filter(o=>o.id===n.id).length>1&&(r+="_"+`${n.url}`.replace(/^https?:\/\/.*?\//,"").replace(/[^a-zA-Z0-9]/g,"_")),i.find(o=>o.name===r)&&(r+="_"+$A.randomString(8)),n.name=r}),$A.IDBSave("microAppsIds",e.microAppsIds=s.map(n=>n.id)),$A.IDBSave("microAppsMenus",e.microAppsMenus=i)},"mcp/server/status":function(e,s){$A.IDBSave("mcpServerStatus",e.mcpServerStatus=s)}};const pg=Object.freeze({count:0,dot:!1});var fg={namespaced:!0,state:()=>({map:{}}),mutations:{set(e,{appid:s,menu_key:t,count:i,dot:n}){if(!s)return;const r=t||"";e.map[s]||E.set(e.map,s,{}),E.set(e.map[s],r,{count:Number(i)||0,dot:!!n})},hydrateMap(e,s){const t={};s&&typeof s=="object"&&Object.keys(s).forEach(i=>{const n=s[i];!i||!n||typeof n!="object"||Object.keys(n).forEach(r=>{const o=n[r]||{},a=Number(o.count)||0,l=!!o.dot;(a>0||l)&&(t[i]||(t[i]={}),t[i][r||""]={count:a,dot:l})})}),e.map=t},clearMenu(e,{appid:s,menu_key:t}){const i=t||"";s&&e.map[s]&&E.delete(e.map[s],i)},clearApp(e,s){s&&e.map[s]&&E.delete(e.map,s)}},getters:{badge:e=>(s,t)=>e.map[s]&&e.map[s][t||""]||pg,totalCount:e=>{let s=0;return Object.keys(e.map).forEach(t=>{Object.keys(e.map[t]).forEach(i=>{s+=Number(e.map[t][i].count)||0})}),s},anyDot:e=>Object.keys(e.map).some(s=>Object.keys(e.map[s]).some(t=>!!e.map[s][t].dot)),applicationCount:(e,s,t)=>(Number(t.reportUnreadNumber)||0)+s.totalCount,applicationDot:(e,s)=>s.anyDot}};E.use(Bt);var ge=new Bt.Store({state:cg,getters:ug,mutations:hg,actions:dg,modules:{appBadges:fg}}),mg={computed:{...B(["windowWidth","windowHeight","windowActive","windowScrollY","windowTouch","windowLandscape","windowPortrait","userId","userToken","routeName","routePath"])}};var gg=function(){var e=this,s=e.$createElement;return e._self._c,e._e()},_g=[];const vg={name:"PageTitle",props:{title:{type:[String,Number],default:""}},data(){return{pagePath:""}},activated(){this.updateTitle()},watch:{title:{handler(){this.initTitle()},immediate:!0}},methods:{initTitle(){this.pagePath=this.$route.path,this.updateTitle()},updateTitle(){if(this.pagePath=="")return;let e=this.title,{title:s}=document;e!==s&&this.pagePath===this.$route.path&&this.setPageTile(e)},setPageTile(e){document.title=e}}},Hi={};var yg=A(vg,gg,_g,!1,wg,null,null,null);function wg(e){for(let s in Hi)this[s]=Hi[s]}var $g=function(){return yg.exports}(),kg=function(){var e=this,s=e.$createElement,t=e._self._c||s;return e.visible?t("ETooltip",{attrs:{disabled:e.$isEEUIApp||e.windowTouch||e.content=="",content:e.content}},[e.type==="svg"?t("svg",{staticClass:"common-loading",attrs:{viewBox:"25 25 50 50"}},[t("circle",{staticClass:"common-path",attrs:{cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"5","stroke-miterlimit":"10"}})]):t("div",{staticClass:"common-pureing"})]):e._e()},bg=[];const Ag={name:"Loading",props:{type:{type:String,default:"svg"},content:{type:[String,Number],default:""},delay:{type:Number,default:0}},data(){return{visible:this.delay===0,timer:null}},mounted(){this.delay>0&&(this.timer=setTimeout(e=>{this.visible=!0},this.delay))},beforeDestroy(){this.timer&&clearTimeout(this.timer)}},Wi={};var Cg=A(Ag,kg,bg,!1,Sg,null,null,null);function Sg(e){for(let s in Wi)this[s]=Wi[s]}var xg=function(){return Cg.exports}(),Tg=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("ETooltip",{attrs:{content:e.tipText,placement:e.placement,effect:e.tooltipTheme,delay:e.delay,disabled:e.$isEEUIApp||e.windowTouch||!e.showTooltip||e.disabled,"max-width":e.tooltipMaxWidth,transfer:""}},[t("span",{ref:"content",staticClass:"common-auto-tip",on:{mouseenter:e.handleTooltipIn,click:e.onClick}},[e.existSlot?[e._t("default")]:[e._v(e._s(e.content))]],2)])},Ig=[];const Dg={name:"AutoTip",props:{content:{type:[String,Number],default:""},placement:{default:"bottom"},tooltipTheme:{default:"dark"},tooltipMaxWidth:{type:[String,Number],default:300},delay:{type:Number,default:100},disabled:{type:Boolean,default:!1}},data(){return{showTooltip:!1,tooltipContent:""}},computed:{tipText(){const{content:e,tooltipContent:s}=this;return e||s||""},existSlot(){return!(typeof this.$slots.default=="undefined"||this.$slots.default.length<1)}},methods:{handleTooltipIn(){const e=this.$refs.content;if(!e)return;let s=document.createRange();s.setStart(e,0),s.setEnd(e,e.childNodes.length||0);const t=s.getBoundingClientRect().width;if(this.showTooltip=Math.floor(t)>Math.floor(e.offsetWidth),this.showTooltip&&this.existSlot){const i=this.$slots.default.map(n=>n.text?n.text:n.elm.innerText?n.elm.innerText:"");this.tooltipContent=i.join("")}s=null},onClick(e){this.$emit("on-click",e)}}},Vi={};var Eg=A(Dg,Tg,Ig,!1,Lg,null,null,null);function Lg(e){for(let s in Vi)this[s]=Vi[s]}var Mg=function(){return Eg.exports}(),Pg=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"common-tag-input",class:{focus:e.isFocus},on:{paste:function(i){return e.pasteText(i)},click:e.focus}},[t("Draggable",{attrs:{list:e.disSource,animation:150,tag:"ul",draggable:".column-item"}},e._l(e.disSource,function(i,n){return t("div",{key:i,staticClass:"tags-item column-item"},[t("span",{staticClass:"tags-content",on:{click:function(r){return r.stopPropagation(),e.edit(e.disSource,n)}}},[e._v(e._s(i))]),t("span",{staticClass:"tags-del",on:{click:function(r){return r.stopPropagation(),e.delTag(n)}}},[e._v("\xD7")])])}),0),t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.content,expression:"content"}],ref:"myTextarea",staticClass:"tags-input",style:{minWidth:e.minWidth+"px"},attrs:{placeholder:e.tis||e.placeholderText,enterkeyhint:e.enterkeyhint,disabled:e.disabled,readonly:e.readonly},domProps:{value:e.content},on:{keydown:[function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"enter",13,i.key,"Enter")?null:e.downEnter(i)},function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"delete",[8,46],i.key,["Backspace","Delete","Del"])?null:e.onBackspace(i)}],keyup:e.onKeyup,focus:e.onFocus,blur:e.onBlur,input:function(i){i.target.composing||(e.content=i.target.value)}}}),e._v(" "),e.showPlaceholder||e.tis!==""?t("span",{ref:"myPlaceholder",staticClass:"tags-placeholder"},[e._v(e._s(e.tis||e.placeholderText))]):e._e()],1)},jg=[];const Rg={name:"TagInput",components:{Draggable:kr},props:{value:{default:""},cut:{default:","},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},placeholder:{default:""},max:{default:0},enterkeyhint:{type:String,default:""}},data(){return{minWidth:80,tis:"",tisTimeout:null,showPlaceholder:!0,content:"",disSource:this.parseValue(this.value),isFocus:!1,editShow:!1,editData:{index:0,disSource:[],name:""},addRule:{name:[{required:!0,message:this.$L("\u8BF7\u586B\u5199\u540D\u79F0\uFF01"),trigger:"change"}]}}},mounted(){this.wayMinWidth()},watch:{placeholder(){this.wayMinWidth()},value(e){this.disSource=this.parseValue(e)},disSource(e){this.$emit("input",e.join(this.joinChar())),this.$emit("on-change")}},computed:{placeholderText(){return this.disSource.length>0?"":this.placeholder}},methods:{normalizedCuts(){return(Array.isArray(this.cut)?this.cut:[this.cut]).filter(s=>typeof s=="string"&&s.length>0)},cutPattern(){const e=this.normalizedCuts();if(e.length===0)return null;const s=e.map(t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"));return new RegExp(s.join("|"),"g")},joinChar(){return this.normalizedCuts()[0]||","},parseValue(e){const s=[];return typeof e!="string"||e===""||e.split(this.joinChar()).forEach(t=>{const i=t.trim();i&&s.indexOf(i)===-1&&s.push(i)}),s},splitByCuts(e){const s=this.cutPattern();return s?e.split(s):[e]},showTis(e){this.tis=e,clearTimeout(this.tisTimeout),this.tisTimeout=setTimeout(()=>{this.tis=""},2e3)},edit(e,s){this.editData.disSource=e,this.editData.index=s,this.editData.name=e[s]+"",$A.modalInput({title:"\u7F16\u8F91",placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0",okText:"\u786E\u5B9A",value:e[s]+"",onOk:t=>{const i=(t||"").trim();if(!i)return"\u8BF7\u8F93\u5165\u540D\u79F0";const n=this.disSource.indexOf(i);return n!==-1&&n!==this.editData.index?"\u8BE5\u6807\u7B7E\u5DF2\u5B58\u5728":(this.editData.name=i,this.editData.disSource[this.editData.index]=i,this.$set(this.disSource,this.editData.index,i),!1)}})},focus(e){const s=this.$refs.myTextarea;s.focus(e);const{cursor:t}=e||{};if(t){const i=s.value.length;switch(t){case"start":s.setSelectionRange(0,0);break;case"end":s.setSelectionRange(i,i);break;default:s.setSelectionRange(0,i)}}},wayMinWidth(){this.showPlaceholder=!0,this.$nextTick(()=>{this.$refs.myPlaceholder&&(this.minWidth=Math.max(this.minWidth,this.$refs.myPlaceholder.offsetWidth)),setTimeout(()=>{try{this.minWidth=Math.max(this.minWidth,this.$refs.myPlaceholder.offsetWidth),this.showPlaceholder=!1}catch{}$A(this.$refs.myPlaceholder).is(":visible")||this.wayMinWidth()},500)})},pasteText(e){e.preventDefault();let s=(e.clipboardData||window.clipboardData).getData("text");if(!!s)for(const t of this.splitByCuts(s)){const i=t.trim();if(!!i&&this.addTag(!1,i)===!1)break}},downEnter(e){e.isComposing||e.key==="Process"||e.keyCode===229||(e.preventDefault(),this.addTag(e,this.content),this.$nextTick(()=>{this.$emit("on-enter",e)}))},onBackspace(e){e.isComposing||e.key==="Process"||e.keyCode===229||this.delTag(!1)},onFocus(e){this.isFocus=!0,this.$emit("on-focus",e)},onBlur(e){this.isFocus=!1,this.addTag(!1,this.content),this.$emit("on-blur",e)},onKeyup(e){e.keyCode!==13&&this.addTag(e,this.content),this.$emit("on-keyup",e)},addTag(e,s){const t=e===!1||e.keyCode===13;let i;if(t)i=s.trim();else{if(s==="")return!0;let n=null;for(const r of this.normalizedCuts())if(r.length<=s.length&&s.substring(s.length-r.length)===r){n=r;break}if(n===null)return!0;i=s.substring(0,s.length-n.length).trim()}return i===""?(this.content="",!0):this.max>0&&this.disSource.length>=this.max?(this.content="",this.showTis(this.$L("\u6700\u591A\u53EA\u80FD\u6DFB\u52A0(*)\u4E2A",this.max)),!1):this.disSource.indexOf(i)!==-1?(this.content="",this.showTis(this.$L("\u8BE5\u6807\u7B7E\u5DF2\u5B58\u5728")),!0):(this.disSource.push(i),this.content="",!0)},delTag(e){if(e===!1){if(this.content!=="")return;e=this.disSource.length-1}this.disSource.splice(e,1),this.focus()}}},Yi={};var Og=A(Rg,Pg,jg,!1,zg,null,null,null);function zg(e){for(let s in Yi)this[s]=Yi[s]}var Ug=function(){return Og.exports}(),Bg=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"td-action",style:e.tdStyle,attrs:{"data-width":e.width,"data-height":e.height}},[t("div",{directives:[{name:"resize",rawName:"v-resize",value:e.onResize,expression:"onResize"}],ref:"action",staticClass:"td-action-container",class:{"td-action-menu":e.menu.length>0},on:{mouseenter:e.handleIn}},[e._t("default"),e._l(e.menu,function(i,n){return i.hidden!==!0?t("ETooltip",{key:n,attrs:{placement:"top",disabled:e.$isEEUIApp||e.windowTouch||!i.title,content:i.title,enterable:!1,"open-delay":600}},[i.children&&i.children.length>0?t("EDropdown",{staticClass:"menu-dropdown",attrs:{size:"medium",trigger:"click"},on:{command:e.onClick}},[i.label?t("a",{style:i.style||{},attrs:{href:i.href||"javascript:void(0)",target:i.target||"_self"}},[e._v(e._s(i.label))]):e.isAliIcon(i.icon)?t("i",{staticClass:"taskfont menu-icon",style:i.style||{},domProps:{innerHTML:e._s(i.icon)}}):t("Icon",{staticClass:"menu-icon",style:i.style||{},attrs:{type:i.icon}}),t("EDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},e._l(i.children,function(r,o){return r.hidden!==!0?t("EDropdownItem",{key:o,style:r.style||{},attrs:{command:r.action,disabled:!!r.disabled,divided:!!r.divided}},[t("div",[e._v(e._s(r.title))])]):e._e()}),1)],1):i.label?t("a",{style:i.style||{},attrs:{href:i.href||"javascript:void(0)",target:i.target||"_self"},on:{click:function(r){return e.onClick(i.action)}}},[e._v(e._s(i.label))]):e.isAliIcon(i.icon)?t("i",{staticClass:"taskfont menu-icon",style:i.style||{},domProps:{innerHTML:e._s(i.icon)},on:{click:function(r){return e.onClick(i.action)}}}):t("Icon",{staticClass:"menu-icon",style:i.style||{},attrs:{type:i.icon},on:{click:function(r){return e.onClick(i.action)}}})],1):e._e()})],2)])},Ng=[];E.use(br);const Fg={name:"TableAction",props:{column:{type:Object,default:()=>({})},autoWidth:{type:Boolean,default:!0},minWidth:{type:Number,default:80},align:{type:String,default:""},menu:{type:Array,default:()=>[]}},data(){return{width:0,height:0}},mounted(){this.onUpdate()},activated(){this.onUpdate()},beforeUpdate(){this.onUpdate()},computed:{tdStyle(){const e={},{align:s}=this;switch(s.toLowerCase()){case"left":e.justifyContent="flex-start";break;case"center":e.justifyContent="center";break;case"right":e.justifyContent="flex-end";break}return e}},methods:{isAliIcon(e){return $A.leftExists(e,"")},handleIn(){var e;((e=this.$refs.action)==null?void 0:e.offsetWidth)!=this.width&&this.onUpdate()},onUpdate(){this.onResize({width:this.$refs.action.offsetWidth,height:this.$refs.action.offsetHeight})},onResize({width:e,height:s}){if(!this.autoWidth)return;$A(".ivu-table-column-"+this.column.__id).each((i,n)=>{let r=$A(n).find(".td-action-container");r.length>0&&(e=Math.max(e,r[0].offsetWidth),s=Math.max(s,r[0].offsetHeight))}),this.width=e,this.height=s;let t=Math.max(this.minWidth,this.width+26);this.column.minWidth&&(t=Math.max(this.column.minWidth,t)),this.column.maxWidth&&(t=Math.min(this.column.maxWidth,t)),t!=this.column.width&&this.$nextTick(()=>{this.$set(this.column,"width",t)})},onClick(e){this.$emit("action",e)}}},qi={};var Hg=A(Fg,Bg,Ng,!1,Wg,null,null,null);function Wg(e){for(let s in qi)this[s]=qi[s]}var Vg=function(){return Hg.exports}(),Yg=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"quick-edit",class:[e.alwaysIcon?"quick-always":""]},[e.isEdit?t("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.onClickOut,expression:"onClickOut"}],staticClass:"quick-input"},[e.isTag?t("TagInput",{ref:"input",attrs:{disabled:e.isLoad,enterkeyhint:"done"},on:{"on-keydown":e.onKeydown,"on-blur":e.onBlur},model:{value:e.content,callback:function(i){e.content=i},expression:"content"}}):t("Input",{ref:"input",attrs:{disabled:e.isLoad,parser:e.parser,enterkeyhint:"done"},on:{"on-keydown":e.onKeydown,"on-blur":e.onBlur},model:{value:e.content,callback:function(i){e.content=i},expression:"content"}}),e.isLoad?t("div",{staticClass:"quick-loading"},[t("Loading")],1):e._e()],1):[t("div",{staticClass:"quick-text",attrs:{title:e.attrTitle}},[e._t("default")],2),e.disabled?e._e():t("Icon",{staticClass:"quick-icon",attrs:{type:"ios-create-outline"},on:{click:function(i){return i.stopPropagation(),e.onEdit.apply(null,arguments)}}})]],2)},qg=[];const Kg={name:"QuickEdit",directives:{clickoutside:hn},props:{value:{},autoEdit:{},isTag:{type:Boolean,default:!1},alwaysIcon:{type:Boolean,default:!1},clickOutSide:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},parser:{type:Function},attrTitle:{type:String,default:""}},data(){return{isLoad:!1,isEdit:!1,content:""}},mounted(){this.autoEdit===!0&&this.onEdit()},watch:{autoEdit(e){e===!0&&setTimeout(this.onEdit,0)}},methods:{onEditChange(e){this.isEdit=e,this.$emit("on-edit-change",e)},onEdit(){this.content=this.value,this.onEditChange(!0),this.$nextTick(()=>{this.$refs.input.focus({cursor:"all"})})},onKeydown(e){e.keyCode===13?this.onEnter():e.keyCode===27&&(e.preventDefault(),e.stopPropagation(),this.isEdit=!1,this.isLoad=!1)},onEnter(){if(this.content==this.value){this.onEditChange(!1);return}this.isLoad||(this.isLoad=!0,this.$emit("input",this.content),this.$emit("on-update",this.content,()=>{this.onEditChange(!1),this.isLoad=!1}))},onClickOut(){!this.clickOutSide||this.onEnter()},onBlur(){this.clickOutSide||!this.isEdit||this.onEnter()}}},Ki={};var Gg=A(Kg,Yg,qg,!1,Jg,null,null,null);function Jg(e){for(let s in Ki)this[s]=Ki[s]}var Qg=function(){return Gg.exports}(),Xg={props:{userid:{type:[String,Number],default:""},size:{type:[String,Number],default:"default"},showIcon:{type:Boolean,default:!0},showName:{type:Boolean,default:!1},showStateDot:{type:Boolean,default:!0},nameText:{type:String,default:""},borderWidth:{type:Number,default:0},borderColor:{type:String,default:""},clickOpenDetail:{type:Boolean,default:!1},userResult:{default:null}}},Zg=function(){var e=this,s=e.$createElement,t=e._self._c||s;return e.user?t("div",{staticClass:"avatar-wrapper common-avatar",class:{"avatar-pointer":e.clickOpenDetail},on:{click:e.onClickOpen}},[e.showIcon?t("div",{class:e.boxClass,style:e.boxStyle,attrs:{title:e.showName?void 0:e.user.nickname}},[e.showStateDot&&!e.user.disable_at?t("em",{style:e.spotStyle}):e._e(),e.showImg?t("EAvatar",{ref:"avatar",class:{"avatar-default":e.isDefault},attrs:{src:e.user.userimg,size:e.avatarSize,error:e.onError}},[t("span",{staticClass:"avatar-char",style:e.spotStyle},[e._v(e._s(e.nickname))])]):t("EAvatar",{staticClass:"avatar-text",attrs:{size:e.avatarSize}},[t("span",{staticClass:"avatar-char",style:e.spotStyle},[e._v(e._s(e.nickname))])])],1):e._e(),e.showName?t("div",{staticClass:"avatar-name",style:e.nameStyle},[e.user.bot?t("div",{staticClass:"taskfont bot"},[e._v("\uE68C")]):e._e(),e._t("name-prefix"),t("span",[e._v(e._s(e.nameText||e.user.nickname))])],2):e._e()]):e._e()},e_=[];const t_={name:"UserAvatar",mixins:[Xg],data(){return{user:null}},mounted(){this.getData(),x.on("userActive",this.userActive),this.$store.state.userAvatar[this._uid]=this.$props},beforeDestroy(){x.off("userActive",this.userActive),this.$store.state.userAvatar[this._uid]!==void 0&&delete this.$store.state.userAvatar[this._uid]},computed:{boxClass(){return{"avatar-box":!0,online:this.$store.state.userId===this.userid||this.user.online||this.isBot,disabled:this.user.disable_at,deleted:this.user.delete_at}},boxStyle(){const e={},{borderWidth:s,borderColor:t}=this;return s>0&&(e.border=s+"px solid "+(t||"#ffffff")),e},spotStyle(){let{borderWidth:e,size:s}=this;return s==="default"&&(s=32),e>0&&(s-=e),s==32?{}:{transform:"scale("+Math.min(1.25,s/32)+")"}},nameStyle(){const{showIcon:e}=this,{delete_at:s,disable_at:t}=this.user,i={};return e||(i.marginLeft=0),(s||t)&&(i.opacity=.8),i},avatarSize(){let{borderWidth:e,size:s}=this;return s==="default"&&(s=32),e>0?s-e*2:s},showImg(){const{userimg:e}=this.user;return e?!$A.rightExists(e,"/avatar.png"):!1},isDefault(){const{userimg:e}=this.user;return $A.strExists(e,"/avatar")},isBot(){return!!(this.user&&this.user.bot)},nickname(){const{nickname:e}=this.user;if(!e)return"D";let s=e.substring(0,2);return/^[\u4e00-\u9fa5]+$/.test(s)&&(s=s.substring(0,1)),s||"D"}},watch:{userid(){this.getData()}},methods:{userActive({type:e,data:s}){s.userid==this.userid&&(e==="line"?this.user&&this.$set(this.user,"online",s.online):this.setUser(s))},getData(){if(!this.$store.state.userId)return;if(this.userid===-1){this.setUser({userid:-1,nickname:this.$L("AI \u52A9\u624B"),bot:!1,userimg:$A.mainUrl("images/avatar/default_assistant.png"),online:!1});return}const e=this.$store.state.cacheUserBasic.find(({userid:s})=>s==this.userid);e&&this.setUser(e),this.$store.dispatch("getUserBasic",{userid:this.userid})},setUser(e){try{this.user&&this.user.userimg!=e.userimg&&this.$refs.avatar&&(this.$refs.avatar.$data.isImageExist=!0)}catch{}this.user=e,typeof this.userResult=="function"&&this.userResult(e)},onClickOpen(){this.clickOpenDetail?x.emit("openUser",this.userid):this.$emit("on-click",this.userid)},openDialog(){this.$store.dispatch("openDialogUserid",this.userid).catch(({msg:e})=>{$A.modalError(e)})},onError(){return!0}}},Gi={};var s_=A(t_,Zg,e_,!1,i_,null,null,null);function i_(e){for(let s in Gi)this[s]=Gi[s]}var n_=function(){return s_.exports}(),r_=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("img",{attrs:{src:e.processedSrc,alt:e.alt}})},o_=[];const a_={props:{src:{type:String,required:!0},alt:{type:String,default:""}},computed:{processedSrc({src:e}){return on(e)}}},Ji={};var l_=A(a_,r_,o_,!1,c_,null,null,null);function c_(e){for(let s in Ji)this[s]=Ji[s]}var u_=function(){return l_.exports}(),d_=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("img",{attrs:{src:e.srcValue,alt:e.alt},on:{"~error":function(i){return e.onError.apply(null,arguments)}}})},h_=[];const p_={name:"ImgView",props:{src:{default:""},errorSrc:{default:""},alt:{default:""}},computed:{srcValue({src:e}){return this.toSrc(e)}},methods:{toSrc(e){return e.substring(0,10)==="data:image"||e.substring(0,2)==="//"||e.substring(0,7)==="http://"||e.substring(0,8)==="https://"||e.substring(0,6)==="ftp://"||e.substring(0,1)==="/"?e:$A.mainUrl(e)},onError(e){!this.errorSrc||(e.target.src=this.toSrc(this.errorSrc))}}},Qi={};var f_=A(p_,d_,h_,!1,m_,null,null,null);function m_(e){for(let s in Qi)this[s]=Qi[s]}var g_=function(){return f_.exports}();function G(e){return parseInt(e,10)||0}const be=typeof window!="undefined"&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch);function Xi(e){return e?getComputedStyle(e):{}}function ot(e,s){if(e)for(const t in s){let i=s[t];typeof i=="number"&&(i=`${i}px`),e.style[t]=i}return e}var __={name:"Scrollbar",props:{tag:{type:String,default:"div"},className:{type:String,default:""},enableX:{type:Boolean,default:!1},enableY:{type:Boolean,default:!0},hideBar:{type:Boolean,default:!1},minSize:{type:Number,default:20},touchContentBlur:{type:Boolean,default:!0}},data(){return{isReady:!1,scrollingX:!1,scrollingY:!1,moveingX:!1,moveingY:!1,containerWidth:null,containerHeight:null,contentWidth:null,contentHeight:null,contentOverflow:{x:null,y:null},thumbYHeight:null,thumbYTop:null,thumbXWidth:null,thumbXLeft:null,lastScrollTop:0,lastScrollLeft:0,timeouts:{}}},computed:{containerClass(){const e=["scrollbar-container"];return be?e.push("scrollbar-touch"):e.push("scrollbar-desktop"),this.contentWidth>this.containerWidth&&this.contentOverflow.x!=="hidden"&&this.enableX&&e.push("scrollbar-active-x"),this.contentHeight>this.containerHeight&&this.contentOverflow.y!=="hidden"&&this.enableY&&e.push("scrollbar-active-y"),this.scrollingX&&e.push("scrollbar-scrolling-x"),this.scrollingY&&e.push("scrollbar-scrolling-y"),this.moveingX&&e.push("scrollbar-moveing-x"),this.moveingY&&e.push("scrollbar-moveing-y"),(this.hideBar||!this.isReady)&&e.push("scrollbar-hidebar"),e},contentClass({className:e,enableX:s,enableY:t}){const i=["scrollbar-content"];return e&&i.push(e),s||i.push("scrollbar-disable-x"),t||i.push("scrollbar-disable-y"),i}},mounted(){this.$nextTick(()=>{this.updateBase()})},updated(){this.$nextTick(()=>{this.updateGeometry(!1)})},methods:{scrollInfo(){const e=$A(this.$refs.content),s=Math.round(e.innerHeight()),t=e.scrollTop(),i=this.$refs.content.scrollHeight;return{scale:t/(i-s),scrollY:t,scrollE:i-s-t}},scrollElement(){return this.$refs.content},querySelector(e){return this.$refs.content&&this.$refs.content.querySelector(e)},updateBase(){if(be)return;const e=Xi(this.$refs.container),s=Xi(this.$refs.content);ot(this.$refs.trackX,{left:G(e.paddingLeft)+G(s.marginLeft),right:G(e.paddingRight)+G(s.marginRight),bottom:G(e.paddingBottom)+G(s.marginBottom)}),ot(this.$refs.trackY,{top:G(e.paddingTop)+G(s.marginTop),bottom:G(e.paddingBottom)+G(s.marginBottom),right:G(e.paddingRight)+G(s.marginRight)}),this.contentOverflow={x:s.overflowX,y:s.overflowY}},updateGeometry(e){if(be)return;const s=this.$refs.content;if(!s)return;const t=Math.floor(s.scrollTop),i=s.getBoundingClientRect();this.containerWidth=Math.round(i.width),this.containerHeight=Math.round(i.height),this.contentWidth=s.scrollWidth,this.contentHeight=s.scrollHeight,this.thumbXWidth=Math.max(G(this.containerWidth*this.containerWidth/this.contentWidth),this.minSize),this.thumbXLeft=G(s.scrollLeft*(this.containerWidth-this.thumbXWidth)/(this.contentWidth-this.containerWidth)),this.thumbYHeight=Math.max(G(this.containerHeight*this.containerHeight/this.contentHeight),this.minSize),this.thumbYTop=G(t*(this.containerHeight-this.thumbYHeight)/(this.contentHeight-this.containerHeight)),ot(this.$refs.thumbX,{left:this.thumbXLeft,width:this.thumbXWidth}),ot(this.$refs.thumbY,{top:this.thumbYTop,height:this.thumbYHeight}),e&&(this.scrollingX=this.lastScrollLeft!==s.scrollLeft,this.scrollingY=this.lastScrollTop!==s.scrollTop,this.lastScrollTop=s.scrollTop,this.lastScrollLeft=s.scrollLeft,this.timeouts.scroll&&clearTimeout(this.timeouts.scroll),this.timeouts.scroll=setTimeout(()=>{this.scrollingX=!1,this.scrollingY=!1},1e3))},onContainerMouseMove(){var e;(e=this.$store)!=null&&e.state.windowTouch||setTimeout(()=>{this.isReady||(this.updateGeometry(!0),this.isReady=!0)},300)},onContentTouchStart(e){if(!this.touchContentBlur)return;const s=document.activeElement;s&&s.blur()},onContentScroll(e){this.updateGeometry(!0),this.$emit("on-scroll",e),this.isReady=!0},onContentMouseenter(){this.updateBase(),this.updateGeometry(!1)},onTrackXMouseDown(e){if(be)return;const s=this.$refs.content,t=this.$refs.trackX.getBoundingClientRect(),n=e.pageX-window.scrollX-t.left>this.thumbXLeft?1:-1;s.scrollLeft+=n*this.containerWidth,this.updateGeometry(!0),e.stopPropagation()},onTrackYMouseDown(e){if(be)return;const s=this.$refs.content,t=this.$refs.trackY.getBoundingClientRect(),n=e.pageY-window.scrollY-t.top>this.thumbYTop?1:-1;s.scrollTop+=n*this.containerHeight,this.updateGeometry(!0),e.stopPropagation()},onThumbXMouseDown(e){if(be)return;const s=this.$refs.content,t=s.getBoundingClientRect(),i=s.scrollLeft,n=e.pageX-window.scrollX,r=a=>{const l=a.pageX-n;s.scrollLeft=i+l*this.contentWidth/t.width},o=()=>{this.timeouts.moveX=setTimeout(()=>{this.moveingX=!1},100),document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",o)};this.moveingX=!0,this.timeouts.moveX&&clearTimeout(this.timeouts.moveX),document.addEventListener("mousemove",r),document.addEventListener("mouseup",o),e.preventDefault(),e.stopPropagation()},onThumbYMouseDown(e){if(be)return;const s=this.$refs.content,t=s.getBoundingClientRect(),i=s.scrollTop,n=e.pageY-window.scrollY,r=a=>{const l=a.pageY-n;s.scrollTop=i+l*this.contentHeight/t.height},o=()=>{this.timeouts.moveY=setTimeout(()=>{this.moveingY=!1},100),document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",o)};this.moveingY=!0,this.timeouts.moveY&&clearTimeout(this.timeouts.moveY),document.addEventListener("mousemove",r),document.addEventListener("mouseup",o),e.preventDefault(),e.stopPropagation()}},render(e){return e("div",{ref:"container",class:this.containerClass,on:{"~mousemove":this.onContainerMouseMove}},[e(this.tag,{ref:"content",class:this.contentClass,on:{touchstart:this.onContentTouchStart,scroll:this.onContentScroll,mouseenter:this.onContentMouseenter}},this.$slots.default),e("div",{ref:"trackX",class:"scrollbar-track-x",on:{mousedown:this.onTrackXMouseDown}},[e("div",{ref:"thumbX",class:"scrollbar-thumb-x",on:{mousedown:this.onThumbXMouseDown}})]),e("div",{ref:"trackY",class:"scrollbar-track-y",on:{mousedown:this.onTrackYMouseDown}},[e("div",{ref:"thumbY",class:"scrollbar-thumb-y",on:{mousedown:this.onThumbYMouseDown}})])])}};const _t=!!(window&&window.process&&window.process.type&&window.electron),Yt=window&&window.navigator&&/eeui/i.test(window.navigator.userAgent),qt=_t||Yt;var en;(en=document.getElementById("app"))==null||en.setAttribute("data-preload","false");E.use(Bt);E.use(ft);E.use($r,{config:{autoSetContainer:!0}});E.use(ee,{modal:{checkEscClose:!0}});E.component("PageTitle",$g);E.component("Loading",xg);E.component("AutoTip",Mg);E.component("TagInput",Ug);E.component("TableAction",Vg);E.component("QuickEdit",Qg);E.component("UserAvatar",n_);E.component("Imgs",u_);E.component("ImgView",g_);E.component("Scrollbar",__);E.component("EAvatar",Me.exports.Avatar);E.component("ETooltip",Me.exports.Tooltip);E.component("EPopover",Me.exports.Popover);E.component("EDropdown",Me.exports.Dropdown);E.component("EDropdownMenu",Me.exports.DropdownMenu);E.component("EDropdownItem",Me.exports.DropdownItem);const v_=ft.prototype.push;ft.prototype.push=function(s){return v_.call(this,s).catch(t=>t)};const Ut=ze(window.location)?"hash":"history",Kt=new ft({mode:Ut,routes:og});ee.LoadingBar.config({color:"#3fcc25",failedColor:"#ff0000"});Kt.beforeEach((e,s,t)=>{qt||(ee.LoadingBar._timer&&clearTimeout(ee.LoadingBar._timer),ee.LoadingBar._timer=setTimeout(i=>{ee.LoadingBar._load=!0,ee.LoadingBar.start()},300)),ge.commit("route/loading",!0),t()});Kt.afterEach(()=>{qt||(ee.LoadingBar._timer&&clearTimeout(ee.LoadingBar._timer),ee.LoadingBar._load===!0&&(ee.LoadingBar._load=!1,ee.LoadingBar.finish())),ge.commit("route/loading",!1)});ee.Message.config({duration:2.5});E.prototype.goForward=function(e,s,t=!0){if($A.Ready&&$A.isSubElectron&&t){$A.Electron.sendMessage("broadcastCommand",{channel:"goForward",payload:{route:e,isReplace:s}}),$A.Electron.sendMessage("mainWindowActive");return}if(typeof e=="string")if($A.strExists(e,"/")){if(/^https?:\/\//.test(e))if($A.getDomain(e)===$A.mainDomain())e=e.replace(/^https?:\/\/[^\/]+/,"");else{s?window.location.replace(e):window.location.href=e;return}e={path:e}}else e={name:e};R.$store.state.routeHistorys.length===0&&R.$store.state.routeHistorys.push(R.$route);const i=s?"replace":"push";R.$router[i](e).then(n=>{if(s)R.$store.state.routeHistorys.pop(),R.$store.state.routeHistorys.push(n);else{const r=R.$store.state.routeHistorys.push(n);r>120&&R.$store.state.routeHistorys.splice(r-100),R.$store.state.routeHistoryLast=r>=2?R.$store.state.routeHistorys[r-2]:{}}}).catch(n=>console.warn("\u8DEF\u7531\u8DF3\u8F6C\u5931\u8D25:",n))};E.prototype.goBack=function(){if(R.$store.state.routeHistorys.length>1){R.$router.back(),R.$store.state.routeHistorys.pop();const e=R.$store.state.routeHistorys.length;R.$store.state.routeHistoryLast=e>=2?R.$store.state.routeHistorys[e-2]:{}}else R.$router.replace({path:"/"}).catch(e=>{}),R.$store.state.routeHistorys=[],R.$store.state.routeHistoryLast={}};E.prototype.copyText=function(e){if($A.isJson(e)||(e={text:e,success:"\u590D\u5236\u6210\u529F",error:"\u590D\u5236\u5931\u8D25"}),$A.isEEUIApp){$A.eeuiAppCopyText(e.text),e.success&&$A.messageSuccess(e.success);return}R.$copyText(e.text).then(s=>{e.success&&$A.messageSuccess(e.success)}).catch(s=>{e.error&&$A.messageError(e.error)})};$A.L=Nt;$A.Ready=!1;$A.Electron=null;$A.Platform="web";$A.isMainElectron=!1;$A.isSubElectron=!1;$A.isEEUIApp=Yt;$A.isElectron=_t;$A.isSoftware=qt;$A.openLog=!1;_t?($A.Electron=window.electron,$A.Platform=/macintosh|mac os x/i.test(navigator.userAgent)?"mac":"win",$A.isMainElectron=/\s+MainTaskWindow\//.test(window.navigator.userAgent),$A.isSubElectron=/\s+SubTaskWindow\//.test(window.navigator.userAgent)):Yt&&($A.Platform=/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)?"ios":"android");const Qn=$A.randomString(6)+"_"+Date.now().toString();$A.syncPauses=new Map;$A.syncDispatch=(e,s)=>{var t;return!$A.Ready||!_t||$A.syncPauses.has(e)||!$A.isJson(s)?!1:s.__sync__===!0?(delete s.__sync__,!1):((t=$A.Electron)==null||t.sendMessage("broadcastCommand",{channel:"syncDispatch",payload:{dispatchId:Qn,action:e,data:s}}),!0)};var tn;(tn=$A.Electron)==null||tn.listener("syncDispatch",async({dispatchId:e,action:s,data:t})=>{!$A.Ready||Qn!==e&&(!$A.isJson(t)||(t.__sync__=!0,await ge.dispatch(s,t)))});var sn;(sn=$A.Electron)==null||sn.listener("goForward",({route:e,isReplace:s})=>{!$A.Ready||$A.goForward(e,s,!1)});$A.bindScreenshotKey=e=>{let s="";const t=(e.screenshot_key||"").trim().toLowerCase();t&&(s=/macintosh|mac os x/i.test(navigator.userAgent)?"command":"ctrl",s=`${s}+shift+${t.toLowerCase()}`),$A.Electron.sendMessage("bindScreenshotKey",{key:s})};E.prototype.$A=$A;E.prototype.$L=Nt;E.prototype.$Electron=$A.Electron;E.prototype.$Platform=$A.Platform;E.prototype.$isMainElectron=$A.isMainElectron;E.prototype.$isSubElectron=$A.isSubElectron;E.prototype.$isEEUIApp=$A.isEEUIApp;E.prototype.$isSoftware=$A.isSoftware;E.config.productionTip=!1;E.mixin(mg);let R;const Zi=async()=>{const e=await ge.dispatch("init");R=new E({router:Kt,store:ge,render:s=>s(rg),template:" "}).$mount("#app"),$A.apiCall=(...s)=>ge.dispatch("call",...s),$A.goForward=R.goForward,$A.goBack=R.goBack,$A.Message=R.$Message,$A.Notice=R.$Notice,$A.Modal=R.$Modal,$A.Ready=!0,e==="handleClearCache"&&$A.messageSuccess("\u6E05\u9664\u6210\u529F"),typeof window.LANGUAGE_DATA[`i_${M}`]!="undefined"&&ee.locale(window.LANGUAGE_DATA[`i_${M}`])},y_=async()=>{var s,t;if((s=document.getElementById("app"))==null||s.setAttribute("data-preload","true"),$A.isEEUIApp){const i=new Date().getTime();for(;typeof requireModuleJs!="function"&&(await new Promise(r=>setTimeout(r,200)),!(new Date().getTime()-i>15*1e3)););if(typeof requireModuleJs!="function"){const r=$A.L("\u52A0\u8F7D\u5931\u8D25\uFF0C\u8BF7\u91CD\u542F\u8F6F\u4EF6"),o=document.querySelector(".app-view-loading");o?o.innerHTML=`${r} `:alert(r);return}const n=$A.eeuiAppGetPageInfo()||{};ge.state.isFirstPage=n.pageName==="firstPage",await ge.dispatch("safeAreaInsets")}if(await ge.dispatch("preload"),window.location[Ut==="hash"?"hash":"pathname"].replace(/^[#\/\s]+/,"")!=="preload"){await Zi();return}(t=document.querySelector(".app-view-loading"))==null||t.setAttribute("data-visible","false"),window.__initializeApp=async i=>{if(/^https?:\/\//.test(i)){let n=$A.mainDomain();n==="public"&&(n=$A.getDomain(await $A.IDBString("cacheServerUrl")));const r=$A.getDomain(i);if(r!==n&&r!==window.location.host){window.location.href=i;return}i=i.replace(/^https?:\/\/[^\/]+/,"")}Ut==="hash"&&(i=`#/${i.replace(/^[#\/\s]+/,"")}`),window.history.replaceState(null,"",i),await Zi()}};y_().catch(e=>{});export{wv as A,wd as C,Xu as D,Ld as F,ga as L,Pt as M,vo as N,gv as P,Qg as Q,_v as R,yv as S,mv as T,Ft as U,mh as V,ch as a,Xs as b,ad as c,dn as d,x as e,jm as f,ve as g,Do as h,vv as i,od as j,ze as k,M as l,Xg as m,A as n,fv as o,hv as p,Sr as q,Nf as r,ge as s,mt as t,$v as u,dt as v,fn as w,pv as x};
+-----END PGP MESSAGE-----`}).then(n=>{i($A.jsonParse(n))})})},closeMeetingWindow({state:e},s){e.meetingWindow={show:!1,type:s,meetingid:0}},showMeetingWindow({state:e},s){e.meetingWindow=Object.assign(s,{show:s.type!=="direct"})},async openMicroApp({state:e,getters:s},t){if(!t||!$A.isJson(t)||!t.id||!t.name||!t.url)return;let i=t.id;if(e.microAppsIds.includes(i)||(i=e.microAppsIds.find(a=>typeof a=="string"&&a.endsWith(i))||null),!i){$A.modalWarning(`\u5E94\u7528\u300C${t.id}\u300D\u672A\u5B89\u88C5`);return}if(i==="ai"&&!s.aiVisible)return;if(t.skip_base_menu!==!0){const a=e.microAppsMenus.find(l=>(l==null?void 0:l.id)===i)||null;$A.isJson(a)&&(t=Object.assign({},a,t))}const n=new URL($A.mainUrl()),r=t.url.replace(/^\/+/,"").replace(/^\:(\d+)/ig,(a,l)=>n.protocol+"//"+n.hostname+":"+l).replace(/\{window[._]location[._](\w+)}/ig,(a,l)=>{if(l in n)return n[l]}).replace(/\{system_base_url}/g,n.origin),o={id:i,key:typeof t.key=="string"?t.key:"",name:t.name,title:t.label||t.title||t.name,url:$A.mainUrl(r),type:t.type||t.url_type,background:t.background||null,capsule:$A.isJson(t.capsule)?t.capsule:{},transparent:typeof t.transparent=="boolean"?t.transparent:!1,disable_scope_css:typeof t.disable_scope_css=="boolean"?t.disable_scope_css:!1,auto_dark_theme:typeof t.auto_dark_theme=="boolean"?t.auto_dark_theme:!0,keep_alive:typeof t.keep_alive=="boolean"?t.keep_alive:!0,immersive:typeof t.immersive=="boolean"?t.immersive:!1,width:typeof t.width=="number"&&t.width>0?t.width>100?Math.max(300,t.width):t.width:0,badge_clear_on_open:typeof t.badge_clear_on_open=="boolean"?t.badge_clear_on_open:!1,props:$A.isJson(t.props)?t.props:{}};o.url=o.url.replace(/\{user_id}/g,e.userId).replace(/\{user_nickname}/g,encodeURIComponent(e.userInfo.nickname)).replace(/\{user_email}/g,encodeURIComponent(e.userInfo.email)).replace(/\{user_avatar}/g,encodeURIComponent(e.userInfo.userimg)).replace(/\{user_token}/g,encodeURIComponent(e.userToken)).replace(/\{system_theme}/g,e.themeName).replace(/\{system_lang}/g,M).replace(/\{store_hidden_app_ids}/g,encodeURIComponent(s.hiddenStoreAppIds.join(","))),x.emit("observeMicroApp:open",o)},isMicroAppInstalled({state:e},s){return new Promise(t=>{if(!s){t(!1);return}t(!!e.microAppsIds.includes(s))})},async updateMicroAppsStatus({commit:e,state:s,dispatch:t}){t("call",{url:"apps/functions"}).then(({data:r})=>{e("systemFunctions/save",r==null?void 0:r.functions)}).catch(()=>{});const{data:{code:i,data:n}}=await at.get($A.mainUrl("appstore/api/v1/internal/installed"),{headers:{Token:s.userToken,Language:M}});if(i===200){let r=Array.isArray(n)?n:[];try{const{data:o}=await t("call",{url:"system/microapp_menu?type=get"});$A.isArray(o)&&o.length>0&&(o.forEach(a=>{a.menu_items.forEach(l=>{l.icon=l.icon||$A.mainUrl("images/application/appstore-default.svg")})}),r=r.concat(o))}catch{}e("microApps/data",r||[]);try{const{data:o}=await t("call",{url:"apps/badge/list"});e("appBadges/hydrateMap",o||{})}catch{}}},async toggleMcpServer({state:e,commit:s}){e.mcpServerStatus.running==="running"?s("mcp/server/status",{running:"stopped"}):s("mcp/server/status",{running:"running"})},applyAiSuggestion({},e){return this.dispatch("call",{url:"project/task/ai_apply",data:e})},dismissAiSuggestion({},e){return this.dispatch("call",{url:"project/task/ai_dismiss",data:e})}},hg={"route/loading":function(e,s){s?e.routeLoading++:e.routeLoading--},"user/push":function(e,s){e.cacheUserBasic.push(s),$A.IDBSave("cacheUserBasic",e.cacheUserBasic,600)},"user/splice":function(e,{index:s,data:t,count:i=1}){typeof t=="undefined"?e.cacheUserBasic.splice(s,i):e.cacheUserBasic.splice(s,i,t),$A.IDBSave("cacheUserBasic",e.cacheUserBasic,600)},"user/save":function(e,s){e.cacheUserBasic=s,$A.IDBSave("cacheUserBasic",e.cacheUserBasic,600)},"common/dialog/count/save":function(e,{userid:s,total:t,updatedAt:i=Date.now()}){if(!s)return;const n=String(s),r=Object.assign({},e.dialogCommonCountCache),o=Number(t);r[n]={total:Number.isNaN(o)?0:o,updated_at:i},e.dialogCommonCountCache=r,$A.IDBSave("dialogCommonCountCache",e.dialogCommonCountCache,600)},"common/dialog/count/clear":function(e,s){if(typeof s=="number"||typeof s=="string"){const t=Object.assign({},e.dialogCommonCountCache);delete t[String(s)],e.dialogCommonCountCache=t}else e.dialogCommonCountCache={};$A.IDBSave("dialogCommonCountCache",e.dialogCommonCountCache,600)},"message/push":function(e,s){e.dialogMsgs.push(s),$A.IDBSave("dialogMsgs",e.dialogMsgs,600)},"message/splice":function(e,{index:s,data:t,count:i=1}){typeof t=="undefined"?e.dialogMsgs.splice(s,i):e.dialogMsgs.splice(s,i,t),$A.IDBSave("dialogMsgs",e.dialogMsgs,600)},"message/save":function(e,s){e.dialogMsgs=s,$A.IDBSave("dialogMsgs",e.dialogMsgs,600)},"task/push":function(e,s){e.cacheTasks.push(s),$A.IDBSave("cacheTasks",e.cacheTasks,600)},"task/splice":function(e,{index:s,data:t,count:i=1}){typeof t=="undefined"?e.cacheTasks.splice(s,i):e.cacheTasks.splice(s,i,t),$A.IDBSave("cacheTasks",e.cacheTasks,600)},"task/content/push":function(e,s){e.taskContents.push(s)},"task/content/splice":function(e,{index:s,data:t,count:i=1}){typeof t=="undefined"?e.taskContents.splice(s,i):e.taskContents.splice(s,i,t)},"task/related/save":function(e,{taskId:s,list:t,updatedAt:i=Date.now()}){const n=Object.assign({},e.taskRelatedCache);n[s]={list:t,updated_at:i},e.taskRelatedCache=n,$A.IDBSave("taskRelatedCache",e.taskRelatedCache,600)},"task/related/clear":function(e,s){if(typeof s=="number"||typeof s=="string"){const t=Object.assign({},e.taskRelatedCache);delete t[s],e.taskRelatedCache=t}else e.taskRelatedCache={};$A.IDBSave("taskRelatedCache",e.taskRelatedCache,600)},"dialog/push":function(e,s){e.cacheDialogs.push(s),$A.IDBSave("cacheDialogs",e.cacheDialogs,600)},"dialog/splice":function(e,{index:s,data:t,count:i=1}){typeof t=="undefined"?e.cacheDialogs.splice(s,i):e.cacheDialogs.splice(s,i,t),$A.IDBSave("cacheDialogs",e.cacheDialogs,600)},"dialog/in/push":function(e,s){e.dialogIns.push(s)},"dialog/in/splice":function(e,{index:s,data:t,count:i=1}){typeof t=="undefined"?e.dialogIns.splice(s,i):e.dialogIns.splice(s,i,t)},"dialog/history/push":function(e,s){e.dialogHistory.push(s)},"dialog/history/save":function(e,s){e.dialogHistory=s},"dialog/msg/top/push":function(e,s){e.dialogMsgTops.push(s)},"dialog/msg/top/splice":function(e,{index:s,data:t,count:i=1}){typeof t=="undefined"?e.dialogMsgTops.splice(s,i):e.dialogMsgTops.splice(s,i,t)},"dialog/msg/top/save":function(e,s){e.dialogMsgTops=s},"dialog/todo/push":function(e,s){e.dialogTodos.push(s)},"dialog/todo/splice":function(e,{index:s,data:t,count:i=1}){typeof t=="undefined"?e.dialogTodos.splice(s,i):e.dialogTodos.splice(s,i,t)},"dialog/todo/save":function(e,s){e.dialogTodos=s},"project/push":function(e,s){e.cacheProjects.push(s),$A.IDBSave("cacheProjects",e.cacheProjects)},"project/splice":function(e,{index:s,data:t,count:i=1}){typeof t=="undefined"?e.cacheProjects.splice(s,i):e.cacheProjects.splice(s,i,t),$A.IDBSave("cacheProjects",e.cacheProjects)},"project/column/push":function(e,s){e.cacheColumns.push(s),$A.IDBSave("cacheColumns",e.cacheColumns)},"project/column/splice":function(e,{index:s,data:t,count:i=1}){typeof t=="undefined"?e.cacheColumns.splice(s,i):e.cacheColumns.splice(s,i,t),$A.IDBSave("cacheColumns",e.cacheColumns)},"project/column/save":function(e,s){e.cacheColumns=s,$A.IDBSave("cacheColumns",e.cacheColumns)},"project/parameter/push":function(e,s){e.cacheProjectParameter.push(s),$A.IDBSave("cacheProjectParameter",e.cacheProjectParameter)},"project/parameter/splice":function(e,{index:s,data:t,count:i=1}){typeof t=="undefined"?e.cacheProjectParameter.splice(s,i):e.cacheProjectParameter.splice(s,i,t),$A.IDBSave("cacheProjectParameter",e.cacheProjectParameter)},"department/owner/ids/save":function(e,s){e.cacheDepartmentOwnerIds=$A.normalizeIntArray(s),$A.IDBSet("cacheDepartmentOwnerIds",e.cacheDepartmentOwnerIds).catch(()=>{})},"department/owner/enabled/save":function(e,s){e.departmentOwnerProjectViewEnabled=s===!0,$A.IDBSet("departmentOwnerProjectViewEnabled",e.departmentOwnerProjectViewEnabled).catch(()=>{})},"file/push":function(e,s){e.fileLists.push(s),$A.IDBSave("fileLists",e.fileLists,600)},"file/splice":function(e,{index:s,data:t,count:i=1}){typeof t=="undefined"?e.fileLists.splice(s,i):e.fileLists.splice(s,i,t),$A.IDBSave("fileLists",e.fileLists,600)},"file/save":function(e,s){e.fileLists=s,$A.IDBSave("fileLists",e.fileLists,600)},"collaboration/file/cache/save":function(e,s){e.collaborationFileCache=s,$A.IDBSave("collaborationFileCache",s,600)},"collaboration/file/view/save":function(e,s){e.collaborationFileViewMode=s==="grid"?"grid":"list",$A.IDBSave("collaborationFileViewMode",e.collaborationFileViewMode)},"draft/set":function(e,{id:s,content:t}){const i=e.dialogDrafts.findIndex(r=>r.id===s),n={id:s,content:$A.filterInvalidLine(t),time:new Date().getTime()};i===-1&&!n.content||(e.dialogId==s?n.tag=i!==-1?e.dialogDrafts[i].tag:!1:n.tag=!!n.content,i!==-1?e.dialogDrafts.splice(i,1,n):e.dialogDrafts.push(n),$A.IDBSave("dialogDrafts",e.dialogDrafts))},"draft/tag":function(e,s){if(e.dialogId==s)return;const t=e.dialogDrafts.findIndex(i=>i.id===s);t!==-1&&(e.dialogDrafts[t].tag=!!e.dialogDrafts[t].content,$A.IDBSave("dialogDrafts",e.dialogDrafts))},"quote/set":function(e,{id:s,type:t,content:i}){const n=e.dialogQuotes.findIndex(o=>o.id===s),r={id:s,type:t,content:i,time:new Date().getTime()};n===-1&&!r.content||(n!==-1?e.dialogQuotes.splice(n,1,r):e.dialogQuotes.push(r),$A.IDBSave("dialogQuotes",e.dialogQuotes))},"quote/remove":function(e,s){const t=e.dialogQuotes.findIndex(i=>i.id===s);t!==-1&&(e.dialogQuotes.splice(t,1),$A.IDBSave("dialogQuotes",e.dialogQuotes))},"withdraw/set":function(e,s){const t=e.dialogWithdraws.findIndex(i=>i.id===s.id);t!==-1?e.dialogWithdraws.splice(t,1,s):e.dialogWithdraws.push(s),$A.IDBSave("dialogWithdraws",e.dialogWithdraws)},"withdraw/remove":function(e,s){const t=e.dialogWithdraws.findIndex(i=>i.id===s);t!==-1&&(e.dialogWithdraws.splice(t,1),$A.IDBSave("dialogWithdraws",e.dialogWithdraws))},"longpress/set":function(e,{type:s,data:t,element:i}){e.longpressData={type:s,data:t,element:i}},"longpress/clear":function(e){e.longpressData={type:"",data:null,element:null}},"menu/operation":function(e,s){e.menuOperation=s||{}},"microApps/push":function(e,s){e.microApps.push(s)},"microApps/update":function(e,{name:s,data:t}){const i=e.microApps.find(n=>n.name==s);i&&Object.assign(i,t)},"microApps/keepAlive":function(e,s){const t=e.microApps.filter(i=>i.keep_alive);t.length<=s||t.sort((i,n)=>i.lastOpenAt-n.lastOpenAt).slice(0,t.length-s).forEach(i=>{i.keepAliveBackup=!0,i.keep_alive=!1})},"microApps/splice":function(e,{index:s,data:t,count:i=1}){typeof t=="undefined"?e.microApps.splice(s,i):e.microApps.splice(s,i,t)},"microApps/data":function(e,s){e.userIsAdmin&&s.unshift({id:"appstore",version:"1.0.0",menu_items:[{location:"application/admin",label:$A.L("\u5E94\u7528\u5546\u5E97"),icon:$A.mainUrl("images/application/appstore.svg"),url:"appstore/internal?language={system_lang}&theme={system_theme}&hide_apps={store_hidden_app_ids}",disable_scope_css:!0,auto_dark_theme:!1,capsule:{visible:!0,top:18,right:18}}]});const t=e.microAppsInstalled.filter(n=>!s.some(r=>r.id===n.id)).map(n=>({type:"uninstall",id:n.id}));e.microAppsInstalled.forEach(n=>{const r=s.find(o=>o.id===n.id);r&&(n.version!==r.version?t.push({type:"update",id:n.id}):n.install_at!==r.install_at&&t.push({type:"reinstall",id:n.id}))}),e.microAppsInstalled=s,x.emit("observeMicroApp:updatedOrUninstalled",t);const i=[];s.forEach(n=>{n.id!=="system-functions"&&Array.isArray(n.menu_items)&&n.menu_items.length>0&&i.push(...n.menu_items.map(r=>Object.assign({},r,{id:n.id})))}),i.forEach(n=>{let r=n.id;i.filter(o=>o.id===n.id).length>1&&(r+="_"+`${n.url}`.replace(/^https?:\/\/.*?\//,"").replace(/[^a-zA-Z0-9]/g,"_")),i.find(o=>o.name===r)&&(r+="_"+$A.randomString(8)),n.name=r}),$A.IDBSave("microAppsIds",e.microAppsIds=s.map(n=>n.id)),$A.IDBSave("microAppsMenus",e.microAppsMenus=i)},"systemFunctions/save":function(e,s){$A.IDBSave("systemFunctions",e.systemFunctions=$A.isJson(s)?s:{})},"mcp/server/status":function(e,s){$A.IDBSave("mcpServerStatus",e.mcpServerStatus=s)}};const pg=Object.freeze({count:0,dot:!1});var fg={namespaced:!0,state:()=>({map:{}}),mutations:{set(e,{appid:s,menu_key:t,count:i,dot:n}){if(!s)return;const r=t||"";e.map[s]||E.set(e.map,s,{}),E.set(e.map[s],r,{count:Number(i)||0,dot:!!n})},hydrateMap(e,s){const t={};s&&typeof s=="object"&&Object.keys(s).forEach(i=>{const n=s[i];!i||!n||typeof n!="object"||Object.keys(n).forEach(r=>{const o=n[r]||{},a=Number(o.count)||0,l=!!o.dot;(a>0||l)&&(t[i]||(t[i]={}),t[i][r||""]={count:a,dot:l})})}),e.map=t},clearMenu(e,{appid:s,menu_key:t}){const i=t||"";s&&e.map[s]&&E.delete(e.map[s],i)},clearApp(e,s){s&&e.map[s]&&E.delete(e.map,s)}},getters:{badge:e=>(s,t)=>e.map[s]&&e.map[s][t||""]||pg,totalCount:e=>{let s=0;return Object.keys(e.map).forEach(t=>{Object.keys(e.map[t]).forEach(i=>{s+=Number(e.map[t][i].count)||0})}),s},anyDot:e=>Object.keys(e.map).some(s=>Object.keys(e.map[s]).some(t=>!!e.map[s][t].dot)),applicationCount:(e,s,t,i)=>(i.systemFunctionEnabled("report")&&Number(t.reportUnreadNumber)||0)+s.totalCount,applicationDot:(e,s)=>s.anyDot}};E.use(Bt);var ge=new Bt.Store({state:cg,getters:ug,mutations:hg,actions:dg,modules:{appBadges:fg}}),mg={computed:{...B(["windowWidth","windowHeight","windowActive","windowScrollY","windowTouch","windowLandscape","windowPortrait","userId","userToken","routeName","routePath"])}};var gg=function(){var e=this,s=e.$createElement;return e._self._c,e._e()},_g=[];const vg={name:"PageTitle",props:{title:{type:[String,Number],default:""}},data(){return{pagePath:""}},activated(){this.updateTitle()},watch:{title:{handler(){this.initTitle()},immediate:!0}},methods:{initTitle(){this.pagePath=this.$route.path,this.updateTitle()},updateTitle(){if(this.pagePath=="")return;let e=this.title,{title:s}=document;e!==s&&this.pagePath===this.$route.path&&this.setPageTile(e)},setPageTile(e){document.title=e}}},Hi={};var yg=A(vg,gg,_g,!1,wg,null,null,null);function wg(e){for(let s in Hi)this[s]=Hi[s]}var $g=function(){return yg.exports}(),kg=function(){var e=this,s=e.$createElement,t=e._self._c||s;return e.visible?t("ETooltip",{attrs:{disabled:e.$isEEUIApp||e.windowTouch||e.content=="",content:e.content}},[e.type==="svg"?t("svg",{staticClass:"common-loading",attrs:{viewBox:"25 25 50 50"}},[t("circle",{staticClass:"common-path",attrs:{cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"5","stroke-miterlimit":"10"}})]):t("div",{staticClass:"common-pureing"})]):e._e()},bg=[];const Ag={name:"Loading",props:{type:{type:String,default:"svg"},content:{type:[String,Number],default:""},delay:{type:Number,default:0}},data(){return{visible:this.delay===0,timer:null}},mounted(){this.delay>0&&(this.timer=setTimeout(e=>{this.visible=!0},this.delay))},beforeDestroy(){this.timer&&clearTimeout(this.timer)}},Wi={};var Cg=A(Ag,kg,bg,!1,Sg,null,null,null);function Sg(e){for(let s in Wi)this[s]=Wi[s]}var xg=function(){return Cg.exports}(),Tg=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("ETooltip",{attrs:{content:e.tipText,placement:e.placement,effect:e.tooltipTheme,delay:e.delay,disabled:e.$isEEUIApp||e.windowTouch||!e.showTooltip||e.disabled,"max-width":e.tooltipMaxWidth,transfer:""}},[t("span",{ref:"content",staticClass:"common-auto-tip",on:{mouseenter:e.handleTooltipIn,click:e.onClick}},[e.existSlot?[e._t("default")]:[e._v(e._s(e.content))]],2)])},Ig=[];const Dg={name:"AutoTip",props:{content:{type:[String,Number],default:""},placement:{default:"bottom"},tooltipTheme:{default:"dark"},tooltipMaxWidth:{type:[String,Number],default:300},delay:{type:Number,default:100},disabled:{type:Boolean,default:!1}},data(){return{showTooltip:!1,tooltipContent:""}},computed:{tipText(){const{content:e,tooltipContent:s}=this;return e||s||""},existSlot(){return!(typeof this.$slots.default=="undefined"||this.$slots.default.length<1)}},methods:{handleTooltipIn(){const e=this.$refs.content;if(!e)return;let s=document.createRange();s.setStart(e,0),s.setEnd(e,e.childNodes.length||0);const t=s.getBoundingClientRect().width;if(this.showTooltip=Math.floor(t)>Math.floor(e.offsetWidth),this.showTooltip&&this.existSlot){const i=this.$slots.default.map(n=>n.text?n.text:n.elm.innerText?n.elm.innerText:"");this.tooltipContent=i.join("")}s=null},onClick(e){this.$emit("on-click",e)}}},Vi={};var Eg=A(Dg,Tg,Ig,!1,Lg,null,null,null);function Lg(e){for(let s in Vi)this[s]=Vi[s]}var Mg=function(){return Eg.exports}(),Pg=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"common-tag-input",class:{focus:e.isFocus},on:{paste:function(i){return e.pasteText(i)},click:e.focus}},[t("Draggable",{attrs:{list:e.disSource,animation:150,tag:"ul",draggable:".column-item"}},e._l(e.disSource,function(i,n){return t("div",{key:i,staticClass:"tags-item column-item"},[t("span",{staticClass:"tags-content",on:{click:function(r){return r.stopPropagation(),e.edit(e.disSource,n)}}},[e._v(e._s(i))]),t("span",{staticClass:"tags-del",on:{click:function(r){return r.stopPropagation(),e.delTag(n)}}},[e._v("\xD7")])])}),0),t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.content,expression:"content"}],ref:"myTextarea",staticClass:"tags-input",style:{minWidth:e.minWidth+"px"},attrs:{placeholder:e.tis||e.placeholderText,enterkeyhint:e.enterkeyhint,disabled:e.disabled,readonly:e.readonly},domProps:{value:e.content},on:{keydown:[function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"enter",13,i.key,"Enter")?null:e.downEnter(i)},function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"delete",[8,46],i.key,["Backspace","Delete","Del"])?null:e.onBackspace(i)}],keyup:e.onKeyup,focus:e.onFocus,blur:e.onBlur,input:function(i){i.target.composing||(e.content=i.target.value)}}}),e._v(" "),e.showPlaceholder||e.tis!==""?t("span",{ref:"myPlaceholder",staticClass:"tags-placeholder"},[e._v(e._s(e.tis||e.placeholderText))]):e._e()],1)},jg=[];const Rg={name:"TagInput",components:{Draggable:$r},props:{value:{default:""},cut:{default:","},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},placeholder:{default:""},max:{default:0},enterkeyhint:{type:String,default:""}},data(){return{minWidth:80,tis:"",tisTimeout:null,showPlaceholder:!0,content:"",disSource:this.parseValue(this.value),isFocus:!1,editShow:!1,editData:{index:0,disSource:[],name:""},addRule:{name:[{required:!0,message:this.$L("\u8BF7\u586B\u5199\u540D\u79F0\uFF01"),trigger:"change"}]}}},mounted(){this.wayMinWidth()},watch:{placeholder(){this.wayMinWidth()},value(e){this.disSource=this.parseValue(e)},disSource(e){this.$emit("input",e.join(this.joinChar())),this.$emit("on-change")}},computed:{placeholderText(){return this.disSource.length>0?"":this.placeholder}},methods:{normalizedCuts(){return(Array.isArray(this.cut)?this.cut:[this.cut]).filter(s=>typeof s=="string"&&s.length>0)},cutPattern(){const e=this.normalizedCuts();if(e.length===0)return null;const s=e.map(t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"));return new RegExp(s.join("|"),"g")},joinChar(){return this.normalizedCuts()[0]||","},parseValue(e){const s=[];return typeof e!="string"||e===""||e.split(this.joinChar()).forEach(t=>{const i=t.trim();i&&s.indexOf(i)===-1&&s.push(i)}),s},splitByCuts(e){const s=this.cutPattern();return s?e.split(s):[e]},showTis(e){this.tis=e,clearTimeout(this.tisTimeout),this.tisTimeout=setTimeout(()=>{this.tis=""},2e3)},edit(e,s){this.editData.disSource=e,this.editData.index=s,this.editData.name=e[s]+"",$A.modalInput({title:"\u7F16\u8F91",placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0",okText:"\u786E\u5B9A",value:e[s]+"",onOk:t=>{const i=(t||"").trim();if(!i)return"\u8BF7\u8F93\u5165\u540D\u79F0";const n=this.disSource.indexOf(i);return n!==-1&&n!==this.editData.index?"\u8BE5\u6807\u7B7E\u5DF2\u5B58\u5728":(this.editData.name=i,this.editData.disSource[this.editData.index]=i,this.$set(this.disSource,this.editData.index,i),!1)}})},focus(e){const s=this.$refs.myTextarea;s.focus(e);const{cursor:t}=e||{};if(t){const i=s.value.length;switch(t){case"start":s.setSelectionRange(0,0);break;case"end":s.setSelectionRange(i,i);break;default:s.setSelectionRange(0,i)}}},wayMinWidth(){this.showPlaceholder=!0,this.$nextTick(()=>{this.$refs.myPlaceholder&&(this.minWidth=Math.max(this.minWidth,this.$refs.myPlaceholder.offsetWidth)),setTimeout(()=>{try{this.minWidth=Math.max(this.minWidth,this.$refs.myPlaceholder.offsetWidth),this.showPlaceholder=!1}catch{}$A(this.$refs.myPlaceholder).is(":visible")||this.wayMinWidth()},500)})},pasteText(e){e.preventDefault();let s=(e.clipboardData||window.clipboardData).getData("text");if(!!s)for(const t of this.splitByCuts(s)){const i=t.trim();if(!!i&&this.addTag(!1,i)===!1)break}},downEnter(e){e.isComposing||e.key==="Process"||e.keyCode===229||(e.preventDefault(),this.addTag(e,this.content),this.$nextTick(()=>{this.$emit("on-enter",e)}))},onBackspace(e){e.isComposing||e.key==="Process"||e.keyCode===229||this.delTag(!1)},onFocus(e){this.isFocus=!0,this.$emit("on-focus",e)},onBlur(e){this.isFocus=!1,this.addTag(!1,this.content),this.$emit("on-blur",e)},onKeyup(e){e.keyCode!==13&&this.addTag(e,this.content),this.$emit("on-keyup",e)},addTag(e,s){const t=e===!1||e.keyCode===13;let i;if(t)i=s.trim();else{if(s==="")return!0;let n=null;for(const r of this.normalizedCuts())if(r.length<=s.length&&s.substring(s.length-r.length)===r){n=r;break}if(n===null)return!0;i=s.substring(0,s.length-n.length).trim()}return i===""?(this.content="",!0):this.max>0&&this.disSource.length>=this.max?(this.content="",this.showTis(this.$L("\u6700\u591A\u53EA\u80FD\u6DFB\u52A0(*)\u4E2A",this.max)),!1):this.disSource.indexOf(i)!==-1?(this.content="",this.showTis(this.$L("\u8BE5\u6807\u7B7E\u5DF2\u5B58\u5728")),!0):(this.disSource.push(i),this.content="",!0)},delTag(e){if(e===!1){if(this.content!=="")return;e=this.disSource.length-1}this.disSource.splice(e,1),this.focus()}}},Yi={};var Og=A(Rg,Pg,jg,!1,zg,null,null,null);function zg(e){for(let s in Yi)this[s]=Yi[s]}var Ug=function(){return Og.exports}(),Bg=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"td-action",style:e.tdStyle,attrs:{"data-width":e.width,"data-height":e.height}},[t("div",{directives:[{name:"resize",rawName:"v-resize",value:e.onResize,expression:"onResize"}],ref:"action",staticClass:"td-action-container",class:{"td-action-menu":e.menu.length>0},on:{mouseenter:e.handleIn}},[e._t("default"),e._l(e.menu,function(i,n){return i.hidden!==!0?t("ETooltip",{key:n,attrs:{placement:"top",disabled:e.$isEEUIApp||e.windowTouch||!i.title,content:i.title,enterable:!1,"open-delay":600}},[i.children&&i.children.length>0?t("EDropdown",{staticClass:"menu-dropdown",attrs:{size:"medium",trigger:"click"},on:{command:e.onClick}},[i.label?t("a",{style:i.style||{},attrs:{href:i.href||"javascript:void(0)",target:i.target||"_self"}},[e._v(e._s(i.label))]):e.isAliIcon(i.icon)?t("i",{staticClass:"taskfont menu-icon",style:i.style||{},domProps:{innerHTML:e._s(i.icon)}}):t("Icon",{staticClass:"menu-icon",style:i.style||{},attrs:{type:i.icon}}),t("EDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},e._l(i.children,function(r,o){return r.hidden!==!0?t("EDropdownItem",{key:o,style:r.style||{},attrs:{command:r.action,disabled:!!r.disabled,divided:!!r.divided}},[t("div",[e._v(e._s(r.title))])]):e._e()}),1)],1):i.label?t("a",{style:i.style||{},attrs:{href:i.href||"javascript:void(0)",target:i.target||"_self"},on:{click:function(r){return e.onClick(i.action)}}},[e._v(e._s(i.label))]):e.isAliIcon(i.icon)?t("i",{staticClass:"taskfont menu-icon",style:i.style||{},domProps:{innerHTML:e._s(i.icon)},on:{click:function(r){return e.onClick(i.action)}}}):t("Icon",{staticClass:"menu-icon",style:i.style||{},attrs:{type:i.icon},on:{click:function(r){return e.onClick(i.action)}}})],1):e._e()})],2)])},Ng=[];E.use(kr);const Fg={name:"TableAction",props:{column:{type:Object,default:()=>({})},autoWidth:{type:Boolean,default:!0},minWidth:{type:Number,default:80},align:{type:String,default:""},menu:{type:Array,default:()=>[]}},data(){return{width:0,height:0}},mounted(){this.onUpdate()},activated(){this.onUpdate()},beforeUpdate(){this.onUpdate()},computed:{tdStyle(){const e={},{align:s}=this;switch(s.toLowerCase()){case"left":e.justifyContent="flex-start";break;case"center":e.justifyContent="center";break;case"right":e.justifyContent="flex-end";break}return e}},methods:{isAliIcon(e){return $A.leftExists(e,"")},handleIn(){var e;((e=this.$refs.action)==null?void 0:e.offsetWidth)!=this.width&&this.onUpdate()},onUpdate(){this.onResize({width:this.$refs.action.offsetWidth,height:this.$refs.action.offsetHeight})},onResize({width:e,height:s}){if(!this.autoWidth)return;$A(".ivu-table-column-"+this.column.__id).each((i,n)=>{let r=$A(n).find(".td-action-container");r.length>0&&(e=Math.max(e,r[0].offsetWidth),s=Math.max(s,r[0].offsetHeight))}),this.width=e,this.height=s;let t=Math.max(this.minWidth,this.width+26);this.column.minWidth&&(t=Math.max(this.column.minWidth,t)),this.column.maxWidth&&(t=Math.min(this.column.maxWidth,t)),t!=this.column.width&&this.$nextTick(()=>{this.$set(this.column,"width",t)})},onClick(e){this.$emit("action",e)}}},qi={};var Hg=A(Fg,Bg,Ng,!1,Wg,null,null,null);function Wg(e){for(let s in qi)this[s]=qi[s]}var Vg=function(){return Hg.exports}(),Yg=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"quick-edit",class:[e.alwaysIcon?"quick-always":""]},[e.isEdit?t("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.onClickOut,expression:"onClickOut"}],staticClass:"quick-input"},[e.isTag?t("TagInput",{ref:"input",attrs:{disabled:e.isLoad,enterkeyhint:"done"},on:{"on-keydown":e.onKeydown,"on-blur":e.onBlur},model:{value:e.content,callback:function(i){e.content=i},expression:"content"}}):t("Input",{ref:"input",attrs:{disabled:e.isLoad,parser:e.parser,enterkeyhint:"done"},on:{"on-keydown":e.onKeydown,"on-blur":e.onBlur},model:{value:e.content,callback:function(i){e.content=i},expression:"content"}}),e.isLoad?t("div",{staticClass:"quick-loading"},[t("Loading")],1):e._e()],1):[t("div",{staticClass:"quick-text",attrs:{title:e.attrTitle}},[e._t("default")],2),e.disabled?e._e():t("Icon",{staticClass:"quick-icon",attrs:{type:"ios-create-outline"},on:{click:function(i){return i.stopPropagation(),e.onEdit.apply(null,arguments)}}})]],2)},qg=[];const Kg={name:"QuickEdit",directives:{clickoutside:hn},props:{value:{},autoEdit:{},isTag:{type:Boolean,default:!1},alwaysIcon:{type:Boolean,default:!1},clickOutSide:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},parser:{type:Function},attrTitle:{type:String,default:""}},data(){return{isLoad:!1,isEdit:!1,content:""}},mounted(){this.autoEdit===!0&&this.onEdit()},watch:{autoEdit(e){e===!0&&setTimeout(this.onEdit,0)}},methods:{onEditChange(e){this.isEdit=e,this.$emit("on-edit-change",e)},onEdit(){this.content=this.value,this.onEditChange(!0),this.$nextTick(()=>{this.$refs.input.focus({cursor:"all"})})},onKeydown(e){e.keyCode===13?this.onEnter():e.keyCode===27&&(e.preventDefault(),e.stopPropagation(),this.isEdit=!1,this.isLoad=!1)},onEnter(){if(this.content==this.value){this.onEditChange(!1);return}this.isLoad||(this.isLoad=!0,this.$emit("input",this.content),this.$emit("on-update",this.content,()=>{this.onEditChange(!1),this.isLoad=!1}))},onClickOut(){!this.clickOutSide||this.onEnter()},onBlur(){this.clickOutSide||!this.isEdit||this.onEnter()}}},Ki={};var Gg=A(Kg,Yg,qg,!1,Jg,null,null,null);function Jg(e){for(let s in Ki)this[s]=Ki[s]}var Qg=function(){return Gg.exports}(),Xg={props:{userid:{type:[String,Number],default:""},size:{type:[String,Number],default:"default"},showIcon:{type:Boolean,default:!0},showName:{type:Boolean,default:!1},showStateDot:{type:Boolean,default:!0},nameText:{type:String,default:""},borderWidth:{type:Number,default:0},borderColor:{type:String,default:""},clickOpenDetail:{type:Boolean,default:!1},userResult:{default:null}}},Zg=function(){var e=this,s=e.$createElement,t=e._self._c||s;return e.user?t("div",{staticClass:"avatar-wrapper common-avatar",class:{"avatar-pointer":e.clickOpenDetail},on:{click:e.onClickOpen}},[e.showIcon?t("div",{class:e.boxClass,style:e.boxStyle,attrs:{title:e.showName?void 0:e.user.nickname}},[e.showStateDot&&!e.user.disable_at?t("em",{style:e.spotStyle}):e._e(),e.showImg?t("EAvatar",{ref:"avatar",class:{"avatar-default":e.isDefault},attrs:{src:e.user.userimg,size:e.avatarSize,error:e.onError}},[t("span",{staticClass:"avatar-char",style:e.spotStyle},[e._v(e._s(e.nickname))])]):t("EAvatar",{staticClass:"avatar-text",attrs:{size:e.avatarSize}},[t("span",{staticClass:"avatar-char",style:e.spotStyle},[e._v(e._s(e.nickname))])])],1):e._e(),e.showName?t("div",{staticClass:"avatar-name",style:e.nameStyle},[e.user.bot?t("div",{staticClass:"taskfont bot"},[e._v("\uE68C")]):e._e(),e._t("name-prefix"),t("span",[e._v(e._s(e.nameText||e.user.nickname))])],2):e._e()]):e._e()},e_=[];const t_={name:"UserAvatar",mixins:[Xg],data(){return{user:null}},mounted(){this.getData(),x.on("userActive",this.userActive),this.$store.state.userAvatar[this._uid]=this.$props},beforeDestroy(){x.off("userActive",this.userActive),this.$store.state.userAvatar[this._uid]!==void 0&&delete this.$store.state.userAvatar[this._uid]},computed:{boxClass(){return{"avatar-box":!0,online:this.$store.state.userId===this.userid||this.user.online||this.isBot,disabled:this.user.disable_at,deleted:this.user.delete_at}},boxStyle(){const e={},{borderWidth:s,borderColor:t}=this;return s>0&&(e.border=s+"px solid "+(t||"#ffffff")),e},spotStyle(){let{borderWidth:e,size:s}=this;return s==="default"&&(s=32),e>0&&(s-=e),s==32?{}:{transform:"scale("+Math.min(1.25,s/32)+")"}},nameStyle(){const{showIcon:e}=this,{delete_at:s,disable_at:t}=this.user,i={};return e||(i.marginLeft=0),(s||t)&&(i.opacity=.8),i},avatarSize(){let{borderWidth:e,size:s}=this;return s==="default"&&(s=32),e>0?s-e*2:s},showImg(){const{userimg:e}=this.user;return e?!$A.rightExists(e,"/avatar.png"):!1},isDefault(){const{userimg:e}=this.user;return $A.strExists(e,"/avatar")},isBot(){return!!(this.user&&this.user.bot)},nickname(){const{nickname:e}=this.user;if(!e)return"D";let s=e.substring(0,2);return/^[\u4e00-\u9fa5]+$/.test(s)&&(s=s.substring(0,1)),s||"D"}},watch:{userid(){this.getData()}},methods:{userActive({type:e,data:s}){s.userid==this.userid&&(e==="line"?this.user&&this.$set(this.user,"online",s.online):this.setUser(s))},getData(){if(!this.$store.state.userId)return;if(this.userid===-1){this.setUser({userid:-1,nickname:this.$L("AI \u52A9\u624B"),bot:!1,userimg:$A.mainUrl("images/avatar/default_assistant.png"),online:!1});return}const e=this.$store.state.cacheUserBasic.find(({userid:s})=>s==this.userid);e&&this.setUser(e),this.$store.dispatch("getUserBasic",{userid:this.userid})},setUser(e){try{this.user&&this.user.userimg!=e.userimg&&this.$refs.avatar&&(this.$refs.avatar.$data.isImageExist=!0)}catch{}this.user=e,typeof this.userResult=="function"&&this.userResult(e)},onClickOpen(){this.clickOpenDetail?x.emit("openUser",this.userid):this.$emit("on-click",this.userid)},openDialog(){this.$store.dispatch("openDialogUserid",this.userid).catch(({msg:e})=>{$A.modalError(e)})},onError(){return!0}}},Gi={};var s_=A(t_,Zg,e_,!1,i_,null,null,null);function i_(e){for(let s in Gi)this[s]=Gi[s]}var n_=function(){return s_.exports}(),r_=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("img",{attrs:{src:e.processedSrc,alt:e.alt}})},o_=[];const a_={props:{src:{type:String,required:!0},alt:{type:String,default:""}},computed:{processedSrc({src:e}){return on(e)}}},Ji={};var l_=A(a_,r_,o_,!1,c_,null,null,null);function c_(e){for(let s in Ji)this[s]=Ji[s]}var u_=function(){return l_.exports}(),d_=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("img",{attrs:{src:e.srcValue,alt:e.alt},on:{"~error":function(i){return e.onError.apply(null,arguments)}}})},h_=[];const p_={name:"ImgView",props:{src:{default:""},errorSrc:{default:""},alt:{default:""}},computed:{srcValue({src:e}){return this.toSrc(e)}},methods:{toSrc(e){return e.substring(0,10)==="data:image"||e.substring(0,2)==="//"||e.substring(0,7)==="http://"||e.substring(0,8)==="https://"||e.substring(0,6)==="ftp://"||e.substring(0,1)==="/"?e:$A.mainUrl(e)},onError(e){!this.errorSrc||(e.target.src=this.toSrc(this.errorSrc))}}},Qi={};var f_=A(p_,d_,h_,!1,m_,null,null,null);function m_(e){for(let s in Qi)this[s]=Qi[s]}var g_=function(){return f_.exports}();function G(e){return parseInt(e,10)||0}const be=typeof window!="undefined"&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch);function Xi(e){return e?getComputedStyle(e):{}}function ot(e,s){if(e)for(const t in s){let i=s[t];typeof i=="number"&&(i=`${i}px`),e.style[t]=i}return e}var __={name:"Scrollbar",props:{tag:{type:String,default:"div"},className:{type:String,default:""},enableX:{type:Boolean,default:!1},enableY:{type:Boolean,default:!0},hideBar:{type:Boolean,default:!1},minSize:{type:Number,default:20},touchContentBlur:{type:Boolean,default:!0}},data(){return{isReady:!1,scrollingX:!1,scrollingY:!1,moveingX:!1,moveingY:!1,containerWidth:null,containerHeight:null,contentWidth:null,contentHeight:null,contentOverflow:{x:null,y:null},thumbYHeight:null,thumbYTop:null,thumbXWidth:null,thumbXLeft:null,lastScrollTop:0,lastScrollLeft:0,timeouts:{}}},computed:{containerClass(){const e=["scrollbar-container"];return be?e.push("scrollbar-touch"):e.push("scrollbar-desktop"),this.contentWidth>this.containerWidth&&this.contentOverflow.x!=="hidden"&&this.enableX&&e.push("scrollbar-active-x"),this.contentHeight>this.containerHeight&&this.contentOverflow.y!=="hidden"&&this.enableY&&e.push("scrollbar-active-y"),this.scrollingX&&e.push("scrollbar-scrolling-x"),this.scrollingY&&e.push("scrollbar-scrolling-y"),this.moveingX&&e.push("scrollbar-moveing-x"),this.moveingY&&e.push("scrollbar-moveing-y"),(this.hideBar||!this.isReady)&&e.push("scrollbar-hidebar"),e},contentClass({className:e,enableX:s,enableY:t}){const i=["scrollbar-content"];return e&&i.push(e),s||i.push("scrollbar-disable-x"),t||i.push("scrollbar-disable-y"),i}},mounted(){this.$nextTick(()=>{this.updateBase()})},updated(){this.$nextTick(()=>{this.updateGeometry(!1)})},methods:{scrollInfo(){const e=$A(this.$refs.content),s=Math.round(e.innerHeight()),t=e.scrollTop(),i=this.$refs.content.scrollHeight;return{scale:t/(i-s),scrollY:t,scrollE:i-s-t}},scrollElement(){return this.$refs.content},querySelector(e){return this.$refs.content&&this.$refs.content.querySelector(e)},updateBase(){if(be)return;const e=Xi(this.$refs.container),s=Xi(this.$refs.content);ot(this.$refs.trackX,{left:G(e.paddingLeft)+G(s.marginLeft),right:G(e.paddingRight)+G(s.marginRight),bottom:G(e.paddingBottom)+G(s.marginBottom)}),ot(this.$refs.trackY,{top:G(e.paddingTop)+G(s.marginTop),bottom:G(e.paddingBottom)+G(s.marginBottom),right:G(e.paddingRight)+G(s.marginRight)}),this.contentOverflow={x:s.overflowX,y:s.overflowY}},updateGeometry(e){if(be)return;const s=this.$refs.content;if(!s)return;const t=Math.floor(s.scrollTop),i=s.getBoundingClientRect();this.containerWidth=Math.round(i.width),this.containerHeight=Math.round(i.height),this.contentWidth=s.scrollWidth,this.contentHeight=s.scrollHeight,this.thumbXWidth=Math.max(G(this.containerWidth*this.containerWidth/this.contentWidth),this.minSize),this.thumbXLeft=G(s.scrollLeft*(this.containerWidth-this.thumbXWidth)/(this.contentWidth-this.containerWidth)),this.thumbYHeight=Math.max(G(this.containerHeight*this.containerHeight/this.contentHeight),this.minSize),this.thumbYTop=G(t*(this.containerHeight-this.thumbYHeight)/(this.contentHeight-this.containerHeight)),ot(this.$refs.thumbX,{left:this.thumbXLeft,width:this.thumbXWidth}),ot(this.$refs.thumbY,{top:this.thumbYTop,height:this.thumbYHeight}),e&&(this.scrollingX=this.lastScrollLeft!==s.scrollLeft,this.scrollingY=this.lastScrollTop!==s.scrollTop,this.lastScrollTop=s.scrollTop,this.lastScrollLeft=s.scrollLeft,this.timeouts.scroll&&clearTimeout(this.timeouts.scroll),this.timeouts.scroll=setTimeout(()=>{this.scrollingX=!1,this.scrollingY=!1},1e3))},onContainerMouseMove(){var e;(e=this.$store)!=null&&e.state.windowTouch||setTimeout(()=>{this.isReady||(this.updateGeometry(!0),this.isReady=!0)},300)},onContentTouchStart(e){if(!this.touchContentBlur)return;const s=document.activeElement;s&&s.blur()},onContentScroll(e){this.updateGeometry(!0),this.$emit("on-scroll",e),this.isReady=!0},onContentMouseenter(){this.updateBase(),this.updateGeometry(!1)},onTrackXMouseDown(e){if(be)return;const s=this.$refs.content,t=this.$refs.trackX.getBoundingClientRect(),n=e.pageX-window.scrollX-t.left>this.thumbXLeft?1:-1;s.scrollLeft+=n*this.containerWidth,this.updateGeometry(!0),e.stopPropagation()},onTrackYMouseDown(e){if(be)return;const s=this.$refs.content,t=this.$refs.trackY.getBoundingClientRect(),n=e.pageY-window.scrollY-t.top>this.thumbYTop?1:-1;s.scrollTop+=n*this.containerHeight,this.updateGeometry(!0),e.stopPropagation()},onThumbXMouseDown(e){if(be)return;const s=this.$refs.content,t=s.getBoundingClientRect(),i=s.scrollLeft,n=e.pageX-window.scrollX,r=a=>{const l=a.pageX-n;s.scrollLeft=i+l*this.contentWidth/t.width},o=()=>{this.timeouts.moveX=setTimeout(()=>{this.moveingX=!1},100),document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",o)};this.moveingX=!0,this.timeouts.moveX&&clearTimeout(this.timeouts.moveX),document.addEventListener("mousemove",r),document.addEventListener("mouseup",o),e.preventDefault(),e.stopPropagation()},onThumbYMouseDown(e){if(be)return;const s=this.$refs.content,t=s.getBoundingClientRect(),i=s.scrollTop,n=e.pageY-window.scrollY,r=a=>{const l=a.pageY-n;s.scrollTop=i+l*this.contentHeight/t.height},o=()=>{this.timeouts.moveY=setTimeout(()=>{this.moveingY=!1},100),document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",o)};this.moveingY=!0,this.timeouts.moveY&&clearTimeout(this.timeouts.moveY),document.addEventListener("mousemove",r),document.addEventListener("mouseup",o),e.preventDefault(),e.stopPropagation()}},render(e){return e("div",{ref:"container",class:this.containerClass,on:{"~mousemove":this.onContainerMouseMove}},[e(this.tag,{ref:"content",class:this.contentClass,on:{touchstart:this.onContentTouchStart,scroll:this.onContentScroll,mouseenter:this.onContentMouseenter}},this.$slots.default),e("div",{ref:"trackX",class:"scrollbar-track-x",on:{mousedown:this.onTrackXMouseDown}},[e("div",{ref:"thumbX",class:"scrollbar-thumb-x",on:{mousedown:this.onThumbXMouseDown}})]),e("div",{ref:"trackY",class:"scrollbar-track-y",on:{mousedown:this.onTrackYMouseDown}},[e("div",{ref:"thumbY",class:"scrollbar-thumb-y",on:{mousedown:this.onThumbYMouseDown}})])])}};const _t=!!(window&&window.process&&window.process.type&&window.electron),Yt=window&&window.navigator&&/eeui/i.test(window.navigator.userAgent),qt=_t||Yt;var en;(en=document.getElementById("app"))==null||en.setAttribute("data-preload","false");E.use(Bt);E.use(ft);E.use(wr,{config:{autoSetContainer:!0}});E.use(ee,{modal:{checkEscClose:!0}});E.component("PageTitle",$g);E.component("Loading",xg);E.component("AutoTip",Mg);E.component("TagInput",Ug);E.component("TableAction",Vg);E.component("QuickEdit",Qg);E.component("UserAvatar",n_);E.component("Imgs",u_);E.component("ImgView",g_);E.component("Scrollbar",__);E.component("EAvatar",Me.exports.Avatar);E.component("ETooltip",Me.exports.Tooltip);E.component("EPopover",Me.exports.Popover);E.component("EDropdown",Me.exports.Dropdown);E.component("EDropdownMenu",Me.exports.DropdownMenu);E.component("EDropdownItem",Me.exports.DropdownItem);const v_=ft.prototype.push;ft.prototype.push=function(s){return v_.call(this,s).catch(t=>t)};const Ut=ze(window.location)?"hash":"history",Kt=new ft({mode:Ut,routes:og});ee.LoadingBar.config({color:"#3fcc25",failedColor:"#ff0000"});Kt.beforeEach((e,s,t)=>{qt||(ee.LoadingBar._timer&&clearTimeout(ee.LoadingBar._timer),ee.LoadingBar._timer=setTimeout(i=>{ee.LoadingBar._load=!0,ee.LoadingBar.start()},300)),ge.commit("route/loading",!0),t()});Kt.afterEach(()=>{qt||(ee.LoadingBar._timer&&clearTimeout(ee.LoadingBar._timer),ee.LoadingBar._load===!0&&(ee.LoadingBar._load=!1,ee.LoadingBar.finish())),ge.commit("route/loading",!1)});ee.Message.config({duration:2.5});E.prototype.goForward=function(e,s,t=!0){if($A.Ready&&$A.isSubElectron&&t){$A.Electron.sendMessage("broadcastCommand",{channel:"goForward",payload:{route:e,isReplace:s}}),$A.Electron.sendMessage("mainWindowActive");return}if(typeof e=="string")if($A.strExists(e,"/")){if(/^https?:\/\//.test(e))if($A.getDomain(e)===$A.mainDomain())e=e.replace(/^https?:\/\/[^\/]+/,"");else{s?window.location.replace(e):window.location.href=e;return}e={path:e}}else e={name:e};R.$store.state.routeHistorys.length===0&&R.$store.state.routeHistorys.push(R.$route);const i=s?"replace":"push";R.$router[i](e).then(n=>{if(s)R.$store.state.routeHistorys.pop(),R.$store.state.routeHistorys.push(n);else{const r=R.$store.state.routeHistorys.push(n);r>120&&R.$store.state.routeHistorys.splice(r-100),R.$store.state.routeHistoryLast=r>=2?R.$store.state.routeHistorys[r-2]:{}}}).catch(n=>console.warn("\u8DEF\u7531\u8DF3\u8F6C\u5931\u8D25:",n))};E.prototype.goBack=function(){if(R.$store.state.routeHistorys.length>1){R.$router.back(),R.$store.state.routeHistorys.pop();const e=R.$store.state.routeHistorys.length;R.$store.state.routeHistoryLast=e>=2?R.$store.state.routeHistorys[e-2]:{}}else R.$router.replace({path:"/"}).catch(e=>{}),R.$store.state.routeHistorys=[],R.$store.state.routeHistoryLast={}};E.prototype.copyText=function(e){if($A.isJson(e)||(e={text:e,success:"\u590D\u5236\u6210\u529F",error:"\u590D\u5236\u5931\u8D25"}),$A.isEEUIApp){$A.eeuiAppCopyText(e.text),e.success&&$A.messageSuccess(e.success);return}R.$copyText(e.text).then(s=>{e.success&&$A.messageSuccess(e.success)}).catch(s=>{e.error&&$A.messageError(e.error)})};$A.L=Nt;$A.Ready=!1;$A.Electron=null;$A.Platform="web";$A.isMainElectron=!1;$A.isSubElectron=!1;$A.isEEUIApp=Yt;$A.isElectron=_t;$A.isSoftware=qt;$A.openLog=!1;_t?($A.Electron=window.electron,$A.Platform=/macintosh|mac os x/i.test(navigator.userAgent)?"mac":"win",$A.isMainElectron=/\s+MainTaskWindow\//.test(window.navigator.userAgent),$A.isSubElectron=/\s+SubTaskWindow\//.test(window.navigator.userAgent)):Yt&&($A.Platform=/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)?"ios":"android");const Jn=$A.randomString(6)+"_"+Date.now().toString();$A.syncPauses=new Map;$A.syncDispatch=(e,s)=>{var t;return!$A.Ready||!_t||$A.syncPauses.has(e)||!$A.isJson(s)?!1:s.__sync__===!0?(delete s.__sync__,!1):((t=$A.Electron)==null||t.sendMessage("broadcastCommand",{channel:"syncDispatch",payload:{dispatchId:Jn,action:e,data:s}}),!0)};var tn;(tn=$A.Electron)==null||tn.listener("syncDispatch",async({dispatchId:e,action:s,data:t})=>{!$A.Ready||Jn!==e&&(!$A.isJson(t)||(t.__sync__=!0,await ge.dispatch(s,t)))});var sn;(sn=$A.Electron)==null||sn.listener("goForward",({route:e,isReplace:s})=>{!$A.Ready||$A.goForward(e,s,!1)});$A.bindScreenshotKey=e=>{let s="";const t=(e.screenshot_key||"").trim().toLowerCase();t&&(s=/macintosh|mac os x/i.test(navigator.userAgent)?"command":"ctrl",s=`${s}+shift+${t.toLowerCase()}`),$A.Electron.sendMessage("bindScreenshotKey",{key:s})};E.prototype.$A=$A;E.prototype.$L=Nt;E.prototype.$Electron=$A.Electron;E.prototype.$Platform=$A.Platform;E.prototype.$isMainElectron=$A.isMainElectron;E.prototype.$isSubElectron=$A.isSubElectron;E.prototype.$isEEUIApp=$A.isEEUIApp;E.prototype.$isSoftware=$A.isSoftware;E.config.productionTip=!1;E.mixin(mg);let R;const Zi=async()=>{const e=await ge.dispatch("init");R=new E({router:Kt,store:ge,render:s=>s(rg),template:" "}).$mount("#app"),$A.apiCall=(...s)=>ge.dispatch("call",...s),$A.goForward=R.goForward,$A.goBack=R.goBack,$A.Message=R.$Message,$A.Notice=R.$Notice,$A.Modal=R.$Modal,$A.Ready=!0,e==="handleClearCache"&&$A.messageSuccess("\u6E05\u9664\u6210\u529F"),typeof window.LANGUAGE_DATA[`i_${M}`]!="undefined"&&ee.locale(window.LANGUAGE_DATA[`i_${M}`])},y_=async()=>{var s,t;if((s=document.getElementById("app"))==null||s.setAttribute("data-preload","true"),$A.isEEUIApp){const i=new Date().getTime();for(;typeof requireModuleJs!="function"&&(await new Promise(r=>setTimeout(r,200)),!(new Date().getTime()-i>15*1e3)););if(typeof requireModuleJs!="function"){const r=$A.L("\u52A0\u8F7D\u5931\u8D25\uFF0C\u8BF7\u91CD\u542F\u8F6F\u4EF6"),o=document.querySelector(".app-view-loading");o?o.innerHTML=`${r} `:alert(r);return}const n=$A.eeuiAppGetPageInfo()||{};ge.state.isFirstPage=n.pageName==="firstPage",await ge.dispatch("safeAreaInsets")}if(await ge.dispatch("preload"),window.location[Ut==="hash"?"hash":"pathname"].replace(/^[#\/\s]+/,"")!=="preload"){await Zi();return}(t=document.querySelector(".app-view-loading"))==null||t.setAttribute("data-visible","false"),window.__initializeApp=async i=>{if(/^https?:\/\//.test(i)){let n=$A.mainDomain();n==="public"&&(n=$A.getDomain(await $A.IDBString("cacheServerUrl")));const r=$A.getDomain(i);if(r!==n&&r!==window.location.host){window.location.href=i;return}i=i.replace(/^https?:\/\/[^\/]+/,"")}Ut==="hash"&&(i=`#/${i.replace(/^[#\/\s]+/,"")}`),window.history.replaceState(null,"",i),await Zi()}};y_().catch(e=>{});export{wv as A,yd as C,Qu as D,Ed as F,ma as L,Pt as M,_o as N,gv as P,Qg as Q,_v as R,yv as S,mv as T,Ft as U,fh as V,lh as a,Xs as b,od as c,dn as d,x as e,jm as f,ve as g,Io as h,vv as i,rd as j,ze as k,M as l,Xg as m,A as n,fv as o,hv as p,Cr as q,dt as r,ge as s,mt as t,pv as u,fn as w};
diff --git a/public/js/build/application.44e4c067.js b/public/js/build/application.6b8ee1d4.js
similarity index 81%
rename from public/js/build/application.44e4c067.js
rename to public/js/build/application.6b8ee1d4.js
index e7ed008f3..21f4db15a 100644
--- a/public/js/build/application.44e4c067.js
+++ b/public/js/build/application.6b8ee1d4.js
@@ -1 +1 @@
-import{m as c,a as y}from"./vuex.cc7cb26e.js";import{D as b}from"./index.ab4b7604.js";import{n,U as g,e as l}from"./app.818b057c.js";import{C as $,T as k}from"./CheckinExport.a0a6b328.js";import{I as D}from"./IFrame.7112b2ed.js";import L from"./checkin.6f76d224.js";import{I as S}from"./ImgUpload.a99f26bd.js";import{w as C}from"./webhook.378987f3.js";import{D as M}from"./vuedraggable.f464b992.js";import"./jquery.c87f487f.js";import"./@babel.9410f858.js";import"./dayjs.fd4aa75c.js";import"./localforage.8de7c27e.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./vue.adba9046.js";import"./openpgp_hi.15f91b1d.js";import"./axios.37c7f908.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./view-design-hi.24419422.js";import"./html-to-md.f297036e.js";import"./lodash.8fcd6fd4.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vue-resize-observer.5af23a43.js";import"./element-sea.f8a64907.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";import"./sortablejs.3488b922.js";import"./SearchButton.3fc39f79.js";import"./chunkedUpload.a9ef725e.js";import"./spark-md5.0443325f.js";var I=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"setting-component-item"},[a("Form",t._b({ref:"formData",attrs:{model:t.formData,rules:t.ruleData},nativeOn:{submit:function(e){e.preventDefault()}}},"Form",t.formOptions,!1),[a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("\u7B7E\u5230\u8BBE\u7F6E")))]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("\u529F\u80FD\u5F00\u542F"),prop:"open"}},[a("RadioGroup",{model:{value:t.formData.open,callback:function(e){t.$set(t.formData,"open",e)},expression:"formData.open"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),a("div",{staticClass:"export-data"},[a("p",{on:{click:function(e){t.allUserShow=!0}}},[t._v(t._s(t.$L("\u4F1A\u5458\u7B7E\u5230\u8BBE\u7F6E")))]),a("p",{on:{click:function(e){t.exportShow=!0}}},[t._v(t._s(t.$L("\u5BFC\u51FA\u7B7E\u5230\u6570\u636E")))])])],1),t.formData.open==="open"?[a("FormItem",{attrs:{label:t.$L("\u7B7E\u5230\u65F6\u95F4"),prop:"time"}},[a("TimePicker",{attrs:{type:"timerange",format:"HH:mm",placeholder:t.$L("\u8BF7\u9009\u62E9\u7B7E\u5230\u65F6\u95F4")},model:{value:t.formData.time,callback:function(e){t.$set(t.formData,"time",e)},expression:"formData.time"}}),a("Form",{staticClass:"block-setting-advance",nativeOn:{submit:function(e){e.preventDefault()}}},[a("FormItem",{attrs:{label:t.$L("\u6700\u65E9\u53EF\u63D0\u524D"),prop:"advance"}},[a("div",{staticClass:"input-number-box"},[a("InputNumber",{attrs:{min:0,step:1},on:{"on-change":t.onAdvanceBlur},model:{value:t.formData.advance,callback:function(e){t.$set(t.formData,"advance",e)},expression:"formData.advance"}}),a("label",[t._v(t._s(t.$L("\u5206\u949F")))])],1),t.earliestCheckinTime?a("div",{staticClass:"form-tip"},[t._v(t._s(t.earliestCheckinTime))]):t._e()]),a("FormItem",{attrs:{label:t.$L("\u6700\u665A\u53EF\u5EF6\u540E"),prop:"delay"}},[a("div",{staticClass:"input-number-box"},[a("InputNumber",{attrs:{min:0,step:1},on:{"on-change":t.onDelayBlur},model:{value:t.formData.delay,callback:function(e){t.$set(t.formData,"delay",e)},expression:"formData.delay"}}),a("label",[t._v(t._s(t.$L("\u5206\u949F")))])],1),t.latestCheckinTime?a("div",{staticClass:"form-tip"},[t._v(t._s(t.latestCheckinTime))]):t._e()]),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u7B7E\u5230\u524D\u540E\u65F6\u95F4\u6536\u5230\u6D88\u606F\u901A\u77E5")))]),a("FormItem",{attrs:{label:t.$L("\u7B7E\u5230\u6253\u5361\u63D0\u9192"),prop:"remindin"}},[a("div",{staticClass:"input-number-box"},[a("InputNumber",{attrs:{min:0,step:1},model:{value:t.formData.remindin,callback:function(e){t.$set(t.formData,"remindin",e)},expression:"formData.remindin"}}),a("label",[t._v(t._s(t.$L("\u5206\u949F")))])],1)]),a("FormItem",{attrs:{label:t.$L("\u7B7E\u5230\u7F3A\u5361\u63D0\u9192"),prop:"remindexceed"}},[a("div",{staticClass:"input-number-box"},[a("InputNumber",{attrs:{min:0,step:1},model:{value:t.formData.remindexceed,callback:function(e){t.$set(t.formData,"remindexceed",e)},expression:"formData.remindexceed"}}),a("label",[t._v(t._s(t.$L("\u5206\u949F")))])],1)]),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u7B7E\u5230\u63D0\u9192\u5BF9\u8C61\uFF1A3\u5929\u5185\u6709\u7B7E\u5230\u7684\u6210\u5458\uFF08\u6CD5\u5B9A\u5DE5\u4F5C\u65E5\uFF09")))])],1)],1),a("FormItem",{attrs:{label:t.$L("\u5141\u8BB8\u4FEE\u6539"),prop:"edit"}},[a("RadioGroup",{model:{value:t.formData.face_upload,callback:function(e){t.$set(t.formData,"face_upload",e)},expression:"formData.face_upload"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5141\u8BB8")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u7981\u6B62")))])],1),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5141\u8BB8\u6210\u5458\u81EA\u5DF1\u4E0A\u4F20\u4EBA\u8138\u56FE\u7247")))]),a("RadioGroup",{model:{value:t.formData.edit,callback:function(e){t.$set(t.formData,"edit",e)},expression:"formData.edit"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5141\u8BB8")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u7981\u6B62")))])],1),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5141\u8BB8\u6210\u5458\u81EA\u5DF1\u4FEE\u6539MAC\u5730\u5740"))+" ("+t._s(t.$L("WiFi\u7B7E\u5230"))+")")])],1),a("FormItem",{attrs:{label:t.$L("\u7B7E\u5230\u65B9\u5F0F"),prop:"modes"}},[a("CheckboxGroup",{model:{value:t.formData.modes,callback:function(e){t.$set(t.formData,"modes",e)},expression:"formData.modes"}},[a("Checkbox",{attrs:{label:"face"}},[t._v(t._s(t.$L("\u4EBA\u8138\u7B7E\u5230")))]),a("Checkbox",{attrs:{label:"auto"}},[t._v(t._s(t.$L("WiFi\u7B7E\u5230")))]),a("Checkbox",{attrs:{label:"locat"}},[t._v(t._s(t.$L("\u5B9A\u4F4D\u7B7E\u5230")))]),a("Checkbox",{attrs:{label:"manual"}},[t._v(t._s(t.$L("\u624B\u52A8\u7B7E\u5230")))])],1),t.formData.modes.includes("face")?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u4EBA\u8138\u7B7E\u5230"))+": "+t._s(t.$L("\u901A\u8FC7\u4EBA\u8138\u8BC6\u522B\u673A\u7B7E\u5230")))]):t._e(),t.formData.modes.includes("auto")?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("WiFi\u7B7E\u5230"))+": "+t._s(t.$L("\u8BE6\u60C5\u770B\u4E0B\u6587\u5B89\u88C5\u8BF4\u660E")))]):t._e(),t.formData.modes.includes("locat")?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5B9A\u4F4D\u7B7E\u5230"))+": "+t._s(t.$L("\u901A\u8FC7\u5728\u7B7E\u5230\u6253\u5361\u673A\u5668\u4EBA\u53D1\u9001\u4F4D\u7F6E\u7B7E\u5230"))+" ("+t._s(t.$L("\u4EC5\u652F\u6301\u79FB\u52A8\u7AEFApp"))+")")]):t._e(),t.formData.modes.includes("manual")?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u624B\u52A8\u7B7E\u5230"))+": "+t._s(t.$L("\u901A\u8FC7\u5728\u7B7E\u5230\u6253\u5361\u673A\u5668\u4EBA\u53D1\u9001\u6307\u4EE4\u7B7E\u5230")))]):t._e()],1)]:t._e()],2)]),t.formData.open==="open"?[t.formData.modes.includes("face")?[a("div",{staticClass:"block-setting-space"}),a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("\u4EBA\u8138\u7B7E\u5230")))]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("\u7B7E\u5230\u5907\u6CE8"),prop:"face_remark"}},[a("Input",{attrs:{maxlength:30},model:{value:t.formData.face_remark,callback:function(e){t.$set(t.formData,"face_remark",e)},expression:"formData.face_remark"}})],1),a("FormItem",{attrs:{label:t.$L("\u91CD\u590D\u6253\u5361\u63D0\u9192"),prop:"face_retip"}},[a("RadioGroup",{model:{value:t.formData.face_retip,callback:function(e){t.$set(t.formData,"face_retip",e)},expression:"formData.face_retip"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1)],1)],1)])]:t._e(),t.formData.modes.includes("auto")?[a("div",{staticClass:"block-setting-space"}),a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("WiFi\u7B7E\u5230")))]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("\u5B89\u88C5\u8BF4\u660E"),prop:"explain"}},[a("p",[t._v("1. "+t._s(t.$L("WiFi\u7B7E\u5230\u5EF6\u8FDF\u65F6\u957F\u4E3A\xB11\u5206\u949F\u3002")))]),a("p",[t._v("2. "+t._s(t.$L("\u8BBE\u5907\u8FDE\u63A5\u4E0A\u6307\u5B9A\u8DEF\u7531\u5668\uFF08WiFi\uFF09\u540E\u81EA\u52A8\u7B7E\u5230\u3002")))]),a("p",[t._v("3. "+t._s(t.$L("\u4EC5\u652F\u6301Openwrt\u7CFB\u7EDF\u7684\u8DEF\u7531\u5668\u3002")))]),a("p",[t._v("4. "+t._s(t.$L("\u5173\u95ED\u7B7E\u5230\u529F\u80FD\u518D\u5F00\u542F\u9700\u8981\u91CD\u65B0\u5B89\u88C5\u3002")))]),a("p",[t._v("5. "+t._s(t.$L("\u8FDB\u5165\u8DEF\u7531\u5668\u7EC8\u7AEF\u6267\u884C\u4EE5\u4E0B\u547D\u4EE4\u5373\u53EF\u5B8C\u6210\u5B89\u88C5"))+":")]),a("Input",{ref:"cmd",staticStyle:{"margin-top":"6px"},attrs:{type:"textarea",readonly:"",value:t.formData.cmd},on:{"on-focus":t.clickCmd}})],1)],1)])]:t._e(),t.formData.modes.includes("locat")?[a("div",{staticClass:"block-setting-space"}),a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("\u5B9A\u4F4D\u7B7E\u5230")))]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("\u7B7E\u5230\u5907\u6CE8"),prop:"locat_remark"}},[a("Input",{attrs:{maxlength:30},model:{value:t.formData.locat_remark,callback:function(e){t.$set(t.formData,"locat_remark",e)},expression:"formData.locat_remark"}})],1),a("FormItem",{attrs:{label:t.$L("\u5730\u56FE\u7C7B\u578B"),prop:"locat_map_type"}},[a("RadioGroup",{model:{value:t.formData.locat_map_type,callback:function(e){t.$set(t.formData,"locat_map_type",e)},expression:"formData.locat_map_type"}},[a("Radio",{attrs:{label:"baidu"}},[t._v(t._s(t.$L("\u767E\u5EA6\u5730\u56FE")))]),a("Radio",{attrs:{label:"amap"}},[t._v(t._s(t.$L("\u9AD8\u5FB7\u5730\u56FE")))]),a("Radio",{attrs:{label:"tencent"}},[t._v(t._s(t.$L("\u817E\u8BAF\u5730\u56FE")))])],1),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u4EC5\u652F\u6301\u79FB\u52A8\u7AEFApp")))])],1),t.formData.locat_map_type==="baidu"?[a("FormItem",{attrs:{label:t.$L("\u767E\u5EA6\u5730\u56FEAK"),prop:"locat_bd_lbs_key"}},[a("Input",{attrs:{maxlength:100},model:{value:t.formData.locat_bd_lbs_key,callback:function(e){t.$set(t.formData,"locat_bd_lbs_key",e)},expression:"formData.locat_bd_lbs_key"}}),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u83B7\u53D6AK\u6D41\u7A0B"))+": "),a("a",{attrs:{href:"https://lbs.baidu.com/faq/search?id=299&title=677",target:"_blank"}},[t._v("https://lbs.baidu.com/faq/search?id=299&title=677")])])],1),a("FormItem",{attrs:{label:t.$L("\u5141\u8BB8\u7B7E\u5230\u4F4D\u7F6E"),prop:"locat_bd_lbs_point"}},[t.formData.locat_bd_lbs_point.lng?[a("div",{staticClass:"form-tip"},[a("a",{attrs:{href:"javascript:void(0)"},on:{click:t.openMapSelect}},[t._v(" "+t._s(t.$L("\u7ECF\u5EA6\uFF1A(*)\uFF0C\u7EAC\u5EA6\uFF1A(*)\uFF0C\u534A\u5F84\uFF1A(*)\u7C73",t.formData.locat_bd_lbs_point.lng,t.formData.locat_bd_lbs_point.lat,t.formData.locat_bd_lbs_point.radius))+" ")])]),a("div",{staticClass:"form-tip",on:{click:t.openMapSelect}},[t._v(t._s(t.$L("\u70B9\u51FB\u4FEE\u6539\u5141\u8BB8\u7B7E\u5230\u4F4D\u7F6E")))])]:a("a",{attrs:{href:"javascript:void(0)"},on:{click:t.openMapSelect}},[t._v(t._s(t.$L("\u70B9\u51FB\u8BBE\u7F6E")))])],2)]:t._e(),t.formData.locat_map_type==="amap"?[a("FormItem",{attrs:{label:t.$L("\u9AD8\u5FB7\u5730\u56FEKey"),prop:"locat_amap_key"}},[a("Input",{attrs:{maxlength:100},model:{value:t.formData.locat_amap_key,callback:function(e){t.$set(t.formData,"locat_amap_key",e)},expression:"formData.locat_amap_key"}}),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u83B7\u53D6Key\u6D41\u7A0B"))+": "),a("a",{attrs:{href:"https://lbs.amap.com/api/javascript-api/guide/abc/prepare",target:"_blank"}},[t._v("https://lbs.amap.com/api/javascript-api/guide/abc/prepare")])])],1),a("FormItem",{attrs:{label:t.$L("\u5141\u8BB8\u7B7E\u5230\u4F4D\u7F6E"),prop:"locat_amap_point"}},[t.formData.locat_amap_point.lng?[a("div",{staticClass:"form-tip"},[a("a",{attrs:{href:"javascript:void(0)"},on:{click:t.openMapSelect}},[t._v(" "+t._s(t.$L("\u7ECF\u5EA6\uFF1A(*)\uFF0C\u7EAC\u5EA6\uFF1A(*)\uFF0C\u534A\u5F84\uFF1A(*)\u7C73",t.formData.locat_amap_point.lng,t.formData.locat_amap_point.lat,t.formData.locat_amap_point.radius))+" ")])]),a("div",{staticClass:"form-tip",on:{click:t.openMapSelect}},[t._v(t._s(t.$L("\u70B9\u51FB\u4FEE\u6539\u5141\u8BB8\u7B7E\u5230\u4F4D\u7F6E")))])]:a("a",{attrs:{href:"javascript:void(0)"},on:{click:t.openMapSelect}},[t._v(t._s(t.$L("\u70B9\u51FB\u8BBE\u7F6E")))])],2)]:t._e(),t.formData.locat_map_type==="tencent"?[a("FormItem",{attrs:{label:t.$L("\u817E\u8BAF\u5730\u56FEKey"),prop:"locat_tencent_key"}},[a("Input",{attrs:{maxlength:100},model:{value:t.formData.locat_tencent_key,callback:function(e){t.$set(t.formData,"locat_tencent_key",e)},expression:"formData.locat_tencent_key"}}),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u83B7\u53D6Key\u6D41\u7A0B"))+": "),a("a",{attrs:{href:"https://lbs.qq.com/dev/console/application/mine",target:"_blank"}},[t._v("https://lbs.qq.com/dev/console/application/mine")])])],1),a("FormItem",{attrs:{label:t.$L("\u5141\u8BB8\u7B7E\u5230\u4F4D\u7F6E"),prop:"locat_tencent_point"}},[t.formData.locat_tencent_point.lng?[a("div",{staticClass:"form-tip"},[a("a",{attrs:{href:"javascript:void(0)"},on:{click:t.openMapSelect}},[t._v(" "+t._s(t.$L("\u7ECF\u5EA6\uFF1A(*)\uFF0C\u7EAC\u5EA6\uFF1A(*)\uFF0C\u534A\u5F84\uFF1A(*)\u7C73",t.formData.locat_tencent_point.lng,t.formData.locat_tencent_point.lat,t.formData.locat_tencent_point.radius))+" ")])]),a("div",{staticClass:"form-tip",on:{click:t.openMapSelect}},[t._v(t._s(t.$L("\u70B9\u51FB\u4FEE\u6539\u5141\u8BB8\u7B7E\u5230\u4F4D\u7F6E")))])]:a("a",{attrs:{href:"javascript:void(0)"},on:{click:t.openMapSelect}},[t._v(t._s(t.$L("\u70B9\u51FB\u8BBE\u7F6E")))])],2)]:t._e()],2)])]:t._e(),t.formData.modes.includes("manual")?[a("div",{staticClass:"block-setting-space"}),a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("\u624B\u52A8\u7B7E\u5230")))]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("\u7B7E\u5230\u5907\u6CE8"),prop:"manual_remark"}},[a("Input",{attrs:{maxlength:30},model:{value:t.formData.manual_remark,callback:function(e){t.$set(t.formData,"manual_remark",e)},expression:"formData.manual_remark"}})],1)],1)])]:t._e()]:t._e()],2),a("div",{staticClass:"setting-footer"},[a("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),a("Button",{attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1),a("CheckinExport",{model:{value:t.exportShow,callback:function(e){t.exportShow=e},expression:"exportShow"}}),a("DrawerOverlay",{attrs:{placement:"right",size:1380},model:{value:t.allUserShow,callback:function(e){t.allUserShow=e},expression:"allUserShow"}},[t.allUserShow?a("TeamManagement",{attrs:{"checkin-mode":""}}):t._e()],1),a("Modal",{attrs:{title:t.$L("\u5141\u8BB8\u7B7E\u5230\u4F4D\u7F6E"),"mask-closable":!1,styles:{width:"90%",maxWidth:"1000px"}},model:{value:t.mapSelectShow,callback:function(e){t.mapSelectShow=e},expression:"mapSelectShow"}},[a("div",[a("div",{staticClass:"map-select-container"},[a("div",{staticClass:"map-select-iframe-container"},[t.mapSelectShow?a("IFrame",{ref:"mapSelectIframe",staticClass:"map-select-point-iframe",attrs:{src:t.mapSelectUrl},on:{"on-message":t.onMapMessage}}):t._e()],1),a("div",{staticClass:"map-radius-control"},[a("div",{staticClass:"radius-control-header"},[a("h4",[t._v(t._s(t.$L("\u7B7E\u5230\u534A\u5F84\u8BBE\u7F6E")))])]),a("div",{staticClass:"radius-control-body"},[a("Input",{attrs:{value:t.mapSelectPoint.radius},on:{"on-change":t.onRadiusChange,"on-blur":t.onRadiusBlur}},[a("span",{attrs:{slot:"prepend"},slot:"prepend"},[t._v(t._s(t.$L("\u534A\u5F84")))]),a("span",{attrs:{slot:"append"},slot:"append"},[t._v(t._s(t.$L("[distance_unit].\u7C73")))])]),a("div",{staticClass:"location-info"},[a("div",{staticClass:"info-item"},[a("span",{staticClass:"info-label"},[t._v(t._s(t.$L("\u7ECF\u5EA6"))+"\uFF1A")]),a("span",{staticClass:"info-value"},[t._v(t._s(t.mapSelectPoint.lng||"-"))])]),a("div",{staticClass:"info-item"},[a("span",{staticClass:"info-label"},[t._v(t._s(t.$L("\u7EAC\u5EA6"))+"\uFF1A")]),a("span",{staticClass:"info-value"},[t._v(t._s(t.mapSelectPoint.lat||"-"))])]),a("div",{staticClass:"info-item"},[a("span",{staticClass:"info-label"},[t._v(t._s(t.$L("\u534A\u5F84"))+"\uFF1A")]),a("span",{staticClass:"info-value"},[t._v(t._s(t.mapSelectPoint.radius||"-")+" "+t._s(t.$L("[distance_unit].\u7C73")))])])]),a("div",{staticClass:"radius-control-tip"},[t.formData.locat_map_type==="baidu"?[t._v(" "+t._s(t.$L("\u70B9\u51FB\u5730\u56FE\u9009\u62E9\u4E2D\u5FC3\u4F4D\u7F6E\uFF0C\u62D6\u62FD\u5706\u5F62\u8FB9\u7F18\u8C03\u6574\u534A\u5F84\uFF0C\u6216\u5728\u4E0A\u65B9\u8F93\u5165\u6846\u76F4\u63A5\u8BBE\u7F6E\u534A\u5F84\u503C"))+" ")]:[t._v(" "+t._s(t.$L("\u70B9\u51FB\u5730\u56FE\u9009\u62E9\u4E2D\u5FC3\u4F4D\u7F6E\uFF0C\u5728\u4E0A\u65B9\u8F93\u5165\u6846\u4E2D\u8BBE\u7F6E\u7B7E\u5230\u534A\u5F84\u503C"))+" ")]],2)],1)])])]),a("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{type:"default"},on:{click:function(e){t.mapSelectShow=!1}}},[t._v(t._s(t.$L("\u5173\u95ED")))]),a("Button",{attrs:{type:"primary"},on:{click:t.onMapSelect}},[t._v(t._s(t.$L("\u786E\u5B9A")))])],1)])],1)},x=[];const w={name:"SystemCheckin",components:{IFrame:D,CheckinExport:$,TeamManagement:k,DrawerOverlay:b},data(){return{loadIng:0,formData:{open:"",edit:"",cmd:"",modes:[],face_upload:"",face_remark:"",face_retip:"",manual_remark:"",locat_remark:"",locat_map_type:"baidu",locat_bd_lbs_key:"",locat_bd_lbs_point:{},locat_amap_key:"",locat_amap_point:{},locat_tencent_key:"",locat_tencent_point:{}},ruleData:{},allUserShow:!1,exportShow:!1,mapSelectShow:!1,mapSelectPoint:{},mapSelectUrl:""}},mounted(){this.systemSetting()},computed:{...c(["formOptions"]),earliestCheckinTime(){const t=this.formData.time;if(!t||t.length<1||!t[0])return"";const s=parseInt(this.formData.advance)||0;if(s<=0)return"";let e=this.timeToMinutes(t[0])-s,i="";e<0&&(e+=24*60,i="("+this.$L("\u524D\u65E5")+") ");const o=Math.floor(e/60),r=e%60;return i+String(o).padStart(2,"0")+":"+String(r).padStart(2,"0")},latestCheckinTime(){const t=this.formData.time;if(!t||t.length<2||!t[1])return"";const s=parseInt(this.formData.delay)||0;if(s<=0)return"";let e=this.timeToMinutes(t[1])+s,i="";e>=24*60&&(e-=24*60,i="("+this.$L("\u6B21\u65E5")+") ");const o=Math.floor(e/60),r=e%60;return i+String(o).padStart(2,"0")+":"+String(r).padStart(2,"0")}},methods:{submitForm(){this.$refs.formData.validate(t=>{t&&this.systemSetting(!0)})},timeToMinutes(t){if(!t)return 0;const s=t.split(":");return parseInt(s[0])*60+parseInt(s[1])},getMaxAllowed(){const t=this.formData.time;if(!t||t.length<2)return null;const s=this.timeToMinutes(t[0]);let e=this.timeToMinutes(t[1])-s;return e<=0&&(e+=24*60),24*60-e},onAdvanceBlur(){const t=this.getMaxAllowed();if(t===null)return;const s=parseInt(this.formData.delay)||0,a=t-s-1;a<0?this.formData.advance=0:this.formData.advance>a&&(this.formData.advance=a)},onDelayBlur(){const t=this.getMaxAllowed();if(t===null)return;const s=parseInt(this.formData.advance)||0,a=t-s-1;a<0?this.formData.delay=0:this.formData.delay>a&&(this.formData.delay=a)},resetForm(){this.formData=$A.cloneJSON(this.formDatum_bak)},systemSetting(t){this.loadIng++,this.formData.cmd="",this.$store.dispatch("call",{url:"system/setting/checkin?type="+(t?"save":"all"),data:this.formData}).then(({data:s})=>{t&&$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.formData=s;try{this.formData.cmd=atob(this.formData.cmd)}catch{}this.formDatum_bak=$A.cloneJSON(this.formData)}).catch(({msg:s})=>{t&&$A.modalError(s)}).finally(s=>{this.loadIng--})},clickCmd(){this.$nextTick(t=>{this.$refs.cmd.focus({cursor:"all"})})},openMapSelect(){const t=this.formData.locat_map_type;let s="",a={};switch(t){case"baidu":if(s=this.formData.locat_bd_lbs_key,a=this.formData.locat_bd_lbs_point,!s){$A.messageError("\u8BF7\u5148\u586B\u5199\u767E\u5EA6\u5730\u56FEAK");return}break;case"amap":if(s=this.formData.locat_amap_key,a=this.formData.locat_amap_point,!s){$A.messageError("\u8BF7\u5148\u586B\u5199\u9AD8\u5FB7\u5730\u56FEKey");return}break;case"tencent":if(s=this.formData.locat_tencent_key,a=this.formData.locat_tencent_point,!s){$A.messageError("\u8BF7\u5148\u586B\u5199\u817E\u8BAF\u5730\u56FEKey");return}break;default:$A.messageError("\u8BF7\u9009\u62E9\u5730\u56FE\u7C7B\u578B");return}const e=`select_${t}.html`,i=$A.urlAddParams($A.mainUrl(`tools/map/${e}`),{key:s,point:a.lng+","+a.lat,radius:a.radius});this.$store.dispatch("userUrl",i).then(o=>{this.mapSelectUrl=o,this.mapSelectPoint=a,this.mapSelectShow=!0})},onMapMessage(t){const s=`${this.formData.locat_map_type}_lbs_select_point`;t.action===s&&(this.mapSelectPoint={lng:parseFloat(t.longitude),lat:parseFloat(t.latitude),radius:parseInt(t.radius)})},onRadiusChange({target:t}){const s=parseInt(t.value);if(s&&s>=50&&s<=5e3){this.mapSelectPoint.radius=s;const a=this.$refs.mapSelectIframe;a==null||a.postMessage({action:"update_radius",radius:s})}},onRadiusBlur({target:t}){t.value=this.mapSelectPoint.radius},onMapSelect(){switch(this.formData.locat_map_type){case"baidu":this.formData.locat_bd_lbs_point=this.mapSelectPoint;break;case"amap":this.formData.locat_amap_point=this.mapSelectPoint;break;case"tencent":this.formData.locat_tencent_point=this.mapSelectPoint;break}this.mapSelectShow=!1}}},p={};var A=n(w,I,x,!1,F,"b1904dc8",null,null);function F(t){for(let s in p)this[s]=p[s]}var E=function(){return A.exports}(),O=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"setting-component-item"},[a("Form",t._b({ref:"formData",attrs:{model:t.formData,rules:t.ruleData},nativeOn:{submit:function(e){e.preventDefault()}}},"Form",t.formOptions,!1),[a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("AgoraIO \u58F0\u7F51")))]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("\u4F1A\u8BAE\u529F\u80FD"),prop:"open"}},[a("RadioGroup",{model:{value:t.formData.open,callback:function(e){t.$set(t.formData,"open",e)},expression:"formData.open"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1)],1),t.formData.open==="open"?[a("Divider",{attrs:{orientation:"left"}},[t._v(t._s(t.$L("\u57FA\u672C\u914D\u7F6E")))]),a("div",{staticClass:"form-tip form-list"},[a("ul",[a("li",[t._v(t._s(t.$L("\u57FA\u672C\u914D\u7F6E"))+": "+t._s(t.$L("\u7528\u4E8E\u751F\u6210\u4F1A\u8BAE\u9891\u9053\u3002")))]),a("li",[t._v(t._s(t.$L("\u83B7\u53D6\u65B9\u5F0F"))+": "),a("a",{attrs:{href:"https://docportal.shengwang.cn/cn/Agora%20Platform/token_server#%E8%8E%B7%E5%8F%96-app-id-%E5%8F%8A-app-%E8%AF%81%E4%B9%A6",target:"_blank"}},[t._v("Open Link")])])])]),a("FormItem",{attrs:{label:"App ID ",prop:"appid"}},[a("Input",{attrs:{maxlength:255},model:{value:t.formData.appid,callback:function(e){t.$set(t.formData,"appid",e)},expression:"formData.appid"}})],1),a("FormItem",{attrs:{label:"App certificate",prop:"app_certificate"}},[a("Input",{attrs:{maxlength:255,type:"password"},model:{value:t.formData.app_certificate,callback:function(e){t.$set(t.formData,"app_certificate",e)},expression:"formData.app_certificate"}})],1),a("div",{staticClass:"clearfix"}),a("Divider",{attrs:{orientation:"left"}},[t._v("RESTful Api\uFF08"+t._s(t.$L("\u53EF\u9009"))+"\uFF09")]),a("div",{staticClass:"form-tip form-list"},[a("ul",[a("li",[t._v("RESTful Api: "+t._s(t.$L("\u7528\u4E8E\u9891\u9053\u7BA1\u7406\u3002"))+" ("+t._s(t.$L("\u6BD4\u5982"))+": "+t._s(t.$L("\u7ED3\u675F\u4F1A\u8BAE\u5BA4"))+")")]),a("li",[t._v(t._s(t.$L("\u83B7\u53D6\u65B9\u5F0F"))+" "),a("a",{attrs:{href:"https://doc.shengwang.cn/doc/rtc/restful/get-started/enable-service#%E8%8E%B7%E5%8F%96%E5%AE%A2%E6%88%B7-id-%E5%92%8C%E5%AE%A2%E6%88%B7%E5%AF%86%E9%92%A5",target:"_blank"}},[t._v("Open Link")])])])]),a("FormItem",{attrs:{label:"key ",prop:"api_key"}},[a("Input",{attrs:{maxlength:255},model:{value:t.formData.api_key,callback:function(e){t.$set(t.formData,"api_key",e)},expression:"formData.api_key"}})],1),a("FormItem",{attrs:{label:"secret",prop:"secret"}},[a("Input",{attrs:{maxlength:255,type:"password"},model:{value:t.formData.api_secret,callback:function(e){t.$set(t.formData,"api_secret",e)},expression:"formData.api_secret"}})],1)]:t._e()],2)])]),a("div",{staticClass:"setting-footer"},[a("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),a("Button",{attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},R=[];const P={name:"SystemMeeting",data(){return{loadIng:0,formData:{open:"",appid:"",app_certificate:""},ruleData:{}}},mounted(){this.systemSetting()},computed:{...c(["formOptions"])},methods:{submitForm(){this.$refs.formData.validate(t=>{t&&this.systemSetting(!0)})},resetForm(){this.formData=$A.cloneJSON(this.formDatum_bak)},systemSetting(t){this.loadIng++,this.$store.dispatch("call",{url:"system/setting/meeting?type="+(t?"save":"all"),data:this.formData}).then(({data:s})=>{t&&$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.formData=s,this.formDatum_bak=$A.cloneJSON(this.formData)}).catch(({msg:s})=>{t&&$A.modalError(s)}).finally(s=>{this.loadIng--})}}},d={};var B=n(P,O,R,!1,T,null,null,null);function T(t){for(let s in d)this[s]=d[s]}var j=function(){return B.exports}(),N=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("ul",{staticClass:"ivu-modal-wrap-ul"},[a("li",[t._m(0),a("div",{staticClass:"modal-item-info"},[a("div",{staticClass:"modal-item-name"},[a("h4",[t._v(t._s(t.$L("\u65B0\u4F1A\u8BAE")))])]),a("p",{staticClass:"modal-item-desc",on:{click:function(e){return t.openDetail(t.meetingDescs.add)}}},[t._v(" "+t._s(t.meetingDescs.add)+" ")]),a("div",{staticClass:"modal-item-btns"},[a("Button",{on:{click:function(e){return t.onMeeting("createMeeting")}}},[t._v(t._s(t.$L("\u65B0\u5EFA\u4F1A\u8BAE")))])],1)])]),a("li",[t._m(1),a("div",{staticClass:"modal-item-info"},[a("div",{staticClass:"modal-item-name"},[a("h4",[t._v(t._s(t.$L("\u52A0\u5165\u4F1A\u8BAE")))])]),a("p",{staticClass:"modal-item-desc",on:{click:function(e){return t.openDetail(t.meetingDescs.join)}}},[t._v(t._s(t.meetingDescs.join))]),a("div",{staticClass:"modal-item-btns"},[a("Button",{on:{click:function(e){return t.onMeeting("joinMeeting")}}},[t._v(t._s(t.$L("\u52A0\u5165\u4F1A\u8BAE")))])],1)])])])},K=[function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"modal-item-img"},[a("div",{staticClass:"apply-icon no-dark-content meeting"})])},function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"modal-item-img"},[a("div",{staticClass:"apply-icon no-dark-content meeting-join"})])}];const U={name:"SystemMeetingNav",data(){return{meetingDescs:{add:this.$L("\u521B\u5EFA\u4E00\u4E2A\u5168\u65B0\u7684\u4F1A\u8BAE\u89C6\u9891\u4F1A\u8BAE\uFF0C\u4E0E\u4F1A\u8005\u53EF\u4EE5\u5728\u5B9E\u65F6\u4E2D\u8FDB\u884C\u9762\u5BF9\u9762\u7684\u89C6\u542C\u4EA4\u6D41\u3002")+this.$L("\u901A\u8FC7\u89C6\u9891\u4F1A\u8BAE\u5E73\u53F0\uFF0C\u53C2\u4E0E\u8005\u53EF\u4EE5\u5206\u4EAB\u5C4F\u5E55\u3001\u5171\u4EAB\u6587\u6863\uFF0C\u5E76\u4E0E\u5176\u4ED6\u4E0E\u4F1A\u4EBA\u5458\u8FDB\u884C\u8BA8\u8BBA\u548C\u534F\u3002"),join:this.$L("\u52A0\u5165\u89C6\u9891\u4F1A\u8BAE\uFF0C\u53C2\u4E0E\u5DF2\u7ECF\u521B\u5EFA\u7684\u4F1A\u8BAE\uFF0C\u5728\u4F1A\u8BAE\u8FC7\u7A0B\u4E2D\u4E0E\u5176\u4ED6\u53C2\u4F1A\u4EBA\u5458\u8FDB\u884C\u8FDC\u7A0B\u5B9E\u65F6\u89C6\u542C\u4EA4\u6D41\u548C\u534F\u4F5C\u3002")}}},methods:{openDetail(t){this.$emit("openDetail",t)},onMeeting(t){this.$emit("onMeeting",t)}}},u={};var W=n(U,N,K,!1,z,null,null,null);function z(t){for(let s in u)this[s]=u[s]}var G=function(){return W.exports}(),q=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"setting-component-item"},[a("Form",t._b({ref:"formData",attrs:{model:t.formData,rules:t.ruleData},nativeOn:{submit:function(e){e.preventDefault()}}},"Form",t.formOptions,!1),[a("div",{staticClass:"block-setting-box"},[a("h3",[t._v("LDAP")]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("\u542F\u7528 LDAP \u8BA4\u8BC1"),prop:"ldap_open"}},[a("RadioGroup",{model:{value:t.formData.ldap_open,callback:function(e){t.$set(t.formData,"ldap_open",e)},expression:"formData.ldap_open"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5F00\u542F\u540E\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528 LDAP \u5E10\u53F7\u5BC6\u7801\u767B\u5F55")))])],1),t.formData.ldap_open==="open"?[a("FormItem",{attrs:{label:t.$L("LDAP \u5730\u5740"),prop:"ldap_host"}},[a("Input",{model:{value:t.formData.ldap_host,callback:function(e){t.$set(t.formData,"ldap_host",e)},expression:"formData.ldap_host"}}),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u4F8B\u5982"))+": 192.168.1.200\u3001www.ldap.com")])],1),a("FormItem",{attrs:{label:t.$L("LDAP \u7AEF\u53E3"),prop:"ldap_port"}},[a("Input",{attrs:{type:"number",placeholder:`${t.$L("\u9ED8\u8BA4")}: 389`},model:{value:t.formData.ldap_port,callback:function(e){t.$set(t.formData,"ldap_port",e)},expression:"formData.ldap_port"}})],1),a("FormItem",{attrs:{label:"Base DN",prop:"ldap_base_dn"}},[a("Input",{model:{value:t.formData.ldap_base_dn,callback:function(e){t.$set(t.formData,"ldap_base_dn",e)},expression:"formData.ldap_base_dn"}})],1),a("FormItem",{attrs:{label:"User DN",prop:"ldap_user_dn"}},[a("Input",{model:{value:t.formData.ldap_user_dn,callback:function(e){t.$set(t.formData,"ldap_user_dn",e)},expression:"formData.ldap_user_dn"}})],1),a("FormItem",{attrs:{label:t.$L("\u5BC6\u7801"),prop:"ldap_password"}},[a("Input",{attrs:{type:"password"},model:{value:t.formData.ldap_password,callback:function(e){t.$set(t.formData,"ldap_password",e)},expression:"formData.ldap_password"}})],1),a("FormItem",{attrs:{label:t.$L("\u767B\u5F55\u5C5E\u6027"),prop:"ldap_login_attr"}},[a("RadioGroup",{model:{value:t.formData.ldap_login_attr,callback:function(e){t.$set(t.formData,"ldap_login_attr",e)},expression:"formData.ldap_login_attr"}},[a("Radio",{attrs:{label:"cn"}},[t._v("cn")]),a("Radio",{attrs:{label:"uid"}},[t._v("uid")]),a("Radio",{attrs:{label:"mail"}},[t._v("mail")]),a("Radio",{attrs:{label:"sAMAccountName"}},[t._v("sAMAccountName")]),a("Radio",{attrs:{label:"userPrincipalName"}},[t._v("userPrincipalName")])],1),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u7528\u4E8E\u5339\u914D\u767B\u5F55\u7528\u6237\u540D\u7684 LDAP \u5C5E\u6027\uFF0CActive Directory \u8BF7\u9009\u62E9 sAMAccountName")))])],1),a("FormItem",{attrs:{label:t.$L("\u540C\u6B65\u672C\u5730\u5E10\u53F7"),prop:"ldap_sync_local"}},[a("RadioGroup",{model:{value:t.formData.ldap_sync_local,callback:function(e){t.$set(t.formData,"ldap_sync_local",e)},expression:"formData.ldap_sync_local"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5F00\u542F\u540C\u6B65\u672C\u5730\u5E10\u53F7\u767B\u5F55\u540E\u5C06\u540C\u6B65\u5230 LDAP \u670D\u52A1\u5668")))])],1),a("FormItem",[a("Button",{attrs:{loading:t.testLoad},on:{click:t.checkTest}},[t._v(t._s(t.$L("\u6D4B\u8BD5\u94FE\u63A5")))])],1)]:t._e()],2)])]),a("div",{staticClass:"setting-footer"},[a("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),a("Button",{attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},J=[];const V={name:"SystemThirdAccess",data(){return{loadIng:0,formData:{},ruleData:{},testLoad:!1}},mounted(){this.systemSetting()},computed:{...c(["formOptions"])},methods:{submitForm(){this.$refs.formData.validate(t=>{t&&this.systemSetting(!0)})},resetForm(){this.formData=$A.cloneJSON(this.formDatum_bak)},systemSetting(t){this.loadIng++,this.$store.dispatch("call",{url:"system/setting/thirdaccess?type="+(t?"save":"all"),data:this.formData}).then(({data:s})=>{t&&$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.formData=s,this.formDatum_bak=$A.cloneJSON(this.formData)}).catch(({msg:s})=>{t&&$A.modalError(s)}).finally(s=>{this.loadIng--})},checkTest(){this.testLoad||(this.testLoad=!0,this.$store.dispatch("call",{url:"system/setting/thirdaccess?type=testldap",data:this.formData}).then(({msg:t})=>{$A.messageSuccess(t)}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.testLoad=!1}))}}},_={};var H=n(V,q,J,!1,Z,null,null,null);function Z(t){for(let s in _)this[s]=_[s]}var Q=function(){return H.exports}(),X=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"setting-component-item"},[a("Form",t._b({ref:"formData",attrs:{model:t.formData,rules:t.ruleData},nativeOn:{submit:function(e){e.preventDefault()}}},"Form",t.formOptions,!1),[a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("\u90AE\u7BB1\u670D\u52A1\u5668\u8BBE\u7F6E")))]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("SMTP\u670D\u52A1\u5668"),prop:"smtp_server"}},[a("Input",{model:{value:t.formData.smtp_server,callback:function(e){t.$set(t.formData,"smtp_server",e)},expression:"formData.smtp_server"}})],1),a("FormItem",{attrs:{label:t.$L("\u7AEF\u53E3"),prop:"port"}},[a("Input",{attrs:{maxlength:20},model:{value:t.formData.port,callback:function(e){t.$set(t.formData,"port",e)},expression:"formData.port"}})],1),a("FormItem",{attrs:{label:t.$L("\u5E10\u53F7"),prop:"account"}},[a("Input",{attrs:{maxlength:128},model:{value:t.formData.account,callback:function(e){t.$set(t.formData,"account",e)},expression:"formData.account"}})],1),a("FormItem",{attrs:{label:t.$L("\u5BC6\u7801"),prop:"password"}},[a("Input",{attrs:{maxlength:128,type:"password"},model:{value:t.formData.password,callback:function(e){t.$set(t.formData,"password",e)},expression:"formData.password"}})],1),a("FormItem",[a("Button",{on:{click:t.checkEmailSend}},[t._v(t._s(t.$L("\u90AE\u4EF6\u53D1\u9001\u6D4B\u8BD5")))])],1)],1)]),a("div",{staticClass:"block-setting-space"}),a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("\u90AE\u4EF6\u901A\u77E5\u8BBE\u7F6E")))]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("\u5F00\u542F\u6CE8\u518C\u9A8C\u8BC1"),prop:"reg_verify"}},[a("RadioGroup",{model:{value:t.formData.reg_verify,callback:function(e){t.$set(t.formData,"reg_verify",e)},expression:"formData.reg_verify"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),t.formData.reg_verify=="open"?a("div",{staticClass:"form-tip"},[t._v(" "+t._s(t.$L("\u5F00\u542F\u540E"))+":"),a("br"),t._v(" \u2460 "+t._s(t.$L("\u5E10\u53F7\u9700\u9A8C\u8BC1\u901A\u8FC7\u624D\u53EF\u767B\u5F55"))),a("br"),t._v(" \u2461 "+t._s(t.$L("\u4FEE\u6539\u90AE\u7BB1\u548C\u5220\u9664\u5E10\u53F7\u9700\u8981\u90AE\u7BB1\u9A8C\u8BC1\u7801"))+" ")]):t._e()],1),a("FormItem",{attrs:{label:t.$L("\u6D88\u606F\u63D0\u9192"),prop:"notice_msg"}},[a("RadioGroup",{model:{value:t.formData.notice_msg,callback:function(e){t.$set(t.formData,"notice_msg",e)},expression:"formData.notice_msg"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),t.formData.notice_msg=="open"?a("Form",{staticClass:"block-setting-msg-unread",nativeOn:{submit:function(e){e.preventDefault()}}},[a("FormItem",{attrs:{label:t.$L("\u901A\u77E5\u65F6\u95F4")}},[a("div",{staticClass:"input-range-box"},[t._l(t.formData.msg_unread_time_ranges,function(e,i){return a("div",{key:i,staticClass:"input-range-item"},[a("TimePicker",{attrs:{type:"timerange",format:"HH:mm",placeholder:t.$L("\u9009\u62E9\u65F6\u95F4\u8303\u56F4"),transfer:""},model:{value:t.formData.msg_unread_time_ranges[i],callback:function(o){t.$set(t.formData.msg_unread_time_ranges,i,o)},expression:"formData.msg_unread_time_ranges[index]"}})],1)}),a("Button",{attrs:{type:"default",icon:"md-add"},on:{click:t.onAddTimeRange}},[t._v(t._s(t.$L("\u6DFB\u52A0\u65F6\u95F4\u8303\u56F4")))]),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u4EC5\u5728\u6307\u5B9A\u65F6\u95F4\u8303\u56F4\u5185\u53D1\u9001\u90AE\u4EF6\u901A\u77E5\u3002")))])],2)]),a("FormItem",{attrs:{label:t.$L("\u672A\u8BFB\u4E2A\u4EBA\u6D88\u606F"),prop:"msg_unread_user_minute"}},[a("div",{staticClass:"input-number-box"},[a("InputNumber",{attrs:{min:0,step:1},model:{value:t.formData.msg_unread_user_minute,callback:function(e){t.$set(t.formData,"msg_unread_user_minute",e)},expression:"formData.msg_unread_user_minute"}}),a("label",[t._v(t._s(t.$L("\u5206\u949F")))])],1)]),a("FormItem",{attrs:{label:t.$L("\u672A\u8BFB\u7FA4\u804A\u6D88\u606F"),prop:"msg_unread_group_minute"}},[a("div",{staticClass:"input-number-box"},[a("InputNumber",{attrs:{min:0,step:1},model:{value:t.formData.msg_unread_group_minute,callback:function(e){t.$set(t.formData,"msg_unread_group_minute",e)},expression:"formData.msg_unread_group_minute"}}),a("label",[t._v(t._s(t.$L("\u5206\u949F")))])],1)]),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u672A\u8BFB\u6D88\u606F\u8D85\u8FC7\u6307\u5B9A\u65F6\u95F4\u540E\u53D1\u9001\u90AE\u4EF6\u901A\u77E5\uFF0C\u8BBE\u4E3A-1\u5219\u4E0D\u901A\u77E5\u3002")))])],1):t._e()],1)],1)]),a("div",{staticClass:"block-setting-space"}),a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("\u5FFD\u7565\u90AE\u7BB1\u5730\u5740")))]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("\u5FFD\u7565\u90AE\u7BB1"),prop:"ignore_addr"}},[a("Input",{attrs:{type:"textarea",autosize:{minRows:3,maxRows:50}},model:{value:t.formData.ignore_addr,callback:function(e){t.$set(t.formData,"ignore_addr",e)},expression:"formData.ignore_addr"}}),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u4E0D\u4F1A\u5411\u5FFD\u7565\u7684\u90AE\u7BB1\u5730\u5740\u53D1\u9001\u90AE\u4EF6\uFF0C\u53EF\u4F7F\u7528\u6362\u884C\u5206\u5272\u591A\u4E2A\u5730\u5740\u3002")))])],1)],1)])]),a("div",{staticClass:"setting-footer"},[a("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),a("Button",{attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},Y=[];const tt={name:"SystemEmailSetting",data(){return{loadIng:0,formData:{smtp_server:"",port:"",account:"",password:"",reg_verify:"colse",notice_msg:"open",msg_unread_user_minute:-1,msg_unread_group_minute:-1,ignore_addr:"",msg_unread_time_ranges:[[]]},ruleData:{}}},mounted(){this.systemSetting()},computed:{...c(["formOptions"])},methods:{submitForm(){this.$refs.formData.validate(t=>{t&&this.systemSetting(!0)})},resetForm(){this.formData=$A.cloneJSON(this.formDatum_bak)},onAddTimeRange(){if(this.formData.msg_unread_time_ranges.length>5){$A.messageError("\u6700\u591A\u6DFB\u52A05\u4E2A\u65F6\u95F4\u8303\u56F4");return}this.formData.msg_unread_time_ranges.push([])},systemSetting(t){this.loadIng++,this.$store.dispatch("call",{url:"system/setting/email?type="+(t?"save":"all"),data:this.formData}).then(({data:s})=>{t&&$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.formData=s,this.formDatum_bak=$A.cloneJSON(this.formData)}).catch(({msg:s})=>{t&&$A.modalError(s)}).finally(s=>{this.loadIng--})},checkEmailSend(){$A.modalInput({title:"\u6D4B\u8BD5\u90AE\u4EF6",placeholder:"\u8BF7\u8F93\u5165\u6536\u4EF6\u4EBA\u5730\u5740",onOk:t=>t?$A.isEmail(t)?new Promise((s,a)=>{this.$store.dispatch("call",{url:"system/email/check",data:Object.assign(this.formData,{to:t})}).then(({msg:e})=>{s(e)}).catch(({msg:e})=>{a(e)})}):"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u6536\u4EF6\u4EBA\u5730\u5740":"\u8BF7\u8F93\u5165\u6536\u4EF6\u4EBA\u5730\u5740"})}}},f={};var at=n(tt,X,Y,!1,et,null,null,null);function et(t){for(let s in f)this[s]=f[s]}var st=function(){return at.exports}(),ot=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"setting-component-item"},[a("Form",t._b({ref:"formData",attrs:{model:t.formData,rules:t.ruleData},nativeOn:{submit:function(e){e.preventDefault()}}},"Form",t.formOptions,!1),[a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("\u53CB\u76DF\u63A8\u9001")))]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("\u5F00\u542F\u63A8\u9001"),prop:"push"}},[a("RadioGroup",{model:{value:t.formData.push,callback:function(e){t.$set(t.formData,"push",e)},expression:"formData.push"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1)],1),t.formData.push==="open"?[a("Divider",{attrs:{orientation:"left"}},[t._v("iOS "+t._s(t.$L("\u53C2\u6570\u914D\u7F6E")))]),a("FormItem",{attrs:{label:"Appkey",prop:"ios_appkey"}},[a("Input",{attrs:{maxlength:255},model:{value:t.formData.ios_key,callback:function(e){t.$set(t.formData,"ios_key",e)},expression:"formData.ios_key"}})],1),a("FormItem",{attrs:{label:"App Master Secret",prop:"secret"}},[a("Input",{attrs:{maxlength:255,type:"password"},model:{value:t.formData.ios_secret,callback:function(e){t.$set(t.formData,"ios_secret",e)},expression:"formData.ios_secret"}})],1),a("Divider",{attrs:{orientation:"left"}},[t._v("Android "+t._s(t.$L("\u53C2\u6570\u914D\u7F6E")))]),a("FormItem",{attrs:{label:"Appkey",prop:"android_appkey"}},[a("Input",{attrs:{maxlength:255},model:{value:t.formData.android_key,callback:function(e){t.$set(t.formData,"android_key",e)},expression:"formData.android_key"}})],1),a("FormItem",{attrs:{label:"App Master Secret",prop:"secret"}},[a("Input",{attrs:{maxlength:255,type:"password"},model:{value:t.formData.android_secret,callback:function(e){t.$set(t.formData,"android_secret",e)},expression:"formData.android_secret"}})],1)]:t._e()],2)])]),a("div",{staticClass:"setting-footer"},[a("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),a("Button",{attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},it=[];const rt={name:"SystemAppPush",data(){return{loadIng:0,formData:{push:"",ios_key:"",ios_secret:"",android_key:"",android_secret:""},ruleData:{}}},mounted(){this.systemSetting()},computed:{...c(["formOptions"])},methods:{submitForm(){this.$refs.formData.validate(t=>{t&&this.systemSetting(!0)})},resetForm(){this.formData=$A.cloneJSON(this.formDatum_bak)},systemSetting(t){this.loadIng++,this.$store.dispatch("call",{url:"system/setting/apppush?type="+(t?"save":"all"),data:this.formData}).then(({data:s})=>{t&&$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.formData=s,this.formDatum_bak=$A.cloneJSON(this.formData)}).catch(({msg:s})=>{t&&$A.modalError(s)}).finally(s=>{this.loadIng--})}}},h={};var nt=n(rt,ot,it,!1,lt,null,null,null);function lt(t){for(let s in h)this[s]=h[s]}var ct=function(){return nt.exports}(),mt=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"page-apply"},[a("PageTitle",{attrs:{title:t.$L("\u5E94\u7528")}}),a("div",{staticClass:"apply-wrapper"},[a("div",{staticClass:"apply-head"},[a("div",{staticClass:"apply-nav"},[a("h1",[t._v(t._s(t.$L("\u5E94\u7528")))])]),a("div",{staticClass:"apply-nav-actions"},[a("Dropdown",{attrs:{trigger:"click",placement:"bottom-end",transfer:""},on:{"on-click":t.handleActionMenu}},[a("div",{staticClass:"apply-action-btn"},[a("Icon",{attrs:{type:"ios-more"}})],1),a("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[t.sortingMode?a("DropdownItem",{attrs:{name:"cancelSort"}},[t._v(t._s(t.$L("\u9000\u51FA\u6392\u5E8F")))]):a("DropdownItem",{attrs:{name:"sort"}},[t._v(t._s(t.$L("\u8C03\u6574\u6392\u5E8F")))]),t.userIsAdmin?a("DropdownItem",{attrs:{divided:"",name:"customMicro"}},[t._v(t._s(t.$L("\u81EA\u5B9A\u4E49\u5E94\u7528\u83DC\u5355")))]):t._e()],1)],1)],1)]),t.sortingMode?a("div",{staticClass:"apply-sort-bar"},[a("div",{staticClass:"apply-sort-tip"},[a("Icon",{attrs:{type:"md-move"}}),a("span",[t._v(t._s(t.$L("\u62D6\u52A8\u5361\u7247\u8C03\u6574\u987A\u5E8F\uFF0C\u4FDD\u5B58\u540E\u4EC5\u81EA\u5DF1\u53EF\u89C1")))])],1),a("div",{staticClass:"apply-sort-actions"},[a("Button",{on:{click:t.exitSortMode}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),a("Button",{on:{click:t.restoreDefaultSort}},[t._v(t._s(t.$L("\u6062\u590D\u9ED8\u8BA4")))]),a("Button",{attrs:{type:"primary",disabled:!t.sortHasChanges,loading:t.appSortSaving},on:{click:t.submitSort}},[t._v(" "+t._s(t.$L("\u4FDD\u5B58"))+" ")])],1)]):t._e(),a("div",{staticClass:"apply-content"},[t._l(t.applyTypes,function(e){return[e==="base"||t.adminAppItems.length>0?[e==="base"&&t.isExistAdminList||e==="admin"?a("div",{staticClass:"apply-row-title"},[t._v(" "+t._s(e==="base"?t.$L("\u5E38\u7528"):t.$L("\u7BA1\u7406\u5458"))+" ")]):t._e(),t._l([t.currentCards(e)],function(i){return a("Draggable",{key:`apps_${e}`,staticClass:"apply-sort-list",attrs:{tag:"Row",list:i,disabled:!t.sortingMode,"component-data":{props:{gutter:16}},options:t.getDraggableOptions(e)}},t._l(i,function(o){return a("Col",{key:o.sortKey,staticClass:"apply-col-wrapper",attrs:{xs:{span:6},sm:{span:6},lg:{span:6},xl:{span:6},xxl:{span:3}}},[a("div",{staticClass:"apply-col"},[o.category==="micro"?[a("div",{staticClass:"apply-item",class:{"is-sorting":t.sortingMode},on:{click:function(r){return t.handleCardClick(o)}}},[a("div",{staticClass:"logo"},[a("div",{staticClass:"apply-icon no-dark-content",style:{backgroundImage:`url(${o.micro.icon})`}}),t.sortingMode?t._e():a("div",{staticClass:"apply-box-top-report"},[t.microBadge(o.micro).count>0?a("Badge",{attrs:{"overflow-count":999,count:t.microBadge(o.micro).count}}):t.microBadge(o.micro).dot?a("Badge",{attrs:{dot:""}}):t._e()],1)]),a("p",[t._v(t._s(o.micro.label))])])]:[o.system.value==="exportManage"&&!t.sortingMode?[a("div",{staticClass:"apply-item",class:{"is-sorting":t.sortingMode},on:{click:t.openExportMenu}},[a("div",{staticClass:"logo"},[a("div",{staticClass:"apply-icon no-dark-content",class:t.getLogoClass(o.system.value)})]),a("p",[t._v(t._s(t.$L(o.system.label)))])])]:a("div",{staticClass:"apply-item",class:{"is-sorting":t.sortingMode},on:{click:function(r){return t.handleCardClick(o)}}},[a("div",{staticClass:"logo"},[a("div",{staticClass:"apply-icon no-dark-content",class:t.getLogoClass(o.system.value)}),t.sortingMode?t._e():a("div",{staticClass:"apply-box-top-report",on:{click:function(r){return r.stopPropagation(),t.handleCardClick(o,"badge")}}},[t.showBadge(o.system,"report")?a("Badge",{attrs:{"overflow-count":999,count:t.reportUnreadNumber}}):t._e()],1)]),a("p",[t._v(t._s(t.$L(o.system.label)))])])]],2)])}),1)})]:t._e()]})],2)]),t.userIsAdmin?a("Modal",{attrs:{title:t.$L("\u81EA\u5B9A\u4E49\u5E94\u7528\u83DC\u5355"),"mask-closable":!1,width:"760"},model:{value:t.customMicroModalVisible,callback:function(e){t.customMicroModalVisible=e},expression:"customMicroModalVisible"}},[a("Alert",{staticClass:"custom-micro-alert",attrs:{type:"info","show-icon":""}},[t._v(" "+t._s(t.$L("\u4EC5\u7BA1\u7406\u5458\u53EF\u914D\u7F6E\uFF0C\u4FDD\u5B58\u540E\u4F1A\u5728\u5E94\u7528\u5217\u8868\u4E2D\u751F\u6210\u5BF9\u5E94\u83DC\u5355\u3002"))+" ")]),t.customMicroLoading?a("div",{staticClass:"custom-micro-loading"},[a("Loading")],1):a("div",{staticClass:"custom-micro-body"},[t.customMicroMenus.length?a("Collapse",{attrs:{accordion:"",simple:""},model:{value:t.customMicroCollapsed,callback:function(e){t.customMicroCollapsed=e},expression:"customMicroCollapsed"}},t._l(t.customMicroMenus,function(e,i){return a("Panel",{key:e.uid,attrs:{name:e.uid}},[a("div",{staticClass:"custom-micro-card__header"},[a("div",{staticClass:"custom-micro-card__title"},[t._v(" "+t._s(e.id||t.$L("\u672A\u547D\u540D\u5E94\u7528"))+" ")]),a("div",{staticClass:"custom-micro-card__actions"},[a("Button",{on:{click:function(o){return o.stopPropagation(),t.duplicateCustomMenu(i)}}},[t._v(t._s(t.$L("\u590D\u5236")))]),a("Button",{attrs:{type:"error"},on:{click:function(o){return o.stopPropagation(),t.removeCustomMenu(i)}}},[t._v(t._s(t.$L("\u5220\u9664")))])],1)]),a("div",{attrs:{slot:"content"},slot:"content"},[a("Form",{attrs:{"label-position":"top"}},[a("Row",{attrs:{gutter:16}},[a("Col",{attrs:{sm:12,xs:24}},[a("FormItem",{attrs:{label:t.$L("\u5E94\u7528 ID"),required:""}},[a("Input",{attrs:{placeholder:"custom-okr"},model:{value:e.id,callback:function(o){t.$set(e,"id",typeof o=="string"?o.trim():o)},expression:"item.id"}})],1)],1),a("Col",{attrs:{sm:12,xs:24}},[a("FormItem",{attrs:{label:t.$L("\u5E94\u7528\u540D\u79F0")}},[a("Input",{attrs:{placeholder:"OKR \u5F00\u53D1"},model:{value:e.name,callback:function(o){t.$set(e,"name",typeof o=="string"?o.trim():o)},expression:"item.name"}})],1)],1)],1),a("FormItem",{attrs:{label:t.$L("\u83DC\u5355\u6807\u9898"),required:""}},[a("Input",{attrs:{placeholder:"OKR \u5F00\u53D1\u5165\u53E3"},model:{value:e.menu.label,callback:function(o){t.$set(e.menu,"label",typeof o=="string"?o.trim():o)},expression:"item.menu.label"}})],1),a("Row",{attrs:{gutter:16}},[a("Col",{attrs:{sm:12,xs:24}},[a("FormItem",{attrs:{label:t.$L("\u83DC\u5355\u4F4D\u7F6E")}},[a("Select",{attrs:{transfer:""},model:{value:e.menu.location,callback:function(o){t.$set(e.menu,"location",o)},expression:"item.menu.location"}},[a("Option",{attrs:{value:"application"}},[t._v(t._s(t.$L("\u5E94\u7528\u4E2D\u5FC3 - \u5E38\u7528")))]),a("Option",{attrs:{value:"application/admin"}},[t._v(t._s(t.$L("\u5E94\u7528\u4E2D\u5FC3 - \u7BA1\u7406")))]),a("Option",{attrs:{value:"main/menu"}},[t._v(t._s(t.$L("\u4E3B\u5BFC\u822A")))])],1)],1)],1),a("Col",{attrs:{sm:12,xs:24}},[a("FormItem",{attrs:{label:t.$L("\u53EF\u89C1\u8303\u56F4")}},[a("Select",{attrs:{transfer:""},model:{value:e.menu.visible_to,callback:function(o){t.$set(e.menu,"visible_to",o)},expression:"item.menu.visible_to"}},[a("Option",{attrs:{value:"admin"}},[t._v(t._s(t.$L("\u4EC5\u7BA1\u7406\u5458")))]),a("Option",{attrs:{value:"all"}},[t._v(t._s(t.$L("\u6240\u6709\u6210\u5458")))])],1)],1)],1)],1),a("FormItem",{attrs:{label:t.$L("\u56FE\u6807\u5730\u5740")}},[a("Input",{attrs:{placeholder:"https://example.com/icon.png"},model:{value:e.menu.icon,callback:function(o){t.$set(e.menu,"icon",typeof o=="string"?o.trim():o)},expression:"item.menu.icon"}})],1),a("FormItem",{attrs:{label:t.$L("\u83DC\u5355 URL"),required:""}},[a("Input",{attrs:{placeholder:"https://example.com/app?token={user_token}"},model:{value:e.menu.url,callback:function(o){t.$set(e.menu,"url",typeof o=="string"?o.trim():o)},expression:"item.menu.url"}})],1),a("Row",{attrs:{gutter:16}},[a("Col",{attrs:{sm:12,xs:24}},[a("FormItem",{attrs:{label:t.$L("\u7C7B\u578B")}},[a("Select",{attrs:{transfer:""},model:{value:e.menu.type,callback:function(o){t.$set(e.menu,"type",o)},expression:"item.menu.type"}},[a("Option",{attrs:{value:"iframe"}},[t._v("iframe")]),a("Option",{attrs:{value:"iframe_blank"}},[t._v("iframe_blank")]),a("Option",{attrs:{value:"inline"}},[t._v("inline")]),a("Option",{attrs:{value:"inline_blank"}},[t._v("inline_blank")]),a("Option",{attrs:{value:"external"}},[t._v("external")])],1)],1)],1),a("Col",{attrs:{sm:12,xs:24}},[a("FormItem",{attrs:{label:t.$L("\u80CC\u666F\u989C\u8272")}},[a("Input",{attrs:{placeholder:"#FFFFFF \u6216 #FFFFFF|#000000"},model:{value:e.menu.background,callback:function(o){t.$set(e.menu,"background",typeof o=="string"?o.trim():o)},expression:"item.menu.background"}})],1)],1)],1),a("div",{staticClass:"custom-micro-checkbox-group"},[a("Checkbox",{model:{value:e.menu.keep_alive,callback:function(o){t.$set(e.menu,"keep_alive",o)},expression:"item.menu.keep_alive"}},[t._v(t._s(t.$L("\u4FDD\u6301\u6FC0\u6D3B\u72B6\u6001")))]),a("Checkbox",{model:{value:e.menu.auto_dark_theme,callback:function(o){t.$set(e.menu,"auto_dark_theme",o)},expression:"item.menu.auto_dark_theme"}},[t._v(t._s(t.$L("\u81EA\u52A8\u6697\u9ED1\u6A21\u5F0F")))]),a("Checkbox",{model:{value:e.menu.immersive,callback:function(o){t.$set(e.menu,"immersive",o)},expression:"item.menu.immersive"}},[t._v(t._s(t.$L("\u6C89\u6D78\u5F0F")))]),a("Checkbox",{model:{value:e.menu.transparent,callback:function(o){t.$set(e.menu,"transparent",o)},expression:"item.menu.transparent"}},[t._v(t._s(t.$L("\u900F\u660E\u80CC\u666F")))]),a("Checkbox",{model:{value:e.menu.disable_scope_css,callback:function(o){t.$set(e.menu,"disable_scope_css",o)},expression:"item.menu.disable_scope_css"}},[t._v(t._s(t.$L("\u7981\u7528\u4F5C\u7528\u57DF\u6837\u5F0F")))])],1)],1)],1)])}),1):a("div",{staticClass:"custom-micro-empty"},[t._v(" "+t._s(t.$L("\u6682\u65E0\u81EA\u5B9A\u4E49\u83DC\u5355\uFF0C\u8BF7\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\u65B0\u589E\u3002"))+" ")]),a("Button",{staticClass:"custom-micro-add-btn",attrs:{type:"dashed",long:"",icon:"md-add"},on:{click:t.addCustomMenu}},[t._v(" "+t._s(t.$L("\u65B0\u589E\u83DC\u5355"))+" ")])],1),a("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[a("Button",{on:{click:function(e){t.customMicroModalVisible=!1}}},[t._v(t._s(t.$L("\u5173\u95ED")))]),a("Button",{attrs:{type:"primary",loading:t.customMicroSaving},on:{click:t.saveCustomMenus}},[t._v(t._s(t.$L("\u4FDD\u5B58")))])],1)],1):t._e(),a("DrawerOverlay",{attrs:{placement:"right",size:720},scopedSlots:t._u([t.mybotShow?{key:"title",fn:function(){return[t._v(" "+t._s(t.$L("\u6211\u7684\u673A\u5668\u4EBA"))+" ")]},proxy:!0}:null,t.mybotShow?{key:"more",fn:function(){return[a("a",{attrs:{href:"javascript:void(0)"},on:{click:function(e){return t.applyClick({value:"mybot-add"},{id:0})}}},[t._v(t._s(t.$L("\u6DFB\u52A0\u673A\u5668\u4EBA")))])]},proxy:!0}:null],null,!0),model:{value:t.mybotShow,callback:function(e){t.mybotShow=e},expression:"mybotShow"}},[t.mybotShow?a("div",{staticClass:"ivu-modal-wrap-apply"},[a("div",{staticClass:"ivu-modal-wrap-apply-body full-body"},[t.mybotList.length===0?a("div",{staticClass:"empty-data"},[t.mybotLoad?a("Loading"):a("span",[t._v(t._s(t.$L("\u60A8\u6CA1\u6709\u521B\u5EFA\u673A\u5668\u4EBA")))])],1):a("ul",{staticClass:"ivu-modal-wrap-ul"},t._l(t.mybotList,function(e,i){return a("li",{key:i},[a("div",{staticClass:"modal-item-img"},[a("img",{attrs:{src:e.avatar}})]),a("div",{staticClass:"modal-item-info"},[a("div",{staticClass:"modal-item-name"},[a("h4",{staticClass:"user-select-auto"},[t._v(t._s(e.name))])]),a("div",{staticClass:"modal-item-mybot user-select-auto"},[a("p",[a("span",[t._v("ID:")]),t._v(t._s(e.id))]),a("p",[a("span",[t._v(t._s(t.$L("\u6E05\u7406\u65F6\u95F4"))+":")]),t._v(t._s(e.clear_day))]),a("p",[a("span",[t._v("Webhook:")]),t._v(t._s(e.webhook_url||"-"))]),a("p",[a("span",[t._v(t._s(t.$L("Webhook\u4E8B\u4EF6"))+":")]),t._v(t._s(t.formatWebhookEvents(e.webhook_events)))])]),a("div",{staticClass:"modal-item-btns"},[a("Button",{attrs:{icon:"md-chatbubbles"},on:{click:function(o){return t.applyClick({value:"mybot-chat"},e)}}},[t._v(t._s(t.$L("\u5F00\u59CB\u804A\u5929")))]),a("Button",{attrs:{icon:"md-create"},on:{click:function(o){return t.applyClick({value:"mybot-add"},e)}}},[t._v(t._s(t.$L("\u4FEE\u6539")))]),a("Button",{attrs:{icon:"md-trash"},on:{click:function(o){return t.applyClick({value:"mybot-del"},e)}}},[t._v(t._s(t.$L("\u5220\u9664")))])],1)])])}),0)])]):t._e()]),a("Modal",{attrs:{title:t.$L(t.mybotModifyData.id>0?"\u4FEE\u6539\u673A\u5668\u4EBA":"\u6DFB\u52A0\u673A\u5668\u4EBA"),"mask-closable":!1},model:{value:t.mybotModifyShow,callback:function(e){t.mybotModifyShow=e},expression:"mybotModifyShow"}},[a("Form",t._b({attrs:{model:t.mybotModifyData},nativeOn:{submit:function(e){e.preventDefault()}}},"Form",t.formOptions,!1),[t.mybotModifyData.system_name?a("Alert",{staticStyle:{"margin-bottom":"18px"},attrs:{type:"error"}},[t._v(t._s(t.$L("\u6B63\u5728\u4FEE\u6539\u7CFB\u7EDF\u673A\u5668\u4EBA\uFF1A(*)",t.mybotModifyData.system_name)))]):t._e(),a("FormItem",{attrs:{prop:"avatar",label:t.$L("\u5934\u50CF")}},[a("ImgUpload",{attrs:{num:1,width:512,height:512,whcut:"cover"},model:{value:t.mybotModifyData.avatar,callback:function(e){t.$set(t.mybotModifyData,"avatar",e)},expression:"mybotModifyData.avatar"}})],1),a("FormItem",{attrs:{prop:"name",label:t.$L("\u540D\u79F0")}},[a("Input",{attrs:{maxlength:20,placeholder:t.$L("\u673A\u5668\u4EBA\u540D\u79F0")},model:{value:t.mybotModifyData.name,callback:function(e){t.$set(t.mybotModifyData,"name",e)},expression:"mybotModifyData.name"}})],1),a("FormItem",{attrs:{prop:"clear_day",label:t.$L("\u6D88\u606F\u4FDD\u7559")}},[a("Input",{attrs:{maxlength:3,type:"number",placeholder:t.$L("\u9ED8\u8BA4\uFF1A90\u5929")},model:{value:t.mybotModifyData.clear_day,callback:function(e){t.$set(t.mybotModifyData,"clear_day",e)},expression:"mybotModifyData.clear_day"}},[a("div",{attrs:{slot:"append"},slot:"append"},[t._v(t._s(t.$L("[day_unit].\u5929")))])])],1),a("FormItem",{attrs:{prop:"webhook_url",label:"Webhook"}},[a("Input",{attrs:{maxlength:255,"show-word-limit":.9,type:"textarea",placeholder:"Webhook"},model:{value:t.mybotModifyData.webhook_url,callback:function(e){t.$set(t.mybotModifyData,"webhook_url",e)},expression:"mybotModifyData.webhook_url"}})],1),a("FormItem",{attrs:{prop:"webhook_events",label:t.$L("Webhook\u4E8B\u4EF6")}},[a("CheckboxGroup",{model:{value:t.mybotModifyData.webhook_events,callback:function(e){t.$set(t.mybotModifyData,"webhook_events",e)},expression:"mybotModifyData.webhook_events"}},t._l(t.webhookEventOptions,function(e){return a("Checkbox",{key:e.value,attrs:{label:e.value}},[t._v(" "+t._s(t.$L(e.label))+" ")])}),1)],1)],1),a("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{type:"default"},on:{click:function(e){t.mybotModifyShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),a("Button",{attrs:{type:"primary",loading:t.mybotModifyLoad>0},on:{click:t.onMybotModify}},[t._v(t._s(t.$L("\u4FDD\u5B58")))])],1)],1),a("DrawerOverlay",{attrs:{placement:"right",size:500},scopedSlots:t._u([t.signInShow?{key:"title",fn:function(){return[t._v(" "+t._s(t.$L("\u7B7E\u5230\u7BA1\u7406"))+" ")]},proxy:!0}:null,t.signInShow?{key:"more",fn:function(){return[t.userIsAdmin?a("a",{attrs:{href:"javascript:void(0)"},on:{click:function(e){t.signInSettingShow=!0}}},[t._v(t._s(t.$L("\u7B7E\u5230\u8BBE\u7F6E")))]):t._e()]},proxy:!0}:null],null,!0),model:{value:t.signInShow,callback:function(e){t.signInShow=e},expression:"signInShow"}},[t.signInShow?a("div",{staticClass:"ivu-modal-wrap-apply"},[a("div",{staticClass:"ivu-modal-wrap-apply-body"},[a("Checkin")],1)]):t._e()]),a("DrawerOverlay",{attrs:{placement:"right",size:720},scopedSlots:t._u([t.signInSettingShow?{key:"title",fn:function(){return[t._v(" "+t._s(t.$L("\u7B7E\u5230\u8BBE\u7F6E"))+" ")]},proxy:!0}:null],null,!0),model:{value:t.signInSettingShow,callback:function(e){t.signInSettingShow=e},expression:"signInSettingShow"}},[t.signInSettingShow?a("div",{staticClass:"ivu-modal-wrap-apply"},[a("div",{staticClass:"ivu-modal-wrap-apply-body"},[a("SystemCheckin")],1)]):t._e()]),a("DrawerOverlay",{attrs:{placement:"right",size:720},scopedSlots:t._u([t.meetingShow?{key:"title",fn:function(){return[t._v(" "+t._s(t.$L("\u4F1A\u8BAE"))+" ")]},proxy:!0}:null,t.meetingShow?{key:"more",fn:function(){return[t.userIsAdmin?a("a",{attrs:{href:"javascript:void(0)"},on:{click:function(e){t.meetingSettingShow=!0}}},[t._v(t._s(t.$L("\u4F1A\u8BAE\u8BBE\u7F6E")))]):t._e()]},proxy:!0}:null],null,!0),model:{value:t.meetingShow,callback:function(e){t.meetingShow=e},expression:"meetingShow"}},[t.meetingShow?a("div",{staticClass:"ivu-modal-wrap-apply"},[a("div",{staticClass:"ivu-modal-wrap-apply-body full-body"},[a("SystemMeetingNav",{on:{openDetail:t.openDetail,onMeeting:t.onMeeting}})],1)]):t._e()]),a("DrawerOverlay",{attrs:{placement:"right",size:600},scopedSlots:t._u([t.meetingSettingShow?{key:"title",fn:function(){return[t._v(" "+t._s(t.$L("\u4F1A\u8BAE\u8BBE\u7F6E"))+" ")]},proxy:!0}:null],null,!0),model:{value:t.meetingSettingShow,callback:function(e){t.meetingSettingShow=e},expression:"meetingSettingShow"}},[t.meetingSettingShow?a("div",{staticClass:"ivu-modal-wrap-apply"},[a("div",{staticClass:"ivu-modal-wrap-apply-body full-body"},[a("SystemMeeting")],1)]):t._e()]),a("DrawerOverlay",{attrs:{placement:"right",size:700},scopedSlots:t._u([t.ldapShow?{key:"title",fn:function(){return[t._v(" "+t._s(t.$L("LDAP \u8BBE\u7F6E"))+" ")]},proxy:!0}:null],null,!0),model:{value:t.ldapShow,callback:function(e){t.ldapShow=e},expression:"ldapShow"}},[t.ldapShow?a("div",{staticClass:"ivu-modal-wrap-apply"},[a("div",{staticClass:"ivu-modal-wrap-apply-body"},[a("SystemThirdAccess")],1)]):t._e()]),a("DrawerOverlay",{attrs:{placement:"right",size:700},scopedSlots:t._u([t.mailShow?{key:"title",fn:function(){return[t._v(" "+t._s(t.$L("\u90AE\u4EF6\u901A\u77E5"))+" ")]},proxy:!0}:null],null,!0),model:{value:t.mailShow,callback:function(e){t.mailShow=e},expression:"mailShow"}},[t.mailShow?a("div",{staticClass:"ivu-modal-wrap-apply"},[a("div",{staticClass:"ivu-modal-wrap-apply-body"},[a("SystemEmailSetting")],1)]):t._e()]),a("DrawerOverlay",{attrs:{placement:"right",size:700},scopedSlots:t._u([t.appPushShow?{key:"title",fn:function(){return[t._v(" "+t._s(t.$L("APP \u63A8\u9001"))+" ")]},proxy:!0}:null],null,!0),model:{value:t.appPushShow,callback:function(e){t.appPushShow=e},expression:"appPushShow"}},[t.appPushShow?a("div",{staticClass:"ivu-modal-wrap-apply"},[a("div",{staticClass:"ivu-modal-wrap-apply-body"},[a("SystemAppPush")],1)]):t._e()]),a("Modal",{attrs:{title:t.$L("\u626B\u7801\u767B\u5F55"),"mask-closable":!1},model:{value:t.scanLoginShow,callback:function(e){t.scanLoginShow=e},expression:"scanLoginShow"}},[a("div",{staticClass:"mobile-scan-login-box"},[a("div",{staticClass:"mobile-scan-login-title"},[t._v(t._s(t.$L("\u4F60\u597D\uFF0C\u626B\u7801\u786E\u8BA4\u767B\u5F55")))]),a("div",{staticClass:"mobile-scan-login-subtitle"},[t._v("\u300C"+t._s(t.$L("\u4E3A\u786E\u4FDD\u5E10\u53F7\u5B89\u5168\uFF0C\u8BF7\u786E\u8BA4\u662F\u672C\u4EBA\u64CD\u4F5C"))+"\u300D")])]),a("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{type:"default"},on:{click:function(e){t.scanLoginShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88\u767B\u5F55")))]),a("Button",{attrs:{type:"primary",loading:t.scanLoginLoad},on:{click:t.scanLoginSubmit}},[t._v(t._s(t.$L("\u786E\u8BA4\u767B\u5F55")))])],1)]),a("UserSelect",{ref:"wordChainAndVoteRef",attrs:{"multiple-max":1,title:t.sendType=="vote"?t.$L("\u9009\u62E9\u7FA4\u7EC4\u53D1\u8D77\u6295\u7968"):t.$L("\u9009\u62E9\u7FA4\u7EC4\u53D1\u8D77\u63A5\u9F99"),"before-submit":t.goWordChainAndVote,"show-select-all":!1,"only-group":!0,"show-dialog":"",module:""},model:{value:t.sendData,callback:function(e){t.sendData=e},expression:"sendData"}})],1)},pt=[];const m=()=>({uid:`custom_${Math.random().toString(36).slice(2,10)}`,id:"",name:"",version:"custom",menu:{location:"application",type:"iframe",visible_to:"admin",keep_alive:!0,auto_dark_theme:!0,immersive:!1}}),dt={components:{Draggable:M,ImgUpload:S,UserSelect:g,DrawerOverlay:b,SystemCheckin:E,Checkin:L,SystemMeeting:j,SystemMeetingNav:G,SystemThirdAccess:Q,SystemEmailSetting:st,SystemAppPush:ct},data(){return{applyTypes:["base","admin"],sortingMode:!1,sortLists:{base:[],admin:[]},sortInitialLists:{base:[],admin:[]},appSorts:{base:[],admin:[]},appSortLoaded:!1,appSortLoading:!1,appSortSaving:!1,mybotShow:!1,mybotList:[],mybotLoad:0,mybotModifyShow:!1,mybotModifyData:{},mybotModifyLoad:0,webhookEventOptions:C,signInShow:!1,signInSettingShow:!1,meetingShow:!1,meetingSettingShow:!1,ldapShow:!1,mailShow:!1,appPushShow:!1,scanLoginShow:!1,scanLoginLoad:!1,scanLoginCode:"",sendData:[],sendType:"",customMicroModalVisible:!1,customMicroMenus:[],customMicroLoading:!1,customMicroSaving:!1,customMicroCollapsed:""}},created(){this.fetchAppSorts()},activated(){this.$store.dispatch("updateMicroAppsStatus")},computed:{...c(["systemConfig","userInfo","userIsAdmin","reportUnreadNumber","cacheDialogs","windowOrientation","windowPortrait","formOptions","routeLoading","microAppsIds"]),...y(["filterMicroAppsMenus","filterMicroAppsMenusAdmin"]),applyList(){const t=[{value:"favorite",label:"\u6211\u7684\u6536\u85CF",sort:45},{value:"recent",label:"\u6700\u8FD1\u6253\u5F00",sort:47},{value:"report",label:"\u5DE5\u4F5C\u62A5\u544A",sort:50},{value:"mybot",label:"\u6211\u7684\u673A\u5668\u4EBA",sort:55},{value:"signin",label:"\u7B7E\u5230\u6253\u5361",sort:70},{value:"meeting",label:"\u5728\u7EBF\u4F1A\u8BAE",sort:80},{value:"createGroup",label:"\u521B\u5EFA\u7FA4\u7EC4",sort:85},{value:"word-chain",label:"\u7FA4\u63A5\u9F99",sort:90},{value:"vote",label:"\u7FA4\u6295\u7968",sort:100},{value:"addProject",label:"\u521B\u5EFA\u9879\u76EE",sort:110},{value:"addTask",label:"\u6DFB\u52A0\u4EFB\u52A1",sort:120},{value:"scan",label:"\u626B\u4E00\u626B",sort:130,show:$A.isEEUIApp},{type:"admin",value:"ldap",label:"LDAP",sort:160,show:this.userIsAdmin},{type:"admin",value:"mail",label:"\u90AE\u4EF6\u901A\u77E5",sort:170,show:this.userIsAdmin},{type:"admin",value:"appPush",label:"APP \u63A8\u9001",sort:180,show:this.userIsAdmin},{type:"admin",value:"complaint",label:"\u4E3E\u62A5\u7BA1\u7406",sort:190,show:this.userIsAdmin},{type:"admin",value:"exportManage",label:"\u6570\u636E\u5BFC\u51FA",sort:195,show:this.userIsAdmin},{type:"admin",value:"allUser",label:"\u56E2\u961F\u7BA1\u7406",sort:200,show:this.userIsAdmin}];return this.windowPortrait&&t.push({value:"calendar",label:"\u65E5\u5386",sort:10},{value:"file",label:"\u6587\u4EF6",sort:20},{value:"setting",label:"\u8BBE\u7F6E",sort:140}),t.sort((s,a)=>s.sort-a.sort)},isExistAdminList(){return this.adminAppItems.length>0},baseAppItems(){return this.applySavedSort(this.collectAppItems("base"),"base")},adminAppItems(){return this.applySavedSort(this.collectAppItems("admin"),"admin")},sortHasChanges(){return this.sortingMode?["base","admin"].some(s=>{const a=(this.sortLists[s]||[]).map(i=>i.sortKey),e=this.sortInitialLists[s]||[];return a.length!==e.length?!0:a.some((i,o)=>i!==e[o])}):!1}},watch:{sortingMode(t){t?this.bootstrapSortLists():this.resetSortState()},baseAppItems(){this.sortingMode&&this.mergeSortListWithSource("base")},adminAppItems(){this.sortingMode&&this.mergeSortListWithSource("admin")}},methods:{handleActionMenu(t){t==="sort"?this.enterSortMode():t==="cancelSort"?this.exitSortMode():t==="customMicro"&&this.openCustomMicroModal()},openCustomMicroModal(){!this.userIsAdmin||(this.customMicroModalVisible=!0,this.loadCustomMicroMenus())},loadCustomMicroMenus(){this.customMicroLoading=!0,this.$store.dispatch("call",{url:"system/microapp_menu?type=get",method:"post"}).then(({data:t})=>{this.customMicroMenus=this.normalizeCustomMenus(t),this.customMicroCollapsed=this.customMicroMenus.length>0?this.customMicroMenus[0].uid:""}).catch(({msg:t})=>{t&&$A.modalError(t)}).finally(()=>{this.customMicroLoading=!1})},normalizeCustomMenus(t=[]){return $A.isArray(t)?t.map(s=>{const a=m(),e=Object.assign({},a,s,{menu:Object.assign({},a.menu,$A.isArray(s.menu_items)&&s.menu_items.length>0?s.menu_items[0]:{})});return e.menu.visible_to=$A.isArray(s.visible_to)?s.visible_to.includes("all")?"all":"admin":s.visible_to||"admin",e}):[]},pickCustomMenuLabel(t,s=""){return typeof t=="string"?t||s:$A.isJson(t)&&(t.zh||t.en)||s},addCustomMenu(){const t=m();this.customMicroMenus.push(t),this.customMicroCollapsed=t.uid},duplicateCustomMenu(t){const s=this.customMicroMenus[t];if(!s)return;const a=$A.cloneJSON(s);a.uid=m().uid,a.id=a.id?`${a.id}_copy`:"",a.name=a.name?`${a.name} copy`:"",a.menu.label=a.menu.label?`${a.menu.label} copy`:"",this.customMicroMenus.splice(t+1,0,a),this.customMicroCollapsed=a.uid},removeCustomMenu(t){this.customMicroMenus.splice(t,1)},saveCustomMenus(){if(this.customMicroSaving)return;const t=[];for(const s of this.customMicroMenus){const a=this.formatCustomMenuForSave(s);if(!a){$A.modalWarning({title:"\u63D0\u793A",content:"\u8BF7\u4E3A\u6BCF\u4E2A\u83DC\u5355\u586B\u5199\u5E94\u7528ID\u3001\u83DC\u5355\u6807\u9898\u548C\u6709\u6548\u7684 URL\u3002"});return}t.push(a)}this.customMicroSaving=!0,this.$store.dispatch("call",{url:"system/microapp_menu?type=save",method:"post",data:{list:t}}).then(s=>{$A.messageSuccess("\u4FDD\u5B58\u6210\u529F"),this.$store.dispatch("updateMicroAppsStatus")}).catch(({msg:s})=>{s&&$A.modalError(s)}).finally(()=>{this.customMicroSaving=!1})},formatCustomMenuForSave(t){const s=(t.id||"").trim(),a=(t.menu.url||"").trim(),e=(t.menu.label||t.name||t.id||"").trim();return!s||!a||!e?null:{id:s,name:(t.name||"").trim(),version:t.version||"custom",visible_to:t.menu.visible_to||"admin",menu_items:[Object.assign({},t.menu,{url:a,label:e})]}},currentCards(t){return this.sortingMode?this.sortLists[t]||[]:this.getDisplayItems(t)},getDisplayItems(t){return t==="admin"?this.adminAppItems:this.baseAppItems},collectAppItems(t){const s=[];return(t==="admin"?this.filterMicroAppsMenusAdmin:this.filterMicroAppsMenus).forEach(e=>{!e||e.show===!1||s.push(this.createMicroCard(e,t))}),this.applyList.forEach(e=>{if(e.show===!1)return;const i=e.type==="admin";if(t==="admin"){if(!i)return}else if(i)return;s.push(this.createSystemCard(e,t))}),s},createMicroCard(t,s){const a=(t==null?void 0:t.id)||(t==null?void 0:t.value)||(t==null?void 0:t.url)||(t==null?void 0:t.label)||"unknown";return{sortKey:`micro:${(t==null?void 0:t.name)||a}`,category:"micro",group:s,micro:t}},createSystemCard(t,s){return{sortKey:`system:${t.value}`,category:"system",group:s,system:t}},applySavedSort(t,s){const a=this.appSorts[s]||[];if(!a.length)return t;const e={};t.forEach(o=>{e[o.sortKey]=o});const i=[];return a.forEach(o=>{e[o]&&(i.push(e[o]),delete e[o])}),t.forEach(o=>{e[o.sortKey]&&(i.push(o),delete e[o.sortKey])}),i},async enterSortMode(){this.sortingMode||(!this.appSortLoaded&&!this.appSortLoading&&await this.fetchAppSorts(),this.sortingMode=!0)},exitSortMode(){this.sortingMode=!1},bootstrapSortLists(){const t=this.cloneAppItems(this.baseAppItems),s=this.cloneAppItems(this.adminAppItems);this.$set(this.sortLists,"base",t),this.$set(this.sortLists,"admin",s),this.$set(this.sortInitialLists,"base",t.map(a=>a.sortKey)),this.$set(this.sortInitialLists,"admin",s.map(a=>a.sortKey))},resetSortState(){this.$set(this.sortLists,"base",[]),this.$set(this.sortLists,"admin",[]),this.$set(this.sortInitialLists,"base",[]),this.$set(this.sortInitialLists,"admin",[])},mergeSortListWithSource(t){const s=this.cloneAppItems(this.getDisplayItems(t));if(!s.length){this.$set(this.sortLists,t,[]),this.$set(this.sortInitialLists,t,[]);return}const a=new Map(s.map(o=>[o.sortKey,o])),e=[];(this.sortLists[t]||[]).forEach(o=>{a.has(o.sortKey)&&(e.push(a.get(o.sortKey)),a.delete(o.sortKey))}),a.forEach(o=>e.push(o)),this.$set(this.sortLists,t,this.cloneAppItems(e));const i=this.sortInitialLists[t]?[...this.sortInitialLists[t]]:[];e.forEach(o=>{i.includes(o.sortKey)||i.push(o.sortKey)}),this.$set(this.sortInitialLists,t,i)},cloneAppItems(t=[]){return t.map(s=>Object.assign({},s))},getDraggableOptions(t){return{animation:200,draggable:".apply-col-wrapper",group:{name:`${t}-apps`,pull:!1,put:!1}}},async fetchAppSorts(){if(!this.appSortLoading){this.appSortLoading=!0;try{const{data:t}=await this.$store.dispatch("call",{url:"users/appsort",method:"get"});this.appSorts=this.normalizeSortPayload(t==null?void 0:t.sorts)}catch(t){console.warn((t==null?void 0:t.msg)||t)}finally{this.appSortLoading=!1,this.appSortLoaded=!0}}},normalizeSortPayload(t){const s={base:[],admin:[]};return!t||typeof t!="object"||["base","admin"].forEach(a=>{const e=Array.isArray(t[a])?t[a]:[];s[a]=e.filter(i=>typeof i=="string").map(i=>i.trim()).filter(i=>i.length>0)}),s},submitSort(){if(!this.sortHasChanges){this.exitSortMode();return}const t=this.buildSortPayload();this.appSortSaving=!0,this.$store.dispatch("call",{url:"users/appsort/save",method:"post",data:{sorts:t}}).then(({data:s,msg:a})=>{this.appSorts=this.normalizeSortPayload((s==null?void 0:s.sorts)||t),this.exitSortMode(),$A.messageSuccess(a||"\u4FDD\u5B58\u6210\u529F")}).catch(({msg:s})=>{$A.modalError(s||"\u4FDD\u5B58\u5931\u8D25")}).finally(()=>{this.appSortSaving=!1})},restoreDefaultSort(){!this.sortingMode||["base","admin"].forEach(t=>{this.$set(this.sortLists,t,this.cloneAppItems(this.collectAppItems(t)))})},buildSortPayload(){const t={base:[],admin:[]};return["base","admin"].forEach(s=>{const a=(this.sortLists[s]||[]).map(i=>i.sortKey),e=this.getDefaultSortKeys(s);t[s]=this.arraysEqual(a,e)?[]:a}),t},getDefaultSortKeys(t){return this.collectAppItems(t).map(s=>s.sortKey)},arraysEqual(t=[],s=[]){return t.length!==s.length?!1:t.every((a,e)=>a===s[e])},handleCardClick(t,s=""){if(!this.sortingMode&&!!t){if(t.category==="micro"){this.applyClick({value:"microApp"},t.micro);return}this.applyClick(t.system,s)}},openExportMenu({currentTarget:t}={}){if(this.sortingMode)return;t&&typeof t.stopPropagation=="function"&&t.stopPropagation();const s=t&&t.target?t.target:t,a=t&&t.target?t:s?{target:s}:t,e=[{label:this.$L("\u5BFC\u51FA\u4EFB\u52A1\u7EDF\u8BA1"),value:"task"},{label:this.$L("\u5BFC\u51FA\u8D85\u671F\u4EFB\u52A1"),value:"overdue"},{label:this.$L("\u5BFC\u51FA\u7B7E\u5230\u6570\u636E"),value:"checkin"}];this.$store.commit("menu/operation",{event:a,list:e,size:"large",onUpdate:i=>{i&&this.handleExport(i)}})},normalizeWebhookEvents(t=[],s=!1){Array.isArray(t)||(t=t?[t]:[]);const a=this.webhookEventOptions.map(i=>i.value),e=t.filter(i=>a.includes(i));return e.length?Array.from(new Set(e)):[]},enhanceMybotItem(t={}){const s=$A.cloneJSON(t||{});let a=s.webhook_events;return(typeof a=="undefined"||a===null)&&(a=[]),a=this.normalizeWebhookEvents(a,!1),a.length||(a=[]),s.webhook_events=a,s},formatWebhookEvents(t){const s=this.normalizeWebhookEvents(t,!1),a=this.webhookEventOptions.filter(e=>s.includes(e.value)).map(e=>this.$L(e.label));return a.length?a.join("\u3001"):"-"},getLogoClass(t){return t=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),t},showBadge(t,s){let a=0;switch(s){case"report":a=this.reportUnreadNumber;break}return t.value==s&&a>0},microBadge(t){return this.$store.getters["appBadges/badge"](t&&t.id,t&&t.key)},applyClick(t,s=""){switch(t.value){case"calendar":case"file":case"setting":this.goForward({name:"manage-"+t.value});break;case"report":l.emit("openReport",s=="badge"?"receive":"my");break;case"favorite":l.emit("openFavorite");break;case"recent":l.emit("openRecent");break;case"mybot":this.getMybot(),this.mybotShow=!0;break;case"mybot-chat":this.chatMybot(s.id);break;case"mybot-add":this.addMybot(s);break;case"mybot-del":this.delMybot(s);break;case"signin":this.signInShow=!0;break;case"meeting":this.meetingShow=!0;break;case"ldap":this.ldapShow=!0;break;case"mail":this.mailShow=!0;break;case"appPush":this.appPushShow=!0;break;case"scan":$A.eeuiAppScan(this.scanResult);break;case"word-chain":case"vote":this.sendData=[],this.sendType=t.value,this.$refs.wordChainAndVoteRef.onSelection();break}this.$emit("on-click",t.value,s)},handleExport(t){l.emit("openManageExport",t)},getMybot(){this.mybotLoad++,this.$store.dispatch("call",{url:"users/bot/list"}).then(({data:t})=>{this.mybotList=(t.list||[]).map(s=>this.enhanceMybotItem(s))}).finally(t=>{this.mybotLoad--})},chatMybot(t){this.$store.dispatch("openDialogUserid",t).catch(({msg:s})=>{$A.modalError(s||"\u6253\u5F00\u4F1A\u8BDD\u5931\u8D25")})},addMybot(t){this.mybotModifyData=this.enhanceMybotItem(t),this.mybotModifyShow=!0},delMybot(t){$A.modalInput({title:`\u5220\u9664\u673A\u5668\u4EBA\uFF1A${t.name}`,placeholder:"\u8BF7\u8F93\u5165\u5907\u6CE8\u539F\u56E0",okText:"\u5220\u9664",okType:"error",onOk:s=>s?new Promise((a,e)=>{this.$store.dispatch("call",{url:"users/bot/delete",data:{id:t.id,remark:s}}).then(({msg:i})=>{const o=this.mybotList.findIndex(r=>r.id===t.id);o>-1&&this.mybotList.splice(o,1),$A.messageSuccess(i),a()}).catch(({msg:i})=>{e(i)})}):"\u8BF7\u8F93\u5165\u5907\u6CE8\u539F\u56E0"})},onMybotModify(){this.mybotModifyLoad++,this.$store.dispatch("editUserBot",this.mybotModifyData).then(({data:t,msg:s})=>{const a=this.enhanceMybotItem(t),e=this.mybotList.findIndex(i=>i.id===a.id);e>-1?this.mybotList.splice(e,1,a):this.mybotList.unshift(a),this.mybotModifyShow=!1,this.mybotModifyData={},$A.messageSuccess(s)}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.mybotModifyLoad--})},onMeeting(t){switch(t){case"createMeeting":l.emit("addMeeting",{type:"create",userids:[this.userId]});break;case"joinMeeting":l.emit("addMeeting",{type:"join"});break}},scanResult(t){const s=(t+"").match(/^https?:\/\/(.*?)\/login\?qrcode=(.*?)$/);if(s){if($A.getDomain(t)!=$A.mainDomain()){let a=this.$L("\u8BF7\u786E\u8BA4\u626B\u7801\u7684\u670D\u52A1\u5668\u4E0E\u5F53\u524D\u670D\u52A1\u5668\u4E00\u81F4");a+=` ${this.$L("\u4E8C\u7EF4\u7801\u670D\u52A1\u5668")}: ${$A.getDomain(t)}`,a+=` ${this.$L("\u5F53\u524D\u670D\u52A1\u5668")}: ${$A.mainDomain()}`,$A.modalWarning({language:!1,title:this.$L("\u626B\u7801\u767B\u5F55"),content:a});return}this.scanLoginCode=s[2],this.scanLoginShow=!0;return}/^https?:\/\//i.test(t)?this.$store.dispatch("openAppChildPage",{pageType:"app",pageTitle:" ",url:"web.js",params:{url:t}}):$A.modalInfo({title:"\u626B\u63CF\u7ED3\u679C",content:t,width:400})},scanLoginSubmit(){this.scanLoginLoad!==!0&&(this.scanLoginLoad=!0,this.$store.dispatch("call",{url:"users/login/qrcode",data:{type:"login",code:this.scanLoginCode}}).then(({msg:t})=>{this.scanLoginShow=!1,$A.messageSuccess(t)}).catch(({msg:t})=>{$A.messageError(t)}).finally(t=>{this.scanLoginLoad=!1}))},openDetail(t){$A.modalInfo({content:t})},goWordChainAndVote(){return new Promise((t,s)=>{if(this.sendData.length===0){$A.messageError("\u8BF7\u9009\u62E9\u5BF9\u8BDD\u6216\u6210\u5458"),s();return}const a=Number(this.sendData[0].replace("d:",""));this.$store.dispatch("openDialog",a).then(async()=>{await new Promise(e=>setTimeout(e,300)),requestAnimationFrame(e=>{const i=this.sendType=="word-chain"?"dialogDroupWordChain":"dialogGroupVote";this.$store.state[i]={type:"create",dialog_id:a}})}),t()})}}},v={};var ut=n(dt,mt,pt,!1,_t,null,null,null);function _t(t){for(let s in v)this[s]=v[s]}var ha=function(){return ut.exports}();export{ha as default};
+import{m as c,a as y}from"./vuex.cc7cb26e.js";import{D as b}from"./index.f7653997.js";import{n,U as g,e as l}from"./app.ef7047f7.js";import{C as $,T as k}from"./CheckinExport.9685d739.js";import{I as D}from"./IFrame.742911bb.js";import L from"./checkin.7e191bb8.js";import{I as S}from"./ImgUpload.434d067a.js";import{w as C}from"./webhook.378987f3.js";import{D as M}from"./vuedraggable.f464b992.js";import"./jquery.6e4daff9.js";import"./@babel.9410f858.js";import"./dayjs.d20a4841.js";import"./localforage.743dffdd.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./vue.adba9046.js";import"./openpgp_hi.15f91b1d.js";import"./axios.37c7f908.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./view-design-hi.24419422.js";import"./html-to-md.f297036e.js";import"./lodash.8fcd6fd4.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vue-resize-observer.5af23a43.js";import"./element-sea.f8a64907.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";import"./sortablejs.3488b922.js";import"./SearchButton.2a8dd789.js";import"./chunkedUpload.3cd238b0.js";import"./spark-md5.0443325f.js";var w=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"setting-component-item"},[a("Form",t._b({ref:"formData",attrs:{model:t.formData,rules:t.ruleData},nativeOn:{submit:function(e){e.preventDefault()}}},"Form",t.formOptions,!1),[a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("\u7B7E\u5230\u8BBE\u7F6E")))]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("\u529F\u80FD\u5F00\u542F"),prop:"open"}},[a("RadioGroup",{model:{value:t.formData.open,callback:function(e){t.$set(t.formData,"open",e)},expression:"formData.open"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),a("div",{staticClass:"export-data"},[a("p",{on:{click:function(e){t.allUserShow=!0}}},[t._v(t._s(t.$L("\u4F1A\u5458\u7B7E\u5230\u8BBE\u7F6E")))]),a("p",{on:{click:function(e){t.exportShow=!0}}},[t._v(t._s(t.$L("\u5BFC\u51FA\u7B7E\u5230\u6570\u636E")))])])],1),t.formData.open==="open"?[a("FormItem",{attrs:{label:t.$L("\u7B7E\u5230\u65F6\u95F4"),prop:"time"}},[a("TimePicker",{attrs:{type:"timerange",format:"HH:mm",placeholder:t.$L("\u8BF7\u9009\u62E9\u7B7E\u5230\u65F6\u95F4")},model:{value:t.formData.time,callback:function(e){t.$set(t.formData,"time",e)},expression:"formData.time"}}),a("Form",{staticClass:"block-setting-advance",nativeOn:{submit:function(e){e.preventDefault()}}},[a("FormItem",{attrs:{label:t.$L("\u6700\u65E9\u53EF\u63D0\u524D"),prop:"advance"}},[a("div",{staticClass:"input-number-box"},[a("InputNumber",{attrs:{min:0,step:1},on:{"on-change":t.onAdvanceBlur},model:{value:t.formData.advance,callback:function(e){t.$set(t.formData,"advance",e)},expression:"formData.advance"}}),a("label",[t._v(t._s(t.$L("\u5206\u949F")))])],1),t.earliestCheckinTime?a("div",{staticClass:"form-tip"},[t._v(t._s(t.earliestCheckinTime))]):t._e()]),a("FormItem",{attrs:{label:t.$L("\u6700\u665A\u53EF\u5EF6\u540E"),prop:"delay"}},[a("div",{staticClass:"input-number-box"},[a("InputNumber",{attrs:{min:0,step:1},on:{"on-change":t.onDelayBlur},model:{value:t.formData.delay,callback:function(e){t.$set(t.formData,"delay",e)},expression:"formData.delay"}}),a("label",[t._v(t._s(t.$L("\u5206\u949F")))])],1),t.latestCheckinTime?a("div",{staticClass:"form-tip"},[t._v(t._s(t.latestCheckinTime))]):t._e()]),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u7B7E\u5230\u524D\u540E\u65F6\u95F4\u6536\u5230\u6D88\u606F\u901A\u77E5")))]),a("FormItem",{attrs:{label:t.$L("\u7B7E\u5230\u6253\u5361\u63D0\u9192"),prop:"remindin"}},[a("div",{staticClass:"input-number-box"},[a("InputNumber",{attrs:{min:0,step:1},model:{value:t.formData.remindin,callback:function(e){t.$set(t.formData,"remindin",e)},expression:"formData.remindin"}}),a("label",[t._v(t._s(t.$L("\u5206\u949F")))])],1)]),a("FormItem",{attrs:{label:t.$L("\u7B7E\u5230\u7F3A\u5361\u63D0\u9192"),prop:"remindexceed"}},[a("div",{staticClass:"input-number-box"},[a("InputNumber",{attrs:{min:0,step:1},model:{value:t.formData.remindexceed,callback:function(e){t.$set(t.formData,"remindexceed",e)},expression:"formData.remindexceed"}}),a("label",[t._v(t._s(t.$L("\u5206\u949F")))])],1)]),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u7B7E\u5230\u63D0\u9192\u5BF9\u8C61\uFF1A3\u5929\u5185\u6709\u7B7E\u5230\u7684\u6210\u5458\uFF08\u6CD5\u5B9A\u5DE5\u4F5C\u65E5\uFF09")))])],1)],1),a("FormItem",{attrs:{label:t.$L("\u5141\u8BB8\u4FEE\u6539"),prop:"edit"}},[a("RadioGroup",{model:{value:t.formData.face_upload,callback:function(e){t.$set(t.formData,"face_upload",e)},expression:"formData.face_upload"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5141\u8BB8")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u7981\u6B62")))])],1),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5141\u8BB8\u6210\u5458\u81EA\u5DF1\u4E0A\u4F20\u4EBA\u8138\u56FE\u7247")))]),a("RadioGroup",{model:{value:t.formData.edit,callback:function(e){t.$set(t.formData,"edit",e)},expression:"formData.edit"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5141\u8BB8")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u7981\u6B62")))])],1),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5141\u8BB8\u6210\u5458\u81EA\u5DF1\u4FEE\u6539MAC\u5730\u5740"))+" ("+t._s(t.$L("WiFi\u7B7E\u5230"))+")")])],1),a("FormItem",{attrs:{label:t.$L("\u7B7E\u5230\u65B9\u5F0F"),prop:"modes"}},[a("CheckboxGroup",{model:{value:t.formData.modes,callback:function(e){t.$set(t.formData,"modes",e)},expression:"formData.modes"}},[a("Checkbox",{attrs:{label:"face"}},[t._v(t._s(t.$L("\u4EBA\u8138\u7B7E\u5230")))]),a("Checkbox",{attrs:{label:"auto"}},[t._v(t._s(t.$L("WiFi\u7B7E\u5230")))]),a("Checkbox",{attrs:{label:"locat"}},[t._v(t._s(t.$L("\u5B9A\u4F4D\u7B7E\u5230")))]),a("Checkbox",{attrs:{label:"manual"}},[t._v(t._s(t.$L("\u624B\u52A8\u7B7E\u5230")))])],1),t.formData.modes.includes("face")?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u4EBA\u8138\u7B7E\u5230"))+": "+t._s(t.$L("\u901A\u8FC7\u4EBA\u8138\u8BC6\u522B\u673A\u7B7E\u5230")))]):t._e(),t.formData.modes.includes("auto")?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("WiFi\u7B7E\u5230"))+": "+t._s(t.$L("\u8BE6\u60C5\u770B\u4E0B\u6587\u5B89\u88C5\u8BF4\u660E")))]):t._e(),t.formData.modes.includes("locat")?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5B9A\u4F4D\u7B7E\u5230"))+": "+t._s(t.$L("\u901A\u8FC7\u5728\u7B7E\u5230\u6253\u5361\u673A\u5668\u4EBA\u53D1\u9001\u4F4D\u7F6E\u7B7E\u5230"))+" ("+t._s(t.$L("\u4EC5\u652F\u6301\u79FB\u52A8\u7AEFApp"))+")")]):t._e(),t.formData.modes.includes("manual")?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u624B\u52A8\u7B7E\u5230"))+": "+t._s(t.$L("\u901A\u8FC7\u5728\u7B7E\u5230\u6253\u5361\u673A\u5668\u4EBA\u53D1\u9001\u6307\u4EE4\u7B7E\u5230")))]):t._e()],1)]:t._e()],2)]),t.formData.open==="open"?[t.formData.modes.includes("face")?[a("div",{staticClass:"block-setting-space"}),a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("\u4EBA\u8138\u7B7E\u5230")))]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("\u7B7E\u5230\u5907\u6CE8"),prop:"face_remark"}},[a("Input",{attrs:{maxlength:30},model:{value:t.formData.face_remark,callback:function(e){t.$set(t.formData,"face_remark",e)},expression:"formData.face_remark"}})],1),a("FormItem",{attrs:{label:t.$L("\u91CD\u590D\u6253\u5361\u63D0\u9192"),prop:"face_retip"}},[a("RadioGroup",{model:{value:t.formData.face_retip,callback:function(e){t.$set(t.formData,"face_retip",e)},expression:"formData.face_retip"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1)],1)],1)])]:t._e(),t.formData.modes.includes("auto")?[a("div",{staticClass:"block-setting-space"}),a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("WiFi\u7B7E\u5230")))]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("\u5B89\u88C5\u8BF4\u660E"),prop:"explain"}},[a("p",[t._v("1. "+t._s(t.$L("WiFi\u7B7E\u5230\u5EF6\u8FDF\u65F6\u957F\u4E3A\xB11\u5206\u949F\u3002")))]),a("p",[t._v("2. "+t._s(t.$L("\u8BBE\u5907\u8FDE\u63A5\u4E0A\u6307\u5B9A\u8DEF\u7531\u5668\uFF08WiFi\uFF09\u540E\u81EA\u52A8\u7B7E\u5230\u3002")))]),a("p",[t._v("3. "+t._s(t.$L("\u4EC5\u652F\u6301Openwrt\u7CFB\u7EDF\u7684\u8DEF\u7531\u5668\u3002")))]),a("p",[t._v("4. "+t._s(t.$L("\u5173\u95ED\u7B7E\u5230\u529F\u80FD\u518D\u5F00\u542F\u9700\u8981\u91CD\u65B0\u5B89\u88C5\u3002")))]),a("p",[t._v("5. "+t._s(t.$L("\u8FDB\u5165\u8DEF\u7531\u5668\u7EC8\u7AEF\u6267\u884C\u4EE5\u4E0B\u547D\u4EE4\u5373\u53EF\u5B8C\u6210\u5B89\u88C5"))+":")]),a("Input",{ref:"cmd",staticStyle:{"margin-top":"6px"},attrs:{type:"textarea",readonly:"",value:t.formData.cmd},on:{"on-focus":t.clickCmd}})],1)],1)])]:t._e(),t.formData.modes.includes("locat")?[a("div",{staticClass:"block-setting-space"}),a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("\u5B9A\u4F4D\u7B7E\u5230")))]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("\u7B7E\u5230\u5907\u6CE8"),prop:"locat_remark"}},[a("Input",{attrs:{maxlength:30},model:{value:t.formData.locat_remark,callback:function(e){t.$set(t.formData,"locat_remark",e)},expression:"formData.locat_remark"}})],1),a("FormItem",{attrs:{label:t.$L("\u5730\u56FE\u7C7B\u578B"),prop:"locat_map_type"}},[a("RadioGroup",{model:{value:t.formData.locat_map_type,callback:function(e){t.$set(t.formData,"locat_map_type",e)},expression:"formData.locat_map_type"}},[a("Radio",{attrs:{label:"baidu"}},[t._v(t._s(t.$L("\u767E\u5EA6\u5730\u56FE")))]),a("Radio",{attrs:{label:"amap"}},[t._v(t._s(t.$L("\u9AD8\u5FB7\u5730\u56FE")))]),a("Radio",{attrs:{label:"tencent"}},[t._v(t._s(t.$L("\u817E\u8BAF\u5730\u56FE")))])],1),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u4EC5\u652F\u6301\u79FB\u52A8\u7AEFApp")))])],1),t.formData.locat_map_type==="baidu"?[a("FormItem",{attrs:{label:t.$L("\u767E\u5EA6\u5730\u56FEAK"),prop:"locat_bd_lbs_key"}},[a("Input",{attrs:{maxlength:100},model:{value:t.formData.locat_bd_lbs_key,callback:function(e){t.$set(t.formData,"locat_bd_lbs_key",e)},expression:"formData.locat_bd_lbs_key"}}),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u83B7\u53D6AK\u6D41\u7A0B"))+": "),a("a",{attrs:{href:"https://lbs.baidu.com/faq/search?id=299&title=677",target:"_blank"}},[t._v("https://lbs.baidu.com/faq/search?id=299&title=677")])])],1),a("FormItem",{attrs:{label:t.$L("\u5141\u8BB8\u7B7E\u5230\u4F4D\u7F6E"),prop:"locat_bd_lbs_point"}},[t.formData.locat_bd_lbs_point.lng?[a("div",{staticClass:"form-tip"},[a("a",{attrs:{href:"javascript:void(0)"},on:{click:t.openMapSelect}},[t._v(" "+t._s(t.$L("\u7ECF\u5EA6\uFF1A(*)\uFF0C\u7EAC\u5EA6\uFF1A(*)\uFF0C\u534A\u5F84\uFF1A(*)\u7C73",t.formData.locat_bd_lbs_point.lng,t.formData.locat_bd_lbs_point.lat,t.formData.locat_bd_lbs_point.radius))+" ")])]),a("div",{staticClass:"form-tip",on:{click:t.openMapSelect}},[t._v(t._s(t.$L("\u70B9\u51FB\u4FEE\u6539\u5141\u8BB8\u7B7E\u5230\u4F4D\u7F6E")))])]:a("a",{attrs:{href:"javascript:void(0)"},on:{click:t.openMapSelect}},[t._v(t._s(t.$L("\u70B9\u51FB\u8BBE\u7F6E")))])],2)]:t._e(),t.formData.locat_map_type==="amap"?[a("FormItem",{attrs:{label:t.$L("\u9AD8\u5FB7\u5730\u56FEKey"),prop:"locat_amap_key"}},[a("Input",{attrs:{maxlength:100},model:{value:t.formData.locat_amap_key,callback:function(e){t.$set(t.formData,"locat_amap_key",e)},expression:"formData.locat_amap_key"}}),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u83B7\u53D6Key\u6D41\u7A0B"))+": "),a("a",{attrs:{href:"https://lbs.amap.com/api/javascript-api/guide/abc/prepare",target:"_blank"}},[t._v("https://lbs.amap.com/api/javascript-api/guide/abc/prepare")])])],1),a("FormItem",{attrs:{label:t.$L("\u5141\u8BB8\u7B7E\u5230\u4F4D\u7F6E"),prop:"locat_amap_point"}},[t.formData.locat_amap_point.lng?[a("div",{staticClass:"form-tip"},[a("a",{attrs:{href:"javascript:void(0)"},on:{click:t.openMapSelect}},[t._v(" "+t._s(t.$L("\u7ECF\u5EA6\uFF1A(*)\uFF0C\u7EAC\u5EA6\uFF1A(*)\uFF0C\u534A\u5F84\uFF1A(*)\u7C73",t.formData.locat_amap_point.lng,t.formData.locat_amap_point.lat,t.formData.locat_amap_point.radius))+" ")])]),a("div",{staticClass:"form-tip",on:{click:t.openMapSelect}},[t._v(t._s(t.$L("\u70B9\u51FB\u4FEE\u6539\u5141\u8BB8\u7B7E\u5230\u4F4D\u7F6E")))])]:a("a",{attrs:{href:"javascript:void(0)"},on:{click:t.openMapSelect}},[t._v(t._s(t.$L("\u70B9\u51FB\u8BBE\u7F6E")))])],2)]:t._e(),t.formData.locat_map_type==="tencent"?[a("FormItem",{attrs:{label:t.$L("\u817E\u8BAF\u5730\u56FEKey"),prop:"locat_tencent_key"}},[a("Input",{attrs:{maxlength:100},model:{value:t.formData.locat_tencent_key,callback:function(e){t.$set(t.formData,"locat_tencent_key",e)},expression:"formData.locat_tencent_key"}}),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u83B7\u53D6Key\u6D41\u7A0B"))+": "),a("a",{attrs:{href:"https://lbs.qq.com/dev/console/application/mine",target:"_blank"}},[t._v("https://lbs.qq.com/dev/console/application/mine")])])],1),a("FormItem",{attrs:{label:t.$L("\u5141\u8BB8\u7B7E\u5230\u4F4D\u7F6E"),prop:"locat_tencent_point"}},[t.formData.locat_tencent_point.lng?[a("div",{staticClass:"form-tip"},[a("a",{attrs:{href:"javascript:void(0)"},on:{click:t.openMapSelect}},[t._v(" "+t._s(t.$L("\u7ECF\u5EA6\uFF1A(*)\uFF0C\u7EAC\u5EA6\uFF1A(*)\uFF0C\u534A\u5F84\uFF1A(*)\u7C73",t.formData.locat_tencent_point.lng,t.formData.locat_tencent_point.lat,t.formData.locat_tencent_point.radius))+" ")])]),a("div",{staticClass:"form-tip",on:{click:t.openMapSelect}},[t._v(t._s(t.$L("\u70B9\u51FB\u4FEE\u6539\u5141\u8BB8\u7B7E\u5230\u4F4D\u7F6E")))])]:a("a",{attrs:{href:"javascript:void(0)"},on:{click:t.openMapSelect}},[t._v(t._s(t.$L("\u70B9\u51FB\u8BBE\u7F6E")))])],2)]:t._e()],2)])]:t._e(),t.formData.modes.includes("manual")?[a("div",{staticClass:"block-setting-space"}),a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("\u624B\u52A8\u7B7E\u5230")))]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("\u7B7E\u5230\u5907\u6CE8"),prop:"manual_remark"}},[a("Input",{attrs:{maxlength:30},model:{value:t.formData.manual_remark,callback:function(e){t.$set(t.formData,"manual_remark",e)},expression:"formData.manual_remark"}})],1)],1)])]:t._e()]:t._e()],2),a("div",{staticClass:"setting-footer"},[a("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),a("Button",{attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1),a("CheckinExport",{model:{value:t.exportShow,callback:function(e){t.exportShow=e},expression:"exportShow"}}),a("DrawerOverlay",{attrs:{placement:"right",size:1380},model:{value:t.allUserShow,callback:function(e){t.allUserShow=e},expression:"allUserShow"}},[t.allUserShow?a("TeamManagement",{attrs:{"checkin-mode":""}}):t._e()],1),a("Modal",{attrs:{title:t.$L("\u5141\u8BB8\u7B7E\u5230\u4F4D\u7F6E"),"mask-closable":!1,styles:{width:"90%",maxWidth:"1000px"}},model:{value:t.mapSelectShow,callback:function(e){t.mapSelectShow=e},expression:"mapSelectShow"}},[a("div",[a("div",{staticClass:"map-select-container"},[a("div",{staticClass:"map-select-iframe-container"},[t.mapSelectShow?a("IFrame",{ref:"mapSelectIframe",staticClass:"map-select-point-iframe",attrs:{src:t.mapSelectUrl},on:{"on-message":t.onMapMessage}}):t._e()],1),a("div",{staticClass:"map-radius-control"},[a("div",{staticClass:"radius-control-header"},[a("h4",[t._v(t._s(t.$L("\u7B7E\u5230\u534A\u5F84\u8BBE\u7F6E")))])]),a("div",{staticClass:"radius-control-body"},[a("Input",{attrs:{value:t.mapSelectPoint.radius},on:{"on-change":t.onRadiusChange,"on-blur":t.onRadiusBlur}},[a("span",{attrs:{slot:"prepend"},slot:"prepend"},[t._v(t._s(t.$L("\u534A\u5F84")))]),a("span",{attrs:{slot:"append"},slot:"append"},[t._v(t._s(t.$L("[distance_unit].\u7C73")))])]),a("div",{staticClass:"location-info"},[a("div",{staticClass:"info-item"},[a("span",{staticClass:"info-label"},[t._v(t._s(t.$L("\u7ECF\u5EA6"))+"\uFF1A")]),a("span",{staticClass:"info-value"},[t._v(t._s(t.mapSelectPoint.lng||"-"))])]),a("div",{staticClass:"info-item"},[a("span",{staticClass:"info-label"},[t._v(t._s(t.$L("\u7EAC\u5EA6"))+"\uFF1A")]),a("span",{staticClass:"info-value"},[t._v(t._s(t.mapSelectPoint.lat||"-"))])]),a("div",{staticClass:"info-item"},[a("span",{staticClass:"info-label"},[t._v(t._s(t.$L("\u534A\u5F84"))+"\uFF1A")]),a("span",{staticClass:"info-value"},[t._v(t._s(t.mapSelectPoint.radius||"-")+" "+t._s(t.$L("[distance_unit].\u7C73")))])])]),a("div",{staticClass:"radius-control-tip"},[t.formData.locat_map_type==="baidu"?[t._v(" "+t._s(t.$L("\u70B9\u51FB\u5730\u56FE\u9009\u62E9\u4E2D\u5FC3\u4F4D\u7F6E\uFF0C\u62D6\u62FD\u5706\u5F62\u8FB9\u7F18\u8C03\u6574\u534A\u5F84\uFF0C\u6216\u5728\u4E0A\u65B9\u8F93\u5165\u6846\u76F4\u63A5\u8BBE\u7F6E\u534A\u5F84\u503C"))+" ")]:[t._v(" "+t._s(t.$L("\u70B9\u51FB\u5730\u56FE\u9009\u62E9\u4E2D\u5FC3\u4F4D\u7F6E\uFF0C\u5728\u4E0A\u65B9\u8F93\u5165\u6846\u4E2D\u8BBE\u7F6E\u7B7E\u5230\u534A\u5F84\u503C"))+" ")]],2)],1)])])]),a("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{type:"default"},on:{click:function(e){t.mapSelectShow=!1}}},[t._v(t._s(t.$L("\u5173\u95ED")))]),a("Button",{attrs:{type:"primary"},on:{click:t.onMapSelect}},[t._v(t._s(t.$L("\u786E\u5B9A")))])],1)])],1)},I=[];const x={name:"SystemCheckin",components:{IFrame:D,CheckinExport:$,TeamManagement:k,DrawerOverlay:b},data(){return{loadIng:0,formData:{open:"",edit:"",cmd:"",modes:[],face_upload:"",face_remark:"",face_retip:"",manual_remark:"",locat_remark:"",locat_map_type:"baidu",locat_bd_lbs_key:"",locat_bd_lbs_point:{},locat_amap_key:"",locat_amap_point:{},locat_tencent_key:"",locat_tencent_point:{}},ruleData:{},allUserShow:!1,exportShow:!1,mapSelectShow:!1,mapSelectPoint:{},mapSelectUrl:""}},mounted(){this.systemSetting()},computed:{...c(["formOptions"]),earliestCheckinTime(){const t=this.formData.time;if(!t||t.length<1||!t[0])return"";const s=parseInt(this.formData.advance)||0;if(s<=0)return"";let e=this.timeToMinutes(t[0])-s,i="";e<0&&(e+=24*60,i="("+this.$L("\u524D\u65E5")+") ");const o=Math.floor(e/60),r=e%60;return i+String(o).padStart(2,"0")+":"+String(r).padStart(2,"0")},latestCheckinTime(){const t=this.formData.time;if(!t||t.length<2||!t[1])return"";const s=parseInt(this.formData.delay)||0;if(s<=0)return"";let e=this.timeToMinutes(t[1])+s,i="";e>=24*60&&(e-=24*60,i="("+this.$L("\u6B21\u65E5")+") ");const o=Math.floor(e/60),r=e%60;return i+String(o).padStart(2,"0")+":"+String(r).padStart(2,"0")}},methods:{submitForm(){this.$refs.formData.validate(t=>{t&&this.systemSetting(!0)})},timeToMinutes(t){if(!t)return 0;const s=t.split(":");return parseInt(s[0])*60+parseInt(s[1])},getMaxAllowed(){const t=this.formData.time;if(!t||t.length<2)return null;const s=this.timeToMinutes(t[0]);let e=this.timeToMinutes(t[1])-s;return e<=0&&(e+=24*60),24*60-e},onAdvanceBlur(){const t=this.getMaxAllowed();if(t===null)return;const s=parseInt(this.formData.delay)||0,a=t-s-1;a<0?this.formData.advance=0:this.formData.advance>a&&(this.formData.advance=a)},onDelayBlur(){const t=this.getMaxAllowed();if(t===null)return;const s=parseInt(this.formData.advance)||0,a=t-s-1;a<0?this.formData.delay=0:this.formData.delay>a&&(this.formData.delay=a)},resetForm(){this.formData=$A.cloneJSON(this.formDatum_bak)},systemSetting(t){this.loadIng++,this.formData.cmd="",this.$store.dispatch("call",{url:"system/setting/checkin?type="+(t?"save":"all"),data:this.formData}).then(({data:s})=>{t&&$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.formData=s;try{this.formData.cmd=atob(this.formData.cmd)}catch{}this.formDatum_bak=$A.cloneJSON(this.formData)}).catch(({msg:s})=>{t&&$A.modalError(s)}).finally(s=>{this.loadIng--})},clickCmd(){this.$nextTick(t=>{this.$refs.cmd.focus({cursor:"all"})})},openMapSelect(){const t=this.formData.locat_map_type;let s="",a={};switch(t){case"baidu":if(s=this.formData.locat_bd_lbs_key,a=this.formData.locat_bd_lbs_point,!s){$A.messageError("\u8BF7\u5148\u586B\u5199\u767E\u5EA6\u5730\u56FEAK");return}break;case"amap":if(s=this.formData.locat_amap_key,a=this.formData.locat_amap_point,!s){$A.messageError("\u8BF7\u5148\u586B\u5199\u9AD8\u5FB7\u5730\u56FEKey");return}break;case"tencent":if(s=this.formData.locat_tencent_key,a=this.formData.locat_tencent_point,!s){$A.messageError("\u8BF7\u5148\u586B\u5199\u817E\u8BAF\u5730\u56FEKey");return}break;default:$A.messageError("\u8BF7\u9009\u62E9\u5730\u56FE\u7C7B\u578B");return}const e=`select_${t}.html`,i=$A.urlAddParams($A.mainUrl(`tools/map/${e}`),{key:s,point:a.lng+","+a.lat,radius:a.radius});this.$store.dispatch("userUrl",i).then(o=>{this.mapSelectUrl=o,this.mapSelectPoint=a,this.mapSelectShow=!0})},onMapMessage(t){const s=`${this.formData.locat_map_type}_lbs_select_point`;t.action===s&&(this.mapSelectPoint={lng:parseFloat(t.longitude),lat:parseFloat(t.latitude),radius:parseInt(t.radius)})},onRadiusChange({target:t}){const s=parseInt(t.value);if(s&&s>=50&&s<=5e3){this.mapSelectPoint.radius=s;const a=this.$refs.mapSelectIframe;a==null||a.postMessage({action:"update_radius",radius:s})}},onRadiusBlur({target:t}){t.value=this.mapSelectPoint.radius},onMapSelect(){switch(this.formData.locat_map_type){case"baidu":this.formData.locat_bd_lbs_point=this.mapSelectPoint;break;case"amap":this.formData.locat_amap_point=this.mapSelectPoint;break;case"tencent":this.formData.locat_tencent_point=this.mapSelectPoint;break}this.mapSelectShow=!1}}},p={};var A=n(x,w,I,!1,F,"b1904dc8",null,null);function F(t){for(let s in p)this[s]=p[s]}var E=function(){return A.exports}(),O=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"setting-component-item"},[a("Form",t._b({ref:"formData",attrs:{model:t.formData,rules:t.ruleData},nativeOn:{submit:function(e){e.preventDefault()}}},"Form",t.formOptions,!1),[a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("AgoraIO \u58F0\u7F51")))]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("\u4F1A\u8BAE\u529F\u80FD"),prop:"open"}},[a("RadioGroup",{model:{value:t.formData.open,callback:function(e){t.$set(t.formData,"open",e)},expression:"formData.open"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1)],1),t.formData.open==="open"?[a("Divider",{attrs:{orientation:"left"}},[t._v(t._s(t.$L("\u57FA\u672C\u914D\u7F6E")))]),a("div",{staticClass:"form-tip form-list"},[a("ul",[a("li",[t._v(t._s(t.$L("\u57FA\u672C\u914D\u7F6E"))+": "+t._s(t.$L("\u7528\u4E8E\u751F\u6210\u4F1A\u8BAE\u9891\u9053\u3002")))]),a("li",[t._v(t._s(t.$L("\u83B7\u53D6\u65B9\u5F0F"))+": "),a("a",{attrs:{href:"https://docportal.shengwang.cn/cn/Agora%20Platform/token_server#%E8%8E%B7%E5%8F%96-app-id-%E5%8F%8A-app-%E8%AF%81%E4%B9%A6",target:"_blank"}},[t._v("Open Link")])])])]),a("FormItem",{attrs:{label:"App ID ",prop:"appid"}},[a("Input",{attrs:{maxlength:255},model:{value:t.formData.appid,callback:function(e){t.$set(t.formData,"appid",e)},expression:"formData.appid"}})],1),a("FormItem",{attrs:{label:"App certificate",prop:"app_certificate"}},[a("Input",{attrs:{maxlength:255,type:"password"},model:{value:t.formData.app_certificate,callback:function(e){t.$set(t.formData,"app_certificate",e)},expression:"formData.app_certificate"}})],1),a("div",{staticClass:"clearfix"}),a("Divider",{attrs:{orientation:"left"}},[t._v("RESTful Api\uFF08"+t._s(t.$L("\u53EF\u9009"))+"\uFF09")]),a("div",{staticClass:"form-tip form-list"},[a("ul",[a("li",[t._v("RESTful Api: "+t._s(t.$L("\u7528\u4E8E\u9891\u9053\u7BA1\u7406\u3002"))+" ("+t._s(t.$L("\u6BD4\u5982"))+": "+t._s(t.$L("\u7ED3\u675F\u4F1A\u8BAE\u5BA4"))+")")]),a("li",[t._v(t._s(t.$L("\u83B7\u53D6\u65B9\u5F0F"))+" "),a("a",{attrs:{href:"https://doc.shengwang.cn/doc/rtc/restful/get-started/enable-service#%E8%8E%B7%E5%8F%96%E5%AE%A2%E6%88%B7-id-%E5%92%8C%E5%AE%A2%E6%88%B7%E5%AF%86%E9%92%A5",target:"_blank"}},[t._v("Open Link")])])])]),a("FormItem",{attrs:{label:"key ",prop:"api_key"}},[a("Input",{attrs:{maxlength:255},model:{value:t.formData.api_key,callback:function(e){t.$set(t.formData,"api_key",e)},expression:"formData.api_key"}})],1),a("FormItem",{attrs:{label:"secret",prop:"secret"}},[a("Input",{attrs:{maxlength:255,type:"password"},model:{value:t.formData.api_secret,callback:function(e){t.$set(t.formData,"api_secret",e)},expression:"formData.api_secret"}})],1)]:t._e()],2)])]),a("div",{staticClass:"setting-footer"},[a("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),a("Button",{attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},R=[];const P={name:"SystemMeeting",data(){return{loadIng:0,formData:{open:"",appid:"",app_certificate:""},ruleData:{}}},mounted(){this.systemSetting()},computed:{...c(["formOptions"])},methods:{submitForm(){this.$refs.formData.validate(t=>{t&&this.systemSetting(!0)})},resetForm(){this.formData=$A.cloneJSON(this.formDatum_bak)},systemSetting(t){this.loadIng++,this.$store.dispatch("call",{url:"system/setting/meeting?type="+(t?"save":"all"),data:this.formData}).then(({data:s})=>{t&&$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.formData=s,this.formDatum_bak=$A.cloneJSON(this.formData)}).catch(({msg:s})=>{t&&$A.modalError(s)}).finally(s=>{this.loadIng--})}}},d={};var B=n(P,O,R,!1,T,null,null,null);function T(t){for(let s in d)this[s]=d[s]}var j=function(){return B.exports}(),N=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("ul",{staticClass:"ivu-modal-wrap-ul"},[a("li",[t._m(0),a("div",{staticClass:"modal-item-info"},[a("div",{staticClass:"modal-item-name"},[a("h4",[t._v(t._s(t.$L("\u65B0\u4F1A\u8BAE")))])]),a("p",{staticClass:"modal-item-desc",on:{click:function(e){return t.openDetail(t.meetingDescs.add)}}},[t._v(" "+t._s(t.meetingDescs.add)+" ")]),a("div",{staticClass:"modal-item-btns"},[a("Button",{on:{click:function(e){return t.onMeeting("createMeeting")}}},[t._v(t._s(t.$L("\u65B0\u5EFA\u4F1A\u8BAE")))])],1)])]),a("li",[t._m(1),a("div",{staticClass:"modal-item-info"},[a("div",{staticClass:"modal-item-name"},[a("h4",[t._v(t._s(t.$L("\u52A0\u5165\u4F1A\u8BAE")))])]),a("p",{staticClass:"modal-item-desc",on:{click:function(e){return t.openDetail(t.meetingDescs.join)}}},[t._v(t._s(t.meetingDescs.join))]),a("div",{staticClass:"modal-item-btns"},[a("Button",{on:{click:function(e){return t.onMeeting("joinMeeting")}}},[t._v(t._s(t.$L("\u52A0\u5165\u4F1A\u8BAE")))])],1)])])])},K=[function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"modal-item-img"},[a("div",{staticClass:"apply-icon no-dark-content meeting"})])},function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"modal-item-img"},[a("div",{staticClass:"apply-icon no-dark-content meeting-join"})])}];const U={name:"SystemMeetingNav",data(){return{meetingDescs:{add:this.$L("\u521B\u5EFA\u4E00\u4E2A\u5168\u65B0\u7684\u4F1A\u8BAE\u89C6\u9891\u4F1A\u8BAE\uFF0C\u4E0E\u4F1A\u8005\u53EF\u4EE5\u5728\u5B9E\u65F6\u4E2D\u8FDB\u884C\u9762\u5BF9\u9762\u7684\u89C6\u542C\u4EA4\u6D41\u3002")+this.$L("\u901A\u8FC7\u89C6\u9891\u4F1A\u8BAE\u5E73\u53F0\uFF0C\u53C2\u4E0E\u8005\u53EF\u4EE5\u5206\u4EAB\u5C4F\u5E55\u3001\u5171\u4EAB\u6587\u6863\uFF0C\u5E76\u4E0E\u5176\u4ED6\u4E0E\u4F1A\u4EBA\u5458\u8FDB\u884C\u8BA8\u8BBA\u548C\u534F\u3002"),join:this.$L("\u52A0\u5165\u89C6\u9891\u4F1A\u8BAE\uFF0C\u53C2\u4E0E\u5DF2\u7ECF\u521B\u5EFA\u7684\u4F1A\u8BAE\uFF0C\u5728\u4F1A\u8BAE\u8FC7\u7A0B\u4E2D\u4E0E\u5176\u4ED6\u53C2\u4F1A\u4EBA\u5458\u8FDB\u884C\u8FDC\u7A0B\u5B9E\u65F6\u89C6\u542C\u4EA4\u6D41\u548C\u534F\u4F5C\u3002")}}},methods:{openDetail(t){this.$emit("openDetail",t)},onMeeting(t){this.$emit("onMeeting",t)}}},u={};var W=n(U,N,K,!1,z,null,null,null);function z(t){for(let s in u)this[s]=u[s]}var G=function(){return W.exports}(),q=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"setting-component-item"},[a("Form",t._b({ref:"formData",attrs:{model:t.formData,rules:t.ruleData},nativeOn:{submit:function(e){e.preventDefault()}}},"Form",t.formOptions,!1),[a("div",{staticClass:"block-setting-box"},[a("h3",[t._v("LDAP")]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("\u542F\u7528 LDAP \u8BA4\u8BC1"),prop:"ldap_open"}},[a("RadioGroup",{model:{value:t.formData.ldap_open,callback:function(e){t.$set(t.formData,"ldap_open",e)},expression:"formData.ldap_open"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5F00\u542F\u540E\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528 LDAP \u5E10\u53F7\u5BC6\u7801\u767B\u5F55")))])],1),t.formData.ldap_open==="open"?[a("FormItem",{attrs:{label:t.$L("LDAP \u5730\u5740"),prop:"ldap_host"}},[a("Input",{model:{value:t.formData.ldap_host,callback:function(e){t.$set(t.formData,"ldap_host",e)},expression:"formData.ldap_host"}}),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u4F8B\u5982"))+": 192.168.1.200\u3001www.ldap.com")])],1),a("FormItem",{attrs:{label:t.$L("LDAP \u7AEF\u53E3"),prop:"ldap_port"}},[a("Input",{attrs:{type:"number",placeholder:`${t.$L("\u9ED8\u8BA4")}: 389`},model:{value:t.formData.ldap_port,callback:function(e){t.$set(t.formData,"ldap_port",e)},expression:"formData.ldap_port"}})],1),a("FormItem",{attrs:{label:"Base DN",prop:"ldap_base_dn"}},[a("Input",{model:{value:t.formData.ldap_base_dn,callback:function(e){t.$set(t.formData,"ldap_base_dn",e)},expression:"formData.ldap_base_dn"}})],1),a("FormItem",{attrs:{label:"User DN",prop:"ldap_user_dn"}},[a("Input",{model:{value:t.formData.ldap_user_dn,callback:function(e){t.$set(t.formData,"ldap_user_dn",e)},expression:"formData.ldap_user_dn"}})],1),a("FormItem",{attrs:{label:t.$L("\u5BC6\u7801"),prop:"ldap_password"}},[a("Input",{attrs:{type:"password"},model:{value:t.formData.ldap_password,callback:function(e){t.$set(t.formData,"ldap_password",e)},expression:"formData.ldap_password"}})],1),a("FormItem",{attrs:{label:t.$L("\u767B\u5F55\u5C5E\u6027"),prop:"ldap_login_attr"}},[a("RadioGroup",{model:{value:t.formData.ldap_login_attr,callback:function(e){t.$set(t.formData,"ldap_login_attr",e)},expression:"formData.ldap_login_attr"}},[a("Radio",{attrs:{label:"cn"}},[t._v("cn")]),a("Radio",{attrs:{label:"uid"}},[t._v("uid")]),a("Radio",{attrs:{label:"mail"}},[t._v("mail")]),a("Radio",{attrs:{label:"sAMAccountName"}},[t._v("sAMAccountName")]),a("Radio",{attrs:{label:"userPrincipalName"}},[t._v("userPrincipalName")])],1),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u7528\u4E8E\u5339\u914D\u767B\u5F55\u7528\u6237\u540D\u7684 LDAP \u5C5E\u6027\uFF0CActive Directory \u8BF7\u9009\u62E9 sAMAccountName")))])],1),a("FormItem",{attrs:{label:t.$L("\u540C\u6B65\u672C\u5730\u5E10\u53F7"),prop:"ldap_sync_local"}},[a("RadioGroup",{model:{value:t.formData.ldap_sync_local,callback:function(e){t.$set(t.formData,"ldap_sync_local",e)},expression:"formData.ldap_sync_local"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5F00\u542F\u540C\u6B65\u672C\u5730\u5E10\u53F7\u767B\u5F55\u540E\u5C06\u540C\u6B65\u5230 LDAP \u670D\u52A1\u5668")))])],1),a("FormItem",[a("Button",{attrs:{loading:t.testLoad},on:{click:t.checkTest}},[t._v(t._s(t.$L("\u6D4B\u8BD5\u94FE\u63A5")))])],1)]:t._e()],2)])]),a("div",{staticClass:"setting-footer"},[a("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),a("Button",{attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},J=[];const V={name:"SystemThirdAccess",data(){return{loadIng:0,formData:{},ruleData:{},testLoad:!1}},mounted(){this.systemSetting()},computed:{...c(["formOptions"])},methods:{submitForm(){this.$refs.formData.validate(t=>{t&&this.systemSetting(!0)})},resetForm(){this.formData=$A.cloneJSON(this.formDatum_bak)},systemSetting(t){this.loadIng++,this.$store.dispatch("call",{url:"system/setting/thirdaccess?type="+(t?"save":"all"),data:this.formData}).then(({data:s})=>{t&&$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.formData=s,this.formDatum_bak=$A.cloneJSON(this.formData)}).catch(({msg:s})=>{t&&$A.modalError(s)}).finally(s=>{this.loadIng--})},checkTest(){this.testLoad||(this.testLoad=!0,this.$store.dispatch("call",{url:"system/setting/thirdaccess?type=testldap",data:this.formData}).then(({msg:t})=>{$A.messageSuccess(t)}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.testLoad=!1}))}}},_={};var H=n(V,q,J,!1,Z,null,null,null);function Z(t){for(let s in _)this[s]=_[s]}var Q=function(){return H.exports}(),X=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"setting-component-item"},[a("Form",t._b({ref:"formData",attrs:{model:t.formData,rules:t.ruleData},nativeOn:{submit:function(e){e.preventDefault()}}},"Form",t.formOptions,!1),[a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("\u90AE\u7BB1\u670D\u52A1\u5668\u8BBE\u7F6E")))]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("SMTP\u670D\u52A1\u5668"),prop:"smtp_server"}},[a("Input",{model:{value:t.formData.smtp_server,callback:function(e){t.$set(t.formData,"smtp_server",e)},expression:"formData.smtp_server"}})],1),a("FormItem",{attrs:{label:t.$L("\u7AEF\u53E3"),prop:"port"}},[a("Input",{attrs:{maxlength:20},model:{value:t.formData.port,callback:function(e){t.$set(t.formData,"port",e)},expression:"formData.port"}})],1),a("FormItem",{attrs:{label:t.$L("\u5E10\u53F7"),prop:"account"}},[a("Input",{attrs:{maxlength:128},model:{value:t.formData.account,callback:function(e){t.$set(t.formData,"account",e)},expression:"formData.account"}})],1),a("FormItem",{attrs:{label:t.$L("\u5BC6\u7801"),prop:"password"}},[a("Input",{attrs:{maxlength:128,type:"password"},model:{value:t.formData.password,callback:function(e){t.$set(t.formData,"password",e)},expression:"formData.password"}})],1),a("FormItem",[a("Button",{on:{click:t.checkEmailSend}},[t._v(t._s(t.$L("\u90AE\u4EF6\u53D1\u9001\u6D4B\u8BD5")))])],1)],1)]),a("div",{staticClass:"block-setting-space"}),a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("\u90AE\u4EF6\u901A\u77E5\u8BBE\u7F6E")))]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("\u5F00\u542F\u6CE8\u518C\u9A8C\u8BC1"),prop:"reg_verify"}},[a("RadioGroup",{model:{value:t.formData.reg_verify,callback:function(e){t.$set(t.formData,"reg_verify",e)},expression:"formData.reg_verify"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),t.formData.reg_verify=="open"?a("div",{staticClass:"form-tip"},[t._v(" "+t._s(t.$L("\u5F00\u542F\u540E"))+":"),a("br"),t._v(" \u2460 "+t._s(t.$L("\u5E10\u53F7\u9700\u9A8C\u8BC1\u901A\u8FC7\u624D\u53EF\u767B\u5F55"))),a("br"),t._v(" \u2461 "+t._s(t.$L("\u4FEE\u6539\u90AE\u7BB1\u548C\u5220\u9664\u5E10\u53F7\u9700\u8981\u90AE\u7BB1\u9A8C\u8BC1\u7801"))+" ")]):t._e()],1),a("FormItem",{attrs:{label:t.$L("\u6D88\u606F\u63D0\u9192"),prop:"notice_msg"}},[a("RadioGroup",{model:{value:t.formData.notice_msg,callback:function(e){t.$set(t.formData,"notice_msg",e)},expression:"formData.notice_msg"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),t.formData.notice_msg=="open"?a("Form",{staticClass:"block-setting-msg-unread",nativeOn:{submit:function(e){e.preventDefault()}}},[a("FormItem",{attrs:{label:t.$L("\u901A\u77E5\u65F6\u95F4")}},[a("div",{staticClass:"input-range-box"},[t._l(t.formData.msg_unread_time_ranges,function(e,i){return a("div",{key:i,staticClass:"input-range-item"},[a("TimePicker",{attrs:{type:"timerange",format:"HH:mm",placeholder:t.$L("\u9009\u62E9\u65F6\u95F4\u8303\u56F4"),transfer:""},model:{value:t.formData.msg_unread_time_ranges[i],callback:function(o){t.$set(t.formData.msg_unread_time_ranges,i,o)},expression:"formData.msg_unread_time_ranges[index]"}})],1)}),a("Button",{attrs:{type:"default",icon:"md-add"},on:{click:t.onAddTimeRange}},[t._v(t._s(t.$L("\u6DFB\u52A0\u65F6\u95F4\u8303\u56F4")))]),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u4EC5\u5728\u6307\u5B9A\u65F6\u95F4\u8303\u56F4\u5185\u53D1\u9001\u90AE\u4EF6\u901A\u77E5\u3002")))])],2)]),a("FormItem",{attrs:{label:t.$L("\u672A\u8BFB\u4E2A\u4EBA\u6D88\u606F"),prop:"msg_unread_user_minute"}},[a("div",{staticClass:"input-number-box"},[a("InputNumber",{attrs:{min:0,step:1},model:{value:t.formData.msg_unread_user_minute,callback:function(e){t.$set(t.formData,"msg_unread_user_minute",e)},expression:"formData.msg_unread_user_minute"}}),a("label",[t._v(t._s(t.$L("\u5206\u949F")))])],1)]),a("FormItem",{attrs:{label:t.$L("\u672A\u8BFB\u7FA4\u804A\u6D88\u606F"),prop:"msg_unread_group_minute"}},[a("div",{staticClass:"input-number-box"},[a("InputNumber",{attrs:{min:0,step:1},model:{value:t.formData.msg_unread_group_minute,callback:function(e){t.$set(t.formData,"msg_unread_group_minute",e)},expression:"formData.msg_unread_group_minute"}}),a("label",[t._v(t._s(t.$L("\u5206\u949F")))])],1)]),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u672A\u8BFB\u6D88\u606F\u8D85\u8FC7\u6307\u5B9A\u65F6\u95F4\u540E\u53D1\u9001\u90AE\u4EF6\u901A\u77E5\uFF0C\u8BBE\u4E3A-1\u5219\u4E0D\u901A\u77E5\u3002")))])],1):t._e()],1)],1)]),a("div",{staticClass:"block-setting-space"}),a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("\u5FFD\u7565\u90AE\u7BB1\u5730\u5740")))]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("\u5FFD\u7565\u90AE\u7BB1"),prop:"ignore_addr"}},[a("Input",{attrs:{type:"textarea",autosize:{minRows:3,maxRows:50}},model:{value:t.formData.ignore_addr,callback:function(e){t.$set(t.formData,"ignore_addr",e)},expression:"formData.ignore_addr"}}),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u4E0D\u4F1A\u5411\u5FFD\u7565\u7684\u90AE\u7BB1\u5730\u5740\u53D1\u9001\u90AE\u4EF6\uFF0C\u53EF\u4F7F\u7528\u6362\u884C\u5206\u5272\u591A\u4E2A\u5730\u5740\u3002")))])],1)],1)])]),a("div",{staticClass:"setting-footer"},[a("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),a("Button",{attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},Y=[];const tt={name:"SystemEmailSetting",data(){return{loadIng:0,formData:{smtp_server:"",port:"",account:"",password:"",reg_verify:"colse",notice_msg:"open",msg_unread_user_minute:-1,msg_unread_group_minute:-1,ignore_addr:"",msg_unread_time_ranges:[[]]},ruleData:{}}},mounted(){this.systemSetting()},computed:{...c(["formOptions"])},methods:{submitForm(){this.$refs.formData.validate(t=>{t&&this.systemSetting(!0)})},resetForm(){this.formData=$A.cloneJSON(this.formDatum_bak)},onAddTimeRange(){if(this.formData.msg_unread_time_ranges.length>5){$A.messageError("\u6700\u591A\u6DFB\u52A05\u4E2A\u65F6\u95F4\u8303\u56F4");return}this.formData.msg_unread_time_ranges.push([])},systemSetting(t){this.loadIng++,this.$store.dispatch("call",{url:"system/setting/email?type="+(t?"save":"all"),data:this.formData}).then(({data:s})=>{t&&$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.formData=s,this.formDatum_bak=$A.cloneJSON(this.formData)}).catch(({msg:s})=>{t&&$A.modalError(s)}).finally(s=>{this.loadIng--})},checkEmailSend(){$A.modalInput({title:"\u6D4B\u8BD5\u90AE\u4EF6",placeholder:"\u8BF7\u8F93\u5165\u6536\u4EF6\u4EBA\u5730\u5740",onOk:t=>t?$A.isEmail(t)?new Promise((s,a)=>{this.$store.dispatch("call",{url:"system/email/check",data:Object.assign(this.formData,{to:t})}).then(({msg:e})=>{s(e)}).catch(({msg:e})=>{a(e)})}):"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u6536\u4EF6\u4EBA\u5730\u5740":"\u8BF7\u8F93\u5165\u6536\u4EF6\u4EBA\u5730\u5740"})}}},f={};var at=n(tt,X,Y,!1,et,null,null,null);function et(t){for(let s in f)this[s]=f[s]}var st=function(){return at.exports}(),ot=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"setting-component-item"},[a("Form",t._b({ref:"formData",attrs:{model:t.formData,rules:t.ruleData},nativeOn:{submit:function(e){e.preventDefault()}}},"Form",t.formOptions,!1),[a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("\u53CB\u76DF\u63A8\u9001")))]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("\u5F00\u542F\u63A8\u9001"),prop:"push"}},[a("RadioGroup",{model:{value:t.formData.push,callback:function(e){t.$set(t.formData,"push",e)},expression:"formData.push"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1)],1),t.formData.push==="open"?[a("Divider",{attrs:{orientation:"left"}},[t._v("iOS "+t._s(t.$L("\u53C2\u6570\u914D\u7F6E")))]),a("FormItem",{attrs:{label:"Appkey",prop:"ios_appkey"}},[a("Input",{attrs:{maxlength:255},model:{value:t.formData.ios_key,callback:function(e){t.$set(t.formData,"ios_key",e)},expression:"formData.ios_key"}})],1),a("FormItem",{attrs:{label:"App Master Secret",prop:"secret"}},[a("Input",{attrs:{maxlength:255,type:"password"},model:{value:t.formData.ios_secret,callback:function(e){t.$set(t.formData,"ios_secret",e)},expression:"formData.ios_secret"}})],1),a("Divider",{attrs:{orientation:"left"}},[t._v("Android "+t._s(t.$L("\u53C2\u6570\u914D\u7F6E")))]),a("FormItem",{attrs:{label:"Appkey",prop:"android_appkey"}},[a("Input",{attrs:{maxlength:255},model:{value:t.formData.android_key,callback:function(e){t.$set(t.formData,"android_key",e)},expression:"formData.android_key"}})],1),a("FormItem",{attrs:{label:"App Master Secret",prop:"secret"}},[a("Input",{attrs:{maxlength:255,type:"password"},model:{value:t.formData.android_secret,callback:function(e){t.$set(t.formData,"android_secret",e)},expression:"formData.android_secret"}})],1)]:t._e()],2)])]),a("div",{staticClass:"setting-footer"},[a("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),a("Button",{attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},it=[];const rt={name:"SystemAppPush",data(){return{loadIng:0,formData:{push:"",ios_key:"",ios_secret:"",android_key:"",android_secret:""},ruleData:{}}},mounted(){this.systemSetting()},computed:{...c(["formOptions"])},methods:{submitForm(){this.$refs.formData.validate(t=>{t&&this.systemSetting(!0)})},resetForm(){this.formData=$A.cloneJSON(this.formDatum_bak)},systemSetting(t){this.loadIng++,this.$store.dispatch("call",{url:"system/setting/apppush?type="+(t?"save":"all"),data:this.formData}).then(({data:s})=>{t&&$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.formData=s,this.formDatum_bak=$A.cloneJSON(this.formData)}).catch(({msg:s})=>{t&&$A.modalError(s)}).finally(s=>{this.loadIng--})}}},h={};var nt=n(rt,ot,it,!1,lt,null,null,null);function lt(t){for(let s in h)this[s]=h[s]}var ct=function(){return nt.exports}(),mt=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"page-apply"},[a("PageTitle",{attrs:{title:t.$L("\u5E94\u7528")}}),a("div",{staticClass:"apply-wrapper"},[a("div",{staticClass:"apply-head"},[a("div",{staticClass:"apply-nav"},[a("h1",[t._v(t._s(t.$L("\u5E94\u7528")))])]),a("div",{staticClass:"apply-nav-actions"},[a("Dropdown",{attrs:{trigger:"click",placement:"bottom-end",transfer:""},on:{"on-click":t.handleActionMenu}},[a("div",{staticClass:"apply-action-btn"},[a("Icon",{attrs:{type:"ios-more"}})],1),a("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[t.sortingMode?a("DropdownItem",{attrs:{name:"cancelSort"}},[t._v(t._s(t.$L("\u9000\u51FA\u6392\u5E8F")))]):a("DropdownItem",{attrs:{name:"sort"}},[t._v(t._s(t.$L("\u8C03\u6574\u6392\u5E8F")))]),t.userIsAdmin?a("DropdownItem",{attrs:{divided:"",name:"customMicro"}},[t._v(t._s(t.$L("\u81EA\u5B9A\u4E49\u5E94\u7528\u83DC\u5355")))]):t._e()],1)],1)],1)]),t.sortingMode?a("div",{staticClass:"apply-sort-bar"},[a("div",{staticClass:"apply-sort-tip"},[a("Icon",{attrs:{type:"md-move"}}),a("span",[t._v(t._s(t.$L("\u62D6\u52A8\u5361\u7247\u8C03\u6574\u987A\u5E8F\uFF0C\u4FDD\u5B58\u540E\u4EC5\u81EA\u5DF1\u53EF\u89C1")))])],1),a("div",{staticClass:"apply-sort-actions"},[a("Button",{on:{click:t.exitSortMode}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),a("Button",{on:{click:t.restoreDefaultSort}},[t._v(t._s(t.$L("\u6062\u590D\u9ED8\u8BA4")))]),a("Button",{attrs:{type:"primary",disabled:!t.sortHasChanges,loading:t.appSortSaving},on:{click:t.submitSort}},[t._v(" "+t._s(t.$L("\u4FDD\u5B58"))+" ")])],1)]):t._e(),a("div",{staticClass:"apply-content"},[t._l(t.applyTypes,function(e){return[e==="base"||t.adminAppItems.length>0?[e==="base"&&t.isExistAdminList||e==="admin"?a("div",{staticClass:"apply-row-title"},[t._v(" "+t._s(e==="base"?t.$L("\u5E38\u7528"):t.$L("\u7BA1\u7406\u5458"))+" ")]):t._e(),t._l([t.currentCards(e)],function(i){return a("Draggable",{key:`apps_${e}`,staticClass:"apply-sort-list",attrs:{tag:"Row",list:i,disabled:!t.sortingMode,"component-data":{props:{gutter:16}},options:t.getDraggableOptions(e)}},t._l(i,function(o){return a("Col",{key:o.sortKey,staticClass:"apply-col-wrapper",attrs:{xs:{span:6},sm:{span:6},lg:{span:6},xl:{span:6},xxl:{span:3}}},[a("div",{staticClass:"apply-col"},[o.category==="micro"?[a("div",{staticClass:"apply-item",class:{"is-sorting":t.sortingMode},on:{click:function(r){return t.handleCardClick(o)}}},[a("div",{staticClass:"logo"},[a("div",{staticClass:"apply-icon no-dark-content",style:{backgroundImage:`url(${o.micro.icon})`}}),t.sortingMode?t._e():a("div",{staticClass:"apply-box-top-report"},[t.microBadge(o.micro).count>0?a("Badge",{attrs:{"overflow-count":999,count:t.microBadge(o.micro).count}}):t.microBadge(o.micro).dot?a("Badge",{attrs:{dot:""}}):t._e()],1)]),a("p",[t._v(t._s(o.micro.label))])])]:[o.system.value==="exportManage"&&!t.sortingMode?[a("div",{staticClass:"apply-item",class:{"is-sorting":t.sortingMode},on:{click:t.openExportMenu}},[a("div",{staticClass:"logo"},[a("div",{staticClass:"apply-icon no-dark-content",class:t.getLogoClass(o.system.value)})]),a("p",[t._v(t._s(t.$L(o.system.label)))])])]:a("div",{staticClass:"apply-item",class:{"is-sorting":t.sortingMode},on:{click:function(r){return t.handleCardClick(o)}}},[a("div",{staticClass:"logo"},[a("div",{staticClass:"apply-icon no-dark-content",class:t.getLogoClass(o.system.value)}),t.sortingMode?t._e():a("div",{staticClass:"apply-box-top-report",on:{click:function(r){return r.stopPropagation(),t.handleCardClick(o,"badge")}}},[t.showBadge(o.system,"report")?a("Badge",{attrs:{"overflow-count":999,count:t.reportUnreadNumber}}):t._e()],1)]),a("p",[t._v(t._s(t.$L(o.system.label)))])])]],2)])}),1)})]:t._e()]})],2)]),t.userIsAdmin?a("Modal",{attrs:{title:t.$L("\u81EA\u5B9A\u4E49\u5E94\u7528\u83DC\u5355"),"mask-closable":!1,width:"760"},model:{value:t.customMicroModalVisible,callback:function(e){t.customMicroModalVisible=e},expression:"customMicroModalVisible"}},[a("Alert",{staticClass:"custom-micro-alert",attrs:{type:"info","show-icon":""}},[t._v(" "+t._s(t.$L("\u4EC5\u7BA1\u7406\u5458\u53EF\u914D\u7F6E\uFF0C\u4FDD\u5B58\u540E\u4F1A\u5728\u5E94\u7528\u5217\u8868\u4E2D\u751F\u6210\u5BF9\u5E94\u83DC\u5355\u3002"))+" ")]),t.customMicroLoading?a("div",{staticClass:"custom-micro-loading"},[a("Loading")],1):a("div",{staticClass:"custom-micro-body"},[t.customMicroMenus.length?a("Collapse",{attrs:{accordion:"",simple:""},model:{value:t.customMicroCollapsed,callback:function(e){t.customMicroCollapsed=e},expression:"customMicroCollapsed"}},t._l(t.customMicroMenus,function(e,i){return a("Panel",{key:e.uid,attrs:{name:e.uid}},[a("div",{staticClass:"custom-micro-card__header"},[a("div",{staticClass:"custom-micro-card__title"},[t._v(" "+t._s(e.id||t.$L("\u672A\u547D\u540D\u5E94\u7528"))+" ")]),a("div",{staticClass:"custom-micro-card__actions"},[a("Button",{on:{click:function(o){return o.stopPropagation(),t.duplicateCustomMenu(i)}}},[t._v(t._s(t.$L("\u590D\u5236")))]),a("Button",{attrs:{type:"error"},on:{click:function(o){return o.stopPropagation(),t.removeCustomMenu(i)}}},[t._v(t._s(t.$L("\u5220\u9664")))])],1)]),a("div",{attrs:{slot:"content"},slot:"content"},[a("Form",{attrs:{"label-position":"top"}},[a("Row",{attrs:{gutter:16}},[a("Col",{attrs:{sm:12,xs:24}},[a("FormItem",{attrs:{label:t.$L("\u5E94\u7528 ID"),required:""}},[a("Input",{attrs:{placeholder:"custom-okr"},model:{value:e.id,callback:function(o){t.$set(e,"id",typeof o=="string"?o.trim():o)},expression:"item.id"}})],1)],1),a("Col",{attrs:{sm:12,xs:24}},[a("FormItem",{attrs:{label:t.$L("\u5E94\u7528\u540D\u79F0")}},[a("Input",{attrs:{placeholder:"OKR \u5F00\u53D1"},model:{value:e.name,callback:function(o){t.$set(e,"name",typeof o=="string"?o.trim():o)},expression:"item.name"}})],1)],1)],1),a("FormItem",{attrs:{label:t.$L("\u83DC\u5355\u6807\u9898"),required:""}},[a("Input",{attrs:{placeholder:"OKR \u5F00\u53D1\u5165\u53E3"},model:{value:e.menu.label,callback:function(o){t.$set(e.menu,"label",typeof o=="string"?o.trim():o)},expression:"item.menu.label"}})],1),a("Row",{attrs:{gutter:16}},[a("Col",{attrs:{sm:12,xs:24}},[a("FormItem",{attrs:{label:t.$L("\u83DC\u5355\u4F4D\u7F6E")}},[a("Select",{attrs:{transfer:""},model:{value:e.menu.location,callback:function(o){t.$set(e.menu,"location",o)},expression:"item.menu.location"}},[a("Option",{attrs:{value:"application"}},[t._v(t._s(t.$L("\u5E94\u7528\u4E2D\u5FC3 - \u5E38\u7528")))]),a("Option",{attrs:{value:"application/admin"}},[t._v(t._s(t.$L("\u5E94\u7528\u4E2D\u5FC3 - \u7BA1\u7406")))]),a("Option",{attrs:{value:"main/menu"}},[t._v(t._s(t.$L("\u4E3B\u5BFC\u822A")))])],1)],1)],1),a("Col",{attrs:{sm:12,xs:24}},[a("FormItem",{attrs:{label:t.$L("\u53EF\u89C1\u8303\u56F4")}},[a("Select",{attrs:{transfer:""},model:{value:e.menu.visible_to,callback:function(o){t.$set(e.menu,"visible_to",o)},expression:"item.menu.visible_to"}},[a("Option",{attrs:{value:"admin"}},[t._v(t._s(t.$L("\u4EC5\u7BA1\u7406\u5458")))]),a("Option",{attrs:{value:"all"}},[t._v(t._s(t.$L("\u6240\u6709\u6210\u5458")))])],1)],1)],1)],1),a("FormItem",{attrs:{label:t.$L("\u56FE\u6807\u5730\u5740")}},[a("Input",{attrs:{placeholder:"https://example.com/icon.png"},model:{value:e.menu.icon,callback:function(o){t.$set(e.menu,"icon",typeof o=="string"?o.trim():o)},expression:"item.menu.icon"}})],1),a("FormItem",{attrs:{label:t.$L("\u83DC\u5355 URL"),required:""}},[a("Input",{attrs:{placeholder:"https://example.com/app?token={user_token}"},model:{value:e.menu.url,callback:function(o){t.$set(e.menu,"url",typeof o=="string"?o.trim():o)},expression:"item.menu.url"}})],1),a("Row",{attrs:{gutter:16}},[a("Col",{attrs:{sm:12,xs:24}},[a("FormItem",{attrs:{label:t.$L("\u7C7B\u578B")}},[a("Select",{attrs:{transfer:""},model:{value:e.menu.type,callback:function(o){t.$set(e.menu,"type",o)},expression:"item.menu.type"}},[a("Option",{attrs:{value:"iframe"}},[t._v("iframe")]),a("Option",{attrs:{value:"iframe_blank"}},[t._v("iframe_blank")]),a("Option",{attrs:{value:"inline"}},[t._v("inline")]),a("Option",{attrs:{value:"inline_blank"}},[t._v("inline_blank")]),a("Option",{attrs:{value:"external"}},[t._v("external")])],1)],1)],1),a("Col",{attrs:{sm:12,xs:24}},[a("FormItem",{attrs:{label:t.$L("\u80CC\u666F\u989C\u8272")}},[a("Input",{attrs:{placeholder:"#FFFFFF \u6216 #FFFFFF|#000000"},model:{value:e.menu.background,callback:function(o){t.$set(e.menu,"background",typeof o=="string"?o.trim():o)},expression:"item.menu.background"}})],1)],1)],1),a("div",{staticClass:"custom-micro-checkbox-group"},[a("Checkbox",{model:{value:e.menu.keep_alive,callback:function(o){t.$set(e.menu,"keep_alive",o)},expression:"item.menu.keep_alive"}},[t._v(t._s(t.$L("\u4FDD\u6301\u6FC0\u6D3B\u72B6\u6001")))]),a("Checkbox",{model:{value:e.menu.auto_dark_theme,callback:function(o){t.$set(e.menu,"auto_dark_theme",o)},expression:"item.menu.auto_dark_theme"}},[t._v(t._s(t.$L("\u81EA\u52A8\u6697\u9ED1\u6A21\u5F0F")))]),a("Checkbox",{model:{value:e.menu.immersive,callback:function(o){t.$set(e.menu,"immersive",o)},expression:"item.menu.immersive"}},[t._v(t._s(t.$L("\u6C89\u6D78\u5F0F")))]),a("Checkbox",{model:{value:e.menu.transparent,callback:function(o){t.$set(e.menu,"transparent",o)},expression:"item.menu.transparent"}},[t._v(t._s(t.$L("\u900F\u660E\u80CC\u666F")))]),a("Checkbox",{model:{value:e.menu.disable_scope_css,callback:function(o){t.$set(e.menu,"disable_scope_css",o)},expression:"item.menu.disable_scope_css"}},[t._v(t._s(t.$L("\u7981\u7528\u4F5C\u7528\u57DF\u6837\u5F0F")))])],1)],1)],1)])}),1):a("div",{staticClass:"custom-micro-empty"},[t._v(" "+t._s(t.$L("\u6682\u65E0\u81EA\u5B9A\u4E49\u83DC\u5355\uFF0C\u8BF7\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\u65B0\u589E\u3002"))+" ")]),a("Button",{staticClass:"custom-micro-add-btn",attrs:{type:"dashed",long:"",icon:"md-add"},on:{click:t.addCustomMenu}},[t._v(" "+t._s(t.$L("\u65B0\u589E\u83DC\u5355"))+" ")])],1),a("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[a("Button",{on:{click:function(e){t.customMicroModalVisible=!1}}},[t._v(t._s(t.$L("\u5173\u95ED")))]),a("Button",{attrs:{type:"primary",loading:t.customMicroSaving},on:{click:t.saveCustomMenus}},[t._v(t._s(t.$L("\u4FDD\u5B58")))])],1)],1):t._e(),a("DrawerOverlay",{attrs:{placement:"right",size:720},scopedSlots:t._u([t.mybotShow?{key:"title",fn:function(){return[t._v(" "+t._s(t.$L("\u6211\u7684\u673A\u5668\u4EBA"))+" ")]},proxy:!0}:null,t.mybotShow?{key:"more",fn:function(){return[a("a",{attrs:{href:"javascript:void(0)"},on:{click:function(e){return t.applyClick({value:"mybot-add"},{id:0})}}},[t._v(t._s(t.$L("\u6DFB\u52A0\u673A\u5668\u4EBA")))])]},proxy:!0}:null],null,!0),model:{value:t.mybotShow,callback:function(e){t.mybotShow=e},expression:"mybotShow"}},[t.mybotShow?a("div",{staticClass:"ivu-modal-wrap-apply"},[a("div",{staticClass:"ivu-modal-wrap-apply-body full-body"},[t.mybotList.length===0?a("div",{staticClass:"empty-data"},[t.mybotLoad?a("Loading"):a("span",[t._v(t._s(t.$L("\u60A8\u6CA1\u6709\u521B\u5EFA\u673A\u5668\u4EBA")))])],1):a("ul",{staticClass:"ivu-modal-wrap-ul"},t._l(t.mybotList,function(e,i){return a("li",{key:i},[a("div",{staticClass:"modal-item-img"},[a("img",{attrs:{src:e.avatar}})]),a("div",{staticClass:"modal-item-info"},[a("div",{staticClass:"modal-item-name"},[a("h4",{staticClass:"user-select-auto"},[t._v(t._s(e.name))])]),a("div",{staticClass:"modal-item-mybot user-select-auto"},[a("p",[a("span",[t._v("ID:")]),t._v(t._s(e.id))]),a("p",[a("span",[t._v(t._s(t.$L("\u6E05\u7406\u65F6\u95F4"))+":")]),t._v(t._s(e.clear_day))]),a("p",[a("span",[t._v("Webhook:")]),t._v(t._s(e.webhook_url||"-"))]),a("p",[a("span",[t._v(t._s(t.$L("Webhook\u4E8B\u4EF6"))+":")]),t._v(t._s(t.formatWebhookEvents(e.webhook_events)))])]),a("div",{staticClass:"modal-item-btns"},[a("Button",{attrs:{icon:"md-chatbubbles"},on:{click:function(o){return t.applyClick({value:"mybot-chat"},e)}}},[t._v(t._s(t.$L("\u5F00\u59CB\u804A\u5929")))]),a("Button",{attrs:{icon:"md-create"},on:{click:function(o){return t.applyClick({value:"mybot-add"},e)}}},[t._v(t._s(t.$L("\u4FEE\u6539")))]),a("Button",{attrs:{icon:"md-trash"},on:{click:function(o){return t.applyClick({value:"mybot-del"},e)}}},[t._v(t._s(t.$L("\u5220\u9664")))])],1)])])}),0)])]):t._e()]),a("Modal",{attrs:{title:t.$L(t.mybotModifyData.id>0?"\u4FEE\u6539\u673A\u5668\u4EBA":"\u6DFB\u52A0\u673A\u5668\u4EBA"),"mask-closable":!1},model:{value:t.mybotModifyShow,callback:function(e){t.mybotModifyShow=e},expression:"mybotModifyShow"}},[a("Form",t._b({attrs:{model:t.mybotModifyData},nativeOn:{submit:function(e){e.preventDefault()}}},"Form",t.formOptions,!1),[t.mybotModifyData.system_name?a("Alert",{staticStyle:{"margin-bottom":"18px"},attrs:{type:"error"}},[t._v(t._s(t.$L("\u6B63\u5728\u4FEE\u6539\u7CFB\u7EDF\u673A\u5668\u4EBA\uFF1A(*)",t.mybotModifyData.system_name)))]):t._e(),a("FormItem",{attrs:{prop:"avatar",label:t.$L("\u5934\u50CF")}},[a("ImgUpload",{attrs:{num:1,width:512,height:512,whcut:"cover"},model:{value:t.mybotModifyData.avatar,callback:function(e){t.$set(t.mybotModifyData,"avatar",e)},expression:"mybotModifyData.avatar"}})],1),a("FormItem",{attrs:{prop:"name",label:t.$L("\u540D\u79F0")}},[a("Input",{attrs:{maxlength:20,placeholder:t.$L("\u673A\u5668\u4EBA\u540D\u79F0")},model:{value:t.mybotModifyData.name,callback:function(e){t.$set(t.mybotModifyData,"name",e)},expression:"mybotModifyData.name"}})],1),a("FormItem",{attrs:{prop:"clear_day",label:t.$L("\u6D88\u606F\u4FDD\u7559")}},[a("Input",{attrs:{maxlength:3,type:"number",placeholder:t.$L("\u9ED8\u8BA4\uFF1A90\u5929")},model:{value:t.mybotModifyData.clear_day,callback:function(e){t.$set(t.mybotModifyData,"clear_day",e)},expression:"mybotModifyData.clear_day"}},[a("div",{attrs:{slot:"append"},slot:"append"},[t._v(t._s(t.$L("[day_unit].\u5929")))])])],1),a("FormItem",{attrs:{prop:"webhook_url",label:"Webhook"}},[a("Input",{attrs:{maxlength:255,"show-word-limit":.9,type:"textarea",placeholder:"Webhook"},model:{value:t.mybotModifyData.webhook_url,callback:function(e){t.$set(t.mybotModifyData,"webhook_url",e)},expression:"mybotModifyData.webhook_url"}})],1),a("FormItem",{attrs:{prop:"webhook_events",label:t.$L("Webhook\u4E8B\u4EF6")}},[a("CheckboxGroup",{model:{value:t.mybotModifyData.webhook_events,callback:function(e){t.$set(t.mybotModifyData,"webhook_events",e)},expression:"mybotModifyData.webhook_events"}},t._l(t.webhookEventOptions,function(e){return a("Checkbox",{key:e.value,attrs:{label:e.value}},[t._v(" "+t._s(t.$L(e.label))+" ")])}),1)],1)],1),a("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{type:"default"},on:{click:function(e){t.mybotModifyShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),a("Button",{attrs:{type:"primary",loading:t.mybotModifyLoad>0},on:{click:t.onMybotModify}},[t._v(t._s(t.$L("\u4FDD\u5B58")))])],1)],1),a("DrawerOverlay",{attrs:{placement:"right",size:500},scopedSlots:t._u([t.signInShow?{key:"title",fn:function(){return[t._v(" "+t._s(t.$L("\u7B7E\u5230\u7BA1\u7406"))+" ")]},proxy:!0}:null,t.signInShow?{key:"more",fn:function(){return[t.userIsAdmin?a("a",{attrs:{href:"javascript:void(0)"},on:{click:function(e){t.signInSettingShow=!0}}},[t._v(t._s(t.$L("\u7B7E\u5230\u8BBE\u7F6E")))]):t._e()]},proxy:!0}:null],null,!0),model:{value:t.signInShow,callback:function(e){t.signInShow=e},expression:"signInShow"}},[t.signInShow?a("div",{staticClass:"ivu-modal-wrap-apply"},[a("div",{staticClass:"ivu-modal-wrap-apply-body"},[a("Checkin")],1)]):t._e()]),a("DrawerOverlay",{attrs:{placement:"right",size:720},scopedSlots:t._u([t.signInSettingShow?{key:"title",fn:function(){return[t._v(" "+t._s(t.$L("\u7B7E\u5230\u8BBE\u7F6E"))+" ")]},proxy:!0}:null],null,!0),model:{value:t.signInSettingShow,callback:function(e){t.signInSettingShow=e},expression:"signInSettingShow"}},[t.signInSettingShow?a("div",{staticClass:"ivu-modal-wrap-apply"},[a("div",{staticClass:"ivu-modal-wrap-apply-body"},[a("SystemCheckin")],1)]):t._e()]),a("DrawerOverlay",{attrs:{placement:"right",size:720},scopedSlots:t._u([t.meetingShow?{key:"title",fn:function(){return[t._v(" "+t._s(t.$L("\u4F1A\u8BAE"))+" ")]},proxy:!0}:null,t.meetingShow?{key:"more",fn:function(){return[t.userIsAdmin?a("a",{attrs:{href:"javascript:void(0)"},on:{click:function(e){t.meetingSettingShow=!0}}},[t._v(t._s(t.$L("\u4F1A\u8BAE\u8BBE\u7F6E")))]):t._e()]},proxy:!0}:null],null,!0),model:{value:t.meetingShow,callback:function(e){t.meetingShow=e},expression:"meetingShow"}},[t.meetingShow?a("div",{staticClass:"ivu-modal-wrap-apply"},[a("div",{staticClass:"ivu-modal-wrap-apply-body full-body"},[a("SystemMeetingNav",{on:{openDetail:t.openDetail,onMeeting:t.onMeeting}})],1)]):t._e()]),a("DrawerOverlay",{attrs:{placement:"right",size:600},scopedSlots:t._u([t.meetingSettingShow?{key:"title",fn:function(){return[t._v(" "+t._s(t.$L("\u4F1A\u8BAE\u8BBE\u7F6E"))+" ")]},proxy:!0}:null],null,!0),model:{value:t.meetingSettingShow,callback:function(e){t.meetingSettingShow=e},expression:"meetingSettingShow"}},[t.meetingSettingShow?a("div",{staticClass:"ivu-modal-wrap-apply"},[a("div",{staticClass:"ivu-modal-wrap-apply-body full-body"},[a("SystemMeeting")],1)]):t._e()]),a("DrawerOverlay",{attrs:{placement:"right",size:700},scopedSlots:t._u([t.ldapShow?{key:"title",fn:function(){return[t._v(" "+t._s(t.$L("LDAP \u8BBE\u7F6E"))+" ")]},proxy:!0}:null],null,!0),model:{value:t.ldapShow,callback:function(e){t.ldapShow=e},expression:"ldapShow"}},[t.ldapShow?a("div",{staticClass:"ivu-modal-wrap-apply"},[a("div",{staticClass:"ivu-modal-wrap-apply-body"},[a("SystemThirdAccess")],1)]):t._e()]),a("DrawerOverlay",{attrs:{placement:"right",size:700},scopedSlots:t._u([t.mailShow?{key:"title",fn:function(){return[t._v(" "+t._s(t.$L("\u90AE\u4EF6\u901A\u77E5"))+" ")]},proxy:!0}:null],null,!0),model:{value:t.mailShow,callback:function(e){t.mailShow=e},expression:"mailShow"}},[t.mailShow?a("div",{staticClass:"ivu-modal-wrap-apply"},[a("div",{staticClass:"ivu-modal-wrap-apply-body"},[a("SystemEmailSetting")],1)]):t._e()]),a("DrawerOverlay",{attrs:{placement:"right",size:700},scopedSlots:t._u([t.appPushShow?{key:"title",fn:function(){return[t._v(" "+t._s(t.$L("APP \u63A8\u9001"))+" ")]},proxy:!0}:null],null,!0),model:{value:t.appPushShow,callback:function(e){t.appPushShow=e},expression:"appPushShow"}},[t.appPushShow?a("div",{staticClass:"ivu-modal-wrap-apply"},[a("div",{staticClass:"ivu-modal-wrap-apply-body"},[a("SystemAppPush")],1)]):t._e()]),a("Modal",{attrs:{title:t.$L("\u626B\u7801\u767B\u5F55"),"mask-closable":!1},model:{value:t.scanLoginShow,callback:function(e){t.scanLoginShow=e},expression:"scanLoginShow"}},[a("div",{staticClass:"mobile-scan-login-box"},[a("div",{staticClass:"mobile-scan-login-title"},[t._v(t._s(t.$L("\u4F60\u597D\uFF0C\u626B\u7801\u786E\u8BA4\u767B\u5F55")))]),a("div",{staticClass:"mobile-scan-login-subtitle"},[t._v("\u300C"+t._s(t.$L("\u4E3A\u786E\u4FDD\u5E10\u53F7\u5B89\u5168\uFF0C\u8BF7\u786E\u8BA4\u662F\u672C\u4EBA\u64CD\u4F5C"))+"\u300D")])]),a("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{type:"default"},on:{click:function(e){t.scanLoginShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88\u767B\u5F55")))]),a("Button",{attrs:{type:"primary",loading:t.scanLoginLoad},on:{click:t.scanLoginSubmit}},[t._v(t._s(t.$L("\u786E\u8BA4\u767B\u5F55")))])],1)]),a("UserSelect",{ref:"wordChainAndVoteRef",attrs:{"multiple-max":1,title:t.sendType=="vote"?t.$L("\u9009\u62E9\u7FA4\u7EC4\u53D1\u8D77\u6295\u7968"):t.$L("\u9009\u62E9\u7FA4\u7EC4\u53D1\u8D77\u63A5\u9F99"),"before-submit":t.goWordChainAndVote,"show-select-all":!1,"only-group":!0,"show-dialog":"",module:""},model:{value:t.sendData,callback:function(e){t.sendData=e},expression:"sendData"}})],1)},pt=[];const m=()=>({uid:`custom_${Math.random().toString(36).slice(2,10)}`,id:"",name:"",version:"custom",menu:{location:"application",type:"iframe",visible_to:"admin",keep_alive:!0,auto_dark_theme:!0,immersive:!1}}),dt={components:{Draggable:M,ImgUpload:S,UserSelect:g,DrawerOverlay:b,SystemCheckin:E,Checkin:L,SystemMeeting:j,SystemMeetingNav:G,SystemThirdAccess:Q,SystemEmailSetting:st,SystemAppPush:ct},data(){return{applyTypes:["base","admin"],sortingMode:!1,sortLists:{base:[],admin:[]},sortInitialLists:{base:[],admin:[]},appSorts:{base:[],admin:[]},appSortLoaded:!1,appSortLoading:!1,appSortSaving:!1,mybotShow:!1,mybotList:[],mybotLoad:0,mybotModifyShow:!1,mybotModifyData:{},mybotModifyLoad:0,webhookEventOptions:C,signInShow:!1,signInSettingShow:!1,meetingShow:!1,meetingSettingShow:!1,ldapShow:!1,mailShow:!1,appPushShow:!1,scanLoginShow:!1,scanLoginLoad:!1,scanLoginCode:"",sendData:[],sendType:"",customMicroModalVisible:!1,customMicroMenus:[],customMicroLoading:!1,customMicroSaving:!1,customMicroCollapsed:""}},created(){this.fetchAppSorts()},activated(){this.$store.dispatch("updateMicroAppsStatus")},computed:{...c(["systemConfig","userInfo","userIsAdmin","reportUnreadNumber","cacheDialogs","windowOrientation","windowPortrait","formOptions","routeLoading","microAppsIds"]),...y(["filterMicroAppsMenus","filterMicroAppsMenusAdmin","systemFunctionEnabled"]),applyList(){const t=[{value:"favorite",label:"\u6211\u7684\u6536\u85CF",sort:45,show:this.systemFunctionEnabled("favorite")},{value:"recent",label:"\u6700\u8FD1\u6253\u5F00",sort:47,show:this.systemFunctionEnabled("recent")},{value:"report",label:"\u5DE5\u4F5C\u62A5\u544A",sort:50,show:this.systemFunctionEnabled("report")},{value:"mybot",label:"\u6211\u7684\u673A\u5668\u4EBA",sort:55},{value:"signin",label:"\u7B7E\u5230\u6253\u5361",sort:70,show:this.systemFunctionEnabled("checkin")},{value:"meeting",label:"\u5728\u7EBF\u4F1A\u8BAE",sort:80},{value:"createGroup",label:"\u521B\u5EFA\u7FA4\u7EC4",sort:85},{value:"word-chain",label:"\u7FA4\u63A5\u9F99",sort:90},{value:"vote",label:"\u7FA4\u6295\u7968",sort:100},{value:"addProject",label:"\u521B\u5EFA\u9879\u76EE",sort:110},{value:"addTask",label:"\u6DFB\u52A0\u4EFB\u52A1",sort:120},{value:"scan",label:"\u626B\u4E00\u626B",sort:130,show:$A.isEEUIApp},{type:"admin",value:"ldap",label:"LDAP",sort:160,show:this.userIsAdmin},{type:"admin",value:"mail",label:"\u90AE\u4EF6\u901A\u77E5",sort:170,show:this.userIsAdmin},{type:"admin",value:"appPush",label:"APP \u63A8\u9001",sort:180,show:this.userIsAdmin},{type:"admin",value:"complaint",label:"\u4E3E\u62A5\u7BA1\u7406",sort:190,show:this.userIsAdmin},{type:"admin",value:"exportManage",label:"\u6570\u636E\u5BFC\u51FA",sort:195,show:this.userIsAdmin},{type:"admin",value:"allUser",label:"\u56E2\u961F\u7BA1\u7406",sort:200,show:this.userIsAdmin}];return this.windowPortrait&&t.push({value:"calendar",label:"\u65E5\u5386",sort:10,show:this.systemFunctionEnabled("calendar")},{value:"file",label:"\u6587\u4EF6",sort:20},{value:"setting",label:"\u8BBE\u7F6E",sort:140}),t.sort((s,a)=>s.sort-a.sort)},isExistAdminList(){return this.adminAppItems.length>0},baseAppItems(){return this.applySavedSort(this.collectAppItems("base"),"base")},adminAppItems(){return this.applySavedSort(this.collectAppItems("admin"),"admin")},sortHasChanges(){return this.sortingMode?["base","admin"].some(s=>{const a=(this.sortLists[s]||[]).map(i=>i.sortKey),e=this.sortInitialLists[s]||[];return a.length!==e.length?!0:a.some((i,o)=>i!==e[o])}):!1}},watch:{sortingMode(t){t?this.bootstrapSortLists():this.resetSortState()},baseAppItems(){this.sortingMode&&this.mergeSortListWithSource("base")},adminAppItems(){this.sortingMode&&this.mergeSortListWithSource("admin")}},methods:{handleActionMenu(t){t==="sort"?this.enterSortMode():t==="cancelSort"?this.exitSortMode():t==="customMicro"&&this.openCustomMicroModal()},openCustomMicroModal(){!this.userIsAdmin||(this.customMicroModalVisible=!0,this.loadCustomMicroMenus())},loadCustomMicroMenus(){this.customMicroLoading=!0,this.$store.dispatch("call",{url:"system/microapp_menu?type=get",method:"post"}).then(({data:t})=>{this.customMicroMenus=this.normalizeCustomMenus(t),this.customMicroCollapsed=this.customMicroMenus.length>0?this.customMicroMenus[0].uid:""}).catch(({msg:t})=>{t&&$A.modalError(t)}).finally(()=>{this.customMicroLoading=!1})},normalizeCustomMenus(t=[]){return $A.isArray(t)?t.map(s=>{const a=m(),e=Object.assign({},a,s,{menu:Object.assign({},a.menu,$A.isArray(s.menu_items)&&s.menu_items.length>0?s.menu_items[0]:{})});return e.menu.visible_to=$A.isArray(s.visible_to)?s.visible_to.includes("all")?"all":"admin":s.visible_to||"admin",e}):[]},pickCustomMenuLabel(t,s=""){return typeof t=="string"?t||s:$A.isJson(t)&&(t.zh||t.en)||s},addCustomMenu(){const t=m();this.customMicroMenus.push(t),this.customMicroCollapsed=t.uid},duplicateCustomMenu(t){const s=this.customMicroMenus[t];if(!s)return;const a=$A.cloneJSON(s);a.uid=m().uid,a.id=a.id?`${a.id}_copy`:"",a.name=a.name?`${a.name} copy`:"",a.menu.label=a.menu.label?`${a.menu.label} copy`:"",this.customMicroMenus.splice(t+1,0,a),this.customMicroCollapsed=a.uid},removeCustomMenu(t){this.customMicroMenus.splice(t,1)},saveCustomMenus(){if(this.customMicroSaving)return;const t=[];for(const s of this.customMicroMenus){const a=this.formatCustomMenuForSave(s);if(!a){$A.modalWarning({title:"\u63D0\u793A",content:"\u8BF7\u4E3A\u6BCF\u4E2A\u83DC\u5355\u586B\u5199\u5E94\u7528ID\u3001\u83DC\u5355\u6807\u9898\u548C\u6709\u6548\u7684 URL\u3002"});return}t.push(a)}this.customMicroSaving=!0,this.$store.dispatch("call",{url:"system/microapp_menu?type=save",method:"post",data:{list:t}}).then(s=>{$A.messageSuccess("\u4FDD\u5B58\u6210\u529F"),this.$store.dispatch("updateMicroAppsStatus")}).catch(({msg:s})=>{s&&$A.modalError(s)}).finally(()=>{this.customMicroSaving=!1})},formatCustomMenuForSave(t){const s=(t.id||"").trim(),a=(t.menu.url||"").trim(),e=(t.menu.label||t.name||t.id||"").trim();return!s||!a||!e?null:{id:s,name:(t.name||"").trim(),version:t.version||"custom",visible_to:t.menu.visible_to||"admin",menu_items:[Object.assign({},t.menu,{url:a,label:e})]}},currentCards(t){return this.sortingMode?this.sortLists[t]||[]:this.getDisplayItems(t)},getDisplayItems(t){return t==="admin"?this.adminAppItems:this.baseAppItems},collectAppItems(t){const s=[];return(t==="admin"?this.filterMicroAppsMenusAdmin:this.filterMicroAppsMenus).forEach(e=>{!e||e.show===!1||s.push(this.createMicroCard(e,t))}),this.applyList.forEach(e=>{if(e.show===!1)return;const i=e.type==="admin";if(t==="admin"){if(!i)return}else if(i)return;s.push(this.createSystemCard(e,t))}),s},createMicroCard(t,s){const a=(t==null?void 0:t.id)||(t==null?void 0:t.value)||(t==null?void 0:t.url)||(t==null?void 0:t.label)||"unknown";return{sortKey:`micro:${(t==null?void 0:t.name)||a}`,category:"micro",group:s,micro:t}},createSystemCard(t,s){return{sortKey:`system:${t.value}`,category:"system",group:s,system:t}},applySavedSort(t,s){const a=this.appSorts[s]||[];if(!a.length)return t;const e={};t.forEach(o=>{e[o.sortKey]=o});const i=[];return a.forEach(o=>{e[o]&&(i.push(e[o]),delete e[o])}),t.forEach(o=>{e[o.sortKey]&&(i.push(o),delete e[o.sortKey])}),i},async enterSortMode(){this.sortingMode||(!this.appSortLoaded&&!this.appSortLoading&&await this.fetchAppSorts(),this.sortingMode=!0)},exitSortMode(){this.sortingMode=!1},bootstrapSortLists(){const t=this.cloneAppItems(this.baseAppItems),s=this.cloneAppItems(this.adminAppItems);this.$set(this.sortLists,"base",t),this.$set(this.sortLists,"admin",s),this.$set(this.sortInitialLists,"base",t.map(a=>a.sortKey)),this.$set(this.sortInitialLists,"admin",s.map(a=>a.sortKey))},resetSortState(){this.$set(this.sortLists,"base",[]),this.$set(this.sortLists,"admin",[]),this.$set(this.sortInitialLists,"base",[]),this.$set(this.sortInitialLists,"admin",[])},mergeSortListWithSource(t){const s=this.cloneAppItems(this.getDisplayItems(t));if(!s.length){this.$set(this.sortLists,t,[]),this.$set(this.sortInitialLists,t,[]);return}const a=new Map(s.map(o=>[o.sortKey,o])),e=[];(this.sortLists[t]||[]).forEach(o=>{a.has(o.sortKey)&&(e.push(a.get(o.sortKey)),a.delete(o.sortKey))}),a.forEach(o=>e.push(o)),this.$set(this.sortLists,t,this.cloneAppItems(e));const i=this.sortInitialLists[t]?[...this.sortInitialLists[t]]:[];e.forEach(o=>{i.includes(o.sortKey)||i.push(o.sortKey)}),this.$set(this.sortInitialLists,t,i)},cloneAppItems(t=[]){return t.map(s=>Object.assign({},s))},getDraggableOptions(t){return{animation:200,draggable:".apply-col-wrapper",group:{name:`${t}-apps`,pull:!1,put:!1}}},async fetchAppSorts(){if(!this.appSortLoading){this.appSortLoading=!0;try{const{data:t}=await this.$store.dispatch("call",{url:"users/appsort",method:"get"});this.appSorts=this.normalizeSortPayload(t==null?void 0:t.sorts)}catch(t){console.warn((t==null?void 0:t.msg)||t)}finally{this.appSortLoading=!1,this.appSortLoaded=!0}}},normalizeSortPayload(t){const s={base:[],admin:[]};return!t||typeof t!="object"||["base","admin"].forEach(a=>{const e=Array.isArray(t[a])?t[a]:[];s[a]=e.filter(i=>typeof i=="string").map(i=>i.trim()).filter(i=>i.length>0)}),s},submitSort(){if(!this.sortHasChanges){this.exitSortMode();return}const t=this.buildSortPayload();this.appSortSaving=!0,this.$store.dispatch("call",{url:"users/appsort/save",method:"post",data:{sorts:t}}).then(({data:s,msg:a})=>{this.appSorts=this.normalizeSortPayload((s==null?void 0:s.sorts)||t),this.exitSortMode(),$A.messageSuccess(a||"\u4FDD\u5B58\u6210\u529F")}).catch(({msg:s})=>{$A.modalError(s||"\u4FDD\u5B58\u5931\u8D25")}).finally(()=>{this.appSortSaving=!1})},restoreDefaultSort(){!this.sortingMode||["base","admin"].forEach(t=>{this.$set(this.sortLists,t,this.cloneAppItems(this.collectAppItems(t)))})},buildSortPayload(){const t={base:[],admin:[]};return["base","admin"].forEach(s=>{const a=(this.sortLists[s]||[]).map(i=>i.sortKey),e=this.getDefaultSortKeys(s);t[s]=this.arraysEqual(a,e)?[]:a}),t},getDefaultSortKeys(t){return this.collectAppItems(t).map(s=>s.sortKey)},arraysEqual(t=[],s=[]){return t.length!==s.length?!1:t.every((a,e)=>a===s[e])},handleCardClick(t,s=""){if(!this.sortingMode&&!!t){if(t.category==="micro"){this.applyClick({value:"microApp"},t.micro);return}this.applyClick(t.system,s)}},openExportMenu({currentTarget:t}={}){if(this.sortingMode)return;t&&typeof t.stopPropagation=="function"&&t.stopPropagation();const s=t&&t.target?t.target:t,a=t&&t.target?t:s?{target:s}:t,e=[{label:this.$L("\u5BFC\u51FA\u4EFB\u52A1\u7EDF\u8BA1"),value:"task"},{label:this.$L("\u5BFC\u51FA\u8D85\u671F\u4EFB\u52A1"),value:"overdue"}];this.systemFunctionEnabled("checkin")&&e.push({label:this.$L("\u5BFC\u51FA\u7B7E\u5230\u6570\u636E"),value:"checkin"}),this.$store.commit("menu/operation",{event:a,list:e,size:"large",onUpdate:i=>{i&&this.handleExport(i)}})},normalizeWebhookEvents(t=[],s=!1){Array.isArray(t)||(t=t?[t]:[]);const a=this.webhookEventOptions.map(i=>i.value),e=t.filter(i=>a.includes(i));return e.length?Array.from(new Set(e)):[]},enhanceMybotItem(t={}){const s=$A.cloneJSON(t||{});let a=s.webhook_events;return(typeof a=="undefined"||a===null)&&(a=[]),a=this.normalizeWebhookEvents(a,!1),a.length||(a=[]),s.webhook_events=a,s},formatWebhookEvents(t){const s=this.normalizeWebhookEvents(t,!1),a=this.webhookEventOptions.filter(e=>s.includes(e.value)).map(e=>this.$L(e.label));return a.length?a.join("\u3001"):"-"},getLogoClass(t){return t=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),t},showBadge(t,s){let a=0;switch(s){case"report":a=this.reportUnreadNumber;break}return t.value==s&&a>0},microBadge(t){return this.$store.getters["appBadges/badge"](t&&t.id,t&&t.key)},applyClick(t,s=""){switch(t.value){case"calendar":case"file":case"setting":this.goForward({name:"manage-"+t.value});break;case"report":l.emit("openReport",s=="badge"?"receive":"my");break;case"favorite":l.emit("openFavorite");break;case"recent":l.emit("openRecent");break;case"mybot":this.getMybot(),this.mybotShow=!0;break;case"mybot-chat":this.chatMybot(s.id);break;case"mybot-add":this.addMybot(s);break;case"mybot-del":this.delMybot(s);break;case"signin":this.signInShow=!0;break;case"meeting":this.meetingShow=!0;break;case"ldap":this.ldapShow=!0;break;case"mail":this.mailShow=!0;break;case"appPush":this.appPushShow=!0;break;case"scan":$A.eeuiAppScan(this.scanResult);break;case"word-chain":case"vote":this.sendData=[],this.sendType=t.value,this.$refs.wordChainAndVoteRef.onSelection();break}this.$emit("on-click",t.value,s)},handleExport(t){l.emit("openManageExport",t)},getMybot(){this.mybotLoad++,this.$store.dispatch("call",{url:"users/bot/list"}).then(({data:t})=>{this.mybotList=(t.list||[]).map(s=>this.enhanceMybotItem(s))}).finally(t=>{this.mybotLoad--})},chatMybot(t){this.$store.dispatch("openDialogUserid",t).catch(({msg:s})=>{$A.modalError(s||"\u6253\u5F00\u4F1A\u8BDD\u5931\u8D25")})},addMybot(t){this.mybotModifyData=this.enhanceMybotItem(t),this.mybotModifyShow=!0},delMybot(t){$A.modalInput({title:`\u5220\u9664\u673A\u5668\u4EBA\uFF1A${t.name}`,placeholder:"\u8BF7\u8F93\u5165\u5907\u6CE8\u539F\u56E0",okText:"\u5220\u9664",okType:"error",onOk:s=>s?new Promise((a,e)=>{this.$store.dispatch("call",{url:"users/bot/delete",data:{id:t.id,remark:s}}).then(({msg:i})=>{const o=this.mybotList.findIndex(r=>r.id===t.id);o>-1&&this.mybotList.splice(o,1),$A.messageSuccess(i),a()}).catch(({msg:i})=>{e(i)})}):"\u8BF7\u8F93\u5165\u5907\u6CE8\u539F\u56E0"})},onMybotModify(){this.mybotModifyLoad++,this.$store.dispatch("editUserBot",this.mybotModifyData).then(({data:t,msg:s})=>{const a=this.enhanceMybotItem(t),e=this.mybotList.findIndex(i=>i.id===a.id);e>-1?this.mybotList.splice(e,1,a):this.mybotList.unshift(a),this.mybotModifyShow=!1,this.mybotModifyData={},$A.messageSuccess(s)}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.mybotModifyLoad--})},onMeeting(t){switch(t){case"createMeeting":l.emit("addMeeting",{type:"create",userids:[this.userId]});break;case"joinMeeting":l.emit("addMeeting",{type:"join"});break}},scanResult(t){const s=(t+"").match(/^https?:\/\/(.*?)\/login\?qrcode=(.*?)$/);if(s){if($A.getDomain(t)!=$A.mainDomain()){let a=this.$L("\u8BF7\u786E\u8BA4\u626B\u7801\u7684\u670D\u52A1\u5668\u4E0E\u5F53\u524D\u670D\u52A1\u5668\u4E00\u81F4");a+=` ${this.$L("\u4E8C\u7EF4\u7801\u670D\u52A1\u5668")}: ${$A.getDomain(t)}`,a+=` ${this.$L("\u5F53\u524D\u670D\u52A1\u5668")}: ${$A.mainDomain()}`,$A.modalWarning({language:!1,title:this.$L("\u626B\u7801\u767B\u5F55"),content:a});return}this.scanLoginCode=s[2],this.scanLoginShow=!0;return}/^https?:\/\//i.test(t)?this.$store.dispatch("openAppChildPage",{pageType:"app",pageTitle:" ",url:"web.js",params:{url:t}}):$A.modalInfo({title:"\u626B\u63CF\u7ED3\u679C",content:t,width:400})},scanLoginSubmit(){this.scanLoginLoad!==!0&&(this.scanLoginLoad=!0,this.$store.dispatch("call",{url:"users/login/qrcode",data:{type:"login",code:this.scanLoginCode}}).then(({msg:t})=>{this.scanLoginShow=!1,$A.messageSuccess(t)}).catch(({msg:t})=>{$A.messageError(t)}).finally(t=>{this.scanLoginLoad=!1}))},openDetail(t){$A.modalInfo({content:t})},goWordChainAndVote(){return new Promise((t,s)=>{if(this.sendData.length===0){$A.messageError("\u8BF7\u9009\u62E9\u5BF9\u8BDD\u6216\u6210\u5458"),s();return}const a=Number(this.sendData[0].replace("d:",""));this.$store.dispatch("openDialog",a).then(async()=>{await new Promise(e=>setTimeout(e,300)),requestAnimationFrame(e=>{const i=this.sendType=="word-chain"?"dialogDroupWordChain":"dialogGroupVote";this.$store.state[i]={type:"create",dialog_id:a}})}),t()})}}},v={};var ut=n(dt,mt,pt,!1,_t,null,null,null);function _t(t){for(let s in v)this[s]=v[s]}var ha=function(){return ut.exports}();export{ha as default};
diff --git a/public/js/build/apps.fae1581f.js b/public/js/build/apps.cb5fb384.js
similarity index 86%
rename from public/js/build/apps.fae1581f.js
rename to public/js/build/apps.cb5fb384.js
index 8c382bf9b..0560a6ade 100644
--- a/public/js/build/apps.fae1581f.js
+++ b/public/js/build/apps.cb5fb384.js
@@ -1 +1 @@
-import{m}from"./vuex.cc7cb26e.js";import{M as e}from"./index.a1e57906.js";import{n as a}from"./app.818b057c.js";import"./vue.adba9046.js";import"./@babel.9410f858.js";import"./view-design-hi.24419422.js";import"./@micro-zoe.39406924.js";import"./DialogWrapper.21630cce.js";import"./chunkedUpload.a9ef725e.js";import"./axios.37c7f908.js";import"./spark-md5.0443325f.js";import"./index.ab4b7604.js";import"./vue-virtual-scroll-list-hi.74ad83f0.js";import"./lodash.8fcd6fd4.js";import"./ImgUpload.a99f26bd.js";import"./webhook.378987f3.js";import"./jquery.c87f487f.js";import"./dayjs.fd4aa75c.js";import"./localforage.8de7c27e.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./openpgp_hi.15f91b1d.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./html-to-md.f297036e.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vuedraggable.f464b992.js";import"./sortablejs.3488b922.js";import"./vue-resize-observer.5af23a43.js";import"./element-sea.f8a64907.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var n=function(){var t=this,o=t.$createElement,r=t._self._c||o;return r("MicroApps",{ref:"app",attrs:{"window-type":"popout"}})},s=[];const u={components:{MicroApps:e},computed:{...m(["userIsAdmin"])},async mounted(){const{name:t}=this.$route.params;if(!t){$A.modalError("\u5E94\u7528\u4E0D\u5B58\u5728");return}if(t==="iframe-test"){if(!this.userIsAdmin){$A.modalError("\u4EC5\u7BA1\u7406\u5458\u53EF\u4F7F\u7528\u6B64\u529F\u80FD");return}let{url:r}=this.$route.query;if(!r){if(r=await this.promptIframeUrl(),!r)return;this.$router.replace({path:this.$route.path,query:{...this.$route.query,url:r}}).catch(()=>{})}await this.$refs.app.onOpen({id:"iframe-test",name:"iframe-test",url:r,type:"iframe",transparent:!0,keep_alive:!1});return}const o=(await $A.IDBArray("cacheMicroApps")).reverse().find(r=>r.name===t);if(!o){$A.modalError("\u5E94\u7528\u4E0D\u5B58\u5728");return}await this.$refs.app.onOpen(o)},methods:{promptIframeUrl(){return new Promise((t,o)=>{$A.modalInput({title:this.$L("\u8BF7\u8F93\u5165 URL"),placeholder:"https://example.com",onOk:r=>{const i=(r||"").trim();if(!i)return this.$L("URL\u4E0D\u80FD\u4E3A\u7A7A");t(i)},onCancel:()=>o()})}).catch(()=>null)}}},p={};var c=a(u,n,s,!1,l,null,null,null);function l(t){for(let o in p)this[o]=p[o]}var hr=function(){return c.exports}();export{hr as default};
+import{m}from"./vuex.cc7cb26e.js";import{M as e}from"./index.eb447f83.js";import{n as a}from"./app.ef7047f7.js";import"./vue.adba9046.js";import"./@babel.9410f858.js";import"./view-design-hi.24419422.js";import"./@micro-zoe.39406924.js";import"./DialogWrapper.bc988036.js";import"./chunkedUpload.3cd238b0.js";import"./axios.37c7f908.js";import"./spark-md5.0443325f.js";import"./index.f7653997.js";import"./vue-virtual-scroll-list-hi.74ad83f0.js";import"./lodash.8fcd6fd4.js";import"./ImgUpload.434d067a.js";import"./webhook.378987f3.js";import"./jquery.6e4daff9.js";import"./dayjs.d20a4841.js";import"./localforage.743dffdd.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./openpgp_hi.15f91b1d.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./html-to-md.f297036e.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vuedraggable.f464b992.js";import"./sortablejs.3488b922.js";import"./vue-resize-observer.5af23a43.js";import"./element-sea.f8a64907.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var n=function(){var t=this,o=t.$createElement,r=t._self._c||o;return r("MicroApps",{ref:"app",attrs:{"window-type":"popout"}})},s=[];const u={components:{MicroApps:e},computed:{...m(["userIsAdmin"])},async mounted(){const{name:t}=this.$route.params;if(!t){$A.modalError("\u5E94\u7528\u4E0D\u5B58\u5728");return}if(t==="iframe-test"){if(!this.userIsAdmin){$A.modalError("\u4EC5\u7BA1\u7406\u5458\u53EF\u4F7F\u7528\u6B64\u529F\u80FD");return}let{url:r}=this.$route.query;if(!r){if(r=await this.promptIframeUrl(),!r)return;this.$router.replace({path:this.$route.path,query:{...this.$route.query,url:r}}).catch(()=>{})}await this.$refs.app.onOpen({id:"iframe-test",name:"iframe-test",url:r,type:"iframe",transparent:!0,keep_alive:!1});return}const o=(await $A.IDBArray("cacheMicroApps")).reverse().find(r=>r.name===t);if(!o){$A.modalError("\u5E94\u7528\u4E0D\u5B58\u5728");return}await this.$refs.app.onOpen(o)},methods:{promptIframeUrl(){return new Promise((t,o)=>{$A.modalInput({title:this.$L("\u8BF7\u8F93\u5165 URL"),placeholder:"https://example.com",onOk:r=>{const i=(r||"").trim();if(!i)return this.$L("URL\u4E0D\u80FD\u4E3A\u7A7A");t(i)},onCancel:()=>o()})}).catch(()=>null)}}},p={};var c=a(u,n,s,!1,l,null,null,null);function l(t){for(let o in p)this[o]=p[o]}var hr=function(){return c.exports}();export{hr as default};
diff --git a/public/js/build/assistant.ca9deae7.js b/public/js/build/assistant.ca9deae7.js
deleted file mode 100644
index ae9134c7e..000000000
--- a/public/js/build/assistant.ca9deae7.js
+++ /dev/null
@@ -1 +0,0 @@
-import{m as s}from"./vuex.cc7cb26e.js";import{r as e,u as m,e as n,n as l}from"./app.818b057c.js";import"./jquery.c87f487f.js";import"./@babel.9410f858.js";import"./dayjs.fd4aa75c.js";import"./localforage.8de7c27e.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./vue.adba9046.js";import"./openpgp_hi.15f91b1d.js";import"./axios.37c7f908.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./view-design-hi.24419422.js";import"./html-to-md.f297036e.js";import"./lodash.8fcd6fd4.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vuedraggable.f464b992.js";import"./sortablejs.3488b922.js";import"./vue-resize-observer.5af23a43.js";import"./element-sea.f8a64907.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var p=function(){var t=this,i=t.$createElement,o=t._self._c||i;return o("div",{staticClass:"setting-item submit"},[o("Form",t._b({ref:"formData",attrs:{model:t.formData},nativeOn:{submit:function(r){r.preventDefault()}}},"Form",t.formOptions,!1),[o("FormItem",{attrs:{label:t.$L("\u663E\u793A\u60AC\u6D6E\u6309\u94AE")}},[o("iSwitch",{attrs:{disabled:t.loading},model:{value:t.formData.floatButtonVisible,callback:function(r){t.$set(t.formData,"floatButtonVisible",r)},expression:"formData.floatButtonVisible"}})],1)],1),o("div",{staticClass:"setting-footer"},[o("Button",{attrs:{loading:t.loadIng>0,disabled:t.loading,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),o("Button",{attrs:{loading:t.loadIng>0,disabled:t.loading},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},u=[];const d={data(){return{loadIng:0,loading:!0,formData:{floatButtonVisible:!0}}},computed:{...s(["userId","formOptions"])},mounted(){this.loadPreference()},methods:{async loadPreference(){try{this.$set(this.formData,"floatButtonVisible",await e(this.userId)),this.formData_bak=$A.cloneJSON(this.formData)}finally{this.loading=!1}},async submitForm(){const t=this.formData.floatButtonVisible;this.loadIng++;try{await m(this.userId,t),n.emit("aiAssistantFloatButtonVisibilityChanged",{userId:this.userId,visible:t}),$A.messageSuccess("\u4FDD\u5B58\u6210\u529F")}catch(i){$A.modalError(i.message)}finally{this.loadIng--}},resetForm(){this.formData=$A.cloneJSON(this.formData_bak)}}},a={};var f=l(d,p,u,!1,c,null,null,null);function c(t){for(let i in a)this[i]=a[i]}var mt=function(){return f.exports}();export{mt as default};
diff --git a/public/js/build/calendar.d868375d.js b/public/js/build/calendar.9858cdd5.js
similarity index 98%
rename from public/js/build/calendar.d868375d.js
rename to public/js/build/calendar.9858cdd5.js
index e7cf815d6..a463c47b0 100644
--- a/public/js/build/calendar.d868375d.js
+++ b/public/js/build/calendar.9858cdd5.js
@@ -1 +1 @@
-import{C as u}from"./tui-calendar-hi.8947f8cc.js";import{n as h,p as f,e as y}from"./app.818b057c.js";import{m as g,a as w}from"./vuex.cc7cb26e.js";import"./tui-date-picker.6a34ee03.js";import"./@babel.9410f858.js";import"./tui-time-picker.1ebb7768.js";import"./jquery.c87f487f.js";import"./dayjs.fd4aa75c.js";import"./localforage.8de7c27e.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./vue.adba9046.js";import"./openpgp_hi.15f91b1d.js";import"./axios.37c7f908.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./view-design-hi.24419422.js";import"./html-to-md.f297036e.js";import"./lodash.8fcd6fd4.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vuedraggable.f464b992.js";import"./sortablejs.3488b922.js";import"./vue-resize-observer.5af23a43.js";import"./element-sea.f8a64907.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var v=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{ref:"container",staticClass:"calendar-wrapper"})},k=[];const _={name:"Calendar",props:{view:String,useFormPopup:{type:Boolean,default:()=>{}},useDetailPopup:{type:Boolean,default:()=>{}},isReadOnly:{type:Boolean,default:()=>{}},usageStatistics:{type:Boolean,default:()=>{}},eventFilter:Function,week:Object,month:Object,gridSelection:{type:[Object,Boolean],default:()=>{}},timezone:Object,theme:Object,template:Object,calendars:Array,events:Array},data(){return{calendarInstance:null}},watch:{view(e){this.calendarInstance.changeView(e)},useFormPopup(e){this.calendarInstance.setOptions({useFormPopup:e})},useDetailPopup(e){this.calendarInstance.setOptions({useDetailPopup:e})},isReadOnly(e){this.calendarInstance.setOptions({isReadOnly:e})},eventFilter(e){this.calendarInstance.setOptions({eventFilter:e})},week(e){this.calendarInstance.setOptions({week:e})},month(e){this.calendarInstance.setOptions({month:e})},gridSelection(e){this.calendarInstance.setOptions({gridSelection:e})},timezone(e){this.calendarInstance.setOptions({timezone:e})},theme(e){this.calendarInstance.setTheme(e)},template(e){this.calendarInstance.setOptions({template:e})},calendars(e){this.calendarInstance.setCalendars(e)},events(e){this.calendarInstance.clear(),this.calendarInstance.createEvents(e)}},mounted(){this.calendarInstance=new u(this.$refs.container,{defaultView:this.view,useFormPopup:this.useFormPopup,useDetailPopup:this.useDetailPopup,isReadOnly:this.isReadOnly,usageStatistics:this.usageStatistics,eventFilter:this.eventFilter,week:this.week,month:this.month,gridSelection:this.gridSelection,timezone:this.timezone,theme:this.theme,template:this.template,calendars:this.calendars}),this.addEventListeners(),this.calendarInstance.createEvents(this.events)},beforeDestroy(){this.calendarInstance.off(),this.calendarInstance.destroy()},methods:{addEventListeners(){Object.keys(this.$listeners).forEach(e=>{this.calendarInstance.on(e,(...a)=>this.$emit(e,...a))})},getRootElement(){return this.$refs.container},getInstance(){return this.calendarInstance}}},m={};var $=h(_,v,k,!1,b,null,null,null);function b(e){for(let a in m)this[a]=m[a]}var T=function(){return $.exports}();const D={common:{border:"1px solid #f4f5f5",backgroundColor:"white",holiday:{color:"#f54f3d"},saturday:{color:"#84c56a"},dayName:{color:"#606266"},today:{color:"#fff"},gridSelection:{backgroundColor:"rgba(132, 197, 106, 0.1)",border:"1px solid #84c56a"}},month:{dayName:{borderLeft:"none",backgroundColor:"inherit"},holidayExceptThisMonth:{color:"#f3acac"},dayExceptThisMonth:{color:"#bbb"},weekend:{backgroundColor:"#fafafa"},moreView:{boxShadow:"none"},moreViewTitle:{backgroundColor:"#f4f4f4"}},week:{dayName:{borderTop:"none",borderBottom:"none",borderLeft:"1px solid #f4f5f5",backgroundColor:"inherit"},today:{color:"#303133",backgroundColor:"inherit"},pastDay:{color:"#999"},panelResizer:{border:"1px solid #f4f5f5"},dayGrid:{borderRight:"1px solid #f4f5f5"},dayGridLeft:{width:"100px",backgroundColor:"",borderRight:"1px solid #f4f5f5"},weekend:{backgroundColor:"inherit"},timeGridLeft:{width:"100px",backgroundColor:"#fafafa",borderRight:"1px solid #f4f5f5"},timeGridLeftAdditionalTimezone:{backgroundColor:"#fdfdfd"},timeGridHourLine:{borderBottom:"1px solid #eee"},timeGridHalfHourLine:{borderBottom:"1px dotted #f9f9f9"},timeGrid:{borderRight:"1px solid #f4f5f5"},nowIndicatorLabel:{color:"#84c56a"},nowIndicatorPast:{border:"1px solid rgba(132, 197, 106, 0.3)"},nowIndicatorBullet:{backgroundColor:"#84c56a"},nowIndicatorToday:{border:"1px solid #84c56a"},nowIndicatorFuture:{border:"1px solid #84c56a"},pastTime:{color:"#999"},futureTime:{color:"#606266"},gridSelection:{color:"#84c56a"}}};var C=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"page-calendar"},[t("PageTitle",{attrs:{title:e.$L("\u65E5\u5386")}}),t("div",{staticClass:"calendar-head"},[t("div",{staticClass:"calendar-titbox"},[t("div",{staticClass:"calendar-title"},[t("div",{staticClass:"common-nav-back portrait",on:{click:function(n){return e.goForward({name:"manage-application"},!0)}}},[t("i",{staticClass:"taskfont"},[e._v("\uE676")])]),t("h1",[e._v(e._s(e.rangeText))])]),t("div",{staticClass:"calendar-nav"},[t("ButtonGroup",{staticClass:"calendar-arrow",attrs:{size:"small"}},[t("Button",{on:{click:function(n){return e.onMove(-1)}}},[t("Icon",{attrs:{type:"ios-arrow-back"}})],1),t("Button",{on:{click:function(n){return e.onMove(1)}}},[t("Icon",{attrs:{type:"ios-arrow-forward"}})],1)],1),t("ButtonGroup",{staticClass:"calendar-arrow",attrs:{size:"small"}},[t("Button",{on:{click:e.onToDay}},[e._v(e._s(e.$L("\u4ECA\u5929")))])],1)],1),t("ButtonGroup",{staticClass:"calendar-view"},[t("Button",{attrs:{type:e.options.view=="day"?"primary":"default"},on:{click:function(n){return e.setView("day")}}},[e._v(e._s(e.$L("[calendar_view].\u65E5")))]),t("Button",{attrs:{type:e.options.view=="week"?"primary":"default"},on:{click:function(n){return e.setView("week")}}},[e._v(e._s(e.$L("[calendar_view].\u5468")))]),t("Button",{attrs:{type:e.options.view=="month"?"primary":"default"},on:{click:function(n){return e.setView("month")}}},[e._v(e._s(e.$L("[calendar_view].\u6708")))])],1)],1)]),t("div",{staticClass:"calendar-box"},[t("Calendar",{ref:"calendar",attrs:{view:e.options.view,week:e.options.week,month:e.options.month,theme:e.options.theme,template:e.options.template,events:e.events,"is-read-only":e.windowTouch},on:{selectDateTime:e.onSelectDateTime,beforeUpdateEvent:e.onBeforeUpdateEvent,clickDayName:e.onClickDayName,clickEvent:e.onClickEvent}})],1)],1)},Y=[];const I={components:{Calendar:T},data(){return{lists:[],rangeText:"Calendar",rangeTime:[],loadIng:0,loadTimer:null,options:{view:"month",week:{showTimezoneCollapseButton:!0,timezonesCollapsed:!1,eventView:!0,taskView:!1},month:{startDayOfWeek:0},theme:D,template:{allday:this.getTemplateForGeneral,time:this.getTemplateForGeneral}}}},created(){f([{key:"{\u65E5}",zh:"\u65E5",general:"Sun"},{key:"{\u4E00}",zh:"\u4E00",general:"Mon"},{key:"{\u4E8C}",zh:"\u4E8C",general:"Tue"},{key:"{\u4E09}",zh:"\u4E09",general:"Wed"},{key:"{\u56DB}",zh:"\u56DB",general:"Thu"},{key:"{\u4E94}",zh:"\u4E94",general:"Fri"},{key:"{\u516D}",zh:"\u516D",general:"Sat"}]);const e=["{\u65E5}","{\u4E00}","{\u4E8C}","{\u4E09}","{\u56DB}","{\u4E94}","{\u516D}"].map(a=>this.$L(a));this.options.week.dayNames=e,this.options.month.dayNames=e,this.options.view=this.$store.state.cacheCalendarView||this.options.view,this.windowWidth<600&&(this.options.template.monthGridHeaderExceed=a=>`+${a} `)},activated(){this.setDateRangeText()},deactivated(){this.$store.dispatch("forgetTaskCompleteTemp",!0)},computed:{...g(["cacheTasks","taskCompleteTemps","wsOpenNum","themeName"]),...w(["transforTasks"]),calendar(){return this.$refs.calendar.getInstance()},events({cacheTasks:e,taskCompleteTemps:a}){const t=(r,o=!0)=>r.archived_at||r.complete_at&&o===!0||!r.end_at?!1:r.owner==1;let n=e.filter(r=>t(r));if(a.length>0){let r=e.filter(o=>a.includes(o.id)&&t(o,!1));r.length>0&&(n=$A.cloneJSON(n),n.push(...r))}const s=$A.dayjs().startOf("day").add(1,"second"),d=$A.dayjs().endOf("day").subtract(1,"second");return this.transforTasks(n).map(r=>{const o=$A.dayjs(r.start_at),l=$A.dayjs(r.end_at),c=o.isBefore(s)&&l.isAfter(d),i={id:r.id,calendarId:String(r.project_id),title:r.name,body:r.desc,isAllday:c,category:c?"allday":"time",start:o,end:l,color:"#515a6e",backgroundColor:r.color||"#E3EAFD",borderColor:r.p_color,raw:r};return r.complete_at?(i.color="#c3c2c2",i.backgroundColor="#f3f3f3",i.borderColor="#e3e3e3"):r.overdue&&(i.color="#f56c6c",i.backgroundColor=r.color||"#fef0f0"),i.borderColor||(i.borderColor=i.backgroundColor),i})}},watch:{rangeTime(e){this.getTask(e)},wsOpenNum(e){e<=1||(this.wsTimer&&clearTimeout(this.wsTimer),this.wsTimer=setTimeout(()=>{this.routeName=="manage-calendar"&&this.setDateRangeText()},5e3))}},methods:{getTask(e){if(this.loadIng>0){this.loadTimer&&clearTimeout(this.loadTimer),this.loadTimer=setTimeout(()=>this.getTask(e),100);return}this.loadIng++,this.$store.dispatch("getTasks",{time:e}).finally(a=>{this.loadIng--})},getTemplateForGeneral({title:e,raw:a}){return a.sub_my&&a.sub_my.length>0&&(e=`[+${a.sub_my.length}] ${e}`),a.sub_top===!0&&(e=`[${this.$L("\u5B50\u4EFB\u52A1")}] ${e}`),a.flow_item_name&&(e=`[${a.flow_item_name}] ${e}`),a.overdue&&(e=`[${this.$L("\u8D85\u671F")}] ${e}`),e},async onSelectDateTime({start:e,end:a}){const t=[$A.dayjs(e),$A.dayjs(a)];this.options.view=="month"&&(t[0]=t[0].startOf("day"),t[1]=t[1].startOf("day"));const n=await this.$store.dispatch("taskDefaultTime",$A.newDateString(t,"YYYY-MM-DD HH:mm"));y.emit("addTask",{times:n,owner:[this.userId],beforeClose:()=>this.calendar.clearGridSelections()})},onBeforeUpdateEvent({changes:e,event:a}){if(!e.start&&!e.end)return;const t=this.cacheTasks.find(({id:o})=>o===a.id);if(!t)return;const n=$A.dayjs(e.start||t.start_at),s=$A.dayjs(e.end||t.end_at),d=$A.dayjs(t.start_at),r=$A.dayjs(t.end_at);n.isSame(d,"minute")&&s.isSame(r,"minute")||(this.calendar.updateEvent(a.id,a.calendarId,{...e}),this.$store.dispatch("taskUpdate",{task_id:t.id,times:$A.newDateString([n,s],"YYYY-MM-DD HH:mm")}).then(({msg:o})=>{$A.messageSuccess(o)}).catch(({msg:o})=>{$A.modalError({content:o,onOk:l=>{this.calendar.updateEvent(a.id,a.calendarId,{start:d,end:r})}})}))},onClickDayName(e){this.onSelectDateTime({start:$A.newDateString(e.date,"YYYY-MM-DD 00:00"),end:$A.newDateString(e.date,"YYYY-MM-DD 23:59")})},onClickEvent({event:e}){this.$store.dispatch("openTask",e.raw)},onMove(e){this.calendar.move(e),this.setDateRangeText()},onToDay(){this.calendar.today(),this.setDateRangeText()},setView(e){this.options.view=e,this.calendar.changeView(e),this.setDateRangeText(),$A.IDBSave("cacheCalendarView",this.$store.state.cacheCalendarView=e)},setDateRangeText(){const e=this.calendar.getDate(),a=this.calendar.getDateRangeStart(),t=this.calendar.getDateRangeEnd();switch(this.calendar.getViewName()){case"month":this.rangeText=$A.dayjs(e).format("YYYY.MM");break;case"day":this.rangeText=$A.dayjs(e).format("YYYY.MM.DD");break;default:const n=a.getFullYear(),s=t.getFullYear();n!==s?this.rangeText=$A.dayjs(a).format("YYYY.MM.DD")+" ~ "+$A.dayjs(t).format("YYYY.MM.DD"):this.rangeText=$A.dayjs(a).format("YYYY.MM.DD")+" ~ "+$A.dayjs(t).format("MM.DD");break}this.rangeTime=[$A.dayjs(a).format("YYYY-MM-DD"),$A.dayjs(t).format("YYYY-MM-DD")]}}},p={};var x=h(I,C,Y,!1,S,null,null,null);function S(e){for(let a in p)this[a]=p[a]}var Ce=function(){return x.exports}();export{Ce as default};
+import{C as u}from"./tui-calendar-hi.8947f8cc.js";import{n as h,p as f,e as y}from"./app.ef7047f7.js";import{m as g,a as w}from"./vuex.cc7cb26e.js";import"./tui-date-picker.6a34ee03.js";import"./@babel.9410f858.js";import"./tui-time-picker.1ebb7768.js";import"./jquery.6e4daff9.js";import"./dayjs.d20a4841.js";import"./localforage.743dffdd.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./vue.adba9046.js";import"./openpgp_hi.15f91b1d.js";import"./axios.37c7f908.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./view-design-hi.24419422.js";import"./html-to-md.f297036e.js";import"./lodash.8fcd6fd4.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vuedraggable.f464b992.js";import"./sortablejs.3488b922.js";import"./vue-resize-observer.5af23a43.js";import"./element-sea.f8a64907.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var v=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{ref:"container",staticClass:"calendar-wrapper"})},k=[];const _={name:"Calendar",props:{view:String,useFormPopup:{type:Boolean,default:()=>{}},useDetailPopup:{type:Boolean,default:()=>{}},isReadOnly:{type:Boolean,default:()=>{}},usageStatistics:{type:Boolean,default:()=>{}},eventFilter:Function,week:Object,month:Object,gridSelection:{type:[Object,Boolean],default:()=>{}},timezone:Object,theme:Object,template:Object,calendars:Array,events:Array},data(){return{calendarInstance:null}},watch:{view(e){this.calendarInstance.changeView(e)},useFormPopup(e){this.calendarInstance.setOptions({useFormPopup:e})},useDetailPopup(e){this.calendarInstance.setOptions({useDetailPopup:e})},isReadOnly(e){this.calendarInstance.setOptions({isReadOnly:e})},eventFilter(e){this.calendarInstance.setOptions({eventFilter:e})},week(e){this.calendarInstance.setOptions({week:e})},month(e){this.calendarInstance.setOptions({month:e})},gridSelection(e){this.calendarInstance.setOptions({gridSelection:e})},timezone(e){this.calendarInstance.setOptions({timezone:e})},theme(e){this.calendarInstance.setTheme(e)},template(e){this.calendarInstance.setOptions({template:e})},calendars(e){this.calendarInstance.setCalendars(e)},events(e){this.calendarInstance.clear(),this.calendarInstance.createEvents(e)}},mounted(){this.calendarInstance=new u(this.$refs.container,{defaultView:this.view,useFormPopup:this.useFormPopup,useDetailPopup:this.useDetailPopup,isReadOnly:this.isReadOnly,usageStatistics:this.usageStatistics,eventFilter:this.eventFilter,week:this.week,month:this.month,gridSelection:this.gridSelection,timezone:this.timezone,theme:this.theme,template:this.template,calendars:this.calendars}),this.addEventListeners(),this.calendarInstance.createEvents(this.events)},beforeDestroy(){this.calendarInstance.off(),this.calendarInstance.destroy()},methods:{addEventListeners(){Object.keys(this.$listeners).forEach(e=>{this.calendarInstance.on(e,(...a)=>this.$emit(e,...a))})},getRootElement(){return this.$refs.container},getInstance(){return this.calendarInstance}}},m={};var $=h(_,v,k,!1,b,null,null,null);function b(e){for(let a in m)this[a]=m[a]}var T=function(){return $.exports}();const D={common:{border:"1px solid #f4f5f5",backgroundColor:"white",holiday:{color:"#f54f3d"},saturday:{color:"#84c56a"},dayName:{color:"#606266"},today:{color:"#fff"},gridSelection:{backgroundColor:"rgba(132, 197, 106, 0.1)",border:"1px solid #84c56a"}},month:{dayName:{borderLeft:"none",backgroundColor:"inherit"},holidayExceptThisMonth:{color:"#f3acac"},dayExceptThisMonth:{color:"#bbb"},weekend:{backgroundColor:"#fafafa"},moreView:{boxShadow:"none"},moreViewTitle:{backgroundColor:"#f4f4f4"}},week:{dayName:{borderTop:"none",borderBottom:"none",borderLeft:"1px solid #f4f5f5",backgroundColor:"inherit"},today:{color:"#303133",backgroundColor:"inherit"},pastDay:{color:"#999"},panelResizer:{border:"1px solid #f4f5f5"},dayGrid:{borderRight:"1px solid #f4f5f5"},dayGridLeft:{width:"100px",backgroundColor:"",borderRight:"1px solid #f4f5f5"},weekend:{backgroundColor:"inherit"},timeGridLeft:{width:"100px",backgroundColor:"#fafafa",borderRight:"1px solid #f4f5f5"},timeGridLeftAdditionalTimezone:{backgroundColor:"#fdfdfd"},timeGridHourLine:{borderBottom:"1px solid #eee"},timeGridHalfHourLine:{borderBottom:"1px dotted #f9f9f9"},timeGrid:{borderRight:"1px solid #f4f5f5"},nowIndicatorLabel:{color:"#84c56a"},nowIndicatorPast:{border:"1px solid rgba(132, 197, 106, 0.3)"},nowIndicatorBullet:{backgroundColor:"#84c56a"},nowIndicatorToday:{border:"1px solid #84c56a"},nowIndicatorFuture:{border:"1px solid #84c56a"},pastTime:{color:"#999"},futureTime:{color:"#606266"},gridSelection:{color:"#84c56a"}}};var C=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"page-calendar"},[t("PageTitle",{attrs:{title:e.$L("\u65E5\u5386")}}),t("div",{staticClass:"calendar-head"},[t("div",{staticClass:"calendar-titbox"},[t("div",{staticClass:"calendar-title"},[t("div",{staticClass:"common-nav-back portrait",on:{click:function(n){return e.goForward({name:"manage-application"},!0)}}},[t("i",{staticClass:"taskfont"},[e._v("\uE676")])]),t("h1",[e._v(e._s(e.rangeText))])]),t("div",{staticClass:"calendar-nav"},[t("ButtonGroup",{staticClass:"calendar-arrow",attrs:{size:"small"}},[t("Button",{on:{click:function(n){return e.onMove(-1)}}},[t("Icon",{attrs:{type:"ios-arrow-back"}})],1),t("Button",{on:{click:function(n){return e.onMove(1)}}},[t("Icon",{attrs:{type:"ios-arrow-forward"}})],1)],1),t("ButtonGroup",{staticClass:"calendar-arrow",attrs:{size:"small"}},[t("Button",{on:{click:e.onToDay}},[e._v(e._s(e.$L("\u4ECA\u5929")))])],1)],1),t("ButtonGroup",{staticClass:"calendar-view"},[t("Button",{attrs:{type:e.options.view=="day"?"primary":"default"},on:{click:function(n){return e.setView("day")}}},[e._v(e._s(e.$L("[calendar_view].\u65E5")))]),t("Button",{attrs:{type:e.options.view=="week"?"primary":"default"},on:{click:function(n){return e.setView("week")}}},[e._v(e._s(e.$L("[calendar_view].\u5468")))]),t("Button",{attrs:{type:e.options.view=="month"?"primary":"default"},on:{click:function(n){return e.setView("month")}}},[e._v(e._s(e.$L("[calendar_view].\u6708")))])],1)],1)]),t("div",{staticClass:"calendar-box"},[t("Calendar",{ref:"calendar",attrs:{view:e.options.view,week:e.options.week,month:e.options.month,theme:e.options.theme,template:e.options.template,events:e.events,"is-read-only":e.windowTouch},on:{selectDateTime:e.onSelectDateTime,beforeUpdateEvent:e.onBeforeUpdateEvent,clickDayName:e.onClickDayName,clickEvent:e.onClickEvent}})],1)],1)},Y=[];const I={components:{Calendar:T},data(){return{lists:[],rangeText:"Calendar",rangeTime:[],loadIng:0,loadTimer:null,options:{view:"month",week:{showTimezoneCollapseButton:!0,timezonesCollapsed:!1,eventView:!0,taskView:!1},month:{startDayOfWeek:0},theme:D,template:{allday:this.getTemplateForGeneral,time:this.getTemplateForGeneral}}}},created(){f([{key:"{\u65E5}",zh:"\u65E5",general:"Sun"},{key:"{\u4E00}",zh:"\u4E00",general:"Mon"},{key:"{\u4E8C}",zh:"\u4E8C",general:"Tue"},{key:"{\u4E09}",zh:"\u4E09",general:"Wed"},{key:"{\u56DB}",zh:"\u56DB",general:"Thu"},{key:"{\u4E94}",zh:"\u4E94",general:"Fri"},{key:"{\u516D}",zh:"\u516D",general:"Sat"}]);const e=["{\u65E5}","{\u4E00}","{\u4E8C}","{\u4E09}","{\u56DB}","{\u4E94}","{\u516D}"].map(a=>this.$L(a));this.options.week.dayNames=e,this.options.month.dayNames=e,this.options.view=this.$store.state.cacheCalendarView||this.options.view,this.windowWidth<600&&(this.options.template.monthGridHeaderExceed=a=>`+${a} `)},activated(){this.setDateRangeText()},deactivated(){this.$store.dispatch("forgetTaskCompleteTemp",!0)},computed:{...g(["cacheTasks","taskCompleteTemps","wsOpenNum","themeName"]),...w(["transforTasks"]),calendar(){return this.$refs.calendar.getInstance()},events({cacheTasks:e,taskCompleteTemps:a}){const t=(r,o=!0)=>r.archived_at||r.complete_at&&o===!0||!r.end_at?!1:r.owner==1;let n=e.filter(r=>t(r));if(a.length>0){let r=e.filter(o=>a.includes(o.id)&&t(o,!1));r.length>0&&(n=$A.cloneJSON(n),n.push(...r))}const s=$A.dayjs().startOf("day").add(1,"second"),d=$A.dayjs().endOf("day").subtract(1,"second");return this.transforTasks(n).map(r=>{const o=$A.dayjs(r.start_at),l=$A.dayjs(r.end_at),c=o.isBefore(s)&&l.isAfter(d),i={id:r.id,calendarId:String(r.project_id),title:r.name,body:r.desc,isAllday:c,category:c?"allday":"time",start:o,end:l,color:"#515a6e",backgroundColor:r.color||"#E3EAFD",borderColor:r.p_color,raw:r};return r.complete_at?(i.color="#c3c2c2",i.backgroundColor="#f3f3f3",i.borderColor="#e3e3e3"):r.overdue&&(i.color="#f56c6c",i.backgroundColor=r.color||"#fef0f0"),i.borderColor||(i.borderColor=i.backgroundColor),i})}},watch:{rangeTime(e){this.getTask(e)},wsOpenNum(e){e<=1||(this.wsTimer&&clearTimeout(this.wsTimer),this.wsTimer=setTimeout(()=>{this.routeName=="manage-calendar"&&this.setDateRangeText()},5e3))}},methods:{getTask(e){if(this.loadIng>0){this.loadTimer&&clearTimeout(this.loadTimer),this.loadTimer=setTimeout(()=>this.getTask(e),100);return}this.loadIng++,this.$store.dispatch("getTasks",{time:e}).finally(a=>{this.loadIng--})},getTemplateForGeneral({title:e,raw:a}){return a.sub_my&&a.sub_my.length>0&&(e=`[+${a.sub_my.length}] ${e}`),a.sub_top===!0&&(e=`[${this.$L("\u5B50\u4EFB\u52A1")}] ${e}`),a.flow_item_name&&(e=`[${a.flow_item_name}] ${e}`),a.overdue&&(e=`[${this.$L("\u8D85\u671F")}] ${e}`),e},async onSelectDateTime({start:e,end:a}){const t=[$A.dayjs(e),$A.dayjs(a)];this.options.view=="month"&&(t[0]=t[0].startOf("day"),t[1]=t[1].startOf("day"));const n=await this.$store.dispatch("taskDefaultTime",$A.newDateString(t,"YYYY-MM-DD HH:mm"));y.emit("addTask",{times:n,owner:[this.userId],beforeClose:()=>this.calendar.clearGridSelections()})},onBeforeUpdateEvent({changes:e,event:a}){if(!e.start&&!e.end)return;const t=this.cacheTasks.find(({id:o})=>o===a.id);if(!t)return;const n=$A.dayjs(e.start||t.start_at),s=$A.dayjs(e.end||t.end_at),d=$A.dayjs(t.start_at),r=$A.dayjs(t.end_at);n.isSame(d,"minute")&&s.isSame(r,"minute")||(this.calendar.updateEvent(a.id,a.calendarId,{...e}),this.$store.dispatch("taskUpdate",{task_id:t.id,times:$A.newDateString([n,s],"YYYY-MM-DD HH:mm")}).then(({msg:o})=>{$A.messageSuccess(o)}).catch(({msg:o})=>{$A.modalError({content:o,onOk:l=>{this.calendar.updateEvent(a.id,a.calendarId,{start:d,end:r})}})}))},onClickDayName(e){this.onSelectDateTime({start:$A.newDateString(e.date,"YYYY-MM-DD 00:00"),end:$A.newDateString(e.date,"YYYY-MM-DD 23:59")})},onClickEvent({event:e}){this.$store.dispatch("openTask",e.raw)},onMove(e){this.calendar.move(e),this.setDateRangeText()},onToDay(){this.calendar.today(),this.setDateRangeText()},setView(e){this.options.view=e,this.calendar.changeView(e),this.setDateRangeText(),$A.IDBSave("cacheCalendarView",this.$store.state.cacheCalendarView=e)},setDateRangeText(){const e=this.calendar.getDate(),a=this.calendar.getDateRangeStart(),t=this.calendar.getDateRangeEnd();switch(this.calendar.getViewName()){case"month":this.rangeText=$A.dayjs(e).format("YYYY.MM");break;case"day":this.rangeText=$A.dayjs(e).format("YYYY.MM.DD");break;default:const n=a.getFullYear(),s=t.getFullYear();n!==s?this.rangeText=$A.dayjs(a).format("YYYY.MM.DD")+" ~ "+$A.dayjs(t).format("YYYY.MM.DD"):this.rangeText=$A.dayjs(a).format("YYYY.MM.DD")+" ~ "+$A.dayjs(t).format("MM.DD");break}this.rangeTime=[$A.dayjs(a).format("YYYY-MM-DD"),$A.dayjs(t).format("YYYY-MM-DD")]}}},p={};var x=h(I,C,Y,!1,S,null,null,null);function S(e){for(let a in p)this[a]=p[a]}var Ce=function(){return x.exports}();export{Ce as default};
diff --git a/public/js/build/checkin.6f76d224.js b/public/js/build/checkin.7e191bb8.js
similarity index 97%
rename from public/js/build/checkin.6f76d224.js
rename to public/js/build/checkin.7e191bb8.js
index 924beb855..d16dcbd6e 100644
--- a/public/js/build/checkin.6f76d224.js
+++ b/public/js/build/checkin.7e191bb8.js
@@ -1 +1 @@
-import{n as h}from"./app.818b057c.js";import{I as m}from"./ImgUpload.a99f26bd.js";import"./jquery.c87f487f.js";import"./@babel.9410f858.js";import"./dayjs.fd4aa75c.js";import"./localforage.8de7c27e.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./vue.adba9046.js";import"./vuex.cc7cb26e.js";import"./openpgp_hi.15f91b1d.js";import"./axios.37c7f908.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./view-design-hi.24419422.js";import"./html-to-md.f297036e.js";import"./lodash.8fcd6fd4.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vuedraggable.f464b992.js";import"./sortablejs.3488b922.js";import"./vue-resize-observer.5af23a43.js";import"./element-sea.f8a64907.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";import"./chunkedUpload.a9ef725e.js";import"./spark-md5.0443325f.js";var d=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"checkin-calendar"},[a("div",{staticClass:"calendar-header"},[a("div",{staticClass:"calendar-header-menu"},[a("Icon",{staticClass:"month-less",attrs:{type:"ios-arrow-back"},on:{click:t.prevMonth}}),a("h4",[t._v(t._s(t.$L("(*)\u5E74(*)\u6708",t.year,t.month)))]),t.hasNextMonth?a("Icon",{staticClass:"month-add",attrs:{type:"ios-arrow-forward"},on:{click:t.nextMonth}}):t._e()],1),t.hasNextMonth?a("Button",{staticClass:"calendar-header-back",attrs:{size:"small"},on:{click:t.nowMonth}},[t._v(t._s(t.$L("\u8FD4\u56DE\u672C\u6708")))]):t._e()],1),a("table",{staticClass:"check-table"},[a("thead",[a("tr",[a("th",[t._v(t._s(t.$L("[weekday].\u65E5")))]),a("th",[t._v(t._s(t.$L("[weekday].\u4E00")))]),a("th",[t._v(t._s(t.$L("[weekday].\u4E8C")))]),a("th",[t._v(t._s(t.$L("[weekday].\u4E09")))]),a("th",[t._v(t._s(t.$L("[weekday].\u56DB")))]),a("th",[t._v(t._s(t.$L("[weekday].\u4E94")))]),a("th",[t._v(t._s(t.$L("[weekday].\u516D")))])])]),a("tbody",t._l(t.dateArray,function(s){return a("tr",[t._l(s,function(i){return[i.month?a("td",{class:{today:i.today,checkin:t.isCheck(i.date)}},[a("ETooltip",{attrs:{"max-width":"auto",disabled:!t.isCheck(i.date)}},[a("div",{attrs:{slot:"content"},domProps:{innerHTML:t._s(t.getTimes(i.date))},slot:"content"}),a("div",{staticClass:"item-day"},[i.today?a("div",[t._v(t._s(t.$L("\u4ECA\u5929")))]):a("div",[t._v(t._s(i.day))]),t.isCheck(i.date)?a("div",{staticClass:"ui-state-down"},[t._v(t._s(t.$L("\u5DF2\u7B7E\u5230")))]):i.today?a("div",{staticClass:"ui-state-default"},[t._v(t._s(t.$L("\u5C1A\u672A\u7B7E\u5230")))]):t._e()])])],1):a("td",{staticClass:"disabled"},[a("div",{staticClass:"item-day"},[a("div",[t._v(t._s(i.day))]),t.isCheck(i.date)?a("div",{staticClass:"ui-state-down"},[t._v(t._s(t.$L("\u5DF2\u7B7E\u5230")))]):t._e()])])]})],2)}),0)]),t.loadIng?a("div",{staticClass:"calendar-loading"},[a("Loading")],1):t._e()])},p=[];const u={name:"CheckinCalendar",props:{checkin:{type:Array},loadIng:{type:Boolean,default:!1}},data(){return{year:"",month:"",startTime:"",endTime:"",dateArray:[],historys:[]}},created(){const t=$A.daytz();this.year=t.year(),this.month=t.month()+1,this.generateCalendar()},watch:{checkin:{handler(t){t.some(({date:e,section:a})=>{e=e.replace(/-0?/g,"/");let s=this.historys.findIndex(i=>i.date==e);s>-1?this.historys.splice(s,1,{date:e,section:a}):this.historys.push({date:e,section:a})})},immediate:!0}},computed:{hasNextMonth(){const{year:t,month:e}=this,a=$A.daytz();return parseInt(t)!=a.year()||parseInt(e)e.date==t)},setMonth(t){this.$emit("setMonth",t,[this.startTime,this.endTime])},getTimes(t){const e=this.historys.find(a=>a.date==t);return e==null?void 0:e.section.map(a=>`${a[0]} - ${a[1]||"None"}`).join(" ")},generateCalendar(){let t=$A.daytz().startOf("day"),e=$A.dayjs(`${this.year}-${this.month}-1`),a=e.valueOf()-e.day()*86400*1e3,s=[];for(let i=0;i<6;i++){s[i]=[];for(let n=0;n<7;n++){let o=$A.dayjs(a),r=o.month()+1;s[i][n]={day:o.date(),date:`${o.year()}/${r}/${o.date()}`,today:t.unix()==o.unix(),future:t.unix()0?a("div",{staticClass:"setting-checkin-load"},[a("Loading")],1):a("Timeline",{staticClass:"setting-checkin-lately"},t._l(t.latelyData,function(s,i){return a("TimelineItem",{key:i,attrs:{color:s.section.length>0?"blue":"#F29D38"}},[a("Icon",{attrs:{slot:"dot",type:s.section.length>0?"md-checkmark-circle":"md-close-circle"},slot:"dot"}),a("p",{staticClass:"time"},[t._v(t._s(s.date))]),a("p",{staticClass:"content",domProps:{innerHTML:t._s(s.section.length>0?t.latelySection(s.section):t.$L("\u672A\u7B7E\u5230"))}})],1)}),1),a("div",{staticClass:"setting-checkin-button",on:{click:function(s){t.calendarShow=!0}}},[t._v(t._s(t.$L("\u67E5\u770B\u66F4\u591A\u7B7E\u5230\u6570\u636E")))]),a("div",{staticClass:"setting-checkin-button",on:{click:t.openBot}},[t._v(" "+t._s(t.$L("\u6253\u5F00\u7B7E\u5230\u673A\u5668\u4EBA"))+" "),t.openBotIng?a("Loading"):t._e()],1),a("Divider",{attrs:{orientation:"left"}},[t._v(t._s(t.$L("\u7B7E\u5230\u8BBE\u7F6E")))]),a("div",{staticClass:"setting-checkin-row"},[a("Tabs",{staticStyle:{margin:"0"},model:{value:t.checkinTabs,callback:function(s){t.checkinTabs=s},expression:"checkinTabs"}},[a("TabPane",{attrs:{label:t.$L("\u4EBA\u8138\u7B7E\u5230"),name:"face"}},[a("Row",{staticClass:"setting-template"},[a("Col",{attrs:{span:"24"}},[t._v(t._s(t.$L("\u4EBA\u8138\u56FE\u7247")))])],1),a("Row",{staticClass:"setting-template"},[a("Col",{attrs:{span:"24"}},[a("ImgUpload",{attrs:{num:1,width:512,height:512,whcut:"cover"},model:{value:t.faceimgs,callback:function(s){t.faceimgs=s},expression:"faceimgs"}}),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A(*)","500x500")))])],1)],1)],1),a("TabPane",{attrs:{label:t.$L("WiFi\u7B7E\u5230"),name:"mac"}},[a("Alert",{attrs:{type:"success"}},[t._v(" "+t._s(t.$L("\u8BBE\u5907\u8FDE\u63A5\u4E0A\u6307\u5B9A\u8DEF\u7531\u5668\uFF08WiFi\uFF09\u540E\u81EA\u52A8\u7B7E\u5230\u3002"))+" ")]),a("Row",{staticClass:"setting-template"},[a("Col",{attrs:{span:"12"}},[t._v(t._s(t.$L("\u8BBE\u5907MAC\u5730\u5740")))]),a("Col",{attrs:{span:"12"}},[t._v(t._s(t.$L("\u5907\u6CE8")))])],1),t._l(t.formData,function(s,i){return a("Row",{key:i,staticClass:"setting-template"},[a("Col",{attrs:{span:"12"}},[a("Input",{attrs:{maxlength:20,placeholder:t.$L("\u8BF7\u8F93\u5165\u8BBE\u5907MAC\u5730\u5740"),clearable:""},on:{"on-clear":function(n){return t.delDatum(i)}},model:{value:s.mac,callback:function(n){t.$set(s,"mac",n)},expression:"item.mac"}})],1),a("Col",{attrs:{span:"12"}},[a("Input",{attrs:{maxlength:100,placeholder:t.$L("\u5907\u6CE8")},model:{value:s.remark,callback:function(n){t.$set(s,"remark",n)},expression:"item.remark"}})],1)],1)}),a("Button",{attrs:{type:"default",icon:"md-add"},on:{click:t.addDatum}},[t._v(t._s(t.$L("\u6DFB\u52A0\u8BBE\u5907")))])],2)],1)],1)],1),a("div",{staticClass:"setting-footer"},[a("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),a("Button",{attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1),a("Modal",{attrs:{title:t.$L("\u7B7E\u5230\u6570\u636E"),"footer-hide":"","mask-closable":!1},model:{value:t.calendarShow,callback:function(s){t.calendarShow=s},expression:"calendarShow"}},[a("CheckinCalendar",{ref:"calendar",attrs:{loadIng:t.calendarLoading>0,checkin:t.calendarData},on:{changeMonth:t.changeMonth}})],1)],1)},$=[];const g={name:"ManageCheckin",components:{CheckinCalendar:y,ImgUpload:m},data(){return{loadIng:0,openBotIng:0,formData:[],faceimgs:[],nullDatum:{mac:"",remark:""},checkinTabs:"face",latelyLoad:0,latelyData:[],calendarShow:!1,calendarLoading:0,calendarData:[]}},mounted(){this.initData(),this.getLately()},watch:{calendarShow(t){t&&this.$nextTick(e=>{this.changeMonth(this.$refs.calendar.ym())})}},methods:{initData(){this.loadIng++,this.$store.dispatch("call",{url:"users/checkin/get"}).then(({data:t})=>{this.formData=t.list.length>0?t.list:[$A.cloneJSON(this.nullDatum)],this.faceimgs=t.faceimg,this.formData_bak=$A.cloneJSON(this.formData)}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.loadIng--})},submitForm(){this.$refs.formData.validate(t=>{if(t){const e=this.formData.filter(s=>/^[A-Fa-f\d]{2}:[A-Fa-f\d]{2}:[A-Fa-f\d]{2}:[A-Fa-f\d]{2}:[A-Fa-f\d]{2}:[A-Fa-f\d]{2}$/.test(s.mac.trim())).map(s=>({mac:s.mac.trim(),remark:s.remark.trim()})),a=$A.arrayLength(this.faceimgs)>0?this.faceimgs[0].url:"";this.loadIng++,this.$store.dispatch("call",{url:"users/checkin/save",data:{type:this.checkinTabs,list:e,faceimg:a},method:"post"}).then(({data:s})=>{this.formData=s.list,this.faceimgs=s.faceimg,this.formData_bak=$A.cloneJSON(this.formData),$A.messageSuccess("\u4FEE\u6539\u6210\u529F")}).catch(({msg:s})=>{$A.modalError(s)}).finally(s=>{this.loadIng--})}})},resetForm(){this.formData=$A.cloneJSON(this.formData_bak)},addDatum(){this.formData.push($A.cloneJSON(this.nullDatum))},delDatum(t){this.formData.splice(t,1),this.formData.length===0&&this.addDatum()},getLately(){this.latelyLoad++,this.$store.dispatch("call",{url:"users/checkin/list",data:{ym:$A.daytz().format("YYYY-MM"),before:1}}).then(({data:t})=>{this.latelyFormat(t)}).finally(t=>{this.latelyLoad--})},latelyFormat(t){this.latelyData=[];for(let e=0;e<5;e++){const a=$A.daytz().subtract(e,"day").format("YYYY-MM-DD"),s=t.find(({date:i})=>i==a)||{date:a,section:[]};this.latelyData.push(s)}},latelySection(t){return t.map(e=>`${e[0]} - ${e[1]||"none"}`).join(" ")},changeMonth(t){setTimeout(e=>{this.calendarLoading++},600),this.$store.dispatch("call",{url:"users/checkin/list",data:{ym:t,before:1}}).then(({data:e})=>{this.$refs.calendar.ym()==t&&(this.calendarData=e,t==$A.daytz().format("YYYY-MM")&&this.latelyFormat(e))}).catch(({msg:e})=>{this.calendarData=[],$A.modalError(e)}).finally(e=>{this.calendarLoading--})},async openBot(){this.openBotIng++;try{const{data:t}=await this.$store.dispatch("call",{url:"users/search",data:{keys:{key:"check-in@bot.system",bot:1}}});if(t.length===0)throw new Error("\u673A\u5668\u4EBA\u6682\u672A\u5F00\u542F");await this.$store.dispatch("openDialogUserid",t[0].userid)}catch(t){$A.modalError(t.msg||"\u673A\u5668\u4EBA\u6682\u672A\u5F00\u542F")}finally{this.openBotIng--}}}},c={};var k=h(g,v,$,!1,C,null,null,null);function C(t){for(let e in c)this[e]=c[e]}var vt=function(){return k.exports}();export{vt as default};
+import{n as h}from"./app.ef7047f7.js";import{I as m}from"./ImgUpload.434d067a.js";import"./jquery.6e4daff9.js";import"./@babel.9410f858.js";import"./dayjs.d20a4841.js";import"./localforage.743dffdd.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./vue.adba9046.js";import"./vuex.cc7cb26e.js";import"./openpgp_hi.15f91b1d.js";import"./axios.37c7f908.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./view-design-hi.24419422.js";import"./html-to-md.f297036e.js";import"./lodash.8fcd6fd4.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vuedraggable.f464b992.js";import"./sortablejs.3488b922.js";import"./vue-resize-observer.5af23a43.js";import"./element-sea.f8a64907.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";import"./chunkedUpload.3cd238b0.js";import"./spark-md5.0443325f.js";var d=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"checkin-calendar"},[a("div",{staticClass:"calendar-header"},[a("div",{staticClass:"calendar-header-menu"},[a("Icon",{staticClass:"month-less",attrs:{type:"ios-arrow-back"},on:{click:t.prevMonth}}),a("h4",[t._v(t._s(t.$L("(*)\u5E74(*)\u6708",t.year,t.month)))]),t.hasNextMonth?a("Icon",{staticClass:"month-add",attrs:{type:"ios-arrow-forward"},on:{click:t.nextMonth}}):t._e()],1),t.hasNextMonth?a("Button",{staticClass:"calendar-header-back",attrs:{size:"small"},on:{click:t.nowMonth}},[t._v(t._s(t.$L("\u8FD4\u56DE\u672C\u6708")))]):t._e()],1),a("table",{staticClass:"check-table"},[a("thead",[a("tr",[a("th",[t._v(t._s(t.$L("[weekday].\u65E5")))]),a("th",[t._v(t._s(t.$L("[weekday].\u4E00")))]),a("th",[t._v(t._s(t.$L("[weekday].\u4E8C")))]),a("th",[t._v(t._s(t.$L("[weekday].\u4E09")))]),a("th",[t._v(t._s(t.$L("[weekday].\u56DB")))]),a("th",[t._v(t._s(t.$L("[weekday].\u4E94")))]),a("th",[t._v(t._s(t.$L("[weekday].\u516D")))])])]),a("tbody",t._l(t.dateArray,function(s){return a("tr",[t._l(s,function(i){return[i.month?a("td",{class:{today:i.today,checkin:t.isCheck(i.date)}},[a("ETooltip",{attrs:{"max-width":"auto",disabled:!t.isCheck(i.date)}},[a("div",{attrs:{slot:"content"},domProps:{innerHTML:t._s(t.getTimes(i.date))},slot:"content"}),a("div",{staticClass:"item-day"},[i.today?a("div",[t._v(t._s(t.$L("\u4ECA\u5929")))]):a("div",[t._v(t._s(i.day))]),t.isCheck(i.date)?a("div",{staticClass:"ui-state-down"},[t._v(t._s(t.$L("\u5DF2\u7B7E\u5230")))]):i.today?a("div",{staticClass:"ui-state-default"},[t._v(t._s(t.$L("\u5C1A\u672A\u7B7E\u5230")))]):t._e()])])],1):a("td",{staticClass:"disabled"},[a("div",{staticClass:"item-day"},[a("div",[t._v(t._s(i.day))]),t.isCheck(i.date)?a("div",{staticClass:"ui-state-down"},[t._v(t._s(t.$L("\u5DF2\u7B7E\u5230")))]):t._e()])])]})],2)}),0)]),t.loadIng?a("div",{staticClass:"calendar-loading"},[a("Loading")],1):t._e()])},p=[];const u={name:"CheckinCalendar",props:{checkin:{type:Array},loadIng:{type:Boolean,default:!1}},data(){return{year:"",month:"",startTime:"",endTime:"",dateArray:[],historys:[]}},created(){const t=$A.daytz();this.year=t.year(),this.month=t.month()+1,this.generateCalendar()},watch:{checkin:{handler(t){t.some(({date:e,section:a})=>{e=e.replace(/-0?/g,"/");let s=this.historys.findIndex(i=>i.date==e);s>-1?this.historys.splice(s,1,{date:e,section:a}):this.historys.push({date:e,section:a})})},immediate:!0}},computed:{hasNextMonth(){const{year:t,month:e}=this,a=$A.daytz();return parseInt(t)!=a.year()||parseInt(e)e.date==t)},setMonth(t){this.$emit("setMonth",t,[this.startTime,this.endTime])},getTimes(t){const e=this.historys.find(a=>a.date==t);return e==null?void 0:e.section.map(a=>`${a[0]} - ${a[1]||"None"}`).join(" ")},generateCalendar(){let t=$A.daytz().startOf("day"),e=$A.dayjs(`${this.year}-${this.month}-1`),a=e.valueOf()-e.day()*86400*1e3,s=[];for(let i=0;i<6;i++){s[i]=[];for(let n=0;n<7;n++){let o=$A.dayjs(a),r=o.month()+1;s[i][n]={day:o.date(),date:`${o.year()}/${r}/${o.date()}`,today:t.unix()==o.unix(),future:t.unix()0?a("div",{staticClass:"setting-checkin-load"},[a("Loading")],1):a("Timeline",{staticClass:"setting-checkin-lately"},t._l(t.latelyData,function(s,i){return a("TimelineItem",{key:i,attrs:{color:s.section.length>0?"blue":"#F29D38"}},[a("Icon",{attrs:{slot:"dot",type:s.section.length>0?"md-checkmark-circle":"md-close-circle"},slot:"dot"}),a("p",{staticClass:"time"},[t._v(t._s(s.date))]),a("p",{staticClass:"content",domProps:{innerHTML:t._s(s.section.length>0?t.latelySection(s.section):t.$L("\u672A\u7B7E\u5230"))}})],1)}),1),a("div",{staticClass:"setting-checkin-button",on:{click:function(s){t.calendarShow=!0}}},[t._v(t._s(t.$L("\u67E5\u770B\u66F4\u591A\u7B7E\u5230\u6570\u636E")))]),a("div",{staticClass:"setting-checkin-button",on:{click:t.openBot}},[t._v(" "+t._s(t.$L("\u6253\u5F00\u7B7E\u5230\u673A\u5668\u4EBA"))+" "),t.openBotIng?a("Loading"):t._e()],1),a("Divider",{attrs:{orientation:"left"}},[t._v(t._s(t.$L("\u7B7E\u5230\u8BBE\u7F6E")))]),a("div",{staticClass:"setting-checkin-row"},[a("Tabs",{staticStyle:{margin:"0"},model:{value:t.checkinTabs,callback:function(s){t.checkinTabs=s},expression:"checkinTabs"}},[a("TabPane",{attrs:{label:t.$L("\u4EBA\u8138\u7B7E\u5230"),name:"face"}},[a("Row",{staticClass:"setting-template"},[a("Col",{attrs:{span:"24"}},[t._v(t._s(t.$L("\u4EBA\u8138\u56FE\u7247")))])],1),a("Row",{staticClass:"setting-template"},[a("Col",{attrs:{span:"24"}},[a("ImgUpload",{attrs:{num:1,width:512,height:512,whcut:"cover"},model:{value:t.faceimgs,callback:function(s){t.faceimgs=s},expression:"faceimgs"}}),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A(*)","500x500")))])],1)],1)],1),a("TabPane",{attrs:{label:t.$L("WiFi\u7B7E\u5230"),name:"mac"}},[a("Alert",{attrs:{type:"success"}},[t._v(" "+t._s(t.$L("\u8BBE\u5907\u8FDE\u63A5\u4E0A\u6307\u5B9A\u8DEF\u7531\u5668\uFF08WiFi\uFF09\u540E\u81EA\u52A8\u7B7E\u5230\u3002"))+" ")]),a("Row",{staticClass:"setting-template"},[a("Col",{attrs:{span:"12"}},[t._v(t._s(t.$L("\u8BBE\u5907MAC\u5730\u5740")))]),a("Col",{attrs:{span:"12"}},[t._v(t._s(t.$L("\u5907\u6CE8")))])],1),t._l(t.formData,function(s,i){return a("Row",{key:i,staticClass:"setting-template"},[a("Col",{attrs:{span:"12"}},[a("Input",{attrs:{maxlength:20,placeholder:t.$L("\u8BF7\u8F93\u5165\u8BBE\u5907MAC\u5730\u5740"),clearable:""},on:{"on-clear":function(n){return t.delDatum(i)}},model:{value:s.mac,callback:function(n){t.$set(s,"mac",n)},expression:"item.mac"}})],1),a("Col",{attrs:{span:"12"}},[a("Input",{attrs:{maxlength:100,placeholder:t.$L("\u5907\u6CE8")},model:{value:s.remark,callback:function(n){t.$set(s,"remark",n)},expression:"item.remark"}})],1)],1)}),a("Button",{attrs:{type:"default",icon:"md-add"},on:{click:t.addDatum}},[t._v(t._s(t.$L("\u6DFB\u52A0\u8BBE\u5907")))])],2)],1)],1)],1),a("div",{staticClass:"setting-footer"},[a("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),a("Button",{attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1),a("Modal",{attrs:{title:t.$L("\u7B7E\u5230\u6570\u636E"),"footer-hide":"","mask-closable":!1},model:{value:t.calendarShow,callback:function(s){t.calendarShow=s},expression:"calendarShow"}},[a("CheckinCalendar",{ref:"calendar",attrs:{loadIng:t.calendarLoading>0,checkin:t.calendarData},on:{changeMonth:t.changeMonth}})],1)],1)},$=[];const g={name:"ManageCheckin",components:{CheckinCalendar:y,ImgUpload:m},data(){return{loadIng:0,openBotIng:0,formData:[],faceimgs:[],nullDatum:{mac:"",remark:""},checkinTabs:"face",latelyLoad:0,latelyData:[],calendarShow:!1,calendarLoading:0,calendarData:[]}},mounted(){this.initData(),this.getLately()},watch:{calendarShow(t){t&&this.$nextTick(e=>{this.changeMonth(this.$refs.calendar.ym())})}},methods:{initData(){this.loadIng++,this.$store.dispatch("call",{url:"users/checkin/get"}).then(({data:t})=>{this.formData=t.list.length>0?t.list:[$A.cloneJSON(this.nullDatum)],this.faceimgs=t.faceimg,this.formData_bak=$A.cloneJSON(this.formData)}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.loadIng--})},submitForm(){this.$refs.formData.validate(t=>{if(t){const e=this.formData.filter(s=>/^[A-Fa-f\d]{2}:[A-Fa-f\d]{2}:[A-Fa-f\d]{2}:[A-Fa-f\d]{2}:[A-Fa-f\d]{2}:[A-Fa-f\d]{2}$/.test(s.mac.trim())).map(s=>({mac:s.mac.trim(),remark:s.remark.trim()})),a=$A.arrayLength(this.faceimgs)>0?this.faceimgs[0].url:"";this.loadIng++,this.$store.dispatch("call",{url:"users/checkin/save",data:{type:this.checkinTabs,list:e,faceimg:a},method:"post"}).then(({data:s})=>{this.formData=s.list,this.faceimgs=s.faceimg,this.formData_bak=$A.cloneJSON(this.formData),$A.messageSuccess("\u4FEE\u6539\u6210\u529F")}).catch(({msg:s})=>{$A.modalError(s)}).finally(s=>{this.loadIng--})}})},resetForm(){this.formData=$A.cloneJSON(this.formData_bak)},addDatum(){this.formData.push($A.cloneJSON(this.nullDatum))},delDatum(t){this.formData.splice(t,1),this.formData.length===0&&this.addDatum()},getLately(){this.latelyLoad++,this.$store.dispatch("call",{url:"users/checkin/list",data:{ym:$A.daytz().format("YYYY-MM"),before:1}}).then(({data:t})=>{this.latelyFormat(t)}).finally(t=>{this.latelyLoad--})},latelyFormat(t){this.latelyData=[];for(let e=0;e<5;e++){const a=$A.daytz().subtract(e,"day").format("YYYY-MM-DD"),s=t.find(({date:i})=>i==a)||{date:a,section:[]};this.latelyData.push(s)}},latelySection(t){return t.map(e=>`${e[0]} - ${e[1]||"none"}`).join(" ")},changeMonth(t){setTimeout(e=>{this.calendarLoading++},600),this.$store.dispatch("call",{url:"users/checkin/list",data:{ym:t,before:1}}).then(({data:e})=>{this.$refs.calendar.ym()==t&&(this.calendarData=e,t==$A.daytz().format("YYYY-MM")&&this.latelyFormat(e))}).catch(({msg:e})=>{this.calendarData=[],$A.modalError(e)}).finally(e=>{this.calendarLoading--})},async openBot(){this.openBotIng++;try{const{data:t}=await this.$store.dispatch("call",{url:"users/search",data:{keys:{key:"check-in@bot.system",bot:1}}});if(t.length===0)throw new Error("\u673A\u5668\u4EBA\u6682\u672A\u5F00\u542F");await this.$store.dispatch("openDialogUserid",t[0].userid)}catch(t){$A.modalError(t.msg||"\u673A\u5668\u4EBA\u6682\u672A\u5F00\u542F")}finally{this.openBotIng--}}}},c={};var k=h(g,v,$,!1,C,null,null,null);function C(t){for(let e in c)this[e]=c[e]}var vt=function(){return k.exports}();export{vt as default};
diff --git a/public/js/build/chunkedUpload.a9ef725e.js b/public/js/build/chunkedUpload.3cd238b0.js
similarity index 98%
rename from public/js/build/chunkedUpload.a9ef725e.js
rename to public/js/build/chunkedUpload.3cd238b0.js
index ab44459dd..be10b87e3 100644
--- a/public/js/build/chunkedUpload.a9ef725e.js
+++ b/public/js/build/chunkedUpload.3cd238b0.js
@@ -1 +1 @@
-import{a as k}from"./axios.37c7f908.js";import{S as x}from"./spark-md5.0443325f.js";import{s as D,l as O}from"./app.818b057c.js";const j=10*1024*1024,U=3,M=3,C="chunked_upload:",P=new Set(["\u4E0A\u4F20\u4F1A\u8BDD\u4E0D\u5B58\u5728\u6216\u5DF2\u8FC7\u671F","\u4E0A\u4F20\u4F1A\u8BDD\u5F52\u5C5E\u9519\u8BEF","\u5206\u7247\u5E8F\u53F7\u8D85\u51FA\u8303\u56F4","\u5206\u7247\u5927\u5C0F\u4E0D\u7B26\u5408\u9884\u671F","\u672B\u5C3E\u5206\u7247\u5927\u5C0F\u4E0D\u7B26\u5408\u9884\u671F"]);function H(t,e){return t==="hashing"?Math.round(e*.05):t==="uploading"?5+Math.round(e*.9):95+Math.round(e*.05)}async function G({file:t,scene:e,sceneParams:d={},onProgress:a,onStart:i,signal:r}){const n=typeof a=="function"?a:()=>{},o=(s,h)=>n(H(s,h),s);o("hashing",0);const w=await B(t,r,(s,h)=>{o("hashing",Math.min(99,Math.round(s/h*100)))});if(o("hashing",100),r&&r.aborted)throw new Error("aborted");const c=await S("upload/init",{hash:w,size:t.size,name:t.name,scene:e,scene_params:d},r);if(c.ret!==1)throw new Error(c.msg||"\u4E0A\u4F20\u521D\u59CB\u5316\u5931\u8D25");if(c.data&&c.data.done)return o("uploading",100),o("merging",100),c.data;const{upload_id:p,chunk_size:l,chunk_count:g,received:A}=c.data;if(F(w,p,e),typeof i=="function")try{i(p)}catch{}const y=new Set((A||[]).map(Number)),f=[];for(let s=0;s{o("uploading",Math.min(99,Math.round(E/g*100)))};b();let N=0,u=null;const z=async()=>{for(;;){if(u)return;if(r&&r.aborted){u=new Error("aborted");return}const s=N++;if(s>=f.length)return;const h=f[s],_=h*l,L=Math.min(_+l,t.size),T=t.slice(_,L);try{await $(p,h,T,r),E++,b()}catch(v){u||(u=v);return}}},I=Math.min(U,f.length||1);if(await Promise.all(Array.from({length:I},()=>z())),u)throw u;o("uploading",100),o("merging",0);const m=await S("upload/merge",{upload_id:p},r);if(m.ret!==1)throw new Error(m.msg||"\u5408\u5E76\u5931\u8D25");return o("merging",100),X(w),m.data}async function $(t,e,d,a){let i;for(let r=0;r<=M;r++){if(a&&a.aborted)throw new Error("aborted");try{const n=new FormData;n.append("upload_id",t),n.append("index",String(e)),n.append("blob",d);const o=await k.post(window.$A.apiUrl("upload/chunk"),n,{headers:R(),signal:a});if(o.data&&o.data.ret===1)return o.data.data;i=new Error(o.data&&o.data.msg||"\u5206\u7247\u4E0A\u4F20\u5931\u8D25")}catch(n){if(a&&a.aborted)throw n;i=n}if(P.has(i.message))throw i;rsetTimeout(n,500*Math.pow(2,r)))}throw i||new Error("\u5206\u7247\u91CD\u8BD5\u8017\u5C3D")}async function S(t,e,d){return(await k.post(window.$A.apiUrl(t),e,{headers:{...R(),"Content-Type":"application/json"},signal:d})).data}function R(){return{token:D.state.userToken,language:O,platform:window.$A.Platform,version:window.systemInfo&&window.systemInfo.version||"0.0.1",fd:window.$A.getSessionStorageString("userWsFd")}}async function B(t,e,d){const a=new x.ArrayBuffer,i=2*1024*1024;for(let r=0;rsetTimeout(w,0))}return a.end().toLowerCase()}function F(t,e,d){try{const a={upload_id:e,scene:d,t:Date.now()};localStorage.setItem(C+t,JSON.stringify(a))}catch{}}function X(t){try{localStorage.removeItem(C+t)}catch{}}export{j as C,G as c};
+import{a as k}from"./axios.37c7f908.js";import{S as x}from"./spark-md5.0443325f.js";import{s as D,l as O}from"./app.ef7047f7.js";const j=10*1024*1024,U=3,M=3,C="chunked_upload:",P=new Set(["\u4E0A\u4F20\u4F1A\u8BDD\u4E0D\u5B58\u5728\u6216\u5DF2\u8FC7\u671F","\u4E0A\u4F20\u4F1A\u8BDD\u5F52\u5C5E\u9519\u8BEF","\u5206\u7247\u5E8F\u53F7\u8D85\u51FA\u8303\u56F4","\u5206\u7247\u5927\u5C0F\u4E0D\u7B26\u5408\u9884\u671F","\u672B\u5C3E\u5206\u7247\u5927\u5C0F\u4E0D\u7B26\u5408\u9884\u671F"]);function H(t,e){return t==="hashing"?Math.round(e*.05):t==="uploading"?5+Math.round(e*.9):95+Math.round(e*.05)}async function G({file:t,scene:e,sceneParams:d={},onProgress:a,onStart:i,signal:r}){const n=typeof a=="function"?a:()=>{},o=(s,h)=>n(H(s,h),s);o("hashing",0);const w=await B(t,r,(s,h)=>{o("hashing",Math.min(99,Math.round(s/h*100)))});if(o("hashing",100),r&&r.aborted)throw new Error("aborted");const c=await S("upload/init",{hash:w,size:t.size,name:t.name,scene:e,scene_params:d},r);if(c.ret!==1)throw new Error(c.msg||"\u4E0A\u4F20\u521D\u59CB\u5316\u5931\u8D25");if(c.data&&c.data.done)return o("uploading",100),o("merging",100),c.data;const{upload_id:p,chunk_size:l,chunk_count:g,received:A}=c.data;if(F(w,p,e),typeof i=="function")try{i(p)}catch{}const y=new Set((A||[]).map(Number)),f=[];for(let s=0;s{o("uploading",Math.min(99,Math.round(E/g*100)))};b();let N=0,u=null;const z=async()=>{for(;;){if(u)return;if(r&&r.aborted){u=new Error("aborted");return}const s=N++;if(s>=f.length)return;const h=f[s],_=h*l,L=Math.min(_+l,t.size),T=t.slice(_,L);try{await $(p,h,T,r),E++,b()}catch(v){u||(u=v);return}}},I=Math.min(U,f.length||1);if(await Promise.all(Array.from({length:I},()=>z())),u)throw u;o("uploading",100),o("merging",0);const m=await S("upload/merge",{upload_id:p},r);if(m.ret!==1)throw new Error(m.msg||"\u5408\u5E76\u5931\u8D25");return o("merging",100),X(w),m.data}async function $(t,e,d,a){let i;for(let r=0;r<=M;r++){if(a&&a.aborted)throw new Error("aborted");try{const n=new FormData;n.append("upload_id",t),n.append("index",String(e)),n.append("blob",d);const o=await k.post(window.$A.apiUrl("upload/chunk"),n,{headers:R(),signal:a});if(o.data&&o.data.ret===1)return o.data.data;i=new Error(o.data&&o.data.msg||"\u5206\u7247\u4E0A\u4F20\u5931\u8D25")}catch(n){if(a&&a.aborted)throw n;i=n}if(P.has(i.message))throw i;rsetTimeout(n,500*Math.pow(2,r)))}throw i||new Error("\u5206\u7247\u91CD\u8BD5\u8017\u5C3D")}async function S(t,e,d){return(await k.post(window.$A.apiUrl(t),e,{headers:{...R(),"Content-Type":"application/json"},signal:d})).data}function R(){return{token:D.state.userToken,language:O,platform:window.$A.Platform,version:window.systemInfo&&window.systemInfo.version||"0.0.1",fd:window.$A.getSessionStorageString("userWsFd")}}async function B(t,e,d){const a=new x.ArrayBuffer,i=2*1024*1024;for(let r=0;rsetTimeout(w,0))}return a.end().toLowerCase()}function F(t,e,d){try{const a={upload_id:e,scene:d,t:Date.now()};localStorage.setItem(C+t,JSON.stringify(a))}catch{}}function X(t){try{localStorage.removeItem(C+t)}catch{}}export{j as C,G as c};
diff --git a/public/js/build/dashboard.1ca3799a.js b/public/js/build/dashboard.1ca3799a.js
new file mode 100644
index 000000000..abcd9d047
--- /dev/null
+++ b/public/js/build/dashboard.1ca3799a.js
@@ -0,0 +1 @@
+import{m as v,a as $}from"./vuex.cc7cb26e.js";import{n as d,h as C,e as b}from"./app.ef7047f7.js";import{u as g,i as L,a as w,b as k,c as T}from"./echarts.523e56b1.js";import{D as S}from"./DepartmentOwnerView.710b9bb7.js";import"./jquery.6e4daff9.js";import"./@babel.9410f858.js";import"./dayjs.d20a4841.js";import"./localforage.743dffdd.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./vue.adba9046.js";import"./openpgp_hi.15f91b1d.js";import"./axios.37c7f908.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./view-design-hi.24419422.js";import"./html-to-md.f297036e.js";import"./lodash.8fcd6fd4.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vuedraggable.f464b992.js";import"./sortablejs.3488b922.js";import"./vue-resize-observer.5af23a43.js";import"./element-sea.f8a64907.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";import"./zrender.6f9469d4.js";import"./tslib.891692d0.js";var f={data(){return{nowTime:$A.dayjs().unix(),nowInter:null}},methods:{deadlineClass(t){if(!t)return"";const a=$A.dayjs(t),s=$A.daytz(this.nowTime);return a<=s?"end-overdue":a.format("YYYY-MM-DD")===s.format("YYYY-MM-DD")?"end-today":""},deadlineText(t){if(!t)return"";const a=$A.dayjs(t),s=$A.daytz(this.nowTime);if(a<=s){const e=s.startOf("day").diff(a.startOf("day"),"day");return e>0?this.$L("\u903E\u671F (*) \u5929",e):this.$L("\u903E\u671F (*) \u5C0F\u65F6",Math.max(s.diff(a,"hour"),1))}return a.format("YYYY-MM-DD")===s.format("YYYY-MM-DD")?`${this.$L("\u4ECA\u5929")} ${a.format("HH:mm")}`:a.format("YYYY-MM-DD")===s.clone().add(1,"day").format("YYYY-MM-DD")?`${this.$L("\u660E\u5929")} ${a.format("HH:mm")}`:a.year()===s.year()?a.format("MM-DD"):a.format("YYYY-MM-DD")},loadInterval(t){this.nowInter&&(clearInterval(this.nowInter),this.nowInter=null),t!==!1&&(this.nowInter=setInterval(a=>{this.nowTime=$A.dayjs().unix()},10*1e3))}}},x=function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("img",{staticClass:"dashboard-icon",attrs:{src:t.$A.mainUrl(`images/dashboard/${t.name}.svg`),width:t.size,height:t.size,alt:"","aria-hidden":"true"}})},D=[];const A={props:{name:{type:String,required:!0},size:{type:Number,default:14}}},m={};var M=d(A,x,D,!1,Y,"7ff1ad89",null,null);function Y(t){for(let a in m)this[a]=m[a]}var y=function(){return M.exports}(),I=function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("div",{staticClass:"dashboard-priority-chart"},[s("div",{ref:"chart",staticClass:"priority-chart-canvas",attrs:{"aria-label":t.$L("\u4F18\u5148\u7EA7\u5206\u5E03")}}),s("div",{staticClass:"priority-chart-total"},[s("strong",{class:{"total-long":String(t.total).length>5}},[t._v(t._s(t.total))]),s("span",[t._v(t._s(t.$L("\u672A\u5B8C\u6210\u4EFB\u52A1")))])])])},P=[];g([L,w,k]);const j={props:{items:{type:Array,default:()=>[]},total:{type:Number,default:0}},watch:{items:{deep:!0,handler(){this.renderChart()}}},mounted(){this.chart=T(this.$refs.chart),this.chart.on("click",t=>{const a=this.items[t.dataIndex];a&&this.$emit("select",a)}),this.renderChart()},beforeDestroy(){this.chart&&this.chart.dispose()},methods:{renderChart(){!this.chart||this.chart.setOption({tooltip:{trigger:"item",confine:!0},series:[{type:"pie",radius:[70,90],center:["50%","50%"],startAngle:180,minAngle:3,padAngle:2.72,label:{show:!1},labelLine:{show:!1},stillShowZeroSum:!1,emptyCircleStyle:{color:"#e9ebef"},itemStyle:{borderWidth:0,borderRadius:4,shadowBlur:0},emphasis:{scaleSize:10,itemStyle:{borderWidth:0,shadowBlur:0}},data:this.items.map(t=>({name:t.name,value:t.num,itemStyle:{color:t.color||"#bbc2db",opacity:.55}}))}]})}}},h={};var F=d(j,I,P,!1,O,"104a8125",null,null);function O(t){for(let a in h)this[a]=h[a]}var E=function(){return F.exports}(),V=function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("div",{staticClass:"dashboard-team"},[s("ul",{staticClass:"dashboard-cards"},[s("li",{staticClass:"stat-uncompleted",on:{click:function(e){return t.onBlock("uncompleted")}}},[s("div",{staticClass:"card-label"},[t._v(t._s(t.$L("\u672A\u5B8C\u6210")))]),s("div",{staticClass:"card-data"},[s("span",{staticClass:"card-num"},[t._v(t._s(t.blocks.uncompleted||0))])])]),s("li",{staticClass:"stat-overdue",on:{click:function(e){return t.onBlock("overdue")}}},[s("div",{staticClass:"card-label"},[t._v(t._s(t.$L("\u5DF2\u8D85\u671F")))]),s("div",{staticClass:"card-data"},[s("span",{staticClass:"card-num num-red"},[t._v(t._s(t.blocks.overdue||0))]),t.blocks.overdue_owner_count?s("span",{staticClass:"card-sub"},[t._v(t._s(t.$L("\u6D89\u53CA (*) \u4EBA",t.blocks.overdue_owner_count)))]):t._e()])]),s("li",{staticClass:"stat-soon",on:{click:function(e){return t.onBlock("soon")}}},[s("div",{staticClass:"card-label"},[t._v(t._s(t.$L("(*) \u5929\u5185\u5230\u671F",3)))]),s("div",{staticClass:"card-data"},[s("span",{staticClass:"card-num num-orange"},[t._v(t._s(t.blocks.due_soon||0))])])]),s("li",{staticClass:"card-static stat-completed",attrs:{title:t.weekDiffText}},[s("div",{staticClass:"card-label"},[t._v(t._s(t.$L("\u672C\u5468\u5B8C\u6210")))]),s("div",{staticClass:"card-data"},[s("span",{staticClass:"card-num num-green"},[t._v(t._s(t.blocks.week_completed||0))])])])]),s("div",{staticClass:"team-duo"},[s("div",{staticClass:"dashboard-card team-members"},[s("div",{staticClass:"card-head"},[s("span",{staticClass:"head-title"},[t._v(t._s(t.$L("\u6210\u5458\u4EFB\u52A1\u5206\u914D")))]),s("span",{staticClass:"head-legend"},[s("span",[s("i",{staticStyle:{background:"#bcc1cc"}}),t._v(t._s(t.$L("\u5F85\u5904\u7406")))]),s("span",[s("i",{staticStyle:{background:"#85acff"}}),t._v(t._s(t.$L("\u8FDB\u884C\u4E2D")))]),s("span",[s("i",{staticStyle:{background:"#8bcf70"}}),t._v(t._s(t.$L("\u9A8C\u6536/\u6D4B\u8BD5")))])])]),t.showStatsLoading?s("div",{staticClass:"team-stats-loading"},[s("Loading")],1):[s("ul",{staticClass:"member-list"},[t._l(t.visibleMembers,function(e){return s("li",{key:e.userid,staticClass:"member-row",on:{click:function(r){return t.onMember(e)}}},[s("UserAvatar",{staticClass:"team-avatar",attrs:{userid:e.userid,size:24}}),s("span",{staticClass:"member-name"},[t._v(t._s(e.nickname))]),s("ETooltip",{attrs:{disabled:t.$isEEUIApp||t.$store.state.windowTouch||e.total===0,"open-delay":300,effect:"light",placement:"top","popper-class":"dashboard-member-progress-popper"}},[s("span",{staticClass:"member-track"},[s("span",{staticClass:"member-bar",style:{width:t.memberBarWidth(e)}},[e.segments.start>0?s("i",{style:{flex:e.segments.start,background:"#bcc1cc"}}):t._e(),e.segments.progress>0?s("i",{style:{flex:e.segments.progress,background:"#85acff"}}):t._e(),e.segments.test>0?s("i",{style:{flex:e.segments.test,background:"#8bcf70"}}):t._e()])]),s("div",{staticClass:"member-progress-tooltip",attrs:{slot:"content"},slot:"content"},[s("span",{staticClass:"progress-tooltip-title"},[t._v(t._s(t.$L("\u4EFB\u52A1\u6982\u51B5")))]),s("div",{staticClass:"progress-tooltip-row"},[s("span",{staticClass:"progress-tooltip-label"},[t._v(t._s(t.$L("\u672A\u5B8C\u6210\u603B\u6570")))]),s("strong",[t._v(t._s(t.$L("(*) \u9879",e.total)))])]),s("div",{staticClass:"progress-tooltip-row row-overdue"},[s("span",{staticClass:"progress-tooltip-label"},[t._v(t._s(t.$L("\u5DF2\u8D85\u671F")))]),s("strong",[t._v(t._s(t.$L("(*) \u9879",e.overdue))+" \xB7 "+t._s(t.memberOverduePercent(e))+"%")])]),s("span",{staticClass:"progress-tooltip-title title-stage"},[t._v(t._s(t.$L("\u6D41\u7A0B\u9636\u6BB5")))]),t._l(t.memberProgressDetails(e),function(r){return s("div",{key:r.type,staticClass:"progress-tooltip-row"},[s("span",{staticClass:"progress-tooltip-label"},[s("i",{style:{background:r.color}}),t._v(t._s(r.label))]),s("strong",[t._v(t._s(t.$L("(*) \u9879",r.count))+" \xB7 "+t._s(r.percent)+"%")])])})],2)]),s("span",{staticClass:"member-num",attrs:{title:t.memberSummary(e)}},[e.overdue>0?s("em",{staticClass:"num-overdue"},[t._v(t._s(t.$L("(*) \u8D85\u671F",e.overdue))+" \xB7 ")]):t._e(),t._v(t._s(t.$L("(*) \u9879",e.total))+" ")])],1)}),t.blocks.no_owner>0?s("li",{staticClass:"member-row member-noowner",on:{click:function(e){return t.onBlock("noowner")}}},[s("span",{staticClass:"mock-avatar avatar-none"},[t._v("?")]),s("span",{staticClass:"member-name"},[t._v(t._s(t.$L("\u672A\u5206\u914D")))]),s("span",{staticClass:"member-track"},[s("span",{staticClass:"member-bar bar-hatched",style:{width:t.memberBarWidth({total:t.blocks.no_owner})}})]),s("span",{staticClass:"member-num num-noowner"},[t._v(t._s(t.$L("(*) \u9879",t.blocks.no_owner)))])]):t._e()],2),t.members.length>t.memberLimit?s("div",{staticClass:"card-more",on:{click:function(e){t.memberExpand=!t.memberExpand}}},[t._v(" "+t._s(t.memberExpand?t.$L("\u6536\u8D77"):t.$L("\u67E5\u770B\u5168\u90E8 (*) \u4EBA",t.members.length)+" \u2192")+" ")]):t._e()]],2),s("div",{staticClass:"dashboard-card team-priority"},[s("div",{staticClass:"card-head"},[s("span",{staticClass:"head-title"},[t._v(t._s(t.$L("\u4F18\u5148\u7EA7\u5206\u5E03")))]),t.showStatsLoading?t._e():s("span",{staticClass:"head-note"},[t._v(t._s(t.$L("\u672A\u5B8C\u6210 (*) \u9879",t.blocks.uncompleted||0)))])]),t.showStatsLoading?s("div",{staticClass:"team-stats-loading"},[s("Loading")],1):s("div",{staticClass:"priority-distribution"},[s("DashboardPriorityChart",{attrs:{items:t.priorityList,total:t.blocks.uncompleted||0},on:{select:t.onPriority}}),s("div",{staticClass:"priority-list"},[t._l(t.visiblePriorityList,function(e){return s("button",{key:e.level,staticClass:"priority-row",attrs:{type:"button"},on:{click:function(r){return t.onPriority(e)}}},[s("div",{staticClass:"priority-head"},[s("i",{staticClass:"priority-dot",style:{backgroundColor:e.color}}),s("span",{staticClass:"priority-name"},[t._v(t._s(e.name))]),s("span",{staticClass:"priority-num"},[t._v(t._s(t.$L("(*) \u9879",e.num))+" \xB7 "+t._s(e.percent)+"%")])])])}),t.priorityList.length>t.priorityLimit?s("div",{staticClass:"priority-tip priority-more",on:{click:function(e){t.priorityExpand=!t.priorityExpand}}},[t._v(" "+t._s(t.priorityExpand?t.$L("\u6536\u8D77"):t.$L("\u67E5\u770B\u5168\u90E8 (*) \u4E2A\u4F18\u5148\u7EA7",t.priorityList.length)+" \u2192")+" ")]):t._e(),t.priorityList.length===0?s("span",{staticClass:"priority-tip"},[t._v(t._s(t.$L("\u6682\u65E0\u6570\u636E")))]):t._e()],2)],1)])]),s("div",{staticClass:"team-focus-section",class:{"focus-scroll-reserve":t.focusScrollReserved}},[s("div",{ref:"focusCard",staticClass:"dashboard-card team-focus"},[s("div",{staticClass:"card-head focus-head"},[t._l(t.chips,function(e){return s("span",{key:e.type,staticClass:"focus-chip",class:[`chip-${e.type}`,{"chip-active":!t.extraFilter&&t.focus===e.type}],on:{click:function(r){return t.setFocus(e.type)}}},[t._v(t._s(e.label)+" "+t._s(e.num))])}),t.extraFilter?s("span",{staticClass:"focus-chip chip-extra chip-active",on:{click:t.clearFilter}},[t._v(" "+t._s(t.extraFilter.label)),s("i",[t._v("\xD7")])]):t._e()],2),s("div",{staticClass:"focus-table"},[s("div",{staticClass:"focus-row focus-thead"},[s("span",[s("DashboardIcon",{attrs:{name:"task"}}),t._v(t._s(t.$L("\u4EFB\u52A1")))],1),s("span",{staticClass:"f-project"},[s("DashboardIcon",{attrs:{name:"project"}}),t._v(t._s(t.$L("\u9879\u76EE")))],1),s("span",{staticClass:"f-owner"},[s("DashboardIcon",{attrs:{name:"owner"}}),t._v(t._s(t.$L("\u8D1F\u8D23\u4EBA")))],1),s("span",{staticClass:"f-priority"},[s("DashboardIcon",{attrs:{name:"priority"}}),t._v(t._s(t.$L("\u4F18\u5148\u7EA7")))],1),s("span",{staticClass:"f-status"},[s("DashboardIcon",{attrs:{name:"status"}}),t._v(t._s(t.$L("\u72B6\u6001")))],1),s("span",{staticClass:"f-end"},[s("DashboardIcon",{attrs:{name:"calendar"}}),t._v(t._s(t.$L("\u622A\u6B62\u65F6\u95F4")))],1)]),t._l(t.currentList.list,function(e){return s("div",{key:e.id,staticClass:"focus-row",on:{click:function(r){return t.onTask(e)}}},[s("span",{staticClass:"f-name"},[t._v(t._s(e.name))]),s("span",{staticClass:"f-project"},[t._v(t._s(e.project_name))]),s("span",{staticClass:"f-owner"},[e.owner?[s("UserAvatar",{staticClass:"team-avatar",attrs:{userid:e.owner.userid,size:24}}),s("span",{staticClass:"owner-name"},[t._v(t._s(e.owner.nickname))]),e.owners.length>1?s("em",{staticClass:"owner-more"},[t._v("+"+t._s(e.owners.length-1))]):t._e()]:[s("span",{staticClass:"mock-avatar avatar-none"},[t._v("?")]),s("em",{staticClass:"owner-none"},[t._v(t._s(t.$L("\u5F85\u5206\u914D")))])]],2),s("span",{staticClass:"f-priority"},[e.p_name?[s("i",{staticClass:"priority-glyph",style:{backgroundColor:e.p_color}}),s("span",[t._v(t._s(e.p_name))])]:[t._v("\u2014")]],2),s("span",{staticClass:"f-status"},[s("em",{staticClass:"status-pill",class:e.flow_item_name?e.flow_item_status:""},[t._v(t._s(e.flow_item_name||t.$L("\u672A\u5B8C\u6210")))])]),s("span",{staticClass:"f-end",class:t.deadlineClass(e.end_at)},[t._v(t._s(t.deadlineText(e.end_at)||"\u2014"))])])}),t.currentList.loading&&!t.currentList.silent?s("div",{staticClass:"focus-loading"},[s("Loading")],1):t.currentList.list.length===0?s("div",{staticClass:"focus-empty"},[s("span",{staticClass:"focus-empty-icon"},[s("Icon",{attrs:{type:"md-checkmark"}})],1),s("strong",[t._v(t._s(t.focusEmptyTitle))]),s("span",[t._v(t._s(t.$L("\u53EF\u4EE5\u5207\u6362\u4E0A\u65B9\u6761\u4EF6\u67E5\u770B\u5176\u4ED6\u4EFB\u52A1")))])]):t.currentList.hasMore?s("div",{staticClass:"card-more",on:{click:t.loadMore}},[t._v(t._s(t.$L("\u52A0\u8F7D\u66F4\u591A"))+"\uFF08"+t._s(t.$L("\u8FD8\u6709 (*) \u9879",t.currentList.total-t.currentList.list.length))+"\uFF09")]):t.currentList.total>t.pageSize?s("div",{staticClass:"card-more more-done"},[t._v(t._s(t.$L("\u5168\u90E8\u663E\u793A\u5B8C\u6BD5")))]):t._e()],2)])])])},z=[];const q={name:"DashboardTeam",components:{DashboardIcon:y,DashboardPriorityChart:E},mixins:[f],props:{initialFocus:{type:String,default:"overdue"}},data(){return{stats:{member_count:0,blocks:{},priority:[],members:[]},statsLoading:!1,statsLoadedAt:0,statsToken:0,focus:["overdue","soon","hi","noowner"].includes(this.initialFocus)?this.initialFocus:"overdue",extraFilter:null,lists:{},listTokens:{},pageSize:20,refreshSeconds:60,memberLimit:5,memberExpand:!1,priorityLimit:6,priorityExpand:!1,focusScrollReserved:!1}},created(){this.loadAll()},activated(){this.loadInterval(!0),this.statsLoadedAt>0&&$A.dayjs().unix()-this.statsLoadedAt>=this.refreshSeconds&&this.loadAll(!0)},deactivated(){this.loadInterval(!1),this.focusScrollReserved=!1},beforeDestroy(){this.loadInterval(!1)},computed:{...v(["cacheDepartmentOwnerIds"]),scopeKey({cacheDepartmentOwnerIds:t}){const a=(t||[]).map(s=>parseInt(s)).filter(s=>s>0).sort((s,e)=>s-e);return a.length>0?a.join(","):"all"},blocks({stats:t}){return t.blocks||{}},members({stats:t}){return t.members||[]},visibleMembers({members:t,memberExpand:a,memberLimit:s}){return a?t:t.slice(0,s)},showStatsLoading({statsLoading:t,statsLoadedAt:a}){return t&&a===0},memberMax({members:t,blocks:a}){return Math.max(...t.map(s=>s.total),a.no_owner||0,1)},priorityList({stats:t,blocks:a}){const s=Math.max(a.uncompleted||0,1);return(t.priority||[]).filter(e=>e.num>0).map(e=>({...e,name:e.name||this.$L("\u672A\u8BBE\u7F6E"),percent:Math.round(e.num/s*100)}))},visiblePriorityList({priorityList:t,priorityExpand:a,priorityLimit:s}){return a?t:t.slice(0,s)},highPriorityChip({stats:t,blocks:a}){const s=(t.priority||[]).filter(e=>e.level>0).slice(0,2);return{label:s.map(e=>e.name).join(" / ")||this.$L("\u9AD8\u4F18\u5148\u7EA7"),num:s.reduce((e,r)=>e+r.num,0)}},chips({blocks:t,highPriorityChip:a}){return[{type:"overdue",label:this.$L("\u5DF2\u8D85\u671F"),num:t.overdue||0},{type:"soon",label:this.$L("(*) \u5929\u5185\u5230\u671F",3),num:t.due_soon||0},{type:"hi",label:a.label,num:a.num},{type:"noowner",label:this.$L("\u672A\u5206\u914D\u8D1F\u8D23\u4EBA"),num:t.no_owner||0}]},weekDiffText({blocks:t}){if(!t.week_completed&&!t.last_week_completed)return"";const a=(t.week_completed||0)-(t.last_week_completed||0);return a>0?this.$L("\u8F83\u4E0A\u5468")+` +${a}`:a<0?this.$L("\u8F83\u4E0A\u5468")+` ${a}`:this.$L("\u4E0E\u4E0A\u5468\u6301\u5E73")},currentKey({scopeKey:t,focus:a,extraFilter:s}){return s?`${t}|${s.kind}:${s.value}`:`${t}|type:${a}`},currentList({lists:t,currentKey:a}){return t[a]||{list:[],page:1,total:0,hasMore:!1,loading:!0,silent:!1}},focusEmptyTitle({extraFilter:t,focus:a}){if(t)return this.$L("\u5F53\u524D\u7B5B\u9009\u6761\u4EF6\u4E0B\u6682\u65E0\u4EFB\u52A1");switch(a){case"overdue":return this.$L("\u6682\u65E0\u5DF2\u8D85\u671F\u4EFB\u52A1");case"soon":return this.$L("\u672A\u6765 (*) \u5929\u5185\u6682\u65E0\u5230\u671F\u4EFB\u52A1",3);case"hi":return this.$L("\u6682\u65E0\u9AD8\u4F18\u5148\u7EA7\u4EFB\u52A1");case"noowner":return this.$L("\u6240\u6709\u4EFB\u52A1\u5747\u5DF2\u5206\u914D\u8D1F\u8D23\u4EBA");default:return this.$L("\u6682\u65E0\u4EFB\u52A1")}}},watch:{scopeKey(){this.statsToken++,this.statsLoading=!1,this.$emit("stats-loading",!1),this.stats={member_count:0,blocks:{},priority:[],members:[]},this.statsLoadedAt=0,this.lists={},this.listTokens={},this.extraFilter=null,this.memberExpand=!1,this.priorityExpand=!1,this.$emit("stats",this.stats),this.loadAll(!0)}},methods:{deptParams(){const t=(this.cacheDepartmentOwnerIds||[]).map(a=>parseInt(a)).filter(a=>a>0);return t.length>0?{department_owner_ids:t.join(",")}:{}},loadAll(t=!1){const a=this.loadStats(t);return this.loadList(1,t),a},loadStats(t=!1){if(this.statsLoading)return Promise.resolve(!1);if(!t&&this.statsLoadedAt>0&&$A.dayjs().unix()-this.statsLoadedAta!==this.scopeKey||s!==this.statsToken?!1:(this.stats=Object.assign({member_count:0,blocks:{},priority:[],members:[]},e),this.statsLoadedAt=$A.dayjs().unix(),this.$emit("stats",this.stats),!0)).catch(({msg:e})=>(a===this.scopeKey&&s===this.statsToken&&(this.statsLoadedAt=0,e&&$A.messageWarning(e)),!1)).finally(()=>{s===this.statsToken&&(this.statsLoading=!1,this.$emit("stats-loading",!1))})},refreshAll(){return this.loadAll(!0)},listParams(t){var s,e,r;const a=Object.assign(this.deptParams(),{page:t,pagesize:this.pageSize});return((s=this.extraFilter)==null?void 0:s.kind)==="member"?a.member_id=this.extraFilter.value:((e=this.extraFilter)==null?void 0:e.kind)==="level"?a.level=this.extraFilter.value:((r=this.extraFilter)==null?void 0:r.kind)==="type"?a.type=this.extraFilter.value:a.type=this.focus,a},loadList(t=1,a=!1){const s=this.currentKey,e=this.lists[s];if(e!=null&&e.loading||t===1&&!a&&e)return;const r=e||null,i=t>1||a&&r?(r==null?void 0:r.list)||[]:[],o=this.scopeKey,l=(this.listTokens[s]||0)+1;this.$set(this.listTokens,s,l),this.$set(this.lists,s,{list:i,page:t,total:r?r.total:0,hasMore:!1,loading:!0,silent:a&&i.length>0,loadedAt:r?r.loadedAt:0}),this.$store.dispatch("call",{url:"dashboard/team/tasks",data:this.listParams(t)}).then(({data:c})=>{if(o!==this.scopeKey||l!==this.listTokens[s])return;const u=c.data||[];this.$set(this.lists,s,{list:t>1?[...i,...u]:u,page:c.current_page||t,total:c.total||0,hasMore:(c.current_page||t)<(c.last_page||1),loading:!1,silent:!1,loadedAt:$A.dayjs().unix()})}).catch(({msg:c})=>{o===this.scopeKey&&l===this.listTokens[s]&&(this.$set(this.lists,s,{list:i,page:r?r.page:1,total:r?r.total:0,hasMore:r?r.hasMore:!1,loading:!1,silent:!1,loadedAt:r?r.loadedAt:0}),c&&i.length===0&&$A.messageWarning(c))})},loadMore(){!this.currentList.loading&&this.currentList.hasMore&&this.loadList(this.currentList.page+1)},setFocus(t){this.extraFilter=null,this.focus=t,$A.IDBSave("dashboardTeamFocus",t),this.$nextTick(()=>this.loadList())},setFilter(t,a,s){this.extraFilter={kind:t,value:a,label:s},this.$nextTick(()=>{this.loadList(),this.scrollToFocus()})},clearFilter(){this.extraFilter=null,this.$nextTick(()=>this.loadList())},onBlock(t){if(t==="uncompleted"){this.setFilter("type","uncompleted",this.$L("\u672A\u5B8C\u6210"));return}this.setFocus(t),this.scrollToFocus()},onMember(t){this.setFilter("member",t.userid,`${this.$L("\u6210\u5458")}: ${t.nickname}`)},onPriority(t){this.setFilter("level",t.level,`${this.$L("\u4F18\u5148\u7EA7")}: ${t.name}`)},onTask(t){this.$store.dispatch("openTask",t)},scrollToFocus(){this.focusScrollReserved=!0,this.$nextTick(()=>{$A.scrollToView(this.$refs.focusCard,{behavior:"smooth",block:"start"})})},memberBarWidth(t){return`${Math.max(Math.round(t.total/this.memberMax*100),4)}%`},memberProgressDetails(t){const a=Math.max(t.total||0,1);return[{type:"start",label:this.$L("\u5F85\u5904\u7406"),color:"#bcc1cc",count:t.segments.start||0},{type:"progress",label:this.$L("\u8FDB\u884C\u4E2D"),color:"#85acff",count:t.segments.progress||0},{type:"test",label:this.$L("\u9A8C\u6536/\u6D4B\u8BD5"),color:"#8bcf70",count:t.segments.test||0}].filter(s=>s.count>0).map(s=>({...s,percent:Math.round(s.count/a*1e3)/10}))},memberOverduePercent(t){return t.total>0?Math.round(t.overdue/t.total*1e3)/10:0},memberSummary(t){const a=this.$L("(*) \u9879",t.total);return t.overdue>0?`${this.$L("(*) \u8D85\u671F",t.overdue)} \xB7 ${a}`:a}}},p={};var B=d(q,V,z,!1,H,null,null,null);function H(t){for(let a in p)this[a]=p[a]}var U=function(){return B.exports}(),G=function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("div",{staticClass:"page-dashboard"},[s("PageTitle",{attrs:{title:t.$L("\u4EEA\u8868\u76D8")}}),s("Scrollbar",{staticClass:"dashboard-scroller"},[t.warningMsg?s("div",{staticClass:"dashboard-warning"},[s("Alert",{attrs:{type:"warning","show-icon":""}},[s("span",{on:{click:function(e){return t.goForward({name:"manage-setting-license"})}}},[t._v(t._s(t.warningMsg))])])],1):t._e(),s("div",{staticClass:"dashboard-body"},[s("div",{staticClass:"dashboard-header"},[s("div",{staticClass:"header-left"},[t.currentView==="my"?[s("h2",{staticClass:"header-hello"},[t._v(t._s(t.dashboardHello))]),s("div",{staticClass:"header-sub"},[s("span",[t._v(t._s(t.todayText)+" \xB7 "+t._s(t.mySummary))]),s("transition",{attrs:{name:"dashboard-load"}},[t.loadDashboardTasks?s("div",{staticClass:"dashboard-load"},[s("Loading")],1):t._e()])],1)]:[s("h2",{staticClass:"header-hello"},[t._v(t._s(t.$L("\u90E8\u95E8\u4EFB\u52A1\u603B\u89C8")))]),s("div",{staticClass:"header-sub"},[s("span",[t._v(" "+t._s(t.todayText)),t.teamSummary?[t._v(" \xB7 "+t._s(t.teamSummary))]:t._e(),s("EPopover",{attrs:{placement:"bottom-start","popper-class":"dashboard-cache-popper",trigger:"click"},model:{value:t.teamCachePopoverShow,callback:function(e){t.teamCachePopoverShow=e},expression:"teamCachePopoverShow"}},[s("div",{staticClass:"dashboard-cache-popover"},[s("strong",[t._v(t._s(t.$L("\u6570\u636E\u66F4\u65B0\u8BF4\u660E")))]),s("p",[t._v(t._s(t.$L("\u9875\u9762\u7EDF\u8BA1\u6570\u636E\u5728 (*) \u79D2\u5185\u590D\u7528\uFF0C\u91CD\u70B9\u5173\u6CE8\u4EFB\u52A1\u5217\u8868\u9664\u5916\u3002",60)))]),s("span",[t._v(t._s(t.$L("\u4E0A\u6B21\u66F4\u65B0\uFF1A(*)",t.teamStatsUpdatedTime)))]),s("Button",{attrs:{type:"primary",size:"small",loading:t.teamStatsLoading},on:{click:t.refreshTeamDashboard}},[t._v(t._s(t.$L("\u7ACB\u5373\u5237\u65B0")))])],1),s("Icon",{staticClass:"team-cache-help",attrs:{slot:"reference",type:"ios-information-circle-outline"},slot:"reference"})],1)],2)])],t.systemConfig.timezoneDifference?s("div",{staticClass:"header-servertime"},[s("span",[t._v(t._s(t.$L("\u670D\u52A1\u5668\u65F6\u95F4"))+":")]),s("span",[t._v(t._s(t.$A.daytz().format("YYYY-MM-DD HH:mm:ss")))])]):t._e()],2),s("div",{staticClass:"header-right"},[s("div",{staticClass:"header-search",class:{"min-search":t.windowPortrait},on:{click:t.openSearch}},[s("Icon",{attrs:{type:"ios-search"}}),s("span",[t._v(t._s(t.$L("\u641C\u7D22"))+" ("+t._s(t.mateName)+"+F)")])],1),s("div",{directives:[{name:"show",rawName:"v-show",value:!t.windowPortrait,expression:"!windowPortrait"}],ref:"headerSeg",staticClass:"header-seg"},[s("div",{ref:"headerSegInner",staticClass:"seg-inner"},[s("span",{class:{"seg-active":t.currentView==="my"&&t.layout==="list"},on:{click:function(e){return t.setLayout("list")}}},[t._v(t._s(t.$L("\u5217\u8868")))]),s("span",{class:{"seg-active":t.currentView==="my"&&t.layout==="quad"},on:{click:function(e){return t.setLayout("quad")}}},[t._v(t._s(t.$L("\u56DB\u8C61\u9650")))]),t.teamEnabled&&t.currentView==="team"?s("span",{staticClass:"seg-active seg-dept",attrs:{title:t.$L("\u9009\u62E9\u56E2\u961F\u8303\u56F4")},on:{click:function(e){t.deptViewShow=!0}}},[s("em",{staticClass:"dept-name"},[t._v(t._s(t.deptLabel))]),t.teamStats.member_count?s("em",{staticClass:"dept-badge",attrs:{title:t.$L("\u56E2\u961F\u6210\u5458 (*) \u4EBA",t.teamStats.member_count)}},[t._v(t._s(t.teamStats.member_count))]):t.teamStatsLoading?s("div",{staticClass:"dept-load"},[s("Loading")],1):t._e()]):t.teamEnabled?s("span",{on:{click:function(e){return t.setView("team")}}},[t._v(t._s(t.$L("\u90E8\u95E8\u603B\u89C8")))]):t._e()])]),t.windowPortrait?[t.teamEnabled?s("Dropdown",{attrs:{trigger:"click",placement:"bottom-end",transfer:""},on:{"on-click":t.onModeMenu}},[s("div",{staticClass:"header-mode"},[s("i",{staticClass:"taskfont",domProps:{innerHTML:t._s(t.modeIcon)}}),t.currentView==="team"?[t.teamStats.member_count?s("em",{staticClass:"mode-badge"},[t._v(t._s(t.teamStats.member_count>99?"99+":t.teamStats.member_count))]):t.teamStatsLoading?s("div",{staticClass:"mode-load"},[s("Loading")],1):t._e()]:t._e()],2),s("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[s("DropdownItem",{attrs:{name:"list",selected:t.currentView==="my"&&t.layout==="list"}},[s("div",{staticClass:"dashboard-mode-item"},[s("i",{staticClass:"taskfont"},[t._v("\uE894")]),t._v(t._s(t.$L("\u5217\u8868")))])]),s("DropdownItem",{attrs:{name:"quad",selected:t.currentView==="my"&&t.layout==="quad"}},[s("div",{staticClass:"dashboard-mode-item"},[s("i",{staticClass:"taskfont"},[t._v("\uE746")]),t._v(t._s(t.$L("\u56DB\u8C61\u9650")))])]),s("DropdownItem",{attrs:{name:"team",selected:t.currentView==="team"}},[s("div",{staticClass:"dashboard-mode-item"},[s("i",{staticClass:"taskfont"},[t._v("\uE681")]),t._v(t._s(t.$L("\u90E8\u95E8\u603B\u89C8")))])]),t.currentView==="team"?s("DropdownItem",{attrs:{name:"scope",divided:""}},[s("div",{staticClass:"dashboard-mode-item"},[s("span",[t._v(t._s(t.deptScopeLabel))]),t.teamStats.member_count?s("em",{staticClass:"mode-count"},[t._v(t._s(t.$L("(*) \u4EBA",t.teamStats.member_count)))]):t._e(),s("i",{staticClass:"taskfont mode-arrow"},[t._v("\uE700")])])]):t._e()],1)],1):s("div",{staticClass:"header-mode",on:{click:function(e){return t.setLayout(t.layout==="list"?"quad":"list")}}},[s("i",{staticClass:"taskfont",domProps:{innerHTML:t._s(t.modeIcon)}})])]:t._e()],2)]),t.currentView==="my"?[t.layout==="list"?[s("ul",{staticClass:"dashboard-cards personal-panel"},[s("li",{class:{"card-off":t.dashboardTask.overdue_count===0},attrs:{title:t.overdueMaxDays>0?t.$L("\u6700\u4E45 (*) \u5929",t.overdueMaxDays):""},on:{click:function(e){return t.scrollTo("overdue")}}},[s("div",{staticClass:"card-label"},[t._v(t._s(t.getTitle("overdue")))]),s("div",{staticClass:"card-data"},[s("span",{staticClass:"card-num num-red"},[t._v(t._s(t.dashboardTask.overdue_count))])])]),s("li",{class:{"card-off":t.dashboardTask.today_count===0},attrs:{title:t.todayNearest?t.$L("\u6700\u8FD1")+" "+t.todayNearest:""},on:{click:function(e){return t.scrollTo("today")}}},[s("div",{staticClass:"card-label"},[t._v(t._s(t.getTitle("today")))]),s("div",{staticClass:"card-data"},[s("span",{staticClass:"card-num num-orange"},[t._v(t._s(t.dashboardTask.today_count))])])]),s("li",{class:{"card-off":t.dashboardTask.todo_count===0},on:{click:function(e){return t.scrollTo("todo")}}},[s("div",{staticClass:"card-label"},[t._v(t._s(t.getTitle("todo")))]),s("div",{staticClass:"card-data"},[s("span",{staticClass:"card-num"},[t._v(t._s(t.dashboardTask.todo_count))])]),t.upcomingTask.count>0?s("div",{staticClass:"duo-upcoming",on:{click:function(e){return e.stopPropagation(),t.scrollTo("upcoming")}}},[s("div",{staticClass:"side-num"},[t._v(t._s(t.upcomingTask.count))]),s("div",{staticClass:"side-label"},[t._v(t._s(t.$L("\u5F85\u5F00\u59CB")))])]):t._e()]),s("li",{class:{"card-off":t.assistTask.length===0},attrs:{title:t.assistTodayCount>0?t.$L("\u4ECA\u5929 (*) \u9879\u5230\u671F",t.assistTodayCount):""},on:{click:function(e){return t.scrollTo("assist")}}},[s("div",{staticClass:"card-label"},[t._v(t._s(t.getTitle("assist")))]),s("div",{staticClass:"card-data"},[s("span",{staticClass:"card-num"},[t._v(t._s(t.assistTask.length))])])])]),s("div",{staticClass:"dashboard-card my-table"},[t.listColumns.length===0?s("div",{staticClass:"table-all-empty"},[t.loadDashboardTasks!==!1&&t.cacheTasks.length===0?s("div",{staticClass:"empty-state-loading"},[s("Loading")],1):s("div",{staticClass:"empty-state-content"},[s("span",{staticClass:"empty-icon",class:`empty-icon-${t.emptyState}`},[s("Icon",{attrs:{type:t.emptyState==="new"?"md-hand":"md-checkmark"}})],1),s("strong",{staticClass:"empty-state-title"},[t._v(t._s(t.emptyStateTitle))]),s("span",{staticClass:"empty-state-summary"},[t._v(t._s(t.emptyStateSummary))]),t.emptyState==="new"?s("div",{staticClass:"empty-state-actions"},[s("Button",{attrs:{type:"primary",icon:"md-add"},on:{click:t.createProject}},[t._v(t._s(t.$L("\u521B\u5EFA\u7B2C\u4E00\u4E2A\u9879\u76EE")))])],1):t.emptyState==="idle"?s("div",{staticClass:"empty-state-actions"},[s("Button",{attrs:{icon:"md-add"},on:{click:t.createTask}},[t._v(t._s(t.$L("\u65B0\u5EFA\u4EFB\u52A1")))])],1):t._e(),t.emptyState==="new"?s("span",{staticClass:"empty-state-hint"},[t._v(t._s(t.$L("\u5DF2\u6709\u56E2\u961F\uFF1F\u8BF7\u540C\u4E8B\u628A\u4F60\u52A0\u5165\u9879\u76EE\u5373\u53EF")))]):t._e(),t.emptyState==="completed"?s("div",{staticClass:"recent-completed-list"},[s("div",{staticClass:"recent-completed-head"},[s("span",[t._v(t._s(t.$L("\u8FD1\u671F\u5B8C\u6210")))]),s("em",[t._v(t._s(t.$L("\u672C\u5468 (*) \u9879",t.weeklyCompletedCount)))])]),t._l(t.recentCompleted,function(e){return s("div",{key:`recent-${e.id}`,staticClass:"recent-completed-row",on:{click:function(r){return t.openTask(e)}}},[s("Icon",{staticClass:"recent-completed-check",attrs:{type:"md-checkmark-circle"}}),s("span",{staticClass:"recent-completed-name"},[t._v(t._s(e.name))]),s("span",{staticClass:"recent-completed-project"},[t._v(t._s(t.projectName(e)))]),s("span",{staticClass:"recent-completed-time"},[t._v(t._s(t.completedText(e.complete_at)))])],1)})],2):t._e()])]):t._e(),t._l(t.listColumns,function(e){return[s("div",{key:`head-${e.type}`,ref:`group_${e.type}`,refInFor:!0,staticClass:"table-group",class:[`group-${e.type}`,{"group-flash":t.flashType===e.type}],on:{click:function(r){return t.toggleGroup(e.type)}}},[s("i",{staticClass:"group-dot"}),s("span",{staticClass:"group-title"},[t._v(t._s(e.title)+"\uFF08"+t._s(e.count)+"\uFF09")]),s("DashboardIcon",{staticClass:"group-chevron",class:{"chevron-close":e.hidden},attrs:{name:"chevron",size:16}})],1),e.hidden?t._e():[e.list.length===0?s("div",{key:`empty-${e.type}`,staticClass:"table-empty-group"},[s("span",{staticClass:"empty-icon"},[s("Icon",{attrs:{type:"md-checkmark"}})],1),s("span",[t._v(t._s(t.listEmptyText(e.type)))])]):t._e(),s("div",{key:`list-${e.type}`,staticClass:"table-body"},[s("div",{staticClass:"table-row table-thead"},[s("span"),s("span",[s("DashboardIcon",{attrs:{name:"task"}}),t._v(t._s(t.$L("\u4EFB\u52A1")))],1),s("span",{staticClass:"t-project"},[s("DashboardIcon",{attrs:{name:"project"}}),t._v(t._s(t.$L("\u9879\u76EE")))],1),s("span",{staticClass:"t-status"},[s("DashboardIcon",{attrs:{name:"status"}}),t._v(t._s(t.$L("\u72B6\u6001")))],1),s("span",{staticClass:"t-priority"},[s("DashboardIcon",{attrs:{name:"priority"}}),t._v(t._s(t.$L("\u4F18\u5148\u7EA7")))],1),s("span",{staticClass:"t-sub"},[s("DashboardIcon",{attrs:{name:"subtask"}}),t._v(t._s(t.$L("\u5B50\u4EFB\u52A1")))],1),s("span",{staticClass:"t-end"},[s("DashboardIcon",{attrs:{name:"calendar"}}),t._v(t._s(t.$L("\u622A\u6B62\u65F6\u95F4")))],1)]),t._l(t.groupList(e,t.listLimit(e)),function(r){return s("div",{key:`${e.type}-${r.id}`,staticClass:"table-row",class:{complete:r.complete_at},style:t.$A.generateColorVarStyle(r.flow_item_color,[10],"flow-item-custom-color",r.color?{backgroundColor:r.color}:{}),on:{click:function(i){return t.openTask(r)}}},[s("span",{staticClass:"cell-check",on:{click:function(i){i.stopPropagation()}}},[e.type==="assist"&&t.ownerUserid(r)?s("UserAvatar",{attrs:{userid:t.ownerUserid(r),size:22}}):s("TaskMenu",{attrs:{task:r}})],1),s("span",{staticClass:"cell-name"},[s("em",{staticClass:"status-pill name-status",class:r.flow_item_name?r.flow_item_status:{end:!!r.complete_at},on:{click:function(i){return i.stopPropagation(),t.openMenu(i,r)}}},[t._v(t._s(r.flow_item_name||(r.complete_at?t.$L("\u5DF2\u5B8C\u6210"):t.$L("\u672A\u5B8C\u6210"))))]),r.sub_top===!0?s("em",{staticClass:"name-tag"},[t._v(t._s(t.$L("\u5B50\u4EFB\u52A1")))]):t._e(),r.sub_my&&r.sub_my.length>0?s("em",{staticClass:"name-tag"},[t._v("+"+t._s(r.sub_my.length))]):t._e(),t._v(" "+t._s(r.name)+" ")]),s("span",{staticClass:"t-project"},[t._v(t._s(t.projectName(r)))]),s("span",{staticClass:"t-status"},[s("em",{staticClass:"status-pill",class:r.flow_item_name?r.flow_item_status:{end:!!r.complete_at},on:{click:function(i){return i.stopPropagation(),t.openMenu(i,r)}}},[t._v(t._s(r.flow_item_name||(r.complete_at?t.$L("\u5DF2\u5B8C\u6210"):t.$L("\u672A\u5B8C\u6210"))))])]),s("span",{staticClass:"t-priority"},[r.p_name?[s("i",{staticClass:"priority-glyph",style:{backgroundColor:r.p_color}}),s("span",[t._v(t._s(r.p_name))])]:[t._v("\u2014")]],2),s("span",{staticClass:"t-sub"},[r.sub_num>0?[s("i",{staticClass:"sub-bar"},[s("b",{style:{width:`${Math.min(r.sub_complete/r.sub_num*100,100)}%`}})]),s("em",[t._v(t._s(r.sub_complete)+"/"+t._s(r.sub_num))])]:[t._v("\u2014")]],2),s("span",{staticClass:"t-end",class:t.deadlineClass(r.end_at),attrs:{title:r.end_at}},[t._v(t._s(t.deadlineText(r.end_at)||"\u2014"))])])}),e.list.length>t.listLimit(e)&&!t.expandedGroups.includes(e.type)?s("div",{key:`more-${e.type}`,staticClass:"card-more",on:{click:function(r){return t.expandedGroups.push(e.type)}}},[t._v(t._s(t.$L("\u8FD8\u6709 (*) \u9879",e.list.length-t.listLimit(e)))+" \u2192")]):t._e()],2)]]})],2)]:s("div",{staticClass:"dashboard-quad"},t._l(t.columns,function(e){return s("div",{key:e.type,staticClass:"dashboard-card quad-card",class:[`group-${e.type}`]},[s("div",{staticClass:"quad-head"},[s("i",{staticClass:"group-dot"}),s("span",{staticClass:"group-title"},[t._v(t._s(e.title))]),s("span",{staticClass:"quad-num"},[t._v("\uFF08"+t._s(e.count)+"\uFF09")])]),t._l(t.groupList(e,t.quadLimit),function(r){return s("div",{key:r.id,staticClass:"quad-row",class:{complete:r.complete_at},style:t.$A.generateColorVarStyle(r.flow_item_color,[10],"flow-item-custom-color",r.color?{backgroundColor:r.color}:{}),on:{click:function(i){return t.openTask(r)}}},[s("span",{staticClass:"cell-check",on:{click:function(i){i.stopPropagation()}}},[e.type==="assist"&&t.ownerUserid(r)?s("UserAvatar",{attrs:{userid:t.ownerUserid(r),size:22}}):s("TaskMenu",{attrs:{task:r}})],1),s("span",{staticClass:"cell-name"},[t._v(t._s(r.name))]),s("em",{staticClass:"status-pill",class:r.flow_item_name?r.flow_item_status:{end:!!r.complete_at},on:{click:function(i){return i.stopPropagation(),t.openMenu(i,r)}}},[t._v(t._s(r.flow_item_name||(r.complete_at?t.$L("\u5DF2\u5B8C\u6210"):t.$L("\u672A\u5B8C\u6210"))))]),s("span",{staticClass:"quad-priority",attrs:{title:r.p_name}},[r.p_name?s("i",{staticClass:"priority-glyph",style:{backgroundColor:r.p_color}}):t._e(),s("span",[t._v(t._s(r.p_name||"\u2014"))])]),s("span",{staticClass:"quad-sub"},[t._v(t._s(r.sub_num>0?`${r.sub_complete}/${r.sub_num}`:"\u2014"))]),s("span",{staticClass:"t-end",class:t.deadlineClass(r.end_at),attrs:{title:r.end_at}},[t._v(t._s(t.deadlineText(r.end_at)||"\u2014"))])])}),e.list.length===0?s("div",{staticClass:"quad-empty"},[s("span",{staticClass:"dashboard-empty-art"},[s("img",{staticClass:"empty-art-light",attrs:{src:t.emptyArt,width:"147",height:"123",alt:""}}),s("img",{staticClass:"empty-art-dark",attrs:{src:t.emptyDarkArt,width:"150",height:"150",alt:""}})]),s("span",[t._v(t._s(t.quadEmptyText(e.type)))])]):e.list.length<=t.quadLimit?s("div",{staticClass:"quad-filler"},[t._v(" "+t._s(e.type==="today"&&e.list.length===1?t.$L("\u4ECA\u5929\u53EA\u6709\u8FD9\u4E00\u9879\uFF0C\u5904\u7406\u5B8C\u5C31\u8F7B\u677E\u4E86"):t.$L("\u5168\u90E8\u663E\u793A\u5B8C\u6BD5"))+" ")]):e.list.length>t.quadLimit?s("div",{staticClass:"card-more",on:{click:function(r){return t.toggleExpand(e.type)}}},[t._v(" "+t._s(t.expandedGroups.includes(e.type)?t.$L("\u6536\u8D77"):t.$L("\u5C55\u5F00\u663E\u793A\u66F4\u591A"))+" "),s("DashboardIcon",{class:{"more-expanded":t.expandedGroups.includes(e.type)},attrs:{name:"chevron",size:12}})],1):t._e()],2)}),0)]:t._e(),s("keep-alive",[t.currentView==="team"?s("DashboardTeam",{ref:"dashboardTeam",attrs:{"initial-focus":t.teamFocusPref},on:{stats:function(e){t.teamStats=e},"stats-loading":function(e){t.teamStatsLoading=e}}}):t._e()],1)],2)]),s("DepartmentOwnerView",{attrs:{"scope-only":""},model:{value:t.deptViewShow,callback:function(e){t.deptViewShow=e},expression:"deptViewShow"}})],1)},N=[];const n={view:"my",layout:"list",overrides:{},focus:"overdue"},R={components:{TaskMenu:C,DashboardTeam:U,DashboardIcon:y,DepartmentOwnerView:S},mixins:[f],data(){return{emptyArt:$A.mainUrl("images/dashboard/empty.svg"),emptyDarkArt:$A.mainUrl("images/dashboard/empty-black.svg"),licenseTimer:null,view:n.view,layout:n.layout,collapsedOverrides:n.overrides,strategySnapshot:null,teamFocusPref:n.focus,expandedGroups:[],groupLimit:10,completedLimit:5,quadLimit:7,flashType:"",flashTimer:null,deptViewShow:!1,teamStats:{member_count:0,blocks:{}},teamStatsLoading:!1,teamCachePopoverShow:!1,mateName:/macintosh|mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl",warningMsg:""}},async beforeRouteEnter(t,a,s){n.view=await $A.IDBString("dashboardView","my"),n.layout=await $A.IDBString("dashboardLayout","list"),n.focus=await $A.IDBString("dashboardTeamFocus","overdue");const e=$A.jsonParse(await $A.IDBString("dashboardCollapsed",""),{});n.overrides=e.date===$A.daytz().format("YYYY-MM-DD")&&$A.isJson(e.overrides)?e.overrides:{},s(r=>{r.view=["my","team"].includes(n.view)?n.view:"my",r.layout=["list","quad"].includes(n.layout)?n.layout:"list",r.collapsedOverrides=n.overrides,r.teamFocusPref=n.focus})},mounted(){this.segObserver=new ResizeObserver(this.syncSegWidth),this.segObserver.observe(this.$refs.headerSegInner)},beforeDestroy(){var t;(t=this.segObserver)==null||t.disconnect(),this.segObserver=null},activated(){this.loadInterval(!0),this.loadLicense(!0),this.takeSnapshot()},deactivated(){this.$store.dispatch("forgetTaskCompleteTemp",!0),this.loadInterval(!1),this.loadLicense(!1)},computed:{...v(["systemConfig","userInfo","userIsAdmin","cacheProjects","cacheTasks","cacheDepartmentOwnerIds","taskCompleteTemps","loadDashboardTasks"]),...$(["dashboardTask","assistTask","transforTasks"]),teamEnabled({systemConfig:t,userInfo:a}){return t.department_owner_project_view==="open"&&(a.managed_departments||[]).length>0},currentView({view:t,teamEnabled:a}){return a&&t==="team"?"team":"my"},upcomingTask({cacheTasks:t,taskCompleteTemps:a}){const s=$A.daytz(),e=(o,l=!0)=>o.archived_at||o.complete_at&&l===!0||!o.start_at||$A.dayjs(o.start_at)<=s?!1:o.owner==1;let r=t.filter(o=>e(o));const i=r.length;if(a.length>0){const o=t.filter(l=>a.includes(l.id)&&e(l,!1));o.length>0&&(r=r.concat(o))}return{count:i,list:r}},columns({dashboardTask:t,assistTask:a}){const s=[];return["overdue","today","todo"].some(e=>{let r=this.transforTasks(t[e]);s.push({type:e,title:this.getTitle(e),hidden:this.isCollapsed(e),count:t[`${e}_count`],list:r.sort((i,o)=>$A.sortDay(i.end_at||"2099-12-31 23:59:59",o.end_at||"2099-12-31 23:59:59"))})}),s.push({type:"assist",title:this.getTitle("assist"),hidden:this.isCollapsed("assist"),count:a.length,list:a.sort((e,r)=>$A.sortDay(e.end_at||"2099-12-31 23:59:59",r.end_at||"2099-12-31 23:59:59"))}),s},listAllColumns({columns:t,upcomingTask:a}){const s=[...t];return s.splice(3,0,{type:"upcoming",title:this.getTitle("upcoming"),hidden:this.isCollapsed("upcoming"),count:a.count,list:this.transforTasks(a.list).sort((e,r)=>$A.sortDay(e.start_at,r.start_at))}),s},currentListColumns({listAllColumns:t}){return t.filter(a=>a.list.length>0)},weeklyCompleted({cacheTasks:t,taskCompleteTemps:a,nowTime:s}){const e=$A.daytz(s),r=e.clone().startOf("day").subtract((e.day()+6)%7,"day"),i=r.clone().add(7,"day");return t.filter(o=>{if(o.archived_at||!o.complete_at||o.owner!=1||a.includes(o.id))return!1;const l=$A.dayjs(o.complete_at);return l.valueOf()>=r.valueOf()&&l.valueOf()$A.sortDay(l.complete_at,o.complete_at))},weeklyCompletedCount({weeklyCompleted:t}){return t.length},recentCompleted({weeklyCompleted:t,completedLimit:a}){return t.slice(0,a)},completedColumn({weeklyCompleted:t,weeklyCompletedCount:a}){return{type:"completed",title:this.getTitle("completed"),hidden:this.isCollapsed("completed"),count:a,list:t}},listColumns({currentListColumns:t,completedColumn:a}){return t.length===0?[]:a.count>0?[...t,a]:t},emptyState({weeklyCompletedCount:t,cacheProjects:a,cacheTasks:s}){if(t>0)return"completed";const e=s.some(r=>!r.archived_at);return a.length===0&&!e?"new":"idle"},emptyStateTitle({emptyState:t}){return t==="completed"?this.$L("\u592A\u68D2\u4E86\uFF0C\u4EFB\u52A1\u5168\u90E8\u6E05\u7A7A"):t==="new"?this.$L("\u6B22\u8FCE\u4F7F\u7528 DooTask"):this.$L("\u5F53\u524D\u6CA1\u6709\u5F85\u5904\u7406\u4EFB\u52A1")},emptyStateSummary({emptyState:t,weeklyCompletedCount:a}){return t==="completed"?this.$L("\u672C\u5468\u5B8C\u6210\u4E86 (*) \u9879\u4EFB\u52A1",a):t==="new"?this.$L("\u9879\u76EE\u662F\u4EFB\u52A1\u4E0E\u534F\u4F5C\u7684\u8D77\u70B9\uFF0C\u521B\u5EFA\u4E00\u4E2A\u5F00\u59CB"):this.$L("\u53EF\u4EE5\u65B0\u5EFA\u4E00\u9879\u4EFB\u52A1\uFF0C\u6216\u7B49\u5F85\u65B0\u7684\u5DE5\u4F5C\u5B89\u6392")},overdueMaxDays({dashboardTask:t,nowTime:a}){const s=$A.daytz(a).startOf("day");return(t.overdue||[]).reduce((e,r)=>r.end_at?Math.max(e,s.diff($A.dayjs(r.end_at).startOf("day"),"day")):e,0)},todayNearest({dashboardTask:t}){const a=(t.today||[]).filter(e=>e.end_at);if(a.length===0)return"";const s=a.reduce((e,r)=>e===null||r.end_ate.end_at&&$A.dayjs(e.end_at).format("YYYY-MM-DD")===s).length},todayText({nowTime:t}){const a=$A.daytz(t),s=[this.$L("\u5468\u65E5"),this.$L("\u5468\u4E00"),this.$L("\u5468\u4E8C"),this.$L("\u5468\u4E09"),this.$L("\u5468\u56DB"),this.$L("\u5468\u4E94"),this.$L("\u5468\u516D")];return`${this.$L("(*)\u6708(*)\u65E5",a.month()+1,a.date())} ${s[a.day()]}`},mySummary({dashboardTask:t}){return t.overdue_count>0?this.$L("\u6709 (*) \u9879\u5DF2\u8D85\u671F\uFF0C\u5EFA\u8BAE\u5148\u5904\u7406",t.overdue_count):t.today_count>0?this.$L("\u6709 (*) \u9879\u4ECA\u65E5\u5230\u671F",t.today_count):this.$L("\u4ECA\u65E5\u65E0\u5230\u671F\u4EFB\u52A1")},teamSummary({teamStats:t}){const a=t.blocks||{};return a.overdue>0?a.overdue_owner_count>0?this.$L("\u56E2\u961F\u6709 (*) \u9879\u5DF2\u8D85\u671F\uFF0C\u6D89\u53CA (*) \u4EBA",a.overdue,a.overdue_owner_count):this.$L("\u56E2\u961F\u6709 (*) \u9879\u5DF2\u8D85\u671F",a.overdue):a.week_completed>0?this.$L("\u56E2\u961F\u672C\u5468\u5DF2\u5B8C\u6210 (*) \u9879",a.week_completed):""},teamStatsUpdatedTime({teamStats:t}){return t.generated_at?$A.dayjs(t.generated_at).format("HH:mm:ss"):"--"},deptSelected({userInfo:t,cacheDepartmentOwnerIds:a}){const s=(t.managed_departments||[]).map(i=>({...i,id:parseInt(i.id)})),e=(a||[]).map(i=>parseInt(i)),r=e.length>0?s.filter(i=>e.includes(i.id)):s;return{managed:s,selected:r,all:r.length===0||r.length===s.length}},deptLabel({deptSelected:t}){const{managed:a,selected:s,all:e}=t;return e?a.length===1?a[0].name:this.$L("\u90E8\u95E8\u603B\u89C8"):s.length===1?s[0].name:`${s[0].name} +${s.length-1}`},deptScopeLabel({deptSelected:t,deptLabel:a}){return t.all&&t.managed.length>1?this.$L("\u5168\u90E8\u90E8\u95E8"):a},modeIcon({currentView:t,layout:a}){return t==="team"?"":a==="quad"?"":""},dashboardHello({systemConfig:t,userInfo:a,nowTime:s}){if(t.system_welcome)return this.$L(t.system_welcome).replace(/\{username}/g,a.nickname);const e=$A.daytz(s).hour();return e<5?this.$L("\u591C\u6DF1\u4E86\uFF0C(*)",a.nickname):e<11?this.$L("\u65E9\u4E0A\u597D\uFF0C(*)",a.nickname):e<14?this.$L("\u4E2D\u5348\u597D\uFF0C(*)",a.nickname):e<18?this.$L("\u4E0B\u5348\u597D\uFF0C(*)",a.nickname):this.$L("\u665A\u4E0A\u597D\uFF0C(*)",a.nickname)}},watch:{windowActive(t){this.routeName==="manage-dashboard"&&(this.loadInterval(t),this.loadLicense(t))}},methods:{getTitle(t){switch(t){case"today":return this.$L("\u4ECA\u65E5\u5230\u671F");case"overdue":return this.$L("\u5DF2\u8D85\u671F");case"todo":return this.$L("\u5F85\u5B8C\u6210");case"upcoming":return this.$L("\u5F85\u5F00\u59CB");case"assist":return this.$L("\u6211\u534F\u52A9\u7684");case"completed":return this.$L("\u672C\u5468\u5B8C\u6210");default:return""}},setView(t){this.view=t,t!=="team"&&(this.teamCachePopoverShow=!1),n.view=t,$A.IDBSave("dashboardView",t)},syncSegWidth(){const t=this.$refs.headerSeg,a=this.$refs.headerSegInner;if(!t||!a||a.offsetWidth===0)return;const s=window.getComputedStyle(t),e=parseFloat(s.paddingLeft)+parseFloat(s.paddingRight);t.style.width=`${a.offsetWidth+e}px`},onModeMenu(t){t==="team"?this.setView("team"):t==="scope"?this.deptViewShow=!0:this.setLayout(t)},setLayout(t){this.view!=="my"&&this.setView("my"),this.layout=t,n.layout=t,$A.IDBSave("dashboardLayout",t)},isCollapsed(t){const a=this.collapsedOverrides[t];return a?a==="close":(this.strategySnapshot||[]).includes(t)},takeSnapshot(){const t={overdue:this.dashboardTask.overdue_count,today:this.dashboardTask.today_count,upcoming:this.upcomingTask.count,assist:this.assistTask.length},a=[];t.upcoming>0&&(t.overdue>0||t.today>0)&&a.push("upcoming"),this.strategySnapshot=a},toggleGroup(t){this.$set(this.collapsedOverrides,t,this.isCollapsed(t)?"open":"close"),n.overrides=this.collapsedOverrides,$A.IDBSave("dashboardCollapsed",JSON.stringify({date:$A.daytz().format("YYYY-MM-DD"),overrides:this.collapsedOverrides}))},toggleExpand(t){this.expandedGroups.includes(t)?this.expandedGroups=this.expandedGroups.filter(a=>a!==t):this.expandedGroups.push(t)},groupList(t,a){return this.expandedGroups.includes(t.type)?t.list:t.list.slice(0,a)},listLimit(t){return t.type==="completed"?this.completedLimit:this.groupLimit},listEmptyText(t){switch(t){case"overdue":return this.$L("\u6682\u65E0\u5DF2\u8D85\u671F\u4EFB\u52A1");case"today":return this.$L("\u6682\u65E0\u4ECA\u65E5\u5230\u671F\u4EFB\u52A1");case"todo":return this.$L("\u6682\u65E0\u5F85\u5B8C\u6210\u4EFB\u52A1");case"upcoming":return this.$L("\u6682\u65E0\u5F85\u5F00\u59CB\u4EFB\u52A1");case"assist":return this.$L("\u6682\u65E0\u534F\u52A9\u7684\u4EFB\u52A1");default:return this.$L("\u6682\u65E0\u4EFB\u52A1")}},quadEmptyText(t){switch(t){case"overdue":return this.$L("\u6CA1\u6709\u8D85\u671F\u4EFB\u52A1\uFF0C\u4FDD\u6301\u4F4F");case"today":return this.$L("\u4ECA\u65E5\u65E0\u5230\u671F\u4EFB\u52A1");case"todo":return this.$L("\u6682\u65E0\u5F85\u5B8C\u6210\u4EFB\u52A1");case"assist":return this.$L("\u6682\u65E0\u534F\u52A9\u7684\u4EFB\u52A1");default:return this.$L("\u6682\u65E0\u4EFB\u52A1")}},scrollTo(t){const a=this.listAllColumns.find(s=>s.type===t);!a||a.count===0||(this.isCollapsed(t)&&this.toggleGroup(t),this.$nextTick(s=>{const e=this.$refs[`group_${t}`];e&&e[0]&&($A.scrollToView(e[0],{behavior:"smooth",block:"start"}),this.flashType=t,this.flashTimer&&clearTimeout(this.flashTimer),this.flashTimer=setTimeout(r=>this.flashType="",1600))}))},refreshTeamDashboard(){var t;(t=this.$refs.dashboardTeam)==null||t.refreshAll().then(a=>{a&&(this.teamCachePopoverShow=!1,$A.messageSuccess("\u5237\u65B0\u6210\u529F"))})},projectName(t){const a=this.cacheProjects.find(({id:s})=>s==t.project_id);return a?a.name:""},ownerUserid(t){const a=(t.task_user||[]).find(s=>s.owner===1);return a?a.userid:0},openSearch(){b.emit("openSearch",null)},openTask(t){this.$store.dispatch("openTask",t)},createTask(){this.$emit("on-click","addTask")},createProject(){this.$emit("on-click","addProject")},completedText(t){if(!t)return"";const a=$A.dayjs(t),s=$A.daytz(this.nowTime);return a.format("YYYY-MM-DD")===s.format("YYYY-MM-DD")?`${this.$L("\u4ECA\u5929")} ${a.format("HH:mm")}`:a.format("YYYY-MM-DD")===s.clone().subtract(1,"day").format("YYYY-MM-DD")?`${this.$L("\u6628\u5929")} ${a.format("HH:mm")}`:`${this.$L("(*)\u6708(*)\u65E5",a.month()+1,a.date())} ${a.format("HH:mm")}`},openMenu(t,a){this.$store.state.taskOperation={event:t,task:a}},loadLicense(t){this.licenseTimer&&(clearTimeout(this.licenseTimer),this.licenseTimer=null),!(t===!1||!this.userIsAdmin)&&(this.licenseTimer=setTimeout(a=>{this.$store.dispatch("call",{url:"system/license",data:{type:"error"}}).then(({data:s})=>{this.warningMsg=s.error.length>0?s.error[0]:""}).catch(s=>{this.warningMsg=""})},1500))}}},_={};var K=d(R,G,N,!1,W,null,null,null);function W(t){for(let a in _)this[a]=_[a]}var Nt=function(){return K.exports}();export{Nt as default};
diff --git a/public/js/build/dashboard.a79ba6ba.js b/public/js/build/dashboard.a79ba6ba.js
deleted file mode 100644
index b1afd017e..000000000
--- a/public/js/build/dashboard.a79ba6ba.js
+++ /dev/null
@@ -1 +0,0 @@
-import{m as v,a as $}from"./vuex.cc7cb26e.js";import{n as d,h as C,e as b}from"./app.818b057c.js";import{u as L,i as g,a as w,b as k,c as T}from"./echarts.523e56b1.js";import{D as x}from"./DepartmentOwnerView.2b37b86c.js";import"./jquery.c87f487f.js";import"./@babel.9410f858.js";import"./dayjs.fd4aa75c.js";import"./localforage.8de7c27e.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./vue.adba9046.js";import"./openpgp_hi.15f91b1d.js";import"./axios.37c7f908.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./view-design-hi.24419422.js";import"./html-to-md.f297036e.js";import"./lodash.8fcd6fd4.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vuedraggable.f464b992.js";import"./sortablejs.3488b922.js";import"./vue-resize-observer.5af23a43.js";import"./element-sea.f8a64907.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";import"./zrender.6f9469d4.js";import"./tslib.891692d0.js";var f={data(){return{nowTime:$A.dayjs().unix(),nowInter:null}},methods:{deadlineClass(t){if(!t)return"";const a=$A.dayjs(t),s=$A.daytz(this.nowTime);return a<=s?"end-overdue":a.format("YYYY-MM-DD")===s.format("YYYY-MM-DD")?"end-today":""},deadlineText(t){if(!t)return"";const a=$A.dayjs(t),s=$A.daytz(this.nowTime);if(a<=s){const e=s.startOf("day").diff(a.startOf("day"),"day");return e>0?this.$L("\u903E\u671F (*) \u5929",e):this.$L("\u903E\u671F (*) \u5C0F\u65F6",Math.max(s.diff(a,"hour"),1))}return a.format("YYYY-MM-DD")===s.format("YYYY-MM-DD")?`${this.$L("\u4ECA\u5929")} ${a.format("HH:mm")}`:a.format("YYYY-MM-DD")===s.clone().add(1,"day").format("YYYY-MM-DD")?`${this.$L("\u660E\u5929")} ${a.format("HH:mm")}`:a.year()===s.year()?a.format("MM-DD"):a.format("YYYY-MM-DD")},loadInterval(t){this.nowInter&&(clearInterval(this.nowInter),this.nowInter=null),t!==!1&&(this.nowInter=setInterval(a=>{this.nowTime=$A.dayjs().unix()},10*1e3))}}},D=function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("img",{staticClass:"dashboard-icon",attrs:{src:t.$A.mainUrl(`images/dashboard/${t.name}.svg`),width:t.size,height:t.size,alt:"","aria-hidden":"true"}})},S=[];const A={props:{name:{type:String,required:!0},size:{type:Number,default:14}}},p={};var M=d(A,D,S,!1,Y,"7ff1ad89",null,null);function Y(t){for(let a in p)this[a]=p[a]}var y=function(){return M.exports}(),I=function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("div",{staticClass:"dashboard-priority-chart"},[s("div",{ref:"chart",staticClass:"priority-chart-canvas",attrs:{"aria-label":t.$L("\u4F18\u5148\u7EA7\u5206\u5E03")}}),s("div",{staticClass:"priority-chart-total"},[s("strong",{class:{"total-long":String(t.total).length>5}},[t._v(t._s(t.total))]),s("span",[t._v(t._s(t.$L("\u672A\u5B8C\u6210\u4EFB\u52A1")))])])])},j=[];L([g,w,k]);const P={props:{items:{type:Array,default:()=>[]},total:{type:Number,default:0}},watch:{items:{deep:!0,handler(){this.renderChart()}}},mounted(){this.chart=T(this.$refs.chart),this.chart.on("click",t=>{const a=this.items[t.dataIndex];a&&this.$emit("select",a)}),this.renderChart()},beforeDestroy(){this.chart&&this.chart.dispose()},methods:{renderChart(){!this.chart||this.chart.setOption({tooltip:{trigger:"item",confine:!0},series:[{type:"pie",radius:[70,90],center:["50%","50%"],startAngle:180,minAngle:3,padAngle:2.72,label:{show:!1},labelLine:{show:!1},stillShowZeroSum:!1,emptyCircleStyle:{color:"#e9ebef"},itemStyle:{borderWidth:0,borderRadius:4,shadowBlur:0},emphasis:{scaleSize:10,itemStyle:{borderWidth:0,shadowBlur:0}},data:this.items.map(t=>({name:t.name,value:t.num,itemStyle:{color:t.color||"#bbc2db",opacity:.55}}))}]})}}},h={};var F=d(P,I,j,!1,z,"104a8125",null,null);function z(t){for(let a in h)this[a]=h[a]}var E=function(){return F.exports}(),O=function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("div",{staticClass:"dashboard-team"},[s("ul",{staticClass:"dashboard-cards"},[s("li",{staticClass:"stat-uncompleted",on:{click:function(e){return t.onBlock("uncompleted")}}},[s("div",{staticClass:"card-label"},[t._v(t._s(t.$L("\u672A\u5B8C\u6210")))]),s("div",{staticClass:"card-data"},[s("span",{staticClass:"card-num"},[t._v(t._s(t.blocks.uncompleted||0))])])]),s("li",{staticClass:"stat-overdue",on:{click:function(e){return t.onBlock("overdue")}}},[s("div",{staticClass:"card-label"},[t._v(t._s(t.$L("\u5DF2\u8D85\u671F")))]),s("div",{staticClass:"card-data"},[s("span",{staticClass:"card-num num-red"},[t._v(t._s(t.blocks.overdue||0))]),t.blocks.overdue_owner_count?s("span",{staticClass:"card-sub"},[t._v(t._s(t.$L("\u6D89\u53CA (*) \u4EBA",t.blocks.overdue_owner_count)))]):t._e()])]),s("li",{staticClass:"stat-soon",on:{click:function(e){return t.onBlock("soon")}}},[s("div",{staticClass:"card-label"},[t._v(t._s(t.$L("(*) \u5929\u5185\u5230\u671F",3)))]),s("div",{staticClass:"card-data"},[s("span",{staticClass:"card-num num-orange"},[t._v(t._s(t.blocks.due_soon||0))])])]),s("li",{staticClass:"card-static stat-completed",attrs:{title:t.weekDiffText}},[s("div",{staticClass:"card-label"},[t._v(t._s(t.$L("\u672C\u5468\u5B8C\u6210")))]),s("div",{staticClass:"card-data"},[s("span",{staticClass:"card-num num-green"},[t._v(t._s(t.blocks.week_completed||0))])])])]),s("div",{staticClass:"team-duo"},[s("div",{staticClass:"dashboard-card team-members"},[s("div",{staticClass:"card-head"},[s("span",{staticClass:"head-title"},[t._v(t._s(t.$L("\u6210\u5458\u4EFB\u52A1\u5206\u914D")))]),s("span",{staticClass:"head-legend"},[s("span",[s("i",{staticStyle:{background:"#bcc1cc"}}),t._v(t._s(t.$L("\u5F85\u5904\u7406")))]),s("span",[s("i",{staticStyle:{background:"#85acff"}}),t._v(t._s(t.$L("\u8FDB\u884C\u4E2D")))]),s("span",[s("i",{staticStyle:{background:"#8bcf70"}}),t._v(t._s(t.$L("\u9A8C\u6536/\u6D4B\u8BD5")))])])]),t.showStatsLoading?s("div",{staticClass:"team-stats-loading"},[s("Loading")],1):[s("ul",{staticClass:"member-list"},[t._l(t.visibleMembers,function(e){return s("li",{key:e.userid,staticClass:"member-row",on:{click:function(r){return t.onMember(e)}}},[s("UserAvatar",{staticClass:"team-avatar",attrs:{userid:e.userid,size:24}}),s("span",{staticClass:"member-name"},[t._v(t._s(e.nickname))]),s("ETooltip",{attrs:{disabled:t.$isEEUIApp||t.$store.state.windowTouch||e.total===0,"open-delay":300,effect:"light",placement:"top","popper-class":"dashboard-member-progress-popper"}},[s("span",{staticClass:"member-track"},[s("span",{staticClass:"member-bar",style:{width:t.memberBarWidth(e)}},[e.segments.start>0?s("i",{style:{flex:e.segments.start,background:"#bcc1cc"}}):t._e(),e.segments.progress>0?s("i",{style:{flex:e.segments.progress,background:"#85acff"}}):t._e(),e.segments.test>0?s("i",{style:{flex:e.segments.test,background:"#8bcf70"}}):t._e()])]),s("div",{staticClass:"member-progress-tooltip",attrs:{slot:"content"},slot:"content"},[s("span",{staticClass:"progress-tooltip-title"},[t._v(t._s(t.$L("\u4EFB\u52A1\u6982\u51B5")))]),s("div",{staticClass:"progress-tooltip-row"},[s("span",{staticClass:"progress-tooltip-label"},[t._v(t._s(t.$L("\u672A\u5B8C\u6210\u603B\u6570")))]),s("strong",[t._v(t._s(t.$L("(*) \u9879",e.total)))])]),s("div",{staticClass:"progress-tooltip-row row-overdue"},[s("span",{staticClass:"progress-tooltip-label"},[t._v(t._s(t.$L("\u5DF2\u8D85\u671F")))]),s("strong",[t._v(t._s(t.$L("(*) \u9879",e.overdue))+" \xB7 "+t._s(t.memberOverduePercent(e))+"%")])]),s("span",{staticClass:"progress-tooltip-title title-stage"},[t._v(t._s(t.$L("\u6D41\u7A0B\u9636\u6BB5")))]),t._l(t.memberProgressDetails(e),function(r){return s("div",{key:r.type,staticClass:"progress-tooltip-row"},[s("span",{staticClass:"progress-tooltip-label"},[s("i",{style:{background:r.color}}),t._v(t._s(r.label))]),s("strong",[t._v(t._s(t.$L("(*) \u9879",r.count))+" \xB7 "+t._s(r.percent)+"%")])])})],2)]),s("span",{staticClass:"member-num",attrs:{title:t.memberSummary(e)}},[e.overdue>0?s("em",{staticClass:"num-overdue"},[t._v(t._s(t.$L("(*) \u8D85\u671F",e.overdue))+" \xB7 ")]):t._e(),t._v(t._s(t.$L("(*) \u9879",e.total))+" ")])],1)}),t.blocks.no_owner>0?s("li",{staticClass:"member-row member-noowner",on:{click:function(e){return t.onBlock("noowner")}}},[s("span",{staticClass:"mock-avatar avatar-none"},[t._v("?")]),s("span",{staticClass:"member-name"},[t._v(t._s(t.$L("\u672A\u5206\u914D")))]),s("span",{staticClass:"member-track"},[s("span",{staticClass:"member-bar bar-hatched",style:{width:t.memberBarWidth({total:t.blocks.no_owner})}})]),s("span",{staticClass:"member-num num-noowner"},[t._v(t._s(t.$L("(*) \u9879",t.blocks.no_owner)))])]):t._e()],2),t.members.length>t.memberLimit?s("div",{staticClass:"card-more",on:{click:function(e){t.memberExpand=!t.memberExpand}}},[t._v(" "+t._s(t.memberExpand?t.$L("\u6536\u8D77"):t.$L("\u67E5\u770B\u5168\u90E8 (*) \u4EBA",t.members.length)+" \u2192")+" ")]):t._e()]],2),s("div",{staticClass:"dashboard-card team-priority"},[s("div",{staticClass:"card-head"},[s("span",{staticClass:"head-title"},[t._v(t._s(t.$L("\u4F18\u5148\u7EA7\u5206\u5E03")))]),t.showStatsLoading?t._e():s("span",{staticClass:"head-note"},[t._v(t._s(t.$L("\u672A\u5B8C\u6210 (*) \u9879",t.blocks.uncompleted||0)))])]),t.showStatsLoading?s("div",{staticClass:"team-stats-loading"},[s("Loading")],1):s("div",{staticClass:"priority-distribution"},[s("DashboardPriorityChart",{attrs:{items:t.priorityList,total:t.blocks.uncompleted||0},on:{select:t.onPriority}}),s("div",{staticClass:"priority-list"},[t._l(t.visiblePriorityList,function(e){return s("button",{key:e.level,staticClass:"priority-row",attrs:{type:"button"},on:{click:function(r){return t.onPriority(e)}}},[s("div",{staticClass:"priority-head"},[s("i",{staticClass:"priority-dot",style:{backgroundColor:e.color}}),s("span",{staticClass:"priority-name"},[t._v(t._s(e.name))]),s("span",{staticClass:"priority-num"},[t._v(t._s(t.$L("(*) \u9879",e.num))+" \xB7 "+t._s(e.percent)+"%")])])])}),t.priorityList.length>t.priorityLimit?s("div",{staticClass:"priority-tip priority-more",on:{click:function(e){t.priorityExpand=!t.priorityExpand}}},[t._v(" "+t._s(t.priorityExpand?t.$L("\u6536\u8D77"):t.$L("\u67E5\u770B\u5168\u90E8 (*) \u4E2A\u4F18\u5148\u7EA7",t.priorityList.length)+" \u2192")+" ")]):t._e(),t.priorityList.length===0?s("span",{staticClass:"priority-tip"},[t._v(t._s(t.$L("\u6682\u65E0\u6570\u636E")))]):t._e()],2)],1)])]),s("div",{staticClass:"team-focus-section",class:{"focus-scroll-reserve":t.focusScrollReserved}},[s("div",{ref:"focusCard",staticClass:"dashboard-card team-focus"},[s("div",{staticClass:"card-head focus-head"},[t._l(t.chips,function(e){return s("span",{key:e.type,staticClass:"focus-chip",class:[`chip-${e.type}`,{"chip-active":!t.extraFilter&&t.focus===e.type}],on:{click:function(r){return t.setFocus(e.type)}}},[t._v(t._s(e.label)+" "+t._s(e.num))])}),t.extraFilter?s("span",{staticClass:"focus-chip chip-extra chip-active",on:{click:t.clearFilter}},[t._v(" "+t._s(t.extraFilter.label)),s("i",[t._v("\xD7")])]):t._e()],2),s("div",{staticClass:"focus-table"},[s("div",{staticClass:"focus-row focus-thead"},[s("span",[s("DashboardIcon",{attrs:{name:"task"}}),t._v(t._s(t.$L("\u4EFB\u52A1")))],1),s("span",{staticClass:"f-project"},[s("DashboardIcon",{attrs:{name:"project"}}),t._v(t._s(t.$L("\u9879\u76EE")))],1),s("span",{staticClass:"f-owner"},[s("DashboardIcon",{attrs:{name:"owner"}}),t._v(t._s(t.$L("\u8D1F\u8D23\u4EBA")))],1),s("span",{staticClass:"f-priority"},[s("DashboardIcon",{attrs:{name:"priority"}}),t._v(t._s(t.$L("\u4F18\u5148\u7EA7")))],1),s("span",{staticClass:"f-status"},[s("DashboardIcon",{attrs:{name:"status"}}),t._v(t._s(t.$L("\u72B6\u6001")))],1),s("span",{staticClass:"f-end"},[s("DashboardIcon",{attrs:{name:"calendar"}}),t._v(t._s(t.$L("\u622A\u6B62\u65F6\u95F4")))],1)]),t._l(t.currentList.list,function(e){return s("div",{key:e.id,staticClass:"focus-row",on:{click:function(r){return t.onTask(e)}}},[s("span",{staticClass:"f-name"},[t._v(t._s(e.name))]),s("span",{staticClass:"f-project"},[t._v(t._s(e.project_name))]),s("span",{staticClass:"f-owner"},[e.owner?[s("UserAvatar",{staticClass:"team-avatar",attrs:{userid:e.owner.userid,size:24}}),s("span",{staticClass:"owner-name"},[t._v(t._s(e.owner.nickname))]),e.owners.length>1?s("em",{staticClass:"owner-more"},[t._v("+"+t._s(e.owners.length-1))]):t._e()]:[s("span",{staticClass:"mock-avatar avatar-none"},[t._v("?")]),s("em",{staticClass:"owner-none"},[t._v(t._s(t.$L("\u5F85\u5206\u914D")))])]],2),s("span",{staticClass:"f-priority"},[e.p_name?[s("i",{staticClass:"priority-glyph",style:{backgroundColor:e.p_color}}),s("span",[t._v(t._s(e.p_name))])]:[t._v("\u2014")]],2),s("span",{staticClass:"f-status"},[s("em",{staticClass:"status-pill",class:e.flow_item_name?e.flow_item_status:""},[t._v(t._s(e.flow_item_name||t.$L("\u672A\u5B8C\u6210")))])]),s("span",{staticClass:"f-end",class:t.deadlineClass(e.end_at)},[t._v(t._s(t.deadlineText(e.end_at)||"\u2014"))])])}),t.currentList.loading&&!t.currentList.silent?s("div",{staticClass:"focus-loading"},[s("Loading")],1):t.currentList.list.length===0?s("div",{staticClass:"focus-empty"},[s("span",{staticClass:"focus-empty-icon"},[s("Icon",{attrs:{type:"md-checkmark"}})],1),s("strong",[t._v(t._s(t.focusEmptyTitle))]),s("span",[t._v(t._s(t.$L("\u53EF\u4EE5\u5207\u6362\u4E0A\u65B9\u6761\u4EF6\u67E5\u770B\u5176\u4ED6\u4EFB\u52A1")))])]):t.currentList.hasMore?s("div",{staticClass:"card-more",on:{click:t.loadMore}},[t._v(t._s(t.$L("\u52A0\u8F7D\u66F4\u591A"))+"\uFF08"+t._s(t.$L("\u8FD8\u6709 (*) \u9879",t.currentList.total-t.currentList.list.length))+"\uFF09")]):t.currentList.total>t.pageSize?s("div",{staticClass:"card-more more-done"},[t._v(t._s(t.$L("\u5168\u90E8\u663E\u793A\u5B8C\u6BD5")))]):t._e()],2)])])])},V=[];const B={name:"DashboardTeam",components:{DashboardIcon:y,DashboardPriorityChart:E},mixins:[f],props:{initialFocus:{type:String,default:"overdue"}},data(){return{stats:{member_count:0,blocks:{},priority:[],members:[]},statsLoading:!1,statsLoadedAt:0,statsToken:0,focus:["overdue","soon","hi","noowner"].includes(this.initialFocus)?this.initialFocus:"overdue",extraFilter:null,lists:{},listTokens:{},pageSize:20,refreshSeconds:60,memberLimit:5,memberExpand:!1,priorityLimit:6,priorityExpand:!1,focusScrollReserved:!1}},created(){this.loadAll()},activated(){this.loadInterval(!0),this.statsLoadedAt>0&&$A.dayjs().unix()-this.statsLoadedAt>=this.refreshSeconds&&this.loadAll(!0)},deactivated(){this.loadInterval(!1),this.focusScrollReserved=!1},beforeDestroy(){this.loadInterval(!1)},computed:{...v(["cacheDepartmentOwnerIds"]),scopeKey({cacheDepartmentOwnerIds:t}){const a=(t||[]).map(s=>parseInt(s)).filter(s=>s>0).sort((s,e)=>s-e);return a.length>0?a.join(","):"all"},blocks({stats:t}){return t.blocks||{}},members({stats:t}){return t.members||[]},visibleMembers({members:t,memberExpand:a,memberLimit:s}){return a?t:t.slice(0,s)},showStatsLoading({statsLoading:t,statsLoadedAt:a}){return t&&a===0},memberMax({members:t,blocks:a}){return Math.max(...t.map(s=>s.total),a.no_owner||0,1)},priorityList({stats:t,blocks:a}){const s=Math.max(a.uncompleted||0,1);return(t.priority||[]).filter(e=>e.num>0).map(e=>({...e,name:e.name||this.$L("\u672A\u8BBE\u7F6E"),percent:Math.round(e.num/s*100)}))},visiblePriorityList({priorityList:t,priorityExpand:a,priorityLimit:s}){return a?t:t.slice(0,s)},highPriorityChip({stats:t,blocks:a}){const s=(t.priority||[]).filter(e=>e.level>0).slice(0,2);return{label:s.map(e=>e.name).join(" / ")||this.$L("\u9AD8\u4F18\u5148\u7EA7"),num:s.reduce((e,r)=>e+r.num,0)}},chips({blocks:t,highPriorityChip:a}){return[{type:"overdue",label:this.$L("\u5DF2\u8D85\u671F"),num:t.overdue||0},{type:"soon",label:this.$L("(*) \u5929\u5185\u5230\u671F",3),num:t.due_soon||0},{type:"hi",label:a.label,num:a.num},{type:"noowner",label:this.$L("\u672A\u5206\u914D\u8D1F\u8D23\u4EBA"),num:t.no_owner||0}]},weekDiffText({blocks:t}){if(!t.week_completed&&!t.last_week_completed)return"";const a=(t.week_completed||0)-(t.last_week_completed||0);return a>0?this.$L("\u8F83\u4E0A\u5468")+` +${a}`:a<0?this.$L("\u8F83\u4E0A\u5468")+` ${a}`:this.$L("\u4E0E\u4E0A\u5468\u6301\u5E73")},currentKey({scopeKey:t,focus:a,extraFilter:s}){return s?`${t}|${s.kind}:${s.value}`:`${t}|type:${a}`},currentList({lists:t,currentKey:a}){return t[a]||{list:[],page:1,total:0,hasMore:!1,loading:!0,silent:!1}},focusEmptyTitle({extraFilter:t,focus:a}){if(t)return this.$L("\u5F53\u524D\u7B5B\u9009\u6761\u4EF6\u4E0B\u6682\u65E0\u4EFB\u52A1");switch(a){case"overdue":return this.$L("\u6682\u65E0\u5DF2\u8D85\u671F\u4EFB\u52A1");case"soon":return this.$L("\u672A\u6765 (*) \u5929\u5185\u6682\u65E0\u5230\u671F\u4EFB\u52A1",3);case"hi":return this.$L("\u6682\u65E0\u9AD8\u4F18\u5148\u7EA7\u4EFB\u52A1");case"noowner":return this.$L("\u6240\u6709\u4EFB\u52A1\u5747\u5DF2\u5206\u914D\u8D1F\u8D23\u4EBA");default:return this.$L("\u6682\u65E0\u4EFB\u52A1")}}},watch:{scopeKey(){this.statsToken++,this.statsLoading=!1,this.$emit("stats-loading",!1),this.stats={member_count:0,blocks:{},priority:[],members:[]},this.statsLoadedAt=0,this.lists={},this.listTokens={},this.extraFilter=null,this.memberExpand=!1,this.priorityExpand=!1,this.$emit("stats",this.stats),this.loadAll(!0)}},methods:{deptParams(){const t=(this.cacheDepartmentOwnerIds||[]).map(a=>parseInt(a)).filter(a=>a>0);return t.length>0?{department_owner_ids:t.join(",")}:{}},loadAll(t=!1){const a=this.loadStats(t);return this.loadList(1,t),a},loadStats(t=!1){if(this.statsLoading)return Promise.resolve(!1);if(!t&&this.statsLoadedAt>0&&$A.dayjs().unix()-this.statsLoadedAta!==this.scopeKey||s!==this.statsToken?!1:(this.stats=Object.assign({member_count:0,blocks:{},priority:[],members:[]},e),this.statsLoadedAt=$A.dayjs().unix(),this.$emit("stats",this.stats),!0)).catch(({msg:e})=>(a===this.scopeKey&&s===this.statsToken&&(this.statsLoadedAt=0,e&&$A.messageWarning(e)),!1)).finally(()=>{s===this.statsToken&&(this.statsLoading=!1,this.$emit("stats-loading",!1))})},refreshAll(){return this.loadAll(!0)},listParams(t){var s,e,r;const a=Object.assign(this.deptParams(),{page:t,pagesize:this.pageSize});return((s=this.extraFilter)==null?void 0:s.kind)==="member"?a.member_id=this.extraFilter.value:((e=this.extraFilter)==null?void 0:e.kind)==="level"?a.level=this.extraFilter.value:((r=this.extraFilter)==null?void 0:r.kind)==="type"?a.type=this.extraFilter.value:a.type=this.focus,a},loadList(t=1,a=!1){const s=this.currentKey,e=this.lists[s];if(e!=null&&e.loading||t===1&&!a&&e)return;const r=e||null,i=t>1||a&&r?(r==null?void 0:r.list)||[]:[],o=this.scopeKey,l=(this.listTokens[s]||0)+1;this.$set(this.listTokens,s,l),this.$set(this.lists,s,{list:i,page:t,total:r?r.total:0,hasMore:!1,loading:!0,silent:a&&i.length>0,loadedAt:r?r.loadedAt:0}),this.$store.dispatch("call",{url:"dashboard/team/tasks",data:this.listParams(t)}).then(({data:c})=>{if(o!==this.scopeKey||l!==this.listTokens[s])return;const u=c.data||[];this.$set(this.lists,s,{list:t>1?[...i,...u]:u,page:c.current_page||t,total:c.total||0,hasMore:(c.current_page||t)<(c.last_page||1),loading:!1,silent:!1,loadedAt:$A.dayjs().unix()})}).catch(({msg:c})=>{o===this.scopeKey&&l===this.listTokens[s]&&(this.$set(this.lists,s,{list:i,page:r?r.page:1,total:r?r.total:0,hasMore:r?r.hasMore:!1,loading:!1,silent:!1,loadedAt:r?r.loadedAt:0}),c&&i.length===0&&$A.messageWarning(c))})},loadMore(){!this.currentList.loading&&this.currentList.hasMore&&this.loadList(this.currentList.page+1)},setFocus(t){this.extraFilter=null,this.focus=t,$A.IDBSave("dashboardTeamFocus",t),this.$nextTick(()=>this.loadList())},setFilter(t,a,s){this.extraFilter={kind:t,value:a,label:s},this.$nextTick(()=>{this.loadList(),this.scrollToFocus()})},clearFilter(){this.extraFilter=null,this.$nextTick(()=>this.loadList())},onBlock(t){if(t==="uncompleted"){this.setFilter("type","uncompleted",this.$L("\u672A\u5B8C\u6210"));return}this.setFocus(t),this.scrollToFocus()},onMember(t){this.setFilter("member",t.userid,`${this.$L("\u6210\u5458")}: ${t.nickname}`)},onPriority(t){this.setFilter("level",t.level,`${this.$L("\u4F18\u5148\u7EA7")}: ${t.name}`)},onTask(t){this.$store.dispatch("openTask",t)},scrollToFocus(){this.focusScrollReserved=!0,this.$nextTick(()=>{$A.scrollToView(this.$refs.focusCard,{behavior:"smooth",block:"start"})})},memberBarWidth(t){return`${Math.max(Math.round(t.total/this.memberMax*100),4)}%`},memberProgressDetails(t){const a=Math.max(t.total||0,1);return[{type:"start",label:this.$L("\u5F85\u5904\u7406"),color:"#bcc1cc",count:t.segments.start||0},{type:"progress",label:this.$L("\u8FDB\u884C\u4E2D"),color:"#85acff",count:t.segments.progress||0},{type:"test",label:this.$L("\u9A8C\u6536/\u6D4B\u8BD5"),color:"#8bcf70",count:t.segments.test||0}].filter(s=>s.count>0).map(s=>({...s,percent:Math.round(s.count/a*1e3)/10}))},memberOverduePercent(t){return t.total>0?Math.round(t.overdue/t.total*1e3)/10:0},memberSummary(t){const a=this.$L("(*) \u9879",t.total);return t.overdue>0?`${this.$L("(*) \u8D85\u671F",t.overdue)} \xB7 ${a}`:a}}},m={};var q=d(B,O,V,!1,H,null,null,null);function H(t){for(let a in m)this[a]=m[a]}var U=function(){return q.exports}(),G=function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("div",{staticClass:"page-dashboard"},[s("PageTitle",{attrs:{title:t.$L("\u4EEA\u8868\u76D8")}}),s("Scrollbar",{staticClass:"dashboard-scroller"},[t.warningMsg?s("div",{staticClass:"dashboard-warning"},[s("Alert",{attrs:{type:"warning","show-icon":""}},[s("span",{on:{click:function(e){return t.goForward({name:"manage-setting-license"})}}},[t._v(t._s(t.warningMsg))])])],1):t._e(),s("div",{staticClass:"dashboard-body"},[s("div",{staticClass:"dashboard-header"},[s("div",{staticClass:"header-left"},[t.currentView==="my"?[s("h2",{staticClass:"header-hello"},[t._v(t._s(t.dashboardHello))]),s("div",{staticClass:"header-sub"},[s("span",[t._v(t._s(t.todayText)+" \xB7 "+t._s(t.mySummary))]),s("transition",{attrs:{name:"dashboard-load"}},[t.loadDashboardTasks?s("div",{staticClass:"dashboard-load"},[s("Loading")],1):t._e()])],1)]:[s("h2",{staticClass:"header-hello"},[t._v(t._s(t.$L("\u90E8\u95E8\u4EFB\u52A1\u603B\u89C8")))]),s("div",{staticClass:"header-sub"},[s("span",[t._v(" "+t._s(t.todayText)),t.teamSummary?[t._v(" \xB7 "+t._s(t.teamSummary))]:t._e(),s("EPopover",{attrs:{placement:"bottom-start","popper-class":"dashboard-cache-popper",trigger:"click"},model:{value:t.teamCachePopoverShow,callback:function(e){t.teamCachePopoverShow=e},expression:"teamCachePopoverShow"}},[s("div",{staticClass:"dashboard-cache-popover"},[s("strong",[t._v(t._s(t.$L("\u6570\u636E\u66F4\u65B0\u8BF4\u660E")))]),s("p",[t._v(t._s(t.$L("\u9875\u9762\u7EDF\u8BA1\u6570\u636E\u5728 (*) \u79D2\u5185\u590D\u7528\uFF0C\u91CD\u70B9\u5173\u6CE8\u4EFB\u52A1\u5217\u8868\u9664\u5916\u3002",60)))]),s("span",[t._v(t._s(t.$L("\u4E0A\u6B21\u66F4\u65B0\uFF1A(*)",t.teamStatsUpdatedTime)))]),s("Button",{attrs:{type:"primary",size:"small",loading:t.teamStatsLoading},on:{click:t.refreshTeamDashboard}},[t._v(t._s(t.$L("\u7ACB\u5373\u5237\u65B0")))])],1),s("Icon",{staticClass:"team-cache-help",attrs:{slot:"reference",type:"ios-information-circle-outline"},slot:"reference"})],1)],2)])],t.systemConfig.timezoneDifference?s("div",{staticClass:"header-servertime"},[s("span",[t._v(t._s(t.$L("\u670D\u52A1\u5668\u65F6\u95F4"))+":")]),s("span",[t._v(t._s(t.$A.daytz().format("YYYY-MM-DD HH:mm:ss")))])]):t._e()],2),s("div",{staticClass:"header-right"},[s("div",{staticClass:"header-search",class:{"min-search":t.windowPortrait},on:{click:t.openSearch}},[s("Icon",{attrs:{type:"ios-search"}}),s("span",[t._v(t._s(t.$L("\u641C\u7D22"))+" ("+t._s(t.mateName)+"+F)")])],1),t.currentView==="my"?s("div",{staticClass:"header-seg"},[s("span",{class:{"seg-active":t.layout==="list"},on:{click:function(e){return t.setLayout("list")}}},[t._v(t._s(t.$L("\u5217\u8868")))]),s("span",{class:{"seg-active":t.layout==="quad"},on:{click:function(e){return t.setLayout("quad")}}},[t._v(t._s(t.$L("\u56DB\u8C61\u9650")))])]):s("div",{staticClass:"header-dept",on:{click:function(e){t.deptViewShow=!0}}},[s("Icon",{attrs:{type:"md-people"}}),s("span",[t._v(t._s(t.deptLabel))]),t.teamStats.member_count?s("em",{staticClass:"dept-badge"},[t._v(t._s(t.teamStats.member_count))]):t._e()],1),t.teamEnabled?s("div",{staticClass:"header-seg"},[s("span",{class:{"seg-active":t.currentView==="my"},on:{click:function(e){return t.setView("my")}}},[t._v(t._s(t.$L("\u4E2A\u4EBA\u89C6\u89D2")))]),s("span",{class:{"seg-active":t.currentView==="team"},on:{click:function(e){return t.setView("team")}}},[t._v(t._s(t.$L("\u90E8\u95E8\u8D1F\u8D23\u4EBA")))])]):t._e()])]),t.currentView==="my"?[t.layout==="list"?[s("ul",{staticClass:"dashboard-cards personal-panel"},[s("li",{class:{"card-off":t.dashboardTask.overdue_count===0},attrs:{title:t.overdueMaxDays>0?t.$L("\u6700\u4E45 (*) \u5929",t.overdueMaxDays):""},on:{click:function(e){return t.scrollTo("overdue")}}},[s("div",{staticClass:"card-label"},[t._v(t._s(t.getTitle("overdue")))]),s("div",{staticClass:"card-data"},[s("span",{staticClass:"card-num num-red"},[t._v(t._s(t.dashboardTask.overdue_count))])])]),s("li",{class:{"card-off":t.dashboardTask.today_count===0},attrs:{title:t.todayNearest?t.$L("\u6700\u8FD1")+" "+t.todayNearest:""},on:{click:function(e){return t.scrollTo("today")}}},[s("div",{staticClass:"card-label"},[t._v(t._s(t.getTitle("today")))]),s("div",{staticClass:"card-data"},[s("span",{staticClass:"card-num num-orange"},[t._v(t._s(t.dashboardTask.today_count))])])]),s("li",{class:{"card-off":t.dashboardTask.todo_count===0},on:{click:function(e){return t.scrollTo("todo")}}},[s("div",{staticClass:"card-label"},[t._v(t._s(t.getTitle("todo")))]),s("div",{staticClass:"card-data"},[s("span",{staticClass:"card-num"},[t._v(t._s(t.dashboardTask.todo_count))])]),t.upcomingTask.count>0?s("div",{staticClass:"duo-upcoming",on:{click:function(e){return e.stopPropagation(),t.scrollTo("upcoming")}}},[s("div",{staticClass:"side-num"},[t._v(t._s(t.upcomingTask.count))]),s("div",{staticClass:"side-label"},[t._v(t._s(t.$L("\u5F85\u5F00\u59CB")))])]):t._e()]),s("li",{class:{"card-off":t.assistTask.length===0},attrs:{title:t.assistTodayCount>0?t.$L("\u4ECA\u5929 (*) \u9879\u5230\u671F",t.assistTodayCount):""},on:{click:function(e){return t.scrollTo("assist")}}},[s("div",{staticClass:"card-label"},[t._v(t._s(t.getTitle("assist")))]),s("div",{staticClass:"card-data"},[s("span",{staticClass:"card-num"},[t._v(t._s(t.assistTask.length))])])])]),s("div",{staticClass:"dashboard-card my-table"},[t.listColumns.length===0?s("div",{staticClass:"table-all-empty"},[t.loadDashboardTasks!==!1&&t.cacheTasks.length===0?s("div",{staticClass:"empty-state-loading"},[s("Loading")],1):s("div",{staticClass:"empty-state-content"},[s("span",{staticClass:"empty-icon",class:`empty-icon-${t.emptyState}`},[s("Icon",{attrs:{type:t.emptyState==="new"?"md-hand":"md-checkmark"}})],1),s("strong",{staticClass:"empty-state-title"},[t._v(t._s(t.emptyStateTitle))]),s("span",{staticClass:"empty-state-summary"},[t._v(t._s(t.emptyStateSummary))]),t.emptyState==="new"?s("div",{staticClass:"empty-state-actions"},[s("Button",{attrs:{type:"primary",icon:"md-add"},on:{click:t.createProject}},[t._v(t._s(t.$L("\u521B\u5EFA\u7B2C\u4E00\u4E2A\u9879\u76EE")))])],1):t.emptyState==="idle"?s("div",{staticClass:"empty-state-actions"},[s("Button",{attrs:{icon:"md-add"},on:{click:t.createTask}},[t._v(t._s(t.$L("\u65B0\u5EFA\u4EFB\u52A1")))])],1):t._e(),t.emptyState==="new"?s("span",{staticClass:"empty-state-hint"},[t._v(t._s(t.$L("\u5DF2\u6709\u56E2\u961F\uFF1F\u8BF7\u540C\u4E8B\u628A\u4F60\u52A0\u5165\u9879\u76EE\u5373\u53EF")))]):t._e(),t.emptyState==="completed"?s("div",{staticClass:"recent-completed-list"},[s("div",{staticClass:"recent-completed-head"},[s("span",[t._v(t._s(t.$L("\u8FD1\u671F\u5B8C\u6210")))]),s("em",[t._v(t._s(t.$L("\u672C\u5468 (*) \u9879",t.weeklyCompletedCount)))])]),t._l(t.recentCompleted,function(e){return s("div",{key:`recent-${e.id}`,staticClass:"recent-completed-row",on:{click:function(r){return t.openTask(e)}}},[s("Icon",{staticClass:"recent-completed-check",attrs:{type:"md-checkmark-circle"}}),s("span",{staticClass:"recent-completed-name"},[t._v(t._s(e.name))]),s("span",{staticClass:"recent-completed-project"},[t._v(t._s(t.projectName(e)))]),s("span",{staticClass:"recent-completed-time"},[t._v(t._s(t.completedText(e.complete_at)))])],1)})],2):t._e()])]):t._e(),t._l(t.listColumns,function(e){return[s("div",{key:`head-${e.type}`,ref:`group_${e.type}`,refInFor:!0,staticClass:"table-group",class:[`group-${e.type}`,{"group-flash":t.flashType===e.type}],on:{click:function(r){return t.toggleGroup(e.type)}}},[s("i",{staticClass:"group-dot"}),s("span",{staticClass:"group-title"},[t._v(t._s(e.title)+"\uFF08"+t._s(e.count)+"\uFF09")]),s("DashboardIcon",{staticClass:"group-chevron",class:{"chevron-close":e.hidden},attrs:{name:"chevron",size:16}})],1),e.hidden?t._e():[e.list.length===0?s("div",{key:`empty-${e.type}`,staticClass:"table-empty-group"},[s("span",{staticClass:"empty-icon"},[s("Icon",{attrs:{type:"md-checkmark"}})],1),s("span",[t._v(t._s(t.listEmptyText(e.type)))])]):t._e(),s("div",{key:`list-${e.type}`,staticClass:"table-body"},[s("div",{staticClass:"table-row table-thead"},[s("span"),s("span",[s("DashboardIcon",{attrs:{name:"task"}}),t._v(t._s(t.$L("\u4EFB\u52A1")))],1),s("span",{staticClass:"t-project"},[s("DashboardIcon",{attrs:{name:"project"}}),t._v(t._s(t.$L("\u9879\u76EE")))],1),s("span",{staticClass:"t-status"},[s("DashboardIcon",{attrs:{name:"status"}}),t._v(t._s(t.$L("\u72B6\u6001")))],1),s("span",{staticClass:"t-priority"},[s("DashboardIcon",{attrs:{name:"priority"}}),t._v(t._s(t.$L("\u4F18\u5148\u7EA7")))],1),s("span",{staticClass:"t-sub"},[s("DashboardIcon",{attrs:{name:"subtask"}}),t._v(t._s(t.$L("\u5B50\u4EFB\u52A1")))],1),s("span",{staticClass:"t-end"},[s("DashboardIcon",{attrs:{name:"calendar"}}),t._v(t._s(t.$L("\u622A\u6B62\u65F6\u95F4")))],1)]),t._l(t.groupList(e,t.listLimit(e)),function(r){return s("div",{key:`${e.type}-${r.id}`,staticClass:"table-row",class:{complete:r.complete_at},style:t.$A.generateColorVarStyle(r.flow_item_color,[10],"flow-item-custom-color",r.color?{backgroundColor:r.color}:{}),on:{click:function(i){return t.openTask(r)}}},[s("span",{staticClass:"cell-check",on:{click:function(i){i.stopPropagation()}}},[e.type==="assist"&&t.ownerUserid(r)?s("UserAvatar",{attrs:{userid:t.ownerUserid(r),size:22}}):s("TaskMenu",{attrs:{task:r}})],1),s("span",{staticClass:"cell-name"},[s("em",{staticClass:"status-pill name-status",class:r.flow_item_name?r.flow_item_status:{end:!!r.complete_at},on:{click:function(i){return i.stopPropagation(),t.openMenu(i,r)}}},[t._v(t._s(r.flow_item_name||(r.complete_at?t.$L("\u5DF2\u5B8C\u6210"):t.$L("\u672A\u5B8C\u6210"))))]),r.sub_top===!0?s("em",{staticClass:"name-tag"},[t._v(t._s(t.$L("\u5B50\u4EFB\u52A1")))]):t._e(),r.sub_my&&r.sub_my.length>0?s("em",{staticClass:"name-tag"},[t._v("+"+t._s(r.sub_my.length))]):t._e(),t._v(" "+t._s(r.name)+" ")]),s("span",{staticClass:"t-project"},[t._v(t._s(t.projectName(r)))]),s("span",{staticClass:"t-status"},[s("em",{staticClass:"status-pill",class:r.flow_item_name?r.flow_item_status:{end:!!r.complete_at},on:{click:function(i){return i.stopPropagation(),t.openMenu(i,r)}}},[t._v(t._s(r.flow_item_name||(r.complete_at?t.$L("\u5DF2\u5B8C\u6210"):t.$L("\u672A\u5B8C\u6210"))))])]),s("span",{staticClass:"t-priority"},[r.p_name?[s("i",{staticClass:"priority-glyph",style:{backgroundColor:r.p_color}}),s("span",[t._v(t._s(r.p_name))])]:[t._v("\u2014")]],2),s("span",{staticClass:"t-sub"},[r.sub_num>0?[s("i",{staticClass:"sub-bar"},[s("b",{style:{width:`${Math.min(r.sub_complete/r.sub_num*100,100)}%`}})]),s("em",[t._v(t._s(r.sub_complete)+"/"+t._s(r.sub_num))])]:[t._v("\u2014")]],2),s("span",{staticClass:"t-end",class:t.deadlineClass(r.end_at),attrs:{title:r.end_at}},[t._v(t._s(t.deadlineText(r.end_at)||"\u2014"))])])}),e.list.length>t.listLimit(e)&&!t.expandedGroups.includes(e.type)?s("div",{key:`more-${e.type}`,staticClass:"card-more",on:{click:function(r){return t.expandedGroups.push(e.type)}}},[t._v(t._s(t.$L("\u8FD8\u6709 (*) \u9879",e.list.length-t.listLimit(e)))+" \u2192")]):t._e()],2)]]})],2)]:s("div",{staticClass:"dashboard-quad"},t._l(t.columns,function(e){return s("div",{key:e.type,staticClass:"dashboard-card quad-card",class:[`group-${e.type}`]},[s("div",{staticClass:"quad-head"},[s("i",{staticClass:"group-dot"}),s("span",{staticClass:"group-title"},[t._v(t._s(e.title))]),s("span",{staticClass:"quad-num"},[t._v("\uFF08"+t._s(e.count)+"\uFF09")])]),t._l(t.groupList(e,t.quadLimit),function(r){return s("div",{key:r.id,staticClass:"quad-row",class:{complete:r.complete_at},style:t.$A.generateColorVarStyle(r.flow_item_color,[10],"flow-item-custom-color",r.color?{backgroundColor:r.color}:{}),on:{click:function(i){return t.openTask(r)}}},[s("span",{staticClass:"cell-check",on:{click:function(i){i.stopPropagation()}}},[e.type==="assist"&&t.ownerUserid(r)?s("UserAvatar",{attrs:{userid:t.ownerUserid(r),size:22}}):s("TaskMenu",{attrs:{task:r}})],1),s("span",{staticClass:"cell-name"},[t._v(t._s(r.name))]),s("em",{staticClass:"status-pill",class:r.flow_item_name?r.flow_item_status:{end:!!r.complete_at},on:{click:function(i){return i.stopPropagation(),t.openMenu(i,r)}}},[t._v(t._s(r.flow_item_name||(r.complete_at?t.$L("\u5DF2\u5B8C\u6210"):t.$L("\u672A\u5B8C\u6210"))))]),s("span",{staticClass:"quad-priority",attrs:{title:r.p_name}},[r.p_name?s("i",{staticClass:"priority-glyph",style:{backgroundColor:r.p_color}}):t._e(),s("span",[t._v(t._s(r.p_name||"\u2014"))])]),s("span",{staticClass:"quad-sub"},[t._v(t._s(r.sub_num>0?`${r.sub_complete}/${r.sub_num}`:"\u2014"))]),s("span",{staticClass:"t-end",class:t.deadlineClass(r.end_at),attrs:{title:r.end_at}},[t._v(t._s(t.deadlineText(r.end_at)||"\u2014"))])])}),e.list.length===0?s("div",{staticClass:"quad-empty"},[s("span",{staticClass:"dashboard-empty-art"},[s("img",{staticClass:"empty-art-light",attrs:{src:t.emptyArt,width:"147",height:"123",alt:""}}),s("img",{staticClass:"empty-art-dark",attrs:{src:t.emptyDarkArt,width:"150",height:"150",alt:""}})]),s("span",[t._v(t._s(t.quadEmptyText(e.type)))])]):e.list.length<=t.quadLimit?s("div",{staticClass:"quad-filler"},[t._v(" "+t._s(e.type==="today"&&e.list.length===1?t.$L("\u4ECA\u5929\u53EA\u6709\u8FD9\u4E00\u9879\uFF0C\u5904\u7406\u5B8C\u5C31\u8F7B\u677E\u4E86"):t.$L("\u5168\u90E8\u663E\u793A\u5B8C\u6BD5"))+" ")]):e.list.length>t.quadLimit?s("div",{staticClass:"card-more",on:{click:function(r){return t.toggleExpand(e.type)}}},[t._v(" "+t._s(t.expandedGroups.includes(e.type)?t.$L("\u6536\u8D77"):t.$L("\u5C55\u5F00\u663E\u793A\u66F4\u591A"))+" "),s("DashboardIcon",{class:{"more-expanded":t.expandedGroups.includes(e.type)},attrs:{name:"chevron",size:12}})],1):t._e()],2)}),0)]:t._e(),s("keep-alive",[t.currentView==="team"?s("DashboardTeam",{ref:"dashboardTeam",attrs:{"initial-focus":t.teamFocusPref},on:{stats:function(e){t.teamStats=e},"stats-loading":function(e){t.teamStatsLoading=e}}}):t._e()],1)],2)]),s("DepartmentOwnerView",{attrs:{"scope-only":""},model:{value:t.deptViewShow,callback:function(e){t.deptViewShow=e},expression:"deptViewShow"}})],1)},N=[];const n={view:"my",layout:"list",overrides:{},focus:"overdue"},K={components:{TaskMenu:C,DashboardTeam:U,DashboardIcon:y,DepartmentOwnerView:x},mixins:[f],data(){return{emptyArt:$A.mainUrl("images/dashboard/empty.svg"),emptyDarkArt:$A.mainUrl("images/dashboard/empty-black.svg"),licenseTimer:null,view:n.view,layout:n.layout,collapsedOverrides:n.overrides,strategySnapshot:null,teamFocusPref:n.focus,expandedGroups:[],groupLimit:10,completedLimit:5,quadLimit:7,flashType:"",flashTimer:null,deptViewShow:!1,teamStats:{member_count:0,blocks:{}},teamStatsLoading:!1,teamCachePopoverShow:!1,mateName:/macintosh|mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl",warningMsg:""}},async beforeRouteEnter(t,a,s){n.view=await $A.IDBString("dashboardView","my"),n.layout=await $A.IDBString("dashboardLayout","list"),n.focus=await $A.IDBString("dashboardTeamFocus","overdue");const e=$A.jsonParse(await $A.IDBString("dashboardCollapsed",""),{});n.overrides=e.date===$A.daytz().format("YYYY-MM-DD")&&$A.isJson(e.overrides)?e.overrides:{},s(r=>{r.view=["my","team"].includes(n.view)?n.view:"my",r.layout=["list","quad"].includes(n.layout)?n.layout:"list",r.collapsedOverrides=n.overrides,r.teamFocusPref=n.focus})},activated(){this.loadInterval(!0),this.loadLicense(!0),this.takeSnapshot()},deactivated(){this.$store.dispatch("forgetTaskCompleteTemp",!0),this.loadInterval(!1),this.loadLicense(!1)},computed:{...v(["systemConfig","userInfo","userIsAdmin","cacheProjects","cacheTasks","cacheDepartmentOwnerIds","taskCompleteTemps","loadDashboardTasks"]),...$(["dashboardTask","assistTask","transforTasks"]),teamEnabled({systemConfig:t,userInfo:a}){return t.department_owner_project_view==="open"&&(a.managed_departments||[]).length>0},currentView({view:t,teamEnabled:a}){return a&&t==="team"?"team":"my"},upcomingTask({cacheTasks:t,taskCompleteTemps:a}){const s=$A.daytz(),e=(o,l=!0)=>o.archived_at||o.complete_at&&l===!0||!o.start_at||$A.dayjs(o.start_at)<=s?!1:o.owner==1;let r=t.filter(o=>e(o));const i=r.length;if(a.length>0){const o=t.filter(l=>a.includes(l.id)&&e(l,!1));o.length>0&&(r=r.concat(o))}return{count:i,list:r}},columns({dashboardTask:t,assistTask:a}){const s=[];return["overdue","today","todo"].some(e=>{let r=this.transforTasks(t[e]);s.push({type:e,title:this.getTitle(e),hidden:this.isCollapsed(e),count:t[`${e}_count`],list:r.sort((i,o)=>$A.sortDay(i.end_at||"2099-12-31 23:59:59",o.end_at||"2099-12-31 23:59:59"))})}),s.push({type:"assist",title:this.getTitle("assist"),hidden:this.isCollapsed("assist"),count:a.length,list:a.sort((e,r)=>$A.sortDay(e.end_at||"2099-12-31 23:59:59",r.end_at||"2099-12-31 23:59:59"))}),s},listAllColumns({columns:t,upcomingTask:a}){const s=[...t];return s.splice(3,0,{type:"upcoming",title:this.getTitle("upcoming"),hidden:this.isCollapsed("upcoming"),count:a.count,list:this.transforTasks(a.list).sort((e,r)=>$A.sortDay(e.start_at,r.start_at))}),s},currentListColumns({listAllColumns:t}){return t.filter(a=>a.list.length>0)},weeklyCompleted({cacheTasks:t,taskCompleteTemps:a,nowTime:s}){const e=$A.daytz(s),r=e.clone().startOf("day").subtract((e.day()+6)%7,"day"),i=r.clone().add(7,"day");return t.filter(o=>{if(o.archived_at||!o.complete_at||o.owner!=1||a.includes(o.id))return!1;const l=$A.dayjs(o.complete_at);return l.valueOf()>=r.valueOf()&&l.valueOf()$A.sortDay(l.complete_at,o.complete_at))},weeklyCompletedCount({weeklyCompleted:t}){return t.length},recentCompleted({weeklyCompleted:t,completedLimit:a}){return t.slice(0,a)},completedColumn({weeklyCompleted:t,weeklyCompletedCount:a}){return{type:"completed",title:this.getTitle("completed"),hidden:this.isCollapsed("completed"),count:a,list:t}},listColumns({currentListColumns:t,completedColumn:a}){return t.length===0?[]:a.count>0?[...t,a]:t},emptyState({weeklyCompletedCount:t,cacheProjects:a,cacheTasks:s}){if(t>0)return"completed";const e=s.some(r=>!r.archived_at);return a.length===0&&!e?"new":"idle"},emptyStateTitle({emptyState:t}){return t==="completed"?this.$L("\u592A\u68D2\u4E86\uFF0C\u4EFB\u52A1\u5168\u90E8\u6E05\u7A7A"):t==="new"?this.$L("\u6B22\u8FCE\u4F7F\u7528 DooTask"):this.$L("\u5F53\u524D\u6CA1\u6709\u5F85\u5904\u7406\u4EFB\u52A1")},emptyStateSummary({emptyState:t,weeklyCompletedCount:a}){return t==="completed"?this.$L("\u672C\u5468\u5B8C\u6210\u4E86 (*) \u9879\u4EFB\u52A1",a):t==="new"?this.$L("\u9879\u76EE\u662F\u4EFB\u52A1\u4E0E\u534F\u4F5C\u7684\u8D77\u70B9\uFF0C\u521B\u5EFA\u4E00\u4E2A\u5F00\u59CB"):this.$L("\u53EF\u4EE5\u65B0\u5EFA\u4E00\u9879\u4EFB\u52A1\uFF0C\u6216\u7B49\u5F85\u65B0\u7684\u5DE5\u4F5C\u5B89\u6392")},overdueMaxDays({dashboardTask:t,nowTime:a}){const s=$A.daytz(a).startOf("day");return(t.overdue||[]).reduce((e,r)=>r.end_at?Math.max(e,s.diff($A.dayjs(r.end_at).startOf("day"),"day")):e,0)},todayNearest({dashboardTask:t}){const a=(t.today||[]).filter(e=>e.end_at);if(a.length===0)return"";const s=a.reduce((e,r)=>e===null||r.end_ate.end_at&&$A.dayjs(e.end_at).format("YYYY-MM-DD")===s).length},todayText({nowTime:t}){const a=$A.daytz(t),s=[this.$L("\u5468\u65E5"),this.$L("\u5468\u4E00"),this.$L("\u5468\u4E8C"),this.$L("\u5468\u4E09"),this.$L("\u5468\u56DB"),this.$L("\u5468\u4E94"),this.$L("\u5468\u516D")];return`${this.$L("(*)\u6708(*)\u65E5",a.month()+1,a.date())} ${s[a.day()]}`},mySummary({dashboardTask:t}){return t.overdue_count>0?this.$L("\u6709 (*) \u9879\u5DF2\u8D85\u671F\uFF0C\u5EFA\u8BAE\u5148\u5904\u7406",t.overdue_count):t.today_count>0?this.$L("\u6709 (*) \u9879\u4ECA\u65E5\u5230\u671F",t.today_count):this.$L("\u4ECA\u65E5\u65E0\u5230\u671F\u4EFB\u52A1")},teamSummary({teamStats:t}){const a=t.blocks||{};return a.overdue>0?a.overdue_owner_count>0?this.$L("\u56E2\u961F\u6709 (*) \u9879\u5DF2\u8D85\u671F\uFF0C\u6D89\u53CA (*) \u4EBA",a.overdue,a.overdue_owner_count):this.$L("\u56E2\u961F\u6709 (*) \u9879\u5DF2\u8D85\u671F",a.overdue):a.week_completed>0?this.$L("\u56E2\u961F\u672C\u5468\u5DF2\u5B8C\u6210 (*) \u9879",a.week_completed):""},teamStatsUpdatedTime({teamStats:t}){return t.generated_at?$A.dayjs(t.generated_at).format("HH:mm:ss"):"--"},deptLabel({userInfo:t,cacheDepartmentOwnerIds:a}){const s=(t.managed_departments||[]).map(i=>({...i,id:parseInt(i.id)})),e=(a||[]).map(i=>parseInt(i)),r=e.length>0?s.filter(i=>e.includes(i.id)):s;return r.length===0||r.length===s.length?s.length===1?s[0].name:this.$L("\u6211\u7684\u90E8\u95E8"):r.length===1?r[0].name:`${r[0].name} +${r.length-1}`},dashboardHello({systemConfig:t,userInfo:a,nowTime:s}){if(t.system_welcome)return this.$L(t.system_welcome).replace(/\{username}/g,a.nickname);const e=$A.daytz(s).hour();return e<5?this.$L("\u591C\u6DF1\u4E86\uFF0C(*)",a.nickname):e<11?this.$L("\u65E9\u4E0A\u597D\uFF0C(*)",a.nickname):e<14?this.$L("\u4E2D\u5348\u597D\uFF0C(*)",a.nickname):e<18?this.$L("\u4E0B\u5348\u597D\uFF0C(*)",a.nickname):this.$L("\u665A\u4E0A\u597D\uFF0C(*)",a.nickname)}},watch:{windowActive(t){this.routeName==="manage-dashboard"&&(this.loadInterval(t),this.loadLicense(t))}},methods:{getTitle(t){switch(t){case"today":return this.$L("\u4ECA\u65E5\u5230\u671F");case"overdue":return this.$L("\u5DF2\u8D85\u671F");case"todo":return this.$L("\u5F85\u5B8C\u6210");case"upcoming":return this.$L("\u5F85\u5F00\u59CB");case"assist":return this.$L("\u6211\u534F\u52A9\u7684");case"completed":return this.$L("\u672C\u5468\u5B8C\u6210");default:return""}},setView(t){this.view=t,t!=="team"&&(this.teamCachePopoverShow=!1),n.view=t,$A.IDBSave("dashboardView",t)},setLayout(t){this.layout=t,n.layout=t,$A.IDBSave("dashboardLayout",t)},isCollapsed(t){const a=this.collapsedOverrides[t];return a?a==="close":(this.strategySnapshot||[]).includes(t)},takeSnapshot(){const t={overdue:this.dashboardTask.overdue_count,today:this.dashboardTask.today_count,upcoming:this.upcomingTask.count,assist:this.assistTask.length},a=[];t.upcoming>0&&(t.overdue>0||t.today>0)&&a.push("upcoming"),this.strategySnapshot=a},toggleGroup(t){this.$set(this.collapsedOverrides,t,this.isCollapsed(t)?"open":"close"),n.overrides=this.collapsedOverrides,$A.IDBSave("dashboardCollapsed",JSON.stringify({date:$A.daytz().format("YYYY-MM-DD"),overrides:this.collapsedOverrides}))},toggleExpand(t){this.expandedGroups.includes(t)?this.expandedGroups=this.expandedGroups.filter(a=>a!==t):this.expandedGroups.push(t)},groupList(t,a){return this.expandedGroups.includes(t.type)?t.list:t.list.slice(0,a)},listLimit(t){return t.type==="completed"?this.completedLimit:this.groupLimit},listEmptyText(t){switch(t){case"overdue":return this.$L("\u6682\u65E0\u5DF2\u8D85\u671F\u4EFB\u52A1");case"today":return this.$L("\u6682\u65E0\u4ECA\u65E5\u5230\u671F\u4EFB\u52A1");case"todo":return this.$L("\u6682\u65E0\u5F85\u5B8C\u6210\u4EFB\u52A1");case"upcoming":return this.$L("\u6682\u65E0\u5F85\u5F00\u59CB\u4EFB\u52A1");case"assist":return this.$L("\u6682\u65E0\u534F\u52A9\u7684\u4EFB\u52A1");default:return this.$L("\u6682\u65E0\u4EFB\u52A1")}},quadEmptyText(t){switch(t){case"overdue":return this.$L("\u6CA1\u6709\u8D85\u671F\u4EFB\u52A1\uFF0C\u4FDD\u6301\u4F4F");case"today":return this.$L("\u4ECA\u65E5\u65E0\u5230\u671F\u4EFB\u52A1");case"todo":return this.$L("\u6682\u65E0\u5F85\u5B8C\u6210\u4EFB\u52A1");case"assist":return this.$L("\u6682\u65E0\u534F\u52A9\u7684\u4EFB\u52A1");default:return this.$L("\u6682\u65E0\u4EFB\u52A1")}},scrollTo(t){const a=this.listAllColumns.find(s=>s.type===t);!a||a.count===0||(this.isCollapsed(t)&&this.toggleGroup(t),this.$nextTick(s=>{const e=this.$refs[`group_${t}`];e&&e[0]&&($A.scrollToView(e[0],{behavior:"smooth",block:"start"}),this.flashType=t,this.flashTimer&&clearTimeout(this.flashTimer),this.flashTimer=setTimeout(r=>this.flashType="",1600))}))},refreshTeamDashboard(){var t;(t=this.$refs.dashboardTeam)==null||t.refreshAll().then(a=>{a&&(this.teamCachePopoverShow=!1,$A.messageSuccess("\u5237\u65B0\u6210\u529F"))})},projectName(t){const a=this.cacheProjects.find(({id:s})=>s==t.project_id);return a?a.name:""},ownerUserid(t){const a=(t.task_user||[]).find(s=>s.owner===1);return a?a.userid:0},openSearch(){b.emit("openSearch",null)},openTask(t){this.$store.dispatch("openTask",t)},createTask(){this.$emit("on-click","addTask")},createProject(){this.$emit("on-click","addProject")},completedText(t){if(!t)return"";const a=$A.dayjs(t),s=$A.daytz(this.nowTime);return a.format("YYYY-MM-DD")===s.format("YYYY-MM-DD")?`${this.$L("\u4ECA\u5929")} ${a.format("HH:mm")}`:a.format("YYYY-MM-DD")===s.clone().subtract(1,"day").format("YYYY-MM-DD")?`${this.$L("\u6628\u5929")} ${a.format("HH:mm")}`:`${this.$L("(*)\u6708(*)\u65E5",a.month()+1,a.date())} ${a.format("HH:mm")}`},openMenu(t,a){this.$store.state.taskOperation={event:t,task:a}},loadLicense(t){this.licenseTimer&&(clearTimeout(this.licenseTimer),this.licenseTimer=null),!(t===!1||!this.userIsAdmin)&&(this.licenseTimer=setTimeout(a=>{this.$store.dispatch("call",{url:"system/license",data:{type:"error"}}).then(({data:s})=>{this.warningMsg=s.error.length>0?s.error[0]:""}).catch(s=>{this.warningMsg=""})},1500))}}},_={};var R=d(K,G,N,!1,W,null,null,null);function W(t){for(let a in _)this[a]=_[a]}var Nt=function(){return R.exports}();export{Nt as default};
diff --git a/public/js/build/dayjs.fd4aa75c.js b/public/js/build/dayjs.d20a4841.js
similarity index 100%
rename from public/js/build/dayjs.fd4aa75c.js
rename to public/js/build/dayjs.d20a4841.js
diff --git a/public/js/build/delete.6db06d5a.js b/public/js/build/delete.d4b55667.js
similarity index 98%
rename from public/js/build/delete.6db06d5a.js
rename to public/js/build/delete.d4b55667.js
index 263041bf6..63e9b611e 100644
--- a/public/js/build/delete.6db06d5a.js
+++ b/public/js/build/delete.d4b55667.js
@@ -1 +1 @@
-import{m as s}from"./vuex.cc7cb26e.js";import{n as a}from"./app.818b057c.js";import"./jquery.c87f487f.js";import"./@babel.9410f858.js";import"./dayjs.fd4aa75c.js";import"./localforage.8de7c27e.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./vue.adba9046.js";import"./openpgp_hi.15f91b1d.js";import"./axios.37c7f908.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./view-design-hi.24419422.js";import"./html-to-md.f297036e.js";import"./lodash.8fcd6fd4.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vuedraggable.f464b992.js";import"./sortablejs.3488b922.js";import"./vue-resize-observer.5af23a43.js";import"./element-sea.f8a64907.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var n=function(){var t=this,r=t.$createElement,e=t._self._c||r;return e("div",{staticClass:"setting-item submit"},[t.configLoad>0?e("Loading"):e("Form",t._b({ref:"formDatum",attrs:{model:t.formDatum,rules:t.ruleDatum},nativeOn:{submit:function(i){i.preventDefault()}}},"Form",t.formOptions,!1),[e("FormItem",{attrs:{label:t.$L("\u5E10\u53F7"),prop:"email"}},[t.isRegVerify==1?e("Input",{class:t.count>0?"setting-send-input":"setting-input",attrs:{search:"","enter-button":t.$L(t.sendBtnText),placeholder:t.$L("\u8BF7\u8F93\u5165\u90AE\u7BB1")},on:{"on-search":t.sendEmailCode},model:{value:t.formDatum.email,callback:function(i){t.$set(t.formDatum,"email",i)},expression:"formDatum.email"}}):e("Input",{staticClass:"setting-input",attrs:{placeholder:t.$L("\u8BF7\u8F93\u5165\u90AE\u7BB1\u5E10\u53F7")},model:{value:t.formDatum.email,callback:function(i){t.$set(t.formDatum,"email",i)},expression:"formDatum.email"}})],1),t.isRegVerify==1?e("FormItem",{attrs:{label:t.$L("\u90AE\u7BB1\u9A8C\u8BC1\u7801"),prop:"code"}},[e("Input",{attrs:{placeholder:t.$L("\u8BF7\u8F93\u5165\u90AE\u7BB1\u9A8C\u8BC1\u7801")},model:{value:t.formDatum.code,callback:function(i){t.$set(t.formDatum,"code",i)},expression:"formDatum.code"}})],1):e("FormItem",{attrs:{label:t.$L("\u767B\u5F55\u5BC6\u7801"),prop:"code"}},[e("Input",{attrs:{type:"password",placeholder:t.$L("\u8BF7\u8F93\u5165\u767B\u5F55\u5BC6\u7801")},model:{value:t.formDatum.password,callback:function(i){t.$set(t.formDatum,"password",i)},expression:"formDatum.password"}})],1),e("FormItem",{attrs:{label:t.$L("\u5220\u9664\u539F\u56E0")}},[e("Input",{attrs:{type:"textarea",autosize:{minRows:4,maxRows:8},placeholder:t.$L("\u8BF7\u8F93\u5165\u5220\u9664\u539F\u56E0")},model:{value:t.formDatum.reason,callback:function(i){t.$set(t.formDatum,"reason",i)},expression:"formDatum.reason"}})],1)],1),e("div",{staticClass:"setting-footer"},[e("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:function(i){return t.submitForm("warning")}}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),e("Button",{attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1),e("Modal",{staticClass:"page-setting-delete-box",attrs:{title:t.$L("\u5220\u9664(*)\u5E10\u53F7",t.appTitle)},model:{value:t.warningShow,callback:function(i){t.warningShow=i},expression:"warningShow"}},[e("div",{staticClass:"big-text"},[t._v(t._s(t.$L("\u5E10\u53F7\u5220\u9664\u540E\uFF0C\u8BE5\u5E10\u53F7\u5C06\u65E0\u6CD5\u6B63\u5E38\u767B\u5F55\u4E14\u65E0\u6CD5\u6062\u590D\uFF0C\u5E10\u53F7\u4E0B\u7684\u6240\u6709\u6570\u636E\u4E5F\u5C06\u88AB\u5220\u9664\u3002")))]),e("div",{staticClass:"small-text"},[e("div",[t._v(t._s(t.$L("\u5220\u9664\u524D\uFF0C\u8BF7\u786E\u8BA4\u4EE5\u4E0B\u4E8B\u9879\uFF1A")))]),e("div",[t._v(t._s(t.$L("1\u3001\u60A8\u5C06\u65E0\u6CD5\u67E5\u770B\u8BE5\u5E10\u53F7\u5185\u7684\u4EFB\u4F55\u4FE1\u606F\uFF0C\u5305\u62EC\u5E10\u53F7\u4FE1\u606F\u3001\u6587\u4EF6\u8BB0\u5F55\u3001\u804A\u5929\u8BB0\u5F55\u3001\u9879\u76EE\u4FE1\u606F\u3001\u56E2\u961F\u6210\u5458\u4FE1\u606F\u7B49\u3002")))]),e("div",[t._v(t._s(t.$L("2\u3001\u82E5\u4F60\u662F\u56E2\u961F\u7684\u6240\u6709\u8005\uFF0C\u8BF7\u5728\u5220\u9664\u60A8\u7684\u5E10\u53F7\u524D\u8F6C\u79FB\u6240\u6709\u6743\u3002\u4F8B\u5982\u8BE5\u5E10\u53F7\u6240\u521B\u5EFA\u7684\u9879\u76EE\uFF08\u53EF\u5C06\u9879\u76EE\u79FB\u4EA4\u4ED6\u4EBA\u6216\u5220\u9664\u9879\u76EE\uFF09\u4EE5\u53CA\u6587\u4EF6\u5939\u3002")))]),e("div",[t._v(t._s(t.$L("3\u3001\u60A8\u5C06\u9000\u51FA\u6240\u6709\u7FA4\u804A\uFF0C\u65E0\u6CD5\u67E5\u5230\u8FC7\u5F80\u6D88\u606F\u548C\u4EBA\u5458\u3002")))]),e("div",[t._v(t._s(t.$L("4\u3001\u8BF7\u4FDD\u8BC1\u5E10\u53F7\u672A\u88AB\u6682\u505C\u4F7F\u7528\u3002")))])]),e("div",{staticClass:"button-box",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"primary",loading:t.loadIng>0},on:{click:function(i){return t.submitForm("confirm")}}},[t._v(t._s(t.$L("\u5DF2\u6E05\u695A\u98CE\u9669\uFF0C\u786E\u5B9A\u5220\u9664"))+" ")])],1)])],1)},m=[];const l={data(){return{loadIng:0,configLoad:0,formDatum:{email:"",code:"",reason:"",password:""},ruleDatum:{email:[{validator:(t,r,e)=>{r.trim()===""?e(new Error(this.$L("\u8BF7\u8F93\u5165\u90AE\u7BB1\u5E10\u53F7"))):$A.isEmail(r.trim())?e():e(new Error(this.$L("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u90AE\u7BB1\u5730\u5740\uFF01")))},required:!0,trigger:"change"}],code:[{validator:(t,r,e)=>{r.trim()===""&&this.isRegVerify==1?e(new Error(this.$L("\u8BF7\u8F93\u5165\u90AE\u7BB1\u9A8C\u8BC1\u7801"))):e()},required:!0,trigger:"change"}],password:[{validator:(t,r,e)=>{r.trim()===""&&this.isRegVerify!=1?e(new Error(this.$L("\u8BF7\u8F93\u5165\u767B\u5F55\u5BC6\u7801"))):e()},required:!0,trigger:"change"}]},count:0,isSendButtonShow:!0,codeShow:!1,isRegVerify:0,warningShow:!1,sendBtnText:this.$L("\u53D1\u9001\u9A8C\u8BC1\u7801")}},mounted(){this.formDatum.email=this.userInfo.email,this.getRegVerify()},computed:{...s(["userInfo","formOptions"]),appTitle(){return window.systemInfo.title||"DooTask"}},methods:{sendEmailCode(){this.count>0||this.$store.dispatch("call",{url:"users/email/send",data:{type:3,email:this.formDatum.email},spinner:!0}).then(t=>{this.isSendButtonShow=!1,this.count=120,this.sendBtnText=this.count+" \u79D2";let r=setInterval(()=>{this.count--,this.sendBtnText=this.count+" \u79D2",this.count<=0&&(this.sendBtnText=this.$L("\u53D1\u9001\u9A8C\u8BC1\u7801"),clearInterval(r))},1e3)}).catch(({msg:t})=>{$A.messageError(t)})},submitForm(t){this.$refs.formDatum.validate(r=>{r&&(this.loadIng++,this.formDatum.type=t,this.$store.dispatch("call",{url:"users/delete/account",data:this.formDatum}).then(({data:e})=>{t==="warning"?this.warningShow=!0:($A.messageSuccess("\u5220\u9664\u6210\u529F"),this.warningShow=!1,this.$store.dispatch("saveUserInfo",e),this.isSendButtonShow=!0,this.$refs.formDatum.resetFields())}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.loadIng--}))})},resetForm(){this.$refs.formDatum.resetFields()},getRegVerify(){this.configLoad++,this.$store.dispatch("call",{url:"system/setting/email"}).then(({data:t})=>{this.isRegVerify=t.reg_verify==="open"}).finally(t=>{this.configLoad--})}}},o={};var u=a(l,n,m,!1,p,null,null,null);function p(t){for(let r in o)this[r]=o[r]}var ot=function(){return u.exports}();export{ot as default};
+import{m as s}from"./vuex.cc7cb26e.js";import{n as a}from"./app.ef7047f7.js";import"./jquery.6e4daff9.js";import"./@babel.9410f858.js";import"./dayjs.d20a4841.js";import"./localforage.743dffdd.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./vue.adba9046.js";import"./openpgp_hi.15f91b1d.js";import"./axios.37c7f908.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./view-design-hi.24419422.js";import"./html-to-md.f297036e.js";import"./lodash.8fcd6fd4.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vuedraggable.f464b992.js";import"./sortablejs.3488b922.js";import"./vue-resize-observer.5af23a43.js";import"./element-sea.f8a64907.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var n=function(){var t=this,r=t.$createElement,e=t._self._c||r;return e("div",{staticClass:"setting-item submit"},[t.configLoad>0?e("Loading"):e("Form",t._b({ref:"formDatum",attrs:{model:t.formDatum,rules:t.ruleDatum},nativeOn:{submit:function(i){i.preventDefault()}}},"Form",t.formOptions,!1),[e("FormItem",{attrs:{label:t.$L("\u5E10\u53F7"),prop:"email"}},[t.isRegVerify==1?e("Input",{class:t.count>0?"setting-send-input":"setting-input",attrs:{search:"","enter-button":t.$L(t.sendBtnText),placeholder:t.$L("\u8BF7\u8F93\u5165\u90AE\u7BB1")},on:{"on-search":t.sendEmailCode},model:{value:t.formDatum.email,callback:function(i){t.$set(t.formDatum,"email",i)},expression:"formDatum.email"}}):e("Input",{staticClass:"setting-input",attrs:{placeholder:t.$L("\u8BF7\u8F93\u5165\u90AE\u7BB1\u5E10\u53F7")},model:{value:t.formDatum.email,callback:function(i){t.$set(t.formDatum,"email",i)},expression:"formDatum.email"}})],1),t.isRegVerify==1?e("FormItem",{attrs:{label:t.$L("\u90AE\u7BB1\u9A8C\u8BC1\u7801"),prop:"code"}},[e("Input",{attrs:{placeholder:t.$L("\u8BF7\u8F93\u5165\u90AE\u7BB1\u9A8C\u8BC1\u7801")},model:{value:t.formDatum.code,callback:function(i){t.$set(t.formDatum,"code",i)},expression:"formDatum.code"}})],1):e("FormItem",{attrs:{label:t.$L("\u767B\u5F55\u5BC6\u7801"),prop:"code"}},[e("Input",{attrs:{type:"password",placeholder:t.$L("\u8BF7\u8F93\u5165\u767B\u5F55\u5BC6\u7801")},model:{value:t.formDatum.password,callback:function(i){t.$set(t.formDatum,"password",i)},expression:"formDatum.password"}})],1),e("FormItem",{attrs:{label:t.$L("\u5220\u9664\u539F\u56E0")}},[e("Input",{attrs:{type:"textarea",autosize:{minRows:4,maxRows:8},placeholder:t.$L("\u8BF7\u8F93\u5165\u5220\u9664\u539F\u56E0")},model:{value:t.formDatum.reason,callback:function(i){t.$set(t.formDatum,"reason",i)},expression:"formDatum.reason"}})],1)],1),e("div",{staticClass:"setting-footer"},[e("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:function(i){return t.submitForm("warning")}}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),e("Button",{attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1),e("Modal",{staticClass:"page-setting-delete-box",attrs:{title:t.$L("\u5220\u9664(*)\u5E10\u53F7",t.appTitle)},model:{value:t.warningShow,callback:function(i){t.warningShow=i},expression:"warningShow"}},[e("div",{staticClass:"big-text"},[t._v(t._s(t.$L("\u5E10\u53F7\u5220\u9664\u540E\uFF0C\u8BE5\u5E10\u53F7\u5C06\u65E0\u6CD5\u6B63\u5E38\u767B\u5F55\u4E14\u65E0\u6CD5\u6062\u590D\uFF0C\u5E10\u53F7\u4E0B\u7684\u6240\u6709\u6570\u636E\u4E5F\u5C06\u88AB\u5220\u9664\u3002")))]),e("div",{staticClass:"small-text"},[e("div",[t._v(t._s(t.$L("\u5220\u9664\u524D\uFF0C\u8BF7\u786E\u8BA4\u4EE5\u4E0B\u4E8B\u9879\uFF1A")))]),e("div",[t._v(t._s(t.$L("1\u3001\u60A8\u5C06\u65E0\u6CD5\u67E5\u770B\u8BE5\u5E10\u53F7\u5185\u7684\u4EFB\u4F55\u4FE1\u606F\uFF0C\u5305\u62EC\u5E10\u53F7\u4FE1\u606F\u3001\u6587\u4EF6\u8BB0\u5F55\u3001\u804A\u5929\u8BB0\u5F55\u3001\u9879\u76EE\u4FE1\u606F\u3001\u56E2\u961F\u6210\u5458\u4FE1\u606F\u7B49\u3002")))]),e("div",[t._v(t._s(t.$L("2\u3001\u82E5\u4F60\u662F\u56E2\u961F\u7684\u6240\u6709\u8005\uFF0C\u8BF7\u5728\u5220\u9664\u60A8\u7684\u5E10\u53F7\u524D\u8F6C\u79FB\u6240\u6709\u6743\u3002\u4F8B\u5982\u8BE5\u5E10\u53F7\u6240\u521B\u5EFA\u7684\u9879\u76EE\uFF08\u53EF\u5C06\u9879\u76EE\u79FB\u4EA4\u4ED6\u4EBA\u6216\u5220\u9664\u9879\u76EE\uFF09\u4EE5\u53CA\u6587\u4EF6\u5939\u3002")))]),e("div",[t._v(t._s(t.$L("3\u3001\u60A8\u5C06\u9000\u51FA\u6240\u6709\u7FA4\u804A\uFF0C\u65E0\u6CD5\u67E5\u5230\u8FC7\u5F80\u6D88\u606F\u548C\u4EBA\u5458\u3002")))]),e("div",[t._v(t._s(t.$L("4\u3001\u8BF7\u4FDD\u8BC1\u5E10\u53F7\u672A\u88AB\u6682\u505C\u4F7F\u7528\u3002")))])]),e("div",{staticClass:"button-box",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"primary",loading:t.loadIng>0},on:{click:function(i){return t.submitForm("confirm")}}},[t._v(t._s(t.$L("\u5DF2\u6E05\u695A\u98CE\u9669\uFF0C\u786E\u5B9A\u5220\u9664"))+" ")])],1)])],1)},m=[];const l={data(){return{loadIng:0,configLoad:0,formDatum:{email:"",code:"",reason:"",password:""},ruleDatum:{email:[{validator:(t,r,e)=>{r.trim()===""?e(new Error(this.$L("\u8BF7\u8F93\u5165\u90AE\u7BB1\u5E10\u53F7"))):$A.isEmail(r.trim())?e():e(new Error(this.$L("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u90AE\u7BB1\u5730\u5740\uFF01")))},required:!0,trigger:"change"}],code:[{validator:(t,r,e)=>{r.trim()===""&&this.isRegVerify==1?e(new Error(this.$L("\u8BF7\u8F93\u5165\u90AE\u7BB1\u9A8C\u8BC1\u7801"))):e()},required:!0,trigger:"change"}],password:[{validator:(t,r,e)=>{r.trim()===""&&this.isRegVerify!=1?e(new Error(this.$L("\u8BF7\u8F93\u5165\u767B\u5F55\u5BC6\u7801"))):e()},required:!0,trigger:"change"}]},count:0,isSendButtonShow:!0,codeShow:!1,isRegVerify:0,warningShow:!1,sendBtnText:this.$L("\u53D1\u9001\u9A8C\u8BC1\u7801")}},mounted(){this.formDatum.email=this.userInfo.email,this.getRegVerify()},computed:{...s(["userInfo","formOptions"]),appTitle(){return window.systemInfo.title||"DooTask"}},methods:{sendEmailCode(){this.count>0||this.$store.dispatch("call",{url:"users/email/send",data:{type:3,email:this.formDatum.email},spinner:!0}).then(t=>{this.isSendButtonShow=!1,this.count=120,this.sendBtnText=this.count+" \u79D2";let r=setInterval(()=>{this.count--,this.sendBtnText=this.count+" \u79D2",this.count<=0&&(this.sendBtnText=this.$L("\u53D1\u9001\u9A8C\u8BC1\u7801"),clearInterval(r))},1e3)}).catch(({msg:t})=>{$A.messageError(t)})},submitForm(t){this.$refs.formDatum.validate(r=>{r&&(this.loadIng++,this.formDatum.type=t,this.$store.dispatch("call",{url:"users/delete/account",data:this.formDatum}).then(({data:e})=>{t==="warning"?this.warningShow=!0:($A.messageSuccess("\u5220\u9664\u6210\u529F"),this.warningShow=!1,this.$store.dispatch("saveUserInfo",e),this.isSendButtonShow=!0,this.$refs.formDatum.resetFields())}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.loadIng--}))})},resetForm(){this.$refs.formDatum.resetFields()},getRegVerify(){this.configLoad++,this.$store.dispatch("call",{url:"system/setting/email"}).then(({data:t})=>{this.isRegVerify=t.reg_verify==="open"}).finally(t=>{this.configLoad--})}}},o={};var u=a(l,n,m,!1,p,null,null,null);function p(t){for(let r in o)this[r]=o[r]}var ot=function(){return u.exports}();export{ot as default};
diff --git a/public/js/build/device.35bf6a95.js b/public/js/build/device.5e662128.js
similarity index 95%
rename from public/js/build/device.35bf6a95.js
rename to public/js/build/device.5e662128.js
index ed54d51e2..818cfe0da 100644
--- a/public/js/build/device.35bf6a95.js
+++ b/public/js/build/device.5e662128.js
@@ -1 +1 @@
-import{n as l}from"./app.818b057c.js";import"./jquery.c87f487f.js";import"./@babel.9410f858.js";import"./dayjs.fd4aa75c.js";import"./localforage.8de7c27e.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./vue.adba9046.js";import"./vuex.cc7cb26e.js";import"./openpgp_hi.15f91b1d.js";import"./axios.37c7f908.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./view-design-hi.24419422.js";import"./html-to-md.f297036e.js";import"./lodash.8fcd6fd4.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vuedraggable.f464b992.js";import"./sortablejs.3488b922.js";import"./vue-resize-observer.5af23a43.js";import"./element-sea.f8a64907.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var m=function(){var t=this,r=t.$createElement,i=t._self._c||r;return i("div",{staticClass:"setting-device"},[i("ul",[t.loadIng>0&&t.devices.length===0?i("li",{staticClass:"loading"},[i("Loading")],1):t._l(t.devices,function(e){return i("li",{key:e.id},[i("div",{staticClass:"icon"},[i("span",{class:t.getIcon(e.detail)})]),i("div",{staticClass:"info"},[i("div",{staticClass:"title"},[i("span",{staticClass:"name"},[t._v(t._s(t.getName(e.detail)))]),i("span",{staticClass:"device"},[t._v(t._s(t.getOs(e.detail)))])]),i("div",{staticClass:"time"},[i("EPopover",{attrs:{placement:"bottom-start",trigger:"click"}},[i("div",{staticClass:"setting-device-popover"},[i("p",[t._v(t._s(t.$L("\u767B\u5F55\u65F6\u95F4"))+": "+t._s(e.created_at))]),i("p",[t._v(t._s(t.$L("\u66F4\u65B0\u65F6\u95F4"))+": "+t._s(e.updated_at))]),i("p",[t._v(t._s(t.$L("\u8FC7\u671F\u65F6\u95F4"))+": "+t._s(e.expired_at))])]),i("span",{attrs:{slot:"reference"},slot:"reference"},[t._v(t._s(e.updated_at))])])],1)]),i("div",[e.is_current?i("span",{staticClass:"current"},[t._v(t._s(t.$L("\u5F53\u524D\u8BBE\u5907")))]):i("Button",{on:{click:function(o){return t.onLogout(e)}}},[t._v(t._s(t.$L("\u9000\u51FA\u767B\u5F55")))])],1)])})],2)])},p=[];const c={name:"SettingDevice",data(){return{loadIng:0,devices:[]}},mounted(){this.getDeviceList()},methods:{getDeviceList(){this.loadIng++,this.$store.dispatch("call",{url:"users/device/list"}).then(({data:t})=>{this.devices=t.list,typeof this.$parent.updateDeviceCount=="function"&&this.$parent.updateDeviceCount(this.devices.length)}).catch(({msg:t})=>{$A.modalError(t),this.devices=[]}).finally(()=>{this.loadIng--})},getIcon({app_type:t,app_name:r}){return/ios/i.test(t)?/ipad/i.test(r)?"tablet":/iphone/i.test(r)?"phone":"apple":/android/i.test(t)?/(tablet|phablet)/i.test(r)?"tablet":"android":/mac/i.test(t)?"macos":/win/i.test(t)?"window":"web"},getName({app_brand:t,app_model:r,device_name:i,app_type:e,app_name:o,browser:a}){const s=[];if(/web/i.test(e))s.push(a,this.$L("\u6D4F\u89C8\u5668"));else{if(i)return i;t?s.push(t,r):s.push(o||e,this.$L("\u5BA2\u6237\u7AEF"))}return s.join(" ")},getOs({app_os:t,os:r}){return t||r},onLogout(t){$A.modalConfirm({title:"\u9000\u51FA\u767B\u5F55",content:"\u662F\u5426\u5728\u8BE5\u8BBE\u5907\u4E0A\u9000\u51FA\u767B\u5F55\uFF1F",loading:!0,onOk:()=>new Promise((r,i)=>{this.$store.dispatch("call",{url:"users/device/logout",data:{id:t.id}}).then(({msg:e})=>{r(e),this.getDeviceList()}).catch(({msg:e})=>{i(e)})})})}}},n={};var u=l(c,m,p,!1,d,null,null,null);function d(t){for(let r in n)this[r]=n[r]}var nt=function(){return u.exports}();export{nt as default};
+import{n as l}from"./app.ef7047f7.js";import"./jquery.6e4daff9.js";import"./@babel.9410f858.js";import"./dayjs.d20a4841.js";import"./localforage.743dffdd.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./vue.adba9046.js";import"./vuex.cc7cb26e.js";import"./openpgp_hi.15f91b1d.js";import"./axios.37c7f908.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./view-design-hi.24419422.js";import"./html-to-md.f297036e.js";import"./lodash.8fcd6fd4.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vuedraggable.f464b992.js";import"./sortablejs.3488b922.js";import"./vue-resize-observer.5af23a43.js";import"./element-sea.f8a64907.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var m=function(){var t=this,r=t.$createElement,i=t._self._c||r;return i("div",{staticClass:"setting-device"},[i("ul",[t.loadIng>0&&t.devices.length===0?i("li",{staticClass:"loading"},[i("Loading")],1):t._l(t.devices,function(e){return i("li",{key:e.id},[i("div",{staticClass:"icon"},[i("span",{class:t.getIcon(e.detail)})]),i("div",{staticClass:"info"},[i("div",{staticClass:"title"},[i("span",{staticClass:"name"},[t._v(t._s(t.getName(e.detail)))]),i("span",{staticClass:"device"},[t._v(t._s(t.getOs(e.detail)))])]),i("div",{staticClass:"time"},[i("EPopover",{attrs:{placement:"bottom-start",trigger:"click"}},[i("div",{staticClass:"setting-device-popover"},[i("p",[t._v(t._s(t.$L("\u767B\u5F55\u65F6\u95F4"))+": "+t._s(e.created_at))]),i("p",[t._v(t._s(t.$L("\u66F4\u65B0\u65F6\u95F4"))+": "+t._s(e.updated_at))]),i("p",[t._v(t._s(t.$L("\u8FC7\u671F\u65F6\u95F4"))+": "+t._s(e.expired_at))])]),i("span",{attrs:{slot:"reference"},slot:"reference"},[t._v(t._s(e.updated_at))])])],1)]),i("div",[e.is_current?i("span",{staticClass:"current"},[t._v(t._s(t.$L("\u5F53\u524D\u8BBE\u5907")))]):i("Button",{on:{click:function(o){return t.onLogout(e)}}},[t._v(t._s(t.$L("\u9000\u51FA\u767B\u5F55")))])],1)])})],2)])},p=[];const c={name:"SettingDevice",data(){return{loadIng:0,devices:[]}},mounted(){this.getDeviceList()},methods:{getDeviceList(){this.loadIng++,this.$store.dispatch("call",{url:"users/device/list"}).then(({data:t})=>{this.devices=t.list,typeof this.$parent.updateDeviceCount=="function"&&this.$parent.updateDeviceCount(this.devices.length)}).catch(({msg:t})=>{$A.modalError(t),this.devices=[]}).finally(()=>{this.loadIng--})},getIcon({app_type:t,app_name:r}){return/ios/i.test(t)?/ipad/i.test(r)?"tablet":/iphone/i.test(r)?"phone":"apple":/android/i.test(t)?/(tablet|phablet)/i.test(r)?"tablet":"android":/mac/i.test(t)?"macos":/win/i.test(t)?"window":"web"},getName({app_brand:t,app_model:r,device_name:i,app_type:e,app_name:o,browser:a}){const s=[];if(/web/i.test(e))s.push(a,this.$L("\u6D4F\u89C8\u5668"));else{if(i)return i;t?s.push(t,r):s.push(o||e,this.$L("\u5BA2\u6237\u7AEF"))}return s.join(" ")},getOs({app_os:t,os:r}){return t||r},onLogout(t){$A.modalConfirm({title:"\u9000\u51FA\u767B\u5F55",content:"\u662F\u5426\u5728\u8BE5\u8BBE\u5907\u4E0A\u9000\u51FA\u767B\u5F55\uFF1F",loading:!0,onOk:()=>new Promise((r,i)=>{this.$store.dispatch("call",{url:"users/device/logout",data:{id:t.id}}).then(({msg:e})=>{r(e),this.getDeviceList()}).catch(({msg:e})=>{i(e)})})})}}},n={};var u=l(c,m,p,!1,d,null,null,null);function d(t){for(let r in n)this[r]=n[r]}var nt=function(){return u.exports}();export{nt as default};
diff --git a/public/js/build/dialog.f706bbe5.js b/public/js/build/dialog.4cf864e7.js
similarity index 81%
rename from public/js/build/dialog.f706bbe5.js
rename to public/js/build/dialog.4cf864e7.js
index 128637309..7bad80b35 100644
--- a/public/js/build/dialog.f706bbe5.js
+++ b/public/js/build/dialog.4cf864e7.js
@@ -1 +1 @@
-import{D as p}from"./DialogWrapper.21630cce.js";import{m}from"./vuex.cc7cb26e.js";import{n as a}from"./app.818b057c.js";import"./chunkedUpload.a9ef725e.js";import"./axios.37c7f908.js";import"./spark-md5.0443325f.js";import"./index.ab4b7604.js";import"./vue-virtual-scroll-list-hi.74ad83f0.js";import"./@babel.9410f858.js";import"./vue.adba9046.js";import"./lodash.8fcd6fd4.js";import"./ImgUpload.a99f26bd.js";import"./webhook.378987f3.js";import"./jquery.c87f487f.js";import"./dayjs.fd4aa75c.js";import"./localforage.8de7c27e.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./openpgp_hi.15f91b1d.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./view-design-hi.24419422.js";import"./html-to-md.f297036e.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vuedraggable.f464b992.js";import"./sortablejs.3488b922.js";import"./vue-resize-observer.5af23a43.js";import"./element-sea.f8a64907.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var e=function(){var t=this,o=t.$createElement,r=t._self._c||o;return r("div",{staticClass:"electron-dialog"},[r("PageTitle",{attrs:{title:t.dialogData.name}}),t.dialogId>0?r("DialogWrapper",{attrs:{dialogId:t.dialogId}}):t._e()],1)},n=[];const s={components:{DialogWrapper:p},computed:{...m(["cacheDialogs"]),dialogId(){const{dialogId:t}=this.$route.params;return parseInt(/^\d+$/.test(t)?t:0)},dialogData(){return this.cacheDialogs.find(({id:t})=>t===this.dialogId)||{}}}},i={};var l=a(s,e,n,!1,d,"4f6d7c8a",null,null);function d(t){for(let o in i)this[o]=i[o]}var dt=function(){return l.exports}();export{dt as default};
+import{D as p}from"./DialogWrapper.bc988036.js";import{m}from"./vuex.cc7cb26e.js";import{n as a}from"./app.ef7047f7.js";import"./chunkedUpload.3cd238b0.js";import"./axios.37c7f908.js";import"./spark-md5.0443325f.js";import"./index.f7653997.js";import"./vue-virtual-scroll-list-hi.74ad83f0.js";import"./@babel.9410f858.js";import"./vue.adba9046.js";import"./lodash.8fcd6fd4.js";import"./ImgUpload.434d067a.js";import"./webhook.378987f3.js";import"./jquery.6e4daff9.js";import"./dayjs.d20a4841.js";import"./localforage.743dffdd.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./openpgp_hi.15f91b1d.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./view-design-hi.24419422.js";import"./html-to-md.f297036e.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vuedraggable.f464b992.js";import"./sortablejs.3488b922.js";import"./vue-resize-observer.5af23a43.js";import"./element-sea.f8a64907.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var e=function(){var t=this,o=t.$createElement,r=t._self._c||o;return r("div",{staticClass:"electron-dialog"},[r("PageTitle",{attrs:{title:t.dialogData.name}}),t.dialogId>0?r("DialogWrapper",{attrs:{dialogId:t.dialogId}}):t._e()],1)},n=[];const s={components:{DialogWrapper:p},computed:{...m(["cacheDialogs"]),dialogId(){const{dialogId:t}=this.$route.params;return parseInt(/^\d+$/.test(t)?t:0)},dialogData(){return this.cacheDialogs.find(({id:t})=>t===this.dialogId)||{}}}},i={};var l=a(s,e,n,!1,d,"4f6d7c8a",null,null);function d(t){for(let o in i)this[o]=i[o]}var dt=function(){return l.exports}();export{dt as default};
diff --git a/public/js/build/editor.fa7aa67f.js b/public/js/build/editor.c711ad5a.js
similarity index 94%
rename from public/js/build/editor.fa7aa67f.js
rename to public/js/build/editor.c711ad5a.js
index 9dba3cfdd..ff3d73fd9 100644
--- a/public/js/build/editor.fa7aa67f.js
+++ b/public/js/build/editor.c711ad5a.js
@@ -1,2 +1,2 @@
-import{f as r,d as n,a as s,b as l,c as d,_ as m,e as p,v as c}from"./@kangc.b5fe0a56.js";import{P as u}from"./prismjs.94ec9288.js";import{l as h,n as f}from"./app.818b057c.js";import{C as g}from"./codemirror.9d10b9e4.js";import{e as _}from"./index.40a8e116.js";import{I as v}from"./ImgUpload.a99f26bd.js";import"./@babel.9410f858.js";import"./vue.adba9046.js";import"./copy-to-clipboard.a53c061d.js";import"./toggle-selection.d2487283.js";import"./jquery.c87f487f.js";import"./dayjs.fd4aa75c.js";import"./localforage.8de7c27e.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./vuex.cc7cb26e.js";import"./openpgp_hi.15f91b1d.js";import"./axios.37c7f908.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./view-design-hi.24419422.js";import"./html-to-md.f297036e.js";import"./lodash.8fcd6fd4.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vuedraggable.f464b992.js";import"./sortablejs.3488b922.js";import"./vue-resize-observer.5af23a43.js";import"./element-sea.f8a64907.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";import"./chunkedUpload.a9ef725e.js";import"./spark-md5.0443325f.js";var $=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"vmeditor-wrapper"},[o("v-md-editor",{directives:[{name:"show",rawName:"v-show",value:e.showEditor,expression:"showEditor"}],ref:"editor",staticClass:"vmeditor-editor",attrs:{toolbar:e.toolbar,"left-toolbar":e.leftToolbar,"right-toolbar":e.rightToolbar,"toc-nav-position-right":e.tocNavPositionRight,"include-level":e.includeLevel,"disabled-menus":[]},on:{"upload-image":e.handleUpload},model:{value:e.content,callback:function(i){e.content=i},expression:"content"}}),e.uploadIng>0?o("Spin",{attrs:{fix:""}},[o("Icon",{staticClass:"vmeditor-icon-loading",attrs:{type:"ios-loading"}}),o("div",[e._v(e._s(e.$L("\u6B63\u5728\u4E0A\u4F20\u6587\u4EF6...")))])],1):e._e(),o("ImgUpload",{ref:"myUpload",staticClass:"vmeditor-upload-control",attrs:{type:"callback",uploadIng:e.uploadIng,num:50,width:2048,height:2048,whcut:"percentage"},on:{"update:uploadIng":function(i){e.uploadIng=i},"update:upload-ing":function(i){e.uploadIng=i},"on-callback":e.handleInsertImages}}),o("Upload",{ref:"fileUpload",staticClass:"vmeditor-upload-control",attrs:{name:"files",action:e.actionUrl,headers:e.headers,multiple:"",paste:"",format:e.uploadFormat,"show-upload-list":!1,"max-size":e.maxSize,"on-progress":e.handleProgress,"on-success":e.handleSuccess,"on-error":e.handleError,"on-format-error":e.handleFormatError,"on-exceeded-size":e.handleMaxSize,"before-upload":e.handleBeforeUpload}})],1)},x=[];/^zh/.test(h)?r.lang.use("zh-CN",n):r.lang.use("en-US",s);r.use(l());r.use(d());r.use(m());r.use(p());r.Codemirror=g;const I={mixins:[_],components:{[r.name]:r,ImgUpload:v},data(){return{showEditor:!1,content:"",toolbar:{customImages:{icon:"v-md-icon-img",title:e=>e.langConfig.image.toolbar,menus:[{name:"image-link",text:e=>e.langConfig.imageLink.toolbar,action:e=>{this.handleInsertImages([{name:"Description",url:"http://"}])}},{name:"browse-image",text:this.$L("\u6D4F\u89C8\u56FE\u7247\u7A7A\u95F4"),action:e=>{this.$refs.myUpload.browsePicture()}},{name:"upload-image",text:e=>e.langConfig.uploadImage.toolbar,action:e=>{this.$refs.myUpload.handleClick()}},{name:"upload-local",text:this.$L("\u4E0A\u4F20\u672C\u5730\u6587\u4EF6"),action:e=>{this.$refs.fileUpload.handleClick()}}]}},uploadIng:0,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"],actionUrl:$A.apiUrl("system/fileupload"),maxSize:1024e3}},created(){r.use(c,{Prism:u,extend(e){}})},mounted(){this.windowWidth>1200&&this.$refs.editor.toggleToc(!0),this.showEditor=!0},computed:{headers(){return{fd:$A.getSessionStorageString("userWsFd"),token:this.userToken}}},watch:{value:{handler(e){e==null&&(e=""),this.content=e},immediate:!0},content(e){this.$emit("input",e)}},methods:{handleUpload(e){e.type==="drop"?this.$refs.fileUpload.onDrop(e):this.$refs.fileUpload.handlePaste(e)},handleInsertText(e,t=""){this.$refs.editor.focus(),this.$refs.editor.replaceSelectionText(e),this.$refs.editor.changeSelctionTo(e,t)},handleInsertImages(e){this.$refs.editor.focus(),e.forEach(t=>{const o=t.name||"image",i=`
+import{f as r,d as n,a as s,b as l,c as d,_ as m,e as p,v as c}from"./@kangc.b5fe0a56.js";import{P as u}from"./prismjs.94ec9288.js";import{l as h,n as f}from"./app.ef7047f7.js";import{C as g}from"./codemirror.9d10b9e4.js";import{e as _}from"./index.40a8e116.js";import{I as v}from"./ImgUpload.434d067a.js";import"./@babel.9410f858.js";import"./vue.adba9046.js";import"./copy-to-clipboard.a53c061d.js";import"./toggle-selection.d2487283.js";import"./jquery.6e4daff9.js";import"./dayjs.d20a4841.js";import"./localforage.743dffdd.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./vuex.cc7cb26e.js";import"./openpgp_hi.15f91b1d.js";import"./axios.37c7f908.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./view-design-hi.24419422.js";import"./html-to-md.f297036e.js";import"./lodash.8fcd6fd4.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vuedraggable.f464b992.js";import"./sortablejs.3488b922.js";import"./vue-resize-observer.5af23a43.js";import"./element-sea.f8a64907.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";import"./chunkedUpload.3cd238b0.js";import"./spark-md5.0443325f.js";var $=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"vmeditor-wrapper"},[o("v-md-editor",{directives:[{name:"show",rawName:"v-show",value:e.showEditor,expression:"showEditor"}],ref:"editor",staticClass:"vmeditor-editor",attrs:{toolbar:e.toolbar,"left-toolbar":e.leftToolbar,"right-toolbar":e.rightToolbar,"toc-nav-position-right":e.tocNavPositionRight,"include-level":e.includeLevel,"disabled-menus":[]},on:{"upload-image":e.handleUpload},model:{value:e.content,callback:function(i){e.content=i},expression:"content"}}),e.uploadIng>0?o("Spin",{attrs:{fix:""}},[o("Icon",{staticClass:"vmeditor-icon-loading",attrs:{type:"ios-loading"}}),o("div",[e._v(e._s(e.$L("\u6B63\u5728\u4E0A\u4F20\u6587\u4EF6...")))])],1):e._e(),o("ImgUpload",{ref:"myUpload",staticClass:"vmeditor-upload-control",attrs:{type:"callback",uploadIng:e.uploadIng,num:50,width:2048,height:2048,whcut:"percentage"},on:{"update:uploadIng":function(i){e.uploadIng=i},"update:upload-ing":function(i){e.uploadIng=i},"on-callback":e.handleInsertImages}}),o("Upload",{ref:"fileUpload",staticClass:"vmeditor-upload-control",attrs:{name:"files",action:e.actionUrl,headers:e.headers,multiple:"",paste:"",format:e.uploadFormat,"show-upload-list":!1,"max-size":e.maxSize,"on-progress":e.handleProgress,"on-success":e.handleSuccess,"on-error":e.handleError,"on-format-error":e.handleFormatError,"on-exceeded-size":e.handleMaxSize,"before-upload":e.handleBeforeUpload}})],1)},x=[];/^zh/.test(h)?r.lang.use("zh-CN",n):r.lang.use("en-US",s);r.use(l());r.use(d());r.use(m());r.use(p());r.Codemirror=g;const I={mixins:[_],components:{[r.name]:r,ImgUpload:v},data(){return{showEditor:!1,content:"",toolbar:{customImages:{icon:"v-md-icon-img",title:e=>e.langConfig.image.toolbar,menus:[{name:"image-link",text:e=>e.langConfig.imageLink.toolbar,action:e=>{this.handleInsertImages([{name:"Description",url:"http://"}])}},{name:"browse-image",text:this.$L("\u6D4F\u89C8\u56FE\u7247\u7A7A\u95F4"),action:e=>{this.$refs.myUpload.browsePicture()}},{name:"upload-image",text:e=>e.langConfig.uploadImage.toolbar,action:e=>{this.$refs.myUpload.handleClick()}},{name:"upload-local",text:this.$L("\u4E0A\u4F20\u672C\u5730\u6587\u4EF6"),action:e=>{this.$refs.fileUpload.handleClick()}}]}},uploadIng:0,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"],actionUrl:$A.apiUrl("system/fileupload"),maxSize:1024e3}},created(){r.use(c,{Prism:u,extend(e){}})},mounted(){this.windowWidth>1200&&this.$refs.editor.toggleToc(!0),this.showEditor=!0},computed:{headers(){return{fd:$A.getSessionStorageString("userWsFd"),token:this.userToken}}},watch:{value:{handler(e){e==null&&(e=""),this.content=e},immediate:!0},content(e){this.$emit("input",e)}},methods:{handleUpload(e){e.type==="drop"?this.$refs.fileUpload.onDrop(e):this.$refs.fileUpload.handlePaste(e)},handleInsertText(e,t=""){this.$refs.editor.focus(),this.$refs.editor.replaceSelectionText(e),this.$refs.editor.changeSelctionTo(e,t)},handleInsertImages(e){this.$refs.editor.focus(),e.forEach(t=>{const o=t.name||"image",i=`
`;this.$refs.editor.replaceSelectionText(i),this.$refs.editor.changeSelctionTo(i,e.length===1?o:"")})},handleProgress(e,t){t._uploadIng===void 0&&(t._uploadIng=!0,this.uploadIng++)},handleSuccess(e,t){if(this.uploadIng--,e.ret===1){const{data:o}=e;this.handleInsertText(`[${o.name} (${$A.bytesToSize(o.size*1024)})](${o.url})`)}else $A.modalWarning({title:"\u4E0A\u4F20\u5931\u8D25",content:"\u6587\u4EF6 "+t.name+" \u4E0A\u4F20\u5931\u8D25\uFF0C"+e.msg})},handleError(){this.uploadIng--},handleFormatError(e){$A.modalWarning({title:"\u6587\u4EF6\u683C\u5F0F\u4E0D\u6B63\u786E",content:"\u6587\u4EF6 "+e.name+" \u683C\u5F0F\u4E0D\u6B63\u786E\uFF0C\u4EC5\u652F\u6301\u4E0A\u4F20\uFF1A"+this.uploadFormat.join(",")})},handleMaxSize(e){$A.modalWarning({title:"\u8D85\u51FA\u6587\u4EF6\u5927\u5C0F\u9650\u5236",content:"\u6587\u4EF6 "+e.name+" \u592A\u5927\uFF0C\u4E0D\u80FD\u8D85\u8FC7\uFF1A"+$A.bytesToSize(this.maxSize*1024)+"\u3002"})},handleBeforeUpload(){return!0}}},a={};var b=f(I,$,x,!1,S,"0e1ab98a",null,null);function S(e){for(let t in a)this[t]=a[t]}var we=function(){return b.exports}();export{we as default};
diff --git a/public/js/build/email.9e66000c.js b/public/js/build/email.f60e6037.js
similarity index 97%
rename from public/js/build/email.9e66000c.js
rename to public/js/build/email.f60e6037.js
index b3abea366..20b5f42f9 100644
--- a/public/js/build/email.9e66000c.js
+++ b/public/js/build/email.f60e6037.js
@@ -1 +1 @@
-import{m as s}from"./vuex.cc7cb26e.js";import{n as m}from"./app.818b057c.js";import"./jquery.c87f487f.js";import"./@babel.9410f858.js";import"./dayjs.fd4aa75c.js";import"./localforage.8de7c27e.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./vue.adba9046.js";import"./openpgp_hi.15f91b1d.js";import"./axios.37c7f908.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./view-design-hi.24419422.js";import"./html-to-md.f297036e.js";import"./lodash.8fcd6fd4.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vuedraggable.f464b992.js";import"./sortablejs.3488b922.js";import"./vue-resize-observer.5af23a43.js";import"./element-sea.f8a64907.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var a=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"setting-item submit"},[t.configLoad>0?e("Loading"):e("Form",t._b({ref:"formDatum",attrs:{model:t.formDatum,rules:t.ruleDatum},nativeOn:{submit:function(r){r.preventDefault()}}},"Form",t.formOptions,!1),[t.isLdap?e("Alert",{attrs:{type:"warning"}},[t._v(t._s(t.$L("LDAP \u7528\u6237\u7981\u6B62\u4FEE\u6539\u90AE\u7BB1")))]):t._e(),e("FormItem",{attrs:{label:t.$L("\u65B0\u90AE\u7BB1\u5730\u5740"),prop:"newEmail"}},[t.isRegVerify==1?e("Input",{class:t.count>0?"setting-send-input":"setting-input",attrs:{search:"","enter-button":t.$L(t.sendBtnText),disabled:t.isLdap,placeholder:t.$L("\u8F93\u5165\u65B0\u90AE\u7BB1\u5730\u5740")},on:{"on-search":t.sendEmailCode},model:{value:t.formDatum.newEmail,callback:function(r){t.$set(t.formDatum,"newEmail",r)},expression:"formDatum.newEmail"}}):e("Input",{staticClass:"setting-input",attrs:{disabled:t.isLdap,placeholder:t.$L("\u8F93\u5165\u65B0\u90AE\u7BB1\u5730\u5740")},model:{value:t.formDatum.newEmail,callback:function(r){t.$set(t.formDatum,"newEmail",r)},expression:"formDatum.newEmail"}})],1),t.isRegVerify==1?e("FormItem",{attrs:{label:t.$L("\u9A8C\u8BC1\u7801"),prop:"code"}},[e("Input",{attrs:{placeholder:t.$L("\u8F93\u5165\u90AE\u7BB1\u9A8C\u8BC1\u7801")},model:{value:t.formDatum.code,callback:function(r){t.$set(t.formDatum,"code",r)},expression:"formDatum.code"}})],1):t._e()],1),e("div",{staticClass:"setting-footer"},[e("Button",{attrs:{loading:t.loadIng>0,type:"primary",disabled:t.isLdap},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),e("Button",{attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},n=[];const l={data(){return{loadIng:0,configLoad:0,formDatum:{newEmail:"",code:""},ruleDatum:{newEmail:[{validator:(t,i,e)=>{i.trim()===""?e(new Error(this.$L("\u8BF7\u8F93\u5165\u65B0\u90AE\u7BB1\u5730\u5740\uFF01"))):$A.isEmail(i.trim())?e():e(new Error(this.$L("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u90AE\u7BB1\u5730\u5740\uFF01")))},required:!0,trigger:"change"}]},count:0,isSendButtonShow:!0,isRegVerify:0,sendBtnText:this.$L("\u53D1\u9001\u9A8C\u8BC1\u7801")}},mounted(){this.getRegVerify()},computed:{...s(["formOptions"]),isLdap(){return this.$store.state.userInfo.identity.includes("ldap")}},methods:{sendEmailCode(){this.$store.dispatch("call",{url:"users/email/send",data:{type:2,email:this.formDatum.newEmail},spinner:!0}).then(t=>{this.isSendButtonShow=!1,this.count=120,this.sendBtnText=this.count+" \u79D2";let i=setInterval(()=>{this.count--,this.sendBtnText=this.count+" \u79D2",this.count<=0&&(this.sendBtnText=this.$L("\u53D1\u9001\u9A8C\u8BC1\u7801"),clearInterval(i))},1e3)}).catch(({msg:t})=>{$A.messageError(t)})},submitForm(){this.$refs.formDatum.validate(t=>{t&&(this.loadIng++,this.$store.dispatch("call",{url:"users/email/edit",data:this.formDatum}).then(({data:i})=>{this.count=0,this.sendBtnText=this.$L("\u53D1\u9001\u9A8C\u8BC1\u7801"),$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.$store.dispatch("saveUserInfo",i),this.$refs.formDatum.resetFields(),this.isSendButtonShow=!0}).catch(({msg:i})=>{$A.modalError(i)}).finally(i=>{this.loadIng--}))})},resetForm(){this.$refs.formDatum.resetFields()},getRegVerify(){this.configLoad++,this.$store.dispatch("call",{url:"system/setting/email"}).then(({data:t})=>{this.isRegVerify=t.reg_verify==="open"}).finally(t=>{this.configLoad--})}}},o={};var p=m(l,a,n,!1,u,null,null,null);function u(t){for(let i in o)this[i]=o[i]}var ot=function(){return p.exports}();export{ot as default};
+import{m as s}from"./vuex.cc7cb26e.js";import{n as m}from"./app.ef7047f7.js";import"./jquery.6e4daff9.js";import"./@babel.9410f858.js";import"./dayjs.d20a4841.js";import"./localforage.743dffdd.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./vue.adba9046.js";import"./openpgp_hi.15f91b1d.js";import"./axios.37c7f908.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./view-design-hi.24419422.js";import"./html-to-md.f297036e.js";import"./lodash.8fcd6fd4.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vuedraggable.f464b992.js";import"./sortablejs.3488b922.js";import"./vue-resize-observer.5af23a43.js";import"./element-sea.f8a64907.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var a=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"setting-item submit"},[t.configLoad>0?e("Loading"):e("Form",t._b({ref:"formDatum",attrs:{model:t.formDatum,rules:t.ruleDatum},nativeOn:{submit:function(r){r.preventDefault()}}},"Form",t.formOptions,!1),[t.isLdap?e("Alert",{attrs:{type:"warning"}},[t._v(t._s(t.$L("LDAP \u7528\u6237\u7981\u6B62\u4FEE\u6539\u90AE\u7BB1")))]):t._e(),e("FormItem",{attrs:{label:t.$L("\u65B0\u90AE\u7BB1\u5730\u5740"),prop:"newEmail"}},[t.isRegVerify==1?e("Input",{class:t.count>0?"setting-send-input":"setting-input",attrs:{search:"","enter-button":t.$L(t.sendBtnText),disabled:t.isLdap,placeholder:t.$L("\u8F93\u5165\u65B0\u90AE\u7BB1\u5730\u5740")},on:{"on-search":t.sendEmailCode},model:{value:t.formDatum.newEmail,callback:function(r){t.$set(t.formDatum,"newEmail",r)},expression:"formDatum.newEmail"}}):e("Input",{staticClass:"setting-input",attrs:{disabled:t.isLdap,placeholder:t.$L("\u8F93\u5165\u65B0\u90AE\u7BB1\u5730\u5740")},model:{value:t.formDatum.newEmail,callback:function(r){t.$set(t.formDatum,"newEmail",r)},expression:"formDatum.newEmail"}})],1),t.isRegVerify==1?e("FormItem",{attrs:{label:t.$L("\u9A8C\u8BC1\u7801"),prop:"code"}},[e("Input",{attrs:{placeholder:t.$L("\u8F93\u5165\u90AE\u7BB1\u9A8C\u8BC1\u7801")},model:{value:t.formDatum.code,callback:function(r){t.$set(t.formDatum,"code",r)},expression:"formDatum.code"}})],1):t._e()],1),e("div",{staticClass:"setting-footer"},[e("Button",{attrs:{loading:t.loadIng>0,type:"primary",disabled:t.isLdap},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),e("Button",{attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},n=[];const l={data(){return{loadIng:0,configLoad:0,formDatum:{newEmail:"",code:""},ruleDatum:{newEmail:[{validator:(t,i,e)=>{i.trim()===""?e(new Error(this.$L("\u8BF7\u8F93\u5165\u65B0\u90AE\u7BB1\u5730\u5740\uFF01"))):$A.isEmail(i.trim())?e():e(new Error(this.$L("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u90AE\u7BB1\u5730\u5740\uFF01")))},required:!0,trigger:"change"}]},count:0,isSendButtonShow:!0,isRegVerify:0,sendBtnText:this.$L("\u53D1\u9001\u9A8C\u8BC1\u7801")}},mounted(){this.getRegVerify()},computed:{...s(["formOptions"]),isLdap(){return this.$store.state.userInfo.identity.includes("ldap")}},methods:{sendEmailCode(){this.$store.dispatch("call",{url:"users/email/send",data:{type:2,email:this.formDatum.newEmail},spinner:!0}).then(t=>{this.isSendButtonShow=!1,this.count=120,this.sendBtnText=this.count+" \u79D2";let i=setInterval(()=>{this.count--,this.sendBtnText=this.count+" \u79D2",this.count<=0&&(this.sendBtnText=this.$L("\u53D1\u9001\u9A8C\u8BC1\u7801"),clearInterval(i))},1e3)}).catch(({msg:t})=>{$A.messageError(t)})},submitForm(){this.$refs.formDatum.validate(t=>{t&&(this.loadIng++,this.$store.dispatch("call",{url:"users/email/edit",data:this.formDatum}).then(({data:i})=>{this.count=0,this.sendBtnText=this.$L("\u53D1\u9001\u9A8C\u8BC1\u7801"),$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.$store.dispatch("saveUserInfo",i),this.$refs.formDatum.resetFields(),this.isSendButtonShow=!0}).catch(({msg:i})=>{$A.modalError(i)}).finally(i=>{this.loadIng--}))})},resetForm(){this.$refs.formDatum.resetFields()},getRegVerify(){this.configLoad++,this.$store.dispatch("call",{url:"system/setting/email"}).then(({data:t})=>{this.isRegVerify=t.reg_verify==="open"}).finally(t=>{this.configLoad--})}}},o={};var p=m(l,a,n,!1,u,null,null,null);function u(t){for(let i in o)this[i]=o[i]}var ot=function(){return p.exports}();export{ot as default};
diff --git a/public/js/build/file.216499be.js b/public/js/build/file.5d43d793.js
similarity index 98%
rename from public/js/build/file.216499be.js
rename to public/js/build/file.5d43d793.js
index 40ff9def2..6bc905749 100644
--- a/public/js/build/file.216499be.js
+++ b/public/js/build/file.5d43d793.js
@@ -1 +1 @@
-import{_ as w}from"./openpgp_hi.15f91b1d.js";import{m as k}from"./vuex.cc7cb26e.js";import{l as L}from"./lodash.8fcd6fd4.js";import{o as S,i as y}from"./file.5e8166ad.js";import{U as I,D as C}from"./index.ab4b7604.js";import{n as v,L as x,F,U as T,c as A}from"./app.818b057c.js";import{C as M,c as D}from"./chunkedUpload.a9ef725e.js";import"./@babel.9410f858.js";import"./jquery.c87f487f.js";import"./dayjs.fd4aa75c.js";import"./localforage.8de7c27e.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./vue.adba9046.js";import"./axios.37c7f908.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./view-design-hi.24419422.js";import"./html-to-md.f297036e.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vuedraggable.f464b992.js";import"./sortablejs.3488b922.js";import"./vue-resize-observer.5af23a43.js";import"./element-sea.f8a64907.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";import"./spark-md5.0443325f.js";var P=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("svg",{attrs:{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"}},[t("path",{attrs:{d:"M14 5H19V10",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round"}}),t("path",{attrs:{d:"M19 5L11 13",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round"}}),t("path",{attrs:{d:"M19 14V17A2 2 0 0 1 17 19H7A2 2 0 0 1 5 17V7A2 2 0 0 1 7 5H10",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round"}})])},E=[];const B={name:"CollaborationSourceIcon"},m={};var j=v(B,P,E,!1,z,null,null,null);function z(e){for(let i in m)this[i]=m[i]}var U=function(){return j.exports}(),O=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"collaboration-files"},[t("div",{staticClass:"collaboration-toolbar"},[t("div",{staticClass:"scope-segment"},[t("button",{class:{active:e.scope==="all"},on:{click:function(s){return e.setScope("all")}}},[e._v(e._s(e.$L("\u5168\u90E8")))]),t("button",{class:{active:e.scope==="conversation"},on:{click:function(s){return e.setScope("conversation")}}},[e._v(e._s(e.$L("\u4F1A\u8BDD")))]),t("button",{class:{active:e.scope==="project"},on:{click:function(s){return e.setScope("project")}}},[e._v(e._s(e.$L("\u9879\u76EE")))])]),e.scope==="conversation"?t("div",{staticClass:"sub-segment"},[t("button",{class:{active:e.conversationType==="all"},on:{click:function(s){return e.setConversationType("all")}}},[e._v(e._s(e.$L("\u5168\u90E8\u4F1A\u8BDD")))]),t("button",{class:{active:e.conversationType==="private"},on:{click:function(s){return e.setConversationType("private")}}},[e._v(e._s(e.$L("\u79C1\u804A")))]),t("button",{class:{active:e.conversationType==="group"},on:{click:function(s){return e.setConversationType("group")}}},[e._v(e._s(e.$L("\u7FA4\u804A")))])]):e._e(),e.scope==="project"?[t("Select",{staticClass:"project-select",staticStyle:{"max-width":"auto"},attrs:{placeholder:e.$L("\u9009\u62E9\u9879\u76EE"),filterable:""},on:{"on-change":e.reload},model:{value:e.projectId,callback:function(s){e.projectId=s},expression:"projectId"}},[t("Option",{attrs:{value:0}},[e._v(e._s(e.$L("\u5168\u90E8\u9879\u76EE")))]),e._l(e.projects,function(s){return t("Option",{key:s.id,attrs:{value:s.id}},[e._v(e._s(s.name))])})],2),t("div",{staticClass:"sub-segment"},[t("button",{class:{active:e.projectSource==="all"},on:{click:function(s){return e.setProjectSource("all")}}},[e._v(e._s(e.$L("\u5168\u90E8")))]),t("button",{class:{active:e.projectSource==="project_chat"},on:{click:function(s){return e.setProjectSource("project_chat")}}},[e._v(e._s(e.$L("\u9879\u76EE\u7FA4\u804A")))]),t("button",{class:{active:e.projectSource==="task"},on:{click:function(s){return e.setProjectSource("task")}}},[e._v(e._s(e.$L("\u4EFB\u52A1")))])])]:e._e(),t("div",{staticClass:"toolbar-full"}),t("Select",{staticClass:"type-select",on:{"on-change":e.reload},model:{value:e.fileType,callback:function(s){e.fileType=s},expression:"fileType"}},[t("Option",{attrs:{value:"all"}},[e._v(e._s(e.$L("\u6240\u6709\u7C7B\u578B")))]),t("Option",{attrs:{value:"document"}},[e._v(e._s(e.$L("\u6587\u6863")))]),t("Option",{attrs:{value:"sheet"}},[e._v(e._s(e.$L("\u8868\u683C")))]),t("Option",{attrs:{value:"slide"}},[e._v(e._s(e.$L("\u6F14\u793A\u6587\u7A3F")))]),t("Option",{attrs:{value:"image"}},[e._v(e._s(e.$L("\u56FE\u7247")))]),t("Option",{attrs:{value:"video"}},[e._v(e._s(e.$L("\u89C6\u9891")))]),t("Option",{attrs:{value:"archive"}},[e._v(e._s(e.$L("\u538B\u7F29\u5305")))]),t("Option",{attrs:{value:"other"}},[e._v(e._s(e.$L("\u5176\u4ED6")))])],1),t("Select",{staticClass:"sender-select",on:{"on-change":e.reload},model:{value:e.senderScope,callback:function(s){e.senderScope=s},expression:"senderScope"}},[t("Option",{attrs:{value:"all"}},[e._v(e._s(e.$L("\u6240\u6709\u6210\u5458")))]),t("Option",{attrs:{value:"mine"}},[e._v(e._s(e.$L("\u6211\u53D1\u9001\u7684")))])],1),t("div",{class:["view-switch",{table:e.viewMode==="list"}]},[t("div",{attrs:{title:e.$L("\u5BAB\u683C")},on:{click:function(s){e.viewMode="grid"}}},[t("i",{staticClass:"taskfont"},[e._v("\uE60C")])]),t("div",{attrs:{title:e.$L("\u5217\u8868")},on:{click:function(s){e.viewMode="list"}}},[t("i",{staticClass:"taskfont"},[e._v("\uE66A")])])])],2),t("div",{staticClass:"collaboration-summary"},[t("div",{staticClass:"summary-icon"},[t("Icon",{attrs:{type:e.summaryIcon}})],1),t("div",{staticClass:"summary-text"},[t("strong",[e._v(e._s(e.summaryTitle))]),t("span",[e._v(e._s(e.summarySubtitle))])]),e.items.length?t("div",{staticClass:"loaded-count"},[e._v(e._s(e.$L("\u5DF2\u52A0\u8F7D(*)\u4E2A\u6587\u4EF6",e.items.length)))]):e._e()]),t("div",{ref:"scroller",staticClass:"collaboration-scroll",on:{scroll:e.onScroll}},[e.initializing||e.loading&&e.items.length===0?t("div",{staticClass:"initial-loading"},[t("Loading")],1):e.items.length?[e.viewMode==="list"?t("div",{staticClass:"collaboration-table"},[t("div",{staticClass:"table-head"},[t("span",[e._v(e._s(e.$L("\u6587\u4EF6\u540D")))]),t("span",[e._v(e._s(e.$L("\u6765\u6E90")))]),t("span",[e._v(e._s(e.$L("\u53D1\u9001\u4EBA")))]),t("span",[e._v(e._s(e.$L("\u65F6\u95F4")))]),t("span",[e._v(e._s(e.$L("\u5927\u5C0F")))]),t("span",[e._v(e._s(e.$L("\u64CD\u4F5C")))])]),e._l(e.items,function(s){return t("div",{key:e.itemKey(s),staticClass:"table-row"},[t("div",{staticClass:"file-main",on:{click:function(a){return e.preview(s)}}},[t("div",{staticClass:"collaboration-file-preview"},[e.showThumbnail(s)?t("img",{staticClass:"collaboration-thumbnail",attrs:{src:s.image_url,alt:""},on:{error:function(a){return a.stopPropagation(),e.handleThumbnailError(s)}}}):t("div",{class:["no-dark-content","collaboration-file-icon",e.fileIconType(s)]})]),t("div",{staticClass:"file-text"},[t("AutoTip",{staticClass:"file-title"},[e._v(e._s(e.fileName(s)))]),t("span",[e._v(e._s(e.fileTypeText(s)))])],1)]),t("div",{staticClass:"source-main",on:{click:function(a){return e.openSource(s)}}},[t("div",{staticClass:"source-text"},[t("span",{class:["source-type",s.source_type]},[e._v(e._s(e.sourceTypeText(s)))]),t("span",{staticClass:"source-name",attrs:{title:e.sourcePath(s)}},[e._v(e._s(s.source_name))])])]),t("UserAvatar",{attrs:{userid:s.sender.userid,size:24,showName:""}}),t("span",{staticClass:"time-text"},[e._v(e._s(e.formatTime(s.created_at)))]),t("span",{staticClass:"size-text"},[e._v(e._s(e.$A.bytesToSize(s.size)))]),t("div",{staticClass:"row-actions"},[t("ETooltip",{attrs:{content:e.$L("\u6253\u5F00\u6765\u6E90")}},[t("button",{on:{click:function(a){return e.locateMessage(s)}}},[t("CollaborationSourceIcon")],1)]),t("ETooltip",{attrs:{content:e.localActionTitle(s)}},[t("button",{attrs:{disabled:e.localFileStatus(s)==="downloading"},on:{click:function(a){return e.handleLocalAction(s)}}},[t("LocalFileStatusIcon",{attrs:{status:e.localFileStatus(s)}})],1)])],1)],1)})],2):t("div",{staticClass:"collaboration-grid"},e._l(e.items,function(s){return t("div",{key:e.itemKey(s),staticClass:"grid-item",on:{click:function(a){return e.preview(s)}}},[t("div",{staticClass:"grid-preview"},[e.showThumbnail(s)?t("img",{staticClass:"collaboration-thumbnail",attrs:{src:s.image_url,alt:""},on:{error:function(a){return a.stopPropagation(),e.handleThumbnailError(s)}}}):t("div",{class:["no-dark-content","collaboration-file-icon",e.fileIconType(s)]})]),t("AutoTip",{staticClass:"grid-title"},[e._v(e._s(e.fileName(s)))]),t("div",{staticClass:"grid-source"},[t("span",{class:["source-type",s.source_type]},[e._v(e._s(e.sourceTypeText(s)))]),t("AutoTip",{staticClass:"grid-source-name",attrs:{content:e.sourcePath(s)}},[e._v(e._s(s.source_name))])],1),t("div",{staticClass:"grid-meta"},[e._v(e._s(s.sender.nickname||e.$L("\u672A\u77E5\u6210\u5458"))+" \xB7 "+e._s(e.formatTime(s.created_at)))]),t("div",{staticClass:"grid-actions",on:{click:function(a){a.stopPropagation()}}},[t("button",{attrs:{title:e.$L("\u6253\u5F00\u6765\u6E90")},on:{click:function(a){return e.locateMessage(s)}}},[t("CollaborationSourceIcon")],1),t("button",{attrs:{title:e.localActionTitle(s),disabled:e.localFileStatus(s)==="downloading"},on:{click:function(a){return e.handleLocalAction(s)}}},[t("LocalFileStatusIcon",{attrs:{status:e.localFileStatus(s)}})],1)])],1)}),0),e.loading?t("div",{staticClass:"load-more"},[t("Loading")],1):e.hasMore?e._e():t("div",{staticClass:"list-end"},[e._v(e._s(e.$L("\u6CA1\u6709\u66F4\u591A\u6587\u4EF6\u4E86")))])]:t("div",{staticClass:"empty-state"},[t("Icon",{attrs:{type:"ios-folder-open-outline"}}),t("p",[e._v(e._s(e.$L("\u6CA1\u6709\u627E\u5230\u76F8\u5173\u6587\u4EF6")))])],1)],2)])},N=[];const _=1,R={name:"CollaborationFileList",components:{CollaborationSourceIcon:U,LocalFileStatusIcon:x},props:{searchKey:{type:String,default:""}},data(){return{scope:"all",conversationType:"all",projectId:0,projectSource:"all",fileType:"all",senderScope:"all",viewMode:this.$store.state.collaborationFileViewMode==="grid"?"grid":"list",items:[],cursor:0,hasMore:!1,loading:0,initializing:!0,searchTimer:null,requestId:0,localFileStatuses:{},removeDownloadListener:null}},computed:{...k(["cacheProjects","collaborationFileCache","userId"]),projects(){return this.cacheProjects.filter(e=>!e.deleted_at&&!e.archived_at).slice().sort((e,i)=>e.name.localeCompare(i.name))},selectedProject(){return this.projects.find(e=>e.id==this.projectId)},summaryIcon(){return this.scope==="project"?"ios-briefcase-outline":this.scope==="conversation"?"ios-chatbubbles-outline":"ios-git-merge"},summaryTitle(){var e;if(this.scope==="project"){const i=((e=this.selectedProject)==null?void 0:e.name)||this.$L("\u5168\u90E8\u9879\u76EE");return this.projectSource==="task"?this.$L("(*) \xB7 \u4EFB\u52A1\u6587\u4EF6",i):this.projectSource==="project_chat"?this.$L("(*) \xB7 \u9879\u76EE\u7FA4\u804A\u6587\u4EF6",i):this.$L("(*) \xB7 \u5168\u90E8\u6587\u4EF6",i)}return this.scope==="conversation"?this.conversationType==="private"?this.$L("\u4E2A\u4EBA\u804A\u5929\u6587\u4EF6"):this.conversationType==="group"?this.$L("\u666E\u901A\u7FA4\u804A\u6587\u4EF6"):this.$L("\u5168\u90E8\u4F1A\u8BDD\u6587\u4EF6"):this.$L("\u5168\u90E8\u534F\u4F5C\u6587\u4EF6")},summarySubtitle(){return this.scope==="project"?this.$L("\u6C47\u603B\u9879\u76EE\u7FA4\u804A\u548C\u9879\u76EE\u4E0B\u4EFB\u52A1\u4E2D\u7684\u6587\u4EF6"):this.scope==="conversation"?this.$L("\u6765\u81EA\u79C1\u804A\u548C\u666E\u901A\u7FA4\u804A\u7684\u6587\u4EF6"):this.$L("\u5305\u542B\u4F1A\u8BDD\u3001\u9879\u76EE\u7FA4\u804A\u548C\u4EFB\u52A1\u4E2D\u7684\u6587\u4EF6")}},watch:{searchKey(){clearTimeout(this.searchTimer),this.searchTimer=setTimeout(()=>this.reload(),400)},viewMode(e){this.$store.commit("collaboration/file/view/save",e)}},created(){this.restoreCache(this.collaborationFileCache)&&(this.initializing=!1)},mounted(){this.$store.dispatch("getProjects").catch(()=>{}),this.$Electron&&(this.removeDownloadListener=$A.Electron.listener("downloadItemsChanged",()=>{this.refreshLocalFileStatuses()}),this.refreshLocalFileStatuses()),this.refresh(),this.initializing=!1},beforeDestroy(){clearTimeout(this.searchTimer),typeof this.removeDownloadListener=="function"&&this.removeDownloadListener()},methods:{setScope(e){this.scope!==e&&(this.scope=e,this.reload())},setConversationType(e){this.conversationType!==e&&(this.conversationType=e,this.reload())},setProjectSource(e){this.projectSource!==e&&(this.projectSource=e,this.reload())},reload(){this.loadFirstPage(!1)},refresh(){this.loadFirstPage(!0)},loadFirstPage(e){this.requestId++,this.loading=0,e||(this.items=[],this.localFileStatuses={}),this.cursor=0,this.hasMore=!1,this.load(!0)},load(e=!1){if(this.loading||this.cursor&&!this.hasMore)return;const i=++this.requestId,t=e?0:this.cursor;this.loading++,this.$store.dispatch("call",{url:"file/collaboration/lists",data:{scope:this.scope,conversation_type:this.conversationType,project_id:this.projectId,project_source:this.projectSource,file_type:this.fileType,sender_id:this.senderScope==="mine"?this.userId:0,key:this.searchKey.trim(),cursor:t,take:50}}).then(({data:s})=>{i===this.requestId&&(e?this.items=s.list:this.items.push(...s.list),this.refreshLocalFileStatuses(s.list),this.cursor=s.next_cursor,this.hasMore=s.has_more,e&&!this.searchKey.trim()&&this.saveCache(s))}).catch(({msg:s})=>{s&&$A.modalError(s)}).finally(()=>{i===this.requestId&&this.loading--})},cacheParams(){return{scope:this.scope,conversationType:this.conversationType,projectId:this.projectId,projectSource:this.projectSource,fileType:this.fileType,senderScope:this.senderScope}},restoreCache(e){if(!$A.isJson(e)||e.version!==_||e.userId!==this.userId||!$A.isJson(e.params)||!$A.isArray(e.list))return!1;const i=e.params;return!["all","conversation","project"].includes(i.scope)||!["all","private","group"].includes(i.conversationType)||!["all","project_chat","task"].includes(i.projectSource)||!["all","document","sheet","slide","image","video","archive","other"].includes(i.fileType)||!["all","mine"].includes(i.senderScope)?!1:(this.scope=i.scope,this.conversationType=i.conversationType,this.projectId=Math.max(0,parseInt(i.projectId)||0),this.projectSource=i.projectSource,this.fileType=i.fileType,this.senderScope=i.senderScope,this.searchKey.trim()||(this.items=e.list,this.cursor=e.next_cursor||0,this.hasMore=e.has_more===!0),!0)},saveCache(e){this.$store.commit("collaboration/file/cache/save",{version:_,userId:this.userId,params:this.cacheParams(),list:e.list,next_cursor:e.next_cursor,has_more:e.has_more})},onScroll(e){const i=e.target;i.scrollHeight-i.scrollTop-i.clientHeight<180&&this.hasMore&&this.load()},fileIconType(e){return e.file_type==="sheet"?"excel":e.file_type==="slide"?"ppt":e.file_type==="document"?e.ext==="pdf"?"pdf":"word":e.file_type==="image"?"picture":e.file_type==="video"?"media":e.file_type==="archive"?"archive":"file"},itemKey(e){return e.attachment_id?`attachment-${e.attachment_id}`:`message-${e.msg_id}`},fileReference(e){return{key:this.itemKey(e),msgId:e.msg_id,attachmentId:e.attachment_id}},localFileStatus(e){return this.$Electron&&this.localFileStatuses[this.itemKey(e)]||"missing"},localActionTitle(e){return this.localFileStatus(e)==="available"?this.$L("\u5728\u6587\u4EF6\u5939\u4E2D\u663E\u793A"):this.$L("\u4E0B\u8F7D")},async refreshLocalFileStatuses(e=this.items){if(!this.$Electron||!e.length)return;const i=e.map(s=>this.fileReference(s)),t=[];for(let s=0;s$A.Electron.sendAsync("downloadManager",{action:"fileStatuses",files:a})));this.localFileStatuses=Object.assign({},this.localFileStatuses,...s)}catch{}},showThumbnail(e){return!!e.image_url&&!e._thumbnailError},handleThumbnailError(e){this.$set(e,"_thumbnailError",!0)},fileTypeText(e){const i={document:"\u6587\u6863",sheet:"\u8868\u683C",slide:"\u6F14\u793A\u6587\u7A3F",image:"\u56FE\u7247",video:"\u89C6\u9891",archive:"\u538B\u7F29\u5305",other:"\u5176\u4ED6"};return`${this.$L(i[e.file_type]||"\u5176\u4ED6")} \xB7 ${(e.ext||"").toUpperCase()}`},fileName(e){if(e.attachment_source==="inline_image"&&e.generated_name){const i=$A.dayjs(e.created_at).format("YYYY-MM-DD HH:mm");return this.$L("\u804A\u5929\u56FE\u7247 (*)",`${i} #${(e.attachment_position||0)+1}`)}return e.name},sourceTypeText(e){const i={private:"\u79C1\u804A",group:"\u7FA4\u804A",project_chat:"\u9879\u76EE\u7FA4\u804A",task:"\u4EFB\u52A1"};return this.$L(i[e.source_type]||"\u7FA4\u804A")},sourcePath(e){return e.source_type==="task"?`${e.project_name} / ${e.task_name}`:e.source_type==="project_chat"?e.project_name:e.source_type==="private"?this.$L("\u4E2A\u4EBA\u4F1A\u8BDD"):this.$L("\u666E\u901A\u7FA4\u804A")},formatTime(e){if(!e)return"-";const i=$A.dayjs(e);return i.isSame($A.dayjs(),"day")?i.format("HH:mm"):i.isSame($A.dayjs().subtract(1,"day"),"day")?this.$L("\u6628\u5929 (*)",i.format("HH:mm")):i.format("YYYY-MM-DD HH:mm")},preview(e){if(e.attachment_source==="inline_image"&&e.image_url){this.$store.dispatch("previewImage",e.image_url);return}S(this,e,{path:`/single/file/msg/${e.msg_id}`,windowName:`file-msg-${e.msg_id}`})},openSource(e){if(e.source_type==="task"&&e.task_id){this.$store.dispatch("openTask",{id:e.task_id,project_id:e.project_id});return}this.locateMessage(e)},locateMessage(e){this.$store.dispatch("openDialog",{dialog_id:e.dialog_id,search_msg_id:e.msg_id}).catch(({msg:i})=>i&&$A.modalError(i))},downloadUrl(e){return e.attachment_source==="file_message"?`dialog/msg/download?msg_id=${e.msg_id}`:e.attachment_id?`file/collaboration/download?attachment_id=${e.attachment_id}`:`dialog/msg/download?msg_id=${e.msg_id}`},async handleLocalAction(e){if(!this.$Electron){this.download(e);return}const i=this.localFileStatus(e);if(i!=="downloading"){if(i==="available"){try{if(await $A.Electron.sendAsync("downloadManager",{action:"showFile",file:this.fileReference(e)}))return}catch{}this.$set(this.localFileStatuses,this.itemKey(e),"missing");return}this.$set(this.localFileStatuses,this.itemKey(e),"downloading"),this.$store.dispatch("downUrl",$A.apiUrl(this.downloadUrl(e))),setTimeout(()=>this.refreshLocalFileStatuses([e]),500)}},download(e){$A.modalConfirm({language:!1,title:this.$L("\u4E0B\u8F7D\u6587\u4EF6"),okText:this.$L("\u7ACB\u5373\u4E0B\u8F7D"),content:`${this.fileName(e)} (${$A.bytesToSize(e.size)})`,onOk:()=>this.$store.dispatch("downUrl",$A.apiUrl(this.downloadUrl(e)))})}}},g={};var V=v(R,O,N,!1,K,"78773d94",null,null);function K(e){for(let i in g)this[i]=g[i]}var W=function(){return V.exports}(),H=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("Modal",{attrs:{title:e.$L("WebDAV"),"mask-closable":!1,width:"640"},model:{value:e.visible,callback:function(s){e.visible=s},expression:"visible"}},[t("div",{staticClass:"webdav-manager"},[e.loading>0?t("Spin",{attrs:{fix:""}}):e._e(),e.status&&(!e.status.enabled||!e.status.allowed)?t("Alert",{attrs:{type:"warning","show-icon":""}},[e._v(" "+e._s(e.status.enabled?e.$L("\u4F60\u6CA1\u6709 WebDAV \u4F7F\u7528\u6743\u9650"):e.$L("WebDAV \u672A\u542F\u7528"))+" ")]):e.status?[e.status.https?e._e():t("Alert",{attrs:{type:"warning","show-icon":""}},[e._v(" "+e._s(e.$L("\u5F53\u524D\u9875\u9762\u4E0D\u662F HTTPS\uFF0C\u65E0\u6CD5\u521B\u5EFA\u5E94\u7528\u5BC6\u7801"))+" ")]),t("div",{staticClass:"webdav-section"},[t("div",{staticClass:"webdav-section-title"},[e._v(e._s(e.$L("\u8FDE\u63A5\u5730\u5740")))]),t("div",{staticClass:"webdav-copy-row"},[t("Input",{attrs:{value:e.status.url,readonly:""}}),t("Button",{attrs:{icon:"ios-copy-outline"},on:{click:function(s){return e.copyText(e.status.url)}}},[e._v(e._s(e.$L("\u590D\u5236")))])],1)]),e.created.password?t("Alert",{staticClass:"webdav-secret",attrs:{type:"success","show-icon":""}},[e._v(" "+e._s(e.$L("\u5E94\u7528\u5BC6\u7801\u5DF2\u521B\u5EFA\uFF0C\u8BF7\u7ACB\u5373\u4FDD\u5B58\uFF0C\u5173\u95ED\u540E\u65E0\u6CD5\u518D\u6B21\u67E5\u770B\u3002"))+" "),t("div",{staticClass:"webdav-secret-fields",attrs:{slot:"desc"},slot:"desc"},[t("div",[t("span",[e._v(e._s(e.$L("\u7528\u6237\u540D")))]),t("div",{staticClass:"webdav-copy-row"},[t("Input",{attrs:{value:e.created.public_id,readonly:""}}),t("Button",{attrs:{icon:"ios-copy-outline"},on:{click:function(s){return e.copyText(e.created.public_id)}}},[e._v(e._s(e.$L("\u590D\u5236")))])],1)]),t("div",[t("span",[e._v(e._s(e.$L("\u5E94\u7528\u5BC6\u7801")))]),t("div",{staticClass:"webdav-copy-row"},[t("Input",{attrs:{value:e.created.password,readonly:""}}),t("Button",{attrs:{icon:"ios-copy-outline"},on:{click:function(s){return e.copyText(e.created.password)}}},[e._v(e._s(e.$L("\u590D\u5236")))])],1)])])]):e._e(),t("div",{staticClass:"webdav-section"},[t("div",{staticClass:"webdav-section-head"},[t("div",{staticClass:"webdav-section-title"},[e._v(e._s(e.$L("\u5E94\u7528\u5BC6\u7801")))]),e.createVisible?e._e():t("Button",{attrs:{type:"primary",icon:"md-add",disabled:!e.status.https||e.activeCredentialCount>=e.status.max_credentials},on:{click:function(s){e.createVisible=!0}}},[e._v(" "+e._s(e.$L("\u65B0\u5EFA"))+" ")])],1),e.createVisible?t("Form",{staticClass:"webdav-create",nativeOn:{submit:function(s){s.preventDefault()}}},[t("div",{staticClass:"webdav-create-fields"},[t("div",{staticClass:"webdav-create-field"},[t("label",[e._v(e._s(e.$L("\u8BBE\u5907\u540D\u79F0")))]),t("Input",{attrs:{maxlength:100,placeholder:e.$L("\u4F8B\u5982\uFF1A\u529E\u516C\u5BA4\u7535\u8111")},model:{value:e.createForm.name,callback:function(s){e.$set(e.createForm,"name",s)},expression:"createForm.name"}})],1),t("div",{staticClass:"webdav-create-field"},[t("label",[e._v(e._s(e.$L("\u6709\u6548\u671F")))]),t("Input",{attrs:{type:"number",min:1,max:e.status.max_expire_days},model:{value:e.createForm.expire_days,callback:function(s){e.$set(e.createForm,"expire_days",s)},expression:"createForm.expire_days"}},[t("span",{attrs:{slot:"append"},slot:"append"},[e._v(e._s(e.$L("[day_unit].\u5929")))])])],1)]),t("div",{staticClass:"webdav-create-actions"},[t("Button",{on:{click:function(s){e.createVisible=!1}}},[e._v(e._s(e.$L("\u53D6\u6D88")))]),t("Button",{attrs:{type:"primary",loading:e.creating},on:{click:e.createCredential}},[e._v(e._s(e.$L("\u521B\u5EFA")))])],1)]):e._e(),e.credentials.length?t("div",{staticClass:"webdav-credentials"},e._l(e.credentials,function(s){return t("div",{key:s.id,staticClass:"webdav-credential"},[t("div",{staticClass:"webdav-credential-main"},[t("div",{staticClass:"webdav-credential-title"},[t("strong",[e._v(e._s(s.name))]),t("Tag",{attrs:{color:s.status==="active"?"green":"default"}},[e._v(e._s(e.statusText(s.status)))])],1),t("span",[e._v(e._s(s.public_id)+" \xB7 ****"+e._s(s.password_suffix))]),t("span",[e._v(" "+e._s(e.$L("\u6709\u6548\u671F\u81F3"))+"\uFF1A"+e._s(s.expires_at||e.$L("\u6C38\u4E45"))+" "),s.last_used_at?[e._v(" \xB7 "+e._s(e.$L("\u6700\u8FD1\u4F7F\u7528"))+"\uFF1A"+e._s(s.last_used_at))]:e._e()],2)]),s.status==="active"?t("Tooltip",{attrs:{content:e.$L("\u64A4\u9500"),placement:"top",transfer:""}},[t("Button",{staticClass:"webdav-credential-action",attrs:{icon:"md-close"},on:{click:function(a){return e.revokeCredential(s)}}})],1):t("Tooltip",{attrs:{content:e.$L("\u5220\u9664"),placement:"top",transfer:""}},[t("Button",{staticClass:"webdav-credential-action webdav-delete",attrs:{icon:"ios-trash-outline"},on:{click:function(a){return e.deleteCredential(s)}}})],1)],1)}),0):e.createVisible?e._e():t("div",{staticClass:"webdav-empty"},[e._v(e._s(e.$L("\u6682\u65E0\u5E94\u7528\u5BC6\u7801")))])],1)]:e._e()],2),t("div",{attrs:{slot:"footer"},slot:"footer"},[t("Button",{on:{click:function(s){e.visible=!1}}},[e._v(e._s(e.$L("\u5173\u95ED")))])],1)])},q=[];const Y={name:"WebDavManager",props:{value:Boolean},data(){return{visible:!1,loading:0,creating:!1,status:null,credentials:[],created:{},createVisible:!1,createForm:{name:"",expire_days:90}}},watch:{value:{immediate:!0,handler(e){this.visible=e,e&&this.load()}},visible(e){this.$emit("input",e),e||(this.created={},this.createVisible=!1)}},computed:{activeCredentialCount(){return this.credentials.filter(e=>e.status==="active").length}},methods:{load(){this.loading++,Promise.all([this.$store.dispatch("call",{url:"file/dav/status"}),this.$store.dispatch("call",{url:"file/dav/credentials"})]).then(([e,i])=>{this.status=e.data,this.credentials=i.data||[],this.createForm.expire_days=this.status.default_expire_days}).catch(({msg:e})=>{$A.modalError(e)}).finally(()=>{this.loading--})},createCredential(){if(!this.createForm.name.trim()){$A.messageWarning("\u8BF7\u8F93\u5165\u8BBE\u5907\u540D\u79F0");return}this.creating=!0,this.$store.dispatch("call",{url:"file/dav/create",method:"post",data:this.createForm}).then(({data:e})=>(this.created=e,this.createVisible=!1,this.createForm.name="",this.$store.dispatch("call",{url:"file/dav/credentials"}))).then(({data:e})=>{this.credentials=e||[]}).catch(({msg:e})=>{$A.modalError(e)}).finally(()=>{this.creating=!1})},revokeCredential(e){$A.modalConfirm({title:"\u64A4\u9500\u5E94\u7528\u5BC6\u7801",content:"\u64A4\u9500\u540E\uFF0C\u4F7F\u7528\u6B64\u5E94\u7528\u5BC6\u7801\u8FDE\u63A5\u7684\u8BBE\u5907\u5C06\u7ACB\u5373\u65AD\u5F00\u3002",onOk:()=>this.$store.dispatch("call",{url:"file/dav/revoke",method:"post",data:{id:e.id}}).then(()=>this.load())})},deleteCredential(e){$A.modalConfirm({title:"\u5220\u9664",content:"\u4F60\u786E\u5B9A\u8981\u5220\u9664\u5417\uFF1F",onOk:()=>this.$store.dispatch("call",{url:"file/dav/delete",method:"post",data:{id:e.id}}).then(()=>this.load())})},statusText(e){return e==="active"?this.$L("[credential_status].\u6709\u6548"):e==="expired"?this.$L("\u5DF2\u8FC7\u671F"):e==="revoked"?this.$L("\u5DF2\u64A4\u9500"):e}}},$={};var J=v(Y,H,q,!1,G,"6b5f9d78",null,null);function G(e){for(let i in $)this[i]=$[i]}var Z=function(){return J.exports}(),X=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"page-file"},[t("PageTitle",{attrs:{title:e.$L("\u6587\u4EF6")}}),t("div",{ref:"fileWrapper",staticClass:"file-wrapper"},[t("div",{staticClass:"file-head"},[t("div",{staticClass:"file-nav"},[t("div",{staticClass:"common-nav-back portrait",on:{click:function(s){return e.goForward({name:"manage-application"},!0)}}},[t("i",{staticClass:"taskfont"},[e._v("\uE676")])]),t("h1",[e._v(e._s(e.$L("\u6587\u4EF6")))]),e.loadIng==0?t("div",{staticClass:"file-refresh",on:{click:e.getFileList}},[t("i",{staticClass:"taskfont"},[e._v("\uE6AE")])]):e._e()]),t("div",{staticClass:"file-actions"},[e.uploadList.length>0?t("div",{staticClass:"file-status",on:{click:function(s){e.uploadShow=!0,e.packShow=!1}}},[e.uploadList.find(function(s){var a=s.status;return a!=="finished"})?t("Loading"):t("Button",{attrs:{shape:"circle",icon:"md-arrow-round-up"}})],1):e._e(),e.packList.length>0?t("div",{staticClass:"file-status",on:{click:function(s){e.packShow=!0,e.uploadShow=!1}}},[e.packList.find(function(s){var a=s.status;return a!=="finished"})?t("Loading"):t("Button",{attrs:{shape:"circle",icon:"md-arrow-round-down"}})],1):e._e(),t("div",{class:["file-search",{collaboration:e.board==="collaboration"}],on:{click:e.onSearchFocus}},[t("Input",{ref:"searchInput",attrs:{suffix:"ios-search",placeholder:e.$L(e.board==="collaboration"?"\u641C\u7D22\u540D\u79F0\u3001\u4F1A\u8BDD\u3001\u9879\u76EE\u6216\u4EFB\u52A1":"\u641C\u7D22\u540D\u79F0"),clearable:""},on:{"on-focus":function(s){e.searchIsFocus=!0},"on-blur":function(s){e.searchIsFocus=!1},"on-change":e.onSearchChange},model:{value:e.searchKey,callback:function(s){e.searchKey=s},expression:"searchKey"}})],1),e.board!=="collaboration"?t("div",{staticClass:"file-add"},[t("Button",{attrs:{shape:"circle",icon:"md-add"},on:{click:function(s){return s.stopPropagation(),e.handleRightClick(s,null,!0)}}})],1):e._e(),e.board!=="collaboration"?t("Dropdown",{attrs:{placement:"bottom-end",trigger:"click",transfer:""},on:{"on-click":function(s){e.webDavShow=!0}}},[t("Button",{attrs:{shape:"circle",icon:"ios-more"}}),t("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[t("DropdownItem",{attrs:{name:"webdav"}},[e._v(e._s(e.$L("WebDAV")))])],1)],1):e._e()],1)]),t("div",{staticClass:"file-tabs"},[t("div",{staticClass:"file-tabs-nav"},[t("div",{class:["file-tab",{active:e.board==="mine"}],on:{click:function(s){return e.switchBoard("mine")}}},[e._v(e._s(e.$L("\u6211\u7684\u6587\u4EF6")))]),t("div",{class:["file-tab",{active:e.board==="shared"}],on:{click:function(s){return e.switchBoard("shared")}}},[e._v(e._s(e.$L("\u5171\u4EAB\u6587\u4EF6")))]),t("div",{class:["file-tab",{active:e.board==="collaboration"}],on:{click:function(s){return e.switchBoard("collaboration")}}},[e._v(e._s(e.$L("\u534F\u4F5C\u6587\u4EF6")))])]),t("div",{staticClass:"file-tabs-full"}),e.board==="shared"&&e.pid==0&&!e.searchKey?t("div",{staticClass:"file-shared-src"},[t("span",{class:{on:e.sharedSrc==="all"},on:{click:function(s){e.sharedSrc="all"}}},[e._v(e._s(e.$L("\u5168\u90E8")))]),t("span",{class:{on:e.sharedSrc==="byme"},on:{click:function(s){e.sharedSrc="byme"}}},[e._v(e._s(e.$L("\u6211\u5171\u4EAB\u7684")))]),t("span",{class:{on:e.sharedSrc==="tome"},on:{click:function(s){e.sharedSrc="tome"}}},[e._v(e._s(e.$L("\u5171\u4EAB\u7ED9\u6211\u7684")))])]):e._e(),e.board!=="collaboration"?t("div",{class:["switch-button",e.tableMode]},[t("div",{on:{click:function(s){e.tableMode="block"}}},[t("i",{staticClass:"taskfont"},[e._v("\uE60C")])]),t("div",{on:{click:function(s){e.tableMode="table"}}},[t("i",{staticClass:"taskfont"},[e._v("\uE66A")])])]):e._e()]),e.board==="collaboration"?t("CollaborationFileList",{ref:"collaborationFiles",attrs:{"search-key":e.searchKey}}):[t("div",{directives:[{name:"show",rawName:"v-show",value:e.showNavigator,expression:"showNavigator"}],staticClass:"file-navigator"},[t("ul",{directives:[{name:"show",rawName:"v-show",value:e.showBtnText||!e.selectedItems.length&&!e.shearFirst,expression:"showBtnText || (!selectedItems.length && !shearFirst)"}],staticClass:"scrollbar-hidden"},[e.pid>0||e.searchKey?t("li",{on:{click:function(s){return e.browseFolder(0)}}},[t("span",[e._v(e._s(e.board==="shared"?e.$L("\u5171\u4EAB\u6587\u4EF6"):e.$L("\u6211\u7684\u6587\u4EF6")))])]):e._e(),e.searchKey?t("li",[e._v(e._s(e.$L("\u641C\u7D22"))+' "'+e._s(e.searchKey)+'"')]):e._l(e.navigator,function(s){return t("li",{ref:`nav_${s.id}`,refInFor:!0,on:{click:function(a){return e.browseFolder(s.id)}}},[s.share?t("i",{staticClass:"taskfont"},[e._v("\uE63F")]):e._e(),t("span",{attrs:{title:s.name}},[e._v(e._s(s.name))]),s.share&&s.permission==0?t("span",{staticClass:"readonly"},[e._v(e._s(e.$L("\u53EA\u8BFB")))]):e._e()])})],2),e.shearFirst?[t("Button",{style:{marginLeft:e.pid>0?"12px":0},attrs:{disabled:e.shearFirst.pid==e.pid,size:"small",type:"primary"},on:{click:e.shearTo}},[t("div",{staticClass:"file-shear"},[t("span",[e._v(e._s(e.$L("\u7C98\u8D34")))]),[e._v('"'),t("em",[e._v(e._s(e.shearFirst.name))]),e._v('"')],e.shearIds.length>1?t("span",[e._v(e._s(e.$L("\u7B49(*)\u4E2A\u6587\u4EF6",e.shearIds.length)))]):e._e()],2)]),t("Button",{attrs:{type:"primary",size:"small"},on:{click:e.clearShear}},[e._v(e._s(e.$L("\u53D6\u6D88\u526A\u5207")))])]:e.selectedItems.length>0?[t("Button",{style:{marginLeft:e.pid>0?"12px":0},attrs:{size:"small",type:"info"},on:{click:function(s){return e.handleContextClick("shearSelect")}}},[t("div",{staticClass:"tool-box"},[t("Icon",{attrs:{type:"ios-cut"}}),t("span",{directives:[{name:"show",rawName:"v-show",value:e.showBtnText,expression:"showBtnText"}]},[e._v(e._s(e.$L("\u526A\u5207")))])],1)]),e.showDownloadZipButton?t("Button",{attrs:{disabled:e.compressedSownloadDisabled,size:"small",type:"info"},on:{click:function(s){e.downloadZipFile(e.selectedItems.map(function(a){var r=a.id;return r}))}}},[t("div",{staticClass:"tool-box"},[t("Icon",{attrs:{type:"ios-download"}}),t("span",{directives:[{name:"show",rawName:"v-show",value:e.showBtnText,expression:"showBtnText"}]},[e._v(e._s(e.$L("\u6253\u5305\u4E0B\u8F7D")))])],1)]):e._e(),t("Button",{attrs:{size:"small",type:"error",disabled:e.batchDeleteDisabled},on:{click:function(s){e.deleteFile(e.selectedItems.map(function(a){var r=a.id;return r}))}}},[t("div",{staticClass:"tool-box"},[t("Icon",{attrs:{type:"ios-trash"}}),t("span",{directives:[{name:"show",rawName:"v-show",value:e.showBtnText,expression:"showBtnText"}]},[e._v(e._s(e.$L("\u5220\u9664")))])],1)]),t("Button",{attrs:{type:"primary",size:"small"},on:{click:e.clearSelect}},[e._v(" "+e._s(e.showBtnText?e.$L("\u53D6\u6D88\u9009\u62E9"):e.$L("\u53D6\u6D88"))+" ")])]:e._e(),e.loadIng>0?t("div",{staticClass:"nav-load"},[t("Loading")],1):e._e(),t("div",{staticClass:"flex-full"})],2),t("div",{staticClass:"file-drag",on:{drop:function(s){return s.preventDefault(),e.filePasteDrag(s,"drag")},dragover:function(s){return s.preventDefault(),e.fileDragOver(!0,s)},dragleave:function(s){return s.preventDefault(),e.fileDragOver(!1,s)}}},[e.tableMode==="table"?t("div",{staticClass:"file-table",on:{contextmenu:function(s){return s.preventDefault(),e.handleContextmenu.apply(null,arguments)}}},[t("Table",{attrs:{columns:e.columns,data:e.fileList,height:e.tableHeight,"no-data-text":e.$L("\u6CA1\u6709\u4EFB\u4F55\u6587\u4EF6"),"context-menu":"",stripe:""},on:{"on-cell-click":e.clickRow,"on-contextmenu":e.handleContextMenu,"on-select":e.handleTableSelect,"on-select-cancel":e.handleTableSelect,"on-select-all-cancel":e.handleTableSelect,"on-select-all":e.handleTableSelect,"on-sort-change":e.handleTableSort,"on-scroll":e.onFileListScroll}})],1):[e.fileList.length==0&&e.loadIng==0?t("div",{staticClass:"file-no",on:{contextmenu:function(s){return s.preventDefault(),e.handleContextmenu.apply(null,arguments)}}},[t("i",{staticClass:"taskfont"},[e._v("\uE60B")]),t("p",[e._v(e._s(e.$L("\u6CA1\u6709\u4EFB\u4F55\u6587\u4EF6")))])]):t("div",{ref:"blockFileList",staticClass:"file-list",on:{contextmenu:function(s){return s.preventDefault(),e.handleContextmenu.apply(null,arguments)},pointerdown:e.onFileListPointerDown,pointermove:e.onFileListPointerMove,pointerup:e.onFileListPointerUp,pointercancel:e.onFileListPointerUp,pointerleave:e.onFileListPointerLeave,scroll:e.onFileListScroll}},[t("ul",{directives:[{name:"longpress",rawName:"v-longpress",value:e.handleLongpress,expression:"handleLongpress"}]},e._l(e.fileList,function(s){return t("li",[t("div",{staticClass:"file-item",class:{shear:e.shearIds.includes(s.id),highlight:e.selectedItems.some(function(a){var r=a.id;return r===s.id}),operate:e.contextMenuVisible&&s.id===e.contextMenuItem.id},attrs:{"data-id":s.id},on:{pointerdown:e.handleOperation,click:function(a){return e.dropFile(s,"openCheckMenu")}}},[t("div",{staticClass:"file-check",class:{"file-checked":e.selectedItems.some(function(a){var r=a.id;return r===s.id})},on:{click:function(a){return a.stopPropagation(),e.dropFile(s,"select")}}},[t("Checkbox",{attrs:{value:e.selectedItems.some(function(a){var r=a.id;return r===s.id})}})],1),t("div",{staticClass:"file-menu",on:{click:function(a){return a.stopPropagation(),e.handleRightClick(a,s)}}},[t("Icon",{attrs:{type:"ios-more"}})],1),t("div",{class:e.fileBlockIconClasses(s)},[s._thumbnail&&!s._thumbError?t("div",{staticClass:"file-thumb"},[t("img",{attrs:{src:s._thumbnail.src,width:s._thumbnail.width,height:s._thumbnail.height,alt:""},on:{load:function(a){return a.stopPropagation(),e.handleThumbLoad(s)},error:function(a){return a.stopPropagation(),e.handleThumbError(s)}}})]):e._e(),s.share?[s.userid!=e.userId?t("UserAvatarTip",{staticClass:"share-avatar",attrs:{userid:s.userid,size:20}},[t("p",[e._v(e._s(e.$L("\u5171\u4EAB\u6743\u9650"))+": "+e._s(e.$L(s.permission==1?"\u8BFB/\u5199":"\u53EA\u8BFB")))])]):t("div",{staticClass:"share-icon no-dark-content"},[t("i",{staticClass:"taskfont"},[e._v("\uE757")])])]:e.isParentShare?[t("UserAvatarTip",{staticClass:"share-avatar",attrs:{userid:s.created_id,size:20}},[s.created_id!=s.userid?t("p",[t("strong",[e._v(e._s(e.$L("\u6210\u5458\u521B\u5EFA\u4E8E"))+": "+e._s(s.created_at))])]):t("p",[e._v(e._s(e.$L("\u6240\u6709\u8005\u521B\u5EFA\u4E8E"))+": "+e._s(s.created_at))])])]:e._e()],2),s._edit?t("div",{staticClass:"file-input"},[t("Input",{ref:"input_"+s.id,refInFor:!0,attrs:{size:"small",disabled:!!s._load,parser:e.onParser},on:{"on-blur":function(a){return e.onBlur(s)},"on-keydown":function(a){return e.onKeydown(a,s)}},model:{value:s.newname,callback:function(a){e.$set(s,"newname",a)},expression:"item.newname"}}),s._load?t("div",{staticClass:"file-load"},[t("Loading")],1):e._e()],1):t("div",{staticClass:"file-name",attrs:{title:s.name}},[e._v(e._s(e.$A.getFileName(s)))])])])}),0),e.dragSelecting?t("div",{staticClass:"file-drag-select",style:e.dragSelectStyle}):e._e()])],e.dialogDrag?t("div",{staticClass:"drag-over",on:{click:function(s){e.dialogDrag=!1}}},[t("div",{staticClass:"drag-text"},[e._v(e._s(e.$L("\u62D6\u52A8\u5230\u8FD9\u91CC\u53D1\u9001")))])]):e._e()],2),t("div",{staticClass:"file-menu",style:e.contextMenuStyles},[t("Dropdown",{attrs:{trigger:"custom",visible:e.contextMenuVisible,"transfer-class-name":"page-file-dropdown-menu",transfer:""},on:{"on-click":e.handleContextClick,"on-clickoutside":e.handleClickContextMenuOutside,"on-visible-change":e.handleVisibleChangeMenu}},[t("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[e.contextMenuItem.id?[t("DropdownItem",{staticClass:"item-open",attrs:{name:"open"}},[e._v(" "+e._s(e.$L("\u6253\u5F00"))+" "),t("div",{staticClass:"open-name"},[e._v("\u201C"+e._s(e.contextMenuItem.name)+"\u201D")])]),e.searchKey?t("DropdownItem",{staticClass:"item-open",attrs:{name:"upperFolder"}},[e._v(" "+e._s(e.$L("\u5728\u4E0A\u5C42\u6587\u4EF6\u5939\u4E2D\u663E\u793A"))+" ")]):e._e(),t("DropdownItem",{attrs:{name:"select"}},[e._v(e._s(e.$L(e.selectedItems.some(function(s){var a=s.id;return a===e.contextMenuItem.id})?"\u53D6\u6D88\u9009\u62E9":"\u9009\u62E9")))]),t("Dropdown",{attrs:{placement:"right-start",transfer:""}},[t("DropdownItem",{attrs:{divided:"",name:"new:"},nativeOn:{click:function(s){s.stopPropagation()}}},[t("div",{staticClass:"arrow-forward-item"},[e._v(e._s(e.$L("\u65B0\u5EFA"))),t("Icon",{attrs:{type:"ios-arrow-forward"}})],1)]),t("DropdownMenu",{staticClass:"page-file-dropdown-menu",attrs:{slot:"list"},slot:"list"},e._l(e.types,function(s,a){return s.label?t("DropdownItem",{key:a,attrs:{divided:!!s.divided,name:`new:${s.value}`}},[t("div",{class:`no-dark-before file-item file-icon ${s.value}`},[e._v(e._s(e.$L(s.label)))])]):e._e()}),1)],1),t("DropdownItem",{attrs:{name:"rename",divided:""}},[e._v(e._s(e.$L("\u91CD\u547D\u540D")))]),t("DropdownItem",{attrs:{name:"copy",disabled:e.contextMenuItem.type=="folder"}},[e._v(e._s(e.$L("\u590D\u5236")))]),t("DropdownItem",{attrs:{name:"shear",disabled:e.contextMenuItem.userid!=e.userId}},[e._v(e._s(e.$L("\u526A\u5207")))]),e.contextMenuItem.userid==e.userId?t("DropdownItem",{attrs:{name:"share",divided:""}},[e._v(e._s(e.$L("\u5171\u4EAB")))]):e.contextMenuItem.share?t("DropdownItem",{attrs:{name:"outshare",divided:""}},[e._v(e._s(e.$L("\u9000\u51FA\u5171\u4EAB")))]):e._e(),t("DropdownItem",{attrs:{name:"favorite",disabled:e.contextMenuItem.type=="folder"}},[e._v(e._s(e.$L(e.contextMenuItem.favorited?"\u53D6\u6D88\u6536\u85CF":"\u6536\u85CF")))]),t("DropdownItem",{attrs:{name:"send",disabled:e.contextMenuItem.type=="folder"}},[e._v(e._s(e.$L("\u53D1\u9001")))]),t("DropdownItem",{attrs:{name:"link",divided:e.contextMenuItem.userid!=e.userId&&!e.contextMenuItem.share,disabled:e.contextMenuItem.type=="folder"}},[e._v(e._s(e.$L("\u94FE\u63A5")))]),t("DropdownItem",{attrs:{name:"download",disabled:e.contextMenuItem.ext==""||e.contextMenuItem.userid!=e.userId&&e.contextMenuItem.permission==0}},[e._v(e._s(e.$L("\u4E0B\u8F7D")))]),e.selectedItems.length>1?t("DropdownItem",{attrs:{name:"downloadzip",disabled:e.contextMenuItem.userid!=e.userId&&e.contextMenuItem.permission==0}},[e._v(e._s(e.$L("\u6253\u5305\u4E0B\u8F7D")))]):e._e(),t("DropdownItem",{staticStyle:{color:"red"},attrs:{name:"delete",divided:"",disabled:e.contextMenuItem.userid!=e.userId&&e.contextMenuItem.created_id!=e.userId}},[e._v(e._s(e.$L("\u5220\u9664")))])]:e._l(e.types,function(s,a){return s.label?t("DropdownItem",{key:a,attrs:{divided:!!s.divided,name:`new:${s.value}`}},[t("div",{class:`no-dark-before file-item file-icon ${s.value}`},[e._v(e._s(e.$L(s.label)))])]):e._e()})],2)],1)],1)]],2),e.uploadShow&&e.uploadList.length>0?t("div",{staticClass:"file-upload-list"},[t("div",{staticClass:"upload-wrap"},[t("div",{staticClass:"title"},[e._v(" "+e._s(e.$L("\u4E0A\u4F20\u5217\u8868"))+" ("+e._s(e.uploadList.length)+") "),e.uploadList.find(function(s){var a=s.status;return a==="finished"})?t("em",{on:{click:e.uploadClear}},[e._v(e._s(e.$L("\u6E05\u7A7A\u5DF2\u5B8C\u6210")))]):e._e()]),t("ul",{staticClass:"content"},e._l(e.uploadList,function(s,a){return a<100?t("li",{key:a,on:{click:function(r){return e.uploadClick(s)}}},[t("AutoTip",{staticClass:"file-name"},[t("span",{domProps:{innerHTML:e._s(e.uploadName(s))}})]),s.status==="finished"&&s.response&&s.response.ret!==1?t("AutoTip",{staticClass:"file-error"},[e._v(e._s(s.response.msg))]):t("Progress",{attrs:{percent:e.uploadPercentageParse(s.percentage),"stroke-width":5}}),t("Icon",{staticClass:"file-close",attrs:{type:"ios-close-circle-outline"},on:{click:function(r){return r.stopPropagation(),e.uploadAbort(s,a)}}})],1):e._e()}),0),t("Icon",{staticClass:"close",attrs:{type:"md-close"},on:{click:function(s){e.uploadShow=!1}}})],1)]):e._e(),e.packShow&&e.packList.length>0?t("div",{staticClass:"file-upload-list"},[t("div",{staticClass:"upload-wrap"},[t("div",{staticClass:"title"},[t("span",[e._v(e._s(e.$L("\u6253\u5305\u5217\u8868"))+"("+e._s(e.packList.length)+")")]),e.packList.find(function(s){var a=s.status;return a==="finished"})?t("em",{on:{click:e.packClear}},[e._v(e._s(e.$L("\u6E05\u7A7A\u5DF2\u5B8C\u6210")))]):e._e()]),t("ul",{staticClass:"content"},e._l(e.packList,function(s,a){return a<100?t("li",{key:a},[t("AutoTip",{staticClass:"file-name"},[s.status!=="finished"?t("span",[e._v(e._s(s.name))]):t("a",{attrs:{href:s.url,target:"_blank"}},[e._v(e._s(s.name))])]),s.status==="finished"&&s.response&&s.response.ret!==1?t("AutoTip",{staticClass:"file-error"},[e._v(e._s(s.response.msg))]):t("Progress",{attrs:{percent:e.packPercentageParse(s.percentage),"stroke-width":5}}),t("Icon",{staticClass:"file-close",attrs:{type:"ios-close-circle-outline"},on:{click:function(r){return e.packList.splice(a,1)}}})],1):e._e()}),0),t("Icon",{staticClass:"close",attrs:{type:"md-close"},on:{click:function(s){e.packShow=!1}}})],1)]):e._e(),t("Upload",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],ref:"fileUpload",attrs:{name:"files",action:e.actionUrl,headers:e.headers,multiple:!0,webkitdirectory:!1,format:e.uploadFormat,accept:e.uploadAccept,"show-upload-list":!1,"max-size":e.maxSize,"on-progress":e.handleProgress,"on-success":e.handleSuccess,"on-error":e.handleError,"on-format-error":e.handleFormatError,"on-exceeded-size":e.handleMaxSize,"before-upload":e.handleBeforeUpload}}),t("Upload",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],ref:"dirUpload",attrs:{name:"files",action:e.actionUrl,headers:e.headers,multiple:!0,webkitdirectory:!0,"max-concurrent-uploads":2,format:e.uploadFormat,accept:e.uploadAccept,"show-upload-list":!1,"max-size":e.maxSize,"on-progress":e.handleProgress,"on-success":e.handleSuccess,"on-error":e.handleError,"on-format-error":e.handleFormatError,"on-exceeded-size":e.handleMaxSize,"before-upload":e.handleBeforeUpload}}),t("Modal",{attrs:{title:e.$L("\u5171\u4EAB\u8BBE\u7F6E"),"mask-closable":!1,"footer-hide":""},model:{value:e.shareShow,callback:function(s){e.shareShow=s},expression:"shareShow"}},[t("Form",{staticClass:"page-file-share-form",attrs:{model:e.shareInfo,inline:""},nativeOn:{submit:function(s){s.preventDefault()}}},[t("FormItem",{staticClass:"share-userid",attrs:{prop:"userids"}},[t("RadioGroup",{model:{value:e.shareInfo.type,callback:function(s){e.$set(e.shareInfo,"type",s)},expression:"shareInfo.type"}},[t("Radio",{attrs:{label:"all"}},[e._v(e._s(e.$L("\u6240\u6709\u4EBA")))]),t("Radio",{attrs:{label:"custom"}},[e._v(e._s(e.$L("\u6307\u5B9A\u6210\u5458")))])],1),e.shareInfo.type==="custom"?t("UserSelect",{attrs:{disabledChoice:e.shareAlready,"multiple-max":100,placeholder:e.$L("\u9009\u62E9\u5171\u4EAB\u6210\u5458"),"avatar-size":24,border:""},model:{value:e.shareInfo.userids,callback:function(s){e.$set(e.shareInfo,"userids",s)},expression:"shareInfo.userids"}}):e._e()],1),t("FormItem",[t("Select",{attrs:{placeholder:e.$L("\u6743\u9650")},model:{value:e.shareInfo.permission,callback:function(s){e.$set(e.shareInfo,"permission",s)},expression:"shareInfo.permission"}},[t("Option",{attrs:{value:1}},[e._v(e._s(e.$L("\u8BFB/\u5199")))]),t("Option",{attrs:{value:0}},[e._v(e._s(e.$L("\u53EA\u8BFB")))])],1)],1),t("FormItem",[t("Button",{attrs:{type:"primary",loading:e.shareLoad>0},on:{click:e.onShare}},[e._v(e._s(e.$L("\u5171\u4EAB")))])],1)],1),e.shareList.length>0?t("div",{staticClass:"page-file-share-items"},[t("div",{staticClass:"page-file-share-title"},[e._v(e._s(e.$L("\u5DF2\u5171\u4EAB\u6210\u5458"))+":")]),t("ul",{staticClass:"page-file-share-list"},e._l(e.shareList,function(s){return t("li",[s.userid==0?t("div",{staticClass:"all-avatar"},[t("EAvatar",{staticClass:"avatar-text",attrs:{icon:"el-icon-s-custom"}}),t("span",{staticClass:"avatar-name"},[e._v(e._s(e.$L("\u6240\u6709\u4EBA")))])],1):t("UserAvatar",{attrs:{size:32,userid:s.userid,showName:""}}),t("Select",{attrs:{placeholder:e.$L("\u6743\u9650")},on:{"on-change":function(a){return e.upShare(s)}},model:{value:s.permission,callback:function(a){e.$set(s,"permission",a)},expression:"item.permission"}},[t("Option",{attrs:{value:1}},[e._v(e._s(e.$L("\u8BFB/\u5199")))]),t("Option",{attrs:{value:0}},[e._v(e._s(e.$L("\u53EA\u8BFB")))]),t("Option",{staticClass:"delete",attrs:{value:-1}},[e._v(e._s(e.$L("\u5220\u9664")))])],1)],1)}),0)]):e._e()],1),t("Forwarder",{ref:"forwarder",attrs:{title:e.$L("\u53D1\u9001\u6587\u4EF6"),"confirm-title":e.$L("\u786E\u8BA4\u53D1\u9001"),"confirm-placeholder":e.$L("\u9644\u8A00"),"multiple-max":50,"before-submit":e.onSendFile,"sender-hidden":""}}),t("Modal",{attrs:{title:e.$L("\u6587\u4EF6\u94FE\u63A5"),"mask-closable":!1},model:{value:e.linkShow,callback:function(s){e.linkShow=s},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:2,readonly:""},on:{"on-focus":e.linkFocus},model:{value:e.linkData.url,callback:function(s){e.$set(e.linkData,"url",s)},expression:"linkData.url"}}),t("div",{staticStyle:{margin:"12px 0"}},[t("Checkbox",{on:{"on-change":e.onGuestAccessChange},model:{value:e.linkData.guest_access,callback:function(s){e.$set(e.linkData,"guest_access",s)},expression:"linkData.guest_access"}},[e._v(" "+e._s(e.$L("\u5141\u8BB8\u6E38\u5BA2\u8BBF\u95EE\u6B64\u94FE\u63A5"))+" ")]),e.linkData.guest_access?t("div",{staticStyle:{color:"#ff9900","margin-top":"6px"}},[t("Icon",{attrs:{type:"ios-warning"}}),e._v(" "+e._s(e.$L("\u8B66\u544A\uFF1A\u4EFB\u4F55\u4EBA\u90FD\u53EF\u901A\u8FC7\u6B64\u94FE\u63A5\u8BBF\u95EE\u6587\u4EF6"))+" ")],1):e._e()],1),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("Poptip",{attrs:{confirm:"",placement:"bottom","ok-text":e.$L("\u786E\u5B9A"),"cancel-text":e.$L("\u53D6\u6D88"),transfer:""},on:{"on-ok":function(s){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("a",{attrs:{href:"javascript:void(0)"}},[e._v(e._s(e.$L("\u5237\u65B0\u94FE\u63A5")))])])],1)],1),t("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[t("Button",{attrs:{type:"default"},on:{click:function(s){e.linkShow=!1}}},[e._v(e._s(e.$L("\u53D6\u6D88")))]),t("Button",{attrs:{type:"primary",loading:e.linkLoad>0},on:{click:e.linkCopy}},[e._v(e._s(e.$L("\u590D\u5236")))])],1)]),t("DrawerOverlay",{attrs:{"class-name":"file-drawer","before-close":e.fileBeforeClose,mask:!0,"mask-closable":!1},model:{value:e.fileShow,callback:function(s){e.fileShow=s},expression:"fileShow"}},[e.isPreview?t("FilePreview",{attrs:{file:e.fileInfo}}):t("FileContent",{ref:"fileContent",attrs:{file:e.fileInfo},model:{value:e.fileShow,callback:function(s){e.fileShow=s},expression:"fileShow"}})],1),t("WebDavManager",{model:{value:e.webDavShow,callback:function(s){e.webDavShow=s},expression:"webDavShow"}}),t("Modal",{attrs:{title:e.$L(e.pasteTitle),"cancel-text":e.$L("\u53D6\u6D88"),"ok-text":e.$L("\u7ACB\u5373\u4E0A\u4F20"),"enter-ok":!0},on:{"on-ok":e.pasteSend},model:{value:e.pasteShow,callback:function(s){e.pasteShow=s},expression:"pasteShow"}},[t("ul",{staticClass:"dialog-wrapper-paste",class:e.pasteWrapperClass},e._l(e.pasteItem,function(s){return t("li",[s.type=="image"?t("img",{attrs:{src:s.result}}):t("div",[e._v(e._s(e.$L("\u6587\u4EF6"))+": "+e._s(s.name)+" ("+e._s(e.$A.bytesToSize(s.size))+")")])])}),0)])],1)},Q=[];const ee=()=>w(()=>import("./FilePreview.f5f37123.js"),["js/build/FilePreview.f5f37123.js","js/build/openpgp_hi.15f91b1d.js","js/build/IFrame.7112b2ed.js","js/build/app.818b057c.js","js/build/app.e77c9e40.css","js/build/jquery.c87f487f.js","js/build/@babel.9410f858.js","js/build/dayjs.fd4aa75c.js","js/build/localforage.8de7c27e.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/vuex.cc7cb26e.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),te=()=>w(()=>import("./FileContent.9635e5fc.js"),["js/build/FileContent.9635e5fc.js","js/build/FileContent.b41606aa.css","js/build/openpgp_hi.15f91b1d.js","js/build/app.818b057c.js","js/build/app.e77c9e40.css","js/build/jquery.c87f487f.js","js/build/@babel.9410f858.js","js/build/dayjs.fd4aa75c.js","js/build/localforage.8de7c27e.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/vuex.cc7cb26e.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js","js/build/IFrame.7112b2ed.js"]),u={sort:null,mode:null,board:null},se={components:{WebDavManager:Z,CollaborationFileList:W,Forwarder:F,UserAvatarTip:I,UserSelect:T,FilePreview:ee,DrawerOverlay:C,FileContent:te},directives:{longpress:A},data(){return{webDavShow:!1,packList:[],packShow:!1,loadIng:0,searchKey:"",searchTimeout:null,searchIsFocus:!1,types:[{value:"folder",label:"\u65B0\u5EFA\u6587\u4EF6\u5939",name:"\u6587\u4EF6\u5939"},{value:"upload",label:"\u4E0A\u4F20\u6587\u4EF6",name:null,divided:!0},{value:"updir",label:"\u4E0A\u4F20\u6587\u4EF6\u5939",name:null},{value:"document",label:"\u6587\u672C",name:"\u6587\u672C",divided:!0},{value:"drawio",label:"\u56FE\u8868",name:"\u56FE\u8868"},{value:"mind",label:"\u601D\u7EF4\u5BFC\u56FE",name:"\u5BFC\u56FE"},{value:"word",label:"Word \u6587\u6863",name:"Word",divided:!0},{value:"excel",label:"Excel \u5DE5\u4F5C\u8868",name:"Excel"},{value:"ppt",label:"PPT \u6F14\u793A\u6587\u7A3F",name:"PPT"}],tableMode:"",board:"mine",sharedSrc:"all",columns:[],shareShow:!1,shareInfo:{id:0,type:"all",userid:0,permission:1},shareList:[],shareLoad:0,sendFileId:0,linkShow:!1,linkData:{guest_access:!1},linkLoad:0,fileShow:!1,fileInfo:{permission:-1},uploadDir:!1,uploadIng:0,uploadShow:!1,uploadList:[],uploadFormat:[],uploadAccept:"",uploadCover:!1,contextMenuItem:{},contextMenuVisible:!1,contextMenuStyles:{top:0,left:0},shearIds:[],selectedItems:[],dialogDrag:!1,pasteShow:!1,pasteFile:[],pasteItem:[],dragSelecting:!1,dragSelectStart:null,dragSelectRect:null,dragSelectStyle:{},dragSelectBase:[],dragSelectPreserve:!1,dragSelectContainerSize:null,dragSelectPointerId:null,dragSelectMoved:!1,dragSelectPreventClick:!1,thumbnailErrorMap:{}}},async beforeRouteEnter(e,i,t){u.sort=await $A.IDBJson("cacheFileSort"),u.mode=await $A.IDBString("fileTableMode"),u.board=["mine","shared"].includes(e.query.board)?e.query.board:await $A.IDBString("fileBoard"),t()},created(){this.tableMode=u.mode,this.board=["mine","shared","collaboration"].includes(u.board)?u.board:"mine",this.columns=[{type:"selection",width:50,align:"right"},{title:this.$L("\u6587\u4EF6\u540D"),key:"name",minWidth:300,sortable:!0,render:(e,{row:i})=>{let t=[];if(!/^\d+$/.test(i.id))return t.push(e("Input",{props:{elementId:"input_"+i.id,value:i.newname,autofocus:!0,disabled:!!i._load,parser:this.onParser},style:{width:"auto"},on:{"on-change":a=>{i.newname=a.target.value},"on-blur":()=>{const a=this.fileLists.find(({id:r})=>r==i.id);a&&(a.newname=i.newname,this.onBlur(a))},"on-enter":()=>{const a=this.fileLists.find(({id:r})=>r==i.id);a&&(a.newname=i.newname,this.onEnter(a))}}})),e("div",{class:"file-nbox"},[e("div",{class:`no-dark-before file-name file-icon ${i.type}`},t)]);{t.push(e("QuickEdit",{props:{value:i.name,autoEdit:!!i._edit,clickOutSide:!1,parser:this.onParser,attrTitle:i.name},on:{"on-edit-change":l=>{const n=this.fileLists.find(({id:c})=>c==i.id);n&&setTimeout(()=>{this.setEdit(n.id,l)},100)},"on-update":(l,n)=>{const c=this.fileLists.find(({id:d})=>d==i.id);c&&c._edit===!0&&(c.newname=l,this.onEnter(c)),n()}}},$A.getFileName(i)));const a=[];i.share?i.userid!=this.userId?a.push(e("UserAvatar",{props:{userid:i.userid,size:20}})):a.push(e("i",{class:"taskfont",domProps:{innerHTML:""}})):this.isParentShare&&a.push(e("UserAvatar",{props:{userid:i.created_id,size:20}},[i.created_id!=i.userid?e("p",[e("strong",this.$L("\u6210\u5458\u521B\u5EFA\u4E8E")+": "+i.created_at)]):e("p",this.$L("\u6240\u6709\u8005\u521B\u5EFA\u4E8E")+": "+i.created_at)]));const r=this.shearIds.includes(i.id)?" shear":"",o=i.share?" share":"";return e("div",{class:`file-nbox${r}`,attrs:{"data-id":i.id}},[e("div",{class:`no-dark-before file-name file-icon ${i.type}${o}`},t),a])}}},{title:this.$L("\u5927\u5C0F"),key:"size",width:110,resizable:!0,sortable:!0,render:(e,{row:i})=>i.type=="folder"?e("div","-"):e("AutoTip",$A.bytesToSize(i.size))},{title:this.$L("\u7C7B\u578B"),key:"type",width:110,resizable:!0,sortable:!0,render:(e,{row:i})=>{let t=this.types.find(({value:s,name:a})=>s==i.type&&a);return t?e("AutoTip",this.$L(t.name)):e("div",(i.ext||i.type).toUpperCase())}},{title:this.$L("\u6240\u6709\u8005"),key:"userid",width:130,resizable:!0,sortable:!0,render:(e,{row:i})=>e("UserAvatar",{props:{size:18,userid:i.userid,showIcon:!1,showName:!0}})},{title:this.$L("\u6700\u540E\u4FEE\u6539"),key:"updated_at",width:168,resizable:!0,sortable:!0}].map(e=>(u.sort&&e.key===u.sort.key&&(e.sortType=u.sort.order),e))},mounted(){this.uploadAccept=this.uploadFormat.map(e=>"."+e).join(",")},activated(){["mine","shared"].includes(this.$route.query.board)&&(this.board=this.$route.query.board),this.getFileList()},deactivated(){this.cancelDragSelection()},beforeDestroy(){this.cancelDragSelection()},computed:{...k(["systemConfig","userIsAdmin","userInfo","fileLists","wsOpenNum","windowWidth","filePackLists","fileShakeId","longpressData"]),pid(){const{folderId:e}=this.$route.params;return parseInt(/^\d+$/.test(e)?e:0)},fid(){const{fileId:e}=this.$route.params;return parseInt(/^\d+$/.test(e)?e:0)},actionUrl(){return $A.apiUrl("file/content/upload?pid="+this.pid+"&cover="+(this.uploadCover?1:0))},headers(){return{fd:$A.getSessionStorageString("userWsFd"),token:this.userToken}},shareAlready(){let e=this.shareList?this.shareList.map(({userid:i})=>i):[];return this.shareInfo.userid&&e.push(this.shareInfo.userid),e},fileList(){const{fileLists:e,searchKey:i,board:t,sharedSrc:s,pid:a,selectedItems:r,userId:o}=this;return $A.cloneJSON(L.exports.sortBy(e.filter(n=>{if(i)return n.name.indexOf(i)!==-1;if(n.pid!=a)return!1;if(a==0){if(t==="mine")return n.userid==o;if(n.userid==o&&!n.share)return!1;if(s==="byme")return n.userid==o;if(s==="tome")return n.userid!=o}return!0}),n=>(n.type=="folder"?"a":"b")+n.name)).map(n=>(n._checked=r.some(({id:c})=>c===n.id),n._thumbnail=this.createBlockThumbnail(n),n._thumbnail?n._thumbError=!!this.thumbnailErrorMap[n.id]:(this.thumbnailErrorMap[n.id]&&this.$delete(this.thumbnailErrorMap,n.id),n._thumbError=void 0),n))},shearFirst(){const{fileLists:e,shearIds:i}=this;return i.length===0?null:e.find(t=>t.id==i[0])},showNavigator(){return this.pid>0||!!this.searchKey||this.selectedItems.length>0||!!this.shearFirst},navigator(){let{pid:e,fileLists:i}=this,t=[];for(;e>0;){let s=i.find(({id:a,permission:r})=>a==e&&r>-1);s?(t.unshift(s),e=s.pid):e=0}return t},isPreview(){return this.windowPortrait&&this.fileInfo.type!="document"||this.fileInfo.permission===0},isParentShare(){const{navigator:e}=this;return!!e.find(({share:i})=>i)},pasteTitle(){const{pasteItem:e}=this;let i=e.find(({type:s})=>s=="image"),t=e.find(({type:s})=>s!="image");return i&&t?"\u4E0A\u4F20\u6587\u4EF6/\u56FE\u7247":i?"\u4E0A\u4F20\u56FE\u7247":"\u4E0A\u4F20\u6587\u4EF6"},pasteWrapperClass(){return this.pasteItem.find(({type:e})=>e!=="image")?["multiple"]:[]},tableHeight(){return this.windowHeight-150},showDownloadZipButton(){return this.selectedItems.length>1||this.selectedItems.some(({type:e})=>e==="folder")},compressedSownloadDisabled(){var e;return!!((e=this.fileList)!=null&&e.find(i=>i._checked&&i.permission<1))},batchDeleteDisabled(){var e;return!!((e=this.fileList)!=null&&e.find(i=>i._checked&&i.userid!=this.userId&&i.created_id!=this.userId))},maxSize(){var e;return(e=this.systemConfig)!=null&&e.file_upload_limit?this.systemConfig.file_upload_limit*1024:1024e3},showBtnText(){return this.windowWidth>600}},watch:{pid(){this.searchKey="",this.selectedItems=[],this.getFileList()},fid(){this.openFileJudge()},tableMode(e){$A.IDBSave("fileTableMode",e),e==="table"&&this.cancelDragSelection()},board(e){$A.IDBSave("fileBoard",e)},fileShow(e){e||(this.browseFile(0),$A.eeuiAppKeyboardHide())},navigator:{handler(){this.$nextTick(e=>{this.$refs[`nav_${this.pid}`]&&$A.scrollToView(this.$refs[`nav_${this.pid}`][0],!1)})},immediate:!0},selectedItems:{handler(e){e.length>0&&(this.shearIds=[])},deep:!0},shearIds:{handler(e){e.length>0&&(this.selectedItems=[])},deep:!0},wsOpenNum(e){e<=1||(this.wsOpenTimeout&&clearTimeout(this.wsOpenTimeout),this.wsOpenTimeout=setTimeout(()=>{this.routeName=="manage-file"&&this.getFileList()},5e3))},filePackLists:{handler(){this.updatePackProgress()},deep:!0},fileShakeId(e){e&&this.shakeFile(e)}},methods:{fileBlockIconClasses(e){const i=["no-dark-before","file-icon"];return e&&e.type?i.push(e.type):i.push("file"),e&&e.share&&i.push("share"),e&&e._thumbnail&&!e._thumbError&&i.push("has-thumb"),i},createBlockThumbnail(e){if(!e||e.type==="folder"||!e.image_url||!y(e))return null;const i=80,t=Number(e.image_width||e.width),s=Number(e.image_height||e.height);if(!(Number.isFinite(t)&&t>0&&Number.isFinite(s)&&s>0))return{src:e.image_url,width:null,height:null};const r=Math.max(Math.round(i*3),i),o=$A.imageRatioHandle({src:e.image_url,width:t,height:s,crops:{ratio:1,percentage:`${r}x0`},scaleSize:i})||{};return{src:o.src||e.image_url,width:o.width||Math.min(t,i),height:o.height||Math.min(s,i)}},handleThumbError(e){!e||(this.$set(this.thumbnailErrorMap,e.id,!0),this.$set(e,"_thumbError",!0))},handleThumbLoad(e){!e||(this.thumbnailErrorMap[e.id]&&this.$delete(this.thumbnailErrorMap,e.id),this.$set(e,"_thumbError",!1))},getFileList(){var e;if(this.routeName==="manage-file"){if(this.board==="collaboration"){(e=this.$refs.collaborationFiles)==null||e.refresh();return}this.loadIng++,this.$store.dispatch("getFiles",{pid:this.pid,scope:this.board}).then(async()=>{this.loadIng--,this.openFileJudge(),this.shakeFile(this.$route.params.shakeId),await $A.IDBSet("fileFolderId",this.pid)}).catch(({msg:i})=>{this.loadIng--,$A.modalError({content:i,onOk:()=>{this.browseFolder(0)}})})}},addFile(e){if(e){if(e=="upload"){this.uploadDir=!1,this.$refs.fileUpload.handleClick();return}else if(e=="updir"){this.uploadDir=!0,this.$refs.dirUpload.handleClick();return}}else return;let i=$A.randomString(8);this.fileLists.push({_edit:!0,pid:this.pid,id:i,type:e,name:"",userid:this.userId,newname:this.$L("\u672A\u547D\u540D")}),this.autoBlur(i)},handleLongpress(e){const{type:i,data:t}=this.longpressData;if(this.$store.commit("longpress/clear"),i!=="file"){!this.windowTouch&&this.handleRightClick(e,null);return}const s=this.fileList.find(a=>a.id==t.fileId);if(!s){!this.windowTouch&&this.handleRightClick(e,null);return}this.handleRightClick(e,s)},handleOperation({currentTarget:e}){this.$store.commit("longpress/set",{type:"file",data:{fileId:$A.getAttr(e,"data-id")},element:e})},onFileListPointerDown(e){if(this.windowTouch||this.tableMode==="table"||!(e.button===0||e.pointerType==="touch"))return;const t=this.$refs.blockFileList;if(!t)return;let s=e.target,a=!1;for(;s&&s!==t;){if(s.classList&&(s.classList.contains("file-menu")||s.classList.contains("file-check")||s.tagName==="INPUT"||s.tagName==="BUTTON"))return;if(s.classList&&s.classList.contains("file-item")){a=!0;break}s=s.parentNode}if(a)return;this.dragSelectMoved=!1,this.dragSelectPreventClick=!1,this.contextMenuVisible&&this.handleClickContextMenuOutside();const r=t.getBoundingClientRect(),o=t.scrollLeft,l=t.scrollTop,n={x:e.clientX-r.left+o,y:e.clientY-r.top+l};if(this.dragSelecting=this.windowLandscape,this.dragSelectStart=n,this.dragSelectRect={left:n.x,top:n.y,width:0,height:0},this.setDragSelectStyle(this.dragSelectRect),this.dragSelectContainerSize={width:t.scrollWidth,height:t.scrollHeight},this.dragSelectPreserve=e.ctrlKey||e.metaKey,this.dragSelectBase=this.dragSelectPreserve?this.selectedItems.map(c=>({...c})):[],!this.dragSelectPreserve&&this.selectedItems.length>0&&(this.selectedItems=[]),e.pointerId!==void 0)try{t.setPointerCapture(e.pointerId),this.dragSelectPointerId=e.pointerId}catch{}e.preventDefault()},onFileListPointerMove(e){if(this.windowTouch||!this.dragSelecting||!this.dragSelectStart)return;e.preventDefault();const i=this.$refs.blockFileList;if(!i)return;const t=i.getBoundingClientRect(),s=i.scrollLeft,a=i.scrollTop,r=this.dragSelectContainerSize||{width:i.scrollWidth,height:i.scrollHeight},o=Math.min(Math.max(e.clientX-t.left+s,0),r.width),l=Math.min(Math.max(e.clientY-t.top+a,0),r.height),n=this.dragSelectStart,c=Math.min(n.x,o),d=Math.min(n.y,l),p=Math.abs(n.x-o),f=Math.abs(n.y-l),h={left:c,top:d,width:p,height:f};this.dragSelectRect=h,this.setDragSelectStyle(h),!this.dragSelectMoved&&(p>3||f>3)&&(this.dragSelectMoved=!0),this.updateDragSelection(h)},onFileListPointerUp(){if(this.windowTouch)return;this.dragSelecting&&this.dragSelectRect&&this.updateDragSelection(this.dragSelectRect);const e=this.dragSelectMoved;this.cancelDragSelection(),e&&(this.dragSelectPreventClick=!0,setTimeout(()=>{this.dragSelectPreventClick=!1},0))},onFileListPointerLeave(e){this.windowTouch||!this.dragSelecting||e.pointerId!==void 0&&this.dragSelectPointerId!==e.pointerId||this.onFileListPointerUp()},onFileListScroll(){this.contextMenuVisible=!1},updateDragSelection(e){const i=this.$refs.blockFileList;if(!i||!e)return;const t=i.getBoundingClientRect(),s=i.scrollLeft,a=i.scrollTop,r={left:e.left,top:e.top,right:e.left+e.width,bottom:e.top+e.height},o=new Map(this.fileList.map(c=>[String(c.id),c])),l=[],n=new Set;this.dragSelectBase.forEach(c=>{const d=String(c.id);n.has(d)||(n.add(d),l.push(c))}),Array.from(i.querySelectorAll(".file-item")).forEach(c=>{const d=c.dataset&&c.dataset.id||c.getAttribute("data-id");if(!d||n.has(String(d)))return;const p=c.getBoundingClientRect(),f={left:p.left-t.left+s,top:p.top-t.top+a,right:p.right-t.left+s,bottom:p.bottom-t.top+a};if(!this.rectsIntersect(f,r))return;const h=o.get(String(d));!h||(n.add(String(d)),l.push({id:h.id,name:h.name,type:h.type,size:h.size}))}),this.selectedItems=l},setDragSelectStyle(e){if(!e){this.dragSelectStyle={};return}this.dragSelectStyle={left:`${e.left}px`,top:`${e.top}px`,width:`${e.width}px`,height:`${e.height}px`}},rectsIntersect(e,i){return!e||!i?!1:!(e.righti.right||e.bottomi.bottom)},cancelDragSelection(){this.dragSelecting=!1,this.dragSelectStart=null,this.dragSelectRect=null,this.dragSelectStyle={},this.dragSelectBase=[],this.dragSelectPreserve=!1,this.dragSelectContainerSize=null;const e=this.$refs.blockFileList;if(e&&this.dragSelectPointerId!==null&&e.hasPointerCapture&&e.hasPointerCapture(this.dragSelectPointerId))try{e.releasePointerCapture(this.dragSelectPointerId)}catch{}this.dragSelectPointerId=null,this.dragSelectMoved=!1,this.dragSelectPreventClick=!1},handleContextmenu(e){this.windowLandscape&&this.handleRightClick(e)},handleRightClick(e,i,t){this.contextMenuItem=$A.isJson(i)?i:{},this.contextMenuItem.id&&this.contextMenuItem.type!=="folder"&&this.checkSingleFileFavoriteStatus(this.contextMenuItem),this.contextMenuVisible&&this.handleClickContextMenuOutside(),this.$nextTick(()=>{const a=this.$refs.fileWrapper.getBoundingClientRect();this.contextMenuStyles={left:`${e.clientX-a.left}px`,top:`${e.clientY-a.top}px`},t===!0&&(this.contextMenuStyles.top=`${e.target.clientHeight+e.target.offsetTop-5}px`),this.contextMenuVisible=!0})},switchBoard(e){this.board!==e&&(this.board=e,this.sharedSrc="all",this.selectedItems=[],this.contextMenuVisible=!1,this.clearShear(),this.pid>0?this.browseFolder(0):this.getFileList())},browseFolder(e,i=null){if(this.pid==e&&this.fid==0&&i){this.shakeFile(i);return}e>0?this.goForward({name:"manage-file",params:{folderId:e,fileId:null,shakeId:i}}):(this.searchKey="",this.goForward({name:"manage-file",params:{folderId:null,fileId:null,shakeId:i}}))},browseFile(e){e>0?this.goForward({name:"manage-file",params:{folderId:this.pid,fileId:e}}):this.browseFolder(this.pid)},openFileJudge(){if(this.routeName!=="manage-file"){this.fileShow=!1;return}if(this.fid<=0){this.fileShow=!1;return}const e=this.fileList.find(({id:i})=>i===this.fid);if(!e){this.fileShow=!1;return}if(this.$Electron||this.$isEEUIApp){this.openFileSingle(e);return}this.fileInfo=e,this.fileShow=!0},openFileSingle(e){const i=`/single/file/${e.id}`;this.$Electron?this.$store.dispatch("openWindow",{name:`file-${e.id}`,path:i,title:$A.getFileName(e),titleFixed:!0}):this.$isEEUIApp?this.$store.dispatch("openAppChildPage",{pageType:"app",pageTitle:$A.getFileName(e),url:"web.js",params:{titleFixed:!0,url:$A.urlReplaceHash(i)}}):window.open($A.mainUrl(i.substring(1))),this.browseFile(0)},clickRow(e,i){if(this.contextMenuVisible){this.handleClickContextMenuOutside();return}i.type=="selection"?this.dropFile(e,"select"):this.dropFile(e,"open")},handleContextMenu(e,i){this.handleRightClick(i,this.fileLists.find(({id:t})=>t===e.id)||{})},handleContextClick(e){$A.leftExists(e,"new:")?this.addFile($A.leftDelete(e,"new:")):this.dropFile(this.contextMenuItem,e)},handleClickContextMenuOutside(){this.contextMenuVisible=!1},handleVisibleChangeMenu(e){let i=this.fileLists.find(({_highlight:t})=>!!t);i&&this.$set(i,"_highlight",!1),e&&this.contextMenuItem.id&&this.$set(this.contextMenuItem,"_highlight",!0)},dropFile(e,i){if(!(this.dragSelectPreventClick&&["open","openCheckMenu","select"].includes(i)))switch(i){case"open":case"openCheckMenu":if(i==="openCheckMenu"&&this.contextMenuVisible||this.fileList.findIndex(s=>s._edit===!0)>-1||e._load)return;if(e.type=="folder"){this.browseFolder(e.id);return}if(e.image_url){const s=this.fileList.filter(({image_url:a})=>!!a);if(s.length>0){const a=s.findIndex(({id:o})=>e.id===o),r=s.map(o=>o.image_width?{src:o.image_url,width:o.image_width,height:o.image_height}:o.image_url);this.$store.dispatch("previewImage",{index:a,list:r});return}}this.browseFile(e.id);break;case"upperFolder":this.searchKey="",this.browseFolder(e.pid,e.id);break;case"select":let t=this.selectedItems.findIndex(({id:s})=>s==e.id);t>-1?this.selectedItems.splice(t,1):this.selectedItems.push({id:e.id,name:e.name,type:e.type,size:e.size});break;case"rename":this.setEdit(e.id,!0),this.autoBlur(e.id);break;case"copy":this.$store.dispatch("call",{url:"file/copy",data:{id:e.id}}).then(({data:s,msg:a})=>{$A.messageSuccess(a),this.$store.dispatch("saveFile",s)}).catch(({msg:s})=>{$A.modalError(s)});break;case"shear":this.shearIds=[e.id];break;case"shearSelect":this.shearIds=$A.cloneJSON(this.selectedItems.map(({id:s})=>s));break;case"send":this.sendFileId=e.id,this.$refs.forwarder.onSelection();break;case"favorite":this.toggleFileFavorite(e);break;case"share":this.shareInfo={id:e.id,type:"all",userid:e.userid,permission:1},this.shareList=[],this.shareShow=!0,this.getShare();break;case"outshare":$A.modalConfirm({content:"\u4F60\u786E\u5B9A\u8981\u9000\u51FA\u3010"+e.name+"\u3011\u5171\u4EAB\u6210\u5458\u5417\uFF1F",loading:!0,onOk:()=>new Promise((s,a)=>{this.$store.dispatch("call",{url:"file/share/out",data:{id:e.id}}).then(({msg:r})=>{s(r),this.$store.dispatch("forgetFile",e)}).catch(({msg:r})=>{a(r)})})});break;case"link":this.linkData={id:e.id,name:e.name,guest_access:Boolean(e.guest_access)},this.linkShow=!0,this.linkGet();break;case"download":if(!e.ext)return;$A.modalConfirm({language:!1,title:this.$L("\u4E0B\u8F7D\u6587\u4EF6"),okText:this.$L("\u7ACB\u5373\u4E0B\u8F7D"),content:`${e.name}.${e.ext} (${$A.bytesToSize(e.size)})`,onOk:()=>{this.$store.dispatch("downUrl",$A.apiUrl(`file/content?id=${e.id}&down=yes`))}});break;case"downloadzip":this.downloadZipFile([e.id]);break;case"delete":this.deleteFile([e.id]);break}},onSendFile({dialogids:e,userids:i,message:t}){return new Promise((s,a)=>{this.$store.dispatch("call",{url:"dialog/msg/sendfileid",data:{dialogids:e,userids:i,leave_message:t,file_id:this.sendFileId}}).then(({data:r,msg:o})=>{this.$store.dispatch("saveDialogMsg",r.msgs),this.$store.dispatch("updateDialogLastMsg",r.msgs),$A.messageSuccess(o),s()}).catch(({msg:r})=>{$A.modalError(r),a()})})},linkGet(e){this.linkLoad++;const{id:i,name:t}=this.linkData,s=this.linkData.guest_access;this.$store.dispatch("call",{url:"file/link",data:{id:this.linkData.id,refresh:e===!0?"yes":"no",guest_access:this.linkData.guest_access?"yes":"no"}}).then(({data:a})=>{const r=a.guest_access!==void 0?Boolean(a.guest_access):s;this.linkData=Object.assign({},a,{id:i,name:t,guest_access:r}),this.$store.dispatch("saveFile",{id:i,guest_access:r?1:0}),this.fileInfo&&this.fileInfo.id===i&&this.$set(this.fileInfo,"guest_access",r?1:0),e===!0?this.linkCopy():e===!1?$A.messageSuccess("\u4FEE\u6539\u6210\u529F"):this.linkCopy()}).catch(({msg:a})=>{this.linkShow=!1,$A.modalError(a)}).finally(a=>{this.linkLoad--})},onGuestAccessChange(e){this.linkData.url&&this.linkGet(!1)},linkCopy(){!this.linkData.url||(this.linkFocus(),this.copyText(this.linkData.url))},linkFocus(){this.$nextTick(e=>{this.$refs.linkInput.focus({cursor:"all"})})},shearTo(){if(this.shearIds.length!=0){if(this.isParentShare){const e=this.fileLists.find(({id:i,share:t})=>t&&this.shearIds.includes(i));if(e){$A.modalError(`${e.name} \u5F53\u524D\u6B63\u5728\u5171\u4EAB\uFF0C\u65E0\u6CD5\u79FB\u52A8\u5230\u53E6\u4E00\u4E2A\u5171\u4EAB\u6587\u4EF6\u5939\u5185`);return}}this.$store.dispatch("call",{url:"file/move",data:{ids:this.shearIds,pid:this.pid}}).then(({data:e,msg:i})=>{$A.messageSuccess(i),this.shearIds=[],this.$store.dispatch("saveFile",e)}).catch(({msg:e})=>{$A.modalError(e)})}},deleteFile(e){if(e.length===0)return;const i=this.fileLists.find(r=>r.id==e[0])||{};let s=!e.find(r=>this.fileLists.find(o=>o.type!="folder"&&o.id==r))?"\u6587\u4EF6\u5939":"\u6587\u4EF6",a=`\u3010${i.name}\u3011\u7B49${e.length}\u4E2A${s}`;e.length===1&&(a=`\u3010${i.name}\u3011${s}`),$A.modalConfirm({title:"\u5220\u9664"+s,content:"\u4F60\u786E\u5B9A\u8981\u5220\u9664"+a+"\u5417\uFF1F",loading:!0,onOk:()=>new Promise((r,o)=>{this.$store.dispatch("call",{url:"file/remove",data:{ids:e}}).then(({msg:l})=>{r(l),this.$store.dispatch("forgetFile",{id:e}),this.selectedItems=this.selectedItems.filter(({id:n})=>!e.includes(n))}).catch(({msg:l})=>{o(l)})})})},packPercentageParse(e){return parseInt(e,10)},packClear(){this.packList=this.packList.filter(e=>e.status!=="finished"),this.packShow=!1},async startPack(e){this.packList.push(Object.assign(e,{status:"packing",percentage:0})),this.uploadShow=!1,this.packShow=!0},updatePackProgress(){this.packList.forEach(e=>{const i=this.filePackLists.find(({name:t})=>t==e.name);if(i){if(typeof e.percentage=="number"&&e.percentage>=100)return;e.percentage=Math.max(1,i.progress),e.percentage>=100&&(e.status="finished")}})},downloadZipFile(e){if(e.length===0)return;const i=this.fileLists.find(({id:r})=>r===e[0])||{},s=!e.some(r=>this.fileLists.some(({type:o,id:l})=>o!=="folder"&&l===r))?"\u6587\u4EF6\u5939":"\u6587\u4EF6",a=e.length===1?`\u3010${i.name}\u3011${s}`:`\u3010${i.name}\u3011\u7B49${e.length}\u4E2A${s}`;$A.modalConfirm({title:"\u6253\u5305\u4E0B\u8F7D",content:`\u4F60\u786E\u5B9A\u8981\u6253\u5305\u4E0B\u8F7D${a}\u5417\uFF1F`,okText:"\u786E\u5B9A",onOk:()=>{if(this.packList.find(({status:o})=>o==="packing")){$A.messageWarning("\u8BF7\u7B49\u5F85\u6253\u5305\u5B8C\u6210");return}const r=this.$L("\u6253\u5305\u4E0B\u8F7D(*)",a);this.$store.dispatch("call",{url:"file/download/pack",data:{ids:e,name:r}}).then(({data:o})=>{this.startPack(o)}).catch(({msg:o})=>{$A.modalError(o)})}})},autoBlur(e){this.$nextTick(()=>{if(this.$refs["input_"+e])this.$refs["input_"+e][0].focus({cursor:"all"});else if(document.getElementById("input_"+e)){const i=document.getElementById("input_"+e),t=i.value.length;i.focus(),i.setSelectionRange(0,t)}})},onParser(e){return e.replace(/[\\\/:*?\"<>|]/g,"")},onBlur(e){this.fileLists.find(({id:i,_edit:t})=>i==e.id&&!t)||this.onEnter(e)},onKeydown(e,i){e.keyCode===13?this.$nextTick(()=>this.onEnter(i)):e.keyCode===27&&(!/^\d+$/.test(i.id)?(i.newname="",this.$store.dispatch("forgetFile",i)):(this.setLoad(i.id,!1),this.setEdit(i.id,!1)))},onEnter(e){const i=!/^\d+$/.test(e.id);if(!e.newname){i?this.$store.dispatch("forgetFile",e):this.setEdit(e.id,!1);return}if(e.newname==e.name){this.setEdit(e.id,!1);return}e._load||(this.setLoad(e.id,!0),this.$store.dispatch("call",{url:"file/add",data:{id:i?0:e.id,pid:e.pid,name:e.newname,type:e.type},spinner:2e3}).then(({data:t,msg:s})=>{$A.messageSuccess(s),this.setLoad(e.id,!1),this.setEdit(e.id,!1),this.$store.dispatch("saveFile",t),i&&(this.$store.dispatch("forgetFile",e),this.shakeFile(t.id))}).catch(({msg:t})=>{$A.modalError(t),this.setLoad(e.id,!1),i&&this.$store.dispatch("forgetFile",e)}))},setEdit(e,i){const t=this.$store.state.fileLists.find(({id:s})=>s==e);t&&(this.$set(t,"_edit",i),i&&this.$set(t,"newname",t.name))},setLoad(e,i){const t=this.$store.state.fileLists.find(({id:s})=>s==e);t&&this.$set(t,"_load",i)},onSearchFocus(){this.searchIsFocus||this.$nextTick(()=>{this.$refs.searchInput.focus({cursor:"end"})})},onSearchChange(){this.board!=="collaboration"&&(this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchKey.trim()!=""&&(this.searchTimeout=setTimeout(()=>{this.loadIng++,this.$store.dispatch("searchFiles",this.searchKey.trim()).then(()=>{this.loadIng--}).catch(()=>{this.loadIng--})},600)))},getShare(){this.shareLoad++,this.$store.dispatch("call",{url:"file/share",data:{id:this.shareInfo.id}}).then(({data:e})=>{e.id==this.shareInfo.id&&(this.shareList=e.list.map(i=>(i._permission=i.permission,i)))}).catch(({msg:e})=>{this.shareShow=!1,$A.modalError(e)}).finally(e=>{this.shareLoad--})},onShare(e=!1){if(this.shareInfo.type==="all"&&(this.shareInfo.userids=[0]),this.shareInfo.userids.length==0){$A.messageWarning("\u8BF7\u9009\u62E9\u5171\u4EAB\u6210\u5458");return}this.shareLoad++,this.$store.dispatch("call",{url:"file/share/update",data:Object.assign(this.shareInfo,{force:e===!0?1:0})}).then(({data:i,msg:t})=>{$A.messageSuccess(t),this.$store.dispatch("saveFile",i),this.$set(this.shareInfo,"userids",[]),this.getShare()}).catch(({ret:i,msg:t})=>{i===-3001?$A.modalConfirm({content:"\u6B64\u6587\u4EF6\u5939\u5185\u5DF2\u6709\u5171\u4EAB\u6587\u4EF6\u5939\uFF0C\u5B50\u6587\u4EF6\u7684\u5171\u4EAB\u72B6\u6001\u5C06\u88AB\u53D6\u6D88\uFF0C\u662F\u5426\u7EE7\u7EED\uFF1F",onOk:()=>{this.onShare(!0)}}):$A.modalError(t)}).finally(i=>{this.shareLoad--})},upShare(e,i=!1){e.loading!==!0&&(e.loading=!0,this.$store.dispatch("call",{url:"file/share/update",data:{id:this.shareInfo.id,userids:[e.userid],permission:e.permission,force:i===!0?1:0}}).then(({data:t,msg:s})=>{if(e.loading=!1,e._permission=e.permission,$A.messageSuccess(s),this.$store.dispatch("saveFile",t),e.permission===-1){let a=this.shareList.findIndex(({userid:r})=>r==e.userid);a>-1&&this.shareList.splice(a,1)}}).catch(({ret:t,msg:s})=>{e.loading=!1,t===-3001?$A.modalConfirm({content:"\u6B64\u6587\u4EF6\u5939\u5185\u5DF2\u6709\u5171\u4EAB\u6587\u4EF6\u5939\uFF0C\u5B50\u6587\u4EF6\u7684\u5171\u4EAB\u72B6\u6001\u5C06\u88AB\u53D6\u6D88\uFF0C\u662F\u5426\u7EE7\u7EED\uFF1F",onOk:()=>{this.upShare(e,!0)},onCancel:()=>{e.permission=e._permission}}):(e.permission=e._permission,$A.modalError(s))}))},uploadData(e){const i=$A.getObject(e,"response.data");if($A.isArray(i))return i[0];if($A.isJson(i))return i},uploadName(e){const i=this.uploadData(e);if(!i)return e.name;const t=i.full_name||e.name;return i.overwrite?`[${this.$L("\u66FF\u6362")}] ${t}`:t},uploadClick(e){const i=this.uploadData(e);!i||this.browseFolder(i.pid,i.id)},handleTableSort({key:e,order:i}){$A.IDBSave("cacheFileSort",["asc","desc"].includes(i)?{key:e,order:i}:{})},handleTableSelect(e){this.selectedItems=e.map(i=>({id:i.id,name:i.name,type:i.type,size:i.size}))},clearSelect(){this.selectedItems=[]},clearShear(){this.shearIds=[]},shakeFile(e){!e||this.$nextTick(i=>{const t=$A(this.$el).find(`[data-id="${e}"]`);t.length>0&&$A.scrollIntoAndShake(t[0])})},pasteDragNext(e,i){let t=i==="drag"?e.dataTransfer.files:e.clipboardData.files;t=Array.prototype.slice.call(t),t.length>0&&(e.preventDefault(),this.pasteFile=[],this.pasteItem=[],t.some(s=>{const a={type:$A.getMiddle(s.type,null,"/"),name:s.name,size:s.size,result:null};if(a.type==="image"){const r=new FileReader;r.readAsDataURL(s),r.onload=({target:o})=>{a.result=o.result,this.pasteFile.push(s),this.pasteItem.push(a),this.pasteShow=!0}}else this.pasteFile.push(s),this.pasteItem.push(a),this.pasteShow=!0}))},filePasteDrag(e,i){if(this.dialogDrag=!1,$A.dataHasFolder(i==="drag"?e.dataTransfer:e.clipboardData)){e.preventDefault(),$A.modalWarning(`\u6682\u4E0D\u652F\u6301${i==="drag"?"\u62D6\u62FD":"\u7C98\u8D34"}\u6587\u4EF6\u5939\uFF0C\u8BF7\u624B\u52A8\u4E0A\u4F20\u6587\u4EF6\u5939\u3002`);return}this.pasteDragNext(e,i)},fileDragOver(e,i){let t=this.__dialogDrag=$A.randomString(8);if(!e)setTimeout(()=>{t===this.__dialogDrag&&(this.dialogDrag=e)},150);else{if(i.dataTransfer.effectAllowed==="move")return;this.dialogDrag=!0}},pasteSend(){if(this.__paste_send_index)return;this.__paste_send_index=1,setTimeout(()=>{this.__paste_send_index=0},300);const e=[];this.pasteFile.some(i=>{e.find(t=>t===i.name)||(e.push(i.name),this.$refs.fileUpload.upload(i))})},fileBeforeClose(){return new Promise(e=>{if(!this.$refs.fileContent){e();return}if(this.$refs.fileContent.equalContent){e();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:()=>{e()}})})},uploadUpdate(e){e.forEach(i=>{let t=this.uploadList.findIndex(({uid:s})=>s==i.uid);t>-1?this.uploadList.splice(t,1,i):this.uploadList.unshift(i)})},uploadClear(){this.uploadList=this.uploadList.filter(({status:e})=>e!=="finished"),this.$refs.fileUpload.clearFiles(),this.$refs.dirUpload.clearFiles()},uploadAbort(e,i){e&&e.status==="uploading"&&e._chunkCtrl&&(e._chunkCtrl.abort(),e._chunkUploadId&&this.$store.dispatch("call",{url:"upload/cancel",data:{upload_id:e._chunkUploadId},method:"post"}).catch(()=>{})),this.uploadList.splice(i,1)},uploadPercentageParse(e){return parseInt(e,10)},handleProgress(e,i,t){i._uploadIng===void 0&&(i._uploadIng=!0,this.uploadIng++),this.uploadUpdate(t)},handleSuccess(e,i,t){this.uploadIng--,this.uploadUpdate(t),e.ret===1?this.$store.dispatch("saveFile",e.data):$A.modalWarning({title:"\u4E0A\u4F20\u5931\u8D25",content:"\u6587\u4EF6 "+i.name+" \u4E0A\u4F20\u5931\u8D25\uFF0C"+e.msg})},handleError(e,i,t){this.uploadIng--,this.uploadUpdate(t)},handleFormatError(e){this.uploadDir||$A.modalWarning({title:"\u6587\u4EF6\u683C\u5F0F\u4E0D\u6B63\u786E",content:"\u6587\u4EF6 "+e.name+" \u683C\u5F0F\u4E0D\u6B63\u786E\uFF0C\u4EC5\u652F\u6301\u4E0A\u4F20\uFF1A"+this.uploadFormat.join(",")})},handleMaxSize(e){$A.modalWarning({title:"\u8D85\u51FA\u6587\u4EF6\u5927\u5C0F\u9650\u5236",content:"\u6587\u4EF6 "+e.name+" \u592A\u5927\uFF0C\u4E0D\u80FD\u8D85\u8FC7\uFF1A"+$A.bytesToSize(this.maxSize*1024)+"\u3002"})},handleBeforeUpload(e){return this.uploadCover=!1,e.size>=M?(this.handleChunkedUpload(e),!1):this.uploadDir?(this.handleUploadNext(),!0):new Promise(i=>{this.fileList.findIndex(t=>$A.getFileName(t)===e.name)>-1?$A.modalConfirm({wait:!0,title:"\u6587\u4EF6\u5DF2\u5B58\u5728",content:"\u6587\u4EF6 "+e.name+" \u5DF2\u5B58\u5728\uFF0C\u662F\u5426\u66FF\u6362\uFF1F",cancelText:"\u4FDD\u7559\u4E24\u8005",okText:"\u66FF\u6362",closable:!0,onOk:()=>{this.uploadCover=!0,this.handleUploadNext(),i()},onCancel:t=>{t&&(this.handleUploadNext(),i())}}):(this.handleUploadNext(),i())})},handleChunkedUpload(e){const i=!this.uploadDir&&this.fileList.findIndex(s=>$A.getFileName(s)===e.name)>-1,t=s=>{this.handleUploadNext();const a=new AbortController,r={uid:"chunked-"+Date.now()+"-"+Math.random().toString(36).slice(2),name:e.name,size:e.size,status:"uploading",percentage:0,response:null,_chunkCtrl:a,_chunkUploadId:""};this.uploadList.unshift(r),this.uploadIng++;const o={pid:this.pid,webkit_relative_path:e.webkitRelativePath||e.name,overwrite:!!s};D({file:e,scene:"file_cabinet",sceneParams:o,onProgress:l=>{r.percentage=l},onStart:l=>{r._chunkUploadId=l},signal:a.signal}).then(l=>{r.status="finished",r.percentage=100,r.response={ret:1,data:l,msg:l&&l.msg||"success"},this.uploadIng--;const n=l&&l.addItem?l.addItem:l;this.$store.dispatch("saveFile",n)}).catch(l=>{if(this.uploadIng--,a.signal.aborted)return;r.status="finished";const n=l&&l.message||$L("\u4E0A\u4F20\u5931\u8D25");r.response={ret:0,msg:n},$A.modalWarning({title:"\u4E0A\u4F20\u5931\u8D25",content:"\u6587\u4EF6 "+e.name+" \u4E0A\u4F20\u5931\u8D25\uFF0C"+n})})};i?$A.modalConfirm({wait:!0,title:"\u6587\u4EF6\u5DF2\u5B58\u5728",content:"\u6587\u4EF6 "+e.name+" \u5DF2\u5B58\u5728\uFF0C\u662F\u5426\u66FF\u6362\uFF1F",cancelText:"\u4FDD\u7559\u4E24\u8005",okText:"\u66FF\u6362",closable:!0,onOk:()=>t(!0),onCancel:s=>{s&&t(!1)}}):t(!1)},handleUploadNext(){this.uploadShow=!0,this.packShow=!1},toggleFileFavorite(e){!e.id||e.type==="folder"||this.$store.dispatch("toggleFavorite",{type:"file",id:e.id}).then(({data:i})=>{const t=this.fileList.findIndex(s=>s.id===e.id);t>-1&&this.$set(this.fileList[t],"favorited",i.favorited),this.contextMenuItem.id===e.id&&this.$set(this.contextMenuItem,"favorited",i.favorited)})},checkSingleFileFavoriteStatus(e){!e.id||e.type==="folder"||this.$store.dispatch("checkFavoriteStatus",{type:"file",id:e.id}).then(({data:i})=>{this.$set(this.contextMenuItem,"favorited",i.favorited||!1);const t=this.fileList.findIndex(s=>s.id===e.id);t>-1&&this.$set(this.fileList[t],"favorited",i.favorited||!1)}).catch(()=>{this.$set(this.contextMenuItem,"favorited",!1);const i=this.fileList.findIndex(t=>t.id===e.id);i>-1&&this.$set(this.fileList[i],"favorited",!1)})}}},b={};var ie=v(se,X,Q,!1,ae,null,null,null);function ae(e){for(let i in b)this[i]=b[i]}var tt=function(){return ie.exports}();export{tt as default};
+import{_ as w}from"./openpgp_hi.15f91b1d.js";import{m as k}from"./vuex.cc7cb26e.js";import{l as L}from"./lodash.8fcd6fd4.js";import{o as S,i as y}from"./file.5e8166ad.js";import{U as I,D as C}from"./index.f7653997.js";import{n as v,L as x,F,U as T,c as A}from"./app.ef7047f7.js";import{C as M,c as D}from"./chunkedUpload.3cd238b0.js";import"./@babel.9410f858.js";import"./jquery.6e4daff9.js";import"./dayjs.d20a4841.js";import"./localforage.743dffdd.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./vue.adba9046.js";import"./axios.37c7f908.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./view-design-hi.24419422.js";import"./html-to-md.f297036e.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vuedraggable.f464b992.js";import"./sortablejs.3488b922.js";import"./vue-resize-observer.5af23a43.js";import"./element-sea.f8a64907.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";import"./spark-md5.0443325f.js";var P=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("svg",{attrs:{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"}},[t("path",{attrs:{d:"M14 5H19V10",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round"}}),t("path",{attrs:{d:"M19 5L11 13",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round"}}),t("path",{attrs:{d:"M19 14V17A2 2 0 0 1 17 19H7A2 2 0 0 1 5 17V7A2 2 0 0 1 7 5H10",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round"}})])},E=[];const B={name:"CollaborationSourceIcon"},m={};var j=v(B,P,E,!1,z,null,null,null);function z(e){for(let i in m)this[i]=m[i]}var U=function(){return j.exports}(),O=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"collaboration-files"},[t("div",{staticClass:"collaboration-toolbar"},[t("div",{staticClass:"scope-segment"},[t("button",{class:{active:e.scope==="all"},on:{click:function(s){return e.setScope("all")}}},[e._v(e._s(e.$L("\u5168\u90E8")))]),t("button",{class:{active:e.scope==="conversation"},on:{click:function(s){return e.setScope("conversation")}}},[e._v(e._s(e.$L("\u4F1A\u8BDD")))]),t("button",{class:{active:e.scope==="project"},on:{click:function(s){return e.setScope("project")}}},[e._v(e._s(e.$L("\u9879\u76EE")))])]),e.scope==="conversation"?t("div",{staticClass:"sub-segment"},[t("button",{class:{active:e.conversationType==="all"},on:{click:function(s){return e.setConversationType("all")}}},[e._v(e._s(e.$L("\u5168\u90E8\u4F1A\u8BDD")))]),t("button",{class:{active:e.conversationType==="private"},on:{click:function(s){return e.setConversationType("private")}}},[e._v(e._s(e.$L("\u79C1\u804A")))]),t("button",{class:{active:e.conversationType==="group"},on:{click:function(s){return e.setConversationType("group")}}},[e._v(e._s(e.$L("\u7FA4\u804A")))])]):e._e(),e.scope==="project"?[t("Select",{staticClass:"project-select",staticStyle:{"max-width":"auto"},attrs:{placeholder:e.$L("\u9009\u62E9\u9879\u76EE"),filterable:""},on:{"on-change":e.reload},model:{value:e.projectId,callback:function(s){e.projectId=s},expression:"projectId"}},[t("Option",{attrs:{value:0}},[e._v(e._s(e.$L("\u5168\u90E8\u9879\u76EE")))]),e._l(e.projects,function(s){return t("Option",{key:s.id,attrs:{value:s.id}},[e._v(e._s(s.name))])})],2),t("div",{staticClass:"sub-segment"},[t("button",{class:{active:e.projectSource==="all"},on:{click:function(s){return e.setProjectSource("all")}}},[e._v(e._s(e.$L("\u5168\u90E8")))]),t("button",{class:{active:e.projectSource==="project_chat"},on:{click:function(s){return e.setProjectSource("project_chat")}}},[e._v(e._s(e.$L("\u9879\u76EE\u7FA4\u804A")))]),t("button",{class:{active:e.projectSource==="task"},on:{click:function(s){return e.setProjectSource("task")}}},[e._v(e._s(e.$L("\u4EFB\u52A1")))])])]:e._e(),t("div",{staticClass:"toolbar-full"}),t("Select",{staticClass:"type-select",on:{"on-change":e.reload},model:{value:e.fileType,callback:function(s){e.fileType=s},expression:"fileType"}},[t("Option",{attrs:{value:"all"}},[e._v(e._s(e.$L("\u6240\u6709\u7C7B\u578B")))]),t("Option",{attrs:{value:"document"}},[e._v(e._s(e.$L("\u6587\u6863")))]),t("Option",{attrs:{value:"sheet"}},[e._v(e._s(e.$L("\u8868\u683C")))]),t("Option",{attrs:{value:"slide"}},[e._v(e._s(e.$L("\u6F14\u793A\u6587\u7A3F")))]),t("Option",{attrs:{value:"image"}},[e._v(e._s(e.$L("\u56FE\u7247")))]),t("Option",{attrs:{value:"video"}},[e._v(e._s(e.$L("\u89C6\u9891")))]),t("Option",{attrs:{value:"archive"}},[e._v(e._s(e.$L("\u538B\u7F29\u5305")))]),t("Option",{attrs:{value:"other"}},[e._v(e._s(e.$L("\u5176\u4ED6")))])],1),t("Select",{staticClass:"sender-select",on:{"on-change":e.reload},model:{value:e.senderScope,callback:function(s){e.senderScope=s},expression:"senderScope"}},[t("Option",{attrs:{value:"all"}},[e._v(e._s(e.$L("\u6240\u6709\u6210\u5458")))]),t("Option",{attrs:{value:"mine"}},[e._v(e._s(e.$L("\u6211\u53D1\u9001\u7684")))])],1),t("div",{class:["view-switch",{table:e.viewMode==="list"}]},[t("div",{attrs:{title:e.$L("\u5BAB\u683C")},on:{click:function(s){e.viewMode="grid"}}},[t("i",{staticClass:"taskfont"},[e._v("\uE60C")])]),t("div",{attrs:{title:e.$L("\u5217\u8868")},on:{click:function(s){e.viewMode="list"}}},[t("i",{staticClass:"taskfont"},[e._v("\uE66A")])])])],2),t("div",{staticClass:"collaboration-summary"},[t("div",{staticClass:"summary-icon"},[t("Icon",{attrs:{type:e.summaryIcon}})],1),t("div",{staticClass:"summary-text"},[t("strong",[e._v(e._s(e.summaryTitle))]),t("span",[e._v(e._s(e.summarySubtitle))])]),e.items.length?t("div",{staticClass:"loaded-count"},[e._v(e._s(e.$L("\u5DF2\u52A0\u8F7D(*)\u4E2A\u6587\u4EF6",e.items.length)))]):e._e()]),t("div",{ref:"scroller",staticClass:"collaboration-scroll",on:{scroll:e.onScroll}},[e.initializing||e.loading&&e.items.length===0?t("div",{staticClass:"initial-loading"},[t("Loading")],1):e.items.length?[e.viewMode==="list"?t("div",{staticClass:"collaboration-table"},[t("div",{staticClass:"table-head"},[t("span",[e._v(e._s(e.$L("\u6587\u4EF6\u540D")))]),t("span",[e._v(e._s(e.$L("\u6765\u6E90")))]),t("span",[e._v(e._s(e.$L("\u53D1\u9001\u4EBA")))]),t("span",[e._v(e._s(e.$L("\u65F6\u95F4")))]),t("span",[e._v(e._s(e.$L("\u5927\u5C0F")))]),t("span",[e._v(e._s(e.$L("\u64CD\u4F5C")))])]),e._l(e.items,function(s){return t("div",{key:e.itemKey(s),staticClass:"table-row"},[t("div",{staticClass:"file-main",on:{click:function(a){return e.preview(s)}}},[t("div",{staticClass:"collaboration-file-preview"},[e.showThumbnail(s)?t("img",{staticClass:"collaboration-thumbnail",attrs:{src:s.image_url,alt:""},on:{error:function(a){return a.stopPropagation(),e.handleThumbnailError(s)}}}):t("div",{class:["no-dark-content","collaboration-file-icon",e.fileIconType(s)]})]),t("div",{staticClass:"file-text"},[t("AutoTip",{staticClass:"file-title"},[e._v(e._s(e.fileName(s)))]),t("span",[e._v(e._s(e.fileTypeText(s)))])],1)]),t("div",{staticClass:"source-main",on:{click:function(a){return e.openSource(s)}}},[t("div",{staticClass:"source-text"},[t("span",{class:["source-type",s.source_type]},[e._v(e._s(e.sourceTypeText(s)))]),t("span",{staticClass:"source-name",attrs:{title:e.sourcePath(s)}},[e._v(e._s(s.source_name))])])]),t("UserAvatar",{attrs:{userid:s.sender.userid,size:24,showName:""}}),t("span",{staticClass:"time-text"},[e._v(e._s(e.formatTime(s.created_at)))]),t("span",{staticClass:"size-text"},[e._v(e._s(e.$A.bytesToSize(s.size)))]),t("div",{staticClass:"row-actions"},[t("ETooltip",{attrs:{content:e.$L("\u6253\u5F00\u6765\u6E90")}},[t("button",{on:{click:function(a){return e.locateMessage(s)}}},[t("CollaborationSourceIcon")],1)]),t("ETooltip",{attrs:{content:e.localActionTitle(s)}},[t("button",{attrs:{disabled:e.localFileStatus(s)==="downloading"},on:{click:function(a){return e.handleLocalAction(s)}}},[t("LocalFileStatusIcon",{attrs:{status:e.localFileStatus(s)}})],1)])],1)],1)})],2):t("div",{staticClass:"collaboration-grid"},e._l(e.items,function(s){return t("div",{key:e.itemKey(s),staticClass:"grid-item",on:{click:function(a){return e.preview(s)}}},[t("div",{staticClass:"grid-preview"},[e.showThumbnail(s)?t("img",{staticClass:"collaboration-thumbnail",attrs:{src:s.image_url,alt:""},on:{error:function(a){return a.stopPropagation(),e.handleThumbnailError(s)}}}):t("div",{class:["no-dark-content","collaboration-file-icon",e.fileIconType(s)]})]),t("AutoTip",{staticClass:"grid-title"},[e._v(e._s(e.fileName(s)))]),t("div",{staticClass:"grid-source"},[t("span",{class:["source-type",s.source_type]},[e._v(e._s(e.sourceTypeText(s)))]),t("AutoTip",{staticClass:"grid-source-name",attrs:{content:e.sourcePath(s)}},[e._v(e._s(s.source_name))])],1),t("div",{staticClass:"grid-meta"},[e._v(e._s(s.sender.nickname||e.$L("\u672A\u77E5\u6210\u5458"))+" \xB7 "+e._s(e.formatTime(s.created_at)))]),t("div",{staticClass:"grid-actions",on:{click:function(a){a.stopPropagation()}}},[t("button",{attrs:{title:e.$L("\u6253\u5F00\u6765\u6E90")},on:{click:function(a){return e.locateMessage(s)}}},[t("CollaborationSourceIcon")],1),t("button",{attrs:{title:e.localActionTitle(s),disabled:e.localFileStatus(s)==="downloading"},on:{click:function(a){return e.handleLocalAction(s)}}},[t("LocalFileStatusIcon",{attrs:{status:e.localFileStatus(s)}})],1)])],1)}),0),e.loading?t("div",{staticClass:"load-more"},[t("Loading")],1):e.hasMore?e._e():t("div",{staticClass:"list-end"},[e._v(e._s(e.$L("\u6CA1\u6709\u66F4\u591A\u6587\u4EF6\u4E86")))])]:t("div",{staticClass:"empty-state"},[t("Icon",{attrs:{type:"ios-folder-open-outline"}}),t("p",[e._v(e._s(e.$L("\u6CA1\u6709\u627E\u5230\u76F8\u5173\u6587\u4EF6")))])],1)],2)])},N=[];const _=1,R={name:"CollaborationFileList",components:{CollaborationSourceIcon:U,LocalFileStatusIcon:x},props:{searchKey:{type:String,default:""}},data(){return{scope:"all",conversationType:"all",projectId:0,projectSource:"all",fileType:"all",senderScope:"all",viewMode:this.$store.state.collaborationFileViewMode==="grid"?"grid":"list",items:[],cursor:0,hasMore:!1,loading:0,initializing:!0,searchTimer:null,requestId:0,localFileStatuses:{},removeDownloadListener:null}},computed:{...k(["cacheProjects","collaborationFileCache","userId"]),projects(){return this.cacheProjects.filter(e=>!e.deleted_at&&!e.archived_at).slice().sort((e,i)=>e.name.localeCompare(i.name))},selectedProject(){return this.projects.find(e=>e.id==this.projectId)},summaryIcon(){return this.scope==="project"?"ios-briefcase-outline":this.scope==="conversation"?"ios-chatbubbles-outline":"ios-git-merge"},summaryTitle(){var e;if(this.scope==="project"){const i=((e=this.selectedProject)==null?void 0:e.name)||this.$L("\u5168\u90E8\u9879\u76EE");return this.projectSource==="task"?this.$L("(*) \xB7 \u4EFB\u52A1\u6587\u4EF6",i):this.projectSource==="project_chat"?this.$L("(*) \xB7 \u9879\u76EE\u7FA4\u804A\u6587\u4EF6",i):this.$L("(*) \xB7 \u5168\u90E8\u6587\u4EF6",i)}return this.scope==="conversation"?this.conversationType==="private"?this.$L("\u4E2A\u4EBA\u804A\u5929\u6587\u4EF6"):this.conversationType==="group"?this.$L("\u666E\u901A\u7FA4\u804A\u6587\u4EF6"):this.$L("\u5168\u90E8\u4F1A\u8BDD\u6587\u4EF6"):this.$L("\u5168\u90E8\u534F\u4F5C\u6587\u4EF6")},summarySubtitle(){return this.scope==="project"?this.$L("\u6C47\u603B\u9879\u76EE\u7FA4\u804A\u548C\u9879\u76EE\u4E0B\u4EFB\u52A1\u4E2D\u7684\u6587\u4EF6"):this.scope==="conversation"?this.$L("\u6765\u81EA\u79C1\u804A\u548C\u666E\u901A\u7FA4\u804A\u7684\u6587\u4EF6"):this.$L("\u5305\u542B\u4F1A\u8BDD\u3001\u9879\u76EE\u7FA4\u804A\u548C\u4EFB\u52A1\u4E2D\u7684\u6587\u4EF6")}},watch:{searchKey(){clearTimeout(this.searchTimer),this.searchTimer=setTimeout(()=>this.reload(),400)},viewMode(e){this.$store.commit("collaboration/file/view/save",e)}},created(){this.restoreCache(this.collaborationFileCache)&&(this.initializing=!1)},mounted(){this.$store.dispatch("getProjects").catch(()=>{}),this.$Electron&&(this.removeDownloadListener=$A.Electron.listener("downloadItemsChanged",()=>{this.refreshLocalFileStatuses()}),this.refreshLocalFileStatuses()),this.refresh(),this.initializing=!1},beforeDestroy(){clearTimeout(this.searchTimer),typeof this.removeDownloadListener=="function"&&this.removeDownloadListener()},methods:{setScope(e){this.scope!==e&&(this.scope=e,this.reload())},setConversationType(e){this.conversationType!==e&&(this.conversationType=e,this.reload())},setProjectSource(e){this.projectSource!==e&&(this.projectSource=e,this.reload())},reload(){this.loadFirstPage(!1)},refresh(){this.loadFirstPage(!0)},loadFirstPage(e){this.requestId++,this.loading=0,e||(this.items=[],this.localFileStatuses={}),this.cursor=0,this.hasMore=!1,this.load(!0)},load(e=!1){if(this.loading||this.cursor&&!this.hasMore)return;const i=++this.requestId,t=e?0:this.cursor;this.loading++,this.$store.dispatch("call",{url:"file/collaboration/lists",data:{scope:this.scope,conversation_type:this.conversationType,project_id:this.projectId,project_source:this.projectSource,file_type:this.fileType,sender_id:this.senderScope==="mine"?this.userId:0,key:this.searchKey.trim(),cursor:t,take:50}}).then(({data:s})=>{i===this.requestId&&(e?this.items=s.list:this.items.push(...s.list),this.refreshLocalFileStatuses(s.list),this.cursor=s.next_cursor,this.hasMore=s.has_more,e&&!this.searchKey.trim()&&this.saveCache(s))}).catch(({msg:s})=>{s&&$A.modalError(s)}).finally(()=>{i===this.requestId&&this.loading--})},cacheParams(){return{scope:this.scope,conversationType:this.conversationType,projectId:this.projectId,projectSource:this.projectSource,fileType:this.fileType,senderScope:this.senderScope}},restoreCache(e){if(!$A.isJson(e)||e.version!==_||e.userId!==this.userId||!$A.isJson(e.params)||!$A.isArray(e.list))return!1;const i=e.params;return!["all","conversation","project"].includes(i.scope)||!["all","private","group"].includes(i.conversationType)||!["all","project_chat","task"].includes(i.projectSource)||!["all","document","sheet","slide","image","video","archive","other"].includes(i.fileType)||!["all","mine"].includes(i.senderScope)?!1:(this.scope=i.scope,this.conversationType=i.conversationType,this.projectId=Math.max(0,parseInt(i.projectId)||0),this.projectSource=i.projectSource,this.fileType=i.fileType,this.senderScope=i.senderScope,this.searchKey.trim()||(this.items=e.list,this.cursor=e.next_cursor||0,this.hasMore=e.has_more===!0),!0)},saveCache(e){this.$store.commit("collaboration/file/cache/save",{version:_,userId:this.userId,params:this.cacheParams(),list:e.list,next_cursor:e.next_cursor,has_more:e.has_more})},onScroll(e){const i=e.target;i.scrollHeight-i.scrollTop-i.clientHeight<180&&this.hasMore&&this.load()},fileIconType(e){return e.file_type==="sheet"?"excel":e.file_type==="slide"?"ppt":e.file_type==="document"?e.ext==="pdf"?"pdf":"word":e.file_type==="image"?"picture":e.file_type==="video"?"media":e.file_type==="archive"?"archive":"file"},itemKey(e){return e.attachment_id?`attachment-${e.attachment_id}`:`message-${e.msg_id}`},fileReference(e){return{key:this.itemKey(e),msgId:e.msg_id,attachmentId:e.attachment_id}},localFileStatus(e){return this.$Electron&&this.localFileStatuses[this.itemKey(e)]||"missing"},localActionTitle(e){return this.localFileStatus(e)==="available"?this.$L("\u5728\u6587\u4EF6\u5939\u4E2D\u663E\u793A"):this.$L("\u4E0B\u8F7D")},async refreshLocalFileStatuses(e=this.items){if(!this.$Electron||!e.length)return;const i=e.map(s=>this.fileReference(s)),t=[];for(let s=0;s$A.Electron.sendAsync("downloadManager",{action:"fileStatuses",files:a})));this.localFileStatuses=Object.assign({},this.localFileStatuses,...s)}catch{}},showThumbnail(e){return!!e.image_url&&!e._thumbnailError},handleThumbnailError(e){this.$set(e,"_thumbnailError",!0)},fileTypeText(e){const i={document:"\u6587\u6863",sheet:"\u8868\u683C",slide:"\u6F14\u793A\u6587\u7A3F",image:"\u56FE\u7247",video:"\u89C6\u9891",archive:"\u538B\u7F29\u5305",other:"\u5176\u4ED6"};return`${this.$L(i[e.file_type]||"\u5176\u4ED6")} \xB7 ${(e.ext||"").toUpperCase()}`},fileName(e){if(e.attachment_source==="inline_image"&&e.generated_name){const i=$A.dayjs(e.created_at).format("YYYY-MM-DD HH:mm");return this.$L("\u804A\u5929\u56FE\u7247 (*)",`${i} #${(e.attachment_position||0)+1}`)}return e.name},sourceTypeText(e){const i={private:"\u79C1\u804A",group:"\u7FA4\u804A",project_chat:"\u9879\u76EE\u7FA4\u804A",task:"\u4EFB\u52A1"};return this.$L(i[e.source_type]||"\u7FA4\u804A")},sourcePath(e){return e.source_type==="task"?`${e.project_name} / ${e.task_name}`:e.source_type==="project_chat"?e.project_name:e.source_type==="private"?this.$L("\u4E2A\u4EBA\u4F1A\u8BDD"):this.$L("\u666E\u901A\u7FA4\u804A")},formatTime(e){if(!e)return"-";const i=$A.dayjs(e);return i.isSame($A.dayjs(),"day")?i.format("HH:mm"):i.isSame($A.dayjs().subtract(1,"day"),"day")?this.$L("\u6628\u5929 (*)",i.format("HH:mm")):i.format("YYYY-MM-DD HH:mm")},preview(e){if(e.attachment_source==="inline_image"&&e.image_url){this.$store.dispatch("previewImage",e.image_url);return}S(this,e,{path:`/single/file/msg/${e.msg_id}`,windowName:`file-msg-${e.msg_id}`})},openSource(e){if(e.source_type==="task"&&e.task_id){this.$store.dispatch("openTask",{id:e.task_id,project_id:e.project_id});return}this.locateMessage(e)},locateMessage(e){this.$store.dispatch("openDialog",{dialog_id:e.dialog_id,search_msg_id:e.msg_id}).catch(({msg:i})=>i&&$A.modalError(i))},downloadUrl(e){return e.attachment_source==="file_message"?`dialog/msg/download?msg_id=${e.msg_id}`:e.attachment_id?`file/collaboration/download?attachment_id=${e.attachment_id}`:`dialog/msg/download?msg_id=${e.msg_id}`},async handleLocalAction(e){if(!this.$Electron){this.download(e);return}const i=this.localFileStatus(e);if(i!=="downloading"){if(i==="available"){try{if(await $A.Electron.sendAsync("downloadManager",{action:"showFile",file:this.fileReference(e)}))return}catch{}this.$set(this.localFileStatuses,this.itemKey(e),"missing");return}this.$set(this.localFileStatuses,this.itemKey(e),"downloading"),this.$store.dispatch("downUrl",$A.apiUrl(this.downloadUrl(e))),setTimeout(()=>this.refreshLocalFileStatuses([e]),500)}},download(e){$A.modalConfirm({language:!1,title:this.$L("\u4E0B\u8F7D\u6587\u4EF6"),okText:this.$L("\u7ACB\u5373\u4E0B\u8F7D"),content:`${this.fileName(e)} (${$A.bytesToSize(e.size)})`,onOk:()=>this.$store.dispatch("downUrl",$A.apiUrl(this.downloadUrl(e)))})}}},g={};var V=v(R,O,N,!1,K,"78773d94",null,null);function K(e){for(let i in g)this[i]=g[i]}var W=function(){return V.exports}(),H=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("Modal",{attrs:{title:e.$L("WebDAV"),"mask-closable":!1,width:"640"},model:{value:e.visible,callback:function(s){e.visible=s},expression:"visible"}},[t("div",{staticClass:"webdav-manager"},[e.loading>0?t("Spin",{attrs:{fix:""}}):e._e(),e.status&&(!e.status.enabled||!e.status.allowed)?t("Alert",{attrs:{type:"warning","show-icon":""}},[e._v(" "+e._s(e.status.enabled?e.$L("\u4F60\u6CA1\u6709 WebDAV \u4F7F\u7528\u6743\u9650"):e.$L("WebDAV \u672A\u542F\u7528"))+" ")]):e.status?[e.status.https?e._e():t("Alert",{attrs:{type:"warning","show-icon":""}},[e._v(" "+e._s(e.$L("\u5F53\u524D\u9875\u9762\u4E0D\u662F HTTPS\uFF0C\u65E0\u6CD5\u521B\u5EFA\u5E94\u7528\u5BC6\u7801"))+" ")]),t("div",{staticClass:"webdav-section"},[t("div",{staticClass:"webdav-section-title"},[e._v(e._s(e.$L("\u8FDE\u63A5\u5730\u5740")))]),t("div",{staticClass:"webdav-copy-row"},[t("Input",{attrs:{value:e.status.url,readonly:""}}),t("Button",{attrs:{icon:"ios-copy-outline"},on:{click:function(s){return e.copyText(e.status.url)}}},[e._v(e._s(e.$L("\u590D\u5236")))])],1)]),e.created.password?t("Alert",{staticClass:"webdav-secret",attrs:{type:"success","show-icon":""}},[e._v(" "+e._s(e.$L("\u5E94\u7528\u5BC6\u7801\u5DF2\u521B\u5EFA\uFF0C\u8BF7\u7ACB\u5373\u4FDD\u5B58\uFF0C\u5173\u95ED\u540E\u65E0\u6CD5\u518D\u6B21\u67E5\u770B\u3002"))+" "),t("div",{staticClass:"webdav-secret-fields",attrs:{slot:"desc"},slot:"desc"},[t("div",[t("span",[e._v(e._s(e.$L("\u7528\u6237\u540D")))]),t("div",{staticClass:"webdav-copy-row"},[t("Input",{attrs:{value:e.created.public_id,readonly:""}}),t("Button",{attrs:{icon:"ios-copy-outline"},on:{click:function(s){return e.copyText(e.created.public_id)}}},[e._v(e._s(e.$L("\u590D\u5236")))])],1)]),t("div",[t("span",[e._v(e._s(e.$L("\u5E94\u7528\u5BC6\u7801")))]),t("div",{staticClass:"webdav-copy-row"},[t("Input",{attrs:{value:e.created.password,readonly:""}}),t("Button",{attrs:{icon:"ios-copy-outline"},on:{click:function(s){return e.copyText(e.created.password)}}},[e._v(e._s(e.$L("\u590D\u5236")))])],1)])])]):e._e(),t("div",{staticClass:"webdav-section"},[t("div",{staticClass:"webdav-section-head"},[t("div",{staticClass:"webdav-section-title"},[e._v(e._s(e.$L("\u5E94\u7528\u5BC6\u7801")))]),e.createVisible?e._e():t("Button",{attrs:{type:"primary",icon:"md-add",disabled:!e.status.https||e.activeCredentialCount>=e.status.max_credentials},on:{click:function(s){e.createVisible=!0}}},[e._v(" "+e._s(e.$L("\u65B0\u5EFA"))+" ")])],1),e.createVisible?t("Form",{staticClass:"webdav-create",nativeOn:{submit:function(s){s.preventDefault()}}},[t("div",{staticClass:"webdav-create-fields"},[t("div",{staticClass:"webdav-create-field"},[t("label",[e._v(e._s(e.$L("\u8BBE\u5907\u540D\u79F0")))]),t("Input",{attrs:{maxlength:100,placeholder:e.$L("\u4F8B\u5982\uFF1A\u529E\u516C\u5BA4\u7535\u8111")},model:{value:e.createForm.name,callback:function(s){e.$set(e.createForm,"name",s)},expression:"createForm.name"}})],1),t("div",{staticClass:"webdav-create-field"},[t("label",[e._v(e._s(e.$L("\u6709\u6548\u671F")))]),t("Input",{attrs:{type:"number",min:1,max:e.status.max_expire_days},model:{value:e.createForm.expire_days,callback:function(s){e.$set(e.createForm,"expire_days",s)},expression:"createForm.expire_days"}},[t("span",{attrs:{slot:"append"},slot:"append"},[e._v(e._s(e.$L("[day_unit].\u5929")))])])],1)]),t("div",{staticClass:"webdav-create-actions"},[t("Button",{on:{click:function(s){e.createVisible=!1}}},[e._v(e._s(e.$L("\u53D6\u6D88")))]),t("Button",{attrs:{type:"primary",loading:e.creating},on:{click:e.createCredential}},[e._v(e._s(e.$L("\u521B\u5EFA")))])],1)]):e._e(),e.credentials.length?t("div",{staticClass:"webdav-credentials"},e._l(e.credentials,function(s){return t("div",{key:s.id,staticClass:"webdav-credential"},[t("div",{staticClass:"webdav-credential-main"},[t("div",{staticClass:"webdav-credential-title"},[t("strong",[e._v(e._s(s.name))]),t("Tag",{attrs:{color:s.status==="active"?"green":"default"}},[e._v(e._s(e.statusText(s.status)))])],1),t("span",[e._v(e._s(s.public_id)+" \xB7 ****"+e._s(s.password_suffix))]),t("span",[e._v(" "+e._s(e.$L("\u6709\u6548\u671F\u81F3"))+"\uFF1A"+e._s(s.expires_at||e.$L("\u6C38\u4E45"))+" "),s.last_used_at?[e._v(" \xB7 "+e._s(e.$L("\u6700\u8FD1\u4F7F\u7528"))+"\uFF1A"+e._s(s.last_used_at))]:e._e()],2)]),s.status==="active"?t("Tooltip",{attrs:{content:e.$L("\u64A4\u9500"),placement:"top",transfer:""}},[t("Button",{staticClass:"webdav-credential-action",attrs:{icon:"md-close"},on:{click:function(a){return e.revokeCredential(s)}}})],1):t("Tooltip",{attrs:{content:e.$L("\u5220\u9664"),placement:"top",transfer:""}},[t("Button",{staticClass:"webdav-credential-action webdav-delete",attrs:{icon:"ios-trash-outline"},on:{click:function(a){return e.deleteCredential(s)}}})],1)],1)}),0):e.createVisible?e._e():t("div",{staticClass:"webdav-empty"},[e._v(e._s(e.$L("\u6682\u65E0\u5E94\u7528\u5BC6\u7801")))])],1)]:e._e()],2),t("div",{attrs:{slot:"footer"},slot:"footer"},[t("Button",{on:{click:function(s){e.visible=!1}}},[e._v(e._s(e.$L("\u5173\u95ED")))])],1)])},q=[];const Y={name:"WebDavManager",props:{value:Boolean},data(){return{visible:!1,loading:0,creating:!1,status:null,credentials:[],created:{},createVisible:!1,createForm:{name:"",expire_days:90}}},watch:{value:{immediate:!0,handler(e){this.visible=e,e&&this.load()}},visible(e){this.$emit("input",e),e||(this.created={},this.createVisible=!1)}},computed:{activeCredentialCount(){return this.credentials.filter(e=>e.status==="active").length}},methods:{load(){this.loading++,Promise.all([this.$store.dispatch("call",{url:"file/dav/status"}),this.$store.dispatch("call",{url:"file/dav/credentials"})]).then(([e,i])=>{this.status=e.data,this.credentials=i.data||[],this.createForm.expire_days=this.status.default_expire_days}).catch(({msg:e})=>{$A.modalError(e)}).finally(()=>{this.loading--})},createCredential(){if(!this.createForm.name.trim()){$A.messageWarning("\u8BF7\u8F93\u5165\u8BBE\u5907\u540D\u79F0");return}this.creating=!0,this.$store.dispatch("call",{url:"file/dav/create",method:"post",data:this.createForm}).then(({data:e})=>(this.created=e,this.createVisible=!1,this.createForm.name="",this.$store.dispatch("call",{url:"file/dav/credentials"}))).then(({data:e})=>{this.credentials=e||[]}).catch(({msg:e})=>{$A.modalError(e)}).finally(()=>{this.creating=!1})},revokeCredential(e){$A.modalConfirm({title:"\u64A4\u9500\u5E94\u7528\u5BC6\u7801",content:"\u64A4\u9500\u540E\uFF0C\u4F7F\u7528\u6B64\u5E94\u7528\u5BC6\u7801\u8FDE\u63A5\u7684\u8BBE\u5907\u5C06\u7ACB\u5373\u65AD\u5F00\u3002",onOk:()=>this.$store.dispatch("call",{url:"file/dav/revoke",method:"post",data:{id:e.id}}).then(()=>this.load())})},deleteCredential(e){$A.modalConfirm({title:"\u5220\u9664",content:"\u4F60\u786E\u5B9A\u8981\u5220\u9664\u5417\uFF1F",onOk:()=>this.$store.dispatch("call",{url:"file/dav/delete",method:"post",data:{id:e.id}}).then(()=>this.load())})},statusText(e){return e==="active"?this.$L("[credential_status].\u6709\u6548"):e==="expired"?this.$L("\u5DF2\u8FC7\u671F"):e==="revoked"?this.$L("\u5DF2\u64A4\u9500"):e}}},$={};var J=v(Y,H,q,!1,G,"6b5f9d78",null,null);function G(e){for(let i in $)this[i]=$[i]}var Z=function(){return J.exports}(),X=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"page-file"},[t("PageTitle",{attrs:{title:e.$L("\u6587\u4EF6")}}),t("div",{ref:"fileWrapper",staticClass:"file-wrapper"},[t("div",{staticClass:"file-head"},[t("div",{staticClass:"file-nav"},[t("div",{staticClass:"common-nav-back portrait",on:{click:function(s){return e.goForward({name:"manage-application"},!0)}}},[t("i",{staticClass:"taskfont"},[e._v("\uE676")])]),t("h1",[e._v(e._s(e.$L("\u6587\u4EF6")))]),e.loadIng==0?t("div",{staticClass:"file-refresh",on:{click:e.getFileList}},[t("i",{staticClass:"taskfont"},[e._v("\uE6AE")])]):e._e()]),t("div",{staticClass:"file-actions"},[e.uploadList.length>0?t("div",{staticClass:"file-status",on:{click:function(s){e.uploadShow=!0,e.packShow=!1}}},[e.uploadList.find(function(s){var a=s.status;return a!=="finished"})?t("Loading"):t("Button",{attrs:{shape:"circle",icon:"md-arrow-round-up"}})],1):e._e(),e.packList.length>0?t("div",{staticClass:"file-status",on:{click:function(s){e.packShow=!0,e.uploadShow=!1}}},[e.packList.find(function(s){var a=s.status;return a!=="finished"})?t("Loading"):t("Button",{attrs:{shape:"circle",icon:"md-arrow-round-down"}})],1):e._e(),t("div",{class:["file-search",{collaboration:e.board==="collaboration"}],on:{click:e.onSearchFocus}},[t("Input",{ref:"searchInput",attrs:{suffix:"ios-search",placeholder:e.$L(e.board==="collaboration"?"\u641C\u7D22\u540D\u79F0\u3001\u4F1A\u8BDD\u3001\u9879\u76EE\u6216\u4EFB\u52A1":"\u641C\u7D22\u540D\u79F0"),clearable:""},on:{"on-focus":function(s){e.searchIsFocus=!0},"on-blur":function(s){e.searchIsFocus=!1},"on-change":e.onSearchChange},model:{value:e.searchKey,callback:function(s){e.searchKey=s},expression:"searchKey"}})],1),e.board!=="collaboration"?t("div",{staticClass:"file-add"},[t("Button",{attrs:{shape:"circle",icon:"md-add"},on:{click:function(s){return s.stopPropagation(),e.handleRightClick(s,null,!0)}}})],1):e._e(),e.board!=="collaboration"?t("Dropdown",{attrs:{placement:"bottom-end",trigger:"click",transfer:""},on:{"on-click":function(s){e.webDavShow=!0}}},[t("Button",{attrs:{shape:"circle",icon:"ios-more"}}),t("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[t("DropdownItem",{attrs:{name:"webdav"}},[e._v(e._s(e.$L("WebDAV")))])],1)],1):e._e()],1)]),t("div",{staticClass:"file-tabs"},[t("div",{staticClass:"file-tabs-nav"},[t("div",{class:["file-tab",{active:e.board==="mine"}],on:{click:function(s){return e.switchBoard("mine")}}},[e._v(e._s(e.$L("\u6211\u7684\u6587\u4EF6")))]),t("div",{class:["file-tab",{active:e.board==="shared"}],on:{click:function(s){return e.switchBoard("shared")}}},[e._v(e._s(e.$L("\u5171\u4EAB\u6587\u4EF6")))]),t("div",{class:["file-tab",{active:e.board==="collaboration"}],on:{click:function(s){return e.switchBoard("collaboration")}}},[e._v(e._s(e.$L("\u534F\u4F5C\u6587\u4EF6")))])]),t("div",{staticClass:"file-tabs-full"}),e.board==="shared"&&e.pid==0&&!e.searchKey?t("div",{staticClass:"file-shared-src"},[t("span",{class:{on:e.sharedSrc==="all"},on:{click:function(s){e.sharedSrc="all"}}},[e._v(e._s(e.$L("\u5168\u90E8")))]),t("span",{class:{on:e.sharedSrc==="byme"},on:{click:function(s){e.sharedSrc="byme"}}},[e._v(e._s(e.$L("\u6211\u5171\u4EAB\u7684")))]),t("span",{class:{on:e.sharedSrc==="tome"},on:{click:function(s){e.sharedSrc="tome"}}},[e._v(e._s(e.$L("\u5171\u4EAB\u7ED9\u6211\u7684")))])]):e._e(),e.board!=="collaboration"?t("div",{class:["switch-button",e.tableMode]},[t("div",{on:{click:function(s){e.tableMode="block"}}},[t("i",{staticClass:"taskfont"},[e._v("\uE60C")])]),t("div",{on:{click:function(s){e.tableMode="table"}}},[t("i",{staticClass:"taskfont"},[e._v("\uE66A")])])]):e._e()]),e.board==="collaboration"?t("CollaborationFileList",{ref:"collaborationFiles",attrs:{"search-key":e.searchKey}}):[t("div",{directives:[{name:"show",rawName:"v-show",value:e.showNavigator,expression:"showNavigator"}],staticClass:"file-navigator"},[t("ul",{directives:[{name:"show",rawName:"v-show",value:e.showBtnText||!e.selectedItems.length&&!e.shearFirst,expression:"showBtnText || (!selectedItems.length && !shearFirst)"}],staticClass:"scrollbar-hidden"},[e.pid>0||e.searchKey?t("li",{on:{click:function(s){return e.browseFolder(0)}}},[t("span",[e._v(e._s(e.board==="shared"?e.$L("\u5171\u4EAB\u6587\u4EF6"):e.$L("\u6211\u7684\u6587\u4EF6")))])]):e._e(),e.searchKey?t("li",[e._v(e._s(e.$L("\u641C\u7D22"))+' "'+e._s(e.searchKey)+'"')]):e._l(e.navigator,function(s){return t("li",{ref:`nav_${s.id}`,refInFor:!0,on:{click:function(a){return e.browseFolder(s.id)}}},[s.share?t("i",{staticClass:"taskfont"},[e._v("\uE63F")]):e._e(),t("span",{attrs:{title:s.name}},[e._v(e._s(s.name))]),s.share&&s.permission==0?t("span",{staticClass:"readonly"},[e._v(e._s(e.$L("\u53EA\u8BFB")))]):e._e()])})],2),e.shearFirst?[t("Button",{style:{marginLeft:e.pid>0?"12px":0},attrs:{disabled:e.shearFirst.pid==e.pid,size:"small",type:"primary"},on:{click:e.shearTo}},[t("div",{staticClass:"file-shear"},[t("span",[e._v(e._s(e.$L("\u7C98\u8D34")))]),[e._v('"'),t("em",[e._v(e._s(e.shearFirst.name))]),e._v('"')],e.shearIds.length>1?t("span",[e._v(e._s(e.$L("\u7B49(*)\u4E2A\u6587\u4EF6",e.shearIds.length)))]):e._e()],2)]),t("Button",{attrs:{type:"primary",size:"small"},on:{click:e.clearShear}},[e._v(e._s(e.$L("\u53D6\u6D88\u526A\u5207")))])]:e.selectedItems.length>0?[t("Button",{style:{marginLeft:e.pid>0?"12px":0},attrs:{size:"small",type:"info"},on:{click:function(s){return e.handleContextClick("shearSelect")}}},[t("div",{staticClass:"tool-box"},[t("Icon",{attrs:{type:"ios-cut"}}),t("span",{directives:[{name:"show",rawName:"v-show",value:e.showBtnText,expression:"showBtnText"}]},[e._v(e._s(e.$L("\u526A\u5207")))])],1)]),e.showDownloadZipButton?t("Button",{attrs:{disabled:e.compressedSownloadDisabled,size:"small",type:"info"},on:{click:function(s){e.downloadZipFile(e.selectedItems.map(function(a){var r=a.id;return r}))}}},[t("div",{staticClass:"tool-box"},[t("Icon",{attrs:{type:"ios-download"}}),t("span",{directives:[{name:"show",rawName:"v-show",value:e.showBtnText,expression:"showBtnText"}]},[e._v(e._s(e.$L("\u6253\u5305\u4E0B\u8F7D")))])],1)]):e._e(),t("Button",{attrs:{size:"small",type:"error",disabled:e.batchDeleteDisabled},on:{click:function(s){e.deleteFile(e.selectedItems.map(function(a){var r=a.id;return r}))}}},[t("div",{staticClass:"tool-box"},[t("Icon",{attrs:{type:"ios-trash"}}),t("span",{directives:[{name:"show",rawName:"v-show",value:e.showBtnText,expression:"showBtnText"}]},[e._v(e._s(e.$L("\u5220\u9664")))])],1)]),t("Button",{attrs:{type:"primary",size:"small"},on:{click:e.clearSelect}},[e._v(" "+e._s(e.showBtnText?e.$L("\u53D6\u6D88\u9009\u62E9"):e.$L("\u53D6\u6D88"))+" ")])]:e._e(),e.loadIng>0?t("div",{staticClass:"nav-load"},[t("Loading")],1):e._e(),t("div",{staticClass:"flex-full"})],2),t("div",{staticClass:"file-drag",on:{drop:function(s){return s.preventDefault(),e.filePasteDrag(s,"drag")},dragover:function(s){return s.preventDefault(),e.fileDragOver(!0,s)},dragleave:function(s){return s.preventDefault(),e.fileDragOver(!1,s)}}},[e.tableMode==="table"?t("div",{staticClass:"file-table",on:{contextmenu:function(s){return s.preventDefault(),e.handleContextmenu.apply(null,arguments)}}},[t("Table",{attrs:{columns:e.columns,data:e.fileList,height:e.tableHeight,"no-data-text":e.$L("\u6CA1\u6709\u4EFB\u4F55\u6587\u4EF6"),"context-menu":"",stripe:""},on:{"on-cell-click":e.clickRow,"on-contextmenu":e.handleContextMenu,"on-select":e.handleTableSelect,"on-select-cancel":e.handleTableSelect,"on-select-all-cancel":e.handleTableSelect,"on-select-all":e.handleTableSelect,"on-sort-change":e.handleTableSort,"on-scroll":e.onFileListScroll}})],1):[e.fileList.length==0&&e.loadIng==0?t("div",{staticClass:"file-no",on:{contextmenu:function(s){return s.preventDefault(),e.handleContextmenu.apply(null,arguments)}}},[t("i",{staticClass:"taskfont"},[e._v("\uE60B")]),t("p",[e._v(e._s(e.$L("\u6CA1\u6709\u4EFB\u4F55\u6587\u4EF6")))])]):t("div",{ref:"blockFileList",staticClass:"file-list",on:{contextmenu:function(s){return s.preventDefault(),e.handleContextmenu.apply(null,arguments)},pointerdown:e.onFileListPointerDown,pointermove:e.onFileListPointerMove,pointerup:e.onFileListPointerUp,pointercancel:e.onFileListPointerUp,pointerleave:e.onFileListPointerLeave,scroll:e.onFileListScroll}},[t("ul",{directives:[{name:"longpress",rawName:"v-longpress",value:e.handleLongpress,expression:"handleLongpress"}]},e._l(e.fileList,function(s){return t("li",[t("div",{staticClass:"file-item",class:{shear:e.shearIds.includes(s.id),highlight:e.selectedItems.some(function(a){var r=a.id;return r===s.id}),operate:e.contextMenuVisible&&s.id===e.contextMenuItem.id},attrs:{"data-id":s.id},on:{pointerdown:e.handleOperation,click:function(a){return e.dropFile(s,"openCheckMenu")}}},[t("div",{staticClass:"file-check",class:{"file-checked":e.selectedItems.some(function(a){var r=a.id;return r===s.id})},on:{click:function(a){return a.stopPropagation(),e.dropFile(s,"select")}}},[t("Checkbox",{attrs:{value:e.selectedItems.some(function(a){var r=a.id;return r===s.id})}})],1),t("div",{staticClass:"file-menu",on:{click:function(a){return a.stopPropagation(),e.handleRightClick(a,s)}}},[t("Icon",{attrs:{type:"ios-more"}})],1),t("div",{class:e.fileBlockIconClasses(s)},[s._thumbnail&&!s._thumbError?t("div",{staticClass:"file-thumb"},[t("img",{attrs:{src:s._thumbnail.src,width:s._thumbnail.width,height:s._thumbnail.height,alt:""},on:{load:function(a){return a.stopPropagation(),e.handleThumbLoad(s)},error:function(a){return a.stopPropagation(),e.handleThumbError(s)}}})]):e._e(),s.share?[s.userid!=e.userId?t("UserAvatarTip",{staticClass:"share-avatar",attrs:{userid:s.userid,size:20}},[t("p",[e._v(e._s(e.$L("\u5171\u4EAB\u6743\u9650"))+": "+e._s(e.$L(s.permission==1?"\u8BFB/\u5199":"\u53EA\u8BFB")))])]):t("div",{staticClass:"share-icon no-dark-content"},[t("i",{staticClass:"taskfont"},[e._v("\uE757")])])]:e.isParentShare?[t("UserAvatarTip",{staticClass:"share-avatar",attrs:{userid:s.created_id,size:20}},[s.created_id!=s.userid?t("p",[t("strong",[e._v(e._s(e.$L("\u6210\u5458\u521B\u5EFA\u4E8E"))+": "+e._s(s.created_at))])]):t("p",[e._v(e._s(e.$L("\u6240\u6709\u8005\u521B\u5EFA\u4E8E"))+": "+e._s(s.created_at))])])]:e._e()],2),s._edit?t("div",{staticClass:"file-input"},[t("Input",{ref:"input_"+s.id,refInFor:!0,attrs:{size:"small",disabled:!!s._load,parser:e.onParser},on:{"on-blur":function(a){return e.onBlur(s)},"on-keydown":function(a){return e.onKeydown(a,s)}},model:{value:s.newname,callback:function(a){e.$set(s,"newname",a)},expression:"item.newname"}}),s._load?t("div",{staticClass:"file-load"},[t("Loading")],1):e._e()],1):t("div",{staticClass:"file-name",attrs:{title:s.name}},[e._v(e._s(e.$A.getFileName(s)))])])])}),0),e.dragSelecting?t("div",{staticClass:"file-drag-select",style:e.dragSelectStyle}):e._e()])],e.dialogDrag?t("div",{staticClass:"drag-over",on:{click:function(s){e.dialogDrag=!1}}},[t("div",{staticClass:"drag-text"},[e._v(e._s(e.$L("\u62D6\u52A8\u5230\u8FD9\u91CC\u53D1\u9001")))])]):e._e()],2),t("div",{staticClass:"file-menu",style:e.contextMenuStyles},[t("Dropdown",{attrs:{trigger:"custom",visible:e.contextMenuVisible,"transfer-class-name":"page-file-dropdown-menu",transfer:""},on:{"on-click":e.handleContextClick,"on-clickoutside":e.handleClickContextMenuOutside,"on-visible-change":e.handleVisibleChangeMenu}},[t("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[e.contextMenuItem.id?[t("DropdownItem",{staticClass:"item-open",attrs:{name:"open"}},[e._v(" "+e._s(e.$L("\u6253\u5F00"))+" "),t("div",{staticClass:"open-name"},[e._v("\u201C"+e._s(e.contextMenuItem.name)+"\u201D")])]),e.searchKey?t("DropdownItem",{staticClass:"item-open",attrs:{name:"upperFolder"}},[e._v(" "+e._s(e.$L("\u5728\u4E0A\u5C42\u6587\u4EF6\u5939\u4E2D\u663E\u793A"))+" ")]):e._e(),t("DropdownItem",{attrs:{name:"select"}},[e._v(e._s(e.$L(e.selectedItems.some(function(s){var a=s.id;return a===e.contextMenuItem.id})?"\u53D6\u6D88\u9009\u62E9":"\u9009\u62E9")))]),t("Dropdown",{attrs:{placement:"right-start",transfer:""}},[t("DropdownItem",{attrs:{divided:"",name:"new:"},nativeOn:{click:function(s){s.stopPropagation()}}},[t("div",{staticClass:"arrow-forward-item"},[e._v(e._s(e.$L("\u65B0\u5EFA"))),t("Icon",{attrs:{type:"ios-arrow-forward"}})],1)]),t("DropdownMenu",{staticClass:"page-file-dropdown-menu",attrs:{slot:"list"},slot:"list"},e._l(e.types,function(s,a){return s.label?t("DropdownItem",{key:a,attrs:{divided:!!s.divided,name:`new:${s.value}`}},[t("div",{class:`no-dark-before file-item file-icon ${s.value}`},[e._v(e._s(e.$L(s.label)))])]):e._e()}),1)],1),t("DropdownItem",{attrs:{name:"rename",divided:""}},[e._v(e._s(e.$L("\u91CD\u547D\u540D")))]),t("DropdownItem",{attrs:{name:"copy",disabled:e.contextMenuItem.type=="folder"}},[e._v(e._s(e.$L("\u590D\u5236")))]),t("DropdownItem",{attrs:{name:"shear",disabled:e.contextMenuItem.userid!=e.userId}},[e._v(e._s(e.$L("\u526A\u5207")))]),e.contextMenuItem.userid==e.userId?t("DropdownItem",{attrs:{name:"share",divided:""}},[e._v(e._s(e.$L("\u5171\u4EAB")))]):e.contextMenuItem.share?t("DropdownItem",{attrs:{name:"outshare",divided:""}},[e._v(e._s(e.$L("\u9000\u51FA\u5171\u4EAB")))]):e._e(),t("DropdownItem",{attrs:{name:"favorite",disabled:e.contextMenuItem.type=="folder"}},[e._v(e._s(e.$L(e.contextMenuItem.favorited?"\u53D6\u6D88\u6536\u85CF":"\u6536\u85CF")))]),t("DropdownItem",{attrs:{name:"send",disabled:e.contextMenuItem.type=="folder"}},[e._v(e._s(e.$L("\u53D1\u9001")))]),t("DropdownItem",{attrs:{name:"link",divided:e.contextMenuItem.userid!=e.userId&&!e.contextMenuItem.share,disabled:e.contextMenuItem.type=="folder"}},[e._v(e._s(e.$L("\u94FE\u63A5")))]),t("DropdownItem",{attrs:{name:"download",disabled:e.contextMenuItem.ext==""||e.contextMenuItem.userid!=e.userId&&e.contextMenuItem.permission==0}},[e._v(e._s(e.$L("\u4E0B\u8F7D")))]),e.selectedItems.length>1?t("DropdownItem",{attrs:{name:"downloadzip",disabled:e.contextMenuItem.userid!=e.userId&&e.contextMenuItem.permission==0}},[e._v(e._s(e.$L("\u6253\u5305\u4E0B\u8F7D")))]):e._e(),t("DropdownItem",{staticStyle:{color:"red"},attrs:{name:"delete",divided:"",disabled:e.contextMenuItem.userid!=e.userId&&e.contextMenuItem.created_id!=e.userId}},[e._v(e._s(e.$L("\u5220\u9664")))])]:e._l(e.types,function(s,a){return s.label?t("DropdownItem",{key:a,attrs:{divided:!!s.divided,name:`new:${s.value}`}},[t("div",{class:`no-dark-before file-item file-icon ${s.value}`},[e._v(e._s(e.$L(s.label)))])]):e._e()})],2)],1)],1)]],2),e.uploadShow&&e.uploadList.length>0?t("div",{staticClass:"file-upload-list"},[t("div",{staticClass:"upload-wrap"},[t("div",{staticClass:"title"},[e._v(" "+e._s(e.$L("\u4E0A\u4F20\u5217\u8868"))+" ("+e._s(e.uploadList.length)+") "),e.uploadList.find(function(s){var a=s.status;return a==="finished"})?t("em",{on:{click:e.uploadClear}},[e._v(e._s(e.$L("\u6E05\u7A7A\u5DF2\u5B8C\u6210")))]):e._e()]),t("ul",{staticClass:"content"},e._l(e.uploadList,function(s,a){return a<100?t("li",{key:a,on:{click:function(r){return e.uploadClick(s)}}},[t("AutoTip",{staticClass:"file-name"},[t("span",{domProps:{innerHTML:e._s(e.uploadName(s))}})]),s.status==="finished"&&s.response&&s.response.ret!==1?t("AutoTip",{staticClass:"file-error"},[e._v(e._s(s.response.msg))]):t("Progress",{attrs:{percent:e.uploadPercentageParse(s.percentage),"stroke-width":5}}),t("Icon",{staticClass:"file-close",attrs:{type:"ios-close-circle-outline"},on:{click:function(r){return r.stopPropagation(),e.uploadAbort(s,a)}}})],1):e._e()}),0),t("Icon",{staticClass:"close",attrs:{type:"md-close"},on:{click:function(s){e.uploadShow=!1}}})],1)]):e._e(),e.packShow&&e.packList.length>0?t("div",{staticClass:"file-upload-list"},[t("div",{staticClass:"upload-wrap"},[t("div",{staticClass:"title"},[t("span",[e._v(e._s(e.$L("\u6253\u5305\u5217\u8868"))+"("+e._s(e.packList.length)+")")]),e.packList.find(function(s){var a=s.status;return a==="finished"})?t("em",{on:{click:e.packClear}},[e._v(e._s(e.$L("\u6E05\u7A7A\u5DF2\u5B8C\u6210")))]):e._e()]),t("ul",{staticClass:"content"},e._l(e.packList,function(s,a){return a<100?t("li",{key:a},[t("AutoTip",{staticClass:"file-name"},[s.status!=="finished"?t("span",[e._v(e._s(s.name))]):t("a",{attrs:{href:s.url,target:"_blank"}},[e._v(e._s(s.name))])]),s.status==="finished"&&s.response&&s.response.ret!==1?t("AutoTip",{staticClass:"file-error"},[e._v(e._s(s.response.msg))]):t("Progress",{attrs:{percent:e.packPercentageParse(s.percentage),"stroke-width":5}}),t("Icon",{staticClass:"file-close",attrs:{type:"ios-close-circle-outline"},on:{click:function(r){return e.packList.splice(a,1)}}})],1):e._e()}),0),t("Icon",{staticClass:"close",attrs:{type:"md-close"},on:{click:function(s){e.packShow=!1}}})],1)]):e._e(),t("Upload",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],ref:"fileUpload",attrs:{name:"files",action:e.actionUrl,headers:e.headers,multiple:!0,webkitdirectory:!1,format:e.uploadFormat,accept:e.uploadAccept,"show-upload-list":!1,"max-size":e.maxSize,"on-progress":e.handleProgress,"on-success":e.handleSuccess,"on-error":e.handleError,"on-format-error":e.handleFormatError,"on-exceeded-size":e.handleMaxSize,"before-upload":e.handleBeforeUpload}}),t("Upload",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],ref:"dirUpload",attrs:{name:"files",action:e.actionUrl,headers:e.headers,multiple:!0,webkitdirectory:!0,"max-concurrent-uploads":2,format:e.uploadFormat,accept:e.uploadAccept,"show-upload-list":!1,"max-size":e.maxSize,"on-progress":e.handleProgress,"on-success":e.handleSuccess,"on-error":e.handleError,"on-format-error":e.handleFormatError,"on-exceeded-size":e.handleMaxSize,"before-upload":e.handleBeforeUpload}}),t("Modal",{attrs:{title:e.$L("\u5171\u4EAB\u8BBE\u7F6E"),"mask-closable":!1,"footer-hide":""},model:{value:e.shareShow,callback:function(s){e.shareShow=s},expression:"shareShow"}},[t("Form",{staticClass:"page-file-share-form",attrs:{model:e.shareInfo,inline:""},nativeOn:{submit:function(s){s.preventDefault()}}},[t("FormItem",{staticClass:"share-userid",attrs:{prop:"userids"}},[t("RadioGroup",{model:{value:e.shareInfo.type,callback:function(s){e.$set(e.shareInfo,"type",s)},expression:"shareInfo.type"}},[t("Radio",{attrs:{label:"all"}},[e._v(e._s(e.$L("\u6240\u6709\u4EBA")))]),t("Radio",{attrs:{label:"custom"}},[e._v(e._s(e.$L("\u6307\u5B9A\u6210\u5458")))])],1),e.shareInfo.type==="custom"?t("UserSelect",{attrs:{disabledChoice:e.shareAlready,"multiple-max":100,placeholder:e.$L("\u9009\u62E9\u5171\u4EAB\u6210\u5458"),"avatar-size":24,border:""},model:{value:e.shareInfo.userids,callback:function(s){e.$set(e.shareInfo,"userids",s)},expression:"shareInfo.userids"}}):e._e()],1),t("FormItem",[t("Select",{attrs:{placeholder:e.$L("\u6743\u9650")},model:{value:e.shareInfo.permission,callback:function(s){e.$set(e.shareInfo,"permission",s)},expression:"shareInfo.permission"}},[t("Option",{attrs:{value:1}},[e._v(e._s(e.$L("\u8BFB/\u5199")))]),t("Option",{attrs:{value:0}},[e._v(e._s(e.$L("\u53EA\u8BFB")))])],1)],1),t("FormItem",[t("Button",{attrs:{type:"primary",loading:e.shareLoad>0},on:{click:e.onShare}},[e._v(e._s(e.$L("\u5171\u4EAB")))])],1)],1),e.shareList.length>0?t("div",{staticClass:"page-file-share-items"},[t("div",{staticClass:"page-file-share-title"},[e._v(e._s(e.$L("\u5DF2\u5171\u4EAB\u6210\u5458"))+":")]),t("ul",{staticClass:"page-file-share-list"},e._l(e.shareList,function(s){return t("li",[s.userid==0?t("div",{staticClass:"all-avatar"},[t("EAvatar",{staticClass:"avatar-text",attrs:{icon:"el-icon-s-custom"}}),t("span",{staticClass:"avatar-name"},[e._v(e._s(e.$L("\u6240\u6709\u4EBA")))])],1):t("UserAvatar",{attrs:{size:32,userid:s.userid,showName:""}}),t("Select",{attrs:{placeholder:e.$L("\u6743\u9650")},on:{"on-change":function(a){return e.upShare(s)}},model:{value:s.permission,callback:function(a){e.$set(s,"permission",a)},expression:"item.permission"}},[t("Option",{attrs:{value:1}},[e._v(e._s(e.$L("\u8BFB/\u5199")))]),t("Option",{attrs:{value:0}},[e._v(e._s(e.$L("\u53EA\u8BFB")))]),t("Option",{staticClass:"delete",attrs:{value:-1}},[e._v(e._s(e.$L("\u5220\u9664")))])],1)],1)}),0)]):e._e()],1),t("Forwarder",{ref:"forwarder",attrs:{title:e.$L("\u53D1\u9001\u6587\u4EF6"),"confirm-title":e.$L("\u786E\u8BA4\u53D1\u9001"),"confirm-placeholder":e.$L("\u9644\u8A00"),"multiple-max":50,"before-submit":e.onSendFile,"sender-hidden":""}}),t("Modal",{attrs:{title:e.$L("\u6587\u4EF6\u94FE\u63A5"),"mask-closable":!1},model:{value:e.linkShow,callback:function(s){e.linkShow=s},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:2,readonly:""},on:{"on-focus":e.linkFocus},model:{value:e.linkData.url,callback:function(s){e.$set(e.linkData,"url",s)},expression:"linkData.url"}}),t("div",{staticStyle:{margin:"12px 0"}},[t("Checkbox",{on:{"on-change":e.onGuestAccessChange},model:{value:e.linkData.guest_access,callback:function(s){e.$set(e.linkData,"guest_access",s)},expression:"linkData.guest_access"}},[e._v(" "+e._s(e.$L("\u5141\u8BB8\u6E38\u5BA2\u8BBF\u95EE\u6B64\u94FE\u63A5"))+" ")]),e.linkData.guest_access?t("div",{staticStyle:{color:"#ff9900","margin-top":"6px"}},[t("Icon",{attrs:{type:"ios-warning"}}),e._v(" "+e._s(e.$L("\u8B66\u544A\uFF1A\u4EFB\u4F55\u4EBA\u90FD\u53EF\u901A\u8FC7\u6B64\u94FE\u63A5\u8BBF\u95EE\u6587\u4EF6"))+" ")],1):e._e()],1),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("Poptip",{attrs:{confirm:"",placement:"bottom","ok-text":e.$L("\u786E\u5B9A"),"cancel-text":e.$L("\u53D6\u6D88"),transfer:""},on:{"on-ok":function(s){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("a",{attrs:{href:"javascript:void(0)"}},[e._v(e._s(e.$L("\u5237\u65B0\u94FE\u63A5")))])])],1)],1),t("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[t("Button",{attrs:{type:"default"},on:{click:function(s){e.linkShow=!1}}},[e._v(e._s(e.$L("\u53D6\u6D88")))]),t("Button",{attrs:{type:"primary",loading:e.linkLoad>0},on:{click:e.linkCopy}},[e._v(e._s(e.$L("\u590D\u5236")))])],1)]),t("DrawerOverlay",{attrs:{"class-name":"file-drawer","before-close":e.fileBeforeClose,mask:!0,"mask-closable":!1},model:{value:e.fileShow,callback:function(s){e.fileShow=s},expression:"fileShow"}},[e.isPreview?t("FilePreview",{attrs:{file:e.fileInfo}}):t("FileContent",{ref:"fileContent",attrs:{file:e.fileInfo},model:{value:e.fileShow,callback:function(s){e.fileShow=s},expression:"fileShow"}})],1),t("WebDavManager",{model:{value:e.webDavShow,callback:function(s){e.webDavShow=s},expression:"webDavShow"}}),t("Modal",{attrs:{title:e.$L(e.pasteTitle),"cancel-text":e.$L("\u53D6\u6D88"),"ok-text":e.$L("\u7ACB\u5373\u4E0A\u4F20"),"enter-ok":!0},on:{"on-ok":e.pasteSend},model:{value:e.pasteShow,callback:function(s){e.pasteShow=s},expression:"pasteShow"}},[t("ul",{staticClass:"dialog-wrapper-paste",class:e.pasteWrapperClass},e._l(e.pasteItem,function(s){return t("li",[s.type=="image"?t("img",{attrs:{src:s.result}}):t("div",[e._v(e._s(e.$L("\u6587\u4EF6"))+": "+e._s(s.name)+" ("+e._s(e.$A.bytesToSize(s.size))+")")])])}),0)])],1)},Q=[];const ee=()=>w(()=>import("./FilePreview.2741939d.js"),["js/build/FilePreview.2741939d.js","js/build/openpgp_hi.15f91b1d.js","js/build/IFrame.742911bb.js","js/build/app.ef7047f7.js","js/build/app.239a8ce2.css","js/build/jquery.6e4daff9.js","js/build/@babel.9410f858.js","js/build/dayjs.d20a4841.js","js/build/localforage.743dffdd.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/vuex.cc7cb26e.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),te=()=>w(()=>import("./FileContent.476946a0.js"),["js/build/FileContent.476946a0.js","js/build/FileContent.b41606aa.css","js/build/openpgp_hi.15f91b1d.js","js/build/app.ef7047f7.js","js/build/app.239a8ce2.css","js/build/jquery.6e4daff9.js","js/build/@babel.9410f858.js","js/build/dayjs.d20a4841.js","js/build/localforage.743dffdd.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/vuex.cc7cb26e.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js","js/build/IFrame.742911bb.js"]),u={sort:null,mode:null,board:null},se={components:{WebDavManager:Z,CollaborationFileList:W,Forwarder:F,UserAvatarTip:I,UserSelect:T,FilePreview:ee,DrawerOverlay:C,FileContent:te},directives:{longpress:A},data(){return{webDavShow:!1,packList:[],packShow:!1,loadIng:0,searchKey:"",searchTimeout:null,searchIsFocus:!1,types:[{value:"folder",label:"\u65B0\u5EFA\u6587\u4EF6\u5939",name:"\u6587\u4EF6\u5939"},{value:"upload",label:"\u4E0A\u4F20\u6587\u4EF6",name:null,divided:!0},{value:"updir",label:"\u4E0A\u4F20\u6587\u4EF6\u5939",name:null},{value:"document",label:"\u6587\u672C",name:"\u6587\u672C",divided:!0},{value:"drawio",label:"\u56FE\u8868",name:"\u56FE\u8868"},{value:"mind",label:"\u601D\u7EF4\u5BFC\u56FE",name:"\u5BFC\u56FE"},{value:"word",label:"Word \u6587\u6863",name:"Word",divided:!0},{value:"excel",label:"Excel \u5DE5\u4F5C\u8868",name:"Excel"},{value:"ppt",label:"PPT \u6F14\u793A\u6587\u7A3F",name:"PPT"}],tableMode:"",board:"mine",sharedSrc:"all",columns:[],shareShow:!1,shareInfo:{id:0,type:"all",userid:0,permission:1},shareList:[],shareLoad:0,sendFileId:0,linkShow:!1,linkData:{guest_access:!1},linkLoad:0,fileShow:!1,fileInfo:{permission:-1},uploadDir:!1,uploadIng:0,uploadShow:!1,uploadList:[],uploadFormat:[],uploadAccept:"",uploadCover:!1,contextMenuItem:{},contextMenuVisible:!1,contextMenuStyles:{top:0,left:0},shearIds:[],selectedItems:[],dialogDrag:!1,pasteShow:!1,pasteFile:[],pasteItem:[],dragSelecting:!1,dragSelectStart:null,dragSelectRect:null,dragSelectStyle:{},dragSelectBase:[],dragSelectPreserve:!1,dragSelectContainerSize:null,dragSelectPointerId:null,dragSelectMoved:!1,dragSelectPreventClick:!1,thumbnailErrorMap:{}}},async beforeRouteEnter(e,i,t){u.sort=await $A.IDBJson("cacheFileSort"),u.mode=await $A.IDBString("fileTableMode"),u.board=["mine","shared"].includes(e.query.board)?e.query.board:await $A.IDBString("fileBoard"),t()},created(){this.tableMode=u.mode,this.board=["mine","shared","collaboration"].includes(u.board)?u.board:"mine",this.columns=[{type:"selection",width:50,align:"right"},{title:this.$L("\u6587\u4EF6\u540D"),key:"name",minWidth:300,sortable:!0,render:(e,{row:i})=>{let t=[];if(!/^\d+$/.test(i.id))return t.push(e("Input",{props:{elementId:"input_"+i.id,value:i.newname,autofocus:!0,disabled:!!i._load,parser:this.onParser},style:{width:"auto"},on:{"on-change":a=>{i.newname=a.target.value},"on-blur":()=>{const a=this.fileLists.find(({id:r})=>r==i.id);a&&(a.newname=i.newname,this.onBlur(a))},"on-enter":()=>{const a=this.fileLists.find(({id:r})=>r==i.id);a&&(a.newname=i.newname,this.onEnter(a))}}})),e("div",{class:"file-nbox"},[e("div",{class:`no-dark-before file-name file-icon ${i.type}`},t)]);{t.push(e("QuickEdit",{props:{value:i.name,autoEdit:!!i._edit,clickOutSide:!1,parser:this.onParser,attrTitle:i.name},on:{"on-edit-change":l=>{const n=this.fileLists.find(({id:c})=>c==i.id);n&&setTimeout(()=>{this.setEdit(n.id,l)},100)},"on-update":(l,n)=>{const c=this.fileLists.find(({id:d})=>d==i.id);c&&c._edit===!0&&(c.newname=l,this.onEnter(c)),n()}}},$A.getFileName(i)));const a=[];i.share?i.userid!=this.userId?a.push(e("UserAvatar",{props:{userid:i.userid,size:20}})):a.push(e("i",{class:"taskfont",domProps:{innerHTML:""}})):this.isParentShare&&a.push(e("UserAvatar",{props:{userid:i.created_id,size:20}},[i.created_id!=i.userid?e("p",[e("strong",this.$L("\u6210\u5458\u521B\u5EFA\u4E8E")+": "+i.created_at)]):e("p",this.$L("\u6240\u6709\u8005\u521B\u5EFA\u4E8E")+": "+i.created_at)]));const r=this.shearIds.includes(i.id)?" shear":"",o=i.share?" share":"";return e("div",{class:`file-nbox${r}`,attrs:{"data-id":i.id}},[e("div",{class:`no-dark-before file-name file-icon ${i.type}${o}`},t),a])}}},{title:this.$L("\u5927\u5C0F"),key:"size",width:110,resizable:!0,sortable:!0,render:(e,{row:i})=>i.type=="folder"?e("div","-"):e("AutoTip",$A.bytesToSize(i.size))},{title:this.$L("\u7C7B\u578B"),key:"type",width:110,resizable:!0,sortable:!0,render:(e,{row:i})=>{let t=this.types.find(({value:s,name:a})=>s==i.type&&a);return t?e("AutoTip",this.$L(t.name)):e("div",(i.ext||i.type).toUpperCase())}},{title:this.$L("\u6240\u6709\u8005"),key:"userid",width:130,resizable:!0,sortable:!0,render:(e,{row:i})=>e("UserAvatar",{props:{size:18,userid:i.userid,showIcon:!1,showName:!0}})},{title:this.$L("\u6700\u540E\u4FEE\u6539"),key:"updated_at",width:168,resizable:!0,sortable:!0}].map(e=>(u.sort&&e.key===u.sort.key&&(e.sortType=u.sort.order),e))},mounted(){this.uploadAccept=this.uploadFormat.map(e=>"."+e).join(",")},activated(){["mine","shared"].includes(this.$route.query.board)&&(this.board=this.$route.query.board),this.getFileList()},deactivated(){this.cancelDragSelection()},beforeDestroy(){this.cancelDragSelection()},computed:{...k(["systemConfig","userIsAdmin","userInfo","fileLists","wsOpenNum","windowWidth","filePackLists","fileShakeId","longpressData"]),pid(){const{folderId:e}=this.$route.params;return parseInt(/^\d+$/.test(e)?e:0)},fid(){const{fileId:e}=this.$route.params;return parseInt(/^\d+$/.test(e)?e:0)},actionUrl(){return $A.apiUrl("file/content/upload?pid="+this.pid+"&cover="+(this.uploadCover?1:0))},headers(){return{fd:$A.getSessionStorageString("userWsFd"),token:this.userToken}},shareAlready(){let e=this.shareList?this.shareList.map(({userid:i})=>i):[];return this.shareInfo.userid&&e.push(this.shareInfo.userid),e},fileList(){const{fileLists:e,searchKey:i,board:t,sharedSrc:s,pid:a,selectedItems:r,userId:o}=this;return $A.cloneJSON(L.exports.sortBy(e.filter(n=>{if(i)return n.name.indexOf(i)!==-1;if(n.pid!=a)return!1;if(a==0){if(t==="mine")return n.userid==o;if(n.userid==o&&!n.share)return!1;if(s==="byme")return n.userid==o;if(s==="tome")return n.userid!=o}return!0}),n=>(n.type=="folder"?"a":"b")+n.name)).map(n=>(n._checked=r.some(({id:c})=>c===n.id),n._thumbnail=this.createBlockThumbnail(n),n._thumbnail?n._thumbError=!!this.thumbnailErrorMap[n.id]:(this.thumbnailErrorMap[n.id]&&this.$delete(this.thumbnailErrorMap,n.id),n._thumbError=void 0),n))},shearFirst(){const{fileLists:e,shearIds:i}=this;return i.length===0?null:e.find(t=>t.id==i[0])},showNavigator(){return this.pid>0||!!this.searchKey||this.selectedItems.length>0||!!this.shearFirst},navigator(){let{pid:e,fileLists:i}=this,t=[];for(;e>0;){let s=i.find(({id:a,permission:r})=>a==e&&r>-1);s?(t.unshift(s),e=s.pid):e=0}return t},isPreview(){return this.windowPortrait&&this.fileInfo.type!="document"||this.fileInfo.permission===0},isParentShare(){const{navigator:e}=this;return!!e.find(({share:i})=>i)},pasteTitle(){const{pasteItem:e}=this;let i=e.find(({type:s})=>s=="image"),t=e.find(({type:s})=>s!="image");return i&&t?"\u4E0A\u4F20\u6587\u4EF6/\u56FE\u7247":i?"\u4E0A\u4F20\u56FE\u7247":"\u4E0A\u4F20\u6587\u4EF6"},pasteWrapperClass(){return this.pasteItem.find(({type:e})=>e!=="image")?["multiple"]:[]},tableHeight(){return this.windowHeight-150},showDownloadZipButton(){return this.selectedItems.length>1||this.selectedItems.some(({type:e})=>e==="folder")},compressedSownloadDisabled(){var e;return!!((e=this.fileList)!=null&&e.find(i=>i._checked&&i.permission<1))},batchDeleteDisabled(){var e;return!!((e=this.fileList)!=null&&e.find(i=>i._checked&&i.userid!=this.userId&&i.created_id!=this.userId))},maxSize(){var e;return(e=this.systemConfig)!=null&&e.file_upload_limit?this.systemConfig.file_upload_limit*1024:1024e3},showBtnText(){return this.windowWidth>600}},watch:{pid(){this.searchKey="",this.selectedItems=[],this.getFileList()},fid(){this.openFileJudge()},tableMode(e){$A.IDBSave("fileTableMode",e),e==="table"&&this.cancelDragSelection()},board(e){$A.IDBSave("fileBoard",e)},fileShow(e){e||(this.browseFile(0),$A.eeuiAppKeyboardHide())},navigator:{handler(){this.$nextTick(e=>{this.$refs[`nav_${this.pid}`]&&$A.scrollToView(this.$refs[`nav_${this.pid}`][0],!1)})},immediate:!0},selectedItems:{handler(e){e.length>0&&(this.shearIds=[])},deep:!0},shearIds:{handler(e){e.length>0&&(this.selectedItems=[])},deep:!0},wsOpenNum(e){e<=1||(this.wsOpenTimeout&&clearTimeout(this.wsOpenTimeout),this.wsOpenTimeout=setTimeout(()=>{this.routeName=="manage-file"&&this.getFileList()},5e3))},filePackLists:{handler(){this.updatePackProgress()},deep:!0},fileShakeId(e){e&&this.shakeFile(e)}},methods:{fileBlockIconClasses(e){const i=["no-dark-before","file-icon"];return e&&e.type?i.push(e.type):i.push("file"),e&&e.share&&i.push("share"),e&&e._thumbnail&&!e._thumbError&&i.push("has-thumb"),i},createBlockThumbnail(e){if(!e||e.type==="folder"||!e.image_url||!y(e))return null;const i=80,t=Number(e.image_width||e.width),s=Number(e.image_height||e.height);if(!(Number.isFinite(t)&&t>0&&Number.isFinite(s)&&s>0))return{src:e.image_url,width:null,height:null};const r=Math.max(Math.round(i*3),i),o=$A.imageRatioHandle({src:e.image_url,width:t,height:s,crops:{ratio:1,percentage:`${r}x0`},scaleSize:i})||{};return{src:o.src||e.image_url,width:o.width||Math.min(t,i),height:o.height||Math.min(s,i)}},handleThumbError(e){!e||(this.$set(this.thumbnailErrorMap,e.id,!0),this.$set(e,"_thumbError",!0))},handleThumbLoad(e){!e||(this.thumbnailErrorMap[e.id]&&this.$delete(this.thumbnailErrorMap,e.id),this.$set(e,"_thumbError",!1))},getFileList(){var e;if(this.routeName==="manage-file"){if(this.board==="collaboration"){(e=this.$refs.collaborationFiles)==null||e.refresh();return}this.loadIng++,this.$store.dispatch("getFiles",{pid:this.pid,scope:this.board}).then(async()=>{this.loadIng--,this.openFileJudge(),this.shakeFile(this.$route.params.shakeId),await $A.IDBSet("fileFolderId",this.pid)}).catch(({msg:i})=>{this.loadIng--,$A.modalError({content:i,onOk:()=>{this.browseFolder(0)}})})}},addFile(e){if(e){if(e=="upload"){this.uploadDir=!1,this.$refs.fileUpload.handleClick();return}else if(e=="updir"){this.uploadDir=!0,this.$refs.dirUpload.handleClick();return}}else return;let i=$A.randomString(8);this.fileLists.push({_edit:!0,pid:this.pid,id:i,type:e,name:"",userid:this.userId,newname:this.$L("\u672A\u547D\u540D")}),this.autoBlur(i)},handleLongpress(e){const{type:i,data:t}=this.longpressData;if(this.$store.commit("longpress/clear"),i!=="file"){!this.windowTouch&&this.handleRightClick(e,null);return}const s=this.fileList.find(a=>a.id==t.fileId);if(!s){!this.windowTouch&&this.handleRightClick(e,null);return}this.handleRightClick(e,s)},handleOperation({currentTarget:e}){this.$store.commit("longpress/set",{type:"file",data:{fileId:$A.getAttr(e,"data-id")},element:e})},onFileListPointerDown(e){if(this.windowTouch||this.tableMode==="table"||!(e.button===0||e.pointerType==="touch"))return;const t=this.$refs.blockFileList;if(!t)return;let s=e.target,a=!1;for(;s&&s!==t;){if(s.classList&&(s.classList.contains("file-menu")||s.classList.contains("file-check")||s.tagName==="INPUT"||s.tagName==="BUTTON"))return;if(s.classList&&s.classList.contains("file-item")){a=!0;break}s=s.parentNode}if(a)return;this.dragSelectMoved=!1,this.dragSelectPreventClick=!1,this.contextMenuVisible&&this.handleClickContextMenuOutside();const r=t.getBoundingClientRect(),o=t.scrollLeft,l=t.scrollTop,n={x:e.clientX-r.left+o,y:e.clientY-r.top+l};if(this.dragSelecting=this.windowLandscape,this.dragSelectStart=n,this.dragSelectRect={left:n.x,top:n.y,width:0,height:0},this.setDragSelectStyle(this.dragSelectRect),this.dragSelectContainerSize={width:t.scrollWidth,height:t.scrollHeight},this.dragSelectPreserve=e.ctrlKey||e.metaKey,this.dragSelectBase=this.dragSelectPreserve?this.selectedItems.map(c=>({...c})):[],!this.dragSelectPreserve&&this.selectedItems.length>0&&(this.selectedItems=[]),e.pointerId!==void 0)try{t.setPointerCapture(e.pointerId),this.dragSelectPointerId=e.pointerId}catch{}e.preventDefault()},onFileListPointerMove(e){if(this.windowTouch||!this.dragSelecting||!this.dragSelectStart)return;e.preventDefault();const i=this.$refs.blockFileList;if(!i)return;const t=i.getBoundingClientRect(),s=i.scrollLeft,a=i.scrollTop,r=this.dragSelectContainerSize||{width:i.scrollWidth,height:i.scrollHeight},o=Math.min(Math.max(e.clientX-t.left+s,0),r.width),l=Math.min(Math.max(e.clientY-t.top+a,0),r.height),n=this.dragSelectStart,c=Math.min(n.x,o),d=Math.min(n.y,l),p=Math.abs(n.x-o),f=Math.abs(n.y-l),h={left:c,top:d,width:p,height:f};this.dragSelectRect=h,this.setDragSelectStyle(h),!this.dragSelectMoved&&(p>3||f>3)&&(this.dragSelectMoved=!0),this.updateDragSelection(h)},onFileListPointerUp(){if(this.windowTouch)return;this.dragSelecting&&this.dragSelectRect&&this.updateDragSelection(this.dragSelectRect);const e=this.dragSelectMoved;this.cancelDragSelection(),e&&(this.dragSelectPreventClick=!0,setTimeout(()=>{this.dragSelectPreventClick=!1},0))},onFileListPointerLeave(e){this.windowTouch||!this.dragSelecting||e.pointerId!==void 0&&this.dragSelectPointerId!==e.pointerId||this.onFileListPointerUp()},onFileListScroll(){this.contextMenuVisible=!1},updateDragSelection(e){const i=this.$refs.blockFileList;if(!i||!e)return;const t=i.getBoundingClientRect(),s=i.scrollLeft,a=i.scrollTop,r={left:e.left,top:e.top,right:e.left+e.width,bottom:e.top+e.height},o=new Map(this.fileList.map(c=>[String(c.id),c])),l=[],n=new Set;this.dragSelectBase.forEach(c=>{const d=String(c.id);n.has(d)||(n.add(d),l.push(c))}),Array.from(i.querySelectorAll(".file-item")).forEach(c=>{const d=c.dataset&&c.dataset.id||c.getAttribute("data-id");if(!d||n.has(String(d)))return;const p=c.getBoundingClientRect(),f={left:p.left-t.left+s,top:p.top-t.top+a,right:p.right-t.left+s,bottom:p.bottom-t.top+a};if(!this.rectsIntersect(f,r))return;const h=o.get(String(d));!h||(n.add(String(d)),l.push({id:h.id,name:h.name,type:h.type,size:h.size}))}),this.selectedItems=l},setDragSelectStyle(e){if(!e){this.dragSelectStyle={};return}this.dragSelectStyle={left:`${e.left}px`,top:`${e.top}px`,width:`${e.width}px`,height:`${e.height}px`}},rectsIntersect(e,i){return!e||!i?!1:!(e.righti.right||e.bottomi.bottom)},cancelDragSelection(){this.dragSelecting=!1,this.dragSelectStart=null,this.dragSelectRect=null,this.dragSelectStyle={},this.dragSelectBase=[],this.dragSelectPreserve=!1,this.dragSelectContainerSize=null;const e=this.$refs.blockFileList;if(e&&this.dragSelectPointerId!==null&&e.hasPointerCapture&&e.hasPointerCapture(this.dragSelectPointerId))try{e.releasePointerCapture(this.dragSelectPointerId)}catch{}this.dragSelectPointerId=null,this.dragSelectMoved=!1,this.dragSelectPreventClick=!1},handleContextmenu(e){this.windowLandscape&&this.handleRightClick(e)},handleRightClick(e,i,t){this.contextMenuItem=$A.isJson(i)?i:{},this.contextMenuItem.id&&this.contextMenuItem.type!=="folder"&&this.checkSingleFileFavoriteStatus(this.contextMenuItem),this.contextMenuVisible&&this.handleClickContextMenuOutside(),this.$nextTick(()=>{const a=this.$refs.fileWrapper.getBoundingClientRect();this.contextMenuStyles={left:`${e.clientX-a.left}px`,top:`${e.clientY-a.top}px`},t===!0&&(this.contextMenuStyles.top=`${e.target.clientHeight+e.target.offsetTop-5}px`),this.contextMenuVisible=!0})},switchBoard(e){this.board!==e&&(this.board=e,this.sharedSrc="all",this.selectedItems=[],this.contextMenuVisible=!1,this.clearShear(),this.pid>0?this.browseFolder(0):this.getFileList())},browseFolder(e,i=null){if(this.pid==e&&this.fid==0&&i){this.shakeFile(i);return}e>0?this.goForward({name:"manage-file",params:{folderId:e,fileId:null,shakeId:i}}):(this.searchKey="",this.goForward({name:"manage-file",params:{folderId:null,fileId:null,shakeId:i}}))},browseFile(e){e>0?this.goForward({name:"manage-file",params:{folderId:this.pid,fileId:e}}):this.browseFolder(this.pid)},openFileJudge(){if(this.routeName!=="manage-file"){this.fileShow=!1;return}if(this.fid<=0){this.fileShow=!1;return}const e=this.fileList.find(({id:i})=>i===this.fid);if(!e){this.fileShow=!1;return}if(this.$Electron||this.$isEEUIApp){this.openFileSingle(e);return}this.fileInfo=e,this.fileShow=!0},openFileSingle(e){const i=`/single/file/${e.id}`;this.$Electron?this.$store.dispatch("openWindow",{name:`file-${e.id}`,path:i,title:$A.getFileName(e),titleFixed:!0}):this.$isEEUIApp?this.$store.dispatch("openAppChildPage",{pageType:"app",pageTitle:$A.getFileName(e),url:"web.js",params:{titleFixed:!0,url:$A.urlReplaceHash(i)}}):window.open($A.mainUrl(i.substring(1))),this.browseFile(0)},clickRow(e,i){if(this.contextMenuVisible){this.handleClickContextMenuOutside();return}i.type=="selection"?this.dropFile(e,"select"):this.dropFile(e,"open")},handleContextMenu(e,i){this.handleRightClick(i,this.fileLists.find(({id:t})=>t===e.id)||{})},handleContextClick(e){$A.leftExists(e,"new:")?this.addFile($A.leftDelete(e,"new:")):this.dropFile(this.contextMenuItem,e)},handleClickContextMenuOutside(){this.contextMenuVisible=!1},handleVisibleChangeMenu(e){let i=this.fileLists.find(({_highlight:t})=>!!t);i&&this.$set(i,"_highlight",!1),e&&this.contextMenuItem.id&&this.$set(this.contextMenuItem,"_highlight",!0)},dropFile(e,i){if(!(this.dragSelectPreventClick&&["open","openCheckMenu","select"].includes(i)))switch(i){case"open":case"openCheckMenu":if(i==="openCheckMenu"&&this.contextMenuVisible||this.fileList.findIndex(s=>s._edit===!0)>-1||e._load)return;if(e.type=="folder"){this.browseFolder(e.id);return}if(e.image_url){const s=this.fileList.filter(({image_url:a})=>!!a);if(s.length>0){const a=s.findIndex(({id:o})=>e.id===o),r=s.map(o=>o.image_width?{src:o.image_url,width:o.image_width,height:o.image_height}:o.image_url);this.$store.dispatch("previewImage",{index:a,list:r});return}}this.browseFile(e.id);break;case"upperFolder":this.searchKey="",this.browseFolder(e.pid,e.id);break;case"select":let t=this.selectedItems.findIndex(({id:s})=>s==e.id);t>-1?this.selectedItems.splice(t,1):this.selectedItems.push({id:e.id,name:e.name,type:e.type,size:e.size});break;case"rename":this.setEdit(e.id,!0),this.autoBlur(e.id);break;case"copy":this.$store.dispatch("call",{url:"file/copy",data:{id:e.id}}).then(({data:s,msg:a})=>{$A.messageSuccess(a),this.$store.dispatch("saveFile",s)}).catch(({msg:s})=>{$A.modalError(s)});break;case"shear":this.shearIds=[e.id];break;case"shearSelect":this.shearIds=$A.cloneJSON(this.selectedItems.map(({id:s})=>s));break;case"send":this.sendFileId=e.id,this.$refs.forwarder.onSelection();break;case"favorite":this.toggleFileFavorite(e);break;case"share":this.shareInfo={id:e.id,type:"all",userid:e.userid,permission:1},this.shareList=[],this.shareShow=!0,this.getShare();break;case"outshare":$A.modalConfirm({content:"\u4F60\u786E\u5B9A\u8981\u9000\u51FA\u3010"+e.name+"\u3011\u5171\u4EAB\u6210\u5458\u5417\uFF1F",loading:!0,onOk:()=>new Promise((s,a)=>{this.$store.dispatch("call",{url:"file/share/out",data:{id:e.id}}).then(({msg:r})=>{s(r),this.$store.dispatch("forgetFile",e)}).catch(({msg:r})=>{a(r)})})});break;case"link":this.linkData={id:e.id,name:e.name,guest_access:Boolean(e.guest_access)},this.linkShow=!0,this.linkGet();break;case"download":if(!e.ext)return;$A.modalConfirm({language:!1,title:this.$L("\u4E0B\u8F7D\u6587\u4EF6"),okText:this.$L("\u7ACB\u5373\u4E0B\u8F7D"),content:`${e.name}.${e.ext} (${$A.bytesToSize(e.size)})`,onOk:()=>{this.$store.dispatch("downUrl",$A.apiUrl(`file/content?id=${e.id}&down=yes`))}});break;case"downloadzip":this.downloadZipFile([e.id]);break;case"delete":this.deleteFile([e.id]);break}},onSendFile({dialogids:e,userids:i,message:t}){return new Promise((s,a)=>{this.$store.dispatch("call",{url:"dialog/msg/sendfileid",data:{dialogids:e,userids:i,leave_message:t,file_id:this.sendFileId}}).then(({data:r,msg:o})=>{this.$store.dispatch("saveDialogMsg",r.msgs),this.$store.dispatch("updateDialogLastMsg",r.msgs),$A.messageSuccess(o),s()}).catch(({msg:r})=>{$A.modalError(r),a()})})},linkGet(e){this.linkLoad++;const{id:i,name:t}=this.linkData,s=this.linkData.guest_access;this.$store.dispatch("call",{url:"file/link",data:{id:this.linkData.id,refresh:e===!0?"yes":"no",guest_access:this.linkData.guest_access?"yes":"no"}}).then(({data:a})=>{const r=a.guest_access!==void 0?Boolean(a.guest_access):s;this.linkData=Object.assign({},a,{id:i,name:t,guest_access:r}),this.$store.dispatch("saveFile",{id:i,guest_access:r?1:0}),this.fileInfo&&this.fileInfo.id===i&&this.$set(this.fileInfo,"guest_access",r?1:0),e===!0?this.linkCopy():e===!1?$A.messageSuccess("\u4FEE\u6539\u6210\u529F"):this.linkCopy()}).catch(({msg:a})=>{this.linkShow=!1,$A.modalError(a)}).finally(a=>{this.linkLoad--})},onGuestAccessChange(e){this.linkData.url&&this.linkGet(!1)},linkCopy(){!this.linkData.url||(this.linkFocus(),this.copyText(this.linkData.url))},linkFocus(){this.$nextTick(e=>{this.$refs.linkInput.focus({cursor:"all"})})},shearTo(){if(this.shearIds.length!=0){if(this.isParentShare){const e=this.fileLists.find(({id:i,share:t})=>t&&this.shearIds.includes(i));if(e){$A.modalError(`${e.name} \u5F53\u524D\u6B63\u5728\u5171\u4EAB\uFF0C\u65E0\u6CD5\u79FB\u52A8\u5230\u53E6\u4E00\u4E2A\u5171\u4EAB\u6587\u4EF6\u5939\u5185`);return}}this.$store.dispatch("call",{url:"file/move",data:{ids:this.shearIds,pid:this.pid}}).then(({data:e,msg:i})=>{$A.messageSuccess(i),this.shearIds=[],this.$store.dispatch("saveFile",e)}).catch(({msg:e})=>{$A.modalError(e)})}},deleteFile(e){if(e.length===0)return;const i=this.fileLists.find(r=>r.id==e[0])||{};let s=!e.find(r=>this.fileLists.find(o=>o.type!="folder"&&o.id==r))?"\u6587\u4EF6\u5939":"\u6587\u4EF6",a=`\u3010${i.name}\u3011\u7B49${e.length}\u4E2A${s}`;e.length===1&&(a=`\u3010${i.name}\u3011${s}`),$A.modalConfirm({title:"\u5220\u9664"+s,content:"\u4F60\u786E\u5B9A\u8981\u5220\u9664"+a+"\u5417\uFF1F",loading:!0,onOk:()=>new Promise((r,o)=>{this.$store.dispatch("call",{url:"file/remove",data:{ids:e}}).then(({msg:l})=>{r(l),this.$store.dispatch("forgetFile",{id:e}),this.selectedItems=this.selectedItems.filter(({id:n})=>!e.includes(n))}).catch(({msg:l})=>{o(l)})})})},packPercentageParse(e){return parseInt(e,10)},packClear(){this.packList=this.packList.filter(e=>e.status!=="finished"),this.packShow=!1},async startPack(e){this.packList.push(Object.assign(e,{status:"packing",percentage:0})),this.uploadShow=!1,this.packShow=!0},updatePackProgress(){this.packList.forEach(e=>{const i=this.filePackLists.find(({name:t})=>t==e.name);if(i){if(typeof e.percentage=="number"&&e.percentage>=100)return;e.percentage=Math.max(1,i.progress),e.percentage>=100&&(e.status="finished")}})},downloadZipFile(e){if(e.length===0)return;const i=this.fileLists.find(({id:r})=>r===e[0])||{},s=!e.some(r=>this.fileLists.some(({type:o,id:l})=>o!=="folder"&&l===r))?"\u6587\u4EF6\u5939":"\u6587\u4EF6",a=e.length===1?`\u3010${i.name}\u3011${s}`:`\u3010${i.name}\u3011\u7B49${e.length}\u4E2A${s}`;$A.modalConfirm({title:"\u6253\u5305\u4E0B\u8F7D",content:`\u4F60\u786E\u5B9A\u8981\u6253\u5305\u4E0B\u8F7D${a}\u5417\uFF1F`,okText:"\u786E\u5B9A",onOk:()=>{if(this.packList.find(({status:o})=>o==="packing")){$A.messageWarning("\u8BF7\u7B49\u5F85\u6253\u5305\u5B8C\u6210");return}const r=this.$L("\u6253\u5305\u4E0B\u8F7D(*)",a);this.$store.dispatch("call",{url:"file/download/pack",data:{ids:e,name:r}}).then(({data:o})=>{this.startPack(o)}).catch(({msg:o})=>{$A.modalError(o)})}})},autoBlur(e){this.$nextTick(()=>{if(this.$refs["input_"+e])this.$refs["input_"+e][0].focus({cursor:"all"});else if(document.getElementById("input_"+e)){const i=document.getElementById("input_"+e),t=i.value.length;i.focus(),i.setSelectionRange(0,t)}})},onParser(e){return e.replace(/[\\\/:*?\"<>|]/g,"")},onBlur(e){this.fileLists.find(({id:i,_edit:t})=>i==e.id&&!t)||this.onEnter(e)},onKeydown(e,i){e.keyCode===13?this.$nextTick(()=>this.onEnter(i)):e.keyCode===27&&(!/^\d+$/.test(i.id)?(i.newname="",this.$store.dispatch("forgetFile",i)):(this.setLoad(i.id,!1),this.setEdit(i.id,!1)))},onEnter(e){const i=!/^\d+$/.test(e.id);if(!e.newname){i?this.$store.dispatch("forgetFile",e):this.setEdit(e.id,!1);return}if(e.newname==e.name){this.setEdit(e.id,!1);return}e._load||(this.setLoad(e.id,!0),this.$store.dispatch("call",{url:"file/add",data:{id:i?0:e.id,pid:e.pid,name:e.newname,type:e.type},spinner:2e3}).then(({data:t,msg:s})=>{$A.messageSuccess(s),this.setLoad(e.id,!1),this.setEdit(e.id,!1),this.$store.dispatch("saveFile",t),i&&(this.$store.dispatch("forgetFile",e),this.shakeFile(t.id))}).catch(({msg:t})=>{$A.modalError(t),this.setLoad(e.id,!1),i&&this.$store.dispatch("forgetFile",e)}))},setEdit(e,i){const t=this.$store.state.fileLists.find(({id:s})=>s==e);t&&(this.$set(t,"_edit",i),i&&this.$set(t,"newname",t.name))},setLoad(e,i){const t=this.$store.state.fileLists.find(({id:s})=>s==e);t&&this.$set(t,"_load",i)},onSearchFocus(){this.searchIsFocus||this.$nextTick(()=>{this.$refs.searchInput.focus({cursor:"end"})})},onSearchChange(){this.board!=="collaboration"&&(this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchKey.trim()!=""&&(this.searchTimeout=setTimeout(()=>{this.loadIng++,this.$store.dispatch("searchFiles",this.searchKey.trim()).then(()=>{this.loadIng--}).catch(()=>{this.loadIng--})},600)))},getShare(){this.shareLoad++,this.$store.dispatch("call",{url:"file/share",data:{id:this.shareInfo.id}}).then(({data:e})=>{e.id==this.shareInfo.id&&(this.shareList=e.list.map(i=>(i._permission=i.permission,i)))}).catch(({msg:e})=>{this.shareShow=!1,$A.modalError(e)}).finally(e=>{this.shareLoad--})},onShare(e=!1){if(this.shareInfo.type==="all"&&(this.shareInfo.userids=[0]),this.shareInfo.userids.length==0){$A.messageWarning("\u8BF7\u9009\u62E9\u5171\u4EAB\u6210\u5458");return}this.shareLoad++,this.$store.dispatch("call",{url:"file/share/update",data:Object.assign(this.shareInfo,{force:e===!0?1:0})}).then(({data:i,msg:t})=>{$A.messageSuccess(t),this.$store.dispatch("saveFile",i),this.$set(this.shareInfo,"userids",[]),this.getShare()}).catch(({ret:i,msg:t})=>{i===-3001?$A.modalConfirm({content:"\u6B64\u6587\u4EF6\u5939\u5185\u5DF2\u6709\u5171\u4EAB\u6587\u4EF6\u5939\uFF0C\u5B50\u6587\u4EF6\u7684\u5171\u4EAB\u72B6\u6001\u5C06\u88AB\u53D6\u6D88\uFF0C\u662F\u5426\u7EE7\u7EED\uFF1F",onOk:()=>{this.onShare(!0)}}):$A.modalError(t)}).finally(i=>{this.shareLoad--})},upShare(e,i=!1){e.loading!==!0&&(e.loading=!0,this.$store.dispatch("call",{url:"file/share/update",data:{id:this.shareInfo.id,userids:[e.userid],permission:e.permission,force:i===!0?1:0}}).then(({data:t,msg:s})=>{if(e.loading=!1,e._permission=e.permission,$A.messageSuccess(s),this.$store.dispatch("saveFile",t),e.permission===-1){let a=this.shareList.findIndex(({userid:r})=>r==e.userid);a>-1&&this.shareList.splice(a,1)}}).catch(({ret:t,msg:s})=>{e.loading=!1,t===-3001?$A.modalConfirm({content:"\u6B64\u6587\u4EF6\u5939\u5185\u5DF2\u6709\u5171\u4EAB\u6587\u4EF6\u5939\uFF0C\u5B50\u6587\u4EF6\u7684\u5171\u4EAB\u72B6\u6001\u5C06\u88AB\u53D6\u6D88\uFF0C\u662F\u5426\u7EE7\u7EED\uFF1F",onOk:()=>{this.upShare(e,!0)},onCancel:()=>{e.permission=e._permission}}):(e.permission=e._permission,$A.modalError(s))}))},uploadData(e){const i=$A.getObject(e,"response.data");if($A.isArray(i))return i[0];if($A.isJson(i))return i},uploadName(e){const i=this.uploadData(e);if(!i)return e.name;const t=i.full_name||e.name;return i.overwrite?`[${this.$L("\u66FF\u6362")}] ${t}`:t},uploadClick(e){const i=this.uploadData(e);!i||this.browseFolder(i.pid,i.id)},handleTableSort({key:e,order:i}){$A.IDBSave("cacheFileSort",["asc","desc"].includes(i)?{key:e,order:i}:{})},handleTableSelect(e){this.selectedItems=e.map(i=>({id:i.id,name:i.name,type:i.type,size:i.size}))},clearSelect(){this.selectedItems=[]},clearShear(){this.shearIds=[]},shakeFile(e){!e||this.$nextTick(i=>{const t=$A(this.$el).find(`[data-id="${e}"]`);t.length>0&&$A.scrollIntoAndShake(t[0])})},pasteDragNext(e,i){let t=i==="drag"?e.dataTransfer.files:e.clipboardData.files;t=Array.prototype.slice.call(t),t.length>0&&(e.preventDefault(),this.pasteFile=[],this.pasteItem=[],t.some(s=>{const a={type:$A.getMiddle(s.type,null,"/"),name:s.name,size:s.size,result:null};if(a.type==="image"){const r=new FileReader;r.readAsDataURL(s),r.onload=({target:o})=>{a.result=o.result,this.pasteFile.push(s),this.pasteItem.push(a),this.pasteShow=!0}}else this.pasteFile.push(s),this.pasteItem.push(a),this.pasteShow=!0}))},filePasteDrag(e,i){if(this.dialogDrag=!1,$A.dataHasFolder(i==="drag"?e.dataTransfer:e.clipboardData)){e.preventDefault(),$A.modalWarning(`\u6682\u4E0D\u652F\u6301${i==="drag"?"\u62D6\u62FD":"\u7C98\u8D34"}\u6587\u4EF6\u5939\uFF0C\u8BF7\u624B\u52A8\u4E0A\u4F20\u6587\u4EF6\u5939\u3002`);return}this.pasteDragNext(e,i)},fileDragOver(e,i){let t=this.__dialogDrag=$A.randomString(8);if(!e)setTimeout(()=>{t===this.__dialogDrag&&(this.dialogDrag=e)},150);else{if(i.dataTransfer.effectAllowed==="move")return;this.dialogDrag=!0}},pasteSend(){if(this.__paste_send_index)return;this.__paste_send_index=1,setTimeout(()=>{this.__paste_send_index=0},300);const e=[];this.pasteFile.some(i=>{e.find(t=>t===i.name)||(e.push(i.name),this.$refs.fileUpload.upload(i))})},fileBeforeClose(){return new Promise(e=>{if(!this.$refs.fileContent){e();return}if(this.$refs.fileContent.equalContent){e();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:()=>{e()}})})},uploadUpdate(e){e.forEach(i=>{let t=this.uploadList.findIndex(({uid:s})=>s==i.uid);t>-1?this.uploadList.splice(t,1,i):this.uploadList.unshift(i)})},uploadClear(){this.uploadList=this.uploadList.filter(({status:e})=>e!=="finished"),this.$refs.fileUpload.clearFiles(),this.$refs.dirUpload.clearFiles()},uploadAbort(e,i){e&&e.status==="uploading"&&e._chunkCtrl&&(e._chunkCtrl.abort(),e._chunkUploadId&&this.$store.dispatch("call",{url:"upload/cancel",data:{upload_id:e._chunkUploadId},method:"post"}).catch(()=>{})),this.uploadList.splice(i,1)},uploadPercentageParse(e){return parseInt(e,10)},handleProgress(e,i,t){i._uploadIng===void 0&&(i._uploadIng=!0,this.uploadIng++),this.uploadUpdate(t)},handleSuccess(e,i,t){this.uploadIng--,this.uploadUpdate(t),e.ret===1?this.$store.dispatch("saveFile",e.data):$A.modalWarning({title:"\u4E0A\u4F20\u5931\u8D25",content:"\u6587\u4EF6 "+i.name+" \u4E0A\u4F20\u5931\u8D25\uFF0C"+e.msg})},handleError(e,i,t){this.uploadIng--,this.uploadUpdate(t)},handleFormatError(e){this.uploadDir||$A.modalWarning({title:"\u6587\u4EF6\u683C\u5F0F\u4E0D\u6B63\u786E",content:"\u6587\u4EF6 "+e.name+" \u683C\u5F0F\u4E0D\u6B63\u786E\uFF0C\u4EC5\u652F\u6301\u4E0A\u4F20\uFF1A"+this.uploadFormat.join(",")})},handleMaxSize(e){$A.modalWarning({title:"\u8D85\u51FA\u6587\u4EF6\u5927\u5C0F\u9650\u5236",content:"\u6587\u4EF6 "+e.name+" \u592A\u5927\uFF0C\u4E0D\u80FD\u8D85\u8FC7\uFF1A"+$A.bytesToSize(this.maxSize*1024)+"\u3002"})},handleBeforeUpload(e){return this.uploadCover=!1,e.size>=M?(this.handleChunkedUpload(e),!1):this.uploadDir?(this.handleUploadNext(),!0):new Promise(i=>{this.fileList.findIndex(t=>$A.getFileName(t)===e.name)>-1?$A.modalConfirm({wait:!0,title:"\u6587\u4EF6\u5DF2\u5B58\u5728",content:"\u6587\u4EF6 "+e.name+" \u5DF2\u5B58\u5728\uFF0C\u662F\u5426\u66FF\u6362\uFF1F",cancelText:"\u4FDD\u7559\u4E24\u8005",okText:"\u66FF\u6362",closable:!0,onOk:()=>{this.uploadCover=!0,this.handleUploadNext(),i()},onCancel:t=>{t&&(this.handleUploadNext(),i())}}):(this.handleUploadNext(),i())})},handleChunkedUpload(e){const i=!this.uploadDir&&this.fileList.findIndex(s=>$A.getFileName(s)===e.name)>-1,t=s=>{this.handleUploadNext();const a=new AbortController,r={uid:"chunked-"+Date.now()+"-"+Math.random().toString(36).slice(2),name:e.name,size:e.size,status:"uploading",percentage:0,response:null,_chunkCtrl:a,_chunkUploadId:""};this.uploadList.unshift(r),this.uploadIng++;const o={pid:this.pid,webkit_relative_path:e.webkitRelativePath||e.name,overwrite:!!s};D({file:e,scene:"file_cabinet",sceneParams:o,onProgress:l=>{r.percentage=l},onStart:l=>{r._chunkUploadId=l},signal:a.signal}).then(l=>{r.status="finished",r.percentage=100,r.response={ret:1,data:l,msg:l&&l.msg||"success"},this.uploadIng--;const n=l&&l.addItem?l.addItem:l;this.$store.dispatch("saveFile",n)}).catch(l=>{if(this.uploadIng--,a.signal.aborted)return;r.status="finished";const n=l&&l.message||$L("\u4E0A\u4F20\u5931\u8D25");r.response={ret:0,msg:n},$A.modalWarning({title:"\u4E0A\u4F20\u5931\u8D25",content:"\u6587\u4EF6 "+e.name+" \u4E0A\u4F20\u5931\u8D25\uFF0C"+n})})};i?$A.modalConfirm({wait:!0,title:"\u6587\u4EF6\u5DF2\u5B58\u5728",content:"\u6587\u4EF6 "+e.name+" \u5DF2\u5B58\u5728\uFF0C\u662F\u5426\u66FF\u6362\uFF1F",cancelText:"\u4FDD\u7559\u4E24\u8005",okText:"\u66FF\u6362",closable:!0,onOk:()=>t(!0),onCancel:s=>{s&&t(!1)}}):t(!1)},handleUploadNext(){this.uploadShow=!0,this.packShow=!1},toggleFileFavorite(e){!e.id||e.type==="folder"||this.$store.dispatch("toggleFavorite",{type:"file",id:e.id}).then(({data:i})=>{const t=this.fileList.findIndex(s=>s.id===e.id);t>-1&&this.$set(this.fileList[t],"favorited",i.favorited),this.contextMenuItem.id===e.id&&this.$set(this.contextMenuItem,"favorited",i.favorited)})},checkSingleFileFavoriteStatus(e){!e.id||e.type==="folder"||this.$store.dispatch("checkFavoriteStatus",{type:"file",id:e.id}).then(({data:i})=>{this.$set(this.contextMenuItem,"favorited",i.favorited||!1);const t=this.fileList.findIndex(s=>s.id===e.id);t>-1&&this.$set(this.fileList[t],"favorited",i.favorited||!1)}).catch(()=>{this.$set(this.contextMenuItem,"favorited",!1);const i=this.fileList.findIndex(t=>t.id===e.id);i>-1&&this.$set(this.fileList[i],"favorited",!1)})}}},b={};var ie=v(se,X,Q,!1,ae,null,null,null);function ae(e){for(let i in b)this[i]=b[i]}var tt=function(){return ie.exports}();export{tt as default};
diff --git a/public/js/build/file.34f4af1e.js b/public/js/build/file.d8007700.js
similarity index 90%
rename from public/js/build/file.34f4af1e.js
rename to public/js/build/file.d8007700.js
index 05682c79c..3546deb00 100644
--- a/public/js/build/file.34f4af1e.js
+++ b/public/js/build/file.d8007700.js
@@ -1 +1 @@
-import n from"./FileContent.9635e5fc.js";import m from"./FilePreview.f5f37123.js";import{n as l}from"./app.818b057c.js";import"./openpgp_hi.15f91b1d.js";import"./IFrame.7112b2ed.js";import"./jquery.c87f487f.js";import"./@babel.9410f858.js";import"./dayjs.fd4aa75c.js";import"./localforage.8de7c27e.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./vue.adba9046.js";import"./vuex.cc7cb26e.js";import"./axios.37c7f908.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./view-design-hi.24419422.js";import"./html-to-md.f297036e.js";import"./lodash.8fcd6fd4.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vuedraggable.f464b992.js";import"./sortablejs.3488b922.js";import"./vue-resize-observer.5af23a43.js";import"./element-sea.f8a64907.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"single-file"},[i("PageTitle",{attrs:{title:t.pageName}}),t.loadIng>0?i("Loading"):t.fileInfo?[t.isPreview?i("FilePreview",{attrs:{code:t.code,file:t.fileInfo,historyId:t.historyId,headerShow:!t.$isEEUIApp}}):i("FileContent",{attrs:{file:t.fileInfo},model:{value:t.fileShow,callback:function(r){t.fileShow=r},expression:"fileShow"}})]:t._e()],2)},p=[];const a={components:{FilePreview:m,FileContent:n},data(){return{loadIng:0,code:null,fileShow:!0,fileInfo:null}},mounted(){},computed:{historyId(){return this.$route.query?$A.runNum(this.$route.query.history_id):0},isPreview(){return this.windowPortrait||this.code||this.historyId>0||this.fileInfo&&this.fileInfo.permission===0},pageName(){return this.$route.query&&this.$route.query.history_title?this.$route.query.history_title:this.fileInfo?`${this.fileInfo.name} [${this.fileInfo.created_at}]`:""}},watch:{$route:{handler(){this.getInfo()},immediate:!0}},methods:{getInfo(){let{codeOrFileId:t}=this.$route.params,e={id:t};if(/^\d+$/.test(t))this.code=null;else if(t)this.code=t;else return;setTimeout(i=>{this.loadIng++},600),this.$store.dispatch("call",{url:"file/one",data:e}).then(({data:i})=>{this.fileInfo=i}).catch(({msg:i})=>{$A.modalError({content:i,onOk:()=>{window.close()}})}).finally(i=>{this.loadIng--})}}},o={};var f=l(a,s,p,!1,u,"662d0b64",null,null);function u(t){for(let e in o)this[e]=o[e]}var st=function(){return f.exports}();export{st as default};
+import n from"./FileContent.476946a0.js";import m from"./FilePreview.2741939d.js";import{n as l}from"./app.ef7047f7.js";import"./openpgp_hi.15f91b1d.js";import"./IFrame.742911bb.js";import"./jquery.6e4daff9.js";import"./@babel.9410f858.js";import"./dayjs.d20a4841.js";import"./localforage.743dffdd.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./vue.adba9046.js";import"./vuex.cc7cb26e.js";import"./axios.37c7f908.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./view-design-hi.24419422.js";import"./html-to-md.f297036e.js";import"./lodash.8fcd6fd4.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vuedraggable.f464b992.js";import"./sortablejs.3488b922.js";import"./vue-resize-observer.5af23a43.js";import"./element-sea.f8a64907.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"single-file"},[i("PageTitle",{attrs:{title:t.pageName}}),t.loadIng>0?i("Loading"):t.fileInfo?[t.isPreview?i("FilePreview",{attrs:{code:t.code,file:t.fileInfo,historyId:t.historyId,headerShow:!t.$isEEUIApp}}):i("FileContent",{attrs:{file:t.fileInfo},model:{value:t.fileShow,callback:function(r){t.fileShow=r},expression:"fileShow"}})]:t._e()],2)},p=[];const a={components:{FilePreview:m,FileContent:n},data(){return{loadIng:0,code:null,fileShow:!0,fileInfo:null}},mounted(){},computed:{historyId(){return this.$route.query?$A.runNum(this.$route.query.history_id):0},isPreview(){return this.windowPortrait||this.code||this.historyId>0||this.fileInfo&&this.fileInfo.permission===0},pageName(){return this.$route.query&&this.$route.query.history_title?this.$route.query.history_title:this.fileInfo?`${this.fileInfo.name} [${this.fileInfo.created_at}]`:""}},watch:{$route:{handler(){this.getInfo()},immediate:!0}},methods:{getInfo(){let{codeOrFileId:t}=this.$route.params,e={id:t};if(/^\d+$/.test(t))this.code=null;else if(t)this.code=t;else return;setTimeout(i=>{this.loadIng++},600),this.$store.dispatch("call",{url:"file/one",data:e}).then(({data:i})=>{this.fileInfo=i}).catch(({msg:i})=>{$A.modalError({content:i,onOk:()=>{window.close()}})}).finally(i=>{this.loadIng--})}}},o={};var f=l(a,s,p,!1,u,"662d0b64",null,null);function u(t){for(let e in o)this[e]=o[e]}var st=function(){return f.exports}();export{st as default};
diff --git a/public/js/build/fileMsg.43202f22.js b/public/js/build/fileMsg.0b6ab042.js
similarity index 84%
rename from public/js/build/fileMsg.43202f22.js
rename to public/js/build/fileMsg.0b6ab042.js
index b27d89eca..b44e99a81 100644
--- a/public/js/build/fileMsg.43202f22.js
+++ b/public/js/build/fileMsg.0b6ab042.js
@@ -1 +1 @@
-import{_ as o}from"./openpgp_hi.15f91b1d.js";import{m as s}from"./vuex.cc7cb26e.js";import{I as a}from"./IFrame.7112b2ed.js";import{n as m}from"./app.818b057c.js";import"./jquery.c87f487f.js";import"./@babel.9410f858.js";import"./dayjs.fd4aa75c.js";import"./localforage.8de7c27e.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./vue.adba9046.js";import"./axios.37c7f908.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./view-design-hi.24419422.js";import"./html-to-md.f297036e.js";import"./lodash.8fcd6fd4.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vuedraggable.f464b992.js";import"./sortablejs.3488b922.js";import"./vue-resize-observer.5af23a43.js";import"./element-sea.f8a64907.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var l=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"single-file-msg"},[e("PageTitle",{attrs:{title:t.title}}),t.loadIng>0?e("Loading"):t.isWait?t._e():[t.isType("md")?e("VMPreview",{attrs:{value:t.msgDetail.content.content}}):t.isType("text")?e("TEditor",{attrs:{value:t.msgDetail.content.content,height:"100%",readOnly:""}}):t.isType("drawio")?e("Drawio",{attrs:{title:t.msgDetail.msg.name,readOnly:""},model:{value:t.msgDetail.content,callback:function(r){t.$set(t.msgDetail,"content",r)},expression:"msgDetail.content"}}):t.isType("mind")?e("Minder",{attrs:{value:t.msgDetail.content,readOnly:""}}):t.msgDetail.type==="longtext"?[t.msgDetail.content.type==="md"?e("DialogMarkdown",{staticClass:"view-longtext no-dark-content",attrs:{text:t.msgDetail.content.content}}):e("div",{staticClass:"view-longtext",domProps:{innerHTML:t._s(t.$A.formatTextMsg(t.msgDetail.content.content,t.userId))}})]:t.isType("code")?[t.isLongText(t.msgDetail.msg.name)?e("div",{staticClass:"view-code",domProps:{innerHTML:t._s(t.$A.formatTextMsg(t.msgDetail.content.content,t.userId))}}):e("AceEditor",{staticClass:"view-editor",attrs:{ext:t.msgDetail.msg.ext,readOnly:""},model:{value:t.msgDetail.content.content,callback:function(r){t.$set(t.msgDetail.content,"content",r)},expression:"msgDetail.content.content"}})]:t.isType("office")?e("OnlyOffice",{attrs:{code:t.officeCode,documentKey:t.documentKey,readOnly:""},model:{value:t.officeContent,callback:function(r){t.officeContent=r},expression:"officeContent"}}):t.isType("preview")?e("IFrame",{staticClass:"preview-iframe",attrs:{src:t.previewUrl}}):e("div",{staticClass:"no-support"},[t._v(t._s(t.$L("\u4E0D\u652F\u6301\u5355\u72EC\u67E5\u770B\u6B64\u6D88\u606F")))])]],2)},c=[];const p=()=>o(()=>import("./preview.a027dcb2.js"),["js/build/preview.a027dcb2.js","js/build/openpgp_hi.15f91b1d.js","js/build/index.40a8e116.js","js/build/app.818b057c.js","js/build/app.e77c9e40.css","js/build/jquery.c87f487f.js","js/build/@babel.9410f858.js","js/build/dayjs.fd4aa75c.js","js/build/localforage.8de7c27e.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/vuex.cc7cb26e.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),d=()=>o(()=>import("./app.818b057c.js").then(function(t){return t.x}),["js/build/app.818b057c.js","js/build/app.e77c9e40.css","js/build/jquery.c87f487f.js","js/build/@babel.9410f858.js","js/build/dayjs.fd4aa75c.js","js/build/localforage.8de7c27e.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),_=()=>o(()=>import("./TEditor.7069f2fe.js"),["js/build/TEditor.7069f2fe.js","js/build/tinymce.498510f2.js","js/build/@babel.9410f858.js","js/build/ImgUpload.a99f26bd.js","js/build/chunkedUpload.a9ef725e.js","js/build/axios.37c7f908.js","js/build/spark-md5.0443325f.js","js/build/app.818b057c.js","js/build/app.e77c9e40.css","js/build/jquery.c87f487f.js","js/build/dayjs.fd4aa75c.js","js/build/localforage.8de7c27e.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),g=()=>o(()=>import("./AceEditor.5c6925f0.js"),["js/build/AceEditor.5c6925f0.js","js/build/vuex.cc7cb26e.js","js/build/app.818b057c.js","js/build/app.e77c9e40.css","js/build/jquery.c87f487f.js","js/build/@babel.9410f858.js","js/build/dayjs.fd4aa75c.js","js/build/localforage.8de7c27e.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),u=()=>o(()=>import("./OnlyOffice.156d999d.js"),["js/build/OnlyOffice.156d999d.js","js/build/OnlyOffice.d1512ace.css","js/build/vuex.cc7cb26e.js","js/build/app.818b057c.js","js/build/app.e77c9e40.css","js/build/jquery.c87f487f.js","js/build/@babel.9410f858.js","js/build/dayjs.fd4aa75c.js","js/build/localforage.8de7c27e.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),f=()=>o(()=>import("./Drawio.5aac9046.js"),["js/build/Drawio.5aac9046.js","js/build/Drawio.6950c35e.css","js/build/vuex.cc7cb26e.js","js/build/IFrame.7112b2ed.js","js/build/app.818b057c.js","js/build/app.e77c9e40.css","js/build/jquery.c87f487f.js","js/build/@babel.9410f858.js","js/build/dayjs.fd4aa75c.js","js/build/localforage.8de7c27e.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),v=()=>o(()=>import("./Minder.5cd8dfa8.js"),["js/build/Minder.5cd8dfa8.js","js/build/Minder.b3680370.css","js/build/IFrame.7112b2ed.js","js/build/app.818b057c.js","js/build/app.e77c9e40.css","js/build/jquery.c87f487f.js","js/build/@babel.9410f858.js","js/build/dayjs.fd4aa75c.js","js/build/localforage.8de7c27e.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),h={components:{IFrame:a,AceEditor:g,TEditor:_,VMPreview:p,DialogMarkdown:d,OnlyOffice:u,Drawio:f,Minder:v},data(){return{loadIng:0,isWait:!1,msgDetail:{}}},mounted(){},watch:{$route:{handler(){this.getInfo()},immediate:!0}},computed:{...s(["userId"]),msgId(){const{msgId:t}=this.$route.params;return parseInt(/^\d+$/.test(t)?t:0)},title(){const{type:t,msg:i}=this.msgDetail;return t==="longtext"?this.$L("\u6D88\u606F\u8BE6\u60C5"):i&&i.name?i.name:"Loading..."},isType(){const{msgDetail:t}=this;return function(i){return t.type=="file"&&t.file_mode==i}},officeContent(){return{id:this.msgDetail.id||0,type:this.msgDetail.msg.ext,name:this.title}},officeCode(){return"msgFile_"+this.msgDetail.id},previewUrl(){const{name:t,key:i}=this.msgDetail.content;return $A.onlinePreviewUrl(t,i)}},methods:{getInfo(){this.msgId<=0||(setTimeout(t=>{this.loadIng++},600),this.isWait=!0,this.$store.dispatch("call",{url:"dialog/msg/detail",data:{msg_id:this.msgId}}).then(({data:t})=>{this.msgDetail=t}).catch(({msg:t})=>{$A.modalError({content:t,onOk:()=>{this.$Electron&&window.close()}})}).finally(t=>{this.loadIng--,this.isWait=!1}))},documentKey(){return new Promise((t,i)=>{this.$store.dispatch("call",{url:"dialog/msg/detail",data:{msg_id:this.msgId,only_update_at:"yes"}}).then(({data:e})=>{t(`${e.id}-${$A.dayjs(e.update_at).unix()}`)}).catch(e=>{i(e)})})},isLongText(t){return/^LongText-/.test(t)}}},n={};var D=m(h,l,c,!1,y,null,null,null);function y(t){for(let i in n)this[i]=n[i]}var gt=function(){return D.exports}();export{gt as default};
+import{_ as o}from"./openpgp_hi.15f91b1d.js";import{m as s}from"./vuex.cc7cb26e.js";import{I as a}from"./IFrame.742911bb.js";import{n as m}from"./app.ef7047f7.js";import"./jquery.6e4daff9.js";import"./@babel.9410f858.js";import"./dayjs.d20a4841.js";import"./localforage.743dffdd.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./vue.adba9046.js";import"./axios.37c7f908.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./view-design-hi.24419422.js";import"./html-to-md.f297036e.js";import"./lodash.8fcd6fd4.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vuedraggable.f464b992.js";import"./sortablejs.3488b922.js";import"./vue-resize-observer.5af23a43.js";import"./element-sea.f8a64907.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var l=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"single-file-msg"},[e("PageTitle",{attrs:{title:t.title}}),t.loadIng>0?e("Loading"):t.isWait?t._e():[t.isType("md")?e("VMPreview",{attrs:{value:t.msgDetail.content.content}}):t.isType("text")?e("TEditor",{attrs:{value:t.msgDetail.content.content,height:"100%",readOnly:""}}):t.isType("drawio")?e("Drawio",{attrs:{title:t.msgDetail.msg.name,readOnly:""},model:{value:t.msgDetail.content,callback:function(r){t.$set(t.msgDetail,"content",r)},expression:"msgDetail.content"}}):t.isType("mind")?e("Minder",{attrs:{value:t.msgDetail.content,readOnly:""}}):t.msgDetail.type==="longtext"?[t.msgDetail.content.type==="md"?e("DialogMarkdown",{staticClass:"view-longtext no-dark-content",attrs:{text:t.msgDetail.content.content}}):e("div",{staticClass:"view-longtext",domProps:{innerHTML:t._s(t.$A.formatTextMsg(t.msgDetail.content.content,t.userId))}})]:t.isType("code")?[t.isLongText(t.msgDetail.msg.name)?e("div",{staticClass:"view-code",domProps:{innerHTML:t._s(t.$A.formatTextMsg(t.msgDetail.content.content,t.userId))}}):e("AceEditor",{staticClass:"view-editor",attrs:{ext:t.msgDetail.msg.ext,readOnly:""},model:{value:t.msgDetail.content.content,callback:function(r){t.$set(t.msgDetail.content,"content",r)},expression:"msgDetail.content.content"}})]:t.isType("office")?e("OnlyOffice",{attrs:{code:t.officeCode,documentKey:t.documentKey,readOnly:""},model:{value:t.officeContent,callback:function(r){t.officeContent=r},expression:"officeContent"}}):t.isType("preview")?e("IFrame",{staticClass:"preview-iframe",attrs:{src:t.previewUrl}}):e("div",{staticClass:"no-support"},[t._v(t._s(t.$L("\u4E0D\u652F\u6301\u5355\u72EC\u67E5\u770B\u6B64\u6D88\u606F")))])]],2)},c=[];const p=()=>o(()=>import("./preview.7d35fa9c.js"),["js/build/preview.7d35fa9c.js","js/build/openpgp_hi.15f91b1d.js","js/build/index.40a8e116.js","js/build/app.ef7047f7.js","js/build/app.239a8ce2.css","js/build/jquery.6e4daff9.js","js/build/@babel.9410f858.js","js/build/dayjs.d20a4841.js","js/build/localforage.743dffdd.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/vuex.cc7cb26e.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),d=()=>o(()=>import("./app.ef7047f7.js").then(function(t){return t.u}),["js/build/app.ef7047f7.js","js/build/app.239a8ce2.css","js/build/jquery.6e4daff9.js","js/build/@babel.9410f858.js","js/build/dayjs.d20a4841.js","js/build/localforage.743dffdd.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),_=()=>o(()=>import("./TEditor.64c880bb.js"),["js/build/TEditor.64c880bb.js","js/build/tinymce.498510f2.js","js/build/@babel.9410f858.js","js/build/ImgUpload.434d067a.js","js/build/chunkedUpload.3cd238b0.js","js/build/axios.37c7f908.js","js/build/spark-md5.0443325f.js","js/build/app.ef7047f7.js","js/build/app.239a8ce2.css","js/build/jquery.6e4daff9.js","js/build/dayjs.d20a4841.js","js/build/localforage.743dffdd.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),g=()=>o(()=>import("./AceEditor.97e24384.js"),["js/build/AceEditor.97e24384.js","js/build/vuex.cc7cb26e.js","js/build/app.ef7047f7.js","js/build/app.239a8ce2.css","js/build/jquery.6e4daff9.js","js/build/@babel.9410f858.js","js/build/dayjs.d20a4841.js","js/build/localforage.743dffdd.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),u=()=>o(()=>import("./OnlyOffice.aafd9962.js"),["js/build/OnlyOffice.aafd9962.js","js/build/OnlyOffice.d1512ace.css","js/build/vuex.cc7cb26e.js","js/build/app.ef7047f7.js","js/build/app.239a8ce2.css","js/build/jquery.6e4daff9.js","js/build/@babel.9410f858.js","js/build/dayjs.d20a4841.js","js/build/localforage.743dffdd.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),f=()=>o(()=>import("./Drawio.64a830ab.js"),["js/build/Drawio.64a830ab.js","js/build/Drawio.6950c35e.css","js/build/vuex.cc7cb26e.js","js/build/IFrame.742911bb.js","js/build/app.ef7047f7.js","js/build/app.239a8ce2.css","js/build/jquery.6e4daff9.js","js/build/@babel.9410f858.js","js/build/dayjs.d20a4841.js","js/build/localforage.743dffdd.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),v=()=>o(()=>import("./Minder.2dd455c9.js"),["js/build/Minder.2dd455c9.js","js/build/Minder.b3680370.css","js/build/IFrame.742911bb.js","js/build/app.ef7047f7.js","js/build/app.239a8ce2.css","js/build/jquery.6e4daff9.js","js/build/@babel.9410f858.js","js/build/dayjs.d20a4841.js","js/build/localforage.743dffdd.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),h={components:{IFrame:a,AceEditor:g,TEditor:_,VMPreview:p,DialogMarkdown:d,OnlyOffice:u,Drawio:f,Minder:v},data(){return{loadIng:0,isWait:!1,msgDetail:{}}},mounted(){},watch:{$route:{handler(){this.getInfo()},immediate:!0}},computed:{...s(["userId"]),msgId(){const{msgId:t}=this.$route.params;return parseInt(/^\d+$/.test(t)?t:0)},title(){const{type:t,msg:i}=this.msgDetail;return t==="longtext"?this.$L("\u6D88\u606F\u8BE6\u60C5"):i&&i.name?i.name:"Loading..."},isType(){const{msgDetail:t}=this;return function(i){return t.type=="file"&&t.file_mode==i}},officeContent(){return{id:this.msgDetail.id||0,type:this.msgDetail.msg.ext,name:this.title}},officeCode(){return"msgFile_"+this.msgDetail.id},previewUrl(){const{name:t,key:i}=this.msgDetail.content;return $A.onlinePreviewUrl(t,i)}},methods:{getInfo(){this.msgId<=0||(setTimeout(t=>{this.loadIng++},600),this.isWait=!0,this.$store.dispatch("call",{url:"dialog/msg/detail",data:{msg_id:this.msgId}}).then(({data:t})=>{this.msgDetail=t}).catch(({msg:t})=>{$A.modalError({content:t,onOk:()=>{this.$Electron&&window.close()}})}).finally(t=>{this.loadIng--,this.isWait=!1}))},documentKey(){return new Promise((t,i)=>{this.$store.dispatch("call",{url:"dialog/msg/detail",data:{msg_id:this.msgId,only_update_at:"yes"}}).then(({data:e})=>{t(`${e.id}-${$A.dayjs(e.update_at).unix()}`)}).catch(e=>{i(e)})})},isLongText(t){return/^LongText-/.test(t)}}},n={};var D=m(h,l,c,!1,y,null,null,null);function y(t){for(let i in n)this[i]=n[i]}var gt=function(){return D.exports}();export{gt as default};
diff --git a/public/js/build/fileTask.fcdb2716.js b/public/js/build/fileTask.9909534a.js
similarity index 84%
rename from public/js/build/fileTask.fcdb2716.js
rename to public/js/build/fileTask.9909534a.js
index 20bf3f01f..391e0d74f 100644
--- a/public/js/build/fileTask.fcdb2716.js
+++ b/public/js/build/fileTask.9909534a.js
@@ -1 +1 @@
-import{_ as o}from"./openpgp_hi.15f91b1d.js";import{I as l}from"./IFrame.7112b2ed.js";import{n as a}from"./app.818b057c.js";import"./jquery.c87f487f.js";import"./@babel.9410f858.js";import"./dayjs.fd4aa75c.js";import"./localforage.8de7c27e.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./vue.adba9046.js";import"./vuex.cc7cb26e.js";import"./axios.37c7f908.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./view-design-hi.24419422.js";import"./html-to-md.f297036e.js";import"./lodash.8fcd6fd4.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vuedraggable.f464b992.js";import"./sortablejs.3488b922.js";import"./vue-resize-observer.5af23a43.js";import"./element-sea.f8a64907.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var s=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"single-file-task"},[e("PageTitle",{attrs:{title:t.title}}),t.loadIng>0?e("Loading"):t.isWait?t._e():[t.isType("md")?e("VMPreview",{attrs:{value:t.fileDetail.content.content}}):t.isType("text")?e("TEditor",{attrs:{value:t.fileDetail.content.content,height:"100%",readOnly:""}}):t.isType("drawio")?e("Drawio",{attrs:{title:t.fileDetail.name,readOnly:""},model:{value:t.fileDetail.content,callback:function(r){t.$set(t.fileDetail,"content",r)},expression:"fileDetail.content"}}):t.isType("mind")?e("Minder",{attrs:{value:t.fileDetail.content,readOnly:""}}):t.isType("code")?e("AceEditor",{staticClass:"view-editor",attrs:{ext:t.fileDetail.ext,readOnly:""},model:{value:t.fileDetail.content.content,callback:function(r){t.$set(t.fileDetail.content,"content",r)},expression:"fileDetail.content.content"}}):t.isType("office")?e("OnlyOffice",{attrs:{code:t.officeCode,documentKey:t.documentKey,readOnly:""},model:{value:t.officeContent,callback:function(r){t.officeContent=r},expression:"officeContent"}}):t.isType("preview")?e("IFrame",{staticClass:"preview-iframe",attrs:{src:t.previewUrl}}):e("div",{staticClass:"no-support"},[t._v(t._s(t.$L("\u4E0D\u652F\u6301\u5355\u72EC\u67E5\u770B\u6B64\u6D88\u606F")))])]],2)},m=[];const p=()=>o(()=>import("./preview.a027dcb2.js"),["js/build/preview.a027dcb2.js","js/build/openpgp_hi.15f91b1d.js","js/build/index.40a8e116.js","js/build/app.818b057c.js","js/build/app.e77c9e40.css","js/build/jquery.c87f487f.js","js/build/@babel.9410f858.js","js/build/dayjs.fd4aa75c.js","js/build/localforage.8de7c27e.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/vuex.cc7cb26e.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),c=()=>o(()=>import("./TEditor.7069f2fe.js"),["js/build/TEditor.7069f2fe.js","js/build/tinymce.498510f2.js","js/build/@babel.9410f858.js","js/build/ImgUpload.a99f26bd.js","js/build/chunkedUpload.a9ef725e.js","js/build/axios.37c7f908.js","js/build/spark-md5.0443325f.js","js/build/app.818b057c.js","js/build/app.e77c9e40.css","js/build/jquery.c87f487f.js","js/build/dayjs.fd4aa75c.js","js/build/localforage.8de7c27e.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),d=()=>o(()=>import("./AceEditor.5c6925f0.js"),["js/build/AceEditor.5c6925f0.js","js/build/vuex.cc7cb26e.js","js/build/app.818b057c.js","js/build/app.e77c9e40.css","js/build/jquery.c87f487f.js","js/build/@babel.9410f858.js","js/build/dayjs.fd4aa75c.js","js/build/localforage.8de7c27e.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),f=()=>o(()=>import("./OnlyOffice.156d999d.js"),["js/build/OnlyOffice.156d999d.js","js/build/OnlyOffice.d1512ace.css","js/build/vuex.cc7cb26e.js","js/build/app.818b057c.js","js/build/app.e77c9e40.css","js/build/jquery.c87f487f.js","js/build/@babel.9410f858.js","js/build/dayjs.fd4aa75c.js","js/build/localforage.8de7c27e.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),_=()=>o(()=>import("./Drawio.5aac9046.js"),["js/build/Drawio.5aac9046.js","js/build/Drawio.6950c35e.css","js/build/vuex.cc7cb26e.js","js/build/IFrame.7112b2ed.js","js/build/app.818b057c.js","js/build/app.e77c9e40.css","js/build/jquery.c87f487f.js","js/build/@babel.9410f858.js","js/build/dayjs.fd4aa75c.js","js/build/localforage.8de7c27e.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),u=()=>o(()=>import("./Minder.5cd8dfa8.js"),["js/build/Minder.5cd8dfa8.js","js/build/Minder.b3680370.css","js/build/IFrame.7112b2ed.js","js/build/app.818b057c.js","js/build/app.e77c9e40.css","js/build/jquery.c87f487f.js","js/build/@babel.9410f858.js","js/build/dayjs.fd4aa75c.js","js/build/localforage.8de7c27e.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),v={components:{IFrame:l,AceEditor:d,TEditor:c,VMPreview:p,OnlyOffice:f,Drawio:_,Minder:u},data(){return{loadIng:0,isWait:!1,fileDetail:{}}},mounted(){},watch:{$route:{handler(){this.getInfo()},immediate:!0}},computed:{fileId(){const{fileId:t}=this.$route.params;return parseInt(/^\d+$/.test(t)?t:0)},title(){const{name:t}=this.fileDetail;return t||"Loading..."},isType(){const{fileDetail:t}=this;return function(i){return t.file_mode==i}},officeContent(){return{id:this.fileDetail.id||0,type:this.fileDetail.ext,name:this.title}},officeCode(){return"taskFile_"+this.fileDetail.id},previewUrl(){const{name:t,key:i}=this.fileDetail.content;return $A.onlinePreviewUrl(t,i)}},methods:{getInfo(){this.fileId<=0||(setTimeout(t=>{this.loadIng++},600),this.isWait=!0,this.$store.dispatch("call",{url:"project/task/filedetail",data:{file_id:this.fileId}}).then(({data:t})=>{this.fileDetail=t}).catch(({msg:t})=>{$A.modalError({content:t,onOk:()=>{this.$Electron&&window.close()}})}).finally(t=>{this.loadIng--,this.isWait=!1}))},documentKey(){return new Promise((t,i)=>{this.$store.dispatch("call",{url:"project/task/filedetail",data:{file_id:this.fileId,only_update_at:"yes"}}).then(({data:e})=>{t(`${e.id}-${$A.dayjs(e.update_at).unix()}`)}).catch(e=>{i(e)})})}}},n={};var h=a(v,s,m,!1,y,null,null,null);function y(t){for(let i in n)this[i]=n[i]}var dt=function(){return h.exports}();export{dt as default};
+import{_ as o}from"./openpgp_hi.15f91b1d.js";import{I as l}from"./IFrame.742911bb.js";import{n as a}from"./app.ef7047f7.js";import"./jquery.6e4daff9.js";import"./@babel.9410f858.js";import"./dayjs.d20a4841.js";import"./localforage.743dffdd.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./vue.adba9046.js";import"./vuex.cc7cb26e.js";import"./axios.37c7f908.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./view-design-hi.24419422.js";import"./html-to-md.f297036e.js";import"./lodash.8fcd6fd4.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vuedraggable.f464b992.js";import"./sortablejs.3488b922.js";import"./vue-resize-observer.5af23a43.js";import"./element-sea.f8a64907.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var s=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"single-file-task"},[e("PageTitle",{attrs:{title:t.title}}),t.loadIng>0?e("Loading"):t.isWait?t._e():[t.isType("md")?e("VMPreview",{attrs:{value:t.fileDetail.content.content}}):t.isType("text")?e("TEditor",{attrs:{value:t.fileDetail.content.content,height:"100%",readOnly:""}}):t.isType("drawio")?e("Drawio",{attrs:{title:t.fileDetail.name,readOnly:""},model:{value:t.fileDetail.content,callback:function(r){t.$set(t.fileDetail,"content",r)},expression:"fileDetail.content"}}):t.isType("mind")?e("Minder",{attrs:{value:t.fileDetail.content,readOnly:""}}):t.isType("code")?e("AceEditor",{staticClass:"view-editor",attrs:{ext:t.fileDetail.ext,readOnly:""},model:{value:t.fileDetail.content.content,callback:function(r){t.$set(t.fileDetail.content,"content",r)},expression:"fileDetail.content.content"}}):t.isType("office")?e("OnlyOffice",{attrs:{code:t.officeCode,documentKey:t.documentKey,readOnly:""},model:{value:t.officeContent,callback:function(r){t.officeContent=r},expression:"officeContent"}}):t.isType("preview")?e("IFrame",{staticClass:"preview-iframe",attrs:{src:t.previewUrl}}):e("div",{staticClass:"no-support"},[t._v(t._s(t.$L("\u4E0D\u652F\u6301\u5355\u72EC\u67E5\u770B\u6B64\u6D88\u606F")))])]],2)},m=[];const p=()=>o(()=>import("./preview.7d35fa9c.js"),["js/build/preview.7d35fa9c.js","js/build/openpgp_hi.15f91b1d.js","js/build/index.40a8e116.js","js/build/app.ef7047f7.js","js/build/app.239a8ce2.css","js/build/jquery.6e4daff9.js","js/build/@babel.9410f858.js","js/build/dayjs.d20a4841.js","js/build/localforage.743dffdd.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/vuex.cc7cb26e.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),c=()=>o(()=>import("./TEditor.64c880bb.js"),["js/build/TEditor.64c880bb.js","js/build/tinymce.498510f2.js","js/build/@babel.9410f858.js","js/build/ImgUpload.434d067a.js","js/build/chunkedUpload.3cd238b0.js","js/build/axios.37c7f908.js","js/build/spark-md5.0443325f.js","js/build/app.ef7047f7.js","js/build/app.239a8ce2.css","js/build/jquery.6e4daff9.js","js/build/dayjs.d20a4841.js","js/build/localforage.743dffdd.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),d=()=>o(()=>import("./AceEditor.97e24384.js"),["js/build/AceEditor.97e24384.js","js/build/vuex.cc7cb26e.js","js/build/app.ef7047f7.js","js/build/app.239a8ce2.css","js/build/jquery.6e4daff9.js","js/build/@babel.9410f858.js","js/build/dayjs.d20a4841.js","js/build/localforage.743dffdd.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),f=()=>o(()=>import("./OnlyOffice.aafd9962.js"),["js/build/OnlyOffice.aafd9962.js","js/build/OnlyOffice.d1512ace.css","js/build/vuex.cc7cb26e.js","js/build/app.ef7047f7.js","js/build/app.239a8ce2.css","js/build/jquery.6e4daff9.js","js/build/@babel.9410f858.js","js/build/dayjs.d20a4841.js","js/build/localforage.743dffdd.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),_=()=>o(()=>import("./Drawio.64a830ab.js"),["js/build/Drawio.64a830ab.js","js/build/Drawio.6950c35e.css","js/build/vuex.cc7cb26e.js","js/build/IFrame.742911bb.js","js/build/app.ef7047f7.js","js/build/app.239a8ce2.css","js/build/jquery.6e4daff9.js","js/build/@babel.9410f858.js","js/build/dayjs.d20a4841.js","js/build/localforage.743dffdd.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),u=()=>o(()=>import("./Minder.2dd455c9.js"),["js/build/Minder.2dd455c9.js","js/build/Minder.b3680370.css","js/build/IFrame.742911bb.js","js/build/app.ef7047f7.js","js/build/app.239a8ce2.css","js/build/jquery.6e4daff9.js","js/build/@babel.9410f858.js","js/build/dayjs.d20a4841.js","js/build/localforage.743dffdd.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),v={components:{IFrame:l,AceEditor:d,TEditor:c,VMPreview:p,OnlyOffice:f,Drawio:_,Minder:u},data(){return{loadIng:0,isWait:!1,fileDetail:{}}},mounted(){},watch:{$route:{handler(){this.getInfo()},immediate:!0}},computed:{fileId(){const{fileId:t}=this.$route.params;return parseInt(/^\d+$/.test(t)?t:0)},title(){const{name:t}=this.fileDetail;return t||"Loading..."},isType(){const{fileDetail:t}=this;return function(i){return t.file_mode==i}},officeContent(){return{id:this.fileDetail.id||0,type:this.fileDetail.ext,name:this.title}},officeCode(){return"taskFile_"+this.fileDetail.id},previewUrl(){const{name:t,key:i}=this.fileDetail.content;return $A.onlinePreviewUrl(t,i)}},methods:{getInfo(){this.fileId<=0||(setTimeout(t=>{this.loadIng++},600),this.isWait=!0,this.$store.dispatch("call",{url:"project/task/filedetail",data:{file_id:this.fileId}}).then(({data:t})=>{this.fileDetail=t}).catch(({msg:t})=>{$A.modalError({content:t,onOk:()=>{this.$Electron&&window.close()}})}).finally(t=>{this.loadIng--,this.isWait=!1}))},documentKey(){return new Promise((t,i)=>{this.$store.dispatch("call",{url:"project/task/filedetail",data:{file_id:this.fileId,only_update_at:"yes"}}).then(({data:e})=>{t(`${e.id}-${$A.dayjs(e.update_at).unix()}`)}).catch(e=>{i(e)})})}}},n={};var h=a(v,s,m,!1,y,null,null,null);function y(t){for(let i in n)this[i]=n[i]}var dt=function(){return h.exports}();export{dt as default};
diff --git a/public/js/build/index.d367f26c.js b/public/js/build/index.7a3429e1.js
similarity index 92%
rename from public/js/build/index.d367f26c.js
rename to public/js/build/index.7a3429e1.js
index 21e6dafe4..b54aa797d 100644
--- a/public/js/build/index.d367f26c.js
+++ b/public/js/build/index.7a3429e1.js
@@ -1 +1 @@
-import{n as m}from"./app.818b057c.js";import"./jquery.c87f487f.js";import"./@babel.9410f858.js";import"./dayjs.fd4aa75c.js";import"./localforage.8de7c27e.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./vue.adba9046.js";import"./vuex.cc7cb26e.js";import"./openpgp_hi.15f91b1d.js";import"./axios.37c7f908.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./view-design-hi.24419422.js";import"./html-to-md.f297036e.js";import"./lodash.8fcd6fd4.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vuedraggable.f464b992.js";import"./sortablejs.3488b922.js";import"./vue-resize-observer.5af23a43.js";import"./element-sea.f8a64907.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var e=function(){var t=this,o=t.$createElement,i=t._self._c||o;return i("div")},n=[];const p={data(){return{}},mounted(){if(/^https?:/i.test(window.location.protocol)){let t=null;if(this.$router.mode==="hash"?$A.stringLength(window.location.pathname)>2&&(t=`${window.location.origin}/#${window.location.pathname}${window.location.search}`):this.$router.mode==="history"&&$A.strExists(window.location.href,"/#/")&&(t=window.location.href.replace("/#/","/")),t)throw this.$store.dispatch("userUrl",t).then(o=>{window.location.href=o}),SyntaxError()}},activated(){this.start()},methods:{start(){this.userId>0?this.goForward({name:"manage-dashboard"},!0):this.goForward({name:"login"},!0)}}},r={};var a=m(p,e,n,!1,s,null,null,null);function s(t){for(let o in r)this[o]=r[o]}var rt=function(){return a.exports}();export{rt as default};
+import{n as m}from"./app.ef7047f7.js";import"./jquery.6e4daff9.js";import"./@babel.9410f858.js";import"./dayjs.d20a4841.js";import"./localforage.743dffdd.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./vue.adba9046.js";import"./vuex.cc7cb26e.js";import"./openpgp_hi.15f91b1d.js";import"./axios.37c7f908.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./view-design-hi.24419422.js";import"./html-to-md.f297036e.js";import"./lodash.8fcd6fd4.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vuedraggable.f464b992.js";import"./sortablejs.3488b922.js";import"./vue-resize-observer.5af23a43.js";import"./element-sea.f8a64907.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var e=function(){var t=this,o=t.$createElement,i=t._self._c||o;return i("div")},n=[];const p={data(){return{}},mounted(){if(/^https?:/i.test(window.location.protocol)){let t=null;if(this.$router.mode==="hash"?$A.stringLength(window.location.pathname)>2&&(t=`${window.location.origin}/#${window.location.pathname}${window.location.search}`):this.$router.mode==="history"&&$A.strExists(window.location.href,"/#/")&&(t=window.location.href.replace("/#/","/")),t)throw this.$store.dispatch("userUrl",t).then(o=>{window.location.href=o}),SyntaxError()}},activated(){this.start()},methods:{start(){this.userId>0?this.goForward({name:"manage-dashboard"},!0):this.goForward({name:"login"},!0)}}},r={};var a=m(p,e,n,!1,s,null,null,null);function s(t){for(let o in r)this[o]=r[o]}var rt=function(){return a.exports}();export{rt as default};
diff --git a/public/js/build/index.314bd841.js b/public/js/build/index.9de0a837.js
similarity index 87%
rename from public/js/build/index.314bd841.js
rename to public/js/build/index.9de0a837.js
index 6ff6d7532..2ffe8cb29 100644
--- a/public/js/build/index.314bd841.js
+++ b/public/js/build/index.9de0a837.js
@@ -1 +1 @@
-import{_ as m}from"./openpgp_hi.15f91b1d.js";import{e as n}from"./index.40a8e116.js";import{n as p}from"./app.818b057c.js";import"./jquery.c87f487f.js";import"./@babel.9410f858.js";import"./dayjs.fd4aa75c.js";import"./localforage.8de7c27e.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./vue.adba9046.js";import"./vuex.cc7cb26e.js";import"./axios.37c7f908.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./view-design-hi.24419422.js";import"./html-to-md.f297036e.js";import"./lodash.8fcd6fd4.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vuedraggable.f464b992.js";import"./sortablejs.3488b922.js";import"./vue-resize-observer.5af23a43.js";import"./element-sea.f8a64907.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var a=function(){var t=this,o=t.$createElement,i=t._self._c||o;return t.ready?i("VEditor",{attrs:{leftToolbar:t.leftToolbar,rightToolbar:t.rightToolbar,tocNavPositionRight:t.tocNavPositionRight,includeLevel:t.includeLevel},model:{value:t.content,callback:function(e){t.content=e},expression:"content"}}):i("Loading")},s=[];const l={name:"VMEditor",mixins:[n],components:{VEditor:()=>m(()=>import("./editor.fa7aa67f.js"),["js/build/editor.fa7aa67f.js","js/build/editor.2d3fffc9.css","js/build/@kangc.b5fe0a56.js","js/build/@kangc.d8464d83.css","js/build/@babel.9410f858.js","js/build/vue.adba9046.js","js/build/copy-to-clipboard.a53c061d.js","js/build/toggle-selection.d2487283.js","js/build/prismjs.94ec9288.js","js/build/app.818b057c.js","js/build/app.e77c9e40.css","js/build/jquery.c87f487f.js","js/build/dayjs.fd4aa75c.js","js/build/localforage.8de7c27e.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js","js/build/codemirror.9d10b9e4.js","js/build/codemirror.9ace6687.css","js/build/index.40a8e116.js","js/build/ImgUpload.a99f26bd.js","js/build/chunkedUpload.a9ef725e.js","js/build/spark-md5.0443325f.js"])},data(){return{ready:!1,content:""}},async mounted(){await $A.loadScriptS(["js/katex/katex.min.js","js/katex/katex.min.css","js/mermaid.min.js"]),this.ready=!0},watch:{value:{handler(t){t==null&&(t=""),this.content=t},immediate:!0},content(t){this.$emit("input",t)}}},r={};var c=p(l,a,s,!1,_,null,null,null);function _(t){for(let o in r)this[o]=r[o]}var nt=function(){return c.exports}();export{nt as default};
+import{_ as m}from"./openpgp_hi.15f91b1d.js";import{e as n}from"./index.40a8e116.js";import{n as p}from"./app.ef7047f7.js";import"./jquery.6e4daff9.js";import"./@babel.9410f858.js";import"./dayjs.d20a4841.js";import"./localforage.743dffdd.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./vue.adba9046.js";import"./vuex.cc7cb26e.js";import"./axios.37c7f908.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./view-design-hi.24419422.js";import"./html-to-md.f297036e.js";import"./lodash.8fcd6fd4.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vuedraggable.f464b992.js";import"./sortablejs.3488b922.js";import"./vue-resize-observer.5af23a43.js";import"./element-sea.f8a64907.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var a=function(){var t=this,o=t.$createElement,i=t._self._c||o;return t.ready?i("VEditor",{attrs:{leftToolbar:t.leftToolbar,rightToolbar:t.rightToolbar,tocNavPositionRight:t.tocNavPositionRight,includeLevel:t.includeLevel},model:{value:t.content,callback:function(e){t.content=e},expression:"content"}}):i("Loading")},s=[];const l={name:"VMEditor",mixins:[n],components:{VEditor:()=>m(()=>import("./editor.c711ad5a.js"),["js/build/editor.c711ad5a.js","js/build/editor.2d3fffc9.css","js/build/@kangc.b5fe0a56.js","js/build/@kangc.d8464d83.css","js/build/@babel.9410f858.js","js/build/vue.adba9046.js","js/build/copy-to-clipboard.a53c061d.js","js/build/toggle-selection.d2487283.js","js/build/prismjs.94ec9288.js","js/build/app.ef7047f7.js","js/build/app.239a8ce2.css","js/build/jquery.6e4daff9.js","js/build/dayjs.d20a4841.js","js/build/localforage.743dffdd.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js","js/build/codemirror.9d10b9e4.js","js/build/codemirror.9ace6687.css","js/build/index.40a8e116.js","js/build/ImgUpload.434d067a.js","js/build/chunkedUpload.3cd238b0.js","js/build/spark-md5.0443325f.js"])},data(){return{ready:!1,content:""}},async mounted(){await $A.loadScriptS(["js/katex/katex.min.js","js/katex/katex.min.css","js/mermaid.min.js"]),this.ready=!0},watch:{value:{handler(t){t==null&&(t=""),this.content=t},immediate:!0},content(t){this.$emit("input",t)}}},r={};var c=p(l,a,s,!1,_,null,null,null);function _(t){for(let o in r)this[o]=r[o]}var nt=function(){return c.exports}();export{nt as default};
diff --git a/public/js/build/index.a1e57906.js b/public/js/build/index.a1e57906.js
deleted file mode 100644
index 692d2e81f..000000000
--- a/public/js/build/index.a1e57906.js
+++ /dev/null
@@ -1 +0,0 @@
-import{V as A}from"./vue.adba9046.js";import{m as f}from"./vuex.cc7cb26e.js";import{i as w}from"./view-design-hi.24419422.js";import{m as a}from"./@micro-zoe.39406924.js";import{D as _}from"./DialogWrapper.21630cce.js";import{d as y,n as c,U as p,e as n,s as d,g as $,l as C}from"./app.818b057c.js";import{R as b}from"./index.ab4b7604.js";var g=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{directives:[{name:"transfer-dom",rawName:"v-transfer-dom"}],attrs:{"data-transfer":!0}},[t("div",{class:e.className,style:e.wrapStyle},[t("transition",{attrs:{name:e.transitions[0]}},[e.shouldRenderInDom?t("div",{directives:[{name:"show",rawName:"v-show",value:e.open,expression:"open"}],staticClass:"micro-modal-mask",style:e.maskStyle}):e._e()]),t("transition",{attrs:{name:e.transitions[1]}},[e.shouldRenderInDom?t("div",{directives:[{name:"show",rawName:"v-show",value:e.open,expression:"open"}],staticClass:"micro-modal-content",style:e.contentStyle},[e.capsuleMenuShow?t("div",{staticClass:"micro-modal-cmask"}):e._e(),t("div",{staticClass:"micro-modal-capsule",style:e.capsuleStyle},[t("div",{staticClass:"micro-modal-capsule-item",on:{click:e.onCapsuleMore}},[t("svg",{attrs:{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M2 11C3.10457 11 4 10.1046 4 9C4 7.89543 3.10457 7 2 7C0.895431 7 0 7.89543 0 9C0 10.1046 0.895431 11 2 11Z",fill:"currentColor"}}),t("path",{attrs:{d:"M9 12C10.6569 12 12 10.6569 12 9C12 7.34315 10.6569 6 9 6C7.34315 6 6 7.34315 6 9C6 10.6569 7.34315 12 9 12Z",fill:"currentColor"}}),t("path",{attrs:{d:"M16 11C17.1046 11 18 10.1046 18 9C18 7.89543 17.1046 7 16 7C14.8954 7 14 7.89543 14 9C14 10.1046 14.8954 11 16 11Z",fill:"currentColor"}})])]),t("div",{staticClass:"micro-modal-capsule-line"}),t("div",{staticClass:"micro-modal-capsule-item",on:{click:e.attemptClose}},[t("svg",{attrs:{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M9 16C12.866 16 16 12.866 16 9C16 5.13401 12.866 2 9 2C5.13401 2 2 5.13401 2 9C2 12.866 5.13401 16 9 16Z",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}}),t("path",{attrs:{d:"M9 12C10.6569 12 12 10.6569 12 9C12 7.34315 10.6569 6 9 6C7.34315 6 6 7.34315 6 9C6 10.6569 7.34315 12 9 12Z",fill:"currentColor"}})])])]),t("ResizeLine",{staticClass:"micro-modal-resize",attrs:{placement:"right",min:e.minSize,max:0,reverse:!0,beforeResize:e.beforeResize},on:{"on-change":e.onChangeResize},model:{value:e.dynamicSize,callback:function(i){e.dynamicSize=i},expression:"dynamicSize"}}),t("div",{ref:"body",staticClass:"micro-modal-body",style:e.bodyStyle},[e._t("default")],2)],1):e._e()])],1)])},v=[];const M={name:"MicroModal",components:{ResizeLine:b},directives:{TransferDom:y},props:{open:{type:Boolean,default:!1},size:{type:Number,default:300},minSize:{type:Number,default:300},options:{type:Object,default:()=>({})},windowType:{type:String,default:"embed"},forceCapsuleVisible:{type:Boolean,default:!1},beforeClose:Function},data(){return{dynamicSize:0,zIndex:1e3,capsuleMenuShow:!1}},computed:{...f(["themeName"]),shouldRenderInDom(){return this.open||!!this.options.keep_alive},className(){return{"micro-modal":!0,"micro-modal-hidden":!this.open,"no-dark-content":!this.options.auto_dark_theme,"transparent-mode":!!this.options.transparent,[`${this.windowType}-window`]:!0}},transitions(){return this.options.transparent?["",""]:["micro-modal-fade","micro-modal-slide"]},bodyStyle(){const e={"--micro-body-background-color":"transparent"};if(this.options.background){const s=`${this.options.background}|`.split("|");e["--micro-body-background-color"]=(this.themeName==="dark"?s[1]:null)||s[0]}return e},wrapStyle({zIndex:e}){return{zIndex:e}},maskStyle({zIndex:e}){return{zIndex:e}},contentStyle({dynamicSize:e,zIndex:s}){return{width:e<=100?`${e}%`:`${e}px`,zIndex:s}},capsuleStyle(){const e={zIndex:this.zIndex+1e3},{capsule:s}=this.options;return $A.isJson(s)&&(!this.forceCapsuleVisible&&!this.getCapsuleVisible(s.visible)&&(e.display="none"),typeof s.top=="number"&&(e.top=`${s.top}px`),typeof s.right=="number"&&(e.right=`${s.right}px`)),e}},watch:{open:{handler(e){e&&(this.zIndex=typeof window.modalTransferIndex=="number"?window.modalTransferIndex++:1e3)},immediate:!0},size:{handler(e){this.dynamicSize=parseInt(e)},immediate:!0}},methods:{beforeResize(){return new Promise(e=>{this.dynamicSize<=100&&this.updateSize(),e()})},onChangeResize({event:e}){e==="up"&&this.updateSize()},updateSize(){this.$refs.body&&(this.dynamicSize=this.$refs.body.clientWidth)},onCapsuleMore(e){const s=[],{capsule:t}=this.options;$A.isJson(t)&&$A.isArray(t.more_menus)&&t.more_menus.forEach(o=>{o.label&&o.value&&s.push(o)});const i=[{label:this.$L("\u91CD\u542F\u5E94\u7528"),value:"restart"},{label:this.$L("\u5173\u95ED\u5E94\u7528"),value:"destroy"}];$A.isMainElectron&&i.unshift({label:this.$L("\u65B0\u7A97\u53E3\u6253\u5F00"),value:"popout"}),s.length>0&&(i[0].divided=!0),this.$store.commit("menu/operation",{event:e,list:[...s,...i],size:"large",onVisibleChange:o=>{this.capsuleMenuShow=o},onUpdate:o=>{this.$emit("on-capsule-more",this.options.name,o)}})},attemptClose(){if(!this.beforeClose)return this.handleClose();const e=this.beforeClose(this.options.name);e&&e.then?e.then(()=>{this.handleClose()}):this.handleClose()},handleClose(){this.$emit("on-confirm-close",this.options.name)},getCapsuleVisible(e){if(typeof e=="boolean")return e;if($A.isJson(e)){const s=typeof e.default=="boolean"?e.default:!0;return this.windowType==="popout"?typeof e.popout=="boolean"?e.popout:s:this.windowType==="embed"&&typeof e.embed=="boolean"?e.embed:s}return!0}}},u={};var E=c(M,g,v,!1,k,null,null,null);function k(e){for(let s in u)this[s]=u[s]}var S=function(){return E.exports}(),O=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"micro-app-iframe"},[t("iframe",{ref:"iframe",staticClass:"micro-app-iframe-container",class:{"iframe-immersive":e.immersive},attrs:{src:e.src,sandbox:"allow-scripts allow-forms allow-same-origin allow-popups allow-popups-to-escape-sandbox allow-modals allow-pointer-lock allow-storage-access-by-user-activation allow-downloads",allow:"microphone; camera; speaker-selection; geolocation; accelerometer; gyroscope; magnetometer; fullscreen; picture-in-picture; clipboard-read; clipboard-write"}})])},I=[];const T={name:"MicroIFrame",props:{name:{type:String,default:""},url:{type:String,default:""},data:{type:Object,default:null},immersive:{type:Boolean,default:!1}},data(){return{src:this.url,isReady:!1,hasMounted:!1,hearTbeatLastTime:0}},mounted(){this.pendingBeforeCloses=new Map,this.pendingFunctionCalls=new Map,this.boundHandleMessage=this.handleMessage.bind(this),this.boundHandleLoad=this.handleLoad.bind(this),this.boundHandleError=this.handleError.bind(this),window.addEventListener("message",this.boundHandleMessage),this.$refs.iframe.addEventListener("load",this.boundHandleLoad),this.$refs.iframe.addEventListener("error",this.boundHandleError),this.injectMicroApp()},beforeDestroy(){this.boundHandleMessage&&window.removeEventListener("message",this.boundHandleMessage),this.boundHandleLoad&&this.$refs.iframe.removeEventListener("load",this.boundHandleLoad),this.boundHandleError&&this.$refs.iframe.removeEventListener("error",this.boundHandleError),this.pendingFunctionCalls&&(this.pendingFunctionCalls.forEach(e=>{clearTimeout(e.timeout),e.reject(new Error("Component destroyed"))}),this.pendingFunctionCalls.clear()),this.pendingBeforeCloses&&(this.pendingBeforeCloses.forEach(e=>{e(!1)}),this.pendingBeforeCloses.clear())},methods:{handleLoad(){this.injectMicroApp(),this.hasMounted||(this.hasMounted=!0,this.$emit("mounted",{detail:{name:this.name}})),this.detectHttpError()},detectHttpError(){let e;try{e=this.$refs.iframe.contentWindow.performance.getEntriesByType("navigation")[0]}catch{return}e&&e.responseStatus>=500&&this.$emit("load-error",{detail:{name:this.name,status:e.responseStatus}})},handleError(){this.$emit("load-error",{detail:{name:this.name,status:0}})},handleMessage(e){if(!this.isFromCurrentIframe(e))return;const s=e.data.type,t=this.handleMessageEnsureJson(e.data.message);switch(s){case"MICRO_APP_READY":this.handleMessageOfReady(t);break;case"MICRO_APP_HEARTBEAT":this.handleMessageOfHeartbeat(t);break;case"MICRO_APP_METHOD":this.handleMessageOfMethod(t);break;case"MICRO_APP_FUNCTION_RESULT":this.handleMessageOfFunctionResult(t);break;case"MICRO_APP_BEFORE_CLOSE":this.handleMessageOfBeforeClose(t);break;case"MICRO_APP_BEFORE_UNLOAD":this.handleMessageOfBeforeUnload(t);break}},handleMessageEnsureJson(e){return $A.isJson(e)?e:{}},handleMessageOfReady({supportBeforeClose:e}){this.handleLoad(),this.isReady=!0,e&&this.$store.commit("microApps/update",{name:this.name,data:{postMessage:s=>{!this.$refs.iframe||!this.$refs.iframe.contentWindow||this.$refs.iframe.contentWindow.postMessage(s,"*")},onBeforeClose:()=>this.hearTbeatLastTime&&Date.now()-this.hearTbeatLastTime>5e3||!this.$refs.iframe||!this.$refs.iframe.contentWindow?!0:new Promise(s=>{const t={id:$A.randomString(16),name:this.name};this.$refs.iframe.contentWindow.postMessage({type:"MICRO_APP_BEFORE_CLOSE",message:t},"*"),this.pendingBeforeCloses.set(t.id,s)})}})},handleMessageOfHeartbeat(){this.hearTbeatLastTime=Date.now()},handleMessageOfMethod({id:e,method:s,args:t}){if(!this.data||!this.data.methods||!this.data.methods[s])return;const i=r=>{this.$refs.iframe.contentWindow.postMessage({type:"MICRO_APP_METHOD_RESULT",message:{id:e,result:$A.cloneJSON(r)}},"*")},o=r=>{this.$refs.iframe.contentWindow.postMessage({type:"MICRO_APP_METHOD_RESULT",message:{id:e,result:null,error:(r==null?void 0:r.message)||r}},"*")};try{const r=this.deserializeFunctions(t),l=this.data.methods[s](...r);l&&l.then?l.then(i).catch(o):i(l)}catch(r){o(r)}},handleMessageOfFunctionResult({callId:e,result:s,error:t}){const i=this.pendingFunctionCalls.get(e);!i||(this.pendingFunctionCalls.delete(e),clearTimeout(i.timeout),t?i.reject(new Error(t)):i.resolve(s))},handleMessageOfBeforeClose({id:e}){!this.pendingBeforeCloses.has(e)||(this.pendingBeforeCloses.get(e)(),this.pendingBeforeCloses.delete(e))},handleMessageOfBeforeUnload(){this.isReady=!1,this.$store.commit("microApps/update",{name:this.name,data:{onBeforeClose:()=>!0}})},isFromCurrentIframe(e){try{const{source:s}=e;return this.$refs.iframe&&s===this.$refs.iframe.contentWindow}catch{return!1}},deserializeFunctions(e){if(e&&typeof e=="object"&&e.__func)return(...s)=>new Promise((t,i)=>{const o=`call_${Date.now()}_${Math.random().toString(36).substring(2,9)}`,r=setTimeout(()=>{this.pendingFunctionCalls.delete(o),i(new Error("Function call timeout"))},5e3);if(this.pendingFunctionCalls.set(o,{resolve:t,reject:i,timeout:r}),!this.$refs.iframe||!this.$refs.iframe.contentWindow){i(new Error("Iframe not ready"));return}this.$refs.iframe.contentWindow.postMessage({type:"MICRO_APP_FUNCTION_CALL",message:{funcId:e.__func,callId:o,args:s}},"*")});if(Array.isArray(e))return e.map(s=>this.deserializeFunctions(s));if(e&&typeof e=="object"&&e.constructor===Object){const s={};for(const t in e)s[t]=this.deserializeFunctions(e[t]);return s}return e},injectMicroApp(){try{const e=this.$refs.iframe.contentWindow;if(e&&this.data)try{e.microApp={getData:()=>this.data}}catch{e.postMessage({type:"MICRO_APP_INJECT",message:{type:this.data.type,props:this.data.props}},"*")}}catch{}}}},h={};var R=c(T,O,I,!1,x,"6f3e86c7",null,null);function x(e){for(let s in h)this[s]=h[s]}var B=function(){return R.exports}(),P=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[e._l(e.microApps,function(i,o){return t("MicroModal",{key:o,ref:`ref-${i.name}`,refInFor:!0,attrs:{open:i.isOpen,size:1200,options:i,windowType:e.windowType,forceCapsuleVisible:e.loadErrors[i.name]!=null,beforeClose:e.onBeforeClose},on:{"on-capsule-more":e.onCapsuleMore,"on-popout-window":e.onPopoutWindow,"on-confirm-close":e.closeMicroApp}},[e.shouldRenderIFrame(i)?t("MicroIFrame",{key:e.microFrameKey(i.name),attrs:{name:i.name,url:i.url,data:e.appData(i.name),immersive:i.immersive},on:{mounted:e.mounted,"load-error":e.onLoadError}}):e.shouldRenderMicro(i)?t("micro-app",{attrs:{name:i.name,url:i.url,"keep-alive":i.keep_alive,"disable-scopecss":i.disable_scope_css,data:e.appData(i.name)},on:{mounted:e.mounted,error:e.error}}):e._e(),t("transition",{attrs:{name:"fade"}},[e.loadings.includes(i.name)?t("div",{staticClass:"micro-app-loader"},[t("Loading")],1):e._e()]),t("transition",{attrs:{name:"fade"}},[e.loadErrors[i.name]!=null?t("div",{staticClass:"micro-app-error"},[t("div",{staticClass:"micro-app-error-box"},[t("div",{staticClass:"micro-app-error-title"},[e._v(e._s(e.$L("\u5E94\u7528\u52A0\u8F7D\u5931\u8D25")))]),e.loadErrors[i.name]>0?t("div",{staticClass:"micro-app-error-desc"},[e._v(e._s(e.$L("\u670D\u52A1\u5668\u8FD4\u56DE\u9519\u8BEF\uFF08HTTP (*)\uFF09",e.loadErrors[i.name])))]):e._e(),t("div",{staticClass:"micro-app-error-actions"},[t("Button",{attrs:{type:"primary"},on:{click:function(r){return e.retryMicroApp(i.name)}}},[e._v(e._s(e.$L("\u91CD\u8BD5")))]),t("Button",{on:{click:function(r){return e.closeMicroApp(i.name,!0)}}},[e._v(e._s(e.$L("\u5173\u95ED")))])],1)])]):e._e()])],1)}),t("UserSelect",e._b({ref:"userSelect",attrs:{module:""},model:{value:e.userSelectOptions.value,callback:function(i){e.$set(e.userSelectOptions,"value",i)},expression:"userSelectOptions.value"}},"UserSelect",e.userSelectOptions.config,!1)),t("Modal",{attrs:{closable:!0,mask:!1,"mask-closable":!1,"footer-hide":!0,"transition-names":["",""],beforeClose:e.onAssistClose,"class-name":"micro-app-assist"},model:{value:e.assistShow,callback:function(i){e.assistShow=i},expression:"assistShow"}})],2)},L=[];const F={name:"MicroApps",directives:{TransferDom:y},components:{MicroModal:S,UserSelect:p,MicroIFrame:B},props:{windowType:{type:String,default:"embed"}},data(){return{assistShow:!1,isRestarting:!1,userSelectOptions:{value:[],config:{}},backupConfigs:{},loadings:[],closings:[],loadErrors:{},reloadNonce:{}}},created(){a.unmountAllApps({destroy:!0}),a.start({"router-mode":"state",iframe:!0,iframeSrc:window.location.origin+"/assets/empty.html"})},mounted(){n.on("observeMicroApp:open",this.onOpen),n.on("observeMicroApp:close",this.onAssistClose),n.on("observeMicroApp:updatedOrUninstalled",this.onUpdatedOrUninstalled)},beforeDestroy(){n.off("observeMicroApp:open",this.onOpen),n.off("observeMicroApp:close",this.onAssistClose),n.off("observeMicroApp:updatedOrUninstalled",this.onUpdatedOrUninstalled)},watch:{userToken(e){e||this.unmountAllMicroApp()},themeName(){this.unmountAllMicroApp()},assistShow(e){e||this.isRestarting||($A.isSubElectron?$A.Electron.sendMessage("windowDestroy"):this.windowType==="popout"&&window.close())},microApps:{handler(e){this.assistShow=!!e.find(s=>s.isOpen)},deep:!0}},computed:{...f(["userInfo","themeName","microApps","safeAreaSize"])},methods:{mounted(e){this.finish(e.detail.name)},error(e){this.finish(e.detail.name),$A.modalError({language:!1,title:this.$L("\u5E94\u7528\u52A0\u8F7D\u5931\u8D25"),content:e.detail.error,onOk:()=>{this.closeMicroApp(e.detail.name,!0)}})},finish(e){this.loadings=this.loadings.filter(s=>s!==e)},onLoadError(e){this.$set(this.loadErrors,e.detail.name,e.detail.status)},retryMicroApp(e){this.$delete(this.loadErrors,e),this.loadings.push(e),this.$set(this.reloadNonce,e,(this.reloadNonce[e]||0)+1)},microFrameKey(e){return`iframe-${e}-${this.reloadNonce[e]||0}`},appData(e){const s=this.microApps.find(t=>t.name==e);return s?{type:"init",instance:{Vue:A,store:d,components:{DialogWrapper:_,UserSelect:p,DatePicker:w.exports.DatePicker}},props:{...s.props,name:s.name,url:s.url,type:s.type,urlType:s.type,userId:this.userId,userToken:this.userToken,userInfo:this.userInfo,baseUrl:$A.mainUrl(),systemInfo:window.systemInfo,windowType:this.windowType,isEEUIApp:$A.isEEUIApp,isElectron:$A.isElectron,isMainElectron:$A.isMainElectron,isSubElectron:$A.isSubElectron,languageList:$,languageName:C,themeName:this.themeName,safeArea:this.safeAreaSize},methods:{close:(t=!1)=>{this.closeMicroApp(e,t)},back:()=>{this.closeByName(e)},popoutWindow:async(t=null)=>{await this.onPopoutWindow(e,t)},openWindow:t=>{$A.isJson(t)||(t={path:t}),t.url&&(t.path=t.url,delete t.url),$A.isJson(t.config)&&(Object.assign(t,t.config),delete t.config),this.$store.dispatch("openWindow",t)},openTabWindow:t=>{this.$store.dispatch("openWindow",{path:t})},openAppPage:t=>{$A.isJson(t)||(t={url:t}),this.$store.dispatch("openAppChildPage",{pageType:"app",pageTitle:t.title||" ",url:"web.js",params:{url:t.url,titleFixed:typeof t.titleFixed=="boolean"?t.titleFixed:!1}})},requestAPI:async t=>await d.dispatch("call",t),selectUsers:async t=>($A.isJson(t)||(t={value:t}),$A.isArray(t.value)||(t.value=t.value?[t.value]:[]),this.userSelectOptions.value=t.value,delete t.value,this.userSelectOptions.config=t,await new Promise((i,o)=>{this.$refs.userSelect.onSelection(r=>{i(r)},o)})),setCapsuleConfig:t=>{!$A.isJson(t)||(this.$store.commit("microApps/update",{name:e,data:{capsule:t}}),this.setCapsuleCache(e,t))},nextZIndex:()=>typeof window.modalTransferIndex=="number"?window.modalTransferIndex++:1e3,isFullScreen:()=>window.innerWidth<768||this.windowType==="popout",extraCallA:(...t)=>{if(t.length>0&&typeof t[0]=="string"){const i=t[0],o=t.slice(1);if(typeof $A[i]=="function")return $A[i](...o)}return null},extraCallStore:async(...t)=>{if(t.length>0&&typeof t[0]=="string"){const i=t[0],o=t.slice(1);await this.$store.dispatch(i,...o)}return null},extraCallEmitter:async(...t)=>{if(t.length>0&&typeof t[0]=="string"){const i=t[0],o=t.slice(1);n.emit(i,...o)}return null}}}:{}},async setCapsuleCache(e,s){const t=await $A.IDBJson("microAppsCapsuleCache");if($A.isTrue(s.no_cache)){if(typeof t[e]=="undefined")return;delete t[e]}else t[e]=s;await $A.IDBSet("microAppsCapsuleCache",t)},async removeCapsuleCache(e){const s=await $A.IDBJson("microAppsCapsuleCache");typeof s[e]!="undefined"&&(delete s[e],await $A.IDBSet("microAppsCapsuleCache",s))},async onOpen(e){if(this.backupConfigs[e.name]=$A.cloneJSON(e),e.badge_clear_on_open===!0&&e.id){const i=typeof e.key=="string"?e.key:"";this.$store.commit("appBadges/clearMenu",{appid:e.id,menu_key:i}),this.$store.dispatch("call",{url:"apps/badge/clear",method:"post",data:{appid:e.id,menu_key:i}}).catch(()=>{})}const s=await $A.IDBJson("microAppsCapsuleCache");if($A.isJson(s[e.name])&&($A.isHave(e.capsule,!0)?Object.assign(e.capsule,s[e.name]):e.capsule=s[e.name]),e.type=this.resolveType(e.type),/_blank$/i.test(e.type)){await this.inlineBlank(e);return}if(e.type==="external"){await this.externalWindow(e);return}const t=this.microApps.find(({name:i})=>i==e.name);t?(t.keepAliveBackup!==void 0&&(t.keep_alive=t.keepAliveBackup,delete t.keepAliveBackup),(t.url!=e.url||!t.keep_alive)&&(this.unmountMicroApp(t),this.$delete(this.loadErrors,t.name),this.loadings.push(t.name)),Object.assign(t,e),requestAnimationFrame(i=>{t.isOpen=!0,t.lastOpenAt=Date.now(),this.$store.commit("microApps/keepAlive",3)})):(e.isOpen=!1,e.postMessage=()=>{},e.onBeforeClose=()=>!0,this.$store.commit("microApps/push",e),this.$delete(this.loadErrors,e.name),this.loadings.push(e.name),requestAnimationFrame(i=>{e.isOpen=!0,e.lastOpenAt=Date.now(),this.$store.commit("microApps/keepAlive",3)}))},async inlineBlank(e,s=null){const t={...e,type:e.type.replace(/_blank$/,""),transparent:!0,keep_alive:!1};s!=null&&s.url&&(t.url=s.url,delete s.url);const i=`/single/apps/${t.name}`,o=(await $A.IDBArray("cacheMicroApps")).filter(r=>r.name!=t.name);if(o.length>50&&o.splice(0,10),o.push(t),await $A.IDBSet("cacheMicroApps",$A.cloneJSON(o)),this.$Electron){const r=Object.assign({title:t.title||" "},$A.isJson(s)?s:{});await this.$store.dispatch("openWindow",{name:`single-apps-${$A.randomString(6)}`,path:i,title:r.title,width:r.width,height:r.height})}else this.$isEEUIApp?await this.$store.dispatch("openAppChildPage",{pageType:"app",pageTitle:" ",url:"web.js",params:{url:$A.urlReplaceHash(i)}}):window.open($A.mainUrl(i.substring(1)))},async externalWindow(e){this.$Electron?await this.$store.dispatch("openWindow",{name:`external-apps-${$A.randomString(6)}`,path:e.url,title:e.title||" "}):this.$isEEUIApp?await this.$store.dispatch("openAppChildPage",{pageType:"app",pageTitle:" ",url:"web.js",params:{url:e.url}}):window.open(e.url)},closeAppState(e){this.loadings=this.loadings.filter(s=>s!==e.name),this.closings.push(e.name),e.isOpen=!1,setTimeout(()=>{this.closings=this.closings.filter(s=>s!==e.name)},300)},closeByName(e){try{this.$refs[`ref-${e}`][0].attemptClose()}catch{this.closeMicroApp(e)}},closeMicroApp(e,s=!1){const t=this.microApps.find(i=>i.name==e);!t||(this.closeAppState(t),this.$delete(this.loadErrors,e),s===!0&&this.unmountMicroApp(t))},unmountMicroApp(e){e.keep_alive&&(e.keepAliveBackup=!0,e.keep_alive=!1),a.unmountApp(e.name,{destroy:!0})},unmountAllMicroApp(){this.microApps.forEach(e=>{this.closeAppState(e),this.unmountMicroApp(e)})},onBeforeClose(e){return new Promise(s=>{const t=()=>{$A.isSubElectron?$A.Electron.sendMessage("windowDestroy"):s()},i=this.microApps.find(o=>o.name==e);if(!i){t();return}if(this.isIframe(i.type)){const o=i.onBeforeClose();o&&o.then?o.then(()=>{t()}):t();return}a.forceSetData(e,{type:"beforeClose"},o=>{o!=null&&o.find(r=>r===!0)||($A.leftExists(e,"appstore")&&this.$store.dispatch("updateMicroAppsStatus"),t())})})},onAssistClose(){return new Promise(e=>{const s=this.microApps.findLast(t=>t.isOpen);s?this.closeByName(s.name):e()})},onCapsuleMore(e,s){switch(s){case"popout":this.onPopoutWindow(e);break;case"restart":this.removeCapsuleCache(e),this.onRestartApp(e);break;case"destroy":this.removeCapsuleCache(e),this.closeMicroApp(e,!0);break;default:const t=this.microApps.find(i=>i.name==e);if(!t)return;if(this.isIframe(t.type)){t.postMessage({type:"MICRO_APP_MENU_CLICK",message:s});return}a.forceSetData(e,{type:"menuClick",message:s});break}},async onRestartApp(e){this.isRestarting=!0;try{this.closeMicroApp(e,!0),await new Promise(t=>setTimeout(t,300));const s=this.backupConfigs[e];if(!s){$A.modalError("\u5E94\u7528\u4E0D\u5B58\u5728");return}await this.onOpen(s)}finally{this.isRestarting=!1}},async onPopoutWindow(e,s=null){const t=this.microApps.find(i=>i.name==e);if(!t){$A.modalError("\u5E94\u7528\u4E0D\u5B58\u5728");return}await this.inlineBlank(t,s),this.closeMicroApp(e,!0)},isIframe(e){return/^iframe/i.test(e)},shouldRenderIFrame(e){return e.url&&this.isIframe(e.type)&&(e.isOpen||e.keep_alive)},shouldRenderMicro(e){return e.url&&!this.isIframe(e.type)&&(e.isOpen||this.closings.includes(e.name))},onUpdatedOrUninstalled(e){const s=e.map(t=>t.id);s.length!==0&&(e.forEach(t=>{t.type==="uninstall"&&this.$store.commit("appBadges/clearApp",t.id)}),this.microApps.forEach(t=>{s.includes(t.id)&&this.closeMicroApp(t.name,!0)}))},resolveType(e){if(typeof e=="string")return e;if($A.isJson(e)){const s=typeof e.default=="string"?e.default:"iframe",t=typeof e.mobile=="string"?e.mobile:typeof e.app=="string"?e.app:s,i=typeof e.desktop=="string"?e.desktop:s;return["web","mac","win"].includes($A.Platform)?i:t}return"inline"}}},m={};var D=c(F,P,L,!1,N,null,null,null);function N(e){for(let s in m)this[s]=m[s]}var Z=function(){return D.exports}();export{Z as M};
diff --git a/public/js/build/index.a8a8b23a.js b/public/js/build/index.a8a8b23a.js
deleted file mode 100644
index 78fce5374..000000000
--- a/public/js/build/index.a8a8b23a.js
+++ /dev/null
@@ -1 +0,0 @@
-import{a as l,m}from"./vuex.cc7cb26e.js";import{n as o,e as p}from"./app.818b057c.js";import"./jquery.c87f487f.js";import"./@babel.9410f858.js";import"./dayjs.fd4aa75c.js";import"./localforage.8de7c27e.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./vue.adba9046.js";import"./openpgp_hi.15f91b1d.js";import"./axios.37c7f908.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./view-design-hi.24419422.js";import"./html-to-md.f297036e.js";import"./lodash.8fcd6fd4.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vuedraggable.f464b992.js";import"./sortablejs.3488b922.js";import"./vue-resize-observer.5af23a43.js";import"./element-sea.f8a64907.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var c=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"mobile-nav-box"},[t._t("left",function(){return[e("div",{staticClass:"nav-back",on:{click:t.onBack}},[e("i",{staticClass:"taskfont"},[t._v("\uE676")])])]}),e("div",{staticClass:"nav-title"},[t._v(t._s(t.title))]),t._t("right")],2)},u=[];const h={name:"MobileNavTitle",props:{title:{default:""},beforeBack:{type:Function}},methods:{onBack(){if(typeof this.beforeBack=="function"){const t=this.beforeBack();t&&t.then&&t.then(()=>{this.goBack()});return}this.goBack()}}},n={};var v=o(h,c,u,!1,d,"305e6ddf",null,null);function d(t){for(let i in n)this[i]=n[i]}var _=function(){return v.exports}(),g=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"page-setting"},[e("PageTitle",{attrs:{title:t.titleNameRoute}}),e("div",{staticClass:"setting-head"},[e("div",{staticClass:"setting-titbox"},[e("div",{staticClass:"setting-title"},[e("h1",[t._v(t._s(t.settingTitleName))])])])]),e("div",{staticClass:"setting-box"},[e("div",{staticClass:"setting-menu"},[e("MobileNavTitle",{attrs:{title:t.$L("\u8BBE\u7F6E")}}),e("ul",t._l(t.menu,function(s,r){return e("li",{key:r,class:t.classNameRoute(s.path,s.divided),on:{click:function(b){return t.toggleRoute(s.path)}}},[s.path==="device"?[e("AutoTip",[t._v(t._s(t.$L(s.name)))]),t.deviceCount>0?e("span",{staticClass:"op-8"},[t._v(t._s(t.deviceCount))]):t._e()]:s.path==="version"?[e("AutoTip",{attrs:{disabled:""}},[t._v(t._s(t.$L(s.name)))]),t.clientNewVersion?e("Badge",{attrs:{text:t.clientNewVersion}}):t._e()]:s.path==="version-show"?[e("AutoTip",[t._v(t._s(t.$L(s.name))+": "+t._s(t.clientVersion))])]:e("span",[t._v(t._s(t.$L(s.name)))])],2)}),0)],1),e("transition",{attrs:{name:t.$isEEUIApp?"mobile-dialog":"none"}},[t.showContent?e("div",{staticClass:"setting-content"},[e("MobileNavTitle",{attrs:{title:t.settingTitleName}}),e("div",{staticClass:"setting-content-title"},[t._v(t._s(t.titleNameRoute))]),e("div",{staticClass:"setting-content-view"},[e("router-view",{staticClass:"setting-router-view"})],1)],1):t._e()])],1)],1)},$=[];const f={components:{MobileNavTitle:_},data(){return{deviceCount:0,serverVersion:null,clientVersion:window.systemInfo.version}},mounted(){this.$isEEUIApp&&(this.clientVersion=`${window.systemInfo.version} (${$A.eeuiAppLocalVersion()})`)},activated(){this.getVersion()},computed:{...l(["aiVisible"]),...m(["userInfo","userIsAdmin","clientNewVersion","systemConfig"]),showContent(){return this.$route.path.match(/^\/manage\/setting\/\w+$/)},menu(){const t=[{path:"personal",name:"\u4E2A\u4EBA\u8BBE\u7F6E"},{path:"password",name:"\u5BC6\u7801\u8BBE\u7F6E"},{path:"email",name:"\u4FEE\u6539\u90AE\u7BB1"},{path:"language",name:"\u8BED\u8A00\u8BBE\u7F6E",divided:!0},{path:"theme",name:"\u4E3B\u9898\u8BBE\u7F6E"}];return(this.$Electron||this.$isEEUIApp)&&t.push({path:"keyboard",name:"\u952E\u76D8\u8BBE\u7F6E"}),this.aiVisible&&t.push({path:"assistant",name:"AI \u52A9\u624B\u8BBE\u7F6E"}),$A.isDooServer()&&this.$isEEUIApp&&t.push({path:"privacy",name:"\u9690\u79C1\u653F\u7B56",divided:!0},{path:"delete",name:"\u5220\u9664\u5E10\u53F7"}),this.userIsAdmin&&t.push({path:"system",name:"\u7CFB\u7EDF\u8BBE\u7F6E",divided:!0},{path:"license",name:"License Key"}),t.push({path:"version",name:"\u66F4\u65B0\u65E5\u5FD7",divided:!0},{path:"version-show",name:"\u7248\u672C"},{path:"device",name:"\u767B\u5F55\u8BBE\u5907",divided:!0},{path:"clearCache",name:"\u6E05\u9664\u7F13\u5B58"},{path:"logout",name:"\u9000\u51FA\u767B\u5F55"}),t},titleNameRoute(){const{routeName:t,menu:i}=this;let e="";return i.some(s=>{if(t===`manage-setting-${s.path}`)return e=`${this.$L(s.name)}${s.desc||""}`,!0}),e||this.$L("\u8BBE\u7F6E")},settingTitleName(){return this.windowPortrait?this.titleNameRoute:this.$L("\u8BBE\u7F6E")}},watch:{routeName:{handler(t){t==="manage-setting"&&this.windowLandscape?this.goForward({name:"manage-setting-personal"},!0):t==="manage-setting-assistant"&&!this.aiVisible&&this.goForward({name:"manage-setting-personal"},!0)},immediate:!0},aiVisible(t){this.routeName==="manage-setting-assistant"&&!t&&this.goForward({name:"manage-setting-personal"},!0)}},methods:{toggleRoute(t){switch(t){case"clearCache":$A.modalConfirm({title:"\u6E05\u9664\u7F13\u5B58",content:"\u4F60\u786E\u5B9A\u8981\u6E05\u9664\u7F13\u5B58\u5417\uFF1F",onOk:()=>{$A.IDBSet("clearCache","handle").then(i=>{$A.reloadUrl()})}});break;case"logout":$A.modalConfirm({title:"\u9000\u51FA\u767B\u5F55",content:"\u4F60\u786E\u5B9A\u8981\u767B\u51FA\u7CFB\u7EDF\u5417\uFF1F",loading:!0,onOk:()=>new Promise(async i=>{await this.$store.dispatch("logout",!1),i()})});break;case"version-show":this.onVersion();break;case"privacy":this.openPrivacy();break;case"index":this.goForward({name:"manage-setting"});break;default:if(t==="version"&&!!this.clientNewVersion){p.emit("updateNotification",null);return}this.goForward({name:"manage-setting-"+t});break}},openPrivacy(){const t=$A.apiUrl("privacy");this.$isEEUIApp?this.$store.dispatch("openAppChildPage",{pageType:"app",pageTitle:" ",url:"web.js",params:{url:t}}):window.open(t)},classNameRoute(t,i){return{flex:!0,active:this.windowLandscape&&this.routeName===`manage-setting-${t}`,divided:!!i}},async onVersion(){const t=[`${this.$L("\u670D\u52A1\u5668")}: ${$A.mainDomain()}`];this.serverVersion?t.push(`${this.$L("\u670D\u52A1\u5668\u7248\u672C")}: v${this.serverVersion}`):t.push(`${this.$L("\u670D\u52A1\u5668\u7248\u672C")}: `+this.$L("\u83B7\u53D6\u5931\u8D25")),t.push(`${this.$L("\u5BA2\u6237\u7AEF\u7248\u672C")}: v${this.clientVersion}`),$A.modalInfo({language:!1,title:this.$L("\u7248\u672C\u4FE1\u606F"),content:t.join(" ")})},getVersion(){this.versionTimer&&clearTimeout(this.versionTimer),this.versionTimer=setTimeout(()=>{this.$store.dispatch("call",{url:"system/version"}).then(({data:t})=>{this.serverVersion=t.version,this.deviceCount=t.device_count}).catch(()=>{})},this.versionTimer?1e3:0)},updateDeviceCount(t){this.deviceCount=t}}},a={};var w=o(f,g,$,!1,C,null,null,null);function C(t){for(let i in a)this[i]=a[i]}var dt=function(){return w.exports}();export{dt as default};
diff --git a/public/js/build/index.cc0c8724.js b/public/js/build/index.cc0c8724.js
new file mode 100644
index 000000000..ee8dace61
--- /dev/null
+++ b/public/js/build/index.cc0c8724.js
@@ -0,0 +1 @@
+import{m as p}from"./vuex.cc7cb26e.js";import{n as o,e as l}from"./app.ef7047f7.js";import"./jquery.6e4daff9.js";import"./@babel.9410f858.js";import"./dayjs.d20a4841.js";import"./localforage.743dffdd.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./vue.adba9046.js";import"./openpgp_hi.15f91b1d.js";import"./axios.37c7f908.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./view-design-hi.24419422.js";import"./html-to-md.f297036e.js";import"./lodash.8fcd6fd4.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vuedraggable.f464b992.js";import"./sortablejs.3488b922.js";import"./vue-resize-observer.5af23a43.js";import"./element-sea.f8a64907.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var m=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"mobile-nav-box"},[t._t("left",function(){return[e("div",{staticClass:"nav-back",on:{click:t.onBack}},[e("i",{staticClass:"taskfont"},[t._v("\uE676")])])]}),e("div",{staticClass:"nav-title"},[t._v(t._s(t.title))]),t._t("right")],2)},c=[];const u={name:"MobileNavTitle",props:{title:{default:""},beforeBack:{type:Function}},methods:{onBack(){if(typeof this.beforeBack=="function"){const t=this.beforeBack();t&&t.then&&t.then(()=>{this.goBack()});return}this.goBack()}}},n={};var h=o(u,m,c,!1,d,"305e6ddf",null,null);function d(t){for(let s in n)this[s]=n[s]}var v=function(){return h.exports}(),_=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"page-setting"},[e("PageTitle",{attrs:{title:t.titleNameRoute}}),e("div",{staticClass:"setting-head"},[e("div",{staticClass:"setting-titbox"},[e("div",{staticClass:"setting-title"},[e("h1",[t._v(t._s(t.settingTitleName))])])])]),e("div",{staticClass:"setting-box"},[e("div",{staticClass:"setting-menu"},[e("MobileNavTitle",{attrs:{title:t.$L("\u8BBE\u7F6E")}}),e("ul",t._l(t.menu,function(i,r){return e("li",{key:r,class:t.classNameRoute(i.path,i.divided),on:{click:function(C){return t.toggleRoute(i.path)}}},[i.path==="device"?[e("AutoTip",[t._v(t._s(t.$L(i.name)))]),t.deviceCount>0?e("span",{staticClass:"op-8"},[t._v(t._s(t.deviceCount))]):t._e()]:i.path==="version"?[e("AutoTip",{attrs:{disabled:""}},[t._v(t._s(t.$L(i.name)))]),t.clientNewVersion?e("Badge",{attrs:{text:t.clientNewVersion}}):t._e()]:i.path==="system-update"?[e("AutoTip",{attrs:{disabled:""}},[t._v(t._s(t.$L(i.name)))]),t.systemNewVersion?e("Badge",{attrs:{text:t.systemNewVersion}}):t._e()]:i.path==="version-show"?[e("AutoTip",[t._v(t._s(t.$L(i.name))+": "+t._s(t.clientVersion))])]:e("span",[t._v(t._s(t.$L(i.name)))])],2)}),0)],1),e("transition",{attrs:{name:t.$isEEUIApp?"mobile-dialog":"none"}},[t.showContent?e("div",{staticClass:"setting-content"},[e("MobileNavTitle",{attrs:{title:t.settingTitleName}}),e("div",{staticClass:"setting-content-title"},[t._v(t._s(t.titleNameRoute))]),e("div",{staticClass:"setting-content-view"},[e("router-view",{staticClass:"setting-router-view"})],1)],1):t._e()])],1)],1)},g=[];const $={components:{MobileNavTitle:v},data(){return{deviceCount:0,serverVersion:null,clientVersion:window.systemInfo.version}},mounted(){this.$isEEUIApp&&(this.clientVersion=`${window.systemInfo.version} (${$A.eeuiAppLocalVersion()})`)},activated(){this.getVersion()},computed:{...p(["userInfo","userIsAdmin","clientNewVersion","systemNewVersion","systemConfig"]),showContent(){return this.$route.path.match(/^\/manage\/setting\/[\w-]+$/)},menu(){const t=[{path:"personal",name:"\u4E2A\u4EBA\u8BBE\u7F6E"},{path:"password",name:"\u5BC6\u7801\u8BBE\u7F6E"},{path:"email",name:"\u4FEE\u6539\u90AE\u7BB1"},{path:"language",name:"\u8BED\u8A00\u8BBE\u7F6E",divided:!0},{path:"theme",name:"\u4E3B\u9898\u8BBE\u7F6E"}];return(this.$Electron||this.$isEEUIApp)&&t.push({path:"keyboard",name:"\u952E\u76D8\u8BBE\u7F6E"}),$A.isDooServer()&&this.$isEEUIApp&&t.push({path:"privacy",name:"\u9690\u79C1\u653F\u7B56",divided:!0},{path:"delete",name:"\u5220\u9664\u5E10\u53F7"}),this.userIsAdmin&&t.push({path:"system",name:"\u7CFB\u7EDF\u8BBE\u7F6E",divided:!0},{path:"license",name:"License Key"}),this.userIsAdmin&&t.push({path:"system-update",name:"\u7CFB\u7EDF\u66F4\u65B0",divided:!0}),t.push({path:"version",name:this.clientNewVersion?"\u66F4\u65B0\u5BA2\u6237\u7AEF":"\u66F4\u65B0\u65E5\u5FD7",title:"\u66F4\u65B0\u65E5\u5FD7",divided:!this.userIsAdmin},{path:"version-show",name:"\u7248\u672C"},{path:"device",name:"\u767B\u5F55\u8BBE\u5907",divided:!0},{path:"clearCache",name:"\u6E05\u9664\u7F13\u5B58"},{path:"logout",name:"\u9000\u51FA\u767B\u5F55"}),t},titleNameRoute(){const{routeName:t,menu:s}=this;let e="";return s.some(i=>{if(t===`manage-setting-${i.path}`)return e=`${this.$L(i.title||i.name)}${i.desc||""}`,!0}),e||this.$L("\u8BBE\u7F6E")},settingTitleName(){return this.windowPortrait?this.titleNameRoute:this.$L("\u8BBE\u7F6E")}},watch:{routeName:{handler(t){t==="manage-setting"&&this.windowLandscape&&this.goForward({name:"manage-setting-personal"},!0)},immediate:!0}},methods:{toggleRoute(t){switch(t){case"clearCache":$A.modalConfirm({title:"\u6E05\u9664\u7F13\u5B58",content:"\u4F60\u786E\u5B9A\u8981\u6E05\u9664\u7F13\u5B58\u5417\uFF1F",onOk:()=>{$A.IDBSet("clearCache","handle").then(s=>{$A.reloadUrl()})}});break;case"logout":$A.modalConfirm({title:"\u9000\u51FA\u767B\u5F55",content:"\u4F60\u786E\u5B9A\u8981\u767B\u51FA\u7CFB\u7EDF\u5417\uFF1F",loading:!0,onOk:()=>new Promise(async s=>{await this.$store.dispatch("logout",!1),s()})});break;case"version-show":this.onVersion();break;case"privacy":this.openPrivacy();break;case"index":this.goForward({name:"manage-setting"});break;default:if(t==="version"&&!!this.clientNewVersion){l.emit("updateNotification",null);return}this.goForward({name:"manage-setting-"+t});break}},openPrivacy(){const t=$A.apiUrl("privacy");this.$isEEUIApp?this.$store.dispatch("openAppChildPage",{pageType:"app",pageTitle:" ",url:"web.js",params:{url:t}}):window.open(t)},classNameRoute(t,s){return{flex:!0,active:this.windowLandscape&&this.routeName===`manage-setting-${t}`,divided:!!s}},async onVersion(){const t=[`${this.$L("\u670D\u52A1\u5668")}: ${$A.mainDomain()}`];this.serverVersion?t.push(`${this.$L("\u670D\u52A1\u5668\u7248\u672C")}: v${this.serverVersion}`):t.push(`${this.$L("\u670D\u52A1\u5668\u7248\u672C")}: `+this.$L("\u83B7\u53D6\u5931\u8D25")),t.push(`${this.$L("\u5BA2\u6237\u7AEF\u7248\u672C")}: v${this.clientVersion}`),$A.modalInfo({language:!1,title:this.$L("\u7248\u672C\u4FE1\u606F"),content:t.join(" ")})},getVersion(){this.versionTimer&&clearTimeout(this.versionTimer),this.versionTimer=setTimeout(()=>{this.$store.dispatch("call",{url:"system/version"}).then(({data:t})=>{this.serverVersion=t.version,this.deviceCount=t.device_count}).catch(()=>{})},this.versionTimer?1e3:0)},updateDeviceCount(t){this.deviceCount=t}}},a={};var f=o($,_,g,!1,w,null,null,null);function w(t){for(let s in a)this[s]=a[s]}var dt=function(){return f.exports}();export{dt as default};
diff --git a/public/js/build/index.eb447f83.js b/public/js/build/index.eb447f83.js
new file mode 100644
index 000000000..6217451eb
--- /dev/null
+++ b/public/js/build/index.eb447f83.js
@@ -0,0 +1 @@
+import{V as A}from"./vue.adba9046.js";import{m as f}from"./vuex.cc7cb26e.js";import{i as w}from"./view-design-hi.24419422.js";import{m as a}from"./@micro-zoe.39406924.js";import{D as _}from"./DialogWrapper.bc988036.js";import{d as y,n as c,U as p,e as n,s as d,g as $,l as C}from"./app.ef7047f7.js";import{R as b}from"./index.f7653997.js";var g=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{directives:[{name:"transfer-dom",rawName:"v-transfer-dom"}],attrs:{"data-transfer":!0}},[t("div",{class:e.className,style:e.wrapStyle},[t("transition",{attrs:{name:e.transitions[0]}},[e.shouldRenderInDom?t("div",{directives:[{name:"show",rawName:"v-show",value:e.open,expression:"open"}],staticClass:"micro-modal-mask",style:e.maskStyle}):e._e()]),t("transition",{attrs:{name:e.transitions[1]}},[e.shouldRenderInDom?t("div",{directives:[{name:"show",rawName:"v-show",value:e.open,expression:"open"}],staticClass:"micro-modal-content",style:e.contentStyle},[e.capsuleMenuShow?t("div",{staticClass:"micro-modal-cmask"}):e._e(),t("div",{staticClass:"micro-modal-capsule",style:e.capsuleStyle},[t("div",{staticClass:"micro-modal-capsule-item",on:{click:e.onCapsuleMore}},[t("svg",{attrs:{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M2 11C3.10457 11 4 10.1046 4 9C4 7.89543 3.10457 7 2 7C0.895431 7 0 7.89543 0 9C0 10.1046 0.895431 11 2 11Z",fill:"currentColor"}}),t("path",{attrs:{d:"M9 12C10.6569 12 12 10.6569 12 9C12 7.34315 10.6569 6 9 6C7.34315 6 6 7.34315 6 9C6 10.6569 7.34315 12 9 12Z",fill:"currentColor"}}),t("path",{attrs:{d:"M16 11C17.1046 11 18 10.1046 18 9C18 7.89543 17.1046 7 16 7C14.8954 7 14 7.89543 14 9C14 10.1046 14.8954 11 16 11Z",fill:"currentColor"}})])]),t("div",{staticClass:"micro-modal-capsule-line"}),t("div",{staticClass:"micro-modal-capsule-item",on:{click:e.attemptClose}},[t("svg",{attrs:{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M9 16C12.866 16 16 12.866 16 9C16 5.13401 12.866 2 9 2C5.13401 2 2 5.13401 2 9C2 12.866 5.13401 16 9 16Z",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}}),t("path",{attrs:{d:"M9 12C10.6569 12 12 10.6569 12 9C12 7.34315 10.6569 6 9 6C7.34315 6 6 7.34315 6 9C6 10.6569 7.34315 12 9 12Z",fill:"currentColor"}})])])]),t("ResizeLine",{staticClass:"micro-modal-resize",attrs:{placement:"right",min:e.minSize,max:0,reverse:!0,beforeResize:e.beforeResize},on:{"on-change":e.onChangeResize},model:{value:e.dynamicSize,callback:function(i){e.dynamicSize=i},expression:"dynamicSize"}}),t("div",{ref:"body",staticClass:"micro-modal-body",style:e.bodyStyle},[e._t("default")],2)],1):e._e()])],1)])},v=[];const M={name:"MicroModal",components:{ResizeLine:b},directives:{TransferDom:y},props:{open:{type:Boolean,default:!1},size:{type:Number,default:300},minSize:{type:Number,default:300},options:{type:Object,default:()=>({})},windowType:{type:String,default:"embed"},forceCapsuleVisible:{type:Boolean,default:!1},beforeClose:Function},data(){return{dynamicSize:0,zIndex:1e3,capsuleMenuShow:!1}},computed:{...f(["themeName"]),shouldRenderInDom(){return this.open||!!this.options.keep_alive},className(){return{"micro-modal":!0,"micro-modal-hidden":!this.open,"no-dark-content":!this.options.auto_dark_theme,"transparent-mode":!!this.options.transparent,[`${this.windowType}-window`]:!0}},transitions(){return this.options.transparent?["",""]:["micro-modal-fade","micro-modal-slide"]},bodyStyle(){const e={"--micro-body-background-color":"transparent"};if(this.options.background){const s=`${this.options.background}|`.split("|");e["--micro-body-background-color"]=(this.themeName==="dark"?s[1]:null)||s[0]}return e},wrapStyle({zIndex:e}){return{zIndex:e}},maskStyle({zIndex:e}){return{zIndex:e}},contentStyle({dynamicSize:e,zIndex:s}){return{width:e<=100?`${e}%`:`${e}px`,zIndex:s}},capsuleStyle(){const e={zIndex:this.zIndex+1e3},{capsule:s}=this.options;return $A.isJson(s)&&(!this.forceCapsuleVisible&&!this.getCapsuleVisible(s.visible)&&(e.display="none"),typeof s.top=="number"&&(e.top=`${s.top}px`),typeof s.right=="number"&&(e.right=`${s.right}px`)),e}},watch:{open:{handler(e){e&&(this.zIndex=typeof window.modalTransferIndex=="number"?window.modalTransferIndex++:1e3)},immediate:!0},size:{handler(e){this.dynamicSize=parseInt(e)},immediate:!0}},methods:{beforeResize(){return new Promise(e=>{this.dynamicSize<=100&&this.updateSize(),e()})},onChangeResize({event:e}){e==="up"&&this.updateSize()},updateSize(){this.$refs.body&&(this.dynamicSize=this.$refs.body.clientWidth)},onCapsuleMore(e){const s=[],{capsule:t}=this.options;$A.isJson(t)&&$A.isArray(t.more_menus)&&t.more_menus.forEach(o=>{o.label&&o.value&&s.push(o)});const i=[{label:this.$L("\u91CD\u542F\u5E94\u7528"),value:"restart"},{label:this.$L("\u5173\u95ED\u5E94\u7528"),value:"destroy"}];$A.isMainElectron&&i.unshift({label:this.$L("\u65B0\u7A97\u53E3\u6253\u5F00"),value:"popout"}),s.length>0&&(i[0].divided=!0),this.$store.commit("menu/operation",{event:e,list:[...s,...i],size:"large",onVisibleChange:o=>{this.capsuleMenuShow=o},onUpdate:o=>{this.$emit("on-capsule-more",this.options.name,o)}})},attemptClose(){if(!this.beforeClose)return this.handleClose();const e=this.beforeClose(this.options.name);e&&e.then?e.then(()=>{this.handleClose()}):this.handleClose()},handleClose(){this.$emit("on-confirm-close",this.options.name)},getCapsuleVisible(e){if(typeof e=="boolean")return e;if($A.isJson(e)){const s=typeof e.default=="boolean"?e.default:!0;return this.windowType==="popout"?typeof e.popout=="boolean"?e.popout:s:this.windowType==="embed"&&typeof e.embed=="boolean"?e.embed:s}return!0}}},u={};var E=c(M,g,v,!1,k,null,null,null);function k(e){for(let s in u)this[s]=u[s]}var S=function(){return E.exports}(),O=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"micro-app-iframe"},[t("iframe",{ref:"iframe",staticClass:"micro-app-iframe-container",class:{"iframe-immersive":e.immersive},attrs:{src:e.src,sandbox:"allow-scripts allow-forms allow-same-origin allow-popups allow-popups-to-escape-sandbox allow-modals allow-pointer-lock allow-storage-access-by-user-activation allow-downloads",allow:"microphone; camera; speaker-selection; geolocation; accelerometer; gyroscope; magnetometer; fullscreen; picture-in-picture; clipboard-read; clipboard-write"}})])},I=[];const T={name:"MicroIFrame",props:{name:{type:String,default:""},url:{type:String,default:""},data:{type:Object,default:null},immersive:{type:Boolean,default:!1}},data(){return{src:this.url,isReady:!1,hasMounted:!1,hearTbeatLastTime:0}},mounted(){this.pendingBeforeCloses=new Map,this.pendingFunctionCalls=new Map,this.boundHandleMessage=this.handleMessage.bind(this),this.boundHandleLoad=this.handleLoad.bind(this),this.boundHandleError=this.handleError.bind(this),window.addEventListener("message",this.boundHandleMessage),this.$refs.iframe.addEventListener("load",this.boundHandleLoad),this.$refs.iframe.addEventListener("error",this.boundHandleError),this.injectMicroApp()},beforeDestroy(){this.boundHandleMessage&&window.removeEventListener("message",this.boundHandleMessage),this.boundHandleLoad&&this.$refs.iframe.removeEventListener("load",this.boundHandleLoad),this.boundHandleError&&this.$refs.iframe.removeEventListener("error",this.boundHandleError),this.pendingFunctionCalls&&(this.pendingFunctionCalls.forEach(e=>{clearTimeout(e.timeout),e.reject(new Error("Component destroyed"))}),this.pendingFunctionCalls.clear()),this.pendingBeforeCloses&&(this.pendingBeforeCloses.forEach(e=>{e(!1)}),this.pendingBeforeCloses.clear())},methods:{handleLoad(){this.injectMicroApp(),this.hasMounted||(this.hasMounted=!0,this.$emit("mounted",{detail:{name:this.name}})),this.detectHttpError()},detectHttpError(){let e;try{e=this.$refs.iframe.contentWindow.performance.getEntriesByType("navigation")[0]}catch{return}e&&e.responseStatus>=500&&this.$emit("load-error",{detail:{name:this.name,status:e.responseStatus}})},handleError(){this.$emit("load-error",{detail:{name:this.name,status:0}})},handleMessage(e){if(!this.isFromCurrentIframe(e))return;const s=e.data.type,t=this.handleMessageEnsureJson(e.data.message);switch(s){case"MICRO_APP_READY":this.handleMessageOfReady(t);break;case"MICRO_APP_HEARTBEAT":this.handleMessageOfHeartbeat(t);break;case"MICRO_APP_METHOD":this.handleMessageOfMethod(t);break;case"MICRO_APP_FUNCTION_RESULT":this.handleMessageOfFunctionResult(t);break;case"MICRO_APP_BEFORE_CLOSE":this.handleMessageOfBeforeClose(t);break;case"MICRO_APP_BEFORE_UNLOAD":this.handleMessageOfBeforeUnload(t);break}},handleMessageEnsureJson(e){return $A.isJson(e)?e:{}},handleMessageOfReady({supportBeforeClose:e}){this.handleLoad(),this.isReady=!0,e&&this.$store.commit("microApps/update",{name:this.name,data:{postMessage:s=>{!this.$refs.iframe||!this.$refs.iframe.contentWindow||this.$refs.iframe.contentWindow.postMessage(s,"*")},onBeforeClose:()=>this.hearTbeatLastTime&&Date.now()-this.hearTbeatLastTime>5e3||!this.$refs.iframe||!this.$refs.iframe.contentWindow?!0:new Promise(s=>{const t={id:$A.randomString(16),name:this.name};this.$refs.iframe.contentWindow.postMessage({type:"MICRO_APP_BEFORE_CLOSE",message:t},"*"),this.pendingBeforeCloses.set(t.id,s)})}})},handleMessageOfHeartbeat(){this.hearTbeatLastTime=Date.now()},handleMessageOfMethod({id:e,method:s,args:t}){if(!this.data||!this.data.methods||!this.data.methods[s])return;const i=r=>{this.$refs.iframe.contentWindow.postMessage({type:"MICRO_APP_METHOD_RESULT",message:{id:e,result:$A.cloneJSON(r)}},"*")},o=r=>{this.$refs.iframe.contentWindow.postMessage({type:"MICRO_APP_METHOD_RESULT",message:{id:e,result:null,error:(r==null?void 0:r.message)||r}},"*")};try{const r=this.deserializeFunctions(t),l=this.data.methods[s](...r);l&&l.then?l.then(i).catch(o):i(l)}catch(r){o(r)}},handleMessageOfFunctionResult({callId:e,result:s,error:t}){const i=this.pendingFunctionCalls.get(e);!i||(this.pendingFunctionCalls.delete(e),clearTimeout(i.timeout),t?i.reject(new Error(t)):i.resolve(s))},handleMessageOfBeforeClose({id:e}){!this.pendingBeforeCloses.has(e)||(this.pendingBeforeCloses.get(e)(),this.pendingBeforeCloses.delete(e))},handleMessageOfBeforeUnload(){this.isReady=!1,this.$store.commit("microApps/update",{name:this.name,data:{onBeforeClose:()=>!0}})},isFromCurrentIframe(e){try{const{source:s}=e;return this.$refs.iframe&&s===this.$refs.iframe.contentWindow}catch{return!1}},deserializeFunctions(e){if(e&&typeof e=="object"&&e.__func)return(...s)=>new Promise((t,i)=>{const o=`call_${Date.now()}_${Math.random().toString(36).substring(2,9)}`,r=setTimeout(()=>{this.pendingFunctionCalls.delete(o),i(new Error("Function call timeout"))},5e3);if(this.pendingFunctionCalls.set(o,{resolve:t,reject:i,timeout:r}),!this.$refs.iframe||!this.$refs.iframe.contentWindow){i(new Error("Iframe not ready"));return}this.$refs.iframe.contentWindow.postMessage({type:"MICRO_APP_FUNCTION_CALL",message:{funcId:e.__func,callId:o,args:s}},"*")});if(Array.isArray(e))return e.map(s=>this.deserializeFunctions(s));if(e&&typeof e=="object"&&e.constructor===Object){const s={};for(const t in e)s[t]=this.deserializeFunctions(e[t]);return s}return e},injectMicroApp(){try{const e=this.$refs.iframe.contentWindow;if(e&&this.data)try{e.microApp={getData:()=>this.data}}catch{e.postMessage({type:"MICRO_APP_INJECT",message:{type:this.data.type,props:this.data.props}},"*")}}catch{}}}},h={};var R=c(T,O,I,!1,x,"6f3e86c7",null,null);function x(e){for(let s in h)this[s]=h[s]}var B=function(){return R.exports}(),P=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[e._l(e.microApps,function(i,o){return t("MicroModal",{key:o,ref:`ref-${i.name}`,refInFor:!0,attrs:{open:i.isOpen,size:i.width||1200,options:i,windowType:e.windowType,forceCapsuleVisible:e.loadErrors[i.name]!=null,beforeClose:e.onBeforeClose},on:{"on-capsule-more":e.onCapsuleMore,"on-popout-window":e.onPopoutWindow,"on-confirm-close":e.closeMicroApp}},[e.shouldRenderIFrame(i)?t("MicroIFrame",{key:e.microFrameKey(i.name),attrs:{name:i.name,url:i.url,data:e.appData(i.name),immersive:i.immersive},on:{mounted:e.mounted,"load-error":e.onLoadError}}):e.shouldRenderMicro(i)?t("micro-app",{attrs:{name:i.name,url:i.url,"keep-alive":i.keep_alive,"disable-scopecss":i.disable_scope_css,data:e.appData(i.name)},on:{mounted:e.mounted,error:e.error}}):e._e(),t("transition",{attrs:{name:"fade"}},[e.loadings.includes(i.name)?t("div",{staticClass:"micro-app-loader"},[t("Loading")],1):e._e()]),t("transition",{attrs:{name:"fade"}},[e.loadErrors[i.name]!=null?t("div",{staticClass:"micro-app-error"},[t("div",{staticClass:"micro-app-error-box"},[t("div",{staticClass:"micro-app-error-title"},[e._v(e._s(e.$L("\u5E94\u7528\u52A0\u8F7D\u5931\u8D25")))]),e.loadErrors[i.name]>0?t("div",{staticClass:"micro-app-error-desc"},[e._v(e._s(e.$L("\u670D\u52A1\u5668\u8FD4\u56DE\u9519\u8BEF\uFF08HTTP (*)\uFF09",e.loadErrors[i.name])))]):e._e(),t("div",{staticClass:"micro-app-error-actions"},[t("Button",{attrs:{type:"primary"},on:{click:function(r){return e.retryMicroApp(i.name)}}},[e._v(e._s(e.$L("\u91CD\u8BD5")))]),t("Button",{on:{click:function(r){return e.closeMicroApp(i.name,!0)}}},[e._v(e._s(e.$L("\u5173\u95ED")))])],1)])]):e._e()])],1)}),t("UserSelect",e._b({ref:"userSelect",attrs:{module:""},model:{value:e.userSelectOptions.value,callback:function(i){e.$set(e.userSelectOptions,"value",i)},expression:"userSelectOptions.value"}},"UserSelect",e.userSelectOptions.config,!1)),t("Modal",{attrs:{closable:!0,mask:!1,"mask-closable":!1,"footer-hide":!0,"transition-names":["",""],beforeClose:e.onAssistClose,"class-name":"micro-app-assist"},model:{value:e.assistShow,callback:function(i){e.assistShow=i},expression:"assistShow"}})],2)},L=[];const F={name:"MicroApps",directives:{TransferDom:y},components:{MicroModal:S,UserSelect:p,MicroIFrame:B},props:{windowType:{type:String,default:"embed"}},data(){return{assistShow:!1,isRestarting:!1,userSelectOptions:{value:[],config:{}},backupConfigs:{},loadings:[],closings:[],loadErrors:{},reloadNonce:{}}},created(){a.unmountAllApps({destroy:!0}),a.start({"router-mode":"state",iframe:!0,iframeSrc:window.location.origin+"/assets/empty.html"})},mounted(){n.on("observeMicroApp:open",this.onOpen),n.on("observeMicroApp:close",this.onAssistClose),n.on("observeMicroApp:updatedOrUninstalled",this.onUpdatedOrUninstalled)},beforeDestroy(){n.off("observeMicroApp:open",this.onOpen),n.off("observeMicroApp:close",this.onAssistClose),n.off("observeMicroApp:updatedOrUninstalled",this.onUpdatedOrUninstalled)},watch:{userToken(e){e||this.unmountAllMicroApp()},themeName(){this.unmountAllMicroApp()},assistShow(e){e||this.isRestarting||($A.isSubElectron?$A.Electron.sendMessage("windowDestroy"):this.windowType==="popout"&&window.close())},microApps:{handler(e){this.assistShow=!!e.find(s=>s.isOpen)},deep:!0}},computed:{...f(["userInfo","themeName","microApps","safeAreaSize"])},methods:{mounted(e){this.finish(e.detail.name)},error(e){this.finish(e.detail.name),$A.modalError({language:!1,title:this.$L("\u5E94\u7528\u52A0\u8F7D\u5931\u8D25"),content:e.detail.error,onOk:()=>{this.closeMicroApp(e.detail.name,!0)}})},finish(e){this.loadings=this.loadings.filter(s=>s!==e)},onLoadError(e){this.$set(this.loadErrors,e.detail.name,e.detail.status)},retryMicroApp(e){this.$delete(this.loadErrors,e),this.loadings.push(e),this.$set(this.reloadNonce,e,(this.reloadNonce[e]||0)+1)},microFrameKey(e){return`iframe-${e}-${this.reloadNonce[e]||0}`},appData(e){const s=this.microApps.find(t=>t.name==e);return s?{type:"init",instance:{Vue:A,store:d,components:{DialogWrapper:_,UserSelect:p,DatePicker:w.exports.DatePicker}},props:{...s.props,name:s.name,url:s.url,type:s.type,urlType:s.type,userId:this.userId,userToken:this.userToken,userInfo:this.userInfo,baseUrl:$A.mainUrl(),systemInfo:window.systemInfo,windowType:this.windowType,isEEUIApp:$A.isEEUIApp,isElectron:$A.isElectron,isMainElectron:$A.isMainElectron,isSubElectron:$A.isSubElectron,languageList:$,languageName:C,themeName:this.themeName,safeArea:this.safeAreaSize},methods:{close:(t=!1)=>{this.closeMicroApp(e,t)},back:()=>{this.closeByName(e)},popoutWindow:async(t=null)=>{await this.onPopoutWindow(e,t)},openWindow:t=>{$A.isJson(t)||(t={path:t}),t.url&&(t.path=t.url,delete t.url),$A.isJson(t.config)&&(Object.assign(t,t.config),delete t.config),this.$store.dispatch("openWindow",t)},openTabWindow:t=>{this.$store.dispatch("openWindow",{path:t})},openAppPage:t=>{$A.isJson(t)||(t={url:t}),this.$store.dispatch("openAppChildPage",{pageType:"app",pageTitle:t.title||" ",url:"web.js",params:{url:t.url,titleFixed:typeof t.titleFixed=="boolean"?t.titleFixed:!1}})},requestAPI:async t=>await d.dispatch("call",t),selectUsers:async t=>($A.isJson(t)||(t={value:t}),$A.isArray(t.value)||(t.value=t.value?[t.value]:[]),this.userSelectOptions.value=t.value,delete t.value,this.userSelectOptions.config=t,await new Promise((i,o)=>{this.$refs.userSelect.onSelection(r=>{i(r)},o)})),setCapsuleConfig:t=>{!$A.isJson(t)||(this.$store.commit("microApps/update",{name:e,data:{capsule:t}}),this.setCapsuleCache(e,t))},nextZIndex:()=>typeof window.modalTransferIndex=="number"?window.modalTransferIndex++:1e3,isFullScreen:()=>window.innerWidth<768||this.windowType==="popout",extraCallA:(...t)=>{if(t.length>0&&typeof t[0]=="string"){const i=t[0],o=t.slice(1);if(typeof $A[i]=="function")return $A[i](...o)}return null},extraCallStore:async(...t)=>{if(t.length>0&&typeof t[0]=="string"){const i=t[0],o=t.slice(1);await this.$store.dispatch(i,...o)}return null},extraCallEmitter:async(...t)=>{if(t.length>0&&typeof t[0]=="string"){const i=t[0],o=t.slice(1);n.emit(i,...o)}return null}}}:{}},async setCapsuleCache(e,s){const t=await $A.IDBJson("microAppsCapsuleCache");if($A.isTrue(s.no_cache)){if(typeof t[e]=="undefined")return;delete t[e]}else t[e]=s;await $A.IDBSet("microAppsCapsuleCache",t)},async removeCapsuleCache(e){const s=await $A.IDBJson("microAppsCapsuleCache");typeof s[e]!="undefined"&&(delete s[e],await $A.IDBSet("microAppsCapsuleCache",s))},async onOpen(e){if(this.backupConfigs[e.name]=$A.cloneJSON(e),e.badge_clear_on_open===!0&&e.id){const i=typeof e.key=="string"?e.key:"";this.$store.commit("appBadges/clearMenu",{appid:e.id,menu_key:i}),this.$store.dispatch("call",{url:"apps/badge/clear",method:"post",data:{appid:e.id,menu_key:i}}).catch(()=>{})}const s=await $A.IDBJson("microAppsCapsuleCache");if($A.isJson(s[e.name])&&($A.isHave(e.capsule,!0)?Object.assign(e.capsule,s[e.name]):e.capsule=s[e.name]),e.type=this.resolveType(e.type),/_blank$/i.test(e.type)){await this.inlineBlank(e);return}if(e.type==="external"){await this.externalWindow(e);return}const t=this.microApps.find(({name:i})=>i==e.name);t?(t.keepAliveBackup!==void 0&&(t.keep_alive=t.keepAliveBackup,delete t.keepAliveBackup),(t.url!=e.url||!t.keep_alive)&&(this.unmountMicroApp(t),this.$delete(this.loadErrors,t.name),this.loadings.push(t.name)),Object.assign(t,e),requestAnimationFrame(i=>{t.isOpen=!0,t.lastOpenAt=Date.now(),this.$store.commit("microApps/keepAlive",3)})):(e.isOpen=!1,e.postMessage=()=>{},e.onBeforeClose=()=>!0,this.$store.commit("microApps/push",e),this.$delete(this.loadErrors,e.name),this.loadings.push(e.name),requestAnimationFrame(i=>{e.isOpen=!0,e.lastOpenAt=Date.now(),this.$store.commit("microApps/keepAlive",3)}))},async inlineBlank(e,s=null){const t={...e,type:e.type.replace(/_blank$/,""),transparent:!0,keep_alive:!1};s!=null&&s.url&&(t.url=s.url,delete s.url);const i=`/single/apps/${t.name}`,o=(await $A.IDBArray("cacheMicroApps")).filter(r=>r.name!=t.name);if(o.length>50&&o.splice(0,10),o.push(t),await $A.IDBSet("cacheMicroApps",$A.cloneJSON(o)),this.$Electron){const r=Object.assign({title:t.title||" "},$A.isJson(s)?s:{});await this.$store.dispatch("openWindow",{name:`single-apps-${$A.randomString(6)}`,path:i,title:r.title,width:r.width,height:r.height})}else this.$isEEUIApp?await this.$store.dispatch("openAppChildPage",{pageType:"app",pageTitle:" ",url:"web.js",params:{url:$A.urlReplaceHash(i)}}):window.open($A.mainUrl(i.substring(1)))},async externalWindow(e){this.$Electron?await this.$store.dispatch("openWindow",{name:`external-apps-${$A.randomString(6)}`,path:e.url,title:e.title||" "}):this.$isEEUIApp?await this.$store.dispatch("openAppChildPage",{pageType:"app",pageTitle:" ",url:"web.js",params:{url:e.url}}):window.open(e.url)},closeAppState(e){this.loadings=this.loadings.filter(s=>s!==e.name),this.closings.push(e.name),e.isOpen=!1,setTimeout(()=>{this.closings=this.closings.filter(s=>s!==e.name)},300)},closeByName(e){try{this.$refs[`ref-${e}`][0].attemptClose()}catch{this.closeMicroApp(e)}},closeMicroApp(e,s=!1){const t=this.microApps.find(i=>i.name==e);!t||(this.closeAppState(t),this.$delete(this.loadErrors,e),s===!0&&this.unmountMicroApp(t))},unmountMicroApp(e){e.keep_alive&&(e.keepAliveBackup=!0,e.keep_alive=!1),a.unmountApp(e.name,{destroy:!0})},unmountAllMicroApp(){this.microApps.forEach(e=>{this.closeAppState(e),this.unmountMicroApp(e)})},onBeforeClose(e){return new Promise(s=>{const t=()=>{$A.isSubElectron?$A.Electron.sendMessage("windowDestroy"):s()},i=this.microApps.find(o=>o.name==e);if(!i){t();return}if(this.isIframe(i.type)){const o=i.onBeforeClose();o&&o.then?o.then(()=>{t()}):t();return}a.forceSetData(e,{type:"beforeClose"},o=>{o!=null&&o.find(r=>r===!0)||($A.leftExists(e,"appstore")&&this.$store.dispatch("updateMicroAppsStatus"),t())})})},onAssistClose(){return new Promise(e=>{const s=this.microApps.findLast(t=>t.isOpen);s?this.closeByName(s.name):e()})},onCapsuleMore(e,s){switch(s){case"popout":this.onPopoutWindow(e);break;case"restart":this.removeCapsuleCache(e),this.onRestartApp(e);break;case"destroy":this.removeCapsuleCache(e),this.closeMicroApp(e,!0);break;default:const t=this.microApps.find(i=>i.name==e);if(!t)return;if(this.isIframe(t.type)){t.postMessage({type:"MICRO_APP_MENU_CLICK",message:s});return}a.forceSetData(e,{type:"menuClick",message:s});break}},async onRestartApp(e){this.isRestarting=!0;try{this.closeMicroApp(e,!0),await new Promise(t=>setTimeout(t,300));const s=this.backupConfigs[e];if(!s){$A.modalError("\u5E94\u7528\u4E0D\u5B58\u5728");return}await this.onOpen(s)}finally{this.isRestarting=!1}},async onPopoutWindow(e,s=null){const t=this.microApps.find(i=>i.name==e);if(!t){$A.modalError("\u5E94\u7528\u4E0D\u5B58\u5728");return}await this.inlineBlank(t,s),this.closeMicroApp(e,!0)},isIframe(e){return/^iframe/i.test(e)},shouldRenderIFrame(e){return e.url&&this.isIframe(e.type)&&(e.isOpen||e.keep_alive)},shouldRenderMicro(e){return e.url&&!this.isIframe(e.type)&&(e.isOpen||this.closings.includes(e.name))},onUpdatedOrUninstalled(e){const s=e.map(t=>t.id);s.length!==0&&(e.forEach(t=>{t.type==="uninstall"&&this.$store.commit("appBadges/clearApp",t.id)}),this.microApps.forEach(t=>{s.includes(t.id)&&this.closeMicroApp(t.name,!0)}))},resolveType(e){if(typeof e=="string")return e;if($A.isJson(e)){const s=typeof e.default=="string"?e.default:"iframe",t=typeof e.mobile=="string"?e.mobile:typeof e.app=="string"?e.app:s,i=typeof e.desktop=="string"?e.desktop:s;return["web","mac","win"].includes($A.Platform)?i:t}return"inline"}}},m={};var D=c(F,P,L,!1,N,null,null,null);function N(e){for(let s in m)this[s]=m[s]}var Z=function(){return D.exports}();export{Z as M};
diff --git a/public/js/build/index.ab4b7604.js b/public/js/build/index.f7653997.js
similarity index 99%
rename from public/js/build/index.ab4b7604.js
rename to public/js/build/index.f7653997.js
index 7e37f2f63..fd6e151f1 100644
--- a/public/js/build/index.ab4b7604.js
+++ b/public/js/build/index.f7653997.js
@@ -1 +1 @@
-import{n as i,m as d}from"./app.818b057c.js";var f=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("ETooltip",{attrs:{"open-delay":e.openDelay,disabled:e.$isEEUIApp||e.windowTouch||e.tooltipDisabled||e.isBot,placement:e.tooltipPlacement}},[e.user?t("div",{staticClass:"common-avatar-transfer",attrs:{slot:"content"},slot:"content"},[e._t("default"),t("p",[e._v(e._s(e.$L("\u6635\u79F0"))+": "+e._s(e.user.nickname)),e.user.delete_at?t("em",{staticClass:"deleted no-dark-content"},[e._v(e._s(e.$L("\u5DF2\u5220\u9664")))]):e.user.disable_at?t("em",{staticClass:"disabled no-dark-content"},[e._v(e._s(e.$L("\u5DF2\u79BB\u804C")))]):e._e()]),t("p",{staticClass:"department-name",attrs:{title:e.user.department_name||""}},[e._v(e._s(e.$L("\u90E8\u95E8"))+": "+e._s(e.user.department_name||"-"))]),t("p",[e._v(e._s(e.$L("\u804C\u4F4D/\u804C\u79F0"))+": "+e._s(e.user.profession||"-"))]),e.user.delete_at?t("p",[t("strong",[e._v(e._s(e.$L("\u5220\u9664\u65F6\u95F4"))+": "+e._s(e.$A.newDateString(e.user.delete_at,"YYYY-MM-DD HH:mm")))])]):e.user.disable_at?t("p",[t("strong",[e._v(e._s(e.$L("\u79BB\u804C\u65F6\u95F4"))+": "+e._s(e.$A.newDateString(e.user.disable_at,"YYYY-MM-DD HH:mm")))])]):e._e(),e._t("end")],2):e._e(),t("div",[t("UserAvatar",{ref:"avatar",attrs:{userid:e.userid,size:e.size,showIcon:e.showIcon,showName:e.showName,showStateDot:e.showStateDot,nameText:e.nameText,borderWidth:e.borderWidth,borderColor:e.borderColor,clickOpenDetail:e.clickOpenDetail,userResult:e.onUserResult}})],1)])},h=[];const p={name:"UserAvatarTip",mixins:[d],props:{tooltipDisabled:{type:Boolean,default:!1},tooltipPlacement:{type:String,default:"bottom"},openDelay:{type:Number,default:600}},data(){return{user:null}},mounted(){this.$listeners["update:online"]&&(this.$watch("userid",()=>{this.updateOnline()}),this.$watch("user.online",()=>{this.updateOnline()}),this.updateOnline())},computed:{isBot(){return!!(this.user&&this.user.bot)}},methods:{onUserResult(e){typeof this.userResult=="function"&&this.userResult(e),this.user=e},updateOnline(){if(!!this.user)if(this.user.online||this.$store.state.userId===this.userid)this.$emit("update:online",!0);else{const e=$A.daytz(),s=$A.dayjs(this.user.line_at),t=e.unix()-s.unix();let n=this.$L("\u6700\u540E\u5728\u7EBF\u4E8E(*)",this.$L("\u5F88\u4E45\u4EE5\u524D"));if(t<60)n=this.$L("\u6700\u540E\u5728\u7EBF\u4E8E(*)",this.$L("\u521A\u521A"));else if(t<3600)n=this.$L("\u6700\u540E\u5728\u7EBF\u4E8E(*)\u5206\u949F\u524D",Math.floor(t/60));else if(t<3600*6)n=this.$L("\u6700\u540E\u5728\u7EBF\u4E8E(*)\u5C0F\u65F6\u524D",Math.floor(t/3600));else{const m=e.format("YYYY-MM-DD"),a=s.format("YYYY-MM-DD"),r=s.format("HH:mm");m===a?n=this.$L("\u6700\u540E\u5728\u7EBF\u4E8E\u4ECA\u5929(*)",r):e.clone().subtract(1,"day").format("YYYY-MM-DD")===a?n=this.$L("\u6700\u540E\u5728\u7EBF\u4E8E\u6628\u5929(*)",r):t<3600*24*365&&(n=this.$L("\u6700\u540E\u5728\u7EBF\u4E8E(*)",a))}this.$emit("update:online",n)}}}},l={};var _=i(p,f,h,!1,v,null,null,null);function v(e){for(let s in l)this[s]=l[s]}var O=function(){return _.exports}(),y=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"component-resize-line",class:[e.resizing?"resizing":"",e.placement],on:{mousedown:function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"left",37,n.key,["Left","ArrowLeft"])||"button"in n&&n.button!==0?null:(n.stopPropagation(),n.preventDefault(),e.resizeDown.apply(null,arguments))}}})},z=[];const b={name:"ResizeLine",props:{value:{},min:{type:Number,default:100},max:{type:Number,default:600},placement:{validator(e){return["right","bottom"].includes(e)},default:"bottom"},reverse:{type:Boolean,default:!1},beforeResize:Function},data(){return{resizing:!1,mouseX:0,mouseY:0,offset:{},tmpSize:void 0}},mounted(){document.documentElement.addEventListener("mousemove",this.handleMove,!0),document.documentElement.addEventListener("mouseup",this.handleUp,!0)},methods:{resizeDown(e){if(!this.beforeResize){this.handleDown(e);return}const s=this.beforeResize();s&&s.then?s.then(t=>{this.handleDown(e)}):this.handleDown(e)},handleDown(e){this.mouseX=e.pageX||e.clientX+document.documentElement.scrollLeft,this.mouseY=e.pageY||e.clientY+document.documentElement.scrollTop,this.offset={left:e.target.offsetLeft,top:e.target.offsetTop},this.resizing=!0,typeof this.value=="number"&&(this.tmpSize=this.value),this.$emit("on-change",{event:"down"})},handleMove(e){if(!this.resizing)return;let s=(e.pageX||e.clientX+document.documentElement.scrollLeft)-this.mouseX,t=(e.pageY||e.clientY+document.documentElement.scrollTop)-this.mouseY;if(typeof this.tmpSize=="number"){let n;this.placement=="bottom"?n=this.reverse?this.tmpSize-t:this.tmpSize+t:n=this.reverse?this.tmpSize-s:this.tmpSize+s,this.min>0&&(n=Math.max(this.min,n)),this.max>0&&(n=Math.min(this.max,n)),this.$emit("input",n)}this.$emit("on-change",{event:"move",diff:{x:s,y:t},offset:this.offset})},handleUp(){!this.resizing||(this.resizing=!1,this.tmpSize=void 0,this.$emit("on-change",{event:"up"}))}}},o={};var $=i(b,y,z,!1,w,null,null,null);function w(e){for(let s in o)this[s]=o[s]}var S=function(){return $.exports}(),g=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{ref:"body",staticClass:"overlay-body",style:e.bodyStyle},[t("div",{staticClass:"overlay-close",on:{click:function(n){return n.stopPropagation(),e.onClose.apply(null,arguments)}}},[t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 26 26"}},[t("path",{attrs:{d:"M8.28596 6.51819C7.7978 6.03003 7.00634 6.03003 6.51819 6.51819C6.03003 7.00634 6.03003 7.7978 6.51819 8.28596L11.2322 13L6.51819 17.714C6.03003 18.2022 6.03003 18.9937 6.51819 19.4818C7.00634 19.97 7.7978 19.97 8.28596 19.4818L13 14.7678L17.714 19.4818C18.2022 19.97 18.9937 19.97 19.4818 19.4818C19.97 18.9937 19.97 18.2022 19.4818 17.714L14.7678 13L19.4818 8.28596C19.97 7.7978 19.97 7.00634 19.4818 6.51819C18.9937 6.03003 18.2022 6.03003 17.714 6.51819L13 11.2322L8.28596 6.51819Z",fill:"currentColor"}})])]),e.resize?t("ResizeLine",{staticClass:"overlay-resize",attrs:{placement:e.placement,min:e.minSize,max:0,reverse:!0,beforeResize:e.beforeResize},on:{"on-change":e.onChangeResize},model:{value:e.dynamicSize,callback:function(n){e.dynamicSize=n},expression:"dynamicSize"}}):e._e(),t("div",{staticClass:"overlay-content"},[t("div",{staticClass:"overlay-content-status"}),e.$slots.title||e.$slots.more?t("div",{staticClass:"overlay-content-header"},[t("div",{staticClass:"overlay-content-header-title"},[e._t("title")],2),t("div",{staticClass:"overlay-content-header-more"},[e._t("more")],2)]):e._e(),t("div",{staticClass:"overlay-content-body"},[e._t("default")],2),t("div",{staticClass:"overlay-content-navigation"})])],1)},C=[];const L={name:"DrawerOverlayView",components:{ResizeLine:S},props:{placement:{validator(e){return["right","bottom"].includes(e)},default:"bottom"},size:{type:[Number,String],default:"100%"},minSize:{type:Number,default:300},resize:{type:Boolean,default:!0}},data(){return{dynamicSize:0}},computed:{bodyStyle(){let e=this.dynamicSize;return e=e<=100?`${e}%`:`${e}px`,this.placement=="right"?{width:e,height:"100%"}:{width:"100%",height:e}}},watch:{size:{handler(e){this.dynamicSize=parseInt(e)},immediate:!0}},methods:{onClose(){this.$emit("on-close")},beforeResize(){return new Promise(e=>{this.dynamicSize<=100&&this.updateSize(),e()})},onChangeResize({event:e}){e==="up"&&this.updateSize()},updateSize(){this.placement==="bottom"?this.dynamicSize=this.$refs.body.clientHeight:this.dynamicSize=this.$refs.body.clientWidth}}},u={};var D=i(L,g,C,!1,x,null,null,null);function x(e){for(let s in u)this[s]=u[s]}var Y=function(){return D.exports}(),M=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("Modal",{ref:"modal",attrs:{closable:e.escClosable,mask:e.finalMask,"mask-closable":e.maskClosable,"footer-hide":!0,fullscreen:!0,"class-name":e.finalClassName,"transition-names":e.finalTransitionNames,"before-close":e.beforeClose},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[t("DrawerOverlayView",{attrs:{placement:e.finalPlacement,size:e.finalSize,minSize:e.finalMinSize,resize:e.finalResize},on:{"on-close":e.close},scopedSlots:e._u([e.$slots.title?{key:"title",fn:function(){return[e._t("title")]},proxy:!0}:null,e.$slots.more?{key:"more",fn:function(){return[e._t("more")]},proxy:!0}:null,{key:"default",fn:function(){return[e._t("default")]},proxy:!0}],null,!0)})],1)},k=[];const R={name:"DrawerOverlay",components:{DrawerOverlayView:Y},props:{value:{type:Boolean,default:!1},mask:{default:null},maskClosable:{type:Boolean,default:!0},escClosable:{type:Boolean,default:!0},fullscreen:{default:null},placement:{validator(e){return["right","bottom"].includes(e)},default:"bottom"},size:{type:[Number,String],default:"100%"},minSize:{type:Number,default:300},resize:{type:Boolean,default:!0},className:{type:String},beforeClose:Function},data(){return{show:this.value}},watch:{value(e){this.show=e},show(e){this.value!==e&&this.$emit("input",e)}},computed:{finalFullscreen(){return typeof this.fullscreen=="boolean"?this.fullscreen:this.windowWidth<768},finalMask(){return typeof this.mask=="boolean"?this.mask:!this.finalFullscreen},finalClassName(){const e=["common-drawer",`drawer-${this.finalPlacement}`];return this.finalFullscreen&&e.push("drawer-fullscreen"),this.className&&e.push(this.className),e.join(" ")},finalTransitionNames(){return[`drawer-animation-${this.finalPlacement}`,"drawer-animation-fade"]},finalPlacement(){return this.finalFullscreen?"bottom":this.placement},finalSize(){return this.finalFullscreen?"100%":this.size},finalMinSize(){return this.finalFullscreen?0:this.minSize},finalResize(){return this.finalFullscreen?!1:this.resize}},methods:{close(){this.$refs.modal.close()}}},c={};var N=i(R,M,k,!1,E,null,null,null);function E(e){for(let s in c)this[s]=c[s]}var T=function(){return N.exports}();export{T as D,S as R,O as U};
+import{n as i,m as d}from"./app.ef7047f7.js";var f=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("ETooltip",{attrs:{"open-delay":e.openDelay,disabled:e.$isEEUIApp||e.windowTouch||e.tooltipDisabled||e.isBot,placement:e.tooltipPlacement}},[e.user?t("div",{staticClass:"common-avatar-transfer",attrs:{slot:"content"},slot:"content"},[e._t("default"),t("p",[e._v(e._s(e.$L("\u6635\u79F0"))+": "+e._s(e.user.nickname)),e.user.delete_at?t("em",{staticClass:"deleted no-dark-content"},[e._v(e._s(e.$L("\u5DF2\u5220\u9664")))]):e.user.disable_at?t("em",{staticClass:"disabled no-dark-content"},[e._v(e._s(e.$L("\u5DF2\u79BB\u804C")))]):e._e()]),t("p",{staticClass:"department-name",attrs:{title:e.user.department_name||""}},[e._v(e._s(e.$L("\u90E8\u95E8"))+": "+e._s(e.user.department_name||"-"))]),t("p",[e._v(e._s(e.$L("\u804C\u4F4D/\u804C\u79F0"))+": "+e._s(e.user.profession||"-"))]),e.user.delete_at?t("p",[t("strong",[e._v(e._s(e.$L("\u5220\u9664\u65F6\u95F4"))+": "+e._s(e.$A.newDateString(e.user.delete_at,"YYYY-MM-DD HH:mm")))])]):e.user.disable_at?t("p",[t("strong",[e._v(e._s(e.$L("\u79BB\u804C\u65F6\u95F4"))+": "+e._s(e.$A.newDateString(e.user.disable_at,"YYYY-MM-DD HH:mm")))])]):e._e(),e._t("end")],2):e._e(),t("div",[t("UserAvatar",{ref:"avatar",attrs:{userid:e.userid,size:e.size,showIcon:e.showIcon,showName:e.showName,showStateDot:e.showStateDot,nameText:e.nameText,borderWidth:e.borderWidth,borderColor:e.borderColor,clickOpenDetail:e.clickOpenDetail,userResult:e.onUserResult}})],1)])},h=[];const p={name:"UserAvatarTip",mixins:[d],props:{tooltipDisabled:{type:Boolean,default:!1},tooltipPlacement:{type:String,default:"bottom"},openDelay:{type:Number,default:600}},data(){return{user:null}},mounted(){this.$listeners["update:online"]&&(this.$watch("userid",()=>{this.updateOnline()}),this.$watch("user.online",()=>{this.updateOnline()}),this.updateOnline())},computed:{isBot(){return!!(this.user&&this.user.bot)}},methods:{onUserResult(e){typeof this.userResult=="function"&&this.userResult(e),this.user=e},updateOnline(){if(!!this.user)if(this.user.online||this.$store.state.userId===this.userid)this.$emit("update:online",!0);else{const e=$A.daytz(),s=$A.dayjs(this.user.line_at),t=e.unix()-s.unix();let n=this.$L("\u6700\u540E\u5728\u7EBF\u4E8E(*)",this.$L("\u5F88\u4E45\u4EE5\u524D"));if(t<60)n=this.$L("\u6700\u540E\u5728\u7EBF\u4E8E(*)",this.$L("\u521A\u521A"));else if(t<3600)n=this.$L("\u6700\u540E\u5728\u7EBF\u4E8E(*)\u5206\u949F\u524D",Math.floor(t/60));else if(t<3600*6)n=this.$L("\u6700\u540E\u5728\u7EBF\u4E8E(*)\u5C0F\u65F6\u524D",Math.floor(t/3600));else{const m=e.format("YYYY-MM-DD"),a=s.format("YYYY-MM-DD"),r=s.format("HH:mm");m===a?n=this.$L("\u6700\u540E\u5728\u7EBF\u4E8E\u4ECA\u5929(*)",r):e.clone().subtract(1,"day").format("YYYY-MM-DD")===a?n=this.$L("\u6700\u540E\u5728\u7EBF\u4E8E\u6628\u5929(*)",r):t<3600*24*365&&(n=this.$L("\u6700\u540E\u5728\u7EBF\u4E8E(*)",a))}this.$emit("update:online",n)}}}},l={};var _=i(p,f,h,!1,v,null,null,null);function v(e){for(let s in l)this[s]=l[s]}var O=function(){return _.exports}(),y=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"component-resize-line",class:[e.resizing?"resizing":"",e.placement],on:{mousedown:function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"left",37,n.key,["Left","ArrowLeft"])||"button"in n&&n.button!==0?null:(n.stopPropagation(),n.preventDefault(),e.resizeDown.apply(null,arguments))}}})},z=[];const b={name:"ResizeLine",props:{value:{},min:{type:Number,default:100},max:{type:Number,default:600},placement:{validator(e){return["right","bottom"].includes(e)},default:"bottom"},reverse:{type:Boolean,default:!1},beforeResize:Function},data(){return{resizing:!1,mouseX:0,mouseY:0,offset:{},tmpSize:void 0}},mounted(){document.documentElement.addEventListener("mousemove",this.handleMove,!0),document.documentElement.addEventListener("mouseup",this.handleUp,!0)},methods:{resizeDown(e){if(!this.beforeResize){this.handleDown(e);return}const s=this.beforeResize();s&&s.then?s.then(t=>{this.handleDown(e)}):this.handleDown(e)},handleDown(e){this.mouseX=e.pageX||e.clientX+document.documentElement.scrollLeft,this.mouseY=e.pageY||e.clientY+document.documentElement.scrollTop,this.offset={left:e.target.offsetLeft,top:e.target.offsetTop},this.resizing=!0,typeof this.value=="number"&&(this.tmpSize=this.value),this.$emit("on-change",{event:"down"})},handleMove(e){if(!this.resizing)return;let s=(e.pageX||e.clientX+document.documentElement.scrollLeft)-this.mouseX,t=(e.pageY||e.clientY+document.documentElement.scrollTop)-this.mouseY;if(typeof this.tmpSize=="number"){let n;this.placement=="bottom"?n=this.reverse?this.tmpSize-t:this.tmpSize+t:n=this.reverse?this.tmpSize-s:this.tmpSize+s,this.min>0&&(n=Math.max(this.min,n)),this.max>0&&(n=Math.min(this.max,n)),this.$emit("input",n)}this.$emit("on-change",{event:"move",diff:{x:s,y:t},offset:this.offset})},handleUp(){!this.resizing||(this.resizing=!1,this.tmpSize=void 0,this.$emit("on-change",{event:"up"}))}}},o={};var $=i(b,y,z,!1,w,null,null,null);function w(e){for(let s in o)this[s]=o[s]}var S=function(){return $.exports}(),g=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{ref:"body",staticClass:"overlay-body",style:e.bodyStyle},[t("div",{staticClass:"overlay-close",on:{click:function(n){return n.stopPropagation(),e.onClose.apply(null,arguments)}}},[t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 26 26"}},[t("path",{attrs:{d:"M8.28596 6.51819C7.7978 6.03003 7.00634 6.03003 6.51819 6.51819C6.03003 7.00634 6.03003 7.7978 6.51819 8.28596L11.2322 13L6.51819 17.714C6.03003 18.2022 6.03003 18.9937 6.51819 19.4818C7.00634 19.97 7.7978 19.97 8.28596 19.4818L13 14.7678L17.714 19.4818C18.2022 19.97 18.9937 19.97 19.4818 19.4818C19.97 18.9937 19.97 18.2022 19.4818 17.714L14.7678 13L19.4818 8.28596C19.97 7.7978 19.97 7.00634 19.4818 6.51819C18.9937 6.03003 18.2022 6.03003 17.714 6.51819L13 11.2322L8.28596 6.51819Z",fill:"currentColor"}})])]),e.resize?t("ResizeLine",{staticClass:"overlay-resize",attrs:{placement:e.placement,min:e.minSize,max:0,reverse:!0,beforeResize:e.beforeResize},on:{"on-change":e.onChangeResize},model:{value:e.dynamicSize,callback:function(n){e.dynamicSize=n},expression:"dynamicSize"}}):e._e(),t("div",{staticClass:"overlay-content"},[t("div",{staticClass:"overlay-content-status"}),e.$slots.title||e.$slots.more?t("div",{staticClass:"overlay-content-header"},[t("div",{staticClass:"overlay-content-header-title"},[e._t("title")],2),t("div",{staticClass:"overlay-content-header-more"},[e._t("more")],2)]):e._e(),t("div",{staticClass:"overlay-content-body"},[e._t("default")],2),t("div",{staticClass:"overlay-content-navigation"})])],1)},C=[];const L={name:"DrawerOverlayView",components:{ResizeLine:S},props:{placement:{validator(e){return["right","bottom"].includes(e)},default:"bottom"},size:{type:[Number,String],default:"100%"},minSize:{type:Number,default:300},resize:{type:Boolean,default:!0}},data(){return{dynamicSize:0}},computed:{bodyStyle(){let e=this.dynamicSize;return e=e<=100?`${e}%`:`${e}px`,this.placement=="right"?{width:e,height:"100%"}:{width:"100%",height:e}}},watch:{size:{handler(e){this.dynamicSize=parseInt(e)},immediate:!0}},methods:{onClose(){this.$emit("on-close")},beforeResize(){return new Promise(e=>{this.dynamicSize<=100&&this.updateSize(),e()})},onChangeResize({event:e}){e==="up"&&this.updateSize()},updateSize(){this.placement==="bottom"?this.dynamicSize=this.$refs.body.clientHeight:this.dynamicSize=this.$refs.body.clientWidth}}},u={};var D=i(L,g,C,!1,x,null,null,null);function x(e){for(let s in u)this[s]=u[s]}var Y=function(){return D.exports}(),M=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("Modal",{ref:"modal",attrs:{closable:e.escClosable,mask:e.finalMask,"mask-closable":e.maskClosable,"footer-hide":!0,fullscreen:!0,"class-name":e.finalClassName,"transition-names":e.finalTransitionNames,"before-close":e.beforeClose},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[t("DrawerOverlayView",{attrs:{placement:e.finalPlacement,size:e.finalSize,minSize:e.finalMinSize,resize:e.finalResize},on:{"on-close":e.close},scopedSlots:e._u([e.$slots.title?{key:"title",fn:function(){return[e._t("title")]},proxy:!0}:null,e.$slots.more?{key:"more",fn:function(){return[e._t("more")]},proxy:!0}:null,{key:"default",fn:function(){return[e._t("default")]},proxy:!0}],null,!0)})],1)},k=[];const R={name:"DrawerOverlay",components:{DrawerOverlayView:Y},props:{value:{type:Boolean,default:!1},mask:{default:null},maskClosable:{type:Boolean,default:!0},escClosable:{type:Boolean,default:!0},fullscreen:{default:null},placement:{validator(e){return["right","bottom"].includes(e)},default:"bottom"},size:{type:[Number,String],default:"100%"},minSize:{type:Number,default:300},resize:{type:Boolean,default:!0},className:{type:String},beforeClose:Function},data(){return{show:this.value}},watch:{value(e){this.show=e},show(e){this.value!==e&&this.$emit("input",e)}},computed:{finalFullscreen(){return typeof this.fullscreen=="boolean"?this.fullscreen:this.windowWidth<768},finalMask(){return typeof this.mask=="boolean"?this.mask:!this.finalFullscreen},finalClassName(){const e=["common-drawer",`drawer-${this.finalPlacement}`];return this.finalFullscreen&&e.push("drawer-fullscreen"),this.className&&e.push(this.className),e.join(" ")},finalTransitionNames(){return[`drawer-animation-${this.finalPlacement}`,"drawer-animation-fade"]},finalPlacement(){return this.finalFullscreen?"bottom":this.placement},finalSize(){return this.finalFullscreen?"100%":this.size},finalMinSize(){return this.finalFullscreen?0:this.minSize},finalResize(){return this.finalFullscreen?!1:this.resize}},methods:{close(){this.$refs.modal.close()}}},c={};var N=i(R,M,k,!1,E,null,null,null);function E(e){for(let s in c)this[s]=c[s]}var T=function(){return N.exports}();export{T as D,S as R,O as U};
diff --git a/public/js/build/jquery.c87f487f.js b/public/js/build/jquery.6e4daff9.js
similarity index 100%
rename from public/js/build/jquery.c87f487f.js
rename to public/js/build/jquery.6e4daff9.js
diff --git a/public/js/build/keyboard.04777b47.js b/public/js/build/keyboard.48563e8f.js
similarity index 97%
rename from public/js/build/keyboard.04777b47.js
rename to public/js/build/keyboard.48563e8f.js
index b6fec810c..7160fbd45 100644
--- a/public/js/build/keyboard.04777b47.js
+++ b/public/js/build/keyboard.48563e8f.js
@@ -1 +1 @@
-import{a as i}from"./vuex.cc7cb26e.js";import{n as r}from"./app.818b057c.js";import"./jquery.c87f487f.js";import"./@babel.9410f858.js";import"./dayjs.fd4aa75c.js";import"./localforage.8de7c27e.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./vue.adba9046.js";import"./openpgp_hi.15f91b1d.js";import"./axios.37c7f908.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./view-design-hi.24419422.js";import"./html-to-md.f297036e.js";import"./lodash.8fcd6fd4.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vuedraggable.f464b992.js";import"./sortablejs.3488b922.js";import"./vue-resize-observer.5af23a43.js";import"./element-sea.f8a64907.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var m=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"setting-item submit"},[a("Form",{ref:"formData",attrs:{model:t.formData,rules:t.ruleData,"label-width":"auto"},nativeOn:{submit:function(o){o.preventDefault()}}},[t.$Electron?[a("FormItem",{attrs:{label:t.$L("\u622A\u56FE\u5FEB\u6377\u952E"),prop:"screenshot_key"}},[a("div",{staticClass:"input-box"},[t._v(" "+t._s(t.mateName)),a("div",{staticClass:"input-box-push"},[t._v("+")]),t._v("Shift"),a("div",{staticClass:"input-box-push"},[t._v("+")]),a("Input",{staticClass:"input-box-key",attrs:{maxlength:2},model:{value:t.formData.screenshot_key,callback:function(o){t.$set(t.formData,"screenshot_key",o)},expression:"formData.screenshot_key"}})],1)]),a("FormItem",{attrs:{label:t.$L("\u4E0B\u8F7D\u5185\u5BB9")}},[a("div",{staticClass:"input-box"},[t._v(" "+t._s(t.mateName)),a("div",{staticClass:"input-box-push"},[t._v("+")]),t._v(t._s(t.altName)),a("div",{staticClass:"input-box-push"},[t._v("+")]),t._v("L ")])]),t.aiVisible?a("FormItem",{attrs:{label:t.$L("AI \u52A9\u624B")}},[a("div",{staticClass:"input-box"},[t._v(" "+t._s(t.mateName)),a("div",{staticClass:"input-box-push"},[t._v("+")]),t._v("I ")])]):t._e(),a("FormItem",{attrs:{label:t.$L("\u65B0\u5EFA\u4EFB\u52A1")}},[a("div",{staticClass:"input-box"},[t._v(" "+t._s(t.mateName)),a("div",{staticClass:"input-box-push"},[t._v("+")]),t._v("N ")])]),a("FormItem",{attrs:{label:t.$L("\u65B0\u5EFA\u9879\u76EE")}},[a("div",{staticClass:"input-box"},[t._v(" "+t._s(t.mateName)),a("div",{staticClass:"input-box-push"},[t._v("+")]),t._v("B ")])]),a("FormItem",{attrs:{label:t.$L("\u65B0\u4F1A\u8BAE")}},[a("div",{staticClass:"input-box"},[t._v(" "+t._s(t.mateName)),a("div",{staticClass:"input-box-push"},[t._v("+")]),t._v("J ")])]),a("FormItem",{attrs:{label:t.$L("\u8BBE\u7F6E")}},[a("div",{staticClass:"input-box"},[t._v(" "+t._s(t.mateName)),a("div",{staticClass:"input-box-push"},[t._v("+")]),t._v(", ")])])]:t._e(),t.$isEEUIApp?a("FormItem",{attrs:{label:t.$L("\u53D1\u9001\u6309\u94AE")}},[a("RadioGroup",{model:{value:t.formData.send_button_app,callback:function(o){t.$set(t.formData,"send_button_app",o)},expression:"formData.send_button_app"}},[a("Radio",{attrs:{label:"button"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"enter"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5F00\u542F\u540E\uFF0C\u53D1\u9001\u6D88\u606F\u65F6\u952E\u76D8\u4E0A\u7684\u53D1\u9001\u6309\u94AE\u4F1A\u88AB\u66FF\u6362\u6210\u6362\u884C")))])],1):t.$Electron?a("FormItem",{attrs:{label:t.$L("\u53D1\u9001\u6309\u94AE")}},[a("RadioGroup",{attrs:{vertical:""},model:{value:t.formData.send_button_desktop,callback:function(o){t.$set(t.formData,"send_button_desktop",o)},expression:"formData.send_button_desktop"}},[a("Radio",{attrs:{label:"enter"}},[t._v("Enter "+t._s(t.$L("\u53D1\u9001")))]),a("Radio",{staticClass:"input-box",attrs:{label:"button"}},[t._v(" "+t._s(t.mateName)),a("div",{staticClass:"input-box-push"},[t._v("+")]),t._v("Enter "+t._s(t.$L("\u53D1\u9001"))+" ")])],1)],1):t._e()],2),a("div",{staticClass:"setting-footer"},[a("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u4FDD\u5B58")))]),a("Button",{attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},n=[];const p={computed:{...i(["aiVisible"])},data(){return{loadIng:0,mateName:/macintosh|mac os x/i.test(navigator.userAgent)?"Command":"Ctrl",altName:/macintosh|mac os x/i.test(navigator.userAgent)?"Option":"Alt",formData:{screenshot_key:"",send_button_app:"",send_button_desktop:""},ruleData:{screenshot_key:[{validator:(t,s,a)=>{s=s.trim(),s=s.substring(s.length-1),s&&!/^[A-Za-z0-9]?$/.test(s)?a(new Error(this.$L("\u53EA\u80FD\u8F93\u5165\u5B57\u6BCD\u6216\u6570\u5B57"))):a(),this.$nextTick(o=>{this.$set(this.formData,t.field,s.toUpperCase())})},trigger:"change"}]}}},mounted(){this.initData()},methods:{initData(){this.formData=$A.cloneJSON(this.$store.state.cacheKeyboard),this.formData_bak=$A.cloneJSON(this.formData)},submitForm(){this.$refs.formData.validate(t=>{t&&this.$store.dispatch("handleKeyboard",this.formData).then(s=>{this.$Electron&&$A.bindScreenshotKey(s),$A.messageSuccess("\u4FDD\u5B58\u6210\u529F")})})},resetForm(){this.formData=$A.cloneJSON(this.formData_bak)}}},e={};var _=r(p,m,n,!1,l,"26eb7086",null,null);function l(t){for(let s in e)this[s]=e[s]}var et=function(){return _.exports}();export{et as default};
+import{a as i}from"./vuex.cc7cb26e.js";import{n as r}from"./app.ef7047f7.js";import"./jquery.6e4daff9.js";import"./@babel.9410f858.js";import"./dayjs.d20a4841.js";import"./localforage.743dffdd.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./vue.adba9046.js";import"./openpgp_hi.15f91b1d.js";import"./axios.37c7f908.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./view-design-hi.24419422.js";import"./html-to-md.f297036e.js";import"./lodash.8fcd6fd4.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vuedraggable.f464b992.js";import"./sortablejs.3488b922.js";import"./vue-resize-observer.5af23a43.js";import"./element-sea.f8a64907.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var m=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"setting-item submit"},[a("Form",{ref:"formData",attrs:{model:t.formData,rules:t.ruleData,"label-width":"auto"},nativeOn:{submit:function(o){o.preventDefault()}}},[t.$Electron?[a("FormItem",{attrs:{label:t.$L("\u622A\u56FE\u5FEB\u6377\u952E"),prop:"screenshot_key"}},[a("div",{staticClass:"input-box"},[t._v(" "+t._s(t.mateName)),a("div",{staticClass:"input-box-push"},[t._v("+")]),t._v("Shift"),a("div",{staticClass:"input-box-push"},[t._v("+")]),a("Input",{staticClass:"input-box-key",attrs:{maxlength:2},model:{value:t.formData.screenshot_key,callback:function(o){t.$set(t.formData,"screenshot_key",o)},expression:"formData.screenshot_key"}})],1)]),a("FormItem",{attrs:{label:t.$L("\u4E0B\u8F7D\u5185\u5BB9")}},[a("div",{staticClass:"input-box"},[t._v(" "+t._s(t.mateName)),a("div",{staticClass:"input-box-push"},[t._v("+")]),t._v(t._s(t.altName)),a("div",{staticClass:"input-box-push"},[t._v("+")]),t._v("L ")])]),t.aiVisible?a("FormItem",{attrs:{label:t.$L("AI \u52A9\u624B")}},[a("div",{staticClass:"input-box"},[t._v(" "+t._s(t.mateName)),a("div",{staticClass:"input-box-push"},[t._v("+")]),t._v("I ")])]):t._e(),a("FormItem",{attrs:{label:t.$L("\u65B0\u5EFA\u4EFB\u52A1")}},[a("div",{staticClass:"input-box"},[t._v(" "+t._s(t.mateName)),a("div",{staticClass:"input-box-push"},[t._v("+")]),t._v("N ")])]),a("FormItem",{attrs:{label:t.$L("\u65B0\u5EFA\u9879\u76EE")}},[a("div",{staticClass:"input-box"},[t._v(" "+t._s(t.mateName)),a("div",{staticClass:"input-box-push"},[t._v("+")]),t._v("B ")])]),a("FormItem",{attrs:{label:t.$L("\u65B0\u4F1A\u8BAE")}},[a("div",{staticClass:"input-box"},[t._v(" "+t._s(t.mateName)),a("div",{staticClass:"input-box-push"},[t._v("+")]),t._v("J ")])]),a("FormItem",{attrs:{label:t.$L("\u8BBE\u7F6E")}},[a("div",{staticClass:"input-box"},[t._v(" "+t._s(t.mateName)),a("div",{staticClass:"input-box-push"},[t._v("+")]),t._v(", ")])])]:t._e(),t.$isEEUIApp?a("FormItem",{attrs:{label:t.$L("\u53D1\u9001\u6309\u94AE")}},[a("RadioGroup",{model:{value:t.formData.send_button_app,callback:function(o){t.$set(t.formData,"send_button_app",o)},expression:"formData.send_button_app"}},[a("Radio",{attrs:{label:"button"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"enter"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5F00\u542F\u540E\uFF0C\u53D1\u9001\u6D88\u606F\u65F6\u952E\u76D8\u4E0A\u7684\u53D1\u9001\u6309\u94AE\u4F1A\u88AB\u66FF\u6362\u6210\u6362\u884C")))])],1):t.$Electron?a("FormItem",{attrs:{label:t.$L("\u53D1\u9001\u6309\u94AE")}},[a("RadioGroup",{attrs:{vertical:""},model:{value:t.formData.send_button_desktop,callback:function(o){t.$set(t.formData,"send_button_desktop",o)},expression:"formData.send_button_desktop"}},[a("Radio",{attrs:{label:"enter"}},[t._v("Enter "+t._s(t.$L("\u53D1\u9001")))]),a("Radio",{staticClass:"input-box",attrs:{label:"button"}},[t._v(" "+t._s(t.mateName)),a("div",{staticClass:"input-box-push"},[t._v("+")]),t._v("Enter "+t._s(t.$L("\u53D1\u9001"))+" ")])],1)],1):t._e()],2),a("div",{staticClass:"setting-footer"},[a("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u4FDD\u5B58")))]),a("Button",{attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},n=[];const p={computed:{...i(["aiVisible"])},data(){return{loadIng:0,mateName:/macintosh|mac os x/i.test(navigator.userAgent)?"Command":"Ctrl",altName:/macintosh|mac os x/i.test(navigator.userAgent)?"Option":"Alt",formData:{screenshot_key:"",send_button_app:"",send_button_desktop:""},ruleData:{screenshot_key:[{validator:(t,s,a)=>{s=s.trim(),s=s.substring(s.length-1),s&&!/^[A-Za-z0-9]?$/.test(s)?a(new Error(this.$L("\u53EA\u80FD\u8F93\u5165\u5B57\u6BCD\u6216\u6570\u5B57"))):a(),this.$nextTick(o=>{this.$set(this.formData,t.field,s.toUpperCase())})},trigger:"change"}]}}},mounted(){this.initData()},methods:{initData(){this.formData=$A.cloneJSON(this.$store.state.cacheKeyboard),this.formData_bak=$A.cloneJSON(this.formData)},submitForm(){this.$refs.formData.validate(t=>{t&&this.$store.dispatch("handleKeyboard",this.formData).then(s=>{this.$Electron&&$A.bindScreenshotKey(s),$A.messageSuccess("\u4FDD\u5B58\u6210\u529F")})})},resetForm(){this.formData=$A.cloneJSON(this.formData_bak)}}},e={};var _=r(p,m,n,!1,l,"26eb7086",null,null);function l(t){for(let s in e)this[s]=e[s]}var et=function(){return _.exports}();export{et as default};
diff --git a/public/js/build/language.8bf77e4e.js b/public/js/build/language.e9b1c8cc.js
similarity index 91%
rename from public/js/build/language.8bf77e4e.js
rename to public/js/build/language.e9b1c8cc.js
index 0ea249cd4..649785c16 100644
--- a/public/js/build/language.8bf77e4e.js
+++ b/public/js/build/language.e9b1c8cc.js
@@ -1 +1 @@
-import{g as e,l as n,q as s,n as p}from"./app.818b057c.js";import{m as l}from"./vuex.cc7cb26e.js";import"./jquery.c87f487f.js";import"./@babel.9410f858.js";import"./dayjs.fd4aa75c.js";import"./localforage.8de7c27e.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./vue.adba9046.js";import"./openpgp_hi.15f91b1d.js";import"./axios.37c7f908.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./view-design-hi.24419422.js";import"./html-to-md.f297036e.js";import"./lodash.8fcd6fd4.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vuedraggable.f464b992.js";import"./sortablejs.3488b922.js";import"./vue-resize-observer.5af23a43.js";import"./element-sea.f8a64907.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var u=function(){var t=this,a=t.$createElement,r=t._self._c||a;return r("div",{staticClass:"setting-item submit"},[r("Form",t._b({ref:"formData",attrs:{model:t.formData,rules:t.ruleData},nativeOn:{submit:function(o){o.preventDefault()}}},"Form",t.formOptions,!1),[r("FormItem",{attrs:{label:t.$L("\u9009\u62E9\u8BED\u8A00"),prop:"language"}},[r("Select",{attrs:{placeholder:t.$L("\u9009\u9879\u8BED\u8A00")},model:{value:t.formData.language,callback:function(o){t.$set(t.formData,"language",o)},expression:"formData.language"}},t._l(t.languageList,function(o,i){return r("Option",{key:i,attrs:{value:i}},[t._v(t._s(o))])}),1)],1)],1),r("div",{staticClass:"setting-footer"},[r("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),r("Button",{attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},f=[];const g={data(){return{loadIng:0,languageList:e,formData:{language:""},ruleData:{}}},mounted(){this.initData()},computed:{...l(["formOptions"])},methods:{initData(){this.$set(this.formData,"language",n),this.formData_bak=$A.cloneJSON(this.formData)},submitForm(){this.$refs.formData.validate(t=>{t&&s(this.formData.language)})},resetForm(){this.formData=$A.cloneJSON(this.formData_bak)}}},m={};var c=p(g,u,f,!1,_,null,null,null);function _(t){for(let a in m)this[a]=m[a]}var st=function(){return c.exports}();export{st as default};
+import{g as e,l as n,q as s,n as p}from"./app.ef7047f7.js";import{m as l}from"./vuex.cc7cb26e.js";import"./jquery.6e4daff9.js";import"./@babel.9410f858.js";import"./dayjs.d20a4841.js";import"./localforage.743dffdd.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./vue.adba9046.js";import"./openpgp_hi.15f91b1d.js";import"./axios.37c7f908.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./view-design-hi.24419422.js";import"./html-to-md.f297036e.js";import"./lodash.8fcd6fd4.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vuedraggable.f464b992.js";import"./sortablejs.3488b922.js";import"./vue-resize-observer.5af23a43.js";import"./element-sea.f8a64907.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var u=function(){var t=this,a=t.$createElement,r=t._self._c||a;return r("div",{staticClass:"setting-item submit"},[r("Form",t._b({ref:"formData",attrs:{model:t.formData,rules:t.ruleData},nativeOn:{submit:function(o){o.preventDefault()}}},"Form",t.formOptions,!1),[r("FormItem",{attrs:{label:t.$L("\u9009\u62E9\u8BED\u8A00"),prop:"language"}},[r("Select",{attrs:{placeholder:t.$L("\u9009\u9879\u8BED\u8A00")},model:{value:t.formData.language,callback:function(o){t.$set(t.formData,"language",o)},expression:"formData.language"}},t._l(t.languageList,function(o,i){return r("Option",{key:i,attrs:{value:i}},[t._v(t._s(o))])}),1)],1)],1),r("div",{staticClass:"setting-footer"},[r("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),r("Button",{attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},f=[];const g={data(){return{loadIng:0,languageList:e,formData:{language:""},ruleData:{}}},mounted(){this.initData()},computed:{...l(["formOptions"])},methods:{initData(){this.$set(this.formData,"language",n),this.formData_bak=$A.cloneJSON(this.formData)},submitForm(){this.$refs.formData.validate(t=>{t&&s(this.formData.language)})},resetForm(){this.formData=$A.cloneJSON(this.formData_bak)}}},m={};var c=p(g,u,f,!1,_,null,null,null);function _(t){for(let a in m)this[a]=m[a]}var st=function(){return c.exports}();export{st as default};
diff --git a/public/js/build/license.02080b66.js b/public/js/build/license.2168c5ac.js
similarity index 99%
rename from public/js/build/license.02080b66.js
rename to public/js/build/license.2168c5ac.js
index 79939d65a..259297ab3 100644
--- a/public/js/build/license.02080b66.js
+++ b/public/js/build/license.2168c5ac.js
@@ -1 +1 @@
-import{m as l}from"./vuex.cc7cb26e.js";import{n as r}from"./app.818b057c.js";import"./jquery.c87f487f.js";import"./@babel.9410f858.js";import"./dayjs.fd4aa75c.js";import"./localforage.8de7c27e.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./vue.adba9046.js";import"./openpgp_hi.15f91b1d.js";import"./axios.37c7f908.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./view-design-hi.24419422.js";import"./html-to-md.f297036e.js";import"./lodash.8fcd6fd4.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vuedraggable.f464b992.js";import"./sortablejs.3488b922.js";import"./vue-resize-observer.5af23a43.js";import"./element-sea.f8a64907.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var c=function(){var t,i=this,s=i.$createElement,e=i._self._c||s;return e("div",{staticClass:"setting-item submit license-setting"},[e("Tabs",{model:{value:i.mode,callback:function(n){i.mode=n},expression:"mode"}},[e("TabPane",{attrs:{label:i.$L("\u5728\u7EBF\u6388\u6743"),name:"online"}},[e("div",{staticClass:"setting-component-item"},[e("div",{staticClass:"setting-scroll"},[i.firstLoading?e("div",{staticClass:"license-box license-wrap"},[e("div",{staticClass:"online-refreshing"},[e("i",{staticClass:"online-spin"}),i._v(i._s(i.$L("\u52A0\u8F7D\u4E2D...")))]),e("ul",{staticClass:"online-info"},[e("li",[e("em",[i._v(i._s(i.$L("\u8D26\u53F7"))+":")]),e("span",{staticClass:"online-skeleton"})]),e("li",[e("em",[i._v(i._s(i.$L("\u5957\u9910"))+":")]),e("span",{staticClass:"online-skeleton sk-sm"})]),e("li",[e("em",[i._v(i._s(i.$L("\u4F7F\u7528\u4EBA\u6570"))+":")]),e("span",{staticClass:"online-skeleton sk-xs"})]),e("li",[e("em",[i._v(i._s(i.$L("\u6388\u6743\u6709\u6548\u671F"))+":")]),e("span",{staticClass:"online-skeleton"})]),e("li",[e("em",[i._v(i._s(i.$L("\u5F53\u524D\u72B6\u6001"))+":")]),e("span",{staticClass:"online-skeleton sk-sm"})])])]):[i.onlineActive?e("div",{staticClass:"license-box license-wrap"},[i.onlineRefreshing?e("div",{staticClass:"online-refreshing"},[e("i",{staticClass:"online-spin"}),i._v(i._s(i.$L("\u5237\u65B0\u4E2D")))]):i._e(),i.onlineAlert?e("div",{staticClass:"online-alert",class:i.onlineAlert.type},[e("i",{staticClass:"online-alert-ico"},[i._v(i._s(i.onlineAlert.type==="error"?"\u2715":"!"))]),e("div",{staticClass:"online-alert-main"},[e("div",{staticClass:"online-alert-title"},[i._v(i._s(i.onlineAlert.title))]),e("div",{staticClass:"online-alert-desc"},[i._v(i._s(i.onlineAlert.desc))])])]):i._e(),e("ul",{staticClass:"online-info"},[e("li",[e("em",[i._v(i._s(i.$L("\u8D26\u53F7"))+":")]),e("span",[i._v(i._s(i.online.account))])]),e("li",[e("em",[i._v(i._s(i.$L("\u5957\u9910"))+":")]),e("span",[i._v(i._s(i.online.plan||"-"))])]),e("li",[e("em",[i._v(i._s(i.$L("\u4F7F\u7528\u4EBA\u6570"))+":")]),e("span",[i._v(i._s(i.online.people||i.$L("\u65E0\u9650\u5236")))])]),e("li",[e("em",[i._v(i._s(i.$L("\u6388\u6743\u6709\u6548\u671F"))+":")]),e("span",[i._v(i._s(i.online.valid_until?i.fmt(i.online.valid_until):i.$L("\u6C38\u4E45")))])]),e("li",[e("em",[i._v(i._s(i.$L("\u5F53\u524D\u72B6\u6001"))+":")]),e("span",{staticClass:"online-status",class:"is-"+i.onlineHealth},[e("i",{staticClass:"online-status-dot"}),i._v(i._s(i.stageText(i.online.status)))])])]),i.onlineMismatch?e("div",{staticClass:"online-diag"},[e("div",{staticClass:"online-diag-title"},[i._v(i._s(i.$L("\u8BCA\u65AD\u8BE6\u60C5")))]),e("div",{staticClass:"online-diag-row",class:{bad:!i.snMatch}},[e("em",[i._v(i._s(i.$L("\u6388\u6743 SN"))+":")]),e("span",[i._v(i._s(i.formData.info.sn))])]),e("div",{staticClass:"online-diag-row",class:{bad:!i.snMatch}},[e("em",[i._v(i._s(i.$L("\u5F53\u524D SN"))+":")]),e("span",[i._v(i._s(i.formData.doo_sn)),e("b",[i._v(i._s(i.snMatch?" \u2713":" \u2715"))])])]),e("div",{staticClass:"online-diag-row",class:{bad:!i.macMatch}},[e("em",[i._v(i._s(i.$L("\u6388\u6743 MAC"))+":")]),e("span",[i._v(i._s(i.infoJoin(i.formData.info.mac)))])]),e("div",{staticClass:"online-diag-row",class:{bad:!i.macMatch}},[e("em",[i._v(i._s(i.$L("\u5F53\u524D MAC"))+":")]),e("span",[i._v(i._s(i.infoJoin(i.formData.macs))),e("b",[i._v(i._s(i.macMatch?" \u2713":" \u2715"))])])])]):i._e()]):e("Form",i._b({attrs:{model:i.onlineForm},nativeOn:{submit:function(n){n.preventDefault()}}},"Form",i.formOptions,!1),[e("FormItem",{attrs:{label:i.$L("\u90AE\u7BB1")}},[e("Input",{class:i.codeCountdown>0?"setting-send-input":"setting-input",attrs:{search:"","enter-button":i.sendBtnText,disabled:i.onlineBusy,placeholder:i.$L("\u8BF7\u8F93\u5165\u90AE\u7BB1")},on:{"on-search":i.emailSend},model:{value:i.onlineForm.email,callback:function(n){i.$set(i.onlineForm,"email",n)},expression:"onlineForm.email"}})],1),i.codeSent?e("FormItem",{attrs:{label:i.$L("\u90AE\u7BB1\u9A8C\u8BC1\u7801")}},[e("Input",{staticClass:"setting-input",attrs:{placeholder:i.$L("\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801")},model:{value:i.onlineForm.code,callback:function(n){i.$set(i.onlineForm,"code",n)},expression:"onlineForm.code"}}),e("div",{staticClass:"online-tip"},[i._v(i._s(i.$L("\u9A8C\u8BC1\u7801\u5DF2\u53D1\u9001\u81F3(*)",i.maskedEmail)))])],1):i._e()],1)]],2),i.firstLoading?i._e():e("div",{staticClass:"setting-footer"},[i.onlineActive?[i.onlineAlert&&i.onlineAlert.relogin?e("Button",{attrs:{loading:i.onlineAction==="relogin",disabled:i.onlineBusy&&i.onlineAction!=="relogin",type:"primary"},on:{click:i.onlineRelogin}},[i._v(i._s(i.$L("\u91CD\u65B0\u767B\u5F55\u6388\u6743")))]):i._e(),e("Button",{attrs:{loading:i.onlineAction==="logout",disabled:i.onlineBusy&&i.onlineAction!=="logout",type:i.onlineAlert&&i.onlineAlert.relogin?"default":"primary"},on:{click:i.onlineLogout}},[i._v(i._s(i.$L("\u9000\u51FA\u5728\u7EBF\u6388\u6743")))])]:[e("Button",{attrs:{loading:i.onlineAction==="login",disabled:i.onlineBusy&&i.onlineAction!=="login",type:"primary"},on:{click:i.onlineLogin}},[i._v(i._s(i.$L("\u767B\u5F55\u6388\u6743")))]),e("Button",{attrs:{loading:i.onlineAction==="trial",disabled:i.onlineBusy&&i.onlineAction!=="trial"},on:{click:i.trialSubmit}},[i._v(i._s(i.$L("\u7533\u8BF7\u8BD5\u7528")))])]],2)])]),e("TabPane",{attrs:{label:i.$L("\u79BB\u7EBF\u6388\u6743"),name:"offline"}},[e("div",{staticClass:"setting-component-item"},[e("div",{staticClass:"setting-scroll"},[i.onlineActive?[e("div",{staticClass:"license-box license-wrap"},[e("ul",{staticClass:"online-info"},[e("li",[e("em",[i._v(i._s(i.$L("\u5F53\u524D\u72B6\u6001"))+":")]),e("span",{staticClass:"online-link",on:{click:function(n){i.mode="online"}}},[i._v(i._s(i.$L("\u5DF2\u7ED1\u5B9A\u5728\u7EBF\u6388\u6743")))])]),e("li",[e("em",[i._v("SN:")]),e("span",[i._v(i._s(i.formData.doo_sn))])]),e("li",[e("em",[i._v("MAC:")]),e("span",[i._v(i._s(i.infoJoin(i.formData.macs)))])])])]),i.offlineRebindShow?e("Form",i._b({attrs:{model:i.formData},nativeOn:{submit:function(n){n.preventDefault()}}},"Form",i.formOptions,!1),[e("FormItem",{attrs:{label:"License"}},[e("Input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:5},placeholder:i.$L("\u8BF7\u8F93\u5165License...")},model:{value:i.offlineRebindLicense,callback:function(n){i.offlineRebindLicense=n},expression:"offlineRebindLicense"}})],1)],1):i._e()]:[e("Form",i._b({ref:"formData",staticClass:"license-form",attrs:{model:i.formData},nativeOn:{submit:function(n){n.preventDefault()}}},"Form",i.formOptions,!1),[e("FormItem",{attrs:{label:"License",prop:"license"}},[e("Input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:5},placeholder:i.$L("\u8BF7\u8F93\u5165License...")},model:{value:i.formData.license,callback:function(n){i.$set(i.formData,"license",n)},expression:"formData.license"}})],1),e("FormItem",[e("div",{staticClass:"license-box"},[i.formData.info.sn?e("ul",{staticClass:"offline-detail"},[e("li",{staticClass:"offline-row",class:{bad:!i.snMatch}},[e("em",[i._v("SN:")]),e("span",{staticClass:"v"},[i._v(i._s(i.formData.info.sn))]),e("span",{staticClass:"offline-flag"},[i._v(i._s(i.snMatch?i.$L("\u5339\u914D"):i.$L("\u4E0D\u5339\u914D")))])]),e("li",{staticClass:"offline-row",class:{bad:!i.macMatch}},[e("em",[i._v("MAC:")]),e("span",{staticClass:"v"},[i._v(i._s(i.infoJoin(i.formData.info.mac)))]),e("span",{staticClass:"offline-flag"},[i._v(i._s(i.macMatch?i.$L("\u5339\u914D"):i.$L("\u4E0D\u5339\u914D")))])]),e("li",{staticClass:"offline-row"},[e("em",[i._v(i._s(i.$L("\u4F7F\u7528\u4EBA\u6570"))+":")]),e("span",{staticClass:"v"},[i._v(i._s(i.formData.info.people||i.$L("\u65E0\u9650\u5236"))+"\uFF08"+i._s(i.$L("\u5DF2\u4F7F\u7528"))+" "+i._s(i.formData.user_count)+"\uFF09")])]),e("li",{staticClass:"offline-row"},[e("em",[i._v(i._s(i.$L("\u5230\u671F\u65F6\u95F4"))+":")]),e("span",{staticClass:"v"},[i._v(i._s(i.formData.info.expired_at||i.$L("\u6C38\u4E45")))])]),i.offlineMore?[e("li",{staticClass:"offline-row"},[e("em",[i._v("IP:")]),e("span",{staticClass:"v"},[i._v(i._s(i.infoJoin(i.formData.info.ip)))])]),e("li",{staticClass:"offline-row"},[e("em",[i._v(i._s(i.$L("\u57DF\u540D"))+":")]),e("span",{staticClass:"v"},[i._v(i._s(i.infoJoin(i.formData.info.domain)))])]),e("li",{staticClass:"offline-row"},[e("em",[i._v(i._s(i.$L("\u521B\u5EFA\u65F6\u95F4"))+":")]),e("span",{staticClass:"v"},[i._v(i._s(i.formData.info.created_at))])]),e("li",{staticClass:"offline-row"},[e("em",[i._v(i._s(i.$L("\u5F53\u524D\u73AF\u5883"))+":")]),e("span",{staticClass:"v"},[i._v("SN: "+i._s(i.formData.doo_sn)+", MAC: "+i._s(i.infoJoin(i.formData.macs)))])])]:i._e(),e("li",{staticClass:"offline-more"},[e("a",{on:{click:function(n){i.offlineMore=!i.offlineMore}}},[i._v(i._s(i.offlineMore?i.$L("\u6536\u8D77"):i.$L("\u66F4\u591A\u4FE1\u606F")))])])],2):e("ul",[e("li",[i._v(" "+i._s(i.$L("\u52A0\u8F7D\u4E2D..."))+" ")])])])]),((t=i.formData.error)===null||t===void 0?void 0:t.length)>0?e("FormItem",{attrs:{label:i.$L("\u63D0\u793A")}},[e("div",{staticClass:"license-box"},[e("ul",i._l(i.formData.error,function(n,a){return e("li",{key:a,staticClass:"warning"},[i._v(i._s(n))])}),0)])]):i._e()],1)]],2),e("div",{staticClass:"setting-footer"},[i.onlineActive?[i.offlineRebindShow?[e("Button",{attrs:{loading:i.loadIng>0,type:"primary"},on:{click:i.offlineRebindSubmit}},[i._v(i._s(i.$L("\u63D0\u4EA4")))]),e("Button",{attrs:{loading:i.loadIng>0},on:{click:i.offlineRebindCancel}},[i._v(i._s(i.$L("\u53D6\u6D88")))])]:e("Button",{attrs:{type:"primary"},on:{click:function(n){i.offlineRebindShow=!0}}},[i._v(i._s(i.$L("\u7ED1\u5B9A\u79BB\u7EBF License")))])]:[e("Button",{attrs:{loading:i.loadIng>0,type:"primary"},on:{click:i.submitForm}},[i._v(i._s(i.$L("\u63D0\u4EA4")))]),e("Button",{attrs:{loading:i.loadIng>0},on:{click:i.resetForm}},[i._v(i._s(i.$L("\u91CD\u7F6E")))])]],2)])])],1),e("Modal",{attrs:{title:i.$L("\u9009\u62E9\u8981\u4F7F\u7528\u7684\u6388\u6743"),"mask-closable":!1},model:{value:i.candidateShow,callback:function(n){i.candidateShow=n},expression:"candidateShow"}},[e("div",{staticClass:"online-candidates"},[e("RadioGroup",{attrs:{vertical:""},model:{value:i.candidateChoice,callback:function(n){i.candidateChoice=n},expression:"candidateChoice"}},i._l(i.candidateList,function(n){return e("Radio",{key:n.entitlement_id,staticClass:"online-candidate",attrs:{label:n.entitlement_id}},[e("div",{staticClass:"online-candidate-main"},[e("span",{staticClass:"online-candidate-plan"},[i._v(i._s(n.plan||i.$L("\u6388\u6743")))]),n.occupied_by_self?e("span",{staticClass:"online-candidate-self"},[i._v(i._s(i.$L("\u5F53\u524D\u8BBE\u5907\u4F7F\u7528\u4E2D")))]):i._e()]),e("div",{staticClass:"online-candidate-sub"},[e("span",[i._v(i._s(i.$L("\u4F7F\u7528\u4EBA\u6570"))+": "+i._s(n.people?n.people:i.$L("\u65E0\u9650\u5236")))]),e("span",[i._v(i._s(i.$L("\u6388\u6743\u6709\u6548\u671F"))+": "+i._s(i.candidateDuration(n)))])])])}),1)],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{on:{click:function(n){i.candidateShow=!1}}},[i._v(i._s(i.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:i.candidateSubmitting},on:{click:i.onlineLoginConfirm}},[i._v(i._s(i.$L("\u786E\u5B9A\u6388\u6743")))])],1)])],1)},m=[];const d={data(){return{loadIng:0,formData:{license:"",info:{},macs:[],doo_sn:"",user_count:0,error:[],online:{}},mode:"online",tabInited:!1,offlineRebindShow:!1,offlineRebindLicense:"",offlineMore:!1,onlineAction:"",onlineForm:{email:"",code:""},codeSent:!1,maskedEmail:"",codeCountdown:0,codeTimer:null,firstLoading:!0,onlineRefreshing:!1,candidateShow:!1,candidateList:[],candidateChoice:0,candidateSubmitting:!1}},mounted(){this.loadOnlineCache(),this.onlineRefresh()},beforeDestroy(){this.clearCodeTimer()},computed:{...l(["userInfo","formOptions"]),online(){return this.formData.online||{}},onlineActive(){return this.online.mode==="online"},onlineBusy(){return this.onlineAction!==""},sendBtnText(){return this.codeCountdown>0?this.$L("(*)\u79D2\u540E\u91CD\u53D1",this.codeCountdown):this.$L("\u53D1\u9001\u9A8C\u8BC1\u7801")},onlineCacheKey(){return"license-online-cache::"+(typeof window!="undefined"?window.location.host:"")},offlineValid(){if(this.onlineActive||!String(this.formData.license||"").trim())return!1;const t=this.formData.info||{},i=parseInt(t.people)||0,s=i>=1&&i<=3,e=this.existIntersection(this.formData.doo_sn,t.sn),n=this.existIntersection(this.formData.macs,t.mac);return!s&&e&&n},snMatch(){const t=this.formData.info||{};return!t.sn||this.existIntersection(this.formData.doo_sn,t.sn)},macMatch(){const t=this.formData.info||{};return!t.mac||this.existIntersection(this.formData.macs,t.mac)},onlineMismatch(){return!!(this.formData.info||{}).sn&&(!this.snMatch||!this.macMatch)},onlineHealth(){const t=this.online.status;return t==="revoked"||t==="frozen"||!this.snMatch?"error":t==="reminder"||!this.macMatch?"warning":"ok"},onlineAlert(){if(!this.onlineActive)return null;const t=this.online.status;return this.onlineMismatch&&!this.snMatch?{type:"error",title:this.$L("\u6388\u6743\u4E0E\u5F53\u524D\u8BBE\u5907\u4E0D\u5339\u914D"),desc:this.$L("\u68C0\u6D4B\u5230\u8BBE\u5907\u6807\u8BC6\uFF08SN\uFF09\u5DF2\u53D8\u66F4\uFF0C\u5728\u7EBF\u6388\u6743\u53EF\u80FD\u5DF2\u5931\u6548\u3002\u8BF7\u91CD\u65B0\u767B\u5F55\u6388\u6743\uFF0C\u6216\u5148\u5728\u539F\u8BBE\u5907\u9000\u51FA\u4EE5\u91CA\u653E\u5EA7\u4F4D\u3002"),relogin:!0}:t==="frozen"?{type:"error",title:this.$L("\u5728\u7EBF\u6388\u6743\u5DF2\u8FC7\u671F"),desc:this.$L("\u65B0\u589E\u7528\u6237\u5DF2\u53D7\u9650\uFF0C\u8BF7\u5C3D\u5FEB\u8054\u7F51\u4EE5\u81EA\u52A8\u7EED\u671F\u6062\u590D\u3002"),relogin:!1}:this.onlineMismatch&&!this.macMatch?{type:"warning",title:this.$L("\u68C0\u6D4B\u5230\u7F51\u5361\uFF08MAC\uFF09\u53D8\u5316"),desc:this.$L("\u7CFB\u7EDF\u4F1A\u5728\u4E0B\u6B21\u7EED\u671F\u65F6\u81EA\u52A8\u6062\u590D\u6388\u6743\uFF0C\u901A\u5E38\u65E0\u9700\u5904\u7406\u3002"),relogin:!1}:t==="reminder"?this.online.error_count>0?{type:"warning",title:this.$L("\u7EED\u671F\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC"),desc:this.$L("\u6388\u6743\u4ECD\u7136\u6709\u6548\uFF0C\u8054\u7F51\u540E\u4F1A\u81EA\u52A8\u7EED\u671F\u6062\u590D\u3002"),relogin:!1}:{type:"warning",title:this.$L("\u6388\u6743\u5373\u5C06\u5230\u671F"),desc:this.$L("\u8BF7\u4FDD\u6301\u8054\u7F51\uFF0C\u7CFB\u7EDF\u4F1A\u81EA\u52A8\u4E3A\u4F60\u7EED\u671F\u3002"),relogin:!1}:null}},methods:{submitForm(){this.$refs.formData.validate(t=>{t&&this.systemSetting(!0)})},resetForm(){this.formData=$A.cloneJSON(this.formData_bak)},offlineRebindCancel(){this.offlineRebindShow=!1,this.offlineRebindLicense=""},offlineRebindSubmit(){if(!String(this.offlineRebindLicense).trim()){$A.messageError("\u8BF7\u8F93\u5165License");return}$A.modalConfirm({title:"\u7ED1\u5B9A\u79BB\u7EBF\u6388\u6743",content:"\u5F53\u524D\u5DF2\u7ED1\u5B9A\u5728\u7EBF\u6388\u6743\uFF0C\u7ED1\u5B9A\u79BB\u7EBF\u540E\u5C06\u66FF\u6362\u5F53\u524D\u6388\u6743\u5E76\u91CA\u653E\u5728\u7EBF\u5EA7\u4F4D\uFF0C\u662F\u5426\u7EE7\u7EED\uFF1F",onOk:()=>(this.loadIng++,this.$store.dispatch("call",{url:"system/license",data:{type:"save",license:this.offlineRebindLicense},method:"post"}).then(({data:t})=>{$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.formData=t,this.formData_bak=$A.cloneJSON(this.formData),this.offlineRebindCancel()}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.loadIng--}))})},systemSetting(t){return this.loadIng++,this.$store.dispatch("call",{url:"system/license",data:Object.assign(this.formData,{type:t?"save":"get"}),method:"post"}).then(({data:i})=>{t&&$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.formData=i,this.formData_bak=$A.cloneJSON(this.formData),this.writeOnlineCache(i.online),this.tabInited||(this.tabInited=!0,i.online&&i.online.mode==="online"?this.mode="online":this.offlineValid&&(this.mode="offline"))}).catch(({msg:i})=>{t&&$A.modalError(i)}).finally(i=>{this.loadIng--,this.firstLoading=!1})},onlineRefresh(){this.onlineRefreshing=!0,this.$store.dispatch("call",{url:"license/refresh",method:"post"}).catch(()=>{}).finally(()=>{this.systemSetting().finally(()=>{this.onlineRefreshing=!1})})},loadOnlineCache(){try{const t=window.localStorage.getItem(this.onlineCacheKey);if(!t)return;const i=JSON.parse(t);i&&i.mode==="online"&&(this.$set(this.formData,"online",i),this.firstLoading=!1,this.tabInited||(this.tabInited=!0,this.mode="online"))}catch{}},writeOnlineCache(t){try{t&&t.mode==="online"?window.localStorage.setItem(this.onlineCacheKey,JSON.stringify(t)):window.localStorage.removeItem(this.onlineCacheKey)}catch{}},infoJoin(t,i=null){return $A.isArray(t)&&(t=t.join(",")),t||(i===null?this.$L("\u65E0\u9650\u5236"):i)},existIntersection(t,i){return $A.isArray(t)||(t=[t]),$A.isArray(i)||(i=[i]),t.some(s=>i.includes(s))},fmt(t){return t?$A.dayjs(t).format("YYYY-MM-DD HH:mm"):"-"},stageText(t){return{active:this.$L("\u751F\u6548\u4E2D"),reminder:this.$L("\u5373\u5C06\u5230\u671F"),frozen:this.$L("\u5DF2\u8FC7\u671F"),revoked:this.$L("\u5DF2\u540A\u9500")}[t]||t||"-"},onlineCall(t,i,s){return this.$store.dispatch("call",{url:t,data:i,method:"post"}).then(e=>(s&&$A.messageSuccess(s),e)).catch(({msg:e})=>($A.modalError(e),Promise.reject(e)))},confirmReplaceOffline(t){this.offlineValid?$A.modalConfirm({title:"\u7ED1\u5B9A\u5728\u7EBF\u6388\u6743",content:"\u5F53\u524D\u5DF2\u7ED1\u5B9A\u79BB\u7EBF\u6388\u6743\uFF0C\u7ED1\u5B9A\u5728\u7EBF\u540E\u5C06\u66FF\u6362\u5F53\u524D\u6388\u6743\uFF0C\u662F\u5426\u7EE7\u7EED\uFF1F",onOk:t}):t()},emailSend(){if(!(this.codeCountdown>0)){if(!this.onlineForm.email){$A.messageError("\u8BF7\u8F93\u5165\u90AE\u7BB1");return}this.confirmReplaceOffline(()=>{this.$store.dispatch("call",{url:"license/email/send",data:{email:this.onlineForm.email},method:"post",spinner:!0}).then(({data:t})=>{this.codeSent=!0,this.maskedEmail=(t==null?void 0:t.email)||"",this.startCodeCountdown()}).catch(({msg:t})=>{$A.messageError(t)})})}},onlineLogin(){if(!this.onlineForm.email||!this.onlineForm.code){$A.messageError("\u8BF7\u8F93\u5165\u90AE\u7BB1\u548C\u9A8C\u8BC1\u7801");return}this.onlineAction="login",this.$store.dispatch("call",{url:"license/login",data:{email:this.onlineForm.email,code:this.onlineForm.code},method:"post"}).then(({data:t})=>{if(t&&t.select_required){this.showCandidateSelect(t.candidates||[]);return}$A.messageSuccess(this.$L("\u6388\u6743\u6210\u529F")),this.resetOnlineForm(),this.systemSetting()}).catch(({msg:t})=>{$A.modalError(t),this.onlineForm.code="",this.clearCodeTimer()}).finally(()=>{this.onlineAction=""})},showCandidateSelect(t){this.candidateList=t,this.candidateChoice=t.length?t[0].entitlement_id:0,this.candidateShow=!0},onlineLoginConfirm(){if(!this.candidateChoice){$A.messageError("\u8BF7\u9009\u62E9\u8981\u4F7F\u7528\u7684\u6388\u6743");return}this.candidateSubmitting=!0,this.$store.dispatch("call",{url:"license/login/confirm",data:{email:this.onlineForm.email,code:this.onlineForm.code,entitlement_id:this.candidateChoice},method:"post"}).then(t=>{$A.messageSuccess(this.$L("\u6388\u6743\u6210\u529F")),this.candidateShow=!1,this.resetOnlineForm(),this.systemSetting()}).catch(({msg:t})=>{$A.modalError(t)}).finally(()=>{this.candidateSubmitting=!1})},candidateDuration(t){return t.duration_type==="fixed"?t.valid_until?this.fmt(t.valid_until):"-":this.$L("\u6C38\u4E45")},trialSubmit(){if(!this.onlineForm.email||!this.onlineForm.code){$A.messageError("\u8BF7\u8F93\u5165\u90AE\u7BB1\u548C\u9A8C\u8BC1\u7801");return}this.onlineAction="trial",this.onlineCall("license/trial",{email:this.onlineForm.email,code:this.onlineForm.code},"\u8BD5\u7528\u5DF2\u5F00\u901A").then(t=>{this.resetOnlineForm(),this.systemSetting()}).catch(()=>{this.onlineForm.code="",this.clearCodeTimer()}).finally(()=>{this.onlineAction=""})},onlineLogout(){$A.modalConfirm({content:"\u786E\u5B9A\u9000\u51FA\u5728\u7EBF\u6388\u6743\uFF1F",onOk:()=>{this.onlineAction="logout",this.onlineCall("license/logout",{},"\u5DF2\u9000\u51FA\u5728\u7EBF\u6388\u6743").then(t=>{this.systemSetting()}).catch(()=>{}).finally(()=>{this.onlineAction=""})}})},onlineRelogin(){$A.modalConfirm({title:"\u91CD\u65B0\u767B\u5F55\u6388\u6743",content:"\u5C06\u91CA\u653E\u5F53\u524D\u8BBE\u5907\u5360\u7528\u7684\u6388\u6743\u5EA7\u4F4D\u5E76\u56DE\u5230\u767B\u5F55\uFF0C\u786E\u5B9A\u7EE7\u7EED\uFF1F",onOk:()=>{this.onlineAction="relogin",this.onlineCall("license/logout",{},"").then(t=>{this.systemSetting()}).catch(()=>{}).finally(()=>{this.onlineAction=""})}})},startCodeCountdown(){this.clearCodeTimer(),this.codeCountdown=60,this.codeTimer=setInterval(()=>{this.codeCountdown--,this.codeCountdown<=0&&this.clearCodeTimer()},1e3)},clearCodeTimer(){this.codeTimer&&(clearInterval(this.codeTimer),this.codeTimer=null),this.codeCountdown=0},resetOnlineForm(){this.onlineForm={email:"",code:""},this.codeSent=!1,this.maskedEmail="",this.clearCodeTimer()}}},o={};var f=r(d,c,m,!1,h,"476686e8",null,null);function h(t){for(let i in o)this[i]=o[i]}var ai=function(){return f.exports}();export{ai as default};
+import{m as l}from"./vuex.cc7cb26e.js";import{n as r}from"./app.ef7047f7.js";import"./jquery.6e4daff9.js";import"./@babel.9410f858.js";import"./dayjs.d20a4841.js";import"./localforage.743dffdd.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./vue.adba9046.js";import"./openpgp_hi.15f91b1d.js";import"./axios.37c7f908.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./view-design-hi.24419422.js";import"./html-to-md.f297036e.js";import"./lodash.8fcd6fd4.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vuedraggable.f464b992.js";import"./sortablejs.3488b922.js";import"./vue-resize-observer.5af23a43.js";import"./element-sea.f8a64907.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var c=function(){var t,i=this,s=i.$createElement,e=i._self._c||s;return e("div",{staticClass:"setting-item submit license-setting"},[e("Tabs",{model:{value:i.mode,callback:function(n){i.mode=n},expression:"mode"}},[e("TabPane",{attrs:{label:i.$L("\u5728\u7EBF\u6388\u6743"),name:"online"}},[e("div",{staticClass:"setting-component-item"},[e("div",{staticClass:"setting-scroll"},[i.firstLoading?e("div",{staticClass:"license-box license-wrap"},[e("div",{staticClass:"online-refreshing"},[e("i",{staticClass:"online-spin"}),i._v(i._s(i.$L("\u52A0\u8F7D\u4E2D...")))]),e("ul",{staticClass:"online-info"},[e("li",[e("em",[i._v(i._s(i.$L("\u8D26\u53F7"))+":")]),e("span",{staticClass:"online-skeleton"})]),e("li",[e("em",[i._v(i._s(i.$L("\u5957\u9910"))+":")]),e("span",{staticClass:"online-skeleton sk-sm"})]),e("li",[e("em",[i._v(i._s(i.$L("\u4F7F\u7528\u4EBA\u6570"))+":")]),e("span",{staticClass:"online-skeleton sk-xs"})]),e("li",[e("em",[i._v(i._s(i.$L("\u6388\u6743\u6709\u6548\u671F"))+":")]),e("span",{staticClass:"online-skeleton"})]),e("li",[e("em",[i._v(i._s(i.$L("\u5F53\u524D\u72B6\u6001"))+":")]),e("span",{staticClass:"online-skeleton sk-sm"})])])]):[i.onlineActive?e("div",{staticClass:"license-box license-wrap"},[i.onlineRefreshing?e("div",{staticClass:"online-refreshing"},[e("i",{staticClass:"online-spin"}),i._v(i._s(i.$L("\u5237\u65B0\u4E2D")))]):i._e(),i.onlineAlert?e("div",{staticClass:"online-alert",class:i.onlineAlert.type},[e("i",{staticClass:"online-alert-ico"},[i._v(i._s(i.onlineAlert.type==="error"?"\u2715":"!"))]),e("div",{staticClass:"online-alert-main"},[e("div",{staticClass:"online-alert-title"},[i._v(i._s(i.onlineAlert.title))]),e("div",{staticClass:"online-alert-desc"},[i._v(i._s(i.onlineAlert.desc))])])]):i._e(),e("ul",{staticClass:"online-info"},[e("li",[e("em",[i._v(i._s(i.$L("\u8D26\u53F7"))+":")]),e("span",[i._v(i._s(i.online.account))])]),e("li",[e("em",[i._v(i._s(i.$L("\u5957\u9910"))+":")]),e("span",[i._v(i._s(i.online.plan||"-"))])]),e("li",[e("em",[i._v(i._s(i.$L("\u4F7F\u7528\u4EBA\u6570"))+":")]),e("span",[i._v(i._s(i.online.people||i.$L("\u65E0\u9650\u5236")))])]),e("li",[e("em",[i._v(i._s(i.$L("\u6388\u6743\u6709\u6548\u671F"))+":")]),e("span",[i._v(i._s(i.online.valid_until?i.fmt(i.online.valid_until):i.$L("\u6C38\u4E45")))])]),e("li",[e("em",[i._v(i._s(i.$L("\u5F53\u524D\u72B6\u6001"))+":")]),e("span",{staticClass:"online-status",class:"is-"+i.onlineHealth},[e("i",{staticClass:"online-status-dot"}),i._v(i._s(i.stageText(i.online.status)))])])]),i.onlineMismatch?e("div",{staticClass:"online-diag"},[e("div",{staticClass:"online-diag-title"},[i._v(i._s(i.$L("\u8BCA\u65AD\u8BE6\u60C5")))]),e("div",{staticClass:"online-diag-row",class:{bad:!i.snMatch}},[e("em",[i._v(i._s(i.$L("\u6388\u6743 SN"))+":")]),e("span",[i._v(i._s(i.formData.info.sn))])]),e("div",{staticClass:"online-diag-row",class:{bad:!i.snMatch}},[e("em",[i._v(i._s(i.$L("\u5F53\u524D SN"))+":")]),e("span",[i._v(i._s(i.formData.doo_sn)),e("b",[i._v(i._s(i.snMatch?" \u2713":" \u2715"))])])]),e("div",{staticClass:"online-diag-row",class:{bad:!i.macMatch}},[e("em",[i._v(i._s(i.$L("\u6388\u6743 MAC"))+":")]),e("span",[i._v(i._s(i.infoJoin(i.formData.info.mac)))])]),e("div",{staticClass:"online-diag-row",class:{bad:!i.macMatch}},[e("em",[i._v(i._s(i.$L("\u5F53\u524D MAC"))+":")]),e("span",[i._v(i._s(i.infoJoin(i.formData.macs))),e("b",[i._v(i._s(i.macMatch?" \u2713":" \u2715"))])])])]):i._e()]):e("Form",i._b({attrs:{model:i.onlineForm},nativeOn:{submit:function(n){n.preventDefault()}}},"Form",i.formOptions,!1),[e("FormItem",{attrs:{label:i.$L("\u90AE\u7BB1")}},[e("Input",{class:i.codeCountdown>0?"setting-send-input":"setting-input",attrs:{search:"","enter-button":i.sendBtnText,disabled:i.onlineBusy,placeholder:i.$L("\u8BF7\u8F93\u5165\u90AE\u7BB1")},on:{"on-search":i.emailSend},model:{value:i.onlineForm.email,callback:function(n){i.$set(i.onlineForm,"email",n)},expression:"onlineForm.email"}})],1),i.codeSent?e("FormItem",{attrs:{label:i.$L("\u90AE\u7BB1\u9A8C\u8BC1\u7801")}},[e("Input",{staticClass:"setting-input",attrs:{placeholder:i.$L("\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801")},model:{value:i.onlineForm.code,callback:function(n){i.$set(i.onlineForm,"code",n)},expression:"onlineForm.code"}}),e("div",{staticClass:"online-tip"},[i._v(i._s(i.$L("\u9A8C\u8BC1\u7801\u5DF2\u53D1\u9001\u81F3(*)",i.maskedEmail)))])],1):i._e()],1)]],2),i.firstLoading?i._e():e("div",{staticClass:"setting-footer"},[i.onlineActive?[i.onlineAlert&&i.onlineAlert.relogin?e("Button",{attrs:{loading:i.onlineAction==="relogin",disabled:i.onlineBusy&&i.onlineAction!=="relogin",type:"primary"},on:{click:i.onlineRelogin}},[i._v(i._s(i.$L("\u91CD\u65B0\u767B\u5F55\u6388\u6743")))]):i._e(),e("Button",{attrs:{loading:i.onlineAction==="logout",disabled:i.onlineBusy&&i.onlineAction!=="logout",type:i.onlineAlert&&i.onlineAlert.relogin?"default":"primary"},on:{click:i.onlineLogout}},[i._v(i._s(i.$L("\u9000\u51FA\u5728\u7EBF\u6388\u6743")))])]:[e("Button",{attrs:{loading:i.onlineAction==="login",disabled:i.onlineBusy&&i.onlineAction!=="login",type:"primary"},on:{click:i.onlineLogin}},[i._v(i._s(i.$L("\u767B\u5F55\u6388\u6743")))]),e("Button",{attrs:{loading:i.onlineAction==="trial",disabled:i.onlineBusy&&i.onlineAction!=="trial"},on:{click:i.trialSubmit}},[i._v(i._s(i.$L("\u7533\u8BF7\u8BD5\u7528")))])]],2)])]),e("TabPane",{attrs:{label:i.$L("\u79BB\u7EBF\u6388\u6743"),name:"offline"}},[e("div",{staticClass:"setting-component-item"},[e("div",{staticClass:"setting-scroll"},[i.onlineActive?[e("div",{staticClass:"license-box license-wrap"},[e("ul",{staticClass:"online-info"},[e("li",[e("em",[i._v(i._s(i.$L("\u5F53\u524D\u72B6\u6001"))+":")]),e("span",{staticClass:"online-link",on:{click:function(n){i.mode="online"}}},[i._v(i._s(i.$L("\u5DF2\u7ED1\u5B9A\u5728\u7EBF\u6388\u6743")))])]),e("li",[e("em",[i._v("SN:")]),e("span",[i._v(i._s(i.formData.doo_sn))])]),e("li",[e("em",[i._v("MAC:")]),e("span",[i._v(i._s(i.infoJoin(i.formData.macs)))])])])]),i.offlineRebindShow?e("Form",i._b({attrs:{model:i.formData},nativeOn:{submit:function(n){n.preventDefault()}}},"Form",i.formOptions,!1),[e("FormItem",{attrs:{label:"License"}},[e("Input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:5},placeholder:i.$L("\u8BF7\u8F93\u5165License...")},model:{value:i.offlineRebindLicense,callback:function(n){i.offlineRebindLicense=n},expression:"offlineRebindLicense"}})],1)],1):i._e()]:[e("Form",i._b({ref:"formData",staticClass:"license-form",attrs:{model:i.formData},nativeOn:{submit:function(n){n.preventDefault()}}},"Form",i.formOptions,!1),[e("FormItem",{attrs:{label:"License",prop:"license"}},[e("Input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:5},placeholder:i.$L("\u8BF7\u8F93\u5165License...")},model:{value:i.formData.license,callback:function(n){i.$set(i.formData,"license",n)},expression:"formData.license"}})],1),e("FormItem",[e("div",{staticClass:"license-box"},[i.formData.info.sn?e("ul",{staticClass:"offline-detail"},[e("li",{staticClass:"offline-row",class:{bad:!i.snMatch}},[e("em",[i._v("SN:")]),e("span",{staticClass:"v"},[i._v(i._s(i.formData.info.sn))]),e("span",{staticClass:"offline-flag"},[i._v(i._s(i.snMatch?i.$L("\u5339\u914D"):i.$L("\u4E0D\u5339\u914D")))])]),e("li",{staticClass:"offline-row",class:{bad:!i.macMatch}},[e("em",[i._v("MAC:")]),e("span",{staticClass:"v"},[i._v(i._s(i.infoJoin(i.formData.info.mac)))]),e("span",{staticClass:"offline-flag"},[i._v(i._s(i.macMatch?i.$L("\u5339\u914D"):i.$L("\u4E0D\u5339\u914D")))])]),e("li",{staticClass:"offline-row"},[e("em",[i._v(i._s(i.$L("\u4F7F\u7528\u4EBA\u6570"))+":")]),e("span",{staticClass:"v"},[i._v(i._s(i.formData.info.people||i.$L("\u65E0\u9650\u5236"))+"\uFF08"+i._s(i.$L("\u5DF2\u4F7F\u7528"))+" "+i._s(i.formData.user_count)+"\uFF09")])]),e("li",{staticClass:"offline-row"},[e("em",[i._v(i._s(i.$L("\u5230\u671F\u65F6\u95F4"))+":")]),e("span",{staticClass:"v"},[i._v(i._s(i.formData.info.expired_at||i.$L("\u6C38\u4E45")))])]),i.offlineMore?[e("li",{staticClass:"offline-row"},[e("em",[i._v("IP:")]),e("span",{staticClass:"v"},[i._v(i._s(i.infoJoin(i.formData.info.ip)))])]),e("li",{staticClass:"offline-row"},[e("em",[i._v(i._s(i.$L("\u57DF\u540D"))+":")]),e("span",{staticClass:"v"},[i._v(i._s(i.infoJoin(i.formData.info.domain)))])]),e("li",{staticClass:"offline-row"},[e("em",[i._v(i._s(i.$L("\u521B\u5EFA\u65F6\u95F4"))+":")]),e("span",{staticClass:"v"},[i._v(i._s(i.formData.info.created_at))])]),e("li",{staticClass:"offline-row"},[e("em",[i._v(i._s(i.$L("\u5F53\u524D\u73AF\u5883"))+":")]),e("span",{staticClass:"v"},[i._v("SN: "+i._s(i.formData.doo_sn)+", MAC: "+i._s(i.infoJoin(i.formData.macs)))])])]:i._e(),e("li",{staticClass:"offline-more"},[e("a",{on:{click:function(n){i.offlineMore=!i.offlineMore}}},[i._v(i._s(i.offlineMore?i.$L("\u6536\u8D77"):i.$L("\u66F4\u591A\u4FE1\u606F")))])])],2):e("ul",[e("li",[i._v(" "+i._s(i.$L("\u52A0\u8F7D\u4E2D..."))+" ")])])])]),((t=i.formData.error)===null||t===void 0?void 0:t.length)>0?e("FormItem",{attrs:{label:i.$L("\u63D0\u793A")}},[e("div",{staticClass:"license-box"},[e("ul",i._l(i.formData.error,function(n,a){return e("li",{key:a,staticClass:"warning"},[i._v(i._s(n))])}),0)])]):i._e()],1)]],2),e("div",{staticClass:"setting-footer"},[i.onlineActive?[i.offlineRebindShow?[e("Button",{attrs:{loading:i.loadIng>0,type:"primary"},on:{click:i.offlineRebindSubmit}},[i._v(i._s(i.$L("\u63D0\u4EA4")))]),e("Button",{attrs:{loading:i.loadIng>0},on:{click:i.offlineRebindCancel}},[i._v(i._s(i.$L("\u53D6\u6D88")))])]:e("Button",{attrs:{type:"primary"},on:{click:function(n){i.offlineRebindShow=!0}}},[i._v(i._s(i.$L("\u7ED1\u5B9A\u79BB\u7EBF License")))])]:[e("Button",{attrs:{loading:i.loadIng>0,type:"primary"},on:{click:i.submitForm}},[i._v(i._s(i.$L("\u63D0\u4EA4")))]),e("Button",{attrs:{loading:i.loadIng>0},on:{click:i.resetForm}},[i._v(i._s(i.$L("\u91CD\u7F6E")))])]],2)])])],1),e("Modal",{attrs:{title:i.$L("\u9009\u62E9\u8981\u4F7F\u7528\u7684\u6388\u6743"),"mask-closable":!1},model:{value:i.candidateShow,callback:function(n){i.candidateShow=n},expression:"candidateShow"}},[e("div",{staticClass:"online-candidates"},[e("RadioGroup",{attrs:{vertical:""},model:{value:i.candidateChoice,callback:function(n){i.candidateChoice=n},expression:"candidateChoice"}},i._l(i.candidateList,function(n){return e("Radio",{key:n.entitlement_id,staticClass:"online-candidate",attrs:{label:n.entitlement_id}},[e("div",{staticClass:"online-candidate-main"},[e("span",{staticClass:"online-candidate-plan"},[i._v(i._s(n.plan||i.$L("\u6388\u6743")))]),n.occupied_by_self?e("span",{staticClass:"online-candidate-self"},[i._v(i._s(i.$L("\u5F53\u524D\u8BBE\u5907\u4F7F\u7528\u4E2D")))]):i._e()]),e("div",{staticClass:"online-candidate-sub"},[e("span",[i._v(i._s(i.$L("\u4F7F\u7528\u4EBA\u6570"))+": "+i._s(n.people?n.people:i.$L("\u65E0\u9650\u5236")))]),e("span",[i._v(i._s(i.$L("\u6388\u6743\u6709\u6548\u671F"))+": "+i._s(i.candidateDuration(n)))])])])}),1)],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{on:{click:function(n){i.candidateShow=!1}}},[i._v(i._s(i.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:i.candidateSubmitting},on:{click:i.onlineLoginConfirm}},[i._v(i._s(i.$L("\u786E\u5B9A\u6388\u6743")))])],1)])],1)},m=[];const d={data(){return{loadIng:0,formData:{license:"",info:{},macs:[],doo_sn:"",user_count:0,error:[],online:{}},mode:"online",tabInited:!1,offlineRebindShow:!1,offlineRebindLicense:"",offlineMore:!1,onlineAction:"",onlineForm:{email:"",code:""},codeSent:!1,maskedEmail:"",codeCountdown:0,codeTimer:null,firstLoading:!0,onlineRefreshing:!1,candidateShow:!1,candidateList:[],candidateChoice:0,candidateSubmitting:!1}},mounted(){this.loadOnlineCache(),this.onlineRefresh()},beforeDestroy(){this.clearCodeTimer()},computed:{...l(["userInfo","formOptions"]),online(){return this.formData.online||{}},onlineActive(){return this.online.mode==="online"},onlineBusy(){return this.onlineAction!==""},sendBtnText(){return this.codeCountdown>0?this.$L("(*)\u79D2\u540E\u91CD\u53D1",this.codeCountdown):this.$L("\u53D1\u9001\u9A8C\u8BC1\u7801")},onlineCacheKey(){return"license-online-cache::"+(typeof window!="undefined"?window.location.host:"")},offlineValid(){if(this.onlineActive||!String(this.formData.license||"").trim())return!1;const t=this.formData.info||{},i=parseInt(t.people)||0,s=i>=1&&i<=3,e=this.existIntersection(this.formData.doo_sn,t.sn),n=this.existIntersection(this.formData.macs,t.mac);return!s&&e&&n},snMatch(){const t=this.formData.info||{};return!t.sn||this.existIntersection(this.formData.doo_sn,t.sn)},macMatch(){const t=this.formData.info||{};return!t.mac||this.existIntersection(this.formData.macs,t.mac)},onlineMismatch(){return!!(this.formData.info||{}).sn&&(!this.snMatch||!this.macMatch)},onlineHealth(){const t=this.online.status;return t==="revoked"||t==="frozen"||!this.snMatch?"error":t==="reminder"||!this.macMatch?"warning":"ok"},onlineAlert(){if(!this.onlineActive)return null;const t=this.online.status;return this.onlineMismatch&&!this.snMatch?{type:"error",title:this.$L("\u6388\u6743\u4E0E\u5F53\u524D\u8BBE\u5907\u4E0D\u5339\u914D"),desc:this.$L("\u68C0\u6D4B\u5230\u8BBE\u5907\u6807\u8BC6\uFF08SN\uFF09\u5DF2\u53D8\u66F4\uFF0C\u5728\u7EBF\u6388\u6743\u53EF\u80FD\u5DF2\u5931\u6548\u3002\u8BF7\u91CD\u65B0\u767B\u5F55\u6388\u6743\uFF0C\u6216\u5148\u5728\u539F\u8BBE\u5907\u9000\u51FA\u4EE5\u91CA\u653E\u5EA7\u4F4D\u3002"),relogin:!0}:t==="frozen"?{type:"error",title:this.$L("\u5728\u7EBF\u6388\u6743\u5DF2\u8FC7\u671F"),desc:this.$L("\u65B0\u589E\u7528\u6237\u5DF2\u53D7\u9650\uFF0C\u8BF7\u5C3D\u5FEB\u8054\u7F51\u4EE5\u81EA\u52A8\u7EED\u671F\u6062\u590D\u3002"),relogin:!1}:this.onlineMismatch&&!this.macMatch?{type:"warning",title:this.$L("\u68C0\u6D4B\u5230\u7F51\u5361\uFF08MAC\uFF09\u53D8\u5316"),desc:this.$L("\u7CFB\u7EDF\u4F1A\u5728\u4E0B\u6B21\u7EED\u671F\u65F6\u81EA\u52A8\u6062\u590D\u6388\u6743\uFF0C\u901A\u5E38\u65E0\u9700\u5904\u7406\u3002"),relogin:!1}:t==="reminder"?this.online.error_count>0?{type:"warning",title:this.$L("\u7EED\u671F\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC"),desc:this.$L("\u6388\u6743\u4ECD\u7136\u6709\u6548\uFF0C\u8054\u7F51\u540E\u4F1A\u81EA\u52A8\u7EED\u671F\u6062\u590D\u3002"),relogin:!1}:{type:"warning",title:this.$L("\u6388\u6743\u5373\u5C06\u5230\u671F"),desc:this.$L("\u8BF7\u4FDD\u6301\u8054\u7F51\uFF0C\u7CFB\u7EDF\u4F1A\u81EA\u52A8\u4E3A\u4F60\u7EED\u671F\u3002"),relogin:!1}:null}},methods:{submitForm(){this.$refs.formData.validate(t=>{t&&this.systemSetting(!0)})},resetForm(){this.formData=$A.cloneJSON(this.formData_bak)},offlineRebindCancel(){this.offlineRebindShow=!1,this.offlineRebindLicense=""},offlineRebindSubmit(){if(!String(this.offlineRebindLicense).trim()){$A.messageError("\u8BF7\u8F93\u5165License");return}$A.modalConfirm({title:"\u7ED1\u5B9A\u79BB\u7EBF\u6388\u6743",content:"\u5F53\u524D\u5DF2\u7ED1\u5B9A\u5728\u7EBF\u6388\u6743\uFF0C\u7ED1\u5B9A\u79BB\u7EBF\u540E\u5C06\u66FF\u6362\u5F53\u524D\u6388\u6743\u5E76\u91CA\u653E\u5728\u7EBF\u5EA7\u4F4D\uFF0C\u662F\u5426\u7EE7\u7EED\uFF1F",onOk:()=>(this.loadIng++,this.$store.dispatch("call",{url:"system/license",data:{type:"save",license:this.offlineRebindLicense},method:"post"}).then(({data:t})=>{$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.formData=t,this.formData_bak=$A.cloneJSON(this.formData),this.offlineRebindCancel()}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.loadIng--}))})},systemSetting(t){return this.loadIng++,this.$store.dispatch("call",{url:"system/license",data:Object.assign(this.formData,{type:t?"save":"get"}),method:"post"}).then(({data:i})=>{t&&$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.formData=i,this.formData_bak=$A.cloneJSON(this.formData),this.writeOnlineCache(i.online),this.tabInited||(this.tabInited=!0,i.online&&i.online.mode==="online"?this.mode="online":this.offlineValid&&(this.mode="offline"))}).catch(({msg:i})=>{t&&$A.modalError(i)}).finally(i=>{this.loadIng--,this.firstLoading=!1})},onlineRefresh(){this.onlineRefreshing=!0,this.$store.dispatch("call",{url:"license/refresh",method:"post"}).catch(()=>{}).finally(()=>{this.systemSetting().finally(()=>{this.onlineRefreshing=!1})})},loadOnlineCache(){try{const t=window.localStorage.getItem(this.onlineCacheKey);if(!t)return;const i=JSON.parse(t);i&&i.mode==="online"&&(this.$set(this.formData,"online",i),this.firstLoading=!1,this.tabInited||(this.tabInited=!0,this.mode="online"))}catch{}},writeOnlineCache(t){try{t&&t.mode==="online"?window.localStorage.setItem(this.onlineCacheKey,JSON.stringify(t)):window.localStorage.removeItem(this.onlineCacheKey)}catch{}},infoJoin(t,i=null){return $A.isArray(t)&&(t=t.join(",")),t||(i===null?this.$L("\u65E0\u9650\u5236"):i)},existIntersection(t,i){return $A.isArray(t)||(t=[t]),$A.isArray(i)||(i=[i]),t.some(s=>i.includes(s))},fmt(t){return t?$A.dayjs(t).format("YYYY-MM-DD HH:mm"):"-"},stageText(t){return{active:this.$L("\u751F\u6548\u4E2D"),reminder:this.$L("\u5373\u5C06\u5230\u671F"),frozen:this.$L("\u5DF2\u8FC7\u671F"),revoked:this.$L("\u5DF2\u540A\u9500")}[t]||t||"-"},onlineCall(t,i,s){return this.$store.dispatch("call",{url:t,data:i,method:"post"}).then(e=>(s&&$A.messageSuccess(s),e)).catch(({msg:e})=>($A.modalError(e),Promise.reject(e)))},confirmReplaceOffline(t){this.offlineValid?$A.modalConfirm({title:"\u7ED1\u5B9A\u5728\u7EBF\u6388\u6743",content:"\u5F53\u524D\u5DF2\u7ED1\u5B9A\u79BB\u7EBF\u6388\u6743\uFF0C\u7ED1\u5B9A\u5728\u7EBF\u540E\u5C06\u66FF\u6362\u5F53\u524D\u6388\u6743\uFF0C\u662F\u5426\u7EE7\u7EED\uFF1F",onOk:t}):t()},emailSend(){if(!(this.codeCountdown>0)){if(!this.onlineForm.email){$A.messageError("\u8BF7\u8F93\u5165\u90AE\u7BB1");return}this.confirmReplaceOffline(()=>{this.$store.dispatch("call",{url:"license/email/send",data:{email:this.onlineForm.email},method:"post",spinner:!0}).then(({data:t})=>{this.codeSent=!0,this.maskedEmail=(t==null?void 0:t.email)||"",this.startCodeCountdown()}).catch(({msg:t})=>{$A.messageError(t)})})}},onlineLogin(){if(!this.onlineForm.email||!this.onlineForm.code){$A.messageError("\u8BF7\u8F93\u5165\u90AE\u7BB1\u548C\u9A8C\u8BC1\u7801");return}this.onlineAction="login",this.$store.dispatch("call",{url:"license/login",data:{email:this.onlineForm.email,code:this.onlineForm.code},method:"post"}).then(({data:t})=>{if(t&&t.select_required){this.showCandidateSelect(t.candidates||[]);return}$A.messageSuccess(this.$L("\u6388\u6743\u6210\u529F")),this.resetOnlineForm(),this.systemSetting()}).catch(({msg:t})=>{$A.modalError(t),this.onlineForm.code="",this.clearCodeTimer()}).finally(()=>{this.onlineAction=""})},showCandidateSelect(t){this.candidateList=t,this.candidateChoice=t.length?t[0].entitlement_id:0,this.candidateShow=!0},onlineLoginConfirm(){if(!this.candidateChoice){$A.messageError("\u8BF7\u9009\u62E9\u8981\u4F7F\u7528\u7684\u6388\u6743");return}this.candidateSubmitting=!0,this.$store.dispatch("call",{url:"license/login/confirm",data:{email:this.onlineForm.email,code:this.onlineForm.code,entitlement_id:this.candidateChoice},method:"post"}).then(t=>{$A.messageSuccess(this.$L("\u6388\u6743\u6210\u529F")),this.candidateShow=!1,this.resetOnlineForm(),this.systemSetting()}).catch(({msg:t})=>{$A.modalError(t)}).finally(()=>{this.candidateSubmitting=!1})},candidateDuration(t){return t.duration_type==="fixed"?t.valid_until?this.fmt(t.valid_until):"-":this.$L("\u6C38\u4E45")},trialSubmit(){if(!this.onlineForm.email||!this.onlineForm.code){$A.messageError("\u8BF7\u8F93\u5165\u90AE\u7BB1\u548C\u9A8C\u8BC1\u7801");return}this.onlineAction="trial",this.onlineCall("license/trial",{email:this.onlineForm.email,code:this.onlineForm.code},"\u8BD5\u7528\u5DF2\u5F00\u901A").then(t=>{this.resetOnlineForm(),this.systemSetting()}).catch(()=>{this.onlineForm.code="",this.clearCodeTimer()}).finally(()=>{this.onlineAction=""})},onlineLogout(){$A.modalConfirm({content:"\u786E\u5B9A\u9000\u51FA\u5728\u7EBF\u6388\u6743\uFF1F",onOk:()=>{this.onlineAction="logout",this.onlineCall("license/logout",{},"\u5DF2\u9000\u51FA\u5728\u7EBF\u6388\u6743").then(t=>{this.systemSetting()}).catch(()=>{}).finally(()=>{this.onlineAction=""})}})},onlineRelogin(){$A.modalConfirm({title:"\u91CD\u65B0\u767B\u5F55\u6388\u6743",content:"\u5C06\u91CA\u653E\u5F53\u524D\u8BBE\u5907\u5360\u7528\u7684\u6388\u6743\u5EA7\u4F4D\u5E76\u56DE\u5230\u767B\u5F55\uFF0C\u786E\u5B9A\u7EE7\u7EED\uFF1F",onOk:()=>{this.onlineAction="relogin",this.onlineCall("license/logout",{},"").then(t=>{this.systemSetting()}).catch(()=>{}).finally(()=>{this.onlineAction=""})}})},startCodeCountdown(){this.clearCodeTimer(),this.codeCountdown=60,this.codeTimer=setInterval(()=>{this.codeCountdown--,this.codeCountdown<=0&&this.clearCodeTimer()},1e3)},clearCodeTimer(){this.codeTimer&&(clearInterval(this.codeTimer),this.codeTimer=null),this.codeCountdown=0},resetOnlineForm(){this.onlineForm={email:"",code:""},this.codeSent=!1,this.maskedEmail="",this.clearCodeTimer()}}},o={};var f=r(d,c,m,!1,h,"476686e8",null,null);function h(t){for(let i in o)this[i]=o[i]}var ai=function(){return f.exports}();export{ai as default};
diff --git a/public/js/build/localforage.8de7c27e.js b/public/js/build/localforage.743dffdd.js
similarity index 100%
rename from public/js/build/localforage.8de7c27e.js
rename to public/js/build/localforage.743dffdd.js
diff --git a/public/js/build/login.f525c424.js b/public/js/build/login.3eb79900.js
similarity index 98%
rename from public/js/build/login.f525c424.js
rename to public/js/build/login.3eb79900.js
index 544916381..d02074da7 100644
--- a/public/js/build/login.f525c424.js
+++ b/public/js/build/login.3eb79900.js
@@ -1 +1 @@
-import{m as d}from"./vuex.cc7cb26e.js";import{g as a,l as n,e as l,q as h,n as p}from"./app.818b057c.js";import{i as g}from"./@chenfengyuan.dfd1ecb7.js";import"./jquery.c87f487f.js";import"./@babel.9410f858.js";import"./dayjs.fd4aa75c.js";import"./localforage.8de7c27e.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./vue.adba9046.js";import"./openpgp_hi.15f91b1d.js";import"./axios.37c7f908.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./view-design-hi.24419422.js";import"./html-to-md.f297036e.js";import"./lodash.8fcd6fd4.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vuedraggable.f464b992.js";import"./sortablejs.3488b922.js";import"./vue-resize-observer.5af23a43.js";import"./element-sea.f8a64907.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var m=function(){var e=this,o=e.$createElement,t=e._self._c||o;return t("div",{staticClass:"page-login"},[t("PageTitle",{attrs:{title:e.$L("\u767B\u5F55")}}),t("div",{staticClass:"login-body"},[t("div",{staticClass:"login-logo no-dark-content",style:e.loginLogo?{"background-image":"url("+e.loginLogo+")"}:null}),t("div",{staticClass:"login-box"},[t("div",{staticClass:"login-mode-switch"},[t("div",{staticClass:"login-mode-switch-box"},[t("ETooltip",{attrs:{disabled:e.$isEEUIApp||e.windowTouch,content:e.$L(e.loginMode=="qrcode"?"\u5E10\u53F7\u767B\u5F55":"\u626B\u7801\u767B\u5F55"),placement:"left"}},[t("span",{staticClass:"login-mode-switch-icon no-dark-content",on:{click:e.switchLoginMode}},[e.loginMode=="qrcode"?t("svg",{attrs:{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","data-icon":"PcOutlined"}},[t("path",{attrs:{d:"M23 16a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h18a2 2 0 0 1 2 2v12ZM21 4H3v9h18V4ZM3 15v1h18v-1H3Zm3 6a1 1 0 0 1 1-1h10a1 1 0 1 1 0 2H7a1 1 0 0 1-1-1Z",fill:"currentColor"}})]):t("svg",{attrs:{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","data-icon":"QrOutlined"}},[t("path",{attrs:{d:"M6.5 7.5a1 1 0 0 1 1-1h1a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1h-1a1 1 0 0 1-1-1v-1Z",fill:"currentColor"}}),t("path",{attrs:{d:"M4.5 2.5c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2v-7c0-1.1-.9-2-2-2h-7Zm0 2h7v7h-7v-7ZM11 16a1 1 0 1 1 2 0 1 1 0 0 1-2 0Zm0 3.5a1 1 0 1 1 2 0v1a1 1 0 1 1-2 0v-1Zm4-7.5a1 1 0 1 1 2 0 1 1 0 0 1-2 0Zm3.5 0a1 1 0 0 1 1-1h1a1 1 0 1 1 0 2h-1a1 1 0 0 1-1-1ZM15 17c0-1.1.9-2 2-2h2.5c1.1 0 2 .9 2 2v2.5c0 1.1-.9 2-2 2H17c-1.1 0-2-.9-2-2V17Zm4.5 0H17v2.5h2.5V17Zm-15-2c-1.1 0-2 .9-2 2v2.5c0 1.1.9 2 2 2H7c1.1 0 2-.9 2-2V17c0-1.1-.9-2-2-2H4.5Zm0 2H7v2.5H4.5V17ZM15 4.5c0-1.1.9-2 2-2h2.5c1.1 0 2 .9 2 2V7c0 1.1-.9 2-2 2H17c-1.1 0-2-.9-2-2V4.5Zm4.5 0H17V7h2.5V4.5Z",fill:"currentColor"}})])])])],1)]),t("div",{staticClass:"login-title"},[e._v(e._s(e.welcomeTitle))]),t("div",{staticClass:"login-subtitle"},[e._v(e._s(e.$L(e.subTitle)))]),t("transition",{attrs:{name:"login-mode"}},[e.loginMode=="qrcode"?t("div",{staticClass:"login-qrcode",on:{click:e.qrcodeRefresh}},[t("VueQrcode",{attrs:{value:e.qrcodeUrl,options:{width:200,margin:2}}})],1):e._e()]),t("transition",{attrs:{name:"login-mode"}},[e.loginMode=="access"?t("div",{staticClass:"login-access"},[e.$isSoftware&&e.cacheServerUrl?t("Input",{attrs:{value:e.$A.getDomain(e.cacheServerUrl),prefix:"ios-globe-outline",size:"large",readonly:"",clearable:""},on:{"on-clear":function(i){return e.setServerUrl("")}}}):e._e(),t("Input",{ref:"email",attrs:{prefix:"ios-mail-outline",placeholder:e.$L("\u8F93\u5165\u60A8\u7684\u7535\u5B50\u90AE\u4EF6"),type:"email",size:"large",clearable:""},on:{"on-keydown":e.onLoginKeydown,"on-blur":e.onBlur},model:{value:e.email,callback:function(i){e.email=i},expression:"email"}}),t("Input",{ref:"password",attrs:{prefix:"ios-lock-outline",placeholder:e.$L("\u8F93\u5165\u60A8\u7684\u5BC6\u7801"),type:"password",size:"large",clearable:""},on:{"on-keydown":e.onLoginKeydown},model:{value:e.password,callback:function(i){e.password=i},expression:"password"}}),e.loginType=="reg"?t("Input",{ref:"password2",attrs:{prefix:"ios-lock-outline",placeholder:e.$L("\u8F93\u5165\u786E\u8BA4\u5BC6\u7801"),type:"password",size:"large",clearable:""},on:{"on-keydown":e.onLoginKeydown},model:{value:e.password2,callback:function(i){e.password2=i},expression:"password2"}}):e._e(),e.loginType=="reg"&&e.needInvite?t("Input",{ref:"invite",staticClass:"login-code",attrs:{placeholder:e.$L("\u8BF7\u8F93\u5165\u6CE8\u518C\u9080\u8BF7\u7801"),type:"text",size:"large",clearable:""},on:{"on-keydown":e.onLoginKeydown},model:{value:e.invite,callback:function(i){e.invite=i},expression:"invite"}},[t("span",{attrs:{slot:"prepend"},slot:"prepend"},[e._v("\xA0"+e._s(e.$L("\u9080\u8BF7\u7801"))+"\xA0")])]):e._e(),e.loginType=="login"&&e.codeNeed?t("Input",{ref:"code",staticClass:"login-code",attrs:{placeholder:e.$L("\u8F93\u5165\u56FE\u5F62\u9A8C\u8BC1\u7801"),type:"text",size:"large",clearable:""},on:{"on-keydown":e.onLoginKeydown},model:{value:e.code,callback:function(i){e.code=i},expression:"code"}},[t("Icon",{staticClass:"login-icon",attrs:{slot:"prepend",type:"ios-checkmark-circle-outline"},slot:"prepend"}),t("div",{staticClass:"login-code-end",attrs:{slot:"append"},on:{click:e.refreshCode},slot:"append"},[e.codeLoad>0?t("div",{staticClass:"code-load"},[t("Loading")],1):e.codeUrl==="error"?t("span",{staticClass:"code-error"},[e._v(e._s(e.$L("\u52A0\u8F7D\u5931\u8D25")))]):t("img",{attrs:{src:e.codeUrl}})])],1):e._e(),t("Button",{attrs:{type:"primary",loading:e.loadIng>0||e.loginJump,size:"large",long:""},on:{click:e.onLogin}},[e._v(e._s(e.$L(e.loginText)))]),e.loginType=="reg"?t("div",{staticClass:"login-switch"},[e._v(e._s(e.$L("\u5DF2\u7ECF\u6709\u5E10\u53F7\uFF1F"))+" "),t("a",{attrs:{href:"javascript:void(0)"},on:{click:function(i){e.loginType="login"}}},[e._v(e._s(e.$L("\u767B\u5F55\u5E10\u53F7")))])]):e.registrationAvailable?t("div",{staticClass:"login-switch"},[e._v(e._s(e.$L("\u8FD8\u6CA1\u6709\u5E10\u53F7\uFF1F"))+" "),t("a",{attrs:{href:"javascript:void(0)"},on:{click:function(i){e.loginType="reg"}}},[e._v(e._s(e.$L("\u6CE8\u518C\u5E10\u53F7")))])]):e._e()],1):e._e()])],1),t("div",{staticClass:"login-bottom"},[t("Dropdown",{attrs:{trigger:"click",placement:"bottom-start"}},[t("div",{staticClass:"login-setting"},[e._v(" "+e._s(e.$L("\u8BBE\u7F6E"))+" "),t("i",{staticClass:"taskfont"},[e._v("\uE689")])]),t("DropdownMenu",{staticClass:"login-setting-menu",attrs:{slot:"list"},slot:"list"},[t("Dropdown",{attrs:{placement:"right-start",transfer:""},on:{"on-click":e.setTheme}},[t("DropdownItem",[t("div",{staticClass:"login-setting-item"},[e._v(" "+e._s(e.$L("\u4E3B\u9898\u76AE\u80A4"))+" "),t("Icon",{attrs:{type:"ios-arrow-forward"}})],1)]),t("DropdownMenu",{attrs:{slot:"list"},slot:"list"},e._l(e.themeList,function(i,s){return t("DropdownItem",{key:s,attrs:{name:i.value,selected:e.themeConf===i.value}},[e._v(e._s(e.$L(i.name)))])}),1)],1),t("Dropdown",{attrs:{placement:"right-start",transfer:""},on:{"on-click":e.onLanguage}},[t("DropdownItem",{attrs:{divided:""}},[t("div",{staticClass:"login-setting-item"},[e._v(" "+e._s(e.currentLanguage)+" "),t("Icon",{attrs:{type:"ios-arrow-forward"}})],1)]),t("DropdownMenu",{attrs:{slot:"list"},slot:"list"},e._l(e.languageList,function(i,s){return t("DropdownItem",{key:s,attrs:{name:s,selected:e.languageName===s}},[e._v(e._s(i))])}),1)],1)],1)],1),t("div",{staticClass:"login-forgot"},[e._v(e._s(e.$L("\u5FD8\u8BB0\u5BC6\u7801\u4E86\uFF1F"))+" "),t("a",{attrs:{href:"javascript:void(0)"},on:{click:e.forgotPassword}},[e._v(e._s(e.$L("\u91CD\u7F6E\u5BC6\u7801")))])])],1)]),t("Modal",{attrs:{title:e.$L("\u9690\u79C1\u534F\u8BAE"),"mask-closable":!1},model:{value:e.privacyShow,callback:function(i){e.privacyShow=i},expression:"privacyShow"}},[t("div",{staticClass:"privacy-content"},[t("div",[e._v(e._s(e.$L("\u6B22\u8FCE\u4F7F\u7528\u672C\u8F6F\u4EF6\uFF01")))]),t("p",[e._v(e._s(e.$L("\u5728\u60A8\u4F7F\u7528\u672C\u8F6F\u4EF6\u524D\uFF0C\u8BF7\u60A8\u8BA4\u771F\u9605\u8BFB\u5E76\u4E86\u89E3\u76F8\u5E94\u7684"))),t("a",{attrs:{target:"_blank",href:e.$A.apiUrl("privacy")}},[e._v("\u300A"+e._s(e.$L("\u9690\u79C1\u653F\u7B56"))+"\u300B")]),e._v(", "+e._s(e.$L("\u4EE5\u4E86\u89E3\u6211\u4EEC\u7684\u670D\u52A1\u5185\u5BB9\u548C\u60A8\u76F8\u5173\u4E2A\u4EBA\u4FE1\u606F\u7684\u5904\u7406\u89C4\u5219\u3002"))+e._s(e.$L("\u6211\u4EEC\u5C06\u4E25\u683C\u7684\u6309\u7167\u9690\u79C1\u670D\u52A1\u534F\u8BAE\u4E3A\u60A8\u63D0\u4F9B\u670D\u52A1\uFF0C\u4FDD\u62A4\u60A8\u7684\u4E2A\u4EBA\u4FE1\u606F\u3002")))])]),t("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[t("Button",{attrs:{type:"default"},on:{click:function(i){return e.onPrivacy(!1)}}},[e._v(e._s(e.$L("\u4E0D\u540C\u610F")))]),t("Button",{attrs:{type:"primary"},on:{click:function(i){return e.onPrivacy(!0)}}},[e._v(e._s(e.$L("\u540C\u610F")))])],1)])],1)},u=[];const v={components:{VueQrcode:g},data(){return{loadIng:0,languageList:a,languageName:n,qrcodeVal:"",qrcodeTimer:null,qrcodeLoad:!1,codeNeed:!1,codeLoad:0,codeKey:"",codeUrl:"",loginMode:"access",loginType:"login",loginJump:!1,email:"",password:"",password2:"",code:"",invite:"",needInvite:!1,registrationAvailable:!1,privacyShow:!1}},async mounted(){this.privacyShow=!!this.$isEEUIApp&&await $A.IDBString("cachePrivacyShow")!=="no",this.email=await $A.IDBString("cacheLoginEmail")||"",this.$isSoftware?this.chackServerUrl().catch(e=>{}):this.setServerUrl("").catch(e=>{}),this.qrcodeTimer=setInterval(this.qrcodeStatus,2e3),l.on("useSSOLogin",this.inputServerUrl)},beforeDestroy(){clearInterval(this.qrcodeTimer),l.off("useSSOLogin",this.inputServerUrl)},activated(){this.refreshRegistrationSetting(),this.getDemoAccount()},deactivated(){this.loginJump=!1,this.password="",this.password2="",this.code="",this.invite=""},computed:{...d(["cacheServerUrl","themeConf","themeList","systemConfig"]),currentLanguage(){return a[n]||"Language"},systemAlias(){return this.systemConfig.system_alias||window.systemInfo.title||"DooTask"},loginLogo(){return this.systemConfig.login_logo||window.systemInfo.loginLogo||""},welcomeTitle(){return this.loginMode=="qrcode"?this.$L("\u626B\u7801\u767B\u5F55"):"Welcome "+this.systemAlias},subTitle(){return this.loginMode=="qrcode"?this.$L("\u8BF7\u4F7F\u7528(*)\u79FB\u52A8\u7AEF\u626B\u63CF\u4E8C\u7EF4\u7801\u3002",this.systemAlias):this.loginType=="reg"?this.$L("\u8F93\u5165\u60A8\u7684\u4FE1\u606F\u4EE5\u521B\u5EFA\u5E10\u6237\u3002"):this.$L("\u8F93\u5165\u60A8\u7684\u51ED\u8BC1\u4EE5\u8BBF\u95EE\u60A8\u7684\u5E10\u6237\u3002")},loginText(){let e=this.loginType=="login"?"\u767B\u5F55":"\u6CE8\u518C";return this.loginJump&&(e+="\u6210\u529F..."),e},qrcodeUrl(){return $A.mainUrl("login?qrcode="+this.qrcodeVal)}},watch:{$route({query:e}){this.routeName==="login"&&this.refreshRegistrationSetting(e.type==="reg")},loginMode(){this.qrcodeRefresh()}},methods:{setTheme(e){this.$store.dispatch("setTheme",e)},getDemoAccount(){this.isNotServer()||this.$store.dispatch("call",{url:"system/demo"}).then(({data:e})=>{e.account&&(this.email=e.account,this.password=e.password)}).catch(e=>{})},refreshRegistrationSetting(e=this.$route.query.type==="reg"){return this.isNotServer()?(this.registrationAvailable=!1,this.loginType="login",Promise.resolve()):this.$store.dispatch("call",{url:"users/reg/needinvite"}).then(({data:o})=>{this.needInvite=!!o.need,this.registrationAvailable=typeof o.enabled=="undefined"||!!o.enabled,this.loginType=e&&this.registrationAvailable?"reg":"login"}).catch(o=>{this.needInvite=!1,this.registrationAvailable=!1,this.loginType="login"})},switchLoginMode(){this.chackServerUrl(!0).then(()=>{this.loginMode==="qrcode"?this.loginMode="access":this.loginMode="qrcode"})},qrcodeRefresh(){this.loginMode=="qrcode"&&(this.qrcodeVal=$A.randomString(32))},qrcodeStatus(){this.routeName!=="login"||this.loginMode!="qrcode"||this.qrcodeLoad||(this.qrcodeLoad=!0,this.$store.dispatch("call",{url:"users/login/qrcode?code="+this.qrcodeVal}).then(({data:e})=>{this.$store.dispatch("handleClearCache",e).then(this.goNext)}).catch(e=>{}).finally(e=>{this.qrcodeLoad=!1}))},forgotPassword(){$A.modalWarning("\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\uFF01")},refreshCode(){this.codeLoad>0||(setTimeout(e=>{this.codeLoad++},600),this.$store.dispatch("call",{url:"users/login/codejson"}).then(({data:e})=>{this.codeKey=e.key,this.codeUrl=e.img}).catch(e=>{this.codeUrl="error"}).finally(e=>{this.codeLoad--}))},inputServerUrl(){if(this.privacyShow)return;let e=$A.rightDelete(this.cacheServerUrl,"/api/");e=$A.leftDelete(e,"http://"),!e&&/^https?:/.test(window.location.protocol)&&!/^localhost/.test(window.location.host)&&(e=window.location.host),$A.modalInput({title:"\u4F7F\u7528 SSO \u767B\u5F55",value:e,placeholder:"\u8BF7\u8F93\u5165\u670D\u52A1\u5668\u5730\u5740",onOk:o=>o?this.inputServerChack($A.trim(o)):"\u8BF7\u8F93\u5165\u670D\u52A1\u5668\u5730\u5740"})},inputServerChack(e){return new Promise((o,t)=>{let i=e;/\/api\/$/.test(i)||(i=i+($A.rightExists(i,"/")?"api/":"/api/")),/^https?:\/\//i.test(i)||(i=`https://${i}`),this.$store.dispatch("call",{url:`${i}system/setting`,checkNetwork:!1,networkFailureRetry:!1}).then(async({data:s})=>{typeof s.server_version=="undefined"&&typeof s.all_group_mute=="undefined"?t(`\u670D\u52A1\u5668\uFF08${$A.getDomain(e)}\uFF09\u7248\u672C\u8FC7\u4F4E`):(await this.setServerUrl(i),o())}).catch(({ret:s,msg:r})=>{if(s===-1001){if(!/^https?:\/\//i.test(e)){this.inputServerChack(`http://${e}`).then(o).catch(t);return}r="\u670D\u52A1\u5668\u5730\u5740\u65E0\u6548"}t(r)})})},chackServerUrl(e){return new Promise((o,t)=>{this.isNotServer()?(this.inputServerUrl(),e===!0&&this.$nextTick(i=>$A.messageWarning("\u8BF7\u8BBE\u7F6E\u670D\u52A1\u5668")),t()):o()})},async setServerUrl(e){e!=this.cacheServerUrl&&(await $A.IDBSet("cacheServerUrl",e),$A.reloadUrl())},isNotServer(){let e=$A.getDomain(window.systemInfo.apiUrl);return this.$isSoftware&&(e==""||e=="public")},onBlur(){if(this.loginType!="login"||!this.email){this.codeNeed=!1;return}this.loadIng++,this.$store.dispatch("call",{url:"users/login/needcode",data:{email:this.email}}).then(()=>{this.refreshCode(),this.codeNeed=!0}).catch(e=>{this.codeNeed=!1}).finally(e=>{this.loadIng--})},onPrivacy(e){e?(this.privacyShow=!1,this.chackServerUrl().catch(o=>{}),$A.IDBSet("cachePrivacyShow","no")):$A.eeuiAppGoDesktop()},onLoginKeydown(e){e.isComposing||e.key==="Process"||e.keyCode===229||e.keyCode===13&&this.onLogin()},onLogin(){this.chackServerUrl(!0).then(()=>{if(this.email=$A.trim(this.email),this.password=$A.trim(this.password),this.password2=$A.trim(this.password2),this.code=$A.trim(this.code),this.invite=$A.trim(this.invite),this.loginType=="reg"&&!$A.isEmail(this.email)){$A.messageWarning("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u90AE\u7BB1\u5730\u5740"),this.$refs.email.focus();return}if(!this.email){$A.messageWarning("\u8BF7\u8F93\u5165\u5E10\u53F7"),this.$refs.email.focus();return}if(!this.password){$A.messageWarning("\u8BF7\u8F93\u5165\u5BC6\u7801"),this.$refs.password.focus();return}if(this.loginType=="reg"&&this.password!=this.password2){$A.messageWarning("\u786E\u8BA4\u5BC6\u7801\u8F93\u5165\u4E0D\u4E00\u81F4"),this.$refs.password2.focus();return}this.loadIng++,this.$store.dispatch("call",{url:"users/login",data:{type:this.loginType,email:this.email,password:this.password,code:this.code,code_key:this.codeKey,invite:this.invite}}).then(({data:e})=>{$A.IDBSave("cacheLoginEmail",this.email),this.codeNeed=!1,this.loadIng++,this.$store.dispatch("handleClearCache",e).then(this.goNext).finally(o=>{this.loadIng--})}).catch(({data:e,msg:o})=>{e.code==="email"?(this.loginType="login",$A.modalWarning(o)):$A.modalError({content:o,onOk:t=>{var i;(i=this.$refs.code)==null||i.focus()}}),e.code==="need"&&(this.refreshCode(),this.codeNeed=!0)}).finally(e=>{this.loadIng--})})},goNext(){this.loginJump=!0;const e=decodeURIComponent($A.getObject(this.$route.query,"from"));e?$A.IDBSet("clearCache","login").then(o=>{window.location.replace(e)}):this.goForward({name:"manage-dashboard"},!0)},onLanguage(e){h(e)}}},c={};var f=p(v,m,u,!1,w,null,null,null);function w(e){for(let o in c)this[o]=c[o]}var pe=function(){return f.exports}();export{pe as default};
+import{m as d}from"./vuex.cc7cb26e.js";import{g as a,l as n,e as l,q as h,n as p}from"./app.ef7047f7.js";import{i as g}from"./@chenfengyuan.dfd1ecb7.js";import"./jquery.6e4daff9.js";import"./@babel.9410f858.js";import"./dayjs.d20a4841.js";import"./localforage.743dffdd.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./vue.adba9046.js";import"./openpgp_hi.15f91b1d.js";import"./axios.37c7f908.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./view-design-hi.24419422.js";import"./html-to-md.f297036e.js";import"./lodash.8fcd6fd4.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vuedraggable.f464b992.js";import"./sortablejs.3488b922.js";import"./vue-resize-observer.5af23a43.js";import"./element-sea.f8a64907.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var m=function(){var e=this,o=e.$createElement,t=e._self._c||o;return t("div",{staticClass:"page-login"},[t("PageTitle",{attrs:{title:e.$L("\u767B\u5F55")}}),t("div",{staticClass:"login-body"},[t("div",{staticClass:"login-logo no-dark-content",style:e.loginLogo?{"background-image":"url("+e.loginLogo+")"}:null}),t("div",{staticClass:"login-box"},[t("div",{staticClass:"login-mode-switch"},[t("div",{staticClass:"login-mode-switch-box"},[t("ETooltip",{attrs:{disabled:e.$isEEUIApp||e.windowTouch,content:e.$L(e.loginMode=="qrcode"?"\u5E10\u53F7\u767B\u5F55":"\u626B\u7801\u767B\u5F55"),placement:"left"}},[t("span",{staticClass:"login-mode-switch-icon no-dark-content",on:{click:e.switchLoginMode}},[e.loginMode=="qrcode"?t("svg",{attrs:{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","data-icon":"PcOutlined"}},[t("path",{attrs:{d:"M23 16a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h18a2 2 0 0 1 2 2v12ZM21 4H3v9h18V4ZM3 15v1h18v-1H3Zm3 6a1 1 0 0 1 1-1h10a1 1 0 1 1 0 2H7a1 1 0 0 1-1-1Z",fill:"currentColor"}})]):t("svg",{attrs:{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","data-icon":"QrOutlined"}},[t("path",{attrs:{d:"M6.5 7.5a1 1 0 0 1 1-1h1a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1h-1a1 1 0 0 1-1-1v-1Z",fill:"currentColor"}}),t("path",{attrs:{d:"M4.5 2.5c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2v-7c0-1.1-.9-2-2-2h-7Zm0 2h7v7h-7v-7ZM11 16a1 1 0 1 1 2 0 1 1 0 0 1-2 0Zm0 3.5a1 1 0 1 1 2 0v1a1 1 0 1 1-2 0v-1Zm4-7.5a1 1 0 1 1 2 0 1 1 0 0 1-2 0Zm3.5 0a1 1 0 0 1 1-1h1a1 1 0 1 1 0 2h-1a1 1 0 0 1-1-1ZM15 17c0-1.1.9-2 2-2h2.5c1.1 0 2 .9 2 2v2.5c0 1.1-.9 2-2 2H17c-1.1 0-2-.9-2-2V17Zm4.5 0H17v2.5h2.5V17Zm-15-2c-1.1 0-2 .9-2 2v2.5c0 1.1.9 2 2 2H7c1.1 0 2-.9 2-2V17c0-1.1-.9-2-2-2H4.5Zm0 2H7v2.5H4.5V17ZM15 4.5c0-1.1.9-2 2-2h2.5c1.1 0 2 .9 2 2V7c0 1.1-.9 2-2 2H17c-1.1 0-2-.9-2-2V4.5Zm4.5 0H17V7h2.5V4.5Z",fill:"currentColor"}})])])])],1)]),t("div",{staticClass:"login-title"},[e._v(e._s(e.welcomeTitle))]),t("div",{staticClass:"login-subtitle"},[e._v(e._s(e.$L(e.subTitle)))]),t("transition",{attrs:{name:"login-mode"}},[e.loginMode=="qrcode"?t("div",{staticClass:"login-qrcode",on:{click:e.qrcodeRefresh}},[t("VueQrcode",{attrs:{value:e.qrcodeUrl,options:{width:200,margin:2}}})],1):e._e()]),t("transition",{attrs:{name:"login-mode"}},[e.loginMode=="access"?t("div",{staticClass:"login-access"},[e.$isSoftware&&e.cacheServerUrl?t("Input",{attrs:{value:e.$A.getDomain(e.cacheServerUrl),prefix:"ios-globe-outline",size:"large",readonly:"",clearable:""},on:{"on-clear":function(i){return e.setServerUrl("")}}}):e._e(),t("Input",{ref:"email",attrs:{prefix:"ios-mail-outline",placeholder:e.$L("\u8F93\u5165\u60A8\u7684\u7535\u5B50\u90AE\u4EF6"),type:"email",size:"large",clearable:""},on:{"on-keydown":e.onLoginKeydown,"on-blur":e.onBlur},model:{value:e.email,callback:function(i){e.email=i},expression:"email"}}),t("Input",{ref:"password",attrs:{prefix:"ios-lock-outline",placeholder:e.$L("\u8F93\u5165\u60A8\u7684\u5BC6\u7801"),type:"password",size:"large",clearable:""},on:{"on-keydown":e.onLoginKeydown},model:{value:e.password,callback:function(i){e.password=i},expression:"password"}}),e.loginType=="reg"?t("Input",{ref:"password2",attrs:{prefix:"ios-lock-outline",placeholder:e.$L("\u8F93\u5165\u786E\u8BA4\u5BC6\u7801"),type:"password",size:"large",clearable:""},on:{"on-keydown":e.onLoginKeydown},model:{value:e.password2,callback:function(i){e.password2=i},expression:"password2"}}):e._e(),e.loginType=="reg"&&e.needInvite?t("Input",{ref:"invite",staticClass:"login-code",attrs:{placeholder:e.$L("\u8BF7\u8F93\u5165\u6CE8\u518C\u9080\u8BF7\u7801"),type:"text",size:"large",clearable:""},on:{"on-keydown":e.onLoginKeydown},model:{value:e.invite,callback:function(i){e.invite=i},expression:"invite"}},[t("span",{attrs:{slot:"prepend"},slot:"prepend"},[e._v("\xA0"+e._s(e.$L("\u9080\u8BF7\u7801"))+"\xA0")])]):e._e(),e.loginType=="login"&&e.codeNeed?t("Input",{ref:"code",staticClass:"login-code",attrs:{placeholder:e.$L("\u8F93\u5165\u56FE\u5F62\u9A8C\u8BC1\u7801"),type:"text",size:"large",clearable:""},on:{"on-keydown":e.onLoginKeydown},model:{value:e.code,callback:function(i){e.code=i},expression:"code"}},[t("Icon",{staticClass:"login-icon",attrs:{slot:"prepend",type:"ios-checkmark-circle-outline"},slot:"prepend"}),t("div",{staticClass:"login-code-end",attrs:{slot:"append"},on:{click:e.refreshCode},slot:"append"},[e.codeLoad>0?t("div",{staticClass:"code-load"},[t("Loading")],1):e.codeUrl==="error"?t("span",{staticClass:"code-error"},[e._v(e._s(e.$L("\u52A0\u8F7D\u5931\u8D25")))]):t("img",{attrs:{src:e.codeUrl}})])],1):e._e(),t("Button",{attrs:{type:"primary",loading:e.loadIng>0||e.loginJump,size:"large",long:""},on:{click:e.onLogin}},[e._v(e._s(e.$L(e.loginText)))]),e.loginType=="reg"?t("div",{staticClass:"login-switch"},[e._v(e._s(e.$L("\u5DF2\u7ECF\u6709\u5E10\u53F7\uFF1F"))+" "),t("a",{attrs:{href:"javascript:void(0)"},on:{click:function(i){e.loginType="login"}}},[e._v(e._s(e.$L("\u767B\u5F55\u5E10\u53F7")))])]):e.registrationAvailable?t("div",{staticClass:"login-switch"},[e._v(e._s(e.$L("\u8FD8\u6CA1\u6709\u5E10\u53F7\uFF1F"))+" "),t("a",{attrs:{href:"javascript:void(0)"},on:{click:function(i){e.loginType="reg"}}},[e._v(e._s(e.$L("\u6CE8\u518C\u5E10\u53F7")))])]):e._e()],1):e._e()])],1),t("div",{staticClass:"login-bottom"},[t("Dropdown",{attrs:{trigger:"click",placement:"bottom-start"}},[t("div",{staticClass:"login-setting"},[e._v(" "+e._s(e.$L("\u8BBE\u7F6E"))+" "),t("i",{staticClass:"taskfont"},[e._v("\uE689")])]),t("DropdownMenu",{staticClass:"login-setting-menu",attrs:{slot:"list"},slot:"list"},[t("Dropdown",{attrs:{placement:"right-start",transfer:""},on:{"on-click":e.setTheme}},[t("DropdownItem",[t("div",{staticClass:"login-setting-item"},[e._v(" "+e._s(e.$L("\u4E3B\u9898\u76AE\u80A4"))+" "),t("Icon",{attrs:{type:"ios-arrow-forward"}})],1)]),t("DropdownMenu",{attrs:{slot:"list"},slot:"list"},e._l(e.themeList,function(i,s){return t("DropdownItem",{key:s,attrs:{name:i.value,selected:e.themeConf===i.value}},[e._v(e._s(e.$L(i.name)))])}),1)],1),t("Dropdown",{attrs:{placement:"right-start",transfer:""},on:{"on-click":e.onLanguage}},[t("DropdownItem",{attrs:{divided:""}},[t("div",{staticClass:"login-setting-item"},[e._v(" "+e._s(e.currentLanguage)+" "),t("Icon",{attrs:{type:"ios-arrow-forward"}})],1)]),t("DropdownMenu",{attrs:{slot:"list"},slot:"list"},e._l(e.languageList,function(i,s){return t("DropdownItem",{key:s,attrs:{name:s,selected:e.languageName===s}},[e._v(e._s(i))])}),1)],1)],1)],1),t("div",{staticClass:"login-forgot"},[e._v(e._s(e.$L("\u5FD8\u8BB0\u5BC6\u7801\u4E86\uFF1F"))+" "),t("a",{attrs:{href:"javascript:void(0)"},on:{click:e.forgotPassword}},[e._v(e._s(e.$L("\u91CD\u7F6E\u5BC6\u7801")))])])],1)]),t("Modal",{attrs:{title:e.$L("\u9690\u79C1\u534F\u8BAE"),"mask-closable":!1},model:{value:e.privacyShow,callback:function(i){e.privacyShow=i},expression:"privacyShow"}},[t("div",{staticClass:"privacy-content"},[t("div",[e._v(e._s(e.$L("\u6B22\u8FCE\u4F7F\u7528\u672C\u8F6F\u4EF6\uFF01")))]),t("p",[e._v(e._s(e.$L("\u5728\u60A8\u4F7F\u7528\u672C\u8F6F\u4EF6\u524D\uFF0C\u8BF7\u60A8\u8BA4\u771F\u9605\u8BFB\u5E76\u4E86\u89E3\u76F8\u5E94\u7684"))),t("a",{attrs:{target:"_blank",href:e.$A.apiUrl("privacy")}},[e._v("\u300A"+e._s(e.$L("\u9690\u79C1\u653F\u7B56"))+"\u300B")]),e._v(", "+e._s(e.$L("\u4EE5\u4E86\u89E3\u6211\u4EEC\u7684\u670D\u52A1\u5185\u5BB9\u548C\u60A8\u76F8\u5173\u4E2A\u4EBA\u4FE1\u606F\u7684\u5904\u7406\u89C4\u5219\u3002"))+e._s(e.$L("\u6211\u4EEC\u5C06\u4E25\u683C\u7684\u6309\u7167\u9690\u79C1\u670D\u52A1\u534F\u8BAE\u4E3A\u60A8\u63D0\u4F9B\u670D\u52A1\uFF0C\u4FDD\u62A4\u60A8\u7684\u4E2A\u4EBA\u4FE1\u606F\u3002")))])]),t("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[t("Button",{attrs:{type:"default"},on:{click:function(i){return e.onPrivacy(!1)}}},[e._v(e._s(e.$L("\u4E0D\u540C\u610F")))]),t("Button",{attrs:{type:"primary"},on:{click:function(i){return e.onPrivacy(!0)}}},[e._v(e._s(e.$L("\u540C\u610F")))])],1)])],1)},u=[];const v={components:{VueQrcode:g},data(){return{loadIng:0,languageList:a,languageName:n,qrcodeVal:"",qrcodeTimer:null,qrcodeLoad:!1,codeNeed:!1,codeLoad:0,codeKey:"",codeUrl:"",loginMode:"access",loginType:"login",loginJump:!1,email:"",password:"",password2:"",code:"",invite:"",needInvite:!1,registrationAvailable:!1,privacyShow:!1}},async mounted(){this.privacyShow=!!this.$isEEUIApp&&await $A.IDBString("cachePrivacyShow")!=="no",this.email=await $A.IDBString("cacheLoginEmail")||"",this.$isSoftware?this.chackServerUrl().catch(e=>{}):this.setServerUrl("").catch(e=>{}),this.qrcodeTimer=setInterval(this.qrcodeStatus,2e3),l.on("useSSOLogin",this.inputServerUrl)},beforeDestroy(){clearInterval(this.qrcodeTimer),l.off("useSSOLogin",this.inputServerUrl)},activated(){this.refreshRegistrationSetting(),this.getDemoAccount()},deactivated(){this.loginJump=!1,this.password="",this.password2="",this.code="",this.invite=""},computed:{...d(["cacheServerUrl","themeConf","themeList","systemConfig"]),currentLanguage(){return a[n]||"Language"},systemAlias(){return this.systemConfig.system_alias||window.systemInfo.title||"DooTask"},loginLogo(){return this.systemConfig.login_logo||window.systemInfo.loginLogo||""},welcomeTitle(){return this.loginMode=="qrcode"?this.$L("\u626B\u7801\u767B\u5F55"):"Welcome "+this.systemAlias},subTitle(){return this.loginMode=="qrcode"?this.$L("\u8BF7\u4F7F\u7528(*)\u79FB\u52A8\u7AEF\u626B\u63CF\u4E8C\u7EF4\u7801\u3002",this.systemAlias):this.loginType=="reg"?this.$L("\u8F93\u5165\u60A8\u7684\u4FE1\u606F\u4EE5\u521B\u5EFA\u5E10\u6237\u3002"):this.$L("\u8F93\u5165\u60A8\u7684\u51ED\u8BC1\u4EE5\u8BBF\u95EE\u60A8\u7684\u5E10\u6237\u3002")},loginText(){let e=this.loginType=="login"?"\u767B\u5F55":"\u6CE8\u518C";return this.loginJump&&(e+="\u6210\u529F..."),e},qrcodeUrl(){return $A.mainUrl("login?qrcode="+this.qrcodeVal)}},watch:{$route({query:e}){this.routeName==="login"&&this.refreshRegistrationSetting(e.type==="reg")},loginMode(){this.qrcodeRefresh()}},methods:{setTheme(e){this.$store.dispatch("setTheme",e)},getDemoAccount(){this.isNotServer()||this.$store.dispatch("call",{url:"system/demo"}).then(({data:e})=>{e.account&&(this.email=e.account,this.password=e.password)}).catch(e=>{})},refreshRegistrationSetting(e=this.$route.query.type==="reg"){return this.isNotServer()?(this.registrationAvailable=!1,this.loginType="login",Promise.resolve()):this.$store.dispatch("call",{url:"users/reg/needinvite"}).then(({data:o})=>{this.needInvite=!!o.need,this.registrationAvailable=typeof o.enabled=="undefined"||!!o.enabled,this.loginType=e&&this.registrationAvailable?"reg":"login"}).catch(o=>{this.needInvite=!1,this.registrationAvailable=!1,this.loginType="login"})},switchLoginMode(){this.chackServerUrl(!0).then(()=>{this.loginMode==="qrcode"?this.loginMode="access":this.loginMode="qrcode"})},qrcodeRefresh(){this.loginMode=="qrcode"&&(this.qrcodeVal=$A.randomString(32))},qrcodeStatus(){this.routeName!=="login"||this.loginMode!="qrcode"||this.qrcodeLoad||(this.qrcodeLoad=!0,this.$store.dispatch("call",{url:"users/login/qrcode?code="+this.qrcodeVal}).then(({data:e})=>{this.$store.dispatch("handleClearCache",e).then(this.goNext)}).catch(e=>{}).finally(e=>{this.qrcodeLoad=!1}))},forgotPassword(){$A.modalWarning("\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\uFF01")},refreshCode(){this.codeLoad>0||(setTimeout(e=>{this.codeLoad++},600),this.$store.dispatch("call",{url:"users/login/codejson"}).then(({data:e})=>{this.codeKey=e.key,this.codeUrl=e.img}).catch(e=>{this.codeUrl="error"}).finally(e=>{this.codeLoad--}))},inputServerUrl(){if(this.privacyShow)return;let e=$A.rightDelete(this.cacheServerUrl,"/api/");e=$A.leftDelete(e,"http://"),!e&&/^https?:/.test(window.location.protocol)&&!/^localhost/.test(window.location.host)&&(e=window.location.host),$A.modalInput({title:"\u4F7F\u7528 SSO \u767B\u5F55",value:e,placeholder:"\u8BF7\u8F93\u5165\u670D\u52A1\u5668\u5730\u5740",onOk:o=>o?this.inputServerChack($A.trim(o)):"\u8BF7\u8F93\u5165\u670D\u52A1\u5668\u5730\u5740"})},inputServerChack(e){return new Promise((o,t)=>{let i=e;/\/api\/$/.test(i)||(i=i+($A.rightExists(i,"/")?"api/":"/api/")),/^https?:\/\//i.test(i)||(i=`https://${i}`),this.$store.dispatch("call",{url:`${i}system/setting`,checkNetwork:!1,networkFailureRetry:!1}).then(async({data:s})=>{typeof s.server_version=="undefined"&&typeof s.all_group_mute=="undefined"?t(`\u670D\u52A1\u5668\uFF08${$A.getDomain(e)}\uFF09\u7248\u672C\u8FC7\u4F4E`):(await this.setServerUrl(i),o())}).catch(({ret:s,msg:r})=>{if(s===-1001){if(!/^https?:\/\//i.test(e)){this.inputServerChack(`http://${e}`).then(o).catch(t);return}r="\u670D\u52A1\u5668\u5730\u5740\u65E0\u6548"}t(r)})})},chackServerUrl(e){return new Promise((o,t)=>{this.isNotServer()?(this.inputServerUrl(),e===!0&&this.$nextTick(i=>$A.messageWarning("\u8BF7\u8BBE\u7F6E\u670D\u52A1\u5668")),t()):o()})},async setServerUrl(e){e!=this.cacheServerUrl&&(await $A.IDBSet("cacheServerUrl",e),$A.reloadUrl())},isNotServer(){let e=$A.getDomain(window.systemInfo.apiUrl);return this.$isSoftware&&(e==""||e=="public")},onBlur(){if(this.loginType!="login"||!this.email){this.codeNeed=!1;return}this.loadIng++,this.$store.dispatch("call",{url:"users/login/needcode",data:{email:this.email}}).then(()=>{this.refreshCode(),this.codeNeed=!0}).catch(e=>{this.codeNeed=!1}).finally(e=>{this.loadIng--})},onPrivacy(e){e?(this.privacyShow=!1,this.chackServerUrl().catch(o=>{}),$A.IDBSet("cachePrivacyShow","no")):$A.eeuiAppGoDesktop()},onLoginKeydown(e){e.isComposing||e.key==="Process"||e.keyCode===229||e.keyCode===13&&this.onLogin()},onLogin(){this.chackServerUrl(!0).then(()=>{if(this.email=$A.trim(this.email),this.password=$A.trim(this.password),this.password2=$A.trim(this.password2),this.code=$A.trim(this.code),this.invite=$A.trim(this.invite),this.loginType=="reg"&&!$A.isEmail(this.email)){$A.messageWarning("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u90AE\u7BB1\u5730\u5740"),this.$refs.email.focus();return}if(!this.email){$A.messageWarning("\u8BF7\u8F93\u5165\u5E10\u53F7"),this.$refs.email.focus();return}if(!this.password){$A.messageWarning("\u8BF7\u8F93\u5165\u5BC6\u7801"),this.$refs.password.focus();return}if(this.loginType=="reg"&&this.password!=this.password2){$A.messageWarning("\u786E\u8BA4\u5BC6\u7801\u8F93\u5165\u4E0D\u4E00\u81F4"),this.$refs.password2.focus();return}this.loadIng++,this.$store.dispatch("call",{url:"users/login",data:{type:this.loginType,email:this.email,password:this.password,code:this.code,code_key:this.codeKey,invite:this.invite}}).then(({data:e})=>{$A.IDBSave("cacheLoginEmail",this.email),this.codeNeed=!1,this.loadIng++,this.$store.dispatch("handleClearCache",e).then(this.goNext).finally(o=>{this.loadIng--})}).catch(({data:e,msg:o})=>{e.code==="email"?(this.loginType="login",$A.modalWarning(o)):$A.modalError({content:o,onOk:t=>{var i;(i=this.$refs.code)==null||i.focus()}}),e.code==="need"&&(this.refreshCode(),this.codeNeed=!0)}).finally(e=>{this.loadIng--})})},goNext(){this.loginJump=!0;const e=decodeURIComponent($A.getObject(this.$route.query,"from"));e?$A.IDBSet("clearCache","login").then(o=>{window.location.replace(e)}):this.goForward({name:"manage-dashboard"},!0)},onLanguage(e){h(e)}}},c={};var f=p(v,m,u,!1,w,null,null,null);function w(e){for(let o in c)this[o]=c[o]}var pe=function(){return f.exports}();export{pe as default};
diff --git a/public/js/build/manage.9e3d2fa7.js b/public/js/build/manage.670728eb.js
similarity index 59%
rename from public/js/build/manage.9e3d2fa7.js
rename to public/js/build/manage.670728eb.js
index dae179920..5d514a043 100644
--- a/public/js/build/manage.9e3d2fa7.js
+++ b/public/js/build/manage.670728eb.js
@@ -1,16 +1,16 @@
-import{m as u,a as v}from"./vuex.cc7cb26e.js";import{S as _}from"./SearchButton.3fc39f79.js";import{n as c,l as y,Q as W,N as K,e as n,U as k,a as w,b as C,w as b,T as G,M as Y,A as U,F as J,t as V,S as q,c as Q,d as X,P as Z}from"./app.818b057c.js";import{C as tt,T as et}from"./CheckinExport.a0a6b328.js";import{p as at,o as $}from"./file.5e8166ad.js";import{D as H,R as st}from"./index.ab4b7604.js";import{T as it,a as rt,b as ot}from"./TaskDetail.e33edbb5.js";import{R as nt}from"./ReportEdit.686131b0.js";import{R as lt}from"./ReportDetail.71244edd.js";import{D as ct}from"./DialogWrapper.21630cce.js";import{M as dt}from"./index.a1e57906.js";import{I as ht}from"./ImgUpload.a99f26bd.js";import{n as pt}from"./notification-koro1.99b93615.js";import{D as ut}from"./vuedraggable.f464b992.js";import{D as mt}from"./DepartmentOwnerView.2b37b86c.js";import"./jquery.c87f487f.js";import"./@babel.9410f858.js";import"./dayjs.fd4aa75c.js";import"./localforage.8de7c27e.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./vue.adba9046.js";import"./openpgp_hi.15f91b1d.js";import"./axios.37c7f908.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./view-design-hi.24419422.js";import"./html-to-md.f297036e.js";import"./lodash.8fcd6fd4.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vue-resize-observer.5af23a43.js";import"./element-sea.f8a64907.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";import"./sortablejs.3488b922.js";import"./add.1373f0de.js";import"./TEditor.7069f2fe.js";import"./tinymce.498510f2.js";import"./chunkedUpload.a9ef725e.js";import"./spark-md5.0443325f.js";import"./vue-virtual-scroll-list-hi.74ad83f0.js";import"./webhook.378987f3.js";import"./@micro-zoe.39406924.js";var ft=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"project-archived"},[e("div",{staticClass:"archived-title"},[t._v(" "+t._s(t.$L("\u5F52\u6863\u7684\u9879\u76EE"))+" "),e("div",{staticClass:"title-icon"},[t.loadIng>0?e("Loading"):t._e()],1)]),e("div",{staticClass:"search-container lr"},[e("ul",[e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u9879\u76EE\u540D"))+" ")]),e("div",{staticClass:"search-content"},[e("Input",{attrs:{clearable:""},model:{value:t.keys.name,callback:function(s){t.$set(t.keys,"name",s)},expression:"keys.name"}})],1)]),e("li",{staticClass:"search-button"},[e("SearchButton",{attrs:{loading:t.loadIng>0,filtering:t.keyIs,placement:"right"},on:{search:t.onSearch,refresh:t.getLists,cancelFilter:function(s){t.keyIs=!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)])},gt=[];const vt={name:"ProjectArchived",components:{SearchButton:_},data(){return{loadIng:0,keys:{},keyIs:!1,columns:[{title:"ID",key:"id",width:80,render:(t,{row:a,column:e})=>t("TableAction",{props:{column:e,align:"left"}},[t("div",a.id)])},{title:this.$L("\u9879\u76EE\u540D\u79F0"),key:"name",minWidth:200,render:(t,{row:a})=>t("AutoTip",a.name)},{title:this.$L("\u5F52\u6863\u65F6\u95F4"),key:"archived_at",width:168},{title:this.$L("\u5F52\u6863\u4EBA\u5458"),key:"archived_userid",minWidth:80,render:(t,{row:a})=>a.archived_userid?t("UserAvatar",{props:{userid:a.archived_userid,size:24,showName:!0}}):t("Tag",this.$L("\u7CFB\u7EDF\u81EA\u52A8"))},{title:this.$L("\u8D1F\u8D23\u4EBA"),minWidth:80,render:(t,{row:a})=>t("UserAvatar",{props:{showName:!0,size:22,userid:a.owner_userid}})},{title:this.$L("\u64CD\u4F5C"),align:"center",width:100,render:(t,a)=>{const e=[t("Poptip",{props:{title:this.$L("\u4F60\u786E\u5B9A\u8981\u8FD8\u539F\u5F52\u6863\u5417\uFF1F"),confirm:!0,transfer:!0,placement:"left",okText:this.$L("\u786E\u5B9A"),cancelText:this.$L("\u53D6\u6D88")},style:{fontSize:"13px",cursor:"pointer",color:"#84C56A"},on:{"on-ok":()=>{this.recovery(a.row)}}},this.$L("\u8FD8\u539F")),t("Poptip",{props:{title:this.$L("\u4F60\u786E\u5B9A\u8981\u5220\u9664\u9879\u76EE\u5417\uFF1F"),confirm:!0,transfer:!0,placement:"left",okText:this.$L("\u786E\u5B9A"),cancelText:this.$L("\u53D6\u6D88")},style:{marginLeft:"8px",fontSize:"13px",cursor:"pointer",color:"#f00"},on:{"on-ok":()=>{this.delete(a.row)}}},this.$L("\u5220\u9664"))];return t("TableAction",{props:{column:a.column}},e)}}],list:[],page:1,pageSize:20,total:0,noText:""}},mounted(){this.getLists()},watch:{keyIs(t){t||(this.keys={},this.setPage(1))}},methods:{onSearch(){this.page=1,this.getLists()},getLists(){this.loadIng++,this.keyIs=$A.objImplode(this.keys)!="",this.$store.dispatch("call",{url:"project/lists",data:{keys:this.keys,archived:"yes",page:Math.max(this.page,1),pagesize:Math.max($A.runNum(this.pageSize),10)}}).then(({data:t})=>{this.page=t.current_page,this.total=t.total,this.list=t.data,this.noText="\u6CA1\u6709\u76F8\u5173\u7684\u6570\u636E"}).catch(()=>{this.noText="\u6570\u636E\u52A0\u8F7D\u5931\u8D25"}).finally(t=>{this.loadIng--})},setPage(t){this.page=t,this.getLists()},setPageSize(t){this.page=1,this.pageSize=t,this.getLists()},recovery(t){this.list=this.list.filter(({id:a})=>a!=t.id),this.loadIng++,this.$store.dispatch("call",{url:"project/archived",data:{project_id:t.id,type:"recovery"}}).then(()=>{this.getLists(),this.$store.dispatch("getProjectOne",t.id).catch(()=>{})}).catch(({msg:a})=>{$A.modalError(a),this.getLists()}).finally(a=>{this.loadIng--})},delete(t){this.list=this.list.filter(({id:a})=>a!=t.id),this.loadIng++,this.$store.dispatch("removeProject",t.id).then(({msg:a})=>{$A.messageSuccess(a),this.getLists()}).catch(({msg:a})=>{$A.modalError(a),this.getLists()}).finally(a=>{this.loadIng--})}}},D={};var _t=c(vt,ft,gt,!1,$t,null,null,null);function $t(t){for(let a in D)this[a]=D[a]}var yt=function(){return _t.exports}(),kt=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("Modal",{attrs:{title:t.t("\u684C\u9762 MCP \u670D\u52A1\u5668","Desktop MCP Server"),"mask-closable":!1,width:"700"},model:{value:t.mcpHelperShow,callback:function(s){t.mcpHelperShow=s},expression:"mcpHelperShow"}},[e("div",{staticClass:"mcp-helper-content"},[e("Alert",{attrs:{type:"success","show-icon":""}},[t._v(" "+t._s(t.t("MCP \u670D\u52A1\u5668\u5DF2\u542F\u52A8\u6210\u529F\uFF01","MCP Server started successfully!"))+" "),e("span",{attrs:{slot:"desc"},slot:"desc"},[t._v(" "+t._s(t.t("\u670D\u52A1\u5730\u5740","Server URL"))+": "),e("code",[t._v(t._s(t.mcpServerUrl))])])]),e("div",{staticClass:"mcp-section"},[e("h3",[e("span",{staticClass:"emoji-original"},[t._v("\u{1F517}")]),t._v(" "+t._s(t.t("\u63A5\u5165\u914D\u7F6E","Configuration")))]),e("p",[t._v(t._s(t.t("\u9009\u62E9\u4F60\u7684 AI \u5DE5\u5177\uFF0C\u590D\u5236\u5BF9\u5E94\u914D\u7F6E","Choose your AI tool and copy the configuration"))+":")]),e("Tabs",{staticClass:"mcp-config-tabs",model:{value:t.configTab,callback:function(s){t.configTab=s},expression:"configTab"}},[e("TabPane",{attrs:{label:"Claude Code",name:"claude-code"}},[t.configTab==="claude-code"?[e("p",{staticClass:"mcp-config-hint"},[t._v(t._s(t.t("\u5728\u7EC8\u7AEF\u8FD0\u884C\u4EE5\u4E0B\u547D\u4EE4","Run the following command in terminal"))+":")]),e("div",{staticClass:"mcp-code-block"},[e("pre",{ref:"configClaudeCode"},[t._v("claude mcp add --transport http DooTask "+t._s(t.mcpServerUrl))]),e("Button",{staticClass:"mcp-copy-btn",attrs:{size:"small"},on:{click:function(s){return t.copyConfig("configClaudeCode")}}},[t._v(t._s(t.t("\u590D\u5236","Copy")))])],1)]:t._e()],2),e("TabPane",{attrs:{label:"Codex",name:"codex"}},[t.configTab==="codex"?[e("p",{staticClass:"mcp-config-hint"},[t._v(t._s(t.t("\u7F16\u8F91 TOML \u914D\u7F6E\u6587\u4EF6","Edit TOML config file"))+":")]),e("div",{staticClass:"mcp-code-block"},[e("pre",{ref:"configCodex"},[t._v(t._s(t.configCodex))]),e("Button",{staticClass:"mcp-copy-btn",attrs:{size:"small"},on:{click:function(s){return t.copyConfig("configCodex")}}},[t._v(t._s(t.t("\u590D\u5236","Copy")))])],1)]:t._e()],2),e("TabPane",{attrs:{label:"Cursor",name:"cursor"}},[t.configTab==="cursor"?[e("p",{staticClass:"mcp-config-hint"},[t._v(t._s(t.t("\u7F16\u8F91\u914D\u7F6E\u6587\u4EF6","Edit config file"))+": "),e("code",[t._v("~/.cursor/mcp.json")])]),e("div",{staticClass:"mcp-code-block"},[e("pre",{ref:"configCursor"},[t._v(t._s(t.configCursor))]),e("Button",{staticClass:"mcp-copy-btn",attrs:{size:"small"},on:{click:function(s){return t.copyConfig("configCursor")}}},[t._v(t._s(t.t("\u590D\u5236","Copy")))])],1)]:t._e()],2),e("TabPane",{attrs:{label:"VS Code",name:"vscode"}},[t.configTab==="vscode"?[e("p",{staticClass:"mcp-config-hint"},[t._v(t._s(t.t("\u7F16\u8F91\u914D\u7F6E\u6587\u4EF6","Edit config file"))+": "),e("code",[t._v("settings.json")])]),e("div",{staticClass:"mcp-code-block"},[e("pre",{ref:"configVSCode"},[t._v(t._s(t.configVSCode))]),e("Button",{staticClass:"mcp-copy-btn",attrs:{size:"small"},on:{click:function(s){return t.copyConfig("configVSCode")}}},[t._v(t._s(t.t("\u590D\u5236","Copy")))])],1)]:t._e()],2),e("TabPane",{attrs:{label:"Claude Desktop",name:"claude-desktop"}},[t.configTab==="claude-desktop"?[e("div",{staticClass:"mcp-config-hint"},[e("p",[t._v(t._s(t.t("\u7F16\u8F91\u914D\u7F6E\u6587\u4EF6","Edit config file"))+":")]),e("p",[e("code",{staticClass:"mcp-path"},[t._v("macOS: ~/Library/Application Support/Claude/claude_desktop_config.json")])]),e("p",[e("code",{staticClass:"mcp-path"},[t._v("Windows: %APPDATA%\\Claude\\claude_desktop_config.json")])])]),e("div",{staticClass:"mcp-code-block"},[e("pre",{ref:"configClaudeDesktop"},[t._v(t._s(t.configClaudeDesktop))]),e("Button",{staticClass:"mcp-copy-btn",attrs:{size:"small"},on:{click:function(s){return t.copyConfig("configClaudeDesktop")}}},[t._v(t._s(t.t("\u590D\u5236","Copy")))])],1)]:t._e()],2),e("TabPane",{attrs:{label:"Windsurf",name:"windsurf"}},[t.configTab==="windsurf"?[e("p",{staticClass:"mcp-config-hint"},[t._v(t._s(t.t("\u7F16\u8F91 MCP \u914D\u7F6E\u6587\u4EF6","Edit MCP config file"))+":")]),e("div",{staticClass:"mcp-code-block"},[e("pre",{ref:"configWindsurf"},[t._v(t._s(t.configWindsurf))]),e("Button",{staticClass:"mcp-copy-btn",attrs:{size:"small"},on:{click:function(s){return t.copyConfig("configWindsurf")}}},[t._v(t._s(t.t("\u590D\u5236","Copy")))])],1)]:t._e()],2),e("TabPane",{attrs:{label:"Kiro",name:"kiro"}},[t.configTab==="kiro"?[e("p",{staticClass:"mcp-config-hint"},[t._v(t._s(t.t("\u901A\u8FC7 Kiro > MCP Servers > Add \u6DFB\u52A0\uFF0C\u6216\u7F16\u8F91\u914D\u7F6E\u6587\u4EF6","Add via Kiro > MCP Servers > Add, or edit config file"))+":")]),e("div",{staticClass:"mcp-code-block"},[e("pre",{ref:"configKiro"},[t._v(t._s(t.configKiro))]),e("Button",{staticClass:"mcp-copy-btn",attrs:{size:"small"},on:{click:function(s){return t.copyConfig("configKiro")}}},[t._v(t._s(t.t("\u590D\u5236","Copy")))])],1)]:t._e()],2),e("TabPane",{attrs:{label:"Trae",name:"trae"}},[t.configTab==="trae"?[e("p",{staticClass:"mcp-config-hint"},[t._v(t._s(t.t("\u624B\u52A8\u6DFB\u52A0 JSON \u914D\u7F6E","Manually add JSON configuration"))+":")]),e("div",{staticClass:"mcp-code-block"},[e("pre",{ref:"configTrae"},[t._v(t._s(t.configTrae))]),e("Button",{staticClass:"mcp-copy-btn",attrs:{size:"small"},on:{click:function(s){return t.copyConfig("configTrae")}}},[t._v(t._s(t.t("\u590D\u5236","Copy")))])],1)]:t._e()],2),e("TabPane",{attrs:{label:"Antigravity",name:"antigravity"}},[t.configTab==="antigravity"?[e("p",{staticClass:"mcp-config-hint"},[t._v(t._s(t.t("\u7F16\u8F91 MCP \u914D\u7F6E\u6587\u4EF6","Edit MCP config file"))+":")]),e("div",{staticClass:"mcp-code-block"},[e("pre",{ref:"configAntigravity"},[t._v(t._s(t.configAntigravity))]),e("Button",{staticClass:"mcp-copy-btn",attrs:{size:"small"},on:{click:function(s){return t.copyConfig("configAntigravity")}}},[t._v(t._s(t.t("\u590D\u5236","Copy")))])],1)]:t._e()],2),e("TabPane",{attrs:{label:"Opencode",name:"opencode"}},[t.configTab==="opencode"?[e("p",{staticClass:"mcp-config-hint"},[t._v(t._s(t.t("\u7F16\u8F91\u914D\u7F6E\u6587\u4EF6\u4E2D\u7684 mcp \u5B57\u6BB5","Edit the mcp field in config file"))+":")]),e("div",{staticClass:"mcp-code-block"},[e("pre",{ref:"configOpencode"},[t._v(t._s(t.configOpencode))]),e("Button",{staticClass:"mcp-copy-btn",attrs:{size:"small"},on:{click:function(s){return t.copyConfig("configOpencode")}}},[t._v(t._s(t.t("\u590D\u5236","Copy")))])],1)]:t._e()],2),e("TabPane",{attrs:{label:t.t("\u5176\u4ED6","Other"),name:"other"}},[t.configTab==="other"?[e("p",{staticClass:"mcp-config-hint"},[t._v(t._s(t.t("\u5BF9\u4E8E\u5176\u4ED6\u652F\u6301 MCP \u7684\u5DE5\u5177\uFF0C\u53EA\u9700\u5728\u914D\u7F6E\u4E2D\u6DFB\u52A0\u4EE5\u4E0B\u670D\u52A1\u5730\u5740\u5373\u53EF","For other MCP-compatible tools, simply add the following server URL to your configuration"))+":")]),e("div",{staticClass:"mcp-code-block"},[e("pre",{ref:"configOther"},[t._v(t._s(t.mcpServerUrl))]),e("Button",{staticClass:"mcp-copy-btn",attrs:{size:"small"},on:{click:function(s){return t.copyConfig("configOther")}}},[t._v(t._s(t.t("\u590D\u5236","Copy")))])],1),e("p",{staticClass:"mcp-config-hint mcp-config-note"},[t._v(t._s(t.t("\u901A\u7528 JSON \u914D\u7F6E\u683C\u5F0F","Generic JSON configuration format"))+":")]),e("div",{staticClass:"mcp-code-block"},[e("pre",{ref:"configOtherJson"},[t._v(t._s(t.configOtherJson))]),e("Button",{staticClass:"mcp-copy-btn",attrs:{size:"small"},on:{click:function(s){return t.copyConfig("configOtherJson")}}},[t._v(t._s(t.t("\u590D\u5236","Copy")))])],1)]:t._e()],2)],1)],1),e("div",{staticClass:"mcp-section"},[e("h3",[e("span",{staticClass:"emoji-original"},[t._v("\u{1F4A1}")]),t._v(" "+t._s(t.t("\u4F7F\u7528\u793A\u4F8B","Usage Examples")))]),e("p",[t._v(t._s(t.t("\u914D\u7F6E\u751F\u6548\u540E\uFF0C\u5373\u53EF\u901A\u8FC7\u81EA\u7136\u8BED\u8A00\u4E0E AI \u5BF9\u8BDD\u64CD\u4F5C DooTask","After configuration, you can interact with DooTask through natural language"))+":")]),e("div",{staticClass:"mcp-category"},[e("h4",[t._v(t._s(t.t("\u4EFB\u52A1\u7BA1\u7406","Task Management")))]),e("ul",{staticClass:"mcp-examples"},[e("li",[t._v('"'+t._s(t.t("\u6211\u4ECA\u5929\u6709\u54EA\u4E9B\u4EFB\u52A1\uFF1F","What tasks do I have today?"))+'"')]),e("li",[t._v('"'+t._s(t.t("\u672C\u5468\u8FD8\u6709\u591A\u5C11\u672A\u5B8C\u6210\u7684\u4EFB\u52A1\uFF1F","How many uncompleted tasks do I have this week?"))+'"')]),e("li",[t._v('"'+t._s(t.t('\u5E2E\u6211\u628A\u4EFB\u52A1"\u4FEE\u590D\u767B\u5F55bug"\u6807\u8BB0\u5B8C\u6210','Mark the task "Fix login bug" as completed'))+'"')]),e("li",[t._v('"'+t._s(t.t("\u521B\u5EFA\u4E00\u4E2A\u4EFB\u52A1\uFF1A\u8BBE\u8BA1\u7528\u6237\u4E2D\u5FC3\u9875\u9762","Create a task: Design user center page"))+'"')]),e("li",[t._v('"'+t._s(t.t("\u7ED9\u4EFB\u52A1\u6DFB\u52A0\u5B50\u4EFB\u52A1\uFF1A\u7F16\u5199\u5355\u5143\u6D4B\u8BD5","Add a subtask: Write unit tests"))+'"')]),e("li",[t._v('"'+t._s(t.t("\u628A\u4EFB\u52A1\u622A\u6B62\u65F6\u95F4\u6539\u4E3A\u4E0B\u5468\u4E94","Change the task deadline to next Friday"))+'"')])])]),e("div",{staticClass:"mcp-category"},[e("h4",[t._v(t._s(t.t("\u9879\u76EE\u67E5\u8BE2","Project Query")))]),e("ul",{staticClass:"mcp-examples"},[e("li",[t._v('"'+t._s(t.t("\u6211\u53C2\u4E0E\u4E86\u54EA\u4E9B\u9879\u76EE\uFF1F","What projects am I involved in?"))+'"')]),e("li",[t._v('"'+t._s(t.t("\u7535\u5546\u9879\u76EE\u76EE\u524D\u8FDB\u5C55\u5982\u4F55\uFF1F","How is the e-commerce project progressing?"))+'"')]),e("li",[t._v('"'+t._s(t.t("\u9879\u76EE\u91CC\u8FD8\u6709\u591A\u5C11\u672A\u5B8C\u6210\u4EFB\u52A1\uFF1F","How many uncompleted tasks are in the project?"))+'"')]),e("li",[t._v('"'+t._s(t.t("\u9879\u76EE\u6210\u5458\u6709\u54EA\u4E9B\u4EBA\uFF1F","Who are the project members?"))+'"')])])]),e("div",{staticClass:"mcp-category"},[e("h4",[t._v(t._s(t.t("\u5DE5\u4F5C\u6C47\u62A5","Work Reports")))]),e("ul",{staticClass:"mcp-examples"},[e("li",[t._v('"'+t._s(t.t("\u5E2E\u6211\u751F\u6210\u4ECA\u5929\u7684\u65E5\u62A5","Generate my daily report for today"))+'"')]),e("li",[t._v('"'+t._s(t.t("\u5E2E\u6211\u5199\u672C\u5468\u5468\u62A5","Write my weekly report"))+'"')]),e("li",[t._v('"'+t._s(t.t("\u6211\u4E0A\u5468\u63D0\u4EA4\u8FC7\u5468\u62A5\u5417\uFF1F","Did I submit a weekly report last week?"))+'"')]),e("li",[t._v('"'+t._s(t.t("\u5F20\u4E09\u4E0A\u4E2A\u6708\u7684\u5468\u62A5\u60C5\u51B5\u600E\u4E48\u6837\uFF1F","How was Zhang San's weekly reports last month?"))+'"')])])]),e("div",{staticClass:"mcp-category"},[e("h4",[t._v(t._s(t.t("\u56E2\u961F\u534F\u4F5C","Team Collaboration")))]),e("ul",{staticClass:"mcp-examples"},[e("li",[t._v('"'+t._s(t.t("\u53D1\u6D88\u606F\u7ED9\u5F20\u4E09\uFF1A\u660E\u5929\u4F1A\u8BAE\u6539\u5230\u4E0B\u53483\u70B9","Send a message to Zhang San: Tomorrow's meeting is rescheduled to 3 PM"))+'"')]),e("li",[t._v('"'+t._s(t.t('\u641C\u7D22\u5173\u4E8E"\u63A5\u53E3\u8BBE\u8BA1"\u7684\u804A\u5929\u8BB0\u5F55','Search chat history about "API design"'))+'"')]),e("li",[t._v('"'+t._s(t.t("\u5E2E\u6211\u627E\u4E00\u4E0B\u674E\u56DB\u7684\u8054\u7CFB\u65B9\u5F0F","Help me find Li Si's contact info"))+'"')])])]),e("div",{staticClass:"mcp-category"},[e("h4",[t._v(t._s(t.t("\u6587\u4EF6\u67E5\u627E","File Search")))]),e("ul",{staticClass:"mcp-examples"},[e("li",[t._v('"'+t._s(t.t("\u5E2E\u6211\u627E\u4E00\u4E0B\u9700\u6C42\u6587\u6863","Help me find the requirements document"))+'"')]),e("li",[t._v('"'+t._s(t.t("\u6211\u7684\u6587\u4EF6\u5217\u8868\u6709\u54EA\u4E9B\uFF1F","What files do I have?"))+'"')]),e("li",[t._v('"'+t._s(t.t("\u8FD9\u4E2A\u4EFB\u52A1\u6709\u54EA\u4E9B\u9644\u4EF6\uFF1F","What attachments does this task have?"))+'"')])])])])],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:t.onCloseMcp}},[t._v(t._s(t.t("\u5173\u95ED MCP \u670D\u52A1\u5668","Stop MCP Server")))]),e("Button",{attrs:{type:"primary"},on:{click:function(s){t.mcpHelperShow=!1}}},[t._v(t._s(t.t("\u6211\u77E5\u9053\u4E86","Got it")))])],1)])},bt=[];const wt={name:"MCPHelper",props:{value:{type:Boolean,default:!1}},data(){return{configTab:"claude-code",mcpServerUrl:"http://localhost:22224/mcp"}},computed:{...u(["mcpServerStatus"]),mcpHelperShow:{get(){return this.value},set(t){this.$emit("input",t)}},configCursor(){return JSON.stringify({mcpServers:{DooTask:{url:this.mcpServerUrl}}},null,2)},configVSCode(){return JSON.stringify({mcp:{servers:{DooTask:{type:"http",url:this.mcpServerUrl}}}},null,2)},configWindsurf(){return JSON.stringify({mcpServers:{DooTask:{serverUrl:this.mcpServerUrl}}},null,2)},configClaudeDesktop(){return JSON.stringify({mcpServers:{DooTask:{type:"streamable-http",url:this.mcpServerUrl}}},null,2)},configCodex(){return`[mcp_servers.DooTask]
-url = "${this.mcpServerUrl}"`},configKiro(){return JSON.stringify({mcpServers:{DooTask:{type:"streamable-http",url:this.mcpServerUrl}}},null,2)},configTrae(){return JSON.stringify({mcpServers:{DooTask:{url:this.mcpServerUrl}}},null,2)},configAntigravity(){return JSON.stringify({mcpServers:{DooTask:{serverUrl:this.mcpServerUrl}}},null,2)},configOpencode(){return JSON.stringify({mcp:{DooTask:{type:"remote",url:this.mcpServerUrl,enabled:!0}}},null,2)},configOtherJson(){return JSON.stringify({mcpServers:{DooTask:{url:this.mcpServerUrl}}},null,2)}},methods:{t(t,a){return y.includes("zh")?t:a},copyConfig(t){const a=this.$refs[t];a&&this.copyText(a.textContent)},onCloseMcp(){this.mcpServerStatus.running==="running"&&this.$store.dispatch("toggleMcpServer"),this.mcpHelperShow=!1}}},T={};var Ct=c(wt,kt,bt,!1,Dt,"b5b22b78",null,null);function Dt(t){for(let a in T)this[a]=T[a]}var Tt=function(){return Ct.exports}(),St=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"favorite-management"},[e("div",{staticClass:"management-title"},[t._v(" "+t._s(t.$L("\u6211\u7684\u6536\u85CF"))+" "),e("div",{staticClass:"title-icon"},[t.loadIng>0?e("Loading"):t._e()],1)]),e("div",{staticClass:"search-container lr"},[e("ul",[e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u6536\u85CF\u7C7B\u578B"))+" ")]),e("div",{staticClass:"search-content"},[e("Select",{attrs:{placeholder:t.$L("\u5168\u90E8\u7C7B\u578B")},model:{value:t.keys.type,callback:function(s){t.$set(t.keys,"type",s)},expression:"keys.type"}},[e("Option",{attrs:{value:""}},[t._v(t._s(t.$L("\u5168\u90E8\u7C7B\u578B")))]),e("Option",{attrs:{value:"task"}},[t._v(t._s(t.$L("\u4EFB\u52A1")))]),e("Option",{attrs:{value:"project"}},[t._v(t._s(t.$L("\u9879\u76EE")))]),e("Option",{attrs:{value:"file"}},[t._v(t._s(t.$L("\u6587\u4EF6")))]),e("Option",{attrs:{value:"message"}},[t._v(t._s(t.$L("\u6D88\u606F")))])],1)],1)]),e("li",{staticClass:"search-button"},[e("SearchButton",{attrs:{loading:t.loadIng>0,filtering:t.keyIs,placement:"right"},on:{search:t.onSearch,refresh:t.getLists,cancelFilter:function(s){t.keyIs=!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)])},Lt=[];const At={name:"FavoriteManagement",components:{SearchButton:_,QuickEdit:W},data(){return{loadIng:0,keys:{},keyIs:!1,columns:[{title:this.$L("\u7C7B\u578B"),key:"type",width:80,render:(t,{row:a})=>{const e={task:this.$L("\u4EFB\u52A1"),project:this.$L("\u9879\u76EE"),file:this.$L("\u6587\u4EF6"),message:this.$L("\u6D88\u606F")};return t("Tag",{class:"favorite-type-tag",props:{color:{task:"success",project:"#f87cbd",file:"warning",message:"primary"}[a.type]||"primary"}},e[a.type]||a.type)}},{title:this.$L("\u540D\u79F0"),key:"name",minWidth:150,render:(t,{row:a})=>t("div",{class:"favorite-name",on:{click:()=>this.openFavorite(a)}},[t("AutoTip",a.name)])},{title:this.$L("\u5907\u6CE8"),key:"remark",minWidth:160,render:(t,{row:a})=>t("QuickEdit",{props:{value:a.remark||"",attrTitle:a.remark||"",alwaysIcon:!0},on:{"on-update":(e,s)=>{const i=(e||"").trim();if(!i){$A.messageWarning(this.$L("\u8BF7\u8F93\u5165\u4FEE\u6539\u5907\u6CE8")),s();return}this.$store.dispatch("call",{url:"users/favorite/remark",data:{type:a.type,id:a.id,remark:i},method:"post"}).then(({data:r,msg:o})=>{const d=r&&typeof r.remark!="undefined"?r.remark:i;a.remark=d;const m=this.allData.find(l=>l.id===a.id&&l.type===a.type);m&&(m.remark=d),$A.messageSuccess(o||this.$L("\u64CD\u4F5C\u6210\u529F")),s()}).catch(({msg:r})=>{$A.modalError(r||this.$L("\u64CD\u4F5C\u5931\u8D25")),s()})}}},[t("AutoTip",a.remark||"-")])},{title:this.$L("\u6240\u5C5E\u9879\u76EE"),key:"project_name",minWidth:120,render:(t,{row:a})=>a.project_name?t("AutoTip",a.project_name):t("span","-")},{title:this.$L("\u72B6\u6001"),minWidth:80,render:(t,{row:a})=>a.type==="task"?a.flow_item_name?t("span",{class:`flow-name ${a.flow_item_status}`,style:this.$A.generateColorVarStyle(a.flow_item_color,[10],"flow-item-custom-color")},a.flow_item_name):a.complete_at?t("span",{class:"favorite-status-tag favorite-status-success"},this.$L("\u5DF2\u5B8C\u6210")):t("span",{class:"favorite-status-tag favorite-status-processing"},this.$L("\u8FDB\u884C\u4E2D")):a.type==="project"?a.archived_at?t("span",{class:"favorite-status-tag favorite-status-error"},this.$L("\u5DF2\u5F52\u6863")):t("span",{class:"favorite-status-tag favorite-status-success"},this.$L("\u6B63\u5E38")):t("span","-")},{title:this.$L("\u6536\u85CF\u65F6\u95F4"),key:"favorited_at",width:168},{title:this.$L("\u64CD\u4F5C"),align:"center",width:100,render:(t,a)=>{const e=[t("Poptip",{props:{title:this.$L('\u786E\u5B9A\u8981\u53D6\u6D88\u6536\u85CF"(*)"\u5417\uFF1F',a.row.name),confirm:!0,transfer:!0,placement:"left",okText:this.$L("\u786E\u5B9A"),cancelText:this.$L("\u53D6\u6D88")},style:{fontSize:"13px",cursor:"pointer",color:"#f00"},on:{"on-ok":()=>{this.removeFavorite(a.row)}}},this.$L("\u53D6\u6D88\u6536\u85CF"))];return t("TableAction",{props:{column:a.column}},e)}}],list:[],allData:[],page:1,pageSize:20,total:0,noText:""}},mounted(){this.getLists()},watch:{keyIs(t){t||(this.keys={},this.setPage(1))}},methods:{onSearch(){this.page=1,this.getLists()},getLists(){this.loadIng++,this.keyIs=$A.objImplode(this.keys)!="",this.$store.dispatch("call",{url:"users/favorites",data:{type:this.keys.type||"",page:this.page,pagesize:this.pageSize}}).then(({data:t})=>{this.allData=[],t.data.tasks&&t.data.tasks.forEach(a=>{this.allData.push({id:a.id,type:"task",name:a.name,project_id:a.project_id,project_name:a.project_name,complete_at:a.complete_at,flow_item_id:a.flow_item_id,flow_item_name:a.flow_item_name,flow_item_status:a.flow_item_status,flow_item_color:a.flow_item_color,favorited_at:a.favorited_at,remark:a.remark||""})}),t.data.projects&&t.data.projects.forEach(a=>{this.allData.push({id:a.id,type:"project",name:a.name,desc:a.desc,archived_at:a.archived_at,favorited_at:a.favorited_at,remark:a.remark||""})}),t.data.files&&t.data.files.forEach(a=>{this.allData.push({id:a.id,type:"file",name:a.name,ext:a.ext,size:a.size,pid:a.pid,image_url:a.image_url,image_width:a.image_width,image_height:a.image_height,favorited_at:a.favorited_at,remark:a.remark||""})}),t.data.messages&&t.data.messages.forEach(a=>{this.allData.push({id:a.id,type:"message",name:a.name,dialog_id:a.dialog_id,userid:a.userid,msg_type:a.type,favorited_at:a.favorited_at,remark:a.remark||""})}),this.total=t.total||this.allData.length,this.list=this.allData.slice(),this.noText="\u6CA1\u6709\u76F8\u5173\u7684\u6536\u85CF"}).catch(()=>{this.noText="\u6570\u636E\u52A0\u8F7D\u5931\u8D25"}).finally(t=>{this.loadIng--})},setPage(t){this.page=t,this.getLists()},setPageSize(t){this.page=1,this.pageSize=t,this.getLists()},openFavorite(t){switch(t.type){case"task":this.$store.dispatch("openTask",{id:t.id});break;case"project":this.$router.push({name:"manage-project",params:{projectId:t.id}}),this.$emit("on-close");break;case"file":if(at(this,this.allData,t))break;$(this,t);break;case"message":this.$store.dispatch("openDialog",t.dialog_id).then(()=>{this.$store.state.dialogSearchMsgId=t.id,this.$route.name==="manage-messenger"&&this.$emit("on-close")}).catch(({msg:a})=>{$A.modalError(a||this.$L("\u6253\u5F00\u4F1A\u8BDD\u5931\u8D25"))});break}},removeFavorite(t){this.$store.dispatch("toggleFavorite",{type:t.type,id:t.id}).then(()=>{this.getLists()})}}},S={};var It=c(At,St,Lt,!1,xt,null,null,null);function xt(t){for(let a in S)this[a]=S[a]}var jt=function(){return It.exports}(),Pt=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"recent-management"},[e("div",{staticClass:"management-title"},[t._v(" "+t._s(t.$L("\u6700\u8FD1\u6253\u5F00"))+" "),e("div",{staticClass:"title-icon"},[t.loading>0?e("Loading"):t._e()],1)]),e("div",{staticClass:"search-container lr"},[e("ul",[e("li",[e("div",{staticClass:"search-label"},[t._v(t._s(t.$L("\u7C7B\u578B")))]),e("div",{staticClass:"search-content"},[e("Select",{attrs:{clearable:"",placeholder:t.$L("\u5168\u90E8\u7C7B\u578B")},on:{"on-change":t.handleTypeChange},model:{value:t.filters.type,callback:function(s){t.$set(t.filters,"type",s)},expression:"filters.type"}},t._l(t.typeOptions,function(s){return e("Option",{key:s.value,attrs:{value:s.value}},[t._v(t._s(t.$L(s.label)))])}),1)],1)]),e("li",{staticClass:"search-button"},[e("Button",{attrs:{type:"primary",loading:t.loading>0},on:{click:t.refreshList}},[t._v(t._s(t.$L("\u5237\u65B0")))])],1)])]),e("div",{staticClass:"table-page-box"},[e("Table",{attrs:{columns:t.columns,data:t.records,loading:t.loading>0,"no-data-text":t.$L(t.noDataText),stripe:""}}),e("Page",{attrs:{total:t.total,current:t.page,"page-size":t.pageSize,"page-size-opts":[10,20,30,50,100],simple:t.windowPortrait,disabled:t.loading>0,"show-elevator":"","show-sizer":"","show-total":""},on:{"on-change":t.setPage,"on-page-size-change":t.setPageSize}})],1)])},Mt=[];const Ot={name:"RecentManagement",data(){return{loading:0,records:[],total:0,page:1,pageSize:20,filters:{type:""},noDataText:"\u6682\u65E0\u6253\u5F00\u8BB0\u5F55"}},computed:{...u(["windowPortrait"]),typeMap(){return{task:{label:"\u4EFB\u52A1",color:"success"},file:{label:"\u6587\u4EF6\u5E93",color:"warning"},task_file:{label:"\u4EFB\u52A1\u6587\u4EF6",color:"primary"},message_file:{label:"\u804A\u5929\u6587\u4EF6",color:"#f87cbd"}}},typeOptions(){return[{value:"",label:"\u5168\u90E8\u7C7B\u578B"},{value:"task",label:this.typeMap.task.label},{value:"file",label:this.typeMap.file.label},{value:"task_file",label:this.typeMap.task_file.label},{value:"message_file",label:this.typeMap.message_file.label}]},columns(){return[{title:this.$L("\u7C7B\u578B"),key:"type",width:120,render:(t,{row:a})=>{const e=this.getTypeInfo(a.type);return t("Tag",{class:"recent-type-tag",props:{color:e.color||"primary"}},this.$L(e.label||a.type))}},{title:this.$L("\u540D\u79F0"),key:"name",minWidth:200,render:(t,{row:a})=>{const e=a.name||this.$L("\u672A\u547D\u540D");return t("div",{class:"recent-name",on:{click:()=>this.openItem(a)}},[t("AutoTip",e)])}},{title:this.$L("\u6765\u6E90"),minWidth:220,render:(t,{row:a})=>t("AutoTip",this.getSourceText(a))},{title:this.$L("\u6700\u8FD1\u8BBF\u95EE\u65F6\u95F4"),key:"browsed_at",width:168},{title:this.$L("\u64CD\u4F5C"),align:"center",width:120,render:(t,a)=>{const e=[t("Poptip",{props:{title:this.$L('\u786E\u5B9A\u8981\u5220\u9664\u8BB0\u5F55"(*)"\u5417\uFF1F',a.row.name||this.$L("\u672A\u547D\u540D")),confirm:!0,transfer:!0,placement:"left",okText:this.$L("\u786E\u5B9A"),cancelText:this.$L("\u53D6\u6D88")},style:{fontSize:"13px",cursor:"pointer",color:"#f00"},on:{"on-ok":()=>this.removeItem(a.row)}},this.$L("\u5220\u9664"))];return t("TableAction",{props:{column:a.column}},e)}}]}},mounted(){this.getLists()},methods:{getTypeInfo(t){return this.typeMap[t]||{label:t,color:"default"}},getSourceText(t){switch(t.type){case"task":{const a=t.project_name?`${this.$L("\u9879\u76EE")}: ${t.project_name}`:this.$L("\u9879\u76EE"),e=this.getTaskStatus(t);return e?`${a} | ${e}`:a}case"file":return this.$L("\u6587\u4EF6\u5E93");case"task_file":{const a=[];return t.project_name&&a.push(`${this.$L("\u9879\u76EE")}: ${t.project_name}`),t.task_name&&a.push(`${this.$L("\u4EFB\u52A1")}: ${t.task_name}`),a.length>0?a.join(" | "):this.$L("\u4EFB\u52A1\u6587\u4EF6")}case"message_file":return t.dialog_name?`${this.$L("\u804A\u5929")}: ${t.dialog_name}`:this.$L("\u804A\u5929\u6587\u4EF6")}return this.$L("\u672A\u77E5")},getTaskStatus(t){return t.flow_item_name?t.flow_item_name:t.complete_at?this.$L("\u5DF2\u5B8C\u6210"):this.$L("\u8FDB\u884C\u4E2D")},getLists(t=this.page){this.loading++;const a={page:t,page_size:this.pageSize};this.filters.type&&(a.type=this.filters.type),this.$store.dispatch("getRecentBrowseHistory",a).then(({data:e})=>{$A.isJson(e)?(this.records=e.list||[],this.total=e.total||0,this.page=e.page||t,this.pageSize=e.page_size||this.pageSize):(this.records=[],this.total=0)}).catch(({msg:e})=>{e&&$A.modalError(e)}).finally(()=>{this.loading--})},refreshList(){this.getLists(1)},handleTypeChange(){this.page=1,this.getLists(1)},setPage(t){this.page=t,this.getLists(t)},setPageSize(t){this.pageSize=t,this.getLists(1)},openItem(t){switch(t.type){case"task":this.$store.dispatch("openTask",t);break;case"file":$(this,t);break;case"task_file":$(this,t,{path:`/single/file/task/${t.id}`,windowName:`file-task-${t.id}`,title:t.name});break;case"message_file":$(this,t,{path:`/single/file/msg/${t.id}`,windowName:`file-msg-${t.id}`,title:t.name});break}},removeItem(t){if(!t.record_id)return;const a=this.records.length===1&&this.page>1?this.page-1:this.page;this.loading++,this.$store.dispatch("removeRecentBrowseRecord",t.record_id).then(({msg:e})=>{$A.messageSuccess(e||this.$L("\u5220\u9664\u6210\u529F")),this.page=a,this.getLists(a)}).catch(({msg:e})=>{e&&$A.modalError(e)}).finally(()=>{this.loading--})}}},L={};var Rt=c(Ot,Pt,Mt,!1,Bt,null,null,null);function Bt(t){for(let a in L)this[a]=L[a]}var Et=function(){return Rt.exports}(),zt=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"project-management"},[e("div",{staticClass:"management-title"},[t._v(" "+t._s(t.$L("\u6240\u6709\u9879\u76EE"))+" "),e("div",{staticClass:"title-icon"},[t.loadIng>0?e("Loading"):t._e()],1)]),e("div",{staticClass:"search-container lr"},[e("ul",[e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u9879\u76EE\u540D"))+" ")]),e("div",{staticClass:"search-content"},[e("Input",{attrs:{clearable:""},model:{value:t.keys.name,callback:function(s){t.$set(t.keys,"name",s)},expression:"keys.name"}})],1)]),e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u9879\u76EE\u7C7B\u578B"))+" ")]),e("div",{staticClass:"search-content"},[e("Select",{attrs:{placeholder:t.$L("\u56E2\u961F\u9879\u76EE")},model:{value:t.keys.type,callback:function(s){t.$set(t.keys,"type",s)},expression:"keys.type"}},[e("Option",{attrs:{value:""}},[t._v(t._s(t.$L("\u56E2\u961F\u9879\u76EE")))]),e("Option",{attrs:{value:"personal"}},[t._v(t._s(t.$L("\u4E2A\u4EBA\u9879\u76EE")))]),e("Option",{attrs:{value:"all"}},[t._v(t._s(t.$L("\u5168\u90E8\u9879\u76EE")))])],1)],1)]),e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u9879\u76EE\u72B6\u6001"))+" ")]),e("div",{staticClass:"search-content"},[e("Select",{attrs:{placeholder:t.$L("\u672A\u5F52\u6863")},model:{value:t.keys.status,callback:function(s){t.$set(t.keys,"status",s)},expression:"keys.status"}},[e("Option",{attrs:{value:""}},[t._v(t._s(t.$L("\u672A\u5F52\u6863")))]),e("Option",{attrs:{value:"archived"}},[t._v(t._s(t.$L("\u5DF2\u5F52\u6863")))]),e("Option",{attrs:{value:"all"}},[t._v(t._s(t.$L("\u5168\u90E8")))])],1)],1)]),e("li",{staticClass:"search-button"},[e("SearchButton",{attrs:{loading:t.loadIng>0,filtering:t.keyIs,placement:"right"},on:{search:t.onSearch,refresh:t.getLists,cancelFilter:function(s){t.keyIs=!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)])},Nt=[];const Ft={name:"ProjectManagement",components:{SearchButton:_},data(){return{loadIng:0,keys:{},keyIs:!1,columns:[{title:"ID",key:"id",width:80,render:(t,{row:a,column:e})=>t("TableAction",{props:{column:e,align:"left"}},[t("div",a.id)])},{title:this.$L("\u9879\u76EE\u540D\u79F0"),key:"name",minWidth:100,render:(t,{row:a})=>{const e=[t("AutoTip",a.name)];return a.archived_at&&e.push(t("Tag",{props:{color:"error"}},this.$L("\u5DF2\u5F52\u6863"))),t("div",{class:"project-name"},e)}},{title:this.$L("\u9879\u76EE\u8FDB\u5EA6"),minWidth:100,render:(t,{row:a})=>{const e=[t("AutoTip",a.task_complete+"/"+a.task_num),t("Progress",{props:{percent:a.task_percent,strokeWidth:5}})];return t("div",{class:"project-percent"},e)}},{title:this.$L("\u8D1F\u8D23\u4EBA"),minWidth:80,render:(t,{row:a})=>t("UserAvatar",{props:{showName:!0,size:22,userid:a.owner_userid}})},{title:this.$L("\u521B\u5EFA\u4EBA"),minWidth:80,render:(t,{row:a})=>t("UserAvatar",{props:{showName:!0,size:22,userid:a.userid}})},{title:this.$L("\u521B\u5EFA\u65F6\u95F4"),key:"created_at",width:168}],list:[],page:1,pageSize:20,total:0,noText:""}},mounted(){this.getLists()},watch:{keyIs(t){t||(this.keys={},this.setPage(1))}},methods:{onSearch(){this.page=1,this.getLists()},getLists(){let t="team";this.keys.type=="all"?t="all":this.keys.type=="personal"&&(t="personal");let a="no";this.keys.status=="all"?a="all":this.keys.status=="archived"&&(a="yes"),this.loadIng++,this.keyIs=$A.objImplode(this.keys)!="",this.$store.dispatch("call",{url:"project/lists",data:{keys:this.keys,all:1,archived:a,type:t,page:Math.max(this.page,1),pagesize:Math.max($A.runNum(this.pageSize),10)}}).then(({data:e})=>{this.page=e.current_page,this.total=e.total,this.list=e.data,this.noText="\u6CA1\u6709\u76F8\u5173\u7684\u6570\u636E"}).catch(()=>{this.noText="\u6570\u636E\u52A0\u8F7D\u5931\u8D25"}).finally(e=>{this.loadIng--})},setPage(t){this.page=t,this.getLists()},setPageSize(t){this.page=1,this.pageSize=t,this.getLists()}}},A={};var Ut=c(Ft,zt,Nt,!1,Vt,null,null,null);function Vt(t){for(let a in A)this[a]=A[a]}var Ht=function(){return Ut.exports}(),Wt=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"mobile-tabbar"},[t.windowPortrait?e("NetworkException",{attrs:{type:"alert"}}):t._e(),e("ul",{staticClass:"tabbar-box"},t._l(t.navList,function(s,i){return e("li",{key:i,class:{active:t.activeName===s.name},on:{click:function(r){return t.toggleRoute(s.name)}}},[e("i",{staticClass:"taskfont",domProps:{innerHTML:t._s(s.icon)}}),e("div",{staticClass:"tabbar-title"},[t._v(t._s(t.$L(s.label)))]),s.name==="dashboard"?[t.dashboardTask.overdue_count>0?e("Badge",{staticClass:"tabbar-badge",attrs:{type:"error","overflow-count":999,count:t.dashboardTask.overdue_count}}):t.dashboardTask.today_count>0?e("Badge",{staticClass:"tabbar-badge",attrs:{type:"info","overflow-count":999,count:t.dashboardTask.today_count}}):t.dashboardTask.todo_count>0?e("Badge",{staticClass:"tabbar-badge",attrs:{type:"primary","overflow-count":999,count:t.dashboardTask.todo_count}}):t._e()]:s.name==="dialog"?[e("Badge",{staticClass:"tabbar-badge",attrs:{"overflow-count":999,text:t.msgUnreadMention}})]:s.name==="application"?[t.applicationBadgeCount>0?e("Badge",{staticClass:"tabbar-badge",attrs:{"overflow-count":999,count:t.applicationBadgeCount}}):t.applicationBadgeDot?e("Badge",{staticClass:"tabbar-badge",attrs:{dot:""}}):t._e()]:t._e()],2)}),0)],1)},Kt=[];const Gt={name:"MobileTabbar",components:{NetworkException:K},data(){return{navList:[{icon:"",name:"dashboard",label:"\u4EEA\u8868\u76D8"},{icon:"",name:"project",label:"\u9879\u76EE"},{icon:"",name:"dialog",label:"\u6D88\u606F"},{icon:"",name:"contacts",label:"\u901A\u8BAF\u5F55"},{icon:"",name:"application",label:"\u5E94\u7528"}]}},mounted(){n.on("dialogMsgPush",this.updateBadge)},beforeDestroy(){n.off("dialogMsgPush",this.updateBadge)},computed:{...v(["dashboardTask","visibleDialogs"]),...v("appBadges",{applicationBadgeCount:"applicationCount",applicationBadgeDot:"applicationDot"}),msgUnreadMention(){let t=0,a=0;this.visibleDialogs.some(s=>{t+=$A.getDialogUnread(s,!1),a+=$A.getDialogMention(s)}),t>999&&(t="999+"),a>999&&(a="999+");const e=this.msgTodoTotal;return e?a?`@${a}\xB7${e}`:t?`${t}\xB7${e}`:e:t?a?`${t}\xB7@${a}`:String(t):a?`@${a}`:""},msgAllUnread(){let t=0;return this.visibleDialogs.some(a=>{t+=$A.getDialogNum(a)}),t},msgTodoTotal(){let t=this.visibleDialogs.reduce((a,e)=>a+(e.todo_num||0),0);return t>0?(t>999?t="999+":t===1&&(t=""),`${this.$L("\u5F85\u529E")}${t}`):null},unreadAndOverdue(){return this.userId>0?this.msgAllUnread+this.dashboardTask.overdue_count:0},activeName(){return["manage-calendar","manage-file","manage-setting","manage-application"].includes(this.routeName)?"application":this.routeName==="manage-dashboard"?"dashboard":this.routeName==="manage-project"&&!/^\d+$/.test(this.$route.params.projectId)?"project":this.routeName==="manage-messenger"?this.$route.params.dialogAction==="contacts"?"contacts":"dialog":""}},watch:{windowActive(){this.updateBadge()}},methods:{toggleRoute(t){this.$emit("on-click",t);let a;switch(t){case"project":a={name:"manage-project",params:{projectId:"all"}};break;case"dialog":a={name:"manage-messenger",params:{dialogAction:"dialog"}},this.routeName==="manage-messenger"&&n.emit("clickAgainDialog",!0);break;case"contacts":a={name:"manage-messenger",params:{dialogAction:"contacts"}};break;default:a={name:"manage-"+t};break}this.goForward(a)},updateBadge(){this.windowActive||$A.eeuiAppSendMessage({action:"setBdageNotify",bdage:this.unreadAndOverdue})}}},I={};var Yt=c(Gt,Wt,Kt,!1,Jt,null,null,null);function Jt(t){for(let a in I)this[a]=I[a]}var qt=function(){return Yt.exports}(),Qt=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("Modal",{staticClass:"task-template-browser",attrs:{title:t.$L("\u641C\u7D22\u6A21\u677F"),"footer-hide":!0,width:640},model:{value:t.show,callback:function(s){t.show=s},expression:"show"}},[e("div",{staticClass:"search-wrap"},[e("Input",{ref:"search",attrs:{placeholder:t.$L("\u641C\u7D22\u6A21\u677F"),clearable:""},on:{"on-change":t.onKeywordChange},nativeOn:{keydown:[function(s){return!s.type.indexOf("key")&&t._k(s.keyCode,"up",38,s.key,["Up","ArrowUp"])?null:(s.preventDefault(),t.moveSelection(-1))},function(s){return!s.type.indexOf("key")&&t._k(s.keyCode,"down",40,s.key,["Down","ArrowDown"])?null:(s.preventDefault(),t.moveSelection(1))},function(s){return!s.type.indexOf("key")&&t._k(s.keyCode,"enter",13,s.key,"Enter")?null:(s.preventDefault(),t.confirmSelection.apply(null,arguments))}]},model:{value:t.keyword,callback:function(s){t.keyword=s},expression:"keyword"}})],1),e("div",{ref:"listWrap",staticClass:"list-wrap",on:{scroll:t.onScroll}},[t._l(t.items,function(s,i){return e("div",{key:s.id,class:["item",{selected:i===t.selectedIndex}],on:{click:function(r){return t.pick(s)},mouseenter:function(r){t.selectedIndex=i}}},[e("div",{staticClass:"item-name"},[t._v(t._s(s.name))]),e("div",{staticClass:"item-meta"},[e("span",{staticClass:"origin"},[t._v(t._s(t.$L("\u6765\u81EA(*)",s.project_name||"")))]),s.user_name?e("span",{staticClass:"creator"},[t._v("\xB7 @"+t._s(s.user_name))]):t._e()])])}),t.loading?e("div",{staticClass:"loading"},[e("Loading"),t._v(" "+t._s(t.$L("\u52A0\u8F7D\u4E2D"))+" ")],1):t._e(),!t.loading&&t.items.length===0?e("div",{staticClass:"empty"},[t._v(t._s(t.$L("\u6682\u65E0\u53EF\u7528\u6A21\u677F")))]):t._e()],2)])},Xt=[];const Zt={name:"TaskTemplateBrowser",props:{value:{type:Boolean,default:!1},currentProjectId:{type:Number,default:0}},data(){return{keyword:"",page:1,pageSize:20,total:0,items:[],loading:!1,selectedIndex:0,keywordTimer:null,fetchSeq:0}},beforeDestroy(){clearTimeout(this.keywordTimer)},computed:{show:{get(){return this.value},set(t){this.$emit("input",t)}}},watch:{show(t){t&&(this.keyword="",this.page=1,this.items=[],this.selectedIndex=0,this.fetch(),this.$nextTick(()=>{this.$refs.search&&this.$refs.search.focus&&this.$refs.search.focus()}))}},methods:{onKeywordChange(){clearTimeout(this.keywordTimer),this.keywordTimer=setTimeout(()=>{this.page=1,this.items=[],this.selectedIndex=0,this.fetch()},200)},onScroll(){const t=this.$refs.listWrap;!t||this.loading||t.scrollTop+t.clientHeight>=t.scrollHeight-40&&this.items.length0||t.hasMoreTemplates?e("ul",{staticClass:"task-add-template"},[t._l(t.taskTemplateList,function(s){return e("li",{key:s.id,class:{active:t.templateActiveID===s.id,cross:s.project_id!=t.addData.project_id},attrs:{title:s.project_id!=t.addData.project_id?t.$L("\u6765\u81EA(*)",s.project_name||""):""},on:{click:function(i){return t.setTaskTemplate(s)}}},[t._v(" "+t._s(s.name)+" ")])}),t.hasMoreTemplates?e("li",{on:{click:t.openTemplateBrowser}},[t._v(" "+t._s(t.$L("\u66F4\u591A"))+"... ")]):t._e()],2):t._e(),e("div",{staticClass:"task-add-form"},[e("div",{staticClass:"title"},[e("Input",{ref:"input",attrs:{type:"textarea",rows:1,autosize:{minRows:1,maxRows:8},maxlength:255,placeholder:t.$L("\u4EFB\u52A1\u63CF\u8FF0"),enterkeyhint:"done"},on:{"on-keydown":t.onKeydown},model:{value:t.addData.name,callback:function(s){t.$set(t.addData,"name",s)},expression:"addData.name"}}),t.aiVisible?e("div",{staticClass:"ai-btn",on:{click:t.onAI}},[e("i",{staticClass:"taskfont"},[t._v("\uE8A1")])]):t._e()],1),e("TEditorTask",{ref:"editorTaskRef",staticClass:"desc",attrs:{placeholder:t.$L(t.windowLandscape?"\u8BE6\u7EC6\u63CF\u8FF0\uFF0C\u9009\u586B...\uFF08\u70B9\u51FB\u53F3\u952E\u4F7F\u7528\u5DE5\u5177\u680F\uFF09":"\u8BE6\u7EC6\u63CF\u8FF0\uFF0C\u9009\u586B..."),placeholderFull:t.$L("\u8BE6\u7EC6\u63CF\u8FF0...")},model:{value:t.addData.content,callback:function(s){t.$set(t.addData,"content",s)},expression:"addData.content"}}),e("div",{staticClass:"advanced-option",class:{"advanced-open":t.advanced}},[e("Button",{on:{click:function(s){t.advanced=!t.advanced}}},[t._v(t._s(t.$L("\u9AD8\u7EA7\u9009\u9879")))]),e("ul",{staticClass:"advanced-priority"},t._l(t.taskPriority,function(s,i){return e("li",{key:i},[e("ETooltip",{attrs:{disabled:t.$isEEUIApp||t.windowTouch,content:t.taskPriorityContent(s)}},[e("i",{staticClass:"taskfont",style:{color:s.color},domProps:{innerHTML:t._s(t.addData.p_name==s.name?"":"")},on:{click:function(r){return t.choosePriority(s)}}})])],1)}),0),t.taskDays>0||t.taskTimeOpen?e("DatePicker",{attrs:{open:t.taskTimeOpen,options:t.timeOptions,placeholder:t.$L("\u9009\u62E9\u8BA1\u5212\u8303\u56F4"),format:"yyyy/MM/dd HH:mm",type:"datetimerange",placement:"bottom"},on:{"on-change":function(s){return t.taskTimeChange(t.addData)},"on-open-change":t.taskTimeOpenChange},model:{value:t.addData.times,callback:function(s){t.$set(t.addData,"times",s)},expression:"addData.times"}},[e("div",{staticClass:"advanced-time",on:{click:function(s){return t.taskTimeOpenChange(!t.taskTimeOpen)}}},[e("Icon",{attrs:{type:"ios-clock-outline"}}),e("em",{style:t.addData.p_color?{backgroundColor:t.addData.p_color}:{},attrs:{type:"primary"}},[t._v(t._s(t.taskDays))])],1)]):t._e()],1)],1),t.advanced?e("Form",t._b({staticClass:"task-add-advanced",nativeOn:{submit:function(s){s.preventDefault()}}},"Form",t.formOptions,!1),[e("FormItem",{attrs:{label:t.$L("\u8BA1\u5212\u65F6\u95F4")}},[e("DatePicker",{attrs:{options:t.timeOptions,editable:!1,placeholder:t.$L("\u9009\u62E9\u8BA1\u5212\u8303\u56F4"),format:"yyyy/MM/dd HH:mm",type:"datetimerange"},on:{"on-change":function(s){return t.taskTimeChange(t.addData)}},model:{value:t.addData.times,callback:function(s){t.$set(t.addData,"times",s)},expression:"addData.times"}})],1),e("FormItem",{attrs:{label:t.$L("\u8D1F\u8D23\u4EBA")}},[e("UserSelect",{attrs:{"contextmenu-remove":"","multiple-max":10,title:t.$L("\u9009\u62E9\u4EFB\u52A1\u8D1F\u8D23\u4EBA"),"project-id":t.addData.project_id,"avatar-size":24,border:""},model:{value:t.addData.owner,callback:function(s){t.$set(t.addData,"owner",s)},expression:"addData.owner"}})],1),e("FormItem",{attrs:{label:t.$L("\u534F\u52A9\u4EBA\u5458")}},[e("UserSelect",{attrs:{"contextmenu-remove":"","multiple-max":10,title:t.$L("\u9009\u62E9\u4EFB\u52A1\u534F\u52A9\u4EBA\u5458"),"project-id":t.addData.project_id,"disabled-choice":t.addData.owner,"avatar-size":24,border:""},model:{value:t.addData.assist,callback:function(s){t.$set(t.addData,"assist",s)},expression:"addData.assist"}})],1),e("FormItem",[e("div",{staticClass:"visibility-text",attrs:{slot:"label"},on:{click:t.showCisibleDropdown},slot:"label"},[t._v(" "+t._s(t.$L("\u53EF\u89C1\u6027"))+" "),e("i",{staticClass:"taskfont"},[t._v("\uE740")])]),t.addData.visibility_appoint==1||t.addData.visibility_appoint==2?e("div",{ref:"visibilityText",staticClass:"ivu-input task-add-visibility",on:{click:t.showCisibleDropdown}},[t._v(" "+t._s(t.addData.visibility_appoint==1?t.$L("\u9879\u76EE\u4EBA\u5458\u53EF\u89C1"):t.$L("\u4EFB\u52A1\u4EBA\u5458\u53EF\u89C1"))+" ")]):e("UserSelect",{ref:"visibleUserSelectRef",attrs:{"avatar-size":24,title:t.$L("\u9009\u62E9\u6307\u5B9A\u4EBA\u5458"),"project-id":t.addData.project_id,border:""},on:{"on-show-change":t.visibleUserSelectShowChange},model:{value:t.addData.visibility_appointor,callback:function(s){t.$set(t.addData,"visibility_appointor",s)},expression:"addData.visibility_appointor"}})],1),e("div",{staticClass:"subtasks"},[t.addData.subtasks.length>0?e("div",{staticClass:"sublist"},[e("Row",[e("Col",{attrs:{span:"12"}},[t._v(t._s(t.$L("\u4EFB\u52A1\u63CF\u8FF0")))]),e("Col",{attrs:{span:"8"}},[t._v(t._s(t.$L("\u8BA1\u5212\u65F6\u95F4")))]),e("Col",{attrs:{span:"4"}},[t._v(t._s(t.$L("\u8D1F\u8D23\u4EBA")))])],1),t._l(t.addData.subtasks,function(s,i){return e("Row",{key:i},[e("Col",{attrs:{span:"12"}},[e("Input",{attrs:{maxlength:255,clearable:""},on:{"on-clear":function(r){return t.addData.subtasks.splice(i,1)}},model:{value:s.name,callback:function(r){t.$set(s,"name",r)},expression:"item.name"}})],1),e("Col",{attrs:{span:"8",title:t.timeTitle(s.times)}},[e("DatePicker",{attrs:{options:t.timeOptions,editable:!1,placeholder:t.$L("\u9009\u62E9\u65F6\u95F4"),format:"yyyy/MM/dd HH:mm",type:"datetimerange"},on:{"on-change":function(r){return t.taskTimeChange(s)}},model:{value:s.times,callback:function(r){t.$set(s,"times",r)},expression:"item.times"}})],1),e("Col",{attrs:{span:"4"}},[e("UserSelect",{attrs:{"contextmenu-remove":"","multiple-max":1,title:t.$L("\u9009\u62E9\u8D1F\u8D23\u4EBA"),"project-id":t.addData.project_id,"avatar-size":24,border:""},model:{value:s.owner,callback:function(r){t.$set(s,"owner",r)},expression:"item.owner"}})],1)],1)})],2):t._e(),e("Input",{class:["enter-input",t.subName==""?"empty":""],attrs:{type:"text",placeholder:t.$L("+ \u8F93\u5165\u5B50\u4EFB\u52A1\uFF0C\u56DE\u8F66\u6DFB\u52A0\u5B50\u4EFB\u52A1")},on:{"on-keydown":t.onSubNameKeydown},model:{value:t.subName,callback:function(s){t.subName=s},expression:"subName"}})],1)],1):t._e(),e("div",{staticClass:"ivu-modal-footer"},[e("div",{staticClass:"adaption"},[e("Button",{attrs:{type:"default"},on:{click:t.close}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("ButtonGroup",{staticClass:"page-manage-add-task-button-group"},[e("Button",{attrs:{type:"primary",loading:t.loadIng>0},on:{click:function(s){return t.onAdd(!1)}}},[t._v(t._s(t.$L("\u6DFB\u52A0\u4EFB\u52A1")))]),e("Dropdown",{attrs:{transfer:""},on:{"on-click":function(s){return t.onAdd(!0)}}},[e("Button",{attrs:{type:"primary"}},[e("Icon",{attrs:{type:"ios-arrow-down"}})],1),e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[e("DropdownItem",{attrs:{disabled:t.loadIng>0}},[t._v(t._s(t.$L("\u63D0\u4EA4\u7EE7\u7EED\u6DFB\u52A0")))])],1)],1)],1)],1)]),e("TaskExistTips",{ref:"taskExistTipsRef",on:{onContinue:function(s){return t.onAdd(t.addContinue,!0)}}}),t.taskTemplateShareEnabled?e("TaskTemplateBrowser",{attrs:{"current-project-id":t.addData.project_id},on:{pick:t.onPickFromBrowser},model:{value:t.templateBrowserVisible,callback:function(s){t.templateBrowserVisible=s},expression:"templateBrowserVisible"}}):t._e()],1)},ie=[];const re={name:"TaskAdd",components:{TEditorTask:it,UserSelect:k,TaskExistTips:rt,TaskTemplateBrowser:ae},props:{value:{type:Boolean,default:!1}},data(){return{addData:{cascader:[],name:"",content:"",owner:[],assist:[],project_id:0,column_id:0,times:[],subtasks:[],p_level:0,p_name:"",p_color:"",visibility_appoint:1,visibility_appointor:[]},addDefault:{},cascaderShow:!1,cascaderData:[],cascaderValue:"",cascaderLoading:0,cascaderAlready:[],advanced:!1,subName:"",taskTimeOpen:!1,timeOptions:{shortcuts:$A.timeOptionShortcuts()},loadIng:0,isMounted:!1,beforeClose:[],addContinue:!1,templateActiveID:0,templateCompareData:{name:"",content:""},templateBrowserVisible:!1}},created(){this.addDefault=$A.cloneJSON(this.addData)},async mounted(){this.initCascaderData(),await this.initProjectData(),this.$nextTick(()=>{this.$refs.input.focus(),this.templateCompareData={name:this.addData.name,content:this.addData.content}}),this.isMounted=!0},beforeDestroy(){this.beforeClose.some(t=>{typeof t=="function"&&t()}),this.beforeClose=[]},computed:{...v(["aiVisible"]),...u(["cacheProjects","projectId","cacheColumns","taskPriority","taskTemplates","formOptions"]),taskTemplateShareEnabled(){const t=(this.cacheProjects||[]).find(({id:a})=>a==this.addData.project_id);return!t||t.task_template_share!=="close"},taskDays(){const{times:t}=this.addData,a=$A.newDateString(t,"YYYY-MM-DD HH:mm");if(a[0]&&a[1]){const e=Math.ceil($A.dayjs(a[1]).diff(a[0],"day",!0));if(e>0)return e}return 0},taskTemplateList(){const t=this.taskTemplates||[],a=this.addData.project_id,e=t.filter(i=>i.project_id==a);return this.taskTemplateShareEnabled?e.length>0?[...e].sort((i,r)=>(i.sort||0)-(r.sort||0)||i.id-r.id):[...t.filter(i=>i.project_id!=a)].sort((i,r)=>(r.use_count||0)-(i.use_count||0)).slice(0,3):[...e].sort((i,r)=>(i.sort||0)-(r.sort||0)||i.id-r.id)},hasMoreTemplates(){if(!this.taskTemplateShareEnabled)return!1;const t=this.taskTemplates||[],a=this.addData.project_id,e=t.filter(i=>i.project_id==a).length,s=t.filter(i=>i.project_id!=a).length;return e>0?s>0:s>3}},watch:{"addData.owner"(t,a){JSON.stringify(t)!==JSON.stringify(a)&&(this.addData.assist=this.addData.assist.filter(e=>t.indexOf(e)===-1),this.addData.assist.length===0&&t.indexOf(this.userId)===-1&&(this.addData.assist=[this.userId]))},"addData.project_id"(t){t>0&&($A.IDBSave("cacheAddTaskProjectId",t),this.$store.dispatch("updateTaskTemplates",t).then(this.setTaskDefaultTemplate))},"addData.column_id"(t){t>0&&$A.IDBSave("cacheAddTaskColumnId",t);const{project_id:a}=this.addData;a&&t?this.$set(this.addData,"cascader",[a,t]):this.$set(this.addData,"cascader",[])}},methods:{initCascaderData(){const t=$A.cloneJSON(this.cacheProjects).sort((a,e)=>a.top_at||e.top_at?$A.sortDay(e.top_at,a.top_at):e.id-a.id);this.cascaderData=t.map(a=>{const e=this.cacheColumns.filter(({project_id:i})=>i==a.id).map(i=>({value:i.id,label:i.name})),s={value:a.id,label:a.name,children:e};return e.length==0&&(s.loading=!1),s})},async initProjectData(){let t=await $A.IDBInt("cacheAddTaskProjectId"),a=this.cacheProjects.find(({id:e})=>e==this.projectId)||this.cacheProjects.find(({id:e})=>e==t)||this.cacheProjects.find(({id:e})=>e>0);if(a){let e=await $A.IDBInt("cacheAddTaskColumnId"),s=this.cacheColumns.find(({project_id:i,id:r})=>i==a.id&&r==e)||this.cacheColumns.find(({project_id:i})=>i==a.id);s?(this.addData.project_id=s.project_id,this.addData.column_id=s.id):this.$store.dispatch("getColumns",a.id).then(()=>{s=this.cacheColumns.find(({project_id:i,id:r})=>i==a.id&&r==e)||this.cacheColumns.find(({project_id:i})=>i==a.id),s&&(this.addData.project_id=s.project_id,this.addData.column_id=s.id)}).catch(()=>{})}if(this.taskPriority.length>0){const e=this.taskPriority.find(s=>s.is_default===1)||this.taskPriority[0];await this.choosePriority(e)}},async taskTimeChange(t){const a=$A.newDateString(t.times,"YYYY-MM-DD HH:mm");this.$set(t,"times",await this.$store.dispatch("taskDefaultTime",a))},taskTimeOpenChange(t){this.taskTimeOpen=t},timeTitle(t){return t?$A.newDateString(t):null},onKeydown(t){if(t.keyCode===13){if(t.shiftKey)return;t.preventDefault(),this.onAdd()}},onSubNameKeydown(t){t.isComposing||t.key==="Process"||t.keyCode===229||t.keyCode===13&&this.addSubTask()},addSubTask(){this.subName.trim()!==""&&(this.addData.subtasks.push({name:this.subName.trim(),owner:[this.userId],times:[]}),this.subName="")},taskPriorityContent(t){const a=$A.runNum(t.days);return a<=0?t.name+" ("+this.$L("\u65E0\u65F6\u95F4\u9650\u5236")+")":t.name+" ("+a+this.$L("[day_unit].\u5929")+")"},async choosePriority(t){const a=$A.daytz(),e=$A.runNum(t.days);if(e>0){const s=a.clone().add(e,"day");this.$set(this.addData,"times",await this.$store.dispatch("taskDefaultTime",$A.newDateString([a,s],"YYYY-MM-DD 00:00")))}else this.$set(this.addData,"times",[]);this.$set(this.addData,"p_level",t.priority),this.$set(this.addData,"p_name",t.name),this.$set(this.addData,"p_color",t.color)},cascaderLoadData(t,a){t.loading=!0,this.$store.dispatch("getColumns",t.value).then(e=>{t.children=e.map(s=>({value:s.id,label:s.name})),t.loading=!1,a()}).catch(()=>{t.loading=!1,a()})},cascaderChange(t){t[1]&&(this.$set(this.addData,"project_id",t[0]),this.$set(this.addData,"column_id",t[1]))},cascaderInputChange(t){this.cascaderValue=t||"",this.cascaderAlready[this.cascaderValue]!==!0&&(this.cascaderAlready[this.cascaderValue]=!0,setTimeout(()=>{this.cascaderLoading++},1e3),this.$store.dispatch("getProjects",{keys:{name:this.cascaderValue},getcolumn:"yes"}).then(()=>{this.cascaderLoading--,this.initCascaderData()}).catch(()=>{this.cascaderLoading--}))},setData(t){if(!this.isMounted){this.__setData&&clearTimeout(this.__setData),this.__setData=setTimeout(a=>this.setData(t),10);return}typeof t.beforeClose!="undefined"&&(this.beforeClose.push(t.beforeClose),delete t.beforeClose),this.addData=Object.assign({},this.addData,t)},async onAdd(t=!1,a=!1){if(!this.addData.name){$A.messageError("\u4EFB\u52A1\u63CF\u8FF0\u4E0D\u80FD\u4E3A\u7A7A");return}if(!a&&this.addData.owner.length>0){this.loadIng++,this.$refs.taskExistTipsRef.isExistTask({userids:this.addData.owner,timerange:this.addData.times},600).then(i=>{i?this.addContinue=t:this.onAdd(t,!0),this.loadIng--});return}this.loadIng++;const e=this.templateActiveID?(this.taskTemplates||[]).find(i=>i.id===this.templateActiveID):null,s=e&&(this.taskTemplateShareEnabled||e.project_id==this.addData.project_id)?this.templateActiveID:0;this.$store.dispatch("taskAdd",Object.assign({},this.addData,{template_id:s})).then(({msg:i})=>{$A.messageSuccess(i),t===!0?(this.addData=Object.assign({},this.addData,this.templateCompareData,{subtasks:[]}),this.$refs.input.focus()):(this.addData=$A.cloneJSON(this.addDefault),this.close())}).catch(({msg:i})=>{$A.modalError(i)}).finally(()=>{this.loadIng--})},close(){this.$emit("input",!this.value)},showCisibleDropdown(t){const a=[{label:"\u9879\u76EE\u4EBA\u5458",value:1},{label:"\u4EFB\u52A1\u4EBA\u5458",value:2},{label:"\u6307\u5B9A\u6210\u5458",value:3}];this.$store.commit("menu/operation",{event:t,list:a,size:"large",active:this.addData.visibility_appoint,onUpdate:e=>{this.dropVisible(e)}})},visibleUserSelectShowChange(t){if(!t&&(this.addData.visibility_appointor.length==0||!this.addData.visibility_appointor[0])){let a=this.addData.old_visibility_appoint;this.addData.visibility_appoint=a>2?1:a||1,this.addData.visibility_appoint<3}},dropVisible(t){switch(t){case 1:case 2:this.addData.visibility_appoint=t;break;case 3:this.addData.old_visibility_appoint=this.addData.visibility_appoint,this.addData.visibility_appoint=t,this.$nextTick(()=>{this.$refs.visibleUserSelectRef.onSelection()});break}},openTemplateBrowser(){!this.taskTemplateShareEnabled||(this.templateBrowserVisible=!0)},onPickFromBrowser(t){this.setTaskTemplate(t)},setTaskTemplate(t,a=!1){if(!(!this.taskTemplateShareEnabled&&t.project_id!=this.addData.project_id)){if(a){this.templateActiveID=t.id,this.addData.name=t.title,this.addData.content=w(t.content,{sanitize:!1}),this.$nextTick(()=>{this.$refs.input.focus(),this.templateCompareData={name:this.addData.name,content:this.addData.content}});return}this.addData.name!==this.templateCompareData.name&&this.addData.name!==""||this.addData.content!==this.templateCompareData.content&&this.addData.content!==""?$A.modalConfirm({content:"\u5F53\u524D\u5DF2\u6709\u4FEE\u6539\u7684\u5185\u5BB9\uFF0C\u662F\u5426\u8981\u8986\u76D6\uFF1F",onOk:()=>this.setTaskTemplate(t,!0)}):this.setTaskTemplate(t,!0)}},setTaskDefaultTemplate(){const t=(this.taskTemplates||[]).find(a=>a.is_default&&a.project_id==this.addData.project_id);t&&this.setTaskTemplate(t)},onAI(){n.emit("openAIAssistant",{sessionKey:"task-create",title:this.$L("AI \u4EFB\u52A1\u52A9\u624B"),placeholder:this.$L("\u8BF7\u7B80\u8981\u63CF\u8FF0\u4EFB\u52A1\u76EE\u6807\u3001\u80CC\u666F\u6216\u9884\u671F\u4EA4\u4ED8\uFF0CAI \u5C06\u751F\u6210\u6807\u9898\u3001\u8BE6\u7EC6\u8BF4\u660E\u548C\u5B50\u4EFB\u52A1"),onBeforeSend:this.handleTaskAIBeforeSend,onRender:this.handleTaskAIRender,onApply:this.handleTaskAIApply})},buildTaskAIContextData(){const t=[],a=(this.addData.name||"").trim(),e=C(this.addData.content,2e3,!0);(a||e)&&(t.push("## \u5F53\u524D\u4EFB\u52A1\u4FE1\u606F"),a&&t.push(`\u5F53\u524D\u6807\u9898\uFF1A${a}`),e&&t.push(`\u5F53\u524D\u5185\u5BB9\uFF1A${e}`),t.push("\u8BF7\u5728\u6B64\u57FA\u7840\u4E0A\u4F18\u5316\u6539\u8FDB\uFF0C\u800C\u4E0D\u662F\u5B8C\u5168\u91CD\u5199\u3002"));const s=this.templateActiveID?(this.taskTemplates||[]).find(l=>l.id===this.templateActiveID):null;if(s){const l=(s.name||s.title||"").trim(),g=C(w(s.content,{sanitize:!1}),1200,!0);t.push("## \u4EFB\u52A1\u6A21\u677F\u8981\u6C42"),l&&t.push(`\u6A21\u677F\u540D\u79F0\uFF1A${l}`),g&&t.push(`\u6A21\u677F\u5185\u5BB9\u7ED3\u6784\uFF1A${g}`),t.push("\u8BF7\u4E25\u683C\u6309\u7167\u6B64\u6A21\u677F\u7684\u7ED3\u6784\u548C\u683C\u5F0F\u8981\u6C42\u751F\u6210\u5185\u5BB9\u3002")}const i=[];Array.isArray(this.addData.owner)&&this.addData.owner.length>0&&i.push("\u5DF2\u8BBE\u7F6E\u8D1F\u8D23\u4EBA"),Array.isArray(this.addData.times)&&this.addData.times.length>0&&i.push("\u5DF2\u8BBE\u7F6E\u8BA1\u5212\u65F6\u95F4");const r=(this.addData.p_name||"").trim();r&&i.push(`\u4F18\u5148\u7EA7\uFF1A${r}`),i.length>0&&(t.push("## \u4EFB\u52A1\u72B6\u6001"),t.push(i.join("\uFF0C")),t.push("\u8BF7\u5728\u4EFB\u52A1\u63CF\u8FF0\u4E2D\u4F53\u73B0\u76F8\u5E94\u7684\u8981\u6C42\u548C\u7EA6\u675F\u3002"));const o=this.cacheProjects.find(({id:l})=>l==this.addData.project_id),d=this.cacheColumns.find(({id:l})=>l==this.addData.column_id);(o&&o.name||d&&d.name)&&(t.push("## \u6240\u5C5E\u9879\u76EE"),o&&o.name&&t.push(`\u9879\u76EE\uFF1A${o.name}`),d&&d.name&&t.push(`\u4EFB\u52A1\u5217\u8868\uFF1A${d.name}`));const m=(this.addData.subtasks||[]).map(l=>l&&l.name?l.name.trim():"").filter(Boolean).slice(0,8);return m.length>0&&(t.push("## \u5F53\u524D\u5B50\u4EFB\u52A1"),m.forEach((l,g)=>{t.push(`${g+1}. ${l}`)})),t.join(`
+import{m,a as v}from"./vuex.cc7cb26e.js";import{S as _}from"./SearchButton.2a8dd789.js";import{n as d,l as y,Q as H,N as K,e as r,U as k,a as w,b as C,w as b,T as G,M as Y,A as U,F as J,t as V,S as q,c as Q,d as X,P as Z}from"./app.ef7047f7.js";import{C as tt,T as et}from"./CheckinExport.9685d739.js";import{p as at,o as $}from"./file.5e8166ad.js";import{D as W,R as st}from"./index.f7653997.js";import{T as it,a as ot,b as rt}from"./TaskDetail.6dbf17d2.js";import{R as nt}from"./ReportEdit.5ea53e87.js";import{R as lt}from"./ReportDetail.00959436.js";import{D as ct}from"./DialogWrapper.bc988036.js";import{M as dt}from"./index.eb447f83.js";import{I as ht}from"./ImgUpload.434d067a.js";import{n as pt}from"./notification-koro1.99b93615.js";import{D as ut}from"./vuedraggable.f464b992.js";import{D as mt}from"./DepartmentOwnerView.710b9bb7.js";import"./jquery.6e4daff9.js";import"./@babel.9410f858.js";import"./dayjs.d20a4841.js";import"./localforage.743dffdd.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./vue.adba9046.js";import"./openpgp_hi.15f91b1d.js";import"./axios.37c7f908.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./view-design-hi.24419422.js";import"./html-to-md.f297036e.js";import"./lodash.8fcd6fd4.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vue-resize-observer.5af23a43.js";import"./element-sea.f8a64907.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";import"./sortablejs.3488b922.js";import"./add.0e2a5c01.js";import"./TEditor.64c880bb.js";import"./tinymce.498510f2.js";import"./chunkedUpload.3cd238b0.js";import"./spark-md5.0443325f.js";import"./vue-virtual-scroll-list-hi.74ad83f0.js";import"./webhook.378987f3.js";import"./@micro-zoe.39406924.js";var ft=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"project-archived"},[e("div",{staticClass:"archived-title"},[t._v(" "+t._s(t.$L("\u5F52\u6863\u7684\u9879\u76EE"))+" "),e("div",{staticClass:"title-icon"},[t.loadIng>0?e("Loading"):t._e()],1)]),e("div",{staticClass:"search-container lr"},[e("ul",[e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u9879\u76EE\u540D"))+" ")]),e("div",{staticClass:"search-content"},[e("Input",{attrs:{clearable:""},model:{value:t.keys.name,callback:function(s){t.$set(t.keys,"name",s)},expression:"keys.name"}})],1)]),e("li",{staticClass:"search-button"},[e("SearchButton",{attrs:{loading:t.loadIng>0,filtering:t.keyIs,placement:"right"},on:{search:t.onSearch,refresh:t.getLists,cancelFilter:function(s){t.keyIs=!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)])},gt=[];const vt={name:"ProjectArchived",components:{SearchButton:_},data(){return{loadIng:0,keys:{},keyIs:!1,columns:[{title:"ID",key:"id",width:80,render:(t,{row:a,column:e})=>t("TableAction",{props:{column:e,align:"left"}},[t("div",a.id)])},{title:this.$L("\u9879\u76EE\u540D\u79F0"),key:"name",minWidth:200,render:(t,{row:a})=>t("AutoTip",a.name)},{title:this.$L("\u5F52\u6863\u65F6\u95F4"),key:"archived_at",width:168},{title:this.$L("\u5F52\u6863\u4EBA\u5458"),key:"archived_userid",minWidth:80,render:(t,{row:a})=>a.archived_userid?t("UserAvatar",{props:{userid:a.archived_userid,size:24,showName:!0}}):t("Tag",this.$L("\u7CFB\u7EDF\u81EA\u52A8"))},{title:this.$L("\u8D1F\u8D23\u4EBA"),minWidth:80,render:(t,{row:a})=>t("UserAvatar",{props:{showName:!0,size:22,userid:a.owner_userid}})},{title:this.$L("\u64CD\u4F5C"),align:"center",width:100,render:(t,a)=>{const e=[t("Poptip",{props:{title:this.$L("\u4F60\u786E\u5B9A\u8981\u8FD8\u539F\u5F52\u6863\u5417\uFF1F"),confirm:!0,transfer:!0,placement:"left",okText:this.$L("\u786E\u5B9A"),cancelText:this.$L("\u53D6\u6D88")},style:{fontSize:"13px",cursor:"pointer",color:"#84C56A"},on:{"on-ok":()=>{this.recovery(a.row)}}},this.$L("\u8FD8\u539F")),t("Poptip",{props:{title:this.$L("\u4F60\u786E\u5B9A\u8981\u5220\u9664\u9879\u76EE\u5417\uFF1F"),confirm:!0,transfer:!0,placement:"left",okText:this.$L("\u786E\u5B9A"),cancelText:this.$L("\u53D6\u6D88")},style:{marginLeft:"8px",fontSize:"13px",cursor:"pointer",color:"#f00"},on:{"on-ok":()=>{this.delete(a.row)}}},this.$L("\u5220\u9664"))];return t("TableAction",{props:{column:a.column}},e)}}],list:[],page:1,pageSize:20,total:0,noText:""}},mounted(){this.getLists()},watch:{keyIs(t){t||(this.keys={},this.setPage(1))}},methods:{onSearch(){this.page=1,this.getLists()},getLists(){this.loadIng++,this.keyIs=$A.objImplode(this.keys)!="",this.$store.dispatch("call",{url:"project/lists",data:{keys:this.keys,archived:"yes",page:Math.max(this.page,1),pagesize:Math.max($A.runNum(this.pageSize),10)}}).then(({data:t})=>{this.page=t.current_page,this.total=t.total,this.list=t.data,this.noText="\u6CA1\u6709\u76F8\u5173\u7684\u6570\u636E"}).catch(()=>{this.noText="\u6570\u636E\u52A0\u8F7D\u5931\u8D25"}).finally(t=>{this.loadIng--})},setPage(t){this.page=t,this.getLists()},setPageSize(t){this.page=1,this.pageSize=t,this.getLists()},recovery(t){this.list=this.list.filter(({id:a})=>a!=t.id),this.loadIng++,this.$store.dispatch("call",{url:"project/archived",data:{project_id:t.id,type:"recovery"}}).then(()=>{this.getLists(),this.$store.dispatch("getProjectOne",t.id).catch(()=>{})}).catch(({msg:a})=>{$A.modalError(a),this.getLists()}).finally(a=>{this.loadIng--})},delete(t){this.list=this.list.filter(({id:a})=>a!=t.id),this.loadIng++,this.$store.dispatch("removeProject",t.id).then(({msg:a})=>{$A.messageSuccess(a),this.getLists()}).catch(({msg:a})=>{$A.modalError(a),this.getLists()}).finally(a=>{this.loadIng--})}}},D={};var _t=d(vt,ft,gt,!1,$t,null,null,null);function $t(t){for(let a in D)this[a]=D[a]}var yt=function(){return _t.exports}(),kt=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("Modal",{attrs:{title:t.t("\u684C\u9762 MCP \u670D\u52A1\u5668","Desktop MCP Server"),"mask-closable":!1,width:"700"},model:{value:t.mcpHelperShow,callback:function(s){t.mcpHelperShow=s},expression:"mcpHelperShow"}},[e("div",{staticClass:"mcp-helper-content"},[e("Alert",{attrs:{type:"success","show-icon":""}},[t._v(" "+t._s(t.t("MCP \u670D\u52A1\u5668\u5DF2\u542F\u52A8\u6210\u529F\uFF01","MCP Server started successfully!"))+" "),e("span",{attrs:{slot:"desc"},slot:"desc"},[t._v(" "+t._s(t.t("\u670D\u52A1\u5730\u5740","Server URL"))+": "),e("code",[t._v(t._s(t.mcpServerUrl))])])]),e("div",{staticClass:"mcp-section"},[e("h3",[e("span",{staticClass:"emoji-original"},[t._v("\u{1F517}")]),t._v(" "+t._s(t.t("\u63A5\u5165\u914D\u7F6E","Configuration")))]),e("p",[t._v(t._s(t.t("\u9009\u62E9\u4F60\u7684 AI \u5DE5\u5177\uFF0C\u590D\u5236\u5BF9\u5E94\u914D\u7F6E","Choose your AI tool and copy the configuration"))+":")]),e("Tabs",{staticClass:"mcp-config-tabs",model:{value:t.configTab,callback:function(s){t.configTab=s},expression:"configTab"}},[e("TabPane",{attrs:{label:"Claude Code",name:"claude-code"}},[t.configTab==="claude-code"?[e("p",{staticClass:"mcp-config-hint"},[t._v(t._s(t.t("\u5728\u7EC8\u7AEF\u8FD0\u884C\u4EE5\u4E0B\u547D\u4EE4","Run the following command in terminal"))+":")]),e("div",{staticClass:"mcp-code-block"},[e("pre",{ref:"configClaudeCode"},[t._v("claude mcp add --transport http DooTask "+t._s(t.mcpServerUrl))]),e("Button",{staticClass:"mcp-copy-btn",attrs:{size:"small"},on:{click:function(s){return t.copyConfig("configClaudeCode")}}},[t._v(t._s(t.t("\u590D\u5236","Copy")))])],1)]:t._e()],2),e("TabPane",{attrs:{label:"Codex",name:"codex"}},[t.configTab==="codex"?[e("p",{staticClass:"mcp-config-hint"},[t._v(t._s(t.t("\u7F16\u8F91 TOML \u914D\u7F6E\u6587\u4EF6","Edit TOML config file"))+":")]),e("div",{staticClass:"mcp-code-block"},[e("pre",{ref:"configCodex"},[t._v(t._s(t.configCodex))]),e("Button",{staticClass:"mcp-copy-btn",attrs:{size:"small"},on:{click:function(s){return t.copyConfig("configCodex")}}},[t._v(t._s(t.t("\u590D\u5236","Copy")))])],1)]:t._e()],2),e("TabPane",{attrs:{label:"Cursor",name:"cursor"}},[t.configTab==="cursor"?[e("p",{staticClass:"mcp-config-hint"},[t._v(t._s(t.t("\u7F16\u8F91\u914D\u7F6E\u6587\u4EF6","Edit config file"))+": "),e("code",[t._v("~/.cursor/mcp.json")])]),e("div",{staticClass:"mcp-code-block"},[e("pre",{ref:"configCursor"},[t._v(t._s(t.configCursor))]),e("Button",{staticClass:"mcp-copy-btn",attrs:{size:"small"},on:{click:function(s){return t.copyConfig("configCursor")}}},[t._v(t._s(t.t("\u590D\u5236","Copy")))])],1)]:t._e()],2),e("TabPane",{attrs:{label:"VS Code",name:"vscode"}},[t.configTab==="vscode"?[e("p",{staticClass:"mcp-config-hint"},[t._v(t._s(t.t("\u7F16\u8F91\u914D\u7F6E\u6587\u4EF6","Edit config file"))+": "),e("code",[t._v("settings.json")])]),e("div",{staticClass:"mcp-code-block"},[e("pre",{ref:"configVSCode"},[t._v(t._s(t.configVSCode))]),e("Button",{staticClass:"mcp-copy-btn",attrs:{size:"small"},on:{click:function(s){return t.copyConfig("configVSCode")}}},[t._v(t._s(t.t("\u590D\u5236","Copy")))])],1)]:t._e()],2),e("TabPane",{attrs:{label:"Claude Desktop",name:"claude-desktop"}},[t.configTab==="claude-desktop"?[e("div",{staticClass:"mcp-config-hint"},[e("p",[t._v(t._s(t.t("\u7F16\u8F91\u914D\u7F6E\u6587\u4EF6","Edit config file"))+":")]),e("p",[e("code",{staticClass:"mcp-path"},[t._v("macOS: ~/Library/Application Support/Claude/claude_desktop_config.json")])]),e("p",[e("code",{staticClass:"mcp-path"},[t._v("Windows: %APPDATA%\\Claude\\claude_desktop_config.json")])])]),e("div",{staticClass:"mcp-code-block"},[e("pre",{ref:"configClaudeDesktop"},[t._v(t._s(t.configClaudeDesktop))]),e("Button",{staticClass:"mcp-copy-btn",attrs:{size:"small"},on:{click:function(s){return t.copyConfig("configClaudeDesktop")}}},[t._v(t._s(t.t("\u590D\u5236","Copy")))])],1)]:t._e()],2),e("TabPane",{attrs:{label:"Windsurf",name:"windsurf"}},[t.configTab==="windsurf"?[e("p",{staticClass:"mcp-config-hint"},[t._v(t._s(t.t("\u7F16\u8F91 MCP \u914D\u7F6E\u6587\u4EF6","Edit MCP config file"))+":")]),e("div",{staticClass:"mcp-code-block"},[e("pre",{ref:"configWindsurf"},[t._v(t._s(t.configWindsurf))]),e("Button",{staticClass:"mcp-copy-btn",attrs:{size:"small"},on:{click:function(s){return t.copyConfig("configWindsurf")}}},[t._v(t._s(t.t("\u590D\u5236","Copy")))])],1)]:t._e()],2),e("TabPane",{attrs:{label:"Kiro",name:"kiro"}},[t.configTab==="kiro"?[e("p",{staticClass:"mcp-config-hint"},[t._v(t._s(t.t("\u901A\u8FC7 Kiro > MCP Servers > Add \u6DFB\u52A0\uFF0C\u6216\u7F16\u8F91\u914D\u7F6E\u6587\u4EF6","Add via Kiro > MCP Servers > Add, or edit config file"))+":")]),e("div",{staticClass:"mcp-code-block"},[e("pre",{ref:"configKiro"},[t._v(t._s(t.configKiro))]),e("Button",{staticClass:"mcp-copy-btn",attrs:{size:"small"},on:{click:function(s){return t.copyConfig("configKiro")}}},[t._v(t._s(t.t("\u590D\u5236","Copy")))])],1)]:t._e()],2),e("TabPane",{attrs:{label:"Trae",name:"trae"}},[t.configTab==="trae"?[e("p",{staticClass:"mcp-config-hint"},[t._v(t._s(t.t("\u624B\u52A8\u6DFB\u52A0 JSON \u914D\u7F6E","Manually add JSON configuration"))+":")]),e("div",{staticClass:"mcp-code-block"},[e("pre",{ref:"configTrae"},[t._v(t._s(t.configTrae))]),e("Button",{staticClass:"mcp-copy-btn",attrs:{size:"small"},on:{click:function(s){return t.copyConfig("configTrae")}}},[t._v(t._s(t.t("\u590D\u5236","Copy")))])],1)]:t._e()],2),e("TabPane",{attrs:{label:"Antigravity",name:"antigravity"}},[t.configTab==="antigravity"?[e("p",{staticClass:"mcp-config-hint"},[t._v(t._s(t.t("\u7F16\u8F91 MCP \u914D\u7F6E\u6587\u4EF6","Edit MCP config file"))+":")]),e("div",{staticClass:"mcp-code-block"},[e("pre",{ref:"configAntigravity"},[t._v(t._s(t.configAntigravity))]),e("Button",{staticClass:"mcp-copy-btn",attrs:{size:"small"},on:{click:function(s){return t.copyConfig("configAntigravity")}}},[t._v(t._s(t.t("\u590D\u5236","Copy")))])],1)]:t._e()],2),e("TabPane",{attrs:{label:"Opencode",name:"opencode"}},[t.configTab==="opencode"?[e("p",{staticClass:"mcp-config-hint"},[t._v(t._s(t.t("\u7F16\u8F91\u914D\u7F6E\u6587\u4EF6\u4E2D\u7684 mcp \u5B57\u6BB5","Edit the mcp field in config file"))+":")]),e("div",{staticClass:"mcp-code-block"},[e("pre",{ref:"configOpencode"},[t._v(t._s(t.configOpencode))]),e("Button",{staticClass:"mcp-copy-btn",attrs:{size:"small"},on:{click:function(s){return t.copyConfig("configOpencode")}}},[t._v(t._s(t.t("\u590D\u5236","Copy")))])],1)]:t._e()],2),e("TabPane",{attrs:{label:t.t("\u5176\u4ED6","Other"),name:"other"}},[t.configTab==="other"?[e("p",{staticClass:"mcp-config-hint"},[t._v(t._s(t.t("\u5BF9\u4E8E\u5176\u4ED6\u652F\u6301 MCP \u7684\u5DE5\u5177\uFF0C\u53EA\u9700\u5728\u914D\u7F6E\u4E2D\u6DFB\u52A0\u4EE5\u4E0B\u670D\u52A1\u5730\u5740\u5373\u53EF","For other MCP-compatible tools, simply add the following server URL to your configuration"))+":")]),e("div",{staticClass:"mcp-code-block"},[e("pre",{ref:"configOther"},[t._v(t._s(t.mcpServerUrl))]),e("Button",{staticClass:"mcp-copy-btn",attrs:{size:"small"},on:{click:function(s){return t.copyConfig("configOther")}}},[t._v(t._s(t.t("\u590D\u5236","Copy")))])],1),e("p",{staticClass:"mcp-config-hint mcp-config-note"},[t._v(t._s(t.t("\u901A\u7528 JSON \u914D\u7F6E\u683C\u5F0F","Generic JSON configuration format"))+":")]),e("div",{staticClass:"mcp-code-block"},[e("pre",{ref:"configOtherJson"},[t._v(t._s(t.configOtherJson))]),e("Button",{staticClass:"mcp-copy-btn",attrs:{size:"small"},on:{click:function(s){return t.copyConfig("configOtherJson")}}},[t._v(t._s(t.t("\u590D\u5236","Copy")))])],1)]:t._e()],2)],1)],1),e("div",{staticClass:"mcp-section"},[e("h3",[e("span",{staticClass:"emoji-original"},[t._v("\u{1F4A1}")]),t._v(" "+t._s(t.t("\u4F7F\u7528\u793A\u4F8B","Usage Examples")))]),e("p",[t._v(t._s(t.t("\u914D\u7F6E\u751F\u6548\u540E\uFF0C\u5373\u53EF\u901A\u8FC7\u81EA\u7136\u8BED\u8A00\u4E0E AI \u5BF9\u8BDD\u64CD\u4F5C DooTask","After configuration, you can interact with DooTask through natural language"))+":")]),e("div",{staticClass:"mcp-category"},[e("h4",[t._v(t._s(t.t("\u4EFB\u52A1\u7BA1\u7406","Task Management")))]),e("ul",{staticClass:"mcp-examples"},[e("li",[t._v('"'+t._s(t.t("\u6211\u4ECA\u5929\u6709\u54EA\u4E9B\u4EFB\u52A1\uFF1F","What tasks do I have today?"))+'"')]),e("li",[t._v('"'+t._s(t.t("\u672C\u5468\u8FD8\u6709\u591A\u5C11\u672A\u5B8C\u6210\u7684\u4EFB\u52A1\uFF1F","How many uncompleted tasks do I have this week?"))+'"')]),e("li",[t._v('"'+t._s(t.t('\u5E2E\u6211\u628A\u4EFB\u52A1"\u4FEE\u590D\u767B\u5F55bug"\u6807\u8BB0\u5B8C\u6210','Mark the task "Fix login bug" as completed'))+'"')]),e("li",[t._v('"'+t._s(t.t("\u521B\u5EFA\u4E00\u4E2A\u4EFB\u52A1\uFF1A\u8BBE\u8BA1\u7528\u6237\u4E2D\u5FC3\u9875\u9762","Create a task: Design user center page"))+'"')]),e("li",[t._v('"'+t._s(t.t("\u7ED9\u4EFB\u52A1\u6DFB\u52A0\u5B50\u4EFB\u52A1\uFF1A\u7F16\u5199\u5355\u5143\u6D4B\u8BD5","Add a subtask: Write unit tests"))+'"')]),e("li",[t._v('"'+t._s(t.t("\u628A\u4EFB\u52A1\u622A\u6B62\u65F6\u95F4\u6539\u4E3A\u4E0B\u5468\u4E94","Change the task deadline to next Friday"))+'"')])])]),e("div",{staticClass:"mcp-category"},[e("h4",[t._v(t._s(t.t("\u9879\u76EE\u67E5\u8BE2","Project Query")))]),e("ul",{staticClass:"mcp-examples"},[e("li",[t._v('"'+t._s(t.t("\u6211\u53C2\u4E0E\u4E86\u54EA\u4E9B\u9879\u76EE\uFF1F","What projects am I involved in?"))+'"')]),e("li",[t._v('"'+t._s(t.t("\u7535\u5546\u9879\u76EE\u76EE\u524D\u8FDB\u5C55\u5982\u4F55\uFF1F","How is the e-commerce project progressing?"))+'"')]),e("li",[t._v('"'+t._s(t.t("\u9879\u76EE\u91CC\u8FD8\u6709\u591A\u5C11\u672A\u5B8C\u6210\u4EFB\u52A1\uFF1F","How many uncompleted tasks are in the project?"))+'"')]),e("li",[t._v('"'+t._s(t.t("\u9879\u76EE\u6210\u5458\u6709\u54EA\u4E9B\u4EBA\uFF1F","Who are the project members?"))+'"')])])]),e("div",{staticClass:"mcp-category"},[e("h4",[t._v(t._s(t.t("\u5DE5\u4F5C\u6C47\u62A5","Work Reports")))]),e("ul",{staticClass:"mcp-examples"},[e("li",[t._v('"'+t._s(t.t("\u5E2E\u6211\u751F\u6210\u4ECA\u5929\u7684\u65E5\u62A5","Generate my daily report for today"))+'"')]),e("li",[t._v('"'+t._s(t.t("\u5E2E\u6211\u5199\u672C\u5468\u5468\u62A5","Write my weekly report"))+'"')]),e("li",[t._v('"'+t._s(t.t("\u6211\u4E0A\u5468\u63D0\u4EA4\u8FC7\u5468\u62A5\u5417\uFF1F","Did I submit a weekly report last week?"))+'"')]),e("li",[t._v('"'+t._s(t.t("\u5F20\u4E09\u4E0A\u4E2A\u6708\u7684\u5468\u62A5\u60C5\u51B5\u600E\u4E48\u6837\uFF1F","How was Zhang San's weekly reports last month?"))+'"')])])]),e("div",{staticClass:"mcp-category"},[e("h4",[t._v(t._s(t.t("\u56E2\u961F\u534F\u4F5C","Team Collaboration")))]),e("ul",{staticClass:"mcp-examples"},[e("li",[t._v('"'+t._s(t.t("\u53D1\u6D88\u606F\u7ED9\u5F20\u4E09\uFF1A\u660E\u5929\u4F1A\u8BAE\u6539\u5230\u4E0B\u53483\u70B9","Send a message to Zhang San: Tomorrow's meeting is rescheduled to 3 PM"))+'"')]),e("li",[t._v('"'+t._s(t.t('\u641C\u7D22\u5173\u4E8E"\u63A5\u53E3\u8BBE\u8BA1"\u7684\u804A\u5929\u8BB0\u5F55','Search chat history about "API design"'))+'"')]),e("li",[t._v('"'+t._s(t.t("\u5E2E\u6211\u627E\u4E00\u4E0B\u674E\u56DB\u7684\u8054\u7CFB\u65B9\u5F0F","Help me find Li Si's contact info"))+'"')])])]),e("div",{staticClass:"mcp-category"},[e("h4",[t._v(t._s(t.t("\u6587\u4EF6\u67E5\u627E","File Search")))]),e("ul",{staticClass:"mcp-examples"},[e("li",[t._v('"'+t._s(t.t("\u5E2E\u6211\u627E\u4E00\u4E0B\u9700\u6C42\u6587\u6863","Help me find the requirements document"))+'"')]),e("li",[t._v('"'+t._s(t.t("\u6211\u7684\u6587\u4EF6\u5217\u8868\u6709\u54EA\u4E9B\uFF1F","What files do I have?"))+'"')]),e("li",[t._v('"'+t._s(t.t("\u8FD9\u4E2A\u4EFB\u52A1\u6709\u54EA\u4E9B\u9644\u4EF6\uFF1F","What attachments does this task have?"))+'"')])])])])],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:t.onCloseMcp}},[t._v(t._s(t.t("\u5173\u95ED MCP \u670D\u52A1\u5668","Stop MCP Server")))]),e("Button",{attrs:{type:"primary"},on:{click:function(s){t.mcpHelperShow=!1}}},[t._v(t._s(t.t("\u6211\u77E5\u9053\u4E86","Got it")))])],1)])},bt=[];const wt={name:"MCPHelper",props:{value:{type:Boolean,default:!1}},data(){return{configTab:"claude-code",mcpServerUrl:"http://localhost:22224/mcp"}},computed:{...m(["mcpServerStatus"]),mcpHelperShow:{get(){return this.value},set(t){this.$emit("input",t)}},configCursor(){return JSON.stringify({mcpServers:{DooTask:{url:this.mcpServerUrl}}},null,2)},configVSCode(){return JSON.stringify({mcp:{servers:{DooTask:{type:"http",url:this.mcpServerUrl}}}},null,2)},configWindsurf(){return JSON.stringify({mcpServers:{DooTask:{serverUrl:this.mcpServerUrl}}},null,2)},configClaudeDesktop(){return JSON.stringify({mcpServers:{DooTask:{type:"streamable-http",url:this.mcpServerUrl}}},null,2)},configCodex(){return`[mcp_servers.DooTask]
+url = "${this.mcpServerUrl}"`},configKiro(){return JSON.stringify({mcpServers:{DooTask:{type:"streamable-http",url:this.mcpServerUrl}}},null,2)},configTrae(){return JSON.stringify({mcpServers:{DooTask:{url:this.mcpServerUrl}}},null,2)},configAntigravity(){return JSON.stringify({mcpServers:{DooTask:{serverUrl:this.mcpServerUrl}}},null,2)},configOpencode(){return JSON.stringify({mcp:{DooTask:{type:"remote",url:this.mcpServerUrl,enabled:!0}}},null,2)},configOtherJson(){return JSON.stringify({mcpServers:{DooTask:{url:this.mcpServerUrl}}},null,2)}},methods:{t(t,a){return y.includes("zh")?t:a},copyConfig(t){const a=this.$refs[t];a&&this.copyText(a.textContent)},onCloseMcp(){this.mcpServerStatus.running==="running"&&this.$store.dispatch("toggleMcpServer"),this.mcpHelperShow=!1}}},T={};var Ct=d(wt,kt,bt,!1,Dt,"b5b22b78",null,null);function Dt(t){for(let a in T)this[a]=T[a]}var Tt=function(){return Ct.exports}(),St=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"favorite-management"},[e("div",{staticClass:"management-title"},[t._v(" "+t._s(t.$L("\u6211\u7684\u6536\u85CF"))+" "),e("div",{staticClass:"title-icon"},[t.loadIng>0?e("Loading"):t._e()],1)]),e("div",{staticClass:"search-container lr"},[e("ul",[e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u6536\u85CF\u7C7B\u578B"))+" ")]),e("div",{staticClass:"search-content"},[e("Select",{attrs:{placeholder:t.$L("\u5168\u90E8\u7C7B\u578B")},model:{value:t.keys.type,callback:function(s){t.$set(t.keys,"type",s)},expression:"keys.type"}},[e("Option",{attrs:{value:""}},[t._v(t._s(t.$L("\u5168\u90E8\u7C7B\u578B")))]),e("Option",{attrs:{value:"task"}},[t._v(t._s(t.$L("\u4EFB\u52A1")))]),e("Option",{attrs:{value:"project"}},[t._v(t._s(t.$L("\u9879\u76EE")))]),e("Option",{attrs:{value:"file"}},[t._v(t._s(t.$L("\u6587\u4EF6")))]),e("Option",{attrs:{value:"message"}},[t._v(t._s(t.$L("\u6D88\u606F")))])],1)],1)]),e("li",{staticClass:"search-button"},[e("SearchButton",{attrs:{loading:t.loadIng>0,filtering:t.keyIs,placement:"right"},on:{search:t.onSearch,refresh:t.getLists,cancelFilter:function(s){t.keyIs=!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)])},Lt=[];const At={name:"FavoriteManagement",components:{SearchButton:_,QuickEdit:H},data(){return{loadIng:0,keys:{},keyIs:!1,columns:[{title:this.$L("\u7C7B\u578B"),key:"type",width:80,render:(t,{row:a})=>{const e={task:this.$L("\u4EFB\u52A1"),project:this.$L("\u9879\u76EE"),file:this.$L("\u6587\u4EF6"),message:this.$L("\u6D88\u606F")};return t("Tag",{class:"favorite-type-tag",props:{color:{task:"success",project:"#f87cbd",file:"warning",message:"primary"}[a.type]||"primary"}},e[a.type]||a.type)}},{title:this.$L("\u540D\u79F0"),key:"name",minWidth:150,render:(t,{row:a})=>t("div",{class:"favorite-name",on:{click:()=>this.openFavorite(a)}},[t("AutoTip",a.name)])},{title:this.$L("\u5907\u6CE8"),key:"remark",minWidth:160,render:(t,{row:a})=>t("QuickEdit",{props:{value:a.remark||"",attrTitle:a.remark||"",alwaysIcon:!0},on:{"on-update":(e,s)=>{const i=(e||"").trim();if(!i){$A.messageWarning(this.$L("\u8BF7\u8F93\u5165\u4FEE\u6539\u5907\u6CE8")),s();return}this.$store.dispatch("call",{url:"users/favorite/remark",data:{type:a.type,id:a.id,remark:i},method:"post"}).then(({data:o,msg:n})=>{const c=o&&typeof o.remark!="undefined"?o.remark:i;a.remark=c;const h=this.allData.find(l=>l.id===a.id&&l.type===a.type);h&&(h.remark=c),$A.messageSuccess(n||this.$L("\u64CD\u4F5C\u6210\u529F")),s()}).catch(({msg:o})=>{$A.modalError(o||this.$L("\u64CD\u4F5C\u5931\u8D25")),s()})}}},[t("AutoTip",a.remark||"-")])},{title:this.$L("\u6240\u5C5E\u9879\u76EE"),key:"project_name",minWidth:120,render:(t,{row:a})=>a.project_name?t("AutoTip",a.project_name):t("span","-")},{title:this.$L("\u72B6\u6001"),minWidth:80,render:(t,{row:a})=>a.type==="task"?a.flow_item_name?t("span",{class:`flow-name ${a.flow_item_status}`,style:this.$A.generateColorVarStyle(a.flow_item_color,[10],"flow-item-custom-color")},a.flow_item_name):a.complete_at?t("span",{class:"favorite-status-tag favorite-status-success"},this.$L("\u5DF2\u5B8C\u6210")):t("span",{class:"favorite-status-tag favorite-status-processing"},this.$L("\u8FDB\u884C\u4E2D")):a.type==="project"?a.archived_at?t("span",{class:"favorite-status-tag favorite-status-error"},this.$L("\u5DF2\u5F52\u6863")):t("span",{class:"favorite-status-tag favorite-status-success"},this.$L("\u6B63\u5E38")):t("span","-")},{title:this.$L("\u6536\u85CF\u65F6\u95F4"),key:"favorited_at",width:168},{title:this.$L("\u64CD\u4F5C"),align:"center",width:100,render:(t,a)=>{const e=[t("Poptip",{props:{title:this.$L('\u786E\u5B9A\u8981\u53D6\u6D88\u6536\u85CF"(*)"\u5417\uFF1F',a.row.name),confirm:!0,transfer:!0,placement:"left",okText:this.$L("\u786E\u5B9A"),cancelText:this.$L("\u53D6\u6D88")},style:{fontSize:"13px",cursor:"pointer",color:"#f00"},on:{"on-ok":()=>{this.removeFavorite(a.row)}}},this.$L("\u53D6\u6D88\u6536\u85CF"))];return t("TableAction",{props:{column:a.column}},e)}}],list:[],allData:[],page:1,pageSize:20,total:0,noText:""}},mounted(){this.getLists()},watch:{keyIs(t){t||(this.keys={},this.setPage(1))}},methods:{onSearch(){this.page=1,this.getLists()},getLists(){this.loadIng++,this.keyIs=$A.objImplode(this.keys)!="",this.$store.dispatch("call",{url:"users/favorites",data:{type:this.keys.type||"",page:this.page,pagesize:this.pageSize}}).then(({data:t})=>{this.allData=[],t.data.tasks&&t.data.tasks.forEach(a=>{this.allData.push({id:a.id,type:"task",name:a.name,project_id:a.project_id,project_name:a.project_name,complete_at:a.complete_at,flow_item_id:a.flow_item_id,flow_item_name:a.flow_item_name,flow_item_status:a.flow_item_status,flow_item_color:a.flow_item_color,favorited_at:a.favorited_at,remark:a.remark||""})}),t.data.projects&&t.data.projects.forEach(a=>{this.allData.push({id:a.id,type:"project",name:a.name,desc:a.desc,archived_at:a.archived_at,favorited_at:a.favorited_at,remark:a.remark||""})}),t.data.files&&t.data.files.forEach(a=>{this.allData.push({id:a.id,type:"file",name:a.name,ext:a.ext,size:a.size,pid:a.pid,image_url:a.image_url,image_width:a.image_width,image_height:a.image_height,favorited_at:a.favorited_at,remark:a.remark||""})}),t.data.messages&&t.data.messages.forEach(a=>{this.allData.push({id:a.id,type:"message",name:a.name,dialog_id:a.dialog_id,userid:a.userid,msg_type:a.type,favorited_at:a.favorited_at,remark:a.remark||""})}),this.total=t.total||this.allData.length,this.list=this.allData.slice(),this.noText="\u6CA1\u6709\u76F8\u5173\u7684\u6536\u85CF"}).catch(()=>{this.noText="\u6570\u636E\u52A0\u8F7D\u5931\u8D25"}).finally(t=>{this.loadIng--})},setPage(t){this.page=t,this.getLists()},setPageSize(t){this.page=1,this.pageSize=t,this.getLists()},openFavorite(t){switch(t.type){case"task":this.$store.dispatch("openTask",{id:t.id});break;case"project":this.$router.push({name:"manage-project",params:{projectId:t.id}}),this.$emit("on-close");break;case"file":if(at(this,this.allData,t))break;$(this,t);break;case"message":this.$store.dispatch("openDialog",t.dialog_id).then(()=>{this.$store.state.dialogSearchMsgId=t.id,this.$route.name==="manage-messenger"&&this.$emit("on-close")}).catch(({msg:a})=>{$A.modalError(a||this.$L("\u6253\u5F00\u4F1A\u8BDD\u5931\u8D25"))});break}},removeFavorite(t){this.$store.dispatch("toggleFavorite",{type:t.type,id:t.id}).then(()=>{this.getLists()})}}},S={};var It=d(At,St,Lt,!1,xt,null,null,null);function xt(t){for(let a in S)this[a]=S[a]}var jt=function(){return It.exports}(),Pt=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"recent-management"},[e("div",{staticClass:"management-title"},[t._v(" "+t._s(t.$L("\u6700\u8FD1\u6253\u5F00"))+" "),e("div",{staticClass:"title-icon"},[t.loading>0?e("Loading"):t._e()],1)]),e("div",{staticClass:"search-container lr"},[e("ul",[e("li",[e("div",{staticClass:"search-label"},[t._v(t._s(t.$L("\u7C7B\u578B")))]),e("div",{staticClass:"search-content"},[e("Select",{attrs:{clearable:"",placeholder:t.$L("\u5168\u90E8\u7C7B\u578B")},on:{"on-change":t.handleTypeChange},model:{value:t.filters.type,callback:function(s){t.$set(t.filters,"type",s)},expression:"filters.type"}},t._l(t.typeOptions,function(s){return e("Option",{key:s.value,attrs:{value:s.value}},[t._v(t._s(t.$L(s.label)))])}),1)],1)]),e("li",{staticClass:"search-button"},[e("Button",{attrs:{type:"primary",loading:t.loading>0},on:{click:t.refreshList}},[t._v(t._s(t.$L("\u5237\u65B0")))])],1)])]),e("div",{staticClass:"table-page-box"},[e("Table",{attrs:{columns:t.columns,data:t.records,loading:t.loading>0,"no-data-text":t.$L(t.noDataText),stripe:""}}),e("Page",{attrs:{total:t.total,current:t.page,"page-size":t.pageSize,"page-size-opts":[10,20,30,50,100],simple:t.windowPortrait,disabled:t.loading>0,"show-elevator":"","show-sizer":"","show-total":""},on:{"on-change":t.setPage,"on-page-size-change":t.setPageSize}})],1)])},Mt=[];const Et={name:"RecentManagement",data(){return{loading:0,records:[],total:0,page:1,pageSize:20,filters:{type:""},noDataText:"\u6682\u65E0\u6253\u5F00\u8BB0\u5F55"}},computed:{...m(["windowPortrait"]),typeMap(){return{task:{label:"\u4EFB\u52A1",color:"success"},file:{label:"\u6587\u4EF6\u5E93",color:"warning"},task_file:{label:"\u4EFB\u52A1\u6587\u4EF6",color:"primary"},message_file:{label:"\u804A\u5929\u6587\u4EF6",color:"#f87cbd"}}},typeOptions(){return[{value:"",label:"\u5168\u90E8\u7C7B\u578B"},{value:"task",label:this.typeMap.task.label},{value:"file",label:this.typeMap.file.label},{value:"task_file",label:this.typeMap.task_file.label},{value:"message_file",label:this.typeMap.message_file.label}]},columns(){return[{title:this.$L("\u7C7B\u578B"),key:"type",width:120,render:(t,{row:a})=>{const e=this.getTypeInfo(a.type);return t("Tag",{class:"recent-type-tag",props:{color:e.color||"primary"}},this.$L(e.label||a.type))}},{title:this.$L("\u540D\u79F0"),key:"name",minWidth:200,render:(t,{row:a})=>{const e=a.name||this.$L("\u672A\u547D\u540D");return t("div",{class:"recent-name",on:{click:()=>this.openItem(a)}},[t("AutoTip",e)])}},{title:this.$L("\u6765\u6E90"),minWidth:220,render:(t,{row:a})=>t("AutoTip",this.getSourceText(a))},{title:this.$L("\u6700\u8FD1\u8BBF\u95EE\u65F6\u95F4"),key:"browsed_at",width:168},{title:this.$L("\u64CD\u4F5C"),align:"center",width:120,render:(t,a)=>{const e=[t("Poptip",{props:{title:this.$L('\u786E\u5B9A\u8981\u5220\u9664\u8BB0\u5F55"(*)"\u5417\uFF1F',a.row.name||this.$L("\u672A\u547D\u540D")),confirm:!0,transfer:!0,placement:"left",okText:this.$L("\u786E\u5B9A"),cancelText:this.$L("\u53D6\u6D88")},style:{fontSize:"13px",cursor:"pointer",color:"#f00"},on:{"on-ok":()=>this.removeItem(a.row)}},this.$L("\u5220\u9664"))];return t("TableAction",{props:{column:a.column}},e)}}]}},mounted(){this.getLists()},methods:{getTypeInfo(t){return this.typeMap[t]||{label:t,color:"default"}},getSourceText(t){switch(t.type){case"task":{const a=t.project_name?`${this.$L("\u9879\u76EE")}: ${t.project_name}`:this.$L("\u9879\u76EE"),e=this.getTaskStatus(t);return e?`${a} | ${e}`:a}case"file":return this.$L("\u6587\u4EF6\u5E93");case"task_file":{const a=[];return t.project_name&&a.push(`${this.$L("\u9879\u76EE")}: ${t.project_name}`),t.task_name&&a.push(`${this.$L("\u4EFB\u52A1")}: ${t.task_name}`),a.length>0?a.join(" | "):this.$L("\u4EFB\u52A1\u6587\u4EF6")}case"message_file":return t.dialog_name?`${this.$L("\u804A\u5929")}: ${t.dialog_name}`:this.$L("\u804A\u5929\u6587\u4EF6")}return this.$L("\u672A\u77E5")},getTaskStatus(t){return t.flow_item_name?t.flow_item_name:t.complete_at?this.$L("\u5DF2\u5B8C\u6210"):this.$L("\u8FDB\u884C\u4E2D")},getLists(t=this.page){this.loading++;const a={page:t,page_size:this.pageSize};this.filters.type&&(a.type=this.filters.type),this.$store.dispatch("getRecentBrowseHistory",a).then(({data:e})=>{$A.isJson(e)?(this.records=e.list||[],this.total=e.total||0,this.page=e.page||t,this.pageSize=e.page_size||this.pageSize):(this.records=[],this.total=0)}).catch(({msg:e})=>{e&&$A.modalError(e)}).finally(()=>{this.loading--})},refreshList(){this.getLists(1)},handleTypeChange(){this.page=1,this.getLists(1)},setPage(t){this.page=t,this.getLists(t)},setPageSize(t){this.pageSize=t,this.getLists(1)},openItem(t){switch(t.type){case"task":this.$store.dispatch("openTask",t);break;case"file":$(this,t);break;case"task_file":$(this,t,{path:`/single/file/task/${t.id}`,windowName:`file-task-${t.id}`,title:t.name});break;case"message_file":$(this,t,{path:`/single/file/msg/${t.id}`,windowName:`file-msg-${t.id}`,title:t.name});break}},removeItem(t){if(!t.record_id)return;const a=this.records.length===1&&this.page>1?this.page-1:this.page;this.loading++,this.$store.dispatch("removeRecentBrowseRecord",t.record_id).then(({msg:e})=>{$A.messageSuccess(e||this.$L("\u5220\u9664\u6210\u529F")),this.page=a,this.getLists(a)}).catch(({msg:e})=>{e&&$A.modalError(e)}).finally(()=>{this.loading--})}}},L={};var Ot=d(Et,Pt,Mt,!1,Rt,null,null,null);function Rt(t){for(let a in L)this[a]=L[a]}var Bt=function(){return Ot.exports}(),zt=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"project-management"},[e("div",{staticClass:"management-title"},[t._v(" "+t._s(t.$L("\u6240\u6709\u9879\u76EE"))+" "),e("div",{staticClass:"title-icon"},[t.loadIng>0?e("Loading"):t._e()],1)]),e("div",{staticClass:"search-container lr"},[e("ul",[e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u9879\u76EE\u540D"))+" ")]),e("div",{staticClass:"search-content"},[e("Input",{attrs:{clearable:""},model:{value:t.keys.name,callback:function(s){t.$set(t.keys,"name",s)},expression:"keys.name"}})],1)]),e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u9879\u76EE\u7C7B\u578B"))+" ")]),e("div",{staticClass:"search-content"},[e("Select",{attrs:{placeholder:t.$L("\u56E2\u961F\u9879\u76EE")},model:{value:t.keys.type,callback:function(s){t.$set(t.keys,"type",s)},expression:"keys.type"}},[e("Option",{attrs:{value:""}},[t._v(t._s(t.$L("\u56E2\u961F\u9879\u76EE")))]),e("Option",{attrs:{value:"personal"}},[t._v(t._s(t.$L("\u4E2A\u4EBA\u9879\u76EE")))]),e("Option",{attrs:{value:"all"}},[t._v(t._s(t.$L("\u5168\u90E8\u9879\u76EE")))])],1)],1)]),e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u9879\u76EE\u72B6\u6001"))+" ")]),e("div",{staticClass:"search-content"},[e("Select",{attrs:{placeholder:t.$L("\u672A\u5F52\u6863")},model:{value:t.keys.status,callback:function(s){t.$set(t.keys,"status",s)},expression:"keys.status"}},[e("Option",{attrs:{value:""}},[t._v(t._s(t.$L("\u672A\u5F52\u6863")))]),e("Option",{attrs:{value:"archived"}},[t._v(t._s(t.$L("\u5DF2\u5F52\u6863")))]),e("Option",{attrs:{value:"all"}},[t._v(t._s(t.$L("\u5168\u90E8")))])],1)],1)]),e("li",{staticClass:"search-button"},[e("SearchButton",{attrs:{loading:t.loadIng>0,filtering:t.keyIs,placement:"right"},on:{search:t.onSearch,refresh:t.getLists,cancelFilter:function(s){t.keyIs=!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)])},Nt=[];const Ft={name:"ProjectManagement",components:{SearchButton:_},data(){return{loadIng:0,keys:{},keyIs:!1,columns:[{title:"ID",key:"id",width:80,render:(t,{row:a,column:e})=>t("TableAction",{props:{column:e,align:"left"}},[t("div",a.id)])},{title:this.$L("\u9879\u76EE\u540D\u79F0"),key:"name",minWidth:100,render:(t,{row:a})=>{const e=[t("AutoTip",a.name)];return a.archived_at&&e.push(t("Tag",{props:{color:"error"}},this.$L("\u5DF2\u5F52\u6863"))),t("div",{class:"project-name"},e)}},{title:this.$L("\u9879\u76EE\u8FDB\u5EA6"),minWidth:100,render:(t,{row:a})=>{const e=[t("AutoTip",a.task_complete+"/"+a.task_num),t("Progress",{props:{percent:a.task_percent,strokeWidth:5}})];return t("div",{class:"project-percent"},e)}},{title:this.$L("\u8D1F\u8D23\u4EBA"),minWidth:80,render:(t,{row:a})=>t("UserAvatar",{props:{showName:!0,size:22,userid:a.owner_userid}})},{title:this.$L("\u521B\u5EFA\u4EBA"),minWidth:80,render:(t,{row:a})=>t("UserAvatar",{props:{showName:!0,size:22,userid:a.userid}})},{title:this.$L("\u521B\u5EFA\u65F6\u95F4"),key:"created_at",width:168}],list:[],page:1,pageSize:20,total:0,noText:""}},mounted(){this.getLists()},watch:{keyIs(t){t||(this.keys={},this.setPage(1))}},methods:{onSearch(){this.page=1,this.getLists()},getLists(){let t="team";this.keys.type=="all"?t="all":this.keys.type=="personal"&&(t="personal");let a="no";this.keys.status=="all"?a="all":this.keys.status=="archived"&&(a="yes"),this.loadIng++,this.keyIs=$A.objImplode(this.keys)!="",this.$store.dispatch("call",{url:"project/lists",data:{keys:this.keys,all:1,archived:a,type:t,page:Math.max(this.page,1),pagesize:Math.max($A.runNum(this.pageSize),10)}}).then(({data:e})=>{this.page=e.current_page,this.total=e.total,this.list=e.data,this.noText="\u6CA1\u6709\u76F8\u5173\u7684\u6570\u636E"}).catch(()=>{this.noText="\u6570\u636E\u52A0\u8F7D\u5931\u8D25"}).finally(e=>{this.loadIng--})},setPage(t){this.page=t,this.getLists()},setPageSize(t){this.page=1,this.pageSize=t,this.getLists()}}},A={};var Ut=d(Ft,zt,Nt,!1,Vt,null,null,null);function Vt(t){for(let a in A)this[a]=A[a]}var Wt=function(){return Ut.exports}(),Ht=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"mobile-tabbar"},[t.windowPortrait?e("NetworkException",{attrs:{type:"alert"}}):t._e(),e("ul",{staticClass:"tabbar-box"},t._l(t.navList,function(s,i){return e("li",{key:i,class:{active:t.activeName===s.name},on:{click:function(o){return t.toggleRoute(s.name)}}},[e("i",{staticClass:"taskfont",domProps:{innerHTML:t._s(s.icon)}}),e("div",{staticClass:"tabbar-title"},[t._v(t._s(t.$L(s.label)))]),s.name==="dashboard"?[t.dashboardTask.overdue_count>0?e("Badge",{staticClass:"tabbar-badge",attrs:{type:"error","overflow-count":999,count:t.dashboardTask.overdue_count}}):t.dashboardTask.today_count>0?e("Badge",{staticClass:"tabbar-badge",attrs:{type:"info","overflow-count":999,count:t.dashboardTask.today_count}}):t.dashboardTask.todo_count>0?e("Badge",{staticClass:"tabbar-badge",attrs:{type:"primary","overflow-count":999,count:t.dashboardTask.todo_count}}):t._e()]:s.name==="dialog"?[e("Badge",{staticClass:"tabbar-badge",attrs:{"overflow-count":999,text:t.msgUnreadMention}})]:s.name==="application"?[t.applicationBadgeCount>0?e("Badge",{staticClass:"tabbar-badge",attrs:{"overflow-count":999,count:t.applicationBadgeCount}}):t.applicationBadgeDot?e("Badge",{staticClass:"tabbar-badge",attrs:{dot:""}}):t._e()]:t._e()],2)}),0)],1)},Kt=[];const Gt={name:"MobileTabbar",components:{NetworkException:K},data(){return{navList:[{icon:"",name:"dashboard",label:"\u4EEA\u8868\u76D8"},{icon:"",name:"project",label:"\u9879\u76EE"},{icon:"",name:"dialog",label:"\u6D88\u606F"},{icon:"",name:"contacts",label:"\u901A\u8BAF\u5F55"},{icon:"",name:"application",label:"\u5E94\u7528"}]}},mounted(){r.on("dialogMsgPush",this.updateBadge)},beforeDestroy(){r.off("dialogMsgPush",this.updateBadge)},computed:{...v(["dashboardTask","visibleDialogs"]),...v("appBadges",{applicationBadgeCount:"applicationCount",applicationBadgeDot:"applicationDot"}),msgUnreadMention(){let t=0,a=0;this.visibleDialogs.some(s=>{t+=$A.getDialogUnread(s,!1),a+=$A.getDialogMention(s)}),t>999&&(t="999+"),a>999&&(a="999+");const e=this.msgTodoTotal;return e?a?`@${a}\xB7${e}`:t?`${t}\xB7${e}`:e:t?a?`${t}\xB7@${a}`:String(t):a?`@${a}`:""},msgAllUnread(){let t=0;return this.visibleDialogs.some(a=>{t+=$A.getDialogNum(a)}),t},msgTodoTotal(){let t=this.visibleDialogs.reduce((a,e)=>a+(e.todo_num||0),0);return t>0?(t>999?t="999+":t===1&&(t=""),`${this.$L("\u5F85\u529E")}${t}`):null},unreadAndOverdue(){return this.userId>0?this.msgAllUnread+this.dashboardTask.overdue_count:0},activeName(){return["manage-calendar","manage-file","manage-setting","manage-application"].includes(this.routeName)?"application":this.routeName==="manage-dashboard"?"dashboard":this.routeName==="manage-project"&&!/^\d+$/.test(this.$route.params.projectId)?"project":this.routeName==="manage-messenger"?this.$route.params.dialogAction==="contacts"?"contacts":"dialog":""}},watch:{windowActive(){this.updateBadge()}},methods:{toggleRoute(t){this.$emit("on-click",t);let a;switch(t){case"project":a={name:"manage-project",params:{projectId:"all"}};break;case"dialog":a={name:"manage-messenger",params:{dialogAction:"dialog"}},this.routeName==="manage-messenger"&&r.emit("clickAgainDialog",!0);break;case"contacts":a={name:"manage-messenger",params:{dialogAction:"contacts"}};break;default:a={name:"manage-"+t};break}this.goForward(a)},updateBadge(){this.windowActive||$A.eeuiAppSendMessage({action:"setBdageNotify",bdage:this.unreadAndOverdue})}}},I={};var Yt=d(Gt,Ht,Kt,!1,Jt,null,null,null);function Jt(t){for(let a in I)this[a]=I[a]}var qt=function(){return Yt.exports}(),Qt=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("Modal",{staticClass:"task-template-browser",attrs:{title:t.$L("\u641C\u7D22\u6A21\u677F"),"footer-hide":!0,width:640},model:{value:t.show,callback:function(s){t.show=s},expression:"show"}},[e("div",{staticClass:"search-wrap"},[e("Input",{ref:"search",attrs:{placeholder:t.$L("\u641C\u7D22\u6A21\u677F"),clearable:""},on:{"on-change":t.onKeywordChange},nativeOn:{keydown:[function(s){return!s.type.indexOf("key")&&t._k(s.keyCode,"up",38,s.key,["Up","ArrowUp"])?null:(s.preventDefault(),t.moveSelection(-1))},function(s){return!s.type.indexOf("key")&&t._k(s.keyCode,"down",40,s.key,["Down","ArrowDown"])?null:(s.preventDefault(),t.moveSelection(1))},function(s){return!s.type.indexOf("key")&&t._k(s.keyCode,"enter",13,s.key,"Enter")?null:(s.preventDefault(),t.confirmSelection.apply(null,arguments))}]},model:{value:t.keyword,callback:function(s){t.keyword=s},expression:"keyword"}})],1),e("div",{ref:"listWrap",staticClass:"list-wrap",on:{scroll:t.onScroll}},[t._l(t.items,function(s,i){return e("div",{key:s.id,class:["item",{selected:i===t.selectedIndex}],on:{click:function(o){return t.pick(s)},mouseenter:function(o){t.selectedIndex=i}}},[e("div",{staticClass:"item-name"},[t._v(t._s(s.name))]),e("div",{staticClass:"item-meta"},[e("span",{staticClass:"origin"},[t._v(t._s(t.$L("\u6765\u81EA(*)",s.project_name||"")))]),s.user_name?e("span",{staticClass:"creator"},[t._v("\xB7 @"+t._s(s.user_name))]):t._e()])])}),t.loading?e("div",{staticClass:"loading"},[e("Loading"),t._v(" "+t._s(t.$L("\u52A0\u8F7D\u4E2D"))+" ")],1):t._e(),!t.loading&&t.items.length===0?e("div",{staticClass:"empty"},[t._v(t._s(t.$L("\u6682\u65E0\u53EF\u7528\u6A21\u677F")))]):t._e()],2)])},Xt=[];const Zt={name:"TaskTemplateBrowser",props:{value:{type:Boolean,default:!1},currentProjectId:{type:Number,default:0}},data(){return{keyword:"",page:1,pageSize:20,total:0,items:[],loading:!1,selectedIndex:0,keywordTimer:null,fetchSeq:0}},beforeDestroy(){clearTimeout(this.keywordTimer)},computed:{show:{get(){return this.value},set(t){this.$emit("input",t)}}},watch:{show(t){t&&(this.keyword="",this.page=1,this.items=[],this.selectedIndex=0,this.fetch(),this.$nextTick(()=>{this.$refs.search&&this.$refs.search.focus&&this.$refs.search.focus()}))}},methods:{onKeywordChange(){clearTimeout(this.keywordTimer),this.keywordTimer=setTimeout(()=>{this.page=1,this.items=[],this.selectedIndex=0,this.fetch()},200)},onScroll(){const t=this.$refs.listWrap;!t||this.loading||t.scrollTop+t.clientHeight>=t.scrollHeight-40&&this.items.length0||t.hasMoreTemplates?e("ul",{staticClass:"task-add-template"},[t._l(t.taskTemplateList,function(s){return e("li",{key:s.id,class:{active:t.templateActiveID===s.id,cross:s.project_id!=t.addData.project_id},attrs:{title:s.project_id!=t.addData.project_id?t.$L("\u6765\u81EA(*)",s.project_name||""):""},on:{click:function(i){return t.setTaskTemplate(s)}}},[t._v(" "+t._s(s.name)+" ")])}),t.hasMoreTemplates?e("li",{on:{click:t.openTemplateBrowser}},[t._v(" "+t._s(t.$L("\u66F4\u591A"))+"... ")]):t._e()],2):t._e(),e("div",{staticClass:"task-add-form"},[e("div",{staticClass:"title"},[e("Input",{ref:"input",attrs:{type:"textarea",rows:1,autosize:{minRows:1,maxRows:8},maxlength:255,placeholder:t.$L("\u4EFB\u52A1\u63CF\u8FF0"),enterkeyhint:"done"},on:{"on-keydown":t.onKeydown},model:{value:t.addData.name,callback:function(s){t.$set(t.addData,"name",s)},expression:"addData.name"}}),t.aiVisible?e("div",{staticClass:"ai-btn",on:{click:t.onAI}},[e("i",{staticClass:"taskfont"},[t._v("\uE8A1")])]):t._e()],1),e("TEditorTask",{ref:"editorTaskRef",staticClass:"desc",attrs:{placeholder:t.$L(t.windowLandscape?"\u8BE6\u7EC6\u63CF\u8FF0\uFF0C\u9009\u586B...\uFF08\u70B9\u51FB\u53F3\u952E\u4F7F\u7528\u5DE5\u5177\u680F\uFF09":"\u8BE6\u7EC6\u63CF\u8FF0\uFF0C\u9009\u586B..."),placeholderFull:t.$L("\u8BE6\u7EC6\u63CF\u8FF0...")},model:{value:t.addData.content,callback:function(s){t.$set(t.addData,"content",s)},expression:"addData.content"}}),e("div",{staticClass:"advanced-option",class:{"advanced-open":t.advanced}},[e("Button",{on:{click:function(s){t.advanced=!t.advanced}}},[t._v(t._s(t.$L("\u9AD8\u7EA7\u9009\u9879")))]),e("ul",{staticClass:"advanced-priority"},t._l(t.taskPriority,function(s,i){return e("li",{key:i},[e("ETooltip",{attrs:{disabled:t.$isEEUIApp||t.windowTouch,content:t.taskPriorityContent(s)}},[e("i",{staticClass:"taskfont",style:{color:s.color},domProps:{innerHTML:t._s(t.addData.p_name==s.name?"":"")},on:{click:function(o){return t.choosePriority(s)}}})])],1)}),0),t.taskDays>0||t.taskTimeOpen?e("DatePicker",{attrs:{open:t.taskTimeOpen,options:t.timeOptions,placeholder:t.$L("\u9009\u62E9\u8BA1\u5212\u8303\u56F4"),format:"yyyy/MM/dd HH:mm",type:"datetimerange",placement:"bottom"},on:{"on-change":function(s){return t.taskTimeChange(t.addData)},"on-open-change":t.taskTimeOpenChange},model:{value:t.addData.times,callback:function(s){t.$set(t.addData,"times",s)},expression:"addData.times"}},[e("div",{staticClass:"advanced-time",on:{click:function(s){return t.taskTimeOpenChange(!t.taskTimeOpen)}}},[e("Icon",{attrs:{type:"ios-clock-outline"}}),e("em",{style:t.addData.p_color?{backgroundColor:t.addData.p_color}:{},attrs:{type:"primary"}},[t._v(t._s(t.taskDays))])],1)]):t._e()],1)],1),t.advanced?e("Form",t._b({staticClass:"task-add-advanced",nativeOn:{submit:function(s){s.preventDefault()}}},"Form",t.formOptions,!1),[e("FormItem",{attrs:{label:t.$L("\u8BA1\u5212\u65F6\u95F4")}},[e("DatePicker",{attrs:{options:t.timeOptions,editable:!1,placeholder:t.$L("\u9009\u62E9\u8BA1\u5212\u8303\u56F4"),format:"yyyy/MM/dd HH:mm",type:"datetimerange"},on:{"on-change":function(s){return t.taskTimeChange(t.addData)}},model:{value:t.addData.times,callback:function(s){t.$set(t.addData,"times",s)},expression:"addData.times"}})],1),e("FormItem",{attrs:{label:t.$L("\u8D1F\u8D23\u4EBA")}},[e("UserSelect",{attrs:{"contextmenu-remove":"","multiple-max":10,title:t.$L("\u9009\u62E9\u4EFB\u52A1\u8D1F\u8D23\u4EBA"),"project-id":t.addData.project_id,"avatar-size":24,border:""},model:{value:t.addData.owner,callback:function(s){t.$set(t.addData,"owner",s)},expression:"addData.owner"}})],1),e("FormItem",{attrs:{label:t.$L("\u534F\u52A9\u4EBA\u5458")}},[e("UserSelect",{attrs:{"contextmenu-remove":"","multiple-max":10,title:t.$L("\u9009\u62E9\u4EFB\u52A1\u534F\u52A9\u4EBA\u5458"),"project-id":t.addData.project_id,"disabled-choice":t.addData.owner,"avatar-size":24,border:""},model:{value:t.addData.assist,callback:function(s){t.$set(t.addData,"assist",s)},expression:"addData.assist"}})],1),e("FormItem",[e("div",{staticClass:"visibility-text",attrs:{slot:"label"},on:{click:t.showCisibleDropdown},slot:"label"},[t._v(" "+t._s(t.$L("\u53EF\u89C1\u6027"))+" "),e("i",{staticClass:"taskfont"},[t._v("\uE740")])]),t.addData.visibility_appoint==1||t.addData.visibility_appoint==2?e("div",{ref:"visibilityText",staticClass:"ivu-input task-add-visibility",on:{click:t.showCisibleDropdown}},[t._v(" "+t._s(t.addData.visibility_appoint==1?t.$L("\u9879\u76EE\u4EBA\u5458\u53EF\u89C1"):t.$L("\u4EFB\u52A1\u4EBA\u5458\u53EF\u89C1"))+" ")]):e("UserSelect",{ref:"visibleUserSelectRef",attrs:{"avatar-size":24,title:t.$L("\u9009\u62E9\u6307\u5B9A\u4EBA\u5458"),"project-id":t.addData.project_id,border:""},on:{"on-show-change":t.visibleUserSelectShowChange},model:{value:t.addData.visibility_appointor,callback:function(s){t.$set(t.addData,"visibility_appointor",s)},expression:"addData.visibility_appointor"}})],1),e("div",{staticClass:"subtasks"},[t.addData.subtasks.length>0?e("div",{staticClass:"sublist"},[e("Row",[e("Col",{attrs:{span:"12"}},[t._v(t._s(t.$L("\u4EFB\u52A1\u63CF\u8FF0")))]),e("Col",{attrs:{span:"8"}},[t._v(t._s(t.$L("\u8BA1\u5212\u65F6\u95F4")))]),e("Col",{attrs:{span:"4"}},[t._v(t._s(t.$L("\u8D1F\u8D23\u4EBA")))])],1),t._l(t.addData.subtasks,function(s,i){return e("Row",{key:i},[e("Col",{attrs:{span:"12"}},[e("Input",{attrs:{maxlength:255,clearable:""},on:{"on-clear":function(o){return t.addData.subtasks.splice(i,1)}},model:{value:s.name,callback:function(o){t.$set(s,"name",o)},expression:"item.name"}})],1),e("Col",{attrs:{span:"8",title:t.timeTitle(s.times)}},[e("DatePicker",{attrs:{options:t.timeOptions,editable:!1,placeholder:t.$L("\u9009\u62E9\u65F6\u95F4"),format:"yyyy/MM/dd HH:mm",type:"datetimerange"},on:{"on-change":function(o){return t.taskTimeChange(s)}},model:{value:s.times,callback:function(o){t.$set(s,"times",o)},expression:"item.times"}})],1),e("Col",{attrs:{span:"4"}},[e("UserSelect",{attrs:{"contextmenu-remove":"","multiple-max":1,title:t.$L("\u9009\u62E9\u8D1F\u8D23\u4EBA"),"project-id":t.addData.project_id,"avatar-size":24,border:""},model:{value:s.owner,callback:function(o){t.$set(s,"owner",o)},expression:"item.owner"}})],1)],1)})],2):t._e(),e("Input",{class:["enter-input",t.subName==""?"empty":""],attrs:{type:"text",placeholder:t.$L("+ \u8F93\u5165\u5B50\u4EFB\u52A1\uFF0C\u56DE\u8F66\u6DFB\u52A0\u5B50\u4EFB\u52A1")},on:{"on-keydown":t.onSubNameKeydown},model:{value:t.subName,callback:function(s){t.subName=s},expression:"subName"}})],1)],1):t._e(),e("div",{staticClass:"ivu-modal-footer"},[e("div",{staticClass:"adaption"},[e("Button",{attrs:{type:"default"},on:{click:t.close}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("ButtonGroup",{staticClass:"page-manage-add-task-button-group"},[e("Button",{attrs:{type:"primary",loading:t.loadIng>0},on:{click:function(s){return t.onAdd(!1)}}},[t._v(t._s(t.$L("\u6DFB\u52A0\u4EFB\u52A1")))]),e("Dropdown",{attrs:{transfer:""},on:{"on-click":function(s){return t.onAdd(!0)}}},[e("Button",{attrs:{type:"primary"}},[e("Icon",{attrs:{type:"ios-arrow-down"}})],1),e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[e("DropdownItem",{attrs:{disabled:t.loadIng>0}},[t._v(t._s(t.$L("\u63D0\u4EA4\u7EE7\u7EED\u6DFB\u52A0")))])],1)],1)],1)],1)]),e("TaskExistTips",{ref:"taskExistTipsRef",on:{onContinue:function(s){return t.onAdd(t.addContinue,!0)}}}),t.taskTemplateShareEnabled?e("TaskTemplateBrowser",{attrs:{"current-project-id":t.addData.project_id},on:{pick:t.onPickFromBrowser},model:{value:t.templateBrowserVisible,callback:function(s){t.templateBrowserVisible=s},expression:"templateBrowserVisible"}}):t._e()],1)},ie=[];const oe={name:"TaskAdd",components:{TEditorTask:it,UserSelect:k,TaskExistTips:ot,TaskTemplateBrowser:ae},props:{value:{type:Boolean,default:!1}},data(){return{addData:{cascader:[],name:"",content:"",owner:[],assist:[],project_id:0,column_id:0,times:[],subtasks:[],p_level:0,p_name:"",p_color:"",visibility_appoint:1,visibility_appointor:[]},addDefault:{},cascaderShow:!1,cascaderData:[],cascaderValue:"",cascaderLoading:0,cascaderAlready:[],advanced:!1,subName:"",taskTimeOpen:!1,timeOptions:{shortcuts:$A.timeOptionShortcuts()},loadIng:0,isMounted:!1,beforeClose:[],addContinue:!1,templateActiveID:0,templateCompareData:{name:"",content:""},templateBrowserVisible:!1}},created(){this.addDefault=$A.cloneJSON(this.addData)},async mounted(){this.initCascaderData(),await this.initProjectData(),this.$nextTick(()=>{this.$refs.input.focus(),this.templateCompareData={name:this.addData.name,content:this.addData.content}}),this.isMounted=!0},beforeDestroy(){this.beforeClose.some(t=>{typeof t=="function"&&t()}),this.beforeClose=[]},computed:{...v(["aiVisible"]),...m(["cacheProjects","projectId","cacheColumns","taskPriority","taskTemplates","formOptions"]),taskTemplateShareEnabled(){const t=(this.cacheProjects||[]).find(({id:a})=>a==this.addData.project_id);return!t||t.task_template_share!=="close"},taskDays(){const{times:t}=this.addData,a=$A.newDateString(t,"YYYY-MM-DD HH:mm");if(a[0]&&a[1]){const e=Math.ceil($A.dayjs(a[1]).diff(a[0],"day",!0));if(e>0)return e}return 0},taskTemplateList(){const t=this.taskTemplates||[],a=this.addData.project_id,e=t.filter(i=>i.project_id==a);return this.taskTemplateShareEnabled?e.length>0?[...e].sort((i,o)=>(i.sort||0)-(o.sort||0)||i.id-o.id):[...t.filter(i=>i.project_id!=a)].sort((i,o)=>(o.use_count||0)-(i.use_count||0)).slice(0,3):[...e].sort((i,o)=>(i.sort||0)-(o.sort||0)||i.id-o.id)},hasMoreTemplates(){if(!this.taskTemplateShareEnabled)return!1;const t=this.taskTemplates||[],a=this.addData.project_id,e=t.filter(i=>i.project_id==a).length,s=t.filter(i=>i.project_id!=a).length;return e>0?s>0:s>3}},watch:{"addData.owner"(t,a){JSON.stringify(t)!==JSON.stringify(a)&&(this.addData.assist=this.addData.assist.filter(e=>t.indexOf(e)===-1),this.addData.assist.length===0&&t.indexOf(this.userId)===-1&&(this.addData.assist=[this.userId]))},"addData.project_id"(t){t>0&&($A.IDBSave("cacheAddTaskProjectId",t),this.$store.dispatch("updateTaskTemplates",t).then(this.setTaskDefaultTemplate))},"addData.column_id"(t){t>0&&$A.IDBSave("cacheAddTaskColumnId",t);const{project_id:a}=this.addData;a&&t?this.$set(this.addData,"cascader",[a,t]):this.$set(this.addData,"cascader",[])}},methods:{initCascaderData(){const t=$A.cloneJSON(this.cacheProjects).sort((a,e)=>a.top_at||e.top_at?$A.sortDay(e.top_at,a.top_at):e.id-a.id);this.cascaderData=t.map(a=>{const e=this.cacheColumns.filter(({project_id:i})=>i==a.id).map(i=>({value:i.id,label:i.name})),s={value:a.id,label:a.name,children:e};return e.length==0&&(s.loading=!1),s})},async initProjectData(){let t=await $A.IDBInt("cacheAddTaskProjectId"),a=this.cacheProjects.find(({id:e})=>e==this.projectId)||this.cacheProjects.find(({id:e})=>e==t)||this.cacheProjects.find(({id:e})=>e>0);if(a){let e=await $A.IDBInt("cacheAddTaskColumnId"),s=this.cacheColumns.find(({project_id:i,id:o})=>i==a.id&&o==e)||this.cacheColumns.find(({project_id:i})=>i==a.id);s?(this.addData.project_id=s.project_id,this.addData.column_id=s.id):this.$store.dispatch("getColumns",a.id).then(()=>{s=this.cacheColumns.find(({project_id:i,id:o})=>i==a.id&&o==e)||this.cacheColumns.find(({project_id:i})=>i==a.id),s&&(this.addData.project_id=s.project_id,this.addData.column_id=s.id)}).catch(()=>{})}if(this.taskPriority.length>0){const e=this.taskPriority.find(s=>s.is_default===1)||this.taskPriority[0];await this.choosePriority(e)}},async taskTimeChange(t){const a=$A.newDateString(t.times,"YYYY-MM-DD HH:mm");this.$set(t,"times",await this.$store.dispatch("taskDefaultTime",a))},taskTimeOpenChange(t){this.taskTimeOpen=t},timeTitle(t){return t?$A.newDateString(t):null},onKeydown(t){if(t.keyCode===13){if(t.shiftKey)return;t.preventDefault(),this.onAdd()}},onSubNameKeydown(t){t.isComposing||t.key==="Process"||t.keyCode===229||t.keyCode===13&&this.addSubTask()},addSubTask(){this.subName.trim()!==""&&(this.addData.subtasks.push({name:this.subName.trim(),owner:[this.userId],times:[]}),this.subName="")},taskPriorityContent(t){const a=$A.runNum(t.days);return a<=0?t.name+" ("+this.$L("\u65E0\u65F6\u95F4\u9650\u5236")+")":t.name+" ("+a+this.$L("[day_unit].\u5929")+")"},async choosePriority(t){const a=$A.daytz(),e=$A.runNum(t.days);if(e>0){const s=a.clone().add(e,"day");this.$set(this.addData,"times",await this.$store.dispatch("taskDefaultTime",$A.newDateString([a,s],"YYYY-MM-DD 00:00")))}else this.$set(this.addData,"times",[]);this.$set(this.addData,"p_level",t.priority),this.$set(this.addData,"p_name",t.name),this.$set(this.addData,"p_color",t.color)},cascaderLoadData(t,a){t.loading=!0,this.$store.dispatch("getColumns",t.value).then(e=>{t.children=e.map(s=>({value:s.id,label:s.name})),t.loading=!1,a()}).catch(()=>{t.loading=!1,a()})},cascaderChange(t){t[1]&&(this.$set(this.addData,"project_id",t[0]),this.$set(this.addData,"column_id",t[1]))},cascaderInputChange(t){this.cascaderValue=t||"",this.cascaderAlready[this.cascaderValue]!==!0&&(this.cascaderAlready[this.cascaderValue]=!0,setTimeout(()=>{this.cascaderLoading++},1e3),this.$store.dispatch("getProjects",{keys:{name:this.cascaderValue},getcolumn:"yes"}).then(()=>{this.cascaderLoading--,this.initCascaderData()}).catch(()=>{this.cascaderLoading--}))},setData(t){if(!this.isMounted){this.__setData&&clearTimeout(this.__setData),this.__setData=setTimeout(a=>this.setData(t),10);return}typeof t.beforeClose!="undefined"&&(this.beforeClose.push(t.beforeClose),delete t.beforeClose),this.addData=Object.assign({},this.addData,t)},async onAdd(t=!1,a=!1){if(!this.addData.name){$A.messageError("\u4EFB\u52A1\u63CF\u8FF0\u4E0D\u80FD\u4E3A\u7A7A");return}if(!a&&this.addData.owner.length>0){this.loadIng++,this.$refs.taskExistTipsRef.isExistTask({userids:this.addData.owner,timerange:this.addData.times},600).then(i=>{i?this.addContinue=t:this.onAdd(t,!0),this.loadIng--});return}this.loadIng++;const e=this.templateActiveID?(this.taskTemplates||[]).find(i=>i.id===this.templateActiveID):null,s=e&&(this.taskTemplateShareEnabled||e.project_id==this.addData.project_id)?this.templateActiveID:0;this.$store.dispatch("taskAdd",Object.assign({},this.addData,{template_id:s})).then(({msg:i})=>{$A.messageSuccess(i),t===!0?(this.addData=Object.assign({},this.addData,this.templateCompareData,{subtasks:[]}),this.$refs.input.focus()):(this.addData=$A.cloneJSON(this.addDefault),this.close())}).catch(({msg:i})=>{$A.modalError(i)}).finally(()=>{this.loadIng--})},close(){this.$emit("input",!this.value)},showCisibleDropdown(t){const a=[{label:"\u9879\u76EE\u4EBA\u5458",value:1},{label:"\u4EFB\u52A1\u4EBA\u5458",value:2},{label:"\u6307\u5B9A\u6210\u5458",value:3}];this.$store.commit("menu/operation",{event:t,list:a,size:"large",active:this.addData.visibility_appoint,onUpdate:e=>{this.dropVisible(e)}})},visibleUserSelectShowChange(t){if(!t&&(this.addData.visibility_appointor.length==0||!this.addData.visibility_appointor[0])){let a=this.addData.old_visibility_appoint;this.addData.visibility_appoint=a>2?1:a||1,this.addData.visibility_appoint<3}},dropVisible(t){switch(t){case 1:case 2:this.addData.visibility_appoint=t;break;case 3:this.addData.old_visibility_appoint=this.addData.visibility_appoint,this.addData.visibility_appoint=t,this.$nextTick(()=>{this.$refs.visibleUserSelectRef.onSelection()});break}},openTemplateBrowser(){!this.taskTemplateShareEnabled||(this.templateBrowserVisible=!0)},onPickFromBrowser(t){this.setTaskTemplate(t)},setTaskTemplate(t,a=!1){if(!(!this.taskTemplateShareEnabled&&t.project_id!=this.addData.project_id)){if(a){this.templateActiveID=t.id,this.addData.name=t.title,this.addData.content=w(t.content,{sanitize:!1}),this.$nextTick(()=>{this.$refs.input.focus(),this.templateCompareData={name:this.addData.name,content:this.addData.content}});return}this.addData.name!==this.templateCompareData.name&&this.addData.name!==""||this.addData.content!==this.templateCompareData.content&&this.addData.content!==""?$A.modalConfirm({content:"\u5F53\u524D\u5DF2\u6709\u4FEE\u6539\u7684\u5185\u5BB9\uFF0C\u662F\u5426\u8981\u8986\u76D6\uFF1F",onOk:()=>this.setTaskTemplate(t,!0)}):this.setTaskTemplate(t,!0)}},setTaskDefaultTemplate(){const t=(this.taskTemplates||[]).find(a=>a.is_default&&a.project_id==this.addData.project_id);t&&this.setTaskTemplate(t)},onAI(){r.emit("openAIAssistant",{sessionKey:"task-create",title:this.$L("AI \u4EFB\u52A1\u52A9\u624B"),placeholder:this.$L("\u8BF7\u7B80\u8981\u63CF\u8FF0\u4EFB\u52A1\u76EE\u6807\u3001\u80CC\u666F\u6216\u9884\u671F\u4EA4\u4ED8\uFF0CAI \u5C06\u751F\u6210\u6807\u9898\u3001\u8BE6\u7EC6\u8BF4\u660E\u548C\u5B50\u4EFB\u52A1"),onBeforeSend:this.handleTaskAIBeforeSend,onRender:this.handleTaskAIRender,onApply:this.handleTaskAIApply})},buildTaskAIContextData(){const t=[],a=(this.addData.name||"").trim(),e=C(this.addData.content,2e3,!0);(a||e)&&(t.push("## \u5F53\u524D\u4EFB\u52A1\u4FE1\u606F"),a&&t.push(`\u5F53\u524D\u6807\u9898\uFF1A${a}`),e&&t.push(`\u5F53\u524D\u5185\u5BB9\uFF1A${e}`),t.push("\u8BF7\u5728\u6B64\u57FA\u7840\u4E0A\u4F18\u5316\u6539\u8FDB\uFF0C\u800C\u4E0D\u662F\u5B8C\u5168\u91CD\u5199\u3002"));const s=this.templateActiveID?(this.taskTemplates||[]).find(l=>l.id===this.templateActiveID):null;if(s){const l=(s.name||s.title||"").trim(),g=C(w(s.content,{sanitize:!1}),1200,!0);t.push("## \u4EFB\u52A1\u6A21\u677F\u8981\u6C42"),l&&t.push(`\u6A21\u677F\u540D\u79F0\uFF1A${l}`),g&&t.push(`\u6A21\u677F\u5185\u5BB9\u7ED3\u6784\uFF1A${g}`),t.push("\u8BF7\u4E25\u683C\u6309\u7167\u6B64\u6A21\u677F\u7684\u7ED3\u6784\u548C\u683C\u5F0F\u8981\u6C42\u751F\u6210\u5185\u5BB9\u3002")}const i=[];Array.isArray(this.addData.owner)&&this.addData.owner.length>0&&i.push("\u5DF2\u8BBE\u7F6E\u8D1F\u8D23\u4EBA"),Array.isArray(this.addData.times)&&this.addData.times.length>0&&i.push("\u5DF2\u8BBE\u7F6E\u8BA1\u5212\u65F6\u95F4");const o=(this.addData.p_name||"").trim();o&&i.push(`\u4F18\u5148\u7EA7\uFF1A${o}`),i.length>0&&(t.push("## \u4EFB\u52A1\u72B6\u6001"),t.push(i.join("\uFF0C")),t.push("\u8BF7\u5728\u4EFB\u52A1\u63CF\u8FF0\u4E2D\u4F53\u73B0\u76F8\u5E94\u7684\u8981\u6C42\u548C\u7EA6\u675F\u3002"));const n=this.cacheProjects.find(({id:l})=>l==this.addData.project_id),c=this.cacheColumns.find(({id:l})=>l==this.addData.column_id);(n&&n.name||c&&c.name)&&(t.push("## \u6240\u5C5E\u9879\u76EE"),n&&n.name&&t.push(`\u9879\u76EE\uFF1A${n.name}`),c&&c.name&&t.push(`\u4EFB\u52A1\u5217\u8868\uFF1A${c.name}`));const h=(this.addData.subtasks||[]).map(l=>l&&l.name?l.name.trim():"").filter(Boolean).slice(0,8);return h.length>0&&(t.push("## \u5F53\u524D\u5B50\u4EFB\u52A1"),h.forEach((l,g)=>{t.push(`${g+1}. ${l}`)})),t.join(`
`).trim()},handleTaskAIBeforeSend(t=[]){const a=[["system",b(G)]],e=this.buildTaskAIContextData();if(e){let s=["\u4EE5\u4E0B\u662F\u5DF2\u6709\u7684\u4E0A\u4E0B\u6587\u4FE1\u606F\uFF0C\u53EF\u8F85\u52A9\u4F60\u7406\u89E3\uFF1A",e].join(`
`);$A.getObject(t,[0,0])==="human"&&(s+=`
----
-\u8BF7\u6839\u636E\u4EE5\u4E0A\u4FE1\u606F\uFF0C\u7ED3\u5408\u4EE5\u4E0B\u7528\u6237\u8F93\u5165\u7684\u5185\u5BB9\u751F\u6210\u9879\u76EE\u4EFB\u52A1\uFF1A++++`),a.push(["human",s])}return t.length>0&&a.push(...t),a},handleTaskAIApply({rawOutput:t}){if(!t){$A.messageWarning("AI \u672A\u751F\u6210\u5185\u5BB9");return}const a=this.parseTaskAIContent(t);if(!a){$A.modalError("AI \u5185\u5BB9\u89E3\u6790\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5");return}if(a.title&&(this.addData.name=a.title,this.$nextTick(()=>{this.$refs.input&&this.$refs.input.focus()})),a.description&&this.$refs.editorTaskRef){const e=Y(a.description);this.$refs.editorTaskRef.setContent(e,{format:"raw"})}if(a.subtasks.length>0){const e=Array.isArray(this.addData.owner)&&this.addData.owner.length>0?[this.addData.owner[0]]:this.userId?[this.userId]:[],s=a.subtasks.map(i=>({name:i,owner:[...e],times:[]}));this.$set(this.addData,"subtasks",s),this.advanced=!0}},parseTaskAIContent(t){const a=U(t);if(!a||typeof a!="object")return null;const e=this.pickFirstString([a.title,a.name,a.task_title]),s=this.pickFirstString([a.description_markdown,a.description,a.content_markdown,a.content,a.body,a.detail]),i=this.normalizeAISubtasks(a.subtasks||a.tasks||a.checklist||a.steps);return!e&&!s&&i.length===0?null:{title:e,description:s,subtasks:i}},normalizeAISubtasks(t){let a=[];Array.isArray(t)?a=t.map(s=>typeof s=="string"?s:s&&typeof s=="object"&&(s.title||s.name||s.task||s.content)||""):typeof t=="string"&&(a=t.split(/[\n\r;;]+/));const e=a.map(s=>String(s||"").replace(/^[\d\.-]*\s*/,"").replace(/^[•*\-]\s*/,"").trim()).filter(Boolean);return Array.from(new Set(e)).slice(0,8)},pickFirstString(t=[]){for(const a of t)if(typeof a=="string"&&a.trim())return a.trim();return""},handleTaskAIRender({rawOutput:t}){if(!t)return"";const a=this.parseTaskAIContent(t);if(!a)return t;const e=[];if(a.title&&e.push(`## ${a.title}`),a.description&&e.push(a.description),a.subtasks.length>0){const s=a.subtasks.map((i,r)=>`${r+1}. ${i}`);e.push(s.join(`
+\u8BF7\u6839\u636E\u4EE5\u4E0A\u4FE1\u606F\uFF0C\u7ED3\u5408\u4EE5\u4E0B\u7528\u6237\u8F93\u5165\u7684\u5185\u5BB9\u751F\u6210\u9879\u76EE\u4EFB\u52A1\uFF1A++++`),a.push(["human",s])}return t.length>0&&a.push(...t),a},handleTaskAIApply({rawOutput:t}){if(!t){$A.messageWarning("AI \u672A\u751F\u6210\u5185\u5BB9");return}const a=this.parseTaskAIContent(t);if(!a){$A.modalError("AI \u5185\u5BB9\u89E3\u6790\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5");return}if(a.title&&(this.addData.name=a.title,this.$nextTick(()=>{this.$refs.input&&this.$refs.input.focus()})),a.description&&this.$refs.editorTaskRef){const e=Y(a.description);this.$refs.editorTaskRef.setContent(e,{format:"raw"})}if(a.subtasks.length>0){const e=Array.isArray(this.addData.owner)&&this.addData.owner.length>0?[this.addData.owner[0]]:this.userId?[this.userId]:[],s=a.subtasks.map(i=>({name:i,owner:[...e],times:[]}));this.$set(this.addData,"subtasks",s),this.advanced=!0}},parseTaskAIContent(t){const a=U(t);if(!a||typeof a!="object")return null;const e=this.pickFirstString([a.title,a.name,a.task_title]),s=this.pickFirstString([a.description_markdown,a.description,a.content_markdown,a.content,a.body,a.detail]),i=this.normalizeAISubtasks(a.subtasks||a.tasks||a.checklist||a.steps);return!e&&!s&&i.length===0?null:{title:e,description:s,subtasks:i}},normalizeAISubtasks(t){let a=[];Array.isArray(t)?a=t.map(s=>typeof s=="string"?s:s&&typeof s=="object"&&(s.title||s.name||s.task||s.content)||""):typeof t=="string"&&(a=t.split(/[\n\r;;]+/));const e=a.map(s=>String(s||"").replace(/^[\d\.-]*\s*/,"").replace(/^[•*\-]\s*/,"").trim()).filter(Boolean);return Array.from(new Set(e)).slice(0,8)},pickFirstString(t=[]){for(const a of t)if(typeof a=="string"&&a.trim())return a.trim();return""},handleTaskAIRender({rawOutput:t}){if(!t)return"";const a=this.parseTaskAIContent(t);if(!a)return t;const e=[];if(a.title&&e.push(`## ${a.title}`),a.description&&e.push(a.description),a.subtasks.length>0){const s=a.subtasks.map((i,o)=>`${o+1}. ${i}`);e.push(s.join(`
`))}return e.join(`
-`).trim()||t}}},j={};var oe=c(re,se,ie,!1,ne,null,null,null);function ne(t){for(let a in j)this[a]=j[a]}var le=function(){return oe.exports}(),ce=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"report-list-wrap"},[e("div",{staticClass:"search-expand"},[e("div",{staticClass:"search-container lr"},[e("ul",[e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u5173\u952E\u8BCD"))+" ")]),e("div",{staticClass:"search-content"},[e("Input",{attrs:{placeholder:t.$L("\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22"),clearable:""},model:{value:t.keys.key,callback:function(s){t.$set(t.keys,"key",s)},expression:"keys.key"}})],1)]),e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u6C47\u62A5\u7C7B\u578B"))+" ")]),e("div",{staticClass:"search-content"},[e("Select",{attrs:{placeholder:t.$L("\u5168\u90E8")},model:{value:t.keys.type,callback:function(s){t.$set(t.keys,"type",s)},expression:"keys.type"}},t._l(t.reportTypeList,function(s){return e("Option",{key:s.value,attrs:{value:s.value}},[t._v(t._s(s.label))])}),1)],1)]),e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u6C47\u62A5\u65F6\u95F4"))+" ")]),e("div",{staticClass:"search-content"},[e("DatePicker",{attrs:{type:"daterange","split-panels":"",placeholder:t.$L("\u8BF7\u9009\u62E9\u65F6\u95F4")},model:{value:t.keys.created_at,callback:function(s){t.$set(t.keys,"created_at",s)},expression:"keys.created_at"}})],1)]),e("li",{staticClass:"search-button"},[e("SearchButton",{attrs:{loading:t.loadIng>0,filtering:t.keyIs,placement:"right"},on:{search:t.onSearch,refresh:t.getLists,cancelFilter:function(s){t.keyIs=!1}}})],1)])]),e("div",{staticClass:"expand-button-group"},[e("Button",{attrs:{type:"primary",icon:"md-add"},on:{click:t.addReport}},[t._v(t._s(t.$L("\u65B0\u589E\u62A5\u544A")))])],1)]),e("div",{staticClass:"table-page-box"},[e("Table",{attrs:{columns:t.columns,data:t.lists,loading:t.loadIng>0,"no-data-text":t.$L(t.noDataText),stripe:""}}),e("Page",{attrs:{total:t.listTotal,current:t.listPage,"page-size":t.listPageSize,disabled:t.loadIng>0,simple:t.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)])},de=[];const he={name:"ReportMy",components:{SearchButton:_},data(){return{loadIng:0,columns:[{title:this.$L("\u6807\u9898"),key:"title",minWidth:180,render:(t,{row:a})=>{const e=`${a.title||""}`.replace(/(\[([^\[\]]*)\]\s*){0,2}$/,"");return t("AutoTip",e)}},{title:this.$L("\u65F6\u95F4"),key:"time",sortable:!0,minWidth:180,render:(t,{row:a})=>t("AutoTip",$A.reportExtractTime(a.title)||"-")},{title:this.$L("\u7C7B\u578B"),key:"type",align:"center",width:90,render:(t,{row:a})=>t("AutoTip",this.$L(a.type==="daily"?"\u65E5\u62A5":"\u5468\u62A5"))},{title:this.$L("\u6C47\u62A5\u65F6\u95F4"),key:"created_at",align:"center",width:180},{title:this.$L("\u6C47\u62A5\u5BF9\u8C61"),key:"receives",align:"center",width:90,render:(t,{row:a})=>{if(a.receives.length===0)return t("div","-");const e=[];return a.receives.length<=2?a.receives.some(s=>{e.push(t("UserAvatar",{props:{size:22,userid:s}}))}):(e.push(t("UserAvatar",{props:{size:22,userid:a.receives[0]}})),e.push(t("div",{class:"more-avatar"},`+${a.receives.length-1}`))),t("div",{class:"report-table-avatar"},e)}},{title:this.$L("\u64CD\u4F5C"),align:"center",width:100,minWidth:100,render:(t,{column:a,row:e})=>e.id?t("TableAction",{props:{column:a,menu:[{icon:"md-create",action:"edit"},{icon:"md-eye",action:"view"}]},on:{action:s=>{s==="edit"?this.$emit("on-edit",e.id):s==="view"&&this.$emit("on-view",e)}}}):null}],lists:[],listPage:1,listTotal:0,listPageSize:20,noDataText:"\u6570\u636E\u52A0\u8F7D\u4E2D.....",keys:{},keyIs:!1,reportTypeList:[{value:"",label:this.$L("\u5168\u90E8")},{value:"weekly",label:this.$L("\u5468\u62A5")},{value:"daily",label:this.$L("\u65E5\u62A5")}]}},mounted(){this.getLists()},watch:{keyIs(t){t||(this.keys={},this.setPage(1))}},methods:{onSearch(){this.listPage=1,this.getLists()},getLists(){this.loadIng++,this.keyIs=$A.objImplode(this.keys)!="",this.$store.dispatch("call",{url:"report/my",data:{keys:this.keys,page:Math.max(this.listPage,1),pagesize:Math.max($A.runNum(this.listPageSize),10)}}).then(({data:t})=>{this.lists=t.data,this.listTotal=t.total,this.noDataText="\u6CA1\u6709\u76F8\u5173\u7684\u6570\u636E"}).catch(({msg:t})=>{$A.messageError(t),this.noDataText="\u6570\u636E\u52A0\u8F7D\u5931\u8D25"}).finally(()=>{this.loadIng--})},setPage(t){this.listPage=t,this.getLists()},setPageSize(t){Math.max($A.runNum(this.listPageSize),10)!==t&&(this.listPageSize=t,this.getLists())},addReport(){this.$emit("on-edit",0)}}},P={};var pe=c(he,ce,de,!1,ue,null,null,null);function ue(t){for(let a in P)this[a]=P[a]}var me=function(){return pe.exports}(),fe=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"report-list-wrap"},[e("div",{staticClass:"search-container lr"},[e("ul",[e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u5173\u952E\u8BCD"))+" ")]),e("div",{staticClass:"search-content"},[e("Input",{attrs:{placeholder:t.$L("\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22"),clearable:""},model:{value:t.keys.key,callback:function(s){t.$set(t.keys,"key",s)},expression:"keys.key"}})],1)]),e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u6C47\u62A5\u90E8\u95E8"))+" ")]),e("div",{staticClass:"search-content"},[e("Select",{attrs:{placeholder:t.$L("\u5168\u90E8")},model:{value:t.keys.department_id,callback:function(s){t.$set(t.keys,"department_id",s)},expression:"keys.department_id"}},[e("Option",{attrs:{value:""}},[t._v(t._s(t.$L("\u5168\u90E8")))]),t._l(t.departmentList,function(s,i){return e("Option",{key:i,attrs:{value:s.id,label:s.chains.join(" - ")}},[e("div",{class:`department-level-name level-${s.level}`},[t._v(t._s(s.name))])])})],2)],1)]),e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u6C47\u62A5\u7C7B\u578B"))+" ")]),e("div",{staticClass:"search-content"},[e("Select",{attrs:{placeholder:t.$L("\u5168\u90E8")},model:{value:t.keys.type,callback:function(s){t.$set(t.keys,"type",s)},expression:"keys.type"}},t._l(t.reportTypeList,function(s){return e("Option",{key:s.value,attrs:{value:s.value}},[t._v(t._s(s.label))])}),1)],1)]),e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u6C47\u62A5\u72B6\u6001"))+" ")]),e("div",{staticClass:"search-content"},[e("Select",{attrs:{placeholder:t.$L("\u5168\u90E8")},model:{value:t.keys.status,callback:function(s){t.$set(t.keys,"status",s)},expression:"keys.status"}},t._l(t.reportStatusList,function(s){return e("Option",{key:s.value,attrs:{value:s.value}},[t._v(t._s(s.label))])}),1)],1)]),e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u6C47\u62A5\u65F6\u95F4"))+" ")]),e("div",{staticClass:"search-content"},[e("DatePicker",{attrs:{type:"daterange","split-panels":"",placeholder:t.$L("\u8BF7\u9009\u62E9\u65F6\u95F4")},model:{value:t.keys.created_at,callback:function(s){t.$set(t.keys,"created_at",s)},expression:"keys.created_at"}})],1)]),e("li",{staticClass:"search-button"},[e("SearchButton",{attrs:{loading:t.loadIng>0,filtering:t.keyIs,placement:"right"},on:{search:t.onSearch,refresh:t.getLists,cancelFilter:function(s){t.keyIs=!1}}})],1)])]),e("div",{staticClass:"table-page-box"},[e("Table",{attrs:{columns:t.columns,data:t.lists,loading:t.loadIng>0,"no-data-text":t.$L(t.noDataText),stripe:""},on:{"on-selection-change":t.selectChange}}),e("div",{staticClass:"table-attach"},[e("div",{staticClass:"select-box"},[e("Select",{attrs:{disabled:t.selected.length==0,placeholder:t.$L("\u8BF7\u9009\u62E9"),transfer:""},on:{"on-change":function(s){t.groupSelect=!0}},model:{value:t.selectAction,callback:function(s){t.selectAction=s},expression:"selectAction"}},[e("Option",{attrs:{value:"read"}},[t._v(t._s(t.$L("\u6807\u8BB0\u5DF2\u8BFB")))]),e("Option",{attrs:{value:"unread"}},[t._v(t._s(t.$L("\u6807\u8BB0\u672A\u8BFB")))]),e("Option",{attrs:{value:"share"}},[t._v(t._s(t.$L("\u5206\u4EAB\u5230\u6D88\u606F")))])],1),e("Button",{attrs:{loading:t.loadIng>0,type:"primary",disabled:t.selectAction==""||t.selected.length==0},on:{click:t.selectClick}},[e("span",[t._v(t._s(t.$L("\u6267\u884C")))]),t.selected.length>0?e("em",[t._v("("+t._s(t.selected.length)+")")]):t._e()])],1),e("Page",{attrs:{total:t.listTotal,current:t.listPage,"page-size":t.listPageSize,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)],1),e("Forwarder",{ref:"forwarder",attrs:{title:t.$L("\u5206\u4EAB\u62A5\u544A\u5230\u6D88\u606F"),"confirm-title":t.$L("\u786E\u8BA4\u5206\u4EAB"),"confirm-placeholder":t.$L("\u9644\u8A00"),"multiple-max":50,"before-submit":t.onShare,"msg-detail":t.forwardMsgPreview,"sender-hidden":""}})],1)},ge=[];const ve={name:"ReportReceive",components:{SearchButton:_,Forwarder:J},data(){return{loadIng:0,columns:[{type:"selection",width:50,align:"right"},{title:this.$L("\u6807\u9898"),key:"title",sortable:!0,minWidth:180,render:(t,{row:a})=>{const e=`${a.title||""}`.replace(/(\[([^\[\]]*)\]\s*){0,2}$/,""),s=[],i=a.receives_user.find(({userid:r})=>r==this.userId);return i&&i.pivot.read==0?s.push(t("Tag",{props:{color:"orange"},style:{flexShrink:0}},this.$L("\u672A\u8BFB")),t("AutoTip",e)):s.push(t("AutoTip",e)),t("div",{style:{display:"flex",alignItems:"center"}},s)}},{title:this.$L("\u65F6\u95F4"),key:"time",sortable:!0,minWidth:180,render:(t,{row:a})=>t("AutoTip",$A.reportExtractTime(a.title)||"-")},{title:this.$L("\u7C7B\u578B"),key:"type",sortable:!0,width:90,render:(t,{row:a})=>t("AutoTip",this.$L(a.type==="daily"?"\u65E5\u62A5":"\u5468\u62A5"))},{title:this.$L("\u63A5\u6536\u65F6\u95F4"),key:"receive_at",align:"center",sortable:!0,width:180},{title:this.$L("\u64CD\u4F5C"),align:"center",width:90,minWidth:90,render:(t,{column:a,row:e})=>e.id?t("TableAction",{props:{column:a,menu:[{icon:"md-eye",action:"view"}]},on:{action:s=>{if(s==="view"){this.$emit("on-view",e);const i=e.receives_user.find(({userid:r})=>r==this.userId);i&&this.$set(i.pivot,"read",1)}}}}):null}],lists:[],listPage:1,listTotal:0,listPageSize:20,noDataText:"\u6570\u636E\u52A0\u8F7D\u4E2D.....",keys:{},keyIs:!1,selected:[],selectAction:"",reportTypeList:[{value:"",label:this.$L("\u5168\u90E8")},{value:"weekly",label:this.$L("\u5468\u62A5")},{value:"daily",label:this.$L("\u65E5\u62A5")}],reportStatusList:[{value:"",label:this.$L("\u5168\u90E8")},{value:"unread",label:this.$L("\u4EC5\u672A\u8BFB")},{value:"read",label:this.$L("\u4EC5\u5DF2\u8BFB")}],departmentList:[],forwardMsgPreview:null}},async mounted(){this.getLists(),this.departmentList=await this.$store.dispatch("getDepartmentList")},watch:{keyIs(t){t||(this.keys={},this.setPage(1))}},methods:{onSearch(){this.listPage=1,this.getLists()},getLists(){this.loadIng++,this.keyIs=$A.objImplode(this.keys)!="",this.$store.dispatch("call",{url:"report/receive",data:{keys:this.keys,page:Math.max(this.listPage,1),pagesize:Math.max($A.runNum(this.listPageSize),10)}}).then(({data:t})=>{this.lists=t.data,this.listTotal=t.total,this.noDataText="\u6CA1\u6709\u76F8\u5173\u7684\u6570\u636E"}).catch(({msg:t})=>{$A.messageError(t),this.noDataText="\u6570\u636E\u52A0\u8F7D\u5931\u8D25"}).finally(()=>{this.loadIng--})},setPage(t){this.listPage=t,this.getLists()},setPageSize(t){Math.max($A.runNum(this.listPageSize),10)!==t&&(this.listPageSize=t,this.getLists())},selectChange(t){this.selected=t.map(a=>({id:a.id,title:a.title}))},selectClick(){if(this.selected.length===0){$A.messageWarning("\u8BF7\u9009\u62E9\u7EBF\u8DEF");return}switch(this.selectAction){case"read":case"unread":this.readReport(this.selected.map(({id:t})=>t),this.selectAction);break;case"share":this.selectShare();break;default:$A.messageWarning("\u8BF7\u9009\u62E9\u6267\u884C\u65B9\u5F0F");break}},readReport(t,a){const e=a==="read"?"\u6807\u8BB0\u5DF2\u8BFB":"\u6807\u8BB0\u672A\u8BFB";$A.modalConfirm({content:`\u4F60\u786E\u5B9A\u8981\u3010${e}\u3011\u5417\uFF1F`,cancelText:"\u53D6\u6D88",okText:"\u786E\u5B9A",loading:!0,onOk:()=>new Promise((s,i)=>{this.$store.dispatch("call",{url:"report/mark",data:{id:t,action:a}}).then(({msg:r})=>{s(r),this.getLists(),this.$emit("on-read")}).catch(({msg:r})=>{i(r)})})})},selectShare(){if(this.selected.length>20){$A.messageWarning("\u6BCF\u6B21\u6700\u591A\u5206\u4EAB20\u4E2A");return}const t=this.selected.length>1?"li":"p",a=t==="li"?' data-list="ordered"':"",e={text:this.selected.map(({title:s})=>{const i=`%${s} `;return`<${t}${a}>${i}${t}>`}).join("")};t==="li"&&(e.text=`${e.text} `),this.forwardMsgPreview={id:0,dialog_id:0,reply_id:0,type:"text",userid:this.userId,msg:e},this.$refs.forwarder.onSelection()},onShare({dialogids:t,userids:a,message:e}){return new Promise((s,i)=>{this.$store.dispatch("call",{url:"report/share",data:{id:this.selected.map(({id:r})=>r),dialogids:t,userids:a,leave_message:e}}).then(({data:r,msg:o})=>{this.$store.dispatch("saveDialogMsg",r.msgs),this.$store.dispatch("updateDialogLastMsg",r.msgs),$A.messageSuccess(o),s(),r.msgs.length>0&&this.$store.dispatch("openDialog",r.msgs[r.msgs.length-1].dialog_id)}).catch(({msg:r})=>{$A.modalError(r),i()})})}}},M={};var _e=c(ve,fe,ge,!1,$e,null,null,null);function $e(t){for(let a in M)this[a]=M[a]}var ye=function(){return _e.exports}(),ke=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"report"},[e("Tabs",{model:{value:t.reportTabs,callback:function(s){t.reportTabs=s},expression:"reportTabs"}},[e("TabPane",{attrs:{label:t.$L("\u6211\u7684\u6C47\u62A5"),name:"my"}},[t.reportTabs==="my"?e("ReportMy",{ref:"report",on:{"on-view":t.onView,"on-edit":t.onEditReport}}):t._e()],1),e("TabPane",{attrs:{label:t.tabRebder(t.reportUnreadNumber),name:"receive"}},[t.reportTabs==="receive"?e("ReportReceive",{on:{"on-view":t.onView,"on-read":t.onRead}}):t._e()],1)],1),e("DrawerOverlay",{attrs:{placement:"right",size:950,transfer:""},model:{value:t.showDetailDrawer,callback:function(s){t.showDetailDrawer=s},expression:"showDetailDrawer"}},[t.showDetailDrawer?e("ReportDetail",{attrs:{data:t.detailData}}):t._e()],1),e("DrawerOverlay",{attrs:{placement:"right",size:1e3,transfer:""},model:{value:t.showEditDrawer,callback:function(s){t.showEditDrawer=s},expression:"showEditDrawer"}},[t.showEditDrawer?e("ReportEdit",{attrs:{id:t.reportId},on:{saveSuccess:t.saveSuccess}}):t._e()],1)],1)},be=[];const we={name:"Report",components:{DrawerOverlay:H,ReportEdit:nt,ReportMy:me,ReportReceive:ye,ReportDetail:lt},props:{value:{default:"my"}},data(){return{reportTabs:"my",showDetailDrawer:!1,showEditDrawer:!1,detailData:{},reportId:0}},mounted(){this.reportTabs=this.value,this.$isMainElectron&&this.$Electron.listenerOnly("reportSaveSuccess",({data:t,msg:a})=>{$A.messageSuccess(a),this.saveSuccess(t)})},computed:{...u(["reportUnreadNumber"])},watch:{reportTabs(t){this.$emit("input",t)}},methods:{tabRebder(t){return a=>t>0?a("div",[a("span",{class:"navbar-item-content"},this.$L("\u6536\u5230\u7684\u6C47\u62A5")),a("Badge",{class:"manage-box-report",props:{count:t}})]):a("div",[a("span",{class:"navbar-item-content"},this.$L("\u6536\u5230\u7684\u6C47\u62A5"))])},onView(t){this.detailData=t,this.$emit("on-read"),this.$Electron?this.$store.dispatch("openWindow",{name:`report-detail-${t.id}`,path:`/single/report/detail/${t.id}`,title:t.title,titleFixed:!0}):this.showDetailDrawer=!0},onRead(){this.$emit("on-read",0)},onEditReport(t){this.$Electron?this.$store.dispatch("openWindow",{name:`report-edit-${t}`,path:`/single/report/edit/${t}`,title:this.$L(t>0?"\u4FEE\u6539\u62A5\u544A":"\u65B0\u589E\u62A5\u544A")}):(this.reportId=t,this.showEditDrawer=!0)},saveSuccess(){this.reportId=0,this.reportTabs="my",this.showEditDrawer=!1,this.$refs.report&&this.$refs.report.getLists()}}},O={};var Ce=c(we,ke,be,!1,De,null,null,null);function De(t){for(let a in O)this[a]=O[a]}var Te=function(){return Ce.exports}(),Se=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("Modal",{ref:"modal",attrs:{value:t.show,styles:t.modalStyles,"mask-closable":!1,"footer-hide":!0,mask:!t.windowPortrait,fullscreen:t.windowPortrait,"transition-names":t.transitionNames,"class-name":t.className,beforeClose:t.onBeforeClose}},[t.show?e("DialogWrapper",{ref:"dialogWrapper",style:t.dialogStyles,attrs:{dialogId:t.dialogId,beforeBack:t.onBeforeClose,location:"modal"}}):t._e()],1)},Le=[];const Ae={name:"DialogModal",components:{DialogWrapper:ct},data(){return{show:!1,timer:null,closIng:!1}},mounted(){n.on("handleMoveTop",this.handleMoveTop)},beforeDestroy(){n.off("handleMoveTop",this.handleMoveTop)},computed:{...u(["dialogId","windowOrientation"]),modalStyles(){return this.windowPortrait?{}:{width:"90%",maxWidth:"720px"}},dialogStyles(){if(this.windowPortrait)return{};const t=Math.min(1100,this.windowHeight),a=t>900?200:70;return{height:"600px",maxHeight:t-a-30+"px"}},transitionNames(){return this.windowPortrait?["mobile-dialog",""]:["ease","fade"]},className(){const t=["dialog-modal",`dialog-${this.windowOrientation}`];return this.closIng>0&&t.push("dialog-closing"),t.join(" ")}},watch:{dialogId(){this.handleShow()},windowPortrait(){this.handleShow()},show(t){this.$store.state.dialogModalShow=t,$A.eeuiAppSetScrollDisabled(t&&this.windowPortrait)}},methods:{onBeforeClose(){return this.$refs.dialogWrapper&&(this.$refs.dialogWrapper.operateVisible=!1),new Promise(async t=>{this.closIng++,await this.$store.dispatch("openDialog",0),await new Promise(a=>setTimeout(a,300)),this.closIng--})},handleShow(){this.show=this.dialogId>0&&(this.windowPortrait||this.routeName!=="manage-messenger")},handleMoveTop(t){var a;t==="dialogModal"&&((a=this.$refs.modal)==null||a.handleMoveTop())}}},R={};var Ie=c(Ae,Se,Le,!1,xe,null,null,null);function xe(t){for(let a in R)this[a]=R[a]}var je=function(){return Ie.exports}(),Pe=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("Modal",{ref:"modal",attrs:{value:t.show,styles:t.styles,"mask-closable":!1,"footer-hide":!0,fullscreen:t.windowPortrait,beforeClose:t.onBeforeClose,"class-name":"common-task-modal"}},[e("TaskDetail",{ref:"taskDetail",attrs:{"task-id":t.taskId,"open-task":t.taskData,modalMode:""}})],1)},Me=[];const Oe={name:"TaskModal",components:{TaskDetail:ot},computed:{...u(["taskId"]),...v(["taskData"]),show(){return this.taskId>0},styles(){return this.windowPortrait?{width:"100%"}:{width:"90%",maxWidth:this.taskData.dialog_id?"1200px":"700px"}}},watch:{show(t){$A.eeuiAppSetScrollDisabled(t&&this.windowPortrait)}},mounted(){n.on("handleMoveTop",this.handleMoveTop)},beforeDestroy(){n.off("handleMoveTop",this.handleMoveTop)},methods:{onBeforeClose(){return new Promise(t=>{this.$store.dispatch("openTask",0)})},checkUpdate(){if(this.show)return this.$refs.taskDetail.checkUpdate(!0),!0},handleMoveTop(t){var a;t==="taskModal"&&((a=this.$refs.modal)==null||a.handleMoveTop())}}},B={};var Re=c(Oe,Pe,Me,!1,Be,null,null,null);function Be(t){for(let a in B)this[a]=B[a]}var Ee=function(){return Re.exports}(),ze=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("Modal",{attrs:{title:t.$L("\u5BFC\u51FA\u4EFB\u52A1\u7EDF\u8BA1"),"mask-closable":!1},model:{value:t.show,callback:function(s){t.show=s},expression:"show"}},[e("Form",t._b({ref:"exportTask",attrs:{model:t.formData},nativeOn:{submit:function(s){s.preventDefault()}}},"Form",t.formOptions,!1),[e("FormItem",{attrs:{label:t.$L("\u5BFC\u51FA\u6210\u5458")}},[e("UserSelect",{attrs:{"multiple-max":100,"avatar-name":"","show-disable":"",title:t.$L("\u8BF7\u9009\u62E9\u6210\u5458")},model:{value:t.formData.userid,callback:function(s){t.$set(t.formData,"userid",s)},expression:"formData.userid"}}),e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u6BCF\u6B21\u6700\u591A\u9009\u62E9\u5BFC\u51FA(*)\u4E2A\u6210\u5458",100)))])],1),e("FormItem",{attrs:{label:t.$L("\u65F6\u95F4\u8303\u56F4")}},[e("DatePicker",{staticStyle:{width:"100%"},attrs:{type:"daterange",format:"yyyy/MM/dd",placeholder:t.$L("\u8BF7\u9009\u62E9\u65F6\u95F4")},model:{value:t.formData.time,callback:function(s){t.$set(t.formData,"time",s)},expression:"formData.time"}}),e("div",{staticClass:"form-tip form-quick-select"},[e("span",[t._v(t._s(t.$L("\u5FEB\u6377\u9009\u62E9"))+":")]),e("em",{on:{click:function(s){t.formData.time=t.dateShortcuts("prev")}}},[t._v(t._s(t.$L("\u4E0A\u4E2A\u6708")))]),e("em",{on:{click:function(s){t.formData.time=t.dateShortcuts("this")}}},[t._v(t._s(t.$L("\u8FD9\u4E2A\u6708")))])])],1),e("FormItem",{attrs:{prop:"type",label:t.$L("\u5BFC\u51FA\u65F6\u95F4\u7C7B\u578B")}},[e("RadioGroup",{model:{value:t.formData.type,callback:function(s){t.$set(t.formData,"type",s)},expression:"formData.type"}},[e("Radio",{attrs:{label:"taskTime"}},[t._v(t._s(t.$L("\u4EFB\u52A1\u65F6\u95F4")))]),e("Radio",{attrs:{label:"createdTime"}},[t._v(t._s(t.$L("\u521B\u5EFA\u65F6\u95F4")))])],1)],1)],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(s){t.show=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.loadIng>0},on:{click:t.onExport}},[t._v(t._s(t.$L("\u5BFC\u51FA")))])],1)],1)},Ne=[];const Fe={name:"TaskExport",components:{UserSelect:k},props:{value:{type:Boolean,default:!1}},data(){return{show:this.value,loadIng:0,formData:{userid:[],time:[],type:"taskTime"}}},watch:{value(t){this.show=t},show(t){this.value!==t&&this.$emit("input",t)}},computed:{...u(["formOptions"])},methods:{dateShortcuts(t){if(t==="prev")return[$A.daytz().subtract(1,"month").startOf("month").format("YYYY-MM-DD"),$A.daytz().subtract(1,"month").endOf("month").format("YYYY-MM-DD")];if(t==="this")return[$A.daytz().startOf("month").format("YYYY-MM-DD"),$A.daytz().endOf("month").format("YYYY-MM-DD")]},onExport(){this.loadIng>0||(this.loadIng++,this.$store.dispatch("call",{url:"project/task/export",data:this.formData}).then(()=>{this.show=!1,$A.modalSuccess("\u6B63\u5728\u6253\u5305\uFF0C\u8BF7\u7559\u610F\u7CFB\u7EDF\u6D88\u606F\u3002")}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.loadIng--}))}}},E={};var Ue=c(Fe,ze,Ne,!1,Ve,null,null,null);function Ve(t){for(let a in E)this[a]=E[a]}var He=function(){return Ue.exports}(),We=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"project-management"},[e("div",{staticClass:"management-title"},[t._v(" "+t._s(t.$L("\u4E3E\u62A5\u7BA1\u7406"))+" "),e("div",{staticClass:"title-icon"},[t.loadIng>0?e("Loading"):t._e()],1)]),e("div",{staticClass:"search-container lr"},[e("ul",[e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u4E3E\u62A5\u7C7B\u578B"))+" ")]),e("div",{staticClass:"search-content"},[e("Select",{attrs:{placeholder:t.$L("\u5168\u90E8")},model:{value:t.keys.type,callback:function(s){t.$set(t.keys,"type",s)},expression:"keys.type"}},[e("Option",{attrs:{value:" "}},[t._v(t._s(t.$L("\u5168\u90E8")))]),t._l(t.typeList,function(s,i){return e("Option",{key:i,attrs:{value:s.id}},[t._v(t._s(t.$L(s.label))+" ")])})],2)],1)]),e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u4E3E\u62A5\u72B6\u6001"))+" ")]),e("div",{staticClass:"search-content"},[e("Select",{attrs:{placeholder:t.$L("\u5168\u90E8")},model:{value:t.keys.status,callback:function(s){t.$set(t.keys,"status",s)},expression:"keys.status"}},[e("Option",{attrs:{value:" "}},[t._v(t._s(t.$L("\u5168\u90E8")))]),e("Option",{attrs:{value:0}},[t._v(t._s(t.$L("\u5F85\u5904\u7406")))]),e("Option",{attrs:{value:1}},[t._v(t._s(t.$L("\u5DF2\u5904\u7406")))])],1)],1)]),e("li",{staticClass:"search-button"},[e("SearchButton",{attrs:{loading:t.loadIng>0,filtering:t.keyIs,placement:"right"},on:{search:t.onSearch,refresh:t.getLists,cancelFilter:function(s){t.keyIs=!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)])},Ke=[];const Ge={name:"ComplaintManagement",components:{SearchButton:_},data(){const t=[{id:10,label:"\u8BC8\u9A97\u8BF1\u5BFC\u8F6C\u8D26"},{id:20,label:"\u5F15\u6D41\u4E0B\u8F7D\u5176\u4ED6APP\u4ED8\u8D39"},{id:30,label:"\u6572\u8BC8\u52D2\u7D22"},{id:40,label:"\u7167\u7247\u4E0E\u672C\u4EBA\u4E0D\u4E00\u81F4"},{id:50,label:"\u8272\u60C5\u4F4E\u4FD7"},{id:60,label:"\u9891\u7E41\u5E7F\u544A\u9A9A\u6270"},{id:70,label:"\u5176\u4ED6\u95EE\u9898"}];return{loadIng:0,keys:{},keyIs:!1,typeList:t,columns:[{title:"ID",key:"id",width:80,render:(a,{row:e,column:s})=>a("TableAction",{props:{column:s,align:"left"}},[a("div",e.id)])},{title:this.$L("\u4E3E\u62A5\u7C7B\u578B"),key:"type",minWidth:120,render:(a,{row:e})=>{const s=this.$L(t.find(i=>i.id==e.type).label);return a("div",{style:{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},on:{click:()=>{$A.modalInfo({language:!1,title:this.$L("\u4E3E\u62A5\u7C7B\u578B"),content:s})}}},s)}},{title:this.$L("\u72B6\u6001"),key:"status",minWidth:80,render:(a,{row:e})=>{let s=e.status==0?"\u672A\u5904\u7406":"\u5DF2\u5904\u7406";return a("div",{style:{color:e.status==0?"#f00":"inherit"}},[a("AutoTip",this.$L(s))])}},{title:this.$L("\u4E3E\u62A5\u539F\u56E0"),minWidth:150,render:(a,{row:e})=>a("div",{style:{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},on:{click:()=>{$A.modalInfo({language:!1,title:this.$L("\u4E3E\u62A5\u539F\u56E0"),content:e.reason})}}},e.reason)},{title:this.$L("\u4E3E\u62A5\u56FE"),minWidth:85,render:(a,{row:e})=>{var i;const s=(i=JSON.parse(e.imgs))==null?void 0:i.map(r=>({src:$A.apiUrl("../"+r)}));return s.length===0?a("div","-"):a("div",{style:{color:"#1890ff"},on:{click:()=>{this.$store.dispatch("previewImage",{index:0,list:s})}}},[a("AutoTip",this.$L("\u70B9\u51FB\u67E5\u770B"))])}},{title:this.$L("\u4E3E\u62A5\u4EBA"),minWidth:100,render:(a,{row:e})=>a("UserAvatar",{props:{showName:!0,size:22,userid:e.userid}})},{title:this.$L("\u521B\u5EFA\u65F6\u95F4"),key:"created_at",width:168},{title:this.$L("\u64CD\u4F5C"),align:"center",width:100,render:(a,e)=>{const s=[e.row.status==0&&a("Poptip",{props:{title:this.$L("\u4F60\u786E\u5B9A\u8981\u5904\u7406\u5417\uFF1F"),confirm:!0,transfer:!0,placement:"left",okText:this.$L("\u786E\u5B9A"),cancelText:this.$L("\u53D6\u6D88")},style:{fontSize:"13px",cursor:"pointer",color:"#84C56A"},on:{"on-ok":()=>{this.handle(e.row)}}},this.$L("\u5904\u7406")),a("Poptip",{props:{title:this.$L("\u4F60\u786E\u5B9A\u8981\u5220\u9664\u5417\uFF1F"),confirm:!0,transfer:!0,placement:"left",okText:this.$L("\u786E\u5B9A"),cancelText:this.$L("\u53D6\u6D88")},style:{marginLeft:e.row.status==0?"8px":"0",fontSize:"13px",cursor:"pointer",color:"#f00"},on:{"on-ok":()=>{this.delete(e.row)}}},this.$L("\u5220\u9664"))];return a("TableAction",{props:{column:e.column}},s)}}],list:[],page:1,pageSize:20,total:0,noText:""}},mounted(){this.getLists()},watch:{keyIs(t){t||(this.keys={},this.setPage(1))}},methods:{onSearch(){this.page=1,this.getLists()},getLists(){this.loadIng++,this.$store.dispatch("call",{url:"complaint/lists",data:{type:this.keys.type,status:this.keys.status,page:Math.max(this.page,1),pagesize:Math.max($A.runNum(this.pageSize),10)}}).then(({data:t})=>{this.page=t.current_page,this.total=t.total,this.list=t.data,this.noText="\u6CA1\u6709\u76F8\u5173\u7684\u6570\u636E"}).catch(()=>{this.noText="\u6570\u636E\u52A0\u8F7D\u5931\u8D25"}).finally(t=>{this.loadIng--})},setPage(t){this.page=t,this.getLists()},setPageSize(t){this.page=1,this.pageSize=t,this.getLists()},handle(t){this.loadIng++,this.$store.dispatch("call",{url:"complaint/action",data:{id:t.id,type:"handle"}}).then(()=>{this.getLists()}).catch(({msg:a})=>{$A.modalError(a)}).finally(a=>{this.loadIng--})},delete(t){this.list=this.list.filter(({id:a})=>a!=t.id),this.loadIng++,this.$store.dispatch("call",{url:"complaint/action",data:{id:t.id,type:"delete"}}).then(()=>{this.getLists()}).catch(({msg:a})=>{$A.modalError(a),this.getLists()}).finally(a=>{this.loadIng--})}}},z={};var Ye=c(Ge,We,Ke,!1,Je,null,null,null);function Je(t){for(let a in z)this[a]=z[a]}var qe=function(){return Ye.exports}(),Qe=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("ModalAlive",{attrs:{"class-name":"common-search-box-modal",closable:!t.isFullscreen,fullscreen:t.isFullscreen,"mask-closable":!1,"footer-hide":!0,width:"768"},model:{value:t.showModal,callback:function(s){t.showModal=s},expression:"showModal"}},[e("div",{staticClass:"search-header"},[e("div",{staticClass:"search-input"},[e("div",{staticClass:"search-pre"},[t.loadIng>0?e("Loading"):e("Icon",{attrs:{type:"ios-search"}})],1),e("Form",{staticClass:"search-form",attrs:{action:"javascript:void(0)"},nativeOn:{submit:function(s){return s.preventDefault(),t.$A.eeuiAppKeyboardHide.apply(null,arguments)}}},[e("Input",{ref:"searchKey",attrs:{type:"search",placeholder:t.$L("\u8BF7\u8F93\u5165\u5173\u952E\u5B57")},model:{value:t.searchKey,callback:function(s){t.searchKey=s},expression:"searchKey"}})],1),t.aiSearchAvailable?e("div",{staticClass:"search-ai",on:{click:t.toggleAiSearch}},[e("i",{staticClass:"taskfont"},[t._v("\uE8A1")]),e("span",[t._v(t._s(t.$L("AI \u641C\u7D22")))])]):t._e()],1),e("div",{staticClass:"search-close",on:{click:t.onHide}},[e("i",{staticClass:"taskfont"},[t._v("\uE6E5")])])]),e("div",{staticClass:"search-body",on:{touchstart:t.onTouchstart}},[e("div",{staticClass:"search-tags"},t._l(t.tags,function(s){return e("div",{key:s.type,staticClass:"tag-item",class:{action:s.type===t.action},on:{click:function(i){return t.onTag(s.type,i)}}},[e("i",{staticClass:"taskfont",domProps:{innerHTML:t._s(s.icon)}}),e("span",[t._v(t._s(t.$L(s.name)))]),s.type===t.action?e("i",{staticClass:"taskfont tag-close"},[t._v("\uE747")]):t._e()])}),0),t.total===0?[t.loadIng+t.loadPre>0||!t.searchKey.trim()?e("div",{staticClass:"search-empty"},[e("i",{staticClass:"taskfont"},[t._v("\uE60B")]),e("span",[t._v(t._s(t.$L(t.loadIng+t.loadPre>0?"\u6B63\u5728\u62FC\u547D\u641C\u7D22...":"\u8BF7\u8F93\u5165\u5173\u952E\u5B57\u641C\u7D22")))])]):e("div",{staticClass:"search-empty"},[e("i",{staticClass:"taskfont"},[t._v("\uE60B")]),e("span",{staticClass:"empty-label"},[t._v(t._s(t.$L("\u6682\u65E0\u76F8\u5173\u7ED3\u679C")))]),e("span",[t._v(t._s(t.$L("\u672A\u641C\u5230\u8DDF\u300C(*)\u300D\u76F8\u5173\u7684\u7ED3\u679C",t.searchKey)))])])]:e("div",{staticClass:"search-list"},t._l(t.list,function(s){return e("ul",{key:s.type},[t.action?t._e():e("li",{staticClass:"item-label"},[t._v(t._s(t.$L(s.name)))]),t._l(s.items,function(i){return e("li",{on:{click:function(r){return t.onClick(i)}}},[e("div",{staticClass:"item-icon"},[i.icons[0]==="file"?e("div",{class:`no-dark-content file-icon ${i.icons[1]}`}):i.icons[0]==="department"?e("i",{staticClass:"taskfont icon-avatar department"},[t._v("\uE75C")]):i.icons[0]==="project"?e("i",{staticClass:"taskfont icon-avatar project"},[t._v("\uE6F9")]):i.icons[0]==="task"?e("i",{staticClass:"taskfont icon-avatar task"},[t._v("\uE6F4")]):i.icons[0]==="user"?e("UserAvatar",{staticClass:"user-avatar",attrs:{userid:i.icons[1],size:38}}):i.icons[0]==="avatar"?e("EAvatar",{staticClass:"img-avatar",attrs:{src:i.icons[1],size:38}}):i.icons[0]==="people"?e("Icon",{staticClass:"icon-avatar",attrs:{type:"ios-people"}}):e("Icon",{staticClass:"icon-avatar",attrs:{type:"md-person"}})],1),e("div",{staticClass:"item-content"},[e("div",{staticClass:"item-title"},[e("div",{staticClass:"title-text",domProps:{innerHTML:t._s(t.transformEmojiToHtml(i.title))}}),i.activity?e("div",{staticClass:"title-activity",attrs:{title:i.activity}},[t._v(t._s(t.activityFormat(i.activity)))]):t._e()]),e("div",{staticClass:"item-desc"},[t._l(i.tags,function(r){return i.tags?e("span",{staticClass:"desc-tag",style:r.style},[t._v(t._s(r.name))]):t._e()}),e("span",{staticClass:"desc-text",domProps:{innerHTML:t._s(t.transformEmojiToHtml(i.desc))}})],2)])])})],2)}),0)],2)])},Xe=[];const Ze={name:"SearchBox",props:{},data(){return{loadPre:0,loadIng:0,searchKey:"",searchResults:[],searchTimer:null,showModal:!1,tags:[{type:"task",name:"\u4EFB\u52A1",icon:""},{type:"project",name:"\u9879\u76EE",icon:""},{type:"message",name:"\u6D88\u606F",icon:""},{type:"contact",name:"\u8054\u7CFB\u4EBA",icon:""},{type:"file",name:"\u6587\u4EF6",icon:""}],action:""}},mounted(){n.on("openSearch",this.onShow)},beforeDestroy(){n.off("openSearch",this.onShow)},watch:{searchKey(){this.preSearch()},action(){this.preSearch()},showModal(t){$A.eeuiAppSetScrollDisabled(t)}},computed:{...v(["aiVisible","appAiHidden"]),...u(["themeName","keyboardShow","microAppsIds"]),aiSearchAvailable(){return this.microAppsIds&&this.microAppsIds.includes("search")&&this.aiVisible},isFullscreen({windowWidth:t}){return t<576},items({searchKey:t,searchResults:a,action:e}){return a.filter(s=>s.key!==t||e&&s.type!==e?!1:this.appAiHidden&&s.type==="message"?!$A.isAiBotDialog(s.rawData):!0)},total(){return this.items.length},list({action:t,tags:a}){const e=new Map,s=t?1/0:10;for(let i=0;i(e.has(r.type)&&i.push({...r,items:e.get(r.type)}),i),[])}},methods:{transformEmojiToHtml:V,activityFormat(t){const a=$A.daytz(),e=$A.dayjs(t);return a.format("YYYY/MM/DD")===e.format("YYYY/MM/DD")?e.format("HH:mm"):a.year()===e.year()?e.format("MM/DD"):e.format("YYYY/MM/DD")||""},onClick(t){switch(t.type){case"task":this.$store.dispatch("openTask",t.rawData),this.onHide();break;case"project":if(t.rawData.archived_at){$A.modalWarning("\u9879\u76EE\u5DF2\u5F52\u6863\uFF0C\u65E0\u6CD5\u67E5\u770B");return}this.goForward({name:"manage-project",params:{projectId:t.id}}),this.onHide();break;case"message":this.$store.dispatch("openDialog",t.id).then(a=>{this.$store.state.dialogSearchMsgId=/^\d+$/.test(t.rawData.search_msg_id)?t.rawData.search_msg_id:0,this.routeName==="manage-messenger"&&this.onHide()}).catch(({msg:a})=>{$A.modalError(a||this.$L("\u6253\u5F00\u4F1A\u8BDD\u5931\u8D25"))});break;case"contact":this.$store.dispatch("openDialogUserid",t.id).then(a=>{this.routeName==="manage-messenger"&&this.onHide()}).catch(({msg:a})=>{$A.modalError(a||this.$L("\u6253\u5F00\u4F1A\u8BDD\u5931\u8D25"))});break;case"file":this.goForward({name:"manage-file",params:{folderId:t.rawData.pid,fileId:null,shakeId:t.id}}),this.$store.state.fileShakeId=t.id,setTimeout(()=>{this.$store.state.fileShakeId=0},600),this.onHide();break}},onTouchstart(){$A.eeuiAppKeyboardHide()},onTag(t,a){this.action=this.action!==t?t:"",$A.scrollToView(a.target,{block:"nearest",inline:"nearest",behavior:"smooth"})},onShow(){const t=this.total===0||this.showModal||!this.windowTouch;this.showModal=!0,t&&this.$nextTick(()=>{var e,s;const a=(s=(e=this.$refs.searchKey)==null?void 0:e.$refs)==null?void 0:s.input;a&&(a.style.caretColor="transparent",a.focus(),setTimeout(()=>{const i=a.value.length;a.setSelectionRange(i,i),a.style.caretColor=null},300))})},onHide(){this.showModal=!1},preSearch(){!this.searchKey.trim()||(this.searchTimer&&(clearTimeout(this.searchTimer),this.searchTimer=null,this.loadPre--),this.loadPre++,this.searchTimer=setTimeout(()=>{this.searchKey.trim()&&this.onSearch(),this.searchTimer=null,this.loadPre--},500))},onSearch(){if(this.action){this.distSearch(this.action);return}this.tags.forEach(({type:t})=>this.distSearch(t))},distSearch(t){const a=this[`search${t.charAt(0).toUpperCase()}${t.slice(1)}`];return typeof a=="function"?(a(this.searchKey),!0):!1},echoSearch(t,a="id"){t.forEach(e=>{const s=this.searchResults.findIndex(i=>i[a]===e[a]&&i.type===e.type);s>-1?this.searchResults.splice(s,1,e):this.searchResults.push(e)})},searchTask(t){this.loadIng++,this.$store.dispatch("call",{url:"search/task",data:{key:t,search_type:"text",take:this.action?50:10}}).then(({data:a})=>{const e=$A.dayjs().unix(),s=a.map(i=>{const r=[];return i.complete_at?r.push({name:this.$L("\u5DF2\u5B8C\u6210"),style:"background-color:#0bc037"}):i.overdue?r.push({name:this.$L("\u8D85\u671F"),style:"background-color:#f00"}):i.end_at&&$A.dayjs(i.end_at).unix()-e<86400&&r.push({name:this.$L("\u5373\u5C06\u5230\u671F"),style:"background-color:#f80"}),i.archived_at&&r.push({name:this.$L("\u5DF2\u5F52\u6863"),style:"background-color:#ccc"}),{key:t,type:"task",icons:["task",null],tags:r,id:i.id,title:i.name,desc:i.desc,activity:i.end_at,rawData:i}});this.echoSearch(s)}).finally(a=>{this.loadIng--})},searchProject(t){this.loadIng++,this.$store.dispatch("call",{url:"search/project",data:{key:t,search_type:"text",take:this.action?50:10}}).then(({data:a})=>{const e=a.map(s=>{const i=[];return s.owner&&i.push({name:this.$L("\u8D1F\u8D23\u4EBA"),style:"background-color:#0bc037"}),s.archived_at&&i.push({name:this.$L("\u5DF2\u5F52\u6863"),style:"background-color:#ccc"}),{key:t,type:"project",icons:["project",null],tags:i,id:s.id,title:s.name,desc:s.desc||"",activity:s.updated_at,rawData:s}});this.echoSearch(e)}).finally(a=>{this.loadIng--})},searchMessage(t){this.loadIng++,this.$store.dispatch("call",{url:"search/message",data:{key:t,search_type:"text",mode:"dialog",take:this.action?50:10}}).then(({data:a})=>{const e=a.data.map(s=>{let i="person",r=null;return s.type=="group"?s.avatar?(i="avatar",r=s.avatar):s.group_type=="department"?i="department":s.group_type=="project"?i="project":["task","okr"].includes(s.group_type)?i="task":i="people":s.dialog_user&&(i="user",r=s.dialog_user.userid),{key:t,type:"message",icons:[i,r],tags:[],id:s.id,title:s.name,desc:$A.getMsgSimpleDesc(s.last_msg),activity:s.last_at,searchMsgId:s.search_msg_id,rawData:s}});this.echoSearch(e,"searchMsgId")}).finally(a=>{this.loadIng--})},searchContact(t){this.loadIng++,this.$store.dispatch("call",{url:"search/contact",data:{key:t,search_type:"text",take:this.action?50:10}}).then(({data:a})=>{const e=a.map(s=>{const i=[];if(s.search_tags&&s.search_tags.length>0){const r=t.toLowerCase();s.search_tags.forEach(o=>{o.toLowerCase().includes(r)&&i.push({name:o,style:"background-color:#2d8cf0"})})}return{key:t,type:"contact",icons:["user",s.userid],tags:i,id:s.userid,title:s.nickname,desc:s.profession||"",activity:s.line_at,rawData:s}});this.echoSearch(e)}).finally(a=>{this.loadIng--})},searchFile(t){this.loadIng++,this.$store.dispatch("call",{url:"search/file",data:{key:t,search_type:"text",take:this.action?50:10}}).then(({data:a})=>{const e=a.map(s=>{const i=[];return s.share&&i.push({name:this.$L(s.userid==this.userId?"\u5DF2\u5171\u4EAB":"\u5171\u4EAB"),style:"background-color:#0bc037"}),{key:t,type:"file",icons:["file",s.type],tags:i,id:s.id,title:s.name,desc:s.type==="folder"?"":$A.bytesToSize(s.size),activity:s.updated_at,rawData:s}});this.echoSearch(e)}).finally(a=>{this.loadIng--})},toggleAiSearch(){const t=this.searchKey.trim();n.emit("openAIAssistant",{sessionKey:"ai-search",resumeSession:86400,title:this.$L("AI \u641C\u7D22"),value:t,placeholder:this.$L("\u8BF7\u63CF\u8FF0\u4F60\u60F3\u641C\u7D22\u7684\u5185\u5BB9..."),loadingText:this.$L("\u641C\u7D22\u4E2D..."),showApplyButton:!1,autoSubmit:!!t,onBeforeSend:this.handleAISearchBeforeSend}),this.onHide()},handleAISearchBeforeSend(t=[]){const a=[["system",b(q)]];return t.length>0&&a.push(...t),a}}},N={};var ta=c(Ze,Qe,Xe,!1,ea,null,null,null);function ea(t){for(let a in N)this[a]=N[a]}var aa=function(){return ta.exports}(),sa=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"page-manage",class:t.pageClass},[e("div",{ref:"boxMenu",staticClass:"manage-box-menu",class:{"menu-resizing":t.menuResizing},style:t.menuStyle},[e("Dropdown",{staticClass:"page-manage-menu-dropdown main-menu",attrs:{trigger:"click"},on:{"on-click":t.settingRoute,"on-visible-change":t.menuVisibleChange}},[e("div",{class:["manage-box-title",t.visibleMenu?"menu-visible":""]},[e("div",{staticClass:"manage-box-avatar"},[e("UserAvatar",{attrs:{userid:t.userId,size:36}})],1),e("span",[t._v(t._s(t.userInfo.nickname))]),t.clientNewVersion?e("Badge",{staticClass:"manage-box-top-report",attrs:{dot:""}}):t._e(),e("div",{staticClass:"manage-box-arrow"},[e("Icon",{attrs:{type:"ios-arrow-up"}}),e("Icon",{attrs:{type:"ios-arrow-down"}})],1)],1),e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[t._l(t.menu,function(s,i){return[s.path==="taskBrowse"?e("Dropdown",{key:`taskBrowse-${i}`,attrs:{transfer:"","transfer-class-name":"page-manage-menu-dropdown max-h-400",placement:"right-start"}},[e("DropdownItem",{attrs:{divided:!!s.divided}},[e("div",{staticClass:"manage-menu-flex"},[e("div",{staticClass:"manage-menu-title"},[t._v(" "+t._s(t.$L(s.name))+" ")]),e("Icon",{attrs:{type:"ios-arrow-forward"}})],1)]),t.taskBrowseLists.length>0?e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[t._l(t.taskBrowseLists,function(r,o){return[r.id>0&&o<10?e("DropdownItem",{key:`task-${o}`,staticClass:"task-title",style:t.$A.generateColorVarStyle(r.flow_item_color,[10],"flow-item-custom-color"),attrs:{name:r.name},nativeOn:{click:function(d){return t.openTask(r)}}},[r.flow_item_name?e("span",{class:r.flow_item_status},[t._v(t._s(r.flow_item_name))]):t._e(),e("div",{staticClass:"task-title-text"},[t._v(t._s(r.name))])]):t._e()]}),e("DropdownItem",{key:"task-browse-view-more",staticClass:"task-title task-view-more",attrs:{name:"taskBrowseViewMore"},nativeOn:{click:function(r){return t.openRecent.apply(null,arguments)}}},[e("div",{staticClass:"task-title-text"},[t._v(t._s(t.$L("\u67E5\u770B\u66F4\u591A...")))])])],2):e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[e("DropdownItem",{staticStyle:{color:"darkgrey"}},[t._v(t._s(t.$L("\u6682\u65E0\u6253\u5F00\u8BB0\u5F55")))])],1)],1):s.path==="team"?e("Dropdown",{key:`team-${i}`,attrs:{transfer:"","transfer-class-name":"page-manage-menu-dropdown",placement:"right-start"}},[e("DropdownItem",{attrs:{divided:!!s.divided}},[e("div",{staticClass:"manage-menu-flex"},[e("div",{staticClass:"manage-menu-title"},[t._v(" "+t._s(t.$L(s.name))+" ")]),e("Icon",{attrs:{type:"ios-arrow-forward"}})],1)]),e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[e("DropdownItem",{attrs:{name:"allUser"}},[t._v(t._s(t.$L("\u56E2\u961F\u7BA1\u7406")))]),e("DropdownItem",{attrs:{name:"exportTask"}},[t._v(t._s(t.$L("\u5BFC\u51FA\u4EFB\u52A1\u7EDF\u8BA1")))]),e("DropdownItem",{attrs:{name:"exportOverdueTask"}},[t._v(t._s(t.$L("\u5BFC\u51FA\u8D85\u671F\u4EFB\u52A1")))]),e("DropdownItem",{attrs:{name:"exportCheckin"}},[t._v(t._s(t.$L("\u5BFC\u51FA\u7B7E\u5230\u6570\u636E")))])],1)],1):s.path==="departmentOwnerView"?e("DropdownItem",{key:`menu-${i}`,style:s.style||{},attrs:{divided:!!s.divided,name:s.path}},[e("div",{staticClass:"manage-menu-flex"},[e("div",{staticClass:"manage-menu-title"},[t._v(" "+t._s(t.$L(s.name))+" ")]),s.selectedCount>0?e("Badge",{staticClass:"manage-menu-report-badge",attrs:{"overflow-count":999,count:s.selectedCount}}):t._e()],1)]):s.visible!==!1?[e("DropdownItem",{key:`menu-${i}`,style:s.style||{},attrs:{divided:!!s.divided,name:s.path}},[e("div",{staticClass:"manage-menu-flex"},[e("div",{staticClass:"manage-menu-title"},[t._v(" "+t._s(t.$L(s.name))+" ")]),s.selected===!0?e("Icon",{attrs:{type:"md-checkmark"}}):t._e(),s.path==="version"?e("Badge",{staticClass:"manage-menu-report-badge",attrs:{text:t.clientNewVersion}}):s.path==="workReport"&&t.reportUnreadNumber>0?e("Badge",{staticClass:"manage-menu-report-badge",attrs:{count:t.reportUnreadNumber}}):t._e()],1)])]:t._e()]})],2)],1),e("Scrollbar",{attrs:{"class-name":"manage-item"},on:{"on-scroll":function(s){t.operateVisible=!1}}},[e("div",{staticClass:"menu-base"},[e("ul",[e("li",{class:t.classNameRoute("dashboard"),on:{click:function(s){return t.toggleRoute("dashboard")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE6FB")]),e("div",{staticClass:"menu-title"},[t._v(t._s(t.$L("\u4EEA\u8868\u76D8")))]),t.dashboardTask.overdue_count>0?e("Badge",{staticClass:"menu-badge",attrs:{type:"error","overflow-count":999,count:t.dashboardTask.overdue_count}}):t.dashboardTask.today_count>0?e("Badge",{staticClass:"menu-badge",attrs:{type:"info","overflow-count":999,count:t.dashboardTask.today_count}}):t.dashboardTask.todo_count>0?e("Badge",{staticClass:"menu-badge",attrs:{type:"primary","overflow-count":999,count:t.dashboardTask.todo_count}}):t._e()],1),e("li",{class:t.classNameRoute("calendar"),on:{click:function(s){return t.toggleRoute("calendar")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE6F5")]),e("div",{staticClass:"menu-title"},[t._v(t._s(t.$L("\u65E5\u5386")))])]),e("li",{class:t.classNameRoute("messenger"),on:{click:function(s){return t.toggleRoute("messenger")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE6EB")]),e("div",{staticClass:"menu-title"},[t._v(t._s(t.$L("\u6D88\u606F")))]),e("Badge",{staticClass:"menu-badge",attrs:{"overflow-count":999,text:t.msgUnreadMention}})],1),e("li",{class:t.classNameRoute("file"),on:{click:function(s){return t.toggleRoute("file")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE6F3")]),e("div",{staticClass:"menu-title"},[t._v(t._s(t.$L("\u6587\u4EF6")))])]),e("li",{class:t.classNameRoute("application"),on:{click:function(s){return t.toggleRoute("application")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE60C")]),e("div",{staticClass:"menu-title"},[t._v(t._s(t.$L("\u5E94\u7528")))]),t.applicationBadgeCount>0?e("Badge",{staticClass:"menu-badge",attrs:{"overflow-count":999,count:t.applicationBadgeCount}}):t.applicationBadgeDot?e("Badge",{staticClass:"menu-badge",attrs:{dot:""}}):t._e()],1),t._l(t.filterMicroAppsMenusMain,function(s,i){return e("li",{key:i,on:{click:function(r){return t.onTabbarClick("microApp",s)}}},[e("div",{staticClass:"apply-icon no-dark-content",style:{backgroundImage:`url(${s.icon})`}}),e("div",{staticClass:"menu-title"},[t._v(t._s(s.label))]),t.microBadge(s).count>0?e("Badge",{staticClass:"menu-badge",attrs:{"overflow-count":999,count:t.microBadge(s).count}}):t.microBadge(s).dot?e("Badge",{staticClass:"menu-badge",attrs:{dot:""}}):t._e()],1)})],2),t.ownerProjectTabsVisible?e("div",{staticClass:"owner-project-tabs"},t._l(t.ownerProjectTabs,function(s){return e("div",{key:s.type,class:["owner-project-tab",t.ownerProjectTab===s.type?"active":""],attrs:{title:t.$L(s.name)},on:{click:function(i){t.ownerProjectTab=s.type}}},[e("span",[t._v(t._s(t.$L(s.name)))]),e("Badge",{attrs:{"overflow-count":999,count:s.count}})],1)}),0):t._e()]),e("div",{ref:"menuProject",staticClass:"menu-project"},[e("Draggable",{directives:[{name:"longpress",rawName:"v-longpress",value:t.handleLongpress,expression:"handleLongpress"}],attrs:{list:t.projectDraggableList,animation:150,disabled:t.$isEEUIApp||t.windowTouch||!!t.projectKeyValue||t.ownerProjectTabsVisible,tag:"ul","item-key":"id",draggable:"li:not(.pinned)",handle:".project-h1"},on:{start:function(s){t.projectDragging=!0},end:t.onProjectSortEnd}},[t._l(t.projectDraggableList,function(s){return e("li",{key:s.id,ref:`project_${s.id}`,refInFor:!0,class:[t.classNameProject(s),s.top_at?"pinned":""],attrs:{"data-id":s.id},on:{pointerdown:t.handleOperation,click:function(i){return t.toggleRoute("project",{projectId:s.id})}}},[e("div",{staticClass:"project-h1"},[e("em",{on:{click:function(i){return i.stopPropagation(),t.toggleOpenMenu(s.id)}}}),e("div",{staticClass:"title",domProps:{innerHTML:t._s(t.transformEmojiToHtml(s.name))}}),s.department_readonly&&s.personal?e("ETooltip",{attrs:{content:t.$L("\u4E2A\u4EBA\u9879\u76EE\uFF0C\u53EA\u8BFB\u67E5\u770B"),placement:"right"}},[e("UserAvatar",{staticClass:"readonly-owner-avatar",attrs:{userid:s.userid,size:18}})],1):s.department_readonly?e("ETooltip",{attrs:{content:t.$L("\u8D1F\u8D23\u4EBA\u89C6\u89D2\uFF0C\u53EA\u8BFB\u67E5\u770B"),placement:"right"}},[e("i",{staticClass:"taskfont readonly-project-avatar"},[t._v("\uE75C")])]):t._e(),s.top_at?e("div",{staticClass:"icon-top"}):t._e(),s.task_my_num-s.task_my_complete>0?e("div",{staticClass:"num"},[t._v(t._s(s.task_my_num-s.task_my_complete))]):t._e()],1),e("div",{staticClass:"project-h2"},[e("p",[e("em",[t._v(t._s(t.$L("\u6211\u7684"))+":")]),e("span",[t._v(t._s(s.task_my_complete)+"/"+t._s(s.task_my_num))]),e("Progress",{attrs:{percent:s.task_my_percent,"stroke-width":6}})],1),e("p",[e("em",[t._v(t._s(t.$L("\u5168\u90E8"))+":")]),e("span",[t._v(t._s(s.task_complete)+"/"+t._s(s.task_num))]),e("Progress",{attrs:{percent:s.task_percent,"stroke-width":6}})],1)])])}),t.projectKeyLoading>0||t.departmentOwnerProjectsRefreshing?e("li",{staticClass:"loading"},[e("Loading")],1):t.projectLists.length===0?e("li",{staticClass:"nothing"},[t._v(" "+t._s(t.$L(t.projectKeyValue?`\u6CA1\u6709\u4EFB\u4F55\u4E0E"${t.projectKeyValue}"\u76F8\u5173\u7684\u7ED3\u679C`:"\u6CA1\u6709\u4EFB\u4F55\u9879\u76EE"))+" ")]):t._e()],2)],1)]),e("div",{directives:[{name:"transfer-dom",rawName:"v-transfer-dom"},{name:"show",rawName:"v-show",value:t.operateVisible,expression:"operateVisible"}],staticClass:"operate-position",style:t.operateStyles,attrs:{"data-transfer":!0}},[e("Dropdown",{attrs:{trigger:"custom",placement:t.windowLandscape?"bottom":"top",visible:t.operateVisible,transfer:""},on:{"on-clickoutside":function(s){t.operateVisible=!1}}},[e("div",{style:{userSelect:t.operateVisible?"none":"auto",height:t.operateStyles.height}}),e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[e("DropdownItem",{nativeOn:{click:function(s){return t.handleTopClick.apply(null,arguments)}}},[t._v(" "+t._s(t.$L(t.operateItem.top_at?"\u53D6\u6D88\u7F6E\u9876":"\u7F6E\u9876\u8BE5\u9879\u76EE"))+" ")]),e("DropdownItem",{nativeOn:{click:function(s){return t.handleChatClick.apply(null,arguments)}}},[t._v(" "+t._s(t.$L("\u9879\u76EE\u8BA8\u8BBA"))+" ")])],1)],1)],1),t.projectKeyValue||(t.projectSearchShow||t.projectTotal>20)&&t.windowHeight>600?e("div",{staticClass:"manage-project-search"},[e("div",{staticClass:"search-pre"},[t.projectKeyLoading>0?e("Loading"):e("Icon",{attrs:{type:"ios-search"}})],1),e("Form",{staticClass:"search-form",attrs:{action:"javascript:void(0)"},nativeOn:{submit:function(s){return s.preventDefault(),t.$A.eeuiAppKeyboardHide.apply(null,arguments)}}},[e("Input",{attrs:{type:"search",placeholder:t.$L("\u5171(*)\u4E2A\u9879\u76EE\uFF0C\u641C\u7D22...",t.projectTotal||t.cacheProjects.length),clearable:""},model:{value:t.projectKeyValue,callback:function(s){t.projectKeyValue=s},expression:"projectKeyValue"}})],1)],1):t._e(),e("ButtonGroup",{staticClass:"manage-box-new-group"},[e("Button",{staticClass:"manage-box-new",attrs:{type:"primary",icon:"md-add"},on:{click:function(s){return t.onAddMenu("task")}}},[t._v(t._s(t.$L("\u65B0\u5EFA\u4EFB\u52A1")))]),e("Dropdown",{attrs:{trigger:"click"},on:{"on-click":t.onAddMenu}},[e("Button",{attrs:{type:"primary"}},[e("Icon",{attrs:{type:"ios-arrow-down"}})],1),e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[t.aiVisible?e("DropdownItem",{attrs:{name:"aiAssistant"}},[t._v(t._s(t.$L("AI \u52A9\u624B"))+" ("+t._s(t.mateName)+"+I)")]):t._e(),e("DropdownItem",{attrs:{name:"task"}},[t._v(t._s(t.$L("\u65B0\u5EFA\u4EFB\u52A1"))+" ("+t._s(t.mateName)+"+K)")]),e("DropdownItem",{attrs:{name:"project"}},[t._v(t._s(t.$L("\u65B0\u5EFA\u9879\u76EE"))+" ("+t._s(t.mateName)+"+B)")]),e("DropdownItem",{attrs:{name:"group"}},[t._v(t._s(t.$L("\u521B\u5EFA\u7FA4\u7EC4"))+" ("+t._s(t.mateName)+"+U)")]),e("DropdownItem",{attrs:{name:"createMeeting"}},[t._v(t._s(t.$L("\u65B0\u4F1A\u8BAE"))+" ("+t._s(t.mateName)+"+J)")]),e("DropdownItem",{attrs:{name:"joinMeeting"}},[t._v(t._s(t.$L("\u52A0\u5165\u4F1A\u8BAE")))])],1)],1)],1),e("ResizeLine",{staticClass:"manage-menu-resize",attrs:{placement:"right",min:200,max:420},on:{"on-change":t.onMenuResizeChange},model:{value:t.menuWidth,callback:function(s){t.menuWidth=s},expression:"menuWidth"}})],1),e("div",{staticClass:"manage-box-main",attrs:{role:t.routeName}},[t._m(0),e("keep-alive",[e("router-view",{staticClass:"manage-box-view",on:{"on-click":t.onTabbarClick}})],1),t._m(1)],1),e("Modal",{attrs:{title:t.$L("\u65B0\u5EFA\u9879\u76EE"),"mask-closable":!1},model:{value:t.addShow,callback:function(s){t.addShow=s},expression:"addShow"}},[e("Form",t._b({ref:"addProject",attrs:{model:t.addData,rules:t.addRule},nativeOn:{submit:function(s){s.preventDefault()}}},"Form",t.formOptions,!1),[e("FormItem",{attrs:{prop:"name",label:t.$L("\u9879\u76EE\u540D\u79F0")}},[e("div",{staticClass:"page-manage-project-ai-wrapper"},[e("Input",{ref:"projectName",attrs:{type:"text"},model:{value:t.addData.name,callback:function(s){t.$set(t.addData,"name",s)},expression:"addData.name"}}),t.aiVisible?e("div",{staticClass:"project-ai-button",attrs:{type:"text"},on:{click:t.onProjectAI}},[e("i",{staticClass:"taskfont"},[t._v("\uE8A1")])]):t._e()],1)]),t.addData.columns?e("FormItem",{attrs:{label:t.$L("\u4EFB\u52A1\u5217\u8868")}},[e("TagInput",{attrs:{cut:[",","\uFF0C"," "]},model:{value:t.addData.columns,callback:function(s){t.$set(t.addData,"columns",s)},expression:"addData.columns"}})],1):e("FormItem",{attrs:{label:t.$L("\u9879\u76EE\u6A21\u677F")}},[e("Select",{attrs:{value:0,placeholder:t.$L("\u8BF7\u9009\u62E9\u6A21\u677F")},on:{"on-change":t.selectChange}},t._l(t.columns,function(s,i){return e("Option",{key:i,attrs:{value:i}},[t._v(t._s(s.name))])}),1)],1),e("FormItem",{attrs:{prop:"flow",label:t.$L("\u5F00\u542F\u5DE5\u4F5C\u6D41")}},[e("RadioGroup",{model:{value:t.addData.flow,callback:function(s){t.$set(t.addData,"flow",s)},expression:"addData.flow"}},[e("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),e("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1)],1)],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(s){t.addShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.loadIng>0},on:{click:t.onAddProject}},[t._v(t._s(t.$L("\u6DFB\u52A0")))])],1)],1),e("Modal",{attrs:{"mask-closable":!1,styles:{width:"90%",maxWidth:"640px"},"footer-hide":""},model:{value:t.addTaskShow,callback:function(s){t.addTaskShow=s},expression:"addTaskShow"}},[e("TaskAdd",{ref:"addTask",model:{value:t.addTaskShow,callback:function(s){t.addTaskShow=s},expression:"addTaskShow"}})],1),e("Modal",{attrs:{title:t.$L("\u521B\u5EFA\u7FA4\u7EC4"),"mask-closable":!1},model:{value:t.createGroupShow,callback:function(s){t.createGroupShow=s},expression:"createGroupShow"}},[e("Form",t._b({attrs:{model:t.createGroupData},nativeOn:{submit:function(s){s.preventDefault()}}},"Form",t.formOptions,!1),[e("FormItem",{attrs:{prop:"avatar",label:t.$L("\u7FA4\u5934\u50CF")}},[e("ImgUpload",{attrs:{num:1,width:512,height:512,whcut:"cover"},model:{value:t.createGroupData.avatar,callback:function(s){t.$set(t.createGroupData,"avatar",s)},expression:"createGroupData.avatar"}})],1),e("FormItem",{attrs:{prop:"userids",label:t.$L("\u7FA4\u6210\u5458")}},[e("UserSelect",{attrs:{uncancelable:t.createGroupData.uncancelable,"multiple-max":100,"show-bot":"",title:t.$L("\u9009\u62E9\u9879\u76EE\u6210\u5458")},model:{value:t.createGroupData.userids,callback:function(s){t.$set(t.createGroupData,"userids",s)},expression:"createGroupData.userids"}})],1),e("FormItem",{attrs:{prop:"chat_name",label:t.$L("\u7FA4\u540D\u79F0")}},[e("Input",{attrs:{placeholder:t.$L("\u8F93\u5165\u7FA4\u540D\u79F0\uFF08\u9009\u586B\uFF09")},model:{value:t.createGroupData.chat_name,callback:function(s){t.$set(t.createGroupData,"chat_name",s)},expression:"createGroupData.chat_name"}})],1)],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(s){t.createGroupShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.createGroupLoad>0},on:{click:t.submitCreateGroup}},[t._v(t._s(t.$L("\u521B\u5EFA")))])],1)],1),e("MCPHelper",{model:{value:t.mcpHelperShow,callback:function(s){t.mcpHelperShow=s},expression:"mcpHelperShow"}}),e("DepartmentOwnerView",{model:{value:t.departmentOwnerViewShow,callback:function(s){t.departmentOwnerViewShow=s},expression:"departmentOwnerViewShow"}}),e("TaskExport",{model:{value:t.exportTaskShow,callback:function(s){t.exportTaskShow=s},expression:"exportTaskShow"}}),e("CheckinExport",{model:{value:t.exportCheckinShow,callback:function(s){t.exportCheckinShow=s},expression:"exportCheckinShow"}}),e("TaskModal",{ref:"taskModal"}),e("DialogModal",{ref:"dialogModal"}),e("SearchBox",{ref:"searchBox"}),e("DrawerOverlay",{attrs:{placement:"right",size:1200},model:{value:t.workReportShow,callback:function(s){t.workReportShow=s},expression:"workReportShow"}},[t.workReportShow?e("Report",{on:{"on-read":function(s){return t.$store.dispatch("getReportUnread",1e3)}},model:{value:t.workReportTab,callback:function(s){t.workReportTab=s},expression:"workReportTab"}}):t._e()],1),e("DrawerOverlay",{attrs:{placement:"right",size:1200},model:{value:t.favoriteShow,callback:function(s){t.favoriteShow=s},expression:"favoriteShow"}},[t.favoriteShow?e("FavoriteManagement",{on:{"on-close":function(s){t.favoriteShow=!1}}}):t._e()],1),e("DrawerOverlay",{attrs:{placement:"right",size:1200},model:{value:t.recentShow,callback:function(s){t.recentShow=s},expression:"recentShow"}},[t.recentShow?e("RecentManagement",{on:{"on-close":function(s){t.recentShow=!1}}}):t._e()],1),e("DrawerOverlay",{attrs:{placement:"right",size:1380},model:{value:t.allUserShow,callback:function(s){t.allUserShow=s},expression:"allUserShow"}},[t.allUserShow?e("TeamManagement",{on:{"on-close":function(s){t.allUserShow=!1}}}):t._e()],1),e("DrawerOverlay",{attrs:{placement:"right",size:1200},model:{value:t.allProjectShow,callback:function(s){t.allProjectShow=s},expression:"allProjectShow"}},[t.allProjectShow?e("ProjectManagement"):t._e()],1),e("DrawerOverlay",{attrs:{placement:"right",size:1200},model:{value:t.complaintShow,callback:function(s){t.complaintShow=s},expression:"complaintShow"}},[t.complaintShow?e("ComplaintManagement"):t._e()],1),e("DrawerOverlay",{attrs:{placement:"right",size:1200},model:{value:t.archivedProjectShow,callback:function(s){t.archivedProjectShow=s},expression:"archivedProjectShow"}},[t.archivedProjectShow?e("ProjectArchived"):t._e()],1),e("transition",{attrs:{name:"mobile-slide"}},[t.mobileTabbar?e("MobileTabbar",{on:{"on-click":t.onTabbarClick}}):t._e()],1),e("MicroApps")],1)},ia=[function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"manage-status-bar"},[e("span")])},function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"manage-navigation-bar"},[e("span")])}];const ra={components:{SearchBox:aa,ImgUpload:ht,UserSelect:k,TaskExport:He,CheckinExport:tt,TaskModal:Ee,DialogModal:je,MobileTabbar:qt,TaskAdd:le,Report:Te,DrawerOverlay:H,ProjectManagement:Ht,TeamManagement:et,MCPHelper:Tt,FavoriteManagement:jt,RecentManagement:Et,ProjectArchived:yt,MicroApps:dt,ResizeLine:st,ComplaintManagement:qe,Draggable:ut,DepartmentOwnerView:mt},directives:{longpress:Q,TransferDom:X},data(){return{loadIng:0,mateName:/macintosh|mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl",addShow:!1,addData:{name:"",columns:"",flow:"open"},addRule:{name:[{required:!0,message:this.$L("\u8BF7\u586B\u5199\u9879\u76EE\u540D\u79F0\uFF01"),trigger:"change"},{type:"string",min:2,message:this.$L("\u9879\u76EE\u540D\u79F0\u81F3\u5C11(*)\u4E2A\u5B57\uFF01",2),trigger:"change"}]},addTaskShow:!1,createGroupShow:!1,createGroupData:{},createGroupLoad:0,exportTaskShow:!1,exportCheckinShow:!1,projectKeyValue:"",projectKeyLoading:0,projectSearchShow:!1,projectDraggableList:[],projectDragging:!1,ownerProjectTab:"mine",openMenu:{},visibleMenu:!1,allUserShow:!1,allProjectShow:!1,archivedProjectShow:!1,favoriteShow:!1,recentShow:!1,natificationReady:!1,notificationManage:null,workReportShow:!1,workReportTab:"my",operateStyles:{},operateVisible:!1,operateItem:{},complaintShow:!1,taskBrowseLoading:!1,taskBrowseHistory:[],mcpHelperShow:!1,departmentOwnerViewShow:!1,menuWidth:Math.min(420,Math.max(200,$A.getStorageInt("manage.menuWidth",255))),menuResizing:!1}},mounted(){this.notificationInit(),n.on("addTask",this.onAddTask),n.on("createGroup",this.onCreateGroup),n.on("dialogMsgPush",this.addDialogMsg),n.on("openReport",this.openReport),n.on("openFavorite",this.openFavorite),n.on("openRecent",this.openRecent),n.on("openManageExport",this.openManageExport),document.addEventListener("keydown",this.shortcutEvent)},activated(){this.$store.dispatch("getUserInfo").catch(t=>{}),this.$store.dispatch("getTaskPriority",1e3),this.$store.dispatch("getReportUnread",1e3)},beforeDestroy(){n.off("addTask",this.onAddTask),n.off("createGroup",this.onCreateGroup),n.off("dialogMsgPush",this.addDialogMsg),n.off("openReport",this.openReport),n.off("openFavorite",this.openFavorite),n.off("openRecent",this.openRecent),n.off("openManageExport",this.openManageExport),document.removeEventListener("keydown",this.shortcutEvent)},deactivated(){this.addShow=!1},computed:{...u(["userInfo","userIsAdmin","cacheUserBasic","cacheTasks","cacheDialogs","cacheProjects","projectTotal","themeName","wsOpenNum","columnTemplate","clientNewVersion","clientDownloadUrl","reportUnreadNumber","dialogIns","formOptions","systemConfig","mobileTabbar","longpressData","departmentOwnerProjectsRefreshing","departmentOwnerProjectViewEnabled","mcpServerStatus"]),...v(["aiVisible","dashboardTask","filterMicroAppsMenusMain","visibleDialogs"]),...v("appBadges",{applicationBadgeCount:"applicationCount",applicationBadgeDot:"applicationDot"}),departmentOwnerViewAvailable(){return this.systemConfig.department_owner_project_view==="open"&&(this.userInfo.managed_departments||[]).length>0},cacheDepartmentOwnerIds(){return this.$store.state.cacheDepartmentOwnerIds||[]},pageClass({mobileTabbar:t,userId:a}){return{"show-tabbar":t,"not-logged":a<=0}},menuStyle(){return{width:`${this.menuWidth}px`}},msgUnreadMention(){let t=0,a=0;this.visibleDialogs.some(s=>{t+=$A.getDialogUnread(s,!1),a+=$A.getDialogMention(s)}),t>999&&(t="999+"),a>999&&(a="999+");const e=this.msgTodoTotal;return e?a?`@${a}\xB7${e}`:t?`${t}\xB7${e}`:e:t?a?`${t}\xB7@${a}`:String(t):a?`@${a}`:""},msgAllUnread(){let t=0;return this.visibleDialogs.some(a=>{t+=$A.getDialogNum(a)}),t},msgTodoTotal(){let t=this.visibleDialogs.reduce((a,e)=>a+(e.todo_num||0),0);return t>0?(t>99?t="99+":t===1&&(t=""),`${this.$L("\u5F85\u529E")}${t}`):null},unreadAndOverdue(){return this.userId>0?this.msgAllUnread+this.dashboardTask.overdue_count:0},showDownloadClient(){return!this.$Electron&&!this.$isEEUIApp&&!!this.clientDownloadUrl},menu(){const{userIsAdmin:t}=this,a=[{path:"taskBrowse",name:"\u6700\u8FD1\u6253\u5F00\u7684\u4EFB\u52A1"},{path:"favorite",name:"\u6211\u7684\u6536\u85CF"},{path:"download",name:"\u4E0B\u8F7D\u5185\u5BB9",visible:!!this.$Electron},{path:"mcpServer",name:"\u542F\u7528\u684C\u9762 MCP \u670D\u52A1\u5668",visible:!!this.$Electron,selected:this.mcpServerStatus.running==="running"}];return t?a.push({path:"personal",name:"\u4E2A\u4EBA\u8BBE\u7F6E",divided:!0},{path:"system",name:"\u7CFB\u7EDF\u8BBE\u7F6E"},{path:"license",name:"License Key"},{path:"downloadClient",name:"\u5BA2\u6237\u7AEF\u4E0B\u8F7D",divided:!0,visible:this.showDownloadClient},{path:"version",name:"\u66F4\u65B0\u7248\u672C",divided:!0,visible:!!this.clientNewVersion},{path:"allProject",name:"\u6240\u6709\u9879\u76EE",divided:!0},{path:"archivedProject",name:"\u5DF2\u5F52\u6863\u7684\u9879\u76EE"},{path:"team",name:"\u56E2\u961F\u7BA1\u7406",divided:!0}):a.push({path:"personal",name:"\u4E2A\u4EBA\u8BBE\u7F6E",divided:!0},{path:"downloadClient",name:"\u5BA2\u6237\u7AEF\u4E0B\u8F7D",divided:!0,visible:this.showDownloadClient},{path:"version",name:"\u66F4\u65B0\u7248\u672C",divided:!0,visible:!!this.clientNewVersion},{path:"workReport",name:"\u5DE5\u4F5C\u62A5\u544A",divided:!0},{path:"archivedProject",name:"\u5DF2\u5F52\u6863\u7684\u9879\u76EE"}),this.departmentOwnerViewAvailable&&a.push({path:"departmentOwnerView",name:"\u8D1F\u8D23\u4EBA\u89C6\u89D2",divided:!t,visible:!0,selected:this.departmentOwnerProjectViewEnabled,selectedCount:this.departmentOwnerProjectViewEnabled?this.cacheDepartmentOwnerIds.length:0}),a.push({path:"clearCache",name:"\u6E05\u9664\u7F13\u5B58",divided:!0},{path:"logout",name:"\u9000\u51FA\u767B\u5F55",style:{color:"#f40"}}),a},columns(){const t=$A.cloneJSON(this.columnTemplate);return t.unshift({name:this.$L("\u7A7A\u767D\u6A21\u677F"),columns:[]}),t},projectBaseLists(){const{projectKeyValue:t,cacheProjects:a}=this,e=$A.cloneJSON(a).sort((s,i)=>{if(s.top_at!==i.top_at&&(s.top_at||i.top_at))return $A.sortDay(i.top_at,s.top_at);const r=typeof s.sort=="number"?s.sort:Number.MAX_SAFE_INTEGER,o=typeof i.sort=="number"?i.sort:Number.MAX_SAFE_INTEGER;return r!==o?r-o:i.id-s.id});return t?e.filter(s=>$A.strExists(`${s.name} ${s.desc}`,t)):e},ownerProjectTabsVisible(){return this.departmentOwnerViewAvailable&&this.departmentOwnerProjectViewEnabled},ownerProjectTabs(){return[{type:"mine",name:"\u6211\u7684\u9879\u76EE",count:this.projectBaseLists.filter(t=>!t.department_readonly).length},{type:"readonly",name:"\u8D1F\u8D23\u4EBA\u89C6\u89D2",count:this.projectBaseLists.filter(t=>t.department_readonly).length}]},routeProjectId(){const{projectId:t}=this.$route.params;return parseInt(/^\d+$/.test(t)?t:0)},routeProject(){return this.routeProjectId<=0?null:this.cacheProjects.find(({id:t})=>t==this.routeProjectId)||null},projectLists(){return this.ownerProjectTabsVisible?this.projectBaseLists.filter(t=>this.ownerProjectTab==="readonly"?t.department_readonly:!t.department_readonly):this.projectBaseLists},taskBrowseLists(){return this.taskBrowseHistory.slice(0,10)}},watch:{$route(){this.chackPass()},userInfo(){this.chackPass()},projectKeyValue(t){t!=""&&setTimeout(()=>{this.projectKeyValue==t&&this.searchProject()},600)},wsOpenNum(t){t<=1||this.$store.dispatch("getBasicData",600)},workReportShow(t){!t||this.$store.dispatch("getReportUnread",0)},windowActive(t){!t||this.$store.dispatch("getProjectByQueue",600)},themeName:{handler(t){this.$Electron&&$A.Electron.request({action:"updateDownloadWindow",language:y,theme:t})},immediate:!0},"cacheProjects.length":{handler(){this.$nextTick(t=>{const a=this.$refs.menuProject,e=$A.last($A.getObject(a,"children.0.children"));if(e){const s=e.getBoundingClientRect(),i=a.getBoundingClientRect();if(s.top>i.top+i.height){this.projectSearchShow=!0;return}}this.projectSearchShow=!1})},immediate:!0},ownerProjectTabs:{handler(t){if(!this.ownerProjectTabsVisible){this.ownerProjectTab="mine";return}const a=t.find(e=>e.type===this.ownerProjectTab);if(!a||a.count===0){const e=t.find(s=>s.count>0);e&&(this.ownerProjectTab=e.type)}this.syncOwnerProjectTabByRoute()},immediate:!0},routeProject:{handler(){this.syncOwnerProjectTabByRoute()},immediate:!0},projectLists:{handler(t){this.projectDragging||(this.projectDraggableList=$A.cloneJSON(t))},immediate:!0},unreadAndOverdue:{handler(t){this.$Electron&&this.$Electron.sendMessage("setDockBadge",t)},immediate:!0},mcpServerStatus:{handler(t){!this.$Electron||this.$Electron.sendMessage("mcpServerToggle",t)},immediate:!0}},methods:{transformEmojiToHtml:V,microBadge(t){return this.$store.getters["appBadges/badge"](t&&t.id,t&&t.key)},onMenuResizeChange({event:t}){this.menuResizing=t!=="up",t==="up"&&$A.setStorage("manage.menuWidth",this.menuWidth)},syncOwnerProjectTabByRoute(){!this.ownerProjectTabsVisible||!this.routeProject||(this.ownerProjectTab=this.routeProject.department_readonly?"readonly":"mine")},chackPass(){this.userInfo.changepass===1&&this.goForward({name:"manage-setting-password"})},async toggleRoute(t,a){const e={name:"manage-"+t,params:a||{}},s=await $A.IDBInt("fileFolderId");t==="file"&&s>0&&(e.params.folderId=s),this.goForward(e)},toggleOpenMenu(t){this.$set(this.openMenu,t,!this.openMenu[t])},settingRoute(t){switch(t){case"departmentOwnerView":this.departmentOwnerViewShow=!0;return;case"allUser":this.allUserShow=!0;return;case"allProject":this.allProjectShow=!0;return;case"archivedProject":this.archivedProjectShow=!0;return;case"exportTask":this.exportTaskShow=!0;return;case"exportOverdueTask":this.exportOverdueTask();return;case"exportCheckin":this.exportCheckinShow=!0;return;case"workReport":this.openReport(this.reportUnreadNumber>0?"receive":"my");return;case"favorite":this.openFavorite();return;case"version":n.emit("updateNotification",null);return;case"downloadClient":n.emit("openDownloadClient");return;case"clearCache":$A.IDBSet("clearCache","handle").then(a=>{$A.reloadUrl()});return;case"complaint":this.complaintShow=!0;return;case"download":$A.Electron.request({action:"openDownloadWindow",language:y,theme:this.themeName});return;case"mcpServer":this.mcpHelperShow=!0,this.mcpServerStatus.running!=="running"&&this.$store.dispatch("toggleMcpServer");return;case"logout":$A.modalConfirm({title:"\u9000\u51FA\u767B\u5F55",content:"\u4F60\u786E\u5B9A\u8981\u767B\u51FA\u7CFB\u7EDF\u5417\uFF1F",loading:!0,onOk:()=>new Promise(async a=>{await this.$store.dispatch("logout",!1),a()})});return}this.menu.findIndex(a=>a.path==t)>-1&&this.toggleRoute("setting-"+t)},exportOverdueTask(){$A.modalConfirm({title:"\u5BFC\u51FA\u4EFB\u52A1",content:"\u4F60\u786E\u5B9A\u8981\u5BFC\u51FA\u6240\u6709\u8D85\u671F\u4EFB\u52A1\u5417\uFF1F",loading:!0,onOk:()=>new Promise((t,a)=>{this.$store.dispatch("call",{url:"project/task/exportoverdue"}).then(()=>{t(),$A.modalSuccess("\u6B63\u5728\u6253\u5305\uFF0C\u8BF7\u7559\u610F\u7CFB\u7EDF\u6D88\u606F\u3002")}).catch(({msg:e})=>{a(e)})})})},menuVisibleChange(t){this.visibleMenu=t,t&&!this.taskBrowseLoading&&this.loadTaskBrowseHistory()},classNameRoute(t){return{active:this.routeName===`manage-${t}`}},classNameProject(t){return{active:this.routeName==="manage-project"&&this.$route.params.projectId==t.id,"open-menu":this.openMenu[t.id]===!0,operate:t.id==this.operateItem.id&&this.operateVisible}},onAddMenu(t){switch(t){case"project":this.onAddShow();break;case"task":this.onAddTask(0);break;case"group":this.onCreateGroup([this.userId]);break;case"createMeeting":n.emit("addMeeting",{type:"create",userids:[this.userId]});break;case"joinMeeting":n.emit("addMeeting",{type:"join"});break;case"aiAssistant":this.onOpenAIAssistant();break}},onOpenAIAssistant(){n.emit("openAIAssistantGlobal")},onAddShow(){this.$store.dispatch("getColumnTemplate").catch(()=>{}),this.addShow=!0,this.$nextTick(()=>{this.$refs.projectName.focus()})},onProjectAI(){n.emit("openAIAssistant",{sessionKey:"project-create",title:this.$L("AI \u9879\u76EE\u52A9\u624B"),placeholder:this.$L("\u8BF7\u7B80\u8981\u63CF\u8FF0\u9879\u76EE\u76EE\u6807\u3001\u8303\u56F4\u6216\u5173\u952E\u91CC\u7A0B\u7891\uFF0CAI \u5C06\u751F\u6210\u540D\u79F0\u548C\u4EFB\u52A1\u5217\u8868"),onBeforeSend:this.handleProjectAIBeforeSend,onRender:this.handleProjectAIRender,onApply:this.handleProjectAIApply})},buildProjectAIContextData(){const t=[],a=(this.addData.name||"").trim(),e=this.normalizeAIColumns(this.addData.columns);(a||e.length>0)&&(t.push("## \u5F53\u524D\u9879\u76EE\u8349\u7A3F"),a&&t.push(`\u5DF2\u6709\u540D\u79F0\uFF1A${a}`),e.length>0&&t.push(`\u73B0\u6709\u4EFB\u52A1\u5217\u8868\uFF1A${e.join("\u3001")}`),t.push("\u8BF7\u5728\u6B64\u57FA\u7840\u4E0A\u8FDB\u884C\u4F18\u5316\u548C\u8865\u5145\u3002"));const i=(Array.isArray(this.columns)?this.columns:[]).filter((r,o)=>o>0&&r).map(r=>{const o=this.normalizeAIColumns(r.columns);return o.length===0?null:{name:(r.name||"").trim(),columns:o}}).filter(Boolean).slice(0,6);return i.length>0&&(t.push("## \u5E38\u7528\u6A21\u677F\u793A\u4F8B"),i.forEach(r=>{const o=r.name?`${r.name}\uFF1A`:"";t.push(`- ${o}${r.columns.join("\u3001")}`)}),t.push("\u53EF\u4EE5\u501F\u9274\u4EE5\u4E0A\u7ED3\u6784\uFF0C\u4F46\u8981\u7ED3\u5408\u7528\u6237\u9700\u6C42\u751F\u6210\u66F4\u8D34\u5408\u7684\u65B9\u6848\u3002")),t.join(`
+`).trim()||t}}},j={};var re=d(oe,se,ie,!1,ne,null,null,null);function ne(t){for(let a in j)this[a]=j[a]}var le=function(){return re.exports}(),ce=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"report-list-wrap"},[e("div",{staticClass:"search-expand"},[e("div",{staticClass:"search-container lr"},[e("ul",[e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u5173\u952E\u8BCD"))+" ")]),e("div",{staticClass:"search-content"},[e("Input",{attrs:{placeholder:t.$L("\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22"),clearable:""},model:{value:t.keys.key,callback:function(s){t.$set(t.keys,"key",s)},expression:"keys.key"}})],1)]),e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u6C47\u62A5\u7C7B\u578B"))+" ")]),e("div",{staticClass:"search-content"},[e("Select",{attrs:{placeholder:t.$L("\u5168\u90E8")},model:{value:t.keys.type,callback:function(s){t.$set(t.keys,"type",s)},expression:"keys.type"}},t._l(t.reportTypeList,function(s){return e("Option",{key:s.value,attrs:{value:s.value}},[t._v(t._s(s.label))])}),1)],1)]),e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u6C47\u62A5\u65F6\u95F4"))+" ")]),e("div",{staticClass:"search-content"},[e("DatePicker",{attrs:{type:"daterange","split-panels":"",placeholder:t.$L("\u8BF7\u9009\u62E9\u65F6\u95F4")},model:{value:t.keys.created_at,callback:function(s){t.$set(t.keys,"created_at",s)},expression:"keys.created_at"}})],1)]),e("li",{staticClass:"search-button"},[e("SearchButton",{attrs:{loading:t.loadIng>0,filtering:t.keyIs,placement:"right"},on:{search:t.onSearch,refresh:t.getLists,cancelFilter:function(s){t.keyIs=!1}}})],1)])]),e("div",{staticClass:"expand-button-group"},[e("Button",{attrs:{type:"primary",icon:"md-add"},on:{click:t.addReport}},[t._v(t._s(t.$L("\u65B0\u589E\u62A5\u544A")))])],1)]),e("div",{staticClass:"table-page-box"},[e("Table",{attrs:{columns:t.columns,data:t.lists,loading:t.loadIng>0,"no-data-text":t.$L(t.noDataText),stripe:""}}),e("Page",{attrs:{total:t.listTotal,current:t.listPage,"page-size":t.listPageSize,disabled:t.loadIng>0,simple:t.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)])},de=[];const he={name:"ReportMy",components:{SearchButton:_},data(){return{loadIng:0,columns:[{title:this.$L("\u6807\u9898"),key:"title",minWidth:180,render:(t,{row:a})=>{const e=`${a.title||""}`.replace(/(\[([^\[\]]*)\]\s*){0,2}$/,"");return t("AutoTip",e)}},{title:this.$L("\u65F6\u95F4"),key:"time",sortable:!0,minWidth:180,render:(t,{row:a})=>t("AutoTip",$A.reportExtractTime(a.title)||"-")},{title:this.$L("\u7C7B\u578B"),key:"type",align:"center",width:90,render:(t,{row:a})=>t("AutoTip",this.$L(a.type==="daily"?"\u65E5\u62A5":"\u5468\u62A5"))},{title:this.$L("\u6C47\u62A5\u65F6\u95F4"),key:"created_at",align:"center",width:180},{title:this.$L("\u6C47\u62A5\u5BF9\u8C61"),key:"receives",align:"center",width:90,render:(t,{row:a})=>{if(a.receives.length===0)return t("div","-");const e=[];return a.receives.length<=2?a.receives.some(s=>{e.push(t("UserAvatar",{props:{size:22,userid:s}}))}):(e.push(t("UserAvatar",{props:{size:22,userid:a.receives[0]}})),e.push(t("div",{class:"more-avatar"},`+${a.receives.length-1}`))),t("div",{class:"report-table-avatar"},e)}},{title:this.$L("\u64CD\u4F5C"),align:"center",width:100,minWidth:100,render:(t,{column:a,row:e})=>e.id?t("TableAction",{props:{column:a,menu:[{icon:"md-create",action:"edit"},{icon:"md-eye",action:"view"}]},on:{action:s=>{s==="edit"?this.$emit("on-edit",e.id):s==="view"&&this.$emit("on-view",e)}}}):null}],lists:[],listPage:1,listTotal:0,listPageSize:20,noDataText:"\u6570\u636E\u52A0\u8F7D\u4E2D.....",keys:{},keyIs:!1,reportTypeList:[{value:"",label:this.$L("\u5168\u90E8")},{value:"weekly",label:this.$L("\u5468\u62A5")},{value:"daily",label:this.$L("\u65E5\u62A5")}]}},mounted(){this.getLists()},watch:{keyIs(t){t||(this.keys={},this.setPage(1))}},methods:{onSearch(){this.listPage=1,this.getLists()},getLists(){this.loadIng++,this.keyIs=$A.objImplode(this.keys)!="",this.$store.dispatch("call",{url:"report/my",data:{keys:this.keys,page:Math.max(this.listPage,1),pagesize:Math.max($A.runNum(this.listPageSize),10)}}).then(({data:t})=>{this.lists=t.data,this.listTotal=t.total,this.noDataText="\u6CA1\u6709\u76F8\u5173\u7684\u6570\u636E"}).catch(({msg:t})=>{$A.messageError(t),this.noDataText="\u6570\u636E\u52A0\u8F7D\u5931\u8D25"}).finally(()=>{this.loadIng--})},setPage(t){this.listPage=t,this.getLists()},setPageSize(t){Math.max($A.runNum(this.listPageSize),10)!==t&&(this.listPageSize=t,this.getLists())},addReport(){this.$emit("on-edit",0)}}},P={};var pe=d(he,ce,de,!1,ue,null,null,null);function ue(t){for(let a in P)this[a]=P[a]}var me=function(){return pe.exports}(),fe=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"report-list-wrap"},[e("div",{staticClass:"search-container lr"},[e("ul",[e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u5173\u952E\u8BCD"))+" ")]),e("div",{staticClass:"search-content"},[e("Input",{attrs:{placeholder:t.$L("\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22"),clearable:""},model:{value:t.keys.key,callback:function(s){t.$set(t.keys,"key",s)},expression:"keys.key"}})],1)]),e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u6C47\u62A5\u90E8\u95E8"))+" ")]),e("div",{staticClass:"search-content"},[e("Select",{attrs:{placeholder:t.$L("\u5168\u90E8")},model:{value:t.keys.department_id,callback:function(s){t.$set(t.keys,"department_id",s)},expression:"keys.department_id"}},[e("Option",{attrs:{value:""}},[t._v(t._s(t.$L("\u5168\u90E8")))]),t._l(t.departmentList,function(s,i){return e("Option",{key:i,attrs:{value:s.id,label:s.chains.join(" - ")}},[e("div",{class:`department-level-name level-${s.level}`},[t._v(t._s(s.name))])])})],2)],1)]),e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u6C47\u62A5\u7C7B\u578B"))+" ")]),e("div",{staticClass:"search-content"},[e("Select",{attrs:{placeholder:t.$L("\u5168\u90E8")},model:{value:t.keys.type,callback:function(s){t.$set(t.keys,"type",s)},expression:"keys.type"}},t._l(t.reportTypeList,function(s){return e("Option",{key:s.value,attrs:{value:s.value}},[t._v(t._s(s.label))])}),1)],1)]),e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u6C47\u62A5\u72B6\u6001"))+" ")]),e("div",{staticClass:"search-content"},[e("Select",{attrs:{placeholder:t.$L("\u5168\u90E8")},model:{value:t.keys.status,callback:function(s){t.$set(t.keys,"status",s)},expression:"keys.status"}},t._l(t.reportStatusList,function(s){return e("Option",{key:s.value,attrs:{value:s.value}},[t._v(t._s(s.label))])}),1)],1)]),e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u6C47\u62A5\u65F6\u95F4"))+" ")]),e("div",{staticClass:"search-content"},[e("DatePicker",{attrs:{type:"daterange","split-panels":"",placeholder:t.$L("\u8BF7\u9009\u62E9\u65F6\u95F4")},model:{value:t.keys.created_at,callback:function(s){t.$set(t.keys,"created_at",s)},expression:"keys.created_at"}})],1)]),e("li",{staticClass:"search-button"},[e("SearchButton",{attrs:{loading:t.loadIng>0,filtering:t.keyIs,placement:"right"},on:{search:t.onSearch,refresh:t.getLists,cancelFilter:function(s){t.keyIs=!1}}})],1)])]),e("div",{staticClass:"table-page-box"},[e("Table",{attrs:{columns:t.columns,data:t.lists,loading:t.loadIng>0,"no-data-text":t.$L(t.noDataText),stripe:""},on:{"on-selection-change":t.selectChange}}),e("div",{staticClass:"table-attach"},[e("div",{staticClass:"select-box"},[e("Select",{attrs:{disabled:t.selected.length==0,placeholder:t.$L("\u8BF7\u9009\u62E9"),transfer:""},on:{"on-change":function(s){t.groupSelect=!0}},model:{value:t.selectAction,callback:function(s){t.selectAction=s},expression:"selectAction"}},[e("Option",{attrs:{value:"read"}},[t._v(t._s(t.$L("\u6807\u8BB0\u5DF2\u8BFB")))]),e("Option",{attrs:{value:"unread"}},[t._v(t._s(t.$L("\u6807\u8BB0\u672A\u8BFB")))]),e("Option",{attrs:{value:"share"}},[t._v(t._s(t.$L("\u5206\u4EAB\u5230\u6D88\u606F")))])],1),e("Button",{attrs:{loading:t.loadIng>0,type:"primary",disabled:t.selectAction==""||t.selected.length==0},on:{click:t.selectClick}},[e("span",[t._v(t._s(t.$L("\u6267\u884C")))]),t.selected.length>0?e("em",[t._v("("+t._s(t.selected.length)+")")]):t._e()])],1),e("Page",{attrs:{total:t.listTotal,current:t.listPage,"page-size":t.listPageSize,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)],1),e("Forwarder",{ref:"forwarder",attrs:{title:t.$L("\u5206\u4EAB\u62A5\u544A\u5230\u6D88\u606F"),"confirm-title":t.$L("\u786E\u8BA4\u5206\u4EAB"),"confirm-placeholder":t.$L("\u9644\u8A00"),"multiple-max":50,"before-submit":t.onShare,"msg-detail":t.forwardMsgPreview,"sender-hidden":""}})],1)},ge=[];const ve={name:"ReportReceive",components:{SearchButton:_,Forwarder:J},data(){return{loadIng:0,columns:[{type:"selection",width:50,align:"right"},{title:this.$L("\u6807\u9898"),key:"title",sortable:!0,minWidth:180,render:(t,{row:a})=>{const e=`${a.title||""}`.replace(/(\[([^\[\]]*)\]\s*){0,2}$/,""),s=[],i=a.receives_user.find(({userid:o})=>o==this.userId);return i&&i.pivot.read==0?s.push(t("Tag",{props:{color:"orange"},style:{flexShrink:0}},this.$L("\u672A\u8BFB")),t("AutoTip",e)):s.push(t("AutoTip",e)),t("div",{style:{display:"flex",alignItems:"center"}},s)}},{title:this.$L("\u65F6\u95F4"),key:"time",sortable:!0,minWidth:180,render:(t,{row:a})=>t("AutoTip",$A.reportExtractTime(a.title)||"-")},{title:this.$L("\u7C7B\u578B"),key:"type",sortable:!0,width:90,render:(t,{row:a})=>t("AutoTip",this.$L(a.type==="daily"?"\u65E5\u62A5":"\u5468\u62A5"))},{title:this.$L("\u63A5\u6536\u65F6\u95F4"),key:"receive_at",align:"center",sortable:!0,width:180},{title:this.$L("\u64CD\u4F5C"),align:"center",width:90,minWidth:90,render:(t,{column:a,row:e})=>e.id?t("TableAction",{props:{column:a,menu:[{icon:"md-eye",action:"view"}]},on:{action:s=>{if(s==="view"){this.$emit("on-view",e);const i=e.receives_user.find(({userid:o})=>o==this.userId);i&&this.$set(i.pivot,"read",1)}}}}):null}],lists:[],listPage:1,listTotal:0,listPageSize:20,noDataText:"\u6570\u636E\u52A0\u8F7D\u4E2D.....",keys:{},keyIs:!1,selected:[],selectAction:"",reportTypeList:[{value:"",label:this.$L("\u5168\u90E8")},{value:"weekly",label:this.$L("\u5468\u62A5")},{value:"daily",label:this.$L("\u65E5\u62A5")}],reportStatusList:[{value:"",label:this.$L("\u5168\u90E8")},{value:"unread",label:this.$L("\u4EC5\u672A\u8BFB")},{value:"read",label:this.$L("\u4EC5\u5DF2\u8BFB")}],departmentList:[],forwardMsgPreview:null}},async mounted(){this.getLists(),this.departmentList=await this.$store.dispatch("getDepartmentList")},watch:{keyIs(t){t||(this.keys={},this.setPage(1))}},methods:{onSearch(){this.listPage=1,this.getLists()},getLists(){this.loadIng++,this.keyIs=$A.objImplode(this.keys)!="",this.$store.dispatch("call",{url:"report/receive",data:{keys:this.keys,page:Math.max(this.listPage,1),pagesize:Math.max($A.runNum(this.listPageSize),10)}}).then(({data:t})=>{this.lists=t.data,this.listTotal=t.total,this.noDataText="\u6CA1\u6709\u76F8\u5173\u7684\u6570\u636E"}).catch(({msg:t})=>{$A.messageError(t),this.noDataText="\u6570\u636E\u52A0\u8F7D\u5931\u8D25"}).finally(()=>{this.loadIng--})},setPage(t){this.listPage=t,this.getLists()},setPageSize(t){Math.max($A.runNum(this.listPageSize),10)!==t&&(this.listPageSize=t,this.getLists())},selectChange(t){this.selected=t.map(a=>({id:a.id,title:a.title}))},selectClick(){if(this.selected.length===0){$A.messageWarning("\u8BF7\u9009\u62E9\u7EBF\u8DEF");return}switch(this.selectAction){case"read":case"unread":this.readReport(this.selected.map(({id:t})=>t),this.selectAction);break;case"share":this.selectShare();break;default:$A.messageWarning("\u8BF7\u9009\u62E9\u6267\u884C\u65B9\u5F0F");break}},readReport(t,a){const e=a==="read"?"\u6807\u8BB0\u5DF2\u8BFB":"\u6807\u8BB0\u672A\u8BFB";$A.modalConfirm({content:`\u4F60\u786E\u5B9A\u8981\u3010${e}\u3011\u5417\uFF1F`,cancelText:"\u53D6\u6D88",okText:"\u786E\u5B9A",loading:!0,onOk:()=>new Promise((s,i)=>{this.$store.dispatch("call",{url:"report/mark",data:{id:t,action:a}}).then(({msg:o})=>{s(o),this.getLists(),this.$emit("on-read")}).catch(({msg:o})=>{i(o)})})})},selectShare(){if(this.selected.length>20){$A.messageWarning("\u6BCF\u6B21\u6700\u591A\u5206\u4EAB20\u4E2A");return}const t=this.selected.length>1?"li":"p",a=t==="li"?' data-list="ordered"':"",e={text:this.selected.map(({title:s})=>{const i=`%${s} `;return`<${t}${a}>${i}${t}>`}).join("")};t==="li"&&(e.text=`${e.text} `),this.forwardMsgPreview={id:0,dialog_id:0,reply_id:0,type:"text",userid:this.userId,msg:e},this.$refs.forwarder.onSelection()},onShare({dialogids:t,userids:a,message:e}){return new Promise((s,i)=>{this.$store.dispatch("call",{url:"report/share",data:{id:this.selected.map(({id:o})=>o),dialogids:t,userids:a,leave_message:e}}).then(({data:o,msg:n})=>{this.$store.dispatch("saveDialogMsg",o.msgs),this.$store.dispatch("updateDialogLastMsg",o.msgs),$A.messageSuccess(n),s(),o.msgs.length>0&&this.$store.dispatch("openDialog",o.msgs[o.msgs.length-1].dialog_id)}).catch(({msg:o})=>{$A.modalError(o),i()})})}}},M={};var _e=d(ve,fe,ge,!1,$e,null,null,null);function $e(t){for(let a in M)this[a]=M[a]}var ye=function(){return _e.exports}(),ke=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"report"},[e("Tabs",{model:{value:t.reportTabs,callback:function(s){t.reportTabs=s},expression:"reportTabs"}},[e("TabPane",{attrs:{label:t.$L("\u6211\u7684\u6C47\u62A5"),name:"my"}},[t.reportTabs==="my"?e("ReportMy",{ref:"report",on:{"on-view":t.onView,"on-edit":t.onEditReport}}):t._e()],1),e("TabPane",{attrs:{label:t.tabRebder(t.reportUnreadNumber),name:"receive"}},[t.reportTabs==="receive"?e("ReportReceive",{on:{"on-view":t.onView,"on-read":t.onRead}}):t._e()],1)],1),e("DrawerOverlay",{attrs:{placement:"right",size:950,transfer:""},model:{value:t.showDetailDrawer,callback:function(s){t.showDetailDrawer=s},expression:"showDetailDrawer"}},[t.showDetailDrawer?e("ReportDetail",{attrs:{data:t.detailData}}):t._e()],1),e("DrawerOverlay",{attrs:{placement:"right",size:1e3,transfer:""},model:{value:t.showEditDrawer,callback:function(s){t.showEditDrawer=s},expression:"showEditDrawer"}},[t.showEditDrawer?e("ReportEdit",{attrs:{id:t.reportId},on:{saveSuccess:t.saveSuccess}}):t._e()],1)],1)},be=[];const we={name:"Report",components:{DrawerOverlay:W,ReportEdit:nt,ReportMy:me,ReportReceive:ye,ReportDetail:lt},props:{value:{default:"my"}},data(){return{reportTabs:"my",showDetailDrawer:!1,showEditDrawer:!1,detailData:{},reportId:0}},mounted(){this.reportTabs=this.value,this.$isMainElectron&&this.$Electron.listenerOnly("reportSaveSuccess",({data:t,msg:a})=>{$A.messageSuccess(a),this.saveSuccess(t)})},computed:{...m(["reportUnreadNumber"])},watch:{reportTabs(t){this.$emit("input",t)}},methods:{tabRebder(t){return a=>t>0?a("div",[a("span",{class:"navbar-item-content"},this.$L("\u6536\u5230\u7684\u6C47\u62A5")),a("Badge",{class:"manage-box-report",props:{count:t}})]):a("div",[a("span",{class:"navbar-item-content"},this.$L("\u6536\u5230\u7684\u6C47\u62A5"))])},onView(t){this.detailData=t,this.$emit("on-read"),this.$Electron?this.$store.dispatch("openWindow",{name:`report-detail-${t.id}`,path:`/single/report/detail/${t.id}`,title:t.title,titleFixed:!0}):this.showDetailDrawer=!0},onRead(){this.$emit("on-read",0)},onEditReport(t){this.$Electron?this.$store.dispatch("openWindow",{name:`report-edit-${t}`,path:`/single/report/edit/${t}`,title:this.$L(t>0?"\u4FEE\u6539\u62A5\u544A":"\u65B0\u589E\u62A5\u544A")}):(this.reportId=t,this.showEditDrawer=!0)},saveSuccess(){this.reportId=0,this.reportTabs="my",this.showEditDrawer=!1,this.$refs.report&&this.$refs.report.getLists()}}},E={};var Ce=d(we,ke,be,!1,De,null,null,null);function De(t){for(let a in E)this[a]=E[a]}var Te=function(){return Ce.exports}(),Se=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("Modal",{ref:"modal",attrs:{value:t.show,styles:t.modalStyles,"mask-closable":!1,"footer-hide":!0,mask:!t.windowPortrait,fullscreen:t.windowPortrait,"transition-names":t.transitionNames,"class-name":t.className,beforeClose:t.onBeforeClose}},[t.show?e("DialogWrapper",{ref:"dialogWrapper",style:t.dialogStyles,attrs:{dialogId:t.dialogId,beforeBack:t.onBeforeClose,location:"modal"}}):t._e()],1)},Le=[];const Ae={name:"DialogModal",components:{DialogWrapper:ct},data(){return{show:!1,timer:null,closIng:!1}},mounted(){r.on("handleMoveTop",this.handleMoveTop)},beforeDestroy(){r.off("handleMoveTop",this.handleMoveTop)},computed:{...m(["dialogId","windowOrientation"]),modalStyles(){return this.windowPortrait?{}:{width:"90%",maxWidth:"720px"}},dialogStyles(){if(this.windowPortrait)return{};const t=Math.min(1100,this.windowHeight),a=t>900?200:70;return{height:"600px",maxHeight:t-a-30+"px"}},transitionNames(){return this.windowPortrait?["mobile-dialog",""]:["ease","fade"]},className(){const t=["dialog-modal",`dialog-${this.windowOrientation}`];return this.closIng>0&&t.push("dialog-closing"),t.join(" ")}},watch:{dialogId(){this.handleShow()},windowPortrait(){this.handleShow()},show(t){this.$store.state.dialogModalShow=t,$A.eeuiAppSetScrollDisabled(t&&this.windowPortrait)}},methods:{onBeforeClose(){return this.$refs.dialogWrapper&&(this.$refs.dialogWrapper.operateVisible=!1),new Promise(async t=>{this.closIng++,await this.$store.dispatch("openDialog",0),await new Promise(a=>setTimeout(a,300)),this.closIng--})},handleShow(){this.show=this.dialogId>0&&(this.windowPortrait||this.routeName!=="manage-messenger")},handleMoveTop(t){var a;t==="dialogModal"&&((a=this.$refs.modal)==null||a.handleMoveTop())}}},O={};var Ie=d(Ae,Se,Le,!1,xe,null,null,null);function xe(t){for(let a in O)this[a]=O[a]}var je=function(){return Ie.exports}(),Pe=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("Modal",{ref:"modal",attrs:{value:t.show,styles:t.styles,"mask-closable":!1,"footer-hide":!0,fullscreen:t.windowPortrait,beforeClose:t.onBeforeClose,"class-name":"common-task-modal"}},[e("TaskDetail",{ref:"taskDetail",attrs:{"task-id":t.taskId,"open-task":t.taskData,modalMode:""}})],1)},Me=[];const Ee={name:"TaskModal",components:{TaskDetail:rt},computed:{...m(["taskId"]),...v(["taskData"]),show(){return this.taskId>0},styles(){return this.windowPortrait?{width:"100%"}:{width:"90%",maxWidth:this.taskData.dialog_id?"1200px":"700px"}}},watch:{show(t){$A.eeuiAppSetScrollDisabled(t&&this.windowPortrait)}},mounted(){r.on("handleMoveTop",this.handleMoveTop)},beforeDestroy(){r.off("handleMoveTop",this.handleMoveTop)},methods:{onBeforeClose(){return new Promise(t=>{this.$store.dispatch("openTask",0)})},checkUpdate(){if(this.show)return this.$refs.taskDetail.checkUpdate(!0),!0},handleMoveTop(t){var a;t==="taskModal"&&((a=this.$refs.modal)==null||a.handleMoveTop())}}},R={};var Oe=d(Ee,Pe,Me,!1,Re,null,null,null);function Re(t){for(let a in R)this[a]=R[a]}var Be=function(){return Oe.exports}(),ze=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("Modal",{attrs:{title:t.$L("\u5BFC\u51FA\u4EFB\u52A1\u7EDF\u8BA1"),"mask-closable":!1},model:{value:t.show,callback:function(s){t.show=s},expression:"show"}},[e("Form",t._b({ref:"exportTask",attrs:{model:t.formData},nativeOn:{submit:function(s){s.preventDefault()}}},"Form",t.formOptions,!1),[e("FormItem",{attrs:{label:t.$L("\u5BFC\u51FA\u6210\u5458")}},[e("UserSelect",{attrs:{"multiple-max":100,"avatar-name":"","show-disable":"",title:t.$L("\u8BF7\u9009\u62E9\u6210\u5458")},model:{value:t.formData.userid,callback:function(s){t.$set(t.formData,"userid",s)},expression:"formData.userid"}}),e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u6BCF\u6B21\u6700\u591A\u9009\u62E9\u5BFC\u51FA(*)\u4E2A\u6210\u5458",100)))])],1),e("FormItem",{attrs:{label:t.$L("\u65F6\u95F4\u8303\u56F4")}},[e("DatePicker",{staticStyle:{width:"100%"},attrs:{type:"daterange",format:"yyyy/MM/dd",placeholder:t.$L("\u8BF7\u9009\u62E9\u65F6\u95F4")},model:{value:t.formData.time,callback:function(s){t.$set(t.formData,"time",s)},expression:"formData.time"}}),e("div",{staticClass:"form-tip form-quick-select"},[e("span",[t._v(t._s(t.$L("\u5FEB\u6377\u9009\u62E9"))+":")]),e("em",{on:{click:function(s){t.formData.time=t.dateShortcuts("prev")}}},[t._v(t._s(t.$L("\u4E0A\u4E2A\u6708")))]),e("em",{on:{click:function(s){t.formData.time=t.dateShortcuts("this")}}},[t._v(t._s(t.$L("\u8FD9\u4E2A\u6708")))])])],1),e("FormItem",{attrs:{prop:"type",label:t.$L("\u5BFC\u51FA\u65F6\u95F4\u7C7B\u578B")}},[e("RadioGroup",{model:{value:t.formData.type,callback:function(s){t.$set(t.formData,"type",s)},expression:"formData.type"}},[e("Radio",{attrs:{label:"taskTime"}},[t._v(t._s(t.$L("\u4EFB\u52A1\u65F6\u95F4")))]),e("Radio",{attrs:{label:"createdTime"}},[t._v(t._s(t.$L("\u521B\u5EFA\u65F6\u95F4")))])],1)],1)],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(s){t.show=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.loadIng>0},on:{click:t.onExport}},[t._v(t._s(t.$L("\u5BFC\u51FA")))])],1)],1)},Ne=[];const Fe={name:"TaskExport",components:{UserSelect:k},props:{value:{type:Boolean,default:!1}},data(){return{show:this.value,loadIng:0,formData:{userid:[],time:[],type:"taskTime"}}},watch:{value(t){this.show=t},show(t){this.value!==t&&this.$emit("input",t)}},computed:{...m(["formOptions"])},methods:{dateShortcuts(t){if(t==="prev")return[$A.daytz().subtract(1,"month").startOf("month").format("YYYY-MM-DD"),$A.daytz().subtract(1,"month").endOf("month").format("YYYY-MM-DD")];if(t==="this")return[$A.daytz().startOf("month").format("YYYY-MM-DD"),$A.daytz().endOf("month").format("YYYY-MM-DD")]},onExport(){this.loadIng>0||(this.loadIng++,this.$store.dispatch("call",{url:"project/task/export",data:this.formData}).then(()=>{this.show=!1,$A.modalSuccess("\u6B63\u5728\u6253\u5305\uFF0C\u8BF7\u7559\u610F\u7CFB\u7EDF\u6D88\u606F\u3002")}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.loadIng--}))}}},B={};var Ue=d(Fe,ze,Ne,!1,Ve,null,null,null);function Ve(t){for(let a in B)this[a]=B[a]}var We=function(){return Ue.exports}(),He=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"project-management"},[e("div",{staticClass:"management-title"},[t._v(" "+t._s(t.$L("\u4E3E\u62A5\u7BA1\u7406"))+" "),e("div",{staticClass:"title-icon"},[t.loadIng>0?e("Loading"):t._e()],1)]),e("div",{staticClass:"search-container lr"},[e("ul",[e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u4E3E\u62A5\u7C7B\u578B"))+" ")]),e("div",{staticClass:"search-content"},[e("Select",{attrs:{placeholder:t.$L("\u5168\u90E8")},model:{value:t.keys.type,callback:function(s){t.$set(t.keys,"type",s)},expression:"keys.type"}},[e("Option",{attrs:{value:" "}},[t._v(t._s(t.$L("\u5168\u90E8")))]),t._l(t.typeList,function(s,i){return e("Option",{key:i,attrs:{value:s.id}},[t._v(t._s(t.$L(s.label))+" ")])})],2)],1)]),e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u4E3E\u62A5\u72B6\u6001"))+" ")]),e("div",{staticClass:"search-content"},[e("Select",{attrs:{placeholder:t.$L("\u5168\u90E8")},model:{value:t.keys.status,callback:function(s){t.$set(t.keys,"status",s)},expression:"keys.status"}},[e("Option",{attrs:{value:" "}},[t._v(t._s(t.$L("\u5168\u90E8")))]),e("Option",{attrs:{value:0}},[t._v(t._s(t.$L("\u5F85\u5904\u7406")))]),e("Option",{attrs:{value:1}},[t._v(t._s(t.$L("\u5DF2\u5904\u7406")))])],1)],1)]),e("li",{staticClass:"search-button"},[e("SearchButton",{attrs:{loading:t.loadIng>0,filtering:t.keyIs,placement:"right"},on:{search:t.onSearch,refresh:t.getLists,cancelFilter:function(s){t.keyIs=!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)])},Ke=[];const Ge={name:"ComplaintManagement",components:{SearchButton:_},data(){const t=[{id:10,label:"\u8BC8\u9A97\u8BF1\u5BFC\u8F6C\u8D26"},{id:20,label:"\u5F15\u6D41\u4E0B\u8F7D\u5176\u4ED6APP\u4ED8\u8D39"},{id:30,label:"\u6572\u8BC8\u52D2\u7D22"},{id:40,label:"\u7167\u7247\u4E0E\u672C\u4EBA\u4E0D\u4E00\u81F4"},{id:50,label:"\u8272\u60C5\u4F4E\u4FD7"},{id:60,label:"\u9891\u7E41\u5E7F\u544A\u9A9A\u6270"},{id:70,label:"\u5176\u4ED6\u95EE\u9898"}];return{loadIng:0,keys:{},keyIs:!1,typeList:t,columns:[{title:"ID",key:"id",width:80,render:(a,{row:e,column:s})=>a("TableAction",{props:{column:s,align:"left"}},[a("div",e.id)])},{title:this.$L("\u4E3E\u62A5\u7C7B\u578B"),key:"type",minWidth:120,render:(a,{row:e})=>{const s=this.$L(t.find(i=>i.id==e.type).label);return a("div",{style:{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},on:{click:()=>{$A.modalInfo({language:!1,title:this.$L("\u4E3E\u62A5\u7C7B\u578B"),content:s})}}},s)}},{title:this.$L("\u72B6\u6001"),key:"status",minWidth:80,render:(a,{row:e})=>{let s=e.status==0?"\u672A\u5904\u7406":"\u5DF2\u5904\u7406";return a("div",{style:{color:e.status==0?"#f00":"inherit"}},[a("AutoTip",this.$L(s))])}},{title:this.$L("\u4E3E\u62A5\u539F\u56E0"),minWidth:150,render:(a,{row:e})=>a("div",{style:{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},on:{click:()=>{$A.modalInfo({language:!1,title:this.$L("\u4E3E\u62A5\u539F\u56E0"),content:e.reason})}}},e.reason)},{title:this.$L("\u4E3E\u62A5\u56FE"),minWidth:85,render:(a,{row:e})=>{var i;const s=(i=JSON.parse(e.imgs))==null?void 0:i.map(o=>({src:$A.apiUrl("../"+o)}));return s.length===0?a("div","-"):a("div",{style:{color:"#1890ff"},on:{click:()=>{this.$store.dispatch("previewImage",{index:0,list:s})}}},[a("AutoTip",this.$L("\u70B9\u51FB\u67E5\u770B"))])}},{title:this.$L("\u4E3E\u62A5\u4EBA"),minWidth:100,render:(a,{row:e})=>a("UserAvatar",{props:{showName:!0,size:22,userid:e.userid}})},{title:this.$L("\u521B\u5EFA\u65F6\u95F4"),key:"created_at",width:168},{title:this.$L("\u64CD\u4F5C"),align:"center",width:100,render:(a,e)=>{const s=[e.row.status==0&&a("Poptip",{props:{title:this.$L("\u4F60\u786E\u5B9A\u8981\u5904\u7406\u5417\uFF1F"),confirm:!0,transfer:!0,placement:"left",okText:this.$L("\u786E\u5B9A"),cancelText:this.$L("\u53D6\u6D88")},style:{fontSize:"13px",cursor:"pointer",color:"#84C56A"},on:{"on-ok":()=>{this.handle(e.row)}}},this.$L("\u5904\u7406")),a("Poptip",{props:{title:this.$L("\u4F60\u786E\u5B9A\u8981\u5220\u9664\u5417\uFF1F"),confirm:!0,transfer:!0,placement:"left",okText:this.$L("\u786E\u5B9A"),cancelText:this.$L("\u53D6\u6D88")},style:{marginLeft:e.row.status==0?"8px":"0",fontSize:"13px",cursor:"pointer",color:"#f00"},on:{"on-ok":()=>{this.delete(e.row)}}},this.$L("\u5220\u9664"))];return a("TableAction",{props:{column:e.column}},s)}}],list:[],page:1,pageSize:20,total:0,noText:""}},mounted(){this.getLists()},watch:{keyIs(t){t||(this.keys={},this.setPage(1))}},methods:{onSearch(){this.page=1,this.getLists()},getLists(){this.loadIng++,this.$store.dispatch("call",{url:"complaint/lists",data:{type:this.keys.type,status:this.keys.status,page:Math.max(this.page,1),pagesize:Math.max($A.runNum(this.pageSize),10)}}).then(({data:t})=>{this.page=t.current_page,this.total=t.total,this.list=t.data,this.noText="\u6CA1\u6709\u76F8\u5173\u7684\u6570\u636E"}).catch(()=>{this.noText="\u6570\u636E\u52A0\u8F7D\u5931\u8D25"}).finally(t=>{this.loadIng--})},setPage(t){this.page=t,this.getLists()},setPageSize(t){this.page=1,this.pageSize=t,this.getLists()},handle(t){this.loadIng++,this.$store.dispatch("call",{url:"complaint/action",data:{id:t.id,type:"handle"}}).then(()=>{this.getLists()}).catch(({msg:a})=>{$A.modalError(a)}).finally(a=>{this.loadIng--})},delete(t){this.list=this.list.filter(({id:a})=>a!=t.id),this.loadIng++,this.$store.dispatch("call",{url:"complaint/action",data:{id:t.id,type:"delete"}}).then(()=>{this.getLists()}).catch(({msg:a})=>{$A.modalError(a),this.getLists()}).finally(a=>{this.loadIng--})}}},z={};var Ye=d(Ge,He,Ke,!1,Je,null,null,null);function Je(t){for(let a in z)this[a]=z[a]}var qe=function(){return Ye.exports}(),Qe=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("ModalAlive",{attrs:{"class-name":"common-search-box-modal",closable:!t.isFullscreen,fullscreen:t.isFullscreen,"mask-closable":!1,"footer-hide":!0,width:"768"},model:{value:t.showModal,callback:function(s){t.showModal=s},expression:"showModal"}},[e("div",{staticClass:"search-header"},[e("div",{staticClass:"search-input"},[e("div",{staticClass:"search-pre"},[t.loadIng>0?e("Loading"):e("Icon",{attrs:{type:"ios-search"}})],1),e("Form",{staticClass:"search-form",attrs:{action:"javascript:void(0)"},nativeOn:{submit:function(s){return s.preventDefault(),t.$A.eeuiAppKeyboardHide.apply(null,arguments)}}},[e("Input",{ref:"searchKey",attrs:{type:"search",placeholder:t.$L("\u8BF7\u8F93\u5165\u5173\u952E\u5B57")},model:{value:t.searchKey,callback:function(s){t.searchKey=s},expression:"searchKey"}})],1),t.aiSearchAvailable?e("div",{staticClass:"search-ai",on:{click:t.toggleAiSearch}},[e("i",{staticClass:"taskfont"},[t._v("\uE8A1")]),e("span",[t._v(t._s(t.$L("AI \u641C\u7D22")))])]):t._e()],1),e("div",{staticClass:"search-close",on:{click:t.onHide}},[e("i",{staticClass:"taskfont"},[t._v("\uE6E5")])])]),e("div",{staticClass:"search-body",on:{touchstart:t.onTouchstart}},[e("div",{staticClass:"search-tags"},t._l(t.tags,function(s){return e("div",{key:s.type,staticClass:"tag-item",class:{action:s.type===t.action},on:{click:function(i){return t.onTag(s.type,i)}}},[e("i",{staticClass:"taskfont",domProps:{innerHTML:t._s(s.icon)}}),e("span",[t._v(t._s(t.$L(s.name)))]),s.type===t.action?e("i",{staticClass:"taskfont tag-close"},[t._v("\uE747")]):t._e()])}),0),t.total===0?[t.loadIng+t.loadPre>0||!t.searchKey.trim()?e("div",{staticClass:"search-empty"},[e("i",{staticClass:"taskfont"},[t._v("\uE60B")]),e("span",[t._v(t._s(t.$L(t.loadIng+t.loadPre>0?"\u6B63\u5728\u62FC\u547D\u641C\u7D22...":"\u8BF7\u8F93\u5165\u5173\u952E\u5B57\u641C\u7D22")))])]):e("div",{staticClass:"search-empty"},[e("i",{staticClass:"taskfont"},[t._v("\uE60B")]),e("span",{staticClass:"empty-label"},[t._v(t._s(t.$L("\u6682\u65E0\u76F8\u5173\u7ED3\u679C")))]),e("span",[t._v(t._s(t.$L("\u672A\u641C\u5230\u8DDF\u300C(*)\u300D\u76F8\u5173\u7684\u7ED3\u679C",t.searchKey)))])])]:e("div",{staticClass:"search-list"},t._l(t.list,function(s){return e("ul",{key:s.type},[t.action?t._e():e("li",{staticClass:"item-label"},[t._v(t._s(t.$L(s.name)))]),t._l(s.items,function(i){return e("li",{on:{click:function(o){return t.onClick(i)}}},[e("div",{staticClass:"item-icon"},[i.icons[0]==="file"?e("div",{class:`no-dark-content file-icon ${i.icons[1]}`}):i.icons[0]==="department"?e("i",{staticClass:"taskfont icon-avatar department"},[t._v("\uE75C")]):i.icons[0]==="project"?e("i",{staticClass:"taskfont icon-avatar project"},[t._v("\uE6F9")]):i.icons[0]==="task"?e("i",{staticClass:"taskfont icon-avatar task"},[t._v("\uE6F4")]):i.icons[0]==="user"?e("UserAvatar",{staticClass:"user-avatar",attrs:{userid:i.icons[1],size:38}}):i.icons[0]==="avatar"?e("EAvatar",{staticClass:"img-avatar",attrs:{src:i.icons[1],size:38}}):i.icons[0]==="people"?e("Icon",{staticClass:"icon-avatar",attrs:{type:"ios-people"}}):e("Icon",{staticClass:"icon-avatar",attrs:{type:"md-person"}})],1),e("div",{staticClass:"item-content"},[e("div",{staticClass:"item-title"},[e("div",{staticClass:"title-text",domProps:{innerHTML:t._s(t.transformEmojiToHtml(i.title))}}),i.activity?e("div",{staticClass:"title-activity",attrs:{title:i.activity}},[t._v(t._s(t.activityFormat(i.activity)))]):t._e()]),e("div",{staticClass:"item-desc"},[t._l(i.tags,function(o){return i.tags?e("span",{staticClass:"desc-tag",style:o.style},[t._v(t._s(o.name))]):t._e()}),e("span",{staticClass:"desc-text",domProps:{innerHTML:t._s(t.transformEmojiToHtml(i.desc))}})],2)])])})],2)}),0)],2)])},Xe=[];const Ze={name:"SearchBox",props:{},data(){return{loadPre:0,loadIng:0,searchKey:"",searchResults:[],searchTimer:null,showModal:!1,tags:[{type:"task",name:"\u4EFB\u52A1",icon:""},{type:"project",name:"\u9879\u76EE",icon:""},{type:"message",name:"\u6D88\u606F",icon:""},{type:"contact",name:"\u8054\u7CFB\u4EBA",icon:""},{type:"file",name:"\u6587\u4EF6",icon:""}],action:""}},mounted(){r.on("openSearch",this.onShow)},beforeDestroy(){r.off("openSearch",this.onShow)},watch:{searchKey(){this.preSearch()},action(){this.preSearch()},showModal(t){$A.eeuiAppSetScrollDisabled(t)}},computed:{...v(["aiVisible","appAiHidden"]),...m(["themeName","keyboardShow","microAppsIds"]),aiSearchAvailable(){return this.microAppsIds&&this.microAppsIds.includes("search")&&this.aiVisible},isFullscreen({windowWidth:t}){return t<576},items({searchKey:t,searchResults:a,action:e}){return a.filter(s=>s.key!==t||e&&s.type!==e?!1:this.appAiHidden&&s.type==="message"?!$A.isAiBotDialog(s.rawData):!0)},total(){return this.items.length},list({action:t,tags:a}){const e=new Map,s=t?1/0:10;for(let i=0;i(e.has(o.type)&&i.push({...o,items:e.get(o.type)}),i),[])}},methods:{transformEmojiToHtml:V,activityFormat(t){const a=$A.daytz(),e=$A.dayjs(t);return a.format("YYYY/MM/DD")===e.format("YYYY/MM/DD")?e.format("HH:mm"):a.year()===e.year()?e.format("MM/DD"):e.format("YYYY/MM/DD")||""},onClick(t){switch(t.type){case"task":this.$store.dispatch("openTask",t.rawData),this.onHide();break;case"project":if(t.rawData.archived_at){$A.modalWarning("\u9879\u76EE\u5DF2\u5F52\u6863\uFF0C\u65E0\u6CD5\u67E5\u770B");return}this.goForward({name:"manage-project",params:{projectId:t.id}}),this.onHide();break;case"message":this.$store.dispatch("openDialog",t.id).then(a=>{this.$store.state.dialogSearchMsgId=/^\d+$/.test(t.rawData.search_msg_id)?t.rawData.search_msg_id:0,this.routeName==="manage-messenger"&&this.onHide()}).catch(({msg:a})=>{$A.modalError(a||this.$L("\u6253\u5F00\u4F1A\u8BDD\u5931\u8D25"))});break;case"contact":this.$store.dispatch("openDialogUserid",t.id).then(a=>{this.routeName==="manage-messenger"&&this.onHide()}).catch(({msg:a})=>{$A.modalError(a||this.$L("\u6253\u5F00\u4F1A\u8BDD\u5931\u8D25"))});break;case"file":this.goForward({name:"manage-file",params:{folderId:t.rawData.pid,fileId:null,shakeId:t.id}}),this.$store.state.fileShakeId=t.id,setTimeout(()=>{this.$store.state.fileShakeId=0},600),this.onHide();break}},onTouchstart(){$A.eeuiAppKeyboardHide()},onTag(t,a){this.action=this.action!==t?t:"",$A.scrollToView(a.target,{block:"nearest",inline:"nearest",behavior:"smooth"})},onShow(){const t=this.total===0||this.showModal||!this.windowTouch;this.showModal=!0,t&&this.$nextTick(()=>{var e,s;const a=(s=(e=this.$refs.searchKey)==null?void 0:e.$refs)==null?void 0:s.input;a&&(a.style.caretColor="transparent",a.focus(),setTimeout(()=>{const i=a.value.length;a.setSelectionRange(i,i),a.style.caretColor=null},300))})},onHide(){this.showModal=!1},preSearch(){!this.searchKey.trim()||(this.searchTimer&&(clearTimeout(this.searchTimer),this.searchTimer=null,this.loadPre--),this.loadPre++,this.searchTimer=setTimeout(()=>{this.searchKey.trim()&&this.onSearch(),this.searchTimer=null,this.loadPre--},500))},onSearch(){if(this.action){this.distSearch(this.action);return}this.tags.forEach(({type:t})=>this.distSearch(t))},distSearch(t){const a=this[`search${t.charAt(0).toUpperCase()}${t.slice(1)}`];return typeof a=="function"?(a(this.searchKey),!0):!1},echoSearch(t,a="id"){t.forEach(e=>{const s=this.searchResults.findIndex(i=>i[a]===e[a]&&i.type===e.type);s>-1?this.searchResults.splice(s,1,e):this.searchResults.push(e)})},searchTask(t){this.loadIng++,this.$store.dispatch("call",{url:"search/task",data:{key:t,search_type:"text",take:this.action?50:10}}).then(({data:a})=>{const e=$A.dayjs().unix(),s=a.map(i=>{const o=[];return i.complete_at?o.push({name:this.$L("\u5DF2\u5B8C\u6210"),style:"background-color:#0bc037"}):i.overdue?o.push({name:this.$L("\u8D85\u671F"),style:"background-color:#f00"}):i.end_at&&$A.dayjs(i.end_at).unix()-e<86400&&o.push({name:this.$L("\u5373\u5C06\u5230\u671F"),style:"background-color:#f80"}),i.archived_at&&o.push({name:this.$L("\u5DF2\u5F52\u6863"),style:"background-color:#ccc"}),{key:t,type:"task",icons:["task",null],tags:o,id:i.id,title:i.name,desc:i.desc,activity:i.end_at,rawData:i}});this.echoSearch(s)}).finally(a=>{this.loadIng--})},searchProject(t){this.loadIng++,this.$store.dispatch("call",{url:"search/project",data:{key:t,search_type:"text",take:this.action?50:10}}).then(({data:a})=>{const e=a.map(s=>{const i=[];return s.owner&&i.push({name:this.$L("\u8D1F\u8D23\u4EBA"),style:"background-color:#0bc037"}),s.archived_at&&i.push({name:this.$L("\u5DF2\u5F52\u6863"),style:"background-color:#ccc"}),{key:t,type:"project",icons:["project",null],tags:i,id:s.id,title:s.name,desc:s.desc||"",activity:s.updated_at,rawData:s}});this.echoSearch(e)}).finally(a=>{this.loadIng--})},searchMessage(t){this.loadIng++,this.$store.dispatch("call",{url:"search/message",data:{key:t,search_type:"text",mode:"dialog",take:this.action?50:10}}).then(({data:a})=>{const e=a.data.map(s=>{let i="person",o=null;return s.type=="group"?s.avatar?(i="avatar",o=s.avatar):s.group_type=="department"?i="department":s.group_type=="project"?i="project":["task","okr"].includes(s.group_type)?i="task":i="people":s.dialog_user&&(i="user",o=s.dialog_user.userid),{key:t,type:"message",icons:[i,o],tags:[],id:s.id,title:s.name,desc:$A.getMsgSimpleDesc(s.last_msg),activity:s.last_at,searchMsgId:s.search_msg_id,rawData:s}});this.echoSearch(e,"searchMsgId")}).finally(a=>{this.loadIng--})},searchContact(t){this.loadIng++,this.$store.dispatch("call",{url:"search/contact",data:{key:t,search_type:"text",take:this.action?50:10}}).then(({data:a})=>{const e=a.map(s=>{const i=[];if(s.search_tags&&s.search_tags.length>0){const o=t.toLowerCase();s.search_tags.forEach(n=>{n.toLowerCase().includes(o)&&i.push({name:n,style:"background-color:#2d8cf0"})})}return{key:t,type:"contact",icons:["user",s.userid],tags:i,id:s.userid,title:s.nickname,desc:s.profession||"",activity:s.line_at,rawData:s}});this.echoSearch(e)}).finally(a=>{this.loadIng--})},searchFile(t){this.loadIng++,this.$store.dispatch("call",{url:"search/file",data:{key:t,search_type:"text",take:this.action?50:10}}).then(({data:a})=>{const e=a.map(s=>{const i=[];return s.share&&i.push({name:this.$L(s.userid==this.userId?"\u5DF2\u5171\u4EAB":"\u5171\u4EAB"),style:"background-color:#0bc037"}),{key:t,type:"file",icons:["file",s.type],tags:i,id:s.id,title:s.name,desc:s.type==="folder"?"":$A.bytesToSize(s.size),activity:s.updated_at,rawData:s}});this.echoSearch(e)}).finally(a=>{this.loadIng--})},toggleAiSearch(){const t=this.searchKey.trim();r.emit("openAIAssistant",{sessionKey:"ai-search",resumeSession:86400,title:this.$L("AI \u641C\u7D22"),value:t,placeholder:this.$L("\u8BF7\u63CF\u8FF0\u4F60\u60F3\u641C\u7D22\u7684\u5185\u5BB9..."),loadingText:this.$L("\u641C\u7D22\u4E2D..."),showApplyButton:!1,autoSubmit:!!t,onBeforeSend:this.handleAISearchBeforeSend}),this.onHide()},handleAISearchBeforeSend(t=[]){const a=[["system",b(q)]];return t.length>0&&a.push(...t),a}}},N={};var ta=d(Ze,Qe,Xe,!1,ea,null,null,null);function ea(t){for(let a in N)this[a]=N[a]}var aa=function(){return ta.exports}(),sa=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"page-manage",class:t.pageClass},[e("div",{ref:"boxMenu",staticClass:"manage-box-menu",class:{"menu-resizing":t.menuResizing},style:t.menuStyle},[e("Dropdown",{staticClass:"page-manage-menu-dropdown main-menu",attrs:{trigger:"click"},on:{"on-click":t.settingRoute,"on-visible-change":t.menuVisibleChange}},[e("div",{class:["manage-box-title",t.visibleMenu?"menu-visible":""]},[e("div",{staticClass:"manage-box-avatar"},[e("UserAvatar",{attrs:{userid:t.userId,size:36}})],1),e("span",[t._v(t._s(t.userInfo.nickname))]),!!t.clientNewVersion||t.userIsAdmin&&!!t.systemNewVersion?e("Badge",{staticClass:"manage-box-top-report",attrs:{dot:""}}):t._e(),e("div",{staticClass:"manage-box-arrow"},[e("Icon",{attrs:{type:"ios-arrow-up"}}),e("Icon",{attrs:{type:"ios-arrow-down"}})],1)],1),e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[t._l(t.menu,function(s,i){return[s.path==="taskBrowse"?e("Dropdown",{key:`taskBrowse-${i}`,attrs:{transfer:"","transfer-class-name":"page-manage-menu-dropdown max-h-400",placement:"right-start"}},[e("DropdownItem",{attrs:{divided:!!s.divided}},[e("div",{staticClass:"manage-menu-flex"},[e("div",{staticClass:"manage-menu-title"},[t._v(" "+t._s(t.$L(s.name))+" ")]),e("Icon",{attrs:{type:"ios-arrow-forward"}})],1)]),t.taskBrowseLists.length>0?e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[t._l(t.taskBrowseLists,function(o,n){return[o.id>0&&n<10?e("DropdownItem",{key:`task-${n}`,staticClass:"task-title",style:t.$A.generateColorVarStyle(o.flow_item_color,[10],"flow-item-custom-color"),attrs:{name:o.name},nativeOn:{click:function(c){return t.openTask(o)}}},[o.flow_item_name?e("span",{class:o.flow_item_status},[t._v(t._s(o.flow_item_name))]):t._e(),e("div",{staticClass:"task-title-text"},[t._v(t._s(o.name))])]):t._e()]}),e("DropdownItem",{key:"task-browse-view-more",staticClass:"task-title task-view-more",attrs:{name:"taskBrowseViewMore"},nativeOn:{click:function(o){return t.openRecent.apply(null,arguments)}}},[e("div",{staticClass:"task-title-text"},[t._v(t._s(t.$L("\u67E5\u770B\u66F4\u591A...")))])])],2):e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[e("DropdownItem",{staticStyle:{color:"darkgrey"}},[t._v(t._s(t.$L("\u6682\u65E0\u6253\u5F00\u8BB0\u5F55")))])],1)],1):s.path==="team"?e("Dropdown",{key:`team-${i}`,attrs:{transfer:"","transfer-class-name":"page-manage-menu-dropdown",placement:"right-start"}},[e("DropdownItem",{attrs:{divided:!!s.divided}},[e("div",{staticClass:"manage-menu-flex"},[e("div",{staticClass:"manage-menu-title"},[t._v(" "+t._s(t.$L(s.name))+" ")]),e("Icon",{attrs:{type:"ios-arrow-forward"}})],1)]),e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[e("DropdownItem",{attrs:{name:"allUser"}},[t._v(t._s(t.$L("\u56E2\u961F\u7BA1\u7406")))]),e("DropdownItem",{attrs:{name:"exportTask"}},[t._v(t._s(t.$L("\u5BFC\u51FA\u4EFB\u52A1\u7EDF\u8BA1")))]),e("DropdownItem",{attrs:{name:"exportOverdueTask"}},[t._v(t._s(t.$L("\u5BFC\u51FA\u8D85\u671F\u4EFB\u52A1")))]),t.systemFunctionEnabled("checkin")?e("DropdownItem",{attrs:{name:"exportCheckin"}},[t._v(t._s(t.$L("\u5BFC\u51FA\u7B7E\u5230\u6570\u636E")))]):t._e()],1)],1):s.path==="departmentOwnerView"?e("DropdownItem",{key:`menu-${i}`,style:s.style||{},attrs:{divided:!!s.divided,name:s.path}},[e("div",{staticClass:"manage-menu-flex"},[e("div",{staticClass:"manage-menu-title"},[t._v(" "+t._s(t.$L(s.name))+" ")]),s.selectedCount>0?e("Badge",{staticClass:"manage-menu-report-badge",attrs:{"overflow-count":999,count:s.selectedCount}}):t._e()],1)]):s.visible!==!1?[e("DropdownItem",{key:`menu-${i}`,style:s.style||{},attrs:{divided:!!s.divided,name:s.path}},[e("div",{staticClass:"manage-menu-flex"},[e("div",{staticClass:"manage-menu-title"},[t._v(" "+t._s(t.$L(s.name))+" ")]),s.selected===!0?e("Icon",{attrs:{type:"md-checkmark"}}):t._e(),s.path==="version"?e("Badge",{staticClass:"manage-menu-report-badge",attrs:{text:t.clientNewVersion}}):s.path==="system-update"?e("Badge",{staticClass:"manage-menu-report-badge",attrs:{text:t.systemNewVersion}}):s.path==="workReport"&&t.reportUnreadNumber>0?e("Badge",{staticClass:"manage-menu-report-badge",attrs:{count:t.reportUnreadNumber}}):t._e()],1)])]:t._e()]})],2)],1),e("Scrollbar",{attrs:{"class-name":"manage-item"},on:{"on-scroll":function(s){t.operateVisible=!1}}},[e("div",{staticClass:"menu-base"},[e("ul",[e("li",{class:t.classNameRoute("dashboard"),on:{click:function(s){return t.toggleRoute("dashboard")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE6FB")]),e("div",{staticClass:"menu-title"},[t._v(t._s(t.$L("\u4EEA\u8868\u76D8")))]),t.dashboardTask.overdue_count>0?e("Badge",{staticClass:"menu-badge",attrs:{type:"error","overflow-count":999,count:t.dashboardTask.overdue_count}}):t.dashboardTask.today_count>0?e("Badge",{staticClass:"menu-badge",attrs:{type:"info","overflow-count":999,count:t.dashboardTask.today_count}}):t.dashboardTask.todo_count>0?e("Badge",{staticClass:"menu-badge",attrs:{type:"primary","overflow-count":999,count:t.dashboardTask.todo_count}}):t._e()],1),t.systemFunctionEnabled("calendar")?e("li",{class:t.classNameRoute("calendar"),on:{click:function(s){return t.toggleRoute("calendar")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE6F5")]),e("div",{staticClass:"menu-title"},[t._v(t._s(t.$L("\u65E5\u5386")))])]):t._e(),e("li",{class:t.classNameRoute("messenger"),on:{click:function(s){return t.toggleRoute("messenger")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE6EB")]),e("div",{staticClass:"menu-title"},[t._v(t._s(t.$L("\u6D88\u606F")))]),e("Badge",{staticClass:"menu-badge",attrs:{"overflow-count":999,text:t.msgUnreadMention}})],1),e("li",{class:t.classNameRoute("file"),on:{click:function(s){return t.toggleRoute("file")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE6F3")]),e("div",{staticClass:"menu-title"},[t._v(t._s(t.$L("\u6587\u4EF6")))])]),e("li",{class:t.classNameRoute("application"),on:{click:function(s){return t.toggleRoute("application")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE60C")]),e("div",{staticClass:"menu-title"},[t._v(t._s(t.$L("\u5E94\u7528")))]),t.applicationBadgeCount>0?e("Badge",{staticClass:"menu-badge",attrs:{"overflow-count":999,count:t.applicationBadgeCount}}):t.applicationBadgeDot?e("Badge",{staticClass:"menu-badge",attrs:{dot:""}}):t._e()],1),t._l(t.filterMicroAppsMenusMain,function(s,i){return e("li",{key:i,on:{click:function(o){return t.onTabbarClick("microApp",s)}}},[e("div",{staticClass:"apply-icon no-dark-content",style:{backgroundImage:`url(${s.icon})`}}),e("div",{staticClass:"menu-title"},[t._v(t._s(s.label))]),t.microBadge(s).count>0?e("Badge",{staticClass:"menu-badge",attrs:{"overflow-count":999,count:t.microBadge(s).count}}):t.microBadge(s).dot?e("Badge",{staticClass:"menu-badge",attrs:{dot:""}}):t._e()],1)})],2),t.ownerProjectTabsVisible?e("div",{staticClass:"owner-project-tabs"},t._l(t.ownerProjectTabs,function(s){return e("div",{key:s.type,class:["owner-project-tab",t.ownerProjectTab===s.type?"active":""],attrs:{title:t.$L(s.name)},on:{click:function(i){t.ownerProjectTab=s.type}}},[e("span",[t._v(t._s(t.$L(s.name)))]),e("Badge",{attrs:{"overflow-count":999,count:s.count}})],1)}),0):t._e()]),e("div",{ref:"menuProject",staticClass:"menu-project"},[e("Draggable",{directives:[{name:"longpress",rawName:"v-longpress",value:t.handleLongpress,expression:"handleLongpress"}],attrs:{list:t.projectDraggableList,animation:150,disabled:t.$isEEUIApp||t.windowTouch||!!t.projectKeyValue||t.ownerProjectTabsVisible,tag:"ul","item-key":"id",draggable:"li:not(.pinned)",handle:".project-h1"},on:{start:function(s){t.projectDragging=!0},end:t.onProjectSortEnd}},[t._l(t.projectDraggableList,function(s){return e("li",{key:s.id,ref:`project_${s.id}`,refInFor:!0,class:[t.classNameProject(s),s.top_at?"pinned":""],attrs:{"data-id":s.id},on:{pointerdown:t.handleOperation,click:function(i){return t.toggleRoute("project",{projectId:s.id})}}},[e("div",{staticClass:"project-h1"},[e("em",{on:{click:function(i){return i.stopPropagation(),t.toggleOpenMenu(s.id)}}}),e("div",{staticClass:"title",domProps:{innerHTML:t._s(t.transformEmojiToHtml(s.name))}}),s.department_readonly&&s.personal?e("ETooltip",{attrs:{content:t.$L("\u4E2A\u4EBA\u9879\u76EE\uFF0C\u53EA\u8BFB\u67E5\u770B"),placement:"right"}},[e("UserAvatar",{staticClass:"readonly-owner-avatar",attrs:{userid:s.userid,size:18}})],1):s.department_readonly?e("ETooltip",{attrs:{content:t.$L("\u8D1F\u8D23\u4EBA\u89C6\u89D2\uFF0C\u53EA\u8BFB\u67E5\u770B"),placement:"right"}},[e("i",{staticClass:"taskfont readonly-project-avatar"},[t._v("\uE75C")])]):t._e(),s.top_at?e("div",{staticClass:"icon-top"}):t._e(),s.task_my_num-s.task_my_complete>0?e("div",{staticClass:"num"},[t._v(t._s(s.task_my_num-s.task_my_complete))]):t._e()],1),e("div",{staticClass:"project-h2"},[e("p",[e("em",[t._v(t._s(t.$L("\u6211\u7684"))+":")]),e("span",[t._v(t._s(s.task_my_complete)+"/"+t._s(s.task_my_num))]),e("Progress",{attrs:{percent:s.task_my_percent,"stroke-width":6}})],1),e("p",[e("em",[t._v(t._s(t.$L("\u5168\u90E8"))+":")]),e("span",[t._v(t._s(s.task_complete)+"/"+t._s(s.task_num))]),e("Progress",{attrs:{percent:s.task_percent,"stroke-width":6}})],1)])])}),t.projectKeyLoading>0||t.departmentOwnerProjectsRefreshing?e("li",{staticClass:"loading"},[e("Loading")],1):t.projectLists.length===0?e("li",{staticClass:"nothing"},[t._v(" "+t._s(t.$L(t.projectKeyValue?`\u6CA1\u6709\u4EFB\u4F55\u4E0E"${t.projectKeyValue}"\u76F8\u5173\u7684\u7ED3\u679C`:"\u6CA1\u6709\u4EFB\u4F55\u9879\u76EE"))+" ")]):t._e()],2)],1)]),e("div",{directives:[{name:"transfer-dom",rawName:"v-transfer-dom"},{name:"show",rawName:"v-show",value:t.operateVisible,expression:"operateVisible"}],staticClass:"operate-position",style:t.operateStyles,attrs:{"data-transfer":!0}},[e("Dropdown",{attrs:{trigger:"custom",placement:t.windowLandscape?"bottom":"top",visible:t.operateVisible,transfer:""},on:{"on-clickoutside":function(s){t.operateVisible=!1}}},[e("div",{style:{userSelect:t.operateVisible?"none":"auto",height:t.operateStyles.height}}),e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[e("DropdownItem",{nativeOn:{click:function(s){return t.handleTopClick.apply(null,arguments)}}},[t._v(" "+t._s(t.$L(t.operateItem.top_at?"\u53D6\u6D88\u7F6E\u9876":"\u7F6E\u9876\u8BE5\u9879\u76EE"))+" ")]),e("DropdownItem",{nativeOn:{click:function(s){return t.handleChatClick.apply(null,arguments)}}},[t._v(" "+t._s(t.$L("\u9879\u76EE\u8BA8\u8BBA"))+" ")])],1)],1)],1),t.projectKeyValue||(t.projectSearchShow||t.projectTotal>20)&&t.windowHeight>600?e("div",{staticClass:"manage-project-search"},[e("div",{staticClass:"search-pre"},[t.projectKeyLoading>0?e("Loading"):e("Icon",{attrs:{type:"ios-search"}})],1),e("Form",{staticClass:"search-form",attrs:{action:"javascript:void(0)"},nativeOn:{submit:function(s){return s.preventDefault(),t.$A.eeuiAppKeyboardHide.apply(null,arguments)}}},[e("Input",{attrs:{type:"search",placeholder:t.$L("\u5171(*)\u4E2A\u9879\u76EE\uFF0C\u641C\u7D22...",t.projectTotal||t.cacheProjects.length),clearable:""},model:{value:t.projectKeyValue,callback:function(s){t.projectKeyValue=s},expression:"projectKeyValue"}})],1)],1):t._e(),e("ButtonGroup",{staticClass:"manage-box-new-group"},[e("Button",{staticClass:"manage-box-new",attrs:{type:"primary",icon:"md-add"},on:{click:function(s){return t.onAddMenu("task")}}},[t._v(t._s(t.$L("\u65B0\u5EFA\u4EFB\u52A1")))]),e("Dropdown",{attrs:{trigger:"click"},on:{"on-click":t.onAddMenu}},[e("Button",{attrs:{type:"primary"}},[e("Icon",{attrs:{type:"ios-arrow-down"}})],1),e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[t.aiVisible?e("DropdownItem",{attrs:{name:"aiAssistant"}},[t._v(t._s(t.$L("AI \u52A9\u624B"))+" ("+t._s(t.mateName)+"+I)")]):t._e(),e("DropdownItem",{attrs:{name:"task"}},[t._v(t._s(t.$L("\u65B0\u5EFA\u4EFB\u52A1"))+" ("+t._s(t.mateName)+"+K)")]),e("DropdownItem",{attrs:{name:"project"}},[t._v(t._s(t.$L("\u65B0\u5EFA\u9879\u76EE"))+" ("+t._s(t.mateName)+"+B)")]),e("DropdownItem",{attrs:{name:"group"}},[t._v(t._s(t.$L("\u521B\u5EFA\u7FA4\u7EC4"))+" ("+t._s(t.mateName)+"+U)")]),e("DropdownItem",{attrs:{name:"createMeeting"}},[t._v(t._s(t.$L("\u65B0\u4F1A\u8BAE"))+" ("+t._s(t.mateName)+"+J)")]),e("DropdownItem",{attrs:{name:"joinMeeting"}},[t._v(t._s(t.$L("\u52A0\u5165\u4F1A\u8BAE")))])],1)],1)],1),e("ResizeLine",{staticClass:"manage-menu-resize",attrs:{placement:"right",min:200,max:420},on:{"on-change":t.onMenuResizeChange},model:{value:t.menuWidth,callback:function(s){t.menuWidth=s},expression:"menuWidth"}})],1),e("div",{staticClass:"manage-box-main",attrs:{role:t.routeName}},[t._m(0),e("keep-alive",[e("router-view",{staticClass:"manage-box-view",on:{"on-click":t.onTabbarClick}})],1),t._m(1)],1),e("Modal",{attrs:{title:t.$L("\u65B0\u5EFA\u9879\u76EE"),"mask-closable":!1},model:{value:t.addShow,callback:function(s){t.addShow=s},expression:"addShow"}},[e("Form",t._b({ref:"addProject",attrs:{model:t.addData,rules:t.addRule},nativeOn:{submit:function(s){s.preventDefault()}}},"Form",t.formOptions,!1),[e("FormItem",{attrs:{prop:"name",label:t.$L("\u9879\u76EE\u540D\u79F0")}},[e("div",{staticClass:"page-manage-project-ai-wrapper"},[e("Input",{ref:"projectName",attrs:{type:"text"},model:{value:t.addData.name,callback:function(s){t.$set(t.addData,"name",s)},expression:"addData.name"}}),t.aiVisible?e("div",{staticClass:"project-ai-button",attrs:{type:"text"},on:{click:t.onProjectAI}},[e("i",{staticClass:"taskfont"},[t._v("\uE8A1")])]):t._e()],1)]),t.addData.columns?e("FormItem",{attrs:{label:t.$L("\u4EFB\u52A1\u5217\u8868")}},[e("TagInput",{attrs:{cut:[",","\uFF0C"," "]},model:{value:t.addData.columns,callback:function(s){t.$set(t.addData,"columns",s)},expression:"addData.columns"}})],1):e("FormItem",{attrs:{label:t.$L("\u9879\u76EE\u6A21\u677F")}},[e("Select",{attrs:{value:0,placeholder:t.$L("\u8BF7\u9009\u62E9\u6A21\u677F")},on:{"on-change":t.selectChange}},t._l(t.columns,function(s,i){return e("Option",{key:i,attrs:{value:i}},[t._v(t._s(s.name))])}),1)],1),e("FormItem",{attrs:{prop:"flow",label:t.$L("\u5F00\u542F\u5DE5\u4F5C\u6D41")}},[e("RadioGroup",{model:{value:t.addData.flow,callback:function(s){t.$set(t.addData,"flow",s)},expression:"addData.flow"}},[e("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),e("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1)],1)],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(s){t.addShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.loadIng>0},on:{click:t.onAddProject}},[t._v(t._s(t.$L("\u6DFB\u52A0")))])],1)],1),e("Modal",{attrs:{"mask-closable":!1,styles:{width:"90%",maxWidth:"640px"},"footer-hide":""},model:{value:t.addTaskShow,callback:function(s){t.addTaskShow=s},expression:"addTaskShow"}},[e("TaskAdd",{ref:"addTask",model:{value:t.addTaskShow,callback:function(s){t.addTaskShow=s},expression:"addTaskShow"}})],1),e("Modal",{attrs:{title:t.$L("\u521B\u5EFA\u7FA4\u7EC4"),"mask-closable":!1},model:{value:t.createGroupShow,callback:function(s){t.createGroupShow=s},expression:"createGroupShow"}},[e("Form",t._b({attrs:{model:t.createGroupData},nativeOn:{submit:function(s){s.preventDefault()}}},"Form",t.formOptions,!1),[e("FormItem",{attrs:{prop:"avatar",label:t.$L("\u7FA4\u5934\u50CF")}},[e("ImgUpload",{attrs:{num:1,width:512,height:512,whcut:"cover"},model:{value:t.createGroupData.avatar,callback:function(s){t.$set(t.createGroupData,"avatar",s)},expression:"createGroupData.avatar"}})],1),e("FormItem",{attrs:{prop:"userids",label:t.$L("\u7FA4\u6210\u5458")}},[e("UserSelect",{attrs:{uncancelable:t.createGroupData.uncancelable,"multiple-max":100,"show-bot":"",title:t.$L("\u9009\u62E9\u9879\u76EE\u6210\u5458")},model:{value:t.createGroupData.userids,callback:function(s){t.$set(t.createGroupData,"userids",s)},expression:"createGroupData.userids"}})],1),e("FormItem",{attrs:{prop:"chat_name",label:t.$L("\u7FA4\u540D\u79F0")}},[e("Input",{attrs:{placeholder:t.$L("\u8F93\u5165\u7FA4\u540D\u79F0\uFF08\u9009\u586B\uFF09")},model:{value:t.createGroupData.chat_name,callback:function(s){t.$set(t.createGroupData,"chat_name",s)},expression:"createGroupData.chat_name"}})],1)],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(s){t.createGroupShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.createGroupLoad>0},on:{click:t.submitCreateGroup}},[t._v(t._s(t.$L("\u521B\u5EFA")))])],1)],1),e("MCPHelper",{model:{value:t.mcpHelperShow,callback:function(s){t.mcpHelperShow=s},expression:"mcpHelperShow"}}),e("DepartmentOwnerView",{model:{value:t.departmentOwnerViewShow,callback:function(s){t.departmentOwnerViewShow=s},expression:"departmentOwnerViewShow"}}),e("TaskExport",{model:{value:t.exportTaskShow,callback:function(s){t.exportTaskShow=s},expression:"exportTaskShow"}}),e("CheckinExport",{model:{value:t.exportCheckinShow,callback:function(s){t.exportCheckinShow=s},expression:"exportCheckinShow"}}),e("TaskModal",{ref:"taskModal"}),e("DialogModal",{ref:"dialogModal"}),e("SearchBox",{ref:"searchBox"}),e("DrawerOverlay",{attrs:{placement:"right",size:1200},model:{value:t.workReportShow,callback:function(s){t.workReportShow=s},expression:"workReportShow"}},[t.workReportShow?e("Report",{on:{"on-read":function(s){return t.$store.dispatch("getReportUnread",1e3)}},model:{value:t.workReportTab,callback:function(s){t.workReportTab=s},expression:"workReportTab"}}):t._e()],1),e("DrawerOverlay",{attrs:{placement:"right",size:1200},model:{value:t.favoriteShow,callback:function(s){t.favoriteShow=s},expression:"favoriteShow"}},[t.favoriteShow?e("FavoriteManagement",{on:{"on-close":function(s){t.favoriteShow=!1}}}):t._e()],1),e("DrawerOverlay",{attrs:{placement:"right",size:1200},model:{value:t.recentShow,callback:function(s){t.recentShow=s},expression:"recentShow"}},[t.recentShow?e("RecentManagement",{on:{"on-close":function(s){t.recentShow=!1}}}):t._e()],1),e("DrawerOverlay",{attrs:{placement:"right",size:1380},model:{value:t.allUserShow,callback:function(s){t.allUserShow=s},expression:"allUserShow"}},[t.allUserShow?e("TeamManagement",{on:{"on-close":function(s){t.allUserShow=!1}}}):t._e()],1),e("DrawerOverlay",{attrs:{placement:"right",size:1200},model:{value:t.allProjectShow,callback:function(s){t.allProjectShow=s},expression:"allProjectShow"}},[t.allProjectShow?e("ProjectManagement"):t._e()],1),e("DrawerOverlay",{attrs:{placement:"right",size:1200},model:{value:t.complaintShow,callback:function(s){t.complaintShow=s},expression:"complaintShow"}},[t.complaintShow?e("ComplaintManagement"):t._e()],1),e("DrawerOverlay",{attrs:{placement:"right",size:1200},model:{value:t.archivedProjectShow,callback:function(s){t.archivedProjectShow=s},expression:"archivedProjectShow"}},[t.archivedProjectShow?e("ProjectArchived"):t._e()],1),e("transition",{attrs:{name:"mobile-slide"}},[t.mobileTabbar?e("MobileTabbar",{on:{"on-click":t.onTabbarClick}}):t._e()],1),e("MicroApps")],1)},ia=[function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"manage-status-bar"},[e("span")])},function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"manage-navigation-bar"},[e("span")])}];const oa={components:{SearchBox:aa,ImgUpload:ht,UserSelect:k,TaskExport:We,CheckinExport:tt,TaskModal:Be,DialogModal:je,MobileTabbar:qt,TaskAdd:le,Report:Te,DrawerOverlay:W,ProjectManagement:Wt,TeamManagement:et,MCPHelper:Tt,FavoriteManagement:jt,RecentManagement:Bt,ProjectArchived:yt,MicroApps:dt,ResizeLine:st,ComplaintManagement:qe,Draggable:ut,DepartmentOwnerView:mt},directives:{longpress:Q,TransferDom:X},data(){return{loadIng:0,mateName:/macintosh|mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl",addShow:!1,addData:{name:"",columns:"",flow:"open"},addRule:{name:[{required:!0,message:this.$L("\u8BF7\u586B\u5199\u9879\u76EE\u540D\u79F0\uFF01"),trigger:"change"},{type:"string",min:2,message:this.$L("\u9879\u76EE\u540D\u79F0\u81F3\u5C11(*)\u4E2A\u5B57\uFF01",2),trigger:"change"}]},addTaskShow:!1,createGroupShow:!1,createGroupData:{},createGroupLoad:0,exportTaskShow:!1,exportCheckinShow:!1,projectKeyValue:"",projectKeyLoading:0,projectSearchShow:!1,projectDraggableList:[],projectDragging:!1,ownerProjectTab:"mine",openMenu:{},visibleMenu:!1,allUserShow:!1,allProjectShow:!1,archivedProjectShow:!1,favoriteShow:!1,recentShow:!1,natificationReady:!1,notificationManage:null,workReportShow:!1,workReportTab:"my",operateStyles:{},operateVisible:!1,operateItem:{},complaintShow:!1,taskBrowseLoading:!1,taskBrowseHistory:[],mcpHelperShow:!1,departmentOwnerViewShow:!1,menuWidth:Math.min(420,Math.max(200,$A.getStorageInt("manage.menuWidth",255))),menuResizing:!1}},mounted(){this.notificationInit(),r.on("addTask",this.onAddTask),r.on("createGroup",this.onCreateGroup),r.on("dialogMsgPush",this.addDialogMsg),r.on("openReport",this.openReport),r.on("openFavorite",this.openFavorite),r.on("openRecent",this.openRecent),r.on("openManageExport",this.openManageExport),r.on("websocketMsg",this.onWebsocketMsg),document.addEventListener("keydown",this.shortcutEvent)},activated(){this.$store.dispatch("getUserInfo").catch(t=>{}),this.$store.dispatch("getTaskPriority",1e3),this.$store.dispatch("getReportUnread",1e3)},beforeDestroy(){r.off("addTask",this.onAddTask),r.off("createGroup",this.onCreateGroup),r.off("dialogMsgPush",this.addDialogMsg),r.off("openReport",this.openReport),r.off("openFavorite",this.openFavorite),r.off("openRecent",this.openRecent),r.off("openManageExport",this.openManageExport),r.off("websocketMsg",this.onWebsocketMsg),document.removeEventListener("keydown",this.shortcutEvent)},deactivated(){this.addShow=!1},computed:{...m(["userInfo","userIsAdmin","cacheUserBasic","cacheTasks","cacheDialogs","cacheProjects","projectTotal","themeName","wsOpenNum","columnTemplate","clientNewVersion","clientDownloadUrl","systemNewVersion","reportUnreadNumber","dialogIns","formOptions","systemConfig","mobileTabbar","longpressData","departmentOwnerProjectsRefreshing","departmentOwnerProjectViewEnabled","mcpServerStatus"]),...v(["aiVisible","dashboardTask","filterMicroAppsMenusMain","visibleDialogs","systemFunctionEnabled"]),...v("appBadges",{applicationBadgeCount:"applicationCount",applicationBadgeDot:"applicationDot"}),calendarDisabled(){return this.routeName==="manage-calendar"&&this.$store.state.systemFunctions.calendar===!1},departmentOwnerViewAvailable(){return this.systemConfig.department_owner_project_view==="open"&&(this.userInfo.managed_departments||[]).length>0},cacheDepartmentOwnerIds(){return this.$store.state.cacheDepartmentOwnerIds||[]},pageClass({mobileTabbar:t,userId:a}){return{"show-tabbar":t,"not-logged":a<=0}},menuStyle(){return{width:`${this.menuWidth}px`}},msgUnreadMention(){let t=0,a=0;this.visibleDialogs.some(s=>{t+=$A.getDialogUnread(s,!1),a+=$A.getDialogMention(s)}),t>999&&(t="999+"),a>999&&(a="999+");const e=this.msgTodoTotal;return e?a?`@${a}\xB7${e}`:t?`${t}\xB7${e}`:e:t?a?`${t}\xB7@${a}`:String(t):a?`@${a}`:""},msgAllUnread(){let t=0;return this.visibleDialogs.some(a=>{t+=$A.getDialogNum(a)}),t},msgTodoTotal(){let t=this.visibleDialogs.reduce((a,e)=>a+(e.todo_num||0),0);return t>0?(t>99?t="99+":t===1&&(t=""),`${this.$L("\u5F85\u529E")}${t}`):null},unreadAndOverdue(){return this.userId>0?this.msgAllUnread+this.dashboardTask.overdue_count:0},showDownloadClient(){return!this.$Electron&&!this.$isEEUIApp&&!!this.clientDownloadUrl},menu(){const{userIsAdmin:t,systemFunctionEnabled:a}=this,e=[[{path:"taskBrowse",name:"\u6700\u8FD1\u6253\u5F00\u7684\u4EFB\u52A1",visible:a("recent")},{path:"favorite",name:"\u6211\u7684\u6536\u85CF",visible:a("favorite")},{path:"download",name:"\u4E0B\u8F7D\u5185\u5BB9",visible:!!this.$Electron},{path:"mcpServer",name:"\u542F\u7528\u684C\u9762 MCP \u670D\u52A1\u5668",visible:!!this.$Electron,selected:this.mcpServerStatus.running==="running"}]],s=this.departmentOwnerViewAvailable?[{path:"departmentOwnerView",name:"\u8D1F\u8D23\u4EBA\u89C6\u89D2",selected:this.departmentOwnerProjectViewEnabled,selectedCount:this.departmentOwnerProjectViewEnabled?this.cacheDepartmentOwnerIds.length:0}]:[];t?e.push([{path:"personal",name:"\u4E2A\u4EBA\u8BBE\u7F6E"},{path:"system",name:"\u7CFB\u7EDF\u8BBE\u7F6E"},{path:"license",name:"License Key"}],[{path:"system-update",name:"\u66F4\u65B0\u7CFB\u7EDF",visible:!!this.systemNewVersion},{path:"downloadClient",name:"\u5BA2\u6237\u7AEF\u4E0B\u8F7D",visible:this.showDownloadClient},{path:"version",name:"\u66F4\u65B0\u5BA2\u6237\u7AEF",visible:!!this.clientNewVersion}],[{path:"allProject",name:"\u6240\u6709\u9879\u76EE"},{path:"archivedProject",name:"\u5DF2\u5F52\u6863\u7684\u9879\u76EE"}],[{path:"team",name:"\u56E2\u961F\u7BA1\u7406"},...s]):e.push([{path:"personal",name:"\u4E2A\u4EBA\u8BBE\u7F6E"}],[{path:"downloadClient",name:"\u5BA2\u6237\u7AEF\u4E0B\u8F7D",visible:this.showDownloadClient},{path:"version",name:"\u66F4\u65B0\u5BA2\u6237\u7AEF",visible:!!this.clientNewVersion}],[{path:"workReport",name:"\u5DE5\u4F5C\u62A5\u544A",visible:a("report")},{path:"archivedProject",name:"\u5DF2\u5F52\u6863\u7684\u9879\u76EE"}],s),e.push([{path:"clearCache",name:"\u6E05\u9664\u7F13\u5B58"},{path:"logout",name:"\u9000\u51FA\u767B\u5F55",style:{color:"#f40"}}]);const i=[];return e.forEach(o=>{o.filter(c=>c.visible!==!1).forEach((c,h)=>{i.push(Object.assign({},c,{divided:h===0&&i.length>0}))})}),i},columns(){const t=$A.cloneJSON(this.columnTemplate);return t.unshift({name:this.$L("\u7A7A\u767D\u6A21\u677F"),columns:[]}),t},projectBaseLists(){const{projectKeyValue:t,cacheProjects:a}=this,e=$A.cloneJSON(a).sort((s,i)=>{if(s.top_at!==i.top_at&&(s.top_at||i.top_at))return $A.sortDay(i.top_at,s.top_at);const o=typeof s.sort=="number"?s.sort:Number.MAX_SAFE_INTEGER,n=typeof i.sort=="number"?i.sort:Number.MAX_SAFE_INTEGER;return o!==n?o-n:i.id-s.id});return t?e.filter(s=>$A.strExists(`${s.name} ${s.desc}`,t)):e},ownerProjectTabsVisible(){return this.departmentOwnerViewAvailable&&this.departmentOwnerProjectViewEnabled},ownerProjectTabs(){return[{type:"mine",name:"\u6211\u7684\u9879\u76EE",count:this.projectBaseLists.filter(t=>!t.department_readonly).length},{type:"readonly",name:"\u8D1F\u8D23\u4EBA\u89C6\u89D2",count:this.projectBaseLists.filter(t=>t.department_readonly).length}]},routeProjectId(){const{projectId:t}=this.$route.params;return parseInt(/^\d+$/.test(t)?t:0)},routeProject(){return this.routeProjectId<=0?null:this.cacheProjects.find(({id:t})=>t==this.routeProjectId)||null},projectLists(){return this.ownerProjectTabsVisible?this.projectBaseLists.filter(t=>this.ownerProjectTab==="readonly"?t.department_readonly:!t.department_readonly):this.projectBaseLists},taskBrowseLists(){return this.taskBrowseHistory.slice(0,10)}},watch:{$route(){this.chackPass()},userIsAdmin:{handler(t){t?this.checkSystemUpdate():this.$store.state.systemNewVersion=null},immediate:!0},calendarDisabled:{handler(t){t&&this.goForward({name:"manage-dashboard"},!0)},immediate:!0},userInfo(){this.chackPass()},projectKeyValue(t){t!=""&&setTimeout(()=>{this.projectKeyValue==t&&this.searchProject()},600)},wsOpenNum(t){t<=1||this.$store.dispatch("getBasicData",600)},workReportShow(t){!t||this.$store.dispatch("getReportUnread",0)},windowActive(t){!t||this.$store.dispatch("getProjectByQueue",600)},themeName:{handler(t){this.$Electron&&$A.Electron.request({action:"updateDownloadWindow",language:y,theme:t})},immediate:!0},"cacheProjects.length":{handler(){this.$nextTick(t=>{const a=this.$refs.menuProject,e=$A.last($A.getObject(a,"children.0.children"));if(e){const s=e.getBoundingClientRect(),i=a.getBoundingClientRect();if(s.top>i.top+i.height){this.projectSearchShow=!0;return}}this.projectSearchShow=!1})},immediate:!0},ownerProjectTabs:{handler(t){if(!this.ownerProjectTabsVisible){this.ownerProjectTab="mine";return}const a=t.find(e=>e.type===this.ownerProjectTab);if(!a||a.count===0){const e=t.find(s=>s.count>0);e&&(this.ownerProjectTab=e.type)}this.syncOwnerProjectTabByRoute()},immediate:!0},routeProject:{handler(){this.syncOwnerProjectTabByRoute()},immediate:!0},projectLists:{handler(t){this.projectDragging||(this.projectDraggableList=$A.cloneJSON(t))},immediate:!0},unreadAndOverdue:{handler(t){this.$Electron&&this.$Electron.sendMessage("setDockBadge",t)},immediate:!0},mcpServerStatus:{handler(t){!this.$Electron||this.$Electron.sendMessage("mcpServerToggle",t)},immediate:!0}},methods:{transformEmojiToHtml:V,microBadge(t){return this.$store.getters["appBadges/badge"](t&&t.id,t&&t.key)},onMenuResizeChange({event:t}){this.menuResizing=t!=="up",t==="up"&&$A.setStorage("manage.menuWidth",this.menuWidth)},syncOwnerProjectTabByRoute(){!this.ownerProjectTabsVisible||!this.routeProject||(this.ownerProjectTab=this.routeProject.department_readonly?"readonly":"mine")},chackPass(){this.userInfo.changepass===1&&this.goForward({name:"manage-setting-password"})},async toggleRoute(t,a){const e={name:"manage-"+t,params:a||{}},s=await $A.IDBInt("fileFolderId");t==="file"&&s>0&&(e.params.folderId=s),this.goForward(e)},toggleOpenMenu(t){this.$set(this.openMenu,t,!this.openMenu[t])},settingRoute(t){switch(t){case"departmentOwnerView":this.departmentOwnerViewShow=!0;return;case"allUser":this.allUserShow=!0;return;case"allProject":this.allProjectShow=!0;return;case"archivedProject":this.archivedProjectShow=!0;return;case"exportTask":this.exportTaskShow=!0;return;case"exportOverdueTask":this.exportOverdueTask();return;case"exportCheckin":this.exportCheckinShow=!0;return;case"workReport":this.openReport(this.reportUnreadNumber>0?"receive":"my");return;case"favorite":this.openFavorite();return;case"version":r.emit("updateNotification",null);return;case"downloadClient":r.emit("openDownloadClient");return;case"clearCache":$A.IDBSet("clearCache","handle").then(a=>{$A.reloadUrl()});return;case"complaint":this.complaintShow=!0;return;case"download":$A.Electron.request({action:"openDownloadWindow",language:y,theme:this.themeName});return;case"mcpServer":this.mcpHelperShow=!0,this.mcpServerStatus.running!=="running"&&this.$store.dispatch("toggleMcpServer");return;case"logout":$A.modalConfirm({title:"\u9000\u51FA\u767B\u5F55",content:"\u4F60\u786E\u5B9A\u8981\u767B\u51FA\u7CFB\u7EDF\u5417\uFF1F",loading:!0,onOk:()=>new Promise(async a=>{await this.$store.dispatch("logout",!1),a()})});return}this.menu.findIndex(a=>a.path==t)>-1&&this.toggleRoute("setting-"+t)},checkSystemUpdate(){this.$store.dispatch("call",{url:"system/update/check",checkNetwork:!1}).then(({data:t})=>{this.$store.state.systemNewVersion=t.has_update?t.latest_version:null}).catch(t=>{})},onWebsocketMsg({type:t}){t==="systemUpdate"&&$A.noticeWarning({title:"\u7CFB\u7EDF\u66F4\u65B0",desc:"\u7CFB\u7EDF\u6B63\u5728\u66F4\u65B0\uFF0C\u671F\u95F4\u53EF\u80FD\u77ED\u6682\u65E0\u6CD5\u4F7F\u7528\uFF0C\u7A0D\u540E\u5C06\u81EA\u52A8\u6062\u590D",duration:10})},exportOverdueTask(){$A.modalConfirm({title:"\u5BFC\u51FA\u4EFB\u52A1",content:"\u4F60\u786E\u5B9A\u8981\u5BFC\u51FA\u6240\u6709\u8D85\u671F\u4EFB\u52A1\u5417\uFF1F",loading:!0,onOk:()=>new Promise((t,a)=>{this.$store.dispatch("call",{url:"project/task/exportoverdue"}).then(()=>{t(),$A.modalSuccess("\u6B63\u5728\u6253\u5305\uFF0C\u8BF7\u7559\u610F\u7CFB\u7EDF\u6D88\u606F\u3002")}).catch(({msg:e})=>{a(e)})})})},menuVisibleChange(t){this.visibleMenu=t,t&&!this.taskBrowseLoading&&this.loadTaskBrowseHistory()},classNameRoute(t){return{active:this.routeName===`manage-${t}`}},classNameProject(t){return{active:this.routeName==="manage-project"&&this.$route.params.projectId==t.id,"open-menu":this.openMenu[t.id]===!0,operate:t.id==this.operateItem.id&&this.operateVisible}},onAddMenu(t){switch(t){case"project":this.onAddShow();break;case"task":this.onAddTask(0);break;case"group":this.onCreateGroup([this.userId]);break;case"createMeeting":r.emit("addMeeting",{type:"create",userids:[this.userId]});break;case"joinMeeting":r.emit("addMeeting",{type:"join"});break;case"aiAssistant":this.onOpenAIAssistant();break}},onOpenAIAssistant(){r.emit("openAIAssistantGlobal")},onAddShow(){this.$store.dispatch("getColumnTemplate").catch(()=>{}),this.addShow=!0,this.$nextTick(()=>{this.$refs.projectName.focus()})},onProjectAI(){r.emit("openAIAssistant",{sessionKey:"project-create",title:this.$L("AI \u9879\u76EE\u52A9\u624B"),placeholder:this.$L("\u8BF7\u7B80\u8981\u63CF\u8FF0\u9879\u76EE\u76EE\u6807\u3001\u8303\u56F4\u6216\u5173\u952E\u91CC\u7A0B\u7891\uFF0CAI \u5C06\u751F\u6210\u540D\u79F0\u548C\u4EFB\u52A1\u5217\u8868"),onBeforeSend:this.handleProjectAIBeforeSend,onRender:this.handleProjectAIRender,onApply:this.handleProjectAIApply})},buildProjectAIContextData(){const t=[],a=(this.addData.name||"").trim(),e=this.normalizeAIColumns(this.addData.columns);(a||e.length>0)&&(t.push("## \u5F53\u524D\u9879\u76EE\u8349\u7A3F"),a&&t.push(`\u5DF2\u6709\u540D\u79F0\uFF1A${a}`),e.length>0&&t.push(`\u73B0\u6709\u4EFB\u52A1\u5217\u8868\uFF1A${e.join("\u3001")}`),t.push("\u8BF7\u5728\u6B64\u57FA\u7840\u4E0A\u8FDB\u884C\u4F18\u5316\u548C\u8865\u5145\u3002"));const i=(Array.isArray(this.columns)?this.columns:[]).filter((o,n)=>n>0&&o).map(o=>{const n=this.normalizeAIColumns(o.columns);return n.length===0?null:{name:(o.name||"").trim(),columns:n}}).filter(Boolean).slice(0,6);return i.length>0&&(t.push("## \u5E38\u7528\u6A21\u677F\u793A\u4F8B"),i.forEach(o=>{const n=o.name?`${o.name}\uFF1A`:"";t.push(`- ${n}${o.columns.join("\u3001")}`)}),t.push("\u53EF\u4EE5\u501F\u9274\u4EE5\u4E0A\u7ED3\u6784\uFF0C\u4F46\u8981\u7ED3\u5408\u7528\u6237\u9700\u6C42\u751F\u6210\u66F4\u8D34\u5408\u7684\u65B9\u6848\u3002")),t.join(`
`).trim()},handleProjectAIBeforeSend(t=[]){const a=[["system",b(Z)]],e=this.buildProjectAIContextData();if(e){let s=["\u4EE5\u4E0B\u662F\u53EF\u7528\u7684\u4E0A\u4E0B\u6587\uFF0C\u8BF7\u636E\u6B64\u751F\u6210\u9879\u76EE\uFF1A",e].join(`
`);$A.getObject(t,[0,0])==="human"&&(s+=`
----
-\u8BF7\u6839\u636E\u4EE5\u4E0A\u4FE1\u606F\uFF0C\u7ED3\u5408\u4EE5\u4E0B\u7528\u6237\u8F93\u5165\u7684\u5185\u5BB9\u751F\u6210\u9879\u76EE\u540D\u79F0\u548C\u4EFB\u52A1\u5217\u8868\uFF1A++++`),a.push(["human",s])}return t.length>0&&a.push(...t),a},handleProjectAIApply({rawOutput:t}){if(!t){$A.messageWarning("AI \u672A\u751F\u6210\u5185\u5BB9");return}const a=this.parseProjectAIContent(t);if(!a){$A.modalError("AI \u5185\u5BB9\u89E3\u6790\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5");return}a.name&&this.$set(this.addData,"name",a.name),a.columns.length>0&&this.$set(this.addData,"columns",a.columns.join(",")),this.$nextTick(()=>{this.$refs.projectName&&this.$refs.projectName.focus()})},normalizeAIColumns(t){if(!t)return[];const a=e=>{if(!e)return"";if(typeof e=="string")return e.trim();if(typeof e=="object"){const s=e.name||e.title||e.label||e.value||"";return typeof s=="string"?s.trim():""}return String(e).trim()};if(Array.isArray(t))return t.map(a).filter(Boolean);if(typeof t=="string")return t.split(/[\n\r,,;;|]/).map(e=>e.trim()).filter(Boolean);if(typeof t=="object"){if(Array.isArray(t.columns))return this.normalizeAIColumns(t.columns);if(typeof t.columns=="string")return this.normalizeAIColumns(t.columns)}return[]},parseProjectAIContent(t){const a=U(t);if(!a||typeof a!="object")return null;const e=[a.name,a.title,a.project_name].find(r=>typeof r=="string"&&r.trim()),s=a.columns||a.lists||a.stages||a.columns_list,i=this.normalizeAIColumns(s);return!e&&i.length===0?null:{name:e?e.trim():"",columns:i}},handleProjectAIRender({rawOutput:t}){if(!t)return"";const a=this.parseProjectAIContent(t);if(!a)return t;const e=[];if(a.name&&e.push(`## ${a.name}`),a.columns.length>0){const s=a.columns.map((i,r)=>`${r+1}. ${i}`);e.push(s.join(`
+\u8BF7\u6839\u636E\u4EE5\u4E0A\u4FE1\u606F\uFF0C\u7ED3\u5408\u4EE5\u4E0B\u7528\u6237\u8F93\u5165\u7684\u5185\u5BB9\u751F\u6210\u9879\u76EE\u540D\u79F0\u548C\u4EFB\u52A1\u5217\u8868\uFF1A++++`),a.push(["human",s])}return t.length>0&&a.push(...t),a},handleProjectAIApply({rawOutput:t}){if(!t){$A.messageWarning("AI \u672A\u751F\u6210\u5185\u5BB9");return}const a=this.parseProjectAIContent(t);if(!a){$A.modalError("AI \u5185\u5BB9\u89E3\u6790\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5");return}a.name&&this.$set(this.addData,"name",a.name),a.columns.length>0&&this.$set(this.addData,"columns",a.columns.join(",")),this.$nextTick(()=>{this.$refs.projectName&&this.$refs.projectName.focus()})},normalizeAIColumns(t){if(!t)return[];const a=e=>{if(!e)return"";if(typeof e=="string")return e.trim();if(typeof e=="object"){const s=e.name||e.title||e.label||e.value||"";return typeof s=="string"?s.trim():""}return String(e).trim()};if(Array.isArray(t))return t.map(a).filter(Boolean);if(typeof t=="string")return t.split(/[\n\r,,;;|]/).map(e=>e.trim()).filter(Boolean);if(typeof t=="object"){if(Array.isArray(t.columns))return this.normalizeAIColumns(t.columns);if(typeof t.columns=="string")return this.normalizeAIColumns(t.columns)}return[]},parseProjectAIContent(t){const a=U(t);if(!a||typeof a!="object")return null;const e=[a.name,a.title,a.project_name].find(o=>typeof o=="string"&&o.trim()),s=a.columns||a.lists||a.stages||a.columns_list,i=this.normalizeAIColumns(s);return!e&&i.length===0?null:{name:e?e.trim():"",columns:i}},handleProjectAIRender({rawOutput:t}){if(!t)return"";const a=this.parseProjectAIContent(t);if(!a)return t;const e=[];if(a.name&&e.push(`## ${a.name}`),a.columns.length>0){const s=a.columns.map((i,o)=>`${o+1}. ${i}`);e.push(s.join(`
`))}return e.join(`
-`).trim()||t},onAddProject(){this.$refs.addProject.validate(t=>{t&&(this.loadIng++,this.$store.dispatch("call",{url:"project/add",data:this.addData}).then(({data:a,msg:e})=>{$A.messageSuccess(e),this.addShow=!1,this.$refs.addProject.resetFields(),this.$store.dispatch("saveProject",a),this.toggleRoute("project",{projectId:a.id})}).catch(({msg:a})=>{$A.modalError(a)}).finally(a=>{this.loadIng--}))})},searchProject(){setTimeout(()=>{this.projectKeyLoading++},1e3),this.$store.dispatch("getProjects",{keys:{name:this.projectKeyValue}}).finally(t=>{this.projectKeyLoading--})},selectChange(t){this.$nextTick(()=>{this.$set(this.addData,"columns",this.columns[t].columns.join(","))})},shortcutEvent(t){if(!(!(t.metaKey||t.ctrlKey)||t.shiftKey)){if(t.altKey){switch(t.keyCode){case 76:t.preventDefault(),this.settingRoute("download");break}return}switch(t.keyCode){case 66:t.preventDefault(),this.onAddShow();break;case 70:case 191:t.preventDefault(),this.$refs.searchBox.onShow();break;case 75:case 78:t.preventDefault(),this.onAddMenu("task");break;case 85:this.onCreateGroup([this.userId]);break;case 74:t.preventDefault(),this.onAddMenu("createMeeting");break;case 73:this.aiVisible&&(t.preventDefault(),this.onOpenAIAssistant());break;case 83:this.$refs.taskModal.checkUpdate()&&t.preventDefault();break;case 188:t.preventDefault(),this.toggleRoute("setting");break}}},onProjectSortEnd(){const t=this.projectDraggableList.filter(a=>!a.top_at);this.$store.dispatch("call",{url:"project/user/sort",data:{list:t.map(a=>a.id)},method:"post",spinner:2e3}).then(({msg:a})=>{t.forEach((e,s)=>{this.$store.dispatch("saveProject",{id:e.id,sort:s})}),$A.messageSuccess(a)}).catch(({msg:a})=>{this.projectDraggableList=$A.cloneJSON(this.projectLists),$A.modalError(a)}).finally(()=>{this.projectDragging=!1})},onAddTask(t){this.addTaskShow=!0,this.$nextTick(a=>{let e={owner:[this.userId]};$A.isJson(t)?e=t:/^[1-9]\d*$/.test(t)&&(e.column_id=t),this.$refs.addTask.setData(e)})},openTask(t){this.$store.dispatch("openTask",t)},onCreateGroup(t){$A.isArray(t)||(t=[]),this.createGroupData={userids:t,uncancelable:[this.userId]},this.createGroupShow=!0},submitCreateGroup(){this.createGroupLoad++,this.$store.dispatch("call",{url:"dialog/group/add",data:this.createGroupData}).then(({data:t,msg:a})=>{$A.messageSuccess(a),this.createGroupShow=!1,this.createGroupData={},this.$store.dispatch("saveDialog",t),this.$store.dispatch("openDialog",t.id)}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.createGroupLoad--})},addDialogMsg({silence:t,data:a}){var g;if(t||!this.natificationReady&&!this.$isEEUIApp||this.windowActive&&a.dialog_id===((g=$A.last(this.dialogIns))==null?void 0:g.dialog_id))return;const{id:e,dialog_id:s,dialog_type:i,userid:r}=a;if(r==this.userId)return;this.__notificationId=e;const o=async(h,p)=>{if(r===-1){i==="group"&&(p=(a.msg&&a.msg.nickname||this.$L("AI \u52A9\u624B"))+": "+p),d(h,p,$A.mainUrl("images/avatar/default_assistant.png"));return}const f=await this.$store.dispatch("getUserData",r).catch(la=>{});i==="group"&&f&&(p=f.nickname+": "+p),d(h,p,f==null?void 0:f.userimg)},d=(h,p,f)=>{this.__notificationId===e&&(this.__notificationId=null,this.$isEEUIApp?n.emit("openMobileNotification",{userid:r,title:h,desc:p,callback:()=>{this.$store.dispatch("openDialog",s)}}):this.$Electron?this.$Electron.sendMessage("openNotification",{icon:f||$A.originUrl("images/logo.png"),title:h,body:p,data:a,tag:"dialog",hasReply:!0,replyPlaceholder:this.$L("\u56DE\u590D\u6D88\u606F")}):(this.notificationManage.replaceOptions({icon:f||$A.originUrl("images/logo.png"),body:p,data:a,tag:"dialog"}),this.notificationManage.replaceTitle(h),this.notificationManage.userAgreed()))},m=this.cacheDialogs.find(h=>h.id==s),l=$A.getMsgSimpleDesc(a);m?o(m.name,l):this.$store.dispatch("getDialogOne",s).then(({data:h})=>o(h.name,l)).catch(()=>{})},openReport(t){this.workReportTab=t,this.workReportShow=!0},openFavorite(){this.favoriteShow=!0},openRecent(){this.recentShow=!0},openManageExport(t){switch(t){case"task":this.exportTaskShow=!0;break;case"overdue":this.exportOverdueTask();break;case"checkin":this.exportCheckinShow=!0;break}},handleLongpress(t){const{type:a,data:e,element:s}=this.longpressData;if(this.$store.commit("longpress/clear"),a!=="manage")return;const i=this.projectLists.find(r=>r.id==e.projectId);!i||(this.operateVisible=!1,this.operateItem=$A.isJson(i)?i:{},requestAnimationFrame(()=>{const r=s.getBoundingClientRect();this.operateStyles={left:`${t.clientX}px`,top:`${r.top}px`,height:`${r.height}px`},this.operateVisible=!0}))},handleOperation({currentTarget:t}){this.$store.commit("longpress/set",{type:"manage",data:{projectId:$A.getAttr(t,"data-id")},element:t})},handleTopClick(){this.$store.dispatch("call",{url:"project/top",data:{project_id:this.operateItem.id}}).then(({data:t})=>{this.$store.dispatch("saveProject",t),this.$nextTick(()=>{const a=this.$refs.menuProject.querySelector(".active");a&&$A.scrollIntoViewIfNeeded(a)})}).catch(({msg:t})=>{$A.modalError(t)})},handleChatClick(){this.$store.dispatch("openDialog",this.operateItem.dialog_id).catch(({msg:t})=>{$A.modalError(t||this.$L("\u6253\u5F00\u4F1A\u8BDD\u5931\u8D25"))})},onTabbarClick(t,a=""){switch(t){case"createGroup":this.onAddMenu("group");break;case"addTask":this.onAddTask(0);break;case"addProject":this.onAddShow();break;case"allUser":case"complaint":case"workReport":this.settingRoute(t);break;case"microApp":this.$store.dispatch("openMicroApp",a);break}},notificationInit(){this.notificationManage=new pt(this.$L("\u6253\u5F00\u901A\u77E5\u6210\u529F")),this.notificationManage.support&&(this.notificationManage.notificationEvent({onclick:({target:t})=>{console.log("[Notification] A Click",t),this.notificationManage.close(),this.notificationClick(t),window.focus()}}),this.notificationPermission()),this.$Electron&&(this.$Electron.listener("clickNotification",t=>{console.log("[Notification] B Click",t),this.$Electron.sendMessage("mainWindowActive"),this.notificationClick(t)}),this.$Electron.listener("replyNotification",t=>{console.log("[Notification] B Reply",t),this.notificationReply(t)}))},notificationPermission(){const t=a=>{switch(a){case"already granted":case"granted":return this.natificationReady=!0;case"close":return this.notificationManage.initNotification(t);case"denied":case"already denied":console.log(a==="denied"?"\u60A8\u521A\u521A\u62D2\u7EDD\u663E\u793A\u901A\u77E5 \u8BF7\u5728\u8BBE\u7F6E\u4E2D\u66F4\u6539\u8BBE\u7F6E":"\u60A8\u66FE\u7EA7\u62D2\u7EDD\u663E\u793A\u901A\u77E5 \u8BF7\u5728\u8BBE\u7F6E\u4E2D\u66F4\u6539\u8BBE\u7F6E");break}};this.notificationManage.initNotification(t)},notificationClick(t){const{tag:a,data:e}=t;if(a=="dialog"){if(!$A.isJson(e))return;this.$nextTick(s=>{this.$store.dispatch("openDialog",e.dialog_id)})}},notificationReply(t){const{tag:a,data:e,reply:s}=t;a=="dialog"&&s&&this.$store.dispatch("call",{url:"dialog/msg/sendtext",data:{dialog_id:e.dialog_id,text:s},method:"post"}).then(({data:i})=>{this.$store.dispatch("saveDialogMsg",i),this.$store.dispatch("increaseTaskMsgNum",{id:i.dialog_id}),this.$store.dispatch("increaseMsgReplyNum",{id:i.reply_id}),this.$store.dispatch("updateDialogLastMsg",i)}).catch(({msg:i})=>{$A.modalError(i)})},loadTaskBrowseHistory(){this.taskBrowseLoading||(this.taskBrowseLoading=!0,this.$store.dispatch("getTaskBrowseHistory",20).then(({data:t})=>{this.taskBrowseHistory=t||[]}).catch(t=>{console.warn("\u83B7\u53D6\u4EFB\u52A1\u6D4F\u89C8\u5386\u53F2\u5931\u8D25:",t)}).finally(()=>{this.taskBrowseLoading=!1}))}}},F={};var oa=c(ra,sa,ia,!1,na,null,null,null);function na(t){for(let a in F)this[a]=F[a]}var ks=function(){return oa.exports}();export{ks as default};
+`).trim()||t},onAddProject(){this.$refs.addProject.validate(t=>{t&&(this.loadIng++,this.$store.dispatch("call",{url:"project/add",data:this.addData}).then(({data:a,msg:e})=>{$A.messageSuccess(e),this.addShow=!1,this.$refs.addProject.resetFields(),this.$store.dispatch("saveProject",a),this.toggleRoute("project",{projectId:a.id})}).catch(({msg:a})=>{$A.modalError(a)}).finally(a=>{this.loadIng--}))})},searchProject(){setTimeout(()=>{this.projectKeyLoading++},1e3),this.$store.dispatch("getProjects",{keys:{name:this.projectKeyValue}}).finally(t=>{this.projectKeyLoading--})},selectChange(t){this.$nextTick(()=>{this.$set(this.addData,"columns",this.columns[t].columns.join(","))})},shortcutEvent(t){if(!(!(t.metaKey||t.ctrlKey)||t.shiftKey)){if(t.altKey){switch(t.keyCode){case 76:t.preventDefault(),this.settingRoute("download");break}return}switch(t.keyCode){case 66:t.preventDefault(),this.onAddShow();break;case 70:case 191:t.preventDefault(),this.$refs.searchBox.onShow();break;case 75:case 78:t.preventDefault(),this.onAddMenu("task");break;case 85:this.onCreateGroup([this.userId]);break;case 74:t.preventDefault(),this.onAddMenu("createMeeting");break;case 73:this.aiVisible&&(t.preventDefault(),this.onOpenAIAssistant());break;case 83:this.$refs.taskModal.checkUpdate()&&t.preventDefault();break;case 188:t.preventDefault(),this.toggleRoute("setting");break}}},onProjectSortEnd(){const t=this.projectDraggableList.filter(a=>!a.top_at);this.$store.dispatch("call",{url:"project/user/sort",data:{list:t.map(a=>a.id)},method:"post",spinner:2e3}).then(({msg:a})=>{t.forEach((e,s)=>{this.$store.dispatch("saveProject",{id:e.id,sort:s})}),$A.messageSuccess(a)}).catch(({msg:a})=>{this.projectDraggableList=$A.cloneJSON(this.projectLists),$A.modalError(a)}).finally(()=>{this.projectDragging=!1})},onAddTask(t){this.addTaskShow=!0,this.$nextTick(a=>{let e={owner:[this.userId]};$A.isJson(t)?e=t:/^[1-9]\d*$/.test(t)&&(e.column_id=t),this.$refs.addTask.setData(e)})},openTask(t){this.$store.dispatch("openTask",t)},onCreateGroup(t){$A.isArray(t)||(t=[]),this.createGroupData={userids:t,uncancelable:[this.userId]},this.createGroupShow=!0},submitCreateGroup(){this.createGroupLoad++,this.$store.dispatch("call",{url:"dialog/group/add",data:this.createGroupData}).then(({data:t,msg:a})=>{$A.messageSuccess(a),this.createGroupShow=!1,this.createGroupData={},this.$store.dispatch("saveDialog",t),this.$store.dispatch("openDialog",t.id)}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.createGroupLoad--})},addDialogMsg({silence:t,data:a}){var g;if(t||!this.natificationReady&&!this.$isEEUIApp||this.windowActive&&a.dialog_id===((g=$A.last(this.dialogIns))==null?void 0:g.dialog_id))return;const{id:e,dialog_id:s,dialog_type:i,userid:o}=a;if(o==this.userId)return;this.__notificationId=e;const n=async(p,u)=>{if(o===-1){i==="group"&&(u=(a.msg&&a.msg.nickname||this.$L("AI \u52A9\u624B"))+": "+u),c(p,u,$A.mainUrl("images/avatar/default_assistant.png"));return}const f=await this.$store.dispatch("getUserData",o).catch(la=>{});i==="group"&&f&&(u=f.nickname+": "+u),c(p,u,f==null?void 0:f.userimg)},c=(p,u,f)=>{this.__notificationId===e&&(this.__notificationId=null,this.$isEEUIApp?r.emit("openMobileNotification",{userid:o,title:p,desc:u,callback:()=>{this.$store.dispatch("openDialog",s)}}):this.$Electron?this.$Electron.sendMessage("openNotification",{icon:f||$A.originUrl("images/logo.png"),title:p,body:u,data:a,tag:"dialog",hasReply:!0,replyPlaceholder:this.$L("\u56DE\u590D\u6D88\u606F")}):(this.notificationManage.replaceOptions({icon:f||$A.originUrl("images/logo.png"),body:u,data:a,tag:"dialog"}),this.notificationManage.replaceTitle(p),this.notificationManage.userAgreed()))},h=this.cacheDialogs.find(p=>p.id==s),l=$A.getMsgSimpleDesc(a);h?n(h.name,l):this.$store.dispatch("getDialogOne",s).then(({data:p})=>n(p.name,l)).catch(()=>{})},openReport(t){this.workReportTab=t,this.workReportShow=!0},openFavorite(){this.favoriteShow=!0},openRecent(){this.recentShow=!0},openManageExport(t){switch(t){case"task":this.exportTaskShow=!0;break;case"overdue":this.exportOverdueTask();break;case"checkin":this.exportCheckinShow=!0;break}},handleLongpress(t){const{type:a,data:e,element:s}=this.longpressData;if(this.$store.commit("longpress/clear"),a!=="manage")return;const i=this.projectLists.find(o=>o.id==e.projectId);!i||(this.operateVisible=!1,this.operateItem=$A.isJson(i)?i:{},requestAnimationFrame(()=>{const o=s.getBoundingClientRect();this.operateStyles={left:`${t.clientX}px`,top:`${o.top}px`,height:`${o.height}px`},this.operateVisible=!0}))},handleOperation({currentTarget:t}){this.$store.commit("longpress/set",{type:"manage",data:{projectId:$A.getAttr(t,"data-id")},element:t})},handleTopClick(){this.$store.dispatch("call",{url:"project/top",data:{project_id:this.operateItem.id}}).then(({data:t})=>{this.$store.dispatch("saveProject",t),this.$nextTick(()=>{const a=this.$refs.menuProject.querySelector(".active");a&&$A.scrollIntoViewIfNeeded(a)})}).catch(({msg:t})=>{$A.modalError(t)})},handleChatClick(){this.$store.dispatch("openDialog",this.operateItem.dialog_id).catch(({msg:t})=>{$A.modalError(t||this.$L("\u6253\u5F00\u4F1A\u8BDD\u5931\u8D25"))})},onTabbarClick(t,a=""){switch(t){case"createGroup":this.onAddMenu("group");break;case"addTask":this.onAddTask(0);break;case"addProject":this.onAddShow();break;case"allUser":case"complaint":case"workReport":this.settingRoute(t);break;case"microApp":this.$store.dispatch("openMicroApp",a);break}},notificationInit(){this.notificationManage=new pt(this.$L("\u6253\u5F00\u901A\u77E5\u6210\u529F")),this.notificationManage.support&&(this.notificationManage.notificationEvent({onclick:({target:t})=>{console.log("[Notification] A Click",t),this.notificationManage.close(),this.notificationClick(t),window.focus()}}),this.notificationPermission()),this.$Electron&&(this.$Electron.listener("clickNotification",t=>{console.log("[Notification] B Click",t),this.$Electron.sendMessage("mainWindowActive"),this.notificationClick(t)}),this.$Electron.listener("replyNotification",t=>{console.log("[Notification] B Reply",t),this.notificationReply(t)}))},notificationPermission(){const t=a=>{switch(a){case"already granted":case"granted":return this.natificationReady=!0;case"close":return this.notificationManage.initNotification(t);case"denied":case"already denied":console.log(a==="denied"?"\u60A8\u521A\u521A\u62D2\u7EDD\u663E\u793A\u901A\u77E5 \u8BF7\u5728\u8BBE\u7F6E\u4E2D\u66F4\u6539\u8BBE\u7F6E":"\u60A8\u66FE\u7EA7\u62D2\u7EDD\u663E\u793A\u901A\u77E5 \u8BF7\u5728\u8BBE\u7F6E\u4E2D\u66F4\u6539\u8BBE\u7F6E");break}};this.notificationManage.initNotification(t)},notificationClick(t){const{tag:a,data:e}=t;if(a=="dialog"){if(!$A.isJson(e))return;this.$nextTick(s=>{this.$store.dispatch("openDialog",e.dialog_id)})}},notificationReply(t){const{tag:a,data:e,reply:s}=t;a=="dialog"&&s&&this.$store.dispatch("call",{url:"dialog/msg/sendtext",data:{dialog_id:e.dialog_id,text:s},method:"post"}).then(({data:i})=>{this.$store.dispatch("saveDialogMsg",i),this.$store.dispatch("increaseTaskMsgNum",{id:i.dialog_id}),this.$store.dispatch("increaseMsgReplyNum",{id:i.reply_id}),this.$store.dispatch("updateDialogLastMsg",i)}).catch(({msg:i})=>{$A.modalError(i)})},loadTaskBrowseHistory(){this.taskBrowseLoading||(this.taskBrowseLoading=!0,this.$store.dispatch("getTaskBrowseHistory",20).then(({data:t})=>{this.taskBrowseHistory=t||[]}).catch(t=>{console.warn("\u83B7\u53D6\u4EFB\u52A1\u6D4F\u89C8\u5386\u53F2\u5931\u8D25:",t)}).finally(()=>{this.taskBrowseLoading=!1}))}}},F={};var ra=d(oa,sa,ia,!1,na,null,null,null);function na(t){for(let a in F)this[a]=F[a]}var ks=function(){return ra.exports}();export{ks as default};
diff --git a/public/js/build/meeting.4a444fa7.js b/public/js/build/meeting.3e440d40.js
similarity index 91%
rename from public/js/build/meeting.4a444fa7.js
rename to public/js/build/meeting.3e440d40.js
index 955f91f26..8f9fe0667 100644
--- a/public/js/build/meeting.4a444fa7.js
+++ b/public/js/build/meeting.3e440d40.js
@@ -1 +1 @@
-import{n as a}from"./app.818b057c.js";import"./jquery.c87f487f.js";import"./@babel.9410f858.js";import"./dayjs.fd4aa75c.js";import"./localforage.8de7c27e.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./vue.adba9046.js";import"./vuex.cc7cb26e.js";import"./openpgp_hi.15f91b1d.js";import"./axios.37c7f908.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./view-design-hi.24419422.js";import"./html-to-md.f297036e.js";import"./lodash.8fcd6fd4.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vuedraggable.f464b992.js";import"./sortablejs.3488b922.js";import"./vue-resize-observer.5af23a43.js";import"./element-sea.f8a64907.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var s=function(){var i=this,t=i.$createElement,r=i._self._c||t;return r("div")},u=[];const c={mounted(){const{meetingId:i,sharekey:t}=this.$route.params,{nickname:r,avatar:m,audio:p,video:n,type:o}=this.$route.query;this.$store.dispatch("showMeetingWindow",{type:["direct","join"].includes(o)?o:"join",meetingid:i,meetingSharekey:t,meetingNickname:r,meetingAvatar:m,meetingAudio:p,meetingVideo:n,meetingdisabled:!0})},render(){return null}},e={};var d=a(c,s,u,!1,l,null,null,null);function l(i){for(let t in e)this[t]=e[t]}var pt=function(){return d.exports}();export{pt as default};
+import{n as a}from"./app.ef7047f7.js";import"./jquery.6e4daff9.js";import"./@babel.9410f858.js";import"./dayjs.d20a4841.js";import"./localforage.743dffdd.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./vue.adba9046.js";import"./vuex.cc7cb26e.js";import"./openpgp_hi.15f91b1d.js";import"./axios.37c7f908.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./view-design-hi.24419422.js";import"./html-to-md.f297036e.js";import"./lodash.8fcd6fd4.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vuedraggable.f464b992.js";import"./sortablejs.3488b922.js";import"./vue-resize-observer.5af23a43.js";import"./element-sea.f8a64907.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var s=function(){var i=this,t=i.$createElement,r=i._self._c||t;return r("div")},u=[];const c={mounted(){const{meetingId:i,sharekey:t}=this.$route.params,{nickname:r,avatar:m,audio:p,video:n,type:o}=this.$route.query;this.$store.dispatch("showMeetingWindow",{type:["direct","join"].includes(o)?o:"join",meetingid:i,meetingSharekey:t,meetingNickname:r,meetingAvatar:m,meetingAudio:p,meetingVideo:n,meetingdisabled:!0})},render(){return null}},e={};var d=a(c,s,u,!1,l,null,null,null);function l(i){for(let t in e)this[t]=e[t]}var pt=function(){return d.exports}();export{pt as default};
diff --git a/public/js/build/messenger.b99bc25c.js b/public/js/build/messenger.3ab48edf.js
similarity index 98%
rename from public/js/build/messenger.b99bc25c.js
rename to public/js/build/messenger.3ab48edf.js
index 1558dab93..654f001c6 100644
--- a/public/js/build/messenger.b99bc25c.js
+++ b/public/js/build/messenger.3ab48edf.js
@@ -1 +1 @@
-import{m as p,a as u}from"./vuex.cc7cb26e.js";import{D as m}from"./DialogWrapper.21630cce.js";import{c as g,d as f,e as l,t as _,n as v}from"./app.818b057c.js";import"./chunkedUpload.a9ef725e.js";import"./axios.37c7f908.js";import"./spark-md5.0443325f.js";import"./index.ab4b7604.js";import"./vue-virtual-scroll-list-hi.74ad83f0.js";import"./@babel.9410f858.js";import"./vue.adba9046.js";import"./lodash.8fcd6fd4.js";import"./ImgUpload.a99f26bd.js";import"./webhook.378987f3.js";import"./jquery.c87f487f.js";import"./dayjs.fd4aa75c.js";import"./localforage.8de7c27e.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./openpgp_hi.15f91b1d.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./view-design-hi.24419422.js";import"./html-to-md.f297036e.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vuedraggable.f464b992.js";import"./sortablejs.3488b922.js";import"./vue-resize-observer.5af23a43.js";import"./element-sea.f8a64907.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var $=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"page-messenger"},[e("PageTitle",{attrs:{title:t.$L(t.tabActive==="dialog"?"\u6D88\u606F":"\u901A\u8BAF\u5F55")}}),e("div",{staticClass:"messenger-wrapper"},[e("div",{ref:"select",staticClass:"messenger-select"},[e("div",{staticClass:"messenger-search"},[e("div",{staticClass:"search-wrapper"},[e("div",{staticClass:"search-pre"},[t.searchLoading?e("Loading"):e("Icon",{attrs:{type:"ios-search"}})],1),e("Form",{staticClass:"search-form",attrs:{action:"javascript:void(0)"},nativeOn:{submit:function(s){return s.preventDefault(),t.$A.eeuiAppKeyboardHide.apply(null,arguments)}}},[t.tabActive==="dialog"?e("Input",{ref:"searchInput",attrs:{type:"search",placeholder:t.$L(t.loadDialogs>0?"\u66F4\u65B0\u4E2D...":"\u641C\u7D22"),clearable:""},on:{"on-keydown":t.onKeydown},model:{value:t.dialogSearchKey,callback:function(s){t.dialogSearchKey=s},expression:"dialogSearchKey"}}):e("Input",{ref:"contactInput",attrs:{type:"search",placeholder:t.$L("\u641C\u7D22"),clearable:""},on:{"on-keydown":t.onKeydown},model:{value:t.contactsKey,callback:function(s){t.contactsKey=s},expression:"contactsKey"}})],1)],1)]),t.tabActive==="dialog"&&!t.dialogSearchKey?e("div",{staticClass:"messenger-nav"},[e("EDropdown",{ref:"navMenu",staticClass:"nav-menu",attrs:{trigger:"click",placement:"bottom-start"},on:{command:t.onActive}},[e("div",{staticClass:"nav-icon"},[e("i",{staticClass:"taskfont"},[t._v("\uE634")])]),e("EDropdownMenu",{staticClass:"messenger-nav-menu",attrs:{slot:"dropdown"},slot:"dropdown"},t._l(t.dialogMenus,function(s,a){return e("EDropdownItem",{key:a,attrs:{command:s.type}},[e("div",{staticClass:"nav-item",class:{active:t.dialogActive==s.type}},[e("div",{staticClass:"nav-title"},[t._v(t._s(t.$L(s.name)))]),e("Badge",{staticClass:"nav-num",attrs:{"overflow-count":999,count:t.msgUnread(s.type)}})],1)])}),1)],1),e("div",{ref:"navList",staticClass:"nav-list"},t._l(t.dialogHistorys,function(s,a){return e("div",{key:a,staticClass:"nav-item",class:{active:t.dialogActive==s.type},on:{click:function(o){return t.onActive(s.type)}}},[e("div",{staticClass:"nav-title"},[e("em",[t._v(t._s(t.$L(s.name)))]),e("Badge",{staticClass:"nav-num",attrs:{"overflow-count":999,count:t.msgUnread(s.type)}})],1)])}),0)],1):t._e(),t.$isEEUIApp&&!t.appNotificationPermission?e("div",{staticClass:"messenger-notify-permission",on:{click:t.onOpenAppSetting}},[t._v(" "+t._s(t.$L("\u672A\u5F00\u542F\u901A\u77E5\u6743\u9650"))),e("i",{staticClass:"taskfont"},[t._v("\uE733")])]):t._e(),e("Scrollbar",{directives:[{name:"longpress",rawName:"v-longpress",value:t.handleLongpress,expression:"handleLongpress"}],ref:"list",staticClass:"messenger-list",attrs:{"hide-bar":t.operateVisible},on:{"on-scroll":t.listScroll},nativeOn:{touchstart:function(s){return t.listTouch.apply(null,arguments)}}},[t.tabActive==="dialog"?e("ul",{ref:"ul",staticClass:"dialog"},[t.dialogList.length>0?t._l(t.dialogList,function(s,a){var o;return e("li",{key:a,ref:`dialog_${s.id}`,refInFor:!0,class:t.dialogClass(s),style:{"background-color":s.color},attrs:{"data-id":s.id,"data-type":"dialog"},on:{click:function(r){return t.handleDialogSelect(s)},pointerdown:t.handleOperation}},[s.type=="group"?[s.avatar?e("EAvatar",{staticClass:"img-avatar",attrs:{src:s.avatar,size:42}}):s.group_type=="department"?e("i",{staticClass:"taskfont icon-avatar department"},[t._v("\uE75C")]):s.group_type=="project"?e("i",{staticClass:"taskfont icon-avatar project"},[t._v("\uE6F9")]):s.group_type=="task"?e("i",{staticClass:"taskfont icon-avatar task"},[t._v("\uE6F4")]):s.group_type=="okr"?e("i",{staticClass:"taskfont icon-avatar task"},[t._v("\uE6F4")]):e("Icon",{staticClass:"icon-avatar",attrs:{type:"ios-people"}})]:s.dialog_user?e("div",{staticClass:"user-avatar"},[e("UserAvatar",{attrs:{userid:s.dialog_user.userid,size:42}})],1):e("Icon",{staticClass:"icon-avatar",attrs:{type:"md-person"}}),e("div",{staticClass:"dialog-box"},[e("div",{staticClass:"dialog-title"},[s.todo_num?e("div",{staticClass:"todo"},[t._v("["+t._s(t.$L("\u5F85\u529E"))+t._s(t.formatTodoNum(s.todo_num))+"]")]):t._e(),t.$A.getDialogMention(s)>0?e("div",{staticClass:"mention"},[t._v("[@"+t._s(t.$A.getDialogMention(s))+"]")]):t._e(),s.bot?e("div",{staticClass:"taskfont bot"},[t._v("\uE68C")]):t._e(),t._l(t.$A.dialogTags(s),function(r){return r.color!="success"?[e("Tag",{attrs:{color:r.color,fade:!1},on:{"on-click":function(n){return t.openDialog(s.id)}}},[t._v(t._s(t.$L(r.text)))])]:t._e()}),e("span",{domProps:{innerHTML:t._s(t.transformEmojiToHtml(s.name))}}),s.type=="user"&&t.lastMsgReadDone(s.last_msg)&&s.dialog_user.userid!=t.userId?e("Icon",{attrs:{type:t.lastMsgReadDone(s.last_msg)}}):t._e(),s.last_at?e("em",[t._v(t._s(t.$A.timeFormat(s.last_at)))]):t._e()],2),e("div",{staticClass:"dialog-text no-dark-content"},[s.id!=t.dialogId&&t.tagDialogDraft(s.id)?[e("div",{staticClass:"last-draft"},[t._v("["+t._s(t.$L("\u8349\u7A3F"))+"]")]),e("div",{staticClass:"last-text"},[e("span",[t._v(t._s(t.formatDraft((o=t.getDialogDraft(s.id))===null||o===void 0?void 0:o.content)))])])]:[s.type=="group"&&s.last_msg&&t.getLastMsgSenderId(s.last_msg)?[t.getLastMsgSenderId(s.last_msg)==t.userId?e("div",{staticClass:"last-self"},[t._v(t._s(t.$L("[self_sender].\u4F60")))]):e("UserAvatar",{attrs:{userid:t.getLastMsgSenderId(s.last_msg),"show-name":!0,"show-icon":!1}})]:t._e(),e("div",{staticClass:"last-text"},[t.formatMsgEmojiDesc(s.last_msg)?e("em",[t._v(t._s(t.formatMsgEmojiDesc(s.last_msg)))]):t._e(),e("span",[t._v(t._s(t.$A.getMsgSimpleDesc(s.last_msg)||t.showProfessionDesc(s.dialog_user)))])])],s.silence?e("div",{staticClass:"taskfont last-silence"},[t._v("\uE7D7")]):t._e()],2)]),e("Badge",{staticClass:"dialog-num",attrs:{type:s.silence?"normal":"error","overflow-count":999,count:t.$A.getDialogUnread(s,!0)}}),e("div",{staticClass:"dialog-line"})],2)}):t.dialogSearchLoad===0?e("li",{staticClass:"nothing"},[t._v(" "+t._s(t.$L(t.dialogSearchKey?`\u6CA1\u6709\u4EFB\u4F55\u4E0E"${t.dialogSearchKey}"\u76F8\u5173\u7684\u7ED3\u679C`:"\u6CA1\u6709\u4EFB\u4F55\u4F1A\u8BDD"))+" ")]):t._e()],2):e("ul",{staticClass:"contacts"},[t.contactsFilter.length>0?[t._l(t.contactsList,function(s){return e("li",[e("div",{staticClass:"label"},[t._v(t._s(s.az))]),e("ul",t._l(s.list,function(a,o){return e("li",{key:o,class:t.userClass(a),attrs:{"data-id":a.userid,"data-type":"contacts"},on:{click:function(r){return t.openContacts(a)},pointerdown:t.handleOperation}},[e("div",{staticClass:"avatar"},[e("UserAvatar",{attrs:{userid:a.userid,size:t.contactAvatarSize}})],1),e("div",{staticClass:"nickname"},[e("em",[t._v(t._s(a.nickname))]),a.tags?e("div",{staticClass:"tags"},t._l(a.tags,function(r){return e("span",{style:t.tagField(r,"style")},[t._v(t._s(t.tagField(r,"label")))])}),0):t._e()]),a.loading?e("div",{staticClass:"loading"},[e("Loading")],1):t._e()])}),0)])}),e("li",{staticClass:"loaded"},[t.contactsKey?[t._v(t._s(t.$L("\u641C\u7D22\u5230(*)\u4F4D\u8054\u7CFB\u4EBA",t.contactsFilter.length)))]:[t._v(t._s(t.$L("\u5171(*)\u4F4D\u8054\u7CFB\u4EBA",t.contactsTotal)))]],2)]:t.contactsLoad==0?e("li",{staticClass:"nothing"},[t._v(" "+t._s(t.$L(t.contactsKey?`\u6CA1\u6709\u4EFB\u4F55\u4E0E"${t.contactsKey}"\u76F8\u5173\u7684\u7ED3\u679C`:"\u6CA1\u6709\u4EFB\u4F55\u8054\u7CFB\u4EBA"))+" ")]):t._e()],2)]),e("div",{staticClass:"messenger-menu"},[e("div",{staticClass:"menu-icon"},[e("Icon",{class:{active:t.tabActive==="dialog"},attrs:{type:"ios-chatbubbles"},on:{click:function(s){return t.onActive(null)}}}),e("Badge",{staticClass:"menu-num",attrs:{"overflow-count":999,count:t.msgUnread("all")}})],1),e("div",{staticClass:"menu-icon"},[e("Icon",{class:{active:t.tabActive==="contacts"},attrs:{type:"md-person"},on:{click:function(s){t.tabActive="contacts"}}})],1)]),e("div",{directives:[{name:"transfer-dom",rawName:"v-transfer-dom"},{name:"show",rawName:"v-show",value:t.operateVisible,expression:"operateVisible"}],staticClass:"operate-position",style:t.operateStyles,attrs:{"data-transfer":!0}},[e("Dropdown",{attrs:{trigger:"custom",transferClassName:"scrollbar-hidden",placement:t.windowLandscape?"bottom":"top",visible:t.operateVisible,transfer:""},on:{"on-clickoutside":function(s){t.operateVisible=!1}}},[e("div",{style:{userSelect:t.operateVisible?"none":"auto",height:t.operateStyles.height}}),e("DropdownMenu",{staticClass:"messenger-dialog-operation",attrs:{slot:"list"},slot:"list"},[t.operateType==="dialog"?[e("DropdownItem",{nativeOn:{click:function(s){return t.handleDialogClick("top")}}},[e("div",{staticClass:"item"},[t._v(" "+t._s(t.$L(t.operateItem.top_at?"\u53D6\u6D88\u7F6E\u9876":"\u7F6E\u9876"))+" "),e("i",{staticClass:"taskfont",domProps:{innerHTML:t._s(t.operateItem.top_at?"":"")}})])]),e("DropdownItem",{nativeOn:{click:function(s){return t.handleDialogClick("read")}}},[e("div",{staticClass:"item"},[t._v(" "+t._s(t.$L(t.$A.getDialogUnread(t.operateItem,!0)>0?"\u6807\u8BB0\u5DF2\u8BFB":"\u6807\u8BB0\u672A\u8BFB"))+" "),e("i",{staticClass:"taskfont",domProps:{innerHTML:t._s(t.$A.getDialogUnread(t.operateItem,!0)>0?"":"")}})])]),e("DropdownItem",{attrs:{disabled:t.silenceDisabled(t.operateItem)},nativeOn:{click:function(s){return t.handleDialogClick("silence")}}},[e("div",{staticClass:"item"},[t._v(" "+t._s(t.$L(t.operateItem.silence?"\u5141\u8BB8\u6D88\u606F\u901A\u77E5":"\u6D88\u606F\u514D\u6253\u6270"))+" "),e("i",{staticClass:"taskfont",domProps:{innerHTML:t._s(t.operateItem.silence?"":"")}})])]),t.$Electron?e("DropdownItem",{attrs:{divided:""},nativeOn:{click:function(s){return t.handleDialogClick("single")}}},[e("div",{staticClass:"item"},[t._v(" "+t._s(t.$L("\u72EC\u7ACB\u7A97\u53E3\u663E\u793A"))+" "),e("i",{staticClass:"taskfont"},[t._v("\uE776")])])]):t._e(),e("DropdownItem",{attrs:{disabled:!!t.operateItem.top_at},nativeOn:{click:function(s){return t.handleDialogClick("hide")}}},[e("div",{staticClass:"item"},[t._v(" "+t._s(t.$L("\u4E0D\u663E\u793A\u8BE5\u4F1A\u8BDD"))+" "),e("i",{staticClass:"taskfont"},[t._v("\uE881")])])]),t._l(t.taskColorList,function(s,a){return a<6?e("DropdownItem",{key:"c_"+a,attrs:{divided:a==0},nativeOn:{click:function(o){return t.handleDialogClick("color",s.color)}}},[e("div",{staticClass:"item"},[t._v(" "+t._s(t.$L(s.name))+" "),e("i",{staticClass:"taskfont color",style:{color:s.primary||"#ddd"},domProps:{innerHTML:t._s(s.color==(t.operateItem.color||"")?"":"")}})])]):t._e()})]:[e("DropdownItem",{nativeOn:{click:function(s){return t.handleUserClick("msg")}}},[e("div",{staticClass:"item"},[t._v(" "+t._s(t.$L("\u53D1\u9001\u6D88\u606F"))+" "),e("i",{staticClass:"taskfont"},[t._v("\uE6EB")])])]),e("DropdownItem",{nativeOn:{click:function(s){return t.handleUserClick("meet")}}},[e("div",{staticClass:"item"},[t._v(" "+t._s(t.$L("\u53D1\u8D77\u4F1A\u8BAE"))+" "),e("i",{staticClass:"taskfont"},[t._v("\uE794")])])]),e("DropdownItem",{nativeOn:{click:function(s){return t.handleUserClick("group")}}},[e("div",{staticClass:"item"},[t._v(" "+t._s(t.$L("\u521B\u5EFA\u7FA4\u7EC4"))+" "),e("i",{staticClass:"taskfont"},[t._v("\uE63F")])])]),e("DropdownItem",{nativeOn:{click:function(s){return t.handleUserClick("detail")}}},[e("div",{staticClass:"item"},[t._v(" "+t._s(t.$L("\u67E5\u770B\u8BE6\u60C5"))+" "),e("i",{staticClass:"taskfont"},[t._v("\uE71B")])])])]],2)],1)],1)],1),t.activeNum>0&&t.routeName==="manage-messenger"?[e("div",{staticClass:"messenger-line"}),e("div",{staticClass:"messenger-msg"},[e("div",{staticClass:"msg-dialog-bg"},[e("div",{staticClass:"msg-dialog-bg-icon"},[e("Icon",{attrs:{type:"ios-chatbubbles"}})],1),e("div",{staticClass:"msg-dialog-bg-text"},[t._v(t._s(t.$L("\u9009\u62E9\u4E00\u4E2A\u4F1A\u8BDD\u5F00\u59CB\u804A\u5929")))])]),t.windowLandscape&&t.dialogId>0?e("DialogWrapper",{attrs:{dialogId:t.dialogId,"auto-focus":t.$A.isDesktop(),location:"messenger"},on:{"on-active":t.scrollIntoActive}}):t._e()],1)]:t._e()],2)],1)},y=[];const c={menus:[{type:"",name:"\u5168\u90E8"},{type:"project",name:"\u9879\u76EE"},{type:"task",name:"\u4EFB\u52A1"},{type:"user",name:"\u5355\u804A"},{type:"group",name:"\u7FA4\u804A"},{type:"bot",name:"\u673A\u5668\u4EBA"},{type:"mark",name:"\u6807\u6CE8"},{type:"@",name:"@\u6211"}],historys:[]},A={components:{DialogWrapper:m},directives:{longpress:g,TransferDom:f},data(){return{firstLoad:!0,activeNum:0,tabActive:"dialog",dialogSearchLoad:0,dialogSearchKey:"",dialogSearchList:[],dialogSearchSelectedParams:null,dialogActive:"",dialogMenus:c.menus,dialogHistorys:c.historys,contactsKey:"",contactsLoad:0,contactsData:null,contactsTotal:0,contactsCurrentPage:1,contactsHasMorePages:!1,contactsLastTime:0,operateItem:{},operateStyles:{},operateVisible:!1,operateType:"dialog"}},async beforeRouteEnter(t,i,e){c.historys=await $A.IDBArray("dialogMenuHistorys"),c.historys.length===0&&(c.historys=c.menus.map(s=>Object.assign(s,{time:0}))),e()},mounted(){const t=$A.runNum(this.$route.query.dialog_id);t>0&&this.openDialog(t),l.on("clickAgainDialog",this.shakeUnread)},beforeDestroy(){l.off("clickAgainDialog",this.shakeUnread),document.removeEventListener("keydown",this.shortcutEvent)},activated(){this.updateDialogs(this.firstLoad?0:1e3),this.scrollToNav(),this.firstLoad=!1,this.$nextTick(t=>this.activeNum++),$A.isEEUIApp&&$A.eeuiAppSendMessage({action:"getNotificationPermission"})},deactivated(){this.updateDialogs(-1),this.$nextTick(t=>this.activeNum--)},computed:{...p(["systemConfig","cacheDialogs","loadDialogs","dialogId","dialogMsgId","dialogMsgs","messengerSearchKey","appNotificationPermission","taskColorList","longpressData"]),...u(["appAiHidden","getDialogDraft","tagDialogDraft","visibleDialogs"]),contactAvatarSize(){return this.windowPortrait?36:30},dialogList(){const{dialogActive:t,dialogSearchKey:i,dialogSearchList:e}=this;if(e.length>0)return e.filter(a=>!this.appAiHidden||!$A.isAiBotDialog(a)).sort((a,o)=>(a.is_search===!0?1:0)-(o.is_search===!0?1:0));if(t==""&&i=="")return this.visibleDialogs.filter(a=>this.filterDialog(a)).sort(this.dialogSort);if(t=="mark"&&!i){const a=[];return this.dialogMsgs.filter(o=>o.tag).forEach(o=>{let r=$A.cloneJSON(this.cacheDialogs).find(n=>n.id==o.dialog_id);r&&(!this.appAiHidden||!$A.isAiBotDialog(r))&&(r.last_msg=o,r.search_msg_id=o.id,a.push(r))}),a}return this.visibleDialogs.filter(a=>{if(!this.filterDialog(a))return!1;if(i){const{name:o,pinyin:r,last_msg:n}=a;let d=`${o} ${r}`;if(n)switch(n.type){case"text":d+=` ${n.msg.text.replace(/<[^>]+>/g,"")}`;break;case"meeting":case"file":d+=` ${n.msg.name}`;break;case"preview":d+=` ${n.msg.preview}`;break}if(!$A.strExists(d,i))return!1}else if(t)switch(t){case"project":case"task":if(t!=a.group_type)return!1;break;case"user":if(t!=a.type||a.bot)return!1;break;case"group":if(t!=a.type||["project","task"].includes(a.group_type))return!1;break;case"bot":if(!a.bot)return!1;break;case"@":if(!$A.getDialogMention(a))return!1;break;default:return!1}return!0}).sort(this.dialogSort)},contactsFilter(){const{contactsData:t,contactsKey:i}=this;return t===null?[]:i?t.filter(e=>$A.strExists(`${e.email} ${e.nickname} ${e.profession} ${e.pinyin}`,i)):t},contactsList(){const{contactsKey:t}=this,i=[];return this.contactsFilter.some(e=>{const s=$A.cloneJSON(e);t&&$A.strExists(s.profession,t)&&s.tags.push(s.profession);let a=s.az?s.az.toUpperCase():"#",o=i.find(r=>r.az==a);o?o.list.findIndex(({userid:r})=>r==s.userid)===-1&&o.list.push(s):i.push({az:a,list:[s]})}),i},msgUnread(){return function(t){let i=0;return this.visibleDialogs.some(e=>{switch(t){case"project":case"task":if(t!=e.group_type)return!1;break;case"user":if(t!=e.type||e.bot)return!1;break;case"group":if(t!=e.type||["project","task"].includes(e.group_type))return!1;break;case"bot":if(!e.bot)return!1;break;case"mark":return!1;case"@":return!1}i+=$A.getDialogNum(e)}),i}},searchLoading({tabActive:t,loadDialogs:i,dialogSearchLoad:e,contactsLoad:s}){return t==="dialog"?i>0||e>0:s>0}},watch:{$route:{handler({params:t}){["dialog","contacts"].includes(t.dialogAction)&&(this.tabActive=t.dialogAction)},immediate:!0},messengerSearchKey:{handler(t){this.$nextTick(i=>{this.dialogSearchKey=t.dialog,this.contactsKey=t.contacts})},deep:!0},dialogSearchKey(t){if(this.$store.state.messengerSearchKey.dialog=t,$A.loadVConsole(t)){this.dialogSearchKey="";return}this.dialogSearchList=[],this.dialogSearchSelectedParams=null,t!=""&&(this.__search_timer&&clearTimeout(this.__search_timer),this.__search_timer=setTimeout(this.searchDialog,600),this.dialogSearchLoad++,setTimeout(i=>this.dialogSearchLoad--,600))},contactsKey(t){this.$store.state.messengerSearchKey.contacts=t,t!=""&&(this.contactsLoad++,setTimeout(()=>{this.contactsKey==t&&this.getContactsList(1),this.contactsLoad--},600))},windowActive(t){this.updateDialogs(t?1e3:-1)},tabActive:{handler(t){t=="contacts"?($A.dayjs().unix()-this.contactsLastTime>24*3600&&(this.contactsData=null),this.contactsData===null?this.getContactsList(1):this.updateContactsList(1e3),this.dialogSearchSelectedParams=null):(this.updateDialogs(1e3),this.scrollToNav())},immediate:!0},dialogId:{handler(t){t>0&&this.scrollIntoActive()},immediate:!0},dialogActive(t){this.dialogSearchList=[],this.dialogSearchSelectedParams=null,t=="mark"&&!this.dialogSearchKey&&this.searchTagDialog(),this.dialogHistorys.forEach(i=>{i.type==""?i.time=$A.dayjs().unix()+1:i.type==t&&(i.time=$A.dayjs().unix())}),$A.IDBSave("dialogMenuHistorys",$A.cloneJSON(this.dialogHistorys).sort((i,e)=>e.time-i.time))}},methods:{transformEmojiToHtml:_,getLastMsgSenderId(t){var i,e,s;if((t==null?void 0:t.type)==="todo"&&((i=t.msg)==null?void 0:i.action)==="done"){const a=(s=(e=t.msg)==null?void 0:e.data)==null?void 0:s.done_userids;if(Array.isArray(a)&&a.length>0)return a[0]}return t==null?void 0:t.userid},listTouch(){var t;(t=this.$refs.navMenu)!=null&&t.visible&&this.$refs.navMenu.hide()},listScroll(){this.scrollE()<10&&this.getContactsNextPage(),this.operateVisible=!1},scrollE(){return this.$refs.list?this.$refs.list.scrollInfo().scrollE:0},onKeydown(t){var i,e;t.key==="Escape"&&((i=this.$refs.searchInput)==null||i.handleClear(),(e=this.$refs.contactInput)==null||e.handleClear())},onActive(t){if(t===null){if(this.tabActive!=="dialog"){this.tabActive="dialog";return}t=this.dialogActive}this.dialogActive==t?this.shakeUnread():this.dialogActive=t,this.scrollToNav()},scrollToNav(){this.tabActive=="dialog"&&this.$nextTick(t=>{var i;$A.scrollToView((i=this.$refs.navList)==null?void 0:i.querySelector(".active"),{behavior:"auto",block:"nearest",inline:"nearest"})})},shakeUnread(){var i;let t=this.dialogList.findIndex(e=>$A.getDialogNum(e)>0);if(t===-1&&(t=this.dialogList.findIndex(e=>e.todo_num>0)),t===-1&&(t=this.dialogList.findIndex(e=>$A.getDialogUnread(e,!0)>0)),t>-1){const e=this.$refs[`dialog_${(i=this.dialogList[t])==null?void 0:i.id}`];if(e&&e[0]){if(e[0].classList.contains("common-shake"))return;$A.scrollIntoAndShake(e[0])}}},dialogClass(t){const i=this.dialogSearchSelectedParams,e=!!i&&(!!this.dialogSearchKey||t.is_search),s=i?typeof i.search_msg_id=="undefined"?null:i.search_msg_id:null,a=typeof t.search_msg_id=="undefined"?null:t.search_msg_id,r=e&&t.id==i.dialog_id&&a==s&&this.dialogId==i.dialog_id&&(s==null||this.dialogMsgId==s);return{top:!this.dialogSearchKey&&t.top_at,active:e?r:t.id==this.dialogId&&(t.search_msg_id==this.dialogMsgId||!this.dialogMsgId||t.is_search),operate:!this.dialogSearchKey&&this.operateVisible&&this.operateType==="dialog"&&t.id==this.operateItem.id,completed:$A.dialogCompleted(t)}},handleDialogSelect(t){this.operateVisible||(this.dialogSearchKey||t.is_search?this.dialogSearchSelectedParams={dialog_id:t.id,search_msg_id:typeof t.search_msg_id=="undefined"?null:t.search_msg_id}:this.dialogSearchSelectedParams=null,this.openDialog({dialog_id:t.id,dialog_msg_id:t.search_msg_id,search_msg_id:t.search_msg_id}))},dialogSort(t,i){if(t.top_at||i.top_at)return $A.sortDay(i.top_at,t.top_at);if(t.todo_num>0||i.todo_num>0)return $A.sortFloat(i.todo_num,t.todo_num);const e=[this.tagDialogDraft(t.id)?1:0,this.tagDialogDraft(i.id)?1:0];return e[0]||e[1]?$A.sortFloat(e[1],e[0]):$A.sortDay(i.last_at,t.last_at)},userClass(t){return{operate:this.operateVisible&&this.operateType==="contacts"&&t.userid==this.operateItem.userid}},openDialog(t){if(!this.operateVisible){if($A.isJson(t)&&$A.leftExists(t.dialog_id,"u:")){this.$store.dispatch("openDialogUserid",$A.leftDelete(t.dialog_id,"u:")).catch(({msg:i})=>{$A.modalError(i)});return}this.$store.dispatch("openDialog",t)}},openContacts(t){t.loading||(this.$set(t,"loading",!0),this.$store.dispatch("openDialogUserid",t.userid).catch(({msg:i})=>{$A.modalError(i)}).finally(i=>{this.$set(t,"loading",!1)}))},tagField(t,i){switch($A.isJson(t)||(t={label:t}),i){case"style":return t.style||null;case"label":return t.label}return null},filterDialog(t){if(this.appAiHidden&&$A.isAiBotDialog(t))return!1;if(t.id>0&&t.id==this.dialogId||t.top_at||t.todo_num>0||$A.getDialogNum(t)>0)return!0;if(t.name===void 0||t.dialog_delete===1||t.hide||!t.last_at)return!1;if(t.type=="group"){const i=$A.dayjs().unix();if(["project","task"].includes(t.group_type)&&$A.isJson(t.group_info)){if(t.group_type=="task"&&t.group_info.complete_at){let e=Math.max($A.dayjs(t.last_at).unix(),$A.dayjs(t.group_info.complete_at).unix());if(5*86400+e{if(t!==this.dialogSearchKey)return;const e=$A.cloneJSON(this.dialogList),s=[],a=[];e.forEach(o=>{o.last_msg&&!s.includes(o.last_msg.id)&&s.push(o.last_msg.id),o.dialog_user&&!a.includes(o.dialog_user.userid)&&a.push(o.dialog_user.userid)}),i.some(o=>{$A.leftExists(o.id,"u:")?a.includes(o.dialog_user.userid)||e.push(Object.assign(o,{is_search:!0})):(!o.last_msg||!s.includes(o.last_msg.id))&&e.push(Object.assign(o,{is_search:!0}))}),this.dialogSearchList=e}).finally(i=>{this.dialogSearchLoad--}))},searchTagDialog(){this.dialogSearchLoad++,this.$store.dispatch("call",{url:"dialog/search/tag"}).then(({data:t})=>{const i=[],e=[];this.dialogList.forEach(s=>{e.push(s),i.push(s.search_msg_id)}),t.some(s=>{(!s.last_msg||!i.includes(s.search_msg_id))&&e.push(Object.assign(s,{is_search:!0}))}),this.dialogSearchList=e}).finally(t=>{this.dialogSearchLoad--})},getContactsList(t){this.contactsLoad++;const i=this.contactsKey;this.$store.dispatch("call",{url:"users/search",data:{keys:{key:i},sorts:{az:"asc"},page:t,pagesize:50}}).then(({data:e})=>{i==""&&(this.contactsTotal=e.total),this.contactsData===null&&(this.contactsData=[]),e.data.some(s=>{this.contactsData.findIndex(a=>a.userid==s.userid)===-1&&this.contactsData.push(s)}),this.contactsCurrentPage=e.current_page,this.contactsHasMorePages=e.current_page{i==""&&(this.contactsTotal=0),this.contactsHasMorePages=!1}).finally(e=>{this.contactsLoad--,this.contactsLastTime=$A.dayjs().unix()})},getContactsNextPage(){this.scrollE()<10&&this.tabActive==="contacts"&&this.contactsLoad===0&&this.contactsHasMorePages&&this.getContactsList(this.contactsCurrentPage+1)},updateContactsList(t){this.__updateContactsList&&clearTimeout(this.__updateContactsList),t>-1&&(this.__updateContactsList=setTimeout(i=>{this.tabActive==="contacts"&&this.$store.dispatch("call",{url:"users/search",data:{updated_time:this.contactsLastTime,take:100}}).then(({data:e})=>{e.some(s=>{const a=this.contactsData.findIndex(o=>o.userid==s.userid);a>-1?this.contactsData.splice(a,1,s):this.contactsData.push(s)})}).finally(e=>{this.contactsLastTime=$A.dayjs().unix()})},t))},formatDraft(t){return(t==null?void 0:t.replace(/ ]*>/gi,`[${$A.L("\u56FE\u7247")}]`).replace(/<[^>]*>/g,"").replace(/ /g," "))||null},formatTodoNum(t){return t>999?"999+":t>1?t:""},formatMsgEmojiDesc(t){return $A.isJson(t)&&$A.arrayLength(t.emoji)>0?t.emoji[0].symbol:null},showProfessionDesc(t){return t&&t.profession?`[${t.profession}]`:""},lastMsgReadDone(t){if($A.isJson(t)){const{userid:i,percentage:e}=t;if(i===this.userId)return e===100?"md-done-all":"md-checkmark"}return null},scrollIntoActive(){this.windowPortrait||this.windowScrollY>0||this.$nextTick(()=>{if(!this.$refs.list)return;const t=this.$refs.list.querySelector(".active");if(t){$A.scrollIntoViewIfNeeded(t);return}this.cacheDialogs.find(({id:e})=>e==this.dialogId)&&this.dialogActive&&(this.dialogActive="",this.$nextTick(()=>{const e=this.$refs.list.querySelector(".active");e&&$A.scrollIntoViewIfNeeded(e)}))})},handleLongpress(t){const{type:i,data:e,element:s}=this.longpressData;if(this.$store.commit("longpress/clear"),i==="messenger"){if(this.operateType=this.tabActive,this.operateVisible=!1,e.dataType==="contacts"){if(this.contactsKey)return;this.operateItem=this.contactsFilter.find(a=>a.userid==e.dataId)}else{if(this.dialogSearchKey)return;this.operateItem=this.dialogList.find(a=>a.id==e.dataId)}!this.operateItem||requestAnimationFrame(()=>{const a=s.getBoundingClientRect();this.operateStyles={left:`${t.clientX}px`,top:`${a.top}px`,height:`${a.height}px`},this.operateVisible=!0})}},handleOperation({currentTarget:t}){this.$store.commit("longpress/set",{type:"messenger",data:{dataId:$A.getAttr(t,"data-id"),dataType:$A.getAttr(t,"data-type")},element:t})},handleDialogClick(t,i=void 0){switch(t){case"top":this.$store.dispatch("call",{url:"dialog/top",data:{dialog_id:this.operateItem.id}}).then(({data:e})=>{this.$store.dispatch("saveDialog",e),this.$nextTick(this.scrollIntoActive)}).catch(({msg:e})=>{$A.modalError(e)});break;case"read":this.$store.dispatch("showSpinner",600),this.$store.dispatch("dialogMsgMark",{type:$A.getDialogUnread(this.operateItem,!0)>0?"read":"unread",dialog_id:this.operateItem.id}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.$store.dispatch("hiddenSpinner")});break;case"silence":if(this.silenceDisabled(this.operateItem))return;this.$store.dispatch("call",{url:"dialog/msg/silence",data:{dialog_id:this.operateItem.id,type:this.operateItem.silence?"cancel":"set"}}).then(({data:e})=>{this.$store.dispatch("saveDialog",e)}).catch(({msg:e})=>{$A.modalError(e)});break;case"single":this.$store.dispatch("openDialog",{dialog_id:this.operateItem.id,single:!0});break;case"hide":this.$store.dispatch("call",{url:"dialog/hide",data:{dialog_id:this.operateItem.id}}).then(({data:e})=>{this.dialogId==this.operateItem.id&&this.$store.dispatch("openDialog",0),this.$store.dispatch("saveDialog",e)}).catch(({msg:e})=>{$A.modalError(e)});break;case"color":this.$store.dispatch("call",{url:"dialog/msg/color",data:{dialog_id:this.operateItem.id,color:i}}).then(({data:e})=>{this.$store.dispatch("saveDialog",e)}).catch(({msg:e})=>{$A.modalError(e)});break}},handleUserClick(t){switch(t){case"msg":this.openContacts(this.operateItem);break;case"meet":case"group":const i=[this.userId];this.operateItem.userid&&this.userId!=this.operateItem.userid&&i.push(this.operateItem.userid),t==="meet"?l.emit("addMeeting",{type:"create",userids:i}):l.emit("createGroup",i);break;case"detail":l.emit("openUser",this.operateItem.userid);break}},updateDialogs(t){this.__updateDialogs&&clearTimeout(this.__updateDialogs),t>-1&&(this.__updateDialogs=setTimeout(i=>{this.tabActive==="dialog"&&this.routeName==="manage-messenger"&&this.$store.dispatch("getDialogAuto").catch(()=>{})},t))},onOpenAppSetting(){$A.eeuiAppSendMessage({action:"gotoSetting"})},silenceDisabled(t){const{type:i,group_type:e}=t;return i==="group"&&e!=="user"}}},h={};var D=v(A,$,y,!1,C,null,null,null);function C(t){for(let i in h)this[i]=h[i]}var Ct=function(){return D.exports}();export{Ct as default};
+import{m as p,a as u}from"./vuex.cc7cb26e.js";import{D as m}from"./DialogWrapper.bc988036.js";import{c as g,d as f,e as l,t as _,n as v}from"./app.ef7047f7.js";import"./chunkedUpload.3cd238b0.js";import"./axios.37c7f908.js";import"./spark-md5.0443325f.js";import"./index.f7653997.js";import"./vue-virtual-scroll-list-hi.74ad83f0.js";import"./@babel.9410f858.js";import"./vue.adba9046.js";import"./lodash.8fcd6fd4.js";import"./ImgUpload.434d067a.js";import"./webhook.378987f3.js";import"./jquery.6e4daff9.js";import"./dayjs.d20a4841.js";import"./localforage.743dffdd.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./openpgp_hi.15f91b1d.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./view-design-hi.24419422.js";import"./html-to-md.f297036e.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vuedraggable.f464b992.js";import"./sortablejs.3488b922.js";import"./vue-resize-observer.5af23a43.js";import"./element-sea.f8a64907.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var $=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"page-messenger"},[e("PageTitle",{attrs:{title:t.$L(t.tabActive==="dialog"?"\u6D88\u606F":"\u901A\u8BAF\u5F55")}}),e("div",{staticClass:"messenger-wrapper"},[e("div",{ref:"select",staticClass:"messenger-select"},[e("div",{staticClass:"messenger-search"},[e("div",{staticClass:"search-wrapper"},[e("div",{staticClass:"search-pre"},[t.searchLoading?e("Loading"):e("Icon",{attrs:{type:"ios-search"}})],1),e("Form",{staticClass:"search-form",attrs:{action:"javascript:void(0)"},nativeOn:{submit:function(s){return s.preventDefault(),t.$A.eeuiAppKeyboardHide.apply(null,arguments)}}},[t.tabActive==="dialog"?e("Input",{ref:"searchInput",attrs:{type:"search",placeholder:t.$L(t.loadDialogs>0?"\u66F4\u65B0\u4E2D...":"\u641C\u7D22"),clearable:""},on:{"on-keydown":t.onKeydown},model:{value:t.dialogSearchKey,callback:function(s){t.dialogSearchKey=s},expression:"dialogSearchKey"}}):e("Input",{ref:"contactInput",attrs:{type:"search",placeholder:t.$L("\u641C\u7D22"),clearable:""},on:{"on-keydown":t.onKeydown},model:{value:t.contactsKey,callback:function(s){t.contactsKey=s},expression:"contactsKey"}})],1)],1)]),t.tabActive==="dialog"&&!t.dialogSearchKey?e("div",{staticClass:"messenger-nav"},[e("EDropdown",{ref:"navMenu",staticClass:"nav-menu",attrs:{trigger:"click",placement:"bottom-start"},on:{command:t.onActive}},[e("div",{staticClass:"nav-icon"},[e("i",{staticClass:"taskfont"},[t._v("\uE634")])]),e("EDropdownMenu",{staticClass:"messenger-nav-menu",attrs:{slot:"dropdown"},slot:"dropdown"},t._l(t.dialogMenus,function(s,a){return e("EDropdownItem",{key:a,attrs:{command:s.type}},[e("div",{staticClass:"nav-item",class:{active:t.dialogActive==s.type}},[e("div",{staticClass:"nav-title"},[t._v(t._s(t.$L(s.name)))]),e("Badge",{staticClass:"nav-num",attrs:{"overflow-count":999,count:t.msgUnread(s.type)}})],1)])}),1)],1),e("div",{ref:"navList",staticClass:"nav-list"},t._l(t.dialogHistorys,function(s,a){return e("div",{key:a,staticClass:"nav-item",class:{active:t.dialogActive==s.type},on:{click:function(o){return t.onActive(s.type)}}},[e("div",{staticClass:"nav-title"},[e("em",[t._v(t._s(t.$L(s.name)))]),e("Badge",{staticClass:"nav-num",attrs:{"overflow-count":999,count:t.msgUnread(s.type)}})],1)])}),0)],1):t._e(),t.$isEEUIApp&&!t.appNotificationPermission?e("div",{staticClass:"messenger-notify-permission",on:{click:t.onOpenAppSetting}},[t._v(" "+t._s(t.$L("\u672A\u5F00\u542F\u901A\u77E5\u6743\u9650"))),e("i",{staticClass:"taskfont"},[t._v("\uE733")])]):t._e(),e("Scrollbar",{directives:[{name:"longpress",rawName:"v-longpress",value:t.handleLongpress,expression:"handleLongpress"}],ref:"list",staticClass:"messenger-list",attrs:{"hide-bar":t.operateVisible},on:{"on-scroll":t.listScroll},nativeOn:{touchstart:function(s){return t.listTouch.apply(null,arguments)}}},[t.tabActive==="dialog"?e("ul",{ref:"ul",staticClass:"dialog"},[t.dialogList.length>0?t._l(t.dialogList,function(s,a){var o;return e("li",{key:a,ref:`dialog_${s.id}`,refInFor:!0,class:t.dialogClass(s),style:{"background-color":s.color},attrs:{"data-id":s.id,"data-type":"dialog"},on:{click:function(r){return t.handleDialogSelect(s)},pointerdown:t.handleOperation}},[s.type=="group"?[s.avatar?e("EAvatar",{staticClass:"img-avatar",attrs:{src:s.avatar,size:42}}):s.group_type=="department"?e("i",{staticClass:"taskfont icon-avatar department"},[t._v("\uE75C")]):s.group_type=="project"?e("i",{staticClass:"taskfont icon-avatar project"},[t._v("\uE6F9")]):s.group_type=="task"?e("i",{staticClass:"taskfont icon-avatar task"},[t._v("\uE6F4")]):s.group_type=="okr"?e("i",{staticClass:"taskfont icon-avatar task"},[t._v("\uE6F4")]):e("Icon",{staticClass:"icon-avatar",attrs:{type:"ios-people"}})]:s.dialog_user?e("div",{staticClass:"user-avatar"},[e("UserAvatar",{attrs:{userid:s.dialog_user.userid,size:42}})],1):e("Icon",{staticClass:"icon-avatar",attrs:{type:"md-person"}}),e("div",{staticClass:"dialog-box"},[e("div",{staticClass:"dialog-title"},[s.todo_num?e("div",{staticClass:"todo"},[t._v("["+t._s(t.$L("\u5F85\u529E"))+t._s(t.formatTodoNum(s.todo_num))+"]")]):t._e(),t.$A.getDialogMention(s)>0?e("div",{staticClass:"mention"},[t._v("[@"+t._s(t.$A.getDialogMention(s))+"]")]):t._e(),s.bot?e("div",{staticClass:"taskfont bot"},[t._v("\uE68C")]):t._e(),t._l(t.$A.dialogTags(s),function(r){return r.color!="success"?[e("Tag",{attrs:{color:r.color,fade:!1},on:{"on-click":function(n){return t.openDialog(s.id)}}},[t._v(t._s(t.$L(r.text)))])]:t._e()}),e("span",{domProps:{innerHTML:t._s(t.transformEmojiToHtml(s.name))}}),s.type=="user"&&t.lastMsgReadDone(s.last_msg)&&s.dialog_user.userid!=t.userId?e("Icon",{attrs:{type:t.lastMsgReadDone(s.last_msg)}}):t._e(),s.last_at?e("em",[t._v(t._s(t.$A.timeFormat(s.last_at)))]):t._e()],2),e("div",{staticClass:"dialog-text no-dark-content"},[s.id!=t.dialogId&&t.tagDialogDraft(s.id)?[e("div",{staticClass:"last-draft"},[t._v("["+t._s(t.$L("\u8349\u7A3F"))+"]")]),e("div",{staticClass:"last-text"},[e("span",[t._v(t._s(t.formatDraft((o=t.getDialogDraft(s.id))===null||o===void 0?void 0:o.content)))])])]:[s.type=="group"&&s.last_msg&&t.getLastMsgSenderId(s.last_msg)?[t.getLastMsgSenderId(s.last_msg)==t.userId?e("div",{staticClass:"last-self"},[t._v(t._s(t.$L("[self_sender].\u4F60")))]):e("UserAvatar",{attrs:{userid:t.getLastMsgSenderId(s.last_msg),"show-name":!0,"show-icon":!1}})]:t._e(),e("div",{staticClass:"last-text"},[t.formatMsgEmojiDesc(s.last_msg)?e("em",[t._v(t._s(t.formatMsgEmojiDesc(s.last_msg)))]):t._e(),e("span",[t._v(t._s(t.$A.getMsgSimpleDesc(s.last_msg)||t.showProfessionDesc(s.dialog_user)))])])],s.silence?e("div",{staticClass:"taskfont last-silence"},[t._v("\uE7D7")]):t._e()],2)]),e("Badge",{staticClass:"dialog-num",attrs:{type:s.silence?"normal":"error","overflow-count":999,count:t.$A.getDialogUnread(s,!0)}}),e("div",{staticClass:"dialog-line"})],2)}):t.dialogSearchLoad===0?e("li",{staticClass:"nothing"},[t._v(" "+t._s(t.$L(t.dialogSearchKey?`\u6CA1\u6709\u4EFB\u4F55\u4E0E"${t.dialogSearchKey}"\u76F8\u5173\u7684\u7ED3\u679C`:"\u6CA1\u6709\u4EFB\u4F55\u4F1A\u8BDD"))+" ")]):t._e()],2):e("ul",{staticClass:"contacts"},[t.contactsFilter.length>0?[t._l(t.contactsList,function(s){return e("li",[e("div",{staticClass:"label"},[t._v(t._s(s.az))]),e("ul",t._l(s.list,function(a,o){return e("li",{key:o,class:t.userClass(a),attrs:{"data-id":a.userid,"data-type":"contacts"},on:{click:function(r){return t.openContacts(a)},pointerdown:t.handleOperation}},[e("div",{staticClass:"avatar"},[e("UserAvatar",{attrs:{userid:a.userid,size:t.contactAvatarSize}})],1),e("div",{staticClass:"nickname"},[e("em",[t._v(t._s(a.nickname))]),a.tags?e("div",{staticClass:"tags"},t._l(a.tags,function(r){return e("span",{style:t.tagField(r,"style")},[t._v(t._s(t.tagField(r,"label")))])}),0):t._e()]),a.loading?e("div",{staticClass:"loading"},[e("Loading")],1):t._e()])}),0)])}),e("li",{staticClass:"loaded"},[t.contactsKey?[t._v(t._s(t.$L("\u641C\u7D22\u5230(*)\u4F4D\u8054\u7CFB\u4EBA",t.contactsFilter.length)))]:[t._v(t._s(t.$L("\u5171(*)\u4F4D\u8054\u7CFB\u4EBA",t.contactsTotal)))]],2)]:t.contactsLoad==0?e("li",{staticClass:"nothing"},[t._v(" "+t._s(t.$L(t.contactsKey?`\u6CA1\u6709\u4EFB\u4F55\u4E0E"${t.contactsKey}"\u76F8\u5173\u7684\u7ED3\u679C`:"\u6CA1\u6709\u4EFB\u4F55\u8054\u7CFB\u4EBA"))+" ")]):t._e()],2)]),e("div",{staticClass:"messenger-menu"},[e("div",{staticClass:"menu-icon"},[e("Icon",{class:{active:t.tabActive==="dialog"},attrs:{type:"ios-chatbubbles"},on:{click:function(s){return t.onActive(null)}}}),e("Badge",{staticClass:"menu-num",attrs:{"overflow-count":999,count:t.msgUnread("all")}})],1),e("div",{staticClass:"menu-icon"},[e("Icon",{class:{active:t.tabActive==="contacts"},attrs:{type:"md-person"},on:{click:function(s){t.tabActive="contacts"}}})],1)]),e("div",{directives:[{name:"transfer-dom",rawName:"v-transfer-dom"},{name:"show",rawName:"v-show",value:t.operateVisible,expression:"operateVisible"}],staticClass:"operate-position",style:t.operateStyles,attrs:{"data-transfer":!0}},[e("Dropdown",{attrs:{trigger:"custom",transferClassName:"scrollbar-hidden",placement:t.windowLandscape?"bottom":"top",visible:t.operateVisible,transfer:""},on:{"on-clickoutside":function(s){t.operateVisible=!1}}},[e("div",{style:{userSelect:t.operateVisible?"none":"auto",height:t.operateStyles.height}}),e("DropdownMenu",{staticClass:"messenger-dialog-operation",attrs:{slot:"list"},slot:"list"},[t.operateType==="dialog"?[e("DropdownItem",{nativeOn:{click:function(s){return t.handleDialogClick("top")}}},[e("div",{staticClass:"item"},[t._v(" "+t._s(t.$L(t.operateItem.top_at?"\u53D6\u6D88\u7F6E\u9876":"\u7F6E\u9876"))+" "),e("i",{staticClass:"taskfont",domProps:{innerHTML:t._s(t.operateItem.top_at?"":"")}})])]),e("DropdownItem",{nativeOn:{click:function(s){return t.handleDialogClick("read")}}},[e("div",{staticClass:"item"},[t._v(" "+t._s(t.$L(t.$A.getDialogUnread(t.operateItem,!0)>0?"\u6807\u8BB0\u5DF2\u8BFB":"\u6807\u8BB0\u672A\u8BFB"))+" "),e("i",{staticClass:"taskfont",domProps:{innerHTML:t._s(t.$A.getDialogUnread(t.operateItem,!0)>0?"":"")}})])]),e("DropdownItem",{attrs:{disabled:t.silenceDisabled(t.operateItem)},nativeOn:{click:function(s){return t.handleDialogClick("silence")}}},[e("div",{staticClass:"item"},[t._v(" "+t._s(t.$L(t.operateItem.silence?"\u5141\u8BB8\u6D88\u606F\u901A\u77E5":"\u6D88\u606F\u514D\u6253\u6270"))+" "),e("i",{staticClass:"taskfont",domProps:{innerHTML:t._s(t.operateItem.silence?"":"")}})])]),t.$Electron?e("DropdownItem",{attrs:{divided:""},nativeOn:{click:function(s){return t.handleDialogClick("single")}}},[e("div",{staticClass:"item"},[t._v(" "+t._s(t.$L("\u72EC\u7ACB\u7A97\u53E3\u663E\u793A"))+" "),e("i",{staticClass:"taskfont"},[t._v("\uE776")])])]):t._e(),e("DropdownItem",{attrs:{disabled:!!t.operateItem.top_at},nativeOn:{click:function(s){return t.handleDialogClick("hide")}}},[e("div",{staticClass:"item"},[t._v(" "+t._s(t.$L("\u4E0D\u663E\u793A\u8BE5\u4F1A\u8BDD"))+" "),e("i",{staticClass:"taskfont"},[t._v("\uE881")])])]),t._l(t.taskColorList,function(s,a){return a<6?e("DropdownItem",{key:"c_"+a,attrs:{divided:a==0},nativeOn:{click:function(o){return t.handleDialogClick("color",s.color)}}},[e("div",{staticClass:"item"},[t._v(" "+t._s(t.$L(s.name))+" "),e("i",{staticClass:"taskfont color",style:{color:s.primary||"#ddd"},domProps:{innerHTML:t._s(s.color==(t.operateItem.color||"")?"":"")}})])]):t._e()})]:[e("DropdownItem",{nativeOn:{click:function(s){return t.handleUserClick("msg")}}},[e("div",{staticClass:"item"},[t._v(" "+t._s(t.$L("\u53D1\u9001\u6D88\u606F"))+" "),e("i",{staticClass:"taskfont"},[t._v("\uE6EB")])])]),e("DropdownItem",{nativeOn:{click:function(s){return t.handleUserClick("meet")}}},[e("div",{staticClass:"item"},[t._v(" "+t._s(t.$L("\u53D1\u8D77\u4F1A\u8BAE"))+" "),e("i",{staticClass:"taskfont"},[t._v("\uE794")])])]),e("DropdownItem",{nativeOn:{click:function(s){return t.handleUserClick("group")}}},[e("div",{staticClass:"item"},[t._v(" "+t._s(t.$L("\u521B\u5EFA\u7FA4\u7EC4"))+" "),e("i",{staticClass:"taskfont"},[t._v("\uE63F")])])]),e("DropdownItem",{nativeOn:{click:function(s){return t.handleUserClick("detail")}}},[e("div",{staticClass:"item"},[t._v(" "+t._s(t.$L("\u67E5\u770B\u8BE6\u60C5"))+" "),e("i",{staticClass:"taskfont"},[t._v("\uE71B")])])])]],2)],1)],1)],1),t.activeNum>0&&t.routeName==="manage-messenger"?[e("div",{staticClass:"messenger-line"}),e("div",{staticClass:"messenger-msg"},[e("div",{staticClass:"msg-dialog-bg"},[e("div",{staticClass:"msg-dialog-bg-icon"},[e("Icon",{attrs:{type:"ios-chatbubbles"}})],1),e("div",{staticClass:"msg-dialog-bg-text"},[t._v(t._s(t.$L("\u9009\u62E9\u4E00\u4E2A\u4F1A\u8BDD\u5F00\u59CB\u804A\u5929")))])]),t.windowLandscape&&t.dialogId>0?e("DialogWrapper",{attrs:{dialogId:t.dialogId,"auto-focus":t.$A.isDesktop(),location:"messenger"},on:{"on-active":t.scrollIntoActive}}):t._e()],1)]:t._e()],2)],1)},y=[];const c={menus:[{type:"",name:"\u5168\u90E8"},{type:"project",name:"\u9879\u76EE"},{type:"task",name:"\u4EFB\u52A1"},{type:"user",name:"\u5355\u804A"},{type:"group",name:"\u7FA4\u804A"},{type:"bot",name:"\u673A\u5668\u4EBA"},{type:"mark",name:"\u6807\u6CE8"},{type:"@",name:"@\u6211"}],historys:[]},A={components:{DialogWrapper:m},directives:{longpress:g,TransferDom:f},data(){return{firstLoad:!0,activeNum:0,tabActive:"dialog",dialogSearchLoad:0,dialogSearchKey:"",dialogSearchList:[],dialogSearchSelectedParams:null,dialogActive:"",dialogMenus:c.menus,dialogHistorys:c.historys,contactsKey:"",contactsLoad:0,contactsData:null,contactsTotal:0,contactsCurrentPage:1,contactsHasMorePages:!1,contactsLastTime:0,operateItem:{},operateStyles:{},operateVisible:!1,operateType:"dialog"}},async beforeRouteEnter(t,i,e){c.historys=await $A.IDBArray("dialogMenuHistorys"),c.historys.length===0&&(c.historys=c.menus.map(s=>Object.assign(s,{time:0}))),e()},mounted(){const t=$A.runNum(this.$route.query.dialog_id);t>0&&this.openDialog(t),l.on("clickAgainDialog",this.shakeUnread)},beforeDestroy(){l.off("clickAgainDialog",this.shakeUnread),document.removeEventListener("keydown",this.shortcutEvent)},activated(){this.updateDialogs(this.firstLoad?0:1e3),this.scrollToNav(),this.firstLoad=!1,this.$nextTick(t=>this.activeNum++),$A.isEEUIApp&&$A.eeuiAppSendMessage({action:"getNotificationPermission"})},deactivated(){this.updateDialogs(-1),this.$nextTick(t=>this.activeNum--)},computed:{...p(["systemConfig","cacheDialogs","loadDialogs","dialogId","dialogMsgId","dialogMsgs","messengerSearchKey","appNotificationPermission","taskColorList","longpressData"]),...u(["appAiHidden","getDialogDraft","tagDialogDraft","visibleDialogs"]),contactAvatarSize(){return this.windowPortrait?36:30},dialogList(){const{dialogActive:t,dialogSearchKey:i,dialogSearchList:e}=this;if(e.length>0)return e.filter(a=>!this.appAiHidden||!$A.isAiBotDialog(a)).sort((a,o)=>(a.is_search===!0?1:0)-(o.is_search===!0?1:0));if(t==""&&i=="")return this.visibleDialogs.filter(a=>this.filterDialog(a)).sort(this.dialogSort);if(t=="mark"&&!i){const a=[];return this.dialogMsgs.filter(o=>o.tag).forEach(o=>{let r=$A.cloneJSON(this.cacheDialogs).find(n=>n.id==o.dialog_id);r&&(!this.appAiHidden||!$A.isAiBotDialog(r))&&(r.last_msg=o,r.search_msg_id=o.id,a.push(r))}),a}return this.visibleDialogs.filter(a=>{if(!this.filterDialog(a))return!1;if(i){const{name:o,pinyin:r,last_msg:n}=a;let d=`${o} ${r}`;if(n)switch(n.type){case"text":d+=` ${n.msg.text.replace(/<[^>]+>/g,"")}`;break;case"meeting":case"file":d+=` ${n.msg.name}`;break;case"preview":d+=` ${n.msg.preview}`;break}if(!$A.strExists(d,i))return!1}else if(t)switch(t){case"project":case"task":if(t!=a.group_type)return!1;break;case"user":if(t!=a.type||a.bot)return!1;break;case"group":if(t!=a.type||["project","task"].includes(a.group_type))return!1;break;case"bot":if(!a.bot)return!1;break;case"@":if(!$A.getDialogMention(a))return!1;break;default:return!1}return!0}).sort(this.dialogSort)},contactsFilter(){const{contactsData:t,contactsKey:i}=this;return t===null?[]:i?t.filter(e=>$A.strExists(`${e.email} ${e.nickname} ${e.profession} ${e.pinyin}`,i)):t},contactsList(){const{contactsKey:t}=this,i=[];return this.contactsFilter.some(e=>{const s=$A.cloneJSON(e);t&&$A.strExists(s.profession,t)&&s.tags.push(s.profession);let a=s.az?s.az.toUpperCase():"#",o=i.find(r=>r.az==a);o?o.list.findIndex(({userid:r})=>r==s.userid)===-1&&o.list.push(s):i.push({az:a,list:[s]})}),i},msgUnread(){return function(t){let i=0;return this.visibleDialogs.some(e=>{switch(t){case"project":case"task":if(t!=e.group_type)return!1;break;case"user":if(t!=e.type||e.bot)return!1;break;case"group":if(t!=e.type||["project","task"].includes(e.group_type))return!1;break;case"bot":if(!e.bot)return!1;break;case"mark":return!1;case"@":return!1}i+=$A.getDialogNum(e)}),i}},searchLoading({tabActive:t,loadDialogs:i,dialogSearchLoad:e,contactsLoad:s}){return t==="dialog"?i>0||e>0:s>0}},watch:{$route:{handler({params:t}){["dialog","contacts"].includes(t.dialogAction)&&(this.tabActive=t.dialogAction)},immediate:!0},messengerSearchKey:{handler(t){this.$nextTick(i=>{this.dialogSearchKey=t.dialog,this.contactsKey=t.contacts})},deep:!0},dialogSearchKey(t){if(this.$store.state.messengerSearchKey.dialog=t,$A.loadVConsole(t)){this.dialogSearchKey="";return}this.dialogSearchList=[],this.dialogSearchSelectedParams=null,t!=""&&(this.__search_timer&&clearTimeout(this.__search_timer),this.__search_timer=setTimeout(this.searchDialog,600),this.dialogSearchLoad++,setTimeout(i=>this.dialogSearchLoad--,600))},contactsKey(t){this.$store.state.messengerSearchKey.contacts=t,t!=""&&(this.contactsLoad++,setTimeout(()=>{this.contactsKey==t&&this.getContactsList(1),this.contactsLoad--},600))},windowActive(t){this.updateDialogs(t?1e3:-1)},tabActive:{handler(t){t=="contacts"?($A.dayjs().unix()-this.contactsLastTime>24*3600&&(this.contactsData=null),this.contactsData===null?this.getContactsList(1):this.updateContactsList(1e3),this.dialogSearchSelectedParams=null):(this.updateDialogs(1e3),this.scrollToNav())},immediate:!0},dialogId:{handler(t){t>0&&this.scrollIntoActive()},immediate:!0},dialogActive(t){this.dialogSearchList=[],this.dialogSearchSelectedParams=null,t=="mark"&&!this.dialogSearchKey&&this.searchTagDialog(),this.dialogHistorys.forEach(i=>{i.type==""?i.time=$A.dayjs().unix()+1:i.type==t&&(i.time=$A.dayjs().unix())}),$A.IDBSave("dialogMenuHistorys",$A.cloneJSON(this.dialogHistorys).sort((i,e)=>e.time-i.time))}},methods:{transformEmojiToHtml:_,getLastMsgSenderId(t){var i,e,s;if((t==null?void 0:t.type)==="todo"&&((i=t.msg)==null?void 0:i.action)==="done"){const a=(s=(e=t.msg)==null?void 0:e.data)==null?void 0:s.done_userids;if(Array.isArray(a)&&a.length>0)return a[0]}return t==null?void 0:t.userid},listTouch(){var t;(t=this.$refs.navMenu)!=null&&t.visible&&this.$refs.navMenu.hide()},listScroll(){this.scrollE()<10&&this.getContactsNextPage(),this.operateVisible=!1},scrollE(){return this.$refs.list?this.$refs.list.scrollInfo().scrollE:0},onKeydown(t){var i,e;t.key==="Escape"&&((i=this.$refs.searchInput)==null||i.handleClear(),(e=this.$refs.contactInput)==null||e.handleClear())},onActive(t){if(t===null){if(this.tabActive!=="dialog"){this.tabActive="dialog";return}t=this.dialogActive}this.dialogActive==t?this.shakeUnread():this.dialogActive=t,this.scrollToNav()},scrollToNav(){this.tabActive=="dialog"&&this.$nextTick(t=>{var i;$A.scrollToView((i=this.$refs.navList)==null?void 0:i.querySelector(".active"),{behavior:"auto",block:"nearest",inline:"nearest"})})},shakeUnread(){var i;let t=this.dialogList.findIndex(e=>$A.getDialogNum(e)>0);if(t===-1&&(t=this.dialogList.findIndex(e=>e.todo_num>0)),t===-1&&(t=this.dialogList.findIndex(e=>$A.getDialogUnread(e,!0)>0)),t>-1){const e=this.$refs[`dialog_${(i=this.dialogList[t])==null?void 0:i.id}`];if(e&&e[0]){if(e[0].classList.contains("common-shake"))return;$A.scrollIntoAndShake(e[0])}}},dialogClass(t){const i=this.dialogSearchSelectedParams,e=!!i&&(!!this.dialogSearchKey||t.is_search),s=i?typeof i.search_msg_id=="undefined"?null:i.search_msg_id:null,a=typeof t.search_msg_id=="undefined"?null:t.search_msg_id,r=e&&t.id==i.dialog_id&&a==s&&this.dialogId==i.dialog_id&&(s==null||this.dialogMsgId==s);return{top:!this.dialogSearchKey&&t.top_at,active:e?r:t.id==this.dialogId&&(t.search_msg_id==this.dialogMsgId||!this.dialogMsgId||t.is_search),operate:!this.dialogSearchKey&&this.operateVisible&&this.operateType==="dialog"&&t.id==this.operateItem.id,completed:$A.dialogCompleted(t)}},handleDialogSelect(t){this.operateVisible||(this.dialogSearchKey||t.is_search?this.dialogSearchSelectedParams={dialog_id:t.id,search_msg_id:typeof t.search_msg_id=="undefined"?null:t.search_msg_id}:this.dialogSearchSelectedParams=null,this.openDialog({dialog_id:t.id,dialog_msg_id:t.search_msg_id,search_msg_id:t.search_msg_id}))},dialogSort(t,i){if(t.top_at||i.top_at)return $A.sortDay(i.top_at,t.top_at);if(t.todo_num>0||i.todo_num>0)return $A.sortFloat(i.todo_num,t.todo_num);const e=[this.tagDialogDraft(t.id)?1:0,this.tagDialogDraft(i.id)?1:0];return e[0]||e[1]?$A.sortFloat(e[1],e[0]):$A.sortDay(i.last_at,t.last_at)},userClass(t){return{operate:this.operateVisible&&this.operateType==="contacts"&&t.userid==this.operateItem.userid}},openDialog(t){if(!this.operateVisible){if($A.isJson(t)&&$A.leftExists(t.dialog_id,"u:")){this.$store.dispatch("openDialogUserid",$A.leftDelete(t.dialog_id,"u:")).catch(({msg:i})=>{$A.modalError(i)});return}this.$store.dispatch("openDialog",t)}},openContacts(t){t.loading||(this.$set(t,"loading",!0),this.$store.dispatch("openDialogUserid",t.userid).catch(({msg:i})=>{$A.modalError(i)}).finally(i=>{this.$set(t,"loading",!1)}))},tagField(t,i){switch($A.isJson(t)||(t={label:t}),i){case"style":return t.style||null;case"label":return t.label}return null},filterDialog(t){if(this.appAiHidden&&$A.isAiBotDialog(t))return!1;if(t.id>0&&t.id==this.dialogId||t.top_at||t.todo_num>0||$A.getDialogNum(t)>0)return!0;if(t.name===void 0||t.dialog_delete===1||t.hide||!t.last_at)return!1;if(t.type=="group"){const i=$A.dayjs().unix();if(["project","task"].includes(t.group_type)&&$A.isJson(t.group_info)){if(t.group_type=="task"&&t.group_info.complete_at){let e=Math.max($A.dayjs(t.last_at).unix(),$A.dayjs(t.group_info.complete_at).unix());if(5*86400+e{if(t!==this.dialogSearchKey)return;const e=$A.cloneJSON(this.dialogList),s=[],a=[];e.forEach(o=>{o.last_msg&&!s.includes(o.last_msg.id)&&s.push(o.last_msg.id),o.dialog_user&&!a.includes(o.dialog_user.userid)&&a.push(o.dialog_user.userid)}),i.some(o=>{$A.leftExists(o.id,"u:")?a.includes(o.dialog_user.userid)||e.push(Object.assign(o,{is_search:!0})):(!o.last_msg||!s.includes(o.last_msg.id))&&e.push(Object.assign(o,{is_search:!0}))}),this.dialogSearchList=e}).finally(i=>{this.dialogSearchLoad--}))},searchTagDialog(){this.dialogSearchLoad++,this.$store.dispatch("call",{url:"dialog/search/tag"}).then(({data:t})=>{const i=[],e=[];this.dialogList.forEach(s=>{e.push(s),i.push(s.search_msg_id)}),t.some(s=>{(!s.last_msg||!i.includes(s.search_msg_id))&&e.push(Object.assign(s,{is_search:!0}))}),this.dialogSearchList=e}).finally(t=>{this.dialogSearchLoad--})},getContactsList(t){this.contactsLoad++;const i=this.contactsKey;this.$store.dispatch("call",{url:"users/search",data:{keys:{key:i},sorts:{az:"asc"},page:t,pagesize:50}}).then(({data:e})=>{i==""&&(this.contactsTotal=e.total),this.contactsData===null&&(this.contactsData=[]),e.data.some(s=>{this.contactsData.findIndex(a=>a.userid==s.userid)===-1&&this.contactsData.push(s)}),this.contactsCurrentPage=e.current_page,this.contactsHasMorePages=e.current_page{i==""&&(this.contactsTotal=0),this.contactsHasMorePages=!1}).finally(e=>{this.contactsLoad--,this.contactsLastTime=$A.dayjs().unix()})},getContactsNextPage(){this.scrollE()<10&&this.tabActive==="contacts"&&this.contactsLoad===0&&this.contactsHasMorePages&&this.getContactsList(this.contactsCurrentPage+1)},updateContactsList(t){this.__updateContactsList&&clearTimeout(this.__updateContactsList),t>-1&&(this.__updateContactsList=setTimeout(i=>{this.tabActive==="contacts"&&this.$store.dispatch("call",{url:"users/search",data:{updated_time:this.contactsLastTime,take:100}}).then(({data:e})=>{e.some(s=>{const a=this.contactsData.findIndex(o=>o.userid==s.userid);a>-1?this.contactsData.splice(a,1,s):this.contactsData.push(s)})}).finally(e=>{this.contactsLastTime=$A.dayjs().unix()})},t))},formatDraft(t){return(t==null?void 0:t.replace(/ ]*>/gi,`[${$A.L("\u56FE\u7247")}]`).replace(/<[^>]*>/g,"").replace(/ /g," "))||null},formatTodoNum(t){return t>999?"999+":t>1?t:""},formatMsgEmojiDesc(t){return $A.isJson(t)&&$A.arrayLength(t.emoji)>0?t.emoji[0].symbol:null},showProfessionDesc(t){return t&&t.profession?`[${t.profession}]`:""},lastMsgReadDone(t){if($A.isJson(t)){const{userid:i,percentage:e}=t;if(i===this.userId)return e===100?"md-done-all":"md-checkmark"}return null},scrollIntoActive(){this.windowPortrait||this.windowScrollY>0||this.$nextTick(()=>{if(!this.$refs.list)return;const t=this.$refs.list.querySelector(".active");if(t){$A.scrollIntoViewIfNeeded(t);return}this.cacheDialogs.find(({id:e})=>e==this.dialogId)&&this.dialogActive&&(this.dialogActive="",this.$nextTick(()=>{const e=this.$refs.list.querySelector(".active");e&&$A.scrollIntoViewIfNeeded(e)}))})},handleLongpress(t){const{type:i,data:e,element:s}=this.longpressData;if(this.$store.commit("longpress/clear"),i==="messenger"){if(this.operateType=this.tabActive,this.operateVisible=!1,e.dataType==="contacts"){if(this.contactsKey)return;this.operateItem=this.contactsFilter.find(a=>a.userid==e.dataId)}else{if(this.dialogSearchKey)return;this.operateItem=this.dialogList.find(a=>a.id==e.dataId)}!this.operateItem||requestAnimationFrame(()=>{const a=s.getBoundingClientRect();this.operateStyles={left:`${t.clientX}px`,top:`${a.top}px`,height:`${a.height}px`},this.operateVisible=!0})}},handleOperation({currentTarget:t}){this.$store.commit("longpress/set",{type:"messenger",data:{dataId:$A.getAttr(t,"data-id"),dataType:$A.getAttr(t,"data-type")},element:t})},handleDialogClick(t,i=void 0){switch(t){case"top":this.$store.dispatch("call",{url:"dialog/top",data:{dialog_id:this.operateItem.id}}).then(({data:e})=>{this.$store.dispatch("saveDialog",e),this.$nextTick(this.scrollIntoActive)}).catch(({msg:e})=>{$A.modalError(e)});break;case"read":this.$store.dispatch("showSpinner",600),this.$store.dispatch("dialogMsgMark",{type:$A.getDialogUnread(this.operateItem,!0)>0?"read":"unread",dialog_id:this.operateItem.id}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.$store.dispatch("hiddenSpinner")});break;case"silence":if(this.silenceDisabled(this.operateItem))return;this.$store.dispatch("call",{url:"dialog/msg/silence",data:{dialog_id:this.operateItem.id,type:this.operateItem.silence?"cancel":"set"}}).then(({data:e})=>{this.$store.dispatch("saveDialog",e)}).catch(({msg:e})=>{$A.modalError(e)});break;case"single":this.$store.dispatch("openDialog",{dialog_id:this.operateItem.id,single:!0});break;case"hide":this.$store.dispatch("call",{url:"dialog/hide",data:{dialog_id:this.operateItem.id}}).then(({data:e})=>{this.dialogId==this.operateItem.id&&this.$store.dispatch("openDialog",0),this.$store.dispatch("saveDialog",e)}).catch(({msg:e})=>{$A.modalError(e)});break;case"color":this.$store.dispatch("call",{url:"dialog/msg/color",data:{dialog_id:this.operateItem.id,color:i}}).then(({data:e})=>{this.$store.dispatch("saveDialog",e)}).catch(({msg:e})=>{$A.modalError(e)});break}},handleUserClick(t){switch(t){case"msg":this.openContacts(this.operateItem);break;case"meet":case"group":const i=[this.userId];this.operateItem.userid&&this.userId!=this.operateItem.userid&&i.push(this.operateItem.userid),t==="meet"?l.emit("addMeeting",{type:"create",userids:i}):l.emit("createGroup",i);break;case"detail":l.emit("openUser",this.operateItem.userid);break}},updateDialogs(t){this.__updateDialogs&&clearTimeout(this.__updateDialogs),t>-1&&(this.__updateDialogs=setTimeout(i=>{this.tabActive==="dialog"&&this.routeName==="manage-messenger"&&this.$store.dispatch("getDialogAuto").catch(()=>{})},t))},onOpenAppSetting(){$A.eeuiAppSendMessage({action:"gotoSetting"})},silenceDisabled(t){const{type:i,group_type:e}=t;return i==="group"&&e!=="user"}}},h={};var D=v(A,$,y,!1,C,null,null,null);function C(t){for(let i in h)this[i]=h[i]}var Ct=function(){return D.exports}();export{Ct as default};
diff --git a/public/js/build/password.382931f7.js b/public/js/build/password.495f53b6.js
similarity index 97%
rename from public/js/build/password.382931f7.js
rename to public/js/build/password.495f53b6.js
index e21d93b88..c836a5d3f 100644
--- a/public/js/build/password.382931f7.js
+++ b/public/js/build/password.495f53b6.js
@@ -1 +1 @@
-import{m as i}from"./vuex.cc7cb26e.js";import{n as m}from"./app.818b057c.js";import"./jquery.c87f487f.js";import"./@babel.9410f858.js";import"./dayjs.fd4aa75c.js";import"./localforage.8de7c27e.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./vue.adba9046.js";import"./openpgp_hi.15f91b1d.js";import"./axios.37c7f908.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./view-design-hi.24419422.js";import"./html-to-md.f297036e.js";import"./lodash.8fcd6fd4.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vuedraggable.f464b992.js";import"./sortablejs.3488b922.js";import"./vue-resize-observer.5af23a43.js";import"./element-sea.f8a64907.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var a=function(){var t=this,s=t.$createElement,r=t._self._c||s;return r("div",{staticClass:"setting-item submit"},[r("Form",t._b({ref:"formDatum",attrs:{model:t.formDatum,rules:t.ruleDatum},nativeOn:{submit:function(e){e.preventDefault()}}},"Form",t.formOptions,!1),[t.userInfo.changepass?r("Alert",{staticStyle:{"margin-bottom":"32px"},attrs:{type:"warning",showIcon:""}},[t._v(t._s(t.$L("\u8BF7\u5148\u4FEE\u6539\u767B\u5F55\u5BC6\u7801\uFF01")))]):t._e(),r("FormItem",{attrs:{label:t.$L("\u65E7\u5BC6\u7801"),prop:"oldpass"}},[r("Input",{attrs:{type:"password"},model:{value:t.formDatum.oldpass,callback:function(e){t.$set(t.formDatum,"oldpass",e)},expression:"formDatum.oldpass"}})],1),r("FormItem",{attrs:{label:t.$L("\u65B0\u5BC6\u7801"),prop:"newpass"}},[r("Input",{attrs:{type:"password"},model:{value:t.formDatum.newpass,callback:function(e){t.$set(t.formDatum,"newpass",e)},expression:"formDatum.newpass"}})],1),r("FormItem",{attrs:{label:t.$L("\u786E\u8BA4\u65B0\u5BC6\u7801"),prop:"checkpass"}},[r("Input",{attrs:{type:"password"},model:{value:t.formDatum.checkpass,callback:function(e){t.$set(t.formDatum,"checkpass",e)},expression:"formDatum.checkpass"}})],1)],1),r("div",{staticClass:"setting-footer"},[r("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),r("Button",{attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},p=[];const n={data(){return{loadIng:0,formDatum:{oldpass:"",newpass:"",checkpass:""},ruleDatum:{oldpass:[{required:!0,message:this.$L("\u8BF7\u8F93\u5165\u65E7\u5BC6\u7801\uFF01"),trigger:"change"},{type:"string",min:6,message:this.$L("\u5BC6\u7801\u957F\u5EA6\u81F3\u5C11(*)\u4F4D\uFF01",6),trigger:"change"}],newpass:[{validator:(t,s,r)=>{s===""?r(new Error(this.$L("\u8BF7\u8F93\u5165\u65B0\u5BC6\u7801\uFF01"))):(this.formDatum.checkpass!==""&&this.$refs.formDatum.validateField("checkpass"),r())},required:!0,trigger:"change"},{type:"string",min:6,message:this.$L("\u5BC6\u7801\u957F\u5EA6\u81F3\u5C11(*)\u4F4D\uFF01",6),trigger:"change"}],checkpass:[{validator:(t,s,r)=>{s===""?r(new Error(this.$L("\u8BF7\u91CD\u65B0\u8F93\u5165\u65B0\u5BC6\u7801\uFF01"))):s!==this.formDatum.newpass?r(new Error(this.$L("\u4E24\u6B21\u5BC6\u7801\u8F93\u5165\u4E0D\u4E00\u81F4\uFF01"))):r()},required:!0,trigger:"change"}]}}},computed:{...i(["userInfo","formOptions"])},methods:{submitForm(){this.$refs.formDatum.validate(t=>{t&&(this.loadIng++,this.$store.dispatch("call",{url:"users/editpass",data:this.formDatum}).then(({data:s})=>{$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.$store.dispatch("saveUserInfo",s),this.$refs.formDatum.resetFields()}).catch(({msg:s})=>{$A.modalError(s)}).finally(s=>{this.loadIng--}))})},resetForm(){this.$refs.formDatum.resetFields()}}},o={};var l=m(n,a,p,!1,u,null,null,null);function u(t){for(let s in o)this[s]=o[s]}var ot=function(){return l.exports}();export{ot as default};
+import{m as i}from"./vuex.cc7cb26e.js";import{n as m}from"./app.ef7047f7.js";import"./jquery.6e4daff9.js";import"./@babel.9410f858.js";import"./dayjs.d20a4841.js";import"./localforage.743dffdd.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./vue.adba9046.js";import"./openpgp_hi.15f91b1d.js";import"./axios.37c7f908.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./view-design-hi.24419422.js";import"./html-to-md.f297036e.js";import"./lodash.8fcd6fd4.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vuedraggable.f464b992.js";import"./sortablejs.3488b922.js";import"./vue-resize-observer.5af23a43.js";import"./element-sea.f8a64907.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var a=function(){var t=this,s=t.$createElement,r=t._self._c||s;return r("div",{staticClass:"setting-item submit"},[r("Form",t._b({ref:"formDatum",attrs:{model:t.formDatum,rules:t.ruleDatum},nativeOn:{submit:function(e){e.preventDefault()}}},"Form",t.formOptions,!1),[t.userInfo.changepass?r("Alert",{staticStyle:{"margin-bottom":"32px"},attrs:{type:"warning",showIcon:""}},[t._v(t._s(t.$L("\u8BF7\u5148\u4FEE\u6539\u767B\u5F55\u5BC6\u7801\uFF01")))]):t._e(),r("FormItem",{attrs:{label:t.$L("\u65E7\u5BC6\u7801"),prop:"oldpass"}},[r("Input",{attrs:{type:"password"},model:{value:t.formDatum.oldpass,callback:function(e){t.$set(t.formDatum,"oldpass",e)},expression:"formDatum.oldpass"}})],1),r("FormItem",{attrs:{label:t.$L("\u65B0\u5BC6\u7801"),prop:"newpass"}},[r("Input",{attrs:{type:"password"},model:{value:t.formDatum.newpass,callback:function(e){t.$set(t.formDatum,"newpass",e)},expression:"formDatum.newpass"}})],1),r("FormItem",{attrs:{label:t.$L("\u786E\u8BA4\u65B0\u5BC6\u7801"),prop:"checkpass"}},[r("Input",{attrs:{type:"password"},model:{value:t.formDatum.checkpass,callback:function(e){t.$set(t.formDatum,"checkpass",e)},expression:"formDatum.checkpass"}})],1)],1),r("div",{staticClass:"setting-footer"},[r("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),r("Button",{attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},p=[];const n={data(){return{loadIng:0,formDatum:{oldpass:"",newpass:"",checkpass:""},ruleDatum:{oldpass:[{required:!0,message:this.$L("\u8BF7\u8F93\u5165\u65E7\u5BC6\u7801\uFF01"),trigger:"change"},{type:"string",min:6,message:this.$L("\u5BC6\u7801\u957F\u5EA6\u81F3\u5C11(*)\u4F4D\uFF01",6),trigger:"change"}],newpass:[{validator:(t,s,r)=>{s===""?r(new Error(this.$L("\u8BF7\u8F93\u5165\u65B0\u5BC6\u7801\uFF01"))):(this.formDatum.checkpass!==""&&this.$refs.formDatum.validateField("checkpass"),r())},required:!0,trigger:"change"},{type:"string",min:6,message:this.$L("\u5BC6\u7801\u957F\u5EA6\u81F3\u5C11(*)\u4F4D\uFF01",6),trigger:"change"}],checkpass:[{validator:(t,s,r)=>{s===""?r(new Error(this.$L("\u8BF7\u91CD\u65B0\u8F93\u5165\u65B0\u5BC6\u7801\uFF01"))):s!==this.formDatum.newpass?r(new Error(this.$L("\u4E24\u6B21\u5BC6\u7801\u8F93\u5165\u4E0D\u4E00\u81F4\uFF01"))):r()},required:!0,trigger:"change"}]}}},computed:{...i(["userInfo","formOptions"])},methods:{submitForm(){this.$refs.formDatum.validate(t=>{t&&(this.loadIng++,this.$store.dispatch("call",{url:"users/editpass",data:this.formDatum}).then(({data:s})=>{$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.$store.dispatch("saveUserInfo",s),this.$refs.formDatum.resetFields()}).catch(({msg:s})=>{$A.modalError(s)}).finally(s=>{this.loadIng--}))})},resetForm(){this.$refs.formDatum.resetFields()}}},o={};var l=m(n,a,p,!1,u,null,null,null);function u(t){for(let s in o)this[s]=o[s]}var ot=function(){return l.exports}();export{ot as default};
diff --git a/public/js/build/personal.3bc6ab62.js b/public/js/build/personal.4aeb260a.js
similarity index 95%
rename from public/js/build/personal.3bc6ab62.js
rename to public/js/build/personal.4aeb260a.js
index c8e25dffe..4b2d9b817 100644
--- a/public/js/build/personal.3bc6ab62.js
+++ b/public/js/build/personal.4aeb260a.js
@@ -1 +1 @@
-import{I as i}from"./ImgUpload.a99f26bd.js";import{f as n,n as l}from"./app.818b057c.js";import{m}from"./vuex.cc7cb26e.js";import"./chunkedUpload.a9ef725e.js";import"./axios.37c7f908.js";import"./spark-md5.0443325f.js";import"./jquery.c87f487f.js";import"./@babel.9410f858.js";import"./dayjs.fd4aa75c.js";import"./localforage.8de7c27e.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./vue.adba9046.js";import"./openpgp_hi.15f91b1d.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./view-design-hi.24419422.js";import"./html-to-md.f297036e.js";import"./lodash.8fcd6fd4.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vuedraggable.f464b992.js";import"./sortablejs.3488b922.js";import"./vue-resize-observer.5af23a43.js";import"./element-sea.f8a64907.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var p=function(){var t=this,r=t.$createElement,a=t._self._c||r;return a("div",{staticClass:"setting-item submit"},[a("Form",t._b({ref:"formData",attrs:{model:t.formData,rules:t.ruleData},nativeOn:{submit:function(s){s.preventDefault()}}},"Form",t.formOptions,!1),[a("FormItem",{attrs:{label:t.$L("\u5934\u50CF"),prop:"userimg"}},[a("ImgUpload",{attrs:{num:1,width:512,height:512,whcut:"cover"},model:{value:t.formData.userimg,callback:function(s){t.$set(t.formData,"userimg",s)},expression:"formData.userimg"}}),a("span",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A(*)","200x200")))])],1),a("FormItem",{attrs:{label:t.$L("\u90AE\u7BB1"),prop:"email"}},[a("Input",{attrs:{disabled:""},model:{value:t.userInfo.email,callback:function(s){t.$set(t.userInfo,"email",s)},expression:"userInfo.email"}})],1),a("FormItem",{attrs:{label:t.$L("\u7535\u8BDD"),prop:"tel"}},[a("Input",{attrs:{maxlength:20,placeholder:t.$L("\u8BF7\u8F93\u5165\u8054\u7CFB\u7535\u8BDD")},model:{value:t.formData.tel,callback:function(s){t.$set(t.formData,"tel",s)},expression:"formData.tel"}})],1),a("FormItem",{attrs:{label:t.$L("\u6635\u79F0"),prop:"nickname"}},[a("Input",{attrs:{maxlength:20,placeholder:t.$L("\u8BF7\u8F93\u5165\u6635\u79F0")},model:{value:t.formData.nickname,callback:function(s){t.$set(t.formData,"nickname",s)},expression:"formData.nickname"}})],1),a("FormItem",{attrs:{label:t.$L("\u804C\u4F4D/\u804C\u79F0"),prop:"profession"}},[a("Input",{attrs:{maxlength:20,placeholder:t.$L("\u8BF7\u8F93\u5165\u804C\u4F4D/\u804C\u79F0")},model:{value:t.formData.profession,callback:function(s){t.$set(t.formData,"profession",s)},expression:"formData.profession"}})],1),a("FormItem",{attrs:{label:t.$L("\u751F\u65E5"),prop:"birthday"}},[a("DatePicker",{attrs:{type:"date",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",placeholder:t.$L("\u8BF7\u9009\u62E9\u751F\u65E5"),confirm:"",transfer:""},model:{value:t.formData.birthday,callback:function(s){t.$set(t.formData,"birthday",s)},expression:"formData.birthday"}})],1),a("FormItem",{attrs:{label:t.$L("\u5730\u5740"),prop:"address"}},[a("Input",{attrs:{maxlength:100,placeholder:t.$L("\u8BF7\u8F93\u5165\u5730\u5740")},model:{value:t.formData.address,callback:function(s){t.$set(t.formData,"address",s)},expression:"formData.address"}})],1),a("FormItem",{attrs:{label:t.$L("\u4E2A\u4EBA\u7B80\u4ECB"),prop:"introduction"}},[a("Input",{attrs:{type:"textarea",rows:2,autosize:{minRows:2,maxRows:8},maxlength:500,placeholder:t.$L("\u8BF7\u8F93\u5165\u4E2A\u4EBA\u7B80\u4ECB")},model:{value:t.formData.introduction,callback:function(s){t.$set(t.formData,"introduction",s)},expression:"formData.introduction"}})],1),a("FormItem",{attrs:{label:t.$L("\u4E2A\u6027\u6807\u7B7E")}},[a("div",{staticClass:"user-tags-preview"},[t.displayTags.length?t._l(t.displayTags,function(s){return a("div",{key:s.id,staticClass:"tag-pill",class:{"is-recognized":s.recognized},on:{click:t.openTagModal}},[t._v(" "+t._s(s.name)+" "),s.recognition_total>0?a("span",[t._v(t._s(s.recognition_total))]):t._e()])}):a("span",{staticClass:"tags-empty"},[t._v(t._s(t.$L("\u6682\u65E0\u4E2A\u6027\u6807\u7B7E")))]),t.personalTagTotal>t.displayTags.length?a("span",{staticClass:"tags-total"},[t._v(t._s(t.$L("\u5171(*)\u4E2A",t.personalTagTotal)))]):t._e(),a("Button",{staticClass:"manage-button",attrs:{type:"text",size:"small"},on:{click:function(s){return s.stopPropagation(),t.openTagModal.apply(null,arguments)}}},[a("Icon",{attrs:{type:"md-create"}}),t._v(" "+t._s(t.$L("\u7BA1\u7406"))+" ")],1)],2)])],1),a("div",{staticClass:"setting-footer"},[a("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),a("Button",{attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1),t.userInfo.userid?a("UserTagsModal",{attrs:{userid:t.userInfo.userid},on:{updated:t.onTagsUpdated},model:{value:t.tagModalVisible,callback:function(s){t.tagModalVisible=s},expression:"tagModalVisible"}}):t._e()],1)},d=[];const c={components:{ImgUpload:i,UserTagsModal:n},data(){return{loadIng:0,formData:{userimg:"",email:"",tel:"",nickname:"",profession:"",birthday:"",address:"",introduction:""},extraInfo:{},ruleData:{email:[{required:!0,message:this.$L("\u8BF7\u8F93\u5165\u90AE\u7BB1\u5730\u5740\uFF01"),trigger:"change"}],tel:[{required:!0,message:this.$L("\u8BF7\u8F93\u5165\u8054\u7CFB\u7535\u8BDD\uFF01"),trigger:"change"},{type:"string",min:6,message:this.$L("\u7535\u8BDD\u957F\u5EA6\u81F3\u5C116\u4F4D\uFF01"),trigger:"change"}],nickname:[{required:!0,message:this.$L("\u8BF7\u8F93\u5165\u6635\u79F0\uFF01"),trigger:"change"},{type:"string",min:2,message:this.$L("\u6635\u79F0\u957F\u5EA6\u81F3\u5C11(*)\u4F4D\uFF01",2),trigger:"change"}]},tagModalVisible:!1,personalTags:[],personalTagTotal:0}},mounted(){this.initData(),this.loadUserExtra()},computed:{...m(["userInfo","formOptions"]),displayTags(){return this.personalTags}},watch:{userInfo(){this.initData(),this.loadUserExtra()}},methods:{initData(){const t=this.extraInfo||{};this.$set(this.formData,"userimg",$A.strExists(this.userInfo.userimg,"/avatar")?"":this.userInfo.userimg),this.$set(this.formData,"email",this.userInfo.email),this.$set(this.formData,"tel",this.userInfo.tel),this.$set(this.formData,"nickname",typeof this.userInfo.nickname_original!="undefined"?this.userInfo.nickname_original:this.userInfo.nickname),this.$set(this.formData,"profession",this.userInfo.profession),this.$set(this.formData,"birthday",t.birthday||""),this.$set(this.formData,"address",t.address||""),this.$set(this.formData,"introduction",t.introduction||""),this.formData_bak=$A.cloneJSON(this.formData),this.syncPersonalTags()},loadUserExtra(t=!1){var s;const r=(s=this.userInfo)==null?void 0:s.userid;if(!r){this.applyExtraInfo({});return}const a=t?{userid:r,force:!0}:r;this.$store.dispatch("getUserExtra",a).then(e=>{$A.isJson(e)&&this.applyExtraInfo(e)}).catch(()=>{(!this.extraInfo||Object.keys(this.extraInfo).length===0)&&this.applyExtraInfo({})})},applyExtraInfo(t){const r=$A.isJson(t)?t:{};this.extraInfo=r,this.$set(this.formData,"birthday",r.birthday||""),this.$set(this.formData,"address",r.address||""),this.$set(this.formData,"introduction",r.introduction||""),this.syncPersonalTags(),this.formData_bak=$A.cloneJSON(this.formData)},syncPersonalTags(){const t=this.extraInfo||{},r=Array.isArray(t.personal_tags)?t.personal_tags:[];this.personalTags=r.slice(0,10),this.personalTagTotal=typeof t.personal_tags_total=="number"?t.personal_tags_total:this.personalTags.length},submitForm(){this.$refs.formData.validate(t=>{if(t){let r=$A.cloneJSON(this.formData);$A.count(r.userimg)==0&&(r.userimg=""),this.loadIng++,this.$store.dispatch("call",{url:"users/editdata",data:r}).then(()=>{var e;$A.messageSuccess("\u4FEE\u6539\u6210\u529F");const a=(e=this.userInfo)==null?void 0:e.userid,s={birthday:r.birthday||"",address:r.address||"",introduction:r.introduction||""};a&&this.$store.dispatch("saveUserExtra",{userid:a,data:s}),this.applyExtraInfo(Object.assign({},this.extraInfo,s)),this.$store.dispatch("getUserInfo").catch(()=>{}).finally(()=>{this.loadUserExtra(!0)})}).catch(({msg:a})=>{$A.modalError(a)}).finally(a=>{this.loadIng--})}})},resetForm(){this.formData=$A.cloneJSON(this.formData_bak)},openTagModal(){!this.userInfo.userid||(this.tagModalVisible=!0)},onTagsUpdated({top:t,total:r}){this.personalTags=Array.isArray(t)?t:[],this.personalTagTotal=typeof r=="number"?r:this.personalTags.length,this.extraInfo=Object.assign({},this.extraInfo,{personal_tags:this.personalTags,personal_tags_total:this.personalTagTotal})}}},o={};var f=l(c,p,d,!1,u,"d0adec88",null,null);function u(t){for(let r in o)this[r]=o[r]}var pt=function(){return f.exports}();export{pt as default};
+import{I as i}from"./ImgUpload.434d067a.js";import{f as n,n as l}from"./app.ef7047f7.js";import{m}from"./vuex.cc7cb26e.js";import"./chunkedUpload.3cd238b0.js";import"./axios.37c7f908.js";import"./spark-md5.0443325f.js";import"./jquery.6e4daff9.js";import"./@babel.9410f858.js";import"./dayjs.d20a4841.js";import"./localforage.743dffdd.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./vue.adba9046.js";import"./openpgp_hi.15f91b1d.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./view-design-hi.24419422.js";import"./html-to-md.f297036e.js";import"./lodash.8fcd6fd4.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vuedraggable.f464b992.js";import"./sortablejs.3488b922.js";import"./vue-resize-observer.5af23a43.js";import"./element-sea.f8a64907.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var p=function(){var t=this,r=t.$createElement,a=t._self._c||r;return a("div",{staticClass:"setting-item submit"},[a("Form",t._b({ref:"formData",attrs:{model:t.formData,rules:t.ruleData},nativeOn:{submit:function(s){s.preventDefault()}}},"Form",t.formOptions,!1),[a("FormItem",{attrs:{label:t.$L("\u5934\u50CF"),prop:"userimg"}},[a("ImgUpload",{attrs:{num:1,width:512,height:512,whcut:"cover"},model:{value:t.formData.userimg,callback:function(s){t.$set(t.formData,"userimg",s)},expression:"formData.userimg"}}),a("span",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A(*)","200x200")))])],1),a("FormItem",{attrs:{label:t.$L("\u90AE\u7BB1"),prop:"email"}},[a("Input",{attrs:{disabled:""},model:{value:t.userInfo.email,callback:function(s){t.$set(t.userInfo,"email",s)},expression:"userInfo.email"}})],1),a("FormItem",{attrs:{label:t.$L("\u7535\u8BDD"),prop:"tel"}},[a("Input",{attrs:{maxlength:20,placeholder:t.$L("\u8BF7\u8F93\u5165\u8054\u7CFB\u7535\u8BDD")},model:{value:t.formData.tel,callback:function(s){t.$set(t.formData,"tel",s)},expression:"formData.tel"}})],1),a("FormItem",{attrs:{label:t.$L("\u6635\u79F0"),prop:"nickname"}},[a("Input",{attrs:{maxlength:20,placeholder:t.$L("\u8BF7\u8F93\u5165\u6635\u79F0")},model:{value:t.formData.nickname,callback:function(s){t.$set(t.formData,"nickname",s)},expression:"formData.nickname"}})],1),a("FormItem",{attrs:{label:t.$L("\u804C\u4F4D/\u804C\u79F0"),prop:"profession"}},[a("Input",{attrs:{maxlength:20,placeholder:t.$L("\u8BF7\u8F93\u5165\u804C\u4F4D/\u804C\u79F0")},model:{value:t.formData.profession,callback:function(s){t.$set(t.formData,"profession",s)},expression:"formData.profession"}})],1),a("FormItem",{attrs:{label:t.$L("\u751F\u65E5"),prop:"birthday"}},[a("DatePicker",{attrs:{type:"date",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",placeholder:t.$L("\u8BF7\u9009\u62E9\u751F\u65E5"),confirm:"",transfer:""},model:{value:t.formData.birthday,callback:function(s){t.$set(t.formData,"birthday",s)},expression:"formData.birthday"}})],1),a("FormItem",{attrs:{label:t.$L("\u5730\u5740"),prop:"address"}},[a("Input",{attrs:{maxlength:100,placeholder:t.$L("\u8BF7\u8F93\u5165\u5730\u5740")},model:{value:t.formData.address,callback:function(s){t.$set(t.formData,"address",s)},expression:"formData.address"}})],1),a("FormItem",{attrs:{label:t.$L("\u4E2A\u4EBA\u7B80\u4ECB"),prop:"introduction"}},[a("Input",{attrs:{type:"textarea",rows:2,autosize:{minRows:2,maxRows:8},maxlength:500,placeholder:t.$L("\u8BF7\u8F93\u5165\u4E2A\u4EBA\u7B80\u4ECB")},model:{value:t.formData.introduction,callback:function(s){t.$set(t.formData,"introduction",s)},expression:"formData.introduction"}})],1),a("FormItem",{attrs:{label:t.$L("\u4E2A\u6027\u6807\u7B7E")}},[a("div",{staticClass:"user-tags-preview"},[t.displayTags.length?t._l(t.displayTags,function(s){return a("div",{key:s.id,staticClass:"tag-pill",class:{"is-recognized":s.recognized},on:{click:t.openTagModal}},[t._v(" "+t._s(s.name)+" "),s.recognition_total>0?a("span",[t._v(t._s(s.recognition_total))]):t._e()])}):a("span",{staticClass:"tags-empty"},[t._v(t._s(t.$L("\u6682\u65E0\u4E2A\u6027\u6807\u7B7E")))]),t.personalTagTotal>t.displayTags.length?a("span",{staticClass:"tags-total"},[t._v(t._s(t.$L("\u5171(*)\u4E2A",t.personalTagTotal)))]):t._e(),a("Button",{staticClass:"manage-button",attrs:{type:"text",size:"small"},on:{click:function(s){return s.stopPropagation(),t.openTagModal.apply(null,arguments)}}},[a("Icon",{attrs:{type:"md-create"}}),t._v(" "+t._s(t.$L("\u7BA1\u7406"))+" ")],1)],2)])],1),a("div",{staticClass:"setting-footer"},[a("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),a("Button",{attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1),t.userInfo.userid?a("UserTagsModal",{attrs:{userid:t.userInfo.userid},on:{updated:t.onTagsUpdated},model:{value:t.tagModalVisible,callback:function(s){t.tagModalVisible=s},expression:"tagModalVisible"}}):t._e()],1)},d=[];const c={components:{ImgUpload:i,UserTagsModal:n},data(){return{loadIng:0,formData:{userimg:"",email:"",tel:"",nickname:"",profession:"",birthday:"",address:"",introduction:""},extraInfo:{},ruleData:{email:[{required:!0,message:this.$L("\u8BF7\u8F93\u5165\u90AE\u7BB1\u5730\u5740\uFF01"),trigger:"change"}],tel:[{required:!0,message:this.$L("\u8BF7\u8F93\u5165\u8054\u7CFB\u7535\u8BDD\uFF01"),trigger:"change"},{type:"string",min:6,message:this.$L("\u7535\u8BDD\u957F\u5EA6\u81F3\u5C116\u4F4D\uFF01"),trigger:"change"}],nickname:[{required:!0,message:this.$L("\u8BF7\u8F93\u5165\u6635\u79F0\uFF01"),trigger:"change"},{type:"string",min:2,message:this.$L("\u6635\u79F0\u957F\u5EA6\u81F3\u5C11(*)\u4F4D\uFF01",2),trigger:"change"}]},tagModalVisible:!1,personalTags:[],personalTagTotal:0}},mounted(){this.initData(),this.loadUserExtra()},computed:{...m(["userInfo","formOptions"]),displayTags(){return this.personalTags}},watch:{userInfo(){this.initData(),this.loadUserExtra()}},methods:{initData(){const t=this.extraInfo||{};this.$set(this.formData,"userimg",$A.strExists(this.userInfo.userimg,"/avatar")?"":this.userInfo.userimg),this.$set(this.formData,"email",this.userInfo.email),this.$set(this.formData,"tel",this.userInfo.tel),this.$set(this.formData,"nickname",typeof this.userInfo.nickname_original!="undefined"?this.userInfo.nickname_original:this.userInfo.nickname),this.$set(this.formData,"profession",this.userInfo.profession),this.$set(this.formData,"birthday",t.birthday||""),this.$set(this.formData,"address",t.address||""),this.$set(this.formData,"introduction",t.introduction||""),this.formData_bak=$A.cloneJSON(this.formData),this.syncPersonalTags()},loadUserExtra(t=!1){var s;const r=(s=this.userInfo)==null?void 0:s.userid;if(!r){this.applyExtraInfo({});return}const a=t?{userid:r,force:!0}:r;this.$store.dispatch("getUserExtra",a).then(e=>{$A.isJson(e)&&this.applyExtraInfo(e)}).catch(()=>{(!this.extraInfo||Object.keys(this.extraInfo).length===0)&&this.applyExtraInfo({})})},applyExtraInfo(t){const r=$A.isJson(t)?t:{};this.extraInfo=r,this.$set(this.formData,"birthday",r.birthday||""),this.$set(this.formData,"address",r.address||""),this.$set(this.formData,"introduction",r.introduction||""),this.syncPersonalTags(),this.formData_bak=$A.cloneJSON(this.formData)},syncPersonalTags(){const t=this.extraInfo||{},r=Array.isArray(t.personal_tags)?t.personal_tags:[];this.personalTags=r.slice(0,10),this.personalTagTotal=typeof t.personal_tags_total=="number"?t.personal_tags_total:this.personalTags.length},submitForm(){this.$refs.formData.validate(t=>{if(t){let r=$A.cloneJSON(this.formData);$A.count(r.userimg)==0&&(r.userimg=""),this.loadIng++,this.$store.dispatch("call",{url:"users/editdata",data:r}).then(()=>{var e;$A.messageSuccess("\u4FEE\u6539\u6210\u529F");const a=(e=this.userInfo)==null?void 0:e.userid,s={birthday:r.birthday||"",address:r.address||"",introduction:r.introduction||""};a&&this.$store.dispatch("saveUserExtra",{userid:a,data:s}),this.applyExtraInfo(Object.assign({},this.extraInfo,s)),this.$store.dispatch("getUserInfo").catch(()=>{}).finally(()=>{this.loadUserExtra(!0)})}).catch(({msg:a})=>{$A.modalError(a)}).finally(a=>{this.loadIng--})}})},resetForm(){this.formData=$A.cloneJSON(this.formData_bak)},openTagModal(){!this.userInfo.userid||(this.tagModalVisible=!0)},onTagsUpdated({top:t,total:r}){this.personalTags=Array.isArray(t)?t:[],this.personalTagTotal=typeof r=="number"?r:this.personalTags.length,this.extraInfo=Object.assign({},this.extraInfo,{personal_tags:this.personalTags,personal_tags_total:this.personalTagTotal})}}},o={};var f=l(c,p,d,!1,u,"d0adec88",null,null);function u(t){for(let r in o)this[r]=o[r]}var pt=function(){return f.exports}();export{pt as default};
diff --git a/public/js/build/preload.e939a731.js b/public/js/build/preload.55967afa.js
similarity index 89%
rename from public/js/build/preload.e939a731.js
rename to public/js/build/preload.55967afa.js
index c4de94867..a7fd05cdc 100644
--- a/public/js/build/preload.e939a731.js
+++ b/public/js/build/preload.55967afa.js
@@ -1 +1 @@
-import{n as m}from"./app.818b057c.js";import"./jquery.c87f487f.js";import"./@babel.9410f858.js";import"./dayjs.fd4aa75c.js";import"./localforage.8de7c27e.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./vue.adba9046.js";import"./vuex.cc7cb26e.js";import"./openpgp_hi.15f91b1d.js";import"./axios.37c7f908.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./view-design-hi.24419422.js";import"./html-to-md.f297036e.js";import"./lodash.8fcd6fd4.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vuedraggable.f464b992.js";import"./sortablejs.3488b922.js";import"./vue-resize-observer.5af23a43.js";import"./element-sea.f8a64907.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var p=function(){var r=this,t=r.$createElement,i=r._self._c||t;return i("div")},e=[];const n={},o={};var _=m(n,p,e,!1,s,null,null,null);function s(r){for(let t in o)this[t]=o[t]}var ot=function(){return _.exports}();export{ot as default};
+import{n as m}from"./app.ef7047f7.js";import"./jquery.6e4daff9.js";import"./@babel.9410f858.js";import"./dayjs.d20a4841.js";import"./localforage.743dffdd.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./vue.adba9046.js";import"./vuex.cc7cb26e.js";import"./openpgp_hi.15f91b1d.js";import"./axios.37c7f908.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./view-design-hi.24419422.js";import"./html-to-md.f297036e.js";import"./lodash.8fcd6fd4.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vuedraggable.f464b992.js";import"./sortablejs.3488b922.js";import"./vue-resize-observer.5af23a43.js";import"./element-sea.f8a64907.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var p=function(){var r=this,t=r.$createElement,i=r._self._c||t;return i("div")},e=[];const n={},o={};var _=m(n,p,e,!1,s,null,null,null);function s(r){for(let t in o)this[t]=o[t]}var ot=function(){return _.exports}();export{ot as default};
diff --git a/public/js/build/preview.a027dcb2.js b/public/js/build/preview.7d35fa9c.js
similarity index 87%
rename from public/js/build/preview.a027dcb2.js
rename to public/js/build/preview.7d35fa9c.js
index b424374d9..79cfadcb3 100644
--- a/public/js/build/preview.a027dcb2.js
+++ b/public/js/build/preview.7d35fa9c.js
@@ -1 +1 @@
-import{_ as m}from"./openpgp_hi.15f91b1d.js";import{p}from"./index.40a8e116.js";import{n as e}from"./app.818b057c.js";import"./jquery.c87f487f.js";import"./@babel.9410f858.js";import"./dayjs.fd4aa75c.js";import"./localforage.8de7c27e.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./vue.adba9046.js";import"./vuex.cc7cb26e.js";import"./axios.37c7f908.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./view-design-hi.24419422.js";import"./html-to-md.f297036e.js";import"./lodash.8fcd6fd4.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vuedraggable.f464b992.js";import"./sortablejs.3488b922.js";import"./vue-resize-observer.5af23a43.js";import"./element-sea.f8a64907.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var n=function(){var t=this,r=t.$createElement,i=t._self._c||r;return t.ready?i("VPreview",{attrs:{value:t.value}}):i("Loading")},a=[];const s={name:"VMPreview",mixins:[p],components:{VPreview:()=>m(()=>import("./preview.d166b603.js"),["js/build/preview.d166b603.js","js/build/preview.b56176fa.css","js/build/@kangc.b5fe0a56.js","js/build/@kangc.d8464d83.css","js/build/@babel.9410f858.js","js/build/vue.adba9046.js","js/build/copy-to-clipboard.a53c061d.js","js/build/toggle-selection.d2487283.js","js/build/prismjs.94ec9288.js","js/build/app.818b057c.js","js/build/app.e77c9e40.css","js/build/jquery.c87f487f.js","js/build/dayjs.fd4aa75c.js","js/build/localforage.8de7c27e.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js","js/build/index.40a8e116.js"])},data(){return{ready:!1}},async mounted(){await $A.loadScriptS(["js/katex/katex.min.js","js/katex/katex.min.css","js/mermaid.min.js"]),this.ready=!0}},o={};var _=e(s,n,a,!1,l,null,null,null);function l(t){for(let r in o)this[r]=o[r]}var pt=function(){return _.exports}();export{pt as default};
+import{_ as m}from"./openpgp_hi.15f91b1d.js";import{p}from"./index.40a8e116.js";import{n as e}from"./app.ef7047f7.js";import"./jquery.6e4daff9.js";import"./@babel.9410f858.js";import"./dayjs.d20a4841.js";import"./localforage.743dffdd.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./vue.adba9046.js";import"./vuex.cc7cb26e.js";import"./axios.37c7f908.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./view-design-hi.24419422.js";import"./html-to-md.f297036e.js";import"./lodash.8fcd6fd4.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vuedraggable.f464b992.js";import"./sortablejs.3488b922.js";import"./vue-resize-observer.5af23a43.js";import"./element-sea.f8a64907.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var n=function(){var t=this,r=t.$createElement,i=t._self._c||r;return t.ready?i("VPreview",{attrs:{value:t.value}}):i("Loading")},a=[];const s={name:"VMPreview",mixins:[p],components:{VPreview:()=>m(()=>import("./preview.b00d72bf.js"),["js/build/preview.b00d72bf.js","js/build/preview.b56176fa.css","js/build/@kangc.b5fe0a56.js","js/build/@kangc.d8464d83.css","js/build/@babel.9410f858.js","js/build/vue.adba9046.js","js/build/copy-to-clipboard.a53c061d.js","js/build/toggle-selection.d2487283.js","js/build/prismjs.94ec9288.js","js/build/app.ef7047f7.js","js/build/app.239a8ce2.css","js/build/jquery.6e4daff9.js","js/build/dayjs.d20a4841.js","js/build/localforage.743dffdd.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.24419422.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js","js/build/index.40a8e116.js"])},data(){return{ready:!1}},async mounted(){await $A.loadScriptS(["js/katex/katex.min.js","js/katex/katex.min.css","js/mermaid.min.js"]),this.ready=!0}},o={};var _=e(s,n,a,!1,l,null,null,null);function l(t){for(let r in o)this[r]=o[r]}var pt=function(){return _.exports}();export{pt as default};
diff --git a/public/js/build/preview.d166b603.js b/public/js/build/preview.b00d72bf.js
similarity index 92%
rename from public/js/build/preview.d166b603.js
rename to public/js/build/preview.b00d72bf.js
index 7cb9089df..72c7f1ad3 100644
--- a/public/js/build/preview.d166b603.js
+++ b/public/js/build/preview.b00d72bf.js
@@ -1 +1 @@
-import{V as e,d as p,a as s,b as n,c as a,_ as l,e as u,v as _}from"./@kangc.b5fe0a56.js";import{P as c}from"./prismjs.94ec9288.js";import{l as v,v as o,n as d}from"./app.818b057c.js";import{p as f}from"./index.40a8e116.js";import"./@babel.9410f858.js";import"./vue.adba9046.js";import"./copy-to-clipboard.a53c061d.js";import"./toggle-selection.d2487283.js";import"./jquery.c87f487f.js";import"./dayjs.fd4aa75c.js";import"./localforage.8de7c27e.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./vuex.cc7cb26e.js";import"./openpgp_hi.15f91b1d.js";import"./axios.37c7f908.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./view-design-hi.24419422.js";import"./html-to-md.f297036e.js";import"./lodash.8fcd6fd4.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vuedraggable.f464b992.js";import"./sortablejs.3488b922.js";import"./vue-resize-observer.5af23a43.js";import"./element-sea.f8a64907.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var h=function(){var t=this,r=t.$createElement,i=t._self._c||r;return i("div",{staticClass:"vmpreview-wrapper",on:{click:t.handleClick}},[i("v-md-preview",{attrs:{text:t.previewContent}})],1)},g=[];/^zh/.test(v)?e.lang.use("zh-CN",p):e.lang.use("en-US",s);e.use(n());e.use(a());e.use(l());e.use(u());const w={mixins:[f],components:{[e.name]:e},created(){e.use(_,{Prism:c,extend(t){o.initReasoningPlugin(t)}})},computed:{previewContent({value:t}){return o.clearEmptyReasoning(t)}},methods:{handleClick({target:t}){if(t.nodeName==="IMG"){const r=[...this.$el.querySelectorAll("img").values()].map(i=>i.src);if(r.length===0)return;this.$store.dispatch("previewImage",{index:t.src,list:r})}}}},m={};var x=d(w,h,g,!1,C,"2ee04dfe",null,null);function C(t){for(let r in m)this[r]=m[r]}var wt=function(){return x.exports}();export{wt as default};
+import{V as e,d as p,a as s,b as n,c as a,_ as l,e as u,v as _}from"./@kangc.b5fe0a56.js";import{P as c}from"./prismjs.94ec9288.js";import{l as v,r as o,n as d}from"./app.ef7047f7.js";import{p as f}from"./index.40a8e116.js";import"./@babel.9410f858.js";import"./vue.adba9046.js";import"./copy-to-clipboard.a53c061d.js";import"./toggle-selection.d2487283.js";import"./jquery.6e4daff9.js";import"./dayjs.d20a4841.js";import"./localforage.743dffdd.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./vuex.cc7cb26e.js";import"./openpgp_hi.15f91b1d.js";import"./axios.37c7f908.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./view-design-hi.24419422.js";import"./html-to-md.f297036e.js";import"./lodash.8fcd6fd4.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vuedraggable.f464b992.js";import"./sortablejs.3488b922.js";import"./vue-resize-observer.5af23a43.js";import"./element-sea.f8a64907.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var h=function(){var t=this,r=t.$createElement,i=t._self._c||r;return i("div",{staticClass:"vmpreview-wrapper",on:{click:t.handleClick}},[i("v-md-preview",{attrs:{text:t.previewContent}})],1)},g=[];/^zh/.test(v)?e.lang.use("zh-CN",p):e.lang.use("en-US",s);e.use(n());e.use(a());e.use(l());e.use(u());const w={mixins:[f],components:{[e.name]:e},created(){e.use(_,{Prism:c,extend(t){o.initReasoningPlugin(t)}})},computed:{previewContent({value:t}){return o.clearEmptyReasoning(t)}},methods:{handleClick({target:t}){if(t.nodeName==="IMG"){const r=[...this.$el.querySelectorAll("img").values()].map(i=>i.src);if(r.length===0)return;this.$store.dispatch("previewImage",{index:t.src,list:r})}}}},m={};var x=d(w,h,g,!1,C,"2ee04dfe",null,null);function C(t){for(let r in m)this[r]=m[r]}var wt=function(){return x.exports}();export{wt as default};
diff --git a/public/js/build/pro.8ad1c5f1.js b/public/js/build/pro.0d341b38.js
similarity index 90%
rename from public/js/build/pro.8ad1c5f1.js
rename to public/js/build/pro.0d341b38.js
index 0c1e7006f..03348278f 100644
--- a/public/js/build/pro.8ad1c5f1.js
+++ b/public/js/build/pro.0d341b38.js
@@ -1 +1 @@
-import{n as m,l as p}from"./app.818b057c.js";import"./jquery.c87f487f.js";import"./@babel.9410f858.js";import"./dayjs.fd4aa75c.js";import"./localforage.8de7c27e.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./vue.adba9046.js";import"./vuex.cc7cb26e.js";import"./openpgp_hi.15f91b1d.js";import"./axios.37c7f908.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./view-design-hi.24419422.js";import"./html-to-md.f297036e.js";import"./lodash.8fcd6fd4.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vuedraggable.f464b992.js";import"./sortablejs.3488b922.js";import"./vue-resize-observer.5af23a43.js";import"./element-sea.f8a64907.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var e=function(){var r=this,t=r.$createElement,i=r._self._c||t;return i("div")},n=[];const l={mounted(){/^zh/.test(p)?window.location.href=$A.mainUrl("site/zh/price.html"):window.location.href=$A.mainUrl("site/en/price.html")}},o={};var a=m(l,e,n,!1,s,null,null,null);function s(r){for(let t in o)this[t]=o[t]}var it=function(){return a.exports}();export{it as default};
+import{n as m,l as p}from"./app.ef7047f7.js";import"./jquery.6e4daff9.js";import"./@babel.9410f858.js";import"./dayjs.d20a4841.js";import"./localforage.743dffdd.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./vue.adba9046.js";import"./vuex.cc7cb26e.js";import"./openpgp_hi.15f91b1d.js";import"./axios.37c7f908.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./view-design-hi.24419422.js";import"./html-to-md.f297036e.js";import"./lodash.8fcd6fd4.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vuedraggable.f464b992.js";import"./sortablejs.3488b922.js";import"./vue-resize-observer.5af23a43.js";import"./element-sea.f8a64907.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var e=function(){var r=this,t=r.$createElement,i=r._self._c||t;return i("div")},n=[];const l={mounted(){/^zh/.test(p)?window.location.href=$A.mainUrl("site/zh/price.html"):window.location.href=$A.mainUrl("site/en/price.html")}},o={};var a=m(l,e,n,!1,s,null,null,null);function s(r){for(let t in o)this[t]=o[t]}var it=function(){return a.exports}();export{it as default};
diff --git a/public/js/build/project.49d9c7c1.js b/public/js/build/project.49d9c7c1.js
new file mode 100644
index 000000000..024c8506a
--- /dev/null
+++ b/public/js/build/project.49d9c7c1.js
@@ -0,0 +1,397 @@
+import{m as f,a as I}from"./vuex.cc7cb26e.js";import{l as it}from"./lodash.8fcd6fd4.js";import{D as k}from"./vuedraggable.f464b992.js";import{b as q,T as ot,a as Z,P as rt}from"./add.0e2a5c01.js";import{n as x,h as Q,e as L,V as tt,l as M,U as et,t as st,c as lt,d as ct}from"./app.ef7047f7.js";import{S as at}from"./SearchButton.2a8dd789.js";import{U as dt,D as xt}from"./index.f7653997.js";import{D as ut}from"./DepartmentOwnerView.710b9bb7.js";import"./@babel.9410f858.js";import"./sortablejs.3488b922.js";import"./jquery.6e4daff9.js";import"./dayjs.d20a4841.js";import"./localforage.743dffdd.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./vue.adba9046.js";import"./openpgp_hi.15f91b1d.js";import"./axios.37c7f908.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./view-design-hi.24419422.js";import"./html-to-md.f297036e.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vue-resize-observer.5af23a43.js";import"./element-sea.f8a64907.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var pt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.rowMode?a("Row",{staticClass:"task-add-row"},[a("Col",{class:["row-add",t.active?"active":""],attrs:{span:"12"}},[a("div",{staticClass:"add-input",on:{mouseenter:function(s){t.mouseEnter=!0},mouseleave:function(s){t.mouseEnter=!1}}},[a("Input",{ref:"input",attrs:{type:"textarea",rows:1,autosize:{minRows:1,maxRows:3},maxlength:255,placeholder:t.$L("(*)\u63CF\u8FF0\uFF0C\u56DE\u8F66\u521B\u5EFA",t.$L(t.typeName)),enterkeyhint:"done"},on:{"on-focus":function(s){t.onFocus=!0},"on-blur":function(s){t.onFocus=!1},"on-keydown":t.onKeydown},model:{value:t.addData.name,callback:function(s){t.$set(t.addData,"name",s)},expression:"addData.name"}}),t.parentId==0?a("div",{staticClass:"priority"},[a("ul",t._l(t.taskPriority,function(s,n){return a("li",{key:n},[t.active?a("ETooltip",{attrs:{disabled:t.$isEEUIApp||t.windowTouch,content:t.taskPriorityContent(s)}},[a("i",{staticClass:"taskfont",style:{color:s.color},domProps:{innerHTML:t._s(t.addData.p_name==s.name?"":"")},on:{click:function(i){return t.choosePriority(s)}}})]):t._e()],1)}),0),a("Icon",{attrs:{type:"md-settings"},on:{click:t.onPriority}})],1):t._e()],1),a("div",{staticClass:"add-btn",on:{click:t.openAdd}},[a("Icon",{staticClass:"add-icon",attrs:{type:"md-add"}}),t._v(t._s(t.$L("\u6DFB\u52A0(*)",t.$L(t.typeName)))+" ")],1)]),a("Col",{attrs:{span:"3"}}),a("Col",{attrs:{span:"3"}}),a("Col",{attrs:{span:"3"}}),a("Col",{attrs:{span:"3"}})],1):a("div",{class:["task-add-simple",t.active?"active":""],on:{mouseenter:function(s){t.mouseEnter=!0},mouseleave:function(s){t.mouseEnter=!1}}},[a("Input",{ref:"input",attrs:{type:"textarea",rows:2,autosize:{minRows:2,maxRows:3},maxlength:255,placeholder:t.$L("(*)\u63CF\u8FF0\uFF0C\u56DE\u8F66\u521B\u5EFA",t.$L(t.typeName)),enterkeyhint:"done"},on:{"on-focus":function(s){t.onFocus=!0},"on-blur":function(s){t.onFocus=!1},"on-keydown":t.onKeydown},model:{value:t.addData.name,callback:function(s){t.$set(t.addData,"name",s)},expression:"addData.name"}}),a("div",{staticClass:"add-placeholder",on:{click:t.openAdd}},[a("Icon",{attrs:{type:"md-add"}}),t._v(t._s(t.$L("\u6DFB\u52A0(*)",t.$L(t.typeName)))+" ")],1),a("div",{staticClass:"priority"},[a("ul",t._l(t.taskPriority,function(s,n){return a("li",{key:n},[t.active?a("ETooltip",{attrs:{disabled:t.$isEEUIApp||t.windowTouch,content:t.taskPriorityContent(s)}},[a("i",{staticClass:"taskfont",style:{color:s.color},domProps:{innerHTML:t._s(t.addData.p_name==s.name?"":"")},on:{click:function(i){return t.choosePriority(s)}}})]):t._e()],1)}),0),a("Icon",{attrs:{type:"md-settings"},on:{click:t.onPriority}})],1)],1)},ht=[];const mt={name:"TaskAddSimple",props:{parentId:{type:Number,default:0},projectId:{type:Number,default:0},columnId:{type:Number,default:0},addTop:{type:Boolean,default:!1},autoActive:{type:Boolean,default:!1},rowMode:{type:Boolean,default:!1}},data(){return{loadIng:0,addData:{name:"",owner:0,column_id:0,times:[],subtasks:[],p_level:0,p_name:"",p_color:"",visibility_appoint:1,visibility_appointor:[]},active:!1,onFocus:!1,mouseEnter:!1}},mounted(){this.autoActive&&this.$nextTick(this.openAdd)},computed:{...f(["taskPriority"]),typeName(){return this.parentId>0?"\u5B50\u4EFB\u52A1":"\u4EFB\u52A1"}},watch:{active(t){t||this.$emit("on-close")},mouseEnter(){this.chackClose()},onFocus(){this.chackClose()}},methods:{getData(){var t;return this.parentId>0?{task_id:this.parentId,name:this.addData.name}:(this.addData.project_id=this.projectId||this.$store.state.projectId,this.addData.column_id=this.columnId||((t=this.$store.state.cacheColumns.find(e=>e.project_id===this.addData.project_id))==null?void 0:t.id)||"",this.addData.owner=[this.userId],this.addData.top=this.addTop?1:0,$A.cloneJSON(this.addData))},openAdd(){if(this.windowPortrait){this.defaultPriority(),this.$emit("on-priority",this.getData()),this.$emit("on-close");return}this.active=!0,this.defaultPriority(),this.$nextTick(()=>{this.$refs.input.resizeTextarea(),this.$refs.input.focus()})},chackClose(){this.mouseEnter||this.onFocus||this.addData.name||(this.active=!1)},onPriority(){this.$emit("on-priority",this.getData()),this.active=!1},onKeydown(t){if(t.keyCode===13){if(t.shiftKey)return;t.preventDefault(),this.onAdd()}},onAdd(){if(!this.addData.name){$A.messageWarning("\u8BF7\u8F93\u5165\u4EFB\u52A1\u63CF\u8FF0");return}if(this.loadIng>0)return;this.loadIng++;let t=this.parentId>0?"taskAddSub":"taskAdd";this.$store.dispatch(t,this.getData()).then(({msg:e})=>{$A.messageSuccess(e),this.active=!1,this.addData={name:"",owner:0,column_id:0,times:[],subtasks:[],p_level:0,p_name:"",p_color:"",visibility_appoint:1,visibility_appointor:[]}}).catch(({msg:e})=>{$A.modalError(e)}).finally(()=>{this.loadIng--})},taskPriorityContent(t){let e=$A.runNum(t.days);return e<=0?t.name+" ("+this.$L("\u65E0\u65F6\u95F4\u9650\u5236")+")":t.name+" ("+e+this.$L("[day_unit].\u5929")+")"},choosePriority(t,e=!0){if($A.runNum(t.days)>0){let a=$A.daytz(),s=a.clone().add($A.runNum(t.days),"day");this.$set(this.addData,"times",$A.newDateString([a,s]))}else this.$set(this.addData,"times",[]);this.$set(this.addData,"p_level",t.priority),this.$set(this.addData,"p_name",t.name),this.$set(this.addData,"p_color",t.color),e&&this.$nextTick(()=>{this.$refs.input.focus()})},defaultPriority(){if(this.taskPriority.length===0||this.addData.p_name)return;const t=this.taskPriority.find(e=>e.is_default===1)||this.taskPriority[0];this.choosePriority(t,!1)}}},E={};var ft=x(mt,pt,ht,!1,_t,null,null,null);function _t(t){for(let e in E)this[e]=E[e]}var nt=function(){return ft.exports}(),vt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"task-rows"},[t._l(t.list,function(s,n){return a("div",{key:n,ref:`task_${s.id}`,refInFor:!0,staticClass:"task-item",attrs:{"data-id":`${t.openKey}_${s.id}`}},[a("Row",{staticClass:"task-row",style:t.$A.generateColorVarStyle(s.flow_item_color,[10],"flow-item-custom-color",t.taskItemStyle(s))},[t.taskItemVisible(`${t.openKey}_${s.id}`)?[s.p_name?a("em",{staticClass:"priority-color",style:{backgroundColor:s.p_color}}):t._e(),a("Col",{class:["row-name",s.complete_at?"complete":""],attrs:{span:"12"}},[s.sub_num>0&&s.sub_top!==!0||s.parent_id===0&&t.fastAddTask?a("Icon",{class:["sub-icon",t.taskOpen[s.id]?"active":""],attrs:{type:"ios-arrow-forward"},on:{click:function(i){return t.getSublist(s)}}}):t._e(),t.readonly?t._e():a("TaskMenu",{ref:`taskMenu_${s.id}`,refInFor:!0,attrs:{task:s}}),a("div",{staticClass:"item-title",on:{click:function(i){return t.openTask(s)}}},[s.flow_item_name?a("span",{class:s.flow_item_status,on:{click:function(i){i.stopPropagation(),!t.readonly&&t.openMenu(i,s)}}},[t._v(t._s(s.flow_item_name))]):t._e(),s.sub_top===!0?a("span",[t._v(t._s(t.$L("\u5B50\u4EFB\u52A1")))]):t._e(),s.sub_my&&s.sub_my.length>0?a("span",[t._v("+"+t._s(s.sub_my.length))]):t._e(),t._v(" "+t._s(s.name)+" ")]),a("div",{staticClass:"item-icons",on:{click:function(i){return t.openTask(s)}}},[s.desc?a("div",{staticClass:"item-icon"},[a("i",{staticClass:"taskfont"},[t._v("\uE71A")])]):t._e(),s.file_num>0?a("div",{staticClass:"item-icon"},[a("i",{staticClass:"taskfont"},[t._v("\uE71C")]),a("em",[t._v(t._s(s.file_num))])]):t._e(),s.msg_num>0?a("div",{staticClass:"item-icon"},[a("i",{staticClass:"taskfont"},[t._v("\uE71E")]),a("em",[t._v(t._s(s.msg_num))])]):t._e(),s.sub_num>0?a("div",{staticClass:"item-icon",on:{click:function(i){return i.stopPropagation(),t.getSublist(s)}}},[a("i",{staticClass:"taskfont"},[t._v("\uE71F")]),a("em",[t._v(t._s(s.sub_complete)+"/"+t._s(s.sub_num))])]):t._e()])],1),a("Col",{staticClass:"row-column",attrs:{span:"3"}},[a("EDropdown",{attrs:{trigger:"click",size:"small",placement:"bottom",disabled:t.readonly||s.sub_top===!0},on:{command:function(i){return t.dropTask(s,i)}}},[a("div",{staticClass:"task-column"},[t._v(t._s(t.columnName(s.column_id)))]),a("EDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},t._l(t.columnList(s.project_id),function(i){return a("EDropdownItem",{key:i.id,attrs:{command:"column::"+i.id}},[t._v(" "+t._s(i.name)+" ")])}),1)],1)],1),a("Col",{staticClass:"row-priority",attrs:{span:"3"}},[a("EDropdown",{attrs:{trigger:"click",size:"small",placement:"bottom",disabled:t.readonly||s.sub_top===!0},on:{command:function(i){return t.dropTask(s,i)}}},[a("TaskPriority",{attrs:{backgroundColor:s.p_color}},[t._v(t._s(s.p_name||t.$L("\u672A\u8BBE\u7F6E")))]),a("EDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},t._l(t.taskPriority,function(i,o){return a("EDropdownItem",{key:o,attrs:{command:"priority::"+o}},[a("i",{staticClass:"taskfont",style:{color:i.color},domProps:{innerHTML:t._s(i.p_name==i.name?"":"")}}),t._v(" "+t._s(i.name)+" ")])}),1)],1)],1),a("Col",{staticClass:"row-user",attrs:{span:"3"}},[a("ul",{on:{click:function(i){return t.openTask(s)}}},[t._l(t.ownerUser(s.task_user),function(i,o){return o<3?a("li",{key:o},[a("UserAvatar",{attrs:{userid:i.userid,size:"32",borderWidth:2,borderColor:s.color,showName:t.ownerUser(s.task_user).length===1}})],1):t._e()}),!t.readonly&&t.ownerUser(s.task_user).length===0?a("li",{staticClass:"no-owner"},[a("Button",{attrs:{type:"primary",size:"small"},on:{click:function(i){return i.stopPropagation(),t.openTask(s,!0)}}},[t._v(t._s(t.$L("\u9886\u53D6\u4EFB\u52A1")))])],1):t._e()],2)]),a("Col",{staticClass:"row-time",attrs:{span:"3"}},[!s.complete_at&&s.end_at?a("ETooltip",{class:["task-time",s.today?"today":"",s.overdue?"overdue":""],attrs:{disabled:t.$isEEUIApp||t.windowTouch,"open-delay":600,content:s.end_at}},[a("div",{on:{click:function(i){return t.openTask(s)}}},[t._v(t._s(t.expiresFormat(s.end_at)))])]):t.showCompleteAt&&s.complete_at?a("div",{attrs:{title:s.complete_at}},[t._v(t._s(t.completeAtFormat(s.complete_at)))]):t._e()],1)]:t._e()],2),t.taskOpen[s.id]===!0?a("TaskRow",{attrs:{list:t.subTask(s.id),"parent-id":s.id,"fast-add-task":!t.readonly&&s.parent_id===0&&t.fastAddTask,"open-key":t.openKey,readonly:t.readonly},on:{command:t.dropTask}}):t._e()],1)}),!t.readonly&&(t.fastAddTask||t.parentId>0)?a("TaskAddSimple",{attrs:{"parent-id":t.parentId,"row-mode":""},on:{"on-priority":t.onPriority}}):t._e()],2)},gt=[];const kt={name:"TaskRow",components:{TaskMenu:Q,TaskAddSimple:nt,TaskPriority:q},props:{list:{type:Array,default:()=>[]},parentId:{type:Number,default:0},fastAddTask:{type:Boolean,default:!1},openKey:{type:String,default:"default"},showCompleteAt:{type:Boolean,default:!1},taskVisibilitys:{type:Object,default:()=>({})},readonly:{type:Boolean,default:!1}},data(){return{nowTime:$A.dayjs().unix(),nowInterval:null,taskLoad:{},taskOpen:{}}},mounted(){this.nowInterval=setInterval(()=>{this.nowTime=$A.dayjs().unix()},1e3)},destroyed(){clearInterval(this.nowInterval)},computed:{...f(["cacheTasks","taskPriority","cacheColumns","taskLatestId"]),subTask(){return function(t){return this.cacheTasks.filter(e=>e.archived_at?!1:e.parent_id==t).sort((e,a)=>e.id-a.id)}}},watch:{taskLatestId(t){setTimeout(()=>{$A.scrollIntoAndShake(this.$refs[`task_${t}`])},300)}},methods:{columnName(t){const e=this.cacheColumns.find(({id:a})=>a==t);return e?e.name:""},dropTask(t,e){if(this.readonly)return;const a=this.$refs[`taskMenu_${t.id}`];if(!!a){if($A.leftExists(e,"column::")){a[0].updateTask({column_id:$A.leftDelete(e,"column::")});return}if($A.leftExists(e,"priority::")){let s=this.taskPriority[parseInt($A.leftDelete(e,"priority::"))];s&&a[0].updateTask({p_level:s.priority,p_name:s.name,p_color:s.color})}}},onPriority(t){this.readonly||this.$emit("on-priority",t)},getSublist(t){if(t.sub_top===!0){this.openTask(t);return}if(this.taskOpen[t.id]===!0){this.$set(this.taskOpen,t.id,!1);return}this.taskLoad[t.id]!==!0&&(this.$set(this.taskLoad,t.id,!0),this.$store.dispatch("getTaskForParent",t.id).then(()=>{this.$set(this.taskLoad,t.id,!1),this.$set(this.taskOpen,t.id,!0)}).catch(({msg:e})=>{$A.modalError(e),this.$set(this.taskLoad,t.id,!1)}))},columnList(t){return this.cacheColumns.filter(({project_id:e})=>e==t)},openTask(t,e){this.$store.dispatch("openTask",t),!this.readonly&&e===!0&&setTimeout(()=>{L.emit("receiveTask",!0)},300)},openMenu(t,e){if(this.readonly)return;const a=this.$refs[`taskMenu_${e.id}`];a&&a[0].handleClick(t)},ownerUser(t){return t.filter(({owner:e})=>e==1).sort((e,a)=>e.id-a.id)},expiresFormat(t){return $A.countDownFormat(this.nowTime,t)},completeAtFormat(t){let e=$A.dayjs(t);return $A.daytz().year()===e.year()?e.format("MM-DD HH:mm"):e.format("YYYY-MM-DD")},taskItemVisible(t){var e;return this.parentId>0||((e=this.taskVisibilitys[t])==null?void 0:e.visible)},taskItemStyle({id:t,color:e}){var n;const a={};e&&(a.backgroundColor=e,a.borderBottomColor=e);const s=`${this.openKey}_${t}`;return this.taskItemVisible(s)||(a.height=(((n=this.taskVisibilitys[s])==null?void 0:n.height)||49)+"px"),a}}},F={};var yt=x(kt,vt,gt,!1,$t,null,null,null);function $t(t){for(let e in F)this[e]=F[e]}var wt=function(){return yt.exports}(),bt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"task-archived"},[a("div",{staticClass:"archived-title"},[t._v(" "+t._s(t.$L("\u5F52\u6863\u7684\u4EFB\u52A1"))+" "),a("div",{staticClass:"title-icon"},[t.loadIng>0?a("Loading"):t._e()],1)]),a("div",{staticClass:"search-container lr"},[a("ul",[a("li",[a("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u5173\u952E\u8BCD"))+" ")]),a("div",{staticClass:"search-content"},[a("Input",{attrs:{placeholder:t.$L("ID\u3001\u540D\u79F0\u3001\u63CF\u8FF0..."),clearable:""},model:{value:t.keys.name,callback:function(s){t.$set(t.keys,"name",s)},expression:"keys.name"}})],1)]),a("li",[a("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u4EFB\u52A1\u72B6\u6001"))+" ")]),a("div",{staticClass:"search-content"},[a("Select",{attrs:{placeholder:t.$L("\u5168\u90E8")},model:{value:t.keys.status,callback:function(s){t.$set(t.keys,"status",s)},expression:"keys.status"}},[a("Option",{attrs:{value:""}},[t._v(t._s(t.$L("\u5168\u90E8")))]),t.flows.type==="group"?t._l(t.flows.groups,function(s,n){return a("OptionGroup",{key:n,attrs:{label:s.label}},t._l(s.items,function(i,o){return a("Option",{key:o,attrs:{value:i.id,label:i.name}},[a("div",{staticClass:"tag-dot",class:i.status,style:t.$A.generateColorVarStyle(i.color,[],"flow-item-custom-color")},[t._v(t._s(i.name))])])}),1)}):t._l(t.flows.items,function(s,n){return a("Option",{key:n,attrs:{value:s.id,label:s.name}},[a("div",{staticClass:"tag-dot",class:s.status,style:t.$A.generateColorVarStyle(s.color,[],"flow-item-custom-color")},[t._v(t._s(s.name))])])})],2)],1)]),a("li",[a("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u4EFB\u52A1\u6807\u7B7E"))+" ")]),a("div",{staticClass:"search-content"},[a("Select",{attrs:{placeholder:t.$L("\u5168\u90E8")},model:{value:t.keys.tag,callback:function(s){t.$set(t.keys,"tag",s)},expression:"keys.tag"}},[a("Option",{attrs:{value:""}},[t._v(t._s(t.$L("\u5168\u90E8")))]),t._l(t.tags,function(s){return a("Option",{key:s.id,attrs:{value:s.name,label:s.name}},[a("div",{staticClass:"tag-dot",style:{"--bg-color":s.color}},[t._v(" "+t._s(s.name)+" ")])])})],2)],1)]),a("li",{staticClass:"search-button"},[a("SearchButton",{attrs:{loading:t.loadIng>0,filtering:t.keyIs,placement:"right"},on:{search:t.onSearch,refresh:t.getLists,cancelFilter:function(s){t.keyIs=!1}}})],1)])]),a("div",{staticClass:"table-page-box"},[a("Table",{attrs:{columns:t.columns,data:t.list,loading:t.loadIng>0,"no-data-text":t.$L(t.noText),stripe:""}}),a("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)])},Tt=[];const Ct={name:"TaskArchived",components:{SearchButton:at},props:{projectId:{type:Number,default:0}},data(){return{loadIng:0,keys:{},keyIs:!1,columns:[{title:"ID",key:"id",width:80,render:(t,{row:e,column:a})=>t("TableAction",{props:{column:a,align:"left"}},[t("div",e.id)])},{title:this.$L("\u4EFB\u52A1\u540D\u79F0"),key:"name",minWidth:200,render:(t,{row:e})=>t("AutoTip",{on:{"on-click":()=>{this.$store.dispatch("openTask",e)}}},e.name)},{title:this.$L("\u4EFB\u52A1\u72B6\u6001"),key:"status",minWidth:100,render:(t,{row:e})=>{let a=e.flow_item_name;return a&&a.indexOf("|")!==-1?[,a]=a.split("|"):e.complete_at?a=this.$L("\u5DF2\u5B8C\u6210"):a=this.$L("\u672A\u5B8C\u6210"),t("AutoTip",a)}},{title:this.$L("\u4EFB\u52A1\u6807\u7B7E"),key:"tags",minWidth:100,render:(t,{row:e})=>e.task_tag.length==0?t("div","-"):t("AutoTip",e.task_tag.map(({name:a})=>a).join("\u3001"))},{title:this.$L("\u5B8C\u6210\u65F6\u95F4"),key:"complete_at",width:168,render:(t,{row:e})=>t("div",{style:{color:e.complete_at?"":"#f00"}},e.complete_at||this.$L("\u672A\u5B8C\u6210"))},{title:this.$L("\u5F52\u6863\u65F6\u95F4"),key:"archived_at",width:168},{title:this.$L("\u5F52\u6863\u4EBA\u5458"),key:"archived_userid",minWidth:100,render:(t,{row:e})=>e.archived_userid?t("UserAvatar",{props:{userid:e.archived_userid,size:24,showName:!0}}):t("Tag",this.$L("\u7CFB\u7EDF\u81EA\u52A8"))},{title:this.$L("\u64CD\u4F5C"),align:"center",width:120,render:(t,e)=>{if(this.cacheTasks.find(s=>s.id==e.row.id&&!s.archived_at))return t("div",{style:{color:"#888"}},this.$L("\u5DF2\u8FD8\u539F"));const a=[t("span",{style:{fontSize:"13px",cursor:"pointer",color:"#84C56A"},on:{click:()=>{this.$store.dispatch("openTask",e.row)}}},this.$L("\u67E5\u770B")),t("Poptip",{props:{title:e.row.__restorePoptipTitle,confirm:!0,transfer:!0,placement:"left",okText:this.$L("\u786E\u5B9A"),cancelText:this.$L("\u53D6\u6D88"),value:e.row.__restorePoptipShow,width:220},style:{marginLeft:"6px",fontSize:"13px",cursor:"pointer",color:"#84C56A"},on:{"on-ok":()=>{this.recovery(e.row)},"on-popper-hide":()=>{e.row.__restorePoptipLoadIng=!1,e.row.__restorePoptipTitle=this.$L("\u4F60\u786E\u5B9A\u8981\u8FD8\u539F\u5F52\u6863\u5417\uFF1F"),e.row.__restorePoptipShow=!1}}},[t("span",{on:{click:s=>{s.stopPropagation(),e.row.__restorePoptipLoadIng=!0,this.$store.dispatch("call",{url:"project/column/one",data:{column_id:e.row.column_id,deleted:"all"}}).then(({data:n})=>{n.deleted_at&&(e.row.__restorePoptipTitle=this.$L("\u68C0\u6D4B\u5230\u6240\u5C5E\u7684\u4EFB\u52A1\u5217\u8868\u5DF2\u88AB\u5220\u9664\uFF0C\u8BE5\u64CD\u4F5C\u5C06\u4F1A\u8FD8\u539F\u4EFB\u52A1\u5217\u8868\uFF0C\u4F60\u786E\u5B9A\u8981\u8FD8\u539F\u5F52\u6863\u5417\uFF1F")),e.row.__restorePoptipShow=!0}).catch(({msg:n})=>{$A.modalError({content:n})}).finally(n=>{e.row.__restorePoptipLoadIng=!1})}}},[e.row.__restorePoptipLoadIng?t("Loading",{style:{width:"26px",height:"15px"}}):this.$L("\u8FD8\u539F")])]),t("Poptip",{props:{title:this.$L("\u4F60\u786E\u5B9A\u8981\u5220\u9664\u4EFB\u52A1\u5417\uFF1F"),confirm:!0,transfer:!0,placement:"left",okText:this.$L("\u786E\u5B9A"),cancelText:this.$L("\u53D6\u6D88")},style:{marginLeft:"6px",fontSize:"13px",cursor:"pointer",color:"#f00"},on:{"on-ok":()=>{this.delete(e.row)}}},this.$L("\u5220\u9664"))];return t("TableAction",{props:{column:e.column}},a)}}],list:[],flowList:[],tags:[],page:1,pageSize:20,total:0,noText:""}},mounted(){this.getFlowData(),this.getTagData()},computed:{...f(["cacheTasks"]),flows({flowList:t}){const e=[];t.forEach(s=>{s.project_flow_item.forEach(n=>{const i=t.length>1?s.name+" - "+n.name:n.name;e.push({...n,id:"flow-"+n.id,label:i})})});const a=[{id:"completed",name:this.$L("\u5DF2\u5B8C\u6210"),status:"completed",label:this.$L("\u5DF2\u5B8C\u6210")},{id:"uncompleted",name:this.$L("\u672A\u5B8C\u6210"),status:"uncompleted",label:this.$L("\u672A\u5B8C\u6210")}];return e.length>0?{type:"group",groups:[{label:this.$L("\u6309\u5DE5\u4F5C\u6D41"),items:e},{label:this.$L("\u6309\u72B6\u6001"),items:a}]}:{type:"normal",items:a}}},watch:{projectId:{handler(){this.getLists()},immediate:!0},keyIs(t){t||(this.keys={},this.setPage(1))}},methods:{onSearch(){this.page=1,this.getLists()},async getFlowData(){let t=[];const e=this.projectId;try{const{data:a}=await this.$store.dispatch("call",{url:"project/flow/list",data:{project_id:e}});t=a||[]}catch{t=[]}e===this.projectId&&(this.flowList=t)},async getTagData(){let t=[];const e=this.projectId;try{const{data:a}=await this.$store.dispatch("call",{url:"project/tag/list",data:{project_id:e}});t=a||[]}catch{t=[]}e===this.projectId&&(this.tags=t)},getLists(){!this.projectId||(this.loadIng++,this.keyIs=$A.objImplode(this.keys)!="",this.$store.dispatch("call",{url:"project/task/lists",data:{keys:this.keys,project_id:this.projectId,parent_id:-1,archived:"yes",sorts:{archived_at:"desc"},page:Math.max(this.page,1),pagesize:Math.max($A.runNum(this.pageSize),10)}}).then(({data:t})=>{this.page=t.current_page,this.total=t.total,this.list=t.data.map(e=>(e.__restorePoptipLoadIng=!1,e.__restorePoptipTitle=this.$L("\u4F60\u786E\u5B9A\u8981\u8FD8\u539F\u5F52\u6863\u5417\uFF1F"),e.__restorePoptipShow=!1,e)),this.noText="\u6CA1\u6709\u76F8\u5173\u7684\u6570\u636E"}).catch(()=>{this.noText="\u6570\u636E\u52A0\u8F7D\u5931\u8D25"}).finally(t=>{this.loadIng--}))},setPage(t){this.page=t,this.getLists()},setPageSize(t){this.page=1,this.pageSize=t,this.getLists()},recovery(t){this.list=this.list.filter(({id:e})=>e!=t.id),this.loadIng++,this.$store.dispatch("archivedTask",{task_id:t.id,type:"recovery"}).then(({msg:e})=>{$A.messageSuccess(e),this.loadIng--,this.getLists(),this.$store.dispatch("openTask",t)}).catch(({msg:e})=>{$A.modalError(e),this.loadIng--,this.getLists()})},delete(t){this.list=this.list.filter(({id:e})=>e!=t.id),this.loadIng++,this.$store.dispatch("removeTask",{task_id:t.id}).then(({msg:e})=>{$A.messageSuccess(e),this.loadIng--,this.getLists()}).catch(({msg:e})=>{$A.modalError(e),this.loadIng--,this.getLists()})}}},O={};var Dt=x(Ct,bt,Tt,!1,jt,null,null,null);function jt(t){for(let e in O)this[e]=O[e]}var Lt=function(){return Dt.exports}(),It=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"project-task-template"},[a("div",{staticClass:"header"},[a("div",{staticClass:"title"},[t._v(" "+t._s(t.$L("\u4EFB\u52A1\u6807\u7B7E"))+" "),t.loadIng>0?a("Loading"):t.tags.length>0?[t._v("("+t._s(t.tags.length)+")")]:t._e()],2),a("div",{staticClass:"actions"},[t.canSortTags&&t.tags.length?a("Button",{attrs:{type:t.sortMode?"primary":"default",loading:t.sortLoading,icon:"md-move"},on:{click:t.toggleSortMode}},[t._v(" "+t._s(t.$L(t.sortMode?"\u5B8C\u6210\u6392\u5E8F":"\u8C03\u6574\u6392\u5E8F"))+" ")]):t._e(),a("Button",{attrs:{type:"primary",icon:"md-add"},on:{click:function(s){return t.handleAdd(null)}}},[t._v(" "+t._s(t.$L("\u65B0\u5EFA\u6807\u7B7E"))+" ")])],1)]),a("div",{staticClass:"content"},[t.tags.length?a("Draggable",{staticClass:"template-list",attrs:{tag:"div",list:t.tags,animation:150,disabled:!t.canSortTags||!t.sortMode||t.sortLoading,"item-key":"id",handle:".tag-drag-handle"},on:{end:t.handleSortEnd}},t._l(t.tags,function(s){return a("div",{key:s.id,staticClass:"tag-item",class:{"is-sorting":t.sortMode&&t.canSortTags}},[t.sortMode&&t.canSortTags?a("div",{staticClass:"tag-drag-handle",attrs:{title:t.$L("\u62D6\u62FD\u8C03\u6574\u6392\u5E8F")}},[a("Icon",{attrs:{type:"md-menu"}})],1):t._e(),a("div",{staticClass:"tag-contents"},[a("div",{staticClass:"tag-title"},[a("Tags",{attrs:{tags:s}})],1),s.desc?a("div",{staticClass:"tag-desc"},[t._v(t._s(s.desc))]):t._e()]),a("div",{staticClass:"tag-actions"},[s.userid===t.userId||t.isProjectOwner?a("div",{staticClass:"tag-actions-btns"},[a("Button",{attrs:{disabled:t.sortMode,type:"primary"},on:{click:function(n){return t.handleAdd(s)}}},[t._v(" "+t._s(t.$L("\u7F16\u8F91"))+" ")]),a("Button",{attrs:{disabled:t.sortMode,type:"error"},on:{click:function(n){return t.handleDelete(s)}}},[t._v(" "+t._s(t.$L("\u5220\u9664"))+" ")])],1):t._e(),a("div",{staticClass:"tag-actions-owner"},[s.userid!==t.userId?a("UserAvatar",{attrs:{title:t.$L("\u521B\u5EFA\u4EBA"),userid:s.userid,"show-name":"","show-icon":!1,size:16}}):t._e(),a("span",{attrs:{title:t.$L("\u521B\u5EFA\u65F6\u95F4")}},[t._v(t._s(s.created_at))])],1)])])}),0):a("div",{staticClass:"empty"},[a("div",{staticClass:"empty-text"},[t._v(t._s(t.$L("\u5F53\u524D\u9879\u76EE\u6682\u65E0\u4EFB\u52A1\u6807\u7B7E")))]),a("Button",{attrs:{type:"primary",icon:"md-add"},on:{click:function(s){return t.handleAdd(null)}}},[t._v(t._s(t.$L("\u65B0\u5EFA\u6807\u7B7E")))])],1)],1),a("TaskTagAdd",{ref:"addTag",attrs:{"project-id":t.projectId},on:{"on-save":t.getTagData,"on-save-error":t.getTagData}})],1)},St=[];const At={name:"ProjectTaskTag",components:{TaskTagAdd:ot,Tags:Z,Draggable:k},props:{projectId:{type:[Number,String],required:!0}},data(){return{loadIng:0,tags:[],sortMode:!1,sortLoading:!1}},computed:{...I(["projectData"]),isProjectOwner(){return this.projectData&&this.projectData.owner_userid===this.userId},canSortTags(){return this.isProjectOwner}},created(){this.getTagData()},methods:{async getTagData(){this.loadIng++;try{const{data:t}=await this.$store.dispatch("call",{url:"project/tag/list",data:{project_id:this.projectId},spinner:3e3});this.tags=t||[]}catch({msg:t}){$A.messageError(t||"\u52A0\u8F7D\u6807\u7B7E\u5931\u8D25")}finally{this.loadIng--}},toggleSortMode(){!this.canSortTags||this.sortLoading||(this.sortMode=!this.sortMode)},async handleSortEnd(t){if(!this.sortMode||!this.canSortTags||t&&t.oldIndex===t.newIndex)return;const e=this.tags.map(a=>a.id);if(!!e.length){this.sortLoading=!0;try{const{msg:a}=await this.$store.dispatch("call",{url:"project/tag/sort",method:"post",data:{project_id:this.projectId,list:e},spinner:2e3});$A.messageSuccess(a||"\u6392\u5E8F\u5DF2\u4FDD\u5B58"),await this.getTagData()}catch({msg:a}){$A.messageError(a||"\u6392\u5E8F\u4FDD\u5B58\u5931\u8D25"),await this.getTagData()}finally{this.sortLoading=!1}}},handleAdd(t){this.$refs.addTag.onOpen(t)},async handleDelete(t){$A.modalConfirm({title:"\u786E\u8BA4\u5220\u9664",content:"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6807\u7B7E\u5417\uFF1F",onOk:async()=>{this.loadIng++;try{const{msg:e}=await this.$store.dispatch("call",{url:"project/tag/delete",data:{id:t.id},spinner:3e3});$A.messageSuccess(e||"\u5220\u9664\u6210\u529F"),await this.getTagData()}catch({msg:e}){$A.messageError(e||"\u5220\u9664\u5931\u8D25")}finally{this.loadIng--}}})}}},R={};var Pt=x(At,It,St,!1,Mt,null,null,null);function Mt(t){for(let e in R)this[e]=R[e]}var Et=function(){return Pt.exports}(),D={zh:[{name:"\u901A\u7528\u4EFB\u52A1",title:"xxxx \u4EFB\u52A1",content:`\u63CF\u8FF0\uFF1Axxxx
+\u6E05\u5355\uFF1Axxxx`},{name:"\u4EA7\u54C1\u9700\u6C42",title:"xxxx \u529F\u80FD\u9700\u6C42/\u4EA7\u54C1\u4EFB\u52A1",content:`\u80CC\u666F\uFF1Axxxx
+\u76EE\u6807\uFF1Axxxx
+\u6E05\u5355\uFF1Axxxx`},{name:"\u6280\u672F\u4EFB\u52A1",title:"xxxx \u5F00\u53D1\u4EFB\u52A1/\u6280\u672F\u4F18\u5316\u4EFB\u52A1",content:`\u80CC\u666F\uFF1Axxxx
+\u6280\u672F\u76EE\u6807\uFF1Axxxx
+\u4EFB\u52A1\u6E05\u5355\uFF1Axxxx`},{name:"\u8FD0\u8425\u4EFB\u52A1",title:"xxxx \u6D3B\u52A8\u7B56\u5212/\u8FD0\u8425\u4EFB\u52A1",content:`\u80CC\u666F\uFF1Axxxx
+\u6D3B\u52A8\u65B9\u6848\uFF1Axxxx
+\u6570\u636E\u6307\u6807\uFF1Axxxx
+\u4EFB\u52A1\u6E05\u5355\uFF1Axxxx`},{name:"\u5E02\u573A\u63A8\u5E7F",title:"xxxx \u63A8\u5E7F\u4EFB\u52A1/\u54C1\u724C\u6D3B\u52A8",content:`\u80CC\u666F\uFF1Axxxx
+\u63A8\u5E7F\u65B9\u6848\uFF1Axxxx
+\u6570\u636E\u6307\u6807\uFF1Axxxx
+\u4EFB\u52A1\u6E05\u5355\uFF1Axxxx`},{name:"\u8BBE\u8BA1\u4EFB\u52A1",title:"xxxx \u8BBE\u8BA1\u4EFB\u52A1",content:`\u80CC\u666F\uFF1Axxxx
+\u8BBE\u8BA1\u8981\u6C42\uFF1Axxxx
+\u4EFB\u52A1\u6E05\u5355\uFF1Axxxx
+\u76F8\u5173\u8D44\u6E90\uFF1Axxxx`},{name:"\u4EBA\u529B\u8D44\u6E90",title:"xxxx \u62DB\u8058\u4EFB\u52A1/\u57F9\u8BAD\u4EFB\u52A1",content:`\u76EE\u6807\uFF1Axxxx
+\u5185\u5BB9\uFF1Axxxx
+\u4EFB\u52A1\u6E05\u5355\uFF1Axxxx`},{name:"\u8D22\u52A1\u4EFB\u52A1",title:"xxxx \u9884\u7B97\u5BA1\u6279/\u62A5\u9500\u4EFB\u52A1",content:`\u80CC\u666F\uFF1Axxxx
+\u5BA1\u6279\u6D41\u7A0B\uFF1Axxxx
+\u62A5\u9500\u6E05\u5355\uFF1Axxxx`},{name:"\u9500\u552E\u4EFB\u52A1",title:"xxxx \u9500\u552E\u8DDF\u8FDB\u4EFB\u52A1",content:`\u5BA2\u6237\u4FE1\u606F\uFF1Axxxx
+\u9500\u552E\u76EE\u6807\uFF1Axxxx
+\u4EFB\u52A1\u6E05\u5355\uFF1Axxxx`},{name:"\u5BA2\u6237\u652F\u6301",title:"xxxx \u5BA2\u6237\u95EE\u9898\u5904\u7406\u4EFB\u52A1",content:`\u5BA2\u6237\u95EE\u9898\uFF1Axxxx
+\u4F18\u5148\u7EA7\uFF1Axxxx
+\u89E3\u51B3\u65B9\u6848\uFF1Axxxx
+\u4EFB\u52A1\u6E05\u5355\uFF1Axxxx`},{name:"\u5185\u5BB9\u521B\u4F5C",title:"xxxx \u5185\u5BB9\u521B\u4F5C\u4EFB\u52A1",content:`\u4E3B\u9898\uFF1Axxxx
+\u76EE\u6807\uFF1Axxxx
+\u4EFB\u52A1\u6E05\u5355\uFF1Axxxx`},{name:"\u6CD5\u5F8B\u4E8B\u52A1",title:"xxxx \u5408\u540C\u5BA1\u6838/\u6CD5\u5F8B\u4EFB\u52A1",content:`\u5408\u540C\u80CC\u666F\uFF1Axxxx
+\u5BA1\u6838\u91CD\u70B9\uFF1Axxxx
+\u4EFB\u52A1\u6E05\u5355\uFF1Axxxx`},{name:"\u5B66\u4E60\u8BA1\u5212",title:"xxxx \u5B66\u4E60\u8BA1\u5212\u4EFB\u52A1",content:`\u5B66\u4E60\u76EE\u6807\uFF1Axxxx
+\u5B66\u4E60\u8D44\u6E90\uFF1Axxxx
+\u4EFB\u52A1\u6E05\u5355\uFF1Axxxx`},{name:"\u9879\u76EE\u7BA1\u7406",title:"xxxx \u9879\u76EE\u7BA1\u7406\u4EFB\u52A1",content:`\u9879\u76EE\u80CC\u666F\uFF1Axxxx
+\u4EFB\u52A1\u6E05\u5355\uFF1Axxxx
+\u72B6\u6001\uFF1Axxxx`},{name:"\u6D4B\u8BD5\u4EFB\u52A1",title:"xxxx \u6D4B\u8BD5\u4EFB\u52A1",content:`\u6D4B\u8BD5\u76EE\u6807\uFF1Axxxx
+\u6D4B\u8BD5\u8303\u56F4\uFF1Axxxx
+\u6D4B\u8BD5\u7528\u4F8B\uFF1Axxxx
+\u95EE\u9898\u8BB0\u5F55\uFF1Axxxx`},{name:"\u6570\u636E\u5206\u6790",title:"xxxx \u6570\u636E\u5206\u6790\u4EFB\u52A1",content:`\u5206\u6790\u76EE\u6807\uFF1Axxxx
+\u6570\u636E\u6765\u6E90\uFF1Axxxx
+\u5206\u6790\u65B9\u6CD5\uFF1Axxxx
+\u7ED3\u8BBA\u4E0E\u5EFA\u8BAE\uFF1Axxxx`},{name:"\u4F9B\u5E94\u94FE\u7BA1\u7406",title:"xxxx \u4F9B\u5E94\u94FE\u4EFB\u52A1",content:`\u4EFB\u52A1\u76EE\u6807\uFF1Axxxx
+\u4F9B\u5E94\u5546\u4FE1\u606F\uFF1Axxxx
+\u4EFB\u52A1\u6E05\u5355\uFF1Axxxx`},{name:"\u5B89\u5168\u68C0\u67E5",title:"xxxx \u5B89\u5168\u68C0\u67E5\u4EFB\u52A1",content:`\u68C0\u67E5\u8303\u56F4\uFF1Axxxx
+\u68C0\u67E5\u6807\u51C6\uFF1Axxxx
+\u95EE\u9898\u8BB0\u5F55\uFF1Axxxx
+\u6574\u6539\u8BA1\u5212\uFF1Axxxx`},{name:"\u884C\u653F\u4E8B\u52A1",title:"xxxx \u884C\u653F\u4EFB\u52A1",content:`\u4EFB\u52A1\u63CF\u8FF0\uFF1Axxxx
+\u8D1F\u8D23\u4EBA\uFF1Axxxx
+\u4EFB\u52A1\u6E05\u5355\uFF1Axxxx`}],"zh-CHT":[{name:"\u901A\u7528\u4EFB\u52D9",title:"xxxx \u4EFB\u52D9",content:`\u63CF\u8FF0\uFF1Axxxx
+\u6E05\u55AE\uFF1Axxxx`},{name:"\u7522\u54C1\u9700\u6C42",title:"xxxx \u4EFB\u52D9",content:`\u80CC\u666F\uFF1Axxxx
+\u76EE\u6A19\uFF1Axxxx
+\u6E05\u55AE\uFF1Axxxx`},{name:"\u6280\u8853\u4EFB\u52D9",title:"xxxx \u4EFB\u52D9",content:`\u80CC\u666F\uFF1Axxxx
+\u6280\u8853\u76EE\u6A19\uFF1Axxxx
+\u4EFB\u52D9\u6E05\u55AE\uFF1Axxxx`},{name:"\u904B\u71DF\u4EFB\u52D9",title:"xxxx \u4EFB\u52D9",content:`\u80CC\u666F\uFF1Axxxx
+\u6D3B\u52D5\u65B9\u6848\uFF1Axxxx
+\u6578\u64DA\u6307\u6A19\uFF1Axxxx
+\u4EFB\u52D9\u6E05\u55AE\uFF1Axxxx`},{name:"\u5E02\u5834\u63A8\u5EE3",title:"xxxx \u4EFB\u52D9",content:`\u80CC\u666F\uFF1Axxxx
+\u63A8\u5EE3\u65B9\u6848\uFF1Axxxx
+\u6578\u64DA\u6307\u6A19\uFF1Axxxx
+\u4EFB\u52D9\u6E05\u55AE\uFF1Axxxx`},{name:"\u8A2D\u8A08\u4EFB\u52D9",title:"xxxx \u4EFB\u52D9",content:`\u80CC\u666F\uFF1Axxxx
+\u8A2D\u8A08\u8981\u6C42\uFF1Axxxx
+\u4EFB\u52D9\u6E05\u55AE\uFF1Axxxx
+\u76F8\u95DC\u8CC7\u6E90\uFF1Axxxx`},{name:"\u4EBA\u529B\u8CC7\u6E90",title:"xxxx \u4EFB\u52D9",content:`\u76EE\u6A19\uFF1Axxxx
+\u5167\u5BB9\uFF1Axxxx
+\u4EFB\u52D9\u6E05\u55AE\uFF1Axxxx`},{name:"\u8CA1\u52D9\u4EFB\u52D9",title:"xxxx \u4EFB\u52D9",content:`\u80CC\u666F\uFF1Axxxx
+\u5BE9\u6279\u6D41\u7A0B\uFF1Axxxx
+\u5831\u92B7\u6E05\u55AE\uFF1Axxxx`},{name:"\u92B7\u552E\u4EFB\u52D9",title:"xxxx \u4EFB\u52D9",content:`\u5BA2\u6236\u4FE1\u606F\uFF1Axxxx
+\u92B7\u552E\u76EE\u6A19\uFF1Axxxx
+\u4EFB\u52D9\u6E05\u55AE\uFF1Axxxx`},{name:"\u5BA2\u6236\u652F\u6301",title:"xxxx \u4EFB\u52D9",content:`\u5BA2\u6236\u554F\u984C\uFF1Axxxx
+\u512A\u5148\u7D1A\uFF1Axxxx
+\u89E3\u6C7A\u65B9\u6848\uFF1Axxxx
+\u4EFB\u52D9\u6E05\u55AE\uFF1Axxxx`},{name:"\u5167\u5BB9\u5275\u4F5C",title:"xxxx \u4EFB\u52D9",content:`\u4E3B\u984C\uFF1Axxxx
+\u76EE\u6A19\uFF1Axxxx
+\u4EFB\u52D9\u6E05\u55AE\uFF1Axxxx`},{name:"\u6CD5\u5F8B\u4E8B\u52D9",title:"xxxx \u4EFB\u52D9",content:`\u5408\u540C\u80CC\u666F\uFF1Axxxx
+\u5BE9\u6838\u91CD\u9EDE\uFF1Axxxx
+\u4EFB\u52D9\u6E05\u55AE\uFF1Axxxx`},{name:"\u5B78\u7FD2\u8A08\u5283",title:"xxxx \u4EFB\u52D9",content:`\u5B78\u7FD2\u76EE\u6A19\uFF1Axxxx
+\u5B78\u7FD2\u8CC7\u6E90\uFF1Axxxx
+\u4EFB\u52D9\u6E05\u55AE\uFF1Axxxx`},{name:"\u9805\u76EE\u7BA1\u7406",title:"xxxx \u4EFB\u52D9",content:`\u9805\u76EE\u80CC\u666F\uFF1Axxxx
+\u4EFB\u52D9\u6E05\u55AE\uFF1Axxxx
+\u72C0\u614B\uFF1Axxxx`},{name:"\u6E2C\u8A66\u4EFB\u52D9",title:"xxxx \u4EFB\u52D9",content:`\u6E2C\u8A66\u76EE\u6A19\uFF1Axxxx
+\u6E2C\u8A66\u7BC4\u570D\uFF1Axxxx
+\u6E2C\u8A66\u7528\u4F8B\uFF1Axxxx
+\u554F\u984C\u8A18\u9304\uFF1Axxxx`},{name:"\u6578\u64DA\u5206\u6790",title:"xxxx \u4EFB\u52D9",content:`\u5206\u6790\u76EE\u6A19\uFF1Axxxx
+\u6578\u64DA\u4F86\u6E90\uFF1Axxxx
+\u5206\u6790\u65B9\u6CD5\uFF1Axxxx
+\u7D50\u8AD6\u8207\u5EFA\u8B70\uFF1Axxxx`},{name:"\u4F9B\u61C9\u93C8\u7BA1\u7406",title:"xxxx \u4EFB\u52D9",content:`\u4EFB\u52D9\u76EE\u6A19\uFF1Axxxx
+\u4F9B\u61C9\u5546\u4FE1\u606F\uFF1Axxxx
+\u4EFB\u52D9\u6E05\u55AE\uFF1Axxxx`},{name:"\u5B89\u5168\u6AA2\u67E5",title:"xxxx \u4EFB\u52D9",content:`\u6AA2\u67E5\u7BC4\u570D\uFF1Axxxx
+\u6AA2\u67E5\u6A19\u6E96\uFF1Axxxx
+\u554F\u984C\u8A18\u9304\uFF1Axxxx
+\u6574\u6539\u8A08\u5283\uFF1Axxxx`},{name:"\u884C\u653F\u4E8B\u52D9",title:"xxxx \u4EFB\u52D9",content:`\u4EFB\u52D9\u63CF\u8FF0\uFF1Axxxx
+\u8CA0\u8CAC\u4EBA\uFF1Axxxx
+\u4EFB\u52D9\u6E05\u55AE\uFF1Axxxx`}],en:[{name:"General Task",title:"xxxx Task",content:`Description: xxxx
+Checklist: xxxx`},{name:"Product Requirement",title:"xxxx Task",content:`Background: xxxx
+Goal: xxxx
+Checklist: xxxx`},{name:"Technical Task",title:"xxxx Task",content:`Background: xxxx
+Technical Goal: xxxx
+Task Checklist: xxxx`},{name:"Operations Task",title:"xxxx Task",content:`Background: xxxx
+Activity Plan: xxxx
+Data Metrics: xxxx
+Task Checklist: xxxx`},{name:"Marketing",title:"xxxx Task",content:`Background: xxxx
+Promotion Plan: xxxx
+Data Metrics: xxxx
+Task Checklist: xxxx`},{name:"Design Task",title:"xxxx Task",content:`Background: xxxx
+Design Requirements: xxxx
+Task Checklist: xxxx
+Related Resources: xxxx`},{name:"Human Resources",title:"xxxx Task",content:`Goal: xxxx
+Content: xxxx
+Task Checklist: xxxx`},{name:"Finance Task",title:"xxxx Task",content:`Background: xxxx
+Approval Process: xxxx
+Reimbursement Checklist: xxxx`},{name:"Sales Task",title:"xxxx Task",content:`Customer Information: xxxx
+Sales Target: xxxx
+Task Checklist: xxxx`},{name:"Customer Support",title:"xxxx Task",content:`Customer Issues: xxxx
+Priority: xxxx
+Solution: xxxx
+Task Checklist: xxxx`},{name:"Content Creation",title:"xxxx Task",content:`Topic: xxxx
+Goal: xxxx
+Task Checklist: xxxx`},{name:"Legal Affairs",title:"xxxx Task",content:`Contract Background: xxxx
+Review Focus: xxxx
+Task Checklist: xxxx`},{name:"Learning Plan",title:"xxxx Task",content:`Learning Goal: xxxx
+Learning Resources: xxxx
+Task Checklist: xxxx`},{name:"Project Management",title:"xxxx Task",content:`Project Background: xxxx
+Task Checklist: xxxx
+Status: xxxx`},{name:"Testing Task",title:"xxxx Task",content:`Testing Goal: xxxx
+Testing Scope: xxxx
+Test Cases: xxxx
+Issue Records: xxxx`},{name:"Data Analysis",title:"xxxx Task",content:`Analysis Goal: xxxx
+Data Source: xxxx
+Analysis Methods: xxxx
+Conclusions and Suggestions: xxxx`},{name:"Supply Chain Management",title:"xxxx Task",content:`Task Goal: xxxx
+Supplier Information: xxxx
+Task Checklist: xxxx`},{name:"Safety Inspection",title:"xxxx Task",content:`Inspection Scope: xxxx
+Inspection Standards: xxxx
+Issue Records: xxxx
+Correction Plan: xxxx`},{name:"Administrative Affairs",title:"xxxx Task",content:`Task Description: xxxx
+Person in Charge: xxxx
+Task Checklist: xxxx`}],ko:[{name:"\uC77C\uBC18 \uC791\uC5C5",title:"xxxx \uC791\uC5C5",content:`\uC124\uBA85: xxxx
+\uCCB4\uD06C\uB9AC\uC2A4\uD2B8: xxxx`},{name:"\uC81C\uD488 \uC694\uAD6C\uC0AC\uD56D",title:"xxxx \uC791\uC5C5",content:`\uBC30\uACBD: xxxx
+\uBAA9\uD45C: xxxx
+\uCCB4\uD06C\uB9AC\uC2A4\uD2B8: xxxx`},{name:"\uAE30\uC220 \uC791\uC5C5",title:"xxxx \uC791\uC5C5",content:`\uBC30\uACBD: xxxx
+\uAE30\uC220 \uBAA9\uD45C: xxxx
+\uC791\uC5C5 \uCCB4\uD06C\uB9AC\uC2A4\uD2B8: xxxx`},{name:"\uC6B4\uC601 \uC791\uC5C5",title:"xxxx \uC791\uC5C5",content:`\uBC30\uACBD: xxxx
+\uD65C\uB3D9 \uACC4\uD68D: xxxx
+\uB370\uC774\uD130 \uC9C0\uD45C: xxxx
+\uC791\uC5C5 \uCCB4\uD06C\uB9AC\uC2A4\uD2B8: xxxx`},{name:"\uB9C8\uCF00\uD305",title:"xxxx \uC791\uC5C5",content:`\uBC30\uACBD: xxxx
+\uD64D\uBCF4 \uACC4\uD68D: xxxx
+\uB370\uC774\uD130 \uC9C0\uD45C: xxxx
+\uC791\uC5C5 \uCCB4\uD06C\uB9AC\uC2A4\uD2B8: xxxx`},{name:"\uB514\uC790\uC778 \uC791\uC5C5",title:"xxxx \uC791\uC5C5",content:`\uBC30\uACBD: xxxx
+\uB514\uC790\uC778 \uC694\uAD6C\uC0AC\uD56D: xxxx
+\uC791\uC5C5 \uCCB4\uD06C\uB9AC\uC2A4\uD2B8: xxxx
+\uAD00\uB828 \uC790\uB8CC: xxxx`},{name:"\uC778\uC0AC \uAD00\uB9AC",title:"xxxx \uC791\uC5C5",content:`\uBAA9\uD45C: xxxx
+\uB0B4\uC6A9: xxxx
+\uC791\uC5C5 \uCCB4\uD06C\uB9AC\uC2A4\uD2B8: xxxx`},{name:"\uC7AC\uBB34 \uC791\uC5C5",title:"xxxx \uC791\uC5C5",content:`\uBC30\uACBD: xxxx
+\uC2B9\uC778 \uC808\uCC28: xxxx
+\uBE44\uC6A9 \uCCAD\uAD6C\uC11C: xxxx`},{name:"\uC601\uC5C5 \uC791\uC5C5",title:"xxxx \uC791\uC5C5",content:`\uACE0\uAC1D \uC815\uBCF4: xxxx
+\uC601\uC5C5 \uBAA9\uD45C: xxxx
+\uC791\uC5C5 \uCCB4\uD06C\uB9AC\uC2A4\uD2B8: xxxx`},{name:"\uACE0\uAC1D \uC9C0\uC6D0",title:"xxxx \uC791\uC5C5",content:`\uACE0\uAC1D \uBB38\uC81C: xxxx
+\uC6B0\uC120 \uC21C\uC704: xxxx
+\uD574\uACB0\uCC45: xxxx
+\uC791\uC5C5 \uCCB4\uD06C\uB9AC\uC2A4\uD2B8: xxxx`},{name:"\uCF58\uD150\uCE20 \uC81C\uC791",title:"xxxx \uC791\uC5C5",content:`\uC8FC\uC81C: xxxx
+\uBAA9\uD45C: xxxx
+\uC791\uC5C5 \uCCB4\uD06C\uB9AC\uC2A4\uD2B8: xxxx`},{name:"\uBC95\uB960 \uC5C5\uBB34",title:"xxxx \uC791\uC5C5",content:`\uACC4\uC57D \uBC30\uACBD: xxxx
+\uAC80\uD1A0 \uCD08\uC810: xxxx
+\uC791\uC5C5 \uCCB4\uD06C\uB9AC\uC2A4\uD2B8: xxxx`},{name:"\uD559\uC2B5 \uACC4\uD68D",title:"xxxx \uC791\uC5C5",content:`\uD559\uC2B5 \uBAA9\uD45C: xxxx
+\uD559\uC2B5 \uC790\uB8CC: xxxx
+\uC791\uC5C5 \uCCB4\uD06C\uB9AC\uC2A4\uD2B8: xxxx`},{name:"\uD504\uB85C\uC81D\uD2B8 \uAD00\uB9AC",title:"xxxx \uC791\uC5C5",content:`\uD504\uB85C\uC81D\uD2B8 \uBC30\uACBD: xxxx
+\uC791\uC5C5 \uCCB4\uD06C\uB9AC\uC2A4\uD2B8: xxxx
+\uC0C1\uD0DC: xxxx`},{name:"\uD14C\uC2A4\uD2B8 \uC791\uC5C5",title:"xxxx \uC791\uC5C5",content:`\uD14C\uC2A4\uD2B8 \uBAA9\uD45C: xxxx
+\uD14C\uC2A4\uD2B8 \uBC94\uC704: xxxx
+\uD14C\uC2A4\uD2B8 \uCF00\uC774\uC2A4: xxxx
+\uBB38\uC81C \uAE30\uB85D: xxxx`},{name:"\uB370\uC774\uD130 \uBD84\uC11D",title:"xxxx \uC791\uC5C5",content:`\uBD84\uC11D \uBAA9\uD45C: xxxx
+\uB370\uC774\uD130 \uCD9C\uCC98: xxxx
+\uBD84\uC11D \uBC29\uBC95: xxxx
+\uACB0\uB860 \uBC0F \uC81C\uC548: xxxx`},{name:"\uACF5\uAE09\uB9DD \uAD00\uB9AC",title:"xxxx \uC791\uC5C5",content:`\uC791\uC5C5 \uBAA9\uD45C: xxxx
+\uACF5\uAE09\uC5C5\uCCB4 \uC815\uBCF4: xxxx
+\uC791\uC5C5 \uCCB4\uD06C\uB9AC\uC2A4\uD2B8: xxxx`},{name:"\uC548\uC804 \uC810\uAC80",title:"xxxx \uC791\uC5C5",content:`\uC810\uAC80 \uBC94\uC704: xxxx
+\uC810\uAC80 \uAE30\uC900: xxxx
+\uBB38\uC81C \uAE30\uB85D: xxxx
+\uC218\uC815 \uACC4\uD68D: xxxx`},{name:"\uD589\uC815 \uC5C5\uBB34",title:"xxxx \uC791\uC5C5",content:`\uC791\uC5C5 \uC124\uBA85: xxxx
+\uB2F4\uB2F9\uC790: xxxx
+\uC791\uC5C5 \uCCB4\uD06C\uB9AC\uC2A4\uD2B8: xxxx`}],ja:[{name:"\u4E00\u822C\u30BF\u30B9\u30AF",title:"xxxx \u30BF\u30B9\u30AF",content:`\u8AAC\u660E\uFF1Axxxx
+\u30C1\u30A7\u30C3\u30AF\u30EA\u30B9\u30C8\uFF1Axxxx`},{name:"\u88FD\u54C1\u8981\u4EF6",title:"xxxx \u30BF\u30B9\u30AF",content:`\u80CC\u666F\uFF1Axxxx
+\u76EE\u6A19\uFF1Axxxx
+\u30C1\u30A7\u30C3\u30AF\u30EA\u30B9\u30C8\uFF1Axxxx`},{name:"\u6280\u8853\u30BF\u30B9\u30AF",title:"xxxx \u30BF\u30B9\u30AF",content:`\u80CC\u666F\uFF1Axxxx
+\u6280\u8853\u76EE\u6A19\uFF1Axxxx
+\u30BF\u30B9\u30AF\u30EA\u30B9\u30C8\uFF1Axxxx`},{name:"\u904B\u55B6\u30BF\u30B9\u30AF",title:"xxxx \u30BF\u30B9\u30AF",content:`\u80CC\u666F\uFF1Axxxx
+\u6D3B\u52D5\u8A08\u753B\uFF1Axxxx
+\u30C7\u30FC\u30BF\u6307\u6A19\uFF1Axxxx
+\u30BF\u30B9\u30AF\u30EA\u30B9\u30C8\uFF1Axxxx`},{name:"\u30DE\u30FC\u30B1\u30C6\u30A3\u30F3\u30B0",title:"xxxx \u30BF\u30B9\u30AF",content:`\u80CC\u666F\uFF1Axxxx
+\u30D7\u30ED\u30E2\u30FC\u30B7\u30E7\u30F3\u8A08\u753B\uFF1Axxxx
+\u30C7\u30FC\u30BF\u6307\u6A19\uFF1Axxxx
+\u30BF\u30B9\u30AF\u30EA\u30B9\u30C8\uFF1Axxxx`},{name:"\u30C7\u30B6\u30A4\u30F3\u30BF\u30B9\u30AF",title:"xxxx \u30BF\u30B9\u30AF",content:`\u80CC\u666F\uFF1Axxxx
+\u30C7\u30B6\u30A4\u30F3\u8981\u4EF6\uFF1Axxxx
+\u30BF\u30B9\u30AF\u30EA\u30B9\u30C8\uFF1Axxxx
+\u95A2\u9023\u30EA\u30BD\u30FC\u30B9\uFF1Axxxx`},{name:"\u4EBA\u4E8B\u30BF\u30B9\u30AF",title:"xxxx \u30BF\u30B9\u30AF",content:`\u76EE\u6A19\uFF1Axxxx
+\u5185\u5BB9\uFF1Axxxx
+\u30BF\u30B9\u30AF\u30EA\u30B9\u30C8\uFF1Axxxx`},{name:"\u8CA1\u52D9\u30BF\u30B9\u30AF",title:"xxxx \u30BF\u30B9\u30AF",content:`\u80CC\u666F\uFF1Axxxx
+\u627F\u8A8D\u30D7\u30ED\u30BB\u30B9\uFF1Axxxx
+\u7CBE\u7B97\u30EA\u30B9\u30C8\uFF1Axxxx`},{name:"\u55B6\u696D\u30BF\u30B9\u30AF",title:"xxxx \u30BF\u30B9\u30AF",content:`\u9867\u5BA2\u60C5\u5831\uFF1Axxxx
+\u55B6\u696D\u76EE\u6A19\uFF1Axxxx
+\u30BF\u30B9\u30AF\u30EA\u30B9\u30C8\uFF1Axxxx`},{name:"\u30AB\u30B9\u30BF\u30DE\u30FC\u30B5\u30DD\u30FC\u30C8",title:"xxxx \u30BF\u30B9\u30AF",content:`\u9867\u5BA2\u554F\u984C\uFF1Axxxx
+\u512A\u5148\u9806\u4F4D\uFF1Axxxx
+\u89E3\u6C7A\u7B56\uFF1Axxxx
+\u30BF\u30B9\u30AF\u30EA\u30B9\u30C8\uFF1Axxxx`},{name:"\u30B3\u30F3\u30C6\u30F3\u30C4\u5236\u4F5C",title:"xxxx \u30BF\u30B9\u30AF",content:`\u30C6\u30FC\u30DE\uFF1Axxxx
+\u76EE\u6A19\uFF1Axxxx
+\u30BF\u30B9\u30AF\u30EA\u30B9\u30C8\uFF1Axxxx`},{name:"\u6CD5\u52D9\u696D\u52D9",title:"xxxx \u30BF\u30B9\u30AF",content:`\u5951\u7D04\u80CC\u666F\uFF1Axxxx
+\u30EC\u30D3\u30E5\u30FC\u306E\u30DD\u30A4\u30F3\u30C8\uFF1Axxxx
+\u30BF\u30B9\u30AF\u30EA\u30B9\u30C8\uFF1Axxxx`},{name:"\u5B66\u7FD2\u8A08\u753B",title:"xxxx \u30BF\u30B9\u30AF",content:`\u5B66\u7FD2\u76EE\u6A19\uFF1Axxxx
+\u5B66\u7FD2\u30EA\u30BD\u30FC\u30B9\uFF1Axxxx
+\u30BF\u30B9\u30AF\u30EA\u30B9\u30C8\uFF1Axxxx`},{name:"\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u7BA1\u7406",title:"xxxx \u30BF\u30B9\u30AF",content:`\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u80CC\u666F\uFF1Axxxx
+\u30BF\u30B9\u30AF\u30EA\u30B9\u30C8\uFF1Axxxx
+\u30B9\u30C6\u30FC\u30BF\u30B9\uFF1Axxxx`},{name:"\u30C6\u30B9\u30C8\u30BF\u30B9\u30AF",title:"xxxx \u30BF\u30B9\u30AF",content:`\u30C6\u30B9\u30C8\u76EE\u6A19\uFF1Axxxx
+\u30C6\u30B9\u30C8\u7BC4\u56F2\uFF1Axxxx
+\u30C6\u30B9\u30C8\u30B1\u30FC\u30B9\uFF1Axxxx
+\u554F\u984C\u8A18\u9332\uFF1Axxxx`},{name:"\u30C7\u30FC\u30BF\u5206\u6790",title:"xxxx \u30BF\u30B9\u30AF",content:`\u5206\u6790\u76EE\u6A19\uFF1Axxxx
+\u30C7\u30FC\u30BF\u30BD\u30FC\u30B9\uFF1Axxxx
+\u5206\u6790\u65B9\u6CD5\uFF1Axxxx
+\u7D50\u8AD6\u3068\u63D0\u6848\uFF1Axxxx`},{name:"\u30B5\u30D7\u30E9\u30A4\u30C1\u30A7\u30FC\u30F3\u7BA1\u7406",title:"xxxx \u30BF\u30B9\u30AF",content:`\u30BF\u30B9\u30AF\u76EE\u6A19\uFF1Axxxx
+\u30B5\u30D7\u30E9\u30A4\u30E4\u30FC\u60C5\u5831\uFF1Axxxx
+\u30BF\u30B9\u30AF\u30EA\u30B9\u30C8\uFF1Axxxx`},{name:"\u5B89\u5168\u70B9\u691C",title:"xxxx \u30BF\u30B9\u30AF",content:`\u70B9\u691C\u7BC4\u56F2\uFF1Axxxx
+\u70B9\u691C\u57FA\u6E96\uFF1Axxxx
+\u554F\u984C\u8A18\u9332\uFF1Axxxx
+\u662F\u6B63\u8A08\u753B\uFF1Axxxx`},{name:"\u7BA1\u7406\u696D\u52D9",title:"xxxx \u30BF\u30B9\u30AF",content:`\u30BF\u30B9\u30AF\u8AAC\u660E\uFF1Axxxx
+\u62C5\u5F53\u8005\uFF1Axxxx
+\u30BF\u30B9\u30AF\u30EA\u30B9\u30C8\uFF1Axxxx`}],de:[{name:"Allgemeine Aufgabe",title:"xxxx Aufgabe",content:`Beschreibung: xxxx
+Checkliste: xxxx`},{name:"Produktanforderung",title:"xxxx Aufgabe",content:`Hintergrund: xxxx
+Ziel: xxxx
+Checkliste: xxxx`},{name:"Technische Aufgabe",title:"xxxx Aufgabe",content:`Hintergrund: xxxx
+Technisches Ziel: xxxx
+Aufgabenliste: xxxx`},{name:"Betriebsaufgabe",title:"xxxx Aufgabe",content:`Hintergrund: xxxx
+Aktivit\xE4tsplan: xxxx
+Datenkennzahlen: xxxx
+Aufgabenliste: xxxx`},{name:"Marketing",title:"xxxx Aufgabe",content:`Hintergrund: xxxx
+Werbeplan: xxxx
+Datenkennzahlen: xxxx
+Aufgabenliste: xxxx`},{name:"Design-Aufgabe",title:"xxxx Aufgabe",content:`Hintergrund: xxxx
+Designanforderungen: xxxx
+Aufgabenliste: xxxx
+Relevante Ressourcen: xxxx`},{name:"Personalwesen",title:"xxxx Aufgabe",content:`Ziel: xxxx
+Inhalt: xxxx
+Aufgabenliste: xxxx`},{name:"Finanzaufgabe",title:"xxxx Aufgabe",content:`Hintergrund: xxxx
+Genehmigungsprozess: xxxx
+Erstattungsliste: xxxx`},{name:"Verkaufsaufgabe",title:"xxxx Aufgabe",content:`Kundeninformationen: xxxx
+Verkaufsziel: xxxx
+Aufgabenliste: xxxx`},{name:"Kundensupport",title:"xxxx Aufgabe",content:`Kundenprobleme: xxxx
+Priorit\xE4ten: xxxx
+L\xF6sung: xxxx
+Aufgabenliste: xxxx`},{name:"Inhaltserstellung",title:"xxxx Aufgabe",content:`Thema: xxxx
+Ziel: xxxx
+Aufgabenliste: xxxx`},{name:"Rechtsangelegenheiten",title:"xxxx Aufgabe",content:`Vertragsgrundlage: xxxx
+Pr\xFCfungsschwerpunkte: xxxx
+Aufgabenliste: xxxx`},{name:"Lernplan",title:"xxxx Aufgabe",content:`Lernziel: xxxx
+Lernressourcen: xxxx
+Aufgabenliste: xxxx`},{name:"Projektmanagement",title:"xxxx Aufgabe",content:`Projektgrundlage: xxxx
+Aufgabenliste: xxxx
+Status: xxxx`},{name:"Testaufgabe",title:"xxxx Aufgabe",content:`Testziel: xxxx
+Testumfang: xxxx
+Testf\xE4lle: xxxx
+Problemliste: xxxx`},{name:"Datenanalyse",title:"xxxx Aufgabe",content:`Analyseziel: xxxx
+Datenquelle: xxxx
+Analysemethoden: xxxx
+Schlussfolgerungen und Empfehlungen: xxxx`},{name:"Lieferkettenmanagement",title:"xxxx Aufgabe",content:`Aufgabenziel: xxxx
+Lieferanteninformationen: xxxx
+Aufgabenliste: xxxx`},{name:"Sicherheitspr\xFCfung",title:"xxxx Aufgabe",content:`Pr\xFCfungsumfang: xxxx
+Pr\xFCfungsstandards: xxxx
+Problemliste: xxxx
+Korrekturplan: xxxx`},{name:"Verwaltungsaufgaben",title:"xxxx Aufgabe",content:`Aufgabenbeschreibung: xxxx
+Verantwortliche Person: xxxx
+Aufgabenliste: xxxx`}],fr:[{name:"T\xE2che G\xE9n\xE9rale",title:"xxxx T\xE2che",content:`Description : xxxx
+Liste de contr\xF4le : xxxx`},{name:"Exigence Produit",title:"xxxx T\xE2che",content:`Contexte : xxxx
+Objectif : xxxx
+Liste de contr\xF4le : xxxx`},{name:"T\xE2che Technique",title:"xxxx T\xE2che",content:`Contexte : xxxx
+Objectif Technique : xxxx
+Liste des t\xE2ches : xxxx`},{name:"T\xE2che Op\xE9rationnelle",title:"xxxx T\xE2che",content:`Contexte : xxxx
+Plan d'activit\xE9 : xxxx
+Indicateurs de donn\xE9es : xxxx
+Liste des t\xE2ches : xxxx`},{name:"Marketing",title:"xxxx T\xE2che",content:`Contexte : xxxx
+Plan de promotion : xxxx
+Indicateurs de donn\xE9es : xxxx
+Liste des t\xE2ches : xxxx`},{name:"T\xE2che de Design",title:"xxxx T\xE2che",content:`Contexte : xxxx
+Exigences de design : xxxx
+Liste des t\xE2ches : xxxx
+Ressources associ\xE9es : xxxx`},{name:"Ressources Humaines",title:"xxxx T\xE2che",content:`Objectif : xxxx
+Contenu : xxxx
+Liste des t\xE2ches : xxxx`},{name:"T\xE2che Financi\xE8re",title:"xxxx T\xE2che",content:`Contexte : xxxx
+Processus d'approbation : xxxx
+Liste des remboursements : xxxx`},{name:"T\xE2che Commerciale",title:"xxxx T\xE2che",content:`Informations client : xxxx
+Objectif de vente : xxxx
+Liste des t\xE2ches : xxxx`},{name:"Support Client",title:"xxxx T\xE2che",content:`Probl\xE8mes client : xxxx
+Priorit\xE9 : xxxx
+Solution : xxxx
+Liste des t\xE2ches : xxxx`},{name:"Cr\xE9ation de Contenu",title:"xxxx T\xE2che",content:`Th\xE8me : xxxx
+Objectif : xxxx
+Liste des t\xE2ches : xxxx`},{name:"Affaires Juridiques",title:"xxxx T\xE2che",content:`Contexte du contrat : xxxx
+Points cl\xE9s de r\xE9vision : xxxx
+Liste des t\xE2ches : xxxx`},{name:"Plan d'Apprentissage",title:"xxxx T\xE2che",content:`Objectif d'apprentissage : xxxx
+Ressources d'apprentissage : xxxx
+Liste des t\xE2ches : xxxx`},{name:"Gestion de Projet",title:"xxxx T\xE2che",content:`Contexte du projet : xxxx
+Liste des t\xE2ches : xxxx
+Statut : xxxx`},{name:"T\xE2che de Test",title:"xxxx T\xE2che",content:`Objectif du test : xxxx
+P\xE9rim\xE8tre du test : xxxx
+Cas de test : xxxx
+Enregistrements des probl\xE8mes : xxxx`},{name:"Analyse de Donn\xE9es",title:"xxxx T\xE2che",content:`Objectif d'analyse : xxxx
+Source de donn\xE9es : xxxx
+M\xE9thodes d'analyse : xxxx
+Conclusions et recommandations : xxxx`},{name:"Gestion de la Cha\xEEne d'Approvisionnement",title:"xxxx T\xE2che",content:`Objectif de la t\xE2che : xxxx
+Informations sur le fournisseur : xxxx
+Liste des t\xE2ches : xxxx`},{name:"Inspection de S\xE9curit\xE9",title:"xxxx T\xE2che",content:`P\xE9rim\xE8tre de l'inspection : xxxx
+Normes d'inspection : xxxx
+Enregistrements des probl\xE8mes : xxxx
+Plan de correction : xxxx`},{name:"Affaires Administratives",title:"xxxx T\xE2che",content:`Description de la t\xE2che : xxxx
+Responsable : xxxx
+Liste des t\xE2ches : xxxx`}],id:[{name:"Tugas Umum",title:"xxxx Tugas",content:`Deskripsi: xxxx
+Daftar Periksa: xxxx`},{name:"Kebutuhan Produk",title:"xxxx Tugas",content:`Latar Belakang: xxxx
+Tujuan: xxxx
+Daftar Periksa: xxxx`},{name:"Tugas Teknis",title:"xxxx Tugas",content:`Latar Belakang: xxxx
+Tujuan Teknis: xxxx
+Daftar Tugas: xxxx`},{name:"Tugas Operasional",title:"xxxx Tugas",content:`Latar Belakang: xxxx
+Rencana Aktivitas: xxxx
+Indikator Data: xxxx
+Daftar Tugas: xxxx`},{name:"Pemasaran",title:"xxxx Tugas",content:`Latar Belakang: xxxx
+Rencana Promosi: xxxx
+Indikator Data: xxxx
+Daftar Tugas: xxxx`},{name:"Tugas Desain",title:"xxxx Tugas",content:`Latar Belakang: xxxx
+Persyaratan Desain: xxxx
+Daftar Tugas: xxxx
+Sumber Daya Terkait: xxxx`},{name:"Sumber Daya Manusia",title:"xxxx Tugas",content:`Tujuan: xxxx
+Isi: xxxx
+Daftar Tugas: xxxx`},{name:"Tugas Keuangan",title:"xxxx Tugas",content:`Latar Belakang: xxxx
+Proses Persetujuan: xxxx
+Daftar Penggantian: xxxx`},{name:"Tugas Penjualan",title:"xxxx Tugas",content:`Informasi Pelanggan: xxxx
+Target Penjualan: xxxx
+Daftar Tugas: xxxx`},{name:"Dukungan Pelanggan",title:"xxxx Tugas",content:`Masalah Pelanggan: xxxx
+Prioritas: xxxx
+Solusi: xxxx
+Daftar Tugas: xxxx`},{name:"Pembuatan Konten",title:"xxxx Tugas",content:`Topik: xxxx
+Tujuan: xxxx
+Daftar Tugas: xxxx`},{name:"Urusan Hukum",title:"xxxx Tugas",content:`Latar Belakang Kontrak: xxxx
+Fokus Peninjauan: xxxx
+Daftar Tugas: xxxx`},{name:"Rencana Pembelajaran",title:"xxxx Tugas",content:`Tujuan Pembelajaran: xxxx
+Sumber Belajar: xxxx
+Daftar Tugas: xxxx`},{name:"Manajemen Proyek",title:"xxxx Tugas",content:`Latar Belakang Proyek: xxxx
+Daftar Tugas: xxxx
+Status: xxxx`},{name:"Tugas Pengujian",title:"xxxx Tugas",content:`Tujuan Pengujian: xxxx
+Lingkup Pengujian: xxxx
+Kasus Pengujian: xxxx
+Catatan Masalah: xxxx`},{name:"Analisis Data",title:"xxxx Tugas",content:`Tujuan Analisis: xxxx
+Sumber Data: xxxx
+Metode Analisis: xxxx
+Kesimpulan dan Rekomendasi: xxxx`},{name:"Manajemen Rantai Pasokan",title:"xxxx Tugas",content:`Tujuan Tugas: xxxx
+Informasi Pemasok: xxxx
+Daftar Tugas: xxxx`},{name:"Inspeksi Keamanan",title:"xxxx Tugas",content:`Lingkup Inspeksi: xxxx
+Standar Inspeksi: xxxx
+Catatan Masalah: xxxx
+Rencana Koreksi: xxxx`},{name:"Tugas Administrasi",title:"xxxx Tugas",content:`Deskripsi Tugas: xxxx
+Penanggung Jawab: xxxx
+Daftar Tugas: xxxx`}],ru:[{name:"\u041E\u0431\u0449\u0430\u044F \u0437\u0430\u0434\u0430\u0447\u0430",title:"xxxx \u0417\u0430\u0434\u0430\u0447\u0430",content:`\u041E\u043F\u0438\u0441\u0430\u043D\u0438\u0435: xxxx
+\u0427\u0435\u043A-\u043B\u0438\u0441\u0442: xxxx`},{name:"\u0422\u0440\u0435\u0431\u043E\u0432\u0430\u043D\u0438\u044F \u043A \u043F\u0440\u043E\u0434\u0443\u043A\u0442\u0443",title:"xxxx \u0417\u0430\u0434\u0430\u0447\u0430",content:`\u041A\u043E\u043D\u0442\u0435\u043A\u0441\u0442: xxxx
+\u0426\u0435\u043B\u044C: xxxx
+\u0427\u0435\u043A-\u043B\u0438\u0441\u0442: xxxx`},{name:"\u0422\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0437\u0430\u0434\u0430\u0447\u0430",title:"xxxx \u0417\u0430\u0434\u0430\u0447\u0430",content:`\u041A\u043E\u043D\u0442\u0435\u043A\u0441\u0442: xxxx
+\u0422\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0446\u0435\u043B\u044C: xxxx
+\u0421\u043F\u0438\u0441\u043E\u043A \u0437\u0430\u0434\u0430\u0447: xxxx`},{name:"\u041E\u043F\u0435\u0440\u0430\u0446\u0438\u043E\u043D\u043D\u0430\u044F \u0437\u0430\u0434\u0430\u0447\u0430",title:"xxxx \u0417\u0430\u0434\u0430\u0447\u0430",content:`\u041A\u043E\u043D\u0442\u0435\u043A\u0441\u0442: xxxx
+\u041F\u043B\u0430\u043D \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439: xxxx
+\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u0435\u043B\u0438 \u0434\u0430\u043D\u043D\u044B\u0445: xxxx
+\u0421\u043F\u0438\u0441\u043E\u043A \u0437\u0430\u0434\u0430\u0447: xxxx`},{name:"\u041C\u0430\u0440\u043A\u0435\u0442\u0438\u043D\u0433",title:"xxxx \u0417\u0430\u0434\u0430\u0447\u0430",content:`\u041A\u043E\u043D\u0442\u0435\u043A\u0441\u0442: xxxx
+\u041F\u043B\u0430\u043D \u043F\u0440\u043E\u0434\u0432\u0438\u0436\u0435\u043D\u0438\u044F: xxxx
+\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u0435\u043B\u0438 \u0434\u0430\u043D\u043D\u044B\u0445: xxxx
+\u0421\u043F\u0438\u0441\u043E\u043A \u0437\u0430\u0434\u0430\u0447: xxxx`},{name:"\u0414\u0438\u0437\u0430\u0439\u043D\u0435\u0440\u0441\u043A\u0430\u044F \u0437\u0430\u0434\u0430\u0447\u0430",title:"xxxx \u0417\u0430\u0434\u0430\u0447\u0430",content:`\u041A\u043E\u043D\u0442\u0435\u043A\u0441\u0442: xxxx
+\u0422\u0440\u0435\u0431\u043E\u0432\u0430\u043D\u0438\u044F \u043A \u0434\u0438\u0437\u0430\u0439\u043D\u0443: xxxx
+\u0421\u043F\u0438\u0441\u043E\u043A \u0437\u0430\u0434\u0430\u0447: xxxx
+\u0421\u0432\u044F\u0437\u0430\u043D\u043D\u044B\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u044B: xxxx`},{name:"\u041A\u0430\u0434\u0440\u043E\u0432\u0430\u044F \u0437\u0430\u0434\u0430\u0447\u0430",title:"xxxx \u0417\u0430\u0434\u0430\u0447\u0430",content:`\u0426\u0435\u043B\u044C: xxxx
+\u0421\u043E\u0434\u0435\u0440\u0436\u0430\u043D\u0438\u0435: xxxx
+\u0421\u043F\u0438\u0441\u043E\u043A \u0437\u0430\u0434\u0430\u0447: xxxx`},{name:"\u0424\u0438\u043D\u0430\u043D\u0441\u043E\u0432\u0430\u044F \u0437\u0430\u0434\u0430\u0447\u0430",title:"xxxx \u0417\u0430\u0434\u0430\u0447\u0430",content:`\u041A\u043E\u043D\u0442\u0435\u043A\u0441\u0442: xxxx
+\u041F\u0440\u043E\u0446\u0435\u0441\u0441 \u0443\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043D\u0438\u044F: xxxx
+\u0427\u0435\u043A-\u043B\u0438\u0441\u0442 \u0432\u043E\u0437\u043C\u0435\u0449\u0435\u043D\u0438\u044F: xxxx`},{name:"\u0417\u0430\u0434\u0430\u0447\u0430 \u043F\u043E \u043F\u0440\u043E\u0434\u0430\u0436\u0430\u043C",title:"xxxx \u0417\u0430\u0434\u0430\u0447\u0430",content:`\u0418\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F \u043E \u043A\u043B\u0438\u0435\u043D\u0442\u0430\u0445: xxxx
+\u0426\u0435\u043B\u044C \u043F\u0440\u043E\u0434\u0430\u0436: xxxx
+\u0421\u043F\u0438\u0441\u043E\u043A \u0437\u0430\u0434\u0430\u0447: xxxx`},{name:"\u041A\u043B\u0438\u0435\u043D\u0442\u0441\u043A\u0430\u044F \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0430",title:"xxxx \u0417\u0430\u0434\u0430\u0447\u0430",content:`\u041F\u0440\u043E\u0431\u043B\u0435\u043C\u044B \u043A\u043B\u0438\u0435\u043D\u0442\u043E\u0432: xxxx
+\u041F\u0440\u0438\u043E\u0440\u0438\u0442\u0435\u0442: xxxx
+\u0420\u0435\u0448\u0435\u043D\u0438\u0435: xxxx
+\u0421\u043F\u0438\u0441\u043E\u043A \u0437\u0430\u0434\u0430\u0447: xxxx`},{name:"\u0421\u043E\u0437\u0434\u0430\u043D\u0438\u0435 \u043A\u043E\u043D\u0442\u0435\u043D\u0442\u0430",title:"xxxx \u0417\u0430\u0434\u0430\u0447\u0430",content:`\u0422\u0435\u043C\u0430: xxxx
+\u0426\u0435\u043B\u044C: xxxx
+\u0421\u043F\u0438\u0441\u043E\u043A \u0437\u0430\u0434\u0430\u0447: xxxx`},{name:"\u042E\u0440\u0438\u0434\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u0432\u043E\u043F\u0440\u043E\u0441\u044B",title:"xxxx \u0417\u0430\u0434\u0430\u0447\u0430",content:`\u041A\u043E\u043D\u0442\u0435\u043A\u0441\u0442 \u043A\u043E\u043D\u0442\u0440\u0430\u043A\u0442\u0430: xxxx
+\u041A\u043B\u044E\u0447\u0435\u0432\u044B\u0435 \u043C\u043E\u043C\u0435\u043D\u0442\u044B \u043F\u0440\u043E\u0432\u0435\u0440\u043A\u0438: xxxx
+\u0421\u043F\u0438\u0441\u043E\u043A \u0437\u0430\u0434\u0430\u0447: xxxx`},{name:"\u041F\u043B\u0430\u043D \u043E\u0431\u0443\u0447\u0435\u043D\u0438\u044F",title:"xxxx \u0417\u0430\u0434\u0430\u0447\u0430",content:`\u0426\u0435\u043B\u044C \u043E\u0431\u0443\u0447\u0435\u043D\u0438\u044F: xxxx
+\u0423\u0447\u0435\u0431\u043D\u044B\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u044B: xxxx
+\u0421\u043F\u0438\u0441\u043E\u043A \u0437\u0430\u0434\u0430\u0447: xxxx`},{name:"\u0423\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435 \u043F\u0440\u043E\u0435\u043A\u0442\u043E\u043C",title:"xxxx \u0417\u0430\u0434\u0430\u0447\u0430",content:`\u041A\u043E\u043D\u0442\u0435\u043A\u0441\u0442 \u043F\u0440\u043E\u0435\u043A\u0442\u0430: xxxx
+\u0421\u043F\u0438\u0441\u043E\u043A \u0437\u0430\u0434\u0430\u0447: xxxx
+\u0421\u0442\u0430\u0442\u0443\u0441: xxxx`},{name:"\u0422\u0435\u0441\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435",title:"xxxx \u0417\u0430\u0434\u0430\u0447\u0430",content:`\u0426\u0435\u043B\u044C \u0442\u0435\u0441\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F: xxxx
+\u041E\u0431\u043B\u0430\u0441\u0442\u044C \u0442\u0435\u0441\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F: xxxx
+\u0422\u0435\u0441\u0442\u043E\u0432\u044B\u0435 \u043A\u0435\u0439\u0441\u044B: xxxx
+\u0416\u0443\u0440\u043D\u0430\u043B \u043F\u0440\u043E\u0431\u043B\u0435\u043C: xxxx`},{name:"\u0410\u043D\u0430\u043B\u0438\u0437 \u0434\u0430\u043D\u043D\u044B\u0445",title:"xxxx \u0417\u0430\u0434\u0430\u0447\u0430",content:`\u0426\u0435\u043B\u044C \u0430\u043D\u0430\u043B\u0438\u0437\u0430: xxxx
+\u0418\u0441\u0442\u043E\u0447\u043D\u0438\u043A \u0434\u0430\u043D\u043D\u044B\u0445: xxxx
+\u041C\u0435\u0442\u043E\u0434\u044B \u0430\u043D\u0430\u043B\u0438\u0437\u0430: xxxx
+\u0412\u044B\u0432\u043E\u0434\u044B \u0438 \u0440\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0430\u0446\u0438\u0438: xxxx`},{name:"\u0423\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435 \u0446\u0435\u043F\u043E\u0447\u043A\u0430\u043C\u0438 \u043F\u043E\u0441\u0442\u0430\u0432\u043E\u043A",title:"xxxx \u0417\u0430\u0434\u0430\u0447\u0430",content:`\u0426\u0435\u043B\u044C \u0437\u0430\u0434\u0430\u0447\u0438: xxxx
+\u0418\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F \u043E \u043F\u043E\u0441\u0442\u0430\u0432\u0449\u0438\u043A\u0430\u0445: xxxx
+\u0421\u043F\u0438\u0441\u043E\u043A \u0437\u0430\u0434\u0430\u0447: xxxx`},{name:"\u041F\u0440\u043E\u0432\u0435\u0440\u043A\u0430 \u0431\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u0438",title:"xxxx \u0417\u0430\u0434\u0430\u0447\u0430",content:`\u041E\u0431\u043B\u0430\u0441\u0442\u044C \u043F\u0440\u043E\u0432\u0435\u0440\u043A\u0438: xxxx
+\u041A\u0440\u0438\u0442\u0435\u0440\u0438\u0438 \u043F\u0440\u043E\u0432\u0435\u0440\u043A\u0438: xxxx
+\u0416\u0443\u0440\u043D\u0430\u043B \u043F\u0440\u043E\u0431\u043B\u0435\u043C: xxxx
+\u041F\u043B\u0430\u043D \u043A\u043E\u0440\u0440\u0435\u043A\u0442\u0438\u0440\u043E\u0432\u043A\u0438: xxxx`},{name:"\u0410\u0434\u043C\u0438\u043D\u0438\u0441\u0442\u0440\u0430\u0442\u0438\u0432\u043D\u044B\u0435 \u0437\u0430\u0434\u0430\u0447\u0438",title:"xxxx \u0417\u0430\u0434\u0430\u0447\u0430",content:`\u041E\u043F\u0438\u0441\u0430\u043D\u0438\u0435 \u0437\u0430\u0434\u0430\u0447\u0438: xxxx
+\u041E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043D\u043D\u043E\u0435 \u043B\u0438\u0446\u043E: xxxx
+\u0421\u043F\u0438\u0441\u043E\u043A \u0437\u0430\u0434\u0430\u0447: xxxx`}]},Ft=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"project-task-template"},[a("div",{staticClass:"header"},[a("div",{staticClass:"title"},[t._v(" "+t._s(t.$L("\u4EFB\u52A1\u6A21\u677F"))+" "),t.loadIng>0?a("Loading"):t._e()],1),a("div",{staticClass:"actions"},[t.templates.length?a("Button",{attrs:{type:t.sortMode?"primary":"default",loading:t.sortLoading,icon:"md-move"},on:{click:t.toggleSortMode}},[t._v(" "+t._s(t.$L(t.sortMode?"\u5B8C\u6210\u6392\u5E8F":"\u8C03\u6574\u6392\u5E8F"))+" ")]):t._e(),a("Button",{attrs:{type:"primary",icon:"md-add"},on:{click:t.handleAdd}},[t._v(" "+t._s(t.$L("\u65B0\u5EFA\u6A21\u677F"))+" ")])],1)]),a("div",{staticClass:"content"},[t.templates.length?a("Draggable",{staticClass:"template-list",attrs:{tag:"div",list:t.templates,animation:150,disabled:!t.sortMode||t.sortLoading,"item-key":"id",handle:".template-drag-handle"},on:{end:t.handleSortEnd}},t._l(t.templates,function(s){return a("div",{key:s.id,staticClass:"template-item"},[a("div",{class:["template-item-inner",{"is-sorting":t.sortMode}]},[t.sortMode?a("div",{staticClass:"template-drag-handle",attrs:{title:t.$L("\u62D6\u62FD\u8C03\u6574\u6392\u5E8F")}},[a("Icon",{attrs:{type:"md-menu"}})],1):t._e(),a("div",{staticClass:"template-main"},[a("div",{staticClass:"template-title"},[a("span",[t._v(t._s(s.name))]),s.is_default?a("span",{staticClass:"default-tag"},[t._v(t._s(t.$L("\u9ED8\u8BA4")))]):t._e()]),a("div",{staticClass:"template-content"},[s.title?a("div",{staticClass:"task-title"},[t._v(t._s(s.title))]):t._e(),s.content?a("div",{staticClass:"task-content"},[a("VMPreviewNostyle",{ref:"descPreview",refInFor:!0,attrs:{value:s.content}})],1):t._e()]),a("div",{staticClass:"template-actions"},[a("Button",{attrs:{disabled:t.sortMode,type:"primary",icon:s.is_default?"md-checkmark":""},on:{click:function(n){return t.handleSetDefault(s)}}},[t._v(" "+t._s(t.$L(s.is_default?"\u53D6\u6D88\u9ED8\u8BA4":"\u8BBE\u4E3A\u9ED8\u8BA4"))+" ")]),a("Button",{attrs:{disabled:t.sortMode,type:"primary"},on:{click:function(n){return t.handleEdit(s)}}},[t._v(" "+t._s(t.$L("\u7F16\u8F91"))+" ")]),a("Button",{attrs:{disabled:t.sortMode,type:"error"},on:{click:function(n){return t.handleDelete(s)}}},[t._v(" "+t._s(t.$L("\u5220\u9664"))+" ")])],1)])])])}),0):a("div",{staticClass:"empty"},[a("div",{staticClass:"empty-text"},[t._v(t._s(t.$L("\u5F53\u524D\u9879\u76EE\u6682\u65E0\u4EFB\u52A1\u6A21\u677F")))]),a("Button",{attrs:{type:"primary",icon:"md-add"},on:{click:t.handleAdd}},[t._v(t._s(t.$L("\u65B0\u5EFA\u6A21\u677F")))])],1)],1),a("Modal",{attrs:{title:t.editingTemplate.id?t.$L("\u7F16\u8F91\u6A21\u677F"):t.$L("\u65B0\u5EFA\u6A21\u677F"),"mask-closable":!1},model:{value:t.showEditModal,callback:function(s){t.showEditModal=s},expression:"showEditModal"}},[a("Form",t._b({ref:"editForm",attrs:{model:t.editingTemplate,rules:t.formRules},nativeOn:{submit:function(s){s.preventDefault()}}},"Form",t.formOptions,!1),[a("FormItem",{attrs:{prop:"name",label:t.$L("\u6A21\u677F\u540D\u79F0")}},[a("Input",{ref:"templateName",attrs:{disabled:t.systemTemplateIsMultiple,placeholder:t.$L("\u8BF7\u8F93\u5165\u6A21\u677F\u540D\u79F0")},model:{value:t.editingTemplate.name,callback:function(s){t.$set(t.editingTemplate,"name",s)},expression:"editingTemplate.name"}})],1),a("FormItem",{attrs:{prop:"title",label:t.$L("\u4EFB\u52A1\u6807\u9898")}},[a("Input",{attrs:{disabled:t.systemTemplateIsMultiple,placeholder:t.$L("\u8BF7\u8F93\u5165\u4EFB\u52A1\u6807\u9898")},model:{value:t.editingTemplate.title,callback:function(s){t.$set(t.editingTemplate,"title",s)},expression:"editingTemplate.title"}})],1),a("FormItem",{attrs:{prop:"content",label:t.$L("\u4EFB\u52A1\u5185\u5BB9")}},[a("Input",{attrs:{type:"textarea",disabled:t.systemTemplateIsMultiple,placeholder:t.$L("\u8BF7\u8F93\u5165\u4EFB\u52A1\u5185\u5BB9"),autosize:{minRows:4,maxRows:12}},model:{value:t.editingTemplate.content,callback:function(s){t.$set(t.editingTemplate,"content",s)},expression:"editingTemplate.content"}})],1),t.editingTemplate.id?t._e():a("FormItem",[a("div",{staticClass:"project-task-template-system"},[t.systemTemplateShow?a("ul",[a("li",{class:{selected:t.systemTemplateIsMultiple},on:{click:function(s){t.systemTemplateIsMultiple=!t.systemTemplateIsMultiple}}},[a("i",{staticClass:"taskfont",domProps:{innerHTML:t._s(t.systemTemplateIsMultiple?"":"")}}),t._v(" "+t._s(t.$L("\u591A\u9009"))+" ")]),t._l(t.systemTemplateData,function(s,n){return a("li",{key:n,class:{selected:t.systemTemplateIsMultiple&&t.systemTemplateMultipleData.indexOf(s)!==-1},on:{click:function(i){return t.useSystemTemplate(s)}}},[t._v(t._s(s.name))])})],2):a("div",{staticClass:"tip-title",on:{click:t.onSystemTemplate}},[t._v(t._s(t.$L("\u4F7F\u7528\u793A\u4F8B\u6A21\u677F")))])])])],1),a("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{type:"default"},on:{click:function(s){t.showEditModal=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),a("Button",{attrs:{type:"primary",loading:t.loadIng>0},on:{click:t.handleSave}},[t._v(" "+t._s(t.$L("\u4FDD\u5B58"))+" "+t._s(t.systemTemplateIsMultiple&&t.systemTemplateMultipleData.length>0?` (${t.systemTemplateMultipleData.length})`:"")+" ")])],1)],1)],1)},Ot=[];const Rt={name:"ProjectTaskTemplate",components:{VMPreviewNostyle:tt,Draggable:k},props:{projectId:{type:[Number,String],required:!0}},data(){return{loadIng:0,templates:[],sortMode:!1,sortLoading:!1,showEditModal:!1,editingTemplate:this.getEmptyTemplate(),formRules:{name:[{required:!0,message:this.$L("\u8BF7\u8F93\u5165\u6A21\u677F\u540D\u79F0"),trigger:"blur"}]},systemTemplateShow:!1,systemTemplateData:[],systemTemplateIsMultiple:!1,systemTemplateMultipleData:[]}},computed:{...f(["formOptions"])},created(){this.loadTemplates()},watch:{showEditModal(t){t||(this.$refs.editForm.resetFields(),this.systemTemplateShow=!1,this.systemTemplateIsMultiple=!1)}},methods:{getEmptyTemplate(){return{id:null,project_id:this.projectId,name:"",title:"",content:"",is_default:!1}},toggleSortMode(){this.sortLoading||(this.sortMode=!this.sortMode)},async handleSortEnd(t){if(!this.sortMode||t&&t.oldIndex===t.newIndex)return;const e=this.templates.map(a=>a.id);if(!!e.length){this.sortLoading=!0;try{const{msg:a}=await this.$store.dispatch("call",{url:"project/task/template_sort",method:"post",data:{project_id:this.projectId,list:e},spinner:2e3});$A.messageSuccess(a||"\u6392\u5E8F\u5DF2\u4FDD\u5B58"),await this.loadTemplates()}catch({msg:a}){$A.messageError(a||"\u6392\u5E8F\u4FDD\u5B58\u5931\u8D25"),await this.loadTemplates()}finally{this.sortLoading=!1}}},async loadTemplates(){this.loadIng++;try{const{data:t}=await this.$store.dispatch("call",{url:"project/task/template_list",data:{project_id:this.projectId},spinner:3e3});this.templates=t||[],this.templates.length||(this.sortMode=!1)}catch({msg:t}){$A.messageError(t||"\u52A0\u8F7D\u6A21\u677F\u5931\u8D25")}finally{this.loadIng--}},handleAdd(){this.editingTemplate=this.getEmptyTemplate(),this.showEditModal=!0},handleEdit(t){this.editingTemplate={...t},this.showEditModal=!0},async handleSave(){if(!this.editingTemplate.name){$A.messageWarning("\u8BF7\u8F93\u5165\u6A21\u677F\u540D\u79F0");return}let t=[];if(this.systemTemplateIsMultiple){if(this.systemTemplateMultipleData.length===0){$A.messageWarning("\u8BF7\u9009\u62E9\u793A\u4F8B\u6A21\u677F");return}t=this.systemTemplateMultipleData.map(e=>{const a={...this.editingTemplate,id:null,name:e.name,title:e.title,content:e.content};return this.handleSaveCall(a)})}else t.push(this.handleSaveCall(this.editingTemplate));try{const e=await Promise.all(t);$A.messageSuccess(e.length===1?e[0].msg:"\u5168\u90E8\u4FDD\u5B58\u6210\u529F"),this.showEditModal=!1,this.loadTemplates()}catch(e){$A.messageError(e.msg||"\u4FDD\u5B58\u5931\u8D25")}},async handleSaveCall(t){this.loadIng++;try{return await this.$store.dispatch("call",{url:"project/task/template_save",data:t,method:"post",spinner:3e3})}finally{this.loadIng--}},async handleDelete(t){$A.modalConfirm({title:"\u786E\u8BA4\u5220\u9664",content:"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6A21\u677F\u5417\uFF1F",onOk:async()=>{this.loadIng++;try{const{msg:e}=await this.$store.dispatch("call",{url:"project/task/template_delete",data:{id:t.id},spinner:3e3});$A.messageSuccess(e||"\u5220\u9664\u6210\u529F"),await this.loadTemplates()}catch({msg:e}){$A.messageError(e||"\u5220\u9664\u5931\u8D25")}finally{this.loadIng--}}})},async handleSetDefault(t){this.loadIng++;try{const{msg:e}=await this.$store.dispatch("call",{url:"project/task/template_default",data:{id:t.id,project_id:this.projectId},spinner:3e3});$A.messageSuccess(e||"\u8BBE\u7F6E\u6210\u529F"),await this.loadTemplates()}catch({msg:e}){$A.messageError(e||"\u8BBE\u7F6E\u5931\u8D25")}finally{this.loadIng--}},onSystemTemplate(){this.systemTemplateData=typeof D[M]=="undefined"?D.en:D[M],this.systemTemplateShow=!0},useSystemTemplate(t){if(this.editingTemplate.name=t.name,this.editingTemplate.title=t.title,this.editingTemplate.content=t.content,this.systemTemplateIsMultiple){const e=this.systemTemplateMultipleData.indexOf(t);e===-1?this.systemTemplateMultipleData.push(t):this.systemTemplateMultipleData.splice(e,1)}}}},W={};var Wt=x(Rt,Ft,Ot,!1,zt,null,null,null);function zt(t){for(let e in W)this[e]=W[e]}var Bt=function(){return Wt.exports}(),Nt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"project-workflow"},[a("div",{staticClass:"workflow-title"},[t._v(" "+t._s(t.$L("\u5DE5\u4F5C\u6D41\u8BBE\u7F6E"))+" "),a("div",{staticClass:"title-icon"},[t.loadIng>0?a("Loading"):a("Icon",{attrs:{type:"ios-refresh"},on:{click:t.getData}})],1)]),t.list.length>0?a("div",{staticClass:"workflow-content"},[a("Collapse",{attrs:{accordion:""},model:{value:t.openIndex,callback:function(s){t.openIndex=s},expression:"openIndex"}},t._l(t.list,function(s){return a("Panel",{key:s.id,attrs:{name:"index_"+s.id}},[a("div",{staticClass:"workflow-item"},[a("div",{staticClass:"workflow-name"},[t._v(t._s(s.name))]),a("div",{staticClass:"workflow-status"},t._l(s.project_flow_item,function(n){return a("div",{key:n.id,class:n.status,style:t.$A.generateColorVarStyle(n.color,[10],"flow-item-custom-color")},[t._v(" "+t._s(n.name)+" ")])}),0),a("div",{staticClass:"workflow-save",on:{click:function(n){n.stopPropagation()}}},[t.contrast(s.project_flow_item,s.project_flow_bak)?[a("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:function(n){return t.onSave(s)}}},[t._v(t._s(t.$L("\u4FDD\u5B58")))]),s.id>0?a("Button",{attrs:{disabled:t.loadIng>0,type:"primary",ghost:""},on:{click:function(n){return t.onReduction(s,n)}}},[t._v(t._s(t.$L("\u8FD8\u539F")))]):t._e()]:t._e(),a("Button",{attrs:{disabled:t.loadIng>0,type:"error",ghost:""},on:{click:function(n){return t.onDelete(s)}}},[t._v(t._s(t.$L("\u5220\u9664")))])],2)]),a("div",{staticClass:"taskflow-config",attrs:{slot:"content"},slot:"content"},[t.flowRulesMap[s.id]&&t.flowRulesMap[s.id].length>0?a("div",{staticClass:"taskflow-config-rules"},[a("div",{staticClass:"rules-title"},[a("Icon",{attrs:{type:"md-list-box"}}),a("span",[t._v(t._s(t.$L("\u5DE5\u4F5C\u6D41\u89C4\u5219")))])],1),a("div",{staticClass:"rules-list"},t._l(t.flowRulesMap[s.id],function(n,i){return a("div",{key:i,staticClass:"rules-item"},[n.type==="owner"?[a("span",[t._v(t._s(t.$L("\u6D41\u8F6C\u5230")))]),a("span",{staticClass:"rule-status",class:n.status},[t._v(t._s(n.name))]),n.usertype==="add"?a("span",[t._v(t._s(t.$L("\u65F6\u6DFB\u52A0")))]):a("span",[t._v(t._s(t.$L("\u65F6\u6539\u53D8\u4EFB\u52A1\u8D1F\u8D23\u4EBA\u4E3A")))]),t._l(n.userids,function(o,r){return a("UserAvatar",{key:`${i}_${r}`,attrs:{userid:o,size:20,borderWidth:1,showName:""}})}),n.usertype==="add"?a("span",[t._v(t._s(t.$L("\u81F3\u4EFB\u52A1\u8D1F\u8D23\u4EBA")))]):n.usertype==="merge"?a("span",[t._v(t._s(t.$L("\uFF08\u5E76\u4FDD\u7559\u64CD\u4F5C\u4EBA\uFF09\uFF0C\u539F\u8D1F\u8D23\u4EBA\u79FB\u81F3\u534F\u52A9\u4EBA\u5458")))]):a("span",[t._v(t._s(t.$L("\uFF0C\u539F\u8D1F\u8D23\u4EBA\u79FB\u81F3\u534F\u52A9\u4EBA\u5458")))])]:n.type==="limit"?[a("span",{staticClass:"rule-status",class:n.status},[t._v(t._s(n.name))]),a("span",[t._v(t._s(t.$L("\u4EC5\u9650\u4EFB\u52A1\u8D1F\u8D23\u4EBA\u548C\u9879\u76EE\u7BA1\u7406\u5458\u4FEE\u6539\u72B6\u6001")))])]:n.type==="column"?[a("span",[t._v(t._s(t.$L("\u6D41\u8F6C\u5230")))]),a("span",{staticClass:"rule-status",class:n.status},[t._v(t._s(n.name))]),a("span",[t._v(t._s(t.$L("\u65F6\u81EA\u52A8\u5C06\u4EFB\u52A1\u79FB\u52A8\u81F3\u5217\u8868")))]),a("span",{staticClass:"rule-column"},[t._v(t._s(n.columnName))])]:t._e()],2)}),0)]):t._e(),a("div",{staticClass:"taskflow-config-table"},[a("div",{staticClass:"taskflow-config-table-left-container"},[a("div",{staticClass:"taskflow-config-table-column-header left-header"},[t._v(t._s(t.$L("\u914D\u7F6E\u9879")))]),a("div",{ref:`overlay_${s.id}`,refInFor:!0,staticClass:"taskflow-config-table-column-body"},[a("div",{staticClass:"taskflow-config-table-block"},[a("div",{staticClass:"taskflow-config-table-block-title"},[t._v(t._s(t.$L("\u8BBE\u7F6E\u72B6\u6001\u4E3A")))]),a("div",{staticClass:"taskflow-config-table-block-item"},[a("div",[a("div",{staticClass:"title"},[t._v(t._s(t.$L("\u5F00\u59CB\u72B6\u6001")))]),a("div",{staticClass:"subtitle"},[t._v(t._s(t.$L("\u65B0\u5EFA\u4EFB\u52A1\u9ED8\u8BA4\u72B6\u6001")))])])]),a("div",{staticClass:"taskflow-config-table-block-item"},[a("div",[a("div",{staticClass:"title"},[t._v(t._s(t.$L("\u8FDB\u884C\u4E2D")))]),a("div",{staticClass:"subtitle"},[t._v(t._s(t.$L("\u53EF\u8BBE\u7F6E\u591A\u4E2A\u72B6\u6001\u4E3A\u8FDB\u884C\u4E2D")))])])]),a("div",{staticClass:"taskflow-config-table-block-item"},[a("div",[a("div",{staticClass:"title"},[t._v(t._s(t.$L("\u9A8C\u6536/\u6D4B\u8BD5")))]),a("div",{staticClass:"subtitle"},[t._v(t._s(t.$L("\u53EA\u80FD\u8BBE\u7F6E\u5355\u4E2A\u72B6\u6001\u4E3A\u9A8C\u6536/\u6D4B\u8BD5")))])])]),a("div",{staticClass:"taskflow-config-table-block-item"},[a("div",[a("div",{staticClass:"title"},[t._v(t._s(t.$L("\u7ED3\u675F\u72B6\u6001")))]),a("div",{staticClass:"subtitle"},[t._v(t._s(t.$L("\u8BE5\u72B6\u6001\u4E0B\u4EFB\u52A1\u81EA\u52A8\u6807\u8BB0\u5B8C\u6210")))])])])]),a("div",{staticClass:"taskflow-config-table-block hr"},[a("div",{staticClass:"taskflow-config-table-block-title"},[t._v(t._s(t.$L("\u53EF\u6D41\u8F6C\u5230")))]),t._l(s.project_flow_item,function(n){return a("div",{key:n.id,staticClass:"taskflow-config-table-block-item"},[a("span",{staticClass:"transform-status-name"},[t._v(t._s(n.name))])])})],2)])]),a("div",{staticClass:"taskflow-config-table-right-container"},[a("Draggable",{staticClass:"taskflow-config-table-list-wrapper",attrs:{list:s.project_flow_item,animation:150,disabled:t.$isEEUIApp||t.windowTouch,tag:"div",draggable:".column-border"},on:{sort:function(){}}},[t._l(s.project_flow_item,function(n,i){return a("div",{key:i,staticClass:"taskflow-config-table-status-column column-border",class:n.status,style:t.$A.generateColorVarStyle(n.color,[10,20,70],"flow-item-custom-color")},[a("div",{staticClass:"taskflow-config-table-status-item taskflow-config-table-column-header"},[a("div",{staticClass:"status-label-with-menu",class:n.status},[a("div",{staticClass:"name"},[t._v(t._s(n.name))]),a("EDropdown",{staticClass:"more",class:{opacity:n.userids.length>0||n.columnid>0},attrs:{trigger:"click"},on:{command:function(o){return t.onMore(o,n)}}},[a("div",{staticClass:"more-icon"},[a("Badge",{attrs:{dot:n.userids.length>0||n.columnid>0}},[a("Icon",{attrs:{type:"ios-more"}})],1)],1),a("EDropdownMenu",{staticClass:"taskflow-config-more-dropdown-menu",attrs:{slot:"dropdown"},slot:"dropdown"},[a("li",{staticClass:"taskflow-config-more-dropdown-warp"},[a("ul",[n.userids.length>0?a("EDropdownItem",{attrs:{command:"user"}},[a("div",{staticClass:"users"},t._l(n.userids,function(o,r){return a("UserAvatar",{key:r,attrs:{userid:o,size:28,borderWidth:1,showName:n.userids.length===1}})}),1)]):t._e(),a("EDropdownItem",{attrs:{command:"user"}},[a("div",{staticClass:"item"},[a("Icon",{attrs:{type:"md-settings"}}),a("Badge",{attrs:{dot:n.userids.length>0||n.columnid>0}},[t._v(" "+t._s(t.$L("\u72B6\u6001\u8BBE\u7F6E"))+" ")])],1)]),a("EDropdownItem",{attrs:{command:"name"}},[a("div",{staticClass:"item"},[a("Icon",{attrs:{type:"md-create"}}),t._v(t._s(t.$L("\u4FEE\u6539\u540D\u79F0"))+" ")],1)]),a("EDropdownItem",{attrs:{command:"remove"}},[a("div",{staticClass:"item delete"},[a("Icon",{attrs:{type:"md-trash"}}),t._v(t._s(t.$L("\u5220\u9664"))+" ")],1)]),t._l(t.$store.state.columnColorList,function(o,r){return a("EDropdownItem",{key:r,attrs:{divided:r==0,command:o}},[a("div",{staticClass:"item"},[a("i",{staticClass:"taskfont",style:{color:o.color||"#ddd"},domProps:{innerHTML:t._s(o.color==n.color?"":"")}}),t._v(t._s(t.$L(o.name))+" ")])])})],2)])])],1)],1)]),a("div",{ref:`overlay_${s.id}`,refInFor:!0,staticClass:"taskflow-config-table-column-body"},[a("div",{staticClass:"taskflow-config-table-block"},[a("div",{staticClass:"taskflow-config-table-block-title"}),a("RadioGroup",{model:{value:n.status,callback:function(o){t.$set(n,"status",o)},expression:"item.status"}},[a("Radio",{attrs:{label:"start"}},[a("span")]),a("Radio",{attrs:{label:"progress"}},[a("span")]),a("Radio",{attrs:{label:"test"}},[a("span")]),a("Radio",{attrs:{label:"end"}},[a("span")])],1)],1),a("div",{staticClass:"taskflow-config-table-block"},[a("div",{staticClass:"taskflow-config-table-block-title"}),a("CheckboxGroup",{on:{"on-change":function(o){return t.onTurns(n)}},model:{value:n.turns,callback:function(o){t.$set(n,"turns",o)},expression:"item.turns"}},t._l(s.project_flow_item,function(o){return a("Checkbox",{key:o.id,attrs:{label:o.id,disabled:o.id==n.id}},[a("span")])}),1)],1)])])}),a("div",{staticClass:"taskflow-config-table-status-column addnew",on:{click:function(n){return t.onAdd(s)}}},[t._v(t._s(t.$L("\u6DFB\u52A0\u72B6\u6001")))])],2)],1)])])])}),1)],1):t.loadIng==0?a("div",{staticClass:"workflow-no"},[t._v(" "+t._s(t.$L("\u5F53\u524D\u9879\u76EE\u8FD8\u6CA1\u6709\u521B\u5EFA\u5DE5\u4F5C\u6D41"))+" "),a("Button",{attrs:{type:"primary",icon:"md-add"},on:{click:t.onCreate}},[t._v(t._s(t.$L("\u521B\u5EFA\u5DE5\u4F5C\u6D41")))])],1):t._e(),a("Modal",{attrs:{styles:{width:"90%",maxWidth:"640px"},title:`${t.$L("\u72B6\u6001\u8BBE\u7F6E")} (${t.settingData.name})`,"mask-closable":!1},model:{value:t.userShow,callback:function(s){t.userShow=s},expression:"userShow"}},[a("Form",t._b({attrs:{model:t.settingData},nativeOn:{submit:function(s){s.preventDefault()}}},"Form",t.formOptions,!1),[a("div",{staticClass:"workflow-setting-box"},[a("h3",[t._v(t._s(t.$L("\u72B6\u6001\u8D1F\u8D23\u4EBA")))]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{prop:"userids",label:t.$L("\u72B6\u6001\u8D1F\u8D23\u4EBA")}},[a("UserSelect",{attrs:{"project-id":t.projectId,"multiple-max":5,title:t.$L("\u9009\u62E9\u72B6\u6001\u8D1F\u8D23\u4EBA")},model:{value:t.settingData.userids,callback:function(s){t.$set(t.settingData,"userids",s)},expression:"settingData.userids"}})],1),a("FormItem",{attrs:{prop:"usertype",label:t.$L("\u6D41\u8F6C\u6A21\u5F0F")}},[a("RadioGroup",{model:{value:t.settingData.usertype,callback:function(s){t.$set(t.settingData,"usertype",s)},expression:"settingData.usertype"}},[a("Radio",{attrs:{label:"add"}},[t._v(t._s(t.$L("\u6DFB\u52A0\u6A21\u5F0F")))]),a("Radio",{attrs:{label:"replace"}},[t._v(t._s(t.$L("\u6D41\u8F6C\u6A21\u5F0F")))]),a("Radio",{attrs:{label:"merge"}},[t._v(t._s(t.$L("\u5254\u9664\u6A21\u5F0F")))])],1),t.settingData.usertype=="replace"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u6D41\u8F6C\u5230\u3010(*)\u3011\u65F6\u6539\u53D8\u4EFB\u52A1\u8D1F\u8D23\u4EBA\u4E3A\u72B6\u6001\u8D1F\u8D23\u4EBA\uFF0C\u539F\u672C\u7684\u4EFB\u52A1\u8D1F\u8D23\u4EBA\u79FB\u81F3\u534F\u52A9\u4EBA\u5458\u3002",t.settingData.name)))]):t.settingData.usertype=="merge"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u6D41\u8F6C\u5230\u3010(*)\u3011\u65F6\u6539\u53D8\u4EFB\u52A1\u8D1F\u8D23\u4EBA\u4E3A\u72B6\u6001\u8D1F\u8D23\u4EBA\uFF08\u5E76\u4FDD\u7559\u64CD\u4F5C\u72B6\u6001\u7684\u4EBA\u5458\uFF09\uFF0C\u539F\u672C\u7684\u4EFB\u52A1\u8D1F\u8D23\u4EBA\u79FB\u81F3\u534F\u52A9\u4EBA\u5458\u3002",t.settingData.name)))]):a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u6D41\u8F6C\u5230\u3010(*)\u3011\u65F6\u6DFB\u52A0\u72B6\u6001\u8D1F\u8D23\u4EBA\u81F3\u4EFB\u52A1\u8D1F\u8D23\u4EBA\u3002",t.settingData.name)))])],1),a("FormItem",{attrs:{prop:"userlimit",label:t.$L("\u9650\u5236\u8D1F\u8D23\u4EBA")}},[a("iSwitch",{attrs:{"true-value":1,"false-value":0},model:{value:t.settingData.userlimit,callback:function(s){t.$set(t.settingData,"userlimit",s)},expression:"settingData.userlimit"}}),t.settingData.userlimit===1?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u6D41\u8F6C\u5230\u3010(*)\u3011\u65F6\uFF0C[\u4EFB\u52A1\u8D1F\u8D23\u4EBA] \u548C [\u9879\u76EE\u7BA1\u7406\u5458] \u53EF\u4EE5\u4FEE\u6539\u72B6\u6001\u3002",t.settingData.name)))]):a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u6D41\u8F6C\u5230\u3010(*)\u3011\u65F6\uFF0C[\u4EFB\u52A1\u8D1F\u8D23\u4EBA] \u548C [\u9879\u76EE\u7BA1\u7406\u5458] \u53EF\u4EE5\u4FEE\u6539\u72B6\u6001\u3002",t.settingData.name)))])],1)],1)]),a("div",{staticClass:"workflow-setting-box"},[a("h3",[t._v(t._s(t.$L("\u5173\u8054\u5217\u8868")))]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{prop:"usertype",label:t.$L("\u5173\u8054\u5217\u8868")}},[a("Select",{attrs:{placeholder:t.$L("\u9009\u62E9\u5173\u8054\u5217\u8868"),transfer:""},model:{value:t.settingData.columnid,callback:function(s){t.$set(t.settingData,"columnid",s)},expression:"settingData.columnid"}},t._l(t.columnList,function(s,n){return a("Option",{key:n,attrs:{value:s.id}},[t._v(t._s(s.name))])}),1),a("div",{staticClass:"form-tip"},[t._v(" "+t._s(t.$L("\u6D41\u8F6C\u5230\u3010(*)\u3011\u65F6\u81EA\u52A8\u5C06\u4EFB\u52A1\u79FB\u52A8\u81F3\u5173\u8054\u5217\u8868\u3002",t.settingData.name))+" "),t.settingData.columnid?a("a",{attrs:{href:"javascript:void(0)"},on:{click:function(s){t.settingData.columnid=0}}},[t._v(t._s(t.$L("\u53D6\u6D88\u5173\u8054")))]):t._e()])],1)],1)])]),a("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{type:"default"},on:{click:function(s){t.userShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),a("Button",{attrs:{type:"primary"},on:{click:t.onUser}},[t._v(t._s(t.$L("\u4FDD\u5B58")))])],1)],1)],1)},Vt=[];const Gt={name:"ProjectWorkflow",components:{UserSelect:et,Draggable:k},props:{projectId:{type:Number,default:0}},data(){return{loadIng:0,list:[],openIndex:"",userShow:!1,settingData:{}}},mounted(){},computed:{...f(["cacheColumns","formOptions"]),columnList({projectId:t,cacheColumns:e}){return e.filter(({project_id:a})=>a==t).sort((a,s)=>a.sort!=s.sort?$A.sortFloat(a.sort,s.sort):a.id-s.id).map(a=>({id:a.id,name:a.name}))},flowRulesMap(){const t={},e={};return this.columnList.forEach(a=>{e[a.id]=a.name}),this.list.forEach(a=>{const s=[];a.project_flow_item.forEach(n=>{n.userids&&n.userids.length>0&&s.push({type:"owner",name:n.name,status:n.status,userids:n.userids,usertype:n.usertype}),n.userlimit===1&&s.push({type:"limit",name:n.name,status:n.status}),n.columnid&&e[n.columnid]&&s.push({type:"column",name:n.name,status:n.status,columnName:e[n.columnid]})}),t[a.id]=s}),t}},watch:{projectId:{handler(t){t&&this.getData()},immediate:!0}},methods:{getData(){this.loadIng++,this.$store.dispatch("call",{url:"project/flow/list",data:{project_id:this.projectId}}).then(({data:t})=>{this.list=t.map(e=>(e.project_flow_bak=JSON.stringify(e.project_flow_item),e)),this.openIndex=this.list.length===1?"index_"+this.list[0].id:"",this.$nextTick(this.syncScroller)}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.loadIng--})},syncScroller(){this.list.some(t=>{this.$refs[`overlay_${t.id}`]&&this.$refs[`overlay_${t.id}`].some(e=>{Object.keys(e.attributes).includes("sync-scroller")||(e.setAttribute("sync-scroller",!0),e.addEventListener("scroll",({target:a})=>{let s=a.scrollTop,n=a.scrollLeft;this.$nextTick(()=>{this.$refs[`overlay_${t.id}`].some(i=>{i!=e&&i.scrollTo(n,s)})})}))})})},contrast(t,e){return JSON.stringify(t)!=e},existDiff(){return!!this.list.find(t=>this.contrast(t.project_flow_item,t.project_flow_bak))},onCreate(){let t=-1*$A.randNum(1e3,1e4);this.list.push({id:t,name:"Default",project_flow_item:[{id:-10,name:this.$L("\u5F85\u5904\u7406"),status:"start",turns:[-10,-11,-12,-13,-14],userids:[],usertype:"add",userlimit:0,columnid:0},{id:-11,name:this.$L("\u8FDB\u884C\u4E2D"),status:"progress",turns:[-10,-11,-12,-13,-14],userids:[],usertype:"add",userlimit:0,columnid:0},{id:-12,name:this.$L("\u5F85\u6D4B\u8BD5"),status:"test",turns:[-10,-11,-12,-13,-14],userids:[],usertype:"add",userlimit:0,columnid:0},{id:-13,name:this.$L("\u5DF2\u5B8C\u6210"),status:"end",turns:[-10,-11,-12,-13,-14],userids:[],usertype:"add",userlimit:0,columnid:0},{id:-14,name:this.$L("\u5DF2\u53D6\u6D88"),status:"end",color:"#999999",turns:[-10,-11,-12,-13,-14],userids:[],usertype:"add",userlimit:0,columnid:0}]}),this.openIndex="index_"+t,this.$nextTick(this.syncScroller)},onDelete(t){$A.modalConfirm({title:"\u5220\u9664\u5DE5\u4F5C\u6D41",content:"\u4F60\u786E\u5B9A\u8981\u5220\u9664\u5DE5\u4F5C\u6D41\u5417\uFF1F",loading:!0,onOk:()=>{if(t.id>0)return new Promise((a,s)=>{this.loadIng++,this.$store.dispatch("call",{url:"project/flow/delete",data:{project_id:this.projectId}}).then(({msg:n})=>{a(n);let i=this.list.findIndex(({id:o})=>o==t.id);i>-1&&this.list.splice(i,1)}).catch(({msg:n})=>{s(n)}).finally(n=>{this.loadIng--})});const e=this.list.findIndex(({id:a})=>a==t.id);e>-1&&this.list.splice(e,1)}})},onMore(t,e){switch(t){case"user":this.$set(this.settingData,"id",e.id),this.$set(this.settingData,"name",e.name),this.$set(this.settingData,"userids",e.userids),this.$set(this.settingData,"usertype",e.usertype),this.$set(this.settingData,"userlimit",e.userlimit),this.$set(this.settingData,"columnid",e.columnid),this.userShow=!0;break;case"name":this.onName(e);break;case"remove":this.onRemove(e);break;default:t.name&&this.$set(e,"color",t.color)}},onUser(){this.userShow=!1,this.list.some(t=>{let e=t.project_flow_item.find(a=>a.id==this.settingData.id);e&&(this.$set(e,"userids",this.settingData.userids),this.$set(e,"usertype",this.settingData.usertype),this.$set(e,"userlimit",this.settingData.userlimit),this.$set(e,"columnid",this.settingData.columnid))})},onName(t){$A.modalInput({value:t.name,title:"\u4FEE\u6539\u540D\u79F0",placeholder:"\u8BF7\u8F93\u5165\u6D41\u7A0B\u540D\u79F0",onOk:e=>{if(!e)return"\u8BF7\u8F93\u5165\u6D41\u7A0B\u540D\u79F0";this.$set(t,"name",e)}})},onRemove(t){this.list.some(e=>{let a=e.project_flow_item.findIndex(({id:s})=>s==t.id);a>-1&&e.project_flow_item.splice(a,1)})},onTurns(t){this.$set(t,"turns",t.turns.sort())},onAdd(t){$A.modalInput({title:"\u6DFB\u52A0\u72B6\u6001",placeholder:"\u8BF7\u8F93\u5165\u72B6\u6001\u540D\u79F0",onOk:e=>{if(!e)return"\u8BF7\u8F93\u5165\u72B6\u6001\u540D\u79F0";const a=$A.randNum(1e5,999999)*-1,s=t.project_flow_item.map(({id:n})=>n);t.project_flow_item.push({id:a,name:e,status:"end",turns:s,userids:[],usertype:"add",userlimit:0,columnid:0}),t.project_flow_item.some(n=>{n.turns.push(a)})}})},onReduction(t){this.$set(t,"project_flow_item",JSON.parse(t.project_flow_bak))},onSave(t){let e=0;t.project_flow_item.some(a=>{a.sort=e++}),this.loadIng++,this.$store.dispatch("call",{url:"project/flow/save",data:{project_id:this.projectId,flows:t.project_flow_item},method:"post"}).then(({data:a,msg:s})=>{$.messageSuccess(s),a.project_flow_bak=JSON.stringify(a.project_flow_item);let n=this.list.findIndex(({id:i})=>i==t.id);n>-1?this.list.splice(n,1,a):this.list.push(a),this.openIndex="index_"+a.id,this.$nextTick(this.syncScroller)}).catch(({msg:a})=>{$A.modalError(a)}).finally(a=>{this.loadIng--})},saveAll(){this.list.some(t=>{this.contrast(t.project_flow_item,t.project_flow_bak)&&this.onSave(t)})}}},z={};var Ut=x(Gt,Nt,Vt,!1,Kt,null,null,null);function Kt(t){for(let e in z)this[e]=z[e]}var Ht=function(){return Ut.exports}(),Yt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"project-permission"},[a("div",{staticClass:"permission-title"},[t._v(" "+t._s(t.$L("\u6743\u9650\u8BBE\u7F6E"))+" "),a("div",{staticClass:"title-icon"},[t.loadIng>0?a("Loading"):a("Icon",{attrs:{type:"ios-refresh"},on:{click:function(s){return t.getData()}}})],1)]),a("div",{staticClass:"permission-content"},[a("Form",t._b({attrs:{model:t.formData},nativeOn:{submit:function(s){s.preventDefault()}}},"Form",t.formOptions,!1),[a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("\u4EFB\u52A1\u5217\u6743\u9650")))]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("\u6DFB\u52A0\u5217")}},[a("CheckboxGroup",{model:{value:t.formData.task_list_add,callback:function(s){t.$set(t.formData,"task_list_add",s)},expression:"formData.task_list_add"}},[a("Checkbox",{attrs:{label:1,disabled:""}},[t._v(t._s(t.$L("\u9879\u76EE\u8D1F\u8D23\u4EBA")))]),a("Checkbox",{attrs:{label:2}},[t._v(t._s(t.$L("\u9879\u76EE\u6210\u5458")))])],1)],1),a("FormItem",{attrs:{label:t.$L("\u4FEE\u6539\u5217")}},[a("CheckboxGroup",{model:{value:t.formData.task_list_update,callback:function(s){t.$set(t.formData,"task_list_update",s)},expression:"formData.task_list_update"}},[a("Checkbox",{attrs:{label:1,disabled:""}},[t._v(t._s(t.$L("\u9879\u76EE\u8D1F\u8D23\u4EBA")))]),a("Checkbox",{attrs:{label:2}},[t._v(t._s(t.$L("\u9879\u76EE\u6210\u5458")))])],1)],1),a("FormItem",{attrs:{label:t.$L("\u5220\u9664\u5217")}},[a("CheckboxGroup",{model:{value:t.formData.task_list_remove,callback:function(s){t.$set(t.formData,"task_list_remove",s)},expression:"formData.task_list_remove"}},[a("Checkbox",{attrs:{label:1,disabled:""}},[t._v(t._s(t.$L("\u9879\u76EE\u8D1F\u8D23\u4EBA")))]),a("Checkbox",{attrs:{label:2}},[t._v(t._s(t.$L("\u9879\u76EE\u6210\u5458")))])],1)],1),a("FormItem",{attrs:{label:t.$L("\u6392\u5E8F\u5217")}},[a("CheckboxGroup",{model:{value:t.formData.task_list_sort,callback:function(s){t.$set(t.formData,"task_list_sort",s)},expression:"formData.task_list_sort"}},[a("Checkbox",{attrs:{label:1,disabled:""}},[t._v(t._s(t.$L("\u9879\u76EE\u8D1F\u8D23\u4EBA")))]),a("Checkbox",{attrs:{label:2}},[t._v(t._s(t.$L("\u9879\u76EE\u6210\u5458")))])],1)],1)],1)]),a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("\u4EFB\u52A1\u6743\u9650")))]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("\u6DFB\u52A0\u4EFB\u52A1")}},[a("CheckboxGroup",{model:{value:t.formData.task_add,callback:function(s){t.$set(t.formData,"task_add",s)},expression:"formData.task_add"}},[a("Checkbox",{attrs:{label:1,disabled:""}},[t._v(t._s(t.$L("\u9879\u76EE\u8D1F\u8D23\u4EBA")))]),a("Checkbox",{attrs:{label:2}},[t._v(t._s(t.$L("\u9879\u76EE\u6210\u5458")))])],1)],1),a("FormItem",{attrs:{label:t.$L("\u4FEE\u6539\u4EFB\u52A1")}},[a("CheckboxGroup",{model:{value:t.formData.task_update,callback:function(s){t.$set(t.formData,"task_update",s)},expression:"formData.task_update"}},[a("Checkbox",{attrs:{label:1,disabled:""}},[t._v(t._s(t.$L("\u9879\u76EE\u8D1F\u8D23\u4EBA")))]),a("Checkbox",{attrs:{label:3}},[t._v(t._s(t.$L("\u4EFB\u52A1\u8D1F\u8D23\u4EBA")))]),a("Checkbox",{attrs:{label:4}},[t._v(t._s(t.$L("\u4EFB\u52A1\u534F\u52A9\u4EBA")))]),a("Checkbox",{attrs:{label:2}},[t._v(t._s(t.$L("\u9879\u76EE\u6210\u5458")))])],1)],1),a("FormItem",{attrs:{label:t.$L("\u4FEE\u6539\u65F6\u95F4")}},[a("CheckboxGroup",{model:{value:t.formData.task_time,callback:function(s){t.$set(t.formData,"task_time",s)},expression:"formData.task_time"}},[a("Checkbox",{attrs:{label:1,disabled:""}},[t._v(t._s(t.$L("\u9879\u76EE\u8D1F\u8D23\u4EBA")))]),a("Checkbox",{attrs:{label:3}},[t._v(t._s(t.$L("\u4EFB\u52A1\u8D1F\u8D23\u4EBA")))]),a("Checkbox",{attrs:{label:4}},[t._v(t._s(t.$L("\u4EFB\u52A1\u534F\u52A9\u4EBA")))]),a("Checkbox",{attrs:{label:2}},[t._v(t._s(t.$L("\u9879\u76EE\u6210\u5458")))])],1)],1),a("FormItem",{attrs:{label:t.$L("\u4FEE\u6539\u72B6\u6001")}},[a("CheckboxGroup",{model:{value:t.formData.task_status,callback:function(s){t.$set(t.formData,"task_status",s)},expression:"formData.task_status"}},[a("Checkbox",{attrs:{label:1,disabled:""}},[t._v(t._s(t.$L("\u9879\u76EE\u8D1F\u8D23\u4EBA")))]),a("Checkbox",{attrs:{label:3}},[t._v(t._s(t.$L("\u4EFB\u52A1\u8D1F\u8D23\u4EBA")))]),a("Checkbox",{attrs:{label:4}},[t._v(t._s(t.$L("\u4EFB\u52A1\u534F\u52A9\u4EBA")))]),a("Checkbox",{attrs:{label:2}},[t._v(t._s(t.$L("\u9879\u76EE\u6210\u5458")))])],1)],1),a("FormItem",{attrs:{label:t.$L("\u5F52\u6863\u4EFB\u52A1")}},[a("CheckboxGroup",{model:{value:t.formData.task_archived,callback:function(s){t.$set(t.formData,"task_archived",s)},expression:"formData.task_archived"}},[a("Checkbox",{attrs:{label:1,disabled:""}},[t._v(t._s(t.$L("\u9879\u76EE\u8D1F\u8D23\u4EBA")))]),a("Checkbox",{attrs:{label:3}},[t._v(t._s(t.$L("\u4EFB\u52A1\u8D1F\u8D23\u4EBA")))]),a("Checkbox",{attrs:{label:4}},[t._v(t._s(t.$L("\u4EFB\u52A1\u534F\u52A9\u4EBA")))]),a("Checkbox",{attrs:{label:2}},[t._v(t._s(t.$L("\u9879\u76EE\u6210\u5458")))])],1)],1),a("FormItem",{attrs:{label:t.$L("\u5220\u9664\u4EFB\u52A1")}},[a("CheckboxGroup",{model:{value:t.formData.task_remove,callback:function(s){t.$set(t.formData,"task_remove",s)},expression:"formData.task_remove"}},[a("Checkbox",{attrs:{label:1,disabled:""}},[t._v(t._s(t.$L("\u9879\u76EE\u8D1F\u8D23\u4EBA")))]),a("Checkbox",{attrs:{label:3}},[t._v(t._s(t.$L("\u4EFB\u52A1\u8D1F\u8D23\u4EBA")))]),a("Checkbox",{attrs:{label:4}},[t._v(t._s(t.$L("\u4EFB\u52A1\u534F\u52A9\u4EBA")))]),a("Checkbox",{attrs:{label:2}},[t._v(t._s(t.$L("\u9879\u76EE\u6210\u5458")))])],1)],1),a("FormItem",{attrs:{label:t.$L("\u79FB\u52A8\u4EFB\u52A1")}},[a("CheckboxGroup",{model:{value:t.formData.task_move,callback:function(s){t.$set(t.formData,"task_move",s)},expression:"formData.task_move"}},[a("Checkbox",{attrs:{label:1,disabled:""}},[t._v(t._s(t.$L("\u9879\u76EE\u8D1F\u8D23\u4EBA")))]),a("Checkbox",{attrs:{label:3}},[t._v(t._s(t.$L("\u4EFB\u52A1\u8D1F\u8D23\u4EBA")))]),a("Checkbox",{attrs:{label:4}},[t._v(t._s(t.$L("\u4EFB\u52A1\u534F\u52A9\u4EBA")))]),a("Checkbox",{attrs:{label:2}},[t._v(t._s(t.$L("\u9879\u76EE\u6210\u5458")))])],1)],1)],1)])])],1),a("div",{staticClass:"project-permission-footer",attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{type:"primary",loading:t.loadIng>0},on:{click:t.updateData}},[t._v(t._s(t.$L("\u4FEE\u6539")))]),a("Button",{attrs:{type:"default"},on:{click:t.onClose}},[t._v(t._s(t.$L("\u53D6\u6D88")))])],1)])},Jt=[];const Xt={name:"ProjectPermission",props:{projectId:{type:Number,default:0}},data(){return{loadIng:0,formData:{project_task_list:[],task_add:[],task_update:[],task_time:[],task_status:[],task_archived:[],task_remove:[],task_move:[]}}},watch:{projectId:{handler(t){t&&this.getData()},immediate:!0}},computed:{...f(["formOptions"])},methods:{getData(){this.loadIng++,this.$store.dispatch("call",{url:"project/permission",data:{project_id:this.projectId}}).then(({data:t})=>{this.formData=t.permissions}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.loadIng--})},updateData(){this.loadIng++,this.$store.dispatch("call",{url:"project/permission/update",method:"post",data:{project_id:this.projectId,...this.formData}}).then(({data:t})=>{this.formData=t.permissions,$A.messageSuccess("\u4FEE\u6539\u6210\u529F")}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.loadIng--})},onClose(){this.$emit("close")}}},B={};var qt=x(Xt,Yt,Jt,!1,Zt,null,null,null);function Zt(t){for(let e in B)this[e]=B[e]}var Qt=function(){return qt.exports}(),te=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"task-deleted"},[a("div",{staticClass:"deleted-title"},[t._v(" "+t._s(t.$L("\u5220\u9664\u7684\u4EFB\u52A1"))+" "),a("div",{staticClass:"title-icon"},[t.loadIng>0?a("Loading"):t._e()],1)]),a("div",{staticClass:"search-container lr"},[a("ul",[a("li",[a("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u5173\u952E\u8BCD"))+" ")]),a("div",{staticClass:"search-content"},[a("Input",{attrs:{placeholder:t.$L("ID\u3001\u540D\u79F0\u3001\u63CF\u8FF0..."),clearable:""},model:{value:t.keys.name,callback:function(s){t.$set(t.keys,"name",s)},expression:"keys.name"}})],1)]),a("li",[a("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u4EFB\u52A1\u72B6\u6001"))+" ")]),a("div",{staticClass:"search-content"},[a("Select",{attrs:{placeholder:t.$L("\u5168\u90E8")},model:{value:t.keys.status,callback:function(s){t.$set(t.keys,"status",s)},expression:"keys.status"}},[a("Option",{attrs:{value:""}},[t._v(t._s(t.$L("\u5168\u90E8")))]),t.flows.type==="group"?t._l(t.flows.groups,function(s,n){return a("OptionGroup",{key:n,attrs:{label:s.label}},t._l(s.items,function(i,o){return a("Option",{key:o,attrs:{value:i.id,label:i.name}},[a("div",{staticClass:"tag-dot",class:i.status,style:t.$A.generateColorVarStyle(i.color,[],"flow-item-custom-color")},[t._v(t._s(i.name))])])}),1)}):t._l(t.flows.items,function(s,n){return a("Option",{key:n,attrs:{value:s.id,label:s.name}},[a("div",{staticClass:"tag-dot",class:s.status,style:t.$A.generateColorVarStyle(s.color,[],"flow-item-custom-color")},[t._v(t._s(s.name))])])})],2)],1)]),a("li",[a("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u4EFB\u52A1\u6807\u7B7E"))+" ")]),a("div",{staticClass:"search-content"},[a("Select",{attrs:{placeholder:t.$L("\u5168\u90E8")},model:{value:t.keys.tag,callback:function(s){t.$set(t.keys,"tag",s)},expression:"keys.tag"}},[a("Option",{attrs:{value:""}},[t._v(t._s(t.$L("\u5168\u90E8")))]),t._l(t.tags,function(s){return a("Option",{key:s.id,attrs:{value:s.name,label:s.name}},[a("div",{staticClass:"tag-dot",style:{"--bg-color":s.color}},[t._v(" "+t._s(s.name)+" ")])])})],2)],1)]),a("li",{staticClass:"search-button"},[a("SearchButton",{attrs:{loading:t.loadIng>0,filtering:t.keyIs,placement:"right"},on:{search:t.onSearch,refresh:t.getLists,cancelFilter:function(s){t.keyIs=!1}}})],1)])]),a("div",{staticClass:"table-page-box"},[a("Table",{attrs:{columns:t.columns,data:t.list,loading:t.loadIng>0,"no-data-text":t.$L(t.noText),stripe:""}}),a("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)])},ee=[];const se={name:"TaskDeleted",components:{SearchButton:at},props:{projectId:{type:Number,default:0}},data(){return{loadIng:0,keys:{},keyIs:!1,columns:[{title:"ID",key:"id",width:80,render:(t,{row:e,column:a})=>t("TableAction",{props:{column:a,align:"left"}},[t("div",e.id)])},{title:this.$L("\u4EFB\u52A1\u540D\u79F0"),key:"name",minWidth:200,render:(t,{row:e})=>t("AutoTip",e.name)},{title:this.$L("\u4EFB\u52A1\u72B6\u6001"),key:"status",minWidth:100,render:(t,{row:e})=>{let a=e.flow_item_name;return a&&a.indexOf("|")!==-1?[,a]=a.split("|"):e.complete_at?a=this.$L("\u5DF2\u5B8C\u6210"):a=this.$L("\u672A\u5B8C\u6210"),t("AutoTip",a)}},{title:this.$L("\u4EFB\u52A1\u6807\u7B7E"),key:"tags",minWidth:100,render:(t,{row:e})=>e.task_tag.length==0?t("div","-"):t("AutoTip",e.task_tag.map(({name:a})=>a).join("\u3001"))},{title:this.$L("\u521B\u5EFA\u65F6\u95F4"),key:"created_at",width:168},{title:this.$L("\u5220\u9664\u65F6\u95F4"),key:"deleted_at",width:168},{title:this.$L("\u5220\u9664\u4EBA\u5458"),key:"deleted_userid",minWidth:100,render:(t,{row:e})=>e.deleted_userid?t("UserAvatar",{props:{userid:e.deleted_userid,size:24,showName:!0}}):t("span","-")},{title:this.$L("\u64CD\u4F5C"),align:"center",width:100,render:(t,e)=>{const a=[t("Poptip",{props:{title:this.$L("\u4F60\u786E\u5B9A\u8981\u8FD8\u539F\u5220\u9664\u5417\uFF1F"),confirm:!0,transfer:!0,placement:"left",okText:this.$L("\u786E\u5B9A"),cancelText:this.$L("\u53D6\u6D88")},style:{fontSize:"13px",cursor:"pointer",color:"#84C56A"},on:{"on-ok":()=>{this.recovery(e.row)}}},this.$L("\u8FD8\u539F"))];return t("TableAction",{props:{column:e.column}},a)}}],list:[],flowList:[],tags:[],page:1,pageSize:20,total:0,noText:""}},mounted(){this.getFlowData(),this.getTagData()},computed:{...f(["cacheTasks"]),flows({flowList:t}){const e=[];t.forEach(s=>{s.project_flow_item.forEach(n=>{const i=t.length>1?s.name+" - "+n.name:n.name;e.push({...n,id:"flow-"+n.id,label:i})})});const a=[{id:"completed",name:this.$L("\u5DF2\u5B8C\u6210"),status:"completed",label:this.$L("\u5DF2\u5B8C\u6210")},{id:"uncompleted",name:this.$L("\u672A\u5B8C\u6210"),status:"uncompleted",label:this.$L("\u672A\u5B8C\u6210")}];return e.length>0?{type:"group",groups:[{label:this.$L("\u6309\u5DE5\u4F5C\u6D41"),items:e},{label:this.$L("\u6309\u72B6\u6001"),items:a}]}:{type:"normal",items:a}}},watch:{projectId:{handler(){this.getLists()},immediate:!0},keyIs(t){t||(this.keys={},this.setPage(1))}},methods:{onSearch(){this.page=1,this.getLists()},async getFlowData(){let t=[];const e=this.projectId;try{const{data:a}=await this.$store.dispatch("call",{url:"project/flow/list",data:{project_id:e}});t=a||[]}catch{t=[]}e===this.projectId&&(this.flowList=t)},async getTagData(){let t=[];const e=this.projectId;try{const{data:a}=await this.$store.dispatch("call",{url:"project/tag/list",data:{project_id:e}});t=a||[]}catch{t=[]}e===this.projectId&&(this.tags=t)},getLists(){!this.projectId||(this.loadIng++,this.keyIs=$A.objImplode(this.keys)!="",this.$store.dispatch("call",{url:"project/task/lists",data:{keys:this.keys,project_id:this.projectId,parent_id:-1,deleted:"yes",sorts:{deleted_at:"desc"},page:Math.max(this.page,1),pagesize:Math.max($A.runNum(this.pageSize),10)}}).then(({data:t})=>{this.page=t.current_page,this.total=t.total,this.list=t.data,this.noText="\u6CA1\u6709\u76F8\u5173\u7684\u6570\u636E"}).catch(()=>{this.noText="\u6570\u636E\u52A0\u8F7D\u5931\u8D25"}).finally(t=>{this.loadIng--}))},setPage(t){this.page=t,this.getLists()},setPageSize(t){this.page=1,this.pageSize=t,this.getLists()},recovery(t){this.list=this.list.filter(({id:e})=>e!=t.id),this.loadIng++,this.$store.dispatch("removeTask",{task_id:t.id,type:"recovery"}).then(({msg:e})=>{$A.messageSuccess(e),this.loadIng--,this.getLists(),this.$store.dispatch("openTask",t)}).catch(({msg:e})=>{$A.modalError(e),this.loadIng--,this.getLists()})}}},N={};var ae=x(se,te,ee,!1,ne,null,null,null);function ne(t){for(let e in N)this[e]=N[e]}var ie=function(){return ae.exports}(),oe=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"common-gantt"},[a("div",{staticClass:"gantt-left",style:t.leftStyle},[a("div",{staticClass:"gantt-title"},[a("div",{staticClass:"gantt-title-text"},[t._v(t._s(t.$L("\u4EFB\u52A1\u540D\u79F0")))]),a("div",{staticClass:"gantt-title-right"},[t._t("titleTool")],2)]),a("ul",{ref:"ganttItem",staticClass:"gantt-item",on:{scroll:t.itemScrollListener,mouseenter:function(s){t.mouseType="item"}}},t._l(t.lists,function(s,n){return a("li",{key:n,on:{click:function(i){return t.clickItem(s,n)}}},[s.overdue?a("div",{staticClass:"item-overdue"},[t._v(t._s(t.$L("\u5DF2\u8D85\u671F")))]):t._e(),a("div",{staticClass:"item-title",class:{complete:s.complete,overdue:s.overdue}},[t._v(t._s(s.label))]),a("Icon",{staticClass:"item-icon",attrs:{type:"ios-locate-outline"},on:{click:function(i){return i.stopPropagation(),t.scrollPosition(n)}}})],1)}),0)]),a("div",{ref:"ganttRight",staticClass:"gantt-right"},[a("div",{staticClass:"gantt-size",on:{click:function(s){t.maximize=!t.maximize}}},[t.maximize?a("i",{staticClass:"taskfont"},[t._v("\uE7D4")]):a("i",{staticClass:"taskfont"},[t._v("\uE7D3")])]),a("div",{ref:"ganttChart",staticClass:"gantt-chart",on:{touchstart:t.dateTouchstart,touchmove:t.dateTouchmove,touchend:t.dateTouchend}},[a("ul",{staticClass:"gantt-month"},t._l(t.monthNum,function(s,n){return a("li",{key:n,style:t.monthStyle(n)},[a("div",{staticClass:"month-format"},[t._v(t._s(t.monthFormat(n)))])])}),0),a("ul",{staticClass:"gantt-date",on:{mousedown:t.dateMouseDown}},t._l(t.dateNum,function(s,n){return a("li",{key:n,style:t.dateStyle(n)},[a("div",{staticClass:"date-format"},[a("div",{staticClass:"format-day"},[t._v(t._s(t.dateFormat(n,"day")))]),t.dateWidth>46?a("div",{staticClass:"format-week"},[t._v(t._s(t.dateFormat(n,"week")))]):t._e()])])}),0),a("ul",{ref:"ganttTimeline",staticClass:"gantt-timeline",on:{scroll:t.timelineScrollListener,mouseenter:function(s){t.mouseType="timeline"}}},t._l(t.lists,function(s,n){return a("li",{key:n,attrs:{"data-id":s.id}},[a("div",{staticClass:"timeline-item",style:t.itemStyle(s),on:{mousedown:function(i){return t.itemMouseDown(i,s)}}},[a("div",{staticClass:"timeline-title",attrs:{title:s.label}},[t._v(t._s(s.label))]),a("div",{staticClass:"timeline-resizer"})])])}),0)])])])},re=[];const le={name:"GanttView",props:{lists:{type:Array},menuWidth:{type:Number,default:300},itemWidth:{type:Number,default:100},readonly:{type:Boolean,default:!1}},data(){return{mouseType:"",mouseWidth:0,mouseScaleWidth:0,dateWidth:100,ganttWidth:0,mouseItem:null,mouseBak:{},dateMove:null,maximize:!1}},mounted(){this.maximize=this.windowPortrait,this.dateWidth=this.itemWidth,this.$refs.ganttRight.addEventListener("mousewheel",this.handleScroll,!1),document.addEventListener("mousemove",this.itemMouseMove),document.addEventListener("mouseup",this.itemMouseUp),window.addEventListener("resize",this.handleResize,!1),this.handleResize()},beforeDestroy(){this.$refs.ganttRight.removeEventListener("mousewheel",this.handleScroll,!1),document.removeEventListener("mousemove",this.itemMouseMove),document.removeEventListener("mouseup",this.itemMouseUp),window.removeEventListener("resize",this.handleResize,!1)},watch:{itemWidth(t){this.dateWidth=t},maximize(){this.$nextTick(()=>{this.handleResize()})}},computed:{leftStyle({menuWidth:t,maximize:e}){const a={width:t+"px"};return e&&(a.display="none"),a},monthNum(){const{ganttWidth:t,dateWidth:e}=this;return Math.floor(t/e/30)+2},monthStyle(){const{mouseWidth:t,dateWidth:e}=this;return function(a){let s=t==0?0:t/e,i=$A.daytz().startOf("day").clone().add(s*86400,"second"),o=i.clone().endOf("month"),r=(o-i)/1e3/60/60/24,l=e*r;return a>0&&(o=i.clone().add(a+1,"month").endOf("month"),l=o.date()*e),{width:l+"px"}}},monthFormat(){const{mouseWidth:t,dateWidth:e}=this;return function(a){let s=t==0?0:t/e,i=$A.daytz().startOf("day").clone().add(Math.floor(s),"day");return a>0&&(i=i.add(a,"month")),i.format("YYYY-MM")}},dateNum(){const{ganttWidth:t,dateWidth:e}=this;return Math.floor(t/e)+2},dateStyle(){const{mouseWidth:t,dateWidth:e}=this;return function(a){const s={};let n=t==0?0:t/e,i=Math.floor(n)+a;n==Math.floor(n)&&i--;let o=t==0?a-1:i,r=$A.daytz().add(o,"day");[0,6].indexOf(r.day())!==-1&&(s.backgroundColor="#f9fafb");let l=e;return a==0&&(l=Math.abs((t%l-l)%l)),s.width=l+"px",s}},dateFormat(){const{mouseWidth:t,dateWidth:e}=this;return function(a,s){let n=t==0?0:t/e,i=Math.floor(n)+a;n==Math.floor(n)&&i--;let o=t==0?a-1:i,r=$A.daytz().add(o,"day");return s=="day"?r.date():s=="week"?this.$L(["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"][r.day()]):r}},itemStyle(){const{mouseWidth:t,dateWidth:e,ganttWidth:a}=this;return function(s){const{start:n,end:i}=s.time,{style:o,moveX:r,moveW:l}=s;let c=$A.daytz().startOf("day").valueOf(),d=(n-c)/1e3/60/60/24,g=(i-c)/1e3/60/60/24,u=e*d+t*-1,m=Math.max(10,e*(g-d));typeof r=="number"&&(u+=r),typeof l=="number"&&(m+=l);const _={left:Math.min(Math.max(u,m*-1.2),a*1.2).toFixed(2)+"px",width:m.toFixed(2)+"px"};return u<0&&Math.abs(u)a&&ue.scrollHeight-e.clientHeight&&(a=e.scrollHeight-e.clientHeight),e.scrollTop!=a&&(this.mouseType="timeline",e.scrollTop=a)}t.deltaX!=0&&(this.mouseWidth+=t.deltaX,this.mouseScaleWidth+=t.deltaX*(100/this.dateWidth))},handleResize(){this.ganttWidth=this.$refs.ganttTimeline.clientWidth},dateTouchstart(t){this.windowPortrait&&(this.maximize=!0);let e=t.target.parentNode,a=null;for(;e&&!(!e||e===this.$refs.ganttChart);){if(e.tagName==="LI"){const s=e.getAttribute("data-id");s&&(a=this.lists.find(({id:n})=>s==n))}e=e.parentNode}if(!a){this.onDateMove(t.touches[0].clientX);return}this.onItemMove(a,t.target,t.touches[0].clientX)},dateTouchmove(t){this.onMoving(t.touches[0].clientX)},dateTouchend(){this.onMoveOver(null)},dateMouseDown(t){t.preventDefault(),this.onDateMove(t.clientX)},itemMouseDown(t,e){if(this.readonly){t.target.classList.contains("timeline-title")&&this.clickItem(e);return}t.preventDefault(),this.onItemMove(e,t.target,t.clientX)},itemMouseMove(t){(this.mouseItem!=null||this.dateMove!=null)&&(t.preventDefault(),this.onMoving(t.clientX))},itemMouseUp(t){this.onMoveOver(t.target)},onDateMove(t){this.mouseItem=null,this.dateMove={clientX:t}},onItemMove(t,e,a){if(this.readonly)return;let s="moveX";e.classList.contains("timeline-resizer")&&(s="moveW"),typeof t[s]!="number"&&this.$set(t,s,0),this.mouseBak={type:s,clientX:a,value:t[s]},this.mouseItem=t,this.dateMove=null},onMoving(t){if(this.mouseItem!=null){const e=this.mouseBak.value+(t-this.mouseBak.clientX);if(this.mouseBak.type==="moveW"){const a=864e5/this.dateWidth,{start:s,end:n}=this.mouseItem.time;let i=e*a;if(n+i-s<=0)return}this.$set(this.mouseItem,this.mouseBak.type,e);return}if(this.dateMove!=null){let e=(this.dateMove.clientX-t)*5;this.dateMove.clientX=t,this.mouseWidth+=e,this.mouseScaleWidth+=e*(100/this.dateWidth)}},onMoveOver(t){if(this.readonly){this.mouseItem=null,this.dateMove=null;return}if(this.mouseItem!=null){const{start:e,end:a}=this.mouseItem.time;let s=!1,n=864e5/this.dateWidth;if(typeof this.mouseItem.moveX=="number"&&this.mouseItem.moveX!=0){let i=this.mouseItem.moveX*n;this.$set(this.mouseItem.time,"start",e+i),this.$set(this.mouseItem.time,"end",a+i),this.$set(this.mouseItem,"moveX",0),s=!0}if(typeof this.mouseItem.moveW=="number"&&this.mouseItem.moveW!=0){let i=this.mouseItem.moveW*n;this.$set(this.mouseItem.time,"end",a+i),this.$set(this.mouseItem,"moveW",0),s=!0}s?this.$emit("on-change",this.mouseItem):t&&t.className=="timeline-title"&&this.clickItem(this.mouseItem),this.mouseItem=null;return}this.dateMove!=null&&(this.dateMove=null)},scrollPosition(t){let e=$A.daytz().startOf("day").valueOf(),a=864e5/this.dateWidth,s=(this.lists[t].time.start-e)/a-this.dateWidth-this.mouseWidth;this.mouseWidth+=s,this.mouseScaleWidth+=s*(100/this.dateWidth)},clickItem(t,e=void 0){if(e!==void 0&&this.windowPortrait){this.scrollPosition(e);return}this.$emit("on-click",t)}}},V={};var ce=x(le,oe,re,!1,de,null,null,null);function de(t){for(let e in V)this[e]=V[e]}var xe=function(){return ce.exports}();const ue=["flows","tags","users"];function j(){return{flows:[],tags:[],users:[]}}function pe(t){return ue.reduce((e,a)=>{var s;return e+(((s=t==null?void 0:t[a])==null?void 0:s.length)||0)},0)}function w(t,e){if(!e)return!0;const{flows:a=[],tags:s=[],users:n=[]}=e;if(a.length>0){const i=a.includes(t.flow_item_id),o=a.includes(-1)&&!t.start_at;if(!i&&!o)return!1}return!(s.length>0&&!(t.task_tag||[]).some(({name:i})=>s.includes(i))||n.length>0&&!(t.task_user||[]).some(({userid:i,owner:o})=>o&&n.includes(i)))}var he=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"project-gstc-gantt"},[a("GanttView",{attrs:{lists:t.lists,menuWidth:t.menuWidth,itemWidth:80,readonly:t.readonly},on:{"on-change":t.onChange,"on-click":t.onClick},scopedSlots:t._u([{key:"titleTool",fn:function(){return[a("Dropdown",{staticClass:"project-gstc-dropdown-filtr",attrs:{trigger:"click",transfer:""},on:{"on-click":t.onSwitchColumn}},[a("Icon",{staticClass:"project-gstc-dropdown-icon",class:{filtr:t.filtrProjectId>0},attrs:{type:"md-funnel"}}),a("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[a("DropdownItem",{class:{"dropdown-active":t.filtrProjectId==0},attrs:{name:0}},[t._v(t._s(t.$L("\u5168\u90E8")))]),t._l(t.projectColumn,function(s,n){return a("DropdownItem",{key:n,class:{"dropdown-active":t.filtrProjectId==s.id},attrs:{name:s.id}},[t._v(" "+t._s(s.name)+" "),s.tasks?a("span",[t._v("("+t._s(t.filtrLength(s.tasks))+")")]):t._e()])})],2)],1)]},proxy:!0}])}),a("div",{staticClass:"project-gstc-edit",class:{info:t.editShowInfo,visible:t.editData&&t.editData.length>0}},[a("div",{staticClass:"project-gstc-edit-info"},[a("Table",{attrs:{"max-height":"600",columns:t.editColumns,data:t.editData}}),a("div",{staticClass:"project-gstc-edit-btns"},[a("Button",{attrs:{loading:t.editLoad>0,type:"text"},on:{click:function(s){return t.editSubmit(!1)}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),a("Button",{attrs:{loading:t.editLoad>0,type:"primary"},on:{click:function(s){return t.editSubmit(!0)}}},[t._v(t._s(t.$L("\u4FDD\u5B58")))]),a("Icon",{staticClass:"zoom",attrs:{type:"md-arrow-dropright"},on:{click:function(s){t.editShowInfo=!1}}})],1)],1),a("div",{staticClass:"project-gstc-edit-small"},[a("div",{staticClass:"project-gstc-edit-text",on:{click:function(s){t.editShowInfo=!0}}},[t._v(t._s(t.$L("\u672A\u4FDD\u5B58\u8BA1\u5212\u65F6\u95F4"))+": "),t.editData?a("span",[t._v(t._s(t.editData.length))]):t._e()]),a("Button",{attrs:{loading:t.editLoad>0,size:"small",type:"text"},on:{click:function(s){return t.editSubmit(!1)}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),a("Button",{attrs:{loading:t.editLoad>0,size:"small",type:"primary"},on:{click:function(s){return t.editSubmit(!0)}}},[t._v(t._s(t.$L("\u4FDD\u5B58")))])],1)])],1)},me=[];const fe={name:"ProjectGantt",components:{GanttView:xe},props:{projectColumn:{default:[]},flowFilter:{type:Object,default:()=>({})},readonly:{type:Boolean,default:!1}},data(){return{lists:[],filtrProjectId:0,editColumns:[{title:this.$L("\u4EFB\u52A1\u540D\u79F0"),key:"label",minWidth:100,ellipsis:!0},{title:this.$L("\u539F\u8BA1\u5212\u65F6\u95F4"),width:140,align:"center",render:(t,{row:e})=>e.notime===!0?t("span","-"):t("div",{style:{}},[t("div",$A.dayjs(e.baktime.start).format("YYYY-MM-DD HH:mm")),t("div",$A.dayjs(e.baktime.end).format("YYYY-MM-DD HH:mm"))])},{title:this.$L("\u65B0\u8BA1\u5212\u65F6\u95F4"),width:140,align:"center",render:(t,{row:e})=>t("div",{style:{}},[t("div",$A.dayjs(e.newTime.start).format("YYYY-MM-DD HH:mm")),t("div",$A.dayjs(e.newTime.end).format("YYYY-MM-DD HH:mm"))])}],editData:[],editLoad:0,editShowInfo:!1}},mounted(){this.initData()},computed:{...f(["taskPriority"]),...I(["projectData"]),menuWidth(){return this.windowWidth<1440?180:260},completedTask(){return this.projectData.cacheParameter.completedTask}},watch:{projectColumn:{handler(){this.initData()},deep:!0},flowFilter:{handler(){this.initData()},deep:!0},completedTask(){this.initData()}},methods:{initData(){this.lists=[],this.projectColumn&&this.projectColumn.some(this.checkAdd)},flowTask(t){return!w(t,this.flowFilter)},filtrLength(t){return t.filter(e=>!(e.complete_at&&!this.completedTask||this.flowTask(e))).length},checkAdd(t){this.filtrProjectId>0&&t.id!=this.filtrProjectId||t.tasks&&t.tasks.some(e=>{let a=!e.start_at||!e.end_at,s=this.getTimeObj(e),n=s.start,i=s.end;if(e.complete_at&&!this.completedTask||this.flowTask(e))return!1;let o="#058ce4";this.taskPriority.some(d=>{if(d.priority===e.p_level)return o=d.color,!0});let r={start:n,end:i},l=$A.cloneJSON(r),c=this.editData.find(({id:d})=>d==e.id);c&&(r=$A.cloneJSON(c.newTime)),this.lists.push({id:e.id,label:e.name,complete:e.complete_at,overdue:e.overdue,time:r,notime:a,baktime:l,style:{background:o}})})},onChange(t){if(this.readonly)return;const{time:e,baktime:a}=t;if(Math.abs(a.end-e.end)>1e3||Math.abs(a.start-e.start)>1e3){let s=this.editData.find(({id:n})=>n==t.id);s?s.newTime=e:this.editData.push({id:t.id,label:t.label,notime:t.notime,baktime:t.baktime,newTime:e})}},onClick(t){this.$store.dispatch("openTask",t)},editSubmit(t){if(this.readonly){this.editData=[];return}this.editData&&this.editData.forEach(e=>{let a=this.lists.find(({id:s})=>s==e.id);if(t){this.editLoad++;let s=$A.dayjs(e.newTime.start).format("YYYY-MM-DD HH:mm"),n=$A.dayjs(e.newTime.end).format("YYYY-MM-DD HH:mm"),i={task_id:e.id,times:[s,n]};this.$store.dispatch("taskUpdate",i).then(({msg:o})=>{this.editLoad--,this.editLoad===0&&$A.messageSuccess(o),a&&this.$set(a,"baktime",$A.cloneJSON(a.time))}).catch(({msg:o})=>{this.editLoad--,this.editLoad===0&&$A.modalError(o),a&&this.$set(a,"time",$A.cloneJSON(a.baktime))})}else a&&this.$set(a,"time",$A.cloneJSON(a.baktime))}),this.editData=[]},getTimeObj(t){let e=t.start_at?$A.dayjs(t.start_at):$A.dayjs(t.created_at).startOf("day"),a=t.end_at?$A.dayjs(t.end_at):e.clone();return a.unix()==e.unix()&&(a=a.endOf("day")),{start:e.valueOf(),end:Math.max(a.valueOf(),e.valueOf()+6e4)}},onSwitchColumn(t){this.filtrProjectId=$A.runNum(t),this.initData()}}},G={};var _e=x(fe,he,me,!1,ve,null,null,null);function ve(t){for(let e in G)this[e]=G[e]}var ge=function(){return _e.exports}();const b=[{key:"my",title:"\u6211\u7684\u4EFB\u52A1",expandedKey:"showMy",defaultVisible:!0},{key:"help",title:"\u534F\u52A9\u7684\u4EFB\u52A1",expandedKey:"showHelp",defaultVisible:!0},{key:"undone",title:"\u672A\u5B8C\u6210\u4EFB\u52A1",expandedKey:"showUndone",defaultVisible:!0},{key:"completed",title:"\u5DF2\u5B8C\u6210\u4EFB\u52A1",expandedKey:"showCompleted"},{key:"dueThisWeek",title:"\u672C\u5468\u5230\u671F",expandedKey:"showDueThisWeek",week:0,kind:"due"},{key:"dueNextWeek",title:"\u4E0B\u5468\u5230\u671F",expandedKey:"showDueNextWeek",week:1,kind:"due"},{key:"plannedThisWeek",title:"\u672C\u5468\u6392\u671F",expandedKey:"showPlannedThisWeek",week:0,kind:"planned"},{key:"plannedNextWeek",title:"\u4E0B\u5468\u6392\u671F",expandedKey:"showPlannedNextWeek",week:1,kind:"planned"},{key:"overdue",title:"\u5DF2\u903E\u671F",expandedKey:"showOverdue",kind:"overdue"},{key:"unscheduled",title:"\u672A\u6392\u671F",expandedKey:"showUnscheduled",kind:"unscheduled"}];function ke(t){const e=Array.isArray(t)?b.filter(a=>t.includes(a.key)).map(a=>a.key):[];return e.length?e:b.filter(a=>a.defaultVisible).map(a=>a.key)}function ye(t){const e=t.startOf("day").subtract((t.day()+6)%7,"day");return[0,1].map(a=>({start:e.add(a*7,"day").valueOf(),end:e.add((a+1)*7,"day").valueOf()}))}function $e(t,e,a,s){if(!t.end_at)return!1;const n=s(t.end_at).valueOf();if(!Number.isFinite(n))return!1;if(a==="due")return n>=e.start&&n=e.start}function U(t,e,a,s,n){return e.kind==="unscheduled"?!t.complete_at&&(!t.start_at||!t.end_at):e.kind==="overdue"?!t.complete_at&&!!t.end_at&&n(t.end_at).valueOf()0?t.$L("\u5DF2\u9009(*)\u9879",t.total):t.$L("\u672A\u7B5B\u9009")))]),a("span",{class:["flow-filter-clear",{disabled:t.total===0}],on:{click:function(s){t.total>0&&t.$emit("clear")}}},[t._v(t._s(t.$L("\u6E05\u7A7A")))])]),a("div",{staticClass:"flow-filter-body"},t._l(t.groups,function(s){return a("div",{key:s.key,staticClass:"flow-filter-group"},[a("div",{staticClass:"flow-filter-group-title"},[a("span",[t._v(t._s(t.$L(s.title))),t.selected[s.key].length>0?[t._v(" \xB7 "+t._s(t.selected[s.key].length))]:t._e()],2),t.selected[s.key].length>0?a("span",{staticClass:"flow-filter-group-clear",on:{click:function(n){return t.$emit("clear",s.key)}}},[t._v(t._s(t.$L("\u6E05\u9664")))]):t._e()]),s.searchable?a("div",{staticClass:"flow-filter-search"},[a("Input",{attrs:{size:"small",clearable:"",placeholder:t.$L("\u641C\u7D22\u6210\u5458")},model:{value:t.keyword,callback:function(n){t.keyword=n},expression:"keyword"}})],1):t._e(),t._l(t.filterSections(s),function(n,i){return a("div",{key:i},[n.title?a("div",{staticClass:"flow-filter-section-title"},[t._v(t._s(n.title))]):t._e(),t._l(n.items,function(o){return a("div",{key:o.value,class:["flow-filter-item",o.status],style:o.style,on:{click:function(r){t.$emit("change",s.key,o,!t.isSelected(s.key,o.value))}}},[a("Checkbox",{staticClass:"flow-filter-checkbox",attrs:{value:t.isSelected(s.key,o.value)}}),o.color?a("span",{staticClass:"flow-filter-dot",style:{backgroundColor:o.color}}):o.userid?a("UserAvatar",{attrs:{userid:o.userid,size:20}}):t._e(),a("span",{staticClass:"flow-filter-name"},[t._v(t._s(o.label))]),a("span",{staticClass:"flow-filter-num"},[t._v(t._s(o.count))])],1)})],2)}),s.searchable&&t.filterSections(s).length===0?a("div",{staticClass:"flow-filter-empty"},[t._v(t._s(t.$L("\u65E0\u5339\u914D\u6210\u5458")))]):t._e()],2)}),0)])])},Ie=[];const Se={name:"ProjectFlowFilterDropdown",props:{value:{type:Boolean,default:!1},touch:{type:Boolean,default:!1},groups:{type:Array,required:!0},selected:{type:Object,required:!0},total:{type:Number,default:0},placement:{type:String,default:"bottom-end"}},data(){return{keyword:""}},computed:{open:{get(){return this.value},set(t){this.$emit("input",t)}}},methods:{isSelected(t,e){return this.selected[t].includes(e)},filterSections(t){const e=this.keyword.trim();return!t.searchable||!e?t.sections:t.sections.map(a=>({...a,items:a.items.filter(s=>$A.strExists(s.label,e))})).filter(a=>a.items.length>0)}}},H={};var Ae=x(Se,Le,Ie,!1,Pe,null,null,null);function Pe(t){for(let e in H)this[e]=H[e]}var Me=function(){return Ae.exports}();function Ee({container:t,target:e,inputRoot:a=t,render:s,isActive:n}){let i=!0,o,r;const l=Date.now();let c=l,d=null,g=null;const u=t.ownerDocument,m=()=>Math.max(0,Math.min(t.scrollHeight-t.clientHeight,t.scrollTop+e.getBoundingClientRect().top-t.getBoundingClientRect().top-t.clientTop)),_=(p,h)=>t.scrollTo({top:p,left:t.scrollLeft,behavior:h}),T=()=>i&&t.isConnected&&e.isConnected&&n(),S=(p=!1)=>{if(!!i){i=!1,clearTimeout(o),clearTimeout(r);for(const h of["wheel","touchstart","pointerdown"])a.removeEventListener(h,v,!0);u.removeEventListener("keydown",A,!0),p&&t.isConnected&&_(t.scrollTop,"instant")}},v=()=>S(!0),A=p=>{var h,y;(y=(h=p.target)==null?void 0:h.closest)!=null&&y.call(h,'input, textarea, select, [contenteditable="true"]')||["ArrowUp","ArrowDown","PageUp","PageDown","Home","End"," "].includes(p.key)&&v()},P=async()=>{if(!T())return v();try{if(await s(),!T())return v();const p=Date.now(),h=m(),y=d===null||Math.abs(h-d)>1||t.scrollHeight!==g,C=Math.abs(t.scrollTop-h)<=1;if((y||!C)&&(c=p),d=h,g=t.scrollHeight,!C&&p-l>=600&&_(h,"instant"),C&&p-l>=600&&p-c>=240)return S();o=setTimeout(P,80)}catch{v()}};if(!T())return v;for(const p of["wheel","touchstart","pointerdown"])a.addEventListener(p,v,{capture:!0,passive:!0});return u.addEventListener("keydown",A,!0),r=setTimeout(v,2500),_(m(),"smooth"),o=setTimeout(P,80),v}var Fe=function(){var t=this,e=this,a=e.$createElement,s=e._self._c||a;return s("div",{staticClass:"project-panel",class:[e.tabTypeActive]},[s("PageTitle",{attrs:{title:e.projectData.name}}),s("div",{staticClass:"project-titbox"},[s("div",{staticClass:"project-title"},[s("div",{staticClass:"project-back",on:{click:e.onBack}},[s("i",{staticClass:"taskfont"},[e._v("\uE676")])]),s("h1",{staticClass:"user-select-auto",domProps:{innerHTML:e._s(e.transformEmojiToHtml(e.projectData.name))},on:{click:e.showName}}),e.loading?s("div",{staticClass:"project-load"},[s("Loading")],1):e._e()]),s("ul",{staticClass:"project-icons"},[s("li",{staticClass:"project-avatar",class:{"cursor-default":!e.isOwnerOrDeputy||e.isDepartmentReadonly},on:{click:function(n){return e.projectDropdown("user")}}},[s("ul",[s("li",[s("UserAvatarTip",{attrs:{userid:e.projectData.owner_userid,size:36,borderWidth:2,openDelay:0}},[s("p",[e._v(e._s(e.$L("\u9879\u76EE\u8D1F\u8D23\u4EBA")))])]),(e.windowWidth<=980||e.projectData.cacheParameter.chat)&&e.projectUser.length>0?s("Badge",{attrs:{type:"normal","overflow-count":999,count:e.projectData.project_user.length}}):e._e()],1),e._l(e.projectUser,function(n){return!(e.windowWidth<=980||e.projectData.cacheParameter.chat)&&e.projectUser.length>0?[n.userid===-1?s("li",{staticClass:"more"},[s("ETooltip",{attrs:{disabled:e.$isEEUIApp||e.windowTouch,content:e.$L("\u5171(*)\u4E2A\u6210\u5458",e.projectData.project_user.length)}},[s("Icon",{attrs:{type:"ios-more"}})],1)],1):s("li",{class:{"is-deputy":e.isDeputyUid(n.userid)}},[s("UserAvatarTip",{attrs:{userid:n.userid,size:36,borderWidth:2,openDelay:0}},[e.isDeputyUid(n.userid)?s("p",[e._v(e._s(e.$L("\u9879\u76EE\u7BA1\u7406\u5458")))]):e._e()])],1)]:e._e()})],2)]),e.projectData.department_readonly?e._e():s("li",{staticClass:"project-icon",on:{click:function(n){return e.addTaskOpen(0)}}},[s("ETooltip",{attrs:{disabled:e.$isEEUIApp||e.windowTouch,content:e.$L("\u6DFB\u52A0\u4EFB\u52A1")}},[s("Icon",{staticClass:"menu-icon",attrs:{type:"md-add"}})],1)],1),s("li",{class:["project-icon",e.searchText!=""?"active":""]},[s("Tooltip",{attrs:{always:e.searchText!="",theme:"light",rawIndex:10},on:{"on-popper-show":e.searchFocus}},[s("Icon",{staticClass:"menu-icon",attrs:{type:"ios-search"},on:{click:e.searchFocus}}),s("div",{attrs:{slot:"content"},slot:"content"},[s("Input",{ref:"searchInput",staticClass:"search-input",attrs:{placeholder:e.$L("ID\u3001\u540D\u79F0\u3001\u63CF\u8FF0..."),clearable:""},model:{value:e.searchText,callback:function(n){e.searchText=n},expression:"searchText"}})],1)],1)],1),s("li",{class:["project-icon",e.windowLandscape&&e.projectData.cacheParameter.chat?"active":""],on:{click:function(n){return e.toggleParameter("chat")}}},[s("Icon",{staticClass:"menu-icon",attrs:{type:"ios-chatbubbles"}}),s("Badge",{staticClass:"menu-badge",attrs:{"overflow-count":999,count:e.msgUnread}})],1),s("li",{staticClass:"project-icon"},[s("EDropdown",{attrs:{trigger:"click",transfer:""},on:{command:e.projectDropdown}},[s("Icon",{staticClass:"menu-icon",attrs:{type:"ios-more"}}),e.isDepartmentReadonly?s("EDropdownMenu",{staticClass:"project-panel-project-menu-dropdown",attrs:{slot:"dropdown"},slot:"dropdown"},[s("EDropdownItem",{attrs:{command:"favorite"}},[e._v(e._s(e.$L(e.projectData.favorited?"\u53D6\u6D88\u6536\u85CF":"\u6536\u85CF\u9879\u76EE")))]),s("EDropdownItem",{attrs:{command:"log",divided:""}},[e._v(e._s(e.$L("\u9879\u76EE\u52A8\u6001")))]),s("EDropdownItem",{attrs:{command:"archived_task"}},[e._v(e._s(e.$L("\u5DF2\u5F52\u6863\u4EFB\u52A1")))]),s("EDropdownItem",{attrs:{command:"deleted_task"}},[e._v(e._s(e.$L("\u5DF2\u5220\u9664\u4EFB\u52A1")))])],1):e.isOwnerOrDeputy?s("EDropdownMenu",{staticClass:"project-panel-project-menu-dropdown",attrs:{slot:"dropdown"},slot:"dropdown"},[s("EDropdownItem",{attrs:{command:"setting"}},[e._v(e._s(e.$L("\u9879\u76EE\u8BBE\u7F6E")))]),s("EDropdownItem",{attrs:{command:"permissions"}},[e._v(e._s(e.$L("\u6743\u9650\u8BBE\u7F6E")))]),s("EDropdownItem",{attrs:{command:"task_template"}},[e._v(e._s(e.$L("\u4EFB\u52A1\u6A21\u677F")))]),s("EDropdownItem",{attrs:{command:"task_tag"}},[e._v(e._s(e.$L("\u4EFB\u52A1\u6807\u7B7E")))]),s("EDropdownItem",{attrs:{command:"workflow"}},[e._v(e._s(e.$L("\u5DE5\u4F5C\u6D41\u8BBE\u7F6E")))]),s("EDropdownItem",{attrs:{command:"user",divided:""}},[e._v(e._s(e.$L("\u6210\u5458\u7BA1\u7406")))]),s("EDropdownItem",{attrs:{command:"invite"}},[e._v(e._s(e.$L("\u9080\u8BF7\u94FE\u63A5")))]),s("EDropdownItem",{attrs:{command:"favorite",divided:""}},[e._v(e._s(e.$L(e.projectData.favorited?"\u53D6\u6D88\u6536\u85CF":"\u6536\u85CF\u9879\u76EE")))]),s("EDropdownItem",{attrs:{command:"log"}},[e._v(e._s(e.$L("\u9879\u76EE\u52A8\u6001")))]),s("EDropdownItem",{attrs:{command:"archived_task"}},[e._v(e._s(e.$L("\u5DF2\u5F52\u6863\u4EFB\u52A1")))]),s("EDropdownItem",{attrs:{command:"deleted_task"}},[e._v(e._s(e.$L("\u5DF2\u5220\u9664\u4EFB\u52A1")))]),s("EDropdownItem",{attrs:{command:"archived",divided:""}},[e._v(e._s(e.$L("\u5F52\u6863\u9879\u76EE")))]),e.canManageDeputy?[s("EDropdownItem",{attrs:{command:"transfer"}},[e._v(e._s(e.$L("\u79FB\u4EA4\u9879\u76EE")))]),s("EDropdownItem",{staticStyle:{color:"#f40"},attrs:{command:"delete"}},[e._v(e._s(e.$L("\u5220\u9664\u9879\u76EE")))])]:e._e()],2):s("EDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},[s("EDropdownItem",{attrs:{command:"task_tag"}},[e._v(e._s(e.$L("\u4EFB\u52A1\u6807\u7B7E")))]),s("EDropdownItem",{attrs:{command:"favorite",divided:""}},[e._v(e._s(e.$L(e.projectData.favorited?"\u53D6\u6D88\u6536\u85CF":"\u6536\u85CF\u9879\u76EE")))]),s("EDropdownItem",{attrs:{command:"log"}},[e._v(e._s(e.$L("\u9879\u76EE\u52A8\u6001")))]),s("EDropdownItem",{attrs:{command:"archived_task"}},[e._v(e._s(e.$L("\u5DF2\u5F52\u6863\u4EFB\u52A1")))]),s("EDropdownItem",{attrs:{command:"deleted_task"}},[e._v(e._s(e.$L("\u5DF2\u5220\u9664\u4EFB\u52A1")))]),s("EDropdownItem",{staticStyle:{color:"#f40"},attrs:{command:"exit",divided:""}},[e._v(e._s(e.$L("\u9000\u51FA\u9879\u76EE")))])],1)],1)],1)])]),e.projectData.department_readonly?s("Alert",{staticClass:"project-readonly-alert",attrs:{type:"info","show-icon":""}},[e._v(" "+e._s(e.$L("\u5F53\u524D\u4E3A\u8D1F\u8D23\u4EBA\u89C6\u89D2\uFF1A\u4F60\u53EF\u67E5\u770B\u9879\u76EE\u548C\u4EFB\u52A1\uFF0C\u5E76\u53C2\u4E0E\u8BA8\u8BBA\uFF0C\u4F46\u4E0D\u80FD\u7F16\u8F91\u9879\u76EE\u6216\u4EFB\u52A1\u3002"))+" ")]):e._e(),s("div",{staticClass:"project-subbox"},[s("div",{staticClass:"project-subtitle user-select-auto",on:{click:e.showDesc}},[s("VMPreviewNostyle",{ref:"descPreview",attrs:{value:e.projectData.desc}})],1),s("div",{staticClass:"project-switch"},[e.completedCount>0?s("div",{staticClass:"project-checkbox"},[s("Checkbox",{attrs:{value:e.projectData.cacheParameter.completedTask},on:{"on-change":function(n){return e.toggleParameter("completedTask")}}},[e._v(e._s(e.$L("\u663E\u793A\u5DF2\u5B8C\u6210")))])],1):e._e(),s("div",{staticClass:"project-select"},[s("ProjectFlowFilterDropdown",{attrs:{touch:e.$isEEUIApp||e.windowTouch,groups:e.flowFilterGroups,selected:e.flowFilter,total:e.flowFilterTotal},on:{change:e.flowFilterChange,clear:e.flowFilterClear},model:{value:e.flowFilterOpen,callback:function(n){e.flowFilterOpen=n},expression:"flowFilterOpen"}},[s("span",{class:["project-flow",e.flowTrigger.class],style:e.flowTrigger.style},[s("span",{staticClass:"project-flow-text"},[e._v(e._s(e.flowTrigger.title))]),e.flowFilterTotal>0?s("Icon",{staticClass:"project-flow-clear",attrs:{type:"ios-close-circle"},nativeOn:{click:function(n){return n.stopPropagation(),e.flowFilterClear()}}}):e._e()],1)])],1),e.tabTypeActive==="table"?s("ProjectTableGroupDropdown",{staticClass:"project-table-settings",attrs:{touch:e.$isEEUIApp||e.windowTouch,selected:e.visibleTableGroups,counts:e.tableGroupsOpen?e.tableGroupCounts:null},on:{change:e.setTableGroupVisible},model:{value:e.tableGroupsOpen,callback:function(n){e.tableGroupsOpen=n},expression:"tableGroupsOpen"}},[s("button",{staticClass:"project-table-settings-icon",attrs:{type:"button"}},[s("Icon",{attrs:{type:"md-funnel"}})],1)]):e._e(),s("div",{staticClass:"project-switch-button"},[s("div",{staticClass:"slider",style:e.tabTypeStyle}),s("div",{class:{active:e.tabTypeActive==="column"},on:{click:function(n){return e.tabTypeChange("column")}}},[s("i",{staticClass:"taskfont"},[e._v("\uE60C")])]),s("div",{class:{active:e.tabTypeActive==="table"},on:{click:function(n){return e.tabTypeChange("table")}}},[s("i",{staticClass:"taskfont"},[e._v("\uE66A")])]),s("div",{class:{active:e.tabTypeActive==="gantt"},on:{click:function(n){return e.tabTypeChange("gantt")}}},[s("i",{staticClass:"taskfont"},[e._v("\uE797")])])])],1)]),e.tabTypeActive==="column"?s("div",{ref:"projectColumn",staticClass:"project-column",on:{scroll:e.handleColumnScroll}},[s("Draggable",{staticClass:"column-list",attrs:{list:e.columnList,animation:150,disabled:e.sortDisabled||e.isDepartmentReadonly||e.$isEEUIApp||e.windowTouch,tag:"ul",draggable:".column-item"},on:{sort:function(n){return e.sortUpdate(!0)}}},[e._l(e.columnList,function(n){return s("li",{key:n.id,ref:`column_${n.id}`,refInFor:!0,staticClass:"column-item",attrs:{"data-id":n.id}},[s("div",{class:["column-head",n.color?"custom-color":""],style:n.color?{backgroundColor:n.color}:{}},[s("div",{staticClass:"column-head-title"},[s("AutoTip",{domProps:{innerHTML:e._s(e.transformEmojiToHtml(n.name))}}),s("em",[e._v("("+e._s(e.panelTask(n.tasks).length)+")")])],1),s("div",{staticClass:"column-head-icon"},[e.columnLoad[n.id]===!0?s("div",{staticClass:"loading"},[s("Loading")],1):e.isDepartmentReadonly?e._e():s("EDropdown",{attrs:{trigger:"click",size:"medium"},on:{command:function(i){return e.dropColumn(n,i)}}},[s("Icon",{attrs:{type:"ios-more"}}),s("EDropdownMenu",{staticClass:"project-panel-more-dropdown-menu",attrs:{slot:"dropdown"},slot:"dropdown"},[s("li",{staticClass:"project-panel-more-dropdown-warp"},[s("ul",[s("EDropdownItem",{attrs:{command:"title"}},[s("div",{staticClass:"item"},[s("Icon",{attrs:{type:"md-create"}}),e._v(e._s(e.$L("\u4FEE\u6539"))+" ")],1)]),s("EDropdownItem",{attrs:{command:"archive_completed"}},[s("div",{staticClass:"item"},[s("Icon",{attrs:{type:"ios-filing"}}),e._v(e._s(e.$L("\u5F52\u6863"))+" ")],1)]),s("EDropdownItem",{attrs:{command:"remove"}},[s("div",{staticClass:"item"},[s("Icon",{attrs:{type:"md-trash"}}),e._v(e._s(e.$L("\u5220\u9664"))+" ")],1)]),e._l(e.$store.state.columnColorList,function(i,o){return s("EDropdownItem",{key:o,attrs:{divided:o==0,command:i}},[s("div",{staticClass:"item"},[s("i",{staticClass:"taskfont",style:{color:i.color||"#ddd"},domProps:{innerHTML:e._s(i.color==n.color?"":"")}}),e._v(e._s(e.$L(i.name))+" ")])])})],2)])])],1),e.isDepartmentReadonly?e._e():s("Icon",{staticClass:"last",attrs:{type:"md-add"},on:{click:function(i){return e.addTopShow(n.id,!0)}}})],1)]),s("Scrollbar",{staticClass:"column-task",attrs:{"class-name":"task-scrollbar"},on:{"on-scroll":e.handleTaskScroll}},[!e.isDepartmentReadonly&&!!e.columnTopShow[n.id]?s("div",{staticClass:"task-item additem"},[s("TaskAddSimple",{attrs:{"column-id":n.id,"project-id":e.projectId,"add-top":!0,"auto-active":""},on:{"on-close":function(i){return e.addTopShow(n.id,!1)},"on-priority":e.addTaskOpen}})],1):e._e(),s("Draggable",{staticClass:"task-list",attrs:{list:n.tasks,animation:150,disabled:e.sortDisabled||e.isDepartmentReadonly||e.$isEEUIApp||e.windowTouch,draggable:".task-draggable",filter:".complete",group:"task"},on:{sort:e.sortUpdate,remove:e.sortUpdate}},[e._l(n.tasks,function(i){return s("div",{key:`${n.id}_${i.id}`,class:["task-item task-draggable",i.complete_at?"complete":"",e.taskIsHidden(i)?"hidden":""],style:e.$A.generateColorVarStyle(i.flow_item_color,[10],"flow-item-custom-color",e.taskItemStyle(i)),attrs:{"data-id":i.id},on:{click:function(o){return e.openTask(i)}}},[e.taskItemVisible(i)?[s("div",{class:["task-head",i.desc?"has-desc":""]},[s("div",{staticClass:"task-title"},[i.flow_item_name?s("span",{class:i.flow_item_status,on:{click:function(o){return o.stopPropagation(),e.openMenu(o,i)}}},[e._v(e._s(i.flow_item_name))]):e._e(),s("pre",[e._v(e._s(i.name))])]),s("div",{staticClass:"task-menu",on:{click:function(o){o.stopPropagation()}}},[e.isDepartmentReadonly?e._e():s("TaskMenu",{ref:`taskMenu_${i.id}`,refInFor:!0,attrs:{task:i,icon:"ios-more"}})],1)]),i.complete_at?e._e():[i.desc?s("div",{staticClass:"task-desc"},[s("pre",{domProps:{innerHTML:e._s(i.desc)}})]):e._e(),i.task_tag.length>0?s("TaskTag",{staticClass:"task-tags",attrs:{tags:i.task_tag}}):e._e(),s("div",{staticClass:"task-users"},[s("ul",[e._l(e.ownerUser(i.task_user),function(o,r){return s("li",{key:r},[s("UserAvatar",{attrs:{userid:o.userid,size:"32",borderWidth:2,borderColor:i.color}})],1)}),e.ownerUser(i.task_user).length===0?s("li",{staticClass:"no-owner"},[s("Button",{attrs:{type:"primary",size:"small",ghost:""},on:{click:function(o){return o.stopPropagation(),e.openTask(i,!0)}}},[e._v(e._s(e.$L("\u9886\u53D6\u4EFB\u52A1")))])],1):e._e()],2),i.file_num>0?s("div",{staticClass:"task-icon"},[e._v(e._s(i.file_num)),s("Icon",{attrs:{type:"ios-link-outline"}})],1):e._e(),i.msg_num>0?s("div",{staticClass:"task-icon"},[e._v(e._s(i.msg_num)),s("Icon",{attrs:{type:"ios-chatbubbles-outline"}})],1):e._e()]),s("div",{staticClass:"task-progress"},[i.sub_num>0?s("div",{staticClass:"task-sub-num"},[e._v(e._s(i.sub_complete)+"/"+e._s(i.sub_num))]):e._e(),s("Progress",{attrs:{percent:i.percent,"stroke-width":6}}),i.end_at?s("ETooltip",{class:["task-time",i.today?"today":"",i.overdue?"overdue":""],attrs:{disabled:e.$isEEUIApp||e.windowTouch,"open-delay":600,content:i.end_at}},[i.complete_at?e._e():s("div",[s("i",{staticClass:"taskfont"},[e._v("\uE71D")]),e._v(e._s(e.expiresFormat(i.end_at)))])]):e._e()],1),i.p_name?s("em",{staticClass:"priority-color",style:{backgroundColor:i.p_color}}):e._e()]]:e._e()],2)}),e.isDepartmentReadonly?e._e():s("div",{staticClass:"task-item additem"},[s("TaskAddSimple",{attrs:{"column-id":n.id,"project-id":e.projectId},on:{"on-priority":e.addTaskOpen}})],1)],2)],1)],1)}),e.isDepartmentReadonly?e._e():s("li",{class:["add-column",e.addColumnShow?"show-input":""]},[s("div",{staticClass:"add-column-text",on:{click:e.addColumnOpen}},[s("Icon",{attrs:{type:"md-add"}}),e._v(e._s(e.$L("\u6DFB\u52A0\u5217\u8868"))+" ")],1),s("div",{staticClass:"add-column-input"},[s("Input",{ref:"addColumnName",attrs:{placeholder:e.$L("\u5217\u8868\u540D\u79F0\uFF0C\u56DE\u8F66\u521B\u5EFA"),clearable:""},on:{"on-blur":e.addColumnBlur,"on-keydown":e.onAddColumnKeydown,"on-clear":function(n){e.addColumnShow=!1}},model:{value:e.addColumnName,callback:function(n){e.addColumnName=n},expression:"addColumnName"}})],1)])],2)],1):e.tabTypeActive==="table"?s("Scrollbar",{ref:"projectTableScroll",staticClass:"project-table",attrs:{"enable-x":""},on:{"on-scroll":e.handleTaskScroll}},[s("div",{staticClass:"project-table-head"},[s("Row",{staticClass:"task-row"},[s("Col",{attrs:{span:"12"}},[s("div",{staticClass:"ellipsis"},[e._v("# "+e._s(e.$L("\u4EFB\u52A1\u540D\u79F0")))])]),s("Col",{attrs:{span:"3"}},[s("div",{staticClass:"ellipsis"},[e._v(e._s(e.$L("\u5217\u8868")))])]),s("Col",{attrs:{span:"3"}},[s("div",{staticClass:"sort",on:{click:function(n){return e.onSort("level")}}},[s("div",{staticClass:"head-title"},[e._v(e._s(e.$L("\u4F18\u5148\u7EA7")))]),s("div",{staticClass:"head-sort"},[s("Icon",{class:{on:e.sortField=="level"&&e.sortType=="asc"},attrs:{type:"md-arrow-dropup"}}),s("Icon",{class:{on:e.sortField=="level"&&e.sortType=="desc"},attrs:{type:"md-arrow-dropdown"}})],1)])]),s("Col",{attrs:{span:"3"}},[s("div",{staticClass:"ellipsis"},[e._v(e._s(e.$L("\u8D1F\u8D23\u4EBA")))])]),s("Col",{attrs:{span:"3"}},[s("div",{staticClass:"sort",on:{click:function(n){return e.onSort("end_at")}}},[s("div",{staticClass:"head-title"},[e._v(e._s(e.$L("\u5230\u671F\u65F6\u95F4")))]),s("div",{staticClass:"head-sort"},[s("Icon",{class:{on:e.sortField=="end_at"&&e.sortType=="asc"},attrs:{type:"md-arrow-dropup"}}),s("Icon",{class:{on:e.sortField=="end_at"&&e.sortType=="desc"},attrs:{type:"md-arrow-dropdown"}})],1)])])],1)],1),e.visibleTableGroups.includes("my")?s("div",{class:["project-table-body",e.projectData.cacheParameter.showMy?"":"project-table-hide"],attrs:{"data-table-group":"my"}},[s("Row",{staticClass:"task-row"},[s("Col",{staticClass:"row-title",attrs:{span:"12"}},[s("i",{staticClass:"taskfont",on:{click:function(n){return e.toggleParameter("showMy")}}},[e._v("\uE689")]),s("div",{staticClass:"row-h1"},[e._v(e._s(e.$L("\u6211\u7684\u4EFB\u52A1")))]),s("div",{staticClass:"row-num"},[e._v("("+e._s(e.myList.length)+")")])]),s("Col",{attrs:{span:"3"}}),s("Col",{attrs:{span:"3"}}),s("Col",{attrs:{span:"3"}}),s("Col",{attrs:{span:"3"}})],1),e.projectData.cacheParameter.showMy?s("TaskRow",{attrs:{list:e.transforTasks(e.myList),"task-visibilitys":e.taskRowVisibilitys,readonly:e.isDepartmentReadonly,"open-key":"my","fast-add-task":""},on:{"on-priority":e.addTaskOpen}}):e._e(),e.projectData.cacheParameter.showMy&&!e.myList.length&&e.isDepartmentReadonly?s("div",{staticClass:"project-table-empty"},[e._v(e._s(e.$L("\u6682\u65E0\u4EFB\u52A1")))]):e._e()],1):e._e(),e.visibleTableGroups.includes("help")?s("div",{class:["project-table-body",e.projectData.cacheParameter.showHelp?"":"project-table-hide"],attrs:{"data-table-group":"help"}},[s("Row",{staticClass:"task-row"},[s("Col",{staticClass:"row-title",attrs:{span:"12"}},[s("i",{staticClass:"taskfont",on:{click:function(n){return e.toggleParameter("showHelp")}}},[e._v("\uE689")]),s("div",{staticClass:"row-h1"},[e._v(e._s(e.$L("\u534F\u52A9\u7684\u4EFB\u52A1")))]),s("div",{staticClass:"row-num"},[e._v("("+e._s(e.helpList.length)+")")])]),s("Col",{attrs:{span:"3"}}),s("Col",{attrs:{span:"3"}}),s("Col",{attrs:{span:"3"}}),s("Col",{attrs:{span:"3"}})],1),e.projectData.cacheParameter.showHelp?s("TaskRow",{attrs:{list:e.helpList,"task-visibilitys":e.taskRowVisibilitys,readonly:e.isDepartmentReadonly,"open-key":"help"},on:{"on-priority":e.addTaskOpen}}):e._e(),e.projectData.cacheParameter.showHelp&&!e.helpList.length?s("div",{staticClass:"project-table-empty"},[e._v(e._s(e.$L("\u6682\u65E0\u4EFB\u52A1")))]):e._e()],1):e._e(),e.visibleTableGroups.includes("undone")?s("div",{class:["project-table-body",e.projectData.cacheParameter.showUndone?"":"project-table-hide"],attrs:{"data-table-group":"undone"}},[s("Row",{staticClass:"task-row"},[s("Col",{staticClass:"row-title",attrs:{span:"12"}},[s("i",{staticClass:"taskfont",on:{click:function(n){return e.toggleParameter("showUndone")}}},[e._v("\uE689")]),s("div",{staticClass:"row-h1"},[e._v(e._s(e.$L("\u672A\u5B8C\u6210\u4EFB\u52A1")))]),s("div",{staticClass:"row-num"},[e._v("("+e._s(e.unList.length)+")")])]),s("Col",{attrs:{span:"3"}}),s("Col",{attrs:{span:"3"}}),s("Col",{attrs:{span:"3"}}),s("Col",{attrs:{span:"3"}})],1),e.projectData.cacheParameter.showUndone?s("TaskRow",{attrs:{list:e.unList,"task-visibilitys":e.taskRowVisibilitys,readonly:e.isDepartmentReadonly,"open-key":"undone"},on:{"on-priority":e.addTaskOpen}}):e._e(),e.projectData.cacheParameter.showUndone&&!e.unList.length?s("div",{staticClass:"project-table-empty"},[e._v(e._s(e.$L("\u6682\u65E0\u4EFB\u52A1")))]):e._e()],1):e._e(),e.visibleTableGroups.includes("completed")?s("div",{class:["project-table-body",e.projectData.cacheParameter.showCompleted?"":"project-table-hide"],attrs:{"data-table-group":"completed"}},[s("Row",{staticClass:"task-row"},[s("Col",{staticClass:"row-title",attrs:{span:"12"}},[s("i",{staticClass:"taskfont",on:{click:function(n){return e.toggleParameter("showCompleted")}}},[e._v("\uE689")]),s("div",{staticClass:"row-h1"},[e._v(e._s(e.$L("\u5DF2\u5B8C\u6210\u4EFB\u52A1")))]),s("div",{staticClass:"row-num"},[e._v("("+e._s(e.completedList.length)+")")])]),s("Col",{attrs:{span:"3"}}),s("Col",{attrs:{span:"3"}}),s("Col",{attrs:{span:"3"}}),s("Col",{attrs:{span:"3"}},[s("div",{staticClass:"ellipsis"},[e._v(e._s(e.projectData.cacheParameter.showCompleted?e.$L("\u5B8C\u6210\u65F6\u95F4"):""))])])],1),e.projectData.cacheParameter.showCompleted?s("TaskRow",{attrs:{list:e.completedList,"task-visibilitys":e.taskRowVisibilitys,readonly:e.isDepartmentReadonly,"open-key":"completed",showCompleteAt:""},on:{"on-priority":e.addTaskOpen}}):e._e(),e.projectData.cacheParameter.showCompleted&&!e.completedList.length?s("div",{staticClass:"project-table-empty"},[e._v(e._s(e.$L("\u6682\u65E0\u4EFB\u52A1")))]):e._e()],1):e._e(),e._l(e.additionalTableGroups,function(n){return s("div",{key:n.key,class:["project-table-body",e.projectData.cacheParameter[n.expandedKey]?"":"project-table-hide"],attrs:{"data-table-group":n.key}},[s("Row",{staticClass:"task-row"},[s("Col",{staticClass:"row-title",attrs:{span:"12"}},[s("i",{staticClass:"taskfont",on:{click:function(i){return e.toggleParameter(n.expandedKey)}}},[e._v("\uE689")]),s("div",{staticClass:"row-h1"},[e._v(e._s(e.$L(n.title)))]),s("div",{staticClass:"row-num"},[e._v("("+e._s(n.tasks.length)+")")])]),s("Col",{attrs:{span:"3"}}),s("Col",{attrs:{span:"3"}}),s("Col",{attrs:{span:"3"}}),s("Col",{attrs:{span:"3"}})],1),e.projectData.cacheParameter[n.expandedKey]?s("TaskRow",{attrs:{list:n.tasks,"task-visibilitys":e.taskRowVisibilitys,readonly:e.isDepartmentReadonly,"open-key":n.key},on:{"on-priority":e.addTaskOpen}}):e._e(),e.projectData.cacheParameter[n.expandedKey]&&!n.tasks.length?s("div",{staticClass:"project-table-empty"},[e._v(e._s(e.$L("\u6682\u65E0\u4EFB\u52A1")))]):e._e()],1)})],2):e.tabTypeActive==="gantt"?s("div",{staticClass:"project-gantt"},[s("ProjectGantt",{attrs:{projectColumn:e.columnList,flowFilter:e.flowFilter,readonly:e.isDepartmentReadonly}})],1):e._e(),s("DrawerOverlay",{attrs:{placement:"right",size:720,"class-name":"project-setting-drawer","mask-closable":!1},scopedSlots:e._u([{key:"title",fn:function(){return[e._v(e._s(e.$L("\u9879\u76EE\u8BBE\u7F6E")))]},proxy:!0}]),model:{value:e.settingShow,callback:function(n){e.settingShow=n},expression:"settingShow"}},[s("Form",e._b({staticClass:"project-setting-content",attrs:{model:e.settingData},nativeOn:{submit:function(n){n.preventDefault()}}},"Form",e.formOptions,!1),[s("FormItem",{attrs:{prop:"name",label:e.$L("\u9879\u76EE\u540D\u79F0")}},[s("Input",{attrs:{type:"text",maxlength:32,placeholder:e.$L("\u5FC5\u586B")},model:{value:e.settingData.name,callback:function(n){e.$set(e.settingData,"name",n)},expression:"settingData.name"}})],1),s("FormItem",{attrs:{prop:"desc",label:e.$L("\u9879\u76EE\u4ECB\u7ECD")}},[s("Input",{ref:"projectDesc",attrs:{type:"textarea",autosize:{minRows:3,maxRows:5},maxlength:255,placeholder:`${e.$L("\u9009\u586B")} (${e.$L("\u652F\u6301 Markdown \u683C\u5F0F")})`},model:{value:e.settingData.desc,callback:function(n){e.$set(e.settingData,"desc",n)},expression:"settingData.desc"}})],1),s("FormItem",{attrs:{label:e.$L("\u81EA\u52A8\u5F52\u6863"),prop:"archive_method"}},[s("RadioGroup",{attrs:{value:e.settingData.archive_method},on:{"on-change":e.formArchived}},[s("Radio",{attrs:{label:"system"}},[e._v(e._s(e.$L("\u7CFB\u7EDF\u9ED8\u8BA4")))]),s("Radio",{attrs:{label:"custom"}},[e._v(e._s(e.$L("\u81EA\u5B9A\u4E49")))])],1),e.settingData.archive_method==="system"?s("div",{staticClass:"form-tip"},[e._v(e._s(e.$L("\u6839\u636E\u7CFB\u7EDF\u8BBE\u7F6E\u7684\u81EA\u52A8\u5F52\u6863\u89C4\u5219\u6267\u884C")))]):e.settingData.archive_method=="custom"?[s("div",{staticClass:"form-tip"},[e._v(e._s(e.$L("\u4EFB\u52A1\u5B8C\u6210(*)\u5929\u540E\u81EA\u52A8\u5F52\u6863\u3002",e.settingData.archive_days||"n")))]),s("div",{staticClass:"setting-auto-day"},[s("Input",{attrs:{type:"number"},model:{value:e.settingData.archive_days,callback:function(n){e.$set(e.settingData,"archive_days",n)},expression:"settingData.archive_days"}},[s("span",{attrs:{slot:"append"},slot:"append"},[e._v(e._s(e.$L("[day_unit].\u5929")))])])],1)]:e._e()],2),e.aiVisible?s("FormItem",{attrs:{label:e.$L("AI\u4EFB\u52A1\u5206\u6790"),prop:"ai_auto_analyze"}},[s("RadioGroup",{model:{value:e.settingData.ai_auto_analyze,callback:function(n){e.$set(e.settingData,"ai_auto_analyze",n)},expression:"settingData.ai_auto_analyze"}},[s("Radio",{attrs:{label:"open",disabled:e.systemConfig.task_ai_auto_analyze==="close"}},[e._v(e._s(e.$L("\u5F00\u542F")))]),s("Radio",{attrs:{label:"close"}},[e._v(e._s(e.$L("\u5173\u95ED")))])],1),e.systemConfig.ai_auto_analyze==="close"?s("div",{staticClass:"form-tip"},[e._v(e._s(e.$L("\u7CFB\u7EDF\u5DF2\u5173\u95EDAI\u4EFB\u52A1\u5206\u6790\u529F\u80FD\u3002")))]):e.settingData.ai_auto_analyze==="open"?s("div",{staticClass:"form-tip"},[e._v(e._s(e.$L("\u65B0\u5EFA\u4EFB\u52A1\u540EAI\u81EA\u52A8\u5206\u6790\u5E76\u7ED9\u51FA\u5EFA\u8BAE\u3002")))]):s("div",{staticClass:"form-tip"},[e._v(e._s(e.$L("\u5173\u95ED\u540E\u672C\u9879\u76EE\u5C06\u4E0D\u518D\u81EA\u52A8\u5206\u6790\u4EFB\u52A1\u3002")))])],1):e._e(),s("FormItem",{attrs:{label:e.$L("\u5171\u4EAB\u6A21\u677F"),prop:"task_template_share"}},[s("RadioGroup",{model:{value:e.settingData.task_template_share,callback:function(n){e.$set(e.settingData,"task_template_share",n)},expression:"settingData.task_template_share"}},[s("Radio",{attrs:{label:"open"}},[e._v(e._s(e.$L("\u5F00\u542F")))]),s("Radio",{attrs:{label:"close"}},[e._v(e._s(e.$L("\u5173\u95ED")))])],1),e.settingData.task_template_share==="open"?s("div",{staticClass:"form-tip"},[e._v(e._s(e.$L("\u5F00\u542F\u540E\uFF0C\u6DFB\u52A0\u4EFB\u52A1\u65F6\u53EF\u4F7F\u7528\u5176\u4ED6\u9879\u76EE\u5171\u4EAB\u7684\u4EFB\u52A1\u6A21\u677F\u3002")))]):s("div",{staticClass:"form-tip"},[e._v(e._s(e.$L("\u5173\u95ED\u540E\uFF0C\u6DFB\u52A0\u4EFB\u52A1\u65F6\u4EC5\u52A0\u8F7D\u672C\u9879\u76EE\u6A21\u677F\uFF0C\u4E0D\u663E\u793A\u5176\u4ED6\u9879\u76EE\u5171\u4EAB\u6A21\u677F\u3002")))])],1),e.systemConfig.department_owner_project_view==="open"?s("FormItem",{attrs:{label:e.$L("\u8D1F\u8D23\u4EBA\u89C6\u89D2"),prop:"department_owner_view"}},[s("RadioGroup",{model:{value:e.settingData.department_owner_view,callback:function(n){e.$set(e.settingData,"department_owner_view",n)},expression:"settingData.department_owner_view"}},[s("Radio",{attrs:{label:"open"}},[e._v(e._s(e.$L("\u5F00\u542F")))]),s("Radio",{attrs:{label:"close"}},[e._v(e._s(e.$L("\u5173\u95ED")))])],1),e.settingData.department_owner_view==="open"?s("div",{staticClass:"form-tip"},[e._v(e._s(e.$L("\u5F00\u542F\u540E\uFF0C\u90E8\u95E8\u8D1F\u8D23\u4EBA\u53EF\u53EA\u8BFB\u67E5\u770B\u672C\u9879\u76EE\u53CA\u5176\u5168\u5458\u53EF\u89C1\u4EFB\u52A1\u3002")))]):s("div",{staticClass:"form-tip"},[e._v(e._s(e.$L("\u5173\u95ED\u540E\uFF0C\u672C\u9879\u76EE\u53CA\u5176\u7FA4\u804A\u5BF9\u90E8\u95E8\u8D1F\u8D23\u4EBA\u89C6\u89D2\u9690\u85CF\u3002")))])],1):e._e()],1),s("div",{staticClass:"project-setting-footer"},[s("Button",{attrs:{type:"default"},on:{click:function(n){e.settingShow=!1}}},[e._v(e._s(e.$L("\u53D6\u6D88")))]),s("Button",{attrs:{type:"primary",loading:e.settingLoad>0},on:{click:e.onSetting}},[e._v(e._s(e.$L("\u4FDD\u5B58")))])],1)],1),s("DrawerOverlay",{attrs:{placement:"right",size:800},model:{value:e.permissionShow,callback:function(n){e.permissionShow=n},expression:"permissionShow"}},[e.permissionShow?s("ProjectPermission",{ref:"permission",attrs:{"project-id":e.projectId},on:{close:function(){t.permissionShow=!1}}}):e._e()],1),s("Modal",{attrs:{title:e.$L("\u6210\u5458\u7BA1\u7406"),"mask-closable":!1},model:{value:e.userShow,callback:function(n){e.userShow=n},expression:"userShow"}},[s("Form",e._b({attrs:{model:e.userData},nativeOn:{submit:function(n){n.preventDefault()}}},"Form",e.formOptions,!1),[e.canManageDeputy?s("FormItem",{attrs:{prop:"deputy_userids",label:e.$L("\u9879\u76EE\u7BA1\u7406\u5458")}},[s("UserSelect",{attrs:{uncancelable:e.deputyRowUncancelable,disabledChoice:e.deputyRowDisabledChoice,multiple:!0,"multiple-max":20,title:e.$L("\u9009\u62E9\u9879\u76EE\u7BA1\u7406\u5458")},model:{value:e.userData.deputy_userids,callback:function(n){e.$set(e.userData,"deputy_userids",n)},expression:"userData.deputy_userids"}})],1):e._e(),s("FormItem",{attrs:{prop:"userids",label:e.$L("\u9879\u76EE\u6210\u5458")}},[s("UserSelect",{attrs:{uncancelable:e.memberRowUncancelable,"multiple-max":100,title:e.$L("\u9009\u62E9\u9879\u76EE\u6210\u5458")},model:{value:e.userData.userids,callback:function(n){e.$set(e.userData,"userids",n)},expression:"userData.userids"}})],1)],1),s("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[s("Button",{attrs:{type:"default"},on:{click:function(n){e.userShow=!1}}},[e._v(e._s(e.$L("\u53D6\u6D88")))]),e.userWaitRemove.length>0||e.deputyWaitDemote.length>0?s("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":e.onUser}},[s("div",{attrs:{slot:"title"},slot:"title"},[s("p",[s("strong",[e._v(e._s(e.$L("\u8BF7\u786E\u8BA4\u4EE5\u4E0B\u64CD\u4F5C\uFF0C\u6CE8\u610F\u6B64\u64CD\u4F5C\u4E0D\u53EF\u9006\uFF01")))])]),e.userWaitRemove.length>0?[s("p",[e._v(e._s(e.$L("\u79FB\u9664\u6210\u5458\u8D1F\u8D23\u7684\u4EFB\u52A1\u5C06\u53D8\u6210\u65E0\u8D1F\u8D23\u4EBA\u3002")))]),s("ul",{staticClass:"project-panel-wait-remove"},[s("li",[e._v(e._s(e.$L("\u5373\u5C06\u79FB\u9664"))+"\uFF1A")]),e._l(e.userWaitRemove,function(n){return s("li",{key:"r"+n},[s("UserAvatar",{attrs:{userid:n,size:20,showName:""}})],1)})],2)]:e._e(),e.deputyWaitDemote.length>0?s("ul",{staticClass:"project-panel-wait-remove"},[s("li",[e._v(e._s(e.$L("\u5373\u5C06\u7F62\u514D\u9879\u76EE\u7BA1\u7406\u5458"))+"\uFF1A")]),e._l(e.deputyWaitDemote,function(n){return s("li",{key:"d"+n},[s("UserAvatar",{attrs:{userid:n,size:20,showName:""}})],1)})],2):e._e()],2),s("Button",{attrs:{type:"primary",loading:e.userLoad>0}},[e._v(e._s(e.$L("\u4FDD\u5B58")))])],1):s("Button",{attrs:{type:"primary",loading:e.userLoad>0},on:{click:e.onUser}},[e._v(e._s(e.$L("\u4FDD\u5B58")))])],1)],1),s("Modal",{attrs:{title:e.$L("\u9080\u8BF7\u94FE\u63A5"),"mask-closable":!1},model:{value:e.inviteShow,callback:function(n){e.inviteShow=n},expression:"inviteShow"}},[s("Form",e._b({attrs:{model:e.inviteData},nativeOn:{submit:function(n){n.preventDefault()}}},"Form",e.formOptions,!1),[s("FormItem",{attrs:{label:e.$L("\u94FE\u63A5\u5730\u5740")}},[s("Input",{ref:"inviteInput",attrs:{type:"textarea",rows:3,readonly:""},on:{"on-focus":e.inviteFocus},model:{value:e.inviteData.url,callback:function(n){e.$set(e.inviteData,"url",n)},expression:"inviteData.url"}}),s("div",{staticClass:"form-tip"},[e._v(" "+e._s(e.$L("\u53EF\u901A\u8FC7\u6B64\u94FE\u63A5\u76F4\u63A5\u52A0\u5165\u9879\u76EE\u3002"))+" "),s("Poptip",{attrs:{confirm:"",placement:"bottom","ok-text":e.$L("\u786E\u5B9A"),"cancel-text":e.$L("\u53D6\u6D88"),transfer:""},on:{"on-ok":function(n){return e.inviteGet(!0)}}},[s("div",{attrs:{slot:"title"},slot:"title"},[s("p",[s("strong",[e._v(e._s(e.$L("\u6CE8\u610F\uFF1A\u5237\u65B0\u5C06\u5BFC\u81F4\u539F\u6765\u7684\u9080\u8BF7\u94FE\u63A5\u5931\u6548\uFF01")))])])]),s("a",{attrs:{href:"javascript:void(0)"}},[e._v(e._s(e.$L("\u5237\u65B0\u94FE\u63A5")))])])],1)],1)],1),s("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[s("Button",{attrs:{type:"default"},on:{click:function(n){e.inviteShow=!1}}},[e._v(e._s(e.$L("\u53D6\u6D88")))]),s("Button",{attrs:{type:"primary",loading:e.inviteLoad>0},on:{click:e.inviteCopy}},[e._v(e._s(e.$L("\u590D\u5236")))])],1)],1),s("Modal",{attrs:{title:e.$L("\u79FB\u4EA4\u9879\u76EE"),"mask-closable":!1},model:{value:e.transferShow,callback:function(n){e.transferShow=n},expression:"transferShow"}},[s("Form",e._b({attrs:{model:e.transferData},nativeOn:{submit:function(n){n.preventDefault()}}},"Form",e.formOptions,!1),[s("FormItem",{attrs:{prop:"owner_userid",label:e.$L("\u65B0\u9879\u76EE\u8D1F\u8D23\u4EBA")}},[s("UserSelect",{attrs:{"multiple-max":1,title:e.$L("\u9009\u62E9\u9879\u76EE\u8D1F\u8D23\u4EBA")},model:{value:e.transferData.owner_userid,callback:function(n){e.$set(e.transferData,"owner_userid",n)},expression:"transferData.owner_userid"}})],1)],1),s("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[s("Button",{attrs:{type:"default"},on:{click:function(n){e.transferShow=!1}}},[e._v(e._s(e.$L("\u53D6\u6D88")))]),s("Button",{attrs:{type:"primary",loading:e.transferLoad>0},on:{click:e.onTransfer}},[e._v(e._s(e.$L("\u79FB\u4EA4")))])],1)],1),s("DrawerOverlay",{attrs:{placement:"right",size:720},model:{value:e.taskTemplateShow,callback:function(n){e.taskTemplateShow=n},expression:"taskTemplateShow"}},[e.taskTemplateShow?s("ProjectTaskTemplate",{ref:"taskTemplate",attrs:{"project-id":e.projectId}}):e._e()],1),s("DrawerOverlay",{attrs:{placement:"right",beforeClose:e.taskTagBeforeClose,size:720},model:{value:e.taskTagShow,callback:function(n){e.taskTagShow=n},expression:"taskTagShow"}},[e.taskTagShow?s("ProjectTaskTag",{ref:"taskTag",attrs:{"project-id":e.projectId}}):e._e()],1),s("DrawerOverlay",{attrs:{placement:"right",beforeClose:e.workflowBeforeClose,size:1280},model:{value:e.workflowShow,callback:function(n){e.workflowShow=n},expression:"workflowShow"}},[e.workflowShow?s("ProjectWorkflow",{ref:"workflow",attrs:{"project-id":e.projectId}}):e._e()],1),s("DrawerOverlay",{attrs:{placement:"right",size:720},model:{value:e.logShow,callback:function(n){e.logShow=n},expression:"logShow"}},[e.logShow?s("ProjectLog",{attrs:{"project-id":e.projectId}}):e._e()],1),s("DrawerOverlay",{attrs:{placement:"right",size:1180},model:{value:e.archivedTaskShow,callback:function(n){e.archivedTaskShow=n},expression:"archivedTaskShow"}},[e.archivedTaskShow?s("TaskArchived",{attrs:{"project-id":e.projectId}}):e._e()],1),s("DrawerOverlay",{attrs:{placement:"right",size:1180},model:{value:e.deletedTaskShow,callback:function(n){e.deletedTaskShow=n},expression:"deletedTaskShow"}},[e.deletedTaskShow?s("TaskDeleted",{attrs:{"project-id":e.projectId}}):e._e()],1)],1)},Oe=[];const Re={name:"ProjectPanel",components:{VMPreviewNostyle:tt,UserAvatarTip:dt,UserSelect:et,TaskMenu:Q,ProjectTaskTag:Et,ProjectTaskTemplate:Bt,ProjectWorkflow:Ht,ProjectPermission:Qt,DrawerOverlay:xt,ProjectLog:rt,TaskArchived:Lt,TaskRow:wt,Draggable:k,TaskAddSimple:nt,TaskPriority:q,TaskDeleted:ie,TaskTag:Z,ProjectGantt:ge,ProjectTableGroupDropdown:je,ProjectFlowFilterDropdown:Me},data(){return{loading:!1,nowTime:$A.dayjs().unix(),nowInterval:null,tableToday:$A.daytz().format("YYYY-MM-DD"),tableGroupsOpen:!1,columnLoad:{},columnTopShow:{},sortField:"end_at",sortType:"desc",searchText:"",addColumnShow:!1,addColumnLoad:!1,addColumnName:"",sortData:[],sortDisabled:!1,settingShow:!1,settingData:{},settingLoad:0,permissionShow:!1,permissionShowData:{},permissionShowLoad:0,userShow:!1,userData:{},userLoad:0,inviteShow:!1,inviteData:{},inviteLoad:0,transferShow:!1,transferData:{},transferLoad:0,taskTemplateShow:!1,taskTagShow:!1,workflowShow:!1,logShow:!1,archivedTaskShow:!1,deletedTaskShow:!1,flowFilter:j(),flowFilterOpen:!1,flowList:[],columnVisibilitys:{},taskVisibilitys:{},taskRowVisibilitys:{}}},mounted(){this.nowInterval=setInterval(()=>{this.nowTime=$A.dayjs().unix(),this.tableToday=$A.daytz().format("YYYY-MM-DD")},1e3)},destroyed(){this.cancelTableGroupScroll(),clearInterval(this.nowInterval)},computed:{...f(["cacheDialogs","projectId","projectLoad","cacheTasks","cacheColumns","taskCompleteTemps","cacheUserBasic","formOptions","systemConfig"]),...I(["aiVisible","projectData","transforTasks"]),tabTypeActive(){return this.projectData.cacheParameter.menuType},tableGroupOptions(){return b},visibleTableGroups(){return ke(this.projectData.cacheParameter.tableGroups)},tableWeekRanges(){return ye($A.dayjs(this.tableToday))},additionalTableGroups(){const t=this.tableGroupOptions.filter(s=>s.kind&&this.visibleTableGroups.includes(s.key));if(!t.length)return[];const e=this.panelTask(this.parentTask),a=t.some(s=>s.kind==="overdue")?$A.daytz(this.nowTime).valueOf():0;return t.map(s=>({...s,tasks:e.filter(n=>U(n,s,this.tableWeekRanges,a,$A.dayjs)).sort((n,i)=>(this.sortType==="asc"&&([n,i]=[i,n]),this.sortField==="level"||n.end_at===i.end_at?$A.sortFloat(n.p_level,i.p_level):$A.sortDay(n.end_at||"2099-12-31 23:59:59",i.end_at||"2099-12-31 23:59:59")))}))},tableGroupCounts(){const t={my:this.myList.length,help:this.helpList.length,undone:this.unList.length,completed:this.completedList.length},e=this.tableGroupOptions.filter(n=>n.kind),a=this.panelTask(this.parentTask),s=$A.daytz(this.nowTime).valueOf();return e.forEach(n=>{t[n.key]=a.filter(i=>U(i,n,this.tableWeekRanges,s,$A.dayjs)).length}),t},tabTypeStyle(){const t={};switch(this.tabTypeActive){case"column":t.left="0";break;case"table":t.left="33.33%";break;case"gantt":t.left="66.66%";break;default:t.display="none"}return t},userWaitRemove(){const{userids:t,useridbak:e}=this.userData;if(!t)return[];let a=[];return e.some(s=>{t.includes(s)||a.push(s)}),a},deputyWaitDemote(){const{deputy_userids:t=[],deputy_useridbak:e=[]}=this.userData;return e.filter(a=>!t.includes(a))},msgUnread(){const{cacheDialogs:t,projectData:e}=this,a=t.find(({id:s})=>s===e.dialog_id);return $A.getDialogNum(a)},panelTask(){const{searchText:t,flowFilter:e}=this;return function(a){return this.projectData.cacheParameter.completedTask||(a=a.filter(({complete_at:s})=>!s)),a=a.filter(s=>w(s,e)),t&&(a=a.filter(({id:s,name:n,desc:i})=>s==t||$A.strExists(`${n} ${i}`,t))),a}},canManageDeputy(){var t;return((t=this.projectData)==null?void 0:t.owner_userid)===this.userId},isDepartmentReadonly(){var t;return!!((t=this.projectData)!=null&&t.department_readonly)},isOwnerOrDeputy(){return this.isDepartmentReadonly||!this.projectData?!1:this.projectData.owner_userid===this.userId?!0:(this.projectData.deputy_userids||[]).includes(this.userId)},memberRowUncancelable(){if(!this.projectData)return[];const t=this.userData&&Array.isArray(this.userData.deputy_userids)?this.userData.deputy_userids:this.projectData.deputy_userids||[];return[this.projectData.owner_userid,...t]},deputyRowUncancelable(){return this.projectData?[this.projectData.owner_userid]:[]},deputyRowDisabledChoice(){return this.projectData?[this.projectData.owner_userid]:[]},projectMemberUserids(){return(this.projectData.project_user||[]).map(({userid:t})=>t)},projectUser(){const{projectData:t,windowWidth:e}=this;if(!t.project_user)return[];const a=e>1200?8:3,s=t.deputy_userids||[],n=t.project_user.filter(({userid:o})=>o!=t.owner_userid).slice().sort((o,r)=>{const l=s.includes(o.userid)?0:1,c=s.includes(r.userid)?0:1;return l-c});if(n.length<=a)return n;const i=n.slice(0,a-1);return i.push({userid:-1}),i.push(n[n.length-1]),i},allTask(){const{cacheTasks:t,projectId:e}=this;return t.filter(a=>a.archived_at||!a.created_at?!1:a.project_id==e)},parentTask(){const{allTask:t}=this;return t.filter(e=>e.parent_id==0)},columnList(){const{projectId:t,cacheColumns:e,allTask:a}=this,s=$A.cloneJSON(e).filter(({project_id:n})=>n==t).sort((n,i)=>n.sort!=i.sort?$A.sortFloat(n.sort,i.sort):n.id-i.id);return s.forEach(n=>{n.tasks=this.transforTasks(a.filter(i=>i.column_id==n.id)).sort((i,o)=>i.complete_at||o.complete_at?$A.sortDay(i.complete_at,o.complete_at):i.sort!=o.sort?$A.sortFloat(i.sort,o.sort):i.id-o.id)}),s},myList(){const{allTask:t,taskCompleteTemps:e,sortField:a,sortType:s}=this;let n=t.filter(i=>this.myFilter(i));if(e.length>0){let i=t.filter(o=>e.includes(o.id)&&this.myFilter(o,!1));i.length>0&&(n=$A.cloneJSON(n),n.push(...i))}return n.sort((i,o)=>{if(s=="asc"&&([i,o]=[o,i]),a=="level")return $A.sortFloat(i.p_level,o.p_level);if(a=="end_at")return i.end_at==o.end_at?$A.sortFloat(i.p_level,o.p_level):$A.sortDay(i.end_at||"2099-12-31 23:59:59",o.end_at||"2099-12-31 23:59:59")})},helpList(){const{allTask:t,taskCompleteTemps:e,sortField:a,sortType:s}=this;let n=t.filter(i=>this.helpFilter(i));if(e.length>0){let i=t.filter(o=>e.includes(o.id)&&this.helpFilter(o,!1));i.length>0&&(n=$A.cloneJSON(n),n.push(...i))}return n.sort((i,o)=>{if(s=="asc"&&([i,o]=[o,i]),a=="level")return $A.sortFloat(i.p_level,o.p_level);if(a=="end_at")return i.end_at==o.end_at?$A.sortFloat(i.p_level,o.p_level):$A.sortDay(i.end_at||"2099-12-31 23:59:59",o.end_at||"2099-12-31 23:59:59")})},unList(){const{allTask:t,searchText:e,sortField:a,sortType:s}=this;return t.filter(i=>i.parent_id>0||this.flowTask(i)||e&&i.id!=e&&!$A.strExists(i.name,e)&&!$A.strExists(i.desc,e)?!1:!i.complete_at).sort((i,o)=>{if(s=="asc"&&([i,o]=[o,i]),a=="level")return $A.sortFloat(i.p_level,o.p_level);if(a=="end_at")return i.end_at==o.end_at?$A.sortFloat(i.p_level,o.p_level):$A.sortDay(i.end_at||"2099-12-31 23:59:59",o.end_at||"2099-12-31 23:59:59")})},completedList(){const{allTask:t,searchText:e}=this;return t.filter(s=>s.parent_id>0||this.flowTask(s)||e&&s.id!=e&&!$A.strExists(s.name,e)&&!$A.strExists(s.desc,e)?!1:s.complete_at).sort((s,n)=>$A.sortDay(n.complete_at,s.complete_at))},completedCount(){const{allTask:t}=this;return t.filter(e=>e.parent_id>0?!1:e.complete_at).length},tagList(){const t=[];return this.allTask.forEach(({task_tag:e})=>{e.forEach(a=>{t.find(s=>s.name===a.name)||t.push(a)})}),t},flowFilterTotal(){return pe(this.flowFilter)},flowFilterGroups(){const{flowList:t,allTask:e,cacheUserBasic:a,flowFilter:s}=this,n=[],i=[{items:[{value:-1,label:this.$L("\u672A\u8BA1\u5212"),count:e.filter(({start_at:r,complete_at:l})=>!r&&!l).length}]}];t.forEach(r=>{i.push({title:t.length>1?r.name:"",items:r.project_flow_item.map(l=>({value:l.id,label:l.name,count:e.filter(({flow_item_id:c})=>c==l.id).length,status:l.status,style:$A.generateColorVarStyle(l.color,[10],"flow-item-custom-color")}))})}),n.push({key:"flows",title:"\u72B6\u6001",sections:i}),this.tagList.length>0&&n.push({key:"tags",title:"\u6807\u7B7E",sections:[{items:this.tagList.map(({name:r,color:l})=>({value:r,label:r,count:e.filter(({task_tag:c})=>c.find(d=>d.name===r)).length,color:l}))}]});const{project_user:o}=this.projectData;if($A.isArray(o)){const r=o.map(l=>{const c=a.find(({userid:g})=>g===l.userid)||{},d=e.filter(({task_user:g,complete_at:u})=>!this.projectData.cacheParameter.completedTask&&u?!1:g.find(({userid:m,owner:_})=>m===l.userid&&_)).length;return{value:c.userid||0,label:c.nickname,count:d,userid:c.userid||0}}).filter(({userid:l,count:c})=>l>0&&(c>0||s.users.includes(l)));r.length>0&&(r.sort((l,c)=>(c.userid==this.userId)-(l.userid==this.userId)),n.push({key:"users",title:"\u8D1F\u8D23\u4EBA",searchable:r.length>10,sections:[{items:r}]}))}return n},flowTrigger(){const{flowFilter:t,flowFilterTotal:e,flowFilterGroups:a,allTask:s}=this;if(e===0)return{title:`${this.$L("\u5168\u90E8")} (${s.length})`};if(e===1){const o=a.find(({key:l})=>t[l].length>0),r=o==null?void 0:o.sections.flatMap(({items:l})=>l).find(({value:l})=>l===t[o.key][0]);if(r){const l=`${r.label} (${r.count})`;return r.status?{title:l,class:r.status,style:r.style}:r.color?{title:l,class:"active tag-dot",style:{"--bg-color":r.color}}:{title:l,class:"active"}}}const n=a.filter(({key:o})=>t[o].length>0).map(({key:o,title:r})=>`${this.$L(r)}\xB7${t[o].length}`),i=s.filter(o=>w(o,t)).length;return{title:`${n.join(" / ")} (${i})`,class:"active"}}},watch:{tabTypeActive(t){t!=="table"&&(this.tableGroupsOpen=!1,this.cancelTableGroupScroll())},additionalTableGroups(){this.handleColumnDebounce()},visibleTableGroups(){this._tableGroupScroll&&!this.visibleTableGroups.includes(this._tableGroupScroll.key)&&this.cancelTableGroupScroll(),this.handleColumnDebounce()},projectId:{handler(t){this.cancelTableGroupScroll(),this.tableGroupsOpen=!1,t>0&&(this.getFlowData(),this.handleColumnDebounce())},immediate:!0},"columnList.length"(){this.handleColumnDebounce()},"parentTask.length"(){this.handleColumnDebounce()},"projectData.task_num"(){this.handleColumnDebounce()},searchText(){this.handleColumnDebounce(!0)},windowWidth(){this.handleColumnDebounce(100)},"userData.deputy_userids"(t){if(!Array.isArray(t)||!Array.isArray(this.userData.userids))return;const e=t.filter(a=>!this.userData.userids.includes(a));e.length>0&&(this.userData.userids=[...this.userData.userids,...e])},projectData(t,e){this.sortData=this.getSort(),t&&t.id&&(!e||t.id!==e.id)&&this.checkProjectFavoriteStatus()},projectLoad(t){this._loadTimeout&&clearTimeout(this._loadTimeout),t>0?this._loadTimeout=setTimeout(()=>{this.loading=!0},1e3):this.loading=!1}},methods:{transformEmojiToHtml:st,showName(){this.windowLandscape||$A.modalInfo({language:!1,title:this.$L("\u9879\u76EE\u540D\u79F0"),content:this.projectData.name})},showDesc(){this.windowLandscape||$A.modalInfo({language:!1,title:this.$L("\u9879\u76EE\u63CF\u8FF0"),content:this.$refs.descPreview.$el.innerHTML})},searchFocus(){this.$nextTick(()=>{this.$refs.searchInput.focus({cursor:"end"})})},getSort(){const t=[];return this.columnList.forEach(e=>{t.push({id:e.id,task:e.tasks.map(({id:a})=>a)})}),t},sortUpdate(t){if(this.isDepartmentReadonly)return;const e=this.sortData,a=this.getSort();if(JSON.stringify(e)===JSON.stringify(a))return;this.sortData=a;const s={project_id:this.projectId,sort:this.sortData,only_column:t===!0?1:0};this.sortDisabled=!0,this.$store.dispatch("call",{url:"project/sort",data:s,method:"post"}).then(({msg:n})=>{$A.messageSuccess(n),this.sortDisabled=!1;let i,o=[];s.only_column?(i=-1,s.sort.forEach(r=>{i++,o.push({id:r.id,sort:i})}),this.$store.dispatch("saveColumn",o)):(s.sort.forEach(r=>{i=-1,o.push(...r.task.map(l=>(i++,o.push(...this.allTask.filter(c=>c.parent_id==l).map(({id:c})=>({id:c,sort:i,column_id:r.id}))),{id:l,sort:i,column_id:r.id})))}),this.$store.dispatch("saveTask",o))}).catch(({msg:n})=>{$A.modalError(n),this.sortDisabled=!1,this.$store.dispatch("getTaskForProject",this.projectId).catch(()=>{})}).finally(n=>{this.handleColumnDebounce()})},addTopShow(t,e){this.isDepartmentReadonly||this.$set(this.columnTopShow,t,e)},addTaskOpen(t){this.isDepartmentReadonly||L.emit("addTask",t)},addColumnOpen(){this.isDepartmentReadonly||(this.addColumnShow=!0,this.$nextTick(()=>{this.$refs.addColumnName.focus()}))},addColumnBlur(){this.addColumnName===""&&(this.addColumnShow=!1)},onAddColumnKeydown(t){t.isComposing||t.key==="Process"||t.keyCode===229||t.keyCode===13&&this.addColumnSubmit()},addColumnSubmit(){let t=this.addColumnName.trim();t===""||this.addColumnLoad||(this.addColumnLoad=!0,this.$store.dispatch("call",{url:"project/column/add",data:{project_id:this.projectId,name:t},spinner:600}).then(({data:e,msg:a})=>{$A.messageSuccess(a),this.addColumnName="",this.$store.dispatch("saveColumn",e)}).catch(({msg:e})=>{$A.modalError(e)}).finally(()=>{this.addColumnLoad=!1}))},dropColumn(t,e){this.isDepartmentReadonly||(e==="title"?this.titleColumn(t):e==="archive_completed"?this.archiveColumnCompletedTasks(t):e==="remove"?this.removeColumn(t):e.name&&this.updateColumn(t,{color:e.color}).catch(a=>{$A.modalError(a)}))},titleColumn(t){$A.modalInput({value:t.name,title:"\u4FEE\u6539\u5217\u8868",placeholder:"\u8F93\u5165\u5217\u8868\u540D\u79F0",onOk:e=>e?this.updateColumn(t,{name:e}):"\u5217\u8868\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"})},updateColumn(t,e){return new Promise((a,s)=>{if(this.columnLoad[t.id]===!0){a();return}this.$set(this.columnLoad,t.id,!0),Object.keys(e).forEach(n=>this.$set(t,n,e[n])),this.$store.dispatch("call",{url:"project/column/update",data:Object.assign(e,{column_id:t.id})}).then(({data:n})=>{this.$set(this.columnLoad,t.id,!1),this.$store.dispatch("saveColumn",n),a()}).catch(({msg:n})=>{this.$set(this.columnLoad,t.id,!1),this.$store.dispatch("getColumns",this.projectId).catch(()=>{}),s(n)})})},archiveColumnCompletedTasks(t){const e=this.getColumnCompletedTasks(t);if(e.length===0){$A.messageWarning("\u5F53\u524D\u5217\u8868\u6CA1\u6709\u53EF\u5F52\u6863\u7684\u5DF2\u5B8C\u6210\u4EFB\u52A1");return}$A.modalConfirm({title:"\u5F52\u6863\u5DF2\u5B8C\u6210\u4EFB\u52A1",content:`\u4F60\u786E\u5B9A\u5C06\u5217\u8868\u3010${t.name}\u3011\u4E2D\u6240\u6709\u5DF2\u5B8C\u6210\u7684\u4EFB\u52A1\u5F52\u6863\u5417\uFF1F`,loading:!0,onOk:()=>new Promise((a,s)=>{this.batchArchiveTasks(e).then(()=>{$A.messageSuccess("\u5DF2\u5F52\u6863\u5217\u8868\u4E2D\u6240\u6709\u5DF2\u5B8C\u6210\u4EFB\u52A1"),a()}).catch(({msg:n})=>{$A.modalError(n||"\u5F52\u6863\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5"),s()})})})},getColumnCompletedTasks(t){return!t||!Array.isArray(t.tasks)?[]:t.tasks.filter(e=>e&&e.complete_at&&!e.archived_at)},batchArchiveTasks(t){const e=(a=0)=>{if(a>=t.length)return Promise.resolve();const s=t[a];return this.$store.dispatch("archivedTask",{task_id:s.id}).then(()=>(this.$store.dispatch("saveTaskBrowse",s.id),e(a+1)))};return e()},removeColumn(t){$A.modalConfirm({title:"\u5220\u9664\u5217\u8868",content:"\u4F60\u786E\u5B9A\u8981\u5220\u9664\u5217\u8868\u3010"+t.name+"\u3011\u53CA\u5217\u8868\u5185\u7684\u4EFB\u52A1\u5417\uFF1F",loading:!0,onOk:()=>{if(this.columnLoad[t.id]!==!0)return this.$set(this.columnLoad,t.id,!0),new Promise((e,a)=>{this.$store.dispatch("removeColumn",t.id).then(({msg:s})=>{e(s)}).catch(({msg:s})=>{a(s)}).finally(s=>{this.$set(this.columnLoad,t.id,!1)})})}})},onSort(t){this.sortField=t,this.sortType=this.sortType=="desc"?"asc":"desc",this.handleColumnDebounce()},onSetting(){this.settingLoad++,this.$store.dispatch("call",{url:"project/update",data:Object.assign(this.settingData,{project_id:this.projectId})}).then(({data:t,msg:e})=>{$A.messageSuccess(e),this.settingShow=!1,this.$store.dispatch("saveProject",t)}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.settingLoad--})},onUser(){this.userLoad++;const t=(this.userData.userids||[]).slice(),e=(this.userData.deputy_userids||[]).slice(),a=Array.from(new Set([...t,...e])),s={project_id:this.projectId,userid:a};this.canManageDeputy&&(s.deputy_userid=e),this.$store.dispatch("call",{url:"project/user",data:s}).then(({msg:n})=>{$A.messageSuccess(n),this.userShow=!1,this.$store.dispatch("getProjectOne",this.projectId).catch(()=>{}),this.$store.dispatch("getTaskForProject",this.projectId).catch(()=>{})}).catch(({msg:n})=>{$A.modalError(n)}).finally(n=>{this.userLoad--})},onTransfer(){this.transferLoad++,this.$store.dispatch("call",{url:"project/transfer",data:{project_id:this.projectId,owner_userid:this.transferData.owner_userid[0]}}).then(({msg:t})=>{$A.messageSuccess(t),this.transferShow=!1,this.$store.dispatch("getProjectOne",this.projectId).catch(()=>{}),this.$store.dispatch("getTaskForProject",this.projectId).catch(()=>{})}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.transferLoad--})},onArchived(){$A.modalConfirm({title:"\u5F52\u6863\u9879\u76EE",content:"\u4F60\u786E\u5B9A\u8981\u5F52\u6863\u9879\u76EE\u3010"+this.projectData.name+"\u3011\u5417\uFF1F",loading:!0,onOk:()=>new Promise((t,e)=>{this.$store.dispatch("archivedProject",this.projectId).then(({msg:a})=>{t(a)}).catch(({msg:a})=>{e(a)})})})},onDelete(){$A.modalConfirm({title:"\u5220\u9664\u9879\u76EE",content:"\u4F60\u786E\u5B9A\u8981\u5220\u9664\u9879\u76EE\u3010"+this.projectData.name+"\u3011\u5417\uFF1F",loading:!0,onOk:()=>new Promise((t,e)=>{this.$store.dispatch("removeProject",this.projectId).then(({msg:a})=>{t(a)}).catch(({msg:a})=>{e(a)})})})},onExit(){$A.modalConfirm({title:"\u9000\u51FA\u9879\u76EE",content:"\u4F60\u786E\u5B9A\u8981\u9000\u51FA\u9879\u76EE\u3010"+this.projectData.name+"\u3011\u5417\uFF1F",loading:!0,onOk:()=>new Promise((t,e)=>{this.$store.dispatch("exitProject",this.projectId).then(({msg:a})=>{t(a)}).catch(({msg:a})=>{e(a)})})})},projectDropdown(t){if(!(this.isDepartmentReadonly&&!["favorite","log","archived_task","deleted_task"].includes(t)))switch(t){case"favorite":this.toggleProjectFavorite();break;case"setting":Object.assign(this.settingData,{name:this.projectData.name,desc:this.projectData.desc,archive_method:this.projectData.archive_method,archive_days:this.projectData.archive_days,ai_auto_analyze:this.projectData.ai_auto_analyze||"open",task_template_share:this.projectData.task_template_share||"open",department_owner_view:this.projectData.department_owner_view||"open"}),this.settingShow=!0,this.$nextTick(()=>{setTimeout(this.$refs.projectDesc.resizeTextarea,0)});break;case"permissions":this.permissionShow=!0;break;case"user":if(this.isDepartmentReadonly||!this.isOwnerOrDeputy)return;const e=this.projectData.project_user.map(({userid:s})=>s),a=[...this.projectData.deputy_userids||[]];this.$set(this.userData,"userids",e),this.$set(this.userData,"useridbak",e),this.$set(this.userData,"deputy_userids",a),this.$set(this.userData,"deputy_useridbak",a),this.userShow=!0;break;case"invite":this.inviteData={},this.inviteShow=!0,this.inviteGet();break;case"task_template":this.taskTemplateShow=!0;break;case"task_tag":this.taskTagShow=!0;break;case"workflow":this.workflowShow=!0;break;case"log":this.logShow=!0;break;case"archived_task":this.archivedTaskShow=!0;break;case"deleted_task":this.deletedTaskShow=!0;break;case"transfer":this.$set(this.transferData,"owner_userid",[]),this.transferShow=!0;break;case"archived":this.onArchived();break;case"delete":this.onDelete();break;case"exit":this.onExit();break}},isPrimaryOwnerUid(t){return t===this.projectData.owner_userid},isDeputyUid(t){return(this.projectData.deputy_userids||[]).includes(t)},openTask(t,e){this.$store.dispatch("openTask",t),!this.isDepartmentReadonly&&e===!0&&setTimeout(()=>{L.emit("receiveTask",!0)},300)},openMenu(t,e){const a=this.$refs[`taskMenu_${e.id}`];a&&a[0].handleClick(t)},taskIsHidden(t){const{id:e,name:a,desc:s,complete_at:n}=t,{searchText:i}=this;return!!(!this.projectData.cacheParameter.completedTask&&n||this.flowTask(t)||i&&e!=i&&!$A.strExists(`${a} ${s}`,i))},ownerUser(t){return t.filter(({owner:e})=>e==1).sort((e,a)=>e.id-a.id)},inviteGet(t){this.inviteLoad++,this.$store.dispatch("call",{url:"project/invite",data:{project_id:this.projectId,refresh:t===!0?"yes":"no"}}).then(({data:e})=>{this.inviteData=e,this.inviteCopy()}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.inviteLoad--})},getFlowData(){this.flowFilter=j(),this.flowFilterOpen=!1,this.$store.dispatch("call",{url:"project/flow/list",data:{project_id:this.projectId}}).then(({data:t})=>{this.flowList=t}).catch(()=>{this.flowList=[]})},flowFilterChange(t,e,a){const s=this.flowFilter[t].filter(n=>n!==e.value);a&&s.push(e.value),this.flowFilter={...this.flowFilter,[t]:s},a&&e.status==="end"&&!this.projectData.cacheParameter.completedTask&&this.toggleParameter("completedTask"),this.handleColumnDebounce(!0)},flowFilterClear(t){this.flowFilter=t?{...this.flowFilter,[t]:[]}:j(),this.handleColumnDebounce(!0)},inviteCopy(){!this.inviteData.url||(this.inviteFocus(),this.copyText(this.inviteData.url))},inviteFocus(){this.$nextTick(t=>{this.$refs.inviteInput.focus({cursor:"all"})})},async taskTagBeforeClose(){this.$store.dispatch("getTaskForProject",this.projectId).catch(()=>{})},workflowBeforeClose(){return new Promise(t=>{if(!this.$refs.workflow){t();return}if(!this.$refs.workflow.existDiff()){t();return}$A.modalConfirm({content:"\u8BBE\u7F6E\u5C1A\u672A\u4FDD\u5B58\uFF0C\u662F\u5426\u653E\u5F03\u4FEE\u6539\uFF1F",cancelText:"\u53D6\u6D88",okText:"\u653E\u5F03",onOk:()=>{t()}})})},myFilter(t,e=!0){return!this.projectData.cacheParameter.completedTask&&e===!0&&t.complete_at||this.flowTask(t)||this.searchText&&t.id!=this.searchText&&!$A.strExists(t.name,this.searchText)&&!$A.strExists(t.desc,this.searchText)?!1:t.owner==1},helpFilter(t,e=!0){return t.parent_id>0||!this.projectData.cacheParameter.completedTask&&e===!0&&t.complete_at||this.flowTask(t)||this.searchText&&t.id!=this.searchText&&!$A.strExists(t.name,this.searchText)&&!$A.strExists(t.desc,this.searchText)?!1:t.task_user&&t.task_user.find(({userid:a,owner:s})=>a==this.userId&&s==0)},flowTask(t){return!w(t,this.flowFilter)},expiresFormat(t){return $A.countDownFormat(this.nowTime,t)},setTableGroupVisible(t,e){const a=this.visibleTableGroups;if(!e&&a.length===1&&a.includes(t.key))return;const s=e?this.tableGroupOptions.filter(n=>n.key===t.key||a.includes(n.key)).map(n=>n.key):a.filter(n=>n!==t.key);this.toggleParameter({project_id:this.projectId,key:e?{tableGroups:s,[t.expandedKey]:!0}:{tableGroups:s}}),e?this.scrollToTableGroup(t.key):this.cancelTableGroupScroll()},cancelTableGroupScroll(){var t,e;(e=(t=this._tableGroupScroll)==null?void 0:t.cancel)==null||e.call(t),this._tableGroupScroll=null},scrollToTableGroup(t){this.cancelTableGroupScroll();const e=this.projectId,a={key:t};this._tableGroupScroll=a;const s=()=>this._tableGroupScroll===a&&this.projectId===e&&this.tabTypeActive==="table"&&this.visibleTableGroups.includes(t);this.$nextTick(()=>{if(!s())return;const n=this.$refs.projectTableScroll,i=n==null?void 0:n.scrollElement(),o=i==null?void 0:i.querySelector(`[data-table-group="${t}"]`);!o||(a.cancel=Ee({container:i,target:o,inputRoot:n.$el,isActive:s,render:async()=>{await this.handleTaskScroll({target:i}),await this.$nextTick()}}))})},tabTypeChange(t){switch(t){case"column":this.toggleParameter({project_id:this.projectId,key:"menuType",value:"column"});break;case"table":this.toggleParameter({project_id:this.projectId,key:"menuType",value:"table"});break;case"gantt":this.toggleParameter({project_id:this.projectId,key:"menuType",value:"gantt"});break}},toggleParameter(t){if(t==="chat"){this.$store.dispatch("openDialog",this.projectData.dialog_id);return}t==="completedTask"&&this.$store.dispatch("forgetTaskCompleteTemp",!0),this.$store.dispatch("toggleProjectParameter",t),this.handleColumnDebounce()},onBack(){const{name:t,params:e}=this.$store.state.routeHistoryLast;t===this.routeName&&/^\d+$/.test(e.projectId)?this.goForward({name:this.routeName,params:{projectId:"all"}}):this.goBack()},formArchived(t){this.settingData={...this.settingData,archive_method:t}},taskItemVisible({id:t,column_id:e}){var a;return this.columnVisibilitys[e]&&((a=this.taskVisibilitys[t])==null?void 0:a.visible)},taskItemStyle({id:t,column_id:e,complete_at:a,color:s}){var i;const n={};return s&&(n.backgroundColor=s),this.taskItemVisible({id:t,column_id:e})||(n.height=(((i=this.taskVisibilitys[t])==null?void 0:i.height)||(a?46:146))+"px"),n},handleColumnDebounce(t=10,e=!1){typeof t=="boolean"&&(e=t,t=10),this.columnDebounceWait!==t&&(this.columnDebounceWait=t,this.columnDebounceInvoke&&(this.columnDebounceInvoke.cancel(),this.columnDebounceInvoke=null)),this.columnDebounceInvoke||(this.columnDebounceInvoke=it.exports.debounce(a=>{this.$nextTick(s=>{var n;switch(this.tabTypeActive){case"column":this.handleColumnScroll(),a===!0&&requestAnimationFrame(()=>{const i=this.$refs.projectColumn;i&&!i.querySelector(".task-head")&&$A.scrollIntoViewIfNeeded(i.querySelector(".task-draggable:not(.hidden)"))});break;case"table":this.handleTaskScroll({target:(n=this.$refs.projectTableScroll)==null?void 0:n.$el});break}})},t)),this.columnDebounceInvoke(e)},handleColumnScroll(){this.columnList.forEach(({id:t})=>{const e=this.$refs[`column_${t}`];e&&this.checkColumnVisibility(e[0])})},checkColumnVisibility(t=null){if(!t)return;const e=t.getAttribute("data-id");if(!e)return;const a=this.$refs.projectColumn;if(!a)return!1;const s=a.getBoundingClientRect(),n=t.getBoundingClientRect(),i=n.lefts.left&&n.tops.top;i&&this.handleTaskScroll({target:t.querySelector(".task-scrollbar")}),this.$set(this.columnVisibilitys,e,i)},async handleTaskScroll({target:t}){var n;if(!t)return;const e=t.querySelectorAll(".task-item");if(!e.length)return;let a=null;switch(this.tabTypeActive){case"column":a="taskVisibilitys";break;case"table":a="taskRowVisibilitys";break;default:return}const s=t.getBoundingClientRect();for(const i of e){const o=i.getAttribute("data-id");if(!o)continue;const r=i.getBoundingClientRect(),l=((n=this[a][o])==null?void 0:n.visible)||!1,c=r.top>=s.top-r.height&&r.bottom<=s.bottom+r.height;if(c===l)continue;const d=this[a][o]===void 0&&c;this.$set(this[a],o,{visible:c,height:r.height}),d&&await this.$nextTick()}},toggleProjectFavorite(){!this.projectData.id||this.$store.dispatch("toggleFavorite",{type:"project",id:this.projectData.id}).then(({data:t})=>{this.$set(this.projectData,"favorited",t.favorited)})},checkProjectFavoriteStatus(){!this.projectData.id||this.$store.dispatch("checkFavoriteStatus",{type:"project",id:this.projectData.id}).then(({data:t})=>{this.$set(this.projectData,"favorited",t.favorited||!1)}).catch(()=>{this.$set(this.projectData,"favorited",!1)})}}},Y={};var We=x(Re,Fe,Oe,!1,ze,null,null,null);function ze(t){for(let e in Y)this[e]=Y[e]}var Be=function(){return We.exports}(),Ne=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"project-list"},[a("PageTitle",{attrs:{title:t.$L("\u9879\u76EE")}}),a("div",{staticClass:"list-search"},[a("div",{staticClass:"search-wrapper"},[a("div",{staticClass:"search-pre"},[t.loadProjects>0?a("Loading"):a("Icon",{attrs:{type:"ios-search"}})],1),a("Form",{staticClass:"search-form",attrs:{action:"javascript:void(0)"},nativeOn:{submit:function(s){return s.preventDefault(),t.$A.eeuiAppKeyboardHide.apply(null,arguments)}}},[a("Input",{attrs:{type:"search",placeholder:t.$L(t.loadProjects>0?"\u66F4\u65B0\u4E2D...":"\u641C\u7D22"),clearable:""},model:{value:t.projectKeyValue,callback:function(s){t.projectKeyValue=s},expression:"projectKeyValue"}})],1)],1),t.ownerViewAvailable?a("div",{staticClass:"owner-view-button",on:{click:function(s){t.departmentOwnerViewShow=!0}}},[a("i",{staticClass:"taskfont"},[t._v("\uE75C")]),t.departmentOwnerProjectViewEnabled?a("em",[t._v(t._s(t.ownerDepartmentIds.length))]):t._e()]):t._e()]),a("div",{staticClass:"owner-project-wrapper"},[t.ownerProjectTabsVisible?a("div",{staticClass:"owner-project-tabs"},t._l(t.ownerProjectTabs,function(s){return a("div",{key:s.type,class:["owner-project-tab",t.ownerProjectTab===s.type?"active":""],attrs:{title:t.$L(s.name)},on:{click:function(n){t.ownerProjectTab=s.type}}},[a("span",[t._v(t._s(t.$L(s.name)))]),a("Badge",{attrs:{"overflow-count":999,count:s.count}})],1)}),0):t._e()]),a("Draggable",{directives:[{name:"longpress",rawName:"v-longpress",value:t.handleLongpress,expression:"handleLongpress"}],attrs:{list:t.projectDraggableList,animation:150,disabled:!(t.isDragging&&!t.projectKeyValue)||t.ownerProjectTabsVisible,tag:"ul","item-key":"id",draggable:"li:not(.pinned)",handle:".item-sort"},on:{start:function(s){t.projectDragging=!0},end:t.onProjectSortEnd},nativeOn:{scroll:function(s){return t.onScroll.apply(null,arguments)},touchstart:function(s){return t.onTouchStart.apply(null,arguments)}}},[t._l(t.projectDraggableList,function(s){return a("li",{key:s.id,class:[{operate:s.id==t.operateItem.id&&t.operateVisible},s.top_at?"pinned":""],attrs:{"data-id":s.id},on:{pointerdown:t.handleOperation,click:function(n){return t.toggleRoute("project",{projectId:s.id})}}},[a("div",{staticClass:"project-item"},[a("div",{staticClass:"item-left"},[a("div",{staticClass:"project-h1"},[a("div",{staticClass:"project-name",domProps:{innerHTML:t._s(t.transformEmojiToHtml(s.name))}}),s.department_readonly&&s.personal?a("ETooltip",{attrs:{content:t.$L("\u4E2A\u4EBA\u9879\u76EE\uFF0C\u53EA\u8BFB\u67E5\u770B"),placement:"right"}},[a("UserAvatar",{staticClass:"readonly-owner-avatar",attrs:{userid:s.userid,size:18}})],1):s.department_readonly?a("ETooltip",{attrs:{content:t.$L("\u8D1F\u8D23\u4EBA\u89C6\u89D2\uFF0C\u53EA\u8BFB\u67E5\u770B"),placement:"right"}},[a("i",{staticClass:"taskfont readonly-project-avatar"},[t._v("\uE75C")])]):t._e(),s.top_at?a("div",{staticClass:"icon-top"}):t._e(),s.task_my_num-s.task_my_complete>0?a("div",{staticClass:"num"},[t._v(t._s(s.task_my_num-s.task_my_complete))]):t._e()],1),a("div",{staticClass:"project-h2"},[t._v(" "+t._s(s.desc)+" ")])]),s.task_num>0?a("div",{staticClass:"item-right",on:{click:function(n){return n.stopPropagation(),t.modalPercent(s)}}},[a("iCircle",{attrs:{type:"circle","trail-color":"rgba(132, 197, 106, 0.2)","trail-width":7,"stroke-color":s.task_percent===100?"rgba(132, 197, 106, 0)":"#84C56A","stroke-width":7,percent:s.task_percent,size:44}},[s.task_percent===100?a("Icon",{attrs:{type:"ios-checkmark"}}):a("span",{staticClass:"percent-text"},[t._v(t._s(s.task_percent)+"%")])],1)],1):t._e(),a("div",{directives:[{name:"show",rawName:"v-show",value:t.isDragging&&!t.projectKeyValue&&!s.top_at,expression:"isDragging && !projectKeyValue && !item.top_at"}],staticClass:"item-sort",on:{click:function(n){return n.stopPropagation(),t.handleDragTip.apply(null,arguments)}}},[a("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}},[a("path",{attrs:{d:"M3 12h18"}}),a("path",{attrs:{d:"M3 18h18"}}),a("path",{attrs:{d:"M3 6h18"}})])])])])}),t.projectLists.length===0?[t.projectKeyLoading>0||t.departmentOwnerProjectsRefreshing?a("li",{staticClass:"loading"},[a("Loading")],1):a("li",{staticClass:"nothing"},[t._v(" "+t._s(t.$L(t.projectKeyValue?`\u6CA1\u6709\u4EFB\u4F55\u4E0E"${t.projectKeyValue}"\u76F8\u5173\u7684\u7ED3\u679C`:"\u6CA1\u6709\u4EFB\u4F55\u9879\u76EE"))+" ")])]:t._e()],2),a("div",{directives:[{name:"transfer-dom",rawName:"v-transfer-dom"},{name:"show",rawName:"v-show",value:t.operateVisible,expression:"operateVisible"}],staticClass:"operate-position",style:t.operateStyles,attrs:{"data-transfer":!0}},[a("Dropdown",{attrs:{trigger:"custom",placement:t.windowLandscape?"bottom":"top",visible:t.operateVisible,transfer:""},on:{"on-clickoutside":function(s){t.operateVisible=!1}}},[a("div",{style:{userSelect:t.operateVisible?"none":"auto",height:t.operateStyles.height}}),a("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[a("DropdownItem",{nativeOn:{click:function(s){return t.handleTopClick.apply(null,arguments)}}},[t._v(" "+t._s(t.$L(t.operateItem.top_at?"\u53D6\u6D88\u7F6E\u9876":"\u7F6E\u9876\u8BE5\u9879\u76EE"))+" ")]),a("DropdownItem",{nativeOn:{click:function(s){return t.handleChatClick.apply(null,arguments)}}},[t._v(" "+t._s(t.$L("\u9879\u76EE\u8BA8\u8BBA"))+" ")]),!t.projectKeyValue&&!t.operateItem.top_at&&!t.ownerProjectTabsVisible?a("DropdownItem",{nativeOn:{click:function(s){t.isDragging=!t.isDragging}}},[t._v(" "+t._s(t.$L(t.isDragging?"\u9000\u51FA\u6392\u5E8F":"\u8C03\u6574\u6392\u5E8F"))+" ")]):t._e()],1)],1)],1),a("DepartmentOwnerView",{model:{value:t.departmentOwnerViewShow,callback:function(s){t.departmentOwnerViewShow=s},expression:"departmentOwnerViewShow"}})],1)},Ve=[];const Ge={name:"ProjectList",components:{Draggable:k,DepartmentOwnerView:ut},directives:{longpress:lt,TransferDom:ct},data(){return{projectKeyValue:"",projectKeyLoading:0,operateStyles:{},operateVisible:!1,operateItem:{},isDragging:!1,projectDraggableList:[],projectDragging:!1,ownerProjectTab:"mine",departmentOwnerViewShow:!1}},computed:{...f(["cacheProjects","loadProjects","longpressData","userInfo","systemConfig","cacheDepartmentOwnerIds","departmentOwnerProjectsRefreshing","departmentOwnerProjectViewEnabled"]),managedDepartments(){return(this.userInfo.managed_departments||[]).map(t=>({...t,id:parseInt(t.id)}))},ownerViewAvailable(){return this.systemConfig.department_owner_project_view==="open"&&this.managedDepartments.length>0},ownerDepartmentIds(){return this.cacheDepartmentOwnerIds||[]},projectBaseLists(){const{projectKeyValue:t,cacheProjects:e}=this,a=$A.cloneJSON(e).sort((s,n)=>{if(s.top_at!==n.top_at&&(s.top_at||n.top_at))return $A.sortDay(n.top_at,s.top_at);const i=typeof s.sort=="number"?s.sort:Number.MAX_SAFE_INTEGER,o=typeof n.sort=="number"?n.sort:Number.MAX_SAFE_INTEGER;return i!==o?i-o:n.id-s.id});return t?a.filter(s=>$A.strExists(`${s.name} ${s.desc}`,t)):a},ownerProjectTabsVisible(){return this.ownerViewAvailable&&this.departmentOwnerProjectViewEnabled},ownerProjectTabs(){return[{type:"mine",name:"\u6211\u7684\u9879\u76EE",count:this.projectBaseLists.filter(t=>!t.department_readonly).length},{type:"readonly",name:"\u8D1F\u8D23\u4EBA\u89C6\u89D2",count:this.projectBaseLists.filter(t=>t.department_readonly).length}]},projectLists(){return this.ownerProjectTabsVisible?this.projectBaseLists.filter(t=>this.ownerProjectTab==="readonly"?t.department_readonly:!t.department_readonly):this.projectBaseLists}},watch:{ownerProjectTabs:{handler(t){if(!this.ownerProjectTabsVisible){this.ownerProjectTab="mine";return}const e=t.find(a=>a.type===this.ownerProjectTab);if(!e||e.count===0){const a=t.find(s=>s.count>0);a&&(this.ownerProjectTab=a.type)}},immediate:!0},projectLists:{handler(t){this.projectDragging||(this.projectDraggableList=$A.cloneJSON(t))},immediate:!0},projectKeyValue(t){if(t!=""){if($A.loadVConsole(t)){this.projectKeyValue="";return}this.projectKeyLoading++,setTimeout(()=>{this.projectKeyValue==t&&this.searchProject(),this.projectKeyLoading--},600)}},projectDragging(t){t?this.$el.parentElement.style.overflow="hidden":this.$el.parentElement.style.overflow=null}},methods:{transformEmojiToHtml:st,onProjectSortEnd(){const t=this.projectDraggableList.filter(e=>!e.top_at);this.$store.dispatch("call",{url:"project/user/sort",data:{list:t.map(e=>e.id)},method:"post",spinner:2e3}).then(({msg:e})=>{t.forEach((a,s)=>{this.$store.dispatch("saveProject",{id:a.id,sort:s})}),$A.messageSuccess(e)}).catch(({msg:e})=>{this.projectDraggableList=$A.cloneJSON(this.projectLists),$A.modalError(e)}).finally(()=>{this.projectDragging=!1})},searchProject(){this.projectKeyLoading++,this.$store.dispatch("getProjects",{keys:{name:this.projectKeyValue}}).finally(t=>{this.projectKeyLoading--})},toggleRoute(t,e){this.operateVisible||this.goForward({name:"manage-"+t,params:e||{}})},onTouchStart(t){const e=document.activeElement;e&&e.blur()},onScroll(t){this.operateVisible=!1},modalPercent(t){if(this.operateVisible)return;let e=`${this.$L("\u603B\u8FDB\u5EA6")}
`;e+=`${this.$L("\u603B\u6570\u91CF")}: ${t.task_num}
`,e+=`${this.$L("\u5DF2\u5B8C\u6210")}: ${t.task_complete}
`,e+=`${this.$L("\u6211\u7684\u4EFB\u52A1")}
`,e+=`${this.$L("\u603B\u6570\u91CF")}: ${t.task_my_num}
`,e+=`${this.$L("\u5DF2\u5B8C\u6210")}: ${t.task_my_complete}
`,$A.modalInfo({language:!1,title:`${t.name} ${this.$L("\u9879\u76EE\u8FDB\u5EA6")}`,content:e})},handleDragTip(){$A.modalAlert("\u8BF7\u6309\u4F4F\u56FE\u6807\u8FDB\u884C\u62D6\u52A8\u6392\u5E8F")},handleLongpress(t){if(t.target.classList.contains("item-sort"))return;const{type:e,data:a,element:s}=this.longpressData;if(this.$store.commit("longpress/clear"),e!=="projectList")return;const n=this.projectLists.find(i=>i.id==a.projectId);!n||(this.operateVisible=!1,this.operateItem=$A.isJson(n)?n:{},requestAnimationFrame(()=>{const i=s.getBoundingClientRect();this.operateStyles={left:`${t.clientX}px`,top:`${i.top}px`,height:`${i.height}px`},this.operateVisible=!0}))},handleOperation({currentTarget:t}){this.$store.commit("longpress/set",{type:"projectList",data:{projectId:$A.getAttr(t,"data-id")},element:t})},handleTopClick(){this.$store.dispatch("call",{url:"project/top",data:{project_id:this.operateItem.id}}).then(({data:t})=>{this.$store.dispatch("saveProject",t)}).catch(({msg:t})=>{$A.modalError(t)})},handleChatClick(){this.$store.dispatch("openDialog",this.operateItem.dialog_id).catch(({msg:t})=>{$A.modalError(t||this.$L("\u6253\u5F00\u4F1A\u8BDD\u5931\u8D25"))})}}},J={};var Ue=x(Ge,Ne,Ve,!1,Ke,null,null,null);function Ke(t){for(let e in J)this[e]=J[e]}var He=function(){return Ue.exports}(),Ye=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"page-project"},[t.projectId>0?a("ProjectPanel",{ref:"panel"}):t._e(),t.windowPortrait?a("ProjectList",{directives:[{name:"show",rawName:"v-show",value:t.projectId===0,expression:"projectId === 0"}]}):t._e()],1)},Je=[];const Xe={components:{ProjectList:He,ProjectPanel:Be},deactivated(){this.$store.dispatch("forgetTaskCompleteTemp",!0)},computed:{...f(["cacheProjects","wsOpenNum"]),projectId(){const{projectId:t}=this.$route.params;return parseInt(/^\d+$/.test(t)?t:0)}},watch:{projectId:{handler(){this.getProjectData()},immediate:!0},wsOpenNum(t){t<=1||(this.wsOpenTimeout&&clearTimeout(this.wsOpenTimeout),this.wsOpenTimeout=setTimeout(()=>{this.routeName=="manage-project"&&this.getProjectData()},5e3))}},methods:{getProjectData(){if(this.projectId<=0){this.$store.state.projectId=0;return}const t=this.projectId;this.$nextTick(()=>{this.$store.state.projectId=t,this.$store.dispatch("getProjectOne",t).then(()=>{this.$store.dispatch("getColumns",t).catch(()=>{}),this.$store.dispatch("getTaskForProject",t).catch(()=>{})}).catch(({msg:e})=>{t===this.projectId&&$A.modalWarning({content:e,onOk:()=>{const a=this.cacheProjects.find(({id:s})=>s);a?$A.goForward({name:"manage-project",params:{projectId:a.id}}):$A.goForward({name:"manage-dashboard"})}})}),this.$store.dispatch("forgetTaskCompleteTemp",!0)})}}},X={};var qe=x(Xe,Ye,Je,!1,Ze,null,null,null);function Ze(t){for(let e in X)this[e]=X[e]}var Js=function(){return qe.exports}();export{Js as default};
diff --git a/public/js/build/project.e01e074b.js b/public/js/build/project.e01e074b.js
deleted file mode 100644
index b221f4855..000000000
--- a/public/js/build/project.e01e074b.js
+++ /dev/null
@@ -1,397 +0,0 @@
-import{m as f,a as j}from"./vuex.cc7cb26e.js";import{l as et}from"./lodash.8fcd6fd4.js";import{D as k}from"./vuedraggable.f464b992.js";import{b as H,T as st,a as Y,P as at}from"./add.1373f0de.js";import{n as x,h as J,e as D,V as X,l as A,U as q,t as Z,c as nt,d as it}from"./app.818b057c.js";import{S as Q}from"./SearchButton.3fc39f79.js";import{U as ot,D as rt}from"./index.ab4b7604.js";import{D as lt}from"./DepartmentOwnerView.2b37b86c.js";import"./@babel.9410f858.js";import"./sortablejs.3488b922.js";import"./jquery.c87f487f.js";import"./dayjs.fd4aa75c.js";import"./localforage.8de7c27e.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./vue.adba9046.js";import"./openpgp_hi.15f91b1d.js";import"./axios.37c7f908.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./view-design-hi.24419422.js";import"./html-to-md.f297036e.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vue-resize-observer.5af23a43.js";import"./element-sea.f8a64907.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var ct=function(){var t=this,e=t.$createElement,s=t._self._c||e;return t.rowMode?s("Row",{staticClass:"task-add-row"},[s("Col",{class:["row-add",t.active?"active":""],attrs:{span:"12"}},[s("div",{staticClass:"add-input",on:{mouseenter:function(a){t.mouseEnter=!0},mouseleave:function(a){t.mouseEnter=!1}}},[s("Input",{ref:"input",attrs:{type:"textarea",rows:1,autosize:{minRows:1,maxRows:3},maxlength:255,placeholder:t.$L("(*)\u63CF\u8FF0\uFF0C\u56DE\u8F66\u521B\u5EFA",t.$L(t.typeName)),enterkeyhint:"done"},on:{"on-focus":function(a){t.onFocus=!0},"on-blur":function(a){t.onFocus=!1},"on-keydown":t.onKeydown},model:{value:t.addData.name,callback:function(a){t.$set(t.addData,"name",a)},expression:"addData.name"}}),t.parentId==0?s("div",{staticClass:"priority"},[s("ul",t._l(t.taskPriority,function(a,n){return s("li",{key:n},[t.active?s("ETooltip",{attrs:{disabled:t.$isEEUIApp||t.windowTouch,content:t.taskPriorityContent(a)}},[s("i",{staticClass:"taskfont",style:{color:a.color},domProps:{innerHTML:t._s(t.addData.p_name==a.name?"":"")},on:{click:function(i){return t.choosePriority(a)}}})]):t._e()],1)}),0),s("Icon",{attrs:{type:"md-settings"},on:{click:t.onPriority}})],1):t._e()],1),s("div",{staticClass:"add-btn",on:{click:t.openAdd}},[s("Icon",{staticClass:"add-icon",attrs:{type:"md-add"}}),t._v(t._s(t.$L("\u6DFB\u52A0(*)",t.$L(t.typeName)))+" ")],1)]),s("Col",{attrs:{span:"3"}}),s("Col",{attrs:{span:"3"}}),s("Col",{attrs:{span:"3"}}),s("Col",{attrs:{span:"3"}})],1):s("div",{class:["task-add-simple",t.active?"active":""],on:{mouseenter:function(a){t.mouseEnter=!0},mouseleave:function(a){t.mouseEnter=!1}}},[s("Input",{ref:"input",attrs:{type:"textarea",rows:2,autosize:{minRows:2,maxRows:3},maxlength:255,placeholder:t.$L("(*)\u63CF\u8FF0\uFF0C\u56DE\u8F66\u521B\u5EFA",t.$L(t.typeName)),enterkeyhint:"done"},on:{"on-focus":function(a){t.onFocus=!0},"on-blur":function(a){t.onFocus=!1},"on-keydown":t.onKeydown},model:{value:t.addData.name,callback:function(a){t.$set(t.addData,"name",a)},expression:"addData.name"}}),s("div",{staticClass:"add-placeholder",on:{click:t.openAdd}},[s("Icon",{attrs:{type:"md-add"}}),t._v(t._s(t.$L("\u6DFB\u52A0(*)",t.$L(t.typeName)))+" ")],1),s("div",{staticClass:"priority"},[s("ul",t._l(t.taskPriority,function(a,n){return s("li",{key:n},[t.active?s("ETooltip",{attrs:{disabled:t.$isEEUIApp||t.windowTouch,content:t.taskPriorityContent(a)}},[s("i",{staticClass:"taskfont",style:{color:a.color},domProps:{innerHTML:t._s(t.addData.p_name==a.name?"":"")},on:{click:function(i){return t.choosePriority(a)}}})]):t._e()],1)}),0),s("Icon",{attrs:{type:"md-settings"},on:{click:t.onPriority}})],1)],1)},dt=[];const xt={name:"TaskAddSimple",props:{parentId:{type:Number,default:0},projectId:{type:Number,default:0},columnId:{type:Number,default:0},addTop:{type:Boolean,default:!1},autoActive:{type:Boolean,default:!1},rowMode:{type:Boolean,default:!1}},data(){return{loadIng:0,addData:{name:"",owner:0,column_id:0,times:[],subtasks:[],p_level:0,p_name:"",p_color:"",visibility_appoint:1,visibility_appointor:[]},active:!1,onFocus:!1,mouseEnter:!1}},mounted(){this.autoActive&&this.$nextTick(this.openAdd)},computed:{...f(["taskPriority"]),typeName(){return this.parentId>0?"\u5B50\u4EFB\u52A1":"\u4EFB\u52A1"}},watch:{active(t){t||this.$emit("on-close")},mouseEnter(){this.chackClose()},onFocus(){this.chackClose()}},methods:{getData(){var t;return this.parentId>0?{task_id:this.parentId,name:this.addData.name}:(this.addData.project_id=this.projectId||this.$store.state.projectId,this.addData.column_id=this.columnId||((t=this.$store.state.cacheColumns.find(e=>e.project_id===this.addData.project_id))==null?void 0:t.id)||"",this.addData.owner=[this.userId],this.addData.top=this.addTop?1:0,$A.cloneJSON(this.addData))},openAdd(){if(this.windowPortrait){this.defaultPriority(),this.$emit("on-priority",this.getData()),this.$emit("on-close");return}this.active=!0,this.defaultPriority(),this.$nextTick(()=>{this.$refs.input.resizeTextarea(),this.$refs.input.focus()})},chackClose(){this.mouseEnter||this.onFocus||this.addData.name||(this.active=!1)},onPriority(){this.$emit("on-priority",this.getData()),this.active=!1},onKeydown(t){if(t.keyCode===13){if(t.shiftKey)return;t.preventDefault(),this.onAdd()}},onAdd(){if(!this.addData.name){$A.messageWarning("\u8BF7\u8F93\u5165\u4EFB\u52A1\u63CF\u8FF0");return}if(this.loadIng>0)return;this.loadIng++;let t=this.parentId>0?"taskAddSub":"taskAdd";this.$store.dispatch(t,this.getData()).then(({msg:e})=>{$A.messageSuccess(e),this.active=!1,this.addData={name:"",owner:0,column_id:0,times:[],subtasks:[],p_level:0,p_name:"",p_color:"",visibility_appoint:1,visibility_appointor:[]}}).catch(({msg:e})=>{$A.modalError(e)}).finally(()=>{this.loadIng--})},taskPriorityContent(t){let e=$A.runNum(t.days);return e<=0?t.name+" ("+this.$L("\u65E0\u65F6\u95F4\u9650\u5236")+")":t.name+" ("+e+this.$L("[day_unit].\u5929")+")"},choosePriority(t,e=!0){if($A.runNum(t.days)>0){let s=$A.daytz(),a=s.clone().add($A.runNum(t.days),"day");this.$set(this.addData,"times",$A.newDateString([s,a]))}else this.$set(this.addData,"times",[]);this.$set(this.addData,"p_level",t.priority),this.$set(this.addData,"p_name",t.name),this.$set(this.addData,"p_color",t.color),e&&this.$nextTick(()=>{this.$refs.input.focus()})},defaultPriority(){if(this.taskPriority.length===0||this.addData.p_name)return;const t=this.taskPriority.find(e=>e.is_default===1)||this.taskPriority[0];this.choosePriority(t,!1)}}},P={};var ut=x(xt,ct,dt,!1,pt,null,null,null);function pt(t){for(let e in P)this[e]=P[e]}var tt=function(){return ut.exports}(),ht=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"task-rows"},[t._l(t.list,function(a,n){return s("div",{key:n,ref:`task_${a.id}`,refInFor:!0,staticClass:"task-item",attrs:{"data-id":`${t.openKey}_${a.id}`}},[s("Row",{staticClass:"task-row",style:t.$A.generateColorVarStyle(a.flow_item_color,[10],"flow-item-custom-color",t.taskItemStyle(a))},[t.taskItemVisible(`${t.openKey}_${a.id}`)?[a.p_name?s("em",{staticClass:"priority-color",style:{backgroundColor:a.p_color}}):t._e(),s("Col",{class:["row-name",a.complete_at?"complete":""],attrs:{span:"12"}},[a.sub_num>0&&a.sub_top!==!0||a.parent_id===0&&t.fastAddTask?s("Icon",{class:["sub-icon",t.taskOpen[a.id]?"active":""],attrs:{type:"ios-arrow-forward"},on:{click:function(i){return t.getSublist(a)}}}):t._e(),t.readonly?t._e():s("TaskMenu",{ref:`taskMenu_${a.id}`,refInFor:!0,attrs:{task:a}}),s("div",{staticClass:"item-title",on:{click:function(i){return t.openTask(a)}}},[a.flow_item_name?s("span",{class:a.flow_item_status,on:{click:function(i){i.stopPropagation(),!t.readonly&&t.openMenu(i,a)}}},[t._v(t._s(a.flow_item_name))]):t._e(),a.sub_top===!0?s("span",[t._v(t._s(t.$L("\u5B50\u4EFB\u52A1")))]):t._e(),a.sub_my&&a.sub_my.length>0?s("span",[t._v("+"+t._s(a.sub_my.length))]):t._e(),t._v(" "+t._s(a.name)+" ")]),s("div",{staticClass:"item-icons",on:{click:function(i){return t.openTask(a)}}},[a.desc?s("div",{staticClass:"item-icon"},[s("i",{staticClass:"taskfont"},[t._v("\uE71A")])]):t._e(),a.file_num>0?s("div",{staticClass:"item-icon"},[s("i",{staticClass:"taskfont"},[t._v("\uE71C")]),s("em",[t._v(t._s(a.file_num))])]):t._e(),a.msg_num>0?s("div",{staticClass:"item-icon"},[s("i",{staticClass:"taskfont"},[t._v("\uE71E")]),s("em",[t._v(t._s(a.msg_num))])]):t._e(),a.sub_num>0?s("div",{staticClass:"item-icon",on:{click:function(i){return i.stopPropagation(),t.getSublist(a)}}},[s("i",{staticClass:"taskfont"},[t._v("\uE71F")]),s("em",[t._v(t._s(a.sub_complete)+"/"+t._s(a.sub_num))])]):t._e()])],1),s("Col",{staticClass:"row-column",attrs:{span:"3"}},[s("EDropdown",{attrs:{trigger:"click",size:"small",placement:"bottom",disabled:t.readonly||a.sub_top===!0},on:{command:function(i){return t.dropTask(a,i)}}},[s("div",{staticClass:"task-column"},[t._v(t._s(t.columnName(a.column_id)))]),s("EDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},t._l(t.columnList(a.project_id),function(i){return s("EDropdownItem",{key:i.id,attrs:{command:"column::"+i.id}},[t._v(" "+t._s(i.name)+" ")])}),1)],1)],1),s("Col",{staticClass:"row-priority",attrs:{span:"3"}},[s("EDropdown",{attrs:{trigger:"click",size:"small",placement:"bottom",disabled:t.readonly||a.sub_top===!0},on:{command:function(i){return t.dropTask(a,i)}}},[s("TaskPriority",{attrs:{backgroundColor:a.p_color}},[t._v(t._s(a.p_name||t.$L("\u672A\u8BBE\u7F6E")))]),s("EDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},t._l(t.taskPriority,function(i,o){return s("EDropdownItem",{key:o,attrs:{command:"priority::"+o}},[s("i",{staticClass:"taskfont",style:{color:i.color},domProps:{innerHTML:t._s(i.p_name==i.name?"":"")}}),t._v(" "+t._s(i.name)+" ")])}),1)],1)],1),s("Col",{staticClass:"row-user",attrs:{span:"3"}},[s("ul",{on:{click:function(i){return t.openTask(a)}}},[t._l(t.ownerUser(a.task_user),function(i,o){return o<3?s("li",{key:o},[s("UserAvatar",{attrs:{userid:i.userid,size:"32",borderWidth:2,borderColor:a.color,showName:t.ownerUser(a.task_user).length===1}})],1):t._e()}),!t.readonly&&t.ownerUser(a.task_user).length===0?s("li",{staticClass:"no-owner"},[s("Button",{attrs:{type:"primary",size:"small"},on:{click:function(i){return i.stopPropagation(),t.openTask(a,!0)}}},[t._v(t._s(t.$L("\u9886\u53D6\u4EFB\u52A1")))])],1):t._e()],2)]),s("Col",{staticClass:"row-time",attrs:{span:"3"}},[!a.complete_at&&a.end_at?s("ETooltip",{class:["task-time",a.today?"today":"",a.overdue?"overdue":""],attrs:{disabled:t.$isEEUIApp||t.windowTouch,"open-delay":600,content:a.end_at}},[s("div",{on:{click:function(i){return t.openTask(a)}}},[t._v(t._s(t.expiresFormat(a.end_at)))])]):t.showCompleteAt&&a.complete_at?s("div",{attrs:{title:a.complete_at}},[t._v(t._s(t.completeAtFormat(a.complete_at)))]):t._e()],1)]:t._e()],2),t.taskOpen[a.id]===!0?s("TaskRow",{attrs:{list:t.subTask(a.id),"parent-id":a.id,"fast-add-task":!t.readonly&&a.parent_id===0&&t.fastAddTask,"open-key":t.openKey,readonly:t.readonly},on:{command:t.dropTask}}):t._e()],1)}),!t.readonly&&(t.fastAddTask||t.parentId>0)?s("TaskAddSimple",{attrs:{"parent-id":t.parentId,"row-mode":""},on:{"on-priority":t.onPriority}}):t._e()],2)},mt=[];const ft={name:"TaskRow",components:{TaskMenu:J,TaskAddSimple:tt,TaskPriority:H},props:{list:{type:Array,default:()=>[]},parentId:{type:Number,default:0},fastAddTask:{type:Boolean,default:!1},openKey:{type:String,default:"default"},showCompleteAt:{type:Boolean,default:!1},taskVisibilitys:{type:Object,default:()=>({})},readonly:{type:Boolean,default:!1}},data(){return{nowTime:$A.dayjs().unix(),nowInterval:null,taskLoad:{},taskOpen:{}}},mounted(){this.nowInterval=setInterval(()=>{this.nowTime=$A.dayjs().unix()},1e3)},destroyed(){clearInterval(this.nowInterval)},computed:{...f(["cacheTasks","taskPriority","cacheColumns","taskLatestId"]),subTask(){return function(t){return this.cacheTasks.filter(e=>e.archived_at?!1:e.parent_id==t).sort((e,s)=>e.id-s.id)}}},watch:{taskLatestId(t){setTimeout(()=>{$A.scrollIntoAndShake(this.$refs[`task_${t}`])},300)}},methods:{columnName(t){const e=this.cacheColumns.find(({id:s})=>s==t);return e?e.name:""},dropTask(t,e){if(this.readonly)return;const s=this.$refs[`taskMenu_${t.id}`];if(!!s){if($A.leftExists(e,"column::")){s[0].updateTask({column_id:$A.leftDelete(e,"column::")});return}if($A.leftExists(e,"priority::")){let a=this.taskPriority[parseInt($A.leftDelete(e,"priority::"))];a&&s[0].updateTask({p_level:a.priority,p_name:a.name,p_color:a.color})}}},onPriority(t){this.readonly||this.$emit("on-priority",t)},getSublist(t){if(t.sub_top===!0){this.openTask(t);return}if(this.taskOpen[t.id]===!0){this.$set(this.taskOpen,t.id,!1);return}this.taskLoad[t.id]!==!0&&(this.$set(this.taskLoad,t.id,!0),this.$store.dispatch("getTaskForParent",t.id).then(()=>{this.$set(this.taskLoad,t.id,!1),this.$set(this.taskOpen,t.id,!0)}).catch(({msg:e})=>{$A.modalError(e),this.$set(this.taskLoad,t.id,!1)}))},columnList(t){return this.cacheColumns.filter(({project_id:e})=>e==t)},openTask(t,e){this.$store.dispatch("openTask",t),!this.readonly&&e===!0&&setTimeout(()=>{D.emit("receiveTask",!0)},300)},openMenu(t,e){if(this.readonly)return;const s=this.$refs[`taskMenu_${e.id}`];s&&s[0].handleClick(t)},ownerUser(t){return t.filter(({owner:e})=>e==1).sort((e,s)=>e.id-s.id)},expiresFormat(t){return $A.countDownFormat(this.nowTime,t)},completeAtFormat(t){let e=$A.dayjs(t);return $A.daytz().year()===e.year()?e.format("MM-DD HH:mm"):e.format("YYYY-MM-DD")},taskItemVisible(t){var e;return this.parentId>0||((e=this.taskVisibilitys[t])==null?void 0:e.visible)},taskItemStyle({id:t,color:e}){var n;const s={};e&&(s.backgroundColor=e,s.borderBottomColor=e);const a=`${this.openKey}_${t}`;return this.taskItemVisible(a)||(s.height=(((n=this.taskVisibilitys[a])==null?void 0:n.height)||49)+"px"),s}}},M={};var _t=x(ft,ht,mt,!1,vt,null,null,null);function vt(t){for(let e in M)this[e]=M[e]}var gt=function(){return _t.exports}(),kt=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"task-archived"},[s("div",{staticClass:"archived-title"},[t._v(" "+t._s(t.$L("\u5F52\u6863\u7684\u4EFB\u52A1"))+" "),s("div",{staticClass:"title-icon"},[t.loadIng>0?s("Loading"):t._e()],1)]),s("div",{staticClass:"search-container lr"},[s("ul",[s("li",[s("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u5173\u952E\u8BCD"))+" ")]),s("div",{staticClass:"search-content"},[s("Input",{attrs:{placeholder:t.$L("ID\u3001\u540D\u79F0\u3001\u63CF\u8FF0..."),clearable:""},model:{value:t.keys.name,callback:function(a){t.$set(t.keys,"name",a)},expression:"keys.name"}})],1)]),s("li",[s("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u4EFB\u52A1\u72B6\u6001"))+" ")]),s("div",{staticClass:"search-content"},[s("Select",{attrs:{placeholder:t.$L("\u5168\u90E8")},model:{value:t.keys.status,callback:function(a){t.$set(t.keys,"status",a)},expression:"keys.status"}},[s("Option",{attrs:{value:""}},[t._v(t._s(t.$L("\u5168\u90E8")))]),t.flows.type==="group"?t._l(t.flows.groups,function(a,n){return s("OptionGroup",{key:n,attrs:{label:a.label}},t._l(a.items,function(i,o){return s("Option",{key:o,attrs:{value:i.id,label:i.name}},[s("div",{staticClass:"tag-dot",class:i.status,style:t.$A.generateColorVarStyle(i.color,[],"flow-item-custom-color")},[t._v(t._s(i.name))])])}),1)}):t._l(t.flows.items,function(a,n){return s("Option",{key:n,attrs:{value:a.id,label:a.name}},[s("div",{staticClass:"tag-dot",class:a.status,style:t.$A.generateColorVarStyle(a.color,[],"flow-item-custom-color")},[t._v(t._s(a.name))])])})],2)],1)]),s("li",[s("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u4EFB\u52A1\u6807\u7B7E"))+" ")]),s("div",{staticClass:"search-content"},[s("Select",{attrs:{placeholder:t.$L("\u5168\u90E8")},model:{value:t.keys.tag,callback:function(a){t.$set(t.keys,"tag",a)},expression:"keys.tag"}},[s("Option",{attrs:{value:""}},[t._v(t._s(t.$L("\u5168\u90E8")))]),t._l(t.tags,function(a){return s("Option",{key:a.id,attrs:{value:a.name,label:a.name}},[s("div",{staticClass:"tag-dot",style:{"--bg-color":a.color}},[t._v(" "+t._s(a.name)+" ")])])})],2)],1)]),s("li",{staticClass:"search-button"},[s("SearchButton",{attrs:{loading:t.loadIng>0,filtering:t.keyIs,placement:"right"},on:{search:t.onSearch,refresh:t.getLists,cancelFilter:function(a){t.keyIs=!1}}})],1)])]),s("div",{staticClass:"table-page-box"},[s("Table",{attrs:{columns:t.columns,data:t.list,loading:t.loadIng>0,"no-data-text":t.$L(t.noText),stripe:""}}),s("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)])},yt=[];const $t={name:"TaskArchived",components:{SearchButton:Q},props:{projectId:{type:Number,default:0}},data(){return{loadIng:0,keys:{},keyIs:!1,columns:[{title:"ID",key:"id",width:80,render:(t,{row:e,column:s})=>t("TableAction",{props:{column:s,align:"left"}},[t("div",e.id)])},{title:this.$L("\u4EFB\u52A1\u540D\u79F0"),key:"name",minWidth:200,render:(t,{row:e})=>t("AutoTip",{on:{"on-click":()=>{this.$store.dispatch("openTask",e)}}},e.name)},{title:this.$L("\u4EFB\u52A1\u72B6\u6001"),key:"status",minWidth:100,render:(t,{row:e})=>{let s=e.flow_item_name;return s&&s.indexOf("|")!==-1?[,s]=s.split("|"):e.complete_at?s=this.$L("\u5DF2\u5B8C\u6210"):s=this.$L("\u672A\u5B8C\u6210"),t("AutoTip",s)}},{title:this.$L("\u4EFB\u52A1\u6807\u7B7E"),key:"tags",minWidth:100,render:(t,{row:e})=>e.task_tag.length==0?t("div","-"):t("AutoTip",e.task_tag.map(({name:s})=>s).join("\u3001"))},{title:this.$L("\u5B8C\u6210\u65F6\u95F4"),key:"complete_at",width:168,render:(t,{row:e})=>t("div",{style:{color:e.complete_at?"":"#f00"}},e.complete_at||this.$L("\u672A\u5B8C\u6210"))},{title:this.$L("\u5F52\u6863\u65F6\u95F4"),key:"archived_at",width:168},{title:this.$L("\u5F52\u6863\u4EBA\u5458"),key:"archived_userid",minWidth:100,render:(t,{row:e})=>e.archived_userid?t("UserAvatar",{props:{userid:e.archived_userid,size:24,showName:!0}}):t("Tag",this.$L("\u7CFB\u7EDF\u81EA\u52A8"))},{title:this.$L("\u64CD\u4F5C"),align:"center",width:120,render:(t,e)=>{if(this.cacheTasks.find(a=>a.id==e.row.id&&!a.archived_at))return t("div",{style:{color:"#888"}},this.$L("\u5DF2\u8FD8\u539F"));const s=[t("span",{style:{fontSize:"13px",cursor:"pointer",color:"#84C56A"},on:{click:()=>{this.$store.dispatch("openTask",e.row)}}},this.$L("\u67E5\u770B")),t("Poptip",{props:{title:e.row.__restorePoptipTitle,confirm:!0,transfer:!0,placement:"left",okText:this.$L("\u786E\u5B9A"),cancelText:this.$L("\u53D6\u6D88"),value:e.row.__restorePoptipShow,width:220},style:{marginLeft:"6px",fontSize:"13px",cursor:"pointer",color:"#84C56A"},on:{"on-ok":()=>{this.recovery(e.row)},"on-popper-hide":()=>{e.row.__restorePoptipLoadIng=!1,e.row.__restorePoptipTitle=this.$L("\u4F60\u786E\u5B9A\u8981\u8FD8\u539F\u5F52\u6863\u5417\uFF1F"),e.row.__restorePoptipShow=!1}}},[t("span",{on:{click:a=>{a.stopPropagation(),e.row.__restorePoptipLoadIng=!0,this.$store.dispatch("call",{url:"project/column/one",data:{column_id:e.row.column_id,deleted:"all"}}).then(({data:n})=>{n.deleted_at&&(e.row.__restorePoptipTitle=this.$L("\u68C0\u6D4B\u5230\u6240\u5C5E\u7684\u4EFB\u52A1\u5217\u8868\u5DF2\u88AB\u5220\u9664\uFF0C\u8BE5\u64CD\u4F5C\u5C06\u4F1A\u8FD8\u539F\u4EFB\u52A1\u5217\u8868\uFF0C\u4F60\u786E\u5B9A\u8981\u8FD8\u539F\u5F52\u6863\u5417\uFF1F")),e.row.__restorePoptipShow=!0}).catch(({msg:n})=>{$A.modalError({content:n})}).finally(n=>{e.row.__restorePoptipLoadIng=!1})}}},[e.row.__restorePoptipLoadIng?t("Loading",{style:{width:"26px",height:"15px"}}):this.$L("\u8FD8\u539F")])]),t("Poptip",{props:{title:this.$L("\u4F60\u786E\u5B9A\u8981\u5220\u9664\u4EFB\u52A1\u5417\uFF1F"),confirm:!0,transfer:!0,placement:"left",okText:this.$L("\u786E\u5B9A"),cancelText:this.$L("\u53D6\u6D88")},style:{marginLeft:"6px",fontSize:"13px",cursor:"pointer",color:"#f00"},on:{"on-ok":()=>{this.delete(e.row)}}},this.$L("\u5220\u9664"))];return t("TableAction",{props:{column:e.column}},s)}}],list:[],flowList:[],tags:[],page:1,pageSize:20,total:0,noText:""}},mounted(){this.getFlowData(),this.getTagData()},computed:{...f(["cacheTasks"]),flows({flowList:t}){const e=[];t.forEach(a=>{a.project_flow_item.forEach(n=>{const i=t.length>1?a.name+" - "+n.name:n.name;e.push({...n,id:"flow-"+n.id,label:i})})});const s=[{id:"completed",name:this.$L("\u5DF2\u5B8C\u6210"),status:"completed",label:this.$L("\u5DF2\u5B8C\u6210")},{id:"uncompleted",name:this.$L("\u672A\u5B8C\u6210"),status:"uncompleted",label:this.$L("\u672A\u5B8C\u6210")}];return e.length>0?{type:"group",groups:[{label:this.$L("\u6309\u5DE5\u4F5C\u6D41"),items:e},{label:this.$L("\u6309\u72B6\u6001"),items:s}]}:{type:"normal",items:s}}},watch:{projectId:{handler(){this.getLists()},immediate:!0},keyIs(t){t||(this.keys={},this.setPage(1))}},methods:{onSearch(){this.page=1,this.getLists()},async getFlowData(){let t=[];const e=this.projectId;try{const{data:s}=await this.$store.dispatch("call",{url:"project/flow/list",data:{project_id:e}});t=s||[]}catch{t=[]}e===this.projectId&&(this.flowList=t)},async getTagData(){let t=[];const e=this.projectId;try{const{data:s}=await this.$store.dispatch("call",{url:"project/tag/list",data:{project_id:e}});t=s||[]}catch{t=[]}e===this.projectId&&(this.tags=t)},getLists(){!this.projectId||(this.loadIng++,this.keyIs=$A.objImplode(this.keys)!="",this.$store.dispatch("call",{url:"project/task/lists",data:{keys:this.keys,project_id:this.projectId,parent_id:-1,archived:"yes",sorts:{archived_at:"desc"},page:Math.max(this.page,1),pagesize:Math.max($A.runNum(this.pageSize),10)}}).then(({data:t})=>{this.page=t.current_page,this.total=t.total,this.list=t.data.map(e=>(e.__restorePoptipLoadIng=!1,e.__restorePoptipTitle=this.$L("\u4F60\u786E\u5B9A\u8981\u8FD8\u539F\u5F52\u6863\u5417\uFF1F"),e.__restorePoptipShow=!1,e)),this.noText="\u6CA1\u6709\u76F8\u5173\u7684\u6570\u636E"}).catch(()=>{this.noText="\u6570\u636E\u52A0\u8F7D\u5931\u8D25"}).finally(t=>{this.loadIng--}))},setPage(t){this.page=t,this.getLists()},setPageSize(t){this.page=1,this.pageSize=t,this.getLists()},recovery(t){this.list=this.list.filter(({id:e})=>e!=t.id),this.loadIng++,this.$store.dispatch("archivedTask",{task_id:t.id,type:"recovery"}).then(({msg:e})=>{$A.messageSuccess(e),this.loadIng--,this.getLists(),this.$store.dispatch("openTask",t)}).catch(({msg:e})=>{$A.modalError(e),this.loadIng--,this.getLists()})},delete(t){this.list=this.list.filter(({id:e})=>e!=t.id),this.loadIng++,this.$store.dispatch("removeTask",{task_id:t.id}).then(({msg:e})=>{$A.messageSuccess(e),this.loadIng--,this.getLists()}).catch(({msg:e})=>{$A.modalError(e),this.loadIng--,this.getLists()})}}},E={};var wt=x($t,kt,yt,!1,bt,null,null,null);function bt(t){for(let e in E)this[e]=E[e]}var Tt=function(){return wt.exports}(),Ct=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"project-task-template"},[s("div",{staticClass:"header"},[s("div",{staticClass:"title"},[t._v(" "+t._s(t.$L("\u4EFB\u52A1\u6807\u7B7E"))+" "),t.loadIng>0?s("Loading"):t.tags.length>0?[t._v("("+t._s(t.tags.length)+")")]:t._e()],2),s("div",{staticClass:"actions"},[t.canSortTags&&t.tags.length?s("Button",{attrs:{type:t.sortMode?"primary":"default",loading:t.sortLoading,icon:"md-move"},on:{click:t.toggleSortMode}},[t._v(" "+t._s(t.$L(t.sortMode?"\u5B8C\u6210\u6392\u5E8F":"\u8C03\u6574\u6392\u5E8F"))+" ")]):t._e(),s("Button",{attrs:{type:"primary",icon:"md-add"},on:{click:function(a){return t.handleAdd(null)}}},[t._v(" "+t._s(t.$L("\u65B0\u5EFA\u6807\u7B7E"))+" ")])],1)]),s("div",{staticClass:"content"},[t.tags.length?s("Draggable",{staticClass:"template-list",attrs:{tag:"div",list:t.tags,animation:150,disabled:!t.canSortTags||!t.sortMode||t.sortLoading,"item-key":"id",handle:".tag-drag-handle"},on:{end:t.handleSortEnd}},t._l(t.tags,function(a){return s("div",{key:a.id,staticClass:"tag-item",class:{"is-sorting":t.sortMode&&t.canSortTags}},[t.sortMode&&t.canSortTags?s("div",{staticClass:"tag-drag-handle",attrs:{title:t.$L("\u62D6\u62FD\u8C03\u6574\u6392\u5E8F")}},[s("Icon",{attrs:{type:"md-menu"}})],1):t._e(),s("div",{staticClass:"tag-contents"},[s("div",{staticClass:"tag-title"},[s("Tags",{attrs:{tags:a}})],1),a.desc?s("div",{staticClass:"tag-desc"},[t._v(t._s(a.desc))]):t._e()]),s("div",{staticClass:"tag-actions"},[a.userid===t.userId||t.isProjectOwner?s("div",{staticClass:"tag-actions-btns"},[s("Button",{attrs:{disabled:t.sortMode,type:"primary"},on:{click:function(n){return t.handleAdd(a)}}},[t._v(" "+t._s(t.$L("\u7F16\u8F91"))+" ")]),s("Button",{attrs:{disabled:t.sortMode,type:"error"},on:{click:function(n){return t.handleDelete(a)}}},[t._v(" "+t._s(t.$L("\u5220\u9664"))+" ")])],1):t._e(),s("div",{staticClass:"tag-actions-owner"},[a.userid!==t.userId?s("UserAvatar",{attrs:{title:t.$L("\u521B\u5EFA\u4EBA"),userid:a.userid,"show-name":"","show-icon":!1,size:16}}):t._e(),s("span",{attrs:{title:t.$L("\u521B\u5EFA\u65F6\u95F4")}},[t._v(t._s(a.created_at))])],1)])])}),0):s("div",{staticClass:"empty"},[s("div",{staticClass:"empty-text"},[t._v(t._s(t.$L("\u5F53\u524D\u9879\u76EE\u6682\u65E0\u4EFB\u52A1\u6807\u7B7E")))]),s("Button",{attrs:{type:"primary",icon:"md-add"},on:{click:function(a){return t.handleAdd(null)}}},[t._v(t._s(t.$L("\u65B0\u5EFA\u6807\u7B7E")))])],1)],1),s("TaskTagAdd",{ref:"addTag",attrs:{"project-id":t.projectId},on:{"on-save":t.getTagData,"on-save-error":t.getTagData}})],1)},Dt=[];const jt={name:"ProjectTaskTag",components:{TaskTagAdd:st,Tags:Y,Draggable:k},props:{projectId:{type:[Number,String],required:!0}},data(){return{loadIng:0,tags:[],sortMode:!1,sortLoading:!1}},computed:{...j(["projectData"]),isProjectOwner(){return this.projectData&&this.projectData.owner_userid===this.userId},canSortTags(){return this.isProjectOwner}},created(){this.getTagData()},methods:{async getTagData(){this.loadIng++;try{const{data:t}=await this.$store.dispatch("call",{url:"project/tag/list",data:{project_id:this.projectId},spinner:3e3});this.tags=t||[]}catch({msg:t}){$A.messageError(t||"\u52A0\u8F7D\u6807\u7B7E\u5931\u8D25")}finally{this.loadIng--}},toggleSortMode(){!this.canSortTags||this.sortLoading||(this.sortMode=!this.sortMode)},async handleSortEnd(t){if(!this.sortMode||!this.canSortTags||t&&t.oldIndex===t.newIndex)return;const e=this.tags.map(s=>s.id);if(!!e.length){this.sortLoading=!0;try{const{msg:s}=await this.$store.dispatch("call",{url:"project/tag/sort",method:"post",data:{project_id:this.projectId,list:e},spinner:2e3});$A.messageSuccess(s||"\u6392\u5E8F\u5DF2\u4FDD\u5B58"),await this.getTagData()}catch({msg:s}){$A.messageError(s||"\u6392\u5E8F\u4FDD\u5B58\u5931\u8D25"),await this.getTagData()}finally{this.sortLoading=!1}}},handleAdd(t){this.$refs.addTag.onOpen(t)},async handleDelete(t){$A.modalConfirm({title:"\u786E\u8BA4\u5220\u9664",content:"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6807\u7B7E\u5417\uFF1F",onOk:async()=>{this.loadIng++;try{const{msg:e}=await this.$store.dispatch("call",{url:"project/tag/delete",data:{id:t.id},spinner:3e3});$A.messageSuccess(e||"\u5220\u9664\u6210\u529F"),await this.getTagData()}catch({msg:e}){$A.messageError(e||"\u5220\u9664\u5931\u8D25")}finally{this.loadIng--}}})}}},O={};var Lt=x(jt,Ct,Dt,!1,It,null,null,null);function It(t){for(let e in O)this[e]=O[e]}var St=function(){return Lt.exports}(),C={zh:[{name:"\u901A\u7528\u4EFB\u52A1",title:"xxxx \u4EFB\u52A1",content:`\u63CF\u8FF0\uFF1Axxxx
-\u6E05\u5355\uFF1Axxxx`},{name:"\u4EA7\u54C1\u9700\u6C42",title:"xxxx \u529F\u80FD\u9700\u6C42/\u4EA7\u54C1\u4EFB\u52A1",content:`\u80CC\u666F\uFF1Axxxx
-\u76EE\u6807\uFF1Axxxx
-\u6E05\u5355\uFF1Axxxx`},{name:"\u6280\u672F\u4EFB\u52A1",title:"xxxx \u5F00\u53D1\u4EFB\u52A1/\u6280\u672F\u4F18\u5316\u4EFB\u52A1",content:`\u80CC\u666F\uFF1Axxxx
-\u6280\u672F\u76EE\u6807\uFF1Axxxx
-\u4EFB\u52A1\u6E05\u5355\uFF1Axxxx`},{name:"\u8FD0\u8425\u4EFB\u52A1",title:"xxxx \u6D3B\u52A8\u7B56\u5212/\u8FD0\u8425\u4EFB\u52A1",content:`\u80CC\u666F\uFF1Axxxx
-\u6D3B\u52A8\u65B9\u6848\uFF1Axxxx
-\u6570\u636E\u6307\u6807\uFF1Axxxx
-\u4EFB\u52A1\u6E05\u5355\uFF1Axxxx`},{name:"\u5E02\u573A\u63A8\u5E7F",title:"xxxx \u63A8\u5E7F\u4EFB\u52A1/\u54C1\u724C\u6D3B\u52A8",content:`\u80CC\u666F\uFF1Axxxx
-\u63A8\u5E7F\u65B9\u6848\uFF1Axxxx
-\u6570\u636E\u6307\u6807\uFF1Axxxx
-\u4EFB\u52A1\u6E05\u5355\uFF1Axxxx`},{name:"\u8BBE\u8BA1\u4EFB\u52A1",title:"xxxx \u8BBE\u8BA1\u4EFB\u52A1",content:`\u80CC\u666F\uFF1Axxxx
-\u8BBE\u8BA1\u8981\u6C42\uFF1Axxxx
-\u4EFB\u52A1\u6E05\u5355\uFF1Axxxx
-\u76F8\u5173\u8D44\u6E90\uFF1Axxxx`},{name:"\u4EBA\u529B\u8D44\u6E90",title:"xxxx \u62DB\u8058\u4EFB\u52A1/\u57F9\u8BAD\u4EFB\u52A1",content:`\u76EE\u6807\uFF1Axxxx
-\u5185\u5BB9\uFF1Axxxx
-\u4EFB\u52A1\u6E05\u5355\uFF1Axxxx`},{name:"\u8D22\u52A1\u4EFB\u52A1",title:"xxxx \u9884\u7B97\u5BA1\u6279/\u62A5\u9500\u4EFB\u52A1",content:`\u80CC\u666F\uFF1Axxxx
-\u5BA1\u6279\u6D41\u7A0B\uFF1Axxxx
-\u62A5\u9500\u6E05\u5355\uFF1Axxxx`},{name:"\u9500\u552E\u4EFB\u52A1",title:"xxxx \u9500\u552E\u8DDF\u8FDB\u4EFB\u52A1",content:`\u5BA2\u6237\u4FE1\u606F\uFF1Axxxx
-\u9500\u552E\u76EE\u6807\uFF1Axxxx
-\u4EFB\u52A1\u6E05\u5355\uFF1Axxxx`},{name:"\u5BA2\u6237\u652F\u6301",title:"xxxx \u5BA2\u6237\u95EE\u9898\u5904\u7406\u4EFB\u52A1",content:`\u5BA2\u6237\u95EE\u9898\uFF1Axxxx
-\u4F18\u5148\u7EA7\uFF1Axxxx
-\u89E3\u51B3\u65B9\u6848\uFF1Axxxx
-\u4EFB\u52A1\u6E05\u5355\uFF1Axxxx`},{name:"\u5185\u5BB9\u521B\u4F5C",title:"xxxx \u5185\u5BB9\u521B\u4F5C\u4EFB\u52A1",content:`\u4E3B\u9898\uFF1Axxxx
-\u76EE\u6807\uFF1Axxxx
-\u4EFB\u52A1\u6E05\u5355\uFF1Axxxx`},{name:"\u6CD5\u5F8B\u4E8B\u52A1",title:"xxxx \u5408\u540C\u5BA1\u6838/\u6CD5\u5F8B\u4EFB\u52A1",content:`\u5408\u540C\u80CC\u666F\uFF1Axxxx
-\u5BA1\u6838\u91CD\u70B9\uFF1Axxxx
-\u4EFB\u52A1\u6E05\u5355\uFF1Axxxx`},{name:"\u5B66\u4E60\u8BA1\u5212",title:"xxxx \u5B66\u4E60\u8BA1\u5212\u4EFB\u52A1",content:`\u5B66\u4E60\u76EE\u6807\uFF1Axxxx
-\u5B66\u4E60\u8D44\u6E90\uFF1Axxxx
-\u4EFB\u52A1\u6E05\u5355\uFF1Axxxx`},{name:"\u9879\u76EE\u7BA1\u7406",title:"xxxx \u9879\u76EE\u7BA1\u7406\u4EFB\u52A1",content:`\u9879\u76EE\u80CC\u666F\uFF1Axxxx
-\u4EFB\u52A1\u6E05\u5355\uFF1Axxxx
-\u72B6\u6001\uFF1Axxxx`},{name:"\u6D4B\u8BD5\u4EFB\u52A1",title:"xxxx \u6D4B\u8BD5\u4EFB\u52A1",content:`\u6D4B\u8BD5\u76EE\u6807\uFF1Axxxx
-\u6D4B\u8BD5\u8303\u56F4\uFF1Axxxx
-\u6D4B\u8BD5\u7528\u4F8B\uFF1Axxxx
-\u95EE\u9898\u8BB0\u5F55\uFF1Axxxx`},{name:"\u6570\u636E\u5206\u6790",title:"xxxx \u6570\u636E\u5206\u6790\u4EFB\u52A1",content:`\u5206\u6790\u76EE\u6807\uFF1Axxxx
-\u6570\u636E\u6765\u6E90\uFF1Axxxx
-\u5206\u6790\u65B9\u6CD5\uFF1Axxxx
-\u7ED3\u8BBA\u4E0E\u5EFA\u8BAE\uFF1Axxxx`},{name:"\u4F9B\u5E94\u94FE\u7BA1\u7406",title:"xxxx \u4F9B\u5E94\u94FE\u4EFB\u52A1",content:`\u4EFB\u52A1\u76EE\u6807\uFF1Axxxx
-\u4F9B\u5E94\u5546\u4FE1\u606F\uFF1Axxxx
-\u4EFB\u52A1\u6E05\u5355\uFF1Axxxx`},{name:"\u5B89\u5168\u68C0\u67E5",title:"xxxx \u5B89\u5168\u68C0\u67E5\u4EFB\u52A1",content:`\u68C0\u67E5\u8303\u56F4\uFF1Axxxx
-\u68C0\u67E5\u6807\u51C6\uFF1Axxxx
-\u95EE\u9898\u8BB0\u5F55\uFF1Axxxx
-\u6574\u6539\u8BA1\u5212\uFF1Axxxx`},{name:"\u884C\u653F\u4E8B\u52A1",title:"xxxx \u884C\u653F\u4EFB\u52A1",content:`\u4EFB\u52A1\u63CF\u8FF0\uFF1Axxxx
-\u8D1F\u8D23\u4EBA\uFF1Axxxx
-\u4EFB\u52A1\u6E05\u5355\uFF1Axxxx`}],"zh-CHT":[{name:"\u901A\u7528\u4EFB\u52D9",title:"xxxx \u4EFB\u52D9",content:`\u63CF\u8FF0\uFF1Axxxx
-\u6E05\u55AE\uFF1Axxxx`},{name:"\u7522\u54C1\u9700\u6C42",title:"xxxx \u4EFB\u52D9",content:`\u80CC\u666F\uFF1Axxxx
-\u76EE\u6A19\uFF1Axxxx
-\u6E05\u55AE\uFF1Axxxx`},{name:"\u6280\u8853\u4EFB\u52D9",title:"xxxx \u4EFB\u52D9",content:`\u80CC\u666F\uFF1Axxxx
-\u6280\u8853\u76EE\u6A19\uFF1Axxxx
-\u4EFB\u52D9\u6E05\u55AE\uFF1Axxxx`},{name:"\u904B\u71DF\u4EFB\u52D9",title:"xxxx \u4EFB\u52D9",content:`\u80CC\u666F\uFF1Axxxx
-\u6D3B\u52D5\u65B9\u6848\uFF1Axxxx
-\u6578\u64DA\u6307\u6A19\uFF1Axxxx
-\u4EFB\u52D9\u6E05\u55AE\uFF1Axxxx`},{name:"\u5E02\u5834\u63A8\u5EE3",title:"xxxx \u4EFB\u52D9",content:`\u80CC\u666F\uFF1Axxxx
-\u63A8\u5EE3\u65B9\u6848\uFF1Axxxx
-\u6578\u64DA\u6307\u6A19\uFF1Axxxx
-\u4EFB\u52D9\u6E05\u55AE\uFF1Axxxx`},{name:"\u8A2D\u8A08\u4EFB\u52D9",title:"xxxx \u4EFB\u52D9",content:`\u80CC\u666F\uFF1Axxxx
-\u8A2D\u8A08\u8981\u6C42\uFF1Axxxx
-\u4EFB\u52D9\u6E05\u55AE\uFF1Axxxx
-\u76F8\u95DC\u8CC7\u6E90\uFF1Axxxx`},{name:"\u4EBA\u529B\u8CC7\u6E90",title:"xxxx \u4EFB\u52D9",content:`\u76EE\u6A19\uFF1Axxxx
-\u5167\u5BB9\uFF1Axxxx
-\u4EFB\u52D9\u6E05\u55AE\uFF1Axxxx`},{name:"\u8CA1\u52D9\u4EFB\u52D9",title:"xxxx \u4EFB\u52D9",content:`\u80CC\u666F\uFF1Axxxx
-\u5BE9\u6279\u6D41\u7A0B\uFF1Axxxx
-\u5831\u92B7\u6E05\u55AE\uFF1Axxxx`},{name:"\u92B7\u552E\u4EFB\u52D9",title:"xxxx \u4EFB\u52D9",content:`\u5BA2\u6236\u4FE1\u606F\uFF1Axxxx
-\u92B7\u552E\u76EE\u6A19\uFF1Axxxx
-\u4EFB\u52D9\u6E05\u55AE\uFF1Axxxx`},{name:"\u5BA2\u6236\u652F\u6301",title:"xxxx \u4EFB\u52D9",content:`\u5BA2\u6236\u554F\u984C\uFF1Axxxx
-\u512A\u5148\u7D1A\uFF1Axxxx
-\u89E3\u6C7A\u65B9\u6848\uFF1Axxxx
-\u4EFB\u52D9\u6E05\u55AE\uFF1Axxxx`},{name:"\u5167\u5BB9\u5275\u4F5C",title:"xxxx \u4EFB\u52D9",content:`\u4E3B\u984C\uFF1Axxxx
-\u76EE\u6A19\uFF1Axxxx
-\u4EFB\u52D9\u6E05\u55AE\uFF1Axxxx`},{name:"\u6CD5\u5F8B\u4E8B\u52D9",title:"xxxx \u4EFB\u52D9",content:`\u5408\u540C\u80CC\u666F\uFF1Axxxx
-\u5BE9\u6838\u91CD\u9EDE\uFF1Axxxx
-\u4EFB\u52D9\u6E05\u55AE\uFF1Axxxx`},{name:"\u5B78\u7FD2\u8A08\u5283",title:"xxxx \u4EFB\u52D9",content:`\u5B78\u7FD2\u76EE\u6A19\uFF1Axxxx
-\u5B78\u7FD2\u8CC7\u6E90\uFF1Axxxx
-\u4EFB\u52D9\u6E05\u55AE\uFF1Axxxx`},{name:"\u9805\u76EE\u7BA1\u7406",title:"xxxx \u4EFB\u52D9",content:`\u9805\u76EE\u80CC\u666F\uFF1Axxxx
-\u4EFB\u52D9\u6E05\u55AE\uFF1Axxxx
-\u72C0\u614B\uFF1Axxxx`},{name:"\u6E2C\u8A66\u4EFB\u52D9",title:"xxxx \u4EFB\u52D9",content:`\u6E2C\u8A66\u76EE\u6A19\uFF1Axxxx
-\u6E2C\u8A66\u7BC4\u570D\uFF1Axxxx
-\u6E2C\u8A66\u7528\u4F8B\uFF1Axxxx
-\u554F\u984C\u8A18\u9304\uFF1Axxxx`},{name:"\u6578\u64DA\u5206\u6790",title:"xxxx \u4EFB\u52D9",content:`\u5206\u6790\u76EE\u6A19\uFF1Axxxx
-\u6578\u64DA\u4F86\u6E90\uFF1Axxxx
-\u5206\u6790\u65B9\u6CD5\uFF1Axxxx
-\u7D50\u8AD6\u8207\u5EFA\u8B70\uFF1Axxxx`},{name:"\u4F9B\u61C9\u93C8\u7BA1\u7406",title:"xxxx \u4EFB\u52D9",content:`\u4EFB\u52D9\u76EE\u6A19\uFF1Axxxx
-\u4F9B\u61C9\u5546\u4FE1\u606F\uFF1Axxxx
-\u4EFB\u52D9\u6E05\u55AE\uFF1Axxxx`},{name:"\u5B89\u5168\u6AA2\u67E5",title:"xxxx \u4EFB\u52D9",content:`\u6AA2\u67E5\u7BC4\u570D\uFF1Axxxx
-\u6AA2\u67E5\u6A19\u6E96\uFF1Axxxx
-\u554F\u984C\u8A18\u9304\uFF1Axxxx
-\u6574\u6539\u8A08\u5283\uFF1Axxxx`},{name:"\u884C\u653F\u4E8B\u52D9",title:"xxxx \u4EFB\u52D9",content:`\u4EFB\u52D9\u63CF\u8FF0\uFF1Axxxx
-\u8CA0\u8CAC\u4EBA\uFF1Axxxx
-\u4EFB\u52D9\u6E05\u55AE\uFF1Axxxx`}],en:[{name:"General Task",title:"xxxx Task",content:`Description: xxxx
-Checklist: xxxx`},{name:"Product Requirement",title:"xxxx Task",content:`Background: xxxx
-Goal: xxxx
-Checklist: xxxx`},{name:"Technical Task",title:"xxxx Task",content:`Background: xxxx
-Technical Goal: xxxx
-Task Checklist: xxxx`},{name:"Operations Task",title:"xxxx Task",content:`Background: xxxx
-Activity Plan: xxxx
-Data Metrics: xxxx
-Task Checklist: xxxx`},{name:"Marketing",title:"xxxx Task",content:`Background: xxxx
-Promotion Plan: xxxx
-Data Metrics: xxxx
-Task Checklist: xxxx`},{name:"Design Task",title:"xxxx Task",content:`Background: xxxx
-Design Requirements: xxxx
-Task Checklist: xxxx
-Related Resources: xxxx`},{name:"Human Resources",title:"xxxx Task",content:`Goal: xxxx
-Content: xxxx
-Task Checklist: xxxx`},{name:"Finance Task",title:"xxxx Task",content:`Background: xxxx
-Approval Process: xxxx
-Reimbursement Checklist: xxxx`},{name:"Sales Task",title:"xxxx Task",content:`Customer Information: xxxx
-Sales Target: xxxx
-Task Checklist: xxxx`},{name:"Customer Support",title:"xxxx Task",content:`Customer Issues: xxxx
-Priority: xxxx
-Solution: xxxx
-Task Checklist: xxxx`},{name:"Content Creation",title:"xxxx Task",content:`Topic: xxxx
-Goal: xxxx
-Task Checklist: xxxx`},{name:"Legal Affairs",title:"xxxx Task",content:`Contract Background: xxxx
-Review Focus: xxxx
-Task Checklist: xxxx`},{name:"Learning Plan",title:"xxxx Task",content:`Learning Goal: xxxx
-Learning Resources: xxxx
-Task Checklist: xxxx`},{name:"Project Management",title:"xxxx Task",content:`Project Background: xxxx
-Task Checklist: xxxx
-Status: xxxx`},{name:"Testing Task",title:"xxxx Task",content:`Testing Goal: xxxx
-Testing Scope: xxxx
-Test Cases: xxxx
-Issue Records: xxxx`},{name:"Data Analysis",title:"xxxx Task",content:`Analysis Goal: xxxx
-Data Source: xxxx
-Analysis Methods: xxxx
-Conclusions and Suggestions: xxxx`},{name:"Supply Chain Management",title:"xxxx Task",content:`Task Goal: xxxx
-Supplier Information: xxxx
-Task Checklist: xxxx`},{name:"Safety Inspection",title:"xxxx Task",content:`Inspection Scope: xxxx
-Inspection Standards: xxxx
-Issue Records: xxxx
-Correction Plan: xxxx`},{name:"Administrative Affairs",title:"xxxx Task",content:`Task Description: xxxx
-Person in Charge: xxxx
-Task Checklist: xxxx`}],ko:[{name:"\uC77C\uBC18 \uC791\uC5C5",title:"xxxx \uC791\uC5C5",content:`\uC124\uBA85: xxxx
-\uCCB4\uD06C\uB9AC\uC2A4\uD2B8: xxxx`},{name:"\uC81C\uD488 \uC694\uAD6C\uC0AC\uD56D",title:"xxxx \uC791\uC5C5",content:`\uBC30\uACBD: xxxx
-\uBAA9\uD45C: xxxx
-\uCCB4\uD06C\uB9AC\uC2A4\uD2B8: xxxx`},{name:"\uAE30\uC220 \uC791\uC5C5",title:"xxxx \uC791\uC5C5",content:`\uBC30\uACBD: xxxx
-\uAE30\uC220 \uBAA9\uD45C: xxxx
-\uC791\uC5C5 \uCCB4\uD06C\uB9AC\uC2A4\uD2B8: xxxx`},{name:"\uC6B4\uC601 \uC791\uC5C5",title:"xxxx \uC791\uC5C5",content:`\uBC30\uACBD: xxxx
-\uD65C\uB3D9 \uACC4\uD68D: xxxx
-\uB370\uC774\uD130 \uC9C0\uD45C: xxxx
-\uC791\uC5C5 \uCCB4\uD06C\uB9AC\uC2A4\uD2B8: xxxx`},{name:"\uB9C8\uCF00\uD305",title:"xxxx \uC791\uC5C5",content:`\uBC30\uACBD: xxxx
-\uD64D\uBCF4 \uACC4\uD68D: xxxx
-\uB370\uC774\uD130 \uC9C0\uD45C: xxxx
-\uC791\uC5C5 \uCCB4\uD06C\uB9AC\uC2A4\uD2B8: xxxx`},{name:"\uB514\uC790\uC778 \uC791\uC5C5",title:"xxxx \uC791\uC5C5",content:`\uBC30\uACBD: xxxx
-\uB514\uC790\uC778 \uC694\uAD6C\uC0AC\uD56D: xxxx
-\uC791\uC5C5 \uCCB4\uD06C\uB9AC\uC2A4\uD2B8: xxxx
-\uAD00\uB828 \uC790\uB8CC: xxxx`},{name:"\uC778\uC0AC \uAD00\uB9AC",title:"xxxx \uC791\uC5C5",content:`\uBAA9\uD45C: xxxx
-\uB0B4\uC6A9: xxxx
-\uC791\uC5C5 \uCCB4\uD06C\uB9AC\uC2A4\uD2B8: xxxx`},{name:"\uC7AC\uBB34 \uC791\uC5C5",title:"xxxx \uC791\uC5C5",content:`\uBC30\uACBD: xxxx
-\uC2B9\uC778 \uC808\uCC28: xxxx
-\uBE44\uC6A9 \uCCAD\uAD6C\uC11C: xxxx`},{name:"\uC601\uC5C5 \uC791\uC5C5",title:"xxxx \uC791\uC5C5",content:`\uACE0\uAC1D \uC815\uBCF4: xxxx
-\uC601\uC5C5 \uBAA9\uD45C: xxxx
-\uC791\uC5C5 \uCCB4\uD06C\uB9AC\uC2A4\uD2B8: xxxx`},{name:"\uACE0\uAC1D \uC9C0\uC6D0",title:"xxxx \uC791\uC5C5",content:`\uACE0\uAC1D \uBB38\uC81C: xxxx
-\uC6B0\uC120 \uC21C\uC704: xxxx
-\uD574\uACB0\uCC45: xxxx
-\uC791\uC5C5 \uCCB4\uD06C\uB9AC\uC2A4\uD2B8: xxxx`},{name:"\uCF58\uD150\uCE20 \uC81C\uC791",title:"xxxx \uC791\uC5C5",content:`\uC8FC\uC81C: xxxx
-\uBAA9\uD45C: xxxx
-\uC791\uC5C5 \uCCB4\uD06C\uB9AC\uC2A4\uD2B8: xxxx`},{name:"\uBC95\uB960 \uC5C5\uBB34",title:"xxxx \uC791\uC5C5",content:`\uACC4\uC57D \uBC30\uACBD: xxxx
-\uAC80\uD1A0 \uCD08\uC810: xxxx
-\uC791\uC5C5 \uCCB4\uD06C\uB9AC\uC2A4\uD2B8: xxxx`},{name:"\uD559\uC2B5 \uACC4\uD68D",title:"xxxx \uC791\uC5C5",content:`\uD559\uC2B5 \uBAA9\uD45C: xxxx
-\uD559\uC2B5 \uC790\uB8CC: xxxx
-\uC791\uC5C5 \uCCB4\uD06C\uB9AC\uC2A4\uD2B8: xxxx`},{name:"\uD504\uB85C\uC81D\uD2B8 \uAD00\uB9AC",title:"xxxx \uC791\uC5C5",content:`\uD504\uB85C\uC81D\uD2B8 \uBC30\uACBD: xxxx
-\uC791\uC5C5 \uCCB4\uD06C\uB9AC\uC2A4\uD2B8: xxxx
-\uC0C1\uD0DC: xxxx`},{name:"\uD14C\uC2A4\uD2B8 \uC791\uC5C5",title:"xxxx \uC791\uC5C5",content:`\uD14C\uC2A4\uD2B8 \uBAA9\uD45C: xxxx
-\uD14C\uC2A4\uD2B8 \uBC94\uC704: xxxx
-\uD14C\uC2A4\uD2B8 \uCF00\uC774\uC2A4: xxxx
-\uBB38\uC81C \uAE30\uB85D: xxxx`},{name:"\uB370\uC774\uD130 \uBD84\uC11D",title:"xxxx \uC791\uC5C5",content:`\uBD84\uC11D \uBAA9\uD45C: xxxx
-\uB370\uC774\uD130 \uCD9C\uCC98: xxxx
-\uBD84\uC11D \uBC29\uBC95: xxxx
-\uACB0\uB860 \uBC0F \uC81C\uC548: xxxx`},{name:"\uACF5\uAE09\uB9DD \uAD00\uB9AC",title:"xxxx \uC791\uC5C5",content:`\uC791\uC5C5 \uBAA9\uD45C: xxxx
-\uACF5\uAE09\uC5C5\uCCB4 \uC815\uBCF4: xxxx
-\uC791\uC5C5 \uCCB4\uD06C\uB9AC\uC2A4\uD2B8: xxxx`},{name:"\uC548\uC804 \uC810\uAC80",title:"xxxx \uC791\uC5C5",content:`\uC810\uAC80 \uBC94\uC704: xxxx
-\uC810\uAC80 \uAE30\uC900: xxxx
-\uBB38\uC81C \uAE30\uB85D: xxxx
-\uC218\uC815 \uACC4\uD68D: xxxx`},{name:"\uD589\uC815 \uC5C5\uBB34",title:"xxxx \uC791\uC5C5",content:`\uC791\uC5C5 \uC124\uBA85: xxxx
-\uB2F4\uB2F9\uC790: xxxx
-\uC791\uC5C5 \uCCB4\uD06C\uB9AC\uC2A4\uD2B8: xxxx`}],ja:[{name:"\u4E00\u822C\u30BF\u30B9\u30AF",title:"xxxx \u30BF\u30B9\u30AF",content:`\u8AAC\u660E\uFF1Axxxx
-\u30C1\u30A7\u30C3\u30AF\u30EA\u30B9\u30C8\uFF1Axxxx`},{name:"\u88FD\u54C1\u8981\u4EF6",title:"xxxx \u30BF\u30B9\u30AF",content:`\u80CC\u666F\uFF1Axxxx
-\u76EE\u6A19\uFF1Axxxx
-\u30C1\u30A7\u30C3\u30AF\u30EA\u30B9\u30C8\uFF1Axxxx`},{name:"\u6280\u8853\u30BF\u30B9\u30AF",title:"xxxx \u30BF\u30B9\u30AF",content:`\u80CC\u666F\uFF1Axxxx
-\u6280\u8853\u76EE\u6A19\uFF1Axxxx
-\u30BF\u30B9\u30AF\u30EA\u30B9\u30C8\uFF1Axxxx`},{name:"\u904B\u55B6\u30BF\u30B9\u30AF",title:"xxxx \u30BF\u30B9\u30AF",content:`\u80CC\u666F\uFF1Axxxx
-\u6D3B\u52D5\u8A08\u753B\uFF1Axxxx
-\u30C7\u30FC\u30BF\u6307\u6A19\uFF1Axxxx
-\u30BF\u30B9\u30AF\u30EA\u30B9\u30C8\uFF1Axxxx`},{name:"\u30DE\u30FC\u30B1\u30C6\u30A3\u30F3\u30B0",title:"xxxx \u30BF\u30B9\u30AF",content:`\u80CC\u666F\uFF1Axxxx
-\u30D7\u30ED\u30E2\u30FC\u30B7\u30E7\u30F3\u8A08\u753B\uFF1Axxxx
-\u30C7\u30FC\u30BF\u6307\u6A19\uFF1Axxxx
-\u30BF\u30B9\u30AF\u30EA\u30B9\u30C8\uFF1Axxxx`},{name:"\u30C7\u30B6\u30A4\u30F3\u30BF\u30B9\u30AF",title:"xxxx \u30BF\u30B9\u30AF",content:`\u80CC\u666F\uFF1Axxxx
-\u30C7\u30B6\u30A4\u30F3\u8981\u4EF6\uFF1Axxxx
-\u30BF\u30B9\u30AF\u30EA\u30B9\u30C8\uFF1Axxxx
-\u95A2\u9023\u30EA\u30BD\u30FC\u30B9\uFF1Axxxx`},{name:"\u4EBA\u4E8B\u30BF\u30B9\u30AF",title:"xxxx \u30BF\u30B9\u30AF",content:`\u76EE\u6A19\uFF1Axxxx
-\u5185\u5BB9\uFF1Axxxx
-\u30BF\u30B9\u30AF\u30EA\u30B9\u30C8\uFF1Axxxx`},{name:"\u8CA1\u52D9\u30BF\u30B9\u30AF",title:"xxxx \u30BF\u30B9\u30AF",content:`\u80CC\u666F\uFF1Axxxx
-\u627F\u8A8D\u30D7\u30ED\u30BB\u30B9\uFF1Axxxx
-\u7CBE\u7B97\u30EA\u30B9\u30C8\uFF1Axxxx`},{name:"\u55B6\u696D\u30BF\u30B9\u30AF",title:"xxxx \u30BF\u30B9\u30AF",content:`\u9867\u5BA2\u60C5\u5831\uFF1Axxxx
-\u55B6\u696D\u76EE\u6A19\uFF1Axxxx
-\u30BF\u30B9\u30AF\u30EA\u30B9\u30C8\uFF1Axxxx`},{name:"\u30AB\u30B9\u30BF\u30DE\u30FC\u30B5\u30DD\u30FC\u30C8",title:"xxxx \u30BF\u30B9\u30AF",content:`\u9867\u5BA2\u554F\u984C\uFF1Axxxx
-\u512A\u5148\u9806\u4F4D\uFF1Axxxx
-\u89E3\u6C7A\u7B56\uFF1Axxxx
-\u30BF\u30B9\u30AF\u30EA\u30B9\u30C8\uFF1Axxxx`},{name:"\u30B3\u30F3\u30C6\u30F3\u30C4\u5236\u4F5C",title:"xxxx \u30BF\u30B9\u30AF",content:`\u30C6\u30FC\u30DE\uFF1Axxxx
-\u76EE\u6A19\uFF1Axxxx
-\u30BF\u30B9\u30AF\u30EA\u30B9\u30C8\uFF1Axxxx`},{name:"\u6CD5\u52D9\u696D\u52D9",title:"xxxx \u30BF\u30B9\u30AF",content:`\u5951\u7D04\u80CC\u666F\uFF1Axxxx
-\u30EC\u30D3\u30E5\u30FC\u306E\u30DD\u30A4\u30F3\u30C8\uFF1Axxxx
-\u30BF\u30B9\u30AF\u30EA\u30B9\u30C8\uFF1Axxxx`},{name:"\u5B66\u7FD2\u8A08\u753B",title:"xxxx \u30BF\u30B9\u30AF",content:`\u5B66\u7FD2\u76EE\u6A19\uFF1Axxxx
-\u5B66\u7FD2\u30EA\u30BD\u30FC\u30B9\uFF1Axxxx
-\u30BF\u30B9\u30AF\u30EA\u30B9\u30C8\uFF1Axxxx`},{name:"\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u7BA1\u7406",title:"xxxx \u30BF\u30B9\u30AF",content:`\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u80CC\u666F\uFF1Axxxx
-\u30BF\u30B9\u30AF\u30EA\u30B9\u30C8\uFF1Axxxx
-\u30B9\u30C6\u30FC\u30BF\u30B9\uFF1Axxxx`},{name:"\u30C6\u30B9\u30C8\u30BF\u30B9\u30AF",title:"xxxx \u30BF\u30B9\u30AF",content:`\u30C6\u30B9\u30C8\u76EE\u6A19\uFF1Axxxx
-\u30C6\u30B9\u30C8\u7BC4\u56F2\uFF1Axxxx
-\u30C6\u30B9\u30C8\u30B1\u30FC\u30B9\uFF1Axxxx
-\u554F\u984C\u8A18\u9332\uFF1Axxxx`},{name:"\u30C7\u30FC\u30BF\u5206\u6790",title:"xxxx \u30BF\u30B9\u30AF",content:`\u5206\u6790\u76EE\u6A19\uFF1Axxxx
-\u30C7\u30FC\u30BF\u30BD\u30FC\u30B9\uFF1Axxxx
-\u5206\u6790\u65B9\u6CD5\uFF1Axxxx
-\u7D50\u8AD6\u3068\u63D0\u6848\uFF1Axxxx`},{name:"\u30B5\u30D7\u30E9\u30A4\u30C1\u30A7\u30FC\u30F3\u7BA1\u7406",title:"xxxx \u30BF\u30B9\u30AF",content:`\u30BF\u30B9\u30AF\u76EE\u6A19\uFF1Axxxx
-\u30B5\u30D7\u30E9\u30A4\u30E4\u30FC\u60C5\u5831\uFF1Axxxx
-\u30BF\u30B9\u30AF\u30EA\u30B9\u30C8\uFF1Axxxx`},{name:"\u5B89\u5168\u70B9\u691C",title:"xxxx \u30BF\u30B9\u30AF",content:`\u70B9\u691C\u7BC4\u56F2\uFF1Axxxx
-\u70B9\u691C\u57FA\u6E96\uFF1Axxxx
-\u554F\u984C\u8A18\u9332\uFF1Axxxx
-\u662F\u6B63\u8A08\u753B\uFF1Axxxx`},{name:"\u7BA1\u7406\u696D\u52D9",title:"xxxx \u30BF\u30B9\u30AF",content:`\u30BF\u30B9\u30AF\u8AAC\u660E\uFF1Axxxx
-\u62C5\u5F53\u8005\uFF1Axxxx
-\u30BF\u30B9\u30AF\u30EA\u30B9\u30C8\uFF1Axxxx`}],de:[{name:"Allgemeine Aufgabe",title:"xxxx Aufgabe",content:`Beschreibung: xxxx
-Checkliste: xxxx`},{name:"Produktanforderung",title:"xxxx Aufgabe",content:`Hintergrund: xxxx
-Ziel: xxxx
-Checkliste: xxxx`},{name:"Technische Aufgabe",title:"xxxx Aufgabe",content:`Hintergrund: xxxx
-Technisches Ziel: xxxx
-Aufgabenliste: xxxx`},{name:"Betriebsaufgabe",title:"xxxx Aufgabe",content:`Hintergrund: xxxx
-Aktivit\xE4tsplan: xxxx
-Datenkennzahlen: xxxx
-Aufgabenliste: xxxx`},{name:"Marketing",title:"xxxx Aufgabe",content:`Hintergrund: xxxx
-Werbeplan: xxxx
-Datenkennzahlen: xxxx
-Aufgabenliste: xxxx`},{name:"Design-Aufgabe",title:"xxxx Aufgabe",content:`Hintergrund: xxxx
-Designanforderungen: xxxx
-Aufgabenliste: xxxx
-Relevante Ressourcen: xxxx`},{name:"Personalwesen",title:"xxxx Aufgabe",content:`Ziel: xxxx
-Inhalt: xxxx
-Aufgabenliste: xxxx`},{name:"Finanzaufgabe",title:"xxxx Aufgabe",content:`Hintergrund: xxxx
-Genehmigungsprozess: xxxx
-Erstattungsliste: xxxx`},{name:"Verkaufsaufgabe",title:"xxxx Aufgabe",content:`Kundeninformationen: xxxx
-Verkaufsziel: xxxx
-Aufgabenliste: xxxx`},{name:"Kundensupport",title:"xxxx Aufgabe",content:`Kundenprobleme: xxxx
-Priorit\xE4ten: xxxx
-L\xF6sung: xxxx
-Aufgabenliste: xxxx`},{name:"Inhaltserstellung",title:"xxxx Aufgabe",content:`Thema: xxxx
-Ziel: xxxx
-Aufgabenliste: xxxx`},{name:"Rechtsangelegenheiten",title:"xxxx Aufgabe",content:`Vertragsgrundlage: xxxx
-Pr\xFCfungsschwerpunkte: xxxx
-Aufgabenliste: xxxx`},{name:"Lernplan",title:"xxxx Aufgabe",content:`Lernziel: xxxx
-Lernressourcen: xxxx
-Aufgabenliste: xxxx`},{name:"Projektmanagement",title:"xxxx Aufgabe",content:`Projektgrundlage: xxxx
-Aufgabenliste: xxxx
-Status: xxxx`},{name:"Testaufgabe",title:"xxxx Aufgabe",content:`Testziel: xxxx
-Testumfang: xxxx
-Testf\xE4lle: xxxx
-Problemliste: xxxx`},{name:"Datenanalyse",title:"xxxx Aufgabe",content:`Analyseziel: xxxx
-Datenquelle: xxxx
-Analysemethoden: xxxx
-Schlussfolgerungen und Empfehlungen: xxxx`},{name:"Lieferkettenmanagement",title:"xxxx Aufgabe",content:`Aufgabenziel: xxxx
-Lieferanteninformationen: xxxx
-Aufgabenliste: xxxx`},{name:"Sicherheitspr\xFCfung",title:"xxxx Aufgabe",content:`Pr\xFCfungsumfang: xxxx
-Pr\xFCfungsstandards: xxxx
-Problemliste: xxxx
-Korrekturplan: xxxx`},{name:"Verwaltungsaufgaben",title:"xxxx Aufgabe",content:`Aufgabenbeschreibung: xxxx
-Verantwortliche Person: xxxx
-Aufgabenliste: xxxx`}],fr:[{name:"T\xE2che G\xE9n\xE9rale",title:"xxxx T\xE2che",content:`Description : xxxx
-Liste de contr\xF4le : xxxx`},{name:"Exigence Produit",title:"xxxx T\xE2che",content:`Contexte : xxxx
-Objectif : xxxx
-Liste de contr\xF4le : xxxx`},{name:"T\xE2che Technique",title:"xxxx T\xE2che",content:`Contexte : xxxx
-Objectif Technique : xxxx
-Liste des t\xE2ches : xxxx`},{name:"T\xE2che Op\xE9rationnelle",title:"xxxx T\xE2che",content:`Contexte : xxxx
-Plan d'activit\xE9 : xxxx
-Indicateurs de donn\xE9es : xxxx
-Liste des t\xE2ches : xxxx`},{name:"Marketing",title:"xxxx T\xE2che",content:`Contexte : xxxx
-Plan de promotion : xxxx
-Indicateurs de donn\xE9es : xxxx
-Liste des t\xE2ches : xxxx`},{name:"T\xE2che de Design",title:"xxxx T\xE2che",content:`Contexte : xxxx
-Exigences de design : xxxx
-Liste des t\xE2ches : xxxx
-Ressources associ\xE9es : xxxx`},{name:"Ressources Humaines",title:"xxxx T\xE2che",content:`Objectif : xxxx
-Contenu : xxxx
-Liste des t\xE2ches : xxxx`},{name:"T\xE2che Financi\xE8re",title:"xxxx T\xE2che",content:`Contexte : xxxx
-Processus d'approbation : xxxx
-Liste des remboursements : xxxx`},{name:"T\xE2che Commerciale",title:"xxxx T\xE2che",content:`Informations client : xxxx
-Objectif de vente : xxxx
-Liste des t\xE2ches : xxxx`},{name:"Support Client",title:"xxxx T\xE2che",content:`Probl\xE8mes client : xxxx
-Priorit\xE9 : xxxx
-Solution : xxxx
-Liste des t\xE2ches : xxxx`},{name:"Cr\xE9ation de Contenu",title:"xxxx T\xE2che",content:`Th\xE8me : xxxx
-Objectif : xxxx
-Liste des t\xE2ches : xxxx`},{name:"Affaires Juridiques",title:"xxxx T\xE2che",content:`Contexte du contrat : xxxx
-Points cl\xE9s de r\xE9vision : xxxx
-Liste des t\xE2ches : xxxx`},{name:"Plan d'Apprentissage",title:"xxxx T\xE2che",content:`Objectif d'apprentissage : xxxx
-Ressources d'apprentissage : xxxx
-Liste des t\xE2ches : xxxx`},{name:"Gestion de Projet",title:"xxxx T\xE2che",content:`Contexte du projet : xxxx
-Liste des t\xE2ches : xxxx
-Statut : xxxx`},{name:"T\xE2che de Test",title:"xxxx T\xE2che",content:`Objectif du test : xxxx
-P\xE9rim\xE8tre du test : xxxx
-Cas de test : xxxx
-Enregistrements des probl\xE8mes : xxxx`},{name:"Analyse de Donn\xE9es",title:"xxxx T\xE2che",content:`Objectif d'analyse : xxxx
-Source de donn\xE9es : xxxx
-M\xE9thodes d'analyse : xxxx
-Conclusions et recommandations : xxxx`},{name:"Gestion de la Cha\xEEne d'Approvisionnement",title:"xxxx T\xE2che",content:`Objectif de la t\xE2che : xxxx
-Informations sur le fournisseur : xxxx
-Liste des t\xE2ches : xxxx`},{name:"Inspection de S\xE9curit\xE9",title:"xxxx T\xE2che",content:`P\xE9rim\xE8tre de l'inspection : xxxx
-Normes d'inspection : xxxx
-Enregistrements des probl\xE8mes : xxxx
-Plan de correction : xxxx`},{name:"Affaires Administratives",title:"xxxx T\xE2che",content:`Description de la t\xE2che : xxxx
-Responsable : xxxx
-Liste des t\xE2ches : xxxx`}],id:[{name:"Tugas Umum",title:"xxxx Tugas",content:`Deskripsi: xxxx
-Daftar Periksa: xxxx`},{name:"Kebutuhan Produk",title:"xxxx Tugas",content:`Latar Belakang: xxxx
-Tujuan: xxxx
-Daftar Periksa: xxxx`},{name:"Tugas Teknis",title:"xxxx Tugas",content:`Latar Belakang: xxxx
-Tujuan Teknis: xxxx
-Daftar Tugas: xxxx`},{name:"Tugas Operasional",title:"xxxx Tugas",content:`Latar Belakang: xxxx
-Rencana Aktivitas: xxxx
-Indikator Data: xxxx
-Daftar Tugas: xxxx`},{name:"Pemasaran",title:"xxxx Tugas",content:`Latar Belakang: xxxx
-Rencana Promosi: xxxx
-Indikator Data: xxxx
-Daftar Tugas: xxxx`},{name:"Tugas Desain",title:"xxxx Tugas",content:`Latar Belakang: xxxx
-Persyaratan Desain: xxxx
-Daftar Tugas: xxxx
-Sumber Daya Terkait: xxxx`},{name:"Sumber Daya Manusia",title:"xxxx Tugas",content:`Tujuan: xxxx
-Isi: xxxx
-Daftar Tugas: xxxx`},{name:"Tugas Keuangan",title:"xxxx Tugas",content:`Latar Belakang: xxxx
-Proses Persetujuan: xxxx
-Daftar Penggantian: xxxx`},{name:"Tugas Penjualan",title:"xxxx Tugas",content:`Informasi Pelanggan: xxxx
-Target Penjualan: xxxx
-Daftar Tugas: xxxx`},{name:"Dukungan Pelanggan",title:"xxxx Tugas",content:`Masalah Pelanggan: xxxx
-Prioritas: xxxx
-Solusi: xxxx
-Daftar Tugas: xxxx`},{name:"Pembuatan Konten",title:"xxxx Tugas",content:`Topik: xxxx
-Tujuan: xxxx
-Daftar Tugas: xxxx`},{name:"Urusan Hukum",title:"xxxx Tugas",content:`Latar Belakang Kontrak: xxxx
-Fokus Peninjauan: xxxx
-Daftar Tugas: xxxx`},{name:"Rencana Pembelajaran",title:"xxxx Tugas",content:`Tujuan Pembelajaran: xxxx
-Sumber Belajar: xxxx
-Daftar Tugas: xxxx`},{name:"Manajemen Proyek",title:"xxxx Tugas",content:`Latar Belakang Proyek: xxxx
-Daftar Tugas: xxxx
-Status: xxxx`},{name:"Tugas Pengujian",title:"xxxx Tugas",content:`Tujuan Pengujian: xxxx
-Lingkup Pengujian: xxxx
-Kasus Pengujian: xxxx
-Catatan Masalah: xxxx`},{name:"Analisis Data",title:"xxxx Tugas",content:`Tujuan Analisis: xxxx
-Sumber Data: xxxx
-Metode Analisis: xxxx
-Kesimpulan dan Rekomendasi: xxxx`},{name:"Manajemen Rantai Pasokan",title:"xxxx Tugas",content:`Tujuan Tugas: xxxx
-Informasi Pemasok: xxxx
-Daftar Tugas: xxxx`},{name:"Inspeksi Keamanan",title:"xxxx Tugas",content:`Lingkup Inspeksi: xxxx
-Standar Inspeksi: xxxx
-Catatan Masalah: xxxx
-Rencana Koreksi: xxxx`},{name:"Tugas Administrasi",title:"xxxx Tugas",content:`Deskripsi Tugas: xxxx
-Penanggung Jawab: xxxx
-Daftar Tugas: xxxx`}],ru:[{name:"\u041E\u0431\u0449\u0430\u044F \u0437\u0430\u0434\u0430\u0447\u0430",title:"xxxx \u0417\u0430\u0434\u0430\u0447\u0430",content:`\u041E\u043F\u0438\u0441\u0430\u043D\u0438\u0435: xxxx
-\u0427\u0435\u043A-\u043B\u0438\u0441\u0442: xxxx`},{name:"\u0422\u0440\u0435\u0431\u043E\u0432\u0430\u043D\u0438\u044F \u043A \u043F\u0440\u043E\u0434\u0443\u043A\u0442\u0443",title:"xxxx \u0417\u0430\u0434\u0430\u0447\u0430",content:`\u041A\u043E\u043D\u0442\u0435\u043A\u0441\u0442: xxxx
-\u0426\u0435\u043B\u044C: xxxx
-\u0427\u0435\u043A-\u043B\u0438\u0441\u0442: xxxx`},{name:"\u0422\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0437\u0430\u0434\u0430\u0447\u0430",title:"xxxx \u0417\u0430\u0434\u0430\u0447\u0430",content:`\u041A\u043E\u043D\u0442\u0435\u043A\u0441\u0442: xxxx
-\u0422\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0446\u0435\u043B\u044C: xxxx
-\u0421\u043F\u0438\u0441\u043E\u043A \u0437\u0430\u0434\u0430\u0447: xxxx`},{name:"\u041E\u043F\u0435\u0440\u0430\u0446\u0438\u043E\u043D\u043D\u0430\u044F \u0437\u0430\u0434\u0430\u0447\u0430",title:"xxxx \u0417\u0430\u0434\u0430\u0447\u0430",content:`\u041A\u043E\u043D\u0442\u0435\u043A\u0441\u0442: xxxx
-\u041F\u043B\u0430\u043D \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439: xxxx
-\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u0435\u043B\u0438 \u0434\u0430\u043D\u043D\u044B\u0445: xxxx
-\u0421\u043F\u0438\u0441\u043E\u043A \u0437\u0430\u0434\u0430\u0447: xxxx`},{name:"\u041C\u0430\u0440\u043A\u0435\u0442\u0438\u043D\u0433",title:"xxxx \u0417\u0430\u0434\u0430\u0447\u0430",content:`\u041A\u043E\u043D\u0442\u0435\u043A\u0441\u0442: xxxx
-\u041F\u043B\u0430\u043D \u043F\u0440\u043E\u0434\u0432\u0438\u0436\u0435\u043D\u0438\u044F: xxxx
-\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u0435\u043B\u0438 \u0434\u0430\u043D\u043D\u044B\u0445: xxxx
-\u0421\u043F\u0438\u0441\u043E\u043A \u0437\u0430\u0434\u0430\u0447: xxxx`},{name:"\u0414\u0438\u0437\u0430\u0439\u043D\u0435\u0440\u0441\u043A\u0430\u044F \u0437\u0430\u0434\u0430\u0447\u0430",title:"xxxx \u0417\u0430\u0434\u0430\u0447\u0430",content:`\u041A\u043E\u043D\u0442\u0435\u043A\u0441\u0442: xxxx
-\u0422\u0440\u0435\u0431\u043E\u0432\u0430\u043D\u0438\u044F \u043A \u0434\u0438\u0437\u0430\u0439\u043D\u0443: xxxx
-\u0421\u043F\u0438\u0441\u043E\u043A \u0437\u0430\u0434\u0430\u0447: xxxx
-\u0421\u0432\u044F\u0437\u0430\u043D\u043D\u044B\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u044B: xxxx`},{name:"\u041A\u0430\u0434\u0440\u043E\u0432\u0430\u044F \u0437\u0430\u0434\u0430\u0447\u0430",title:"xxxx \u0417\u0430\u0434\u0430\u0447\u0430",content:`\u0426\u0435\u043B\u044C: xxxx
-\u0421\u043E\u0434\u0435\u0440\u0436\u0430\u043D\u0438\u0435: xxxx
-\u0421\u043F\u0438\u0441\u043E\u043A \u0437\u0430\u0434\u0430\u0447: xxxx`},{name:"\u0424\u0438\u043D\u0430\u043D\u0441\u043E\u0432\u0430\u044F \u0437\u0430\u0434\u0430\u0447\u0430",title:"xxxx \u0417\u0430\u0434\u0430\u0447\u0430",content:`\u041A\u043E\u043D\u0442\u0435\u043A\u0441\u0442: xxxx
-\u041F\u0440\u043E\u0446\u0435\u0441\u0441 \u0443\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043D\u0438\u044F: xxxx
-\u0427\u0435\u043A-\u043B\u0438\u0441\u0442 \u0432\u043E\u0437\u043C\u0435\u0449\u0435\u043D\u0438\u044F: xxxx`},{name:"\u0417\u0430\u0434\u0430\u0447\u0430 \u043F\u043E \u043F\u0440\u043E\u0434\u0430\u0436\u0430\u043C",title:"xxxx \u0417\u0430\u0434\u0430\u0447\u0430",content:`\u0418\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F \u043E \u043A\u043B\u0438\u0435\u043D\u0442\u0430\u0445: xxxx
-\u0426\u0435\u043B\u044C \u043F\u0440\u043E\u0434\u0430\u0436: xxxx
-\u0421\u043F\u0438\u0441\u043E\u043A \u0437\u0430\u0434\u0430\u0447: xxxx`},{name:"\u041A\u043B\u0438\u0435\u043D\u0442\u0441\u043A\u0430\u044F \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0430",title:"xxxx \u0417\u0430\u0434\u0430\u0447\u0430",content:`\u041F\u0440\u043E\u0431\u043B\u0435\u043C\u044B \u043A\u043B\u0438\u0435\u043D\u0442\u043E\u0432: xxxx
-\u041F\u0440\u0438\u043E\u0440\u0438\u0442\u0435\u0442: xxxx
-\u0420\u0435\u0448\u0435\u043D\u0438\u0435: xxxx
-\u0421\u043F\u0438\u0441\u043E\u043A \u0437\u0430\u0434\u0430\u0447: xxxx`},{name:"\u0421\u043E\u0437\u0434\u0430\u043D\u0438\u0435 \u043A\u043E\u043D\u0442\u0435\u043D\u0442\u0430",title:"xxxx \u0417\u0430\u0434\u0430\u0447\u0430",content:`\u0422\u0435\u043C\u0430: xxxx
-\u0426\u0435\u043B\u044C: xxxx
-\u0421\u043F\u0438\u0441\u043E\u043A \u0437\u0430\u0434\u0430\u0447: xxxx`},{name:"\u042E\u0440\u0438\u0434\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u0432\u043E\u043F\u0440\u043E\u0441\u044B",title:"xxxx \u0417\u0430\u0434\u0430\u0447\u0430",content:`\u041A\u043E\u043D\u0442\u0435\u043A\u0441\u0442 \u043A\u043E\u043D\u0442\u0440\u0430\u043A\u0442\u0430: xxxx
-\u041A\u043B\u044E\u0447\u0435\u0432\u044B\u0435 \u043C\u043E\u043C\u0435\u043D\u0442\u044B \u043F\u0440\u043E\u0432\u0435\u0440\u043A\u0438: xxxx
-\u0421\u043F\u0438\u0441\u043E\u043A \u0437\u0430\u0434\u0430\u0447: xxxx`},{name:"\u041F\u043B\u0430\u043D \u043E\u0431\u0443\u0447\u0435\u043D\u0438\u044F",title:"xxxx \u0417\u0430\u0434\u0430\u0447\u0430",content:`\u0426\u0435\u043B\u044C \u043E\u0431\u0443\u0447\u0435\u043D\u0438\u044F: xxxx
-\u0423\u0447\u0435\u0431\u043D\u044B\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u044B: xxxx
-\u0421\u043F\u0438\u0441\u043E\u043A \u0437\u0430\u0434\u0430\u0447: xxxx`},{name:"\u0423\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435 \u043F\u0440\u043E\u0435\u043A\u0442\u043E\u043C",title:"xxxx \u0417\u0430\u0434\u0430\u0447\u0430",content:`\u041A\u043E\u043D\u0442\u0435\u043A\u0441\u0442 \u043F\u0440\u043E\u0435\u043A\u0442\u0430: xxxx
-\u0421\u043F\u0438\u0441\u043E\u043A \u0437\u0430\u0434\u0430\u0447: xxxx
-\u0421\u0442\u0430\u0442\u0443\u0441: xxxx`},{name:"\u0422\u0435\u0441\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435",title:"xxxx \u0417\u0430\u0434\u0430\u0447\u0430",content:`\u0426\u0435\u043B\u044C \u0442\u0435\u0441\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F: xxxx
-\u041E\u0431\u043B\u0430\u0441\u0442\u044C \u0442\u0435\u0441\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F: xxxx
-\u0422\u0435\u0441\u0442\u043E\u0432\u044B\u0435 \u043A\u0435\u0439\u0441\u044B: xxxx
-\u0416\u0443\u0440\u043D\u0430\u043B \u043F\u0440\u043E\u0431\u043B\u0435\u043C: xxxx`},{name:"\u0410\u043D\u0430\u043B\u0438\u0437 \u0434\u0430\u043D\u043D\u044B\u0445",title:"xxxx \u0417\u0430\u0434\u0430\u0447\u0430",content:`\u0426\u0435\u043B\u044C \u0430\u043D\u0430\u043B\u0438\u0437\u0430: xxxx
-\u0418\u0441\u0442\u043E\u0447\u043D\u0438\u043A \u0434\u0430\u043D\u043D\u044B\u0445: xxxx
-\u041C\u0435\u0442\u043E\u0434\u044B \u0430\u043D\u0430\u043B\u0438\u0437\u0430: xxxx
-\u0412\u044B\u0432\u043E\u0434\u044B \u0438 \u0440\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0430\u0446\u0438\u0438: xxxx`},{name:"\u0423\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435 \u0446\u0435\u043F\u043E\u0447\u043A\u0430\u043C\u0438 \u043F\u043E\u0441\u0442\u0430\u0432\u043E\u043A",title:"xxxx \u0417\u0430\u0434\u0430\u0447\u0430",content:`\u0426\u0435\u043B\u044C \u0437\u0430\u0434\u0430\u0447\u0438: xxxx
-\u0418\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F \u043E \u043F\u043E\u0441\u0442\u0430\u0432\u0449\u0438\u043A\u0430\u0445: xxxx
-\u0421\u043F\u0438\u0441\u043E\u043A \u0437\u0430\u0434\u0430\u0447: xxxx`},{name:"\u041F\u0440\u043E\u0432\u0435\u0440\u043A\u0430 \u0431\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u0438",title:"xxxx \u0417\u0430\u0434\u0430\u0447\u0430",content:`\u041E\u0431\u043B\u0430\u0441\u0442\u044C \u043F\u0440\u043E\u0432\u0435\u0440\u043A\u0438: xxxx
-\u041A\u0440\u0438\u0442\u0435\u0440\u0438\u0438 \u043F\u0440\u043E\u0432\u0435\u0440\u043A\u0438: xxxx
-\u0416\u0443\u0440\u043D\u0430\u043B \u043F\u0440\u043E\u0431\u043B\u0435\u043C: xxxx
-\u041F\u043B\u0430\u043D \u043A\u043E\u0440\u0440\u0435\u043A\u0442\u0438\u0440\u043E\u0432\u043A\u0438: xxxx`},{name:"\u0410\u0434\u043C\u0438\u043D\u0438\u0441\u0442\u0440\u0430\u0442\u0438\u0432\u043D\u044B\u0435 \u0437\u0430\u0434\u0430\u0447\u0438",title:"xxxx \u0417\u0430\u0434\u0430\u0447\u0430",content:`\u041E\u043F\u0438\u0441\u0430\u043D\u0438\u0435 \u0437\u0430\u0434\u0430\u0447\u0438: xxxx
-\u041E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043D\u043D\u043E\u0435 \u043B\u0438\u0446\u043E: xxxx
-\u0421\u043F\u0438\u0441\u043E\u043A \u0437\u0430\u0434\u0430\u0447: xxxx`}]},At=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"project-task-template"},[s("div",{staticClass:"header"},[s("div",{staticClass:"title"},[t._v(" "+t._s(t.$L("\u4EFB\u52A1\u6A21\u677F"))+" "),t.loadIng>0?s("Loading"):t._e()],1),s("div",{staticClass:"actions"},[t.templates.length?s("Button",{attrs:{type:t.sortMode?"primary":"default",loading:t.sortLoading,icon:"md-move"},on:{click:t.toggleSortMode}},[t._v(" "+t._s(t.$L(t.sortMode?"\u5B8C\u6210\u6392\u5E8F":"\u8C03\u6574\u6392\u5E8F"))+" ")]):t._e(),s("Button",{attrs:{type:"primary",icon:"md-add"},on:{click:t.handleAdd}},[t._v(" "+t._s(t.$L("\u65B0\u5EFA\u6A21\u677F"))+" ")])],1)]),s("div",{staticClass:"content"},[t.templates.length?s("Draggable",{staticClass:"template-list",attrs:{tag:"div",list:t.templates,animation:150,disabled:!t.sortMode||t.sortLoading,"item-key":"id",handle:".template-drag-handle"},on:{end:t.handleSortEnd}},t._l(t.templates,function(a){return s("div",{key:a.id,staticClass:"template-item"},[s("div",{class:["template-item-inner",{"is-sorting":t.sortMode}]},[t.sortMode?s("div",{staticClass:"template-drag-handle",attrs:{title:t.$L("\u62D6\u62FD\u8C03\u6574\u6392\u5E8F")}},[s("Icon",{attrs:{type:"md-menu"}})],1):t._e(),s("div",{staticClass:"template-main"},[s("div",{staticClass:"template-title"},[s("span",[t._v(t._s(a.name))]),a.is_default?s("span",{staticClass:"default-tag"},[t._v(t._s(t.$L("\u9ED8\u8BA4")))]):t._e()]),s("div",{staticClass:"template-content"},[a.title?s("div",{staticClass:"task-title"},[t._v(t._s(a.title))]):t._e(),a.content?s("div",{staticClass:"task-content"},[s("VMPreviewNostyle",{ref:"descPreview",refInFor:!0,attrs:{value:a.content}})],1):t._e()]),s("div",{staticClass:"template-actions"},[s("Button",{attrs:{disabled:t.sortMode,type:"primary",icon:a.is_default?"md-checkmark":""},on:{click:function(n){return t.handleSetDefault(a)}}},[t._v(" "+t._s(t.$L(a.is_default?"\u53D6\u6D88\u9ED8\u8BA4":"\u8BBE\u4E3A\u9ED8\u8BA4"))+" ")]),s("Button",{attrs:{disabled:t.sortMode,type:"primary"},on:{click:function(n){return t.handleEdit(a)}}},[t._v(" "+t._s(t.$L("\u7F16\u8F91"))+" ")]),s("Button",{attrs:{disabled:t.sortMode,type:"error"},on:{click:function(n){return t.handleDelete(a)}}},[t._v(" "+t._s(t.$L("\u5220\u9664"))+" ")])],1)])])])}),0):s("div",{staticClass:"empty"},[s("div",{staticClass:"empty-text"},[t._v(t._s(t.$L("\u5F53\u524D\u9879\u76EE\u6682\u65E0\u4EFB\u52A1\u6A21\u677F")))]),s("Button",{attrs:{type:"primary",icon:"md-add"},on:{click:t.handleAdd}},[t._v(t._s(t.$L("\u65B0\u5EFA\u6A21\u677F")))])],1)],1),s("Modal",{attrs:{title:t.editingTemplate.id?t.$L("\u7F16\u8F91\u6A21\u677F"):t.$L("\u65B0\u5EFA\u6A21\u677F"),"mask-closable":!1},model:{value:t.showEditModal,callback:function(a){t.showEditModal=a},expression:"showEditModal"}},[s("Form",t._b({ref:"editForm",attrs:{model:t.editingTemplate,rules:t.formRules},nativeOn:{submit:function(a){a.preventDefault()}}},"Form",t.formOptions,!1),[s("FormItem",{attrs:{prop:"name",label:t.$L("\u6A21\u677F\u540D\u79F0")}},[s("Input",{ref:"templateName",attrs:{disabled:t.systemTemplateIsMultiple,placeholder:t.$L("\u8BF7\u8F93\u5165\u6A21\u677F\u540D\u79F0")},model:{value:t.editingTemplate.name,callback:function(a){t.$set(t.editingTemplate,"name",a)},expression:"editingTemplate.name"}})],1),s("FormItem",{attrs:{prop:"title",label:t.$L("\u4EFB\u52A1\u6807\u9898")}},[s("Input",{attrs:{disabled:t.systemTemplateIsMultiple,placeholder:t.$L("\u8BF7\u8F93\u5165\u4EFB\u52A1\u6807\u9898")},model:{value:t.editingTemplate.title,callback:function(a){t.$set(t.editingTemplate,"title",a)},expression:"editingTemplate.title"}})],1),s("FormItem",{attrs:{prop:"content",label:t.$L("\u4EFB\u52A1\u5185\u5BB9")}},[s("Input",{attrs:{type:"textarea",disabled:t.systemTemplateIsMultiple,placeholder:t.$L("\u8BF7\u8F93\u5165\u4EFB\u52A1\u5185\u5BB9"),autosize:{minRows:4,maxRows:12}},model:{value:t.editingTemplate.content,callback:function(a){t.$set(t.editingTemplate,"content",a)},expression:"editingTemplate.content"}})],1),t.editingTemplate.id?t._e():s("FormItem",[s("div",{staticClass:"project-task-template-system"},[t.systemTemplateShow?s("ul",[s("li",{class:{selected:t.systemTemplateIsMultiple},on:{click:function(a){t.systemTemplateIsMultiple=!t.systemTemplateIsMultiple}}},[s("i",{staticClass:"taskfont",domProps:{innerHTML:t._s(t.systemTemplateIsMultiple?"":"")}}),t._v(" "+t._s(t.$L("\u591A\u9009"))+" ")]),t._l(t.systemTemplateData,function(a,n){return s("li",{key:n,class:{selected:t.systemTemplateIsMultiple&&t.systemTemplateMultipleData.indexOf(a)!==-1},on:{click:function(i){return t.useSystemTemplate(a)}}},[t._v(t._s(a.name))])})],2):s("div",{staticClass:"tip-title",on:{click:t.onSystemTemplate}},[t._v(t._s(t.$L("\u4F7F\u7528\u793A\u4F8B\u6A21\u677F")))])])])],1),s("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[s("Button",{attrs:{type:"default"},on:{click:function(a){t.showEditModal=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),s("Button",{attrs:{type:"primary",loading:t.loadIng>0},on:{click:t.handleSave}},[t._v(" "+t._s(t.$L("\u4FDD\u5B58"))+" "+t._s(t.systemTemplateIsMultiple&&t.systemTemplateMultipleData.length>0?` (${t.systemTemplateMultipleData.length})`:"")+" ")])],1)],1)],1)},Pt=[];const Mt={name:"ProjectTaskTemplate",components:{VMPreviewNostyle:X,Draggable:k},props:{projectId:{type:[Number,String],required:!0}},data(){return{loadIng:0,templates:[],sortMode:!1,sortLoading:!1,showEditModal:!1,editingTemplate:this.getEmptyTemplate(),formRules:{name:[{required:!0,message:this.$L("\u8BF7\u8F93\u5165\u6A21\u677F\u540D\u79F0"),trigger:"blur"}]},systemTemplateShow:!1,systemTemplateData:[],systemTemplateIsMultiple:!1,systemTemplateMultipleData:[]}},computed:{...f(["formOptions"])},created(){this.loadTemplates()},watch:{showEditModal(t){t||(this.$refs.editForm.resetFields(),this.systemTemplateShow=!1,this.systemTemplateIsMultiple=!1)}},methods:{getEmptyTemplate(){return{id:null,project_id:this.projectId,name:"",title:"",content:"",is_default:!1}},toggleSortMode(){this.sortLoading||(this.sortMode=!this.sortMode)},async handleSortEnd(t){if(!this.sortMode||t&&t.oldIndex===t.newIndex)return;const e=this.templates.map(s=>s.id);if(!!e.length){this.sortLoading=!0;try{const{msg:s}=await this.$store.dispatch("call",{url:"project/task/template_sort",method:"post",data:{project_id:this.projectId,list:e},spinner:2e3});$A.messageSuccess(s||"\u6392\u5E8F\u5DF2\u4FDD\u5B58"),await this.loadTemplates()}catch({msg:s}){$A.messageError(s||"\u6392\u5E8F\u4FDD\u5B58\u5931\u8D25"),await this.loadTemplates()}finally{this.sortLoading=!1}}},async loadTemplates(){this.loadIng++;try{const{data:t}=await this.$store.dispatch("call",{url:"project/task/template_list",data:{project_id:this.projectId},spinner:3e3});this.templates=t||[],this.templates.length||(this.sortMode=!1)}catch({msg:t}){$A.messageError(t||"\u52A0\u8F7D\u6A21\u677F\u5931\u8D25")}finally{this.loadIng--}},handleAdd(){this.editingTemplate=this.getEmptyTemplate(),this.showEditModal=!0},handleEdit(t){this.editingTemplate={...t},this.showEditModal=!0},async handleSave(){if(!this.editingTemplate.name){$A.messageWarning("\u8BF7\u8F93\u5165\u6A21\u677F\u540D\u79F0");return}let t=[];if(this.systemTemplateIsMultiple){if(this.systemTemplateMultipleData.length===0){$A.messageWarning("\u8BF7\u9009\u62E9\u793A\u4F8B\u6A21\u677F");return}t=this.systemTemplateMultipleData.map(e=>{const s={...this.editingTemplate,id:null,name:e.name,title:e.title,content:e.content};return this.handleSaveCall(s)})}else t.push(this.handleSaveCall(this.editingTemplate));try{const e=await Promise.all(t);$A.messageSuccess(e.length===1?e[0].msg:"\u5168\u90E8\u4FDD\u5B58\u6210\u529F"),this.showEditModal=!1,this.loadTemplates()}catch(e){$A.messageError(e.msg||"\u4FDD\u5B58\u5931\u8D25")}},async handleSaveCall(t){this.loadIng++;try{return await this.$store.dispatch("call",{url:"project/task/template_save",data:t,method:"post",spinner:3e3})}finally{this.loadIng--}},async handleDelete(t){$A.modalConfirm({title:"\u786E\u8BA4\u5220\u9664",content:"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6A21\u677F\u5417\uFF1F",onOk:async()=>{this.loadIng++;try{const{msg:e}=await this.$store.dispatch("call",{url:"project/task/template_delete",data:{id:t.id},spinner:3e3});$A.messageSuccess(e||"\u5220\u9664\u6210\u529F"),await this.loadTemplates()}catch({msg:e}){$A.messageError(e||"\u5220\u9664\u5931\u8D25")}finally{this.loadIng--}}})},async handleSetDefault(t){this.loadIng++;try{const{msg:e}=await this.$store.dispatch("call",{url:"project/task/template_default",data:{id:t.id,project_id:this.projectId},spinner:3e3});$A.messageSuccess(e||"\u8BBE\u7F6E\u6210\u529F"),await this.loadTemplates()}catch({msg:e}){$A.messageError(e||"\u8BBE\u7F6E\u5931\u8D25")}finally{this.loadIng--}},onSystemTemplate(){this.systemTemplateData=typeof C[A]=="undefined"?C.en:C[A],this.systemTemplateShow=!0},useSystemTemplate(t){if(this.editingTemplate.name=t.name,this.editingTemplate.title=t.title,this.editingTemplate.content=t.content,this.systemTemplateIsMultiple){const e=this.systemTemplateMultipleData.indexOf(t);e===-1?this.systemTemplateMultipleData.push(t):this.systemTemplateMultipleData.splice(e,1)}}}},R={};var Et=x(Mt,At,Pt,!1,Ot,null,null,null);function Ot(t){for(let e in R)this[e]=R[e]}var Rt=function(){return Et.exports}(),Ft=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"project-workflow"},[s("div",{staticClass:"workflow-title"},[t._v(" "+t._s(t.$L("\u5DE5\u4F5C\u6D41\u8BBE\u7F6E"))+" "),s("div",{staticClass:"title-icon"},[t.loadIng>0?s("Loading"):s("Icon",{attrs:{type:"ios-refresh"},on:{click:t.getData}})],1)]),t.list.length>0?s("div",{staticClass:"workflow-content"},[s("Collapse",{attrs:{accordion:""},model:{value:t.openIndex,callback:function(a){t.openIndex=a},expression:"openIndex"}},t._l(t.list,function(a){return s("Panel",{key:a.id,attrs:{name:"index_"+a.id}},[s("div",{staticClass:"workflow-item"},[s("div",{staticClass:"workflow-name"},[t._v(t._s(a.name))]),s("div",{staticClass:"workflow-status"},t._l(a.project_flow_item,function(n){return s("div",{key:n.id,class:n.status,style:t.$A.generateColorVarStyle(n.color,[10],"flow-item-custom-color")},[t._v(" "+t._s(n.name)+" ")])}),0),s("div",{staticClass:"workflow-save",on:{click:function(n){n.stopPropagation()}}},[t.contrast(a.project_flow_item,a.project_flow_bak)?[s("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:function(n){return t.onSave(a)}}},[t._v(t._s(t.$L("\u4FDD\u5B58")))]),a.id>0?s("Button",{attrs:{disabled:t.loadIng>0,type:"primary",ghost:""},on:{click:function(n){return t.onReduction(a,n)}}},[t._v(t._s(t.$L("\u8FD8\u539F")))]):t._e()]:t._e(),s("Button",{attrs:{disabled:t.loadIng>0,type:"error",ghost:""},on:{click:function(n){return t.onDelete(a)}}},[t._v(t._s(t.$L("\u5220\u9664")))])],2)]),s("div",{staticClass:"taskflow-config",attrs:{slot:"content"},slot:"content"},[t.flowRulesMap[a.id]&&t.flowRulesMap[a.id].length>0?s("div",{staticClass:"taskflow-config-rules"},[s("div",{staticClass:"rules-title"},[s("Icon",{attrs:{type:"md-list-box"}}),s("span",[t._v(t._s(t.$L("\u5DE5\u4F5C\u6D41\u89C4\u5219")))])],1),s("div",{staticClass:"rules-list"},t._l(t.flowRulesMap[a.id],function(n,i){return s("div",{key:i,staticClass:"rules-item"},[n.type==="owner"?[s("span",[t._v(t._s(t.$L("\u6D41\u8F6C\u5230")))]),s("span",{staticClass:"rule-status",class:n.status},[t._v(t._s(n.name))]),n.usertype==="add"?s("span",[t._v(t._s(t.$L("\u65F6\u6DFB\u52A0")))]):s("span",[t._v(t._s(t.$L("\u65F6\u6539\u53D8\u4EFB\u52A1\u8D1F\u8D23\u4EBA\u4E3A")))]),t._l(n.userids,function(o,r){return s("UserAvatar",{key:`${i}_${r}`,attrs:{userid:o,size:20,borderWidth:1,showName:""}})}),n.usertype==="add"?s("span",[t._v(t._s(t.$L("\u81F3\u4EFB\u52A1\u8D1F\u8D23\u4EBA")))]):n.usertype==="merge"?s("span",[t._v(t._s(t.$L("\uFF08\u5E76\u4FDD\u7559\u64CD\u4F5C\u4EBA\uFF09\uFF0C\u539F\u8D1F\u8D23\u4EBA\u79FB\u81F3\u534F\u52A9\u4EBA\u5458")))]):s("span",[t._v(t._s(t.$L("\uFF0C\u539F\u8D1F\u8D23\u4EBA\u79FB\u81F3\u534F\u52A9\u4EBA\u5458")))])]:n.type==="limit"?[s("span",{staticClass:"rule-status",class:n.status},[t._v(t._s(n.name))]),s("span",[t._v(t._s(t.$L("\u4EC5\u9650\u4EFB\u52A1\u8D1F\u8D23\u4EBA\u548C\u9879\u76EE\u7BA1\u7406\u5458\u4FEE\u6539\u72B6\u6001")))])]:n.type==="column"?[s("span",[t._v(t._s(t.$L("\u6D41\u8F6C\u5230")))]),s("span",{staticClass:"rule-status",class:n.status},[t._v(t._s(n.name))]),s("span",[t._v(t._s(t.$L("\u65F6\u81EA\u52A8\u5C06\u4EFB\u52A1\u79FB\u52A8\u81F3\u5217\u8868")))]),s("span",{staticClass:"rule-column"},[t._v(t._s(n.columnName))])]:t._e()],2)}),0)]):t._e(),s("div",{staticClass:"taskflow-config-table"},[s("div",{staticClass:"taskflow-config-table-left-container"},[s("div",{staticClass:"taskflow-config-table-column-header left-header"},[t._v(t._s(t.$L("\u914D\u7F6E\u9879")))]),s("div",{ref:`overlay_${a.id}`,refInFor:!0,staticClass:"taskflow-config-table-column-body"},[s("div",{staticClass:"taskflow-config-table-block"},[s("div",{staticClass:"taskflow-config-table-block-title"},[t._v(t._s(t.$L("\u8BBE\u7F6E\u72B6\u6001\u4E3A")))]),s("div",{staticClass:"taskflow-config-table-block-item"},[s("div",[s("div",{staticClass:"title"},[t._v(t._s(t.$L("\u5F00\u59CB\u72B6\u6001")))]),s("div",{staticClass:"subtitle"},[t._v(t._s(t.$L("\u65B0\u5EFA\u4EFB\u52A1\u9ED8\u8BA4\u72B6\u6001")))])])]),s("div",{staticClass:"taskflow-config-table-block-item"},[s("div",[s("div",{staticClass:"title"},[t._v(t._s(t.$L("\u8FDB\u884C\u4E2D")))]),s("div",{staticClass:"subtitle"},[t._v(t._s(t.$L("\u53EF\u8BBE\u7F6E\u591A\u4E2A\u72B6\u6001\u4E3A\u8FDB\u884C\u4E2D")))])])]),s("div",{staticClass:"taskflow-config-table-block-item"},[s("div",[s("div",{staticClass:"title"},[t._v(t._s(t.$L("\u9A8C\u6536/\u6D4B\u8BD5")))]),s("div",{staticClass:"subtitle"},[t._v(t._s(t.$L("\u53EA\u80FD\u8BBE\u7F6E\u5355\u4E2A\u72B6\u6001\u4E3A\u9A8C\u6536/\u6D4B\u8BD5")))])])]),s("div",{staticClass:"taskflow-config-table-block-item"},[s("div",[s("div",{staticClass:"title"},[t._v(t._s(t.$L("\u7ED3\u675F\u72B6\u6001")))]),s("div",{staticClass:"subtitle"},[t._v(t._s(t.$L("\u8BE5\u72B6\u6001\u4E0B\u4EFB\u52A1\u81EA\u52A8\u6807\u8BB0\u5B8C\u6210")))])])])]),s("div",{staticClass:"taskflow-config-table-block hr"},[s("div",{staticClass:"taskflow-config-table-block-title"},[t._v(t._s(t.$L("\u53EF\u6D41\u8F6C\u5230")))]),t._l(a.project_flow_item,function(n){return s("div",{key:n.id,staticClass:"taskflow-config-table-block-item"},[s("span",{staticClass:"transform-status-name"},[t._v(t._s(n.name))])])})],2)])]),s("div",{staticClass:"taskflow-config-table-right-container"},[s("Draggable",{staticClass:"taskflow-config-table-list-wrapper",attrs:{list:a.project_flow_item,animation:150,disabled:t.$isEEUIApp||t.windowTouch,tag:"div",draggable:".column-border"},on:{sort:function(){}}},[t._l(a.project_flow_item,function(n,i){return s("div",{key:i,staticClass:"taskflow-config-table-status-column column-border",class:n.status,style:t.$A.generateColorVarStyle(n.color,[10,20,70],"flow-item-custom-color")},[s("div",{staticClass:"taskflow-config-table-status-item taskflow-config-table-column-header"},[s("div",{staticClass:"status-label-with-menu",class:n.status},[s("div",{staticClass:"name"},[t._v(t._s(n.name))]),s("EDropdown",{staticClass:"more",class:{opacity:n.userids.length>0||n.columnid>0},attrs:{trigger:"click"},on:{command:function(o){return t.onMore(o,n)}}},[s("div",{staticClass:"more-icon"},[s("Badge",{attrs:{dot:n.userids.length>0||n.columnid>0}},[s("Icon",{attrs:{type:"ios-more"}})],1)],1),s("EDropdownMenu",{staticClass:"taskflow-config-more-dropdown-menu",attrs:{slot:"dropdown"},slot:"dropdown"},[s("li",{staticClass:"taskflow-config-more-dropdown-warp"},[s("ul",[n.userids.length>0?s("EDropdownItem",{attrs:{command:"user"}},[s("div",{staticClass:"users"},t._l(n.userids,function(o,r){return s("UserAvatar",{key:r,attrs:{userid:o,size:28,borderWidth:1,showName:n.userids.length===1}})}),1)]):t._e(),s("EDropdownItem",{attrs:{command:"user"}},[s("div",{staticClass:"item"},[s("Icon",{attrs:{type:"md-settings"}}),s("Badge",{attrs:{dot:n.userids.length>0||n.columnid>0}},[t._v(" "+t._s(t.$L("\u72B6\u6001\u8BBE\u7F6E"))+" ")])],1)]),s("EDropdownItem",{attrs:{command:"name"}},[s("div",{staticClass:"item"},[s("Icon",{attrs:{type:"md-create"}}),t._v(t._s(t.$L("\u4FEE\u6539\u540D\u79F0"))+" ")],1)]),s("EDropdownItem",{attrs:{command:"remove"}},[s("div",{staticClass:"item delete"},[s("Icon",{attrs:{type:"md-trash"}}),t._v(t._s(t.$L("\u5220\u9664"))+" ")],1)]),t._l(t.$store.state.columnColorList,function(o,r){return s("EDropdownItem",{key:r,attrs:{divided:r==0,command:o}},[s("div",{staticClass:"item"},[s("i",{staticClass:"taskfont",style:{color:o.color||"#ddd"},domProps:{innerHTML:t._s(o.color==n.color?"":"")}}),t._v(t._s(t.$L(o.name))+" ")])])})],2)])])],1)],1)]),s("div",{ref:`overlay_${a.id}`,refInFor:!0,staticClass:"taskflow-config-table-column-body"},[s("div",{staticClass:"taskflow-config-table-block"},[s("div",{staticClass:"taskflow-config-table-block-title"}),s("RadioGroup",{model:{value:n.status,callback:function(o){t.$set(n,"status",o)},expression:"item.status"}},[s("Radio",{attrs:{label:"start"}},[s("span")]),s("Radio",{attrs:{label:"progress"}},[s("span")]),s("Radio",{attrs:{label:"test"}},[s("span")]),s("Radio",{attrs:{label:"end"}},[s("span")])],1)],1),s("div",{staticClass:"taskflow-config-table-block"},[s("div",{staticClass:"taskflow-config-table-block-title"}),s("CheckboxGroup",{on:{"on-change":function(o){return t.onTurns(n)}},model:{value:n.turns,callback:function(o){t.$set(n,"turns",o)},expression:"item.turns"}},t._l(a.project_flow_item,function(o){return s("Checkbox",{key:o.id,attrs:{label:o.id,disabled:o.id==n.id}},[s("span")])}),1)],1)])])}),s("div",{staticClass:"taskflow-config-table-status-column addnew",on:{click:function(n){return t.onAdd(a)}}},[t._v(t._s(t.$L("\u6DFB\u52A0\u72B6\u6001")))])],2)],1)])])])}),1)],1):t.loadIng==0?s("div",{staticClass:"workflow-no"},[t._v(" "+t._s(t.$L("\u5F53\u524D\u9879\u76EE\u8FD8\u6CA1\u6709\u521B\u5EFA\u5DE5\u4F5C\u6D41"))+" "),s("Button",{attrs:{type:"primary",icon:"md-add"},on:{click:t.onCreate}},[t._v(t._s(t.$L("\u521B\u5EFA\u5DE5\u4F5C\u6D41")))])],1):t._e(),s("Modal",{attrs:{styles:{width:"90%",maxWidth:"640px"},title:`${t.$L("\u72B6\u6001\u8BBE\u7F6E")} (${t.settingData.name})`,"mask-closable":!1},model:{value:t.userShow,callback:function(a){t.userShow=a},expression:"userShow"}},[s("Form",t._b({attrs:{model:t.settingData},nativeOn:{submit:function(a){a.preventDefault()}}},"Form",t.formOptions,!1),[s("div",{staticClass:"workflow-setting-box"},[s("h3",[t._v(t._s(t.$L("\u72B6\u6001\u8D1F\u8D23\u4EBA")))]),s("div",{staticClass:"form-box"},[s("FormItem",{attrs:{prop:"userids",label:t.$L("\u72B6\u6001\u8D1F\u8D23\u4EBA")}},[s("UserSelect",{attrs:{"project-id":t.projectId,"multiple-max":5,title:t.$L("\u9009\u62E9\u72B6\u6001\u8D1F\u8D23\u4EBA")},model:{value:t.settingData.userids,callback:function(a){t.$set(t.settingData,"userids",a)},expression:"settingData.userids"}})],1),s("FormItem",{attrs:{prop:"usertype",label:t.$L("\u6D41\u8F6C\u6A21\u5F0F")}},[s("RadioGroup",{model:{value:t.settingData.usertype,callback:function(a){t.$set(t.settingData,"usertype",a)},expression:"settingData.usertype"}},[s("Radio",{attrs:{label:"add"}},[t._v(t._s(t.$L("\u6DFB\u52A0\u6A21\u5F0F")))]),s("Radio",{attrs:{label:"replace"}},[t._v(t._s(t.$L("\u6D41\u8F6C\u6A21\u5F0F")))]),s("Radio",{attrs:{label:"merge"}},[t._v(t._s(t.$L("\u5254\u9664\u6A21\u5F0F")))])],1),t.settingData.usertype=="replace"?s("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u6D41\u8F6C\u5230\u3010(*)\u3011\u65F6\u6539\u53D8\u4EFB\u52A1\u8D1F\u8D23\u4EBA\u4E3A\u72B6\u6001\u8D1F\u8D23\u4EBA\uFF0C\u539F\u672C\u7684\u4EFB\u52A1\u8D1F\u8D23\u4EBA\u79FB\u81F3\u534F\u52A9\u4EBA\u5458\u3002",t.settingData.name)))]):t.settingData.usertype=="merge"?s("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u6D41\u8F6C\u5230\u3010(*)\u3011\u65F6\u6539\u53D8\u4EFB\u52A1\u8D1F\u8D23\u4EBA\u4E3A\u72B6\u6001\u8D1F\u8D23\u4EBA\uFF08\u5E76\u4FDD\u7559\u64CD\u4F5C\u72B6\u6001\u7684\u4EBA\u5458\uFF09\uFF0C\u539F\u672C\u7684\u4EFB\u52A1\u8D1F\u8D23\u4EBA\u79FB\u81F3\u534F\u52A9\u4EBA\u5458\u3002",t.settingData.name)))]):s("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u6D41\u8F6C\u5230\u3010(*)\u3011\u65F6\u6DFB\u52A0\u72B6\u6001\u8D1F\u8D23\u4EBA\u81F3\u4EFB\u52A1\u8D1F\u8D23\u4EBA\u3002",t.settingData.name)))])],1),s("FormItem",{attrs:{prop:"userlimit",label:t.$L("\u9650\u5236\u8D1F\u8D23\u4EBA")}},[s("iSwitch",{attrs:{"true-value":1,"false-value":0},model:{value:t.settingData.userlimit,callback:function(a){t.$set(t.settingData,"userlimit",a)},expression:"settingData.userlimit"}}),t.settingData.userlimit===1?s("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u6D41\u8F6C\u5230\u3010(*)\u3011\u65F6\uFF0C[\u4EFB\u52A1\u8D1F\u8D23\u4EBA] \u548C [\u9879\u76EE\u7BA1\u7406\u5458] \u53EF\u4EE5\u4FEE\u6539\u72B6\u6001\u3002",t.settingData.name)))]):s("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u6D41\u8F6C\u5230\u3010(*)\u3011\u65F6\uFF0C[\u4EFB\u52A1\u8D1F\u8D23\u4EBA] \u548C [\u9879\u76EE\u7BA1\u7406\u5458] \u53EF\u4EE5\u4FEE\u6539\u72B6\u6001\u3002",t.settingData.name)))])],1)],1)]),s("div",{staticClass:"workflow-setting-box"},[s("h3",[t._v(t._s(t.$L("\u5173\u8054\u5217\u8868")))]),s("div",{staticClass:"form-box"},[s("FormItem",{attrs:{prop:"usertype",label:t.$L("\u5173\u8054\u5217\u8868")}},[s("Select",{attrs:{placeholder:t.$L("\u9009\u62E9\u5173\u8054\u5217\u8868"),transfer:""},model:{value:t.settingData.columnid,callback:function(a){t.$set(t.settingData,"columnid",a)},expression:"settingData.columnid"}},t._l(t.columnList,function(a,n){return s("Option",{key:n,attrs:{value:a.id}},[t._v(t._s(a.name))])}),1),s("div",{staticClass:"form-tip"},[t._v(" "+t._s(t.$L("\u6D41\u8F6C\u5230\u3010(*)\u3011\u65F6\u81EA\u52A8\u5C06\u4EFB\u52A1\u79FB\u52A8\u81F3\u5173\u8054\u5217\u8868\u3002",t.settingData.name))+" "),t.settingData.columnid?s("a",{attrs:{href:"javascript:void(0)"},on:{click:function(a){t.settingData.columnid=0}}},[t._v(t._s(t.$L("\u53D6\u6D88\u5173\u8054")))]):t._e()])],1)],1)])]),s("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[s("Button",{attrs:{type:"default"},on:{click:function(a){t.userShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),s("Button",{attrs:{type:"primary"},on:{click:t.onUser}},[t._v(t._s(t.$L("\u4FDD\u5B58")))])],1)],1)],1)},Wt=[];const zt={name:"ProjectWorkflow",components:{UserSelect:q,Draggable:k},props:{projectId:{type:Number,default:0}},data(){return{loadIng:0,list:[],openIndex:"",userShow:!1,settingData:{}}},mounted(){},computed:{...f(["cacheColumns","formOptions"]),columnList({projectId:t,cacheColumns:e}){return e.filter(({project_id:s})=>s==t).sort((s,a)=>s.sort!=a.sort?$A.sortFloat(s.sort,a.sort):s.id-a.id).map(s=>({id:s.id,name:s.name}))},flowRulesMap(){const t={},e={};return this.columnList.forEach(s=>{e[s.id]=s.name}),this.list.forEach(s=>{const a=[];s.project_flow_item.forEach(n=>{n.userids&&n.userids.length>0&&a.push({type:"owner",name:n.name,status:n.status,userids:n.userids,usertype:n.usertype}),n.userlimit===1&&a.push({type:"limit",name:n.name,status:n.status}),n.columnid&&e[n.columnid]&&a.push({type:"column",name:n.name,status:n.status,columnName:e[n.columnid]})}),t[s.id]=a}),t}},watch:{projectId:{handler(t){t&&this.getData()},immediate:!0}},methods:{getData(){this.loadIng++,this.$store.dispatch("call",{url:"project/flow/list",data:{project_id:this.projectId}}).then(({data:t})=>{this.list=t.map(e=>(e.project_flow_bak=JSON.stringify(e.project_flow_item),e)),this.openIndex=this.list.length===1?"index_"+this.list[0].id:"",this.$nextTick(this.syncScroller)}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.loadIng--})},syncScroller(){this.list.some(t=>{this.$refs[`overlay_${t.id}`]&&this.$refs[`overlay_${t.id}`].some(e=>{Object.keys(e.attributes).includes("sync-scroller")||(e.setAttribute("sync-scroller",!0),e.addEventListener("scroll",({target:s})=>{let a=s.scrollTop,n=s.scrollLeft;this.$nextTick(()=>{this.$refs[`overlay_${t.id}`].some(i=>{i!=e&&i.scrollTo(n,a)})})}))})})},contrast(t,e){return JSON.stringify(t)!=e},existDiff(){return!!this.list.find(t=>this.contrast(t.project_flow_item,t.project_flow_bak))},onCreate(){let t=-1*$A.randNum(1e3,1e4);this.list.push({id:t,name:"Default",project_flow_item:[{id:-10,name:this.$L("\u5F85\u5904\u7406"),status:"start",turns:[-10,-11,-12,-13,-14],userids:[],usertype:"add",userlimit:0,columnid:0},{id:-11,name:this.$L("\u8FDB\u884C\u4E2D"),status:"progress",turns:[-10,-11,-12,-13,-14],userids:[],usertype:"add",userlimit:0,columnid:0},{id:-12,name:this.$L("\u5F85\u6D4B\u8BD5"),status:"test",turns:[-10,-11,-12,-13,-14],userids:[],usertype:"add",userlimit:0,columnid:0},{id:-13,name:this.$L("\u5DF2\u5B8C\u6210"),status:"end",turns:[-10,-11,-12,-13,-14],userids:[],usertype:"add",userlimit:0,columnid:0},{id:-14,name:this.$L("\u5DF2\u53D6\u6D88"),status:"end",color:"#999999",turns:[-10,-11,-12,-13,-14],userids:[],usertype:"add",userlimit:0,columnid:0}]}),this.openIndex="index_"+t,this.$nextTick(this.syncScroller)},onDelete(t){$A.modalConfirm({title:"\u5220\u9664\u5DE5\u4F5C\u6D41",content:"\u4F60\u786E\u5B9A\u8981\u5220\u9664\u5DE5\u4F5C\u6D41\u5417\uFF1F",loading:!0,onOk:()=>{if(t.id>0)return new Promise((s,a)=>{this.loadIng++,this.$store.dispatch("call",{url:"project/flow/delete",data:{project_id:this.projectId}}).then(({msg:n})=>{s(n);let i=this.list.findIndex(({id:o})=>o==t.id);i>-1&&this.list.splice(i,1)}).catch(({msg:n})=>{a(n)}).finally(n=>{this.loadIng--})});const e=this.list.findIndex(({id:s})=>s==t.id);e>-1&&this.list.splice(e,1)}})},onMore(t,e){switch(t){case"user":this.$set(this.settingData,"id",e.id),this.$set(this.settingData,"name",e.name),this.$set(this.settingData,"userids",e.userids),this.$set(this.settingData,"usertype",e.usertype),this.$set(this.settingData,"userlimit",e.userlimit),this.$set(this.settingData,"columnid",e.columnid),this.userShow=!0;break;case"name":this.onName(e);break;case"remove":this.onRemove(e);break;default:t.name&&this.$set(e,"color",t.color)}},onUser(){this.userShow=!1,this.list.some(t=>{let e=t.project_flow_item.find(s=>s.id==this.settingData.id);e&&(this.$set(e,"userids",this.settingData.userids),this.$set(e,"usertype",this.settingData.usertype),this.$set(e,"userlimit",this.settingData.userlimit),this.$set(e,"columnid",this.settingData.columnid))})},onName(t){$A.modalInput({value:t.name,title:"\u4FEE\u6539\u540D\u79F0",placeholder:"\u8BF7\u8F93\u5165\u6D41\u7A0B\u540D\u79F0",onOk:e=>{if(!e)return"\u8BF7\u8F93\u5165\u6D41\u7A0B\u540D\u79F0";this.$set(t,"name",e)}})},onRemove(t){this.list.some(e=>{let s=e.project_flow_item.findIndex(({id:a})=>a==t.id);s>-1&&e.project_flow_item.splice(s,1)})},onTurns(t){this.$set(t,"turns",t.turns.sort())},onAdd(t){$A.modalInput({title:"\u6DFB\u52A0\u72B6\u6001",placeholder:"\u8BF7\u8F93\u5165\u72B6\u6001\u540D\u79F0",onOk:e=>{if(!e)return"\u8BF7\u8F93\u5165\u72B6\u6001\u540D\u79F0";const s=$A.randNum(1e5,999999)*-1,a=t.project_flow_item.map(({id:n})=>n);t.project_flow_item.push({id:s,name:e,status:"end",turns:a,userids:[],usertype:"add",userlimit:0,columnid:0}),t.project_flow_item.some(n=>{n.turns.push(s)})}})},onReduction(t){this.$set(t,"project_flow_item",JSON.parse(t.project_flow_bak))},onSave(t){let e=0;t.project_flow_item.some(s=>{s.sort=e++}),this.loadIng++,this.$store.dispatch("call",{url:"project/flow/save",data:{project_id:this.projectId,flows:t.project_flow_item},method:"post"}).then(({data:s,msg:a})=>{$.messageSuccess(a),s.project_flow_bak=JSON.stringify(s.project_flow_item);let n=this.list.findIndex(({id:i})=>i==t.id);n>-1?this.list.splice(n,1,s):this.list.push(s),this.openIndex="index_"+s.id,this.$nextTick(this.syncScroller)}).catch(({msg:s})=>{$A.modalError(s)}).finally(s=>{this.loadIng--})},saveAll(){this.list.some(t=>{this.contrast(t.project_flow_item,t.project_flow_bak)&&this.onSave(t)})}}},F={};var Bt=x(zt,Ft,Wt,!1,Nt,null,null,null);function Nt(t){for(let e in F)this[e]=F[e]}var Vt=function(){return Bt.exports}(),Gt=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"project-permission"},[s("div",{staticClass:"permission-title"},[t._v(" "+t._s(t.$L("\u6743\u9650\u8BBE\u7F6E"))+" "),s("div",{staticClass:"title-icon"},[t.loadIng>0?s("Loading"):s("Icon",{attrs:{type:"ios-refresh"},on:{click:function(a){return t.getData()}}})],1)]),s("div",{staticClass:"permission-content"},[s("Form",t._b({attrs:{model:t.formData},nativeOn:{submit:function(a){a.preventDefault()}}},"Form",t.formOptions,!1),[s("div",{staticClass:"block-setting-box"},[s("h3",[t._v(t._s(t.$L("\u4EFB\u52A1\u5217\u6743\u9650")))]),s("div",{staticClass:"form-box"},[s("FormItem",{attrs:{label:t.$L("\u6DFB\u52A0\u5217")}},[s("CheckboxGroup",{model:{value:t.formData.task_list_add,callback:function(a){t.$set(t.formData,"task_list_add",a)},expression:"formData.task_list_add"}},[s("Checkbox",{attrs:{label:1,disabled:""}},[t._v(t._s(t.$L("\u9879\u76EE\u8D1F\u8D23\u4EBA")))]),s("Checkbox",{attrs:{label:2}},[t._v(t._s(t.$L("\u9879\u76EE\u6210\u5458")))])],1)],1),s("FormItem",{attrs:{label:t.$L("\u4FEE\u6539\u5217")}},[s("CheckboxGroup",{model:{value:t.formData.task_list_update,callback:function(a){t.$set(t.formData,"task_list_update",a)},expression:"formData.task_list_update"}},[s("Checkbox",{attrs:{label:1,disabled:""}},[t._v(t._s(t.$L("\u9879\u76EE\u8D1F\u8D23\u4EBA")))]),s("Checkbox",{attrs:{label:2}},[t._v(t._s(t.$L("\u9879\u76EE\u6210\u5458")))])],1)],1),s("FormItem",{attrs:{label:t.$L("\u5220\u9664\u5217")}},[s("CheckboxGroup",{model:{value:t.formData.task_list_remove,callback:function(a){t.$set(t.formData,"task_list_remove",a)},expression:"formData.task_list_remove"}},[s("Checkbox",{attrs:{label:1,disabled:""}},[t._v(t._s(t.$L("\u9879\u76EE\u8D1F\u8D23\u4EBA")))]),s("Checkbox",{attrs:{label:2}},[t._v(t._s(t.$L("\u9879\u76EE\u6210\u5458")))])],1)],1),s("FormItem",{attrs:{label:t.$L("\u6392\u5E8F\u5217")}},[s("CheckboxGroup",{model:{value:t.formData.task_list_sort,callback:function(a){t.$set(t.formData,"task_list_sort",a)},expression:"formData.task_list_sort"}},[s("Checkbox",{attrs:{label:1,disabled:""}},[t._v(t._s(t.$L("\u9879\u76EE\u8D1F\u8D23\u4EBA")))]),s("Checkbox",{attrs:{label:2}},[t._v(t._s(t.$L("\u9879\u76EE\u6210\u5458")))])],1)],1)],1)]),s("div",{staticClass:"block-setting-box"},[s("h3",[t._v(t._s(t.$L("\u4EFB\u52A1\u6743\u9650")))]),s("div",{staticClass:"form-box"},[s("FormItem",{attrs:{label:t.$L("\u6DFB\u52A0\u4EFB\u52A1")}},[s("CheckboxGroup",{model:{value:t.formData.task_add,callback:function(a){t.$set(t.formData,"task_add",a)},expression:"formData.task_add"}},[s("Checkbox",{attrs:{label:1,disabled:""}},[t._v(t._s(t.$L("\u9879\u76EE\u8D1F\u8D23\u4EBA")))]),s("Checkbox",{attrs:{label:2}},[t._v(t._s(t.$L("\u9879\u76EE\u6210\u5458")))])],1)],1),s("FormItem",{attrs:{label:t.$L("\u4FEE\u6539\u4EFB\u52A1")}},[s("CheckboxGroup",{model:{value:t.formData.task_update,callback:function(a){t.$set(t.formData,"task_update",a)},expression:"formData.task_update"}},[s("Checkbox",{attrs:{label:1,disabled:""}},[t._v(t._s(t.$L("\u9879\u76EE\u8D1F\u8D23\u4EBA")))]),s("Checkbox",{attrs:{label:3}},[t._v(t._s(t.$L("\u4EFB\u52A1\u8D1F\u8D23\u4EBA")))]),s("Checkbox",{attrs:{label:4}},[t._v(t._s(t.$L("\u4EFB\u52A1\u534F\u52A9\u4EBA")))]),s("Checkbox",{attrs:{label:2}},[t._v(t._s(t.$L("\u9879\u76EE\u6210\u5458")))])],1)],1),s("FormItem",{attrs:{label:t.$L("\u4FEE\u6539\u65F6\u95F4")}},[s("CheckboxGroup",{model:{value:t.formData.task_time,callback:function(a){t.$set(t.formData,"task_time",a)},expression:"formData.task_time"}},[s("Checkbox",{attrs:{label:1,disabled:""}},[t._v(t._s(t.$L("\u9879\u76EE\u8D1F\u8D23\u4EBA")))]),s("Checkbox",{attrs:{label:3}},[t._v(t._s(t.$L("\u4EFB\u52A1\u8D1F\u8D23\u4EBA")))]),s("Checkbox",{attrs:{label:4}},[t._v(t._s(t.$L("\u4EFB\u52A1\u534F\u52A9\u4EBA")))]),s("Checkbox",{attrs:{label:2}},[t._v(t._s(t.$L("\u9879\u76EE\u6210\u5458")))])],1)],1),s("FormItem",{attrs:{label:t.$L("\u4FEE\u6539\u72B6\u6001")}},[s("CheckboxGroup",{model:{value:t.formData.task_status,callback:function(a){t.$set(t.formData,"task_status",a)},expression:"formData.task_status"}},[s("Checkbox",{attrs:{label:1,disabled:""}},[t._v(t._s(t.$L("\u9879\u76EE\u8D1F\u8D23\u4EBA")))]),s("Checkbox",{attrs:{label:3}},[t._v(t._s(t.$L("\u4EFB\u52A1\u8D1F\u8D23\u4EBA")))]),s("Checkbox",{attrs:{label:4}},[t._v(t._s(t.$L("\u4EFB\u52A1\u534F\u52A9\u4EBA")))]),s("Checkbox",{attrs:{label:2}},[t._v(t._s(t.$L("\u9879\u76EE\u6210\u5458")))])],1)],1),s("FormItem",{attrs:{label:t.$L("\u5F52\u6863\u4EFB\u52A1")}},[s("CheckboxGroup",{model:{value:t.formData.task_archived,callback:function(a){t.$set(t.formData,"task_archived",a)},expression:"formData.task_archived"}},[s("Checkbox",{attrs:{label:1,disabled:""}},[t._v(t._s(t.$L("\u9879\u76EE\u8D1F\u8D23\u4EBA")))]),s("Checkbox",{attrs:{label:3}},[t._v(t._s(t.$L("\u4EFB\u52A1\u8D1F\u8D23\u4EBA")))]),s("Checkbox",{attrs:{label:4}},[t._v(t._s(t.$L("\u4EFB\u52A1\u534F\u52A9\u4EBA")))]),s("Checkbox",{attrs:{label:2}},[t._v(t._s(t.$L("\u9879\u76EE\u6210\u5458")))])],1)],1),s("FormItem",{attrs:{label:t.$L("\u5220\u9664\u4EFB\u52A1")}},[s("CheckboxGroup",{model:{value:t.formData.task_remove,callback:function(a){t.$set(t.formData,"task_remove",a)},expression:"formData.task_remove"}},[s("Checkbox",{attrs:{label:1,disabled:""}},[t._v(t._s(t.$L("\u9879\u76EE\u8D1F\u8D23\u4EBA")))]),s("Checkbox",{attrs:{label:3}},[t._v(t._s(t.$L("\u4EFB\u52A1\u8D1F\u8D23\u4EBA")))]),s("Checkbox",{attrs:{label:4}},[t._v(t._s(t.$L("\u4EFB\u52A1\u534F\u52A9\u4EBA")))]),s("Checkbox",{attrs:{label:2}},[t._v(t._s(t.$L("\u9879\u76EE\u6210\u5458")))])],1)],1),s("FormItem",{attrs:{label:t.$L("\u79FB\u52A8\u4EFB\u52A1")}},[s("CheckboxGroup",{model:{value:t.formData.task_move,callback:function(a){t.$set(t.formData,"task_move",a)},expression:"formData.task_move"}},[s("Checkbox",{attrs:{label:1,disabled:""}},[t._v(t._s(t.$L("\u9879\u76EE\u8D1F\u8D23\u4EBA")))]),s("Checkbox",{attrs:{label:3}},[t._v(t._s(t.$L("\u4EFB\u52A1\u8D1F\u8D23\u4EBA")))]),s("Checkbox",{attrs:{label:4}},[t._v(t._s(t.$L("\u4EFB\u52A1\u534F\u52A9\u4EBA")))]),s("Checkbox",{attrs:{label:2}},[t._v(t._s(t.$L("\u9879\u76EE\u6210\u5458")))])],1)],1)],1)])])],1),s("div",{staticClass:"project-permission-footer",attrs:{slot:"footer"},slot:"footer"},[s("Button",{attrs:{type:"primary",loading:t.loadIng>0},on:{click:t.updateData}},[t._v(t._s(t.$L("\u4FEE\u6539")))]),s("Button",{attrs:{type:"default"},on:{click:t.onClose}},[t._v(t._s(t.$L("\u53D6\u6D88")))])],1)])},Ut=[];const Kt={name:"ProjectPermission",props:{projectId:{type:Number,default:0}},data(){return{loadIng:0,formData:{project_task_list:[],task_add:[],task_update:[],task_time:[],task_status:[],task_archived:[],task_remove:[],task_move:[]}}},watch:{projectId:{handler(t){t&&this.getData()},immediate:!0}},computed:{...f(["formOptions"])},methods:{getData(){this.loadIng++,this.$store.dispatch("call",{url:"project/permission",data:{project_id:this.projectId}}).then(({data:t})=>{this.formData=t.permissions}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.loadIng--})},updateData(){this.loadIng++,this.$store.dispatch("call",{url:"project/permission/update",method:"post",data:{project_id:this.projectId,...this.formData}}).then(({data:t})=>{this.formData=t.permissions,$A.messageSuccess("\u4FEE\u6539\u6210\u529F")}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.loadIng--})},onClose(){this.$emit("close")}}},W={};var Ht=x(Kt,Gt,Ut,!1,Yt,null,null,null);function Yt(t){for(let e in W)this[e]=W[e]}var Jt=function(){return Ht.exports}(),Xt=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"task-deleted"},[s("div",{staticClass:"deleted-title"},[t._v(" "+t._s(t.$L("\u5220\u9664\u7684\u4EFB\u52A1"))+" "),s("div",{staticClass:"title-icon"},[t.loadIng>0?s("Loading"):t._e()],1)]),s("div",{staticClass:"search-container lr"},[s("ul",[s("li",[s("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u5173\u952E\u8BCD"))+" ")]),s("div",{staticClass:"search-content"},[s("Input",{attrs:{placeholder:t.$L("ID\u3001\u540D\u79F0\u3001\u63CF\u8FF0..."),clearable:""},model:{value:t.keys.name,callback:function(a){t.$set(t.keys,"name",a)},expression:"keys.name"}})],1)]),s("li",[s("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u4EFB\u52A1\u72B6\u6001"))+" ")]),s("div",{staticClass:"search-content"},[s("Select",{attrs:{placeholder:t.$L("\u5168\u90E8")},model:{value:t.keys.status,callback:function(a){t.$set(t.keys,"status",a)},expression:"keys.status"}},[s("Option",{attrs:{value:""}},[t._v(t._s(t.$L("\u5168\u90E8")))]),t.flows.type==="group"?t._l(t.flows.groups,function(a,n){return s("OptionGroup",{key:n,attrs:{label:a.label}},t._l(a.items,function(i,o){return s("Option",{key:o,attrs:{value:i.id,label:i.name}},[s("div",{staticClass:"tag-dot",class:i.status,style:t.$A.generateColorVarStyle(i.color,[],"flow-item-custom-color")},[t._v(t._s(i.name))])])}),1)}):t._l(t.flows.items,function(a,n){return s("Option",{key:n,attrs:{value:a.id,label:a.name}},[s("div",{staticClass:"tag-dot",class:a.status,style:t.$A.generateColorVarStyle(a.color,[],"flow-item-custom-color")},[t._v(t._s(a.name))])])})],2)],1)]),s("li",[s("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u4EFB\u52A1\u6807\u7B7E"))+" ")]),s("div",{staticClass:"search-content"},[s("Select",{attrs:{placeholder:t.$L("\u5168\u90E8")},model:{value:t.keys.tag,callback:function(a){t.$set(t.keys,"tag",a)},expression:"keys.tag"}},[s("Option",{attrs:{value:""}},[t._v(t._s(t.$L("\u5168\u90E8")))]),t._l(t.tags,function(a){return s("Option",{key:a.id,attrs:{value:a.name,label:a.name}},[s("div",{staticClass:"tag-dot",style:{"--bg-color":a.color}},[t._v(" "+t._s(a.name)+" ")])])})],2)],1)]),s("li",{staticClass:"search-button"},[s("SearchButton",{attrs:{loading:t.loadIng>0,filtering:t.keyIs,placement:"right"},on:{search:t.onSearch,refresh:t.getLists,cancelFilter:function(a){t.keyIs=!1}}})],1)])]),s("div",{staticClass:"table-page-box"},[s("Table",{attrs:{columns:t.columns,data:t.list,loading:t.loadIng>0,"no-data-text":t.$L(t.noText),stripe:""}}),s("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)])},qt=[];const Zt={name:"TaskDeleted",components:{SearchButton:Q},props:{projectId:{type:Number,default:0}},data(){return{loadIng:0,keys:{},keyIs:!1,columns:[{title:"ID",key:"id",width:80,render:(t,{row:e,column:s})=>t("TableAction",{props:{column:s,align:"left"}},[t("div",e.id)])},{title:this.$L("\u4EFB\u52A1\u540D\u79F0"),key:"name",minWidth:200,render:(t,{row:e})=>t("AutoTip",e.name)},{title:this.$L("\u4EFB\u52A1\u72B6\u6001"),key:"status",minWidth:100,render:(t,{row:e})=>{let s=e.flow_item_name;return s&&s.indexOf("|")!==-1?[,s]=s.split("|"):e.complete_at?s=this.$L("\u5DF2\u5B8C\u6210"):s=this.$L("\u672A\u5B8C\u6210"),t("AutoTip",s)}},{title:this.$L("\u4EFB\u52A1\u6807\u7B7E"),key:"tags",minWidth:100,render:(t,{row:e})=>e.task_tag.length==0?t("div","-"):t("AutoTip",e.task_tag.map(({name:s})=>s).join("\u3001"))},{title:this.$L("\u521B\u5EFA\u65F6\u95F4"),key:"created_at",width:168},{title:this.$L("\u5220\u9664\u65F6\u95F4"),key:"deleted_at",width:168},{title:this.$L("\u5220\u9664\u4EBA\u5458"),key:"deleted_userid",minWidth:100,render:(t,{row:e})=>e.deleted_userid?t("UserAvatar",{props:{userid:e.deleted_userid,size:24,showName:!0}}):t("span","-")},{title:this.$L("\u64CD\u4F5C"),align:"center",width:100,render:(t,e)=>{const s=[t("Poptip",{props:{title:this.$L("\u4F60\u786E\u5B9A\u8981\u8FD8\u539F\u5220\u9664\u5417\uFF1F"),confirm:!0,transfer:!0,placement:"left",okText:this.$L("\u786E\u5B9A"),cancelText:this.$L("\u53D6\u6D88")},style:{fontSize:"13px",cursor:"pointer",color:"#84C56A"},on:{"on-ok":()=>{this.recovery(e.row)}}},this.$L("\u8FD8\u539F"))];return t("TableAction",{props:{column:e.column}},s)}}],list:[],flowList:[],tags:[],page:1,pageSize:20,total:0,noText:""}},mounted(){this.getFlowData(),this.getTagData()},computed:{...f(["cacheTasks"]),flows({flowList:t}){const e=[];t.forEach(a=>{a.project_flow_item.forEach(n=>{const i=t.length>1?a.name+" - "+n.name:n.name;e.push({...n,id:"flow-"+n.id,label:i})})});const s=[{id:"completed",name:this.$L("\u5DF2\u5B8C\u6210"),status:"completed",label:this.$L("\u5DF2\u5B8C\u6210")},{id:"uncompleted",name:this.$L("\u672A\u5B8C\u6210"),status:"uncompleted",label:this.$L("\u672A\u5B8C\u6210")}];return e.length>0?{type:"group",groups:[{label:this.$L("\u6309\u5DE5\u4F5C\u6D41"),items:e},{label:this.$L("\u6309\u72B6\u6001"),items:s}]}:{type:"normal",items:s}}},watch:{projectId:{handler(){this.getLists()},immediate:!0},keyIs(t){t||(this.keys={},this.setPage(1))}},methods:{onSearch(){this.page=1,this.getLists()},async getFlowData(){let t=[];const e=this.projectId;try{const{data:s}=await this.$store.dispatch("call",{url:"project/flow/list",data:{project_id:e}});t=s||[]}catch{t=[]}e===this.projectId&&(this.flowList=t)},async getTagData(){let t=[];const e=this.projectId;try{const{data:s}=await this.$store.dispatch("call",{url:"project/tag/list",data:{project_id:e}});t=s||[]}catch{t=[]}e===this.projectId&&(this.tags=t)},getLists(){!this.projectId||(this.loadIng++,this.keyIs=$A.objImplode(this.keys)!="",this.$store.dispatch("call",{url:"project/task/lists",data:{keys:this.keys,project_id:this.projectId,parent_id:-1,deleted:"yes",sorts:{deleted_at:"desc"},page:Math.max(this.page,1),pagesize:Math.max($A.runNum(this.pageSize),10)}}).then(({data:t})=>{this.page=t.current_page,this.total=t.total,this.list=t.data,this.noText="\u6CA1\u6709\u76F8\u5173\u7684\u6570\u636E"}).catch(()=>{this.noText="\u6570\u636E\u52A0\u8F7D\u5931\u8D25"}).finally(t=>{this.loadIng--}))},setPage(t){this.page=t,this.getLists()},setPageSize(t){this.page=1,this.pageSize=t,this.getLists()},recovery(t){this.list=this.list.filter(({id:e})=>e!=t.id),this.loadIng++,this.$store.dispatch("removeTask",{task_id:t.id,type:"recovery"}).then(({msg:e})=>{$A.messageSuccess(e),this.loadIng--,this.getLists(),this.$store.dispatch("openTask",t)}).catch(({msg:e})=>{$A.modalError(e),this.loadIng--,this.getLists()})}}},z={};var Qt=x(Zt,Xt,qt,!1,te,null,null,null);function te(t){for(let e in z)this[e]=z[e]}var ee=function(){return Qt.exports}(),se=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"common-gantt"},[s("div",{staticClass:"gantt-left",style:t.leftStyle},[s("div",{staticClass:"gantt-title"},[s("div",{staticClass:"gantt-title-text"},[t._v(t._s(t.$L("\u4EFB\u52A1\u540D\u79F0")))]),s("div",{staticClass:"gantt-title-right"},[t._t("titleTool")],2)]),s("ul",{ref:"ganttItem",staticClass:"gantt-item",on:{scroll:t.itemScrollListener,mouseenter:function(a){t.mouseType="item"}}},t._l(t.lists,function(a,n){return s("li",{key:n,on:{click:function(i){return t.clickItem(a,n)}}},[a.overdue?s("div",{staticClass:"item-overdue"},[t._v(t._s(t.$L("\u5DF2\u8D85\u671F")))]):t._e(),s("div",{staticClass:"item-title",class:{complete:a.complete,overdue:a.overdue}},[t._v(t._s(a.label))]),s("Icon",{staticClass:"item-icon",attrs:{type:"ios-locate-outline"},on:{click:function(i){return i.stopPropagation(),t.scrollPosition(n)}}})],1)}),0)]),s("div",{ref:"ganttRight",staticClass:"gantt-right"},[s("div",{staticClass:"gantt-size",on:{click:function(a){t.maximize=!t.maximize}}},[t.maximize?s("i",{staticClass:"taskfont"},[t._v("\uE7D4")]):s("i",{staticClass:"taskfont"},[t._v("\uE7D3")])]),s("div",{ref:"ganttChart",staticClass:"gantt-chart",on:{touchstart:t.dateTouchstart,touchmove:t.dateTouchmove,touchend:t.dateTouchend}},[s("ul",{staticClass:"gantt-month"},t._l(t.monthNum,function(a,n){return s("li",{key:n,style:t.monthStyle(n)},[s("div",{staticClass:"month-format"},[t._v(t._s(t.monthFormat(n)))])])}),0),s("ul",{staticClass:"gantt-date",on:{mousedown:t.dateMouseDown}},t._l(t.dateNum,function(a,n){return s("li",{key:n,style:t.dateStyle(n)},[s("div",{staticClass:"date-format"},[s("div",{staticClass:"format-day"},[t._v(t._s(t.dateFormat(n,"day")))]),t.dateWidth>46?s("div",{staticClass:"format-week"},[t._v(t._s(t.dateFormat(n,"week")))]):t._e()])])}),0),s("ul",{ref:"ganttTimeline",staticClass:"gantt-timeline",on:{scroll:t.timelineScrollListener,mouseenter:function(a){t.mouseType="timeline"}}},t._l(t.lists,function(a,n){return s("li",{key:n,attrs:{"data-id":a.id}},[s("div",{staticClass:"timeline-item",style:t.itemStyle(a),on:{mousedown:function(i){return t.itemMouseDown(i,a)}}},[s("div",{staticClass:"timeline-title",attrs:{title:a.label}},[t._v(t._s(a.label))]),s("div",{staticClass:"timeline-resizer"})])])}),0)])])])},ae=[];const ne={name:"GanttView",props:{lists:{type:Array},menuWidth:{type:Number,default:300},itemWidth:{type:Number,default:100},readonly:{type:Boolean,default:!1}},data(){return{mouseType:"",mouseWidth:0,mouseScaleWidth:0,dateWidth:100,ganttWidth:0,mouseItem:null,mouseBak:{},dateMove:null,maximize:!1}},mounted(){this.maximize=this.windowPortrait,this.dateWidth=this.itemWidth,this.$refs.ganttRight.addEventListener("mousewheel",this.handleScroll,!1),document.addEventListener("mousemove",this.itemMouseMove),document.addEventListener("mouseup",this.itemMouseUp),window.addEventListener("resize",this.handleResize,!1),this.handleResize()},beforeDestroy(){this.$refs.ganttRight.removeEventListener("mousewheel",this.handleScroll,!1),document.removeEventListener("mousemove",this.itemMouseMove),document.removeEventListener("mouseup",this.itemMouseUp),window.removeEventListener("resize",this.handleResize,!1)},watch:{itemWidth(t){this.dateWidth=t},maximize(){this.$nextTick(()=>{this.handleResize()})}},computed:{leftStyle({menuWidth:t,maximize:e}){const s={width:t+"px"};return e&&(s.display="none"),s},monthNum(){const{ganttWidth:t,dateWidth:e}=this;return Math.floor(t/e/30)+2},monthStyle(){const{mouseWidth:t,dateWidth:e}=this;return function(s){let a=t==0?0:t/e,i=$A.daytz().startOf("day").clone().add(a*86400,"second"),o=i.clone().endOf("month"),r=(o-i)/1e3/60/60/24,l=e*r;return s>0&&(o=i.clone().add(s+1,"month").endOf("month"),l=o.date()*e),{width:l+"px"}}},monthFormat(){const{mouseWidth:t,dateWidth:e}=this;return function(s){let a=t==0?0:t/e,i=$A.daytz().startOf("day").clone().add(Math.floor(a),"day");return s>0&&(i=i.add(s,"month")),i.format("YYYY-MM")}},dateNum(){const{ganttWidth:t,dateWidth:e}=this;return Math.floor(t/e)+2},dateStyle(){const{mouseWidth:t,dateWidth:e}=this;return function(s){const a={};let n=t==0?0:t/e,i=Math.floor(n)+s;n==Math.floor(n)&&i--;let o=t==0?s-1:i,r=$A.daytz().add(o,"day");[0,6].indexOf(r.day())!==-1&&(a.backgroundColor="#f9fafb");let l=e;return s==0&&(l=Math.abs((t%l-l)%l)),a.width=l+"px",a}},dateFormat(){const{mouseWidth:t,dateWidth:e}=this;return function(s,a){let n=t==0?0:t/e,i=Math.floor(n)+s;n==Math.floor(n)&&i--;let o=t==0?s-1:i,r=$A.daytz().add(o,"day");return a=="day"?r.date():a=="week"?this.$L(["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"][r.day()]):r}},itemStyle(){const{mouseWidth:t,dateWidth:e,ganttWidth:s}=this;return function(a){const{start:n,end:i}=a.time,{style:o,moveX:r,moveW:l}=a;let c=$A.daytz().startOf("day").valueOf(),d=(n-c)/1e3/60/60/24,v=(i-c)/1e3/60/60/24,u=e*d+t*-1,m=Math.max(10,e*(v-d));typeof r=="number"&&(u+=r),typeof l=="number"&&(m+=l);const g={left:Math.min(Math.max(u,m*-1.2),s*1.2).toFixed(2)+"px",width:m.toFixed(2)+"px"};return u<0&&Math.abs(u)s&&ue.scrollHeight-e.clientHeight&&(s=e.scrollHeight-e.clientHeight),e.scrollTop!=s&&(this.mouseType="timeline",e.scrollTop=s)}t.deltaX!=0&&(this.mouseWidth+=t.deltaX,this.mouseScaleWidth+=t.deltaX*(100/this.dateWidth))},handleResize(){this.ganttWidth=this.$refs.ganttTimeline.clientWidth},dateTouchstart(t){this.windowPortrait&&(this.maximize=!0);let e=t.target.parentNode,s=null;for(;e&&!(!e||e===this.$refs.ganttChart);){if(e.tagName==="LI"){const a=e.getAttribute("data-id");a&&(s=this.lists.find(({id:n})=>a==n))}e=e.parentNode}if(!s){this.onDateMove(t.touches[0].clientX);return}this.onItemMove(s,t.target,t.touches[0].clientX)},dateTouchmove(t){this.onMoving(t.touches[0].clientX)},dateTouchend(){this.onMoveOver(null)},dateMouseDown(t){t.preventDefault(),this.onDateMove(t.clientX)},itemMouseDown(t,e){if(this.readonly){t.target.classList.contains("timeline-title")&&this.clickItem(e);return}t.preventDefault(),this.onItemMove(e,t.target,t.clientX)},itemMouseMove(t){(this.mouseItem!=null||this.dateMove!=null)&&(t.preventDefault(),this.onMoving(t.clientX))},itemMouseUp(t){this.onMoveOver(t.target)},onDateMove(t){this.mouseItem=null,this.dateMove={clientX:t}},onItemMove(t,e,s){if(this.readonly)return;let a="moveX";e.classList.contains("timeline-resizer")&&(a="moveW"),typeof t[a]!="number"&&this.$set(t,a,0),this.mouseBak={type:a,clientX:s,value:t[a]},this.mouseItem=t,this.dateMove=null},onMoving(t){if(this.mouseItem!=null){const e=this.mouseBak.value+(t-this.mouseBak.clientX);if(this.mouseBak.type==="moveW"){const s=864e5/this.dateWidth,{start:a,end:n}=this.mouseItem.time;let i=e*s;if(n+i-a<=0)return}this.$set(this.mouseItem,this.mouseBak.type,e);return}if(this.dateMove!=null){let e=(this.dateMove.clientX-t)*5;this.dateMove.clientX=t,this.mouseWidth+=e,this.mouseScaleWidth+=e*(100/this.dateWidth)}},onMoveOver(t){if(this.readonly){this.mouseItem=null,this.dateMove=null;return}if(this.mouseItem!=null){const{start:e,end:s}=this.mouseItem.time;let a=!1,n=864e5/this.dateWidth;if(typeof this.mouseItem.moveX=="number"&&this.mouseItem.moveX!=0){let i=this.mouseItem.moveX*n;this.$set(this.mouseItem.time,"start",e+i),this.$set(this.mouseItem.time,"end",s+i),this.$set(this.mouseItem,"moveX",0),a=!0}if(typeof this.mouseItem.moveW=="number"&&this.mouseItem.moveW!=0){let i=this.mouseItem.moveW*n;this.$set(this.mouseItem.time,"end",s+i),this.$set(this.mouseItem,"moveW",0),a=!0}a?this.$emit("on-change",this.mouseItem):t&&t.className=="timeline-title"&&this.clickItem(this.mouseItem),this.mouseItem=null;return}this.dateMove!=null&&(this.dateMove=null)},scrollPosition(t){let e=$A.daytz().startOf("day").valueOf(),s=864e5/this.dateWidth,a=(this.lists[t].time.start-e)/s-this.dateWidth-this.mouseWidth;this.mouseWidth+=a,this.mouseScaleWidth+=a*(100/this.dateWidth)},clickItem(t,e=void 0){if(e!==void 0&&this.windowPortrait){this.scrollPosition(e);return}this.$emit("on-click",t)}}},B={};var ie=x(ne,se,ae,!1,oe,null,null,null);function oe(t){for(let e in B)this[e]=B[e]}var re=function(){return ie.exports}(),le=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"project-gstc-gantt"},[s("GanttView",{attrs:{lists:t.lists,menuWidth:t.menuWidth,itemWidth:80,readonly:t.readonly},on:{"on-change":t.onChange,"on-click":t.onClick},scopedSlots:t._u([{key:"titleTool",fn:function(){return[s("Dropdown",{staticClass:"project-gstc-dropdown-filtr",attrs:{trigger:"click",transfer:""},on:{"on-click":t.onSwitchColumn}},[s("Icon",{staticClass:"project-gstc-dropdown-icon",class:{filtr:t.filtrProjectId>0},attrs:{type:"md-funnel"}}),s("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[s("DropdownItem",{class:{"dropdown-active":t.filtrProjectId==0},attrs:{name:0}},[t._v(t._s(t.$L("\u5168\u90E8")))]),t._l(t.projectColumn,function(a,n){return s("DropdownItem",{key:n,class:{"dropdown-active":t.filtrProjectId==a.id},attrs:{name:a.id}},[t._v(" "+t._s(a.name)+" "),a.tasks?s("span",[t._v("("+t._s(t.filtrLength(a.tasks))+")")]):t._e()])})],2)],1)]},proxy:!0}])}),s("div",{staticClass:"project-gstc-edit",class:{info:t.editShowInfo,visible:t.editData&&t.editData.length>0}},[s("div",{staticClass:"project-gstc-edit-info"},[s("Table",{attrs:{"max-height":"600",columns:t.editColumns,data:t.editData}}),s("div",{staticClass:"project-gstc-edit-btns"},[s("Button",{attrs:{loading:t.editLoad>0,type:"text"},on:{click:function(a){return t.editSubmit(!1)}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),s("Button",{attrs:{loading:t.editLoad>0,type:"primary"},on:{click:function(a){return t.editSubmit(!0)}}},[t._v(t._s(t.$L("\u4FDD\u5B58")))]),s("Icon",{staticClass:"zoom",attrs:{type:"md-arrow-dropright"},on:{click:function(a){t.editShowInfo=!1}}})],1)],1),s("div",{staticClass:"project-gstc-edit-small"},[s("div",{staticClass:"project-gstc-edit-text",on:{click:function(a){t.editShowInfo=!0}}},[t._v(t._s(t.$L("\u672A\u4FDD\u5B58\u8BA1\u5212\u65F6\u95F4"))+": "),t.editData?s("span",[t._v(t._s(t.editData.length))]):t._e()]),s("Button",{attrs:{loading:t.editLoad>0,size:"small",type:"text"},on:{click:function(a){return t.editSubmit(!1)}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),s("Button",{attrs:{loading:t.editLoad>0,size:"small",type:"primary"},on:{click:function(a){return t.editSubmit(!0)}}},[t._v(t._s(t.$L("\u4FDD\u5B58")))])],1)])],1)},ce=[];const de={name:"ProjectGantt",components:{GanttView:re},props:{projectColumn:{default:[]},flowInfo:{default:{}},readonly:{type:Boolean,default:!1}},data(){return{lists:[],filtrProjectId:0,editColumns:[{title:this.$L("\u4EFB\u52A1\u540D\u79F0"),key:"label",minWidth:100,ellipsis:!0},{title:this.$L("\u539F\u8BA1\u5212\u65F6\u95F4"),width:140,align:"center",render:(t,{row:e})=>e.notime===!0?t("span","-"):t("div",{style:{}},[t("div",$A.dayjs(e.baktime.start).format("YYYY-MM-DD HH:mm")),t("div",$A.dayjs(e.baktime.end).format("YYYY-MM-DD HH:mm"))])},{title:this.$L("\u65B0\u8BA1\u5212\u65F6\u95F4"),width:140,align:"center",render:(t,{row:e})=>t("div",{style:{}},[t("div",$A.dayjs(e.newTime.start).format("YYYY-MM-DD HH:mm")),t("div",$A.dayjs(e.newTime.end).format("YYYY-MM-DD HH:mm"))])}],editData:[],editLoad:0,editShowInfo:!1}},mounted(){this.initData()},computed:{...f(["taskPriority"]),...j(["projectData"]),menuWidth(){return this.windowWidth<1440?180:260},completedTask(){return this.projectData.cacheParameter.completedTask}},watch:{projectColumn:{handler(){this.initData()},deep:!0},flowInfo:{handler(){this.initData()},deep:!0},completedTask(){this.initData()}},methods:{initData(){this.lists=[],this.projectColumn&&this.projectColumn.some(this.checkAdd)},flowTask(t){return $A.leftExists(this.flowInfo.value,"user:")&&!t.task_user.find(({userid:e,owner:s})=>e===this.flowInfo.userid&&s)?!0:this.flowInfo.value>0&&t.flow_item_id!==this.flowInfo.value},filtrLength(t){return t.filter(e=>!(e.complete_at&&!this.completedTask||this.flowTask(e))).length},checkAdd(t){this.filtrProjectId>0&&t.id!=this.filtrProjectId||t.tasks&&t.tasks.some(e=>{let s=!e.start_at||!e.end_at,a=this.getTimeObj(e),n=a.start,i=a.end;if(e.complete_at&&!this.completedTask||this.flowTask(e))return!1;let o="#058ce4";this.taskPriority.some(d=>{if(d.priority===e.p_level)return o=d.color,!0});let r={start:n,end:i},l=$A.cloneJSON(r),c=this.editData.find(({id:d})=>d==e.id);c&&(r=$A.cloneJSON(c.newTime)),this.lists.push({id:e.id,label:e.name,complete:e.complete_at,overdue:e.overdue,time:r,notime:s,baktime:l,style:{background:o}})})},onChange(t){if(this.readonly)return;const{time:e,baktime:s}=t;if(Math.abs(s.end-e.end)>1e3||Math.abs(s.start-e.start)>1e3){let a=this.editData.find(({id:n})=>n==t.id);a?a.newTime=e:this.editData.push({id:t.id,label:t.label,notime:t.notime,baktime:t.baktime,newTime:e})}},onClick(t){this.$store.dispatch("openTask",t)},editSubmit(t){if(this.readonly){this.editData=[];return}this.editData&&this.editData.forEach(e=>{let s=this.lists.find(({id:a})=>a==e.id);if(t){this.editLoad++;let a=$A.dayjs(e.newTime.start).format("YYYY-MM-DD HH:mm"),n=$A.dayjs(e.newTime.end).format("YYYY-MM-DD HH:mm"),i={task_id:e.id,times:[a,n]};this.$store.dispatch("taskUpdate",i).then(({msg:o})=>{this.editLoad--,this.editLoad===0&&$A.messageSuccess(o),s&&this.$set(s,"baktime",$A.cloneJSON(s.time))}).catch(({msg:o})=>{this.editLoad--,this.editLoad===0&&$A.modalError(o),s&&this.$set(s,"time",$A.cloneJSON(s.baktime))})}else s&&this.$set(s,"time",$A.cloneJSON(s.baktime))}),this.editData=[]},getTimeObj(t){let e=t.start_at?$A.dayjs(t.start_at):$A.dayjs(t.created_at).startOf("day"),s=t.end_at?$A.dayjs(t.end_at):e.clone();return s.unix()==e.unix()&&(s=s.endOf("day")),{start:e.valueOf(),end:Math.max(s.valueOf(),e.valueOf()+6e4)}},onSwitchColumn(t){this.filtrProjectId=$A.runNum(t),this.initData()}}},N={};var xe=x(de,le,ce,!1,ue,null,null,null);function ue(t){for(let e in N)this[e]=N[e]}var pe=function(){return xe.exports}();const w=[{key:"my",title:"\u6211\u7684\u4EFB\u52A1",expandedKey:"showMy",defaultVisible:!0},{key:"help",title:"\u534F\u52A9\u7684\u4EFB\u52A1",expandedKey:"showHelp",defaultVisible:!0},{key:"undone",title:"\u672A\u5B8C\u6210\u4EFB\u52A1",expandedKey:"showUndone",defaultVisible:!0},{key:"completed",title:"\u5DF2\u5B8C\u6210\u4EFB\u52A1",expandedKey:"showCompleted"},{key:"dueThisWeek",title:"\u672C\u5468\u5230\u671F",expandedKey:"showDueThisWeek",week:0,kind:"due"},{key:"dueNextWeek",title:"\u4E0B\u5468\u5230\u671F",expandedKey:"showDueNextWeek",week:1,kind:"due"},{key:"plannedThisWeek",title:"\u672C\u5468\u6392\u671F",expandedKey:"showPlannedThisWeek",week:0,kind:"planned"},{key:"plannedNextWeek",title:"\u4E0B\u5468\u6392\u671F",expandedKey:"showPlannedNextWeek",week:1,kind:"planned"},{key:"overdue",title:"\u5DF2\u903E\u671F",expandedKey:"showOverdue",kind:"overdue"},{key:"unscheduled",title:"\u672A\u6392\u671F",expandedKey:"showUnscheduled",kind:"unscheduled"}];function he(t){const e=Array.isArray(t)?w.filter(s=>t.includes(s.key)).map(s=>s.key):[];return e.length?e:w.filter(s=>s.defaultVisible).map(s=>s.key)}function me(t){const e=t.startOf("day").subtract((t.day()+6)%7,"day");return[0,1].map(s=>({start:e.add(s*7,"day").valueOf(),end:e.add((s+1)*7,"day").valueOf()}))}function fe(t,e,s,a){if(!t.end_at)return!1;const n=a(t.end_at).valueOf();if(!Number.isFinite(n))return!1;if(s==="due")return n>=e.start&&n=e.start}function _e(t,e,s,a,n){return e.kind==="unscheduled"?!t.complete_at&&(!t.start_at||!t.end_at):e.kind==="overdue"?!t.complete_at&&!!t.end_at&&n(t.end_at).valueOf()Math.max(0,Math.min(t.scrollHeight-t.clientHeight,t.scrollTop+e.getBoundingClientRect().top-t.getBoundingClientRect().top-t.clientTop)),g=(p,h)=>t.scrollTo({top:p,left:t.scrollLeft,behavior:h}),b=()=>i&&t.isConnected&&e.isConnected&&n(),L=(p=!1)=>{if(!!i){i=!1,clearTimeout(o),clearTimeout(r);for(const h of["wheel","touchstart","pointerdown"])s.removeEventListener(h,_,!0);u.removeEventListener("keydown",I,!0),p&&t.isConnected&&g(t.scrollTop,"instant")}},_=()=>L(!0),I=p=>{var h,y;(y=(h=p.target)==null?void 0:h.closest)!=null&&y.call(h,'input, textarea, select, [contenteditable="true"]')||["ArrowUp","ArrowDown","PageUp","PageDown","Home","End"," "].includes(p.key)&&_()},S=async()=>{if(!b())return _();try{if(await a(),!b())return _();const p=Date.now(),h=m(),y=d===null||Math.abs(h-d)>1||t.scrollHeight!==v,T=Math.abs(t.scrollTop-h)<=1;if((y||!T)&&(c=p),d=h,v=t.scrollHeight,!T&&p-l>=600&&g(h,"instant"),T&&p-l>=600&&p-c>=240)return L();o=setTimeout(S,80)}catch{_()}};if(!b())return _;for(const p of["wheel","touchstart","pointerdown"])s.addEventListener(p,_,{capture:!0,passive:!0});return u.addEventListener("keydown",I,!0),r=setTimeout(_,2500),g(m(),"smooth"),o=setTimeout(S,80),_}var Te=function(){var t=this,e=this,s=e.$createElement,a=e._self._c||s;return a("div",{staticClass:"project-panel",class:[e.tabTypeActive]},[a("PageTitle",{attrs:{title:e.projectData.name}}),a("div",{staticClass:"project-titbox"},[a("div",{staticClass:"project-title"},[a("div",{staticClass:"project-back",on:{click:e.onBack}},[a("i",{staticClass:"taskfont"},[e._v("\uE676")])]),a("h1",{staticClass:"user-select-auto",domProps:{innerHTML:e._s(e.transformEmojiToHtml(e.projectData.name))},on:{click:e.showName}}),e.loading?a("div",{staticClass:"project-load"},[a("Loading")],1):e._e()]),a("ul",{staticClass:"project-icons"},[a("li",{staticClass:"project-avatar",class:{"cursor-default":!e.isOwnerOrDeputy||e.isDepartmentReadonly},on:{click:function(n){return e.projectDropdown("user")}}},[a("ul",[a("li",[a("UserAvatarTip",{attrs:{userid:e.projectData.owner_userid,size:36,borderWidth:2,openDelay:0}},[a("p",[e._v(e._s(e.$L("\u9879\u76EE\u8D1F\u8D23\u4EBA")))])]),(e.windowWidth<=980||e.projectData.cacheParameter.chat)&&e.projectUser.length>0?a("Badge",{attrs:{type:"normal","overflow-count":999,count:e.projectData.project_user.length}}):e._e()],1),e._l(e.projectUser,function(n){return!(e.windowWidth<=980||e.projectData.cacheParameter.chat)&&e.projectUser.length>0?[n.userid===-1?a("li",{staticClass:"more"},[a("ETooltip",{attrs:{disabled:e.$isEEUIApp||e.windowTouch,content:e.$L("\u5171(*)\u4E2A\u6210\u5458",e.projectData.project_user.length)}},[a("Icon",{attrs:{type:"ios-more"}})],1)],1):a("li",{class:{"is-deputy":e.isDeputyUid(n.userid)}},[a("UserAvatarTip",{attrs:{userid:n.userid,size:36,borderWidth:2,openDelay:0}},[e.isDeputyUid(n.userid)?a("p",[e._v(e._s(e.$L("\u9879\u76EE\u7BA1\u7406\u5458")))]):e._e()])],1)]:e._e()})],2)]),e.projectData.department_readonly?e._e():a("li",{staticClass:"project-icon",on:{click:function(n){return e.addTaskOpen(0)}}},[a("ETooltip",{attrs:{disabled:e.$isEEUIApp||e.windowTouch,content:e.$L("\u6DFB\u52A0\u4EFB\u52A1")}},[a("Icon",{staticClass:"menu-icon",attrs:{type:"md-add"}})],1)],1),a("li",{class:["project-icon",e.searchText!=""?"active":""]},[a("Tooltip",{attrs:{always:e.searchText!="",theme:"light",rawIndex:10},on:{"on-popper-show":e.searchFocus}},[a("Icon",{staticClass:"menu-icon",attrs:{type:"ios-search"},on:{click:e.searchFocus}}),a("div",{attrs:{slot:"content"},slot:"content"},[a("Input",{ref:"searchInput",staticClass:"search-input",attrs:{placeholder:e.$L("ID\u3001\u540D\u79F0\u3001\u63CF\u8FF0..."),clearable:""},model:{value:e.searchText,callback:function(n){e.searchText=n},expression:"searchText"}})],1)],1)],1),a("li",{class:["project-icon",e.windowLandscape&&e.projectData.cacheParameter.chat?"active":""],on:{click:function(n){return e.toggleParameter("chat")}}},[a("Icon",{staticClass:"menu-icon",attrs:{type:"ios-chatbubbles"}}),a("Badge",{staticClass:"menu-badge",attrs:{"overflow-count":999,count:e.msgUnread}})],1),a("li",{staticClass:"project-icon"},[a("EDropdown",{attrs:{trigger:"click",transfer:""},on:{command:e.projectDropdown}},[a("Icon",{staticClass:"menu-icon",attrs:{type:"ios-more"}}),e.isDepartmentReadonly?a("EDropdownMenu",{staticClass:"project-panel-project-menu-dropdown",attrs:{slot:"dropdown"},slot:"dropdown"},[a("EDropdownItem",{attrs:{command:"favorite"}},[e._v(e._s(e.$L(e.projectData.favorited?"\u53D6\u6D88\u6536\u85CF":"\u6536\u85CF\u9879\u76EE")))]),a("EDropdownItem",{attrs:{command:"log",divided:""}},[e._v(e._s(e.$L("\u9879\u76EE\u52A8\u6001")))]),a("EDropdownItem",{attrs:{command:"archived_task"}},[e._v(e._s(e.$L("\u5DF2\u5F52\u6863\u4EFB\u52A1")))]),a("EDropdownItem",{attrs:{command:"deleted_task"}},[e._v(e._s(e.$L("\u5DF2\u5220\u9664\u4EFB\u52A1")))])],1):e.isOwnerOrDeputy?a("EDropdownMenu",{staticClass:"project-panel-project-menu-dropdown",attrs:{slot:"dropdown"},slot:"dropdown"},[a("EDropdownItem",{attrs:{command:"setting"}},[e._v(e._s(e.$L("\u9879\u76EE\u8BBE\u7F6E")))]),a("EDropdownItem",{attrs:{command:"permissions"}},[e._v(e._s(e.$L("\u6743\u9650\u8BBE\u7F6E")))]),a("EDropdownItem",{attrs:{command:"task_template"}},[e._v(e._s(e.$L("\u4EFB\u52A1\u6A21\u677F")))]),a("EDropdownItem",{attrs:{command:"task_tag"}},[e._v(e._s(e.$L("\u4EFB\u52A1\u6807\u7B7E")))]),a("EDropdownItem",{attrs:{command:"workflow"}},[e._v(e._s(e.$L("\u5DE5\u4F5C\u6D41\u8BBE\u7F6E")))]),a("EDropdownItem",{attrs:{command:"user",divided:""}},[e._v(e._s(e.$L("\u6210\u5458\u7BA1\u7406")))]),a("EDropdownItem",{attrs:{command:"invite"}},[e._v(e._s(e.$L("\u9080\u8BF7\u94FE\u63A5")))]),a("EDropdownItem",{attrs:{command:"favorite",divided:""}},[e._v(e._s(e.$L(e.projectData.favorited?"\u53D6\u6D88\u6536\u85CF":"\u6536\u85CF\u9879\u76EE")))]),a("EDropdownItem",{attrs:{command:"log"}},[e._v(e._s(e.$L("\u9879\u76EE\u52A8\u6001")))]),a("EDropdownItem",{attrs:{command:"archived_task"}},[e._v(e._s(e.$L("\u5DF2\u5F52\u6863\u4EFB\u52A1")))]),a("EDropdownItem",{attrs:{command:"deleted_task"}},[e._v(e._s(e.$L("\u5DF2\u5220\u9664\u4EFB\u52A1")))]),a("EDropdownItem",{attrs:{command:"archived",divided:""}},[e._v(e._s(e.$L("\u5F52\u6863\u9879\u76EE")))]),e.canManageDeputy?[a("EDropdownItem",{attrs:{command:"transfer"}},[e._v(e._s(e.$L("\u79FB\u4EA4\u9879\u76EE")))]),a("EDropdownItem",{staticStyle:{color:"#f40"},attrs:{command:"delete"}},[e._v(e._s(e.$L("\u5220\u9664\u9879\u76EE")))])]:e._e()],2):a("EDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("EDropdownItem",{attrs:{command:"task_tag"}},[e._v(e._s(e.$L("\u4EFB\u52A1\u6807\u7B7E")))]),a("EDropdownItem",{attrs:{command:"favorite",divided:""}},[e._v(e._s(e.$L(e.projectData.favorited?"\u53D6\u6D88\u6536\u85CF":"\u6536\u85CF\u9879\u76EE")))]),a("EDropdownItem",{attrs:{command:"log"}},[e._v(e._s(e.$L("\u9879\u76EE\u52A8\u6001")))]),a("EDropdownItem",{attrs:{command:"archived_task"}},[e._v(e._s(e.$L("\u5DF2\u5F52\u6863\u4EFB\u52A1")))]),a("EDropdownItem",{attrs:{command:"deleted_task"}},[e._v(e._s(e.$L("\u5DF2\u5220\u9664\u4EFB\u52A1")))]),a("EDropdownItem",{staticStyle:{color:"#f40"},attrs:{command:"exit",divided:""}},[e._v(e._s(e.$L("\u9000\u51FA\u9879\u76EE")))])],1)],1)],1)])]),e.projectData.department_readonly?a("Alert",{staticClass:"project-readonly-alert",attrs:{type:"info","show-icon":""}},[e._v(" "+e._s(e.$L("\u5F53\u524D\u4E3A\u8D1F\u8D23\u4EBA\u89C6\u89D2\uFF1A\u4F60\u53EF\u67E5\u770B\u9879\u76EE\u548C\u4EFB\u52A1\uFF0C\u5E76\u53C2\u4E0E\u8BA8\u8BBA\uFF0C\u4F46\u4E0D\u80FD\u7F16\u8F91\u9879\u76EE\u6216\u4EFB\u52A1\u3002"))+" ")]):e._e(),a("div",{staticClass:"project-subbox"},[a("div",{staticClass:"project-subtitle user-select-auto",on:{click:e.showDesc}},[a("VMPreviewNostyle",{ref:"descPreview",attrs:{value:e.projectData.desc}})],1),a("div",{staticClass:"project-switch"},[e.completedCount>0?a("div",{staticClass:"project-checkbox"},[a("Checkbox",{attrs:{value:e.projectData.cacheParameter.completedTask},on:{"on-change":function(n){return e.toggleParameter("completedTask")}}},[e._v(e._s(e.$L("\u663E\u793A\u5DF2\u5B8C\u6210")))])],1):e._e(),a("div",{staticClass:"project-select"},[a("Cascader",{ref:"flow",attrs:{data:e.flowData,"open-trigger":e.$isEEUIApp||e.windowTouch?"click":"hover","transfer-class-name":"project-panel-flow-cascader",transfer:""},on:{"on-change":e.flowChange}},[a("span",{class:`project-flow ${e.flowInfo.status||""}`,style:e.flowInfo.style},[e._v(e._s(e.flowTitle))])])],1),e.tabTypeActive==="table"?a("ProjectTableGroupDropdown",{staticClass:"project-table-settings",attrs:{touch:e.$isEEUIApp||e.windowTouch,selected:e.visibleTableGroups},on:{change:e.setTableGroupVisible},model:{value:e.tableGroupsOpen,callback:function(n){e.tableGroupsOpen=n},expression:"tableGroupsOpen"}},[a("button",{staticClass:"project-table-settings-icon",attrs:{type:"button"}},[a("Icon",{attrs:{type:"md-funnel"}})],1)]):e._e(),a("div",{staticClass:"project-switch-button"},[a("div",{staticClass:"slider",style:e.tabTypeStyle}),a("div",{class:{active:e.tabTypeActive==="column"},on:{click:function(n){return e.tabTypeChange("column")}}},[a("i",{staticClass:"taskfont"},[e._v("\uE60C")])]),a("div",{class:{active:e.tabTypeActive==="table"},on:{click:function(n){return e.tabTypeChange("table")}}},[a("i",{staticClass:"taskfont"},[e._v("\uE66A")])]),a("div",{class:{active:e.tabTypeActive==="gantt"},on:{click:function(n){return e.tabTypeChange("gantt")}}},[a("i",{staticClass:"taskfont"},[e._v("\uE797")])])])],1)]),e.tabTypeActive==="column"?a("div",{ref:"projectColumn",staticClass:"project-column",on:{scroll:e.handleColumnScroll}},[a("Draggable",{staticClass:"column-list",attrs:{list:e.columnList,animation:150,disabled:e.sortDisabled||e.isDepartmentReadonly||e.$isEEUIApp||e.windowTouch,tag:"ul",draggable:".column-item"},on:{sort:function(n){return e.sortUpdate(!0)}}},[e._l(e.columnList,function(n){return a("li",{key:n.id,ref:`column_${n.id}`,refInFor:!0,staticClass:"column-item",attrs:{"data-id":n.id}},[a("div",{class:["column-head",n.color?"custom-color":""],style:n.color?{backgroundColor:n.color}:{}},[a("div",{staticClass:"column-head-title"},[a("AutoTip",{domProps:{innerHTML:e._s(e.transformEmojiToHtml(n.name))}}),a("em",[e._v("("+e._s(e.panelTask(n.tasks).length)+")")])],1),a("div",{staticClass:"column-head-icon"},[e.columnLoad[n.id]===!0?a("div",{staticClass:"loading"},[a("Loading")],1):e.isDepartmentReadonly?e._e():a("EDropdown",{attrs:{trigger:"click",size:"medium"},on:{command:function(i){return e.dropColumn(n,i)}}},[a("Icon",{attrs:{type:"ios-more"}}),a("EDropdownMenu",{staticClass:"project-panel-more-dropdown-menu",attrs:{slot:"dropdown"},slot:"dropdown"},[a("li",{staticClass:"project-panel-more-dropdown-warp"},[a("ul",[a("EDropdownItem",{attrs:{command:"title"}},[a("div",{staticClass:"item"},[a("Icon",{attrs:{type:"md-create"}}),e._v(e._s(e.$L("\u4FEE\u6539"))+" ")],1)]),a("EDropdownItem",{attrs:{command:"archive_completed"}},[a("div",{staticClass:"item"},[a("Icon",{attrs:{type:"ios-filing"}}),e._v(e._s(e.$L("\u5F52\u6863"))+" ")],1)]),a("EDropdownItem",{attrs:{command:"remove"}},[a("div",{staticClass:"item"},[a("Icon",{attrs:{type:"md-trash"}}),e._v(e._s(e.$L("\u5220\u9664"))+" ")],1)]),e._l(e.$store.state.columnColorList,function(i,o){return a("EDropdownItem",{key:o,attrs:{divided:o==0,command:i}},[a("div",{staticClass:"item"},[a("i",{staticClass:"taskfont",style:{color:i.color||"#ddd"},domProps:{innerHTML:e._s(i.color==n.color?"":"")}}),e._v(e._s(e.$L(i.name))+" ")])])})],2)])])],1),e.isDepartmentReadonly?e._e():a("Icon",{staticClass:"last",attrs:{type:"md-add"},on:{click:function(i){return e.addTopShow(n.id,!0)}}})],1)]),a("Scrollbar",{staticClass:"column-task",attrs:{"class-name":"task-scrollbar"},on:{"on-scroll":e.handleTaskScroll}},[!e.isDepartmentReadonly&&!!e.columnTopShow[n.id]?a("div",{staticClass:"task-item additem"},[a("TaskAddSimple",{attrs:{"column-id":n.id,"project-id":e.projectId,"add-top":!0,"auto-active":""},on:{"on-close":function(i){return e.addTopShow(n.id,!1)},"on-priority":e.addTaskOpen}})],1):e._e(),a("Draggable",{staticClass:"task-list",attrs:{list:n.tasks,animation:150,disabled:e.sortDisabled||e.isDepartmentReadonly||e.$isEEUIApp||e.windowTouch,draggable:".task-draggable",filter:".complete",group:"task"},on:{sort:e.sortUpdate,remove:e.sortUpdate}},[e._l(n.tasks,function(i){return a("div",{key:`${n.id}_${i.id}`,class:["task-item task-draggable",i.complete_at?"complete":"",e.taskIsHidden(i)?"hidden":""],style:e.$A.generateColorVarStyle(i.flow_item_color,[10],"flow-item-custom-color",e.taskItemStyle(i)),attrs:{"data-id":i.id},on:{click:function(o){return e.openTask(i)}}},[e.taskItemVisible(i)?[a("div",{class:["task-head",i.desc?"has-desc":""]},[a("div",{staticClass:"task-title"},[i.flow_item_name?a("span",{class:i.flow_item_status,on:{click:function(o){return o.stopPropagation(),e.openMenu(o,i)}}},[e._v(e._s(i.flow_item_name))]):e._e(),a("pre",[e._v(e._s(i.name))])]),a("div",{staticClass:"task-menu",on:{click:function(o){o.stopPropagation()}}},[e.isDepartmentReadonly?e._e():a("TaskMenu",{ref:`taskMenu_${i.id}`,refInFor:!0,attrs:{task:i,icon:"ios-more"}})],1)]),i.complete_at?e._e():[i.desc?a("div",{staticClass:"task-desc"},[a("pre",{domProps:{innerHTML:e._s(i.desc)}})]):e._e(),i.task_tag.length>0?a("TaskTag",{staticClass:"task-tags",attrs:{tags:i.task_tag}}):e._e(),a("div",{staticClass:"task-users"},[a("ul",[e._l(e.ownerUser(i.task_user),function(o,r){return a("li",{key:r},[a("UserAvatar",{attrs:{userid:o.userid,size:"32",borderWidth:2,borderColor:i.color}})],1)}),e.ownerUser(i.task_user).length===0?a("li",{staticClass:"no-owner"},[a("Button",{attrs:{type:"primary",size:"small",ghost:""},on:{click:function(o){return o.stopPropagation(),e.openTask(i,!0)}}},[e._v(e._s(e.$L("\u9886\u53D6\u4EFB\u52A1")))])],1):e._e()],2),i.file_num>0?a("div",{staticClass:"task-icon"},[e._v(e._s(i.file_num)),a("Icon",{attrs:{type:"ios-link-outline"}})],1):e._e(),i.msg_num>0?a("div",{staticClass:"task-icon"},[e._v(e._s(i.msg_num)),a("Icon",{attrs:{type:"ios-chatbubbles-outline"}})],1):e._e()]),a("div",{staticClass:"task-progress"},[i.sub_num>0?a("div",{staticClass:"task-sub-num"},[e._v(e._s(i.sub_complete)+"/"+e._s(i.sub_num))]):e._e(),a("Progress",{attrs:{percent:i.percent,"stroke-width":6}}),i.end_at?a("ETooltip",{class:["task-time",i.today?"today":"",i.overdue?"overdue":""],attrs:{disabled:e.$isEEUIApp||e.windowTouch,"open-delay":600,content:i.end_at}},[i.complete_at?e._e():a("div",[a("i",{staticClass:"taskfont"},[e._v("\uE71D")]),e._v(e._s(e.expiresFormat(i.end_at)))])]):e._e()],1),i.p_name?a("em",{staticClass:"priority-color",style:{backgroundColor:i.p_color}}):e._e()]]:e._e()],2)}),e.isDepartmentReadonly?e._e():a("div",{staticClass:"task-item additem"},[a("TaskAddSimple",{attrs:{"column-id":n.id,"project-id":e.projectId},on:{"on-priority":e.addTaskOpen}})],1)],2)],1)],1)}),e.isDepartmentReadonly?e._e():a("li",{class:["add-column",e.addColumnShow?"show-input":""]},[a("div",{staticClass:"add-column-text",on:{click:e.addColumnOpen}},[a("Icon",{attrs:{type:"md-add"}}),e._v(e._s(e.$L("\u6DFB\u52A0\u5217\u8868"))+" ")],1),a("div",{staticClass:"add-column-input"},[a("Input",{ref:"addColumnName",attrs:{placeholder:e.$L("\u5217\u8868\u540D\u79F0\uFF0C\u56DE\u8F66\u521B\u5EFA"),clearable:""},on:{"on-blur":e.addColumnBlur,"on-keydown":e.onAddColumnKeydown,"on-clear":function(n){e.addColumnShow=!1}},model:{value:e.addColumnName,callback:function(n){e.addColumnName=n},expression:"addColumnName"}})],1)])],2)],1):e.tabTypeActive==="table"?a("Scrollbar",{ref:"projectTableScroll",staticClass:"project-table",attrs:{"enable-x":""},on:{"on-scroll":e.handleTaskScroll}},[a("div",{staticClass:"project-table-head"},[a("Row",{staticClass:"task-row"},[a("Col",{attrs:{span:"12"}},[a("div",{staticClass:"ellipsis"},[e._v("# "+e._s(e.$L("\u4EFB\u52A1\u540D\u79F0")))])]),a("Col",{attrs:{span:"3"}},[a("div",{staticClass:"ellipsis"},[e._v(e._s(e.$L("\u5217\u8868")))])]),a("Col",{attrs:{span:"3"}},[a("div",{staticClass:"sort",on:{click:function(n){return e.onSort("level")}}},[a("div",{staticClass:"head-title"},[e._v(e._s(e.$L("\u4F18\u5148\u7EA7")))]),a("div",{staticClass:"head-sort"},[a("Icon",{class:{on:e.sortField=="level"&&e.sortType=="asc"},attrs:{type:"md-arrow-dropup"}}),a("Icon",{class:{on:e.sortField=="level"&&e.sortType=="desc"},attrs:{type:"md-arrow-dropdown"}})],1)])]),a("Col",{attrs:{span:"3"}},[a("div",{staticClass:"ellipsis"},[e._v(e._s(e.$L("\u8D1F\u8D23\u4EBA")))])]),a("Col",{attrs:{span:"3"}},[a("div",{staticClass:"sort",on:{click:function(n){return e.onSort("end_at")}}},[a("div",{staticClass:"head-title"},[e._v(e._s(e.$L("\u5230\u671F\u65F6\u95F4")))]),a("div",{staticClass:"head-sort"},[a("Icon",{class:{on:e.sortField=="end_at"&&e.sortType=="asc"},attrs:{type:"md-arrow-dropup"}}),a("Icon",{class:{on:e.sortField=="end_at"&&e.sortType=="desc"},attrs:{type:"md-arrow-dropdown"}})],1)])])],1)],1),e.visibleTableGroups.includes("my")?a("div",{class:["project-table-body",e.projectData.cacheParameter.showMy?"":"project-table-hide"],attrs:{"data-table-group":"my"}},[a("Row",{staticClass:"task-row"},[a("Col",{staticClass:"row-title",attrs:{span:"12"}},[a("i",{staticClass:"taskfont",on:{click:function(n){return e.toggleParameter("showMy")}}},[e._v("\uE689")]),a("div",{staticClass:"row-h1"},[e._v(e._s(e.$L("\u6211\u7684\u4EFB\u52A1")))]),a("div",{staticClass:"row-num"},[e._v("("+e._s(e.myList.length)+")")])]),a("Col",{attrs:{span:"3"}}),a("Col",{attrs:{span:"3"}}),a("Col",{attrs:{span:"3"}}),a("Col",{attrs:{span:"3"}})],1),e.projectData.cacheParameter.showMy?a("TaskRow",{attrs:{list:e.transforTasks(e.myList),"task-visibilitys":e.taskRowVisibilitys,readonly:e.isDepartmentReadonly,"open-key":"my","fast-add-task":""},on:{"on-priority":e.addTaskOpen}}):e._e(),e.projectData.cacheParameter.showMy&&!e.myList.length?a("div",{staticClass:"project-table-empty"},[e._v(e._s(e.$L("\u6682\u65E0\u4EFB\u52A1")))]):e._e()],1):e._e(),e.visibleTableGroups.includes("help")?a("div",{class:["project-table-body",e.projectData.cacheParameter.showHelp?"":"project-table-hide"],attrs:{"data-table-group":"help"}},[a("Row",{staticClass:"task-row"},[a("Col",{staticClass:"row-title",attrs:{span:"12"}},[a("i",{staticClass:"taskfont",on:{click:function(n){return e.toggleParameter("showHelp")}}},[e._v("\uE689")]),a("div",{staticClass:"row-h1"},[e._v(e._s(e.$L("\u534F\u52A9\u7684\u4EFB\u52A1")))]),a("div",{staticClass:"row-num"},[e._v("("+e._s(e.helpList.length)+")")])]),a("Col",{attrs:{span:"3"}}),a("Col",{attrs:{span:"3"}}),a("Col",{attrs:{span:"3"}}),a("Col",{attrs:{span:"3"}})],1),e.projectData.cacheParameter.showHelp?a("TaskRow",{attrs:{list:e.helpList,"task-visibilitys":e.taskRowVisibilitys,readonly:e.isDepartmentReadonly,"open-key":"help"},on:{"on-priority":e.addTaskOpen}}):e._e(),e.projectData.cacheParameter.showHelp&&!e.helpList.length?a("div",{staticClass:"project-table-empty"},[e._v(e._s(e.$L("\u6682\u65E0\u4EFB\u52A1")))]):e._e()],1):e._e(),e.visibleTableGroups.includes("undone")?a("div",{class:["project-table-body",e.projectData.cacheParameter.showUndone?"":"project-table-hide"],attrs:{"data-table-group":"undone"}},[a("Row",{staticClass:"task-row"},[a("Col",{staticClass:"row-title",attrs:{span:"12"}},[a("i",{staticClass:"taskfont",on:{click:function(n){return e.toggleParameter("showUndone")}}},[e._v("\uE689")]),a("div",{staticClass:"row-h1"},[e._v(e._s(e.$L("\u672A\u5B8C\u6210\u4EFB\u52A1")))]),a("div",{staticClass:"row-num"},[e._v("("+e._s(e.unList.length)+")")])]),a("Col",{attrs:{span:"3"}}),a("Col",{attrs:{span:"3"}}),a("Col",{attrs:{span:"3"}}),a("Col",{attrs:{span:"3"}})],1),e.projectData.cacheParameter.showUndone?a("TaskRow",{attrs:{list:e.unList,"task-visibilitys":e.taskRowVisibilitys,readonly:e.isDepartmentReadonly,"open-key":"undone"},on:{"on-priority":e.addTaskOpen}}):e._e(),e.projectData.cacheParameter.showUndone&&!e.unList.length?a("div",{staticClass:"project-table-empty"},[e._v(e._s(e.$L("\u6682\u65E0\u4EFB\u52A1")))]):e._e()],1):e._e(),e.visibleTableGroups.includes("completed")?a("div",{class:["project-table-body",e.projectData.cacheParameter.showCompleted?"":"project-table-hide"],attrs:{"data-table-group":"completed"}},[a("Row",{staticClass:"task-row"},[a("Col",{staticClass:"row-title",attrs:{span:"12"}},[a("i",{staticClass:"taskfont",on:{click:function(n){return e.toggleParameter("showCompleted")}}},[e._v("\uE689")]),a("div",{staticClass:"row-h1"},[e._v(e._s(e.$L("\u5DF2\u5B8C\u6210\u4EFB\u52A1")))]),a("div",{staticClass:"row-num"},[e._v("("+e._s(e.completedList.length)+")")])]),a("Col",{attrs:{span:"3"}}),a("Col",{attrs:{span:"3"}}),a("Col",{attrs:{span:"3"}}),a("Col",{attrs:{span:"3"}},[a("div",{staticClass:"ellipsis"},[e._v(e._s(e.projectData.cacheParameter.showCompleted?e.$L("\u5B8C\u6210\u65F6\u95F4"):""))])])],1),e.projectData.cacheParameter.showCompleted?a("TaskRow",{attrs:{list:e.completedList,"task-visibilitys":e.taskRowVisibilitys,readonly:e.isDepartmentReadonly,"open-key":"completed",showCompleteAt:""},on:{"on-priority":e.addTaskOpen}}):e._e(),e.projectData.cacheParameter.showCompleted&&!e.completedList.length?a("div",{staticClass:"project-table-empty"},[e._v(e._s(e.$L("\u6682\u65E0\u4EFB\u52A1")))]):e._e()],1):e._e(),e._l(e.additionalTableGroups,function(n){return a("div",{key:n.key,class:["project-table-body",e.projectData.cacheParameter[n.expandedKey]?"":"project-table-hide"],attrs:{"data-table-group":n.key}},[a("Row",{staticClass:"task-row"},[a("Col",{staticClass:"row-title",attrs:{span:"12"}},[a("i",{staticClass:"taskfont",on:{click:function(i){return e.toggleParameter(n.expandedKey)}}},[e._v("\uE689")]),a("div",{staticClass:"row-h1"},[e._v(e._s(e.$L(n.title)))]),a("div",{staticClass:"row-num"},[e._v("("+e._s(n.tasks.length)+")")])]),a("Col",{attrs:{span:"3"}}),a("Col",{attrs:{span:"3"}}),a("Col",{attrs:{span:"3"}}),a("Col",{attrs:{span:"3"}})],1),e.projectData.cacheParameter[n.expandedKey]?a("TaskRow",{attrs:{list:n.tasks,"task-visibilitys":e.taskRowVisibilitys,readonly:e.isDepartmentReadonly,"open-key":n.key},on:{"on-priority":e.addTaskOpen}}):e._e(),e.projectData.cacheParameter[n.expandedKey]&&!n.tasks.length?a("div",{staticClass:"project-table-empty"},[e._v(e._s(e.$L("\u6682\u65E0\u4EFB\u52A1")))]):e._e()],1)})],2):e.tabTypeActive==="gantt"?a("div",{staticClass:"project-gantt"},[a("ProjectGantt",{attrs:{projectColumn:e.columnList,flowInfo:e.flowInfo,readonly:e.isDepartmentReadonly}})],1):e._e(),a("DrawerOverlay",{attrs:{placement:"right",size:720,"class-name":"project-setting-drawer","mask-closable":!1},scopedSlots:e._u([{key:"title",fn:function(){return[e._v(e._s(e.$L("\u9879\u76EE\u8BBE\u7F6E")))]},proxy:!0}]),model:{value:e.settingShow,callback:function(n){e.settingShow=n},expression:"settingShow"}},[a("Form",e._b({staticClass:"project-setting-content",attrs:{model:e.settingData},nativeOn:{submit:function(n){n.preventDefault()}}},"Form",e.formOptions,!1),[a("FormItem",{attrs:{prop:"name",label:e.$L("\u9879\u76EE\u540D\u79F0")}},[a("Input",{attrs:{type:"text",maxlength:32,placeholder:e.$L("\u5FC5\u586B")},model:{value:e.settingData.name,callback:function(n){e.$set(e.settingData,"name",n)},expression:"settingData.name"}})],1),a("FormItem",{attrs:{prop:"desc",label:e.$L("\u9879\u76EE\u4ECB\u7ECD")}},[a("Input",{ref:"projectDesc",attrs:{type:"textarea",autosize:{minRows:3,maxRows:5},maxlength:255,placeholder:`${e.$L("\u9009\u586B")} (${e.$L("\u652F\u6301 Markdown \u683C\u5F0F")})`},model:{value:e.settingData.desc,callback:function(n){e.$set(e.settingData,"desc",n)},expression:"settingData.desc"}})],1),a("FormItem",{attrs:{label:e.$L("\u81EA\u52A8\u5F52\u6863"),prop:"archive_method"}},[a("RadioGroup",{attrs:{value:e.settingData.archive_method},on:{"on-change":e.formArchived}},[a("Radio",{attrs:{label:"system"}},[e._v(e._s(e.$L("\u7CFB\u7EDF\u9ED8\u8BA4")))]),a("Radio",{attrs:{label:"custom"}},[e._v(e._s(e.$L("\u81EA\u5B9A\u4E49")))])],1),e.settingData.archive_method==="system"?a("div",{staticClass:"form-tip"},[e._v(e._s(e.$L("\u6839\u636E\u7CFB\u7EDF\u8BBE\u7F6E\u7684\u81EA\u52A8\u5F52\u6863\u89C4\u5219\u6267\u884C")))]):e.settingData.archive_method=="custom"?[a("div",{staticClass:"form-tip"},[e._v(e._s(e.$L("\u4EFB\u52A1\u5B8C\u6210(*)\u5929\u540E\u81EA\u52A8\u5F52\u6863\u3002",e.settingData.archive_days||"n")))]),a("div",{staticClass:"setting-auto-day"},[a("Input",{attrs:{type:"number"},model:{value:e.settingData.archive_days,callback:function(n){e.$set(e.settingData,"archive_days",n)},expression:"settingData.archive_days"}},[a("span",{attrs:{slot:"append"},slot:"append"},[e._v(e._s(e.$L("[day_unit].\u5929")))])])],1)]:e._e()],2),e.aiVisible?a("FormItem",{attrs:{label:e.$L("AI\u4EFB\u52A1\u5206\u6790"),prop:"ai_auto_analyze"}},[a("RadioGroup",{model:{value:e.settingData.ai_auto_analyze,callback:function(n){e.$set(e.settingData,"ai_auto_analyze",n)},expression:"settingData.ai_auto_analyze"}},[a("Radio",{attrs:{label:"open",disabled:e.systemConfig.task_ai_auto_analyze==="close"}},[e._v(e._s(e.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[e._v(e._s(e.$L("\u5173\u95ED")))])],1),e.systemConfig.ai_auto_analyze==="close"?a("div",{staticClass:"form-tip"},[e._v(e._s(e.$L("\u7CFB\u7EDF\u5DF2\u5173\u95EDAI\u4EFB\u52A1\u5206\u6790\u529F\u80FD\u3002")))]):e.settingData.ai_auto_analyze==="open"?a("div",{staticClass:"form-tip"},[e._v(e._s(e.$L("\u65B0\u5EFA\u4EFB\u52A1\u540EAI\u81EA\u52A8\u5206\u6790\u5E76\u7ED9\u51FA\u5EFA\u8BAE\u3002")))]):a("div",{staticClass:"form-tip"},[e._v(e._s(e.$L("\u5173\u95ED\u540E\u672C\u9879\u76EE\u5C06\u4E0D\u518D\u81EA\u52A8\u5206\u6790\u4EFB\u52A1\u3002")))])],1):e._e(),a("FormItem",{attrs:{label:e.$L("\u5171\u4EAB\u6A21\u677F"),prop:"task_template_share"}},[a("RadioGroup",{model:{value:e.settingData.task_template_share,callback:function(n){e.$set(e.settingData,"task_template_share",n)},expression:"settingData.task_template_share"}},[a("Radio",{attrs:{label:"open"}},[e._v(e._s(e.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[e._v(e._s(e.$L("\u5173\u95ED")))])],1),e.settingData.task_template_share==="open"?a("div",{staticClass:"form-tip"},[e._v(e._s(e.$L("\u5F00\u542F\u540E\uFF0C\u6DFB\u52A0\u4EFB\u52A1\u65F6\u53EF\u4F7F\u7528\u5176\u4ED6\u9879\u76EE\u5171\u4EAB\u7684\u4EFB\u52A1\u6A21\u677F\u3002")))]):a("div",{staticClass:"form-tip"},[e._v(e._s(e.$L("\u5173\u95ED\u540E\uFF0C\u6DFB\u52A0\u4EFB\u52A1\u65F6\u4EC5\u52A0\u8F7D\u672C\u9879\u76EE\u6A21\u677F\uFF0C\u4E0D\u663E\u793A\u5176\u4ED6\u9879\u76EE\u5171\u4EAB\u6A21\u677F\u3002")))])],1),e.systemConfig.department_owner_project_view==="open"?a("FormItem",{attrs:{label:e.$L("\u8D1F\u8D23\u4EBA\u89C6\u89D2"),prop:"department_owner_view"}},[a("RadioGroup",{model:{value:e.settingData.department_owner_view,callback:function(n){e.$set(e.settingData,"department_owner_view",n)},expression:"settingData.department_owner_view"}},[a("Radio",{attrs:{label:"open"}},[e._v(e._s(e.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[e._v(e._s(e.$L("\u5173\u95ED")))])],1),e.settingData.department_owner_view==="open"?a("div",{staticClass:"form-tip"},[e._v(e._s(e.$L("\u5F00\u542F\u540E\uFF0C\u90E8\u95E8\u8D1F\u8D23\u4EBA\u53EF\u53EA\u8BFB\u67E5\u770B\u672C\u9879\u76EE\u53CA\u5176\u5168\u5458\u53EF\u89C1\u4EFB\u52A1\u3002")))]):a("div",{staticClass:"form-tip"},[e._v(e._s(e.$L("\u5173\u95ED\u540E\uFF0C\u672C\u9879\u76EE\u53CA\u5176\u7FA4\u804A\u5BF9\u90E8\u95E8\u8D1F\u8D23\u4EBA\u89C6\u89D2\u9690\u85CF\u3002")))])],1):e._e()],1),a("div",{staticClass:"project-setting-footer"},[a("Button",{attrs:{type:"default"},on:{click:function(n){e.settingShow=!1}}},[e._v(e._s(e.$L("\u53D6\u6D88")))]),a("Button",{attrs:{type:"primary",loading:e.settingLoad>0},on:{click:e.onSetting}},[e._v(e._s(e.$L("\u4FDD\u5B58")))])],1)],1),a("DrawerOverlay",{attrs:{placement:"right",size:800},model:{value:e.permissionShow,callback:function(n){e.permissionShow=n},expression:"permissionShow"}},[e.permissionShow?a("ProjectPermission",{ref:"permission",attrs:{"project-id":e.projectId},on:{close:function(){t.permissionShow=!1}}}):e._e()],1),a("Modal",{attrs:{title:e.$L("\u6210\u5458\u7BA1\u7406"),"mask-closable":!1},model:{value:e.userShow,callback:function(n){e.userShow=n},expression:"userShow"}},[a("Form",e._b({attrs:{model:e.userData},nativeOn:{submit:function(n){n.preventDefault()}}},"Form",e.formOptions,!1),[e.canManageDeputy?a("FormItem",{attrs:{prop:"deputy_userids",label:e.$L("\u9879\u76EE\u7BA1\u7406\u5458")}},[a("UserSelect",{attrs:{uncancelable:e.deputyRowUncancelable,disabledChoice:e.deputyRowDisabledChoice,multiple:!0,"multiple-max":20,title:e.$L("\u9009\u62E9\u9879\u76EE\u7BA1\u7406\u5458")},model:{value:e.userData.deputy_userids,callback:function(n){e.$set(e.userData,"deputy_userids",n)},expression:"userData.deputy_userids"}})],1):e._e(),a("FormItem",{attrs:{prop:"userids",label:e.$L("\u9879\u76EE\u6210\u5458")}},[a("UserSelect",{attrs:{uncancelable:e.memberRowUncancelable,"multiple-max":100,title:e.$L("\u9009\u62E9\u9879\u76EE\u6210\u5458")},model:{value:e.userData.userids,callback:function(n){e.$set(e.userData,"userids",n)},expression:"userData.userids"}})],1)],1),a("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{type:"default"},on:{click:function(n){e.userShow=!1}}},[e._v(e._s(e.$L("\u53D6\u6D88")))]),e.userWaitRemove.length>0||e.deputyWaitDemote.length>0?a("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":e.onUser}},[a("div",{attrs:{slot:"title"},slot:"title"},[a("p",[a("strong",[e._v(e._s(e.$L("\u8BF7\u786E\u8BA4\u4EE5\u4E0B\u64CD\u4F5C\uFF0C\u6CE8\u610F\u6B64\u64CD\u4F5C\u4E0D\u53EF\u9006\uFF01")))])]),e.userWaitRemove.length>0?[a("p",[e._v(e._s(e.$L("\u79FB\u9664\u6210\u5458\u8D1F\u8D23\u7684\u4EFB\u52A1\u5C06\u53D8\u6210\u65E0\u8D1F\u8D23\u4EBA\u3002")))]),a("ul",{staticClass:"project-panel-wait-remove"},[a("li",[e._v(e._s(e.$L("\u5373\u5C06\u79FB\u9664"))+"\uFF1A")]),e._l(e.userWaitRemove,function(n){return a("li",{key:"r"+n},[a("UserAvatar",{attrs:{userid:n,size:20,showName:""}})],1)})],2)]:e._e(),e.deputyWaitDemote.length>0?a("ul",{staticClass:"project-panel-wait-remove"},[a("li",[e._v(e._s(e.$L("\u5373\u5C06\u7F62\u514D\u9879\u76EE\u7BA1\u7406\u5458"))+"\uFF1A")]),e._l(e.deputyWaitDemote,function(n){return a("li",{key:"d"+n},[a("UserAvatar",{attrs:{userid:n,size:20,showName:""}})],1)})],2):e._e()],2),a("Button",{attrs:{type:"primary",loading:e.userLoad>0}},[e._v(e._s(e.$L("\u4FDD\u5B58")))])],1):a("Button",{attrs:{type:"primary",loading:e.userLoad>0},on:{click:e.onUser}},[e._v(e._s(e.$L("\u4FDD\u5B58")))])],1)],1),a("Modal",{attrs:{title:e.$L("\u9080\u8BF7\u94FE\u63A5"),"mask-closable":!1},model:{value:e.inviteShow,callback:function(n){e.inviteShow=n},expression:"inviteShow"}},[a("Form",e._b({attrs:{model:e.inviteData},nativeOn:{submit:function(n){n.preventDefault()}}},"Form",e.formOptions,!1),[a("FormItem",{attrs:{label:e.$L("\u94FE\u63A5\u5730\u5740")}},[a("Input",{ref:"inviteInput",attrs:{type:"textarea",rows:3,readonly:""},on:{"on-focus":e.inviteFocus},model:{value:e.inviteData.url,callback:function(n){e.$set(e.inviteData,"url",n)},expression:"inviteData.url"}}),a("div",{staticClass:"form-tip"},[e._v(" "+e._s(e.$L("\u53EF\u901A\u8FC7\u6B64\u94FE\u63A5\u76F4\u63A5\u52A0\u5165\u9879\u76EE\u3002"))+" "),a("Poptip",{attrs:{confirm:"",placement:"bottom","ok-text":e.$L("\u786E\u5B9A"),"cancel-text":e.$L("\u53D6\u6D88"),transfer:""},on:{"on-ok":function(n){return e.inviteGet(!0)}}},[a("div",{attrs:{slot:"title"},slot:"title"},[a("p",[a("strong",[e._v(e._s(e.$L("\u6CE8\u610F\uFF1A\u5237\u65B0\u5C06\u5BFC\u81F4\u539F\u6765\u7684\u9080\u8BF7\u94FE\u63A5\u5931\u6548\uFF01")))])])]),a("a",{attrs:{href:"javascript:void(0)"}},[e._v(e._s(e.$L("\u5237\u65B0\u94FE\u63A5")))])])],1)],1)],1),a("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{type:"default"},on:{click:function(n){e.inviteShow=!1}}},[e._v(e._s(e.$L("\u53D6\u6D88")))]),a("Button",{attrs:{type:"primary",loading:e.inviteLoad>0},on:{click:e.inviteCopy}},[e._v(e._s(e.$L("\u590D\u5236")))])],1)],1),a("Modal",{attrs:{title:e.$L("\u79FB\u4EA4\u9879\u76EE"),"mask-closable":!1},model:{value:e.transferShow,callback:function(n){e.transferShow=n},expression:"transferShow"}},[a("Form",e._b({attrs:{model:e.transferData},nativeOn:{submit:function(n){n.preventDefault()}}},"Form",e.formOptions,!1),[a("FormItem",{attrs:{prop:"owner_userid",label:e.$L("\u65B0\u9879\u76EE\u8D1F\u8D23\u4EBA")}},[a("UserSelect",{attrs:{"multiple-max":1,title:e.$L("\u9009\u62E9\u9879\u76EE\u8D1F\u8D23\u4EBA")},model:{value:e.transferData.owner_userid,callback:function(n){e.$set(e.transferData,"owner_userid",n)},expression:"transferData.owner_userid"}})],1)],1),a("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{type:"default"},on:{click:function(n){e.transferShow=!1}}},[e._v(e._s(e.$L("\u53D6\u6D88")))]),a("Button",{attrs:{type:"primary",loading:e.transferLoad>0},on:{click:e.onTransfer}},[e._v(e._s(e.$L("\u79FB\u4EA4")))])],1)],1),a("DrawerOverlay",{attrs:{placement:"right",size:720},model:{value:e.taskTemplateShow,callback:function(n){e.taskTemplateShow=n},expression:"taskTemplateShow"}},[e.taskTemplateShow?a("ProjectTaskTemplate",{ref:"taskTemplate",attrs:{"project-id":e.projectId}}):e._e()],1),a("DrawerOverlay",{attrs:{placement:"right",beforeClose:e.taskTagBeforeClose,size:720},model:{value:e.taskTagShow,callback:function(n){e.taskTagShow=n},expression:"taskTagShow"}},[e.taskTagShow?a("ProjectTaskTag",{ref:"taskTag",attrs:{"project-id":e.projectId}}):e._e()],1),a("DrawerOverlay",{attrs:{placement:"right",beforeClose:e.workflowBeforeClose,size:1280},model:{value:e.workflowShow,callback:function(n){e.workflowShow=n},expression:"workflowShow"}},[e.workflowShow?a("ProjectWorkflow",{ref:"workflow",attrs:{"project-id":e.projectId}}):e._e()],1),a("DrawerOverlay",{attrs:{placement:"right",size:720},model:{value:e.logShow,callback:function(n){e.logShow=n},expression:"logShow"}},[e.logShow?a("ProjectLog",{attrs:{"project-id":e.projectId}}):e._e()],1),a("DrawerOverlay",{attrs:{placement:"right",size:1180},model:{value:e.archivedTaskShow,callback:function(n){e.archivedTaskShow=n},expression:"archivedTaskShow"}},[e.archivedTaskShow?a("TaskArchived",{attrs:{"project-id":e.projectId}}):e._e()],1),a("DrawerOverlay",{attrs:{placement:"right",size:1180},model:{value:e.deletedTaskShow,callback:function(n){e.deletedTaskShow=n},expression:"deletedTaskShow"}},[e.deletedTaskShow?a("TaskDeleted",{attrs:{"project-id":e.projectId}}):e._e()],1)],1)},Ce=[];const De={name:"ProjectPanel",components:{VMPreviewNostyle:X,UserAvatarTip:ot,UserSelect:q,TaskMenu:J,ProjectTaskTag:St,ProjectTaskTemplate:Rt,ProjectWorkflow:Vt,ProjectPermission:Jt,DrawerOverlay:rt,ProjectLog:at,TaskArchived:Tt,TaskRow:gt,Draggable:k,TaskAddSimple:tt,TaskPriority:H,TaskDeleted:ee,TaskTag:Y,ProjectGantt:pe,ProjectTableGroupDropdown:we},data(){return{loading:!1,nowTime:$A.dayjs().unix(),nowInterval:null,tableToday:$A.daytz().format("YYYY-MM-DD"),tableGroupsOpen:!1,columnLoad:{},columnTopShow:{},sortField:"end_at",sortType:"desc",searchText:"",addColumnShow:!1,addColumnLoad:!1,addColumnName:"",sortData:[],sortDisabled:!1,settingShow:!1,settingData:{},settingLoad:0,permissionShow:!1,permissionShowData:{},permissionShowLoad:0,userShow:!1,userData:{},userLoad:0,inviteShow:!1,inviteData:{},inviteLoad:0,transferShow:!1,transferData:{},transferLoad:0,taskTemplateShow:!1,taskTagShow:!1,workflowShow:!1,logShow:!1,archivedTaskShow:!1,deletedTaskShow:!1,flowInfo:{},flowList:[],columnVisibilitys:{},taskVisibilitys:{},taskRowVisibilitys:{}}},mounted(){this.nowInterval=setInterval(()=>{this.nowTime=$A.dayjs().unix(),this.tableToday=$A.daytz().format("YYYY-MM-DD")},1e3)},destroyed(){this.cancelTableGroupScroll(),clearInterval(this.nowInterval)},computed:{...f(["cacheDialogs","projectId","projectLoad","cacheTasks","cacheColumns","taskCompleteTemps","cacheUserBasic","formOptions","systemConfig"]),...j(["aiVisible","projectData","transforTasks"]),tabTypeActive(){return this.projectData.cacheParameter.menuType},tableGroupOptions(){return w},visibleTableGroups(){return he(this.projectData.cacheParameter.tableGroups)},tableWeekRanges(){return me($A.dayjs(this.tableToday))},additionalTableGroups(){const t=this.tableGroupOptions.filter(a=>a.kind&&this.visibleTableGroups.includes(a.key));if(!t.length)return[];const e=this.panelTask(this.parentTask),s=t.some(a=>a.kind==="overdue")?$A.daytz(this.nowTime).valueOf():0;return t.map(a=>({...a,tasks:e.filter(n=>_e(n,a,this.tableWeekRanges,s,$A.dayjs)).sort((n,i)=>(this.sortType==="asc"&&([n,i]=[i,n]),this.sortField==="level"||n.end_at===i.end_at?$A.sortFloat(n.p_level,i.p_level):$A.sortDay(n.end_at||"2099-12-31 23:59:59",i.end_at||"2099-12-31 23:59:59")))}))},tabTypeStyle(){const t={};switch(this.tabTypeActive){case"column":t.left="0";break;case"table":t.left="33.33%";break;case"gantt":t.left="66.66%";break;default:t.display="none"}return t},userWaitRemove(){const{userids:t,useridbak:e}=this.userData;if(!t)return[];let s=[];return e.some(a=>{t.includes(a)||s.push(a)}),s},deputyWaitDemote(){const{deputy_userids:t=[],deputy_useridbak:e=[]}=this.userData;return e.filter(s=>!t.includes(s))},msgUnread(){const{cacheDialogs:t,projectData:e}=this,s=t.find(({id:a})=>a===e.dialog_id);return $A.getDialogNum(s)},panelTask(){const{searchText:t,flowInfo:e}=this;return function(s){return this.projectData.cacheParameter.completedTask||(s=s.filter(({complete_at:a})=>!a)),$A.leftExists(e.value,"user:")?s=s.filter(({task_user:a})=>a.find(({userid:n,owner:i})=>n===e.userid&&i)):$A.leftExists(e.value,"tag:")?s=s.filter(({task_tag:a})=>a.find(({name:n})=>n===e.tag_name)):e.value>0?s=s.filter(({flow_item_id:a})=>a===e.value):e.value==-1&&(s=s.filter(({start_at:a})=>!a)),t&&(s=s.filter(({id:a,name:n,desc:i})=>a==t||$A.strExists(`${n} ${i}`,t))),s}},canManageDeputy(){var t;return((t=this.projectData)==null?void 0:t.owner_userid)===this.userId},isDepartmentReadonly(){var t;return!!((t=this.projectData)!=null&&t.department_readonly)},isOwnerOrDeputy(){return this.isDepartmentReadonly||!this.projectData?!1:this.projectData.owner_userid===this.userId?!0:(this.projectData.deputy_userids||[]).includes(this.userId)},memberRowUncancelable(){if(!this.projectData)return[];const t=this.userData&&Array.isArray(this.userData.deputy_userids)?this.userData.deputy_userids:this.projectData.deputy_userids||[];return[this.projectData.owner_userid,...t]},deputyRowUncancelable(){return this.projectData?[this.projectData.owner_userid]:[]},deputyRowDisabledChoice(){return this.projectData?[this.projectData.owner_userid]:[]},projectMemberUserids(){return(this.projectData.project_user||[]).map(({userid:t})=>t)},projectUser(){const{projectData:t,windowWidth:e}=this;if(!t.project_user)return[];const s=e>1200?8:3,a=t.deputy_userids||[],n=t.project_user.filter(({userid:o})=>o!=t.owner_userid).slice().sort((o,r)=>{const l=a.includes(o.userid)?0:1,c=a.includes(r.userid)?0:1;return l-c});if(n.length<=s)return n;const i=n.slice(0,s-1);return i.push({userid:-1}),i.push(n[n.length-1]),i},allTask(){const{cacheTasks:t,projectId:e}=this;return t.filter(s=>s.archived_at||!s.created_at?!1:s.project_id==e)},parentTask(){const{allTask:t}=this;return t.filter(e=>e.parent_id==0)},columnList(){const{projectId:t,cacheColumns:e,allTask:s}=this,a=$A.cloneJSON(e).filter(({project_id:n})=>n==t).sort((n,i)=>n.sort!=i.sort?$A.sortFloat(n.sort,i.sort):n.id-i.id);return a.forEach(n=>{n.tasks=this.transforTasks(s.filter(i=>i.column_id==n.id)).sort((i,o)=>i.complete_at||o.complete_at?$A.sortDay(i.complete_at,o.complete_at):i.sort!=o.sort?$A.sortFloat(i.sort,o.sort):i.id-o.id)}),a},myList(){const{allTask:t,taskCompleteTemps:e,sortField:s,sortType:a}=this;let n=t.filter(i=>this.myFilter(i));if(e.length>0){let i=t.filter(o=>e.includes(o.id)&&this.myFilter(o,!1));i.length>0&&(n=$A.cloneJSON(n),n.push(...i))}return n.sort((i,o)=>{if(a=="asc"&&([i,o]=[o,i]),s=="level")return $A.sortFloat(i.p_level,o.p_level);if(s=="end_at")return i.end_at==o.end_at?$A.sortFloat(i.p_level,o.p_level):$A.sortDay(i.end_at||"2099-12-31 23:59:59",o.end_at||"2099-12-31 23:59:59")})},helpList(){const{allTask:t,taskCompleteTemps:e,sortField:s,sortType:a}=this;let n=t.filter(i=>this.helpFilter(i));if(e.length>0){let i=t.filter(o=>e.includes(o.id)&&this.helpFilter(o,!1));i.length>0&&(n=$A.cloneJSON(n),n.push(...i))}return n.sort((i,o)=>{if(a=="asc"&&([i,o]=[o,i]),s=="level")return $A.sortFloat(i.p_level,o.p_level);if(s=="end_at")return i.end_at==o.end_at?$A.sortFloat(i.p_level,o.p_level):$A.sortDay(i.end_at||"2099-12-31 23:59:59",o.end_at||"2099-12-31 23:59:59")})},unList(){const{allTask:t,searchText:e,sortField:s,sortType:a}=this;return t.filter(i=>i.parent_id>0||this.flowTask(i)||e&&i.id!=e&&!$A.strExists(i.name,e)&&!$A.strExists(i.desc,e)?!1:!i.complete_at).sort((i,o)=>{if(a=="asc"&&([i,o]=[o,i]),s=="level")return $A.sortFloat(i.p_level,o.p_level);if(s=="end_at")return i.end_at==o.end_at?$A.sortFloat(i.p_level,o.p_level):$A.sortDay(i.end_at||"2099-12-31 23:59:59",o.end_at||"2099-12-31 23:59:59")})},completedList(){const{allTask:t,searchText:e}=this;return t.filter(a=>a.parent_id>0||this.flowTask(a)||e&&a.id!=e&&!$A.strExists(a.name,e)&&!$A.strExists(a.desc,e)?!1:a.complete_at).sort((a,n)=>$A.sortDay(n.complete_at,a.complete_at))},completedCount(){const{allTask:t}=this;return t.filter(e=>e.parent_id>0?!1:e.complete_at).length},tagList(){const t=[];return this.allTask.forEach(({task_tag:e})=>{e.forEach(s=>{t.find(a=>a.name===s.name)||t.push(s)})}),t},flowTitle(){const{flowInfo:t,flowData:e,allTask:s}=this;if(t.value==-1)return t.label;if(t.value){const a=e.find(n=>n.value===t.value);return a?a.label:t.label}return`${this.$L("\u5168\u90E8")} (${s.length})`},flowData(){const{flowList:t,allTask:e,cacheUserBasic:s}=this,a=[{value:0,label:`${this.$L("\u5168\u90E8")} (${e.length})`,children:[]}];a.push({value:-1,label:`${this.$L("\u672A\u8BA1\u5212")} (${e.filter(({start_at:o,complete_at:r})=>!o&&!r).length})`,children:[]});const n=t.map(o=>({value:o.id,label:o.name,status:o.status,children:o.project_flow_item.map(r=>{const l=e.filter(({flow_item_id:c})=>c==r.id).length;return{value:r.id,label:`${r.name} (${l})`,status:r.status,class:r.status,style:$A.generateColorVarStyle(r.color,[10],"flow-item-custom-color")}})}));if(n.length===1?a.push(...n[0].children):n.length>0&&a.push(...n),this.tagList.length>0){const o=this.tagList.map(({name:r,color:l})=>{const c=e.filter(({task_tag:d})=>d.find(v=>v.name===r)).length;return{value:`tag:${r}`,label:`${r} (${c})`,status:"tag-dot",style:{"--bg-color":l},tag_name:r,length:c}});o.length>0&&a.push(...o.map((r,l)=>(r.class=`tag-dot tag-${l}`,r)))}const{project_user:i}=this.projectData;if($A.isArray(i)){const o=i.map(r=>{const l=s.find(({userid:d})=>d===r.userid)||{},c=e.filter(({task_user:d,complete_at:v})=>!this.projectData.cacheParameter.completedTask&&v?!1:d.find(({userid:u,owner:m})=>u===r.userid&&m)).length;return{value:`user:${l.userid}`,label:`${l.nickname} (${c})`,status:"user",userid:l.userid||0,length:c}}).filter(({userid:r,length:l})=>r>0&&l>0);o.length>0&&(o.sort(r=>r.userid==this.userId?-1:1),a.push(...o.map((r,l)=>(r.class=`user-${l}`,r))))}return a}},watch:{tabTypeActive(t){t!=="table"&&(this.tableGroupsOpen=!1,this.cancelTableGroupScroll())},additionalTableGroups(){this.handleColumnDebounce()},visibleTableGroups(){this._tableGroupScroll&&!this.visibleTableGroups.includes(this._tableGroupScroll.key)&&this.cancelTableGroupScroll(),this.handleColumnDebounce()},projectId:{handler(t){this.cancelTableGroupScroll(),this.tableGroupsOpen=!1,t>0&&(this.getFlowData(),this.handleColumnDebounce())},immediate:!0},"columnList.length"(){this.handleColumnDebounce()},"parentTask.length"(){this.handleColumnDebounce()},"projectData.task_num"(){this.handleColumnDebounce()},searchText(){this.handleColumnDebounce(!0)},windowWidth(){this.handleColumnDebounce(100)},"userData.deputy_userids"(t){if(!Array.isArray(t)||!Array.isArray(this.userData.userids))return;const e=t.filter(s=>!this.userData.userids.includes(s));e.length>0&&(this.userData.userids=[...this.userData.userids,...e])},projectData(t,e){this.sortData=this.getSort(),t&&t.id&&(!e||t.id!==e.id)&&this.checkProjectFavoriteStatus()},projectLoad(t){this._loadTimeout&&clearTimeout(this._loadTimeout),t>0?this._loadTimeout=setTimeout(()=>{this.loading=!0},1e3):this.loading=!1}},methods:{transformEmojiToHtml:Z,showName(){this.windowLandscape||$A.modalInfo({language:!1,title:this.$L("\u9879\u76EE\u540D\u79F0"),content:this.projectData.name})},showDesc(){this.windowLandscape||$A.modalInfo({language:!1,title:this.$L("\u9879\u76EE\u63CF\u8FF0"),content:this.$refs.descPreview.$el.innerHTML})},searchFocus(){this.$nextTick(()=>{this.$refs.searchInput.focus({cursor:"end"})})},getSort(){const t=[];return this.columnList.forEach(e=>{t.push({id:e.id,task:e.tasks.map(({id:s})=>s)})}),t},sortUpdate(t){if(this.isDepartmentReadonly)return;const e=this.sortData,s=this.getSort();if(JSON.stringify(e)===JSON.stringify(s))return;this.sortData=s;const a={project_id:this.projectId,sort:this.sortData,only_column:t===!0?1:0};this.sortDisabled=!0,this.$store.dispatch("call",{url:"project/sort",data:a,method:"post"}).then(({msg:n})=>{$A.messageSuccess(n),this.sortDisabled=!1;let i,o=[];a.only_column?(i=-1,a.sort.forEach(r=>{i++,o.push({id:r.id,sort:i})}),this.$store.dispatch("saveColumn",o)):(a.sort.forEach(r=>{i=-1,o.push(...r.task.map(l=>(i++,o.push(...this.allTask.filter(c=>c.parent_id==l).map(({id:c})=>({id:c,sort:i,column_id:r.id}))),{id:l,sort:i,column_id:r.id})))}),this.$store.dispatch("saveTask",o))}).catch(({msg:n})=>{$A.modalError(n),this.sortDisabled=!1,this.$store.dispatch("getTaskForProject",this.projectId).catch(()=>{})}).finally(n=>{this.handleColumnDebounce()})},addTopShow(t,e){this.isDepartmentReadonly||this.$set(this.columnTopShow,t,e)},addTaskOpen(t){this.isDepartmentReadonly||D.emit("addTask",t)},addColumnOpen(){this.isDepartmentReadonly||(this.addColumnShow=!0,this.$nextTick(()=>{this.$refs.addColumnName.focus()}))},addColumnBlur(){this.addColumnName===""&&(this.addColumnShow=!1)},onAddColumnKeydown(t){t.isComposing||t.key==="Process"||t.keyCode===229||t.keyCode===13&&this.addColumnSubmit()},addColumnSubmit(){let t=this.addColumnName.trim();t===""||this.addColumnLoad||(this.addColumnLoad=!0,this.$store.dispatch("call",{url:"project/column/add",data:{project_id:this.projectId,name:t},spinner:600}).then(({data:e,msg:s})=>{$A.messageSuccess(s),this.addColumnName="",this.$store.dispatch("saveColumn",e)}).catch(({msg:e})=>{$A.modalError(e)}).finally(()=>{this.addColumnLoad=!1}))},dropColumn(t,e){this.isDepartmentReadonly||(e==="title"?this.titleColumn(t):e==="archive_completed"?this.archiveColumnCompletedTasks(t):e==="remove"?this.removeColumn(t):e.name&&this.updateColumn(t,{color:e.color}).catch(s=>{$A.modalError(s)}))},titleColumn(t){$A.modalInput({value:t.name,title:"\u4FEE\u6539\u5217\u8868",placeholder:"\u8F93\u5165\u5217\u8868\u540D\u79F0",onOk:e=>e?this.updateColumn(t,{name:e}):"\u5217\u8868\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"})},updateColumn(t,e){return new Promise((s,a)=>{if(this.columnLoad[t.id]===!0){s();return}this.$set(this.columnLoad,t.id,!0),Object.keys(e).forEach(n=>this.$set(t,n,e[n])),this.$store.dispatch("call",{url:"project/column/update",data:Object.assign(e,{column_id:t.id})}).then(({data:n})=>{this.$set(this.columnLoad,t.id,!1),this.$store.dispatch("saveColumn",n),s()}).catch(({msg:n})=>{this.$set(this.columnLoad,t.id,!1),this.$store.dispatch("getColumns",this.projectId).catch(()=>{}),a(n)})})},archiveColumnCompletedTasks(t){const e=this.getColumnCompletedTasks(t);if(e.length===0){$A.messageWarning("\u5F53\u524D\u5217\u8868\u6CA1\u6709\u53EF\u5F52\u6863\u7684\u5DF2\u5B8C\u6210\u4EFB\u52A1");return}$A.modalConfirm({title:"\u5F52\u6863\u5DF2\u5B8C\u6210\u4EFB\u52A1",content:`\u4F60\u786E\u5B9A\u5C06\u5217\u8868\u3010${t.name}\u3011\u4E2D\u6240\u6709\u5DF2\u5B8C\u6210\u7684\u4EFB\u52A1\u5F52\u6863\u5417\uFF1F`,loading:!0,onOk:()=>new Promise((s,a)=>{this.batchArchiveTasks(e).then(()=>{$A.messageSuccess("\u5DF2\u5F52\u6863\u5217\u8868\u4E2D\u6240\u6709\u5DF2\u5B8C\u6210\u4EFB\u52A1"),s()}).catch(({msg:n})=>{$A.modalError(n||"\u5F52\u6863\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5"),a()})})})},getColumnCompletedTasks(t){return!t||!Array.isArray(t.tasks)?[]:t.tasks.filter(e=>e&&e.complete_at&&!e.archived_at)},batchArchiveTasks(t){const e=(s=0)=>{if(s>=t.length)return Promise.resolve();const a=t[s];return this.$store.dispatch("archivedTask",{task_id:a.id}).then(()=>(this.$store.dispatch("saveTaskBrowse",a.id),e(s+1)))};return e()},removeColumn(t){$A.modalConfirm({title:"\u5220\u9664\u5217\u8868",content:"\u4F60\u786E\u5B9A\u8981\u5220\u9664\u5217\u8868\u3010"+t.name+"\u3011\u53CA\u5217\u8868\u5185\u7684\u4EFB\u52A1\u5417\uFF1F",loading:!0,onOk:()=>{if(this.columnLoad[t.id]!==!0)return this.$set(this.columnLoad,t.id,!0),new Promise((e,s)=>{this.$store.dispatch("removeColumn",t.id).then(({msg:a})=>{e(a)}).catch(({msg:a})=>{s(a)}).finally(a=>{this.$set(this.columnLoad,t.id,!1)})})}})},onSort(t){this.sortField=t,this.sortType=this.sortType=="desc"?"asc":"desc",this.handleColumnDebounce()},onSetting(){this.settingLoad++,this.$store.dispatch("call",{url:"project/update",data:Object.assign(this.settingData,{project_id:this.projectId})}).then(({data:t,msg:e})=>{$A.messageSuccess(e),this.settingShow=!1,this.$store.dispatch("saveProject",t)}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.settingLoad--})},onUser(){this.userLoad++;const t=(this.userData.userids||[]).slice(),e=(this.userData.deputy_userids||[]).slice(),s=Array.from(new Set([...t,...e])),a={project_id:this.projectId,userid:s};this.canManageDeputy&&(a.deputy_userid=e),this.$store.dispatch("call",{url:"project/user",data:a}).then(({msg:n})=>{$A.messageSuccess(n),this.userShow=!1,this.$store.dispatch("getProjectOne",this.projectId).catch(()=>{}),this.$store.dispatch("getTaskForProject",this.projectId).catch(()=>{})}).catch(({msg:n})=>{$A.modalError(n)}).finally(n=>{this.userLoad--})},onTransfer(){this.transferLoad++,this.$store.dispatch("call",{url:"project/transfer",data:{project_id:this.projectId,owner_userid:this.transferData.owner_userid[0]}}).then(({msg:t})=>{$A.messageSuccess(t),this.transferShow=!1,this.$store.dispatch("getProjectOne",this.projectId).catch(()=>{}),this.$store.dispatch("getTaskForProject",this.projectId).catch(()=>{})}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.transferLoad--})},onArchived(){$A.modalConfirm({title:"\u5F52\u6863\u9879\u76EE",content:"\u4F60\u786E\u5B9A\u8981\u5F52\u6863\u9879\u76EE\u3010"+this.projectData.name+"\u3011\u5417\uFF1F",loading:!0,onOk:()=>new Promise((t,e)=>{this.$store.dispatch("archivedProject",this.projectId).then(({msg:s})=>{t(s)}).catch(({msg:s})=>{e(s)})})})},onDelete(){$A.modalConfirm({title:"\u5220\u9664\u9879\u76EE",content:"\u4F60\u786E\u5B9A\u8981\u5220\u9664\u9879\u76EE\u3010"+this.projectData.name+"\u3011\u5417\uFF1F",loading:!0,onOk:()=>new Promise((t,e)=>{this.$store.dispatch("removeProject",this.projectId).then(({msg:s})=>{t(s)}).catch(({msg:s})=>{e(s)})})})},onExit(){$A.modalConfirm({title:"\u9000\u51FA\u9879\u76EE",content:"\u4F60\u786E\u5B9A\u8981\u9000\u51FA\u9879\u76EE\u3010"+this.projectData.name+"\u3011\u5417\uFF1F",loading:!0,onOk:()=>new Promise((t,e)=>{this.$store.dispatch("exitProject",this.projectId).then(({msg:s})=>{t(s)}).catch(({msg:s})=>{e(s)})})})},projectDropdown(t){if(!(this.isDepartmentReadonly&&!["favorite","log","archived_task","deleted_task"].includes(t)))switch(t){case"favorite":this.toggleProjectFavorite();break;case"setting":Object.assign(this.settingData,{name:this.projectData.name,desc:this.projectData.desc,archive_method:this.projectData.archive_method,archive_days:this.projectData.archive_days,ai_auto_analyze:this.projectData.ai_auto_analyze||"open",task_template_share:this.projectData.task_template_share||"open",department_owner_view:this.projectData.department_owner_view||"open"}),this.settingShow=!0,this.$nextTick(()=>{setTimeout(this.$refs.projectDesc.resizeTextarea,0)});break;case"permissions":this.permissionShow=!0;break;case"user":if(this.isDepartmentReadonly||!this.isOwnerOrDeputy)return;const e=this.projectData.project_user.map(({userid:a})=>a),s=[...this.projectData.deputy_userids||[]];this.$set(this.userData,"userids",e),this.$set(this.userData,"useridbak",e),this.$set(this.userData,"deputy_userids",s),this.$set(this.userData,"deputy_useridbak",s),this.userShow=!0;break;case"invite":this.inviteData={},this.inviteShow=!0,this.inviteGet();break;case"task_template":this.taskTemplateShow=!0;break;case"task_tag":this.taskTagShow=!0;break;case"workflow":this.workflowShow=!0;break;case"log":this.logShow=!0;break;case"archived_task":this.archivedTaskShow=!0;break;case"deleted_task":this.deletedTaskShow=!0;break;case"transfer":this.$set(this.transferData,"owner_userid",[]),this.transferShow=!0;break;case"archived":this.onArchived();break;case"delete":this.onDelete();break;case"exit":this.onExit();break}},isPrimaryOwnerUid(t){return t===this.projectData.owner_userid},isDeputyUid(t){return(this.projectData.deputy_userids||[]).includes(t)},openTask(t,e){this.$store.dispatch("openTask",t),!this.isDepartmentReadonly&&e===!0&&setTimeout(()=>{D.emit("receiveTask",!0)},300)},openMenu(t,e){const s=this.$refs[`taskMenu_${e.id}`];s&&s[0].handleClick(t)},taskIsHidden(t){const{id:e,name:s,desc:a,complete_at:n}=t,{searchText:i}=this;return!!(!this.projectData.cacheParameter.completedTask&&n||this.flowTask(t)||i&&e!=i&&!$A.strExists(`${s} ${a}`,i))},ownerUser(t){return t.filter(({owner:e})=>e==1).sort((e,s)=>e.id-s.id)},inviteGet(t){this.inviteLoad++,this.$store.dispatch("call",{url:"project/invite",data:{project_id:this.projectId,refresh:t===!0?"yes":"no"}}).then(({data:e})=>{this.inviteData=e,this.inviteCopy()}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.inviteLoad--})},getFlowData(){this.flowInfo={},this.$store.dispatch("call",{url:"project/flow/list",data:{project_id:this.projectId}}).then(({data:t})=>{var e;this.flowList=t,(e=this.$refs.flow)==null||e.clearSelect()}).catch(()=>{this.flowList=[]})},flowChange(t,e){this.flowInfo=e.pop()||{},this.flowInfo.status==="end"&&!this.projectData.cacheParameter.completedTask&&this.toggleParameter("completedTask"),this.handleColumnDebounce(!0)},inviteCopy(){!this.inviteData.url||(this.inviteFocus(),this.copyText(this.inviteData.url))},inviteFocus(){this.$nextTick(t=>{this.$refs.inviteInput.focus({cursor:"all"})})},async taskTagBeforeClose(){this.$store.dispatch("getTaskForProject",this.projectId).catch(()=>{})},workflowBeforeClose(){return new Promise(t=>{if(!this.$refs.workflow){t();return}if(!this.$refs.workflow.existDiff()){t();return}$A.modalConfirm({content:"\u8BBE\u7F6E\u5C1A\u672A\u4FDD\u5B58\uFF0C\u662F\u5426\u653E\u5F03\u4FEE\u6539\uFF1F",cancelText:"\u53D6\u6D88",okText:"\u653E\u5F03",onOk:()=>{t()}})})},myFilter(t,e=!0){return!this.projectData.cacheParameter.completedTask&&e===!0&&t.complete_at||this.flowTask(t)||this.searchText&&t.id!=this.searchText&&!$A.strExists(t.name,this.searchText)&&!$A.strExists(t.desc,this.searchText)?!1:t.owner==1},helpFilter(t,e=!0){return t.parent_id>0||!this.projectData.cacheParameter.completedTask&&e===!0&&t.complete_at||this.flowTask(t)||this.searchText&&t.id!=this.searchText&&!$A.strExists(t.name,this.searchText)&&!$A.strExists(t.desc,this.searchText)?!1:t.task_user&&t.task_user.find(({userid:s,owner:a})=>s==this.userId&&a==0)},flowTask(t){return $A.leftExists(this.flowInfo.value,"user:")&&!t.task_user.find(({userid:e,owner:s})=>e===this.flowInfo.userid&&s)||$A.leftExists(this.flowInfo.value,"tag:")&&!t.task_tag.find(({name:e})=>e===this.flowInfo.tag_name)||this.flowInfo.value>0&&t.flow_item_id!==this.flowInfo.value?!0:!!(this.flowInfo.value==-1&&t.start_at)},expiresFormat(t){return $A.countDownFormat(this.nowTime,t)},setTableGroupVisible(t,e){const s=this.visibleTableGroups;if(!e&&s.length===1&&s.includes(t.key))return;const a=e?this.tableGroupOptions.filter(n=>n.key===t.key||s.includes(n.key)).map(n=>n.key):s.filter(n=>n!==t.key);this.toggleParameter({project_id:this.projectId,key:e?{tableGroups:a,[t.expandedKey]:!0}:{tableGroups:a}}),e?this.scrollToTableGroup(t.key):this.cancelTableGroupScroll()},cancelTableGroupScroll(){var t,e;(e=(t=this._tableGroupScroll)==null?void 0:t.cancel)==null||e.call(t),this._tableGroupScroll=null},scrollToTableGroup(t){this.cancelTableGroupScroll();const e=this.projectId,s={key:t};this._tableGroupScroll=s;const a=()=>this._tableGroupScroll===s&&this.projectId===e&&this.tabTypeActive==="table"&&this.visibleTableGroups.includes(t);this.$nextTick(()=>{if(!a())return;const n=this.$refs.projectTableScroll,i=n==null?void 0:n.scrollElement(),o=i==null?void 0:i.querySelector(`[data-table-group="${t}"]`);!o||(s.cancel=be({container:i,target:o,inputRoot:n.$el,isActive:a,render:async()=>{await this.handleTaskScroll({target:i}),await this.$nextTick()}}))})},tabTypeChange(t){switch(t){case"column":this.toggleParameter({project_id:this.projectId,key:"menuType",value:"column"});break;case"table":this.toggleParameter({project_id:this.projectId,key:"menuType",value:"table"});break;case"gantt":this.toggleParameter({project_id:this.projectId,key:"menuType",value:"gantt"});break}},toggleParameter(t){if(t==="chat"){this.$store.dispatch("openDialog",this.projectData.dialog_id);return}t==="completedTask"&&this.$store.dispatch("forgetTaskCompleteTemp",!0),this.$store.dispatch("toggleProjectParameter",t),this.handleColumnDebounce()},onBack(){const{name:t,params:e}=this.$store.state.routeHistoryLast;t===this.routeName&&/^\d+$/.test(e.projectId)?this.goForward({name:this.routeName,params:{projectId:"all"}}):this.goBack()},formArchived(t){this.settingData={...this.settingData,archive_method:t}},taskItemVisible({id:t,column_id:e}){var s;return this.columnVisibilitys[e]&&((s=this.taskVisibilitys[t])==null?void 0:s.visible)},taskItemStyle({id:t,column_id:e,complete_at:s,color:a}){var i;const n={};return a&&(n.backgroundColor=a),this.taskItemVisible({id:t,column_id:e})||(n.height=(((i=this.taskVisibilitys[t])==null?void 0:i.height)||(s?46:146))+"px"),n},handleColumnDebounce(t=10,e=!1){typeof t=="boolean"&&(e=t,t=10),this.columnDebounceWait!==t&&(this.columnDebounceWait=t,this.columnDebounceInvoke&&(this.columnDebounceInvoke.cancel(),this.columnDebounceInvoke=null)),this.columnDebounceInvoke||(this.columnDebounceInvoke=et.exports.debounce(s=>{this.$nextTick(a=>{var n;switch(this.tabTypeActive){case"column":this.handleColumnScroll(),s===!0&&requestAnimationFrame(()=>{const i=this.$refs.projectColumn;i&&!i.querySelector(".task-head")&&$A.scrollIntoViewIfNeeded(i.querySelector(".task-draggable:not(.hidden)"))});break;case"table":this.handleTaskScroll({target:(n=this.$refs.projectTableScroll)==null?void 0:n.$el});break}})},t)),this.columnDebounceInvoke(e)},handleColumnScroll(){this.columnList.forEach(({id:t})=>{const e=this.$refs[`column_${t}`];e&&this.checkColumnVisibility(e[0])})},checkColumnVisibility(t=null){if(!t)return;const e=t.getAttribute("data-id");if(!e)return;const s=this.$refs.projectColumn;if(!s)return!1;const a=s.getBoundingClientRect(),n=t.getBoundingClientRect(),i=n.lefta.left&&n.topa.top;i&&this.handleTaskScroll({target:t.querySelector(".task-scrollbar")}),this.$set(this.columnVisibilitys,e,i)},async handleTaskScroll({target:t}){var n;if(!t)return;const e=t.querySelectorAll(".task-item");if(!e.length)return;let s=null;switch(this.tabTypeActive){case"column":s="taskVisibilitys";break;case"table":s="taskRowVisibilitys";break;default:return}const a=t.getBoundingClientRect();for(const i of e){const o=i.getAttribute("data-id");if(!o)continue;const r=i.getBoundingClientRect(),l=((n=this[s][o])==null?void 0:n.visible)||!1,c=r.top>=a.top-r.height&&r.bottom<=a.bottom+r.height;if(c===l)continue;const d=this[s][o]===void 0&&c;this.$set(this[s],o,{visible:c,height:r.height}),d&&await this.$nextTick()}},toggleProjectFavorite(){!this.projectData.id||this.$store.dispatch("toggleFavorite",{type:"project",id:this.projectData.id}).then(({data:t})=>{this.$set(this.projectData,"favorited",t.favorited)})},checkProjectFavoriteStatus(){!this.projectData.id||this.$store.dispatch("checkFavoriteStatus",{type:"project",id:this.projectData.id}).then(({data:t})=>{this.$set(this.projectData,"favorited",t.favorited||!1)}).catch(()=>{this.$set(this.projectData,"favorited",!1)})}}},G={};var je=x(De,Te,Ce,!1,Le,null,null,null);function Le(t){for(let e in G)this[e]=G[e]}var Ie=function(){return je.exports}(),Se=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"project-list"},[s("PageTitle",{attrs:{title:t.$L("\u9879\u76EE")}}),s("div",{staticClass:"list-search"},[s("div",{staticClass:"search-wrapper"},[s("div",{staticClass:"search-pre"},[t.loadProjects>0?s("Loading"):s("Icon",{attrs:{type:"ios-search"}})],1),s("Form",{staticClass:"search-form",attrs:{action:"javascript:void(0)"},nativeOn:{submit:function(a){return a.preventDefault(),t.$A.eeuiAppKeyboardHide.apply(null,arguments)}}},[s("Input",{attrs:{type:"search",placeholder:t.$L(t.loadProjects>0?"\u66F4\u65B0\u4E2D...":"\u641C\u7D22"),clearable:""},model:{value:t.projectKeyValue,callback:function(a){t.projectKeyValue=a},expression:"projectKeyValue"}})],1)],1),t.ownerViewAvailable?s("div",{staticClass:"owner-view-button",on:{click:function(a){t.departmentOwnerViewShow=!0}}},[s("i",{staticClass:"taskfont"},[t._v("\uE75C")]),t.departmentOwnerProjectViewEnabled?s("em",[t._v(t._s(t.ownerDepartmentIds.length))]):t._e()]):t._e()]),s("div",{staticClass:"owner-project-wrapper"},[t.ownerProjectTabsVisible?s("div",{staticClass:"owner-project-tabs"},t._l(t.ownerProjectTabs,function(a){return s("div",{key:a.type,class:["owner-project-tab",t.ownerProjectTab===a.type?"active":""],attrs:{title:t.$L(a.name)},on:{click:function(n){t.ownerProjectTab=a.type}}},[s("span",[t._v(t._s(t.$L(a.name)))]),s("Badge",{attrs:{"overflow-count":999,count:a.count}})],1)}),0):t._e()]),s("Draggable",{directives:[{name:"longpress",rawName:"v-longpress",value:t.handleLongpress,expression:"handleLongpress"}],attrs:{list:t.projectDraggableList,animation:150,disabled:!(t.isDragging&&!t.projectKeyValue)||t.ownerProjectTabsVisible,tag:"ul","item-key":"id",draggable:"li:not(.pinned)",handle:".item-sort"},on:{start:function(a){t.projectDragging=!0},end:t.onProjectSortEnd},nativeOn:{scroll:function(a){return t.onScroll.apply(null,arguments)},touchstart:function(a){return t.onTouchStart.apply(null,arguments)}}},[t._l(t.projectDraggableList,function(a){return s("li",{key:a.id,class:[{operate:a.id==t.operateItem.id&&t.operateVisible},a.top_at?"pinned":""],attrs:{"data-id":a.id},on:{pointerdown:t.handleOperation,click:function(n){return t.toggleRoute("project",{projectId:a.id})}}},[s("div",{staticClass:"project-item"},[s("div",{staticClass:"item-left"},[s("div",{staticClass:"project-h1"},[s("div",{staticClass:"project-name",domProps:{innerHTML:t._s(t.transformEmojiToHtml(a.name))}}),a.department_readonly&&a.personal?s("ETooltip",{attrs:{content:t.$L("\u4E2A\u4EBA\u9879\u76EE\uFF0C\u53EA\u8BFB\u67E5\u770B"),placement:"right"}},[s("UserAvatar",{staticClass:"readonly-owner-avatar",attrs:{userid:a.userid,size:18}})],1):a.department_readonly?s("ETooltip",{attrs:{content:t.$L("\u8D1F\u8D23\u4EBA\u89C6\u89D2\uFF0C\u53EA\u8BFB\u67E5\u770B"),placement:"right"}},[s("i",{staticClass:"taskfont readonly-project-avatar"},[t._v("\uE75C")])]):t._e(),a.top_at?s("div",{staticClass:"icon-top"}):t._e(),a.task_my_num-a.task_my_complete>0?s("div",{staticClass:"num"},[t._v(t._s(a.task_my_num-a.task_my_complete))]):t._e()],1),s("div",{staticClass:"project-h2"},[t._v(" "+t._s(a.desc)+" ")])]),a.task_num>0?s("div",{staticClass:"item-right",on:{click:function(n){return n.stopPropagation(),t.modalPercent(a)}}},[s("iCircle",{attrs:{type:"circle","trail-color":"rgba(132, 197, 106, 0.2)","trail-width":7,"stroke-color":a.task_percent===100?"rgba(132, 197, 106, 0)":"#84C56A","stroke-width":7,percent:a.task_percent,size:44}},[a.task_percent===100?s("Icon",{attrs:{type:"ios-checkmark"}}):s("span",{staticClass:"percent-text"},[t._v(t._s(a.task_percent)+"%")])],1)],1):t._e(),s("div",{directives:[{name:"show",rawName:"v-show",value:t.isDragging&&!t.projectKeyValue&&!a.top_at,expression:"isDragging && !projectKeyValue && !item.top_at"}],staticClass:"item-sort",on:{click:function(n){return n.stopPropagation(),t.handleDragTip.apply(null,arguments)}}},[s("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}},[s("path",{attrs:{d:"M3 12h18"}}),s("path",{attrs:{d:"M3 18h18"}}),s("path",{attrs:{d:"M3 6h18"}})])])])])}),t.projectLists.length===0?[t.projectKeyLoading>0||t.departmentOwnerProjectsRefreshing?s("li",{staticClass:"loading"},[s("Loading")],1):s("li",{staticClass:"nothing"},[t._v(" "+t._s(t.$L(t.projectKeyValue?`\u6CA1\u6709\u4EFB\u4F55\u4E0E"${t.projectKeyValue}"\u76F8\u5173\u7684\u7ED3\u679C`:"\u6CA1\u6709\u4EFB\u4F55\u9879\u76EE"))+" ")])]:t._e()],2),s("div",{directives:[{name:"transfer-dom",rawName:"v-transfer-dom"},{name:"show",rawName:"v-show",value:t.operateVisible,expression:"operateVisible"}],staticClass:"operate-position",style:t.operateStyles,attrs:{"data-transfer":!0}},[s("Dropdown",{attrs:{trigger:"custom",placement:t.windowLandscape?"bottom":"top",visible:t.operateVisible,transfer:""},on:{"on-clickoutside":function(a){t.operateVisible=!1}}},[s("div",{style:{userSelect:t.operateVisible?"none":"auto",height:t.operateStyles.height}}),s("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[s("DropdownItem",{nativeOn:{click:function(a){return t.handleTopClick.apply(null,arguments)}}},[t._v(" "+t._s(t.$L(t.operateItem.top_at?"\u53D6\u6D88\u7F6E\u9876":"\u7F6E\u9876\u8BE5\u9879\u76EE"))+" ")]),s("DropdownItem",{nativeOn:{click:function(a){return t.handleChatClick.apply(null,arguments)}}},[t._v(" "+t._s(t.$L("\u9879\u76EE\u8BA8\u8BBA"))+" ")]),!t.projectKeyValue&&!t.operateItem.top_at&&!t.ownerProjectTabsVisible?s("DropdownItem",{nativeOn:{click:function(a){t.isDragging=!t.isDragging}}},[t._v(" "+t._s(t.$L(t.isDragging?"\u9000\u51FA\u6392\u5E8F":"\u8C03\u6574\u6392\u5E8F"))+" ")]):t._e()],1)],1)],1),s("DepartmentOwnerView",{model:{value:t.departmentOwnerViewShow,callback:function(a){t.departmentOwnerViewShow=a},expression:"departmentOwnerViewShow"}})],1)},Ae=[];const Pe={name:"ProjectList",components:{Draggable:k,DepartmentOwnerView:lt},directives:{longpress:nt,TransferDom:it},data(){return{projectKeyValue:"",projectKeyLoading:0,operateStyles:{},operateVisible:!1,operateItem:{},isDragging:!1,projectDraggableList:[],projectDragging:!1,ownerProjectTab:"mine",departmentOwnerViewShow:!1}},computed:{...f(["cacheProjects","loadProjects","longpressData","userInfo","systemConfig","cacheDepartmentOwnerIds","departmentOwnerProjectsRefreshing","departmentOwnerProjectViewEnabled"]),managedDepartments(){return(this.userInfo.managed_departments||[]).map(t=>({...t,id:parseInt(t.id)}))},ownerViewAvailable(){return this.systemConfig.department_owner_project_view==="open"&&this.managedDepartments.length>0},ownerDepartmentIds(){return this.cacheDepartmentOwnerIds||[]},projectBaseLists(){const{projectKeyValue:t,cacheProjects:e}=this,s=$A.cloneJSON(e).sort((a,n)=>{if(a.top_at!==n.top_at&&(a.top_at||n.top_at))return $A.sortDay(n.top_at,a.top_at);const i=typeof a.sort=="number"?a.sort:Number.MAX_SAFE_INTEGER,o=typeof n.sort=="number"?n.sort:Number.MAX_SAFE_INTEGER;return i!==o?i-o:n.id-a.id});return t?s.filter(a=>$A.strExists(`${a.name} ${a.desc}`,t)):s},ownerProjectTabsVisible(){return this.ownerViewAvailable&&this.departmentOwnerProjectViewEnabled},ownerProjectTabs(){return[{type:"mine",name:"\u6211\u7684\u9879\u76EE",count:this.projectBaseLists.filter(t=>!t.department_readonly).length},{type:"readonly",name:"\u8D1F\u8D23\u4EBA\u89C6\u89D2",count:this.projectBaseLists.filter(t=>t.department_readonly).length}]},projectLists(){return this.ownerProjectTabsVisible?this.projectBaseLists.filter(t=>this.ownerProjectTab==="readonly"?t.department_readonly:!t.department_readonly):this.projectBaseLists}},watch:{ownerProjectTabs:{handler(t){if(!this.ownerProjectTabsVisible){this.ownerProjectTab="mine";return}const e=t.find(s=>s.type===this.ownerProjectTab);if(!e||e.count===0){const s=t.find(a=>a.count>0);s&&(this.ownerProjectTab=s.type)}},immediate:!0},projectLists:{handler(t){this.projectDragging||(this.projectDraggableList=$A.cloneJSON(t))},immediate:!0},projectKeyValue(t){if(t!=""){if($A.loadVConsole(t)){this.projectKeyValue="";return}this.projectKeyLoading++,setTimeout(()=>{this.projectKeyValue==t&&this.searchProject(),this.projectKeyLoading--},600)}},projectDragging(t){t?this.$el.parentElement.style.overflow="hidden":this.$el.parentElement.style.overflow=null}},methods:{transformEmojiToHtml:Z,onProjectSortEnd(){const t=this.projectDraggableList.filter(e=>!e.top_at);this.$store.dispatch("call",{url:"project/user/sort",data:{list:t.map(e=>e.id)},method:"post",spinner:2e3}).then(({msg:e})=>{t.forEach((s,a)=>{this.$store.dispatch("saveProject",{id:s.id,sort:a})}),$A.messageSuccess(e)}).catch(({msg:e})=>{this.projectDraggableList=$A.cloneJSON(this.projectLists),$A.modalError(e)}).finally(()=>{this.projectDragging=!1})},searchProject(){this.projectKeyLoading++,this.$store.dispatch("getProjects",{keys:{name:this.projectKeyValue}}).finally(t=>{this.projectKeyLoading--})},toggleRoute(t,e){this.operateVisible||this.goForward({name:"manage-"+t,params:e||{}})},onTouchStart(t){const e=document.activeElement;e&&e.blur()},onScroll(t){this.operateVisible=!1},modalPercent(t){if(this.operateVisible)return;let e=`${this.$L("\u603B\u8FDB\u5EA6")}
`;e+=`${this.$L("\u603B\u6570\u91CF")}: ${t.task_num}
`,e+=`${this.$L("\u5DF2\u5B8C\u6210")}: ${t.task_complete}
`,e+=`${this.$L("\u6211\u7684\u4EFB\u52A1")}
`,e+=`${this.$L("\u603B\u6570\u91CF")}: ${t.task_my_num}
`,e+=`${this.$L("\u5DF2\u5B8C\u6210")}: ${t.task_my_complete}
`,$A.modalInfo({language:!1,title:`${t.name} ${this.$L("\u9879\u76EE\u8FDB\u5EA6")}`,content:e})},handleDragTip(){$A.modalAlert("\u8BF7\u6309\u4F4F\u56FE\u6807\u8FDB\u884C\u62D6\u52A8\u6392\u5E8F")},handleLongpress(t){if(t.target.classList.contains("item-sort"))return;const{type:e,data:s,element:a}=this.longpressData;if(this.$store.commit("longpress/clear"),e!=="projectList")return;const n=this.projectLists.find(i=>i.id==s.projectId);!n||(this.operateVisible=!1,this.operateItem=$A.isJson(n)?n:{},requestAnimationFrame(()=>{const i=a.getBoundingClientRect();this.operateStyles={left:`${t.clientX}px`,top:`${i.top}px`,height:`${i.height}px`},this.operateVisible=!0}))},handleOperation({currentTarget:t}){this.$store.commit("longpress/set",{type:"projectList",data:{projectId:$A.getAttr(t,"data-id")},element:t})},handleTopClick(){this.$store.dispatch("call",{url:"project/top",data:{project_id:this.operateItem.id}}).then(({data:t})=>{this.$store.dispatch("saveProject",t)}).catch(({msg:t})=>{$A.modalError(t)})},handleChatClick(){this.$store.dispatch("openDialog",this.operateItem.dialog_id).catch(({msg:t})=>{$A.modalError(t||this.$L("\u6253\u5F00\u4F1A\u8BDD\u5931\u8D25"))})}}},U={};var Me=x(Pe,Se,Ae,!1,Ee,null,null,null);function Ee(t){for(let e in U)this[e]=U[e]}var Oe=function(){return Me.exports}(),Re=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"page-project"},[t.projectId>0?s("ProjectPanel",{ref:"panel"}):t._e(),t.windowPortrait?s("ProjectList",{directives:[{name:"show",rawName:"v-show",value:t.projectId===0,expression:"projectId === 0"}]}):t._e()],1)},Fe=[];const We={components:{ProjectList:Oe,ProjectPanel:Ie},deactivated(){this.$store.dispatch("forgetTaskCompleteTemp",!0)},computed:{...f(["cacheProjects","wsOpenNum"]),projectId(){const{projectId:t}=this.$route.params;return parseInt(/^\d+$/.test(t)?t:0)}},watch:{projectId:{handler(){this.getProjectData()},immediate:!0},wsOpenNum(t){t<=1||(this.wsOpenTimeout&&clearTimeout(this.wsOpenTimeout),this.wsOpenTimeout=setTimeout(()=>{this.routeName=="manage-project"&&this.getProjectData()},5e3))}},methods:{getProjectData(){if(this.projectId<=0){this.$store.state.projectId=0;return}const t=this.projectId;this.$nextTick(()=>{this.$store.state.projectId=t,this.$store.dispatch("getProjectOne",t).then(()=>{this.$store.dispatch("getColumns",t).catch(()=>{}),this.$store.dispatch("getTaskForProject",t).catch(()=>{})}).catch(({msg:e})=>{t===this.projectId&&$A.modalWarning({content:e,onOk:()=>{const s=this.cacheProjects.find(({id:a})=>a);s?$A.goForward({name:"manage-project",params:{projectId:s.id}}):$A.goForward({name:"manage-dashboard"})}})}),this.$store.dispatch("forgetTaskCompleteTemp",!0)})}}},K={};var ze=x(We,Re,Fe,!1,Be,null,null,null);function Be(t){for(let e in K)this[e]=K[e]}var Fs=function(){return ze.exports}();export{Fs as default};
diff --git a/public/js/build/projectInvite.6aec10a1.js b/public/js/build/projectInvite.e4a62c77.js
similarity index 95%
rename from public/js/build/projectInvite.6aec10a1.js
rename to public/js/build/projectInvite.e4a62c77.js
index 8a68c44a1..b95027c33 100644
--- a/public/js/build/projectInvite.6aec10a1.js
+++ b/public/js/build/projectInvite.e4a62c77.js
@@ -1 +1 @@
-import{m as e}from"./vuex.cc7cb26e.js";import{V as a,t as s,n}from"./app.818b057c.js";import"./jquery.c87f487f.js";import"./@babel.9410f858.js";import"./dayjs.fd4aa75c.js";import"./localforage.8de7c27e.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./vue.adba9046.js";import"./openpgp_hi.15f91b1d.js";import"./axios.37c7f908.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./view-design-hi.24419422.js";import"./html-to-md.f297036e.js";import"./lodash.8fcd6fd4.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vuedraggable.f464b992.js";import"./sortablejs.3488b922.js";import"./vue-resize-observer.5af23a43.js";import"./element-sea.f8a64907.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var p=function(){var t=this,i=t.$createElement,o=t._self._c||i;return o("div",{staticClass:"page-invite"},[o("PageTitle",{attrs:{title:t.$L("\u52A0\u5165\u9879\u76EE")}}),t.loadIng>0?o("div",{staticClass:"invite-load"},[o("Loading")],1):o("div",{staticClass:"invite-warp"},[t.project.id>0?o("Card",[o("p",{attrs:{slot:"title"},domProps:{innerHTML:t._s(t.transformEmojiToHtml(t.project.name))},slot:"title"}),t.project.desc?o("div",{staticClass:"invite-desc user-select-auto"},[o("VMPreviewNostyle",{attrs:{value:t.project.desc}})],1):o("div",[t._v(t._s(t.$L("\u6682\u65E0\u4ECB\u7ECD")))]),o("div",{staticClass:"invite-footer"},[t.already?o("Button",{attrs:{type:"success",icon:"md-checkmark-circle-outline"},on:{click:t.goProject}},[t._v(t._s(t.$L("\u5DF2\u52A0\u5165")))]):o("Button",{attrs:{type:"primary",loading:t.joinLoad>0},on:{click:t.joinProject}},[t._v(t._s(t.$L("\u52A0\u5165\u9879\u76EE")))])],1)]):o("Card",[o("p",[t._v(t._s(t.$L("\u9080\u8BF7\u5730\u5740\u4E0D\u5B58\u5728\u6216\u5DF2\u88AB\u5220\u9664\uFF01")))])])],1)],1)},c=[];const m={components:{VMPreviewNostyle:a},data(){return{loadIng:0,joinLoad:0,already:!1,project:{}}},computed:{...e(["dialogId","windowPortrait"])},watch:{$route:{handler(t){var i,o;t.name=="manage-project-invite"&&(this.code=((i=t.query)==null?void 0:i.code)||((o=t.params)==null?void 0:o.inviteId)||"",this.getData(),this.wakeApp())},immediate:!0}},methods:{transformEmojiToHtml:s,getData(){this.loadIng++,this.$store.dispatch("call",{url:"project/invite/info",data:{code:this.code}}).then(({data:t})=>{this.already=t.already,this.project=t.project}).catch(()=>{this.project={}}).finally(t=>{this.loadIng--})},joinProject(){this.joinLoad++,this.$store.dispatch("call",{url:"project/invite/join",data:{code:this.code}}).then(({data:t})=>{this.already=t.already,this.project=t.project,this.goProject()}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.joinLoad--})},goProject(){this.$nextTick(()=>{$A.goForward({name:"manage-project",params:{projectId:this.project.id}})})},wakeApp(){if(!$A.Electron&&!$A.isEEUIApp&&navigator.userAgent.indexOf("MicroMessenger")===-1&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent))try{/Android/i.test(navigator.userAgent)?window.open("dootask://"+route.fullPath):window.location.href="dootask://"+route.fullPath}catch{}}}},r={};var d=n(m,p,c,!1,l,"76c7ed6a",null,null);function l(t){for(let i in r)this[i]=r[i]}var at=function(){return d.exports}();export{at as default};
+import{m as e}from"./vuex.cc7cb26e.js";import{V as a,t as s,n}from"./app.ef7047f7.js";import"./jquery.6e4daff9.js";import"./@babel.9410f858.js";import"./dayjs.d20a4841.js";import"./localforage.743dffdd.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./vue.adba9046.js";import"./openpgp_hi.15f91b1d.js";import"./axios.37c7f908.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./view-design-hi.24419422.js";import"./html-to-md.f297036e.js";import"./lodash.8fcd6fd4.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vuedraggable.f464b992.js";import"./sortablejs.3488b922.js";import"./vue-resize-observer.5af23a43.js";import"./element-sea.f8a64907.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var p=function(){var t=this,i=t.$createElement,o=t._self._c||i;return o("div",{staticClass:"page-invite"},[o("PageTitle",{attrs:{title:t.$L("\u52A0\u5165\u9879\u76EE")}}),t.loadIng>0?o("div",{staticClass:"invite-load"},[o("Loading")],1):o("div",{staticClass:"invite-warp"},[t.project.id>0?o("Card",[o("p",{attrs:{slot:"title"},domProps:{innerHTML:t._s(t.transformEmojiToHtml(t.project.name))},slot:"title"}),t.project.desc?o("div",{staticClass:"invite-desc user-select-auto"},[o("VMPreviewNostyle",{attrs:{value:t.project.desc}})],1):o("div",[t._v(t._s(t.$L("\u6682\u65E0\u4ECB\u7ECD")))]),o("div",{staticClass:"invite-footer"},[t.already?o("Button",{attrs:{type:"success",icon:"md-checkmark-circle-outline"},on:{click:t.goProject}},[t._v(t._s(t.$L("\u5DF2\u52A0\u5165")))]):o("Button",{attrs:{type:"primary",loading:t.joinLoad>0},on:{click:t.joinProject}},[t._v(t._s(t.$L("\u52A0\u5165\u9879\u76EE")))])],1)]):o("Card",[o("p",[t._v(t._s(t.$L("\u9080\u8BF7\u5730\u5740\u4E0D\u5B58\u5728\u6216\u5DF2\u88AB\u5220\u9664\uFF01")))])])],1)],1)},c=[];const m={components:{VMPreviewNostyle:a},data(){return{loadIng:0,joinLoad:0,already:!1,project:{}}},computed:{...e(["dialogId","windowPortrait"])},watch:{$route:{handler(t){var i,o;t.name=="manage-project-invite"&&(this.code=((i=t.query)==null?void 0:i.code)||((o=t.params)==null?void 0:o.inviteId)||"",this.getData(),this.wakeApp())},immediate:!0}},methods:{transformEmojiToHtml:s,getData(){this.loadIng++,this.$store.dispatch("call",{url:"project/invite/info",data:{code:this.code}}).then(({data:t})=>{this.already=t.already,this.project=t.project}).catch(()=>{this.project={}}).finally(t=>{this.loadIng--})},joinProject(){this.joinLoad++,this.$store.dispatch("call",{url:"project/invite/join",data:{code:this.code}}).then(({data:t})=>{this.already=t.already,this.project=t.project,this.goProject()}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.joinLoad--})},goProject(){this.$nextTick(()=>{$A.goForward({name:"manage-project",params:{projectId:this.project.id}})})},wakeApp(){if(!$A.Electron&&!$A.isEEUIApp&&navigator.userAgent.indexOf("MicroMessenger")===-1&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent))try{/Android/i.test(navigator.userAgent)?window.open("dootask://"+route.fullPath):window.location.href="dootask://"+route.fullPath}catch{}}}},r={};var d=n(m,p,c,!1,l,"76c7ed6a",null,null);function l(t){for(let i in r)this[i]=r[i]}var at=function(){return d.exports}();export{at as default};
diff --git a/public/js/build/reportDetail.f22d6ebf.js b/public/js/build/reportDetail.e5a9b56f.js
similarity index 87%
rename from public/js/build/reportDetail.f22d6ebf.js
rename to public/js/build/reportDetail.e5a9b56f.js
index fc838556e..3b11cfda4 100644
--- a/public/js/build/reportDetail.f22d6ebf.js
+++ b/public/js/build/reportDetail.e5a9b56f.js
@@ -1 +1 @@
-import{R as o}from"./ReportDetail.71244edd.js";import{n as p}from"./app.818b057c.js";import"./openpgp_hi.15f91b1d.js";import"./vuex.cc7cb26e.js";import"./jquery.c87f487f.js";import"./@babel.9410f858.js";import"./dayjs.fd4aa75c.js";import"./localforage.8de7c27e.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./vue.adba9046.js";import"./axios.37c7f908.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./view-design-hi.24419422.js";import"./html-to-md.f297036e.js";import"./lodash.8fcd6fd4.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vuedraggable.f464b992.js";import"./sortablejs.3488b922.js";import"./vue-resize-observer.5af23a43.js";import"./element-sea.f8a64907.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var m=function(){var t=this,r=t.$createElement,i=t._self._c||r;return i("div",{staticClass:"electron-report"},[i("PageTitle",{attrs:{title:t.$L("\u62A5\u544A\u8BE6\u60C5")}}),i("ReportDetail",{attrs:{data:t.detailData,type:t.type}})],1)},a=[];const s={components:{ReportDetail:o},data(){return{type:"view",detailData:{}}},computed:{reportId(){const{reportDetailId:t}=this.$route.params;return t}},watch:{reportId:{handler(){this.getDetail()},immediate:!0}},methods:{getDetail(){if(!this.reportId)return;const t={};/^\d+$/.test(this.reportId)?(t.id=this.reportId,this.type="view"):(t.code=this.reportId,this.type="share"),this.$store.dispatch("call",{url:"report/detail",data:t,spinner:600}).then(({data:r})=>{this.detailData=r}).catch(({msg:r})=>{$A.messageError(r)})}}},e={};var n=p(s,m,a,!1,l,"dfc32b6c",null,null);function l(t){for(let r in e)this[r]=e[r]}var ot=function(){return n.exports}();export{ot as default};
+import{R as o}from"./ReportDetail.00959436.js";import{n as p}from"./app.ef7047f7.js";import"./openpgp_hi.15f91b1d.js";import"./vuex.cc7cb26e.js";import"./jquery.6e4daff9.js";import"./@babel.9410f858.js";import"./dayjs.d20a4841.js";import"./localforage.743dffdd.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./vue.adba9046.js";import"./axios.37c7f908.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./view-design-hi.24419422.js";import"./html-to-md.f297036e.js";import"./lodash.8fcd6fd4.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vuedraggable.f464b992.js";import"./sortablejs.3488b922.js";import"./vue-resize-observer.5af23a43.js";import"./element-sea.f8a64907.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var m=function(){var t=this,r=t.$createElement,i=t._self._c||r;return i("div",{staticClass:"electron-report"},[i("PageTitle",{attrs:{title:t.$L("\u62A5\u544A\u8BE6\u60C5")}}),i("ReportDetail",{attrs:{data:t.detailData,type:t.type}})],1)},a=[];const s={components:{ReportDetail:o},data(){return{type:"view",detailData:{}}},computed:{reportId(){const{reportDetailId:t}=this.$route.params;return t}},watch:{reportId:{handler(){this.getDetail()},immediate:!0}},methods:{getDetail(){if(!this.reportId)return;const t={};/^\d+$/.test(this.reportId)?(t.id=this.reportId,this.type="view"):(t.code=this.reportId,this.type="share"),this.$store.dispatch("call",{url:"report/detail",data:t,spinner:600}).then(({data:r})=>{this.detailData=r}).catch(({msg:r})=>{$A.messageError(r)})}}},e={};var n=p(s,m,a,!1,l,"dfc32b6c",null,null);function l(t){for(let r in e)this[r]=e[r]}var ot=function(){return n.exports}();export{ot as default};
diff --git a/public/js/build/reportEdit.ce911fe7.js b/public/js/build/reportEdit.834e99b9.js
similarity index 87%
rename from public/js/build/reportEdit.ce911fe7.js
rename to public/js/build/reportEdit.834e99b9.js
index 1762b8d51..37f71a6cf 100644
--- a/public/js/build/reportEdit.ce911fe7.js
+++ b/public/js/build/reportEdit.834e99b9.js
@@ -1 +1 @@
-import{R as e}from"./ReportEdit.686131b0.js";import{n as p}from"./app.818b057c.js";import"./openpgp_hi.15f91b1d.js";import"./vuex.cc7cb26e.js";import"./jquery.c87f487f.js";import"./@babel.9410f858.js";import"./dayjs.fd4aa75c.js";import"./localforage.8de7c27e.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./vue.adba9046.js";import"./axios.37c7f908.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./view-design-hi.24419422.js";import"./html-to-md.f297036e.js";import"./lodash.8fcd6fd4.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vuedraggable.f464b992.js";import"./sortablejs.3488b922.js";import"./vue-resize-observer.5af23a43.js";import"./element-sea.f8a64907.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var m=function(){var t=this,r=t.$createElement,i=t._self._c||r;return i("div",{staticClass:"electron-report"},[i("PageTitle",{attrs:{title:t.title}}),i("ReportEdit",{attrs:{id:t.reportEditId},on:{saveSuccess:t.saveSuccess}})],1)},s=[];const n={components:{ReportEdit:e},data(){return{detail:{}}},computed:{reportEditId(){if(/^\d+$/.test(this.detail.id))return parseInt(this.detail.id);const{reportEditId:t}=this.$route.params;return parseInt(/^\d+$/.test(t)?t:0)},title(){return this.$L(this.reportEditId>0?"\u4FEE\u6539\u62A5\u544A":"\u65B0\u589E\u62A5\u544A")}},methods:{saveSuccess(t){this.detail=t,this.$isSubElectron&&($A.Electron.sendMessage("broadcastCommand",{channel:"reportSaveSuccess",payload:t}),window.close())}}},o={};var a=p(n,m,s,!1,d,"607d2035",null,null);function d(t){for(let r in o)this[r]=o[r]}var et=function(){return a.exports}();export{et as default};
+import{R as e}from"./ReportEdit.5ea53e87.js";import{n as p}from"./app.ef7047f7.js";import"./openpgp_hi.15f91b1d.js";import"./vuex.cc7cb26e.js";import"./jquery.6e4daff9.js";import"./@babel.9410f858.js";import"./dayjs.d20a4841.js";import"./localforage.743dffdd.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./vue.adba9046.js";import"./axios.37c7f908.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./view-design-hi.24419422.js";import"./html-to-md.f297036e.js";import"./lodash.8fcd6fd4.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vuedraggable.f464b992.js";import"./sortablejs.3488b922.js";import"./vue-resize-observer.5af23a43.js";import"./element-sea.f8a64907.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var m=function(){var t=this,r=t.$createElement,i=t._self._c||r;return i("div",{staticClass:"electron-report"},[i("PageTitle",{attrs:{title:t.title}}),i("ReportEdit",{attrs:{id:t.reportEditId},on:{saveSuccess:t.saveSuccess}})],1)},s=[];const n={components:{ReportEdit:e},data(){return{detail:{}}},computed:{reportEditId(){if(/^\d+$/.test(this.detail.id))return parseInt(this.detail.id);const{reportEditId:t}=this.$route.params;return parseInt(/^\d+$/.test(t)?t:0)},title(){return this.$L(this.reportEditId>0?"\u4FEE\u6539\u62A5\u544A":"\u65B0\u589E\u62A5\u544A")}},methods:{saveSuccess(t){this.detail=t,this.$isSubElectron&&($A.Electron.sendMessage("broadcastCommand",{channel:"reportSaveSuccess",payload:t}),window.close())}}},o={};var a=p(n,m,s,!1,d,"607d2035",null,null);function d(t){for(let r in o)this[r]=o[r]}var et=function(){return a.exports}();export{et as default};
diff --git a/public/js/build/swipe.009070fc.js b/public/js/build/swipe.169af9f5.js
similarity index 94%
rename from public/js/build/swipe.009070fc.js
rename to public/js/build/swipe.169af9f5.js
index 4a101a696..6fb5fc5b7 100644
--- a/public/js/build/swipe.009070fc.js
+++ b/public/js/build/swipe.169af9f5.js
@@ -1 +1 @@
-import{_ as a}from"./openpgp_hi.15f91b1d.js";import{P as l}from"./photoswipe.a7142509.js";import{n as h}from"./app.818b057c.js";import"./jquery.c87f487f.js";import"./@babel.9410f858.js";import"./dayjs.fd4aa75c.js";import"./localforage.8de7c27e.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./vue.adba9046.js";import"./vuex.cc7cb26e.js";import"./axios.37c7f908.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./view-design-hi.24419422.js";import"./html-to-md.f297036e.js";import"./lodash.8fcd6fd4.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vuedraggable.f464b992.js";import"./sortablejs.3488b922.js";import"./vue-resize-observer.5af23a43.js";import"./element-sea.f8a64907.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var d=function(){var i=this,t=i.$createElement,r=i._self._c||t;return r("div")},u=[];const c={props:{className:{type:String,default:()=>"preview-image-swipe-"+Math.round(Math.random()*1e4)},urlList:{type:Array,default:()=>[]},initialIndex:{type:Number,default:0}},data(){return{lightbox:null}},beforeDestroy(){var i;(i=this.lightbox)==null||i.destroy()},watch:{urlList:{handler(i){var n;let t=!1,r=!1;(n=this.lightbox)==null||n.destroy();const s=i.map(o=>{if($A.isJson(o)){if(parseInt(o.width)>0&&parseInt(o.height)>0)return o;o=o.src}return r=!0,{html:` `}});this.lightbox=new l({dataSource:s,escKey:!1,mainClass:this.className+" no-dark-content",showHideAnimationType:"none",pswpModule:()=>a(()=>import("./photoswipe.a7142509.js").then(function(o){return o.p}),["js/build/photoswipe.a7142509.js","js/build/photoswipe.0fb72215.css"])}),this.lightbox.on("change",o=>{!r||$A.loadScript("js/pinch-zoom.umd.min.js").then(f=>{document.querySelector(`.${this.className}`).querySelectorAll(".preview-image-swipe").forEach(e=>{e.getAttribute("data-init-pinch-zoom")!=="init"&&(e.setAttribute("data-init-pinch-zoom","init"),e.querySelector("img").addEventListener("pointermove",m=>{t&&m.stopPropagation()}),new PinchZoom.default(e,{draggableUnzoomed:!1,onDragStart:()=>{t=!0},onDragEnd:()=>{t=!1}}))})})}),this.lightbox.on("close",()=>{this.$emit("on-close")}),this.lightbox.on("destroy",()=>{this.$emit("on-destroy")}),this.lightbox.init(),this.lightbox.loadAndOpen(this.initialIndex)},immediate:!0},initialIndex(i){var t;(t=this.lightbox)==null||t.loadAndOpen(i)}}},p={};var _=h(c,d,u,!1,g,null,null,null);function g(i){for(let t in p)this[t]=p[t]}var dt=function(){return _.exports}();export{dt as default};
+import{_ as a}from"./openpgp_hi.15f91b1d.js";import{P as l}from"./photoswipe.a7142509.js";import{n as h}from"./app.ef7047f7.js";import"./jquery.6e4daff9.js";import"./@babel.9410f858.js";import"./dayjs.d20a4841.js";import"./localforage.743dffdd.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./vue.adba9046.js";import"./vuex.cc7cb26e.js";import"./axios.37c7f908.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./view-design-hi.24419422.js";import"./html-to-md.f297036e.js";import"./lodash.8fcd6fd4.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vuedraggable.f464b992.js";import"./sortablejs.3488b922.js";import"./vue-resize-observer.5af23a43.js";import"./element-sea.f8a64907.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var d=function(){var i=this,t=i.$createElement,r=i._self._c||t;return r("div")},u=[];const c={props:{className:{type:String,default:()=>"preview-image-swipe-"+Math.round(Math.random()*1e4)},urlList:{type:Array,default:()=>[]},initialIndex:{type:Number,default:0}},data(){return{lightbox:null}},beforeDestroy(){var i;(i=this.lightbox)==null||i.destroy()},watch:{urlList:{handler(i){var n;let t=!1,r=!1;(n=this.lightbox)==null||n.destroy();const s=i.map(o=>{if($A.isJson(o)){if(parseInt(o.width)>0&&parseInt(o.height)>0)return o;o=o.src}return r=!0,{html:` `}});this.lightbox=new l({dataSource:s,escKey:!1,mainClass:this.className+" no-dark-content",showHideAnimationType:"none",pswpModule:()=>a(()=>import("./photoswipe.a7142509.js").then(function(o){return o.p}),["js/build/photoswipe.a7142509.js","js/build/photoswipe.0fb72215.css"])}),this.lightbox.on("change",o=>{!r||$A.loadScript("js/pinch-zoom.umd.min.js").then(f=>{document.querySelector(`.${this.className}`).querySelectorAll(".preview-image-swipe").forEach(e=>{e.getAttribute("data-init-pinch-zoom")!=="init"&&(e.setAttribute("data-init-pinch-zoom","init"),e.querySelector("img").addEventListener("pointermove",m=>{t&&m.stopPropagation()}),new PinchZoom.default(e,{draggableUnzoomed:!1,onDragStart:()=>{t=!0},onDragEnd:()=>{t=!1}}))})})}),this.lightbox.on("close",()=>{this.$emit("on-close")}),this.lightbox.on("destroy",()=>{this.$emit("on-destroy")}),this.lightbox.init(),this.lightbox.loadAndOpen(this.initialIndex)},immediate:!0},initialIndex(i){var t;(t=this.lightbox)==null||t.loadAndOpen(i)}}},p={};var _=h(c,d,u,!1,g,null,null,null);function g(i){for(let t in p)this[t]=p[t]}var dt=function(){return _.exports}();export{dt as default};
diff --git a/public/js/build/system-update.0f19d7e0.js b/public/js/build/system-update.0f19d7e0.js
new file mode 100644
index 000000000..cf70fe79a
--- /dev/null
+++ b/public/js/build/system-update.0f19d7e0.js
@@ -0,0 +1 @@
+import l from"./preview.7d35fa9c.js";import{n as c}from"./app.ef7047f7.js";import"./openpgp_hi.15f91b1d.js";import"./index.40a8e116.js";import"./jquery.6e4daff9.js";import"./@babel.9410f858.js";import"./dayjs.d20a4841.js";import"./localforage.743dffdd.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./vue.adba9046.js";import"./vuex.cc7cb26e.js";import"./axios.37c7f908.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./view-design-hi.24419422.js";import"./html-to-md.f297036e.js";import"./lodash.8fcd6fd4.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vuedraggable.f464b992.js";import"./sortablejs.3488b922.js";import"./vue-resize-observer.5af23a43.js";import"./element-sea.f8a64907.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var h=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"setting-item submit"},[s("div",{staticClass:"system-update-box"},[t.taskMode?s("div",{class:["update-view",`is-${t.task.status||"running"}`]},[s("div",{staticClass:"view-head"},[s("div",{staticClass:"view-title"},[t._v(t._s(t.$L(t.taskTitle)))]),s("div",{staticClass:"view-desc"},[t.task.from_version&&t.task.to_version?s("span",[t._v("v"+t._s(t.task.from_version)+" \u2192 v"+t._s(t.task.to_version))]):t._e(),t.taskDuration?s("span",[t._v(t._s(t.$L("\u7528\u65F6 (*)",t.taskDuration)))]):t._e()])]),s("ul",{staticClass:"task-steps"},t._l(t.stages,function(i){return s("li",{key:i.key,class:t.stageClass(i.key)},[s("div",{staticClass:"step-dot"},[t.stageClass(i.key)==="process"?s("Loading"):t.stageClass(i.key)==="finish"?s("Icon",{attrs:{type:"md-checkmark"}}):t.stageClass(i.key)==="error"?s("Icon",{attrs:{type:"md-close"}}):t._e()],1),s("span",{staticClass:"step-label"},[t._v(t._s(t.$L(i.label)))])])}),0),t.task.status==="running"&&t.pollFailed?s("div",{staticClass:"view-notice warning"},[t._v(t._s(t.$L("\u670D\u52A1\u91CD\u542F\u4E2D\uFF0C\u6B63\u5728\u7B49\u5F85\u6062\u590D...")))]):t.task.status==="success"?s("div",{staticClass:"view-notice success"},[t._v(" "+t._s(t.$L("\u7CFB\u7EDF\u5DF2\u66F4\u65B0\u5230 v(*)\uFF0C\u8BF7\u5237\u65B0\u9875\u9762\u4EE5\u4F7F\u7528\u65B0\u7248\u672C",t.task.to_version||t.task.current_version))+" ")]):t.task.status==="failed"?s("div",{staticClass:"view-notice error"},[t.task.error?s("div",{staticClass:"notice-title"},[t._v(t._s(t.task.error))]):t._e(),t.task.backup_file?s("div",[t._v(t._s(t.$L("\u66F4\u65B0\u524D\u7684\u6570\u636E\u5E93\u5907\u4EFD\uFF1A(*)",t.task.backup_file)))]):t._e(),s("div",[t._v(t._s(t.$L("\u8BF7\u6839\u636E\u65E5\u5FD7\u5728\u670D\u52A1\u5668\u4E0A\u5904\u7406\uFF0C\u5FC5\u8981\u65F6\u6267\u884C (*) \u56DE\u6EDA\u4EE3\u7801\u540E\u91CD\u65B0\u66F4\u65B0",t.rollbackCommand)))])]):t._e(),s("div",{staticClass:"view-panel"},[s("div",{staticClass:"panel-head"},[t._v(t._s(t.$L("\u66F4\u65B0\u65E5\u5FD7")))]),s("pre",{ref:"log",staticClass:"panel-body is-log"},[t._v(t._s(t.taskLog||t.$L("\u7B49\u5F85\u65E5\u5FD7\u8F93\u51FA...")))])])]):s("div",{class:["update-view",t.checkStatus]},[s("div",{staticClass:"view-head"},[s("div",{staticClass:"view-title"},[t._v(t._s(t.$L(t.checkTitle)))]),s("div",{staticClass:"view-desc"},[t.info&&t.info.has_update?s("span",[t._v("v"+t._s(t.currentVersion)+" \u2192 v"+t._s(t.info.latest_version))]):s("span",[t._v(t._s(t.$L("\u5F53\u524D\u7248\u672C"))+" v"+t._s(t.currentVersion))]),t.info&&t.info.checked_at?s("span",[t._v(t._s(t.$L("\u4E0A\u6B21\u68C0\u67E5\uFF1A(*)",t.checkedTime)))]):t._e()])]),t.lastFailed?s("div",{staticClass:"view-notice error"},[s("div",{staticClass:"notice-title"},[t._v(t._s(t.$L("\u4E0A\u6B21\u7CFB\u7EDF\u66F4\u65B0\u5931\u8D25")))]),s("div",[t.lastFailed.error?s("span",[t._v(t._s(t.lastFailed.error))]):t._e(),s("a",{attrs:{href:"javascript:void(0)"},on:{click:t.viewLastTask}},[t._v(t._s(t.$L("\u67E5\u770B\u65E5\u5FD7")))])])]):t._e(),t.info&&!t.info.supported?[s("div",{staticClass:"view-notice warning"},[s("div",{staticClass:"notice-title"},[t._v(t._s(t.$L(t.reasonText)))]),s("div",[t._v(t._s(t.$L(t.reasonHint,"./cmd update")))])])]:t.info&&t.info.has_update?[t.info.has_local_changes?s("div",{staticClass:"view-notice error"},[s("div",{staticClass:"notice-title"},[t._v(t._s(t.$L("\u670D\u52A1\u5668\u5B58\u5728\u672C\u5730\u4FEE\u6539\uFF0C\u65E0\u6CD5\u5728\u7EBF\u66F4\u65B0")))]),s("div",[t._v(t._s(t.$L("\u8BF7\u5728\u670D\u52A1\u5668\u4E0A\u5904\u7406\u672C\u5730\u4FEE\u6539\u540E\uFF0C\u6267\u884C (*) \u66F4\u65B0\u7CFB\u7EDF","./cmd update")))])]):s("div",{staticClass:"view-notice warning"},[s("div",[t._v(t._s(t.$L("\u66F4\u65B0\u671F\u95F4\u7CFB\u7EDF\u5C06\u6682\u505C\u670D\u52A1\uFF08\u901A\u5E38 1~3 \u5206\u949F\uFF09\uFF0C\u6240\u6709\u5728\u7EBF\u6210\u5458\u4F1A\u77ED\u6682\u65AD\u5F00\u8FDE\u63A5")))]),s("div",[t._v(t._s(t.$L(t.info.has_db_changes?"\u66F4\u65B0\u524D\u5C06\u81EA\u52A8\u5907\u4EFD\u6570\u636E\u5E93\uFF08\u672C\u6B21\u66F4\u65B0\u5305\u542B\u6570\u636E\u5E93\u53D8\u66F4\uFF09":"\u66F4\u65B0\u524D\u5C06\u81EA\u52A8\u5907\u4EFD\u6570\u636E\u5E93")))])]),s("div",{staticClass:"view-panel"},[s("div",{staticClass:"panel-head"},[t._v(t._s(t.$L("\u66F4\u65B0\u5185\u5BB9")))]),s("div",{staticClass:"panel-body is-markdown"},[t.info.changelog?s("VMPreview",{attrs:{value:t.info.changelog}}):s("div",{staticClass:"panel-empty"},[t._v(t._s(t.$L("\u6682\u65E0\u66F4\u65B0\u4ECB\u7ECD\uFF01")))])],1)])]:t._e()],2)]),t.taskMode&&t.task.status!=="running"?s("div",{staticClass:"setting-footer"},[t.task.status==="success"?s("Button",{attrs:{type:"primary"},on:{click:t.reloadPage}},[t._v(t._s(t.$L("\u5237\u65B0\u9875\u9762")))]):t._e(),s("Button",{on:{click:t.backToCheck}},[t._v(t._s(t.$L("\u8FD4\u56DE")))])],1):t.taskMode?t._e():s("div",{staticClass:"setting-footer"},[t.info&&t.info.has_update&&!t.info.has_local_changes?s("Button",{attrs:{type:"primary",disabled:t.checkIng},on:{click:function(i){t.confirmShow=!0}}},[t._v(t._s(t.$L("\u7ACB\u5373\u66F4\u65B0\u7CFB\u7EDF")))]):t._e(),s("Button",{attrs:{loading:t.checkIng},on:{click:function(i){return t.check(!0)}}},[t._v(t._s(t.$L("\u68C0\u67E5\u66F4\u65B0")))])],1),s("Modal",{attrs:{title:t.$L("\u66F4\u65B0\u7CFB\u7EDF"),"mask-closable":!1},on:{"on-visible-change":t.onConfirmVisible},model:{value:t.confirmShow,callback:function(i){t.confirmShow=i},expression:"confirmShow"}},[s("div",{staticClass:"system-update-confirm"},[s("p",[t._v(t._s(t.$L("\u66F4\u65B0\u671F\u95F4\u7CFB\u7EDF\u5C06\u6682\u505C\u670D\u52A1\uFF08\u901A\u5E38 1~3 \u5206\u949F\uFF09\uFF0C\u6240\u6709\u5728\u7EBF\u6210\u5458\u4F1A\u77ED\u6682\u65AD\u5F00\u8FDE\u63A5\u3002\u66F4\u65B0\u524D\u4F1A\u81EA\u52A8\u5907\u4EFD\u6570\u636E\u5E93\u3002\u786E\u5B9A\u7ACB\u5373\u66F4\u65B0\u5417\uFF1F")))]),s("Input",{ref:"password",attrs:{type:"password",password:"",placeholder:t.$L("\u8BF7\u8F93\u5165\u767B\u5F55\u5BC6\u7801")},on:{"on-enter":t.start},model:{value:t.password,callback:function(i){t.password=i},expression:"password"}})],1),s("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[s("Button",{attrs:{type:"default"},on:{click:function(i){t.confirmShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),s("Button",{attrs:{type:"primary",loading:t.startIng},on:{click:t.start}},[t._v(t._s(t.$L("\u7ACB\u5373\u66F4\u65B0")))])],1)])],1)},d=[];const a=[{key:"preparing",label:"\u51C6\u5907\u66F4\u65B0"},{key:"fetching",label:"\u83B7\u53D6\u66F4\u65B0"},{key:"backup",label:"\u5907\u4EFD\u6570\u636E\u5E93"},{key:"pulling",label:"\u66F4\u65B0\u4EE3\u7801"},{key:"composer",label:"\u5B89\u88C5\u4F9D\u8D56"},{key:"migrating",label:"\u8FC1\u79FB\u6570\u636E\u5E93"},{key:"restarting",label:"\u91CD\u542F\u670D\u52A1"},{key:"verifying",label:"\u68C0\u67E5\u670D\u52A1"}],o={disabled:["\u5728\u7EBF\u66F4\u65B0\u5DF2\u5173\u95ED","\u5982\u9700\u5F00\u542F\uFF0C\u8BF7\u8054\u7CFB\u8FD0\u7EF4\u4EBA\u5458\u8C03\u6574\u670D\u52A1\u5668\u914D\u7F6E\uFF1B\u4E5F\u53EF\u5728\u670D\u52A1\u5668\u4E0A\u6267\u884C (*) \u66F4\u65B0\u7CFB\u7EDF"],not_installed:["\u7CFB\u7EDF\u5C1A\u672A\u5B8C\u6210\u5B89\u88C5","\u8BF7\u5728\u670D\u52A1\u5668\u4E0A\u6267\u884C (*) \u66F4\u65B0\u7CFB\u7EDF"],no_git:["\u5F53\u524D\u90E8\u7F72\u65B9\u5F0F\u4E0D\u652F\u6301\u5728\u7EBF\u66F4\u65B0","\u8BF7\u5728\u670D\u52A1\u5668\u4E0A\u6267\u884C (*) \u66F4\u65B0\u7CFB\u7EDF"],detached_head:["\u5F53\u524D\u4EE3\u7801\u4E0D\u5728\u4EFB\u4F55\u5206\u652F\u4E0A\uFF0C\u65E0\u6CD5\u5728\u7EBF\u66F4\u65B0","\u8BF7\u5728\u670D\u52A1\u5668\u4E0A\u6267\u884C (*) \u66F4\u65B0\u7CFB\u7EDF"],fetch_failed:["\u65E0\u6CD5\u8FDE\u63A5\u4EE3\u7801\u4ED3\u5E93\uFF0C\u8BF7\u68C0\u67E5\u670D\u52A1\u5668\u7F51\u7EDC\u6216\u4ED3\u5E93\u5730\u5740","\u4E5F\u53EF\u5728\u670D\u52A1\u5668\u4E0A\u6267\u884C (*) \u66F4\u65B0\u7CFB\u7EDF"],appstore_unavailable:["\u65E0\u6CD5\u8FDE\u63A5\u5E94\u7528\u5546\u5E97\u670D\u52A1","\u8BF7\u68C0\u67E5\u5E94\u7528\u5546\u5E97\u670D\u52A1\u662F\u5426\u6B63\u5E38\u8FD0\u884C\uFF0C\u6216\u5728\u670D\u52A1\u5668\u4E0A\u6267\u884C (*) \u66F4\u65B0\u7CFB\u7EDF"],appstore_outdated:["\u5E94\u7528\u5546\u5E97\u670D\u52A1\u7248\u672C\u8FC7\u4F4E\uFF0C\u6682\u4E0D\u652F\u6301\u5728\u7EBF\u66F4\u65B0","\u8BF7\u5148\u5728\u670D\u52A1\u5668\u4E0A\u6267\u884C\u4E00\u6B21 (*)\uFF0C\u4E4B\u540E\u5373\u53EF\u5728\u7EBF\u66F4\u65B0"]},p={components:{VMPreview:l},data(){return{stages:a,info:null,checkIng:!1,currentVersion:window.systemInfo.version,confirmShow:!1,password:"",startIng:!1,taskMode:!1,task:{},taskId:"",taskLog:"",taskOffset:0,lastFailed:null,pollTimer:null,pollFailed:!1,nowTime:Date.now(),clockTimer:null}},computed:{reasonText(){var t;return(o[(t=this.info)==null?void 0:t.reason]||["\u5F53\u524D\u73AF\u5883\u4E0D\u652F\u6301\u5728\u7EBF\u66F4\u65B0"])[0]},reasonHint(){var t;return(o[(t=this.info)==null?void 0:t.reason]||[null,"\u8BF7\u5728\u670D\u52A1\u5668\u4E0A\u6267\u884C (*) \u66F4\u65B0\u7CFB\u7EDF"])[1]},checkedTime(){return $A.daytz(this.info.checked_at*1e3).format("YYYY-MM-DD HH:mm:ss")},checkTitle(){return this.info?this.info.supported?this.info.has_update?"\u53D1\u73B0\u7CFB\u7EDF\u65B0\u7248\u672C":"\u7CFB\u7EDF\u5DF2\u662F\u6700\u65B0\u7248\u672C":"\u6682\u4E0D\u652F\u6301\u5728\u7EBF\u66F4\u65B0":this.checkIng?"\u6B63\u5728\u68C0\u67E5\u66F4\u65B0...":"\u68C0\u67E5\u66F4\u65B0\u5931\u8D25"},checkStatus(){return this.info?this.info.supported?this.info.has_update?"is-update":"is-latest":"is-unsupported":"is-loading"},taskTitle(){switch(this.task.status){case"success":return"\u7CFB\u7EDF\u66F4\u65B0\u5B8C\u6210";case"failed":return"\u7CFB\u7EDF\u66F4\u65B0\u5931\u8D25";default:return"\u7CFB\u7EDF\u66F4\u65B0\u4E2D..."}},taskDuration(){const t=parseInt(this.task.started_at)||0;if(!t)return"";const e=parseInt(this.task.finished_at)||Math.floor(this.nowTime/1e3),s=Math.max(0,e-t);return`${String(Math.floor(s/60)).padStart(2,"0")}:${String(s%60).padStart(2,"0")}`},rollbackCommand(){return this.task.from_commit?`git reset --hard ${this.task.from_commit.substring(0,12)}`:"git reset --hard "}},mounted(){this.init()},beforeDestroy(){this.stopPoll(),clearInterval(this.clockTimer)},methods:{async init(){const t=await this.fetchStatus(0).catch(e=>null);if(t&&t.status==="running"){this.enterTask(t.id),this.applyStatus(t),this.startPoll();return}t&&t.status==="failed"&&(this.lastFailed=t),this.check(!1)},check(t){this.checkIng=!0,this.$store.dispatch("call",{url:"system/update/check",data:{force:t?1:0}}).then(({data:e})=>{this.info=e,this.currentVersion=e.current_version||this.currentVersion,this.$store.state.systemNewVersion=e.has_update?e.latest_version:null}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.checkIng=!1})},onConfirmVisible(t){t&&(this.password="",this.$nextTick(e=>{var s;return(s=this.$refs.password)==null?void 0:s.focus()}))},start(){var t;if(!this.password){$A.messageWarning("\u8BF7\u8F93\u5165\u767B\u5F55\u5BC6\u7801");return}this.startIng=!0,this.$store.dispatch("call",{url:"system/update/start",method:"post",data:{password:this.password,version:((t=this.info)==null?void 0:t.latest_version)||""}}).then(({data:e})=>{this.confirmShow=!1,this.lastFailed=null,this.enterTask(e.id),this.task={status:"running",stage:"preparing",from_version:e.from_version,to_version:e.to_version,started_at:Math.floor(Date.now()/1e3)},this.startPoll()}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.startIng=!1})},enterTask(t){clearInterval(this.clockTimer),this.clockTimer=setInterval(e=>{this.nowTime=Date.now()},1e3),this.taskMode=!0,this.taskId=t||"",this.taskLog="",this.taskOffset=0,this.pollFailed=!1},fetchStatus(t){return this.$store.dispatch("call",{url:"system/update/status",data:{offset:t},checkNetwork:!1,networkFailureRetry:!1}).then(({data:e})=>e)},applyStatus(t){if(this.taskId&&t.id&&t.id!==this.taskId)return;const{log:e,offset:s,...i}=t;this.task=Object.assign({},this.task,i),e&&(this.taskLog+=e,this.$nextTick(_=>{const r=this.$refs.log;r&&(r.scrollTop=r.scrollHeight)})),this.taskOffset=s||this.taskOffset,t.status==="success"&&(this.$store.state.systemNewVersion=null)},startPoll(){this.stopPoll(),this.pollTimer=setTimeout(async t=>{try{const e=await this.fetchStatus(this.taskOffset);this.pollFailed=!1,this.applyStatus(e)}catch{this.pollFailed=!0}this.task.status==="running"?this.startPoll():this.taskOffset>0&&this.fetchStatus(this.taskOffset).then(this.applyStatus).catch(e=>{})},2e3)},stopPoll(){this.pollTimer&&clearTimeout(this.pollTimer),this.pollTimer=null},viewLastTask(){const t=this.lastFailed;this.enterTask(t.id),this.task=Object.assign({},t),this.fetchStatus(0).then(this.applyStatus).catch(e=>{})},backToCheck(){this.stopPoll(),clearInterval(this.clockTimer),this.taskMode=!1,this.task={},this.check(!1)},stageClass(t){const e=a.findIndex(i=>i.key===t),s=this.task.stage==="done"?a.length:a.findIndex(i=>i.key===this.task.stage);return e1?t.$L("\u5220\u9664"):t.$L("\u81F3\u5C11\u4FDD\u7559\u4E00\u9879"),placement:"top",transfer:""}},[e("Button",{attrs:{type:"text",icon:"ios-trash-outline",disabled:t.formDatum.length<=1},on:{click:function(o){return t.delDatum(i)}}})],1)],1)],1)}),e("Button",{staticClass:"setting-add-action",attrs:{type:"default",icon:"md-add"},on:{click:t.addDatum}},[t._v(t._s(t.$L("\u6DFB\u52A0\u6A21\u677F")))])],2),t.embedded?t._e():e("div",{staticClass:"setting-footer"},[e("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),e("Button",{attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)])},D=[];const L={name:"SystemColumnTemplate",props:{embedded:Boolean},data(){return{loadIng:0,formDatum:[],nullDatum:{name:"",columns:""}}},mounted(){this.systemSetting()},computed:{...n(["columnTemplate"])},watch:{columnTemplate:{handler(t){this.formDatum=$A.cloneJSON(t),this.formDatum.length===0&&this.addDatum()},immediate:!0}},methods:{submitForm(){this.systemSetting(!0)},resetForm(){this.formDatum=$A.cloneJSON(this.columnTemplate)},addDatum(){this.formDatum.push($A.cloneJSON(this.nullDatum))},delDatum(t){this.formDatum.length<=1||$A.modalConfirm({title:"\u786E\u8BA4\u5220\u9664",content:"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6A21\u677F\u5417\uFF1F",onOk:()=>{this.formDatum.splice(t,1)}})},systemSetting(t,s=!1){return this.loadIng++,this.$store.dispatch("call",{url:"system/column/template?type="+(t?"save":"get"),method:"post",data:{list:this.formDatum}}).then(({data:e})=>{t&&!s&&$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.$store.state.columnTemplate=$A.cloneJSON(e).map(a=>($A.isArray(a.columns)&&(a.columns=a.columns.join(",")),a))}).catch(({msg:e})=>{if(t&&!s&&$A.modalError(e),s)return Promise.reject(e)}).finally(e=>{this.loadIng--})}}},c={};var g=l(L,h,D,!1,y,null,null,null);function y(t){for(let s in c)this[s]=c[s]}var k=function(){return g.exports}(),x=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{class:{"setting-component-item":!t.embedded}},[e("div",[e("div",{staticClass:"block-setting-box"},[e("h3",[t._v(t._s(t.$L("\u6743\u9650\u8BBE\u7F6E")))]),e("div",{staticClass:"form-box"},[e("FormItem",{attrs:{label:t.$L("\u6253\u5305\u6743\u9650"),prop:"permission_pack_type"}},[e("RadioGroup",{model:{value:t.formData.permission_pack_type,callback:function(a){t.$set(t.formData,"permission_pack_type",a)},expression:"formData.permission_pack_type"}},[e("Radio",{attrs:{label:"all"}},[t._v(t._s(t.$L("\u5141\u8BB8\u6240\u6709\u4EBA")))]),e("Radio",{attrs:{label:"admin"}},[t._v(t._s(t.$L("\u4EC5\u9650\u7BA1\u7406\u5458")))]),e("Radio",{attrs:{label:"appointAllow"}},[t._v(t._s(t.$L("\u6307\u5B9A\u5141\u8BB8")))]),e("Radio",{attrs:{label:"appointProhibit"}},[t._v(t._s(t.$L("\u6307\u5B9A\u7981\u6B62")))])],1),t.formData.permission_pack_type==="all"?e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5141\u8BB8\u7CFB\u7EDF\u6240\u6709\u4EBA\u5458\u4F7F\u7528\u6587\u4EF6\u6253\u5305\u4E0B\u8F7D\u529F\u80FD")))]):t.formData.permission_pack_type==="admin"?e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u4EC5\u9650\u7BA1\u7406\u5458\u4F7F\u7528\u6587\u4EF6\u6253\u5305\u4E0B\u8F7D\u529F\u80FD")))]):t.formData.permission_pack_type==="appointAllow"?e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u6307\u5B9A\u5141\u8BB8\u7684\u4EBA\u5458\u4F7F\u7528\u6587\u4EF6\u6253\u5305\u4E0B\u8F7D\u529F\u80FD")))]):t.formData.permission_pack_type==="appointProhibit"?e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u6307\u5B9A\u7981\u6B62\u7684\u4EBA\u5458\u4F7F\u7528\u6587\u4EF6\u6253\u5305\u4E0B\u8F7D\u529F\u80FD")))]):t._e()],1),["appointAllow","appointProhibit"].includes(t.formData.permission_pack_type)?e("FormItem",{attrs:{label:t.$L("\u6307\u5B9A\u4EBA\u5458"),prop:"permission_pack_userid"}},[e("UserSelect",{attrs:{"multiple-max":200,"avatar-name":"","show-disable":"",title:t.$L("\u8BF7\u9009\u62E9\u6307\u5B9A\u4EBA\u5458")},model:{value:t.formData.permission_pack_userid,callback:function(a){t.$set(t.formData,"permission_pack_userid",a)},expression:"formData.permission_pack_userid"}}),e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u6307\u5B9A\u4EBA\u5458\u6700\u591A\u53EF\u9009\u62E9200\u4EBA")))])],1):t._e()],1)]),e("div",{staticClass:"block-setting-box"},[e("h3",[t._v(t._s(t.$L("WebDAV")))]),e("div",{staticClass:"form-box"},[t.webDavStatus.path_conflicts>0?e("Alert",{attrs:{type:"error"}},[t._v(" "+t._s(t.$L("\u53D1\u73B0(*)\u7EC4\u540C\u8DEF\u5F84\u6587\u4EF6\uFF0C\u5904\u7406\u540E\u624D\u80FD\u542F\u7528 WebDAV",t.webDavStatus.path_conflicts))+" "),e("Button",{staticStyle:{"margin-top":"8px"},attrs:{slot:"desc"},on:{click:t.openWebDavConflicts},slot:"desc"},[t._v(t._s(t.$L("\u67E5\u770B\u51B2\u7A81\u6587\u4EF6")))])],1):t._e(),e("FormItem",{attrs:{label:t.$L("\u542F\u7528 WebDAV")}},[e("i-switch",{attrs:{"true-value":"open","false-value":"close",disabled:t.webDavStatus.path_conflicts>0&&t.formData.webdav_enabled!=="open"},model:{value:t.formData.webdav_enabled,callback:function(a){t.$set(t.formData,"webdav_enabled",a)},expression:"formData.webdav_enabled"}})],1),t.formData.webdav_enabled==="open"?[e("FormItem",{attrs:{label:t.$L("\u5141\u8BB8\u8303\u56F4")}},[e("RadioGroup",{model:{value:t.formData.webdav_permission_type,callback:function(a){t.$set(t.formData,"webdav_permission_type",a)},expression:"formData.webdav_permission_type"}},[e("Radio",{attrs:{label:"all"}},[t._v(t._s(t.$L("\u6240\u6709\u4EBA")))]),e("Radio",{attrs:{label:"appoint"}},[t._v(t._s(t.$L("\u6307\u5B9A\u6210\u5458")))])],1)],1),t.formData.webdav_permission_type==="appoint"?e("FormItem",{attrs:{label:t.$L("\u6307\u5B9A\u4EBA\u5458")}},[e("UserSelect",{attrs:{"multiple-max":200,"avatar-name":"","show-disable":"",title:t.$L("\u8BF7\u9009\u62E9\u6307\u5B9A\u4EBA\u5458")},model:{value:t.formData.webdav_permission_userids,callback:function(a){t.$set(t.formData,"webdav_permission_userids",a)},expression:"formData.webdav_permission_userids"}})],1):t._e(),e("FormItem",{attrs:{label:t.$L("\u6BCF\u4EBA\u5E94\u7528\u5BC6\u7801\u4E0A\u9650")}},[e("InputNumber",{attrs:{min:1,max:20},model:{value:t.formData.webdav_max_credentials,callback:function(a){t.$set(t.formData,"webdav_max_credentials",a)},expression:"formData.webdav_max_credentials"}})],1),e("FormItem",{attrs:{label:t.$L("\u9ED8\u8BA4\u6709\u6548\u671F")}},[e("InputNumber",{attrs:{min:1,max:365},model:{value:t.formData.webdav_default_expire_days,callback:function(a){t.$set(t.formData,"webdav_default_expire_days",a)},expression:"formData.webdav_default_expire_days"}}),e("span",{staticStyle:{"margin-left":"8px"}},[t._v(t._s(t.$L("[day_unit].\u5929")))])],1),e("FormItem",{attrs:{label:t.$L("\u6700\u957F\u6709\u6548\u671F")}},[e("InputNumber",{attrs:{min:1,max:3650},model:{value:t.formData.webdav_max_expire_days,callback:function(a){t.$set(t.formData,"webdav_max_expire_days",a)},expression:"formData.webdav_max_expire_days"}}),e("span",{staticStyle:{"margin-left":"8px"}},[t._v(t._s(t.$L("[day_unit].\u5929")))])],1),e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u7528\u6237\u53EF\u5728\u6587\u4EF6\u9875\u9762\u53F3\u4E0A\u89D2\u7684\u66F4\u591A\u83DC\u5355\u4E2D\u7BA1\u7406 WebDAV \u5E94\u7528\u5BC6\u7801")))])]:t._e()],2)])]),t.embedded?t._e():e("div",{staticClass:"setting-footer"},[e("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),e("Button",{attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1),e("Modal",{attrs:{title:t.$L("WebDAV \u8DEF\u5F84\u51B2\u7A81"),width:"800","class-name":"webdav-conflict-modal","footer-hide":""},model:{value:t.conflictShow,callback:function(a){t.conflictShow=a},expression:"conflictShow"}},[e("Alert",{attrs:{type:"warning"}},[t._v(" "+t._s(t.$L("\u540C\u4E00\u62E5\u6709\u8005\u7684\u540C\u4E00\u76EE\u5F55\u4E2D\u5B58\u5728\u5B8C\u6574\u540D\u79F0\u76F8\u540C\u7684\u6587\u4EF6\uFF0CWebDAV \u65E0\u6CD5\u786E\u5B9A\u5E94\u8BBF\u95EE\u54EA\u4E00\u6761\u3002"))+" "),e("div",{attrs:{slot:"desc"},slot:"desc"},[t._v(t._s(t.$L("\u8BF7\u8BA9\u5BF9\u5E94\u62E5\u6709\u8005\u5728\u6587\u4EF6\u9875\u9762\u4FDD\u7559\u5176\u4E2D\u4E00\u6761\uFF0C\u5E76\u91CD\u547D\u540D\u6216\u5220\u9664\u5176\u4F59\u6587\u4EF6\uFF0C\u7136\u540E\u5237\u65B0\u68C0\u6D4B\u3002")))])]),e("div",{staticClass:"webdav-conflict-actions"},[e("Button",{attrs:{icon:"md-refresh",loading:t.conflictLoading>0},on:{click:function(a){return t.loadWebDavConflicts(t.conflictPage)}}},[t._v(t._s(t.$L("\u5237\u65B0\u68C0\u6D4B")))])],1),e("Table",{staticClass:"webdav-conflict-table",attrs:{columns:t.conflictColumns,data:t.conflictList,loading:t.conflictLoading>0}}),t.conflictTotal>t.conflictPageSize?e("Page",{attrs:{total:t.conflictTotal,current:t.conflictPage,"page-size":t.conflictPageSize,"show-total":""},on:{"on-change":t.loadWebDavConflicts}}):t._e()],1)],1)},C=[];const I={name:"SystemFileSetting",components:{UserSelect:f},props:{embedded:Boolean},data(){return{loadIng:0,webDavStatus:{},conflictShow:!1,conflictLoading:0,conflictList:[],conflictPage:1,conflictPageSize:20,conflictTotal:0,conflictColumns:[{title:this.$L("\u62E5\u6709\u8005"),minWidth:120,maxWidth:190,render:(t,{row:s})=>t("div",{class:"webdav-conflict-owner"},[t("div",{attrs:{title:s.owner.nickname||"-"}},s.owner.nickname||"-"),t("AutoTip",{class:"webdav-conflict-owner-detail"},`${s.owner.email||"-"} (ID: ${s.owner.userid})`)])},{title:this.$L("\u51B2\u7A81\u8DEF\u5F84"),minWidth:200,render:(t,{row:s})=>t("div",{class:"webdav-conflict-path-row"},[t("AutoTip",{class:"webdav-conflict-path"},s.path),t("Tooltip",{props:{content:this.$L("\u590D\u5236"),placement:"top",transfer:!0}},[t("button",{class:"webdav-conflict-path-copy",attrs:{type:"button"},on:{click:()=>this.copyText(s.path)}},[t("Icon",{props:{type:"md-copy",size:15}})])])])},{title:this.$L("\u51B2\u7A81\u8BB0\u5F55"),minWidth:180,render:(t,{row:s})=>t("div",s.files.map(e=>t("div",{class:"webdav-conflict-record"},[t("AutoTip",{class:"webdav-conflict-record-name"},`${e.full_name} (ID: ${e.id})`),t("span",{class:"webdav-conflict-record-actions"},[t("Tooltip",{props:{content:this.$L("\u91CD\u547D\u540D"),placement:"top",transfer:!0}},[t("button",{class:"webdav-conflict-icon-button",attrs:{type:"button"},on:{click:()=>this.confirmRenameConflictFile(s,e)}},[t("Icon",{props:{type:"md-create",size:15}})])]),e.can_open_location?t("Tooltip",{props:{content:this.$L("\u6253\u5F00\u4F4D\u7F6E"),placement:"top",transfer:!0}},[t("button",{class:"webdav-conflict-icon-button",attrs:{type:"button"},on:{click:()=>this.openConflictFile(s,e)}},[t("Icon",{props:{type:"md-folder-open",size:15}})])]):null])])))}],formData:{}}},mounted(){this.systemSetting()},computed:{...n(["userId"])},methods:{submitForm(){this.systemSetting(!0)},resetForm(){this.formData=$A.cloneJSON(this.formDatum_bak)},openWebDavConflicts(){this.conflictShow=!0,this.loadWebDavConflicts(1)},loadWebDavConflicts(t=1){this.conflictLoading++,this.$store.dispatch("call",{url:`file/dav/conflicts?page=${t}&pagesize=${this.conflictPageSize}`}).then(({data:s})=>{this.conflictPage=s.current_page||1,this.conflictTotal=s.total||0,this.conflictList=s.data||[],this.webDavStatus.path_conflicts=this.conflictTotal}).finally(s=>{this.conflictLoading--})},confirmRenameConflictFile(t,s){if(t.owner.userid===this.userId){this.renameConflictFile(s);return}$A.modalConfirm({language:!1,title:this.$L("\u91CD\u547D\u540D\u5176\u4ED6\u6210\u5458\u7684\u6587\u4EF6"),content:this.$L("\u4F60\u6B63\u5728\u91CD\u547D\u540D(*)\u7684\u79C1\u4EBA\u6587\u4EF6\uFF0C\u6B64\u64CD\u4F5C\u4F1A\u76F4\u63A5\u4FEE\u6539\u6587\u4EF6\u540D\u79F0\u3002",t.owner.nickname||t.owner.email||t.owner.userid),onOk:()=>$A.modalInput({title:this.$L("\u91CD\u547D\u540D"),placeholder:this.$L("\u8BF7\u8F93\u5165\u65B0\u540D\u79F0"),value:s.full_name,onOk:e=>this.submitConflictRename(s,e)},300)})},renameConflictFile(t){$A.modalInput({title:this.$L("\u91CD\u547D\u540D"),placeholder:this.$L("\u8BF7\u8F93\u5165\u65B0\u540D\u79F0"),value:t.full_name,onOk:s=>this.submitConflictRename(t,s)})},submitConflictRename(t,s){const e=(s||"").trim();return e?e===t.full_name?!1:this.$store.dispatch("call",{url:"file/dav/conflictrename",method:"post",data:{id:t.id,name:e}}).then(({msg:a})=>(this.loadWebDavConflicts(this.conflictPage),a)).catch(({msg:a})=>Promise.reject(a)):this.$L("\u8BF7\u8F93\u5165\u65B0\u540D\u79F0")},openConflictFile(t,s){this.conflictShow=!1,this.$store.dispatch("filePos",{folderId:s.location_parent_id||null,fileId:null,shakeId:s.id,board:s.location_board})},systemSetting(t,s=!1){this.loadIng++;const e=()=>this.$store.dispatch("call",{url:"system/setting/file?type="+(t?"save":"all"),data:this.formData}),a=()=>this.$store.dispatch("call",{url:"file/dav/adminsetting?type="+(t?"save":"all"),data:this.formData,method:t?"post":"get"}),i=()=>this.$store.dispatch("call",{url:"file/dav/adminstatus"});return(t?e().then(r=>a().then(m=>Promise.all([Promise.resolve(r),Promise.resolve(m),i()]))):Promise.all([e(),a(),i()])).then(([r,m,v])=>{t&&!s&&$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.formData=Object.assign({},r.data,m.data),this.webDavStatus=v.data||{},this.formDatum_bak=$A.cloneJSON(this.formData)}).catch(({msg:r})=>{if(t&&!s&&$A.modalError(r),s)return Promise.reject(r)}).finally(r=>{this.loadIng--})}}},_={};var S=l(I,x,C,!1,R,null,null,null);function R(t){for(let s in _)this[s]=_[s]}var w=function(){return S.exports}(),F=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{class:{"setting-component-item":!t.embedded,"system-task-priority":!0}},[e("div",[e("Row",{staticClass:"setting-color color-label-box"},[e("Col",{attrs:{span:"2"}},[t._v(t._s(t.$L("\u9ED8\u8BA4")))]),e("Col",{attrs:{span:"9"}},[t._v(t._s(t.$L("\u540D\u79F0")))]),e("Col",{attrs:{span:"4"}},[e("ETooltip",{attrs:{content:t.$L("\u6570\u503C\u8D8A\u5C0F\u7EA7\u522B\u8D8A\u9AD8"),"max-width":"auto",placement:"top",transfer:""}},[e("div",[e("Icon",{staticClass:"information",attrs:{type:"ios-information-circle-outline"}}),t._v(" "+t._s(t.$L("\u7EA7\u522B")))],1)])],1),e("Col",{attrs:{span:"4"}},[e("ETooltip",{attrs:{content:t.$L("\u4EFB\u52A1\u5B8C\u6210\u65F6\u95F4"),"max-width":"auto",placement:"top",transfer:""}},[e("div",[e("Icon",{staticClass:"information",attrs:{type:"ios-information-circle-outline"}}),t._v(" "+t._s(t.$L("\u5929\u6570")))],1)])],1),e("Col",{attrs:{span:"4"}},[t._v(t._s(t.$L("\u989C\u8272")))]),e("Col",{staticClass:"setting-row-action",attrs:{span:"1"}})],1),e("RadioGroup",{model:{value:t.defaultIndex,callback:function(a){t.defaultIndex=a},expression:"defaultIndex"}},t._l(t.formDatum,function(a,i){return e("Row",{key:i,staticClass:"setting-color"},[e("Col",{staticClass:"priority-default-col",attrs:{span:"2"}},[e("Radio",{attrs:{label:i}},[e("span")])],1),e("Col",{attrs:{span:"9"}},[e("Input",{attrs:{maxlength:20,placeholder:t.$L("\u8BF7\u8F93\u5165\u540D\u79F0")},model:{value:a.name,callback:function(o){t.$set(a,"name",o)},expression:"item.name"}})],1),e("Col",{attrs:{span:"4"}},[e("Input",{attrs:{type:"number"},model:{value:a.priority,callback:function(o){t.$set(a,"priority",o)},expression:"item.priority"}})],1),e("Col",{attrs:{span:"4"}},[e("Input",{attrs:{type:"number"},model:{value:a.days,callback:function(o){t.$set(a,"days",o)},expression:"item.days"}})],1),e("Col",{attrs:{span:"4"}},[e("ColorPicker",{attrs:{recommend:"",transfer:""},model:{value:a.color,callback:function(o){t.$set(a,"color",o)},expression:"item.color"}})],1),e("Col",{staticClass:"setting-row-action",attrs:{span:"1"}},[e("Tooltip",{attrs:{content:t.formDatum.length>1?t.$L("\u5220\u9664"):t.$L("\u81F3\u5C11\u4FDD\u7559\u4E00\u9879"),placement:"top",transfer:""}},[e("Button",{attrs:{type:"text",icon:"ios-trash-outline",disabled:t.formDatum.length<=1},on:{click:function(o){return t.delDatum(i)}}})],1)],1)],1)}),1),e("div",{staticClass:"setting-add-action"},[e("Button",{attrs:{type:"default",icon:"md-add"},on:{click:t.addDatum}},[t._v(t._s(t.$L("\u6DFB\u52A0\u4F18\u5148\u7EA7")))])],1)],1),t.embedded?t._e():e("div",{staticClass:"setting-footer"},[e("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),e("Button",{attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)])},j=[];const A={name:"SystemTaskPriority",props:{embedded:Boolean},data(){return{loadIng:0,formDatum:[],defaultIndex:0,nullDatum:{name:"",priority:1,days:1,color:"#84C56A",is_default:0}}},mounted(){this.systemSetting()},computed:{...n(["taskPriority"])},watch:{taskPriority:{handler(t){this.formDatum=$A.cloneJSON(t);const s=this.formDatum.findIndex(e=>$A.runNum(e.is_default)===1||e.is_default===!0||e.default);this.defaultIndex=s>-1?s:0,this.applyDefaultIndex(),this.formDatum.length===0&&this.addDatum()},immediate:!0},defaultIndex(){this.applyDefaultIndex()}},methods:{submitForm(){this.systemSetting(!0)},resetForm(){this.formDatum=$A.cloneJSON(this.taskPriority);const t=this.formDatum.findIndex(s=>$A.runNum(s.is_default)===1||s.is_default===!0||s.default);this.defaultIndex=t>-1?t:0,this.applyDefaultIndex()},addDatum(){this.formDatum.push($A.cloneJSON(this.nullDatum)),this.formDatum.length===1&&(this.defaultIndex=0,this.applyDefaultIndex())},delDatum(t){this.formDatum.length<=1||$A.modalConfirm({title:"\u786E\u8BA4\u5220\u9664",content:"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u4F18\u5148\u7EA7\u5417\uFF1F",onOk:()=>{const s=t===this.defaultIndex;this.formDatum.splice(t,1),s?this.defaultIndex=0:t{t.is_default=s===this.defaultIndex?1:0})},systemSetting(t,s=!1){return this.loadIng++,this.applyDefaultIndex(),this.$store.dispatch("call",{url:"system/priority?type="+(t?"save":"get"),method:"post",data:{list:this.formDatum}}).then(({data:e})=>{t&&!s&&$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.$store.state.taskPriority=$A.cloneJSON(e)}).catch(({msg:e})=>{if(t&&!s&&$A.modalError(e),s)return Promise.reject(e)}).finally(e=>{this.loadIng--})}}},p={};var P=l(A,F,j,!1,T,null,null,null);function T(t){for(let s in p)this[s]=p[s]}var G=function(){return P.exports}(),O=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"setting-component-item"},[e("Form",t._b({ref:"formDatum",attrs:{model:t.formDatum},nativeOn:{submit:function(a){a.preventDefault()}}},"Form",t.formOptions,!1),[t.scope==="account"?e("div",{staticClass:"block-setting-box"},[e("h3",[t._v(t._s(t.$L("\u5E10\u53F7\u4E0E\u5B89\u5168")))]),e("div",{staticClass:"form-box"},[e("FormItem",{attrs:{label:t.$L("\u5141\u8BB8\u6CE8\u518C"),prop:"reg"}},[e("RadioGroup",{model:{value:t.formDatum.reg,callback:function(a){t.$set(t.formDatum,"reg",a)},expression:"formDatum.reg"}},[e("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5141\u8BB8")))]),e("Radio",{attrs:{label:"invite"}},[t._v(t._s(t.$L("\u9080\u8BF7\u7801")))]),e("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u7981\u6B62")))])],1),t.formDatum.reg=="open"?e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5141\u8BB8\uFF1A\u5F00\u653E\u6CE8\u518C\u529F\u80FD\u3002")))]):t.formDatum.reg=="close"?e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u7981\u6B62\uFF1A\u5173\u95ED\u6CE8\u518C\u529F\u80FD\u3002")))]):t.formDatum.reg=="invite"?[e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u9080\u8BF7\u7801\uFF1A\u6CE8\u518C\u65F6\u9700\u586B\u5199\u4E0B\u65B9\u9080\u8BF7\u7801\u3002")))]),e("Input",{staticStyle:{width:"220px","margin-top":"6px"},model:{value:t.formDatum.reg_invite,callback:function(a){t.$set(t.formDatum,"reg_invite",a)},expression:"formDatum.reg_invite"}},[e("span",{attrs:{slot:"prepend"},slot:"prepend"},[t._v(t._s(t.$L("\u9080\u8BF7\u7801")))])])]:t._e()],2),["open","invite"].includes(t.formDatum.reg)?e("FormItem",{attrs:{label:t.$L("\u6CE8\u518C\u8EAB\u4EFD"),prop:"reg_identity"}},[e("RadioGroup",{model:{value:t.formDatum.reg_identity,callback:function(a){t.$set(t.formDatum,"reg_identity",a)},expression:"formDatum.reg_identity"}},[e("Radio",{attrs:{label:"normal"}},[t._v(t._s(t.$L("\u6B63\u5E38\u5E10\u53F7")))]),e("Radio",{attrs:{label:"temp"}},[t._v(t._s(t.$L("\u4E34\u65F6\u5E10\u53F7")))])],1),t.formDatum.reg_identity=="temp"?e("Input",{staticStyle:{width:"220px","margin-top":"6px"},attrs:{placeholder:t.$L("\u4E34\u65F6\u5E10\u53F7")},model:{value:t.formDatum.temp_account_alias,callback:function(a){t.$set(t.formDatum,"temp_account_alias",a)},expression:"formDatum.temp_account_alias"}},[e("span",{attrs:{slot:"prepend"},slot:"prepend"},[t._v(t._s(t.$L("\u522B\u540D")))])]):t._e(),e("div",{staticClass:"form-tip form-list"},[e("p",[t._v(t._s(t.$L("\u4E34\u65F6\u5E10\u53F7"))+"\uFF1A")]),e("ol",[e("li",[t._v(t._s(t.$L("\u7981\u6B62\u67E5\u770B\u5171\u4EAB\u6240\u6709\u4EBA\u7684\u6587\u4EF6\u3002")))]),e("li",[t._v(t._s(t.$L("\u7981\u6B62\u53D1\u8D77\u4F1A\u8BDD\u3002")))]),e("li",[t._v(t._s(t.$L("\u7981\u6B62\u521B\u5EFA\u7FA4\u804A\u3002")))]),e("li",[t._v(t._s(t.$L("\u7981\u6B62\u62E8\u6253\u7535\u8BDD\u3002")))]),e("li",[t._v(t._s(t.$L("\u7981\u6B62\u6253\u5305\u4E0B\u8F7D\u6587\u4EF6\u3002")))])])])],1):t._e(),e("FormItem",{attrs:{label:t.$L("\u767B\u5F55\u9A8C\u8BC1\u7801"),prop:"loginCode"}},[e("RadioGroup",{model:{value:t.formDatum.login_code,callback:function(a){t.$set(t.formDatum,"login_code",a)},expression:"formDatum.login_code"}},[e("Radio",{attrs:{label:"auto"}},[t._v(t._s(t.$L("\u81EA\u52A8")))]),e("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),e("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),t.formDatum.login_code=="auto"?e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u81EA\u52A8\uFF1A\u5BC6\u7801\u8F93\u5165\u9519\u8BEF\u540E\u5FC5\u987B\u6DFB\u52A0\u9A8C\u8BC1\u7801\u3002")))]):t.formDatum.login_code=="open"?e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5F00\u542F\uFF1A\u6BCF\u6B21\u767B\u5F55\u90FD\u9700\u8981\u56FE\u5F62\u9A8C\u8BC1\u7801\u3002")))]):t.formDatum.login_code=="close"?e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5173\u95ED\uFF1A\u4E0D\u9700\u8981\u8F93\u5165\u56FE\u5F62\u9A8C\u8BC1\u3002")))]):t._e()],1),e("FormItem",{attrs:{label:t.$L("\u5BC6\u7801\u7B56\u7565"),prop:"passwordPolicy"}},[e("RadioGroup",{model:{value:t.formDatum.password_policy,callback:function(a){t.$set(t.formDatum,"password_policy",a)},expression:"formDatum.password_policy"}},[e("Radio",{attrs:{label:"simple"}},[t._v(t._s(t.$L("\u7B80\u5355")))]),e("Radio",{attrs:{label:"complex"}},[t._v(t._s(t.$L("\u590D\u6742")))])],1),t.formDatum.password_policy=="simple"?e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u7B80\u5355\uFF1A\u5927\u4E8E\u6216\u7B49\u4E8E6\u4E2A\u5B57\u7B26\u3002")))]):t.formDatum.password_policy=="complex"?e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u590D\u6742\uFF1A\u5927\u4E8E\u6216\u7B49\u4E8E6\u4E2A\u5B57\u7B26\uFF0C\u5305\u542B\u6570\u5B57\u3001\u5B57\u6BCD\u5927\u5C0F\u5199\u6216\u8005\u7279\u6B8A\u5B57\u7B26\u3002")))]):t._e()],1)],1)]):t._e(),t.scope==="project"?e("div",{staticClass:"block-setting-box"},[e("h3",[t._v(t._s(t.$L("\u9879\u76EE\u8BBE\u7F6E")))]),e("div",{staticClass:"form-box"},[e("FormItem",{attrs:{label:t.$L("\u9080\u8BF7\u9879\u76EE"),prop:"projectInvite"}},[e("RadioGroup",{model:{value:t.formDatum.project_invite,callback:function(a){t.$set(t.formDatum,"project_invite",a)},expression:"formDatum.project_invite"}},[e("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),e("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),t.formDatum.project_invite=="open"?e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5F00\u542F\uFF1A\u9879\u76EE\u7BA1\u7406\u5458\u53EF\u751F\u6210\u94FE\u63A5\u9080\u8BF7\u6210\u5458\u52A0\u5165\u9879\u76EE\u3002")))]):t._e()],1),e("FormItem",{attrs:{label:t.$L("\u521B\u5EFA\u9879\u76EE"),prop:"project_add_permission"}},[e("CheckboxGroup",{attrs:{value:t.formDatum.project_add_permission||[]},on:{"on-change":t.onProjectAddPermissionChange}},[e("Checkbox",{attrs:{label:"all"}},[t._v(t._s(t.$L("\u6240\u6709\u4EBA")))]),e("Checkbox",{attrs:{label:"departmentOwner"}},[t._v(t._s(t.$L("\u90E8\u95E8\u8D1F\u8D23\u4EBA")))]),e("Checkbox",{attrs:{label:"appoint"}},[t._v(t._s(t.$L("\u6307\u5B9A\u4EBA\u5458")))])],1),t.projectAddAll?e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u6240\u6709\u4EBA\uFF1A\u6240\u6709\u6210\u5458\u5747\u53EF\u521B\u5EFA\u9879\u76EE\u3002")))]):e("div",{staticClass:"form-tip form-list"},[e("p",[t._v(t._s(t.$L("\u53EF\u521B\u5EFA\u9879\u76EE\u7684\u4EBA\u5458"))+"\uFF1A")]),e("ol",[e("li",[t._v(t._s(t.$L("\u7CFB\u7EDF\u7BA1\u7406\u5458\uFF08\u59CB\u7EC8\u53EF\u521B\u5EFA\uFF0C\u4E0D\u53D7\u5F00\u5173\u9650\u5236\uFF09\u3002")))]),(t.formDatum.project_add_permission||[]).includes("departmentOwner")?e("li",[t._v(t._s(t.$L("\u90E8\u95E8\u8D1F\u8D23\u4EBA\u4E0E\u90E8\u95E8\u7BA1\u7406\u5458\u3002")))]):t._e(),(t.formDatum.project_add_permission||[]).includes("appoint")?e("li",[t._v(t._s(t.$L("\u4E0B\u65B9\u6307\u5B9A\u7684\u4EBA\u5458\u3002")))]):t._e()])]),(t.formDatum.project_add_permission||[]).includes("appoint")?[e("UserSelect",{staticStyle:{"margin-top":"6px"},attrs:{"multiple-max":200,"avatar-name":"","show-disable":"",title:t.$L("\u8BF7\u9009\u62E9\u6307\u5B9A\u4EBA\u5458")},model:{value:t.formDatum.project_add_userids,callback:function(a){t.$set(t.formDatum,"project_add_userids",a)},expression:"formDatum.project_add_userids"}}),e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u6307\u5B9A\u4EBA\u5458\u6700\u591A\u53EF\u9009\u62E9200\u4EBA")))])]:t._e()],2),e("FormItem",{attrs:{label:t.$L("\u90E8\u95E8\u8D1F\u8D23\u4EBA\u89C6\u89D2"),prop:"department_owner_project_view"}},[e("RadioGroup",{model:{value:t.formDatum.department_owner_project_view,callback:function(a){t.$set(t.formDatum,"department_owner_project_view",a)},expression:"formDatum.department_owner_project_view"}},[e("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),e("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),t.formDatum.department_owner_project_view=="open"?e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5F00\u542F\u540E\uFF0C\u90E8\u95E8\u8D1F\u8D23\u4EBA/\u90E8\u95E8\u7BA1\u7406\u5458\u53EF\u53EA\u8BFB\u67E5\u770B\u672C\u90E8\u95E8\u53CA\u4E0B\u7EA7\u90E8\u95E8\u6210\u5458\u53C2\u4E0E\u7684\u9879\u76EE\u548C\u9879\u76EE\u5185\u5168\u90E8\u4EFB\u52A1\u3002")))]):t._e()],1)],1)]):t._e(),t.scope==="project"?e("div",{staticClass:"block-setting-box"},[e("h3",[t._v(t._s(t.$L("\u9879\u76EE\u6A21\u677F")))]),e("div",{staticClass:"form-box"},[e("SystemColumnTemplate",{ref:"columnTemplate",attrs:{embedded:""}})],1)]):t._e(),t.scope==="task"?e("div",{staticClass:"block-setting-box"},[e("h3",[t._v(t._s(t.$L("\u4EFB\u52A1\u8BBE\u7F6E")))]),e("div",{staticClass:"form-box"},[e("FormItem",{attrs:{label:t.$L("\u81EA\u52A8\u5F52\u6863"),prop:"autoArchived"}},[e("RadioGroup",{attrs:{value:t.formDatum.auto_archived},on:{"on-change":t.formArchived}},[e("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),e("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u4EFB\u52A1\u5B8C\u6210\u540E\u81EA\u52A8\u5F52\u6863\u3002")))]),t.formDatum.auto_archived=="open"?e("ETooltip",{attrs:{placement:"right",disabled:t.$isEEUIApp||t.windowTouch}},[e("div",{staticClass:"setting-auto-day"},[e("Input",{attrs:{type:"number"},model:{value:t.formDatum.archived_day,callback:function(a){t.$set(t.formDatum,"archived_day",a)},expression:"formDatum.archived_day"}},[e("span",{attrs:{slot:"append"},slot:"append"},[t._v(t._s(t.$L("[day_unit].\u5929")))])])],1),e("div",{attrs:{slot:"content"},slot:"content"},[t._v(t._s(t.$L("\u4EFB\u52A1\u5B8C\u6210(*)\u5929\u540E\u81EA\u52A8\u5F52\u6863\u3002",t.formDatum.archived_day||"n")))])]):t._e()],1),e("FormItem",{attrs:{label:t.$L("\u53EF\u89C1\u6027\u9009\u9879"),prop:"taskVisible"}},[e("RadioGroup",{model:{value:t.formDatum.task_visible,callback:function(a){t.$set(t.formDatum,"task_visible",a)},expression:"formDatum.task_visible"}},[e("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u4FDD\u6301")))]),e("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u81EA\u52A8")))])],1),t.formDatum.task_visible=="open"?e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u4FDD\u6301\uFF1A\u4EFB\u52A1\u8BE6\u60C5\u9875\u53EF\u89C1\u6027\u9009\u9879\u4FDD\u6301\u663E\u793A\u3002")))]):t.formDatum.task_visible=="close"?e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u81EA\u52A8\uFF1A\u9ED8\u8BA4\u503C\u60C5\u51B5\u4E0B\u663E\u793A\u5728\u5408\u5E76\u9879\u76EE\uFF0C\u8BBE\u7F6E\u65F6\u4FDD\u6301\u663E\u793A\u3002")))]):t._e()],1),e("FormItem",{attrs:{label:t.$L("\u4EFB\u52A1\u9ED8\u8BA4\u65F6\u95F4"),prop:"taskDefaultTime"}},[e("TimePicker",{attrs:{type:"timerange",format:"HH:mm",placeholder:t.$L("\u8BF7\u9009\u62E9\u9ED8\u8BA4\u65F6\u95F4"),transfer:""},model:{value:t.formDatum.task_default_time,callback:function(a){t.$set(t.formDatum,"task_default_time",a)},expression:"formDatum.task_default_time"}}),e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u6DFB\u52A0\u4EFB\u52A1\u8BA1\u5212\u65F6\u95F4\u9ED8\u8BA4\u65F6\u5206\u3002")))])],1),e("FormItem",{attrs:{label:t.$L("\u672A\u9886\u4EFB\u52A1\u63D0\u9192"),prop:"autoArchived"}},[e("RadioGroup",{attrs:{value:t.formDatum.unclaimed_task_reminder},on:{"on-change":t.formTaskReminder}},[e("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),e("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5F00\u542F\u540E\u6BCF\u5929\u6309\u8BBE\u5B9A\u7684\u63D0\u9192\u65F6\u95F4\u5728\u9879\u76EE\u7FA4\u804A\u4E2D\u53D1\u9001\u672A\u9886\u53D6\u4EFB\u52A1\u901A\u77E5\u3002")))]),t.formDatum.unclaimed_task_reminder=="open"?e("TimePicker",{attrs:{format:"HH:mm",placeholder:t.$L("\u8BF7\u9009\u62E9\u63D0\u9192\u65F6\u95F4"),transfer:""},model:{value:t.formDatum.unclaimed_task_reminder_time,callback:function(a){t.$set(t.formDatum,"unclaimed_task_reminder_time",a)},expression:"formDatum.unclaimed_task_reminder_time"}}):t._e()],1),t.aiVisible?e("FormItem",{attrs:{label:t.$L("AI\u4EFB\u52A1\u5206\u6790"),prop:"taskAiAutoAnalyze"}},[e("RadioGroup",{model:{value:t.formDatum.task_ai_auto_analyze,callback:function(a){t.$set(t.formDatum,"task_ai_auto_analyze",a)},expression:"formDatum.task_ai_auto_analyze"}},[e("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),e("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),t.formDatum.task_ai_auto_analyze=="open"?e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u65B0\u5EFA\u4EFB\u52A1\u540EAI\u81EA\u52A8\u5206\u6790\u5E76\u7ED9\u51FA\u5EFA\u8BAE\u3002")))]):e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5173\u95ED\u540E\u6240\u6709\u9879\u76EE\u5C06\u4E0D\u518D\u81EA\u52A8\u5206\u6790\u4EFB\u52A1\u3002")))])],1):t._e(),e("FormItem",{attrs:{label:t.$L("\u4E2A\u4EBA\u4EFB\u52A1\u4E0A\u9650"),prop:"taskUserLimit"}},[e("div",{staticStyle:{width:"110px"}},[e("Input",{attrs:{type:"number",number:""},on:{"on-keyup":function(a){return t.$A.inputNumberLimit(a,1,2e3)}},scopedSlots:t._u([{key:"append",fn:function(){return[e("span",[t._v(t._s(t.$L("[task_unit].\u4E2A")))])]},proxy:!0}],null,!1,3283495674),model:{value:t.formDatum.task_user_limit,callback:function(a){t.$set(t.formDatum,"task_user_limit",a)},expression:"formDatum.task_user_limit"}})],1),e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u8D1F\u8D23\u4EBA\u6216\u534F\u52A9\u4EBA\u7684\u672A\u5B8C\u6210\u4EFB\u52A1\u6570\u91CF\u4E0A\u9650\uFF0C\u6700\u59272000\u3002")))])])],1)]):t._e(),t.scope==="task"?e("div",{staticClass:"block-setting-box"},[e("h3",[t._v(t._s(t.$L("\u6D41\u8F6C\u8BBE\u7F6E")))]),e("div",{staticClass:"form-box"},[e("FormItem",{attrs:{label:t.$L("\u4EFB\u52A1\u6D41\u8F6C")}},[e("RadioGroup",{model:{value:t.formDatum.project_task_handoff,callback:function(a){t.$set(t.formDatum,"project_task_handoff",a)},expression:"formDatum.project_task_handoff"}},[e("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),e("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1)],1),t.formDatum.project_task_handoff==="open"?[e("FormItem",{attrs:{label:t.$L("\u90E8\u95E8\u89C6\u89D2\u6307\u6D3E\u6743\u9650")}},[e("RadioGroup",{model:{value:t.formDatum.project_task_handoff_role,callback:function(a){t.$set(t.formDatum,"project_task_handoff_role",a)},expression:"formDatum.project_task_handoff_role"}},[e("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))]),e("Radio",{attrs:{label:"owner"}},[t._v(t._s(t.$L("\u4EC5\u90E8\u95E8\u8D1F\u8D23\u4EBA")))]),e("Radio",{attrs:{label:"managers"}},[t._v(t._s(t.$L("\u90E8\u95E8\u8D1F\u8D23\u4EBA\u53CA\u90E8\u95E8\u7BA1\u7406\u5458")))])],1)],1),e("FormItem",{attrs:{label:t.$L("\u53EF\u6307\u6D3E\u4EBA\u5458\u8303\u56F4")}},[e("RadioGroup",{model:{value:t.formDatum.project_task_handoff_candidates,callback:function(a){t.$set(t.formDatum,"project_task_handoff_candidates",a)},expression:"formDatum.project_task_handoff_candidates"}},[e("Radio",{attrs:{label:"department"}},[t._v(t._s(t.$L("\u7BA1\u7406\u90E8\u95E8\u8303\u56F4\u5185\u7684\u9879\u76EE\u6210\u5458")))]),e("Radio",{attrs:{label:"project"}},[t._v(t._s(t.$L("\u9879\u76EE\u5185\u5168\u90E8\u6210\u5458")))])],1)],1),e("FormItem",{attrs:{label:t.$L("\u539F\u8D1F\u8D23\u4EBA\u8C03\u6574\u8303\u56F4")}},[e("RadioGroup",{model:{value:t.formDatum.project_task_handoff_adjust,callback:function(a){t.$set(t.formDatum,"project_task_handoff_adjust",a)},expression:"formDatum.project_task_handoff_adjust"}},[e("Radio",{attrs:{label:"department"}},[t._v(t._s(t.$L("\u4EC5\u8C03\u6574\u7BA1\u7406\u8303\u56F4\u5185\u8D1F\u8D23\u4EBA")))]),e("Radio",{attrs:{label:"all"}},[t._v(t._s(t.$L("\u5141\u8BB8\u8C03\u6574\u5168\u90E8\u8D1F\u8D23\u4EBA")))])],1)],1),e("FormItem",{attrs:{label:t.$L("\u6307\u6D3E\u7559\u8A00\u8981\u6C42")}},[e("RadioGroup",{model:{value:t.formDatum.project_task_handoff_note,callback:function(a){t.$set(t.formDatum,"project_task_handoff_note",a)},expression:"formDatum.project_task_handoff_note"}},[e("Radio",{attrs:{label:"optional"}},[t._v(t._s(t.$L("\u9009\u586B")))]),e("Radio",{attrs:{label:"required"}},[t._v(t._s(t.$L("\u5FC5\u586B")))])],1)],1)]:t._e()],2)]):t._e(),t.scope==="task"?e("div",{staticClass:"block-setting-box"},[e("h3",[t._v(t._s(t.$L("\u4EFB\u52A1\u4F18\u5148\u7EA7")))]),e("div",{staticClass:"form-box"},[e("SystemTaskPriority",{ref:"taskPriority",attrs:{embedded:""}})],1)]):t._e(),t.scope==="message"?e("div",{staticClass:"block-setting-box"},[e("h3",[t._v(t._s(t.$L("\u6D88\u606F\u8BBE\u7F6E")))]),e("div",{staticClass:"form-box"},[e("FormItem",{attrs:{label:t.$L("\u81EA\u52A8\u8FDB\u5165\u5168\u5458\u7FA4"),prop:"allGroupAutoin"}},[e("RadioGroup",{model:{value:t.formDatum.all_group_autoin,callback:function(a){t.$set(t.formDatum,"all_group_autoin",a)},expression:"formDatum.all_group_autoin"}},[e("Radio",{attrs:{label:"yes"}},[t._v(t._s(t.$L("\u81EA\u52A8")))]),e("Radio",{attrs:{label:"no"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),t.formDatum.all_group_autoin=="yes"?e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u81EA\u52A8\uFF1A\u6CE8\u518C\u6210\u529F\u540E\u81EA\u52A8\u8FDB\u5165\u5168\u5458\u7FA4\u3002")))]):t.formDatum.all_group_autoin=="no"?e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5173\u95ED\uFF1A\u5176\u4ED6\u6210\u5458\u901A\u8FC7@\u9080\u8BF7\u8FDB\u5165\u3002")))]):t._e()],1),e("FormItem",{attrs:{label:t.$L("\u5168\u5458\u7FA4\u7EC4\u7981\u8A00"),prop:"allGroupMute"}},[e("RadioGroup",{model:{value:t.formDatum.all_group_mute,callback:function(a){t.$set(t.formDatum,"all_group_mute",a)},expression:"formDatum.all_group_mute"}},[e("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u653E")))]),e("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u7981\u8A00")))])],1),t.formDatum.all_group_mute=="open"?e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5F00\u653E\uFF1A\u6240\u6709\u4EBA\u90FD\u53EF\u4EE5\u5728\u5168\u5458\u7FA4\u7EC4\u53D1\u8A00\u3002")))]):t.formDatum.all_group_mute=="close"?e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u7981\u8A00\uFF1A\u9664\u7BA1\u7406\u5458\u5916\u6240\u6709\u4EBA\u90FD\u7981\u6B62\u5728\u5168\u5458\u7FA4\u7EC4\u53D1\u8A00\u3002")))]):t._e()],1),e("FormItem",{attrs:{label:t.$L("\u79C1\u804A\u7981\u8A00"),prop:"userPrivateChatMute"}},[e("RadioGroup",{model:{value:t.formDatum.user_private_chat_mute,callback:function(a){t.$set(t.formDatum,"user_private_chat_mute",a)},expression:"formDatum.user_private_chat_mute"}},[e("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u653E")))]),e("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u7981\u8A00")))])],1),t.formDatum.user_private_chat_mute=="open"?e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5F00\u653E\uFF1A\u6240\u6709\u4EBA\u90FD\u53EF\u4EE5\u76F8\u4E92\u53D1\u8D77\u4E2A\u4EBA\u804A\u5929\u3002")))]):t.formDatum.user_private_chat_mute=="close"?e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u7981\u8A00\uFF1A\u9664\u7BA1\u7406\u5458\u5916\u6240\u6709\u4EBA\u90FD\u7981\u6B62\u53D1\u8D77\u4E2A\u4EBA\u804A\u5929\u3002")))]):t._e()],1),e("FormItem",{attrs:{label:t.$L("\u7FA4\u804A\u7981\u8A00"),prop:"userGroupChatMute"}},[e("RadioGroup",{model:{value:t.formDatum.user_group_chat_mute,callback:function(a){t.$set(t.formDatum,"user_group_chat_mute",a)},expression:"formDatum.user_group_chat_mute"}},[e("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u653E")))]),e("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u7981\u8A00")))])],1),t.formDatum.user_group_chat_mute=="open"?e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5F00\u653E\uFF1A\u5141\u8BB8\u4E2A\u4EBA\u7FA4\u7EC4\u804A\u5929\u53D1\u8A00\u3002")))]):t.formDatum.user_group_chat_mute=="close"?e("div",{staticClass:"form-tip form-list"},[e("ol",[e("li",[t._v(t._s(t.$L("\u9664\u7BA1\u7406\u5458\u5916\u7981\u6B62\u4E2A\u4EBA\u7FA4\u7EC4\u804A\u5929\u53D1\u8A00\u3002")))]),e("li",[t._v(t._s(t.$L("\u6CE8\u610F\uFF0C\u4EC5\u7981\u6B62\u4E2A\u4EBA\u7FA4\u7EC4\uFF0C\u5176\u4ED6\u7C7B\u578B\u7684\u7FA4\u7EC4\u4E0D\u7981\u6B62\uFF0C\u6BD4\u5982\uFF1A\u90E8\u95E8\u7FA4\u804A\u3001\u9879\u76EE\u7FA4\u804A\u7B49\u7CFB\u7EDF\u7FA4\u804A\u3002")))])])]):t._e()],1),e("FormItem",{attrs:{label:t.$L("\u804A\u5929\u8D44\u6599"),prop:"chatInformation"}},[e("RadioGroup",{model:{value:t.formDatum.chat_information,callback:function(a){t.$set(t.formDatum,"chat_information",a)},expression:"formDatum.chat_information"}},[e("Radio",{attrs:{label:"optional"}},[t._v(t._s(t.$L("\u53EF\u9009")))]),e("Radio",{attrs:{label:"required"}},[t._v(t._s(t.$L("\u5FC5\u586B")))])],1),t.formDatum.chat_information=="required"?e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5FC5\u586B\uFF1A\u53D1\u9001\u804A\u5929\u5185\u5BB9\u524D\u5FC5\u987B\u8BBE\u7F6E\u6635\u79F0\u3001\u7535\u8BDD\u3002")))]):e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5982\u679C\u5FC5\u586B\uFF0C\u53D1\u9001\u804A\u5929\u524D\u5FC5\u987B\u8BBE\u7F6E\u6635\u79F0\u3001\u7535\u8BDD\u3002")))])],1),e("FormItem",{attrs:{label:t.$L("\u533F\u540D\u6D88\u606F"),prop:"anonMessage"}},[e("RadioGroup",{model:{value:t.formDatum.anon_message,callback:function(a){t.$set(t.formDatum,"anon_message",a)},expression:"formDatum.anon_message"}},[e("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),e("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),t.formDatum.anon_message=="open"?e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5141\u8BB8\u533F\u540D\u53D1\u9001\u6D88\u606F\u7ED9\u5176\u4ED6\u6210\u5458\u3002")))]):e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u7981\u6B62\u533F\u540D\u53D1\u9001\u6D88\u606F\u3002")))])],1),e("FormItem",{attrs:{label:t.$L("\u5F85\u529E\u8BBE\u7F6E\u6743\u9650"),prop:"todoSetPermission"}},[e("RadioGroup",{model:{value:t.formDatum.todo_set_permission,callback:function(a){t.$set(t.formDatum,"todo_set_permission",a)},expression:"formDatum.todo_set_permission"}},[e("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5141\u8BB8")))]),e("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u7981\u6B62")))])],1),t.formDatum.todo_set_permission=="open"?e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5141\u8BB8\uFF1A\u6240\u6709\u6210\u5458\u53EF\u8BBE\u7F6E/\u53D6\u6D88\u4ED6\u4EBA\u5F85\u529E\u3002")))]):e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u7981\u6B62\uFF1A\u4EC5\u672C\u4EBA\u3001\u7CFB\u7EDF\u7BA1\u7406\u5458\u3001\u7FA4\u4E3B\uFF08\u542B\u7FA4\u7BA1\u7406\u5458\uFF09\u3001\u9879\u76EE\u8D1F\u8D23\u4EBA\uFF08\u542B\u9879\u76EE\u7BA1\u7406\u5458\uFF09\u3001\u4EFB\u52A1\u8D1F\u8D23\u4EBA\u53EF\u8BBE\u7F6E/\u53D6\u6D88\u5F85\u529E\u3002")))])],1),e("FormItem",{attrs:{label:t.$L("\u7AEF\u5230\u7AEF\u52A0\u5BC6"),prop:"e2eMessage"}},[e("RadioGroup",{model:{value:t.formDatum.e2e_message,callback:function(a){t.$set(t.formDatum,"e2e_message",a)},expression:"formDatum.e2e_message"}},[e("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),e("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),t.formDatum.e2e_message=="open"?e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u4F7F\u7528\u7AEF\u5230\u7AEF\u52A0\u5BC6\u4F20\u8F93\u6570\u636E\u3002")))]):e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5173\u95ED\u7AEF\u5230\u7AEF\u52A0\u5BC6\u4F20\u8F93\u6570\u636E\u3002")))])],1),e("FormItem",{attrs:{label:t.$L("\u64A4\u56DE\u6D88\u606F\u9650\u5236"),prop:"msgRevLimit"}},[e("div",{staticStyle:{width:"220px"}},[e("Input",{attrs:{type:"number",number:"",placeholder:t.$L("\u9ED8\u8BA4\u4E0D\u9650\u5236")},scopedSlots:t._u([{key:"append",fn:function(){return[e("span",[t._v(t._s(t.$L("\u5206\u949F")))])]},proxy:!0}],null,!1,2144141109),model:{value:t.formDatum.msg_rev_limit,callback:function(a){t.$set(t.formDatum,"msg_rev_limit",a)},expression:"formDatum.msg_rev_limit"}})],1),e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u6D88\u606F\u53D1\u51FA\u540E\u7684\u53EF\u64A4\u56DE\u65F6\u957F\u3002")))])]),e("FormItem",{attrs:{label:t.$L("\u4FEE\u6539\u6D88\u606F\u9650\u5236"),prop:"msgEditLimit"}},[e("div",{staticStyle:{width:"220px"}},[e("Input",{attrs:{type:"number",number:"",placeholder:t.$L("\u9ED8\u8BA4\u4E0D\u9650\u5236")},scopedSlots:t._u([{key:"append",fn:function(){return[e("span",[t._v(t._s(t.$L("\u5206\u949F")))])]},proxy:!0}],null,!1,2144141109),model:{value:t.formDatum.msg_edit_limit,callback:function(a){t.$set(t.formDatum,"msg_edit_limit",a)},expression:"formDatum.msg_edit_limit"}})],1),e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u6D88\u606F\u53D1\u51FA\u540E\u7684\u53EF\u4FEE\u6539\u65F6\u957F\u3002")))])])],1)]):t._e(),t.scope==="general"?e("div",{staticClass:"block-setting-box"},[e("h3",[t._v(t._s(t.$L("\u57FA\u7840\u8BBE\u7F6E")))]),e("div",{staticClass:"form-box"},[e("FormItem",{attrs:{label:t.$L("\u7CFB\u7EDF\u522B\u540D"),prop:"system_alias"}},[e("div",{staticStyle:{width:"220px"}},[e("Input",{model:{value:t.formDatum.system_alias,callback:function(a){t.$set(t.formDatum,"system_alias",a)},expression:"formDatum.system_alias"}})],1),e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u7528\u4E8E\u7F51\u9875\u6807\u9898\u3001\u90AE\u4EF6\u53D1\u9001\uFF0C\u4EE5\u53CA Web \u7AEF\u548C\u5BA2\u6237\u7AEF\u767B\u5F55\u9875\u7684\u6B22\u8FCE\u8BED\u3002")))])]),e("FormItem",{attrs:{label:t.$L("\u767B\u5F55\u9875 Logo"),prop:"login_logo"}},[e("ImgUpload",{attrs:{num:1,width:512,height:512,whcut:"percentage"},model:{value:t.formDatum.login_logo,callback:function(a){t.$set(t.formDatum,"login_logo",a)},expression:"formDatum.login_logo"}}),e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u7528\u4E8E Web \u7AEF\u548C\u5BA2\u6237\u7AEF\u767B\u5F55\u9875\uFF0C\u672A\u8BBE\u7F6E\u65F6\u4F7F\u7528\u9ED8\u8BA4 Logo\u3002")))])],1),e("FormItem",{attrs:{label:t.$L("\u6B22\u8FCE\u8BCD"),prop:"system_welcome"}},[e("div",{staticStyle:{width:"220px"}},[e("Input",{attrs:{placeholder:t.$L("\u6B22\u8FCE\u60A8\uFF0C(*)","{username}")},model:{value:t.formDatum.system_welcome,callback:function(a){t.$set(t.formDatum,"system_welcome",a)},expression:"formDatum.system_welcome"}})],1),e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u4EEA\u8868\u76D8\u6B22\u8FCE\u8BCD\uFF0C(*)\u4EE3\u8868\u7528\u6237\u6635\u79F0","{username}")))])])],1)]):t._e(),t.scope==="file"?e("div",{staticClass:"block-setting-box"},[e("h3",[t._v(t._s(t.$L("\u4E0A\u4F20\u4E0E\u5A92\u4F53\u5904\u7406")))]),e("div",{staticClass:"form-box"},[e("FormItem",{attrs:{label:t.$L("\u56FE\u7247\u4F18\u5316"),prop:"image_compress"}},[e("RadioGroup",{model:{value:t.formDatum.image_compress,callback:function(a){t.$set(t.formDatum,"image_compress",a)},expression:"formDatum.image_compress"}},[e("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),e("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u6570\u7801\u76F8\u673A4M\u7684\u56FE\u7247\uFF0C\u4F18\u5316\u540E\u4EC5\u6709700KB\u5DE6\u53F3\uFF0C\u800C\u4E14\u8089\u773C\u57FA\u672C\u770B\u4E0D\u51FA\u533A\u522B\u3002")))]),e("Input",{staticStyle:{width:"220px","margin-top":"6px"},attrs:{placeholder:t.$L("\u9ED8\u8BA4\uFF1A90")},model:{value:t.formDatum.image_quality,callback:function(a){t.$set(t.formDatum,"image_quality",a)},expression:"formDatum.image_quality"}},[e("span",{attrs:{slot:"prepend"},slot:"prepend"},[t._v(t._s(t.$L("\u538B\u7F29\u8D28\u91CF")))])]),e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u53D6\u503C\u8303\u56F4\uFF1A0-100\uFF0C\u5EFA\u8BAE\uFF1A90")))])],1),e("FormItem",{attrs:{label:t.$L("\u4FDD\u5B58\u7F51\u7EDC\u56FE\u7247"),prop:"image_save_local"}},[e("RadioGroup",{model:{value:t.formDatum.image_save_local,callback:function(a){t.$set(t.formDatum,"image_save_local",a)},expression:"formDatum.image_save_local"}},[e("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),e("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u662F\u5426\u5C06\u6D88\u606F\u4E2D\u7684\u7F51\u7EDC\u56FE\u7247\u4FDD\u5B58\u5230\u672C\u5730\u670D\u52A1\u5668\u3002")))])],1),e("FormItem",{attrs:{label:t.$L("\u6587\u4EF6\u4E0A\u4F20\u9650\u5236"),prop:"fileUploadLimit"}},[e("div",{staticStyle:{width:"220px"}},[e("Input",{attrs:{type:"number",number:"",placeholder:t.$L("\u9ED8\u8BA4 1G")},scopedSlots:t._u([{key:"append",fn:function(){return[e("span",[t._v("MB")])]},proxy:!0}],null,!1,2560425127),model:{value:t.formDatum.file_upload_limit,callback:function(a){t.$set(t.formDatum,"file_upload_limit",a)},expression:"formDatum.file_upload_limit"}})],1),e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5305\u542B\u6D88\u606F\u53D1\u9001\u7684\u6587\u4EF6")))])]),e("FormItem",{attrs:{label:t.$L("\u89C6\u9891\u8F6C\u6362"),prop:"convertVideo"}},[e("RadioGroup",{model:{value:t.formDatum.convert_video,callback:function(a){t.$set(t.formDatum,"convert_video",a)},expression:"formDatum.convert_video"}},[e("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),e("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),t.formDatum.convert_video=="open"?e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5C06MOV\u3001WEBM\u683C\u5F0F\u7684\u89C6\u9891\u8F6C\u6362\u4E3AMP4\u683C\u5F0F\u3002")))]):e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5173\u95ED\u89C6\u9891\u683C\u5F0F\u8F6C\u6362\u529F\u80FD\u3002")))])],1),e("FormItem",{attrs:{label:t.$L("\u89C6\u9891\u538B\u7F29"),prop:"compressVideo"}},[e("RadioGroup",{model:{value:t.formDatum.compress_video,callback:function(a){t.$set(t.formDatum,"compress_video",a)},expression:"formDatum.compress_video"}},[e("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),e("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),t.formDatum.compress_video=="open"?e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5BF9MP4\u683C\u5F0F\u7684\u89C6\u9891\u8FDB\u884C\u538B\u7F29\u5904\u7406\u3002")))]):e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5173\u95ED\u89C6\u9891\u538B\u7F29\u529F\u80FD\u3002")))])],1)],1)]):t._e(),t.scope==="file"?e("SystemFileSetting",{ref:"fileSetting",attrs:{embedded:""}}):t._e()],1),e("div",{staticClass:"setting-footer"},[e("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),e("Button",{attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},B=[];const E={general:["system_alias","login_logo","system_welcome"],account:["reg","reg_identity","reg_invite","temp_account_alias","login_code","password_policy"],project:["project_invite","project_add_permission","project_add_userids","department_owner_project_view"],task:["auto_archived","archived_day","task_visible","task_default_time","task_user_limit","unclaimed_task_reminder","unclaimed_task_reminder_time","task_ai_auto_analyze","project_task_handoff","project_task_handoff_role","project_task_handoff_candidates","project_task_handoff_adjust","project_task_handoff_note"],message:["chat_information","anon_message","e2e_message","msg_rev_limit","msg_edit_limit","all_group_mute","all_group_autoin","user_private_chat_mute","user_group_chat_mute","todo_set_permission"],file:["convert_video","compress_video","image_compress","image_quality","image_save_local","file_upload_limit"]},W={name:"SystemSetting",components:{ImgUpload:b,SystemTaskPriority:G,SystemFileSetting:w,SystemColumnTemplate:k,UserSelect:f},props:{scope:{type:String,required:!0}},data(){return{loadIng:0,formDatum:{}}},mounted(){this.systemSetting()},computed:{...$(["aiVisible"]),...n(["formOptions"]),projectAddAll(){return(this.formDatum.project_add_permission||[]).includes("all")}},methods:{onProjectAddPermissionChange(t){const s=this.formDatum.project_add_permission||[];let e=t;t.includes("all")&&t.length>1&&(e=s.includes("all")?t.filter(a=>a!=="all"):["all"]),e.length===0&&(e=["all"]),this.$set(this.formDatum,"project_add_permission",e)},submitForm(){this.$refs.formDatum.validate(t=>{t&&this.saveAll()})},resetForm(){var t,s,e;this.formDatum=$A.cloneJSON(this.formDatum_bak),(t=this.$refs.columnTemplate)==null||t.resetForm(),(s=this.$refs.taskPriority)==null||s.resetForm(),(e=this.$refs.fileSetting)==null||e.resetForm()},saveAll(){if(this.loadIng>0)return;const t={project:()=>this.$refs.columnTemplate.systemSetting(!0,!0),task:()=>this.$refs.taskPriority.systemSetting(!0,!0),file:()=>this.$refs.fileSetting.systemSetting(!0,!0)}[this.scope];this.loadIng++,this.saveSystemScope().then(()=>t==null?void 0:t()).then(()=>{$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.$store.dispatch("getUserInfo").catch(()=>{})}).catch(s=>$A.modalError(s)).finally(()=>{this.loadIng--})},saveSystemScope(){const s=E[this.scope].reduce((e,a)=>(e[a]=$A.cloneJSON(this.formDatum[a]),e),{});return this.$store.dispatch("call",{url:"system/setting?type=all",method:"post"}).then(({data:e})=>this.$store.dispatch("call",{url:"system/setting?type=save",method:"post",data:Object.assign({},e,s)})).then(({data:e})=>{this.setSystemDatum(e)}).catch(({msg:e})=>Promise.reject(e))},formArchived(t){this.formDatum={...this.formDatum,auto_archived:t}},formTaskReminder(t){this.formDatum={...this.formDatum,unclaimed_task_reminder:t}},systemSetting(t,s=!1){return this.loadIng++,this.$store.dispatch("call",{url:"system/setting?type="+(t?"save":"all"),method:"post",data:this.formDatum}).then(({data:e})=>{t&&!s&&($A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.$store.dispatch("getUserInfo").catch(()=>{})),this.setSystemDatum(e)}).catch(({msg:e})=>{if(t&&!s&&$A.modalError(e),s)return Promise.reject(e)}).finally(e=>{this.loadIng--})},setSystemDatum(t){this.formDatum=t,this.formDatum_bak=$A.cloneJSON(t),this.$store.state.systemConfig=Object.assign({},this.formDatum_bak,{__state:"success"})}}},u={};var N=l(W,O,B,!1,M,null,null,null);function M(t){for(let s in u)this[s]=u[s]}var z=function(){return N.exports}(),q=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"setting-item submit"},[e("Tabs",{model:{value:t.tabAction,callback:function(a){t.tabAction=a},expression:"tabAction"}},[e("TabPane",{attrs:{label:t.$L("\u57FA\u7840\u8BBE\u7F6E"),name:"general"}},[e("SystemSetting",{attrs:{scope:"general"}})],1),e("TabPane",{attrs:{label:t.$L("\u5E10\u53F7\u4E0E\u5B89\u5168"),name:"account"}},[e("SystemSetting",{attrs:{scope:"account"}})],1),e("TabPane",{attrs:{label:t.$L("\u9879\u76EE\u8BBE\u7F6E"),name:"project"}},[e("SystemSetting",{attrs:{scope:"project"}})],1),e("TabPane",{attrs:{label:t.$L("\u4EFB\u52A1\u8BBE\u7F6E"),name:"task"}},[e("SystemSetting",{attrs:{scope:"task"}})],1),e("TabPane",{attrs:{label:t.$L("\u6D88\u606F\u8BBE\u7F6E"),name:"message"}},[e("SystemSetting",{attrs:{scope:"message"}})],1),e("TabPane",{attrs:{label:t.$L("\u6587\u4EF6\u4E0E\u5B58\u50A8"),name:"file"}},[e("SystemSetting",{attrs:{scope:"file"}})],1)],1)],1)},V=[];const J=["general","account","project","task","message","file"],U={setting:"general",taskPriority:"task",columnTemplate:"project",fileSetting:"file"},H={components:{SystemSetting:z},data(){return{tabAction:this.tabFromRoute()}},watch:{"$route.query.tab"(){this.tabAction=this.tabFromRoute()}},methods:{tabFromRoute(){var s,e;const t=(e=(s=this.$route)==null?void 0:s.query)==null?void 0:e.tab;return J.includes(t)?t:U[t]||"general"}}},d={};var K=l(H,q,V,!1,Y,null,null,null);function Y(t){for(let s in d)this[s]=d[s]}var Jt=function(){return K.exports}();export{Jt as default};
+import{m as n,a as $}from"./vuex.cc7cb26e.js";import{n as l,U as f}from"./app.ef7047f7.js";import{I as b}from"./ImgUpload.434d067a.js";import"./jquery.6e4daff9.js";import"./@babel.9410f858.js";import"./dayjs.d20a4841.js";import"./localforage.743dffdd.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./vue.adba9046.js";import"./openpgp_hi.15f91b1d.js";import"./axios.37c7f908.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./view-design-hi.24419422.js";import"./html-to-md.f297036e.js";import"./lodash.8fcd6fd4.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vuedraggable.f464b992.js";import"./sortablejs.3488b922.js";import"./vue-resize-observer.5af23a43.js";import"./element-sea.f8a64907.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";import"./chunkedUpload.3cd238b0.js";import"./spark-md5.0443325f.js";var h=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{class:{"setting-component-item":!t.embedded}},[e("div",[e("Row",{staticClass:"setting-template"},[e("Col",{attrs:{span:"7"}},[t._v(t._s(t.$L("\u540D\u79F0")))]),e("Col",{attrs:{span:"16"}},[t._v(t._s(t.$L("\u9879\u76EE\u6A21\u677F")))]),e("Col",{staticClass:"setting-row-action",attrs:{span:"1"}})],1),t._l(t.formDatum,function(a,i){return e("Row",{key:i,staticClass:"setting-template"},[e("Col",{attrs:{span:"7"}},[e("Input",{attrs:{maxlength:20,placeholder:t.$L("\u8BF7\u8F93\u5165\u540D\u79F0")},model:{value:a.name,callback:function(o){t.$set(a,"name",o)},expression:"item.name"}})],1),e("Col",{attrs:{span:"16"}},[e("TagInput",{model:{value:a.columns,callback:function(o){t.$set(a,"columns",o)},expression:"item.columns"}})],1),e("Col",{staticClass:"setting-row-action",attrs:{span:"1"}},[e("Tooltip",{attrs:{content:t.formDatum.length>1?t.$L("\u5220\u9664"):t.$L("\u81F3\u5C11\u4FDD\u7559\u4E00\u9879"),placement:"top",transfer:""}},[e("Button",{attrs:{type:"text",icon:"ios-trash-outline",disabled:t.formDatum.length<=1},on:{click:function(o){return t.delDatum(i)}}})],1)],1)],1)}),e("Button",{staticClass:"setting-add-action",attrs:{type:"default",icon:"md-add"},on:{click:t.addDatum}},[t._v(t._s(t.$L("\u6DFB\u52A0\u6A21\u677F")))])],2),t.embedded?t._e():e("div",{staticClass:"setting-footer"},[e("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),e("Button",{attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)])},D=[];const L={name:"SystemColumnTemplate",props:{embedded:Boolean},data(){return{loadIng:0,formDatum:[],nullDatum:{name:"",columns:""}}},mounted(){this.systemSetting()},computed:{...n(["columnTemplate"])},watch:{columnTemplate:{handler(t){this.formDatum=$A.cloneJSON(t),this.formDatum.length===0&&this.addDatum()},immediate:!0}},methods:{submitForm(){this.systemSetting(!0)},resetForm(){this.formDatum=$A.cloneJSON(this.columnTemplate)},addDatum(){this.formDatum.push($A.cloneJSON(this.nullDatum))},delDatum(t){this.formDatum.length<=1||$A.modalConfirm({title:"\u786E\u8BA4\u5220\u9664",content:"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6A21\u677F\u5417\uFF1F",onOk:()=>{this.formDatum.splice(t,1)}})},systemSetting(t,s=!1){return this.loadIng++,this.$store.dispatch("call",{url:"system/column/template?type="+(t?"save":"get"),method:"post",data:{list:this.formDatum}}).then(({data:e})=>{t&&!s&&$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.$store.state.columnTemplate=$A.cloneJSON(e).map(a=>($A.isArray(a.columns)&&(a.columns=a.columns.join(",")),a))}).catch(({msg:e})=>{if(t&&!s&&$A.modalError(e),s)return Promise.reject(e)}).finally(e=>{this.loadIng--})}}},c={};var g=l(L,h,D,!1,y,null,null,null);function y(t){for(let s in c)this[s]=c[s]}var k=function(){return g.exports}(),x=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{class:{"setting-component-item":!t.embedded}},[e("div",[e("div",{staticClass:"block-setting-box"},[e("h3",[t._v(t._s(t.$L("\u6743\u9650\u8BBE\u7F6E")))]),e("div",{staticClass:"form-box"},[e("FormItem",{attrs:{label:t.$L("\u6253\u5305\u6743\u9650"),prop:"permission_pack_type"}},[e("RadioGroup",{model:{value:t.formData.permission_pack_type,callback:function(a){t.$set(t.formData,"permission_pack_type",a)},expression:"formData.permission_pack_type"}},[e("Radio",{attrs:{label:"all"}},[t._v(t._s(t.$L("\u5141\u8BB8\u6240\u6709\u4EBA")))]),e("Radio",{attrs:{label:"admin"}},[t._v(t._s(t.$L("\u4EC5\u9650\u7BA1\u7406\u5458")))]),e("Radio",{attrs:{label:"appointAllow"}},[t._v(t._s(t.$L("\u6307\u5B9A\u5141\u8BB8")))]),e("Radio",{attrs:{label:"appointProhibit"}},[t._v(t._s(t.$L("\u6307\u5B9A\u7981\u6B62")))])],1),t.formData.permission_pack_type==="all"?e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5141\u8BB8\u7CFB\u7EDF\u6240\u6709\u4EBA\u5458\u4F7F\u7528\u6587\u4EF6\u6253\u5305\u4E0B\u8F7D\u529F\u80FD")))]):t.formData.permission_pack_type==="admin"?e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u4EC5\u9650\u7BA1\u7406\u5458\u4F7F\u7528\u6587\u4EF6\u6253\u5305\u4E0B\u8F7D\u529F\u80FD")))]):t.formData.permission_pack_type==="appointAllow"?e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u6307\u5B9A\u5141\u8BB8\u7684\u4EBA\u5458\u4F7F\u7528\u6587\u4EF6\u6253\u5305\u4E0B\u8F7D\u529F\u80FD")))]):t.formData.permission_pack_type==="appointProhibit"?e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u6307\u5B9A\u7981\u6B62\u7684\u4EBA\u5458\u4F7F\u7528\u6587\u4EF6\u6253\u5305\u4E0B\u8F7D\u529F\u80FD")))]):t._e()],1),["appointAllow","appointProhibit"].includes(t.formData.permission_pack_type)?e("FormItem",{attrs:{label:t.$L("\u6307\u5B9A\u4EBA\u5458"),prop:"permission_pack_userid"}},[e("UserSelect",{attrs:{"multiple-max":200,"avatar-name":"","show-disable":"",title:t.$L("\u8BF7\u9009\u62E9\u6307\u5B9A\u4EBA\u5458")},model:{value:t.formData.permission_pack_userid,callback:function(a){t.$set(t.formData,"permission_pack_userid",a)},expression:"formData.permission_pack_userid"}}),e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u6307\u5B9A\u4EBA\u5458\u6700\u591A\u53EF\u9009\u62E9200\u4EBA")))])],1):t._e()],1)]),e("div",{staticClass:"block-setting-box"},[e("h3",[t._v(t._s(t.$L("WebDAV")))]),e("div",{staticClass:"form-box"},[t.webDavStatus.path_conflicts>0?e("Alert",{attrs:{type:"error"}},[t._v(" "+t._s(t.$L("\u53D1\u73B0(*)\u7EC4\u540C\u8DEF\u5F84\u6587\u4EF6\uFF0C\u5904\u7406\u540E\u624D\u80FD\u542F\u7528 WebDAV",t.webDavStatus.path_conflicts))+" "),e("Button",{staticStyle:{"margin-top":"8px"},attrs:{slot:"desc"},on:{click:t.openWebDavConflicts},slot:"desc"},[t._v(t._s(t.$L("\u67E5\u770B\u51B2\u7A81\u6587\u4EF6")))])],1):t._e(),e("FormItem",{attrs:{label:t.$L("\u542F\u7528 WebDAV")}},[e("i-switch",{attrs:{"true-value":"open","false-value":"close",disabled:t.webDavStatus.path_conflicts>0&&t.formData.webdav_enabled!=="open"},model:{value:t.formData.webdav_enabled,callback:function(a){t.$set(t.formData,"webdav_enabled",a)},expression:"formData.webdav_enabled"}})],1),t.formData.webdav_enabled==="open"?[e("FormItem",{attrs:{label:t.$L("\u5141\u8BB8\u8303\u56F4")}},[e("RadioGroup",{model:{value:t.formData.webdav_permission_type,callback:function(a){t.$set(t.formData,"webdav_permission_type",a)},expression:"formData.webdav_permission_type"}},[e("Radio",{attrs:{label:"all"}},[t._v(t._s(t.$L("\u6240\u6709\u4EBA")))]),e("Radio",{attrs:{label:"appoint"}},[t._v(t._s(t.$L("\u6307\u5B9A\u6210\u5458")))])],1)],1),t.formData.webdav_permission_type==="appoint"?e("FormItem",{attrs:{label:t.$L("\u6307\u5B9A\u4EBA\u5458")}},[e("UserSelect",{attrs:{"multiple-max":200,"avatar-name":"","show-disable":"",title:t.$L("\u8BF7\u9009\u62E9\u6307\u5B9A\u4EBA\u5458")},model:{value:t.formData.webdav_permission_userids,callback:function(a){t.$set(t.formData,"webdav_permission_userids",a)},expression:"formData.webdav_permission_userids"}})],1):t._e(),e("FormItem",{attrs:{label:t.$L("\u6BCF\u4EBA\u5E94\u7528\u5BC6\u7801\u4E0A\u9650")}},[e("InputNumber",{attrs:{min:1,max:20},model:{value:t.formData.webdav_max_credentials,callback:function(a){t.$set(t.formData,"webdav_max_credentials",a)},expression:"formData.webdav_max_credentials"}})],1),e("FormItem",{attrs:{label:t.$L("\u9ED8\u8BA4\u6709\u6548\u671F")}},[e("InputNumber",{attrs:{min:1,max:365},model:{value:t.formData.webdav_default_expire_days,callback:function(a){t.$set(t.formData,"webdav_default_expire_days",a)},expression:"formData.webdav_default_expire_days"}}),e("span",{staticStyle:{"margin-left":"8px"}},[t._v(t._s(t.$L("[day_unit].\u5929")))])],1),e("FormItem",{attrs:{label:t.$L("\u6700\u957F\u6709\u6548\u671F")}},[e("InputNumber",{attrs:{min:1,max:3650},model:{value:t.formData.webdav_max_expire_days,callback:function(a){t.$set(t.formData,"webdav_max_expire_days",a)},expression:"formData.webdav_max_expire_days"}}),e("span",{staticStyle:{"margin-left":"8px"}},[t._v(t._s(t.$L("[day_unit].\u5929")))])],1),e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u7528\u6237\u53EF\u5728\u6587\u4EF6\u9875\u9762\u53F3\u4E0A\u89D2\u7684\u66F4\u591A\u83DC\u5355\u4E2D\u7BA1\u7406 WebDAV \u5E94\u7528\u5BC6\u7801")))])]:t._e()],2)])]),t.embedded?t._e():e("div",{staticClass:"setting-footer"},[e("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),e("Button",{attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1),e("Modal",{attrs:{title:t.$L("WebDAV \u8DEF\u5F84\u51B2\u7A81"),width:"800","class-name":"webdav-conflict-modal","footer-hide":""},model:{value:t.conflictShow,callback:function(a){t.conflictShow=a},expression:"conflictShow"}},[e("Alert",{attrs:{type:"warning"}},[t._v(" "+t._s(t.$L("\u540C\u4E00\u62E5\u6709\u8005\u7684\u540C\u4E00\u76EE\u5F55\u4E2D\u5B58\u5728\u5B8C\u6574\u540D\u79F0\u76F8\u540C\u7684\u6587\u4EF6\uFF0CWebDAV \u65E0\u6CD5\u786E\u5B9A\u5E94\u8BBF\u95EE\u54EA\u4E00\u6761\u3002"))+" "),e("div",{attrs:{slot:"desc"},slot:"desc"},[t._v(t._s(t.$L("\u8BF7\u8BA9\u5BF9\u5E94\u62E5\u6709\u8005\u5728\u6587\u4EF6\u9875\u9762\u4FDD\u7559\u5176\u4E2D\u4E00\u6761\uFF0C\u5E76\u91CD\u547D\u540D\u6216\u5220\u9664\u5176\u4F59\u6587\u4EF6\uFF0C\u7136\u540E\u5237\u65B0\u68C0\u6D4B\u3002")))])]),e("div",{staticClass:"webdav-conflict-actions"},[e("Button",{attrs:{icon:"md-refresh",loading:t.conflictLoading>0},on:{click:function(a){return t.loadWebDavConflicts(t.conflictPage)}}},[t._v(t._s(t.$L("\u5237\u65B0\u68C0\u6D4B")))])],1),e("Table",{staticClass:"webdav-conflict-table",attrs:{columns:t.conflictColumns,data:t.conflictList,loading:t.conflictLoading>0}}),t.conflictTotal>t.conflictPageSize?e("Page",{attrs:{total:t.conflictTotal,current:t.conflictPage,"page-size":t.conflictPageSize,"show-total":""},on:{"on-change":t.loadWebDavConflicts}}):t._e()],1)],1)},C=[];const I={name:"SystemFileSetting",components:{UserSelect:f},props:{embedded:Boolean},data(){return{loadIng:0,webDavStatus:{},conflictShow:!1,conflictLoading:0,conflictList:[],conflictPage:1,conflictPageSize:20,conflictTotal:0,conflictColumns:[{title:this.$L("\u62E5\u6709\u8005"),minWidth:120,maxWidth:190,render:(t,{row:s})=>t("div",{class:"webdav-conflict-owner"},[t("div",{attrs:{title:s.owner.nickname||"-"}},s.owner.nickname||"-"),t("AutoTip",{class:"webdav-conflict-owner-detail"},`${s.owner.email||"-"} (ID: ${s.owner.userid})`)])},{title:this.$L("\u51B2\u7A81\u8DEF\u5F84"),minWidth:200,render:(t,{row:s})=>t("div",{class:"webdav-conflict-path-row"},[t("AutoTip",{class:"webdav-conflict-path"},s.path),t("Tooltip",{props:{content:this.$L("\u590D\u5236"),placement:"top",transfer:!0}},[t("button",{class:"webdav-conflict-path-copy",attrs:{type:"button"},on:{click:()=>this.copyText(s.path)}},[t("Icon",{props:{type:"md-copy",size:15}})])])])},{title:this.$L("\u51B2\u7A81\u8BB0\u5F55"),minWidth:180,render:(t,{row:s})=>t("div",s.files.map(e=>t("div",{class:"webdav-conflict-record"},[t("AutoTip",{class:"webdav-conflict-record-name"},`${e.full_name} (ID: ${e.id})`),t("span",{class:"webdav-conflict-record-actions"},[t("Tooltip",{props:{content:this.$L("\u91CD\u547D\u540D"),placement:"top",transfer:!0}},[t("button",{class:"webdav-conflict-icon-button",attrs:{type:"button"},on:{click:()=>this.confirmRenameConflictFile(s,e)}},[t("Icon",{props:{type:"md-create",size:15}})])]),e.can_open_location?t("Tooltip",{props:{content:this.$L("\u6253\u5F00\u4F4D\u7F6E"),placement:"top",transfer:!0}},[t("button",{class:"webdav-conflict-icon-button",attrs:{type:"button"},on:{click:()=>this.openConflictFile(s,e)}},[t("Icon",{props:{type:"md-folder-open",size:15}})])]):null])])))}],formData:{}}},mounted(){this.systemSetting()},computed:{...n(["userId"])},methods:{submitForm(){this.systemSetting(!0)},resetForm(){this.formData=$A.cloneJSON(this.formDatum_bak)},openWebDavConflicts(){this.conflictShow=!0,this.loadWebDavConflicts(1)},loadWebDavConflicts(t=1){this.conflictLoading++,this.$store.dispatch("call",{url:`file/dav/conflicts?page=${t}&pagesize=${this.conflictPageSize}`}).then(({data:s})=>{this.conflictPage=s.current_page||1,this.conflictTotal=s.total||0,this.conflictList=s.data||[],this.webDavStatus.path_conflicts=this.conflictTotal}).finally(s=>{this.conflictLoading--})},confirmRenameConflictFile(t,s){if(t.owner.userid===this.userId){this.renameConflictFile(s);return}$A.modalConfirm({language:!1,title:this.$L("\u91CD\u547D\u540D\u5176\u4ED6\u6210\u5458\u7684\u6587\u4EF6"),content:this.$L("\u4F60\u6B63\u5728\u91CD\u547D\u540D(*)\u7684\u79C1\u4EBA\u6587\u4EF6\uFF0C\u6B64\u64CD\u4F5C\u4F1A\u76F4\u63A5\u4FEE\u6539\u6587\u4EF6\u540D\u79F0\u3002",t.owner.nickname||t.owner.email||t.owner.userid),onOk:()=>$A.modalInput({title:this.$L("\u91CD\u547D\u540D"),placeholder:this.$L("\u8BF7\u8F93\u5165\u65B0\u540D\u79F0"),value:s.full_name,onOk:e=>this.submitConflictRename(s,e)},300)})},renameConflictFile(t){$A.modalInput({title:this.$L("\u91CD\u547D\u540D"),placeholder:this.$L("\u8BF7\u8F93\u5165\u65B0\u540D\u79F0"),value:t.full_name,onOk:s=>this.submitConflictRename(t,s)})},submitConflictRename(t,s){const e=(s||"").trim();return e?e===t.full_name?!1:this.$store.dispatch("call",{url:"file/dav/conflictrename",method:"post",data:{id:t.id,name:e}}).then(({msg:a})=>(this.loadWebDavConflicts(this.conflictPage),a)).catch(({msg:a})=>Promise.reject(a)):this.$L("\u8BF7\u8F93\u5165\u65B0\u540D\u79F0")},openConflictFile(t,s){this.conflictShow=!1,this.$store.dispatch("filePos",{folderId:s.location_parent_id||null,fileId:null,shakeId:s.id,board:s.location_board})},systemSetting(t,s=!1){this.loadIng++;const e=()=>this.$store.dispatch("call",{url:"system/setting/file?type="+(t?"save":"all"),data:this.formData}),a=()=>this.$store.dispatch("call",{url:"file/dav/adminsetting?type="+(t?"save":"all"),data:this.formData,method:t?"post":"get"}),i=()=>this.$store.dispatch("call",{url:"file/dav/adminstatus"});return(t?e().then(r=>a().then(m=>Promise.all([Promise.resolve(r),Promise.resolve(m),i()]))):Promise.all([e(),a(),i()])).then(([r,m,v])=>{t&&!s&&$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.formData=Object.assign({},r.data,m.data),this.webDavStatus=v.data||{},this.formDatum_bak=$A.cloneJSON(this.formData)}).catch(({msg:r})=>{if(t&&!s&&$A.modalError(r),s)return Promise.reject(r)}).finally(r=>{this.loadIng--})}}},_={};var S=l(I,x,C,!1,R,null,null,null);function R(t){for(let s in _)this[s]=_[s]}var w=function(){return S.exports}(),F=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{class:{"setting-component-item":!t.embedded,"system-task-priority":!0}},[e("div",[e("Row",{staticClass:"setting-color color-label-box"},[e("Col",{attrs:{span:"2"}},[t._v(t._s(t.$L("\u9ED8\u8BA4")))]),e("Col",{attrs:{span:"9"}},[t._v(t._s(t.$L("\u540D\u79F0")))]),e("Col",{attrs:{span:"4"}},[e("ETooltip",{attrs:{content:t.$L("\u6570\u503C\u8D8A\u5C0F\u7EA7\u522B\u8D8A\u9AD8"),"max-width":"auto",placement:"top",transfer:""}},[e("div",[e("Icon",{staticClass:"information",attrs:{type:"ios-information-circle-outline"}}),t._v(" "+t._s(t.$L("\u7EA7\u522B")))],1)])],1),e("Col",{attrs:{span:"4"}},[e("ETooltip",{attrs:{content:t.$L("\u4EFB\u52A1\u5B8C\u6210\u65F6\u95F4"),"max-width":"auto",placement:"top",transfer:""}},[e("div",[e("Icon",{staticClass:"information",attrs:{type:"ios-information-circle-outline"}}),t._v(" "+t._s(t.$L("\u5929\u6570")))],1)])],1),e("Col",{attrs:{span:"4"}},[t._v(t._s(t.$L("\u989C\u8272")))]),e("Col",{staticClass:"setting-row-action",attrs:{span:"1"}})],1),e("RadioGroup",{model:{value:t.defaultIndex,callback:function(a){t.defaultIndex=a},expression:"defaultIndex"}},t._l(t.formDatum,function(a,i){return e("Row",{key:i,staticClass:"setting-color"},[e("Col",{staticClass:"priority-default-col",attrs:{span:"2"}},[e("Radio",{attrs:{label:i}},[e("span")])],1),e("Col",{attrs:{span:"9"}},[e("Input",{attrs:{maxlength:20,placeholder:t.$L("\u8BF7\u8F93\u5165\u540D\u79F0")},model:{value:a.name,callback:function(o){t.$set(a,"name",o)},expression:"item.name"}})],1),e("Col",{attrs:{span:"4"}},[e("Input",{attrs:{type:"number"},model:{value:a.priority,callback:function(o){t.$set(a,"priority",o)},expression:"item.priority"}})],1),e("Col",{attrs:{span:"4"}},[e("Input",{attrs:{type:"number"},model:{value:a.days,callback:function(o){t.$set(a,"days",o)},expression:"item.days"}})],1),e("Col",{attrs:{span:"4"}},[e("ColorPicker",{attrs:{recommend:"",transfer:""},model:{value:a.color,callback:function(o){t.$set(a,"color",o)},expression:"item.color"}})],1),e("Col",{staticClass:"setting-row-action",attrs:{span:"1"}},[e("Tooltip",{attrs:{content:t.formDatum.length>1?t.$L("\u5220\u9664"):t.$L("\u81F3\u5C11\u4FDD\u7559\u4E00\u9879"),placement:"top",transfer:""}},[e("Button",{attrs:{type:"text",icon:"ios-trash-outline",disabled:t.formDatum.length<=1},on:{click:function(o){return t.delDatum(i)}}})],1)],1)],1)}),1),e("div",{staticClass:"setting-add-action"},[e("Button",{attrs:{type:"default",icon:"md-add"},on:{click:t.addDatum}},[t._v(t._s(t.$L("\u6DFB\u52A0\u4F18\u5148\u7EA7")))])],1)],1),t.embedded?t._e():e("div",{staticClass:"setting-footer"},[e("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),e("Button",{attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)])},j=[];const A={name:"SystemTaskPriority",props:{embedded:Boolean},data(){return{loadIng:0,formDatum:[],defaultIndex:0,nullDatum:{name:"",priority:1,days:1,color:"#84C56A",is_default:0}}},mounted(){this.systemSetting()},computed:{...n(["taskPriority"])},watch:{taskPriority:{handler(t){this.formDatum=$A.cloneJSON(t);const s=this.formDatum.findIndex(e=>$A.runNum(e.is_default)===1||e.is_default===!0||e.default);this.defaultIndex=s>-1?s:0,this.applyDefaultIndex(),this.formDatum.length===0&&this.addDatum()},immediate:!0},defaultIndex(){this.applyDefaultIndex()}},methods:{submitForm(){this.systemSetting(!0)},resetForm(){this.formDatum=$A.cloneJSON(this.taskPriority);const t=this.formDatum.findIndex(s=>$A.runNum(s.is_default)===1||s.is_default===!0||s.default);this.defaultIndex=t>-1?t:0,this.applyDefaultIndex()},addDatum(){this.formDatum.push($A.cloneJSON(this.nullDatum)),this.formDatum.length===1&&(this.defaultIndex=0,this.applyDefaultIndex())},delDatum(t){this.formDatum.length<=1||$A.modalConfirm({title:"\u786E\u8BA4\u5220\u9664",content:"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u4F18\u5148\u7EA7\u5417\uFF1F",onOk:()=>{const s=t===this.defaultIndex;this.formDatum.splice(t,1),s?this.defaultIndex=0:t{t.is_default=s===this.defaultIndex?1:0})},systemSetting(t,s=!1){return this.loadIng++,this.applyDefaultIndex(),this.$store.dispatch("call",{url:"system/priority?type="+(t?"save":"get"),method:"post",data:{list:this.formDatum}}).then(({data:e})=>{t&&!s&&$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.$store.state.taskPriority=$A.cloneJSON(e)}).catch(({msg:e})=>{if(t&&!s&&$A.modalError(e),s)return Promise.reject(e)}).finally(e=>{this.loadIng--})}}},p={};var P=l(A,F,j,!1,T,null,null,null);function T(t){for(let s in p)this[s]=p[s]}var G=function(){return P.exports}(),O=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"setting-component-item"},[e("Form",t._b({ref:"formDatum",attrs:{model:t.formDatum},nativeOn:{submit:function(a){a.preventDefault()}}},"Form",t.formOptions,!1),[t.scope==="account"?e("div",{staticClass:"block-setting-box"},[e("h3",[t._v(t._s(t.$L("\u5E10\u53F7\u4E0E\u5B89\u5168")))]),e("div",{staticClass:"form-box"},[e("FormItem",{attrs:{label:t.$L("\u5141\u8BB8\u6CE8\u518C"),prop:"reg"}},[e("RadioGroup",{model:{value:t.formDatum.reg,callback:function(a){t.$set(t.formDatum,"reg",a)},expression:"formDatum.reg"}},[e("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5141\u8BB8")))]),e("Radio",{attrs:{label:"invite"}},[t._v(t._s(t.$L("\u9080\u8BF7\u7801")))]),e("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u7981\u6B62")))])],1),t.formDatum.reg=="open"?e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5141\u8BB8\uFF1A\u5F00\u653E\u6CE8\u518C\u529F\u80FD\u3002")))]):t.formDatum.reg=="close"?e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u7981\u6B62\uFF1A\u5173\u95ED\u6CE8\u518C\u529F\u80FD\u3002")))]):t.formDatum.reg=="invite"?[e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u9080\u8BF7\u7801\uFF1A\u6CE8\u518C\u65F6\u9700\u586B\u5199\u4E0B\u65B9\u9080\u8BF7\u7801\u3002")))]),e("Input",{staticStyle:{width:"220px","margin-top":"6px"},model:{value:t.formDatum.reg_invite,callback:function(a){t.$set(t.formDatum,"reg_invite",a)},expression:"formDatum.reg_invite"}},[e("span",{attrs:{slot:"prepend"},slot:"prepend"},[t._v(t._s(t.$L("\u9080\u8BF7\u7801")))])])]:t._e()],2),["open","invite"].includes(t.formDatum.reg)?e("FormItem",{attrs:{label:t.$L("\u6CE8\u518C\u8EAB\u4EFD"),prop:"reg_identity"}},[e("RadioGroup",{model:{value:t.formDatum.reg_identity,callback:function(a){t.$set(t.formDatum,"reg_identity",a)},expression:"formDatum.reg_identity"}},[e("Radio",{attrs:{label:"normal"}},[t._v(t._s(t.$L("\u6B63\u5E38\u5E10\u53F7")))]),e("Radio",{attrs:{label:"temp"}},[t._v(t._s(t.$L("\u4E34\u65F6\u5E10\u53F7")))])],1),t.formDatum.reg_identity=="temp"?e("Input",{staticStyle:{width:"220px","margin-top":"6px"},attrs:{placeholder:t.$L("\u4E34\u65F6\u5E10\u53F7")},model:{value:t.formDatum.temp_account_alias,callback:function(a){t.$set(t.formDatum,"temp_account_alias",a)},expression:"formDatum.temp_account_alias"}},[e("span",{attrs:{slot:"prepend"},slot:"prepend"},[t._v(t._s(t.$L("\u522B\u540D")))])]):t._e(),e("div",{staticClass:"form-tip form-list"},[e("p",[t._v(t._s(t.$L("\u4E34\u65F6\u5E10\u53F7"))+"\uFF1A")]),e("ol",[e("li",[t._v(t._s(t.$L("\u7981\u6B62\u67E5\u770B\u5171\u4EAB\u6240\u6709\u4EBA\u7684\u6587\u4EF6\u3002")))]),e("li",[t._v(t._s(t.$L("\u7981\u6B62\u53D1\u8D77\u4F1A\u8BDD\u3002")))]),e("li",[t._v(t._s(t.$L("\u7981\u6B62\u521B\u5EFA\u7FA4\u804A\u3002")))]),e("li",[t._v(t._s(t.$L("\u7981\u6B62\u62E8\u6253\u7535\u8BDD\u3002")))]),e("li",[t._v(t._s(t.$L("\u7981\u6B62\u6253\u5305\u4E0B\u8F7D\u6587\u4EF6\u3002")))])])])],1):t._e(),e("FormItem",{attrs:{label:t.$L("\u767B\u5F55\u9A8C\u8BC1\u7801"),prop:"loginCode"}},[e("RadioGroup",{model:{value:t.formDatum.login_code,callback:function(a){t.$set(t.formDatum,"login_code",a)},expression:"formDatum.login_code"}},[e("Radio",{attrs:{label:"auto"}},[t._v(t._s(t.$L("\u81EA\u52A8")))]),e("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),e("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),t.formDatum.login_code=="auto"?e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u81EA\u52A8\uFF1A\u5BC6\u7801\u8F93\u5165\u9519\u8BEF\u540E\u5FC5\u987B\u6DFB\u52A0\u9A8C\u8BC1\u7801\u3002")))]):t.formDatum.login_code=="open"?e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5F00\u542F\uFF1A\u6BCF\u6B21\u767B\u5F55\u90FD\u9700\u8981\u56FE\u5F62\u9A8C\u8BC1\u7801\u3002")))]):t.formDatum.login_code=="close"?e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5173\u95ED\uFF1A\u4E0D\u9700\u8981\u8F93\u5165\u56FE\u5F62\u9A8C\u8BC1\u3002")))]):t._e()],1),e("FormItem",{attrs:{label:t.$L("\u5BC6\u7801\u7B56\u7565"),prop:"passwordPolicy"}},[e("RadioGroup",{model:{value:t.formDatum.password_policy,callback:function(a){t.$set(t.formDatum,"password_policy",a)},expression:"formDatum.password_policy"}},[e("Radio",{attrs:{label:"simple"}},[t._v(t._s(t.$L("\u7B80\u5355")))]),e("Radio",{attrs:{label:"complex"}},[t._v(t._s(t.$L("\u590D\u6742")))])],1),t.formDatum.password_policy=="simple"?e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u7B80\u5355\uFF1A\u5927\u4E8E\u6216\u7B49\u4E8E6\u4E2A\u5B57\u7B26\u3002")))]):t.formDatum.password_policy=="complex"?e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u590D\u6742\uFF1A\u5927\u4E8E\u6216\u7B49\u4E8E6\u4E2A\u5B57\u7B26\uFF0C\u5305\u542B\u6570\u5B57\u3001\u5B57\u6BCD\u5927\u5C0F\u5199\u6216\u8005\u7279\u6B8A\u5B57\u7B26\u3002")))]):t._e()],1)],1)]):t._e(),t.scope==="project"?e("div",{staticClass:"block-setting-box"},[e("h3",[t._v(t._s(t.$L("\u9879\u76EE\u8BBE\u7F6E")))]),e("div",{staticClass:"form-box"},[e("FormItem",{attrs:{label:t.$L("\u9080\u8BF7\u9879\u76EE"),prop:"projectInvite"}},[e("RadioGroup",{model:{value:t.formDatum.project_invite,callback:function(a){t.$set(t.formDatum,"project_invite",a)},expression:"formDatum.project_invite"}},[e("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),e("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),t.formDatum.project_invite=="open"?e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5F00\u542F\uFF1A\u9879\u76EE\u7BA1\u7406\u5458\u53EF\u751F\u6210\u94FE\u63A5\u9080\u8BF7\u6210\u5458\u52A0\u5165\u9879\u76EE\u3002")))]):t._e()],1),e("FormItem",{attrs:{label:t.$L("\u521B\u5EFA\u9879\u76EE"),prop:"project_add_permission"}},[e("CheckboxGroup",{attrs:{value:t.formDatum.project_add_permission||[]},on:{"on-change":t.onProjectAddPermissionChange}},[e("Checkbox",{attrs:{label:"all"}},[t._v(t._s(t.$L("\u6240\u6709\u4EBA")))]),e("Checkbox",{attrs:{label:"departmentOwner"}},[t._v(t._s(t.$L("\u90E8\u95E8\u8D1F\u8D23\u4EBA")))]),e("Checkbox",{attrs:{label:"appoint"}},[t._v(t._s(t.$L("\u6307\u5B9A\u4EBA\u5458")))])],1),t.projectAddAll?e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u6240\u6709\u4EBA\uFF1A\u6240\u6709\u6210\u5458\u5747\u53EF\u521B\u5EFA\u9879\u76EE\u3002")))]):e("div",{staticClass:"form-tip form-list"},[e("p",[t._v(t._s(t.$L("\u53EF\u521B\u5EFA\u9879\u76EE\u7684\u4EBA\u5458"))+"\uFF1A")]),e("ol",[e("li",[t._v(t._s(t.$L("\u7CFB\u7EDF\u7BA1\u7406\u5458\uFF08\u59CB\u7EC8\u53EF\u521B\u5EFA\uFF0C\u4E0D\u53D7\u5F00\u5173\u9650\u5236\uFF09\u3002")))]),(t.formDatum.project_add_permission||[]).includes("departmentOwner")?e("li",[t._v(t._s(t.$L("\u90E8\u95E8\u8D1F\u8D23\u4EBA\u4E0E\u90E8\u95E8\u7BA1\u7406\u5458\u3002")))]):t._e(),(t.formDatum.project_add_permission||[]).includes("appoint")?e("li",[t._v(t._s(t.$L("\u4E0B\u65B9\u6307\u5B9A\u7684\u4EBA\u5458\u3002")))]):t._e()])]),(t.formDatum.project_add_permission||[]).includes("appoint")?[e("UserSelect",{staticStyle:{"margin-top":"6px"},attrs:{"multiple-max":200,"avatar-name":"","show-disable":"",title:t.$L("\u8BF7\u9009\u62E9\u6307\u5B9A\u4EBA\u5458")},model:{value:t.formDatum.project_add_userids,callback:function(a){t.$set(t.formDatum,"project_add_userids",a)},expression:"formDatum.project_add_userids"}}),e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u6307\u5B9A\u4EBA\u5458\u6700\u591A\u53EF\u9009\u62E9200\u4EBA")))])]:t._e()],2),e("FormItem",{attrs:{label:t.$L("\u90E8\u95E8\u8D1F\u8D23\u4EBA\u89C6\u89D2"),prop:"department_owner_project_view"}},[e("RadioGroup",{model:{value:t.formDatum.department_owner_project_view,callback:function(a){t.$set(t.formDatum,"department_owner_project_view",a)},expression:"formDatum.department_owner_project_view"}},[e("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),e("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),t.formDatum.department_owner_project_view=="open"?e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5F00\u542F\u540E\uFF0C\u90E8\u95E8\u8D1F\u8D23\u4EBA/\u90E8\u95E8\u7BA1\u7406\u5458\u53EF\u53EA\u8BFB\u67E5\u770B\u672C\u90E8\u95E8\u53CA\u4E0B\u7EA7\u90E8\u95E8\u6210\u5458\u53C2\u4E0E\u7684\u9879\u76EE\u548C\u9879\u76EE\u5185\u5168\u90E8\u4EFB\u52A1\u3002")))]):t._e()],1)],1)]):t._e(),t.scope==="project"?e("div",{staticClass:"block-setting-box"},[e("h3",[t._v(t._s(t.$L("\u9879\u76EE\u6A21\u677F")))]),e("div",{staticClass:"form-box"},[e("SystemColumnTemplate",{ref:"columnTemplate",attrs:{embedded:""}})],1)]):t._e(),t.scope==="task"?e("div",{staticClass:"block-setting-box"},[e("h3",[t._v(t._s(t.$L("\u4EFB\u52A1\u8BBE\u7F6E")))]),e("div",{staticClass:"form-box"},[e("FormItem",{attrs:{label:t.$L("\u81EA\u52A8\u5F52\u6863"),prop:"autoArchived"}},[e("RadioGroup",{attrs:{value:t.formDatum.auto_archived},on:{"on-change":t.formArchived}},[e("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),e("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u4EFB\u52A1\u5B8C\u6210\u540E\u81EA\u52A8\u5F52\u6863\u3002")))]),t.formDatum.auto_archived=="open"?e("ETooltip",{attrs:{placement:"right",disabled:t.$isEEUIApp||t.windowTouch}},[e("div",{staticClass:"setting-auto-day"},[e("Input",{attrs:{type:"number"},model:{value:t.formDatum.archived_day,callback:function(a){t.$set(t.formDatum,"archived_day",a)},expression:"formDatum.archived_day"}},[e("span",{attrs:{slot:"append"},slot:"append"},[t._v(t._s(t.$L("[day_unit].\u5929")))])])],1),e("div",{attrs:{slot:"content"},slot:"content"},[t._v(t._s(t.$L("\u4EFB\u52A1\u5B8C\u6210(*)\u5929\u540E\u81EA\u52A8\u5F52\u6863\u3002",t.formDatum.archived_day||"n")))])]):t._e()],1),e("FormItem",{attrs:{label:t.$L("\u53EF\u89C1\u6027\u9009\u9879"),prop:"taskVisible"}},[e("RadioGroup",{model:{value:t.formDatum.task_visible,callback:function(a){t.$set(t.formDatum,"task_visible",a)},expression:"formDatum.task_visible"}},[e("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u4FDD\u6301")))]),e("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u81EA\u52A8")))])],1),t.formDatum.task_visible=="open"?e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u4FDD\u6301\uFF1A\u4EFB\u52A1\u8BE6\u60C5\u9875\u53EF\u89C1\u6027\u9009\u9879\u4FDD\u6301\u663E\u793A\u3002")))]):t.formDatum.task_visible=="close"?e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u81EA\u52A8\uFF1A\u9ED8\u8BA4\u503C\u60C5\u51B5\u4E0B\u663E\u793A\u5728\u5408\u5E76\u9879\u76EE\uFF0C\u8BBE\u7F6E\u65F6\u4FDD\u6301\u663E\u793A\u3002")))]):t._e()],1),e("FormItem",{attrs:{label:t.$L("\u4EFB\u52A1\u9ED8\u8BA4\u65F6\u95F4"),prop:"taskDefaultTime"}},[e("TimePicker",{attrs:{type:"timerange",format:"HH:mm",placeholder:t.$L("\u8BF7\u9009\u62E9\u9ED8\u8BA4\u65F6\u95F4"),transfer:""},model:{value:t.formDatum.task_default_time,callback:function(a){t.$set(t.formDatum,"task_default_time",a)},expression:"formDatum.task_default_time"}}),e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u6DFB\u52A0\u4EFB\u52A1\u8BA1\u5212\u65F6\u95F4\u9ED8\u8BA4\u65F6\u5206\u3002")))])],1),e("FormItem",{attrs:{label:t.$L("\u672A\u9886\u4EFB\u52A1\u63D0\u9192"),prop:"autoArchived"}},[e("RadioGroup",{attrs:{value:t.formDatum.unclaimed_task_reminder},on:{"on-change":t.formTaskReminder}},[e("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),e("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5F00\u542F\u540E\u6BCF\u5929\u6309\u8BBE\u5B9A\u7684\u63D0\u9192\u65F6\u95F4\u5728\u9879\u76EE\u7FA4\u804A\u4E2D\u53D1\u9001\u672A\u9886\u53D6\u4EFB\u52A1\u901A\u77E5\u3002")))]),t.formDatum.unclaimed_task_reminder=="open"?e("TimePicker",{attrs:{format:"HH:mm",placeholder:t.$L("\u8BF7\u9009\u62E9\u63D0\u9192\u65F6\u95F4"),transfer:""},model:{value:t.formDatum.unclaimed_task_reminder_time,callback:function(a){t.$set(t.formDatum,"unclaimed_task_reminder_time",a)},expression:"formDatum.unclaimed_task_reminder_time"}}):t._e()],1),t.aiVisible?e("FormItem",{attrs:{label:t.$L("AI\u4EFB\u52A1\u5206\u6790"),prop:"taskAiAutoAnalyze"}},[e("RadioGroup",{model:{value:t.formDatum.task_ai_auto_analyze,callback:function(a){t.$set(t.formDatum,"task_ai_auto_analyze",a)},expression:"formDatum.task_ai_auto_analyze"}},[e("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),e("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),t.formDatum.task_ai_auto_analyze=="open"?e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u65B0\u5EFA\u4EFB\u52A1\u540EAI\u81EA\u52A8\u5206\u6790\u5E76\u7ED9\u51FA\u5EFA\u8BAE\u3002")))]):e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5173\u95ED\u540E\u6240\u6709\u9879\u76EE\u5C06\u4E0D\u518D\u81EA\u52A8\u5206\u6790\u4EFB\u52A1\u3002")))])],1):t._e(),e("FormItem",{attrs:{label:t.$L("\u4E2A\u4EBA\u4EFB\u52A1\u4E0A\u9650"),prop:"taskUserLimit"}},[e("div",{staticStyle:{width:"110px"}},[e("Input",{attrs:{type:"number",number:""},on:{"on-keyup":function(a){return t.$A.inputNumberLimit(a,1,2e3)}},scopedSlots:t._u([{key:"append",fn:function(){return[e("span",[t._v(t._s(t.$L("[task_unit].\u4E2A")))])]},proxy:!0}],null,!1,3283495674),model:{value:t.formDatum.task_user_limit,callback:function(a){t.$set(t.formDatum,"task_user_limit",a)},expression:"formDatum.task_user_limit"}})],1),e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u8D1F\u8D23\u4EBA\u6216\u534F\u52A9\u4EBA\u7684\u672A\u5B8C\u6210\u4EFB\u52A1\u6570\u91CF\u4E0A\u9650\uFF0C\u6700\u59272000\u3002")))])])],1)]):t._e(),t.scope==="task"?e("div",{staticClass:"block-setting-box"},[e("h3",[t._v(t._s(t.$L("\u6D41\u8F6C\u8BBE\u7F6E")))]),e("div",{staticClass:"form-box"},[e("FormItem",{attrs:{label:t.$L("\u4EFB\u52A1\u6D41\u8F6C")}},[e("RadioGroup",{model:{value:t.formDatum.project_task_handoff,callback:function(a){t.$set(t.formDatum,"project_task_handoff",a)},expression:"formDatum.project_task_handoff"}},[e("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),e("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1)],1),t.formDatum.project_task_handoff==="open"?[e("FormItem",{attrs:{label:t.$L("\u90E8\u95E8\u89C6\u89D2\u6307\u6D3E\u6743\u9650")}},[e("RadioGroup",{model:{value:t.formDatum.project_task_handoff_role,callback:function(a){t.$set(t.formDatum,"project_task_handoff_role",a)},expression:"formDatum.project_task_handoff_role"}},[e("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))]),e("Radio",{attrs:{label:"owner"}},[t._v(t._s(t.$L("\u4EC5\u90E8\u95E8\u8D1F\u8D23\u4EBA")))]),e("Radio",{attrs:{label:"managers"}},[t._v(t._s(t.$L("\u90E8\u95E8\u8D1F\u8D23\u4EBA\u53CA\u90E8\u95E8\u7BA1\u7406\u5458")))])],1)],1),e("FormItem",{attrs:{label:t.$L("\u53EF\u6307\u6D3E\u4EBA\u5458\u8303\u56F4")}},[e("RadioGroup",{model:{value:t.formDatum.project_task_handoff_candidates,callback:function(a){t.$set(t.formDatum,"project_task_handoff_candidates",a)},expression:"formDatum.project_task_handoff_candidates"}},[e("Radio",{attrs:{label:"department"}},[t._v(t._s(t.$L("\u7BA1\u7406\u90E8\u95E8\u8303\u56F4\u5185\u7684\u9879\u76EE\u6210\u5458")))]),e("Radio",{attrs:{label:"project"}},[t._v(t._s(t.$L("\u9879\u76EE\u5185\u5168\u90E8\u6210\u5458")))])],1)],1),e("FormItem",{attrs:{label:t.$L("\u539F\u8D1F\u8D23\u4EBA\u8C03\u6574\u8303\u56F4")}},[e("RadioGroup",{model:{value:t.formDatum.project_task_handoff_adjust,callback:function(a){t.$set(t.formDatum,"project_task_handoff_adjust",a)},expression:"formDatum.project_task_handoff_adjust"}},[e("Radio",{attrs:{label:"department"}},[t._v(t._s(t.$L("\u4EC5\u8C03\u6574\u7BA1\u7406\u8303\u56F4\u5185\u8D1F\u8D23\u4EBA")))]),e("Radio",{attrs:{label:"all"}},[t._v(t._s(t.$L("\u5141\u8BB8\u8C03\u6574\u5168\u90E8\u8D1F\u8D23\u4EBA")))])],1)],1),e("FormItem",{attrs:{label:t.$L("\u6307\u6D3E\u7559\u8A00\u8981\u6C42")}},[e("RadioGroup",{model:{value:t.formDatum.project_task_handoff_note,callback:function(a){t.$set(t.formDatum,"project_task_handoff_note",a)},expression:"formDatum.project_task_handoff_note"}},[e("Radio",{attrs:{label:"optional"}},[t._v(t._s(t.$L("\u9009\u586B")))]),e("Radio",{attrs:{label:"required"}},[t._v(t._s(t.$L("\u5FC5\u586B")))])],1)],1)]:t._e()],2)]):t._e(),t.scope==="task"?e("div",{staticClass:"block-setting-box"},[e("h3",[t._v(t._s(t.$L("\u4EFB\u52A1\u4F18\u5148\u7EA7")))]),e("div",{staticClass:"form-box"},[e("SystemTaskPriority",{ref:"taskPriority",attrs:{embedded:""}})],1)]):t._e(),t.scope==="message"?e("div",{staticClass:"block-setting-box"},[e("h3",[t._v(t._s(t.$L("\u6D88\u606F\u8BBE\u7F6E")))]),e("div",{staticClass:"form-box"},[e("FormItem",{attrs:{label:t.$L("\u81EA\u52A8\u8FDB\u5165\u5168\u5458\u7FA4"),prop:"allGroupAutoin"}},[e("RadioGroup",{model:{value:t.formDatum.all_group_autoin,callback:function(a){t.$set(t.formDatum,"all_group_autoin",a)},expression:"formDatum.all_group_autoin"}},[e("Radio",{attrs:{label:"yes"}},[t._v(t._s(t.$L("\u81EA\u52A8")))]),e("Radio",{attrs:{label:"no"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),t.formDatum.all_group_autoin=="yes"?e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u81EA\u52A8\uFF1A\u6CE8\u518C\u6210\u529F\u540E\u81EA\u52A8\u8FDB\u5165\u5168\u5458\u7FA4\u3002")))]):t.formDatum.all_group_autoin=="no"?e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5173\u95ED\uFF1A\u5176\u4ED6\u6210\u5458\u901A\u8FC7@\u9080\u8BF7\u8FDB\u5165\u3002")))]):t._e()],1),e("FormItem",{attrs:{label:t.$L("\u5168\u5458\u7FA4\u7EC4\u7981\u8A00"),prop:"allGroupMute"}},[e("RadioGroup",{model:{value:t.formDatum.all_group_mute,callback:function(a){t.$set(t.formDatum,"all_group_mute",a)},expression:"formDatum.all_group_mute"}},[e("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u653E")))]),e("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u7981\u8A00")))])],1),t.formDatum.all_group_mute=="open"?e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5F00\u653E\uFF1A\u6240\u6709\u4EBA\u90FD\u53EF\u4EE5\u5728\u5168\u5458\u7FA4\u7EC4\u53D1\u8A00\u3002")))]):t.formDatum.all_group_mute=="close"?e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u7981\u8A00\uFF1A\u9664\u7BA1\u7406\u5458\u5916\u6240\u6709\u4EBA\u90FD\u7981\u6B62\u5728\u5168\u5458\u7FA4\u7EC4\u53D1\u8A00\u3002")))]):t._e()],1),e("FormItem",{attrs:{label:t.$L("\u79C1\u804A\u7981\u8A00"),prop:"userPrivateChatMute"}},[e("RadioGroup",{model:{value:t.formDatum.user_private_chat_mute,callback:function(a){t.$set(t.formDatum,"user_private_chat_mute",a)},expression:"formDatum.user_private_chat_mute"}},[e("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u653E")))]),e("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u7981\u8A00")))])],1),t.formDatum.user_private_chat_mute=="open"?e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5F00\u653E\uFF1A\u6240\u6709\u4EBA\u90FD\u53EF\u4EE5\u76F8\u4E92\u53D1\u8D77\u4E2A\u4EBA\u804A\u5929\u3002")))]):t.formDatum.user_private_chat_mute=="close"?e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u7981\u8A00\uFF1A\u9664\u7BA1\u7406\u5458\u5916\u6240\u6709\u4EBA\u90FD\u7981\u6B62\u53D1\u8D77\u4E2A\u4EBA\u804A\u5929\u3002")))]):t._e()],1),e("FormItem",{attrs:{label:t.$L("\u7FA4\u804A\u7981\u8A00"),prop:"userGroupChatMute"}},[e("RadioGroup",{model:{value:t.formDatum.user_group_chat_mute,callback:function(a){t.$set(t.formDatum,"user_group_chat_mute",a)},expression:"formDatum.user_group_chat_mute"}},[e("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u653E")))]),e("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u7981\u8A00")))])],1),t.formDatum.user_group_chat_mute=="open"?e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5F00\u653E\uFF1A\u5141\u8BB8\u4E2A\u4EBA\u7FA4\u7EC4\u804A\u5929\u53D1\u8A00\u3002")))]):t.formDatum.user_group_chat_mute=="close"?e("div",{staticClass:"form-tip form-list"},[e("ol",[e("li",[t._v(t._s(t.$L("\u9664\u7BA1\u7406\u5458\u5916\u7981\u6B62\u4E2A\u4EBA\u7FA4\u7EC4\u804A\u5929\u53D1\u8A00\u3002")))]),e("li",[t._v(t._s(t.$L("\u6CE8\u610F\uFF0C\u4EC5\u7981\u6B62\u4E2A\u4EBA\u7FA4\u7EC4\uFF0C\u5176\u4ED6\u7C7B\u578B\u7684\u7FA4\u7EC4\u4E0D\u7981\u6B62\uFF0C\u6BD4\u5982\uFF1A\u90E8\u95E8\u7FA4\u804A\u3001\u9879\u76EE\u7FA4\u804A\u7B49\u7CFB\u7EDF\u7FA4\u804A\u3002")))])])]):t._e()],1),e("FormItem",{attrs:{label:t.$L("\u804A\u5929\u8D44\u6599"),prop:"chatInformation"}},[e("RadioGroup",{model:{value:t.formDatum.chat_information,callback:function(a){t.$set(t.formDatum,"chat_information",a)},expression:"formDatum.chat_information"}},[e("Radio",{attrs:{label:"optional"}},[t._v(t._s(t.$L("\u53EF\u9009")))]),e("Radio",{attrs:{label:"required"}},[t._v(t._s(t.$L("\u5FC5\u586B")))])],1),t.formDatum.chat_information=="required"?e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5FC5\u586B\uFF1A\u53D1\u9001\u804A\u5929\u5185\u5BB9\u524D\u5FC5\u987B\u8BBE\u7F6E\u6635\u79F0\u3001\u7535\u8BDD\u3002")))]):e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5982\u679C\u5FC5\u586B\uFF0C\u53D1\u9001\u804A\u5929\u524D\u5FC5\u987B\u8BBE\u7F6E\u6635\u79F0\u3001\u7535\u8BDD\u3002")))])],1),e("FormItem",{attrs:{label:t.$L("\u533F\u540D\u6D88\u606F"),prop:"anonMessage"}},[e("RadioGroup",{model:{value:t.formDatum.anon_message,callback:function(a){t.$set(t.formDatum,"anon_message",a)},expression:"formDatum.anon_message"}},[e("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),e("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),t.formDatum.anon_message=="open"?e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5141\u8BB8\u533F\u540D\u53D1\u9001\u6D88\u606F\u7ED9\u5176\u4ED6\u6210\u5458\u3002")))]):e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u7981\u6B62\u533F\u540D\u53D1\u9001\u6D88\u606F\u3002")))])],1),e("FormItem",{attrs:{label:t.$L("\u5F85\u529E\u8BBE\u7F6E\u6743\u9650"),prop:"todoSetPermission"}},[e("RadioGroup",{model:{value:t.formDatum.todo_set_permission,callback:function(a){t.$set(t.formDatum,"todo_set_permission",a)},expression:"formDatum.todo_set_permission"}},[e("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5141\u8BB8")))]),e("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u7981\u6B62")))])],1),t.formDatum.todo_set_permission=="open"?e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5141\u8BB8\uFF1A\u6240\u6709\u6210\u5458\u53EF\u8BBE\u7F6E/\u53D6\u6D88\u4ED6\u4EBA\u5F85\u529E\u3002")))]):e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u7981\u6B62\uFF1A\u4EC5\u672C\u4EBA\u3001\u7CFB\u7EDF\u7BA1\u7406\u5458\u3001\u7FA4\u4E3B\uFF08\u542B\u7FA4\u7BA1\u7406\u5458\uFF09\u3001\u9879\u76EE\u8D1F\u8D23\u4EBA\uFF08\u542B\u9879\u76EE\u7BA1\u7406\u5458\uFF09\u3001\u4EFB\u52A1\u8D1F\u8D23\u4EBA\u53EF\u8BBE\u7F6E/\u53D6\u6D88\u5F85\u529E\u3002")))])],1),e("FormItem",{attrs:{label:t.$L("\u7AEF\u5230\u7AEF\u52A0\u5BC6"),prop:"e2eMessage"}},[e("RadioGroup",{model:{value:t.formDatum.e2e_message,callback:function(a){t.$set(t.formDatum,"e2e_message",a)},expression:"formDatum.e2e_message"}},[e("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),e("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),t.formDatum.e2e_message=="open"?e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u4F7F\u7528\u7AEF\u5230\u7AEF\u52A0\u5BC6\u4F20\u8F93\u6570\u636E\u3002")))]):e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5173\u95ED\u7AEF\u5230\u7AEF\u52A0\u5BC6\u4F20\u8F93\u6570\u636E\u3002")))])],1),e("FormItem",{attrs:{label:t.$L("\u64A4\u56DE\u6D88\u606F\u9650\u5236"),prop:"msgRevLimit"}},[e("div",{staticStyle:{width:"220px"}},[e("Input",{attrs:{type:"number",number:"",placeholder:t.$L("\u9ED8\u8BA4\u4E0D\u9650\u5236")},scopedSlots:t._u([{key:"append",fn:function(){return[e("span",[t._v(t._s(t.$L("\u5206\u949F")))])]},proxy:!0}],null,!1,2144141109),model:{value:t.formDatum.msg_rev_limit,callback:function(a){t.$set(t.formDatum,"msg_rev_limit",a)},expression:"formDatum.msg_rev_limit"}})],1),e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u6D88\u606F\u53D1\u51FA\u540E\u7684\u53EF\u64A4\u56DE\u65F6\u957F\u3002")))])]),e("FormItem",{attrs:{label:t.$L("\u4FEE\u6539\u6D88\u606F\u9650\u5236"),prop:"msgEditLimit"}},[e("div",{staticStyle:{width:"220px"}},[e("Input",{attrs:{type:"number",number:"",placeholder:t.$L("\u9ED8\u8BA4\u4E0D\u9650\u5236")},scopedSlots:t._u([{key:"append",fn:function(){return[e("span",[t._v(t._s(t.$L("\u5206\u949F")))])]},proxy:!0}],null,!1,2144141109),model:{value:t.formDatum.msg_edit_limit,callback:function(a){t.$set(t.formDatum,"msg_edit_limit",a)},expression:"formDatum.msg_edit_limit"}})],1),e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u6D88\u606F\u53D1\u51FA\u540E\u7684\u53EF\u4FEE\u6539\u65F6\u957F\u3002")))])])],1)]):t._e(),t.scope==="general"?e("div",{staticClass:"block-setting-box"},[e("h3",[t._v(t._s(t.$L("\u57FA\u7840\u8BBE\u7F6E")))]),e("div",{staticClass:"form-box"},[e("FormItem",{attrs:{label:t.$L("\u7CFB\u7EDF\u522B\u540D"),prop:"system_alias"}},[e("div",{staticStyle:{width:"220px"}},[e("Input",{model:{value:t.formDatum.system_alias,callback:function(a){t.$set(t.formDatum,"system_alias",a)},expression:"formDatum.system_alias"}})],1),e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u7528\u4E8E\u7F51\u9875\u6807\u9898\u3001\u90AE\u4EF6\u53D1\u9001\uFF0C\u4EE5\u53CA Web \u7AEF\u548C\u5BA2\u6237\u7AEF\u767B\u5F55\u9875\u7684\u6B22\u8FCE\u8BED\u3002")))])]),e("FormItem",{attrs:{label:t.$L("\u767B\u5F55\u9875 Logo"),prop:"login_logo"}},[e("ImgUpload",{attrs:{num:1,width:512,height:512,whcut:"percentage"},model:{value:t.formDatum.login_logo,callback:function(a){t.$set(t.formDatum,"login_logo",a)},expression:"formDatum.login_logo"}}),e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u7528\u4E8E Web \u7AEF\u548C\u5BA2\u6237\u7AEF\u767B\u5F55\u9875\uFF0C\u672A\u8BBE\u7F6E\u65F6\u4F7F\u7528\u9ED8\u8BA4 Logo\u3002")))])],1),e("FormItem",{attrs:{label:t.$L("\u6B22\u8FCE\u8BCD"),prop:"system_welcome"}},[e("div",{staticStyle:{width:"220px"}},[e("Input",{attrs:{placeholder:t.$L("\u6B22\u8FCE\u60A8\uFF0C(*)","{username}")},model:{value:t.formDatum.system_welcome,callback:function(a){t.$set(t.formDatum,"system_welcome",a)},expression:"formDatum.system_welcome"}})],1),e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u4EEA\u8868\u76D8\u6B22\u8FCE\u8BCD\uFF0C(*)\u4EE3\u8868\u7528\u6237\u6635\u79F0","{username}")))])])],1)]):t._e(),t.scope==="file"?e("div",{staticClass:"block-setting-box"},[e("h3",[t._v(t._s(t.$L("\u4E0A\u4F20\u4E0E\u5A92\u4F53\u5904\u7406")))]),e("div",{staticClass:"form-box"},[e("FormItem",{attrs:{label:t.$L("\u56FE\u7247\u4F18\u5316"),prop:"image_compress"}},[e("RadioGroup",{model:{value:t.formDatum.image_compress,callback:function(a){t.$set(t.formDatum,"image_compress",a)},expression:"formDatum.image_compress"}},[e("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),e("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u6570\u7801\u76F8\u673A4M\u7684\u56FE\u7247\uFF0C\u4F18\u5316\u540E\u4EC5\u6709700KB\u5DE6\u53F3\uFF0C\u800C\u4E14\u8089\u773C\u57FA\u672C\u770B\u4E0D\u51FA\u533A\u522B\u3002")))]),e("Input",{staticStyle:{width:"220px","margin-top":"6px"},attrs:{placeholder:t.$L("\u9ED8\u8BA4\uFF1A90")},model:{value:t.formDatum.image_quality,callback:function(a){t.$set(t.formDatum,"image_quality",a)},expression:"formDatum.image_quality"}},[e("span",{attrs:{slot:"prepend"},slot:"prepend"},[t._v(t._s(t.$L("\u538B\u7F29\u8D28\u91CF")))])]),e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u53D6\u503C\u8303\u56F4\uFF1A0-100\uFF0C\u5EFA\u8BAE\uFF1A90")))])],1),e("FormItem",{attrs:{label:t.$L("\u4FDD\u5B58\u7F51\u7EDC\u56FE\u7247"),prop:"image_save_local"}},[e("RadioGroup",{model:{value:t.formDatum.image_save_local,callback:function(a){t.$set(t.formDatum,"image_save_local",a)},expression:"formDatum.image_save_local"}},[e("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),e("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u662F\u5426\u5C06\u6D88\u606F\u4E2D\u7684\u7F51\u7EDC\u56FE\u7247\u4FDD\u5B58\u5230\u672C\u5730\u670D\u52A1\u5668\u3002")))])],1),e("FormItem",{attrs:{label:t.$L("\u6587\u4EF6\u4E0A\u4F20\u9650\u5236"),prop:"fileUploadLimit"}},[e("div",{staticStyle:{width:"220px"}},[e("Input",{attrs:{type:"number",number:"",placeholder:t.$L("\u9ED8\u8BA4 1G")},scopedSlots:t._u([{key:"append",fn:function(){return[e("span",[t._v("MB")])]},proxy:!0}],null,!1,2560425127),model:{value:t.formDatum.file_upload_limit,callback:function(a){t.$set(t.formDatum,"file_upload_limit",a)},expression:"formDatum.file_upload_limit"}})],1),e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5305\u542B\u6D88\u606F\u53D1\u9001\u7684\u6587\u4EF6")))])]),e("FormItem",{attrs:{label:t.$L("\u89C6\u9891\u8F6C\u6362"),prop:"convertVideo"}},[e("RadioGroup",{model:{value:t.formDatum.convert_video,callback:function(a){t.$set(t.formDatum,"convert_video",a)},expression:"formDatum.convert_video"}},[e("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),e("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),t.formDatum.convert_video=="open"?e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5C06MOV\u3001WEBM\u683C\u5F0F\u7684\u89C6\u9891\u8F6C\u6362\u4E3AMP4\u683C\u5F0F\u3002")))]):e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5173\u95ED\u89C6\u9891\u683C\u5F0F\u8F6C\u6362\u529F\u80FD\u3002")))])],1),e("FormItem",{attrs:{label:t.$L("\u89C6\u9891\u538B\u7F29"),prop:"compressVideo"}},[e("RadioGroup",{model:{value:t.formDatum.compress_video,callback:function(a){t.$set(t.formDatum,"compress_video",a)},expression:"formDatum.compress_video"}},[e("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),e("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),t.formDatum.compress_video=="open"?e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5BF9MP4\u683C\u5F0F\u7684\u89C6\u9891\u8FDB\u884C\u538B\u7F29\u5904\u7406\u3002")))]):e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5173\u95ED\u89C6\u9891\u538B\u7F29\u529F\u80FD\u3002")))])],1)],1)]):t._e(),t.scope==="file"?e("SystemFileSetting",{ref:"fileSetting",attrs:{embedded:""}}):t._e()],1),e("div",{staticClass:"setting-footer"},[e("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),e("Button",{attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},B=[];const E={general:["system_alias","login_logo","system_welcome"],account:["reg","reg_identity","reg_invite","temp_account_alias","login_code","password_policy"],project:["project_invite","project_add_permission","project_add_userids","department_owner_project_view"],task:["auto_archived","archived_day","task_visible","task_default_time","task_user_limit","unclaimed_task_reminder","unclaimed_task_reminder_time","task_ai_auto_analyze","project_task_handoff","project_task_handoff_role","project_task_handoff_candidates","project_task_handoff_adjust","project_task_handoff_note"],message:["chat_information","anon_message","e2e_message","msg_rev_limit","msg_edit_limit","all_group_mute","all_group_autoin","user_private_chat_mute","user_group_chat_mute","todo_set_permission"],file:["convert_video","compress_video","image_compress","image_quality","image_save_local","file_upload_limit"]},W={name:"SystemSetting",components:{ImgUpload:b,SystemTaskPriority:G,SystemFileSetting:w,SystemColumnTemplate:k,UserSelect:f},props:{scope:{type:String,required:!0}},data(){return{loadIng:0,formDatum:{}}},mounted(){this.systemSetting()},computed:{...$(["aiVisible"]),...n(["formOptions"]),projectAddAll(){return(this.formDatum.project_add_permission||[]).includes("all")}},methods:{onProjectAddPermissionChange(t){const s=this.formDatum.project_add_permission||[];let e=t;t.includes("all")&&t.length>1&&(e=s.includes("all")?t.filter(a=>a!=="all"):["all"]),e.length===0&&(e=["all"]),this.$set(this.formDatum,"project_add_permission",e)},submitForm(){this.$refs.formDatum.validate(t=>{t&&this.saveAll()})},resetForm(){var t,s,e;this.formDatum=$A.cloneJSON(this.formDatum_bak),(t=this.$refs.columnTemplate)==null||t.resetForm(),(s=this.$refs.taskPriority)==null||s.resetForm(),(e=this.$refs.fileSetting)==null||e.resetForm()},saveAll(){if(this.loadIng>0)return;const t={project:()=>this.$refs.columnTemplate.systemSetting(!0,!0),task:()=>this.$refs.taskPriority.systemSetting(!0,!0),file:()=>this.$refs.fileSetting.systemSetting(!0,!0)}[this.scope];this.loadIng++,this.saveSystemScope().then(()=>t==null?void 0:t()).then(()=>{$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.$store.dispatch("getUserInfo").catch(()=>{})}).catch(s=>$A.modalError(s)).finally(()=>{this.loadIng--})},saveSystemScope(){const s=E[this.scope].reduce((e,a)=>(e[a]=$A.cloneJSON(this.formDatum[a]),e),{});return this.$store.dispatch("call",{url:"system/setting?type=all",method:"post"}).then(({data:e})=>this.$store.dispatch("call",{url:"system/setting?type=save",method:"post",data:Object.assign({},e,s)})).then(({data:e})=>{this.setSystemDatum(e)}).catch(({msg:e})=>Promise.reject(e))},formArchived(t){this.formDatum={...this.formDatum,auto_archived:t}},formTaskReminder(t){this.formDatum={...this.formDatum,unclaimed_task_reminder:t}},systemSetting(t,s=!1){return this.loadIng++,this.$store.dispatch("call",{url:"system/setting?type="+(t?"save":"all"),method:"post",data:this.formDatum}).then(({data:e})=>{t&&!s&&($A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.$store.dispatch("getUserInfo").catch(()=>{})),this.setSystemDatum(e)}).catch(({msg:e})=>{if(t&&!s&&$A.modalError(e),s)return Promise.reject(e)}).finally(e=>{this.loadIng--})},setSystemDatum(t){this.formDatum=t,this.formDatum_bak=$A.cloneJSON(t),this.$store.state.systemConfig=Object.assign({},this.formDatum_bak,{__state:"success"})}}},u={};var N=l(W,O,B,!1,M,null,null,null);function M(t){for(let s in u)this[s]=u[s]}var z=function(){return N.exports}(),q=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"setting-item submit"},[e("Tabs",{model:{value:t.tabAction,callback:function(a){t.tabAction=a},expression:"tabAction"}},[e("TabPane",{attrs:{label:t.$L("\u57FA\u7840\u8BBE\u7F6E"),name:"general"}},[e("SystemSetting",{attrs:{scope:"general"}})],1),e("TabPane",{attrs:{label:t.$L("\u5E10\u53F7\u4E0E\u5B89\u5168"),name:"account"}},[e("SystemSetting",{attrs:{scope:"account"}})],1),e("TabPane",{attrs:{label:t.$L("\u9879\u76EE\u8BBE\u7F6E"),name:"project"}},[e("SystemSetting",{attrs:{scope:"project"}})],1),e("TabPane",{attrs:{label:t.$L("\u4EFB\u52A1\u8BBE\u7F6E"),name:"task"}},[e("SystemSetting",{attrs:{scope:"task"}})],1),e("TabPane",{attrs:{label:t.$L("\u6D88\u606F\u8BBE\u7F6E"),name:"message"}},[e("SystemSetting",{attrs:{scope:"message"}})],1),e("TabPane",{attrs:{label:t.$L("\u6587\u4EF6\u4E0E\u5B58\u50A8"),name:"file"}},[e("SystemSetting",{attrs:{scope:"file"}})],1)],1)],1)},V=[];const J=["general","account","project","task","message","file"],U={setting:"general",taskPriority:"task",columnTemplate:"project",fileSetting:"file"},H={components:{SystemSetting:z},data(){return{tabAction:this.tabFromRoute()}},watch:{"$route.query.tab"(){this.tabAction=this.tabFromRoute()}},methods:{tabFromRoute(){var s,e;const t=(e=(s=this.$route)==null?void 0:s.query)==null?void 0:e.tab;return J.includes(t)?t:U[t]||"general"}}},d={};var K=l(H,q,V,!1,Y,null,null,null);function Y(t){for(let s in d)this[s]=d[s]}var Jt=function(){return K.exports}();export{Jt as default};
diff --git a/public/js/build/task.b6476095.js b/public/js/build/task.ceb3b6f4.js
similarity index 85%
rename from public/js/build/task.b6476095.js
rename to public/js/build/task.ceb3b6f4.js
index 43e92be73..3d18275bc 100644
--- a/public/js/build/task.b6476095.js
+++ b/public/js/build/task.ceb3b6f4.js
@@ -1 +1 @@
-import{b as i}from"./TaskDetail.e33edbb5.js";import{m as s}from"./vuex.cc7cb26e.js";import{n as a}from"./app.818b057c.js";import"./add.1373f0de.js";import"./DialogWrapper.21630cce.js";import"./chunkedUpload.a9ef725e.js";import"./axios.37c7f908.js";import"./spark-md5.0443325f.js";import"./index.ab4b7604.js";import"./vue-virtual-scroll-list-hi.74ad83f0.js";import"./@babel.9410f858.js";import"./vue.adba9046.js";import"./lodash.8fcd6fd4.js";import"./ImgUpload.a99f26bd.js";import"./webhook.378987f3.js";import"./TEditor.7069f2fe.js";import"./tinymce.498510f2.js";import"./jquery.c87f487f.js";import"./dayjs.fd4aa75c.js";import"./localforage.8de7c27e.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./openpgp_hi.15f91b1d.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./view-design-hi.24419422.js";import"./html-to-md.f297036e.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vuedraggable.f464b992.js";import"./sortablejs.3488b922.js";import"./vue-resize-observer.5af23a43.js";import"./element-sea.f8a64907.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"electron-task"},[r("PageTitle",{attrs:{title:t.taskInfo.name}}),t.loadIng>0?r("Loading"):r("TaskDetail",{ref:"taskDetail",attrs:{"task-id":t.taskInfo.id,"open-task":t.taskInfo,"can-update-blur":t.canUpdateBlur}})],1)},p=[];const m={components:{TaskDetail:i},data(){return{loadIng:0,canUpdateBlur:!0}},mounted(){document.addEventListener("keydown",this.shortcutEvent),this.$isSubElectron&&(window.__onBeforeUnload=()=>{if(this.$store.dispatch("onBeforeUnload"),this.$refs.taskDetail.checkUpdate())return this.canUpdateBlur=!1,$A.modalConfirm({content:"\u4FEE\u6539\u7684\u5185\u5BB9\u5C1A\u672A\u4FDD\u5B58\uFF0C\u771F\u7684\u8981\u653E\u5F03\u4FEE\u6539\u5417\uFF1F",cancelText:"\u53D6\u6D88",okText:"\u653E\u5F03",onOk:()=>{this.$Electron.sendMessage("windowDestroy")},onCancel:()=>{this.$refs.taskDetail.checkUpdate(!1),this.canUpdateBlur=!0}}),!0})},beforeDestroy(){document.removeEventListener("keydown",this.shortcutEvent)},computed:{...s(["cacheTasks"]),taskId(){const{taskId:t}=this.$route.params;return parseInt(/^\d+$/.test(t)?t:0)},taskInfo(){return this.cacheTasks.find(({id:t})=>t===this.taskId)||{}}},watch:{taskId:{handler(){this.getInfo()},immediate:!0}},methods:{getInfo(){this.taskId<=0||(this.loadIng++,this.$store.dispatch("getTaskOne",{task_id:this.taskId,archived:"all"}).then(()=>{this.$store.dispatch("getTaskContent",this.taskId),this.$store.dispatch("getTaskFiles",this.taskId),this.$store.dispatch("getTaskForParent",this.taskId).catch(()=>{}),this.$store.dispatch("getTaskPriority",1e3)}).catch(({msg:t})=>{$A.modalError({content:t,onOk:()=>{this.$Electron&&window.close()}})}).finally(t=>{this.loadIng--}))},shortcutEvent(t){(t.metaKey||t.ctrlKey)&&t.keyCode===83&&(t.preventDefault(),this.$refs.taskDetail.checkUpdate(!0))}}},o={};var c=a(m,n,p,!1,d,"30e163fc",null,null);function d(t){for(let e in o)this[e]=o[e]}var ut=function(){return c.exports}();export{ut as default};
+import{b as i}from"./TaskDetail.6dbf17d2.js";import{m as s}from"./vuex.cc7cb26e.js";import{n as a}from"./app.ef7047f7.js";import"./add.0e2a5c01.js";import"./DialogWrapper.bc988036.js";import"./chunkedUpload.3cd238b0.js";import"./axios.37c7f908.js";import"./spark-md5.0443325f.js";import"./index.f7653997.js";import"./vue-virtual-scroll-list-hi.74ad83f0.js";import"./@babel.9410f858.js";import"./vue.adba9046.js";import"./lodash.8fcd6fd4.js";import"./ImgUpload.434d067a.js";import"./webhook.378987f3.js";import"./TEditor.64c880bb.js";import"./tinymce.498510f2.js";import"./jquery.6e4daff9.js";import"./dayjs.d20a4841.js";import"./localforage.743dffdd.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./openpgp_hi.15f91b1d.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./view-design-hi.24419422.js";import"./html-to-md.f297036e.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vuedraggable.f464b992.js";import"./sortablejs.3488b922.js";import"./vue-resize-observer.5af23a43.js";import"./element-sea.f8a64907.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"electron-task"},[r("PageTitle",{attrs:{title:t.taskInfo.name}}),t.loadIng>0?r("Loading"):r("TaskDetail",{ref:"taskDetail",attrs:{"task-id":t.taskInfo.id,"open-task":t.taskInfo,"can-update-blur":t.canUpdateBlur}})],1)},p=[];const m={components:{TaskDetail:i},data(){return{loadIng:0,canUpdateBlur:!0}},mounted(){document.addEventListener("keydown",this.shortcutEvent),this.$isSubElectron&&(window.__onBeforeUnload=()=>{if(this.$store.dispatch("onBeforeUnload"),this.$refs.taskDetail.checkUpdate())return this.canUpdateBlur=!1,$A.modalConfirm({content:"\u4FEE\u6539\u7684\u5185\u5BB9\u5C1A\u672A\u4FDD\u5B58\uFF0C\u771F\u7684\u8981\u653E\u5F03\u4FEE\u6539\u5417\uFF1F",cancelText:"\u53D6\u6D88",okText:"\u653E\u5F03",onOk:()=>{this.$Electron.sendMessage("windowDestroy")},onCancel:()=>{this.$refs.taskDetail.checkUpdate(!1),this.canUpdateBlur=!0}}),!0})},beforeDestroy(){document.removeEventListener("keydown",this.shortcutEvent)},computed:{...s(["cacheTasks"]),taskId(){const{taskId:t}=this.$route.params;return parseInt(/^\d+$/.test(t)?t:0)},taskInfo(){return this.cacheTasks.find(({id:t})=>t===this.taskId)||{}}},watch:{taskId:{handler(){this.getInfo()},immediate:!0}},methods:{getInfo(){this.taskId<=0||(this.loadIng++,this.$store.dispatch("getTaskOne",{task_id:this.taskId,archived:"all"}).then(()=>{this.$store.dispatch("getTaskContent",this.taskId),this.$store.dispatch("getTaskFiles",this.taskId),this.$store.dispatch("getTaskForParent",this.taskId).catch(()=>{}),this.$store.dispatch("getTaskPriority",1e3)}).catch(({msg:t})=>{$A.modalError({content:t,onOk:()=>{this.$Electron&&window.close()}})}).finally(t=>{this.loadIng--}))},shortcutEvent(t){(t.metaKey||t.ctrlKey)&&t.keyCode===83&&(t.preventDefault(),this.$refs.taskDetail.checkUpdate(!0))}}},o={};var c=a(m,n,p,!1,d,"30e163fc",null,null);function d(t){for(let e in o)this[e]=o[e]}var ut=function(){return c.exports}();export{ut as default};
diff --git a/public/js/build/taskContent.f0f81c3b.js b/public/js/build/taskContent.c53ad1c7.js
similarity index 88%
rename from public/js/build/taskContent.f0f81c3b.js
rename to public/js/build/taskContent.c53ad1c7.js
index f8413e191..38c639269 100644
--- a/public/js/build/taskContent.f0f81c3b.js
+++ b/public/js/build/taskContent.c53ad1c7.js
@@ -1 +1 @@
-import e from"./TEditor.7069f2fe.js";import{n as s}from"./app.818b057c.js";import"./tinymce.498510f2.js";import"./@babel.9410f858.js";import"./ImgUpload.a99f26bd.js";import"./chunkedUpload.a9ef725e.js";import"./axios.37c7f908.js";import"./spark-md5.0443325f.js";import"./vuex.cc7cb26e.js";import"./jquery.c87f487f.js";import"./dayjs.fd4aa75c.js";import"./localforage.8de7c27e.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./vue.adba9046.js";import"./openpgp_hi.15f91b1d.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./view-design-hi.24419422.js";import"./html-to-md.f297036e.js";import"./lodash.8fcd6fd4.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vuedraggable.f464b992.js";import"./sortablejs.3488b922.js";import"./vue-resize-observer.5af23a43.js";import"./element-sea.f8a64907.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var a=function(){var t=this,i=t.$createElement,r=t._self._c||i;return r("div",{staticClass:"single-task-content"},[r("PageTitle",{attrs:{title:t.pageName}}),t.loadIng>0?r("Loading"):t.info?r("div",{staticClass:"file-preview"},[t.showHeader?r("div",{staticClass:"edit-header"},[r("div",{staticClass:"header-title"},[r("div",{staticClass:"title-name user-select-auto"},[t._v(t._s(t.pageName))]),r("Tag",{attrs:{color:"default"}},[t._v(t._s(t.$L("\u53EA\u8BFB")))]),r("div",{staticClass:"refresh"},[r("Icon",{attrs:{type:"ios-refresh"},on:{click:t.getInfo}})],1)],1)]):t._e(),r("div",{staticClass:"content-body user-select-auto"},[r("TEditor",{attrs:{value:t.info.content,height:"100%",readOnly:""}})],1)]):t._e()],1)},n=[];const m={components:{TEditor:e},data(){return{loadIng:0,info:null,showHeader:!$A.isEEUIApp}},mounted(){},computed:{taskId(){return this.$route.params?$A.runNum(this.$route.params.taskId):0},historyId(){return this.$route.query?$A.runNum(this.$route.query.history_id):0},pageName(){return this.$route.query&&this.$route.query.history_title?this.$route.query.history_title:this.info?`${this.info.name} [${this.info.created_at}]`:""}},watch:{$route:{handler(){this.getInfo()},immediate:!0}},methods:{getInfo(){setTimeout(t=>{this.loadIng++},600),this.$store.dispatch("call",{url:"project/task/content",data:{task_id:this.taskId,history_id:this.historyId}}).then(({data:t})=>{this.info=t}).catch(({msg:t})=>{$A.modalError({content:t,onOk:()=>{window.close()}})}).finally(t=>{this.loadIng--})}}},o={};var p=s(m,a,n,!1,l,"f0b8a17c",null,null);function l(t){for(let i in o)this[i]=o[i]}var mt=function(){return p.exports}();export{mt as default};
+import e from"./TEditor.64c880bb.js";import{n as s}from"./app.ef7047f7.js";import"./tinymce.498510f2.js";import"./@babel.9410f858.js";import"./ImgUpload.434d067a.js";import"./chunkedUpload.3cd238b0.js";import"./axios.37c7f908.js";import"./spark-md5.0443325f.js";import"./vuex.cc7cb26e.js";import"./jquery.6e4daff9.js";import"./dayjs.d20a4841.js";import"./localforage.743dffdd.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./vue.adba9046.js";import"./openpgp_hi.15f91b1d.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./view-design-hi.24419422.js";import"./html-to-md.f297036e.js";import"./lodash.8fcd6fd4.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vuedraggable.f464b992.js";import"./sortablejs.3488b922.js";import"./vue-resize-observer.5af23a43.js";import"./element-sea.f8a64907.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var a=function(){var t=this,i=t.$createElement,r=t._self._c||i;return r("div",{staticClass:"single-task-content"},[r("PageTitle",{attrs:{title:t.pageName}}),t.loadIng>0?r("Loading"):t.info?r("div",{staticClass:"file-preview"},[t.showHeader?r("div",{staticClass:"edit-header"},[r("div",{staticClass:"header-title"},[r("div",{staticClass:"title-name user-select-auto"},[t._v(t._s(t.pageName))]),r("Tag",{attrs:{color:"default"}},[t._v(t._s(t.$L("\u53EA\u8BFB")))]),r("div",{staticClass:"refresh"},[r("Icon",{attrs:{type:"ios-refresh"},on:{click:t.getInfo}})],1)],1)]):t._e(),r("div",{staticClass:"content-body user-select-auto"},[r("TEditor",{attrs:{value:t.info.content,height:"100%",readOnly:""}})],1)]):t._e()],1)},n=[];const m={components:{TEditor:e},data(){return{loadIng:0,info:null,showHeader:!$A.isEEUIApp}},mounted(){},computed:{taskId(){return this.$route.params?$A.runNum(this.$route.params.taskId):0},historyId(){return this.$route.query?$A.runNum(this.$route.query.history_id):0},pageName(){return this.$route.query&&this.$route.query.history_title?this.$route.query.history_title:this.info?`${this.info.name} [${this.info.created_at}]`:""}},watch:{$route:{handler(){this.getInfo()},immediate:!0}},methods:{getInfo(){setTimeout(t=>{this.loadIng++},600),this.$store.dispatch("call",{url:"project/task/content",data:{task_id:this.taskId,history_id:this.historyId}}).then(({data:t})=>{this.info=t}).catch(({msg:t})=>{$A.modalError({content:t,onOk:()=>{window.close()}})}).finally(t=>{this.loadIng--})}}},o={};var p=s(m,a,n,!1,l,"f0b8a17c",null,null);function l(t){for(let i in o)this[i]=o[i]}var mt=function(){return p.exports}();export{mt as default};
diff --git a/public/js/build/theme.97f5379c.js b/public/js/build/theme.c83e7a13.js
similarity index 96%
rename from public/js/build/theme.97f5379c.js
rename to public/js/build/theme.c83e7a13.js
index 1e22417e0..1fc5033f9 100644
--- a/public/js/build/theme.97f5379c.js
+++ b/public/js/build/theme.c83e7a13.js
@@ -1 +1 @@
-import{m as a}from"./vuex.cc7cb26e.js";import{n as s}from"./app.818b057c.js";import"./jquery.c87f487f.js";import"./@babel.9410f858.js";import"./dayjs.fd4aa75c.js";import"./localforage.8de7c27e.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./vue.adba9046.js";import"./openpgp_hi.15f91b1d.js";import"./axios.37c7f908.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./view-design-hi.24419422.js";import"./html-to-md.f297036e.js";import"./lodash.8fcd6fd4.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vuedraggable.f464b992.js";import"./sortablejs.3488b922.js";import"./vue-resize-observer.5af23a43.js";import"./element-sea.f8a64907.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var n=function(){var t=this,o=t.$createElement,r=t._self._c||o;return r("div",{staticClass:"setting-item submit"},[r("Form",t._b({ref:"formData",attrs:{model:t.formData,rules:t.ruleData},nativeOn:{submit:function(e){e.preventDefault()}}},"Form",t.formOptions,!1),[r("FormItem",{attrs:{label:t.$L("\u9009\u62E9\u4E3B\u9898"),prop:"theme"}},[r("Select",{attrs:{placeholder:t.$L("\u9009\u9879\u4E3B\u9898")},model:{value:t.formData.theme,callback:function(e){t.$set(t.formData,"theme",e)},expression:"formData.theme"}},t._l(t.themeList,function(e,i){return r("Option",{key:i,attrs:{value:e.value}},[t._v(t._s(t.$L(e.name)))])}),1)],1)],1),r("div",{staticClass:"setting-footer"},[r("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),r("Button",{attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},p=[];const l={data(){return{loadIng:0,formData:{theme:""},ruleData:{}}},mounted(){this.initData()},computed:{...a(["themeConf","themeList","formOptions"])},methods:{initData(){this.$set(this.formData,"theme",this.themeConf),this.formData_bak=$A.cloneJSON(this.formData)},submitForm(){this.$refs.formData.validate(t=>{t&&this.$store.dispatch("setTheme",this.formData.theme).then(o=>{var r;!o||($A.messageSuccess("\u4FDD\u5B58\u6210\u529F"),(r=$A.Electron)==null||r.sendMessage("recreatePreloadPool"))})})},resetForm(){this.formData=$A.cloneJSON(this.formData_bak)}}},m={};var f=s(l,n,p,!1,c,null,null,null);function c(t){for(let o in m)this[o]=m[o]}var it=function(){return f.exports}();export{it as default};
+import{m as a}from"./vuex.cc7cb26e.js";import{n as s}from"./app.ef7047f7.js";import"./jquery.6e4daff9.js";import"./@babel.9410f858.js";import"./dayjs.d20a4841.js";import"./localforage.743dffdd.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./vue.adba9046.js";import"./openpgp_hi.15f91b1d.js";import"./axios.37c7f908.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./view-design-hi.24419422.js";import"./html-to-md.f297036e.js";import"./lodash.8fcd6fd4.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vuedraggable.f464b992.js";import"./sortablejs.3488b922.js";import"./vue-resize-observer.5af23a43.js";import"./element-sea.f8a64907.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var n=function(){var t=this,o=t.$createElement,r=t._self._c||o;return r("div",{staticClass:"setting-item submit"},[r("Form",t._b({ref:"formData",attrs:{model:t.formData,rules:t.ruleData},nativeOn:{submit:function(e){e.preventDefault()}}},"Form",t.formOptions,!1),[r("FormItem",{attrs:{label:t.$L("\u9009\u62E9\u4E3B\u9898"),prop:"theme"}},[r("Select",{attrs:{placeholder:t.$L("\u9009\u9879\u4E3B\u9898")},model:{value:t.formData.theme,callback:function(e){t.$set(t.formData,"theme",e)},expression:"formData.theme"}},t._l(t.themeList,function(e,i){return r("Option",{key:i,attrs:{value:e.value}},[t._v(t._s(t.$L(e.name)))])}),1)],1)],1),r("div",{staticClass:"setting-footer"},[r("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),r("Button",{attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},p=[];const l={data(){return{loadIng:0,formData:{theme:""},ruleData:{}}},mounted(){this.initData()},computed:{...a(["themeConf","themeList","formOptions"])},methods:{initData(){this.$set(this.formData,"theme",this.themeConf),this.formData_bak=$A.cloneJSON(this.formData)},submitForm(){this.$refs.formData.validate(t=>{t&&this.$store.dispatch("setTheme",this.formData.theme).then(o=>{var r;!o||($A.messageSuccess("\u4FDD\u5B58\u6210\u529F"),(r=$A.Electron)==null||r.sendMessage("recreatePreloadPool"))})})},resetForm(){this.formData=$A.cloneJSON(this.formData_bak)}}},m={};var f=s(l,n,p,!1,c,null,null,null);function c(t){for(let o in m)this[o]=m[o]}var it=function(){return f.exports}();export{it as default};
diff --git a/public/js/build/token.a5f4f1fc.js b/public/js/build/token.ff455828.js
similarity index 91%
rename from public/js/build/token.a5f4f1fc.js
rename to public/js/build/token.ff455828.js
index 0c15b8a85..d21536914 100644
--- a/public/js/build/token.a5f4f1fc.js
+++ b/public/js/build/token.ff455828.js
@@ -1 +1 @@
-import{n as e}from"./app.818b057c.js";import"./jquery.c87f487f.js";import"./@babel.9410f858.js";import"./dayjs.fd4aa75c.js";import"./localforage.8de7c27e.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./vue.adba9046.js";import"./vuex.cc7cb26e.js";import"./openpgp_hi.15f91b1d.js";import"./axios.37c7f908.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./view-design-hi.24419422.js";import"./html-to-md.f297036e.js";import"./lodash.8fcd6fd4.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vuedraggable.f464b992.js";import"./sortablejs.3488b922.js";import"./vue-resize-observer.5af23a43.js";import"./element-sea.f8a64907.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var m=function(){var t=this,o=t.$createElement,r=t._self._c||o;return r("div",{staticClass:"token-transfer"},[r("Loading")],1)},p=[];const n={mounted(){this.goNext1()},methods:{goNext1(){const t=$A.urlParameterAll();t.token&&this.$store.dispatch("call",{url:"users/info",header:{token:t.token}}).then(o=>{this.$store.dispatch("saveUserInfo",o.data),this.goNext2()}).catch(o=>{this.goForward({name:"login"},!0)})},goNext2(){let t=decodeURIComponent($A.getObject(this.$route.query,"from"));t?window.location.replace(t):this.goForward({name:"manage-dashboard"},!0)}}},i={};var a=e(n,m,p,!1,s,"11ad2646",null,null);function s(t){for(let o in i)this[o]=i[o]}var rt=function(){return a.exports}();export{rt as default};
+import{n as e}from"./app.ef7047f7.js";import"./jquery.6e4daff9.js";import"./@babel.9410f858.js";import"./dayjs.d20a4841.js";import"./localforage.743dffdd.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./vue.adba9046.js";import"./vuex.cc7cb26e.js";import"./openpgp_hi.15f91b1d.js";import"./axios.37c7f908.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./view-design-hi.24419422.js";import"./html-to-md.f297036e.js";import"./lodash.8fcd6fd4.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vuedraggable.f464b992.js";import"./sortablejs.3488b922.js";import"./vue-resize-observer.5af23a43.js";import"./element-sea.f8a64907.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var m=function(){var t=this,o=t.$createElement,r=t._self._c||o;return r("div",{staticClass:"token-transfer"},[r("Loading")],1)},p=[];const n={mounted(){this.goNext1()},methods:{goNext1(){const t=$A.urlParameterAll();t.token&&this.$store.dispatch("call",{url:"users/info",header:{token:t.token}}).then(o=>{this.$store.dispatch("saveUserInfo",o.data),this.goNext2()}).catch(o=>{this.goForward({name:"login"},!0)})},goNext2(){let t=decodeURIComponent($A.getObject(this.$route.query,"from"));t?window.location.replace(t):this.goForward({name:"manage-dashboard"},!0)}}},i={};var a=e(n,m,p,!1,s,"11ad2646",null,null);function s(t){for(let o in i)this[o]=i[o]}var rt=function(){return a.exports}();export{rt as default};
diff --git a/public/js/build/validEmail.f2f15440.js b/public/js/build/validEmail.44c293c3.js
similarity index 93%
rename from public/js/build/validEmail.f2f15440.js
rename to public/js/build/validEmail.44c293c3.js
index e7632dd13..d859edd7c 100644
--- a/public/js/build/validEmail.f2f15440.js
+++ b/public/js/build/validEmail.44c293c3.js
@@ -1 +1 @@
-import{n as e}from"./app.818b057c.js";import"./jquery.c87f487f.js";import"./@babel.9410f858.js";import"./dayjs.fd4aa75c.js";import"./localforage.8de7c27e.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./vue.adba9046.js";import"./vuex.cc7cb26e.js";import"./openpgp_hi.15f91b1d.js";import"./axios.37c7f908.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./view-design-hi.24419422.js";import"./html-to-md.f297036e.js";import"./lodash.8fcd6fd4.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vuedraggable.f464b992.js";import"./sortablejs.3488b922.js";import"./vue-resize-observer.5af23a43.js";import"./element-sea.f8a64907.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var s=function(){var t=this,i=t.$createElement,r=t._self._c||i;return r("div",{staticClass:"valid-wrap"},[r("div",{staticClass:"valid-box"},[r("div",{staticClass:"valid-title"},[t._v(t._s(t.$L("\u9A8C\u8BC1\u90AE\u7BB1")))]),!t.success&&!t.error?r("Spin",{attrs:{size:"large"}}):t._e(),t.success?r("div",{staticClass:"validation-text"},[r("p",[t._v(t._s(t.$L("\u60A8\u7684\u90AE\u7BB1\u5DF2\u901A\u8FC7\u9A8C\u8BC1")))]),r("p",[t._v(t._s(t.$L("\u4ECA\u540E\u60A8\u53EF\u4EE5\u901A\u8FC7\u6B64\u90AE\u7BB1\u91CD\u7F6E\u60A8\u7684\u5E10\u53F7\u5BC6\u7801")))])]):t._e(),t.error?r("div",{staticClass:"validation-text"},[r("div",[t._v(t._s(t.errorText))])]):t._e(),t.success?r("div",{attrs:{slot:"footer"},slot:"footer"},[r("Button",{attrs:{type:"primary",long:""},on:{click:t.userLogout}},[t._v(t._s(t.$L("\u8FD4\u56DE\u9996\u9875")))])],1):t._e()],1)])},a=[];const m={data(){return{success:!1,error:!1,errorText:this.$L("\u94FE\u63A5\u5DF2\u8FC7\u671F\uFF0C\u5DF2\u91CD\u65B0\u53D1\u9001")}},mounted(){this.verificationEmail()},methods:{verificationEmail(){this.$store.dispatch("call",{url:"users/email/verification",data:{code:this.$route.query.code}}).then(()=>{this.success=!0,this.error=!1}).catch(({data:t,msg:i})=>{t.code===2?this.goForward({name:"index",query:{action:"index"}},!0):(this.success=!1,this.error=!0,this.errorText=this.$L(i))})},userLogout(){this.$store.dispatch("logout",!1)}}},o={};var p=e(m,s,a,!1,c,"763444c4",null,null);function c(t){for(let i in o)this[i]=o[i]}var it=function(){return p.exports}();export{it as default};
+import{n as e}from"./app.ef7047f7.js";import"./jquery.6e4daff9.js";import"./@babel.9410f858.js";import"./dayjs.d20a4841.js";import"./localforage.743dffdd.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./vue.adba9046.js";import"./vuex.cc7cb26e.js";import"./openpgp_hi.15f91b1d.js";import"./axios.37c7f908.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./view-design-hi.24419422.js";import"./html-to-md.f297036e.js";import"./lodash.8fcd6fd4.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vuedraggable.f464b992.js";import"./sortablejs.3488b922.js";import"./vue-resize-observer.5af23a43.js";import"./element-sea.f8a64907.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var s=function(){var t=this,i=t.$createElement,r=t._self._c||i;return r("div",{staticClass:"valid-wrap"},[r("div",{staticClass:"valid-box"},[r("div",{staticClass:"valid-title"},[t._v(t._s(t.$L("\u9A8C\u8BC1\u90AE\u7BB1")))]),!t.success&&!t.error?r("Spin",{attrs:{size:"large"}}):t._e(),t.success?r("div",{staticClass:"validation-text"},[r("p",[t._v(t._s(t.$L("\u60A8\u7684\u90AE\u7BB1\u5DF2\u901A\u8FC7\u9A8C\u8BC1")))]),r("p",[t._v(t._s(t.$L("\u4ECA\u540E\u60A8\u53EF\u4EE5\u901A\u8FC7\u6B64\u90AE\u7BB1\u91CD\u7F6E\u60A8\u7684\u5E10\u53F7\u5BC6\u7801")))])]):t._e(),t.error?r("div",{staticClass:"validation-text"},[r("div",[t._v(t._s(t.errorText))])]):t._e(),t.success?r("div",{attrs:{slot:"footer"},slot:"footer"},[r("Button",{attrs:{type:"primary",long:""},on:{click:t.userLogout}},[t._v(t._s(t.$L("\u8FD4\u56DE\u9996\u9875")))])],1):t._e()],1)])},a=[];const m={data(){return{success:!1,error:!1,errorText:this.$L("\u94FE\u63A5\u5DF2\u8FC7\u671F\uFF0C\u5DF2\u91CD\u65B0\u53D1\u9001")}},mounted(){this.verificationEmail()},methods:{verificationEmail(){this.$store.dispatch("call",{url:"users/email/verification",data:{code:this.$route.query.code}}).then(()=>{this.success=!0,this.error=!1}).catch(({data:t,msg:i})=>{t.code===2?this.goForward({name:"index",query:{action:"index"}},!0):(this.success=!1,this.error=!0,this.errorText=this.$L(i))})},userLogout(){this.$store.dispatch("logout",!1)}}},o={};var p=e(m,s,a,!1,c,"763444c4",null,null);function c(t){for(let i in o)this[i]=o[i]}var it=function(){return p.exports}();export{it as default};
diff --git a/public/js/build/version.f4a10c75.js b/public/js/build/version.f9e3fd2c.js
similarity index 89%
rename from public/js/build/version.f4a10c75.js
rename to public/js/build/version.f9e3fd2c.js
index 0cac69519..2c1a6f01f 100644
--- a/public/js/build/version.f4a10c75.js
+++ b/public/js/build/version.f9e3fd2c.js
@@ -1 +1 @@
-import m from"./preview.a027dcb2.js";import{n as p}from"./app.818b057c.js";import"./openpgp_hi.15f91b1d.js";import"./index.40a8e116.js";import"./jquery.c87f487f.js";import"./@babel.9410f858.js";import"./dayjs.fd4aa75c.js";import"./localforage.8de7c27e.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./vue.adba9046.js";import"./vuex.cc7cb26e.js";import"./axios.37c7f908.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./view-design-hi.24419422.js";import"./html-to-md.f297036e.js";import"./lodash.8fcd6fd4.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vuedraggable.f464b992.js";import"./sortablejs.3488b922.js";import"./vue-resize-observer.5af23a43.js";import"./element-sea.f8a64907.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var e=function(){var t=this,o=t.$createElement,r=t._self._c||o;return r("div",{staticClass:"setting-item submit"},[r("div",{staticClass:"version-box"},[t.loadIng?r("div",{staticClass:"version-load"},[t._v(t._s(t.$L("\u52A0\u8F7D\u4E2D...")))]):r("VMPreview",{attrs:{value:t.updateLog}})],1)])},s=[];const a={components:{VMPreview:m},data(){return{loadIng:0,updateLog:""}},mounted(){this.getLog()},methods:{getLog(){this.loadIng++,this.$store.dispatch("call",{url:"system/get/updatelog",data:{take:50}}).then(({data:t})=>{this.updateLog=t.updateLog}).catch(({msg:t})=>{$A.messageError(t)}).finally(t=>{this.loadIng--})}}},i={};var n=p(a,e,s,!1,l,null,null,null);function l(t){for(let o in i)this[o]=i[o]}var pt=function(){return n.exports}();export{pt as default};
+import m from"./preview.7d35fa9c.js";import{n as p}from"./app.ef7047f7.js";import"./openpgp_hi.15f91b1d.js";import"./index.40a8e116.js";import"./jquery.6e4daff9.js";import"./@babel.9410f858.js";import"./dayjs.d20a4841.js";import"./localforage.743dffdd.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./vue.adba9046.js";import"./vuex.cc7cb26e.js";import"./axios.37c7f908.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./view-design-hi.24419422.js";import"./html-to-md.f297036e.js";import"./lodash.8fcd6fd4.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vuedraggable.f464b992.js";import"./sortablejs.3488b922.js";import"./vue-resize-observer.5af23a43.js";import"./element-sea.f8a64907.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var e=function(){var t=this,o=t.$createElement,r=t._self._c||o;return r("div",{staticClass:"setting-item submit"},[r("div",{staticClass:"version-box"},[t.loadIng?r("div",{staticClass:"version-load"},[t._v(t._s(t.$L("\u52A0\u8F7D\u4E2D...")))]):r("VMPreview",{attrs:{value:t.updateLog}})],1)])},s=[];const a={components:{VMPreview:m},data(){return{loadIng:0,updateLog:""}},mounted(){this.getLog()},methods:{getLog(){this.loadIng++,this.$store.dispatch("call",{url:"system/get/updatelog",data:{take:50}}).then(({data:t})=>{this.updateLog=t.updateLog}).catch(({msg:t})=>{$A.messageError(t)}).finally(t=>{this.loadIng--})}}},i={};var n=p(a,e,s,!1,l,null,null,null);function l(t){for(let o in i)this[o]=i[o]}var pt=function(){return n.exports}();export{pt as default};
diff --git a/public/js/build/video.62bb9aea.js b/public/js/build/video.8becb11f.js
similarity index 91%
rename from public/js/build/video.62bb9aea.js
rename to public/js/build/video.8becb11f.js
index f8de0f18e..ece2faafe 100644
--- a/public/js/build/video.62bb9aea.js
+++ b/public/js/build/video.8becb11f.js
@@ -1 +1 @@
-import{n as p}from"./app.818b057c.js";import"./jquery.c87f487f.js";import"./@babel.9410f858.js";import"./dayjs.fd4aa75c.js";import"./localforage.8de7c27e.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./vue.adba9046.js";import"./vuex.cc7cb26e.js";import"./openpgp_hi.15f91b1d.js";import"./axios.37c7f908.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./view-design-hi.24419422.js";import"./html-to-md.f297036e.js";import"./lodash.8fcd6fd4.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vuedraggable.f464b992.js";import"./sortablejs.3488b922.js";import"./vue-resize-observer.5af23a43.js";import"./element-sea.f8a64907.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var n=function(){var i=this,t=i.$createElement,r=i._self._c||t;return r("div",{ref:"view",staticClass:"common-preview-video"},[i.item.src?r("video",{attrs:{width:i.videoStyle("width"),height:i.videoStyle("height"),controls:"",autoplay:""}},[r("source",{attrs:{src:i.item.src,type:"video/mp4"}})]):i._e()])},s=[];const d={props:{item:{type:Object,default:()=>({src:"",width:0,height:0})}},data(){return{}},mounted(){},methods:{videoStyle(i){let{width:t,height:r}=this.item;const o=this.windowWidth,e=this.windowHeight;return t>o&&(r=r*o/t,t=o),r>e&&(t=t*e/r,r=e),i==="width"?t:i==="height"?r:{width:`${t}px`,height:`${r}px`}}}},m={};var h=p(d,n,s,!1,a,"1115e79e",null,null);function a(i){for(let t in m)this[t]=m[t]}var et=function(){return h.exports}();export{et as default};
+import{n as p}from"./app.ef7047f7.js";import"./jquery.6e4daff9.js";import"./@babel.9410f858.js";import"./dayjs.d20a4841.js";import"./localforage.743dffdd.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./vue.adba9046.js";import"./vuex.cc7cb26e.js";import"./openpgp_hi.15f91b1d.js";import"./axios.37c7f908.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./view-design-hi.24419422.js";import"./html-to-md.f297036e.js";import"./lodash.8fcd6fd4.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vuedraggable.f464b992.js";import"./sortablejs.3488b922.js";import"./vue-resize-observer.5af23a43.js";import"./element-sea.f8a64907.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var n=function(){var i=this,t=i.$createElement,r=i._self._c||t;return r("div",{ref:"view",staticClass:"common-preview-video"},[i.item.src?r("video",{attrs:{width:i.videoStyle("width"),height:i.videoStyle("height"),controls:"",autoplay:""}},[r("source",{attrs:{src:i.item.src,type:"video/mp4"}})]):i._e()])},s=[];const d={props:{item:{type:Object,default:()=>({src:"",width:0,height:0})}},data(){return{}},mounted(){},methods:{videoStyle(i){let{width:t,height:r}=this.item;const o=this.windowWidth,e=this.windowHeight;return t>o&&(r=r*o/t,t=o),r>e&&(t=t*e/r,r=e),i==="width"?t:i==="height"?r:{width:`${t}px`,height:`${r}px`}}}},m={};var h=p(d,n,s,!1,a,"1115e79e",null,null);function a(i){for(let t in m)this[t]=m[t]}var et=function(){return h.exports}();export{et as default};
diff --git a/public/js/build/view.067c0cbb.js b/public/js/build/view.61b3adb3.js
similarity index 97%
rename from public/js/build/view.067c0cbb.js
rename to public/js/build/view.61b3adb3.js
index 9e5534a03..f3c90b82a 100644
--- a/public/js/build/view.067c0cbb.js
+++ b/public/js/build/view.61b3adb3.js
@@ -1 +1 @@
-import{i as h,r as c,o as r,a as l}from"./element-sea.f8a64907.js";import{n as u}from"./app.818b057c.js";import"./vue.adba9046.js";import"./@babel.9410f858.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";import"./jquery.c87f487f.js";import"./dayjs.fd4aa75c.js";import"./localforage.8de7c27e.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./vuex.cc7cb26e.js";import"./openpgp_hi.15f91b1d.js";import"./axios.37c7f908.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./view-design-hi.24419422.js";import"./html-to-md.f297036e.js";import"./lodash.8fcd6fd4.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vuedraggable.f464b992.js";import"./sortablejs.3488b922.js";import"./vue-resize-observer.5af23a43.js";var p=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{ref:"view",staticClass:"common-preview-image"},[e("div",{staticClass:"common-preview-view no-dark-content"},[t.isSingle?t._e():[e("div",{staticClass:"preview-view-prev",class:{"is-disabled":!t.infinite&&t.isFirst},on:{click:t.prev}},[e("i",{staticClass:"taskfont"},[t._v("\uE72D")])]),e("div",{staticClass:"preview-view-next",class:{"is-disabled":!t.infinite&&t.isLast},on:{click:t.next}},[e("i",{staticClass:"taskfont"},[t._v("\uE733")])])],e("div",{staticClass:"preview-view-actions"},[e("div",{staticClass:"actions-inner"},[e("i",{staticClass:"taskfont",on:{click:function(n){return t.handleActions("zoomOut")}}},[t._v("\uE7A2")]),e("i",{staticClass:"taskfont",on:{click:function(n){return t.handleActions("zoomIn")}}},[t._v("\uE79F")]),e("i",{staticClass:"actions-divider"}),e("i",{staticClass:"taskfont",domProps:{innerHTML:t._s(t.mode.icon)},on:{click:t.toggleMode}}),e("i",{staticClass:"actions-divider"}),e("i",{staticClass:"taskfont",on:{click:function(n){return t.handleActions("anticlocelise")}}},[t._v("\uE7A7")]),e("i",{staticClass:"taskfont",on:{click:function(n){return t.handleActions("clocelise")}}},[t._v("\uE7A6")])])]),e("div",{staticClass:"preview-view-canvas"},t._l(t.urlList,function(n,o){return o===t.index?e("img",{key:o,ref:"img",refInFor:!0,staticClass:"preview-view-img",style:t.imgStyle,attrs:{src:t.currentImg},on:{load:t.handleImgLoad,error:t.handleImgError,mousedown:t.handleMouseDown}}):t._e()}),0)],2)])},f=[];const a={CONTAIN:{name:"contain",icon:""},ORIGINAL:{name:"original",icon:""}},m=h()?"DOMMouseScroll":"mousewheel",v={props:{urlList:{type:Array,default:()=>[]},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!1},onSwitch:{type:Function,default:()=>{}}},data(){return{index:this.initialIndex,loading:!1,mode:a.CONTAIN,transform:{scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}},mounted(){this.deviceSupportInstall(),this.$refs.view.focus()},beforeDestroy(){this.deviceSupportUninstall()},computed:{isSingle(){return this.urlList.length<=1},isFirst(){return this.index===0},isLast(){return this.index===this.urlList.length-1},currentImg(){let t=this.urlList[this.index];return $A.isJson(t)&&(t=t.src),t},imgStyle(){const{scale:t,deg:s,offsetX:e,offsetY:n,enableTransition:o}=this.transform,i={transform:`scale(${t}) rotate(${s}deg)`,transition:o?"transform .3s":"","margin-left":`${e}px`,"margin-top":`${n}px`};return this.mode===a.CONTAIN&&(i.maxWidth=i.maxHeight="100%"),i}},watch:{index:{handler:function(t){this.reset(),this.onSwitch(t)}},initialIndex(t){this.index=t},currentImg(){this.$nextTick(t=>{this.$refs.img[0].complete||(this.loading=!0)})}},methods:{deviceSupportInstall(){this._keyDownHandler=t=>{switch(t.stopPropagation(),t.keyCode){case 32:this.toggleMode();break;case 37:this.prev();break;case 38:this.handleActions("zoomIn");break;case 39:this.next();break;case 40:this.handleActions("zoomOut");break}},this._mouseWheelHandler=c(t=>{(t.wheelDelta?t.wheelDelta:-t.detail)>0?this.handleActions("zoomIn",{zoomRate:.015,enableTransition:!1}):this.handleActions("zoomOut",{zoomRate:.015,enableTransition:!1})}),r(document,"keydown",this._keyDownHandler),r(document,m,this._mouseWheelHandler)},deviceSupportUninstall(){l(document,"keydown",this._keyDownHandler),l(document,m,this._mouseWheelHandler),this._keyDownHandler=null,this._mouseWheelHandler=null},handleImgLoad(t){this.loading=!1},handleImgError(t){this.loading=!1,t.target.alt="\u52A0\u8F7D\u5931\u8D25"},handleMouseDown(t){if(this.loading||t.button!==0)return;const{offsetX:s,offsetY:e}=this.transform,n=t.pageX,o=t.pageY;this._dragHandler=c(i=>{this.transform.offsetX=s+i.pageX-n,this.transform.offsetY=e+i.pageY-o}),r(document,"mousemove",this._dragHandler),r(document,"mouseup",i=>{l(document,"mousemove",this._dragHandler)}),t.preventDefault()},reset(){this.transform={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}},toggleMode(){if(this.loading)return;const t=Object.keys(a),n=(Object.values(a).indexOf(this.mode)+1)%t.length;this.mode=a[t[n]],this.reset()},prev(){if(this.isFirst&&!this.infinite)return;const t=this.urlList.length;this.index=(this.index-1+t)%t},next(){if(this.isLast&&!this.infinite)return;const t=this.urlList.length;this.index=(this.index+1)%t},handleActions(t,s={}){if(this.loading)return;const{zoomRate:e,rotateDeg:n,enableTransition:o}={zoomRate:.2,rotateDeg:90,enableTransition:!0,...s},{transform:i}=this;switch(t){case"zoomOut":i.scale>.2&&(i.scale=parseFloat((i.scale-e).toFixed(3)));break;case"zoomIn":i.scale=parseFloat((i.scale+e).toFixed(3));break;case"clocelise":i.deg+=n;break;case"anticlocelise":i.deg-=n;break}i.enableTransition=o}}},d={};var g=u(v,p,f,!1,_,"c2c0aabe",null,null);function _(t){for(let s in d)this[s]=d[s]}var dt=function(){return g.exports}();export{dt as default};
+import{i as h,r as c,o as r,a as l}from"./element-sea.f8a64907.js";import{n as u}from"./app.ef7047f7.js";import"./vue.adba9046.js";import"./@babel.9410f858.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";import"./jquery.6e4daff9.js";import"./dayjs.d20a4841.js";import"./localforage.743dffdd.js";import"./markdown-it.0450edb4.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./highlight.js.cbbfb885.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.acea8861.js";import"./vuex.cc7cb26e.js";import"./openpgp_hi.15f91b1d.js";import"./axios.37c7f908.js";import"./mitt.1ea0a2a3.js";import"./quill-hi.ca2ea0cc.js";import"./parchment.d5c5924e.js";import"./quill-delta.385a10bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./quill-mention-hi.4eeb5a2d.js";import"./view-design-hi.24419422.js";import"./html-to-md.f297036e.js";import"./lodash.8fcd6fd4.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.fd43a5bc.js";import"./clipboard.37b37361.js";import"./vuedraggable.f464b992.js";import"./sortablejs.3488b922.js";import"./vue-resize-observer.5af23a43.js";var p=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{ref:"view",staticClass:"common-preview-image"},[e("div",{staticClass:"common-preview-view no-dark-content"},[t.isSingle?t._e():[e("div",{staticClass:"preview-view-prev",class:{"is-disabled":!t.infinite&&t.isFirst},on:{click:t.prev}},[e("i",{staticClass:"taskfont"},[t._v("\uE72D")])]),e("div",{staticClass:"preview-view-next",class:{"is-disabled":!t.infinite&&t.isLast},on:{click:t.next}},[e("i",{staticClass:"taskfont"},[t._v("\uE733")])])],e("div",{staticClass:"preview-view-actions"},[e("div",{staticClass:"actions-inner"},[e("i",{staticClass:"taskfont",on:{click:function(n){return t.handleActions("zoomOut")}}},[t._v("\uE7A2")]),e("i",{staticClass:"taskfont",on:{click:function(n){return t.handleActions("zoomIn")}}},[t._v("\uE79F")]),e("i",{staticClass:"actions-divider"}),e("i",{staticClass:"taskfont",domProps:{innerHTML:t._s(t.mode.icon)},on:{click:t.toggleMode}}),e("i",{staticClass:"actions-divider"}),e("i",{staticClass:"taskfont",on:{click:function(n){return t.handleActions("anticlocelise")}}},[t._v("\uE7A7")]),e("i",{staticClass:"taskfont",on:{click:function(n){return t.handleActions("clocelise")}}},[t._v("\uE7A6")])])]),e("div",{staticClass:"preview-view-canvas"},t._l(t.urlList,function(n,o){return o===t.index?e("img",{key:o,ref:"img",refInFor:!0,staticClass:"preview-view-img",style:t.imgStyle,attrs:{src:t.currentImg},on:{load:t.handleImgLoad,error:t.handleImgError,mousedown:t.handleMouseDown}}):t._e()}),0)],2)])},f=[];const a={CONTAIN:{name:"contain",icon:""},ORIGINAL:{name:"original",icon:""}},m=h()?"DOMMouseScroll":"mousewheel",v={props:{urlList:{type:Array,default:()=>[]},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!1},onSwitch:{type:Function,default:()=>{}}},data(){return{index:this.initialIndex,loading:!1,mode:a.CONTAIN,transform:{scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}},mounted(){this.deviceSupportInstall(),this.$refs.view.focus()},beforeDestroy(){this.deviceSupportUninstall()},computed:{isSingle(){return this.urlList.length<=1},isFirst(){return this.index===0},isLast(){return this.index===this.urlList.length-1},currentImg(){let t=this.urlList[this.index];return $A.isJson(t)&&(t=t.src),t},imgStyle(){const{scale:t,deg:s,offsetX:e,offsetY:n,enableTransition:o}=this.transform,i={transform:`scale(${t}) rotate(${s}deg)`,transition:o?"transform .3s":"","margin-left":`${e}px`,"margin-top":`${n}px`};return this.mode===a.CONTAIN&&(i.maxWidth=i.maxHeight="100%"),i}},watch:{index:{handler:function(t){this.reset(),this.onSwitch(t)}},initialIndex(t){this.index=t},currentImg(){this.$nextTick(t=>{this.$refs.img[0].complete||(this.loading=!0)})}},methods:{deviceSupportInstall(){this._keyDownHandler=t=>{switch(t.stopPropagation(),t.keyCode){case 32:this.toggleMode();break;case 37:this.prev();break;case 38:this.handleActions("zoomIn");break;case 39:this.next();break;case 40:this.handleActions("zoomOut");break}},this._mouseWheelHandler=c(t=>{(t.wheelDelta?t.wheelDelta:-t.detail)>0?this.handleActions("zoomIn",{zoomRate:.015,enableTransition:!1}):this.handleActions("zoomOut",{zoomRate:.015,enableTransition:!1})}),r(document,"keydown",this._keyDownHandler),r(document,m,this._mouseWheelHandler)},deviceSupportUninstall(){l(document,"keydown",this._keyDownHandler),l(document,m,this._mouseWheelHandler),this._keyDownHandler=null,this._mouseWheelHandler=null},handleImgLoad(t){this.loading=!1},handleImgError(t){this.loading=!1,t.target.alt="\u52A0\u8F7D\u5931\u8D25"},handleMouseDown(t){if(this.loading||t.button!==0)return;const{offsetX:s,offsetY:e}=this.transform,n=t.pageX,o=t.pageY;this._dragHandler=c(i=>{this.transform.offsetX=s+i.pageX-n,this.transform.offsetY=e+i.pageY-o}),r(document,"mousemove",this._dragHandler),r(document,"mouseup",i=>{l(document,"mousemove",this._dragHandler)}),t.preventDefault()},reset(){this.transform={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}},toggleMode(){if(this.loading)return;const t=Object.keys(a),n=(Object.values(a).indexOf(this.mode)+1)%t.length;this.mode=a[t[n]],this.reset()},prev(){if(this.isFirst&&!this.infinite)return;const t=this.urlList.length;this.index=(this.index-1+t)%t},next(){if(this.isLast&&!this.infinite)return;const t=this.urlList.length;this.index=(this.index+1)%t},handleActions(t,s={}){if(this.loading)return;const{zoomRate:e,rotateDeg:n,enableTransition:o}={zoomRate:.2,rotateDeg:90,enableTransition:!0,...s},{transform:i}=this;switch(t){case"zoomOut":i.scale>.2&&(i.scale=parseFloat((i.scale-e).toFixed(3)));break;case"zoomIn":i.scale=parseFloat((i.scale+e).toFixed(3));break;case"clocelise":i.deg+=n;break;case"anticlocelise":i.deg-=n;break}i.enableTransition=o}}},d={};var g=u(v,p,f,!1,_,"c2c0aabe",null,null);function _(t){for(let s in d)this[s]=d[s]}var dt=function(){return g.exports}();export{dt as default};
diff --git a/public/manifest.json b/public/manifest.json
index e1eb5a9ae..8aaf0e2a6 100644
--- a/public/manifest.json
+++ b/public/manifest.json
@@ -1,13 +1,13 @@
{
"resources/assets/js/app.js": {
- "file": "js/build/app.818b057c.js",
+ "file": "js/build/app.ef7047f7.js",
"src": "resources/assets/js/app.js",
"isEntry": true,
"isDynamicEntry": true,
"imports": [
- "_jquery.c87f487f.js",
- "_dayjs.fd4aa75c.js",
- "_localforage.8de7c27e.js",
+ "_jquery.6e4daff9.js",
+ "_dayjs.d20a4841.js",
+ "_localforage.743dffdd.js",
"_markdown-it.0450edb4.js",
"_highlight.js.cbbfb885.js",
"_markdown-it-link-attributes.e1d5d151.js",
@@ -69,12 +69,12 @@
"resources/assets/js/pages/manage/setting/language.vue",
"resources/assets/js/pages/manage/setting/theme.vue",
"resources/assets/js/pages/manage/setting/keyboard.vue",
- "resources/assets/js/pages/manage/setting/assistant.vue",
"resources/assets/js/pages/manage/setting/license.vue",
"resources/assets/js/pages/manage/setting/password.vue",
"resources/assets/js/pages/manage/setting/email.vue",
"resources/assets/js/pages/manage/setting/system.vue",
"resources/assets/js/pages/manage/setting/device.vue",
+ "resources/assets/js/pages/manage/setting/system-update.vue",
"resources/assets/js/pages/manage/setting/version.vue",
"resources/assets/js/pages/manage/setting/delete.vue",
"resources/assets/js/pages/manage/projectInvite.vue",
@@ -97,7 +97,7 @@
"resources/assets/js/pages/404.vue"
],
"css": [
- "js/build/app.e77c9e40.css"
+ "js/build/app.239a8ce2.css"
],
"assets": [
"js/build/other.0cd5a04c.svg",
@@ -262,8 +262,8 @@
"_core-js.314b4a1d.js": {
"file": "js/build/core-js.314b4a1d.js"
},
- "_dayjs.fd4aa75c.js": {
- "file": "js/build/dayjs.fd4aa75c.js",
+ "_dayjs.d20a4841.js": {
+ "file": "js/build/dayjs.d20a4841.js",
"imports": [
"_@babel.9410f858.js"
]
@@ -308,8 +308,8 @@
"_@babel.9410f858.js"
]
},
- "_jquery.c87f487f.js": {
- "file": "js/build/jquery.c87f487f.js",
+ "_jquery.6e4daff9.js": {
+ "file": "js/build/jquery.6e4daff9.js",
"imports": [
"_@babel.9410f858.js"
]
@@ -320,8 +320,8 @@
"_uc.micro.8d343c98.js"
]
},
- "_localforage.8de7c27e.js": {
- "file": "js/build/localforage.8de7c27e.js",
+ "_localforage.743dffdd.js": {
+ "file": "js/build/localforage.743dffdd.js",
"imports": [
"_@babel.9410f858.js"
]
@@ -523,15 +523,15 @@
]
},
"resources/assets/js/pages/index.vue": {
- "file": "js/build/index.d367f26c.js",
+ "file": "js/build/index.7a3429e1.js",
"src": "resources/assets/js/pages/index.vue",
"isDynamicEntry": true,
"imports": [
"resources/assets/js/app.js",
- "_jquery.c87f487f.js",
+ "_jquery.6e4daff9.js",
"_@babel.9410f858.js",
- "_dayjs.fd4aa75c.js",
- "_localforage.8de7c27e.js",
+ "_dayjs.d20a4841.js",
+ "_localforage.743dffdd.js",
"_markdown-it.0450edb4.js",
"_mdurl.ce6c1dd8.js",
"_uc.micro.8d343c98.js",
@@ -576,15 +576,15 @@
]
},
"resources/assets/js/pages/pro.vue": {
- "file": "js/build/pro.8ad1c5f1.js",
+ "file": "js/build/pro.0d341b38.js",
"src": "resources/assets/js/pages/pro.vue",
"isDynamicEntry": true,
"imports": [
"resources/assets/js/app.js",
- "_jquery.c87f487f.js",
+ "_jquery.6e4daff9.js",
"_@babel.9410f858.js",
- "_dayjs.fd4aa75c.js",
- "_localforage.8de7c27e.js",
+ "_dayjs.d20a4841.js",
+ "_localforage.743dffdd.js",
"_markdown-it.0450edb4.js",
"_mdurl.ce6c1dd8.js",
"_uc.micro.8d343c98.js",
@@ -629,15 +629,15 @@
]
},
"resources/assets/js/pages/meeting.vue": {
- "file": "js/build/meeting.4a444fa7.js",
+ "file": "js/build/meeting.3e440d40.js",
"src": "resources/assets/js/pages/meeting.vue",
"isDynamicEntry": true,
"imports": [
"resources/assets/js/app.js",
- "_jquery.c87f487f.js",
+ "_jquery.6e4daff9.js",
"_@babel.9410f858.js",
- "_dayjs.fd4aa75c.js",
- "_localforage.8de7c27e.js",
+ "_dayjs.d20a4841.js",
+ "_localforage.743dffdd.js",
"_markdown-it.0450edb4.js",
"_mdurl.ce6c1dd8.js",
"_uc.micro.8d343c98.js",
@@ -682,29 +682,29 @@
]
},
"resources/assets/js/pages/manage.vue": {
- "file": "js/build/manage.9e3d2fa7.js",
+ "file": "js/build/manage.670728eb.js",
"src": "resources/assets/js/pages/manage.vue",
"isDynamicEntry": true,
"imports": [
"_vuex.cc7cb26e.js",
- "_SearchButton.3fc39f79.js",
+ "_SearchButton.2a8dd789.js",
"resources/assets/js/app.js",
- "_CheckinExport.a0a6b328.js",
+ "_CheckinExport.9685d739.js",
"_file.5e8166ad.js",
- "_index.ab4b7604.js",
- "_TaskDetail.e33edbb5.js",
- "_ReportEdit.686131b0.js",
- "_ReportDetail.71244edd.js",
- "_DialogWrapper.21630cce.js",
- "_index.a1e57906.js",
- "_ImgUpload.a99f26bd.js",
+ "_index.f7653997.js",
+ "_TaskDetail.6dbf17d2.js",
+ "_ReportEdit.5ea53e87.js",
+ "_ReportDetail.00959436.js",
+ "_DialogWrapper.bc988036.js",
+ "_index.eb447f83.js",
+ "_ImgUpload.434d067a.js",
"_notification-koro1.99b93615.js",
"_vuedraggable.f464b992.js",
- "_DepartmentOwnerView.2b37b86c.js",
- "_jquery.c87f487f.js",
+ "_DepartmentOwnerView.710b9bb7.js",
+ "_jquery.6e4daff9.js",
"_@babel.9410f858.js",
- "_dayjs.fd4aa75c.js",
- "_localforage.8de7c27e.js",
+ "_dayjs.d20a4841.js",
+ "_localforage.743dffdd.js",
"_markdown-it.0450edb4.js",
"_mdurl.ce6c1dd8.js",
"_uc.micro.8d343c98.js",
@@ -744,10 +744,10 @@
"_babel-runtime.4773988a.js",
"_core-js.314b4a1d.js",
"_sortablejs.3488b922.js",
- "_add.1373f0de.js",
+ "_add.0e2a5c01.js",
"resources/assets/js/components/TEditor.vue",
"_tinymce.498510f2.js",
- "_chunkedUpload.a9ef725e.js",
+ "_chunkedUpload.3cd238b0.js",
"_spark-md5.0443325f.js",
"_vue-virtual-scroll-list-hi.74ad83f0.js",
"_webhook.378987f3.js",
@@ -757,49 +757,49 @@
"js/build/manage.9f03272d.css"
]
},
- "_CheckinExport.a0a6b328.js": {
- "file": "js/build/CheckinExport.a0a6b328.js",
+ "_CheckinExport.9685d739.js": {
+ "file": "js/build/CheckinExport.9685d739.js",
"imports": [
"resources/assets/js/app.js",
- "_index.ab4b7604.js",
- "_SearchButton.3fc39f79.js",
- "_ImgUpload.a99f26bd.js",
+ "_index.f7653997.js",
+ "_SearchButton.2a8dd789.js",
+ "_ImgUpload.434d067a.js",
"_vuex.cc7cb26e.js"
],
"css": [
"js/build/CheckinExport.a228f52c.css"
]
},
- "_index.ab4b7604.js": {
- "file": "js/build/index.ab4b7604.js",
+ "_index.f7653997.js": {
+ "file": "js/build/index.f7653997.js",
"imports": [
"resources/assets/js/app.js"
]
},
- "_index.a1e57906.js": {
- "file": "js/build/index.a1e57906.js",
+ "_index.eb447f83.js": {
+ "file": "js/build/index.eb447f83.js",
"imports": [
"_vue.adba9046.js",
"_vuex.cc7cb26e.js",
"_view-design-hi.24419422.js",
"_@micro-zoe.39406924.js",
- "_DialogWrapper.21630cce.js",
+ "_DialogWrapper.bc988036.js",
"resources/assets/js/app.js",
- "_index.ab4b7604.js"
+ "_index.f7653997.js"
],
"css": [
"js/build/index.9742549c.css"
]
},
- "_ImgUpload.a99f26bd.js": {
- "file": "js/build/ImgUpload.a99f26bd.js",
+ "_ImgUpload.434d067a.js": {
+ "file": "js/build/ImgUpload.434d067a.js",
"imports": [
- "_chunkedUpload.a9ef725e.js",
+ "_chunkedUpload.3cd238b0.js",
"resources/assets/js/app.js"
]
},
- "_DepartmentOwnerView.2b37b86c.js": {
- "file": "js/build/DepartmentOwnerView.2b37b86c.js",
+ "_DepartmentOwnerView.710b9bb7.js": {
+ "file": "js/build/DepartmentOwnerView.710b9bb7.js",
"imports": [
"_vuex.cc7cb26e.js",
"resources/assets/js/app.js"
@@ -808,8 +808,8 @@
"js/build/DepartmentOwnerView.9cbc9146.css"
]
},
- "_SearchButton.3fc39f79.js": {
- "file": "js/build/SearchButton.3fc39f79.js",
+ "_SearchButton.2a8dd789.js": {
+ "file": "js/build/SearchButton.2a8dd789.js",
"imports": [
"resources/assets/js/app.js"
]
@@ -817,22 +817,22 @@
"_file.5e8166ad.js": {
"file": "js/build/file.5e8166ad.js"
},
- "_TaskDetail.e33edbb5.js": {
- "file": "js/build/TaskDetail.e33edbb5.js",
+ "_TaskDetail.6dbf17d2.js": {
+ "file": "js/build/TaskDetail.6dbf17d2.js",
"imports": [
"_vuex.cc7cb26e.js",
- "_add.1373f0de.js",
+ "_add.0e2a5c01.js",
"resources/assets/js/app.js",
- "_DialogWrapper.21630cce.js",
+ "_DialogWrapper.bc988036.js",
"resources/assets/js/components/TEditor.vue",
- "_index.ab4b7604.js"
+ "_index.f7653997.js"
],
"css": [
- "js/build/TaskDetail.dc666c43.css"
+ "js/build/TaskDetail.eb06ff10.css"
]
},
- "_ReportEdit.686131b0.js": {
- "file": "js/build/ReportEdit.686131b0.js",
+ "_ReportEdit.5ea53e87.js": {
+ "file": "js/build/ReportEdit.5ea53e87.js",
"imports": [
"_openpgp_hi.15f91b1d.js",
"resources/assets/js/app.js",
@@ -842,8 +842,8 @@
"resources/assets/js/components/TEditor.vue"
]
},
- "_ReportDetail.71244edd.js": {
- "file": "js/build/ReportDetail.71244edd.js",
+ "_ReportDetail.00959436.js": {
+ "file": "js/build/ReportDetail.00959436.js",
"imports": [
"_openpgp_hi.15f91b1d.js",
"_vuex.cc7cb26e.js",
@@ -853,21 +853,21 @@
"resources/assets/js/components/VMEditor/preview.vue"
]
},
- "_DialogWrapper.21630cce.js": {
- "file": "js/build/DialogWrapper.21630cce.js",
+ "_DialogWrapper.bc988036.js": {
+ "file": "js/build/DialogWrapper.bc988036.js",
"imports": [
"_vuex.cc7cb26e.js",
"resources/assets/js/app.js",
- "_chunkedUpload.a9ef725e.js",
- "_index.ab4b7604.js",
+ "_chunkedUpload.3cd238b0.js",
+ "_index.f7653997.js",
"_vue-virtual-scroll-list-hi.74ad83f0.js",
- "_ImgUpload.a99f26bd.js",
+ "_ImgUpload.434d067a.js",
"_lodash.8fcd6fd4.js",
"_webhook.378987f3.js"
]
},
- "_chunkedUpload.a9ef725e.js": {
- "file": "js/build/chunkedUpload.a9ef725e.js",
+ "_chunkedUpload.3cd238b0.js": {
+ "file": "js/build/chunkedUpload.3cd238b0.js",
"imports": [
"_axios.37c7f908.js",
"_spark-md5.0443325f.js",
@@ -875,19 +875,19 @@
]
},
"resources/assets/js/components/TEditor.vue": {
- "file": "js/build/TEditor.7069f2fe.js",
+ "file": "js/build/TEditor.64c880bb.js",
"src": "resources/assets/js/components/TEditor.vue",
"isDynamicEntry": true,
"imports": [
"_tinymce.498510f2.js",
- "_ImgUpload.a99f26bd.js",
+ "_ImgUpload.434d067a.js",
"_vuex.cc7cb26e.js",
"resources/assets/js/app.js",
- "_chunkedUpload.a9ef725e.js",
+ "_chunkedUpload.3cd238b0.js",
"_@babel.9410f858.js",
- "_jquery.c87f487f.js",
- "_dayjs.fd4aa75c.js",
- "_localforage.8de7c27e.js",
+ "_jquery.6e4daff9.js",
+ "_dayjs.d20a4841.js",
+ "_localforage.743dffdd.js",
"_markdown-it.0450edb4.js",
"_mdurl.ce6c1dd8.js",
"_uc.micro.8d343c98.js",
@@ -934,8 +934,8 @@
"_webhook.378987f3.js": {
"file": "js/build/webhook.378987f3.js"
},
- "_add.1373f0de.js": {
- "file": "js/build/add.1373f0de.js",
+ "_add.0e2a5c01.js": {
+ "file": "js/build/add.0e2a5c01.js",
"imports": [
"_vuex.cc7cb26e.js",
"resources/assets/js/app.js"
@@ -945,18 +945,18 @@
]
},
"resources/assets/js/pages/manage/dashboard.vue": {
- "file": "js/build/dashboard.a79ba6ba.js",
+ "file": "js/build/dashboard.1ca3799a.js",
"src": "resources/assets/js/pages/manage/dashboard.vue",
"isDynamicEntry": true,
"imports": [
"_vuex.cc7cb26e.js",
"resources/assets/js/app.js",
"_echarts.523e56b1.js",
- "_DepartmentOwnerView.2b37b86c.js",
- "_jquery.c87f487f.js",
+ "_DepartmentOwnerView.710b9bb7.js",
+ "_jquery.6e4daff9.js",
"_@babel.9410f858.js",
- "_dayjs.fd4aa75c.js",
- "_localforage.8de7c27e.js",
+ "_dayjs.d20a4841.js",
+ "_localforage.743dffdd.js",
"_markdown-it.0450edb4.js",
"_mdurl.ce6c1dd8.js",
"_uc.micro.8d343c98.js",
@@ -1005,7 +1005,7 @@
]
},
"resources/assets/js/pages/manage/calendar.vue": {
- "file": "js/build/calendar.d868375d.js",
+ "file": "js/build/calendar.9858cdd5.js",
"src": "resources/assets/js/pages/manage/calendar.vue",
"isDynamicEntry": true,
"imports": [
@@ -1015,9 +1015,9 @@
"_tui-date-picker.6a34ee03.js",
"_@babel.9410f858.js",
"_tui-time-picker.1ebb7768.js",
- "_jquery.c87f487f.js",
- "_dayjs.fd4aa75c.js",
- "_localforage.8de7c27e.js",
+ "_jquery.6e4daff9.js",
+ "_dayjs.d20a4841.js",
+ "_localforage.743dffdd.js",
"_markdown-it.0450edb4.js",
"_mdurl.ce6c1dd8.js",
"_uc.micro.8d343c98.js",
@@ -1061,26 +1061,26 @@
]
},
"resources/assets/js/pages/manage/messenger.vue": {
- "file": "js/build/messenger.b99bc25c.js",
+ "file": "js/build/messenger.3ab48edf.js",
"src": "resources/assets/js/pages/manage/messenger.vue",
"isDynamicEntry": true,
"imports": [
"_vuex.cc7cb26e.js",
- "_DialogWrapper.21630cce.js",
+ "_DialogWrapper.bc988036.js",
"resources/assets/js/app.js",
- "_chunkedUpload.a9ef725e.js",
+ "_chunkedUpload.3cd238b0.js",
"_axios.37c7f908.js",
"_spark-md5.0443325f.js",
- "_index.ab4b7604.js",
+ "_index.f7653997.js",
"_vue-virtual-scroll-list-hi.74ad83f0.js",
"_@babel.9410f858.js",
"_vue.adba9046.js",
"_lodash.8fcd6fd4.js",
- "_ImgUpload.a99f26bd.js",
+ "_ImgUpload.434d067a.js",
"_webhook.378987f3.js",
- "_jquery.c87f487f.js",
- "_dayjs.fd4aa75c.js",
- "_localforage.8de7c27e.js",
+ "_jquery.6e4daff9.js",
+ "_dayjs.d20a4841.js",
+ "_localforage.743dffdd.js",
"_markdown-it.0450edb4.js",
"_mdurl.ce6c1dd8.js",
"_uc.micro.8d343c98.js",
@@ -1121,16 +1121,16 @@
]
},
"resources/assets/js/pages/manage/setting/index.vue": {
- "file": "js/build/index.a8a8b23a.js",
+ "file": "js/build/index.cc0c8724.js",
"src": "resources/assets/js/pages/manage/setting/index.vue",
"isDynamicEntry": true,
"imports": [
"_vuex.cc7cb26e.js",
"resources/assets/js/app.js",
- "_jquery.c87f487f.js",
+ "_jquery.6e4daff9.js",
"_@babel.9410f858.js",
- "_dayjs.fd4aa75c.js",
- "_localforage.8de7c27e.js",
+ "_dayjs.d20a4841.js",
+ "_localforage.743dffdd.js",
"_markdown-it.0450edb4.js",
"_mdurl.ce6c1dd8.js",
"_uc.micro.8d343c98.js",
@@ -1177,20 +1177,20 @@
]
},
"resources/assets/js/pages/manage/setting/personal.vue": {
- "file": "js/build/personal.3bc6ab62.js",
+ "file": "js/build/personal.4aeb260a.js",
"src": "resources/assets/js/pages/manage/setting/personal.vue",
"isDynamicEntry": true,
"imports": [
- "_ImgUpload.a99f26bd.js",
+ "_ImgUpload.434d067a.js",
"resources/assets/js/app.js",
"_vuex.cc7cb26e.js",
- "_chunkedUpload.a9ef725e.js",
+ "_chunkedUpload.3cd238b0.js",
"_axios.37c7f908.js",
"_spark-md5.0443325f.js",
- "_jquery.c87f487f.js",
+ "_jquery.6e4daff9.js",
"_@babel.9410f858.js",
- "_dayjs.fd4aa75c.js",
- "_localforage.8de7c27e.js",
+ "_dayjs.d20a4841.js",
+ "_localforage.743dffdd.js",
"_markdown-it.0450edb4.js",
"_mdurl.ce6c1dd8.js",
"_uc.micro.8d343c98.js",
@@ -1236,16 +1236,16 @@
]
},
"resources/assets/js/pages/manage/setting/checkin.vue": {
- "file": "js/build/checkin.6f76d224.js",
+ "file": "js/build/checkin.7e191bb8.js",
"src": "resources/assets/js/pages/manage/setting/checkin.vue",
"isDynamicEntry": true,
"imports": [
"resources/assets/js/app.js",
- "_ImgUpload.a99f26bd.js",
- "_jquery.c87f487f.js",
+ "_ImgUpload.434d067a.js",
+ "_jquery.6e4daff9.js",
"_@babel.9410f858.js",
- "_dayjs.fd4aa75c.js",
- "_localforage.8de7c27e.js",
+ "_dayjs.d20a4841.js",
+ "_localforage.743dffdd.js",
"_markdown-it.0450edb4.js",
"_mdurl.ce6c1dd8.js",
"_uc.micro.8d343c98.js",
@@ -1287,7 +1287,7 @@
"_async-validator.dca2b951.js",
"_babel-runtime.4773988a.js",
"_core-js.314b4a1d.js",
- "_chunkedUpload.a9ef725e.js",
+ "_chunkedUpload.3cd238b0.js",
"_spark-md5.0443325f.js"
],
"css": [
@@ -1295,16 +1295,16 @@
]
},
"resources/assets/js/pages/manage/setting/language.vue": {
- "file": "js/build/language.8bf77e4e.js",
+ "file": "js/build/language.e9b1c8cc.js",
"src": "resources/assets/js/pages/manage/setting/language.vue",
"isDynamicEntry": true,
"imports": [
"resources/assets/js/app.js",
"_vuex.cc7cb26e.js",
- "_jquery.c87f487f.js",
+ "_jquery.6e4daff9.js",
"_@babel.9410f858.js",
- "_dayjs.fd4aa75c.js",
- "_localforage.8de7c27e.js",
+ "_dayjs.d20a4841.js",
+ "_localforage.743dffdd.js",
"_markdown-it.0450edb4.js",
"_mdurl.ce6c1dd8.js",
"_uc.micro.8d343c98.js",
@@ -1348,16 +1348,16 @@
]
},
"resources/assets/js/pages/manage/setting/theme.vue": {
- "file": "js/build/theme.97f5379c.js",
+ "file": "js/build/theme.c83e7a13.js",
"src": "resources/assets/js/pages/manage/setting/theme.vue",
"isDynamicEntry": true,
"imports": [
"_vuex.cc7cb26e.js",
"resources/assets/js/app.js",
- "_jquery.c87f487f.js",
+ "_jquery.6e4daff9.js",
"_@babel.9410f858.js",
- "_dayjs.fd4aa75c.js",
- "_localforage.8de7c27e.js",
+ "_dayjs.d20a4841.js",
+ "_localforage.743dffdd.js",
"_markdown-it.0450edb4.js",
"_mdurl.ce6c1dd8.js",
"_uc.micro.8d343c98.js",
@@ -1401,16 +1401,16 @@
]
},
"resources/assets/js/pages/manage/setting/keyboard.vue": {
- "file": "js/build/keyboard.04777b47.js",
+ "file": "js/build/keyboard.48563e8f.js",
"src": "resources/assets/js/pages/manage/setting/keyboard.vue",
"isDynamicEntry": true,
"imports": [
"_vuex.cc7cb26e.js",
"resources/assets/js/app.js",
- "_jquery.c87f487f.js",
+ "_jquery.6e4daff9.js",
"_@babel.9410f858.js",
- "_dayjs.fd4aa75c.js",
- "_localforage.8de7c27e.js",
+ "_dayjs.d20a4841.js",
+ "_localforage.743dffdd.js",
"_markdown-it.0450edb4.js",
"_mdurl.ce6c1dd8.js",
"_uc.micro.8d343c98.js",
@@ -1456,70 +1456,17 @@
"js/build/keyboard.654e75cb.css"
]
},
- "resources/assets/js/pages/manage/setting/assistant.vue": {
- "file": "js/build/assistant.ca9deae7.js",
- "src": "resources/assets/js/pages/manage/setting/assistant.vue",
- "isDynamicEntry": true,
- "imports": [
- "_vuex.cc7cb26e.js",
- "resources/assets/js/app.js",
- "_jquery.c87f487f.js",
- "_@babel.9410f858.js",
- "_dayjs.fd4aa75c.js",
- "_localforage.8de7c27e.js",
- "_markdown-it.0450edb4.js",
- "_mdurl.ce6c1dd8.js",
- "_uc.micro.8d343c98.js",
- "_entities.48a44fec.js",
- "_linkify-it.c5e8196e.js",
- "_punycode.js.4b3f125a.js",
- "_highlight.js.cbbfb885.js",
- "_markdown-it-link-attributes.e1d5d151.js",
- "_@traptitech.acea8861.js",
- "_vue.adba9046.js",
- "_openpgp_hi.15f91b1d.js",
- "_axios.37c7f908.js",
- "_mitt.1ea0a2a3.js",
- "_quill-hi.ca2ea0cc.js",
- "_parchment.d5c5924e.js",
- "_quill-delta.385a10bf.js",
- "_fast-diff.f17881f3.js",
- "_lodash.clonedeep.3cc09a31.js",
- "_lodash.isequal.dbdc2157.js",
- "_eventemitter3.78b735ad.js",
- "_lodash-es.76e3a28b.js",
- "_quill-mention-hi.4eeb5a2d.js",
- "_view-design-hi.24419422.js",
- "_html-to-md.f297036e.js",
- "_lodash.8fcd6fd4.js",
- "_vue-router.2d566cd7.js",
- "_vue-clipboard2.fd43a5bc.js",
- "_clipboard.37b37361.js",
- "_vuedraggable.f464b992.js",
- "_sortablejs.3488b922.js",
- "_vue-resize-observer.5af23a43.js",
- "_element-sea.f8a64907.js",
- "_deepmerge.cecf392e.js",
- "_resize-observer-polyfill.5d591c5f.js",
- "_throttle-debounce.7c3948b2.js",
- "_babel-helper-vue-jsx-merge-props.5ed215c3.js",
- "_normalize-wheel.2a034b9f.js",
- "_async-validator.dca2b951.js",
- "_babel-runtime.4773988a.js",
- "_core-js.314b4a1d.js"
- ]
- },
"resources/assets/js/pages/manage/setting/license.vue": {
- "file": "js/build/license.02080b66.js",
+ "file": "js/build/license.2168c5ac.js",
"src": "resources/assets/js/pages/manage/setting/license.vue",
"isDynamicEntry": true,
"imports": [
"_vuex.cc7cb26e.js",
"resources/assets/js/app.js",
- "_jquery.c87f487f.js",
+ "_jquery.6e4daff9.js",
"_@babel.9410f858.js",
- "_dayjs.fd4aa75c.js",
- "_localforage.8de7c27e.js",
+ "_dayjs.d20a4841.js",
+ "_localforage.743dffdd.js",
"_markdown-it.0450edb4.js",
"_mdurl.ce6c1dd8.js",
"_uc.micro.8d343c98.js",
@@ -1566,16 +1513,16 @@
]
},
"resources/assets/js/pages/manage/setting/password.vue": {
- "file": "js/build/password.382931f7.js",
+ "file": "js/build/password.495f53b6.js",
"src": "resources/assets/js/pages/manage/setting/password.vue",
"isDynamicEntry": true,
"imports": [
"_vuex.cc7cb26e.js",
"resources/assets/js/app.js",
- "_jquery.c87f487f.js",
+ "_jquery.6e4daff9.js",
"_@babel.9410f858.js",
- "_dayjs.fd4aa75c.js",
- "_localforage.8de7c27e.js",
+ "_dayjs.d20a4841.js",
+ "_localforage.743dffdd.js",
"_markdown-it.0450edb4.js",
"_mdurl.ce6c1dd8.js",
"_uc.micro.8d343c98.js",
@@ -1619,16 +1566,16 @@
]
},
"resources/assets/js/pages/manage/setting/email.vue": {
- "file": "js/build/email.9e66000c.js",
+ "file": "js/build/email.f60e6037.js",
"src": "resources/assets/js/pages/manage/setting/email.vue",
"isDynamicEntry": true,
"imports": [
"_vuex.cc7cb26e.js",
"resources/assets/js/app.js",
- "_jquery.c87f487f.js",
+ "_jquery.6e4daff9.js",
"_@babel.9410f858.js",
- "_dayjs.fd4aa75c.js",
- "_localforage.8de7c27e.js",
+ "_dayjs.d20a4841.js",
+ "_localforage.743dffdd.js",
"_markdown-it.0450edb4.js",
"_mdurl.ce6c1dd8.js",
"_uc.micro.8d343c98.js",
@@ -1672,17 +1619,17 @@
]
},
"resources/assets/js/pages/manage/setting/system.vue": {
- "file": "js/build/system.aff91360.js",
+ "file": "js/build/system.c147402f.js",
"src": "resources/assets/js/pages/manage/setting/system.vue",
"isDynamicEntry": true,
"imports": [
"_vuex.cc7cb26e.js",
"resources/assets/js/app.js",
- "_ImgUpload.a99f26bd.js",
- "_jquery.c87f487f.js",
+ "_ImgUpload.434d067a.js",
+ "_jquery.6e4daff9.js",
"_@babel.9410f858.js",
- "_dayjs.fd4aa75c.js",
- "_localforage.8de7c27e.js",
+ "_dayjs.d20a4841.js",
+ "_localforage.743dffdd.js",
"_markdown-it.0450edb4.js",
"_mdurl.ce6c1dd8.js",
"_uc.micro.8d343c98.js",
@@ -1723,7 +1670,7 @@
"_async-validator.dca2b951.js",
"_babel-runtime.4773988a.js",
"_core-js.314b4a1d.js",
- "_chunkedUpload.a9ef725e.js",
+ "_chunkedUpload.3cd238b0.js",
"_spark-md5.0443325f.js"
],
"css": [
@@ -1731,15 +1678,15 @@
]
},
"resources/assets/js/pages/manage/setting/device.vue": {
- "file": "js/build/device.35bf6a95.js",
+ "file": "js/build/device.5e662128.js",
"src": "resources/assets/js/pages/manage/setting/device.vue",
"isDynamicEntry": true,
"imports": [
"resources/assets/js/app.js",
- "_jquery.c87f487f.js",
+ "_jquery.6e4daff9.js",
"_@babel.9410f858.js",
- "_dayjs.fd4aa75c.js",
- "_localforage.8de7c27e.js",
+ "_dayjs.d20a4841.js",
+ "_localforage.743dffdd.js",
"_markdown-it.0450edb4.js",
"_mdurl.ce6c1dd8.js",
"_uc.micro.8d343c98.js",
@@ -1783,19 +1730,19 @@
"_core-js.314b4a1d.js"
]
},
- "resources/assets/js/pages/manage/setting/version.vue": {
- "file": "js/build/version.f4a10c75.js",
- "src": "resources/assets/js/pages/manage/setting/version.vue",
+ "resources/assets/js/pages/manage/setting/system-update.vue": {
+ "file": "js/build/system-update.0f19d7e0.js",
+ "src": "resources/assets/js/pages/manage/setting/system-update.vue",
"isDynamicEntry": true,
"imports": [
"resources/assets/js/components/VMEditor/preview.vue",
"resources/assets/js/app.js",
"_openpgp_hi.15f91b1d.js",
"_index.40a8e116.js",
- "_jquery.c87f487f.js",
+ "_jquery.6e4daff9.js",
"_@babel.9410f858.js",
- "_dayjs.fd4aa75c.js",
- "_localforage.8de7c27e.js",
+ "_dayjs.d20a4841.js",
+ "_localforage.743dffdd.js",
"_markdown-it.0450edb4.js",
"_mdurl.ce6c1dd8.js",
"_uc.micro.8d343c98.js",
@@ -1836,23 +1783,20 @@
"_async-validator.dca2b951.js",
"_babel-runtime.4773988a.js",
"_core-js.314b4a1d.js"
- ],
- "css": [
- "js/build/version.b2e280f3.css"
]
},
"resources/assets/js/components/VMEditor/preview.vue": {
- "file": "js/build/preview.a027dcb2.js",
+ "file": "js/build/preview.7d35fa9c.js",
"src": "resources/assets/js/components/VMEditor/preview.vue",
"isDynamicEntry": true,
"imports": [
"_openpgp_hi.15f91b1d.js",
"_index.40a8e116.js",
"resources/assets/js/app.js",
- "_jquery.c87f487f.js",
+ "_jquery.6e4daff9.js",
"_@babel.9410f858.js",
- "_dayjs.fd4aa75c.js",
- "_localforage.8de7c27e.js",
+ "_dayjs.d20a4841.js",
+ "_localforage.743dffdd.js",
"_markdown-it.0450edb4.js",
"_mdurl.ce6c1dd8.js",
"_uc.micro.8d343c98.js",
@@ -1901,17 +1845,75 @@
"_index.40a8e116.js": {
"file": "js/build/index.40a8e116.js"
},
+ "resources/assets/js/pages/manage/setting/version.vue": {
+ "file": "js/build/version.f9e3fd2c.js",
+ "src": "resources/assets/js/pages/manage/setting/version.vue",
+ "isDynamicEntry": true,
+ "imports": [
+ "resources/assets/js/components/VMEditor/preview.vue",
+ "resources/assets/js/app.js",
+ "_openpgp_hi.15f91b1d.js",
+ "_index.40a8e116.js",
+ "_jquery.6e4daff9.js",
+ "_@babel.9410f858.js",
+ "_dayjs.d20a4841.js",
+ "_localforage.743dffdd.js",
+ "_markdown-it.0450edb4.js",
+ "_mdurl.ce6c1dd8.js",
+ "_uc.micro.8d343c98.js",
+ "_entities.48a44fec.js",
+ "_linkify-it.c5e8196e.js",
+ "_punycode.js.4b3f125a.js",
+ "_highlight.js.cbbfb885.js",
+ "_markdown-it-link-attributes.e1d5d151.js",
+ "_@traptitech.acea8861.js",
+ "_vue.adba9046.js",
+ "_vuex.cc7cb26e.js",
+ "_axios.37c7f908.js",
+ "_mitt.1ea0a2a3.js",
+ "_quill-hi.ca2ea0cc.js",
+ "_parchment.d5c5924e.js",
+ "_quill-delta.385a10bf.js",
+ "_fast-diff.f17881f3.js",
+ "_lodash.clonedeep.3cc09a31.js",
+ "_lodash.isequal.dbdc2157.js",
+ "_eventemitter3.78b735ad.js",
+ "_lodash-es.76e3a28b.js",
+ "_quill-mention-hi.4eeb5a2d.js",
+ "_view-design-hi.24419422.js",
+ "_html-to-md.f297036e.js",
+ "_lodash.8fcd6fd4.js",
+ "_vue-router.2d566cd7.js",
+ "_vue-clipboard2.fd43a5bc.js",
+ "_clipboard.37b37361.js",
+ "_vuedraggable.f464b992.js",
+ "_sortablejs.3488b922.js",
+ "_vue-resize-observer.5af23a43.js",
+ "_element-sea.f8a64907.js",
+ "_deepmerge.cecf392e.js",
+ "_resize-observer-polyfill.5d591c5f.js",
+ "_throttle-debounce.7c3948b2.js",
+ "_babel-helper-vue-jsx-merge-props.5ed215c3.js",
+ "_normalize-wheel.2a034b9f.js",
+ "_async-validator.dca2b951.js",
+ "_babel-runtime.4773988a.js",
+ "_core-js.314b4a1d.js"
+ ],
+ "css": [
+ "js/build/version.b2e280f3.css"
+ ]
+ },
"resources/assets/js/pages/manage/setting/delete.vue": {
- "file": "js/build/delete.6db06d5a.js",
+ "file": "js/build/delete.d4b55667.js",
"src": "resources/assets/js/pages/manage/setting/delete.vue",
"isDynamicEntry": true,
"imports": [
"_vuex.cc7cb26e.js",
"resources/assets/js/app.js",
- "_jquery.c87f487f.js",
+ "_jquery.6e4daff9.js",
"_@babel.9410f858.js",
- "_dayjs.fd4aa75c.js",
- "_localforage.8de7c27e.js",
+ "_dayjs.d20a4841.js",
+ "_localforage.743dffdd.js",
"_markdown-it.0450edb4.js",
"_mdurl.ce6c1dd8.js",
"_uc.micro.8d343c98.js",
@@ -1955,16 +1957,16 @@
]
},
"resources/assets/js/pages/manage/projectInvite.vue": {
- "file": "js/build/projectInvite.6aec10a1.js",
+ "file": "js/build/projectInvite.e4a62c77.js",
"src": "resources/assets/js/pages/manage/projectInvite.vue",
"isDynamicEntry": true,
"imports": [
"_vuex.cc7cb26e.js",
"resources/assets/js/app.js",
- "_jquery.c87f487f.js",
+ "_jquery.6e4daff9.js",
"_@babel.9410f858.js",
- "_dayjs.fd4aa75c.js",
- "_localforage.8de7c27e.js",
+ "_dayjs.d20a4841.js",
+ "_localforage.743dffdd.js",
"_markdown-it.0450edb4.js",
"_mdurl.ce6c1dd8.js",
"_uc.micro.8d343c98.js",
@@ -2011,23 +2013,23 @@
]
},
"resources/assets/js/pages/manage/project.vue": {
- "file": "js/build/project.e01e074b.js",
+ "file": "js/build/project.49d9c7c1.js",
"src": "resources/assets/js/pages/manage/project.vue",
"isDynamicEntry": true,
"imports": [
"_vuex.cc7cb26e.js",
"_lodash.8fcd6fd4.js",
"_vuedraggable.f464b992.js",
- "_add.1373f0de.js",
+ "_add.0e2a5c01.js",
"resources/assets/js/app.js",
- "_SearchButton.3fc39f79.js",
- "_index.ab4b7604.js",
- "_DepartmentOwnerView.2b37b86c.js",
+ "_SearchButton.2a8dd789.js",
+ "_index.f7653997.js",
+ "_DepartmentOwnerView.710b9bb7.js",
"_@babel.9410f858.js",
"_sortablejs.3488b922.js",
- "_jquery.c87f487f.js",
- "_dayjs.fd4aa75c.js",
- "_localforage.8de7c27e.js",
+ "_jquery.6e4daff9.js",
+ "_dayjs.d20a4841.js",
+ "_localforage.743dffdd.js",
"_markdown-it.0450edb4.js",
"_mdurl.ce6c1dd8.js",
"_uc.micro.8d343c98.js",
@@ -2068,7 +2070,7 @@
]
},
"resources/assets/js/pages/manage/file.vue": {
- "file": "js/build/file.216499be.js",
+ "file": "js/build/file.5d43d793.js",
"src": "resources/assets/js/pages/manage/file.vue",
"isDynamicEntry": true,
"imports": [
@@ -2076,13 +2078,13 @@
"_vuex.cc7cb26e.js",
"_lodash.8fcd6fd4.js",
"_file.5e8166ad.js",
- "_index.ab4b7604.js",
+ "_index.f7653997.js",
"resources/assets/js/app.js",
- "_chunkedUpload.a9ef725e.js",
+ "_chunkedUpload.3cd238b0.js",
"_@babel.9410f858.js",
- "_jquery.c87f487f.js",
- "_dayjs.fd4aa75c.js",
- "_localforage.8de7c27e.js",
+ "_jquery.6e4daff9.js",
+ "_dayjs.d20a4841.js",
+ "_localforage.743dffdd.js",
"_markdown-it.0450edb4.js",
"_mdurl.ce6c1dd8.js",
"_uc.micro.8d343c98.js",
@@ -2132,23 +2134,23 @@
]
},
"resources/assets/js/pages/manage/application.vue": {
- "file": "js/build/application.44e4c067.js",
+ "file": "js/build/application.6b8ee1d4.js",
"src": "resources/assets/js/pages/manage/application.vue",
"isDynamicEntry": true,
"imports": [
"_vuex.cc7cb26e.js",
- "_index.ab4b7604.js",
+ "_index.f7653997.js",
"resources/assets/js/app.js",
- "_CheckinExport.a0a6b328.js",
- "_IFrame.7112b2ed.js",
+ "_CheckinExport.9685d739.js",
+ "_IFrame.742911bb.js",
"resources/assets/js/pages/manage/setting/checkin.vue",
- "_ImgUpload.a99f26bd.js",
+ "_ImgUpload.434d067a.js",
"_webhook.378987f3.js",
"_vuedraggable.f464b992.js",
- "_jquery.c87f487f.js",
+ "_jquery.6e4daff9.js",
"_@babel.9410f858.js",
- "_dayjs.fd4aa75c.js",
- "_localforage.8de7c27e.js",
+ "_dayjs.d20a4841.js",
+ "_localforage.743dffdd.js",
"_markdown-it.0450edb4.js",
"_mdurl.ce6c1dd8.js",
"_uc.micro.8d343c98.js",
@@ -2188,33 +2190,33 @@
"_babel-runtime.4773988a.js",
"_core-js.314b4a1d.js",
"_sortablejs.3488b922.js",
- "_SearchButton.3fc39f79.js",
- "_chunkedUpload.a9ef725e.js",
+ "_SearchButton.2a8dd789.js",
+ "_chunkedUpload.3cd238b0.js",
"_spark-md5.0443325f.js"
],
"css": [
"js/build/application.29cc7ef9.css"
]
},
- "_IFrame.7112b2ed.js": {
- "file": "js/build/IFrame.7112b2ed.js",
+ "_IFrame.742911bb.js": {
+ "file": "js/build/IFrame.742911bb.js",
"imports": [
"resources/assets/js/app.js"
]
},
"resources/assets/js/pages/single/fileMsg.vue": {
- "file": "js/build/fileMsg.43202f22.js",
+ "file": "js/build/fileMsg.0b6ab042.js",
"src": "resources/assets/js/pages/single/fileMsg.vue",
"isDynamicEntry": true,
"imports": [
"_openpgp_hi.15f91b1d.js",
"_vuex.cc7cb26e.js",
- "_IFrame.7112b2ed.js",
+ "_IFrame.742911bb.js",
"resources/assets/js/app.js",
- "_jquery.c87f487f.js",
+ "_jquery.6e4daff9.js",
"_@babel.9410f858.js",
- "_dayjs.fd4aa75c.js",
- "_localforage.8de7c27e.js",
+ "_dayjs.d20a4841.js",
+ "_localforage.743dffdd.js",
"_markdown-it.0450edb4.js",
"_mdurl.ce6c1dd8.js",
"_uc.micro.8d343c98.js",
@@ -2269,17 +2271,17 @@
]
},
"resources/assets/js/pages/single/fileTask.vue": {
- "file": "js/build/fileTask.fcdb2716.js",
+ "file": "js/build/fileTask.9909534a.js",
"src": "resources/assets/js/pages/single/fileTask.vue",
"isDynamicEntry": true,
"imports": [
"_openpgp_hi.15f91b1d.js",
- "_IFrame.7112b2ed.js",
+ "_IFrame.742911bb.js",
"resources/assets/js/app.js",
- "_jquery.c87f487f.js",
+ "_jquery.6e4daff9.js",
"_@babel.9410f858.js",
- "_dayjs.fd4aa75c.js",
- "_localforage.8de7c27e.js",
+ "_dayjs.d20a4841.js",
+ "_localforage.743dffdd.js",
"_markdown-it.0450edb4.js",
"_mdurl.ce6c1dd8.js",
"_uc.micro.8d343c98.js",
@@ -2334,7 +2336,7 @@
]
},
"resources/assets/js/pages/single/file.vue": {
- "file": "js/build/file.34f4af1e.js",
+ "file": "js/build/file.d8007700.js",
"src": "resources/assets/js/pages/single/file.vue",
"isDynamicEntry": true,
"imports": [
@@ -2342,11 +2344,11 @@
"resources/assets/js/pages/manage/components/FilePreview.vue",
"resources/assets/js/app.js",
"_openpgp_hi.15f91b1d.js",
- "_IFrame.7112b2ed.js",
- "_jquery.c87f487f.js",
+ "_IFrame.742911bb.js",
+ "_jquery.6e4daff9.js",
"_@babel.9410f858.js",
- "_dayjs.fd4aa75c.js",
- "_localforage.8de7c27e.js",
+ "_dayjs.d20a4841.js",
+ "_localforage.743dffdd.js",
"_markdown-it.0450edb4.js",
"_mdurl.ce6c1dd8.js",
"_uc.micro.8d343c98.js",
@@ -2393,17 +2395,17 @@
]
},
"resources/assets/js/pages/manage/components/FileContent.vue": {
- "file": "js/build/FileContent.9635e5fc.js",
+ "file": "js/build/FileContent.476946a0.js",
"src": "resources/assets/js/pages/manage/components/FileContent.vue",
"isDynamicEntry": true,
"imports": [
"_openpgp_hi.15f91b1d.js",
"resources/assets/js/app.js",
- "_IFrame.7112b2ed.js",
- "_jquery.c87f487f.js",
+ "_IFrame.742911bb.js",
+ "_jquery.6e4daff9.js",
"_@babel.9410f858.js",
- "_dayjs.fd4aa75c.js",
- "_localforage.8de7c27e.js",
+ "_dayjs.d20a4841.js",
+ "_localforage.743dffdd.js",
"_markdown-it.0450edb4.js",
"_mdurl.ce6c1dd8.js",
"_uc.micro.8d343c98.js",
@@ -2459,17 +2461,17 @@
]
},
"resources/assets/js/pages/manage/components/FilePreview.vue": {
- "file": "js/build/FilePreview.f5f37123.js",
+ "file": "js/build/FilePreview.2741939d.js",
"src": "resources/assets/js/pages/manage/components/FilePreview.vue",
"isDynamicEntry": true,
"imports": [
"_openpgp_hi.15f91b1d.js",
- "_IFrame.7112b2ed.js",
+ "_IFrame.742911bb.js",
"resources/assets/js/app.js",
- "_jquery.c87f487f.js",
+ "_jquery.6e4daff9.js",
"_@babel.9410f858.js",
- "_dayjs.fd4aa75c.js",
- "_localforage.8de7c27e.js",
+ "_dayjs.d20a4841.js",
+ "_localforage.743dffdd.js",
"_markdown-it.0450edb4.js",
"_mdurl.ce6c1dd8.js",
"_uc.micro.8d343c98.js",
@@ -2521,7 +2523,7 @@
]
},
"resources/assets/js/pages/single/taskContent.vue": {
- "file": "js/build/taskContent.f0f81c3b.js",
+ "file": "js/build/taskContent.c53ad1c7.js",
"src": "resources/assets/js/pages/single/taskContent.vue",
"isDynamicEntry": true,
"imports": [
@@ -2529,14 +2531,14 @@
"resources/assets/js/app.js",
"_tinymce.498510f2.js",
"_@babel.9410f858.js",
- "_ImgUpload.a99f26bd.js",
- "_chunkedUpload.a9ef725e.js",
+ "_ImgUpload.434d067a.js",
+ "_chunkedUpload.3cd238b0.js",
"_axios.37c7f908.js",
"_spark-md5.0443325f.js",
"_vuex.cc7cb26e.js",
- "_jquery.c87f487f.js",
- "_dayjs.fd4aa75c.js",
- "_localforage.8de7c27e.js",
+ "_jquery.6e4daff9.js",
+ "_dayjs.d20a4841.js",
+ "_localforage.743dffdd.js",
"_markdown-it.0450edb4.js",
"_mdurl.ce6c1dd8.js",
"_uc.micro.8d343c98.js",
@@ -2582,30 +2584,30 @@
]
},
"resources/assets/js/pages/single/task.vue": {
- "file": "js/build/task.b6476095.js",
+ "file": "js/build/task.ceb3b6f4.js",
"src": "resources/assets/js/pages/single/task.vue",
"isDynamicEntry": true,
"imports": [
- "_TaskDetail.e33edbb5.js",
+ "_TaskDetail.6dbf17d2.js",
"_vuex.cc7cb26e.js",
"resources/assets/js/app.js",
- "_add.1373f0de.js",
- "_DialogWrapper.21630cce.js",
- "_chunkedUpload.a9ef725e.js",
+ "_add.0e2a5c01.js",
+ "_DialogWrapper.bc988036.js",
+ "_chunkedUpload.3cd238b0.js",
"_axios.37c7f908.js",
"_spark-md5.0443325f.js",
- "_index.ab4b7604.js",
+ "_index.f7653997.js",
"_vue-virtual-scroll-list-hi.74ad83f0.js",
"_@babel.9410f858.js",
"_vue.adba9046.js",
"_lodash.8fcd6fd4.js",
- "_ImgUpload.a99f26bd.js",
+ "_ImgUpload.434d067a.js",
"_webhook.378987f3.js",
"resources/assets/js/components/TEditor.vue",
"_tinymce.498510f2.js",
- "_jquery.c87f487f.js",
- "_dayjs.fd4aa75c.js",
- "_localforage.8de7c27e.js",
+ "_jquery.6e4daff9.js",
+ "_dayjs.d20a4841.js",
+ "_localforage.743dffdd.js",
"_markdown-it.0450edb4.js",
"_mdurl.ce6c1dd8.js",
"_uc.micro.8d343c98.js",
@@ -2649,26 +2651,26 @@
]
},
"resources/assets/js/pages/single/dialog.vue": {
- "file": "js/build/dialog.f706bbe5.js",
+ "file": "js/build/dialog.4cf864e7.js",
"src": "resources/assets/js/pages/single/dialog.vue",
"isDynamicEntry": true,
"imports": [
- "_DialogWrapper.21630cce.js",
+ "_DialogWrapper.bc988036.js",
"_vuex.cc7cb26e.js",
"resources/assets/js/app.js",
- "_chunkedUpload.a9ef725e.js",
+ "_chunkedUpload.3cd238b0.js",
"_axios.37c7f908.js",
"_spark-md5.0443325f.js",
- "_index.ab4b7604.js",
+ "_index.f7653997.js",
"_vue-virtual-scroll-list-hi.74ad83f0.js",
"_@babel.9410f858.js",
"_vue.adba9046.js",
"_lodash.8fcd6fd4.js",
- "_ImgUpload.a99f26bd.js",
+ "_ImgUpload.434d067a.js",
"_webhook.378987f3.js",
- "_jquery.c87f487f.js",
- "_dayjs.fd4aa75c.js",
- "_localforage.8de7c27e.js",
+ "_jquery.6e4daff9.js",
+ "_dayjs.d20a4841.js",
+ "_localforage.743dffdd.js",
"_markdown-it.0450edb4.js",
"_mdurl.ce6c1dd8.js",
"_uc.micro.8d343c98.js",
@@ -2712,29 +2714,29 @@
]
},
"resources/assets/js/pages/single/apps.vue": {
- "file": "js/build/apps.fae1581f.js",
+ "file": "js/build/apps.cb5fb384.js",
"src": "resources/assets/js/pages/single/apps.vue",
"isDynamicEntry": true,
"imports": [
"_vuex.cc7cb26e.js",
- "_index.a1e57906.js",
+ "_index.eb447f83.js",
"resources/assets/js/app.js",
"_vue.adba9046.js",
"_@babel.9410f858.js",
"_view-design-hi.24419422.js",
"_@micro-zoe.39406924.js",
- "_DialogWrapper.21630cce.js",
- "_chunkedUpload.a9ef725e.js",
+ "_DialogWrapper.bc988036.js",
+ "_chunkedUpload.3cd238b0.js",
"_axios.37c7f908.js",
"_spark-md5.0443325f.js",
- "_index.ab4b7604.js",
+ "_index.f7653997.js",
"_vue-virtual-scroll-list-hi.74ad83f0.js",
"_lodash.8fcd6fd4.js",
- "_ImgUpload.a99f26bd.js",
+ "_ImgUpload.434d067a.js",
"_webhook.378987f3.js",
- "_jquery.c87f487f.js",
- "_dayjs.fd4aa75c.js",
- "_localforage.8de7c27e.js",
+ "_jquery.6e4daff9.js",
+ "_dayjs.d20a4841.js",
+ "_localforage.743dffdd.js",
"_markdown-it.0450edb4.js",
"_mdurl.ce6c1dd8.js",
"_uc.micro.8d343c98.js",
@@ -2774,15 +2776,15 @@
]
},
"resources/assets/js/pages/single/validEmail.vue": {
- "file": "js/build/validEmail.f2f15440.js",
+ "file": "js/build/validEmail.44c293c3.js",
"src": "resources/assets/js/pages/single/validEmail.vue",
"isDynamicEntry": true,
"imports": [
"resources/assets/js/app.js",
- "_jquery.c87f487f.js",
+ "_jquery.6e4daff9.js",
"_@babel.9410f858.js",
- "_dayjs.fd4aa75c.js",
- "_localforage.8de7c27e.js",
+ "_dayjs.d20a4841.js",
+ "_localforage.743dffdd.js",
"_markdown-it.0450edb4.js",
"_mdurl.ce6c1dd8.js",
"_uc.micro.8d343c98.js",
@@ -2830,18 +2832,18 @@
]
},
"resources/assets/js/pages/single/reportEdit.vue": {
- "file": "js/build/reportEdit.ce911fe7.js",
+ "file": "js/build/reportEdit.834e99b9.js",
"src": "resources/assets/js/pages/single/reportEdit.vue",
"isDynamicEntry": true,
"imports": [
- "_ReportEdit.686131b0.js",
+ "_ReportEdit.5ea53e87.js",
"resources/assets/js/app.js",
"_openpgp_hi.15f91b1d.js",
"_vuex.cc7cb26e.js",
- "_jquery.c87f487f.js",
+ "_jquery.6e4daff9.js",
"_@babel.9410f858.js",
- "_dayjs.fd4aa75c.js",
- "_localforage.8de7c27e.js",
+ "_dayjs.d20a4841.js",
+ "_localforage.743dffdd.js",
"_markdown-it.0450edb4.js",
"_mdurl.ce6c1dd8.js",
"_uc.micro.8d343c98.js",
@@ -2887,18 +2889,18 @@
]
},
"resources/assets/js/pages/single/reportDetail.vue": {
- "file": "js/build/reportDetail.f22d6ebf.js",
+ "file": "js/build/reportDetail.e5a9b56f.js",
"src": "resources/assets/js/pages/single/reportDetail.vue",
"isDynamicEntry": true,
"imports": [
- "_ReportDetail.71244edd.js",
+ "_ReportDetail.00959436.js",
"resources/assets/js/app.js",
"_openpgp_hi.15f91b1d.js",
"_vuex.cc7cb26e.js",
- "_jquery.c87f487f.js",
+ "_jquery.6e4daff9.js",
"_@babel.9410f858.js",
- "_dayjs.fd4aa75c.js",
- "_localforage.8de7c27e.js",
+ "_dayjs.d20a4841.js",
+ "_localforage.743dffdd.js",
"_markdown-it.0450edb4.js",
"_mdurl.ce6c1dd8.js",
"_uc.micro.8d343c98.js",
@@ -2944,15 +2946,15 @@
]
},
"resources/assets/js/pages/token.vue": {
- "file": "js/build/token.a5f4f1fc.js",
+ "file": "js/build/token.ff455828.js",
"src": "resources/assets/js/pages/token.vue",
"isDynamicEntry": true,
"imports": [
"resources/assets/js/app.js",
- "_jquery.c87f487f.js",
+ "_jquery.6e4daff9.js",
"_@babel.9410f858.js",
- "_dayjs.fd4aa75c.js",
- "_localforage.8de7c27e.js",
+ "_dayjs.d20a4841.js",
+ "_localforage.743dffdd.js",
"_markdown-it.0450edb4.js",
"_mdurl.ce6c1dd8.js",
"_uc.micro.8d343c98.js",
@@ -3000,17 +3002,17 @@
]
},
"resources/assets/js/pages/login.vue": {
- "file": "js/build/login.f525c424.js",
+ "file": "js/build/login.3eb79900.js",
"src": "resources/assets/js/pages/login.vue",
"isDynamicEntry": true,
"imports": [
"_vuex.cc7cb26e.js",
"resources/assets/js/app.js",
"_@chenfengyuan.dfd1ecb7.js",
- "_jquery.c87f487f.js",
+ "_jquery.6e4daff9.js",
"_@babel.9410f858.js",
- "_dayjs.fd4aa75c.js",
- "_localforage.8de7c27e.js",
+ "_dayjs.d20a4841.js",
+ "_localforage.743dffdd.js",
"_markdown-it.0450edb4.js",
"_mdurl.ce6c1dd8.js",
"_uc.micro.8d343c98.js",
@@ -3054,15 +3056,15 @@
]
},
"resources/assets/js/pages/preload.vue": {
- "file": "js/build/preload.e939a731.js",
+ "file": "js/build/preload.55967afa.js",
"src": "resources/assets/js/pages/preload.vue",
"isDynamicEntry": true,
"imports": [
"resources/assets/js/app.js",
- "_jquery.c87f487f.js",
+ "_jquery.6e4daff9.js",
"_@babel.9410f858.js",
- "_dayjs.fd4aa75c.js",
- "_localforage.8de7c27e.js",
+ "_dayjs.d20a4841.js",
+ "_localforage.743dffdd.js",
"_markdown-it.0450edb4.js",
"_mdurl.ce6c1dd8.js",
"_uc.micro.8d343c98.js",
@@ -3107,15 +3109,15 @@
]
},
"resources/assets/js/pages/404.vue": {
- "file": "js/build/404.08c5bc7d.js",
+ "file": "js/build/404.459463dd.js",
"src": "resources/assets/js/pages/404.vue",
"isDynamicEntry": true,
"imports": [
"resources/assets/js/app.js",
- "_jquery.c87f487f.js",
+ "_jquery.6e4daff9.js",
"_@babel.9410f858.js",
- "_dayjs.fd4aa75c.js",
- "_localforage.8de7c27e.js",
+ "_dayjs.d20a4841.js",
+ "_localforage.743dffdd.js",
"_markdown-it.0450edb4.js",
"_mdurl.ce6c1dd8.js",
"_uc.micro.8d343c98.js",
@@ -3163,15 +3165,15 @@
]
},
"resources/assets/js/components/PreviewImage/components/video.vue": {
- "file": "js/build/video.62bb9aea.js",
+ "file": "js/build/video.8becb11f.js",
"src": "resources/assets/js/components/PreviewImage/components/video.vue",
"isDynamicEntry": true,
"imports": [
"resources/assets/js/app.js",
- "_jquery.c87f487f.js",
+ "_jquery.6e4daff9.js",
"_@babel.9410f858.js",
- "_dayjs.fd4aa75c.js",
- "_localforage.8de7c27e.js",
+ "_dayjs.d20a4841.js",
+ "_localforage.743dffdd.js",
"_markdown-it.0450edb4.js",
"_mdurl.ce6c1dd8.js",
"_uc.micro.8d343c98.js",
@@ -3219,7 +3221,7 @@
]
},
"resources/assets/js/components/PreviewImage/components/view.vue": {
- "file": "js/build/view.067c0cbb.js",
+ "file": "js/build/view.61b3adb3.js",
"src": "resources/assets/js/components/PreviewImage/components/view.vue",
"isDynamicEntry": true,
"imports": [
@@ -3235,9 +3237,9 @@
"_async-validator.dca2b951.js",
"_babel-runtime.4773988a.js",
"_core-js.314b4a1d.js",
- "_jquery.c87f487f.js",
- "_dayjs.fd4aa75c.js",
- "_localforage.8de7c27e.js",
+ "_jquery.6e4daff9.js",
+ "_dayjs.d20a4841.js",
+ "_localforage.743dffdd.js",
"_markdown-it.0450edb4.js",
"_mdurl.ce6c1dd8.js",
"_uc.micro.8d343c98.js",
@@ -3275,17 +3277,17 @@
]
},
"resources/assets/js/components/PreviewImage/components/swipe.vue": {
- "file": "js/build/swipe.009070fc.js",
+ "file": "js/build/swipe.169af9f5.js",
"src": "resources/assets/js/components/PreviewImage/components/swipe.vue",
"isDynamicEntry": true,
"imports": [
"_openpgp_hi.15f91b1d.js",
"_photoswipe.a7142509.js",
"resources/assets/js/app.js",
- "_jquery.c87f487f.js",
+ "_jquery.6e4daff9.js",
"_@babel.9410f858.js",
- "_dayjs.fd4aa75c.js",
- "_localforage.8de7c27e.js",
+ "_dayjs.d20a4841.js",
+ "_localforage.743dffdd.js",
"_markdown-it.0450edb4.js",
"_mdurl.ce6c1dd8.js",
"_uc.micro.8d343c98.js",
@@ -3335,7 +3337,7 @@
]
},
"resources/assets/js/components/VMEditor/engine/preview.vue": {
- "file": "js/build/preview.d166b603.js",
+ "file": "js/build/preview.b00d72bf.js",
"src": "resources/assets/js/components/VMEditor/engine/preview.vue",
"isDynamicEntry": true,
"imports": [
@@ -3347,9 +3349,9 @@
"_vue.adba9046.js",
"_copy-to-clipboard.a53c061d.js",
"_toggle-selection.d2487283.js",
- "_jquery.c87f487f.js",
- "_dayjs.fd4aa75c.js",
- "_localforage.8de7c27e.js",
+ "_jquery.6e4daff9.js",
+ "_dayjs.d20a4841.js",
+ "_localforage.743dffdd.js",
"_markdown-it.0450edb4.js",
"_mdurl.ce6c1dd8.js",
"_uc.micro.8d343c98.js",
@@ -3396,16 +3398,16 @@
]
},
"resources/assets/js/components/AceEditor.vue": {
- "file": "js/build/AceEditor.5c6925f0.js",
+ "file": "js/build/AceEditor.97e24384.js",
"src": "resources/assets/js/components/AceEditor.vue",
"isDynamicEntry": true,
"imports": [
"_vuex.cc7cb26e.js",
"resources/assets/js/app.js",
- "_jquery.c87f487f.js",
+ "_jquery.6e4daff9.js",
"_@babel.9410f858.js",
- "_dayjs.fd4aa75c.js",
- "_localforage.8de7c27e.js",
+ "_dayjs.d20a4841.js",
+ "_localforage.743dffdd.js",
"_markdown-it.0450edb4.js",
"_mdurl.ce6c1dd8.js",
"_uc.micro.8d343c98.js",
@@ -3449,16 +3451,16 @@
]
},
"resources/assets/js/components/OnlyOffice.vue": {
- "file": "js/build/OnlyOffice.156d999d.js",
+ "file": "js/build/OnlyOffice.aafd9962.js",
"src": "resources/assets/js/components/OnlyOffice.vue",
"isDynamicEntry": true,
"imports": [
"_vuex.cc7cb26e.js",
"resources/assets/js/app.js",
- "_jquery.c87f487f.js",
+ "_jquery.6e4daff9.js",
"_@babel.9410f858.js",
- "_dayjs.fd4aa75c.js",
- "_localforage.8de7c27e.js",
+ "_dayjs.d20a4841.js",
+ "_localforage.743dffdd.js",
"_markdown-it.0450edb4.js",
"_mdurl.ce6c1dd8.js",
"_uc.micro.8d343c98.js",
@@ -3505,17 +3507,17 @@
]
},
"resources/assets/js/components/Drawio.vue": {
- "file": "js/build/Drawio.5aac9046.js",
+ "file": "js/build/Drawio.64a830ab.js",
"src": "resources/assets/js/components/Drawio.vue",
"isDynamicEntry": true,
"imports": [
"_vuex.cc7cb26e.js",
- "_IFrame.7112b2ed.js",
+ "_IFrame.742911bb.js",
"resources/assets/js/app.js",
- "_jquery.c87f487f.js",
+ "_jquery.6e4daff9.js",
"_@babel.9410f858.js",
- "_dayjs.fd4aa75c.js",
- "_localforage.8de7c27e.js",
+ "_dayjs.d20a4841.js",
+ "_localforage.743dffdd.js",
"_markdown-it.0450edb4.js",
"_mdurl.ce6c1dd8.js",
"_uc.micro.8d343c98.js",
@@ -3562,16 +3564,16 @@
]
},
"resources/assets/js/components/Minder.vue": {
- "file": "js/build/Minder.5cd8dfa8.js",
+ "file": "js/build/Minder.2dd455c9.js",
"src": "resources/assets/js/components/Minder.vue",
"isDynamicEntry": true,
"imports": [
- "_IFrame.7112b2ed.js",
+ "_IFrame.742911bb.js",
"resources/assets/js/app.js",
- "_jquery.c87f487f.js",
+ "_jquery.6e4daff9.js",
"_@babel.9410f858.js",
- "_dayjs.fd4aa75c.js",
- "_localforage.8de7c27e.js",
+ "_dayjs.d20a4841.js",
+ "_localforage.743dffdd.js",
"_markdown-it.0450edb4.js",
"_mdurl.ce6c1dd8.js",
"_uc.micro.8d343c98.js",
@@ -3619,17 +3621,17 @@
]
},
"resources/assets/js/components/VMEditor/index.vue": {
- "file": "js/build/index.314bd841.js",
+ "file": "js/build/index.9de0a837.js",
"src": "resources/assets/js/components/VMEditor/index.vue",
"isDynamicEntry": true,
"imports": [
"_openpgp_hi.15f91b1d.js",
"_index.40a8e116.js",
"resources/assets/js/app.js",
- "_jquery.c87f487f.js",
+ "_jquery.6e4daff9.js",
"_@babel.9410f858.js",
- "_dayjs.fd4aa75c.js",
- "_localforage.8de7c27e.js",
+ "_dayjs.d20a4841.js",
+ "_localforage.743dffdd.js",
"_markdown-it.0450edb4.js",
"_mdurl.ce6c1dd8.js",
"_uc.micro.8d343c98.js",
@@ -3676,7 +3678,7 @@
]
},
"resources/assets/js/components/VMEditor/engine/editor.vue": {
- "file": "js/build/editor.fa7aa67f.js",
+ "file": "js/build/editor.c711ad5a.js",
"src": "resources/assets/js/components/VMEditor/engine/editor.vue",
"isDynamicEntry": true,
"imports": [
@@ -3685,14 +3687,14 @@
"resources/assets/js/app.js",
"_codemirror.9d10b9e4.js",
"_index.40a8e116.js",
- "_ImgUpload.a99f26bd.js",
+ "_ImgUpload.434d067a.js",
"_@babel.9410f858.js",
"_vue.adba9046.js",
"_copy-to-clipboard.a53c061d.js",
"_toggle-selection.d2487283.js",
- "_jquery.c87f487f.js",
- "_dayjs.fd4aa75c.js",
- "_localforage.8de7c27e.js",
+ "_jquery.6e4daff9.js",
+ "_dayjs.d20a4841.js",
+ "_localforage.743dffdd.js",
"_markdown-it.0450edb4.js",
"_mdurl.ce6c1dd8.js",
"_uc.micro.8d343c98.js",
@@ -3733,7 +3735,7 @@
"_async-validator.dca2b951.js",
"_babel-runtime.4773988a.js",
"_core-js.314b4a1d.js",
- "_chunkedUpload.a9ef725e.js",
+ "_chunkedUpload.3cd238b0.js",
"_spark-md5.0443325f.js"
],
"css": [