From 12e8f81a58907dbedc34af3f065c6b648cfd6bc0 Mon Sep 17 00:00:00 2001 From: kuaifan Date: Fri, 1 Sep 2023 01:04:10 +0900 Subject: [PATCH] build --- CHANGELOG.md | 36 +- package.json | 2 +- public/images/application/app-push.svg | 2 +- public/images/application/approve.svg | 2 +- public/images/application/ldap.svg | 2 +- public/images/application/mail.svg | 2 +- public/images/application/meeting-create.svg | 2 +- public/images/application/meeting.svg | 2 +- public/images/application/report.svg | 2 +- public/images/application/robot.svg | 2 +- public/images/application/signin.svg | 2 +- public/images/avatar/default_meeting.png | Bin 10614 -> 3995 bytes public/images/avatar/default_okr.png | Bin 0 -> 5315 bytes .../{404.2df04b63.js => 404.de29fade.js} | 2 +- ...itor.d782357c.js => AceEditor.3445dfdf.js} | 2 +- public/js/build/ApproveExport.78e6b988.js | 1 + ...8b4950e.css => ApproveExport.d0d486d1.css} | 0 public/js/build/CheckinExport.6e4617d9.js | 1 + public/js/build/CheckinExport.afa6df9a.js | 1 - ....ac0f8460.js => DialogWrapper.ea811790.js} | 12 +- ...{Drawio.8bd087d2.js => Drawio.523dc440.js} | 2 +- ...nt.b77638e9.js => FileContent.35872dc1.js} | 2 +- ...ew.5c6deadc.js => FilePreview.17cb82c7.js} | 2 +- ...{IFrame.e16748ae.js => IFrame.194f5146.js} | 2 +- ...load.582cd84e.js => ImgUpload.273724c5.js} | 2 +- public/js/build/MeetingManager.54cc7a4f.js | 1 + public/js/build/MicroApps.1d368dde.js | 1 + ...{Minder.d27ee541.js => Minder.4680e5d9.js} | 2 +- ...inder.f2273bdb.css => Minder.f052977b.css} | 2 +- ...ice.f8fd0932.js => OnlyOffice.a8be1f54.js} | 2 +- ...Log.90d0d2bf.js => ProjectLog.d7bc0eef.js} | 2 +- ...l.80927e93.js => ReportDetail.a5297308.js} | 2 +- ...dit.7222c708.js => ReportEdit.1e923da6.js} | 2 +- ...Editor.43c37740.js => TEditor.fd2b59ab.js} | 2 +- public/js/build/TaskDetail.6f25b368.css | 1 + public/js/build/TaskDetail.809590f9.css | 1 - ...ail.ea92d97a.js => TaskDetail.b952b7ff.js} | 2 +- ...kMenu.8df6d0b9.js => TaskMenu.e215eae8.js} | 2 +- public/js/build/UserSelect.4461eb56.js | 1 - public/js/build/UserSelect.e1ef2c0e.js | 1 + public/js/build/app.2163cd94.js | 398 ++++++++++++++++++ public/js/build/app.62942df0.js | 391 ----------------- public/js/build/app.69d3f3a3.css | 6 - public/js/build/app.89c18ad2.css | 6 + public/js/build/application.c2d5530d.js | 1 + public/js/build/approve.a33ec00e.js | 1 - public/js/build/approve.e5ae6891.css | 1 - public/js/build/apps.1b71e935.js | 1 + ...d635d2.js => bn.interface.min.6aa5c6ed.js} | 2 +- ...{bn.min.906fd5a5.js => bn.min.a2a413aa.js} | 2 +- ...endar.a029c263.js => calendar.f7eb5b20.js} | 4 +- ...heckin.af003c99.js => checkin.eb4108c6.js} | 2 +- ...oard.8c43f13a.js => dashboard.400dcdb8.js} | 2 +- ...{delete.9e10e6b8.js => delete.d69a7953.js} | 2 +- public/js/build/details.9481fc6a.js | 1 + public/js/build/details.f0e7c74d.js | 1 - ...n.8e0cd466.js => elliptic.min.cd64fa07.js} | 2 +- .../{email.d7ab5300.js => email.9c79fd11.js} | 2 +- .../{file.665fa786.js => file.3d34d77c.js} | 2 +- .../{file.3e7942ca.js => file.abb94402.js} | 8 +- ...ileMsg.b7bf95ec.js => fileMsg.478306bf.js} | 2 +- ...eTask.05d1a944.js => fileTask.107fa947.js} | 2 +- .../{index.05f5022c.js => index.0d8dc44a.js} | 2 +- public/js/build/index.3365c35a.js | 1 - public/js/build/index.517b60ad.js | 1 - public/js/build/index.53736d9f.js | 1 + public/js/build/index.6975849d.js | 1 + .../{index.c2564d82.js => index.7bbb7077.js} | 2 +- public/js/build/index.8d7daeda.js | 1 - public/js/build/index.9d0cdd21.css | 1 - public/js/build/index.bc7e59ad.css | 1 + public/js/build/index.be253319.js | 1 + public/js/build/index.da7adf84.css | 1 - ...board.73e6ebba.js => keyboard.6b40dd17.js} | 2 +- ...guage.a5a3930b.js => language.4d5b6d0a.js} | 2 +- ...icense.51dfe3b1.js => license.95322572.js} | 2 +- .../{login.aa57757e.js => login.9dfbb4d0.js} | 2 +- public/js/build/manage.9042b8ca.js | 1 - public/js/build/manage.cf8d1aa7.js | 1 + public/js/build/meeting.e3eb1feb.js | 1 + public/js/build/messenger.355c801c.js | 1 + public/js/build/messenger.c2cddb96.js | 1 - ...sword.e86114fe.js => password.5092b10b.js} | 2 +- ...sonal.23301a60.js => personal.ec6902a0.js} | 2 +- public/js/build/preview.857f10bf.js | 1 - public/js/build/preview.bd1a4cdd.js | 1 + .../{pro.8277802b.js => pro.ae28d1fb.js} | 2 +- ...roject.ac2dbca8.js => project.67db88a0.js} | 2 +- ....b8bdb98e.js => projectInvite.de41d03f.js} | 2 +- ...l.b5165196.js => reportDetail.2a48f3f6.js} | 2 +- ...dit.8ec70b12.js => reportEdit.64a962f1.js} | 2 +- .../{swipe.fb376a8c.js => swipe.7f908f47.js} | 2 +- public/js/build/system.2b580989.js | 1 - public/js/build/system.64856f44.js | 1 + .../{task.2f02ccf0.js => task.3e582bb9.js} | 2 +- .../{theme.4d69d64c.js => theme.d74b3eb0.js} | 2 +- .../{token.23d0511a.js => token.983c26c3.js} | 2 +- ...ail.24facaee.js => validEmail.f5bc20c8.js} | 2 +- .../{view.68dc726f.js => view.f57d408c.js} | 2 +- public/manifest.json | 358 +++++++++------- resources/mobile | 2 +- 101 files changed, 723 insertions(+), 641 deletions(-) create mode 100644 public/images/avatar/default_okr.png rename public/js/build/{404.2df04b63.js => 404.de29fade.js} (87%) rename public/js/build/{AceEditor.d782357c.js => AceEditor.3445dfdf.js} (98%) create mode 100644 public/js/build/ApproveExport.78e6b988.js rename public/js/build/{CheckinExport.68b4950e.css => ApproveExport.d0d486d1.css} (100%) create mode 100644 public/js/build/CheckinExport.6e4617d9.js delete mode 100644 public/js/build/CheckinExport.afa6df9a.js rename public/js/build/{DialogWrapper.ac0f8460.js => DialogWrapper.ea811790.js} (95%) rename public/js/build/{Drawio.8bd087d2.js => Drawio.523dc440.js} (93%) rename public/js/build/{FileContent.b77638e9.js => FileContent.35872dc1.js} (92%) rename public/js/build/{FilePreview.5c6deadc.js => FilePreview.17cb82c7.js} (76%) rename public/js/build/{IFrame.e16748ae.js => IFrame.194f5146.js} (94%) rename public/js/build/{ImgUpload.582cd84e.js => ImgUpload.273724c5.js} (99%) create mode 100644 public/js/build/MeetingManager.54cc7a4f.js create mode 100644 public/js/build/MicroApps.1d368dde.js rename public/js/build/{Minder.d27ee541.js => Minder.4680e5d9.js} (70%) rename public/js/build/{Minder.f2273bdb.css => Minder.f052977b.css} (95%) rename public/js/build/{OnlyOffice.f8fd0932.js => OnlyOffice.a8be1f54.js} (96%) rename public/js/build/{ProjectLog.90d0d2bf.js => ProjectLog.d7bc0eef.js} (98%) rename public/js/build/{ReportDetail.80927e93.js => ReportDetail.a5297308.js} (97%) rename public/js/build/{ReportEdit.7222c708.js => ReportEdit.1e923da6.js} (94%) rename public/js/build/{TEditor.43c37740.js => TEditor.fd2b59ab.js} (99%) create mode 100644 public/js/build/TaskDetail.6f25b368.css delete mode 100644 public/js/build/TaskDetail.809590f9.css rename public/js/build/{TaskDetail.ea92d97a.js => TaskDetail.b952b7ff.js} (99%) rename public/js/build/{TaskMenu.8df6d0b9.js => TaskMenu.e215eae8.js} (96%) delete mode 100644 public/js/build/UserSelect.4461eb56.js create mode 100644 public/js/build/UserSelect.e1ef2c0e.js create mode 100644 public/js/build/app.2163cd94.js delete mode 100644 public/js/build/app.62942df0.js delete mode 100644 public/js/build/app.69d3f3a3.css create mode 100644 public/js/build/app.89c18ad2.css create mode 100644 public/js/build/application.c2d5530d.js delete mode 100644 public/js/build/approve.a33ec00e.js delete mode 100644 public/js/build/approve.e5ae6891.css create mode 100644 public/js/build/apps.1b71e935.js rename public/js/build/{bn.interface.min.61d635d2.js => bn.interface.min.6aa5c6ed.js} (96%) rename public/js/build/{bn.min.906fd5a5.js => bn.min.a2a413aa.js} (99%) rename public/js/build/{calendar.a029c263.js => calendar.f7eb5b20.js} (98%) rename public/js/build/{checkin.af003c99.js => checkin.eb4108c6.js} (73%) rename public/js/build/{dashboard.8c43f13a.js => dashboard.400dcdb8.js} (97%) rename public/js/build/{delete.9e10e6b8.js => delete.d69a7953.js} (99%) create mode 100644 public/js/build/details.9481fc6a.js delete mode 100644 public/js/build/details.f0e7c74d.js rename public/js/build/{elliptic.min.8e0cd466.js => elliptic.min.cd64fa07.js} (96%) rename public/js/build/{email.d7ab5300.js => email.9c79fd11.js} (98%) rename public/js/build/{file.665fa786.js => file.3d34d77c.js} (88%) rename public/js/build/{file.3e7942ca.js => file.abb94402.js} (59%) rename public/js/build/{fileMsg.b7bf95ec.js => fileMsg.478306bf.js} (70%) rename public/js/build/{fileTask.05d1a944.js => fileTask.107fa947.js} (69%) rename public/js/build/{index.05f5022c.js => index.0d8dc44a.js} (99%) delete mode 100644 public/js/build/index.3365c35a.js delete mode 100644 public/js/build/index.517b60ad.js create mode 100644 public/js/build/index.53736d9f.js create mode 100644 public/js/build/index.6975849d.js rename public/js/build/{index.c2564d82.js => index.7bbb7077.js} (94%) delete mode 100644 public/js/build/index.8d7daeda.js delete mode 100644 public/js/build/index.9d0cdd21.css create mode 100644 public/js/build/index.bc7e59ad.css create mode 100644 public/js/build/index.be253319.js delete mode 100644 public/js/build/index.da7adf84.css rename public/js/build/{keyboard.73e6ebba.js => keyboard.6b40dd17.js} (97%) rename public/js/build/{language.a5a3930b.js => language.4d5b6d0a.js} (87%) rename public/js/build/{license.51dfe3b1.js => license.95322572.js} (98%) rename public/js/build/{login.aa57757e.js => login.9dfbb4d0.js} (99%) delete mode 100644 public/js/build/manage.9042b8ca.js create mode 100644 public/js/build/manage.cf8d1aa7.js create mode 100644 public/js/build/meeting.e3eb1feb.js create mode 100644 public/js/build/messenger.355c801c.js delete mode 100644 public/js/build/messenger.c2cddb96.js rename public/js/build/{password.e86114fe.js => password.5092b10b.js} (97%) rename public/js/build/{personal.23301a60.js => personal.ec6902a0.js} (96%) delete mode 100644 public/js/build/preview.857f10bf.js create mode 100644 public/js/build/preview.bd1a4cdd.js rename public/js/build/{pro.8277802b.js => pro.ae28d1fb.js} (85%) rename public/js/build/{project.ac2dbca8.js => project.67db88a0.js} (99%) rename public/js/build/{projectInvite.b8bdb98e.js => projectInvite.de41d03f.js} (96%) rename public/js/build/{reportDetail.b5165196.js => reportDetail.2a48f3f6.js} (85%) rename public/js/build/{reportEdit.8ec70b12.js => reportEdit.64a962f1.js} (86%) rename public/js/build/{swipe.fb376a8c.js => swipe.7f908f47.js} (99%) delete mode 100644 public/js/build/system.2b580989.js create mode 100644 public/js/build/system.64856f44.js rename public/js/build/{task.2f02ccf0.js => task.3e582bb9.js} (83%) rename public/js/build/{theme.4d69d64c.js => theme.d74b3eb0.js} (96%) rename public/js/build/{token.23d0511a.js => token.983c26c3.js} (91%) rename public/js/build/{validEmail.24facaee.js => validEmail.f5bc20c8.js} (95%) rename public/js/build/{view.68dc726f.js => view.f57d408c.js} (98%) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9032303bc..f93980b18 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,21 +2,23 @@ All notable changes to this project will be documented in this file. +## [0.31.5] + +### Bug Fixes + +- OKR组新增/删除人员传输格式兼容 +- 任务列表更新数量不正确的情况 + +### Performance + +- 优化滚动条导致页面抖动的情况 + ## [0.30.13] ### Bug Fixes - 消息列表过大导致无法查看图片 - 桌面端drawio版本错误 - -### Performance - -- 优化菜单颜色选择 - -## [0.30.6] - -### Bug Fixes - - 无法在任务新窗口打开引用的任务 - 在任务新窗口使用显示文件窗口错误的情况 - 部分iOS系统按录音时页面闪烁的情况 @@ -30,8 +32,15 @@ All notable changes to this project will be documented in this file. - 打开工作流设置后无法关闭桌面客户端的问题 - 打不开已归档任务的情况 +### Features + +- 新增适用OKR评论不在成员列表内也能显示聊天记录 +- 新增适用默认部门下第1级负责人才能添加部门OKR +- 新增OKR图标和task图标对等显示 + ### Performance +- 优化菜单颜色选择 - 升级客户端框架 - 优化工作汇报提交表单 - 优化确认框按钮样式 @@ -69,6 +78,10 @@ All notable changes to this project will be documented in this file. - 修复用户列表默认排序 - 1. 审批通知模版 - 按钮白色修复 2. 审批详情样式相等 3. 审批评论 - 0分钟换成刚刚 4. 没有加入部门也能发起 审批申请 5. 审批流程设置页 - 样式调整 +### Features + +- 新增多部门用户查询 + ### Performance - 管理员可以修改系统机器人基本资料 @@ -81,6 +94,7 @@ All notable changes to this project will be documented in this file. ### Bug Fixes - 修复无法从任务消息对话中打开任务详情的情况 +- 去掉test信息 - 按照dootask启动原始尺寸截取使用说明的图 - 修改边栏目录滚动效果 - 修改边栏目录滚动效果 @@ -90,6 +104,10 @@ All notable changes to this project will be documented in this file. ### Features +- 新增创建聊天关联id +- 新增创建聊天关联id +- Okr信息面板新增"打开OKR"按钮 +- 新增OKR信息推送 - 增加获取更新日志接口,更改前端页面默认请求地址 - 使用说明提交 diff --git a/package.json b/package.json index 13a53c6eb..e54bd4274 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "DooTask", - "version": "0.30.13", + "version": "0.31.5", "description": "DooTask is task management system.", "scripts": { "start": "./cmd dev", diff --git a/public/images/application/app-push.svg b/public/images/application/app-push.svg index 23d67cb70..834c54045 100644 --- a/public/images/application/app-push.svg +++ b/public/images/application/app-push.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/public/images/application/approve.svg b/public/images/application/approve.svg index 43b11ce10..dbb2770a6 100644 --- a/public/images/application/approve.svg +++ b/public/images/application/approve.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/public/images/application/ldap.svg b/public/images/application/ldap.svg index d4ac17dc0..e575d7ef7 100644 --- a/public/images/application/ldap.svg +++ b/public/images/application/ldap.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/public/images/application/mail.svg b/public/images/application/mail.svg index 2ac06af37..3a48cf463 100644 --- a/public/images/application/mail.svg +++ b/public/images/application/mail.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/public/images/application/meeting-create.svg b/public/images/application/meeting-create.svg index c1d209e64..a4dc37cd6 100644 --- a/public/images/application/meeting-create.svg +++ b/public/images/application/meeting-create.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/public/images/application/meeting.svg b/public/images/application/meeting.svg index c1d209e64..a4dc37cd6 100644 --- a/public/images/application/meeting.svg +++ b/public/images/application/meeting.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/public/images/application/report.svg b/public/images/application/report.svg index 7ad49933c..30497e0f2 100644 --- a/public/images/application/report.svg +++ b/public/images/application/report.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/public/images/application/robot.svg b/public/images/application/robot.svg index 801356ba6..3cd3c5e0a 100644 --- a/public/images/application/robot.svg +++ b/public/images/application/robot.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/public/images/application/signin.svg b/public/images/application/signin.svg index 78caec255..8df06b244 100644 --- a/public/images/application/signin.svg +++ b/public/images/application/signin.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/public/images/avatar/default_meeting.png b/public/images/avatar/default_meeting.png index 1777f815fd9b960d368b5d8db2724a5496dd846b..1111eaf58fdc327a730ab2b30df508a3107d2ed6 100644 GIT binary patch literal 3995 zcmd5-KyWAmV2~VWdMMw{fzK8vY>sl!FMri9pXFD;^3P}aKU@o>um3IoD+UxS{abPr zmVd!2Xa6PiKYsZueg!K&w3VR3E&ueDjz8Jze#sv;62B8>eIiaBTm!@S|~h zt@_b8Iwxv5khbD~Zy_l6uV-s(tMlVVVe?vK=_;GO#ai3CR=65SXQfyFi7Q*3UEG9= zSLatY`zF}m<~DO`*J}ILhrhC4yj@SK`156!J^G!U->~-V&3bYBTJ!sjp3fU=6U+(D z4fh6EQLMr0%$rBs`4;Dx*H9Z1ZM79HrwlZdFntZFN#R}&wr0o3vXYTM?_~w}xN4Ck zka;iU01(hMF+6N@<-^ZU=%5j@AQ#gG+I`EbWadpOE;1I)M@8%!;w=; z76&RvTF1L&a71L)kEO~hA%#B#2u;uQu#>Zt2FHd=wR1Z5eg8a}RvD}Tc08x=guZ1|6hyK%qpv0d$boqGL>scCP0?@y`GvQl1N&E%tt3(p?5Ci<(J zcHjMe-p2C@GlwL7*6Y1&GBf4+{l_SyLs^1ReCw5l2ly;%62tF_&a3q+VqX3^pFycj zV~p5Xzd12#k)7G{N%>3bqu8~A#~F2`ep%14`pV!#3RM$JqprVr2NaT(SQj*=9cTuf zL;Zer2JS0-n|Q_ueW$p!o)O;dQFF|Q-jQlao3ZEy=Q9DPEnazE+Tx$krn||V-%RSo zSr$bTnv^UG=!D4~hc=^6(&Y0AyP`=g`&eNyGkSC`740qYH&+`z?N8jomppICRcj4P zn)0ZAllMoaiGQU!(sgs_N?v0(?_ih%Lj@1gXX7MGuYih(=Z$85(m-i^syf`2U9S<$ zJ2c6bNx0rH;A$os@B84uB~UU^H?9Ev4m;@~QO2eJLeRcF6H!4SHnkug0;Mk~C*X$l z&Cg+vmh^Y~-il+(C~MrnBT|)HQQH&X5)F&hk4|ZoQ>!*Tf^duGA>AgHOv(OMqLrDQ zsjpo#D@^G?qEC-w+SkE@bgFpfaxiLB<(*q?lrVh3^C6r;fb3Rp#<_!?SGG|`yo6j5 z`ZBpiU8B;}RuDo3_r}wYnHgwLL?N*a&EKTwo)XPmwZ~=N8K&XW;;vGMtu~ToVZ-@( zu@+?-=~Rn0?E()SE>D_^)sc+gnfy8b&MJ*;dc8SDcH+c*L%1S*uqWIT3=5q`r(R4P zjX;}CXmfQT+ix!zRbTMmX!N4q(%x9=IYKk;(F%QkR_I)$j7OGX);M~FOVBIsHzEin zR3to>ZEt2!t0tl}lKPca{%1Ajlw9)+q|YFyI8Xq!(4<64tEuA!cNtTDFd`NVU!RI_ zUj%dU77b4N=Y&qoZzqi;cSG(Y3rXZ**E%7ElkLIeVUI*)$4W+Rjj5dkrjeX@TkQ0s zuemkfxP^p_F+P~s_RRzLoh;mQHA(quL9FYe&tvX%nG>3bp`vlKTINx%>-#6!Da_EW zRr3aB-GVK6adY2kL7v&gL?R+TBy--|fEIF>=kOUYh6e|^K{5pYpV1*my)C%P$Hjig zv?Fy0+)lXaT%>sPviM-COh4q|C9&thUP za3h?d*P7X^PxgGNXmiL$Pa|daxZfBF9xyrbU7`cN2eK%U=lnA<)jTxcnx(fjKm{sk zWN$v*KYt7&LN+}I!hU^ke9M)~RW?MM63V#=W(??##uxS?9w8{eyK^iOP5_MpK%5UD zjc{m_0#Cf+yN&>V{)>vY4q<5VY+#{toGO68=pZqA*fJc=OQU+{f&oJp&W#bfs=~oB zYesQov%8G`m>Dg*JhiL~>EOkU@J3~#%b0wxjUA?-C}%EiXG|8lY=AFEUTF~+W^B_LiQ(&NuS-(f;r!*OMgOtqIa76TZh&zPHazy6pV2LOY%T2>jG9frSD+!u#NJNC%eY zapFTfqZ#6hPJX`4nvdEG>`qD*3vyT|n6Yas*E8<|glDg7*Tmx?H(|!BAtD)eLO7(a z@o}e^0Cb1|vRxjygSRfg^#+tFY|Y2W$#ex%&D)V=PB45(wFPv=@8PCWPN)KZj%CBO z>NI6129Piw{YZrfXE&Vd<~H#rB`m6`7{A7J>PL(fhyt-nQ2hwSII0ZxdO<#xSUABE z{C_-}lT~R85oH`jREJ1k{s)Nhj6EKmo)o~2sX+njnms4M5D#srezF4PlMiOrCl8*3 zoD|^CVaaK_1)_{I$Zt#7x}(Z)*vc%b%2F27IG0p3I~R(V6xI5??tFGzuNOVA03Z9# zCTUHp3AdzP<`1$x8>B6-f*LeDaY-^Ut`qrQ55D-E8vRHc7KCWI?jHI$Swlc->&o*p za^k#H06%_4bW@&K00t;{f;w8WOA{w+0T>!p-T|nBMG%34tM0Nf04GZYKa`AXkw6=! zLBRHi4qzZLJHQR(ZyujcOS=L&YZhLUdeArhg z3P-hl&B`r(wQ20XjFi?d1JWXawzbjle}3;L)8$zNm7Vi1{1kWvD>8-pPE_Z42_O_b5+wH{OXc0-0y z(;+MkarC9j;Ti!gI8Ym(Ete<@cQ#9L0CW*b_sAv6!43CKMga-I)aA*$?+tc9{hes2 z;P?8AT|9u^F|k@ZX{!XKm-~;IT*1Dk@_>t;seWIjm=OeEllnVKZF~q;%mZYSK*R?k z17!)SXGDA=bva6$4oawcD^dZRuyV#+Mp`kp1KxbG$bADcp-*>W!ND8a+zXc1pbfE8 zfF!{CT=wm6wqCOsuy{^PSr+bX5ChC)B7GnyaEmLnS)Ac2p%TRk|EYGPetli$B1kBg zzBG+YTD($fExxhoBESe~Mfym?iy#L*rVXZ{gE+=j(1ToU`kd>&TZqdNU&m)F`>5-n zYynkEa^3m#(7CU$GAUB!3ukipXq|C)n>Y`GGjRW}i<%5FcY!Gkdh^oIW=%$VpUBzb^kSdwdaAvFO~2E$Gsxouz`U^Vc&TD1M@GZ!4Kj;*ZOXEd%Q#td4#DcI{QnF z`pwF}7S7L`TF`^E!u+~@4>K)KVn4yTPeeT~aLuNBIQmJG{h#2{qjXN48%_^{@Alf< zt3cQ}DwN^o1_nIEk-JL!_bD?aW(tdN{YdTQrFw$!uB04|<(4yyR(f65GrkJTd*`Cp z;rMH%z0>o8!fhcTW9m#RQ$pLOXt*jW(?y@3tW(H}Z8-?^BOk}Byn z`iNf@#d496LKae9p5jNtBkemXV)x7*M*ngvs$Cl9-BID^d@aiYuT8CtUs>t$n4@Oo zEo1XCr2=Tl_bNoYA#RDa-E;;d@g1AYmGtp3;{apOxW1_2_?-8(%dbAlVw$1rwq)t} zswqnUj&Anm&7tpA9-6t7li|A;w`wD*8GEsI;>Xm>_60?X`u3<-W7P}>@u!T#mCGA% z`&8XGjP6VkA&BhhrE6Y*o)X>VDRE^)`91wVpNUhuhY#EzlrTNq`cY$#J>3~DEhF&D z2ghUvr`wRvkiIw}VC zaCs+4?3Rd^OM0#G^zD}1CF>=Dv#OMnx(!<S`*59QH}7< zaMIn@P0w;;-+%xgilcG4QGJ#RA7A_3(%|y0C+z|_JVQ>g+I(Yl?oD*8{+vp36)B{A zI7G|bLUkj}Qf>6}cahbh49qs(&<38C886not?1ECGye|xn=)sJKEytG;YE_SmPuAEQtw1v(yX)Q3(g-Dm>i`TJ~5z1{0GT(1bP4f literal 10614 zcmeHtcRbZ!9QU~-WmbMh$*6FXQJEoIacx=IDiK1s$i7-=ATn?ECL?>(FUj7r$#%_b zuJxR6zvub?c|Fg6&+EDW-0wNxbI$j3KKp#$Cs0#ek(%NH1pt5=qoi;T0225}0#2QT zf1A&HiSQ5Qd{0phKXFcC3bbKV~4O3 zO;F{MJ@pZHH6Xu{Ghd}FFQ9SZo9^w3mfmv@%%i6&9zmvmxo*N;Ml-j+L%m*{e3w)e{Sg zp4UJ$gd#M>1LjV@pc?yN_0RxeoQMK|Xe=5Ecpoj5g7cNMtI=GkwY=bP!yq~9YHOnZe@56}3rXEKR1gZElZ7PYQ>+UuK% zpO^Fx_a>*zYX2?qr+G7;3{I3RMbupJrx3s5=vk{`)nb>c+9Nkdg3EGR{ z&bg7I7-=?2RGz0rt9lijzwhPGW+yMts7!e5B;AqvUCxRG=kc(cAzG4`)6FCCPgr>5@SD!) zG;s=<54x8rVLt%x}ak)X08;PW9cmBa$yHLZCcPu|^ z_&ax_zLOl+v>@8^-QLiyJc7-U@L)?5aAg+G1*R>hy2UwkryIKlPW!)VKLNDE?1c9u z`A2Uj?~cgFE~9DRsP{Hr1$0GAG|~mPHDeqic%SWYCvE^4Rn?L)Nt0Ly{;`?^rzx8k zrxU>Yo+M%K4PG@V9>ODmHmX>1kTg5QMc9u^8J}NyV!|x0ekBpS|Ca8sE@$+0^)h#9 ztH~;TX(t)ZL;GeA>AlD94w+ju4rY(!6G{6dDC$tW3u{T?%8|+?I^9*B?f^V0&|Bxf z&ak>*UwUu;#@1VseA;&&RZ&z_KE|2Xo%cqNF;i9rF3L~chekFf-`0&?1(owlYiY}e zslm-#?oH~HkS0y)qbOC;)+gLY35BC&PUa`b%^q*`dsH7 z4NMHHI4xk;mS|nF?CI365FZkGLqjKrCHvhY>Yi9!eoPVV+hyT^ka8xd#VmAq%bS$1 z^oJ|KT!+lOE6Yzi>~kJ==bgM23iQ$nR*L2fOs>3c3-)gh4ZliJS70Pk9KO+$Cp>sA z(s@S;)S0T5w9W9W&#;K{*AoAXb-LTwH8bMw*b-->=W00j&LqasJ1QIc93!Qc^koXKVk7Z0t5&=4ZHKyG%Xlr)9~q;d~e$X&bGghR{FxpgTde zW%wGOD3-tIsMDP*=@MmK=x}LAx8?*hf3bf%2?&V9NM57zcKva19xrcoKJN_==+C{z z62?)X4OI(@JfuiO&1LWd<-6;zXarcPbs>`m-CY-4(^HZWL6|c#pWA4u5KoglC*F8p zxD|tYSKH%jy+BMv_D^)iE)XXsS2xWrAa4~=_p2&a!;}w2nk-+#kJr@<@}~L>Pxg7o zQ^i{FF4O>C(;nZP+k0tc@zNmSsJJQ2fgkqR&9jqh_mi2g#dOcjjB#o^&+`KCJ}}c@ z#pGT8Cn+}ZX20GU3~t3u z5z#dxE{|Kbw)9Ax5=ob=e>(ObR#(=X5hn*g*XdhrF3)gBjqi62Ir2eWlN>uMCx`x>S}z!JKgJ2Q*j+AZ<2hOoAeVQp^5IN4pWADyvqgYveArBS zn#LF4%64b#Hzz_mXin*YyKxIU31y|yfL)!rTZi$L$6NCd2^4?1_x_iUibR0}6!V_%Vkz=)Ly!|0G_fx(dv#^0(~ z16oHT*UtKWMV^i4<#(}i?B_zkgQboM%kowJg*ExY0Rt|wIwE<^X-_*erm(!=)ClB7~QGbr%IMR;n_%iE?0s+xYC8?R! z>7EZZruv2~`}Ba6cNk;n=R6B&rkW=F@zK*>Gl*|5E-@%3=^PsIeO+m0oU@DqxN+y5 zcSiXAyo_JlS&)N-n6W|n4oRDWQr$R|)tH;}P9GnVlDe9d#@zohb@N1upFsm51;vA;N+)HNAsVYILJ@ zuPE!bkGd5(V+Fg$p^bz&wKwv{g`D>GFzcPV!xQeqHE2yYdJ{62*SGcE59i9^9HFuC z&z%%90ylOY-$(QE8@O>h2q+tlvVsl#eVdfbHnnSt)Ll@kE;hVrqjzI@T33x?i$Gh$*yb5)^H{+j*J zI)9US?h@|e&m$DbP?^GaJ*uI4))iCZKHJp6InxjeEwtD02cKkmWwOiieV^y8JRpKA zp8h)<)beoV=)Ok+Y4o_qZo406{EpC%W5m{s;ks$Y!|QE)XujGJQ?Y^IAZxM&80b6x zkVAutwu~TG-uStmOwI>lB{hViIVri~VVc?-V^EL)^M{vG9PS=-DagATfuz*V`Fi_z{zqM%D2a9~x9jWZw-cNOo(D715L|0cLb9hgC!5 zaDT#cKBiW|8si(op7c1D!$Yfb?0pf06uxroK+w@q;r79iDH*%V_$ntUWbWFMZON)G zXkDrvtVaQ0Fwp;WJO}VrrmiZv;qfLMPzh{TMBE1XycJi7)uR-3nzB|(W1sDy`_?oX zyM24g*P)aoq^w$cSO(_#l%DOoqZByj9mtWi6iKTCJlSs~tDW419ok{TBefN6R_}fG zEKyImBh|yL4Wo1r0ju^HHm7PU)_N5Jo#}Lc3{SeY4A$%+=enRFGk56_bsvY+@(O z_uR-nAoFetY|vo@Qqy0lA*~zYu;rumayr!6R#r`;!N5bTI&G=5Rlzx}35jSbw^TEkJ&LgKA)<3I-yM8!th(Dl74`=seE=j3y zGci~cO-W1!)Gz6QYV(@&xkCcmjLYT&DxX)*n-2mRYVt7GYd7#6r(UtyTGcM$7fHQfb_wl$@a2X2t;=1~QnypO&F2+l zyeI1T8d8b}v2F1}HxIg=sk?is`+8#vhsx$o6JoLqeS933hj*A@FX$o{;w}X;p-u)<0lL-`SMdN*+^|NSpS)B#EHC>M;2X z+8x-wa+9#|Znx-F<{Xqq?LpX!7_nHgkIBG1Uh27_=}(q#Eu`8#XZ<;d1B0(SZ{iZ3 z`~NfziVvGl(%yakD${N=nqKD1RWP7-30)j-r1>uo>Dk=@1NUMP=O{|YNjuic^4;Dl zn%H*c%afW<1-va-vrPi%$bdskpC#|%6>%%p$SGFFfOB~sRfNfM_lTpjsgxSC#-QH6 z)Klp~jTG_yBX>H5&+200=~rlHIvFSBP&f|4zhO>ZM8#hI+kxNB0w^8!G#^enT~%;c zk#HKhcuFe~$e>#>Wy05z^cykh&P-Hi69G3 z&zv6HyW%#FoobM-3z&UDVDaB53Apt~Irw7yk>9AJHhcXGeUItqBiHjKj=0WHQpij{ zFC=vp^*rfI7eGqJ?o>GR{4}Uc`sWHm)xKhGAagvZ+TtxF1pLvI`ggexBIG|=clkK{#2b!QhTVZZELlb-*(yI z+J&oDk>@|WgYL-x05q{ZmZ*1>(`YIy-x*Kaij^* zQOOiq#T-pm$@Rs_LRlT|iIK&6d#RU7-l|VTEis}|Br@z)Z1FwCY&Kawq6LsSS5_hr0n__%>&%%OYS&o*sS^Uw&DLOGW@crM~ z%P4aSn|77uIR@+u+3O0A*@ipm)4Beih`0y9&S!+1H;pCj{3aY0RrRn=FOrBsnN#S}&~X zQUaIX0rGDm4}!&ujv^0sQnj3uJ&+mdb8#U(iXFT{n=@E7s9(X6@X)7aTbOw`QU%=t zsm9S+e^uMh8}ypYa63#dr{<{Q=S6i-T4flWOZL$O;5RrI#=rNyivKqEi1&e?A(V5S zPpgffiKDEnB3r}s&t7?$?0DariWNH?9CR0EOlt_0&PT&6ZYl9_q@gUC?Z)}4e^KVN zRKE2%eHhNpCc!9n<`Pnk{Qr;t*L}Z0(tGld*$cEssGA&AecNpYuZqOMmC zuJ)2COKE)nM~Hp7gQhp>my_l;i0GLRmy$OooMBemy^B6&KaBYp$O3&!Lt^PPal86u z#eP>o_sJEM{Kc*SR@l$=8?EuF?=V@`Zsb=~e2UrdP~9?_t}I;t^aV-TKUN(=V?POu zqQaJrvao6h%+H-{?v_6EQp#Rov&o=4VK!1vA+rScqDi(Ws#7$%A`2rrk?qT{tB3rw zf}IvjKb1?CvEGYjClPNnjy@$tG@fE9kl8|By}cK?Vr2H~xXMZs@42`dB2zBl;cV?fgfpMcVSOL|;ZD~Q)P zPWdAlouk;h+KG-KtlDv=gC39Z3m>4#co#ma@oX{RdB z{_w4rW&#IaOTFfyu_XHyVE1cj37L`i4hO~D>G5B(hObjsc=+i3s$di&(C*)b{KOq? zynY)u9JNpzAKgFVHl0<_W>&4)b$rMfxsMd6!I^=Q*xWu^Dng@t3-PzLdn{H*z3CQh zXBy$pa)9r;#q0fpN3dQDG|{H+--{QHE)|PJ3h%H4s^7lW)#c9_BW5@5PY#)FHxRne z6nRhb&?(DKVy`~g3Uj=3A&a}O_b@hbQ@)kZTgI%}%_UKVK$|BGkIXV&}iH?W$H)WcRbwbAZ>Lx=M@ zXWm?+V%%PCe+mZ%FK#Kz)3P-SnH>88^ zpAXq=8UN$|H`+rh>dE`lMDFP6sNMYdYXAiq2u&f6pH!8px7%#;l;OP!LO2e$i*>Hs zKcokaLnDhGn_?6IrW$ql6{C)8U=q7pQE*T1`0RNKFjnLvpJiqC7!Gu|SqbOHzkdlwrbUIVI9xE7hI|>L;u^bT$v}UbsG~fT}ZHG0~q@JF7ir zYh>b<$3nqEdg=`ct~!O^d+yt%E$V#!x0%)nys#k~_tGyz3*>7IyH@CpO4l=Uq?aI2wx8irQqsDgJYOpkV6{plxmUOxO4D3Qr=_Q z;EgmpX0H>adCcnhHOa3ad#YN^W|sct$xmtB%g0hF$6kIDwC~|j>CyUTOXkr|F!@#k zO%Oim>n3%XeYtPQ1nrU^3GOD8Mqe`<&6C5ELF5THZ`a=Jds|7qwb@c-=_mO$;hiHl zwK6pO-oc-9n;!+&uZbAUD?x2&{=QSV+e9}q#Wui30l20=TJabjSL*l@72RXqjnz-v zVlwDzJra{De?=7Ap~Kj2oiVDas5d*!^;i#&q=d1Kym!EZl+4ZP7W%{8uLY*=FH42Y zq0BO3qI*=WYIxEGgW9aORcWXbwvTN67rW+oJf;UJ&>19C3Md)1i{AH>U{E|>jV+{` zaZaRraP6vo3ZrN$ad|N_&RuvWn!b+X84a*`_&q`gIT$!pe~Lm9YCXL5ulEW$ZTE~m z(vw^?Hml8ckb#;pRL0jAVcLI2e**=*piEn;)WLM|glFDHAT?M(r9VaeKM)#~IdtXx zVR(9}SDgqShopP?Dd1i+#qfKd9ARKB@ zw@G}vS0Z-)==i7-0eobZKeQhxgc>(d%Jv{jzHdM1qQ|Ab_+O=kWFD~iy#bPH0P74* zfAnX@PyDS-{H;_dKOGVbRhA`%-r11nL+il=Nhib$x%OQKkb+x;>h@wT&0^SHT9lHL z`iT?3TzS~#7rOS?o~Rij1S1A>Wh+sXQbv6{`vy|hU~rAya$vw6d968?yS@p86#<*( z;zDUNFR#rOQOdghy!>SWGe$0?mcqT^fpS*j2@qW5WNs9JMYIe)W~R8c+EOFbeIJ)ao(8ykpvrAoW53szlea{yw&-AU z+95A^hkV%1tk64;BqVAyOzrPl-fi2}6m^>s5oS?EoOq?byBiXyPMu-&^zqFj=^V6| zu-JYkg4E>Hq9sRQbNgW1l+1j3*zFgDvtR)aR>Gtxaf}qwAA8MOZovg+iHep)(`^Hw zXKK$}Z-RnlH*E0x*3Igrxih$FWlx((a#$%G^0VCYp_FM4^{jsY>Aj$P+{inge#n4B zuu98G8>BBJnssI2s#I;Q@3;dhghMnZ*M|csjFICfU;!|~cJHHwQ8x2wxLSlAOWef1 zTOCP0EE$T3m7auUf4``MIEWE%`1#D@$Yer|E6P1S!foVyc$qA2U~o7dM)LWvtNjlXBrN6qsUkD;wwmtl{^!{x^Jtc9=| zjNqW5ZXd40(`5$V>V>$jN22ZWAe8Z)TlCY>=e|%RI`K`v+`m5Wf9~rrLY7cDT6kFS z5`feHAa?PqVL)C1fYtC6DChHIyJ{oida0zOIt57w}oisF0Kzzlh=1r}xlMfpFe}g`WE- z4ehgswzG;aVGN6Ge)n>$#aDP)3YSs>nO4;jKDA}ZQA#{p-Y=2tlE3uh+1&Qt+St

@*TY>E;cFoD)BP4@4DBzQeQ3Onv_Y-iF%Zw0 zU&xnI@z4F}<(#vP0(HI9cs`bjGziGr6#K_O-Wh&<*3c6;Twu6D3UHZRjz%R9C*G&q zmIudtK2etb!vd>MF@tRopp!CL9PP!DnSUx3GJ`_@50jb+hM3e)OA5f2 z4l}QWYbXtU`T?P$Co=dEp7?qDQqckg#*zs|(5`<+q^-Km_4ZGIgtJjXPgdd=YqFLD zzidYvKqk}ct5wRU%^0jeHdR;|)=XwuyIGXCs6v?)>l)hM$VC5#x~VQ$XBUl}F|Qpo za@yZEkkTnr?5;Yq51|G1FU9|Ma`Mb}G#$x`4rOe(Xms-g3;7)AePXuUEB0yt8Z zzbh9IYvpswycfY{Ic6gr(`A5+mzVQHAA^jE>twtjw72i(@>$NNzEBVOS?H7HtCd5u zD-ontK%o;#fG6*1xr%aLxGg)D0ddH}?5X`U9X0tc7$H~76Smks4Y-6}Lr`+fEA*VM zqs?SF$7jR?bkL9wdagwyS9``^!>}l$7IkF*Sh3|p;-mLjcw}9Px1v#mcZtq$qM9Xf zvN`DCY(J4r$plJkp`swQN7alb77EMeMo(mA?o$F)>>~{qebCwp8|87~aEr-;J&gWV zG4Auco)oTE629KAO51cVKQg_?k5Jl>DB#svTN82UrrQrmVaOxY>Sg-gNt;FB>RVU) zapx*?{qfO`X0A0e!fUXQ29?hh4Stf*U)v7PRCwH{x~On6b-)Uy!*2 zcn7^uV-s4@z4PzhaKpLSw)R5pQi&g=uK?J3EDt$5KfE8LC{GUvZRw}RxLG-=KnAUC zkB%(clHgevxAVWhA%b~9|Azl&CK}QzGorfi6-x7i$U*8!D3PLvNAKJ0tXoI~y$4gi zAwk;lrgf*PnZ1e;!*IR{QOTYe|_m z4pO-bNb<9hYYJ(zE#+n~UWt1-PnLW^z}HSpmUS~?RRuQtfpP!Xhhk+RUXFXSoscTu z{}+Jml+ChJW`HC9LLg?m1c!RQS12&m!$ZgpEdH{zkYCgJz~(_S15WGRugx~W4sVrp zK{}ARe>*8??4=Q`9E83zH>l)8 z;`di)>`+Ww<$V&fv*E{~Ez*~dJVBk#9Q4&+)){L`%!w7959A*H{_sEX(@2h3I^+%r zm(NO;S0duh<;gS2|G}AHx1aYQVCf9;b_YFlO8>Hj5#F5V`@x1SVb%y?kwp#o-;p#` zJ$X_(w>Prf%YObgz^w@migT9SwzDUix>bhD&1H)IgCo8F7hB~If0~)%j@;*Hu*jJ< zG36cm@q1jFqK?Un$aTGlexE0Ri(WiW=|tG)!-eT&kQ*P zyp{F30fsHi+7f>3jBvjQW_*X^@Gh0xYBm=|-3h+R@4>vZpJwr#l*T^F$Pl`)95)U9 zIsCiQ>k$1s9h-hu>woiNl=IzV4o#5tZGUeLYFc#;93ud6X>^=^Dzvq+=lP?4Ja=TNp)>;1t_ssnGAnMqd_@Z5DWNfv2 z&Lxx3xS>*w@J5duRzcArl%QJg0EKmM@RSR6G>lPl1A-2<5?72mEYa4Id zYkRzJ8RPFalAj|z!`-vUbsWp%{%u;LJalV)-QgU5TUFnG>vfPnX)+Khn^2+M4|1BB zi`qXMI;-URDV6X50(VjSs*#pTHp131Er!!$yxOKC-Ap*0kJ-G1sIZ;NBJF$enBmc< y_*8;rw<+;oH3@4_K!okfuPs{P=MJcz}!(+$dxmH@jn0;a;W71 diff --git a/public/images/avatar/default_okr.png b/public/images/avatar/default_okr.png new file mode 100644 index 0000000000000000000000000000000000000000..7b8a5036630ff0632339c42cb6862e57a684b93a GIT binary patch literal 5315 zcmb`L`8(9#|HjWOvM({#k|8p-j3s23AwtGdmMmi{$ySy~nwNcxkR*}OVwa_oEoP7< zQAC!IEhI5Xb~E33U!Q;BdtK)`_qosgIM;Q4c%JKeUMC5E{wyb(2pa%^)6@iK4FH_6 zgaZ}?L)wcZyBU&=H@7un=x&P3|NEfR>H9VJ>D!xo#R+?bk+i9S{dYz5{oUO(_uWiy z+QQ^swjb@!%6?tmUS0@&^Y1}>CGFST!D!Dxf75<>>K*|UGH!M>*!sK;*!i)Mz1rDO zd(CQUq&P}GIh2QGppT?(AWCtox15y%fRAj7Gq4RCUzu>YF^lCnG@b1=7DiFiV$ILh z{utr2N^FqvQGU<|ak@NTrE392W$OUm(wfr07haj)uT9K572m4V*;s64Zzz>=nRIf_zCTPL^Ce$@#b|9M4< zutt}4JRHm)@%5*0d@5_BJ=^JBqOw`^5jA!Jzo__`Q@^s_n+?b{dOjoUe6n7FSH=d= z3KUp2V(+jpYb9P#pg%IO-gY~+7r1rw=s83B{A}4BXCn*`pU!Xln*3e0fy@VAL^)sL z1P=CUZW%@yVm(^sWV5)qWo7qC*bSTbNjhJ-U-Ior&CP&UHp9n#hWKgzDz`3oUqccr z*`)3byyp<~UgDl!tBT+we|Pu@Jsg)ZgQhwFk4bXVz>1%AGHnto(fH;oXOc6 z)KQ3Eu?*3*pW7CL*z1h)3b#~P_?9{_j`YR^WR~`pQfgLo%rf_@h1~RUx$hoH7|Bz) zdNHqHQi#)S^usxXBAjx(6*80S=`KC4u^$Z51G4y$L#;c5XTGE;FVWr%d=bU%RHZ(7 zI<3;a^rYuf{cccPbc&%pJ=C!URM4d~|C_x;T0jSJ#Pl9AgFY#tbp&@%jG*v~4-uO( z9Qlpu#VQ&3;v2*Wo>9@x{j*~0CvZ37$HK5u7d>bJ#+PZPRv+p89|oPVbVXy_P4a=5 zL0vF23Su%Xl}16aNu}Hdq9g>y-srxj za@c~2IvQm44RDqK_O~xCQE9Ed5xLz-6f^0@L&w3aLnE9Y&2-Ku4(O-qI77mCsT)2~ zY|yc^lVqttDc)UH1z;g7G9aRYo>IBC%O*@xmWqrK$9uVpnD+6+=5|_Pk%gq28XznA zCkHd+aw>lY;LAyrQyj3XiM9_RTJyo3@bH~~n;#Hik$eAW9y8m$Q}0%bIFVLBEmlqP zLYY4Ai;RB#+n1^=eCM`^4JRJRRx6c}zf3w*wK9+D>2523?5}+o<1)=7I^g=IO}|Xn z<)g47Ma*RtF??FolPzW`nM;=Q$^=tXl`}zDGzDuimRw!ofB&PMnP z4)M2(s=M?@E1s@$SP2GUCqA@N6l_3R^Ug&?2MWp-$MtnBU`x5-wuoI-rsI*ku=LDS;`x6f*sELmlzrbpFHoNuJEl;o)rer#dc1 zu`fRyGRm1fQ&XK?tt!8a>rf!b)UjmQ6x_3(abJg1jqE_wTSB9I6mrOS49Rj?Hp|phwa%<*|QudpQA{<^xR5hS_`ro+)GKT4$5})q_*i zrfy?M=SmXp2H+V;(z(lfnqPBKJ~Nq%e6nU=6gnGK1ttHxBCZJ{)wP)JFTfMd_{`?L zm(~JWnuTsd<;|C=>5Z}+hs}=h*;(1KJoA5l0rsbV7fE>Xdo=K5e9ING*4^Bm$L!y$ z?}#W_-W<+LDJ0%4b-39^V>u);CC2pk_Tt?jrRm9A;7J@m4B}k#$Ov!Si+>x)H(sD4 zU%>)s0G$~@h=qXmxg#8(M8SfMi|zZ7K1B(j_xv}@A~zT!YO2Z(3gK{|I{URK(j2zr zv#hXHbKP{3fEI??v&bS4zObcpAte;!1kLvZWjOZXKjac8+1r!_e0}-^*nqp25^urH zVOal@KA4Xv==;i~ne`b19;SiJf@l_APE*S~U4$}>~P2u|2zb*0=vXZf@e|T9~L04nrZAncS=HkCE z>}g17?nUomG)$w@q6n}8)0AR@2{0+r`OozDr6d4ekZExLxIVmkNZrz&7i1S}9&s}T z_QoM~lptX;?f0i~bvD9W6#||BXr~k*w|goC_~)UA!nsK3^4D389H9D4;0hT@8dD8p zlZ26k-)bOE0L#en8B-7z8d6KX52*6X^IVp2a*&;LkTxs$)J#EZz@~*m>yeVcN>t&n z6u_B9h@*JH)2pJs|G96PIp}jB@x-PvRubT14!tEK(IRT~OecU%WLRew!0LS4BS->s zl>-GVjNoWHj3`1vKPh4eN$}-)*{YHhFyGoV#;}4f^=1B8hEt~<#lT9+zLxNUvJeF; zDPU_B$&&+YUpW?@10@&#CCb8@U)@x6yo#_w#ot5Y9epal_WEo=2DsRgZJMGTzEr}H zgY(yl%KaS|H@cbOOOj?$0qc1fKJp<~37iv6?4DyG8MdN$2!Q(wEA%H=$N>2LjFN2z z#v}HRxT3j9XIlkOj^LSGbI+kdW~zk-+@s2 zaR(mt;*v~wFFHy;j*#l*;}LF zlUVdJAZi1v*F)?=m90Y z`xs|a6D7jI|2FX~QB}S+!En$1;g327nP50~OIy3^tb_k8Mx?F%QV{pCM!Z*HZEZ<0 zG4U6_($;9!k9Y=X*U|AWvqVO_c4C#5M$0Uzcj3FqT_CUC)cUOT#L1U}MqD!weq3aL zf<~SH%0?-i&9xIt46JwAGCXd43p_jnDyLM)}qu~|5 z1E$+EliYzakhXE=#NcbIR%@v@9obqM6HKV?2< z2^^WWBO8f0*v9;OL24MBBtYGv9cH2$2`r5;4pP}LHH`3RPYOFV3_;?@U#2I*>v@!@ zDr7-W3R&-+ML`v>$#dM0wSL3F94kpm?h1OHSsz21r~N?&o{&o*$*|}*K(%{aeB{E4 z+e{V)pphwSicvW&$@Us-@+|r_&^jZ8O3*pIDyC!nIlq-W%4fMUnAGKwoN zDTjfw>6b$Jn~cyfJcw0b66`ar)GX?k#!el z$z<3z`)D}b9=_Ba;het2G_6S3I`Cj6$+^#=^<@ANws8;+>sCPsBKOWuwsXkM(U_Pb)~aQs&urGI*8CejMNV~7r+ zpjti|D(44lfZw!uGIm-p3;sDozN*5BJM6}rO{ACgir{PK2FIr8m#*vgGOo2fDu2V# z*tnjAz&vhnd~7frb(>7o_gwMuV!$6ZF(>ivQXVFh&f>(>WmlNFx| zIwaTgJlv;$au)06|2D`ho^ReyV>*}n=(MR|XQ^6pqgtBI*E`OxqEEz9ZAP{&$MG87 zc=Dh|NZM>;XC-`wK#4!mE7J|Khi1i^yFQopdTq@Pk*1lc*$_sp9e2yV?Tcx9Gc;I z6r0aaueEJtGtVwMh9DP9O;7q3`U{6Sel)k>`qN+FO#ZO3>i6`y{Ou>rlNJ_{{Zz{1 zGm!i>kG_~t^q7EKUrH$2Aru+N%3>eOxtafgH%8#oh9_2zL1Nk%>W66N^? zW}U>va^J{##n-$0lA&j2gn8mhL#KLZ%$eX=j=|%zo<;~cd8YQ@WZqb33CpHmh3Ke< zXET`|nh>yPwBPMnT`Zn6OJY?ZeB6pzuUbqfPkcoLD>D1Q8&Z~>61Qm5polz%!Imj4 zqv`7I&pmXp92U1{%+TgK6;vsnBB5)yS&=14?|vTPt-8nQ%gj{d&Tg{&Rb_>M+>&9BjJOCIbC?L*hdsTtxK#@(HM&>g|ijOnUm ztCpa7cXj<50r`xbxa%K+;+&4MVM6b^hdG)TtFgK1nUw0X%^Krh2rToch)Up4&yY`q zE)>UD3-MkkVr6gME8&RL!kMnHmfuLrr^>p05+$+4BVK!x*aTu6aY{a2S>9J&y!6Mo zcq$NwHH78c7g^Cq&OB8WKNOIqcy7v>YR(*1#%VQ*>Mt&a;gpFn9gk4ra-- zguEq)L|vG}nVo|jk+^TCr1Yxo>nY^CUbqYC=!G5P6X7!bz8x_&rgE0zgRXde z>#!e0>xB0Ze}?*x?*U2y88xIIBbx>4rj=olbiU#k_rwC)b>(!F%NFsmoIg_bnzI37 zGq&v~jk*W#+zzADTT(TS%2p~xpQvDNFQaXXOs~@~Jsj3|Q@B?vrmeA|koZim>GVQy z31njMSGpI9pg0}CR6R`e7nfS=>#tyJJ}nL?3c_dy4J_0(*KXF{sMsYWOqheyPiT2+ zUphoXY`1X6Z}t9FrG*yRruoZMSFNqwZ)gq#$Y~aD&MeaZd4nEwe!Sr7_;Z8d*pAJc zOvgffyIglGDIaW(Cbp^P6n@9pQ2HOf4jo#I@(M^aig=LM?z>m8Xw{#LnV`_6lU}NJ zrw<))AF+A|=ZIWQXu`(6rv5E}JWCT(7pxsoX(3`VGp}7aK21Zx<&ET3K3JwX)>TD5>~k zmLC2P7d-rmC*`?-WnqPrt+|Oprm) zTB(h8@=rQ!tGapyv4TQwbyKOv+&XsAHLl!wtnc>>9uI_T&7Gc%gnL$w2CDXI$}|4_ OfT_`W+{-hB=>G#5m$Tvk literal 0 HcmV?d00001 diff --git a/public/js/build/404.2df04b63.js b/public/js/build/404.de29fade.js similarity index 87% rename from public/js/build/404.2df04b63.js rename to public/js/build/404.de29fade.js index 570b3f9fa..a47d1b660 100644 --- a/public/js/build/404.2df04b63.js +++ b/public/js/build/404.de29fade.js @@ -1 +1 @@ -import{n}from"./app.62942df0.js";var r=function(){var e=this,t=e.$createElement;return e._self._c,e._m(0)},a=[function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"page-404"},[s("div",{staticClass:"flex-center position-ref full-height"},[s("div",{staticClass:"code"},[e._v("404")]),s("div",{staticClass:"message"},[e._v("Not Found")])])])}];const i={},_={};var o=n(i,r,a,!1,c,"7d7154a8",null,null);function c(e){for(let t in _)this[t]=_[t]}var v=function(){return o.exports}();export{v as default}; +import{n}from"./app.2163cd94.js";var r=function(){var e=this,t=e.$createElement;return e._self._c,e._m(0)},a=[function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"page-404"},[s("div",{staticClass:"flex-center position-ref full-height"},[s("div",{staticClass:"code"},[e._v("404")]),s("div",{staticClass:"message"},[e._v("Not Found")])])])}];const i={},_={};var o=n(i,r,a,!1,c,"7d7154a8",null,null);function c(e){for(let t in _)this[t]=_[t]}var v=function(){return o.exports}();export{v as default}; diff --git a/public/js/build/AceEditor.d782357c.js b/public/js/build/AceEditor.3445dfdf.js similarity index 98% rename from public/js/build/AceEditor.d782357c.js rename to public/js/build/AceEditor.3445dfdf.js index c6b0ffc40..ae1eb7b72 100644 --- a/public/js/build/AceEditor.d782357c.js +++ b/public/js/build/AceEditor.3445dfdf.js @@ -1 +1 @@ -import{m as h,n as l}from"./app.62942df0.js";const d={name:"AceEditor",props:{value:{default:""},options:{type:Object,default:()=>({})},theme:{type:String,default:"auto"},ext:{type:String,default:"txt"},height:{type:Number||null,default:null},width:{type:Number||null,default:null},wrap:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1}},render(e){return e("div",{class:"no-dark-content"})},data:()=>({code:"",editor:null,cursorPosition:{row:0,column:0},supportedModes:{Apache_Conf:["^htaccess|^htgroups|^htpasswd|^conf|htaccess|htgroups|htpasswd"],BatchFile:["bat|cmd"],C_Cpp:["cpp|c|cc|cxx|h|hh|hpp|ino"],CSharp:["cs"],CSS:["css"],Dockerfile:["^Dockerfile"],golang:["go|golang"],HTML:["html|htm|xhtml|vue|we|wpy"],Java:["java"],JavaScript:["js|jsm|jsx"],JSON:["json"],JSP:["jsp"],LESS:["less"],Lua:["lua"],Makefile:["^Makefile|^GNUmakefile|^makefile|^OCamlMakefile|make"],Markdown:["md|markdown"],MySQL:["mysql"],Nginx:["nginx|conf"],INI:["ini|conf|cfg|prefs"],ObjectiveC:["m|mm"],Perl:["pl|pm"],Perl6:["p6|pl6|pm6"],pgSQL:["pgsql"],PHP_Laravel_blade:["blade.php"],PHP:["php|inc|phtml|shtml|php3|php4|php5|phps|phpt|aw|ctp|module"],Powershell:["ps1"],Python:["py"],R:["r"],Ruby:["rb|ru|gemspec|rake|^Guardfile|^Rakefile|^Gemfile"],Rust:["rs"],SASS:["sass"],SCSS:["scss"],SH:["sh|bash|^.bashrc"],SQL:["sql"],SQLServer:["sqlserver"],Swift:["swift"],Text:["txt"],Typescript:["ts|typescript|str"],VBScript:["vbs|vb"],Verilog:["v|vh|sv|svh"],XML:["xml|rdf|rss|wsdl|xslt|atom|mathml|mml|xul|xbl|xaml|plist"],YAML:["yaml|yml"],Compress:["tar|zip|7z|rar|gz|arj|z"],images:["icon|jpg|jpeg|webp|png|bmp|gif|tif|emf"]}}),mounted(){$A.loadScriptS(["js/ace/ace.js","js/ace/mode-json.js"]).then(e=>{this.setSize(this.$el,{height:this.height,width:this.width}),this.editor=window.ace.edit(this.$el,{wrap:this.wrap,showPrintMargin:!1,readOnly:this.readOnly,keyboardHandler:"vscode"}),this.editor.session.setMode(`ace/mode/${this.getFileMode()}`),this.$emit("mounted",this.editor),this.editor.session.$worker&&this.editor.session.$worker.addEventListener("annotate",this.workerMessage,!1),this.setValue(this.value),this.editor.setOptions(this.options),this.editTheme&&this.editor.setTheme(`ace/theme/${this.editTheme}`),this.editor.commands.addCommand({name:"\u4FDD\u5B58\u6587\u4EF6",bindKey:{win:"Ctrl-S",mac:"Command-S"},exec:()=>{this.$emit("saveData")},readOnly:!1}),this.editor.getSession().on("change",()=>{this.code=this.editor.getValue(),this.$emit("input",this.code)})})},methods:{workerMessage({data:e}){this.cursorPosition=this.editor.selection.getCursor();const[t]=e;t&&t.type==="error"?this.$emit("validationFailed",t):this.$emit("change",this.editor.getValue())},setSize(e,{width:t=this.width,height:s=this.height}){e.style.width=t&&typeof t=="number"?`${t}px`:"100%",e.style.height=s&&typeof s=="number"?`${s}px`:"100%",this.$nextTick(()=>this.editor&&this.editor.resize())},setValue(e){typeof e=="string"&&this.editor&&(this.editor.setValue(e),this.editor.clearSelection())},getFileMode(){var e=this.ext||"text";for(var t in this.supportedModes)for(var s=this.supportedModes[t],r=s[0].split("|"),a=t.toLowerCase(),i=0;i({})},theme:{type:String,default:"auto"},ext:{type:String,default:"txt"},height:{type:Number||null,default:null},width:{type:Number||null,default:null},wrap:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1}},render(e){return e("div",{class:"no-dark-content"})},data:()=>({code:"",editor:null,cursorPosition:{row:0,column:0},supportedModes:{Apache_Conf:["^htaccess|^htgroups|^htpasswd|^conf|htaccess|htgroups|htpasswd"],BatchFile:["bat|cmd"],C_Cpp:["cpp|c|cc|cxx|h|hh|hpp|ino"],CSharp:["cs"],CSS:["css"],Dockerfile:["^Dockerfile"],golang:["go|golang"],HTML:["html|htm|xhtml|vue|we|wpy"],Java:["java"],JavaScript:["js|jsm|jsx"],JSON:["json"],JSP:["jsp"],LESS:["less"],Lua:["lua"],Makefile:["^Makefile|^GNUmakefile|^makefile|^OCamlMakefile|make"],Markdown:["md|markdown"],MySQL:["mysql"],Nginx:["nginx|conf"],INI:["ini|conf|cfg|prefs"],ObjectiveC:["m|mm"],Perl:["pl|pm"],Perl6:["p6|pl6|pm6"],pgSQL:["pgsql"],PHP_Laravel_blade:["blade.php"],PHP:["php|inc|phtml|shtml|php3|php4|php5|phps|phpt|aw|ctp|module"],Powershell:["ps1"],Python:["py"],R:["r"],Ruby:["rb|ru|gemspec|rake|^Guardfile|^Rakefile|^Gemfile"],Rust:["rs"],SASS:["sass"],SCSS:["scss"],SH:["sh|bash|^.bashrc"],SQL:["sql"],SQLServer:["sqlserver"],Swift:["swift"],Text:["txt"],Typescript:["ts|typescript|str"],VBScript:["vbs|vb"],Verilog:["v|vh|sv|svh"],XML:["xml|rdf|rss|wsdl|xslt|atom|mathml|mml|xul|xbl|xaml|plist"],YAML:["yaml|yml"],Compress:["tar|zip|7z|rar|gz|arj|z"],images:["icon|jpg|jpeg|webp|png|bmp|gif|tif|emf"]}}),mounted(){$A.loadScriptS(["js/ace/ace.js","js/ace/mode-json.js"]).then(e=>{this.setSize(this.$el,{height:this.height,width:this.width}),this.editor=window.ace.edit(this.$el,{wrap:this.wrap,showPrintMargin:!1,readOnly:this.readOnly,keyboardHandler:"vscode"}),this.editor.session.setMode(`ace/mode/${this.getFileMode()}`),this.$emit("mounted",this.editor),this.editor.session.$worker&&this.editor.session.$worker.addEventListener("annotate",this.workerMessage,!1),this.setValue(this.value),this.editor.setOptions(this.options),this.editTheme&&this.editor.setTheme(`ace/theme/${this.editTheme}`),this.editor.commands.addCommand({name:"\u4FDD\u5B58\u6587\u4EF6",bindKey:{win:"Ctrl-S",mac:"Command-S"},exec:()=>{this.$emit("saveData")},readOnly:!1}),this.editor.getSession().on("change",()=>{this.code=this.editor.getValue(),this.$emit("input",this.code)})})},methods:{workerMessage({data:e}){this.cursorPosition=this.editor.selection.getCursor();const[t]=e;t&&t.type==="error"?this.$emit("validationFailed",t):this.$emit("change",this.editor.getValue())},setSize(e,{width:t=this.width,height:s=this.height}){e.style.width=t&&typeof t=="number"?`${t}px`:"100%",e.style.height=s&&typeof s=="number"?`${s}px`:"100%",this.$nextTick(()=>this.editor&&this.editor.resize())},setValue(e){typeof e=="string"&&this.editor&&(this.editor.setValue(e),this.editor.clearSelection())},getFileMode(){var e=this.ext||"text";for(var t in this.supportedModes)for(var s=this.supportedModes[t],r=s[0].split("|"),a=t.toLowerCase(),i=0;i0},on:{click:t.onExport}},[t._v(t._s(t.$L("\u5BFC\u51FA")))])],1)],1)},i=[];const c={name:"ApproveExport",props:{value:{type:Boolean,default:!1}},data(){return{show:this.value,loadIng:0,formData:{proc_def_name:"",date:[],is_finished:"1"},procList:[]}},watch:{value(t){this.show=t},show(t){this.value!==t&&this.$emit("input",t)}},methods:{dateShortcuts(t){if(t==="prev")return[$A.getSpecifyDate("\u4E0A\u4E2A\u6708"),$A.getSpecifyDate("\u4E0A\u4E2A\u6708\u7ED3\u675F")];if(t==="this")return[$A.getSpecifyDate("\u672C\u6708"),$A.getSpecifyDate("\u672C\u6708\u7ED3\u675F")]},getProcName(){this.loadIng++,this.$store.dispatch("call",{url:"approve/procdef/all",method:"post"}).then(({data:t})=>{this.procList=t.rows}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.loadIng--})},onExport(){this.loadIng>0||(this.loadIng++,this.$store.dispatch("call",{url:"approve/export",data:this.formData}).then(({data:t})=>{this.show=!1,this.$store.dispatch("downUrl",{url:t.url})}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.loadIng--}))}}},r={};var p=n(c,l,i,!1,d,null,null,null);function d(t){for(let o in r)this[o]=r[o]}var _=function(){return p.exports}();export{_ as A}; diff --git a/public/js/build/CheckinExport.68b4950e.css b/public/js/build/ApproveExport.d0d486d1.css similarity index 100% rename from public/js/build/CheckinExport.68b4950e.css rename to public/js/build/ApproveExport.d0d486d1.css diff --git a/public/js/build/CheckinExport.6e4617d9.js b/public/js/build/CheckinExport.6e4617d9.js new file mode 100644 index 000000000..45d4928b5 --- /dev/null +++ b/public/js/build/CheckinExport.6e4617d9.js @@ -0,0 +1 @@ +import{U as m}from"./UserSelect.e1ef2c0e.js";import{n as r,m as h}from"./app.2163cd94.js";import{R as v}from"./ReportEdit.1e923da6.js";import{R as _}from"./ReportDetail.a5297308.js";import{D as $}from"./index.53736d9f.js";var f=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"team-management"},[e("div",{staticClass:"management-title"},[t._v(" "+t._s(t.$L("\u56E2\u961F\u7BA1\u7406"))+" "),e("div",{staticClass:"title-zoom",on:{click:function(a){t.minBox=!t.minBox}}},[t.minBox?e("i",{staticClass:"taskfont"},[t._v("\uE7D4")]):e("i",{staticClass:"taskfont"},[t._v("\uE7D3")])]),e("div",{staticClass:"title-icon"},[t.loadIng>0?e("Loading"):t._e()],1)]),e("div",{staticClass:"management-box",class:{"min-box":t.minBox}},[e("div",{staticClass:"management-department"},[e("ul",[e("li",{class:["level-1",t.departmentSelect===0?"active":""],on:{click:function(a){return t.onSelectDepartment(0)}}},[e("i",{staticClass:"taskfont department-icon"},[t._v("\uE766")]),e("div",{staticClass:"department-title"},[t._v(t._s(t.$L("\u9ED8\u8BA4\u90E8\u95E8")))]),e("EDropdown",{attrs:{size:"medium",trigger:"click"},on:{command:t.onOpDepartment}},[e("i",{staticClass:"taskfont department-menu",on:{click:function(a){a.stopPropagation()}}},[t._v("\uE6E9")]),e("EDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},[e("EDropdownItem",{attrs:{command:"add_0"}},[e("div",[t._v(t._s(t.$L("\u6DFB\u52A0\u5B50\u90E8\u95E8")))])])],1)],1)],1),t._l(t.departmentList,function(a){return e("li",{key:a.id,class:[`level-${a.level}`,t.departmentSelect===a.id?"active":""],on:{click:function(i){return t.onSelectDepartment(a.id)}}},[e("UserAvatar",{staticClass:"department-icon",attrs:{userid:a.owner_userid,size:20}},[e("p",[e("strong",[t._v(t._s(t.$L("\u90E8\u95E8\u8D1F\u8D23\u4EBA")))])])]),e("div",{staticClass:"department-title"},[t._v(t._s(a.name))]),e("EDropdown",{attrs:{size:"medium",trigger:"click"},on:{command:t.onOpDepartment}},[e("i",{staticClass:"taskfont department-menu",on:{click:function(i){i.stopPropagation()}}},[t._v("\uE6E9")]),e("EDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a.level<=2?e("EDropdownItem",{attrs:{command:`add_${a.id}`}},[e("div",[t._v(t._s(t.$L("\u6DFB\u52A0\u5B50\u90E8\u95E8")))])]):t._e(),e("EDropdownItem",{attrs:{command:`edit_${a.id}`}},[e("div",[t._v(t._s(t.$L("\u7F16\u8F91")))])]),e("EDropdownItem",{attrs:{command:`del_${a.id}`}},[e("div",{staticStyle:{color:"#f00"}},[t._v(t._s(t.$L("\u5220\u9664")))])])],1)],1)],1)})],2),e("div",{staticClass:"department-buttons"},[e("Button",{attrs:{type:"primary",icon:"md-add"},on:{click:function(a){return t.onShowDepartment(null)}}},[t._v(t._s(t.$L("\u65B0\u5EFA\u90E8\u95E8")))])],1)]),e("div",{staticClass:"management-user",style:t.userStyle},[e("div",{staticClass:"search-container lr"},[e("ul",[e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u5173\u952E\u8BCD"))+" ")]),e("div",{staticClass:"search-content"},[e("Input",{attrs:{placeholder:t.$L("\u90AE\u7BB1\u3001\u6635\u79F0\u3001\u804C\u4F4D"),clearable:""},model:{value:t.keys.key,callback:function(a){t.$set(t.keys,"key",a)},expression:"keys.key"}})],1)]),e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u8EAB\u4EFD"))+" ")]),e("div",{staticClass:"search-content"},[e("Select",{attrs:{placeholder:t.$L("\u5168\u90E8")},model:{value:t.keys.identity,callback:function(a){t.$set(t.keys,"identity",a)},expression:"keys.identity"}},[e("Option",{attrs:{value:""}},[t._v(t._s(t.$L("\u5168\u90E8")))]),e("Option",{attrs:{value:"admin"}},[t._v(t._s(t.$L("\u7BA1\u7406\u5458")))]),e("Option",{attrs:{value:"noadmin"}},[t._v(t._s(t.$L("\u975E\u7BA1\u7406\u5458")))]),e("Option",{attrs:{value:"temp"}},[t._v(t._s(t.$L("\u4E34\u65F6\u5E10\u53F7")))]),e("Option",{attrs:{value:"notemp"}},[t._v(t._s(t.$L("\u975E\u4E34\u65F6\u5E10\u53F7")))])],1)],1)]),e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u5728\u804C\u72B6\u6001"))+" ")]),e("div",{staticClass:"search-content"},[e("Select",{attrs:{placeholder:t.$L("\u5728\u804C")},model:{value:t.keys.disable,callback:function(a){t.$set(t.keys,"disable",a)},expression:"keys.disable"}},[e("Option",{attrs:{value:""}},[t._v(t._s(t.$L("\u5728\u804C")))]),e("Option",{attrs:{value:"yes"}},[t._v(t._s(t.$L("\u79BB\u804C")))]),e("Option",{attrs:{value:"all"}},[t._v(t._s(t.$L("\u5168\u90E8")))])],1)],1)]),t.checkinMac?e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("MAC\u5730\u5740"))+" ")]),e("div",{staticClass:"search-content"},[e("Input",{attrs:{placeholder:t.$L("MAC\u5730\u5740"),clearable:""},model:{value:t.keys.checkin_mac,callback:function(a){t.$set(t.keys,"checkin_mac",a)},expression:"keys.checkin_mac"}})],1)]):e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u90AE\u7BB1\u8BA4\u8BC1"))+" ")]),e("div",{staticClass:"search-content"},[e("Select",{attrs:{placeholder:t.$L("\u5168\u90E8")},model:{value:t.keys.email_verity,callback:function(a){t.$set(t.keys,"email_verity",a)},expression:"keys.email_verity"}},[e("Option",{attrs:{value:""}},[t._v(t._s(t.$L("\u5168\u90E8")))]),e("Option",{attrs:{value:"yes"}},[t._v(t._s(t.$L("\u5DF2\u90AE\u7BB1\u8BA4\u8BC1")))]),e("Option",{attrs:{value:"no"}},[t._v(t._s(t.$L("\u672A\u90AE\u7BB1\u8BA4\u8BC1")))])],1)],1)]),e("li",{staticClass:"search-button"},[e("Tooltip",{attrs:{theme:"light",placement:"bottom","transfer-class-name":"search-button-clear",transfer:""}},[e("Button",{attrs:{loading:t.loadIng>0,type:"primary",icon:"ios-search"},on:{click:t.onSearch}},[t._v(t._s(t.$L("\u641C\u7D22")))]),e("div",{attrs:{slot:"content"},slot:"content"},[t.keyIs?e("Button",{attrs:{type:"text"},on:{click:function(a){t.keyIs=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88\u7B5B\u9009")))]):e("Button",{attrs:{loading:t.loadIng>0,type:"text"},on:{click:t.getLists}},[t._v(t._s(t.$L("\u5237\u65B0")))])],1)],1)],1)])]),e("div",{staticClass:"table-page-box"},[e("Table",{attrs:{columns:t.columns,data:t.list,loading:t.loadIng>0,"no-data-text":t.$L(t.noText),stripe:""}}),e("Page",{attrs:{total:t.total,current:t.page,"page-size":t.pageSize,disabled:t.loadIng>0,simple:t.windowPortrait,"page-size-opts":[10,20,30,50,100],"show-elevator":"","show-sizer":"","show-total":""},on:{"on-change":t.setPage,"on-page-size-change":t.setPageSize}})],1)])]),e("Modal",{attrs:{title:t.$L(t.departmentData.id>0?"\u4FEE\u6539\u90E8\u95E8":"\u65B0\u5EFA\u90E8\u95E8"),"mask-closable":!1},model:{value:t.departmentShow,callback:function(a){t.departmentShow=a},expression:"departmentShow"}},[e("Form",{ref:"addProject",attrs:{model:t.departmentData,"label-width":"auto"},nativeOn:{submit:function(a){a.preventDefault()}}},[e("FormItem",{attrs:{prop:"name",label:t.$L("\u90E8\u95E8\u540D\u79F0")}},[e("Input",{attrs:{type:"text",placeholder:t.$L("\u8BF7\u8F93\u5165\u90E8\u95E8\u540D\u79F0")},model:{value:t.departmentData.name,callback:function(a){t.$set(t.departmentData,"name",a)},expression:"departmentData.name"}})],1),e("FormItem",{attrs:{prop:"parent_id",label:t.$L("\u4E0A\u7EA7\u90E8\u95E8")}},[e("Select",{attrs:{disabled:t.departmentParentDisabled,placeholder:t.$L("\u8BF7\u9009\u62E9\u4E0A\u7EA7\u90E8\u95E8")},model:{value:t.departmentData.parent_id,callback:function(a){t.$set(t.departmentData,"parent_id",a)},expression:"departmentData.parent_id"}},[e("Option",{attrs:{value:0}},[t._v(t._s(t.$L("\u9ED8\u8BA4\u90E8\u95E8")))]),t._l(t.departmentList,function(a,i){return a.parent_id==0&&a.id!=t.departmentData.id?e("Option",{key:i,attrs:{value:a.id,label:a.name}},[t._v("\xA0\xA0\xA0\xA0"+t._s(a.name))]):t._e()})],2),t.departmentParentDisabled?e("div",{staticClass:"form-tip",staticStyle:{"margin-bottom":"-16px"}},[t._v(t._s(t.$L("\u542B\u6709\u5B50\u90E8\u95E8\u65E0\u6CD5\u4FEE\u6539\u4E0A\u7EA7\u90E8\u95E8")))]):t._e()],1),e("FormItem",{attrs:{prop:"owner_userid",label:t.$L("\u90E8\u95E8\u8D1F\u8D23\u4EBA")}},[e("UserSelect",{attrs:{"multiple-max":1,title:t.$L("\u8BF7\u9009\u62E9\u90E8\u95E8\u8D1F\u8D23\u4EBA")},model:{value:t.departmentData.owner_userid,callback:function(a){t.$set(t.departmentData,"owner_userid",a)},expression:"departmentData.owner_userid"}})],1),t.departmentData.id==0?[e("Divider",{attrs:{orientation:"left"}},[t._v(t._s(t.$L("\u7FA4\u7EC4\u8BBE\u7F6E")))]),e("FormItem",{attrs:{prop:"dialog_group",label:t.$L("\u90E8\u95E8\u7FA4\u804A")}},[e("RadioGroup",{model:{value:t.departmentData.dialog_group,callback:function(a){t.$set(t.departmentData,"dialog_group",a)},expression:"departmentData.dialog_group"}},[e("Radio",{attrs:{label:"new"}},[t._v(t._s(t.$L("\u521B\u5EFA\u90E8\u95E8\u7FA4")))]),e("Radio",{attrs:{label:"use"}},[t._v(t._s(t.$L("\u4F7F\u7528\u73B0\u6709\u7FA4")))])],1)],1),t.departmentData.dialog_group==="use"?e("FormItem",{attrs:{prop:"dialog_useid",label:t.$L("\u9009\u62E9\u7FA4\u7EC4")}},[e("Select",{attrs:{filterable:"","remote-method":t.dialogRemote,placeholder:t.$L("\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22\u7FA4"),loading:t.dialogLoad},model:{value:t.departmentData.dialog_useid,callback:function(a){t.$set(t.departmentData,"dialog_useid",a)},expression:"departmentData.dialog_useid"}},t._l(t.dialogList,function(a,i){return e("Option",{key:i,attrs:{value:a.id,label:a.name}},[e("div",{staticClass:"team-department-add-dialog-group"},[e("div",{staticClass:"dialog-name"},[t._v(t._s(a.name))]),e("UserAvatar",{attrs:{userid:a.owner_id,size:20}})],1)])}),1),e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u4EC5\u652F\u6301\u9009\u62E9\u4E2A\u4EBA\u7FA4\u8F6C\u4E3A\u90E8\u95E8\u7FA4")))])],1):t._e()]:t._e()],2),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(a){t.departmentShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.departmentLoading>0},on:{click:t.onSaveDepartment}},[t._v(t._s(t.$L(t.departmentData.id>0?"\u4FDD\u5B58":"\u65B0\u5EFA")))])],1)],1),e("Modal",{attrs:{title:t.$L("\u4FEE\u6539\u7B7E\u5230MAC\u5730\u5740")},model:{value:t.checkinMacEditShow,callback:function(a){t.checkinMacEditShow=a},expression:"checkinMacEditShow"}},[e("Form",{attrs:{model:t.checkinMacEditData,"label-width":"auto"},nativeOn:{submit:function(a){a.preventDefault()}}},[e("Alert",{staticStyle:{"margin-bottom":"18px"},attrs:{type:"error"}},[t._v(t._s(t.$L(`\u6B63\u5728\u8FDB\u884C\u5E10\u53F7\u3010ID:${t.checkinMacEditData.userid}\uFF0C${t.checkinMacEditData.nickname}\u3011MAC\u5730\u5740\u4FEE\u6539\u3002`)))]),e("Row",{staticClass:"team-department-checkin-item"},[e("Col",{attrs:{span:"12"}},[t._v(t._s(t.$L("\u8BBE\u5907MAC\u5730\u5740")))]),e("Col",{attrs:{span:"12"}},[t._v(t._s(t.$L("\u5907\u6CE8")))])],1),t._l(t.checkinMacEditData.checkin_macs,function(a,i){return e("Row",{key:i,staticClass:"team-department-checkin-item"},[e("Col",{attrs:{span:"12"}},[e("Input",{attrs:{maxlength:20,placeholder:t.$L("\u8BF7\u8F93\u5165\u8BBE\u5907MAC\u5730\u5740"),clearable:""},on:{"on-clear":function(n){return t.delCheckinDatum(i)}},model:{value:a.mac,callback:function(n){t.$set(a,"mac",n)},expression:"item.mac"}})],1),e("Col",{attrs:{span:"12"}},[e("Input",{attrs:{maxlength:100,placeholder:t.$L("\u5907\u6CE8")},model:{value:a.remark,callback:function(n){t.$set(a,"remark",n)},expression:"item.remark"}})],1)],1)}),e("Button",{attrs:{type:"default",icon:"md-add"},on:{click:t.addCheckinDatum}},[t._v(t._s(t.$L("\u6DFB\u52A0\u8BBE\u5907")))])],2),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(a){t.checkinMacEditShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.checkinMacEditLoading>0},on:{click:function(a){return t.operationUser(t.checkinMacEditData,!0)}}},[t._v(t._s(t.$L("\u786E\u5B9A\u4FEE\u6539")))])],1)],1),e("Modal",{attrs:{title:t.$L("\u4FEE\u6539\u90E8\u95E8")},model:{value:t.departmentEditShow,callback:function(a){t.departmentEditShow=a},expression:"departmentEditShow"}},[e("Form",{attrs:{model:t.departmentEditData,"label-width":"auto"},nativeOn:{submit:function(a){a.preventDefault()}}},[e("Alert",{staticStyle:{"margin-bottom":"18px"},attrs:{type:"error"}},[t._v(t._s(t.$L(`\u6B63\u5728\u8FDB\u884C\u5E10\u53F7\u3010ID:${t.departmentEditData.userid}\uFF0C${t.departmentEditData.nickname}\u3011\u90E8\u95E8\u4FEE\u6539\u3002`)))]),e("FormItem",{attrs:{label:t.$L("\u4FEE\u6539\u90E8\u95E8")}},[e("Select",{attrs:{multiple:"","multiple-max":10,placeholder:t.$L("\u7559\u7A7A\u4E3A\u9ED8\u8BA4\u90E8\u95E8")},model:{value:t.departmentEditData.department,callback:function(a){t.$set(t.departmentEditData,"department",a)},expression:"departmentEditData.department"}},t._l(t.departmentList,function(a,i){return e("Option",{key:i,attrs:{value:a.id}},[t._v(t._s(a.name))])}),1)],1)],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(a){t.departmentEditShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.departmentEditLoading>0},on:{click:function(a){return t.operationUser(t.departmentEditData,!0)}}},[t._v(t._s(t.$L("\u786E\u5B9A\u4FEE\u6539")))])],1)],1),e("Modal",{attrs:{title:t.$L("\u64CD\u4F5C\u79BB\u804C")},model:{value:t.disableShow,callback:function(a){t.disableShow=a},expression:"disableShow"}},[e("Form",{attrs:{model:t.disableData,"label-width":"auto"},nativeOn:{submit:function(a){a.preventDefault()}}},[e("Alert",{staticStyle:{"margin-bottom":"18px"},attrs:{type:"error"}},[t._v(t._s(t.$L(`\u6B63\u5728\u8FDB\u884C\u5E10\u53F7\u3010ID:${t.disableData.userid}\uFF0C${t.disableData.nickname}\u3011\u79BB\u804C\u64CD\u4F5C\u3002`)))]),e("FormItem",{attrs:{label:t.$L("\u79BB\u804C\u65F6\u95F4")}},[e("DatePicker",{ref:"disableTime",staticStyle:{width:"100%"},attrs:{editable:!1,placeholder:t.$L("\u9009\u62E9\u79BB\u804C\u65F6\u95F4"),options:t.disableOptions,format:"yyyy/MM/dd HH:mm",type:"datetime"},model:{value:t.disableData.disable_time,callback:function(a){t.$set(t.disableData,"disable_time",a)},expression:"disableData.disable_time"}})],1),e("FormItem",{attrs:{label:t.$L("\u4EA4\u63A5\u4EBA")}},[e("UserSelect",{attrs:{"disabled-choice":[t.disableData.userid],"multiple-max":1,title:t.$L("\u9009\u62E9\u4EA4\u63A5\u4EBA")},model:{value:t.disableData.transfer_userid,callback:function(a){t.$set(t.disableData,"transfer_userid",a)},expression:"disableData.transfer_userid"}}),e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L(`${t.disableData.nickname} \u8D1F\u8D23\u7684\u90E8\u95E8\u3001\u9879\u76EE\u3001\u4EFB\u52A1\u548C\u6587\u4EF6\u5C06\u79FB\u4EA4\u7ED9\u4EA4\u63A5\u4EBA\uFF1B\u540C\u65F6\u9000\u51FA\u6240\u6709\u7FA4\uFF08\u5982\u679C\u662F\u7FA4\u4E3B\u5219\u8F6C\u8BA9\u7ED9\u4EA4\u63A5\u4EBA\uFF09`)))])],1)],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(a){t.disableShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Poptip",{staticStyle:{"margin-left":"8px"},attrs:{confirm:"",placement:"bottom","ok-text":t.$L("\u786E\u5B9A"),"cancel-text":t.$L("\u53D6\u6D88"),transfer:""},on:{"on-ok":function(a){return t.operationUser(t.disableData,!0)}}},[e("div",{attrs:{slot:"title"},slot:"title"},[e("p",[t._v(t._s(t.$L("\u6CE8\u610F\uFF1A\u79BB\u804C\u64CD\u4F5C\u4E0D\u53EF\u9006\uFF01")))])]),e("Button",{attrs:{type:"primary",loading:t.disableLoading>0}},[t._v(t._s(t.$L("\u786E\u5B9A\u79BB\u804C")))])],1)],1)],1)],1)},g=[];const k={name:"TeamManagement",components:{UserSelect:m},props:{checkinMac:{type:Boolean,default:!1}},data(){return{loadIng:0,minBox:!1,minWidth:0,keys:{},keyIs:!1,columns:[{title:"ID",key:"userid",width:80,render:(t,{row:s,column:e})=>t("TableAction",{props:{column:e,align:"left"}},[t("div",s.userid)])},{title:this.$L("\u90AE\u7BB1"),key:"email",minWidth:160,render:(t,{row:s})=>{const e=[t("AutoTip",s.email)],{email_verity:a,identity:i,disable_at:n,is_principal:u}=s;return a&&e.push(t("Icon",{props:{type:"md-mail"}})),u&&e.push(t("Tag",{props:{color:"blue"}},this.$L("\u8D1F\u8D23\u4EBA"))),i.includes("ldap")&&e.push(t("Tag",{props:{color:"orange"}},"LDAP")),i.includes("admin")&&e.push(t("Tag",{props:{color:"warning"}},this.$L("\u7BA1\u7406\u5458"))),i.includes("temp")&&e.push(t("Tag",{props:{color:"success"}},this.$L("\u4E34\u65F6"))),i.includes("disable")&&e.push(t("Tooltip",{props:{content:this.$L("\u79BB\u804C\u65F6\u95F4")+": "+n}},[t("Tag",{props:{color:"error"}},this.$L("\u79BB\u804C"))])),t("div",{class:"team-email"},e)}},{title:this.$L("\u7535\u8BDD"),key:"tel",minWidth:80,render:(t,{row:s})=>t("QuickEdit",{props:{value:s.tel},on:{"on-update":(e,a)=>{this.operationUser({userid:s.userid,tel:e},!0).finally(a)}}},[t("AutoTip",s.tel||"-")])},{title:this.$L("\u6635\u79F0"),key:"nickname",minWidth:80,render:(t,{row:s})=>t("QuickEdit",{props:{value:s.nickname_original},on:{"on-update":(e,a)=>{this.operationUser({userid:s.userid,nickname:e},!0).finally(a)}}},[t("AutoTip",s.nickname_original||"-")])},{title:this.$L("\u804C\u4F4D/\u804C\u79F0"),key:"profession",minWidth:80,render:(t,{row:s})=>t("QuickEdit",{props:{value:s.profession},on:{"on-update":(e,a)=>{this.operationUser({userid:s.userid,profession:e},!0).finally(a)}}},[t("AutoTip",s.profession||"-")])},{title:this.$L("\u90E8\u95E8"),key:"department",minWidth:80,render:(t,{row:s})=>{let e=[];if(s.department.some(a=>{const i=this.departmentList.find(n=>n.id==a);i&&e.push(i.name)}),e.length===0)return t("div",this.$L("\u9ED8\u8BA4\u90E8\u95E8"));{const a=[];return a.push(t("span",{domProps:{title:e[0]}},e[0])),e.length>1&&(e=e.splice(1),a.push(t("ETooltip",[t("div",{slot:"content",domProps:{innerHTML:e.join("
")}}),t("div",{class:"department-tag-num"},` +${e.length}`)]))),t("div",{class:"team-table-department-warp"},a)}}},{title:this.$L("\u6700\u540E\u5728\u7EBF"),key:"line_at",width:168},{title:this.$L("\u64CD\u4F5C"),align:"center",width:100,render:(t,s)=>{const e=s.row.identity,a=[];e.includes("admin")?a.push(t("EDropdownItem",{props:{command:"clearadmin"}},[t("div",this.$L("\u53D6\u6D88\u7BA1\u7406\u5458"))])):a.push(t("EDropdownItem",{props:{command:"setadmin"}},[t("div",this.$L("\u8BBE\u4E3A\u7BA1\u7406\u5458"))])),e.includes("temp")?a.push(t("EDropdownItem",{props:{command:"cleartemp"}},[t("div",this.$L("\u53D6\u6D88\u4E34\u65F6\u8EAB\u4EFD"))])):a.push(t("EDropdownItem",{props:{command:"settemp"}},[t("div",this.$L("\u8BBE\u4E3A\u4E34\u65F6\u5E10\u53F7"))])),a.push(t("EDropdownItem",{props:{command:"email"}},[t("div",this.$L("\u4FEE\u6539\u90AE\u7BB1"))])),a.push(t("EDropdownItem",{props:{command:"password"}},[t("div",this.$L("\u4FEE\u6539\u5BC6\u7801"))])),this.checkinMac&&a.push(t("EDropdownItem",{props:{command:"checkin_mac"}},[t("div",this.$L("\u4FEE\u6539MAC"))])),a.push(t("EDropdownItem",{props:{command:"department"}},[t("div",this.$L("\u4FEE\u6539\u90E8\u95E8"))])),e.includes("disable")?a.push(t("EDropdownItem",{props:{command:"cleardisable"},style:{color:"#f90"}},[t("div",this.$L("\u6062\u590D\u5E10\u53F7\uFF08\u5DF2\u79BB\u804C\uFF09"))])):a.push(t("EDropdownItem",{props:{command:"setdisable"},style:{color:"#f90"}},[t("div",this.$L("\u64CD\u4F5C\u79BB\u804C"))])),a.push(t("EDropdownItem",{props:{command:"delete"},style:{color:"red"}},[t("div",this.$L("\u5220\u9664"))]));const i=t("EDropdown",{props:{size:"small",trigger:"click"},on:{command:n=>{this.dropUser(n,s.row)}}},[t("Button",{props:{type:"primary",size:"small"},style:{fontSize:"12px"}},this.$L("\u64CD\u4F5C")),t("EDropdownMenu",{slot:"dropdown"},[a])]);return t("TableAction",{props:{column:s.column}},[i])}}],list:[],page:1,pageSize:20,total:0,noText:"",checkinMacEditShow:!1,checkinMacEditLoading:0,checkinMacEditData:{},departmentEditShow:!1,departmentEditLoading:0,departmentEditData:{},disableShow:!1,disableLoading:0,disableData:{},disableOptions:{shortcuts:[{text:"12:00",value(){return $A.Date($A.formatDate("Y-m-d 12:00:00"))},onClick:t=>{t.handlePickSuccess()}},{text:"17:00",value(){return $A.Date($A.formatDate("Y-m-d 17:00:00"))},onClick:t=>{t.handlePickSuccess()}},{text:"18:00",value(){return $A.Date($A.formatDate("Y-m-d 18:00:00"))},onClick:t=>{t.handlePickSuccess()}},{text:"19:00",value(){return $A.Date($A.formatDate("Y-m-d 19:00:00"))},onClick:t=>{t.handlePickSuccess()}},{text:this.$L("\u73B0\u5728"),value(){return new Date},onClick:t=>{t.handlePickSuccess()}}]},departmentShow:!1,departmentLoading:0,departmentSelect:-1,departmentData:{id:0,name:"",parent_id:0,owner_userid:[],dialog_group:"new",dialog_useid:0},departmentList:[],dialogLoad:!1,dialogList:[],nullCheckinDatum:{mac:"",remark:""}}},created(){this.checkinMac&&this.columns.splice(5,0,{title:this.$L("MAC\u5730\u5740"),key:"checkin_mac",minWidth:80,render:(t,{row:s})=>{let e=$A.cloneJSON(s.checkin_macs||[]);if(e.length===0)return t("div","-");{const a=n=>n.remark?`${n.mac} (${n.remark})`:n.mac,i=[];return i.push(t("AutoTip",a(e[0]))),e.length>1&&(e=e.splice(1),i.push(t("ETooltip",[t("div",{slot:"content",domProps:{innerHTML:e.map(n=>a(n)).join("
")}}),t("div",{class:"department-tag-num"},` +${e.length}`)]))),t("div",{class:"team-table-department-warp"},i)}}})},mounted(){this.getLists(),this.getDepartmentLists()},watch:{keyIs(t){t||(this.keys={},this.setPage(1))},departmentSelect(){this.setPage(1)},windowPortrait:{handler(t){this.minBox=t},immediate:!0},minBox:{handler(){this.$nextTick(t=>{this.$el&&this.$el.clientWidth>0&&(this.minWidth=this.$el.clientWidth)})},immediate:!0}},computed:{departmentParentDisabled(){return!!(this.departmentData.id>0&&this.departmentList.find(({parent_id:t})=>t==this.departmentData.id))},userStyle({minWidth:t,windowPortrait:s}){const e={};return t>0&&s&&(e.minWidth=t-40+"px"),e}},methods:{onSearch(){this.page=1,this.getLists()},getLists(){this.loadIng++,this.keyIs=$A.objImplode(this.keys)!="";let t=$A.cloneJSON(this.keys);this.departmentSelect>-1&&(t=Object.assign(t,{department:this.departmentSelect})),this.$store.dispatch("call",{url:"users/lists",data:{keys:t,get_checkin_mac:this.checkinMac?1:0,page:Math.max(this.page,1),pagesize:Math.max($A.runNum(this.pageSize),10)}}).then(({data:s})=>{this.page=s.current_page,this.total=s.total,this.list=s.data,this.noText="\u6CA1\u6709\u76F8\u5173\u7684\u6210\u5458"}).catch(()=>{this.noText="\u6570\u636E\u52A0\u8F7D\u5931\u8D25"}).finally(s=>{this.loadIng--})},setPage(t){this.page=t,this.getLists()},setPageSize(t){this.page=1,this.pageSize=t,this.getLists()},dropUser(t,s){switch(t){case"settemp":$A.modalConfirm({content:`\u4F60\u786E\u5B9A\u5C06\u3010ID:${s.userid}\uFF0C${s.nickname}\u3011\u8BBE\u4E3A\u4E34\u65F6\u5E10\u53F7\u5417\uFF1F\uFF08\u6CE8\uFF1A\u4E34\u65F6\u5E10\u53F7\u9650\u5236\u8BF7\u67E5\u770B\u7CFB\u7EDF\u8BBE\u7F6E\uFF09`,loading:!0,onOk:()=>this.operationUser({userid:s.userid,type:t})});break;case"cleartemp":$A.modalConfirm({content:`\u4F60\u786E\u5B9A\u53D6\u6D88\u3010ID:${s.userid}\uFF0C${s.nickname}\u3011\u4E34\u65F6\u8EAB\u4EFD\u5417\uFF1F`,loading:!0,onOk:()=>this.operationUser({userid:s.userid,type:t})});break;case"email":$A.modalInput({title:"\u4FEE\u6539\u90AE\u7BB1",placeholder:`\u8BF7\u8F93\u5165\u65B0\u7684\u90AE\u7BB1\uFF08${s.email}\uFF09`,onOk:a=>a?this.operationUser({userid:s.userid,email:a}):"\u8BF7\u8F93\u5165\u65B0\u7684\u90AE\u7BB1\u5730\u5740"});break;case"password":$A.modalInput({title:"\u4FEE\u6539\u5BC6\u7801",placeholder:"\u8BF7\u8F93\u5165\u65B0\u7684\u5BC6\u7801",onOk:a=>a?this.operationUser({userid:s.userid,password:a}):"\u8BF7\u8F93\u5165\u65B0\u7684\u5BC6\u7801"});break;case"checkin_mac":this.checkinMacEditData={type:"checkin_macs",userid:s.userid,nickname:s.nickname,checkin_macs:s.checkin_macs},this.checkinMacEditData.checkin_macs.length===0&&this.addCheckinDatum(),this.checkinMacEditShow=!0;break;case"department":let e=[];s.department.some(a=>{const i=this.departmentList.find(n=>n.id==a);i&&e.push(i.owner_userid===s.userid?`${i.name} (${this.$L("\u8D1F\u8D23\u4EBA")})`:i.name)}),this.departmentEditData={type:"department",userid:s.userid,nickname:s.nickname,department:s.department.map(a=>parseInt(a))},this.departmentEditShow=!0;break;case"setdisable":this.disableData={type:"setdisable",userid:s.userid,nickname:s.nickname},this.disableShow=!0;break;case"cleardisable":$A.modalConfirm({content:`\u4F60\u786E\u5B9A\u6062\u590D\u5DF2\u79BB\u804C\u5E10\u53F7\u3010ID:${s.userid}\uFF0C${s.nickname}\u3011\u5417\uFF1F\uFF08\u6CE8\uFF1A\u6B64\u64CD\u4F5C\u4EC5\u6062\u590D\u5E10\u53F7\u72B6\u6001\uFF0C\u65E0\u6CD5\u6062\u590D\u64CD\u4F5C\u79BB\u804C\u65F6\u79FB\u4EA4\u7684\u6570\u636E\uFF09`,loading:!0,onOk:()=>this.operationUser({userid:s.userid,type:t})});break;case"delete":$A.modalInput({title:`\u5220\u9664\u5E10\u53F7\u3010ID:${s.userid}\uFF0C${s.nickname}\u3011`,placeholder:"\u8BF7\u8F93\u5165\u5220\u9664\u539F\u56E0",okText:"\u786E\u5B9A\u5220\u9664",onOk:a=>a?this.operationUser({userid:s.userid,type:t,delete_reason:a}):"\u5220\u9664\u539F\u56E0\u4E0D\u80FD\u4E3A\u7A7A"});break;default:this.operationUser({userid:s.userid,type:t},!0);break}},operationUser(t,s){return new Promise((e,a)=>{t.type=="checkin_macs"?this.checkinMacEditLoading++:t.type=="department"?this.departmentEditLoading++:t.type=="setdisable"?this.disableLoading++:this.loadIng++,this.$store.dispatch("call",{url:"users/operation",data:t}).then(({msg:i})=>{$A.messageSuccess(i),this.getLists(),e(),t.type=="checkin_macs"?this.checkinMacEditShow=!1:t.type=="department"?this.departmentEditShow=!1:t.type=="setdisable"&&(this.disableShow=!1)}).catch(({msg:i})=>{s===!0&&$A.modalError(i),this.getLists(),a(i)}).finally(i=>{t.type=="checkin_macs"?this.checkinMacEditLoading--:t.type=="department"?this.departmentEditLoading--:t.type=="setdisable"?this.disableLoading--:this.loadIng--})})},getDepartmentLists(){this.departmentLoading++,this.$store.dispatch("call",{url:"users/department/list"}).then(({data:t})=>{this.departmentList=[],this.generateDepartmentList(t,0,1)}).finally(t=>{this.departmentLoading--})},generateDepartmentList(t,s,e){t.some(a=>{a.parent_id==s&&(this.departmentList.push(Object.assign(a,{level:e+1})),this.generateDepartmentList(t,a.id,e+1))})},onShowDepartment(t){this.departmentData=Object.assign({id:0,name:"",parent_id:0,owner_userid:[],dialog_group:"new"},t||{}),this.departmentShow=!0},onSaveDepartment(){this.departmentLoading++,this.$store.dispatch("call",{url:"users/department/add",data:Object.assign(this.departmentData,{owner_userid:this.departmentData.owner_userid[0]})}).then(({msg:t})=>{$A.messageSuccess(t),this.getDepartmentLists(),this.getLists(),this.departmentShow=!1}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.departmentLoading--})},onSelectDepartment(t){if(this.windowPortrait&&(this.minBox=!0),this.departmentSelect===t){this.departmentSelect=-1;return}this.departmentSelect=t},onOpDepartment(t){if($A.leftExists(t,"add_"))this.onShowDepartment({parent_id:parseInt(t.substr(4))});else if($A.leftExists(t,"edit_")){const s=this.departmentList.find(({id:e})=>e===parseInt(t.substr(5)));s&&this.onShowDepartment(s)}else if($A.leftExists(t,"del_")){const s=this.departmentList.find(({id:e})=>e===parseInt(t.substr(4)));s&&$A.modalConfirm({title:this.$L("\u5220\u9664\u90E8\u95E8"),content:`

${this.$L(`\u4F60\u786E\u5B9A\u8981\u5220\u9664\u3010${s.name}\u3011\u90E8\u95E8\u5417\uFF1F`)}
${this.$L("\u6CE8\u610F\uFF1A\u6B64\u64CD\u4F5C\u4E0D\u53EF\u6062\u590D\uFF0C\u90E8\u95E8\u4E0B\u7684\u6210\u5458\u5C06\u79FB\u81F3\u9ED8\u8BA4\u90E8\u95E8\u3002")}
`,language:!1,loading:!0,onOk:()=>new Promise((e,a)=>{this.$store.dispatch("call",{url:"users/department/del",data:{id:s.id}}).then(({msg:i})=>{s.id===this.departmentSelect&&(this.departmentSelect=-1),e(i),this.getDepartmentLists()}).catch(({msg:i})=>{a(i)})})})}},dialogRemote(t){t!==""?(this.dialogLoad=!0,this.$store.dispatch("call",{url:"dialog/group/searchuser",data:{key:t}}).then(({data:s})=>{this.dialogList=s.list}).finally(s=>{this.dialogLoad=!1})):this.dialogList=[]},addCheckinDatum(){this.checkinMacEditData.checkin_macs.push($A.cloneJSON(this.nullCheckinDatum))},delCheckinDatum(t){this.checkinMacEditData.checkin_macs.splice(t,1),this.checkinMacEditData.checkin_macs.length===0&&this.addCheckinDatum()}}},l={};var y=r(k,f,g,!1,L,null,null,null);function L(t){for(let s in l)this[s]=l[s]}var G=function(){return y.exports}(),b=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"report-list-wrap"},[e("div",{staticClass:"search-expand"},[e("div",{staticClass:"search-container lr"},[e("ul",[e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u6C47\u62A5\u7C7B\u578B"))+" ")]),e("div",{staticClass:"search-content"},[e("Select",{attrs:{placeholder:t.$L("\u5168\u90E8")},model:{value:t.keys.type,callback:function(a){t.$set(t.keys,"type",a)},expression:"keys.type"}},t._l(t.reportTypeList,function(a){return e("Option",{key:a.value,attrs:{value:a.value}},[t._v(t._s(a.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(a){t.$set(t.keys,"created_at",a)},expression:"keys.created_at"}})],1)]),e("li",{staticClass:"search-button"},[e("Tooltip",{attrs:{theme:"light",placement:"right","transfer-class-name":"search-button-clear",transfer:""}},[e("Button",{attrs:{loading:t.loadIng>0,type:"primary",icon:"ios-search"},on:{click:t.onSearch}},[t._v(t._s(t.$L("\u641C\u7D22")))]),e("div",{attrs:{slot:"content"},slot:"content"},[t.keyIs?e("Button",{attrs:{type:"text"},on:{click:function(a){t.keyIs=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88\u7B5B\u9009")))]):e("Button",{attrs:{loading:t.loadIng>0,type:"text"},on:{click:t.getLists}},[t._v(t._s(t.$L("\u5237\u65B0")))])],1)],1)],1)])]),e("div",{staticClass:"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)])},D=[];const w={name:"ReportMy",data(){return{loadIng:0,columns:[{title:this.$L("\u540D\u79F0"),key:"title",minWidth:180,render:(t,{row:s})=>t("AutoTip",s.title)},{title:this.$L("\u7C7B\u578B"),key:"type",align:"center",width:90},{title:this.$L("\u6C47\u62A5\u65F6\u95F4"),key:"created_at",align:"center",width:180},{title:this.$L("\u6C47\u62A5\u5BF9\u8C61"),key:"receives",align:"center",width:90,render:(t,{row:s})=>{if(s.receives.length===0)return t("div","-");const e=[];return s.receives.length<=2?s.receives.some(a=>{e.push(t("UserAvatar",{props:{size:22,userid:a}}))}):(e.push(t("UserAvatar",{props:{size:22,userid:s.receives[0]}})),e.push(t("div",{class:"more-avatar"},`+${s.receives.length-1}`))),t("div",{class:"report-table-avatar"},e)}},{title:this.$L("\u64CD\u4F5C"),align:"center",width:100,minWidth:100,render:(t,{column:s,row:e})=>e.id?t("TableAction",{props:{column:s,menu:[{icon:"md-create",action:"edit"},{icon:"md-eye",action:"view"}]},on:{action:a=>{a==="edit"?this.$emit("on-edit",e.id):a==="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)}}},o={};var S=r(w,b,D,!1,x,null,null,null);function x(t){for(let s in o)this[s]=o[s]}var I=function(){return S.exports}(),C=function(){var t=this,s=t.$createElement,e=t._self._c||s;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(a){t.$set(t.keys,"key",a)},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(a){t.$set(t.keys,"type",a)},expression:"keys.type"}},t._l(t.reportTypeList,function(a){return e("Option",{key:a.value,attrs:{value:a.value}},[t._v(t._s(a.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(a){t.$set(t.keys,"created_at",a)},expression:"keys.created_at"}})],1)]),e("li",{staticClass:"search-button"},[e("Tooltip",{attrs:{theme:"light",placement:"right","transfer-class-name":"search-button-clear",transfer:""}},[e("Button",{attrs:{loading:t.loadIng>0,type:"primary",icon:"ios-search"},on:{click:t.onSearch}},[t._v(t._s(t.$L("\u641C\u7D22")))]),e("div",{attrs:{slot:"content"},slot:"content"},[t.keyIs?e("Button",{attrs:{type:"text"},on:{click:function(a){t.keyIs=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88\u7B5B\u9009")))]):e("Button",{attrs:{loading:t.loadIng>0,type:"text"},on:{click:t.getLists}},[t._v(t._s(t.$L("\u5237\u65B0")))])],1)],1)],1)])]),e("div",{staticClass:"table-page-box"},[e("Table",{attrs:{columns:t.columns,data:t.lists,loading:t.loadIng>0,"no-data-text":t.$L(t.noDataText),stripe:""},on:{"on-selection-change":t.selectChange}}),e("div",{staticClass:"table-attach"},[e("div",{staticClass:"select-box"},[e("Select",{attrs:{disabled:t.selectIds.length==0,placeholder:t.$L("\u8BF7\u9009\u62E9"),transfer:""},on:{"on-change":function(a){t.groupSelect=!0}},model:{value:t.selectAction,callback:function(a){t.selectAction=a},expression:"selectAction"}},[e("Option",{attrs:{value:"read"}},[t._v(t._s(t.$L("\u6807\u8BB0\u5DF2\u8BFB")))]),e("Option",{attrs:{value:"unread"}},[t._v(t._s(t.$L("\u6807\u8BB0\u672A\u8BFB")))])],1),e("Button",{attrs:{loading:t.loadIng>0,type:"primary",disabled:t.selectAction==""||t.selectIds.length==0},on:{click:t.selectClick}},[t._v(t._s(t.$L("\u6267\u884C")))])],1),e("Page",{attrs:{total:t.listTotal,current:t.listPage,"page-size":t.listPageSize,disabled:t.loadIng>0,simple:t.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=[];const A={name:"ReportReceive",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:s})=>{let e=[];const a=s.receives_user.find(({userid:i})=>i==this.userId);return a&&a.pivot.read==0?e.push(t("Tag",{props:{color:"orange"},style:{flexShrink:0}},this.$L("\u672A\u8BFB")),t("AutoTip",s.title)):e.push(t("AutoTip",s.title)),t("div",{style:{display:"flex",alignItems:"center"}},e)}},{title:this.$L("\u7C7B\u578B"),key:"type",sortable:!0,width:90},{title:this.$L("\u63A5\u6536\u65F6\u95F4"),key:"receive_time",align:"center",sortable:!0,width:180},{title:this.$L("\u64CD\u4F5C"),align:"center",width:90,minWidth:90,render:(t,{column:s,row:e})=>e.id?t("TableAction",{props:{column:s,menu:[{icon:"md-eye",action:"view"}]},on:{action:a=>{if(a==="view"){this.$emit("on-view",e);const i=e.receives_user.find(({userid:n})=>n==this.userId);i&&this.$set(i.pivot,"read",1)}}}}):null}],lists:[],listPage:1,listTotal:0,listPageSize:20,noDataText:"\u6570\u636E\u52A0\u8F7D\u4E2D.....",keys:{},keyIs:!1,selectIds:[],selectAction:"",reportTypeList:[{value:"",label:this.$L("\u5168\u90E8")},{value:"weekly",label:this.$L("\u5468\u62A5")},{value:"daily",label:this.$L("\u65E5\u62A5")}]}},mounted(){this.getLists()},watch:{keyIs(t){t||(this.keys={},this.setPage(1))}},methods:{onSearch(){this.listPage=1,this.getLists()},getLists(){this.loadIng++,this.keyIs=$A.objImplode(this.keys)!="",this.$store.dispatch("call",{url:"report/receive",data:{keys:this.keys,page:Math.max(this.listPage,1),pagesize:Math.max($A.runNum(this.listPageSize),10)}}).then(({data:t})=>{this.lists=t.data,this.listTotal=t.total,this.noDataText="\u6CA1\u6709\u76F8\u5173\u7684\u6570\u636E"}).catch(({msg:t})=>{$A.messageError(t),this.noDataText="\u6570\u636E\u52A0\u8F7D\u5931\u8D25"}).finally(()=>{this.loadIng--})},setPage(t){this.listPage=t,this.getLists()},setPageSize(t){Math.max($A.runNum(this.listPageSize),10)!==t&&(this.listPageSize=t,this.getLists())},selectChange(t){this.selectIds=t.map(({id:s})=>s)},selectClick(){if(this.selectIds.length===0){$A.messageWarning("\u8BF7\u9009\u62E9\u7EBF\u8DEF");return}switch(this.selectAction){case"read":case"unread":this.readReport(this.selectIds,this.selectAction);break;default:$A.messageWarning("\u8BF7\u9009\u62E9\u6267\u884C\u65B9\u5F0F");break}},readReport(t,s){const e=s==="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((a,i)=>{this.$store.dispatch("call",{url:"report/mark",data:{id:t,action:s}}).then(({msg:n})=>{a(n),this.getLists(),this.$emit("on-read")}).catch(({msg:n})=>{i(n)})})})}}},c={};var M=r(A,C,E,!1,T,null,null,null);function T(t){for(let s in c)this[s]=c[s]}var P=function(){return M.exports}(),O=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"report"},[e("Tabs",{model:{value:t.reportTabs,callback:function(a){t.reportTabs=a},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(a){t.showDetailDrawer=a},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(a){t.showEditDrawer=a},expression:"showEditDrawer"}},[t.showEditDrawer?e("ReportEdit",{attrs:{id:t.reportId},on:{saveSuccess:t.saveSuccess}}):t._e()],1)],1)},z=[];const R={name:"Report",components:{DrawerOverlay:$,ReportEdit:v,ReportMy:I,ReportReceive:P,ReportDetail:_},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:s})=>{$A.messageSuccess(s),this.saveSuccess(t)})},computed:{...h(["reportUnreadNumber"])},watch:{reportTabs(t){this.$emit("input",t)}},methods:{tabRebder(t){return s=>t>0?s("div",[s("span",{class:"navbar-item-content"},this.$L("\u6536\u5230\u7684\u6C47\u62A5")),s("Badge",{class:"manage-box-report",props:{count:t}})]):s("div",[s("span",{class:"navbar-item-content"},this.$L("\u6536\u5230\u7684\u6C47\u62A5"))])},onView(t){if(this.detailData=t,this.$emit("on-read"),this.$Electron){let s={title:t.title,titleFixed:!0,parent:null,width:Math.min(window.screen.availWidth,1440),height:Math.min(window.screen.availHeight,900)};this.$Electron.sendMessage("windowRouter",{name:`report-detail-${t.id}`,path:`/single/report/detail/${t.id}`,force:!1,config:s})}else this.showDetailDrawer=!0},onRead(){this.$emit("on-read",0)},onEditReport(t){if(this.$Electron){let s={title:this.$L(t>0?"\u4FEE\u6539\u62A5\u544A":"\u65B0\u589E\u62A5\u544A"),parent:null,width:Math.min(window.screen.availWidth,1440),height:Math.min(window.screen.availHeight,900)};this.$Electron.sendMessage("windowRouter",{name:`report-edit-${t}`,path:`/single/report/edit/${t}`,force:!1,config:s})}else this.reportId=t,this.showEditDrawer=!0},saveSuccess(){this.reportId=0,this.reportTabs="my",this.showEditDrawer=!1,this.$refs.report&&this.$refs.report.getLists()}}},d={};var B=r(R,O,z,!1,U,null,null,null);function U(t){for(let s in d)this[s]=d[s]}var K=function(){return B.exports}(),F=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("Modal",{attrs:{title:t.$L("\u5BFC\u51FA\u7B7E\u5230\u6570\u636E"),"mask-closable":!1},model:{value:t.show,callback:function(a){t.show=a},expression:"show"}},[e("Form",{ref:"export",attrs:{model:t.formData,"label-width":"auto"},nativeOn:{submit:function(a){a.preventDefault()}}},[e("FormItem",{attrs:{label:t.$L("\u5BFC\u51FA\u6210\u5458")}},[e("UserSelect",{attrs:{"multiple-max":100,"avatar-name":"","show-disable":"",title:t.$L("\u8BF7\u9009\u62E9\u6210\u5458")},model:{value:t.formData.userid,callback:function(a){t.$set(t.formData,"userid",a)},expression:"formData.userid"}}),e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u6BCF\u6B21\u6700\u591A\u9009\u62E9\u5BFC\u51FA100\u4E2A\u6210\u5458")))])],1),e("FormItem",{attrs:{label:t.$L("\u7B7E\u5230\u65E5\u671F")}},[e("DatePicker",{staticStyle:{width:"100%"},attrs:{type:"daterange",format:"yyyy/MM/dd",placeholder:t.$L("\u8BF7\u9009\u62E9\u7B7E\u5230\u65E5\u671F")},model:{value:t.formData.date,callback:function(a){t.$set(t.formData,"date",a)},expression:"formData.date"}}),e("div",{staticClass:"form-tip checkin-export-quick-select"},[e("span",[t._v(t._s(t.$L("\u5FEB\u6377\u9009\u62E9"))+":")]),e("em",{on:{click:function(a){t.formData.date=t.dateShortcuts("prev")}}},[t._v(t._s(t.$L("\u4E0A\u4E2A\u6708")))]),e("em",{on:{click:function(a){t.formData.date=t.dateShortcuts("this")}}},[t._v(t._s(t.$L("\u8FD9\u4E2A\u6708")))])])],1),e("FormItem",{attrs:{label:t.$L("\u73ED\u6B21\u65F6\u95F4")}},[e("TimePicker",{staticStyle:{width:"100%"},attrs:{type:"timerange",format:"HH:mm",placeholder:t.$L("\u8BF7\u9009\u62E9\u73ED\u6B21\u65F6\u95F4")},model:{value:t.formData.time,callback:function(a){t.$set(t.formData,"time",a)},expression:"formData.time"}}),e("div",{staticClass:"form-tip checkin-export-quick-select"},[e("span",[t._v(t._s(t.$L("\u5FEB\u6377\u9009\u62E9"))+":")]),e("em",{on:{click:function(a){t.formData.time=["8:30","18:00"]}}},[t._v("8:30-18:00")]),e("em",{on:{click:function(a){t.formData.time=["9:00","18:00"]}}},[t._v("9:00-18:00")]),e("em",{on:{click:function(a){t.formData.time=["9:30","18:00"]}}},[t._v("9:30-18:30")])])],1)],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(a){t.show=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.loadIng>0},on:{click:t.onExport}},[t._v(t._s(t.$L("\u5BFC\u51FA")))])],1)],1)},W=[];const j={name:"CheckinExport",components:{UserSelect:m},props:{value:{type:Boolean,default:!1}},data(){return{show:this.value,loadIng:0,formData:{userid:[],date:[],time:[]}}},watch:{value(t){this.show=t},show(t){this.value!==t&&this.$emit("input",t)}},methods:{dateShortcuts(t){if(t==="prev")return[$A.getSpecifyDate("\u4E0A\u4E2A\u6708"),$A.getSpecifyDate("\u4E0A\u4E2A\u6708\u7ED3\u675F")];if(t==="this")return[$A.getSpecifyDate("\u672C\u6708"),$A.getSpecifyDate("\u672C\u6708\u7ED3\u675F")]},onExport(){this.loadIng>0||(this.loadIng++,this.$store.dispatch("call",{url:"system/checkin/export",data:this.formData}).then(({data:t})=>{this.show=!1,this.$store.dispatch("downUrl",{url:t.url})}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.loadIng--}))}}},p={};var N=r(j,F,W,!1,H,null,null,null);function H(t){for(let s in p)this[s]=p[s]}var X=function(){return N.exports}();export{X as C,K as R,G as T}; diff --git a/public/js/build/CheckinExport.afa6df9a.js b/public/js/build/CheckinExport.afa6df9a.js deleted file mode 100644 index 128c3fcb8..000000000 --- a/public/js/build/CheckinExport.afa6df9a.js +++ /dev/null @@ -1 +0,0 @@ -import{U as l}from"./UserSelect.4461eb56.js";import{n as d}from"./app.62942df0.js";var p=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"team-management"},[e("div",{staticClass:"management-title"},[t._v(" "+t._s(t.$L("\u56E2\u961F\u7BA1\u7406"))+" "),e("div",{staticClass:"title-zoom",on:{click:function(a){t.minBox=!t.minBox}}},[t.minBox?e("i",{staticClass:"taskfont"},[t._v("\uE7D4")]):e("i",{staticClass:"taskfont"},[t._v("\uE7D3")])]),e("div",{staticClass:"title-icon"},[t.loadIng>0?e("Loading"):t._e()],1)]),e("div",{staticClass:"management-box",class:{"min-box":t.minBox}},[e("div",{staticClass:"management-department"},[e("ul",[e("li",{class:["level-1",t.departmentSelect===0?"active":""],on:{click:function(a){return t.onSelectDepartment(0)}}},[e("i",{staticClass:"taskfont department-icon"},[t._v("\uE766")]),e("div",{staticClass:"department-title"},[t._v(t._s(t.$L("\u9ED8\u8BA4\u90E8\u95E8")))]),e("EDropdown",{attrs:{size:"medium",trigger:"click"},on:{command:t.onOpDepartment}},[e("i",{staticClass:"taskfont department-menu",on:{click:function(a){a.stopPropagation()}}},[t._v("\uE6E9")]),e("EDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},[e("EDropdownItem",{attrs:{command:"add_0"}},[e("div",[t._v(t._s(t.$L("\u6DFB\u52A0\u5B50\u90E8\u95E8")))])])],1)],1)],1),t._l(t.departmentList,function(a){return e("li",{key:a.id,class:[`level-${a.level}`,t.departmentSelect===a.id?"active":""],on:{click:function(i){return t.onSelectDepartment(a.id)}}},[e("UserAvatar",{staticClass:"department-icon",attrs:{userid:a.owner_userid,size:20}},[e("p",[e("strong",[t._v(t._s(t.$L("\u90E8\u95E8\u8D1F\u8D23\u4EBA")))])])]),e("div",{staticClass:"department-title"},[t._v(t._s(a.name))]),e("EDropdown",{attrs:{size:"medium",trigger:"click"},on:{command:t.onOpDepartment}},[e("i",{staticClass:"taskfont department-menu",on:{click:function(i){i.stopPropagation()}}},[t._v("\uE6E9")]),e("EDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a.level<=2?e("EDropdownItem",{attrs:{command:`add_${a.id}`}},[e("div",[t._v(t._s(t.$L("\u6DFB\u52A0\u5B50\u90E8\u95E8")))])]):t._e(),e("EDropdownItem",{attrs:{command:`edit_${a.id}`}},[e("div",[t._v(t._s(t.$L("\u7F16\u8F91")))])]),e("EDropdownItem",{attrs:{command:`del_${a.id}`}},[e("div",{staticStyle:{color:"#f00"}},[t._v(t._s(t.$L("\u5220\u9664")))])])],1)],1)],1)})],2),e("div",{staticClass:"department-buttons"},[e("Button",{attrs:{type:"primary",icon:"md-add"},on:{click:function(a){return t.onShowDepartment(null)}}},[t._v(t._s(t.$L("\u65B0\u5EFA\u90E8\u95E8")))])],1)]),e("div",{staticClass:"management-user",style:t.userStyle},[e("div",{staticClass:"search-container lr"},[e("ul",[e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u5173\u952E\u8BCD"))+" ")]),e("div",{staticClass:"search-content"},[e("Input",{attrs:{placeholder:t.$L("\u90AE\u7BB1\u3001\u6635\u79F0\u3001\u804C\u4F4D"),clearable:""},model:{value:t.keys.key,callback:function(a){t.$set(t.keys,"key",a)},expression:"keys.key"}})],1)]),e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u8EAB\u4EFD"))+" ")]),e("div",{staticClass:"search-content"},[e("Select",{attrs:{placeholder:t.$L("\u5168\u90E8")},model:{value:t.keys.identity,callback:function(a){t.$set(t.keys,"identity",a)},expression:"keys.identity"}},[e("Option",{attrs:{value:""}},[t._v(t._s(t.$L("\u5168\u90E8")))]),e("Option",{attrs:{value:"admin"}},[t._v(t._s(t.$L("\u7BA1\u7406\u5458")))]),e("Option",{attrs:{value:"noadmin"}},[t._v(t._s(t.$L("\u975E\u7BA1\u7406\u5458")))]),e("Option",{attrs:{value:"temp"}},[t._v(t._s(t.$L("\u4E34\u65F6\u5E10\u53F7")))]),e("Option",{attrs:{value:"notemp"}},[t._v(t._s(t.$L("\u975E\u4E34\u65F6\u5E10\u53F7")))])],1)],1)]),e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u5728\u804C\u72B6\u6001"))+" ")]),e("div",{staticClass:"search-content"},[e("Select",{attrs:{placeholder:t.$L("\u5728\u804C")},model:{value:t.keys.disable,callback:function(a){t.$set(t.keys,"disable",a)},expression:"keys.disable"}},[e("Option",{attrs:{value:""}},[t._v(t._s(t.$L("\u5728\u804C")))]),e("Option",{attrs:{value:"yes"}},[t._v(t._s(t.$L("\u79BB\u804C")))]),e("Option",{attrs:{value:"all"}},[t._v(t._s(t.$L("\u5168\u90E8")))])],1)],1)]),t.checkinMac?e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("MAC\u5730\u5740"))+" ")]),e("div",{staticClass:"search-content"},[e("Input",{attrs:{placeholder:t.$L("MAC\u5730\u5740"),clearable:""},model:{value:t.keys.checkin_mac,callback:function(a){t.$set(t.keys,"checkin_mac",a)},expression:"keys.checkin_mac"}})],1)]):e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u90AE\u7BB1\u8BA4\u8BC1"))+" ")]),e("div",{staticClass:"search-content"},[e("Select",{attrs:{placeholder:t.$L("\u5168\u90E8")},model:{value:t.keys.email_verity,callback:function(a){t.$set(t.keys,"email_verity",a)},expression:"keys.email_verity"}},[e("Option",{attrs:{value:""}},[t._v(t._s(t.$L("\u5168\u90E8")))]),e("Option",{attrs:{value:"yes"}},[t._v(t._s(t.$L("\u5DF2\u90AE\u7BB1\u8BA4\u8BC1")))]),e("Option",{attrs:{value:"no"}},[t._v(t._s(t.$L("\u672A\u90AE\u7BB1\u8BA4\u8BC1")))])],1)],1)]),e("li",{staticClass:"search-button"},[e("Tooltip",{attrs:{theme:"light",placement:"bottom","transfer-class-name":"search-button-clear",transfer:""}},[e("Button",{attrs:{loading:t.loadIng>0,type:"primary",icon:"ios-search"},on:{click:t.onSearch}},[t._v(t._s(t.$L("\u641C\u7D22")))]),e("div",{attrs:{slot:"content"},slot:"content"},[t.keyIs?e("Button",{attrs:{type:"text"},on:{click:function(a){t.keyIs=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88\u7B5B\u9009")))]):e("Button",{attrs:{loading:t.loadIng>0,type:"text"},on:{click:t.getLists}},[t._v(t._s(t.$L("\u5237\u65B0")))])],1)],1)],1)])]),e("div",{staticClass:"table-page-box"},[e("Table",{attrs:{columns:t.columns,data:t.list,loading:t.loadIng>0,"no-data-text":t.$L(t.noText),stripe:""}}),e("Page",{attrs:{total:t.total,current:t.page,"page-size":t.pageSize,disabled:t.loadIng>0,simple:t.windowPortrait,"page-size-opts":[10,20,30,50,100],"show-elevator":"","show-sizer":"","show-total":""},on:{"on-change":t.setPage,"on-page-size-change":t.setPageSize}})],1)])]),e("Modal",{attrs:{title:t.$L(t.departmentData.id>0?"\u4FEE\u6539\u90E8\u95E8":"\u65B0\u5EFA\u90E8\u95E8"),"mask-closable":!1},model:{value:t.departmentShow,callback:function(a){t.departmentShow=a},expression:"departmentShow"}},[e("Form",{ref:"addProject",attrs:{model:t.departmentData,"label-width":"auto"},nativeOn:{submit:function(a){a.preventDefault()}}},[e("FormItem",{attrs:{prop:"name",label:t.$L("\u90E8\u95E8\u540D\u79F0")}},[e("Input",{attrs:{type:"text",placeholder:t.$L("\u8BF7\u8F93\u5165\u90E8\u95E8\u540D\u79F0")},model:{value:t.departmentData.name,callback:function(a){t.$set(t.departmentData,"name",a)},expression:"departmentData.name"}})],1),e("FormItem",{attrs:{prop:"parent_id",label:t.$L("\u4E0A\u7EA7\u90E8\u95E8")}},[e("Select",{attrs:{disabled:t.departmentParentDisabled,placeholder:t.$L("\u8BF7\u9009\u62E9\u4E0A\u7EA7\u90E8\u95E8")},model:{value:t.departmentData.parent_id,callback:function(a){t.$set(t.departmentData,"parent_id",a)},expression:"departmentData.parent_id"}},[e("Option",{attrs:{value:0}},[t._v(t._s(t.$L("\u9ED8\u8BA4\u90E8\u95E8")))]),t._l(t.departmentList,function(a,i){return a.parent_id==0&&a.id!=t.departmentData.id?e("Option",{key:i,attrs:{value:a.id,label:a.name}},[t._v("\xA0\xA0\xA0\xA0"+t._s(a.name))]):t._e()})],2),t.departmentParentDisabled?e("div",{staticClass:"form-tip",staticStyle:{"margin-bottom":"-16px"}},[t._v(t._s(t.$L("\u542B\u6709\u5B50\u90E8\u95E8\u65E0\u6CD5\u4FEE\u6539\u4E0A\u7EA7\u90E8\u95E8")))]):t._e()],1),e("FormItem",{attrs:{prop:"owner_userid",label:t.$L("\u90E8\u95E8\u8D1F\u8D23\u4EBA")}},[e("UserSelect",{attrs:{"multiple-max":1,title:t.$L("\u8BF7\u9009\u62E9\u90E8\u95E8\u8D1F\u8D23\u4EBA")},model:{value:t.departmentData.owner_userid,callback:function(a){t.$set(t.departmentData,"owner_userid",a)},expression:"departmentData.owner_userid"}})],1),t.departmentData.id==0?[e("Divider",{attrs:{orientation:"left"}},[t._v(t._s(t.$L("\u7FA4\u7EC4\u8BBE\u7F6E")))]),e("FormItem",{attrs:{prop:"dialog_group",label:t.$L("\u90E8\u95E8\u7FA4\u804A")}},[e("RadioGroup",{model:{value:t.departmentData.dialog_group,callback:function(a){t.$set(t.departmentData,"dialog_group",a)},expression:"departmentData.dialog_group"}},[e("Radio",{attrs:{label:"new"}},[t._v(t._s(t.$L("\u521B\u5EFA\u90E8\u95E8\u7FA4")))]),e("Radio",{attrs:{label:"use"}},[t._v(t._s(t.$L("\u4F7F\u7528\u73B0\u6709\u7FA4")))])],1)],1),t.departmentData.dialog_group==="use"?e("FormItem",{attrs:{prop:"dialog_useid",label:t.$L("\u9009\u62E9\u7FA4\u7EC4")}},[e("Select",{attrs:{filterable:"","remote-method":t.dialogRemote,placeholder:t.$L("\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22\u7FA4"),loading:t.dialogLoad},model:{value:t.departmentData.dialog_useid,callback:function(a){t.$set(t.departmentData,"dialog_useid",a)},expression:"departmentData.dialog_useid"}},t._l(t.dialogList,function(a,i){return e("Option",{key:i,attrs:{value:a.id,label:a.name}},[e("div",{staticClass:"team-department-add-dialog-group"},[e("div",{staticClass:"dialog-name"},[t._v(t._s(a.name))]),e("UserAvatar",{attrs:{userid:a.owner_id,size:20}})],1)])}),1),e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u4EC5\u652F\u6301\u9009\u62E9\u4E2A\u4EBA\u7FA4\u8F6C\u4E3A\u90E8\u95E8\u7FA4")))])],1):t._e()]:t._e()],2),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(a){t.departmentShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.departmentLoading>0},on:{click:t.onSaveDepartment}},[t._v(t._s(t.$L(t.departmentData.id>0?"\u4FDD\u5B58":"\u65B0\u5EFA")))])],1)],1),e("Modal",{attrs:{title:t.$L("\u4FEE\u6539\u7B7E\u5230MAC\u5730\u5740")},model:{value:t.checkinMacEditShow,callback:function(a){t.checkinMacEditShow=a},expression:"checkinMacEditShow"}},[e("Form",{attrs:{model:t.checkinMacEditData,"label-width":"auto"},nativeOn:{submit:function(a){a.preventDefault()}}},[e("Alert",{staticStyle:{"margin-bottom":"18px"},attrs:{type:"error"}},[t._v(t._s(t.$L(`\u6B63\u5728\u8FDB\u884C\u5E10\u53F7\u3010ID:${t.checkinMacEditData.userid}\uFF0C${t.checkinMacEditData.nickname}\u3011MAC\u5730\u5740\u4FEE\u6539\u3002`)))]),e("Row",{staticClass:"team-department-checkin-item"},[e("Col",{attrs:{span:"12"}},[t._v(t._s(t.$L("\u8BBE\u5907MAC\u5730\u5740")))]),e("Col",{attrs:{span:"12"}},[t._v(t._s(t.$L("\u5907\u6CE8")))])],1),t._l(t.checkinMacEditData.checkin_macs,function(a,i){return e("Row",{key:i,staticClass:"team-department-checkin-item"},[e("Col",{attrs:{span:"12"}},[e("Input",{attrs:{maxlength:20,placeholder:t.$L("\u8BF7\u8F93\u5165\u8BBE\u5907MAC\u5730\u5740"),clearable:""},on:{"on-clear":function(n){return t.delCheckinDatum(i)}},model:{value:a.mac,callback:function(n){t.$set(a,"mac",n)},expression:"item.mac"}})],1),e("Col",{attrs:{span:"12"}},[e("Input",{attrs:{maxlength:100,placeholder:t.$L("\u5907\u6CE8")},model:{value:a.remark,callback:function(n){t.$set(a,"remark",n)},expression:"item.remark"}})],1)],1)}),e("Button",{attrs:{type:"default",icon:"md-add"},on:{click:t.addCheckinDatum}},[t._v(t._s(t.$L("\u6DFB\u52A0\u8BBE\u5907")))])],2),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(a){t.checkinMacEditShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.checkinMacEditLoading>0},on:{click:function(a){return t.operationUser(t.checkinMacEditData,!0)}}},[t._v(t._s(t.$L("\u786E\u5B9A\u4FEE\u6539")))])],1)],1),e("Modal",{attrs:{title:t.$L("\u4FEE\u6539\u90E8\u95E8")},model:{value:t.departmentEditShow,callback:function(a){t.departmentEditShow=a},expression:"departmentEditShow"}},[e("Form",{attrs:{model:t.departmentEditData,"label-width":"auto"},nativeOn:{submit:function(a){a.preventDefault()}}},[e("Alert",{staticStyle:{"margin-bottom":"18px"},attrs:{type:"error"}},[t._v(t._s(t.$L(`\u6B63\u5728\u8FDB\u884C\u5E10\u53F7\u3010ID:${t.departmentEditData.userid}\uFF0C${t.departmentEditData.nickname}\u3011\u90E8\u95E8\u4FEE\u6539\u3002`)))]),e("FormItem",{attrs:{label:t.$L("\u4FEE\u6539\u90E8\u95E8")}},[e("Select",{attrs:{multiple:"","multiple-max":10,placeholder:t.$L("\u7559\u7A7A\u4E3A\u9ED8\u8BA4\u90E8\u95E8")},model:{value:t.departmentEditData.department,callback:function(a){t.$set(t.departmentEditData,"department",a)},expression:"departmentEditData.department"}},t._l(t.departmentList,function(a,i){return e("Option",{key:i,attrs:{value:a.id}},[t._v(t._s(a.name))])}),1)],1)],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(a){t.departmentEditShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.departmentEditLoading>0},on:{click:function(a){return t.operationUser(t.departmentEditData,!0)}}},[t._v(t._s(t.$L("\u786E\u5B9A\u4FEE\u6539")))])],1)],1),e("Modal",{attrs:{title:t.$L("\u64CD\u4F5C\u79BB\u804C")},model:{value:t.disableShow,callback:function(a){t.disableShow=a},expression:"disableShow"}},[e("Form",{attrs:{model:t.disableData,"label-width":"auto"},nativeOn:{submit:function(a){a.preventDefault()}}},[e("Alert",{staticStyle:{"margin-bottom":"18px"},attrs:{type:"error"}},[t._v(t._s(t.$L(`\u6B63\u5728\u8FDB\u884C\u5E10\u53F7\u3010ID:${t.disableData.userid}\uFF0C${t.disableData.nickname}\u3011\u79BB\u804C\u64CD\u4F5C\u3002`)))]),e("FormItem",{attrs:{label:t.$L("\u79BB\u804C\u65F6\u95F4")}},[e("DatePicker",{ref:"disableTime",staticStyle:{width:"100%"},attrs:{editable:!1,placeholder:t.$L("\u9009\u62E9\u79BB\u804C\u65F6\u95F4"),options:t.disableOptions,format:"yyyy/MM/dd HH:mm",type:"datetime"},model:{value:t.disableData.disable_time,callback:function(a){t.$set(t.disableData,"disable_time",a)},expression:"disableData.disable_time"}})],1),e("FormItem",{attrs:{label:t.$L("\u4EA4\u63A5\u4EBA")}},[e("UserSelect",{attrs:{"disabled-choice":[t.disableData.userid],"multiple-max":1,title:t.$L("\u9009\u62E9\u4EA4\u63A5\u4EBA")},model:{value:t.disableData.transfer_userid,callback:function(a){t.$set(t.disableData,"transfer_userid",a)},expression:"disableData.transfer_userid"}}),e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L(`${t.disableData.nickname} \u8D1F\u8D23\u7684\u90E8\u95E8\u3001\u9879\u76EE\u3001\u4EFB\u52A1\u548C\u6587\u4EF6\u5C06\u79FB\u4EA4\u7ED9\u4EA4\u63A5\u4EBA\uFF1B\u540C\u65F6\u9000\u51FA\u6240\u6709\u7FA4\uFF08\u5982\u679C\u662F\u7FA4\u4E3B\u5219\u8F6C\u8BA9\u7ED9\u4EA4\u63A5\u4EBA\uFF09`)))])],1)],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(a){t.disableShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Poptip",{staticStyle:{"margin-left":"8px"},attrs:{confirm:"",placement:"bottom","ok-text":t.$L("\u786E\u5B9A"),"cancel-text":t.$L("\u53D6\u6D88"),transfer:""},on:{"on-ok":function(a){return t.operationUser(t.disableData,!0)}}},[e("div",{attrs:{slot:"title"},slot:"title"},[e("p",[t._v(t._s(t.$L("\u6CE8\u610F\uFF1A\u79BB\u804C\u64CD\u4F5C\u4E0D\u53EF\u9006\uFF01")))])]),e("Button",{attrs:{type:"primary",loading:t.disableLoading>0}},[t._v(t._s(t.$L("\u786E\u5B9A\u79BB\u804C")))])],1)],1)],1)],1)},m=[];const u={name:"TeamManagement",components:{UserSelect:l},props:{checkinMac:{type:Boolean,default:!1}},data(){return{loadIng:0,minBox:!1,minWidth:0,keys:{},keyIs:!1,columns:[{title:"ID",key:"userid",width:80,render:(t,{row:s,column:e})=>t("TableAction",{props:{column:e,align:"left"}},[t("div",s.userid)])},{title:this.$L("\u90AE\u7BB1"),key:"email",minWidth:160,render:(t,{row:s})=>{const e=[t("AutoTip",s.email)],{email_verity:a,identity:i,disable_at:n,is_principal:c}=s;return a&&e.push(t("Icon",{props:{type:"md-mail"}})),c&&e.push(t("Tag",{props:{color:"blue"}},this.$L("\u8D1F\u8D23\u4EBA"))),i.includes("ldap")&&e.push(t("Tag",{props:{color:"orange"}},"LDAP")),i.includes("admin")&&e.push(t("Tag",{props:{color:"warning"}},this.$L("\u7BA1\u7406\u5458"))),i.includes("temp")&&e.push(t("Tag",{props:{color:"success"}},this.$L("\u4E34\u65F6"))),i.includes("disable")&&e.push(t("Tooltip",{props:{content:this.$L("\u79BB\u804C\u65F6\u95F4")+": "+n}},[t("Tag",{props:{color:"error"}},this.$L("\u79BB\u804C"))])),t("div",{class:"team-email"},e)}},{title:this.$L("\u7535\u8BDD"),key:"tel",minWidth:80,render:(t,{row:s})=>t("QuickEdit",{props:{value:s.tel},on:{"on-update":(e,a)=>{this.operationUser({userid:s.userid,tel:e},!0).finally(a)}}},[t("AutoTip",s.tel||"-")])},{title:this.$L("\u6635\u79F0"),key:"nickname",minWidth:80,render:(t,{row:s})=>t("QuickEdit",{props:{value:s.nickname_original},on:{"on-update":(e,a)=>{this.operationUser({userid:s.userid,nickname:e},!0).finally(a)}}},[t("AutoTip",s.nickname_original||"-")])},{title:this.$L("\u804C\u4F4D/\u804C\u79F0"),key:"profession",minWidth:80,render:(t,{row:s})=>t("QuickEdit",{props:{value:s.profession},on:{"on-update":(e,a)=>{this.operationUser({userid:s.userid,profession:e},!0).finally(a)}}},[t("AutoTip",s.profession||"-")])},{title:this.$L("\u90E8\u95E8"),key:"department",minWidth:80,render:(t,{row:s})=>{let e=[];if(s.department.some(a=>{const i=this.departmentList.find(n=>n.id==a);i&&e.push(i.name)}),e.length===0)return t("div",this.$L("\u9ED8\u8BA4\u90E8\u95E8"));{const a=[];return a.push(t("span",{domProps:{title:e[0]}},e[0])),e.length>1&&(e=e.splice(1),a.push(t("ETooltip",[t("div",{slot:"content",domProps:{innerHTML:e.join("
")}}),t("div",{class:"department-tag-num"},` +${e.length}`)]))),t("div",{class:"team-table-department-warp"},a)}}},{title:this.$L("\u6700\u540E\u5728\u7EBF"),key:"line_at",width:168},{title:this.$L("\u64CD\u4F5C"),align:"center",width:100,render:(t,s)=>{const e=s.row.identity,a=[];e.includes("admin")?a.push(t("EDropdownItem",{props:{command:"clearadmin"}},[t("div",this.$L("\u53D6\u6D88\u7BA1\u7406\u5458"))])):a.push(t("EDropdownItem",{props:{command:"setadmin"}},[t("div",this.$L("\u8BBE\u4E3A\u7BA1\u7406\u5458"))])),e.includes("temp")?a.push(t("EDropdownItem",{props:{command:"cleartemp"}},[t("div",this.$L("\u53D6\u6D88\u4E34\u65F6\u8EAB\u4EFD"))])):a.push(t("EDropdownItem",{props:{command:"settemp"}},[t("div",this.$L("\u8BBE\u4E3A\u4E34\u65F6\u5E10\u53F7"))])),a.push(t("EDropdownItem",{props:{command:"email"}},[t("div",this.$L("\u4FEE\u6539\u90AE\u7BB1"))])),a.push(t("EDropdownItem",{props:{command:"password"}},[t("div",this.$L("\u4FEE\u6539\u5BC6\u7801"))])),this.checkinMac&&a.push(t("EDropdownItem",{props:{command:"checkin_mac"}},[t("div",this.$L("\u4FEE\u6539MAC"))])),a.push(t("EDropdownItem",{props:{command:"department"}},[t("div",this.$L("\u4FEE\u6539\u90E8\u95E8"))])),e.includes("disable")?a.push(t("EDropdownItem",{props:{command:"cleardisable"},style:{color:"#f90"}},[t("div",this.$L("\u6062\u590D\u5E10\u53F7\uFF08\u5DF2\u79BB\u804C\uFF09"))])):a.push(t("EDropdownItem",{props:{command:"setdisable"},style:{color:"#f90"}},[t("div",this.$L("\u64CD\u4F5C\u79BB\u804C"))])),a.push(t("EDropdownItem",{props:{command:"delete"},style:{color:"red"}},[t("div",this.$L("\u5220\u9664"))]));const i=t("EDropdown",{props:{size:"small",trigger:"click"},on:{command:n=>{this.dropUser(n,s.row)}}},[t("Button",{props:{type:"primary",size:"small"},style:{fontSize:"12px"}},this.$L("\u64CD\u4F5C")),t("EDropdownMenu",{slot:"dropdown"},[a])]);return t("TableAction",{props:{column:s.column}},[i])}}],list:[],page:1,pageSize:20,total:0,noText:"",checkinMacEditShow:!1,checkinMacEditLoading:0,checkinMacEditData:{},departmentEditShow:!1,departmentEditLoading:0,departmentEditData:{},disableShow:!1,disableLoading:0,disableData:{},disableOptions:{shortcuts:[{text:"12:00",value(){return $A.Date($A.formatDate("Y-m-d 12:00:00"))},onClick:t=>{t.handlePickSuccess()}},{text:"17:00",value(){return $A.Date($A.formatDate("Y-m-d 17:00:00"))},onClick:t=>{t.handlePickSuccess()}},{text:"18:00",value(){return $A.Date($A.formatDate("Y-m-d 18:00:00"))},onClick:t=>{t.handlePickSuccess()}},{text:"19:00",value(){return $A.Date($A.formatDate("Y-m-d 19:00:00"))},onClick:t=>{t.handlePickSuccess()}},{text:this.$L("\u73B0\u5728"),value(){return new Date},onClick:t=>{t.handlePickSuccess()}}]},departmentShow:!1,departmentLoading:0,departmentSelect:-1,departmentData:{id:0,name:"",parent_id:0,owner_userid:[],dialog_group:"new",dialog_useid:0},departmentList:[],dialogLoad:!1,dialogList:[],nullCheckinDatum:{mac:"",remark:""}}},created(){this.checkinMac&&this.columns.splice(5,0,{title:this.$L("MAC\u5730\u5740"),key:"checkin_mac",minWidth:80,render:(t,{row:s})=>{let e=$A.cloneJSON(s.checkin_macs||[]);if(e.length===0)return t("div","-");{const a=n=>n.remark?`${n.mac} (${n.remark})`:n.mac,i=[];return i.push(t("AutoTip",a(e[0]))),e.length>1&&(e=e.splice(1),i.push(t("ETooltip",[t("div",{slot:"content",domProps:{innerHTML:e.map(n=>a(n)).join("
")}}),t("div",{class:"department-tag-num"},` +${e.length}`)]))),t("div",{class:"team-table-department-warp"},i)}}})},mounted(){this.getLists(),this.getDepartmentLists()},watch:{keyIs(t){t||(this.keys={},this.setPage(1))},departmentSelect(){this.setPage(1)},windowPortrait:{handler(t){this.minBox=t},immediate:!0},minBox:{handler(){this.$nextTick(t=>{this.$el&&this.$el.clientWidth>0&&(this.minWidth=this.$el.clientWidth)})},immediate:!0}},computed:{departmentParentDisabled(){return!!(this.departmentData.id>0&&this.departmentList.find(({parent_id:t})=>t==this.departmentData.id))},userStyle({minWidth:t,windowPortrait:s}){const e={};return t>0&&s&&(e.minWidth=t-40+"px"),e}},methods:{onSearch(){this.page=1,this.getLists()},getLists(){this.loadIng++,this.keyIs=$A.objImplode(this.keys)!="";let t=$A.cloneJSON(this.keys);this.departmentSelect>-1&&(t=Object.assign(t,{department:this.departmentSelect})),this.$store.dispatch("call",{url:"users/lists",data:{keys:t,get_checkin_mac:this.checkinMac?1:0,page:Math.max(this.page,1),pagesize:Math.max($A.runNum(this.pageSize),10)}}).then(({data:s})=>{this.page=s.current_page,this.total=s.total,this.list=s.data,this.noText="\u6CA1\u6709\u76F8\u5173\u7684\u6210\u5458"}).catch(()=>{this.noText="\u6570\u636E\u52A0\u8F7D\u5931\u8D25"}).finally(s=>{this.loadIng--})},setPage(t){this.page=t,this.getLists()},setPageSize(t){this.page=1,this.pageSize=t,this.getLists()},dropUser(t,s){switch(t){case"settemp":$A.modalConfirm({content:`\u4F60\u786E\u5B9A\u5C06\u3010ID:${s.userid}\uFF0C${s.nickname}\u3011\u8BBE\u4E3A\u4E34\u65F6\u5E10\u53F7\u5417\uFF1F\uFF08\u6CE8\uFF1A\u4E34\u65F6\u5E10\u53F7\u9650\u5236\u8BF7\u67E5\u770B\u7CFB\u7EDF\u8BBE\u7F6E\uFF09`,loading:!0,onOk:()=>this.operationUser({userid:s.userid,type:t})});break;case"cleartemp":$A.modalConfirm({content:`\u4F60\u786E\u5B9A\u53D6\u6D88\u3010ID:${s.userid}\uFF0C${s.nickname}\u3011\u4E34\u65F6\u8EAB\u4EFD\u5417\uFF1F`,loading:!0,onOk:()=>this.operationUser({userid:s.userid,type:t})});break;case"email":$A.modalInput({title:"\u4FEE\u6539\u90AE\u7BB1",placeholder:`\u8BF7\u8F93\u5165\u65B0\u7684\u90AE\u7BB1\uFF08${s.email}\uFF09`,onOk:a=>a?this.operationUser({userid:s.userid,email:a}):"\u8BF7\u8F93\u5165\u65B0\u7684\u90AE\u7BB1\u5730\u5740"});break;case"password":$A.modalInput({title:"\u4FEE\u6539\u5BC6\u7801",placeholder:"\u8BF7\u8F93\u5165\u65B0\u7684\u5BC6\u7801",onOk:a=>a?this.operationUser({userid:s.userid,password:a}):"\u8BF7\u8F93\u5165\u65B0\u7684\u5BC6\u7801"});break;case"checkin_mac":this.checkinMacEditData={type:"checkin_macs",userid:s.userid,nickname:s.nickname,checkin_macs:s.checkin_macs},this.checkinMacEditData.checkin_macs.length===0&&this.addCheckinDatum(),this.checkinMacEditShow=!0;break;case"department":let e=[];s.department.some(a=>{const i=this.departmentList.find(n=>n.id==a);i&&e.push(i.owner_userid===s.userid?`${i.name} (${this.$L("\u8D1F\u8D23\u4EBA")})`:i.name)}),this.departmentEditData={type:"department",userid:s.userid,nickname:s.nickname,department:s.department.map(a=>parseInt(a))},this.departmentEditShow=!0;break;case"setdisable":this.disableData={type:"setdisable",userid:s.userid,nickname:s.nickname},this.disableShow=!0;break;case"cleardisable":$A.modalConfirm({content:`\u4F60\u786E\u5B9A\u6062\u590D\u5DF2\u79BB\u804C\u5E10\u53F7\u3010ID:${s.userid}\uFF0C${s.nickname}\u3011\u5417\uFF1F\uFF08\u6CE8\uFF1A\u6B64\u64CD\u4F5C\u4EC5\u6062\u590D\u5E10\u53F7\u72B6\u6001\uFF0C\u65E0\u6CD5\u6062\u590D\u64CD\u4F5C\u79BB\u804C\u65F6\u79FB\u4EA4\u7684\u6570\u636E\uFF09`,loading:!0,onOk:()=>this.operationUser({userid:s.userid,type:t})});break;case"delete":$A.modalInput({title:`\u5220\u9664\u5E10\u53F7\u3010ID:${s.userid}\uFF0C${s.nickname}\u3011`,placeholder:"\u8BF7\u8F93\u5165\u5220\u9664\u539F\u56E0",okText:"\u786E\u5B9A\u5220\u9664",onOk:a=>a?this.operationUser({userid:s.userid,type:t,delete_reason:a}):"\u5220\u9664\u539F\u56E0\u4E0D\u80FD\u4E3A\u7A7A"});break;default:this.operationUser({userid:s.userid,type:t},!0);break}},operationUser(t,s){return new Promise((e,a)=>{t.type=="checkin_macs"?this.checkinMacEditLoading++:t.type=="department"?this.departmentEditLoading++:t.type=="setdisable"?this.disableLoading++:this.loadIng++,this.$store.dispatch("call",{url:"users/operation",data:t}).then(({msg:i})=>{$A.messageSuccess(i),this.getLists(),e(),t.type=="checkin_macs"?this.checkinMacEditShow=!1:t.type=="department"?this.departmentEditShow=!1:t.type=="setdisable"&&(this.disableShow=!1)}).catch(({msg:i})=>{s===!0&&$A.modalError(i),this.getLists(),a(i)}).finally(i=>{t.type=="checkin_macs"?this.checkinMacEditLoading--:t.type=="department"?this.departmentEditLoading--:t.type=="setdisable"?this.disableLoading--:this.loadIng--})})},getDepartmentLists(){this.departmentLoading++,this.$store.dispatch("call",{url:"users/department/list"}).then(({data:t})=>{this.departmentList=[],this.generateDepartmentList(t,0,1)}).finally(t=>{this.departmentLoading--})},generateDepartmentList(t,s,e){t.some(a=>{a.parent_id==s&&(this.departmentList.push(Object.assign(a,{level:e+1})),this.generateDepartmentList(t,a.id,e+1))})},onShowDepartment(t){this.departmentData=Object.assign({id:0,name:"",parent_id:0,owner_userid:[],dialog_group:"new"},t||{}),this.departmentShow=!0},onSaveDepartment(){this.departmentLoading++,this.$store.dispatch("call",{url:"users/department/add",data:Object.assign(this.departmentData,{owner_userid:this.departmentData.owner_userid[0]})}).then(({msg:t})=>{$A.messageSuccess(t),this.getDepartmentLists(),this.getLists(),this.departmentShow=!1}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.departmentLoading--})},onSelectDepartment(t){if(this.windowPortrait&&(this.minBox=!0),this.departmentSelect===t){this.departmentSelect=-1;return}this.departmentSelect=t},onOpDepartment(t){if($A.leftExists(t,"add_"))this.onShowDepartment({parent_id:parseInt(t.substr(4))});else if($A.leftExists(t,"edit_")){const s=this.departmentList.find(({id:e})=>e===parseInt(t.substr(5)));s&&this.onShowDepartment(s)}else if($A.leftExists(t,"del_")){const s=this.departmentList.find(({id:e})=>e===parseInt(t.substr(4)));s&&$A.modalConfirm({title:this.$L("\u5220\u9664\u90E8\u95E8"),content:`
${this.$L(`\u4F60\u786E\u5B9A\u8981\u5220\u9664\u3010${s.name}\u3011\u90E8\u95E8\u5417\uFF1F`)}
${this.$L("\u6CE8\u610F\uFF1A\u6B64\u64CD\u4F5C\u4E0D\u53EF\u6062\u590D\uFF0C\u90E8\u95E8\u4E0B\u7684\u6210\u5458\u5C06\u79FB\u81F3\u9ED8\u8BA4\u90E8\u95E8\u3002")}
`,language:!1,loading:!0,onOk:()=>new Promise((e,a)=>{this.$store.dispatch("call",{url:"users/department/del",data:{id:s.id}}).then(({msg:i})=>{s.id===this.departmentSelect&&(this.departmentSelect=-1),e(i),this.getDepartmentLists()}).catch(({msg:i})=>{a(i)})})})}},dialogRemote(t){t!==""?(this.dialogLoad=!0,this.$store.dispatch("call",{url:"dialog/group/searchuser",data:{key:t}}).then(({data:s})=>{this.dialogList=s.list}).finally(s=>{this.dialogLoad=!1})):this.dialogList=[]},addCheckinDatum(){this.checkinMacEditData.checkin_macs.push($A.cloneJSON(this.nullCheckinDatum))},delCheckinDatum(t){this.checkinMacEditData.checkin_macs.splice(t,1),this.checkinMacEditData.checkin_macs.length===0&&this.addCheckinDatum()}}},r={};var h=d(u,p,m,!1,_,null,null,null);function _(t){for(let s in r)this[s]=r[s]}var b=function(){return h.exports}(),f=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("Modal",{attrs:{title:t.$L("\u5BFC\u51FA\u7B7E\u5230\u6570\u636E"),"mask-closable":!1},model:{value:t.show,callback:function(a){t.show=a},expression:"show"}},[e("Form",{ref:"export",attrs:{model:t.formData,"label-width":"auto"},nativeOn:{submit:function(a){a.preventDefault()}}},[e("FormItem",{attrs:{label:t.$L("\u5BFC\u51FA\u6210\u5458")}},[e("UserSelect",{attrs:{"multiple-max":100,"avatar-name":"","show-disable":"",title:t.$L("\u8BF7\u9009\u62E9\u6210\u5458")},model:{value:t.formData.userid,callback:function(a){t.$set(t.formData,"userid",a)},expression:"formData.userid"}}),e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u6BCF\u6B21\u6700\u591A\u9009\u62E9\u5BFC\u51FA100\u4E2A\u6210\u5458")))])],1),e("FormItem",{attrs:{label:t.$L("\u7B7E\u5230\u65E5\u671F")}},[e("DatePicker",{staticStyle:{width:"100%"},attrs:{type:"daterange",format:"yyyy/MM/dd",placeholder:t.$L("\u8BF7\u9009\u62E9\u7B7E\u5230\u65E5\u671F")},model:{value:t.formData.date,callback:function(a){t.$set(t.formData,"date",a)},expression:"formData.date"}}),e("div",{staticClass:"form-tip checkin-export-quick-select"},[e("span",[t._v(t._s(t.$L("\u5FEB\u6377\u9009\u62E9"))+":")]),e("em",{on:{click:function(a){t.formData.date=t.dateShortcuts("prev")}}},[t._v(t._s(t.$L("\u4E0A\u4E2A\u6708")))]),e("em",{on:{click:function(a){t.formData.date=t.dateShortcuts("this")}}},[t._v(t._s(t.$L("\u8FD9\u4E2A\u6708")))])])],1),e("FormItem",{attrs:{label:t.$L("\u73ED\u6B21\u65F6\u95F4")}},[e("TimePicker",{staticStyle:{width:"100%"},attrs:{type:"timerange",format:"HH:mm",placeholder:t.$L("\u8BF7\u9009\u62E9\u73ED\u6B21\u65F6\u95F4")},model:{value:t.formData.time,callback:function(a){t.$set(t.formData,"time",a)},expression:"formData.time"}}),e("div",{staticClass:"form-tip checkin-export-quick-select"},[e("span",[t._v(t._s(t.$L("\u5FEB\u6377\u9009\u62E9"))+":")]),e("em",{on:{click:function(a){t.formData.time=["8:30","18:00"]}}},[t._v("8:30-18:00")]),e("em",{on:{click:function(a){t.formData.time=["9:00","18:00"]}}},[t._v("9:00-18:00")]),e("em",{on:{click:function(a){t.formData.time=["9:30","18:00"]}}},[t._v("9:30-18:30")])])],1)],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(a){t.show=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.loadIng>0},on:{click:t.onExport}},[t._v(t._s(t.$L("\u5BFC\u51FA")))])],1)],1)},v=[];const $={name:"CheckinExport",components:{UserSelect:l},props:{value:{type:Boolean,default:!1}},data(){return{show:this.value,loadIng:0,formData:{userid:[],date:[],time:[]}}},watch:{value(t){this.show=t},show(t){this.value!==t&&this.$emit("input",t)}},methods:{dateShortcuts(t){if(t==="prev")return[$A.getSpecifyDate("\u4E0A\u4E2A\u6708"),$A.getSpecifyDate("\u4E0A\u4E2A\u6708\u7ED3\u675F")];if(t==="this")return[$A.getSpecifyDate("\u672C\u6708"),$A.getSpecifyDate("\u672C\u6708\u7ED3\u675F")]},onExport(){this.loadIng>0||(this.loadIng++,this.$store.dispatch("call",{url:"system/checkin/export",data:this.formData}).then(({data:t})=>{this.show=!1,this.$store.dispatch("downUrl",{url:t.url})}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.loadIng--}))}}},o={};var k=d($,f,v,!1,g,null,null,null);function g(t){for(let s in o)this[s]=o[s]}var y=function(){return k.exports}();export{y as C,b as T}; diff --git a/public/js/build/DialogWrapper.ac0f8460.js b/public/js/build/DialogWrapper.ea811790.js similarity index 95% rename from public/js/build/DialogWrapper.ac0f8460.js rename to public/js/build/DialogWrapper.ea811790.js index 66f2456a5..5f410cd70 100644 --- a/public/js/build/DialogWrapper.ac0f8460.js +++ b/public/js/build/DialogWrapper.ea811790.js @@ -1,4 +1,4 @@ -import{n as Kt,g as qu,c as Ya,m as Wn,a as Nl,b as _i,d as Yu,e as zu,r as $u,V as Hu,i as Vu}from"./app.62942df0.js";import{l as za}from"./longpress.43ca7fd9.js";import{D as Wu}from"./index.3365c35a.js";import{U as Ol}from"./UserSelect.4461eb56.js";import{I as Ku}from"./ImgUpload.582cd84e.js";import Qu from"./details.f0e7c74d.js";var Xu=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"common-circle",style:e.style,attrs:{"data-id":e.percent}},[n("svg",{attrs:{viewBox:"0 0 28 28"}},[n("g",{attrs:{fill:"none","fill-rule":"evenodd"}},[n("path",{staticClass:"common-circle-path",attrs:{d:"M-500-100h997V48h-997z"}}),n("g",{attrs:{"fill-rule":"nonzero"}},[n("path",{staticClass:"common-circle-g-path-ring",attrs:{"stroke-width":"3",d:"M14 25.5c6.351 0 11.5-5.149 11.5-11.5S20.351 2.5 14 2.5 2.5 7.649 2.5 14 7.649 25.5 14 25.5z"}}),n("path",{staticClass:"common-circle-g-path-core",attrs:{d:e.arc(e.args)}})])])])])},ju=[];const Zu={name:"WCircle",props:{percent:{type:Number,default:0},size:{type:Number,default:120}},computed:{style(){let{size:e}=this;return this.isNumeric(e)&&(e+="px"),{width:e,height:e}},args(){const{percent:e}=this;let t=Math.min(360,360/100*e);return t==360?t=0:t==0&&(t=360),{x:14,y:14,r:14,start:360,end:t}}},methods:{isNumeric(e){return e!==""&&!isNaN(parseFloat(e))&&isFinite(e)},point(e,t,n,r){return[(e+Math.sin(r)*n).toFixed(2),(t-Math.cos(r)*n).toFixed(2)]},full(e,t,n,r){return r<=0?`M ${e-n} ${t} A ${n} ${n} 0 1 1 ${e+n} ${t} A ${n} ${n} 1 1 1 ${e-n} ${t} Z`:`M ${e-n} ${t} A ${n} ${n} 0 1 1 ${e+n} ${t} A ${n} ${n} 1 1 1 ${e-n} ${t} M ${e-r} ${t} A ${r} ${r} 0 1 1 ${e+r} ${t} A ${r} ${r} 1 1 1 ${e-r} ${t} Z`},part(e,t,n,r,a,l){const[u,c]=[a/360*2*Math.PI,l/360*2*Math.PI],d=[this.point(e,t,r,u),this.point(e,t,n,u),this.point(e,t,n,c),this.point(e,t,r,c)],g=c-u>Math.PI?"1":"0";return`M ${d[0][0]} ${d[0][1]} L ${d[1][0]} ${d[1][1]} A ${n} ${n} 0 ${g} 1 ${d[2][0]} ${d[2][1]} L ${d[3][0]} ${d[3][1]} A ${r} ${r} 0 ${g} 0 ${d[0][0]} ${d[0][1]} Z`},arc(e){const{x:t=0,y:n=0}=e;let{R:r=0,r:a=0,start:l,end:u}=e;return[r,a]=[Math.max(r,a),Math.min(r,a)],r<=0?"":l!==+l||u!==+u?this.full(t,n,r,a):Math.abs(l-u)<1e-6?"":Math.abs(l-u)%360<1e-6?this.full(t,n,r,a):([l,u]=[l%360,u%360],l>u&&(u+=360),this.part(t,n,r,a,l,u))}}},vs={};var Ju=Kt(Zu,Xu,ju,!1,ed,null,null,null);function ed(e){for(let t in vs)this[t]=vs[t]}var td=function(){return Ju.exports}();var Ze={};const nd="\xC1",rd="\xE1",id="\u0102",ad="\u0103",od="\u223E",sd="\u223F",ld="\u223E\u0333",cd="\xC2",ud="\xE2",dd="\xB4",_d="\u0410",pd="\u0430",md="\xC6",fd="\xE6",gd="\u2061",hd="\u{1D504}",Ed="\u{1D51E}",Sd="\xC0",bd="\xE0",vd="\u2135",Td="\u2135",yd="\u0391",Cd="\u03B1",Rd="\u0100",Nd="\u0101",Od="\u2A3F",Ad="&",Id="&",Dd="\u2A55",xd="\u2A53",wd="\u2227",Md="\u2A5C",Ld="\u2A58",kd="\u2A5A",Pd="\u2220",Bd="\u29A4",Fd="\u2220",Ud="\u29A8",Gd="\u29A9",qd="\u29AA",Yd="\u29AB",zd="\u29AC",$d="\u29AD",Hd="\u29AE",Vd="\u29AF",Wd="\u2221",Kd="\u221F",Qd="\u22BE",Xd="\u299D",jd="\u2222",Zd="\xC5",Jd="\u237C",e_="\u0104",t_="\u0105",n_="\u{1D538}",r_="\u{1D552}",i_="\u2A6F",a_="\u2248",o_="\u2A70",s_="\u224A",l_="\u224B",c_="'",u_="\u2061",d_="\u2248",__="\u224A",p_="\xC5",m_="\xE5",f_="\u{1D49C}",g_="\u{1D4B6}",h_="\u2254",E_="*",S_="\u2248",b_="\u224D",v_="\xC3",T_="\xE3",y_="\xC4",C_="\xE4",R_="\u2233",N_="\u2A11",O_="\u224C",A_="\u03F6",I_="\u2035",D_="\u223D",x_="\u22CD",w_="\u2216",M_="\u2AE7",L_="\u22BD",k_="\u2305",P_="\u2306",B_="\u2305",F_="\u23B5",U_="\u23B6",G_="\u224C",q_="\u0411",Y_="\u0431",z_="\u201E",$_="\u2235",H_="\u2235",V_="\u2235",W_="\u29B0",K_="\u03F6",Q_="\u212C",X_="\u212C",j_="\u0392",Z_="\u03B2",J_="\u2136",ep="\u226C",tp="\u{1D505}",np="\u{1D51F}",rp="\u22C2",ip="\u25EF",ap="\u22C3",op="\u2A00",sp="\u2A01",lp="\u2A02",cp="\u2A06",up="\u2605",dp="\u25BD",_p="\u25B3",pp="\u2A04",mp="\u22C1",fp="\u22C0",gp="\u290D",hp="\u29EB",Ep="\u25AA",Sp="\u25B4",bp="\u25BE",vp="\u25C2",Tp="\u25B8",yp="\u2423",Cp="\u2592",Rp="\u2591",Np="\u2593",Op="\u2588",Ap="=\u20E5",Ip="\u2261\u20E5",Dp="\u2AED",xp="\u2310",wp="\u{1D539}",Mp="\u{1D553}",Lp="\u22A5",kp="\u22A5",Pp="\u22C8",Bp="\u29C9",Fp="\u2510",Up="\u2555",Gp="\u2556",qp="\u2557",Yp="\u250C",zp="\u2552",$p="\u2553",Hp="\u2554",Vp="\u2500",Wp="\u2550",Kp="\u252C",Qp="\u2564",Xp="\u2565",jp="\u2566",Zp="\u2534",Jp="\u2567",em="\u2568",tm="\u2569",nm="\u229F",rm="\u229E",im="\u22A0",am="\u2518",om="\u255B",sm="\u255C",lm="\u255D",cm="\u2514",um="\u2558",dm="\u2559",_m="\u255A",pm="\u2502",mm="\u2551",fm="\u253C",gm="\u256A",hm="\u256B",Em="\u256C",Sm="\u2524",bm="\u2561",vm="\u2562",Tm="\u2563",ym="\u251C",Cm="\u255E",Rm="\u255F",Nm="\u2560",Om="\u2035",Am="\u02D8",Im="\u02D8",Dm="\xA6",xm="\u{1D4B7}",wm="\u212C",Mm="\u204F",Lm="\u223D",km="\u22CD",Pm="\u29C5",Bm="\\",Fm="\u27C8",Um="\u2022",Gm="\u2022",qm="\u224E",Ym="\u2AAE",zm="\u224F",$m="\u224E",Hm="\u224F",Vm="\u0106",Wm="\u0107",Km="\u2A44",Qm="\u2A49",Xm="\u2A4B",jm="\u2229",Zm="\u22D2",Jm="\u2A47",ef="\u2A40",tf="\u2145",nf="\u2229\uFE00",rf="\u2041",af="\u02C7",of="\u212D",sf="\u2A4D",lf="\u010C",cf="\u010D",uf="\xC7",df="\xE7",_f="\u0108",pf="\u0109",mf="\u2230",ff="\u2A4C",gf="\u2A50",hf="\u010A",Ef="\u010B",Sf="\xB8",bf="\xB8",vf="\u29B2",Tf="\xA2",yf="\xB7",Cf="\xB7",Rf="\u{1D520}",Nf="\u212D",Of="\u0427",Af="\u0447",If="\u2713",Df="\u2713",xf="\u03A7",wf="\u03C7",Mf="\u02C6",Lf="\u2257",kf="\u21BA",Pf="\u21BB",Bf="\u229B",Ff="\u229A",Uf="\u229D",Gf="\u2299",qf="\xAE",Yf="\u24C8",zf="\u2296",$f="\u2295",Hf="\u2297",Vf="\u25CB",Wf="\u29C3",Kf="\u2257",Qf="\u2A10",Xf="\u2AEF",jf="\u29C2",Zf="\u2232",Jf="\u201D",e0="\u2019",t0="\u2663",n0="\u2663",r0=":",i0="\u2237",a0="\u2A74",o0="\u2254",s0="\u2254",l0=",",c0="@",u0="\u2201",d0="\u2218",_0="\u2201",p0="\u2102",m0="\u2245",f0="\u2A6D",g0="\u2261",h0="\u222E",E0="\u222F",S0="\u222E",b0="\u{1D554}",v0="\u2102",T0="\u2210",y0="\u2210",C0="\xA9",R0="\xA9",N0="\u2117",O0="\u2233",A0="\u21B5",I0="\u2717",D0="\u2A2F",x0="\u{1D49E}",w0="\u{1D4B8}",M0="\u2ACF",L0="\u2AD1",k0="\u2AD0",P0="\u2AD2",B0="\u22EF",F0="\u2938",U0="\u2935",G0="\u22DE",q0="\u22DF",Y0="\u21B6",z0="\u293D",$0="\u2A48",H0="\u2A46",V0="\u224D",W0="\u222A",K0="\u22D3",Q0="\u2A4A",X0="\u228D",j0="\u2A45",Z0="\u222A\uFE00",J0="\u21B7",eg="\u293C",tg="\u22DE",ng="\u22DF",rg="\u22CE",ig="\u22CF",ag="\xA4",og="\u21B6",sg="\u21B7",lg="\u22CE",cg="\u22CF",ug="\u2232",dg="\u2231",_g="\u232D",pg="\u2020",mg="\u2021",fg="\u2138",gg="\u2193",hg="\u21A1",Eg="\u21D3",Sg="\u2010",bg="\u2AE4",vg="\u22A3",Tg="\u290F",yg="\u02DD",Cg="\u010E",Rg="\u010F",Ng="\u0414",Og="\u0434",Ag="\u2021",Ig="\u21CA",Dg="\u2145",xg="\u2146",wg="\u2911",Mg="\u2A77",Lg="\xB0",kg="\u2207",Pg="\u0394",Bg="\u03B4",Fg="\u29B1",Ug="\u297F",Gg="\u{1D507}",qg="\u{1D521}",Yg="\u2965",zg="\u21C3",$g="\u21C2",Hg="\xB4",Vg="\u02D9",Wg="\u02DD",Kg="`",Qg="\u02DC",Xg="\u22C4",jg="\u22C4",Zg="\u22C4",Jg="\u2666",eh="\u2666",th="\xA8",nh="\u2146",rh="\u03DD",ih="\u22F2",ah="\xF7",oh="\xF7",sh="\u22C7",lh="\u22C7",ch="\u0402",uh="\u0452",dh="\u231E",_h="\u230D",ph="$",mh="\u{1D53B}",fh="\u{1D555}",gh="\xA8",hh="\u02D9",Eh="\u20DC",Sh="\u2250",bh="\u2251",vh="\u2250",Th="\u2238",yh="\u2214",Ch="\u22A1",Rh="\u2306",Nh="\u222F",Oh="\xA8",Ah="\u21D3",Ih="\u21D0",Dh="\u21D4",xh="\u2AE4",wh="\u27F8",Mh="\u27FA",Lh="\u27F9",kh="\u21D2",Ph="\u22A8",Bh="\u21D1",Fh="\u21D5",Uh="\u2225",Gh="\u2913",qh="\u2193",Yh="\u2193",zh="\u21D3",$h="\u21F5",Hh="\u0311",Vh="\u21CA",Wh="\u21C3",Kh="\u21C2",Qh="\u2950",Xh="\u295E",jh="\u2956",Zh="\u21BD",Jh="\u295F",eE="\u2957",tE="\u21C1",nE="\u21A7",rE="\u22A4",iE="\u2910",aE="\u231F",oE="\u230C",sE="\u{1D49F}",lE="\u{1D4B9}",cE="\u0405",uE="\u0455",dE="\u29F6",_E="\u0110",pE="\u0111",mE="\u22F1",fE="\u25BF",gE="\u25BE",hE="\u21F5",EE="\u296F",SE="\u29A6",bE="\u040F",vE="\u045F",TE="\u27FF",yE="\xC9",CE="\xE9",RE="\u2A6E",NE="\u011A",OE="\u011B",AE="\xCA",IE="\xEA",DE="\u2256",xE="\u2255",wE="\u042D",ME="\u044D",LE="\u2A77",kE="\u0116",PE="\u0117",BE="\u2251",FE="\u2147",UE="\u2252",GE="\u{1D508}",qE="\u{1D522}",YE="\u2A9A",zE="\xC8",$E="\xE8",HE="\u2A96",VE="\u2A98",WE="\u2A99",KE="\u2208",QE="\u23E7",XE="\u2113",jE="\u2A95",ZE="\u2A97",JE="\u0112",eS="\u0113",tS="\u2205",nS="\u2205",rS="\u25FB",iS="\u2205",aS="\u25AB",oS="\u2004",sS="\u2005",lS="\u2003",cS="\u014A",uS="\u014B",dS="\u2002",_S="\u0118",pS="\u0119",mS="\u{1D53C}",fS="\u{1D556}",gS="\u22D5",hS="\u29E3",ES="\u2A71",SS="\u03B5",bS="\u0395",vS="\u03B5",TS="\u03F5",yS="\u2256",CS="\u2255",RS="\u2242",NS="\u2A96",OS="\u2A95",AS="\u2A75",IS="=",DS="\u2242",xS="\u225F",wS="\u21CC",MS="\u2261",LS="\u2A78",kS="\u29E5",PS="\u2971",BS="\u2253",FS="\u212F",US="\u2130",GS="\u2250",qS="\u2A73",YS="\u2242",zS="\u0397",$S="\u03B7",HS="\xD0",VS="\xF0",WS="\xCB",KS="\xEB",QS="\u20AC",XS="!",jS="\u2203",ZS="\u2203",JS="\u2130",eb="\u2147",tb="\u2147",nb="\u2252",rb="\u0424",ib="\u0444",ab="\u2640",ob="\uFB03",sb="\uFB00",lb="\uFB04",cb="\u{1D509}",ub="\u{1D523}",db="\uFB01",_b="\u25FC",pb="\u25AA",mb="fj",fb="\u266D",gb="\uFB02",hb="\u25B1",Eb="\u0192",Sb="\u{1D53D}",bb="\u{1D557}",vb="\u2200",Tb="\u2200",yb="\u22D4",Cb="\u2AD9",Rb="\u2131",Nb="\u2A0D",Ob="\xBD",Ab="\u2153",Ib="\xBC",Db="\u2155",xb="\u2159",wb="\u215B",Mb="\u2154",Lb="\u2156",kb="\xBE",Pb="\u2157",Bb="\u215C",Fb="\u2158",Ub="\u215A",Gb="\u215D",qb="\u215E",Yb="\u2044",zb="\u2322",$b="\u{1D4BB}",Hb="\u2131",Vb="\u01F5",Wb="\u0393",Kb="\u03B3",Qb="\u03DC",Xb="\u03DD",jb="\u2A86",Zb="\u011E",Jb="\u011F",ev="\u0122",tv="\u011C",nv="\u011D",rv="\u0413",iv="\u0433",av="\u0120",ov="\u0121",sv="\u2265",lv="\u2267",cv="\u2A8C",uv="\u22DB",dv="\u2265",_v="\u2267",pv="\u2A7E",mv="\u2AA9",fv="\u2A7E",gv="\u2A80",hv="\u2A82",Ev="\u2A84",Sv="\u22DB\uFE00",bv="\u2A94",vv="\u{1D50A}",Tv="\u{1D524}",yv="\u226B",Cv="\u22D9",Rv="\u22D9",Nv="\u2137",Ov="\u0403",Av="\u0453",Iv="\u2AA5",Dv="\u2277",xv="\u2A92",wv="\u2AA4",Mv="\u2A8A",Lv="\u2A8A",kv="\u2A88",Pv="\u2269",Bv="\u2A88",Fv="\u2269",Uv="\u22E7",Gv="\u{1D53E}",qv="\u{1D558}",Yv="`",zv="\u2265",$v="\u22DB",Hv="\u2267",Vv="\u2AA2",Wv="\u2277",Kv="\u2A7E",Qv="\u2273",Xv="\u{1D4A2}",jv="\u210A",Zv="\u2273",Jv="\u2A8E",eT="\u2A90",tT="\u2AA7",nT="\u2A7A",rT=">",iT=">",aT="\u226B",oT="\u22D7",sT="\u2995",lT="\u2A7C",cT="\u2A86",uT="\u2978",dT="\u22D7",_T="\u22DB",pT="\u2A8C",mT="\u2277",fT="\u2273",gT="\u2269\uFE00",hT="\u2269\uFE00",ET="\u02C7",ST="\u200A",bT="\xBD",vT="\u210B",TT="\u042A",yT="\u044A",CT="\u2948",RT="\u2194",NT="\u21D4",OT="\u21AD",AT="^",IT="\u210F",DT="\u0124",xT="\u0125",wT="\u2665",MT="\u2665",LT="\u2026",kT="\u22B9",PT="\u{1D525}",BT="\u210C",FT="\u210B",UT="\u2925",GT="\u2926",qT="\u21FF",YT="\u223B",zT="\u21A9",$T="\u21AA",HT="\u{1D559}",VT="\u210D",WT="\u2015",KT="\u2500",QT="\u{1D4BD}",XT="\u210B",jT="\u210F",ZT="\u0126",JT="\u0127",ey="\u224E",ty="\u224F",ny="\u2043",ry="\u2010",iy="\xCD",ay="\xED",oy="\u2063",sy="\xCE",ly="\xEE",cy="\u0418",uy="\u0438",dy="\u0130",_y="\u0415",py="\u0435",my="\xA1",fy="\u21D4",gy="\u{1D526}",hy="\u2111",Ey="\xCC",Sy="\xEC",by="\u2148",vy="\u2A0C",Ty="\u222D",yy="\u29DC",Cy="\u2129",Ry="\u0132",Ny="\u0133",Oy="\u012A",Ay="\u012B",Iy="\u2111",Dy="\u2148",xy="\u2110",wy="\u2111",My="\u0131",Ly="\u2111",ky="\u22B7",Py="\u01B5",By="\u21D2",Fy="\u2105",Uy="\u221E",Gy="\u29DD",qy="\u0131",Yy="\u22BA",zy="\u222B",$y="\u222C",Hy="\u2124",Vy="\u222B",Wy="\u22BA",Ky="\u22C2",Qy="\u2A17",Xy="\u2A3C",jy="\u2063",Zy="\u2062",Jy="\u0401",e1="\u0451",t1="\u012E",n1="\u012F",r1="\u{1D540}",i1="\u{1D55A}",a1="\u0399",o1="\u03B9",s1="\u2A3C",l1="\xBF",c1="\u{1D4BE}",u1="\u2110",d1="\u2208",_1="\u22F5",p1="\u22F9",m1="\u22F4",f1="\u22F3",g1="\u2208",h1="\u2062",E1="\u0128",S1="\u0129",b1="\u0406",v1="\u0456",T1="\xCF",y1="\xEF",C1="\u0134",R1="\u0135",N1="\u0419",O1="\u0439",A1="\u{1D50D}",I1="\u{1D527}",D1="\u0237",x1="\u{1D541}",w1="\u{1D55B}",M1="\u{1D4A5}",L1="\u{1D4BF}",k1="\u0408",P1="\u0458",B1="\u0404",F1="\u0454",U1="\u039A",G1="\u03BA",q1="\u03F0",Y1="\u0136",z1="\u0137",$1="\u041A",H1="\u043A",V1="\u{1D50E}",W1="\u{1D528}",K1="\u0138",Q1="\u0425",X1="\u0445",j1="\u040C",Z1="\u045C",J1="\u{1D542}",eC="\u{1D55C}",tC="\u{1D4A6}",nC="\u{1D4C0}",rC="\u21DA",iC="\u0139",aC="\u013A",oC="\u29B4",sC="\u2112",lC="\u039B",cC="\u03BB",uC="\u27E8",dC="\u27EA",_C="\u2991",pC="\u27E8",mC="\u2A85",fC="\u2112",gC="\xAB",hC="\u21E4",EC="\u291F",SC="\u2190",bC="\u219E",vC="\u21D0",TC="\u291D",yC="\u21A9",CC="\u21AB",RC="\u2939",NC="\u2973",OC="\u21A2",AC="\u2919",IC="\u291B",DC="\u2AAB",xC="\u2AAD",wC="\u2AAD\uFE00",MC="\u290C",LC="\u290E",kC="\u2772",PC="{",BC="[",FC="\u298B",UC="\u298F",GC="\u298D",qC="\u013D",YC="\u013E",zC="\u013B",$C="\u013C",HC="\u2308",VC="{",WC="\u041B",KC="\u043B",QC="\u2936",XC="\u201C",jC="\u201E",ZC="\u2967",JC="\u294B",eR="\u21B2",tR="\u2264",nR="\u2266",rR="\u27E8",iR="\u21E4",aR="\u2190",oR="\u2190",sR="\u21D0",lR="\u21C6",cR="\u21A2",uR="\u2308",dR="\u27E6",_R="\u2961",pR="\u2959",mR="\u21C3",fR="\u230A",gR="\u21BD",hR="\u21BC",ER="\u21C7",SR="\u2194",bR="\u2194",vR="\u21D4",TR="\u21C6",yR="\u21CB",CR="\u21AD",RR="\u294E",NR="\u21A4",OR="\u22A3",AR="\u295A",IR="\u22CB",DR="\u29CF",xR="\u22B2",wR="\u22B4",MR="\u2951",LR="\u2960",kR="\u2958",PR="\u21BF",BR="\u2952",FR="\u21BC",UR="\u2A8B",GR="\u22DA",qR="\u2264",YR="\u2266",zR="\u2A7D",$R="\u2AA8",HR="\u2A7D",VR="\u2A7F",WR="\u2A81",KR="\u2A83",QR="\u22DA\uFE00",XR="\u2A93",jR="\u2A85",ZR="\u22D6",JR="\u22DA",eN="\u2A8B",tN="\u22DA",nN="\u2266",rN="\u2276",iN="\u2276",aN="\u2AA1",oN="\u2272",sN="\u2A7D",lN="\u2272",cN="\u297C",uN="\u230A",dN="\u{1D50F}",_N="\u{1D529}",pN="\u2276",mN="\u2A91",fN="\u2962",gN="\u21BD",hN="\u21BC",EN="\u296A",SN="\u2584",bN="\u0409",vN="\u0459",TN="\u21C7",yN="\u226A",CN="\u22D8",RN="\u231E",NN="\u21DA",ON="\u296B",AN="\u25FA",IN="\u013F",DN="\u0140",xN="\u23B0",wN="\u23B0",MN="\u2A89",LN="\u2A89",kN="\u2A87",PN="\u2268",BN="\u2A87",FN="\u2268",UN="\u22E6",GN="\u27EC",qN="\u21FD",YN="\u27E6",zN="\u27F5",$N="\u27F5",HN="\u27F8",VN="\u27F7",WN="\u27F7",KN="\u27FA",QN="\u27FC",XN="\u27F6",jN="\u27F6",ZN="\u27F9",JN="\u21AB",eO="\u21AC",tO="\u2985",nO="\u{1D543}",rO="\u{1D55D}",iO="\u2A2D",aO="\u2A34",oO="\u2217",sO="_",lO="\u2199",cO="\u2198",uO="\u25CA",dO="\u25CA",_O="\u29EB",pO="(",mO="\u2993",fO="\u21C6",gO="\u231F",hO="\u21CB",EO="\u296D",SO="\u200E",bO="\u22BF",vO="\u2039",TO="\u{1D4C1}",yO="\u2112",CO="\u21B0",RO="\u21B0",NO="\u2272",OO="\u2A8D",AO="\u2A8F",IO="[",DO="\u2018",xO="\u201A",wO="\u0141",MO="\u0142",LO="\u2AA6",kO="\u2A79",PO="<",BO="<",FO="\u226A",UO="\u22D6",GO="\u22CB",qO="\u22C9",YO="\u2976",zO="\u2A7B",$O="\u25C3",HO="\u22B4",VO="\u25C2",WO="\u2996",KO="\u294A",QO="\u2966",XO="\u2268\uFE00",jO="\u2268\uFE00",ZO="\xAF",JO="\u2642",eA="\u2720",tA="\u2720",nA="\u21A6",rA="\u21A6",iA="\u21A7",aA="\u21A4",oA="\u21A5",sA="\u25AE",lA="\u2A29",cA="\u041C",uA="\u043C",dA="\u2014",_A="\u223A",pA="\u2221",mA="\u205F",fA="\u2133",gA="\u{1D510}",hA="\u{1D52A}",EA="\u2127",SA="\xB5",bA="*",vA="\u2AF0",TA="\u2223",yA="\xB7",CA="\u229F",RA="\u2212",NA="\u2238",OA="\u2A2A",AA="\u2213",IA="\u2ADB",DA="\u2026",xA="\u2213",wA="\u22A7",MA="\u{1D544}",LA="\u{1D55E}",kA="\u2213",PA="\u{1D4C2}",BA="\u2133",FA="\u223E",UA="\u039C",GA="\u03BC",qA="\u22B8",YA="\u22B8",zA="\u2207",HA="\u0143",VA="\u0144",WA="\u2220\u20D2",KA="\u2249",QA="\u2A70\u0338",XA="\u224B\u0338",jA="\u0149",ZA="\u2249",JA="\u266E",eI="\u2115",tI="\u266E",nI="\xA0",rI="\u224E\u0338",iI="\u224F\u0338",aI="\u2A43",oI="\u0147",sI="\u0148",lI="\u0145",cI="\u0146",uI="\u2247",dI="\u2A6D\u0338",_I="\u2A42",pI="\u041D",mI="\u043D",fI="\u2013",gI="\u2924",hI="\u2197",EI="\u21D7",SI="\u2197",bI="\u2260",vI="\u2250\u0338",TI="\u200B",yI="\u200B",CI="\u200B",RI="\u200B",NI="\u2262",OI="\u2928",AI="\u2242\u0338",II="\u226B",DI="\u226A",xI=` +import{n as Kt,g as qu,d as Ya,m as Wn,b as Nl,a as _i,e as Yu,f as zu,r as $u,V as Hu,i as Vu}from"./app.2163cd94.js";import{l as za}from"./longpress.43ca7fd9.js";import{D as Wu}from"./index.53736d9f.js";import{U as Ol}from"./UserSelect.e1ef2c0e.js";import{I as Ku}from"./ImgUpload.273724c5.js";import Qu from"./details.9481fc6a.js";var Xu=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"common-circle",style:e.style,attrs:{"data-id":e.percent}},[n("svg",{attrs:{viewBox:"0 0 28 28"}},[n("g",{attrs:{fill:"none","fill-rule":"evenodd"}},[n("path",{staticClass:"common-circle-path",attrs:{d:"M-500-100h997V48h-997z"}}),n("g",{attrs:{"fill-rule":"nonzero"}},[n("path",{staticClass:"common-circle-g-path-ring",attrs:{"stroke-width":"3",d:"M14 25.5c6.351 0 11.5-5.149 11.5-11.5S20.351 2.5 14 2.5 2.5 7.649 2.5 14 7.649 25.5 14 25.5z"}}),n("path",{staticClass:"common-circle-g-path-core",attrs:{d:e.arc(e.args)}})])])])])},ju=[];const Zu={name:"WCircle",props:{percent:{type:Number,default:0},size:{type:Number,default:120}},computed:{style(){let{size:e}=this;return this.isNumeric(e)&&(e+="px"),{width:e,height:e}},args(){const{percent:e}=this;let t=Math.min(360,360/100*e);return t==360?t=0:t==0&&(t=360),{x:14,y:14,r:14,start:360,end:t}}},methods:{isNumeric(e){return e!==""&&!isNaN(parseFloat(e))&&isFinite(e)},point(e,t,n,r){return[(e+Math.sin(r)*n).toFixed(2),(t-Math.cos(r)*n).toFixed(2)]},full(e,t,n,r){return r<=0?`M ${e-n} ${t} A ${n} ${n} 0 1 1 ${e+n} ${t} A ${n} ${n} 1 1 1 ${e-n} ${t} Z`:`M ${e-n} ${t} A ${n} ${n} 0 1 1 ${e+n} ${t} A ${n} ${n} 1 1 1 ${e-n} ${t} M ${e-r} ${t} A ${r} ${r} 0 1 1 ${e+r} ${t} A ${r} ${r} 1 1 1 ${e-r} ${t} Z`},part(e,t,n,r,a,l){const[u,c]=[a/360*2*Math.PI,l/360*2*Math.PI],d=[this.point(e,t,r,u),this.point(e,t,n,u),this.point(e,t,n,c),this.point(e,t,r,c)],g=c-u>Math.PI?"1":"0";return`M ${d[0][0]} ${d[0][1]} L ${d[1][0]} ${d[1][1]} A ${n} ${n} 0 ${g} 1 ${d[2][0]} ${d[2][1]} L ${d[3][0]} ${d[3][1]} A ${r} ${r} 0 ${g} 0 ${d[0][0]} ${d[0][1]} Z`},arc(e){const{x:t=0,y:n=0}=e;let{R:r=0,r:a=0,start:l,end:u}=e;return[r,a]=[Math.max(r,a),Math.min(r,a)],r<=0?"":l!==+l||u!==+u?this.full(t,n,r,a):Math.abs(l-u)<1e-6?"":Math.abs(l-u)%360<1e-6?this.full(t,n,r,a):([l,u]=[l%360,u%360],l>u&&(u+=360),this.part(t,n,r,a,l,u))}}},vs={};var Ju=Kt(Zu,Xu,ju,!1,ed,null,null,null);function ed(e){for(let t in vs)this[t]=vs[t]}var td=function(){return Ju.exports}();var Ze={};const nd="\xC1",rd="\xE1",id="\u0102",ad="\u0103",od="\u223E",sd="\u223F",ld="\u223E\u0333",cd="\xC2",ud="\xE2",dd="\xB4",_d="\u0410",pd="\u0430",md="\xC6",fd="\xE6",gd="\u2061",hd="\u{1D504}",Ed="\u{1D51E}",Sd="\xC0",bd="\xE0",vd="\u2135",Td="\u2135",yd="\u0391",Cd="\u03B1",Rd="\u0100",Nd="\u0101",Od="\u2A3F",Ad="&",Id="&",Dd="\u2A55",xd="\u2A53",wd="\u2227",Md="\u2A5C",Ld="\u2A58",kd="\u2A5A",Pd="\u2220",Bd="\u29A4",Fd="\u2220",Ud="\u29A8",Gd="\u29A9",qd="\u29AA",Yd="\u29AB",zd="\u29AC",$d="\u29AD",Hd="\u29AE",Vd="\u29AF",Wd="\u2221",Kd="\u221F",Qd="\u22BE",Xd="\u299D",jd="\u2222",Zd="\xC5",Jd="\u237C",e_="\u0104",t_="\u0105",n_="\u{1D538}",r_="\u{1D552}",i_="\u2A6F",a_="\u2248",o_="\u2A70",s_="\u224A",l_="\u224B",c_="'",u_="\u2061",d_="\u2248",__="\u224A",p_="\xC5",m_="\xE5",f_="\u{1D49C}",g_="\u{1D4B6}",h_="\u2254",E_="*",S_="\u2248",b_="\u224D",v_="\xC3",T_="\xE3",y_="\xC4",C_="\xE4",R_="\u2233",N_="\u2A11",O_="\u224C",A_="\u03F6",I_="\u2035",D_="\u223D",x_="\u22CD",w_="\u2216",M_="\u2AE7",L_="\u22BD",k_="\u2305",P_="\u2306",B_="\u2305",F_="\u23B5",U_="\u23B6",G_="\u224C",q_="\u0411",Y_="\u0431",z_="\u201E",$_="\u2235",H_="\u2235",V_="\u2235",W_="\u29B0",K_="\u03F6",Q_="\u212C",X_="\u212C",j_="\u0392",Z_="\u03B2",J_="\u2136",ep="\u226C",tp="\u{1D505}",np="\u{1D51F}",rp="\u22C2",ip="\u25EF",ap="\u22C3",op="\u2A00",sp="\u2A01",lp="\u2A02",cp="\u2A06",up="\u2605",dp="\u25BD",_p="\u25B3",pp="\u2A04",mp="\u22C1",fp="\u22C0",gp="\u290D",hp="\u29EB",Ep="\u25AA",Sp="\u25B4",bp="\u25BE",vp="\u25C2",Tp="\u25B8",yp="\u2423",Cp="\u2592",Rp="\u2591",Np="\u2593",Op="\u2588",Ap="=\u20E5",Ip="\u2261\u20E5",Dp="\u2AED",xp="\u2310",wp="\u{1D539}",Mp="\u{1D553}",Lp="\u22A5",kp="\u22A5",Pp="\u22C8",Bp="\u29C9",Fp="\u2510",Up="\u2555",Gp="\u2556",qp="\u2557",Yp="\u250C",zp="\u2552",$p="\u2553",Hp="\u2554",Vp="\u2500",Wp="\u2550",Kp="\u252C",Qp="\u2564",Xp="\u2565",jp="\u2566",Zp="\u2534",Jp="\u2567",em="\u2568",tm="\u2569",nm="\u229F",rm="\u229E",im="\u22A0",am="\u2518",om="\u255B",sm="\u255C",lm="\u255D",cm="\u2514",um="\u2558",dm="\u2559",_m="\u255A",pm="\u2502",mm="\u2551",fm="\u253C",gm="\u256A",hm="\u256B",Em="\u256C",Sm="\u2524",bm="\u2561",vm="\u2562",Tm="\u2563",ym="\u251C",Cm="\u255E",Rm="\u255F",Nm="\u2560",Om="\u2035",Am="\u02D8",Im="\u02D8",Dm="\xA6",xm="\u{1D4B7}",wm="\u212C",Mm="\u204F",Lm="\u223D",km="\u22CD",Pm="\u29C5",Bm="\\",Fm="\u27C8",Um="\u2022",Gm="\u2022",qm="\u224E",Ym="\u2AAE",zm="\u224F",$m="\u224E",Hm="\u224F",Vm="\u0106",Wm="\u0107",Km="\u2A44",Qm="\u2A49",Xm="\u2A4B",jm="\u2229",Zm="\u22D2",Jm="\u2A47",ef="\u2A40",tf="\u2145",nf="\u2229\uFE00",rf="\u2041",af="\u02C7",of="\u212D",sf="\u2A4D",lf="\u010C",cf="\u010D",uf="\xC7",df="\xE7",_f="\u0108",pf="\u0109",mf="\u2230",ff="\u2A4C",gf="\u2A50",hf="\u010A",Ef="\u010B",Sf="\xB8",bf="\xB8",vf="\u29B2",Tf="\xA2",yf="\xB7",Cf="\xB7",Rf="\u{1D520}",Nf="\u212D",Of="\u0427",Af="\u0447",If="\u2713",Df="\u2713",xf="\u03A7",wf="\u03C7",Mf="\u02C6",Lf="\u2257",kf="\u21BA",Pf="\u21BB",Bf="\u229B",Ff="\u229A",Uf="\u229D",Gf="\u2299",qf="\xAE",Yf="\u24C8",zf="\u2296",$f="\u2295",Hf="\u2297",Vf="\u25CB",Wf="\u29C3",Kf="\u2257",Qf="\u2A10",Xf="\u2AEF",jf="\u29C2",Zf="\u2232",Jf="\u201D",e0="\u2019",t0="\u2663",n0="\u2663",r0=":",i0="\u2237",a0="\u2A74",o0="\u2254",s0="\u2254",l0=",",c0="@",u0="\u2201",d0="\u2218",_0="\u2201",p0="\u2102",m0="\u2245",f0="\u2A6D",g0="\u2261",h0="\u222E",E0="\u222F",S0="\u222E",b0="\u{1D554}",v0="\u2102",T0="\u2210",y0="\u2210",C0="\xA9",R0="\xA9",N0="\u2117",O0="\u2233",A0="\u21B5",I0="\u2717",D0="\u2A2F",x0="\u{1D49E}",w0="\u{1D4B8}",M0="\u2ACF",L0="\u2AD1",k0="\u2AD0",P0="\u2AD2",B0="\u22EF",F0="\u2938",U0="\u2935",G0="\u22DE",q0="\u22DF",Y0="\u21B6",z0="\u293D",$0="\u2A48",H0="\u2A46",V0="\u224D",W0="\u222A",K0="\u22D3",Q0="\u2A4A",X0="\u228D",j0="\u2A45",Z0="\u222A\uFE00",J0="\u21B7",eg="\u293C",tg="\u22DE",ng="\u22DF",rg="\u22CE",ig="\u22CF",ag="\xA4",og="\u21B6",sg="\u21B7",lg="\u22CE",cg="\u22CF",ug="\u2232",dg="\u2231",_g="\u232D",pg="\u2020",mg="\u2021",fg="\u2138",gg="\u2193",hg="\u21A1",Eg="\u21D3",Sg="\u2010",bg="\u2AE4",vg="\u22A3",Tg="\u290F",yg="\u02DD",Cg="\u010E",Rg="\u010F",Ng="\u0414",Og="\u0434",Ag="\u2021",Ig="\u21CA",Dg="\u2145",xg="\u2146",wg="\u2911",Mg="\u2A77",Lg="\xB0",kg="\u2207",Pg="\u0394",Bg="\u03B4",Fg="\u29B1",Ug="\u297F",Gg="\u{1D507}",qg="\u{1D521}",Yg="\u2965",zg="\u21C3",$g="\u21C2",Hg="\xB4",Vg="\u02D9",Wg="\u02DD",Kg="`",Qg="\u02DC",Xg="\u22C4",jg="\u22C4",Zg="\u22C4",Jg="\u2666",eh="\u2666",th="\xA8",nh="\u2146",rh="\u03DD",ih="\u22F2",ah="\xF7",oh="\xF7",sh="\u22C7",lh="\u22C7",ch="\u0402",uh="\u0452",dh="\u231E",_h="\u230D",ph="$",mh="\u{1D53B}",fh="\u{1D555}",gh="\xA8",hh="\u02D9",Eh="\u20DC",Sh="\u2250",bh="\u2251",vh="\u2250",Th="\u2238",yh="\u2214",Ch="\u22A1",Rh="\u2306",Nh="\u222F",Oh="\xA8",Ah="\u21D3",Ih="\u21D0",Dh="\u21D4",xh="\u2AE4",wh="\u27F8",Mh="\u27FA",Lh="\u27F9",kh="\u21D2",Ph="\u22A8",Bh="\u21D1",Fh="\u21D5",Uh="\u2225",Gh="\u2913",qh="\u2193",Yh="\u2193",zh="\u21D3",$h="\u21F5",Hh="\u0311",Vh="\u21CA",Wh="\u21C3",Kh="\u21C2",Qh="\u2950",Xh="\u295E",jh="\u2956",Zh="\u21BD",Jh="\u295F",eE="\u2957",tE="\u21C1",nE="\u21A7",rE="\u22A4",iE="\u2910",aE="\u231F",oE="\u230C",sE="\u{1D49F}",lE="\u{1D4B9}",cE="\u0405",uE="\u0455",dE="\u29F6",_E="\u0110",pE="\u0111",mE="\u22F1",fE="\u25BF",gE="\u25BE",hE="\u21F5",EE="\u296F",SE="\u29A6",bE="\u040F",vE="\u045F",TE="\u27FF",yE="\xC9",CE="\xE9",RE="\u2A6E",NE="\u011A",OE="\u011B",AE="\xCA",IE="\xEA",DE="\u2256",xE="\u2255",wE="\u042D",ME="\u044D",LE="\u2A77",kE="\u0116",PE="\u0117",BE="\u2251",FE="\u2147",UE="\u2252",GE="\u{1D508}",qE="\u{1D522}",YE="\u2A9A",zE="\xC8",$E="\xE8",HE="\u2A96",VE="\u2A98",WE="\u2A99",KE="\u2208",QE="\u23E7",XE="\u2113",jE="\u2A95",ZE="\u2A97",JE="\u0112",eS="\u0113",tS="\u2205",nS="\u2205",rS="\u25FB",iS="\u2205",aS="\u25AB",oS="\u2004",sS="\u2005",lS="\u2003",cS="\u014A",uS="\u014B",dS="\u2002",_S="\u0118",pS="\u0119",mS="\u{1D53C}",fS="\u{1D556}",gS="\u22D5",hS="\u29E3",ES="\u2A71",SS="\u03B5",bS="\u0395",vS="\u03B5",TS="\u03F5",yS="\u2256",CS="\u2255",RS="\u2242",NS="\u2A96",OS="\u2A95",AS="\u2A75",IS="=",DS="\u2242",xS="\u225F",wS="\u21CC",MS="\u2261",LS="\u2A78",kS="\u29E5",PS="\u2971",BS="\u2253",FS="\u212F",US="\u2130",GS="\u2250",qS="\u2A73",YS="\u2242",zS="\u0397",$S="\u03B7",HS="\xD0",VS="\xF0",WS="\xCB",KS="\xEB",QS="\u20AC",XS="!",jS="\u2203",ZS="\u2203",JS="\u2130",eb="\u2147",tb="\u2147",nb="\u2252",rb="\u0424",ib="\u0444",ab="\u2640",ob="\uFB03",sb="\uFB00",lb="\uFB04",cb="\u{1D509}",ub="\u{1D523}",db="\uFB01",_b="\u25FC",pb="\u25AA",mb="fj",fb="\u266D",gb="\uFB02",hb="\u25B1",Eb="\u0192",Sb="\u{1D53D}",bb="\u{1D557}",vb="\u2200",Tb="\u2200",yb="\u22D4",Cb="\u2AD9",Rb="\u2131",Nb="\u2A0D",Ob="\xBD",Ab="\u2153",Ib="\xBC",Db="\u2155",xb="\u2159",wb="\u215B",Mb="\u2154",Lb="\u2156",kb="\xBE",Pb="\u2157",Bb="\u215C",Fb="\u2158",Ub="\u215A",Gb="\u215D",qb="\u215E",Yb="\u2044",zb="\u2322",$b="\u{1D4BB}",Hb="\u2131",Vb="\u01F5",Wb="\u0393",Kb="\u03B3",Qb="\u03DC",Xb="\u03DD",jb="\u2A86",Zb="\u011E",Jb="\u011F",ev="\u0122",tv="\u011C",nv="\u011D",rv="\u0413",iv="\u0433",av="\u0120",ov="\u0121",sv="\u2265",lv="\u2267",cv="\u2A8C",uv="\u22DB",dv="\u2265",_v="\u2267",pv="\u2A7E",mv="\u2AA9",fv="\u2A7E",gv="\u2A80",hv="\u2A82",Ev="\u2A84",Sv="\u22DB\uFE00",bv="\u2A94",vv="\u{1D50A}",Tv="\u{1D524}",yv="\u226B",Cv="\u22D9",Rv="\u22D9",Nv="\u2137",Ov="\u0403",Av="\u0453",Iv="\u2AA5",Dv="\u2277",xv="\u2A92",wv="\u2AA4",Mv="\u2A8A",Lv="\u2A8A",kv="\u2A88",Pv="\u2269",Bv="\u2A88",Fv="\u2269",Uv="\u22E7",Gv="\u{1D53E}",qv="\u{1D558}",Yv="`",zv="\u2265",$v="\u22DB",Hv="\u2267",Vv="\u2AA2",Wv="\u2277",Kv="\u2A7E",Qv="\u2273",Xv="\u{1D4A2}",jv="\u210A",Zv="\u2273",Jv="\u2A8E",eT="\u2A90",tT="\u2AA7",nT="\u2A7A",rT=">",iT=">",aT="\u226B",oT="\u22D7",sT="\u2995",lT="\u2A7C",cT="\u2A86",uT="\u2978",dT="\u22D7",_T="\u22DB",pT="\u2A8C",mT="\u2277",fT="\u2273",gT="\u2269\uFE00",hT="\u2269\uFE00",ET="\u02C7",ST="\u200A",bT="\xBD",vT="\u210B",TT="\u042A",yT="\u044A",CT="\u2948",RT="\u2194",NT="\u21D4",OT="\u21AD",AT="^",IT="\u210F",DT="\u0124",xT="\u0125",wT="\u2665",MT="\u2665",LT="\u2026",kT="\u22B9",PT="\u{1D525}",BT="\u210C",FT="\u210B",UT="\u2925",GT="\u2926",qT="\u21FF",YT="\u223B",zT="\u21A9",$T="\u21AA",HT="\u{1D559}",VT="\u210D",WT="\u2015",KT="\u2500",QT="\u{1D4BD}",XT="\u210B",jT="\u210F",ZT="\u0126",JT="\u0127",ey="\u224E",ty="\u224F",ny="\u2043",ry="\u2010",iy="\xCD",ay="\xED",oy="\u2063",sy="\xCE",ly="\xEE",cy="\u0418",uy="\u0438",dy="\u0130",_y="\u0415",py="\u0435",my="\xA1",fy="\u21D4",gy="\u{1D526}",hy="\u2111",Ey="\xCC",Sy="\xEC",by="\u2148",vy="\u2A0C",Ty="\u222D",yy="\u29DC",Cy="\u2129",Ry="\u0132",Ny="\u0133",Oy="\u012A",Ay="\u012B",Iy="\u2111",Dy="\u2148",xy="\u2110",wy="\u2111",My="\u0131",Ly="\u2111",ky="\u22B7",Py="\u01B5",By="\u21D2",Fy="\u2105",Uy="\u221E",Gy="\u29DD",qy="\u0131",Yy="\u22BA",zy="\u222B",$y="\u222C",Hy="\u2124",Vy="\u222B",Wy="\u22BA",Ky="\u22C2",Qy="\u2A17",Xy="\u2A3C",jy="\u2063",Zy="\u2062",Jy="\u0401",e1="\u0451",t1="\u012E",n1="\u012F",r1="\u{1D540}",i1="\u{1D55A}",a1="\u0399",o1="\u03B9",s1="\u2A3C",l1="\xBF",c1="\u{1D4BE}",u1="\u2110",d1="\u2208",_1="\u22F5",p1="\u22F9",m1="\u22F4",f1="\u22F3",g1="\u2208",h1="\u2062",E1="\u0128",S1="\u0129",b1="\u0406",v1="\u0456",T1="\xCF",y1="\xEF",C1="\u0134",R1="\u0135",N1="\u0419",O1="\u0439",A1="\u{1D50D}",I1="\u{1D527}",D1="\u0237",x1="\u{1D541}",w1="\u{1D55B}",M1="\u{1D4A5}",L1="\u{1D4BF}",k1="\u0408",P1="\u0458",B1="\u0404",F1="\u0454",U1="\u039A",G1="\u03BA",q1="\u03F0",Y1="\u0136",z1="\u0137",$1="\u041A",H1="\u043A",V1="\u{1D50E}",W1="\u{1D528}",K1="\u0138",Q1="\u0425",X1="\u0445",j1="\u040C",Z1="\u045C",J1="\u{1D542}",eC="\u{1D55C}",tC="\u{1D4A6}",nC="\u{1D4C0}",rC="\u21DA",iC="\u0139",aC="\u013A",oC="\u29B4",sC="\u2112",lC="\u039B",cC="\u03BB",uC="\u27E8",dC="\u27EA",_C="\u2991",pC="\u27E8",mC="\u2A85",fC="\u2112",gC="\xAB",hC="\u21E4",EC="\u291F",SC="\u2190",bC="\u219E",vC="\u21D0",TC="\u291D",yC="\u21A9",CC="\u21AB",RC="\u2939",NC="\u2973",OC="\u21A2",AC="\u2919",IC="\u291B",DC="\u2AAB",xC="\u2AAD",wC="\u2AAD\uFE00",MC="\u290C",LC="\u290E",kC="\u2772",PC="{",BC="[",FC="\u298B",UC="\u298F",GC="\u298D",qC="\u013D",YC="\u013E",zC="\u013B",$C="\u013C",HC="\u2308",VC="{",WC="\u041B",KC="\u043B",QC="\u2936",XC="\u201C",jC="\u201E",ZC="\u2967",JC="\u294B",eR="\u21B2",tR="\u2264",nR="\u2266",rR="\u27E8",iR="\u21E4",aR="\u2190",oR="\u2190",sR="\u21D0",lR="\u21C6",cR="\u21A2",uR="\u2308",dR="\u27E6",_R="\u2961",pR="\u2959",mR="\u21C3",fR="\u230A",gR="\u21BD",hR="\u21BC",ER="\u21C7",SR="\u2194",bR="\u2194",vR="\u21D4",TR="\u21C6",yR="\u21CB",CR="\u21AD",RR="\u294E",NR="\u21A4",OR="\u22A3",AR="\u295A",IR="\u22CB",DR="\u29CF",xR="\u22B2",wR="\u22B4",MR="\u2951",LR="\u2960",kR="\u2958",PR="\u21BF",BR="\u2952",FR="\u21BC",UR="\u2A8B",GR="\u22DA",qR="\u2264",YR="\u2266",zR="\u2A7D",$R="\u2AA8",HR="\u2A7D",VR="\u2A7F",WR="\u2A81",KR="\u2A83",QR="\u22DA\uFE00",XR="\u2A93",jR="\u2A85",ZR="\u22D6",JR="\u22DA",eN="\u2A8B",tN="\u22DA",nN="\u2266",rN="\u2276",iN="\u2276",aN="\u2AA1",oN="\u2272",sN="\u2A7D",lN="\u2272",cN="\u297C",uN="\u230A",dN="\u{1D50F}",_N="\u{1D529}",pN="\u2276",mN="\u2A91",fN="\u2962",gN="\u21BD",hN="\u21BC",EN="\u296A",SN="\u2584",bN="\u0409",vN="\u0459",TN="\u21C7",yN="\u226A",CN="\u22D8",RN="\u231E",NN="\u21DA",ON="\u296B",AN="\u25FA",IN="\u013F",DN="\u0140",xN="\u23B0",wN="\u23B0",MN="\u2A89",LN="\u2A89",kN="\u2A87",PN="\u2268",BN="\u2A87",FN="\u2268",UN="\u22E6",GN="\u27EC",qN="\u21FD",YN="\u27E6",zN="\u27F5",$N="\u27F5",HN="\u27F8",VN="\u27F7",WN="\u27F7",KN="\u27FA",QN="\u27FC",XN="\u27F6",jN="\u27F6",ZN="\u27F9",JN="\u21AB",eO="\u21AC",tO="\u2985",nO="\u{1D543}",rO="\u{1D55D}",iO="\u2A2D",aO="\u2A34",oO="\u2217",sO="_",lO="\u2199",cO="\u2198",uO="\u25CA",dO="\u25CA",_O="\u29EB",pO="(",mO="\u2993",fO="\u21C6",gO="\u231F",hO="\u21CB",EO="\u296D",SO="\u200E",bO="\u22BF",vO="\u2039",TO="\u{1D4C1}",yO="\u2112",CO="\u21B0",RO="\u21B0",NO="\u2272",OO="\u2A8D",AO="\u2A8F",IO="[",DO="\u2018",xO="\u201A",wO="\u0141",MO="\u0142",LO="\u2AA6",kO="\u2A79",PO="<",BO="<",FO="\u226A",UO="\u22D6",GO="\u22CB",qO="\u22C9",YO="\u2976",zO="\u2A7B",$O="\u25C3",HO="\u22B4",VO="\u25C2",WO="\u2996",KO="\u294A",QO="\u2966",XO="\u2268\uFE00",jO="\u2268\uFE00",ZO="\xAF",JO="\u2642",eA="\u2720",tA="\u2720",nA="\u21A6",rA="\u21A6",iA="\u21A7",aA="\u21A4",oA="\u21A5",sA="\u25AE",lA="\u2A29",cA="\u041C",uA="\u043C",dA="\u2014",_A="\u223A",pA="\u2221",mA="\u205F",fA="\u2133",gA="\u{1D510}",hA="\u{1D52A}",EA="\u2127",SA="\xB5",bA="*",vA="\u2AF0",TA="\u2223",yA="\xB7",CA="\u229F",RA="\u2212",NA="\u2238",OA="\u2A2A",AA="\u2213",IA="\u2ADB",DA="\u2026",xA="\u2213",wA="\u22A7",MA="\u{1D544}",LA="\u{1D55E}",kA="\u2213",PA="\u{1D4C2}",BA="\u2133",FA="\u223E",UA="\u039C",GA="\u03BC",qA="\u22B8",YA="\u22B8",zA="\u2207",HA="\u0143",VA="\u0144",WA="\u2220\u20D2",KA="\u2249",QA="\u2A70\u0338",XA="\u224B\u0338",jA="\u0149",ZA="\u2249",JA="\u266E",eI="\u2115",tI="\u266E",nI="\xA0",rI="\u224E\u0338",iI="\u224F\u0338",aI="\u2A43",oI="\u0147",sI="\u0148",lI="\u0145",cI="\u0146",uI="\u2247",dI="\u2A6D\u0338",_I="\u2A42",pI="\u041D",mI="\u043D",fI="\u2013",gI="\u2924",hI="\u2197",EI="\u21D7",SI="\u2197",bI="\u2260",vI="\u2250\u0338",TI="\u200B",yI="\u200B",CI="\u200B",RI="\u200B",NI="\u2262",OI="\u2928",AI="\u2242\u0338",II="\u226B",DI="\u226A",xI=` `,wI="\u2204",MI="\u2204",LI="\u{1D511}",kI="\u{1D52B}",PI="\u2267\u0338",BI="\u2271",FI="\u2271",UI="\u2267\u0338",GI="\u2A7E\u0338",qI="\u2A7E\u0338",YI="\u22D9\u0338",zI="\u2275",$I="\u226B\u20D2",HI="\u226F",VI="\u226F",WI="\u226B\u0338",KI="\u21AE",QI="\u21CE",XI="\u2AF2",jI="\u220B",ZI="\u22FC",JI="\u22FA",eD="\u220B",tD="\u040A",nD="\u045A",rD="\u219A",iD="\u21CD",aD="\u2025",oD="\u2266\u0338",sD="\u2270",lD="\u219A",cD="\u21CD",uD="\u21AE",dD="\u21CE",_D="\u2270",pD="\u2266\u0338",mD="\u2A7D\u0338",fD="\u2A7D\u0338",gD="\u226E",hD="\u22D8\u0338",ED="\u2274",SD="\u226A\u20D2",bD="\u226E",vD="\u22EA",TD="\u22EC",yD="\u226A\u0338",CD="\u2224",RD="\u2060",ND="\xA0",OD="\u{1D55F}",AD="\u2115",ID="\u2AEC",DD="\xAC",xD="\u2262",wD="\u226D",MD="\u2226",LD="\u2209",kD="\u2260",PD="\u2242\u0338",BD="\u2204",FD="\u226F",UD="\u2271",GD="\u2267\u0338",qD="\u226B\u0338",YD="\u2279",zD="\u2A7E\u0338",$D="\u2275",HD="\u224E\u0338",VD="\u224F\u0338",WD="\u2209",KD="\u22F5\u0338",QD="\u22F9\u0338",XD="\u2209",jD="\u22F7",ZD="\u22F6",JD="\u29CF\u0338",ex="\u22EA",tx="\u22EC",nx="\u226E",rx="\u2270",ix="\u2278",ax="\u226A\u0338",ox="\u2A7D\u0338",sx="\u2274",lx="\u2AA2\u0338",cx="\u2AA1\u0338",ux="\u220C",dx="\u220C",_x="\u22FE",px="\u22FD",mx="\u2280",fx="\u2AAF\u0338",gx="\u22E0",hx="\u220C",Ex="\u29D0\u0338",Sx="\u22EB",bx="\u22ED",vx="\u228F\u0338",Tx="\u22E2",yx="\u2290\u0338",Cx="\u22E3",Rx="\u2282\u20D2",Nx="\u2288",Ox="\u2281",Ax="\u2AB0\u0338",Ix="\u22E1",Dx="\u227F\u0338",xx="\u2283\u20D2",wx="\u2289",Mx="\u2241",Lx="\u2244",kx="\u2247",Px="\u2249",Bx="\u2224",Fx="\u2226",Ux="\u2226",Gx="\u2AFD\u20E5",qx="\u2202\u0338",Yx="\u2A14",zx="\u2280",$x="\u22E0",Hx="\u2280",Vx="\u2AAF\u0338",Wx="\u2AAF\u0338",Kx="\u2933\u0338",Qx="\u219B",Xx="\u21CF",jx="\u219D\u0338",Zx="\u219B",Jx="\u21CF",ew="\u22EB",tw="\u22ED",nw="\u2281",rw="\u22E1",iw="\u2AB0\u0338",aw="\u{1D4A9}",ow="\u{1D4C3}",sw="\u2224",lw="\u2226",cw="\u2241",uw="\u2244",dw="\u2244",_w="\u2224",pw="\u2226",mw="\u22E2",fw="\u22E3",gw="\u2284",hw="\u2AC5\u0338",Ew="\u2288",Sw="\u2282\u20D2",bw="\u2288",vw="\u2AC5\u0338",Tw="\u2281",yw="\u2AB0\u0338",Cw="\u2285",Rw="\u2AC6\u0338",Nw="\u2289",Ow="\u2283\u20D2",Aw="\u2289",Iw="\u2AC6\u0338",Dw="\u2279",xw="\xD1",ww="\xF1",Mw="\u2278",Lw="\u22EA",kw="\u22EC",Pw="\u22EB",Bw="\u22ED",Fw="\u039D",Uw="\u03BD",Gw="#",qw="\u2116",Yw="\u2007",zw="\u224D\u20D2",$w="\u22AC",Hw="\u22AD",Vw="\u22AE",Ww="\u22AF",Kw="\u2265\u20D2",Qw=">\u20D2",Xw="\u2904",jw="\u29DE",Zw="\u2902",Jw="\u2264\u20D2",e2="<\u20D2",t2="\u22B4\u20D2",n2="\u2903",r2="\u22B5\u20D2",i2="\u223C\u20D2",a2="\u2923",o2="\u2196",s2="\u21D6",l2="\u2196",c2="\u2927",u2="\xD3",d2="\xF3",_2="\u229B",p2="\xD4",m2="\xF4",f2="\u229A",g2="\u041E",h2="\u043E",E2="\u229D",S2="\u0150",b2="\u0151",v2="\u2A38",T2="\u2299",y2="\u29BC",C2="\u0152",R2="\u0153",N2="\u29BF",O2="\u{1D512}",A2="\u{1D52C}",I2="\u02DB",D2="\xD2",x2="\xF2",w2="\u29C1",M2="\u29B5",L2="\u03A9",k2="\u222E",P2="\u21BA",B2="\u29BE",F2="\u29BB",U2="\u203E",G2="\u29C0",q2="\u014C",Y2="\u014D",z2="\u03A9",$2="\u03C9",H2="\u039F",V2="\u03BF",W2="\u29B6",K2="\u2296",Q2="\u{1D546}",X2="\u{1D560}",j2="\u29B7",Z2="\u201C",J2="\u2018",eM="\u29B9",tM="\u2295",nM="\u21BB",rM="\u2A54",iM="\u2228",aM="\u2A5D",oM="\u2134",sM="\u2134",lM="\xAA",cM="\xBA",uM="\u22B6",dM="\u2A56",_M="\u2A57",pM="\u2A5B",mM="\u24C8",fM="\u{1D4AA}",gM="\u2134",hM="\xD8",EM="\xF8",SM="\u2298",bM="\xD5",vM="\xF5",TM="\u2A36",yM="\u2A37",CM="\u2297",RM="\xD6",NM="\xF6",OM="\u233D",AM="\u203E",IM="\u23DE",DM="\u23B4",xM="\u23DC",wM="\xB6",MM="\u2225",LM="\u2225",kM="\u2AF3",PM="\u2AFD",BM="\u2202",FM="\u2202",UM="\u041F",GM="\u043F",qM="%",YM=".",zM="\u2030",$M="\u22A5",HM="\u2031",VM="\u{1D513}",WM="\u{1D52D}",KM="\u03A6",QM="\u03C6",XM="\u03D5",jM="\u2133",ZM="\u260E",JM="\u03A0",e4="\u03C0",t4="\u22D4",n4="\u03D6",r4="\u210F",i4="\u210E",a4="\u210F",o4="\u2A23",s4="\u229E",l4="\u2A22",c4="+",u4="\u2214",d4="\u2A25",_4="\u2A72",p4="\xB1",m4="\xB1",f4="\u2A26",g4="\u2A27",h4="\xB1",E4="\u210C",S4="\u2A15",b4="\u{1D561}",v4="\u2119",T4="\xA3",y4="\u2AB7",C4="\u2ABB",R4="\u227A",N4="\u227C",O4="\u2AB7",A4="\u227A",I4="\u227C",D4="\u227A",x4="\u2AAF",w4="\u227C",M4="\u227E",L4="\u2AAF",k4="\u2AB9",P4="\u2AB5",B4="\u22E8",F4="\u2AAF",U4="\u2AB3",G4="\u227E",q4="\u2032",Y4="\u2033",z4="\u2119",$4="\u2AB9",H4="\u2AB5",V4="\u22E8",W4="\u220F",K4="\u220F",Q4="\u232E",X4="\u2312",j4="\u2313",Z4="\u221D",J4="\u221D",eL="\u2237",tL="\u221D",nL="\u227E",rL="\u22B0",iL="\u{1D4AB}",aL="\u{1D4C5}",oL="\u03A8",sL="\u03C8",lL="\u2008",cL="\u{1D514}",uL="\u{1D52E}",dL="\u2A0C",_L="\u{1D562}",pL="\u211A",mL="\u2057",fL="\u{1D4AC}",gL="\u{1D4C6}",hL="\u210D",EL="\u2A16",SL="?",bL="\u225F",vL='"',TL='"',yL="\u21DB",CL="\u223D\u0331",RL="\u0154",NL="\u0155",OL="\u221A",AL="\u29B3",IL="\u27E9",DL="\u27EB",xL="\u2992",wL="\u29A5",ML="\u27E9",LL="\xBB",kL="\u2975",PL="\u21E5",BL="\u2920",FL="\u2933",UL="\u2192",GL="\u21A0",qL="\u21D2",YL="\u291E",zL="\u21AA",$L="\u21AC",HL="\u2945",VL="\u2974",WL="\u2916",KL="\u21A3",QL="\u219D",XL="\u291A",jL="\u291C",ZL="\u2236",JL="\u211A",ek="\u290D",tk="\u290F",nk="\u2910",rk="\u2773",ik="}",ak="]",ok="\u298C",sk="\u298E",lk="\u2990",ck="\u0158",uk="\u0159",dk="\u0156",_k="\u0157",pk="\u2309",mk="}",fk="\u0420",gk="\u0440",hk="\u2937",Ek="\u2969",Sk="\u201D",bk="\u201D",vk="\u21B3",Tk="\u211C",yk="\u211B",Ck="\u211C",Rk="\u211D",Nk="\u211C",Ok="\u25AD",Ak="\xAE",Ik="\xAE",Dk="\u220B",xk="\u21CB",wk="\u296F",Mk="\u297D",Lk="\u230B",kk="\u{1D52F}",Pk="\u211C",Bk="\u2964",Fk="\u21C1",Uk="\u21C0",Gk="\u296C",qk="\u03A1",Yk="\u03C1",zk="\u03F1",$k="\u27E9",Hk="\u21E5",Vk="\u2192",Wk="\u2192",Kk="\u21D2",Qk="\u21C4",Xk="\u21A3",jk="\u2309",Zk="\u27E7",Jk="\u295D",e3="\u2955",t3="\u21C2",n3="\u230B",r3="\u21C1",i3="\u21C0",a3="\u21C4",o3="\u21CC",s3="\u21C9",l3="\u219D",c3="\u21A6",u3="\u22A2",d3="\u295B",_3="\u22CC",p3="\u29D0",m3="\u22B3",f3="\u22B5",g3="\u294F",h3="\u295C",E3="\u2954",S3="\u21BE",b3="\u2953",v3="\u21C0",T3="\u02DA",y3="\u2253",C3="\u21C4",R3="\u21CC",N3="\u200F",O3="\u23B1",A3="\u23B1",I3="\u2AEE",D3="\u27ED",x3="\u21FE",w3="\u27E7",M3="\u2986",L3="\u{1D563}",k3="\u211D",P3="\u2A2E",B3="\u2A35",F3="\u2970",U3=")",G3="\u2994",q3="\u2A12",Y3="\u21C9",z3="\u21DB",$3="\u203A",H3="\u{1D4C7}",V3="\u211B",W3="\u21B1",K3="\u21B1",Q3="]",X3="\u2019",j3="\u2019",Z3="\u22CC",J3="\u22CA",e5="\u25B9",t5="\u22B5",n5="\u25B8",r5="\u29CE",i5="\u29F4",a5="\u2968",o5="\u211E",s5="\u015A",l5="\u015B",c5="\u201A",u5="\u2AB8",d5="\u0160",_5="\u0161",p5="\u2ABC",m5="\u227B",f5="\u227D",g5="\u2AB0",h5="\u2AB4",E5="\u015E",S5="\u015F",b5="\u015C",v5="\u015D",T5="\u2ABA",y5="\u2AB6",C5="\u22E9",R5="\u2A13",N5="\u227F",O5="\u0421",A5="\u0441",I5="\u22A1",D5="\u22C5",x5="\u2A66",w5="\u2925",M5="\u2198",L5="\u21D8",k5="\u2198",P5="\xA7",B5=";",F5="\u2929",U5="\u2216",G5="\u2216",q5="\u2736",Y5="\u{1D516}",z5="\u{1D530}",$5="\u2322",H5="\u266F",V5="\u0429",W5="\u0449",K5="\u0428",Q5="\u0448",X5="\u2193",j5="\u2190",Z5="\u2223",J5="\u2225",eP="\u2192",tP="\u2191",nP="\xAD",rP="\u03A3",iP="\u03C3",aP="\u03C2",oP="\u03C2",sP="\u223C",lP="\u2A6A",cP="\u2243",uP="\u2243",dP="\u2A9E",_P="\u2AA0",pP="\u2A9D",mP="\u2A9F",fP="\u2246",gP="\u2A24",hP="\u2972",EP="\u2190",SP="\u2218",bP="\u2216",vP="\u2A33",TP="\u29E4",yP="\u2223",CP="\u2323",RP="\u2AAA",NP="\u2AAC",OP="\u2AAC\uFE00",AP="\u042C",IP="\u044C",DP="\u233F",xP="\u29C4",wP="/",MP="\u{1D54A}",LP="\u{1D564}",kP="\u2660",PP="\u2660",BP="\u2225",FP="\u2293",UP="\u2293\uFE00",GP="\u2294",qP="\u2294\uFE00",YP="\u221A",zP="\u228F",$P="\u2291",HP="\u228F",VP="\u2291",WP="\u2290",KP="\u2292",QP="\u2290",XP="\u2292",jP="\u25A1",ZP="\u25A1",JP="\u2293",e6="\u228F",t6="\u2291",n6="\u2290",r6="\u2292",i6="\u2294",a6="\u25AA",o6="\u25A1",s6="\u25AA",l6="\u2192",c6="\u{1D4AE}",u6="\u{1D4C8}",d6="\u2216",_6="\u2323",p6="\u22C6",m6="\u22C6",f6="\u2606",g6="\u2605",h6="\u03F5",E6="\u03D5",S6="\xAF",b6="\u2282",v6="\u22D0",T6="\u2ABD",y6="\u2AC5",C6="\u2286",R6="\u2AC3",N6="\u2AC1",O6="\u2ACB",A6="\u228A",I6="\u2ABF",D6="\u2979",x6="\u2282",w6="\u22D0",M6="\u2286",L6="\u2AC5",k6="\u2286",P6="\u228A",B6="\u2ACB",F6="\u2AC7",U6="\u2AD5",G6="\u2AD3",q6="\u2AB8",Y6="\u227B",z6="\u227D",$6="\u227B",H6="\u2AB0",V6="\u227D",W6="\u227F",K6="\u2AB0",Q6="\u2ABA",X6="\u2AB6",j6="\u22E9",Z6="\u227F",J6="\u220B",e7="\u2211",t7="\u2211",n7="\u266A",r7="\xB9",i7="\xB2",a7="\xB3",o7="\u2283",s7="\u22D1",l7="\u2ABE",c7="\u2AD8",u7="\u2AC6",d7="\u2287",_7="\u2AC4",p7="\u2283",m7="\u2287",f7="\u27C9",g7="\u2AD7",h7="\u297B",E7="\u2AC2",S7="\u2ACC",b7="\u228B",v7="\u2AC0",T7="\u2283",y7="\u22D1",C7="\u2287",R7="\u2AC6",N7="\u228B",O7="\u2ACC",A7="\u2AC8",I7="\u2AD4",D7="\u2AD6",x7="\u2926",w7="\u2199",M7="\u21D9",L7="\u2199",k7="\u292A",P7="\xDF",B7=" ",F7="\u2316",U7="\u03A4",G7="\u03C4",q7="\u23B4",Y7="\u0164",z7="\u0165",$7="\u0162",H7="\u0163",V7="\u0422",W7="\u0442",K7="\u20DB",Q7="\u2315",X7="\u{1D517}",j7="\u{1D531}",Z7="\u2234",J7="\u2234",e8="\u2234",t8="\u0398",n8="\u03B8",r8="\u03D1",i8="\u03D1",a8="\u2248",o8="\u223C",s8="\u205F\u200A",l8="\u2009",c8="\u2009",u8="\u2248",d8="\u223C",_8="\xDE",p8="\xFE",m8="\u02DC",f8="\u223C",g8="\u2243",h8="\u2245",E8="\u2248",S8="\u2A31",b8="\u22A0",v8="\xD7",T8="\u2A30",y8="\u222D",C8="\u2928",R8="\u2336",N8="\u2AF1",O8="\u22A4",A8="\u{1D54B}",I8="\u{1D565}",D8="\u2ADA",x8="\u2929",w8="\u2034",M8="\u2122",L8="\u2122",k8="\u25B5",P8="\u25BF",B8="\u25C3",F8="\u22B4",U8="\u225C",G8="\u25B9",q8="\u22B5",Y8="\u25EC",z8="\u225C",$8="\u2A3A",H8="\u20DB",V8="\u2A39",W8="\u29CD",K8="\u2A3B",Q8="\u23E2",X8="\u{1D4AF}",j8="\u{1D4C9}",Z8="\u0426",J8="\u0446",e9="\u040B",t9="\u045B",n9="\u0166",r9="\u0167",i9="\u226C",a9="\u219E",o9="\u21A0",s9="\xDA",l9="\xFA",c9="\u2191",u9="\u219F",d9="\u21D1",_9="\u2949",p9="\u040E",m9="\u045E",f9="\u016C",g9="\u016D",h9="\xDB",E9="\xFB",S9="\u0423",b9="\u0443",v9="\u21C5",T9="\u0170",y9="\u0171",C9="\u296E",R9="\u297E",N9="\u{1D518}",O9="\u{1D532}",A9="\xD9",I9="\xF9",D9="\u2963",x9="\u21BF",w9="\u21BE",M9="\u2580",L9="\u231C",k9="\u231C",P9="\u230F",B9="\u25F8",F9="\u016A",U9="\u016B",G9="\xA8",q9="_",Y9="\u23DF",z9="\u23B5",$9="\u23DD",H9="\u22C3",V9="\u228E",W9="\u0172",K9="\u0173",Q9="\u{1D54C}",X9="\u{1D566}",j9="\u2912",Z9="\u2191",J9="\u2191",eB="\u21D1",tB="\u21C5",nB="\u2195",rB="\u2195",iB="\u21D5",aB="\u296E",oB="\u21BF",sB="\u21BE",lB="\u228E",cB="\u2196",uB="\u2197",dB="\u03C5",_B="\u03D2",pB="\u03D2",mB="\u03A5",fB="\u03C5",gB="\u21A5",hB="\u22A5",EB="\u21C8",SB="\u231D",bB="\u231D",vB="\u230E",TB="\u016E",yB="\u016F",CB="\u25F9",RB="\u{1D4B0}",NB="\u{1D4CA}",OB="\u22F0",AB="\u0168",IB="\u0169",DB="\u25B5",xB="\u25B4",wB="\u21C8",MB="\xDC",LB="\xFC",kB="\u29A7",PB="\u299C",BB="\u03F5",FB="\u03F0",UB="\u2205",GB="\u03D5",qB="\u03D6",YB="\u221D",zB="\u2195",$B="\u21D5",HB="\u03F1",VB="\u03C2",WB="\u228A\uFE00",KB="\u2ACB\uFE00",QB="\u228B\uFE00",XB="\u2ACC\uFE00",jB="\u03D1",ZB="\u22B2",JB="\u22B3",eF="\u2AE8",tF="\u2AEB",nF="\u2AE9",rF="\u0412",iF="\u0432",aF="\u22A2",oF="\u22A8",sF="\u22A9",lF="\u22AB",cF="\u2AE6",uF="\u22BB",dF="\u2228",_F="\u22C1",pF="\u225A",mF="\u22EE",fF="|",gF="\u2016",hF="|",EF="\u2016",SF="\u2223",bF="|",vF="\u2758",TF="\u2240",yF="\u200A",CF="\u{1D519}",RF="\u{1D533}",NF="\u22B2",OF="\u2282\u20D2",AF="\u2283\u20D2",IF="\u{1D54D}",DF="\u{1D567}",xF="\u221D",wF="\u22B3",MF="\u{1D4B1}",LF="\u{1D4CB}",kF="\u2ACB\uFE00",PF="\u228A\uFE00",BF="\u2ACC\uFE00",FF="\u228B\uFE00",UF="\u22AA",GF="\u299A",qF="\u0174",YF="\u0175",zF="\u2A5F",$F="\u2227",HF="\u22C0",VF="\u2259",WF="\u2118",KF="\u{1D51A}",QF="\u{1D534}",XF="\u{1D54E}",jF="\u{1D568}",ZF="\u2118",JF="\u2240",eU="\u2240",tU="\u{1D4B2}",nU="\u{1D4CC}",rU="\u22C2",iU="\u25EF",aU="\u22C3",oU="\u25BD",sU="\u{1D51B}",lU="\u{1D535}",cU="\u27F7",uU="\u27FA",dU="\u039E",_U="\u03BE",pU="\u27F5",mU="\u27F8",fU="\u27FC",gU="\u22FB",hU="\u2A00",EU="\u{1D54F}",SU="\u{1D569}",bU="\u2A01",vU="\u2A02",TU="\u27F6",yU="\u27F9",CU="\u{1D4B3}",RU="\u{1D4CD}",NU="\u2A06",OU="\u2A04",AU="\u25B3",IU="\u22C1",DU="\u22C0",xU="\xDD",wU="\xFD",MU="\u042F",LU="\u044F",kU="\u0176",PU="\u0177",BU="\u042B",FU="\u044B",UU="\xA5",GU="\u{1D51C}",qU="\u{1D536}",YU="\u0407",zU="\u0457",$U="\u{1D550}",HU="\u{1D56A}",VU="\u{1D4B4}",WU="\u{1D4CE}",KU="\u042E",QU="\u044E",XU="\xFF",jU="\u0178",ZU="\u0179",JU="\u017A",eG="\u017D",tG="\u017E",nG="\u0417",rG="\u0437",iG="\u017B",aG="\u017C",oG="\u2128",sG="\u200B",lG="\u0396",cG="\u03B6",uG="\u{1D537}",dG="\u2128",_G="\u0416",pG="\u0436",mG="\u21DD",fG="\u{1D56B}",gG="\u2124",hG="\u{1D4B5}",EG="\u{1D4CF}",SG="\u200D",bG="\u200C";var vG={Aacute:nd,aacute:rd,Abreve:id,abreve:ad,ac:od,acd:sd,acE:ld,Acirc:cd,acirc:ud,acute:dd,Acy:_d,acy:pd,AElig:md,aelig:fd,af:gd,Afr:hd,afr:Ed,Agrave:Sd,agrave:bd,alefsym:vd,aleph:Td,Alpha:yd,alpha:Cd,Amacr:Rd,amacr:Nd,amalg:Od,amp:Ad,AMP:Id,andand:Dd,And:xd,and:wd,andd:Md,andslope:Ld,andv:kd,ang:Pd,ange:Bd,angle:Fd,angmsdaa:Ud,angmsdab:Gd,angmsdac:qd,angmsdad:Yd,angmsdae:zd,angmsdaf:$d,angmsdag:Hd,angmsdah:Vd,angmsd:Wd,angrt:Kd,angrtvb:Qd,angrtvbd:Xd,angsph:jd,angst:Zd,angzarr:Jd,Aogon:e_,aogon:t_,Aopf:n_,aopf:r_,apacir:i_,ap:a_,apE:o_,ape:s_,apid:l_,apos:c_,ApplyFunction:u_,approx:d_,approxeq:__,Aring:p_,aring:m_,Ascr:f_,ascr:g_,Assign:h_,ast:E_,asymp:S_,asympeq:b_,Atilde:v_,atilde:T_,Auml:y_,auml:C_,awconint:R_,awint:N_,backcong:O_,backepsilon:A_,backprime:I_,backsim:D_,backsimeq:x_,Backslash:w_,Barv:M_,barvee:L_,barwed:k_,Barwed:P_,barwedge:B_,bbrk:F_,bbrktbrk:U_,bcong:G_,Bcy:q_,bcy:Y_,bdquo:z_,becaus:$_,because:H_,Because:V_,bemptyv:W_,bepsi:K_,bernou:Q_,Bernoullis:X_,Beta:j_,beta:Z_,beth:J_,between:ep,Bfr:tp,bfr:np,bigcap:rp,bigcirc:ip,bigcup:ap,bigodot:op,bigoplus:sp,bigotimes:lp,bigsqcup:cp,bigstar:up,bigtriangledown:dp,bigtriangleup:_p,biguplus:pp,bigvee:mp,bigwedge:fp,bkarow:gp,blacklozenge:hp,blacksquare:Ep,blacktriangle:Sp,blacktriangledown:bp,blacktriangleleft:vp,blacktriangleright:Tp,blank:yp,blk12:Cp,blk14:Rp,blk34:Np,block:Op,bne:Ap,bnequiv:Ip,bNot:Dp,bnot:xp,Bopf:wp,bopf:Mp,bot:Lp,bottom:kp,bowtie:Pp,boxbox:Bp,boxdl:Fp,boxdL:Up,boxDl:Gp,boxDL:qp,boxdr:Yp,boxdR:zp,boxDr:$p,boxDR:Hp,boxh:Vp,boxH:Wp,boxhd:Kp,boxHd:Qp,boxhD:Xp,boxHD:jp,boxhu:Zp,boxHu:Jp,boxhU:em,boxHU:tm,boxminus:nm,boxplus:rm,boxtimes:im,boxul:am,boxuL:om,boxUl:sm,boxUL:lm,boxur:cm,boxuR:um,boxUr:dm,boxUR:_m,boxv:pm,boxV:mm,boxvh:fm,boxvH:gm,boxVh:hm,boxVH:Em,boxvl:Sm,boxvL:bm,boxVl:vm,boxVL:Tm,boxvr:ym,boxvR:Cm,boxVr:Rm,boxVR:Nm,bprime:Om,breve:Am,Breve:Im,brvbar:Dm,bscr:xm,Bscr:wm,bsemi:Mm,bsim:Lm,bsime:km,bsolb:Pm,bsol:Bm,bsolhsub:Fm,bull:Um,bullet:Gm,bump:qm,bumpE:Ym,bumpe:zm,Bumpeq:$m,bumpeq:Hm,Cacute:Vm,cacute:Wm,capand:Km,capbrcup:Qm,capcap:Xm,cap:jm,Cap:Zm,capcup:Jm,capdot:ef,CapitalDifferentialD:tf,caps:nf,caret:rf,caron:af,Cayleys:of,ccaps:sf,Ccaron:lf,ccaron:cf,Ccedil:uf,ccedil:df,Ccirc:_f,ccirc:pf,Cconint:mf,ccups:ff,ccupssm:gf,Cdot:hf,cdot:Ef,cedil:Sf,Cedilla:bf,cemptyv:vf,cent:Tf,centerdot:yf,CenterDot:Cf,cfr:Rf,Cfr:Nf,CHcy:Of,chcy:Af,check:If,checkmark:Df,Chi:xf,chi:wf,circ:Mf,circeq:Lf,circlearrowleft:kf,circlearrowright:Pf,circledast:Bf,circledcirc:Ff,circleddash:Uf,CircleDot:Gf,circledR:qf,circledS:Yf,CircleMinus:zf,CirclePlus:$f,CircleTimes:Hf,cir:Vf,cirE:Wf,cire:Kf,cirfnint:Qf,cirmid:Xf,cirscir:jf,ClockwiseContourIntegral:Zf,CloseCurlyDoubleQuote:Jf,CloseCurlyQuote:e0,clubs:t0,clubsuit:n0,colon:r0,Colon:i0,Colone:a0,colone:o0,coloneq:s0,comma:l0,commat:c0,comp:u0,compfn:d0,complement:_0,complexes:p0,cong:m0,congdot:f0,Congruent:g0,conint:h0,Conint:E0,ContourIntegral:S0,copf:b0,Copf:v0,coprod:T0,Coproduct:y0,copy:C0,COPY:R0,copysr:N0,CounterClockwiseContourIntegral:O0,crarr:A0,cross:I0,Cross:D0,Cscr:x0,cscr:w0,csub:M0,csube:L0,csup:k0,csupe:P0,ctdot:B0,cudarrl:F0,cudarrr:U0,cuepr:G0,cuesc:q0,cularr:Y0,cularrp:z0,cupbrcap:$0,cupcap:H0,CupCap:V0,cup:W0,Cup:K0,cupcup:Q0,cupdot:X0,cupor:j0,cups:Z0,curarr:J0,curarrm:eg,curlyeqprec:tg,curlyeqsucc:ng,curlyvee:rg,curlywedge:ig,curren:ag,curvearrowleft:og,curvearrowright:sg,cuvee:lg,cuwed:cg,cwconint:ug,cwint:dg,cylcty:_g,dagger:pg,Dagger:mg,daleth:fg,darr:gg,Darr:hg,dArr:Eg,dash:Sg,Dashv:bg,dashv:vg,dbkarow:Tg,dblac:yg,Dcaron:Cg,dcaron:Rg,Dcy:Ng,dcy:Og,ddagger:Ag,ddarr:Ig,DD:Dg,dd:xg,DDotrahd:wg,ddotseq:Mg,deg:Lg,Del:kg,Delta:Pg,delta:Bg,demptyv:Fg,dfisht:Ug,Dfr:Gg,dfr:qg,dHar:Yg,dharl:zg,dharr:$g,DiacriticalAcute:Hg,DiacriticalDot:Vg,DiacriticalDoubleAcute:Wg,DiacriticalGrave:Kg,DiacriticalTilde:Qg,diam:Xg,diamond:jg,Diamond:Zg,diamondsuit:Jg,diams:eh,die:th,DifferentialD:nh,digamma:rh,disin:ih,div:ah,divide:oh,divideontimes:sh,divonx:lh,DJcy:ch,djcy:uh,dlcorn:dh,dlcrop:_h,dollar:ph,Dopf:mh,dopf:fh,Dot:gh,dot:hh,DotDot:Eh,doteq:Sh,doteqdot:bh,DotEqual:vh,dotminus:Th,dotplus:yh,dotsquare:Ch,doublebarwedge:Rh,DoubleContourIntegral:Nh,DoubleDot:Oh,DoubleDownArrow:Ah,DoubleLeftArrow:Ih,DoubleLeftRightArrow:Dh,DoubleLeftTee:xh,DoubleLongLeftArrow:wh,DoubleLongLeftRightArrow:Mh,DoubleLongRightArrow:Lh,DoubleRightArrow:kh,DoubleRightTee:Ph,DoubleUpArrow:Bh,DoubleUpDownArrow:Fh,DoubleVerticalBar:Uh,DownArrowBar:Gh,downarrow:qh,DownArrow:Yh,Downarrow:zh,DownArrowUpArrow:$h,DownBreve:Hh,downdownarrows:Vh,downharpoonleft:Wh,downharpoonright:Kh,DownLeftRightVector:Qh,DownLeftTeeVector:Xh,DownLeftVectorBar:jh,DownLeftVector:Zh,DownRightTeeVector:Jh,DownRightVectorBar:eE,DownRightVector:tE,DownTeeArrow:nE,DownTee:rE,drbkarow:iE,drcorn:aE,drcrop:oE,Dscr:sE,dscr:lE,DScy:cE,dscy:uE,dsol:dE,Dstrok:_E,dstrok:pE,dtdot:mE,dtri:fE,dtrif:gE,duarr:hE,duhar:EE,dwangle:SE,DZcy:bE,dzcy:vE,dzigrarr:TE,Eacute:yE,eacute:CE,easter:RE,Ecaron:NE,ecaron:OE,Ecirc:AE,ecirc:IE,ecir:DE,ecolon:xE,Ecy:wE,ecy:ME,eDDot:LE,Edot:kE,edot:PE,eDot:BE,ee:FE,efDot:UE,Efr:GE,efr:qE,eg:YE,Egrave:zE,egrave:$E,egs:HE,egsdot:VE,el:WE,Element:KE,elinters:QE,ell:XE,els:jE,elsdot:ZE,Emacr:JE,emacr:eS,empty:tS,emptyset:nS,EmptySmallSquare:rS,emptyv:iS,EmptyVerySmallSquare:aS,emsp13:oS,emsp14:sS,emsp:lS,ENG:cS,eng:uS,ensp:dS,Eogon:_S,eogon:pS,Eopf:mS,eopf:fS,epar:gS,eparsl:hS,eplus:ES,epsi:SS,Epsilon:bS,epsilon:vS,epsiv:TS,eqcirc:yS,eqcolon:CS,eqsim:RS,eqslantgtr:NS,eqslantless:OS,Equal:AS,equals:IS,EqualTilde:DS,equest:xS,Equilibrium:wS,equiv:MS,equivDD:LS,eqvparsl:kS,erarr:PS,erDot:BS,escr:FS,Escr:US,esdot:GS,Esim:qS,esim:YS,Eta:zS,eta:$S,ETH:HS,eth:VS,Euml:WS,euml:KS,euro:QS,excl:XS,exist:jS,Exists:ZS,expectation:JS,exponentiale:eb,ExponentialE:tb,fallingdotseq:nb,Fcy:rb,fcy:ib,female:ab,ffilig:ob,fflig:sb,ffllig:lb,Ffr:cb,ffr:ub,filig:db,FilledSmallSquare:_b,FilledVerySmallSquare:pb,fjlig:mb,flat:fb,fllig:gb,fltns:hb,fnof:Eb,Fopf:Sb,fopf:bb,forall:vb,ForAll:Tb,fork:yb,forkv:Cb,Fouriertrf:Rb,fpartint:Nb,frac12:Ob,frac13:Ab,frac14:Ib,frac15:Db,frac16:xb,frac18:wb,frac23:Mb,frac25:Lb,frac34:kb,frac35:Pb,frac38:Bb,frac45:Fb,frac56:Ub,frac58:Gb,frac78:qb,frasl:Yb,frown:zb,fscr:$b,Fscr:Hb,gacute:Vb,Gamma:Wb,gamma:Kb,Gammad:Qb,gammad:Xb,gap:jb,Gbreve:Zb,gbreve:Jb,Gcedil:ev,Gcirc:tv,gcirc:nv,Gcy:rv,gcy:iv,Gdot:av,gdot:ov,ge:sv,gE:lv,gEl:cv,gel:uv,geq:dv,geqq:_v,geqslant:pv,gescc:mv,ges:fv,gesdot:gv,gesdoto:hv,gesdotol:Ev,gesl:Sv,gesles:bv,Gfr:vv,gfr:Tv,gg:yv,Gg:Cv,ggg:Rv,gimel:Nv,GJcy:Ov,gjcy:Av,gla:Iv,gl:Dv,glE:xv,glj:wv,gnap:Mv,gnapprox:Lv,gne:kv,gnE:Pv,gneq:Bv,gneqq:Fv,gnsim:Uv,Gopf:Gv,gopf:qv,grave:Yv,GreaterEqual:zv,GreaterEqualLess:$v,GreaterFullEqual:Hv,GreaterGreater:Vv,GreaterLess:Wv,GreaterSlantEqual:Kv,GreaterTilde:Qv,Gscr:Xv,gscr:jv,gsim:Zv,gsime:Jv,gsiml:eT,gtcc:tT,gtcir:nT,gt:rT,GT:iT,Gt:aT,gtdot:oT,gtlPar:sT,gtquest:lT,gtrapprox:cT,gtrarr:uT,gtrdot:dT,gtreqless:_T,gtreqqless:pT,gtrless:mT,gtrsim:fT,gvertneqq:gT,gvnE:hT,Hacek:ET,hairsp:ST,half:bT,hamilt:vT,HARDcy:TT,hardcy:yT,harrcir:CT,harr:RT,hArr:NT,harrw:OT,Hat:AT,hbar:IT,Hcirc:DT,hcirc:xT,hearts:wT,heartsuit:MT,hellip:LT,hercon:kT,hfr:PT,Hfr:BT,HilbertSpace:FT,hksearow:UT,hkswarow:GT,hoarr:qT,homtht:YT,hookleftarrow:zT,hookrightarrow:$T,hopf:HT,Hopf:VT,horbar:WT,HorizontalLine:KT,hscr:QT,Hscr:XT,hslash:jT,Hstrok:ZT,hstrok:JT,HumpDownHump:ey,HumpEqual:ty,hybull:ny,hyphen:ry,Iacute:iy,iacute:ay,ic:oy,Icirc:sy,icirc:ly,Icy:cy,icy:uy,Idot:dy,IEcy:_y,iecy:py,iexcl:my,iff:fy,ifr:gy,Ifr:hy,Igrave:Ey,igrave:Sy,ii:by,iiiint:vy,iiint:Ty,iinfin:yy,iiota:Cy,IJlig:Ry,ijlig:Ny,Imacr:Oy,imacr:Ay,image:Iy,ImaginaryI:Dy,imagline:xy,imagpart:wy,imath:My,Im:Ly,imof:ky,imped:Py,Implies:By,incare:Fy,in:"\u2208",infin:Uy,infintie:Gy,inodot:qy,intcal:Yy,int:zy,Int:$y,integers:Hy,Integral:Vy,intercal:Wy,Intersection:Ky,intlarhk:Qy,intprod:Xy,InvisibleComma:jy,InvisibleTimes:Zy,IOcy:Jy,iocy:e1,Iogon:t1,iogon:n1,Iopf:r1,iopf:i1,Iota:a1,iota:o1,iprod:s1,iquest:l1,iscr:c1,Iscr:u1,isin:d1,isindot:_1,isinE:p1,isins:m1,isinsv:f1,isinv:g1,it:h1,Itilde:E1,itilde:S1,Iukcy:b1,iukcy:v1,Iuml:T1,iuml:y1,Jcirc:C1,jcirc:R1,Jcy:N1,jcy:O1,Jfr:A1,jfr:I1,jmath:D1,Jopf:x1,jopf:w1,Jscr:M1,jscr:L1,Jsercy:k1,jsercy:P1,Jukcy:B1,jukcy:F1,Kappa:U1,kappa:G1,kappav:q1,Kcedil:Y1,kcedil:z1,Kcy:$1,kcy:H1,Kfr:V1,kfr:W1,kgreen:K1,KHcy:Q1,khcy:X1,KJcy:j1,kjcy:Z1,Kopf:J1,kopf:eC,Kscr:tC,kscr:nC,lAarr:rC,Lacute:iC,lacute:aC,laemptyv:oC,lagran:sC,Lambda:lC,lambda:cC,lang:uC,Lang:dC,langd:_C,langle:pC,lap:mC,Laplacetrf:fC,laquo:gC,larrb:hC,larrbfs:EC,larr:SC,Larr:bC,lArr:vC,larrfs:TC,larrhk:yC,larrlp:CC,larrpl:RC,larrsim:NC,larrtl:OC,latail:AC,lAtail:IC,lat:DC,late:xC,lates:wC,lbarr:MC,lBarr:LC,lbbrk:kC,lbrace:PC,lbrack:BC,lbrke:FC,lbrksld:UC,lbrkslu:GC,Lcaron:qC,lcaron:YC,Lcedil:zC,lcedil:$C,lceil:HC,lcub:VC,Lcy:WC,lcy:KC,ldca:QC,ldquo:XC,ldquor:jC,ldrdhar:ZC,ldrushar:JC,ldsh:eR,le:tR,lE:nR,LeftAngleBracket:rR,LeftArrowBar:iR,leftarrow:aR,LeftArrow:oR,Leftarrow:sR,LeftArrowRightArrow:lR,leftarrowtail:cR,LeftCeiling:uR,LeftDoubleBracket:dR,LeftDownTeeVector:_R,LeftDownVectorBar:pR,LeftDownVector:mR,LeftFloor:fR,leftharpoondown:gR,leftharpoonup:hR,leftleftarrows:ER,leftrightarrow:SR,LeftRightArrow:bR,Leftrightarrow:vR,leftrightarrows:TR,leftrightharpoons:yR,leftrightsquigarrow:CR,LeftRightVector:RR,LeftTeeArrow:NR,LeftTee:OR,LeftTeeVector:AR,leftthreetimes:IR,LeftTriangleBar:DR,LeftTriangle:xR,LeftTriangleEqual:wR,LeftUpDownVector:MR,LeftUpTeeVector:LR,LeftUpVectorBar:kR,LeftUpVector:PR,LeftVectorBar:BR,LeftVector:FR,lEg:UR,leg:GR,leq:qR,leqq:YR,leqslant:zR,lescc:$R,les:HR,lesdot:VR,lesdoto:WR,lesdotor:KR,lesg:QR,lesges:XR,lessapprox:jR,lessdot:ZR,lesseqgtr:JR,lesseqqgtr:eN,LessEqualGreater:tN,LessFullEqual:nN,LessGreater:rN,lessgtr:iN,LessLess:aN,lesssim:oN,LessSlantEqual:sN,LessTilde:lN,lfisht:cN,lfloor:uN,Lfr:dN,lfr:_N,lg:pN,lgE:mN,lHar:fN,lhard:gN,lharu:hN,lharul:EN,lhblk:SN,LJcy:bN,ljcy:vN,llarr:TN,ll:yN,Ll:CN,llcorner:RN,Lleftarrow:NN,llhard:ON,lltri:AN,Lmidot:IN,lmidot:DN,lmoustache:xN,lmoust:wN,lnap:MN,lnapprox:LN,lne:kN,lnE:PN,lneq:BN,lneqq:FN,lnsim:UN,loang:GN,loarr:qN,lobrk:YN,longleftarrow:zN,LongLeftArrow:$N,Longleftarrow:HN,longleftrightarrow:VN,LongLeftRightArrow:WN,Longleftrightarrow:KN,longmapsto:QN,longrightarrow:XN,LongRightArrow:jN,Longrightarrow:ZN,looparrowleft:JN,looparrowright:eO,lopar:tO,Lopf:nO,lopf:rO,loplus:iO,lotimes:aO,lowast:oO,lowbar:sO,LowerLeftArrow:lO,LowerRightArrow:cO,loz:uO,lozenge:dO,lozf:_O,lpar:pO,lparlt:mO,lrarr:fO,lrcorner:gO,lrhar:hO,lrhard:EO,lrm:SO,lrtri:bO,lsaquo:vO,lscr:TO,Lscr:yO,lsh:CO,Lsh:RO,lsim:NO,lsime:OO,lsimg:AO,lsqb:IO,lsquo:DO,lsquor:xO,Lstrok:wO,lstrok:MO,ltcc:LO,ltcir:kO,lt:PO,LT:BO,Lt:FO,ltdot:UO,lthree:GO,ltimes:qO,ltlarr:YO,ltquest:zO,ltri:$O,ltrie:HO,ltrif:VO,ltrPar:WO,lurdshar:KO,luruhar:QO,lvertneqq:XO,lvnE:jO,macr:ZO,male:JO,malt:eA,maltese:tA,Map:"\u2905",map:nA,mapsto:rA,mapstodown:iA,mapstoleft:aA,mapstoup:oA,marker:sA,mcomma:lA,Mcy:cA,mcy:uA,mdash:dA,mDDot:_A,measuredangle:pA,MediumSpace:mA,Mellintrf:fA,Mfr:gA,mfr:hA,mho:EA,micro:SA,midast:bA,midcir:vA,mid:TA,middot:yA,minusb:CA,minus:RA,minusd:NA,minusdu:OA,MinusPlus:AA,mlcp:IA,mldr:DA,mnplus:xA,models:wA,Mopf:MA,mopf:LA,mp:kA,mscr:PA,Mscr:BA,mstpos:FA,Mu:UA,mu:GA,multimap:qA,mumap:YA,nabla:zA,Nacute:HA,nacute:VA,nang:WA,nap:KA,napE:QA,napid:XA,napos:jA,napprox:ZA,natural:JA,naturals:eI,natur:tI,nbsp:nI,nbump:rI,nbumpe:iI,ncap:aI,Ncaron:oI,ncaron:sI,Ncedil:lI,ncedil:cI,ncong:uI,ncongdot:dI,ncup:_I,Ncy:pI,ncy:mI,ndash:fI,nearhk:gI,nearr:hI,neArr:EI,nearrow:SI,ne:bI,nedot:vI,NegativeMediumSpace:TI,NegativeThickSpace:yI,NegativeThinSpace:CI,NegativeVeryThinSpace:RI,nequiv:NI,nesear:OI,nesim:AI,NestedGreaterGreater:II,NestedLessLess:DI,NewLine:xI,nexist:wI,nexists:MI,Nfr:LI,nfr:kI,ngE:PI,nge:BI,ngeq:FI,ngeqq:UI,ngeqslant:GI,nges:qI,nGg:YI,ngsim:zI,nGt:$I,ngt:HI,ngtr:VI,nGtv:WI,nharr:KI,nhArr:QI,nhpar:XI,ni:jI,nis:ZI,nisd:JI,niv:eD,NJcy:tD,njcy:nD,nlarr:rD,nlArr:iD,nldr:aD,nlE:oD,nle:sD,nleftarrow:lD,nLeftarrow:cD,nleftrightarrow:uD,nLeftrightarrow:dD,nleq:_D,nleqq:pD,nleqslant:mD,nles:fD,nless:gD,nLl:hD,nlsim:ED,nLt:SD,nlt:bD,nltri:vD,nltrie:TD,nLtv:yD,nmid:CD,NoBreak:RD,NonBreakingSpace:ND,nopf:OD,Nopf:AD,Not:ID,not:DD,NotCongruent:xD,NotCupCap:wD,NotDoubleVerticalBar:MD,NotElement:LD,NotEqual:kD,NotEqualTilde:PD,NotExists:BD,NotGreater:FD,NotGreaterEqual:UD,NotGreaterFullEqual:GD,NotGreaterGreater:qD,NotGreaterLess:YD,NotGreaterSlantEqual:zD,NotGreaterTilde:$D,NotHumpDownHump:HD,NotHumpEqual:VD,notin:WD,notindot:KD,notinE:QD,notinva:XD,notinvb:jD,notinvc:ZD,NotLeftTriangleBar:JD,NotLeftTriangle:ex,NotLeftTriangleEqual:tx,NotLess:nx,NotLessEqual:rx,NotLessGreater:ix,NotLessLess:ax,NotLessSlantEqual:ox,NotLessTilde:sx,NotNestedGreaterGreater:lx,NotNestedLessLess:cx,notni:ux,notniva:dx,notnivb:_x,notnivc:px,NotPrecedes:mx,NotPrecedesEqual:fx,NotPrecedesSlantEqual:gx,NotReverseElement:hx,NotRightTriangleBar:Ex,NotRightTriangle:Sx,NotRightTriangleEqual:bx,NotSquareSubset:vx,NotSquareSubsetEqual:Tx,NotSquareSuperset:yx,NotSquareSupersetEqual:Cx,NotSubset:Rx,NotSubsetEqual:Nx,NotSucceeds:Ox,NotSucceedsEqual:Ax,NotSucceedsSlantEqual:Ix,NotSucceedsTilde:Dx,NotSuperset:xx,NotSupersetEqual:wx,NotTilde:Mx,NotTildeEqual:Lx,NotTildeFullEqual:kx,NotTildeTilde:Px,NotVerticalBar:Bx,nparallel:Fx,npar:Ux,nparsl:Gx,npart:qx,npolint:Yx,npr:zx,nprcue:$x,nprec:Hx,npreceq:Vx,npre:Wx,nrarrc:Kx,nrarr:Qx,nrArr:Xx,nrarrw:jx,nrightarrow:Zx,nRightarrow:Jx,nrtri:ew,nrtrie:tw,nsc:nw,nsccue:rw,nsce:iw,Nscr:aw,nscr:ow,nshortmid:sw,nshortparallel:lw,nsim:cw,nsime:uw,nsimeq:dw,nsmid:_w,nspar:pw,nsqsube:mw,nsqsupe:fw,nsub:gw,nsubE:hw,nsube:Ew,nsubset:Sw,nsubseteq:bw,nsubseteqq:vw,nsucc:Tw,nsucceq:yw,nsup:Cw,nsupE:Rw,nsupe:Nw,nsupset:Ow,nsupseteq:Aw,nsupseteqq:Iw,ntgl:Dw,Ntilde:xw,ntilde:ww,ntlg:Mw,ntriangleleft:Lw,ntrianglelefteq:kw,ntriangleright:Pw,ntrianglerighteq:Bw,Nu:Fw,nu:Uw,num:Gw,numero:qw,numsp:Yw,nvap:zw,nvdash:$w,nvDash:Hw,nVdash:Vw,nVDash:Ww,nvge:Kw,nvgt:Qw,nvHarr:Xw,nvinfin:jw,nvlArr:Zw,nvle:Jw,nvlt:e2,nvltrie:t2,nvrArr:n2,nvrtrie:r2,nvsim:i2,nwarhk:a2,nwarr:o2,nwArr:s2,nwarrow:l2,nwnear:c2,Oacute:u2,oacute:d2,oast:_2,Ocirc:p2,ocirc:m2,ocir:f2,Ocy:g2,ocy:h2,odash:E2,Odblac:S2,odblac:b2,odiv:v2,odot:T2,odsold:y2,OElig:C2,oelig:R2,ofcir:N2,Ofr:O2,ofr:A2,ogon:I2,Ograve:D2,ograve:x2,ogt:w2,ohbar:M2,ohm:L2,oint:k2,olarr:P2,olcir:B2,olcross:F2,oline:U2,olt:G2,Omacr:q2,omacr:Y2,Omega:z2,omega:$2,Omicron:H2,omicron:V2,omid:W2,ominus:K2,Oopf:Q2,oopf:X2,opar:j2,OpenCurlyDoubleQuote:Z2,OpenCurlyQuote:J2,operp:eM,oplus:tM,orarr:nM,Or:rM,or:iM,ord:aM,order:oM,orderof:sM,ordf:lM,ordm:cM,origof:uM,oror:dM,orslope:_M,orv:pM,oS:mM,Oscr:fM,oscr:gM,Oslash:hM,oslash:EM,osol:SM,Otilde:bM,otilde:vM,otimesas:TM,Otimes:yM,otimes:CM,Ouml:RM,ouml:NM,ovbar:OM,OverBar:AM,OverBrace:IM,OverBracket:DM,OverParenthesis:xM,para:wM,parallel:MM,par:LM,parsim:kM,parsl:PM,part:BM,PartialD:FM,Pcy:UM,pcy:GM,percnt:qM,period:YM,permil:zM,perp:$M,pertenk:HM,Pfr:VM,pfr:WM,Phi:KM,phi:QM,phiv:XM,phmmat:jM,phone:ZM,Pi:JM,pi:e4,pitchfork:t4,piv:n4,planck:r4,planckh:i4,plankv:a4,plusacir:o4,plusb:s4,pluscir:l4,plus:c4,plusdo:u4,plusdu:d4,pluse:_4,PlusMinus:p4,plusmn:m4,plussim:f4,plustwo:g4,pm:h4,Poincareplane:E4,pointint:S4,popf:b4,Popf:v4,pound:T4,prap:y4,Pr:C4,pr:R4,prcue:N4,precapprox:O4,prec:A4,preccurlyeq:I4,Precedes:D4,PrecedesEqual:x4,PrecedesSlantEqual:w4,PrecedesTilde:M4,preceq:L4,precnapprox:k4,precneqq:P4,precnsim:B4,pre:F4,prE:U4,precsim:G4,prime:q4,Prime:Y4,primes:z4,prnap:$4,prnE:H4,prnsim:V4,prod:W4,Product:K4,profalar:Q4,profline:X4,profsurf:j4,prop:Z4,Proportional:J4,Proportion:eL,propto:tL,prsim:nL,prurel:rL,Pscr:iL,pscr:aL,Psi:oL,psi:sL,puncsp:lL,Qfr:cL,qfr:uL,qint:dL,qopf:_L,Qopf:pL,qprime:mL,Qscr:fL,qscr:gL,quaternions:hL,quatint:EL,quest:SL,questeq:bL,quot:vL,QUOT:TL,rAarr:yL,race:CL,Racute:RL,racute:NL,radic:OL,raemptyv:AL,rang:IL,Rang:DL,rangd:xL,range:wL,rangle:ML,raquo:LL,rarrap:kL,rarrb:PL,rarrbfs:BL,rarrc:FL,rarr:UL,Rarr:GL,rArr:qL,rarrfs:YL,rarrhk:zL,rarrlp:$L,rarrpl:HL,rarrsim:VL,Rarrtl:WL,rarrtl:KL,rarrw:QL,ratail:XL,rAtail:jL,ratio:ZL,rationals:JL,rbarr:ek,rBarr:tk,RBarr:nk,rbbrk:rk,rbrace:ik,rbrack:ak,rbrke:ok,rbrksld:sk,rbrkslu:lk,Rcaron:ck,rcaron:uk,Rcedil:dk,rcedil:_k,rceil:pk,rcub:mk,Rcy:fk,rcy:gk,rdca:hk,rdldhar:Ek,rdquo:Sk,rdquor:bk,rdsh:vk,real:Tk,realine:yk,realpart:Ck,reals:Rk,Re:Nk,rect:Ok,reg:Ak,REG:Ik,ReverseElement:Dk,ReverseEquilibrium:xk,ReverseUpEquilibrium:wk,rfisht:Mk,rfloor:Lk,rfr:kk,Rfr:Pk,rHar:Bk,rhard:Fk,rharu:Uk,rharul:Gk,Rho:qk,rho:Yk,rhov:zk,RightAngleBracket:$k,RightArrowBar:Hk,rightarrow:Vk,RightArrow:Wk,Rightarrow:Kk,RightArrowLeftArrow:Qk,rightarrowtail:Xk,RightCeiling:jk,RightDoubleBracket:Zk,RightDownTeeVector:Jk,RightDownVectorBar:e3,RightDownVector:t3,RightFloor:n3,rightharpoondown:r3,rightharpoonup:i3,rightleftarrows:a3,rightleftharpoons:o3,rightrightarrows:s3,rightsquigarrow:l3,RightTeeArrow:c3,RightTee:u3,RightTeeVector:d3,rightthreetimes:_3,RightTriangleBar:p3,RightTriangle:m3,RightTriangleEqual:f3,RightUpDownVector:g3,RightUpTeeVector:h3,RightUpVectorBar:E3,RightUpVector:S3,RightVectorBar:b3,RightVector:v3,ring:T3,risingdotseq:y3,rlarr:C3,rlhar:R3,rlm:N3,rmoustache:O3,rmoust:A3,rnmid:I3,roang:D3,roarr:x3,robrk:w3,ropar:M3,ropf:L3,Ropf:k3,roplus:P3,rotimes:B3,RoundImplies:F3,rpar:U3,rpargt:G3,rppolint:q3,rrarr:Y3,Rrightarrow:z3,rsaquo:$3,rscr:H3,Rscr:V3,rsh:W3,Rsh:K3,rsqb:Q3,rsquo:X3,rsquor:j3,rthree:Z3,rtimes:J3,rtri:e5,rtrie:t5,rtrif:n5,rtriltri:r5,RuleDelayed:i5,ruluhar:a5,rx:o5,Sacute:s5,sacute:l5,sbquo:c5,scap:u5,Scaron:d5,scaron:_5,Sc:p5,sc:m5,sccue:f5,sce:g5,scE:h5,Scedil:E5,scedil:S5,Scirc:b5,scirc:v5,scnap:T5,scnE:y5,scnsim:C5,scpolint:R5,scsim:N5,Scy:O5,scy:A5,sdotb:I5,sdot:D5,sdote:x5,searhk:w5,searr:M5,seArr:L5,searrow:k5,sect:P5,semi:B5,seswar:F5,setminus:U5,setmn:G5,sext:q5,Sfr:Y5,sfr:z5,sfrown:$5,sharp:H5,SHCHcy:V5,shchcy:W5,SHcy:K5,shcy:Q5,ShortDownArrow:X5,ShortLeftArrow:j5,shortmid:Z5,shortparallel:J5,ShortRightArrow:eP,ShortUpArrow:tP,shy:nP,Sigma:rP,sigma:iP,sigmaf:aP,sigmav:oP,sim:sP,simdot:lP,sime:cP,simeq:uP,simg:dP,simgE:_P,siml:pP,simlE:mP,simne:fP,simplus:gP,simrarr:hP,slarr:EP,SmallCircle:SP,smallsetminus:bP,smashp:vP,smeparsl:TP,smid:yP,smile:CP,smt:RP,smte:NP,smtes:OP,SOFTcy:AP,softcy:IP,solbar:DP,solb:xP,sol:wP,Sopf:MP,sopf:LP,spades:kP,spadesuit:PP,spar:BP,sqcap:FP,sqcaps:UP,sqcup:GP,sqcups:qP,Sqrt:YP,sqsub:zP,sqsube:$P,sqsubset:HP,sqsubseteq:VP,sqsup:WP,sqsupe:KP,sqsupset:QP,sqsupseteq:XP,square:jP,Square:ZP,SquareIntersection:JP,SquareSubset:e6,SquareSubsetEqual:t6,SquareSuperset:n6,SquareSupersetEqual:r6,SquareUnion:i6,squarf:a6,squ:o6,squf:s6,srarr:l6,Sscr:c6,sscr:u6,ssetmn:d6,ssmile:_6,sstarf:p6,Star:m6,star:f6,starf:g6,straightepsilon:h6,straightphi:E6,strns:S6,sub:b6,Sub:v6,subdot:T6,subE:y6,sube:C6,subedot:R6,submult:N6,subnE:O6,subne:A6,subplus:I6,subrarr:D6,subset:x6,Subset:w6,subseteq:M6,subseteqq:L6,SubsetEqual:k6,subsetneq:P6,subsetneqq:B6,subsim:F6,subsub:U6,subsup:G6,succapprox:q6,succ:Y6,succcurlyeq:z6,Succeeds:$6,SucceedsEqual:H6,SucceedsSlantEqual:V6,SucceedsTilde:W6,succeq:K6,succnapprox:Q6,succneqq:X6,succnsim:j6,succsim:Z6,SuchThat:J6,sum:e7,Sum:t7,sung:n7,sup1:r7,sup2:i7,sup3:a7,sup:o7,Sup:s7,supdot:l7,supdsub:c7,supE:u7,supe:d7,supedot:_7,Superset:p7,SupersetEqual:m7,suphsol:f7,suphsub:g7,suplarr:h7,supmult:E7,supnE:S7,supne:b7,supplus:v7,supset:T7,Supset:y7,supseteq:C7,supseteqq:R7,supsetneq:N7,supsetneqq:O7,supsim:A7,supsub:I7,supsup:D7,swarhk:x7,swarr:w7,swArr:M7,swarrow:L7,swnwar:k7,szlig:P7,Tab:B7,target:F7,Tau:U7,tau:G7,tbrk:q7,Tcaron:Y7,tcaron:z7,Tcedil:$7,tcedil:H7,Tcy:V7,tcy:W7,tdot:K7,telrec:Q7,Tfr:X7,tfr:j7,there4:Z7,therefore:J7,Therefore:e8,Theta:t8,theta:n8,thetasym:r8,thetav:i8,thickapprox:a8,thicksim:o8,ThickSpace:s8,ThinSpace:l8,thinsp:c8,thkap:u8,thksim:d8,THORN:_8,thorn:p8,tilde:m8,Tilde:f8,TildeEqual:g8,TildeFullEqual:h8,TildeTilde:E8,timesbar:S8,timesb:b8,times:v8,timesd:T8,tint:y8,toea:C8,topbot:R8,topcir:N8,top:O8,Topf:A8,topf:I8,topfork:D8,tosa:x8,tprime:w8,trade:M8,TRADE:L8,triangle:k8,triangledown:P8,triangleleft:B8,trianglelefteq:F8,triangleq:U8,triangleright:G8,trianglerighteq:q8,tridot:Y8,trie:z8,triminus:$8,TripleDot:H8,triplus:V8,trisb:W8,tritime:K8,trpezium:Q8,Tscr:X8,tscr:j8,TScy:Z8,tscy:J8,TSHcy:e9,tshcy:t9,Tstrok:n9,tstrok:r9,twixt:i9,twoheadleftarrow:a9,twoheadrightarrow:o9,Uacute:s9,uacute:l9,uarr:c9,Uarr:u9,uArr:d9,Uarrocir:_9,Ubrcy:p9,ubrcy:m9,Ubreve:f9,ubreve:g9,Ucirc:h9,ucirc:E9,Ucy:S9,ucy:b9,udarr:v9,Udblac:T9,udblac:y9,udhar:C9,ufisht:R9,Ufr:N9,ufr:O9,Ugrave:A9,ugrave:I9,uHar:D9,uharl:x9,uharr:w9,uhblk:M9,ulcorn:L9,ulcorner:k9,ulcrop:P9,ultri:B9,Umacr:F9,umacr:U9,uml:G9,UnderBar:q9,UnderBrace:Y9,UnderBracket:z9,UnderParenthesis:$9,Union:H9,UnionPlus:V9,Uogon:W9,uogon:K9,Uopf:Q9,uopf:X9,UpArrowBar:j9,uparrow:Z9,UpArrow:J9,Uparrow:eB,UpArrowDownArrow:tB,updownarrow:nB,UpDownArrow:rB,Updownarrow:iB,UpEquilibrium:aB,upharpoonleft:oB,upharpoonright:sB,uplus:lB,UpperLeftArrow:cB,UpperRightArrow:uB,upsi:dB,Upsi:_B,upsih:pB,Upsilon:mB,upsilon:fB,UpTeeArrow:gB,UpTee:hB,upuparrows:EB,urcorn:SB,urcorner:bB,urcrop:vB,Uring:TB,uring:yB,urtri:CB,Uscr:RB,uscr:NB,utdot:OB,Utilde:AB,utilde:IB,utri:DB,utrif:xB,uuarr:wB,Uuml:MB,uuml:LB,uwangle:kB,vangrt:PB,varepsilon:BB,varkappa:FB,varnothing:UB,varphi:GB,varpi:qB,varpropto:YB,varr:zB,vArr:$B,varrho:HB,varsigma:VB,varsubsetneq:WB,varsubsetneqq:KB,varsupsetneq:QB,varsupsetneqq:XB,vartheta:jB,vartriangleleft:ZB,vartriangleright:JB,vBar:eF,Vbar:tF,vBarv:nF,Vcy:rF,vcy:iF,vdash:aF,vDash:oF,Vdash:sF,VDash:lF,Vdashl:cF,veebar:uF,vee:dF,Vee:_F,veeeq:pF,vellip:mF,verbar:fF,Verbar:gF,vert:hF,Vert:EF,VerticalBar:SF,VerticalLine:bF,VerticalSeparator:vF,VerticalTilde:TF,VeryThinSpace:yF,Vfr:CF,vfr:RF,vltri:NF,vnsub:OF,vnsup:AF,Vopf:IF,vopf:DF,vprop:xF,vrtri:wF,Vscr:MF,vscr:LF,vsubnE:kF,vsubne:PF,vsupnE:BF,vsupne:FF,Vvdash:UF,vzigzag:GF,Wcirc:qF,wcirc:YF,wedbar:zF,wedge:$F,Wedge:HF,wedgeq:VF,weierp:WF,Wfr:KF,wfr:QF,Wopf:XF,wopf:jF,wp:ZF,wr:JF,wreath:eU,Wscr:tU,wscr:nU,xcap:rU,xcirc:iU,xcup:aU,xdtri:oU,Xfr:sU,xfr:lU,xharr:cU,xhArr:uU,Xi:dU,xi:_U,xlarr:pU,xlArr:mU,xmap:fU,xnis:gU,xodot:hU,Xopf:EU,xopf:SU,xoplus:bU,xotime:vU,xrarr:TU,xrArr:yU,Xscr:CU,xscr:RU,xsqcup:NU,xuplus:OU,xutri:AU,xvee:IU,xwedge:DU,Yacute:xU,yacute:wU,YAcy:MU,yacy:LU,Ycirc:kU,ycirc:PU,Ycy:BU,ycy:FU,yen:UU,Yfr:GU,yfr:qU,YIcy:YU,yicy:zU,Yopf:$U,yopf:HU,Yscr:VU,yscr:WU,YUcy:KU,yucy:QU,yuml:XU,Yuml:jU,Zacute:ZU,zacute:JU,Zcaron:eG,zcaron:tG,Zcy:nG,zcy:rG,Zdot:iG,zdot:aG,zeetrf:oG,ZeroWidthSpace:sG,Zeta:lG,zeta:cG,zfr:uG,Zfr:dG,ZHcy:_G,zhcy:pG,zigrarr:mG,zopf:fG,Zopf:gG,Zscr:hG,zscr:EG,zwj:SG,zwnj:bG},Al=vG,$a=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,Kn={},Ts={};function TG(e){var t,n,r=Ts[e];if(r)return r;for(r=Ts[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),/^[0-9a-z]$/i.test(n)?r.push(n):r.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2));for(t=0;t=55296&&l<=57343){if(l>=55296&&l<=56319&&r+1=56320&&u<=57343)){d+=encodeURIComponent(e[r]+e[r+1]),r++;continue}d+="%EF%BF%BD";continue}d+=encodeURIComponent(e[r])}return d}Si.defaultChars=";/?:@&=+$,-_.!~*'()#";Si.componentChars="-_.!~*'()";var yG=Si,ys={};function CG(e){var t,n,r=ys[e];if(r)return r;for(r=ys[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),r.push(n);for(t=0;t=55296&&f<=57343?h+="\uFFFD\uFFFD\uFFFD":h+=String.fromCharCode(f),a+=6;continue}if((u&248)===240&&a+91114111?h+="\uFFFD\uFFFD\uFFFD\uFFFD":(f-=65536,h+=String.fromCharCode(55296+(f>>10),56320+(f&1023))),a+=9;continue}h+="\uFFFD"}return h})}bi.defaultChars=";/?:@&=+$,#";bi.componentChars="";var RG=bi,NG=function(t){var n="";return n+=t.protocol||"",n+=t.slashes?"//":"",n+=t.auth?t.auth+"@":"",t.hostname&&t.hostname.indexOf(":")!==-1?n+="["+t.hostname+"]":n+=t.hostname||"",n+=t.port?":"+t.port:"",n+=t.pathname||"",n+=t.search||"",n+=t.hash||"",n};function pi(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var OG=/^([a-z0-9.+-]+:)/i,AG=/:[0-9]*$/,IG=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,DG=["<",">",'"',"`"," ","\r",` `," "],xG=["{","}","|","\\","^","`"].concat(DG),wG=["'"].concat(xG),Cs=["%","/","?",";","#"].concat(wG),Rs=["/","?","#"],MG=255,Ns=/^[+a-z0-9A-Z_-]{0,63}$/,LG=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Os={javascript:!0,"javascript:":!0},As={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function kG(e,t){if(e&&e instanceof pi)return e;var n=new pi;return n.parse(e,t),n}pi.prototype.parse=function(e,t){var n,r,a,l,u,c=e;if(c=c.trim(),!t&&e.split("#").length===1){var d=IG.exec(c);if(d)return this.pathname=d[1],d[2]&&(this.search=d[2]),this}var g=OG.exec(c);if(g&&(g=g[0],a=g.toLowerCase(),this.protocol=g,c=c.substr(g.length)),(t||g||c.match(/^\/\/[^@\/]+@[^@\/]+/))&&(u=c.substr(0,2)==="//",u&&!(g&&Os[g])&&(c=c.substr(2),this.slashes=!0)),!Os[g]&&(u||g&&!As[g])){var f=-1;for(n=0;n127?E+="x":E+=C[v];if(!E.match(Ns)){var S=b.slice(0,n),A=b.slice(n+1),P=C.match(LG);P&&(S.push(P[1]),A.unshift(P[2])),A.length&&(c=A.join(".")+c),this.hostname=S.join(".");break}}}}this.hostname.length>MG&&(this.hostname=""),y&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var F=c.indexOf("#");F!==-1&&(this.hash=c.substr(F),c=c.slice(0,F));var G=c.indexOf("?");return G!==-1&&(this.search=c.substr(G),c=c.slice(0,G)),c&&(this.pathname=c),As[a]&&this.hostname&&!this.pathname&&(this.pathname=""),this};pi.prototype.parseHost=function(e){var t=AG.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var PG=kG;Kn.encode=yG;Kn.decode=RG;Kn.format=NG;Kn.parse=PG;var Qn={},Il=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Dl=/[\0-\x1F\x7F-\x9F]/,BG=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,xl=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/;Qn.Any=Il;Qn.Cc=Dl;Qn.Cf=BG;Qn.P=$a;Qn.Z=xl;(function(e){function t(x){return Object.prototype.toString.call(x)}function n(x){return t(x)==="[object String]"}var r=Object.prototype.hasOwnProperty;function a(x,Y){return r.call(x,Y)}function l(x){var Y=Array.prototype.slice.call(arguments,1);return Y.forEach(function(V){if(!!V){if(typeof V!="object")throw new TypeError(V+"must be object");Object.keys(V).forEach(function(X){x[X]=V[X]})}}),x}function u(x,Y,V){return[].concat(x.slice(0,Y),V,x.slice(Y+1))}function c(x){return!(x>=55296&&x<=57343||x>=64976&&x<=65007||(x&65535)===65535||(x&65535)===65534||x>=0&&x<=8||x===11||x>=14&&x<=31||x>=127&&x<=159||x>1114111)}function d(x){if(x>65535){x-=65536;var Y=55296+(x>>10),V=56320+(x&1023);return String.fromCharCode(Y,V)}return String.fromCharCode(x)}var g=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,f=/&([a-z#][a-z0-9]{1,31});/gi,h=new RegExp(g.source+"|"+f.source,"gi"),p=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,m=Al;function y(x,Y){var V=0;return a(m,Y)?m[Y]:Y.charCodeAt(0)===35&&p.test(Y)&&(V=Y[1].toLowerCase()==="x"?parseInt(Y.slice(2),16):parseInt(Y.slice(1),10),c(V))?d(V):x}function b(x){return x.indexOf("\\")<0?x:x.replace(g,"$1")}function C(x){return x.indexOf("\\")<0&&x.indexOf("&")<0?x:x.replace(h,function(Y,V,X){return V||y(Y,X)})}var E=/[&<>"]/,v=/[&<>"]/g,N={"&":"&","<":"<",">":">",'"':"""};function S(x){return N[x]}function A(x){return E.test(x)?x.replace(v,S):x}var P=/[.?*+^$[\]\\(){}|-]/g;function F(x){return x.replace(P,"\\$&")}function G(x){switch(x){case 9:case 32:return!0}return!1}function z(x){if(x>=8192&&x<=8202)return!0;switch(x){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}var k=$a;function L(x){return k.test(x)}function w(x){switch(x){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function M(x){return x=x.trim().replace(/\s+/g," "),"\u1E9E".toLowerCase()==="\u1E7E"&&(x=x.replace(/ẞ/g,"\xDF")),x.toLowerCase().toUpperCase()}e.lib={},e.lib.mdurl=Kn,e.lib.ucmicro=Qn,e.assign=l,e.isString=n,e.has=a,e.unescapeMd=b,e.unescapeAll=C,e.isValidEntityCode=c,e.fromCodePoint=d,e.escapeHtml=A,e.arrayReplaceAt=u,e.isSpace=G,e.isWhiteSpace=z,e.isMdAsciiPunct=w,e.isPunctChar=L,e.escapeRE=F,e.normalizeReference=M})(Ze);var vi={},FG=function(t,n,r){var a,l,u,c,d=-1,g=t.posMax,f=t.pos;for(t.pos=n+1,a=1;t.pos32))return d;if(a===41){if(l===0)break;l--}n++}return c===n||l!==0||(d.str=Is(t.slice(c,n)),d.lines=u,d.pos=n,d.ok=!0),d},GG=Ze.unescapeAll,qG=function(t,n,r){var a,l,u=0,c=n,d={ok:!1,pos:0,lines:0,str:""};if(n>=r||(l=t.charCodeAt(n),l!==34&&l!==39&&l!==40))return d;for(n++,l===40&&(l=41);n"+Cn(e[t].content)+""};Qt.code_block=function(e,t,n,r,a){var l=e[t];return""+Cn(e[t].content)+` `};Qt.fence=function(e,t,n,r,a){var l=e[t],u=l.info?zG(l.info).trim():"",c="",d="",g,f,h,p,m;return u&&(h=u.split(/(\s+)/g),c=h[0],d=h.slice(2).join("")),n.highlight?g=n.highlight(l.content,c,d)||Cn(l.content):g=Cn(l.content),g.indexOf("0;)this.endGroup()},i.has=function(s){return this.current.hasOwnProperty(s)||this.builtins.hasOwnProperty(s)},i.get=function(s){return this.current.hasOwnProperty(s)?this.current[s]:this.builtins[s]},i.set=function(s,_,T){if(T===void 0&&(T=!1),T){for(var I=0;I0&&(this.undefStack[this.undefStack.length-1][s]=_)}else{var B=this.undefStack[this.undefStack.length-1];B&&!B.hasOwnProperty(s)&&(B[s]=this.current[s])}_==null?delete this.current[s]:this.current[s]=_},O}(),Iu=Po,Du=Iu;H("\\noexpand",function(O){var i=O.popToken();return O.isExpandable(i.text)&&(i.noexpand=!0,i.treatAsRelax=!0),{tokens:[i],numArgs:0}}),H("\\expandafter",function(O){var i=O.popToken();return O.expandOnce(!0),{tokens:[i],numArgs:0}}),H("\\@firstoftwo",function(O){var i=O.consumeArgs(2);return{tokens:i[0],numArgs:0}}),H("\\@secondoftwo",function(O){var i=O.consumeArgs(2);return{tokens:i[1],numArgs:0}}),H("\\@ifnextchar",function(O){var i=O.consumeArgs(3);O.consumeSpaces();var o=O.future();return i[0].length===1&&i[0][0].text===o.text?{tokens:i[1],numArgs:0}:{tokens:i[2],numArgs:0}}),H("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),H("\\TextOrMath",function(O){var i=O.consumeArgs(2);return O.mode==="text"?{tokens:i[0],numArgs:0}:{tokens:i[1],numArgs:0}});var ls={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};H("\\char",function(O){var i=O.popToken(),o,s="";if(i.text==="'")o=8,i=O.popToken();else if(i.text==='"')o=16,i=O.popToken();else if(i.text==="`")if(i=O.popToken(),i.text[0]==="\\")s=i.text.charCodeAt(1);else{if(i.text==="EOF")throw new l("\\char` missing argument");s=i.text.charCodeAt(0)}else o=10;if(o){if(s=ls[i.text],s==null||s>=o)throw new l("Invalid base-"+o+" digit "+i.text);for(var _;(_=ls[O.future().text])!=null&&_":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};H("\\dots",function(O){var i="\\dotso",o=O.expandAfterFuture().text;return o in cs?i=cs[o]:(o.slice(0,4)==="\\not"||o in at.math&&E.contains(["bin","rel"],at.math[o].group))&&(i="\\dotsb"),i});var pa={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};H("\\dotso",function(O){var i=O.future().text;return i in pa?"\\ldots\\,":"\\ldots"}),H("\\dotsc",function(O){var i=O.future().text;return i in pa&&i!==","?"\\ldots\\,":"\\ldots"}),H("\\cdots",function(O){var i=O.future().text;return i in pa?"\\@cdots\\,":"\\@cdots"}),H("\\dotsb","\\cdots"),H("\\dotsm","\\cdots"),H("\\dotsi","\\!\\cdots"),H("\\dotsx","\\ldots\\,"),H("\\DOTSI","\\relax"),H("\\DOTSB","\\relax"),H("\\DOTSX","\\relax"),H("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),H("\\,","\\tmspace+{3mu}{.1667em}"),H("\\thinspace","\\,"),H("\\>","\\mskip{4mu}"),H("\\:","\\tmspace+{4mu}{.2222em}"),H("\\medspace","\\:"),H("\\;","\\tmspace+{5mu}{.2777em}"),H("\\thickspace","\\;"),H("\\!","\\tmspace-{3mu}{.1667em}"),H("\\negthinspace","\\!"),H("\\negmedspace","\\tmspace-{4mu}{.2222em}"),H("\\negthickspace","\\tmspace-{5mu}{.277em}"),H("\\enspace","\\kern.5em "),H("\\enskip","\\hskip.5em\\relax"),H("\\quad","\\hskip1em\\relax"),H("\\qquad","\\hskip2em\\relax"),H("\\tag","\\@ifstar\\tag@literal\\tag@paren"),H("\\tag@paren","\\tag@literal{({#1})}"),H("\\tag@literal",function(O){if(O.macros.get("\\df@tag"))throw new l("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),H("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),H("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),H("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),H("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),H("\\newline","\\\\\\relax"),H("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var us=Re(pe["Main-Regular"]["T".charCodeAt(0)][1]-.7*pe["Main-Regular"]["A".charCodeAt(0)][1]);H("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+us+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}"),H("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+us+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}"),H("\\hspace","\\@ifstar\\@hspacer\\@hspace"),H("\\@hspace","\\hskip #1\\relax"),H("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),H("\\ordinarycolon",":"),H("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),H("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),H("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),H("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),H("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),H("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),H("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),H("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),H("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),H("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),H("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),H("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),H("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),H("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),H("\u2237","\\dblcolon"),H("\u2239","\\eqcolon"),H("\u2254","\\coloneqq"),H("\u2255","\\eqqcolon"),H("\u2A74","\\Coloneqq"),H("\\ratio","\\vcentcolon"),H("\\coloncolon","\\dblcolon"),H("\\colonequals","\\coloneqq"),H("\\coloncolonequals","\\Coloneqq"),H("\\equalscolon","\\eqqcolon"),H("\\equalscoloncolon","\\Eqqcolon"),H("\\colonminus","\\coloneq"),H("\\coloncolonminus","\\Coloneq"),H("\\minuscolon","\\eqcolon"),H("\\minuscoloncolon","\\Eqcolon"),H("\\coloncolonapprox","\\Colonapprox"),H("\\coloncolonsim","\\Colonsim"),H("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),H("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),H("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),H("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),H("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`\u220C}}"),H("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),H("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),H("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}"),H("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}"),H("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}"),H("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}"),H("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}"),H("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}"),H("\\gvertneqq","\\html@mathml{\\@gvertneqq}{\u2269}"),H("\\lvertneqq","\\html@mathml{\\@lvertneqq}{\u2268}"),H("\\ngeqq","\\html@mathml{\\@ngeqq}{\u2271}"),H("\\ngeqslant","\\html@mathml{\\@ngeqslant}{\u2271}"),H("\\nleqq","\\html@mathml{\\@nleqq}{\u2270}"),H("\\nleqslant","\\html@mathml{\\@nleqslant}{\u2270}"),H("\\nshortmid","\\html@mathml{\\@nshortmid}{\u2224}"),H("\\nshortparallel","\\html@mathml{\\@nshortparallel}{\u2226}"),H("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{\u2288}"),H("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{\u2289}"),H("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{\u228A}"),H("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{\u2ACB}"),H("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{\u228B}"),H("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{\u2ACC}"),H("\\imath","\\html@mathml{\\@imath}{\u0131}"),H("\\jmath","\\html@mathml{\\@jmath}{\u0237}"),H("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`\u27E6}}"),H("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`\u27E7}}"),H("\u27E6","\\llbracket"),H("\u27E7","\\rrbracket"),H("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`\u2983}}"),H("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`\u2984}}"),H("\u2983","\\lBrace"),H("\u2984","\\rBrace"),H("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`\u29B5}}"),H("\u29B5","\\minuso"),H("\\darr","\\downarrow"),H("\\dArr","\\Downarrow"),H("\\Darr","\\Downarrow"),H("\\lang","\\langle"),H("\\rang","\\rangle"),H("\\uarr","\\uparrow"),H("\\uArr","\\Uparrow"),H("\\Uarr","\\Uparrow"),H("\\N","\\mathbb{N}"),H("\\R","\\mathbb{R}"),H("\\Z","\\mathbb{Z}"),H("\\alef","\\aleph"),H("\\alefsym","\\aleph"),H("\\Alpha","\\mathrm{A}"),H("\\Beta","\\mathrm{B}"),H("\\bull","\\bullet"),H("\\Chi","\\mathrm{X}"),H("\\clubs","\\clubsuit"),H("\\cnums","\\mathbb{C}"),H("\\Complex","\\mathbb{C}"),H("\\Dagger","\\ddagger"),H("\\diamonds","\\diamondsuit"),H("\\empty","\\emptyset"),H("\\Epsilon","\\mathrm{E}"),H("\\Eta","\\mathrm{H}"),H("\\exist","\\exists"),H("\\harr","\\leftrightarrow"),H("\\hArr","\\Leftrightarrow"),H("\\Harr","\\Leftrightarrow"),H("\\hearts","\\heartsuit"),H("\\image","\\Im"),H("\\infin","\\infty"),H("\\Iota","\\mathrm{I}"),H("\\isin","\\in"),H("\\Kappa","\\mathrm{K}"),H("\\larr","\\leftarrow"),H("\\lArr","\\Leftarrow"),H("\\Larr","\\Leftarrow"),H("\\lrarr","\\leftrightarrow"),H("\\lrArr","\\Leftrightarrow"),H("\\Lrarr","\\Leftrightarrow"),H("\\Mu","\\mathrm{M}"),H("\\natnums","\\mathbb{N}"),H("\\Nu","\\mathrm{N}"),H("\\Omicron","\\mathrm{O}"),H("\\plusmn","\\pm"),H("\\rarr","\\rightarrow"),H("\\rArr","\\Rightarrow"),H("\\Rarr","\\Rightarrow"),H("\\real","\\Re"),H("\\reals","\\mathbb{R}"),H("\\Reals","\\mathbb{R}"),H("\\Rho","\\mathrm{P}"),H("\\sdot","\\cdot"),H("\\sect","\\S"),H("\\spades","\\spadesuit"),H("\\sub","\\subset"),H("\\sube","\\subseteq"),H("\\supe","\\supseteq"),H("\\Tau","\\mathrm{T}"),H("\\thetasym","\\vartheta"),H("\\weierp","\\wp"),H("\\Zeta","\\mathrm{Z}"),H("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),H("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),H("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),H("\\bra","\\mathinner{\\langle{#1}|}"),H("\\ket","\\mathinner{|{#1}\\rangle}"),H("\\braket","\\mathinner{\\langle{#1}\\rangle}"),H("\\Bra","\\left\\langle#1\\right|"),H("\\Ket","\\left|#1\\right\\rangle");var ds=function(i){return function(o){var s=o.consumeArg().tokens,_=o.consumeArg().tokens,T=o.consumeArg().tokens,I=o.consumeArg().tokens,B=o.macros.get("|"),$=o.macros.get("\\|");o.macros.beginGroup();var W=function(fe){return function(Ee){i&&(Ee.macros.set("|",B),T.length&&Ee.macros.set("\\|",$));var Ce=fe;if(!fe&&T.length){var Oe=Ee.future();Oe.text==="|"&&(Ee.popToken(),Ce=!0)}return{tokens:Ce?T:_,numArgs:0}}};o.macros.set("|",W(!1)),T.length&&o.macros.set("\\|",W(!0));var ne=o.consumeArg().tokens,_e=o.expandTokens([].concat(I,ne,s));return o.macros.endGroup(),{tokens:_e.reverse(),numArgs:0}}};H("\\bra@ket",ds(!1)),H("\\bra@set",ds(!0)),H("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}"),H("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}"),H("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}"),H("\\angln","{\\angl n}"),H("\\blue","\\textcolor{##6495ed}{#1}"),H("\\orange","\\textcolor{##ffa500}{#1}"),H("\\pink","\\textcolor{##ff00af}{#1}"),H("\\red","\\textcolor{##df0030}{#1}"),H("\\green","\\textcolor{##28ae7b}{#1}"),H("\\gray","\\textcolor{gray}{#1}"),H("\\purple","\\textcolor{##9d38bd}{#1}"),H("\\blueA","\\textcolor{##ccfaff}{#1}"),H("\\blueB","\\textcolor{##80f6ff}{#1}"),H("\\blueC","\\textcolor{##63d9ea}{#1}"),H("\\blueD","\\textcolor{##11accd}{#1}"),H("\\blueE","\\textcolor{##0c7f99}{#1}"),H("\\tealA","\\textcolor{##94fff5}{#1}"),H("\\tealB","\\textcolor{##26edd5}{#1}"),H("\\tealC","\\textcolor{##01d1c1}{#1}"),H("\\tealD","\\textcolor{##01a995}{#1}"),H("\\tealE","\\textcolor{##208170}{#1}"),H("\\greenA","\\textcolor{##b6ffb0}{#1}"),H("\\greenB","\\textcolor{##8af281}{#1}"),H("\\greenC","\\textcolor{##74cf70}{#1}"),H("\\greenD","\\textcolor{##1fab54}{#1}"),H("\\greenE","\\textcolor{##0d923f}{#1}"),H("\\goldA","\\textcolor{##ffd0a9}{#1}"),H("\\goldB","\\textcolor{##ffbb71}{#1}"),H("\\goldC","\\textcolor{##ff9c39}{#1}"),H("\\goldD","\\textcolor{##e07d10}{#1}"),H("\\goldE","\\textcolor{##a75a05}{#1}"),H("\\redA","\\textcolor{##fca9a9}{#1}"),H("\\redB","\\textcolor{##ff8482}{#1}"),H("\\redC","\\textcolor{##f9685d}{#1}"),H("\\redD","\\textcolor{##e84d39}{#1}"),H("\\redE","\\textcolor{##bc2612}{#1}"),H("\\maroonA","\\textcolor{##ffbde0}{#1}"),H("\\maroonB","\\textcolor{##ff92c6}{#1}"),H("\\maroonC","\\textcolor{##ed5fa6}{#1}"),H("\\maroonD","\\textcolor{##ca337c}{#1}"),H("\\maroonE","\\textcolor{##9e034e}{#1}"),H("\\purpleA","\\textcolor{##ddd7ff}{#1}"),H("\\purpleB","\\textcolor{##c6b9fc}{#1}"),H("\\purpleC","\\textcolor{##aa87ff}{#1}"),H("\\purpleD","\\textcolor{##7854ab}{#1}"),H("\\purpleE","\\textcolor{##543b78}{#1}"),H("\\mintA","\\textcolor{##f5f9e8}{#1}"),H("\\mintB","\\textcolor{##edf2df}{#1}"),H("\\mintC","\\textcolor{##e0e5cc}{#1}"),H("\\grayA","\\textcolor{##f6f7f7}{#1}"),H("\\grayB","\\textcolor{##f0f1f2}{#1}"),H("\\grayC","\\textcolor{##e3e5e6}{#1}"),H("\\grayD","\\textcolor{##d6d8da}{#1}"),H("\\grayE","\\textcolor{##babec2}{#1}"),H("\\grayF","\\textcolor{##888d93}{#1}"),H("\\grayG","\\textcolor{##626569}{#1}"),H("\\grayH","\\textcolor{##3b3e40}{#1}"),H("\\grayI","\\textcolor{##21242c}{#1}"),H("\\kaBlue","\\textcolor{##314453}{#1}"),H("\\kaGreen","\\textcolor{##71B307}{#1}");var _s={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},xu=function(){function O(o,s,_){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=s,this.expansionCount=0,this.feed(o),this.macros=new Au(Du,s.macros),this.mode=_,this.stack=[]}var i=O.prototype;return i.feed=function(s){this.lexer=new ss(s,this.settings)},i.switchMode=function(s){this.mode=s},i.beginGroup=function(){this.macros.beginGroup()},i.endGroup=function(){this.macros.endGroup()},i.endGroups=function(){this.macros.endGroups()},i.future=function(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]},i.popToken=function(){return this.future(),this.stack.pop()},i.pushToken=function(s){this.stack.push(s)},i.pushTokens=function(s){var _;(_=this.stack).push.apply(_,s)},i.scanArgument=function(s){var _,T,I;if(s){if(this.consumeSpaces(),this.future().text!=="[")return null;_=this.popToken();var B=this.consumeArg(["]"]);I=B.tokens,T=B.end}else{var $=this.consumeArg();I=$.tokens,_=$.start,T=$.end}return this.pushToken(new Yt("EOF",T.loc)),this.pushTokens(I),_.range(T,"")},i.consumeSpaces=function(){for(;;){var s=this.future();if(s.text===" ")this.stack.pop();else break}},i.consumeArg=function(s){var _=[],T=s&&s.length>0;T||this.consumeSpaces();var I=this.future(),B,$=0,W=0;do{if(B=this.popToken(),_.push(B),B.text==="{")++$;else if(B.text==="}"){if(--$,$===-1)throw new l("Extra }",B)}else if(B.text==="EOF")throw new l("Unexpected end of input in a macro argument, expected '"+(s&&T?s[W]:"}")+"'",B);if(s&&T)if(($===0||$===1&&s[W]==="{")&&B.text===s[W]){if(++W,W===s.length){_.splice(-W,W);break}}else W=0}while($!==0||T);return I.text==="{"&&_[_.length-1].text==="}"&&(_.pop(),_.shift()),_.reverse(),{tokens:_,start:I,end:B}},i.consumeArgs=function(s,_){if(_){if(_.length!==s+1)throw new l("The length of delimiters doesn't match the number of args!");for(var T=_[0],I=0;Ithis.settings.maxExpand)throw new l("Too many expansions: infinite loop or need to increase maxExpand setting");var B=I.tokens,$=this.consumeArgs(I.numArgs,I.delimiters);if(I.numArgs){B=B.slice();for(var W=B.length-1;W>=0;--W){var ne=B[W];if(ne.text==="#"){if(W===0)throw new l("Incomplete placeholder at end of macro body",ne);if(ne=B[--W],ne.text==="#")B.splice(W+1,1);else if(/^[1-9]$/.test(ne.text)){var _e;(_e=B).splice.apply(_e,[W,2].concat($[+ne.text-1]))}else throw new l("Not a valid argument number",ne)}}}return this.pushTokens(B),B},i.expandAfterFuture=function(){return this.expandOnce(),this.future()},i.expandNextToken=function(){for(;;){var s=this.expandOnce();if(s instanceof Yt)return s.treatAsRelax&&(s.text="\\relax"),this.stack.pop()}throw new Error},i.expandMacro=function(s){return this.macros.has(s)?this.expandTokens([new Yt(s)]):void 0},i.expandTokens=function(s){var _=[],T=this.stack.length;for(this.pushTokens(s);this.stack.length>T;){var I=this.expandOnce(!0);I instanceof Yt&&(I.treatAsRelax&&(I.noexpand=!1,I.treatAsRelax=!1),_.push(this.stack.pop()))}return _},i.expandMacroAsText=function(s){var _=this.expandMacro(s);return _&&_.map(function(T){return T.text}).join("")},i._getExpansion=function(s){var _=this.macros.get(s);if(_==null)return _;if(s.length===1){var T=this.lexer.catcodes[s];if(T!=null&&T!==13)return}var I=typeof _=="function"?_(this):_;if(typeof I=="string"){var B=0;if(I.indexOf("#")!==-1)for(var $=I.replace(/##/g,"");$.indexOf("#"+(B+1))!==-1;)++B;for(var W=new ss(I,this.settings),ne=[],_e=W.lex();_e.text!=="EOF";)ne.push(_e),_e=W.lex();ne.reverse();var ge={tokens:ne,numArgs:B};return ge}return I},i.isDefined=function(s){return this.macros.has(s)||ln.hasOwnProperty(s)||at.math.hasOwnProperty(s)||at.text.hasOwnProperty(s)||_s.hasOwnProperty(s)},i.isExpandable=function(s){var _=this.macros.get(s);return _!=null?typeof _=="string"||typeof _=="function"||!_.unexpandable:ln.hasOwnProperty(s)&&!ln[s].primitive},O}(),ps=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,Xr=Object.freeze({"\u208A":"+","\u208B":"-","\u208C":"=","\u208D":"(","\u208E":")","\u2080":"0","\u2081":"1","\u2082":"2","\u2083":"3","\u2084":"4","\u2085":"5","\u2086":"6","\u2087":"7","\u2088":"8","\u2089":"9","\u2090":"a","\u2091":"e","\u2095":"h","\u1D62":"i","\u2C7C":"j","\u2096":"k","\u2097":"l","\u2098":"m","\u2099":"n","\u2092":"o","\u209A":"p","\u1D63":"r","\u209B":"s","\u209C":"t","\u1D64":"u","\u1D65":"v","\u2093":"x","\u1D66":"\u03B2","\u1D67":"\u03B3","\u1D68":"\u03C1","\u1D69":"\u03D5","\u1D6A":"\u03C7","\u207A":"+","\u207B":"-","\u207C":"=","\u207D":"(","\u207E":")","\u2070":"0","\xB9":"1","\xB2":"2","\xB3":"3","\u2074":"4","\u2075":"5","\u2076":"6","\u2077":"7","\u2078":"8","\u2079":"9","\u1D2C":"A","\u1D2E":"B","\u1D30":"D","\u1D31":"E","\u1D33":"G","\u1D34":"H","\u1D35":"I","\u1D36":"J","\u1D37":"K","\u1D38":"L","\u1D39":"M","\u1D3A":"N","\u1D3C":"O","\u1D3E":"P","\u1D3F":"R","\u1D40":"T","\u1D41":"U","\u2C7D":"V","\u1D42":"W","\u1D43":"a","\u1D47":"b","\u1D9C":"c","\u1D48":"d","\u1D49":"e","\u1DA0":"f","\u1D4D":"g",\u02B0:"h","\u2071":"i",\u02B2:"j","\u1D4F":"k",\u02E1:"l","\u1D50":"m",\u207F:"n","\u1D52":"o","\u1D56":"p",\u02B3:"r",\u02E2:"s","\u1D57":"t","\u1D58":"u","\u1D5B":"v",\u02B7:"w",\u02E3:"x",\u02B8:"y","\u1DBB":"z","\u1D5D":"\u03B2","\u1D5E":"\u03B3","\u1D5F":"\u03B4","\u1D60":"\u03D5","\u1D61":"\u03C7","\u1DBF":"\u03B8"}),ma={"\u0301":{text:"\\'",math:"\\acute"},"\u0300":{text:"\\`",math:"\\grave"},"\u0308":{text:'\\"',math:"\\ddot"},"\u0303":{text:"\\~",math:"\\tilde"},"\u0304":{text:"\\=",math:"\\bar"},"\u0306":{text:"\\u",math:"\\breve"},"\u030C":{text:"\\v",math:"\\check"},"\u0302":{text:"\\^",math:"\\hat"},"\u0307":{text:"\\.",math:"\\dot"},"\u030A":{text:"\\r",math:"\\mathring"},"\u030B":{text:"\\H"},"\u0327":{text:"\\c"}},ms={\u00E1:"a\u0301",\u00E0:"a\u0300",\u00E4:"a\u0308",\u01DF:"a\u0308\u0304",\u00E3:"a\u0303",\u0101:"a\u0304",\u0103:"a\u0306",\u1EAF:"a\u0306\u0301",\u1EB1:"a\u0306\u0300",\u1EB5:"a\u0306\u0303",\u01CE:"a\u030C",\u00E2:"a\u0302",\u1EA5:"a\u0302\u0301",\u1EA7:"a\u0302\u0300",\u1EAB:"a\u0302\u0303",\u0227:"a\u0307",\u01E1:"a\u0307\u0304",\u00E5:"a\u030A",\u01FB:"a\u030A\u0301",\u1E03:"b\u0307",\u0107:"c\u0301",\u1E09:"c\u0327\u0301",\u010D:"c\u030C",\u0109:"c\u0302",\u010B:"c\u0307",\u00E7:"c\u0327",\u010F:"d\u030C",\u1E0B:"d\u0307",\u1E11:"d\u0327",\u00E9:"e\u0301",\u00E8:"e\u0300",\u00EB:"e\u0308",\u1EBD:"e\u0303",\u0113:"e\u0304",\u1E17:"e\u0304\u0301",\u1E15:"e\u0304\u0300",\u0115:"e\u0306",\u1E1D:"e\u0327\u0306",\u011B:"e\u030C",\u00EA:"e\u0302",\u1EBF:"e\u0302\u0301",\u1EC1:"e\u0302\u0300",\u1EC5:"e\u0302\u0303",\u0117:"e\u0307",\u0229:"e\u0327",\u1E1F:"f\u0307",\u01F5:"g\u0301",\u1E21:"g\u0304",\u011F:"g\u0306",\u01E7:"g\u030C",\u011D:"g\u0302",\u0121:"g\u0307",\u0123:"g\u0327",\u1E27:"h\u0308",\u021F:"h\u030C",\u0125:"h\u0302",\u1E23:"h\u0307",\u1E29:"h\u0327",\u00ED:"i\u0301",\u00EC:"i\u0300",\u00EF:"i\u0308",\u1E2F:"i\u0308\u0301",\u0129:"i\u0303",\u012B:"i\u0304",\u012D:"i\u0306",\u01D0:"i\u030C",\u00EE:"i\u0302",\u01F0:"j\u030C",\u0135:"j\u0302",\u1E31:"k\u0301",\u01E9:"k\u030C",\u0137:"k\u0327",\u013A:"l\u0301",\u013E:"l\u030C",\u013C:"l\u0327",\u1E3F:"m\u0301",\u1E41:"m\u0307",\u0144:"n\u0301",\u01F9:"n\u0300",\u00F1:"n\u0303",\u0148:"n\u030C",\u1E45:"n\u0307",\u0146:"n\u0327",\u00F3:"o\u0301",\u00F2:"o\u0300",\u00F6:"o\u0308",\u022B:"o\u0308\u0304",\u00F5:"o\u0303",\u1E4D:"o\u0303\u0301",\u1E4F:"o\u0303\u0308",\u022D:"o\u0303\u0304",\u014D:"o\u0304",\u1E53:"o\u0304\u0301",\u1E51:"o\u0304\u0300",\u014F:"o\u0306",\u01D2:"o\u030C",\u00F4:"o\u0302",\u1ED1:"o\u0302\u0301",\u1ED3:"o\u0302\u0300",\u1ED7:"o\u0302\u0303",\u022F:"o\u0307",\u0231:"o\u0307\u0304",\u0151:"o\u030B",\u1E55:"p\u0301",\u1E57:"p\u0307",\u0155:"r\u0301",\u0159:"r\u030C",\u1E59:"r\u0307",\u0157:"r\u0327",\u015B:"s\u0301",\u1E65:"s\u0301\u0307",\u0161:"s\u030C",\u1E67:"s\u030C\u0307",\u015D:"s\u0302",\u1E61:"s\u0307",\u015F:"s\u0327",\u1E97:"t\u0308",\u0165:"t\u030C",\u1E6B:"t\u0307",\u0163:"t\u0327",\u00FA:"u\u0301",\u00F9:"u\u0300",\u00FC:"u\u0308",\u01D8:"u\u0308\u0301",\u01DC:"u\u0308\u0300",\u01D6:"u\u0308\u0304",\u01DA:"u\u0308\u030C",\u0169:"u\u0303",\u1E79:"u\u0303\u0301",\u016B:"u\u0304",\u1E7B:"u\u0304\u0308",\u016D:"u\u0306",\u01D4:"u\u030C",\u00FB:"u\u0302",\u016F:"u\u030A",\u0171:"u\u030B",\u1E7D:"v\u0303",\u1E83:"w\u0301",\u1E81:"w\u0300",\u1E85:"w\u0308",\u0175:"w\u0302",\u1E87:"w\u0307",\u1E98:"w\u030A",\u1E8D:"x\u0308",\u1E8B:"x\u0307",\u00FD:"y\u0301",\u1EF3:"y\u0300",\u00FF:"y\u0308",\u1EF9:"y\u0303",\u0233:"y\u0304",\u0177:"y\u0302",\u1E8F:"y\u0307",\u1E99:"y\u030A",\u017A:"z\u0301",\u017E:"z\u030C",\u1E91:"z\u0302",\u017C:"z\u0307",\u00C1:"A\u0301",\u00C0:"A\u0300",\u00C4:"A\u0308",\u01DE:"A\u0308\u0304",\u00C3:"A\u0303",\u0100:"A\u0304",\u0102:"A\u0306",\u1EAE:"A\u0306\u0301",\u1EB0:"A\u0306\u0300",\u1EB4:"A\u0306\u0303",\u01CD:"A\u030C",\u00C2:"A\u0302",\u1EA4:"A\u0302\u0301",\u1EA6:"A\u0302\u0300",\u1EAA:"A\u0302\u0303",\u0226:"A\u0307",\u01E0:"A\u0307\u0304",\u00C5:"A\u030A",\u01FA:"A\u030A\u0301",\u1E02:"B\u0307",\u0106:"C\u0301",\u1E08:"C\u0327\u0301",\u010C:"C\u030C",\u0108:"C\u0302",\u010A:"C\u0307",\u00C7:"C\u0327",\u010E:"D\u030C",\u1E0A:"D\u0307",\u1E10:"D\u0327",\u00C9:"E\u0301",\u00C8:"E\u0300",\u00CB:"E\u0308",\u1EBC:"E\u0303",\u0112:"E\u0304",\u1E16:"E\u0304\u0301",\u1E14:"E\u0304\u0300",\u0114:"E\u0306",\u1E1C:"E\u0327\u0306",\u011A:"E\u030C",\u00CA:"E\u0302",\u1EBE:"E\u0302\u0301",\u1EC0:"E\u0302\u0300",\u1EC4:"E\u0302\u0303",\u0116:"E\u0307",\u0228:"E\u0327",\u1E1E:"F\u0307",\u01F4:"G\u0301",\u1E20:"G\u0304",\u011E:"G\u0306",\u01E6:"G\u030C",\u011C:"G\u0302",\u0120:"G\u0307",\u0122:"G\u0327",\u1E26:"H\u0308",\u021E:"H\u030C",\u0124:"H\u0302",\u1E22:"H\u0307",\u1E28:"H\u0327",\u00CD:"I\u0301",\u00CC:"I\u0300",\u00CF:"I\u0308",\u1E2E:"I\u0308\u0301",\u0128:"I\u0303",\u012A:"I\u0304",\u012C:"I\u0306",\u01CF:"I\u030C",\u00CE:"I\u0302",\u0130:"I\u0307",\u0134:"J\u0302",\u1E30:"K\u0301",\u01E8:"K\u030C",\u0136:"K\u0327",\u0139:"L\u0301",\u013D:"L\u030C",\u013B:"L\u0327",\u1E3E:"M\u0301",\u1E40:"M\u0307",\u0143:"N\u0301",\u01F8:"N\u0300",\u00D1:"N\u0303",\u0147:"N\u030C",\u1E44:"N\u0307",\u0145:"N\u0327",\u00D3:"O\u0301",\u00D2:"O\u0300",\u00D6:"O\u0308",\u022A:"O\u0308\u0304",\u00D5:"O\u0303",\u1E4C:"O\u0303\u0301",\u1E4E:"O\u0303\u0308",\u022C:"O\u0303\u0304",\u014C:"O\u0304",\u1E52:"O\u0304\u0301",\u1E50:"O\u0304\u0300",\u014E:"O\u0306",\u01D1:"O\u030C",\u00D4:"O\u0302",\u1ED0:"O\u0302\u0301",\u1ED2:"O\u0302\u0300",\u1ED6:"O\u0302\u0303",\u022E:"O\u0307",\u0230:"O\u0307\u0304",\u0150:"O\u030B",\u1E54:"P\u0301",\u1E56:"P\u0307",\u0154:"R\u0301",\u0158:"R\u030C",\u1E58:"R\u0307",\u0156:"R\u0327",\u015A:"S\u0301",\u1E64:"S\u0301\u0307",\u0160:"S\u030C",\u1E66:"S\u030C\u0307",\u015C:"S\u0302",\u1E60:"S\u0307",\u015E:"S\u0327",\u0164:"T\u030C",\u1E6A:"T\u0307",\u0162:"T\u0327",\u00DA:"U\u0301",\u00D9:"U\u0300",\u00DC:"U\u0308",\u01D7:"U\u0308\u0301",\u01DB:"U\u0308\u0300",\u01D5:"U\u0308\u0304",\u01D9:"U\u0308\u030C",\u0168:"U\u0303",\u1E78:"U\u0303\u0301",\u016A:"U\u0304",\u1E7A:"U\u0304\u0308",\u016C:"U\u0306",\u01D3:"U\u030C",\u00DB:"U\u0302",\u016E:"U\u030A",\u0170:"U\u030B",\u1E7C:"V\u0303",\u1E82:"W\u0301",\u1E80:"W\u0300",\u1E84:"W\u0308",\u0174:"W\u0302",\u1E86:"W\u0307",\u1E8C:"X\u0308",\u1E8A:"X\u0307",\u00DD:"Y\u0301",\u1EF2:"Y\u0300",\u0178:"Y\u0308",\u1EF8:"Y\u0303",\u0232:"Y\u0304",\u0176:"Y\u0302",\u1E8E:"Y\u0307",\u0179:"Z\u0301",\u017D:"Z\u030C",\u1E90:"Z\u0302",\u017B:"Z\u0307",\u03AC:"\u03B1\u0301",\u1F70:"\u03B1\u0300",\u1FB1:"\u03B1\u0304",\u1FB0:"\u03B1\u0306",\u03AD:"\u03B5\u0301",\u1F72:"\u03B5\u0300",\u03AE:"\u03B7\u0301",\u1F74:"\u03B7\u0300",\u03AF:"\u03B9\u0301",\u1F76:"\u03B9\u0300",\u03CA:"\u03B9\u0308",\u0390:"\u03B9\u0308\u0301",\u1FD2:"\u03B9\u0308\u0300",\u1FD1:"\u03B9\u0304",\u1FD0:"\u03B9\u0306",\u03CC:"\u03BF\u0301",\u1F78:"\u03BF\u0300",\u03CD:"\u03C5\u0301",\u1F7A:"\u03C5\u0300",\u03CB:"\u03C5\u0308",\u03B0:"\u03C5\u0308\u0301",\u1FE2:"\u03C5\u0308\u0300",\u1FE1:"\u03C5\u0304",\u1FE0:"\u03C5\u0306",\u03CE:"\u03C9\u0301",\u1F7C:"\u03C9\u0300",\u038E:"\u03A5\u0301",\u1FEA:"\u03A5\u0300",\u03AB:"\u03A5\u0308",\u1FE9:"\u03A5\u0304",\u1FE8:"\u03A5\u0306",\u038F:"\u03A9\u0301",\u1FFA:"\u03A9\u0300"},fs=function(){function O(o,s){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new xu(o,s,this.mode),this.settings=s,this.leftrightDepth=0}var i=O.prototype;return i.expect=function(s,_){if(_===void 0&&(_=!0),this.fetch().text!==s)throw new l("Expected '"+s+"', got '"+this.fetch().text+"'",this.fetch());_&&this.consume()},i.consume=function(){this.nextToken=null},i.fetch=function(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken},i.switchMode=function(s){this.mode=s,this.gullet.switchMode(s)},i.parse=function(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var s=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),s}finally{this.gullet.endGroups()}},i.subparse=function(s){var _=this.nextToken;this.consume(),this.gullet.pushToken(new Yt("}")),this.gullet.pushTokens(s);var T=this.parseExpression(!1);return this.expect("}"),this.nextToken=_,T},i.parseExpression=function(s,_){for(var T=[];;){this.mode==="math"&&this.consumeSpaces();var I=this.fetch();if(O.endOfExpression.indexOf(I.text)!==-1||_&&I.text===_||s&&ln[I.text]&&ln[I.text].infix)break;var B=this.parseAtom(_);if(B){if(B.type==="internal")continue}else break;T.push(B)}return this.mode==="text"&&this.formLigatures(T),this.handleInfixNodes(T)},i.handleInfixNodes=function(s){for(var _=-1,T,I=0;I=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+_[0]+'" used in math mode',s);var W=at[this.mode][_].group,ne=kt.range(s),_e;if(Mi.hasOwnProperty(W)){var ge=W;_e={type:"atom",mode:this.mode,family:ge,loc:ne,text:_}}else _e={type:W,mode:this.mode,loc:ne,text:_};$=_e}else if(_.charCodeAt(0)>=128)this.settings.strict&&(se(_.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+_[0]+'" used in math mode',s):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+_[0]+'"'+(" ("+_.charCodeAt(0)+")"),s)),$={type:"textord",mode:"text",loc:kt.range(s),text:_};else return null;if(this.consume(),B)for(var fe=0;fe0?e.src.charCodeAt(t-1):-1,r=t+1<=a?e.src.charCodeAt(t+1):-1,(n===32||n===9||r>=48&&r<=57)&&(u=!1),(r===32||r===9)&&(l=!1),{can_open:l,can_close:u}}function _Z(e,t){var n,r,a,l,u;if(e.src[e.pos]!=="$")return!1;if(l=dl(e,e.pos),!l.can_open)return t||(e.pending+="$"),e.pos+=1,!0;for(n=e.pos+1,r=n;(r=e.src.indexOf("$",r))!==-1;){for(u=r-1;e.src[u]==="\\";)u-=1;if((r-u)%2==1)break;r+=1}return r===-1?(t||(e.pending+="$"),e.pos=n,!0):r-n===0?(t||(e.pending+="$$"),e.pos=n+1,!0):(l=dl(e,r),l.can_close?(t||(a=e.push("math_inline","math",0),a.markup="$",a.content=e.src.slice(n,r)),e.pos=r+1,!0):(t||(e.pending+="$"),e.pos=n,!0))}function pZ(e,t,n,r){var a,l,u,c,d=!1,g,f=e.bMarks[t]+e.tShift[t],h=e.eMarks[t];if(f+2>h||e.src.slice(f,f+2)!=="$$")return!1;if(f+=2,a=e.src.slice(f,h),r)return!0;for(a.trim().slice(-2)==="$$"&&(a=a.trim().slice(0,-2),d=!0),u=t;!d&&(u++,!(u>=n||(f=e.bMarks[u]+e.tShift[u],h=e.eMarks[u],f/g,">").replace(/"/g,""").replace(/'/g,"'")}var mZ=function(t,n){n=n||{},n.katex&&(Pa=n.katex),n.blockClass||(n.blockClass="");var r=function(c){n.displayMode=!1;try{return Pa.renderToString(c,n)}catch(d){return n.throwOnError&&console.log(d),`${ui(c)}`}},a=function(c,d){return r(c[d].content)},l=function(c){n.displayMode=!0;try{return`

`+Pa.renderToString(c,n)+"

"}catch(d){return n.throwOnError&&console.log(d),`

${ui(c)}

`}},u=function(c,d){return l(c[d].content)+` -`};t.inline.ruler.after("escape","math_inline",_Z),t.block.ruler.after("blockquote","math_block",pZ,{alt:["paragraph","reference","blockquote","list"]}),t.renderer.rules.math_inline=a,t.renderer.rules.math_block=u};const _n={mdi:null,formatMsg:e=>{const t=e.match(/]*?>/g);return t&&t.some(n=>{e=e.replace(n,`
${n}
`)}),e},highlightBlock:(e,t="")=>`
${t}${$A.L("\u590D\u5236\u4EE3\u7801")}
${e}
`};function fZ(e){return e==="..."?'':(_n.mdi===null&&(_n.mdi=new cz({linkify:!0,highlight(t,n){if(!!(n&&ka.getLanguage(n))){const a=n!=null?n:"";return _n.highlightBlock(ka.highlight(t,{language:a}).value,a)}return _n.highlightBlock(ka.highlightAuto(t).value,"")}}),_n.mdi.use(dZ,{attrs:{target:"_blank",rel:"noopener"}}),_n.mdi.use(mZ,{blockClass:"katexmath-block rounded-md p-[10px]",errorColor:" #cc0000"})),_n.formatMsg(_n.mdi.render(e)))}var gZ=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"markdown-body",domProps:{innerHTML:e._s(e.html)},on:{click:e.onCLick}})},hZ=[];const EZ={name:"DialogMarkdown",props:{text:{type:String,default:""}},data(){return{mdi:null}},mounted(){this.copyCodeBlock()},updated(){this.copyCodeBlock()},computed:{html({text:e}){return fZ(e)}},methods:{copyCodeBlock(){this.$el.querySelectorAll(".code-block-wrapper").forEach(t=>{const n=t.querySelector(".code-block-header__copy"),r=t.querySelector(".code-block-body");n&&r&&n.getAttribute("data-copy")!=="click"&&(n.setAttribute("data-copy","click"),n.addEventListener("click",()=>{var a,l,u;(a=navigator.clipboard)!=null&&a.writeText?navigator.clipboard.writeText((l=r.textContent)!=null?l:""):this.copyText({text:(u=r.textContent)!=null?u:"",origin:!0})}))})},copyText(e){const t={origin:!0,...e};let n;t.origin?n=document.createElement("textarea"):n=document.createElement("input"),n.setAttribute("readonly","readonly"),n.value=t.text,document.body.appendChild(n),n.select(),document.execCommand("copy")&&document.execCommand("copy"),document.body.removeChild(n)},onCLick(e){this.$emit("click",e)}}},_l={};var SZ=Kt(EZ,gZ,hZ,!1,bZ,null,null,null);function bZ(e){for(let t in _l)this[t]=_l[t]}var vZ=function(){return SZ.exports}(),TZ=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"dialog-view",class:e.viewClass,attrs:{"data-id":e.msgData.id}},[e.dialogType==="group"?n("div",{staticClass:"dialog-username"},[n("UserAvatar",{attrs:{userid:e.msgData.userid,"show-icon":!1,"show-name":!0,"click-open-dialog":""}})],1):e._e(),n("div",{directives:[{name:"longpress",rawName:"v-longpress",value:{callback:e.handleLongpress,delay:300},expression:"{callback: handleLongpress, delay: 300}"}],staticClass:"dialog-head",class:e.headClass},[!e.hideReply&&e.msgData.reply_data?n("div",{staticClass:"dialog-reply no-dark-content",on:{click:e.viewReply}},[n("UserAvatar",{attrs:{userid:e.msgData.reply_data.userid,"show-icon":!1,"show-name":!0,"tooltip-disabled":!0}}),n("div",{staticClass:"reply-desc",domProps:{innerHTML:e._s(e.$A.getMsgSimpleDesc(e.msgData.reply_data,"image-preview"))}})],1):e._e(),n("div",{ref:"content",staticClass:"dialog-content",class:e.contentClass},[e.msgData.type==="text"?n("div",{staticClass:"content-text no-dark-content"},[e.msgData.msg.type==="md"?n("DialogMarkdown",{attrs:{text:e.msgData.msg.text},on:{click:e.viewText}}):n("pre",{domProps:{innerHTML:e._s(e.$A.formatTextMsg(e.msgData.msg.text,e.userId))},on:{click:e.viewText}})],1):e.msgData.type==="file"?n("div",{class:`content-file ${e.msgData.msg.type}`},[n("div",{staticClass:"dialog-file"},[e.msgData.msg.type==="img"?n("img",{staticClass:"file-img",style:e.imageStyle(e.msgData.msg),attrs:{src:e.msgData.msg.thumb},on:{click:e.viewFile}}):n("div",{staticClass:"file-box",on:{click:e.downFile}},[n("img",{staticClass:"file-thumb",attrs:{src:e.msgData.msg.thumb}}),n("div",{staticClass:"file-info"},[n("div",{staticClass:"file-name"},[e._v(e._s(e.msgData.msg.name))]),n("div",{staticClass:"file-size"},[e._v(e._s(e.$A.bytesToSize(e.msgData.msg.size)))])])])])]):e.msgData.type==="record"?n("div",{staticClass:"content-record no-dark-content"},[n("div",{staticClass:"dialog-record",class:{playing:e.audioPlaying===e.msgData.msg.path},style:e.recordStyle(e.msgData.msg),on:{click:e.playRecord}},[n("div",{staticClass:"record-time"},[e._v(e._s(e.recordDuration(e.msgData.msg.duration)))]),n("div",{staticClass:"record-icon taskfont"})])]):e.msgData.type==="meeting"?n("div",{staticClass:"content-meeting no-dark-content"},[n("ul",{staticClass:"dialog-meeting"},[n("li",[n("em",[e._v(e._s(e.$L("\u4F1A\u8BAE\u4E3B\u9898")))]),e._v(" "+e._s(e.msgData.msg.name)+" ")]),n("li",[n("em",[e._v(e._s(e.$L("\u4F1A\u8BAE\u521B\u5EFA\u4EBA")))]),n("UserAvatar",{attrs:{userid:e.msgData.msg.userid,"show-icon":!1,"show-name":!0,"tooltip-disabled":""}})],1),n("li",[n("em",[e._v(e._s(e.$L("\u9891\u9053ID")))]),e._v(" "+e._s(e.msgData.msg.meetingid.replace(/^(.{3})(.{3})(.*)$/,"$1 $2 $3"))+" ")]),n("li",{staticClass:"meeting-operation",on:{click:e.openMeeting}},[e._v(" "+e._s(e.$L("\u70B9\u51FB\u52A0\u5165\u4F1A\u8BAE"))+" "),n("i",{staticClass:"taskfont"},[e._v("\uE68B")])])])]):e.msgData.type==="loading"?n("div",{staticClass:"content-loading"},[e.msgData.error===!0?n("Icon",{attrs:{type:"ios-alert-outline"}}):n("Loading")],1):n("div",{staticClass:"content-unknown"},[e._v(e._s(e.$L("\u672A\u77E5\u7684\u6D88\u606F\u7C7B\u578B")))])]),e.$A.arrayLength(e.msgData.emoji)>0?n("ul",{staticClass:"dialog-emoji"},e._l(e.msgData.emoji,function(r,a){return n("li",{key:a,class:{hasme:r.userids.includes(e.userId)}},[n("div",{staticClass:"emoji-symbol no-dark-content",on:{click:function(l){return e.onEmoji(r.symbol)}}},[e._v(e._s(r.symbol))]),n("div",{staticClass:"emoji-users",on:{click:function(l){return e.onShowEmojiUser(r)}}},[n("ul",[e._l(r.userids,function(l,u){return[u0?n("div",{staticClass:"reply",on:{click:e.replyList}},[n("i",{staticClass:"taskfont"},[e._v("\uE6EB")]),e._v(" "+e._s(e.msgData.reply_num)+"\u6761\u56DE\u590D ")]):e._e(),e.msgData.tag?n("div",{staticClass:"tag"},[n("i",{staticClass:"taskfont"},[e._v("\uE61E")])]):e._e(),e.msgData.todo?n("div",{staticClass:"todo",on:{click:e.openTodo}},[n("EPopover",{ref:"todo",attrs:{"popper-class":"dialog-wrapper-read-poptip",placement:e.isRightMsg?"bottom-end":"bottom-start"},model:{value:e.todoShow,callback:function(r){e.todoShow=r},expression:"todoShow"}},[n("div",{staticClass:"read-poptip-content"},[n("Scrollbar",{attrs:{"class-name":"read"}},[n("div",{staticClass:"read-title"},[n("em",[e._v(e._s(e.todoDoneList.length))]),e._v(e._s(e.$L("\u5B8C\u6210")))]),n("ul",e._l(e.todoDoneList,function(r){return n("li",[n("UserAvatar",{attrs:{userid:r.userid,size:26,showName:"",tooltipDisabled:""}})],1)}),0)]),n("Scrollbar",{attrs:{"class-name":"unread"}},[n("div",{staticClass:"read-title"},[n("em",[e._v(e._s(e.todoUndoneList.length))]),e._v(e._s(e.$L("\u5F85\u529E")))]),n("ul",e._l(e.todoUndoneList,function(r){return n("li",[n("UserAvatar",{attrs:{userid:r.userid,size:26,showName:"",tooltipDisabled:""}})],1)}),0)])],1),n("div",{staticClass:"popover-reference",attrs:{slot:"reference"},slot:"reference"})]),e.todoLoad>0?n("Loading"):n("i",{staticClass:"taskfont"},[e._v("\uE7B7")])],1):e._e(),e.msgData.modify?n("div",{staticClass:"modify"},[n("i",{staticClass:"taskfont"},[e._v("\uE779")])]):e._e(),e.msgData.error===!0?n("div",{staticClass:"error",on:{click:e.onError}},[n("Icon",{attrs:{type:"ios-alert"}})],1):e.isLoading?n("Loading"):[e.timeShow?n("div",{staticClass:"time",on:{click:function(r){e.timeShow=!1}}},[e._v(e._s(e.msgData.created_at))]):n("div",{staticClass:"time",attrs:{title:e.msgData.created_at},on:{click:function(r){e.timeShow=!0}}},[e._v(e._s(e.$A.formatTime(e.msgData.created_at)))]),e.hidePercentage?e._e():[e.msgData.send>1||e.dialogType==="group"?n("div",{staticClass:"percent",on:{click:e.openReadPercentage}},[n("EPopover",{ref:"percent",attrs:{"popper-class":"dialog-wrapper-read-poptip",placement:e.isRightMsg?"bottom-end":"bottom-start"},model:{value:e.percentageShow,callback:function(r){e.percentageShow=r},expression:"percentageShow"}},[n("div",{staticClass:"read-poptip-content"},[n("Scrollbar",{attrs:{"class-name":"read"}},[n("div",{staticClass:"read-title"},[n("em",[e._v(e._s(e.readList.length))]),e._v(e._s(e.$L("\u5DF2\u8BFB")))]),n("ul",e._l(e.readList,function(r){return n("li",[n("UserAvatar",{attrs:{userid:r.userid,size:26,showName:"",tooltipDisabled:""}})],1)}),0)]),n("Scrollbar",{attrs:{"class-name":"unread"}},[n("div",{staticClass:"read-title"},[n("em",[e._v(e._s(e.unreadList.length))]),e._v(e._s(e.$L("\u672A\u8BFB")))]),n("ul",e._l(e.unreadList,function(r){return n("li",[n("UserAvatar",{attrs:{userid:r.userid,size:26,showName:"",tooltipDisabled:""}})],1)}),0)])],1),n("div",{staticClass:"popover-reference",attrs:{slot:"reference"},slot:"reference"})]),e.percentageLoad>0?n("Loading"):n("WCircle",{attrs:{percent:e.msgData.percentage,size:14}})],1):e.msgData.percentage===100?n("Icon",{staticClass:"done",attrs:{type:"md-done-all"}}):n("Icon",{staticClass:"done",attrs:{type:"md-checkmark"}})]]],2)])},yZ=[];const CZ={name:"DialogView",components:{DialogMarkdown:vZ,WCircle:td},directives:{longpress:za},props:{msgData:{type:Object,default:()=>({})},dialogType:{type:String,default:""},hidePercentage:{type:Boolean,default:!1},hideReply:{type:Boolean,default:!1},operateVisible:{type:Boolean,default:!1},operateAction:{type:Boolean,default:!1},isRightMsg:{type:Boolean,default:!1}},data(){return{timeShow:!1,operateEnter:!1,percentageLoad:0,percentageShow:!1,percentageList:[],todoLoad:0,todoShow:!1,todoList:[],emojiUsersNum:5}},mounted(){this.emojiUsersNum=Math.min(6,Math.max(2,Math.floor((this.windowWidth-180)/52)))},beforeDestroy(){this.$store.dispatch("audioStop",this.msgData.msg.path)},computed:{...Wn(["loads","audioPlaying"]),...Nl(["isLoad"]),isLoading(){return this.msgData.created_at?this.isLoad(`msg-${this.msgData.id}`):!0},viewClass(){const{msgData:e,operateAction:t,operateEnter:n}=this,r=[];return e.type&&r.push(e.type),e.reply_data&&r.push("reply-view"),t&&(r.push("operate-action"),n&&r.push("operate-enter")),r},readList(){return this.percentageList.filter(({read_at:e})=>e)},unreadList(){return this.percentageList.filter(({read_at:e})=>!e)},todoDoneList(){return this.todoList.filter(({done_at:e})=>e)},todoUndoneList(){return this.todoList.filter(({done_at:e})=>!e)},headClass(){const{reply_id:e,type:t,msg:n,emoji:r}=this.msgData,a=[];return e===0&&$A.arrayLength(r)===0&&t==="text"&&(/^]*?>$/.test(n.text)||/^\s*

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

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

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

\s*[\uD800-\uDBFF][\uDC00-\uDFFF]\s*<\/p>\s*$/.test(t.text)&&n.push("an-emoji")),n}},watch:{operateAction(e){this.operateEnter=!1,e&&setTimeout(t=>this.operateEnter=!0,500)}},methods:{handleLongpress(e,t){this.$emit("on-longpress",{event:e,el:t,msgData:this.msgData})},openTodo(){if(!(this.todoLoad>0)){if(this.todoShow){this.todoShow=!1;return}this.todoLoad++,this.$store.dispatch("call",{url:"dialog/msg/todolist",data:{msg_id:this.msgData.id}}).then(({data:e})=>{this.todoList=e}).catch(()=>{this.todoList=[]}).finally(e=>{setTimeout(()=>{this.todoLoad--,this.todoShow=!0},100)})}},openReadPercentage(){if(!(this.percentageLoad>0)){if(this.percentageShow){this.percentageShow=!1;return}this.percentageLoad++,this.$store.dispatch("call",{url:"dialog/msg/readlist",data:{msg_id:this.msgData.id}}).then(({data:e})=>{this.percentageList=e}).catch(()=>{this.percentageList=[]}).finally(e=>{setTimeout(()=>{this.percentageLoad--,this.percentageShow=!0},100)})}},recordStyle(e){const{duration:t}=e;return{width:50+Math.min(180,Math.floor(t/150))+"px"}},recordDuration(e){const t=Math.floor(e/6e4),n=Math.floor(e/1e3)%60;return t>0?`${t}:${n}\u2033`:`${Math.max(1,n)}\u2033`},imageStyle(e){const{width:t,height:n}=e;if(t&&n){let r=220,a=220,l=t,u=n;return(t>r||n>a)&&(t>n?(l=r,u=n*(r/t)):(l=t*(a/n),u=a)),{width:l+"px",height:u+"px"}}return{}},playRecord(){this.operateVisible||this.$store.dispatch("audioPlay",this.msgData.msg.path)},openMeeting(){this.operateVisible||_i.Store.set("addMeeting",{type:"join",name:this.msgData.msg.name,meetingid:this.msgData.msg.meetingid,meetingdisabled:!0})},viewReply(){this.$emit("on-view-reply",{msg_id:this.msgData.id,reply_id:this.msgData.reply_id})},viewText(e){this.$emit("on-view-text",e,this.$refs.content)},viewFile(){this.$emit("on-view-file",this.msgData)},downFile(){this.$emit("on-down-file",this.msgData)},replyList(){this.$emit("on-reply-list",{msg_id:this.msgData.id})},onError(){this.$emit("on-error",this.msgData)},onEmoji(e){this.$emit("on-emoji",{msg_id:this.msgData.id,symbol:e})},onShowEmojiUser(e){this.$emit("on-show-emoji-user",e)}}},pl={};var RZ=Kt(CZ,TZ,yZ,!1,NZ,null,null,null);function NZ(e){for(let t in pl)this[t]=pl[t]}var OZ=function(){return RZ.exports}(),AZ=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.classArray},[e.source.type==="tag"?n("div",{staticClass:"dialog-tag",on:{click:e.onViewTag}},[n("div",{staticClass:"tag-user"},[n("UserAvatar",{attrs:{userid:e.source.userid,tooltipDisabled:e.source.userid==e.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==="todo"?n("div",{staticClass:"dialog-todo",on:{click:e.onViewTodo}},[n("div",{staticClass:"todo-user"},[n("UserAvatar",{attrs:{userid:e.source.userid,tooltipDisabled:e.source.userid==e.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.formatTodoUser(e.source.msg.data).length>0?n("div",{staticClass:"todo-users"},[n("span",[e._v(e._s(e.$L("\u7ED9")))]),e._l(e.formatTodoUser(e.source.msg.data),function(r,a){return[a<3?n("div",{staticClass:"todo-user"},[n("UserAvatar",{attrs:{userid:r,tooltipDisabled:r==e.userId,"show-name":!0,"show-icon":!1}})],1):a==3?n("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"?n("div",{staticClass:"dialog-notice"},[e._v(" "+e._s(e.source.msg.notice)+" ")]):[n("div",{staticClass:"dialog-avatar"},[n("UserAvatar",{directives:[{name:"longpress",rawName:"v-longpress",value:{callback:e.onMention,delay:300},expression:"{callback: onMention, delay: 300}"}],attrs:{userid:e.source.userid,size:30,"tooltip-disabled":""},on:{"open-dialog":e.onOpenDialog}})],1),n("DialogView",{attrs:{"msg-data":e.source,"dialog-type":e.dialogData.type,"hide-percentage":e.hidePercentage,"hide-reply":e.hideReply,"operate-visible":e.operateVisible,"operate-action":e.operateVisible&&e.source.id===e.operateItem.id,"is-right-msg":e.isRightMsg},on:{"on-longpress":e.onLongpress,"on-view-reply":e.onViewReply,"on-view-text":e.onViewText,"on-view-file":e.onViewFile,"on-down-file":e.onDownFile,"on-reply-list":e.onReplyList,"on-error":e.onError,"on-emoji":e.onEmoji,"on-show-emoji-user":e.onShowEmojiUser}})]],2)},IZ=[];const DZ={name:"DialogItem",components:{DialogView:OZ},directives:{longpress:za},props:{source:{type:Object,default(){return{}}},dialogData:{type:Object,default(){return{}}},operateVisible:{type:Boolean,default:!1},operateItem:{type:Object,default(){return{}}},simpleView:{type:Boolean,default:!1},isMyDialog:{type:Boolean,default:!1},msgId:{type:Number,default:0}},data(){return{subscribe:null}},computed:{...Wn(["userId"]),isRightMsg(){return this.source.userid==this.userId},isReply(){return this.simpleView||this.msgId===this.source.id},hidePercentage(){return this.simpleView||this.isMyDialog||this.isReply},hideReply(){return this.simpleView||this.msgId>0},classArray(){return{"dialog-item":!0,"reply-item":this.isReply,self:this.isRightMsg}}},watch:{source:{handler(){this.msgRead()},immediate:!0},windowActive(e){e&&this.msgRead()}},methods:{msgRead(){!this.windowActive||this.$store.dispatch("dialogMsgRead",this.source)},formatTodoUser(e){if($A.isJson(e)){const{userids:t}=e;if(t)return t.split(",")}return[]},onViewTag(){this.onViewReply({msg_id:this.source.id,reply_id:this.source.msg.data.id})},onViewTodo(){this.onViewReply({msg_id:this.source.id,reply_id:this.source.msg.data.id})},onOpenDialog(e){this.dialogData.type=="group"&&this.$store.dispatch("openDialogUserid",e).then(t=>{this.goForward({name:"manage-messenger"})}).catch(({msg:t})=>{$A.modalError(t)})},onMention(){this.dispatch("on-mention",this.source)},onLongpress(e){this.dispatch("on-longpress",e)},onViewReply(e){this.dispatch("on-view-reply",e)},onViewText(e,t){this.dispatch("on-view-text",e,t)},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)},onShowEmojiUser(e){this.dispatch("on-show-emoji-user",e)},dispatch(e,...t){if(this.isReply){this.$emit(e,...t);return}let n=this.$parent,r=n.$options.name;for(;n&&(!r||r!=="virtual-list");)n=n.$parent,n&&(r=n.$options.name);n&&n.$emit(e,...t)}}},ml={};var xZ=Kt(DZ,AZ,IZ,!1,wZ,null,null,null);function wZ(e){for(let t in ml)this[t]=ml[t]}var fl=function(){return xZ.exports}(),MZ=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("Upload",{ref:"upload",attrs:{name:"files",action:e.actionUrl,headers:e.headers,data:e.params,multiple:"",format:e.uploadFormat,"show-upload-list":!1,"max-size":e.maxSize,"on-progress":e.handleProgress,"on-success":e.handleSuccess,"on-format-error":e.handleFormatError,"on-exceeded-size":e.handleMaxSize}})},LZ=[];const kZ={name:"DialogUpload",props:{dialogId:{type:Number,default:0},maxSize:{type:Number,default:1024e3}},data(){return{uploadFormat:[],actionUrl:$A.apiUrl("dialog/msg/sendfile")}},computed:{...Wn(["cacheDialogs"]),headers(){return{fd:$A.getSessionStorageString("userWsFd"),token:this.userToken}},params(){return{dialog_id:this.dialogId,reply_id:this.dialogData.extra_quote_id||0}},dialogData(){return this.cacheDialogs.find(({id:e})=>e==this.dialogId)||{}}},methods:{handleProgress(e,t){t.tempId===void 0&&(this.$parent.$options.name==="DialogWrapper"?t.tempId=this.$parent.getTempId():t.tempId=$A.randNum(1e9,9999999999),this.$emit("on-progress",t))},handleSuccess(e,t){e.ret===1?(t.data=e.data,this.$emit("on-success",t),e.data.task_id&&this.$store.dispatch("getTaskFiles",e.data.task_id)):($A.modalWarning({title:"\u53D1\u9001\u5931\u8D25",content:"\u6587\u4EF6 "+t.name+" \u53D1\u9001\u5931\u8D25\uFF0C"+e.msg}),this.$emit("on-error",t),this.$refs.upload.fileList.pop())},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\u53D1\u9001\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\u53D1\u9001\u8D85\u8FC7"+$A.bytesToSize(this.maxSize*1024)+"\u3002"})},handleClick(){this.$refs.upload.handleClick()},upload(e){this.$refs.upload.upload(e)}}},gl={};var PZ=Kt(kZ,MZ,LZ,!1,BZ,null,null,null);function BZ(e){for(let t in gl)this[t]=gl[t]}var FZ=function(){return PZ.exports}(),UZ=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"dialog-group-info"},[n("div",{staticClass:"group-info-title"},[e._v(e._s(e.$L("\u7FA4\u540D")))]),n("div",{staticClass:"group-info-value"},[n("QuickEdit",{attrs:{value:e.dialogData.name,disabled:e.dialogData.owner_id!=e.userId},on:{"on-update":e.updateName}},[e._v(e._s(e.dialogData.name))])],1),n("div",{staticClass:"group-info-title"},[e._v(e._s(e.$L("\u7FA4\u7C7B\u578B")))]),n("div",{staticClass:"group-info-value"},[e._v(e._s(e.$L(e.groupType)))]),n("div",{staticClass:"group-info-search"},[n("Input",{attrs:{prefix:"ios-search",placeholder:e.$L("\u641C\u7D22\u6210\u5458"),clearable:""},model:{value:e.searchKey,callback:function(r){e.searchKey=r},expression:"searchKey"}})],1),n("div",{staticClass:"group-info-user"},[n("ul",[e._l(e.userList,function(r,a){return n("li",{key:a,on:{click:function(l){return e.openUser(r.userid)}}},[n("UserAvatar",{attrs:{userid:r.userid,size:32,showName:"",tooltipDisabled:""}}),r.userid===e.dialogData.owner_id?n("div",{staticClass:"user-tag"},[e._v(e._s(e.$L("\u7FA4\u4E3B")))]):e.operableExit(r)?n("div",{staticClass:"user-exit",on:{click:function(l){return l.stopPropagation(),e.onExit(r)}}},[n("Icon",{attrs:{type:"md-exit"}})],1):e._e()],1)}),e.userList.length===0?n("li",{staticClass:"no"},[e.loadIng>0?n("Loading"):n("span",[e._v(e._s(e.$L("\u6CA1\u6709\u7B26\u5408\u6761\u4EF6\u7684\u6570\u636E")))])],1):e._e()],2)]),e.operableAdd?n("div",{staticClass:"group-info-button"},[e.dialogData.owner_id==e.userId||e.dialogData.owner_id==0?n("Button",{attrs:{type:"primary",icon:"md-add"},on:{click:e.openAdd}},[e._v(e._s(e.$L("\u6DFB\u52A0\u6210\u5458")))]):e._e()],1):e._e(),n("Modal",{attrs:{title:e.$L("\u6DFB\u52A0\u7FA4\u6210\u5458"),"mask-closable":!1},model:{value:e.addShow,callback:function(r){e.addShow=r},expression:"addShow"}},[n("Form",{attrs:{model:e.addData,"label-width":"auto"},nativeOn:{submit:function(r){r.preventDefault()}}},[n("FormItem",{attrs:{prop:"userids",label:e.$L("\u65B0\u589E\u6210\u5458")}},[n("UserSelect",{attrs:{disabledChoice:e.addData.disabledChoice,"multiple-max":100,"show-bot":"",title:e.$L("\u9009\u62E9\u6210\u5458")},model:{value:e.addData.userids,callback:function(r){e.$set(e.addData,"userids",r)},expression:"addData.userids"}}),e.dialogData.group_type==="department"?n("div",{staticClass:"form-tip"},[e._v(e._s(e.$L("\u6B64\u64CD\u4F5C\u4EC5\u52A0\u5165\u7FA4\u6210\u5458\u5E76\u4E0D\u4F1A\u52A0\u5165\u90E8\u95E8")))]):e.dialogData.group_type==="project"?n("div",{staticClass:"form-tip"},[e._v(e._s(e.$L("\u6B64\u64CD\u4F5C\u4EC5\u52A0\u5165\u7FA4\u6210\u5458\u5E76\u4E0D\u4F1A\u52A0\u5165\u9879\u76EE")))]):e.dialogData.group_type==="task"?n("div",{staticClass:"form-tip"},[e._v(e._s(e.$L("\u6B64\u64CD\u4F5C\u4EC5\u52A0\u5165\u7FA4\u6210\u5458\u5E76\u4E0D\u4F1A\u52A0\u5165\u4EFB\u52A1\u8D1F\u8D23\u4EBA")))]):e._e()],1)],1),n("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[n("Button",{attrs:{type:"default"},on:{click:function(r){e.addShow=!1}}},[e._v(e._s(e.$L("\u53D6\u6D88")))]),n("Button",{attrs:{type:"primary",loading:e.addLoad>0},on:{click:e.onAdd}},[e._v(e._s(e.$L("\u786E\u5B9A\u6DFB\u52A0")))])],1)],1)],1)},GZ=[];const qZ={name:"DialogGroupInfo",components:{UserSelect:Ol},props:{dialogId:{type:Number,default:0}},data(){return{searchKey:"",loadIng:0,dialogUser:[],addShow:!1,addData:{},addLoad:0,openIng:!1}},computed:{...Wn(["cacheDialogs","cacheUserBasic","userIsAdmin"]),dialogData(){return this.cacheDialogs.find(({id:e})=>e==this.dialogId)||{}},groupType(){const{group_type:e}=this.dialogData;return e==="department"?"\u90E8\u95E8\u7FA4\u7EC4":e==="project"?"\u9879\u76EE\u7FA4\u7EC4":e==="task"?"\u4EFB\u52A1\u7FA4\u7EC4":e==="user"?"\u4E2A\u4EBA\u7FA4\u7EC4":e==="all"?"\u5168\u5458\u7FA4\u7EC4":"\u672A\u77E5"},userList(){const{dialogUser:e,searchKey:t,cacheUserBasic:n,dialogData:r}=this;return e.map(l=>{const u=n.find(c=>c.userid==l.userid);return u&&(l.nickname=u.nickname,l.email=u.email),l}).filter(l=>!(t&&l.nickname&&!$A.strExists(l.nickname,t)&&!$A.strExists(l.email,t))).sort((l,u)=>l.userid===r.owner_id||u.userid===r.owner_id?(l.userid===r.owner_id?0:1)-(u.userid===r.owner_id?0:1):$A.Date(l.created_at)-$A.Date(u.created_at))}},watch:{dialogId:{handler(){this.getDialogUser()},immediate:!0}},methods:{updateName(e,t){if(!e){t();return}this.$store.dispatch("call",{url:"dialog/group/edit",data:{dialog_id:this.dialogId,chat_name:e}}).then(({data:n})=>{this.$store.dispatch("saveDialog",n),t()}).catch(({msg:n})=>{$A.modalError(n),t()})},getDialogUser(){this.dialogId<=0||(this.loadIng++,this.$store.dispatch("call",{url:"dialog/user",data:{dialog_id:this.dialogId}}).then(({data:e})=>{this.dialogUser=e,this.$store.dispatch("saveDialog",{id:this.dialogId,people:e.length})}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.loadIng--}))},operableAdd(){const{owner_id:e,group_type:t}=this.dialogData;return t=="all"?this.userIsAdmin:[0,this.userId].includes(e)},openAdd(){this.addData={dialog_id:this.dialogId,userids:[],disabledChoice:this.dialogUser.map(e=>e.userid)},this.addShow=!0},onAdd(){this.addLoad++,this.$store.dispatch("call",{url:"dialog/group/adduser",data:this.addData}).then(({msg:e})=>{$A.messageSuccess(e),this.addShow=!1,this.addData={},this.getDialogUser()}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.addLoad--})},operableExit(e){const{owner_id:t,group_type:n}=this.dialogData;return n=="all"?this.userIsAdmin:t==this.userId||e.inviter==this.userId},onExit(e){let t="\u4F60\u786E\u5B9A\u8981\u9000\u51FA\u7FA4\u7EC4\u5417\uFF1F",n=[];$A.isJson(e)&&e.userid!=this.userId&&(t=`\u4F60\u786E\u5B9A\u8981\u5C06\u3010${e.nickname}\u3011\u79FB\u51FA\u7FA4\u7EC4\u5417\uFF1F`,n=[e.userid]),$A.modalConfirm({content:t,loading:!0,onOk:()=>new Promise((r,a)=>{this.$store.dispatch("call",{url:"dialog/group/deluser",data:{dialog_id:this.dialogId,userids:n}}).then(({msg:l})=>{r(l),n.length>0?this.getDialogUser():(this.$store.dispatch("forgetDialog",this.dialogId),this.goForward({name:"manage-messenger"}))}).catch(({msg:l})=>{a(l)})})})},openUser(e){this.openIng||(this.openIng=!0,this.$store.dispatch("openDialogUserid",e).then(t=>{this.$emit("on-close")}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.openIng=!1}))}}},hl={};var YZ=Kt(qZ,UZ,GZ,!1,zZ,null,null,null);function zZ(e){for(let t in hl)this[t]=hl[t]}var $Z=function(){return YZ.exports}(),HZ=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"dialog-respond"},[n("div",{staticClass:"respond-title"},[n("em",{staticClass:"no-dark-content"},[e._v(e._s(e.respondData.symbol))]),e._v(e._s(e.$L("\u56DE\u5E94\u8BE6\u60C5"))+" ("+e._s(e.respondData.userids.length)+")")]),n("div",{staticClass:"respond-user"},[n("ul",e._l(e.respondData.userids,function(r,a){return n("li",{key:a,on:{click:function(l){return e.openUser(r)}}},[n("UserAvatar",{attrs:{userid:r,size:32,showName:"",tooltipDisabled:""}})],1)}),0)])])},VZ=[];const WZ={name:"DialogRespond",props:{respondData:{type:Object,default:()=>({})}},data(){return{openIng:!1}},methods:{openUser(e){this.openIng||(this.openIng=!0,this.$store.dispatch("openDialogUserid",e).then(t=>{this.$emit("on-close")}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.openIng=!1}))}}},El={};var KZ=Kt(WZ,HZ,VZ,!1,QZ,null,null,null);function QZ(e){for(let t in El)this[t]=El[t]}var XZ=function(){return KZ.exports}(),Rc={exports:{}};/*! +`};t.inline.ruler.after("escape","math_inline",_Z),t.block.ruler.after("blockquote","math_block",pZ,{alt:["paragraph","reference","blockquote","list"]}),t.renderer.rules.math_inline=a,t.renderer.rules.math_block=u};const _n={mdi:null,formatMsg:e=>{const t=e.match(/]*?>/g);return t&&t.some(n=>{e=e.replace(n,`

${n}
`)}),e},highlightBlock:(e,t="")=>`
${t}${$A.L("\u590D\u5236\u4EE3\u7801")}
${e}
`};function fZ(e){return e==="..."?'':(_n.mdi===null&&(_n.mdi=new cz({linkify:!0,highlight(t,n){if(!!(n&&ka.getLanguage(n))){const a=n!=null?n:"";return _n.highlightBlock(ka.highlight(t,{language:a}).value,a)}return _n.highlightBlock(ka.highlightAuto(t).value,"")}}),_n.mdi.use(dZ,{attrs:{target:"_blank",rel:"noopener"}}),_n.mdi.use(mZ,{blockClass:"katexmath-block rounded-md p-[10px]",errorColor:" #cc0000"})),_n.formatMsg(_n.mdi.render(e)))}var gZ=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"markdown-body",domProps:{innerHTML:e._s(e.html)},on:{click:e.onCLick}})},hZ=[];const EZ={name:"DialogMarkdown",props:{text:{type:String,default:""}},data(){return{mdi:null}},mounted(){this.copyCodeBlock()},updated(){this.copyCodeBlock()},computed:{html({text:e}){return fZ(e)}},methods:{copyCodeBlock(){this.$el.querySelectorAll(".code-block-wrapper").forEach(t=>{const n=t.querySelector(".code-block-header__copy"),r=t.querySelector(".code-block-body");n&&r&&n.getAttribute("data-copy")!=="click"&&(n.setAttribute("data-copy","click"),n.addEventListener("click",()=>{var a,l,u;(a=navigator.clipboard)!=null&&a.writeText?navigator.clipboard.writeText((l=r.textContent)!=null?l:""):this.copyText({text:(u=r.textContent)!=null?u:"",origin:!0})}))})},copyText(e){const t={origin:!0,...e};let n;t.origin?n=document.createElement("textarea"):n=document.createElement("input"),n.setAttribute("readonly","readonly"),n.value=t.text,document.body.appendChild(n),n.select(),document.execCommand("copy")&&document.execCommand("copy"),document.body.removeChild(n)},onCLick(e){this.$emit("click",e)}}},_l={};var SZ=Kt(EZ,gZ,hZ,!1,bZ,null,null,null);function bZ(e){for(let t in _l)this[t]=_l[t]}var vZ=function(){return SZ.exports}(),TZ=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"dialog-view",class:e.viewClass,attrs:{"data-id":e.msgData.id}},[e.dialogType==="group"?n("div",{staticClass:"dialog-username"},[n("UserAvatar",{attrs:{userid:e.msgData.userid,"show-icon":!1,"show-name":!0,"click-open-dialog":""}})],1):e._e(),n("div",{directives:[{name:"longpress",rawName:"v-longpress",value:{callback:e.handleLongpress,delay:300},expression:"{callback: handleLongpress, delay: 300}"}],staticClass:"dialog-head",class:e.headClass},[!e.hideReply&&e.msgData.reply_data?n("div",{staticClass:"dialog-reply no-dark-content",on:{click:e.viewReply}},[n("UserAvatar",{attrs:{userid:e.msgData.reply_data.userid,"show-icon":!1,"show-name":!0,"tooltip-disabled":!0}}),n("div",{staticClass:"reply-desc",domProps:{innerHTML:e._s(e.$A.getMsgSimpleDesc(e.msgData.reply_data,"image-preview"))}})],1):e._e(),n("div",{ref:"content",staticClass:"dialog-content",class:e.contentClass},[e.msgData.type==="text"?n("div",{staticClass:"content-text no-dark-content"},[e.msgData.msg.type==="md"?n("DialogMarkdown",{attrs:{text:e.msgData.msg.text},on:{click:e.viewText}}):n("pre",{domProps:{innerHTML:e._s(e.$A.formatTextMsg(e.msgData.msg.text,e.userId))},on:{click:e.viewText}})],1):e.msgData.type==="file"?n("div",{class:`content-file ${e.msgData.msg.type}`},[n("div",{staticClass:"dialog-file"},[e.msgData.msg.type==="img"?n("img",{staticClass:"file-img",style:e.imageStyle(e.msgData.msg),attrs:{src:e.msgData.msg.thumb},on:{click:e.viewFile}}):n("div",{staticClass:"file-box",on:{click:e.downFile}},[n("img",{staticClass:"file-thumb",attrs:{src:e.msgData.msg.thumb}}),n("div",{staticClass:"file-info"},[n("div",{staticClass:"file-name"},[e._v(e._s(e.msgData.msg.name))]),n("div",{staticClass:"file-size"},[e._v(e._s(e.$A.bytesToSize(e.msgData.msg.size)))])])])])]):e.msgData.type==="record"?n("div",{staticClass:"content-record no-dark-content"},[n("div",{staticClass:"dialog-record",class:{playing:e.audioPlaying===e.msgData.msg.path},style:e.recordStyle(e.msgData.msg),on:{click:e.playRecord}},[n("div",{staticClass:"record-time"},[e._v(e._s(e.recordDuration(e.msgData.msg.duration)))]),n("div",{staticClass:"record-icon taskfont"})])]):e.msgData.type==="meeting"?n("div",{staticClass:"content-meeting no-dark-content"},[n("ul",{staticClass:"dialog-meeting"},[n("li",[n("em",[e._v(e._s(e.$L("\u4F1A\u8BAE\u4E3B\u9898")))]),e._v(" "+e._s(e.msgData.msg.name)+" ")]),n("li",[n("em",[e._v(e._s(e.$L("\u4F1A\u8BAE\u521B\u5EFA\u4EBA")))]),n("UserAvatar",{attrs:{userid:e.msgData.msg.userid,"show-icon":!1,"show-name":!0,"tooltip-disabled":""}})],1),n("li",[n("em",[e._v(e._s(e.$L("\u9891\u9053ID")))]),e._v(" "+e._s(e.msgData.msg.meetingid.replace(/^(.{3})(.{3})(.*)$/,"$1 $2 $3"))+" ")]),n("li",{staticClass:"meeting-operation",on:{click:e.openMeeting}},[e._v(" "+e._s(e.$L("\u70B9\u51FB\u52A0\u5165\u4F1A\u8BAE"))+" "),n("i",{staticClass:"taskfont"},[e._v("\uE68B")])])])]):e.msgData.type==="loading"?n("div",{staticClass:"content-loading"},[e.msgData.error===!0?n("Icon",{attrs:{type:"ios-alert-outline"}}):n("Loading")],1):n("div",{staticClass:"content-unknown"},[e._v(e._s(e.$L("\u672A\u77E5\u7684\u6D88\u606F\u7C7B\u578B")))])]),e.$A.arrayLength(e.msgData.emoji)>0?n("ul",{staticClass:"dialog-emoji"},e._l(e.msgData.emoji,function(r,a){return n("li",{key:a,class:{hasme:r.userids.includes(e.userId)}},[n("div",{staticClass:"emoji-symbol no-dark-content",on:{click:function(l){return e.onEmoji(r.symbol)}}},[e._v(e._s(r.symbol))]),n("div",{staticClass:"emoji-users",on:{click:function(l){return e.onShowEmojiUser(r)}}},[n("ul",[e._l(r.userids,function(l,u){return[u0?n("div",{staticClass:"reply",on:{click:e.replyList}},[n("i",{staticClass:"taskfont"},[e._v("\uE6EB")]),e._v(" "+e._s(e.msgData.reply_num)+"\u6761\u56DE\u590D ")]):e._e(),e.msgData.tag?n("div",{staticClass:"tag"},[n("i",{staticClass:"taskfont"},[e._v("\uE61E")])]):e._e(),e.msgData.todo?n("div",{staticClass:"todo",on:{click:e.openTodo}},[n("EPopover",{ref:"todo",attrs:{"popper-class":"dialog-wrapper-read-poptip",placement:e.isRightMsg?"bottom-end":"bottom-start"},model:{value:e.todoShow,callback:function(r){e.todoShow=r},expression:"todoShow"}},[n("div",{staticClass:"read-poptip-content"},[n("Scrollbar",{attrs:{"class-name":"read"}},[n("div",{staticClass:"read-title"},[n("em",[e._v(e._s(e.todoDoneList.length))]),e._v(e._s(e.$L("\u5B8C\u6210")))]),n("ul",e._l(e.todoDoneList,function(r){return n("li",[n("UserAvatar",{attrs:{userid:r.userid,size:26,showName:"",tooltipDisabled:""}})],1)}),0)]),n("Scrollbar",{attrs:{"class-name":"unread"}},[n("div",{staticClass:"read-title"},[n("em",[e._v(e._s(e.todoUndoneList.length))]),e._v(e._s(e.$L("\u5F85\u529E")))]),n("ul",e._l(e.todoUndoneList,function(r){return n("li",[n("UserAvatar",{attrs:{userid:r.userid,size:26,showName:"",tooltipDisabled:""}})],1)}),0)])],1),n("div",{staticClass:"popover-reference",attrs:{slot:"reference"},slot:"reference"})]),e.todoLoad>0?n("Loading"):n("i",{staticClass:"taskfont"},[e._v("\uE7B7")])],1):e._e(),e.msgData.modify?n("div",{staticClass:"modify"},[n("i",{staticClass:"taskfont"},[e._v("\uE779")])]):e._e(),e.msgData.error===!0?n("div",{staticClass:"error",on:{click:e.onError}},[n("Icon",{attrs:{type:"ios-alert"}})],1):e.isLoading?n("Loading"):[e.timeShow?n("div",{staticClass:"time",on:{click:function(r){e.timeShow=!1}}},[e._v(e._s(e.msgData.created_at))]):n("div",{staticClass:"time",attrs:{title:e.msgData.created_at},on:{click:function(r){e.timeShow=!0}}},[e._v(e._s(e.$A.formatTime(e.msgData.created_at)))]),e.hidePercentage?e._e():[e.msgData.send>1||e.dialogType==="group"?n("div",{staticClass:"percent",on:{click:e.openReadPercentage}},[n("EPopover",{ref:"percent",attrs:{"popper-class":"dialog-wrapper-read-poptip",placement:e.isRightMsg?"bottom-end":"bottom-start"},model:{value:e.percentageShow,callback:function(r){e.percentageShow=r},expression:"percentageShow"}},[n("div",{staticClass:"read-poptip-content"},[n("Scrollbar",{attrs:{"class-name":"read"}},[n("div",{staticClass:"read-title"},[n("em",[e._v(e._s(e.readList.length))]),e._v(e._s(e.$L("\u5DF2\u8BFB")))]),n("ul",e._l(e.readList,function(r){return n("li",[n("UserAvatar",{attrs:{userid:r.userid,size:26,showName:"",tooltipDisabled:""}})],1)}),0)]),n("Scrollbar",{attrs:{"class-name":"unread"}},[n("div",{staticClass:"read-title"},[n("em",[e._v(e._s(e.unreadList.length))]),e._v(e._s(e.$L("\u672A\u8BFB")))]),n("ul",e._l(e.unreadList,function(r){return n("li",[n("UserAvatar",{attrs:{userid:r.userid,size:26,showName:"",tooltipDisabled:""}})],1)}),0)])],1),n("div",{staticClass:"popover-reference",attrs:{slot:"reference"},slot:"reference"})]),e.percentageLoad>0?n("Loading"):n("WCircle",{attrs:{percent:e.msgData.percentage,size:14}})],1):e.msgData.percentage===100?n("Icon",{staticClass:"done",attrs:{type:"md-done-all"}}):n("Icon",{staticClass:"done",attrs:{type:"md-checkmark"}})]]],2)])},yZ=[];const CZ={name:"DialogView",components:{DialogMarkdown:vZ,WCircle:td},directives:{longpress:za},props:{msgData:{type:Object,default:()=>({})},dialogType:{type:String,default:""},hidePercentage:{type:Boolean,default:!1},hideReply:{type:Boolean,default:!1},operateVisible:{type:Boolean,default:!1},operateAction:{type:Boolean,default:!1},isRightMsg:{type:Boolean,default:!1}},data(){return{timeShow:!1,operateEnter:!1,percentageLoad:0,percentageShow:!1,percentageList:[],todoLoad:0,todoShow:!1,todoList:[],emojiUsersNum:5}},mounted(){this.emojiUsersNum=Math.min(6,Math.max(2,Math.floor((this.windowWidth-180)/52)))},beforeDestroy(){this.$store.dispatch("audioStop",this.msgData.msg.path)},computed:{...Wn(["loads","audioPlaying"]),...Nl(["isLoad"]),isLoading(){return this.msgData.created_at?this.isLoad(`msg-${this.msgData.id}`):!0},viewClass(){const{msgData:e,operateAction:t,operateEnter:n}=this,r=[];return e.type&&r.push(e.type),e.reply_data&&r.push("reply-view"),t&&(r.push("operate-action"),n&&r.push("operate-enter")),r},readList(){return this.percentageList.filter(({read_at:e})=>e)},unreadList(){return this.percentageList.filter(({read_at:e})=>!e)},todoDoneList(){return this.todoList.filter(({done_at:e})=>e)},todoUndoneList(){return this.todoList.filter(({done_at:e})=>!e)},headClass(){const{reply_id:e,type:t,msg:n,emoji:r}=this.msgData,a=[];return e===0&&$A.arrayLength(r)===0&&t==="text"&&(/^]*?>$/.test(n.text)||/^\s*

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

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

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

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

','','',"
"].join(""),r.BubbleTooltip=P,r.default=A},function(n,r,a){n.exports=a(63)}]).default})})(Rc);var Ht=Yu(Rc.exports);function di(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?di=function(t){return typeof t}:di=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},di(e)}function Nc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Sl(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(d){throw d},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var l=!0,u=!1,c;return{s:function(){n=n.call(e)},n:function(){var d=n.next();return l=d.done,d},e:function(d){u=!0,c=d},f:function(){try{!l&&n.return!=null&&n.return()}finally{if(u)throw c}}}}var nn={TAB:9,ENTER:13,ESCAPE:27,UP:38,DOWN:40};function iJ(e,t,n){var r=e;return Object.keys(t).forEach(function(a){n.indexOf(a)>-1?r.dataset[a]=t[a]:delete r.dataset[a]}),r}function aJ(e,t){return t.reduce(function(n,r){var a=e.lastIndexOf(r);return a>n.mentionCharIndex?{mentionChar:r,mentionCharIndex:a}:{mentionChar:n.mentionChar,mentionCharIndex:n.mentionCharIndex}},{mentionChar:null,mentionCharIndex:-1})}function oJ(e,t){return t.test(e)}function sJ(e,t,n){return e>-1?!(n&&!(e===0||!!t[e-1].match(/\s/g))):!1}function lJ(e){return di(e)!=="object"||e===null?e:JSON.parse(JSON.stringify(e))}var cJ=Ht.import("blots/embed"),Ii=function(e){jZ(n,e);var t=eJ(n);function n(r,a){var l;return Nc(this,n),l=t.call(this,r,a),bl(Ga(l),"hoverHandler",void 0),bl(Ga(l),"hoverHandler",void 0),l.clickHandler=null,l.hoverHandler=null,l.mounted=!1,l}return Oc(n,[{key:"attach",value:function(){Vn(fn(n.prototype),"attach",this).call(this),this.mounted||(this.mounted=!0,this.clickHandler=this.getClickHandler(),this.hoverHandler=this.getHoverHandler(),this.domNode.addEventListener("click",this.clickHandler,!1),this.domNode.addEventListener("mouseenter",this.hoverHandler,!1))}},{key:"detach",value:function(){Vn(fn(n.prototype),"detach",this).call(this),this.mounted=!1,this.clickHandler&&(this.domNode.removeEventListener("click",this.clickHandler),this.clickHandler=null)}},{key:"getClickHandler",value:function(){var a=this;return function(l){var u=a.buildEvent("mention-clicked",l);window.dispatchEvent(u),l.preventDefault()}}},{key:"getHoverHandler",value:function(){var a=this;return function(l){var u=a.buildEvent("mention-hovered",l);window.dispatchEvent(u),l.preventDefault()}}},{key:"buildEvent",value:function(a,l){var u=new Event(a,{bubbles:!0,cancelable:!0});return u.value=Ei({},this.domNode.dataset),u.event=l,u}}],[{key:"create",value:function(a){var l=Vn(fn(n),"create",this).call(this),u=document.createElement("span");return u.className="ql-mention-denotation-char",u.innerHTML=a.denotationChar,l.appendChild(u),l.innerHTML+=a.value,n.setDataValues(l,a)}},{key:"setDataValues",value:function(a,l){var u=a;return Object.keys(l).forEach(function(c){u.dataset[c]=l[c]}),u}},{key:"value",value:function(a){return a.dataset}}]),n}(cJ);Ii.blotName="mention";Ii.tagName="span";Ii.className="mention";Ht.register(Ii);var uJ=function(){function e(t,n){var r=this;Nc(this,e),this.isOpen=!1,this.itemIndex=0,this.mentionCharPos=null,this.cursorPos=null,this.values=[],this.suspendMouseEnter=!1,this.existingSourceExecutionToken=null,this.quill=t,this.options={source:null,renderItem:function(d){return"".concat(d.value)},renderLoading:function(){return null},onSelect:function(d,g){g(d)},mentionDenotationChars:["@"],showDenotationChar:!0,allowedChars:/^[a-zA-Z0-9_]*$/,minChars:0,maxChars:31,offsetTop:2,offsetLeft:0,isolateCharacter:!1,fixMentionsToQuill:!1,positioningStrategy:"normal",defaultMenuOrientation:"bottom",blotName:"mention",dataAttributes:["id","value","denotationChar","link","target","disabled"],linkTarget:"_blank",onOpen:function(){return!0},onBeforeClose:function(){return!0},onClose:function(){return!0},listItemClass:"ql-mention-list-item",mentionContainerClass:"ql-mention-list-container",mentionListClass:"ql-mention-list",spaceAfterInsert:!0,selectKeys:[nn.ENTER]},Ei(this.options,n,{dataAttributes:Array.isArray(n.dataAttributes)?this.options.dataAttributes.concat(n.dataAttributes):this.options.dataAttributes}),this.mentionContainer=document.createElement("div"),this.mentionContainer.className=this.options.mentionContainerClass?this.options.mentionContainerClass:"",this.mentionContainer.style.cssText="display: none; position: absolute;",this.mentionContainer.onmousemove=this.onContainerMouseMove.bind(this),this.options.fixMentionsToQuill&&(this.mentionContainer.style.width="auto"),this.mentionList=document.createElement("ul"),this.mentionList.id="quill-mention-list",t.root.setAttribute("aria-owns","quill-mention-list"),this.mentionList.className=this.options.mentionListClass?this.options.mentionListClass:"",this.mentionContainer.appendChild(this.mentionList),t.on("text-change",this.onTextChange.bind(this)),t.on("selection-change",this.onSelectionChange.bind(this)),t.container.addEventListener("paste",function(){setTimeout(function(){var c=t.getSelection();r.onSelectionChange(c)})}),t.keyboard.addBinding({key:nn.TAB},this.selectHandler.bind(this)),t.keyboard.bindings[nn.TAB].unshift(t.keyboard.bindings[nn.TAB].pop());var a=rJ(this.options.selectKeys),l;try{for(a.s();!(l=a.n()).done;){var u=l.value;t.keyboard.addBinding({key:u},this.selectHandler.bind(this))}}catch(c){a.e(c)}finally{a.f()}t.keyboard.bindings[nn.ENTER].unshift(t.keyboard.bindings[nn.ENTER].pop()),t.keyboard.addBinding({key:nn.ESCAPE},this.escapeHandler.bind(this)),t.keyboard.addBinding({key:nn.UP},this.upHandler.bind(this)),t.keyboard.addBinding({key:nn.DOWN},this.downHandler.bind(this))}return Oc(e,[{key:"selectHandler",value:function(){return this.isOpen&&!this.existingSourceExecutionToken?(this.selectItem(),!1):!0}},{key:"escapeHandler",value:function(){return this.isOpen?(this.existingSourceExecutionToken&&(this.existingSourceExecutionToken.abandoned=!0),this.hideMentionList(),!1):!0}},{key:"upHandler",value:function(){return this.isOpen&&!this.existingSourceExecutionToken?(this.prevItem(),!1):!0}},{key:"downHandler",value:function(){return this.isOpen&&!this.existingSourceExecutionToken?(this.nextItem(),!1):!0}},{key:"showMentionList",value:function(){this.options.positioningStrategy==="fixed"?document.body.appendChild(this.mentionContainer):this.quill.container.appendChild(this.mentionContainer),this.mentionContainer.style.visibility="hidden",this.mentionContainer.style.display="",this.mentionContainer.scrollTop=0,this.setMentionContainerPosition(),this.setIsOpen(!0)}},{key:"hideMentionList",value:function(){this.options.onBeforeClose(),this.mentionContainer.style.display="none",this.mentionContainer.remove(),this.setIsOpen(!1),this.quill.root.removeAttribute("aria-activedescendant")}},{key:"highlightItem",value:function(){for(var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,r=0;rc-a&&(this.mentionContainer.scrollTop+=l-c+a)}}},{key:"getItemData",value:function(){var n=this.mentionList.childNodes[this.itemIndex].dataset.link,r=typeof n!="undefined",a=this.mentionList.childNodes[this.itemIndex].dataset.target;return r&&(this.mentionList.childNodes[this.itemIndex].dataset.value='-1&&(p=setTimeout(function(){f(),h(),a({statusText:"Request Timeout",status:408})},n)),window[u]=function(y){clearTimeout(p),f(),h(),r(y)};var m=document.createElement("script");m.addEventListener("error",g),m.src=e+(/\?/.test(e)?"&":"?")+d,document.body.appendChild(m)})}var _J=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"chat-emoji-wrapper"},[n("div",{staticClass:"chat-emoji-box"},[e.type==="emosearch"?n("div",{staticClass:"chat-emoji-emosearch"},[n("Input",{attrs:{clearable:"",placeholder:e.$L("\u641C\u7D22\u8868\u60C5")},model:{value:e.emosearchKey,callback:function(r){e.emosearchKey=r},expression:"emosearchKey"}},[n("Icon",{class:{"icon-loading":e.emosearchLoad},attrs:{slot:"prefix",type:e.emosearchLoad?"ios-loading":"ios-search"},slot:"prefix"})],1)],1):e.type==="emoji"?n("div",{staticClass:"chat-emoji-nav"},e._l(e.emojiNavList,function(r){var a;return n("div",{key:r.type,class:(a={},a[`i-${r.name}`]=!0,a.active=r.type===e.emojiNavActive,a),domProps:{innerHTML:e._s(r.content)},on:{click:function(l){e.emojiNavActive=r.type}}})}),0):e._e(),n("Scrollbar",[n("ul",{class:[e.type,"no-dark-content"]},e._l(e.list,function(r){return n("li",{on:{click:function(a){return e.onSelect(a,r)}}},[r.type==="emoticon"?n("img",{attrs:{src:r.src,title:r.name,alt:r.name}}):n("span",{attrs:{title:r.name},domProps:{innerHTML:e._s(r.html)}})])}),0)])],1),e.onlyEmoji?e._e():n("ul",{staticClass:"chat-emoji-menu"},[n("li",{class:{active:e.type==="emosearch"},on:{click:function(r){e.type="emosearch"}}},[n("i",{staticClass:"taskfont"},[e._v("\uE6F8")])]),n("li",{class:{active:e.type==="emoji"},on:{click:function(r){e.type="emoji"}}},[n("span",{staticClass:"no-dark-content"},[e._v("\u{1F600}")])]),e._l(e.emoticonData,function(r){return n("li",{class:{active:e.type==="emoticon"&&e.emoticonPath==r.path},on:{click:function(a){return e.onEmoticon(r.path)}}},[n("img",{attrs:{title:r.name,alt:r.name,src:r.src}})])})],2)])},pJ=[];const mJ={name:"ChatEmoji",props:{searchKey:{type:String,default:""},onlyEmoji:{type:Boolean,default:!1}},data(){return{type:"emoji",emojiNavActive:"p",emojiNavList:[{type:"p",name:"people",content:''},{type:"n",name:"nature",content:` -`},{type:"d",name:"food",content:''},{type:"s",name:"symbols",content:''},{type:"a",name:"activity",content:''},{type:"t",name:"travel",content:''},{type:"o",name:"objects",content:''},{type:"f",name:"flags",content:''}],emoticonPath:"",emosearchKey:"",emosearchCache:null,emosearchLoad:!1,emosearchTimer:null,emosearchList:[],emojiData:[],emoticonData:[]}},mounted(){this.initData()},watch:{type(){this.onEmosearch()},emosearchKey(){this.onEmosearch()},searchKey:{handler(e){this.emosearchKey=e},immediate:!0}},computed:{list(){if(this.type==="emoji")return this.emojiData.filter(e=>e.category===this.emojiNavActive);if(this.type==="emosearch")return this.emosearchList;if(this.type==="emoticon"){const e=this.emoticonData.find(({path:t})=>t===this.emoticonPath);if(e)return e.list}return[]}},methods:{initData(){$A.loadScriptS(["js/emoji.all.js","js/emoticon.all.js"]).then(e=>{const t=$A.apiUrl("../images/emoticon");$A.isArray(window.emojiData)&&(this.emojiData=window.emojiData.sort(function(n,r){return n.emoji_order-r.emoji_order}).map(n=>({type:"emoji",name:n.name,category:n.category,html:n.code_decimal}))),$A.isArray(window.emoticonData)&&(this.emoticonData=window.emoticonData.map(n=>Object.assign(n,{src:`${t}/${n.path}/${n.icon}`,list:n.list.map(r=>Object.assign(r,{type:"emoticon",asset:`images/emoticon/${n.path}/${r.path}`,src:`${t}/${n.path}/${r.path}`}))})))})},onEmosearch(){this.type!=="emosearch"||this.emosearchCache===this.emosearchKey||(this.emosearchCache=this.emosearchKey,this.emosearchLoad=!0,this.emosearchTimer&&clearTimeout(this.emosearchTimer),this.emosearchTimer=setTimeout(e=>{dJ("https://pic.sogou.com/napi/wap/pic",{query:this.emosearchKey+" \u8868\u60C5"}).then(t=>{if(this.emosearchList=[],t.status===0){const n=t.data.items;n.length>0&&(this.emosearchList=n.map(r=>({type:"emoticon",asset:"emosearch",name:r.title,src:r.thumbUrl,height:r.thumbHeight,width:r.thumbWidth})))}this.emosearchList.length===0&&$A.noticeWarning("\u6CA1\u6709\u641C\u7D22\u5230\u4EFB\u4F55\u8868\u60C5")}).catch(t=>{this.emosearchList=[],$A.noticeWarning("\u641C\u7D22\u7ED3\u679C\u4E3A\u7A7A")}).finally(t=>{this.emosearchLoad=!1})},300))},onEmoticon(e){this.type="emoticon",this.emoticonPath=e},onSelect(e,t){t.type==="emoji"?this.$emit("on-select",{type:"emoji",text:e.target.innerText}):this.$emit("on-select",t)}}},Tl={};var fJ=Kt(mJ,_J,pJ,!1,gJ,null,null,null);function gJ(e){for(let t in Tl)this[t]=Tl[t]}var Ic=function(){return fJ.exports}();const yl="ontouchend"in document;var hJ={bind(e,t){let n=!1;e.__touchMouseDown__=r=>{r.preventDefault(),n=!0,t.value("down",r)},e.__touchMouseMove__=r=>{n&&t.value("move",r)},e.__touchMouseUp__=r=>{n&&(n=!1,t.value("up"))},yl?(e.addEventListener("touchstart",e.__touchMouseDown__),e.addEventListener("touchmove",e.__touchMouseMove__),e.addEventListener("touchend",e.__touchMouseUp__)):(e.addEventListener("mousedown",e.__touchMouseDown__),document.addEventListener("mousemove",e.__touchMouseMove__),document.addEventListener("mouseup",e.__touchMouseUp__))},update(){},unbind(e){yl?(e.removeEventListener("touchstart",e.__touchMouseDown__),e.removeEventListener("touchmove",e.__touchMouseMove__),e.removeEventListener("touchend",e.__touchMouseUp__)):(e.removeEventListener("mousedown",e.__touchMouseDown__),document.removeEventListener("mousemove",e.__touchMouseMove__),document.removeEventListener("mouseup",e.__touchMouseUp__)),delete e.__touchMouseDown__,delete e.__touchMouseMove__,delete e.__touchMouseUp__}};function Yn(e){return e===void 0&&(e=document.body),e===!0?document.body:e instanceof window.Node?e:document.querySelector(e)}const EJ={inserted(e,{value:t},n){if(e.dataset&&e.dataset.transfer!=="true")return!1;e.className=e.className?e.className+" v-transfer-dom":"v-transfer-dom";const r=e.parentNode;if(!r)return;const a=document.createComment("");let l=!1;t!==!1&&(r.replaceChild(a,e),Yn(t).appendChild(e),l=!0),e.__transferDomData||(e.__transferDomData={parentNode:r,home:a,target:Yn(t),hasMovedOut:l})},componentUpdated(e,{value:t}){if(e.dataset&&e.dataset.transfer!=="true")return!1;const n=e.__transferDomData;if(!n)return;const r=n.parentNode,a=n.home,l=n.hasMovedOut;!l&&t?(r.replaceChild(a,e),Yn(t).appendChild(e),e.__transferDomData=Object.assign({},e.__transferDomData,{hasMovedOut:!0,target:Yn(t)})):l&&t===!1?(r.replaceChild(e,a),e.__transferDomData=Object.assign({},e.__transferDomData,{hasMovedOut:!1,target:Yn(t)})):t&&Yn(t).appendChild(e)},unbind(e){if(e.dataset&&e.dataset.transfer!=="true")return!1;e.className=e.className.replace("v-transfer-dom",""),e.__transferDomData&&(e.__transferDomData.hasMovedOut===!0&&e.__transferDomData.parentNode&&e.__transferDomData.parentNode.appendChild(e),e.__transferDomData=null)}};var SJ=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.hidePopover,expression:"hidePopover"}],staticClass:"chat-input-box",class:e.boxClass},[n("div",{staticClass:"chat-input-quick-emoji"},[n("EPopover",{ref:"emojiQuickRef",attrs:{visibleArrow:!1,transition:"",placement:"top-end",popperClass:"chat-quick-emoji-popover"},model:{value:e.emojiQuickShow,callback:function(r){e.emojiQuickShow=r},expression:"emojiQuickShow"}},[n("div",{attrs:{slot:"reference"},slot:"reference"}),n("Scrollbar",{ref:"emojiWrapper",attrs:{tag:"ul","enable-x":!0,"enable-y":!1,"class-name":"chat-quick-emoji-wrapper scrollbar-hidden"}},e._l(e.emojiQuickItems,function(r){return n("li",{on:{click:function(a){return e.onEmojiQuick(r)}}},[n("img",{attrs:{title:r.name,alt:r.name,src:r.src}})])}),0)],1)],1),n("div",{ref:"inputWrapper",staticClass:"chat-input-wrapper",on:{click:function(r){return r.stopPropagation(),e.focus.apply(null,arguments)}}},[e.quoteData?n("div",{staticClass:"chat-quote"},[e.quoteUpdate?n("div",{staticClass:"quote-label"},[e._v(e._s(e.$L("\u7F16\u8F91\u6D88\u606F")))]):n("UserAvatar",{attrs:{userid:e.quoteData.userid,"show-icon":!1,"show-name":!0,"tooltip-disabled":!0}}),n("div",{staticClass:"quote-desc"},[e._v(e._s(e.$A.getMsgSimpleDesc(e.quoteData)))]),n("i",{staticClass:"taskfont",on:{click:function(r){return r.stopPropagation(),e.cancelQuote.apply(null,arguments)}}},[e._v("\uE6E5")])],1):e._e(),n("div",{ref:"editor",staticClass:"no-dark-content",style:e.editorStyle,on:{click:function(r){return r.stopPropagation(),e.onClickEditor.apply(null,arguments)},paste:e.handlePaste}}),n("ul",{staticClass:"chat-toolbar",on:{click:function(r){r.stopPropagation()}}},[n("li",[e.emojiBottom?n("ETooltip",{ref:"emojiTip",attrs:{disabled:e.$isEEUiApp||e.windowTouch||e.showEmoji,placement:"top",content:e.$L("\u8868\u60C5")}},[n("i",{staticClass:"taskfont",on:{click:function(r){e.showEmoji=!e.showEmoji}}},[e._v("\uE7AD")])]):n("EPopover",{attrs:{visibleArrow:!1,placement:"top",popperClass:"chat-input-emoji-popover"},model:{value:e.showEmoji,callback:function(r){e.showEmoji=r},expression:"showEmoji"}},[n("ETooltip",{ref:"emojiTip",attrs:{slot:"reference",disabled:e.$isEEUiApp||e.windowTouch||e.showEmoji,placement:"top",content:e.$L("\u8868\u60C5")},slot:"reference"},[n("i",{staticClass:"taskfont"},[e._v("\uE7AD")])]),e.showEmoji?n("ChatEmoji",{attrs:{searchKey:e.emojiQuickKey},on:{"on-select":e.onSelectEmoji}}):e._e()],1)],1),n("li",[n("ETooltip",{attrs:{placement:"top",disabled:e.$isEEUiApp||e.windowTouch,content:e.$L("\u9009\u62E9\u6210\u5458")}},[n("i",{staticClass:"taskfont",on:{click:function(r){return e.onToolbar("user")}}},[e._v("\uE78F")])])],1),n("li",[n("ETooltip",{attrs:{placement:"top",disabled:e.$isEEUiApp||e.windowTouch,content:e.$L("\u9009\u62E9\u4EFB\u52A1")}},[n("i",{staticClass:"taskfont",on:{click:function(r){return e.onToolbar("task")}}},[e._v("\uE7D6")])])],1),n("li",[n("EPopover",{attrs:{visibleArrow:!1,placement:"top",popperClass:"chat-input-more-popover"},model:{value:e.showMore,callback:function(r){e.showMore=r},expression:"showMore"}},[n("ETooltip",{ref:"moreTip",attrs:{slot:"reference",disabled:e.$isEEUiApp||e.windowTouch||e.showMore,placement:"top",content:e.$L("\u5C55\u5F00")},slot:"reference"},[n("i",{staticClass:"taskfont"},[e._v("\uE790")])]),e.recordReady?n("div",{staticClass:"chat-input-popover-item",on:{click:function(r){return e.onToolbar("meeting")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE7C1")]),e._v(" "+e._s(e.$L("\u65B0\u4F1A\u8BAE"))+" ")]):e._e(),e.canCall?n("div",{staticClass:"chat-input-popover-item",on:{click:function(r){return e.onToolbar("call")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE7BA")]),e._v(" "+e._s(e.$L("\u62E8\u6253\u7535\u8BDD"))+" ")]):e._e(),n("div",{staticClass:"chat-input-popover-item",on:{click:function(r){return e.onToolbar("image")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE7BC")]),e._v(" "+e._s(e.$L("\u53D1\u9001\u56FE\u7247"))+" ")]),n("div",{staticClass:"chat-input-popover-item",on:{click:function(r){return e.onToolbar("file")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE7C0")]),e._v(" "+e._s(e.$L("\u4E0A\u4F20\u6587\u4EF6"))+" ")]),e.canAnon?n("div",{staticClass:"chat-input-popover-item",on:{click:function(r){return e.onToolbar("anon")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE690")]),e._v(" "+e._s(e.$L("\u533F\u540D\u6D88\u606F"))+" ")]):e._e(),n("div",{staticClass:"chat-input-popover-item",on:{click:function(r){return e.onToolbar("full")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE6A7")]),e._v(" "+e._s(e.$L("\u5168\u5C4F\u8F93\u5165"))+" ")])],1)],1),n("li",{directives:[{name:"touchmouse",rawName:"v-touchmouse",value:e.clickSend,expression:"clickSend"},{name:"longpress",rawName:"v-longpress",value:{callback:e.longSend,delay:300},expression:"{callback: longSend, delay: 300}"}],ref:"chatSend",staticClass:"chat-send",class:e.sendClass},[n("EPopover",{attrs:{visibleArrow:!1,trigger:"manual",placement:"top",popperClass:"chat-input-more-popover"},model:{value:e.showMenu,callback:function(r){e.showMenu=r},expression:"showMenu"}},[n("ETooltip",{ref:"sendTip",attrs:{slot:"reference",placement:"top",disabled:e.$isEEUiApp||e.windowTouch||e.showMenu,content:e.$L(e.sendContent)},slot:"reference"},[e.loading?n("div",[n("div",{staticClass:"chat-load"},[n("Loading")],1)]):n("div",[n("transition",{attrs:{name:"mobile-send"}},[e.sendClass==="recorder"?n("i",{staticClass:"taskfont"},[e._v("\uE609")]):e._e()]),n("transition",{attrs:{name:"mobile-send"}},[e.sendClass!=="recorder"?n("i",{staticClass:"taskfont"},[e._v("\uE606")]):e._e()])],1)]),n("div",{staticClass:"chat-input-popover-item",on:{click:function(r){return e.onSend("silence")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE7D7")]),e._v(" "+e._s(e.$L("\u65E0\u58F0\u53D1\u9001"))+" ")]),n("div",{staticClass:"chat-input-popover-item",on:{click:function(r){return e.onSend("md")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE647")]),e._v(" "+e._s(e.$L("Markdown \u683C\u5F0F\u53D1\u9001"))+" ")])],1)],1),n("li",{staticClass:"chat-record-recwave"},[n("div",{ref:"recwave"})])]),n("div",{staticClass:"chat-cover",on:{click:function(r){return r.stopPropagation(),e.onClickCover.apply(null,arguments)}}})]),e.emojiBottom&&e.showEmoji?n("ChatEmoji",{attrs:{searchKey:e.emojiQuickKey},on:{"on-select":e.onSelectEmoji}}):e._e(),n("transition",{attrs:{name:"fade"}},[["ready","ing"].includes(e.recordState)?n("div",{directives:[{name:"transfer-dom",rawName:"v-transfer-dom"}],staticClass:"chat-input-record-transfer",class:{cancel:e.touchLimitY},style:e.recordTransferStyle,attrs:{"data-transfer":!0},on:{click:e.stopRecord}},[e.recordDuration>0?n("div",{staticClass:"record-duration"},[e._v(e._s(e.recordFormatDuration))]):n("div",{staticClass:"record-loading"},[n("Loading")],1),n("div",{staticClass:"record-cancel",on:{click:function(r){return r.stopPropagation(),e.stopRecord(!0)}}},[e._v(e._s(e.$L(e.touchLimitY?"\u677E\u5F00\u53D6\u6D88":"\u5411\u4E0A\u6ED1\u52A8\u53D6\u6D88")))])]):e._e()]),n("Modal",{attrs:{"mask-closable":!1,beforeClose:e.onFullBeforeClose,"class-name":"chat-input-full-input","footer-hide":"",fullscreen:""},model:{value:e.fullInput,callback:function(r){e.fullInput=r},expression:"fullInput"}},[n("div",{staticClass:"chat-input-box"},[n("div",{staticClass:"chat-input-wrapper"},[n("div",{ref:"editorFull",staticClass:"no-dark-content"})])]),n("i",{staticClass:"taskfont",attrs:{slot:"close"},slot:"close"},[e._v("\uE6AB")])])],1)},bJ=[];const vJ={name:"ChatInput",components:{ChatEmoji:Ic},directives:{touchmouse:hJ,TransferDom:EJ,clickoutside:zu,longpress:za},props:{value:{type:[String,Number],default:""},dialogId:{type:Number,default:0},taskId:{type:Number,default:0},placeholder:{type:String,default:""},disabled:{type:Boolean,default:!1},disabledRecord:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},enterSend:{type:[String,Boolean],default:null},emojiBottom:{type:Boolean,default:!1},sendMenu:{type:Boolean,default:!0},options:{type:Object,default:()=>({})},maxlength:{type:Number},defaultMenuOrientation:{type:String,default:"top"}},data(){return{quill:null,isFocus:!1,rangeIndex:0,_content:"",_options:{},mentionMode:"",userList:null,userCache:null,taskList:null,fileList:{},showMenu:!1,showMore:!1,showEmoji:!1,emojiQuickShow:!1,emojiQuickKey:"",emojiQuickItems:[],observer:null,wrapperWidth:0,wrapperHeight:0,editorHeight:0,recordReady:!1,recordRec:null,recordBlob:null,recordWave:null,recordInter:null,recordState:"stop",recordDuration:0,touchStart:{},touchLimitX:!1,touchLimitY:!1,pasteClean:!0,changeLoad:0,isSpecVersion:this.checkIOSVersion(),emojiTimer:null,scrollTimer:null,selectTimer:null,textTimer:null,fileTimer:null,moreTimer:null,fullInput:!1,fullQuill:null}},mounted(){this.init(),this.observer=new ResizeObserver(e=>{e.some(({target:t,contentRect:n})=>{t===this.$el?(this.wrapperWidth=n.width,this.wrapperHeight=n.height):t===this.$refs.editor&&(this.editorHeight=n.height)})}),this.observer.observe(this.$el),this.observer.observe(this.$refs.editor),this.recordInter=setInterval(e=>{this.recordState==="ing"&&(this.__recordDuration&&this.__recordDuration===this.recordDuration?(this.__recordDuration=null,this.stopRecord(!0),$A.messageWarning("\u5F55\u97F3\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5")):this.__recordDuration=this.recordDuration)},1e3),this.$isEEUiApp&&(window.__onPermissionRequest=(e,t)=>{e==="recordAudio"&&t===!1&&this.stopRecord(!0)}),$A.loadScript("js/emoticon.all.js")},beforeDestroy(){this.quill&&(this.quill=null),this.recordRec&&(this.recordRec=null),this.observer&&(this.observer.disconnect(),this.observer=null),this.recordInter&&clearInterval(this.recordInter)},computed:{...Wn(["cacheProjects","cacheTasks","cacheUserBasic","cacheDialogs","dialogMsgs"]),isEnterSend({enterSend:e}){return typeof e=="boolean"?e:!0},canCall(){return this.dialogData.type==="user"&&!this.dialogData.bot&&this.$isEEUiApp},canAnon(){return this.dialogData.type==="user"&&!this.dialogData.bot},editorStyle(){const{wrapperWidth:e,editorHeight:t,value:n}=this,r={};return n.length<10&&(r.height="30px"),e>0&&t>0&&(e<280||t>40)&&(r.width="100%"),r},recordTransferStyle(){const{windowScrollY:e}=this;return e>0?{marginTop:e/2+"px"}:null},boxClass(){const e=[];return["ready","ing"].includes(this.recordState)&&(this.recordState==="ing"&&this.recordDuration>0?e.push("record-progress"):e.push("record-ready")),this.showMenu&&e.push("show-menu"),this.showMore&&e.push("show-more"),this.showEmoji&&e.push("show-emoji"),this.mentionMode&&e.push(this.mentionMode),e},sendClass(){return this.value?"sender":this.recordReady?"recorder":""},sendContent(){const{sendTip:e}=this.$refs;return e&&e.$refs.popper&&(e.$refs.popper.style.visibility="hidden",e.showPopper=!1,setTimeout(t=>{e.$refs.popper&&(e.$refs.popper.style.visibility="visible")},300)),this.sendClass==="recorder"?"\u957F\u6309\u5F55\u97F3":"\u53D1\u9001"},recordFormatDuration(){const{recordDuration:e}=this;let t=Math.floor(e/6e4),n=Math.floor(e/1e3)%60,r=("00"+e%1e3).substr(-2);return t<10&&(t=`0${t}`),n<10&&(n=`0${n}`),`${t}:${n}\u2033${r}`},dialogData(){return this.dialogId>0?this.cacheDialogs.find(({id:e})=>e==this.dialogId)||{}:{}},quoteUpdate(){return this.dialogData.extra_quote_type==="update"},quoteData(){const{extra_quote_id:e}=this.dialogData;return e?this.dialogMsgs.find(t=>t.id===e):null}},watch:{value(e){this.quill&&(e&&e!==this._content?(this._content=e,this.setContent(e)):e||this.quill.setText("")),this.$store.dispatch("saveDialogDraft",{id:this.dialogId,extra_draft_content:e})},disabled(e){var t;(t=this.quill)==null||t.enable(!e)},dialogId(){this.userList=null,this.userCache=null,this.taskList=null,this.fileList={},this.loadInputDraft()},taskId(){this.userList=null,this.userCache=null,this.taskList=null,this.fileList={},this.loadInputDraft()},"dialogData.extra_draft_content"(){this.isFocus||this.loadInputDraft()},showMenu(e){e&&(this.showMore=!1,this.showEmoji=!1,this.emojiQuickShow=!1)},showMore(e){e&&(this.showMenu=!1,this.showEmoji=!1,this.emojiQuickShow=!1)},showEmoji(e){if(this.emojiBottom&&(e?this.quill.enable(!1):this.disabled||this.quill.enable(!0)),e){let t=this.value.replace(/ /g," ").replace(/<[^>]+>/g,"");if(t&&t.indexOf(" ")===-1&&t.length>=1&&t.length<=8?this.emojiQuickKey=t:this.emojiQuickKey="",this.showMenu=!1,this.showMore=!1,this.emojiQuickShow=!1,this.quill){const n=this.quill.selection.savedRange;this.rangeIndex=n?n.index:0}}else this.rangeIndex>0&&this.quill.setSelection(this.rangeIndex);this.$emit("on-emoji-visible-change",e)},emojiQuickShow(e){e&&(this.showMenu=!1,this.showMore=!1,this.showEmoji=!1)},isFocus(e){this.scrollTimer&&clearInterval(this.scrollTimer),e?(this.$emit("on-focus"),this.hidePopover(),this.isSpecVersion||this.windowPortrait&&(this.scrollTimer=setInterval(()=>{var t;(t=this.quill)!=null&&t.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)},wrapperHeight(e,t){this.$emit("on-height-change",{newVal:e,oldVal:t})},fullInput(e){var t;(t=this.quill)==null||t.enable(!e)}},methods:{init(){this._options=Object.assign({theme:"bubble",readOnly:!1,placeholder:this.placeholder,modules:{toolbar:[["bold","strike","italic","underline",{list:"ordered"},{list:"bullet"},"blockquote","code-block"]],keyboard:{bindings:{"short enter":{key:13,shortKey:!0,handler:e=>this.isEnterSend?!0:(this.onSend(),!1)},enter:{key:13,shiftKey:!1,handler:e=>this.isEnterSend?(this.onSend(),!1):!0},esc:{key:27,shiftKey:!1,handler:e=>this.emojiQuickShow?(this.emojiQuickShow=!1,!1):!0}}},mention:this.quillMention()}},this.options),this.quill=new Ht(this.$refs.editor,this._options),this.quill.enable(!this.disabled),this.value?this.setContent(this.value):this.loadInputDraft(),this.quill.on("selection-change",e=>{if(!e&&document.activeElement&&["ql-editor","ql-clipboard"].includes(document.activeElement.className)){this.selectTimer&&clearTimeout(this.selectTimer),this.selectTimer=setTimeout(t=>{this.quill.setSelection(document.activeElement.className==="ql-editor"?0:this.quill.getLength())},100);return}this.isFocus=!!e}),this.quill.on("text-change",e=>{this.changeLoad++,this.textTimer&&clearTimeout(this.textTimer),this.textTimer=setTimeout(t=>{this.changeLoad--,this.maxlength>0&&this.quill.getLength()>this.maxlength&&this.quill.deleteText(this.maxlength,this.quill.getLength());let n=this.$refs.editor.firstChild.innerHTML;n=n.replace(/^(

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

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

<\/p>)+|(

<\/p>)+$/gi,""),this.updateEmojiQuick(n),this._content=n,this.$emit("input",this._content),this.$nextTick(r=>{const a=this.quill.getSelection();if(a){const l=this.quill.getText(a.index);/^\n\n$/.test(l)&&this.quill.deleteText(a.index,1)}})},100)}),this.quill.clipboard.addMatcher(Node.ELEMENT_NODE,(e,t)=>(this.pasteClean&&(t.ops=t.ops.map(n=>{const r={insert:n.insert};try{typeof r.insert.mention=="object"&&e.innerHTML&&(r.insert=e.innerHTML.replace(/<[^>]+>/g,""))}catch{}return n.attributes&&["bold","strike","italic","underline","list","blockquote","link"].some(a=>{n.attributes[a]&&(typeof r.attributes=="undefined"&&(r.attributes={}),r.attributes[a]=n.attributes[a])}),r})),t)),this.$nextTick(e=>{this.quill.root.addEventListener("keydown",t=>{if(t.key==="\r\r"&&t.keyCode===229){const n=this.quill.getSelection(!0).index;this.quill.insertText(n,`\r +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var l=!0,u=!1,c;return{s:function(){n=n.call(e)},n:function(){var d=n.next();return l=d.done,d},e:function(d){u=!0,c=d},f:function(){try{!l&&n.return!=null&&n.return()}finally{if(u)throw c}}}}var nn={TAB:9,ENTER:13,ESCAPE:27,UP:38,DOWN:40};function iJ(e,t,n){var r=e;return Object.keys(t).forEach(function(a){n.indexOf(a)>-1?r.dataset[a]=t[a]:delete r.dataset[a]}),r}function aJ(e,t){return t.reduce(function(n,r){var a=e.lastIndexOf(r);return a>n.mentionCharIndex?{mentionChar:r,mentionCharIndex:a}:{mentionChar:n.mentionChar,mentionCharIndex:n.mentionCharIndex}},{mentionChar:null,mentionCharIndex:-1})}function oJ(e,t){return t.test(e)}function sJ(e,t,n){return e>-1?!(n&&!(e===0||!!t[e-1].match(/\s/g))):!1}function lJ(e){return di(e)!=="object"||e===null?e:JSON.parse(JSON.stringify(e))}var cJ=Ht.import("blots/embed"),Ii=function(e){jZ(n,e);var t=eJ(n);function n(r,a){var l;return Nc(this,n),l=t.call(this,r,a),bl(Ga(l),"hoverHandler",void 0),bl(Ga(l),"hoverHandler",void 0),l.clickHandler=null,l.hoverHandler=null,l.mounted=!1,l}return Oc(n,[{key:"attach",value:function(){Vn(fn(n.prototype),"attach",this).call(this),this.mounted||(this.mounted=!0,this.clickHandler=this.getClickHandler(),this.hoverHandler=this.getHoverHandler(),this.domNode.addEventListener("click",this.clickHandler,!1),this.domNode.addEventListener("mouseenter",this.hoverHandler,!1))}},{key:"detach",value:function(){Vn(fn(n.prototype),"detach",this).call(this),this.mounted=!1,this.clickHandler&&(this.domNode.removeEventListener("click",this.clickHandler),this.clickHandler=null)}},{key:"getClickHandler",value:function(){var a=this;return function(l){var u=a.buildEvent("mention-clicked",l);window.dispatchEvent(u),l.preventDefault()}}},{key:"getHoverHandler",value:function(){var a=this;return function(l){var u=a.buildEvent("mention-hovered",l);window.dispatchEvent(u),l.preventDefault()}}},{key:"buildEvent",value:function(a,l){var u=new Event(a,{bubbles:!0,cancelable:!0});return u.value=Ei({},this.domNode.dataset),u.event=l,u}}],[{key:"create",value:function(a){var l=Vn(fn(n),"create",this).call(this),u=document.createElement("span");return u.className="ql-mention-denotation-char",u.innerHTML=a.denotationChar,l.appendChild(u),l.innerHTML+=a.value,n.setDataValues(l,a)}},{key:"setDataValues",value:function(a,l){var u=a;return Object.keys(l).forEach(function(c){u.dataset[c]=l[c]}),u}},{key:"value",value:function(a){return a.dataset}}]),n}(cJ);Ii.blotName="mention";Ii.tagName="span";Ii.className="mention";Ht.register(Ii);var uJ=function(){function e(t,n){var r=this;Nc(this,e),this.isOpen=!1,this.itemIndex=0,this.mentionCharPos=null,this.cursorPos=null,this.values=[],this.suspendMouseEnter=!1,this.existingSourceExecutionToken=null,this.quill=t,this.options={source:null,renderItem:function(d){return"".concat(d.value)},renderLoading:function(){return null},onSelect:function(d,g){g(d)},mentionDenotationChars:["@"],showDenotationChar:!0,allowedChars:/^[a-zA-Z0-9_]*$/,minChars:0,maxChars:31,offsetTop:2,offsetLeft:0,isolateCharacter:!1,fixMentionsToQuill:!1,positioningStrategy:"normal",defaultMenuOrientation:"bottom",blotName:"mention",dataAttributes:["id","value","denotationChar","link","target","disabled"],linkTarget:"_blank",onOpen:function(){return!0},onBeforeClose:function(){return!0},onClose:function(){return!0},listItemClass:"ql-mention-list-item",mentionContainerClass:"ql-mention-list-container",mentionListClass:"ql-mention-list",spaceAfterInsert:!0,selectKeys:[nn.ENTER]},Ei(this.options,n,{dataAttributes:Array.isArray(n.dataAttributes)?this.options.dataAttributes.concat(n.dataAttributes):this.options.dataAttributes}),this.mentionContainer=document.createElement("div"),this.mentionContainer.className=this.options.mentionContainerClass?this.options.mentionContainerClass:"",this.mentionContainer.style.cssText="display: none; position: absolute;",this.mentionContainer.onmousemove=this.onContainerMouseMove.bind(this),this.options.fixMentionsToQuill&&(this.mentionContainer.style.width="auto"),this.mentionList=document.createElement("ul"),this.mentionList.id="quill-mention-list",t.root.setAttribute("aria-owns","quill-mention-list"),this.mentionList.className=this.options.mentionListClass?this.options.mentionListClass:"",this.mentionContainer.appendChild(this.mentionList),t.on("text-change",this.onTextChange.bind(this)),t.on("selection-change",this.onSelectionChange.bind(this)),t.container.addEventListener("paste",function(){setTimeout(function(){var c=t.getSelection();r.onSelectionChange(c)})}),t.keyboard.addBinding({key:nn.TAB},this.selectHandler.bind(this)),t.keyboard.bindings[nn.TAB].unshift(t.keyboard.bindings[nn.TAB].pop());var a=rJ(this.options.selectKeys),l;try{for(a.s();!(l=a.n()).done;){var u=l.value;t.keyboard.addBinding({key:u},this.selectHandler.bind(this))}}catch(c){a.e(c)}finally{a.f()}t.keyboard.bindings[nn.ENTER].unshift(t.keyboard.bindings[nn.ENTER].pop()),t.keyboard.addBinding({key:nn.ESCAPE},this.escapeHandler.bind(this)),t.keyboard.addBinding({key:nn.UP},this.upHandler.bind(this)),t.keyboard.addBinding({key:nn.DOWN},this.downHandler.bind(this))}return Oc(e,[{key:"selectHandler",value:function(){return this.isOpen&&!this.existingSourceExecutionToken?(this.selectItem(),!1):!0}},{key:"escapeHandler",value:function(){return this.isOpen?(this.existingSourceExecutionToken&&(this.existingSourceExecutionToken.abandoned=!0),this.hideMentionList(),!1):!0}},{key:"upHandler",value:function(){return this.isOpen&&!this.existingSourceExecutionToken?(this.prevItem(),!1):!0}},{key:"downHandler",value:function(){return this.isOpen&&!this.existingSourceExecutionToken?(this.nextItem(),!1):!0}},{key:"showMentionList",value:function(){this.options.positioningStrategy==="fixed"?document.body.appendChild(this.mentionContainer):this.quill.container.appendChild(this.mentionContainer),this.mentionContainer.style.visibility="hidden",this.mentionContainer.style.display="",this.mentionContainer.scrollTop=0,this.setMentionContainerPosition(),this.setIsOpen(!0)}},{key:"hideMentionList",value:function(){this.options.onBeforeClose(),this.mentionContainer.style.display="none",this.mentionContainer.remove(),this.setIsOpen(!1),this.quill.root.removeAttribute("aria-activedescendant")}},{key:"highlightItem",value:function(){for(var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,r=0;rc-a&&(this.mentionContainer.scrollTop+=l-c+a)}}},{key:"getItemData",value:function(){var n=this.mentionList.childNodes[this.itemIndex].dataset.link,r=typeof n!="undefined",a=this.mentionList.childNodes[this.itemIndex].dataset.target;return r&&(this.mentionList.childNodes[this.itemIndex].dataset.value='-1&&(p=setTimeout(function(){f(),h(),a({statusText:"Request Timeout",status:408})},n)),window[u]=function(y){clearTimeout(p),f(),h(),r(y)};var m=document.createElement("script");m.addEventListener("error",g),m.src=e+(/\?/.test(e)?"&":"?")+d,document.body.appendChild(m)})}var _J=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"chat-emoji-wrapper"},[n("div",{staticClass:"chat-emoji-box"},[e.type==="emosearch"?n("div",{staticClass:"chat-emoji-emosearch"},[n("Input",{attrs:{clearable:"",placeholder:e.$L("\u641C\u7D22\u8868\u60C5")},model:{value:e.emosearchKey,callback:function(r){e.emosearchKey=r},expression:"emosearchKey"}},[n("Icon",{class:{"icon-loading":e.emosearchLoad},attrs:{slot:"prefix",type:e.emosearchLoad?"ios-loading":"ios-search"},slot:"prefix"})],1)],1):e.type==="emoji"?n("div",{staticClass:"chat-emoji-nav"},e._l(e.emojiNavList,function(r){var a;return n("div",{key:r.type,class:(a={},a[`i-${r.name}`]=!0,a.active=r.type===e.emojiNavActive,a),domProps:{innerHTML:e._s(r.content)},on:{click:function(l){e.emojiNavActive=r.type}}})}),0):e._e(),n("Scrollbar",[n("ul",{class:[e.type,"no-dark-content"]},e._l(e.list,function(r){return n("li",{on:{click:function(a){return e.onSelect(a,r)}}},[r.type==="emoticon"?n("img",{attrs:{src:r.src,title:r.name,alt:r.name}}):n("span",{attrs:{title:r.name},domProps:{innerHTML:e._s(r.html)}})])}),0)])],1),e.onlyEmoji?e._e():n("ul",{ref:"chatEmojiMenuRef",staticClass:"chat-emoji-menu",style:e.chatEmojiMenuStyle,on:{scroll:e.onHandleScroll}},[e.showEmojiMenuScrollLeftBtn?n("li",{staticClass:"left-btn",on:{click:function(r){return e.onEmojiMenuScroll("left")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE72D")])]):e._e(),n("li",{class:{active:e.type==="emosearch"},on:{click:function(r){e.type="emosearch"}}},[n("i",{staticClass:"taskfont"},[e._v("\uE6F8")])]),n("li",{class:{active:e.type==="emoji"},on:{click:function(r){e.type="emoji"}}},[n("span",{staticClass:"no-dark-content"},[e._v("\u{1F600}")])]),e._l(e.emoticonData,function(r){return n("li",{class:{active:e.type==="emoticon"&&e.emoticonPath==r.path},on:{click:function(a){return e.onEmoticon(r.path)}}},[n("img",{attrs:{title:r.name,alt:r.name,src:r.src}})])}),e.showEmojiMenuScrollRightBtn?n("li",{staticClass:"right-btn",on:{click:function(r){return e.onEmojiMenuScroll("right")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE733")])]):e._e()],2)])},pJ=[];const mJ={name:"ChatEmoji",props:{searchKey:{type:String,default:""},onlyEmoji:{type:Boolean,default:!1}},data(){return{type:"emoji",emojiNavActive:"p",emojiNavList:[{type:"p",name:"people",content:''},{type:"n",name:"nature",content:` +`},{type:"d",name:"food",content:''},{type:"s",name:"symbols",content:''},{type:"a",name:"activity",content:''},{type:"t",name:"travel",content:''},{type:"o",name:"objects",content:''},{type:"f",name:"flags",content:''}],emoticonPath:"",emosearchKey:"",emosearchCache:null,emosearchLoad:!1,emosearchTimer:null,emosearchList:[],emojiData:[],emoticonData:[],emojiMenuScrollLeft:0}},mounted(){this.initData(),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:t})=>t===this.emoticonPath);if(e)return e.list}return[]},chatEmojiMenuStyle(){return{paddingLeft:this.showEmojiMenuScrollLeftBtn?"34px":0,paddingRight:this.showEmojiMenuScrollRightBtn?"34px":0}},showEmojiMenuScrollLeftBtn(){return this.emojiMenuScrollLeft>34},showEmojiMenuScrollRightBtn(){var n;const e=this.$refs.chatEmojiMenuRef,t=((n=e==null?void 0:e.querySelector("li"))==null?void 0:n.offsetWidth)||48;return this.emojiMenuScrollLeft{const t=$A.apiUrl("../images/emoticon");$A.isArray(window.emojiData)&&(this.emojiData=window.emojiData.sort(function(n,r){return n.emoji_order-r.emoji_order}).map(n=>({type:"emoji",name:n.name,category:n.category,html:n.code_decimal}))),$A.isArray(window.emoticonData)&&(this.emoticonData=window.emoticonData.map(n=>Object.assign(n,{src:`${t}/${n.path}/${n.icon}`,list:n.list.map(r=>Object.assign(r,{type:"emoticon",asset:`images/emoticon/${n.path}/${r.path}`,src:`${t}/${n.path}/${r.path}`}))})))})},onEmosearch(){this.type!=="emosearch"||this.emosearchCache===this.emosearchKey||(this.emosearchCache=this.emosearchKey,this.emosearchLoad=!0,this.emosearchTimer&&clearTimeout(this.emosearchTimer),this.emosearchTimer=setTimeout(e=>{dJ("https://pic.sogou.com/napi/wap/pic",{query:this.emosearchKey+" \u8868\u60C5"}).then(t=>{if(this.emosearchList=[],t.status===0){const n=t.data.items;n.length>0&&(this.emosearchList=n.map(r=>({type:"emoticon",asset:"emosearch",name:r.title,src:r.thumbUrl,height:r.thumbHeight,width:r.thumbWidth})))}this.emosearchList.length===0&&$A.noticeWarning("\u6CA1\u6709\u641C\u7D22\u5230\u4EFB\u4F55\u8868\u60C5")}).catch(t=>{this.emosearchList=[],$A.noticeWarning("\u641C\u7D22\u7ED3\u679C\u4E3A\u7A7A")}).finally(t=>{this.emosearchLoad=!1})},300))},onEmoticon(e){this.type="emoticon",this.emoticonPath=e},onSelect(e,t){t.type==="emoji"?this.$emit("on-select",{type:"emoji",text:e.target.innerText}):this.$emit("on-select",t)},onMonitorWheel(){const e=this.$refs.chatEmojiMenuRef;e==null||e.addEventListener("wheel",t=>{t.preventDefault(),e.scrollLeft+=t.deltaY})},onEmojiMenuScroll(e){const t=this.$refs.chatEmojiMenuRef,n=t.offsetWidth-68,r=e=="right"?t.scrollLeft+n:t.scrollLeft-n;t.scrollTo({left:r,behavior:"smooth"})},onHandleScroll(e){this.emojiMenuScrollLeft=e.target.scrollLeft}}},Tl={};var fJ=Kt(mJ,_J,pJ,!1,gJ,null,null,null);function gJ(e){for(let t in Tl)this[t]=Tl[t]}var Ic=function(){return fJ.exports}();const yl="ontouchend"in document;var hJ={bind(e,t){let n=!1;e.__touchMouseDown__=r=>{r.preventDefault(),n=!0,t.value("down",r)},e.__touchMouseMove__=r=>{n&&t.value("move",r)},e.__touchMouseUp__=r=>{n&&(n=!1,t.value("up"))},yl?(e.addEventListener("touchstart",e.__touchMouseDown__),e.addEventListener("touchmove",e.__touchMouseMove__),e.addEventListener("touchend",e.__touchMouseUp__)):(e.addEventListener("mousedown",e.__touchMouseDown__),document.addEventListener("mousemove",e.__touchMouseMove__),document.addEventListener("mouseup",e.__touchMouseUp__))},update(){},unbind(e){yl?(e.removeEventListener("touchstart",e.__touchMouseDown__),e.removeEventListener("touchmove",e.__touchMouseMove__),e.removeEventListener("touchend",e.__touchMouseUp__)):(e.removeEventListener("mousedown",e.__touchMouseDown__),document.removeEventListener("mousemove",e.__touchMouseMove__),document.removeEventListener("mouseup",e.__touchMouseUp__)),delete e.__touchMouseDown__,delete e.__touchMouseMove__,delete e.__touchMouseUp__}};function Yn(e){return e===void 0&&(e=document.body),e===!0?document.body:e instanceof window.Node?e:document.querySelector(e)}const EJ={inserted(e,{value:t},n){if(e.dataset&&e.dataset.transfer!=="true")return!1;e.className=e.className?e.className+" v-transfer-dom":"v-transfer-dom";const r=e.parentNode;if(!r)return;const a=document.createComment("");let l=!1;t!==!1&&(r.replaceChild(a,e),Yn(t).appendChild(e),l=!0),e.__transferDomData||(e.__transferDomData={parentNode:r,home:a,target:Yn(t),hasMovedOut:l})},componentUpdated(e,{value:t}){if(e.dataset&&e.dataset.transfer!=="true")return!1;const n=e.__transferDomData;if(!n)return;const r=n.parentNode,a=n.home,l=n.hasMovedOut;!l&&t?(r.replaceChild(a,e),Yn(t).appendChild(e),e.__transferDomData=Object.assign({},e.__transferDomData,{hasMovedOut:!0,target:Yn(t)})):l&&t===!1?(r.replaceChild(e,a),e.__transferDomData=Object.assign({},e.__transferDomData,{hasMovedOut:!1,target:Yn(t)})):t&&Yn(t).appendChild(e)},unbind(e){if(e.dataset&&e.dataset.transfer!=="true")return!1;e.className=e.className.replace("v-transfer-dom",""),e.__transferDomData&&(e.__transferDomData.hasMovedOut===!0&&e.__transferDomData.parentNode&&e.__transferDomData.parentNode.appendChild(e),e.__transferDomData=null)}};var SJ=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.hidePopover,expression:"hidePopover"}],staticClass:"chat-input-box",class:e.boxClass},[n("div",{staticClass:"chat-input-quick-emoji"},[n("EPopover",{ref:"emojiQuickRef",attrs:{visibleArrow:!1,transition:"",placement:"top-end",popperClass:"chat-quick-emoji-popover"},model:{value:e.emojiQuickShow,callback:function(r){e.emojiQuickShow=r},expression:"emojiQuickShow"}},[n("div",{attrs:{slot:"reference"},slot:"reference"}),n("Scrollbar",{ref:"emojiWrapper",attrs:{tag:"ul","enable-x":!0,"enable-y":!1,"class-name":"chat-quick-emoji-wrapper scrollbar-hidden"}},e._l(e.emojiQuickItems,function(r){return n("li",{on:{click:function(a){return e.onEmojiQuick(r)}}},[n("img",{attrs:{title:r.name,alt:r.name,src:r.src}})])}),0)],1)],1),n("div",{ref:"inputWrapper",staticClass:"chat-input-wrapper",on:{click:function(r){return r.stopPropagation(),e.focus.apply(null,arguments)}}},[e.quoteData?n("div",{staticClass:"chat-quote"},[e.quoteUpdate?n("div",{staticClass:"quote-label"},[e._v(e._s(e.$L("\u7F16\u8F91\u6D88\u606F")))]):n("UserAvatar",{attrs:{userid:e.quoteData.userid,"show-icon":!1,"show-name":!0,"tooltip-disabled":!0}}),n("div",{staticClass:"quote-desc"},[e._v(e._s(e.$A.getMsgSimpleDesc(e.quoteData)))]),n("i",{staticClass:"taskfont",on:{click:function(r){return r.stopPropagation(),e.cancelQuote.apply(null,arguments)}}},[e._v("\uE6E5")])],1):e._e(),n("div",{ref:"editor",staticClass:"no-dark-content",style:e.editorStyle,on:{click:function(r){return r.stopPropagation(),e.onClickEditor.apply(null,arguments)},paste:e.handlePaste}}),n("ul",{staticClass:"chat-toolbar",on:{click:function(r){r.stopPropagation()}}},[n("li",[e.emojiBottom?n("ETooltip",{ref:"emojiTip",attrs:{disabled:e.$isEEUiApp||e.windowTouch||e.showEmoji,placement:"top",content:e.$L("\u8868\u60C5")}},[n("i",{staticClass:"taskfont",on:{click:function(r){e.showEmoji=!e.showEmoji}}},[e._v("\uE7AD")])]):n("EPopover",{attrs:{visibleArrow:!1,placement:"top",popperClass:"chat-input-emoji-popover"},model:{value:e.showEmoji,callback:function(r){e.showEmoji=r},expression:"showEmoji"}},[n("ETooltip",{ref:"emojiTip",attrs:{slot:"reference",disabled:e.$isEEUiApp||e.windowTouch||e.showEmoji,placement:"top",content:e.$L("\u8868\u60C5")},slot:"reference"},[n("i",{staticClass:"taskfont"},[e._v("\uE7AD")])]),e.showEmoji?n("ChatEmoji",{attrs:{searchKey:e.emojiQuickKey},on:{"on-select":e.onSelectEmoji}}):e._e()],1)],1),n("li",[n("ETooltip",{attrs:{placement:"top",disabled:e.$isEEUiApp||e.windowTouch,content:e.$L("\u9009\u62E9\u6210\u5458")}},[n("i",{staticClass:"taskfont",on:{click:function(r){return e.onToolbar("user")}}},[e._v("\uE78F")])])],1),n("li",[n("ETooltip",{attrs:{placement:"top",disabled:e.$isEEUiApp||e.windowTouch,content:e.$L("\u9009\u62E9\u4EFB\u52A1")}},[n("i",{staticClass:"taskfont",on:{click:function(r){return e.onToolbar("task")}}},[e._v("\uE7D6")])])],1),n("li",[n("EPopover",{attrs:{visibleArrow:!1,placement:"top",popperClass:"chat-input-more-popover"},model:{value:e.showMore,callback:function(r){e.showMore=r},expression:"showMore"}},[n("ETooltip",{ref:"moreTip",attrs:{slot:"reference",disabled:e.$isEEUiApp||e.windowTouch||e.showMore,placement:"top",content:e.$L("\u5C55\u5F00")},slot:"reference"},[n("i",{staticClass:"taskfont"},[e._v("\uE790")])]),e.recordReady?n("div",{staticClass:"chat-input-popover-item",on:{click:function(r){return e.onToolbar("meeting")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE7C1")]),e._v(" "+e._s(e.$L("\u65B0\u4F1A\u8BAE"))+" ")]):e._e(),e.canCall?n("div",{staticClass:"chat-input-popover-item",on:{click:function(r){return e.onToolbar("call")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE7BA")]),e._v(" "+e._s(e.$L("\u62E8\u6253\u7535\u8BDD"))+" ")]):e._e(),n("div",{staticClass:"chat-input-popover-item",on:{click:function(r){return e.onToolbar("image")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE7BC")]),e._v(" "+e._s(e.$L("\u53D1\u9001\u56FE\u7247"))+" ")]),n("div",{staticClass:"chat-input-popover-item",on:{click:function(r){return e.onToolbar("file")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE7C0")]),e._v(" "+e._s(e.$L("\u4E0A\u4F20\u6587\u4EF6"))+" ")]),e.canAnon?n("div",{staticClass:"chat-input-popover-item",on:{click:function(r){return e.onToolbar("anon")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE690")]),e._v(" "+e._s(e.$L("\u533F\u540D\u6D88\u606F"))+" ")]):e._e(),n("div",{staticClass:"chat-input-popover-item",on:{click:function(r){return e.onToolbar("full")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE6A7")]),e._v(" "+e._s(e.$L("\u5168\u5C4F\u8F93\u5165"))+" ")])],1)],1),n("li",{directives:[{name:"touchmouse",rawName:"v-touchmouse",value:e.clickSend,expression:"clickSend"},{name:"longpress",rawName:"v-longpress",value:{callback:e.longSend,delay:300},expression:"{callback: longSend, delay: 300}"}],ref:"chatSend",staticClass:"chat-send",class:e.sendClass},[n("EPopover",{attrs:{visibleArrow:!1,trigger:"manual",placement:"top",popperClass:"chat-input-more-popover"},model:{value:e.showMenu,callback:function(r){e.showMenu=r},expression:"showMenu"}},[n("ETooltip",{ref:"sendTip",attrs:{slot:"reference",placement:"top",disabled:e.$isEEUiApp||e.windowTouch||e.showMenu,content:e.$L(e.sendContent)},slot:"reference"},[e.loading?n("div",[n("div",{staticClass:"chat-load"},[n("Loading")],1)]):n("div",[n("transition",{attrs:{name:"mobile-send"}},[e.sendClass==="recorder"?n("i",{staticClass:"taskfont"},[e._v("\uE609")]):e._e()]),n("transition",{attrs:{name:"mobile-send"}},[e.sendClass!=="recorder"?n("i",{staticClass:"taskfont"},[e._v("\uE606")]):e._e()])],1)]),n("div",{staticClass:"chat-input-popover-item",on:{click:function(r){return e.onSend("silence")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE7D7")]),e._v(" "+e._s(e.$L("\u65E0\u58F0\u53D1\u9001"))+" ")]),n("div",{staticClass:"chat-input-popover-item",on:{click:function(r){return e.onSend("md")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE647")]),e._v(" "+e._s(e.$L("Markdown \u683C\u5F0F\u53D1\u9001"))+" ")])],1)],1),n("li",{staticClass:"chat-record-recwave"},[n("div",{ref:"recwave"})])]),n("div",{staticClass:"chat-cover",on:{click:function(r){return r.stopPropagation(),e.onClickCover.apply(null,arguments)}}})]),e.emojiBottom&&e.showEmoji?n("ChatEmoji",{attrs:{searchKey:e.emojiQuickKey},on:{"on-select":e.onSelectEmoji}}):e._e(),n("transition",{attrs:{name:"fade"}},[["ready","ing"].includes(e.recordState)?n("div",{directives:[{name:"transfer-dom",rawName:"v-transfer-dom"}],staticClass:"chat-input-record-transfer",class:{cancel:e.touchLimitY},style:e.recordTransferStyle,attrs:{"data-transfer":!0},on:{click:e.stopRecord}},[e.recordDuration>0?n("div",{staticClass:"record-duration"},[e._v(e._s(e.recordFormatDuration))]):n("div",{staticClass:"record-loading"},[n("Loading")],1),n("div",{staticClass:"record-cancel",on:{click:function(r){return r.stopPropagation(),e.stopRecord(!0)}}},[e._v(e._s(e.$L(e.touchLimitY?"\u677E\u5F00\u53D6\u6D88":"\u5411\u4E0A\u6ED1\u52A8\u53D6\u6D88")))])]):e._e()]),n("Modal",{attrs:{"mask-closable":!1,beforeClose:e.onFullBeforeClose,"class-name":"chat-input-full-input","footer-hide":"",fullscreen:""},model:{value:e.fullInput,callback:function(r){e.fullInput=r},expression:"fullInput"}},[n("div",{staticClass:"chat-input-box"},[n("div",{staticClass:"chat-input-wrapper"},[n("div",{ref:"editorFull",staticClass:"no-dark-content"})])]),n("i",{staticClass:"taskfont",attrs:{slot:"close"},slot:"close"},[e._v("\uE6AB")])])],1)},bJ=[];const vJ={name:"ChatInput",components:{ChatEmoji:Ic},directives:{touchmouse:hJ,TransferDom:EJ,clickoutside:zu,longpress:za},props:{value:{type:[String,Number],default:""},dialogId:{type:Number,default:0},taskId:{type:Number,default:0},placeholder:{type:String,default:""},disabled:{type:Boolean,default:!1},disabledRecord:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},enterSend:{type:[String,Boolean],default:null},emojiBottom:{type:Boolean,default:!1},sendMenu:{type:Boolean,default:!0},options:{type:Object,default:()=>({})},maxlength:{type:Number},defaultMenuOrientation:{type:String,default:"top"}},data(){return{quill:null,isFocus:!1,rangeIndex:0,_content:"",_options:{},mentionMode:"",userList:null,userCache:null,taskList:null,fileList:{},showMenu:!1,showMore:!1,showEmoji:!1,emojiQuickShow:!1,emojiQuickKey:"",emojiQuickItems:[],observer:null,wrapperWidth:0,wrapperHeight:0,editorHeight:0,recordReady:!1,recordRec:null,recordBlob:null,recordWave:null,recordInter:null,recordState:"stop",recordDuration:0,touchStart:{},touchLimitX:!1,touchLimitY:!1,pasteClean:!0,changeLoad:0,isSpecVersion:this.checkIOSVersion(),emojiTimer:null,scrollTimer:null,selectTimer:null,textTimer:null,fileTimer:null,moreTimer:null,fullInput:!1,fullQuill:null}},mounted(){this.init(),this.observer=new ResizeObserver(e=>{e.some(({target:t,contentRect:n})=>{t===this.$el?(this.wrapperWidth=n.width,this.wrapperHeight=n.height):t===this.$refs.editor&&(this.editorHeight=n.height)})}),this.observer.observe(this.$el),this.observer.observe(this.$refs.editor),this.recordInter=setInterval(e=>{this.recordState==="ing"&&(this.__recordDuration&&this.__recordDuration===this.recordDuration?(this.__recordDuration=null,this.stopRecord(!0),$A.messageWarning("\u5F55\u97F3\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5")):this.__recordDuration=this.recordDuration)},1e3),this.$isEEUiApp&&(window.__onPermissionRequest=(e,t)=>{e==="recordAudio"&&t===!1&&this.stopRecord(!0)}),$A.loadScript("js/emoticon.all.js")},beforeDestroy(){this.quill&&(this.quill=null),this.recordRec&&(this.recordRec=null),this.observer&&(this.observer.disconnect(),this.observer=null),this.recordInter&&clearInterval(this.recordInter)},computed:{...Wn(["cacheProjects","cacheTasks","cacheUserBasic","cacheDialogs","dialogMsgs"]),isEnterSend({enterSend:e}){return typeof e=="boolean"?e:!0},canCall(){return this.dialogData.type==="user"&&!this.dialogData.bot&&this.$isEEUiApp},canAnon(){return this.dialogData.type==="user"&&!this.dialogData.bot},editorStyle(){const{wrapperWidth:e,editorHeight:t,value:n}=this,r={};return n.length<10&&(r.height="30px"),e>0&&t>0&&(e<280||t>40)&&(r.width="100%"),r},recordTransferStyle(){const{windowScrollY:e}=this;return e>0?{marginTop:e/2+"px"}:null},boxClass(){const e=[];return["ready","ing"].includes(this.recordState)&&(this.recordState==="ing"&&this.recordDuration>0?e.push("record-progress"):e.push("record-ready")),this.showMenu&&e.push("show-menu"),this.showMore&&e.push("show-more"),this.showEmoji&&e.push("show-emoji"),this.mentionMode&&e.push(this.mentionMode),e},sendClass(){return this.value?"sender":this.recordReady?"recorder":""},sendContent(){const{sendTip:e}=this.$refs;return e&&e.$refs.popper&&(e.$refs.popper.style.visibility="hidden",e.showPopper=!1,setTimeout(t=>{e.$refs.popper&&(e.$refs.popper.style.visibility="visible")},300)),this.sendClass==="recorder"?"\u957F\u6309\u5F55\u97F3":"\u53D1\u9001"},recordFormatDuration(){const{recordDuration:e}=this;let t=Math.floor(e/6e4),n=Math.floor(e/1e3)%60,r=("00"+e%1e3).substr(-2);return t<10&&(t=`0${t}`),n<10&&(n=`0${n}`),`${t}:${n}\u2033${r}`},dialogData(){return this.dialogId>0?this.cacheDialogs.find(({id:e})=>e==this.dialogId)||{}:{}},quoteUpdate(){return this.dialogData.extra_quote_type==="update"},quoteData(){const{extra_quote_id:e}=this.dialogData;return e?this.dialogMsgs.find(t=>t.id===e):null}},watch:{value(e){this.quill&&(e&&e!==this._content?(this._content=e,this.setContent(e)):e||this.quill.setText("")),this.$store.dispatch("saveDialogDraft",{id:this.dialogId,extra_draft_content:e})},disabled(e){var t;(t=this.quill)==null||t.enable(!e)},dialogId(){this.userList=null,this.userCache=null,this.taskList=null,this.fileList={},this.loadInputDraft()},taskId(){this.userList=null,this.userCache=null,this.taskList=null,this.fileList={},this.loadInputDraft()},"dialogData.extra_draft_content"(){this.isFocus||this.loadInputDraft()},showMenu(e){e&&(this.showMore=!1,this.showEmoji=!1,this.emojiQuickShow=!1)},showMore(e){e&&(this.showMenu=!1,this.showEmoji=!1,this.emojiQuickShow=!1)},showEmoji(e){if(this.emojiBottom&&(e?this.quill.enable(!1):this.disabled||this.quill.enable(!0)),e){let t=this.value.replace(/ /g," ").replace(/<[^>]+>/g,"");if(t&&t.indexOf(" ")===-1&&t.length>=1&&t.length<=8?this.emojiQuickKey=t:this.emojiQuickKey="",this.showMenu=!1,this.showMore=!1,this.emojiQuickShow=!1,this.quill){const n=this.quill.selection.savedRange;this.rangeIndex=n?n.index:0}}else this.rangeIndex>0&&this.quill.setSelection(this.rangeIndex);this.$emit("on-emoji-visible-change",e)},emojiQuickShow(e){e&&(this.showMenu=!1,this.showMore=!1,this.showEmoji=!1)},isFocus(e){this.scrollTimer&&clearInterval(this.scrollTimer),e?(this.$emit("on-focus"),this.hidePopover(),this.isSpecVersion||this.windowPortrait&&(this.scrollTimer=setInterval(()=>{var t;(t=this.quill)!=null&&t.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)},wrapperHeight(e,t){this.$emit("on-height-change",{newVal:e,oldVal:t})},fullInput(e){var t;(t=this.quill)==null||t.enable(!e)}},methods:{init(){this._options=Object.assign({theme:"bubble",readOnly:!1,placeholder:this.placeholder,modules:{toolbar:[["bold","strike","italic","underline",{list:"ordered"},{list:"bullet"},"blockquote","code-block"]],keyboard:{bindings:{"short enter":{key:13,shortKey:!0,handler:e=>this.isEnterSend?!0:(this.onSend(),!1)},enter:{key:13,shiftKey:!1,handler:e=>this.isEnterSend?(this.onSend(),!1):!0},esc:{key:27,shiftKey:!1,handler:e=>this.emojiQuickShow?(this.emojiQuickShow=!1,!1):!0}}},mention:this.quillMention()}},this.options),this.quill=new Ht(this.$refs.editor,this._options),this.quill.enable(!this.disabled),this.value?this.setContent(this.value):this.loadInputDraft(),this.quill.on("selection-change",e=>{if(!e&&document.activeElement&&["ql-editor","ql-clipboard"].includes(document.activeElement.className)){this.selectTimer&&clearTimeout(this.selectTimer),this.selectTimer=setTimeout(t=>{this.quill.setSelection(document.activeElement.className==="ql-editor"?0:this.quill.getLength())},100);return}this.isFocus=!!e}),this.quill.on("text-change",e=>{this.changeLoad++,this.textTimer&&clearTimeout(this.textTimer),this.textTimer=setTimeout(t=>{this.changeLoad--,this.maxlength>0&&this.quill.getLength()>this.maxlength&&this.quill.deleteText(this.maxlength,this.quill.getLength());let n=this.$refs.editor.firstChild.innerHTML;n=n.replace(/^(

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

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

<\/p>)+|(

<\/p>)+$/gi,""),this.updateEmojiQuick(n),this._content=n,this.$emit("input",this._content),this.$nextTick(r=>{const a=this.quill.getSelection();if(a){const l=this.quill.getText(a.index);/^\n\n$/.test(l)&&this.quill.deleteText(a.index,1)}})},100)}),this.quill.clipboard.addMatcher(Node.ELEMENT_NODE,(e,t)=>(this.pasteClean&&(t.ops=t.ops.map(n=>{const r={insert:n.insert};try{typeof r.insert.mention=="object"&&e.innerHTML&&(r.insert=e.innerHTML.replace(/<[^>]+>/g,""))}catch{}return n.attributes&&["bold","strike","italic","underline","list","blockquote","link"].some(a=>{n.attributes[a]&&(typeof r.attributes=="undefined"&&(r.attributes={}),r.attributes[a]=n.attributes[a])}),r})),t)),this.$nextTick(e=>{this.quill.root.addEventListener("keydown",t=>{if(t.key==="\r\r"&&t.keyCode===229){const n=this.quill.getSelection(!0).index;this.quill.insertText(n,`\r `)}}),this.quill.root.setAttribute("enterkeyhint","send")}),this.$emit("on-ready",this.quill),this.disabledRecord||$A.loadScriptS(["js/recorder/recorder.mp3.min.js","js/recorder/lib.fft.js","js/recorder/frequency.histogram.view.js"]).then(e=>{typeof window.Recorder=="function"&&(this.recordRec=window.Recorder({type:"mp3",bitRate:64,sampleRate:32e3,onProcess:(t,n,r,a,l,u)=>{var c;(c=this.recordWave)==null||c.input(t[t.length-1],n,a),this.recordDuration=r,r>=3*60*1e3&&this.stopRecord(!1)}}),window.Recorder.Support()&&(this.recordReady=!0))})},quillMention(){return{allowedChars:/^\S*$/,mentionDenotationChars:["@","#","~"],defaultMenuOrientation:this.defaultMenuOrientation,isolateCharacter:!0,positioningStrategy:"fixed",renderItem:e=>{if(e.disabled===!0)return`

`;if(e.id===0)return`
@
${e.value}
${e.tip}
`;if(e.avatar){const t=e.bot?'
':"";return`
${t}
${e.value}
`}return e.tip?`
${e.value}
${e.tip}
`:`
${e.value}
`},renderLoading:()=>"Loading...",source:(e,t,n)=>{const r=n=="@"?"user-mention":n=="#"?"task-mention":"file-mention",a=document.getElementsByClassName("ql-mention-list-container");for(let u=0;u{const c=[];u.some(d=>{let g=d.list;e&&(g=g.filter(({value:f})=>$A.strExists(f,e))),g.length>0&&(d.label&&c.push(...d.label),c.push(...g))}),$A.jsonStringify(c.map(({id:d})=>d))!==l&&(l=$A.jsonStringify(c.map(({id:d})=>d)),t(c,e))})}}},updateEmojiQuick(e){if(!this.isFocus||!e){this.emojiQuickShow=!1;return}this.emojiTimer&&clearTimeout(this.emojiTimer),this.emojiTimer=setTimeout(t=>{if(/]+>/g,""),e&&e.indexOf(" ")===-1&&e.length>=1&&e.length<=8&&$A.isArray(window.emoticonData)){this.emojiQuickItems=[];const n=$A.apiUrl("../images/emoticon");if(window.emoticonData.some(r=>{let a=0;if(r.list.some(l=>{const u=[l.name];if(l.key&&u.push(...`${l.key}`.split(" ")),u.includes(e)&&(this.emojiQuickItems.push(Object.assign(l,{type:"emoticon",asset:`images/emoticon/${r.path}/${l.path}`,name:l.name,src:`${n}/${r.path}/${l.path}`})),++a>=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(r=>{this.emojiQuickShow=!0,this.$refs.emojiQuickRef.updatePopper()});return}}this.emojiQuickShow=!1},100)},getText(){return this.quill?`${this.quill.getText()}`.replace(/^\s+|\s+$/g,""):""},setText(e){this.quill&&this.quill.setText(e)},setContent(e){this.quill&&this.quill.setContents(this.quill.clipboard.convert(e))},setPasteMode(e){this.pasteClean=e},loadInputDraft(){const{extra_draft_content:e}=this.dialogData;e?(this.pasteClean=!1,this.$emit("input",e),this.$nextTick(t=>this.pasteClean=!0)):this.$emit("input","")},onClickEditor(){this.clearSearchKey(),this.updateEmojiQuick(this.value)},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(()=>{this.quill&&(this.quill.setSelection(this.quill.getLength()),this.quill.focus())})},blur(){this.$nextTick(()=>{this.quill&&this.quill.blur()})},clickSend(e,t){if(!this.loading)switch(e){case"down":if(this.touchLimitX=!1,this.touchLimitY=!1,this.touchStart=t.type==="touchstart"?t.touches[0]:t,(t.button===void 0||t.button===0)&&this.startRecord())return;break;case"move":const n=t.type==="touchmove"?t.touches[0]:t;this.touchLimitX=(this.touchStart.clientX-n.clientX)/window.innerWidth>.1,this.touchLimitY=(this.touchStart.clientY-n.clientY)/window.innerHeight>.1;break;case"up":if(this.showMenu||this.stopRecord(this.touchLimitY)||this.touchLimitY||this.touchLimitX)return;this.onSend();break}},longSend(){this.sendClass==="recorder"||!this.sendMenu||(this.showMenu=!0)},onSend(e){setTimeout(t=>{this.hidePopover("send"),this.rangeIndex=0,this.clearSearchKey(),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(t=>{this.recordState==="ready"?(this.recordState="ing",this.recordBlob=null,setTimeout(n=>{this.recordRec.start()},300)):this.recordRec.close()},t=>{this.recordState="stop",$A.messageError(t||"\u6253\u5F00\u5F55\u97F3\u5931\u8D25")})}),!0):!1},stopRecord(e){switch(this.recordState){case"ing":return this.recordState="stop",this.recordRec.stop((t,n)=>{this.recordRec.close(),e!==!0&&(n<600?$A.messageWarning("\u8BF4\u8BDD\u65F6\u95F4\u592A\u77ED"):(this.recordBlob=t,this.uploadRecord(n)))},t=>{this.recordRec.close(),$A.messageError(t||"\u5F55\u97F3\u5931\u8D25")}),!0;case"ready":return this.recordState="stop",!0;default:return this.recordState="stop",!1}},hidePopover(e){this.showMenu=!1,this.showMore=!1,e!=="send"&&(this.showEmoji=!1,this.emojiQuickShow=!1)},onClickCover(){this.hidePopover(),this.$nextTick(e=>{var t;(t=this.quill)==null||t.focus()})},uploadRecord(e){if(this.recordBlob===null)return;const t=new FileReader;t.onloadend=()=>{this.$emit("on-record",{type:this.recordBlob.type,base64:t.result,duration:e})},t.readAsDataURL(this.recordBlob)},onEmojiQuick(e){e.type==="online"?(this.$emit("input",""),this.$emit("on-send",``)):(this.$emit("input",""),this.$emit("on-send",``)),this.emojiQuickShow=!1,this.focus()},onSelectEmoji(e){!this.quill||(e.type==="emoji"?(this.quill.insertText(this.rangeIndex,e.text),this.rangeIndex+=e.text.length,this.windowLandscape&&(this.showEmoji=!1)):e.type==="emoticon"&&(this.$emit("on-send",``),e.asset==="emosearch"&&this.$emit("input",""),this.windowLandscape&&(this.showEmoji=!1)))},onToolbar(e){switch(this.hidePopover(),e){case"user":this.openMenu("@");break;case"task":this.openMenu("#");break;case"meeting":_i.Store.set("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}},onFullInput(){this.disabled||(this.fullInput=!this.fullInput,this.fullInput&&this.$nextTick(e=>{this.fullQuill=new Ht(this.$refs.editorFull,Object.assign({theme:"bubble",readOnly:!1,placeholder:this.placeholder,modules:{toolbar:[["bold","strike","italic","underline",{list:"ordered"},{list:"bullet"},"blockquote","code-block"]],mention:this.quillMention()}},this.options)),this.fullQuill.enable(!0),this.$refs.editorFull.firstChild.innerHTML=this.$refs.editor.firstChild.innerHTML,this.$nextTick(t=>{this.fullQuill.setSelection(this.fullQuill.getLength()),this.fullQuill.focus()})}))},onFullBeforeClose(){return new Promise(e=>{var t;(t=this.$refs.editorFull)!=null&&t.firstChild&&(this.$refs.editor.firstChild.innerHTML=this.$refs.editorFull.firstChild.innerHTML),e()})},onMoreVisibleChange(e){this.showMore=e},setQuote(e,t="reply"){this.dialogId>0&&this.$store.dispatch("saveDialog",{id:this.dialogId,extra_quote_id:e,extra_quote_type:t==="update"?"update":"reply"})},cancelQuote(){this.quoteUpdate&&this.$emit("input",""),this.setQuote(0)},openMenu(e){if(!!this.quill)if(this.value.length===0||this.value.endsWith("


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

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

${e.label}

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

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

${e.label}

`)},onMsgChange(e){const t=this.allMsgs.find(({type:n,id:r})=>n=="text"&&r==e.id);if(t){const{tail:n}=this.scrollInfo();e.type==="append"?t.msg.text+=e.text:e.type==="replace"&&(t.msg.text=e.text),this.$nextTick(r=>{const{tail:a}=this.scrollInfo();n<=10&&a!=n&&(this.operatePreventScroll++,this.$refs.scroller.scrollToBottom(),setTimeout(l=>{this.operatePreventScroll--},50))})}},getTempId(){return this.tempId++},getMsgs(e){return new Promise((t,n)=>{setTimeout(r=>this.msgLoadIng++,2e3),this.$store.dispatch("getDialogMsgs",e).then(t).catch(n).finally(r=>{this.msgLoadIng--})})},msgFilter(e){if(this.msgType){if(this.msgType==="tag"){if(!e.tag)return!1}else if(this.msgType==="todo"){if(!e.todo)return!1}else if(this.msgType==="link"){if(!e.link)return!1}else if(this.msgType!==e.mtype)return!1}return!(this.msgId&&e.reply_id!=this.msgId)},onSearchMsgId(){this.dialogSearchMsgId>0&&this.openId===this.dialogId&&(this.onPositionId(this.dialogSearchMsgId),this.$store.state.dialogSearchMsgId=0)},onPositionId(e,t=0,n=0){return new Promise((r,a)=>{if(e===0){$A.modalError("\u67E5\u770B\u5931\u8D25\uFF1A\u53C2\u6570\u9519\u8BEF"),a();return}if(this.loadMsg||this.msgType!==""){if(this.msgType="",n===0)this.$store.dispatch("showSpinner",600);else if(n>20){this.$store.dispatch("hiddenSpinner"),$A.modalError("\u67E5\u770B\u5931\u8D25\uFF1A\u8BF7\u6C42\u8D85\u65F6"),a();return}n++,setTimeout(c=>{this.onPositionId(e,t,n).then(r).catch(a)},Math.min(800,200*n));return}n>0&&this.$store.dispatch("hiddenSpinner");const l=this.allMsgs.findIndex(c=>c.id===e),u=this.prevId>0?0:-1;l>u?setTimeout(c=>{this.onToIndex(l),r()},200):(t>0&&this.$store.dispatch("setLoad",{key:`msg-${t}`,delay:600}),this.preventToBottom=!0,this.getMsgs({dialog_id:this.dialogId,msg_id:this.msgId,msg_type:this.msgType,position_id:e,spinner:2e3}).finally(c=>{const d=this.allMsgs.findIndex(g=>g.id===e);d>-1&&(this.onToIndex(d),r()),t>0&&this.$store.dispatch("cancelLoad",`msg-${t}`),this.preventToBottom=!1}))})},onViewTodo(e){if(this.operateVisible)return;this.todoViewId=e.id,this.todoViewMid=e.msg_id,this.todoViewShow=!0,this.allMsgs.findIndex(n=>n.id===this.todoViewMid)===-1&&this.$store.dispatch("call",{url:"dialog/msg/one",data:{msg_id:this.todoViewMid}}).then(({data:n})=>{this.todoViewData=n})},onCloseTodo(){this.todoViewLoad=!1,this.todoViewShow=!1,this.todoViewData={},this.todoViewMid=0,this.todoViewId=0},onPosTodo(){!this.todoViewMid||(this.todoViewPosLoad=!0,this.onPositionId(this.todoViewMid).then(this.onCloseTodo).finally(e=>{this.todoViewPosLoad=!1}))},onDoneTodo(){!this.todoViewId||this.todoViewLoad||(this.todoViewLoad=!0,this.$store.dispatch("call",{url:"dialog/msg/done",data:{id:this.todoViewId}}).then(({data:e})=>{this.$store.dispatch("saveDialogTodo",{id:this.todoViewId,done_at:$A.formatDate("Y-m-d H:i:s")}),this.$store.dispatch("saveDialog",{id:this.dialogId,todo_num:this.todoList.length}),e.add&&this.sendSuccess(e.add),this.todoList.length===0&&this.$store.dispatch("getDialogTodo",this.dialogId),this.onCloseTodo()}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.todoViewLoad=!1}))},itemClassAdd(e){return e===this.msgActiveIndex?"common-shake":""},inputFocus(){this.$nextTick(e=>{this.$refs.input&&this.$refs.input.focus()})},onRecordState(e){this.recordState=e},chatPasteDrag(e,t){if(this.dialogDrag=!1,$A.dataHasFolder(t==="drag"?e.dataTransfer:e.clipboardData)){e.preventDefault(),$A.modalWarning(`\u6682\u4E0D\u652F\u6301${t==="drag"?"\u62D6\u62FD":"\u7C98\u8D34"}\u6587\u4EF6\u5939\u3002`);return}const n=t==="drag"?e.dataTransfer.files:e.clipboardData.files,r=Array.prototype.slice.call(n);r.length>0&&(e.preventDefault(),this.sendFileMsg(r))},chatDragOver(e,t){let n=this.__dialogDrag=$A.randomString(8);if(!e)setTimeout(()=>{n===this.__dialogDrag&&(this.dialogDrag=e)},150);else{if(t.dataTransfer.effectAllowed==="move"||Array.prototype.slice.call(t.dataTransfer.files).length===0)return;this.dialogDrag=!0}},onTouchStart(e){if(this.wrapperStart=null,this.$refs.scroller.$el.contains(e.target))this.wrapperStart=Object.assign(this.scrollInfo(),{clientY:e.touches[0].clientY});else if(this.$refs.input.$refs.editor.contains(e.target)){const t=this.$refs.input.$refs.editor.querySelector(".ql-editor");if(t){const n=t.clientHeight,r=t.scrollTop,a=t.scrollHeight;this.wrapperStart={offset:r,scale:r/(a-n),tail:a-n-r,clientY:e.touches[0].clientY}}}},onTouchMove(e){if(this.footerPaddingBottom>0||this.windowPortrait&&this.windowScrollY>0){if(this.wrapperStart===null){e.preventDefault();return}this.wrapperStart.clientY>e.touches[0].clientY?this.wrapperStart.tail===0&&e.preventDefault():this.wrapperStart.offset===0&&e.preventDefault()}},pasteSend(){this.pasteFile.some(e=>{this.$refs.chatUpload.upload(e)})},chatFile(e,t){switch(e){case"progress":const n={id:t.tempId,dialog_id:this.dialogData.id,reply_id:this.quoteId,type:"loading",userid:this.userId,msg:{}};this.tempMsgs.push(n),this.msgType="",this.cancelQuote(),this.onActive(),this.$nextTick(this.onToBottom);break;case"error":this.tempMsgs=this.tempMsgs.filter(({id:r})=>r!=t.tempId);break;case"success":this.tempMsgs=this.tempMsgs.filter(({id:r})=>r!=t.tempId),this.sendSuccess(t.data);break}},sendSuccess(e){if($A.isArray(e)){e.some(this.sendSuccess);return}this.$store.dispatch("saveDialogMsg",e),this.quoteUpdate||(this.$store.dispatch("increaseTaskMsgNum",e),this.$store.dispatch("increaseMsgReplyNum",e),this.$store.dispatch("updateDialogLastMsg",e)),this.cancelQuote(),this.onActive()},setQuote(e,t){var n;(n=this.$refs.input)==null||n.setQuote(e,t)},cancelQuote(){var e;(e=this.$refs.input)==null||e.cancelQuote()},onEventFocus(){this.$emit("on-focus")},onEventBlur(){this.$emit("on-blur")},onEventMore(e){switch(e){case"image":case"file":this.$refs.chatUpload.handleClick();break;case"call":this.onCallTel();break;case"anon":this.onAnon();break}},onCallTel(){this.$store.dispatch("call",{url:"dialog/tel",data:{dialog_id:this.dialogId},spinner:600}).then(({data:e})=>{e.tel&&$A.eeuiAppSendMessage({action:"callTel",tel:e.tel}),e.add&&(this.$store.dispatch("saveDialogMsg",e.add),this.$store.dispatch("updateDialogLastMsg",e.add),this.onActive())}).catch(({msg:e})=>{$A.modalError(e)})},onAnon(){if(this.dialogData.type!=="user"||this.dialogData.bot){$A.modalWarning("\u533F\u540D\u6D88\u606F\u4EC5\u5141\u8BB8\u53D1\u9001\u7ED9\u4E2A\u4EBA");return}$A.modalInput({title:"\u53D1\u9001\u533F\u540D\u6D88\u606F",placeholder:"\u533F\u540D\u6D88\u606F\u5C06\u901A\u8FC7\u533F\u540D\u6D88\u606F\uFF08\u673A\u5668\u4EBA\uFF09\u53D1\u9001\u7ED9\u5BF9\u65B9\uFF0C\u4E0D\u4F1A\u8BB0\u5F55\u4F60\u7684\u4EFB\u4F55\u8EAB\u4EFD\u4FE1\u606F",inputProps:{type:"textarea",rows:3,autosize:{minRows:3,maxRows:6},maxlength:2e3},okText:"\u533F\u540D\u53D1\u9001",onOk:e=>e?new Promise((t,n)=>{this.$store.dispatch("call",{url:"dialog/msg/sendanon",data:{userid:this.dialogData.dialog_user.userid,text:e},method:"post"}).then(({msg:r})=>{t(r)}).catch(({msg:r})=>{n(r)})}):"\u8BF7\u8F93\u5165\u6D88\u606F\u5185\u5BB9"})},onEventEmojiVisibleChange(e){e&&this.windowPortrait&&this.onToBottom()},onHeightChange({newVal:e,oldVal:t}){const n=e-t;if(n!==0){const{offset:r,tail:a}=this.scrollInfo();a>0&&this.onToOffset(r+n)}},onActive(){this.$emit("on-active")},onToBottom(){this.msgNew=0;const e=this.$refs.scroller;e&&(e.scrollToBottom(),requestAnimationFrame(t=>e.scrollToBottom()))},onToIndex(e){const t=this.$refs.scroller;t&&(t.stopToBottom(),t.scrollToIndex(e,-100),requestAnimationFrame(n=>t.scrollToIndex(e,-100))),requestAnimationFrame(n=>this.msgActiveIndex=e)},onToOffset(e){const t=this.$refs.scroller;t&&(t.stopToBottom(),t.scrollToOffset(e),setTimeout(n=>t.scrollToOffset(e),10))},scrollInfo(){const e=this.$refs.scroller;return e?e.scrollInfo():{offset:0,scale:0,tail:0}},openProject(){!this.dialogData.group_info||(this.windowPortrait&&this.$store.dispatch("openDialog",0),this.goForward({name:"manage-project",params:{projectId:this.dialogData.group_info.id}}))},openTask(){!this.dialogData.group_info||(this.taskId>0&&this.$store.dispatch("openDialog",0),this.$store.dispatch("openTask",{id:this.dialogData.group_info.id,deleted_at:this.dialogData.group_info.deleted_at,archived_at:this.dialogData.group_info.archived_at}))},openOkr(){!this.dialogData.link_id||this.$store.dispatch("openOkr",this.dialogData.link_id)},onPrevPage(){this.prevId!==0&&this.getMsgs({dialog_id:this.dialogId,msg_id:this.msgId,msg_type:this.msgType,prev_id:this.prevId,save_before:e=>this.scrollDisabled=!0,save_after:e=>this.scrollDisabled=!1}).then(({data:e})=>{const t=e.list.map(n=>n.id);this.$nextTick(()=>{const n=this.$refs.scroller,r=t.reduce((l,u)=>({size:(typeof l=="object"?l.size:n.getSize(l))+n.getSize(u)}));let a=n.getOffset()+r.size;this.prevId===0&&(a-=36),this.onToOffset(a),setTimeout(l=>n.virtual.handleFront(),10)})}).catch(()=>{})},onDialogMenu(e){var t;switch(e){case"searchMsg":this.searchShow=!0,this.$nextTick(r=>{this.$refs.searchInput.focus()});break;case"openCreate":const n=[this.userId];this.dialogData.dialog_user&&this.userId!=this.dialogData.dialog_user.userid&&n.push(this.dialogData.dialog_user.userid),this.createGroupData={userids:n,uncancelable:[this.userId]},this.createGroupShow=!0;break;case"modifyNormal":this.modifyData={dialog_id:this.dialogData.id,avatar:this.dialogData.avatar,name:this.dialogData.name},this.dialogData.type==="user"&&(this.modifyData=Object.assign(this.modifyData,{userid:this.dialogData.dialog_user.userid,avatar:(t=this.cacheUserBasic.find(r=>r.userid===this.dialogData.dialog_user.userid))==null?void 0:t.userimg,clear_day:0,webhook_url:"",system_name:""}),this.modifyLoad++,this.$store.dispatch("call",{url:"users/bot/info",data:{id:this.dialogData.dialog_user.userid}}).then(({data:r})=>{this.modifyData.clear_day=r.clear_day,this.modifyData.webhook_url=r.webhook_url,this.modifyData.system_name=r.system_name}).finally(()=>{this.modifyLoad--})),this.modifyShow=!0;break;case"modifyAdmin":this.modifyData={dialog_id:this.dialogData.id,avatar:this.dialogData.avatar,admin:1},this.modifyShow=!0;break;case"groupInfo":this.groupInfoShow=!0;break;case"transfer":this.groupTransferData={dialog_id:this.dialogId,userid:[],disabledChoice:[this.userId]},this.groupTransferShow=!0;break;case"transferConfirm":this.onTransferGroup();break;case"disband":this.onDisbandGroup();break;case"exit":this.onExitGroup();break}},onTransferGroup(){if(this.groupTransferData.userid.length===0){$A.messageError("\u8BF7\u9009\u62E9\u65B0\u7684\u7FA4\u4E3B");return}this.groupTransferLoad++,this.$store.dispatch("call",{url:"dialog/group/transfer",data:{dialog_id:this.dialogId,userid:this.groupTransferData.userid[0]}}).then(({data:e,msg:t})=>{$A.messageSuccess(t),this.$store.dispatch("saveDialog",e)}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.groupTransferLoad--,this.groupTransferShow=!1})},onDisbandGroup(){$A.modalConfirm({content:`\u4F60\u786E\u5B9A\u8981\u89E3\u6563\u3010${this.dialogData.name}\u3011\u7FA4\u7EC4\u5417\uFF1F`,loading:!0,okText:"\u89E3\u6563",onOk:()=>new Promise((e,t)=>{this.$store.dispatch("call",{url:"dialog/group/disband",data:{dialog_id:this.dialogId}}).then(({msg:n})=>{e(n),this.$store.dispatch("forgetDialog",this.dialogId),this.goForward({name:"manage-messenger"})}).catch(({msg:n})=>{t(n)})})})},onExitGroup(){$A.modalConfirm({content:"\u4F60\u786E\u5B9A\u8981\u9000\u51FA\u7FA4\u7EC4\u5417\uFF1F",loading:!0,onOk:()=>new Promise((e,t)=>{this.$store.dispatch("call",{url:"dialog/group/deluser",data:{dialog_id:this.dialogId}}).then(({msg:n})=>{e(n),this.$store.dispatch("forgetDialog",this.dialogId),this.goForward({name:"manage-messenger"})}).catch(({msg:n})=>{t(n)})})})},onCreateGroup(){this.createGroupLoad++,this.$store.dispatch("call",{url:"dialog/group/add",data:this.createGroupData}).then(({data:e,msg:t})=>{$A.messageSuccess(t),this.createGroupShow=!1,this.createGroupData={},this.$store.dispatch("saveDialog",e),this.$store.dispatch("openDialog",e.id)}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.createGroupLoad--})},onModify(){this.modifyData.userid?(this.modifyLoad++,this.$store.dispatch("call",{url:"users/bot/edit",data:{id:this.modifyData.userid,avatar:this.modifyData.avatar,name:this.modifyData.name,clear_day:this.modifyData.clear_day,webhook_url:this.modifyData.webhook_url},method:"post"}).then(({data:e,msg:t})=>{$A.messageSuccess(t),this.$store.dispatch("saveUserBasic",{userid:this.modifyData.userid,nickname:e.name,userimg:e.avatar}),this.$store.dispatch("saveDialog",{id:this.modifyData.dialog_id,name:e.name}),this.modifyShow=!1,this.modifyData={}}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.modifyLoad--})):(this.modifyLoad++,this.$store.dispatch("call",{url:"dialog/group/edit",data:this.modifyData}).then(({data:e,msg:t})=>{$A.messageSuccess(t),this.$store.dispatch("saveDialog",e),this.modifyShow=!1,this.modifyData={}}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.modifyLoad--}))},onForward(){return new Promise((e,t)=>{if(this.forwardData.length===0){$A.messageError("\u8BF7\u9009\u62E9\u8F6C\u53D1\u5BF9\u8BDD\u6216\u6210\u5458"),t();return}const n=this.forwardData.filter(a=>$A.leftExists(a,"d:")).map(a=>a.replace("d:","")),r=this.forwardData.filter(a=>!$A.leftExists(a,"d:"));this.$store.dispatch("call",{url:"dialog/msg/forward",data:{dialogids:n,userids:r,msg_id:this.operateItem.id}}).then(({data:a,msg:l})=>{this.$store.dispatch("saveDialogMsg",a.msgs),this.$store.dispatch("updateDialogLastMsg",a.msgs),$A.messageSuccess(l),e()}).catch(({msg:a})=>{$A.modalError(a),t()})})},onScroll(e){this.operatePreventScroll===0&&(this.operateVisible=!1);const{offset:t,tail:n}=this.scrollInfo();this.scrollOffset=t,this.scrollTail=n,this.scrollTail<=55&&(this.msgNew=0),this.scrollAction=e.target.scrollTop,this.scrollDirection=this.scrollTmp<=this.scrollAction?"down":"up",setTimeout(r=>this.scrollTmp=this.scrollAction,0)},onRange(e){if(this.preventMoreLoad)return;const t=this.scrollDirection==="down"?"next_id":"prev_id";for(let n=e.start;n<=e.end;n++){const r=this.allMsgs[n][t];if(r){const a=this.allMsgs[n+(t==="next_id"?1:-1)];a&&a.id!=r&&(this.preventMoreLoad=!0,this.getMsgs({dialog_id:this.dialogId,msg_id:this.msgId,msg_type:this.msgType,[t]:r}).finally(l=>{this.preventMoreLoad=!1}))}}},onBack(){if(!this.beforeBack)return this.handleBack();const e=this.beforeBack();e&&e.then?e.then(()=>{this.handleBack()}):this.handleBack()},handleBack(){const{name:e,params:t}=this.$store.state.routeHistoryLast;e===this.$route.name&&/^\d+$/.test(t.dialogId)?this.goForward({name:this.$route.name}):this.goBack()},onMsgType(e){switch(e){case"project":this.openProject();break;case"task":this.openTask();break;case"okr":this.openOkr();break;default:this.loadMsg?$A.messageWarning("\u6B63\u5728\u52A0\u8F7D\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5..."):this.msgType=e;break}},onMention(e){const t=this.cacheUserBasic.find(({userid:n})=>n==e.userid);t&&this.$refs.input.addMention({denotationChar:"@",id:t.userid,value:t.nickname})},onLongpress({event:e,el:t,msgData:n}){if(this.operateVisible=this.operateItem.id===n.id,this.operateItem=$A.isJson(n)?n:{},this.operateCopys=[],e.target.nodeName==="IMG"&&this.$Electron?this.operateCopys.push({type:"image",icon:"",label:"\u590D\u5236\u56FE\u7247",value:$A.thumbRestore(e.target.currentSrc)}):e.target.nodeName==="A"&&(e.target.classList.contains("mention")&&e.target.classList.contains("file")&&this.findOperateFile(this.operateItem.id,e.target.href),this.operateCopys.push({type:"link",icon:"",label:"\u590D\u5236\u94FE\u63A5",value:e.target.href})),n.type==="text"){e.target.nodeName==="IMG"&&this.operateCopys.push({type:"imagedown",icon:"",label:"\u4E0B\u8F7D\u56FE\u7247",value:$A.thumbRestore(e.target.currentSrc)});const r=this.getSelectedTextInElement(t);if(r.length>0&&this.operateCopys.push({type:"selected",icon:"",label:"\u590D\u5236\u9009\u62E9",value:r}),n.msg.text.replace(/<[^>]+>/g,"").length>0){let a=this.operateCopys.length>0?"\u590D\u5236\u6587\u672C":"\u590D\u5236";r.length>0&&(a="\u590D\u5236\u5168\u90E8"),this.operateCopys.push({type:"text",icon:"",label:a,value:""})}}this.$nextTick(()=>{const r=t.getBoundingClientRect(),a=this.$el.getBoundingClientRect();this.operateStyles={left:`${e.clientX-a.left}px`,top:`${r.top+this.windowScrollY}px`,height:r.height+"px"},this.operateClient={x:e.clientX,y:e.clientY},this.operateVisible=!0})},onOperate(e,t=null){this.operateVisible=!1,this.$nextTick(n=>{switch(e){case"reply":this.onReply();break;case"update":this.onUpdate();break;case"copy":this.onCopy(t);break;case"forward":this.forwardData=[],this.$refs.forwardSelect.onSelection();break;case"withdraw":this.onWithdraw();break;case"view":this.onViewFile();break;case"down":this.onDownFile();break;case"tag":this.onTag();break;case"newTask":let r=$A.formatMsgBasic(this.operateItem.msg.text);r=r.replace(/]*?src=(["'])(.*?)(_thumb\.jpg)*\1[^>]*?>/g,''),_i.Store.set("addTask",{owner:[this.userId],content:r});break;case"todo":this.onTodo();break;case"pos":this.onPositionId(this.operateItem.id);break;case"emoji":t==="more"?NJ().then(this.onEmoji):this.onEmoji(t);break}})},onReply(e){const{tail:t}=this.scrollInfo();this.setQuote(this.operateItem.id,e),this.inputFocus(),t<=55&&requestAnimationFrame(this.onToBottom)},onUpdate(){const{type:e}=this.operateItem;if(this.onReply(e==="text"?"update":"reply"),e==="text"){let{text:t,type:n}=this.operateItem.msg;this.$refs.input.setPasteMode(!1),n==="md"?this.$refs.input.setText(t):(t.indexOf("mention")>-1&&(t=t.replace(/
]*)>~([^>]*)<\/a>/g,'~$3'),t=t.replace(/([@#])([^>]*)<\/span>/g,'$3$4')),t=t.replace(/]*>/gi,r=>r.replace(/(width|height)="\d+"\s*/ig,"")),this.msgText=$A.formatMsgBasic(t)),this.$nextTick(r=>this.$refs.input.setPasteMode(!0))}},onCopy(e){if(!$A.isJson(e))return;const{type:t,value:n}=e;switch(t){case"image":this.$Electron&&this.$Electron.sendMessage("copyImageAt",this.operateClient);break;case"imagedown":this.$Electron?this.$Electron.sendMessage("saveImageAt",{params:{},url:n}):this.$store.dispatch("downUrl",{url:n,token:!1});break;case"filepos":this.$store.dispatch("filePos",n);break;case"link":this.$copyText(n).then(a=>$A.messageSuccess("\u590D\u5236\u6210\u529F")).catch(a=>$A.messageError("\u590D\u5236\u5931\u8D25"));break;case"selected":this.$copyText(n).then(a=>$A.messageSuccess("\u590D\u5236\u6210\u529F")).catch(a=>$A.messageError("\u590D\u5236\u5931\u8D25"));break;case"text":const r=$A(this.$refs.scroller.$el).find(`[data-id="${this.operateItem.id}"]`).find(".dialog-content");if(r.length>0){const a=r[0].innerText.replace(/\n\n/g,` +`).replace(/(^\s*)|(\s*$)/g,"");this.$copyText(a).then(l=>$A.messageSuccess("\u590D\u5236\u6210\u529F")).catch(l=>$A.messageError("\u590D\u5236\u5931\u8D25"))}else $A.messageWarning("\u4E0D\u53EF\u590D\u5236\u7684\u5185\u5BB9");break}},onWithdraw(){$A.modalConfirm({content:"\u786E\u5B9A\u64A4\u56DE\u6B64\u4FE1\u606F\u5417\uFF1F",okText:"\u64A4\u56DE",loading:!0,onOk:()=>new Promise((e,t)=>{this.$store.dispatch("call",{url:"dialog/msg/withdraw",data:{msg_id:this.operateItem.id}}).then(()=>{e("\u6D88\u606F\u5DF2\u64A4\u56DE"),this.$store.dispatch("forgetDialogMsg",this.operateItem.id)}).catch(({msg:n})=>{t(n)})})})},onViewReply(e){this.operateVisible||this.onPositionId(e.reply_id,e.msg_id)},onViewText({target:e},t){if(this.operateVisible)return;let n=e;for(;n;){if(n.classList.contains("open-approve-details")){const r=n.getAttribute("data-id");window.innerWidth<426?this.goForward({name:"manage-approve-details",query:{id:n.getAttribute("data-id")}}):(this.approveDetailsShow=!0,this.$nextTick(()=>{this.approveDetails={id:r}}));break}if(n.classList.contains("dialog-item"))break;n=n.parentElement}switch(e.nodeName){case"IMG":if(e.classList.contains("browse"))this.onViewPicture(e.currentSrc);else{const r=$A.getTextImagesInfo(t.outerHTML),a=r.findIndex(l=>l.src==e.currentSrc);this.$store.dispatch("previewImage",{index:a,list:r})}break;case"SPAN":e.classList.contains("mention")&&e.classList.contains("task")&&this.$store.dispatch("openTask",$A.runNum(e.getAttribute("data-id"))),e.classList.contains("mention")&&e.classList.contains("okr")&&this.$store.dispatch("openOkr",$A.runNum(e.getAttribute("data-id")));break}},onViewFile(e){if(this.operateVisible)return;$A.isJson(e)||(e=this.operateItem);const{msg:t}=e;if(["jpg","jpeg","webp","gif","png"].includes(t.ext)){this.onViewPicture(t.path);return}const n=`/single/file/msg/${e.id}`;this.$Electron?this.$Electron.sendMessage("windowRouter",{name:`file-msg-${e.id}`,path:n,userAgent:"/hideenOfficeTitle/",force:!1,config:{title:`${t.name} (${$A.bytesToSize(t.size)})`,titleFixed:!0,parent:null,width:Math.min(window.screen.availWidth,1440),height:Math.min(window.screen.availHeight,900)},webPreferences:{nodeIntegrationInSubFrames:t.ext==="drawio"}}):this.$isEEUiApp?$A.eeuiAppOpenPage({pageType:"app",pageTitle:`${t.name} (${$A.bytesToSize(t.size)})`,url:"web.js",params:{titleFixed:!0,allowAccess:!0,url:$A.rightDelete(window.location.href,window.location.hash)+`#${n}`}}):window.open($A.apiUrl(`..${n}`))},onViewPicture(e){const t=this.allMsgs.filter(a=>a.type==="file"?["jpg","jpeg","webp","gif","png"].includes(a.msg.ext):a.type==="text"?a.msg.text.match(/]*?>/):!1),n=[];t.some(({type:a,msg:l})=>{a==="file"?n.push({src:l.path,width:l.width,height:l.height}):a==="text"&&n.push(...$A.getTextImagesInfo(l.text))});const r=n.findIndex(({src:a})=>a===e);r>-1?this.$store.dispatch("previewImage",{index:r,list:n}):this.$store.dispatch("previewImage",e)},onDownFile(e){this.operateVisible||($A.isJson(e)||(e=this.operateItem),$A.modalConfirm({title:"\u4E0B\u8F7D\u6587\u4EF6",content:`${e.msg.name} (${$A.bytesToSize(e.msg.size)})`,okText:"\u7ACB\u5373\u4E0B\u8F7D",onOk:()=>{this.$store.dispatch("downUrl",$A.apiUrl(`dialog/msg/download?msg_id=${e.id}`))}}))},onReplyList(e){this.operateVisible||(this.replyListId=e.msg_id,this.replyListShow=!0)},onError(e){if(e.error!==!0)return;const{type:t,content:n,msg:r}=e.errorData,a={icon:"error",title:"\u53D1\u9001\u5931\u8D25",content:n,cancelText:"\u53D6\u6D88\u53D1\u9001",onCancel:l=>{this.tempMsgs=this.tempMsgs.filter(({id:u})=>u!=e.id)}};if(t==="text")a.okText="\u518D\u6B21\u7F16\u8F91",a.onOk=()=>{this.tempMsgs=this.tempMsgs.filter(({id:l})=>l!=e.id),this.$refs.input.setPasteMode(!1),this.msgText=r,this.inputFocus(),this.$nextTick(l=>this.$refs.input.setPasteMode(!0))};else if(t==="record")a.okText="\u91CD\u65B0\u53D1\u9001",a.onOk=()=>{this.tempMsgs=this.tempMsgs.filter(({id:l})=>l!=e.id),this.sendRecord(r)};else return;$A.modalConfirm(a)},onEmoji(e){$A.isJson(e)||(e={msg_id:this.operateItem.id,symbol:e});const t=this.cacheEmojis.filter(n=>n!==e.symbol);t.unshift(e.symbol),$A.IDBSave("cacheEmojis",this.$store.state.cacheEmojis=t.slice(0,3)),this.$store.dispatch("setLoad",{key:`msg-${e.msg_id}`,delay:600}),this.$store.dispatch("call",{url:"dialog/msg/emoji",data:e}).then(({data:n})=>{this.dialogMsgs.findIndex(a=>a.id==n.id)>-1?this.$store.dispatch("saveDialogMsg",n):this.todoViewData.id===n.id&&(this.todoViewData=Object.assign(this.todoViewData,n))}).catch(({msg:n})=>{$A.messageError(n)}).finally(n=>{this.$store.dispatch("cancelLoad",`msg-${e.msg_id}`)})},onShowEmojiUser(e){this.operateVisible||(this.respondData=e,this.respondShow=!0)},onTag(){if(this.operateVisible)return;const e={msg_id:this.operateItem.id};this.$store.dispatch("setLoad",{key:`msg-${e.msg_id}`,delay:600}),this.$store.dispatch("call",{url:"dialog/msg/tag",data:e}).then(({data:t})=>{this.tagOrTodoSuccess(t)}).catch(({msg:t})=>{$A.messageError(t)}).finally(t=>{this.$store.dispatch("cancelLoad",`msg-${e.msg_id}`)})},onTodo(e){var t;if(!this.operateVisible)if(e==="submit"){const n=$A.cloneJSON(this.todoSettingData);if(n.type==="my")n.type="user",n.userids=[n.my_id];else if(n.type==="you")n.type="user",n.userids=[n.you_id];else if(n.type==="user"&&$A.arrayLength(n.userids)===0){$A.messageWarning("\u9009\u62E9\u6307\u5B9A\u6210\u5458");return}this.todoSettingLoad++,this.onTodoSubmit(n).then(r=>{$A.messageSuccess(r),this.todoSettingShow=!1}).catch(r=>{$A.messageError(r)}).finally(r=>{this.todoSettingLoad--})}else{const n=(t=this.dialogData.dialog_user)==null?void 0:t.userid;this.todoSettingData={type:"all",userids:[],msg_id:this.operateItem.id,my_id:this.userId,you_id:n!=this.userId&&!this.dialogData.bot?n:0},this.operateItem.todo?$A.modalConfirm({content:"\u4F60\u786E\u5B9A\u53D6\u6D88\u5F85\u529E\u5417\uFF1F",cancelText:"\u53D6\u6D88",okText:"\u786E\u5B9A",loading:!0,onOk:()=>this.onTodoSubmit(this.todoSettingData)}):this.todoSettingShow=!0}},onTodoSubmit(e){return new Promise((t,n)=>{this.$store.dispatch("setLoad",{key:`msg-${e.msg_id}`,delay:600}),this.$store.dispatch("call",{url:"dialog/msg/todo",data:e}).then(({data:r,msg:a})=>{t(a),this.tagOrTodoSuccess(r),this.onActive()}).catch(({msg:r})=>{n(r)}).finally(r=>{this.$store.dispatch("cancelLoad",`msg-${e.msg_id}`)})})},tagOrTodoSuccess(e){this.$store.dispatch("saveDialogMsg",e.update),e.add&&(this.$store.dispatch("saveDialogMsg",e.add),this.$store.dispatch("updateDialogLastMsg",e.add))},onSearchSwitch(e){if(this.searchResult.length!==0){if(this.searchLocation===1&&this.searchResult.length===1){this.onPositionId(this.searchResult[0]);return}e==="prev"?this.searchLocation<=1?this.searchLocation=this.searchResult.length:this.searchLocation--:this.searchLocation>=this.searchResult.length?this.searchLocation=1:this.searchLocation++}},onSearchKeyup(e){(e===null||e.keyCode===27)&&(this.searchShow=!1,this.searchKey="",this.searchResult=[])},onPositionMark(){if(this.positionLoad>0)return;this.positionLoad++;const{msg_id:e}=this.positionMsg;this.$store.dispatch("dialogMsgMark",{dialog_id:this.dialogId,type:"read",after_msg_id:e}).then(t=>{this.positionLoad++,this.onPositionId(e).finally(n=>{this.positionLoad--})}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.positionLoad--})},findOperateFile(e,t){const n=this.fileLinks.find(r=>r.link===t);if(n){this.addFileMenu(e,n);return}this.$store.dispatch("searchFiles",{link:t}).then(({data:r})=>{if(r.length===1){const a={link:t,id:r[0].id,pid:r[0].pid};this.fileLinks.push(a),this.addFileMenu(e,a)}}).catch(r=>{})},addFileMenu(e,t){if(this.operateItem.id!=e||this.operateCopys.findIndex(r=>r.type==="filepos")!==-1)return;const n=Math.max(0,this.operateCopys.findIndex(r=>r.type==="link")-1);this.operateCopys.splice(n,0,{type:"filepos",icon:"",label:"\u663E\u793A\u6587\u4EF6",value:{folderId:t.pid,fileId:null,shakeId:t.id}})},getBase64Image(e){return new Promise(t=>{let n=document.createElement("CANVAS"),r=n.getContext("2d"),a=new Image;a.crossOrigin="Anonymous",a.onload=()=>{n.height=a.height,n.width=a.width,r.drawImage(a,0,0);let l="png";$A.rightExists(e,"jpg")||$A.rightExists(e,"jpeg")?l="jpeg":$A.rightExists(e,"webp")?l="webp":$A.rightExists(e,"git")&&(l="git"),t(n.toDataURL(`image/${l}`)),n=null},a.src=e})},getSelectedTextInElement(e){let t="";if(window.getSelection){let n=window.getSelection();if(n.rangeCount>0){const r=n.getRangeAt(0);e.contains(r.commonAncestorContainer)&&(t=r.toString())}}return t},onViewAvatar(e){let t=null;e.target.tagName==="IMG"?t=e.target.src:t=$A(e.target).find("img").attr("src"),t&&this.$store.dispatch("previewImage",t)}}},Rl={};var DJ=Kt(IJ,OJ,AJ,!1,xJ,null,null,null);function xJ(e){for(let t in Rl)this[t]=Rl[t]}var FJ=function(){return DJ.exports}();export{CJ as C,FJ as D}; diff --git a/public/js/build/Drawio.8bd087d2.js b/public/js/build/Drawio.523dc440.js similarity index 93% rename from public/js/build/Drawio.8bd087d2.js rename to public/js/build/Drawio.523dc440.js index bae7b331c..7eb7cb894 100644 --- a/public/js/build/Drawio.8bd087d2.js +++ b/public/js/build/Drawio.523dc440.js @@ -1 +1 @@ -import{m as o,n as l,l as s}from"./app.62942df0.js";import{I as d}from"./IFrame.e16748ae.js";var u=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"drawio-content"},[a("IFrame",{ref:"frame",staticClass:"drawio-iframe",attrs:{src:e.url},on:{"on-message":e.onMessage}}),e.loadIng?a("div",{staticClass:"drawio-loading"},[a("Loading")],1):e._e()],1)},m=[];const c={name:"Drawio",components:{IFrame:d},props:{value:{type:Object,default:function(){return{}}},title:{type:String,default:""},readOnly:{type:Boolean,default:!1}},data(){return{loadIng:!0,url:null,bakData:""}},created(){let e=s;switch(s){case"zh-CHT":e="zh-tw";break}let t=this.readOnly?1:0,a=this.readOnly?0:1,r=this.themeIsDark?"dark":"kennedy",n=`?title=${this.title?encodeURIComponent(this.title):""}&chrome=${a}&lightbox=${t}&ui=${r}&lang=${e}&offline=1&pwa=0&embed=1&noLangIcon=1&noExitBtn=1&noSaveBtn=1&saveAndExit=0&spin=1&proto=json`;this.$Electron?this.url=$A.originUrl(`drawio/webapp/index.html${n}`):this.url=$A.apiUrl(`../drawio/webapp/${n}`)},mounted(){window.addEventListener("message",this.handleMessage)},beforeDestroy(){window.removeEventListener("message",this.handleMessage)},watch:{value:{handler(e){this.bakData!=$A.jsonStringify(e)&&(this.bakData=$A.jsonStringify(e),this.updateContent())},deep:!0}},computed:{...o(["themeIsDark"])},methods:{formatZoom(e){return e+"%"},updateContent(){this.$refs.frame.postMessage(JSON.stringify({action:"load",autosave:1,xml:this.value.xml}))},onMessage(e){switch(e.event){case"init":this.loadIng=!1,this.updateContent();break;case"load":typeof this.value.xml=="undefined"&&this.$refs.frame.postMessage(JSON.stringify({action:"template"}));break;case"autosave":const t={xml:e.xml};this.bakData=$A.jsonStringify(t),this.$emit("input",t);break;case"save":this.$emit("saveData");break}}}},i={};var h=l(c,u,m,!1,f,"6b690a27",null,null);function f(e){for(let t in i)this[t]=i[t]}var _=function(){return h.exports}();export{_ as default}; +import{m as o,n as l,l as s}from"./app.2163cd94.js";import{I as d}from"./IFrame.194f5146.js";var u=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"drawio-content"},[a("IFrame",{ref:"frame",staticClass:"drawio-iframe",attrs:{src:e.url},on:{"on-message":e.onMessage}}),e.loadIng?a("div",{staticClass:"drawio-loading"},[a("Loading")],1):e._e()],1)},m=[];const c={name:"Drawio",components:{IFrame:d},props:{value:{type:Object,default:function(){return{}}},title:{type:String,default:""},readOnly:{type:Boolean,default:!1}},data(){return{loadIng:!0,url:null,bakData:""}},created(){let e=s;switch(s){case"zh-CHT":e="zh-tw";break}let t=this.readOnly?1:0,a=this.readOnly?0:1,r=this.themeIsDark?"dark":"kennedy",n=`?title=${this.title?encodeURIComponent(this.title):""}&chrome=${a}&lightbox=${t}&ui=${r}&lang=${e}&offline=1&pwa=0&embed=1&noLangIcon=1&noExitBtn=1&noSaveBtn=1&saveAndExit=0&spin=1&proto=json`;this.$Electron?this.url=$A.originUrl(`drawio/webapp/index.html${n}`):this.url=$A.apiUrl(`../drawio/webapp/${n}`)},mounted(){window.addEventListener("message",this.handleMessage)},beforeDestroy(){window.removeEventListener("message",this.handleMessage)},watch:{value:{handler(e){this.bakData!=$A.jsonStringify(e)&&(this.bakData=$A.jsonStringify(e),this.updateContent())},deep:!0}},computed:{...o(["themeIsDark"])},methods:{formatZoom(e){return e+"%"},updateContent(){this.$refs.frame.postMessage(JSON.stringify({action:"load",autosave:1,xml:this.value.xml}))},onMessage(e){switch(e.event){case"init":this.loadIng=!1,this.updateContent();break;case"load":typeof this.value.xml=="undefined"&&this.$refs.frame.postMessage(JSON.stringify({action:"template"}));break;case"autosave":const t={xml:e.xml};this.bakData=$A.jsonStringify(t),this.$emit("input",t);break;case"save":this.$emit("saveData");break}}}},i={};var h=l(c,u,m,!1,f,"6b690a27",null,null);function f(e){for(let t in i)this[t]=i[t]}var _=function(){return h.exports}();export{_ as default}; diff --git a/public/js/build/FileContent.b77638e9.js b/public/js/build/FileContent.35872dc1.js similarity index 92% rename from public/js/build/FileContent.b77638e9.js rename to public/js/build/FileContent.35872dc1.js index 7a718a291..fde470e8a 100644 --- a/public/js/build/FileContent.b77638e9.js +++ b/public/js/build/FileContent.35872dc1.js @@ -1 +1 @@ -import{n as r,m as c,_ as n}from"./app.62942df0.js";import{I as d}from"./IFrame.e16748ae.js";var h=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"file-history"},[t("Table",{attrs:{width:480,"max-height":e.windowHeight-180,columns:e.columns,data:e.list,loading:e.loadIng>0,"no-data-text":e.$L(e.noText),"highlight-row":"",stripe:""}}),e.total>e.pageSize?t("Page",{attrs:{total:e.total,current:e.page,"page-size":e.pageSize,disabled:e.loadIng>0,simple:!0},on:{"on-change":e.setPage,"on-page-size-change":e.setPageSize}}):e._e()],1)},u=[];const f={name:"FileHistory",props:{value:{type:Boolean,default:!1},file:{type:Object,default:()=>({})}},data(){return{loadIng:0,columns:[{title:this.$L("\u65E5\u671F"),key:"created_at",width:168},{title:this.$L("\u521B\u5EFA\u4EBA"),width:120,render:(e,{row:s})=>e("UserAvatar",{props:{showName:!0,size:22,userid:s.userid}})},{title:this.$L("\u5927\u5C0F"),key:"size",width:90,render:(e,{row:s})=>e("AutoTip",$A.bytesToSize(s.size))},{title:this.$L("\u64CD\u4F5C"),align:"center",width:100,render:(e,{index:s,row:t,column:i})=>s===0&&this.page===1?e("div","-"):e("TableAction",{props:{column:i,menu:[{label:this.$L("\u67E5\u770B"),action:"preview"},{label:this.$L("\u8FD8\u539F"),action:"restore"}]},on:{action:a=>{this.onAction(a,t)}}})}],list:[],page:1,pageSize:10,total:0,noText:""}},mounted(){},watch:{value:{handler(e){e&&this.setPage(1)},immediate:!0}},computed:{fileId(){return this.file.id||0}},methods:{getLists(){this.fileId!==0&&(this.loadIng++,this.$store.dispatch("call",{url:"file/content/history",data:{id:this.fileId,page:Math.max(this.page,1),pagesize:Math.max($A.runNum(this.pageSize),10)}}).then(({data:e})=>{this.page=e.current_page,this.total=e.total,this.list=e.data,this.noText="\u6CA1\u6709\u76F8\u5173\u7684\u6570\u636E"}).catch(()=>{this.noText="\u6570\u636E\u52A0\u8F7D\u5931\u8D25"}).finally(e=>{this.loadIng--}))},setPage(e){this.page=e,this.getLists()},setPageSize(e){this.page=1,this.pageSize=e,this.getLists()},onAction(e,s){switch(e){case"restore":this.$emit("on-restore",s);break;case"preview":const t=`/single/file/${this.fileId}?history_id=${s.id}&history_at=${s.created_at}`;this.$Electron?this.$Electron.sendMessage("windowRouter",{name:`file-${this.fileId}-${s.id}`,path:t,userAgent:"/hideenOfficeTitle/",force:!1,config:{title:$A.getFileName(this.file)+` [${s.created_at}]`,titleFixed:!0,parent:null,width:Math.min(window.screen.availWidth,1440),height:Math.min(window.screen.availHeight,900)},webPreferences:{nodeIntegrationInSubFrames:this.file.type==="drawio"}}):this.$isEEUiApp?$A.eeuiAppOpenPage({pageType:"app",pageTitle:$A.getFileName(this.file)+` [${s.created_at}]`,url:"web.js",params:{titleFixed:!0,allowAccess:!0,url:$A.rightDelete(window.location.href,window.location.hash)+`#${t}`}}):window.open($A.apiUrl(`..${t}`));break}}}},o={};var p=r(f,h,u,!1,v,"44e1704c",null,null);function v(e){for(let s in o)this[s]=o[s]}var _=function(){return p.exports}(),m=function(){var e=this,s=e.$createElement,t=e._self._c||s;return e.ready?t("div",{staticClass:"file-content"},[e.isPreview?t("IFrame",{staticClass:"preview-iframe",attrs:{src:e.previewUrl},on:{"on-load":e.onFrameLoad}}):e.contentDetail?[["word","excel","ppt"].includes(e.file.type)?t("EPopover",{attrs:{trigger:"click"},model:{value:e.historyShow,callback:function(i){e.historyShow=i},expression:"historyShow"}},[t("div",{staticClass:"file-content-history"},[t("FileHistory",{attrs:{value:e.historyShow,file:e.file},on:{"on-restore":e.onRestoreHistory}})],1),t("div",{ref:"officeHeader",staticClass:"office-header",attrs:{slot:"reference"},slot:"reference"})]):t("div",{staticClass:"edit-header"},[t("div",{staticClass:"header-title"},[e.equalContent?e._e():t("EPopover",{staticClass:"file-unsave-tip",model:{value:e.unsaveTip,callback:function(i){e.unsaveTip=i},expression:"unsaveTip"}},[t("div",{staticClass:"task-detail-delete-file-popover"},[t("p",[e._v(e._s(e.$L("\u672A\u4FDD\u5B58\u5F53\u524D\u4FEE\u6539\u5185\u5BB9\uFF1F")))]),t("div",{staticClass:"buttons"},[t("Button",{attrs:{size:"small",type:"text"},on:{click:e.unSaveGive}},[e._v(e._s(e.$L("\u653E\u5F03")))]),t("Button",{attrs:{size:"small",type:"primary"},on:{click:e.onSaveSave}},[e._v(e._s(e.$L("\u4FDD\u5B58")))])],1)]),t("span",{attrs:{slot:"reference"},slot:"reference"},[e._v("["+e._s(e.$L("\u672A\u4FDD\u5B58"))+"*]")])]),e._v(" "+e._s(e.fileName)+" ")],1),t("div",{staticClass:"header-user"},[t("ul",[e._l(e.editUser,function(i,a){return a<=10?t("li",{key:a},[t("UserAvatar",{attrs:{userid:i,size:28,"border-witdh":2}})],1):e._e()}),e.editUser.length>10?t("li",{staticClass:"more",attrs:{title:e.editUser.length}},[e._v(e._s(e.editUser.length>999?"...":e.editUser.length))]):e._e()],2)]),e.file.type=="document"&&e.contentDetail?t("div",{staticClass:"header-hint"},[t("ButtonGroup",{attrs:{size:"small",shape:"circle"}},[t("Button",{attrs:{type:`${e.contentDetail.type=="md"?"primary":"default"}`},on:{click:function(i){return e.setTextType("md")}}},[e._v(e._s(e.$L("MD\u7F16\u8F91\u5668")))]),t("Button",{attrs:{type:`${e.contentDetail.type!="md"?"primary":"default"}`},on:{click:function(i){return e.setTextType("text")}}},[e._v(e._s(e.$L("\u6587\u672C\u7F16\u8F91\u5668")))])],1)],1):e._e(),e.file.type=="mind"?t("div",{staticClass:"header-hint"},[e._v(" "+e._s(e.$L("\u9009\u4E2D\u8282\u70B9\uFF0C\u6309enter\u952E\u6DFB\u52A0\u540C\u7EA7\u8282\u70B9\uFF0Ctab\u952E\u6DFB\u52A0\u5B50\u8282\u70B9"))+" ")]):e._e(),e.file.type=="mind"?t("Dropdown",{staticClass:"header-hint",attrs:{trigger:"click",transfer:""},on:{"on-click":e.exportMenu}},[t("a",{attrs:{href:"javascript:void(0)"}},[e._v(e._s(e.$L("\u5BFC\u51FA"))),t("Icon",{attrs:{type:"ios-arrow-down"}})],1),t("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[t("DropdownItem",{attrs:{name:"png"}},[e._v(e._s(e.$L("\u5BFC\u51FAPNG\u56FE\u7247")))]),t("DropdownItem",{attrs:{name:"pdf"}},[e._v(e._s(e.$L("\u5BFC\u51FAPDF\u6587\u4EF6")))])],1)],1):e._e(),e.file.only_view?e._e():[t("div",{staticClass:"header-icons"},[t("ETooltip",{attrs:{disabled:e.$isEEUiApp||e.windowTouch,content:e.$L("\u6587\u4EF6\u94FE\u63A5")}},[t("div",{staticClass:"header-icon",on:{click:function(i){return e.handleClick("link")}}},[t("i",{staticClass:"taskfont"},[e._v("\uE785")])])]),t("EPopover",{attrs:{trigger:"click"},model:{value:e.historyShow,callback:function(i){e.historyShow=i},expression:"historyShow"}},[t("div",{staticClass:"file-content-history"},[t("FileHistory",{attrs:{value:e.historyShow,file:e.file},on:{"on-restore":e.onRestoreHistory}})],1),t("ETooltip",{ref:"historyTip",attrs:{slot:"reference",disabled:e.$isEEUiApp||e.windowTouch||e.historyShow,content:e.$L("\u5386\u53F2\u7248\u672C")},slot:"reference"},[t("div",{staticClass:"header-icon"},[t("i",{staticClass:"taskfont"},[e._v("\uE71D")])])])],1)],1),t("Button",{staticClass:"header-button",attrs:{disabled:e.equalContent,loading:e.loadSave>0,size:"small",type:"primary"},on:{click:function(i){return e.handleClick("save")}}},[e._v(e._s(e.$L("\u4FDD\u5B58")))])]],2),t("div",{staticClass:"content-body"},[e.historyShow?t("div",{staticClass:"content-mask"}):e._e(),e.file.type=="document"?[e.contentDetail.type=="md"?t("MDEditor",{attrs:{height:"100%"},model:{value:e.contentDetail.content,callback:function(i){e.$set(e.contentDetail,"content",i)},expression:"contentDetail.content"}}):t("TEditor",{attrs:{height:"100%"},on:{editorSave:function(i){return e.handleClick("saveBefore")}},model:{value:e.contentDetail.content,callback:function(i){e.$set(e.contentDetail,"content",i)},expression:"contentDetail.content"}})]:e.file.type=="drawio"?t("Drawio",{ref:"myFlow",attrs:{title:e.file.name},on:{saveData:function(i){return e.handleClick("saveBefore")}},model:{value:e.contentDetail,callback:function(i){e.contentDetail=i},expression:"contentDetail"}}):e.file.type=="mind"?t("Minder",{ref:"myMind",on:{saveData:function(i){return e.handleClick("saveBefore")}},model:{value:e.contentDetail,callback:function(i){e.contentDetail=i},expression:"contentDetail"}}):["code","txt"].includes(e.file.type)?t("AceEditor",{attrs:{ext:e.file.ext},on:{saveData:function(i){return e.handleClick("saveBefore")}},model:{value:e.contentDetail.content,callback:function(i){e.$set(e.contentDetail,"content",i)},expression:"contentDetail.content"}}):["word","excel","ppt"].includes(e.file.type)?t("OnlyOffice",{attrs:{documentKey:e.documentKey},on:{"on-document-ready":function(i){return e.handleClick("officeReady")}},model:{value:e.contentDetail,callback:function(i){e.contentDetail=i},expression:"contentDetail"}}):e._e()],2)]:e._e(),e.contentLoad?t("div",{staticClass:"content-load"},[t("Loading")],1):e._e(),t("Modal",{attrs:{title:e.$L("\u6587\u4EF6\u94FE\u63A5"),"mask-closable":!1},model:{value:e.linkShow,callback:function(i){e.linkShow=i},expression:"linkShow"}},[t("div",[t("div",{staticStyle:{margin:"-10px 0 8px"}},[e._v(e._s(e.$L("\u6587\u4EF6\u540D\u79F0"))+": "+e._s(e.linkData.name))]),t("Input",{ref:"linkInput",attrs:{type:"textarea",rows:3,readonly:""},on:{"on-focus":e.linkFocus},model:{value:e.linkData.url,callback:function(i){e.$set(e.linkData,"url",i)},expression:"linkData.url"}}),t("div",{staticClass:"form-tip",staticStyle:{"padding-top":"6px"}},[e._v(" "+e._s(e.$L("\u53EF\u901A\u8FC7\u6B64\u94FE\u63A5\u6D4F\u89C8\u6587\u4EF6\u3002"))+" "),t("Poptip",{attrs:{confirm:"",placement:"bottom","ok-text":e.$L("\u786E\u5B9A"),"cancel-text":e.$L("\u53D6\u6D88"),transfer:""},on:{"on-ok":function(i){return e.linkGet(!0)}}},[t("div",{attrs:{slot:"title"},slot:"title"},[t("p",[t("strong",[e._v(e._s(e.$L("\u6CE8\u610F\uFF1A\u5237\u65B0\u5C06\u5BFC\u81F4\u539F\u6765\u7684\u94FE\u63A5\u5931\u6548\uFF01")))])])]),t("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(i){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)])],2):e._e()},y=[];const k=()=>n(()=>import("./index.05f5022c.js"),["js/build/index.05f5022c.js","js/build/index.4dae4044.css","js/build/app.62942df0.js","js/build/app.69d3f3a3.css","js/build/ImgUpload.582cd84e.js"]),$=()=>n(()=>import("./TEditor.43c37740.js"),["js/build/TEditor.43c37740.js","js/build/app.62942df0.js","js/build/app.69d3f3a3.css","js/build/ImgUpload.582cd84e.js"]),w=()=>n(()=>import("./AceEditor.d782357c.js"),["js/build/AceEditor.d782357c.js","js/build/app.62942df0.js","js/build/app.69d3f3a3.css"]),g=()=>n(()=>import("./OnlyOffice.f8fd0932.js"),["js/build/OnlyOffice.f8fd0932.js","js/build/OnlyOffice.a5dfbde1.css","js/build/app.62942df0.js","js/build/app.69d3f3a3.css","js/build/IFrame.e16748ae.js"]),D=()=>n(()=>import("./Drawio.8bd087d2.js"),["js/build/Drawio.8bd087d2.js","js/build/Drawio.fc5c6326.css","js/build/app.62942df0.js","js/build/app.69d3f3a3.css","js/build/IFrame.e16748ae.js"]),x=()=>n(()=>import("./Minder.d27ee541.js"),["js/build/Minder.d27ee541.js","js/build/Minder.f2273bdb.css","js/build/IFrame.e16748ae.js","js/build/app.62942df0.js","js/build/app.69d3f3a3.css"]),C={name:"FileContent",components:{IFrame:d,FileHistory:_,AceEditor:w,TEditor:$,MDEditor:k,OnlyOffice:g,Drawio:D,Minder:x},props:{value:{type:Boolean,default:!1},file:{type:Object,default:()=>({})}},data(){return{ready:!1,loadSave:0,loadContent:0,unsaveTip:!1,fileExt:null,contentDetail:null,contentBak:{},editUser:[],loadPreview:!0,linkShow:!1,linkData:{},linkLoad:0,historyShow:!1,officeReady:!1}},mounted(){document.addEventListener("keydown",this.keySave),window.addEventListener("message",this.handleOfficeMessage),this.$isSubElectron&&(window.__onBeforeUnload=()=>{if(!this.equalContent)return $A.modalConfirm({content:"\u4FEE\u6539\u7684\u5185\u5BB9\u5C1A\u672A\u4FDD\u5B58\uFF0C\u786E\u5B9A\u8981\u653E\u5F03\u4FEE\u6539\u5417\uFF1F",cancelText:"\u53D6\u6D88",okText:"\u653E\u5F03",onOk:()=>{this.$Electron.sendMessage("windowDestroy")}}),!0})},beforeDestroy(){document.removeEventListener("keydown",this.keySave),window.removeEventListener("message",this.handleOfficeMessage)},watch:{value:{handler(e){e?(this.ready=!0,this.editUser=[this.userId],this.getContent()):(this.linkShow=!1,this.historyShow=!1,this.officeReady=!1,this.fileExt=null)},immediate:!0},historyShow(e){!e&&this.$refs.historyTip&&this.$refs.historyTip.updatePopper()},wsMsg:{handler(e){const{type:s,action:t,data:i}=e;switch(s){case"path":i.path=="/single/file/"+this.fileId&&(this.editUser=i.userids);break;case"file":t=="content"&&this.value&&i.id==this.fileId&&$A.modalConfirm({title:"\u66F4\u65B0\u63D0\u793A",content:"\u56E2\u961F\u6210\u5458\uFF08"+e.nickname+"\uFF09\u66F4\u65B0\u4E86\u5185\u5BB9\uFF0C
\u66F4\u65B0\u65F6\u95F4\uFF1A"+$A.formatDate("Y-m-d H:i:s",e.time)+"\u3002

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

\u70B9\u51FB\u3010\u786E\u5B9A\u3011\u52A0\u8F7D\u6700\u65B0\u5185\u5BB9\u3002",onOk:()=>{this.getContent()}});break}},deep:!0}},computed:{...c(["wsMsg"]),fileId(){return this.file.id||0},fileName(){return this.fileExt?$A.getFileName(Object.assign(this.file,{ext:this.fileExt})):$A.getFileName(this.file)},equalContent(){return this.contentBak==$A.jsonStringify(this.contentDetail)},contentLoad(){return this.loadContent>0||this.previewLoad},isPreview(){return this.contentDetail&&this.contentDetail.preview===!0},previewLoad(){return this.isPreview&&this.loadPreview===!0},previewUrl(){if(this.isPreview){const{name:e,key:s}=this.contentDetail;return $A.apiUrl(`../online/preview/${e}?key=${s}`)}return""}},methods:{handleOfficeMessage({data:e,source:s}){if(e.source==="onlyoffice")switch(e.action){case"ready":s.postMessage("createMenu","*");break;case"link":this.handleClick("link");break;case"history":const t=this.$refs.officeHeader;t&&(t.style.top=`${e.rect.top}px`,t.style.left=`${e.rect.left}px`,t.style.width=`${e.rect.width}px`,t.style.height=`${e.rect.height}px`,t.click());break}},onFrameLoad(){this.loadPreview=!1},keySave(e){this.value&&e.keyCode===83&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),this.onSaveSave())},getContent(){if(this.fileId===0){this.contentDetail={},this.updateBak();return}if(["word","excel","ppt"].includes(this.file.type)){this.contentDetail=$A.cloneJSON(this.file),this.updateBak();return}this.loadSave++,setTimeout(e=>{this.loadContent++},600),this.$store.dispatch("call",{url:"file/content",data:{id:this.fileId}}).then(({data:e})=>{this.contentDetail=e.content,this.updateBak()}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.loadSave--,this.loadContent--})},updateBak(){this.contentBak=$A.jsonStringify(this.contentDetail)},handleClick(e){switch(e){case"link":this.linkData={id:this.fileId,name:this.file.name},this.linkShow=!0,this.linkGet();break;case"saveBefore":!this.equalContent&&this.loadSave==0?this.handleClick("save"):$A.messageWarning("\u6CA1\u6709\u4EFB\u4F55\u4FEE\u6539\uFF01");break;case"save":if(this.file.only_view)return;this.updateBak(),this.loadSave++,this.$store.dispatch("call",{url:"file/content/save",method:"post",data:{id:this.fileId,content:this.contentBak}}).then(({data:s,msg:t})=>{$A.messageSuccess(t);const i={id:this.fileId,size:s.size};this.fileExt&&(i.ext=this.fileExt,this.fileExt=null),this.$store.dispatch("saveFile",i)}).catch(({msg:s})=>{$A.modalError(s),this.getContent()}).finally(s=>{this.loadSave--});break;case"officeReady":this.officeReady=!0;break}},onRestoreHistory(e){this.historyShow=!1,$A.modalConfirm({content:`\u4F60\u786E\u5B9A\u6587\u4EF6\u8FD8\u539F\u81F3\u3010${e.created_at}\u3011\u5417\uFF1F`,cancelText:"\u53D6\u6D88",okText:"\u786E\u5B9A",loading:!0,onOk:()=>new Promise((s,t)=>{this.$store.dispatch("call",{url:"file/content/restore",data:{id:this.fileId,history_id:e.id}}).then(({msg:i})=>{s(i),this.contentDetail=null,this.getContent()}).catch(({msg:i})=>{t(i)})})})},linkGet(e){this.linkLoad++,this.$store.dispatch("call",{url:"file/link",data:{id:this.linkData.id,refresh:e===!0?"yes":"no"}}).then(({data:s})=>{this.linkData=Object.assign(s,{id:this.linkData.id,name:this.linkData.name}),this.linkCopy()}).catch(({msg:s})=>{this.linkShow=!1,$A.modalError(s)}).finally(s=>{this.linkLoad--})},linkCopy(){!this.linkData.url||(this.linkFocus(),this.$copyText(this.linkData.url).then(e=>{$A.messageSuccess("\u590D\u5236\u6210\u529F")}).catch(e=>{$A.messageError("\u590D\u5236\u5931\u8D25")}))},linkFocus(){this.$nextTick(e=>{this.$refs.linkInput.focus({cursor:"all"})})},exportMenu(e){switch(this.file.type){case"mind":this.$refs.myMind.exportHandle(e,this.file.name);break}},unSaveGive(){this.getContent(),this.unsaveTip=!1},onSaveSave(){this.handleClick("save"),this.unsaveTip=!1},setTextType(e){this.fileExt=e,this.$set(this.contentDetail,"type",e)},documentKey(){return new Promise(e=>{this.$store.dispatch("call",{url:"file/content",data:{id:this.fileId,only_update_at:"yes"}}).then(({data:s})=>{e(`${s.id}-${$A.Time(s.update_at)}`)}).catch(()=>{e(0)})})}}},l={};var S=r(C,m,y,!1,L,null,null,null);function L(e){for(let s in l)this[s]=l[s]}var T=function(){return S.exports}();export{T as default}; diff --git a/public/js/build/FilePreview.5c6deadc.js b/public/js/build/FilePreview.17cb82c7.js similarity index 76% rename from public/js/build/FilePreview.5c6deadc.js rename to public/js/build/FilePreview.17cb82c7.js index 5938a865d..47aac2238 100644 --- a/public/js/build/FilePreview.5c6deadc.js +++ b/public/js/build/FilePreview.17cb82c7.js @@ -1 +1 @@ -import{n as r,_ as n}from"./app.62942df0.js";import{I as a}from"./IFrame.e16748ae.js";var s=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"file-preview"},[e.isPreview?t("IFrame",{staticClass:"preview-iframe",attrs:{src:e.previewUrl},on:{"on-load":e.onFrameLoad}}):e.contentDetail?[t("div",{directives:[{name:"show",rawName:"v-show",value:e.headerShow&&!["word","excel","ppt"].includes(e.file.type),expression:"headerShow && !['word', 'excel', 'ppt'].includes(file.type)"}],staticClass:"edit-header"},[t("div",{staticClass:"header-title"},[t("div",{staticClass:"title-name"},[e._v(e._s(e.$A.getFileName(e.file)))]),t("Tag",{attrs:{color:"default"}},[e._v(e._s(e.$L("\u53EA\u8BFB")))]),t("div",{staticClass:"refresh"},[e.contentLoad?t("Loading"):t("Icon",{attrs:{type:"ios-refresh"},on:{click:e.getContent}})],1)],1),e.file.type=="mind"?t("Dropdown",{staticClass:"header-hint",attrs:{trigger:"click"},on:{"on-click":e.exportMenu}},[t("a",{attrs:{href:"javascript:void(0)"}},[e._v(e._s(e.$L("\u5BFC\u51FA"))),t("Icon",{attrs:{type:"ios-arrow-down"}})],1),t("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[t("DropdownItem",{attrs:{name:"png"}},[e._v(e._s(e.$L("\u5BFC\u51FAPNG\u56FE\u7247")))]),t("DropdownItem",{attrs:{name:"pdf"}},[e._v(e._s(e.$L("\u5BFC\u51FAPDF\u6587\u4EF6")))])],1)],1):e._e()],1),t("div",{staticClass:"content-body"},[e.file.type=="document"?[e.contentDetail.type=="md"?t("MDPreview",{attrs:{initialValue:e.contentDetail.content}}):t("TEditor",{attrs:{value:e.contentDetail.content,height:"100%",readOnly:""}})]:e.file.type=="drawio"?t("Drawio",{ref:"myFlow",attrs:{value:e.contentDetail,title:e.file.name,readOnly:""}}):e.file.type=="mind"?t("Minder",{ref:"myMind",attrs:{value:e.contentDetail,readOnly:""}}):["code","txt"].includes(e.file.type)?t("AceEditor",{attrs:{value:e.contentDetail.content,ext:e.file.ext,readOnly:""}}):["word","excel","ppt"].includes(e.file.type)?t("OnlyOffice",{attrs:{value:e.contentDetail,code:e.code,historyId:e.historyId,documentKey:e.documentKey,readOnly:""}}):e._e()],2)]:e._e(),e.contentLoad?t("div",{staticClass:"content-load"},[t("Loading")],1):e._e()],2)},l=[];const d=()=>n(()=>import("./preview.857f10bf.js"),["js/build/preview.857f10bf.js","js/build/app.62942df0.js","js/build/app.69d3f3a3.css"]),c=()=>n(()=>import("./TEditor.43c37740.js"),["js/build/TEditor.43c37740.js","js/build/app.62942df0.js","js/build/app.69d3f3a3.css","js/build/ImgUpload.582cd84e.js"]),_=()=>n(()=>import("./AceEditor.d782357c.js"),["js/build/AceEditor.d782357c.js","js/build/app.62942df0.js","js/build/app.69d3f3a3.css"]),p=()=>n(()=>import("./OnlyOffice.f8fd0932.js"),["js/build/OnlyOffice.f8fd0932.js","js/build/OnlyOffice.a5dfbde1.css","js/build/app.62942df0.js","js/build/app.69d3f3a3.css","js/build/IFrame.e16748ae.js"]),u=()=>n(()=>import("./Drawio.8bd087d2.js"),["js/build/Drawio.8bd087d2.js","js/build/Drawio.fc5c6326.css","js/build/app.62942df0.js","js/build/app.69d3f3a3.css","js/build/IFrame.e16748ae.js"]),h=()=>n(()=>import("./Minder.d27ee541.js"),["js/build/Minder.d27ee541.js","js/build/Minder.f2273bdb.css","js/build/IFrame.e16748ae.js","js/build/app.62942df0.js","js/build/app.69d3f3a3.css"]),v={name:"FilePreview",components:{IFrame:a,AceEditor:_,TEditor:c,MDPreview:d,OnlyOffice:p,Drawio:u,Minder:h},props:{code:{type:String,default:""},historyId:{type:Number,default:0},file:{type:Object,default:()=>({})},headerShow:{type:Boolean,default:!0}},data(){return{loadContent:0,contentDetail:null,loadPreview:!0}},watch:{"file.id":{handler(e){e&&(this.contentDetail=null,this.getContent())},immediate:!0,deep:!0}},computed:{contentLoad(){return this.loadContent>0||this.previewLoad},isPreview(){return this.contentDetail&&this.contentDetail.preview===!0},previewLoad(){return this.isPreview&&this.loadPreview===!0},previewUrl(){if(this.isPreview){const{name:e,key:i}=this.contentDetail;return $A.apiUrl(`../online/preview/${e}?key=${i}`)}return""}},methods:{onFrameLoad(){this.loadPreview=!1},getContent(){if(["word","excel","ppt"].includes(this.file.type)){this.contentDetail=$A.cloneJSON(this.file);return}setTimeout(e=>{this.loadContent++},600),this.$store.dispatch("call",{url:"file/content",data:{id:this.code||this.file.id,history_id:this.historyId}}).then(({data:e})=>{this.contentDetail=e.content}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.loadContent--})},documentKey(){return new Promise(e=>{this.$store.dispatch("call",{url:"file/content",data:{id:this.code||this.file.id,only_update_at:"yes"}}).then(({data:i})=>{e(`${i.id}-${$A.Time(i.update_at)}`)}).catch(()=>{e(0)})})},exportMenu(e){switch(this.file.type){case"mind":this.$refs.myMind.exportHandle(e,this.file.name);break}}}},o={};var f=r(v,s,l,!1,m,null,null,null);function m(e){for(let i in o)this[i]=o[i]}var D=function(){return f.exports}();export{D as default}; +import{n as r,_ as n}from"./app.2163cd94.js";import{I as a}from"./IFrame.194f5146.js";var s=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"file-preview"},[e.isPreview?t("IFrame",{staticClass:"preview-iframe",attrs:{src:e.previewUrl},on:{"on-load":e.onFrameLoad}}):e.contentDetail?[t("div",{directives:[{name:"show",rawName:"v-show",value:e.headerShow&&!["word","excel","ppt"].includes(e.file.type),expression:"headerShow && !['word', 'excel', 'ppt'].includes(file.type)"}],staticClass:"edit-header"},[t("div",{staticClass:"header-title"},[t("div",{staticClass:"title-name"},[e._v(e._s(e.$A.getFileName(e.file)))]),t("Tag",{attrs:{color:"default"}},[e._v(e._s(e.$L("\u53EA\u8BFB")))]),t("div",{staticClass:"refresh"},[e.contentLoad?t("Loading"):t("Icon",{attrs:{type:"ios-refresh"},on:{click:e.getContent}})],1)],1),e.file.type=="mind"?t("Dropdown",{staticClass:"header-hint",attrs:{trigger:"click"},on:{"on-click":e.exportMenu}},[t("a",{attrs:{href:"javascript:void(0)"}},[e._v(e._s(e.$L("\u5BFC\u51FA"))),t("Icon",{attrs:{type:"ios-arrow-down"}})],1),t("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[t("DropdownItem",{attrs:{name:"png"}},[e._v(e._s(e.$L("\u5BFC\u51FAPNG\u56FE\u7247")))]),t("DropdownItem",{attrs:{name:"pdf"}},[e._v(e._s(e.$L("\u5BFC\u51FAPDF\u6587\u4EF6")))])],1)],1):e._e()],1),t("div",{staticClass:"content-body"},[e.file.type=="document"?[e.contentDetail.type=="md"?t("MDPreview",{attrs:{initialValue:e.contentDetail.content}}):t("TEditor",{attrs:{value:e.contentDetail.content,height:"100%",readOnly:""}})]:e.file.type=="drawio"?t("Drawio",{ref:"myFlow",attrs:{value:e.contentDetail,title:e.file.name,readOnly:""}}):e.file.type=="mind"?t("Minder",{ref:"myMind",attrs:{value:e.contentDetail,readOnly:""}}):["code","txt"].includes(e.file.type)?t("AceEditor",{attrs:{value:e.contentDetail.content,ext:e.file.ext,readOnly:""}}):["word","excel","ppt"].includes(e.file.type)?t("OnlyOffice",{attrs:{value:e.contentDetail,code:e.code,historyId:e.historyId,documentKey:e.documentKey,readOnly:""}}):e._e()],2)]:e._e(),e.contentLoad?t("div",{staticClass:"content-load"},[t("Loading")],1):e._e()],2)},l=[];const d=()=>n(()=>import("./preview.bd1a4cdd.js"),["js/build/preview.bd1a4cdd.js","js/build/app.2163cd94.js","js/build/app.89c18ad2.css"]),c=()=>n(()=>import("./TEditor.fd2b59ab.js"),["js/build/TEditor.fd2b59ab.js","js/build/app.2163cd94.js","js/build/app.89c18ad2.css","js/build/ImgUpload.273724c5.js"]),_=()=>n(()=>import("./AceEditor.3445dfdf.js"),["js/build/AceEditor.3445dfdf.js","js/build/app.2163cd94.js","js/build/app.89c18ad2.css"]),p=()=>n(()=>import("./OnlyOffice.a8be1f54.js"),["js/build/OnlyOffice.a8be1f54.js","js/build/OnlyOffice.a5dfbde1.css","js/build/app.2163cd94.js","js/build/app.89c18ad2.css","js/build/IFrame.194f5146.js"]),u=()=>n(()=>import("./Drawio.523dc440.js"),["js/build/Drawio.523dc440.js","js/build/Drawio.fc5c6326.css","js/build/app.2163cd94.js","js/build/app.89c18ad2.css","js/build/IFrame.194f5146.js"]),h=()=>n(()=>import("./Minder.4680e5d9.js"),["js/build/Minder.4680e5d9.js","js/build/Minder.f052977b.css","js/build/IFrame.194f5146.js","js/build/app.2163cd94.js","js/build/app.89c18ad2.css"]),v={name:"FilePreview",components:{IFrame:a,AceEditor:_,TEditor:c,MDPreview:d,OnlyOffice:p,Drawio:u,Minder:h},props:{code:{type:String,default:""},historyId:{type:Number,default:0},file:{type:Object,default:()=>({})},headerShow:{type:Boolean,default:!0}},data(){return{loadContent:0,contentDetail:null,loadPreview:!0}},watch:{"file.id":{handler(e){e&&(this.contentDetail=null,this.getContent())},immediate:!0,deep:!0}},computed:{contentLoad(){return this.loadContent>0||this.previewLoad},isPreview(){return this.contentDetail&&this.contentDetail.preview===!0},previewLoad(){return this.isPreview&&this.loadPreview===!0},previewUrl(){if(this.isPreview){const{name:e,key:i}=this.contentDetail;return $A.apiUrl(`../online/preview/${e}?key=${i}`)}return""}},methods:{onFrameLoad(){this.loadPreview=!1},getContent(){if(["word","excel","ppt"].includes(this.file.type)){this.contentDetail=$A.cloneJSON(this.file);return}setTimeout(e=>{this.loadContent++},600),this.$store.dispatch("call",{url:"file/content",data:{id:this.code||this.file.id,history_id:this.historyId}}).then(({data:e})=>{this.contentDetail=e.content}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.loadContent--})},documentKey(){return new Promise(e=>{this.$store.dispatch("call",{url:"file/content",data:{id:this.code||this.file.id,only_update_at:"yes"}}).then(({data:i})=>{e(`${i.id}-${$A.Time(i.update_at)}`)}).catch(()=>{e(0)})})},exportMenu(e){switch(this.file.type){case"mind":this.$refs.myMind.exportHandle(e,this.file.name);break}}}},o={};var f=r(v,s,l,!1,m,null,null,null);function m(e){for(let i in o)this[i]=o[i]}var D=function(){return f.exports}();export{D as default}; diff --git a/public/js/build/IFrame.e16748ae.js b/public/js/build/IFrame.194f5146.js similarity index 94% rename from public/js/build/IFrame.e16748ae.js rename to public/js/build/IFrame.194f5146.js index 802074652..295f8ad62 100644 --- a/public/js/build/IFrame.e16748ae.js +++ b/public/js/build/IFrame.194f5146.js @@ -1 +1 @@ -import{n}from"./app.62942df0.js";var i=function(){var e=this,s=e.$createElement,r=e._self._c||s;return r("iframe",{directives:[{name:"show",rawName:"v-show",value:e.src,expression:"src"}],ref:"iframe",attrs:{src:e.src}})},a=[];const o={name:"IFrame",props:{src:{type:String,default:""}},mounted(){this.$refs.iframe.addEventListener("load",this.handleLoad),window.addEventListener("message",this.handleMessage)},beforeDestroy(){this.$refs.iframe.removeEventListener("load",this.handleLoad),window.removeEventListener("message",this.handleMessage)},methods:{handleLoad(){this.$emit("on-load")},handleMessage({data:e,source:s}){var r;s===((r=this.$refs.iframe)==null?void 0:r.contentWindow)&&(e=$A.jsonParse(e),e.source==="fileView"&&e.action==="picture"&&this.$store.dispatch("previewImage",{index:e.params.index,list:e.params.array}),this.$emit("on-message",e))},postMessage(e,s="*"){this.$refs.iframe&&this.$refs.iframe.contentWindow.postMessage(e,s)}}},t={};var m=n(o,i,a,!1,c,null,null,null);function c(e){for(let s in t)this[s]=t[s]}var l=function(){return m.exports}();export{l as I}; +import{n}from"./app.2163cd94.js";var i=function(){var e=this,s=e.$createElement,r=e._self._c||s;return r("iframe",{directives:[{name:"show",rawName:"v-show",value:e.src,expression:"src"}],ref:"iframe",attrs:{src:e.src}})},a=[];const o={name:"IFrame",props:{src:{type:String,default:""}},mounted(){this.$refs.iframe.addEventListener("load",this.handleLoad),window.addEventListener("message",this.handleMessage)},beforeDestroy(){this.$refs.iframe.removeEventListener("load",this.handleLoad),window.removeEventListener("message",this.handleMessage)},methods:{handleLoad(){this.$emit("on-load")},handleMessage({data:e,source:s}){var r;s===((r=this.$refs.iframe)==null?void 0:r.contentWindow)&&(e=$A.jsonParse(e),e.source==="fileView"&&e.action==="picture"&&this.$store.dispatch("previewImage",{index:e.params.index,list:e.params.array}),this.$emit("on-message",e))},postMessage(e,s="*"){this.$refs.iframe&&this.$refs.iframe.contentWindow.postMessage(e,s)}}},t={};var m=n(o,i,a,!1,c,null,null,null);function c(e){for(let s in t)this[s]=t[s]}var l=function(){return m.exports}();export{l as I}; diff --git a/public/js/build/ImgUpload.582cd84e.js b/public/js/build/ImgUpload.273724c5.js similarity index 99% rename from public/js/build/ImgUpload.582cd84e.js rename to public/js/build/ImgUpload.273724c5.js index cfaea6317..6536b2861 100644 --- a/public/js/build/ImgUpload.582cd84e.js +++ b/public/js/build/ImgUpload.273724c5.js @@ -1 +1 @@ -import{n as o}from"./app.62942df0.js";var r=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"common-img-update"},[t._l(t.uploadList,function(s){return t.type!=="callback"?e("div",{staticClass:"imgcomp-upload-list"},[s.status==="finished"?[e("div",{staticClass:"imgcomp-upload-img",style:{"background-image":"url("+t.__thumb(s.thumb)+")"}}),e("div",{staticClass:"imgcomp-upload-list-cover"},[e("Icon",{attrs:{type:"ios-eye-outline"},nativeOn:{click:function(a){return t.handleView(s)}}}),e("Icon",{attrs:{type:"ios-trash-outline"},nativeOn:{click:function(a){return t.handleRemove(s)}}})],1)]:[s.showProgress?e("Progress",{attrs:{percent:s.percentage,"hide-info":""}}):t._e()]],2):t._e()}),e("div",{staticClass:"add-box",class:{"callback-add-box":t.type==="callback"}},[e("div",{staticClass:"add-box-icon"},[e("Icon",{attrs:{type:"md-add",size:"32"}})],1),e("div",{staticClass:"add-box-upload"},[e("div",{staticClass:"add-box-item",on:{click:t.browsePicture}},[e("span",[t._v(t._s(t.$L("\u6D4F\u89C8"))),t.type==="callback"?e("em",[t._v(t._s(t.$L("\u56FE\u7247")))]):t._e()])]),e("div",{staticClass:"add-box-item"},[e("Upload",{ref:"upload",attrs:{name:"image",accept:"image/*",action:t.actionUrl,headers:t.uploadHeaders,data:t.uploadParams,"show-upload-list":!1,"max-size":t.maxSize,format:["jpg","jpeg","webp","gif","png"],"default-file-list":t.defaultList,"on-progress":t.handleProgress,"on-success":t.handleSuccess,"on-error":t.handleError,"on-format-error":t.handleFormatError,"on-exceeded-size":t.handleMaxSize,"before-upload":t.handleBeforeUpload,multiple:t.multiple}},[e("span",[t._v(t._s(t.$L("\u4E0A\u4F20"))),t.type==="callback"?e("em",[t._v(t._s(t.$L("\u56FE\u7247")))]):t._e()])])],1)])]),e("Modal",{staticClass:"img-upload-modal",attrs:{title:t.$L("\u6D4F\u89C8\u56FE\u7247\u7A7A\u95F4"),width:"710"},model:{value:t.browseVisible,callback:function(s){t.browseVisible=s},expression:"browseVisible"}},[t.isLoading?e("div",{staticClass:"browse-load"},[t._v(t._s(t.$L("\u52A0\u8F7D\u4E2D...")))]):e("div",{ref:"browselistbox",staticClass:"browse-list",class:t.httpType==="input"?"browse-list-disabled":""},[t.browseList.length<=0?e("div",[t._v(t._s(t.$L("\u65E0\u5185\u5BB9")))]):t._l(t.browseList,function(s){return e("div",{staticClass:"browse-item",on:{click:function(a){return t.browseItem(s)}}},[s.active?e("Icon",{staticClass:"browse-icon",attrs:{type:"ios-checkmark-circle"}}):t._e(),e("div",{staticClass:"browse-img",style:t.browseStyle(s.thumb)}),e("div",{staticClass:"browse-title"},[t._v(t._s(s.title))])],1)})],2),e("div",{staticClass:"img-upload-foot",attrs:{slot:"footer"},slot:"footer"},[t.type!=="callback"&&t.http&&t.httpType===""?e("div",{staticClass:"img-upload-foot-input",on:{click:function(s){t.httpType="input"}}},[e("Icon",{attrs:{type:"ios-image",size:"22"}}),e("div",{staticClass:"img-upload-foot-httptitle"},[t._v(t._s(t.$L("\u81EA\u5B9A\u4E49\u56FE\u7247\u5730\u5740")))])],1):t._e(),t.type!=="callback"&&t.http&&t.httpType==="input"?e("div",{staticClass:"img-upload-foot-input"},[e("Input",{attrs:{placeholder:t.$L("\u4EE5 http:// \u6216 https:// \u5F00\u5934"),search:"","enter-button":t.$L("\u786E\u5B9A")},on:{"on-search":t.httpEnter},model:{value:t.httpValue,callback:function(s){t.httpValue=s},expression:"httpValue"}},[e("span",{staticStyle:{cursor:"pointer"},attrs:{slot:"prepend"},on:{click:function(s){t.httpType=""}},slot:"prepend"},[t._v(t._s(t.$L("\u81EA\u5B9A\u4E49\u5730\u5740"))+": ")])])],1):t._e(),t.httpType===""?e("Button",{on:{click:function(s){t.browseVisible=!1}}},[t._v(t._s(t.$L("\u5173\u95ED")))]):t._e(),t.httpType===""?e("Button",{attrs:{type:"primary"},on:{click:function(s){return t.handleCallback(!0)}}},[t._v(t._s(t.$L("\u5B8C\u6210")))]):t._e()],1)]),e("Modal",{staticClass:"img-upload-modal",attrs:{title:t.$L("\u67E5\u770B\u56FE\u7247"),draggable:""},model:{value:t.visible,callback:function(s){t.visible=s},expression:"visible"}},[e("div",{staticStyle:{"max-height":"480px",overflow:"auto"}},[e("a",{attrs:{href:t.imgVisible,target:"_blank"}},[t.visible?e("img",{staticStyle:{"max-width":"100%","max-height":"900px",display:"block",margin:"0 auto"},attrs:{src:t.imgVisible}}):t._e()])])])],2)},n=[];const h={name:"ImgUpload",props:{value:{},num:{},width:{},height:{},whcut:{},type:{},http:{type:Boolean,default:!1},otherParams:{type:Object,default:()=>({})},uploadIng:{type:Number,default:0}},data(){return{actionUrl:$A.apiUrl("system/imgupload"),multiple:this.num>1,visible:!1,browseVisible:!1,isLoading:!1,browseList:[],browseListNext:[],imgVisible:"",defaultList:this.initItems(this.value),uploadList:[],maxNum:Math.min(Math.max($A.runNum(this.num),1),99),httpValue:"",httpType:"",maxSize:2048}},mounted(){this.uploadList=this.$refs.upload.fileList,this.$emit("input",this.uploadList);let t=$A(this.$refs.browselistbox);t.scroll(()=>{let i=t[0].scrollHeight,e=t[0].scrollTop,s=t.height();if(e+s>=i&&this.browseListNext.length>0){let a=this.browseListNext;this.browseListNext=[],this.browsePictureFor(a)}})},watch:{value(t){if(typeof t=="string"){this.$emit("input",this.initItems(t));return}t!==this.$refs.upload.fileList&&(this.$refs.upload.fileList=this.initItems(t),this.uploadList=this.$refs.upload.fileList)},browseVisible(){this.httpType="",this.httpValue=""}},computed:{uploadHeaders(){return{fd:$A.getSessionStorageString("userWsFd"),token:this.userToken}},uploadParams(){let t={width:this.width,height:this.height,whcut:this.whcut};return Object.keys(this.otherParams).length>0?Object.assign(t,this.otherParams):t}},methods:{handleCallback(t){this.type==="callback"&&(t===!0?(this.$emit("on-callback",this.uploadList),this.$refs.upload.fileList=[],this.uploadList=this.$refs.upload.fileList):typeof t=="object"&&this.$emit("on-callback",[t])),this.browseVisible=!1},initItems(t){typeof t=="string"&&(t=[{url:t}]);let i=[];return $A.each(t,(e,s)=>{typeof s=="string"&&(s={url:s}),s.url&&(s.active=!0,s.status="finished",typeof s.path=="undefined"&&(s.path=s.url),typeof s.thumb=="undefined"&&(s.thumb=s.url),i.push(s))}),i},handleView(t){this.$store.dispatch("previewImage",t.url)},handleRemove(t){let i=this.$refs.upload.fileList;this.$refs.upload.fileList.splice(i.indexOf(t),1),this.$emit("input",this.$refs.upload.fileList)},handleProgress(t,i){i._uploadIng===void 0&&(i._uploadIng=!0,this.$emit("update:uploadIng",this.uploadIng+1))},handleSuccess(t,i){this.$emit("update:uploadIng",this.uploadIng-1),t.ret===1?(i.url=t.data.url,i.path=t.data.path,i.thumb=t.data.thumb,this.handleCallback(i)):($A.noticeWarning({title:this.$L("\u4E0A\u4F20\u5931\u8D25"),desc:this.$L("\u6587\u4EF6 "+i.name+" \u4E0A\u4F20\u5931\u8D25 "+t.msg)}),this.$refs.upload.fileList.pop()),this.$emit("input",this.$refs.upload.fileList)},handleError(){this.$emit("update:uploadIng",this.uploadIng-1)},handleFormatError(t){$A.noticeWarning({title:this.$L("\u6587\u4EF6\u683C\u5F0F\u4E0D\u6B63\u786E"),desc:this.$L("\u6587\u4EF6 "+t.name+" \u683C\u5F0F\u4E0D\u6B63\u786E\uFF0C\u8BF7\u4E0A\u4F20 jpg\u3001jpeg\u3001webp\u3001gif\u3001png \u683C\u5F0F\u7684\u56FE\u7247\u3002")})},handleMaxSize(t){$A.noticeWarning({title:this.$L("\u8D85\u51FA\u6587\u4EF6\u5927\u5C0F\u9650\u5236"),desc:this.$L("\u6587\u4EF6 "+t.name+" \u592A\u5927\uFF0C\u4E0D\u80FD\u8D85\u8FC7\uFF1A"+$A.bytesToSize(this.maxSize*1024))})},handleBeforeUpload(){let t=this.uploadList.length{let e=i.dirs;for(let s=0;s{this.browseVisible=!1,$A.noticeWarning(i)}).finally(i=>{this.isLoading=!1})},browsePictureFor(t){for(let i=0;i({})},uploadIng:{type:Number,default:0}},data(){return{actionUrl:$A.apiUrl("system/imgupload"),multiple:this.num>1,visible:!1,browseVisible:!1,isLoading:!1,browseList:[],browseListNext:[],imgVisible:"",defaultList:this.initItems(this.value),uploadList:[],maxNum:Math.min(Math.max($A.runNum(this.num),1),99),httpValue:"",httpType:"",maxSize:2048}},mounted(){this.uploadList=this.$refs.upload.fileList,this.$emit("input",this.uploadList);let t=$A(this.$refs.browselistbox);t.scroll(()=>{let i=t[0].scrollHeight,e=t[0].scrollTop,s=t.height();if(e+s>=i&&this.browseListNext.length>0){let a=this.browseListNext;this.browseListNext=[],this.browsePictureFor(a)}})},watch:{value(t){if(typeof t=="string"){this.$emit("input",this.initItems(t));return}t!==this.$refs.upload.fileList&&(this.$refs.upload.fileList=this.initItems(t),this.uploadList=this.$refs.upload.fileList)},browseVisible(){this.httpType="",this.httpValue=""}},computed:{uploadHeaders(){return{fd:$A.getSessionStorageString("userWsFd"),token:this.userToken}},uploadParams(){let t={width:this.width,height:this.height,whcut:this.whcut};return Object.keys(this.otherParams).length>0?Object.assign(t,this.otherParams):t}},methods:{handleCallback(t){this.type==="callback"&&(t===!0?(this.$emit("on-callback",this.uploadList),this.$refs.upload.fileList=[],this.uploadList=this.$refs.upload.fileList):typeof t=="object"&&this.$emit("on-callback",[t])),this.browseVisible=!1},initItems(t){typeof t=="string"&&(t=[{url:t}]);let i=[];return $A.each(t,(e,s)=>{typeof s=="string"&&(s={url:s}),s.url&&(s.active=!0,s.status="finished",typeof s.path=="undefined"&&(s.path=s.url),typeof s.thumb=="undefined"&&(s.thumb=s.url),i.push(s))}),i},handleView(t){this.$store.dispatch("previewImage",t.url)},handleRemove(t){let i=this.$refs.upload.fileList;this.$refs.upload.fileList.splice(i.indexOf(t),1),this.$emit("input",this.$refs.upload.fileList)},handleProgress(t,i){i._uploadIng===void 0&&(i._uploadIng=!0,this.$emit("update:uploadIng",this.uploadIng+1))},handleSuccess(t,i){this.$emit("update:uploadIng",this.uploadIng-1),t.ret===1?(i.url=t.data.url,i.path=t.data.path,i.thumb=t.data.thumb,this.handleCallback(i)):($A.noticeWarning({title:this.$L("\u4E0A\u4F20\u5931\u8D25"),desc:this.$L("\u6587\u4EF6 "+i.name+" \u4E0A\u4F20\u5931\u8D25 "+t.msg)}),this.$refs.upload.fileList.pop()),this.$emit("input",this.$refs.upload.fileList)},handleError(){this.$emit("update:uploadIng",this.uploadIng-1)},handleFormatError(t){$A.noticeWarning({title:this.$L("\u6587\u4EF6\u683C\u5F0F\u4E0D\u6B63\u786E"),desc:this.$L("\u6587\u4EF6 "+t.name+" \u683C\u5F0F\u4E0D\u6B63\u786E\uFF0C\u8BF7\u4E0A\u4F20 jpg\u3001jpeg\u3001webp\u3001gif\u3001png \u683C\u5F0F\u7684\u56FE\u7247\u3002")})},handleMaxSize(t){$A.noticeWarning({title:this.$L("\u8D85\u51FA\u6587\u4EF6\u5927\u5C0F\u9650\u5236"),desc:this.$L("\u6587\u4EF6 "+t.name+" \u592A\u5927\uFF0C\u4E0D\u80FD\u8D85\u8FC7\uFF1A"+$A.bytesToSize(this.maxSize*1024))})},handleBeforeUpload(){let t=this.uploadList.length{let e=i.dirs;for(let s=0;s{this.browseVisible=!1,$A.noticeWarning(i)}).finally(i=>{this.isLoading=!1})},browsePictureFor(t){for(let i=0;i"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(t=>{this.audio&&!this.player.audioTrack.isPlaying&&this.play("audio"),this.video&&!this.player.videoTrack.isPlaying&&this.play("video")},3e3)},beforeDestroy(){clearInterval(this.timer)},computed:{...l(["cacheUserBasic"]),userid(){return this.player.uid?(this.player.uid+"").indexOf("88888")!==-1?(this.getTouristInfo(),0):parseInt((this.player.uid+"").substring(5))||0:0},playerStyle(){const t=this.cacheUserBasic.find(({userid:i})=>i==this.userid);return t?{backgroundImage:`url("${t.userimg}")`}:this.tourist.userimg?{backgroundImage:`url("${this.tourist.userimg}")`}:null},audio(){return!!this.player.audioTrack},video(){return!!this.player.videoTrack}},watch:{audio:{handler(t){t&&this.play("audio")},immediate:!0},video:{handler(t){t&&this.play("video")},immediate:!0}},methods:{play(t){this.$nextTick(i=>{try{t==="audio"?!this.isLocal&&this.player.audioTrack.play():t==="video"&&this.player.videoTrack.play(this.id)}catch(e){console.log("Meeting Player Error",e)}})},getTouristInfo(){this.$store.dispatch("call",{url:"users/meeting/tourist",data:{tourist_id:this.player.uid}}).then(({data:t})=>{this.tourist=t}).catch(({msg:t})=>{$A.modalError(t)})}}},o={};var m=s(f,c,u,!1,g,null,null,null);function g(t){for(let i in o)this[i]=o[i]}var p=function(){return m.exports}(),v=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{ref:"floatDrag",style:t.dragStyle,on:{mousedown:function(a){return a.stopPropagation(),a.preventDefault(),t.mouseDown.apply(null,arguments)}}},[t._t("default")],2)},k=[];const y={name:"DragBallComponent",props:{id:{type:String,default:""},distanceRight:{type:Number,default:0},distanceBottom:{type:Number,default:100},isScrollHidden:{type:Boolean,default:!1},isCanDraggable:{type:Boolean,default:!0},zIndex:{type:Number,default:50}},data(){return{clientWidth:null,clientHeight:null,top:0,left:0,timer:null,currentTop:0,isMoving:!1,record:{}}},created(){this.clientWidth=document.documentElement.clientWidth,this.clientHeight=document.documentElement.clientHeight},mounted(){this.id&&($A.isJson(window._DragBallComponent)||(window._DragBallComponent={})),this.isCanDraggable&&this.$nextTick(()=>{this.id&&$A.isJson(window._DragBallComponent[this.id])?(this.left=window._DragBallComponent[this.id].left,this.top=window._DragBallComponent[this.id].top):(this.left=this.clientWidth-this.floatDrag.offsetWidth-this.distanceRight,this.top=this.clientHeight-this.floatDrag.offsetHeight-this.distanceBottom),this.initDraggable()}),this.isScrollHidden&&window.addEventListener("scroll",this.handleScroll),window.addEventListener("resize",this.handleResize)},beforeDestroy(){this.id&&(window._DragBallComponent[this.id]={left:this.left,top:this.top}),window.removeEventListener("scroll",this.handleScroll),window.removeEventListener("resize",this.handleResize)},computed:{dragStyle(){return{left:this.left+"px",top:this.top+"px",zIndex:this.zIndex,position:"fixed"}},floatDrag(){return this.$refs.floatDrag}},methods:{handleScroll(){this.timer&&clearTimeout(this.timer),this.timer=setTimeout(()=>{this.handleScrollEnd()},200),this.currentTop=document.documentElement.scrollTop||document.body.scrollTop,this.left>this.clientWidth/2?this.left=this.clientWidth+this.floatDrag.offsetWidth:this.left=-this.floatDrag.offsetWidth},handleScrollEnd(){(document.documentElement.scrollTop||document.body.scrollTop)===this.currentTop&&(this.left>this.clientWidth/2?this.left=this.clientWidth-this.floatDrag.offsetWidth:this.left=0,clearTimeout(this.timer))},handleResize(){this.clientWidth=document.documentElement.clientWidth,this.clientHeight=document.documentElement.clientHeight,this.$nextTick(this.checkDraggablePosition)},initDraggable(){this.floatDrag.addEventListener("touchstart",this.toucheStart),this.floatDrag.addEventListener("touchmove",this.touchMove),this.floatDrag.addEventListener("touchend",this.touchEnd)},mouseDown(t){this.record={time:new Date().getTime(),top:this.floatDrag.offsetTop,left:this.floatDrag.offsetLeft,x:t.clientX-this.floatDrag.offsetLeft,y:t.clientY-this.floatDrag.offsetTop},this.floatDrag.style.transition="none",this.canClick=!1,document.onmousemove=i=>{let e=i.clientX-this.record.x,a=i.clientY-this.record.y;e<0?e=0:e>window.innerWidth-this.floatDrag.offsetWidth&&(e=window.innerWidth-this.floatDrag.offsetWidth),a<0?a=0:a>window.innerHeight-this.floatDrag.offsetHeight&&(a=window.innerHeight-this.floatDrag.offsetHeight),this.left=e,this.top=a},document.onmouseup=()=>{document.onmousemove=null,document.onmouseup=null,this.checkDraggablePosition(),this.floatDrag.style.transition="all 0.3s",(Math.abs(this.record.top-this.floatDrag.offsetTop)<5&&Math.abs(this.record.left-this.floatDrag.offsetLeft)<5||new Date().getTime()-this.record.time<200)&&this.$emit("on-click")}},toucheStart(){this.canClick=!1,this.floatDrag.style.transition="none"},touchMove(t){if(this.canClick=!0,t.targetTouches.length===1){let i=event.targetTouches[0],e=i.clientX-this.floatDrag.offsetWidth/2,a=i.clientY-this.floatDrag.offsetHeight/2;e<0?e=0:e>window.innerWidth-this.floatDrag.offsetWidth&&(e=window.innerWidth-this.floatDrag.offsetWidth),a<0?a=0:a>window.innerHeight-this.floatDrag.offsetHeight&&(a=window.innerHeight-this.floatDrag.offsetHeight),this.left=e,this.top=a}},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)}}},n={};var D=s(y,v,k,!1,_,null,null,null);function _(t){for(let i in n)this[i]=n[i]}var $=function(){return D.exports}(),b=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"meeting-warp"},[e("Modal",{attrs:{title:t.$L(t.addData.type==="join"?"\u52A0\u5165\u4F1A\u8BAE":"\u65B0\u4F1A\u8BAE"),"mask-closable":!1,closable:!t.addData.sharekey},model:{value:t.addShow,callback:function(a){t.addShow=a},expression:"addShow"}},[e("Form",{ref:"addForm",attrs:{model:t.addData,rules:t.addRule,"label-width":"auto"},nativeOn:{submit:function(a){a.preventDefault()}}},[t.addData.type==="join"?[t.addData.name?e("FormItem",{attrs:{prop:"userids",label:t.$L("\u4F1A\u8BAE\u4E3B\u9898")}},[e("Input",{attrs:{disabled:""},model:{value:t.addData.name,callback:function(a){t.$set(t.addData,"name",a)},expression:"addData.name"}})],1):t._e(),t.addData.sharekey?e("FormItem",{attrs:{prop:"username",label:t.$L("\u4F60\u7684\u59D3\u540D")}},[e("Input",{attrs:{placeholder:t.$L("\u8BF7\u8F93\u5165\u4F60\u7684\u59D3\u540D")},model:{value:t.addData.username,callback:function(a){t.$set(t.addData,"username",a)},expression:"addData.username"}})],1):t._e(),e("FormItem",{attrs:{prop:"meetingid",label:t.$L("\u4F1A\u8BAE\u9891\u9053ID")}},[e("Input",{attrs:{disabled:t.addData.meetingdisabled===!0,placeholder:t.$L("\u8BF7\u8F93\u5165\u4F1A\u8BAE\u9891\u9053ID")},model:{value:t.addData.meetingid,callback:function(a){t.$set(t.addData,"meetingid",a)},expression:"addData.meetingid"}})],1)]:[e("FormItem",{attrs:{prop:"name",label:t.$L("\u4F1A\u8BAE\u4E3B\u9898")}},[e("Input",{attrs:{maxlength:50,placeholder:t.$L("\u9009\u586B")},model:{value:t.addData.name,callback:function(a){t.$set(t.addData,"name",a)},expression:"addData.name"}})],1),e("FormItem",{attrs:{prop:"userids",label:t.$L("\u9080\u8BF7\u6210\u5458")}},[e("UserSelect",{attrs:{uncancelable:[t.userId],"multiple-max":20,title:t.$L("\u9009\u62E9\u9080\u8BF7\u6210\u5458")},model:{value:t.addData.userids,callback:function(a){t.$set(t.addData,"userids",a)},expression:"addData.userids"}})],1)],e("FormItem",{attrs:{prop:"tracks"}},[e("CheckboxGroup",{model:{value:t.addData.tracks,callback:function(a){t.$set(t.addData,"tracks",a)},expression:"addData.tracks"}},[e("Checkbox",{attrs:{label:"audio"}},[e("span",[t._v(t._s(t.$L("\u9EA6\u514B\u98CE")))])]),e("Checkbox",{attrs:{label:"video"}},[e("span",[t._v(t._s(t.$L("\u6444\u50CF\u5934")))])])],1)],1)],2),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[t.addData.sharekey?t._e():e("Button",{attrs:{type:"default"},on:{click:function(a){t.addShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.loadIng>0},on:{click:t.onSubmit}},[t._v(t._s(t.$L(t.addData.type==="join"?"\u52A0\u5165\u4F1A\u8BAE":"\u5F00\u59CB\u4F1A\u8BAE")))])],1)],1),e("Modal",{ref:"meetingModal",attrs:{title:t.addData.name,mask:!1,"mask-closable":!1,closable:!1,"transition-names":["",""],beforeClose:t.onClose,"class-name":`meeting-manager${t.meetingMini?" meeting-hidden":""}`,fullscreen:""},model:{value:t.meetingShow,callback:function(a){t.meetingShow=a},expression:"meetingShow"}},[e("ul",[t.localUser.uid?e("li",[e("MeetingPlayer",{attrs:{player:t.localUser,isLocal:""}})],1):t._e(),t._l(t.remoteUsers,function(a){return e("li",[e("MeetingPlayer",{attrs:{player:a}})],1)})],2),e("div",{staticClass:"adaption meeting-button-group",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"primary",loading:t.audioLoad},on:{click:t.onAudio}},[e("i",{staticClass:"taskfont",domProps:{innerHTML:t._s(t.localUser.audioTrack?"":"")}})]),e("Button",{attrs:{type:"primary",loading:t.videoLoad},on:{click:t.onVideo}},[e("i",{staticClass:"taskfont",domProps:{innerHTML:t._s(t.localUser.videoTrack?"":"")}})]),t.windowPortrait?[e("Button",{attrs:{type:"primary",loading:t.linkCopyLoad},on:{click:function(a){return t.onInvitation("open")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE646")])]),t.addData.sharekey?t._e():e("Button",{attrs:{type:"primary"},on:{click:function(a){t.meetingMini=!0}}},[e("i",{staticClass:"taskfont"},[t._v("\uE656")])]),e("Button",{attrs:{type:"warning",loading:t.loadIng>0},on:{click:t.onClose}},[e("i",{staticClass:"taskfont"},[t._v("\uE612")])])]:[e("Button",{attrs:{type:"primary"},on:{click:function(a){return t.onInvitation("open")}}},[t._v(t._s(t.$L("\u9080\u8BF7")))]),t.addData.sharekey?t._e():e("Button",{attrs:{type:"primary"},on:{click:function(a){t.meetingMini=!0}}},[t._v(t._s(t.$L("\u6700\u5C0F\u5316")))]),e("Button",{attrs:{type:"warning",loading:t.loadIng>0},on:{click:t.onClose}},[t._v(t._s(t.$L("\u79BB\u5F00\u4F1A\u8BAE")))])]],2)]),t.meetingMini?e("DragBallComponent",{attrs:{id:"meetingDragBall","z-index":3e3},on:{"on-click":function(a){t.meetingMini=!1}}},[e("div",{staticClass:"meeting-drag-ball"},[e("i",{staticClass:"taskfont",domProps:{innerHTML:t._s(t.localUser.audioTrack?"":"")}}),e("i",{staticClass:"taskfont",domProps:{innerHTML:t._s(t.localUser.videoTrack?"":"")}}),e("em",[t._v(t._s(t.$L("\u4F1A\u8BAE\u4E2D")))])])]):t._e(),e("Modal",{attrs:{title:t.$L("\u9080\u8BF7\u52A0\u5165"),"mask-closable":!1},model:{value:t.invitationShow,callback:function(a){t.invitationShow=a},expression:"invitationShow"}},[e("Form",{ref:"invitationForm",attrs:{model:t.invitationData,"label-width":"auto"},nativeOn:{submit:function(a){a.preventDefault()}}},[e("FormItem",{attrs:{prop:"userids",label:t.$L("\u9080\u8BF7\u6210\u5458")}},[e("UserSelect",{attrs:{"multiple-max":20,title:t.$L("\u9009\u62E9\u9080\u8BF7\u6210\u5458")},model:{value:t.invitationData.userids,callback:function(a){t.$set(t.invitationData,"userids",a)},expression:"invitationData.userids"}})],1)],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default",loading:t.linkCopyLoad},on:{click:t.linkCopy}},[t._v(t._s(t.$L("\u590D\u5236\u94FE\u63A5")))]),e("Button",{attrs:{type:"primary",loading:t.invitationLoad},on:{click:function(a){return t.onInvitation("submit")}}},[t._v(t._s(t.$L("\u53D1\u9001\u9080\u8BF7")))])],1)],1)],1)},w=[];const T={name:"MeetingManager",components:{UserSelect:h,DragBallComponent:$,MeetingPlayer:p},props:{id:{type:String,default:()=>"meeting-player-"+Math.round(Math.random()*1e4)}},data(){return{loadIng:0,subscribe:null,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:{...l(["meetingWindow"])},mounted(){this.subscribe=d.Store.subscribe("addMeeting",this.onAdd)},beforeDestroy(){this.subscribe&&(this.subscribe.unsubscribe(),this.subscribe=null)},watch:{meetingMini(t){t||(this.$refs.meetingModal.modalIndex=this.$refs.meetingModal.handleGetModalIndex())},meetingWindow:{handler(t){switch(t.type){case"add":this.addShow=t.show,this.loadIng=0;break;case"join":this.addShow=t.show,this.loadIng=0,this.addData.type="join",t.meetingSharekey&&(this.addData.sharekey=t.meetingSharekey,this.addData.meetingid=t.meetingid||"",this.addData.meetingdisabled=!!t.meetingSharekey);break;case"invitation":this.invitationShow=t.show,this.invitationLoad=!1,this.invitationData.meetingid=t.meetingid;break;case"error":this.addShow=t.show,this.loadIng=0,this.invitationShow=t.show,this.invitationLoad=!1,$A.modalError("\u52A0\u5165\u4F1A\u8BAE\u5931\u8D25");break}},immediate:!0}},methods:{onAdd(t){t=$A.isJson(t)?t:{},/^\d+$/.test(t.dialog_id)&&(this.loadIng++,this.$store.dispatch("call",{url:"dialog/user",data:{dialog_id:t.dialog_id}}).then(({data:i})=>{this.$set(this.addData,"userids",i.map(e=>e.userid))}).finally(i=>{this.loadIng--}),delete t.dialog_id),$A.isArray(t.userids)?t.userids.includes(this.userId)||t.userids.push(this.userId):t.userids=[this.userId],$A.isArray(t.tracks)?t.tracks.includes("audio")||t.tracks.push("audio"):t.tracks=["audio"],this.addData=t,this.addShow=!0},onSubmit(){if(this.meetingShow){$A.modalWarning("\u6B63\u5728\u4F1A\u8BAE\u4E2D\uFF0C\u65E0\u6CD5\u8FDB\u5165\u5176\u4ED6\u4F1A\u8BAE\u5BA4");return}this.$refs.addForm.validate(t=>{t&&(this.loadIng++,this.$store.dispatch("call",{url:"users/meeting/open",data:this.addData}).then(({data:i})=>{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?$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")}}}):$A.loadScript("js/AgoraRTC_N-4.17.0.js").then(e=>{this.join(i)}).catch(e=>{$A.modalError("\u4F1A\u8BAE\u7EC4\u4EF6\u52A0\u8F7D\u5931\u8D25\uFF01")}).finally(e=>{this.loadIng--})}).catch(({msg:i})=>{this.loadIng--,$A.modalError(i)}))})},onAudio(){this.localUser.audioTrack?this.closeAudio():this.openAudio()},onVideo(){this.localUser.videoTrack?this.closeVideo():this.openVideo()},onInvitation(t){if(t==="open"){if(this.addData.sharekey){this.linkCopy();return}this.invitationData={userids:[],meetingid:this.addData.meetingid},this.invitationShow=!0}else t==="submit"&&(this.invitationLoad=!0,this.$store.dispatch("call",{url:"users/meeting/invitation",data:this.invitationData}).then(({data:i,msg:e})=>{this.invitationShow=!1,this.$store.dispatch("saveDialogMsg",i.msgs),this.$store.dispatch("updateDialogLastMsg",i.msgs),$A.messageSuccess(e)}).catch(({msg:i})=>{$A.modalError(i)}).finally(i=>{this.invitationLoad=!1}))},onClose(){return new Promise(t=>{$A.modalConfirm({content:"\u786E\u5B9A\u8981\u79BB\u5F00\u4F1A\u8BAE\u5417\uFF1F",cancelText:"\u7EE7\u7EED",okText:"\u9000\u51FA",onOk:async i=>{await this.leave(),this.addData.sharekey&&(this.addShow=!0,this.loadIng=0),t()}})})},async join(t){this.loadIng++,AgoraRTC.onMicrophoneChanged=async e=>{if(e.state==="ACTIVE")this.localUser.audioTrack.setDevice(e.device.deviceId);else if(e.device.label===this.localUser.audioTrack.getTrackLabel()){const a=await AgoraRTC.getMicrophones();a[0]&&this.localUser.audioTrack.setDevice(a[0].deviceId)}},AgoraRTC.onCameraChanged=async e=>{if(e.state==="ACTIVE")this.localUser.videoTrack.setDevice(e.device.deviceId);else if(e.device.label===this.localUser.videoTrack.getTrackLabel()){const a=await AgoraRTC.getCameras();a[0]&&this.localUser.videoTrack.setDevice(a[0].deviceId)}},AgoraRTC.onAutoplayFailed=()=>{$A.messageWarning("\u70B9\u51FB\u5C4F\u5E55\u5F00\u59CB\u4F1A\u8BAE")},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 i=[];try{this.localUser.uid=await this.agoraClient.join(t.appid,t.channel,t.token,t.uid),this.addData.tracks.includes("audio")&&i.push(this.localUser.audioTrack=await AgoraRTC.createMicrophoneAudioTrack()),this.addData.tracks.includes("video")&&i.push(this.localUser.videoTrack=await AgoraRTC.createCameraVideoTrack()),i.length>0&&await this.agoraClient.publish(i),this.meetingShow=!0}catch(e){console.error(e),$A.modalError("\u4F1A\u8BAE\u7EC4\u4EF6\u52A0\u8F7D\u5931\u8D25\uFF01")}this.loadIng--,this.addShow=!1},async leave(){this.loadIng++,["audioTrack","videoTrack"].some(t=>{var i,e;(i=this.localUser[t])==null||i.stop(),(e=this.localUser[t])==null||e.close()}),this.localUser={uid:null,audioTrack:null,videoTrack:null},this.remoteUsers=[],await this.agoraClient.leave(),this.loadIng--,this.meetingShow=!1},async openAudio(){this.audioLoad||this.localUser.audioTrack||(this.audioLoad=!0,this.localUser.audioTrack=await AgoraRTC.createMicrophoneAudioTrack(),await this.agoraClient.publish([this.localUser.audioTrack]),this.audioLoad=!1)},async closeAudio(){this.audioLoad||!this.localUser.audioTrack||(this.audioLoad=!0,await this.agoraClient.unpublish([this.localUser.audioTrack]),this.localUser.audioTrack.stop(),this.localUser.audioTrack.close(),this.localUser.audioTrack=null,this.audioLoad=!1)},async openVideo(){this.videoLoad||this.localUser.videoTrack||(this.videoLoad=!0,this.localUser.videoTrack=await AgoraRTC.createCameraVideoTrack(),await this.agoraClient.publish([this.localUser.videoTrack]),this.videoLoad=!1)},async closeVideo(){this.videoLoad||!this.localUser.videoTrack||(this.videoLoad=!0,await this.agoraClient.unpublish([this.localUser.videoTrack]),this.localUser.videoTrack.stop(),this.localUser.videoTrack.close(),this.localUser.videoTrack=null,this.videoLoad=!1)},async handleUserJoined(t){const i=this.remoteUsers.findIndex(e=>e.uid==t.uid);i>-1?this.remoteUsers.splice(i,1,t):this.remoteUsers.push(t)},async handleUserLeft(t){const i=this.remoteUsers.findIndex(e=>e.uid==t.uid);i>-1&&this.remoteUsers.splice(i,1)},async handleUserPublished(t,i){this.remoteUsers.find(a=>a.uid==t.uid)&&await this.agoraClient.subscribe(t,i)},async handleUserUnpublished(t,i){this.remoteUsers.find(a=>a.uid==t.uid)&&await this.agoraClient.unsubscribe(t,i)},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:t})=>{this.$copyText(t).then(i=>{$A.messageSuccess("\u5DF2\u590D\u5236\u4F1A\u8BAE\u9080\u8BF7\u94FE\u63A5")}).catch(i=>{$A.messageError("\u590D\u5236\u5931\u8D25")}),this.invitationShow=!1}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.linkCopyLoad=!1})}}},r={};var C=s(T,b,w,!1,L,null,null,null);function L(t){for(let i in r)this[i]=r[i]}var I=function(){return C.exports}();export{I as M}; diff --git a/public/js/build/MicroApps.1d368dde.js b/public/js/build/MicroApps.1d368dde.js new file mode 100644 index 000000000..05bdaadba --- /dev/null +++ b/public/js/build/MicroApps.1d368dde.js @@ -0,0 +1 @@ +import{u as r,m as i,V as p,s as o,i as s,c as l,l as h,E as d,n as u}from"./app.2163cd94.js";import{D as m}from"./DialogWrapper.ea811790.js";import{U as c}from"./UserSelect.e1ef2c0e.js";var f=function(){var a=this,e=a.$createElement,t=a._self._c||e;return t("div",{staticClass:"page-microapp"},[t("transition",{attrs:{name:"microapp-load"}},[t("div",{staticClass:"microapp-load"},[t("Loading")],1)]),a.url&&!a.loading?t("micro-app",{attrs:{name:a.name,url:a.url,inline:"","keep-alive":"",disableSandbox:"",data:a.appData},on:{created:a.handleCreate,beforemount:a.handleBeforeMount,mounted:a.handleMount,unmount:a.handleUnmount,error:a.handleError,datachange:a.handleDataChange}}):a._e()],1)},g=[];const _={name:"MicroApps",props:{name:{type:String,default:"micro-app"},url:{type:String,default:""},path:{type:String,default:""},data:{type:Object,default:()=>{}}},data(){return{loading:!1,appUrl:"",appData:{}}},deactivated(){},mounted(){this.appData=this.getAppData},watch:{url(a){this.loading=!0,this.$nextTick(()=>{this.loading=!1;let e=$A.apiUrl(a);e.indexOf("http")==-1&&(e=window.location.origin+e),this.appUrl={}.VITE_OKR_WEB_URL||e})},path(a){this.appData={path:a}},data:{handler(a){this.appData=a},deep:!0},$route:{handler(a){a.name=="manage-apps"&&(this.appData={path:a.hash})},immediate:!0},userToken(a){this.appData=this.getAppData,a?this.loading=!1:(r({destroy:!0}),this.loading=!0)}},computed:{...i(["userInfo","themeMode"]),getAppData(){return{type:"init",vues:{Vue:p,store:o,components:{DialogWrapper:m,UserSelect:c,DatePicker:s.exports.DatePicker}},theme:this.themeMode,languages:{languageList:l,languageType:h},userInfo:this.userInfo,path:this.path}}},methods:{handleCreate(a){window.eventCenterForAppNameVite=new d(this.name),this.appData=this.getAppData},handleBeforeMount(a){},handleMount(a){this.appData=this.data,this.path&&(this.appData.path=this.path)},handleUnmount(a){window.dispatchEvent(new Event("apps-unmount"))},handleError(a){console.error("\u5B50\u5E94\u7528\u52A0\u8F7D\u51FA\u9519\u4E86",a.detail.error)},handleDataChange(a){}}},n={};var v=u(_,f,g,!1,D,null,null,null);function D(a){for(let e in n)this[e]=n[e]}var C=function(){return v.exports}();export{C as M}; diff --git a/public/js/build/Minder.d27ee541.js b/public/js/build/Minder.4680e5d9.js similarity index 70% rename from public/js/build/Minder.d27ee541.js rename to public/js/build/Minder.4680e5d9.js index 93f1fc01d..8c2119019 100644 --- a/public/js/build/Minder.d27ee541.js +++ b/public/js/build/Minder.4680e5d9.js @@ -1 +1 @@ -import{I as o}from"./IFrame.e16748ae.js";import{n as s}from"./app.62942df0.js";var c=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"minder-editor-container"},[t("div",{staticClass:"quickbar"},[t("ETooltip",{attrs:{placement:"top",effect:"light"}},[t("div",[t("i",{staticClass:"ft icon",attrs:{title:e.$L("\u7F29\u653E")}},[e._v("\uE7B3")])]),t("div",{staticClass:"minder-editor-slider",attrs:{slot:"content"},slot:"content"},[t("Slider",{attrs:{min:10,max:300},model:{value:e.zoom,callback:function(n){e.zoom=n},expression:"zoom"}})],1)]),e.readOnly!==!0?t("ETooltip",{attrs:{placement:"top",effect:"light"}},[t("div",[t("i",{staticClass:"ft icon",attrs:{title:e.$L("\u56FE\u5F62")}},[e._v("\uE621")])]),t("div",{attrs:{slot:"content"},slot:"content"},[t("ul",{staticClass:"minder-editor-quickul mold"},[t("li",{on:{click:function(n){return e.execCommand("template","default")}}},[t("span",{staticClass:"default"})]),t("li",{on:{click:function(n){return e.execCommand("template","structure")}}},[t("span",{staticClass:"structure"})]),t("li",{on:{click:function(n){return e.execCommand("template","filetree")}}},[t("span",{staticClass:"filetree"})]),t("li",{on:{click:function(n){return e.execCommand("template","right")}}},[t("span",{staticClass:"right"})]),t("li",{on:{click:function(n){return e.execCommand("template","fish-bone")}}},[t("span",{staticClass:"fish-bone"})]),t("li",{on:{click:function(n){return e.execCommand("template","tianpan")}}},[t("span",{staticClass:"tianpan"})])])])]):e._e(),e.readOnly!==!0?t("ETooltip",{attrs:{placement:"top",effect:"light"}},[t("div",[t("i",{staticClass:"ft icon",attrs:{title:e.$L("\u6837\u5F0F")}},[e._v("\uE678")])]),t("div",{attrs:{slot:"content"},slot:"content"},[t("ul",{staticClass:"minder-editor-quickul"},[t("li",{on:{click:function(n){return e.execCommand("theme","fresh-blue")}}},[e._v(e._s(e.$L("\u5929\u7A7A\u84DD")))]),t("li",{on:{click:function(n){return e.execCommand("theme","wire")}}},[e._v(e._s(e.$L("\u7EBF\u6846")))]),t("li",{on:{click:function(n){return e.execCommand("theme","fish")}}},[e._v(e._s(e.$L("\u9C7C\u9AA8\u56FE")))]),t("li",{on:{click:function(n){return e.execCommand("theme","classic")}}},[e._v(e._s(e.$L("\u8111\u56FE\u7ECF\u5178")))]),t("li",{on:{click:function(n){return e.execCommand("theme","classic-compact")}}},[e._v(e._s(e.$L("\u7D27\u51D1\u7ECF\u5178")))]),t("li",{on:{click:function(n){return e.execCommand("theme","snow")}}},[e._v(e._s(e.$L("\u6E29\u67D4\u51B7\u5149")))]),t("li",{on:{click:function(n){return e.execCommand("theme","snow-compact")}}},[e._v(e._s(e.$L("\u7D27\u51D1\u51B7\u5149")))]),t("li",{on:{click:function(n){return e.execCommand("theme","tianpan")}}},[e._v(e._s(e.$L("\u7ECF\u5178\u5929\u76D8")))]),t("li",{on:{click:function(n){return e.execCommand("theme","tianpan-compact")}}},[e._v(e._s(e.$L("\u7D27\u51D1\u5929\u76D8")))])])])]):e._e(),t("ETooltip",{attrs:{placement:"top",effect:"light"}},[t("div",[t("i",{staticClass:"ft icon",attrs:{title:e.$L("\u6298\u53E0")}},[e._v("\uE779")])]),t("div",{attrs:{slot:"content"},slot:"content"},[t("ul",{staticClass:"minder-editor-quickul"},[t("li",{on:{click:function(n){return e.execCommand("ExpandToLevel",1)}}},[e._v(e._s(e.$L("\u5C55\u5F00\u5230\u4E00\u7EA7\u8282\u70B9")))]),t("li",{on:{click:function(n){return e.execCommand("ExpandToLevel",2)}}},[e._v(e._s(e.$L("\u5C55\u5F00\u5230\u4E8C\u7EA7\u8282\u70B9")))]),t("li",{on:{click:function(n){return e.execCommand("ExpandToLevel",3)}}},[e._v(e._s(e.$L("\u5C55\u5F00\u5230\u4E09\u7EA7\u8282\u70B9")))]),t("li",{on:{click:function(n){return e.execCommand("ExpandToLevel",4)}}},[e._v(e._s(e.$L("\u5C55\u5F00\u5230\u56DB\u7EA7\u8282\u70B9")))]),t("li",{on:{click:function(n){return e.execCommand("ExpandToLevel",5)}}},[e._v(e._s(e.$L("\u5C55\u5F00\u5230\u4E94\u7EA7\u8282\u70B9")))]),t("li",{on:{click:function(n){return e.execCommand("ExpandToLevel",99)}}},[e._v(e._s(e.$L("\u5C55\u5F00\u5168\u90E8\u8282\u70B9")))])])])]),t("ETooltip",{attrs:{placement:"top",content:e.$L("\u5C45\u4E2D")}},[t("div",{on:{click:function(n){return e.execCommand("goCenter")}}},[t("i",{staticClass:"ft icon"},[e._v("\uE61F")])])]),t("ETooltip",{attrs:{placement:"top",content:e.$L("\u79FB\u52A8")}},[t("div",{on:{click:e.onHand}},[t("i",{staticClass:"ft icon",class:{active:e.isHand}},[e._v("\uE6CF")])])])],1),t("div",{staticClass:"minder-content"},[t("IFrame",{ref:"frame",staticClass:"minder-iframe",attrs:{src:e.url},on:{"on-message":e.onMessage}}),e.loadIng?t("div",{staticClass:"minder-loading"},[t("Loading")],1):e._e()],1)])},r=[];const l={name:"mind-editor",components:{IFrame:o},props:{value:{type:Object,default:function(){return{}}},readOnly:{type:Boolean,default:!1}},data(){return{loadIng:!0,isHand:this.readOnly,zoom:100,backup:null}},mounted(){window.addEventListener("message",this.handleMessage)},beforeDestroy(){window.removeEventListener("message",this.handleMessage)},methods:{onMessage(e){if(e.app==="minder")switch(e.action){case"ready":this.loadIng=!1,this.rendData();break;case"content":this.backup=JSON.stringify(e.content),this.$emit("input",e.content);break;case"save":this.$emit("saveData");break}},onHand(){if(this.readOnly){this.execCommand("removeAllSelected");return}this.execCommand("Hand"),this.isHand=!this.isHand},execCommand(e,i){this.$refs.frame.postMessage({app:"minder",action:"command",command:e,value:i})},exportHandle(e,i){this.$refs.frame.postMessage({app:"minder",action:"export",type:e,name:i||this.value.root.data.text||this.$L("\u65E0\u6807\u9898")})},rendData(){this.loadIng||this.backup!==JSON.stringify(this.value)&&this.$refs.frame.postMessage({app:"minder",action:"setContent",content:this.value})}},computed:{url(){return $A.apiUrl(`../minder/index.html?type=manual&readonly=${this.readOnly?"yes":"no"}`)}},watch:{value:{handler:function(e){(typeof e!="object"||e===null)&&(e={root:e,theme:"fresh-blue",template:"default"}),(typeof e.root!="object"||e.root===null||e.root.length==0)&&(e.root={data:{id:$A.randomString(12),text:this.$L("\u9ED8\u8BA4\u8282\u70B9")},children:[]}),typeof e.theme!="string"&&(e.theme="fresh-blue"),typeof e.template!="string"&&(e.template="default"),this.rendData()},deep:!0,immediate:!0},zoom(e){this.execCommand("Zoom",e)}}},a={};var m=s(l,c,r,!1,d,"e160012c",null,null);function d(e){for(let i in a)this[i]=a[i]}var f=function(){return m.exports}();export{f as default}; +import{I as o}from"./IFrame.194f5146.js";import{n as s}from"./app.2163cd94.js";var c=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"minder-editor-container"},[t("div",{staticClass:"quickbar"},[t("ETooltip",{attrs:{placement:"top",effect:"light"}},[t("div",[t("i",{staticClass:"ft icon",attrs:{title:e.$L("\u7F29\u653E")}},[e._v("\uE7B3")])]),t("div",{staticClass:"minder-editor-slider",attrs:{slot:"content"},slot:"content"},[t("Slider",{attrs:{min:10,max:300},model:{value:e.zoom,callback:function(n){e.zoom=n},expression:"zoom"}})],1)]),e.readOnly!==!0?t("ETooltip",{attrs:{placement:"top",effect:"light"}},[t("div",[t("i",{staticClass:"ft icon",attrs:{title:e.$L("\u56FE\u5F62")}},[e._v("\uE621")])]),t("div",{attrs:{slot:"content"},slot:"content"},[t("ul",{staticClass:"minder-editor-quickul mold"},[t("li",{on:{click:function(n){return e.execCommand("template","default")}}},[t("span",{staticClass:"default"})]),t("li",{on:{click:function(n){return e.execCommand("template","structure")}}},[t("span",{staticClass:"structure"})]),t("li",{on:{click:function(n){return e.execCommand("template","filetree")}}},[t("span",{staticClass:"filetree"})]),t("li",{on:{click:function(n){return e.execCommand("template","right")}}},[t("span",{staticClass:"right"})]),t("li",{on:{click:function(n){return e.execCommand("template","fish-bone")}}},[t("span",{staticClass:"fish-bone"})]),t("li",{on:{click:function(n){return e.execCommand("template","tianpan")}}},[t("span",{staticClass:"tianpan"})])])])]):e._e(),e.readOnly!==!0?t("ETooltip",{attrs:{placement:"top",effect:"light"}},[t("div",[t("i",{staticClass:"ft icon",attrs:{title:e.$L("\u6837\u5F0F")}},[e._v("\uE678")])]),t("div",{attrs:{slot:"content"},slot:"content"},[t("ul",{staticClass:"minder-editor-quickul"},[t("li",{on:{click:function(n){return e.execCommand("theme","fresh-blue")}}},[e._v(e._s(e.$L("\u5929\u7A7A\u84DD")))]),t("li",{on:{click:function(n){return e.execCommand("theme","wire")}}},[e._v(e._s(e.$L("\u7EBF\u6846")))]),t("li",{on:{click:function(n){return e.execCommand("theme","fish")}}},[e._v(e._s(e.$L("\u9C7C\u9AA8\u56FE")))]),t("li",{on:{click:function(n){return e.execCommand("theme","classic")}}},[e._v(e._s(e.$L("\u8111\u56FE\u7ECF\u5178")))]),t("li",{on:{click:function(n){return e.execCommand("theme","classic-compact")}}},[e._v(e._s(e.$L("\u7D27\u51D1\u7ECF\u5178")))]),t("li",{on:{click:function(n){return e.execCommand("theme","snow")}}},[e._v(e._s(e.$L("\u6E29\u67D4\u51B7\u5149")))]),t("li",{on:{click:function(n){return e.execCommand("theme","snow-compact")}}},[e._v(e._s(e.$L("\u7D27\u51D1\u51B7\u5149")))]),t("li",{on:{click:function(n){return e.execCommand("theme","tianpan")}}},[e._v(e._s(e.$L("\u7ECF\u5178\u5929\u76D8")))]),t("li",{on:{click:function(n){return e.execCommand("theme","tianpan-compact")}}},[e._v(e._s(e.$L("\u7D27\u51D1\u5929\u76D8")))])])])]):e._e(),t("ETooltip",{attrs:{placement:"top",effect:"light"}},[t("div",[t("i",{staticClass:"ft icon",attrs:{title:e.$L("\u6298\u53E0")}},[e._v("\uE779")])]),t("div",{attrs:{slot:"content"},slot:"content"},[t("ul",{staticClass:"minder-editor-quickul"},[t("li",{on:{click:function(n){return e.execCommand("ExpandToLevel",1)}}},[e._v(e._s(e.$L("\u5C55\u5F00\u5230\u4E00\u7EA7\u8282\u70B9")))]),t("li",{on:{click:function(n){return e.execCommand("ExpandToLevel",2)}}},[e._v(e._s(e.$L("\u5C55\u5F00\u5230\u4E8C\u7EA7\u8282\u70B9")))]),t("li",{on:{click:function(n){return e.execCommand("ExpandToLevel",3)}}},[e._v(e._s(e.$L("\u5C55\u5F00\u5230\u4E09\u7EA7\u8282\u70B9")))]),t("li",{on:{click:function(n){return e.execCommand("ExpandToLevel",4)}}},[e._v(e._s(e.$L("\u5C55\u5F00\u5230\u56DB\u7EA7\u8282\u70B9")))]),t("li",{on:{click:function(n){return e.execCommand("ExpandToLevel",5)}}},[e._v(e._s(e.$L("\u5C55\u5F00\u5230\u4E94\u7EA7\u8282\u70B9")))]),t("li",{on:{click:function(n){return e.execCommand("ExpandToLevel",99)}}},[e._v(e._s(e.$L("\u5C55\u5F00\u5168\u90E8\u8282\u70B9")))])])])]),t("ETooltip",{attrs:{placement:"top",content:e.$L("\u5C45\u4E2D")}},[t("div",{on:{click:function(n){return e.execCommand("goCenter")}}},[t("i",{staticClass:"ft icon"},[e._v("\uE61F")])])]),t("ETooltip",{attrs:{placement:"top",content:e.$L("\u79FB\u52A8")}},[t("div",{on:{click:e.onHand}},[t("i",{staticClass:"ft icon",class:{active:e.isHand}},[e._v("\uE6CF")])])])],1),t("div",{staticClass:"minder-content"},[t("IFrame",{ref:"frame",staticClass:"minder-iframe",attrs:{src:e.url},on:{"on-message":e.onMessage}}),e.loadIng?t("div",{staticClass:"minder-loading"},[t("Loading")],1):e._e()],1)])},r=[];const l={name:"mind-editor",components:{IFrame:o},props:{value:{default:function(){return{}}},readOnly:{type:Boolean,default:!1}},data(){return{loadIng:!0,isHand:this.readOnly,zoom:100,backup:null}},mounted(){window.addEventListener("message",this.handleMessage)},beforeDestroy(){window.removeEventListener("message",this.handleMessage)},methods:{onMessage(e){if(e.app==="minder")switch(e.action){case"ready":this.loadIng=!1,this.rendData();break;case"content":this.backup=JSON.stringify(e.content),this.$emit("input",e.content);break;case"save":this.$emit("saveData");break}},onHand(){if(this.readOnly){this.execCommand("removeAllSelected");return}this.execCommand("Hand"),this.isHand=!this.isHand},execCommand(e,i){this.$refs.frame.postMessage({app:"minder",action:"command",command:e,value:i})},exportHandle(e,i){this.$refs.frame.postMessage({app:"minder",action:"export",type:e,name:i||this.value.root.data.text||this.$L("\u65E0\u6807\u9898")})},rendData(){this.loadIng||this.backup!==JSON.stringify(this.value)&&this.$refs.frame.postMessage({app:"minder",action:"setContent",content:this.value})}},computed:{url(){return $A.apiUrl(`../minder/index.html?type=manual&readonly=${this.readOnly?"yes":"no"}`)}},watch:{value:{handler:function(e){(typeof e!="object"||e===null)&&(e={root:e,theme:"fresh-blue",template:"default"}),(typeof e.root!="object"||e.root===null||e.root.length==0)&&(e.root={data:{id:$A.randomString(12),text:this.$L("\u9ED8\u8BA4\u8282\u70B9")},children:[]}),typeof e.theme!="string"&&(e.theme="fresh-blue"),typeof e.template!="string"&&(e.template="default"),this.rendData()},deep:!0,immediate:!0},zoom(e){this.execCommand("Zoom",e)}}},a={};var m=s(l,c,r,!1,d,"0cf31727",null,null);function d(e){for(let i in a)this[i]=a[i]}var f=function(){return m.exports}();export{f as default}; diff --git a/public/js/build/Minder.f2273bdb.css b/public/js/build/Minder.f052977b.css similarity index 95% rename from public/js/build/Minder.f2273bdb.css rename to public/js/build/Minder.f052977b.css index 0825e4eba..71c149f35 100644 --- a/public/js/build/Minder.f2273bdb.css +++ b/public/js/build/Minder.f052977b.css @@ -1 +1 @@ -.basebtn[data-v-e160012c]{color:#fff;background-color:#409eff;display:inline-block;line-height:1;white-space:nowrap;cursor:pointer;border:1px solid #dcdfe6;-webkit-appearance:none;text-align:center;box-sizing:border-box;outline:none;margin:0;transition:.1s;font-weight:500;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;padding:8px 12px;font-size:14px;border-radius:4px}.baseSelect[data-v-e160012c]{height:32px}.baseSelect option[data-v-e160012c]{min-height:1.5em}.quickbar[data-v-e160012c]{position:fixed;left:20px;bottom:20px;height:34px;border-radius:3px;box-shadow:3px 3px 10px #0003;background-color:#fff;color:#666;z-index:10;display:flex;padding:0 6px;align-items:center}.quickbar i[data-v-e160012c]{font-size:22px;width:34px;height:34px;line-height:34px;display:block;text-align:center;transform:scale(1);cursor:pointer;padding:0;color:#666;font-style:normal}.quickbar i[data-v-e160012c]:hover{color:#232323}.quickbar i.active[data-v-e160012c]{color:#0285d7}.minder-content[data-v-e160012c]{position:absolute;top:0;left:0;width:100%;height:100%}.minder-content .minder-iframe[data-v-e160012c]{position:absolute;top:0;left:0;width:100%;height:100%;background:0 0;border:0;float:none;margin:-1px 0 0;max-width:none;outline:0;padding:0}.minder-content .minder-loading[data-v-e160012c]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.minder-editor-quickul li{list-style:none;cursor:pointer;padding:8px 0}.minder-editor-quickul li:hover{color:#0285d7}.minder-editor-quickul.mold span{display:block;width:30px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfQAAAAoCAYAAAAIXQhqAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKTWlDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVN3WJP3Fj7f92UPVkLY8LGXbIEAIiOsCMgQWaIQkgBhhBASQMWFiApWFBURnEhVxILVCkidiOKgKLhnQYqIWotVXDjuH9yntX167+3t+9f7vOec5/zOec8PgBESJpHmomoAOVKFPDrYH49PSMTJvYACFUjgBCAQ5svCZwXFAADwA3l4fnSwP/wBr28AAgBw1S4kEsfh/4O6UCZXACCRAOAiEucLAZBSAMguVMgUAMgYALBTs2QKAJQAAGx5fEIiAKoNAOz0ST4FANipk9wXANiiHKkIAI0BAJkoRyQCQLsAYFWBUiwCwMIAoKxAIi4EwK4BgFm2MkcCgL0FAHaOWJAPQGAAgJlCLMwAIDgCAEMeE80DIEwDoDDSv+CpX3CFuEgBAMDLlc2XS9IzFLiV0Bp38vDg4iHiwmyxQmEXKRBmCeQinJebIxNI5wNMzgwAABr50cH+OD+Q5+bk4eZm52zv9MWi/mvwbyI+IfHf/ryMAgQAEE7P79pf5eXWA3DHAbB1v2upWwDaVgBo3/ldM9sJoFoK0Hr5i3k4/EAenqFQyDwdHAoLC+0lYqG9MOOLPv8z4W/gi372/EAe/tt68ABxmkCZrcCjg/1xYW52rlKO58sEQjFu9+cj/seFf/2OKdHiNLFcLBWK8ViJuFAiTcd5uVKRRCHJleIS6X8y8R+W/QmTdw0ArIZPwE62B7XLbMB+7gECiw5Y0nYAQH7zLYwaC5EAEGc0Mnn3AACTv/mPQCsBAM2XpOMAALzoGFyolBdMxggAAESggSqwQQcMwRSswA6cwR28wBcCYQZEQAwkwDwQQgbkgBwKoRiWQRlUwDrYBLWwAxqgEZrhELTBMTgN5+ASXIHrcBcGYBiewhi8hgkEQcgIE2EhOogRYo7YIs4IF5mOBCJhSDSSgKQg6YgUUSLFyHKkAqlCapFdSCPyLXIUOY1cQPqQ28ggMor8irxHMZSBslED1AJ1QLmoHxqKxqBz0XQ0D12AlqJr0Rq0Hj2AtqKn0UvodXQAfYqOY4DRMQ5mjNlhXIyHRWCJWBomxxZj5Vg1Vo81Yx1YN3YVG8CeYe8IJAKLgBPsCF6EEMJsgpCQR1hMWEOoJewjtBK6CFcJg4Qxwicik6hPtCV6EvnEeGI6sZBYRqwm7iEeIZ4lXicOE1+TSCQOyZLkTgohJZAySQtJa0jbSC2kU6Q+0hBpnEwm65Btyd7kCLKArCCXkbeQD5BPkvvJw+S3FDrFiOJMCaIkUqSUEko1ZT/lBKWfMkKZoKpRzame1AiqiDqfWkltoHZQL1OHqRM0dZolzZsWQ8ukLaPV0JppZ2n3aC/pdLoJ3YMeRZfQl9Jr6Afp5+mD9HcMDYYNg8dIYigZaxl7GacYtxkvmUymBdOXmchUMNcyG5lnmA+Yb1VYKvYqfBWRyhKVOpVWlX6V56pUVXNVP9V5qgtUq1UPq15WfaZGVbNQ46kJ1Bar1akdVbupNq7OUndSj1DPUV+jvl/9gvpjDbKGhUaghkijVGO3xhmNIRbGMmXxWELWclYD6yxrmE1iW7L57Ex2Bfsbdi97TFNDc6pmrGaRZp3mcc0BDsax4PA52ZxKziHODc57LQMtPy2x1mqtZq1+rTfaetq+2mLtcu0W7eva73VwnUCdLJ31Om0693UJuja6UbqFutt1z+o+02PreekJ9cr1Dund0Uf1bfSj9Rfq79bv0R83MDQINpAZbDE4Y/DMkGPoa5hpuNHwhOGoEctoupHEaKPRSaMnuCbuh2fjNXgXPmasbxxirDTeZdxrPGFiaTLbpMSkxeS+Kc2Ua5pmutG003TMzMgs3KzYrMnsjjnVnGueYb7ZvNv8jYWlRZzFSos2i8eW2pZ8ywWWTZb3rJhWPlZ5VvVW16xJ1lzrLOtt1ldsUBtXmwybOpvLtqitm63Edptt3xTiFI8p0in1U27aMez87ArsmuwG7Tn2YfYl9m32zx3MHBId1jt0O3xydHXMdmxwvOuk4TTDqcSpw+lXZxtnoXOd8zUXpkuQyxKXdpcXU22niqdun3rLleUa7rrStdP1o5u7m9yt2W3U3cw9xX2r+00umxvJXcM970H08PdY4nHM452nm6fC85DnL152Xlle+70eT7OcJp7WMG3I28Rb4L3Le2A6Pj1l+s7pAz7GPgKfep+Hvqa+It89viN+1n6Zfgf8nvs7+sv9j/i/4XnyFvFOBWABwQHlAb2BGoGzA2sDHwSZBKUHNQWNBbsGLww+FUIMCQ1ZH3KTb8AX8hv5YzPcZyya0RXKCJ0VWhv6MMwmTB7WEY6GzwjfEH5vpvlM6cy2CIjgR2yIuB9pGZkX+X0UKSoyqi7qUbRTdHF09yzWrORZ+2e9jvGPqYy5O9tqtnJ2Z6xqbFJsY+ybuIC4qriBeIf4RfGXEnQTJAntieTE2MQ9ieNzAudsmjOc5JpUlnRjruXcorkX5unOy553PFk1WZB8OIWYEpeyP+WDIEJQLxhP5aduTR0T8oSbhU9FvqKNolGxt7hKPJLmnVaV9jjdO31D+miGT0Z1xjMJT1IreZEZkrkj801WRNberM/ZcdktOZSclJyjUg1plrQr1zC3KLdPZisrkw3keeZtyhuTh8r35CP5c/PbFWyFTNGjtFKuUA4WTC+oK3hbGFt4uEi9SFrUM99m/ur5IwuCFny9kLBQuLCz2Lh4WfHgIr9FuxYji1MXdy4xXVK6ZHhp8NJ9y2jLspb9UOJYUlXyannc8o5Sg9KlpUMrglc0lamUycturvRauWMVYZVkVe9ql9VbVn8qF5VfrHCsqK74sEa45uJXTl/VfPV5bdra3kq3yu3rSOuk626s91m/r0q9akHV0IbwDa0b8Y3lG19tSt50oXpq9Y7NtM3KzQM1YTXtW8y2rNvyoTaj9nqdf13LVv2tq7e+2Sba1r/dd3vzDoMdFTve75TsvLUreFdrvUV99W7S7oLdjxpiG7q/5n7duEd3T8Wej3ulewf2Re/ranRvbNyvv7+yCW1SNo0eSDpw5ZuAb9qb7Zp3tXBaKg7CQeXBJ9+mfHvjUOihzsPcw83fmX+39QjrSHkr0jq/dawto22gPaG97+iMo50dXh1Hvrf/fu8x42N1xzWPV56gnSg98fnkgpPjp2Snnp1OPz3Umdx590z8mWtdUV29Z0PPnj8XdO5Mt1/3yfPe549d8Lxw9CL3Ytslt0utPa49R35w/eFIr1tv62X3y+1XPK509E3rO9Hv03/6asDVc9f41y5dn3m978bsG7duJt0cuCW69fh29u0XdwruTNxdeo94r/y+2v3qB/oP6n+0/rFlwG3g+GDAYM/DWQ/vDgmHnv6U/9OH4dJHzEfVI0YjjY+dHx8bDRq98mTOk+GnsqcTz8p+Vv9563Or59/94vtLz1j82PAL+YvPv655qfNy76uprzrHI8cfvM55PfGm/K3O233vuO+638e9H5ko/ED+UPPR+mPHp9BP9z7nfP78L/eE8/sl0p8zAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAABDnSURBVHja7J17cFRVnse/5z6684TmEUAYJTAQmFFCsqCAqAQJyOjOEBTHstqR0FqjlqMDfww2NVMTcKbW1MzUBMqdVXbXTtw1s7MLG0B3NqxEkigvgUgSghAFDA4RHwRCXpDuvvfsH/c0JiHpdHdu0jfN71PV1Unf0+fec/re8z2/c37ndxjnHARBEARBDG8kqgKCIAiCIEEnCIIgCMICKFQFBBH7PPHUhj6PaZoODg5d57Cp/TYJNgDxADoBXAvjEuI0TXcD/Mm4OPsUTdO9nZ3eKkWRX2aM7Q41k7feeIV+TILoT9CfeGqDA0ABgNwI8ikCsK7Yk98c7hedLvdNdV6ziZVyUJ0MDib6yNg0TX/W7/c/DoY0cDTKsvy2osgFAJr6+7KmaXkjRya7f7D0XmSkz0Bbe4etvPLwggOHa4rBeQ5j7ANqjgnCPAu94HszpuY+41qFsWNHhZzBxYuXsdWzPfdk/VkAWBPBNUTtvBE2+OjyvTUW+A1jpRym1kmU7qmYbSc0Tfv9iBFJL963cC7Spt2Gxgtfj654/+isL7+6OEdR5LUAZgFYBWAigPGibeEALnHOv5AkacmjK5dhSda865mmTZuM9qvXRld9dGKtzabuE+kJgjBB0MNuAAFg7NhReMa1Cmtf+l2u0+WuAbCz2JPfEIIVlQogx4zzRtj45g6w7iI9r9nESjkGYpFnAXAAyDDrXiZB72blL7Gp6vOrnStw97zZAIA7Acz6/nT88dV/W37pcsteWZY6AHwG4FMAewHoAHwAdL9fWzJ+/Niku+bO6pavqipYOC8DRz+qmw8gCUAr1TZBmCPoZjAbQJ7T5d6JPoYtuwyH5gDYST8BEYGABzqDq4WIVwNoBlBJtWM+Pp8/K21aqjyvhyB/d+qtyMz4Pna/+8FFWbY/KsT8RiuboR7AUvQy/M85Bzj8ogNAEMQA6OrlXrTVsx0XL14OKwMxTAkARcWe/DUApghrqVyId0/KxfEpIv2Azxth2YsGWHdFFvkNY6UcoQh5htPl3gHgmOg8bgIwqtiTn1nsyV9c7MnfWOzJ3xjFe2rYonNu03Rd7fWYrifHJ8RBlm9cFJOclADO+UUAn6CPIXNFluubmi43HzpyvNvnXq8f+z+sBmPsOIB2ao4JwjwLfd3J+rOB4cZIRGEdAAirfKXT5T4GIC/wuWiQC0SalWafNwIC3xvq85pNrJQjmJA7xL2UC2ALgDX9OK1F654alp16n8+/ymZTn0xMiE9ubWl7Jy7O/ioML3YAgKqqxxoaGnG+8St8Z9L461/saL+Kuo8/haIoNcFOwBir1zTtT9t3vvvL1rZ2ZKbPRGt7B8orj6D2eL1PVZW5AB4H8B/UJBNE5LCAFyxjzOxGOBXGnNqUYk9+Q8//h4GI8GJPPhvuP/BwL4fT5c4AUAhjSH3NcLh3+ijDDgCpQZI1A1hc7MmvNjOPwPPd17I1r8+3fPq0ydsfW7k8MSHRjtI9+3HgYPVvJEnKY+y6xZ3i8/lLZ89Km7Nq5TLc+p0JuNjUjP8prcQH+6u+YYwtY4xV91MNdk3Tf8E5X22326bpun7N6/UdVhQ5nzE2D8B6AE/1J+q0bI0gQrPQTUWIeBGAnwuL5+cwhuUbqNqJMISwHMAWMZQ+XCl4eEV26sM/WtJngpK333OU7CorALB4MPLQNO2GTruuc6ZI8upHVmQnps+aDgBYns1x5GjdU51e72uKLF8Q37mmqsq1mrpPGs+cPZ/icCTb2to60NzSWqPI8oYQxBwAOmVZ+i3n/J99Pv8ExtCpqsrfAHQAKIXhFFcI4DwAWsJGEBEw2JHi3oThvATx/iZVORGimDuEmK8b5mIOAFnLsxcGTSCOZw1mHpzzbi+Acx06s6nfTp3bbDbYbGqb3+9v0791YnsRwAhVURZ1XL225HzjV0+2tLb9QFWUbMZYaTgVwRj7WpJYLWOsXoh5gJcA7APwFoylbwRBWMVCF1Z6hdPldjhd7lwAjmJPfoUFhIKbnTYaQ9qxUo4glMNYAlkUYWeAAst0QZZlcM57Wul2v1/DO6XvY8SIRNhtNry/7yja2jt22FS1TTLS3gLgOQC/BnBGlqUzsiztG4RL1AA8C6AKwC8BPE/NM0FYSNAFFTAcmiqsUmgzhSscYaVyhHwtG0X5Il0LbrXAMhW7y/ZnBRsu3122H/08I2bk0c1YBvCyIsvNx6o/fvr0mYbVNlVNbLrUsldR5d9JjAXuh8dgzM2/NQQ//WkArwD4BwBvAPiImmiCsJag14CG24nQxTwVhr/F4hDSpYp/M2AshQxgtcAy60p2lZWX7CpzBEnTgODe9Wbk0ZVcAOlgeEyW5ZaWlvZCzuFQFPkS694+PAQjXoQ3jPImivdIlqL9UVzbCzCG+q/BCFBDEMTNZqGHMtwaxBotQo/hVrPzu9nKEQF5MIbaq7tcVwaMueFFQsQzhNVY3UXIzln1IRNlGSXKkgvD+WtNONMJZuQBBObRkSJJ7IcANgJoAQBFkXXOcanHkPwoAJMA7Akx+wWiQzFfjAAcBLAZwIEwLjHe79dOa5q2GsCDAM4oivIXWZZeD7NTQRAk6IMlojACzQyFWJg93BorMe4tH99c3Ec5ADK7WOo5XTqGlTA83iv6yWfyVs/2SMsauCcHo3wRC7EZeXDO4fX5FnCdv+jz+5Pi4uJOqaoMJjHouuEopyhy1/R/xzmSGUMSYywB3Z3YepINY8nZ2C6fPQrgfhhrzEPpFIz0a1rxuJTRD2XddycmTRw37vSZz8e9v69qwZXWtu8qspwnOnIEQQyihW6lDULMHm6NWqz5GClHuB0/wIhX0GvnL8SOn+UCy0RbzHWdx/n92jNp01J/c+ecO5IbG7/yHjpS+4am609LktQsMQmQDac5znmcpunrOec/jYuzT9I0bZvX6wtsddqbMCcKa39sL8fGiGMH0M8QvKbpT4x2jHjoZ88+jrRpkwEA8+bOwtTUW/Hav/7n8z6f/zSAV6nZJojBFfRcE75Pm2HEPkPS8ROiv8aseyrEoC4BNhd78tdZScwBoNPbOXvK5EnrX3zOmTxh/BgAsNls6iOle/b9NSkxvpBLDAAD51zya9pGx8jkl5YvvQcZ6TPQ2toev7fy8D0fHqn9M4AfMcYO9sj+VgBzg5x+DoDbAJwMdo0+n29p5uzvXRfzAHfNvR17ym+Va49/sowEnSD6RorBMpkdxztqseZjpBxmd/yiQV6IYg4Aa0UHwDJiDgB+nzYzZczo8ULMAQAz0lIBzqfq+reuE5zz22VJevbHDz+AnL9fjNTbJmLW7dPx3NM/RvodM8b6fP61MObHu2IXr77o73jg3COTkxJv+FyWZSQkxINzPpKabIIYfAu9aICNbZGJZTJ7uDVqseZjpByxQE4E6autIuYAoKjKx2fPnT917vMLt0++7Ra0tV9FdW09mCQf4tyYX5ckBp9fS584IWVkz61ObTYVC+bNRtWxEwsAxKP7fPoFGE6Jk/s4/TmRJvg1KkrViZOns9o7riIxIf76519c+AaffdYIRVGqqMkmiL4xJZb7zRzIYzjHSh/qa3e63IUD7fiFsjbd7PvRSmv0u1Bd7MnPDMHqBWDEcvf5/I+MHu34Q0Z6WuoXF77x1X967p8Y2HpJYt7A4+/1+VdNnJCy7bd5LyApMb5bXpX7qvCPr//5b3a7bSZudJD7NYzd73pjY5BjXa91Nud8z713z0n54YOLMHaMA+cbv8b2nXtwrOZktaLIrmJP/jFqtgliEC30YHOWTpc7C0bUr8VWiBRHRJWB7AwHAOecLndWCPeR2R79O8O00jODbLJihtXugLFqpDDU4Ducc8iy9N9NTZdP7N6z/z5Zkh+029UDjLGuS8FGqIp8yzcXL3kPHz1uu3/RXdcPeL0+HPywBmL+/Govp8gHMBrGyoQAlwH8izjWv3XBWA2AJyv2Hcmvrj11R1JSgtx8pVVra+v4QFWVtTBiWhAEMZiC3g9ZXd5J0K1vtQ/aaEsozmrCiu8WJa7HOvQV4v9m9L0O3WyP/k0w1r6nhpDN5r7EXJSrSCzfLHS63IhE1Is9+c1Ol3txuKIOAIoin1JV5RRj7IAQ33kw9jJPBnA3Y6zOr2lb/6vk/15oaW0POMVhb+Vh1NbVn1NVpQC973vuBZAAYD+AP4k0deIVMoyx3aqiHL3S2pZ3+UrLSlmSXaqqHADQRk8nQURf0GeLBnf2MBO2WI+VPlTWbbhsAnDM6XJvCQijeK+GEaQkUOep6DtSnKmI808xMb+oirqgDsDPANwHIF10kH4P4KAiy7YrV9ou/WVb6U92vrN3qqZpnV6vz64o8v8yxg71klcKgD/ACCjzgHjeB8JFRZZ9kOU6AO9SM00Q1rLQ1wmrb1gRq7HS+yGq69XFtrtbYAxLZwZL10U4KnrUtSUDywyiqB+LUNQ7YQR86bm23CvL0kbO+eter288Y/CqqjITgBtGcJ9SGLECJCHiS2DEYc9CCM5vIRAHYDmAt6mJJgiLCLqYP28WjVdeiPOfhEVHIoawI7XR6XKviFCkAAt79Pexpr0wMNUgaIbhc1IdRh65Yn6+Wx74dloibBhjXzKGL8W/JwGUwfAluAdGmFcNQD2Mofv3TKymOTA85v9KTyhBWMdCXw3DoQjifTUsMo9+E8dKDzoK4XS5Cy1i3S4G8JnT5a4M13o1O7CMyRQ8vCI7NdiuaSVvv+co2VVWgL43qDEjj0hoBfDv4jWY/BRA40A6IwRxUwv6ICz1SRV5BeYet4gGepMYLh2U84bTsN5ssdKHk3XbY444tdiTvzFGnrms5dkLgyZYnr0QJbvKsgY5j6jDOR/HOSYwBi9j7HMYS+HSYMR+Xy86EARBRGChmy1IO2B4/DaIBrrB6XJvFp9nWkAIYy5WullCahXrttiTXy1EvdDpci+CsdSrgR7bYY9d0/RfcM5X2+22abqud3q9vsOKIucxxh4H8OUQjAIQREwLuimCJCzuwNKjntbaJgBZTpd7h2icm2NFCIlBF/U8CO930VHsc1TG4oGOKnaX7c8KNly+u2w/EHxqyow8ooWkafqvRoxI/NUD2QuRmT4Tre0d9vLKI/d+eKRmBwCdMbYWQBPd/QQRuaAPGOHYkwNjvnxxb9afaJwLYAy/74xi2YtMnisusrpndYi/oeXEUOS3zulyvymEPXDv7AJQ0cv5rDz9sa5kV1l5ya4yR5A0DQg+dWFGHlGBcz5Dktjzq3KWYen9869/PnP6FFy7dm1k1bGPa202dRs1zQQxMEEfqCBVwIjktCnYsGhgSNfpcm8S4l+x1bM9KwpCSLHSe8eyYii8vlcK/4wcGN7VO5wudzUMr+5KkdSyoz6iDKOGKo+33njFUg2OpmmzxqWMGTX/zp6x4hXcPT8TRz86MQI3bv5CEESYgj5gQQrHMhOiv9npchedrD9bMNRCaPZcscU9q8PB8lMggXtHvALLIx0wAswQFoZzIde97B3BjB1cbQBkqimCGICgR0uQYkgIhyXDKOBNsHuoQvy5U5RpcixMf8Rkg6PIdU1Nzc2Hjx53LMmad/1zn8+PA4eqwcAOgcK8EsSALXTiJqO3SHgWWoc+EGirWIvCGDuladpr23a8u6Gt7Soy0megrb0D5ZWHUVNbf1lVlc3oPVY8QRD9PV9mbJ9KxJTF7sBNuhVuLBJ4vp0uN7o+61F+3uM0Td8A8J/ExdmnaJru6+z0VimK/DJjrDTYF63mE0AQlhR0giAIgiCGLxJVAUEQBEEMf/5/AJFbIIR0qdf/AAAAAElFTkSuQmCC) no-repeat;background-size:300px 24px;height:30px}.minder-editor-quickul.mold span.default{background-position:0 3px}.minder-editor-quickul.mold span.structure{background-position:-30px 3px}.minder-editor-quickul.mold span.filetree{background-position:-60px 3px}.minder-editor-quickul.mold span.right{background-position:-90px 3px}.minder-editor-quickul.mold span.fish-bone{background-position:-120px 3px}.minder-editor-quickul.mold span.tianpan{background-position:-150px 3px}.minder-editor-slider{width:200px;margin:0 6px} +.basebtn[data-v-0cf31727]{color:#fff;background-color:#409eff;display:inline-block;line-height:1;white-space:nowrap;cursor:pointer;border:1px solid #dcdfe6;-webkit-appearance:none;text-align:center;box-sizing:border-box;outline:none;margin:0;transition:.1s;font-weight:500;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;padding:8px 12px;font-size:14px;border-radius:4px}.baseSelect[data-v-0cf31727]{height:32px}.baseSelect option[data-v-0cf31727]{min-height:1.5em}.quickbar[data-v-0cf31727]{position:fixed;left:20px;bottom:20px;height:34px;border-radius:3px;box-shadow:3px 3px 10px #0003;background-color:#fff;color:#666;z-index:10;display:flex;padding:0 6px;align-items:center}.quickbar i[data-v-0cf31727]{font-size:22px;width:34px;height:34px;line-height:34px;display:block;text-align:center;transform:scale(1);cursor:pointer;padding:0;color:#666;font-style:normal}.quickbar i[data-v-0cf31727]:hover{color:#232323}.quickbar i.active[data-v-0cf31727]{color:#0285d7}.minder-content[data-v-0cf31727]{position:absolute;top:0;left:0;width:100%;height:100%}.minder-content .minder-iframe[data-v-0cf31727]{position:absolute;top:0;left:0;width:100%;height:100%;background:0 0;border:0;float:none;margin:-1px 0 0;max-width:none;outline:0;padding:0}.minder-content .minder-loading[data-v-0cf31727]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.minder-editor-quickul li{list-style:none;cursor:pointer;padding:8px 0}.minder-editor-quickul li:hover{color:#0285d7}.minder-editor-quickul.mold span{display:block;width:30px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfQAAAAoCAYAAAAIXQhqAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKTWlDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVN3WJP3Fj7f92UPVkLY8LGXbIEAIiOsCMgQWaIQkgBhhBASQMWFiApWFBURnEhVxILVCkidiOKgKLhnQYqIWotVXDjuH9yntX167+3t+9f7vOec5/zOec8PgBESJpHmomoAOVKFPDrYH49PSMTJvYACFUjgBCAQ5svCZwXFAADwA3l4fnSwP/wBr28AAgBw1S4kEsfh/4O6UCZXACCRAOAiEucLAZBSAMguVMgUAMgYALBTs2QKAJQAAGx5fEIiAKoNAOz0ST4FANipk9wXANiiHKkIAI0BAJkoRyQCQLsAYFWBUiwCwMIAoKxAIi4EwK4BgFm2MkcCgL0FAHaOWJAPQGAAgJlCLMwAIDgCAEMeE80DIEwDoDDSv+CpX3CFuEgBAMDLlc2XS9IzFLiV0Bp38vDg4iHiwmyxQmEXKRBmCeQinJebIxNI5wNMzgwAABr50cH+OD+Q5+bk4eZm52zv9MWi/mvwbyI+IfHf/ryMAgQAEE7P79pf5eXWA3DHAbB1v2upWwDaVgBo3/ldM9sJoFoK0Hr5i3k4/EAenqFQyDwdHAoLC+0lYqG9MOOLPv8z4W/gi372/EAe/tt68ABxmkCZrcCjg/1xYW52rlKO58sEQjFu9+cj/seFf/2OKdHiNLFcLBWK8ViJuFAiTcd5uVKRRCHJleIS6X8y8R+W/QmTdw0ArIZPwE62B7XLbMB+7gECiw5Y0nYAQH7zLYwaC5EAEGc0Mnn3AACTv/mPQCsBAM2XpOMAALzoGFyolBdMxggAAESggSqwQQcMwRSswA6cwR28wBcCYQZEQAwkwDwQQgbkgBwKoRiWQRlUwDrYBLWwAxqgEZrhELTBMTgN5+ASXIHrcBcGYBiewhi8hgkEQcgIE2EhOogRYo7YIs4IF5mOBCJhSDSSgKQg6YgUUSLFyHKkAqlCapFdSCPyLXIUOY1cQPqQ28ggMor8irxHMZSBslED1AJ1QLmoHxqKxqBz0XQ0D12AlqJr0Rq0Hj2AtqKn0UvodXQAfYqOY4DRMQ5mjNlhXIyHRWCJWBomxxZj5Vg1Vo81Yx1YN3YVG8CeYe8IJAKLgBPsCF6EEMJsgpCQR1hMWEOoJewjtBK6CFcJg4Qxwicik6hPtCV6EvnEeGI6sZBYRqwm7iEeIZ4lXicOE1+TSCQOyZLkTgohJZAySQtJa0jbSC2kU6Q+0hBpnEwm65Btyd7kCLKArCCXkbeQD5BPkvvJw+S3FDrFiOJMCaIkUqSUEko1ZT/lBKWfMkKZoKpRzame1AiqiDqfWkltoHZQL1OHqRM0dZolzZsWQ8ukLaPV0JppZ2n3aC/pdLoJ3YMeRZfQl9Jr6Afp5+mD9HcMDYYNg8dIYigZaxl7GacYtxkvmUymBdOXmchUMNcyG5lnmA+Yb1VYKvYqfBWRyhKVOpVWlX6V56pUVXNVP9V5qgtUq1UPq15WfaZGVbNQ46kJ1Bar1akdVbupNq7OUndSj1DPUV+jvl/9gvpjDbKGhUaghkijVGO3xhmNIRbGMmXxWELWclYD6yxrmE1iW7L57Ex2Bfsbdi97TFNDc6pmrGaRZp3mcc0BDsax4PA52ZxKziHODc57LQMtPy2x1mqtZq1+rTfaetq+2mLtcu0W7eva73VwnUCdLJ31Om0693UJuja6UbqFutt1z+o+02PreekJ9cr1Dund0Uf1bfSj9Rfq79bv0R83MDQINpAZbDE4Y/DMkGPoa5hpuNHwhOGoEctoupHEaKPRSaMnuCbuh2fjNXgXPmasbxxirDTeZdxrPGFiaTLbpMSkxeS+Kc2Ua5pmutG003TMzMgs3KzYrMnsjjnVnGueYb7ZvNv8jYWlRZzFSos2i8eW2pZ8ywWWTZb3rJhWPlZ5VvVW16xJ1lzrLOtt1ldsUBtXmwybOpvLtqitm63Edptt3xTiFI8p0in1U27aMez87ArsmuwG7Tn2YfYl9m32zx3MHBId1jt0O3xydHXMdmxwvOuk4TTDqcSpw+lXZxtnoXOd8zUXpkuQyxKXdpcXU22niqdun3rLleUa7rrStdP1o5u7m9yt2W3U3cw9xX2r+00umxvJXcM970H08PdY4nHM452nm6fC85DnL152Xlle+70eT7OcJp7WMG3I28Rb4L3Le2A6Pj1l+s7pAz7GPgKfep+Hvqa+It89viN+1n6Zfgf8nvs7+sv9j/i/4XnyFvFOBWABwQHlAb2BGoGzA2sDHwSZBKUHNQWNBbsGLww+FUIMCQ1ZH3KTb8AX8hv5YzPcZyya0RXKCJ0VWhv6MMwmTB7WEY6GzwjfEH5vpvlM6cy2CIjgR2yIuB9pGZkX+X0UKSoyqi7qUbRTdHF09yzWrORZ+2e9jvGPqYy5O9tqtnJ2Z6xqbFJsY+ybuIC4qriBeIf4RfGXEnQTJAntieTE2MQ9ieNzAudsmjOc5JpUlnRjruXcorkX5unOy553PFk1WZB8OIWYEpeyP+WDIEJQLxhP5aduTR0T8oSbhU9FvqKNolGxt7hKPJLmnVaV9jjdO31D+miGT0Z1xjMJT1IreZEZkrkj801WRNberM/ZcdktOZSclJyjUg1plrQr1zC3KLdPZisrkw3keeZtyhuTh8r35CP5c/PbFWyFTNGjtFKuUA4WTC+oK3hbGFt4uEi9SFrUM99m/ur5IwuCFny9kLBQuLCz2Lh4WfHgIr9FuxYji1MXdy4xXVK6ZHhp8NJ9y2jLspb9UOJYUlXyannc8o5Sg9KlpUMrglc0lamUycturvRauWMVYZVkVe9ql9VbVn8qF5VfrHCsqK74sEa45uJXTl/VfPV5bdra3kq3yu3rSOuk626s91m/r0q9akHV0IbwDa0b8Y3lG19tSt50oXpq9Y7NtM3KzQM1YTXtW8y2rNvyoTaj9nqdf13LVv2tq7e+2Sba1r/dd3vzDoMdFTve75TsvLUreFdrvUV99W7S7oLdjxpiG7q/5n7duEd3T8Wej3ulewf2Re/ranRvbNyvv7+yCW1SNo0eSDpw5ZuAb9qb7Zp3tXBaKg7CQeXBJ9+mfHvjUOihzsPcw83fmX+39QjrSHkr0jq/dawto22gPaG97+iMo50dXh1Hvrf/fu8x42N1xzWPV56gnSg98fnkgpPjp2Snnp1OPz3Umdx590z8mWtdUV29Z0PPnj8XdO5Mt1/3yfPe549d8Lxw9CL3Ytslt0utPa49R35w/eFIr1tv62X3y+1XPK509E3rO9Hv03/6asDVc9f41y5dn3m978bsG7duJt0cuCW69fh29u0XdwruTNxdeo94r/y+2v3qB/oP6n+0/rFlwG3g+GDAYM/DWQ/vDgmHnv6U/9OH4dJHzEfVI0YjjY+dHx8bDRq98mTOk+GnsqcTz8p+Vv9563Or59/94vtLz1j82PAL+YvPv655qfNy76uprzrHI8cfvM55PfGm/K3O233vuO+638e9H5ko/ED+UPPR+mPHp9BP9z7nfP78L/eE8/sl0p8zAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAABDnSURBVHja7J17cFRVnse/5z6684TmEUAYJTAQmFFCsqCAqAQJyOjOEBTHstqR0FqjlqMDfww2NVMTcKbW1MzUBMqdVXbXTtw1s7MLG0B3NqxEkigvgUgSghAFDA4RHwRCXpDuvvfsH/c0JiHpdHdu0jfN71PV1Unf0+fec/re8z2/c37ndxjnHARBEARBDG8kqgKCIAiCIEEnCIIgCMICKFQFBBH7PPHUhj6PaZoODg5d57Cp/TYJNgDxADoBXAvjEuI0TXcD/Mm4OPsUTdO9nZ3eKkWRX2aM7Q41k7feeIV+TILoT9CfeGqDA0ABgNwI8ikCsK7Yk98c7hedLvdNdV6ziZVyUJ0MDib6yNg0TX/W7/c/DoY0cDTKsvy2osgFAJr6+7KmaXkjRya7f7D0XmSkz0Bbe4etvPLwggOHa4rBeQ5j7ANqjgnCPAu94HszpuY+41qFsWNHhZzBxYuXsdWzPfdk/VkAWBPBNUTtvBE2+OjyvTUW+A1jpRym1kmU7qmYbSc0Tfv9iBFJL963cC7Spt2Gxgtfj654/+isL7+6OEdR5LUAZgFYBWAigPGibeEALnHOv5AkacmjK5dhSda865mmTZuM9qvXRld9dGKtzabuE+kJgjBB0MNuAAFg7NhReMa1Cmtf+l2u0+WuAbCz2JPfEIIVlQogx4zzRtj45g6w7iI9r9nESjkGYpFnAXAAyDDrXiZB72blL7Gp6vOrnStw97zZAIA7Acz6/nT88dV/W37pcsteWZY6AHwG4FMAewHoAHwAdL9fWzJ+/Niku+bO6pavqipYOC8DRz+qmw8gCUAr1TZBmCPoZjAbQJ7T5d6JPoYtuwyH5gDYST8BEYGABzqDq4WIVwNoBlBJtWM+Pp8/K21aqjyvhyB/d+qtyMz4Pna/+8FFWbY/KsT8RiuboR7AUvQy/M85Bzj8ogNAEMQA6OrlXrTVsx0XL14OKwMxTAkARcWe/DUApghrqVyId0/KxfEpIv2Azxth2YsGWHdFFvkNY6UcoQh5htPl3gHgmOg8bgIwqtiTn1nsyV9c7MnfWOzJ3xjFe2rYonNu03Rd7fWYrifHJ8RBlm9cFJOclADO+UUAn6CPIXNFluubmi43HzpyvNvnXq8f+z+sBmPsOIB2ao4JwjwLfd3J+rOB4cZIRGEdAAirfKXT5T4GIC/wuWiQC0SalWafNwIC3xvq85pNrJQjmJA7xL2UC2ALgDX9OK1F654alp16n8+/ymZTn0xMiE9ubWl7Jy7O/ioML3YAgKqqxxoaGnG+8St8Z9L461/saL+Kuo8/haIoNcFOwBir1zTtT9t3vvvL1rZ2ZKbPRGt7B8orj6D2eL1PVZW5AB4H8B/UJBNE5LCAFyxjzOxGOBXGnNqUYk9+Q8//h4GI8GJPPhvuP/BwL4fT5c4AUAhjSH3NcLh3+ijDDgCpQZI1A1hc7MmvNjOPwPPd17I1r8+3fPq0ydsfW7k8MSHRjtI9+3HgYPVvJEnKY+y6xZ3i8/lLZ89Km7Nq5TLc+p0JuNjUjP8prcQH+6u+YYwtY4xV91MNdk3Tf8E5X22326bpun7N6/UdVhQ5nzE2D8B6AE/1J+q0bI0gQrPQTUWIeBGAnwuL5+cwhuUbqNqJMISwHMAWMZQ+XCl4eEV26sM/WtJngpK333OU7CorALB4MPLQNO2GTruuc6ZI8upHVmQnps+aDgBYns1x5GjdU51e72uKLF8Q37mmqsq1mrpPGs+cPZ/icCTb2to60NzSWqPI8oYQxBwAOmVZ+i3n/J99Pv8ExtCpqsrfAHQAKIXhFFcI4DwAWsJGEBEw2JHi3oThvATx/iZVORGimDuEmK8b5mIOAFnLsxcGTSCOZw1mHpzzbi+Acx06s6nfTp3bbDbYbGqb3+9v0791YnsRwAhVURZ1XL225HzjV0+2tLb9QFWUbMZYaTgVwRj7WpJYLWOsXoh5gJcA7APwFoylbwRBWMVCF1Z6hdPldjhd7lwAjmJPfoUFhIKbnTYaQ9qxUo4glMNYAlkUYWeAAst0QZZlcM57Wul2v1/DO6XvY8SIRNhtNry/7yja2jt22FS1TTLS3gLgOQC/BnBGlqUzsiztG4RL1AA8C6AKwC8BPE/NM0FYSNAFFTAcmiqsUmgzhSscYaVyhHwtG0X5Il0LbrXAMhW7y/ZnBRsu3122H/08I2bk0c1YBvCyIsvNx6o/fvr0mYbVNlVNbLrUsldR5d9JjAXuh8dgzM2/NQQ//WkArwD4BwBvAPiImmiCsJag14CG24nQxTwVhr/F4hDSpYp/M2AshQxgtcAy60p2lZWX7CpzBEnTgODe9Wbk0ZVcAOlgeEyW5ZaWlvZCzuFQFPkS694+PAQjXoQ3jPImivdIlqL9UVzbCzCG+q/BCFBDEMTNZqGHMtwaxBotQo/hVrPzu9nKEQF5MIbaq7tcVwaMueFFQsQzhNVY3UXIzln1IRNlGSXKkgvD+WtNONMJZuQBBObRkSJJ7IcANgJoAQBFkXXOcanHkPwoAJMA7Akx+wWiQzFfjAAcBLAZwIEwLjHe79dOa5q2GsCDAM4oivIXWZZeD7NTQRAk6IMlojACzQyFWJg93BorMe4tH99c3Ec5ADK7WOo5XTqGlTA83iv6yWfyVs/2SMsauCcHo3wRC7EZeXDO4fX5FnCdv+jz+5Pi4uJOqaoMJjHouuEopyhy1/R/xzmSGUMSYywB3Z3YepINY8nZ2C6fPQrgfhhrzEPpFIz0a1rxuJTRD2XddycmTRw37vSZz8e9v69qwZXWtu8qspwnOnIEQQyihW6lDULMHm6NWqz5GClHuB0/wIhX0GvnL8SOn+UCy0RbzHWdx/n92jNp01J/c+ecO5IbG7/yHjpS+4am609LktQsMQmQDac5znmcpunrOec/jYuzT9I0bZvX6wtsddqbMCcKa39sL8fGiGMH0M8QvKbpT4x2jHjoZ88+jrRpkwEA8+bOwtTUW/Hav/7n8z6f/zSAV6nZJojBFfRcE75Pm2HEPkPS8ROiv8aseyrEoC4BNhd78tdZScwBoNPbOXvK5EnrX3zOmTxh/BgAsNls6iOle/b9NSkxvpBLDAAD51zya9pGx8jkl5YvvQcZ6TPQ2toev7fy8D0fHqn9M4AfMcYO9sj+VgBzg5x+DoDbAJwMdo0+n29p5uzvXRfzAHfNvR17ym+Va49/sowEnSD6RorBMpkdxztqseZjpBxmd/yiQV6IYg4Aa0UHwDJiDgB+nzYzZczo8ULMAQAz0lIBzqfq+reuE5zz22VJevbHDz+AnL9fjNTbJmLW7dPx3NM/RvodM8b6fP61MObHu2IXr77o73jg3COTkxJv+FyWZSQkxINzPpKabIIYfAu9aICNbZGJZTJ7uDVqseZjpByxQE4E6autIuYAoKjKx2fPnT917vMLt0++7Ra0tV9FdW09mCQf4tyYX5ckBp9fS584IWVkz61ObTYVC+bNRtWxEwsAxKP7fPoFGE6Jk/s4/TmRJvg1KkrViZOns9o7riIxIf76519c+AaffdYIRVGqqMkmiL4xJZb7zRzIYzjHSh/qa3e63IUD7fiFsjbd7PvRSmv0u1Bd7MnPDMHqBWDEcvf5/I+MHu34Q0Z6WuoXF77x1X967p8Y2HpJYt7A4+/1+VdNnJCy7bd5LyApMb5bXpX7qvCPr//5b3a7bSZudJD7NYzd73pjY5BjXa91Nud8z713z0n54YOLMHaMA+cbv8b2nXtwrOZktaLIrmJP/jFqtgliEC30YHOWTpc7C0bUr8VWiBRHRJWB7AwHAOecLndWCPeR2R79O8O00jODbLJihtXugLFqpDDU4Ducc8iy9N9NTZdP7N6z/z5Zkh+029UDjLGuS8FGqIp8yzcXL3kPHz1uu3/RXdcPeL0+HPywBmL+/Govp8gHMBrGyoQAlwH8izjWv3XBWA2AJyv2Hcmvrj11R1JSgtx8pVVra+v4QFWVtTBiWhAEMZiC3g9ZXd5J0K1vtQ/aaEsozmrCiu8WJa7HOvQV4v9m9L0O3WyP/k0w1r6nhpDN5r7EXJSrSCzfLHS63IhE1Is9+c1Ol3txuKIOAIoin1JV5RRj7IAQ33kw9jJPBnA3Y6zOr2lb/6vk/15oaW0POMVhb+Vh1NbVn1NVpQC973vuBZAAYD+AP4k0deIVMoyx3aqiHL3S2pZ3+UrLSlmSXaqqHADQRk8nQURf0GeLBnf2MBO2WI+VPlTWbbhsAnDM6XJvCQijeK+GEaQkUOep6DtSnKmI808xMb+oirqgDsDPANwHIF10kH4P4KAiy7YrV9ou/WVb6U92vrN3qqZpnV6vz64o8v8yxg71klcKgD/ACCjzgHjeB8JFRZZ9kOU6AO9SM00Q1rLQ1wmrb1gRq7HS+yGq69XFtrtbYAxLZwZL10U4KnrUtSUDywyiqB+LUNQ7YQR86bm23CvL0kbO+eter288Y/CqqjITgBtGcJ9SGLECJCHiS2DEYc9CCM5vIRAHYDmAt6mJJgiLCLqYP28WjVdeiPOfhEVHIoawI7XR6XKviFCkAAt79Pexpr0wMNUgaIbhc1IdRh65Yn6+Wx74dloibBhjXzKGL8W/JwGUwfAluAdGmFcNQD2Mofv3TKymOTA85v9KTyhBWMdCXw3DoQjifTUsMo9+E8dKDzoK4XS5Cy1i3S4G8JnT5a4M13o1O7CMyRQ8vCI7NdiuaSVvv+co2VVWgL43qDEjj0hoBfDv4jWY/BRA40A6IwRxUwv6ICz1SRV5BeYet4gGepMYLh2U84bTsN5ssdKHk3XbY444tdiTvzFGnrms5dkLgyZYnr0QJbvKsgY5j6jDOR/HOSYwBi9j7HMYS+HSYMR+Xy86EARBRGChmy1IO2B4/DaIBrrB6XJvFp9nWkAIYy5WullCahXrttiTXy1EvdDpci+CsdSrgR7bYY9d0/RfcM5X2+22abqud3q9vsOKIucxxh4H8OUQjAIQREwLuimCJCzuwNKjntbaJgBZTpd7h2icm2NFCIlBF/U8CO930VHsc1TG4oGOKnaX7c8KNly+u2w/EHxqyow8ooWkafqvRoxI/NUD2QuRmT4Tre0d9vLKI/d+eKRmBwCdMbYWQBPd/QQRuaAPGOHYkwNjvnxxb9afaJwLYAy/74xi2YtMnisusrpndYi/oeXEUOS3zulyvymEPXDv7AJQ0cv5rDz9sa5kV1l5ya4yR5A0DQg+dWFGHlGBcz5Dktjzq3KWYen9869/PnP6FFy7dm1k1bGPa202dRs1zQQxMEEfqCBVwIjktCnYsGhgSNfpcm8S4l+x1bM9KwpCSLHSe8eyYii8vlcK/4wcGN7VO5wudzUMr+5KkdSyoz6iDKOGKo+33njFUg2OpmmzxqWMGTX/zp6x4hXcPT8TRz86MQI3bv5CEESYgj5gQQrHMhOiv9npchedrD9bMNRCaPZcscU9q8PB8lMggXtHvALLIx0wAswQFoZzIde97B3BjB1cbQBkqimCGICgR0uQYkgIhyXDKOBNsHuoQvy5U5RpcixMf8Rkg6PIdU1Nzc2Hjx53LMmad/1zn8+PA4eqwcAOgcK8EsSALXTiJqO3SHgWWoc+EGirWIvCGDuladpr23a8u6Gt7Soy0megrb0D5ZWHUVNbf1lVlc3oPVY8QRD9PV9mbJ9KxJTF7sBNuhVuLBJ4vp0uN7o+61F+3uM0Td8A8J/ExdmnaJru6+z0VimK/DJjrDTYF63mE0AQlhR0giAIgiCGLxJVAUEQBEEMf/5/AJFbIIR0qdf/AAAAAElFTkSuQmCC) no-repeat;background-size:300px 24px;height:30px}.minder-editor-quickul.mold span.default{background-position:0 3px}.minder-editor-quickul.mold span.structure{background-position:-30px 3px}.minder-editor-quickul.mold span.filetree{background-position:-60px 3px}.minder-editor-quickul.mold span.right{background-position:-90px 3px}.minder-editor-quickul.mold span.fish-bone{background-position:-120px 3px}.minder-editor-quickul.mold span.tianpan{background-position:-150px 3px}.minder-editor-slider{width:200px;margin:0 6px} diff --git a/public/js/build/OnlyOffice.f8fd0932.js b/public/js/build/OnlyOffice.a8be1f54.js similarity index 96% rename from public/js/build/OnlyOffice.f8fd0932.js rename to public/js/build/OnlyOffice.a8be1f54.js index 63ed45735..a8989699a 100644 --- a/public/js/build/OnlyOffice.f8fd0932.js +++ b/public/js/build/OnlyOffice.a8be1f54.js @@ -1 +1 @@ -import{m as d,n as f,l}from"./app.62942df0.js";import{I as c}from"./IFrame.e16748ae.js";var h=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"component-only-office"},[e.$A.isDesktop()?[e.loadError?i("Alert",{staticClass:"load-error",attrs:{type:"error","show-icon":""}},[e._v(e._s(e.$L("\u7EC4\u4EF6\u52A0\u8F7D\u5931\u8D25\uFF01")))]):e._e(),i("div",{staticClass:"placeholder",attrs:{id:e.id}})]:i("IFrame",{staticClass:"preview-iframe",attrs:{src:e.previewUrl},on:{"on-load":e.onFrameLoad}}),e.loading?i("div",{staticClass:"office-loading"},[i("Loading")],1):e._e()],2)},u=[];const m={name:"OnlyOffice",components:{IFrame:c},props:{id:{type:String,default:()=>"office_"+Math.round(Math.random()*1e4)},code:{type:String,default:""},historyId:{type:Number,default:0},value:{type:[Object,Array],default:function(){return{}}},readOnly:{type:Boolean,default:!1},documentKey:Function},data(){return{loading:!1,loadError:!1,docEditor:null}},beforeDestroy(){this.docEditor!==null&&(this.docEditor.destroyEditor(),this.docEditor=null)},computed:{...d(["userInfo","themeIsDark"]),fileType(){return this.getType(this.value.type)},fileName(){return this.value.name},fileUrl(){let e=this.code||this.value.id,t;return $A.leftExists(e,"msgFile_")?t=`dialog/msg/download/?msg_id=${$A.leftDelete(e,"msgFile_")}&token=${this.userToken}`:$A.leftExists(e,"taskFile_")?t=`project/task/filedown/?file_id=${$A.leftDelete(e,"taskFile_")}&token=${this.userToken}`:(t=`file/content/?id=${e}&token=${this.userToken}`,this.historyId>0&&(t+=`&history_id=${this.historyId}`)),t},previewUrl(){return $A.apiUrl(this.fileUrl)+"&down=preview"}},watch:{"value.id":{handler(e){!e||!$A.isDesktop()||(this.loading=!0,this.loadError=!1,$A.loadScript($A.apiUrl("../office/web-apps/apps/api/documents/api.js")).then(t=>{if(!this.documentKey){this.handleClose();return}const i=this.documentKey();i&&i.then?i.then(this.loadFile):this.loadFile()}).catch(t=>{this.loadError=!0}).finally(t=>{this.loading=!1}))},immediate:!0},previewUrl:{handler(){$A.isDesktop()||(this.loading=!0)},immediate:!0}},methods:{onFrameLoad(){this.loading=!1},getType(e){switch(e){case"word":return"docx";case"excel":return"xlsx";case"ppt":return"pptx"}return e},loadFile(e=""){this.docEditor!==null&&(this.docEditor.destroyEditor(),this.docEditor=null);let t=l;switch(l){case"zh-CHT":t="zh-TW";break}let i=this.code||this.value.id,a=$A.strExists(this.fileName,".")?this.fileName:this.fileName+"."+this.fileType,s=`${this.fileType}-${e||i}`;this.historyId>0&&(s+=`-${this.historyId}`);const r={document:{fileType:this.fileType,title:a,key:s,url:`http://nginx/api/${this.fileUrl}`},editorConfig:{mode:"edit",lang:t,user:{id:String(this.userInfo.userid),name:this.userInfo.nickname},customization:{uiTheme:this.themeIsDark?"theme-dark":"theme-classic-light",forcesave:!0,help:!1},callbackUrl:`http://nginx/api/file/content/office?id=${i}&token=${this.userToken}`},events:{onDocumentReady:this.onDocumentReady}};/\/hideenOfficeTitle\//.test(window.navigator.userAgent)&&(r.document.title=" "),(async y=>{if((this.readOnly||this.historyId>0)&&(r.editorConfig.mode="view",r.editorConfig.callbackUrl=null,!r.editorConfig.user.id)){let o=await $A.IDBInt("officeViewer");o||(o=$A.randNum(1e3,99999),await $A.IDBSet("officeViewer",o)),r.editorConfig.user.id="viewer_"+o,r.editorConfig.user.name="Viewer_"+o}this.$nextTick(()=>{this.docEditor=new DocsAPI.DocEditor(this.id,r)})})()},onDocumentReady(){this.$emit("on-document-ready",this.docEditor)}}},n={};var p=f(m,h,u,!1,_,"38b2d892",null,null);function _(e){for(let t in n)this[t]=n[t]}var $=function(){return p.exports}();export{$ as default}; +import{m as d,n as f,l}from"./app.2163cd94.js";import{I as c}from"./IFrame.194f5146.js";var h=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"component-only-office"},[e.$A.isDesktop()?[e.loadError?i("Alert",{staticClass:"load-error",attrs:{type:"error","show-icon":""}},[e._v(e._s(e.$L("\u7EC4\u4EF6\u52A0\u8F7D\u5931\u8D25\uFF01")))]):e._e(),i("div",{staticClass:"placeholder",attrs:{id:e.id}})]:i("IFrame",{staticClass:"preview-iframe",attrs:{src:e.previewUrl},on:{"on-load":e.onFrameLoad}}),e.loading?i("div",{staticClass:"office-loading"},[i("Loading")],1):e._e()],2)},u=[];const m={name:"OnlyOffice",components:{IFrame:c},props:{id:{type:String,default:()=>"office_"+Math.round(Math.random()*1e4)},code:{type:String,default:""},historyId:{type:Number,default:0},value:{type:[Object,Array],default:function(){return{}}},readOnly:{type:Boolean,default:!1},documentKey:Function},data(){return{loading:!1,loadError:!1,docEditor:null}},beforeDestroy(){this.docEditor!==null&&(this.docEditor.destroyEditor(),this.docEditor=null)},computed:{...d(["userInfo","themeIsDark"]),fileType(){return this.getType(this.value.type)},fileName(){return this.value.name},fileUrl(){let e=this.code||this.value.id,t;return $A.leftExists(e,"msgFile_")?t=`dialog/msg/download/?msg_id=${$A.leftDelete(e,"msgFile_")}&token=${this.userToken}`:$A.leftExists(e,"taskFile_")?t=`project/task/filedown/?file_id=${$A.leftDelete(e,"taskFile_")}&token=${this.userToken}`:(t=`file/content/?id=${e}&token=${this.userToken}`,this.historyId>0&&(t+=`&history_id=${this.historyId}`)),t},previewUrl(){return $A.apiUrl(this.fileUrl)+"&down=preview"}},watch:{"value.id":{handler(e){!e||!$A.isDesktop()||(this.loading=!0,this.loadError=!1,$A.loadScript($A.apiUrl("../office/web-apps/apps/api/documents/api.js")).then(t=>{if(!this.documentKey){this.handleClose();return}const i=this.documentKey();i&&i.then?i.then(this.loadFile):this.loadFile()}).catch(t=>{this.loadError=!0}).finally(t=>{this.loading=!1}))},immediate:!0},previewUrl:{handler(){$A.isDesktop()||(this.loading=!0)},immediate:!0}},methods:{onFrameLoad(){this.loading=!1},getType(e){switch(e){case"word":return"docx";case"excel":return"xlsx";case"ppt":return"pptx"}return e},loadFile(e=""){this.docEditor!==null&&(this.docEditor.destroyEditor(),this.docEditor=null);let t=l;switch(l){case"zh-CHT":t="zh-TW";break}let i=this.code||this.value.id,a=$A.strExists(this.fileName,".")?this.fileName:this.fileName+"."+this.fileType,s=`${this.fileType}-${e||i}`;this.historyId>0&&(s+=`-${this.historyId}`);const r={document:{fileType:this.fileType,title:a,key:s,url:`http://nginx/api/${this.fileUrl}`},editorConfig:{mode:"edit",lang:t,user:{id:String(this.userInfo.userid),name:this.userInfo.nickname},customization:{uiTheme:this.themeIsDark?"theme-dark":"theme-classic-light",forcesave:!0,help:!1},callbackUrl:`http://nginx/api/file/content/office?id=${i}&token=${this.userToken}`},events:{onDocumentReady:this.onDocumentReady}};/\/hideenOfficeTitle\//.test(window.navigator.userAgent)&&(r.document.title=" "),(async y=>{if((this.readOnly||this.historyId>0)&&(r.editorConfig.mode="view",r.editorConfig.callbackUrl=null,!r.editorConfig.user.id)){let o=await $A.IDBInt("officeViewer");o||(o=$A.randNum(1e3,99999),await $A.IDBSet("officeViewer",o)),r.editorConfig.user.id="viewer_"+o,r.editorConfig.user.name="Viewer_"+o}this.$nextTick(()=>{this.docEditor=new DocsAPI.DocEditor(this.id,r)})})()},onDocumentReady(){this.$emit("on-document-ready",this.docEditor)}}},n={};var p=f(m,h,u,!1,_,"38b2d892",null,null);function _(e){for(let t in n)this[t]=n[t]}var $=function(){return p.exports}();export{$ as default}; diff --git a/public/js/build/ProjectLog.90d0d2bf.js b/public/js/build/ProjectLog.d7bc0eef.js similarity index 98% rename from public/js/build/ProjectLog.90d0d2bf.js rename to public/js/build/ProjectLog.d7bc0eef.js index 7fafdb218..d0d871809 100644 --- a/public/js/build/ProjectLog.90d0d2bf.js +++ b/public/js/build/ProjectLog.d7bc0eef.js @@ -1 +1 @@ -import{m as p,n as c}from"./app.62942df0.js";var h=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"task-priority",style:t.myStyle},[t._t("default")],2)},m=[];const _={name:"TaskPriority",props:{color:{default:"#ffffff"},background:{default:"#7DBEEA"},backgroundColor:{default:"#7DBEEA"}},data(){return{}},computed:{...p(["themeIsDark"]),myStyle(){const{color:t,background:e,backgroundColor:s,themeIsDark:a}=this;return a?{color:s||e,borderColor:s||e,backgroundColor:"transparent"}:{color:t,borderColor:s||e,backgroundColor:s||e}}}},l={};var f=c(_,h,m,!1,g,null,null,null);function g(t){for(let e in l)this[e]=l[e]}var I=function(){return f.exports}(),v={name:"ProjectLogDetail",functional:!0,props:{render:Function,item:Object},render:(t,e)=>e.props.render(t,e.props.item)},$=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{class:["project-log",t.taskId==0?"is-drawer":""]},[s("div",{staticClass:"log-title"},[t._v(t._s(t.$L("\u9879\u76EE\u52A8\u6001")))]),s("ul",{staticClass:"logs-activity"},[t._l(t.lists,function(a){return s("li",[s("div",{staticClass:"logs-date"},[t._v(t._s(t.logDate(a)))]),s("div",{staticClass:"logs-section"},[s("Timeline",t._l(a.lists,function(r,o){return s("TimelineItem",{key:o},[s("div",{staticClass:"logs-dot",attrs:{slot:"dot"},slot:"dot"},[r.userid?s("UserAvatar",{attrs:{userid:r.userid,size:18,showName:""}}):s("div",{staticClass:"avatar-wrapper common-avatar"},[s("EAvatar",{attrs:{size:18}},[t._v("A")]),s("div",{staticClass:"avatar-name auto"},[t._v(t._s(t.$L("\u7CFB\u7EDF")))])],1)],1),t._l(r.lists,function(i){return[s("div",{staticClass:"log-summary"},[s("ProjectLogDetail",{attrs:{render:t.logDetail,item:i}}),t.operationList(i).length>0?s("span",{staticClass:"log-operation"},t._l(t.operationList(i),function(n,d){return s("Button",{key:d,attrs:{size:"small"},on:{click:function(P){return t.onOperation(n)}}},[t._v(t._s(n.button))])}),1):t._e(),s("span",{staticClass:"log-time"},[t._v(t._s(i.time.ymd)+" "+t._s(i.time.segment)+" "+t._s(i.time.hi))])],1),i.project_task?s("div",{staticClass:"log-task"},[s("em",{on:{click:function(n){return t.openTask(i.project_task)}}},[t._v(t._s(t.$L("\u5173\u8054\u4EFB\u52A1"))+": "+t._s(i.project_task.name))])]):t._e()]})],2)}),1)],1)])}),t.loadIng>0&&t.showLoad?s("li",{staticClass:"logs-loading"},[s("Loading")],1):t.hasMorePages?s("li",{staticClass:"logs-more",on:{click:t.getMore}},[t._v(t._s(t.$L("\u52A0\u8F7D\u66F4\u591A")))]):t.totalNum==0?s("li",{staticClass:"logs-none",on:{click:function(a){return t.getLists(!0)}}},[t._v(t._s(t.$L("\u6CA1\u6709\u4EFB\u4F55\u52A8\u6001")))]):t._e()],2)])},k=[];const y={name:"ProjectLog",components:{ProjectLogDetail:v},props:{projectId:{type:Number,default:0},taskId:{type:Number,default:0},showLoad:{type:Boolean,default:!0}},data(){return{loadIng:0,lists:[],listPage:1,listPageSize:20,hasMorePages:!1,totalNum:-1}},mounted(){this.getLists(!0)},computed:{},watch:{projectId(){this.lists=[],this.getLists(!0)},taskId(){this.lists=[],this.getLists(!0)},loadIng(t){this.$emit("on-load-change",t>0)}},methods:{logDate(t){return $A.formatDate("m-d")==t.ymd?t.ymd+" "+this.$L("\u4ECA\u5929"):t.key},getLists(t){t===!0&&(this.listPage=1),this.loadIng++,this.$store.dispatch("call",{url:"project/log/lists",data:{project_id:this.projectId,task_id:this.taskId,page:Math.max(this.listPage,1),pagesize:Math.max($A.runNum(this.listPageSize),10)}}).then(({data:e})=>{t===!0&&(this.lists=[]),e.data.some(s=>{let a=s.time,r=a.ymd+" "+a.week,o=this.lists.find(({key:i})=>i==r);if(o){let i=o.lists.find(({userid:n})=>n==s.userid);i?i.lists.push(s):o.lists.push({userid:s.userid,lists:[s]})}else this.lists.push({key:r,ymd:s.ymd,lists:[{userid:s.userid,lists:[s]}]})}),this.hasMorePages=e.current_page{this.lists=[],this.hasMorePages=!1,this.totalNum=0}).finally(e=>{this.loadIng--})},getMore(){!this.hasMorePages||(this.hasMorePages=!1,this.listPage++,this.getLists())},logDetail(t,{detail:e,record:s}){let a=[t("span",e)];if($A.isJson(s)){if($A.isArray(s.change)){let[r,o]=s.change;a.push(t("span",": ")),r&&r!=o?(a.push(t("span",{class:"change-value"},`${r||"-"}`)),a.push(t("span"," => ")),a.push(t("span",{class:"change-value"},`${o||"-"}`))):a.push(t("span",{class:"change-value"},o||"-"))}if(s.userid){let r=$A.isArray(s.userid)?s.userid:[s.userid],o=[];r.some(i=>{/^\d+$/.test(i)?o.push(t("UserAvatar",{props:{size:18,userid:i}})):o.push(t("span",i))}),o.length>0&&a.push(t("div",{class:"detail-user"},[t("div",{class:"detail-user-wrap"},o)]))}}return t("span",{class:"log-text"},a)},operationList({id:t,record:e}){let s=[];if(!$A.isJson(e))return s;if(this.taskId>0&&$A.isJson(e.flow)){let a=$A.getMiddle(e.flow.flow_item_name,"|");a&&s.push({id:t,button:this.$L("\u91CD\u7F6E"),content:this.$L(`\u786E\u5B9A\u91CD\u7F6E\u4E3A\u3010${a}\u3011\u5417\uFF1F`)})}return s},onOperation(t){$A.modalConfirm({content:t.content,loading:!0,onOk:()=>new Promise((e,s)=>{this.$store.dispatch("call",{url:"project/task/resetfromlog",data:{id:t.id}}).then(({data:a,msg:r})=>{e(r),this.$store.dispatch("saveTask",a),this.getLists(!0)}).catch(({msg:a})=>{s(a)})})})},openTask(t){this.$store.dispatch("openTask",t)}}},u={};var L=c(y,$,k,!1,C,null,null,null);function C(t){for(let e in u)this[e]=u[e]}var A=function(){return L.exports}();export{A as P,I as T}; +import{m as p,n as c}from"./app.2163cd94.js";var h=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"task-priority",style:t.myStyle},[t._t("default")],2)},m=[];const _={name:"TaskPriority",props:{color:{default:"#ffffff"},background:{default:"#7DBEEA"},backgroundColor:{default:"#7DBEEA"}},data(){return{}},computed:{...p(["themeIsDark"]),myStyle(){const{color:t,background:e,backgroundColor:s,themeIsDark:a}=this;return a?{color:s||e,borderColor:s||e,backgroundColor:"transparent"}:{color:t,borderColor:s||e,backgroundColor:s||e}}}},l={};var f=c(_,h,m,!1,g,null,null,null);function g(t){for(let e in l)this[e]=l[e]}var I=function(){return f.exports}(),v={name:"ProjectLogDetail",functional:!0,props:{render:Function,item:Object},render:(t,e)=>e.props.render(t,e.props.item)},$=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{class:["project-log",t.taskId==0?"is-drawer":""]},[s("div",{staticClass:"log-title"},[t._v(t._s(t.$L("\u9879\u76EE\u52A8\u6001")))]),s("ul",{staticClass:"logs-activity"},[t._l(t.lists,function(a){return s("li",[s("div",{staticClass:"logs-date"},[t._v(t._s(t.logDate(a)))]),s("div",{staticClass:"logs-section"},[s("Timeline",t._l(a.lists,function(r,o){return s("TimelineItem",{key:o},[s("div",{staticClass:"logs-dot",attrs:{slot:"dot"},slot:"dot"},[r.userid?s("UserAvatar",{attrs:{userid:r.userid,size:18,showName:""}}):s("div",{staticClass:"avatar-wrapper common-avatar"},[s("EAvatar",{attrs:{size:18}},[t._v("A")]),s("div",{staticClass:"avatar-name auto"},[t._v(t._s(t.$L("\u7CFB\u7EDF")))])],1)],1),t._l(r.lists,function(i){return[s("div",{staticClass:"log-summary"},[s("ProjectLogDetail",{attrs:{render:t.logDetail,item:i}}),t.operationList(i).length>0?s("span",{staticClass:"log-operation"},t._l(t.operationList(i),function(n,d){return s("Button",{key:d,attrs:{size:"small"},on:{click:function(P){return t.onOperation(n)}}},[t._v(t._s(n.button))])}),1):t._e(),s("span",{staticClass:"log-time"},[t._v(t._s(i.time.ymd)+" "+t._s(i.time.segment)+" "+t._s(i.time.hi))])],1),i.project_task?s("div",{staticClass:"log-task"},[s("em",{on:{click:function(n){return t.openTask(i.project_task)}}},[t._v(t._s(t.$L("\u5173\u8054\u4EFB\u52A1"))+": "+t._s(i.project_task.name))])]):t._e()]})],2)}),1)],1)])}),t.loadIng>0&&t.showLoad?s("li",{staticClass:"logs-loading"},[s("Loading")],1):t.hasMorePages?s("li",{staticClass:"logs-more",on:{click:t.getMore}},[t._v(t._s(t.$L("\u52A0\u8F7D\u66F4\u591A")))]):t.totalNum==0?s("li",{staticClass:"logs-none",on:{click:function(a){return t.getLists(!0)}}},[t._v(t._s(t.$L("\u6CA1\u6709\u4EFB\u4F55\u52A8\u6001")))]):t._e()],2)])},k=[];const y={name:"ProjectLog",components:{ProjectLogDetail:v},props:{projectId:{type:Number,default:0},taskId:{type:Number,default:0},showLoad:{type:Boolean,default:!0}},data(){return{loadIng:0,lists:[],listPage:1,listPageSize:20,hasMorePages:!1,totalNum:-1}},mounted(){this.getLists(!0)},computed:{},watch:{projectId(){this.lists=[],this.getLists(!0)},taskId(){this.lists=[],this.getLists(!0)},loadIng(t){this.$emit("on-load-change",t>0)}},methods:{logDate(t){return $A.formatDate("m-d")==t.ymd?t.ymd+" "+this.$L("\u4ECA\u5929"):t.key},getLists(t){t===!0&&(this.listPage=1),this.loadIng++,this.$store.dispatch("call",{url:"project/log/lists",data:{project_id:this.projectId,task_id:this.taskId,page:Math.max(this.listPage,1),pagesize:Math.max($A.runNum(this.listPageSize),10)}}).then(({data:e})=>{t===!0&&(this.lists=[]),e.data.some(s=>{let a=s.time,r=a.ymd+" "+a.week,o=this.lists.find(({key:i})=>i==r);if(o){let i=o.lists.find(({userid:n})=>n==s.userid);i?i.lists.push(s):o.lists.push({userid:s.userid,lists:[s]})}else this.lists.push({key:r,ymd:s.ymd,lists:[{userid:s.userid,lists:[s]}]})}),this.hasMorePages=e.current_page{this.lists=[],this.hasMorePages=!1,this.totalNum=0}).finally(e=>{this.loadIng--})},getMore(){!this.hasMorePages||(this.hasMorePages=!1,this.listPage++,this.getLists())},logDetail(t,{detail:e,record:s}){let a=[t("span",e)];if($A.isJson(s)){if($A.isArray(s.change)){let[r,o]=s.change;a.push(t("span",": ")),r&&r!=o?(a.push(t("span",{class:"change-value"},`${r||"-"}`)),a.push(t("span"," => ")),a.push(t("span",{class:"change-value"},`${o||"-"}`))):a.push(t("span",{class:"change-value"},o||"-"))}if(s.userid){let r=$A.isArray(s.userid)?s.userid:[s.userid],o=[];r.some(i=>{/^\d+$/.test(i)?o.push(t("UserAvatar",{props:{size:18,userid:i}})):o.push(t("span",i))}),o.length>0&&a.push(t("div",{class:"detail-user"},[t("div",{class:"detail-user-wrap"},o)]))}}return t("span",{class:"log-text"},a)},operationList({id:t,record:e}){let s=[];if(!$A.isJson(e))return s;if(this.taskId>0&&$A.isJson(e.flow)){let a=$A.getMiddle(e.flow.flow_item_name,"|");a&&s.push({id:t,button:this.$L("\u91CD\u7F6E"),content:this.$L(`\u786E\u5B9A\u91CD\u7F6E\u4E3A\u3010${a}\u3011\u5417\uFF1F`)})}return s},onOperation(t){$A.modalConfirm({content:t.content,loading:!0,onOk:()=>new Promise((e,s)=>{this.$store.dispatch("call",{url:"project/task/resetfromlog",data:{id:t.id}}).then(({data:a,msg:r})=>{e(r),this.$store.dispatch("saveTask",a),this.getLists(!0)}).catch(({msg:a})=>{s(a)})})})},openTask(t){this.$store.dispatch("openTask",t)}}},u={};var L=c(y,$,k,!1,C,null,null,null);function C(t){for(let e in u)this[e]=u[e]}var A=function(){return L.exports}();export{A as P,I as T}; diff --git a/public/js/build/ReportDetail.80927e93.js b/public/js/build/ReportDetail.a5297308.js similarity index 97% rename from public/js/build/ReportDetail.80927e93.js rename to public/js/build/ReportDetail.a5297308.js index 89d80c704..6df891697 100644 --- a/public/js/build/ReportDetail.80927e93.js +++ b/public/js/build/ReportDetail.a5297308.js @@ -1 +1 @@ -import{m as i,n as l}from"./app.62942df0.js";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"report-detail"},[a("div",{staticClass:"report-title"},[t._v(" "+t._s(t.data.title)+" "),t.loadIng>0?a("Icon",{staticClass:"icon-loading",attrs:{type:"ios-loading"}}):t._e()],1),t.formLabelWidth==="auto"?a("div",{staticClass:"report-detail-context"},[a("Form",{staticClass:"report-form auto-form",attrs:{"label-width":"auto",inline:""}},[a("FormItem",{attrs:{label:t.$L("\u6C47\u62A5\u4EBA")}},[a("UserAvatar",{attrs:{userid:t.data.userid,size:28}})],1),a("FormItem",{attrs:{label:t.$L("\u63D0\u4EA4\u65F6\u95F4")}},[t._v(" "+t._s(t.data.created_at)+" ")]),a("FormItem",{attrs:{label:t.$L("\u6C47\u62A5\u5BF9\u8C61")}},[t.data.receives_user.length===0?[t._v("-")]:t._l(t.data.receives_user,function(r,s){return a("UserAvatar",{key:s,attrs:{userid:r.userid,size:28}})})],2)],1),a("Form",{staticClass:"report-form auto-form",attrs:{"label-width":"auto"}},[a("FormItem",{attrs:{label:t.$L("\u6C47\u62A5\u5185\u5BB9")}},[a("div",{staticClass:"report-content",domProps:{innerHTML:t._s(t.data.content)}})])],1)],1):a("div",{staticClass:"report-detail-context"},[a("Form",{staticClass:"report-form",attrs:{labelPosition:t.formLabelPosition,labelWidth:t.formLabelWidth}},[t.formLabelWidth!=="auto"?[a("FormItem",{attrs:{label:t.$L("\u6C47\u62A5\u4EBA")}},[a("UserAvatar",{attrs:{userid:t.data.userid,size:28}})],1),a("FormItem",{attrs:{label:t.$L("\u63D0\u4EA4\u65F6\u95F4")}},[t._v(" "+t._s(t.data.created_at)+" ")]),a("FormItem",{attrs:{label:t.$L("\u6C47\u62A5\u5BF9\u8C61")}},[t.data.receives_user.length===0?[t._v("-")]:t._l(t.data.receives_user,function(r,s){return a("UserAvatar",{key:s,attrs:{userid:r.userid,size:28}})})],2)]:t._e(),a("FormItem",{attrs:{label:t.$L("\u6C47\u62A5\u5185\u5BB9")}},[a("div",{staticClass:"report-content",domProps:{innerHTML:t._s(t.data.content)}})])],2)],1)])},d=[];const c={name:"ReportDetail",props:{data:{default:{}}},data(){return{loadIng:0}},computed:{...i(["formLabelPosition","formLabelWidth"])},watch:{"data.id":{handler(t){t>0&&this.sendRead()},immediate:!0}},methods:{sendRead(){this.loadIng++,this.$store.dispatch("call",{url:"report/read",data:{ids:[this.data.id]}}).then(()=>{}).catch(()=>{}).finally(t=>{this.loadIng--})}}},o={};var m=l(c,n,d,!1,u,null,null,null);function u(t){for(let e in o)this[e]=o[e]}var v=function(){return m.exports}();export{v as R}; +import{m as i,n as l}from"./app.2163cd94.js";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"report-detail"},[a("div",{staticClass:"report-title"},[t._v(" "+t._s(t.data.title)+" "),t.loadIng>0?a("Icon",{staticClass:"icon-loading",attrs:{type:"ios-loading"}}):t._e()],1),t.formLabelWidth==="auto"?a("div",{staticClass:"report-detail-context"},[a("Form",{staticClass:"report-form auto-form",attrs:{"label-width":"auto",inline:""}},[a("FormItem",{attrs:{label:t.$L("\u6C47\u62A5\u4EBA")}},[a("UserAvatar",{attrs:{userid:t.data.userid,size:28}})],1),a("FormItem",{attrs:{label:t.$L("\u63D0\u4EA4\u65F6\u95F4")}},[t._v(" "+t._s(t.data.created_at)+" ")]),a("FormItem",{attrs:{label:t.$L("\u6C47\u62A5\u5BF9\u8C61")}},[t.data.receives_user.length===0?[t._v("-")]:t._l(t.data.receives_user,function(r,s){return a("UserAvatar",{key:s,attrs:{userid:r.userid,size:28}})})],2)],1),a("Form",{staticClass:"report-form auto-form",attrs:{"label-width":"auto"}},[a("FormItem",{attrs:{label:t.$L("\u6C47\u62A5\u5185\u5BB9")}},[a("div",{staticClass:"report-content",domProps:{innerHTML:t._s(t.data.content)}})])],1)],1):a("div",{staticClass:"report-detail-context"},[a("Form",{staticClass:"report-form",attrs:{labelPosition:t.formLabelPosition,labelWidth:t.formLabelWidth}},[t.formLabelWidth!=="auto"?[a("FormItem",{attrs:{label:t.$L("\u6C47\u62A5\u4EBA")}},[a("UserAvatar",{attrs:{userid:t.data.userid,size:28}})],1),a("FormItem",{attrs:{label:t.$L("\u63D0\u4EA4\u65F6\u95F4")}},[t._v(" "+t._s(t.data.created_at)+" ")]),a("FormItem",{attrs:{label:t.$L("\u6C47\u62A5\u5BF9\u8C61")}},[t.data.receives_user.length===0?[t._v("-")]:t._l(t.data.receives_user,function(r,s){return a("UserAvatar",{key:s,attrs:{userid:r.userid,size:28}})})],2)]:t._e(),a("FormItem",{attrs:{label:t.$L("\u6C47\u62A5\u5185\u5BB9")}},[a("div",{staticClass:"report-content",domProps:{innerHTML:t._s(t.data.content)}})])],2)],1)])},d=[];const c={name:"ReportDetail",props:{data:{default:{}}},data(){return{loadIng:0}},computed:{...i(["formLabelPosition","formLabelWidth"])},watch:{"data.id":{handler(t){t>0&&this.sendRead()},immediate:!0}},methods:{sendRead(){this.loadIng++,this.$store.dispatch("call",{url:"report/read",data:{ids:[this.data.id]}}).then(()=>{}).catch(()=>{}).finally(t=>{this.loadIng--})}}},o={};var m=l(c,n,d,!1,u,null,null,null);function u(t){for(let e in o)this[e]=o[e]}var v=function(){return m.exports}();export{v as R}; diff --git a/public/js/build/ReportEdit.7222c708.js b/public/js/build/ReportEdit.1e923da6.js similarity index 94% rename from public/js/build/ReportEdit.7222c708.js rename to public/js/build/ReportEdit.1e923da6.js index 055eb130c..55f5ed2c5 100644 --- a/public/js/build/ReportEdit.7222c708.js +++ b/public/js/build/ReportEdit.1e923da6.js @@ -1 +1 @@ -import{n as s,_ as o}from"./app.62942df0.js";import{U as l}from"./UserSelect.4461eb56.js";var n=function(){var t=this,r=t.$createElement,e=t._self._c||r;return e("Form",{staticClass:"report-edit",attrs:{"label-width":"auto"},nativeOn:{submit:function(a){a.preventDefault()}}},[e("FormItem",{attrs:{label:t.$L("\u6C47\u62A5\u7C7B\u578B")}},[e("RadioGroup",{staticClass:"report-radiogroup",attrs:{type:"button","button-style":"solid",readonly:t.id>0},on:{"on-change":t.typeChange},model:{value:t.reportData.type,callback:function(a){t.$set(t.reportData,"type",a)},expression:"reportData.type"}},[e("Radio",{attrs:{label:"weekly",disabled:t.id>0&&t.reportData.type=="daily"}},[t._v(t._s(t.$L("\u5468\u62A5")))]),e("Radio",{attrs:{label:"daily",disabled:t.id>0&&t.reportData.type=="weekly"}},[t._v(t._s(t.$L("\u65E5\u62A5")))])],1),t.id===0?e("ButtonGroup",{staticClass:"report-buttongroup"},[e("ETooltip",{attrs:{disabled:t.$isEEUiApp||t.windowTouch,content:t.prevCycleText,placement:"bottom"}},[e("Button",{attrs:{type:"primary"},on:{click:t.prevCycle}},[e("Icon",{attrs:{type:"ios-arrow-back"}})],1)],1),e("div",{staticClass:"report-buttongroup-vertical"}),e("ETooltip",{attrs:{disabled:t.$isEEUiApp||t.windowTouch||t.reportData.offset>=0,content:t.nextCycleText,placement:"bottom"}},[e("Button",{attrs:{type:"primary",disabled:t.reportData.offset>=0},on:{click:t.nextCycle}},[e("Icon",{attrs:{type:"ios-arrow-forward"}})],1)],1)],1):t._e()],1),e("FormItem",{attrs:{label:t.$L("\u6C47\u62A5\u540D\u79F0")}},[e("Input",{attrs:{disabled:""},model:{value:t.reportData.title,callback:function(a){t.$set(t.reportData,"title",a)},expression:"reportData.title"}})],1),e("FormItem",{attrs:{label:t.$L("\u6C47\u62A5\u5BF9\u8C61")}},[e("div",{staticClass:"report-users"},[e("UserSelect",{attrs:{disabledChoice:[t.userId],title:t.$L("\u9009\u62E9\u63A5\u6536\u4EBA")},model:{value:t.reportData.receive,callback:function(a){t.$set(t.reportData,"receive",a)},expression:"reportData.receive"}}),e("a",{staticClass:"report-user-link",attrs:{href:"javascript:void(0);"},on:{click:t.getLastSubmitter}},[t.receiveLoad>0?e("Icon",{staticClass:"icon-loading",attrs:{type:"ios-loading"}}):e("Icon",{attrs:{type:"ios-share-outline"}}),t._v(" "+t._s(t.$L("\u4F7F\u7528\u6211\u4E0A\u6B21\u7684\u6C47\u62A5\u5BF9\u8C61"))+" ")],1)],1)]),e("FormItem",{staticClass:"report-content-editor",attrs:{label:t.$L("\u6C47\u62A5\u5185\u5BB9")}},[e("TEditor",{attrs:{height:"100%"},model:{value:t.reportData.content,callback:function(a){t.$set(t.reportData,"content",a)},expression:"reportData.content"}})],1),e("FormItem",{staticClass:"report-foot"},[e("Button",{staticClass:"report-bottom",attrs:{type:"primary",loading:t.loadIng>0},on:{click:t.handleSubmit}},[t._v(t._s(t.$L(t.id>0?"\u4FEE\u6539":"\u63D0\u4EA4")))])],1)],1)},p=[];const c=()=>o(()=>import("./TEditor.43c37740.js"),["js/build/TEditor.43c37740.js","js/build/app.62942df0.js","js/build/app.69d3f3a3.css","js/build/ImgUpload.582cd84e.js"]),h={name:"ReportEdit",components:{UserSelect:l,TEditor:c},props:{id:{default:0}},data(){return{loadIng:0,receiveLoad:0,reportData:{sign:"",title:"",content:"",type:"weekly",receive:[],id:0,offset:0},prevCycleText:this.$L("\u4E0A\u4E00\u5468"),nextCycleText:this.$L("\u4E0B\u4E00\u5468")}},watch:{id:{handler(t){t>0?this.getDetail(t):(this.reportData.offset=0,this.reportData.type="weekly",this.reportData.receive=[],this.getTemplate())},immediate:!0}},mounted(){},methods:{handleSubmit(){this.id===0&&this.reportData.id>0?$A.modalConfirm({title:"\u8986\u76D6\u63D0\u4EA4",content:"\u4F60\u5DF2\u63D0\u4EA4\u8FC7\u6B64\u65E5\u671F\u7684\u62A5\u544A\uFF0C\u662F\u5426\u8986\u76D6\u63D0\u4EA4\uFF1F",onOk:()=>{this.doSubmit()}}):this.doSubmit()},doSubmit(){this.loadIng++,this.$store.dispatch("call",{url:"report/store",data:this.reportData,method:"post"}).then(({data:t,msg:r})=>{this.reportData.offset=0,this.reportData.type="weekly",this.reportData.receive=[],this.getTemplate(),!this.$isSubElectron&&$A.messageSuccess(r),this.$emit("saveSuccess",{data:t,msg:r})}).catch(({msg:t})=>{$A.messageError(t)}).finally(t=>{this.loadIng--})},getTemplate(){this.loadIng++,this.$store.dispatch("call",{url:"report/template",data:{type:this.reportData.type,offset:this.reportData.offset,id:this.id}}).then(({data:t})=>{t.id?(this.reportData.id=t.id,this.id>0?this.getDetail(t.id):(this.reportData.sign=t.sign,this.reportData.title=t.title,this.reportData.content=t.content)):(this.reportData.id=0,this.reportData.sign=t.sign,this.reportData.title=t.title,this.reportData.content=t.content)}).catch(({msg:t})=>{$A.messageError(t)}).finally(t=>{this.loadIng--})},typeChange(t){this.reportData.offset=0,t==="weekly"?(this.prevCycleText=this.$L("\u4E0A\u4E00\u5468"),this.nextCycleText=this.$L("\u4E0B\u4E00\u5468")):(this.prevCycleText=this.$L("\u4E0A\u4E00\u5929"),this.nextCycleText=this.$L("\u4E0B\u4E00\u5929")),this.getTemplate()},getDetail(t){this.$store.dispatch("call",{url:"report/detail",data:{id:t}}).then(({data:r})=>{this.reportData.title=r.title,this.reportData.content=r.content,this.reportData.receive=r.receives_user.map(({userid:e})=>e),this.reportData.type=r.type_val,this.reportData.id=t}).catch(({msg:r})=>{$A.messageError(r)})},prevCycle(){this.reportData.offset-=1,this.reReportData(),this.getTemplate()},nextCycle(){this.reportData.offset<0&&(this.reportData.offset+=1),this.reReportData(),this.getTemplate()},getLastSubmitter(){setTimeout(t=>{this.receiveLoad++},300),this.$store.dispatch("call",{url:"report/last_submitter"}).then(({data:t})=>{this.reportData.receive=t}).catch(({msg:t})=>{$A.messageError(t)}).finally(t=>{this.receiveLoad--})},reReportData(){this.reportData.title="",this.reportData.content="",this.reportData.receive=[],this.reportData.id=0}}},i={};var d=s(h,n,p,!1,m,null,null,null);function m(t){for(let r in i)this[r]=i[r]}var y=function(){return d.exports}();export{y as R}; +import{n as s,_ as o}from"./app.2163cd94.js";import{U as l}from"./UserSelect.e1ef2c0e.js";var n=function(){var t=this,r=t.$createElement,e=t._self._c||r;return e("Form",{staticClass:"report-edit",attrs:{"label-width":"auto"},nativeOn:{submit:function(a){a.preventDefault()}}},[e("FormItem",{attrs:{label:t.$L("\u6C47\u62A5\u7C7B\u578B")}},[e("RadioGroup",{staticClass:"report-radiogroup",attrs:{type:"button","button-style":"solid",readonly:t.id>0},on:{"on-change":t.typeChange},model:{value:t.reportData.type,callback:function(a){t.$set(t.reportData,"type",a)},expression:"reportData.type"}},[e("Radio",{attrs:{label:"weekly",disabled:t.id>0&&t.reportData.type=="daily"}},[t._v(t._s(t.$L("\u5468\u62A5")))]),e("Radio",{attrs:{label:"daily",disabled:t.id>0&&t.reportData.type=="weekly"}},[t._v(t._s(t.$L("\u65E5\u62A5")))])],1),t.id===0?e("ButtonGroup",{staticClass:"report-buttongroup"},[e("ETooltip",{attrs:{disabled:t.$isEEUiApp||t.windowTouch,content:t.prevCycleText,placement:"bottom"}},[e("Button",{attrs:{type:"primary"},on:{click:t.prevCycle}},[e("Icon",{attrs:{type:"ios-arrow-back"}})],1)],1),e("div",{staticClass:"report-buttongroup-vertical"}),e("ETooltip",{attrs:{disabled:t.$isEEUiApp||t.windowTouch||t.reportData.offset>=0,content:t.nextCycleText,placement:"bottom"}},[e("Button",{attrs:{type:"primary",disabled:t.reportData.offset>=0},on:{click:t.nextCycle}},[e("Icon",{attrs:{type:"ios-arrow-forward"}})],1)],1)],1):t._e()],1),e("FormItem",{attrs:{label:t.$L("\u6C47\u62A5\u540D\u79F0")}},[e("Input",{attrs:{disabled:""},model:{value:t.reportData.title,callback:function(a){t.$set(t.reportData,"title",a)},expression:"reportData.title"}})],1),e("FormItem",{attrs:{label:t.$L("\u6C47\u62A5\u5BF9\u8C61")}},[e("div",{staticClass:"report-users"},[e("UserSelect",{attrs:{disabledChoice:[t.userId],title:t.$L("\u9009\u62E9\u63A5\u6536\u4EBA")},model:{value:t.reportData.receive,callback:function(a){t.$set(t.reportData,"receive",a)},expression:"reportData.receive"}}),e("a",{staticClass:"report-user-link",attrs:{href:"javascript:void(0);"},on:{click:t.getLastSubmitter}},[t.receiveLoad>0?e("Icon",{staticClass:"icon-loading",attrs:{type:"ios-loading"}}):e("Icon",{attrs:{type:"ios-share-outline"}}),t._v(" "+t._s(t.$L("\u4F7F\u7528\u6211\u4E0A\u6B21\u7684\u6C47\u62A5\u5BF9\u8C61"))+" ")],1)],1)]),e("FormItem",{staticClass:"report-content-editor",attrs:{label:t.$L("\u6C47\u62A5\u5185\u5BB9")}},[e("TEditor",{attrs:{height:"100%"},model:{value:t.reportData.content,callback:function(a){t.$set(t.reportData,"content",a)},expression:"reportData.content"}})],1),e("FormItem",{staticClass:"report-foot"},[e("Button",{staticClass:"report-bottom",attrs:{type:"primary",loading:t.loadIng>0},on:{click:t.handleSubmit}},[t._v(t._s(t.$L(t.id>0?"\u4FEE\u6539":"\u63D0\u4EA4")))])],1)],1)},p=[];const c=()=>o(()=>import("./TEditor.fd2b59ab.js"),["js/build/TEditor.fd2b59ab.js","js/build/app.2163cd94.js","js/build/app.89c18ad2.css","js/build/ImgUpload.273724c5.js"]),h={name:"ReportEdit",components:{UserSelect:l,TEditor:c},props:{id:{default:0}},data(){return{loadIng:0,receiveLoad:0,reportData:{sign:"",title:"",content:"",type:"weekly",receive:[],id:0,offset:0},prevCycleText:this.$L("\u4E0A\u4E00\u5468"),nextCycleText:this.$L("\u4E0B\u4E00\u5468")}},watch:{id:{handler(t){t>0?this.getDetail(t):(this.reportData.offset=0,this.reportData.type="weekly",this.reportData.receive=[],this.getTemplate())},immediate:!0}},mounted(){},methods:{handleSubmit(){this.id===0&&this.reportData.id>0?$A.modalConfirm({title:"\u8986\u76D6\u63D0\u4EA4",content:"\u4F60\u5DF2\u63D0\u4EA4\u8FC7\u6B64\u65E5\u671F\u7684\u62A5\u544A\uFF0C\u662F\u5426\u8986\u76D6\u63D0\u4EA4\uFF1F",onOk:()=>{this.doSubmit()}}):this.doSubmit()},doSubmit(){this.loadIng++,this.$store.dispatch("call",{url:"report/store",data:this.reportData,method:"post"}).then(({data:t,msg:r})=>{this.reportData.offset=0,this.reportData.type="weekly",this.reportData.receive=[],this.getTemplate(),!this.$isSubElectron&&$A.messageSuccess(r),this.$emit("saveSuccess",{data:t,msg:r})}).catch(({msg:t})=>{$A.messageError(t)}).finally(t=>{this.loadIng--})},getTemplate(){this.loadIng++,this.$store.dispatch("call",{url:"report/template",data:{type:this.reportData.type,offset:this.reportData.offset,id:this.id}}).then(({data:t})=>{t.id?(this.reportData.id=t.id,this.id>0?this.getDetail(t.id):(this.reportData.sign=t.sign,this.reportData.title=t.title,this.reportData.content=t.content)):(this.reportData.id=0,this.reportData.sign=t.sign,this.reportData.title=t.title,this.reportData.content=t.content)}).catch(({msg:t})=>{$A.messageError(t)}).finally(t=>{this.loadIng--})},typeChange(t){this.reportData.offset=0,t==="weekly"?(this.prevCycleText=this.$L("\u4E0A\u4E00\u5468"),this.nextCycleText=this.$L("\u4E0B\u4E00\u5468")):(this.prevCycleText=this.$L("\u4E0A\u4E00\u5929"),this.nextCycleText=this.$L("\u4E0B\u4E00\u5929")),this.getTemplate()},getDetail(t){this.$store.dispatch("call",{url:"report/detail",data:{id:t}}).then(({data:r})=>{this.reportData.title=r.title,this.reportData.content=r.content,this.reportData.receive=r.receives_user.map(({userid:e})=>e),this.reportData.type=r.type_val,this.reportData.id=t}).catch(({msg:r})=>{$A.messageError(r)})},prevCycle(){this.reportData.offset-=1,this.reReportData(),this.getTemplate()},nextCycle(){this.reportData.offset<0&&(this.reportData.offset+=1),this.reReportData(),this.getTemplate()},getLastSubmitter(){setTimeout(t=>{this.receiveLoad++},300),this.$store.dispatch("call",{url:"report/last_submitter"}).then(({data:t})=>{this.reportData.receive=t}).catch(({msg:t})=>{$A.messageError(t)}).finally(t=>{this.receiveLoad--})},reReportData(){this.reportData.title="",this.reportData.content="",this.reportData.receive=[],this.reportData.id=0}}},i={};var d=s(h,n,p,!1,m,null,null,null);function m(t){for(let r in i)this[r]=i[r]}var y=function(){return d.exports}();export{y as R}; diff --git a/public/js/build/TEditor.43c37740.js b/public/js/build/TEditor.fd2b59ab.js similarity index 99% rename from public/js/build/TEditor.43c37740.js rename to public/js/build/TEditor.fd2b59ab.js index 8c4d44243..55bd64c4d 100644 --- a/public/js/build/TEditor.43c37740.js +++ b/public/js/build/TEditor.fd2b59ab.js @@ -1,4 +1,4 @@ -import{c as PC,m as i2,l as IC,n as o2}from"./app.62942df0.js";import{I as u2}from"./ImgUpload.582cd84e.js";var MC={exports:{}};(function(H){(function(){var Se=function(e){if(e===null)return"null";if(e===void 0)return"undefined";var t=typeof e;return t==="object"&&(Array.prototype.isPrototypeOf(e)||e.constructor&&e.constructor.name==="Array")?"array":t==="object"&&(String.prototype.isPrototypeOf(e)||e.constructor&&e.constructor.name==="String")?"string":t},be=function(e){return["undefined","boolean","number","string","function","xml","null"].indexOf(e)!==-1},he=function(e,t){var n=Array.prototype.slice.call(e);return n.sort(t)},ze=function(e,t){return vt(function(n,r){return e.eq(t(n),t(r))})},vt=function(e){return{eq:e}},yr=vt(function(e,t){return e===t}),Hi=yr,ja=function(e){return vt(function(t,n){if(t.length!==n.length)return!1;for(var r=t.length,a=0;a-1},bt=function(e,t){for(var n=0,r=e.length;n=0;n--){var r=e[n];t(r,n)}},Yc=function(e,t){for(var n=[],r=[],a=0,i=e.length;a=0&&t=t.length&&e.substr(n,n+t.length)===t},m0=function(e,t){return Sr(e,t)?v0(e,t.length):e},yt=function(e,t){return e.indexOf(t)!==-1},Sr=function(e,t){return d0(e,t,0)},cs=function(e){return function(t){return t.replace(e,"")}},vs=cs(/^\s+|\s+$/g),p0=cs(/^\s+/g),uv=cs(/\s+$/g),Gi=function(e){return e.length>0},sv=function(e){return!Gi(e)},ds=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,On=function(e){return function(t){return yt(t,e)}},g0=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(e){return yt(e,"edge/")&&yt(e,"chrome")&&yt(e,"safari")&&yt(e,"applewebkit")}},{name:"Chrome",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,ds],search:function(e){return yt(e,"chrome")&&!yt(e,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(e){return yt(e,"msie")||yt(e,"trident")}},{name:"Opera",versionRegexes:[ds,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:On("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:On("firefox")},{name:"Safari",versionRegexes:[ds,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(e){return(yt(e,"safari")||yt(e,"mobile/"))&&yt(e,"applewebkit")}}],h0=[{name:"Windows",search:On("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(e){return yt(e,"iphone")||yt(e,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:On("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:On("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:On("linux"),versionRegexes:[]},{name:"Solaris",search:On("sunos"),versionRegexes:[]},{name:"FreeBSD",search:On("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:On("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],fv={browsers:X(g0),oses:X(h0)},lv="Edge",cv="Chrome",vv="IE",dv="Opera",mv="Firefox",pv="Safari",b0=function(){return gv({current:void 0,version:Qa.unknown()})},gv=function(e){var t=e.current,n=e.version,r=function(a){return function(){return t===a}};return{current:t,version:n,isEdge:r(lv),isChrome:r(cv),isIE:r(vv),isOpera:r(dv),isFirefox:r(mv),isSafari:r(pv)}},hv={unknown:b0,nu:gv,edge:X(lv),chrome:X(cv),ie:X(vv),opera:X(dv),firefox:X(mv),safari:X(pv)},bv="Windows",yv="iOS",Cv="Android",wv="Linux",Sv="OSX",Ev="Solaris",kv="FreeBSD",xv="ChromeOS",y0=function(){return Nv({current:void 0,version:Qa.unknown()})},Nv=function(e){var t=e.current,n=e.version,r=function(a){return function(){return t===a}};return{current:t,version:n,isWindows:r(bv),isiOS:r(yv),isAndroid:r(Cv),isOSX:r(Sv),isLinux:r(wv),isSolaris:r(Ev),isFreeBSD:r(kv),isChromeOS:r(xv)}},Tv={unknown:y0,nu:Nv,windows:X(bv),ios:X(yv),android:X(Cv),linux:X(wv),osx:X(Sv),solaris:X(Ev),freebsd:X(kv),chromeos:X(xv)},C0=function(e,t,n){var r=fv.browsers(),a=fv.oses(),i=t.bind(function(s){return f0(r,s)}).orThunk(function(){return l0(r,e)}).fold(hv.unknown,hv.nu),o=c0(a,e).fold(Tv.unknown,Tv.nu),u=i0(o,i,e,n);return{browser:i,os:o,deviceType:u}},w0={detect:C0},S0=function(e){return window.matchMedia(e).matches},E0=fs(function(){return w0.detect(navigator.userAgent,b.from(navigator.userAgentData),S0)}),qt=function(){return E0()},Av=navigator.userAgent,ms=qt(),Ct=ms.browser,It=ms.os,mn=ms.deviceType,k0=/WebKit/.test(Av)&&!Ct.isEdge(),x0="FormData"in window&&"FileReader"in window&&"URL"in window&&!!URL.createObjectURL,N0=Av.indexOf("Windows Phone")!==-1,se={opera:Ct.isOpera(),webkit:k0,ie:Ct.isIE()||Ct.isEdge()?Ct.version.major:!1,gecko:Ct.isFirefox(),mac:It.isOSX()||It.isiOS(),iOS:mn.isiPad()||mn.isiPhone(),android:It.isAndroid(),contentEditable:!0,transparentSrc:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",caretAfter:!0,range:window.getSelection&&"Range"in window,documentMode:Ct.isIE()?document.documentMode||7:10,fileApi:x0,ceFalse:!0,cacheSuffix:null,container:null,experimentalShadowDom:!1,canHaveCSP:!Ct.isIE(),desktop:mn.isDesktop(),windowsPhone:N0,browser:{current:Ct.current,version:Ct.version,isChrome:Ct.isChrome,isEdge:Ct.isEdge,isFirefox:Ct.isFirefox,isIE:Ct.isIE,isOpera:Ct.isOpera,isSafari:Ct.isSafari},os:{current:It.current,version:It.version,isAndroid:It.isAndroid,isChromeOS:It.isChromeOS,isFreeBSD:It.isFreeBSD,isiOS:It.isiOS,isLinux:It.isLinux,isOSX:It.isOSX,isSolaris:It.isSolaris,isWindows:It.isWindows},deviceType:{isDesktop:mn.isDesktop,isiPad:mn.isiPad,isiPhone:mn.isiPhone,isPhone:mn.isPhone,isTablet:mn.isTablet,isTouch:mn.isTouch,isWebView:mn.isWebView}},T0=/^\s*|\s*$/g,Rv=function(e){return e==null?"":(""+e).replace(T0,"")},Bv=function(e,t){return t?t==="array"&&us(e)?!0:typeof e===t:e!==void 0},A0=function(e,t,n){var r;for(e=e||[],t=t||",",typeof e=="string"&&(e=e.split(t)),n=n||{},r=e.length;r--;)n[e[r]]={};return n},R0=de,B0=function(e,t,n){var r=this,a,i,o,u=0;e=/^((static) )?([\w.]+)(:([\w.]+))?/.exec(e);var s=e[3].match(/(^|\.)(\w+)$/i)[2],f=r.createNS(e[3].replace(/\.\w+$/,""),n);if(!f[s]){if(e[2]==="static"){f[s]=t,this.onCreate&&this.onCreate(e[2],e[3],f[s]);return}t[s]||(t[s]=function(){},u=1),f[s]=t[s],r.extend(f[s].prototype,t),e[5]&&(a=r.resolve(e[5]).prototype,i=e[5].match(/\.(\w+)$/i)[1],o=f[s],u?f[s]=function(){return a[i].apply(this,arguments)}:f[s]=function(){return this.parent=a[i],o.apply(this,arguments)},f[s].prototype[s]=f[s],r.each(a,function(l,c){f[s].prototype[c]=a[c]}),r.each(t,function(l,c){a[c]?f[s].prototype[c]=function(){return this.parent=a[c],l.apply(this,arguments)}:c!==s&&(f[s].prototype[c]=l)})),r.each(t.static,function(l,c){f[s][c]=l})}},_0=function(e){for(var t=[],n=1;n1)throw console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return Za(r.childNodes[0])},L0=function(e,t){var n=t||document,r=n.createElement(e);return Za(r)},F0=function(e,t){var n=t||document,r=n.createTextNode(e);return Za(r)},Za=function(e){if(e==null)throw new Error("Node cannot be null or undefined");return{dom:e}},M0=function(e,t,n){return b.from(e.dom.elementFromPoint(t,n)).map(Za)},k={fromHtml:$0,fromTag:L0,fromText:F0,fromDom:Za,fromPoint:M0},Dv=function(e,t){var n=[],r=function(i){return n.push(i),t(i)},a=t(e);do a=a.bind(r);while(a.isSome());return n},U0=function(e,t,n){return(e.compareDocumentPosition(t)&n)!==0},z0=function(e,t){return U0(e,t,Node.DOCUMENT_POSITION_CONTAINED_BY)},H0=8,Ov=9,Pv=11,ps=1,V0=3,ra=function(e,t){var n=e.dom;if(n.nodeType!==ps)return!1;var r=n;if(r.matches!==void 0)return r.matches(t);if(r.msMatchesSelector!==void 0)return r.msMatchesSelector(t);if(r.webkitMatchesSelector!==void 0)return r.webkitMatchesSelector(t);if(r.mozMatchesSelector!==void 0)return r.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")},Iv=function(e){return e.nodeType!==ps&&e.nodeType!==Ov&&e.nodeType!==Pv||e.childElementCount===0},q0=function(e,t){var n=t===void 0?document:t.dom;return Iv(n)?[]:De(n.querySelectorAll(e),k.fromDom)},W0=function(e,t){var n=t===void 0?document:t.dom;return Iv(n)?b.none():b.from(n.querySelector(e)).map(k.fromDom)},Te=function(e,t){return e.dom===t.dom},j0=function(e,t){var n=e.dom,r=t.dom;return n===r?!1:n.contains(r)},K0=function(e,t){return z0(e.dom,t.dom)},qn=function(e,t){return qt().browser.isIE()?K0(e,t):j0(e,t)};typeof window!="undefined"||Function("return this;")();var Ke=function(e){var t=e.dom.nodeName;return t.toLowerCase()},$v=function(e){return e.dom.nodeType},Xi=function(e){return function(t){return $v(t)===e}},G0=function(e){return $v(e)===H0||Ke(e)==="#comment"},Zt=Xi(ps),Wt=Xi(V0),X0=Xi(Ov),Y0=Xi(Pv),Q0=function(e){return function(t){return Zt(t)&&Ke(t)===e}},Lv=function(e){return k.fromDom(e.dom.ownerDocument)},aa=function(e){return X0(e)?e:Lv(e)},Z0=function(e){return k.fromDom(aa(e).dom.documentElement)},Fv=function(e){return k.fromDom(aa(e).dom.defaultView)},Jt=function(e){return b.from(e.dom.parentNode).map(k.fromDom)},J0=function(e,t){for(var n=Oe(t)?t:Re,r=e.dom,a=[];r.parentNode!==null&&r.parentNode!==void 0;){var i=r.parentNode,o=k.fromDom(i);if(a.push(o),n(o)===!0)break;r=i}return a},ew=function(e){var t=function(n){return ve(n,function(r){return!Te(e,r)})};return Jt(e).map(jt).map(t).getOr([])},Er=function(e){return b.from(e.dom.previousSibling).map(k.fromDom)},Ja=function(e){return b.from(e.dom.nextSibling).map(k.fromDom)},Mv=function(e){return ji(Dv(e,Er))},Uv=function(e){return Dv(e,Ja)},jt=function(e){return De(e.dom.childNodes,k.fromDom)},Yi=function(e,t){var n=e.dom.childNodes;return b.from(n[t]).map(k.fromDom)},zv=function(e){return Yi(e,0)},gs=function(e){return Yi(e,e.dom.childNodes.length-1)},Hv=function(e){return e.dom.childNodes.length},tw=function(e){var t=e.dom.head;if(t==null)throw new Error("Head is not available yet");return k.fromDom(t)},Vv=function(e){return Y0(e)&&Ne(e.dom.host)},qv=Oe(Element.prototype.attachShadow)&&Oe(Node.prototype.getRootNode),nw=X(qv),kr=qv?function(e){return k.fromDom(e.dom.getRootNode())}:aa,hs=function(e){return Vv(e)?e:tw(aa(e))},rw=function(e){var t=kr(e);return Vv(t)?b.some(t):b.none()},aw=function(e){return k.fromDom(e.dom.host)},iw=function(e){if(nw()&&Ne(e.target)){var t=k.fromDom(e.target);if(Zt(t)&&ow(t)&&e.composed&&e.composedPath){var n=e.composedPath();if(n)return Pt(n)}}return b.from(e.target)},ow=function(e){return Ne(e.dom.shadowRoot)},en=function(e,t){var n=Jt(e);n.each(function(r){r.dom.insertBefore(t.dom,e.dom)})},ei=function(e,t){var n=Ja(e);n.fold(function(){var r=Jt(e);r.each(function(a){at(a,t)})},function(r){en(r,t)})},Wv=function(e,t){var n=zv(e);n.fold(function(){at(e,t)},function(r){e.dom.insertBefore(t.dom,r.dom)})},at=function(e,t){e.dom.appendChild(t.dom)},uw=function(e,t){en(e,t),at(t,e)},sw=function(e,t){Y(t,function(n){en(e,n)})},Qi=function(e,t){Y(t,function(n){at(e,n)})},bs=function(e){e.dom.textContent="",Y(jt(e),function(t){tt(t)})},tt=function(e){var t=e.dom;t.parentNode!==null&&t.parentNode.removeChild(t)},jv=function(e){var t=jt(e);t.length>0&&sw(e,t),tt(e)},ti=function(e){var t=Wt(e)?e.dom.parentNode:e.dom;if(t==null||t.ownerDocument===null)return!1;var n=t.ownerDocument;return rw(k.fromDom(t)).fold(function(){return n.body.contains(t)},Kc(ti,aw))},Kv=function(e,t){var n=function(r,a){return Kv(e+r,t+a)};return{left:e,top:t,translate:n}},ia=Kv,fw=function(e){var t=e.getBoundingClientRect();return ia(t.left,t.top)},Zi=function(e,t){return e!==void 0?e:t!==void 0?t:0},lw=function(e){var t=e.dom.ownerDocument,n=t.body,r=t.defaultView,a=t.documentElement;if(n===e.dom)return ia(n.offsetLeft,n.offsetTop);var i=Zi(r==null?void 0:r.pageYOffset,a.scrollTop),o=Zi(r==null?void 0:r.pageXOffset,a.scrollLeft),u=Zi(a.clientTop,n.clientTop),s=Zi(a.clientLeft,n.clientLeft);return ys(e).translate(o-s,i-u)},ys=function(e){var t=e.dom,n=t.ownerDocument,r=n.body;return r===t?ia(r.offsetLeft,r.offsetTop):ti(e)?fw(t):ia(0,0)},Cs=function(e){var t=e!==void 0?e.dom:document,n=t.body.scrollLeft||t.documentElement.scrollLeft,r=t.body.scrollTop||t.documentElement.scrollTop;return ia(n,r)},Gv=function(e,t,n){var r=n!==void 0?n.dom:document,a=r.defaultView;a&&a.scrollTo(e,t)},Xv=function(e,t){var n=qt().browser.isSafari();n&&Oe(e.dom.scrollIntoViewIfNeeded)?e.dom.scrollIntoViewIfNeeded(!1):e.dom.scrollIntoView(t)},cw=function(e){var t=e===void 0?window:e;return qt().browser.isFirefox()?b.none():b.from(t.visualViewport)},Yv=function(e,t,n,r){return{x:e,y:t,width:n,height:r,right:e+n,bottom:t+r}},Qv=function(e){var t=e===void 0?window:e,n=t.document,r=Cs(k.fromDom(n));return cw(t).fold(function(){var a=t.document.documentElement,i=a.clientWidth,o=a.clientHeight;return Yv(r.left,r.top,i,o)},function(a){return Yv(Math.max(a.pageLeft,r.left),Math.max(a.pageTop,r.top),a.width,a.height)})},ni=function(e){return function(t){return!!t&&t.nodeType===e}},Ji=function(e){return!!e&&!Object.getPrototypeOf(e)},ae=ni(1),Kt=function(e){var t=e.map(function(n){return n.toLowerCase()});return function(n){if(n&&n.nodeName){var r=n.nodeName.toLowerCase();return Je(t,r)}return!1}},eo=function(e,t){var n=t.toLowerCase().split(" ");return function(r){if(ae(r))for(var a=0;a0})},rd=function(e){var t={},n=e.dom;if(ro(n))for(var r=0;r=e.length&&n(r)}};e.length===0?n([]):Y(e,function(o,u){o.get(i(u))})})},Ow=function(e){return Dw(e,sd.nu)},sa=function(e){var t=function(c){return sa(e)},n=function(c){return sa(e)},r=function(c){return sa(c(e))},a=function(c){return sa(e)},i=function(c){c(e)},o=function(c){return c(e)},u=function(c,v){return v(e)},s=function(c){return c(e)},f=function(c){return c(e)},l=function(){return b.some(e)};return{isValue:We,isError:Re,getOr:X(e),getOrThunk:X(e),getOrDie:X(e),or:t,orThunk:n,fold:u,map:r,mapError:a,each:i,bind:o,exists:s,forall:f,toOptional:l}},ai=function(e){var t=function(f){return f()},n=function(){return HC(String(e))()},r=Tt,a=function(f){return f()},i=function(f){return ai(e)},o=function(f){return ai(f(e))},u=function(f){return ai(e)},s=function(f,l){return f(e)};return{isValue:Re,isError:We,getOr:Tt,getOrThunk:t,getOrDie:n,or:r,orThunk:a,fold:s,map:i,mapError:o,each:le,bind:u,exists:Re,forall:We,toOptional:b.none}},Pw=function(e,t){return e.fold(function(){return ai(t)},sa)},fd={value:sa,error:ai,fromOption:Pw},Iw=function(e){if(!Vt(e))throw new Error("cases must be an array");if(e.length===0)throw new Error("there must be at least one case");var t=[],n={};return Y(e,function(r,a){var i=ea(r);if(i.length!==1)throw new Error("one and only one name per case");var o=i[0],u=r[o];if(n[o]!==void 0)throw new Error("duplicate key detected:"+o);if(o==="cata")throw new Error("cannot have a case named cata (sorry)");if(!Vt(u))throw new Error("case arguments must be an array");t.push(o),n[o]=function(){for(var s=[],f=0;f-1},bt=function(e,t){for(var n=0,r=e.length;n=0;n--){var r=e[n];t(r,n)}},Yc=function(e,t){for(var n=[],r=[],a=0,i=e.length;a=0&&t=t.length&&e.substr(n,n+t.length)===t},m0=function(e,t){return Sr(e,t)?v0(e,t.length):e},yt=function(e,t){return e.indexOf(t)!==-1},Sr=function(e,t){return d0(e,t,0)},cs=function(e){return function(t){return t.replace(e,"")}},vs=cs(/^\s+|\s+$/g),p0=cs(/^\s+/g),uv=cs(/\s+$/g),Gi=function(e){return e.length>0},sv=function(e){return!Gi(e)},ds=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,On=function(e){return function(t){return yt(t,e)}},g0=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(e){return yt(e,"edge/")&&yt(e,"chrome")&&yt(e,"safari")&&yt(e,"applewebkit")}},{name:"Chrome",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,ds],search:function(e){return yt(e,"chrome")&&!yt(e,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(e){return yt(e,"msie")||yt(e,"trident")}},{name:"Opera",versionRegexes:[ds,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:On("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:On("firefox")},{name:"Safari",versionRegexes:[ds,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(e){return(yt(e,"safari")||yt(e,"mobile/"))&&yt(e,"applewebkit")}}],h0=[{name:"Windows",search:On("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(e){return yt(e,"iphone")||yt(e,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:On("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:On("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:On("linux"),versionRegexes:[]},{name:"Solaris",search:On("sunos"),versionRegexes:[]},{name:"FreeBSD",search:On("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:On("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],fv={browsers:X(g0),oses:X(h0)},lv="Edge",cv="Chrome",vv="IE",dv="Opera",mv="Firefox",pv="Safari",b0=function(){return gv({current:void 0,version:Qa.unknown()})},gv=function(e){var t=e.current,n=e.version,r=function(a){return function(){return t===a}};return{current:t,version:n,isEdge:r(lv),isChrome:r(cv),isIE:r(vv),isOpera:r(dv),isFirefox:r(mv),isSafari:r(pv)}},hv={unknown:b0,nu:gv,edge:X(lv),chrome:X(cv),ie:X(vv),opera:X(dv),firefox:X(mv),safari:X(pv)},bv="Windows",yv="iOS",Cv="Android",wv="Linux",Sv="OSX",Ev="Solaris",kv="FreeBSD",xv="ChromeOS",y0=function(){return Nv({current:void 0,version:Qa.unknown()})},Nv=function(e){var t=e.current,n=e.version,r=function(a){return function(){return t===a}};return{current:t,version:n,isWindows:r(bv),isiOS:r(yv),isAndroid:r(Cv),isOSX:r(Sv),isLinux:r(wv),isSolaris:r(Ev),isFreeBSD:r(kv),isChromeOS:r(xv)}},Tv={unknown:y0,nu:Nv,windows:X(bv),ios:X(yv),android:X(Cv),linux:X(wv),osx:X(Sv),solaris:X(Ev),freebsd:X(kv),chromeos:X(xv)},C0=function(e,t,n){var r=fv.browsers(),a=fv.oses(),i=t.bind(function(s){return f0(r,s)}).orThunk(function(){return l0(r,e)}).fold(hv.unknown,hv.nu),o=c0(a,e).fold(Tv.unknown,Tv.nu),u=i0(o,i,e,n);return{browser:i,os:o,deviceType:u}},w0={detect:C0},S0=function(e){return window.matchMedia(e).matches},E0=fs(function(){return w0.detect(navigator.userAgent,b.from(navigator.userAgentData),S0)}),qt=function(){return E0()},Av=navigator.userAgent,ms=qt(),Ct=ms.browser,It=ms.os,mn=ms.deviceType,k0=/WebKit/.test(Av)&&!Ct.isEdge(),x0="FormData"in window&&"FileReader"in window&&"URL"in window&&!!URL.createObjectURL,N0=Av.indexOf("Windows Phone")!==-1,se={opera:Ct.isOpera(),webkit:k0,ie:Ct.isIE()||Ct.isEdge()?Ct.version.major:!1,gecko:Ct.isFirefox(),mac:It.isOSX()||It.isiOS(),iOS:mn.isiPad()||mn.isiPhone(),android:It.isAndroid(),contentEditable:!0,transparentSrc:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",caretAfter:!0,range:window.getSelection&&"Range"in window,documentMode:Ct.isIE()?document.documentMode||7:10,fileApi:x0,ceFalse:!0,cacheSuffix:null,container:null,experimentalShadowDom:!1,canHaveCSP:!Ct.isIE(),desktop:mn.isDesktop(),windowsPhone:N0,browser:{current:Ct.current,version:Ct.version,isChrome:Ct.isChrome,isEdge:Ct.isEdge,isFirefox:Ct.isFirefox,isIE:Ct.isIE,isOpera:Ct.isOpera,isSafari:Ct.isSafari},os:{current:It.current,version:It.version,isAndroid:It.isAndroid,isChromeOS:It.isChromeOS,isFreeBSD:It.isFreeBSD,isiOS:It.isiOS,isLinux:It.isLinux,isOSX:It.isOSX,isSolaris:It.isSolaris,isWindows:It.isWindows},deviceType:{isDesktop:mn.isDesktop,isiPad:mn.isiPad,isiPhone:mn.isiPhone,isPhone:mn.isPhone,isTablet:mn.isTablet,isTouch:mn.isTouch,isWebView:mn.isWebView}},T0=/^\s*|\s*$/g,Rv=function(e){return e==null?"":(""+e).replace(T0,"")},Bv=function(e,t){return t?t==="array"&&us(e)?!0:typeof e===t:e!==void 0},A0=function(e,t,n){var r;for(e=e||[],t=t||",",typeof e=="string"&&(e=e.split(t)),n=n||{},r=e.length;r--;)n[e[r]]={};return n},R0=de,B0=function(e,t,n){var r=this,a,i,o,u=0;e=/^((static) )?([\w.]+)(:([\w.]+))?/.exec(e);var s=e[3].match(/(^|\.)(\w+)$/i)[2],f=r.createNS(e[3].replace(/\.\w+$/,""),n);if(!f[s]){if(e[2]==="static"){f[s]=t,this.onCreate&&this.onCreate(e[2],e[3],f[s]);return}t[s]||(t[s]=function(){},u=1),f[s]=t[s],r.extend(f[s].prototype,t),e[5]&&(a=r.resolve(e[5]).prototype,i=e[5].match(/\.(\w+)$/i)[1],o=f[s],u?f[s]=function(){return a[i].apply(this,arguments)}:f[s]=function(){return this.parent=a[i],o.apply(this,arguments)},f[s].prototype[s]=f[s],r.each(a,function(l,c){f[s].prototype[c]=a[c]}),r.each(t,function(l,c){a[c]?f[s].prototype[c]=function(){return this.parent=a[c],l.apply(this,arguments)}:c!==s&&(f[s].prototype[c]=l)})),r.each(t.static,function(l,c){f[s][c]=l})}},_0=function(e){for(var t=[],n=1;n1)throw console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return Za(r.childNodes[0])},L0=function(e,t){var n=t||document,r=n.createElement(e);return Za(r)},F0=function(e,t){var n=t||document,r=n.createTextNode(e);return Za(r)},Za=function(e){if(e==null)throw new Error("Node cannot be null or undefined");return{dom:e}},M0=function(e,t,n){return b.from(e.dom.elementFromPoint(t,n)).map(Za)},k={fromHtml:$0,fromTag:L0,fromText:F0,fromDom:Za,fromPoint:M0},Dv=function(e,t){var n=[],r=function(i){return n.push(i),t(i)},a=t(e);do a=a.bind(r);while(a.isSome());return n},U0=function(e,t,n){return(e.compareDocumentPosition(t)&n)!==0},z0=function(e,t){return U0(e,t,Node.DOCUMENT_POSITION_CONTAINED_BY)},H0=8,Ov=9,Pv=11,ps=1,V0=3,ra=function(e,t){var n=e.dom;if(n.nodeType!==ps)return!1;var r=n;if(r.matches!==void 0)return r.matches(t);if(r.msMatchesSelector!==void 0)return r.msMatchesSelector(t);if(r.webkitMatchesSelector!==void 0)return r.webkitMatchesSelector(t);if(r.mozMatchesSelector!==void 0)return r.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")},Iv=function(e){return e.nodeType!==ps&&e.nodeType!==Ov&&e.nodeType!==Pv||e.childElementCount===0},q0=function(e,t){var n=t===void 0?document:t.dom;return Iv(n)?[]:De(n.querySelectorAll(e),k.fromDom)},W0=function(e,t){var n=t===void 0?document:t.dom;return Iv(n)?b.none():b.from(n.querySelector(e)).map(k.fromDom)},Te=function(e,t){return e.dom===t.dom},j0=function(e,t){var n=e.dom,r=t.dom;return n===r?!1:n.contains(r)},K0=function(e,t){return z0(e.dom,t.dom)},qn=function(e,t){return qt().browser.isIE()?K0(e,t):j0(e,t)};typeof window!="undefined"||Function("return this;")();var Ke=function(e){var t=e.dom.nodeName;return t.toLowerCase()},$v=function(e){return e.dom.nodeType},Xi=function(e){return function(t){return $v(t)===e}},G0=function(e){return $v(e)===H0||Ke(e)==="#comment"},Zt=Xi(ps),Wt=Xi(V0),X0=Xi(Ov),Y0=Xi(Pv),Q0=function(e){return function(t){return Zt(t)&&Ke(t)===e}},Lv=function(e){return k.fromDom(e.dom.ownerDocument)},aa=function(e){return X0(e)?e:Lv(e)},Z0=function(e){return k.fromDom(aa(e).dom.documentElement)},Fv=function(e){return k.fromDom(aa(e).dom.defaultView)},Jt=function(e){return b.from(e.dom.parentNode).map(k.fromDom)},J0=function(e,t){for(var n=Oe(t)?t:Re,r=e.dom,a=[];r.parentNode!==null&&r.parentNode!==void 0;){var i=r.parentNode,o=k.fromDom(i);if(a.push(o),n(o)===!0)break;r=i}return a},ew=function(e){var t=function(n){return ve(n,function(r){return!Te(e,r)})};return Jt(e).map(jt).map(t).getOr([])},Er=function(e){return b.from(e.dom.previousSibling).map(k.fromDom)},Ja=function(e){return b.from(e.dom.nextSibling).map(k.fromDom)},Mv=function(e){return ji(Dv(e,Er))},Uv=function(e){return Dv(e,Ja)},jt=function(e){return De(e.dom.childNodes,k.fromDom)},Yi=function(e,t){var n=e.dom.childNodes;return b.from(n[t]).map(k.fromDom)},zv=function(e){return Yi(e,0)},gs=function(e){return Yi(e,e.dom.childNodes.length-1)},Hv=function(e){return e.dom.childNodes.length},tw=function(e){var t=e.dom.head;if(t==null)throw new Error("Head is not available yet");return k.fromDom(t)},Vv=function(e){return Y0(e)&&Ne(e.dom.host)},qv=Oe(Element.prototype.attachShadow)&&Oe(Node.prototype.getRootNode),nw=X(qv),kr=qv?function(e){return k.fromDom(e.dom.getRootNode())}:aa,hs=function(e){return Vv(e)?e:tw(aa(e))},rw=function(e){var t=kr(e);return Vv(t)?b.some(t):b.none()},aw=function(e){return k.fromDom(e.dom.host)},iw=function(e){if(nw()&&Ne(e.target)){var t=k.fromDom(e.target);if(Zt(t)&&ow(t)&&e.composed&&e.composedPath){var n=e.composedPath();if(n)return Pt(n)}}return b.from(e.target)},ow=function(e){return Ne(e.dom.shadowRoot)},en=function(e,t){var n=Jt(e);n.each(function(r){r.dom.insertBefore(t.dom,e.dom)})},ei=function(e,t){var n=Ja(e);n.fold(function(){var r=Jt(e);r.each(function(a){at(a,t)})},function(r){en(r,t)})},Wv=function(e,t){var n=zv(e);n.fold(function(){at(e,t)},function(r){e.dom.insertBefore(t.dom,r.dom)})},at=function(e,t){e.dom.appendChild(t.dom)},uw=function(e,t){en(e,t),at(t,e)},sw=function(e,t){Y(t,function(n){en(e,n)})},Qi=function(e,t){Y(t,function(n){at(e,n)})},bs=function(e){e.dom.textContent="",Y(jt(e),function(t){tt(t)})},tt=function(e){var t=e.dom;t.parentNode!==null&&t.parentNode.removeChild(t)},jv=function(e){var t=jt(e);t.length>0&&sw(e,t),tt(e)},ti=function(e){var t=Wt(e)?e.dom.parentNode:e.dom;if(t==null||t.ownerDocument===null)return!1;var n=t.ownerDocument;return rw(k.fromDom(t)).fold(function(){return n.body.contains(t)},Kc(ti,aw))},Kv=function(e,t){var n=function(r,a){return Kv(e+r,t+a)};return{left:e,top:t,translate:n}},ia=Kv,fw=function(e){var t=e.getBoundingClientRect();return ia(t.left,t.top)},Zi=function(e,t){return e!==void 0?e:t!==void 0?t:0},lw=function(e){var t=e.dom.ownerDocument,n=t.body,r=t.defaultView,a=t.documentElement;if(n===e.dom)return ia(n.offsetLeft,n.offsetTop);var i=Zi(r==null?void 0:r.pageYOffset,a.scrollTop),o=Zi(r==null?void 0:r.pageXOffset,a.scrollLeft),u=Zi(a.clientTop,n.clientTop),s=Zi(a.clientLeft,n.clientLeft);return ys(e).translate(o-s,i-u)},ys=function(e){var t=e.dom,n=t.ownerDocument,r=n.body;return r===t?ia(r.offsetLeft,r.offsetTop):ti(e)?fw(t):ia(0,0)},Cs=function(e){var t=e!==void 0?e.dom:document,n=t.body.scrollLeft||t.documentElement.scrollLeft,r=t.body.scrollTop||t.documentElement.scrollTop;return ia(n,r)},Gv=function(e,t,n){var r=n!==void 0?n.dom:document,a=r.defaultView;a&&a.scrollTo(e,t)},Xv=function(e,t){var n=qt().browser.isSafari();n&&Oe(e.dom.scrollIntoViewIfNeeded)?e.dom.scrollIntoViewIfNeeded(!1):e.dom.scrollIntoView(t)},cw=function(e){var t=e===void 0?window:e;return qt().browser.isFirefox()?b.none():b.from(t.visualViewport)},Yv=function(e,t,n,r){return{x:e,y:t,width:n,height:r,right:e+n,bottom:t+r}},Qv=function(e){var t=e===void 0?window:e,n=t.document,r=Cs(k.fromDom(n));return cw(t).fold(function(){var a=t.document.documentElement,i=a.clientWidth,o=a.clientHeight;return Yv(r.left,r.top,i,o)},function(a){return Yv(Math.max(a.pageLeft,r.left),Math.max(a.pageTop,r.top),a.width,a.height)})},ni=function(e){return function(t){return!!t&&t.nodeType===e}},Ji=function(e){return!!e&&!Object.getPrototypeOf(e)},ae=ni(1),Kt=function(e){var t=e.map(function(n){return n.toLowerCase()});return function(n){if(n&&n.nodeName){var r=n.nodeName.toLowerCase();return Je(t,r)}return!1}},eo=function(e,t){var n=t.toLowerCase().split(" ");return function(r){if(ae(r))for(var a=0;a0})},rd=function(e){var t={},n=e.dom;if(ro(n))for(var r=0;r=e.length&&n(r)}};e.length===0?n([]):Y(e,function(o,u){o.get(i(u))})})},Ow=function(e){return Dw(e,sd.nu)},sa=function(e){var t=function(c){return sa(e)},n=function(c){return sa(e)},r=function(c){return sa(c(e))},a=function(c){return sa(e)},i=function(c){c(e)},o=function(c){return c(e)},u=function(c,v){return v(e)},s=function(c){return c(e)},f=function(c){return c(e)},l=function(){return b.some(e)};return{isValue:We,isError:Re,getOr:X(e),getOrThunk:X(e),getOrDie:X(e),or:t,orThunk:n,fold:u,map:r,mapError:a,each:i,bind:o,exists:s,forall:f,toOptional:l}},ai=function(e){var t=function(f){return f()},n=function(){return HC(String(e))()},r=Tt,a=function(f){return f()},i=function(f){return ai(e)},o=function(f){return ai(f(e))},u=function(f){return ai(e)},s=function(f,l){return f(e)};return{isValue:Re,isError:We,getOr:Tt,getOrThunk:t,getOrDie:n,or:r,orThunk:a,fold:s,map:i,mapError:o,each:le,bind:u,exists:Re,forall:We,toOptional:b.none}},Pw=function(e,t){return e.fold(function(){return ai(t)},sa)},fd={value:sa,error:ai,fromOption:Pw},Iw=function(e){if(!Vt(e))throw new Error("cases must be an array");if(e.length===0)throw new Error("there must be at least one case");var t=[],n={};return Y(e,function(r,a){var i=ea(r);if(i.length!==1)throw new Error("one and only one name per case");var o=i[0],u=r[o];if(n[o]!==void 0)throw new Error("duplicate key detected:"+o);if(o==="cata")throw new Error("cannot have a case named cata (sorry)");if(!Vt(u))throw new Error("case arguments must be an array");t.push(o),n[o]=function(){for(var s=[],f=0;f0?h(S.fail.map(ld)):y(S.pass.map(ld))})},m=function(g){var y=B._addCacheSuffix(g);je(r,y).each(function(h){var E=--h.count;E===0&&(delete r[y],f(h.id))})},p=function(g){Y(g,function(y){m(y)})};return{load:c,loadAll:d,unload:m,unloadAll:p,_setReferrerPolicy:u}},zw=function(){var e=new WeakMap,t=function(n,r){var a=kr(n),i=a.dom;return b.from(e.get(i)).getOrThunk(function(){var o=md(i,r);return e.set(i,o),o})};return{forElement:t}},pd=zw(),Ge=function(){function e(t,n){this.node=t,this.rootNode=n,this.current=this.current.bind(this),this.next=this.next.bind(this),this.prev=this.prev.bind(this),this.prev2=this.prev2.bind(this)}return e.prototype.current=function(){return this.node},e.prototype.next=function(t){return this.node=this.findSibling(this.node,"firstChild","nextSibling",t),this.node},e.prototype.prev=function(t){return this.node=this.findSibling(this.node,"lastChild","previousSibling",t),this.node},e.prototype.prev2=function(t){return this.node=this.findPreviousNode(this.node,"lastChild","previousSibling",t),this.node},e.prototype.findSibling=function(t,n,r,a){var i,o;if(t){if(!a&&t[n])return t[n];if(t!==this.rootNode){if(i=t[r],i)return i;for(o=t.parentNode;o&&o!==this.rootNode;o=o.parentNode)if(i=o[r],i)return i}}},e.prototype.findPreviousNode=function(t,n,r,a){var i,o,u;if(t){if(i=t[r],this.rootNode&&i===this.rootNode)return;if(i){if(!a){for(u=i[n];u;u=u[n])if(!u[n])return u}return i}if(o=t.parentNode,o&&o!==this.rootNode)return o}},e}(),Hw=["article","aside","details","div","dt","figcaption","footer","form","fieldset","header","hgroup","html","main","nav","section","summary","body","p","dl","multicol","dd","figure","address","center","blockquote","h1","h2","h3","h4","h5","h6","listing","xmp","pre","plaintext","menu","dir","ul","ol","li","hr","table","tbody","thead","tfoot","th","tr","td","caption"],Vw=["td","th"],qw=["thead","tbody","tfoot"],Ww=["h1","h2","h3","h4","h5","h6","p","div","address","pre","form","blockquote","center","dir","fieldset","header","footer","article","section","hgroup","aside","nav","figure"],jw=["h1","h2","h3","h4","h5","h6"],Kw=["li","dd","dt"],Gw=["ul","ol","dl"],Xw=["pre","script","textarea","style"],Gn=function(e){var t;return function(n){return t=t||YC(e,We),de(t,Ke(n))}},Yw=Gn(jw),hn=Gn(Hw),Qw=function(e){return Ke(e)==="table"},Bs=function(e){return Zt(e)&&!hn(e)},fa=function(e){return Zt(e)&&Ke(e)==="br"},gd=Gn(Ww),_s=Gn(Gw),oi=Gn(Kw),Zw=Gn(qw),uo=Gn(Vw),so=Gn(Xw),Jw=function(e,t,n){return io(e,t,n).isSome()},Ds="\uFEFF",At="\xA0",eS=function(e){return e===Ds},tS=function(e){return e.replace(/\uFEFF/g,"")},nt=Ds,fo=eS,Xn=tS,nS=ae,la=Q,ca=function(e){return la(e)&&(e=e.parentNode),nS(e)&&e.hasAttribute("data-mce-caret")},va=function(e){return la(e)&&fo(e.data)},$t=function(e){return ca(e)||va(e)},hd=function(e){return e.firstChild!==e.lastChild||!Le(e.firstChild)},rS=function(e,t){var n=e.ownerDocument,r=n.createTextNode(nt),a=e.parentNode;if(t){var i=e.previousSibling;if(la(i)){if($t(i))return i;if(co(i))return i.splitText(i.data.length-1)}a.insertBefore(r,e)}else{var i=e.nextSibling;if(la(i)){if($t(i))return i;if(lo(i))return i.splitText(1),i}e.nextSibling?a.insertBefore(r,e.nextSibling):a.appendChild(r)}return r},Os=function(e){var t=e.container();return Q(t)?t.data.charAt(e.offset())===nt||e.isAtStart()&&va(t.previousSibling):!1},Ps=function(e){var t=e.container();return Q(t)?t.data.charAt(e.offset()-1)===nt||e.isAtEnd()&&va(t.nextSibling):!1},aS=function(){var e=document.createElement("br");return e.setAttribute("data-mce-bogus","1"),e},iS=function(e,t,n){var r=t.ownerDocument,a=r.createElement(e);a.setAttribute("data-mce-caret",n?"before":"after"),a.setAttribute("data-mce-bogus","all"),a.appendChild(aS());var i=t.parentNode;return n?i.insertBefore(a,t):t.nextSibling?i.insertBefore(a,t.nextSibling):i.appendChild(a),a},lo=function(e){return la(e)&&e.data[0]===nt},co=function(e){return la(e)&&e.data[e.data.length-1]===nt},oS=function(e){var t=e.getElementsByTagName("br"),n=t[t.length-1];xr(n)&&n.parentNode.removeChild(n)},Is=function(e){return e&&e.hasAttribute("data-mce-caret")?(oS(e),e.removeAttribute("data-mce-caret"),e.removeAttribute("data-mce-bogus"),e.removeAttribute("style"),e.removeAttribute("_moz_abspos"),e):null},bd=function(e){return ca(e.startContainer)},yd=pn,uS=_e,sS=Le,fS=Q,lS=Kt(["script","style","textarea"]),Cd=Kt(["img","input","textarea","hr","iframe","video","audio","object","embed"]),cS=Kt(["table"]),vS=$t,bn=function(e){return vS(e)?!1:fS(e)?!lS(e.parentNode):Cd(e)||sS(e)||cS(e)||$s(e)},dS=function(e){return ae(e)&&e.getAttribute("unselectable")==="true"},$s=function(e){return dS(e)===!1&&uS(e)},mS=function(e,t){for(e=e.parentNode;e&&e!==t;e=e.parentNode){if($s(e))return!1;if(yd(e))return!0}return!0},pS=function(e){return $s(e)?Qt(dn(e.getElementsByTagName("*")),function(t,n){return t||yd(n)},!1)!==!0:!1},gS=function(e){return Cd(e)||pS(e)},vo=function(e,t){return bn(e)&&mS(e,t)},hS=/^[ \t\r\n]*$/,Nr=function(e){return hS.test(e)},bS=function(e,t){var n=k.fromDom(t),r=k.fromDom(e);return Jw(r,"pre,code",G(Te,n))},yS=function(e,t){return Q(e)&&Nr(e.data)&&bS(e,t)===!1},CS=function(e){return ae(e)&&e.nodeName==="A"&&!e.hasAttribute("href")&&(e.hasAttribute("name")||e.hasAttribute("id"))},mo=function(e,t){return bn(e)&&yS(e,t)===!1||CS(e)||wS(e)},wS=Zv("data-mce-bookmark"),SS=Zv("data-mce-bogus"),ES=vw("data-mce-bogus","all"),kS=function(e,t){var n=0;if(mo(e,e))return!1;var r=e.firstChild;if(!r)return!0;var a=new Ge(r,e);do{if(t){if(ES(r)){r=a.next(!0);continue}if(SS(r)){r=a.next();continue}}if(Le(r)){n++,r=a.next();continue}if(mo(r,e))return!1;r=a.next()}while(r);return n<=1},Xe=function(e,t){return t===void 0&&(t=!0),kS(e.dom,t)},xS=function(e){return e.nodeName.toLowerCase()==="span"},wd=function(e,t){return Ne(e)&&(mo(e,t)||Bs(k.fromDom(e)))},NS=function(e,t){var n=new Ge(e,t).prev(!1),r=new Ge(e,t).next(!1),a=Nt(n)||wd(n,t),i=Nt(r)||wd(r,t);return a&&i},Sd=function(e){return xS(e)&&e.getAttribute("data-mce-type")==="bookmark"},TS=function(e,t){return Q(e)&&e.data.length>0&&NS(e,t)},AS=function(e){return ae(e)?e.childNodes.length>0:!1},RS=function(e){return Es(e)||Ss(e)},Ls=function(e,t,n){var r=n||t;if(ae(t)&&Sd(t))return t;for(var a=t.childNodes,i=a.length-1;i>=0;i--)Ls(e,a[i],r);if(ae(t)){var o=t.childNodes;o.length===1&&Sd(o[0])&&t.parentNode.insertBefore(o[0],t)}return!RS(t)&&!mo(t,r)&&!AS(t)&&!TS(t,r)&&e.remove(t),t},BS=B.makeMap,po=/[&<>\"\u0060\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,go=/[<>&\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,_S=/[<>&\"\']/g,DS=/&#([a-z0-9]+);?|&([a-z0-9]+);/gi,OS={128:"\u20AC",130:"\u201A",131:"\u0192",132:"\u201E",133:"\u2026",134:"\u2020",135:"\u2021",136:"\u02C6",137:"\u2030",138:"\u0160",139:"\u2039",140:"\u0152",142:"\u017D",145:"\u2018",146:"\u2019",147:"\u201C",148:"\u201D",149:"\u2022",150:"\u2013",151:"\u2014",152:"\u02DC",153:"\u2122",154:"\u0161",155:"\u203A",156:"\u0153",158:"\u017E",159:"\u0178"},Tr={'"':""","'":"'","<":"<",">":">","&":"&","`":"`"},PS={"<":"<",">":">","&":"&",""":'"',"'":"'"},IS=function(e){var t=k.fromTag("div").dom;return t.innerHTML=e,t.textContent||t.innerText||e},Ed=function(e,t){var n,r,a,i={};if(e){for(e=e.split(","),t=t||10,n=0;n1?"&#"+((n.charCodeAt(0)-55296)*1024+(n.charCodeAt(1)-56320)+65536)+";":Tr[n]||"&#"+n.charCodeAt(0)+";"})},Ms=function(e,t,n){return n=n||Fs,e.replace(t?po:go,function(r){return Tr[r]||n[r]||r})},LS=function(e,t){var n=Ed(t)||Fs,r=function(o,u){return o.replace(u?po:go,function(s){return Tr[s]!==void 0?Tr[s]:n[s]!==void 0?n[s]:s.length>1?"&#"+((s.charCodeAt(0)-55296)*1024+(s.charCodeAt(1)-56320)+65536)+";":"&#"+s.charCodeAt(0)+";"})},a=function(o,u){return Ms(o,u,n)},i=BS(e.replace(/\+/g,","));return i.named&&i.numeric?r:i.named?t?a:Ms:i.numeric?xd:kd},FS=function(e){return e.replace(DS,function(t,n){return n?(n.charAt(0).toLowerCase()==="x"?n=parseInt(n.substr(1),16):n=parseInt(n,10),n>65535?(n-=65536,String.fromCharCode(55296+(n>>10),56320+(n&1023))):OS[n]||String.fromCharCode(n)):PS[t]||Fs[t]||IS(t)})},Yn={encodeRaw:kd,encodeAllRaw:$S,encodeNumeric:xd,encodeNamed:Ms,getEncodeFunc:LS,decode:FS},Qn={},MS={},da=B.makeMap,ut=B.each,Us=B.extend,Nd=B.explode,US=B.inArray,rt=function(e,t){return e=B.trim(e),e?e.split(t||" "):[]},Td=function(e,t){var n=da(e," ",da(e.toUpperCase()," "));return Us(n,t)},Ad=function(e){return Td("td th li dt dd figcaption caption details summary",e.getTextBlockElements())},zS=function(e){var t={},n,r,a,i,o,u,s=function(l,c,v){var d,m,p,g=function(h,E){var S={},C,x;for(C=0,x=h.length;C
");return en(n.element,r),Up(r,function(){return tt(r)})},gN=function(e){return Up(k.fromDom(e),le)},zp=function(e,t,n,r){bN(e,function(a,i){return hN(e,t,n,r)},n)},Hp=function(e,t,n,r,a){var i={elm:r.element.dom,alignToTop:a};if(!vN(e,i)){var o=Cs(t).top;n(t,o,r,a),dN(e,i)}},hN=function(e,t,n,r){var a=k.fromDom(e.getBody()),i=k.fromDom(e.getDoc());Ew(a);var o=pN(k.fromDom(n.startContainer),n.startOffset);Hp(e,i,t,o,r),o.cleanup()},Vp=function(e,t,n,r){var a=k.fromDom(e.getDoc());Hp(e,a,n,gN(t),r)},bN=function(e,t,n){var r=n.startContainer,a=n.startOffset,i=n.endContainer,o=n.endOffset;t(k.fromDom(r),k.fromDom(i));var u=e.dom.createRng();u.setStart(r,a),u.setEnd(i,o),e.selection.setRng(n)},Qf=function(e,t,n,r){var a=e.pos;if(n)Gv(a.left,a.top,r);else{var i=a.top-t+e.height;Gv(a.left,i,r)}},qp=function(e,t,n,r,a){var i=n+t,o=r.pos.top,u=r.bottom,s=u-o>=n;if(oi){var f=s?a!==!1:a===!0;Qf(r,n,f,e)}else u>i&&!s&&Qf(r,n,a===!0,e)},Wp=function(e,t,n,r){var a=e.dom.defaultView.innerHeight;qp(e,t,a,n,r)},jp=function(e,t,n,r){var a=e.dom.defaultView.innerHeight;qp(e,t,a,n,r);var i=cN(n.element),o=Qv(window);i.topo.bottom&&Xv(n.element,r===!0)},yN=function(e,t,n){return zp(e,Wp,t,n)},CN=function(e,t,n){return Vp(e,t,Wp,n)},wN=function(e,t,n){return zp(e,jp,t,n)},SN=function(e,t,n){return Vp(e,t,jp,n)},EN=function(e,t,n){var r=e.inline?CN:SN;r(e,t,n)},Ai=function(e,t,n){var r=e.inline?yN:wN;r(e,t,n)},kN=function(){return k.fromDom(document)},xN=function(e){return e.dom.focus()},Kp=function(e){var t=kr(e).dom;return e.dom===t.activeElement},Zf=function(e){return e===void 0&&(e=kN()),b.from(e.dom.activeElement).map(k.fromDom)},NN=function(e){return Zf(kr(e)).filter(function(t){return e.dom.contains(t.dom)})},TN=function(e,t,n,r){return{start:e,soffset:t,finish:n,foffset:r}},AN={create:TN},Jf=Kn.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),RN=function(e,t,n,r){return e.fold(t,n,r)},BN=function(e){return e.fold(Tt,Tt,Tt)},_N=Jf.before,DN=Jf.on,ON=Jf.after,PN={before:_N,on:DN,after:ON,cata:RN,getStart:BN},Ko=Kn.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),IN=function(e){return Ko.exact(e.start,e.soffset,e.finish,e.foffset)},$N=function(e){return e.match({domRange:function(t){return k.fromDom(t.startContainer)},relative:function(t,n){return PN.getStart(t)},exact:function(t,n,r,a){return t}})},LN=Ko.domRange,FN=Ko.relative,MN=Ko.exact,UN=function(e){var t=$N(e);return Fv(t)},zN=AN.create,Gp={domRange:LN,relative:FN,exact:MN,exactFromRange:IN,getWin:UN,range:zN},HN=qt().browser,Xp=function(e,t){var n=Wt(t)?Vf(t).length:jt(t).length+1;return e>n?n:e<0?0:e},VN=function(e){return Gp.range(e.start,Xp(e.soffset,e.start),e.finish,Xp(e.foffset,e.finish))},Yp=function(e,t){return!Ji(t.dom)&&(qn(e,t)||Te(e,t))},el=function(e){return function(t){return Yp(e,t.start)&&Yp(e,t.finish)}},Qp=function(e){return e.inline===!0||HN.isIE()},Zp=function(e){return Gp.range(k.fromDom(e.startContainer),e.startOffset,k.fromDom(e.endContainer),e.endOffset)},qN=function(e){var t=e.getSelection(),n=!t||t.rangeCount===0?b.none():b.from(t.getRangeAt(0));return n.map(Zp)},WN=function(e){var t=Fv(e);return qN(t.dom).filter(el(e))},jN=function(e,t){return b.from(t).filter(el(e)).map(VN)},KN=function(e){var t=document.createRange();try{return t.setStart(e.start.dom,e.soffset),t.setEnd(e.finish.dom,e.foffset),b.some(t)}catch{return b.none()}},Go=function(e){var t=Qp(e)?WN(k.fromDom(e.getBody())):b.none();e.bookmark=t.isSome()?t:e.bookmark},GN=function(e,t){var n=k.fromDom(e.getBody()),r=Qp(e)?b.from(t):b.none(),a=r.map(Zp).filter(el(n));e.bookmark=a.isSome()?a:e.bookmark},tl=function(e){var t=e.bookmark?e.bookmark:b.none();return t.bind(function(n){return jN(k.fromDom(e.getBody()),n)}).bind(KN)},XN=function(e){tl(e).each(function(t){return e.selection.setRng(t)})},YN=function(e){var t=e.className.toString();return t.indexOf("tox-")!==-1||t.indexOf("mce-")!==-1},Jp={isEditorUIElement:YN},QN=function(e){return e.type==="nodechange"&&e.selectionChange},ZN=function(e,t){var n=function(){t.throttle()};xe.DOM.bind(document,"mouseup",n),e.on("remove",function(){xe.DOM.unbind(document,"mouseup",n)})},JN=function(e){e.on("focusout",function(){Go(e)})},eT=function(e,t){e.on("mouseup touchend",function(n){t.throttle()})},tT=function(e,t){var n=qt().browser;n.isIE()?JN(e):eT(e,t),e.on("keyup NodeChange",function(r){QN(r)||Go(e)})},nT=function(e){var t=cf(function(){Go(e)},0);e.on("init",function(){e.inline&&ZN(e,t),tT(e,t)}),e.on("remove",function(){t.cancel()})},Ri,nl=xe.DOM,rT=function(e){return Jp.isEditorUIElement(e)},aT=function(e){var t=e.classList;return t!==void 0?t.contains("tox-edit-area")||t.contains("tox-edit-area__iframe")||t.contains("mce-content-body"):!1},Xo=function(e,t){var n=lx(e),r=nl.getParent(t,function(a){return rT(a)||(n?e.dom.is(a,n):!1)});return r!==null},iT=function(e){try{var t=kr(k.fromDom(e.getElement()));return Zf(t).fold(function(){return document.body},function(n){return n.dom})}catch{return document.body}},oT=function(e,t){var n=t.editor;nT(n),n.on("focusin",function(){var r=e.focusedEditor;r!==n&&(r&&r.fire("blur",{focusedEditor:n}),e.setActive(n),e.focusedEditor=n,n.fire("focus",{blurredEditor:r}),n.focus(!0))}),n.on("focusout",function(){ot.setEditorTimeout(n,function(){var r=e.focusedEditor;!Xo(n,iT(n))&&r===n&&(n.fire("blur",{focusedEditor:null}),e.focusedEditor=null)})}),Ri||(Ri=function(r){var a=e.activeEditor;a&&iw(r).each(function(i){i.ownerDocument===document&&i!==document.body&&!Xo(a,i)&&e.focusedEditor===a&&(a.fire("blur",{focusedEditor:null}),e.focusedEditor=null)})},nl.bind(document,"focusin",Ri))},uT=function(e,t){e.focusedEditor===t.editor&&(e.focusedEditor=null),e.activeEditor||(nl.unbind(document,"focusin",Ri),Ri=null)},sT=function(e){e.on("AddEditor",G(oT,e)),e.on("RemoveEditor",G(uT,e))},fT=function(e,t){return e.dom.getParent(t,function(n){return e.dom.getContentEditable(n)==="true"})},lT=function(e){return e.collapsed?b.from(or(e.startContainer,e.startOffset)).map(k.fromDom):b.none()},cT=function(e,t){return lT(t).bind(function(n){return Zw(n)?b.some(n):qn(e,n)===!1?b.some(e):b.none()})},eg=function(e,t){cT(k.fromDom(e.getBody()),t).bind(function(n){return wt(n.dom)}).fold(function(){e.selection.normalize()},function(n){return e.selection.setRng(n.toRange())})},rl=function(e){if(e.setActive)try{e.setActive()}catch{e.focus()}else e.focus()},vT=function(e){return Kp(e)||NN(e).isSome()},dT=function(e){return e.iframeElement&&Kp(k.fromDom(e.iframeElement))},mT=function(e){var t=e.getBody();return t&&vT(k.fromDom(t))},pT=function(e){var t=kr(k.fromDom(e.getElement()));return Zf(t).filter(function(n){return!aT(n.dom)&&Xo(e,n.dom)}).isSome()},Lr=function(e){return e.inline?mT(e):dT(e)},gT=function(e){return Lr(e)||pT(e)},hT=function(e){var t=e.selection,n=e.getBody(),r=t.getRng();e.quirks.refreshContentEditable(),e.bookmark!==void 0&&Lr(e)===!1&&tl(e).each(function(i){e.selection.setRng(i),r=i});var a=fT(e,t.getNode());if(e.$.contains(n,a)){rl(a),eg(e,r),al(e);return}e.inline||(se.opera||rl(n),e.getWin().focus()),(se.gecko||e.inline)&&(rl(n),eg(e,r)),al(e)},al=function(e){return e.editorManager.setActive(e)},bT=function(e,t){e.removed||(t?al(e):hT(e))},tg=function(e,t,n,r,a){var i=n?t.startContainer:t.endContainer,o=n?t.startOffset:t.endOffset;return b.from(i).map(k.fromDom).map(function(u){return!r||!t.collapsed?Yi(u,a(u,o)).getOr(u):u}).bind(function(u){return Zt(u)?b.some(u):Jt(u).filter(Zt)}).map(function(u){return u.dom}).getOr(e)},ng=function(e,t,n){return tg(e,t,!0,n,function(r,a){return Math.min(Hv(r),a)})},rg=function(e,t,n){return tg(e,t,!1,n,function(r,a){return a>0?a-1:a})},ag=function(e,t){for(var n=e;e&&Q(e)&&e.length===0;)e=t?e.nextSibling:e.previousSibling;return e||n},yT=function(e,t){var n,r,a;if(!t)return e;r=t.startContainer,a=t.endContainer;var i=t.startOffset,o=t.endOffset;return n=t.commonAncestorContainer,!t.collapsed&&(r===a&&o-i<2&&r.hasChildNodes()&&(n=r.childNodes[i]),r.nodeType===3&&a.nodeType===3&&(r.length===i?r=ag(r.nextSibling,!0):r=r.parentNode,o===0?a=ag(a.previousSibling,!1):a=a.parentNode,r&&r===a))?r:n&&n.nodeType===3?n.parentNode:n},CT=function(e,t,n,r){var a,i=[],o=e.getRoot();if(n=e.getParent(n||ng(o,t,t.collapsed),e.isBlock),r=e.getParent(r||rg(o,t,t.collapsed),e.isBlock),n&&n!==o&&i.push(n),n&&r&&n!==r){a=n;for(var u=new Ge(n,o);(a=u.next())&&a!==r;)e.isBlock(a)&&i.push(a)}return r&&n!==r&&r!==o&&i.push(r),i},wT=function(e,t,n){return b.from(t).map(function(r){var a=e.nodeIndex(r),i=e.createRng();return i.setStart(r.parentNode,a),i.setEnd(r.parentNode,a+1),n&&(Uf(e,i,r,!0),Uf(e,i,r,!1)),i})},il=function(e,t){return De(t,function(n){var r=e.fire("GetSelectionRange",{range:n});return r.range!==n?r.range:n})},ST={"#text":3,"#comment":8,"#cdata":4,"#pi":7,"#doctype":10,"#document-fragment":11},Yo=function(e,t,n){var r=n?"lastChild":"firstChild",a=n?"prev":"next";if(e[r])return e[r];if(e!==t){var i=e[a];if(i)return i;for(var o=e.parent;o&&o!==t;o=o.parent)if(i=o[a],i)return i}},ET=function(e){if(!Nr(e.value))return!1;var t=e.parent;return!(t&&(t.name!=="span"||t.attr("style"))&&/^[ ]+$/.test(e.value))},ig=function(e){var t=e.name==="a"&&!e.attr("href")&&e.attr("id");return e.attr("name")||e.attr("id")&&!e.firstChild||e.attr("data-mce-bookmark")||t},Xt=function(){function e(t,n){this.name=t,this.type=n,n===1&&(this.attributes=[],this.attributes.map={})}return e.create=function(t,n){var r=new e(t,ST[t]||1);return n&&Pe(n,function(a,i){r.attr(i,a)}),r},e.prototype.replace=function(t){var n=this;return t.parent&&t.remove(),n.insert(t,n),n.remove(),n},e.prototype.attr=function(t,n){var r=this,a;if(typeof t!="string")return t!=null&&Pe(t,function(o,u){r.attr(u,o)}),r;if(a=r.attributes){if(n!==void 0){if(n===null){if(t in a.map){delete a.map[t];for(var i=a.length;i--;)if(a[i].name===t)return a.splice(i,1),r}return r}if(t in a.map){for(var i=a.length;i--;)if(a[i].name===t){a[i].value=n;break}}else a.push({name:t,value:n});return a.map[t]=n,r}return a.map[t]}},e.prototype.clone=function(){var t=this,n=new e(t.name,t.type),r;if(r=t.attributes){var a=[];a.map={};for(var i=0,o=r.length;i=s.length){for(i=0,o=u.length;i=s.length||u[i]!==s[i]){r=i+1;break}}if(u.length=u.length||u[i]!==s[i]){r=i+1;break}}if(r===1)return n;for(i=0,o=u.length-(r-1);i=0;r--)if(!(f[r].length===0||f[r]===".")){if(f[r]===".."){a++;continue}if(a>0){a--;continue}i.push(f[r])}return r=s.length-a,r<=0?o=ji(i).join("/"):o=s.slice(0,r).join("/")+"/"+ji(i).join("/"),o.indexOf("/")!==0&&(o="/"+o),u&&o.lastIndexOf("/")!==o.length-1&&(o+=u),o},e.prototype.getURI=function(t){t===void 0&&(t=!1);var n;return(!this.source||t)&&(n="",t||(this.protocol?n+=this.protocol+"://":n+="//",this.userInfo&&(n+=this.userInfo+"@"),this.host&&(n+=this.host),this.port&&(n+=":"+this.port)),this.path&&(n+=this.path),this.query&&(n+="?"+this.query),this.anchor&&(n+="#"+this.anchor),this.source=n),this.source},e}(),DT=B.makeMap("button,fieldset,form,iframe,img,image,input,object,output,select,textarea"),OT=function(e){return e.indexOf("data-")===0||e.indexOf("aria-")===0},PT=fs(function(){return document.implementation.createHTMLDocument("parser")}),ul=function(e,t,n){for(var r=/<([!?\/])?([A-Za-z0-9\-_:.]+)/g,a=/(?:\s(?:[^'">]+(?:"[^"]*"|'[^']*'))*[^"'>]*(?:"[^">]*|'[^'>]*)?|\s*|\/)>/g,i=e.getShortEndedElements(),o=1,u=n;o!==0;)for(r.lastIndex=u;;){var s=r.exec(t);if(s===null)return u;if(s[1]==="!"){Sr(s[2],"--")?u=sl(t,!1,s.index+3):u=sl(t,!0,s.index+1);break}else{a.lastIndex=r.lastIndex;var f=a.exec(t);if(Ka(f)||f.index!==r.lastIndex)continue;s[1]==="/"?o-=1:de(i,s[2])||(o+=1),u=r.lastIndex+f[0].length;break}}return u},IT=function(e,t){return/^\s*\[if [\w\W]+\]>.*/.test(e.substr(t))},sl=function(e,t,n){n===void 0&&(n=0);var r=e.toLowerCase();if(r.indexOf("[if ",n)!==-1&&IT(r,n)){var a=r.indexOf("[endif]",n);return r.indexOf(">",a)}else if(t){var i=r.indexOf(">",n);return i!==-1?i:r.length}else{var o=/--!?>/g;o.lastIndex=n;var u=o.exec(e);return u?u.index+u[0].length:r.length}},$T=function(e,t){var n=e.exec(t);if(n){var r=n[1],a=n[2];return typeof r=="string"&&r.toLowerCase()==="data-mce-bogus"?a:null}else return null},Qo=function(e,t){t===void 0&&(t=Zn()),e=e||{};var n=PT(),r=n.createElement("form");e.fix_self_closing!==!1&&(e.fix_self_closing=!0);var a=e.comment?e.comment:le,i=e.cdata?e.cdata:le,o=e.text?e.text:le,u=e.start?e.start:le,s=e.end?e.end:le,f=e.pi?e.pi:le,l=e.doctype?e.doctype:le,c=function(d,m){m===void 0&&(m="html");for(var p=d.html,g,y=0,h,E,S=[],C,x,R,I,ne,W,_,ee,M,q,L,V,K,D,j,fe,pe,me=0,qe=Yn.decode,Be=B.makeMap("src,href,data,background,action,formaction,poster,xlink:href"),lt=m==="html"?0:1,xt=function(we){var Ee,Ue;for(Ee=S.length;Ee--&&S[Ee].name!==we;);if(Ee>=0){for(Ue=S.length-1;Ue>=Ee;Ue--)we=S[Ue],we.valid&&s(we.name);S.length=Ee}},O=function(we,Ee){return o(ol(we,d),Ee)},U=function(we){we!==""&&(we.charAt(0)===">"&&(we=" "+we),!e.allow_conditional_comments&&we.substr(0,3).toLowerCase()==="[if"&&(we=" "+we),a(ol(we,d)))},Z=function(we){return ol(we,d)},N=function(we,Ee){var Ue=we||"",fn=!Sr(Ue,"--"),ln=sl(p,fn,Ee);return we=p.substr(Ee,ln-Ee),U(fn?Ue+we:we),ln+1},$=function(we,Ee,Ue,fn,ln){if(Ee=Ee.toLowerCase(),Ue=Z(Ee in Fe?Ee:qe(Ue||fn||ln||"")),$e&&!ne&&OT(Ee)===!1){var cn=L[Ee];if(!cn&&V){for(var hr=V.length;hr--&&(cn=V[hr],!cn.pattern.test(Ee)););hr===-1&&(cn=null)}if(!cn||cn.validValues&&!(Ue in cn.validValues))return}var Hc=Ee==="name"||Ee==="id";Hc&&we in DT&&(Ue in n||Ue in r)||Be[Ee]&&!fr.isDomSafe(Ue,we,e)||ne&&(Ee in Be||Ee.indexOf("on")===0)||(C.map[Ee]=Ue,C.push({name:Ee,value:Ue}))},P=new RegExp(`<(?:(?:!--([\\w\\W]*?)--!?>)|(?:!\\[CDATA\\[([\\w\\W]*?)\\]\\]>)|(?:![Dd][Oo][Cc][Tt][Yy][Pp][Ee]([\\w\\W]*?)>)|(?:!(--)?)|(?:\\?([^\\s\\/<>]+) ?([\\w\\W]*?)[?/]>)|(?:\\/([A-Za-z][A-Za-z0-9\\-_\\:\\.]*)>)|(?:([A-Za-z][A-Za-z0-9\\-_:.]*)(\\s(?:[^'">]+(?:"[^"]*"|'[^']*'))*[^"'>]*(?:"[^">]*|'[^'>]*)?|\\s*|\\/)>))`,"g"),J=/([\w:\-]+)(?:\s*=\s*(?:(?:\"((?:[^\"])*)\")|(?:\'((?:[^\'])*)\')|([^>\s]+)))?/g,te=t.getShortEndedElements(),ye=e.self_closing_elements||t.getSelfClosingElements(),Fe=t.getBoolAttrs(),$e=e.validate,Hn=e.remove_internals,ct=e.fix_self_closing,gt=t.getSpecialElements(),Me=p+">";g=P.exec(Me);){var Ot=g[0];if(yp.length){O(qe(p.substr(g.index))),y=g.index+Ot.length;continue}h=h.toLowerCase(),h.charAt(0)===":"&&(h=h.substr(1)),W=h in te,ct&&ye[h]&&S.length>0&&S[S.length-1].name===h&&xt(h);var ht=$T(J,g[9]);if(ht!==null){if(ht==="all"){y=ul(t,p,P.lastIndex),P.lastIndex=y;continue}ee=!1}if(!$e||(_=t.getElementRule(h))){if(ee=!0,$e&&(L=_.attributes,V=_.attributePatterns),(q=g[9])?(ne=q.indexOf("data-mce-type")!==-1,ne&&Hn&&(ee=!1),C=[],C.map={},q.replace(J,function(we,Ee,Ue,fn,ln){return $(h,Ee,Ue,fn,ln),""})):(C=[],C.map={}),$e&&!ne){if(K=_.attributesRequired,D=_.attributesDefault,j=_.attributesForced,fe=_.removeEmptyAttrs,fe&&!C.length&&(ee=!1),j)for(x=j.length;x--;)M=j[x],I=M.name,pe=M.value,pe==="{$uid}"&&(pe="mce_"+me++),C.map[I]=pe,C.push({name:I,value:pe});if(D)for(x=D.length;x--;)M=D[x],I=M.name,I in C.map||(pe=M.value,pe==="{$uid}"&&(pe="mce_"+me++),C.map[I]=pe,C.push({name:I,value:pe}));if(K){for(x=K.length;x--&&!(K[x]in C.map););x===-1&&(ee=!1)}if(M=C.map["data-mce-bogus"]){if(M==="all"){y=ul(t,p,P.lastIndex),P.lastIndex=y;continue}ee=!1}}ee&&u(h,C,W)}else ee=!1;if(E=gt[h]){E.lastIndex=y=g.index+Ot.length,(g=E.exec(p))?(ee&&(R=p.substr(y,g.index-y)),y=g.index+g[0].length):(R=p.substr(y),y=p.length),ee&&(R.length>0&&O(R,!0),s(h)),P.lastIndex=y;continue}W||(!q||q.indexOf("/")!==q.length-1?S.push({name:h,valid:ee}):ee&&s(h))}else if(h=g[1])U(h);else if(h=g[2]){var _n=lt===1||e.preserve_cdata||S.length>0&&t.isValidChild(S[S.length-1].name,"#cdata");if(_n)i(h);else{y=N("",g.index+2),P.lastIndex=y;continue}}else if(h=g[3])l(h);else if((h=g[4])||Ot==="=0;x--)h=S[x],h.valid&&s(h.name)},v=function(d,m){m===void 0&&(m="html"),c(kT(d),m)};return{parse:v}};Qo.findEndTag=ul;var LT=function(e,t){var n=new RegExp(["\\s?("+e.join("|")+')="[^"]+"'].join("|"),"gi");return t.replace(n,"")},ug=function(e,t){for(var n=/<(\w+) [^>]*data-mce-bogus="all"[^>]*>/g,r=e.schema,a=LT(e.getTempAttrs(),t),i=r.getShortEndedElements(),o;o=n.exec(a);){var u=n.lastIndex,s=o[0].length,f=void 0;i[o[1]]?f=u:f=Qo.findEndTag(r,a,u),a=a.substring(0,u-s)+a.substring(f),n.lastIndex=u-s}return Xn(a)},FT=ug,MT=function(e,t){var n=ft(e),r=new RegExp("^(<"+n+"[^>]*>( | |\\s|\xA0|
|)<\\/"+n+`>[\r diff --git a/public/js/build/TaskDetail.6f25b368.css b/public/js/build/TaskDetail.6f25b368.css new file mode 100644 index 000000000..eb2cf4d0a --- /dev/null +++ b/public/js/build/TaskDetail.6f25b368.css @@ -0,0 +1 @@ +.task-editor[data-v-20dab440]{position:relative;word-break:break-all}.task-editor .task-editor-operate[data-v-20dab440]{position:absolute;top:0;left:0;width:1px;opacity:0;visibility:hidden;pointer-events:none} diff --git a/public/js/build/TaskDetail.809590f9.css b/public/js/build/TaskDetail.809590f9.css deleted file mode 100644 index 453be9830..000000000 --- a/public/js/build/TaskDetail.809590f9.css +++ /dev/null @@ -1 +0,0 @@ -.task-editor[data-v-4cae6e10]{position:relative}.task-editor .task-editor-operate[data-v-4cae6e10]{position:absolute;top:0;left:0;width:1px;opacity:0;visibility:hidden;pointer-events:none} diff --git a/public/js/build/TaskDetail.ea92d97a.js b/public/js/build/TaskDetail.b952b7ff.js similarity index 99% rename from public/js/build/TaskDetail.ea92d97a.js rename to public/js/build/TaskDetail.b952b7ff.js index 7d5525c3e..29faa9cbf 100644 --- a/public/js/build/TaskDetail.ea92d97a.js +++ b/public/js/build/TaskDetail.b952b7ff.js @@ -1 +1 @@ -import{n as l,b as p,m as f}from"./app.62942df0.js";import{P as _,T as k}from"./ProjectLog.90d0d2bf.js";import{C as v,D as g}from"./DialogWrapper.ac0f8460.js";import{T as b}from"./TaskMenu.8df6d0b9.js";import{U as D}from"./UserSelect.4461eb56.js";import w from"./TEditor.43c37740.js";var C=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("Modal",{staticClass:"task-exist-tips",attrs:{title:t.$L("\u8BA1\u5212\u65F6\u95F4\u51B2\u7A81\u63D0\u793A"),styles:{width:"90%",maxWidth:"550px"}},model:{value:t.show,callback:function(a){t.show=a},expression:"show"}},[e("List",{attrs:{split:!1,size:"small"}},t._l(t.tipsTask,function(a,i){return e("ListItem",{key:i},[e("div",{staticClass:"list-content"},[e("UserAvatar",{attrs:{userid:i,size:28,"show-icon":!0,"show-name":!0,tooltipDisabled:""}}),t._l(a,function(o,n){return e("div",{key:n,staticClass:"list-task"},[e("div",{staticClass:"list-task-info"},[e("span",[t._v("["+t._s(o.project_name)+"] ")]),e("span",{attrs:{title:o.name}},[t._v(t._s(o.name))])]),e("div",{staticClass:"list-task-date"},[t._v(t._s(t.getCutTime(o)))])])})],2)])}),1),e("div",{attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(a){t.show=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary"},on:{click:t.onAdd}},[t._v(t._s(t.$L("\u5FFD\u7565\u5E76\u7EE7\u7EED")))])],1)],1)},y=[];const T={name:"TaskExistTips",props:{value:{type:Boolean,default:!1}},data(){return{isExist:!1,show:!1,tipsTask:[],loadIng:!1}},methods:{onAdd(){this.$emit("onAdd",{}),this.show=!1},getCutTime(t){let s=$A.Date(t.start_at,!0),e=$A.Date(t.end_at,!0),a="";return $A.formatDate("Y/m/d",s)==$A.formatDate("Y/m/d",e)?a=$A.formatDate("Y/m/d H:i",s)+" ~ "+$A.formatDate("H:i",e):$A.formatDate("Y",s)==$A.formatDate("Y",e)?(a=$A.formatDate("Y/m/d H:i",s)+" ~ "+$A.formatDate("m/d H:i",e),a=a.replace(/( 00:00| 23:59)/g,"")):(a=$A.formatDate("Y/m/d H:i",s)+" ~ "+$A.formatDate("Y/m/d H:i",e),a=a.replace(/( 00:00| 23:59)/g,"")),a},isExistTask({userids:t,timerange:s,taskid:e}){return this.isExist=!1,new Promise(async a=>{this.$store.dispatch("call",{url:"project/task/easylists",data:{userid:t,timerange:s,taskid:e},method:"get"}).then(({data:i})=>{if(i.data.length>0){this.show=!0;let o={};t.map(n=>{i.data.map(r=>{(r.task_user||[]).map(d=>d.owner?d.userid:0).indexOf(n)!==-1&&(o[n]||(o[n]=[]),o[n].push(r))})}),this.tipsTask=o,this.isExist=!0}a(this.isExist)})})}}},c={};var A=l(T,C,y,!1,L,null,null,null);function L(t){for(let s in c)this[s]=c[s]}var x=function(){return A.exports}(),I=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"task-editor",on:{click:t.onClickWrap,touchstart:t.onTouchstart}},[e("TEditor",{ref:"desc",attrs:{plugins:t.plugins,options:t.options,"option-full":t.optionFull,placeholder:t.placeholder,placeholderFull:t.placeholderFull,readOnly:t.windowTouch,readOnlyFull:!1,inline:""},on:{"on-blur":t.onBlur,"on-editor-init":t.onEditorInit,"on-transfer-change":t.onTransferChange},model:{value:t.content,callback:function(a){t.content=a},expression:"content"}}),e("div",{directives:[{name:"show",rawName:"v-show",value:t.operateVisible,expression:"operateVisible"}],staticClass:"task-editor-operate",style:t.operateStyles},[e("Dropdown",{attrs:{trigger:"custom",visible:t.operateVisible,transfer:""},on:{"on-clickoutside":function(a){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(a){return t.onEditing.apply(null,arguments)}}},[t._v(t._s(t.$L("\u7F16\u8F91\u63CF\u8FF0")))]),t.operateLink?e("DropdownItem",{nativeOn:{click:function(a){return t.onLinkPreview.apply(null,arguments)}}},[t._v(t._s(t.$L("\u6253\u5F00\u94FE\u63A5")))]):t._e(),t.operateImg?e("DropdownItem",{nativeOn:{click:function(a){return t.onImagePreview.apply(null,arguments)}}},[t._v(t._s(t.$L("\u67E5\u770B\u56FE\u7247")))]):t._e()],1)],1)],1)],1)},S=[];const E={name:"TEditorTask",components:{TEditor:w},props:{value:{default:""},placeholder:{default:""},placeholderFull:{default:""}},data(){return{content:this.value,plugins:["advlist autolink lists link image charmap print preview hr anchor pagebreak","searchreplace visualblocks visualchars code","insertdatetime media nonbreaking save table directionality","emoticons paste codesample","autoresize"],options:{statusbar:!1,menubar:!1,autoresize_bottom_margin:2,min_height:200,max_height:380,contextmenu:"bold italic underline forecolor backcolor | link | codesample | uploadImages imagePreview | preview screenload",valid_elements:"a[href|title|target=_blank],em,strong/b,div[align],span[style],a,br,p,img[src|alt|witdh|height],pre[class],code",extended_valid_elements:"a[href|title|target=_blank]",toolbar:!1},optionFull:{menubar:"file edit view",valid_elements:"a[href|title|target=_blank],em,strong/b,div[align],span[style],a,br,p,img[src|alt|witdh|height],pre[class],code",extended_valid_elements:"a[href|title|target=_blank]",toolbar:"uploadImages | bold italic underline | forecolor backcolor"},operateStyles:{},operateVisible:!1,operateLink:null,operateImg:null,listener:null}},mounted(){var s;let t=this.$parent.$el.parentNode;for(;t;){if((s=t.classList)!=null&&s.contains(".ivu-modal-wrap")){this.listener=t,t.addEventListener("scroll",this.onTouchstart);break}t=t.parentNode}},beforeDestroy(){var t;(t=this.listener)==null||t.removeEventListener("scroll",this.onTouchstart)},computed:{editor(){return this.$refs.desc.editor}},watch:{value(t){this.content=t},content(t){this.$emit("input",t)}},methods:{getContent(){return this.$refs.desc.getContent()},onEditing(){this.$refs.desc.onFull()},onBlur(){this.$emit("on-blur")},onEditorInit(t){this.updateTouchContent(),this.$emit("on-editor-init",t)},onTransferChange(t){t||!this.windowTouch||setTimeout(s=>{this.updateTouchContent(),this.onBlur()},100)},onClickWrap(t){!this.windowTouch||(t.stopPropagation(),this.operateVisible=!1,this.operateLink=t.target.tagName==="A"?t.target.href:null,this.operateImg=t.target.tagName==="IMG"?t.target.src:null,this.$nextTick(()=>{const s=this.$el.getBoundingClientRect();this.operateStyles={left:`${t.clientX-s.left}px`,top:`${t.clientY-s.top}px`},this.operateVisible=!0}))},onTouchstart(){!this.windowTouch||(this.operateVisible=!1)},updateTouchContent(){!this.windowTouch||this.$nextTick(t=>{!this.editor||(this.content?(this.editor.bodyElement.removeAttribute("data-mce-placeholder"),this.editor.bodyElement.removeAttribute("aria-placeholder")):(this.editor.bodyElement.setAttribute("data-mce-placeholder",this.placeholder),this.editor.bodyElement.setAttribute("aria-placeholder",this.placeholder)),this.updateTouchLink(0))})},updateTouchLink(t){!this.windowTouch||setTimeout(s=>{!this.editor||(this.editor.bodyElement.querySelectorAll("a").forEach(e=>{e.__dataMceClick!==!0&&(e.__dataMceClick=!0,e.addEventListener("click",a=>{a.preventDefault(),a.stopPropagation(),this.onClickWrap(a)}))}),t<300&&this.updateTouchLink(t+100))},t)},onLinkPreview(){this.operateLink&&window.open(this.operateLink)},onImagePreview(){const t=this.$refs.desc.getValueImages();if(t.length===0){$A.messageWarning("\u6CA1\u6709\u53EF\u9884\u89C8\u7684\u56FE\u7247");return}let s=Math.max(0,t.findIndex(e=>e.src===this.operateImg));this.$store.dispatch("previewImage",{index:s,list:t})}}},h={};var F=l(E,I,S,!1,O,"4cae6e10",null,null);function O(t){for(let s in h)this[s]=h[s]}var M=function(){return F.exports}(),j=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("Upload",{ref:"upload",attrs:{name:"files",action:"",multiple:"",format:t.uploadFormat,"show-upload-list":!1,"max-size":t.maxSize,"on-format-error":t.handleFormatError,"on-exceeded-size":t.handleMaxSize,"before-upload":t.handleBeforeUpload}})},P=[];const z={name:"TaskUpload",props:{maxSize:{type:Number,default:1024e3}},data(){return{uploadFormat:["jpg","jpeg","webp","png","gif","doc","docx","xls","xlsx","ppt","pptx","txt","esp","pdf","rar","zip","gz","ai","avi","bmp","cdr","eps","mov","mp3","mp4","pr","psd","svg","tif"]}},methods:{handleFormatError(t){$A.modalWarning({title:"\u6587\u4EF6\u683C\u5F0F\u4E0D\u6B63\u786E",content:"\u6587\u4EF6 "+t.name+" \u683C\u5F0F\u4E0D\u6B63\u786E\uFF0C\u4EC5\u652F\u6301\u53D1\u9001\uFF1A"+this.uploadFormat.join(",")})},handleMaxSize(t){$A.modalWarning({title:"\u8D85\u51FA\u6587\u4EF6\u5927\u5C0F\u9650\u5236",content:"\u6587\u4EF6 "+t.name+" \u592A\u5927\uFF0C\u4E0D\u80FD\u53D1\u9001\u8D85\u8FC7"+$A.bytesToSize(this.maxSize*1024)+"\u3002"})},handleBeforeUpload(t){return this.$emit("on-select-file",t),!1},handleClick(){this.$refs.upload.handleClick()}}},u={};var H=l(z,j,P,!1,U,null,null,null);function U(t){for(let s in u)this[s]=u[s]}var V=function(){return H.exports}(),N=function(){var t=this,s=t.$createElement,e=t._self._c||s;return t.ready&&t.taskDetail.parent_id>0?e("li",[e("div",{staticClass:"subtask-icon"},[e("TaskMenu",{ref:`taskMenu_${t.taskDetail.id}`,attrs:{disabled:t.taskId===0,task:t.taskDetail,"load-status":t.taskDetail.loading===!0},on:{"on-update":t.getLogLists}})],1),t.taskDetail.flow_item_name?e("div",{staticClass:"subtask-flow"},[e("span",{class:t.taskDetail.flow_item_status,on:{click:function(a){return a.stopPropagation(),t.openMenu(a,t.taskDetail)}}},[t._v(t._s(t.taskDetail.flow_item_name))])]):t._e(),e("div",{staticClass:"subtask-name"},[e("Input",{ref:"name",attrs:{type:"textarea",rows:1,autosize:{minRows:1,maxRows:8},maxlength:255,enterkeyhint:"done"},on:{"on-blur":function(a){return t.updateBlur("name")},"on-keydown":t.onNameKeydown},model:{value:t.taskDetail.name,callback:function(a){t.$set(t.taskDetail,"name",a)},expression:"taskDetail.name"}})],1),e("DatePicker",{staticClass:"subtask-time",attrs:{open:t.timeOpen,options:t.timeOptions,format:"yyyy/MM/dd HH:mm",type:"datetimerange",placement:"bottom-end",transfer:""},on:{"on-open-change":t.timeChange,"on-change":t.taskTimeChange,"on-clear":t.timeClear,"on-ok":t.timeOk},model:{value:t.timeValue,callback:function(a){t.timeValue=a},expression:"timeValue"}},[!t.taskDetail.complete_at&&t.taskDetail.end_at&&t.taskDetail.end_at!=t.mainEndAt?e("div",{class:["time",t.taskDetail.today?"today":"",t.taskDetail.overdue?"overdue":""],on:{click:t.openTime}},[t._v(" "+t._s(t.expiresFormat(t.taskDetail.end_at))+" ")]):e("Icon",{staticClass:"clock",attrs:{type:"ios-clock-outline"},on:{click:t.openTime}})],1),e("UserSelect",{staticClass:"subtask-avatar",attrs:{"multiple-max":10,"avatar-size":20,title:t.$L("\u4FEE\u6539\u8D1F\u8D23\u4EBA"),"add-icon":!1,"project-id":t.taskDetail.project_id,"before-submit":t.onOwner},model:{value:t.ownerData.owner_userid,callback:function(a){t.$set(t.ownerData,"owner_userid",a)},expression:"ownerData.owner_userid"}})],1):t.ready?e("div",{class:{"task-detail":!0,"open-dialog":t.hasOpenDialog,completed:t.taskDetail.complete_at},style:t.taskDetailStyle},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.taskDetail.id>0,expression:"taskDetail.id > 0"}],staticClass:"task-info"},[e("div",{staticClass:"head"},[e("TaskMenu",{ref:`taskMenu_${t.taskDetail.id}`,staticClass:"icon",attrs:{disabled:t.taskId===0,task:t.taskDetail,size:"medium","color-show":!1},on:{"on-update":t.getLogLists}}),t.taskDetail.flow_item_name?e("div",{staticClass:"flow"},[e("span",{class:t.taskDetail.flow_item_status,on:{click:function(a){return a.stopPropagation(),t.openMenu(a,t.taskDetail)}}},[t._v(t._s(t.taskDetail.flow_item_name))])]):t._e(),t.taskDetail.archived_at?e("div",{staticClass:"flow"},[e("span",{staticClass:"archived",on:{click:function(a){return a.stopPropagation(),t.openMenu(a,t.taskDetail)}}},[t._v(t._s(t.$L("\u5DF2\u5F52\u6863")))])]):t._e(),e("div",{staticClass:"nav"},[t.projectName?e("p",[e("span",[t._v(t._s(t.projectName))])]):t._e(),t.columnName?e("p",[e("span",[t._v(t._s(t.columnName))])]):t._e(),t.taskDetail.id?e("p",[e("span",[t._v(t._s(t.taskDetail.id))])]):t._e()]),e("div",{staticClass:"function"},[t.getOwner.length===0?e("EPopover",{attrs:{placement:"bottom"},model:{value:t.receiveShow,callback:function(a){t.receiveShow=a},expression:"receiveShow"}},[e("div",{staticClass:"task-detail-receive"},[e("div",{staticClass:"receive-title"},[e("Icon",{attrs:{type:"ios-help-circle"}}),t._v(" "+t._s(t.$L("\u786E\u8BA4\u8BA1\u5212\u65F6\u95F4\u9886\u53D6\u4EFB\u52A1"))+" ")],1),e("div",{staticClass:"receive-time"},[e("DatePicker",{attrs:{options:t.timeOptions,format:"yyyy/MM/dd HH:mm",type:"datetimerange",placeholder:t.$L("\u8BF7\u8BBE\u7F6E\u8BA1\u5212\u65F6\u95F4"),clearable:!1,editable:!1},on:{"on-change":t.taskTimeChange},model:{value:t.timeValue,callback:function(a){t.timeValue=a},expression:"timeValue"}})],1),e("div",{staticClass:"receive-bottom"},[e("Button",{attrs:{size:"small",type:"text"},on:{click:function(a){t.receiveShow=!1}}},[t._v("\u53D6\u6D88")]),e("Button",{attrs:{loading:t.ownerLoad>0,size:"small",type:"primary"},on:{click:function(a){return t.onOwner(!0)}}},[t._v("\u786E\u5B9A")])],1)]),e("Button",{staticClass:"pick",attrs:{slot:"reference",loading:t.ownerLoad>0,type:"primary"},slot:"reference"},[t._v(t._s(t.$L("\u6211\u8981\u9886\u53D6\u4EFB\u52A1")))])],1):t._e(),t.$Electron?e("ETooltip",{attrs:{disabled:t.$isEEUiApp||t.windowTouch,content:t.$L("\u65B0\u7A97\u53E3\u6253\u5F00")}},[e("i",{staticClass:"taskfont open",on:{click:t.openNewWin}},[t._v("\uE776")])]):t._e(),e("div",{staticClass:"menu"},[e("TaskMenu",{attrs:{disabled:t.taskId===0,task:t.taskDetail,icon:"ios-more","completed-icon":"ios-more",size:"medium","color-show":!1},on:{"on-update":t.getLogLists}})],1)],1)],1),e("Scrollbar",{staticClass:"scroller"},[e("div",{staticClass:"title"},[e("Input",{ref:"name",attrs:{type:"textarea",rows:1,autosize:{minRows:1,maxRows:8},maxlength:255,enterkeyhint:"done"},on:{"on-blur":function(a){return t.updateBlur("name")},"on-keydown":t.onNameKeydown},model:{value:t.taskDetail.name,callback:function(a){t.$set(t.taskDetail,"name",a)},expression:"taskDetail.name"}})],1),e("TEditorTask",{ref:"desc",staticClass:"desc",attrs:{value:t.taskContent,placeholder:t.$L("\u8BE6\u7EC6\u63CF\u8FF0...")},on:{"on-blur":function(a){return t.updateBlur("content")}}}),e("Form",{staticClass:"items",attrs:{"label-position":"left","label-width":"auto"},nativeOn:{submit:function(a){a.preventDefault()}}},[t.taskDetail.p_name?e("FormItem",[e("div",{staticClass:"item-label",attrs:{slot:"label"},slot:"label"},[e("i",{staticClass:"taskfont"},[t._v("\uE6EC")]),t._v(t._s(t.$L("\u4F18\u5148\u7EA7"))+" ")]),e("ul",{staticClass:"item-content"},[e("li",[e("EDropdown",{ref:"priority",attrs:{trigger:"click",placement:"bottom"},on:{command:function(a){return t.updateData("priority",a)}}},[e("TaskPriority",{attrs:{backgroundColor:t.taskDetail.p_color}},[t._v(t._s(t.taskDetail.p_name))]),e("EDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},t._l(t.taskPriority,function(a,i){return e("EDropdownItem",{key:i,attrs:{command:a}},[e("i",{staticClass:"taskfont",style:{color:a.color},domProps:{innerHTML:t._s(t.taskDetail.p_name==a.name?"":"")}}),t._v(" "+t._s(a.name)+" ")])}),1)],1)],1)])]):t._e(),t.getOwner.length>0?e("FormItem",[e("div",{staticClass:"item-label",attrs:{slot:"label"},slot:"label"},[e("i",{staticClass:"taskfont"},[t._v("\uE6E4")]),t._v(t._s(t.$L("\u8D1F\u8D23\u4EBA"))+" ")]),e("UserSelect",{staticClass:"item-content user",attrs:{"multiple-max":10,"avatar-size":28,title:t.$L("\u4FEE\u6539\u8D1F\u8D23\u4EBA"),"project-id":t.taskDetail.project_id,"add-icon":!1,"before-submit":t.onOwner},model:{value:t.ownerData.owner_userid,callback:function(a){t.$set(t.ownerData,"owner_userid",a)},expression:"ownerData.owner_userid"}})],1):t._e(),t.getAssist.length>0||t.assistForce?e("FormItem",[e("div",{staticClass:"item-label",attrs:{slot:"label"},slot:"label"},[e("i",{staticClass:"taskfont"},[t._v("\uE63F")]),t._v(t._s(t.$L("\u534F\u52A9\u4EBA\u5458"))+" ")]),e("UserSelect",{ref:"assist",staticClass:"item-content user",attrs:{"multiple-max":10,"avatar-size":28,title:t.$L(t.getAssist.length>0?"\u4FEE\u6539\u534F\u52A9\u4EBA\u5458":"\u6DFB\u52A0\u534F\u52A9\u4EBA\u5458"),"project-id":t.taskDetail.project_id,"disabled-choice":t.assistData.disabled,"add-icon":!1,"before-submit":t.onAssist},model:{value:t.assistData.assist_userid,callback:function(a){t.$set(t.assistData,"assist_userid",a)},expression:"assistData.assist_userid"}})],1):t._e(),t.taskDetail.is_all_visible>1||t.visibleForce||t.visibleKeep?e("FormItem",[e("div",{staticClass:"item-label",attrs:{slot:"label"},slot:"label"},[e("i",{staticClass:"taskfont"},[t._v("\uE77B")]),e("EDropdown",{ref:"eDropdownRef",attrs:{trigger:"click",placement:"bottom"},on:{command:t.dropVisible}},[e("span",{staticClass:"visibility-text color"},[t._v(t._s(t.$L("\u53EF\u89C1\u6027"))+" "),e("i",{staticClass:"taskfont"},[t._v("\uE740")])]),e("EDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},[e("EDropdownItem",{attrs:{command:1}},[e("div",{staticClass:"task-menu-icon"},[t.taskDetail.is_all_visible==1?e("Icon",{staticClass:"completed",attrs:{type:"md-checkmark-circle"}}):e("Icon",{staticClass:"uncomplete",attrs:{type:"md-radio-button-off"}}),t._v(" "+t._s(t.$L("\u9879\u76EE\u4EBA\u5458"))+" ")],1)]),e("EDropdownItem",{attrs:{command:2}},[e("div",{staticClass:"task-menu-icon"},[t.taskDetail.is_all_visible==2?e("Icon",{staticClass:"completed",attrs:{type:"md-checkmark-circle"}}):e("Icon",{staticClass:"uncomplete",attrs:{type:"md-radio-button-off"}}),t._v(" "+t._s(t.$L("\u4EFB\u52A1\u4EBA\u5458"))+" ")],1)]),e("EDropdownItem",{attrs:{command:3}},[e("div",{staticClass:"task-menu-icon"},[t.taskDetail.is_all_visible==3?e("Icon",{staticClass:"completed",attrs:{type:"md-checkmark-circle"}}):e("Icon",{staticClass:"uncomplete",attrs:{type:"md-radio-button-off"}}),t._v(" "+t._s(t.$L("\u6307\u5B9A\u6210\u5458"))+" ")],1)])],1)],1)],1),e("div",{staticClass:"item-content user"},[t.taskDetail.is_all_visible==1?e("span",{staticClass:"visibility-text",on:{click:t.showCisibleDropdown}},[t._v(t._s(t.$L("\u9879\u76EE\u4EBA\u5458\u53EF\u89C1")))]):t.taskDetail.is_all_visible==2?e("span",{staticClass:"visibility-text",on:{click:t.showCisibleDropdown}},[t._v(t._s(t.$L("\u4EFB\u52A1\u4EBA\u5458\u53EF\u89C1")))]):e("UserSelect",{ref:"visibleUserSelectRef",attrs:{"avatar-size":28,title:t.$L("\u9009\u62E9\u6307\u5B9A\u4EBA\u5458"),"project-id":t.taskDetail.project_id,"add-icon":!1},on:{"on-show-change":t.visibleUserSelectShowChange},model:{value:t.taskDetail.visibility_appointor,callback:function(a){t.$set(t.taskDetail,"visibility_appointor",a)},expression:"taskDetail.visibility_appointor"}})],1)]):t._e(),t.taskDetail.end_at||t.timeForce?e("FormItem",[e("div",{staticClass:"item-label",attrs:{slot:"label"},slot:"label"},[e("i",{staticClass:"taskfont"},[t._v("\uE6E8")]),t._v(t._s(t.$L("\u622A\u6B62\u65F6\u95F4"))+" ")]),e("ul",{staticClass:"item-content"},[e("li",[e("DatePicker",{attrs:{open:t.timeOpen,options:t.timeOptions,format:"yyyy/MM/dd HH:mm",type:"datetimerange",transfer:""},on:{"on-open-change":t.timeChange,"on-change":t.taskTimeChange,"on-clear":t.timeClear,"on-ok":t.timeOk},model:{value:t.timeValue,callback:function(a){t.timeValue=a},expression:"timeValue"}},[e("div",{staticClass:"picker-time"},[e("div",{staticClass:"time",on:{click:t.openTime}},[t._v(t._s(t.taskDetail.end_at?t.cutTime:"--"))]),!t.taskDetail.complete_at&&t.taskDetail.end_at?[t.within24Hours(t.taskDetail.end_at)?e("Tag",{attrs:{color:"blue"}},[e("i",{staticClass:"taskfont"},[t._v("\uE71D")]),t._v(t._s(t.expiresFormat(t.taskDetail.end_at)))]):t._e(),t.isOverdue(t.taskDetail)?e("Tag",{attrs:{color:"red"}},[t._v(t._s(t.$L("\u8D85\u671F\u672A\u5B8C\u6210")))]):t._e()]:t._e()],2)])],1)])]):t._e(),t.taskDetail.loop&&t.taskDetail.loop!="never"||t.loopForce?e("FormItem",[e("div",{staticClass:"item-label",attrs:{slot:"label"},slot:"label"},[e("i",{staticClass:"taskfont"},[t._v("\uE93F")]),t._v(t._s(t.$L("\u91CD\u590D\u5468\u671F"))+" ")]),e("ul",{staticClass:"item-content"},[e("li",[e("EDropdown",{ref:"loop",attrs:{trigger:"click",placement:"bottom"},on:{command:function(a){return t.updateData("loop",a)}}},[e("ETooltip",{attrs:{disabled:t.$isEEUiApp||t.windowTouch||!t.taskDetail.loop_at,content:`${t.$L("\u4E0B\u4E2A\u5468\u671F")}: ${t.taskDetail.loop_at}`,placement:"right"}},[e("span",[t._v(t._s(t.$L(t.loopLabel(t.taskDetail.loop))))])]),e("EDropdownMenu",{staticClass:"task-detail-loop",attrs:{slot:"dropdown"},slot:"dropdown"},t._l(t.loops,function(a){return e("EDropdownItem",{key:a.key,attrs:{command:a.key}},[t._v(" "+t._s(t.$L(a.label))+" ")])}),1)],1)],1)])]):t._e(),t.fileList.length>0?e("FormItem",[e("div",{staticClass:"item-label",attrs:{slot:"label"},slot:"label"},[e("i",{staticClass:"taskfont"},[t._v("\uE6E6")]),t._v(t._s(t.$L("\u9644\u4EF6"))+" ")]),e("ul",{staticClass:"item-content file"},[t.taskDetail.file_num>50?e("li",{staticClass:"tip"},[t._v(t._s(t.$L(`\u5171${t.taskDetail.file_num}\u4E2A\u6587\u4EF6\uFF0C\u4EC5\u663E\u793A\u6700\u65B050\u4E2A`)))]):t._e(),t._l(t.fileList,function(a){return e("li",[a.id?e("img",{staticClass:"file-ext",attrs:{src:a.thumb}}):e("Loading",{staticClass:"file-load"}),e("div",{staticClass:"file-name"},[t._v(t._s(a.name))]),e("div",{staticClass:"file-size"},[t._v(t._s(t.$A.bytesToSize(a.size)))]),e("div",{staticClass:"file-menu",class:{show:a._show_menu}},[e("Icon",{attrs:{type:"md-eye"},on:{click:function(i){return t.viewFile(a)}}}),e("Icon",{attrs:{type:"md-arrow-round-down"},on:{click:function(i){return t.downFile(a)}}}),e("EPopover",{staticClass:"file-delete",model:{value:a._show_menu,callback:function(i){t.$set(a,"_show_menu",i)},expression:"file._show_menu"}},[e("div",{staticClass:"task-detail-delete-file-popover"},[e("p",[t._v(t._s(t.$L("\u4F60\u786E\u5B9A\u8981\u5220\u9664\u8FD9\u4E2A\u6587\u4EF6\u5417\uFF1F")))]),e("div",{staticClass:"buttons"},[e("Button",{attrs:{size:"small",type:"text"},on:{click:function(i){a._show_menu=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{size:"small",type:"primary"},on:{click:function(i){return t.deleteFile(a)}}},[t._v(t._s(t.$L("\u786E\u5B9A")))])],1)]),e("i",{staticClass:"taskfont del",attrs:{slot:"reference"},slot:"reference"},[t._v("\uE6EA")])])],1)],1)})],2),e("ul",{staticClass:"item-content"},[e("li",[e("div",{staticClass:"add-button",on:{click:function(a){return t.onUploadClick(!0)}}},[e("i",{staticClass:"taskfont"},[t._v("\uE6F2")]),e("span",[t._v(t._s(t.$L("\u6DFB\u52A0\u9644\u4EF6")))])])])])]):t._e(),t.subList.length>0||t.addsubForce?e("FormItem",[e("div",{staticClass:"item-label",attrs:{slot:"label"},slot:"label"},[e("i",{staticClass:"taskfont"},[t._v("\uE6F0")]),t._v(t._s(t.$L("\u5B50\u4EFB\u52A1"))+" ")]),e("ul",{staticClass:"item-content subtask"},t._l(t.subList,function(a,i){return e("TaskDetail",{key:i,ref:`subTask_${a.id}`,refInFor:!0,attrs:{"task-id":a.id,"open-task":a,"main-end-at":t.taskDetail.end_at,"can-update-blur":t.canUpdateBlur}})}),1),e("ul",{class:["item-content",t.subList.length===0?"nosub":""]},[e("li",[t.addsubShow?e("Input",{ref:"addsub",staticClass:"add-input",class:{loading:t.addsubLoad>0},attrs:{placeholder:t.$L("+ \u8F93\u5165\u5B50\u4EFB\u52A1\uFF0C\u56DE\u8F66\u6DFB\u52A0\u5B50\u4EFB\u52A1"),icon:t.addsubLoad>0?"ios-loading":"",enterkeyhint:"done"},on:{"on-blur":t.addsubChackClose,"on-keydown":t.addsubKeydown},model:{value:t.addsubName,callback:function(a){t.addsubName=a},expression:"addsubName"}}):e("div",{staticClass:"add-button",on:{click:t.addsubOpen}},[e("i",{staticClass:"taskfont"},[t._v("\uE6F2")]),e("span",[t._v(t._s(t.$L("\u6DFB\u52A0\u5B50\u4EFB\u52A1")))])])],1)])]):t._e()],1),t.menuList.length>0?e("div",{staticClass:"add"},[e("EDropdown",{attrs:{trigger:"click",placement:"bottom"},on:{command:t.dropAdd}},[e("div",{staticClass:"add-button"},[e("i",{staticClass:"taskfont"},[t._v("\uE6F2")]),e("span",[t._v(t._s(t.$L("\u6DFB\u52A0")))]),e("em",[t._v(t._s(t.menuText))])]),e("EDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},t._l(t.menuList,function(a,i){return e("EDropdownItem",{key:i,attrs:{command:a.command}},[e("div",{staticClass:"item"},[e("i",{staticClass:"taskfont",domProps:{innerHTML:t._s(a.icon)}}),t._v(t._s(t.$L(a.name))+" ")])])}),1)],1)],1):t._e()],1),e("TaskUpload",{ref:"upload",staticClass:"upload",on:{"on-select-file":t.onSelectFile}})],1),e("div",{directives:[{name:"show",rawName:"v-show",value:t.taskDetail.id>0,expression:"taskDetail.id > 0"}],staticClass:"task-dialog",style:t.dialogStyle},[t.hasOpenDialog?[t.taskId>0?e("DialogWrapper",{ref:"dialog",attrs:{"dialog-id":t.taskDetail.dialog_id}},[e("div",{staticClass:"head",attrs:{slot:"head"},slot:"head"},[e("Icon",{staticClass:"icon",attrs:{type:"ios-chatbubbles-outline"}}),e("div",{staticClass:"nav"},[e("p",{class:{active:t.navActive=="dialog"},on:{click:function(a){t.navActive="dialog"}}},[t._v(t._s(t.$L("\u804A\u5929")))]),e("p",{class:{active:t.navActive=="log"},on:{click:function(a){t.navActive="log"}}},[t._v(t._s(t.$L("\u52A8\u6001")))]),t.navActive=="log"?e("div",{staticClass:"refresh"},[t.logLoadIng?e("Loading"):e("Icon",{attrs:{type:"ios-refresh"},on:{click:t.getLogLists}})],1):t._e()])],1)]):t._e(),t.navActive=="log"&&t.taskId>0?e("ProjectLog",{ref:"log",attrs:{"task-id":t.taskDetail.id},on:{"on-load-change":t.logLoadChange}}):t._e()]:e("div",[e("div",{staticClass:"head"},[e("Icon",{staticClass:"icon",attrs:{type:"ios-chatbubbles-outline"}}),e("div",{staticClass:"nav"},[e("p",{class:{active:t.navActive=="dialog"},on:{click:function(a){t.navActive="dialog"}}},[t._v(t._s(t.$L("\u804A\u5929")))]),e("p",{class:{active:t.navActive=="log"},on:{click:function(a){t.navActive="log"}}},[t._v(t._s(t.$L("\u52A8\u6001")))]),t.navActive=="log"?e("div",{staticClass:"refresh"},[t.logLoadIng?e("Loading"):e("Icon",{attrs:{type:"ios-refresh"},on:{click:t.getLogLists}})],1):t._e()]),e("div",{staticClass:"menu"},[t.navActive=="dialog"&&t.taskDetail.msg_num>0?e("div",{staticClass:"menu-item",on:{click:function(a){return a.stopPropagation(),t.onSend("open")}}},[t.openLoad>0?e("div",{staticClass:"menu-load"},[e("Loading")],1):t._e(),t._v(" "+t._s(t.$L("\u4EFB\u52A1\u804A\u5929"))+" "),e("em",[t._v("("+t._s(t.taskDetail.msg_num>999?"999+":t.taskDetail.msg_num)+")")]),e("i",{staticClass:"taskfont"},[t._v("\uE703")])]):t._e()])],1),t.navActive=="log"&&t.taskId>0?e("ProjectLog",{ref:"log",attrs:{"task-id":t.taskDetail.id,"show-load":!1},on:{"on-load-change":t.logLoadChange}}):e("div",{staticClass:"no-dialog",on:{drop:function(a){return a.preventDefault(),t.taskPasteDrag(a,"drag")},dragover:function(a){return a.preventDefault(),t.taskDragOver(!0,a)},dragleave:function(a){return a.preventDefault(),t.taskDragOver(!1,a)}}},[e("div",{staticClass:"no-tip"},[t._v(t._s(t.$L("\u6682\u65E0\u6D88\u606F")))]),e("div",{staticClass:"no-input"},[e("ChatInput",{ref:"chatInput",attrs:{"task-id":t.taskId,loading:t.sendLoad>0,maxlength:2e5,placeholder:t.$L("\u8F93\u5165\u6D88\u606F..."),"send-menu":!1},on:{"on-more":t.onEventMore,"on-file":t.onSelectFile,"on-record":t.onRecord,"on-send":t.onSend},model:{value:t.msgText,callback:function(a){t.msgText=a},expression:"msgText"}})],1),t.dialogDrag?e("div",{staticClass:"drag-over",on:{click:function(a){t.dialogDrag=!1}}},[e("div",{staticClass:"drag-text"},[t._v(t._s(t.$L("\u62D6\u52A8\u5230\u8FD9\u91CC\u53D1\u9001")))])]):t._e()])],1)],2),t.taskDetail.id?t._e():e("div",{staticClass:"task-load"},[e("Loading")],1),e("TaskExistTips",{ref:"taskExistTipsRef",on:{onAdd:function(a){return t.updateData("times",t.updateParams)}}})],1):t._e()},B=[];const R={name:"TaskDetail",components:{TEditorTask:M,UserSelect:D,TaskExistTips:x,ChatInput:v,TaskMenu:b,ProjectLog:_,DialogWrapper:g,TaskUpload:V,TaskPriority:k},props:{taskId:{type:Number,default:0},openTask:{type:Object,default:()=>({})},mainEndAt:{default:null},canUpdateBlur:{type:Boolean,default:!0},modalMode:{type:Boolean,default:!1}},data(){return{ready:!1,taskDetail:{},ownerData:{},ownerLoad:0,receiveShow:!1,assistForce:!1,assistData:{},assistLoad:0,visibleForce:!1,addsubForce:!1,addsubShow:!1,addsubName:"",addsubLoad:0,timeForce:!1,timeOpen:!1,timeValue:[],timeOptions:{shortcuts:$A.timeOptionShortcuts()},loopForce:!1,nowTime:$A.Time(),nowInterval:null,msgText:"",msgFile:[],msgRecord:{},navActive:"dialog",logLoadIng:!1,sendLoad:0,openLoad:0,dialogDrag:!1,imageAttachment:!0,receiveTaskSubscribe:null,loops:[{key:"never",label:"\u4ECE\u4E0D"},{key:"day",label:"\u6BCF\u5929"},{key:"weekdays",label:"\u6BCF\u4E2A\u5DE5\u4F5C\u65E5"},{key:"week",label:"\u6BCF\u5468"},{key:"twoweeks",label:"\u6BCF\u4E24\u5468"},{key:"month",label:"\u6BCF\u6708"},{key:"year",label:"\u6BCF\u5E74"},{key:"custom",label:"\u81EA\u5B9A\u4E49"}],updateParams:{}}},created(){const t=$A.getObject(this.$route.query,"navActive");["dialog","log"].includes(t)&&(this.navActive=t)},mounted(){this.nowInterval=setInterval(()=>{this.nowTime=$A.Time()},1e3),this.receiveTaskSubscribe=p.Store.subscribe("receiveTask",()=>{this.receiveShow=!0})},destroyed(){clearInterval(this.nowInterval),this.receiveTaskSubscribe&&(this.receiveTaskSubscribe.unsubscribe(),this.receiveTaskSubscribe=null)},computed:{...f(["systemConfig","cacheProjects","cacheColumns","cacheTasks","taskContents","taskFiles","taskPriority","dialogId"]),projectName(){if(!this.taskDetail.project_id)return"";if(this.taskDetail.project_name)return this.taskDetail.project_name;const t=this.cacheProjects.find(({id:s})=>s==this.taskDetail.project_id);return t?t.name:""},columnName(){if(!this.taskDetail.column_id)return"";if(this.taskDetail.column_name)return this.taskDetail.column_name;const t=this.cacheColumns.find(({id:s})=>s==this.taskDetail.column_id);return t?t.name:""},taskContent(){if(!this.taskId)return"";let t=this.taskContents.find(({task_id:s})=>s==this.taskId);return t?t.content:""},fileList(){return this.taskId?this.taskFiles.filter(({task_id:t})=>t==this.taskId).sort((t,s)=>s.id-t.id):[]},subList(){return this.taskId?this.cacheTasks.filter(t=>t.parent_id==this.taskId).sort((t,s)=>t.id-s.id):[]},hasOpenDialog(){return this.taskDetail.dialog_id>0&&this.windowLandscape},dialogStyle(){const{windowHeight:t,hasOpenDialog:s}=this,e=Math.min(1100,t);if(!e)return{};if(!s)return{};const a=e>900?200:70;return{minHeight:e-a-48+"px"}},taskDetailStyle(){const{modalMode:t,windowHeight:s,hasOpenDialog:e}=this,a=Math.min(1100,s);if(t&&e){const i=a>900?200:70;return{maxHeight:a-i-30+"px"}}return{}},cutTime(){const{taskDetail:t}=this;let s=$A.Date(t.start_at,!0),e=$A.Date(t.end_at,!0),a="";return $A.formatDate("Y/m/d",s)==$A.formatDate("Y/m/d",e)?a=$A.formatDate("Y/m/d H:i",s)+" ~ "+$A.formatDate("H:i",e):$A.formatDate("Y",s)==$A.formatDate("Y",e)?(a=$A.formatDate("Y/m/d H:i",s)+" ~ "+$A.formatDate("m/d H:i",e),a=a.replace(/( 00:00| 23:59)/g,"")):(a=$A.formatDate("Y/m/d H:i",s)+" ~ "+$A.formatDate("Y/m/d H:i",e),a=a.replace(/( 00:00| 23:59)/g,"")),a},getOwner(){const{taskDetail:t}=this;return $A.isArray(t.task_user)?t.task_user.filter(({owner:s})=>s===1).sort((s,e)=>s.id-e.id):[]},getAssist(){const{taskDetail:t}=this;return $A.isArray(t.task_user)?t.task_user.filter(({owner:s})=>s===0).sort((s,e)=>s.id-e.id):[]},menuList(){const{taskDetail:t}=this,s=[];return t.p_name||s.push({command:"priority",icon:"",name:"\u4F18\u5148\u7EA7"}),$A.isArray(t.task_user)&&t.task_user.find(({owner:e})=>e===0)||s.push({command:"assist",icon:"",name:"\u534F\u52A9\u4EBA\u5458"}),t.is_all_visible<=1&&!this.visibleKeep&&s.push({command:"visible",icon:"",name:"\u53EF\u89C1\u6027"}),t.end_at||s.push({command:"times",icon:"",name:"\u622A\u6B62\u65F6\u95F4"}),(!t.loop||t.loop=="never")&&s.push({command:"loop",icon:"",name:"\u91CD\u590D\u5468\u671F"}),this.fileList.length==0&&s.push({command:"file",icon:"",name:"\u9644\u4EF6"}),this.subList.length==0&&s.push({command:"subtask",icon:"",name:"\u5B50\u4EFB\u52A1"}),s},menuText(){const{menuList:t}=this;let s="";return t.length>0&&t.forEach((e,a)=>{a>0&&(s+=" / "),s+=this.$L(e.name)}),s},visibleKeep(){return this.systemConfig.task_visible==="open"}},watch:{openTask:{handler(t){this.taskDetail=$A.cloneJSON(t),this.__openTask&&clearTimeout(this.__openTask),this.__openTask=setTimeout(s=>{var e;return(e=this.$refs.name)==null?void 0:e.resizeTextarea()},100)},immediate:!0,deep:!0},taskId:{handler(t){t>0?this.ready=!0:(this.windowPortrait&&$A.onBlur(),this.timeOpen=!1,this.timeForce=!1,this.loopForce=!1,this.assistForce=!1,this.visibleForce=!1,this.addsubForce=!1,this.receiveShow=!1,this.$refs.chatInput&&this.$refs.chatInput.hidePopover())},immediate:!0},getOwner:{handler(t){const s=t.map(({userid:e})=>e);this.$set(this.taskDetail,"owner_userid",s),this.$set(this.ownerData,"owner_userid",s),this.$set(this.assistData,"disabled",t.map(({userid:e})=>e).filter(e=>e!=this.userId))},immediate:!0},getAssist:{handler(t){const s=t.map(({userid:e})=>e);this.$set(this.taskDetail,"assist_userid",s),this.$set(this.assistData,"assist_userid",s)},immediate:!0},receiveShow(t){t&&(this.timeValue=this.taskDetail.end_at?[this.taskDetail.start_at,this.taskDetail.end_at]:[])},"taskDetail.visibility_appointor":{handler(t){(t==null?void 0:t.length)>0&&t[0]&&(this.taskDetail.is_all_visible=3,this.updateVisible())},immediate:!0}},methods:{within24Hours(t){return $A.Date(t,!0)-this.nowTime<86400},expiresFormat(t){return $A.countDownFormat(t,this.nowTime)},isOverdue(t){return t.overdue?!0:$A.Date(t.end_at,!0)e.key===t);return s?s.label:t?`\u6BCF${t}\u5929`:"\u4ECE\u4E0D"},onNameKeydown(t){t.keyCode===13&&(t.shiftKey||(t.preventDefault(),this.updateData("name")))},checkUpdate(t){let s=!1;if(this.openTask.name!=this.taskDetail.name)if(s=!0,t===!0)this.updateData("name");else return t===!1&&this.$refs.name.focus(),!0;if(this.$refs.desc&&this.$refs.desc.getContent()!=this.taskContent)if(s=!0,t===!0)this.updateData("content");else return t===!1&&this.$refs.desc.focus(),!0;if(this.addsubShow&&this.addsubName)if(s=!0,t===!0)this.onAddsub();else return t===!1&&this.$refs.addsub.focus(),!0;return this.subList.some(({id:e})=>{this.$refs[`subTask_${e}`][0].checkUpdate(t)&&(s=!0)}),s},updateBlur(t,s){this.canUpdateBlur&&this.updateData(t,s)},updateData(t,s){let e=null;switch(t){case"priority":this.$set(this.taskDetail,"p_level",s.priority),this.$set(this.taskDetail,"p_name",s.name),this.$set(this.taskDetail,"p_color",s.color),t=["p_level","p_name","p_color"];break;case"times":if(this.taskDetail.start_at&&(Math.abs($A.Time(this.taskDetail.start_at)-$A.Time(s.start_at))>60||Math.abs($A.Time(this.taskDetail.end_at)-$A.Time(s.end_at))>60)&&typeof s.desc=="undefined"){$A.modalInput({title:`\u4FEE\u6539${this.taskDetail.parent_id>0?"\u5B50\u4EFB\u52A1":"\u4EFB\u52A1"}\u65F6\u95F4`,placeholder:"\u8BF7\u8F93\u5165\u4FEE\u6539\u5907\u6CE8",okText:"\u786E\u5B9A",onOk:o=>o?(this.updateParams=Object.assign(s,{desc:o}),s.start_at&&s.end_at&&this.$refs.taskExistTipsRef?this.$refs.taskExistTipsRef.isExistTask({taskid:this.taskDetail.id,userids:this.taskDetail.owner_userid,timerange:[s.start_at,s.end_at]}).then(n=>{n||this.updateData("times",this.updateParams)}):this.updateData("times",this.updateParams),!1):"\u8BF7\u8F93\u5165\u4FEE\u6539\u5907\u6CE8"});return}this.$set(this.taskDetail,"times",[s.start_at,s.end_at,s.desc]);break;case"loop":if(s==="custom"){this.customLoop();return}this.$set(this.taskDetail,"loop",s);break;case"content":const i=this.$refs.desc.getContent();if(i==this.taskContent)return;this.$set(this.taskDetail,"content",i),e=()=>{this.$store.dispatch("saveTaskContent",{task_id:this.taskId,content:i})};break}let a={task_id:this.taskDetail.id};($A.isArray(t)?t:[t]).forEach(i=>{let o=this.taskDetail[i],n=this.openTask[i];$A.jsonStringify(o)!=$A.jsonStringify(n)&&(a[i]=o)}),!(Object.keys(a).length<=1)&&this.$store.dispatch("taskUpdate",a).then(({msg:i})=>{$A.messageSuccess(i),typeof e=="function"&&e()}).catch(({msg:i})=>{$A.modalError(i)})},customLoop(){let t=this.taskDetail.loop||1;$A.Modal.confirm({render:s=>s("div",[s("div",{style:{fontSize:"16px",fontWeight:"500",marginBottom:"20px"}},this.$L("\u91CD\u590D\u5468\u671F")),s("Input",{style:{width:"160px",margin:"0 auto"},props:{type:"number",value:t,maxlength:3},on:{input:e=>{t=$.runNum(e)}}},[s("span",{slot:"prepend"},this.$L("\u6BCF")),s("span",{slot:"append"},this.$L("\u5929"))])]),onOk:s=>{this.$Modal.remove(),t>0&&this.updateData("loop",t)},loading:!0,okText:this.$L("\u786E\u5B9A"),cancelText:this.$L("\u53D6\u6D88")})},async taskTimeChange(){const t=$A.date2string(this.timeValue,"Y-m-d H:i");$A.rightExists(t[0],"00:00")&&$A.rightExists(t[1],"00:00")&&(this.timeValue=await this.$store.dispatch("taskDefaultTime",t))},async onOwner(t){let s={task_id:this.taskDetail.id,owner:this.ownerData.owner_userid};if(t===!0){if(this.getOwner.length>0){this.receiveShow=!1,$A.messageError("\u4EFB\u52A1\u5DF2\u88AB\u9886\u53D6");return}const e=$A.date2string(this.timeValue,"Y-m-d H:i");if(!(e[0]&&e[1])){$A.messageError("\u8BF7\u8BBE\u7F6E\u8BA1\u5212\u65F6\u95F4");return}s.times=e,s.owner=this.ownerData.owner_userid=[this.userId]}if($A.jsonStringify(this.taskDetail.owner_userid)!==$A.jsonStringify(this.ownerData.owner_userid))return $A.count(s.owner)==0&&(s.owner=""),this.ownerLoad++,new Promise((e,a)=>{this.$store.dispatch("taskUpdate",s).then(({msg:i})=>{$A.messageSuccess(i),this.ownerLoad--,this.receiveShow=!1,this.$store.dispatch("getTaskOne",this.taskDetail.id).catch(()=>{}),e()}).catch(({msg:i})=>{$A.modalError(i),this.ownerLoad--,this.receiveShow=!1,a()})})},onAssist(){if($A.jsonStringify(this.taskDetail.assist_userid)!==$A.jsonStringify(this.assistData.assist_userid))return new Promise((t,s)=>{this.getOwner.find(({userid:e})=>e===this.userId)&&this.assistData.assist_userid.find(e=>e===this.userId)?$A.modalConfirm({content:"\u4F60\u5F53\u524D\u662F\u8D1F\u8D23\u4EBA\uFF0C\u786E\u5B9A\u8981\u8F6C\u4E3A\u534F\u52A9\u4EBA\u5458\u5417\uFF1F",cancelText:"\u53D6\u6D88",okText:"\u786E\u5B9A",onOk:()=>{this.onAssistConfirm().then(t).catch(s)},onCancel:()=>{s()}}):this.onAssistConfirm().then(t).catch(s)})},onAssistConfirm(){return new Promise((t,s)=>{let e=this.assistData.assist_userid;e.length===0&&(e=!1),this.assistLoad++,this.$store.dispatch("taskUpdate",{task_id:this.taskDetail.id,assist:e}).then(({msg:a})=>{$A.messageSuccess(a),this.assistLoad--,this.$store.dispatch("getTaskOne",this.taskDetail.id).catch(()=>{}),t()}).catch(({msg:a})=>{$A.modalError(a),this.assistLoad--,s()})})},openTime(){this.timeOpen=!this.timeOpen,this.timeOpen&&(this.timeValue=this.taskDetail.end_at?[this.taskDetail.start_at,this.taskDetail.end_at]:[])},timeChange(t){t||(this.timeOpen=!1)},timeClear(){this.updateData("times",{start_at:!1,end_at:!1}),this.timeOpen=!1},timeOk(){const t=$A.date2string(this.timeValue,"Y-m-d H:i");this.updateData("times",{start_at:t[0],end_at:t[1]}),this.timeOpen=!1},addsubOpen(){this.addsubShow=!0,this.$nextTick(()=>{this.$refs.addsub.focus()})},addsubChackClose(){this.addsubName==""&&(this.addsubShow=!1)},addsubKeydown(t){if(t.keyCode===13){if(t.shiftKey||this.addsubLoad>0)return;t.preventDefault(),this.onAddsub()}},onAddsub(){if(this.addsubName==""){$A.messageError("\u4EFB\u52A1\u63CF\u8FF0\u4E0D\u80FD\u4E3A\u7A7A");return}this.addsubLoad++,this.$store.dispatch("taskAddSub",{task_id:this.taskDetail.id,name:this.addsubName}).then(({msg:t})=>{$A.messageSuccess(t),this.addsubLoad--,this.addsubName=""}).catch(({msg:t})=>{$A.modalError(t),this.addsubLoad--})},getLogLists(){this.navActive=="log"&&this.$refs.log.getLists(!0)},logLoadChange(t){this.logLoadIng=t},dropAdd(t){switch(t){case"priority":this.$set(this.taskDetail,"p_name",this.$L("\u672A\u8BBE\u7F6E")),this.$nextTick(()=>{this.$refs.priority.show()});break;case"assist":this.assistForce=!0,this.$nextTick(()=>{this.$refs.assist.onSelection()});break;case"visible":this.visibleForce=!0,this.$nextTick(()=>{this.showCisibleDropdown()});break;case"times":this.timeForce=!0,this.$nextTick(()=>{this.openTime()});break;case"loop":this.loopForce=!0,this.$nextTick(()=>{this.$refs.loop.show()});break;case"file":this.onUploadClick(!0);break;case"subtask":this.addsubForce=!0,this.$nextTick(()=>{this.addsubOpen()});break}},onEventMore(t){["image","file"].includes(t)&&this.onUploadClick(!1)},onUploadClick(t){this.imageAttachment=!!t,this.$refs.upload.handleClick()},msgDialog(t=null,s=!1){this.sendLoad>0||this.openLoad>0||(s===!0?this.openLoad++:this.sendLoad++,this.$store.dispatch("call",{url:"project/task/dialog",data:{task_id:this.taskDetail.id}}).then(({data:e})=>{this.$store.dispatch("saveTask",{id:e.id,dialog_id:e.dialog_id}),this.$store.dispatch("saveDialog",e.dialog_data),$A.isSubElectron?this.resizeDialog().then(()=>{this.sendDialogMsg(t)}):this.$nextTick(()=>{if(this.windowPortrait){$A.onBlur();const a={time:$A.Time()+10,msgRecord:this.msgRecord,msgFile:this.msgFile,msgText:typeof t=="string"&&t?t:this.msgText,dialogId:e.dialog_id};this.msgRecord={},this.msgFile=[],this.msgText="",this.$nextTick(i=>{this.dialogId>0&&this.$store.dispatch("openTask",0),this.$store.dispatch("openDialog",e.dialog_id).then(o=>{this.$store.state.dialogMsgTransfer=a})})}else this.sendDialogMsg(t)})}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{s===!0?this.openLoad--:this.sendLoad--}))},sendDialogMsg(t=null){this.msgFile.length>0?this.$refs.dialog.sendFileMsg(this.msgFile.map(s=>Object.assign(s,{ajaxExtraData:{image_attachment:this.imageAttachment?1:0}}))):this.msgText?this.$refs.dialog.sendMsg(this.msgText):typeof t=="string"&&t&&this.$refs.dialog.sendMsg(t),this.msgFile=[],this.msgText=""},taskPasteDrag(t,s){if(this.dialogDrag=!1,$A.dataHasFolder(s==="drag"?t.dataTransfer:t.clipboardData)){t.preventDefault(),$A.modalWarning(`\u6682\u4E0D\u652F\u6301${s==="drag"?"\u62D6\u62FD":"\u7C98\u8D34"}\u6587\u4EF6\u5939\u3002`);return}const e=s==="drag"?t.dataTransfer.files:t.clipboardData.files;this.msgFile=Array.prototype.slice.call(e),this.msgFile.length>0&&(t.preventDefault(),this.msgDialog())},taskDragOver(t,s){let e=this.__dialogDrag=$A.randomString(8);if(!t)setTimeout(()=>{e===this.__dialogDrag&&(this.dialogDrag=t)},150);else{if(s.dataTransfer.effectAllowed==="move")return;this.dialogDrag=!0}},onSelectFile(t){this.msgFile=$A.isArray(t)?t:[t],this.msgDialog()},onRecord(t){this.msgRecord=t,this.msgDialog()},onSend(t){this.$refs.chatInput&&this.$refs.chatInput.hidePopover(),t==="open"?this.msgDialog(null,!0):this.msgDialog(t)},deleteFile(t){this.$set(t,"_show_menu",!1),this.$store.dispatch("forgetTaskFile",t.id),this.$store.dispatch("call",{url:"project/task/filedelete",data:{file_id:t.id}}).catch(({msg:s})=>{$A.modalError(s),this.$store.dispatch("getTaskFiles",this.taskDetail.id)})},openMenu(t,s){const e=this.$refs[`taskMenu_${s.id}`];e&&e.handleClick(t)},openNewWin(){let t={title:this.taskDetail.name,titleFixed:!0,parent:null,width:Math.min(window.screen.availWidth,this.$el.clientWidth+72),height:Math.min(window.screen.availHeight,this.$el.clientHeight+72),minWidth:600,minHeight:450};this.hasOpenDialog&&(t.minWidth=800,t.minHeight=600),this.$Electron.sendMessage("windowRouter",{name:`task-${this.taskDetail.id}`,path:`/single/task/${this.taskDetail.id}?navActive=${this.navActive}`,force:!1,config:t}),this.$store.dispatch("openTask",0)},resizeDialog(){return new Promise(t=>{this.$Electron.sendMessage("windowSize",{width:Math.max(1100,this.windowWidth),height:Math.max(720,this.windowHeight),minWidth:800,minHeight:600,autoZoom:!0});let s=0,e=setInterval(()=>{s++,(this.$refs.dialog||s>20)&&(clearInterval(e),this.$refs.dialog&&t())},100)})},viewFile(t){if(["jpg","jpeg","webp","gif","png"].includes(t.ext)){const e=this.fileList.filter(i=>["jpg","jpeg","webp","gif","png"].includes(i.ext)),a=e.findIndex(i=>i.id===t.id);a>-1?this.$store.dispatch("previewImage",{index:a,list:e.map(i=>({src:i.path,width:i.width,height:i.height}))}):this.$store.dispatch("previewImage",{index:0,list:[{src:t.path,width:t.width,height:t.height}]});return}const s=`/single/file/task/${t.id}`;this.$Electron?this.$Electron.sendMessage("windowRouter",{name:`file-task-${t.id}`,path:s,userAgent:"/hideenOfficeTitle/",force:!1,config:{title:`${t.name} (${$A.bytesToSize(t.size)})`,titleFixed:!0,parent:null,width:Math.min(window.screen.availWidth,1440),height:Math.min(window.screen.availHeight,900)},webPreferences:{nodeIntegrationInSubFrames:t.ext==="drawio"}}):this.$isEEUiApp?$A.eeuiAppOpenPage({pageType:"app",pageTitle:`${t.name} (${$A.bytesToSize(t.size)})`,url:"web.js",params:{titleFixed:!0,allowAccess:!0,url:$A.rightDelete(window.location.href,window.location.hash)+`#${s}`}}):window.open($A.apiUrl(`..${s}`))},downFile(t){$A.modalConfirm({title:"\u4E0B\u8F7D\u6587\u4EF6",content:`${t.name} (${$A.bytesToSize(t.size)})`,okText:"\u7ACB\u5373\u4E0B\u8F7D",onOk:()=>{this.$store.dispatch("downUrl",$A.apiUrl(`project/task/filedown?file_id=${t.id}`))}})},showCisibleDropdown(){this.$refs.eDropdownRef.show()},visibleUserSelectShowChange(t){if(!t&&(this.taskDetail.visibility_appointor.length==0||!this.taskDetail.visibility_appointor[0])){let s=this.taskDetail.old_is_all_visible;this.taskDetail.is_all_visible=s>2?1:s||1,this.taskDetail.is_all_visible<3&&this.updateVisible()}},dropVisible(t){switch(t){case 1:case 2:this.taskDetail.is_all_visible=t,this.updateVisible();break;case 3:this.taskDetail.old_is_all_visible=this.taskDetail.is_all_visible,this.taskDetail.is_all_visible=t,this.$nextTick(()=>{this.$refs.visibleUserSelectRef.onSelection()});break}},updateVisible(){this.updateData(["is_all_visible","visibility_appointor"])}}},m={};var W=l(R,N,B,!1,Y,null,null,null);function Y(t){for(let s in m)this[s]=m[s]}var Q=function(){return W.exports}();export{M as T,x as a,Q as b}; +import{n as l,a as p,m as f}from"./app.2163cd94.js";import{P as _,T as k}from"./ProjectLog.d7bc0eef.js";import{C as v,D as g}from"./DialogWrapper.ea811790.js";import{T as b}from"./TaskMenu.e215eae8.js";import{U as D}from"./UserSelect.e1ef2c0e.js";import w from"./TEditor.fd2b59ab.js";var C=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("Modal",{staticClass:"task-exist-tips",attrs:{title:t.$L("\u8BA1\u5212\u65F6\u95F4\u51B2\u7A81\u63D0\u793A"),styles:{width:"90%",maxWidth:"550px"}},model:{value:t.show,callback:function(a){t.show=a},expression:"show"}},[e("List",{attrs:{split:!1,size:"small"}},t._l(t.tipsTask,function(a,i){return e("ListItem",{key:i},[e("div",{staticClass:"list-content"},[e("UserAvatar",{attrs:{userid:i,size:28,"show-icon":!0,"show-name":!0,tooltipDisabled:""}}),t._l(a,function(o,n){return e("div",{key:n,staticClass:"list-task"},[e("div",{staticClass:"list-task-info"},[e("span",[t._v("["+t._s(o.project_name)+"] ")]),e("span",{attrs:{title:o.name}},[t._v(t._s(o.name))])]),e("div",{staticClass:"list-task-date"},[t._v(t._s(t.getCutTime(o)))])])})],2)])}),1),e("div",{attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(a){t.show=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary"},on:{click:t.onAdd}},[t._v(t._s(t.$L("\u5FFD\u7565\u5E76\u7EE7\u7EED")))])],1)],1)},y=[];const T={name:"TaskExistTips",props:{value:{type:Boolean,default:!1}},data(){return{isExist:!1,show:!1,tipsTask:[],loadIng:!1}},methods:{onAdd(){this.$emit("onAdd",{}),this.show=!1},getCutTime(t){let s=$A.Date(t.start_at,!0),e=$A.Date(t.end_at,!0),a="";return $A.formatDate("Y/m/d",s)==$A.formatDate("Y/m/d",e)?a=$A.formatDate("Y/m/d H:i",s)+" ~ "+$A.formatDate("H:i",e):$A.formatDate("Y",s)==$A.formatDate("Y",e)?(a=$A.formatDate("Y/m/d H:i",s)+" ~ "+$A.formatDate("m/d H:i",e),a=a.replace(/( 00:00| 23:59)/g,"")):(a=$A.formatDate("Y/m/d H:i",s)+" ~ "+$A.formatDate("Y/m/d H:i",e),a=a.replace(/( 00:00| 23:59)/g,"")),a},isExistTask({userids:t,timerange:s,taskid:e}){return this.isExist=!1,new Promise(async a=>{this.$store.dispatch("call",{url:"project/task/easylists",data:{userid:t,timerange:s,taskid:e},method:"get"}).then(({data:i})=>{if(i.data.length>0){this.show=!0;let o={};t.map(n=>{i.data.map(r=>{(r.task_user||[]).map(d=>d.owner?d.userid:0).indexOf(n)!==-1&&(o[n]||(o[n]=[]),o[n].push(r))})}),this.tipsTask=o,this.isExist=!0}a(this.isExist)})})}}},c={};var A=l(T,C,y,!1,L,null,null,null);function L(t){for(let s in c)this[s]=c[s]}var x=function(){return A.exports}(),I=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"task-editor",on:{click:t.onClickWrap,touchstart:t.onTouchstart}},[e("TEditor",{ref:"desc",attrs:{plugins:t.plugins,options:t.options,"option-full":t.optionFull,placeholder:t.placeholder,placeholderFull:t.placeholderFull,readOnly:t.windowTouch,readOnlyFull:!1,inline:""},on:{"on-blur":t.onBlur,"on-editor-init":t.onEditorInit,"on-transfer-change":t.onTransferChange},model:{value:t.content,callback:function(a){t.content=a},expression:"content"}}),e("div",{directives:[{name:"show",rawName:"v-show",value:t.operateVisible,expression:"operateVisible"}],staticClass:"task-editor-operate",style:t.operateStyles},[e("Dropdown",{attrs:{trigger:"custom",visible:t.operateVisible,transfer:""},on:{"on-clickoutside":function(a){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(a){return t.onEditing.apply(null,arguments)}}},[t._v(t._s(t.$L("\u7F16\u8F91\u63CF\u8FF0")))]),t.operateLink?e("DropdownItem",{nativeOn:{click:function(a){return t.onLinkPreview.apply(null,arguments)}}},[t._v(t._s(t.$L("\u6253\u5F00\u94FE\u63A5")))]):t._e(),t.operateImg?e("DropdownItem",{nativeOn:{click:function(a){return t.onImagePreview.apply(null,arguments)}}},[t._v(t._s(t.$L("\u67E5\u770B\u56FE\u7247")))]):t._e()],1)],1)],1)],1)},S=[];const E={name:"TEditorTask",components:{TEditor:w},props:{value:{default:""},placeholder:{default:""},placeholderFull:{default:""}},data(){return{content:this.value,plugins:["advlist autolink lists link image charmap print preview hr anchor pagebreak","searchreplace visualblocks visualchars code","insertdatetime media nonbreaking save table directionality","emoticons paste codesample","autoresize"],options:{statusbar:!1,menubar:!1,autoresize_bottom_margin:2,min_height:200,max_height:380,contextmenu:"bold italic underline forecolor backcolor | link | codesample | uploadImages imagePreview | preview screenload",valid_elements:"a[href|title|target=_blank],em,strong/b,div[align],span[style],a,br,p,img[src|alt|witdh|height],pre[class],code",extended_valid_elements:"a[href|title|target=_blank]",toolbar:!1},optionFull:{menubar:"file edit view",valid_elements:"a[href|title|target=_blank],em,strong/b,div[align],span[style],a,br,p,img[src|alt|witdh|height],pre[class],code",extended_valid_elements:"a[href|title|target=_blank]",toolbar:"uploadImages | bold italic underline | forecolor backcolor"},operateStyles:{},operateVisible:!1,operateLink:null,operateImg:null,listener:null}},mounted(){var s;let t=this.$parent.$el.parentNode;for(;t;){if((s=t.classList)!=null&&s.contains(".ivu-modal-wrap")){this.listener=t,t.addEventListener("scroll",this.onTouchstart);break}t=t.parentNode}},beforeDestroy(){var t;(t=this.listener)==null||t.removeEventListener("scroll",this.onTouchstart)},computed:{editor(){return this.$refs.desc.editor}},watch:{value(t){this.content=t},content(t){this.$emit("input",t)}},methods:{getContent(){return this.$refs.desc.getContent()},onEditing(){this.$refs.desc.onFull()},onBlur(){this.$emit("on-blur")},onEditorInit(t){this.updateTouchContent(),this.$emit("on-editor-init",t)},onTransferChange(t){t||!this.windowTouch||setTimeout(s=>{this.updateTouchContent(),this.onBlur()},100)},onClickWrap(t){!this.windowTouch||(t.stopPropagation(),this.operateVisible=!1,this.operateLink=t.target.tagName==="A"?t.target.href:null,this.operateImg=t.target.tagName==="IMG"?t.target.src:null,this.$nextTick(()=>{const s=this.$el.getBoundingClientRect();this.operateStyles={left:`${t.clientX-s.left}px`,top:`${t.clientY-s.top}px`},this.operateVisible=!0}))},onTouchstart(){!this.windowTouch||(this.operateVisible=!1)},updateTouchContent(){!this.windowTouch||this.$nextTick(t=>{!this.editor||(this.content?(this.editor.bodyElement.removeAttribute("data-mce-placeholder"),this.editor.bodyElement.removeAttribute("aria-placeholder")):(this.editor.bodyElement.setAttribute("data-mce-placeholder",this.placeholder),this.editor.bodyElement.setAttribute("aria-placeholder",this.placeholder)),this.updateTouchLink(0))})},updateTouchLink(t){!this.windowTouch||setTimeout(s=>{!this.editor||(this.editor.bodyElement.querySelectorAll("a").forEach(e=>{e.__dataMceClick!==!0&&(e.__dataMceClick=!0,e.addEventListener("click",a=>{a.preventDefault(),a.stopPropagation(),this.onClickWrap(a)}))}),t<300&&this.updateTouchLink(t+100))},t)},onLinkPreview(){this.operateLink&&window.open(this.operateLink)},onImagePreview(){const t=this.$refs.desc.getValueImages();if(t.length===0){$A.messageWarning("\u6CA1\u6709\u53EF\u9884\u89C8\u7684\u56FE\u7247");return}let s=Math.max(0,t.findIndex(e=>e.src===this.operateImg));this.$store.dispatch("previewImage",{index:s,list:t})}}},h={};var F=l(E,I,S,!1,O,"20dab440",null,null);function O(t){for(let s in h)this[s]=h[s]}var M=function(){return F.exports}(),j=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("Upload",{ref:"upload",attrs:{name:"files",action:"",multiple:"",format:t.uploadFormat,"show-upload-list":!1,"max-size":t.maxSize,"on-format-error":t.handleFormatError,"on-exceeded-size":t.handleMaxSize,"before-upload":t.handleBeforeUpload}})},P=[];const z={name:"TaskUpload",props:{maxSize:{type:Number,default:1024e3}},data(){return{uploadFormat:["jpg","jpeg","webp","png","gif","doc","docx","xls","xlsx","ppt","pptx","txt","esp","pdf","rar","zip","gz","ai","avi","bmp","cdr","eps","mov","mp3","mp4","pr","psd","svg","tif"]}},methods:{handleFormatError(t){$A.modalWarning({title:"\u6587\u4EF6\u683C\u5F0F\u4E0D\u6B63\u786E",content:"\u6587\u4EF6 "+t.name+" \u683C\u5F0F\u4E0D\u6B63\u786E\uFF0C\u4EC5\u652F\u6301\u53D1\u9001\uFF1A"+this.uploadFormat.join(",")})},handleMaxSize(t){$A.modalWarning({title:"\u8D85\u51FA\u6587\u4EF6\u5927\u5C0F\u9650\u5236",content:"\u6587\u4EF6 "+t.name+" \u592A\u5927\uFF0C\u4E0D\u80FD\u53D1\u9001\u8D85\u8FC7"+$A.bytesToSize(this.maxSize*1024)+"\u3002"})},handleBeforeUpload(t){return this.$emit("on-select-file",t),!1},handleClick(){this.$refs.upload.handleClick()}}},u={};var H=l(z,j,P,!1,U,null,null,null);function U(t){for(let s in u)this[s]=u[s]}var V=function(){return H.exports}(),N=function(){var t=this,s=t.$createElement,e=t._self._c||s;return t.ready&&t.taskDetail.parent_id>0?e("li",[e("div",{staticClass:"subtask-icon"},[e("TaskMenu",{ref:`taskMenu_${t.taskDetail.id}`,attrs:{disabled:t.taskId===0,task:t.taskDetail,"load-status":t.taskDetail.loading===!0},on:{"on-update":t.getLogLists}})],1),t.taskDetail.flow_item_name?e("div",{staticClass:"subtask-flow"},[e("span",{class:t.taskDetail.flow_item_status,on:{click:function(a){return a.stopPropagation(),t.openMenu(a,t.taskDetail)}}},[t._v(t._s(t.taskDetail.flow_item_name))])]):t._e(),e("div",{staticClass:"subtask-name"},[e("Input",{ref:"name",attrs:{type:"textarea",rows:1,autosize:{minRows:1,maxRows:8},maxlength:255,enterkeyhint:"done"},on:{"on-blur":function(a){return t.updateBlur("name")},"on-keydown":t.onNameKeydown},model:{value:t.taskDetail.name,callback:function(a){t.$set(t.taskDetail,"name",a)},expression:"taskDetail.name"}})],1),e("DatePicker",{staticClass:"subtask-time",attrs:{open:t.timeOpen,options:t.timeOptions,format:"yyyy/MM/dd HH:mm",type:"datetimerange",placement:"bottom-end",transfer:""},on:{"on-open-change":t.timeChange,"on-change":t.taskTimeChange,"on-clear":t.timeClear,"on-ok":t.timeOk},model:{value:t.timeValue,callback:function(a){t.timeValue=a},expression:"timeValue"}},[!t.taskDetail.complete_at&&t.taskDetail.end_at&&t.taskDetail.end_at!=t.mainEndAt?e("div",{class:["time",t.taskDetail.today?"today":"",t.taskDetail.overdue?"overdue":""],on:{click:t.openTime}},[t._v(" "+t._s(t.expiresFormat(t.taskDetail.end_at))+" ")]):e("Icon",{staticClass:"clock",attrs:{type:"ios-clock-outline"},on:{click:t.openTime}})],1),e("UserSelect",{staticClass:"subtask-avatar",attrs:{"multiple-max":10,"avatar-size":20,title:t.$L("\u4FEE\u6539\u8D1F\u8D23\u4EBA"),"add-icon":!1,"project-id":t.taskDetail.project_id,"before-submit":t.onOwner},model:{value:t.ownerData.owner_userid,callback:function(a){t.$set(t.ownerData,"owner_userid",a)},expression:"ownerData.owner_userid"}})],1):t.ready?e("div",{class:{"task-detail":!0,"open-dialog":t.hasOpenDialog,completed:t.taskDetail.complete_at},style:t.taskDetailStyle},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.taskDetail.id>0,expression:"taskDetail.id > 0"}],staticClass:"task-info"},[e("div",{staticClass:"head"},[e("TaskMenu",{ref:`taskMenu_${t.taskDetail.id}`,staticClass:"icon",attrs:{disabled:t.taskId===0,task:t.taskDetail,size:"medium","color-show":!1},on:{"on-update":t.getLogLists}}),t.taskDetail.flow_item_name?e("div",{staticClass:"flow"},[e("span",{class:t.taskDetail.flow_item_status,on:{click:function(a){return a.stopPropagation(),t.openMenu(a,t.taskDetail)}}},[t._v(t._s(t.taskDetail.flow_item_name))])]):t._e(),t.taskDetail.archived_at?e("div",{staticClass:"flow"},[e("span",{staticClass:"archived",on:{click:function(a){return a.stopPropagation(),t.openMenu(a,t.taskDetail)}}},[t._v(t._s(t.$L("\u5DF2\u5F52\u6863")))])]):t._e(),e("div",{staticClass:"nav"},[t.projectName?e("p",[e("span",[t._v(t._s(t.projectName))])]):t._e(),t.columnName?e("p",[e("span",[t._v(t._s(t.columnName))])]):t._e(),t.taskDetail.id?e("p",[e("span",[t._v(t._s(t.taskDetail.id))])]):t._e()]),e("div",{staticClass:"function"},[t.getOwner.length===0?e("EPopover",{attrs:{placement:"bottom"},model:{value:t.receiveShow,callback:function(a){t.receiveShow=a},expression:"receiveShow"}},[e("div",{staticClass:"task-detail-receive"},[e("div",{staticClass:"receive-title"},[e("Icon",{attrs:{type:"ios-help-circle"}}),t._v(" "+t._s(t.$L("\u786E\u8BA4\u8BA1\u5212\u65F6\u95F4\u9886\u53D6\u4EFB\u52A1"))+" ")],1),e("div",{staticClass:"receive-time"},[e("DatePicker",{attrs:{options:t.timeOptions,format:"yyyy/MM/dd HH:mm",type:"datetimerange",placeholder:t.$L("\u8BF7\u8BBE\u7F6E\u8BA1\u5212\u65F6\u95F4"),clearable:!1,editable:!1},on:{"on-change":t.taskTimeChange},model:{value:t.timeValue,callback:function(a){t.timeValue=a},expression:"timeValue"}})],1),e("div",{staticClass:"receive-bottom"},[e("Button",{attrs:{size:"small",type:"text"},on:{click:function(a){t.receiveShow=!1}}},[t._v("\u53D6\u6D88")]),e("Button",{attrs:{loading:t.ownerLoad>0,size:"small",type:"primary"},on:{click:function(a){return t.onOwner(!0)}}},[t._v("\u786E\u5B9A")])],1)]),e("Button",{staticClass:"pick",attrs:{slot:"reference",loading:t.ownerLoad>0,type:"primary"},slot:"reference"},[t._v(t._s(t.$L("\u6211\u8981\u9886\u53D6\u4EFB\u52A1")))])],1):t._e(),t.$Electron?e("ETooltip",{attrs:{disabled:t.$isEEUiApp||t.windowTouch,content:t.$L("\u65B0\u7A97\u53E3\u6253\u5F00")}},[e("i",{staticClass:"taskfont open",on:{click:t.openNewWin}},[t._v("\uE776")])]):t._e(),e("div",{staticClass:"menu"},[e("TaskMenu",{attrs:{disabled:t.taskId===0,task:t.taskDetail,icon:"ios-more","completed-icon":"ios-more",size:"medium","color-show":!1},on:{"on-update":t.getLogLists}})],1)],1)],1),e("Scrollbar",{staticClass:"scroller"},[e("div",{staticClass:"title"},[e("Input",{ref:"name",attrs:{type:"textarea",rows:1,autosize:{minRows:1,maxRows:8},maxlength:255,enterkeyhint:"done"},on:{"on-blur":function(a){return t.updateBlur("name")},"on-keydown":t.onNameKeydown},model:{value:t.taskDetail.name,callback:function(a){t.$set(t.taskDetail,"name",a)},expression:"taskDetail.name"}})],1),e("TEditorTask",{ref:"desc",staticClass:"desc",attrs:{value:t.taskContent,placeholder:t.$L("\u8BE6\u7EC6\u63CF\u8FF0...")},on:{"on-blur":function(a){return t.updateBlur("content")}}}),e("Form",{staticClass:"items",attrs:{"label-position":"left","label-width":"auto"},nativeOn:{submit:function(a){a.preventDefault()}}},[t.taskDetail.p_name?e("FormItem",[e("div",{staticClass:"item-label",attrs:{slot:"label"},slot:"label"},[e("i",{staticClass:"taskfont"},[t._v("\uE6EC")]),t._v(t._s(t.$L("\u4F18\u5148\u7EA7"))+" ")]),e("ul",{staticClass:"item-content"},[e("li",[e("EDropdown",{ref:"priority",attrs:{trigger:"click",placement:"bottom"},on:{command:function(a){return t.updateData("priority",a)}}},[e("TaskPriority",{attrs:{backgroundColor:t.taskDetail.p_color}},[t._v(t._s(t.taskDetail.p_name))]),e("EDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},t._l(t.taskPriority,function(a,i){return e("EDropdownItem",{key:i,attrs:{command:a}},[e("i",{staticClass:"taskfont",style:{color:a.color},domProps:{innerHTML:t._s(t.taskDetail.p_name==a.name?"":"")}}),t._v(" "+t._s(a.name)+" ")])}),1)],1)],1)])]):t._e(),t.getOwner.length>0?e("FormItem",[e("div",{staticClass:"item-label",attrs:{slot:"label"},slot:"label"},[e("i",{staticClass:"taskfont"},[t._v("\uE6E4")]),t._v(t._s(t.$L("\u8D1F\u8D23\u4EBA"))+" ")]),e("UserSelect",{staticClass:"item-content user",attrs:{"multiple-max":10,"avatar-size":28,title:t.$L("\u4FEE\u6539\u8D1F\u8D23\u4EBA"),"project-id":t.taskDetail.project_id,"add-icon":!1,"before-submit":t.onOwner},model:{value:t.ownerData.owner_userid,callback:function(a){t.$set(t.ownerData,"owner_userid",a)},expression:"ownerData.owner_userid"}})],1):t._e(),t.getAssist.length>0||t.assistForce?e("FormItem",[e("div",{staticClass:"item-label",attrs:{slot:"label"},slot:"label"},[e("i",{staticClass:"taskfont"},[t._v("\uE63F")]),t._v(t._s(t.$L("\u534F\u52A9\u4EBA\u5458"))+" ")]),e("UserSelect",{ref:"assist",staticClass:"item-content user",attrs:{"multiple-max":10,"avatar-size":28,title:t.$L(t.getAssist.length>0?"\u4FEE\u6539\u534F\u52A9\u4EBA\u5458":"\u6DFB\u52A0\u534F\u52A9\u4EBA\u5458"),"project-id":t.taskDetail.project_id,"disabled-choice":t.assistData.disabled,"add-icon":!1,"before-submit":t.onAssist},model:{value:t.assistData.assist_userid,callback:function(a){t.$set(t.assistData,"assist_userid",a)},expression:"assistData.assist_userid"}})],1):t._e(),t.taskDetail.is_all_visible>1||t.visibleForce||t.visibleKeep?e("FormItem",[e("div",{staticClass:"item-label",attrs:{slot:"label"},slot:"label"},[e("i",{staticClass:"taskfont"},[t._v("\uE77B")]),e("EDropdown",{ref:"eDropdownRef",attrs:{trigger:"click",placement:"bottom"},on:{command:t.dropVisible}},[e("span",{staticClass:"visibility-text color"},[t._v(t._s(t.$L("\u53EF\u89C1\u6027"))+" "),e("i",{staticClass:"taskfont"},[t._v("\uE740")])]),e("EDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},[e("EDropdownItem",{attrs:{command:1}},[e("div",{staticClass:"task-menu-icon"},[t.taskDetail.is_all_visible==1?e("Icon",{staticClass:"completed",attrs:{type:"md-checkmark-circle"}}):e("Icon",{staticClass:"uncomplete",attrs:{type:"md-radio-button-off"}}),t._v(" "+t._s(t.$L("\u9879\u76EE\u4EBA\u5458"))+" ")],1)]),e("EDropdownItem",{attrs:{command:2}},[e("div",{staticClass:"task-menu-icon"},[t.taskDetail.is_all_visible==2?e("Icon",{staticClass:"completed",attrs:{type:"md-checkmark-circle"}}):e("Icon",{staticClass:"uncomplete",attrs:{type:"md-radio-button-off"}}),t._v(" "+t._s(t.$L("\u4EFB\u52A1\u4EBA\u5458"))+" ")],1)]),e("EDropdownItem",{attrs:{command:3}},[e("div",{staticClass:"task-menu-icon"},[t.taskDetail.is_all_visible==3?e("Icon",{staticClass:"completed",attrs:{type:"md-checkmark-circle"}}):e("Icon",{staticClass:"uncomplete",attrs:{type:"md-radio-button-off"}}),t._v(" "+t._s(t.$L("\u6307\u5B9A\u6210\u5458"))+" ")],1)])],1)],1)],1),e("div",{staticClass:"item-content user"},[t.taskDetail.is_all_visible==1?e("span",{staticClass:"visibility-text",on:{click:t.showCisibleDropdown}},[t._v(t._s(t.$L("\u9879\u76EE\u4EBA\u5458\u53EF\u89C1")))]):t.taskDetail.is_all_visible==2?e("span",{staticClass:"visibility-text",on:{click:t.showCisibleDropdown}},[t._v(t._s(t.$L("\u4EFB\u52A1\u4EBA\u5458\u53EF\u89C1")))]):e("UserSelect",{ref:"visibleUserSelectRef",attrs:{"avatar-size":28,title:t.$L("\u9009\u62E9\u6307\u5B9A\u4EBA\u5458"),"project-id":t.taskDetail.project_id,"add-icon":!1},on:{"on-show-change":t.visibleUserSelectShowChange},model:{value:t.taskDetail.visibility_appointor,callback:function(a){t.$set(t.taskDetail,"visibility_appointor",a)},expression:"taskDetail.visibility_appointor"}})],1)]):t._e(),t.taskDetail.end_at||t.timeForce?e("FormItem",[e("div",{staticClass:"item-label",attrs:{slot:"label"},slot:"label"},[e("i",{staticClass:"taskfont"},[t._v("\uE6E8")]),t._v(t._s(t.$L("\u622A\u6B62\u65F6\u95F4"))+" ")]),e("ul",{staticClass:"item-content"},[e("li",[e("DatePicker",{attrs:{open:t.timeOpen,options:t.timeOptions,format:"yyyy/MM/dd HH:mm",type:"datetimerange",transfer:""},on:{"on-open-change":t.timeChange,"on-change":t.taskTimeChange,"on-clear":t.timeClear,"on-ok":t.timeOk},model:{value:t.timeValue,callback:function(a){t.timeValue=a},expression:"timeValue"}},[e("div",{staticClass:"picker-time"},[e("div",{staticClass:"time",on:{click:t.openTime}},[t._v(t._s(t.taskDetail.end_at?t.cutTime:"--"))]),!t.taskDetail.complete_at&&t.taskDetail.end_at?[t.within24Hours(t.taskDetail.end_at)?e("Tag",{attrs:{color:"blue"}},[e("i",{staticClass:"taskfont"},[t._v("\uE71D")]),t._v(t._s(t.expiresFormat(t.taskDetail.end_at)))]):t._e(),t.isOverdue(t.taskDetail)?e("Tag",{attrs:{color:"red"}},[t._v(t._s(t.$L("\u8D85\u671F\u672A\u5B8C\u6210")))]):t._e()]:t._e()],2)])],1)])]):t._e(),t.taskDetail.loop&&t.taskDetail.loop!="never"||t.loopForce?e("FormItem",[e("div",{staticClass:"item-label",attrs:{slot:"label"},slot:"label"},[e("i",{staticClass:"taskfont"},[t._v("\uE93F")]),t._v(t._s(t.$L("\u91CD\u590D\u5468\u671F"))+" ")]),e("ul",{staticClass:"item-content"},[e("li",[e("EDropdown",{ref:"loop",attrs:{trigger:"click",placement:"bottom"},on:{command:function(a){return t.updateData("loop",a)}}},[e("ETooltip",{attrs:{disabled:t.$isEEUiApp||t.windowTouch||!t.taskDetail.loop_at,content:`${t.$L("\u4E0B\u4E2A\u5468\u671F")}: ${t.taskDetail.loop_at}`,placement:"right"}},[e("span",[t._v(t._s(t.$L(t.loopLabel(t.taskDetail.loop))))])]),e("EDropdownMenu",{staticClass:"task-detail-loop",attrs:{slot:"dropdown"},slot:"dropdown"},t._l(t.loops,function(a){return e("EDropdownItem",{key:a.key,attrs:{command:a.key}},[t._v(" "+t._s(t.$L(a.label))+" ")])}),1)],1)],1)])]):t._e(),t.fileList.length>0?e("FormItem",[e("div",{staticClass:"item-label",attrs:{slot:"label"},slot:"label"},[e("i",{staticClass:"taskfont"},[t._v("\uE6E6")]),t._v(t._s(t.$L("\u9644\u4EF6"))+" ")]),e("ul",{staticClass:"item-content file"},[t.taskDetail.file_num>50?e("li",{staticClass:"tip"},[t._v(t._s(t.$L(`\u5171${t.taskDetail.file_num}\u4E2A\u6587\u4EF6\uFF0C\u4EC5\u663E\u793A\u6700\u65B050\u4E2A`)))]):t._e(),t._l(t.fileList,function(a){return e("li",[a.id?e("img",{staticClass:"file-ext",attrs:{src:a.thumb}}):e("Loading",{staticClass:"file-load"}),e("div",{staticClass:"file-name"},[t._v(t._s(a.name))]),e("div",{staticClass:"file-size"},[t._v(t._s(t.$A.bytesToSize(a.size)))]),e("div",{staticClass:"file-menu",class:{show:a._show_menu}},[e("Icon",{attrs:{type:"md-eye"},on:{click:function(i){return t.viewFile(a)}}}),e("Icon",{attrs:{type:"md-arrow-round-down"},on:{click:function(i){return t.downFile(a)}}}),e("EPopover",{staticClass:"file-delete",model:{value:a._show_menu,callback:function(i){t.$set(a,"_show_menu",i)},expression:"file._show_menu"}},[e("div",{staticClass:"task-detail-delete-file-popover"},[e("p",[t._v(t._s(t.$L("\u4F60\u786E\u5B9A\u8981\u5220\u9664\u8FD9\u4E2A\u6587\u4EF6\u5417\uFF1F")))]),e("div",{staticClass:"buttons"},[e("Button",{attrs:{size:"small",type:"text"},on:{click:function(i){a._show_menu=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{size:"small",type:"primary"},on:{click:function(i){return t.deleteFile(a)}}},[t._v(t._s(t.$L("\u786E\u5B9A")))])],1)]),e("i",{staticClass:"taskfont del",attrs:{slot:"reference"},slot:"reference"},[t._v("\uE6EA")])])],1)],1)})],2),e("ul",{staticClass:"item-content"},[e("li",[e("div",{staticClass:"add-button",on:{click:function(a){return t.onUploadClick(!0)}}},[e("i",{staticClass:"taskfont"},[t._v("\uE6F2")]),e("span",[t._v(t._s(t.$L("\u6DFB\u52A0\u9644\u4EF6")))])])])])]):t._e(),t.subList.length>0||t.addsubForce?e("FormItem",[e("div",{staticClass:"item-label",attrs:{slot:"label"},slot:"label"},[e("i",{staticClass:"taskfont"},[t._v("\uE6F0")]),t._v(t._s(t.$L("\u5B50\u4EFB\u52A1"))+" ")]),e("ul",{staticClass:"item-content subtask"},t._l(t.subList,function(a,i){return e("TaskDetail",{key:i,ref:`subTask_${a.id}`,refInFor:!0,attrs:{"task-id":a.id,"open-task":a,"main-end-at":t.taskDetail.end_at,"can-update-blur":t.canUpdateBlur}})}),1),e("ul",{class:["item-content",t.subList.length===0?"nosub":""]},[e("li",[t.addsubShow?e("Input",{ref:"addsub",staticClass:"add-input",class:{loading:t.addsubLoad>0},attrs:{placeholder:t.$L("+ \u8F93\u5165\u5B50\u4EFB\u52A1\uFF0C\u56DE\u8F66\u6DFB\u52A0\u5B50\u4EFB\u52A1"),icon:t.addsubLoad>0?"ios-loading":"",enterkeyhint:"done"},on:{"on-blur":t.addsubChackClose,"on-keydown":t.addsubKeydown},model:{value:t.addsubName,callback:function(a){t.addsubName=a},expression:"addsubName"}}):e("div",{staticClass:"add-button",on:{click:t.addsubOpen}},[e("i",{staticClass:"taskfont"},[t._v("\uE6F2")]),e("span",[t._v(t._s(t.$L("\u6DFB\u52A0\u5B50\u4EFB\u52A1")))])])],1)])]):t._e()],1),t.menuList.length>0?e("div",{staticClass:"add"},[e("EDropdown",{attrs:{trigger:"click",placement:"bottom"},on:{command:t.dropAdd}},[e("div",{staticClass:"add-button"},[e("i",{staticClass:"taskfont"},[t._v("\uE6F2")]),e("span",[t._v(t._s(t.$L("\u6DFB\u52A0")))]),e("em",[t._v(t._s(t.menuText))])]),e("EDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},t._l(t.menuList,function(a,i){return e("EDropdownItem",{key:i,attrs:{command:a.command}},[e("div",{staticClass:"item"},[e("i",{staticClass:"taskfont",domProps:{innerHTML:t._s(a.icon)}}),t._v(t._s(t.$L(a.name))+" ")])])}),1)],1)],1):t._e()],1),e("TaskUpload",{ref:"upload",staticClass:"upload",on:{"on-select-file":t.onSelectFile}})],1),e("div",{directives:[{name:"show",rawName:"v-show",value:t.taskDetail.id>0,expression:"taskDetail.id > 0"}],staticClass:"task-dialog",style:t.dialogStyle},[t.hasOpenDialog?[t.taskId>0?e("DialogWrapper",{ref:"dialog",attrs:{"dialog-id":t.taskDetail.dialog_id}},[e("div",{staticClass:"head",attrs:{slot:"head"},slot:"head"},[e("Icon",{staticClass:"icon",attrs:{type:"ios-chatbubbles-outline"}}),e("div",{staticClass:"nav"},[e("p",{class:{active:t.navActive=="dialog"},on:{click:function(a){t.navActive="dialog"}}},[t._v(t._s(t.$L("\u804A\u5929")))]),e("p",{class:{active:t.navActive=="log"},on:{click:function(a){t.navActive="log"}}},[t._v(t._s(t.$L("\u52A8\u6001")))]),t.navActive=="log"?e("div",{staticClass:"refresh"},[t.logLoadIng?e("Loading"):e("Icon",{attrs:{type:"ios-refresh"},on:{click:t.getLogLists}})],1):t._e()])],1)]):t._e(),t.navActive=="log"&&t.taskId>0?e("ProjectLog",{ref:"log",attrs:{"task-id":t.taskDetail.id},on:{"on-load-change":t.logLoadChange}}):t._e()]:e("div",[e("div",{staticClass:"head"},[e("Icon",{staticClass:"icon",attrs:{type:"ios-chatbubbles-outline"}}),e("div",{staticClass:"nav"},[e("p",{class:{active:t.navActive=="dialog"},on:{click:function(a){t.navActive="dialog"}}},[t._v(t._s(t.$L("\u804A\u5929")))]),e("p",{class:{active:t.navActive=="log"},on:{click:function(a){t.navActive="log"}}},[t._v(t._s(t.$L("\u52A8\u6001")))]),t.navActive=="log"?e("div",{staticClass:"refresh"},[t.logLoadIng?e("Loading"):e("Icon",{attrs:{type:"ios-refresh"},on:{click:t.getLogLists}})],1):t._e()]),e("div",{staticClass:"menu"},[t.navActive=="dialog"&&t.taskDetail.msg_num>0?e("div",{staticClass:"menu-item",on:{click:function(a){return a.stopPropagation(),t.onSend("open")}}},[t.openLoad>0?e("div",{staticClass:"menu-load"},[e("Loading")],1):t._e(),t._v(" "+t._s(t.$L("\u4EFB\u52A1\u804A\u5929"))+" "),e("em",[t._v("("+t._s(t.taskDetail.msg_num>999?"999+":t.taskDetail.msg_num)+")")]),e("i",{staticClass:"taskfont"},[t._v("\uE703")])]):t._e()])],1),t.navActive=="log"&&t.taskId>0?e("ProjectLog",{ref:"log",attrs:{"task-id":t.taskDetail.id,"show-load":!1},on:{"on-load-change":t.logLoadChange}}):e("div",{staticClass:"no-dialog",on:{drop:function(a){return a.preventDefault(),t.taskPasteDrag(a,"drag")},dragover:function(a){return a.preventDefault(),t.taskDragOver(!0,a)},dragleave:function(a){return a.preventDefault(),t.taskDragOver(!1,a)}}},[e("div",{staticClass:"no-tip"},[t._v(t._s(t.$L("\u6682\u65E0\u6D88\u606F")))]),e("div",{staticClass:"no-input"},[e("ChatInput",{ref:"chatInput",attrs:{"task-id":t.taskId,loading:t.sendLoad>0,maxlength:2e5,placeholder:t.$L("\u8F93\u5165\u6D88\u606F..."),"send-menu":!1},on:{"on-more":t.onEventMore,"on-file":t.onSelectFile,"on-record":t.onRecord,"on-send":t.onSend},model:{value:t.msgText,callback:function(a){t.msgText=a},expression:"msgText"}})],1),t.dialogDrag?e("div",{staticClass:"drag-over",on:{click:function(a){t.dialogDrag=!1}}},[e("div",{staticClass:"drag-text"},[t._v(t._s(t.$L("\u62D6\u52A8\u5230\u8FD9\u91CC\u53D1\u9001")))])]):t._e()])],1)],2),t.taskDetail.id?t._e():e("div",{staticClass:"task-load"},[e("Loading")],1),e("TaskExistTips",{ref:"taskExistTipsRef",on:{onAdd:function(a){return t.updateData("times",t.updateParams)}}})],1):t._e()},B=[];const R={name:"TaskDetail",components:{TEditorTask:M,UserSelect:D,TaskExistTips:x,ChatInput:v,TaskMenu:b,ProjectLog:_,DialogWrapper:g,TaskUpload:V,TaskPriority:k},props:{taskId:{type:Number,default:0},openTask:{type:Object,default:()=>({})},mainEndAt:{default:null},canUpdateBlur:{type:Boolean,default:!0},modalMode:{type:Boolean,default:!1}},data(){return{ready:!1,taskDetail:{},ownerData:{},ownerLoad:0,receiveShow:!1,assistForce:!1,assistData:{},assistLoad:0,visibleForce:!1,addsubForce:!1,addsubShow:!1,addsubName:"",addsubLoad:0,timeForce:!1,timeOpen:!1,timeValue:[],timeOptions:{shortcuts:$A.timeOptionShortcuts()},loopForce:!1,nowTime:$A.Time(),nowInterval:null,msgText:"",msgFile:[],msgRecord:{},navActive:"dialog",logLoadIng:!1,sendLoad:0,openLoad:0,dialogDrag:!1,imageAttachment:!0,receiveTaskSubscribe:null,loops:[{key:"never",label:"\u4ECE\u4E0D"},{key:"day",label:"\u6BCF\u5929"},{key:"weekdays",label:"\u6BCF\u4E2A\u5DE5\u4F5C\u65E5"},{key:"week",label:"\u6BCF\u5468"},{key:"twoweeks",label:"\u6BCF\u4E24\u5468"},{key:"month",label:"\u6BCF\u6708"},{key:"year",label:"\u6BCF\u5E74"},{key:"custom",label:"\u81EA\u5B9A\u4E49"}],updateParams:{}}},created(){const t=$A.getObject(this.$route.query,"navActive");["dialog","log"].includes(t)&&(this.navActive=t)},mounted(){this.nowInterval=setInterval(()=>{this.nowTime=$A.Time()},1e3),this.receiveTaskSubscribe=p.Store.subscribe("receiveTask",()=>{this.receiveShow=!0})},destroyed(){clearInterval(this.nowInterval),this.receiveTaskSubscribe&&(this.receiveTaskSubscribe.unsubscribe(),this.receiveTaskSubscribe=null)},computed:{...f(["systemConfig","cacheProjects","cacheColumns","cacheTasks","taskContents","taskFiles","taskPriority","dialogId"]),projectName(){if(!this.taskDetail.project_id)return"";if(this.taskDetail.project_name)return this.taskDetail.project_name;const t=this.cacheProjects.find(({id:s})=>s==this.taskDetail.project_id);return t?t.name:""},columnName(){if(!this.taskDetail.column_id)return"";if(this.taskDetail.column_name)return this.taskDetail.column_name;const t=this.cacheColumns.find(({id:s})=>s==this.taskDetail.column_id);return t?t.name:""},taskContent(){if(!this.taskId)return"";let t=this.taskContents.find(({task_id:s})=>s==this.taskId);return t?t.content:""},fileList(){return this.taskId?this.taskFiles.filter(({task_id:t})=>t==this.taskId).sort((t,s)=>s.id-t.id):[]},subList(){return this.taskId?this.cacheTasks.filter(t=>t.parent_id==this.taskId).sort((t,s)=>t.id-s.id):[]},hasOpenDialog(){return this.taskDetail.dialog_id>0&&this.windowLandscape},dialogStyle(){const{windowHeight:t,hasOpenDialog:s}=this,e=Math.min(1100,t);if(!e)return{};if(!s)return{};const a=e>900?200:70;return{minHeight:e-a-48+"px"}},taskDetailStyle(){const{modalMode:t,windowHeight:s,hasOpenDialog:e}=this,a=Math.min(1100,s);if(t&&e){const i=a>900?200:70;return{maxHeight:a-i-30+"px"}}return{}},cutTime(){const{taskDetail:t}=this;let s=$A.Date(t.start_at,!0),e=$A.Date(t.end_at,!0),a="";return $A.formatDate("Y/m/d",s)==$A.formatDate("Y/m/d",e)?a=$A.formatDate("Y/m/d H:i",s)+" ~ "+$A.formatDate("H:i",e):$A.formatDate("Y",s)==$A.formatDate("Y",e)?(a=$A.formatDate("Y/m/d H:i",s)+" ~ "+$A.formatDate("m/d H:i",e),a=a.replace(/( 00:00| 23:59)/g,"")):(a=$A.formatDate("Y/m/d H:i",s)+" ~ "+$A.formatDate("Y/m/d H:i",e),a=a.replace(/( 00:00| 23:59)/g,"")),a},getOwner(){const{taskDetail:t}=this;return $A.isArray(t.task_user)?t.task_user.filter(({owner:s})=>s===1).sort((s,e)=>s.id-e.id):[]},getAssist(){const{taskDetail:t}=this;return $A.isArray(t.task_user)?t.task_user.filter(({owner:s})=>s===0).sort((s,e)=>s.id-e.id):[]},menuList(){const{taskDetail:t}=this,s=[];return t.p_name||s.push({command:"priority",icon:"",name:"\u4F18\u5148\u7EA7"}),$A.isArray(t.task_user)&&t.task_user.find(({owner:e})=>e===0)||s.push({command:"assist",icon:"",name:"\u534F\u52A9\u4EBA\u5458"}),t.is_all_visible<=1&&!this.visibleKeep&&s.push({command:"visible",icon:"",name:"\u53EF\u89C1\u6027"}),t.end_at||s.push({command:"times",icon:"",name:"\u622A\u6B62\u65F6\u95F4"}),(!t.loop||t.loop=="never")&&s.push({command:"loop",icon:"",name:"\u91CD\u590D\u5468\u671F"}),this.fileList.length==0&&s.push({command:"file",icon:"",name:"\u9644\u4EF6"}),this.subList.length==0&&s.push({command:"subtask",icon:"",name:"\u5B50\u4EFB\u52A1"}),s},menuText(){const{menuList:t}=this;let s="";return t.length>0&&t.forEach((e,a)=>{a>0&&(s+=" / "),s+=this.$L(e.name)}),s},visibleKeep(){return this.systemConfig.task_visible==="open"}},watch:{openTask:{handler(t){this.taskDetail=$A.cloneJSON(t),this.__openTask&&clearTimeout(this.__openTask),this.__openTask=setTimeout(s=>{var e;return(e=this.$refs.name)==null?void 0:e.resizeTextarea()},100)},immediate:!0,deep:!0},taskId:{handler(t){t>0?this.ready=!0:(this.windowPortrait&&$A.onBlur(),this.timeOpen=!1,this.timeForce=!1,this.loopForce=!1,this.assistForce=!1,this.visibleForce=!1,this.addsubForce=!1,this.receiveShow=!1,this.$refs.chatInput&&this.$refs.chatInput.hidePopover())},immediate:!0},getOwner:{handler(t){const s=t.map(({userid:e})=>e);this.$set(this.taskDetail,"owner_userid",s),this.$set(this.ownerData,"owner_userid",s),this.$set(this.assistData,"disabled",t.map(({userid:e})=>e).filter(e=>e!=this.userId))},immediate:!0},getAssist:{handler(t){const s=t.map(({userid:e})=>e);this.$set(this.taskDetail,"assist_userid",s),this.$set(this.assistData,"assist_userid",s)},immediate:!0},receiveShow(t){t&&(this.timeValue=this.taskDetail.end_at?[this.taskDetail.start_at,this.taskDetail.end_at]:[])},"taskDetail.visibility_appointor":{handler(t){(t==null?void 0:t.length)>0&&t[0]&&(this.taskDetail.is_all_visible=3,this.updateVisible())},immediate:!0}},methods:{within24Hours(t){return $A.Date(t,!0)-this.nowTime<86400},expiresFormat(t){return $A.countDownFormat(t,this.nowTime)},isOverdue(t){return t.overdue?!0:$A.Date(t.end_at,!0)e.key===t);return s?s.label:t?`\u6BCF${t}\u5929`:"\u4ECE\u4E0D"},onNameKeydown(t){t.keyCode===13&&(t.shiftKey||(t.preventDefault(),this.updateData("name")))},checkUpdate(t){let s=!1;if(this.openTask.name!=this.taskDetail.name)if(s=!0,t===!0)this.updateData("name");else return t===!1&&this.$refs.name.focus(),!0;if(this.$refs.desc&&this.$refs.desc.getContent()!=this.taskContent)if(s=!0,t===!0)this.updateData("content");else return t===!1&&this.$refs.desc.focus(),!0;if(this.addsubShow&&this.addsubName)if(s=!0,t===!0)this.onAddsub();else return t===!1&&this.$refs.addsub.focus(),!0;return this.subList.some(({id:e})=>{this.$refs[`subTask_${e}`][0].checkUpdate(t)&&(s=!0)}),s},updateBlur(t,s){this.canUpdateBlur&&this.updateData(t,s)},updateData(t,s){let e=null;switch(t){case"priority":this.$set(this.taskDetail,"p_level",s.priority),this.$set(this.taskDetail,"p_name",s.name),this.$set(this.taskDetail,"p_color",s.color),t=["p_level","p_name","p_color"];break;case"times":if(this.taskDetail.start_at&&(Math.abs($A.Time(this.taskDetail.start_at)-$A.Time(s.start_at))>60||Math.abs($A.Time(this.taskDetail.end_at)-$A.Time(s.end_at))>60)&&typeof s.desc=="undefined"){$A.modalInput({title:`\u4FEE\u6539${this.taskDetail.parent_id>0?"\u5B50\u4EFB\u52A1":"\u4EFB\u52A1"}\u65F6\u95F4`,placeholder:"\u8BF7\u8F93\u5165\u4FEE\u6539\u5907\u6CE8",okText:"\u786E\u5B9A",onOk:o=>o?(this.updateParams=Object.assign(s,{desc:o}),s.start_at&&s.end_at&&this.$refs.taskExistTipsRef?this.$refs.taskExistTipsRef.isExistTask({taskid:this.taskDetail.id,userids:this.taskDetail.owner_userid,timerange:[s.start_at,s.end_at]}).then(n=>{n||this.updateData("times",this.updateParams)}):this.updateData("times",this.updateParams),!1):"\u8BF7\u8F93\u5165\u4FEE\u6539\u5907\u6CE8"});return}this.$set(this.taskDetail,"times",[s.start_at,s.end_at,s.desc]);break;case"loop":if(s==="custom"){this.customLoop();return}this.$set(this.taskDetail,"loop",s);break;case"content":const i=this.$refs.desc.getContent();if(i==this.taskContent)return;this.$set(this.taskDetail,"content",i),e=()=>{this.$store.dispatch("saveTaskContent",{task_id:this.taskId,content:i})};break}let a={task_id:this.taskDetail.id};($A.isArray(t)?t:[t]).forEach(i=>{let o=this.taskDetail[i],n=this.openTask[i];$A.jsonStringify(o)!=$A.jsonStringify(n)&&(a[i]=o)}),!(Object.keys(a).length<=1)&&this.$store.dispatch("taskUpdate",a).then(({msg:i})=>{$A.messageSuccess(i),typeof e=="function"&&e()}).catch(({msg:i})=>{$A.modalError(i)})},customLoop(){let t=this.taskDetail.loop||1;$A.Modal.confirm({render:s=>s("div",[s("div",{style:{fontSize:"16px",fontWeight:"500",marginBottom:"20px"}},this.$L("\u91CD\u590D\u5468\u671F")),s("Input",{style:{width:"160px",margin:"0 auto"},props:{type:"number",value:t,maxlength:3},on:{input:e=>{t=$.runNum(e)}}},[s("span",{slot:"prepend"},this.$L("\u6BCF")),s("span",{slot:"append"},this.$L("\u5929"))])]),onOk:s=>{this.$Modal.remove(),t>0&&this.updateData("loop",t)},loading:!0,okText:this.$L("\u786E\u5B9A"),cancelText:this.$L("\u53D6\u6D88")})},async taskTimeChange(){const t=$A.date2string(this.timeValue,"Y-m-d H:i");$A.rightExists(t[0],"00:00")&&$A.rightExists(t[1],"00:00")&&(this.timeValue=await this.$store.dispatch("taskDefaultTime",t))},async onOwner(t){let s={task_id:this.taskDetail.id,owner:this.ownerData.owner_userid};if(t===!0){if(this.getOwner.length>0){this.receiveShow=!1,$A.messageError("\u4EFB\u52A1\u5DF2\u88AB\u9886\u53D6");return}const e=$A.date2string(this.timeValue,"Y-m-d H:i");if(!(e[0]&&e[1])){$A.messageError("\u8BF7\u8BBE\u7F6E\u8BA1\u5212\u65F6\u95F4");return}s.times=e,s.owner=this.ownerData.owner_userid=[this.userId]}if($A.jsonStringify(this.taskDetail.owner_userid)!==$A.jsonStringify(this.ownerData.owner_userid))return $A.count(s.owner)==0&&(s.owner=""),this.ownerLoad++,new Promise((e,a)=>{this.$store.dispatch("taskUpdate",s).then(({msg:i})=>{$A.messageSuccess(i),this.ownerLoad--,this.receiveShow=!1,this.$store.dispatch("getTaskOne",this.taskDetail.id).catch(()=>{}),e()}).catch(({msg:i})=>{$A.modalError(i),this.ownerLoad--,this.receiveShow=!1,a()})})},onAssist(){if($A.jsonStringify(this.taskDetail.assist_userid)!==$A.jsonStringify(this.assistData.assist_userid))return new Promise((t,s)=>{this.getOwner.find(({userid:e})=>e===this.userId)&&this.assistData.assist_userid.find(e=>e===this.userId)?$A.modalConfirm({content:"\u4F60\u5F53\u524D\u662F\u8D1F\u8D23\u4EBA\uFF0C\u786E\u5B9A\u8981\u8F6C\u4E3A\u534F\u52A9\u4EBA\u5458\u5417\uFF1F",cancelText:"\u53D6\u6D88",okText:"\u786E\u5B9A",onOk:()=>{this.onAssistConfirm().then(t).catch(s)},onCancel:()=>{s()}}):this.onAssistConfirm().then(t).catch(s)})},onAssistConfirm(){return new Promise((t,s)=>{let e=this.assistData.assist_userid;e.length===0&&(e=!1),this.assistLoad++,this.$store.dispatch("taskUpdate",{task_id:this.taskDetail.id,assist:e}).then(({msg:a})=>{$A.messageSuccess(a),this.assistLoad--,this.$store.dispatch("getTaskOne",this.taskDetail.id).catch(()=>{}),t()}).catch(({msg:a})=>{$A.modalError(a),this.assistLoad--,s()})})},openTime(){this.timeOpen=!this.timeOpen,this.timeOpen&&(this.timeValue=this.taskDetail.end_at?[this.taskDetail.start_at,this.taskDetail.end_at]:[])},timeChange(t){t||(this.timeOpen=!1)},timeClear(){this.updateData("times",{start_at:!1,end_at:!1}),this.timeOpen=!1},timeOk(){const t=$A.date2string(this.timeValue,"Y-m-d H:i");this.updateData("times",{start_at:t[0],end_at:t[1]}),this.timeOpen=!1},addsubOpen(){this.addsubShow=!0,this.$nextTick(()=>{this.$refs.addsub.focus()})},addsubChackClose(){this.addsubName==""&&(this.addsubShow=!1)},addsubKeydown(t){if(t.keyCode===13){if(t.shiftKey||this.addsubLoad>0)return;t.preventDefault(),this.onAddsub()}},onAddsub(){if(this.addsubName==""){$A.messageError("\u4EFB\u52A1\u63CF\u8FF0\u4E0D\u80FD\u4E3A\u7A7A");return}this.addsubLoad++,this.$store.dispatch("taskAddSub",{task_id:this.taskDetail.id,name:this.addsubName}).then(({msg:t})=>{$A.messageSuccess(t),this.addsubLoad--,this.addsubName=""}).catch(({msg:t})=>{$A.modalError(t),this.addsubLoad--})},getLogLists(){this.navActive=="log"&&this.$refs.log.getLists(!0)},logLoadChange(t){this.logLoadIng=t},dropAdd(t){switch(t){case"priority":this.$set(this.taskDetail,"p_name",this.$L("\u672A\u8BBE\u7F6E")),this.$nextTick(()=>{this.$refs.priority.show()});break;case"assist":this.assistForce=!0,this.$nextTick(()=>{this.$refs.assist.onSelection()});break;case"visible":this.visibleForce=!0,this.$nextTick(()=>{this.showCisibleDropdown()});break;case"times":this.timeForce=!0,this.$nextTick(()=>{this.openTime()});break;case"loop":this.loopForce=!0,this.$nextTick(()=>{this.$refs.loop.show()});break;case"file":this.onUploadClick(!0);break;case"subtask":this.addsubForce=!0,this.$nextTick(()=>{this.addsubOpen()});break}},onEventMore(t){["image","file"].includes(t)&&this.onUploadClick(!1)},onUploadClick(t){this.imageAttachment=!!t,this.$refs.upload.handleClick()},msgDialog(t=null,s=!1){this.sendLoad>0||this.openLoad>0||(s===!0?this.openLoad++:this.sendLoad++,this.$store.dispatch("call",{url:"project/task/dialog",data:{task_id:this.taskDetail.id}}).then(({data:e})=>{this.$store.dispatch("saveTask",{id:e.id,dialog_id:e.dialog_id}),this.$store.dispatch("saveDialog",e.dialog_data),$A.isSubElectron?this.resizeDialog().then(()=>{this.sendDialogMsg(t)}):this.$nextTick(()=>{if(this.windowPortrait){$A.onBlur();const a={time:$A.Time()+10,msgRecord:this.msgRecord,msgFile:this.msgFile,msgText:typeof t=="string"&&t?t:this.msgText,dialogId:e.dialog_id};this.msgRecord={},this.msgFile=[],this.msgText="",this.$nextTick(i=>{this.dialogId>0&&this.$store.dispatch("openTask",0),this.$store.dispatch("openDialog",e.dialog_id).then(o=>{this.$store.state.dialogMsgTransfer=a})})}else this.sendDialogMsg(t)})}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{s===!0?this.openLoad--:this.sendLoad--}))},sendDialogMsg(t=null){this.msgFile.length>0?this.$refs.dialog.sendFileMsg(this.msgFile.map(s=>Object.assign(s,{ajaxExtraData:{image_attachment:this.imageAttachment?1:0}}))):this.msgText?this.$refs.dialog.sendMsg(this.msgText):typeof t=="string"&&t&&this.$refs.dialog.sendMsg(t),this.msgFile=[],this.msgText=""},taskPasteDrag(t,s){if(this.dialogDrag=!1,$A.dataHasFolder(s==="drag"?t.dataTransfer:t.clipboardData)){t.preventDefault(),$A.modalWarning(`\u6682\u4E0D\u652F\u6301${s==="drag"?"\u62D6\u62FD":"\u7C98\u8D34"}\u6587\u4EF6\u5939\u3002`);return}const e=s==="drag"?t.dataTransfer.files:t.clipboardData.files;this.msgFile=Array.prototype.slice.call(e),this.msgFile.length>0&&(t.preventDefault(),this.msgDialog())},taskDragOver(t,s){let e=this.__dialogDrag=$A.randomString(8);if(!t)setTimeout(()=>{e===this.__dialogDrag&&(this.dialogDrag=t)},150);else{if(s.dataTransfer.effectAllowed==="move")return;this.dialogDrag=!0}},onSelectFile(t){this.msgFile=$A.isArray(t)?t:[t],this.msgDialog()},onRecord(t){this.msgRecord=t,this.msgDialog()},onSend(t){this.$refs.chatInput&&this.$refs.chatInput.hidePopover(),t==="open"?this.msgDialog(null,!0):this.msgDialog(t)},deleteFile(t){this.$set(t,"_show_menu",!1),this.$store.dispatch("forgetTaskFile",t.id),this.$store.dispatch("call",{url:"project/task/filedelete",data:{file_id:t.id}}).catch(({msg:s})=>{$A.modalError(s),this.$store.dispatch("getTaskFiles",this.taskDetail.id)})},openMenu(t,s){const e=this.$refs[`taskMenu_${s.id}`];e&&e.handleClick(t)},openNewWin(){let t={title:this.taskDetail.name,titleFixed:!0,parent:null,width:Math.min(window.screen.availWidth,this.$el.clientWidth+72),height:Math.min(window.screen.availHeight,this.$el.clientHeight+72),minWidth:600,minHeight:450};this.hasOpenDialog&&(t.minWidth=800,t.minHeight=600),this.$Electron.sendMessage("windowRouter",{name:`task-${this.taskDetail.id}`,path:`/single/task/${this.taskDetail.id}?navActive=${this.navActive}`,force:!1,config:t}),this.$store.dispatch("openTask",0)},resizeDialog(){return new Promise(t=>{this.$Electron.sendMessage("windowSize",{width:Math.max(1100,this.windowWidth),height:Math.max(720,this.windowHeight),minWidth:800,minHeight:600,autoZoom:!0});let s=0,e=setInterval(()=>{s++,(this.$refs.dialog||s>20)&&(clearInterval(e),this.$refs.dialog&&t())},100)})},viewFile(t){if(["jpg","jpeg","webp","gif","png"].includes(t.ext)){const e=this.fileList.filter(i=>["jpg","jpeg","webp","gif","png"].includes(i.ext)),a=e.findIndex(i=>i.id===t.id);a>-1?this.$store.dispatch("previewImage",{index:a,list:e.map(i=>({src:i.path,width:i.width,height:i.height}))}):this.$store.dispatch("previewImage",{index:0,list:[{src:t.path,width:t.width,height:t.height}]});return}const s=`/single/file/task/${t.id}`;this.$Electron?this.$Electron.sendMessage("windowRouter",{name:`file-task-${t.id}`,path:s,userAgent:"/hideenOfficeTitle/",force:!1,config:{title:`${t.name} (${$A.bytesToSize(t.size)})`,titleFixed:!0,parent:null,width:Math.min(window.screen.availWidth,1440),height:Math.min(window.screen.availHeight,900)},webPreferences:{nodeIntegrationInSubFrames:t.ext==="drawio"}}):this.$isEEUiApp?$A.eeuiAppOpenPage({pageType:"app",pageTitle:`${t.name} (${$A.bytesToSize(t.size)})`,url:"web.js",params:{titleFixed:!0,allowAccess:!0,url:$A.rightDelete(window.location.href,window.location.hash)+`#${s}`}}):window.open($A.apiUrl(`..${s}`))},downFile(t){$A.modalConfirm({title:"\u4E0B\u8F7D\u6587\u4EF6",content:`${t.name} (${$A.bytesToSize(t.size)})`,okText:"\u7ACB\u5373\u4E0B\u8F7D",onOk:()=>{this.$store.dispatch("downUrl",$A.apiUrl(`project/task/filedown?file_id=${t.id}`))}})},showCisibleDropdown(){this.$refs.eDropdownRef.show()},visibleUserSelectShowChange(t){if(!t&&(this.taskDetail.visibility_appointor.length==0||!this.taskDetail.visibility_appointor[0])){let s=this.taskDetail.old_is_all_visible;this.taskDetail.is_all_visible=s>2?1:s||1,this.taskDetail.is_all_visible<3&&this.updateVisible()}},dropVisible(t){switch(t){case 1:case 2:this.taskDetail.is_all_visible=t,this.updateVisible();break;case 3:this.taskDetail.old_is_all_visible=this.taskDetail.is_all_visible,this.taskDetail.is_all_visible=t,this.$nextTick(()=>{this.$refs.visibleUserSelectRef.onSelection()});break}},updateVisible(){this.updateData(["is_all_visible","visibility_appointor"])}}},m={};var W=l(R,N,B,!1,Y,null,null,null);function Y(t){for(let s in m)this[s]=m[s]}var Q=function(){return W.exports}();export{M as T,x as a,Q as b}; diff --git a/public/js/build/TaskMenu.8df6d0b9.js b/public/js/build/TaskMenu.e215eae8.js similarity index 96% rename from public/js/build/TaskMenu.8df6d0b9.js rename to public/js/build/TaskMenu.e215eae8.js index c3eb99d63..e31e253bb 100644 --- a/public/js/build/TaskMenu.8df6d0b9.js +++ b/public/js/build/TaskMenu.e215eae8.js @@ -1 +1 @@ -import{m as i,a as n,n as l}from"./app.62942df0.js";var r=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"task-menu-icon",on:{click:t.handleClick}},[t.loadIng?e("div",{staticClass:"loading"},[e("Loading")],1):[t.task.complete_at?e("Icon",{staticClass:"completed",attrs:{type:t.completedIcon}}):e("Icon",{staticClass:"uncomplete",attrs:{type:t.icon}})]],2)},d=[];const c={name:"TaskMenu",props:{task:{type:Object,default:()=>({})},loadStatus:{type:Boolean,default:!1},colorShow:{type:Boolean,default:!0},updateBefore:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},size:{type:String,default:"small"},icon:{type:String,default:"md-radio-button-off"},completedIcon:{type:String,default:"md-checkmark-circle"}},computed:{...i(["loads","taskFlows"]),...n(["isLoad"]),loadIng(){return this.loadStatus?!0:this.isLoad(`task-${this.task.id}`)}},methods:{handleClick(t){this.$store.state.taskOperation={event:t,task:this.task,loadStatus:this.loadStatus,colorShow:this.colorShow,updateBefore:this.updateBefore,disabled:this.disabled,size:this.size,onUpdate:s=>{this.$emit("on-update",s)}}},updateTask(t){if(this.loadIng)return;Object.keys(t).forEach(e=>this.$set(this.task,e,t[e]));const s=Object.assign(t,{task_id:this.task.id});this.$store.dispatch("taskUpdate",s).then(({data:e,msg:o})=>{$A.messageSuccess(o),this.$store.dispatch("saveTaskBrowse",s.task_id),this.$emit("on-update",e)}).catch(({msg:e})=>{$A.modalError(e),this.$store.dispatch("getTaskOne",s.task_id).catch(()=>{})})}}},a={};var u=l(c,r,d,!1,p,null,null,null);function p(t){for(let s in a)this[s]=a[s]}var m=function(){return u.exports}();export{m as T}; +import{m as i,b as n,n as l}from"./app.2163cd94.js";var r=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"task-menu-icon",on:{click:t.handleClick}},[t.loadIng?e("div",{staticClass:"loading"},[e("Loading")],1):[t.task.complete_at?e("Icon",{staticClass:"completed",attrs:{type:t.completedIcon}}):e("Icon",{staticClass:"uncomplete",attrs:{type:t.icon}})]],2)},d=[];const c={name:"TaskMenu",props:{task:{type:Object,default:()=>({})},loadStatus:{type:Boolean,default:!1},colorShow:{type:Boolean,default:!0},updateBefore:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},size:{type:String,default:"small"},icon:{type:String,default:"md-radio-button-off"},completedIcon:{type:String,default:"md-checkmark-circle"}},computed:{...i(["loads","taskFlows"]),...n(["isLoad"]),loadIng(){return this.loadStatus?!0:this.isLoad(`task-${this.task.id}`)}},methods:{handleClick(t){this.$store.state.taskOperation={event:t,task:this.task,loadStatus:this.loadStatus,colorShow:this.colorShow,updateBefore:this.updateBefore,disabled:this.disabled,size:this.size,onUpdate:s=>{this.$emit("on-update",s)}}},updateTask(t){if(this.loadIng)return;Object.keys(t).forEach(e=>this.$set(this.task,e,t[e]));const s=Object.assign(t,{task_id:this.task.id});this.$store.dispatch("taskUpdate",s).then(({data:e,msg:o})=>{$A.messageSuccess(o),this.$store.dispatch("saveTaskBrowse",s.task_id),this.$emit("on-update",e)}).catch(({msg:e})=>{$A.modalError(e),this.$store.dispatch("getTaskOne",s.task_id).catch(()=>{})})}}},a={};var u=l(c,r,d,!1,p,null,null,null);function p(t){for(let s in a)this[s]=a[s]}var m=function(){return u.exports}();export{m as T}; diff --git a/public/js/build/UserSelect.4461eb56.js b/public/js/build/UserSelect.4461eb56.js deleted file mode 100644 index f764a294c..000000000 --- a/public/js/build/UserSelect.4461eb56.js +++ /dev/null @@ -1 +0,0 @@ -import{m as r,n}from"./app.62942df0.js";var o=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"common-user-select",class:e.warpClass},[e.module?e._e():t("ul",[e._l(e.values,function(s){return s?t("li",{on:{click:e.onSelection}},[t("UserAvatar",{attrs:{userid:s,size:e.avatarSize,"show-icon":e.avatarIcon,"show-name":e.avatarName,"tooltip-disabled":""}})],1):e._e()}),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(s){e.showModal=!1}}},[e._v(e._s(e.$L("\u5173\u95ED")))]),t("div",{staticClass:"user-modal-title"},[t("span",[e._v(e._s(e.localTitle))])]),t("div",{staticClass:"user-modal-submit",on:{click:e.onSubmit}},[e.loadIng>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(s){e.showModal=s},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",e._l(e.formatSelect(e.selects),function(s){return t("li",{attrs:{"data-id":s.userid},on:{click:function(i){return i.stopPropagation(),e.onRemoveItem(s.userid)}}},[s.type=="group"?[s.avatar?t("EAvatar",{staticClass:"img-avatar",attrs:{src:s.avatar,size:32}}):s.group_type=="department"?t("i",{staticClass:"taskfont icon-avatar department"},[e._v("\uE75C")]):s.group_type=="project"?t("i",{staticClass:"taskfont icon-avatar project"},[e._v("\uE6F9")]):s.group_type=="task"?t("i",{staticClass:"taskfont icon-avatar task"},[e._v("\uE6F4")]):t("Icon",{staticClass:"icon-avatar",attrs:{type:"ios-people"}})]:t("UserAvatar",{attrs:{userid:s.userid,"tooltip-disabled":""}})],2)}),0)]):e._e(),t("Input",{staticClass:"search-input",attrs:{placeholder:e.localPlaceholder,clearable:""},model:{value:e.searchKey,callback:function(s){e.searchKey=s},expression:"searchKey"}},[t("div",{staticClass:"search-pre",attrs:{slot:"prefix"},slot:"prefix"},[e.loadIng>0?t("Loading"):t("Icon",{attrs:{type:"ios-search"}})],1)])],1),e.isWhole?t("ul",{staticClass:"user-modal-switch"},e._l(e.switchItems,function(s){return t("li",{key:s.key,class:{active:e.switchActive===s.key},on:{click:function(i){e.switchActive=s.key}}},[e._v(e._s(e.$L(s.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(s){return t("li",{class:e.selectClass(s.userid_list),on:{click:function(i){return e.onSelectProject(s.userid_list)}}},[t("Icon",{staticClass:"user-modal-icon",attrs:{type:e.selectIcon(s.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(s.name))]),t("div",{staticClass:"subtitle"},[e._v(" "+e._s(s.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):t("ul",[e.showSelectAll?t("li",{class:e.selectClass("all"),on:{click:e.onSelectAll}},[t("Icon",{staticClass:"user-modal-icon",attrs:{type:e.selectIcon("all")}}),t("div",{staticClass:"user-modal-all"},[e._v(e._s(e.$L("\u5168\u9009")))])],1):e._e(),e._l(e.lists,function(s){return t("li",{class:{selected:e.selects.includes(s.userid),disabled:e.isUncancelable(s.userid)||e.isDisabled(s.userid)},on:{click:function(i){return e.onSelectItem(s)}}},[e.selects.includes(s.userid)?t("Icon",{staticClass:"user-modal-icon",attrs:{type:"ios-checkmark-circle"}}):t("Icon",{staticClass:"user-modal-icon",attrs:{type:"ios-radio-button-off"}}),s.type=="group"?t("div",{staticClass:"user-modal-avatar"},[s.avatar?t("EAvatar",{staticClass:"img-avatar",attrs:{src:s.avatar,size:40}}):s.group_type=="department"?t("i",{staticClass:"taskfont icon-avatar department"},[e._v("\uE75C")]):s.group_type=="project"?t("i",{staticClass:"taskfont icon-avatar project"},[e._v("\uE6F9")]):s.group_type=="task"?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(s.name))])])],1):t("UserAvatar",{staticClass:"user-modal-avatar",attrs:{userid:s.userid,size:40,"show-name":"","tooltip-disabled":""}})],1)})],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)},h=[];const u={name:"UserSelect",props:{value:{type:[String,Number,Array],default:()=>[]},uncancelable:{type:Array,default:()=>[]},disabledChoice:{type:Array,default:()=>[]},projectId:{type:Number,default:0},noProjectId:{type:Number,default:0},dialogId:{type:Number,default:0},showBot:{type:Boolean,default:!1},showDisable:{type:Boolean,default:!1},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},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",loadIng:0,waitIng:0,submittIng:0,values:[],selects:[],recents:[],contacts:[],projects:[],showModal:!1,searchKey:null,searchCache:[]}},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(a=>$A.runNum(a)).filter(a=>a>0))),this.values=e},immediate:!0},isWhole:{handler(e){e?this.switchActive="recent":this.switchActive="contact"},immediate:!0},showModal(e){e?this.searchBefore():this.searchKey="",this.$emit("on-show-change",e)},searchKey(){this.searchBefore()},switchActive(){this.searchBefore()}},computed:{...r(["cacheDialogs"]),isFullscreen({windowWidth:e}){return e<576},isWhole({projectId:e,noProjectId:a,dialogId:t}){return e===0&&a===0&&t===0},lists({switchActive:e,searchKey:a,recents:t,contacts:s,projects:i}){switch(e){case"recent":return a?t.filter(l=>`${l.name}`.indexOf(a)>-1):t;case"contact":return s;case"project":return i}return[]},isSelectAll({lists:e,selects:a}){return e.length>0&&e.filter(t=>a.includes(t.userid)).length===e.length},warpClass(){return{"select-module":this.module,"select-border":this.border,"select-whole":this.isWhole}},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:{isUncancelable(e){return this.uncancelable.length===0?!1:this.uncancelable.includes(e)},isDisabled(e){return this.disabledChoice.length===0?!1:this.disabledChoice.includes(e)},formatSelect(e){return e.map(a=>$A.leftExists(a,"d:")?this.recents.find(t=>t.userid===a):{type:"user",userid:a})},selectIcon(e){if(e==="all")return this.isSelectAll?"ios-checkmark-circle":"ios-radio-button-off";if($A.isArray(e)&&e.length>0){const a=e.filter(t=>this.selects.includes(t)).length;if(a===e.length)return"ios-checkmark-circle";if(a>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.switchActive==="recent"?this.searchRecent():this.switchActive==="contact"?this.searchContact():this.switchActive==="project"&&this.searchProject())},searchRecent(){this.recents=this.cacheDialogs.filter(e=>e.name===void 0||e.dialog_delete===1||!this.showBot&&e.bot?!1:this.showDialog||e.type==="user").sort((e,a)=>e.top_at||a.top_at?$A.Date(a.top_at)-$A.Date(e.top_at):e.todo_num>0||a.todo_num>0?a.todo_num-e.todo_num:$A.Date(a.last_at)-$A.Date(e.last_at)).map(({id:e,name:a,type:t,group_type:s,avatar:i,dialog_user:l})=>({name:a,type:t,group_type:s,avatar:i,userid:t==="user"?l.userid:`d:${e}`}))},searchContact(){let e=this.searchKey;const a=this.searchCache.find(t=>t.type==="contact"&&t.key==e);a&&(this.contacts=a.data),this.waitIng++,setTimeout(()=>{if(this.searchKey!=e){this.waitIng--;return}setTimeout(()=>{this.loadIng++},300),this.$store.dispatch("call",{url:"users/search",data:{keys:{key:e,project_id:this.projectId,no_project_id:this.noProjectId,dialog_id:this.dialogId,bot:this.showBot&&e?2:0,disable:this.showDisable&&e?2:0},take:50}}).then(({data:t})=>{t=t.map(l=>Object.assign(l,{type:"user"})),this.contacts=t;const s=this.searchCache.findIndex(l=>l.key==e),i={type:"contact",key:e,data:t,time:$A.Time()};s>-1?this.searchCache.splice(s,1,i):this.searchCache.push(i)}).catch(({msg:t})=>{this.contacts=[],$A.messageWarning(t)}).finally(t=>{this.loadIng--,this.waitIng--})},this.searchCache.length>0?300:0)},searchProject(){let e=this.searchKey;const a=this.searchCache.find(t=>t.type==="project"&&t.key==e);a&&(this.projects=a.data),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})=>{t=t.data.map(l=>Object.assign(l,{type:"project"})),this.projects=t;const s=this.searchCache.findIndex(l=>l.key==e),i={type:"project",key:e,data:t,time:$A.Time()};s>-1?this.searchCache.splice(s,1,i):this.searchCache.push(i)}).catch(({msg:t})=>{this.projects=[],$A.messageWarning(t)}).finally(t=>{this.loadIng--,this.waitIng--})},this.searchCache.length>0?300:0)},onSelection(){this.$nextTick(e=>{this.selects=$A.cloneJSON(this.values),this.showModal=!0})},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)})},onSelectItem({userid:e}){if(this.selects.includes(e)){if(this.isUncancelable(e))return;this.selects=this.selects.filter(a=>a!=e)}else{if(this.isDisabled(e))return;if(this.multipleMax&&this.selects.length>=this.multipleMax){$A.messageWarning("\u5DF2\u8D85\u8FC7\u6700\u5927\u9009\u62E9\u6570\u91CF");return}this.selects.push(e),this.$nextTick(()=>{$A.scrollIntoViewIfNeeded(this.$refs.selected.querySelector(`li[data-id="${e}"]`))})}},onSelectProject(e){switch(this.selectIcon(e)){case"ios-checkmark-circle":const a=e.filter(s=>!this.isUncancelable(s));a.length!=e.length&&$A.messageWarning("\u90E8\u5206\u6210\u5458\u7981\u6B62\u53D6\u6D88"),this.selects=this.selects.filter(s=>!a.includes(s));break;default:const t=e.filter(s=>!this.isDisabled(s));t.length!=e.length&&$A.messageWarning("\u90E8\u5206\u6210\u5458\u7981\u6B62\u9009\u62E9"),this.selects=this.selects.concat(t.filter(s=>!this.selects.includes(s))),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}},onRemoveItem(e){this.isUncancelable(e)||(this.selects=this.selects.filter(a=>a!=e))},onSubmit(){if(this.submittIng>0)return;const e=$A.cloneJSON(this.values);if(this.values=$A.cloneJSON(this.selects),this.$emit("input",this.values),this.$emit("onSubmit",this.values),!this.beforeSubmit){this.showModal=!1;return}const a=this.beforeSubmit();a&&a.then?(this.submittIng++,a.then(()=>{this.showModal=!1}).catch(()=>{this.values=e,this.$emit("input",this.values)}).finally(()=>{this.submittIng--})):this.showModal=!1}}},c={};var d=n(u,o,h,!1,f,null,null,null);function f(e){for(let a in c)this[a]=c[a]}var m=function(){return d.exports}();export{m as U}; diff --git a/public/js/build/UserSelect.e1ef2c0e.js b/public/js/build/UserSelect.e1ef2c0e.js new file mode 100644 index 000000000..0c69fdb93 --- /dev/null +++ b/public/js/build/UserSelect.e1ef2c0e.js @@ -0,0 +1 @@ +import{m as r,n}from"./app.2163cd94.js";var o=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"common-user-select",class:e.warpClass},[e.module?e._e():t("ul",[e._l(e.values,function(s){return s?t("li",{on:{click:e.onSelection}},[t("UserAvatar",{attrs:{userid:s,size:e.avatarSize,"show-icon":e.avatarIcon,"show-name":e.avatarName,"tooltip-disabled":""}})],1):e._e()}),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(s){e.showModal=!1}}},[e._v(e._s(e.$L("\u5173\u95ED")))]),t("div",{staticClass:"user-modal-title"},[t("span",[e._v(e._s(e.localTitle))])]),t("div",{staticClass:"user-modal-submit",on:{click:e.onSubmit}},[e.loadIng>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(s){e.showModal=s},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",e._l(e.formatSelect(e.selects),function(s){return t("li",{attrs:{"data-id":s.userid},on:{click:function(i){return i.stopPropagation(),e.onRemoveItem(s.userid)}}},[s.type=="group"?[s.avatar?t("EAvatar",{staticClass:"img-avatar",attrs:{src:s.avatar,size:32}}):s.group_type=="department"?t("i",{staticClass:"taskfont icon-avatar department"},[e._v("\uE75C")]):s.group_type=="project"?t("i",{staticClass:"taskfont icon-avatar project"},[e._v("\uE6F9")]):s.group_type=="task"?t("i",{staticClass:"taskfont icon-avatar task"},[e._v("\uE6F4")]):s.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:s.userid,"tooltip-disabled":""}})],2)}),0)]):e._e(),t("Input",{staticClass:"search-input",attrs:{placeholder:e.localPlaceholder,clearable:""},model:{value:e.searchKey,callback:function(s){e.searchKey=s},expression:"searchKey"}},[t("div",{staticClass:"search-pre",attrs:{slot:"prefix"},slot:"prefix"},[e.loadIng>0?t("Loading"):t("Icon",{attrs:{type:"ios-search"}})],1)])],1),e.isWhole?t("ul",{staticClass:"user-modal-switch"},e._l(e.switchItems,function(s){return t("li",{key:s.key,class:{active:e.switchActive===s.key},on:{click:function(i){e.switchActive=s.key}}},[e._v(e._s(e.$L(s.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(s){return t("li",{class:e.selectClass(s.userid_list),on:{click:function(i){return e.onSelectProject(s.userid_list)}}},[t("Icon",{staticClass:"user-modal-icon",attrs:{type:e.selectIcon(s.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(s.name))]),t("div",{staticClass:"subtitle"},[e._v(" "+e._s(s.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):t("ul",[e.showSelectAll?t("li",{class:e.selectClass("all"),on:{click:e.onSelectAll}},[t("Icon",{staticClass:"user-modal-icon",attrs:{type:e.selectIcon("all")}}),t("div",{staticClass:"user-modal-all"},[e._v(e._s(e.$L("\u5168\u9009")))])],1):e._e(),e._l(e.lists,function(s){return t("li",{class:{selected:e.selects.includes(s.userid),disabled:e.isUncancelable(s.userid)||e.isDisabled(s.userid)},on:{click:function(i){return e.onSelectItem(s)}}},[e.selects.includes(s.userid)?t("Icon",{staticClass:"user-modal-icon",attrs:{type:"ios-checkmark-circle"}}):t("Icon",{staticClass:"user-modal-icon",attrs:{type:"ios-radio-button-off"}}),s.type=="group"?t("div",{staticClass:"user-modal-avatar"},[s.avatar?t("EAvatar",{staticClass:"img-avatar",attrs:{src:s.avatar,size:40}}):s.group_type=="department"?t("i",{staticClass:"taskfont icon-avatar department"},[e._v("\uE75C")]):s.group_type=="project"?t("i",{staticClass:"taskfont icon-avatar project"},[e._v("\uE6F9")]):s.group_type=="task"?t("i",{staticClass:"taskfont icon-avatar task"},[e._v("\uE6F4")]):s.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(s.name))])])],1):t("UserAvatar",{staticClass:"user-modal-avatar",attrs:{userid:s.userid,size:40,"show-name":"","tooltip-disabled":""}})],1)})],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)},h=[];const u={name:"UserSelect",props:{value:{type:[String,Number,Array],default:()=>[]},uncancelable:{type:Array,default:()=>[]},disabledChoice:{type:Array,default:()=>[]},projectId:{type:Number,default:0},noProjectId:{type:Number,default:0},dialogId:{type:Number,default:0},showBot:{type:Boolean,default:!1},showDisable:{type:Boolean,default:!1},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},disable:{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",loadIng:0,waitIng:0,submittIng:0,values:[],selects:[],recents:[],contacts:[],projects:[],showModal:!1,searchKey:null,searchCache:[]}},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(a=>$A.runNum(a)).filter(a=>a>0))),this.values=e},immediate:!0},isWhole:{handler(e){e?this.switchActive="recent":this.switchActive="contact"},immediate:!0},showModal(e){e?this.searchBefore():this.searchKey="",this.$emit("on-show-change",e,this.values)},searchKey(){this.searchBefore()},switchActive(){this.searchBefore()}},computed:{...r(["cacheDialogs"]),isFullscreen({windowWidth:e}){return e<576},isWhole({projectId:e,noProjectId:a,dialogId:t}){return e===0&&a===0&&t===0},lists({switchActive:e,searchKey:a,recents:t,contacts:s,projects:i}){switch(e){case"recent":return a?t.filter(l=>`${l.name}`.indexOf(a)>-1):t;case"contact":return s;case"project":return i}return[]},isSelectAll({lists:e,selects:a}){return e.length>0&&e.filter(t=>a.includes(t.userid)).length===e.length},warpClass(){return{"select-module":this.module,"select-border":this.border,"select-whole":this.isWhole}},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:{isUncancelable(e){return this.uncancelable.length===0?!1:this.uncancelable.includes(e)},isDisabled(e){return this.disabledChoice.length===0?!1:this.disabledChoice.includes(e)},formatSelect(e){return e.map(a=>$A.leftExists(a,"d:")?this.recents.find(t=>t.userid===a):{type:"user",userid:a})},selectIcon(e){if(e==="all")return this.isSelectAll?"ios-checkmark-circle":"ios-radio-button-off";if($A.isArray(e)&&e.length>0){const a=e.filter(t=>this.selects.includes(t)).length;if(a===e.length)return"ios-checkmark-circle";if(a>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.switchActive==="recent"?this.searchRecent():this.switchActive==="contact"?this.searchContact():this.switchActive==="project"&&this.searchProject())},searchRecent(){this.recents=this.cacheDialogs.filter(e=>e.name===void 0||e.dialog_delete===1||!this.showBot&&e.bot?!1:this.showDialog||e.type==="user").sort((e,a)=>e.top_at||a.top_at?$A.Date(a.top_at)-$A.Date(e.top_at):e.todo_num>0||a.todo_num>0?a.todo_num-e.todo_num:$A.Date(a.last_at)-$A.Date(e.last_at)).map(({id:e,name:a,type:t,group_type:s,avatar:i,dialog_user:l})=>({name:a,type:t,group_type:s,avatar:i,userid:t==="user"?l.userid:`d:${e}`}))},searchContact(){let e=this.searchKey;const a=this.searchCache.find(t=>t.type==="contact"&&t.key==e);a&&(this.contacts=a.data),this.waitIng++,setTimeout(()=>{if(this.searchKey!=e){this.waitIng--;return}setTimeout(()=>{this.loadIng++},300),this.$store.dispatch("call",{url:"users/search",data:{keys:{key:e,project_id:this.projectId,no_project_id:this.noProjectId,dialog_id:this.dialogId,bot:this.showBot&&e?2:0,disable:this.showDisable&&e?2:0},take:50}}).then(({data:t})=>{t=t.map(l=>Object.assign(l,{type:"user"})),this.contacts=t;const s=this.searchCache.findIndex(l=>l.key==e),i={type:"contact",key:e,data:t,time:$A.Time()};s>-1?this.searchCache.splice(s,1,i):this.searchCache.push(i)}).catch(({msg:t})=>{this.contacts=[],$A.messageWarning(t)}).finally(t=>{this.loadIng--,this.waitIng--})},this.searchCache.length>0?300:0)},searchProject(){let e=this.searchKey;const a=this.searchCache.find(t=>t.type==="project"&&t.key==e);a&&(this.projects=a.data),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})=>{t=t.data.map(l=>Object.assign(l,{type:"project"})),this.projects=t;const s=this.searchCache.findIndex(l=>l.key==e),i={type:"project",key:e,data:t,time:$A.Time()};s>-1?this.searchCache.splice(s,1,i):this.searchCache.push(i)}).catch(({msg:t})=>{this.projects=[],$A.messageWarning(t)}).finally(t=>{this.loadIng--,this.waitIng--})},this.searchCache.length>0?300:0)},onSelection(){this.disable||this.$nextTick(e=>{this.selects=$A.cloneJSON(this.values),this.showModal=!0})},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)})},onSelectItem({userid:e}){if(this.selects.includes(e)){if(this.isUncancelable(e))return;this.selects=this.selects.filter(a=>a!=e)}else{if(this.isDisabled(e))return;if(this.multipleMax&&this.selects.length>=this.multipleMax){$A.messageWarning("\u5DF2\u8D85\u8FC7\u6700\u5927\u9009\u62E9\u6570\u91CF");return}this.selects.push(e),this.$nextTick(()=>{$A.scrollIntoViewIfNeeded(this.$refs.selected.querySelector(`li[data-id="${e}"]`))})}},onSelectProject(e){switch(this.selectIcon(e)){case"ios-checkmark-circle":const a=e.filter(s=>!this.isUncancelable(s));a.length!=e.length&&$A.messageWarning("\u90E8\u5206\u6210\u5458\u7981\u6B62\u53D6\u6D88"),this.selects=this.selects.filter(s=>!a.includes(s));break;default:const t=e.filter(s=>!this.isDisabled(s));t.length!=e.length&&$A.messageWarning("\u90E8\u5206\u6210\u5458\u7981\u6B62\u9009\u62E9"),this.selects=this.selects.concat(t.filter(s=>!this.selects.includes(s))),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}},onRemoveItem(e){this.isUncancelable(e)||(this.selects=this.selects.filter(a=>a!=e))},onSubmit(){if(this.submittIng>0)return;const e=$A.cloneJSON(this.values);if(this.values=$A.cloneJSON(this.selects),this.$emit("input",this.values),this.$emit("onSubmit",this.values),!this.beforeSubmit){this.showModal=!1;return}const a=this.beforeSubmit();a&&a.then?(this.submittIng++,a.then(()=>{this.showModal=!1}).catch(()=>{this.values=e,this.$emit("input",this.values)}).finally(()=>{this.submittIng--})):this.showModal=!1}}},c={};var d=n(u,o,h,!1,f,null,null,null);function f(e){for(let a in c)this[a]=c[a]}var m=function(){return d.exports}();export{m as U}; diff --git a/public/js/build/app.2163cd94.js b/public/js/build/app.2163cd94.js new file mode 100644 index 000000000..a1f13014c --- /dev/null +++ b/public/js/build/app.2163cd94.js @@ -0,0 +1,398 @@ +const XL="0.8.11",T1=typeof window!="undefined",JL=typeof global!="undefined"?global:typeof window!="undefined"?window:typeof self!="undefined"?self:Function("return this")();function ZL(e){return e===void 0}function os(e){return typeof e=="string"}function A1(e){return typeof e=="boolean"}function kr(e){return typeof e=="function"}const Sc=Array.isArray;function ia(e){return toString.call(e)==="[object Object]"}function G0(e){return toString.call(e)==="[object Promise]"}function Y0(e){return kr(e)&&e.name.indexOf("bound ")===0&&!e.hasOwnProperty("prototype")}function QL(e){return typeof ShadowRoot!="undefined"&&e instanceof ShadowRoot}const mc=Object.defineProperty,qL=Object.defineProperties,Bl=Object.prototype.hasOwnProperty;function qn(e,t=null,...n){const r=t&&os(t)?` app ${t}:`:"";os(e)?console.error(`[micro-app]${r} ${e}`,...n):console.error(`[micro-app]${r}`,e,...n)}function ih(e,t=null,...n){const r=t&&os(t)?` app ${t}:`:"";os(e)?console.warn(`[micro-app]${r} ${e}`,...n):console.warn(`[micro-app]${r}`,e,...n)}function go(e,...t){Promise.resolve().then(e.bind(null,...t))}function M1(e){return e.startsWith("//")?`${location.protocol}${e}`:e}function X0(e,t=null){if(!os(e)||!e)return"";try{const{origin:n,pathname:r,search:i}=new URL(M1(e));if(/\.(\w+)$/.test(r))return`${n}${r}${i}`;const a=`${n}${r}/`.replace(/\/\/$/,"/");return/^https?:\/\//.test(a)?`${a}${i}`:""}catch(n){return qn(n,t),""}}function qa(e){return!os(e)||!e?"":e.replace(/(^\d+)|([^\w\d-_])/gi,"")}function z6(e){const{origin:t,pathname:n}=new URL(e);if(/\.(\w+)$/.test(n)){const i=`${t}${n}`.split("/");return i.pop(),i.join("/")+"/"}return`${t}${n}/`.replace(/\/\/$/,"/")}function So(e,t){return!e||/^((((ht|f)tps?)|file):)?\/\//.test(e)||/^(data|blob):/.test(e)?e:new URL(e,z6(M1(t))).toString()}function eB(e){const t=e.split("/");return t.pop(),M1(t.join("/")+"/")}function Ng(e,t,n,r){let i=0;function a(){++i===e.length&&r&&r()}e.forEach((l,c)=>{G0(l)?l.then(h=>{t({data:h,index:c}),a()}).catch(h=>{n({error:h,index:c}),a()}):(t({data:l,index:c}),a())})}function tB(){const e=document.createElement("script");return"noModule"in e}function nB(){return"inline-"+Math.random().toString(36).substr(2,15)}function rB(e){return e.filter(function(t){return t in this?!1:this[t]=!0},Object.create(null))}const I1=JL.requestIdleCallback||function(e){const t=Date.now();return setTimeout(function(){e({didTimeout:!1,timeRemaining(){return Math.max(0,50-(Date.now()-t))}})},50)};let $1=null;function Mc(e){$1=e}function pv(e){$1!==e&&(Mc(e),go(()=>{Mc(null)}))}function ba(){return $1}function Lg(){Mc(null)}function Du(e,t){const n=document.createElement(e,t);return n.__MICRO_APP_NAME__&&delete n.__MICRO_APP_NAME__,n}function vv(e,t,n){if(t.innerHTML="",n){const r=e.cloneNode(!0),i=document.createDocumentFragment();Array.from(r.childNodes).forEach(a=>{i.appendChild(a)}),t.appendChild(i)}else Array.from(e.childNodes).forEach(r=>{t.appendChild(r)})}function mv(e){return!e||/(^\d)|([^\w\d-_\u4e00-\u9fa5])/gi.test(e)}function My(e){return/^body$/i.test(e)||/^head$/i.test(e)||/^html$/i.test(e)}function ah(e){return QL(e)?e.host:e}function Iy(e){return e?e.replace(/^\s+|\s+$/g,""):""}function X5(){return navigator.userAgent.indexOf("Firefox")>-1}var xf;(function(e){e.NAME="name",e.URL="url"})(xf||(xf={}));var Mr;(function(e){e.NOT_LOADED="NOT_LOADED",e.LOADING_SOURCE_CODE="LOADING_SOURCE_CODE",e.LOAD_SOURCE_FINISHED="LOAD_SOURCE_FINISHED",e.LOAD_SOURCE_ERROR="LOAD_SOURCE_ERROR",e.MOUNTING="MOUNTING",e.MOUNTED="MOUNTED",e.UNMOUNT="UNMOUNT"})(Mr||(Mr={}));var Os;(function(e){e.CREATED="created",e.BEFOREMOUNT="beforemount",e.MOUNTED="mounted",e.UNMOUNT="unmount",e.ERROR="error",e.BEFORESHOW="beforeshow",e.AFTERSHOW="aftershow",e.AFTERHIDDEN="afterhidden"})(Os||(Os={}));var Bs;(function(e){e.KEEP_ALIVE_SHOW="KEEP_ALIVE_SHOW",e.KEEP_ALIVE_HIDDEN="KEEP_ALIVE_HIDDEN"})(Bs||(Bs={}));const J5="window,self,globalThis,Array,Object,String,Boolean,Math,Number,Symbol,Date,Promise,Function,Proxy,WeakMap,WeakSet,Set,Map,Reflect,Element,Node,Document,RegExp,Error,TypeError,JSON,isNaN,parseFloat,parseInt,performance,console,decodeURI,encodeURI,decodeURIComponent,encodeURIComponent,location,navigator,undefined";function ku(e,t=null,n={}){return kr(ur.fetch)?ur.fetch(e,n,t):fetch(e,n).then(r=>r.text())}class R1{static getInstance(){return this.instance||(this.instance=new R1),this.instance}run(t,n){const r=t.name,i=t.ssrUrl||t.url;ku(i,r,{cache:"no-cache"}).then(a=>{if(!a){const l="html is empty, please check in detail";return t.onerror(new Error(l)),qn(l,r)}a=this.formatHTML(i,a,r),n(a,t)}).catch(a=>{qn(`Failed to fetch data from ${t.url}, micro-app stop rendering`,r,a),t.onLoadError(a)})}formatHTML(t,n,r){return this.processHtml(t,n,r,ur.plugins).replace(/]*>[\s\S]*?<\/head>/i,i=>i.replace(//i,"")).replace(/]*>[\s\S]*?<\/body>/i,i=>i.replace(//i,""))}processHtml(t,n,r,i){var a;if(!i)return n;const l=[];return i.global&&l.push(...i.global),!((a=i.modules)===null||a===void 0)&&a[r]&&l.push(...i.modules[r]),l.length>0?l.reduce((c,h)=>ia(h)&&kr(h.processHtml)?h.processHtml(c,t,h.options):c,n):n}}const iB=/(^|\s+)(html|:root)(?=[\s>~[.#:]+|$)/,Z5=/(^|\s+)((html[\s>~]+body)|body)(?=[\s>~[.#:]+|$)/;function Ha(e,t){e=t?`${t} ${e}`:e;const n=new Error(e);throw n.reason=e,t&&(n.filename=t),n}class aB{constructor(){this.cssText="",this.prefix="",this.baseURI="",this.linkPath="",this.result="",this.scopecssDisable=!1,this.scopecssDisableSelectors=[],this.scopecssDisableNextLine=!1,this.mediaRule=this.createMatcherForAtRuleWithChildRule(/^@media *([^{]+)/,"media"),this.supportsRule=this.createMatcherForAtRuleWithChildRule(/^@supports *([^{]+)/,"supports"),this.documentRule=this.createMatcherForAtRuleWithChildRule(/^@([-\w]+)?document *([^{]+)/,"document"),this.hostRule=this.createMatcherForAtRuleWithChildRule(/^@host\s*/,"host"),this.importRule=this.createMatcherForNoneBraceAtRule("import"),this.charsetRule=this.createMatcherForNoneBraceAtRule("charset"),this.namespaceRule=this.createMatcherForNoneBraceAtRule("namespace")}exec(t,n,r,i){return this.cssText=t,this.prefix=n,this.baseURI=r,this.linkPath=i||"",this.matchRules(),X5()?decodeURIComponent(this.result):this.result}reset(){this.cssText=this.prefix=this.baseURI=this.linkPath=this.result="",this.scopecssDisable=this.scopecssDisableNextLine=!1,this.scopecssDisableSelectors=[]}matchRules(){for(this.matchLeadingSpaces(),this.matchComments();this.cssText.length&&this.cssText.charAt(0)!=="}"&&(this.matchAtRule()||this.matchStyleRule());)this.matchComments()}matchStyleRule(){const t=this.formatSelector(!0);return this.scopecssDisableNextLine=!1,t?(this.recordResult(t),this.matchComments(),this.styleDeclarations(),this.matchLeadingSpaces(),!0):Ha("selector missing",this.linkPath)}formatSelector(t){const n=this.commonMatch(/^([^{]+)/,t);return n?n[0].replace(/(^|,[\n\s]*)([^,]+)/g,(r,i,a)=>(a=Iy(a),this.scopecssDisableNextLine||this.scopecssDisable&&(!this.scopecssDisableSelectors.length||this.scopecssDisableSelectors.includes(a))||iB.test(a)||(Z5.test(a)?a=a.replace(Z5,this.prefix+" micro-app-body"):a=this.prefix+" "+a),i+a)):!1}styleDeclarations(){return this.matchOpenBrace()?(this.matchAllDeclarations(),this.matchCloseBrace()?!0:Ha("Declaration missing '}'",this.linkPath)):Ha("Declaration missing '{'",this.linkPath)}matchAllDeclarations(){let t=this.commonMatch(/^(?:url\(["']?(?:[^)"'}]+)["']?\)|[^}/])*/,!0)[0];if(t&&(!this.scopecssDisableNextLine&&(!this.scopecssDisable||this.scopecssDisableSelectors.length)&&(t=t.replace(/url\(["']?([^)"']+)["']?\)/gm,(n,r)=>/^((data|blob):|#)/.test(r)||/^(https?:)?\/\//.test(r)?n:(/^((\.\.?\/)|[^/])/.test(r)&&this.linkPath&&(this.baseURI=eB(this.linkPath)),`url("${So(r,this.baseURI)}")`))),this.recordResult(t)),this.scopecssDisableNextLine=!1,!(!this.cssText||this.cssText.charAt(0)==="}"))return this.cssText.charAt(0)==="/"&&this.cssText.charAt(1)==="*"?this.matchComments():this.commonMatch(/\/+/),this.matchAllDeclarations()}matchAtRule(){return this.cssText[0]!=="@"?!1:(this.scopecssDisableNextLine=!1,this.keyframesRule()||this.mediaRule()||this.customMediaRule()||this.supportsRule()||this.importRule()||this.charsetRule()||this.namespaceRule()||this.documentRule()||this.pageRule()||this.hostRule()||this.fontFaceRule())}keyframesRule(){if(!this.commonMatch(/^@([-\w]+)?keyframes\s*/))return!1;if(!this.commonMatch(/^([-\w]+)\s*/))return Ha("@keyframes missing name",this.linkPath);if(this.matchComments(),!this.matchOpenBrace())return Ha("@keyframes missing '{'",this.linkPath);for(this.matchComments();this.keyframeRule();)this.matchComments();return this.matchCloseBrace()?(this.matchLeadingSpaces(),!0):Ha("@keyframes missing '}'",this.linkPath)}keyframeRule(){let t;const n=[];for(;t=this.commonMatch(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)n.push(t[1]),this.commonMatch(/^,\s*/);return n.length?(this.styleDeclarations(),this.matchLeadingSpaces(),!0):!1}customMediaRule(){return this.commonMatch(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/)?(this.matchLeadingSpaces(),!0):!1}pageRule(){return this.commonMatch(/^@page */)?(this.formatSelector(!1),this.scopecssDisableNextLine=!1,this.commonHandlerForAtRuleWithSelfRule("page")):!1}fontFaceRule(){return this.commonMatch(/^@font-face\s*/)?this.commonHandlerForAtRuleWithSelfRule("font-face"):!1}createMatcherForAtRuleWithChildRule(t,n){return()=>this.commonMatch(t)?this.matchOpenBrace()?(this.matchComments(),this.matchRules(),this.matchCloseBrace()?(this.matchLeadingSpaces(),!0):Ha(`@${n} missing '}'`,this.linkPath)):Ha(`@${n} missing '{'`,this.linkPath):!1}createMatcherForNoneBraceAtRule(t){const n=new RegExp("^@"+t+"\\s*([^;]+);");return()=>this.commonMatch(n)?(this.matchLeadingSpaces(),!0):!1}commonHandlerForAtRuleWithSelfRule(t){return this.matchOpenBrace()?(this.matchAllDeclarations(),this.matchCloseBrace()?(this.matchLeadingSpaces(),!0):Ha(`@${t} missing '}'`,this.linkPath)):Ha(`@${t} missing '{'`,this.linkPath)}matchComments(){for(;this.matchComment(););}matchComment(){if(this.cssText.charAt(0)!=="/"||this.cssText.charAt(1)!=="*")return!1;this.scopecssDisableNextLine=!1;let t=2;for(;this.cssText.charAt(t)!==""&&(this.cssText.charAt(t)!=="*"||this.cssText.charAt(t+1)!=="/");)++t;if(t+=2,this.cssText.charAt(t-1)==="")return Ha("End of comment missing",this.linkPath);let n=this.cssText.slice(2,t-2);return this.recordResult(`/*${n}*/`),n=Iy(n.replace(/^\s*!/,"")),n==="scopecss-disable-next-line"?this.scopecssDisableNextLine=!0:/^scopecss-disable/.test(n)?n==="scopecss-disable"?this.scopecssDisable=!0:(this.scopecssDisable=!0,n.replace("scopecss-disable","").split(",").forEach(i=>{this.scopecssDisableSelectors.push(Iy(i))})):n==="scopecss-enable"&&(this.scopecssDisable=!1,this.scopecssDisableSelectors=[]),this.cssText=this.cssText.slice(t),this.matchLeadingSpaces(),!0}commonMatch(t,n=!1){const r=t.exec(this.cssText);if(!r)return;const i=r[0];return this.cssText=this.cssText.slice(i.length),n||this.recordResult(i),r}matchOpenBrace(){return this.commonMatch(/^{\s*/)}matchCloseBrace(){return this.commonMatch(/^}/)}matchLeadingSpaces(){this.commonMatch(/^\s*/)}recordResult(t){X5()?this.result+=encodeURIComponent(t):this.result+=t}}function Q5(e,t,n,r,i){if(!e.__MICRO_APP_HAS_SCOPED__){e.__MICRO_APP_HAS_SCOPED__=!0;let a=null;try{a=Sf.exec(e.textContent,n,r,i),Sf.reset()}catch(l){Sf.reset(),qn(`An error occurred while parsing CSS: +`,t,l)}a&&(e.textContent=a)}}let Sf;function ou(e,t){if(t.scopecss){const n=`${ur.tagName}[name=${t.name}]`;if(Sf||(Sf=new aB),e.textContent)Q5(e,t.name,n,t.url,e.__MICRO_APP_LINK_PATH__);else{const r=new MutationObserver(function(){r.disconnect(),e.textContent&&!e.hasAttribute("data-styled")&&Q5(e,t.name,n,t.url,e.__MICRO_APP_LINK_PATH__)});r.observe(e,{childList:!0})}}return e}function V6(e,t){Object.defineProperties(e,{currentTarget:{get(){return t}},srcElement:{get(){return t}},target:{get(){return t}}})}function Ef(e){const t=new CustomEvent("load");V6(t,e),kr(e.onload)?e.onload(t):e.dispatchEvent(t)}function W6(e){const t=new CustomEvent("error");V6(t,e),kr(e.onerror)?e.onerror(t):e.dispatchEvent(t)}const ll=new Map;function H6(e,t,n,r=!1){const i=e.getAttribute("rel");let a=e.getAttribute("href"),l=null;if(i==="stylesheet"&&a)if(a=So(a,n.url),!r)l=document.createComment(`link element with href=${a} move to micro-app-head as style element`),n.source.links.set(a,{code:"",placeholder:l,isGlobal:e.hasAttribute("global")});else return{url:a,info:{code:"",isGlobal:e.hasAttribute("global")}};else i&&["prefetch","preload","prerender","icon","apple-touch-icon"].includes(i)?r?l=document.createComment(`link element with rel=${i}${a?" & href="+a:""} removed by micro-app`):t.removeChild(e):a&&e.setAttribute("href",So(a,n.url));if(r)return{replaceComment:l};if(l)return t.replaceChild(l,e)}function sB(e,t,n){const r=Array.from(t.source.links.entries()),i=r.map(([a])=>ll.has(a)?ll.get(a):ku(a,t.name));Ng(i,a=>{oB(r[a.index][0],r[a.index][1],a.data,n,t)},a=>{qn(a,t.name)},()=>{t.onLoad(e)})}function oB(e,t,n,r,i){t.isGlobal&&!ll.has(e)&&ll.set(e,n);const a=Du("style");a.textContent=n,a.__MICRO_APP_LINK_PATH__=e,a.setAttribute("data-origin-href",e),t.placeholder.parentNode?t.placeholder.parentNode.replaceChild(ou(a,i),t.placeholder):r.appendChild(ou(a,i)),t.placeholder=null,t.code=n}function lB(e,t,n,r,i){if(n.source.links.has(e)){i.textContent=n.source.links.get(e).code,ou(i,n),go(()=>Ef(r));return}if(ll.has(e)){const a=ll.get(e);t.code=a,n.source.links.set(e,t),i.textContent=a,ou(i,n),go(()=>Ef(r));return}ku(e,n.name).then(a=>{t.code=a,n.source.links.set(e,t),t.isGlobal&&ll.set(e,a),i.textContent=a,ou(i,n),Ef(r)}).catch(a=>{qn(a,n.name),W6(r)})}const Vo=new WeakMap;function uB(e,t,n){if(t instanceof HTMLStyleElement){if(t.hasAttribute("exclude")){const r=document.createComment("style element with exclude attribute ignored by micro-app");return Vo.set(t,r),r}else if(n.scopecss&&!t.hasAttribute("ignore"))return ou(t,n);return t}else if(t instanceof HTMLLinkElement){if(t.hasAttribute("exclude")||N1(t.getAttribute("href"),n.name)){const l=document.createComment("link element with exclude attribute ignored by micro-app");return Vo.set(t,l),l}else if(t.hasAttribute("ignore")||L1(t.getAttribute("href"),n.name)||t.href&&kr(ur.excludeAssetFilter)&&ur.excludeAssetFilter(t.href))return t;const{url:r,info:i,replaceComment:a}=H6(t,e,n,!0);if(r&&i){const l=Du("style");return l.__MICRO_APP_LINK_PATH__=r,lB(r,i,n,t,l),Vo.set(t,l),l}else if(a)return Vo.set(t,a),a;return t}else if(t instanceof HTMLScriptElement){if(t.src&&kr(ur.excludeAssetFilter)&&ur.excludeAssetFilter(t.src))return t;const{replaceComment:r,url:i,info:a}=J6(t,e,n,!0)||{};if(i&&a)if(a.isExternal){const l=SB(i,a,n,t);return Vo.set(t,l),l}else{const l=Uf(i,n,a,!0);return Vo.set(t,l),l}else if(r)return Vo.set(t,r),r;return t}return t}function K6(e,t,n,r,i){const a=dB(n,e);return a?i&&!a.contains(i)?jt.rawAppendChild.call(a,r):t===jt.rawRemoveChild&&!a.contains(r)?n.contains(r)?t.call(n,r):r:q5(t,a,r,i):q5(t,n,r,i)}function q5(e,t,n,r){return cB(e)?e.call(t,n):e.call(t,n,r)}function cB(e){return e===jt.rawAppend||e===jt.rawPrepend}function dB(e,t){var n,r;return e===document.head?(n=t==null?void 0:t.container)===null||n===void 0?void 0:n.querySelector("micro-app-head"):e===document.body?(r=t==null?void 0:t.container)===null||r===void 0?void 0:r.querySelector("micro-app-body"):null}function G6(e){var t;return(t=Vo.get(e))!==null&&t!==void 0?t:e}function Bd(e,t,n,r){if(t!=null&&t.__MICRO_APP_NAME__){const i=lr.get(t.__MICRO_APP_NAME__);return i!=null&&i.container?K6(i,r,e,uB(e,t,i),n&&G6(n)):r===jt.rawAppend||r===jt.rawPrepend?r.call(e,t):r.call(e,t,n)}else if(r===jt.rawAppend||r===jt.rawPrepend){const i=ba();if(!(t instanceof Node)&&i){const a=lr.get(i);if(a!=null&&a.container){if(e===document.head)return r.call(a.container.querySelector("micro-app-head"),t);if(e===document.body)return r.call(a.container.querySelector("micro-app-body"),t)}}return r.call(e,t)}return r.call(e,t,n)}function fB(){hB(),Element.prototype.appendChild=function(t){return Bd(this,t,null,jt.rawAppendChild)},Element.prototype.insertBefore=function(t,n){return Bd(this,t,n,jt.rawInsertBefore)},Element.prototype.replaceChild=function(t,n){return Bd(this,t,n,jt.rawReplaceChild)},Element.prototype.append=function(...t){let n=0;const r=t.length;for(;n0;)Bd(this,t[n-1],null,jt.rawPrepend),n--},Element.prototype.removeChild=function(t){if(t!=null&&t.__MICRO_APP_NAME__){const n=lr.get(t.__MICRO_APP_NAME__);return n!=null&&n.container?K6(n,jt.rawRemoveChild,this,G6(t)):jt.rawRemoveChild.call(this,t)}return jt.rawRemoveChild.call(this,t)},Element.prototype.cloneNode=function(t){const n=jt.rawCloneNode.call(this,t);return this.__MICRO_APP_NAME__&&(n.__MICRO_APP_NAME__=this.__MICRO_APP_NAME__),n}}function $y(e){const t=ba();return t&&(e.__MICRO_APP_NAME__=t),e}function hB(){const e=jt.rawDocument;Document.prototype.createElement=function(i,a){const l=jt.rawCreateElement.call(this,i,a);return $y(l)},Document.prototype.createElementNS=function(i,a,l){const c=jt.rawCreateElementNS.call(this,i,a,l);return $y(c)},Document.prototype.createDocumentFragment=function(){const i=jt.rawCreateDocumentFragment.call(this);return $y(i)};function t(r){var i,a,l;const c=ba();return!c||!r||My(r)||e!==this?jt.rawQuerySelector.call(this,r):(l=(a=(i=lr.get(c))===null||i===void 0?void 0:i.container)===null||a===void 0?void 0:a.querySelector(r))!==null&&l!==void 0?l:null}function n(r){var i,a,l;const c=ba();return!c||!r||My(r)||e!==this?jt.rawQuerySelectorAll.call(this,r):(l=(a=(i=lr.get(c))===null||i===void 0?void 0:i.container)===null||a===void 0?void 0:a.querySelectorAll(r))!==null&&l!==void 0?l:[]}Document.prototype.querySelector=t,Document.prototype.querySelectorAll=n,Document.prototype.getElementById=function(i){if(!ba()||mv(i))return jt.rawGetElementById.call(this,i);try{return t.call(this,`#${i}`)}catch{return jt.rawGetElementById.call(this,i)}},Document.prototype.getElementsByClassName=function(i){if(!ba()||mv(i))return jt.rawGetElementsByClassName.call(this,i);try{return n.call(this,`.${i}`)}catch{return jt.rawGetElementsByClassName.call(this,i)}},Document.prototype.getElementsByTagName=function(i){var a;const l=ba();if(!l||My(i)||mv(i)||!(!((a=lr.get(l))===null||a===void 0)&&a.inline)&&/^script$/i.test(i))return jt.rawGetElementsByTagName.call(this,i);try{return n.call(this,i)}catch{return jt.rawGetElementsByTagName.call(this,i)}},Document.prototype.getElementsByName=function(i){if(!ba()||mv(i))return jt.rawGetElementsByName.call(this,i);try{return n.call(this,`[name=${i}]`)}catch{return jt.rawGetElementsByName.call(this,i)}}}let J0=!1;function pB(){J0||(J0=!0,Element.prototype.setAttribute=function(t,n){if(/^micro-app(-\S+)?/i.test(this.tagName)&&t==="data")if(ia(n)){const r={};Object.getOwnPropertyNames(n).forEach(i=>{os(i)&&i.indexOf("__")===0||(r[i]=n[i])}),this.data=r}else n!=="[object Object]"&&ih("property data must be an object",this.getAttribute("name"));else if(((t==="src"||t==="srcset")&&/^(img|script)$/i.test(this.tagName)||t==="href"&&/^link$/i.test(this.tagName))&&this.__MICRO_APP_NAME__&&lr.has(this.__MICRO_APP_NAME__)){const r=lr.get(this.__MICRO_APP_NAME__);jt.rawSetAttribute.call(this,t,So(n,r.url))}else jt.rawSetAttribute.call(this,t,n)})}function vB(){J0=!1,Element.prototype.setAttribute=jt.rawSetAttribute}function mB(){Document.prototype.createElement=jt.rawCreateElement,Document.prototype.createElementNS=jt.rawCreateElementNS,Document.prototype.createDocumentFragment=jt.rawCreateDocumentFragment,Document.prototype.querySelector=jt.rawQuerySelector,Document.prototype.querySelectorAll=jt.rawQuerySelectorAll,Document.prototype.getElementById=jt.rawGetElementById,Document.prototype.getElementsByClassName=jt.rawGetElementsByClassName,Document.prototype.getElementsByTagName=jt.rawGetElementsByTagName,Document.prototype.getElementsByName=jt.rawGetElementsByName}function gB(){Mc(null),mB(),Element.prototype.appendChild=jt.rawAppendChild,Element.prototype.insertBefore=jt.rawInsertBefore,Element.prototype.replaceChild=jt.rawReplaceChild,Element.prototype.removeChild=jt.rawRemoveChild,Element.prototype.append=jt.rawAppend,Element.prototype.prepend=jt.rawPrepend,Element.prototype.cloneNode=jt.rawCloneNode}let eE=!1;function _B(){if(!eE){eE=!0;const e=Du("style");jt.rawSetAttribute.call(e,"type","text/css"),e.textContent=` +${ur.tagName}, micro-app-body { display: block; } +micro-app-head { display: none; }`,jt.rawDocument.head.appendChild(e)}}class Fm{constructor(){this.appInstanceMap=lr}static getInstance(){return this.instance||(this.instance=new Fm),this.instance}get(t){return this.appInstanceMap.get(t)}set(t,n){this.appInstanceMap.set(t,n)}getAll(){return Array.from(this.appInstanceMap.values())}clear(){this.appInstanceMap.clear()}}function Y6(){X6(),Fm.getInstance().getAll().forEach(e=>{e.container&&ah(e.container).disconnectedCallback()}),!window.__MICRO_APP_UMD_MODE__&&Fm.getInstance().clear()}function yB(){window.__MICRO_APP_ENVIRONMENT__&&window.addEventListener("unmount",Y6,!1)}function X6(){window.__MICRO_APP_ENVIRONMENT__&&window.removeEventListener("unmount",Y6,!1)}const jt={};function bB(){if(T1){const e=Element.prototype.setAttribute,t=Element.prototype.appendChild,n=Element.prototype.insertBefore,r=Element.prototype.replaceChild,i=Element.prototype.removeChild,a=Element.prototype.append,l=Element.prototype.prepend,c=Element.prototype.cloneNode,h=Document.prototype.createElement,s=Document.prototype.createElementNS,p=Document.prototype.createDocumentFragment,d=Document.prototype.querySelector,v=Document.prototype.querySelectorAll,m=Document.prototype.getElementById,_=Document.prototype.getElementsByClassName,y=Document.prototype.getElementsByTagName,b=Document.prototype.getElementsByName,E=new Proxy(Image,{construct(V,U){const oe=new V(...U);return oe.__MICRO_APP_NAME__=ba(),oe}}),k=Function("return window")(),x=Function("return document")(),C=tB(),D=k.addEventListener,w=k.removeEventListener,P=k.setInterval,M=k.setTimeout,T=k.clearInterval,R=k.clearTimeout,H=x.addEventListener,N=x.removeEventListener;window.__MICRO_APP_BASE_APPLICATION__=!0,Object.assign(jt,{rawSetAttribute:e,rawAppendChild:t,rawInsertBefore:n,rawReplaceChild:r,rawRemoveChild:i,rawAppend:a,rawPrepend:l,rawCloneNode:c,rawCreateElement:h,rawCreateElementNS:s,rawCreateDocumentFragment:p,rawQuerySelector:d,rawQuerySelectorAll:v,rawGetElementById:m,rawGetElementsByClassName:_,rawGetElementsByTagName:y,rawGetElementsByName:b,ImageProxy:E,rawWindow:k,rawDocument:x,supportModuleScript:C,rawWindowAddEventListener:D,rawWindowRemoveEventListener:w,rawSetInterval:P,rawSetTimeout:M,rawClearInterval:T,rawClearTimeout:R,rawDocumentAddEventListener:H,rawDocumentRemoveEventListener:N}),_B(),X6(),yB()}}const lu=new Map;function J6(e,t,n,r=!1){let i=null,a=e.getAttribute("src");if(a&&(a=So(a,n.url)),e.hasAttribute("exclude")||N1(a,n.name))i=document.createComment("script element with exclude attribute removed by micro-app");else{if(e.type&&!["text/javascript","text/ecmascript","application/javascript","application/ecmascript","module","systemjs-module","systemjs-importmap"].includes(e.type)||e.hasAttribute("ignore")||L1(a,n.name))return null;if(jt.supportModuleScript&&e.noModule||!jt.supportModuleScript&&e.type==="module")i=document.createComment(`${e.noModule?"noModule":"module"} script ignored by micro-app`);else if(a){const l={code:"",isExternal:!0,isDynamic:r,async:e.hasAttribute("async"),defer:e.defer||e.type==="module",module:e.type==="module",isGlobal:e.hasAttribute("global")};if(!r)n.source.scripts.set(a,l),i=document.createComment(`script with src='${a}' extract by micro-app`);else return{url:a,info:l}}else if(e.textContent){const l=nB(),c={code:e.textContent,isExternal:!1,isDynamic:r,async:!1,defer:e.type==="module",module:e.type==="module"};if(!r)n.source.scripts.set(l,c),i=document.createComment("inline script extract by micro-app");else return{url:l,info:c}}else r||(i=document.createComment("script element removed by micro-app"))}return r?{replaceComment:i}:t.replaceChild(i,e)}function Z6(e){var t,n,r;const i=((t=ur.plugins)===null||t===void 0?void 0:t.global)||[],a=((r=(n=ur.plugins)===null||n===void 0?void 0:n.modules)===null||r===void 0?void 0:r[e])||[];return[...i,...a]}function N1(e,t){return e?(Z6(t)||[]).some(r=>r.excludeChecker?r.excludeChecker(e):!1):!1}function L1(e,t){return e?(Z6(t)||[]).some(r=>r.ignoreChecker?r.ignoreChecker(e):!1):!1}function wB(e,t){const n=Array.from(t.source.scripts.entries()),r=[],i=[];for(const[a,l]of n)if(l.isExternal){const c=lu.get(a);c?l.code=c:(!l.defer&&!l.async||t.isPrefetch)&&(r.push(ku(a,t.name)),i.push([a,l]))}r.length?Ng(r,a=>{CB(i[a.index][0],i[a.index][1],a.data)},a=>{qn(a,t.name)},()=>{t.onLoad(e)}):t.onLoad(e)}function CB(e,t,n){t.isGlobal&&!lu.has(e)&&lu.set(e,n),t.code=n}function xB(e,t,n){const r=Array.from(e.entries()),i=[],a=[];for(const[l,c]of r)c.isDynamic||(c.defer||c.async?(c.isExternal&&!c.code?i.push(ku(l,t.name)):i.push(c.code),a.push([l,c]),c.module&&(n.moduleCount=n.moduleCount?++n.moduleCount:1)):(Uf(l,t,c,!1),n(!1)));i.length?Ng(i,l=>{const c=a[l.index][1];c.code=c.code||l.data},l=>{n.errorCount=n.errorCount?++n.errorCount:1,qn(l,t.name)},()=>{a.forEach(([l,c])=>{c.code&&(Uf(l,t,c,!1,n),!c.module&&n(!1))}),n(ZL(n.moduleCount)||n.errorCount===i.length)}):n(!0)}function Uf(e,t,n,r,i){var a;try{const l=eO(e,t,n.code,n);if(t.inline||n.module){const c=Du("script");if(Q6(e,l,n.module,c,i),r)return c;(a=t.container)===null||a===void 0||a.querySelector("micro-app-body").appendChild(c)}else if(q6(l,n),r)return document.createComment("dynamic script extract by micro-app")}catch(l){console.error(`[micro-app from runScript] app ${t.name}: `,l)}}function SB(e,t,n,r){const i=()=>Ef(r);if(n.source.scripts.has(e)){const l=n.source.scripts.get(e);return!l.module&&go(i),Uf(e,n,l,!0,i)}if(lu.has(e)){const l=lu.get(e);return t.code=l,n.source.scripts.set(e,t),!t.module&&go(i),Uf(e,n,t,!0,i)}let a;return n.inline||t.module?a=Du("script"):a=document.createComment(`dynamic script with src='${e}' extract by micro-app`),ku(e,n.name).then(l=>{t.code=l,n.source.scripts.set(e,t),t.isGlobal&&lu.set(e,l);try{l=eO(e,n,l,t),n.inline||t.module?Q6(e,l,t.module,a,i):q6(l,t)}catch(c){console.error(`[micro-app from runDynamicScript] app ${n.name}: `,c,e)}!t.module&&Ef(r)}).catch(l=>{qn(l,n.name),W6(r)}),a}function Q6(e,t,n,r,i){if(n){const a=new Blob([t],{type:"text/javascript"});r.src=URL.createObjectURL(a),r.setAttribute("type","module"),i&&(i.moduleCount&&i.moduleCount--,r.onload=i.bind(r,i.moduleCount===0))}else r.textContent=t;e.startsWith("inline-")||r.setAttribute("data-origin-src",e)}function q6(e,t){t.code2Function||(t.code2Function=new Function(e)),t.code2Function.call(window)}function eO(e,t,n,r){return ia(ur.plugins)&&(n=EB(e,n,t.name,ur.plugins,r)),t.sandBox&&!r.module?(jt.rawWindow.__MICRO_APP_PROXY_WINDOW__=t.sandBox.proxyWindow,`;(function(proxyWindow){with(proxyWindow.__MICRO_APP_WINDOW__){(function(${J5}){;${n} +}).call(proxyWindow,${J5})}})(window.__MICRO_APP_PROXY_WINDOW__);`):n}function EB(e,t,n,r,i){var a;const l=tE(r.global,t,e,i);return tE((a=r.modules)===null||a===void 0?void 0:a[n],l,e,i)}function tE(e,t,n,r){return Sc(e)?e.reduce((i,a)=>ia(a)&&kr(a.loader)?a.loader(i,n,a.options,r):i,t):t}function DB(e){const t=Du("div");return t.innerHTML=e,t}function tO(e,t,n){const r=Array.from(e.children);r.length&&r.forEach(i=>{tO(i,t)});for(const i of r)i instanceof HTMLLinkElement?i.hasAttribute("exclude")||N1(i.getAttribute("href"),t.name)?e.replaceChild(document.createComment("link element with exclude attribute ignored by micro-app"),i):i.hasAttribute("ignore")||L1(i.getAttribute("href"),t.name)?i.hasAttribute("href")&&i.setAttribute("href",So(i.getAttribute("href"),t.url)):H6(i,e,t):i instanceof HTMLStyleElement?i.hasAttribute("exclude")?e.replaceChild(document.createComment("style element with exclude attribute ignored by micro-app"),i):t.scopecss&&!i.hasAttribute("ignore")&&ou(i,t):i instanceof HTMLScriptElement?J6(i,e,t):i instanceof HTMLMetaElement||i instanceof HTMLTitleElement?e.removeChild(i):i instanceof HTMLImageElement&&i.hasAttribute("src")&&i.setAttribute("src",So(i.getAttribute("src"),t.url))}function kB(e,t){const n=DB(e),r=n.querySelector("micro-app-head"),i=n.querySelector("micro-app-body");if(!r||!i){const a=`element ${r?"body":"head"} is missing`;return t.onerror(new Error(a)),qn(a,t.name)}tO(n,t),t.source.links.size?sB(n,t,r):t.onLoad(n),t.source.scripts.size?wB(n,t):t.onLoad(n)}class OB{constructor(){this.eventList=new Map}isLegalName(t){return t?!0:(qn("event-center: Invalid name"),!1)}on(t,n,r=!1){if(this.isLegalName(t)){if(!kr(n))return qn("event-center: Invalid callback function");let i=this.eventList.get(t);i?r&&Object.getOwnPropertyNames(i.data).length&&n(i.data):(i={data:{},callbacks:new Set},this.eventList.set(t,i)),i.callbacks.add(n)}}off(t,n){if(this.isLegalName(t)){const r=this.eventList.get(t);r&&(kr(n)?r.callbacks.delete(n):r.callbacks.clear())}}dispatch(t,n){if(this.isLegalName(t)){if(!ia(n))return qn("event-center: data must be object");let r=this.eventList.get(t);if(r){if(r.data!==n){r.data=n;for(const i of r.callbacks)i(n)}}else r={data:n,callbacks:new Set},this.eventList.set(t,r)}}getData(t){var n;const r=this.eventList.get(t);return(n=r==null?void 0:r.data)!==null&&n!==void 0?n:null}}const fi=new OB;function es(e,t){return!os(e)||!e?"":t?`__from_base_app_${e}__`:`__from_micro_app_${e}__`}class nO{addGlobalDataListener(t,n){const r=this.appName;r&&(t.__APP_NAME__=r,t.__AUTO_TRIGGER__=n),fi.on("global",t,n)}removeGlobalDataListener(t){kr(t)&&fi.off("global",t)}setGlobalData(t){Lg(),fi.dispatch("global",t)}getGlobalData(){return fi.getData("global")}clearGlobalDataListener(){const t=this.appName,n=fi.eventList.get("global");if(n)for(const r of n.callbacks)(t&&t===r.__APP_NAME__||!(t||r.__APP_NAME__))&&n.callbacks.delete(r)}}class PB extends nO{addDataListener(t,n,r){fi.on(es(qa(t),!1),n,r)}removeDataListener(t,n){kr(n)&&fi.off(es(qa(t),!1),n)}getData(t,n=!1){return fi.getData(es(qa(t),n))}setData(t,n){fi.dispatch(es(qa(t),!0),n)}clearDataListener(t){fi.off(es(qa(t),!1))}}class TB extends nO{constructor(t){super(),this.appName=qa(t),!this.appName&&qn(`Invalid appName ${t}`)}addDataListener(t,n){t.__AUTO_TRIGGER__=n,fi.on(es(this.appName,!0),t,n)}removeDataListener(t){kr(t)&&fi.off(es(this.appName,!0),t)}getData(){return fi.getData(es(this.appName,!0))}dispatch(t){Lg(),fi.dispatch(es(this.appName,!1),t);const n=lr.get(this.appName);if((n==null?void 0:n.container)&&ia(t)){const r=new CustomEvent("datachange",{detail:{data:t}});ah(n.container).dispatchEvent(r)}}clearDataListener(){fi.off(es(this.appName,!0))}}function AB(e){const t=e.appName;e.umdDataListeners={global:new Set,normal:new Set};const n=fi.eventList.get("global");if(n)for(const i of n.callbacks)t===i.__APP_NAME__&&e.umdDataListeners.global.add(i);const r=fi.eventList.get(es(t,!0));r&&(e.umdDataListeners.normal=new Set(r.callbacks))}function MB(e){for(const t of e.umdDataListeners.global)e.addGlobalDataListener(t,t.__AUTO_TRIGGER__);for(const t of e.umdDataListeners.normal)e.addDataListener(t,t.__AUTO_TRIGGER__)}function IB(e){return A1(e.__MICRO_APP_IS_BOUND_FUNCTION__)?e.__MICRO_APP_IS_BOUND_FUNCTION__:e.__MICRO_APP_IS_BOUND_FUNCTION__=Y0(e)}function $B(e){var t;if(A1(e.__MICRO_APP_IS_CONSTRUCTOR__))return e.__MICRO_APP_IS_CONSTRUCTOR__;const n=e.toString(),r=((t=e.prototype)===null||t===void 0?void 0:t.constructor)===e&&Object.getOwnPropertyNames(e.prototype).length>1||/^function\s+[A-Z]/.test(n)||/^class\s+/.test(n);return e.__MICRO_APP_IS_CONSTRUCTOR__=r}function RB(e,t){if(t.__MICRO_APP_BOUND_WINDOW_FUNCTION__)return t.__MICRO_APP_BOUND_WINDOW_FUNCTION__;if(!$B(t)&&!IB(t)){const n=t.bind(e);for(const r in t)n[r]=t[r];return t.hasOwnProperty("prototype")&&mc(n,"prototype",{value:t.prototype,configurable:!0,enumerable:!1,writable:!0}),t.__MICRO_APP_BOUND_WINDOW_FUNCTION__=n}return t}const Zo=new Map;let rO=!1;function NB(){if(rO=!0,Object.getOwnPropertyDescriptor(document,"onclick"))return ih("Cannot redefine document property onclick");const e=document.onclick;document.onclick=null;let t=!1;function n(r){Zo.forEach(i=>{kr(i)&&i.call(document,r)})}mc(document,"onclick",{configurable:!0,enumerable:!0,get(){const r=ba();return r?Zo.get(r):Zo.get("base")},set(r){const i=ba();i?Zo.set(i,r):Zo.set("base",r),!t&&kr(r)&&(t=!0,jt.rawDocumentAddEventListener.call(jt.rawDocument,"click",n,!1))}}),e&&(document.onclick=e)}const Df=new Map;function LB(){const{rawDocument:e,rawDocumentAddEventListener:t,rawDocumentRemoveEventListener:n}=jt;!rO&&NB(),document.addEventListener=function(r,i,a){var l;const c=ba();if(c&&!(((l=lr.get(c))===null||l===void 0?void 0:l.umdMode)&&Y0(i))){const h=Df.get(c);if(h){const s=h.get(r);s?s.add(i):h.set(r,new Set([i]))}else Df.set(c,new Map([[r,new Set([i])]]));i&&(i.__MICRO_APP_MARK_OPTIONS__=a)}t.call(e,r,i,a)},document.removeEventListener=function(r,i,a){var l;const c=ba();if(c&&!(((l=lr.get(c))===null||l===void 0?void 0:l.umdMode)&&Y0(i))){const h=Df.get(c);if(h){const s=h.get(r);(s==null?void 0:s.size)&&s.has(i)&&s.delete(i)}}n.call(e,r,i,a)}}function BB(){document.addEventListener=jt.rawDocumentAddEventListener,document.removeEventListener=jt.rawDocumentRemoveEventListener}const FB=["unmount","appstate-change"];function nE(e,t){return FB.includes(e)?`${e}-${t.__MICRO_APP_NAME__}`:e}function UB(e){const t=e.__MICRO_APP_NAME__,n=new Map,r=new Map,i=new Map,{rawWindow:a,rawDocument:l,rawWindowAddEventListener:c,rawWindowRemoveEventListener:h,rawSetInterval:s,rawSetTimeout:p,rawClearInterval:d,rawClearTimeout:v,rawDocumentRemoveEventListener:m}=jt;e.addEventListener=function(w,P,M){w=nE(w,e);const T=n.get(w);T?T.add(P):n.set(w,new Set([P])),P&&(P.__MICRO_APP_MARK_OPTIONS__=M),c.call(a,w,P,M)},e.removeEventListener=function(w,P,M){w=nE(w,e);const T=n.get(w);(T==null?void 0:T.size)&&T.has(P)&&T.delete(P),h.call(a,w,P,M)},e.setInterval=function(w,P,...M){const T=s.call(a,w,P,...M);return r.set(T,{handler:w,timeout:P,args:M}),T},e.setTimeout=function(w,P,...M){const T=p.call(a,w,P,...M);return i.set(T,{handler:w,timeout:P,args:M}),T},e.clearInterval=function(w){r.delete(w),d.call(a,w)},e.clearTimeout=function(w){i.delete(w),v.call(a,w)};const _=new Map,y=new Map;let b=new Map,E=new Map,k;return{recordUmdEffect:()=>{n.forEach((P,M)=>{P.size&&_.set(M,new Set(P))}),r.size&&(b=new Map(r)),i.size&&(E=new Map(i)),k=Zo.get(t);const w=Df.get(t);w&&w.forEach((P,M)=>{P.size&&y.set(M,new Set(P))})},rebuildUmdEffect:()=>{_.forEach((w,P)=>{for(const M of w)e.addEventListener(P,M,M==null?void 0:M.__MICRO_APP_MARK_OPTIONS__)}),b.forEach(w=>{e.setInterval(w.handler,w.timeout,...w.args)}),E.forEach(w=>{e.setTimeout(w.handler,w.timeout,...w.args)}),k&&Zo.set(t,k),Mc(t),y.forEach((w,P)=>{for(const M of w)document.addEventListener(P,M,M==null?void 0:M.__MICRO_APP_MARK_OPTIONS__)}),Mc(null)},releaseEffect:()=>{n.size&&(n.forEach((P,M)=>{for(const T of P)h.call(a,M,T)}),n.clear()),r.size&&(r.forEach((P,M)=>{d.call(a,M)}),r.clear()),i.size&&(i.forEach((P,M)=>{v.call(a,M)}),i.clear()),Zo.delete(t);const w=Df.get(t);w&&(w.forEach((P,M)=>{for(const T of P)m.call(l,M,T)}),w.clear())}}}const jB=["System","__cjsWrapper"],zB=["location"],VB=["window","self","globalThis"];class jf{constructor(t,n){this.scopeProperties=["webpackJsonp","Vue"],this.escapeProperties=[],this.injectedKeys=new Set,this.escapeKeys=new Set,this.active=!1,this.microAppWindow={},this.getSpecialProperties(t),this.proxyWindow=this.createProxyWindow(t),this.initMicroAppWindow(this.microAppWindow,t,n),Object.assign(this,UB(this.microAppWindow))}start(t){this.active||(this.active=!0,this.microAppWindow.__MICRO_APP_BASE_ROUTE__=this.microAppWindow.__MICRO_APP_BASE_URL__=t,jt.rawWindow._babelPolyfill&&(jt.rawWindow._babelPolyfill=!1),++jf.activeCount===1&&(LB(),fB()))}stop(t){this.active&&(this.active=!1,this.releaseEffect(),this.microAppWindow.microApp.clearDataListener(),this.microAppWindow.microApp.clearGlobalDataListener(),t||(this.injectedKeys.forEach(n=>{Reflect.deleteProperty(this.microAppWindow,n)}),this.injectedKeys.clear(),this.escapeKeys.forEach(n=>{Reflect.deleteProperty(jt.rawWindow,n)}),this.escapeKeys.clear()),--jf.activeCount===0&&(BB(),gB()))}recordUmdSnapshot(){this.microAppWindow.__MICRO_APP_UMD_MODE__=!0,this.recordUmdEffect(),AB(this.microAppWindow.microApp),this.recordUmdInjectedValues=new Map,this.injectedKeys.forEach(t=>{this.recordUmdInjectedValues.set(t,Reflect.get(this.microAppWindow,t))})}rebuildUmdSnapshot(){this.recordUmdInjectedValues.forEach((t,n)=>{Reflect.set(this.proxyWindow,n,t)}),this.rebuildUmdEffect(),MB(this.microAppWindow.microApp)}getSpecialProperties(t){var n;!ia(ur.plugins)||(this.commonActionForSpecialProperties(ur.plugins.global),this.commonActionForSpecialProperties((n=ur.plugins.modules)===null||n===void 0?void 0:n[t]))}commonActionForSpecialProperties(t){if(Sc(t))for(const n of t)ia(n)&&(Sc(n.scopeProperties)&&(this.scopeProperties=this.scopeProperties.concat(n.scopeProperties)),Sc(n.escapeProperties)&&(this.escapeProperties=this.escapeProperties.concat(n.escapeProperties)))}createProxyWindow(t){const n=jt.rawWindow,r=new Map;return new Proxy(this.microAppWindow,{get:(i,a)=>{if(pv(t),Reflect.has(i,a)||os(a)&&/^__MICRO_APP_/.test(a)||this.scopeProperties.includes(a))return Reflect.get(i,a);const l=Reflect.get(n,a);return kr(l)?RB(n,l):l},set:(i,a,l)=>{if(this.active){if(zB.includes(a))Reflect.set(n,a,l);else if(!Bl.call(i,a)&&Bl.call(n,a)&&!this.scopeProperties.includes(a)){const c=Object.getOwnPropertyDescriptor(n,a),{configurable:h,enumerable:s,writable:p,set:d}=c;mc(i,a,{value:l,configurable:h,enumerable:s,writable:p!=null?p:!!d}),this.injectedKeys.add(a)}else Reflect.set(i,a,l),this.injectedKeys.add(a);(this.escapeProperties.includes(a)||jB.includes(a)&&!Reflect.has(n,a))&&!this.scopeProperties.includes(a)&&(Reflect.set(n,a,l),this.escapeKeys.add(a))}return!0},has:(i,a)=>this.scopeProperties.includes(a)?a in i:a in i||a in n,getOwnPropertyDescriptor:(i,a)=>{if(Bl.call(i,a))return r.set(a,"target"),Object.getOwnPropertyDescriptor(i,a);if(Bl.call(n,a)){r.set(a,"rawWindow");const l=Object.getOwnPropertyDescriptor(n,a);return l&&!l.configurable&&(l.configurable=!0),l}},defineProperty:(i,a,l)=>r.get(a)==="rawWindow"?Reflect.defineProperty(n,a,l):Reflect.defineProperty(i,a,l),ownKeys:i=>rB(Reflect.ownKeys(n).concat(Reflect.ownKeys(i))),deleteProperty:(i,a)=>Bl.call(i,a)?(this.injectedKeys.has(a)&&this.injectedKeys.delete(a),this.escapeKeys.has(a)&&Reflect.deleteProperty(n,a),Reflect.deleteProperty(i,a)):!0})}initMicroAppWindow(t,n,r){t.__MICRO_APP_ENVIRONMENT__=!0,t.__MICRO_APP_NAME__=n,t.__MICRO_APP_PUBLIC_PATH__=z6(r),t.__MICRO_APP_WINDOW__=t,t.microApp=Object.assign(new TB(n),{removeDomScope:Lg,pureCreateElement:Du}),t.rawWindow=jt.rawWindow,t.rawDocument=jt.rawDocument,t.hasOwnProperty=i=>Bl.call(t,i)||Bl.call(jt.rawWindow,i),this.setMappingPropertiesWithRawDescriptor(t),this.setHijackProperties(t,n)}setMappingPropertiesWithRawDescriptor(t){let n,r;const i=jt.rawWindow;i===i.parent?n=r=this.proxyWindow:(n=i.top,r=i.parent),mc(t,"top",this.createDescriptorForMicroAppWindow("top",n)),mc(t,"parent",this.createDescriptorForMicroAppWindow("parent",r)),VB.forEach(a=>{mc(t,a,this.createDescriptorForMicroAppWindow(a,this.proxyWindow))})}createDescriptorForMicroAppWindow(t,n){const{configurable:r=!0,enumerable:i=!0,writable:a,set:l}=Object.getOwnPropertyDescriptor(jt.rawWindow,t)||{writable:!0};return{value:n,configurable:r,enumerable:i,writable:a!=null?a:!!l}}setHijackProperties(t,n){let r,i;qL(t,{document:{get(){return pv(n),jt.rawDocument},configurable:!1,enumerable:!0},eval:{get(){return pv(n),r||eval},set:a=>{r=a},configurable:!0,enumerable:!1},Image:{get(){return pv(n),i||jt.ImageProxy},set:a=>{i=a},configurable:!0,enumerable:!1}})}}jf.activeCount=0;function WB(e,t){Object.defineProperties(e,{currentTarget:{get(){return t}},target:{get(){return t}}})}function Wo(e,t,n,r){var i;if(!e)return qn(`element does not exist in lifecycle ${n}`,t);e=ah(e),Lg();const a=Object.assign({name:t,container:e},r&&{error:r}),l=new CustomEvent(n,{detail:a});WB(l,e),kr((i=ur.lifeCycles)===null||i===void 0?void 0:i[n])&&ur.lifeCycles[n](l),e.dispatchEvent(l)}function gv(e,t,n={}){const r=new CustomEvent(`${e}-${t}`,{detail:n});window.dispatchEvent(r)}const lr=new Map;class iO{constructor({name:t,url:n,ssrUrl:r,container:i,inline:a,scopecss:l,useSandbox:c,baseroute:h}){this.state=Mr.NOT_LOADED,this.keepAliveState=null,this.keepAliveContainer=null,this.loadSourceLevel=0,this.umdHookMount=null,this.umdHookUnmount=null,this.libraryName=null,this.umdMode=!1,this.isPrefetch=!1,this.prefetchResolve=null,this.container=null,this.baseroute="",this.sandBox=null,this.container=i!=null?i:null,this.inline=a!=null?a:!1,this.baseroute=h!=null?h:"",this.ssrUrl=r!=null?r:"",this.name=t,this.url=n,this.useSandbox=c,this.scopecss=this.useSandbox&&l,this.source={links:new Map,scripts:new Map},this.loadSourceCode(),this.useSandbox&&(this.sandBox=new jf(t,n))}loadSourceCode(){this.state=Mr.LOADING_SOURCE_CODE,R1.getInstance().run(this,kB)}onLoad(t){var n;++this.loadSourceLevel===2&&(this.source.html=t,this.isPrefetch?((n=this.prefetchResolve)===null||n===void 0||n.call(this),this.prefetchResolve=null):Mr.UNMOUNT!==this.state&&(this.state=Mr.LOAD_SOURCE_FINISHED,this.mount()))}onLoadError(t){this.loadSourceLevel=-1,this.prefetchResolve&&(this.prefetchResolve(),this.prefetchResolve=null),Mr.UNMOUNT!==this.state&&(this.onerror(t),this.state=Mr.LOAD_SOURCE_ERROR)}mount(t,n,r){var i,a,l;if(A1(n)&&n!==this.inline&&(this.inline=n),this.container=(i=this.container)!==null&&i!==void 0?i:t,this.baseroute=r!=null?r:this.baseroute,this.loadSourceLevel!==2){this.state=Mr.LOADING_SOURCE_CODE;return}Wo(this.container,this.name,Os.BEFOREMOUNT),this.state=Mr.MOUNTING,vv(this.source.html,this.container,!this.umdMode),(a=this.sandBox)===null||a===void 0||a.start(this.baseroute);let c;if(this.umdMode){(l=this.sandBox)===null||l===void 0||l.rebuildUmdSnapshot();try{c=this.umdHookMount()}catch(h){qn(`an error occurred in the mount function +`,this.name,h)}this.handleMounted(c)}else{let h=!1;xB(this.source.scripts,this,s=>{var p;if(!this.umdMode){const{mount:d,unmount:v}=this.getUmdLibraryHooks();if(kr(d)&&kr(v)){this.umdHookMount=d,this.umdHookUnmount=v,this.umdMode=!0,(p=this.sandBox)===null||p===void 0||p.recordUmdSnapshot();try{c=this.umdHookMount()}catch(m){qn(`an error occurred in the mount function +`,this.name,m)}}}!h&&(s===!0||this.umdMode)&&(h=!0,this.handleMounted(c))})}}handleMounted(t){G0(t)?t.then(()=>this.dispatchMountedEvent()).catch(n=>this.onerror(n)):this.dispatchMountedEvent()}dispatchMountedEvent(){Mr.UNMOUNT!==this.state&&(this.state=Mr.MOUNTED,Wo(this.container,this.name,Os.MOUNTED))}unmount(t,n){this.state===Mr.LOAD_SOURCE_ERROR&&(t=!0),this.state=Mr.UNMOUNT,this.keepAliveState=null,this.keepAliveContainer=null;let r;if(this.umdHookUnmount)try{r=this.umdHookUnmount()}catch(i){qn(`an error occurred in the unmount function +`,this.name,i)}gv("unmount",this.name),this.handleUnmounted(t,r,n)}handleUnmounted(t,n,r){G0(n)?n.then(()=>this.actionsForUnmount(t,r)).catch(()=>this.actionsForUnmount(t,r)):this.actionsForUnmount(t,r)}actionsForUnmount(t,n){var r;t?this.actionsForCompletelyDestroy():this.umdMode&&this.container.childElementCount&&vv(this.container,this.source.html,!1),(r=this.sandBox)===null||r===void 0||r.stop(this.umdMode),YB().length||vB(),Wo(this.container,this.name,Os.UNMOUNT),this.container.innerHTML="",this.container=null,n&&n()}actionsForCompletelyDestroy(){!this.useSandbox&&this.umdMode&&delete window[this.libraryName],lr.delete(this.name)}hiddenKeepAliveApp(){const t=this.container;vv(this.container,this.keepAliveContainer?this.keepAliveContainer:this.keepAliveContainer=document.createElement("div"),!1),this.container=this.keepAliveContainer,this.keepAliveState=Bs.KEEP_ALIVE_HIDDEN,gv("appstate-change",this.name,{appState:"afterhidden"}),Wo(t,this.name,Os.AFTERHIDDEN)}showKeepAliveApp(t){gv("appstate-change",this.name,{appState:"beforeshow"}),Wo(t,this.name,Os.BEFORESHOW),vv(this.container,t,!1),this.container=t,this.keepAliveState=Bs.KEEP_ALIVE_SHOW,gv("appstate-change",this.name,{appState:"aftershow"}),Wo(this.container,this.name,Os.AFTERSHOW)}onerror(t){Wo(this.container,this.name,Os.ERROR,t)}getAppState(){return this.state}getKeepAliveState(){return this.keepAliveState}getUmdLibraryHooks(){var t,n;if(Mr.UNMOUNT!==this.state){const r=(n=(t=this.sandBox)===null||t===void 0?void 0:t.proxyWindow)!==null&&n!==void 0?n:jt.rawWindow;return this.libraryName=ah(this.container).getAttribute("library")||`micro-app-${this.name}`,typeof r[this.libraryName]=="object"?r[this.libraryName]:{}}return{}}}function HB(e){class t extends HTMLElement{constructor(){super(),this.isWaiting=!1,this.cacheData=null,this.hasConnected=!1,this.appName="",this.appUrl="",this.ssrUrl="",this.version=XL,this.handleAttributeUpdate=()=>{this.isWaiting=!1;const r=qa(this.getAttribute("name")),i=X0(this.getAttribute("url"),this.appName);if(this.legalAttribute("name",r)&&this.legalAttribute("url",i)){const a=lr.get(r);if(r!==this.appName&&a&&Mr.UNMOUNT!==a.getAppState()&&Bs.KEEP_ALIVE_HIDDEN!==a.getKeepAliveState()&&!a.isPrefetch)return this.setAttribute("name",this.appName),qn(`app name conflict, an app named ${r} is running`,this.appName);(r!==this.appName||i!==this.appUrl)&&(r===this.appName?this.handleUnmount(!0,()=>{this.actionsForAttributeChange(r,i,a)}):this.getKeepAliveModeResult()?(this.handleHiddenKeepAliveApp(),this.actionsForAttributeChange(r,i,a)):this.handleUnmount(this.getDestroyCompatibleResult(),()=>{this.actionsForAttributeChange(r,i,a)}))}else r!==this.appName&&this.setAttribute("name",this.appName)},pB()}static get observedAttributes(){return["name","url"]}connectedCallback(){this.hasConnected=!0,go(()=>Wo(this,this.appName,Os.CREATED)),this.initialMount()}disconnectedCallback(){this.hasConnected=!1,this.getKeepAliveModeResult()?this.handleHiddenKeepAliveApp():this.handleUnmount(this.getDestroyCompatibleResult())}attributeChangedCallback(r,i,a){if(this.legalAttribute(r,a)&&this[r===xf.NAME?"appName":"appUrl"]!==a)if(r===xf.URL&&!this.appUrl){if(a=X0(a,this.appName),!a)return qn(`Invalid attribute url ${a}`,this.appName);this.appUrl=a,this.handleInitialNameAndUrl()}else if(r===xf.NAME&&!this.appName){const l=qa(a);if(!l)return qn(`Invalid attribute name ${a}`,this.appName);this.cacheData&&(ur.setData(l,this.cacheData),this.cacheData=null),this.appName=l,l!==a&&this.setAttribute("name",this.appName),this.handleInitialNameAndUrl()}else this.isWaiting||(this.isWaiting=!0,go(this.handleAttributeUpdate))}handleInitialNameAndUrl(){this.hasConnected&&this.initialMount()}initialMount(){if(!(!this.appName||!this.appUrl))if(this.getDisposeResult("shadowDOM")&&!this.shadowRoot&&kr(this.attachShadow)&&this.attachShadow({mode:"open"}),this.getDisposeResult("ssr")?this.ssrUrl=So(jt.rawWindow.location.pathname,this.appUrl):this.ssrUrl&&(this.ssrUrl=""),lr.has(this.appName)){const r=lr.get(this.appName),i=r.ssrUrl||r.url,a=this.ssrUrl||this.appUrl;r.getKeepAliveState()===Bs.KEEP_ALIVE_HIDDEN&&r.url===this.appUrl?this.handleShowKeepAliveApp(r):i===a&&(r.isPrefetch||r.getAppState()===Mr.UNMOUNT)?this.handleAppMount(r):r.isPrefetch||r.getAppState()===Mr.UNMOUNT?(ih(`the ${r.isPrefetch?"prefetch":"unmounted"} app with url: ${i} is replaced by a new app`,this.appName),this.handleCreateApp()):qn(`app name conflict, an app named ${this.appName} is running`,this.appName)}else this.handleCreateApp()}actionsForAttributeChange(r,i,a){var l;this.getDisposeResult("ssr")?this.ssrUrl=So(jt.rawWindow.location.pathname,i):this.ssrUrl&&(this.ssrUrl=""),this.appName=r,this.appUrl=i,((l=this.shadowRoot)!==null&&l!==void 0?l:this).innerHTML="",r!==this.getAttribute("name")&&this.setAttribute("name",this.appName),a?a.getKeepAliveState()===Bs.KEEP_ALIVE_HIDDEN?a.url===this.appUrl?this.handleShowKeepAliveApp(a):qn(`app name conflict, an app named ${this.appName} is running`,this.appName):a.url===this.appUrl&&a.ssrUrl===this.ssrUrl?this.handleAppMount(a):this.handleCreateApp():this.handleCreateApp()}legalAttribute(r,i){return!os(i)||!i?(qn(`unexpected attribute ${r}, please check again`,this.appName),!1):!0}handleAppMount(r){r.isPrefetch=!1,go(()=>{var i;return r.mount((i=this.shadowRoot)!==null&&i!==void 0?i:this,this.getDisposeResult("inline"),this.getBaseRouteCompatible())})}handleCreateApp(){var r;lr.has(this.appName)&&lr.get(this.appName).actionsForCompletelyDestroy();const i=new iO({name:this.appName,url:this.appUrl,ssrUrl:this.ssrUrl,container:(r=this.shadowRoot)!==null&&r!==void 0?r:this,inline:this.getDisposeResult("inline"),scopecss:!(this.getDisposeResult("disableScopecss")||this.getDisposeResult("shadowDOM")),useSandbox:!this.getDisposeResult("disableSandbox"),baseroute:this.getBaseRouteCompatible()});lr.set(this.appName,i)}handleUnmount(r,i){const a=lr.get(this.appName);a&&a.getAppState()!==Mr.UNMOUNT&&a.unmount(r,i)}handleHiddenKeepAliveApp(){const r=lr.get(this.appName);r&&r.getAppState()!==Mr.UNMOUNT&&r.getKeepAliveState()!==Bs.KEEP_ALIVE_HIDDEN&&r.hiddenKeepAliveApp()}handleShowKeepAliveApp(r){go(()=>{var i;return r.showKeepAliveApp((i=this.shadowRoot)!==null&&i!==void 0?i:this)})}getDisposeResult(r){return(this.compatibleSpecialProperties(r)||ur[r])&&this.compatibleDisableSpecialProperties(r)}compatibleSpecialProperties(r){return r==="disableScopecss"?this.hasAttribute("disableScopecss")||this.hasAttribute("disable-scopecss"):r==="disableSandbox"?this.hasAttribute("disableSandbox")||this.hasAttribute("disable-sandbox"):this.hasAttribute(r)}compatibleDisableSpecialProperties(r){return r==="disableScopecss"?this.getAttribute("disableScopecss")!=="false"&&this.getAttribute("disable-scopecss")!=="false":r==="disableSandbox"?this.getAttribute("disableSandbox")!=="false"&&this.getAttribute("disable-sandbox")!=="false":this.getAttribute(r)!=="false"}getBaseRouteCompatible(){var r,i;return(i=(r=this.getAttribute("baseroute"))!==null&&r!==void 0?r:this.getAttribute("baseurl"))!==null&&i!==void 0?i:""}getDestroyCompatibleResult(){return this.getDisposeResult("destroy")||this.getDisposeResult("destory")}getKeepAliveModeResult(){return this.getDisposeResult("keep-alive")&&!this.getDestroyCompatibleResult()}set data(r){this.appName?ur.setData(this.appName,r):this.cacheData=r}get data(){return this.appName?ur.getData(this.appName,!0):this.cacheData?this.cacheData:null}}window.customElements.define(e,t)}function rE(e){if(!T1)return qn("preFetch is only supported in browser environment");I1(()=>{kr(e)&&(e=e()),Sc(e)&&e.reduce((t,n)=>t.then(()=>KB(n)),Promise.resolve())})}function KB(e){return new Promise(t=>{I1(()=>{var n,r;if(ia(e)&&navigator.onLine)if(e.name=qa(e.name),e.url=X0(e.url,e.name),e.name&&e.url&&!lr.has(e.name)){const i=new iO({name:e.name,url:e.url,scopecss:!((n=e.disableScopecss)!==null&&n!==void 0?n:ur.disableScopecss),useSandbox:!((r=e.disableSandbox)!==null&&r!==void 0?r:ur.disableSandbox)});i.isPrefetch=!0,i.prefetchResolve=t,lr.set(e.name,i)}else t();else t()})})}function GB(e){ia(e)&&I1(()=>{iE(e.js,"js",lu),iE(e.css,"css",ll)})}function iE(e,t,n){if(Sc(e)){const r=e.filter(a=>os(a)&&a.includes(`.${t}`)&&!n.has(a)),i=r.map(a=>ku(a));Ng(i,a=>{const l=r[a.index];n.has(l)||n.set(l,a.data)},a=>{qn(a)})}}function YB(e){const t=[];return lr.forEach((n,r)=>{Mr.UNMOUNT!==n.getAppState()&&!n.isPrefetch&&(!e||Bs.KEEP_ALIVE_HIDDEN!==n.getKeepAliveState())&&t.push(r)}),t}function XB(e,t){const n=lr.get(qa(e));return new Promise(r=>{if(n)if(n.getAppState()===Mr.UNMOUNT||n.isPrefetch)t!=null&&t.destroy&&n.actionsForCompletelyDestroy(),r();else if(n.getKeepAliveState()===Bs.KEEP_ALIVE_HIDDEN)t!=null&&t.destroy?n.unmount(!0,r):t!=null&&t.clearAliveState?n.unmount(!1,r):r();else{const i=ah(n.container),a=()=>{i.removeEventListener("unmount",a),i.removeEventListener("afterhidden",l),r()},l=()=>{i.removeEventListener("unmount",a),i.removeEventListener("afterhidden",l),r()};if(i.addEventListener("unmount",a),i.addEventListener("afterhidden",l),t!=null&&t.destroy){let c,h;i.hasAttribute("destroy")&&(c=i.getAttribute("destroy")),i.hasAttribute("destory")&&(h=i.getAttribute("destory")),i.setAttribute("destroy","true"),i.parentNode.removeChild(i),i.removeAttribute("destroy"),typeof c=="string"&&i.setAttribute("destroy",c),typeof h=="string"&&i.setAttribute("destory",h)}else if((t==null?void 0:t.clearAliveState)&&i.hasAttribute("keep-alive")){const c=i.getAttribute("keep-alive");i.removeAttribute("keep-alive"),i.parentNode.removeChild(i),i.setAttribute("keep-alive",c)}else i.parentNode.removeChild(i)}else ih(`app ${e} does not exist`),r()})}function $ne(e){return Array.from(lr.keys()).reduce((t,n)=>t.then(()=>XB(n,e)),Promise.resolve())}class JB extends PB{constructor(){super(...arguments),this.tagName="micro-app",this.preFetch=rE}start(t){if(!T1||!window.customElements)return qn("micro-app is not supported in this environment");if(t!=null&&t.tagName)if(/^micro-app(-\S+)?/.test(t.tagName))this.tagName=t.tagName;else return qn(`${t.tagName} is invalid tagName`);if(window.customElements.get(this.tagName))return ih(`element ${this.tagName} is already defined`);if(bB(),t&&ia(t)&&(this.shadowDOM=t.shadowDOM,this.destroy=t.destroy,this.destory=t.destory,this.inline=t.inline,this.disableScopecss=t.disableScopecss,this.disableSandbox=t.disableSandbox,this.ssr=t.ssr,kr(t.fetch)&&(this.fetch=t.fetch),ia(t.lifeCycles)&&(this.lifeCycles=t.lifeCycles),t.preFetchApps&&rE(t.preFetchApps),t.globalAssets&&GB(t.globalAssets),kr(t.excludeAssetFilter)&&(this.excludeAssetFilter=t.excludeAssetFilter),ia(t.plugins))){const n=t.plugins.modules;if(ia(n))for(const r in n){const i=qa(r);i&&r!==i&&(n[i]=n[r],delete n[r])}this.plugins=t.plugins}HB(this.tagName)}}var ur=new JB;const ZB=e=>{let t=$A.apiUrl(e);return t.indexOf("http")==-1&&(t=window.location.origin+t),{}.VITE_OKR_WEB_URL||t};function QB(){let e={},t={loader(n,r){return n}};e["micro-app"]=[t],e["okr-details"]=[t],ur.start({plugins:{modules:e}}),ur.preFetch([{name:"micro-app",url:ZB("/apps/okr"),disableSandbox:!0}])}var qB={languageTypes:{zh:"\u7B80\u4F53\u4E2D\u6587","zh-CHT":"\u7E41\u9AD4\u4E2D\u6587",en:"English",ko:"\uD55C\uAD6D\uC5B4",ja:"\u65E5\u672C\u8A9E",de:"Deutsch",fr:"Fran\xE7ais",id:"Indonesia"},replaceArgumentsLanguage(e,t){let n=1;for(;e.indexOf("(*)")!==-1;)typeof t[n]=="object"?e=e.replace("(*)",""):e=e.replace("(*)",t[n]),n++;return e},replaceEscape(e){return!e||e==""?"":e.replace(/\(\*\)/g,"~%~").replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&").replace(/~%~/g,"(.*?)")},getLanguage(){let e=window.localStorage.getItem("__language:type__");if(typeof e=="string"&&typeof this.languageTypes[e]!="undefined")return e;e="en";let t=((window.navigator.language||navigator.userLanguage)+"").toLowerCase();switch(t){case"zh":case"cn":case"zh-cn":e="zh";break;case"zh-tw":case"zh-tr":case"zh-hk":case"zh-cnt":case"zh-cht":e="zh-CHT";break;default:typeof this.languageTypes[t]!="undefined"&&(e=t);break}return window.localStorage.setItem("__language:type__",e),e}};const Um=qB,eF=Um.languageTypes,uu=Um.getLanguage(),ec={};function Rne(e){if(!$A.isArray(e))return;const t=Object.assign(Object.keys(eF));e.some(n=>{let r=-1;n.key&&t.some(i=>{const a=n[i]||n.general||null;a&&typeof window.LANGUAGE_DATA[i]!="undefined"&&(r=window.LANGUAGE_DATA[i].push(a)-1)}),r>-1&&(window.LANGUAGE_DATA.key[n.key]=r)})}function Nne(e){e!==void 0&&$A.modalConfirm({content:"\u5207\u6362\u8BED\u8A00\u9700\u8981\u5237\u65B0\u540E\u751F\u6548\uFF0C\u662F\u5426\u786E\u5B9A\u5237\u65B0\uFF1F",cancelText:"\u53D6\u6D88",okText:"\u786E\u5B9A",onOk:()=>{window.localStorage.setItem("__language:type__",e),$A.reloadUrl()}})}function B1(e){var n;if(typeof arguments[1]!="undefined")return B1(Um.replaceArgumentsLanguage(e,arguments));if(typeof e!="string"||!e||typeof window.LANGUAGE_DATA=="undefined"||typeof window.LANGUAGE_DATA.key=="undefined"||typeof window.LANGUAGE_DATA[uu]=="undefined")return e;const t=window.LANGUAGE_DATA.key[e]||-1;if(t>-1)return window.LANGUAGE_DATA[uu][t]||e;if(typeof ec[e]=="undefined"){ec[e]=!1;for(let r in window.LANGUAGE_DATA.key)if(r.indexOf("(*)")>-1){const i=new RegExp("^"+Um.replaceEscape(r)+"$","g");if(i.test(e)){let a=0;const l=window.LANGUAGE_DATA.key[r],c=(n=window.LANGUAGE_DATA[uu][l]||r)==null?void 0:n.replace(/\(\*\)/g,function(){return"$"+ ++a});ec[e]={rege:i,value:c};break}}}return ec[e]?e.replace(ec[e].rege,ec[e].value):(window.systemInfo.debug==="yes"&&setTimeout(r=>{try{let i="__language:Undefined__",a=JSON.parse(window.localStorage.getItem(i)||"[]");$A.isArray(a)||(a=[]);let l=null;a.find(h=>(l=new RegExp("^"+h.replace(/\(\*\)/g,"(.*?)")+"$","g"),!!e.match(l)))||(a.push(e),window.localStorage.setItem(i,JSON.stringify(a)))}catch{}},10),e)}var Fs=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function aO(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Bg(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach(function(n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}),t}function _v(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var sO={exports:{}};/*! + * jQuery JavaScript Library v3.6.4 + * https://jquery.com/ + * + * Includes Sizzle.js + * https://sizzlejs.com/ + * + * Copyright OpenJS Foundation and other contributors + * Released under the MIT license + * https://jquery.org/license + * + * Date: 2023-03-08T15:28Z + */(function(e){(function(t,n){e.exports=t.document?n(t,!0):function(r){if(!r.document)throw new Error("jQuery requires a window with a document");return n(r)}})(typeof window!="undefined"?window:Fs,function(t,n){var r=[],i=Object.getPrototypeOf,a=r.slice,l=r.flat?function(O){return r.flat.call(O)}:function(O){return r.concat.apply([],O)},c=r.push,h=r.indexOf,s={},p=s.toString,d=s.hasOwnProperty,v=d.toString,m=v.call(Object),_={},y=function(L){return typeof L=="function"&&typeof L.nodeType!="number"&&typeof L.item!="function"},b=function(L){return L!=null&&L===L.window},E=t.document,k={type:!0,src:!0,nonce:!0,noModule:!0};function x(O,L,K){K=K||E;var te,Ce,Se=K.createElement("script");if(Se.text=O,L)for(te in k)Ce=L[te]||L.getAttribute&&L.getAttribute(te),Ce&&Se.setAttribute(te,Ce);K.head.appendChild(Se).parentNode.removeChild(Se)}function C(O){return O==null?O+"":typeof O=="object"||typeof O=="function"?s[p.call(O)]||"object":typeof O}var D="3.6.4",w=function(O,L){return new w.fn.init(O,L)};w.fn=w.prototype={jquery:D,constructor:w,length:0,toArray:function(){return a.call(this)},get:function(O){return O==null?a.call(this):O<0?this[O+this.length]:this[O]},pushStack:function(O){var L=w.merge(this.constructor(),O);return L.prevObject=this,L},each:function(O){return w.each(this,O)},map:function(O){return this.pushStack(w.map(this,function(L,K){return O.call(L,K,L)}))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(w.grep(this,function(O,L){return(L+1)%2}))},odd:function(){return this.pushStack(w.grep(this,function(O,L){return L%2}))},eq:function(O){var L=this.length,K=+O+(O<0?L:0);return this.pushStack(K>=0&&K0&&L-1 in O}var M=function(O){var L,K,te,Ce,Se,Me,He,Ue,Qe,it,bt,nt,lt,an,yn,Qt,Pr,xr,Mi,Hn="sizzle"+1*new Date,bn=O.document,ri=0,Rn=0,ir=Wu(),Lo=Wu(),zu=Wu(),Ii=Wu(),no=function($e,je){return $e===je&&(bt=!0),0},ps={}.hasOwnProperty,Hr=[],ja=Hr.pop,$i=Hr.push,vs=Hr.push,md=Hr.slice,ro=function($e,je){for(var Ke=0,ct=$e.length;Ke+~]|"+zn+")"+zn+"*"),Wh=new RegExp(zn+"|>"),Ol=new RegExp(Vu),Q_=new RegExp("^"+ms+"$"),Pl={ID:new RegExp("^#("+ms+")"),CLASS:new RegExp("^\\.("+ms+")"),TAG:new RegExp("^("+ms+"|[*])"),ATTR:new RegExp("^"+zh),PSEUDO:new RegExp("^"+Vu),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+zn+"*(even|odd|(([+-]|)(\\d*)n|)"+zn+"*(?:([+-]|)"+zn+"*(\\d+)|))"+zn+"*\\)|)","i"),bool:new RegExp("^(?:"+gd+")$","i"),needsContext:new RegExp("^"+zn+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+zn+"*((?:-\\d)?\\d*)"+zn+"*\\)|)(?=[^-]|$)","i")},Yi=/HTML$/i,q_=/^(?:input|select|textarea|button)$/i,_d=/^h\d$/i,Tl=/^[^{]+\{\s*\[native \w/,ey=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,yd=/[+~]/,Ta=new RegExp("\\\\[\\da-fA-F]{1,6}"+zn+"?|\\\\([^\\r\\n\\f])","g"),Xi=function($e,je){var Ke="0x"+$e.slice(1)-65536;return je||(Ke<0?String.fromCharCode(Ke+65536):String.fromCharCode(Ke>>10|55296,Ke&1023|56320))},bd=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,wd=function($e,je){return je?$e==="\0"?"\uFFFD":$e.slice(0,-1)+"\\"+$e.charCodeAt($e.length-1).toString(16)+" ":"\\"+$e},Cd=function(){nt()},ty=Ku(function($e){return $e.disabled===!0&&$e.nodeName.toLowerCase()==="fieldset"},{dir:"parentNode",next:"legend"});try{vs.apply(Hr=md.call(bn.childNodes),bn.childNodes),Hr[bn.childNodes.length].nodeType}catch{vs={apply:Hr.length?function(je,Ke){$i.apply(je,md.call(Ke))}:function(je,Ke){for(var ct=je.length,qe=0;je[ct++]=Ke[qe++];);je.length=ct-1}}}function Gn($e,je,Ke,ct){var qe,vt,wt,$t,Ut,cn,Ft,hn=je&&je.ownerDocument,Pn=je?je.nodeType:9;if(Ke=Ke||[],typeof $e!="string"||!$e||Pn!==1&&Pn!==9&&Pn!==11)return Ke;if(!ct&&(nt(je),je=je||lt,yn)){if(Pn!==11&&(Ut=ey.exec($e)))if(qe=Ut[1]){if(Pn===9)if(wt=je.getElementById(qe)){if(wt.id===qe)return Ke.push(wt),Ke}else return Ke;else if(hn&&(wt=hn.getElementById(qe))&&Mi(je,wt)&&wt.id===qe)return Ke.push(wt),Ke}else{if(Ut[2])return vs.apply(Ke,je.getElementsByTagName($e)),Ke;if((qe=Ut[3])&&K.getElementsByClassName&&je.getElementsByClassName)return vs.apply(Ke,je.getElementsByClassName(qe)),Ke}if(K.qsa&&!Ii[$e+" "]&&(!Qt||!Qt.test($e))&&(Pn!==1||je.nodeName.toLowerCase()!=="object")){if(Ft=$e,hn=je,Pn===1&&(Wh.test($e)||Vh.test($e))){for(hn=yd.test($e)&&Bo(je.parentNode)||je,(hn!==je||!K.scope)&&(($t=je.getAttribute("id"))?$t=$t.replace(bd,wd):je.setAttribute("id",$t=Hn)),cn=Me($e),vt=cn.length;vt--;)cn[vt]=($t?"#"+$t:":scope")+" "+Al(cn[vt]);Ft=cn.join(",")}try{return vs.apply(Ke,hn.querySelectorAll(Ft)),Ke}catch{Ii($e,!0)}finally{$t===Hn&&je.removeAttribute("id")}}}return Ue($e.replace(kl,"$1"),je,Ke,ct)}function Wu(){var $e=[];function je(Ke,ct){return $e.push(Ke+" ")>te.cacheLength&&delete je[$e.shift()],je[Ke+" "]=ct}return je}function Ji($e){return $e[Hn]=!0,$e}function ii($e){var je=lt.createElement("fieldset");try{return!!$e(je)}catch{return!1}finally{je.parentNode&&je.parentNode.removeChild(je),je=null}}function Hu($e,je){for(var Ke=$e.split("|"),ct=Ke.length;ct--;)te.attrHandle[Ke[ct]]=je}function xd($e,je){var Ke=je&&$e,ct=Ke&&$e.nodeType===1&&je.nodeType===1&&$e.sourceIndex-je.sourceIndex;if(ct)return ct;if(Ke){for(;Ke=Ke.nextSibling;)if(Ke===je)return-1}return $e?1:-1}function ny($e){return function(je){var Ke=je.nodeName.toLowerCase();return Ke==="input"&&je.type===$e}}function ry($e){return function(je){var Ke=je.nodeName.toLowerCase();return(Ke==="input"||Ke==="button")&&je.type===$e}}function Hh($e){return function(je){return"form"in je?je.parentNode&&je.disabled===!1?"label"in je?"label"in je.parentNode?je.parentNode.disabled===$e:je.disabled===$e:je.isDisabled===$e||je.isDisabled!==!$e&&ty(je)===$e:je.disabled===$e:"label"in je?je.disabled===$e:!1}}function gs($e){return Ji(function(je){return je=+je,Ji(function(Ke,ct){for(var qe,vt=$e([],Ke.length,je),wt=vt.length;wt--;)Ke[qe=vt[wt]]&&(Ke[qe]=!(ct[qe]=Ke[qe]))})})}function Bo($e){return $e&&typeof $e.getElementsByTagName!="undefined"&&$e}K=Gn.support={},Se=Gn.isXML=function($e){var je=$e&&$e.namespaceURI,Ke=$e&&($e.ownerDocument||$e).documentElement;return!Yi.test(je||Ke&&Ke.nodeName||"HTML")},nt=Gn.setDocument=function($e){var je,Ke,ct=$e?$e.ownerDocument||$e:bn;return ct==lt||ct.nodeType!==9||!ct.documentElement||(lt=ct,an=lt.documentElement,yn=!Se(lt),bn!=lt&&(Ke=lt.defaultView)&&Ke.top!==Ke&&(Ke.addEventListener?Ke.addEventListener("unload",Cd,!1):Ke.attachEvent&&Ke.attachEvent("onunload",Cd)),K.scope=ii(function(qe){return an.appendChild(qe).appendChild(lt.createElement("div")),typeof qe.querySelectorAll!="undefined"&&!qe.querySelectorAll(":scope fieldset div").length}),K.cssHas=ii(function(){try{return lt.querySelector(":has(*,:jqfake)"),!1}catch{return!0}}),K.attributes=ii(function(qe){return qe.className="i",!qe.getAttribute("className")}),K.getElementsByTagName=ii(function(qe){return qe.appendChild(lt.createComment("")),!qe.getElementsByTagName("*").length}),K.getElementsByClassName=Tl.test(lt.getElementsByClassName),K.getById=ii(function(qe){return an.appendChild(qe).id=Hn,!lt.getElementsByName||!lt.getElementsByName(Hn).length}),K.getById?(te.filter.ID=function(qe){var vt=qe.replace(Ta,Xi);return function(wt){return wt.getAttribute("id")===vt}},te.find.ID=function(qe,vt){if(typeof vt.getElementById!="undefined"&&yn){var wt=vt.getElementById(qe);return wt?[wt]:[]}}):(te.filter.ID=function(qe){var vt=qe.replace(Ta,Xi);return function(wt){var $t=typeof wt.getAttributeNode!="undefined"&&wt.getAttributeNode("id");return $t&&$t.value===vt}},te.find.ID=function(qe,vt){if(typeof vt.getElementById!="undefined"&&yn){var wt,$t,Ut,cn=vt.getElementById(qe);if(cn){if(wt=cn.getAttributeNode("id"),wt&&wt.value===qe)return[cn];for(Ut=vt.getElementsByName(qe),$t=0;cn=Ut[$t++];)if(wt=cn.getAttributeNode("id"),wt&&wt.value===qe)return[cn]}return[]}}),te.find.TAG=K.getElementsByTagName?function(qe,vt){if(typeof vt.getElementsByTagName!="undefined")return vt.getElementsByTagName(qe);if(K.qsa)return vt.querySelectorAll(qe)}:function(qe,vt){var wt,$t=[],Ut=0,cn=vt.getElementsByTagName(qe);if(qe==="*"){for(;wt=cn[Ut++];)wt.nodeType===1&&$t.push(wt);return $t}return cn},te.find.CLASS=K.getElementsByClassName&&function(qe,vt){if(typeof vt.getElementsByClassName!="undefined"&&yn)return vt.getElementsByClassName(qe)},Pr=[],Qt=[],(K.qsa=Tl.test(lt.querySelectorAll))&&(ii(function(qe){var vt;an.appendChild(qe).innerHTML="
",qe.querySelectorAll("[msallowcapture^='']").length&&Qt.push("[*^$]="+zn+`*(?:''|"")`),qe.querySelectorAll("[selected]").length||Qt.push("\\["+zn+"*(?:value|"+gd+")"),qe.querySelectorAll("[id~="+Hn+"-]").length||Qt.push("~="),vt=lt.createElement("input"),vt.setAttribute("name",""),qe.appendChild(vt),qe.querySelectorAll("[name='']").length||Qt.push("\\["+zn+"*name"+zn+"*="+zn+`*(?:''|"")`),qe.querySelectorAll(":checked").length||Qt.push(":checked"),qe.querySelectorAll("a#"+Hn+"+*").length||Qt.push(".#.+[+~]"),qe.querySelectorAll("\\\f"),Qt.push("[\\r\\n\\f]")}),ii(function(qe){qe.innerHTML="";var vt=lt.createElement("input");vt.setAttribute("type","hidden"),qe.appendChild(vt).setAttribute("name","D"),qe.querySelectorAll("[name=d]").length&&Qt.push("name"+zn+"*[*^$|!~]?="),qe.querySelectorAll(":enabled").length!==2&&Qt.push(":enabled",":disabled"),an.appendChild(qe).disabled=!0,qe.querySelectorAll(":disabled").length!==2&&Qt.push(":enabled",":disabled"),qe.querySelectorAll("*,:x"),Qt.push(",.*:")})),(K.matchesSelector=Tl.test(xr=an.matches||an.webkitMatchesSelector||an.mozMatchesSelector||an.oMatchesSelector||an.msMatchesSelector))&&ii(function(qe){K.disconnectedMatch=xr.call(qe,"*"),xr.call(qe,"[s!='']:x"),Pr.push("!=",Vu)}),K.cssHas||Qt.push(":has"),Qt=Qt.length&&new RegExp(Qt.join("|")),Pr=Pr.length&&new RegExp(Pr.join("|")),je=Tl.test(an.compareDocumentPosition),Mi=je||Tl.test(an.contains)?function(qe,vt){var wt=qe.nodeType===9&&qe.documentElement||qe,$t=vt&&vt.parentNode;return qe===$t||!!($t&&$t.nodeType===1&&(wt.contains?wt.contains($t):qe.compareDocumentPosition&&qe.compareDocumentPosition($t)&16))}:function(qe,vt){if(vt){for(;vt=vt.parentNode;)if(vt===qe)return!0}return!1},no=je?function(qe,vt){if(qe===vt)return bt=!0,0;var wt=!qe.compareDocumentPosition-!vt.compareDocumentPosition;return wt||(wt=(qe.ownerDocument||qe)==(vt.ownerDocument||vt)?qe.compareDocumentPosition(vt):1,wt&1||!K.sortDetached&&vt.compareDocumentPosition(qe)===wt?qe==lt||qe.ownerDocument==bn&&Mi(bn,qe)?-1:vt==lt||vt.ownerDocument==bn&&Mi(bn,vt)?1:it?ro(it,qe)-ro(it,vt):0:wt&4?-1:1)}:function(qe,vt){if(qe===vt)return bt=!0,0;var wt,$t=0,Ut=qe.parentNode,cn=vt.parentNode,Ft=[qe],hn=[vt];if(!Ut||!cn)return qe==lt?-1:vt==lt?1:Ut?-1:cn?1:it?ro(it,qe)-ro(it,vt):0;if(Ut===cn)return xd(qe,vt);for(wt=qe;wt=wt.parentNode;)Ft.unshift(wt);for(wt=vt;wt=wt.parentNode;)hn.unshift(wt);for(;Ft[$t]===hn[$t];)$t++;return $t?xd(Ft[$t],hn[$t]):Ft[$t]==bn?-1:hn[$t]==bn?1:0}),lt},Gn.matches=function($e,je){return Gn($e,null,null,je)},Gn.matchesSelector=function($e,je){if(nt($e),K.matchesSelector&&yn&&!Ii[je+" "]&&(!Pr||!Pr.test(je))&&(!Qt||!Qt.test(je)))try{var Ke=xr.call($e,je);if(Ke||K.disconnectedMatch||$e.document&&$e.document.nodeType!==11)return Ke}catch{Ii(je,!0)}return Gn(je,lt,null,[$e]).length>0},Gn.contains=function($e,je){return($e.ownerDocument||$e)!=lt&&nt($e),Mi($e,je)},Gn.attr=function($e,je){($e.ownerDocument||$e)!=lt&&nt($e);var Ke=te.attrHandle[je.toLowerCase()],ct=Ke&&ps.call(te.attrHandle,je.toLowerCase())?Ke($e,je,!yn):void 0;return ct!==void 0?ct:K.attributes||!yn?$e.getAttribute(je):(ct=$e.getAttributeNode(je))&&ct.specified?ct.value:null},Gn.escape=function($e){return($e+"").replace(bd,wd)},Gn.error=function($e){throw new Error("Syntax error, unrecognized expression: "+$e)},Gn.uniqueSort=function($e){var je,Ke=[],ct=0,qe=0;if(bt=!K.detectDuplicates,it=!K.sortStable&&$e.slice(0),$e.sort(no),bt){for(;je=$e[qe++];)je===$e[qe]&&(ct=Ke.push(qe));for(;ct--;)$e.splice(Ke[ct],1)}return it=null,$e},Ce=Gn.getText=function($e){var je,Ke="",ct=0,qe=$e.nodeType;if(qe){if(qe===1||qe===9||qe===11){if(typeof $e.textContent=="string")return $e.textContent;for($e=$e.firstChild;$e;$e=$e.nextSibling)Ke+=Ce($e)}else if(qe===3||qe===4)return $e.nodeValue}else for(;je=$e[ct++];)Ke+=Ce(je);return Ke},te=Gn.selectors={cacheLength:50,createPseudo:Ji,match:Pl,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function($e){return $e[1]=$e[1].replace(Ta,Xi),$e[3]=($e[3]||$e[4]||$e[5]||"").replace(Ta,Xi),$e[2]==="~="&&($e[3]=" "+$e[3]+" "),$e.slice(0,4)},CHILD:function($e){return $e[1]=$e[1].toLowerCase(),$e[1].slice(0,3)==="nth"?($e[3]||Gn.error($e[0]),$e[4]=+($e[4]?$e[5]+($e[6]||1):2*($e[3]==="even"||$e[3]==="odd")),$e[5]=+($e[7]+$e[8]||$e[3]==="odd")):$e[3]&&Gn.error($e[0]),$e},PSEUDO:function($e){var je,Ke=!$e[6]&&$e[2];return Pl.CHILD.test($e[0])?null:($e[3]?$e[2]=$e[4]||$e[5]||"":Ke&&Ol.test(Ke)&&(je=Me(Ke,!0))&&(je=Ke.indexOf(")",Ke.length-je)-Ke.length)&&($e[0]=$e[0].slice(0,je),$e[2]=Ke.slice(0,je)),$e.slice(0,3))}},filter:{TAG:function($e){var je=$e.replace(Ta,Xi).toLowerCase();return $e==="*"?function(){return!0}:function(Ke){return Ke.nodeName&&Ke.nodeName.toLowerCase()===je}},CLASS:function($e){var je=ir[$e+" "];return je||(je=new RegExp("(^|"+zn+")"+$e+"("+zn+"|$)"))&&ir($e,function(Ke){return je.test(typeof Ke.className=="string"&&Ke.className||typeof Ke.getAttribute!="undefined"&&Ke.getAttribute("class")||"")})},ATTR:function($e,je,Ke){return function(ct){var qe=Gn.attr(ct,$e);return qe==null?je==="!=":je?(qe+="",je==="="?qe===Ke:je==="!="?qe!==Ke:je==="^="?Ke&&qe.indexOf(Ke)===0:je==="*="?Ke&&qe.indexOf(Ke)>-1:je==="$="?Ke&&qe.slice(-Ke.length)===Ke:je==="~="?(" "+qe.replace(J_," ")+" ").indexOf(Ke)>-1:je==="|="?qe===Ke||qe.slice(0,Ke.length+1)===Ke+"-":!1):!0}},CHILD:function($e,je,Ke,ct,qe){var vt=$e.slice(0,3)!=="nth",wt=$e.slice(-4)!=="last",$t=je==="of-type";return ct===1&&qe===0?function(Ut){return!!Ut.parentNode}:function(Ut,cn,Ft){var hn,Pn,Kn,dn,Tr,Jr,gi=vt!==wt?"nextSibling":"previousSibling",In=Ut.parentNode,da=$t&&Ut.nodeName.toLowerCase(),Il=!Ft&&!$t,Ri=!1;if(In){if(vt){for(;gi;){for(dn=Ut;dn=dn[gi];)if($t?dn.nodeName.toLowerCase()===da:dn.nodeType===1)return!1;Jr=gi=$e==="only"&&!Jr&&"nextSibling"}return!0}if(Jr=[wt?In.firstChild:In.lastChild],wt&&Il){for(dn=In,Kn=dn[Hn]||(dn[Hn]={}),Pn=Kn[dn.uniqueID]||(Kn[dn.uniqueID]={}),hn=Pn[$e]||[],Tr=hn[0]===ri&&hn[1],Ri=Tr&&hn[2],dn=Tr&&In.childNodes[Tr];dn=++Tr&&dn&&dn[gi]||(Ri=Tr=0)||Jr.pop();)if(dn.nodeType===1&&++Ri&&dn===Ut){Pn[$e]=[ri,Tr,Ri];break}}else if(Il&&(dn=Ut,Kn=dn[Hn]||(dn[Hn]={}),Pn=Kn[dn.uniqueID]||(Kn[dn.uniqueID]={}),hn=Pn[$e]||[],Tr=hn[0]===ri&&hn[1],Ri=Tr),Ri===!1)for(;(dn=++Tr&&dn&&dn[gi]||(Ri=Tr=0)||Jr.pop())&&!(($t?dn.nodeName.toLowerCase()===da:dn.nodeType===1)&&++Ri&&(Il&&(Kn=dn[Hn]||(dn[Hn]={}),Pn=Kn[dn.uniqueID]||(Kn[dn.uniqueID]={}),Pn[$e]=[ri,Ri]),dn===Ut)););return Ri-=qe,Ri===ct||Ri%ct===0&&Ri/ct>=0}}},PSEUDO:function($e,je){var Ke,ct=te.pseudos[$e]||te.setFilters[$e.toLowerCase()]||Gn.error("unsupported pseudo: "+$e);return ct[Hn]?ct(je):ct.length>1?(Ke=[$e,$e,"",je],te.setFilters.hasOwnProperty($e.toLowerCase())?Ji(function(qe,vt){for(var wt,$t=ct(qe,je),Ut=$t.length;Ut--;)wt=ro(qe,$t[Ut]),qe[wt]=!(vt[wt]=$t[Ut])}):function(qe){return ct(qe,0,Ke)}):ct}},pseudos:{not:Ji(function($e){var je=[],Ke=[],ct=He($e.replace(kl,"$1"));return ct[Hn]?Ji(function(qe,vt,wt,$t){for(var Ut,cn=ct(qe,null,$t,[]),Ft=qe.length;Ft--;)(Ut=cn[Ft])&&(qe[Ft]=!(vt[Ft]=Ut))}):function(qe,vt,wt){return je[0]=qe,ct(je,null,wt,Ke),je[0]=null,!Ke.pop()}}),has:Ji(function($e){return function(je){return Gn($e,je).length>0}}),contains:Ji(function($e){return $e=$e.replace(Ta,Xi),function(je){return(je.textContent||Ce(je)).indexOf($e)>-1}}),lang:Ji(function($e){return Q_.test($e||"")||Gn.error("unsupported lang: "+$e),$e=$e.replace(Ta,Xi).toLowerCase(),function(je){var Ke;do if(Ke=yn?je.lang:je.getAttribute("xml:lang")||je.getAttribute("lang"))return Ke=Ke.toLowerCase(),Ke===$e||Ke.indexOf($e+"-")===0;while((je=je.parentNode)&&je.nodeType===1);return!1}}),target:function($e){var je=O.location&&O.location.hash;return je&&je.slice(1)===$e.id},root:function($e){return $e===an},focus:function($e){return $e===lt.activeElement&&(!lt.hasFocus||lt.hasFocus())&&!!($e.type||$e.href||~$e.tabIndex)},enabled:Hh(!1),disabled:Hh(!0),checked:function($e){var je=$e.nodeName.toLowerCase();return je==="input"&&!!$e.checked||je==="option"&&!!$e.selected},selected:function($e){return $e.parentNode&&$e.parentNode.selectedIndex,$e.selected===!0},empty:function($e){for($e=$e.firstChild;$e;$e=$e.nextSibling)if($e.nodeType<6)return!1;return!0},parent:function($e){return!te.pseudos.empty($e)},header:function($e){return _d.test($e.nodeName)},input:function($e){return q_.test($e.nodeName)},button:function($e){var je=$e.nodeName.toLowerCase();return je==="input"&&$e.type==="button"||je==="button"},text:function($e){var je;return $e.nodeName.toLowerCase()==="input"&&$e.type==="text"&&((je=$e.getAttribute("type"))==null||je.toLowerCase()==="text")},first:gs(function(){return[0]}),last:gs(function($e,je){return[je-1]}),eq:gs(function($e,je,Ke){return[Ke<0?Ke+je:Ke]}),even:gs(function($e,je){for(var Ke=0;Keje?je:Ke;--ct>=0;)$e.push(ct);return $e}),gt:gs(function($e,je,Ke){for(var ct=Ke<0?Ke+je:Ke;++ct1?function(je,Ke,ct){for(var qe=$e.length;qe--;)if(!$e[qe](je,Ke,ct))return!1;return!0}:$e[0]}function iy($e,je,Ke){for(var ct=0,qe=je.length;ct-1&&(wt[Ft]=!($t[Ft]=Pn))}}else In=Ml(In===$t?In.splice(Tr,In.length):In),qe?qe(null,$t,In,cn):vs.apply($t,In)})}function Gu($e){for(var je,Ke,ct,qe=$e.length,vt=te.relative[$e[0].type],wt=vt||te.relative[" "],$t=vt?1:0,Ut=Ku(function(hn){return hn===je},wt,!0),cn=Ku(function(hn){return ro(je,hn)>-1},wt,!0),Ft=[function(hn,Pn,Kn){var dn=!vt&&(Kn||Pn!==Qe)||((je=Pn).nodeType?Ut(hn,Pn,Kn):cn(hn,Pn,Kn));return je=null,dn}];$t1&&Ed(Ft),$t>1&&Al($e.slice(0,$t-1).concat({value:$e[$t-2].type===" "?"*":""})).replace(kl,"$1"),Ke,$t0,ct=$e.length>0,qe=function(vt,wt,$t,Ut,cn){var Ft,hn,Pn,Kn=0,dn="0",Tr=vt&&[],Jr=[],gi=Qe,In=vt||ct&&te.find.TAG("*",cn),da=ri+=gi==null?1:Math.random()||.1,Il=In.length;for(cn&&(Qe=wt==lt||wt||cn);dn!==Il&&(Ft=In[dn])!=null;dn++){if(ct&&Ft){for(hn=0,!wt&&Ft.ownerDocument!=lt&&(nt(Ft),$t=!yn);Pn=$e[hn++];)if(Pn(Ft,wt||lt,$t)){Ut.push(Ft);break}cn&&(ri=da)}Ke&&((Ft=!Pn&&Ft)&&Kn--,vt&&Tr.push(Ft))}if(Kn+=dn,Ke&&dn!==Kn){for(hn=0;Pn=je[hn++];)Pn(Tr,Jr,wt,$t);if(vt){if(Kn>0)for(;dn--;)Tr[dn]||Jr[dn]||(Jr[dn]=ja.call(Ut));Jr=Ml(Jr)}vs.apply(Ut,Jr),cn&&!vt&&Jr.length>0&&Kn+je.length>1&&Gn.uniqueSort(Ut)}return cn&&(ri=da,Qe=gi),Tr};return Ke?Ji(qe):qe}return He=Gn.compile=function($e,je){var Ke,ct=[],qe=[],vt=zu[$e+" "];if(!vt){for(je||(je=Me($e)),Ke=je.length;Ke--;)vt=Gu(je[Ke]),vt[Hn]?ct.push(vt):qe.push(vt);vt=zu($e,Kh(qe,ct)),vt.selector=$e}return vt},Ue=Gn.select=function($e,je,Ke,ct){var qe,vt,wt,$t,Ut,cn=typeof $e=="function"&&$e,Ft=!ct&&Me($e=cn.selector||$e);if(Ke=Ke||[],Ft.length===1){if(vt=Ft[0]=Ft[0].slice(0),vt.length>2&&(wt=vt[0]).type==="ID"&&je.nodeType===9&&yn&&te.relative[vt[1].type]){if(je=(te.find.ID(wt.matches[0].replace(Ta,Xi),je)||[])[0],je)cn&&(je=je.parentNode);else return Ke;$e=$e.slice(vt.shift().value.length)}for(qe=Pl.needsContext.test($e)?0:vt.length;qe--&&(wt=vt[qe],!te.relative[$t=wt.type]);)if((Ut=te.find[$t])&&(ct=Ut(wt.matches[0].replace(Ta,Xi),yd.test(vt[0].type)&&Bo(je.parentNode)||je))){if(vt.splice(qe,1),$e=ct.length&&Al(vt),!$e)return vs.apply(Ke,ct),Ke;break}}return(cn||He($e,Ft))(ct,je,!yn,Ke,!je||yd.test($e)&&Bo(je.parentNode)||je),Ke},K.sortStable=Hn.split("").sort(no).join("")===Hn,K.detectDuplicates=!!bt,nt(),K.sortDetached=ii(function($e){return $e.compareDocumentPosition(lt.createElement("fieldset"))&1}),ii(function($e){return $e.innerHTML="",$e.firstChild.getAttribute("href")==="#"})||Hu("type|href|height|width",function($e,je,Ke){if(!Ke)return $e.getAttribute(je,je.toLowerCase()==="type"?1:2)}),(!K.attributes||!ii(function($e){return $e.innerHTML="",$e.firstChild.setAttribute("value",""),$e.firstChild.getAttribute("value")===""}))&&Hu("value",function($e,je,Ke){if(!Ke&&$e.nodeName.toLowerCase()==="input")return $e.defaultValue}),ii(function($e){return $e.getAttribute("disabled")==null})||Hu(gd,function($e,je,Ke){var ct;if(!Ke)return $e[je]===!0?je.toLowerCase():(ct=$e.getAttributeNode(je))&&ct.specified?ct.value:null}),Gn}(t);w.find=M,w.expr=M.selectors,w.expr[":"]=w.expr.pseudos,w.uniqueSort=w.unique=M.uniqueSort,w.text=M.getText,w.isXMLDoc=M.isXML,w.contains=M.contains,w.escapeSelector=M.escape;var T=function(O,L,K){for(var te=[],Ce=K!==void 0;(O=O[L])&&O.nodeType!==9;)if(O.nodeType===1){if(Ce&&w(O).is(K))break;te.push(O)}return te},R=function(O,L){for(var K=[];O;O=O.nextSibling)O.nodeType===1&&O!==L&&K.push(O);return K},H=w.expr.match.needsContext;function N(O,L){return O.nodeName&&O.nodeName.toLowerCase()===L.toLowerCase()}var V=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function U(O,L,K){return y(L)?w.grep(O,function(te,Ce){return!!L.call(te,Ce,te)!==K}):L.nodeType?w.grep(O,function(te){return te===L!==K}):typeof L!="string"?w.grep(O,function(te){return h.call(L,te)>-1!==K}):w.filter(L,O,K)}w.filter=function(O,L,K){var te=L[0];return K&&(O=":not("+O+")"),L.length===1&&te.nodeType===1?w.find.matchesSelector(te,O)?[te]:[]:w.find.matches(O,w.grep(L,function(Ce){return Ce.nodeType===1}))},w.fn.extend({find:function(O){var L,K,te=this.length,Ce=this;if(typeof O!="string")return this.pushStack(w(O).filter(function(){for(L=0;L1?w.uniqueSort(K):K},filter:function(O){return this.pushStack(U(this,O||[],!1))},not:function(O){return this.pushStack(U(this,O||[],!0))},is:function(O){return!!U(this,typeof O=="string"&&H.test(O)?w(O):O||[],!1).length}});var oe,Pe=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,pe=w.fn.init=function(O,L,K){var te,Ce;if(!O)return this;if(K=K||oe,typeof O=="string")if(O[0]==="<"&&O[O.length-1]===">"&&O.length>=3?te=[null,O,null]:te=Pe.exec(O),te&&(te[1]||!L))if(te[1]){if(L=L instanceof w?L[0]:L,w.merge(this,w.parseHTML(te[1],L&&L.nodeType?L.ownerDocument||L:E,!0)),V.test(te[1])&&w.isPlainObject(L))for(te in L)y(this[te])?this[te](L[te]):this.attr(te,L[te]);return this}else return Ce=E.getElementById(te[2]),Ce&&(this[0]=Ce,this.length=1),this;else return!L||L.jquery?(L||K).find(O):this.constructor(L).find(O);else{if(O.nodeType)return this[0]=O,this.length=1,this;if(y(O))return K.ready!==void 0?K.ready(O):O(w)}return w.makeArray(O,this)};pe.prototype=w.fn,oe=w(E);var ye=/^(?:parents|prev(?:Until|All))/,de={children:!0,contents:!0,next:!0,prev:!0};w.fn.extend({has:function(O){var L=w(O,this),K=L.length;return this.filter(function(){for(var te=0;te-1:K.nodeType===1&&w.find.matchesSelector(K,O))){Se.push(K);break}}return this.pushStack(Se.length>1?w.uniqueSort(Se):Se)},index:function(O){return O?typeof O=="string"?h.call(w(O),this[0]):h.call(this,O.jquery?O[0]:O):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(O,L){return this.pushStack(w.uniqueSort(w.merge(this.get(),w(O,L))))},addBack:function(O){return this.add(O==null?this.prevObject:this.prevObject.filter(O))}});function xe(O,L){for(;(O=O[L])&&O.nodeType!==1;);return O}w.each({parent:function(O){var L=O.parentNode;return L&&L.nodeType!==11?L:null},parents:function(O){return T(O,"parentNode")},parentsUntil:function(O,L,K){return T(O,"parentNode",K)},next:function(O){return xe(O,"nextSibling")},prev:function(O){return xe(O,"previousSibling")},nextAll:function(O){return T(O,"nextSibling")},prevAll:function(O){return T(O,"previousSibling")},nextUntil:function(O,L,K){return T(O,"nextSibling",K)},prevUntil:function(O,L,K){return T(O,"previousSibling",K)},siblings:function(O){return R((O.parentNode||{}).firstChild,O)},children:function(O){return R(O.firstChild)},contents:function(O){return O.contentDocument!=null&&i(O.contentDocument)?O.contentDocument:(N(O,"template")&&(O=O.content||O),w.merge([],O.childNodes))}},function(O,L){w.fn[O]=function(K,te){var Ce=w.map(this,L,K);return O.slice(-5)!=="Until"&&(te=K),te&&typeof te=="string"&&(Ce=w.filter(te,Ce)),this.length>1&&(de[O]||w.uniqueSort(Ce),ye.test(O)&&Ce.reverse()),this.pushStack(Ce)}});var Y=/[^\x20\t\r\n\f]+/g;function se(O){var L={};return w.each(O.match(Y)||[],function(K,te){L[te]=!0}),L}w.Callbacks=function(O){O=typeof O=="string"?se(O):w.extend({},O);var L,K,te,Ce,Se=[],Me=[],He=-1,Ue=function(){for(Ce=Ce||O.once,te=L=!0;Me.length;He=-1)for(K=Me.shift();++He-1;)Se.splice(nt,1),nt<=He&&He--}),this},has:function(it){return it?w.inArray(it,Se)>-1:Se.length>0},empty:function(){return Se&&(Se=[]),this},disable:function(){return Ce=Me=[],Se=K="",this},disabled:function(){return!Se},lock:function(){return Ce=Me=[],!K&&!L&&(Se=K=""),this},locked:function(){return!!Ce},fireWith:function(it,bt){return Ce||(bt=bt||[],bt=[it,bt.slice?bt.slice():bt],Me.push(bt),L||Ue()),this},fire:function(){return Qe.fireWith(this,arguments),this},fired:function(){return!!te}};return Qe};function be(O){return O}function _e(O){throw O}function re(O,L,K,te){var Ce;try{O&&y(Ce=O.promise)?Ce.call(O).done(L).fail(K):O&&y(Ce=O.then)?Ce.call(O,L,K):L.apply(void 0,[O].slice(te))}catch(Se){K.apply(void 0,[Se])}}w.extend({Deferred:function(O){var L=[["notify","progress",w.Callbacks("memory"),w.Callbacks("memory"),2],["resolve","done",w.Callbacks("once memory"),w.Callbacks("once memory"),0,"resolved"],["reject","fail",w.Callbacks("once memory"),w.Callbacks("once memory"),1,"rejected"]],K="pending",te={state:function(){return K},always:function(){return Ce.done(arguments).fail(arguments),this},catch:function(Se){return te.then(null,Se)},pipe:function(){var Se=arguments;return w.Deferred(function(Me){w.each(L,function(He,Ue){var Qe=y(Se[Ue[4]])&&Se[Ue[4]];Ce[Ue[1]](function(){var it=Qe&&Qe.apply(this,arguments);it&&y(it.promise)?it.promise().progress(Me.notify).done(Me.resolve).fail(Me.reject):Me[Ue[0]+"With"](this,Qe?[it]:arguments)})}),Se=null}).promise()},then:function(Se,Me,He){var Ue=0;function Qe(it,bt,nt,lt){return function(){var an=this,yn=arguments,Qt=function(){var xr,Mi;if(!(it=Ue&&(nt!==_e&&(an=void 0,yn=[xr]),bt.rejectWith(an,yn))}};it?Pr():(w.Deferred.getStackHook&&(Pr.stackTrace=w.Deferred.getStackHook()),t.setTimeout(Pr))}}return w.Deferred(function(it){L[0][3].add(Qe(0,it,y(He)?He:be,it.notifyWith)),L[1][3].add(Qe(0,it,y(Se)?Se:be)),L[2][3].add(Qe(0,it,y(Me)?Me:_e))}).promise()},promise:function(Se){return Se!=null?w.extend(Se,te):te}},Ce={};return w.each(L,function(Se,Me){var He=Me[2],Ue=Me[5];te[Me[1]]=He.add,Ue&&He.add(function(){K=Ue},L[3-Se][2].disable,L[3-Se][3].disable,L[0][2].lock,L[0][3].lock),He.add(Me[3].fire),Ce[Me[0]]=function(){return Ce[Me[0]+"With"](this===Ce?void 0:this,arguments),this},Ce[Me[0]+"With"]=He.fireWith}),te.promise(Ce),O&&O.call(Ce,Ce),Ce},when:function(O){var L=arguments.length,K=L,te=Array(K),Ce=a.call(arguments),Se=w.Deferred(),Me=function(He){return function(Ue){te[He]=this,Ce[He]=arguments.length>1?a.call(arguments):Ue,--L||Se.resolveWith(te,Ce)}};if(L<=1&&(re(O,Se.done(Me(K)).resolve,Se.reject,!L),Se.state()==="pending"||y(Ce[K]&&Ce[K].then)))return Se.then();for(;K--;)re(Ce[K],Me(K),Se.reject);return Se.promise()}});var Q=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;w.Deferred.exceptionHook=function(O,L){t.console&&t.console.warn&&O&&Q.test(O.name)&&t.console.warn("jQuery.Deferred exception: "+O.message,O.stack,L)},w.readyException=function(O){t.setTimeout(function(){throw O})};var B=w.Deferred();w.fn.ready=function(O){return B.then(O).catch(function(L){w.readyException(L)}),this},w.extend({isReady:!1,readyWait:1,ready:function(O){(O===!0?--w.readyWait:w.isReady)||(w.isReady=!0,!(O!==!0&&--w.readyWait>0)&&B.resolveWith(E,[w]))}}),w.ready.then=B.then;function I(){E.removeEventListener("DOMContentLoaded",I),t.removeEventListener("load",I),w.ready()}E.readyState==="complete"||E.readyState!=="loading"&&!E.documentElement.doScroll?t.setTimeout(w.ready):(E.addEventListener("DOMContentLoaded",I),t.addEventListener("load",I));var Z=function(O,L,K,te,Ce,Se,Me){var He=0,Ue=O.length,Qe=K==null;if(C(K)==="object"){Ce=!0;for(He in K)Z(O,L,He,K[He],!0,Se,Me)}else if(te!==void 0&&(Ce=!0,y(te)||(Me=!0),Qe&&(Me?(L.call(O,te),L=null):(Qe=L,L=function(it,bt,nt){return Qe.call(w(it),nt)})),L))for(;He1,null,!0)},removeData:function(O){return this.each(function(){Te.remove(this,O)})}}),w.extend({queue:function(O,L,K){var te;if(O)return L=(L||"fx")+"queue",te=q.get(O,L),K&&(!te||Array.isArray(K)?te=q.access(O,L,w.makeArray(K)):te.push(K)),te||[]},dequeue:function(O,L){L=L||"fx";var K=w.queue(O,L),te=K.length,Ce=K.shift(),Se=w._queueHooks(O,L),Me=function(){w.dequeue(O,L)};Ce==="inprogress"&&(Ce=K.shift(),te--),Ce&&(L==="fx"&&K.unshift("inprogress"),delete Se.stop,Ce.call(O,Me,Se)),!te&&Se&&Se.empty.fire()},_queueHooks:function(O,L){var K=L+"queueHooks";return q.get(O,K)||q.access(O,K,{empty:w.Callbacks("once memory").add(function(){q.remove(O,[L+"queue",K])})})}}),w.fn.extend({queue:function(O,L){var K=2;return typeof O!="string"&&(L=O,O="fx",K--),arguments.length\x20\t\r\n\f]*)/i,At=/^$|^module$|\/(?:java|ecma)script/i;(function(){var O=E.createDocumentFragment(),L=O.appendChild(E.createElement("div")),K=E.createElement("input");K.setAttribute("type","radio"),K.setAttribute("checked","checked"),K.setAttribute("name","t"),L.appendChild(K),_.checkClone=L.cloneNode(!0).cloneNode(!0).lastChild.checked,L.innerHTML="",_.noCloneChecked=!!L.cloneNode(!0).lastChild.defaultValue,L.innerHTML="",_.option=!!L.lastChild})();var It={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};It.tbody=It.tfoot=It.colgroup=It.caption=It.thead,It.th=It.td,_.option||(It.optgroup=It.option=[1,""]);function ht(O,L){var K;return typeof O.getElementsByTagName!="undefined"?K=O.getElementsByTagName(L||"*"):typeof O.querySelectorAll!="undefined"?K=O.querySelectorAll(L||"*"):K=[],L===void 0||L&&N(O,L)?w.merge([O],K):K}function Rt(O,L){for(var K=0,te=O.length;K-1){Ce&&Ce.push(Se);continue}if(Qe=ne(Se),Me=ht(bt.appendChild(Se),"script"),Qe&&Rt(Me),K)for(it=0;Se=Me[it++];)At.test(Se.type||"")&&K.push(Se)}return bt}var sn=/^([^.]*)(?:\.(.+)|)/;function Zt(){return!0}function Xt(){return!1}function qt(O,L){return O===Jt()==(L==="focus")}function Jt(){try{return E.activeElement}catch{}}function fn(O,L,K,te,Ce,Se){var Me,He;if(typeof L=="object"){typeof K!="string"&&(te=te||K,K=void 0);for(He in L)fn(O,He,K,te,L[He],Se);return O}if(te==null&&Ce==null?(Ce=K,te=K=void 0):Ce==null&&(typeof K=="string"?(Ce=te,te=void 0):(Ce=te,te=K,K=void 0)),Ce===!1)Ce=Xt;else if(!Ce)return O;return Se===1&&(Me=Ce,Ce=function(Ue){return w().off(Ue),Me.apply(this,arguments)},Ce.guid=Me.guid||(Me.guid=w.guid++)),O.each(function(){w.event.add(this,L,Ce,te,K)})}w.event={global:{},add:function(O,L,K,te,Ce){var Se,Me,He,Ue,Qe,it,bt,nt,lt,an,yn,Qt=q.get(O);if(!!G(O))for(K.handler&&(Se=K,K=Se.handler,Ce=Se.selector),Ce&&w.find.matchesSelector(X,Ce),K.guid||(K.guid=w.guid++),(Ue=Qt.events)||(Ue=Qt.events=Object.create(null)),(Me=Qt.handle)||(Me=Qt.handle=function(Pr){return typeof w!="undefined"&&w.event.triggered!==Pr.type?w.event.dispatch.apply(O,arguments):void 0}),L=(L||"").match(Y)||[""],Qe=L.length;Qe--;)He=sn.exec(L[Qe])||[],lt=yn=He[1],an=(He[2]||"").split(".").sort(),lt&&(bt=w.event.special[lt]||{},lt=(Ce?bt.delegateType:bt.bindType)||lt,bt=w.event.special[lt]||{},it=w.extend({type:lt,origType:yn,data:te,handler:K,guid:K.guid,selector:Ce,needsContext:Ce&&w.expr.match.needsContext.test(Ce),namespace:an.join(".")},Se),(nt=Ue[lt])||(nt=Ue[lt]=[],nt.delegateCount=0,(!bt.setup||bt.setup.call(O,te,an,Me)===!1)&&O.addEventListener&&O.addEventListener(lt,Me)),bt.add&&(bt.add.call(O,it),it.handler.guid||(it.handler.guid=K.guid)),Ce?nt.splice(nt.delegateCount++,0,it):nt.push(it),w.event.global[lt]=!0)},remove:function(O,L,K,te,Ce){var Se,Me,He,Ue,Qe,it,bt,nt,lt,an,yn,Qt=q.hasData(O)&&q.get(O);if(!(!Qt||!(Ue=Qt.events))){for(L=(L||"").match(Y)||[""],Qe=L.length;Qe--;){if(He=sn.exec(L[Qe])||[],lt=yn=He[1],an=(He[2]||"").split(".").sort(),!lt){for(lt in Ue)w.event.remove(O,lt+L[Qe],K,te,!0);continue}for(bt=w.event.special[lt]||{},lt=(te?bt.delegateType:bt.bindType)||lt,nt=Ue[lt]||[],He=He[2]&&new RegExp("(^|\\.)"+an.join("\\.(?:.*\\.|)")+"(\\.|$)"),Me=Se=nt.length;Se--;)it=nt[Se],(Ce||yn===it.origType)&&(!K||K.guid===it.guid)&&(!He||He.test(it.namespace))&&(!te||te===it.selector||te==="**"&&it.selector)&&(nt.splice(Se,1),it.selector&&nt.delegateCount--,bt.remove&&bt.remove.call(O,it));Me&&!nt.length&&((!bt.teardown||bt.teardown.call(O,an,Qt.handle)===!1)&&w.removeEvent(O,lt,Qt.handle),delete Ue[lt])}w.isEmptyObject(Ue)&&q.remove(O,"handle events")}},dispatch:function(O){var L,K,te,Ce,Se,Me,He=new Array(arguments.length),Ue=w.event.fix(O),Qe=(q.get(this,"events")||Object.create(null))[Ue.type]||[],it=w.event.special[Ue.type]||{};for(He[0]=Ue,L=1;L=1)){for(;Qe!==this;Qe=Qe.parentNode||this)if(Qe.nodeType===1&&!(O.type==="click"&&Qe.disabled===!0)){for(Se=[],Me={},K=0;K-1:w.find(Ce,this,null,[Qe]).length),Me[Ce]&&Se.push(te);Se.length&&He.push({elem:Qe,handlers:Se})}}return Qe=this,Ue\s*$/g;function Wt(O,L){return N(O,"table")&&N(L.nodeType!==11?L:L.firstChild,"tr")&&w(O).children("tbody")[0]||O}function Oe(O){return O.type=(O.getAttribute("type")!==null)+"/"+O.type,O}function Be(O){return(O.type||"").slice(0,5)==="true/"?O.type=O.type.slice(5):O.removeAttribute("type"),O}function Fe(O,L){var K,te,Ce,Se,Me,He,Ue;if(L.nodeType===1){if(q.hasData(O)&&(Se=q.get(O),Ue=Se.events,Ue)){q.remove(L,"handle events");for(Ce in Ue)for(K=0,te=Ue[Ce].length;K1&&typeof lt=="string"&&!_.checkClone&&at.test(lt))return O.each(function(yn){var Qt=O.eq(yn);an&&(L[0]=lt.call(this,yn,Qt.html())),tt(Qt,L,K,te)});if(bt&&(Ce=pn(L,O[0].ownerDocument,!1,O,te),Se=Ce.firstChild,Ce.childNodes.length===1&&(Ce=Se),Se||te)){for(Me=w.map(ht(Ce,"script"),Oe),He=Me.length;it0&&Rt(Me,!Ue&&ht(O,"script")),He},cleanData:function(O){for(var L,K,te,Ce=w.event.special,Se=0;(K=O[Se])!==void 0;Se++)if(G(K)){if(L=K[q.expando]){if(L.events)for(te in L.events)Ce[te]?w.event.remove(K,te):w.removeEvent(K,te,L.handle);K[q.expando]=void 0}K[Te.expando]&&(K[Te.expando]=void 0)}}}),w.fn.extend({detach:function(O){return ot(this,O,!0)},remove:function(O){return ot(this,O)},text:function(O){return Z(this,function(L){return L===void 0?w.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=L)})},null,O,arguments.length)},append:function(){return tt(this,arguments,function(O){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var L=Wt(this,O);L.appendChild(O)}})},prepend:function(){return tt(this,arguments,function(O){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var L=Wt(this,O);L.insertBefore(O,L.firstChild)}})},before:function(){return tt(this,arguments,function(O){this.parentNode&&this.parentNode.insertBefore(O,this)})},after:function(){return tt(this,arguments,function(O){this.parentNode&&this.parentNode.insertBefore(O,this.nextSibling)})},empty:function(){for(var O,L=0;(O=this[L])!=null;L++)O.nodeType===1&&(w.cleanData(ht(O,!1)),O.textContent="");return this},clone:function(O,L){return O=O==null?!1:O,L=L==null?O:L,this.map(function(){return w.clone(this,O,L)})},html:function(O){return Z(this,function(L){var K=this[0]||{},te=0,Ce=this.length;if(L===void 0&&K.nodeType===1)return K.innerHTML;if(typeof L=="string"&&!rt.test(L)&&!It[(Pt.exec(L)||["",""])[1].toLowerCase()]){L=w.htmlPrefilter(L);try{for(;te=0&&(Ue+=Math.max(0,Math.ceil(O["offset"+L[0].toUpperCase()+L.slice(1)]-Se-Ue-He-.5))||0),Ue}function Ki(O,L,K){var te=kt(O),Ce=!_.boxSizingReliable()||K,Se=Ce&&w.css(O,"boxSizing",!1,te)==="border-box",Me=Se,He=en(O,L,te),Ue="offset"+L[0].toUpperCase()+L.slice(1);if(pt.test(He)){if(!K)return He;He="auto"}return(!_.boxSizingReliable()&&Se||!_.reliableTrDimensions()&&N(O,"tr")||He==="auto"||!parseFloat(He)&&w.css(O,"display",!1,te)==="inline")&&O.getClientRects().length&&(Se=w.css(O,"boxSizing",!1,te)==="border-box",Me=Ue in O,Me&&(He=O[Ue])),He=parseFloat(He)||0,He+Ti(O,L,K||(Se?"border":"content"),Me,te,He)+"px"}w.extend({cssHooks:{opacity:{get:function(O,L){if(L){var K=en(O,"opacity");return K===""?"1":K}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(O,L,K,te){if(!(!O||O.nodeType===3||O.nodeType===8||!O.style)){var Ce,Se,Me,He=J(L),Ue=yt.test(L),Qe=O.style;if(Ue||(L=Xn(He)),Me=w.cssHooks[L]||w.cssHooks[He],K!==void 0){if(Se=typeof K,Se==="string"&&(Ce=F.exec(K))&&Ce[1]&&(K=fe(O,L,Ce),Se="number"),K==null||K!==K)return;Se==="number"&&!Ue&&(K+=Ce&&Ce[3]||(w.cssNumber[He]?"":"px")),!_.clearCloneStyle&&K===""&&L.indexOf("background")===0&&(Qe[L]="inherit"),(!Me||!("set"in Me)||(K=Me.set(O,K,te))!==void 0)&&(Ue?Qe.setProperty(L,K):Qe[L]=K)}else return Me&&"get"in Me&&(Ce=Me.get(O,!1,te))!==void 0?Ce:Qe[L]}},css:function(O,L,K,te){var Ce,Se,Me,He=J(L),Ue=yt.test(L);return Ue||(L=Xn(He)),Me=w.cssHooks[L]||w.cssHooks[He],Me&&"get"in Me&&(Ce=Me.get(O,!0,K)),Ce===void 0&&(Ce=en(O,L,te)),Ce==="normal"&&L in Hi&&(Ce=Hi[L]),K===""||K?(Se=parseFloat(Ce),K===!0||isFinite(Se)?Se||0:Ce):Ce}}),w.each(["height","width"],function(O,L){w.cssHooks[L]={get:function(K,te,Ce){if(te)return Yr.test(w.css(K,"display"))&&(!K.getClientRects().length||!K.getBoundingClientRect().width)?Vt(K,Or,function(){return Ki(K,L,Ce)}):Ki(K,L,Ce)},set:function(K,te,Ce){var Se,Me=kt(K),He=!_.scrollboxSize()&&Me.position==="absolute",Ue=He||Ce,Qe=Ue&&w.css(K,"boxSizing",!1,Me)==="border-box",it=Ce?Ti(K,L,Ce,Qe,Me):0;return Qe&&He&&(it-=Math.ceil(K["offset"+L[0].toUpperCase()+L.slice(1)]-parseFloat(Me[L])-Ti(K,L,"border",!1,Me)-.5)),it&&(Se=F.exec(te))&&(Se[3]||"px")!=="px"&&(K.style[L]=te,te=w.css(K,L)),ni(K,te,it)}}}),w.cssHooks.marginLeft=on(_.reliableMarginLeft,function(O,L){if(L)return(parseFloat(en(O,"marginLeft"))||O.getBoundingClientRect().left-Vt(O,{marginLeft:0},function(){return O.getBoundingClientRect().left}))+"px"}),w.each({margin:"",padding:"",border:"Width"},function(O,L){w.cssHooks[O+L]={expand:function(K){for(var te=0,Ce={},Se=typeof K=="string"?K.split(" "):[K];te<4;te++)Ce[O+W[te]+L]=Se[te]||Se[te-2]||Se[0];return Ce}},O!=="margin"&&(w.cssHooks[O+L].set=ni)}),w.fn.extend({css:function(O,L){return Z(this,function(K,te,Ce){var Se,Me,He={},Ue=0;if(Array.isArray(te)){for(Se=kt(K),Me=te.length;Ue1)}});function _r(O,L,K,te,Ce){return new _r.prototype.init(O,L,K,te,Ce)}w.Tween=_r,_r.prototype={constructor:_r,init:function(O,L,K,te,Ce,Se){this.elem=O,this.prop=K,this.easing=Ce||w.easing._default,this.options=L,this.start=this.now=this.cur(),this.end=te,this.unit=Se||(w.cssNumber[K]?"":"px")},cur:function(){var O=_r.propHooks[this.prop];return O&&O.get?O.get(this):_r.propHooks._default.get(this)},run:function(O){var L,K=_r.propHooks[this.prop];return this.options.duration?this.pos=L=w.easing[this.easing](O,this.options.duration*O,0,1,this.options.duration):this.pos=L=O,this.now=(this.end-this.start)*L+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),K&&K.set?K.set(this):_r.propHooks._default.set(this),this}},_r.prototype.init.prototype=_r.prototype,_r.propHooks={_default:{get:function(O){var L;return O.elem.nodeType!==1||O.elem[O.prop]!=null&&O.elem.style[O.prop]==null?O.elem[O.prop]:(L=w.css(O.elem,O.prop,""),!L||L==="auto"?0:L)},set:function(O){w.fx.step[O.prop]?w.fx.step[O.prop](O):O.elem.nodeType===1&&(w.cssHooks[O.prop]||O.elem.style[Xn(O.prop)]!=null)?w.style(O.elem,O.prop,O.now+O.unit):O.elem[O.prop]=O.now}}},_r.propHooks.scrollTop=_r.propHooks.scrollLeft={set:function(O){O.elem.nodeType&&O.elem.parentNode&&(O.elem[O.prop]=O.now)}},w.easing={linear:function(O){return O},swing:function(O){return .5-Math.cos(O*Math.PI)/2},_default:"swing"},w.fx=_r.prototype.init,w.fx.step={};var Vr,Ai,Gi=/^(?:toggle|show|hide)$/,Ie=/queueHooks$/;function We(){Ai&&(E.hidden===!1&&t.requestAnimationFrame?t.requestAnimationFrame(We):t.setTimeout(We,w.fx.interval),w.fx.tick())}function Le(){return t.setTimeout(function(){Vr=void 0}),Vr=Date.now()}function Ye(O,L){var K,te=0,Ce={height:O};for(L=L?1:0;te<4;te+=2-L)K=W[te],Ce["margin"+K]=Ce["padding"+K]=O;return L&&(Ce.opacity=Ce.width=O),Ce}function Ze(O,L,K){for(var te,Ce=(mt.tweeners[L]||[]).concat(mt.tweeners["*"]),Se=0,Me=Ce.length;Se1)},removeAttr:function(O){return this.each(function(){w.removeAttr(this,O)})}}),w.extend({attr:function(O,L,K){var te,Ce,Se=O.nodeType;if(!(Se===3||Se===8||Se===2)){if(typeof O.getAttribute=="undefined")return w.prop(O,L,K);if((Se!==1||!w.isXMLDoc(O))&&(Ce=w.attrHooks[L.toLowerCase()]||(w.expr.match.bool.test(L)?Dt:void 0)),K!==void 0){if(K===null){w.removeAttr(O,L);return}return Ce&&"set"in Ce&&(te=Ce.set(O,K,L))!==void 0?te:(O.setAttribute(L,K+""),K)}return Ce&&"get"in Ce&&(te=Ce.get(O,L))!==null?te:(te=w.find.attr(O,L),te==null?void 0:te)}},attrHooks:{type:{set:function(O,L){if(!_.radioValue&&L==="radio"&&N(O,"input")){var K=O.value;return O.setAttribute("type",L),K&&(O.value=K),L}}}},removeAttr:function(O,L){var K,te=0,Ce=L&&L.match(Y);if(Ce&&O.nodeType===1)for(;K=Ce[te++];)O.removeAttribute(K)}}),Dt={set:function(O,L,K){return L===!1?w.removeAttr(O,K):O.setAttribute(K,K),K}},w.each(w.expr.match.bool.source.match(/\w+/g),function(O,L){var K=St[L]||w.find.attr;St[L]=function(te,Ce,Se){var Me,He,Ue=Ce.toLowerCase();return Se||(He=St[Ue],St[Ue]=Me,Me=K(te,Ce,Se)!=null?Ue:null,St[Ue]=He),Me}});var Ct=/^(?:input|select|textarea|button)$/i,Ht=/^(?:a|area)$/i;w.fn.extend({prop:function(O,L){return Z(this,w.prop,O,L,arguments.length>1)},removeProp:function(O){return this.each(function(){delete this[w.propFix[O]||O]})}}),w.extend({prop:function(O,L,K){var te,Ce,Se=O.nodeType;if(!(Se===3||Se===8||Se===2))return(Se!==1||!w.isXMLDoc(O))&&(L=w.propFix[L]||L,Ce=w.propHooks[L]),K!==void 0?Ce&&"set"in Ce&&(te=Ce.set(O,K,L))!==void 0?te:O[L]=K:Ce&&"get"in Ce&&(te=Ce.get(O,L))!==null?te:O[L]},propHooks:{tabIndex:{get:function(O){var L=w.find.attr(O,"tabindex");return L?parseInt(L,10):Ct.test(O.nodeName)||Ht.test(O.nodeName)&&O.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),_.optSelected||(w.propHooks.selected={get:function(O){var L=O.parentNode;return L&&L.parentNode&&L.parentNode.selectedIndex,null},set:function(O){var L=O.parentNode;L&&(L.selectedIndex,L.parentNode&&L.parentNode.selectedIndex)}}),w.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){w.propFix[this.toLowerCase()]=this});function vn(O){var L=O.match(Y)||[];return L.join(" ")}function Cn(O){return O.getAttribute&&O.getAttribute("class")||""}function Et(O){return Array.isArray(O)?O:typeof O=="string"?O.match(Y)||[]:[]}w.fn.extend({addClass:function(O){var L,K,te,Ce,Se,Me;return y(O)?this.each(function(He){w(this).addClass(O.call(this,He,Cn(this)))}):(L=Et(O),L.length?this.each(function(){if(te=Cn(this),K=this.nodeType===1&&" "+vn(te)+" ",K){for(Se=0;Se-1;)K=K.replace(" "+Ce+" "," ");Me=vn(K),te!==Me&&this.setAttribute("class",Me)}}):this):this.attr("class","")},toggleClass:function(O,L){var K,te,Ce,Se,Me=typeof O,He=Me==="string"||Array.isArray(O);return y(O)?this.each(function(Ue){w(this).toggleClass(O.call(this,Ue,Cn(this),L),L)}):typeof L=="boolean"&&He?L?this.addClass(O):this.removeClass(O):(K=Et(O),this.each(function(){if(He)for(Se=w(this),Ce=0;Ce-1)return!0;return!1}});var er=/\r/g;w.fn.extend({val:function(O){var L,K,te,Ce=this[0];return arguments.length?(te=y(O),this.each(function(Se){var Me;this.nodeType===1&&(te?Me=O.call(this,Se,w(this).val()):Me=O,Me==null?Me="":typeof Me=="number"?Me+="":Array.isArray(Me)&&(Me=w.map(Me,function(He){return He==null?"":He+""})),L=w.valHooks[this.type]||w.valHooks[this.nodeName.toLowerCase()],(!L||!("set"in L)||L.set(this,Me,"value")===void 0)&&(this.value=Me))})):Ce?(L=w.valHooks[Ce.type]||w.valHooks[Ce.nodeName.toLowerCase()],L&&"get"in L&&(K=L.get(Ce,"value"))!==void 0?K:(K=Ce.value,typeof K=="string"?K.replace(er,""):K==null?"":K)):void 0}}),w.extend({valHooks:{option:{get:function(O){var L=w.find.attr(O,"value");return L!=null?L:vn(w.text(O))}},select:{get:function(O){var L,K,te,Ce=O.options,Se=O.selectedIndex,Me=O.type==="select-one",He=Me?null:[],Ue=Me?Se+1:Ce.length;for(Se<0?te=Ue:te=Me?Se:0;te-1)&&(K=!0);return K||(O.selectedIndex=-1),Se}}}}),w.each(["radio","checkbox"],function(){w.valHooks[this]={set:function(O,L){if(Array.isArray(L))return O.checked=w.inArray(w(O).val(),L)>-1}},_.checkOn||(w.valHooks[this].get=function(O){return O.getAttribute("value")===null?"on":O.value})}),_.focusin="onfocusin"in t;var En=/^(?:focusinfocus|focusoutblur)$/,dr=function(O){O.stopPropagation()};w.extend(w.event,{trigger:function(O,L,K,te){var Ce,Se,Me,He,Ue,Qe,it,bt,nt=[K||E],lt=d.call(O,"type")?O.type:O,an=d.call(O,"namespace")?O.namespace.split("."):[];if(Se=bt=Me=K=K||E,!(K.nodeType===3||K.nodeType===8)&&!En.test(lt+w.event.triggered)&&(lt.indexOf(".")>-1&&(an=lt.split("."),lt=an.shift(),an.sort()),Ue=lt.indexOf(":")<0&&"on"+lt,O=O[w.expando]?O:new w.Event(lt,typeof O=="object"&&O),O.isTrigger=te?2:3,O.namespace=an.join("."),O.rnamespace=O.namespace?new RegExp("(^|\\.)"+an.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,O.result=void 0,O.target||(O.target=K),L=L==null?[O]:w.makeArray(L,[O]),it=w.event.special[lt]||{},!(!te&&it.trigger&&it.trigger.apply(K,L)===!1))){if(!te&&!it.noBubble&&!b(K)){for(He=it.delegateType||lt,En.test(He+lt)||(Se=Se.parentNode);Se;Se=Se.parentNode)nt.push(Se),Me=Se;Me===(K.ownerDocument||E)&&nt.push(Me.defaultView||Me.parentWindow||t)}for(Ce=0;(Se=nt[Ce++])&&!O.isPropagationStopped();)bt=Se,O.type=Ce>1?He:it.bindType||lt,Qe=(q.get(Se,"events")||Object.create(null))[O.type]&&q.get(Se,"handle"),Qe&&Qe.apply(Se,L),Qe=Ue&&Se[Ue],Qe&&Qe.apply&&G(Se)&&(O.result=Qe.apply(Se,L),O.result===!1&&O.preventDefault());return O.type=lt,!te&&!O.isDefaultPrevented()&&(!it._default||it._default.apply(nt.pop(),L)===!1)&&G(K)&&Ue&&y(K[lt])&&!b(K)&&(Me=K[Ue],Me&&(K[Ue]=null),w.event.triggered=lt,O.isPropagationStopped()&&bt.addEventListener(lt,dr),K[lt](),O.isPropagationStopped()&&bt.removeEventListener(lt,dr),w.event.triggered=void 0,Me&&(K[Ue]=Me)),O.result}},simulate:function(O,L,K){var te=w.extend(new w.Event,K,{type:O,isSimulated:!0});w.event.trigger(te,null,L)}}),w.fn.extend({trigger:function(O,L){return this.each(function(){w.event.trigger(O,L,this)})},triggerHandler:function(O,L){var K=this[0];if(K)return w.event.trigger(O,L,K,!0)}}),_.focusin||w.each({focus:"focusin",blur:"focusout"},function(O,L){var K=function(te){w.event.simulate(L,te.target,w.event.fix(te))};w.event.special[L]={setup:function(){var te=this.ownerDocument||this.document||this,Ce=q.access(te,L);Ce||te.addEventListener(O,K,!0),q.access(te,L,(Ce||0)+1)},teardown:function(){var te=this.ownerDocument||this.document||this,Ce=q.access(te,L)-1;Ce?q.access(te,L,Ce):(te.removeEventListener(O,K,!0),q.remove(te,L))}}});var mi=t.location,Xr={guid:Date.now()},Wr=/\?/;w.parseXML=function(O){var L,K;if(!O||typeof O!="string")return null;try{L=new t.DOMParser().parseFromString(O,"text/xml")}catch{}return K=L&&L.getElementsByTagName("parsererror")[0],(!L||K)&&w.error("Invalid XML: "+(K?w.map(K.childNodes,function(te){return te.textContent}).join(` +`):O)),L};var Pa=/\[\]$/,gt=/\r?\n/g,eo=/^(?:submit|button|image|reset|file)$/i,cd=/^(?:input|select|textarea|keygen)/i;function to(O,L,K,te){var Ce;if(Array.isArray(L))w.each(L,function(Se,Me){K||Pa.test(O)?te(O,Me):to(O+"["+(typeof Me=="object"&&Me!=null?Se:"")+"]",Me,K,te)});else if(!K&&C(L)==="object")for(Ce in L)to(O+"["+Ce+"]",L[Ce],K,te);else te(O,L)}w.param=function(O,L){var K,te=[],Ce=function(Se,Me){var He=y(Me)?Me():Me;te[te.length]=encodeURIComponent(Se)+"="+encodeURIComponent(He==null?"":He)};if(O==null)return"";if(Array.isArray(O)||O.jquery&&!w.isPlainObject(O))w.each(O,function(){Ce(this.name,this.value)});else for(K in O)to(K,O[K],L,Ce);return te.join("&")},w.fn.extend({serialize:function(){return w.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var O=w.prop(this,"elements");return O?w.makeArray(O):this}).filter(function(){var O=this.type;return this.name&&!w(this).is(":disabled")&&cd.test(this.nodeName)&&!eo.test(O)&&(this.checked||!_t.test(O))}).map(function(O,L){var K=w(this).val();return K==null?null:Array.isArray(K)?w.map(K,function(te){return{name:L.name,value:te.replace(gt,`\r +`)}}):{name:L.name,value:K.replace(gt,`\r +`)}}).get()}});var V_=/%20/g,W_=/#.*$/,Lh=/([?&])_=[^&]*/,Fu=/^(.*?):[ \t]*([^\r\n]*)$/mg,Bh=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Fh=/^(?:GET|HEAD)$/,H_=/^\/\//,Uh={},dd={},fd="*/".concat("*"),Ro=E.createElement("a");Ro.href=mi.href;function hd(O){return function(L,K){typeof L!="string"&&(K=L,L="*");var te,Ce=0,Se=L.toLowerCase().match(Y)||[];if(y(K))for(;te=Se[Ce++];)te[0]==="+"?(te=te.slice(1)||"*",(O[te]=O[te]||[]).unshift(K)):(O[te]=O[te]||[]).push(K)}}function pd(O,L,K,te){var Ce={},Se=O===dd;function Me(He){var Ue;return Ce[He]=!0,w.each(O[He]||[],function(Qe,it){var bt=it(L,K,te);if(typeof bt=="string"&&!Se&&!Ce[bt])return L.dataTypes.unshift(bt),Me(bt),!1;if(Se)return!(Ue=bt)}),Ue}return Me(L.dataTypes[0])||!Ce["*"]&&Me("*")}function vd(O,L){var K,te,Ce=w.ajaxSettings.flatOptions||{};for(K in L)L[K]!==void 0&&((Ce[K]?O:te||(te={}))[K]=L[K]);return te&&w.extend(!0,O,te),O}function Uu(O,L,K){for(var te,Ce,Se,Me,He=O.contents,Ue=O.dataTypes;Ue[0]==="*";)Ue.shift(),te===void 0&&(te=O.mimeType||L.getResponseHeader("Content-Type"));if(te){for(Ce in He)if(He[Ce]&&He[Ce].test(te)){Ue.unshift(Ce);break}}if(Ue[0]in K)Se=Ue[0];else{for(Ce in K){if(!Ue[0]||O.converters[Ce+" "+Ue[0]]){Se=Ce;break}Me||(Me=Ce)}Se=Se||Me}if(Se)return Se!==Ue[0]&&Ue.unshift(Se),K[Se]}function K_(O,L,K,te){var Ce,Se,Me,He,Ue,Qe={},it=O.dataTypes.slice();if(it[1])for(Me in O.converters)Qe[Me.toLowerCase()]=O.converters[Me];for(Se=it.shift();Se;)if(O.responseFields[Se]&&(K[O.responseFields[Se]]=L),!Ue&&te&&O.dataFilter&&(L=O.dataFilter(L,O.dataType)),Ue=Se,Se=it.shift(),Se){if(Se==="*")Se=Ue;else if(Ue!=="*"&&Ue!==Se){if(Me=Qe[Ue+" "+Se]||Qe["* "+Se],!Me){for(Ce in Qe)if(He=Ce.split(" "),He[1]===Se&&(Me=Qe[Ue+" "+He[0]]||Qe["* "+He[0]],Me)){Me===!0?Me=Qe[Ce]:Qe[Ce]!==!0&&(Se=He[0],it.unshift(He[1]));break}}if(Me!==!0)if(Me&&O.throws)L=Me(L);else try{L=Me(L)}catch(bt){return{state:"parsererror",error:Me?bt:"No conversion from "+Ue+" to "+Se}}}}return{state:"success",data:L}}w.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:mi.href,type:"GET",isLocal:Bh.test(mi.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":fd,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":w.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(O,L){return L?vd(vd(O,w.ajaxSettings),L):vd(w.ajaxSettings,O)},ajaxPrefilter:hd(Uh),ajaxTransport:hd(dd),ajax:function(O,L){typeof O=="object"&&(L=O,O=void 0),L=L||{};var K,te,Ce,Se,Me,He,Ue,Qe,it,bt,nt=w.ajaxSetup({},L),lt=nt.context||nt,an=nt.context&&(lt.nodeType||lt.jquery)?w(lt):w.event,yn=w.Deferred(),Qt=w.Callbacks("once memory"),Pr=nt.statusCode||{},xr={},Mi={},Hn="canceled",bn={readyState:0,getResponseHeader:function(Rn){var ir;if(Ue){if(!Se)for(Se={};ir=Fu.exec(Ce);)Se[ir[1].toLowerCase()+" "]=(Se[ir[1].toLowerCase()+" "]||[]).concat(ir[2]);ir=Se[Rn.toLowerCase()+" "]}return ir==null?null:ir.join(", ")},getAllResponseHeaders:function(){return Ue?Ce:null},setRequestHeader:function(Rn,ir){return Ue==null&&(Rn=Mi[Rn.toLowerCase()]=Mi[Rn.toLowerCase()]||Rn,xr[Rn]=ir),this},overrideMimeType:function(Rn){return Ue==null&&(nt.mimeType=Rn),this},statusCode:function(Rn){var ir;if(Rn)if(Ue)bn.always(Rn[bn.status]);else for(ir in Rn)Pr[ir]=[Pr[ir],Rn[ir]];return this},abort:function(Rn){var ir=Rn||Hn;return K&&K.abort(ir),ri(0,ir),this}};if(yn.promise(bn),nt.url=((O||nt.url||mi.href)+"").replace(H_,mi.protocol+"//"),nt.type=L.method||L.type||nt.method||nt.type,nt.dataTypes=(nt.dataType||"*").toLowerCase().match(Y)||[""],nt.crossDomain==null){He=E.createElement("a");try{He.href=nt.url,He.href=He.href,nt.crossDomain=Ro.protocol+"//"+Ro.host!=He.protocol+"//"+He.host}catch{nt.crossDomain=!0}}if(nt.data&&nt.processData&&typeof nt.data!="string"&&(nt.data=w.param(nt.data,nt.traditional)),pd(Uh,nt,L,bn),Ue)return bn;Qe=w.event&&nt.global,Qe&&w.active++===0&&w.event.trigger("ajaxStart"),nt.type=nt.type.toUpperCase(),nt.hasContent=!Fh.test(nt.type),te=nt.url.replace(W_,""),nt.hasContent?nt.data&&nt.processData&&(nt.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(nt.data=nt.data.replace(V_,"+")):(bt=nt.url.slice(te.length),nt.data&&(nt.processData||typeof nt.data=="string")&&(te+=(Wr.test(te)?"&":"?")+nt.data,delete nt.data),nt.cache===!1&&(te=te.replace(Lh,"$1"),bt=(Wr.test(te)?"&":"?")+"_="+Xr.guid+++bt),nt.url=te+bt),nt.ifModified&&(w.lastModified[te]&&bn.setRequestHeader("If-Modified-Since",w.lastModified[te]),w.etag[te]&&bn.setRequestHeader("If-None-Match",w.etag[te])),(nt.data&&nt.hasContent&&nt.contentType!==!1||L.contentType)&&bn.setRequestHeader("Content-Type",nt.contentType),bn.setRequestHeader("Accept",nt.dataTypes[0]&&nt.accepts[nt.dataTypes[0]]?nt.accepts[nt.dataTypes[0]]+(nt.dataTypes[0]!=="*"?", "+fd+"; q=0.01":""):nt.accepts["*"]);for(it in nt.headers)bn.setRequestHeader(it,nt.headers[it]);if(nt.beforeSend&&(nt.beforeSend.call(lt,bn,nt)===!1||Ue))return bn.abort();if(Hn="abort",Qt.add(nt.complete),bn.done(nt.success),bn.fail(nt.error),K=pd(dd,nt,L,bn),!K)ri(-1,"No Transport");else{if(bn.readyState=1,Qe&&an.trigger("ajaxSend",[bn,nt]),Ue)return bn;nt.async&&nt.timeout>0&&(Me=t.setTimeout(function(){bn.abort("timeout")},nt.timeout));try{Ue=!1,K.send(xr,ri)}catch(Rn){if(Ue)throw Rn;ri(-1,Rn)}}function ri(Rn,ir,Lo,zu){var Ii,no,ps,Hr,ja,$i=ir;Ue||(Ue=!0,Me&&t.clearTimeout(Me),K=void 0,Ce=zu||"",bn.readyState=Rn>0?4:0,Ii=Rn>=200&&Rn<300||Rn===304,Lo&&(Hr=Uu(nt,bn,Lo)),!Ii&&w.inArray("script",nt.dataTypes)>-1&&w.inArray("json",nt.dataTypes)<0&&(nt.converters["text script"]=function(){}),Hr=K_(nt,Hr,bn,Ii),Ii?(nt.ifModified&&(ja=bn.getResponseHeader("Last-Modified"),ja&&(w.lastModified[te]=ja),ja=bn.getResponseHeader("etag"),ja&&(w.etag[te]=ja)),Rn===204||nt.type==="HEAD"?$i="nocontent":Rn===304?$i="notmodified":($i=Hr.state,no=Hr.data,ps=Hr.error,Ii=!ps)):(ps=$i,(Rn||!$i)&&($i="error",Rn<0&&(Rn=0))),bn.status=Rn,bn.statusText=(ir||$i)+"",Ii?yn.resolveWith(lt,[no,$i,bn]):yn.rejectWith(lt,[bn,$i,ps]),bn.statusCode(Pr),Pr=void 0,Qe&&an.trigger(Ii?"ajaxSuccess":"ajaxError",[bn,nt,Ii?no:ps]),Qt.fireWith(lt,[bn,$i]),Qe&&(an.trigger("ajaxComplete",[bn,nt]),--w.active||w.event.trigger("ajaxStop")))}return bn},getJSON:function(O,L,K){return w.get(O,L,K,"json")},getScript:function(O,L){return w.get(O,void 0,L,"script")}}),w.each(["get","post"],function(O,L){w[L]=function(K,te,Ce,Se){return y(te)&&(Se=Se||Ce,Ce=te,te=void 0),w.ajax(w.extend({url:K,type:L,dataType:Se,data:te,success:Ce},w.isPlainObject(K)&&K))}}),w.ajaxPrefilter(function(O){var L;for(L in O.headers)L.toLowerCase()==="content-type"&&(O.contentType=O.headers[L]||"")}),w._evalUrl=function(O,L,K){return w.ajax({url:O,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(te){w.globalEval(te,L,K)}})},w.fn.extend({wrapAll:function(O){var L;return this[0]&&(y(O)&&(O=O.call(this[0])),L=w(O,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&L.insertBefore(this[0]),L.map(function(){for(var K=this;K.firstElementChild;)K=K.firstElementChild;return K}).append(this)),this},wrapInner:function(O){return y(O)?this.each(function(L){w(this).wrapInner(O.call(this,L))}):this.each(function(){var L=w(this),K=L.contents();K.length?K.wrapAll(O):L.append(O)})},wrap:function(O){var L=y(O);return this.each(function(K){w(this).wrapAll(L?O.call(this,K):O)})},unwrap:function(O){return this.parent(O).not("body").each(function(){w(this).replaceWith(this.childNodes)}),this}}),w.expr.pseudos.hidden=function(O){return!w.expr.pseudos.visible(O)},w.expr.pseudos.visible=function(O){return!!(O.offsetWidth||O.offsetHeight||O.getClientRects().length)},w.ajaxSettings.xhr=function(){try{return new t.XMLHttpRequest}catch{}};var G_={0:200,1223:204},No=w.ajaxSettings.xhr();_.cors=!!No&&"withCredentials"in No,_.ajax=No=!!No,w.ajaxTransport(function(O){var L,K;if(_.cors||No&&!O.crossDomain)return{send:function(te,Ce){var Se,Me=O.xhr();if(Me.open(O.type,O.url,O.async,O.username,O.password),O.xhrFields)for(Se in O.xhrFields)Me[Se]=O.xhrFields[Se];O.mimeType&&Me.overrideMimeType&&Me.overrideMimeType(O.mimeType),!O.crossDomain&&!te["X-Requested-With"]&&(te["X-Requested-With"]="XMLHttpRequest");for(Se in te)Me.setRequestHeader(Se,te[Se]);L=function(He){return function(){L&&(L=K=Me.onload=Me.onerror=Me.onabort=Me.ontimeout=Me.onreadystatechange=null,He==="abort"?Me.abort():He==="error"?typeof Me.status!="number"?Ce(0,"error"):Ce(Me.status,Me.statusText):Ce(G_[Me.status]||Me.status,Me.statusText,(Me.responseType||"text")!=="text"||typeof Me.responseText!="string"?{binary:Me.response}:{text:Me.responseText},Me.getAllResponseHeaders()))}},Me.onload=L(),K=Me.onerror=Me.ontimeout=L("error"),Me.onabort!==void 0?Me.onabort=K:Me.onreadystatechange=function(){Me.readyState===4&&t.setTimeout(function(){L&&K()})},L=L("abort");try{Me.send(O.hasContent&&O.data||null)}catch(He){if(L)throw He}},abort:function(){L&&L()}}}),w.ajaxPrefilter(function(O){O.crossDomain&&(O.contents.script=!1)}),w.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(O){return w.globalEval(O),O}}}),w.ajaxPrefilter("script",function(O){O.cache===void 0&&(O.cache=!1),O.crossDomain&&(O.type="GET")}),w.ajaxTransport("script",function(O){if(O.crossDomain||O.scriptAttrs){var L,K;return{send:function(te,Ce){L=w("